PageSourceSearch

https://www.mandginvestments.com/etc.clientlibs/mandg-investments/…-9a7502b030d34b5342b6e6bea1fb4793-lc.min.js

js mandginvestments.com collected 2026-10-10 04:55:02 UTC 986,287 bytes, 3 lines download raw bytes

1/*! For license information please see 174.bundle.js.LICENSE.txt */
2(self.webpackChunkaem_maven_archetype=self.webpackChunkaem_maven_archetype||[]).push([[174],{41:function(e,t,n){"use strict";var r=n(655),i=n(8068),o=n(9675),a=n(5795);e.exports=function(e,t,n){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new o("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new o("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new o("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new o("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new o("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new o("`loose`, if provided, must be a boolean");var l=arguments.length>3?arguments[3]:null,s=arguments.length>4?arguments[4]:null,u=arguments.length>5?arguments[5]:null,c=arguments.length>6&&arguments[6],d=!!a&&a(e,t);if(r)r(e,t,{configurable:null===u&&d?d.configurable:!u,enumerable:null===l&&d?d.enumerable:!l,value:n,writable:null===s&&d?d.writable:!s});else{if(!c&&(l||s||u))throw new i("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=n}}},76:function(e){"use strict";e.exports=Function.prototype.call},150:function(e,t,n){"use strict";n.d(t,{Jq:function(){return c},Ij:function(){return d},s3:function(){return o},Vx:function(){return l},dK:function(){return u}});var r=n(2375),i=n(7044);function o(e){let{swiper:t,extendParams:n,on:o,emit:a}=e;const l=(0,r.g)(),s=(0,r.a)();function u(e){if(!t.enabled)return;const{rtlTranslate:n}=t;let r=e;r.originalEvent&&(r=r.originalEvent);const o=r.keyCode||r.charCode,u=t.params.keyboard.pageUpDown,c=u&&33===o,d=u&&34===o,f=37===o,p=39===o,h=38===o,m=40===o;if(!t.allowSlideNext&&(t.isHorizontal()&&p||t.isVertical()&&m||d))return!1;if(!t.allowSlidePrev&&(t.isHorizontal()&&f||t.isVertical()&&h||c))return!1;if(!(r.shiftKey||r.altKey||r.ctrlKey||r.metaKey||l.activeElement&&(l.activeElement.isContentEditable||l.activeElement.nodeName&&("input"===l.activeElement.nodeName.toLowerCase()||"textarea"===l.activeElement.nodeName.toLowerCase())))){if(t.params.keyboard.onlyInViewport&&(c||d||f||p||h||m)){let e=!1;if((0,i.b)(t.el,`.${t.params.slideClass}, swiper-slide`).length>0&&0===(0,i.b)(t.el,`.${t.params.slideActiveClass}`).length)return;const r=t.el,o=r.clientWidth,a=r.clientHeight,l=s.innerWidth,u=s.innerHeight,c=(0,i.d)(r);n&&(c.left-=r.scrollLeft);const d=[[c.left,c.top],[c.left+o,c.top],[c.left,c.top+a],[c.left+o,c.top+a]];for(let t=0;t<d.length;t+=1){const n=d[t];if(n[0]>=0&&n[0]<=l&&n[1]>=0&&n[1]<=u){if(0===n[0]&&0===n[1])continue;e=!0}}if(!e)return}t.isHorizontal()?((c||d||f||p)&&(r.preventDefault?r.preventDefault():r.returnValue=!1),((d||p)&&!n||(c||f)&&n)&&t.slideNext(),((c||f)&&!n||(d||p)&&n)&&t.slidePrev()):((c||d||h||m)&&(r.preventDefault?r.preventDefault():r.returnValue=!1),(d||m)&&t.slideNext(),(c||h)&&t.slidePrev()),a("keyPress",o)}}function c(){t.keyboard.enabled||(l.addEventListener("keydown",u),t.keyboard.enabled=!0)}function d(){t.keyboard.enabled&&(l.removeEventListener("keydown",u),t.keyboard.enabled=!1)}t.keyboard={enabled:!1},n({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}}),o("init",()=>{t.params.keyboard.enabled&&c()}),o("destroy",()=>{t.keyboard.enabled&&d()}),Object.assign(t.keyboard,{enable:c,disable:d})}function a(e,t,n,r){return e.params.createElements&&Object.keys(r).forEach(o=>{if(!n[o]&&!0===n.auto){let a=(0,i.e)(e.el,`.${r[o]}`)[0];a||(a=(0,i.c)("div",r[o]),a.className=r[o],e.el.append(a)),n[o]=a,t[o]=a}}),n}function l(e){let{swiper:t,extendParams:n,on:r,emit:o}=e;function l(e){let n;return e&&"string"==typeof e&&t.isElement&&(n=t.el.querySelector(e)||t.hostEl.querySelector(e),n)?n:(e&&("string"==typeof e&&(n=[...document.querySelectorAll(e)]),t.params.uniqueNavElements&&"string"==typeof e&&n&&n.length>1&&1===t.el.querySelectorAll(e).length?n=t.el.querySelector(e):n&&1===n.length&&(n=n[0])),e&&!n?e:n)}function s(e,n){const r=t.params.navigation;
2(e=(0,i.m)(e)).forEach(e=>{e&&(e.classList[n?"add":"remove"](...r.disabledClass.split(" ")),"BUTTON"===e.tagName&&(e.disabled=n),t.params.watchOverflow&&t.enabled&&e.classList[t.isLocked?"add":"remove"](r.lockClass))})}function u(){const{nextEl:e,prevEl:n}=t.navigation;if(t.params.loop)return s(n,!1),void s(e,!1);s(n,t.isBeginning&&!t.params.rewind),s(e,t.isEnd&&!t.params.rewind)}function c(e){e.preventDefault(),(!t.isBeginning||t.params.loop||t.params.rewind)&&(t.slidePrev(),o("navigationPrev"))}function d(e){e.preventDefault(),(!t.isEnd||t.params.loop||t.params.rewind)&&(t.slideNext(),o("navigationNext"))}function f(){const e=t.params.navigation;if(t.params.navigation=a(t,t.originalParams.navigation,t.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!e.nextEl&&!e.prevEl)return;let n=l(e.nextEl),r=l(e.prevEl);Object.assign(t.navigation,{nextEl:n,prevEl:r}),n=(0,i.m)(n),r=(0,i.m)(r);const o=(n,r)=>{n&&n.addEventListener("click","next"===r?d:c),!t.enabled&&n&&n.classList.add(...e.lockClass.split(" "))};n.forEach(e=>o(e,"next")),r.forEach(e=>o(e,"prev"))}function p(){let{nextEl:e,prevEl:n}=t.navigation;e=(0,i.m)(e),n=(0,i.m)(n);const r=(e,n)=>{e.removeEventListener("click","next"===n?d:c),e.classList.remove(...t.params.navigation.disabledClass.split(" "))};e.forEach(e=>
2r(e,"next")),n.forEach(e=>r(e,"prev"))}n({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),t.navigation={nextEl:null,prevEl:null},r("init",()=>{!1===t.params.navigation.enabled?h():(f(),u())}),r("toEdge fromEdge lock unlock",()=>{u()}),r("destroy",()=>{p()}),r("enable disable",()=>{let{nextEl:e,prevEl:n}=t.navigation;e=(0,i.m)(e),n=(0,i.m)(n),t.enabled?u():[...e,...n].filter(e=>!!e).forEach(e=>e.classList.add(t.params.navigation.lockClass))}),r("click",(e,n)=>{let{nextEl:r,prevEl:a}=t.navigation;r=(0,i.m)(r),a=(0,i.m)(a);const l=n.target;let s=a.includes(l)||r.includes(l);if(t.isElement&&!s){const e=n.path||n.composedPath&&n.composedPath();e&&(s=e.find(e=>r.includes(e)||a.includes(e)))}if(t.params.navigation.hideOnClick&&!s){if(t.pagination&&t.params.pagination&&t.params.pagination.clickable&&(t.pagination.el===l||t.pagination.el.contains(l)))return;let e;r.length?e=r[0].classList.contains(t.params.navigation.hiddenClass):a.length&&(e=a[0].classList.contains(t.params.navigation.hiddenClass)),o(!0===e?"navigationShow":"navigationHide"),[...r,...a].filter(e=>!!e).forEach(e=>e.classList.toggle(t.params.navigation.hiddenClass))}});const h=()=>{t.el.classList.add(...t.params.navigation.navigationDisabledClass.split(" ")),p()};Object.assign(t.navigation,{enable:()=>{t.el.classList.remove(...t.params.navigation.navigationDisabledClass.split(" ")),f(),u()},disable:h,update:u,init:f,destroy:p})}function s(e){return void 0===e&&(e=""),`.${e.trim().replace(/([\.:!+\/()[\]])/g,"\\$1").replace(/ /g,".")}`}function u(e){let{swiper:t,extendParams:n,on:r,emit:o}=e;const l="swiper-pagination";let u;n({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:`${l}-bullet`,bulletActiveClass:`${l}-bullet-active`,modifierClass:`${l}-`,currentClass:`${l}-current`,totalClass:`${l}-total`,hiddenClass:`${l}-hidden`,progressbarFillClass:`${l}-progressbar-fill`,progressbarOppositeClass:`${l}-progressbar-opposite`,clickableClass:`${l}-clickable`,lockClass:`${l}-lock`,horizontalClass:`${l}-horizontal`,verticalClass:`${l}-vertical`,paginationDisabledClass:`${l}-disabled`}}),t.pagination={el:null,bullets:[]};let c=0;function d(){return!t.params.pagination.el||!t.pagination.el||Array.isArray(t.pagination.el)&&0===t.pagination.el.length}function f(e,n){const{bulletActiveClass:r}=t.params.pagination;e&&(e=e[("prev"===n?"previous":"next")+"ElementSibling"])&&(e.classList.add(`${r}-${n}`),(e=e[("prev"===n?"previous":"next")+"ElementSibling"])&&e.classList.add(`${r}-${n}-${n}`))}function p(e){const n=e.target.closest(s(t.params.pagination.bulletClass));if(!n)return;e.preventDefault();const r=(0,i.i)(n)*t.params.slidesPerGroup;if(t.params.loop){if(t.realIndex===r)return;const e=(o=t.realIndex,a=r,l=t.slides.length,(a%=l)===1+(o%=l)?"next":a===o-1?"previous":void 0);"next"===e?t.slideNext():"previous"===e?t.slidePrev():t.slideToLoop(r)}else t.slideTo(r);var o,a,l}function h(){const e=t.rtl,n=t.params.pagination;if(d())return;let r,a,l=t.pagination.el;l=(0,i.m)(l);const p=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,h=t.params.loop?Math.ceil(p/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.loop?(a=t.previousRealIndex||0,r=t.params.slidesPerGroup>1?Math.floor(t.realIndex/t.params.slidesPerGroup):t.realIndex):void 0!==t.snapIndex?(r=t.snapIndex,a=t.previousSnapIndex):(a=t.previousIndex||0,r=t.activeIndex||0),"bullets"===n.type&&t.pagination.bullets&&t.pagination.bullets.length>0){const o=t.pagination.bullets;let s,d,p;if(n.dynamicBullets&&(u=(0,i.h)(o[0],t.isHorizontal()?"width":"height",!0),l.forEach(e=>{e.style[t.isHorizontal()?"width":"height"]=u*(n.dynamicMainBullets+4)+"px"}),n.dynamicMainBullets>1&&void 0!==a&&(c+=r-(a||0),c>n.dynamicMainBullets-1?c=n.dynamicMainBullets-1:c<0&&(c=0)),s=Math.max(r-c,0),d=s+(Math.min(o.length,n.dynamicMainBullets)-1),p=(d+s)/2),o.forEach(e
2=>{const t=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(e=>`${n.bulletActiveClass}${e}`)].map(e=>"string"==typeof e&&e.includes(" ")?e.split(" "):e).flat();e.classList.remove(...t)}),l.length>1)o.forEach(e=>{const o=(0,i.i)(e);o===r?e.classList.add(...n.bulletActiveClass.split(" ")):t.isElement&&e.setAttribute("part","bullet"),n.dynamicBullets&&(o>=s&&o<=d&&e.classList.add(...`${n.bulletActiveClass}-main`.split(" ")),o===s&&f(e,"prev"),o===d&&f(e,"next"))});else{const e=o[r];if(e&&e.classList.add(...n.bulletActiveClass.split(" ")),t.isElement&&o.forEach((e,t)=>{e.setAttribute("part",t===r?"bullet-active":"bullet")}),n.dynamicBullets){const e=o[s],t=o[d];for(let e=s;e<=d;e+=1)o[e]&&o[e].classList.add(...`${n.bulletActiveClass}-main`.split(" "));f(e,"prev"),f(t,"next")}}if(n.dynamicBullets){const r=Math.min(o.length,n.dynamicMainBullets+4),i=(u*r-u)/2-p*u,a=e?"right":"left";o.forEach(e=>{e.style[t.isHorizontal()?a:"top"]=`${i}px`})}}l.forEach((e,a)=>{if("fraction"===n.type&&(e.querySelectorAll(s(n.currentClass)).forEach(e=>{e.textContent=n.formatFractionCurrent(r+1)}),e.querySelectorAll(s(n.totalClass)).forEach(e=>{e.textContent=n.formatFractionTotal(h)})),"progressbar"===n.type){let i;i=n.progressbarOpposite?t.isHorizontal()?"vertical":"horizontal":t.isHorizontal()?"horizontal":"vertical";const o=(r+1)/h;let a=1,l=1;"horizontal"===i?a=o:l=o,e.querySelectorAll(s(n.progressbarFillClass)).forEach(e=>{e.style.transform=`translate3d(0,0,0) scaleX(${a}) scaleY(${l})`,e.style.transitionDuration=`${t.params.speed}ms`})}"custom"===n.type&&n.renderCustom?((0,i.s)(e,n.renderCustom(t,r+1,h)),0===a&&o("paginationRender",e)):(0===a&&o("paginationRender",e),o("paginationUpdate",e)),t.params.watchOverflow&&t.enabled&&e.classList[t.isLocked?"add":"remove"](n.lockClass)})}function m(){const e=t.params.pagination;if(d())return;const n=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.grid&&t.params.grid.rows>1?t.slides.length/Math.ceil(t.params.grid.rows):t.slides.length;let r=t.pagination.el;r=(0,i.m)(r);let a="";if("bullets"===e.type){let r=t.params.loop?Math.ceil(n/t.params.slidesPerGroup):t.snapGrid.length;t.params.freeMode&&t.params.freeMode.enabled&&r>n&&(r=n);for(let n=0;n<r;n+=1)e.renderBullet?a+=e.renderBullet.call(t,n,e.bulletClass):a+=`<${e.bulletElement} ${t.isElement?'part="bullet"':""} class="${e.bulletClass}"></${e.bulletElement}>`}"fraction"===e.type&&(a=e.renderFraction?e.renderFraction.call(t,e.currentClass,e.totalClass):`<span class="${e.currentClass}"></span> / <span class="${e.totalClass}"></span>`),"progressbar"===e.type&&(a=e.renderProgressbar?e.renderProgressbar.call(t,e.progressbarFillClass):`<span class="${e.progressbarFillClass}"></span>`),t.pagination.bullets=[],r.forEach(n=>{"custom"!==e.type&&(0,i.s)(n,a||""),"bullets"===e.type&&t.pagination.bullets.push(...n.querySelectorAll(s(e.bulletClass)))}),"custom"!==e.type&&o("paginationRender",r[0])}function g(){t.params.pagination=a(t,t.originalParams.pagination,t.params.pagination,{el:"swiper-pagination"});const e=t.params.pagination;if(!e.el)return;let n;"string"==typeof e.el&&t.isElement&&(n=t.el.querySelector(e.el)),n||"string"!=typeof e.el||(n=[...document.querySelectorAll(e.el)]),n||(n=e.el),n&&0!==n.length&&(t.params.uniqueNavElements&&"string"==typeof e.el&&Array.isArray(n)&&n.length>1&&(n=[...t.el.querySelectorAll(e.el)],n.length>1&&(n=n.find(e=>(0,i.b)(e,".swiper")[0]===t.el))),Array.isArray(n)&&1===n.length&&(n=n[0]),Object.assign(t.pagination,{el:n}
2),n=(0,i.m)(n),n.forEach(n=>{"bullets"===e.type&&e.clickable&&n.classList.add(...(e.clickableClass||"").split(" ")),n.classList.add(e.modifierClass+e.type),n.classList.add(t.isHorizontal()?e.horizontalClass:e.verticalClass),"bullets"===e.type&&e.dynamicBullets&&(n.classList.add(`${e.modifierClass}${e.type}-dynamic`),c=0,e.dynamicMainBullets<1&&(e.dynamicMainBullets=1)),"progressbar"===e.type&&e.progressbarOpposite&&n.classList.add(e.progressbarOppositeClass),e.clickable&&n.addEventListener("click",p),t.enabled||n.classList.add(e.lockClass)}))}function y(){const e=t.params.pagination;if(d())return;let n=t.pagination.el;n&&(n=(0,i.m)(n),n.forEach(n=>{n.classList.remove(e.hiddenClass),n.classList.remove(e.modifierClass+e.type),n.classList.remove(t.isHorizontal()?e.horizontalClass:e.verticalClass),e.clickable&&(n.classList.remove(...(e.clickableClass||"").split(" ")),n.removeEventListener("click",p))})),t.pagination.bullets&&t.pagination.bullets.forEach(t=>t.classList.remove(...e.bulletActiveClass.split(" ")))}r("changeDirection",()=>{if(!t.pagination||!t.pagination.el)return;const e=t.params.pagination;let{el:n}=t.pagination;
2n=(0,i.m)(n),n.forEach(n=>{n.classList.remove(e.horizontalClass,e.verticalClass),n.classList.add(t.isHorizontal()?e.horizontalClass:e.verticalClass)})}),r("init",()=>{!1===t.params.pagination.enabled?v():(g(),m(),h())}),r("activeIndexChange",()=>{void 0===t.snapIndex&&h()}),r("snapIndexChange",()=>{h()}),r("snapGridLengthChange",()=>{m(),h()}),r("destroy",()=>{y()}),r("enable disable",()=>{let{el:e}=t.pagination;e&&(e=(0,i.m)(e),e.forEach(e=>e.classList[t.enabled?"remove":"add"](t.params.pagination.lockClass)))}),r("lock unlock",()=>{h()}),r("click",(e,n)=>{const r=n.target,a=(0,i.m)(t.pagination.el);if(t.params.pagination.el&&t.params.pagination.hideOnClick&&a&&a.length>0&&!r.classList.contains(t.params.pagination.bulletClass)){if(t.navigation&&(t.navigation.nextEl&&r===t.navigation.nextEl||t.navigation.prevEl&&r===t.navigation.prevEl))return;const e=a[0].classList.contains(t.params.pagination.hiddenClass);o(!0===e?"paginationShow":"paginationHide"),a.forEach(e=>e.classList.toggle(t.params.pagination.hiddenClass))}});const v=()=>{t.el.classList.add(t.params.pagination.paginationDisabledClass);let{el:e}=t.pagination;e&&(e=(0,i.m)(e),e.forEach(e=>e.classList.add(t.params.pagination.paginationDisabledClass))),y()};Object.assign(t.pagination,{enable:()=>{t.el.classList.remove(t.params.pagination.paginationDisabledClass);let{el:e}=t.pagination;e&&(e=(0,i.m)(e),e.forEach(e=>e.classList.remove(t.params.pagination.paginationDisabledClass))),g(),m(),h()},disable:v,render:m,update:h,init:g,destroy:y})}function c(e){let{swiper:t,extendParams:n,on:o}=e;n({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}}),t.a11y={clicked:!1};let a,l,u=null,c=(new Date).getTime();function d(e){const t=u;0!==t.length&&(0,i.s)(t,e)}function f(e){(e=(0,i.m)(e)).forEach(e=>{e.setAttribute("tabIndex","0")})}function p(e){(e=(0,i.m)(e)).forEach(e=>{e.setAttribute("tabIndex","-1")})}function h(e,t){(e=(0,i.m)(e)).forEach(e=>{e.setAttribute("role",t)})}function m(e,t){(e=(0,i.m)(e)).forEach(e=>{e.setAttribute("aria-roledescription",t)})}function g(e,t){(e=(0,i.m)(e)).forEach(e=>{e.setAttribute("aria-label",t)})}function y(e){(e=(0,i.m)(e)).forEach(e=>{e.setAttribute("aria-disabled",!0)})}function v(e){(e=(0,i.m)(e)).forEach(e=>{e.setAttribute("aria-disabled",!1)})}function b(e){if(13!==e.keyCode&&32!==e.keyCode)return;const n=t.params.a11y,r=e.target;if(!t.pagination||!t.pagination.el||r!==t.pagination.el&&!t.pagination.el.contains(e.target)||e.target.matches(s(t.params.pagination.bulletClass))){if(t.navigation&&t.navigation.prevEl&&t.navigation.nextEl){const e=(0,i.m)(t.navigation.prevEl);(0,i.m)(t.navigation.nextEl).includes(r)&&(t.isEnd&&!t.params.loop||t.slideNext(),t.isEnd?d(n.lastSlideMessage):d(n.nextSlideMessage)),e.includes(r)&&(t.isBeginning&&!t.params.loop||t.slidePrev(),t.isBeginning?d(n.firstSlideMessage):d(n.prevSlideMessage))}t.pagination&&r.matches(s(t.params.pagination.bulletClass))&&r.click()}}function w(){return t.pagination&&t.pagination.bullets&&t.pagination.bullets.length}function S(){return w()&&t.params.pagination.clickable}const E=(e,t,n)=>{f(e),"BUTTON"!==e.tagName&&(h(e,"button"),e.addEventListener("keydown",b)),g(e,n),function(e,t){(e=(0,i.m)(e)).forEach(e=>{e.setAttribute("aria-controls",t)})}(e,t)},x=e=>{l&&l!==e.target&&!l.contains(e.target)&&(a=!0),t.a11y.clicked=!0},k=()=>{a=!1,requestAnimationFrame(()=>{requestAnimationFrame(()=>{t.destroyed||(t.a11y.clicked=!1)})})},T=e=>{c=(new Date).getTime()},C=e=>{if(t.a11y.clicked||!t.params.a11y.scrollOnFocus)return;if((new Date).getTime()-c<100)return;const n=e.target.closest(`.${t.params.slideClass}, swiper-slide`);if(!n||!t.slides.includes(n))return;l=n;const r=t.slides.indexOf(n)===t.activeIndex,i=t.params.watchSlidesProgress&&t.visibleSlides&&t.visibleSlides.includes(n);r||i||e.sourceCapabilities&&e.sourceCapabilities.firesTouchEvents||(t.isHorizontal()?t.el.scrollLeft=0:t.el.scrollTop=0,requestAnimationFrame(()=>
2{a||(t.params.loop?t.slideToLoop(t.getSlideIndexWhenGrid(parseInt(n.getAttribute("data-swiper-slide-index"))),0):t.slideTo(t.getSlideIndexWhenGrid(t.slides.indexOf(n)),0),a=!1)}))},O=()=>{const e=t.params.a11y;e.itemRoleDescriptionMessage&&m(t.slides,e.itemRoleDescriptionMessage),e.slideRole&&h(t.slides,e.slideRole);const n=t.slides.length;e.slideLabelMessage&&t.slides.forEach((r,i)=>{const o=t.params.loop?parseInt(r.getAttribute("data-swiper-slide-index"),10):i;g(r,e.slideLabelMessage.replace(/\{\{index\}\}/,o+1).replace(/\{\{slidesLength\}\}/,n))})},P=()=>{const e=t.params.a11y;t.el.append(u);const n=t.el;e.containerRoleDescriptionMessage&&m(n,e.containerRoleDescriptionMessage),e.containerMessage&&g(n,e.containerMessage),e.containerRole&&h(n,e.containerRole);const o=t.wrapperEl,a=e.id||o.getAttribute("id")||`swiper-wrapper-${l=16,void 0===l&&(l=16),"x".repeat(l).replace(/x/g,()=>Math.round(16*Math.random()).toString(16))}`;var l;const s=t.params.autoplay&&t.params.autoplay.enabled?"off":"polite";var c,d;c=o,d=a,(c=(0,i.m)(c)).forEach(e=>{e.setAttribute("id",d)}),function(e,t){(e=(0,i.m)(e)).forEach(e=>{e.setAttribute("aria-live",t)})}(o,s),O();let{nextEl:f,prevEl:p}=t.navigation?t.navigation:{};if(f=(0,i.m)(f),p=(0,i.m)(p),f&&f.forEach(t=>E(t,a,e.nextSlideMessage)),p&&p.forEach(t=>E(t,a,e.prevSlideMessage)),S()){(0,i.m)(t.pagination.el).forEach(e=>{e.addEventListener("keydown",b)})}(0,r.g)().addEventListener("visibilitychange",T),t.el.addEventListener("focus",C,!0),t.el.addEventListener("focus",C,!0),t.el.addEventListener("pointerdown",x,!0),t.el.addEventListener("pointerup",k,!0)};o("beforeInit",()=>{u=(0,i.c)("span",t.params.a11y.notificationClass),u.setAttribute("aria-live","assertive"),u.setAttribute("aria-atomic","true")}),o("afterInit",()=>{t.params.a11y.enabled&&P()}),o("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{t.params.a11y.enabled&&O()}),o("fromEdge toEdge afterInit lock unlock",()=>{t.params.a11y.enabled&&function(){if(t.params.loop||t.params.rewind||!t.navigation)return;const{nextEl:e,prevEl:n}=t.navigation;n&&(t.isBeginning?(y(n),p(n)):(v(n),f(n))),e&&(t.isEnd?(y(e),p(e)):(v(e),f(e)))}()}),o("paginationUpdate",()=>{t.params.a11y.enabled&&function(){const e=t.params.a11y;w()&&t.pagination.bullets.forEach(n=>{t.params.pagination.clickable&&(f(n),t.params.pagination.renderBullet||(h(n,"button"),g(n,e.paginationBulletMessage.replace(/\{\{index\}\}/,(0,i.i)(n)+1)))),n.matches(s(t.params.pagination.bulletActiveClass))?n.setAttribute("aria-current","true"):n.removeAttribute("aria-current")})}()}),o("destroy",()=>{t.params.a11y.enabled&&function(){u&&u.remove();let{nextEl:e,prevEl:n}=t.navigation?t.navigation:{};e=(0,i.m)(e),n=(0,i.m)(n),e&&e.forEach(e=>e.removeEventListener("keydown",b)),n&&n.forEach(e=>e.removeEventListener("keydown",b)),S()&&(0,i.m)(t.pagination.el).forEach(e=>{e.removeEventListener("keydown",b)});(0,r.g)().removeEventListener("visibilitychange",T),t.el&&"string"!=typeof t.el&&(t.el.removeEventListener("focus",C,!0),t.el.removeEventListener("pointerdown",x,!0),t.el.removeEventListener("pointerup",k,!0))}()})}function d(e){let t,n,{swiper:i,extendParams:o,on:a,emit:l,params:s}=e;i.autoplay={running:!1,paused:!1,timeLeft:0},o({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let u,c,d,f,p,h,m,g,y=s&&s.autoplay?s.autoplay.delay:3e3,v=s&&s.autoplay?s.autoplay.delay:3e3,b=(new Date).getTime();function w(e){i&&!i.destroyed&&i.wrapperEl&&e.target===i.wrapperEl&&(i.wrapperEl.removeEventListener("transitionend",w),g||e.detail&&e.detail.bySwiperTouchMove||C())}const S=()=>{if(i.destroyed||!i.autoplay.running)return;i.autoplay.paused?c=!0:c&&(v=u,c=!1);const e=i.autoplay.paused?u:b+v-(new Date).getTime();i.autoplay.timeLeft=e,l("autoplayTimeLeft",e,e/y),n=requestAnimationFrame(()=>{S()})},E=e=>{if(i.destroyed||!i.autoplay.running)return;cancelAnimationFrame(n),S();let r=void 0===e?i.params.autoplay.delay:e;y=i.params.autoplay.delay,v=i.params.autoplay.delay;const o=(()=>{let e;if(e=i.virtual&&i.params.virtual.enabled?i.slides.find(e=>e.classList.contains("swiper-slide-active")):i.slides[i.activeIndex],!e)return;
2return parseInt(e.getAttribute("data-swiper-autoplay"),10)})();!Number.isNaN(o)&&o>0&&void 0===e&&(r=o,y=o,v=o),u=r;const a=i.params.speed,s=()=>{i&&!i.destroyed&&(i.params.autoplay.reverseDirection?!i.isBeginning||i.params.loop||i.params.rewind?(i.slidePrev(a,!0,!0),l("autoplay")):i.params.autoplay.stopOnLastSlide||(i.slideTo(i.slides.length-1,a,!0,!0),l("autoplay")):!i.isEnd||i.params.loop||i.params.rewind?(i.slideNext(a,!0,!0),l("autoplay")):i.params.autoplay.stopOnLastSlide||(i.slideTo(0,a,!0,!0),l("autoplay")),i.params.cssMode&&(b=(new Date).getTime(),requestAnimationFrame(()=>{E()})))};return r>0?(clearTimeout(t),t=setTimeout(()=>{s()},r)):requestAnimationFrame(()=>{s()}),r},x=()=>{b=(new Date).getTime(),i.autoplay.running=!0,E(),l("autoplayStart")},k=()=>{i.autoplay.running=!1,clearTimeout(t),cancelAnimationFrame(n),l("autoplayStop")},T=(e,n)=>{if(i.destroyed||!i.autoplay.running)return;clearTimeout(t),e||(m=!0);const r=()=>{l("autoplayPause"),i.params.autoplay.waitForTransition?i.wrapperEl.addEventListener("transitionend",w):C()};if(i.autoplay.paused=!0,n)return h&&(u=i.params.autoplay.delay),h=!1,void r();const o=u||i.params.autoplay.delay;u=o-((new Date).getTime()-b),i.isEnd&&u<0&&!i.params.loop||(u<0&&(u=0),r())},C=()=>{i.isEnd&&u<0&&!i.params.loop||i.destroyed||!i.autoplay.running||(b=(new Date).getTime(),m?(m=!1,E(u)):E(),i.autoplay.paused=!1,l("autoplayResume"))},O=()=>{if(i.destroyed||!i.autoplay.running)return;const e=(0,r.g)();"hidden"===e.visibilityState&&(m=!0,T(!0)),"visible"===e.visibilityState&&C()},P=e=>{"mouse"===e.pointerType&&(m=!0,g=!0,i.animating||i.autoplay.paused||T(!0))},I=e=>{"mouse"===e.pointerType&&(g=!1,i.autoplay.paused&&C())};a("init",()=>{i.params.autoplay.enabled&&(i.params.autoplay.pauseOnMouseEnter&&(i.el.addEventListener("pointerenter",P),i.el.addEventListener("pointerleave",I)),(0,r.g)().addEventListener("visibilitychange",O),x())}),a("destroy",()=>{i.el&&"string"!=typeof i.el&&(i.el.removeEventListener("pointerenter",P),i.el.removeEventListener("pointerleave",I)),(0,r.g)().removeEventListener("visibilitychange",O),i.autoplay.running&&k()}),a("_freeModeStaticRelease",()=>{(f||m)&&C()}),a("_freeModeNoMomentumRelease",()=>{i.params.autoplay.disableOnInteraction?k():T(!0,!0)}),a("beforeTransitionStart",(e,t,n)=>{!i.destroyed&&i.autoplay.running&&(n||!i.params.autoplay.disableOnInteraction?T(!0,!0):k())}),a("sliderFirstMove",()=>{!i.destroyed&&i.autoplay.running&&(i.params.autoplay.disableOnInteraction?k():(d=!0,f=!1,m=!1,p=setTimeout(()=>{m=!0,f=!0,T(!0)},200)))}),a("touchEnd",()=>{if(!i.destroyed&&i.autoplay.running&&d){if(clearTimeout(p),clearTimeout(t),i.params.autoplay.disableOnInteraction)return f=!1,void(d=!1);f&&i.params.cssMode&&C(),f=!1,d=!1}}),a("slideChange",()=>{!i.destroyed&&i.autoplay.running&&(h=!0)}),Object.assign(i.autoplay,{start:x,stop:k,pause:T,resume:C})}},414:function(e){"use strict";e.exports=Math.round},453:function(e,t,n){"use strict";var r,i=n(9612),o=n(9383),a=n(1237),l=n(9290),s=n(9538),u=n(8068),c=n(9675),d=n(5345),f=n(1514),p=n(8968),h=n(6188),m=n(8002),g=n(5880),y=n(414),v=n(3093),b=Function,w=function(e){try{return b('"use strict"; return ('+e+").constructor;")()}catch(e){}},S=n(5795),E=n(655),x=function(){throw new c},k=S?function(){try{return x}catch(e){try{return S(arguments,"callee").get}catch(e){return x}}}():x,T=n(4039)(),C=n(3628),O=n(1064),P=n(8648),I=n(1002),A=n(76),_={},M="undefined"!=typeof Uint8Array&&C?C(Uint8Array):r,L={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":T&&C?C([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":_,"%AsyncGenerator%":_,"%AsyncGeneratorFunction%":_,"%AsyncIteratorPrototype%":_,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":a,"%Float16Array%":"undefined"==typeof Float16Array?r:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":b,"%GeneratorFunction%":_,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%
2IteratorPrototype%":T&&C?C(C([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&T&&C?C((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":i,"%Object.getOwnPropertyDescriptor%":S,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":l,"%ReferenceError%":s,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&T&&C?C((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":T&&C?C(""[Symbol.iterator]()):r,"%Symbol%":T?Symbol:r,"%SyntaxError%":u,"%ThrowTypeError%":k,"%TypedArray%":M,"%TypeError%":c,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":d,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet,"%Function.prototype.call%":A,"%Function.prototype.apply%":I,"%Object.defineProperty%":E,"%Object.getPrototypeOf%":O,"%Math.abs%":f,"%Math.floor%":p,"%Math.max%":h,"%Math.min%":m,"%Math.pow%":g,"%Math.round%":y,"%Math.sign%":v,"%Reflect.getPrototypeOf%":P};if(C)try{null.error}catch(e){var R=C(C(e));L["%Error.prototype%"]=R}var N=function e(t){var n;if("%AsyncFunction%"===t)n=w("async function () {}");else if("%GeneratorFunction%"===t)n=w("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=w("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&C&&(n=C(i.prototype))}return L[t]=n,n},D={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},j=n(6743),F=n(9957),z=j.call(A,Array.prototype.concat),U=j.call(I,Array.prototype.splice),H=j.call(A,String.prototype.replace),B=j.call(A,String.prototype.slice),$=j.call(A,RegExp.prototype.exec),V=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,W=/\\(\\)?/g,q=function(e,t){var n,r=e;if(F(D,r)&&(r="%"+(n=D[r])[0]+"%"),F(L,r)){var i=L[r];if(i===_&&(i=N(r)),void 0===i&&!t)throw new c("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:i}}throw new u("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new c('"allowMissing" argument must be a boolean');if(null===$(/^%?[^%]*%?$/,e))throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=B(e,0,1),n=B(e,-1);if("%"===t&&"%"!==n)throw new u("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new u("invalid intrinsic syntax, expected opening `%`");var r=[];return H(e,V,function(e,t,n,i){r[r.length]=n?H(i,W,"$1"):t||e}),r}(e),r=n.length>0?n[0]:"",i=q("%"+r+"%",t),o=i.name,a=i.value,l=!1,s=i.alias;s&&(r=s[0],U(n,z([0,1],s)));for(var d=1,f=!0;d<n.length;d+=1){var p=n[d],h=B(p,0,1),m=B(p,-1);if(('"'===h||"'"===h||"`"===h||'"'===m||"'"===m||"`"===m)&&h!==m)throw new u("property names with quotes must have matching quotes");if("constructor"!==p&&f||(l=!0),F(L,o="%"+(r+="."+p)+"%"))a=L[o];
2else if(null!=a){if(!(p in a)){if(!t)throw new c("base intrinsic for "+e+" exists, but the property is not available.");return}if(S&&d+1>=n.length){var g=S(a,p);a=(f=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:a[p]}else f=F(a,p),a=a[p];f&&!l&&(L[o]=a)}}return a}},487:function(e,t,n){"use strict";var r=n(6897),i=n(655),o=n(3126),a=n(2205);e.exports=function(e){var t=o(arguments),n=e.length-(arguments.length-1);return r(t,1+(n>0?n:0),!0)},i?i(e.exports,"apply",{value:a}):e.exports.apply=a},507:function(e,t,n){"use strict";var r=n(453),i=n(6556),o=n(8859),a=n(9675),l=r("%Map%",!0),s=i("Map.prototype.get",!0),u=i("Map.prototype.set",!0),c=i("Map.prototype.has",!0),d=i("Map.prototype.delete",!0),f=i("Map.prototype.size",!0);e.exports=!!l&&function(){var e,t={assert:function(e){if(!t.has(e))throw new a("Side channel does not contain "+o(e))},delete:function(t){if(e){var n=d(e,t);return 0===f(e)&&(e=void 0),n}return!1},get:function(t){if(e)return s(e,t)},has:function(t){return!!e&&c(e,t)},set:function(t,n){e||(e=new l),u(e,t,n)}};return t}},592:function(e,t,n){"use strict";var r=n(655),i=function(){return!!r};i.hasArrayLengthDefineBug=function(){if(!r)return null;try{return 1!==r([],"length",{value:1}).length}catch(e){return!0}},e.exports=i},655:function(e){"use strict";var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(e){t=!1}e.exports=t},920:function(e,t,n){"use strict";var r=n(9675),i=n(8859),o=n(4803),a=n(507),l=n(2271)||a||o;e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new r("Side channel does not contain "+i(e))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,n){e||(e=l()),e.set(t,n)}};return t}},961:function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(2551)},981:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}n.d(t,{Ay:function(){return W}});var i=n(8168);function o(e,t){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},o(e,t)}var a=n(5556),l=n.n(a),s=n(6540);n(4363);const u=e=>"object"==typeof e&&null!=e&&1===e.nodeType,c=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,d=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return c(n.overflowY,t)||c(n.overflowX,t)||(e=>{const t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)})(e)}return!1},f=(e,t,n,r,i,o,a,l)=>o<e&&a>t||o>e&&a<t?0:o<=e&&l<=n||a>=t&&l>=n?o-e-r:a>t&&l<n||o<e&&l>n?a-t+i:0,p=e=>{const t=e.parentElement;return null==t?e.getRootNode().host||null:t};var h=function(){return h=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},h.apply(this,arguments)};Object.create;Object.create;"function"==typeof SuppressedError&&SuppressedError;var m=0;function g(e){return"function"==typeof e?e:y}function y(){}function v(e,t){if(e){var n=((e,t)=>{var n,r,i,o;if("undefined"==typeof document)return[];const{scrollMode:a,block:l,inline:s,boundary:c,skipOverflowHiddenElements:h}=t,m="function"==typeof c?c:e=>e!==c;if(!u(e))throw new TypeError("Invalid target");const g=document.scrollingElement||document.documentElement,y=[];let v=e;for(;u(v)&&m(v);){if(v=p(v),v===g){y.push(v);break}null!=v&&v===document.body&&d(v)&&!d(document.documentElement)||null!=v&&d(v,h)&&y.push(v)}const b=null!=(r=null==(n=window.visualViewport)?void 0:n.width)?r:innerWidth,w=null!=(o=null==(i=window.visualViewport)?void 0:i.height)?o:innerHeight,{scrollX:S,scrollY:E}=window,{height:x,width:k,top:T,right:C,bottom:O,left:P}=e.getBoundingClientRect(),{top:I,right:A,bottom:_,left:M}=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||
20,left:parseFloat(t.scrollMarginLeft)||0}})(e);let L="start"===l||"nearest"===l?T-I:"end"===l?O+_:T+x/2-I+_,R="center"===s?P+k/2-M+A:"end"===s?C+A:P-M;const N=[];for(let e=0;e<y.length;e++){const t=y[e],{height:n,width:r,top:i,right:o,bottom:u,left:c}=t.getBoundingClientRect();if("if-needed"===a&&T>=0&&P>=0&&O<=w&&C<=b&&(t===g&&!d(t)||T>=i&&O<=u&&P>=c&&C<=o))return N;const p=getComputedStyle(t),h=parseInt(p.borderLeftWidth,10),m=parseInt(p.borderTopWidth,10),v=parseInt(p.borderRightWidth,10),I=parseInt(p.borderBottomWidth,10);let A=0,_=0;const M="offsetWidth"in t?t.offsetWidth-t.clientWidth-h-v:0,D="offsetHeight"in t?t.offsetHeight-t.clientHeight-m-I:0,j="offsetWidth"in t?0===t.offsetWidth?0:r/t.offsetWidth:0,F="offsetHeight"in t?0===t.offsetHeight?0:n/t.offsetHeight:0;if(g===t)A="start"===l?L:"end"===l?L-w:"nearest"===l?f(E,E+w,w,m,I,E+L,E+L+x,x):L-w/2,_="start"===s?R:"center"===s?R-b/2:"end"===s?R-b:f(S,S+b,b,h,v,S+R,S+R+k,k),A=Math.max(0,A+E),_=Math.max(0,_+S);else{A="start"===l?L-i-m:"end"===l?L-u+I+D:"nearest"===l?f(i,u,n,m,I+D,L,L+x,x):L-(i+n/2)+D/2,_="start"===s?R-c-h:"center"===s?R-(c+r/2)+M/2:"end"===s?R-o+v+M:f(c,o,r,h,v+M,R,R+k,k);const{scrollLeft:e,scrollTop:a}=t;A=0===F?0:Math.max(0,Math.min(a+A/F,t.scrollHeight-n/F+D)),_=0===j?0:Math.max(0,Math.min(e+_/j,t.scrollWidth-r/j+M)),L+=a-A,R+=e-_}N.push({el:t,top:A,left:_})}return N})(e,{boundary:t,block:"nearest",scrollMode:"if-needed"});n.forEach(function(e){var t=e.el,n=e.top,r=e.left;t.scrollTop=n,t.scrollLeft=r})}}function b(e,t,n){return e===t||t instanceof n.Node&&e.contains&&e.contains(t)}function w(e,t){var n;function r(){n&&clearTimeout(n)}function i(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];r(),n=setTimeout(function(){n=null,e.apply(void 0,o)},t)}return i.cancel=r,i}function S(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return t.some(function(t){return t&&t.apply(void 0,[e].concat(r)),e.preventDownshiftDefault||e.hasOwnProperty("nativeEvent")&&e.nativeEvent.preventDownshiftDefault})}}function E(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){t.forEach(function(t){"function"==typeof t?t(e):t&&(t.current=e)})}}function x(){return String(m++)}function k(e){var t=e.isOpen,n=e.resultCount,r=e.previousResultCount;return t?n?n!==r?n+" result"+(1===n?" is":"s are")+" available, use up and down arrow keys to navigate. Press Enter key to select.":"":"No results are available.":""}function T(e,t){return!(e=Array.isArray(e)?e[0]:e)&&t?t:e}function C(e){return"string"==typeof e.type}function O(e){return e.props}var P=["highlightedIndex","inputValue","isOpen","selectedItem","type"];function I(e){void 0===e&&(e={});var t={};return P.forEach(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t}function A(e,t){return e&&t?Object.keys(e).reduce(function(n,r){return n[r]=_(t,r)?t[r]:e[r],n},{}):e}function _(e,t){return void 0!==e[t]}function M(e){var t=e.key,n=e.keyCode;return n>=37&&n<=40&&0!==t.indexOf("Arrow")?"Arrow"+t:t}function L(e,t,n,r,i){void 0===i&&(i=!1);var o=n.length;if(0===o)return-1;var a=o-1;("number"!=typeof e||e<0||e>a)&&(e=t>0?-1:a+1);var l=e+t;l<0?l=i?a:0:l>a&&(l=i?0:a);var s=R(l,t<0,n,r,i);return-1===s?e>=o?-1:e:s}function R(e,t,n,r,i){void 0===i&&(i=!1);var o=n.length;if(t){for(var a=e;a>=0;a--)if(!r(n[a],a))return a}else for(var l=e;l<o;l++)if(!r(n[l],l))return l;return i?R(t?o-1:0,t,n,r):-1}function N(e,t,n,r){return void 0===r&&(r=!0),n&&t.some(function(t){return t&&(b(t,e,n)||r&&b(t,n.document.activeElement,n))})}var D=w(function(e){j(e).textContent=""},500);function j(e){var t=e.getElementById("a11y-status-message");return t||((t=e.createElement("div")).setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t),t)}function F(e,t){e&&t&&(j(t).textContent=e,D(t))}var z=Object.freeze({__proto__:null,blurButton:14,blurInput:10,changeInput:11,clickButton:13,clickItem:9,controlledPropUpdatedSelectedItem:15,itemMouseEnter:2,keyDownArrowDown:4,keyDownArrowUp:3,keyDownEnd:8,keyDownEnter:6,keyDownEscape:5,keyDownHome:7,keyDownSpaceButton:12,mouseUp:1,touchEnd:16,unknown:0}),U=["refKey","ref"],H=["onClick","onPress","onKeyDown","onKeyUp","onBlur"],B=["onKeyDown","onBlur","onChange","onInput","onChangeText"],$=["refKey","ref"],V=["onMouseMove","onMouseDown","onClick","onPress","index","item"],W=function(){var e=function(e){function t(t){var n;(n=e.call(this,t)||this).id=n.props.id||"downshift-"+x(),n.menuId=n.props.menuId||n.id+"-menu",n.labelId=n.props.labelId||n.id+"-label",n.inputId=n.props.inputId||n.id+"-input",n.getItemId=n.props.getItemId||function(e){return n.id+"-item-"+e},n.items=[],n.itemCount=null,n.previousResultCount=0,n.timeoutIds=[],n.internalSetTimeout=function(e,t){var r=setTimeout(function(){n.timeoutIds=n.timeoutIds.filter(function(e){return e!==r}),e()},t);n.timeoutIds.push(r)},n.setItemCount=function(e){n.itemCount=e},n.unsetItemCount=function(){n.itemCount=null},n.isItemDisabled=function(e,t){var r=n.getItemNodeFromIndex(t);return r&&r.hasAttribute("disabled")},n.setHighlightedIndex=function(e,t){void 0===e&&(e=n.props.defaultHighlightedIndex),void 0===t&&(t={}),t=I(t),n.internalSetState((0,i.A)({highlightedIndex:e},t))},n.clearSelection=function(e){n.internalSetState({selectedItem:null,inputValue:"",highlightedIndex:n.props.defaultHighlightedIndex,isOpen:n.props.defaultIsOpen},e)},n.selectItem=function(e,t,r){t=I(t),n.internalSetState((0,i.A)({isOpen:n.props.defaultIsOpen,highlightedIndex:n.props.defaultHighlightedIndex,selectedItem:e,inputValue:n.props.itemToString(e)},t),r)},n.selectItemAtIndex=function(e,t,r){var i=n.items[e];null!=i&&n.selectItem(i,t,r)},n.selectHighlightedItem=function(e,t){return n.selectItemAtIndex(n.getState().highlightedIndex,e,t)},n.internalSetState=function(e,t){var r,o,a={},l="function"==typeof e;return!l&&e.hasOwnProperty("inputValue")&&n.props.onInputValueChange(e.inputValue,(0,i.A)({},n.getStateAndHelpers(),e)),n.setState(function(t){var s;
2t=n.getState(t);var u=l?e(t):e;u=n.props.stateReducer(t,u),r=u.hasOwnProperty("selectedItem");var c={};return r&&u.selectedItem!==t.selectedItem&&(o=u.selectedItem),(s=u).type||(s.type=0),Object.keys(u).forEach(function(e){t[e]!==u[e]&&(a[e]=u[e]),"type"!==e&&(u[e],_(n.props,e)||(c[e]=u[e]))}),l&&u.hasOwnProperty("inputValue")&&n.props.onInputValueChange(u.inputValue,(0,i.A)({},n.getStateAndHelpers(),u)),c},function(){g(t)(),Object.keys(a).length>1&&n.props.onStateChange(a,n.getStateAndHelpers()),r&&n.props.onSelect(e.selectedItem,n.getStateAndHelpers()),void 0!==o&&n.props.onChange(o,n.getStateAndHelpers()),n.props.onUserAction(a,n.getStateAndHelpers())})},n.rootRef=function(e){return n._rootNode=e},n.getRootProps=function(e,t){var o,a=void 0===e?{}:e,l=a.refKey,s=void 0===l?"ref":l,u=a.ref,c=r(a,U),d=(void 0===t?{}:t).suppressRefError,f=void 0!==d&&d;n.getRootProps.called=!0,n.getRootProps.refKey=s,n.getRootProps.suppressRefError=f;var p=n.getState().isOpen;return(0,i.A)(((o={})[s]=E(u,n.rootRef),o.role="combobox",o["aria-expanded"]=p,o["aria-haspopup"]="listbox",o["aria-owns"]=p?n.menuId:void 0,o["aria-labelledby"]=n.labelId,o),c)},n.keyDownHandlers={ArrowDown:function(e){var t=this;if(e.preventDefault(),this.getState().isOpen){var n=e.shiftKey?5:1;this.moveHighlightedIndex(n,{type:4})}else this.internalSetState({isOpen:!0,type:4},function(){var e=t.getItemCount();if(e>0){var n=L(t.getState().highlightedIndex,1,{length:e},t.isItemDisabled,!0);t.setHighlightedIndex(n,{type:4})}})},ArrowUp:function(e){var t=this;if(e.preventDefault(),this.getState().isOpen){var n=e.shiftKey?-5:-1;this.moveHighlightedIndex(n,{type:3})}else this.internalSetState({isOpen:!0,type:3},function(){var e=t.getItemCount();if(e>0){var n=L(t.getState().highlightedIndex,-1,{length:e},t.isItemDisabled,!0);t.setHighlightedIndex(n,{type:3})}})},Enter:function(e){if(229!==e.which){var t=this.getState(),n=t.isOpen,r=t.highlightedIndex;if(n&&null!=r){e.preventDefault();var i=this.items[r],o=this.getItemNodeFromIndex(r);if(null==i||o&&o.hasAttribute("disabled"))return;this.selectHighlightedItem({type:6})}}},Escape:function(e){e.preventDefault(),this.reset((0,i.A)({type:5},!this.state.isOpen&&{selectedItem:null,inputValue:""}))}}
2,n.buttonKeyDownHandlers=(0,i.A)({},n.keyDownHandlers,{" ":function(e){e.preventDefault(),this.toggleMenu({type:12})}}),n.inputKeyDownHandlers=(0,i.A)({},n.keyDownHandlers,{Home:function(e){var t=this.getState().isOpen;if(t){e.preventDefault();var n=this.getItemCount();if(!(n<=0)&&t){var r=R(0,!1,{length:n},this.isItemDisabled);this.setHighlightedIndex(r,{type:7})}}},End:function(e){var t=this.getState().isOpen;if(t){e.preventDefault();var n=this.getItemCount();if(!(n<=0)&&t){var r=R(n-1,!0,{length:n},this.isItemDisabled);this.setHighlightedIndex(r,{type:8})}}}}),n.getToggleButtonProps=function(e){var t=void 0===e?{}:e,o=t.onClick;t.onPress;var a=t.onKeyDown,l=t.onKeyUp,s=t.onBlur,u=r(t,H),c=n.getState().isOpen,d={onClick:S(o,n.buttonHandleClick),onKeyDown:S(a,n.buttonHandleKeyDown),onKeyUp:S(l,n.buttonHandleKeyUp),onBlur:S(s,n.buttonHandleBlur)},f=u.disabled?{}:d;return(0,i.A)({type:"button",role:"button","aria-label":c?"close menu":"open menu","aria-haspopup":!0,"data-toggle":!0},f,u)},n.buttonHandleKeyUp=function(e){e.preventDefault()},n.buttonHandleKeyDown=function(e){var t=M(e);
2n.buttonKeyDownHandlers[t]&&n.buttonKeyDownHandlers[t].call(n,e)},n.buttonHandleClick=function(e){if(e.preventDefault(),n.props.environment){var t=n.props.environment.document,r=t.body,i=t.activeElement;r&&r===i&&e.target.focus()}n.internalSetTimeout(function(){return n.toggleMenu({type:13})})},n.buttonHandleBlur=function(e){var t=e.target;n.internalSetTimeout(function(){if(!n.isMouseDown&&n.props.environment){var e=n.props.environment.document.activeElement;null!=e&&e.id===n.inputId||e===t||n.reset({type:14})}})},n.getLabelProps=function(e){return(0,i.A)({htmlFor:n.inputId,id:n.labelId},e)},n.getInputProps=function(e){var t=void 0===e?{}:e,o=t.onKeyDown,a=t.onBlur,l=t.onChange,s=t.onInput;t.onChangeText;var u=r(t,B),c={};var d,f=n.getState(),p=f.inputValue,h=f.isOpen,m=f.highlightedIndex;u.disabled||((d={}).onChange=S(l,s,n.inputHandleChange),d.onKeyDown=S(o,n.inputHandleKeyDown),d.onBlur=S(a,n.inputHandleBlur),c=d);return(0,i.A)({"aria-autocomplete":"list","aria-activedescendant":h&&"number"==typeof m&&m>=0?n.getItemId(m):void 0,"aria-controls":h?n.menuId:void 0,"aria-labelledby":u&&u["aria-label"]?void 0:n.labelId,autoComplete:"off",value:p,id:n.inputId},c,u)},n.inputHandleKeyDown=function(e){var t=M(e);t&&n.inputKeyDownHandlers[t]&&n.inputKeyDownHandlers[t].call(n,e)},n.inputHandleChange=function(e){n.internalSetState({type:11,isOpen:!0,inputValue:e.target.value,highlightedIndex:n.props.defaultHighlightedIndex})},n.inputHandleBlur=function(){n.internalSetTimeout(function(){var e;if(!n.isMouseDown&&n.props.environment){var t=n.props.environment.document.activeElement;(null==t||null==(e=t.dataset)?void 0:e.toggle)&&n._rootNode&&n._rootNode.contains(t)||n.reset({type:10})}})},n.menuRef=function(e){n._menuNode=e},n.getMenuProps=function(e,t){var o,a=void 0===e?{}:e,l=a.refKey,s=void 0===l?"ref":l,u=a.ref,c=r(a,$),d=(void 0===t?{}:t).suppressRefError,f=void 0!==d&&d;return n.getMenuProps.called=!0,n.getMenuProps.refKey=s,n.getMenuProps.suppressRefError=f,(0,i.A)(((o={})[s]=E(u,n.menuRef),o.role="listbox",o["aria-labelledby"]=c&&c["aria-label"]?void 0:n.labelId,o.id=n.menuId,o),c)},n.getItemProps=function(e){var t,o=void 0===e?{}:e,a=o.onMouseMove,l=o.onMouseDown,s=o.onClick;o.onPress;var u=o.index,c=o.item,d=void 0===c?void 0:c,f=r(o,V);void 0===u?(n.items.push(d),u=n.items.indexOf(d)):n.items[u]=d;var p=s,h=((t={onMouseMove:S(a,function(){u!==n.getState().highlightedIndex&&(n.setHighlightedIndex(u,{type:2}),n.avoidScrolling=!0,n.internalSetTimeout(function(){return n.avoidScrolling=!1},250))}),onMouseDown:S(l,function(e){e.preventDefault()})}).onClick=S(p,function(){n.selectItemAtIndex(u,{type:9})}),t),m=f.disabled?{onMouseDown:h.onMouseDown}:h;return(0,i.A)({id:n.getItemId(u),role:"option","aria-selected":n.getState().highlightedIndex===u},m,f)},n.clearItems=function(){n.items=[]},n.reset=function(e,t){void 0===e&&(e={}),e=I(e),n.internalSetState(function(t){var r=t.selectedItem;return(0,i.A)({isOpen:n.props.defaultIsOpen,highlightedIndex:n.props.defaultHighlightedIndex,inputValue:n.props.itemToString(r)},e)},t)},n.toggleMenu=function(e,t){void 0===e&&(e={}),e=I(e),n.internalSetState(function(t){var r=t.isOpen;return(0,i.A)({isOpen:!r},r&&{highlightedIndex:n.props.defaultHighlightedIndex},e)},function(){var r=n.getState(),i=r.isOpen,o=r.highlightedIndex;i&&n.getItemCount()>0&&"number"==typeof o&&n.setHighlightedIndex(o,e),g(t)()})},n.openMenu=function(e){n.internalSetState({isOpen:!0},e)},n.closeMenu=function(e){n.internalSetState({isOpen:!1},e)},n.updateStatus=w(function(){var e;if(null!=(e=n.props)&&null!=(e=e.environment)&&e.document){var t=n.getState(),r=n.items[t.highlightedIndex],o=n.getItemCount(),a=n.props.getA11yStatusMessage((0,i.A)({itemToString:n.props.itemToString,previousResultCount:n.previousResultCount,resultCount:o,highlightedItem:r},t));n.previousResultCount=o,F(a,n.props.environment.document)}},200);var o=n.props,a=o.defaultHighlightedIndex,l=o.initialHighlightedIndex,s=void 0===l?a:l,u=o.defaultIsOpen,c=o.initialIsOpen,d=void 0===c?u:c,f=o.initialInputValue,p=void 0===f?"":f,h=o.initialSelectedItem,m=void 0===h?null:h,y=n.getState({highlightedIndex:s,isOpen:d,inputValue:p,selectedItem:m});return null!=y.selectedItem&&void 0===n.props.initialInputValue&&(y.inputValue=n.props.itemToString(y.selectedItem)),n.state=y,n}!function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,o(e,t)}(t,e);var n=t.prototype;return n.internalClearTimeouts=function(){this.timeoutIds.forEach(function(e){clearTimeout(e)}),this.timeoutIds=[]},n.getState=function(e){return void 0===e&&(e=this.state),A(e,this.props)},n.getItemCount=function(){var e=this.items.length;return null!=this.itemCount?e=this.itemCount:void 0!==this.props.itemCount&&(e=this.props.itemCount),e},n.getItemNodeFromIndex=function(e){return this.props.environment?this.props.environment.document.getElementById(this.getItemId(e)):null},n.scrollHighlightedItemIntoView=function(){var e=this.getItemNodeFromIndex(this.getState().highlightedIndex);
2this.props.scrollIntoView(e,this._menuNode)},n.moveHighlightedIndex=function(e,t){var n=this.getItemCount(),r=this.getState().highlightedIndex;if(n>0){var i=L(r,e,{length:n},this.isItemDisabled,!0);this.setHighlightedIndex(i,t)}},n.getStateAndHelpers=function(){var e=this.getState(),t=e.highlightedIndex,n=e.inputValue,r=e.selectedItem,i=e.isOpen,o=this.props.itemToString,a=this.id,l=this.getRootProps,s=this.getToggleButtonProps,u=this.getLabelProps,c=this.getMenuProps,d=this.getInputProps,f=this.getItemProps,p=this.openMenu,h=this.closeMenu,m=this.toggleMenu,g=this.selectItem,y=this.selectItemAtIndex,v=this.selectHighlightedItem,b=this.setHighlightedIndex,w=this.clearSelection,S=this.clearItems;return{getRootProps:l,getToggleButtonProps:s,getLabelProps:u,getMenuProps:c,getInputProps:d,getItemProps:f,reset:this.reset,openMenu:p,closeMenu:h,toggleMenu:m,selectItem:g,selectItemAtIndex:y,selectHighlightedItem:v,setHighlightedIndex:b,clearSelection:w,clearItems:S,setItemCount:this.setItemCount,unsetItemCount:this.unsetItemCount,setState:this.internalSetState,itemToString:o,id:a,highlightedIndex:t,inputValue:n,isOpen:i,selectedItem:r}},n.componentDidMount=function(){var e=this;if(this.props.environment){var t=function(){e.isMouseDown=!0},n=function(t){e.isMouseDown=!1,!N(t.target,[e._rootNode,e._menuNode],e.props.environment)&&e.getState().isOpen&&e.reset({type:1},function(){return e.props.onOuterClick(e.getStateAndHelpers())})},r=function(){e.isTouchMove=!1},i=function(){e.isTouchMove=!0},o=function(t){var n=N(t.target,[e._rootNode,e._menuNode],e.props.environment,!1);e.isTouchMove||n||!e.getState().isOpen||e.reset({type:16},function(){return e.props.onOuterClick(e.getStateAndHelpers())})},a=this.props.environment;a.addEventListener("mousedown",t),a.addEventListener("mouseup",n),a.addEventListener("touchstart",r),a.addEventListener("touchmove",i),a.addEventListener("touchend",o),this.cleanup=function(){e.internalClearTimeouts(),e.updateStatus.cancel(),a.removeEventListener("mousedown",t),a.removeEventListener("mouseup",n),a.removeEventListener("touchstart",r),a.removeEventListener("touchmove",i),a.removeEventListener("touchend",o)}}else this.cleanup=function(){e.internalClearTimeouts()}},n.shouldScroll=function(e,t){var n=(void 0===this.props.highlightedIndex?this.getState():this.props).highlightedIndex,r=(void 0===t.highlightedIndex?e:t).highlightedIndex;return n&&this.getState().isOpen&&!e.isOpen||n!==r},n.componentDidUpdate=function(e,t){_(this.props,"selectedItem")&&this.props.selectedItemChanged(e.selectedItem,this.props.selectedItem)&&this.internalSetState({type:15,inputValue:this.props.itemToString(this.props.selectedItem)}),!this.avoidScrolling&&this.shouldScroll(t,e)&&this.scrollHighlightedItemIntoView(),this.updateStatus()},n.componentWillUnmount=function(){this.cleanup()},n.render=function(){var e=T(this.props.children,y);this.clearItems(),this.getRootProps.called=!1,this.getRootProps.refKey=void 0,this.getRootProps.suppressRefError=void 0,this.getMenuProps.called=!1,this.getMenuProps.refKey=void 0,this.getMenuProps.suppressRefError=void 0,this.getLabelProps.called=!1,this.getInputProps.called=!1;var t=T(e(this.getStateAndHelpers()));return t?this.getRootProps.called||this.props.suppressRefError?t:C(t)?(0,s.cloneElement)(t,this.getRootProps(O(t))):void 0:null},t}(s.Component);return e.defaultProps={defaultHighlightedIndex:null,defaultIsOpen:!1,getA11yStatusMessage:k,itemToString:function(e){return null==e?"":String(e)},onStateChange:y,onInputValueChange:y,onUserAction:y,onChange:y,onSelect:y,onOuterClick:y,selectedItemChanged:function(e,t){return e!==t},environment:"undefined"==typeof window?void 0:window,stateReducer:function(e,t){return t},suppressRefError:!1,scrollIntoView:v},e.stateChangeTypes=z,e}();w(function(e,t){F(e,t)},200),"undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?s.useLayoutEffect:s.useEffect;var q={itemToString:function(e){return e?String(e):""},itemToKey:function(e){return e},stateReducer:function(e,t){return t.changes},scrollIntoView:v,environment:"undefined"==typeof window?void 0:window};var G={environment:l().shape({addEventListener:l().func.isRequired,removeEventListener:l().func.isRequired,document:l().shape({createElement:l().func.isRequired,getElementById:l().func.isRequired,activeElement:l().any.isRequired,body:l().any.isRequired}).isRequired,Node:l().func.isRequired}),itemToString:l().func,itemToKey:l().func,stateReducer:l().func},K=(0,i.A)({}
2,G,{getA11yStatusMessage:l().func,highlightedIndex:l().number,defaultHighlightedIndex:l().number,initialHighlightedIndex:l().number,isOpen:l().bool,defaultIsOpen:l().bool,initialIsOpen:l().bool,selectedItem:l().any,initialSelectedItem:l().any,defaultSelectedItem:l().any,id:l().string,labelId:l().string,menuId:l().string,getItemId:l().func,toggleButtonId:l().string,onSelectedItemChange:l().func,onHighlightedIndexChange:l().func,onStateChange:l().func,onIsOpenChange:l().func,scrollIntoView:l().func});h(h({},K),{items:l().array.isRequired,isItemDisabled:l().func}),h(h({},q),{isItemDisabled:function(){return!1}});(0,i.A)({},K,{items:l().array.isRequired,isItemDisabled:l().func,inputValue:l().string,defaultInputValue:l().string,initialInputValue:l().string,inputId:l().string,onInputValueChange:l().func});(0,i.A)({},q,{isItemDisabled:function(){return!1}});l().array,l().array,l().array,l().func,l().number,l().number,l().number,l().func,l().func,l().string,l().string},1002:function(e){"use strict";e.exports=Function.prototype.apply},1064:function(e,t,n){"use strict";var r=n(9612);e.exports=r.getPrototypeOf||null},1093:function(e){"use strict";var t=Object.prototype.toString;e.exports=function(e){var n=t.call(e),r="[object Arguments]"===n;return r||(r="[object Array]"!==n&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),r}},1189:function(e,t,n){"use strict";var r=Array.prototype.slice,i=n(1093),o=Object.keys,a=o?function(e){return o(e)}:n(8875),l=Object.keys;a.shim=function(){if(Object.keys){var e=function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2);e||(Object.keys=function(e){return i(e)?l(r.call(e)):l(e)})}else Object.keys=a;return Object.keys||a},e.exports=a},1236:function(e,t,n){"use strict";n.d(t,{A:function(){return j}});var r=n(2375),i=n(7044);let o,a,l;function s(){return o||(o=function(){const e=(0,r.a)(),t=(0,r.g)();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}()),o}function u(e){return void 0===e&&(e={}),a||(a=function(e){let{userAgent:t}=void 0===e?{}:e;const n=s(),i=(0,r.a)(),o=i.navigator.platform,a=t||i.navigator.userAgent,l={ios:!1,android:!1},u=i.screen.width,c=i.screen.height,d=a.match(/(Android);?[\s\/]+([\d.]+)?/);let f=a.match(/(iPad).*OS\s([\d_]+)/);const p=a.match(/(iPod)(.*OS\s([\d_]+))?/),h=!f&&a.match(/(iPhone\sOS|iOS)\s([\d_]+)/),m="Win32"===o;let g="MacIntel"===o;return!f&&g&&n.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${u}x${c}`)>=0&&(f=a.match(/(Version)\/([\d.]+)/),f||(f=[0,1,"13_0_0"]),g=!1),d&&!m&&(l.os="android",l.android=!0),(f||h||p)&&(l.os="ios",l.ios=!0),l}(e)),a}function c(){return l||(l=function(){const e=(0,r.a)(),t=u();let n=!1;function i(){const t=e.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0}if(i()){const t=String(e.navigator.userAgent);if(t.includes("Version/")){const[e,r]=t.split("Version/")[1].split(" ")[0].split(".").map(e=>Number(e));n=e<16||16===e&&r<2}}const o=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent),a=i();return{isSafari:n||a,needPerspectiveFix:n,need3dFix:a||o&&t.ios,isWebView:o}}()),l}var d={on(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed)return r;if("function"!=typeof t)return r;const i=n?"unshift":"push";return e.split(" ").forEach(e=>{r.eventsListeners[e]||(r.eventsListeners[e]=[]),r.eventsListeners[e][i](t)}),r},once(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed)return r;if("function"!=typeof t)return r;function i(){r.off(e,i),i.__emitterProxy&&delete i.__emitterProxy;for(var n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];t.apply(r,o)}return i.__emitterProxy=t,r.on(e,i,n)},onAny(e,t){const n=this;if(!n.eventsListeners||n.destroyed)return n;if("function"!=typeof e)return n;const r=t?"unshift":"push";return n.eventsAnyListeners.indexOf(e)<0&&n.eventsAnyListeners[r](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
2=>{void 0===t?n.eventsListeners[e]=[]:n.eventsListeners[e]&&n.eventsListeners[e].forEach((r,i)=>{(r===t||r.__emitterProxy&&r.__emitterProxy===t)&&n.eventsListeners[e].splice(i,1)})}),n):n},emit(){const e=this;if(!e.eventsListeners||e.destroyed)return e;if(!e.eventsListeners)return e;let t,n,r;for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];"string"==typeof o[0]||Array.isArray(o[0])?(t=o[0],n=o.slice(1,o.length),r=e):(t=o[0].events,n=o[0].data,r=o[0].context||e),n.unshift(r);return(Array.isArray(t)?t:t.split(" ")).forEach(t=>{e.eventsAnyListeners&&e.eventsAnyListeners.length&&e.eventsAnyListeners.forEach(e=>{e.apply(r,[t,...n])}),e.eventsListeners&&e.eventsListeners[t]&&e.eventsListeners[t].forEach(e=>{e.apply(r,n)})}),e}};const f=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)};const p=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)};const h=(e,t)=>{if(!e||e.destroyed||!e.params)return;const n=t.closest(e.isElement?"swiper-slide":`.${e.params.slideClass}`);if(n){let t=n.querySelector(`.${e.params.lazyPreloaderClass}`);!t&&e.isElement&&(n.shadowRoot?t=n.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{n.shadowRoot&&(t=n.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`),t&&t.remove())})),t&&t.remove()}},m=(e,t)=>{if(!e.slides[t])return;const n=e.slides[t].querySelector('[loading="lazy"]');n&&n.removeAttribute("loading")},g=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 r="auto"===e.params.slidesPerView?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),i=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){const n=i,o=[n-t];return o.push(...Array.from({length:t}).map((e,t)=>n+r+t)),void e.slides.forEach((t,n)=>{o.includes(t.column)&&m(e,n)})}const o=i+r-1;if(e.params.rewind||e.params.loop)for(let r=i-t;r<=o+t;r+=1){const t=(r%n+n)%n;(t<i||t>o)&&m(e,t)}else for(let r=Math.max(i-t,0);r<=Math.min(o+t,n-1);r+=1)r!==i&&(r>o||r<i)&&m(e,r)};var y={updateSize:function(){const e=this;let t,n;const r=e.el;t=void 0!==e.params.width&&null!==e.params.width?e.params.width:r.clientWidth,n=void 0!==e.params.height&&null!==e.params.height?e.params.height:r.clientHeight,0===t&&e.isHorizontal()||0===n&&e.isVertical()||(t=t-parseInt((0,i.q)(r,"padding-left")||0,10)-parseInt((0,i.q)(r,"padding-right")||0,10),n=n-parseInt((0,i.q)(r,"padding-top")||0,10)-parseInt((0,i.q)(r,"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:r,slidesEl:o,size:a,rtlTranslate:l,wrongRTL:s}=e,u=e.virtual&&n.virtual.enabled,c=u?e.virtual.slides.length:e.slides.length,d=(0,i.e)(o,`.${e.params.slideClass}, swiper-slide`),f=u?e.virtual.slides.length:d.length;let p=[];const h=[],m=[];let g=n.slidesOffsetBefore;"function"==typeof g&&(g=n.slidesOffsetBefore.call(e));let y=n.slidesOffsetAfter;"function"==typeof y&&(y=n.slidesOffsetAfter.call(e));const v=e.snapGrid.length,b=e.slidesGrid.length;let w=n.spaceBetween,S=-g,E=0,x=0;if(void 0===a)return;"string"==typeof w&&w.indexOf("%")>=0?w=parseFloat(w.replace("%",""))/100*a:"string"==typeof w&&(w=parseFloat(w)),e.virtualSize=-w,d.forEach(e=>{l?e.style.marginLeft="":e.style.marginRight="",e.style.marginBottom="",e.style.marginTop=""}),n.centeredSlides&&n.cssMode&&((0,i.a)(r,"--swiper-centered-offset-before",""),(0,i.a)(r,"--swiper-centered-offset-after",""));const k=n.grid&&n.grid.rows>1&&e.grid;let T;k?e.grid.initSlides(d):e.grid&&e.grid.unsetSlides();const C="auto"===n.slidesPerView&&n.breakpoints&&Object.keys(n.breakpoints).filter(e=>void 0!==n.breakpoints[e].slidesPerView).length>0;for(let r=0;r<f;r+=1){let o;if(T=0,d[r]&&(o=d[r]),k&&e.grid.updateSlide(r,o,d),!d[r]||"none"!==(0,i.q)(o,"display")){if("auto"===n.slidesPerView){C&&(d[r].style[e.getDirectionLabel("width")]="");const a=getComputedStyle(o),l=o.style.transform,s=o.style.webkitTransform;if(l&&(o.style.transform="none"),s&&(o.style.webkitTransform="none"),n.roun
vendor: 18,569 bytes, line 2
2dLengths)T=e.isHorizontal()?(0,i.h)(o,"width",!0):(0,i.h)(o,"height",!0);else{const e=t(a,"width"),n=t(a,"padding-left"),r=t(a,"padding-right"),i=t(a,"margin-left"),l=t(a,"margin-right"),s=a.getPropertyValue("box-sizing");if(s&&"border-box"===s)T=e+i+l;else{const{clientWidth:t,offsetWidth:a}=o;T=e+n+r+i+l+(a-t)}}l&&(o.style.transform=l),s&&(o.style.webkitTransform=s),n.roundLengths&&(T=Math.floor(T))}else T=(a-(n.slidesPerView-1)*w)/n.slidesPerView,n.roundLengths&&(T=Math.floor(T)),d[r]&&(d[r].style[e.getDirectionLabel("width")]=`${T}px`);d[r]&&(d[r].swiperSlideSize=T),m.push(T),n.centeredSlides?(S=S+T/2+E/2+w,0===E&&0!==r&&(S=S-a/2-w),0===r&&(S=S-a/2-w),Math.abs(S)<.001&&(S=0),n.roundLengths&&(S=Math.floor(S)),x%n.slidesPerGroup===0&&p.push(S),h.push(S)):(n.roundLengths&&(S=Math.floor(S)),(x-Math.min(e.params.slidesPerGroupSkip,x))%e.params.slidesPerGroup===0&&p.push(S),h.push(S),S=S+T+w),e.virtualSize+=T+w,E=T,x+=1}}if(e.virtualSize=Math.max(e.virtualSize,a)+y,l&&s&&("slide"===n.effect||"coverflow"===n.effect)&&(r.style.width=`${e.virtualSize+w}px`),n.setWrapperSize&&(r.style[e.getDirectionLabel("width")]=`${e.virtualSize+w}px`),k&&e.grid.updateWrapperSize(T,p),!n.centeredSlides){const t=[];for(let r=0;r<p.length;r+=1){let i=p[r];n.roundLengths&&(i=Math.floor(i)),p[r]<=e.virtualSize-a&&t.push(i)}p=t,Math.floor(e.virtualSize-a)-Math.floor(p[p.length-1])>1&&p.push(e.virtualSize-a)}if(u&&n.loop){const t=m[0]+w;if(n.slidesPerGroup>1){const r=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/n.slidesPerGroup),i=t*n.slidesPerGroup;for(let e=0;e<r;e+=1)p.push(p[p.length-1]+i)}for(let r=0;r<e.virtual.slidesBefore+e.virtual.slidesAfter;r+=1)1===n.slidesPerGroup&&p.push(p[p.length-1]+t),h.push(h[h.length-1]+t),e.virtualSize+=t}if(0===p.length&&(p=[0]),0!==w){const t=e.isHorizontal()&&l?"marginLeft":e.getDirectionLabel("marginRight");d.filter((e,t)=>!(n.cssMode&&!n.loop)||t!==d.length-1).forEach(e=>{e.style[t]=`${w}px`})}if(n.centeredSlides&&n.centeredSlidesBounds){let e=0;m.forEach(t=>{e+=t+(w||0)}),e-=w;const t=e>a?e-a:0;p=p.map(e=>e<=0?-g:e>t?t+y:e)}if(n.centerInsufficientSlides){let e=0;m.forEach(t=>{e+=t+(w||0)}),e-=w;const t=(n.slidesOffsetBefore||0)+(n.slidesOffsetAfter||0);if(e+t<a){const n=(a-e-t)/2;p.forEach((e,t)=>{p[t]=e-n}),h.forEach((e,t)=>{h[t]=e+n})}}if(Object.assign(e,{slides:d,snapGrid:p,slidesGrid:h,slidesSizesGrid:m}),n.centeredSlides&&n.cssMode&&!n.centeredSlidesBounds){(0,i.a)(r,"--swiper-centered-offset-before",-p[0]+"px"),(0,i.a)(r,"--swiper-centered-offset-after",e.size/2-m[m.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(f!==c&&e.emit("slidesLengthChange"),p.length!==v&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),h.length!==b&&e.emit("slidesGridLengthChange"),n.watchSlidesProgress&&e.updateSlidesOffset(),e.emit("slidesUpdated"),!(u||n.cssMode||"slide"!==n.effect&&"fade"!==n.effect)){const t=`${n.containerModifierClass}backface-hidden`,r=e.el.classList.contains(t);f<=n.maxBackfaceHiddenSlides?r||e.el.classList.add(t):r&&e.el.classList.remove(t)}},updateAutoHeight:function(e){const t=this,n=[],r=t.virtual&&t.params.virtual.enabled;let i,o=0;"number"==typeof e?t.setTransition(e):!0===e&&t.setTransition(t.params.speed);const a=e=>r?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(i=0;i<Math.ceil(t.params.slidesPerView);i+=1){const e=t.activeIndex+i;if(e>t.slides.length&&!r)break;n.push(a(e))}else n.push(a(t.activeIndex));for(i=0;i<n.length;i+=1)if(void 0!==n[i]){const e=n[i].offsetHeight;o=e>o?e:o}(o||0===o)&&(t.wrapperEl.style.height=`${o}px`)},updateSlidesOffset:function(){const e=this,t=e.slides,n=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let r=0;r<t.length;r+=1)t[r].swiperSlideOffset=(e.isHorizontal()?t[r].offsetLeft:t[r].offsetTop)-n-e.cssOverflowAdjustment()},updateSlidesProgress:function(e){void 0===e&&(e=this&&this.translate||0);const t=this,n=t.params,{slides:r,rtlTranslate:i,snapGrid:o}=t;if(0===r.length)return;void 0===r[0].swiperSlideOffset&&t.updateSlidesOffset();let a=-e;i&&(a=e),t.visibleSlidesIndexes=[],t.visibleSlides=[];let l=n.spaceBetween;"string"==typeof l&&l.indexOf("%")>=0?l=parseFloat(l.replace("%",""))/100*t.size:"string"==typeof l&&(l=parseFloat(l));for(let e=0;e<r.length;e+=1){const s=r[e];let u=s.swiperSlideOffset;n.cssMode&&n.centeredSlides&&(u-=r[0].swiperSlideOffset);const c=(a+(n.centeredSlides?t.minTranslate():0)-u)/(s.swiperSlideSize+l),d=(a-o[0]+(n.centeredSlides?t.minTranslate():0)-u)/(s.swiperSlideSize+l),p=-(a-u),h=p+t.slidesSizesGrid[e],m=p>=0&&p<=t.size-t.slidesSizesGrid[e],g=p>=0&&p<t.size-1||h>1&&h<=t.size||p<=0&&h>=t.size;g&&(t.visibleSlides.push(s),t.visibleSlidesIndexes.push(e)),f(s,g,n.slideVisibleClass),f(s,m,n.slideFullyVisibleClass),s.progress=i?-c:c,s.originalProgress=i?-d:d}},updateProgress:function(e){const t=this;if(void 0===e){const n=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*n||0}const n=t.params,r=t.maxTranslate()-t.minTranslate();let{progress:i,isBeginning:o,isEnd:a,progressLoop:l}=t;const s=o,u=a;if(0===r)i=0,o=!0,a=!0;else{i=(e-t.minTranslate())/r;const n=Math.abs(e-t.minTranslate())<1,l=Math.abs(e-t.maxTranslate())<1;o=n||i<=0,a=l||i>=1,n&&(i=0),l&&(i=1)}if(n.loop){const n=t.getSlideIndexByData(0),r=t.getSlideIndexByData(t.slides.length-1),i=t.slidesGrid[n],o=t.slidesGrid[r],a=t.slidesGrid[t.slidesGrid.length-1],s=Math.abs(e);l=s>=i?(s-i)/a:(s+a-o)/a,l>1&&(l-=1)}Object.assign(t,{progress:i,progressLoop:l,isBeginning:o,isEnd:a}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&t.updateSlidesProgress(e),o&&!s&&t.emit("reachBeginning toEdge"),a&&!u&&t.emit("reachEnd toEdge"),(s&&!o||u&&!a)&&t.emit("fromEdge"),t.emit("progress",i)},updateSlidesClasses:function(){const e=this,{slides:t,params:n,slidesEl:r,activeIndex:o}=e,a=e.virtual&&n.virtual.enabled,l=e.grid&&n.grid&&n.grid.rows>1,s=e=>(0,i.e)(r,`.${n.slideClass}${e}, swiper-slide${e}`)[0];let u,c,d;if(a)if(n.loop){let t=o-e.virtual.slidesBefore;t<0&&(t=e.virtual.slides.length+t),t>=e.virtual.slides.length&&(t-=e.virtual.slides.length),u=s(`[data-swiper-slide-index="${t}"]`)}else u=s(`[data-swiper-slide-index="${o}"]`);else l?(u=t.find(e=>e.column===o),d=t.find(e=>e.column===o+1),c=t.find(e=>e.column===o-1)):u=t[o];u&&(l||(d=(0,i.r)(u,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!d&&(d=t[0]),c=(0,i.t)(u,`.${n.slideClass}, swiper-slide`)[0],n.loop&&0===!c&&(c=t[t.length-1]))),t.forEach(e=>{p(e,e===u,n.slideActiveClass),p(e,e===d,n.slideNextClass),p(e,e===c,n.slidePrevClass)}),e.emitSlidesClasses()},updateActiveIndex:function(e){const t=this,n=t.rtlTranslate?t.translate:-t.translate,{snapGrid:r,params:i,activeIndex:o,realIndex:a,snapIndex:l}=t;let s,u=e;const c=e=>{let n=e-t.virtual.slidesBefore;return n<0&&(n=t.virtual.slides.length+n),n>=t.virtual.slides.length&&(n-=t.virtual.slides.length),n};if(void 0===u&&(u=function(e){const{slidesGrid:t,params:n}=e,r=e.rtlTranslate?e.translate:-e.translate;let i;for(let e=0;e<t.length;e+=1)void 0!==t[e+1]?r>=t[e]&&r<t[e+1]-(t[e+1]-t[e])/2?i=e:r>=t[e]&&r<t[e+1]&&(i=e+1):r>=t[e]&&(i=e);return n.normalizeSlideIndex&&(i<0||void 0===i)&&(i=0),i}(t)),r.indexOf(n)>=0)s=r.indexOf(n);else{const e=Math.min(i.slidesPerGroupSkip,u);s=e+Math.floor((u-e)/i.slidesPerGroup)}if(s>=r.length&&(s=r.length-1),u===o&&!t.params.loop)return void(s!==l&&(t.snapIndex=s,t.emit("snapIndexChange")));if(u===o&&t.params.loop&&t.virtual&&t.params.virtual.enabled)return void(t.realIndex=c(u));const d=t.grid&&i.grid&&i.grid.rows>1;let f;if(t.virtual&&i.virtual.enabled&&i.loop)f=c(u);else if(d){const e=t.slides.find(e=>e.column===u);let n=parseInt(e.getAttribute("data-swiper-slide-index"),10);Number.isNaN(n)&&(n=Math.max(t.slides.indexOf(e),0)),f=Math.floor(n/i.grid.rows)}else if(t.slides[u]){const e=t.slides[u].getAttribute("data-swiper-slide-index");f=e?parseInt(e,10):u}else f=u;Object.assign(t,{previousSnapIndex:l,snapIndex:s,previousRealIndex:a,realIndex:f,previousIndex:o,activeIndex:u}),t.initialized&&g(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&(a!==f&&t.emit("realIndexChange"),t.emit("slideChange"))},updateClickedSlide:function(e,t){const n=this,r=n.params;let i=e.closest(`.${r.slideClass}, swiper-slide`);!i&&n.isElement&&t&&t.length>1&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach(e=>{!i&&e.matches&&e.matches(`.${r.slideClass}, swiper-slide`)&&(i=e)});let o,a=!1;if(i)for(let e=0;e<n.slides.length;e+=1)if(n.slides[e]===i){a=!0,o=e;break}if(!i||!a)return n.clickedSlide=void 0,void(n.clickedIndex=void 0);n.clickedSlide=i,n.virtual&&n.params.virtual.enabled?n.clickedIndex=parseInt(i.getAttribute("data-swiper-slide-index"),10):n.clickedIndex=o,r.slideToClickedSlide&&void 0!==n.clickedIndex&&n.clickedIndex!==n.activeIndex&&n.slideToClickedSlide()}};var v={getTranslate:function(e){void 0===e&&(e=this.isHorizontal()?"x":"y");const{params:t,rtlTranslate:n,translate:r,wrapperEl:o}=this;if(t.virtualTranslate)return n?-r:r;if(t.cssMode)return r;let a=(0,i.k)(o,e);return a+=this.cssOverflowAdjustment(),n&&(a=-a),a||0},setTranslate:function(e,t){const n=this,{rtlTranslate:r,params:i,wrapperEl:o,progress:a}=n;let l,s=0,u=0;n.isHorizontal()?s=r?-e:e:u=e,i.roundLengths&&(s=Math.floor(s),u=Math.floor(u)),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?s:u,i.cssMode?o[n.isHorizontal()?"scrollLeft":"scrollTop"]=n.isHorizontal()?-s:-u:i.virtualTranslate||(n.isHorizontal()?s-=n.cssOverflowAdjustment():u-=n.cssOverflowAdjustment(),o.style.transform=`translate3d(${s}px, ${u}px, 0px)`);const c=n.maxTranslate()-n.minTranslate();l=0===c?0:(e-n.minTranslate())/c,l!==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,t,n,r,o){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===n&&(n=!0),void 0===r&&(r=!0);const a=this,{params:l,wrapperEl:s}=a;if(a.animating&&l.preventInteractionOnTransition)return!1;const u=a.minTranslate(),c=a.maxTranslate();let d;if(d=r&&e>u?u:r&&e<c?c:e,a.updateProgress(d),l.cssMode){const e=a.isHorizontal();if(0===t)s[e?"scrollLeft":"scrollTop"]=-d;else{if(!a.support.smoothScroll)return(0,i.u)({swiper:a,targetPosition:-d,side:e?"left":"top"}),!0;s.scrollTo({[e?"left":"top"]:-d,behavior:"smooth"})}return!0}return 0===t?(a.setTransition(0),a.setTranslate(d),n&&(a.emit("beforeTransitionStart",t,o),a.emit("transitionEnd"))):(a.setTransition(t),a.setTranslate(d),n&&(a.emit("beforeTransitionStart",t,o),a.emit("transitionStart")),a.animating||(a.animating=!0,a.onTranslateToWrapperTransitionEnd||(a.onTranslateToWrapperTransitionEnd=function(e){a&&!a.destroyed&&e.target===this&&(a.wrapperEl.removeEventListener("transitionend",a.onTranslateToWrapperTransitionEnd),a.onTranslateToWrapperTransitionEnd=null,delete a.onTranslateToWrapperTransitionEnd,a.animating=!1,n&&a.emit("transitionEnd"))}),a.wrapperEl.addEventListener("transitionend",a.onTranslateToWrapperTransitionEnd))),!0}};function b(e){let{swiper:t,runCallbacks:n,direction:r,step:i}=e;const{activeIndex:o,previousIndex:a}=t;let l=r;l||(l=o>a?"next":o<a?"prev":"reset"),t.emit(`transition${i}`),n&&"reset"===l?t.emit(`slideResetTransition${i}`):n&&o!==a&&(t.emit(`slideChangeTransition${i}`),"next"===l?t.emit(`slideNextTransition${i}`):t.emit(`slidePrevTransition${i}`))}var w={slideTo:function(e,t,n,r,o){void 0===e&&(e=0),void 0===n&&(n=!0),"string"==typeof e&&(e=parseInt(e,10));const a=this;let l=e;l<0&&(l=0);const{params:s,snapGrid:u,slidesGrid:d,previousIndex:f,activeIndex:p,rtlTranslate:h,wrapperEl:m,enabled:g}=a;if(!g&&!r&&!o||a.destroyed||a.animating&&s.preventInteractionOnTransition)return!1;void 0===t&&(t=a.params.speed);const y=Math.min(a.params.slidesPerGroupSkip,l);let v=y+Math.floor((l-y)/a.params.slidesPerGroup);v>=u.length&&(v=u.length-1);const b=-u[v];if(s.normalizeSlideIndex)for(let e=0;e<d.length;e+=1){const t=-Math.floor(100*b),n=Math.floor(100*d[e]),r=Math.floor(100*d[e+1]);void 0!==d[e+1]?t>=n&&t<r-(r-n)/2?l=e:t>=n&&t<r&&(l=e+1):t>=n&&(l=e)}if(a.initialized&&l!==p){if(!a.allowSlideNext&&(h?b>a.translate&&b>a.minTranslate():b<a.translate&&b<a.minTranslate()))return!1;if(!a.allowSlidePrev&&b>a.translate&&b>a.maxTranslate()&&(p||0)!==l)return!1}let w;l!==(f||0)&&n&&a.emit("beforeSlideChangeStart"),a.updateProgress(b),w=l>p?"next":l<p?"prev":"reset";const S=a.virtual&&a.params.virtual.enabled;if(!(S&&o)&&(h&&-b===a.translate||!h&&b===a.translate))return a.updateActiveIndex(l),s.autoHeight&&a.updateAutoHeight(),a.updateSlidesClasses(),"slide"!==s.effect&&a.setTranslate(b),"reset"!==w&&(a.transitionStart(n,w),a.transitionEnd(n,w)),!1;if(s.cssMode){const e=a.isHorizontal(),n=h?b:-b;if(0===t)S&&(a.wrapperEl.style.scrollSnapType="none",a._immediateVirtual=!0),S&&!a._cssModeVirtualInitialSet&&a.params.initialSlide>0?(a._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{m[e?"scrollLeft":"scrollTop"]=n})):m[e?"scrollLeft":"scrollTop"]=n,S&&requestAnimationFrame(()=>{a.wrapperEl.style.scrollSnapType="",a._immediateVirtual=!1});else{if(!a.support.smoothScroll)return(0,i.u)({swiper:a,targetPosition:n,side:e?"left":"top"}),!0;m.scrollTo({[e?"left":"top"]:n,behavior:"smooth"})}return!0}const E=c().isSafari;return S&&!o&&E&&a.isElement&&a.virtual.update(!1,!1,l),a.setTransition(t),a.setTranslate(b),a.updateActiveIndex(l),a.updateSlidesClasses(),a.emit("beforeTransitionStart",t,r),a.transitionStart(n,w),0===t?a.transitionEnd(n,w):a.animating||(a.animating=!0,a.onSlideToWrapperTransitionEnd||(a.onSlideToWrapperTransitionEnd=function(e){a&&!a.destroyed&&e.target===this&&(a.wrapperEl.removeEventListener("transitionend",a.onSlideToWrapperTransitionEnd),a.onSlideToWrapperTransitionEnd=null,delete a.onSlideToWrapperTransitionEnd,a.transitionEnd(n,w))}),a.wrapperEl.addEventListener("transitionend",a.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(e,t,n,r){if(void 0===e&&(e=0),void 0===n&&(n=!0),"string"==typeof e){e=parseInt(e,10)}const i=this;if(i.destroyed)return;void 0===t&&(t=i.params.speed);const o=i.grid&&i.params.grid&&i.params.grid.rows>1;let a=e;if(i.params.loop)if(i.virtual&&i.params.virtual.enabled)a+=i.virtual.slidesBefore;else{let e;if(o){const t=a*i.params.grid.rows;e=i.slides.find(e=>1*e.getAttribute("data-swiper-slide-index")===t).column}else e=i.getSlideIndexByData(a);const t=o?Math.ceil(i.slides.length/i.params.grid.rows):i.slides.length,{centeredSlides:n}=i.params;let l=i.params.slidesPerView;"auto"===l?l=i.slidesPerViewDynamic():(l=Math.ceil(parseFloat(i.params.slidesPerView,10)),n&&l%2==0&&(l+=1));let s=t-e<l;if(n&&(s=s||e<Math.ceil(l/2)),r&&n&&"auto"!==i.params.slidesPerView&&!o&&(s=!1),s){const r=n?e<i.activeIndex?"prev":"next":e-i.activeIndex-1<i.params.slidesPerView?"next":"prev";i.loopFix({direction:r,slideTo:!0,activeSlideIndex:"next"===r?e+1:e-t+1,slideRealIndex:"next"===r?i.realIndex:void 0})}if(o){const e=a*i.params.grid.rows;a=i.slides.find(t=>1*t.getAttribute("data-swiper-slide-index")===e).column}else a=i.getSlideIndexByData(a)}return requestAnimationFrame(()=>{i.slideTo(a,t,n,r)}),i},slideNext:function(e,t,n){void 0===t&&(t=!0);const r=this,{enabled:i,params:o,animating:a}=r;if(!i||r.destroyed)return r;void 0===e&&(e=r.params.speed);let l=o.slidesPerGroup;"auto"===o.slidesPerView&&1===o.slidesPerGroup&&o.slidesPerGroupAuto&&(l=Math.max(r.slidesPerViewDynamic("current",!0),1));const s=r.activeIndex<o.slidesPerGroupSkip?1:l,u=r.virtual&&o.virtual.enabled;if(o.loop){if(a&&!u&&o.loopPreventsSliding)return!1;if(r.loopFix({direction:"next"}),r._clientLeft=r.wrapperEl.clientLeft,r.activeIndex===r.slides.length-1&&o.cssMode)return requestAnimationFrame(()=>{r.slideTo(r.activeIndex+s,e,t,n)}),!0}return o.rewind&&r.isEnd?r.slideTo(0,e,t,n):r.slideTo(r.activeIndex+s,e,t,n)},slidePrev:function(e,t,n){void 0===t&&(t=!0);const r=this,{params:i,snapGrid:o,slidesGrid:a,rtlTranslate:l,enabled:s,animating:u}=r;if(!s||r.destroyed)return r;void 0===e&&(e=r.params.speed);const c=r.virtual&&i.virtual.enabled;if(i.loop){if(u&&!c&&i.loopPreventsSliding)return!1;r.loopFix({direction:"prev"}),r._clientLeft=r.wrapperEl.clientLeft}function d(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}const f=d(l?r.translate:-r.translate),p=o.map(e=>d(e)),h=i.freeMode&&i.freeMode.enabled;let m=o[p.indexOf(f)-1];if(void 0===m&&(i.cssMode||h)){let e;o.forEach((t,n)=>{f>=t&&(e=n)}),void 0!==e&&(m=h?o[e]:o[e>0?e-1:e])}let g=0;if(void 0!==m&&(g=a.indexOf(m),g<0&&(g=r.activeIndex-1),"auto"===i.slidesPerView&&1===i.slidesPerGroup&&i.slidesPerGroupAuto&&(g=g-r.slidesPerViewDynamic("previous",!0)+1,g=Math.max(g,0))),i.rewind&&r.isBeginning){const i=r.params.virtual&&r.params.virtual.enabled&&r.virtual?r.virtual.slides.length-1:r.slides.length-1;return r.slideTo(i,e,t,n)}return i.loop&&0===r.activeIndex&&i.cssMode?(requestAnimationFrame(()=>{r.slideTo(g,e,t,n)}),!0):r.slideTo(g,e,t,n)},slideReset:function(e,t,n){void 0===t&&(t=!0);const r=this;if(!r.destroyed)return void 0===e&&(e=r.params.speed),r.slideTo(r.activeIndex,e,t,n)},slideToClosest:function(e,t,n,r){void 0===t&&(t=!0),void 0===r&&(r=.5);const i=this;if(i.destroyed)return;void 0===e&&(e=i.params.speed);let o=i.activeIndex;const a=Math.min(i.params.slidesPerGroupSkip,o),l=a+Math.floor((o-a)/i.params.slidesPerGroup),s=i.rtlTranslate?i.translate:-i.translate;if(s>=i.snapGrid[l]){const e=i.snapGrid[l];s-e>(i.snapGrid[l+1]-e)*r&&(o+=i.params.slidesPerGroup)}else{const e=i.snapGrid[l-1];s-e<=(i.snapGrid[l]-e)*r&&(o-=i.params.slidesPerGroup)}return o=Math.max(o,0),o=Math.min(o,i.slidesGrid.length-1),i.slideTo(o,e,t,n)},slideToClickedSlide:function(){const e=this;if(e.destroyed)return;const{params:t,slidesEl:n}=e,r="auto"===t.slidesPerView?e.slidesPerViewDynamic():t.slidesPerView;let o,a=e.getSlideIndexWhenGrid(e.clickedIndex);const l=e.isElement?"swiper-slide":`.${t.slideClass}`,s=e.grid&&e.params.grid&&e.params.grid.rows>1;if(t.loop){if(e.animating)return;o=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?e.slideToLoop(o):a>(s?(e.slides.length-r)/2-(e.params.grid.rows-1):e.slides.length-r)?(e.loopFix(),a=e.getSlideIndex((0,i.e)(n,`${l}[data-swiper-slide-index="${o}"]`)[0]),(0,i.n)(()=>{e.slideTo(a)})):e.slideTo(a)}else e.slideTo(a)}};var S={loopCreate:function(e,t){const n=this,{params:r,slidesEl:o}=n;
2if(!r.loop||n.virtual&&n.params.virtual.enabled)return;const a=()=>{(0,i.e)(o,`.${r.slideClass}, swiper-slide`).forEach((e,t)=>{e.setAttribute("data-swiper-slide-index",t)})},l=n.grid&&r.grid&&r.grid.rows>1;r.loopAddBlankSlides&&(r.slidesPerGroup>1||l)&&(()=>{const e=(0,i.e)(o,`.${r.slideBlankClass}`);e.forEach(e=>{e.remove()}),e.length>0&&(n.recalcSlides(),n.updateSlides())})();const s=r.slidesPerGroup*(l?r.grid.rows:1),u=n.slides.length%s!==0,c=l&&n.slides.length%r.grid.rows!==0,d=e=>{for(let t=0;t<e;t+=1){const e=n.isElement?(0,i.c)("swiper-slide",[r.slideBlankClass]):(0,i.c)("div",[r.slideClass,r.slideBlankClass]);n.slidesEl.append(e)}};if(u){if(r.loopAddBlankSlides){d(s-n.slides.length%s),n.recalcSlides(),n.updateSlides()}else(0,i.v)("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");a()}else if(c){if(r.loopAddBlankSlides){d(r.grid.rows-n.slides.length%r.grid.rows),n.recalcSlides(),n.updateSlides()}else(0,i.v)("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");a()}else a();n.loopFix({slideRealIndex:e,direction:r.centeredSlides?void 0:"next",initial:t})},loopFix:function(e){let{slideRealIndex:t,slideTo:n=!0,direction:r,setTranslate:o,activeSlideIndex:a,initial:l,byController:s,byMousewheel:u}=void 0===e?{}:e;const c=this;if(!c.params.loop)return;c.emit("beforeLoopFix");const{slides:d,allowSlidePrev:f,allowSlideNext:p,slidesEl:h,params:m}=c,{centeredSlides:g,initialSlide:y}=m;if(c.allowSlidePrev=!0,c.allowSlideNext=!0,c.virtual&&m.virtual.enabled)return n&&(m.centeredSlides||0!==c.snapIndex?m.centeredSlides&&c.snapIndex<m.slidesPerView?c.slideTo(c.virtual.slides.length+c.snapIndex,0,!1,!0):c.snapIndex===c.snapGrid.length-1&&c.slideTo(c.virtual.slidesBefore,0,!1,!0):c.slideTo(c.virtual.slides.length,0,!1,!0)),c.allowSlidePrev=f,c.allowSlideNext=p,void c.emit("loopFix");let v=m.slidesPerView;"auto"===v?v=c.slidesPerViewDynamic():(v=Math.ceil(parseFloat(m.slidesPerView,10)),g&&v%2==0&&(v+=1));const b=m.slidesPerGroupAuto?v:m.slidesPerGroup;let w=g?Math.max(b,Math.ceil(v/2)):b;w%b!==0&&(w+=b-w%b),w+=m.loopAdditionalSlides,c.loopedSlides=w;const S=c.grid&&m.grid&&m.grid.rows>1;d.length<v+w||"cards"===c.params.effect&&d.length<v+2*w?(0,i.v)("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):S&&"row"===m.grid.fill&&(0,i.v)("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const E=[],x=[],k=S?Math.ceil(d.length/m.grid.rows):d.length,T=l&&k-y<v&&!g;let C=T?y:c.activeIndex;void 0===a?a=c.getSlideIndex(d.find(e=>e.classList.contains(m.slideActiveClass))):C=a;const O="next"===r||!r,P="prev"===r||!r;let I=0,A=0;const _=(S?d[a].column:a)+(g&&void 0===o?-v/2+.5:0);if(_<w){I=Math.max(w-_,b);for(let e=0;e<w-_;e+=1){const t=e-Math.floor(e/k)*k;if(S){const e=k-t-1;for(let t=d.length-1;t>=0;t-=1)d[t].column===e&&E.push(t)}else E.push(k-t-1)}}else if(_+v>k-w){A=Math.max(_-(k-2*w),b),T&&(A=Math.max(A,v-k+y+1));for(let e=0;e<A;e+=1){const t=e-Math.floor(e/k)*k;S?d.forEach((e,n)=>{e.column===t&&x.push(n)}):x.push(t)}}if(c.__preventObserver__=!0,requestAnimationFrame(()=>{c.__preventObserver__=!1}),"cards"===c.params.effect&&d.length<v+2*w&&(x.includes(a)&&x.splice(x.indexOf(a),1),E.includes(a)&&E.splice(E.indexOf(a),1)),P&&E.forEach(e=>{d[e].swiperLoopMoveDOM=!0,h.prepend(d[e]),d[e].swiperLoopMoveDOM=!1}),O&&x.forEach(e=>{d[e].swiperLoopMoveDOM=!0,h.append(d[e]),d[e].swiperLoopMoveDOM=!1}),c.recalcSlides(),"auto"===m.slidesPerView?c.updateSlides():S&&(E.length>0&&P||x.length>0&&O)&&c.slides.forEach((e,t)=>{c.grid.updateSlide(t,e,c.slides)}),m.watchSlidesProgress&&c.updateSlidesOffset(),n)if(E.length>0&&P){if(void 0===t){const e=c.slidesGrid[C],t=c.slidesGrid[C+I]-e;u?c.setTranslate(c.translate-t):(c.slideTo(C+Math.ceil(I),0,!1,!0),o&&(c.touchEventsData.startTranslate=c.touchEventsData.startTranslate-t,c.touchEventsData.currentTranslate=c.touchEventsData.currentTranslate-t))}else if(o){const e=S?E.length/m.grid.rows:E.length;c.slideTo(c.activeIndex+e,0,!1,!0),c.touchEventsData.currentTranslate=c.translate}}else if(x.length>0&&O)if(void 0===t){const e=c.slidesGrid[C],t=c.slidesGrid[C-A]-e;u?c.setTranslate(c.translate-t):(c.slideTo(C-A,0,!1,!0),o&&(c.touchEventsData.startTranslate=c.touchEventsData.startTranslate-t,c.touchEventsData.currentTranslate=c.touchEventsData.currentTranslate-t))}else{const e=S?x.length/m.grid.rows:x.length;c.slideTo(c.activeIndex-e,0,!1,!0)}if(c.allowSlidePrev=f,c.allowSlideNext=p,c.controller&&c.controller.control&&!s){const e={slideRealIndex:t,direction:r,setTranslate:o,activeSlideIndex:a,byController:!0};Array.isArray(c.controller.control)?c.controller.control.forEach(t=>{!t.destroyed&&t.params.loop&&t.loopFix({...e,slideTo:t.params.slidesPerView===m.slidesPerView&&n})}):c.controller.control instanceof c.constructor&&c.controller.control.params.loop&&c.controller.control.loopFix({...e,slideTo:c.controller.control.params.slidesPerView===m.slidesPerView&&n})}c.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 r=[];
vendor: 5,677 bytes, line 2
2e.slides.forEach(e=>{const t=void 0===e.swiperSlideIndex?1*e.getAttribute("data-swiper-slide-index"):e.swiperSlideIndex;r[t]=e}),e.slides.forEach(e=>{e.removeAttribute("data-swiper-slide-index")}),r.forEach(e=>{n.append(e)}),e.recalcSlides(),e.slideTo(e.realIndex,0)}};function E(e,t,n){const i=(0,r.a)(),{params:o}=e,a=o.edgeSwipeDetection,l=o.edgeSwipeThreshold;return!a||!(n<=l||n>=i.innerWidth-l)||"prevent"===a&&(t.preventDefault(),!0)}function x(e){const t=this,n=(0,r.g)();let o=e;o.originalEvent&&(o=o.originalEvent);const a=t.touchEventsData;if("pointerdown"===o.type){if(null!==a.pointerId&&a.pointerId!==o.pointerId)return;a.pointerId=o.pointerId}else"touchstart"===o.type&&1===o.targetTouches.length&&(a.touchId=o.targetTouches[0].identifier);if("touchstart"===o.type)return void E(t,o,o.targetTouches[0].pageX);const{params:l,touches:s,enabled:u}=t;if(!u)return;if(!l.simulateTouch&&"mouse"===o.pointerType)return;if(t.animating&&l.preventInteractionOnTransition)return;!t.animating&&l.cssMode&&l.loop&&t.loopFix();let c=o.target;if("wrapper"===l.touchEventsTarget&&!(0,i.w)(c,t.wrapperEl))return;if("which"in o&&3===o.which)return;if("button"in o&&o.button>0)return;if(a.isTouched&&a.isMoved)return;const d=!!l.noSwipingClass&&""!==l.noSwipingClass,f=o.composedPath?o.composedPath():o.path;d&&o.target&&o.target.shadowRoot&&f&&(c=f[0]);const p=l.noSwipingSelector?l.noSwipingSelector:`.${l.noSwipingClass}`,h=!(!o.target||!o.target.shadowRoot);if(l.noSwiping&&(h?function(e,t){return void 0===t&&(t=this),function t(n){if(!n||n===(0,r.g)()||n===(0,r.a)())return null;n.assignedSlot&&(n=n.assignedSlot);const i=n.closest(e);return i||n.getRootNode?i||t(n.getRootNode().host):null}(t)}(p,c):c.closest(p)))return void(t.allowClick=!0);if(l.swipeHandler&&!c.closest(l.swipeHandler))return;s.currentX=o.pageX,s.currentY=o.pageY;const m=s.currentX,g=s.currentY;if(!E(t,o,m))return;Object.assign(a,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),s.startX=m,s.startY=g,a.touchStartTime=(0,i.f)(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,l.threshold>0&&(a.allowThresholdMove=!1);let y=!0;c.matches(a.focusableElements)&&(y=!1,"SELECT"===c.nodeName&&(a.isTouched=!1)),n.activeElement&&n.activeElement.matches(a.focusableElements)&&n.activeElement!==c&&("mouse"===o.pointerType||"mouse"!==o.pointerType&&!c.matches(a.focusableElements))&&n.activeElement.blur();const v=y&&t.allowTouchMove&&l.touchStartPreventDefault;!l.touchStartForcePreventDefault&&!v||c.isContentEditable||o.preventDefault(),l.freeMode&&l.freeMode.enabled&&t.freeMode&&t.animating&&!l.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",o)}function k(e){const t=(0,r.g)(),n=this,o=n.touchEventsData,{params:a,touches:l,rtlTranslate:s,enabled:u}=n;if(!u)return;if(!a.simulateTouch&&"mouse"===e.pointerType)return;let c,d=e;if(d.originalEvent&&(d=d.originalEvent),"pointermove"===d.type){if(null!==o.touchId)return;if(d.pointerId!==o.pointerId)return}if("touchmove"===d.type){if(c=[...d.changedTouches].find(e=>e.identifier===o.touchId),!c||c.identifier!==o.touchId)return}else c=d;if(!o.isTouched)return void(o.startMoving&&o.isScrolling&&n.emit("touchMoveOpposite",d));const f=c.pageX,p=c.pageY;if(d.preventedByNestedSwiper)return l.startX=f,void(l.startY=p);if(!n.allowTouchMove)return d.target.matches(o.focusableElements)||(n.allowClick=!1),void(o.isTouched&&(Object.assign(l,{startX:f,startY:p,currentX:f,currentY:p}),o.touchStartTime=(0,i.f)()));if(a.touchReleaseOnEdges&&!a.loop)if(n.isVertical()){if(p<l.startY&&n.translate<=n.maxTranslate()||p>l.startY&&n.translate>=n.minTranslate())return o.isTouched=!1,void(o.isMoved=!1)}else{if(s&&(f>l.startX&&-n.translate<=n.maxTranslate()||f<l.startX&&-n.translate>=n.minTranslate()))return;if(!s&&(f<l.startX&&n.translate<=n.maxTranslate()||f>l.startX&&n.translate>=n.minTranslate()))return}if(t.activeElement&&t.activeElement.matches(o.focusableElements)&&t.activeElement!==d.target&&"mouse"!==d.pointerType&&t.activeElement.blur(),t.activeElement&&d.target===t.activeElement&&d.target.matches(o.focusableElements))return o.isMoved=!0,void(n.allowClick=!1);o.allowTouchCallbacks&&n.emit("touchMove",d),l.previousX=l.currentX,l.previousY=l.currentY,l.currentX=f,l.currentY=p;const h=l.currentX-l.startX,m=l.currentY-l.startY;if(n.params.threshold&&Math.sqrt(h**2+m**2)<n.params.threshold)return;if(void 0===o.isScrolling){let e;n.isHorizontal()&&l.currentY===l.startY||n.isVertical()&&l.currentX===l.startX?o.isScrolling=!1:h*h+m*m>=25&&(e=180*Math.atan2(Math.abs(m),Math.abs(h))/Math.PI,o.isScrolling=n.isHorizontal()?e>a.touchAngle:90-e>a.touchAngle)}if(o.isScrolling&&n.emit("touchMoveOpposite",d),void 0===o.startMoving&&(l.currentX===l.startX&&l.currentY===l.startY||(o.startMoving=!0)),o.isScrolling||"touchmove"===d.type&&o.preventTouchMoveFromPointerMove)return void(o.isTouched=!1);if(!o.startMoving)return;n.allowClick=!1,!a.cssMode&&d.cancelable&&d.preventDefault(),a.touchMoveStopPropagation&&!a.nested&&d.stopPropagation();let g=n.isHorizontal()?h:m,y=n.isHorizontal()?l.currentX-l.previousX:l.currentY-l.previousY;a.oneWayMovement&&(g=Math.abs(g)*(s?1:-1),y=Math.abs(y)*(s?1:-1)),l.diff=g,g*=a.touchRatio,s&&(g=-g,y=-y);const v=n.touchesDirection;n.swipeDirection=g>0?"prev":"next",n.touchesDirection=y>0?"prev":"next";const b=n.params.loop&&!a.cssMode,w="next"===n.touchesDirection&&n.allowSlideNext||"prev"===n.touchesDirection&&n.allowSlidePrev;if(!o.isMoved){if(b&&w&&n.loopFix({direction:n.swipeDirection}),o.startTranslate=n.getTranslate(),n.setTransition(0),n.animating){const e=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});
vendor: 2,162 bytes, line 2
2n.wrapperEl.dispatchEvent(e)}o.allowMomentumBounce=!1,!a.grabCursor||!0!==n.allowSlideNext&&!0!==n.allowSlidePrev||n.setGrabCursor(!0),n.emit("sliderFirstMove",d)}if((new Date).getTime(),!1!==a._loopSwapReset&&o.isMoved&&o.allowThresholdMove&&v!==n.touchesDirection&&b&&w&&Math.abs(g)>=1)return Object.assign(l,{startX:f,startY:p,currentX:f,currentY:p,startTranslate:o.currentTranslate}),o.loopSwapReset=!0,void(o.startTranslate=o.currentTranslate);n.emit("sliderMove",d),o.isMoved=!0,o.currentTranslate=g+o.startTranslate;let S=!0,E=a.resistanceRatio;if(a.touchReleaseOnEdges&&(E=0),g>0?(b&&w&&o.allowThresholdMove&&o.currentTranslate>(a.centeredSlides?n.minTranslate()-n.slidesSizesGrid[n.activeIndex+1]-("auto"!==a.slidesPerView&&n.slides.length-a.slidesPerView>=2?n.slidesSizesGrid[n.activeIndex+1]+n.params.spaceBetween:0)-n.params.spaceBetween:n.minTranslate())&&n.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),o.currentTranslate>n.minTranslate()&&(S=!1,a.resistance&&(o.currentTranslate=n.minTranslate()-1+(-n.minTranslate()+o.startTranslate+g)**E))):g<0&&(b&&w&&o.allowThresholdMove&&o.currentTranslate<(a.centeredSlides?n.maxTranslate()+n.slidesSizesGrid[n.slidesSizesGrid.length-1]+n.params.spaceBetween+("auto"!==a.slidesPerView&&n.slides.length-a.slidesPerView>=2?n.slidesSizesGrid[n.slidesSizesGrid.length-1]+n.params.spaceBetween:0):n.maxTranslate())&&n.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:n.slides.length-("auto"===a.slidesPerView?n.slidesPerViewDynamic():Math.ceil(parseFloat(a.slidesPerView,10)))}),o.currentTranslate<n.maxTranslate()&&(S=!1,a.resistance&&(o.currentTranslate=n.maxTranslate()+1-(n.maxTranslate()-o.startTranslate-g)**E))),S&&(d.preventedByNestedSwiper=!0),!n.allowSlideNext&&"next"===n.swipeDirection&&o.currentTranslate<o.startTranslate&&(o.currentTranslate=o.startTranslate),!n.allowSlidePrev&&"prev"===n.swipeDirection&&o.currentTranslate>o.startTranslate&&(o.currentTranslate=o.startTranslate),n.allowSlidePrev||n.allowSlideNext||(o.currentTranslate=o.startTranslate),a.threshold>0){if(!(Math.abs(g)>a.threshold||o.allowThresholdMove))return void(o.currentTranslate=o.startTranslate);
vendor: 4,890 bytes, line 2
2if(!o.allowThresholdMove)return o.allowThresholdMove=!0,l.startX=l.currentX,l.startY=l.currentY,o.currentTranslate=o.startTranslate,void(l.diff=n.isHorizontal()?l.currentX-l.startX:l.currentY-l.startY)}a.followFinger&&!a.cssMode&&((a.freeMode&&a.freeMode.enabled&&n.freeMode||a.watchSlidesProgress)&&(n.updateActiveIndex(),n.updateSlidesClasses()),a.freeMode&&a.freeMode.enabled&&n.freeMode&&n.freeMode.onTouchMove(),n.updateProgress(o.currentTranslate),n.setTranslate(o.currentTranslate))}function T(e){const t=this,n=t.touchEventsData;let r,o=e;o.originalEvent&&(o=o.originalEvent);if("touchend"===o.type||"touchcancel"===o.type){if(r=[...o.changedTouches].find(e=>e.identifier===n.touchId),!r||r.identifier!==n.touchId)return}else{if(null!==n.touchId)return;if(o.pointerId!==n.pointerId)return;r=o}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(o.type)){if(!(["pointercancel","contextmenu"].includes(o.type)&&(t.browser.isSafari||t.browser.isWebView)))return}n.pointerId=null,n.touchId=null;const{params:a,touches:l,rtlTranslate:s,slidesGrid:u,enabled:c}=t;if(!c)return;if(!a.simulateTouch&&"mouse"===o.pointerType)return;if(n.allowTouchCallbacks&&t.emit("touchEnd",o),n.allowTouchCallbacks=!1,!n.isTouched)return n.isMoved&&a.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,void(n.startMoving=!1);a.grabCursor&&n.isMoved&&n.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);const d=(0,i.f)(),f=d-n.touchStartTime;if(t.allowClick){const e=o.path||o.composedPath&&o.composedPath();t.updateClickedSlide(e&&e[0]||o.target,e),t.emit("tap click",o),f<300&&d-n.lastClickTime<300&&t.emit("doubleTap doubleClick",o)}if(n.lastClickTime=(0,i.f)(),(0,i.n)(()=>{t.destroyed||(t.allowClick=!0)}),!n.isTouched||!n.isMoved||!t.swipeDirection||0===l.diff&&!n.loopSwapReset||n.currentTranslate===n.startTranslate&&!n.loopSwapReset)return n.isTouched=!1,n.isMoved=!1,void(n.startMoving=!1);let p;if(n.isTouched=!1,n.isMoved=!1,n.startMoving=!1,p=a.followFinger?s?t.translate:-t.translate:-n.currentTranslate,a.cssMode)return;if(a.freeMode&&a.freeMode.enabled)return void t.freeMode.onTouchEnd({currentPos:p});const h=p>=-t.maxTranslate()&&!t.params.loop;let m=0,g=t.slidesSizesGrid[0];for(let e=0;e<u.length;e+=e<a.slidesPerGroupSkip?1:a.slidesPerGroup){const t=e<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;void 0!==u[e+t]?(h||p>=u[e]&&p<u[e+t])&&(m=e,g=u[e+t]-u[e]):(h||p>=u[e])&&(m=e,g=u[u.length-1]-u[u.length-2])}let y=null,v=null;a.rewind&&(t.isBeginning?v=a.virtual&&a.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(y=0));const b=(p-u[m])/g,w=m<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;if(f>a.longSwipesMs){if(!a.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(b>=a.longSwipesRatio?t.slideTo(a.rewind&&t.isEnd?y:m+w):t.slideTo(m)),"prev"===t.swipeDirection&&(b>1-a.longSwipesRatio?t.slideTo(m+w):null!==v&&b<0&&Math.abs(b)>a.longSwipesRatio?t.slideTo(v):t.slideTo(m))}else{if(!a.shortSwipes)return void t.slideTo(t.activeIndex);t.navigation&&(o.target===t.navigation.nextEl||o.target===t.navigation.prevEl)?o.target===t.navigation.nextEl?t.slideTo(m+w):t.slideTo(m):("next"===t.swipeDirection&&t.slideTo(null!==y?y:m+w),"prev"===t.swipeDirection&&t.slideTo(null!==v?v:m))}}function C(){const e=this,{params:t,el:n}=e;if(n&&0===n.offsetWidth)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:r,allowSlidePrev:i,snapGrid:o}=e,a=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const l=a&&t.loop;!("auto"===t.slidesPerView||t.slidesPerView>1)||!e.isEnd||e.isBeginning||e.params.centeredSlides||l?e.params.loop&&!a?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0):e.slideTo(e.slides.length-1,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout(()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()},500)),e.allowSlidePrev=i,e.allowSlideNext=r,e.params.watchOverflow&&o!==e.snapGrid&&e.checkOverflow()}function O(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function P(){const e=this,{wrapperEl:t,rtlTranslate:n,enabled:r}=e;if(!r)return;let i;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,0===e.translate&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();const o=e.maxTranslate()-e.minTranslate();i=0===o?0:(e.translate-e.minTranslate())/o,i!==e.progress&&e.updateProgress(n?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function I(e){const t=this;h(t,e.target),t.params.cssMode||"auto"!==t.params.slidesPerView&&!t.params.autoHeight||t.update(
vendor: 5,597 bytes, line 2
2)}function A(){const e=this;e.documentTouchHandlerProceeded||(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction="auto"))}const _=(e,t)=>{const n=(0,r.g)(),{params:i,el:o,wrapperEl:a,device:l}=e,s=!!i.nested,u="on"===t?"addEventListener":"removeEventListener",c=t;o&&"string"!=typeof o&&(n[u]("touchstart",e.onDocumentTouchStart,{passive:!1,capture:s}),o[u]("touchstart",e.onTouchStart,{passive:!1}),o[u]("pointerdown",e.onTouchStart,{passive:!1}),n[u]("touchmove",e.onTouchMove,{passive:!1,capture:s}),n[u]("pointermove",e.onTouchMove,{passive:!1,capture:s}),n[u]("touchend",e.onTouchEnd,{passive:!0}),n[u]("pointerup",e.onTouchEnd,{passive:!0}),n[u]("pointercancel",e.onTouchEnd,{passive:!0}),n[u]("touchcancel",e.onTouchEnd,{passive:!0}),n[u]("pointerout",e.onTouchEnd,{passive:!0}),n[u]("pointerleave",e.onTouchEnd,{passive:!0}),n[u]("contextmenu",e.onTouchEnd,{passive:!0}),(i.preventClicks||i.preventClicksPropagation)&&o[u]("click",e.onClick,!0),i.cssMode&&a[u]("scroll",e.onScroll),i.updateOnWindowResize?e[c](l.ios||l.android?"resize orientationchange observerUpdate":"resize observerUpdate",C,!0):e[c]("observerUpdate",C,!0),o[u]("load",e.onLoad,{capture:!0}))};const M=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;var L={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,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function R(e,t){return function(n){void 0===n&&(n={});const r=Object.keys(n)[0],o=n[r];"object"==typeof o&&null!==o?(!0===e[r]&&(e[r]={enabled:!0}),"navigation"===r&&e[r]&&e[r].enabled&&!e[r].prevEl&&!e[r].nextEl&&(e[r].auto=!0),["pagination","scrollbar"].indexOf(r)>=0&&e[r]&&e[r].enabled&&!e[r].el&&(e[r].auto=!0),r in e&&"enabled"in o?("object"!=typeof e[r]||"enabled"in e[r]||(e[r].enabled=!0),e[r]||(e[r]={enabled:!1}),(0,i.x)(t,n)):(0,i.x)(t,n)):(0,i.x)(t,n)}}const N={eventsEmitter:d,update:y,translate:v,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,t){void 0===e&&(e=!0);const n=this,{params:r}=n;r.cssMode||(r.autoHeight&&n.updateAutoHeight(),b({swiper:n,runCallbacks:e,direction:t,step:"Start"}))},transitionEnd:function(e,t){void 0===e&&(e=!0);const n=this,{params:r}=n;n.animating=!1,r.cssMode||(n.setTransition(0),b({swiper:n,runCallbacks:e,direction:t,step:"End"}))}},slide:w,loop:S,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=x.bind(e),e.onTouchMove=k.bind(e),e.onTouchEnd=T.bind(e),e.onDocumentTouchStart=A.bind(e),t.cssMode&&(e.onScroll=P.bind(e)),e.onClick=O.bind(e),e.onLoad=I.bind(e),_(e,"on")},detachEvents:function(){_(this,"off")}},breakpoints:{setBreakpoint:function(){const e=this,{realIndex:t,initialized:n,params:o,el:a}=e,l=o.breakpoints;if(!l||l&&0===Object.keys(l).length)return;const s=(0,r.g)(),u="window"!==o.breakpointsBase&&o.breakpointsBase?"container":o.breakpointsBase,c=["window","container"].includes(o.breakpointsBase)||!o.breakpointsBase?e.el:s.querySelector(o.breakpointsBase),d=e.getBreakp
2oint(l,u,c);if(!d||e.currentBreakpoint===d)return;const f=(d in l?l[d]:void 0)||e.originalParams,p=M(e,o),h=M(e,f),m=e.params.grabCursor,g=f.grabCursor,y=o.enabled;p&&!h?(a.classList.remove(`${o.containerModifierClass}grid`,`${o.containerModifierClass}grid-column`),e.emitContainerClasses()):!p&&h&&(a.classList.add(`${o.containerModifierClass}grid`),(f.grid.fill&&"column"===f.grid.fill||!f.grid.fill&&"column"===o.grid.fill)&&a.classList.add(`${o.containerModifierClass}grid-column`),e.emitContainerClasses()),m&&!g?e.unsetGrabCursor():!m&&g&&e.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(t=>{if(void 0===f[t])return;const n=o[t]&&o[t].enabled,r=f[t]&&f[t].enabled;n&&!r&&e[t].disable(),!n&&r&&e[t].enable()});const v=f.direction&&f.direction!==o.direction,b=o.loop&&(f.slidesPerView!==o.slidesPerView||v),w=o.loop;v&&n&&e.changeDirection(),(0,i.x)(e.params,f);const S=e.params.enabled,E=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),y&&!S?e.disable():!y&&S&&e.enable(),e.currentBreakpoint=d,e.emit("_beforeBreakpoint",f),n&&(b?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!w&&E?(e.loopCreate(t),e.updateSlides()):w&&!E&&e.loopDestroy()),e.emit("breakpoint",f)},getBreakpoint:function(e,t,n){if(void 0===t&&(t="window"),!e||"container"===t&&!n)return;let i=!1;const o=(0,r.a)(),a="window"===t?o.innerHeight:n.clientHeight,l=Object.keys(e).map(e=>{if("string"==typeof e&&0===e.indexOf("@")){const t=parseFloat(e.substr(1));return{value:a*t,point:e}}return{value:e,point:e}});l.sort((e,t)=>parseInt(e.value,10)-parseInt(t.value,10));for(let e=0;e<l.length;e+=1){const{point:r,value:a}=l[e];"window"===t?o.matchMedia(`(min-width: ${a}px)`).matches&&(i=r):a<=n.clientWidth&&(i=r)}return i||"max"}},checkOverflow:{checkOverflow:function(){const e=this,{isLocked:t,params:n}=e,{slidesOffsetBefore:r}=n;if(r){const t=e.slides.length-1,n=e.slidesGrid[t]+e.slidesSizesGrid[t]+2*r;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:{addClasses:function(){const e=this,{classNames:t,params:n,rtl:r,el:i,device:o}=e,a=function(e,t){const n=[];return e.forEach(e=>{"object"==typeof e?Object.keys(e).forEach(r=>{e[r]&&n.push(t+r)}):"string"==typeof e&&n.push(t+e)}),n}(["initialized",n.direction,{"free-mode":e.params.freeMode&&n.freeMode.enabled},{autoheight:n.autoHeight},{rtl:r},{grid:n.grid&&n.grid.rows>1},{"grid-column":n.grid&&n.grid.rows>1&&"column"===n.grid.fill},{android:o.android},{ios:o.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);t.push(...a),i.classList.add(...t),e.emitContainerClasses()},removeClasses:function(){const{el:e,classNames:t}=this;e&&"string"!=typeof e&&(e.classList.remove(...t),this.emitContainerClasses())}}},D={};class j{constructor(){let e,t;for(var n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];1===o.length&&o[0].constructor&&"Object"===Object.prototype.toString.call(o[0]).slice(8,-1)?t=o[0]:[e,t]=o,t||(t={}),t=(0,i.x)({},t),e&&!t.el&&(t.el=e);const l=(0,r.g)();if(t.el&&"string"==typeof t.el&&l.querySelectorAll(t.el).length>1){const e=[];return l.querySelectorAll(t.el).forEach(n=>{const r=(0,i.x)({},t,{el:n});e.push(new j(r))}),e}const d=this;d.__swiper__=!0,d.support=s(),d.device=u({userAgent:t.userAgent}),d.browser=c(),d.eventsListeners={},d.eventsAnyListeners=[],d.modules=[...d.__modules__],t.modules&&Array.isArray(t.modules)&&d.modules.push(...t.modules);const f={};d.modules.forEach(e=>{e({params:t,swiper:d,extendParams:R(t,f),on:d.on.bind(d),once:d.once.bind(d),off:d.off.bind(d),emit:d.emit.bind(d)})});const p=(0,i.x)({},L,f);return d.params=(0,i.x)({},p,D,t),d.originalParams=(0,i.x)({},d.params),d.passedParams=(0,i.x)({}
2,t),d.params&&d.params.on&&Object.keys(d.params.on).forEach(e=>{d.on(e,d.params.on[e])}),d.params&&d.params.onAny&&d.onAny(d.params.onAny),Object.assign(d,{enabled:d.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return"horizontal"===d.params.direction},isVertical(){return"vertical"===d.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:d.params.allowSlideNext,allowSlidePrev:d.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:d.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:d.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),d.emit("_swiper"),d.params.init&&d.init(),d}getDirectionLabel(e){return this.isHorizontal()?e:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[e]}getSlideIndex(e){const{slidesEl:t,params:n}=this,r=(0,i.e)(t,`.${n.slideClass}, swiper-slide`),o=(0,i.i)(r[0]);return(0,i.i)(e)-o}getSlideIndexByData(e){return this.getSlideIndex(this.slides.find(t=>1*t.getAttribute("data-swiper-slide-index")===e))}getSlideIndexWhenGrid(e){return this.grid&&this.params.grid&&this.params.grid.rows>1&&("column"===this.params.grid.fill?e=Math.floor(e/this.params.grid.rows):"row"===this.params.grid.fill&&(e%=Math.ceil(this.slides.length/this.params.grid.rows))),e}recalcSlides(){const{slidesEl:e,params:t}=this;this.slides=(0,i.e)(e,`.${t.slideClass}, swiper-slide`)}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,t){const n=this;e=Math.min(Math.max(e,0),1);const r=n.minTranslate(),i=(n.maxTranslate()-r)*e+r;n.translateTo(i,void 0===t?0:t),n.updateActiveIndex(),n.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=e.el.className.split(" ").filter(t=>0===t.indexOf("swiper")||0===t.indexOf(e.params.containerModifierClass));e.emit("_containerClasses",t.join(" "))}getSlideClasses(e){const t=this;return t.destroyed?"":e.className.split(" ").filter(e=>0===e.indexOf("swiper-slide")||0===e.indexOf(t.params.slideClass)).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=[];e.slides.forEach(n=>{const r=e.getSlideClasses(n);t.push({slideEl:n,classNames:r}),e.emit("_slideClass",n,r)}),e.emit("_slideClasses",t)}slidesPerViewDynamic(e,t){void 0===e&&(e="current"),void 0===t&&(t=!1);const{params:n,slides:r,slidesGrid:i,slidesSizesGrid:o,size:a,activeIndex:l}=this;let s=1;if("number"==typeof n.slidesPerView)return n.slidesPerView;if(n.centeredSlides){let e,t=r[l]?Math.ceil(r[l].swiperSlideSize):0;for(let n=l+1;n<r.length;n+=1)r[n]&&!e&&(t+=Math.ceil(r[n].swiperSlideSize),s+=1,t>a&&(e=!0));for(let n=l-1;n>=0;n-=1)r[n]&&!e&&(t+=r[n].swiperSlideSize,s+=1,t>a&&(e=!0))}else if("current"===e)for(let e=l+1;e<r.length;e+=1){(t?i[e]+o[e]-i[l]<a:i[e]-i[l]<a)&&(s+=1)}else for(let e=l-1;e>=0;e-=1){i[l]-i[e]<a&&(s+=1)}return s}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:t,params:n}=e;function r(){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 i;if(n.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll('[loading="lazy"]')].forEach(t=>{t.complete&&h(e,t)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),n.freeMode&&n.freeMode.enabled&&!n.cssMode)r(),n.autoHeight&&e.updateAutoHeight();else{if(("auto"===n.slidesPerView||n.slidesPerView>1)&&e.isEnd&&!n.centeredSlides){const t=e.virtual&&n.virtual.enabled?e.virtual.slides:e.slides;i=e.slideTo(t.length-1,0,!1,!0)}else i=e.slideTo(e.activeIndex,0,!1,!0);i||r()}n.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,t){void 0===t&&(t=!0);const n=this,r=n.params.direction;return e||(e="horizontal"===r?"vertical":"horizontal"),e===r||"horizontal"!==e&&"vertical"!==e||(n.el.classList.remove(`${n.params.containerModifierClass}${r}`),n.el.classList.add(`${n.params.containerModifierClass}${e}`),n.emitContainerClasses(),n.params.direction=e,n.slides.forEac
2h(t=>{"vertical"===e?t.style.width="":t.style.height=""}),n.emit("changeDirection"),t&&n.update()),n}changeLanguageDirection(e){const t=this;t.rtl&&"rtl"===e||!t.rtl&&"ltr"===e||(t.rtl="rtl"===e,t.rtlTranslate="horizontal"===t.params.direction&&t.rtl,t.rtl?(t.el.classList.add(`${t.params.containerModifierClass}rtl`),t.el.dir="rtl"):(t.el.classList.remove(`${t.params.containerModifierClass}rtl`),t.el.dir="ltr"),t.update())}mount(e){const t=this;if(t.mounted)return!0;let n=e||t.params.el;if("string"==typeof n&&(n=document.querySelector(n)),!n)return!1;n.swiper=t,n.parentNode&&n.parentNode.host&&n.parentNode.host.nodeName===t.params.swiperElementNodeName.toUpperCase()&&(t.isElement=!0);const r=()=>`.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`;let o=(()=>{if(n&&n.shadowRoot&&n.shadowRoot.querySelector){return n.shadowRoot.querySelector(r())}return(0,i.e)(n,r())[0]})();return!o&&t.params.createElements&&(o=(0,i.c)("div",t.params.wrapperClass),n.append(o),(0,i.e)(n,`.${t.params.slideClass}`).forEach(e=>{o.append(e)})),Object.assign(t,{el:n,wrapperEl:o,slidesEl:t.isElement&&!n.parentNode.host.slideSlots?n.parentNode.host:o,hostEl:t.isElement?n.parentNode.host:n,mounted:!0,rtl:"rtl"===n.dir.toLowerCase()||"rtl"===(0,i.q)(n,"direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===n.dir.toLowerCase()||"rtl"===(0,i.q)(n,"direction")),wrongRTL:"-webkit-box"===(0,i.q)(o,"display")}),!0}init(e){const t=this;if(t.initialized)return t;if(!1===t.mount(e))return t;t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.loop&&t.virtual&&t.params.virtual.enabled?t.slideTo(t.params.initialSlide+t.virtual.slidesBefore,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.params.loop&&t.loopCreate(void 0,!0),t.attachEvents();const n=[...t.el.querySelectorAll('[loading="lazy"]')];return t.isElement&&n.push(...t.hostEl.querySelectorAll('[loading="lazy"]')),n.forEach(e=>{e.complete?h(t,e):e.addEventListener("load",e=>{h(t,e.target)})}),g(t),t.initialized=!0,g(t),t.emit("init"),t.emit("afterInit"),t}destroy(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0);const n=this,{params:r,el:o,wrapperEl:a,slides:l}=n;return void 0===n.params||n.destroyed||(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),r.loop&&n.loopDestroy(),t&&(n.removeClasses(),o&&"string"!=typeof o&&o.removeAttribute("style"),a&&a.removeAttribute("style"),l&&l.length&&l.forEach(e=>{e.classList.remove(r.slideVisibleClass,r.slideFullyVisibleClass,r.slideActiveClass,r.slideNextClass,r.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),(0,i.y)(n)),n.destroyed=!0),null}static extendDefaults(e){(0,i.x)(D,e)}static get extendedDefaults(){return D}static get defaults(){return L}static installModule(e){j.prototype.__modules__||(j.prototype.__modules__=[]);const t=j.prototype.__modules__;"function"==typeof e&&t.indexOf(e)<0&&t.push(e)}static use(e){return Array.isArray(e)?(e.forEach(e=>j.installModule(e)),j):(j.installModule(e),j)}}Object.keys(N).forEach(e=>{Object.keys(N[e]).forEach(t=>{j.prototype[t]=N[e][t]})}),j.use([function(e){let{swiper:t,on:n,emit:i}=e;const o=(0,r.a)();let a=null,l=null;const s=()=>{t&&!t.destroyed&&t.initialized&&(i("beforeResize"),i("resize"))},u=()=>{t&&!t.destroyed&&t.initialized&&i("orientationchange")};n("init",()=>{t.params.resizeObserver&&void 0!==o.ResizeObserver?t&&!t.destroyed&&t.initialized&&(a=new ResizeObserver(e=>{l=o.requestAnimationFrame(()=>{const{width:n,height:r}=t;let i=n,o=r;e.forEach(e=>{let{contentBoxSize:n,contentRect:r,target:a}=e;a&&a!==t.el||(i=r?r.width:(n[0]||n).inlineSize,o=r?r.height:(n[0]||n).blockSize)}),i===n&&o===r||s()})}),a.observe(t.el)):(o.addEventListener("resize",s),o.addEventListener("orientationchange",u))}),n("destroy",()=>
2{l&&o.cancelAnimationFrame(l),a&&a.unobserve&&t.el&&(a.unobserve(t.el),a=null),o.removeEventListener("resize",s),o.removeEventListener("orientationchange",u)})},function(e){let{swiper:t,extendParams:n,on:o,emit:a}=e;const l=[],s=(0,r.a)(),u=function(e,n){void 0===n&&(n={});const r=new(s.MutationObserver||s.WebkitMutationObserver)(e=>{if(t.__preventObserver__)return;if(1===e.length)return void a("observerUpdate",e[0]);const n=function(){a("observerUpdate",e[0])};s.requestAnimationFrame?s.requestAnimationFrame(n):s.setTimeout(n,0)});r.observe(e,{attributes:void 0===n.attributes||n.attributes,childList:t.isElement||(void 0===n.childList||n).childList,characterData:void 0===n.characterData||n.characterData}),l.push(r)};n({observer:!1,observeParents:!1,observeSlideChildren:!1}),o("init",()=>{if(t.params.observer){if(t.params.observeParents){const e=(0,i.b)(t.hostEl);for(let t=0;t<e.length;t+=1)u(e[t])}u(t.hostEl,{childList:t.params.observeSlideChildren}),u(t.wrapperEl,{attributes:!1})}}),o("destroy",()=>{l.forEach(e=>{e.disconnect()}),l.splice(0,l.length)})}])},1237:function(e){"use strict";e.exports=EvalError},1333:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(var r in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var i=Object.getOwnPropertySymbols(e);if(1!==i.length||i[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},1514:function(e){"use strict";e.exports=Math.abs},1589:function(e,t,n){"use strict";var r=n(8452),i=n(487),o=n(7675),a=n(5330),l=n(3984),s=i(a());r(s,{getPolyfill:a,implementation:o,shim:l}),e.exports=s},2120:function(e,t,n){"use strict";var r=n(6556),i=r("Date.prototype.getDay"),o=r("Object.prototype.toString"),a=n(9092)();e.exports=function(e){return"object"==typeof e&&null!==e&&(a?function(e){try{return i(e),!0}catch(e){return!1}}(e):"[object Date]"===o(e))}},2205:function(e,t,n){"use strict";var r=n(6743),i=n(1002),o=n(3144);e.exports=function(){return o(r,i,arguments)}},2271:function(e,t,n){"use strict";var r=n(453),i=n(6556),o=n(8859),a=n(507),l=n(9675),s=r("%WeakMap%",!0),u=i("WeakMap.prototype.get",!0),c=i("WeakMap.prototype.set",!0),d=i("WeakMap.prototype.has",!0),f=i("WeakMap.prototype.delete",!0);e.exports=s?function(){var e,t,n={assert:function(e){if(!n.has(e))throw new l("Side channel does not contain "+o(e))},delete:function(n){if(s&&n&&("object"==typeof n||"function"==typeof n)){if(e)return f(e,n)}else if(a&&t)return t.delete(n);return!1},get:function(n){return s&&n&&("object"==typeof n||"function"==typeof n)&&e?u(e,n):t&&t.get(n)},has:function(n){return s&&n&&("object"==typeof n||"function"==typeof n)&&e?d(e,n):!!t&&t.has(n)},set:function(n,r){s&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new s),c(e,n,r)):a&&(t||(t=a()),t.set(n,r))}};return n}:a},2375:function(e,t,n){"use strict";function r(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function i(e,t){void 0===e&&(e={}),void 0===t&&(t={});const n=["__proto__","constructor","prototype"];Object.keys(t).filter(e=>n.indexOf(e)<0).forEach(n=>{void 0===e[n]?e[n]=t[n]:r(t[n])&&r(e[n])&&Object.keys(t[n]).length>0&&i(e[n],t[n])})}n.d(t,{a:function(){return s},g:function(){return a}});const o={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function a(){const e="undefined"!=typeof document?document:{};return i(e,o),e}const l={document:o,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){}
vendor: 4,689 bytes, line 2
2,clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(e){return"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0)},cancelAnimationFrame(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function s(){const e="undefined"!=typeof window?window:{};return i(e,l),e}},2551:function(e,t,n){"use strict";var r=n(6540),i=n(9982);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,l={};function s(e,t){u(e,t),u(e+"Capture",t)}function u(e,t){for(l[e]=t,e=0;e<t.length;e++)a.add(t[e])}var c=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d=Object.prototype.hasOwnProperty,f=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p={},h={};function m(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){g[e]=new m(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];g[t]=new m(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){g[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){g[e]=new m(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){g[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){g[e]=new m(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){g[e]=new m(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){g[e]=new m(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){g[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)});var y=/[\-:]([a-z])/g;function v(e){return e[1].toUpperCase()}function b(e,t,n,r){var i=g.hasOwnProperty(t)?g[t]:null;(null!==i?0!==i.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!d.call(h,e)||!d.call(p,e)&&(f.test(e)?h[e]=!0:(p[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode
2-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(y,v);g[t]=new m(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(y,v);g[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(y,v);g[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)}),g.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)});var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,S=Symbol.for("react.element"),E=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),C=Symbol.for("react.provider"),O=Symbol.for("react.context"),P=Symbol.for("react.forward_ref"),I=Symbol.for("react.suspense"),A=Symbol.for("react.suspense_list"),_=Symbol.for("react.memo"),M=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var L=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var R=Symbol.iterator;function N(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=R&&e[R]||e["@@iterator"])?e:null}var D,j=Object.assign;function F(e){if(void 0===D)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);D=t&&t[1]||""}return"\n"+D+e}var z=!1;function U(e,t){if(!e||z)return"";z=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var i=t.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,l=o.length-1;1<=a&&0<=l&&i[a]!==o[l];)l--;for(;1<=a&&0<=l;a--,l--)if(i[a]!==o[l]){if(1!==a||1!==l)do{if(a--,0>--l||i[a]!==o[l]){var s="\n"+i[a].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}}while(1<=a&&0<=l);break}}}finally{z=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?F(e):""}function H(e){switch(e.tag){case 5:return F(e.type);case 16:return F("Lazy");case 13:return F("Suspense");case 19:return F("SuspenseList");case 0:case 2:case 15:return e=U(e.type,!1);case 11:return e=U(e.type.render,!1);case 1:return e=U(e.type,!0);default:return""}}function B(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case x:return"Fragment";case E:return"Portal";case T:return"Profiler";case k:return"StrictMode";case I:return"Suspense";case A:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case O:return(e.displayName||"Context")+".Consumer";case C:return(e._context.displayName||"Context")+".Provider";case P:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case _:return null!==(t=e.displayName||null)?t:B(e.type)||"Memo";case M:t=e._payload,e=e._init;try{return B(e(t))}catch(e){}}return null}function $(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return B(t);case 8:return t===k?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function V(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function W(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function q(e){e._valueTracker||(e._valueTracker=function(e){var t=W(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function G(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=W(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function K(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Q(e,t){var n=t.checked;return j({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Y(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=V(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function X(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function J(e,t){X(e,t);var n=V(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,V(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Z(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&K(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+V(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(o(91));return j({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ie(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(o(92));
vendor: 14,602 bytes, line 2
2if(te(n)){if(1<n.length)throw Error(o(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:V(n)}}function oe(e,t){var n=V(t.value),r=V(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function le(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function se(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?le(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ue,ce,de=(ce=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ue=ue||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ue.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction(function(){return ce(e,t)})}:ce);function fe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var pe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},he=["Webkit","ms","Moz","O"];function me(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||pe.hasOwnProperty(e)&&pe[e]?(""+t).trim():t+"px"}function ge(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=me(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(pe).forEach(function(e){he.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pe[t]=pe[e]})});var ye=j({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ve(e,t){if(t){if(ye[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(o(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(o(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var we=null;function Se(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Ee=null,xe=null,ke=null;function Te(e){if(e=bi(e)){if("function"!=typeof Ee)throw Error(o(280));var t=e.stateNode;t&&(t=Si(t),Ee(e.stateNode,e.type,t))}}function Ce(e){xe?ke?ke.push(e):ke=[e]:xe=e}function Oe(){if(xe){var e=xe,t=ke;if(ke=xe=null,Te(e),t)for(e=0;e<t.length;e++)Te(t[e])}}function Pe(e,t){return e(t)}function Ie(){}var Ae=!1;function _e(e,t,n){if(Ae)return e(t,n);Ae=!0;try{return Pe(e,t,n)}finally{Ae=!1,(null!==xe||null!==ke)&&(Ie(),Oe())}}function Me(e,t){var n=e.stateNode;if(null===n)return null;var r=Si(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(o(231,t,typeof n));return n}var Le=!1;if(c)try{var Re={};Object.defineProperty(Re,"passive",{get:function(){Le=!0}}),window.addEventListener("test",Re,Re),window.removeEventListener("test",Re,Re)}catch(ce){Le=!1}function Ne(e,t,n,r,i,o,a,l,s){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var De=!1,je=null,Fe=!1,ze=null,Ue={onError:function(e){De=!0,je=e}};function He(e,t,n,r,i,o,a,l,s){De=!1,je=null,Ne.apply(Ue,arguments)}function Be(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function $e(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Ve(e){if(Be(e)!==e)throw Error(o(188))}function We(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=Be(e)))throw Error(o(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(r=i.return)){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return Ve(i),e;if(a===r)return Ve(i),t;a=a.sibling}throw Error(o(188))}if(n.return!==r.return)n=i,r=a;else{for(var l=!1,s=i.child;s;){if(s===n){l=!0,n=i,r=a;break}if(s===r){l=!0,r=i,n=a;break}s=s.sibling}if(!l){for(s=a.child;s;){if(s===n){l=!0,n=a,r=i;break}if(s===r){l=!0,r=a,n=i;break}s=s.sibling}if(!l)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(3!==n.tag)throw Error(o(188));return n.stateNode.current===n?e:t}(e))?qe(e):null}function qe(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=qe(e);if(null!==t)return t;e=e.sibling}return null}var Ge=i.unstable_scheduleCallback,Ke=i.unstable_cancelCallback,Qe=i.unstable_shouldYield,Ye=i.unstable_requestPaint,Xe=i.unstable_now,Je=i.unstable_getCurrentPriorityLevel,Ze=i.unstable_ImmediatePriority,et=i.unstable_UserBlockingPriority,tt=i.unstable_NormalPriority,nt=i.unstable_LowPriority,rt=i.unstable_IdlePriority,it=null,ot=null;var at=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(lt(e)/st|0)|0},lt=Math.log,st=Math.LN2;var ut=64,ct=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ft(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=268435455&n;if(0!==a){var l=a&~i;0!==l?r=dt(l):0!==(o&=a)&&(r=dt(o))}else 0!==(a=n&~i)?r=dt(a):0!==o&&(r=dt(o));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&i)&&((i=r&-r)>=(o=t&-t)||16===i&&4194240&o))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-at(t)),r|=e[n],t&=~i;return r}function pt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ht(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=ut;return!(4194240&(ut<<=1))&&(ut=64),e}function gt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function yt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function vt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var bt=0;function wt(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var St,Et,xt,kt,Tt,Ct=!1,Ot=[],Pt=null,It=null,At=null,_t=new Map,Mt=new Map,Lt=[],Rt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Nt(e,t){switch(e){case"focusin":case"focusout":Pt=null;break;case"dragenter":case"dragleave":It=null;break;case"mouseover":case"mouseout":At=null;break;case"pointerover":case"pointerout":_t.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Mt.delete(t.pointerId)}}function Dt(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},null!==t&&(null!==(t=bi(t))&&Et(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function jt(e){var t=vi(e.target);if(null!==t){var n=Be(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=$e(n)))return e.blockedOn=t,void Tt(e.priority,function(){xt(n)})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Ft(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Qt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=bi(n))&&Et(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);we=r,n.target.dispatchEvent(r),we=null,t.shift()}return!0}function zt(e,t,n){Ft(e)&&n.delete(t)}function Ut(){Ct=!1,null!==Pt&&Ft(Pt)&&(Pt=null),null!==It&&Ft(It)&&(It=null),null!==At&&Ft(At)&&(At=null),_t.forEach(zt),Mt.forEach(zt)}function Ht(e,t){e.blockedOn===t&&(e.blockedOn=null,Ct||(Ct=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Ut)))}function Bt(e){function t(t){return Ht(t,e)}if(0<Ot.length){Ht(Ot[0],e);for(var n=1;n<Ot.length;n++){var r=Ot[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Pt&&Ht(Pt,e),null!==It&&Ht(It,e),null!==At&&Ht(At,e),_t.forEach(t),Mt.forEach(t),n=0;n<Lt.length;n++)(r=Lt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Lt.length&&null===(n=Lt[0]).blockedOn;)jt(n),null===n.blockedOn&&Lt.shift()}var $t=w.ReactCurrentBatchConfig,Vt=!0;function Wt(e,t,n,r){var i=bt,o=$t.transition;$t.transition=null;try{bt=1,Gt(e,t,n,r)}finally{bt=i,$t.transition=o}}function qt(e,t,n,r){var i=bt,o=$t.transition;$t.transition=null;try{bt=4,Gt(e,t,n,r)}finally{bt=i,$t.transition=o}}function Gt(e,t,n,r){if(Vt){var i=Qt(e,t,n,r);if(null===i)Vr(e,t,r,Kt,n),Nt(e,r);else if(function(e,t,n,r,i){switch(t){case"focusin":return Pt=Dt(Pt,e,t,n,r,i),!0;case"dragenter":return It=Dt(It,e,t,n,r,i),!0;case"mouseover":return At=Dt(At,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return _t.set(o,Dt(_t.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Mt.set(o,Dt(Mt.get(o)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r))r.stopPropagation();else if(Nt(e,r),4&t&&-1<Rt.indexOf(e)){for(;null!==i;){var o=bi(i);if(null!==o&&St(o),null===(o=Qt(e,t,n,r))&&Vr(e,t,r,Kt,n),o===i)break;i=o}null!==i&&r.stopPropagation()}else Vr(e,t,r,null,n)}}var Kt=null;function Qt(e,t,n,r){if(Kt=null,null!==(e=vi(e=Se(r))))if(null===(t=Be(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=$e(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Kt=e,null}function Yt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Je()){case Ze:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Xt=null,Jt=null,Zt=null;function en(){if(Zt)return Zt;var e,t,n=Jt,r=n.length,i="value"in Xt?Xt.value:Xt.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return Zt=i.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,i,o){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return j(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,ln,sn,un={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cn=on(un),dn=j({},un,{view:0,detail:0}),fn=on(dn),pn=j({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Tn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.from
vendor: 4,346 bytes, line 2
2Element===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==sn&&(sn&&"mousemove"===e.type?(an=e.screenX-sn.screenX,ln=e.screenY-sn.screenY):ln=an=0,sn=e),an)},movementY:function(e){return"movementY"in e?e.movementY:ln}}),hn=on(pn),mn=on(j({},pn,{dataTransfer:0})),gn=on(j({},dn,{relatedTarget:0})),yn=on(j({},un,{animationName:0,elapsedTime:0,pseudoElement:0})),vn=j({},un,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=on(vn),wn=on(j({},un,{data:0})),Sn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},En={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},xn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function kn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=xn[e])&&!!t[e]}function Tn(){return kn}var Cn=j({},dn,{key:function(e){if(e.key){var t=Sn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?En[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Tn,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),On=on(Cn),Pn=on(j({},pn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),In=on(j({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Tn})),An=on(j({},un,{propertyName:0,elapsedTime:0,pseudoElement:0})),_n=j({},pn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Mn=on(_n),Ln=[9,13,27,32],Rn=c&&"CompositionEvent"in window,Nn=null;c&&"documentMode"in document&&(Nn=document.documentMode);var Dn=c&&"TextEvent"in window&&!Nn,jn=c&&(!Rn||Nn&&8<Nn&&11>=Nn),Fn=String.fromCharCode(32),zn=!1;function Un(e,t){switch(e){case"keyup":return-1!==Ln.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Hn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Bn=!1;var $n={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Vn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!$n[e.type]:"textarea"===t}function Wn(e,t,n,r){Ce(r),0<(t=qr(t,"onChange")).length&&(n=new cn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var qn=null,Gn=null;function Kn(e){Fr(e,0)}function Qn(e){if(G(wi(e)))return e}function Yn(e,t){if("change"===e)return t}var Xn=!1;if(c){var Jn;if(c){var Zn="oninput"in document;if(!Zn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Zn="function"==typeof er.oninput}Jn=Zn}else Jn=!1;Xn=Jn&&(!document.documentMode||9<document.documentMode)}function tr(){qn&&(qn.detachEvent("onpropertychange",nr),Gn=qn=null)}function nr(e){if("value"===e.propertyName&&Qn(Gn)){var t=[];Wn(t,Gn,e,Se(e)),_e(Kn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Gn=n,(qn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function ir(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Qn(Gn)}function or(e,t){if("click"===e)return Qn(t)}function ar(e,t){if("input"===e||"change"===e)return Qn(t)}var lr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function sr(e,t){if(lr(e,t))return!0;
vendor: 4,828 bytes, line 2
2if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!d.call(t,i)||!lr(e[i],t[i]))return!1}return!0}function ur(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cr(e,t){var n,r=ur(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ur(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function fr(){for(var e=window,t=K();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=K((e=t.contentWindow).document)}return t}function pr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function hr(e){var t=fr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&pr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=void 0===r.end?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=cr(n,o);var a=cr(n,r);i&&a&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mr=c&&"documentMode"in document&&11>=document.documentMode,gr=null,yr=null,vr=null,br=!1;function wr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==gr||gr!==K(r)||("selectionStart"in(r=gr)&&pr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},vr&&sr(vr,r)||(vr=r,0<(r=qr(yr,"onSelect")).length&&(t=new cn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=gr)))}function Sr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Er={animationend:Sr("Animation","AnimationEnd"),animationiteration:Sr("Animation","AnimationIteration"),animationstart:Sr("Animation","AnimationStart"),transitionend:Sr("Transition","TransitionEnd")},xr={},kr={};function Tr(e){if(xr[e])return xr[e];if(!Er[e])return e;var t,n=Er[e];for(t in n)if(n.hasOwnProperty(t)&&t in kr)return xr[e]=n[t];return e}c&&(kr=document.createElement("div").style,"AnimationEvent"in window||(delete Er.animationend.animation,delete Er.animationiteration.animation,delete Er.animationstart.animation),"TransitionEvent"in window||delete Er.transitionend.transition);var Cr=Tr("animationend"),Or=Tr("animationiteration"),Pr=Tr("animationstart"),Ir=Tr("transitionend"),Ar=new Map,_r="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Mr(e,t){Ar.set(e,t),s(t,[e])}for(var Lr=0;Lr<_r.length;Lr++){var Rr=_r[Lr];Mr(Rr.toLowerCase(),"on"+(Rr[0].toUpperCase()+Rr.slice(1)))}Mr(Cr,"onAnimationEnd"),Mr(Or,"onAnimationIteration"),Mr(Pr,"onAnimationStart"),Mr("dblclick","onDoubleClick"),Mr("focusin","onFocus"),Mr("focusout","onBlur"),Mr(Ir,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),s("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),s("onSelect","focusout contextmenu dragend focu
2sin keydown keyup mousedown mouseup selectionchange".split(" ")),s("onBeforeInput",["compositionend","keypress","textInput","paste"]),s("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Nr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Dr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Nr));function jr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,a,l,s,u){if(He.apply(this,arguments),De){if(!De)throw Error(o(198));var c=je;De=!1,je=null,Fe||(Fe=!0,ze=c)}}(r,t,void 0,e),e.currentTarget=null}function Fr(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var l=r[a],s=l.instance,u=l.currentTarget;if(l=l.listener,s!==o&&i.isPropagationStopped())break e;jr(i,l,u),o=s}else for(a=0;a<r.length;a++){if(s=(l=r[a]).instance,u=l.currentTarget,l=l.listener,s!==o&&i.isPropagationStopped())break e;jr(i,l,u),o=s}}}if(Fe)throw e=ze,Fe=!1,ze=null,e}function zr(e,t){var n=t[mi];void 0===n&&(n=t[mi]=new Set);var r=e+"__bubble";n.has(r)||($r(t,e,2,!1),n.add(r))}function Ur(e,t,n){var r=0;t&&(r|=4),$r(n,e,r,t)}var Hr="_reactListening"+Math.random().toString(36).slice(2);function Br(e){if(!e[Hr]){e[Hr]=!0,a.forEach(function(t){"selectionchange"!==t&&(Dr.has(t)||Ur(t,!1,e),Ur(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Hr]||(t[Hr]=!0,Ur("selectionchange",!1,t))}}function $r(e,t,n,r){switch(Yt(t)){case 1:var i=Wt;break;case 4:i=qt;break;default:i=Gt}n=i.bind(null,t,n,e),i=void 0,!Le||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Vr(e,t,n,r,i){var o=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var l=r.stateNode.containerInfo;if(l===i||8===l.nodeType&&l.parentNode===i)break;if(4===a)for(a=r.return;null!==a;){var s=a.tag;if((3===s||4===s)&&((s=a.stateNode.containerInfo)===i||8===s.nodeType&&s.parentNode===i))return;a=a.return}for(;null!==l;){if(null===(a=vi(l)))return;if(5===(s=a.tag)||6===s){r=o=a;continue e}l=l.parentNode}}r=r.return}_e(function(){var r=o,i=Se(n),a=[];e:{var l=Ar.get(e);if(void 0!==l){var s=cn,u=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":s=On;break;case"focusin":u="focus",s=gn;break;case"focusout":u="blur",s=gn;break;case"beforeblur":case"afterblur":s=gn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":s=hn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=In;break;case Cr:case Or:case Pr:s=yn;break;case Ir:s=An;break;case"scroll":s=fn;break;case"wheel":s=Mn;break;case"copy":case"cut":case"paste":s=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=Pn}var c=!!(4&t),d=!c&&"scroll"===e,f=c?null!==l?l+"Capture":null:l;c=[];for(var p,h=r;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==f&&(null!=(m=Me(h,f))&&c.push(Wr(h,m,p)))),d)break;h=h.return}0<c.length&&(l=new s(l,u,null,n,i),a.push({event:l,listeners:c}))}}if(!(7&t)){if(s="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===we||!(u=n.relatedTarget||n.fromElement)||!vi(u)&&!u[hi])&&(s||l)&&(l=i.window===i?i:(l=i.ownerDocument)?l.defaultView||l.parentWindow:window,s?(s=r,null!==(u=(u=n.relatedTarget||n.toElement)?vi(u):null)&&(u!==(d=Be(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(s=null,u=r),s!==u)){
vendor: 4,259 bytes, line 2
2if(c=hn,m="onMouseLeave",f="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=Pn,m="onPointerLeave",f="onPointerEnter",h="pointer"),d=null==s?l:wi(s),p=null==u?l:wi(u),(l=new c(m,h+"leave",s,n,i)).target=d,l.relatedTarget=p,m=null,vi(i)===r&&((c=new c(f,h+"enter",u,n,i)).target=p,c.relatedTarget=d,m=c),d=m,s&&u)e:{for(f=u,h=0,p=c=s;p;p=Gr(p))h++;for(p=0,m=f;m;m=Gr(m))p++;for(;0<h-p;)c=Gr(c),h--;for(;0<p-h;)f=Gr(f),p--;for(;h--;){if(c===f||null!==f&&c===f.alternate)break e;c=Gr(c),f=Gr(f)}c=null}else c=null;null!==s&&Kr(a,l,s,c,!1),null!==u&&null!==d&&Kr(a,d,u,c,!0)}if("select"===(s=(l=r?wi(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===s&&"file"===l.type)var g=Yn;else if(Vn(l))if(Xn)g=ar;else{g=ir;var y=rr}else(s=l.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(g=or);switch(g&&(g=g(e,r))?Wn(a,g,n,i):(y&&y(e,l,r),"focusout"===e&&(y=l._wrapperState)&&y.controlled&&"number"===l.type&&ee(l,"number",l.value)),y=r?wi(r):window,e){case"focusin":(Vn(y)||"true"===y.contentEditable)&&(gr=y,yr=r,vr=null);break;case"focusout":vr=yr=gr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,wr(a,n,i);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":wr(a,n,i)}var v;if(Rn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Bn?Un(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(jn&&"ko"!==n.locale&&(Bn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Bn&&(v=en()):(Jt="value"in(Xt=i)?Xt.value:Xt.textContent,Bn=!0)),0<(y=qr(r,b)).length&&(b=new wn(b,e,null,n,i),a.push({event:b,listeners:y}),v?b.data=v:null!==(v=Hn(n))&&(b.data=v))),(v=Dn?function(e,t){switch(e){case"compositionend":return Hn(t);case"keypress":return 32!==t.which?null:(zn=!0,Fn);case"textInput":return(e=t.data)===Fn&&zn?null:e;default:return null}}(e,n):function(e,t){if(Bn)return"compositionend"===e||!Rn&&Un(e,t)?(e=en(),Zt=Jt=Xt=null,Bn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return jn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=qr(r,"onBeforeInput")).length&&(i=new wn("onBeforeInput","beforeinput",null,n,i),a.push({event:i,listeners:r}),i.data=v))}Fr(a,t)})}function Wr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function qr(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=Me(e,n))&&r.unshift(Wr(e,o,i)),null!=(o=Me(e,t))&&r.push(Wr(e,o,i))),e=e.return}return r}function Gr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Kr(e,t,n,r,i){for(var o=t._reactName,a=[];null!==n&&n!==r;){var l=n,s=l.alternate,u=l.stateNode;if(null!==s&&s===r)break;5===l.tag&&null!==u&&(l=u,i?null!=(s=Me(n,o))&&a.unshift(Wr(n,s,l)):i||null!=(s=Me(n,o))&&a.push(Wr(n,s,l))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Qr=/\r\n?/g,Yr=/\u0000|\uFFFD/g;function Xr(e){return("string"==typeof e?e:""+e).replace(Qr,"\n").replace(Yr,"")}function Jr(e,t,n){if(t=Xr(t),Xr(e)!==t&&n)throw Error(o(425))}function Zr(){}var ei=null,ti=null;function ni(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ri="function"==typeof setTimeout?setTimeout:void 0,ii="function"==typeof clearTimeout?clearTimeout:void 0,oi="function"==typeof Promise?Promise:void 0,ai="function"==typeof queueMicrotask?queueMicrotask:void 0!==oi?function(e){return oi.resolve(null).then(e).catch(li)}:ri;function li(e){setTimeout(function(){throw e})}function si(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)){if(0===r)return e.removeChild(i),void Bt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=i}while(n);Bt(t)}function ui(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;
vendor: 4,514 bytes, line 2
2if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function ci(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var di=Math.random().toString(36).slice(2),fi="__reactFiber$"+di,pi="__reactProps$"+di,hi="__reactContainer$"+di,mi="__reactEvents$"+di,gi="__reactListeners$"+di,yi="__reactHandles$"+di;function vi(e){var t=e[fi];if(t)return t;for(var n=e.parentNode;n;){if(t=n[hi]||n[fi]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ci(e);null!==e;){if(n=e[fi])return n;e=ci(e)}return t}n=(e=n).parentNode}return null}function bi(e){return!(e=e[fi]||e[hi])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function wi(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(o(33))}function Si(e){return e[pi]||null}var Ei=[],xi=-1;function ki(e){return{current:e}}function Ti(e){0>xi||(e.current=Ei[xi],Ei[xi]=null,xi--)}function Ci(e,t){xi++,Ei[xi]=e.current,e.current=t}var Oi={},Pi=ki(Oi),Ii=ki(!1),Ai=Oi;function _i(e,t){var n=e.type.contextTypes;if(!n)return Oi;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Mi(e){return null!=(e=e.childContextTypes)}function Li(){Ti(Ii),Ti(Pi)}function Ri(e,t,n){if(Pi.current!==Oi)throw Error(o(168));Ci(Pi,t),Ci(Ii,n)}function Ni(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in t))throw Error(o(108,$(e)||"Unknown",i));return j({},n,r)}function Di(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Oi,Ai=Pi.current,Ci(Pi,e),Ci(Ii,Ii.current),!0}function ji(e,t,n){var r=e.stateNode;if(!r)throw Error(o(169));n?(e=Ni(e,t,Ai),r.__reactInternalMemoizedMergedChildContext=e,Ti(Ii),Ti(Pi),Ci(Pi,e)):Ti(Ii),Ci(Ii,n)}var Fi=null,zi=!1,Ui=!1;function Hi(e){null===Fi?Fi=[e]:Fi.push(e)}function Bi(){if(!Ui&&null!==Fi){Ui=!0;var e=0,t=bt;try{var n=Fi;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Fi=null,zi=!1}catch(t){throw null!==Fi&&(Fi=Fi.slice(e+1)),Ge(Ze,Bi),t}finally{bt=t,Ui=!1}}return null}var $i=[],Vi=0,Wi=null,qi=0,Gi=[],Ki=0,Qi=null,Yi=1,Xi="";function Ji(e,t){$i[Vi++]=qi,$i[Vi++]=Wi,Wi=e,qi=t}function Zi(e,t,n){Gi[Ki++]=Yi,Gi[Ki++]=Xi,Gi[Ki++]=Qi,Qi=e;var r=Yi;e=Xi;var i=32-at(r)-1;r&=~(1<<i),n+=1;var o=32-at(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,Yi=1<<32-at(t)+i|n<<i|r,Xi=o+e}else Yi=1<<o|n<<i|r,Xi=e}function eo(e){null!==e.return&&(Ji(e,1),Zi(e,1,0))}function to(e){for(;e===Wi;)Wi=$i[--Vi],$i[Vi]=null,qi=$i[--Vi],$i[Vi]=null;for(;e===Qi;)Qi=Gi[--Ki],Gi[Ki]=null,Xi=Gi[--Ki],Gi[Ki]=null,Yi=Gi[--Ki],Gi[Ki]=null}var no=null,ro=null,io=!1,oo=null;function ao(e,t){var n=Mu(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function lo(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,no=e,ro=ui(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,no=e,ro=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Qi?{id:Yi,overflow:Xi}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Mu(18,null,null,0)).stateNode=t,n.return=e,e.child=n,no=e,ro=null,!0);default:return!1}}function so(e){return!(!(1&e.mode)||128&e.flags)}function uo(e){if(io){var t=ro;if(t){var n=t;if(!lo(e,t)){if(so(e))throw Error(o(418));t=ui(n.nextSibling);var r=no;t&&lo(e,t)?ao(r,n):(e.flags=-4097&e.flags|2,io=!1,no=e)}}else{if(so(e))throw Error(o(418));e.flags=-4097&e.flags|2,io=!1,no=e}}}function co(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;no=e}function fo(e){if(e!==no)return!1;if(!io)return co(e),io=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!ni(e.type,e.memoizedProps)),t&&(t=ro)){if(so(e))throw po(),Error(o(418));for(;t;)ao(e,t),t=ui(t.nextSibling)}if(co(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){ro=ui(e.nextSibling);break e}t--}
vendor: 11,197 bytes, line 2
2else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}ro=null}}else ro=no?ui(e.stateNode.nextSibling):null;return!0}function po(){for(var e=ro;e;)e=ui(e.nextSibling)}function ho(){ro=no=null,io=!1}function mo(e){null===oo?oo=[e]:oo.push(e)}var go=w.ReactCurrentBatchConfig;function yo(e,t){if(e&&e.defaultProps){for(var n in t=j({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var vo=ki(null),bo=null,wo=null,So=null;function Eo(){So=wo=bo=null}function xo(e){var t=vo.current;Ti(vo),e._currentValue=t}function ko(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function To(e,t){bo=e,So=wo=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(wl=!0),e.firstContext=null)}function Co(e){var t=e._currentValue;if(So!==e)if(e={context:e,memoizedValue:t,next:null},null===wo){if(null===bo)throw Error(o(308));wo=e,bo.dependencies={lanes:0,firstContext:e}}else wo=wo.next=e;return t}var Oo=null;function Po(e){null===Oo?Oo=[e]:Oo.push(e)}function Io(e,t,n,r){var i=t.interleaved;return null===i?(n.next=n,Po(t)):(n.next=i.next,i.next=n),t.interleaved=n,Ao(e,r)}function Ao(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var _o=!1;function Mo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Lo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ro(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function No(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&Is){var i=r.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Ao(e,n)}return null===(i=r.interleaved)?(t.next=t,Po(r)):(t.next=i.next,i.next=t),r.interleaved=t,Ao(e,n)}function Do(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,vt(e,n)}}function jo(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Fo(e,t,n,r){var i=e.updateQueue;_o=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,l=i.shared.pending;if(null!==l){i.shared.pending=null;var s=l,u=s.next;s.next=null,null===a?o=u:a.next=u,a=s;var c=e.alternate;null!==c&&((l=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===l?c.firstBaseUpdate=u:l.next=u,c.lastBaseUpdate=s))}if(null!==o){var d=i.baseState;for(a=0,c=u=s=null,l=o;;){var f=l.lane,p=l.eventTime;if((r&f)===f){null!==c&&(c=c.next={eventTime:p,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var h=e,m=l;switch(f=t,p=n,m.tag){case 1:if("function"==typeof(h=m.payload)){d=h.call(p,d,f);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(f="function"==typeof(h=m.payload)?h.call(p,d,f):h))break e;d=j({},d,f);break e;case 2:_o=!0}}null!==l.callback&&0!==l.lane&&(e.flags|=64,null===(f=i.effects)?i.effects=[l]:f.push(l))}else p={eventTime:p,lane:f,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===c?(u=c=p,s=d):c=c.next=p,a|=f;if(null===(l=l.next)){if(null===(l=i.shared.pending))break;l=(f=l).next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}if(null===c&&(s=d),i.baseState=s,i.firstBaseUpdate=u,i.lastBaseUpdate=c,null!==(t=i.shared.interleaved)){i=t;do{a|=i.lane,i=i.next}while(i!==t)}else null===o&&(i.shared.lanes=0);js|=a,e.lanes=a,e.memoizedState=d}}function zo(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!=typeof i)throw Error(o(191,i));i.call(r)}}}var Uo=(new r.Component).refs;function Ho(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:j({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var Bo={isMounted:function(e){return!!(e=e._reactInternals)&&Be(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=tu(),i=nu(e),o=Ro(r,i);o.payload=t,null!=n&&(o.callback=n),null!==(t=No(e,o,i))&&(ru(t,e,i,r),Do(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=tu(),i=nu(e),o=Ro(r,i);o.tag=1,o.payload=t,null!=n&&(o.callback=n),null!==(t=No(e,o,i))&&(ru(t,e,i,r),Do(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=tu(),r=nu(e),i=Ro(n,r);i.tag=2,null!=t&&(i.callback=t),null!==(t=No(e,i,r))&&(ru(t,e,r,n),Do(t,e,r))}};function $o(e,t,n,r,i,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!sr(n,r)||!sr(i,o))}function Vo(e,t,n){var r=!1,i=Oi,o=t.contextType;return"object"==typeof o&&null!==o?o=Co(o):(i=Mi(t)?Ai:Pi.current,o=(r=null!=(r=t.contextTypes))?_i(e,i):Oi),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Bo,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function Wo(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Bo.enqueueReplaceState(t,t.state,null)}function qo(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=Uo,Mo(e);var o=t.contextType;"object"==typeof o&&null!==o?i.context=Co(o):(o=Mi(t)?Ai:Pi.current,i.context=_i(e,o)),i.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(Ho(e,t,o,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&Bo.enqueueReplaceState(i,i.state,null),Fo(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4194308)}function Go(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(o(309));var r=n.stateNode}if(!r)throw Error(o(147,e));var i=r,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=i.refs;t===Uo&&(t=i.refs={}),null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!=typeof e)throw Error(o(284));if(!n._owner)throw Error(o(290,e))}return e}function Ko(e,t){throw e=Object.prototype.toString.call(t),Error(o(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Qo(e){return(0,e._init)(e._payload)}function Yo(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Ru(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function l(t){return e&&null===t.alternate&&(t.flags|=2),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=Fu(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function u(e,t,n,r){var o=n.type;return o===x?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===M&&Qo(o)===t.type)?((r=i(t,n.props)).ref=Go(e,t,n),r.return=e,r):((r=Nu(n.type,n.key,n.props,null,e.mode,r)).ref=Go(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=zu(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=Du(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function f(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Fu(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case S:return(n=Nu(t.type,t.key,t.props,null,e.mode,n)).ref=Go(e,null,t),n.return=e,n;case E:return(t=zu(t,e.mode,n)).return=e,t;case M:return f(e,(0,t._init)(t._payload),n)}if(te(t)||N(t))return(t=Du(t,e.mode,n,null)).return=e,t;Ko(e,t)}return null}function p(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==i?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case S:return n.key===i?u(e,t,n,r):null;case E:return n.key===i?c(e,t,n,r):null;case M:return p(e,t,(i=n._init)(n._payload),r)}if(te(n)||N(n))return null!==i?null:d(e,t,n,r,null);Ko(e,n)}return null}function h(e,t,n,r,i){if("string"==typeof r&&""!==r||"number"==typeof r)return s(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case S:return u(t,e=e.get(null===r.key?n:r.key)||null,r,i);case E:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i);case M:return h(e,t,n,(0,r._init)(r._payload),i)}if(te(r)||N(r))return d(t,e=e.get(n)||null,r,i,null);Ko(t,r)}return null}function m(i,o,l,s){for(var u=null,c=null,d=o,m=o=0,g=null;null!==d&&m<l.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var y=p(i,d,l[m],s);if(null===y){null===d&&(d=g);break}e&&d&&null===y.alternate&&t(i,d),o=a(y,o,m),null===c?u=y:c.sibling=y,c=y,d=g}if(m===l.length)return n(i,d),io&&Ji(i,m),u;if(null===d){for(;m<l.length;m++)null!==(d=f(i,l[m],s))&&(o=a(d,o,m),null===c?u=d:c.sibling=d,c=d);return io&&Ji(i,m),u}for(d=r(i,d);m<l.length;m++)null!==(g=h(d,i,m,l[m],s))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),o=a(g,o,m),null===c?u=g:c.sibling=g,c=g);return e&&d.forEach(function(e){return t(i,e)}),io&&Ji(i,m),u}function g(i,l,s,u){var c=N(s);if("function"!=typeof c)throw Error(o(150));if(null==(s=c.call(s)))throw Error(o(151));for(var d=c=null,m=l,g=l=0,y=null,v=s.next();null!==m&&!v.done;g++,v=s.next()){m.index>g?(y=m,m=null):y=m.sibling;var b=p(i,m,v.value,u);if(null===b){null===m&&(m=y);break}e&&m&&null===b.alternate&&t(i,m),l=a(b,l,g),null===d?c=b:d.sibling=b,d=b,m=y}if(v.done)return n(i,m),io&&Ji(i,g),c;if(null===m){for(;!v.done;g++,v=s.next())null!==(v=f(i,v.value,u))&&(l=a(v,l,g),null===d?c=v:d.sibling=v,d=v);return io&&Ji(i,g),c}for(m=r(i,m);!v.done;g++,v=s.next())null!==(v=h(m,i,g,v.value,u))&&(e&&null!==v.alternate&&m.delete(null===v.key?g:v.key),l=a(v,l,g),null===d?c=v:d.sibling=v,d=v);return e&&m.forEach(function(e){return t(i,e)}),io&&Ji(i,g),c}
vendor: 4,321 bytes, line 2
2return function e(r,o,a,s){if("object"==typeof a&&null!==a&&a.type===x&&null===a.key&&(a=a.props.children),"object"==typeof a&&null!==a){switch(a.$$typeof){case S:e:{for(var u=a.key,c=o;null!==c;){if(c.key===u){if((u=a.type)===x){if(7===c.tag){n(r,c.sibling),(o=i(c,a.props.children)).return=r,r=o;break e}}else if(c.elementType===u||"object"==typeof u&&null!==u&&u.$$typeof===M&&Qo(u)===c.type){n(r,c.sibling),(o=i(c,a.props)).ref=Go(r,c,a),o.return=r,r=o;break e}n(r,c);break}t(r,c),c=c.sibling}a.type===x?((o=Du(a.props.children,r.mode,s,a.key)).return=r,r=o):((s=Nu(a.type,a.key,a.props,null,r.mode,s)).ref=Go(r,o,a),s.return=r,r=s)}return l(r);case E:e:{for(c=a.key;null!==o;){if(o.key===c){if(4===o.tag&&o.stateNode.containerInfo===a.containerInfo&&o.stateNode.implementation===a.implementation){n(r,o.sibling),(o=i(o,a.children||[])).return=r,r=o;break e}n(r,o);break}t(r,o),o=o.sibling}(o=zu(a,r.mode,s)).return=r,r=o}return l(r);case M:return e(r,o,(c=a._init)(a._payload),s)}if(te(a))return m(r,o,a,s);if(N(a))return g(r,o,a,s);Ko(r,a)}return"string"==typeof a&&""!==a||"number"==typeof a?(a=""+a,null!==o&&6===o.tag?(n(r,o.sibling),(o=i(o,a)).return=r,r=o):(n(r,o),(o=Fu(a,r.mode,s)).return=r,r=o),l(r)):n(r,o)}}var Xo=Yo(!0),Jo=Yo(!1),Zo={},ea=ki(Zo),ta=ki(Zo),na=ki(Zo);function ra(e){if(e===Zo)throw Error(o(174));return e}function ia(e,t){switch(Ci(na,t),Ci(ta,e),Ci(ea,Zo),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:se(null,"");break;default:t=se(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Ti(ea),Ci(ea,t)}function oa(){Ti(ea),Ti(ta),Ti(na)}function aa(e){ra(na.current);var t=ra(ea.current),n=se(t,e.type);t!==n&&(Ci(ta,e),Ci(ea,n))}function la(e){ta.current===e&&(Ti(ea),Ti(ta))}var sa=ki(0);function ua(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ca=[];function da(){for(var e=0;e<ca.length;e++)ca[e]._workInProgressVersionPrimary=null;ca.length=0}var fa=w.ReactCurrentDispatcher,pa=w.ReactCurrentBatchConfig,ha=0,ma=null,ga=null,ya=null,va=!1,ba=!1,wa=0,Sa=0;function Ea(){throw Error(o(321))}function xa(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!lr(e[n],t[n]))return!1;return!0}function ka(e,t,n,r,i,a){if(ha=a,ma=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,fa.current=null===e||null===e.memoizedState?ll:sl,e=n(r,i),ba){a=0;do{if(ba=!1,wa=0,25<=a)throw Error(o(301));a+=1,ya=ga=null,t.updateQueue=null,fa.current=ul,e=n(r,i)}while(ba)}if(fa.current=al,t=null!==ga&&null!==ga.next,ha=0,ya=ga=ma=null,va=!1,t)throw Error(o(300));return e}function Ta(){var e=0!==wa;return wa=0,e}function Ca(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ya?ma.memoizedState=ya=e:ya=ya.next=e,ya}function Oa(){if(null===ga){var e=ma.alternate;e=null!==e?e.memoizedState:null}else e=ga.next;var t=null===ya?ma.memoizedState:ya.next;if(null!==t)ya=t,ga=e;else{if(null===e)throw Error(o(310));e={memoizedState:(ga=e).memoizedState,baseState:ga.baseState,baseQueue:ga.baseQueue,queue:ga.queue,next:null},null===ya?ma.memoizedState=ya=e:ya=ya.next=e}return ya}function Pa(e,t){return"function"==typeof t?t(e):t}function Ia(e){var t=Oa(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=ga,i=r.baseQueue,a=n.pending;if(null!==a){if(null!==i){var l=i.next;i.next=a.next,a.next=l}r.baseQueue=i=a,n.pending=null}if(null!==i){a=i.next,r=r.baseState;var s=l=null,u=null,c=a;do{var d=c.lane;if((ha&d)===d)null!==u&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var f={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(s=u=f,l=r):u=u.next=f,ma.lanes|=d,js|=d}c=c.next}while(null!==c&&c!==a);null===u?l=r:u.next=s,lr(r,t.memoizedState)||(wl=!0),t.memoizedState=r,t.baseState=l,t.baseQueue=u,n.lastRenderedState=r}if(null!==(e=n.interleaved)){i=e;
vendor: 18,131 bytes, line 2
2do{a=i.lane,ma.lanes|=a,js|=a,i=i.next}while(i!==e)}else null===i&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Aa(e){var t=Oa(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(null!==i){n.pending=null;var l=i=i.next;do{a=e(a,l.action),l=l.next}while(l!==i);lr(a,t.memoizedState)||(wl=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function _a(){}function Ma(e,t){var n=ma,r=Oa(),i=t(),a=!lr(r.memoizedState,i);if(a&&(r.memoizedState=i,wl=!0),r=r.queue,Va(Na.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==ya&&1&ya.memoizedState.tag){if(n.flags|=2048,za(9,Ra.bind(null,n,r,i,t),void 0,null),null===As)throw Error(o(349));30&ha||La(n,t,i)}return i}function La(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=ma.updateQueue)?(t={lastEffect:null,stores:null},ma.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Ra(e,t,n,r){t.value=n,t.getSnapshot=r,Da(t)&&ja(e)}function Na(e,t,n){return n(function(){Da(t)&&ja(e)})}function Da(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!lr(e,n)}catch(e){return!0}}function ja(e){var t=Ao(e,1);null!==t&&ru(t,e,1,-1)}function Fa(e){var t=Ca();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Pa,lastRenderedState:e},t.queue=e,e=e.dispatch=nl.bind(null,ma,e),[t.memoizedState,e]}function za(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=ma.updateQueue)?(t={lastEffect:null,stores:null},ma.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Ua(){return Oa().memoizedState}function Ha(e,t,n,r){var i=Ca();ma.flags|=e,i.memoizedState=za(1|t,n,void 0,void 0===r?null:r)}function Ba(e,t,n,r){var i=Oa();r=void 0===r?null:r;var o=void 0;if(null!==ga){var a=ga.memoizedState;if(o=a.destroy,null!==r&&xa(r,a.deps))return void(i.memoizedState=za(t,n,o,r))}ma.flags|=e,i.memoizedState=za(1|t,n,o,r)}function $a(e,t){return Ha(8390656,8,e,t)}function Va(e,t){return Ba(2048,8,e,t)}function Wa(e,t){return Ba(4,2,e,t)}function qa(e,t){return Ba(4,4,e,t)}function Ga(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ka(e,t,n){return n=null!=n?n.concat([e]):null,Ba(4,4,Ga.bind(null,t,e),n)}function Qa(){}function Ya(e,t){var n=Oa();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&xa(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Xa(e,t){var n=Oa();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&xa(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ja(e,t,n){return 21&ha?(lr(n,t)||(n=mt(),ma.lanes|=n,js|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,wl=!0),e.memoizedState=n)}function Za(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=pa.transition;pa.transition={};try{e(!1),t()}finally{bt=n,pa.transition=r}}function el(){return Oa().memoizedState}function tl(e,t,n){var r=nu(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},rl(e))il(t,n);else if(null!==(n=Io(e,t,n,r))){ru(n,e,r,tu()),ol(n,t,r)}}function nl(e,t,n){var r=nu(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(rl(e))il(t,i);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,l=o(a,n);if(i.hasEagerState=!0,i.eagerState=l,lr(l,a)){var s=t.interleaved;return null===s?(i.next=i,Po(t)):(i.next=s.next,s.next=i),void(t.interleaved=i)}}catch(e){}null!==(n=Io(e,t,i,r))&&(ru(n,e,r,i=tu()),ol(n,t,r))}}function rl(e){var t=e.alternate;return e===ma||null!==t&&t===ma}function il(e,t){ba=va=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ol(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,vt(e,n)}}var al={readContext:Co,useCallback:Ea,useContext:Ea,useEffect:Ea,useImperativeHandle:Ea,useInsertionEffect:Ea,useLayoutEffect:Ea,useMemo:Ea,useReducer:Ea,useRef:Ea,useState:Ea,useDebugValue:Ea,useDeferredValue:Ea,useTransition:Ea,useMutableSource:Ea,useSyncExternalStore:Ea,useId:Ea,unstable_isNewReconciler:!1},ll={readContext:Co,useCallback:function(e,t){return Ca().memoizedState=[e,void 0===t?null:t],e},useContext:Co,useEffect:$a,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Ha(4194308,4,Ga.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ha(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ha(4,2,e,t)},useMemo:function(e,t){var n=Ca();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ca();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=tl.bind(null,ma,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Ca().memoizedState=e},useState:Fa,useDebugValue:Qa,useDeferredValue:function(e){return Ca().memoizedState=e},useTransition:function(){var e=Fa(!1),t=e[0];return e=Za.bind(null,e[1]),Ca().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ma,i=Ca();if(io){if(void 0===n)throw Error(o(407));n=n()}else{if(n=t(),null===As)throw Error(o(349));30&ha||La(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,$a(Na.bind(null,r,a,e),[e]),r.flags|=2048,za(9,Ra.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=Ca(),t=As.identifierPrefix;if(io){var n=Xi;t=":"+t+"R"+(n=(Yi&~(1<<32-at(Yi)-1)).toString(32)+n),0<(n=wa++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=Sa++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},sl={readContext:Co,useCallback:Ya,useContext:Co,useEffect:Va,useImperativeHandle:Ka,useInsertionEffect:Wa,useLayoutEffect:qa,useMemo:Xa,useReducer:Ia,useRef:Ua,useState:function(){return Ia(Pa)},useDebugValue:Qa,useDeferredValue:function(e){return Ja(Oa(),ga.memoizedState,e)},useTransition:function(){return[Ia(Pa)[0],Oa().memoizedState]},useMutableSource:_a,useSyncExternalStore:Ma,useId:el,unstable_isNewReconciler:!1},ul={readContext:Co,useCallback:Ya,useContext:Co,useEffect:Va,useImperativeHandle:Ka,useInsertionEffect:Wa,useLayoutEffect:qa,useMemo:Xa,useReducer:Aa,useRef:Ua,useState:function(){return Aa(Pa)},useDebugValue:Qa,useDeferredValue:function(e){var t=Oa();return null===ga?t.memoizedState=e:Ja(t,ga.memoizedState,e)},useTransition:function(){return[Aa(Pa)[0],Oa().memoizedState]},useMutableSource:_a,useSyncExternalStore:Ma,useId:el,unstable_isNewReconciler:!1};function cl(e,t){try{var n="",r=t;do{n+=H(r),r=r.return}while(r);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i,digest:null}}function dl(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function fl(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}var pl="function"==typeof WeakMap?WeakMap:Map;function hl(e,t,n){(n=Ro(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ws||(Ws=!0,qs=r),fl(0,t)},n}function ml(e,t,n){(n=Ro(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){fl(0,t)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){fl(0,t),"function"!=typeof r&&(null===Gs?Gs=new Set([this]):Gs.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function gl(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new pl;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Cu.bind(null,e,t,n),t.then(e,e))}function yl(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function vl(e,t,n,r,i){return 1&e.mode?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Ro(-1,1)).tag=2,No(n,t,1))),n.lanes|=1),e)}var bl=w.ReactCurrentOwner,wl=!1;function Sl(e,t,n,r){t.child=null===e?Jo(t,null,n,r):Xo(t,e.child,n,r)}function El(e,t,n,r,i){n=n.render;var o=t.ref;return To(t,i),r=ka(e,t,n,r,o,i),n=Ta(),null===e||wl?(io&&n&&eo(t),t.flags|=1,Sl(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Wl(e,t,i))}function xl(e,t,n,r,i){if(null===e){var o=n.type;return"function"!=typeof o||Lu(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Nu(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,kl(e,t,o,r,i))}if(o=e.child,0===(e.lanes&i)){var a=o.memoizedProps;if((n=null!==(n=n.compare)?n:sr)(a,r)&&e.ref===t.ref)return Wl(e,t,i)}return t.flags|=1,(e=Ru(o,r)).ref=t.ref,e.return=t,t.child=e}function kl(e,t,n,r,i){if(null!==e){var o=e.memoizedProps;if(sr(o,r)&&e.ref===t.ref){if(wl=!1,t.pendingProps=r=o,0===(e.lanes&i))return t.lanes=e.lanes,Wl(e,t,i);131072&e.flags&&(wl=!0)}}return Ol(e,t,n,r,i)}function Tl(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ci(Rs,Ls),Ls|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==o?o.baseLanes:n,Ci(Rs,Ls),Ls|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ci(Rs,Ls),Ls|=n;else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,Ci(Rs,Ls),Ls|=r;return Sl(e,t,i,n),t.child}function Cl(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ol(e,t,n,r,i){var o=Mi(n)?Ai:Pi.current;return o=_i(t,o),To(t,i),n=ka(e,t,n,r,o,i),r=Ta(),null===e||wl?(io&&r&&eo(t),t.flags|=1,Sl(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Wl(e,t,i))}function Pl(e,t,n,r,i){if(Mi(n)){var o=!0;Di(t)}else o=!1;if(To(t,i),null===t.stateNode)Vl(e,t),Vo(t,n,r),qo(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,l=t.memoizedProps;a.props=l;var s=a.context,u=n.contextType;"object"==typeof u&&null!==u?u=Co(u):u=_i(t,u=Mi(n)?Ai:Pi.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==r||s!==u)&&Wo(t,a,r,u),_o=!1;var f=t.memoizedState;a.state=f,Fo(t,r,a,i),s=t.memoizedState,l!==r||f!==s||Ii.current||_o?("function"==typeof c&&(Ho(t,n,c,r),s=t.memoizedState),(l=_o||$o(t,n,l,r,f,s,u))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),a.props=r,a.state=s,a.context=u,r=l):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Lo(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:yo(t.type,l),a.props=u,d=t.pendingProps,f=a.context,"object"==typeof(s=n.contextType)&&null!==s?s=Co(s):s=_i(t,s=Mi(n)?Ai:Pi.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==d||f!==s)&&Wo(t,a,r,s),_o=!1,f=t.memoizedState,a.state=f,Fo(t,r,a,i);var h=t.memoizedState;l!==d||f!==h||Ii.current||_o?("function"==typeof p&&(Ho(t,n,p,r),h=t.memoizedState),(u=_o||$o(t,n,u,r,f,h,s)||!1)?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,s),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,s)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=s,r=u):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Il(e,t,n,r,o,i)}function Il(e,t,n,r,i,o){Cl(e,t);var a=!!(128&t.flags);if(!r&&!a)return i&&ji(t,n,!1),Wl(e,t,o);r=t.stateNode,bl.current=t;var l=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=Xo(t,e.child,null,o),t.child=Xo(t,null,l,o)):Sl(e,t,l,o),t.memoizedState=r.state,i&&ji(t,n,!0),t.child}function Al(e){var t=e.stateNode;t.pendingContext?Ri(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Ri(0,t.context,!1),ia(e,t.containerInfo)}function _l(e,t,n,r,i){return ho(),mo(i),t.flags|=256,Sl(e,t,n,r),t.child}var Ml,Ll,Rl,Nl,Dl={dehydrated:null,treeContext:null,retryLane:0};function jl(e){return{baseLanes:e,cachePool:null,transitions:null}}function Fl(e,t,n){var r,i=t.pendingProps,a=sa.current,l=!1,s=!!(128&t.flags);if((r=s)||(r=(null===e||null!==e.memoizedState)&&!!(2&a)),r?(l=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Ci(sa,1&a),null===e)return uo(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=i.children,e=i.fallback,l?(i=t.mode,l=t.child,s={mode:"hidden",children:s},1&i||null===l?l=ju(s,i,0,null):(l.childLanes=0,l.pendingProps=s),e=Du(e,i,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=jl(n),t.memoizedState=Dl,e):zl(t,s));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,i,a,l){if(n)return 256&t.flags?(t.flags&=-257,Ul(e,t,l,r=dl(Error(o(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,i=t.mode,r=ju({mode:"visible",children:r.children},i,0,null),(a=Du(a,i,l,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,1&t.mode&&Xo(t,e.child,null,l),t.child.memoizedState=jl(l),t.memoizedState=Dl,a);if(!(1&t.mode))return Ul(e,t,l,null);if("$!"===i.data){if(r=i.nextSibling&&i.nextSibling.dataset)var s=r.dgst;return r=s,Ul(e,t,l,r=dl(a=Error(o(419)),r,void 0))}if(s=0!==(l&e.childLanes),wl||s){if(null!==(r=As)){switch(l&-l){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=0!==(i&(r.suspendedLanes|l))?0:i)&&i!==a.retryLane&&(a.retryLane=i,Ao(e,i),ru(r,e,i,-1))}return gu(),Ul(e,t,l,r=dl(Error(o(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=Pu.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,ro=ui(i.nextSibling),no=t,io=!0,oo=null,null!==e&&(Gi[Ki++]=Yi,Gi[Ki++]=Xi,Gi[Ki++]=Qi,Yi=e.id,Xi=e.overflow,Qi=t),t=zl(t,r.children),t.flags|=4096,t)}(e,t,s,i,r,a,n);if(l){l=i.fallback,s=t.mode,r=(a=e.child).sibling;var u={mode:"hidden",children:i.children};return 1&s||t.child===a?(i=Ru(a,u)).subtreeFlags=14680064&a.subtreeFlags:((i=t.child).childLanes=0,i.pendingProps=u,t.deletions=null),null!==r?l=Ru(r,l):(l=Du(l,s,n,null)).flags|=2,l.return=t,i.return=t,i.sibling=l,t.child=i,i=l,l=t.child,s=null===(s=e.child.memoizedState)?jl(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},l.memoizedState=s,l.childLanes=e.childLanes&~n,t.memoizedState=Dl,i}return e=(l=e.child).sibling,i=Ru(l,{mode:"visible",children:i.children}),!(1&t.mode)&&(i.lanes=n),i.return=t,i.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=i,t.memoizedState=null,i}function zl(e,t){return(t=ju({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Ul(e,t,n,r){return null!==r&&mo(r),Xo(t,e.child,null,n),(e=zl(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Hl(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),ko(e.return,t,n)}function Bl(e,t,n,r,i){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function $l(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Sl(e,t,r.children,n),2&(r=sa.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Hl(e,n,t);else if(19===e.tag)Hl(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Ci(sa,r),1&t.mode)switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===ua(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Bl(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===ua(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Bl(t,!0,n,null,o);break;case"together":Bl(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Vl(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Wl(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),js|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(n=Ru(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;
vendor: 11,427 bytes, line 2
2)e=e.sibling,(n=n.sibling=Ru(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function ql(e,t){if(!io)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Gl(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=14680064&i.subtreeFlags,r|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Kl(e,t,n){var r=t.pendingProps;switch(to(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Gl(t),null;case 1:case 17:return Mi(t.type)&&Li(),Gl(t),null;case 3:return r=t.stateNode,oa(),Ti(Ii),Ti(Pi),da(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(fo(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==oo&&(lu(oo),oo=null))),Ll(e,t),Gl(t),null;case 5:la(t);var i=ra(na.current);if(n=t.type,null!==e&&null!=t.stateNode)Rl(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(o(166));return Gl(t),null}if(e=ra(ea.current),fo(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[fi]=t,r[pi]=a,e=!!(1&t.mode),n){case"dialog":zr("cancel",r),zr("close",r);break;case"iframe":case"object":case"embed":zr("load",r);break;case"video":case"audio":for(i=0;i<Nr.length;i++)zr(Nr[i],r);break;case"source":zr("error",r);break;case"img":case"image":case"link":zr("error",r),zr("load",r);break;case"details":zr("toggle",r);break;case"input":Y(r,a),zr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},zr("invalid",r);break;case"textarea":ie(r,a),zr("invalid",r)}for(var s in ve(n,a),i=null,a)if(a.hasOwnProperty(s)){var u=a[s];"children"===s?"string"==typeof u?r.textContent!==u&&(!0!==a.suppressHydrationWarning&&Jr(r.textContent,u,e),i=["children",u]):"number"==typeof u&&r.textContent!==""+u&&(!0!==a.suppressHydrationWarning&&Jr(r.textContent,u,e),i=["children",""+u]):l.hasOwnProperty(s)&&null!=u&&"onScroll"===s&&zr("scroll",r)}switch(n){case"input":q(r),Z(r,a,!0);break;case"textarea":q(r),ae(r);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(r.onclick=Zr)}r=i,t.updateQueue=r,null!==r&&(t.flags|=4)}else{s=9===i.nodeType?i:i.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=le(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=s.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),"select"===n&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[fi]=t,e[pi]=r,Ml(e,t,!1,!1),t.stateNode=e;e:{switch(s=be(n,r),n){case"dialog":zr("cancel",e),zr("close",e),i=r;break;case"iframe":case"object":case"embed":zr("load",e),i=r;break;case"video":case"audio":for(i=0;i<Nr.length;i++)zr(Nr[i],e);i=r;break;case"source":zr("error",e),i=r;break;case"img":case"image":case"link":zr("error",e),zr("load",e),i=r;break;case"details":zr("toggle",e),i=r;break;case"input":Y(e,r),i=Q(e,r),zr("invalid",e);break;case"option":default:i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=j({},r,{value:void 0}),zr("invalid",e);break;case"textarea":ie(e,r),i=re(e,r),zr("invalid",e)}for(a in ve(n,i),u=i)if(u.hasOwnProperty(a)){var c=u[a];"style"===a?ge(e,c):"dangerouslySetInnerHTML"===a?null!=(c=c?c.__html:void 0)&&de(e,c):"children"===a?"string"==typeof c?("textarea"!==n||""!==c)&&fe(e,c):"number"==typeof c&&fe(e,""+c):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(l.hasOwnProperty(a)?null!=c&&"onScroll"===a&&zr("scroll",e):null!=c&&b(e,a,c,s))}switch(n){case"input":q(e),Z(e,r,!1);break;case"textarea":q(e),ae(e);break;case"option":null!=r.value&&e.setAttribute("value",""+V(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?ne(e,!!r.multiple,a,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof i.onClick&&(e.onclick=Zr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Gl(t),null;case 6:if(e&&null!=t.stateNode)Nl(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(o(166));if(n=ra(na.current),ra(ea.current),fo(t)){if(r=t.stateNode,n=t.memoizedProps,r[fi]=t,(a=r.nodeValue!==n)&&null!==(e=no))switch(e.tag){case 3:Jr(r.nodeValue,n,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Jr(r.nodeValue,n,!!(1&e.mode))}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[fi]=t,t.stateNode=r}return Gl(t),null;case 13:if(Ti(sa),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(io&&null!==ro&&1&t.mode&&!(128&t.flags))po(),ho(),t.flags|=98560,a=!1;else if(a=fo(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(o(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(o(317));a[fi]=t}else ho(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Gl(t),a=!1}else null!==oo&&(lu(oo),oo=null),a=!0;if(!a)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,1&t.mode&&(null===e||1&sa.current?0===Ns&&(Ns=3):gu())),null!==t.updateQueue&&(t.flags|=4),Gl(t),null);case 4:return oa(),Ll(e,t),null===e&&Br(t.stateNode.containerInfo),Gl(t),null;case 10:return xo(t.type._context),Gl(t),null;case 19:if(Ti(sa),null===(a=t.memoizedState))return Gl(t),null;if(r=!!(128&t.flags),null===(s=a.rendering))if(r)ql(a,!1);else{if(0!==Ns||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(s=ua(e))){for(t.flags|=128,ql(a,!1),null!==(r=s.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=14680066,null===(s=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=s.childLanes,a.lanes=s.lanes,a.child=s.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=s.memoizedProps,a.memoizedState=s.memoizedState,a.updateQueue=s.updateQueue,a.type=s.type,e=s.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ci(sa,1&sa.current|2),t.child}e=e.sibling}null!==a.tail&&Xe()>$s&&(t.flags|=128,r=!0,ql(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ua(s))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),ql(a,!0),null===a.tail&&"hidden"===a.tailMode&&!s.alternate&&!io)return Gl(t),null}else 2*Xe()-a.renderingStartTime>$s&&1073741824!==n&&(t.flags|=128,r=!0,ql(a,!1),t.lanes=4194304);a.isBackwards?(s.sibling=t.child,t.child=s):(null!==(n=a.last)?n.sibling=s:t.child=s,a.last=s)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Xe(),t.sibling=null,n=sa.current,Ci(sa,r?1&n|2:1&n),t):(Gl(t),null);case 22:case 23:return fu(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&1&t.mode?!!(1073741824&Ls)&&(Gl(t),6&t.subtreeFlags&&(t.flags|=8192)):Gl(t),null;case 24:case 25:return null}throw Error(o(156,t.tag))}function Ql(e,t){switch(to(t),t.tag){case 1:return Mi(t.type)&&Li(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return oa(),Ti(Ii),Ti(Pi),da(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return la(t),null;case 13:if(Ti(sa),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(o(340));ho()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Ti(sa),null;case 4:return oa(),null;case 10:return xo(t.type._context),null;case 22:case 23:return fu(),null;default:return null}}Ml=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ll=function(){},Rl=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,ra(ea.current);var o,a=null;switch(n){case"input":i=Q(e,i),r=Q(e,r),a=[];break;case"select":i=j({},i,{value:void 0}),r=j({},r,{value:void 0}),a=[];break;case"textarea":i=re(e,i),r=re(e,r),a=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(e.onclick=Zr)}for(c in ve(n,r),n=null,i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&null!=i[c])if("style"===c){var s=i[c];for(o in s)s.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(l.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in r){var u=r[c];if(s=null!=i?i[c]:void 0,r.hasOwnProperty(c)&&u!==s&&(null!=u||null!=s))if("style"===c)if(s){for(o in s)!s.hasOwnProperty(o)||u&&u.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in u)u.hasOwnProperty(o)&&s[o]!==u[o]&&(n||(n={}),n[o]=u[o])}else n||(a||(a=[]),a.push(c,n)),n=u;else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,s=s?s.__html:void 0,null!=u&&s!==u&&(a=a||[]).push(c,u)):"children"===c?"string"!=typeof u&&"number"!=typeof u||(a=a||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(l.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&zr("scroll",e),a||s===u||(a=[])):(a=a||[]).push(c,u))}n&&(a=a||[]).push("style",n);var c=a;(t.updateQueue=c)&&(t.flags|=4)}},Nl=function(e,t,n,r){n!==r&&(t.flags|=4)};var Yl=!1,Xl=!1,Jl="function"==typeof WeakSet?WeakSet:Set,Zl=null;function es(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Tu(e,t,n)}else n.current=null}function ts(e,t,n){try{n()}catch(n){Tu(e,t,n)}}var ns=!1;function rs(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,void 0!==o&&ts(t,n,o)}i=i.next}while(i!==r)}}function is(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function os(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function as(e){var t=e.alternate;null!==t&&(e.alternate=null,as(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[fi],delete t[pi],delete t[mi],delete t[gi],delete t[yi])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ls(e){return 5===e.tag||3===e.tag||4===e.tag}function ss(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||ls(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}
vendor: 10,303 bytes, line 2
2function us(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Zr));else if(4!==r&&null!==(e=e.child))for(us(e,t,n),e=e.sibling;null!==e;)us(e,t,n),e=e.sibling}function cs(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(cs(e,t,n),e=e.sibling;null!==e;)cs(e,t,n),e=e.sibling}var ds=null,fs=!1;function ps(e,t,n){for(n=n.child;null!==n;)hs(e,t,n),n=n.sibling}function hs(e,t,n){if(ot&&"function"==typeof ot.onCommitFiberUnmount)try{ot.onCommitFiberUnmount(it,n)}catch(e){}switch(n.tag){case 5:Xl||es(n,t);case 6:var r=ds,i=fs;ds=null,ps(e,t,n),fs=i,null!==(ds=r)&&(fs?(e=ds,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):ds.removeChild(n.stateNode));break;case 18:null!==ds&&(fs?(e=ds,n=n.stateNode,8===e.nodeType?si(e.parentNode,n):1===e.nodeType&&si(e,n),Bt(e)):si(ds,n.stateNode));break;case 4:r=ds,i=fs,ds=n.stateNode.containerInfo,fs=!0,ps(e,t,n),ds=r,fs=i;break;case 0:case 11:case 14:case 15:if(!Xl&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,void 0!==a&&(2&o||4&o)&&ts(n,t,a),i=i.next}while(i!==r)}ps(e,t,n);break;case 1:if(!Xl&&(es(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Tu(n,t,e)}ps(e,t,n);break;case 21:ps(e,t,n);break;case 22:1&n.mode?(Xl=(r=Xl)||null!==n.memoizedState,ps(e,t,n),Xl=r):ps(e,t,n);break;default:ps(e,t,n)}}function ms(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Jl),t.forEach(function(t){var r=Iu.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function gs(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var i=n[r];try{var a=e,l=t,s=l;e:for(;null!==s;){switch(s.tag){case 5:ds=s.stateNode,fs=!1;break e;case 3:case 4:ds=s.stateNode.containerInfo,fs=!0;break e}s=s.return}if(null===ds)throw Error(o(160));hs(a,l,i),ds=null,fs=!1;var u=i.alternate;null!==u&&(u.return=null),i.return=null}catch(e){Tu(i,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)ys(t,e),t=t.sibling}function ys(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(gs(t,e),vs(e),4&r){try{rs(3,e,e.return),is(3,e)}catch(t){Tu(e,e.return,t)}try{rs(5,e,e.return)}catch(t){Tu(e,e.return,t)}}break;case 1:gs(t,e),vs(e),512&r&&null!==n&&es(n,n.return);break;case 5:if(gs(t,e),vs(e),512&r&&null!==n&&es(n,n.return),32&e.flags){var i=e.stateNode;try{fe(i,"")}catch(t){Tu(e,e.return,t)}}if(4&r&&null!=(i=e.stateNode)){var a=e.memoizedProps,l=null!==n?n.memoizedProps:a,s=e.type,u=e.updateQueue;if(e.updateQueue=null,null!==u)try{"input"===s&&"radio"===a.type&&null!=a.name&&X(i,a),be(s,l);var c=be(s,a);for(l=0;l<u.length;l+=2){var d=u[l],f=u[l+1];"style"===d?ge(i,f):"dangerouslySetInnerHTML"===d?de(i,f):"children"===d?fe(i,f):b(i,d,f,c)}switch(s){case"input":J(i,a);break;case"textarea":oe(i,a);break;case"select":var p=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var h=a.value;null!=h?ne(i,!!a.multiple,h,!1):p!==!!a.multiple&&(null!=a.defaultValue?ne(i,!!a.multiple,a.defaultValue,!0):ne(i,!!a.multiple,a.multiple?[]:"",!1))}i[pi]=a}catch(t){Tu(e,e.return,t)}}break;case 6:if(gs(t,e),vs(e),4&r){if(null===e.stateNode)throw Error(o(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(t){Tu(e,e.return,t)}}break;case 3:if(gs(t,e),vs(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Bt(t.containerInfo)}catch(t){Tu(e,e.return,t)}break;case 4:default:gs(t,e),vs(e);break;case 13:gs(t,e),vs(e),8192&(i=e.child).flags&&(a=null!==i.memoizedState,i.stateNode.isHidden=a,!a||null!==i.alternate&&null!==i.alternate.memoizedState||(Bs=Xe())),4&r&&ms(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Xl=(c=Xl)||d,gs(t,e),Xl=c):gs(t,e),vs(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!d&&1&e.mode)for(Zl=e,d=e.child;null!==d;){for(f=Zl=d;null!==Zl;){switch(h=(p=Zl).child,p.tag){case 0:case 11:case 14:case 15:rs(4,p,p.return);break;case 1:es(p,p.return);var m=p.stateNode;if("function"==typeof m.componentWillUnmount){r=p,n=p.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){Tu(r,n,e)}}break;case 5:es(p,p.return);break;case 22:if(null!==p.memoizedState){Es(f);continue}}null!==h?(h.return=p,Zl=h):Es(f)}d=d.sibling}e:for(d=null,f=e;;){if(5===f.tag){if(null===d){d=f;try{i=f.stateNode,c?"function"==typeof(a=i.style).setProperty?a.setProperty("display","none","important"):a.display="none":(s=f.stateNode,l=null!=(u=f.memoizedProps.style)&&u.hasOwnProperty("display")?u.display:null,s.style.display=me("display",l))}catch(t){Tu(e,e.return,t)}}}else if(6===f.tag){if(null===d)try{f.stateNode.nodeValue=c?"":f.memoizedProps}catch(t){Tu(e,e.return,t)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===e)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;null===f.sibling;){if(null===f.return||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:gs(t,e),vs(e),4&r&&ms(e);case 21:}}function vs(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(ls(n)){var r=n;break e}n=n.return}throw Error(o(160))}switch(r.tag){case 5:var i=r.stateNode;32&r.flags&&(fe(i,""),r.flags&=-33),cs(e,ss(e),i);break;case 3:case 4:var a=r.stateNode.containerInfo;us(e,ss(e),a);break;default:throw Error(o(161))}}catch(t){Tu(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function bs(e,t,n){Zl=e,ws(e,t,n)}function ws(e,t,n){for(var r=!!(1&e.mode);null!==Zl;){var i=Zl,o=i.child;if(22===i.tag&&r){var a=null!==i.memoizedState||Yl;if(!a){var l=i.alternate,s=null!==l&&null!==l.memoizedState||Xl;l=Yl;var u=Xl;if(Yl=a,(Xl=s)&&!u)for(Zl=i;null!==Zl;)s=(a=Zl).child,22===a.tag&&null!==a.memoizedState?xs(i):null!==s?(s.return=a,Zl=s):xs(i);for(;null!==o;)Zl=o,ws(o,t,n),o=o.sibling;Zl=i,Yl=l,Xl=u}Ss(e)}else 8772&i.subtreeFlags&&null!==o?(o.return=i,Zl=o):Ss(e)}}function Ss(e){for(;null!==Zl;){var t=Zl;if(8772&t.flags){var n=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Xl||is(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Xl)if(null===n)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:yo(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&zo(t,a,r);break;case 3:var l=t.updateQueue;if(null!==l){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}zo(t,l,n)}break;case 5:var s=t.stateNode;if(null===n&&4&t.flags){n=s;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var d=c.memoizedState;if(null!==d){var f=d.dehydrated;null!==f&&Bt(f)}}}break;default:throw Error(o(163))}Xl||512&t.flags&&os(t)}catch(e){Tu(t,t.return,e)}}if(t===e){Zl=null;break}if(null!==(n=t.sibling)){n.return=t.return,Zl=n;break}Zl=t.return}}function Es(e){for(;null!==Zl;){var t=Zl;if(t===e){Zl=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Zl=n;break}Zl=t.return}}function xs(e){for(;null!==Zl;){var t=Zl;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{is(4,t)}catch(e){Tu(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var i=t.return;try{r.componentDidMount()}catch(e){Tu(t,i,e)}}var o=t.return;try{os(t)}catch(e){Tu(t,o,e)}break;case 5:var a=t.return;try{os(t)}catch(e){Tu(t,a,e)}}}catch(e){Tu(t,t.return,e)}if(t===e){Zl=null;break}var l=t.sibling;if(null!==l){l.return=t.return,Zl=l;break}Zl=t.return}}var ks,Ts=Math.ceil,Cs=w.ReactCurrentDispatcher,Os=w.ReactCurrentOwner,Ps=w.ReactCurrentBatchConfig,Is=0,As=null,_s=null,Ms=0,Ls=0,Rs=ki(0),Ns=0,Ds=null,js=0,Fs=0,zs=0,Us=null,Hs=null,Bs=0,$s=1/0,Vs=null,Ws=!1,qs=null,Gs=null,Ks=!1,Qs=null,Ys=0,Xs=0,Js=null,Zs=-1,eu=0;function tu(){return 6&Is?Xe():-1!==Zs?Zs:Zs=Xe()}function nu(e){return 1&e.mode?2&Is&&0!==Ms?Ms&-Ms:null!==go.transition?(0===eu&&(eu=mt()),eu):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Yt(e.type):1}function ru(e,t,n,r){if(50<Xs)throw Xs=0,Js=null,Error(o(185));yt(e,n,r),2&Is&&e===As||(e===As&&(!(2&Is)&&(Fs|=n),4===Ns&&su(e,Ms)),iu(e,r),1===n&&0===Is&&!(1&t.mode)&&($s=Xe()+500,zi&&Bi()))}function iu(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-at(o),l=1<<a,s=i[a];-1===s?0!==(l&n)&&0===(l&r)||(i[a]=pt(l,t)):s<=t&&(e.expiredLanes|=l),o&=~l}}(e,t);var r=ft(e,e===As?Ms:0);if(0===r)null!==n&&Ke(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ke(n),1===t)0===e.tag?function(e){zi=!0,Hi(e)}(uu.bind(null,e)):Hi(uu.bind(null,e)),ai(function(){!(6&Is)&&Bi()}),n=null;else{switch(wt(r)){case 1:n=Ze;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Au(n,ou.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ou(e,t){if(Zs=-1,eu=0,6&Is)throw Error(o(327));var n=e.callbackNode;if(xu()&&e.callbackNode!==n)return null;var r=ft(e,e===As?Ms:0);if(0===r)return null;if(30&r||0!==(r&e.expiredLanes)||t)t=yu(e,r);else{t=r;var i=Is;Is|=2;var a=mu();for(As===e&&Ms===t||(Vs=null,$s=Xe()+500,pu(e,t));;)try{bu();break}catch(t){hu(e,t)}Eo(),Cs.current=a,Is=i,null!==_s?t=0:(As=null,Ms=0,t=Ns)}if(0!==t){if(2===t&&(0!==(i=ht(e))&&(r=i,t=au(e,i))),1===t)throw n=Ds,pu(e,0),su(e,r),iu(e,Xe()),n;if(6===t)su(e,r);else{if(i=e.current.alternate,!(30&r||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!lr(o(),i))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}
vendor: 4,710 bytes, line 2
2(i)||(t=yu(e,r),2===t&&(a=ht(e),0!==a&&(r=a,t=au(e,a))),1!==t)))throw n=Ds,pu(e,0),su(e,r),iu(e,Xe()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(o(345));case 2:case 5:Eu(e,Hs,Vs);break;case 3:if(su(e,r),(130023424&r)===r&&10<(t=Bs+500-Xe())){if(0!==ft(e,0))break;if(((i=e.suspendedLanes)&r)!==r){tu(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ri(Eu.bind(null,e,Hs,Vs),t);break}Eu(e,Hs,Vs);break;case 4:if(su(e,r),(4194240&r)===r)break;for(t=e.eventTimes,i=-1;0<r;){var l=31-at(r);a=1<<l,(l=t[l])>i&&(i=l),r&=~a}if(r=i,10<(r=(120>(r=Xe()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Ts(r/1960))-r)){e.timeoutHandle=ri(Eu.bind(null,e,Hs,Vs),r);break}Eu(e,Hs,Vs);break;default:throw Error(o(329))}}}return iu(e,Xe()),e.callbackNode===n?ou.bind(null,e):null}function au(e,t){var n=Us;return e.current.memoizedState.isDehydrated&&(pu(e,t).flags|=256),2!==(e=yu(e,t))&&(t=Hs,Hs=n,null!==t&&lu(t)),e}function lu(e){null===Hs?Hs=e:Hs.push.apply(Hs,e)}function su(e,t){for(t&=~zs,t&=~Fs,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),r=1<<n;e[n]=-1,t&=~r}}function uu(e){if(6&Is)throw Error(o(327));xu();var t=ft(e,0);if(!(1&t))return iu(e,Xe()),null;var n=yu(e,t);if(0!==e.tag&&2===n){var r=ht(e);0!==r&&(t=r,n=au(e,r))}if(1===n)throw n=Ds,pu(e,0),su(e,t),iu(e,Xe()),n;if(6===n)throw Error(o(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Eu(e,Hs,Vs),iu(e,Xe()),null}function cu(e,t){var n=Is;Is|=1;try{return e(t)}finally{0===(Is=n)&&($s=Xe()+500,zi&&Bi())}}function du(e){null!==Qs&&0===Qs.tag&&!(6&Is)&&xu();var t=Is;Is|=1;var n=Ps.transition,r=bt;try{if(Ps.transition=null,bt=1,e)return e()}finally{bt=r,Ps.transition=n,!(6&(Is=t))&&Bi()}}function fu(){Ls=Rs.current,Ti(Rs)}function pu(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,ii(n)),null!==_s)for(n=_s.return;null!==n;){var r=n;switch(to(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Li();break;case 3:oa(),Ti(Ii),Ti(Pi),da();break;case 5:la(r);break;case 4:oa();break;case 13:case 19:Ti(sa);break;case 10:xo(r.type._context);break;case 22:case 23:fu()}n=n.return}if(As=e,_s=e=Ru(e.current,null),Ms=Ls=t,Ns=0,Ds=null,zs=Fs=js=0,Hs=Us=null,null!==Oo){for(t=0;t<Oo.length;t++)if(null!==(r=(n=Oo[t]).interleaved)){n.interleaved=null;var i=r.next,o=n.pending;if(null!==o){var a=o.next;o.next=i,r.next=a}n.pending=r}Oo=null}return e}function hu(e,t){for(;;){var n=_s;try{if(Eo(),fa.current=al,va){for(var r=ma.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}va=!1}if(ha=0,ya=ga=ma=null,ba=!1,wa=0,Os.current=null,null===n||null===n.return){Ns=1,Ds=t,_s=null;break}e:{var a=e,l=n.return,s=n,u=t;if(t=Ms,s.flags|=32768,null!==u&&"object"==typeof u&&"function"==typeof u.then){var c=u,d=s,f=d.tag;if(!(1&d.mode||0!==f&&11!==f&&15!==f)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=yl(l);if(null!==h){h.flags&=-257,vl(h,l,s,0,t),1&h.mode&&gl(a,c,t),u=c;var m=(t=h).updateQueue;if(null===m){var g=new Set;g.add(u),t.updateQueue=g}else m.add(u);break e}if(!(1&t)){gl(a,c,t),gu();break e}u=Error(o(426))}else if(io&&1&s.mode){var y=yl(l);if(null!==y){!(65536&y.flags)&&(y.flags|=256),vl(y,l,s,0,t),mo(cl(u,s));break e}}a=u=cl(u,s),4!==Ns&&(Ns=2),null===Us?Us=[a]:Us.push(a),a=l;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,jo(a,hl(0,u,t));break e;case 1:s=u;var v=a.type,b=a.stateNode;if(!(128&a.flags||"function"!=typeof v.getDerivedStateFromError&&(null===b||"function"!=typeof b.componentDidCatch||null!==Gs&&Gs.has(b)))){a.flags|=65536,t&=-t,a.lanes|=t,jo(a,ml(a,s,t));break e}}a=a.return}while(null!==a)}Su(n)}catch(e){t=e,_s===n&&null!==n&&(_s=n=n.return);continue}break}}function mu(){var e=Cs.current;return Cs.current=al,null===e?al:e}function gu(){0!==Ns&&3!==Ns&&2!==Ns||(Ns=4),null===As||!(268435455&js)&&!(268435455&Fs)||su(As,Ms)}function yu(e,t){var n=Is;Is|=2;var r=mu();for(As===e&&Ms===t||(Vs=null,pu(e,t));;)try{vu();break}catch(t){hu(e,t)}if(Eo(),Is=n,Cs.current=r,null!==_s)throw Error(o(261));return As=null,Ms=0,Ns}function vu(){for(;null!==_s;)wu(_s)}function bu(){for(;null!==_s&&!Qe();)wu(_s)}function wu(e){var t=ks(e.alternate,e,Ls);e.memoizedProps=e.pendingProps,null===t?Su(e):_s=t,Os.current=null}function Su(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=Ql(n,t)))return n.flags&=32767,void(_s=n);if(null===e)return Ns=6,void(_s=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=Kl(n,t,Ls)))return void(_s=n);if(null!==(t=t.sibling))return void(_s=t);_s=t=e}while(null!==t);
vendor: 5,532 bytes, line 2
20===Ns&&(Ns=5)}function Eu(e,t,n){var r=bt,i=Ps.transition;try{Ps.transition=null,bt=1,function(e,t,n,r){do{xu()}while(null!==Qs);if(6&Is)throw Error(o(327));n=e.finishedWork;var i=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(o(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-at(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}(e,a),e===As&&(_s=As=null,Ms=0),!(2064&n.subtreeFlags)&&!(2064&n.flags)||Ks||(Ks=!0,Au(tt,function(){return xu(),null})),a=!!(15990&n.flags),!!(15990&n.subtreeFlags)||a){a=Ps.transition,Ps.transition=null;var l=bt;bt=1;var s=Is;Is|=4,Os.current=null,function(e,t){if(ei=Vt,pr(e=fr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(e){n=null;break e}var l=0,s=-1,u=-1,c=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==n||0!==i&&3!==f.nodeType||(s=l+i),f!==a||0!==r&&3!==f.nodeType||(u=l+r),3===f.nodeType&&(l+=f.nodeValue.length),null!==(h=f.firstChild);)p=f,f=h;for(;;){if(f===e)break t;if(p===n&&++c===i&&(s=l),p===a&&++d===r&&(u=l),null!==(h=f.nextSibling))break;p=(f=p).parentNode}f=h}n=-1===s||-1===u?null:{start:s,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(ti={focusedElem:e,selectionRange:n},Vt=!1,Zl=t;null!==Zl;)if(e=(t=Zl).child,1028&t.subtreeFlags&&null!==e)e.return=t,Zl=e;else for(;null!==Zl;){t=Zl;try{var m=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var g=m.memoizedProps,y=m.memoizedState,v=t.stateNode,b=v.getSnapshotBeforeUpdate(t.elementType===t.type?g:yo(t.type,g),y);v.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(o(163))}}catch(e){Tu(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Zl=e;break}Zl=t.return}m=ns,ns=!1}(e,n),ys(n,e),hr(ti),Vt=!!ei,ti=ei=null,e.current=n,bs(n,e,i),Ye(),Is=s,bt=l,Ps.transition=a}else e.current=n;if(Ks&&(Ks=!1,Qs=e,Ys=i),a=e.pendingLanes,0===a&&(Gs=null),function(e){if(ot&&"function"==typeof ot.onCommitFiberRoot)try{ot.onCommitFiberRoot(it,e,void 0,!(128&~e.current.flags))}catch(e){}}(n.stateNode),iu(e,Xe()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Ws)throw Ws=!1,e=qs,qs=null,e;!!(1&Ys)&&0!==e.tag&&xu(),a=e.pendingLanes,1&a?e===Js?Xs++:(Xs=0,Js=e):Xs=0,Bi()}(e,t,n,r)}finally{Ps.transition=i,bt=r}return null}function xu(){if(null!==Qs){var e=wt(Ys),t=Ps.transition,n=bt;try{if(Ps.transition=null,bt=16>e?16:e,null===Qs)var r=!1;else{if(e=Qs,Qs=null,Ys=0,6&Is)throw Error(o(331));var i=Is;for(Is|=4,Zl=e.current;null!==Zl;){var a=Zl,l=a.child;if(16&Zl.flags){var s=a.deletions;if(null!==s){for(var u=0;u<s.length;u++){var c=s[u];for(Zl=c;null!==Zl;){var d=Zl;switch(d.tag){case 0:case 11:case 15:rs(8,d,a)}var f=d.child;if(null!==f)f.return=d,Zl=f;else for(;null!==Zl;){var p=(d=Zl).sibling,h=d.return;if(as(d),d===c){Zl=null;break}if(null!==p){p.return=h,Zl=p;break}Zl=h}}}var m=a.alternate;if(null!==m){var g=m.child;if(null!==g){m.child=null;do{var y=g.sibling;g.sibling=null,g=y}while(null!==g)}}Zl=a}}if(2064&a.subtreeFlags&&null!==l)l.return=a,Zl=l;else e:for(;null!==Zl;){if(2048&(a=Zl).flags)switch(a.tag){case 0:case 11:case 15:rs(9,a,a.return)}var v=a.sibling;if(null!==v){v.return=a.return,Zl=v;break e}Zl=a.return}}var b=e.current;for(Zl=b;null!==Zl;){var w=(l=Zl).child;if(2064&l.subtreeFlags&&null!==w)w.return=l,Zl=w;else e:for(l=b;null!==Zl;){if(2048&(s=Zl).flags)try{switch(s.tag){case 0:case 11:case 15:is(9,s)}}catch(e){Tu(s,s.return,e)}if(s===l){Zl=null;break e}var S=s.sibling;if(null!==S){S.return=s.return,Zl=S;break e}Zl=s.return}}if(Is=i,Bi(),ot&&"function"==typeof ot.onPostCommitFiberRoot)try{ot.onPostCommitFiberRoot(it,e)}catch(e){}r=!0}return r}finally{bt=n,Ps.transition=t}}return!1}function ku(e,t,n){e=No(e,t=hl(0,t=cl(n,t),1),1),t=tu(),null!==e&&(yt(e,1,t),iu(e,t))}function Tu(e,t,n){if(3===e.tag)ku(e,e,n);else for(;null!==t;){if(3===t.tag){ku(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Gs||!Gs.has(r))){t=No(t,e=ml(t,e=cl(n,e),1),1),e=tu(),null!==t&&(yt(t,1,e),iu(t,e));break}}t=t.return}}function Cu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=tu(),e.pingedLanes|=e.suspendedLanes&n,As===e&&(Ms&n)===n&&(4===Ns||3===Ns&&(130023424&Ms)===Ms&&500>Xe()-Bs?pu(e,0):zs|=n),iu(e,t)}function Ou(e,t){0===t&&(1&e.mode?(t=ct,!(130023424&(ct<<=1))&&(ct=4194304)):t=1);var n=tu();null!==(e=Ao(e,t))&&(yt(e,t,n),iu(e,n))}function Pu(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Ou(e,n)}function Iu(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(o(314))}null!==r&&r.delete(t),Ou(e,n)}function Au(e,t){return Ge(e,t)}function _u(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.t
vendor: 3,278 bytes, line 2
2ype=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Mu(e,t,n,r){return new _u(e,t,n,r)}function Lu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ru(e,t){var n=e.alternate;return null===n?((n=Mu(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Nu(e,t,n,r,i,a){var l=2;if(r=e,"function"==typeof e)Lu(e)&&(l=1);else if("string"==typeof e)l=5;else e:switch(e){case x:return Du(n.children,i,a,t);case k:l=8,i|=8;break;case T:return(e=Mu(12,n,t,2|i)).elementType=T,e.lanes=a,e;case I:return(e=Mu(13,n,t,i)).elementType=I,e.lanes=a,e;case A:return(e=Mu(19,n,t,i)).elementType=A,e.lanes=a,e;case L:return ju(n,i,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case C:l=10;break e;case O:l=9;break e;case P:l=11;break e;case _:l=14;break e;case M:l=16,r=null;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=Mu(l,n,t,i)).elementType=e,t.type=r,t.lanes=a,t}function Du(e,t,n,r){return(e=Mu(7,e,r,t)).lanes=n,e}function ju(e,t,n,r){return(e=Mu(22,e,r,t)).elementType=L,e.lanes=n,e.stateNode={isHidden:!1},e}function Fu(e,t,n){return(e=Mu(6,e,null,t)).lanes=n,e}function zu(e,t,n){return(t=Mu(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Uu(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Hu(e,t,n,r,i,o,a,l,s){return e=new Uu(e,t,n,l,s),1===t?(t=1,!0===o&&(t|=8)):t=0,o=Mu(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Mo(o),e}function Bu(e){if(!e)return Oi;e:{if(Be(e=e._reactInternals)!==e||1!==e.tag)throw Error(o(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Mi(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(o(171))}if(1===e.tag){var n=e.type;if(Mi(n))return Ni(e,n,t)}return t}function $u(e,t,n,r,i,o,a,l,s){return(e=Hu(n,r,!0,e,0,o,0,l,s)).context=Bu(null),n=e.current,(o=Ro(r=tu(),i=nu(n))).callback=null!=t?t:null,No(n,o,i),e.current.lanes=i,yt(e,i,r),iu(e,r),e}
vendor: 4,716 bytes, line 2
2function Vu(e,t,n,r){var i=t.current,o=tu(),a=nu(i);return n=Bu(n),null===t.context?t.context=n:t.pendingContext=n,(t=Ro(o,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=No(i,t,a))&&(ru(e,i,a,o),Do(e,i,a)),a}function Wu(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function qu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Gu(e,t){qu(e,t),(e=e.alternate)&&qu(e,t)}ks=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Ii.current)wl=!0;else{if(0===(e.lanes&n)&&!(128&t.flags))return wl=!1,function(e,t,n){switch(t.tag){case 3:Al(t),ho();break;case 5:aa(t);break;case 1:Mi(t.type)&&Di(t);break;case 4:ia(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Ci(vo,r._currentValue),r._currentValue=i;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Ci(sa,1&sa.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Fl(e,t,n):(Ci(sa,1&sa.current),null!==(e=Wl(e,t,n))?e.sibling:null);Ci(sa,1&sa.current);break;case 19:if(r=0!==(n&t.childLanes),128&e.flags){if(r)return $l(e,t,n);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),Ci(sa,sa.current),r)break;return null;case 22:case 23:return t.lanes=0,Tl(e,t,n)}return Wl(e,t,n)}(e,t,n);wl=!!(131072&e.flags)}else wl=!1,io&&1048576&t.flags&&Zi(t,qi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Vl(e,t),e=t.pendingProps;var i=_i(t,Pi.current);To(t,n),i=ka(null,t,r,e,i,n);var a=Ta();return t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Mi(r)?(a=!0,Di(t)):a=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,Mo(t),i.updater=Bo,t.stateNode=i,i._reactInternals=t,qo(t,r,e,n),t=Il(null,t,r,!0,a,n)):(t.tag=0,io&&a&&eo(t),Sl(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Vl(e,t),e=t.pendingProps,r=(i=r._init)(r._payload),t.type=r,i=t.tag=function(e){if("function"==typeof e)return Lu(e)?1:0;if(null!=e){if((e=e.$$typeof)===P)return 11;if(e===_)return 14}return 2}(r),e=yo(r,e),i){case 0:t=Ol(null,t,r,e,n);break e;case 1:t=Pl(null,t,r,e,n);break e;case 11:t=El(null,t,r,e,n);break e;case 14:t=xl(null,t,r,yo(r.type,e),n);break e}throw Error(o(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,Ol(e,t,r,i=t.elementType===r?i:yo(r,i),n);case 1:return r=t.type,i=t.pendingProps,Pl(e,t,r,i=t.elementType===r?i:yo(r,i),n);case 3:e:{if(Al(t),null===e)throw Error(o(387));r=t.pendingProps,i=(a=t.memoizedState).element,Lo(e,t),Fo(t,r,null,n);var l=t.memoizedState;if(r=l.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=_l(e,t,r,n,i=cl(Error(o(423)),t));break e}if(r!==i){t=_l(e,t,r,n,i=cl(Error(o(424)),t));break e}for(ro=ui(t.stateNode.containerInfo.firstChild),no=t,io=!0,oo=null,n=Jo(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(ho(),r===i){t=Wl(e,t,n);break e}Sl(e,t,r,n)}t=t.child}return t;case 5:return aa(t),null===e&&uo(t),r=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,l=i.children,ni(r,i)?l=null:null!==a&&ni(r,a)&&(t.flags|=32),Cl(e,t),Sl(e,t,l,n),t.child;case 6:return null===e&&uo(t),null;case 13:return Fl(e,t,n);case 4:return ia(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Xo(t,null,r,n):Sl(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,El(e,t,r,i=t.elementType===r?i:yo(r,i),n);case 7:return Sl(e,t,t.pendingProps,n),t.child;case 8:case 12:return Sl(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,l=i.value,Ci(vo,r._currentValue),r._currentValue=l,null!==a)if(lr(a.value,l)){if(a.children===i.children&&!Ii.current){t=Wl(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var s=a.dependencies;if(null!==s){l=a.child;for(var u=s.firstContext;null!==u;){if(u.context===r){if(1===a.tag){(u=Ro(-1,n&-n)).tag=2;var c=a.updateQueue;if(null!==c){var d=(c=c.shared).pending;null===d?u.next=u:(u.next=d.next,d.next=u),c.pending=u}}a.lanes|=n,null!==(u=a.alternate)&&(u.lanes|=n),ko(a.return,n,t),s.lanes|=n;break}u=u.next}}else if(10===a.tag)l=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(l=a.return))throw Error(o(341));l.lanes|=n,null!==(s=l.alternate)&&(s.lanes|=n),ko(l,n,t),l=a.sibling}else l=a.child;if(null!==l)l.return=a;else for(l=a;null!==l;){if(l===t){l=null;break}if(null!==(a=l.sibling)){a.return=l.return,l=a;break}l=l.return}a=l}Sl(e,t,i.children,n),t=t.child}return t;
2case 9:return i=t.type,r=t.pendingProps.children,To(t,n),r=r(i=Co(i)),t.flags|=1,Sl(e,t,r,n),t.child;case 14:return i=yo(r=t.type,t.pendingProps),xl(e,t,r,i=yo(r.type,i),n);case 15:return kl(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:yo(r,i),Vl(e,t),t.tag=1,Mi(r)?(e=!0,Di(t)):e=!1,To(t,n),Vo(t,r,i),qo(t,r,i,n),Il(null,t,r,!0,e,n);case 19:return $l(e,t,n);case 22:return Tl(e,t,n)}throw Error(o(156,t.tag))};var Ku="function"==typeof reportError?reportError:function(e){console.error(e)};function Qu(e){this._internalRoot=e}function Yu(e){this._internalRoot=e}function Xu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Ju(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Zu(){}function ec(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o;if("function"==typeof i){var l=i;i=function(){var e=Wu(a);l.call(e)}}Vu(t,a,e,i)}else a=function(e,t,n,r,i){if(i){if("function"==typeof r){var o=r;r=function(){var e=Wu(a);o.call(e)}}var a=$u(t,r,e,0,null,!1,0,"",Zu);return e._reactRootContainer=a,e[hi]=a.current,Br(8===e.nodeType?e.parentNode:e),du(),a}for(;i=e.lastChild;)e.removeChild(i);if("function"==typeof r){var l=r;r=function(){var e=Wu(s);l.call(e)}}var s=Hu(e,0,!1,null,0,!1,0,"",Zu);return e._reactRootContainer=s,e[hi]=s.current,Br(8===e.nodeType?e.parentNode:e),du(function(){Vu(t,s,n,r)}),s}(n,t,e,i,r);return Wu(a)}Yu.prototype.render=Qu.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(o(409));Vu(e,t,null,null)},Yu.prototype.unmount=Qu.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;du(function(){Vu(null,e,null,null)}),t[hi]=null}},Yu.prototype.unstable_scheduleHydration=function(e){if(e){var t=kt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Lt.length&&0!==t&&t<Lt[n].priority;n++);Lt.splice(n,0,e),0===n&&jt(e)}},St=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(vt(t,1|n),iu(t,Xe()),!(6&Is)&&($s=Xe()+500,Bi()))}break;case 13:du(function(){var t=Ao(e,1);if(null!==t){var n=tu();ru(t,e,1,n)}}),Gu(e,1)}},Et=function(e){if(13===e.tag){var t=Ao(e,134217728);if(null!==t)ru(t,e,134217728,tu());Gu(e,134217728)}},xt=function(e){if(13===e.tag){var t=nu(e),n=Ao(e,t);if(null!==n)ru(n,e,t,tu());Gu(e,t)}},kt=function(){return bt},Tt=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},Ee=function(e,t,n){switch(t){case"input":if(J(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=Si(r);if(!i)throw Error(o(90));G(r),J(r,i)}}}break;case"textarea":oe(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Pe=cu,Ie=du;var tc={usingClientEntryPoint:!1,Events:[bi,wi,Si,Ce,Oe,cu]},nc={findFiberByHostInstance:vi,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},rc={bundleType:nc.bundleType,version:nc.version,rendererPackageName:nc.rendererPackageName,rendererConfig:nc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=We(e))?null:e.stateNode},findFiberByHostInstance:nc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ic=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ic.isDisabled&&ic.supportsFiber)try{it=ic.inject(rc),ot=ic}catch(ce){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tc,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Xu(t))throw Error(o(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:E,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Xu(e))throw Error(o(299));var n=!1,r="",i=Ku;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=Hu(e,1,!1,null,0,n,0,r,i),e[hi]=t.current,Br(8===e.nodeType?e.parentNode:e),new Qu(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(o(188));throw e=Object.keys(e).join(","),Error(o(268,e))}return e=null===(e=We(t))?null:e.stateNode},t.flushSync=function(e){return du(e)},t.hydrate=function(e,t,n){if(!Ju(t))throw Error(o(200));return ec(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Xu(e))throw Error(o(405));var r=null!=n&&n.hydratedSources||null,i=!1,a="",l=Ku;if(null!=n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(l=n.onRecoverableError)),t=$u(t,null,e,1,null!=n?n:null,i,0,a,l),e[hi]=t.current,Br(e),r)for(e=0;e<r.length;e++)i=(i=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Yu(t)},t.render=function(e,t,n){if(!Ju(t))throw Error(o(200));return ec(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Ju(e))throw Error(o(40));return!!e._reactRootContainer&&(du(function(){ec(null,null,e,!1,function(){e._reactRootContainer=null,e[hi]=null})}),!0)},t.unstable_batchedUpdates=cu,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Ju(n))throw Error(o(200));if(null==e||void 0===e._reactInternals)throw Error(o(38));return ec(e,t,n,!1,r)},t.version="18.2.0-next-9e3b772b8-20220608"},2642:function(e,t,n){"use strict";var r=n(7720),i=Object.prototype.hasOwnProperty,o=Array.isArray,a={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:r.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},l=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},s=function(e,t,n){if(e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1)return e.split(",");if(t.throwOnLimitExceeded&&n>=t.arrayLimit)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");return e},u=function(e,t,n,o){if(e){var a=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,l=/(\[[^[\]]*])/g,u=n.depth>0&&/(\[[^[\]]*])/.exec(a),c=u?a.slice(0,u.index):a,d=[];if(c){if(!n.plainObjects&&i.call(Object.prototype,c)&&!n.allowPrototypes)return;d.push(c)}for(var f=0;n.depth>0&&null!==(u=l.exec(a))&&f<n.depth;){if(f+=1,!n.plainObjects&&i.call(Object.prototype,u[1].slice(1,-1))&&!n.allowPrototypes)return;d.push(u[1])}if(u){if(!0===n.strictDepth)throw new RangeError("Input depth exceeded depth option of "+n.depth+" and strictDepth is true");d.push("["+a.slice(u.index)+"]")}return function(e,t,n,i){var o=0;if(e.length>0&&"[]"===e[e.length-1]){var a=e.slice(0,-1).join("");o=Array.isArray(t)&&t[a]?t[a].length:0}for(var l=i?t:s(t,n,o),u=e.length-1;u>=0;--u){var c,d=e[u];if("[]"===d&&n.parseArrays)c=n.allowEmptyArrays&&(""===l||n.strictNullHandling&&null===l)?[]:r.combine([],l);else{c=n.plainObjects?{__proto__:null}:{};var f="["===d.charAt(0)&&"]"===d.charAt(d.length-1)?d.slice(1,-1):d,p=n.decodeDotInKeys?f.replace(/%2E/g,"."):f,h=parseInt(p,10);n.parseArrays||""!==p?!isNaN(h)&&d!==p&&String(h)===p&&h>=0&&n.parseArrays&&h<=n.arrayLimit?(c=[])[h]=l:"__proto__"!==p&&
vendor: 4,421 bytes, line 2
2(c[p]=l):c={0:l}}l=c}return l}(d,t,n,o)}};e.exports=function(e,t){var n=function(e){if(!e)return a;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(void 0!==e.throwOnLimitExceeded&&"boolean"!=typeof e.throwOnLimitExceeded)throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var t=void 0===e.charset?a.charset:e.charset,n=void 0===e.duplicates?a.duplicates:e.duplicates;if("combine"!==n&&"first"!==n&&"last"!==n)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||a.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:a.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:a.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,duplicates:n,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:a.strictDepth,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling,throwOnLimitExceeded:"boolean"==typeof e.throwOnLimitExceeded&&e.throwOnLimitExceeded}}(t);if(""===e||null==e)return n.plainObjects?{__proto__:null}:{};for(var c="string"==typeof e?function(e,t){var n={__proto__:null},u=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;u=u.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var c=t.parameterLimit===1/0?void 0:t.parameterLimit,d=u.split(t.delimiter,t.throwOnLimitExceeded?c+1:c);if(t.throwOnLimitExceeded&&d.length>c)throw new RangeError("Parameter limit exceeded. Only "+c+" parameter"+(1===c?"":"s")+" allowed.");var f,p=-1,h=t.charset;if(t.charsetSentinel)for(f=0;f<d.length;++f)0===d[f].indexOf("utf8=")&&("utf8=%E2%9C%93"===d[f]?h="utf-8":"utf8=%26%2310003%3B"===d[f]&&(h="iso-8859-1"),p=f,f=d.length);for(f=0;f<d.length;++f)if(f!==p){var m,g,y=d[f],v=y.indexOf("]="),b=-1===v?y.indexOf("="):v+1;-1===b?(m=t.decoder(y,a.decoder,h,"key"),g=t.strictNullHandling?null:""):(m=t.decoder(y.slice(0,b),a.decoder,h,"key"),g=r.maybeMap(s(y.slice(b+1),t,o(n[m])?n[m].length:0),function(e){return t.decoder(e,a.decoder,h,"value")})),g&&t.interpretNumericEntities&&"iso-8859-1"===h&&(g=l(String(g))),y.indexOf("[]=")>-1&&(g=o(g)?[g]:g);var w=i.call(n,m);w&&"combine"===t.duplicates?n[m]=r.combine(n[m],g):w&&"last"!==t.duplicates||(n[m]=g)}return n}(e,n):e,d=n.plainObjects?{__proto__:null}:{},f=Object.keys(c),p=0;p<f.length;++p){var h=f[p],m=u(h,c[h],n,"string"==typeof e);d=r.merge(d,m,n)}return!0===n.allowSparse?d:r.compact(d)}},2694:function(e,t,n){"use strict";var r=n(6925);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol
2:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},2799:function(e,t){"use strict";var n,r=Symbol.for("react.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),u=Symbol.for("react.context"),c=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen");function y(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case o:case l:case a:case f:case p:return e;default:switch(e=e&&e.$$typeof){case c:case u:case d:case m:case h:case s:return e;default:return t}}case i:return t}}}n=Symbol.for("react.module.reference")},3093:function(e,t,n){"use strict";var r=n(4459);e.exports=function(e){return r(e)||0===e?e:e<0?-1:1}},3126:function(e,t,n){"use strict";var r=n(6743),i=n(9675),o=n(76),a=n(3144);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new i("a function is required");return a(r,o,e)}},3144:function(e,t,n){"use strict";var r=n(6743),i=n(1002),o=n(76),a=n(7119);e.exports=a||r.call(o,i)},3206:function(e,t,n){"use strict";var r=n(41),i=n(592)(),o=n(4462).functionsHaveConfigurableNames(),a=n(9675);e.exports=function(e,t){if("function"!=typeof e)throw new a("`fn` is not a function");return arguments.length>2&&!!arguments[2]&&!o||(i?r(e,"name",t,!0,!0):r(e,"name",t)),e}},3516:function(e,t,n){"use strict";var r=n(6540),i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},i.apply(this,arguments)};var o=function(e){var t=e.animate,n=void 0===t||t,o=e.animateBegin,a=e.backgroundColor,l=void 0===a?"#f5f6f7":a,s=e.backgroundOpacity,u=void 0===s?1:s,c=e.baseUrl,d=void 0===c?"":c,f=e.children,p=e.foregroundColor,h=void 0===p?"#eee":p,m=e.foregroundOpacity,g=void 0===m?1:m,y=e.gradientRatio,v=void 0===y?2:y,b=e.gradientDirection,w=void 0===b?"left-right":b,S=e.uniqueKey,E=e.interval,x=void 0===E?.25:E,k=e.rtl,T=void 0!==k&&k,C=e.speed,O=void 0===C?1.2:C,P=e.style,I=void 0===P?{}:P,A=e.title,_=void 0===A?"Loading...":A,M=e.beforeMask,L=void 0===M?null:M,R=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(e,["animate","animateBegin","backgroundColor","backgroundOpacity","baseUrl","children","foregroundColor","foregroundOpacity","gradientRatio","gradientDirection","uniqueKey","interval","rtl","speed","style","title","beforeMask"]),N=S||Math.random().toString(36).substring(6),D=N+"-diff",j=N+"-animated-diff",F=N+"-aria",z=T?{transform:"scaleX(-1)"}:null,U="0; "+x+"; 1",H=O+"s",B="top-bottom"===w?"rotate(90)":void 0;return(0,r.createElement)("svg",i({"aria-labelledby":F,role:"img",style:i(i({},I),z)},R),_?(0,r.createElement)("title",{id:F},_):null,L&&(0,r.isValidElement)(L)?L:null,(0,r.createElement)("rect",{role:"presentation",x:"0",y:"0",width:"100%",height:"100%",clipPath:"url("+d+"#"+D+")",style:{fill:"url("+d+"#"+j+")"}}),(0,r.createElement)("defs",null,(0,r.createElement)("clipPath",{id:D},f),(0,r.createElement)("linearGradient",{id:j,gradientTransform:B},(0,r.createElement)("stop",{offset:"0%",stopColor:l,stopOpacity:u},n&&(0,r.createElement)("animate",{attributeName:"offset",values:-v+"; "+-v+"; 1",keyTimes:U,dur:H,repeatCount:"indefinite",begin:o})),(0,r.createElement)("stop",{offset:"50%",stopColor:h,stopOpacity:g},n&&(0,r.createElement)("animate",{attributeName:"offset",values:-v/2+"; "+-v/2+"; "+(1+v/2),keyTimes:U,dur:H,repeatCount:"indefinite",begin:o})),(0,r.createElement)("stop",{offset:"100%",stopColor:l,stopOpacity:u},n&&(0,r.createElement)("animate",{attributeName:"offset",values:"0; 0;
2 "+(1+v),keyTimes:U,dur:H,repeatCount:"indefinite",begin:o})))))},a=function(e){return e.children?(0,r.createElement)(o,i({},e)):(0,r.createElement)(l,i({},e))},l=function(e){return(0,r.createElement)(a,i({viewBox:"0 0 476 124"},e),(0,r.createElement)("rect",{x:"48",y:"8",width:"88",height:"6",rx:"3"}),(0,r.createElement)("rect",{x:"48",y:"26",width:"52",height:"6",rx:"3"}),(0,r.createElement)("rect",{x:"0",y:"56",width:"410",height:"6",rx:"3"}),(0,r.createElement)("rect",{x:"0",y:"72",width:"380",height:"6",rx:"3"}),(0,r.createElement)("rect",{x:"0",y:"88",width:"178",height:"6",rx:"3"}),(0,r.createElement)("circle",{cx:"20",cy:"20",r:"20"}))};t.Ay=a},3628:function(e,t,n){"use strict";var r=n(8648),i=n(1064),o=n(7176);e.exports=r?function(e){return r(e)}:i?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("getProto: not an object");return i(e)}:o?function(e){return o(e)}:null},3700:function(e,t,n){"use strict";function r(e,t,n){var r=(n||{}).atBegin;return function(e,t,n){var r,i=n||{},o=i.noTrailing,a=void 0!==o&&o,l=i.noLeading,s=void 0!==l&&l,u=i.debounceMode,c=void 0===u?void 0:u,d=!1,f=0;function p(){r&&clearTimeout(r)}function h(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];var l=this,u=Date.now()-f;function h(){f=Date.now(),t.apply(l,i)}function m(){r=void 0}d||(s||!c||r||h(),p(),void 0===c&&u>e?s?(f=Date.now(),a||(r=setTimeout(c?m:h,e))):h():!0!==a&&(r=setTimeout(c?m:h,void 0===c?e-u:e)))}return h.cancel=function(e){var t=(e||{}).upcomingOnly,n=void 0!==t&&t;p(),d=!n},h}(e,t,{debounceMode:!1!==(void 0!==r&&r)})}n.d(t,{s:function(){return r}})},3984:function(e,t,n){"use strict";var r=n(8452).supportsDescriptors,i=n(5330),o=n(5795),a=Object.defineProperty,l=n(9383),s=n(3628),u=/a/;e.exports=function(){if(!r||!s)throw new l("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var e=i(),t=s(u),n=o(t,"flags");return n&&n.get===e||a(t,"flags",{configurable:!0,enumerable:!1,get:e}),e}},4035:function(e,t,n){"use strict";var r,i=n(6556),o=n(9092)(),a=n(9957),l=n(5795);if(o){var s=i("RegExp.prototype.exec"),u={},c=function(){throw u},d={toString:c,valueOf:c};"symbol"==typeof Symbol.toPrimitive&&(d[Symbol.toPrimitive]=c),r=function(e){if(!e||"object"!=typeof e)return!1;var t=l(e,"lastIndex");if(!(t&&a(t,"value")))return!1;try{s(e,d)}catch(e){return e===u}}}else{var f=i("Object.prototype.toString");r=function(e){return!(!e||"object"!=typeof e&&"function"!=typeof e)&&"[object RegExp]"===f(e)}}e.exports=r},4039:function(e,t,n){"use strict";var r="undefined"!=typeof Symbol&&Symbol,i=n(1333);e.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&i())))}},4363:function(e,t,n){"use strict";n(2799)},4459:function(e){"use strict";e.exports=Number.isNaN||function(e){return e!=e}},4462:function(e){"use strict";var t=function(){return"string"==typeof function(){}.name},n=Object.getOwnPropertyDescriptor;if(n)try{n([],"length")}catch(e){n=null}t.functionsHaveConfigurableNames=function(){if(!t()||!n)return!1;var e=n(function(){},"name");return!!e&&!!e.configurable};var r=Function.prototype.bind;t.boundFunctionsHaveNames=function(){return t()&&"function"==typeof r&&""!==function(){}.bind().name},e.exports=t},4765:function(e){"use strict";var t=String.prototype.replace,n=/%20/g,r="RFC1738",i="RFC3986";e.exports={default:i,formatters:{RFC1738:function(e){return t.call(e,n,"+")},RFC3986:function(e){return String(e)}},RFC1738:r,RFC3986:i}},4803:function(e,t,n){"use strict";var r=n(8859),i=n(9675),o=function(e,t,n){for(var r,i=e;null!=(r=i.next);i=r)if(r.key===t)return i.next=r.next,n||(r.next=e.next,e.next=r),r};e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new i("Side channel does not contain "+r(e))},delete:function(t){var n=e&&e.next,r=function(e,t){if(e)return o(e,t,!0)}(e,t);return r&&n&&n===r&&(e=void 0),!!r},get:function(t){return function(e,t){if(e){var n=o(e,t);return n&&n.value}}(e,t)},has:function(t){return function(e,t){return!!e&&!!o(e,t)}(e,t)},set:function(t,n){e||(e={next:void 0}),function(e,t,n){var r=o(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}}
2(e,t,n)}};return t}},4982:function(e,t,n){var r=n(1189),i=n(7244),o=n(7653),a=n(4035),l=n(1589),s=n(2120),u=Date.prototype.getTime;function c(e,t,n){var p=n||{};return!!(p.strict?o(e,t):e===t)||(!e||!t||"object"!=typeof e&&"object"!=typeof t?p.strict?o(e,t):e==t:function(e,t,n){var o,p;if(typeof e!=typeof t)return!1;if(d(e)||d(t))return!1;if(e.prototype!==t.prototype)return!1;if(i(e)!==i(t))return!1;var h=a(e),m=a(t);if(h!==m)return!1;if(h||m)return e.source===t.source&&l(e)===l(t);if(s(e)&&s(t))return u.call(e)===u.call(t);var g=f(e),y=f(t);if(g!==y)return!1;if(g||y){if(e.length!==t.length)return!1;for(o=0;o<e.length;o++)if(e[o]!==t[o])return!1;return!0}if(typeof e!=typeof t)return!1;try{var v=r(e),b=r(t)}catch(e){return!1}if(v.length!==b.length)return!1;for(v.sort(),b.sort(),o=v.length-1;o>=0;o--)if(v[o]!=b[o])return!1;for(o=v.length-1;o>=0;o--)if(!c(e[p=v[o]],t[p],n))return!1;return!0}(e,t,p))}function d(e){return null==e}function f(e){return!(!e||"object"!=typeof e||"number"!=typeof e.length)&&("function"==typeof e.copy&&"function"==typeof e.slice&&!(e.length>0&&"number"!=typeof e[0]))}e.exports=c},5287:function(e,t){"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),s=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.iterator;var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}function v(){}function b(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=y.prototype;var w=b.prototype=new v;w.constructor=b,m(w,y.prototype),w.isPureReactComponent=!0;var S=Array.isArray,E=Object.prototype.hasOwnProperty,x={current:null},k={key:!0,ref:!0,__self:!0,__source:!0};function T(e,t,r){var i,o={},a=null,l=null;if(null!=t)for(i in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(a=""+t.key),t)E.call(t,i)&&!k.hasOwnProperty(i)&&(o[i]=t[i]);var s=arguments.length-2;if(1===s)o.children=r;else if(1<s){for(var u=Array(s),c=0;c<s;c++)u[c]=arguments[c+2];o.children=u}if(e&&e.defaultProps)for(i in s=e.defaultProps)void 0===o[i]&&(o[i]=s[i]);return{$$typeof:n,type:e,key:a,ref:l,props:o,_owner:x.current}}function C(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var O=/\/+/g;function P(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}(""+e.key):t.toString(36)}function I(e,t,i,o,a){var l=typeof e;"undefined"!==l&&"boolean"!==l||(e=null);var s=!1;if(null===e)s=!0;else switch(l){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case n:case r:s=!0}}if(s)return a=a(s=e),e=""===o?"."+P(s,0):o,S(a)?(i="",null!=e&&(i=e.replace(O,"$&/")+"/"),I(a,t,i,"",function(e){return e})):null!=a&&(C(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,i+(!a.key||s&&s.key===a.key?"":(""+a.key).replace(O,"$&/")+"/")+e)),t.push(a)),1;if(s=0,o=""===o?".":o+":",S(e))for(var u=0;u<e.length;u++){var c=o+P(l=e[u],u);s+=I(l,t,i,c,a)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"==typeof c)for(e=c.call(e),u=0;!(l=e.next()).done;)s+=I(l=l.value,t,i,c=o+P(l,u++),a);else if("object"===l)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function A(e,t,n){if(null==e)return e;var r=[],i=0;return I(e,r,"","",function(e){return t.call(n,e,i++)}),r}function _(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var M={current:null},L={transition:null},R={ReactCurrentDispatcher:M,ReactCurrentBatchConfig:L,ReactCurrentOwner:x};t.Children={map:A,forEach:function(e,t,n){A(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return A(e,function(){t++}),t},toArray:function(e){return A(e,function(e){return e})||[]},only:function(e){if(!C(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=y,t.Fragment=i,t.Profiler=a,t.PureComponent=b,t.StrictMode=o,t.Suspense=c,t.__SECRET_INT
2ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=R,t.cloneElement=function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var i=m({},e.props),o=e.key,a=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,l=x.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(u in t)E.call(t,u)&&!k.hasOwnProperty(u)&&(i[u]=void 0===t[u]&&void 0!==s?s[u]:t[u])}var u=arguments.length-2;if(1===u)i.children=r;else if(1<u){s=Array(u);for(var c=0;c<u;c++)s[c]=arguments[c+2];i.children=s}return{$$typeof:n,type:e.type,key:o,ref:a,props:i,_owner:l}},t.createContext=function(e){return(e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:l,_context:e},e.Consumer=e},t.createElement=T,t.createFactory=function(e){var t=T.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=C,t.lazy=function(e){return{$$typeof:f,_payload:{_status:-1,_result:e},_init:_}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=L.transition;L.transition={};try{e()}finally{L.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return M.current.useCallback(e,t)},t.useContext=function(e){return M.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return M.current.useDeferredValue(e)},t.useEffect=function(e,t){return M.current.useEffect(e,t)},t.useId=function(){return M.current.useId()},t.useImperativeHandle=function(e,t,n){return M.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return M.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return M.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return M.current.useMemo(e,t)},t.useReducer=function(e,t,n){return M.current.useReducer(e,t,n)},t.useRef=function(e){return M.current.useRef(e)},t.useState=function(e){return M.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return M.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return M.current.useTransition()},t.version="18.2.0"},5330:function(e,t,n){"use strict";var r=n(7675),i=n(8452).supportsDescriptors,o=Object.getOwnPropertyDescriptor;e.exports=function(){if(i&&"gim"===/a/gim.flags){var e=o(RegExp.prototype,"flags");if(e&&"function"==typeof e.get&&"dotAll"in RegExp.prototype&&"hasIndices"in RegExp.prototype){var t="",n={};if(Object.defineProperty(n,"hasIndices",{get:function(){t+="d"}}),Object.defineProperty(n,"sticky",{get:function(){t+="y"}}),e.get.call(n),"dy"===t)return e.get}}return r}},5338:function(e,t,n){"use strict";var r=n(961);t.H=r.createRoot,r.hydrateRoot},5345:function(e){"use strict";e.exports=URIError},5373:function(e,t,n){"use strict";var r=n(8636),i=n(2642),o=n(4765);e.exports={formats:o,parse:i,stringify:r}},5556:function(e,t,n){e.exports=n(2694)()},5740:function(e,t,n){var r=n(6630);e.exports=r},5795:function(e,t,n){"use strict";var r=n(6549);if(r)try{r([],"length")}catch(e){r=null}e.exports=r},5880:function(e){"use strict";e.exports=Math.pow},6071:function(e,t,n){"use strict";n.d(t,{A:function(){return re}});var r=n(8882),i=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function o(e,{additionalFacetValueFields:t={}}){return e&&0!==Object.keys(e).length?Object.entries(e).reduce((e,[n,r])=>{const o=r.map(e=>{const{type:r,data:o}=e,a=i(e,["type","data"]);return function(e,t){return Object.assign({field:e},t)}(n,Object.assign({type:r,data:o.map(e=>function(e,t={}){const n=Object.prototype.hasOwnProperty.call(e,"value"),{count:r,value:o}=e,a=i(e,["count","value"]);return{count:r,value:n?o:Object.assign(Object.assign({},a),t)}}(e,t[n]))},a))});return Object.assign(Object.assign({},e),{[n]:o})},{}):e}function a(e,t={}){const n=e.info.facets,r=e.info.meta.request_id,i=e.info.meta.page&&void 0!==e.info.meta.page.total_pages?function(e){return Math.min(e,100)}(e.info.meta.page.total_pages):void 0,a=e.info.meta.page?e.info.meta.page.total_results:void 0;return Object.assign(Object.assign(Object.assign(Object.assign({},n&&{facets:o(n,t)}),{rawResponse:e,requestId:r,results:e.rawResults}),void 0!==i&&{totalPages:i}),void 0!==a&&{totalResults:a})}var l=n(4982),s=(n(5373),Object.defineProperty),u=Object.defineProperties,c=Object.getOwnPropertyDescriptors,d=Object.getOwnPropertySymbols,f=Object.prototype.hasOwnProperty,p=Object.prototype.propertyIsEnumerable,h=(e,t,n)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,m=(e,t)=>
2{for(var n in t||(t={}))f.call(t,n)&&h(e,n,t[n]);if(d)for(var n of d(t))p.call(t,n)&&h(e,n,t[n]);return e},g=(e,t)=>u(e,c(t)),y=(e,t)=>{var n={};for(var r in e)f.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&d)for(var r of d(e))t.indexOf(r)<0&&p.call(e,r)&&(n[r]=e[r]);return n},v=(e,t)=>{for(var n in t)s(e,n,{get:t[n],enumerable:!0})},b={};function w(e,t,n){let r=e.find(e=>e.field===t&&e.type===n);return r?r.values:[]}function S(e,t,n,r){return e.reduce((e,i)=>{let o=i,{field:a,values:l,type:s}=o,u=y(o,["field","values","type"]);if(a===t&&(!r||s===r)){let t=l.filter(e=>!x(e,n));return t.length>0?e.concat(m({field:a,values:t,type:s},u)):e}return e.concat(i)},[])}function E(e,t,n,r){let i=e.data,o=w(t,n,r)||[];return g(m({},e),{data:i.map(e=>g(m({},e),{selected:o.some(t=>x(t,e.value))}))})}function x(e,t){return"true"===e||"true"===t?O(e)===O(t):!!(e&&e.name&&t&&t.name&&e.name===t.name)||l(e,t,{strict:!0})}function k(e,t){return t?t.reduce((e,t)=>e.find(e=>e.type===t.type&&e.field===t.field)?e:[...e,t],e):e}function T(e){return"object"==typeof e&&void 0!==e.name}v(b,{doFilterValuesMatch:()=>x,findFilterValues:()=>w,getFilterBooleanValue:()=>O,isFilterValueRange:()=>T,markSelectedFacetValuesFromFilters:()=>E,mergeFilters:()=>k,removeSingleFilterValue:()=>S,serialiseFilter:()=>C});var C=e=>e.reduce((e,t)=>(T(t)?e.push(t.name):e.push(t.toString()),e),[]).join(","),O=e=>"string"==typeof e?"true"===e:!!e;function P(e,t){let n,r=function(){let r=arguments;clearTimeout(n),n=setTimeout(()=>{e.apply(null,r)},t)};return r.cancel=()=>{n&&(clearTimeout(n),n=null)},r}var I=class{constructor(){this.debounceCache={}}runWithDebounce(e,t,n,...r){if(!e)return n(...r);let i=`${t}|${e.toString()}`,o=this.debounceCache[i];o||(this.debounceCache[i]=P(n,e),o=this.debounceCache[i]),o(...r)}cancelByName(e){Object.entries(this.debounceCache).filter(([t])=>t.startsWith(`${e}|`)).forEach(([e,t])=>t.cancel())}};I.debounce=(e,t)=>P(t,e);var A={};function _(e,t,n="all",r){this.debug&&console.log("Search UI: Action","addFilter",...arguments);let{filters:i}=this.state,o=i.find(t=>t.field===e&&t.type===n)||null,a=i.filter(t=>t.field!==e||t.type!==n)||[],l=(null==o?void 0:o.values)||[],s=l.find(e=>x(e,t))?l:l.concat(t);this._updateSearchResults({current:1,filters:[...a,{field:e,values:s,type:n,persistent:r}]}),this.events.emit({type:"FacetFilterSelected",field:e,value:C(s),query:this.state.searchTerm})}function M(e,t=[]){this.debug&&console.log("Search UI: Action","trackAutocompleteClickThrough",...arguments);let{autocompletedResultsRequestId:n,searchTerm:r,autocompletedResults:i,current:o,resultsPerPage:a,totalResults:l,filters:s}=this.state,u=i.findIndex(t=>t._meta.id===e),c=i[u],d=this.events;d.autocompleteResultClick({query:r,documentId:e,requestId:n,tags:t,result:c,resultIndex:u}),d.emit({type:"ResultSelected",documentId:e,query:r,position:u,origin:"autocomplete",tags:t,totalResults:l,filters:s,currentPage:o,resultsPerPage:a})}function L(e=[]){this.debug&&console.log("Search UI: Action","clearFilters",...arguments);let{filters:t}=this.state,n=t.filter(t=>{let n=t.field;return e.includes(n)});this._updateSearchResults({current:1,filters:n})}function R(e,t,n){this.debug&&console.log("Search UI: Action","removeFilter",...arguments);let{filters:r}=this.state,i=r;i=!t&&n?r.filter(t=>!(t.field===e&&t.type===n)):t?S(r,e,t,n):r.filter(t=>t.field!==e),this._updateSearchResults({current:1,filters:i}),this.events.emit({type:"FacetFilterRemoved",field:e,value:t&&C([t]),query:this.state.searchTerm})}function N(){this.debug&&console.log("Search UI: Action","reset",...arguments),this._setState(this.startingState),this.trackUrlState&&this.URLManager.pushStateToURL(this.state)}function D(e){this.debug&&console.log("Search UI: Action","setCurrent",...arguments),this._updateSearchResults({current:e})}function j(e,t,n="all",r){this.debug&&console.log("Search UI: Action","setFilter",...arguments);let{filters:i}=this.state;i=i.filter(t=>t.field!==e||t.type!==n);let o=Array.isArray(t)?t:[t];this._updateSearchResults({current:1,filters:[...i,{field:e,values:o,type:n,persistent:r}]}),this.events.emit({type:"FacetFilterSelected",field:e,value:t&&C(o),query:this.state.searchTerm})}function F(e){this.debug&&console.log("Search UI: Action","setRe
2sultsPerPage",...arguments),this._updateSearchResults({current:1,resultsPerPage:e})}function z(e,{autocompleteMinimumCharacters:t=0,autocompleteResults:n=!1,autocompleteSuggestions:r=!1,shouldClearFilters:i=!0,refresh:o=!0,debounce:a=0}={}){if(this.debug&&console.log("Search UI: Action","setSearchTerm",...arguments),this._setState({searchTerm:e}),o){let e=i?this.state.filters.filter(e=>e.persistent):this.state.filters;this.debounceManager.runWithDebounce(a,"_updateSearchResults",this._updateSearchResults,{current:1,filters:e})}(n||r)&&e.length>=t&&this.debounceManager.runWithDebounce(a,"_updateAutocomplete",this._updateAutocomplete,e,{autocompleteResults:n,autocompleteSuggestions:r})}function U(e,t){this.debug&&console.log("Search UI: Action","setSort",...arguments);let n={current:1,sortList:null,sortField:null,sortDirection:null};Array.isArray(e)?n.sortList=e:(n.sortField=e,n.sortDirection=t),this._updateSearchResults(n)}function H(e,t=[]){this.debug&&console.log("Search UI: Action","trackClickThrough",...arguments);let{requestId:n,searchTerm:r,results:i,current:o,resultsPerPage:a,totalResults:l,filters:s}=this.state,u=i.findIndex(t=>t._meta.id===e),c=i[u],d=this.events;this.events.resultClick({query:r,documentId:e,requestId:n,tags:t,result:c,page:o,resultsPerPage:a,resultIndexOnPage:u}),d.emit({type:"ResultSelected",documentId:e,query:r,origin:"results",position:u,tags:t,totalResults:l,filters:s,currentPage:o,resultsPerPage:a})}v(A,{a11yNotify:()=>q,addFilter:()=>_,clearFilters:()=>L,removeFilter:()=>R,reset:()=>N,setCurrent:()=>D,setFilter:()=>j,setResultsPerPage:()=>F,setSearchTerm:()=>z,setSort:()=>U,trackAutocompleteClickThrough:()=>M,trackAutocompleteSuggestionClickThrough:()=>G,trackClickThrough:()=>H});var B="search-ui-screen-reader-notifications",$="undefined"!=typeof document,V=()=>{if(!$)return null;let e=document.getElementById(B);return e||(e=document.createElement("div"),e.id=B,e.setAttribute("role","status"),e.setAttribute("aria-live","polite"),e.style.position="absolute",e.style.width="1px",e.style.height="1px",e.style.margin="-1px",e.style.padding="0",e.style.border="0",e.style.overflow="hidden",e.style.clip="rect(0 0 0 0)",document.body.appendChild(e),e)},W=e=>{let t=V();t&&(t.textContent=e)};function q(e,t){if(!this.hasA11yNotifications)return;let n=this.a11yNotificationMessages[e];if(!n){let t=`Could not find corresponding message function in a11yNotificationMessages: "${e}"`;return void console.warn("Action","a11yNotify",t)}let r=n(t);W(r),this.debug&&console.log("Search UI: Action","a11yNotify",{messageFunc:e,messageArgs:t,message:r})}function G(e,t,n=[]){this.debug&&console.log("Search UI: Action","trackAutocompleteSuggestionClickThrough",...arguments);let{searchTerm:r}=this.state;this.events.emit({type:"AutocompleteSuggestionSelected",position:t,query:r,tags:n,suggestion:e})}var K=m({},b),Q=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function Y(e){if(K.isFilterValueRange(e)){const{name:t}=e,n=Q(e,["name"]);return Object.assign({},n)}return e}function X(e){const t=e.values.some(K.isFilterValueRange);let n;return n="all"===e.type||t||1===e.values.length?e.values.map(Y).map(t=>({[e.field]:t})):[{[e.field]:e.values.map(Y).map(e=>e)}],{[e.type||"any"]:n}}function J(e){if(!e||0===e.length)return{};return{all:e.map(X)}}function Z(e){const{current:t,resultsPerPage:n,searchTerm:r,sortDirection:i,sortField:o,sortList:a}=e,l=function(e,t,n){return n&&n.length?n.map(e=>({[e.field]:e.direction})):t&&e?{[t]:e}:void 0}(i,o,a);return Object.assign(Object.assign({query:r},void 0!==l&&{sort:l}),{page:Object.assign(Object.assign({},void 0!==n&&{size:n}),void 0!==t&&{current:t}),filters:J(e.filters)})}var ee=function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{s(r.next(e))}catch(e){o(e)}}function l(e){try{s(r.throw(e))}catch(e){o(e)}}function s(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,l)}s((r=r.apply(e,t||[])).next())})},te=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function ne(e){const{facets:t,filters:n}=e,r=te(e,["facets","filters"]);return Object.assign(Object.assign(Object.assign({},t&&Object.entries(t).length>0&&{facets:t}),n&&Object.entries(n).length>0&&{filters:n}),r)}var re=class{constructor(e){var{searchKey:t,engineName:n,beforeSearchCall:i=(e,t)=>t(e),beforeAutocompleteResultsCall:o=(e,t)=>t(e),beforeAutocompleteSuggestionsCall:a=(e,t)=>t(e),cacheResponses:l=!0}=e,s=te(e,["searchKey","engineName","beforeSearchCall","beforeAutocompleteResultsCall","beforeAutocompleteSuggestionsCall","cacheResponses"]);if(console.warn("WARNING: The AppSearchAPIConnector is deprecated and will be removed in future versions."),!n||!("hostIdentifier"in s)&&!("endpointBase"in s))throw Error("hostIdentifier or endpointBase, and engineName are required");this.client=r.createClient(Object.assign(Object.assign(Object.assign(Object.assign({},"endpointBase"in s&&{endpointBase:s.endpointBase}),"hostIdentifier"in s&&{hostIdentifier:s.hostIdentifier}),{apiKey:t,engineName:n,cacheResponses:l}),s)),this.beforeSearchCall=i,this.beforeAutocompleteResultsCall=o,this.beforeAutocompleteSuggestionsCall=a}onResultClick({query:e,documentId:t,requestId:n,tags:r=[]}){return r=r.concat("results"),this.client.click({query:e,documentId:t,requestId:n,tags:r})}onAutocompleteResultClick({query:e,documentId:t,requestId:n,tags:r=[]}){return r=r.concat("autocomplete"),this.client.click({query:e,documentId:t,requestId:n,tags:r})}onSearch(e,t){return ee(this,void 0,void 0,function*(){const{current:n,resultsPerPage:r,sortDirection:i,sortField:o,sortList:l}=t,s=te(t,["current","resultsPerPage","sortDirection","sortField","
2sortList"]),u=Z(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),void 0!==n&&{current:n}),void 0!==r&&{resultsPerPage:r}),void 0!==i&&{sortDirection:i}),void 0!==o&&{sortField:o}),void 0!==l&&{sortList:l})),{query:c}=u,d=te(u,["query"]),f=Object.assign(Object.assign({},s),d),p=Object.assign({},ne(f));return this.beforeSearchCall(p,e=>ee(this,void 0,void 0,function*(){return a(yield this.client.search(c,e),function(e={}){const t=Object.entries(e.facets||{}).reduce((e,[t,n])=>n.unit&&n.center?Object.assign(Object.assign({},e||{}),{[t]:Object.assign(Object.assign({},n.unit&&{unit:n.unit}),n.center&&{center:n.center})}):e,null);return Object.assign({},t&&{additionalFacetValueFields:t})}(t))}))})}onAutocomplete({searchTerm:e},t){return ee(this,void 0,void 0,function*(){const n={},r=[];if(t.results){const i=t.results,{current:o,filters:l,resultsPerPage:s,sortDirection:u,sortField:c,sortList:d}=i,f=te(i,["current","filters","resultsPerPage","sortDirection","sortField","sortList"]),p=Z({current:o,searchTerm:e,filters:l,resultsPerPage:s,sortDirection:u,sortField:c,sortList:d}),{query:h}=p,m=te(p,["query"]),g=ne(Object.assign(Object.assign({},f),m));r.push(this.beforeAutocompleteResultsCall(g,e=>this.client.search(h,Object.assign(Object.assign({},e),{record_analytics:!1})).then(e=>{n.autocompletedResults=a(e).results,n.autocompletedResultsRequestId=e.info.meta.request_id})))}if(t.suggestions){const i=t.suggestions;r.push(this.beforeAutocompleteSuggestionsCall(i,t=>this.client.querySuggestion(e,t).then(e=>{n.autocompletedSuggestions=e.results,n.autocompletedSuggestionsRequestId=e.meta.request_id})))}return yield Promise.all(r),n})}}},6188:function(e){"use strict";e.exports=Math.max},6540:function(e,t,n){"use strict";e.exports=n(5287)},6549:function(e){"use strict";e.exports=Object.getOwnPropertyDescriptor},6556:function(e,t,n){"use strict";var r=n(453),i=n(3126),o=i([r("%String.prototype.indexOf%")]);e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&o(e,".prototype.")>-1?i([n]):n}},6576:function(e,t,n){"use strict";var r=n(9394),i=n(8452);e.exports=function(){var e=r();return i(Object,{is:e},{is:function(){return Object.is!==e}}),e}},6630:function(e,t){"use strict";var n,r,i;r=[],void 0===(i="function"==typeof(n=function(){function e(e){return parseInt(e,10)}function t(e){return(e+"").replace(/[^\d.]/g,"")-0}function n(e){return Math.round(100*e)/100}function r(e,t){return"textContent"in e?e.textContent=t:e.innerText=t}function i(e){return"textContent"in e?e.textContent:e.innerText}function o(e,t){return window.getComputedStyle?window.getComputedStyle(e,null).getPropertyValue(t):e.currentStyle.getAttribute(t.replace(/-(\w)/g,function(e,t){return t.toUpperCase()}))}function a(e){var r=o(e,"height");return r.indexOf("px")>-1?t(r):n(t(e.clientHeight)-t(o(e,"padding-top"))-t(o(e,"padding-bottom")))}function l(e){if(/^<[\w\W]+>$/.test(e)){var t=document.createElement("div");return t.innerHTML=e,t.firstElementChild||t.firstChild}return e}var s=function(e,t){e&&(this.element=e.length?e[0]:e,this.originalOption=t||{},this.originalElement=this.element.cloneNode(!0),this.preInit(this.originalOption),this.init())};return s.prototype={constructor:s,reload:function(e){if(e){if(e.useOriginalText&&(this.element.innerHTML=this.originalElement.innerHTML),"-webkit-box"===this.element.style.display)for(var t=["display","overflow","WebkitLineClamp","WebkitBoxOrient"],n=0;n<t.length;n++)this.element.style[t[n]]=this.originalElement.style[t[n]];var r={};for(var i in this.originalOption)r[i]=this.originalOption[i];for(var o in e)r[o]=e[o];this.preInit(r)}this.init()},preInit:function(t){if(this.option={ellipsis:"ellipsis"in t?t.ellipsis:"...",clamp:"clamp"in t?t.clamp:3,reverse:"reverse"in t&&!!t.reverse,splitByWords:"splitByWords"in t&&!!t.splitByWords,disableCssClamp:"disableCssClamp"in t&&!!t.disableCssClamp,onClampStart:"onClampStart"in t&&"function"==typeof t.onClampStart?t.onClampStart:function(){},onClampEnd:"onClampEnd"in t&&"function"==typeof t.onClampEnd?t.onClampEnd:function(){}},"lineTextLen"in t&&(this.option.lineTextLen=t.lineTextLen),"auto"===this.option.clamp)this.autoClamp=!0;else{if(this.option.clamp=e(this.option.clamp),isNaN(this.option.clamp)||this.option.clamp<1)throw new Error("Invaild clamp number!");this.autoClamp=!1}this.useCssClamp=!(this.option.disableCssClamp||this.autoClamp||this.option.reverse||this.option.splitByWords||"..."!==this.option.ellipsis||void 0===document.body.style.webkitLineClamp)},init:function(){if(this.useCssClamp){var e={display:"-webkit-box",overflow:"hidden",WebkitLineClamp:this.option.clamp,WebkitBoxOrient:"vertical"};for(var t in e)this.element.style[t]=e[t]}else this.contentText=i(this.element),this.ellipsis=l(this.option.ellipsis),this.clamp()},getSingleLineHeight:function(){var e=o(this.element,"line-height"),r=this;if(e.indexOf("px")>-1)return t(e);if(isNaN(e))return l();var i=o(this.element,"font-size");return i.indexOf("px")>-1?n(t(i)*e):i.indexOf("pt")>-1?n(4*t(i)/3*e):l();function l(){var e=r.element.innerHTML;r.element.innerHTML=".";var t=a(r.element);return r.element.innerHTML=e,t}},clamp:function(){var t,r,i,o,l=this;if(t=this.getSingleLineHeight(),""!==this.contentText&&t){if(this.autoClamp?(i=a(this.element),this.option.clamp=e(i/t),o=this.element.style.height,this.element.style.height="auto"):i=n(t*this.option.clamp),!(r=a(this.element))||!i||r<=i)return this.autoClamp&&(this.element.style.height=o
2),void d();var s=this.option.onClampStart.call(this,{needClamp:!0});if(void 0===s||s){var u=this.option.splitByWords?this.contentText.match(/\w+|\W+?/g):this.contentText,c=e(this.option.lineTextLen||Math.min(20,this.contentText.length/this.option.clamp))*this.option.clamp;this.trunkSlice(u,i,c,c,!1),this.autoClamp&&(this.element.style.height=o),this.option.onClampEnd.call(this,{didClamp:!0})}else this.autoClamp&&(this.element.style.height=o),d(!0)}else d();function d(e){e||l.option.onClampStart.call(l,{needClamp:!1}),l.option.onClampEnd.call(l,{didClamp:!1})}},trunkSlice:function(t,n,i,o,l){var s,u=this,c=this.option.reverse?t.slice(t.length-o):t.slice(0,o);if(d(this.option.splitByWords?c.join(""):c),a(this.element)>n)s=l?i:e(i/2)||1,this.trunkSlice(t,n,s,o-s,!0);else{if(1===i&&l)return void(this.option.splitByWords&&/\s/.test(c[this.option.reverse?0:c.length-1])?d((this.option.reverse?c.slice(1):c.slice(0,c.length-1)).join(""),!0):d(this.option.splitByWords?c.join(""):c,!0));s=l?e(i/2)||1:i,this.trunkSlice(t,n,s,o+s,!1)}function d(e,t){"object"==typeof u.ellipsis?(r(u.element,e),u.option.reverse?u.element.insertBefore(t?u.ellipsis:u.ellipsis.cloneNode(!0),u.element.firstChild):u.element.appendChild(t?u.ellipsis:u.ellipsis.cloneNode(!0))):u.option.reverse?r(u.element,u.ellipsis+e):r(u.element,e+u.ellipsis)}}},s})?n.apply(t,r):n)||(e.exports=i)},6743:function(e,t,n){"use strict";var r=n(9353);e.exports=Function.prototype.bind||r},6897:function(e,t,n){"use strict";var r=n(453),i=n(41),o=n(592)(),a=n(5795),l=n(9675),s=r("%Math.floor%");e.exports=function(e,t){if("function"!=typeof e)throw new l("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||s(t)!==t)throw new l("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],r=!0,u=!0;if("length"in e&&a){var c=a(e,"length");c&&!c.configurable&&(r=!1),c&&!c.writable&&(u=!1)}return(r||u||!n)&&(o?i(e,"length",t,!0,!0):i(e,"length",t)),e}},6925:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},7044:function(e,t,n){"use strict";n.d(t,{a:function(){return d},b:function(){return E},c:function(){return g},d:function(){return y},e:function(){return p},f:function(){return a},h:function(){return x},i:function(){return S},k:function(){return l},m:function(){return k},n:function(){return o},q:function(){return w},r:function(){return b},s:function(){return T},t:function(){return v},u:function(){return f},v:function(){return m},w:function(){return h},x:function(){return c},y:function(){return i}});var r=n(2375);function i(e){const t=e;Object.keys(t).forEach(e=>{try{t[e]=null}catch(e){}try{delete t[e]}catch(e){}})}function o(e,t){return void 0===t&&(t=0),setTimeout(e,t)}function a(){return Date.now()}function l(e,t){void 0===t&&(t="x");const n=(0,r.a)();let i,o,a;const l=function(e){const t=(0,r.a)();let n;return t.getComputedStyle&&(n=t.getComputedStyle(e,null)),!n&&e.currentStyle&&(n=e.currentStyle),n||(n=e.style),n}(e);return n.WebKitCSSMatrix?(o=l.transform||l.webkitTransform,o.split(",").length>6&&(o=o.split(", ").map(e=>e.replace(",",".")).join(", ")),a=new n.WebKitCSSMatrix("none"===o?"":o)):(a=l.MozTransform||l.OTransform||l.MsTransform||l.msTransform||l.transform||l.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),i=a.toString().split(",")),"x"===t&&(o=n.WebKitCSSMatrix?a.m41:16===i.length?parseFloat(i[12]):parseFloat(i[4])),"y"===t&&(o=n.WebKitCSSMatrix?a.m42:16===i.length?parseFloat(i[13]):parseFloat(i[5])),o||0}function s(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function u(e){return"undefined"!=typeof window&&void 0!==window.HTMLElement?e instanceof HTMLElement:e&&(1===e.nodeType||11===e.nodeType)}function c(){const e=Object(arguments.length<=0?void 0:arguments[0]),t=["__proto__","constructor","prototype"];for(let n=1;n<arguments.length;n+=1){const r=n<0||arguments.length<=n?void 0:arguments[n];if(null!=r&&!u(r)){const n=Object.keys(Object(r)).filter(e=>t.indexOf(e)<0);for(let t=0,i=n.length;t<i;t+=1){const i=n[t],o=Object.getOwnPropertyDescriptor(r,i);void 0!==o&&o.enumerable&&(s(e[i])&&s(r[i])?r[i].__swiper__?e[i]=r[i]:c(e[i],r[i]):!s(e[i])&&s(r[i])?(e[i]={},r[i].__swiper__?e[i]=r[i]:c(e[i],r[i])):e[i]=r[i])}}}return e}function d(e,t,n){e.style.setProperty(t,n)}function f(e){let{swiper:t,targetPosition:n,side:i}=e;const o=(0,r.a)(),a=-t.translate;let l,s=null;const u=t.params.speed;t.wrapperEl.style.scrollSnapType="none",o.cancelAnimationFrame(t.cssModeFrameID);const c=n>a?"next":"prev",d=(e,t)=>"next"===c&&e>=t||"prev"===c&&e<=t,f=()=>{l=(new Date).getTime(),null===s&&(s=l);const e=Math.max(Math.min((l-s)/u,1),0),r=.5-Math.cos(e*Math.PI)/2;let c=a+r*(n-a);if(d(c,n)&&(c=n),t.wrapperEl.scrollTo({[i]:c}),d(c,n))return t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.scrollSnapType="",setTimeout(()=>{t.wrapperEl.style.overflow="",t.wrapperEl.scrollTo({[i]:c})}),void o.cancelAnimationFrame(t.cssModeFrameID);t.cssModeFrameID=o.requestAnimationFrame(f)};f()}function p(e,t){void 0===t&&(t="");const n=(0,r.a)(),i=[...e.children];return n.HTMLSlotElement&&e instanceof HTMLSlotElement&&i.push(...e.assignedElements()),t?i.filter(e=>e.matches(t)):i}function h(e,t){const n=(0,r.a)();let i=t.contains(e);if(!i&&n.HTMLSlotElement&&t instanceof HTMLSlotElement){i=[...t.assignedElements()].includes(e),i||(i=function(e,t){const n=[t];for(;n.length>0;){const t=n.shift();if(e===t)return!0;n.push(...t.children,...t.shadowRoot?t.shadowRoot.children:[],...t.assignedElements?t.assignedElements():[])}}(e,t))}return i}function m(e){try{return void console.warn(e)}catch(e){}}function g(e,t){void 0===t&&(t=[]);const n=document.createElement(e);return n.classList.add(...Array.isArray(t)?t:function(e){return void 0===e&&(e=""),e.trim().split(" ").filter(e=>!!e.trim())}(t)),n}function y(e){const t=(0,r.a)(),n=(0,r.g)(),i=e.getBoundingClientRect(),o=n.body,a=e.clientTop||o.clientTop||0,l=e.clientLeft||o.clientLeft||0,s=e===t?t.scrollY:e.scrollTop,u=e===t?t.scrollX:e.scrollLeft;return{top:i.top+s-a,left:i.left+u-l}}function v(e,t){const n=[];for(;e.previousElementSibling;){const r=e.previousElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function b(e,t){const n=[];for(;e.nextElementSibling;){const r=e.nextElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function w(e,t){return(0,r.a)().getComputedStyle(e,null).getPropertyValue(t)}function S(e){let t,n=e;if(n){for(t=0;null!==(n=n.previousSibling);)1===n.nodeType&&(t+=1);return t}}function E(e,t){const n=[];let r=e.parentElement;for(;r;)t?r.matches(t)&&n.push(r):n.push(r),r=r.parentElement;return n}function x(e,t,n){const i=(0,r.a)();
2return n?e["width"===t?"offsetWidth":"offsetHeight"]+parseFloat(i.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-right":"margin-top"))+parseFloat(i.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-left":"margin-bottom")):e.offsetWidth}function k(e){return(Array.isArray(e)?e:[e]).filter(e=>!!e)}function T(e,t){void 0===t&&(t=""),"undefined"!=typeof trustedTypes?e.innerHTML=trustedTypes.createPolicy("html",{createHTML:e=>e}).createHTML(t):e.innerHTML=t}},7119:function(e){"use strict";e.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},7176:function(e,t,n){"use strict";var r,i=n(3126),o=n(5795);try{r=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var a=!!r&&o&&o(Object.prototype,"__proto__"),l=Object,s=l.getPrototypeOf;e.exports=a&&"function"==typeof a.get?i([a.get]):"function"==typeof s&&function(e){return s(null==e?e:l(e))}},7244:function(e,t,n){"use strict";var r=n(9092)(),i=n(6556)("Object.prototype.toString"),o=function(e){return!(r&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===i(e)},a=function(e){return!!o(e)||null!==e&&"object"==typeof e&&"length"in e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==i(e)&&"callee"in e&&"[object Function]"===i(e.callee)},l=function(){return o(arguments)}();o.isLegacyArguments=a,e.exports=l?o:a},7463:function(e,t){"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function r(e){return 0===e.length?null:e[0]}function i(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,a=i>>>1;r<a;){var l=2*(r+1)-1,s=e[l],u=l+1,c=e[u];if(0>o(s,n))u<i&&0>o(c,s)?(e[r]=c,e[u]=n,r=u):(e[r]=s,e[l]=n,r=l);else{if(!(u<i&&0>o(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var l=Date,s=l.now();t.unstable_now=function(){return l.now()-s}}var u=[],c=[],d=1,f=null,p=3,h=!1,m=!1,g=!1,y="function"==typeof setTimeout?setTimeout:null,v="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function w(e){for(var t=r(c);null!==t;){if(null===t.callback)i(c);else{if(!(t.startTime<=e))break;i(c),t.sortIndex=t.expirationTime,n(u,t)}t=r(c)}}function S(e){if(g=!1,w(e),!m)if(null!==r(u))m=!0,L(E);else{var t=r(c);null!==t&&R(S,t.startTime-e)}}function E(e,n){m=!1,g&&(g=!1,v(C),C=-1),h=!0;var o=p;try{for(w(n),f=r(u);null!==f&&(!(f.expirationTime>n)||e&&!I());){var a=f.callback;if("function"==typeof a){f.callback=null,p=f.priorityLevel;var l=a(f.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?f.callback=l:f===r(u)&&i(u),w(n)}else i(u);f=r(u)}if(null!==f)var s=!0;else{var d=r(c);null!==d&&R(S,d.startTime-n),s=!1}return s}finally{f=null,p=o,h=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var x,k=!1,T=null,C=-1,O=5,P=-1;function I(){return!(t.unstable_now()-P<O)}function A(){if(null!==T){var e=t.unstable_now();P=e;var n=!0;try{n=T(!0,e)}finally{n?x():(k=!1,T=null)}}else k=!1}if("function"==typeof b)x=function(){b(A)};else if("undefined"!=typeof MessageChannel){var _=new MessageChannel,M=_.port2;_.port1.onmessage=A,x=function(){M.postMessage(null)}}else x=function(){y(A,0)};function L(e){T=e,k||(k=!0,x())}function R(e,n){C=y(function(){e(t.unstable_now())},n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||h||(m=!0,L(E))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_getFirstCallbackNode=function(){return r(u)},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},t.unstable_scheduleCallback=function(e,i,o){var a=t.unstable_now();switch("object"==typeof o&&null!==o?o="number"==typeof(o=o.delay)&&0<o?a+o:a:o=a,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return e={id:d++,callback:i,priorityLevel:e,startTime:o,expirationTime:l=o+l,sortIndex:-1},o>a?(e.sortIndex=o,n(c,e),null===r(u)&&e===r(c)&&(g?(v(C),C=-1):g=!0,R(S,o-a))):(e.sortIndex=l,n(u,e),m||h||(m=!0,L(E))),e},t.unstable_shouldYield=I,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},7653:function(e,t,n){"use strict";var r=n(8452),i=n(487),o=n(9211),a=n(9394),l=n(6576),s=i(a(),Object);r(s,{getPolyfill:a,implementation:o,shim:l}),e.exports=s},7675:function(e,t,n){"use strict";var r=n(3206),i=n(9675),o=Object;e.exports=r(function(){if(null==this||this!==o(this))throw new i("RegExp.prototype.flags getter called on non-object");var e="";return this.hasIndices&&(e+="d"),this.global&&(e+="g"),this.ignoreCase&&(e+="i"),this.multiline&&(e+="m"),this.dotAll&&(e+="s"),this.unicode&&(e+="u"),this.unicodeSets&&(e+="v"),this.sticky&&(e+="y"),e},"get flags",!0)}
2,7720:function(e,t,n){"use strict";var r=n(4765),i=Object.prototype.hasOwnProperty,o=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),l=function(e,t){for(var n=t&&t.plainObjects?{__proto__:null}:{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n},s=1024;e.exports={arrayToObject:l,assign:function(e,t){return Object.keys(t).reduce(function(e,n){return e[n]=t[n],e},e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var i=t[r],a=i.obj[i.prop],l=Object.keys(a),s=0;s<l.length;++s){var u=l[s],c=a[u];"object"==typeof c&&null!==c&&-1===n.indexOf(c)&&(t.push({obj:a,prop:u}),n.push(c))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(o(n)){for(var r=[],i=0;i<n.length;++i)void 0!==n[i]&&r.push(n[i]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(e){return r}},encode:function(e,t,n,i,o){if(0===e.length)return e;var l=e;if("symbol"==typeof e?l=Symbol.prototype.toString.call(e):"string"!=typeof e&&(l=String(e)),"iso-8859-1"===n)return escape(l).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var u="",c=0;c<l.length;c+=s){for(var d=l.length>=s?l.slice(c,c+s):l,f=[],p=0;p<d.length;++p){var h=d.charCodeAt(p);45===h||46===h||95===h||126===h||h>=48&&h<=57||h>=65&&h<=90||h>=97&&h<=122||o===r.RFC1738&&(40===h||41===h)?f[f.length]=d.charAt(p):h<128?f[f.length]=a[h]:h<2048?f[f.length]=a[192|h>>6]+a[128|63&h]:h<55296||h>=57344?f[f.length]=a[224|h>>12]+a[128|h>>6&63]+a[128|63&h]:(p+=1,h=65536+((1023&h)<<10|1023&d.charCodeAt(p)),f[f.length]=a[240|h>>18]+a[128|h>>12&63]+a[128|h>>6&63]+a[128|63&h])}u+=f.join("")}return u},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(o(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)},merge:function e(t,n,r){if(!n)return t;if("object"!=typeof n&&"function"!=typeof n){if(o(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(r&&(r.plainObjects||r.allowPrototypes)||!i.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var a=t;return o(t)&&!o(n)&&(a=l(t,r)),o(t)&&o(n)?(n.forEach(function(n,o){if(i.call(t,o)){var a=t[o];a&&"object"==typeof a&&n&&"object"==typeof n?t[o]=e(a,n,r):t.push(n)}else t[o]=n}),t):Object.keys(n).reduce(function(t,o){var a=n[o];return i.call(t,o)?t[o]=e(t[o],a,r):t[o]=a,t},a)}}},8002:function(e){"use strict";e.exports=Math.min},8068:function(e){"use strict";e.exports=SyntaxError},8168:function(e,t,n){"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(null,arguments)}n.d(t,{A:function(){return r}})},8452:function(e,t,n){"use strict";var r=n(1189),i="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),o=Object.prototype.toString,a=Array.prototype.concat,l=n(41),s=n(592)(),u=function(e,t,n,r){if(t in e)if(!0===r){if(e[t]===n)return}else if("function"!=typeof(i=r)||"[object Function]"!==o.call(i)||!r())return;var i;s?l(e,t,n,!0):l(e,t,n)},c=function(e,t){var n=arguments.length>2?arguments[2]:{},o=r(t);i&&(o=a.call(o,Object.getOwnPropertySymbols(t)));for(var l=0;l<o.length;l+=1)u(e,o[l],t[o[l]],n[o[l]])};c.supportsDescriptors=!!s,e.exports=c},8636:function(e,t,n){"use strict";var r=n(920),i=n(7720),o=n(4765),a=Object.prototype.hasOwnProperty,l={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},s=Array.isArray,u=Array.prototype.push,c=function(e,t){u.apply(e,s(t)?t:[t])},d=Date.prototype.toISOString,f=o.default,p={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset
vendor: 6,961 bytes, line 2
2:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:i.encode,encodeValuesOnly:!1,filter:void 0,format:f,formatter:o.formatters[f],indices:!1,serializeDate:function(e){return d.call(e)},skipNulls:!1,strictNullHandling:!1},h={},m=function e(t,n,o,a,l,u,d,f,m,g,y,v,b,w,S,E,x,k){for(var T,C=t,O=k,P=0,I=!1;void 0!==(O=O.get(h))&&!I;){var A=O.get(t);if(P+=1,void 0!==A){if(A===P)throw new RangeError("Cyclic object value");I=!0}void 0===O.get(h)&&(P=0)}if("function"==typeof g?C=g(n,C):C instanceof Date?C=b(C):"comma"===o&&s(C)&&(C=i.maybeMap(C,function(e){return e instanceof Date?b(e):e})),null===C){if(u)return m&&!E?m(n,p.encoder,x,"key",w):n;C=""}if("string"==typeof(T=C)||"number"==typeof T||"boolean"==typeof T||"symbol"==typeof T||"bigint"==typeof T||i.isBuffer(C))return m?[S(E?n:m(n,p.encoder,x,"key",w))+"="+S(m(C,p.encoder,x,"value",w))]:[S(n)+"="+S(String(C))];var _,M=[];if(void 0===C)return M;if("comma"===o&&s(C))E&&m&&(C=i.maybeMap(C,m)),_=[{value:C.length>0?C.join(",")||null:void 0}];else if(s(g))_=g;else{var L=Object.keys(C);_=y?L.sort(y):L}var R=f?String(n).replace(/\./g,"%2E"):String(n),N=a&&s(C)&&1===C.length?R+"[]":R;if(l&&s(C)&&0===C.length)return N+"[]";for(var D=0;D<_.length;++D){var j=_[D],F="object"==typeof j&&j&&void 0!==j.value?j.value:C[j];if(!d||null!==F){var z=v&&f?String(j).replace(/\./g,"%2E"):String(j),U=s(C)?"function"==typeof o?o(N,z):N:N+(v?"."+z:"["+z+"]");k.set(t,P);var H=r();H.set(h,k),c(M,e(F,U,o,a,l,u,d,f,"comma"===o&&E&&s(C)?null:m,g,y,v,b,w,S,E,x,H))}}return M};e.exports=function(e,t){var n,i=e,u=function(e){if(!e)return p;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||p.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=o.default;if(void 0!==e.format){if(!a.call(o.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r,i=o.formatters[n],u=p.filter;if(("function"==typeof e.filter||s(e.filter))&&(u=e.filter),r=e.arrayFormat in l?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":p.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var c=void 0===e.allowDots?!0===e.encodeDotInKeys||p.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:p.addQueryPrefix,allowDots:c,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:p.allowEmptyArrays,arrayFormat:r,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:p.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:void 0===e.delimiter?p.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:p.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:p.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:p.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:p.encodeValuesOnly,filter:u,format:n,formatter:i,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:p.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:p.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:p.strictNullHandling}}(t);"function"==typeof u.filter?i=(0,u.filter)("",i):s(u.filter)&&(n=u.filter);var d=[];if("object"!=typeof i||null===i)return"";var f=l[u.arrayFormat],h="comma"===f&&u.commaRoundTrip;n||(n=Object.keys(i)),u.sort&&n.sort(u.sort);for(var g=r(),y=0;y<n.length;++y){var v=n[y],b=i[v];u.skipNulls&&null===b||c(d,m(b,v,f,h,u.allowEmptyArrays,u.strictNullHandling,u.skipNulls,u.encodeDotInKeys,u.encode?u.encoder:null,u.filter,u.sort,u.allowDots,u.serializeDate,u.format,u.formatter,u.encodeValuesOnly,u.charset,g))}var w=d.join(u.delimiter),S=!0===u.addQueryPrefix?"?":"";return u.charsetSentinel&&("iso-8859-1"===u.charset?S+="utf8=%26%2310003%3B&":S+="utf8=%E2%9C%93&"),w.length>0?S+w:""}},8648:function(e){"use strict";e.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},8859:function(e,t,n){var r="function"==typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=r&&i&&"function"==typeof i.get?i.get:null,a=r&&Map.prototype.forEach,l="function"==typeof Set&&Set.prototype,s=Object.getOwnPropertyDescriptor&&l?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=l&&s&&"function"==typeof s.get?s.get:null,c=l&&Set.prototype.forEach,d="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,f="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,p="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,h=Boolean.prototype.valueOf,m=Object.prototype.toString,g=Function.prototype.toString,y=String.prototype.match,v=String.prototype.slice,b=String.prototype.replace,w=String.prototype.toUpperCase,S=String.prototype.toLowerCase,E=RegExp.prototype.test,x=Array.prototype.concat,k=Array.prototype.join,T=Array.prototype.slice,C=Math.floor,O="function"==typeof BigInt?BigInt.prototype.valueOf:null,P=Object.getOwnPropertySymbols,I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,A="function"==typeof Symbol&&"object"==typeof Symbol.iterator,_="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===A||"symbol")?Symbol.toStringTag:null,M=Object.prototype.propertyIsEnumerable,L=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function R(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||E.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var r=e<0?-C(-e):C(e);if(r!==e){var i=String(r),o=v.call(t,i.length+1);return b.call(i,n,"$&_")+"."+b.call(b.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(t,n,"$&_")}var N=n(2634),D=N.custom,j=W(D)?D:null,F={__proto__:null,double:'"',single:"'"},z={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function U(e,t,n){var r=n.quoteStyle||t,i=F[r];return i+e+i}function H(e){return b.call(String(e),/"/g,"&quot;")}function B(e){return!_||!("object"==typeof e&&(_ in e||void 0!==e[_]))}function $(e){return"[object Array]"===K(e)&&B(e)}function V(e){return"[object RegExp]"===K(e)&&B(e)}function W(e){if(A)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;
vendor: 6,875 bytes, line 2
2if(!e||"object"!=typeof e||!I)return!1;try{return I.call(e),!0}catch(e){}return!1}e.exports=function e(t,r,i,l){var s=r||{};if(G(s,"quoteStyle")&&!G(F,s.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(G(s,"maxStringLength")&&("number"==typeof s.maxStringLength?s.maxStringLength<0&&s.maxStringLength!==1/0:null!==s.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var m=!G(s,"customInspect")||s.customInspect;if("boolean"!=typeof m&&"symbol"!==m)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(G(s,"indent")&&null!==s.indent&&"\t"!==s.indent&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(G(s,"numericSeparator")&&"boolean"!=typeof s.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var w=s.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return Y(t,s);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var E=String(t);return w?R(t,E):E}if("bigint"==typeof t){var C=String(t)+"n";return w?R(t,C):C}var P=void 0===s.depth?5:s.depth;if(void 0===i&&(i=0),i>=P&&P>0&&"object"==typeof t)return $(t)?"[Array]":"[Object]";var D=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=k.call(Array(e.indent+1)," ")}return{base:n,prev:k.call(Array(t+1),n)}}(s,i);if(void 0===l)l=[];else if(Q(l,t)>=0)return"[Circular]";function z(t,n,r){if(n&&(l=T.call(l)).push(n),r){var o={depth:s.depth};return G(s,"quoteStyle")&&(o.quoteStyle=s.quoteStyle),e(t,o,i+1,l)}return e(t,s,i+1,l)}if("function"==typeof t&&!V(t)){var q=function(e){if(e.name)return e.name;var t=y.call(g.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),X=ne(t,z);return"[Function"+(q?": "+q:" (anonymous)")+"]"+(X.length>0?" { "+k.call(X,", ")+" }":"")}if(W(t)){var re=A?b.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):I.call(t);return"object"!=typeof t||A?re:J(re)}if(function(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(t)){for(var ie="<"+S.call(String(t.nodeName)),oe=t.attributes||[],ae=0;ae<oe.length;ae++)ie+=" "+oe[ae].name+"="+U(H(oe[ae].value),"double",s);return ie+=">",t.childNodes&&t.childNodes.length&&(ie+="..."),ie+="</"+S.call(String(t.nodeName))+">"}if($(t)){if(0===t.length)return"[]";var le=ne(t,z);return D&&!function(e){for(var t=0;t<e.length;t++)if(Q(e[t],"\n")>=0)return!1;return!0}(le)?"["+te(le,D)+"]":"[ "+k.call(le,", ")+" ]"}if(function(e){return"[object Error]"===K(e)&&B(e)}(t)){var se=ne(t,z);return"cause"in Error.prototype||!("cause"in t)||M.call(t,"cause")?0===se.length?"["+String(t)+"]":"{ ["+String(t)+"] "+k.call(se,", ")+" }":"{ ["+String(t)+"] "+k.call(x.call("[cause]: "+z(t.cause),se),", ")+" }"}if("object"==typeof t&&m){if(j&&"function"==typeof t[j]&&N)return N(t,{depth:P-i});if("symbol"!==m&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!o||!e||"object"!=typeof e)return!1;try{o.call(e);try{u.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var ue=[];return a&&a.call(t,function(e,n){ue.push(z(n,t,!0)+" => "+z(e,t))}),ee("Map",o.call(t),ue,D)}if(function(e){if(!u||!e||"object"!=typeof e)return!1;try{u.call(e);try{o.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var ce=[];return c&&c.call(t,function(e){ce.push(z(e,t))}),ee("Set",u.call(t),ce,D)}if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{d.call(e,d);try{f.call(e,f)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return Z("WeakMap");if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{f.call(e,f);try{d.call(e,d)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return Z("WeakSet");if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{return p.call(e),!0}catch(e){}return!1}(t))return Z("WeakRef");if(function(e){return"[object Number]"===K(e)&&B(e)}(t))return J(z(Number(t)));if(function(e){if(!e||"object"!=typeof e||!O)return!1;try{return O.call(e),!0}catch(e){}return!1}(t))return J(z(O.call(t)));if(function(e){return"[object Boolean]"===K(e)&&B(e)}(t))return J(h.call(t));if(function(e){return"[object String]"===K(e)&&B(e)}(t))return J(z(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||void 0!==n.g&&t===n.g)return"{ [object globalThis] }";if(!function(e){return"[object Date]"===K(e)&&B(e)}(t)&&!V(t)){var de=ne(t,z),fe=L?L(t)===Object.prototype:t instanceof Object||t.constructor===Object,pe=t instanceof Object?"":"null prototype",he=!fe&&_&&Object(t)===t&&_ in t?v.call(K(t),8,-1):pe?"Object":"",me=(fe||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(he||pe?"["+k.call(x.call([],he||[],pe||[]),": ")+"] ":"");return 0===de.length?me+"{}":D?me+"{"+te(de,D)+"}":me+"{ "+k.call(de,", ")+" }"}return String(t)};var q=Object.prototype.hasOwnProperty||function(e){return e in this};function G(e,t){return q.call(e,t)}function K(e){return m.call(e)}function Q(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function Y(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return Y(v.call(e,0,t.maxStringLength),t)+r}var i=z[t.quoteStyle||"single"];return i.lastIndex=0,U(b.call(b.call(e,i,"\\$1"),/[\x00-\x1f]/g,X),"single",t)}function X(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+w.call(t.toString(16))}function J(e){return"Object("+e+")"}function Z(e){return e+" { ? }"}function ee(e,t,n,r){return e+" ("+t+") {"+(r?te(n,r):k.call(n,", "))+"}"}function te(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+k.call(e,","+n)+"\n"+t.prev}function ne(e,t){var n=$(e),r=[];if(n){r.length=e.length;for(var i=0;i<e.length;i++)r[i]=G(e,i)?t(e[i],e):""}var o,a="function"==typeof P?P(e):[];if(A){o={};for(var l=0;l<a.length;l++)o["$"+a[l]]=a[l]}for(var s in e)G(e,s)&&(n&&String(Number(s))===s&&s<e.length||A&&o["$"+s]instanceof Symbol||(E.call(/[^\w$]/,s)?r.push(t(s,e)+": "+t(e[s],e)):r.push(s+": "+t(e[s],e))));if("function"==typeof P)for(var u=0;u<a.length;u++)M.call(e,a[u])&&r.push("["+t(a[u])+"]: "+t(e[a[u]],e));return r}},8875:function(e,t,n){"use strict";var r;if(!Object.keys){var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString,a=n(1093),l=Object.prototype.propertyIsEnumerable,s=!l.call({toString:null},"toString"),u=l.call(function(){}
2,"prototype"),c=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],d=function(e){var t=e.constructor;return t&&t.prototype===e},f={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},p=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!f["$"+e]&&i.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{d(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();r=function(e){var t=null!==e&&"object"==typeof e,n="[object Function]"===o.call(e),r=a(e),l=t&&"[object String]"===o.call(e),f=[];if(!t&&!n&&!r)throw new TypeError("Object.keys called on a non-object");var h=u&&n;if(l&&e.length>0&&!i.call(e,0))for(var m=0;m<e.length;++m)f.push(String(m));if(r&&e.length>0)for(var g=0;g<e.length;++g)f.push(String(g));else for(var y in e)h&&"prototype"===y||!i.call(e,y)||f.push(String(y));if(s)for(var v=function(e){if("undefined"==typeof window||!p)return d(e);try{return d(e)}catch(e){return!1}}(e),b=0;b<c.length;++b)v&&"constructor"===c[b]||!i.call(e,c[b])||f.push(c[b]);return f}}e.exports=r},8882:function(e,t){!function(e){"use strict";var t=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},n=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),r=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},a=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&l.return&&l.return()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=function(e){return Array.isArray(e)?e:Array.from(e)},s=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)},u=function(){function e(n){t(this,e),n._group&&n._group.length>0&&(n=i({},n,{_group:n._group.map(function(t){return new e(t)})})),this.data=n}return n(e,[{key:"getRaw",value:function(e){return(this.data[e]||{}).raw}},{key:"getSnippet",value:function(e){return(this.data[e]||{}).snippet}}]),e}(),c=function e(n,r){t(this,e),this.rawResults=n,this.rawInfo=r;var i=new Array;n.forEach(function(e){i.push(new u(e))}),this.results=i,this.info=r},d=function(){function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t(this,e),this.filtersJSON=n}return n(e,[{key:"removeFilter",value:function(t){function n(e,t){var o=Object.entries(t).reduce(function(t,o){var l=a(o,2),s=l[0],u=l[1];return s===e?t:(["all","any","none"].includes(s)&&(u=u.reduce(function(t,r){var i=n(e,r);return i?t.concat(i):t},[])),i({},t,r({},s,u)))},{});if(0!==Object.keys(o).length)return o}return new e(n(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.filtersJSON))}},{key:"getListOfAppliedFilters",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.filtersJSON,n=Object.entries(t).reduce(function(t,n){var r=a(n,2),i=r[0],o=r[1];return["all","any","none"].includes(i)?o.forEach(function(n){Object.keys(n).forEach(function(r){["all","any","none"].includes(r)?t=new Set([].concat(s(t),s(e.getListOfAppliedFilters(n)))):t.add(r)})}):t.add(i),t},new Set);return Array.from(n.values())}}]),e}(),f="8.13.0",p=new(function(){function e(){t(this,e),this.cache={}}return n(e,[{key:"getKey",value:function(e,t,n){return e+t+JSON.stringify(n)}},{key:"store",value:function(e,t){this.cache[e]=t}},{key:"retrieve",value:function(e){return this.cache[e]}}]),e}());function h(e,t,n,r,i){var o=(arguments.length>5&&void 0!==arguments[5]?arguments[5]:{}).additionalHeaders,a="POST",l=p.getKey(a,t+n,r);if(i){var s=p.retrieve(l);if(s)return Promise.resolve(s)}return m(a,e,t,n,r,{additionalHeaders:o}).then(function(e){return e.json().then(function(t){var n={response:e,json:t};return i&&p.store(l,n),n}).catch(function(){return{response:e,json:{}}})})}function m(e,t,n,r,o){var a=(arguments.length>5&&void 0!==arguments[5]?arguments[5]:{}).additionalHeaders,l="undefined"!=typeof window?"browser":process.version,s=new Headers(i({},t&&{Authorization:"Bearer "+t},{"Content-Type":"application/json","X-Swiftype-Client":"elastic-app-search-javascript","X-Swiftype-Client-Version":f,"x-elastic-client-meta":"ent="+f+"-legacy,js="+l+",t="+f+"-legacy,ft=universal"},a));return fetch(""+n+r,{method:e,headers:s,body:JSON.stringify(o),credentials:"include"})}var g={SEARCH:"SEARCH",MULTI_SEARCH:"MULTI_SEARCH"};function y(e,t){if(e)return e[t],o(e,[t])}function v(e){return[].concat.apply([],e)}function b(e){return new c(e.results,y(e,"results"))}function w(e){var t=e.response,n=e.json;if(!t.ok){var r=Array.isArray(n)?" "+v(n.map(function(e){return e.errors})).join(", "):n.errors?" "+n.errors:"";throw new Error("["+t.status+"]"+r)}return n}var S=function(){function e(n,r,i){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=o.endpointBase,l=void 0===a?"":a,s=o.cacheResponses,u=void 0===s||s,c=o.additionalHeaders;t(this,e),this.additionalHeaders=c,this.searchKey=r,this.cacheResponses=u,this.engineName=i,this.apiEndpoint=l?l+"/api/as/v1/":"https://"+n+".api.swiftype.com/api/as/v1/",this.searchPath="engines/"+this.engineName+"/search",this.multiSearchPath="engines/"+this.engineName+"/multi_search",this.querySuggestionPath="engines/"+this.engineName+"/query_suggestion",this.clickPath="engines/"+this.engineName+"/click"}return n(e,[{key:"querySuggestion",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object.assign({query:e},t);return h(this.searchKey,this.apiEndpoint,this.querySuggestionPath,n,this.cacheResponses,{additionalHeaders:this.additionalHeaders}).then(w)}},{key:"search",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.disjunctiveFacets,r=t.disjunctiveFacetsAnalyticsTags,i=o(t,["disjunctiveFacets","disjunctiveFacetsAnalyticsTags"]),a=Object.assign({query:e},i);return n&&n.length>0?this._performDisjunctiveSearch(a,n,r).then(b):this._performSearch(a).then(b)}},{key:"multiSearch",value:function(e){var t=e.map(function(e){return i({query:e.query},e.options||{})});return this._performSearch({queries:t},g.MULTI_SEARCH).then(function(e){return e.map(b)})}},{key:"_performDisjunctiveSearch",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:["Facet-Only"],u=this._performSearch(e),c=new d(e.filters),f=c.getListOfAppliedFilters().filter(function(e){return t.includes(e)});if(!f.length)return u;var p=e.page||{},h=e.analytics||{};h.tags=o;var m=f.map(function(t){return n._performSearch(i({},e,{filters:c.removeFilter(t).filtersJSON,record_analytics:!1,page:i({},p,{size:0}),analytics:h,facets:r({},t,e.facets[t])}))});return Promise.all([u].concat(s(m))).then(function(e){var t=l(e),n=t[0];
2return t.slice(1).forEach(function(e){var t=a(Object.entries(e.facets)[0],2),r=t[0],i=t[1];n.facets[r]=i}),n})}},{key:"_performSearch",value:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:g.SEARCH)===g.MULTI_SEARCH?this.multiSearchPath:this.searchPath;return h(this.searchKey,this.apiEndpoint,t+".json",e,this.cacheResponses,{additionalHeaders:this.additionalHeaders}).then(w)}},{key:"click",value:function(e){var t=e.query,n=e.documentId,r=e.requestId,i=e.tags,o={query:t,document_id:n,request_id:r,tags:void 0===i?[]:i};return h(this.searchKey,this.apiEndpoint,this.clickPath+".json",o,this.cacheResponses,{additionalHeaders:this.additionalHeaders}).then(w)}}]),e}();function E(e){var t=e.hostIdentifier,n=e.accountHostKey,r=e.apiKey,i=e.searchKey,o=e.engineName,a=e.endpointBase,l=e.cacheResponses,s=e.additionalHeaders;return new S(t=t||n,i=i||r,o,{endpointBase:a,cacheResponses:l,additionalHeaders:s})}e.createClient=E,Object.defineProperty(e,"__esModule",{value:!0})}(t)},8968:function(e){"use strict";e.exports=Math.floor},9092:function(e,t,n){"use strict";var r=n(1333);e.exports=function(){return r()&&!!Symbol.toStringTag}},9211:function(e){"use strict";var t=function(e){return e!=e};e.exports=function(e,n){return 0===e&&0===n?1/e==1/n:e===n||!(!t(e)||!t(n))}},9290:function(e){"use strict";e.exports=RangeError},9353:function(e){"use strict";var t=Object.prototype.toString,n=Math.max,r=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var i=0;i<t.length;i+=1)n[i+e.length]=t[i];return n};e.exports=function(e){var i=this;if("function"!=typeof i||"[object Function]"!==t.apply(i))throw new TypeError("Function.prototype.bind called on incompatible "+i);for(var o,a=function(e,t){for(var n=[],r=t||0,i=0;r<e.length;r+=1,i+=1)n[i]=e[r];return n}(arguments,1),l=n(0,i.length-a.length),s=[],u=0;u<l;u++)s[u]="$"+u;if(o=Function("binder","return function ("+function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n}(s,",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof o){var t=i.apply(this,r(a,arguments));return Object(t)===t?t:this}return i.apply(e,r(a,arguments))}),i.prototype){var c=function(){};c.prototype=i.prototype,o.prototype=new c,c.prototype=null}return o}},9383:function(e){"use strict";e.exports=Error},9394:function(e,t,n){"use strict";var r=n(9211);e.exports=function(){return"function"==typeof Object.is?Object.is:r}},9418:function(e,t,n){"use strict";n.d(t,{A:function(){return le}});const{entries:r,setPrototypeOf:i,isFrozen:o,getPrototypeOf:a,getOwnPropertyDescriptor:l}=Object;let{freeze:s,seal:u,create:c}=Object,{apply:d,construct:f}="undefined"!=typeof Reflect&&Reflect;s||(s=function(e){return e}),u||(u=function(e){return e}),d||(d=function(e,t,n){return e.apply(t,n)}),f||(f=function(e,t){return new e(...t)});const p=P(Array.prototype.forEach),h=P(Array.prototype.lastIndexOf),m=P(Array.prototype.pop),g=P(Array.prototype.push),y=P(Array.prototype.splice),v=P(String.prototype.toLowerCase),b=P(String.prototype.toString),w=P(String.prototype.match),S=P(String.prototype.replace),E=P(String.prototype.indexOf),x=P(String.prototype.trim),k=P(Object.prototype.hasOwnProperty),T=P(RegExp.prototype.test),C=(O=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return f(O,t)});var O;function P(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return d(e,t,r)}}function I(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:v;i&&i(e,null);let r=t.length;for(;r--;){let i=t[r];if("string"==typeof i){const e=n(i);e!==i&&(o(t)||(t[r]=e),i=e)}e[i]=!0}return e}function A(e){for(let t=0;t<e.length;t++){k(e,t)||(e[t]=null)}return e}function _(e){const t=c(null);for(const[n,i]of r(e)){k(e,n)&&(Array.isArray(i)?t[n]=A(i):i&&"object"==typeof i&&i.constructor===Object?t[n]=_(i):t[n]=i)}return t}function M(e,t){for(;null!==e;){const n=l(e,t);if(n){if(n.get)return P(n.get);if("function"==typeof n.value)return P(n.value)}e=a(e)}return function(){return null}}const L=s(["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","section","select","shadow","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"]),R=s(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),N=s(["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"]),D=s(["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"]),j=s(["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"]),F=s(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),z=s(["#text"]),U=s(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","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","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","
2spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),H=s(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),B=s(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),$=s(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),V=u(/\{\{[\w\W]*|[\w\W]*\}\}/gm),W=u(/<%[\w\W]*|[\w\W]*%>/gm),q=u(/\$\{[\w\W]*/gm),G=u(/^data-[\-\w.\u00B7-\uFFFF]+$/),K=u(/^aria-[\-\w]+$/),Q=u(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Y=u(/^(?:\w+script|data):/i),X=u(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),J=u(/^html$/i),Z=u(/^[a-z][.\w]*(-[.\w]+)+$/i);var ee=Object.freeze({__proto__:null,ARIA_ATTR:K,ATTR_WHITESPACE:X,CUSTOM_ELEMENT:Z,DATA_ATTR:G,DOCTYPE_NAME:J,ERB_EXPR:W,IS_ALLOWED_URI:Q,IS_SCRIPT_OR_DATA:Y,MUSTACHE_EXPR:V,TMPLIT_EXPR:q});const te=1,ne=3,re=7,ie=8,oe=9,ae=function(){return"undefined"==typeof window?null:window};var le=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ae();const n=t=>e(t);if(n.version="3.2.6",n.removed=[],!t||!t.document||t.document.nodeType!==oe||!t.Element)return n.isSupported=!1,n;let{document:i}=t;const o=i,a=o.currentScript,{DocumentFragment:l,HTMLTemplateElement:u,Node:d,Element:f,NodeFilter:O,NamedNodeMap:P=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:A,DOMParser:V,trustedTypes:W}=t,q=f.prototype,G=M(q,"cloneNode"),K=M(q,"remove"),Y=M(q,"nextSibling"),X=M(q,"childNodes"),Z=M(q,"parentNode");if("function"==typeof u){const e=i.createElement("template");e.content&&e.content.ownerDocument&&(i=e.content.ownerDocument)}let le,se="";const{implementation:ue,createNodeIterator:ce,createDocumentFragment:de,getElementsByTagName:fe}=i,{importNode:pe}=o;let he={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof r&&"function"==typeof Z&&ue&&void 0!==ue.createHTMLDocument;const{MUSTACHE_EXPR:me,ERB_EXPR:ge,TMPLIT_EXPR:ye,DATA_ATTR:ve,ARIA_ATTR:be,IS_SCRIPT_OR_DATA:we,ATTR_WHITESPACE:Se,CUSTOM_ELEMENT:Ee}=ee;let{IS_ALLOWED_URI:xe}=ee,ke=null;const Te=I({},[...L,...R,...N,...j,...z]);let Ce=null;const Oe=I({},[...U,...H,...B,...$]);let Pe=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}})),Ie=null,Ae=null,_e=!0,Me=!0,Le=!1,Re=!0,Ne=!1,De=!0,je=!1,Fe=!1,ze=!1,Ue=!1,He=!1,Be=!1,$e=!0,Ve=!1,We=!0,qe=!1,Ge={},Ke=null;const Qe=I({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Ye=null;const Xe=I({},["audio","video","img","source","image","track"]);let Je=null;const Ze=I({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),et="http://www.w3.org/1998/Math/MathML",tt="http://www.w3.org/2000/svg",nt="http://www.w3.org/1999/xhtml";let rt=nt,it=!1,ot=null;const at=I({},[et,tt,nt],b);let lt=I({},["mi","mo","mn","ms","mtext"]),st=I({},["annotation-xml"]);const ut=I({}
vendor: 10,331 bytes, line 2
2,["title","style","font","a","script"]);let ct=null;const dt=["application/xhtml+xml","text/html"];let ft=null,pt=null;const ht=i.createElement("form"),mt=function(e){return e instanceof RegExp||e instanceof Function},gt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!pt||pt!==e){if(e&&"object"==typeof e||(e={}),e=_(e),ct=-1===dt.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,ft="application/xhtml+xml"===ct?b:v,ke=k(e,"ALLOWED_TAGS")?I({},e.ALLOWED_TAGS,ft):Te,Ce=k(e,"ALLOWED_ATTR")?I({},e.ALLOWED_ATTR,ft):Oe,ot=k(e,"ALLOWED_NAMESPACES")?I({},e.ALLOWED_NAMESPACES,b):at,Je=k(e,"ADD_URI_SAFE_ATTR")?I(_(Ze),e.ADD_URI_SAFE_ATTR,ft):Ze,Ye=k(e,"ADD_DATA_URI_TAGS")?I(_(Xe),e.ADD_DATA_URI_TAGS,ft):Xe,Ke=k(e,"FORBID_CONTENTS")?I({},e.FORBID_CONTENTS,ft):Qe,Ie=k(e,"FORBID_TAGS")?I({},e.FORBID_TAGS,ft):_({}),Ae=k(e,"FORBID_ATTR")?I({},e.FORBID_ATTR,ft):_({}),Ge=!!k(e,"USE_PROFILES")&&e.USE_PROFILES,_e=!1!==e.ALLOW_ARIA_ATTR,Me=!1!==e.ALLOW_DATA_ATTR,Le=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Re=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Ne=e.SAFE_FOR_TEMPLATES||!1,De=!1!==e.SAFE_FOR_XML,je=e.WHOLE_DOCUMENT||!1,Ue=e.RETURN_DOM||!1,He=e.RETURN_DOM_FRAGMENT||!1,Be=e.RETURN_TRUSTED_TYPE||!1,ze=e.FORCE_BODY||!1,$e=!1!==e.SANITIZE_DOM,Ve=e.SANITIZE_NAMED_PROPS||!1,We=!1!==e.KEEP_CONTENT,qe=e.IN_PLACE||!1,xe=e.ALLOWED_URI_REGEXP||Q,rt=e.NAMESPACE||nt,lt=e.MATHML_TEXT_INTEGRATION_POINTS||lt,st=e.HTML_INTEGRATION_POINTS||st,Pe=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&mt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Pe.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&mt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Pe.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Pe.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ne&&(Me=!1),He&&(Ue=!0),Ge&&(ke=I({},z),Ce=[],!0===Ge.html&&(I(ke,L),I(Ce,U)),!0===Ge.svg&&(I(ke,R),I(Ce,H),I(Ce,$)),!0===Ge.svgFilters&&(I(ke,N),I(Ce,H),I(Ce,$)),!0===Ge.mathMl&&(I(ke,j),I(Ce,B),I(Ce,$))),e.ADD_TAGS&&(ke===Te&&(ke=_(ke)),I(ke,e.ADD_TAGS,ft)),e.ADD_ATTR&&(Ce===Oe&&(Ce=_(Ce)),I(Ce,e.ADD_ATTR,ft)),e.ADD_URI_SAFE_ATTR&&I(Je,e.ADD_URI_SAFE_ATTR,ft),e.FORBID_CONTENTS&&(Ke===Qe&&(Ke=_(Ke)),I(Ke,e.FORBID_CONTENTS,ft)),We&&(ke["#text"]=!0),je&&I(ke,["html","head","body"]),ke.table&&(I(ke,["tbody"]),delete Ie.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw C('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw C('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');le=e.TRUSTED_TYPES_POLICY,se=le.createHTML("")}else void 0===le&&(le=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const i="dompurify"+(n?"#"+n:"");try{return e.createPolicy(i,{createHTML(e){return e},createScriptURL(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+i+" could not be created."),null}}(W,a)),null!==le&&"string"==typeof se&&(se=le.createHTML(""));s&&s(e),pt=e}},yt=I({},[...R,...N,...D]),vt=I({},[...j,...F]),bt=function(e){g(n.removed,{element:e});try{Z(e).removeChild(e)}catch(t){K(e)}},wt=function(e,t){try{g(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){g(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(Ue||He)try{bt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},St=function(e){let t=null,n=null;if(ze)e="<remove></remove>"+e;else{const t=w(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===ct&&rt===nt&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const r=le?le.createHTML(e):e;if(rt===nt)try{t=(new V).parseFromString(r,ct)}catch(e){}if(!t||!t.documentElement){t=ue.createDocument(rt,"template",null);try{t.documentElement.innerHTML=it?se:r}catch(e){}}const o=t.body||t.documentElement;return e&&n&&o.insertBefore(i.createTextNode(n),o.childNodes[0]||null),rt===nt?fe.call(t,je?"html":"body")[0]:je?t.documentElement:o},Et=function(e){return ce.call(e.ownerDocument||e,e,O.SHOW_ELEMENT|O.SHOW_COMMENT|O.SHOW_TEXT|O.SHOW_PROCESSING_INSTRUCTION|O.SHOW_CDATA_SECTION,null)},xt=function(e){return e instanceof A&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof P)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},kt=function(e){return"function"==typeof d&&e instanceof d};function Tt(e,t,r){p(e,e=>{e.call(n,t,r,pt)})}const Ct=function(e){let t=null;if(Tt(he.beforeSanitizeElements,e,null),xt(e))return bt(e),!0;const r=ft(e.nodeName);if(Tt(he.uponSanitizeElement,e,{tagName:r,allowedTags:ke}),De&&e.hasChildNodes()&&!kt(e.firstElementChild)&&T(/<[/\w!]/g,e.innerHTML)&&T(/<[/\w!]/g,e.textContent))return bt(e),!0;if(e.nodeType===re)return bt(e),!0;if(De&&e.nodeType===ie&&T(/<[/\w]/g,e.data))return bt(e),!0;if(!ke[r]||Ie[r]){if(!Ie[r]&&Pt(r)){if(Pe.tagNameCheck instanceof RegExp&&T(Pe.tagNameCheck,r))return!1;if(Pe.tagNameCheck instanceof Function&&Pe.tagNameCheck(r))return!1}if(We&&!Ke[r]){const t=Z(e)||e.parentNode,n=X(e)||e.childNodes;if(n&&t){for(let r=n.length-1;r>=0;--r){const i=G(n[r],!0);i.__removalCount=(e.__removalCount||0)+1,t.insertBefore(i,Y(e))}}}return bt(e),!0}return e instanceof f&&!function(e){let t=Z(e);t&&t.tagName||(t={namespaceURI:rt,tagName:"template"});const n=v(e.tagName),r=v(t.tagName);return!!ot[e.namespaceURI]&&(e.namespaceURI===tt?t.namespaceURI===nt?"svg"===n:t.namespaceURI===et?"svg"===n&&("annotation-xml"===r||lt[r]):Boolean(yt[n]):e.namespaceURI===et?t.namespaceURI===nt?"math"===n:t.namespaceURI===tt?"math"===n&&st[r]:Boolean(vt[n]):e.namespaceURI===nt?!(t.namespaceURI===tt&&!st[r])&&!(t.namespaceURI===et&&!lt[r])&&!vt[n]&&(ut[n]||!yt[n]):!("application/xhtml+xml"!==ct||!ot[e.namespaceURI]))}(e)?(bt(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!T(/<\/no(script|embed|frames)/i,e.innerHTML)?(Ne&&e.nodeType===ne&&(t=e.textContent,p([me,ge,ye],e=>{t=S(t,e," ")}),e.textContent!==t&&(g(n.removed,{element:e.cloneNode()}),e.textContent=t)),Tt(he.afterSanitizeElements,e,null),!1):(bt(e),!0)},Ot=function(e,t,n){if($e&&("id"===t||"name"===t)&&(n in i||n in ht))return!1;if(Me&&!Ae[t]&&T(ve,t));else if(_e&&T(be,t));else if(!Ce[t]||Ae[t]){if(!(Pt(e)&&(Pe.tagNameCheck instanceof RegExp&&T(Pe.tagNameCheck,e)||Pe.tagNameCheck instanceof Function&&Pe.tagNameCheck(e))&&(Pe.attributeNameCheck instanceof RegExp&&T(Pe.attributeNameCheck,t)||Pe.attributeNameCheck instanceof Function&&Pe.attributeNameCheck(t))||"is"===t&&Pe.allowCustomizedBuiltInElements&&(Pe.tagNameCheck instanceof RegExp&&T(Pe.tagNameCheck,n)||Pe.tagNameCheck instanceof Function&&Pe.tagNameCheck(n))))return!1}else if(Je[t]);else if(T(xe,S(n,Se,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==E(n,"data:")||!Ye[e]){if(Le&&!T(we,S(n,Se,"")));else if(n)return!1}else;return!0},Pt=function(e){return"annotation-xml"!==e&&w(e,Ee)},It=function(e){Tt(he.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||xt(e))return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ce,forceKeepAttr:void 0};let i=t.length;for(;i--;){const o=t[i],{name:a,namespaceURI:l,value:s}=o,u=ft(a),c=s;let d="value"===a?c:x(c);if(r.attrName=u,r.attrValue=d,r.keepAttr=!0,r.forceKeepAttr=void 0,Tt(he.uponSanitizeAttribute,e,r),d=r.attrValue,!Ve||"id"!==u&&"name"!==u||(wt(a,e),d="user-content-"+d),De&&T(/((--!?|])>)|<\/(style|title)/i,d)){wt(a,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){wt(a,e);continue}if(!Re&&T(/\/>/i,d)){wt(a,e);continue}Ne&&p([me,ge,ye],e=>{d=S(d,e," ")});const f=ft(e.nodeName);if(Ot(f,u,d)){if(le&&"object"==typeof W&&"function"==typeof W.getAttributeType)if(l);else switch(W.getAttributeType(f,u)){case"TrustedHTML":d=le.createHTML(d);break;case"TrustedScriptURL":d=le.createScriptURL(d)}if(d!==c)try{l?e.setAttributeNS(l,a,d):e.setAttribute(a,d),xt(e)?bt(e):m(n.removed)}catch(t){wt(a,e)}}else wt(a,e)}Tt(he.afterSanitizeAttributes,e,null)},At=function e(t){let n=null;const r=Et(t);for(Tt(he.beforeSanitizeShadowDOM,t,null);n=r.nextNode();)Tt(he.uponSanitizeShadowNode,n,null),Ct(n),It(n),n.content instanceof l&&e(n.content);Tt(he.afterSanitizeShadowDOM,t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,i=null,a=null,s=null;if(it=!e,it&&(e="\x3c!--\x3e"),"string"!=typeof e&&!kt(e)){if("function"!=typeof e.toString)throw C("toString is not a function");if("string"!=typeof(e=e.toString()))throw C("dirty is not a string, aborting")}if(!n.isSupported)return e;if(Fe||gt(t),n.removed=[],"string"==typeof e&&(qe=!1),qe){if(e.nodeName){const t=ft(e.nodeName);if(!ke[t]||Ie[t])throw C("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof d)r=St("\x3c!----\x3e"),i=r.ownerDocument.importNode(e,!0),i.nodeType===te&&"BODY"===i.nodeName||"HTML"===i.nodeName?r=i:r.appendChild(i);else{if(!Ue&&!Ne&&!je&&-1===e.indexOf("<"))return le&&Be?le.createHTML(e):e;if(r=St(e),!r)return Ue?null:Be?se:""}r&&ze&&bt(r.firstChild);const u=Et(qe?e:r);for(;a=u.nextNode();)Ct(a),It(a),a.content instanceof l&&At(a.content);if(qe)return e;if(Ue){if(He)for(s=de.call(r.ownerDocument);r.firstChild;)s.appendChild(r.firstChild);else s=r;return(Ce.shadowroot||Ce.shadowrootmode)&&(s=pe.call(o,s,!0)),s}let c=je?r.outerHTML:r.innerHTML;return je&&ke["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&T(J,r.ownerDocument.doctype.name)&&(c="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+c),Ne&&p([me,ge,ye],e=>{c=S(c,e," ")}),le&&Be?le.createHTML(c):c},n.setConfig=function(){gt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Fe=!0},n.clearConfig=function(){pt=null,Fe=!1},n.isValidAttribute=function(e,t,n){pt||gt({});const r=ft(e),i=ft(t);return Ot(r,i,n)},n.addHook=function(e,t){"function"==typeof t&&g(he[e],t)},n.removeHook=function(e,t){if(void 0!==t){const n=h(he[e],t);
2return-1===n?void 0:y(he[e],n,1)[0]}return m(he[e])},n.removeHooks=function(e){he[e]=[]},n.removeAllHooks=function(){he={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}()},9478:function(e,t,n){"use strict";n.d(t,{vc:function(){return Pe}});var r=n(4982),i=n(8168);function o(e){return"/"===e.charAt(0)}function a(e,t){for(var n=t,r=n+1,i=e.length;r<i;n+=1,r+=1)e[n]=e[r];e.pop()}var l=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],i=t&&t.split("/")||[],l=e&&o(e),s=t&&o(t),u=l||s;if(e&&o(e)?i=r:r.length&&(i.pop(),i=i.concat(r)),!i.length)return"/";if(i.length){var c=i[i.length-1];n="."===c||".."===c||""===c}else n=!1;for(var d=0,f=i.length;f>=0;f--){var p=i[f];"."===p?a(i,f):".."===p?(a(i,f),d++):d&&(a(i,f),d--)}if(!u)for(;d--;d)i.unshift("..");!u||""===i[0]||i[0]&&o(i[0])||i.unshift("");var h=i.join("/");return n&&"/"!==h.substr(-1)&&(h+="/"),h},s="Invariant failed";function u(e){return"/"===e.charAt(0)?e:"/"+e}function c(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function d(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function f(e){var t=e.pathname,n=e.search,r=e.hash,i=t||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i}function p(e,t,n,r){var o;"string"==typeof e?(o=function(e){var t=e||"/",n="",r="",i=t.indexOf("#");-1!==i&&(r=t.substr(i),t=t.substr(0,i));var o=t.indexOf("?");return-1!==o&&(n=t.substr(o),t=t.substr(0,o)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e),o.state=t):(void 0===(o=(0,i.A)({},e)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==t&&void 0===o.state&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(o.key=n),r?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=l(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o}function h(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,i){if(null!=e){var o="function"==typeof e?e(t,n):e;"string"==typeof o?"function"==typeof r?r(o,i):i(!0):i(!1!==o)}else i(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter(function(e){return e!==r})}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach(function(e){return e.apply(void 0,n)})}}}var m=!("undefined"==typeof window||!window.document||!window.document.createElement);function g(e,t){t(window.confirm(e))}var y="popstate",v="hashchange";function b(){try{return window.history.state||{}}catch(e){return{}}}function w(e){void 0===e&&(e={}),m||function(e){if(!e)throw new Error(s)}(!1);var t,n=window.history,r=(-1===(t=window.navigator.userAgent).indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,o=!(-1===window.navigator.userAgent.indexOf("Trident")),a=e,l=a.forceRefresh,w=void 0!==l&&l,S=a.getUserConfirmation,E=void 0===S?g:S,x=a.keyLength,k=void 0===x?6:x,T=e.basename?d(u(e.basename)):"";function C(e){var t=e||{},n=t.key,r=t.state,i=window.location,o=i.pathname+i.search+i.hash;return T&&(o=c(o,T)),p(o,r,n)}function O(){return Math.random().toString(36).substr(2,k)}var P=h();function I(e){(0,i.A)(H,e),H.length=n.length,P.notifyListeners(H.location,H.action)}function A(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||L(C(e.state))}function _(){L(C(b()))}var M=!1;function L(e){if(M)M=!1,I();else{P.confirmTransitionTo(e,"POP",E,function(t){t?I({action:"POP",location:e}):function(e){var t=H.location,n=N.indexOf(t.key);-1===n&&(n=0);var r=N.indexOf(e.key);-1===r&&(r=0);var i=n-r;i&&(M=!0,j(i))}(e)})}}var R=C(b()),N=[R.key];function D(e){return T+f(e)}function j(e){n.go(e)}var F=0;function z(e){1===(F+=e)&&1===e?(window.addEventListener(y,A),o&&window.addEventListener(v,_)):0===F&&(window.removeEventListener(y,A),o&&window.removeEventListener(v,_))}var U=!1;var H={length:n.length,action:"POP",location:R,createHref:D,push:function(e,t){var i="PUSH",o=p(e,t,O(),H.location);P.confirmTransitionTo(o,i,E,function(e){if(e){var t=D(o),a=o.key,l=o.state;if(r)if(n.pushState({key:a,state:l},null,t),w)window.location.href=t;else{var s=N.indexOf(H.location.key),u=N.slice(0,s+1);u.push(o.key),N=u,I({action:i,location:o})}else window.location.href=t}})},replace:function(e,t){var i="REPLACE",o=p(e,t,O(),H.location);P.confirmTransitionTo(o,i,E,function(e){if(e){var t=D(o),a=o.key,l=o.state;if(r)if(n.replaceState({key:a,state:l},null,t),w)window.location.replace(t);else{var s=N.indexOf(H.location.key);-1!==s&&(N[s]=o.key),I({action:i,location:o})}else window.location.replace(t)}})},go:j,goBack:function(){j(-1)},goForward:function(){j(1)},block:function(e){void 0===e&&(e=!1);var t=P.setPrompt(e);return U||(z(1),U=!0),function(){return U&&(U=!1,z(-1)),t()}},listen:function(e){var t=P.appendListener(e);return z(1),function(){z(-1),t()}}};return H}function S(e,t,n){return Math.min(Math.max(e,t),n)}var E=n(5373),x=Object.defineProperty,k=Object.defineProperties,T=Object.getOwnPropertyDescriptors,C=Object.getOwnPropertySymbols,O=Object.prototype.hasOwnProperty,P=Object.prototype.propertyIsEnumerable,I=(e,t,n)=>t in e?x(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,A=(e,t)=>
2{for(var n in t||(t={}))O.call(t,n)&&I(e,n,t[n]);if(C)for(var n of C(t))P.call(t,n)&&I(e,n,t[n]);return e},_=(e,t)=>k(e,T(t)),M=(e,t)=>{var n={};for(var r in e)O.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&C)for(var r of C(e))t.indexOf(r)<0&&P.call(e,r)&&(n[r]=e[r]);return n},L=(e,t)=>{for(var n in t)x(e,n,{get:t[n],enumerable:!0})},R={};function N(e,t,n){let r=e.find(e=>e.field===t&&e.type===n);return r?r.values:[]}function D(e,t,n,r){return e.reduce((e,i)=>{let o=i,{field:a,values:l,type:s}=o,u=M(o,["field","values","type"]);if(a===t&&(!r||s===r)){let t=l.filter(e=>!F(e,n));return t.length>0?e.concat(A({field:a,values:t,type:s},u)):e}return e.concat(i)},[])}function j(e,t,n,r){let i=e.data,o=N(t,n,r)||[];return _(A({},e),{data:i.map(e=>_(A({},e),{selected:o.some(t=>F(t,e.value))}))})}function F(e,t){return"true"===e||"true"===t?B(e)===B(t):!!(e&&e.name&&t&&t.name&&e.name===t.name)||r(e,t,{strict:!0})}function z(e,t){return t?t.reduce((e,t)=>e.find(e=>e.type===t.type&&e.field===t.field)?e:[...e,t],e):e}function U(e){return"object"==typeof e&&void 0!==e.name}L(R,{doFilterValuesMatch:()=>F,findFilterValues:()=>N,getFilterBooleanValue:()=>B,isFilterValueRange:()=>U,markSelectedFacetValuesFromFilters:()=>j,mergeFilters:()=>z,removeSingleFilterValue:()=>D,serialiseFilter:()=>H});var H=e=>e.reduce((e,t)=>(U(t)?e.push(t.name):e.push(t.toString()),e),[]).join(","),B=e=>"string"==typeof e?"true"===e:!!e;var $={encode(e,t){return function(e){return null!=e&&"number"==typeof e}(e)?`n_${e}_n`:function(e){return e&&"boolean"==typeof e}(e)?`b_${e}_b`:t(e)},decode(e,t){if(/n_-?[\d\.]*_n/.test(e)){let t=e.substring(2,e.length-2);return Number(t)}if(/^b_(true|false)*_b$/.test(e)){return function(e){if("true"===e)return!0;if("false"===e)return!1;throw"Invalid type parsed as Boolean value"}(e.substring(2,e.length-2))}return t(e)}},V={parse(e){return E.parse(e,{ignoreQueryPrefix:!0,decoder:$.decode,arrayLimit:1e3})},stringify(e){return E.stringify(e,{encoder:$.encode})}};function W(e){return Array.isArray(e)?e[e.length-1]:e}function q(e){return function(e){if(function(e){return!isNaN(e)}(e))return parseInt(e,10)}(W(e))}function G(e){return e.filters}function K(e){return q(e.current)}function Q(e){return W(e.q)}function Y(e){let t=W(e["sort-field"]),n=W(e["sort-direction"]);return t?[t,n]:[]}function X(e){return q(e.size)}function J(e){return e.sort}var Z=class{constructor(e={}){this.routingOptions={readUrl:e.readUrl||this.readUrl.bind(this),writeUrl:e.writeUrl||this.writeUrl.bind(this),urlToState:e.urlToState||this.urlToState.bind(this),stateToUrl:e.stateToUrl||this.stateToUrl.bind(this),routeChangeHandler:e.routeChangeHandler||this.routeChangeHandler.bind(this)},this.history="undefined"!=typeof window?w():function(e){void 0===e&&(e={});var t=e,n=t.getUserConfirmation,r=t.initialEntries,o=void 0===r?["/"]:r,a=t.initialIndex,l=void 0===a?0:a,s=t.keyLength,u=void 0===s?6:s,c=h();function d(e){(0,i.A)(w,e),w.length=w.entries.length,c.notifyListeners(w.location,w.action)}function m(){return Math.random().toString(36).substr(2,u)}var g=S(l,0,o.length-1),y=o.map(function(e){return p(e,void 0,"string"==typeof e?m():e.key||m())}),v=f;function b(e){var t=S(w.index+e,0,w.entries.length-1),r=w.entries[t];c.confirmTransitionTo(r,"POP",n,function(e){e?d({action:"POP",location:r,index:t}):d()})}var w={length:y.length,action:"POP",location:y[g],index:g,entries:y,createHref:v,push:function(e,t){var r="PUSH",i=p(e,t,m(),w.location);c.confirmTransitionTo(i,r,n,function(e){if(e){var t=w.index+1,n=w.entries.slice(0);n.length>t?n.splice(t,n.length-t,i):n.push(i),d({action:r,location:i,index:t,entries:n})}})},replace:function(e,t){var r="REPLACE",i=p(e,t,m(),w.location);c.confirmTransitionTo(i,r,n,function(e){e&&(w.entries[w.index]=i,d({action:r,location:i}))})},go:b,goBack:function(){b(-1)},goForward:function(){b(1)},canGo:function(e){var t=w.index+e;return t>=0&&t<w.entries.length},block:function(e){return void 0===e&&(e=!1),c.setPrompt(e)},listen:function(e){return c.appendListener(e)}};return w}(),this.lastPushSearchString=""}readUrl(){return this.history?this.history.location.search:""}writeUrl(e,{replaceUrl:t=!1}={}){(t?this.history.replace:this.history.push)(`?${e}`)}urlToState(e){return function(e){let t={current:K(e),filters:G(e),searchTerm:Q(e),resultsPerPage:X(e),sortField:Y(e)[0],sortDirection:Y(e)[1],sortList:J(e)};return Object.keys(t).reduce((e,n)=>{let r=t[n];return r&&(e[n]=r),e},{})}(V.parse(e))}stateToUrl(e){return`${t=e,V.stringify(function({searchTerm:e,current:t,filters:n,resultsPerPage:r,sortDirection:i,sortField:o,sortList:a}){let l={};return t>1&&(l.current=t),e&&(l.q=e),r&&(l.size=r),n&&n.length>0&&(l.filters=n),a&&a.length>0?l.sort=a:o&&(l["sort-field"]=o,l["sort-direction"]=i),l}(t))}`;var t}getStateFromURL(){return this.routingOptions.urlToState(this.routingOptions.readUrl())}pushStateToURL(e,{replaceUrl:t=!1}={}){let n=this.routingOptions.stateToUrl(e);this.lastPushSearchString=n,this.routingOptions.writeUrl(n,{replaceUrl:t})}onURLStateChange(e){this.unlisten=this.routingOptions.routeChangeHandler((t=>{`?${this.lastPushSearchString}`!==t&&(this.lastPushSearchString="",e(this.routingOptions.urlToState(t)))}).bind(this))}routeChangeHandler(e){return this.history.listen(t=>{e(t.search)})}tearDown(){this.unlisten()}},ee=class{constructor(){this.requestSequence=0,this.lastCompleted=0}
2next(){return++this.requestSequence}isOldRequest(e){return e<this.lastCompleted}completed(e){this.lastCompleted=e}tearDown(){this.lastCompleted=this.requestSequence+1}};function te(e,t){let n,r=function(){let r=arguments;clearTimeout(n),n=setTimeout(()=>{e.apply(null,r)},t)};return r.cancel=()=>{n&&(clearTimeout(n),n=null)},r}var ne=class{constructor(){this.debounceCache={}}runWithDebounce(e,t,n,...r){if(!e)return n(...r);let i=`${t}|${e.toString()}`,o=this.debounceCache[i];o||(this.debounceCache[i]=te(n,e),o=this.debounceCache[i]),o(...r)}cancelByName(e){Object.entries(this.debounceCache).filter(([t])=>t.startsWith(`${e}|`)).forEach(([e,t])=>t.cancel())}};ne.debounce=(e,t)=>te(t,e);var re=ne,ie={};function oe(e,t,n="all",r){this.debug&&console.log("Search UI: Action","addFilter",...arguments);let{filters:i}=this.state,o=i.find(t=>t.field===e&&t.type===n)||null,a=i.filter(t=>t.field!==e||t.type!==n)||[],l=(null==o?void 0:o.values)||[],s=l.find(e=>F(e,t))?l:l.concat(t);this._updateSearchResults({current:1,filters:[...a,{field:e,values:s,type:n,persistent:r}]}),this.events.emit({type:"FacetFilterSelected",field:e,value:H(s),query:this.state.searchTerm})}function ae(e,t=[]){this.debug&&console.log("Search UI: Action","trackAutocompleteClickThrough",...arguments);let{autocompletedResultsRequestId:n,searchTerm:r,autocompletedResults:i,current:o,resultsPerPage:a,totalResults:l,filters:s}=this.state,u=i.findIndex(t=>t._meta.id===e),c=i[u],d=this.events;d.autocompleteResultClick({query:r,documentId:e,requestId:n,tags:t,result:c,resultIndex:u}),d.emit({type:"ResultSelected",documentId:e,query:r,position:u,origin:"autocomplete",tags:t,totalResults:l,filters:s,currentPage:o,resultsPerPage:a})}function le(e=[]){this.debug&&console.log("Search UI: Action","clearFilters",...arguments);let{filters:t}=this.state,n=t.filter(t=>{let n=t.field;return e.includes(n)});this._updateSearchResults({current:1,filters:n})}function se(e,t,n){this.debug&&console.log("Search UI: Action","removeFilter",...arguments);let{filters:r}=this.state,i=r;i=!t&&n?r.filter(t=>!(t.field===e&&t.type===n)):t?D(r,e,t,n):r.filter(t=>t.field!==e),this._updateSearchResults({current:1,filters:i}),this.events.emit({type:"FacetFilterRemoved",field:e,value:t&&H([t]),query:this.state.searchTerm})}function ue(){this.debug&&console.log("Search UI: Action","reset",...arguments),this._setState(this.startingState),this.trackUrlState&&this.URLManager.pushStateToURL(this.state)}function ce(e){this.debug&&console.log("Search UI: Action","setCurrent",...arguments),this._updateSearchResults({current:e})}function de(e,t,n="all",r){this.debug&&console.log("Search UI: Action","setFilter",...arguments);let{filters:i}=this.state;i=i.filter(t=>t.field!==e||t.type!==n);let o=Array.isArray(t)?t:[t];this._updateSearchResults({current:1,filters:[...i,{field:e,values:o,type:n,persistent:r}]}),this.events.emit({type:"FacetFilterSelected",field:e,value:t&&H(o),query:this.state.searchTerm})}function fe(e){this.debug&&console.log("Search UI: Action","setRe
2sultsPerPage",...arguments),this._updateSearchResults({current:1,resultsPerPage:e})}function pe(e,{autocompleteMinimumCharacters:t=0,autocompleteResults:n=!1,autocompleteSuggestions:r=!1,shouldClearFilters:i=!0,refresh:o=!0,debounce:a=0}={}){if(this.debug&&console.log("Search UI: Action","setSearchTerm",...arguments),this._setState({searchTerm:e}),o){let e=i?this.state.filters.filter(e=>e.persistent):this.state.filters;this.debounceManager.runWithDebounce(a,"_updateSearchResults",this._updateSearchResults,{current:1,filters:e})}(n||r)&&e.length>=t&&this.debounceManager.runWithDebounce(a,"_updateAutocomplete",this._updateAutocomplete,e,{autocompleteResults:n,autocompleteSuggestions:r})}function he(e,t){this.debug&&console.log("Search UI: Action","setSort",...arguments);let n={current:1,sortList:null,sortField:null,sortDirection:null};Array.isArray(e)?n.sortList=e:(n.sortField=e,n.sortDirection=t),this._updateSearchResults(n)}function me(e,t=[]){this.debug&&console.log("Search UI: Action","trackClickThrough",...arguments);let{requestId:n,searchTerm:r,results:i,current:o,resultsPerPage:a,totalResults:l,filters:s}=this.state,u=i.findIndex(t=>t._meta.id===e),c=i[u],d=this.events;this.events.resultClick({query:r,documentId:e,requestId:n,tags:t,result:c,page:o,resultsPerPage:a,resultIndexOnPage:u}),d.emit({type:"ResultSelected",documentId:e,query:r,origin:"results",position:u,tags:t,totalResults:l,filters:s,currentPage:o,resultsPerPage:a})}L(ie,{a11yNotify:()=>Se,addFilter:()=>oe,clearFilters:()=>le,removeFilter:()=>se,reset:()=>ue,setCurrent:()=>ce,setFilter:()=>de,setResultsPerPage:()=>fe,setSearchTerm:()=>pe,setSort:()=>he,trackAutocompleteClickThrough:()=>ae,trackAutocompleteSuggestionClickThrough:()=>Ee,trackClickThrough:()=>me});var ge="search-ui-screen-reader-notifications",ye="undefined"!=typeof document,ve=()=>{if(!ye)return null;let e=document.getElementById(ge);return e||(e=document.createElement("div"),e.id=ge,e.setAttribute("role","status"),e.setAttribute("aria-live","polite"),e.style.position="absolute",e.style.width="1px",e.style.height="1px",e.style.margin="-1px",e.style.padding="0",e.style.border="0",e.style.overflow="hidden",e.style.clip="rect(0 0 0 0)",document.body.appendChild(e),e)},be=e=>{let t=ve();t&&(t.textContent=e)},we={searchResults:({start:e,end:t,totalResults:n,searchTerm:r})=>{let i=`Showing ${e} to ${t} results out of ${n}`;return r&&(i+=`, searching for "${r}".`),i}};function Se(e,t){if(!this.hasA11yNotifications)return;let n=this.a11yNotificationMessages[e];if(!n){let t=`Could not find corresponding message function in a11yNotificationMessages: "${e}"`;return void console.warn("Action","a11yNotify",t)}let r=n(t);be(r),this.debug&&console.log("Search UI: Action","a11yNotify",{messageFunc:e,messageArgs:t,message:r})}function Ee(e,t,n=[]){this.debug&&console.log("Search UI: Action","trackAutocompleteSuggestionClickThrough",...arguments);let{searchTerm:r}=this.state;this.events.emit({type:"AutocompleteSuggestionSelected",position:t,query:r,tags:n,suggestion:e})}function xe(e,t,n){if(n){if(t){let r=t[e].bind(t);return(...e)=>n(...e,r)}return n}return t&&t[e]?t[e].bind(t):()=>{throw`No ${e} handler provided and no Connector provided. You must configure one or the other.`}}var ke=class{constructor({apiConnector:e,onSearch:t,onAutocomplete:n,onResultClick:r,onAutocompleteResultClick:i,plugins:o=[]}={}){this.search=xe("onSearch",e,t),this.autocomplete=xe("onAutocomplete",e,n),this.resultClick=xe("onResultClick",e,r),this.autocompleteResultClick=xe("onAutocompleteResultClick",e,i),this.plugins=o}emit(e){this.plugins.forEach(t=>{t.subscribe(e)})}};function Te({current:e,filters:t,resultsPerPage:n,searchTerm:r,sortDirection:i,sortField:o,sortList:a}){return{current:e,filters:t,resultsPerPage:n,searchTerm:r,sortDirection:i,sortField:o,sortList:a}}var Ce={current:1,filters:[],resultsPerPage:20,searchTerm:"",sortDirection:"",sortField:"",sortList:[],autocompletedResults:[],autocompletedResultsRequestId:"",autocompletedSuggestions:{},autocompletedSuggestionsRequestId:"",error:"",isLoading:!1,facets:{},requestId:"",results:[],resultSearchTerm:"",totalPages:0,totalResults:0,pagingStart:0,pagingEnd:0,wasSearched:!1,rawResponse:{}};function Oe(e={},t={},n=[]){return Object.entries(e).reduce((e,[r,i])=>(t[r]&&"function"==typeof t[r]&&!t[r]({filters:n})||(e[r]=i),e),{})}var Pe=class{constructor({apiConnector:e,autocompleteQuery:t={},plugins:n=[],debug:r,initialState:i,onSearch:o,onAutocomplete:a,onResultClick:l,onAutocompleteResultClick:s,searchQuery:u={},trackUrlState:c=!0,routingOptions:d={},urlPushDebounceLength:f=500,hasA11yNotifications:p=!1,a11yNotificationMessages:h={},alwaysSearchOnInitialLoad:m=!1}){let g;this.state=Ce,this._updateAutocomplete=(e,{autocompleteResults:t,autocompleteSuggestions:n}={})=>{let r=this.autocompleteRequestSequencer.next(),i=A(A({},t&&{results:this.autocompleteQuery.results||{}}),n&&{suggestions:this.autocompleteQuery.suggestions||{}});return this.events.autocomplete({searchTerm:e},i).then(e=>{this.autocompleteRequestSequencer.isOldRequest(r)||(this.autocompleteRequestSequencer.completed(r),this._setState(e))})},this._updateSearchResults=(e,{skipPushToUrl:t=!1,replaceUrl:n=!1}={})=>{let{current:r,filters:i,resultsPerPage:o,searchTerm:a,sortDirection:l,sortField:s,sortList:u}=A(A({},this.state),e);this.debounceManager.cancelByName("_updateSearchResults"),this._setState({current:r,error:"",filters:i,resultsPerPage:o,searchTerm:a,sortDirection:l,sortField:s,sortList:u}),this._makeSearchRequest({skipPushToUrl:t,replaceUrl:n})},this._makeSearchRequest=re.debounce(0,({skipPushToUrl:e,replaceUrl:t})=>{let{current:n,filters:r,resultsPerPage:i,searchTerm:o,sortDirection:a,sortField:l,sortList:s}=this.state;this._setState({isLoading:!0});
2let u=this.searchRequestSequencer.next(),c=this.searchQuery,{conditionalFacets:d}=c,f=M(c,["conditionalFacets"]),p=_(A({},f),{facets:Oe(this.searchQuery.facets,d,r)}),h=_(A({},Te(this.state)),{filters:z(r,this.searchQuery.filters)});return this.events.search(h,p).then(c=>{if(this.searchRequestSequencer.isOldRequest(u))return;this.searchRequestSequencer.completed(u);let{totalResults:d}=c;this.events.emit({type:"SearchQuery",filters:this.state.filters,query:this.state.searchTerm,currentPage:h.current,resultsPerPage:h.resultsPerPage,totalResults:d});let f=0===d?0:(n-1)*i+1,p=d<f+i?d:f+i-1;if(this._setState(_(A({isLoading:!1,resultSearchTerm:o,pagingStart:f,pagingEnd:p},c),{wasSearched:!0})),this.hasA11yNotifications){let e={start:f,end:p,totalResults:d,searchTerm:o};this.actions.a11yNotify("searchResults",e)}!e&&this.trackUrlState&&this.debounceManager.runWithDebounce(this.urlPushDebounceLength,"pushStateToURL",this.URLManager.pushStateToURL.bind(this.URLManager),{current:n,filters:r,resultsPerPage:i,searchTerm:o,sortDirection:a,sortField:l,sortList:s},{replaceUrl:t})},e=>{var t;this.debug&&console.error(e),e.message!==Ie?this._setState({error:`An unexpected error occurred: ${e.message}`}):this._setState(A({},(null==(t=this.apiConnector)?void 0:t.state)&&A({},this.apiConnector.state)))})}),this.actions=Object.entries(ie).reduce((e,[t,n])=>_(A({},e),{[t]:n.bind(this)}),{}),this.actions=A(A({},this.actions),(null==e?void 0:e.actions)&&A({},e.actions)),Object.assign(this,this.actions),this.events=new ke({apiConnector:e,onSearch:o,onAutocomplete:a,onResultClick:l,onAutocompleteResultClick:s,plugins:n}),this.debug=r,this.debug&&(console.warn("Search UI Debugging is enabled. This should be turned off in production deployments."),"undefined"!=typeof window&&(window.searchUI=this)),this.autocompleteRequestSequencer=new ee,this.searchRequestSequencer=new ee,this.debounceManager=new re,this.autocompleteQuery=t,this.searchQuery=u,this.subscriptions=[],this.trackUrlState=c,this.urlPushDebounceLength=f,this.alwaysSearchOnInitialLoad=m,this.apiConnector=e,c?(this.URLManager=new Z(d),g=this.URLManager.getStateFromURL(),this.URLManager.onURLStateChange(e=>{this._updateSearchResults(A(A({},Ce),e),{skipPushToUrl:!0})})):g={},this.hasA11yNotifications=p,this.hasA11yNotifications&&ve(),this.a11yNotificationMessages=A(A({},we),h),this.startingState=A(A({},this.state),i);let y=Te(A(A({},this.startingState),g));this.state=A(A(A({},this.state),(null==e?void 0:e.state)&&A({},e.state)),y),(y.searchTerm||y.filters.length>0||this.alwaysSearchOnInitialLoad)&&this._updateSearchResults(y,{replaceUrl:!0})}_setState(e){let t=A(A({},this.state),e);this.debug&&console.log("Search UI: State Update",e,t),this.state=t,this.subscriptions.forEach(e=>e(t))}setSearchQuery(e){this.searchQuery=e,this._updateSearchResults({})}setAutocompleteQuery(e){this.autocompleteQuery=e}subscribeToStateChanges(e){this.subscriptions.push(e)}unsubscribeToStateChanges(e){this.subscriptions=this.subscriptions.filter(t=>t!==e)}tearDown(){this.subscriptions=[],this.URLManager&&this.URLManager.tearDown(),this.debounceManager.cancelByName("pushStateToURL"),this.searchRequestSequencer.tearDown()}getActions(){return this.actions}getState(){return A({},this.state)}},Ie="Invalid credentials";A({},R)},9538:function(e){"use strict";e.exports=ReferenceError},9612:function(e){"use strict";e.exports=Object},9675:function(e){"use strict";e.exports=TypeError},9957:function(e,t,n){"use strict";var r=Function.prototype.call,i=Object.prototype.hasOwnProperty,o=n(6743);e.exports=o.call(r,i)},9982:function(e,t,n){"use strict";e.exports=n(7463)}}]);
3!function(){var e,t={2634:function(){},3802:function(e,t,s){"use strict";function i(e,t){const s=document.getElementById("popup-data-attributes");if(!s)return t;const i=s.getAttribute(`data-${e}`);return i&&""!==i.trim()?i.trim():t}function n(e,t,s){if(e){const s=e.getAttribute(`data-${t}`);if(s&&""!==s.trim())return s.trim()}return i(t,s)}function a(e,t){if(e){const t=e.dataset.label;if(t&&""!==t.trim())return t.trim()}const s=document.getElementById("popup-data-attributes");if(s){const e=s.dataset.popupLabel;if(e&&""!==e.trim())return e.trim()}return t}const r={ERROR_MESSAGE:()=>i("popup-error-message","The requested content cannot be loaded. Please try again later."),CLOSE_TEXT:()=>i("popup-close-text","Close Popup"),BACK_FOCUS_TEXT:()=>i("popup-back-focus-text","Back focus"),VIDEO_PLAYER_TITLE:()=>i("popup-video-player-title","Video player"),ERROR_HEADING:()=>r.ERROR_MESSAGE(),CLOSE_SR_TEXT:()=>r.CLOSE_TEXT(),CLOSE_BUTTON_TEXT:()=>r.CLOSE_TEXT(),BACK_FOCUS_SR_TEXT:()=>r.BACK_FOCUS_TEXT(),ACCESSIBLE_VIDEO_TITLE:()=>r.VIDEO_PLAYER_TITLE(),VIDEO_KEYBOARD_HANDLER_TEXT:()=>r.VIDEO_PLAYER_TITLE()};const o={HTML:"html",POPUP:".popup",CLOSE_POPUP:".popup-is-close",OPEN_POPUP:".popup-is-open",POPUP_CONTENT:".popup-content",POPUP_INNER:".popup-inner",MASK_OVERLAY:".mask-pop-overlay",ADA_BACK:".ada-back",IS_CLICK:".is-click",
3LAZY_POPUP:".popup-inner .lazy",VIDEO_POPUP_CONTAINER:".video-popup-container",COMPONENT_VIDEO_POPUP:".component-video-popup"},l="popup-show",c="popup-static",d="no-element",h="popup-open",u="popup-animation",m="is-click",p=(r.CLOSE_SR_TEXT(),`<button type="button" class="popup-is-close no-underline">\n    <span class="icomoon icon-close"></span>\n    <span class="sr-only">${r.CLOSE_SR_TEXT()}</span>\n  </button>`),g=(r.ERROR_HEADING(),r.BACK_FOCUS_SR_TEXT(),['[tabindex="0"]',"iframe","a[href]","button","input",".focus-div",".focus-item"].join(", ")),f="https://www.youtube.com/embed/",E="https://player.vimeo.com/video/",b="youtube.com",T="youtube.com/embed",S="vimeo.com",v="player.vimeo.com/video",L="youtu.be",y="autoplay=1",_=`?${y}&rel=0&showinfo=0`,A=`?${y}&muted=0`;class C{static getVideoType(e){if(!e)return null;const t=e.toLowerCase();return t.includes(b)&&!t.includes(T)?"YOUTUBE":t.includes(S)&&!t.includes(v)?"VIMEO":t.includes(L)?"YOUTU_BE":null}static extractVideoId(e,t){switch(t){case"YOUTUBE":return e.split("?v=")[1]?.split("&")[0];case"VIMEO":case"YOUTU_BE":return e.split("/").pop();default:return e}}static convertToEmbed(e){const t=this.getVideoType(e);if(!t)return e;const s=this.extractVideoId(e,t);switch(t){case"YOUTUBE":case"YOUTU_BE":return`${f}${s}${_}`;case"VIMEO":return`${E}${s}${A}`;default:return e}}static createAccessibleVideoDiv(e,t=r.VIDEO_PLAYER_TITLE()){return`\n      <div\n        class="video-keyboard-handler"\n        role="application"\n        tabindex="0"\n      >\n        <span class="sr-only">${n(e??null,"popup-video-player-title","Video player")}</span>\n      </div>\n    `}static addMutedVideo(e){const t=e.toLowerCase();if(t.includes(b))return e;return`${e}${t.includes("?")?"&":"?"}muted=0`}static createVideoIframe(e,t){return`\n      <div class="${o.POPUP_INNER.substring(1)} popup-video">\n        <div class="embed-responsive relative embed-responsive-16by9">\n          <iframe\n            title="${n(t??null,"popup-video-player-title","Video player")}"\n            class="embed-responsive-item absolute inset-0 w-full h-full"\n            src="${e}"\n            frameborder="0"\n            allow="autoplay; encrypted-media"\n            allowfullscreen\n          ></iframe>\n        </div>\n        <button type="button" class="ada-back">\n          <span class="sr-only">${r.BACK_FOCUS_SR_TEXT()}</span>\n        </button>\n        ${p}\n      </div>\n    `}static getVideoComponentDOM(e){let t=null;if(e){const s=e.closest(o.VIDEO_POPUP_CONTAINER);s&&(t=s.querySelector(o.COMPONENT_VIDEO_POPUP))}if(t??=document.querySelector(o.COMPONENT_VIDEO_POPUP),!t)return null;const s=t.cloneNode(!0);return s&&s instanceof HTMLElement?s:null}static processVideoFrameForLazyLoad(e,t){if(!e)return e;try{const s=document.createElement("div");s.innerHTML=e;const i=s.querySelector(".video-component-frame");if(i){const e=i.dataset.src;if(e){const s=`\n            <iframe class="video-component-frame"\n              src="${e}"\n              border="0"\n              allowfullscreen="1"\n              mozallowfullscreen="1"\n              webkitallowfullscreen="1"\n              allow="autoplay; fullscreen"\n              title="${t}">\n            </iframe>\n          `;i.outerHTML=s}}return s.innerHTML}catch(t){return console.warn("Error processing video frame for lazy load:",t),e}}static createVideoComponentIframe(e){const t=o.POPUP_INNER.substring(1),s=this.getVideoComponentDOM(e);let i,n=s?s.outerHTML:"";if(s){const e=s.querySelector(".video-component-frame"),t=e?.getAttribute("title");if(t)i=t;else{const t=e?.dataset.title;t&&(i=t)}}n=this.processVideoFrameForLazyLoad(n,i);return`\n      <div class="${t} popup-video">\n        ${this.createAccessibleVideoDiv(e??null,i)}\n        ${n}\n        <button type="button" class="ada-back">\n          <span class="sr-only">${r.BACK_FOCUS_SR_TEXT()}</span>\n        </button>\n        ${p}\n      </div>\n    `}}class w{static POPUP_SHOW=l;static POPUP_SHOW_SELECTOR=`.${l}`;static ADA_BACK_SELECTOR=".ada-back";static getActivePopup(){return document.querySelector(this.POPUP_SHOW_SELECTOR)}
3static findElement(e,t=document){return t.querySelector(e)}static findAll(e,t=document){return Array.from(t.querySelectorAll(e))}getFocusableElements(e){if(!e)return[];const t=e.querySelectorAll(g);return Array.from(t).filter(e=>{if(!(e instanceof HTMLElement))return!1;try{const t=globalThis.getComputedStyle(e);return"none"!==t.display&&"hidden"!==t.visibility&&"0"!==t.opacity}catch{return!0}})}focusPopupKeyup(){if(!document.querySelector(`${o.ADA_BACK}:focus`))return;const e=w.getActivePopup();if(!e)return;const t=e.querySelector(o.CLOSE_POPUP);if(t instanceof HTMLElement&&t.offsetParent)t.focus();else{const t=this.getFocusableElements(e);t[0]?.focus()}}focusPopupKeyupShift(e){const t=w.getActivePopup();if(!t)return!0;const s=this.getFocusableElements(t),i=t.querySelector(o.CLOSE_POPUP);if(document.activeElement===s[0])return e.preventDefault(),i instanceof HTMLElement&&i.focus(),!1;const n=document.activeElement?.matches(o.CLOSE_POPUP);if(n){const e=t.querySelector(w.ADA_BACK_SELECTOR);e instanceof HTMLElement&&e.focus()}return!0}focusPopupKeydown(e){const t=w.getActivePopup();if(!t)return!0;const s=document.activeElement?.matches(o.CLOSE_POPUP);if(s){e.preventDefault();const s=this.getFocusableElements(t);return s[0]?.focus(),!1}return!0}}const N=e=>e instanceof HTMLElement,I={TAB:"Tab",ENTER:"Enter",ESC:"Escape",SPACE:" ",ARROW_LEFT:"ArrowLeft",ARROW_UP:"ArrowUp",ARROW_RIGHT:"ArrowRight",ARROW_DOWN:"ArrowDown",END:"End",HOME:"Home",PAGE_UP:"PageUp",PAGE_DOWN:"PageDown",NUMBER_1:"1",LETTER_A:"a"};var R;!function(e){e.INVALID_ELEMENT="INVALID_ELEMENT",e.MISSING_ATTRIBUTE="MISSING_ATTRIBUTE",e.POPUP_CREATION_FAILED="POPUP_CREATION_FAILED",e.CONTENT_NOT_FOUND="CONTENT_NOT_FOUND",e.VIDEO_PROCESSING_ERROR="VIDEO_PROCESSING_ERROR",e.FOCUS_MANAGEMENT_ERROR="FOCUS_MANAGEMENT_ERROR",e.DOM_MANIPULATION_ERROR="DOM_MANIPULATION_ERROR"}(R||(R={}));class D extends Error{code;context;constructor(e,t,s){super(e),this.code=t,this.context=s,this.name="PopupError"}}new class{html;widthContent;widthContentTmp;iframe;popupFocus;constructor(){this.handleClick=this.handleClick.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleKeyUp=this.handleKeyUp.bind(this),this.html=document.querySelector(o.HTML),this.html=N(this.html)?this.html:null,this.widthContent="container",this.widthContentTmp="container",this.iframe="",this.popupFocus=new w,this.html&&this.init()}init(){this.setupEventListeners()}setupEventListeners(){document.removeEventListener("click",this.handleClick),document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("keyup",this.handleKeyUp),document.addEventListener("click",this.handleClick),document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("keyup",this.handleKeyUp)}handleClick(e){const{target:t}=e;if(!N(t))return;const s=t.closest(o.OPEN_POPUP),i=t.closest(o.CLOSE_POPUP),n=t.closest(o.MASK_OVERLAY);if(s&&N(s))return e.preventDefault(),void this.handleOpenPopup(s);(i||n)&&(e.preventDefault(),this.closePopup())}renderPopup(){const e=document.querySelector(o.POPUP);e&&N(e)&&e.remove();const t=`\n      <div class="popup" role="dialog" aria-modal="true">\n        <div class="popup-container inset-0 absolute">\n          <div class="popup-content ${this.widthContent}">\n            <div class="mask-pop-overlay" role="presentation"></div>\n          </div>\n        </div>\n      </div>\n    `,s=document.createElement("div");s.innerHTML=t;const i=s.firstElementChild;if(!i||!N(i))throw new D("Failed to create popup element",R.POPUP_CREATION_FAILED,"renderPopup");return document.body.appendChild(i),i}popupVideo(e){if("component-video"===e.dataset.popup)this.iframe=C.createVideoComponentIframe(e);else{const{href:t}=e.dataset;if(!t)throw new D("Missing data-href attribute for video popup",R.MISSING_ATTRIBUTE,"popupVideo");const s=C.convertToEmbed(t),i=C.addMutedVideo(s);this.iframe=C.createVideoIframe(i,e)}const t=this.renderPopup();if(!t)return;const s=t.querySelector(".popup-content");if(N(s)){for(;s.firstChild;)s.firstChild.remove();const e=document.createElement("div");e.className="mask-pop-overlay",e.setAttribute("role","presentation"),s.appendChild(e);const t=document.createElement("div");t.innerHTML=this.iframe;const i=t.firstElementChild;i&&s.appendChild(i)}}popupContent(e){const t=document.querySelector(e),s=this.renderPopup();if(!N(s))return;const i=s.querySelector(".popup-content");
3if(!N(i))throw new D("Popup content container not found",R.CONTENT_NOT_FOUND,"popupContent");if(!t){i.classList.add(d);const e=document.createElement("div");e.className="mask-pop-overlay",e.setAttribute("role","presentation");const t=document.createElement("div");t.className="container-wrapper-inner popup-inner";const s=document.createElement("div");s.className="p-12";const n=document.createElement("div");n.className="popup-inner";const a=document.createElement("h3");a.className="m-0",a.textContent=r.ERROR_HEADING(),n.appendChild(a),s.appendChild(n);const o=document.createElement("button");o.type="button",o.className="popup-is-close no-underline";const l=document.createElement("span");l.className="icomoon icon-close";const c=document.createElement("span");return c.className="sr-only",c.textContent=r.CLOSE_SR_TEXT(),o.appendChild(l),o.appendChild(c),t.appendChild(s),t.appendChild(o),i.appendChild(e),void i.appendChild(t)}const n=t.querySelector(".popup-inner")?.cloneNode(!0);if(n&&n instanceof HTMLElement){const e=n;for(;i.firstChild;)i.firstChild.remove();const t=document.createElement("div");if(t.className="mask-pop-overlay",t.setAttribute("role","presentation"),i.appendChild(t),i.appendChild(e),!e.querySelector(".popup-is-close")){const t=document.createElement("button");t.type="button",t.className="popup-is-close no-underline";const s=document.createElement("span");s.className="icomoon icon-close";const i=document.createElement("span");i.className="sr-only",i.textContent=r.CLOSE_SR_TEXT(),t.appendChild(s),t.appendChild(i),e.appendChild(t)}}}handleOpenPopup(e){try{if(!e)return;const t=e.dataset.htmlclass??"",s=e.dataset.id??"",i=e.dataset.popup;if(e.classList.add(m),"video"===i||"component-video"===i)return void this.handleVideoPopup(e,t);if(!s)throw new D("Missing data-id attribute for content popup",R.MISSING_ATTRIBUTE,"handleOpenPopup");const n=document.querySelector(s);if(N(n)&&n.classList.contains("popup-static"))return void this.handleStaticPopup(n,t);this.handleContentPopup(e,s,t)}catch(e){if(!(e instanceof D))throw new D("Unexpected error opening popup",R.DOM_MANIPULATION_ERROR,"handleOpenPopup");this.closePopup()}}handleVideoPopup(e,t){this.popupVideo(e),setTimeout(()=>{const e=document.querySelector(o.POPUP);N(e)&&e.classList.add(l),this.html?.classList.add(t,h),this.handlePopupAnimation()},0)}handleStaticPopup(e,t){e.classList.add(c,l),this.html?.classList.add(t,h),this.handlePopupAnimation()}handleContentPopup(e,t,s){const i=document.querySelector(t),n=N(i)?i.dataset.content:null,r=a(e,"label-popup");n&&(this.widthContent=n),this.popupContent(t),setTimeout(()=>{const e=document.querySelector(o.POPUP),t=e?.querySelector(o.POPUP_CONTENT);N(e)&&N(t)&&r&&(e.classList.add(l),t.setAttribute("aria-labelledby",r)),this.html?.classList.add(s,h),this.handlePopupAnimation()},0)}isElementVisible(e){if(!e)return!1;const t=globalThis.getComputedStyle(e);return"none"!==t.display&&"hidden"!==t.visibility&&"0"!==t.opacity}getFirstFocusableElement(e){if(!e)return null;const t=e.querySelectorAll(g),s=Array.from(t).find(e=>this.isElementVisible(e)&&e instanceof HTMLElement);return s instanceof HTMLElement?s:null}handlePopupAnimation(){setTimeout(()=>{this.html?.classList.add(u);const e=document.querySelector(`.${l}`);if(!N(e))return;const t=this.getFirstFocusableElement(e);t&&t.focus()},100)}closePopup(){if(this.html?.classList.contains(h))try{const e=document.querySelector(o.IS_CLICK),t=N(e)?e.dataset.htmlclass??"":"";this.html?.classList.remove(h,u,t);const s=document.querySelector(`.${l}`);if(N(s)&&s.classList.contains(c))s.classList.remove(l);else{const e=document.querySelector(o.POPUP);e&&e.remove()}N(e)&&(e.focus(),e.classList.remove(m)),this.widthContent=this.widthContentTmp}catch{this.html?.classList.remove(h,u);const e=document.querySelector(o.POPUP);e&&e.remove()}}handleKeyDown(e){const{key:t,shiftKey:s}=e,i=document.querySelector(`.${l}`);N(i)&&(t===I.ESC&&(e.preventDefault(),this.closePopup()),t===I.ENTER&&e.target instanceof HTMLElement&&e.target.classList.contains("popup-is-close")&&(e.preventDefault(),this.closePopup()),t===I.TAB&&(s?this.popupFocus.focusPopupKeyupShift(e):this.popupFocus.focusPopupKeydown(e)))}handleKeyUp(e){const{key:t,shiftKey:s}=e,i=document.querySelector(`.${l}`);t===I.TAB&&!s&&N(i)&&this.popupFocus.focusPopupKeyup()}destroy(){document.removeEventListener("click",this.handleClick),document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("keyup",this.handleKeyUp);const e=document.querySelector(`.${l}`);N(e)&&this.closePopup()}};class M{static BROWSERS={EXPLORER:{test:e=>e.includes("MSIE")||e.includes("rv:15")||Boolean(document.documentMode),className:"ie"},FIREFOX:{test:e=>e.includes("Firefox"),className:"firefox"},SAFARI:{test:e=>e.includes("Safari")&&!e.includes("Chrome"),className:"safari"},CHROME:{test:e=>e.includes("Chrome")&&e.includes("Safari"),className:"chrome"},EDGE:{test:e=>/Edge/.test(e),className:"edge"}};htmlElement;constructor(){this.htmlElement=document.documentElement,this.browserDetection()}browserDetection(){const e=navigator.userAgent;
3Object.entries(M.BROWSERS).forEach(([t,{test:s,className:i}])=>{s(e)&&this.htmlElement.classList.add(i)})}}new M;class O{static DEVICES_REGEX=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i;html;constructor(){this.html=document.documentElement,this.checkDevice()}checkDevice(){const e=O.DEVICES_REGEX.test(navigator.userAgent)?"touch":"no-touch";this.html.classList.add(e)}}new O;class x{static NOTIFY_SELECTOR="#notify";static HTML_SELECTOR="html";htmlElement;constructor(){this.htmlElement=document.querySelector(x.HTML_SELECTOR)}init(){this.addPageReadyClass(),this.removeNoscript(),this.showBackToTop(),this.setScrollbarWidth(),this.addEventListeners(),this.addBackToTop(),this.addPrintEventListeners()}addPageReadyClass(){this.htmlElement&&this.htmlElement.classList.add("page-ready")}addEventListeners(){globalThis.addEventListener("resize",()=>{this.setScrollbarWidth(),this.showBackToTop()}),globalThis.addEventListener("scroll",()=>{this.showBackToTop()}),globalThis.addEventListener("orientationchange",()=>{this.setScrollbarWidth()})}showBackToTop(){const e=document.querySelector(".back-to-top-wrapper");e&&(globalThis.scrollY>100?e.classList.add("is-visible"):e.classList.remove("is-visible"))}addBackToTop(){const e=()=>{const e=document.querySelector(".back-to-top");e&&e.addEventListener("click",()=>{window.scrollTo({top:0,behavior:"smooth"})})};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",e):e()}setScrollbarWidth(){let e=0;if(document.documentElement.scrollHeight>window.innerHeight){const t=document.createElement("div");t.style.cssText="\n         position: absolute;\n         top: -9999px;\n         width: 100px;\n         height: 100px;\n         overflow: scroll;\n         visibility: hidden;\n         -ms-overflow-style: scrollbar;\n       ",document.body.appendChild(t);const s=document.createElement("div");s.style.width="100%",s.style.height="200px",t.appendChild(s),e=t.offsetWidth-s.offsetWidth,t.remove()}document.documentElement.style.setProperty("--scrollbar-width",`${e}px`)}removeNoscript(){const e=document.querySelector(x.NOTIFY_SELECTOR);e&&e.remove()}slideUp(e,t){const s=e.style;"none"!==globalThis.getComputedStyle(e).display&&0!==e.offsetHeight?(s.transitionProperty="height, opacity, padding-top, padding-bottom, margin-bottom, margin-top",s.transitionDuration="300ms",s.transitionTimingFunction="ease-out",s.height=`${e.offsetHeight}px`,s.overflow="hidden",requestAnimationFrame(()=>{s.height="0px",s.opacity="0",s.paddingTop="0px",s.paddingBottom="0px",s.marginBottom="0px",s.marginTop="0px"}),setTimeout(()=>{s.display="none",s.removeProperty("height"),s.removeProperty("opacity"),s.removeProperty("padding-top"),s.removeProperty("padding-bottom"),s.removeProperty("transition-property"),s.removeProperty("transition-duration"),s.removeProperty("transition-timing-function"),s.removeProperty("overflow"),s.removeProperty("margin-bottom"),s.removeProperty("margin-top"),t?.()},300)):t?.()}slideDown(e){const t=e.style;t.display="block";const s=e.offsetHeight;t.height="0px",t.opacity="0",t.paddingTop="0px",t.paddingBottom="0px",t.overflow="hidden",t.transitionProperty="height, opacity, padding-top, padding-bottom, margin-bottom, margin-top",t.transitionDuration="300ms",t.transitionTimingFunction="ease-out",requestAnimationFrame(()=>{t.height=`${s}px`,t.opacity="1",t.removeProperty("padding-top"),t.removeProperty("padding-bottom"),t.removeProperty("margin-bottom"),t.removeProperty("margin-top")}),setTimeout(()=>{t.removeProperty("height"),t.removeProperty("opacity"),t.removeProperty("transition-property"),t.removeProperty("transition-duration"),t.removeProperty("transition-timing-function"),t.removeProperty("overflow"),t.removeProperty("margin-bottom"),t.removeProperty("margin-top")},300)}addPrintEventListeners(){globalThis.addEventListener("beforeprint",()=>{const e=document.querySelector(".root.responsivegrid > .aem-Grid > .container"),t=e?.querySelector(":scope > .container-wrapper-inner > .cmp-container > .aem-Grid"),s=t?.querySelectorAll(":scope > .main-grid > .container > .container-wrapper-inner > .cmp-container > .aem-Grid");
3s?.forEach(e=>{e.classList.add("child-grid")}),e?.classList.add("main-container"),t?.classList.add("main-grid"),this.prepareImagesForPrint()}),globalThis.addEventListener("afterprint",()=>{this.restoreImagesAfterPrint()})}modifiedImages=[];prepareImagesForPrint(){this.modifiedImages=[];document.querySelectorAll("img").forEach(e=>{this.processImageForPrint(e)})}processImageForPrint(e){const t={...this.createModificationsObject(e),originalLoading:this.removeLoadingAttribute(e),...this.replaceBase64Image(e)};null===t.originalLoading&&null===t.originalSrc||this.modifiedImages.push(t),this.scheduleLoadingTextCheck(e)}createModificationsObject(e){return{img:e,originalLoading:null,originalSrc:null,originalStyle:null,hadLoadingClass:!1}}removeLoadingAttribute(e){if(e.hasAttribute("loading")){const t=e.getAttribute("loading");return e.removeAttribute("loading"),t}return null}replaceBase64Image(e){const t={originalSrc:null,originalStyle:null,hadLoadingClass:!1},s=e.getAttribute("src");if(!s?.startsWith("data:image"))return t;const i=e.parentElement?.dataset.imagesrc??e.dataset.imagesrc;return i?(t.originalSrc=s,e.setAttribute("src",i),t.originalStyle=this.removeImageStyles(e),t.hadLoadingClass=this.removeLoadingClass(e),t):t}removeImageStyles(e){if(e.hasAttribute("style")){const t=e.getAttribute("style");return e.removeAttribute("style"),t}return null}removeLoadingClass(e){return!!e.classList.contains("cmp-image__image--is-loading")&&(e.classList.remove("cmp-image__image--is-loading"),!0)}scheduleLoadingTextCheck(e){setTimeout(()=>{(!e.complete||0===e.naturalWidth&&0===e.naturalHeight)&&this.addLoadingTextToImage(e)},100)}addLoadingTextToImage(e){if(e.parentElement?.querySelector(".image-loading-text"))return;const t=document.createElement("div");if(t.className="image-loading-text",t.style.cssText="\n      position: absolute;\n      top: 50%;\n      left: 50%;\n      transform: translate(-50%, -50%);\n      background: rgba(0, 0, 0, 0.8);\n      color: white;\n      padding: 8px 12px;\n      border-radius: 4px;\n      font-family: Arial, sans-serif;\n      font-size: 12px;\n      font-weight: bold;\n      z-index: 1000;\n      pointer-events: none;\n    ",t.textContent="Image loading...",e.parentElement){const s=e.parentElement;"static"===globalThis.getComputedStyle(s).position&&(s.style.position="relative",s.dataset.printPositionModified="true"),s.appendChild(t)}}restoreImagesAfterPrint(){document.querySelectorAll(".image-loading-text").forEach(e=>e.remove());document.querySelectorAll('[data-print-position-modified="true"]').forEach(e=>{if(!(e instanceof HTMLElement))return;const t=e;t.style.position="",delete t.dataset.printPositionModified}),this.modifiedImages.forEach(({img:e,originalLoading:t})=>{t&&e.setAttribute("loading",t)}),this.modifiedImages=[]}}const P=new x;P.init();class k{static SET_ANIMATION="set-animation";static HAS_ANIMATION="has-animation";static THROTTLE_DELAY=200;constructor(){k.init()}static init(){const e=document.querySelectorAll(".animation:not(:has(.image--background)),.animation.force-animation");k.animateElements(e);let t=null;const s=()=>{null!==t&&cancelAnimationFrame(t),t=requestAnimationFrame(()=>{k.animateElements(e),t=null})};window.addEventListener("scroll",s,{passive:!0}),window.addEventListener("resize",s,{passive:!0});let i=document.body.scrollHeight;new ResizeObserver(()=>{const e=document.body.scrollHeight;e!==i&&(i=e,s())}).observe(document.body)}static animateElements(e){const t=window.innerHeight;if(!document.body.classList.contains(k.HAS_ANIMATION))return;const s=[];e.forEach(e=>{if(e.classList.contains(k.SET_ANIMATION))return;const t=e.getBoundingClientRect(),i=globalThis.getComputedStyle(e);s.push({element:e,rect:t,computedStyle:i})});const i=window.scrollY||document.documentElement.scrollTop;s.forEach(({element:e,rect:s,computedStyle:n})=>{let a=s.top+i;const{transform:r}=n;if(r&&"none"!==r)try{const e=new DOMMatrix(r);a-=e.m42}catch(e){console.warn("Failed to parse transform matrix:",e)}i>a-t&&e.classList.add(k.SET_ANIMATION)})}}new k;class H{static KEYCODE={SPACE:I.SPACE,TAB:I.TAB,ESC:I.ESC,DOWN:I.DOWN};static SELECTORS={SKIP_TO_MAIN:".skip-to-main-link",MAIN_CONTENT:"#main-content",MAIN_MENU:".main-menu-ul > li > a",ICOMOON:".icomoon",BUTTON_ROLE:'[role="button"]',FOCUSABLE:"a,button,input,.custom-tab,div,li,p,*",HEADER:".header",POPUP_OPEN:".popup-is-open",DROPDOWN:".dropdown-select-c8",COOKIE_BANNER_SELECTOR:"#onetrust-consent-sdk",COOKIE_BANNER_CONTENT_SELECTOR:"#onetrust-banner-sdk",CLOSE_ICON_SELECTOR:".ot-close-icon"};static STRONG_WRAP_CLASSES=["h1","h2","h3","h4","h5","h6","h7","h8","heading-display","heading-tag","tt-rationalist"];html;isUsingKeyboard=!1;constructor(){this.html=document.documentElement,this.init()}init(){this.skipToContent(),this.detectFocus(),this.initADA(),this.controlKey(),this.addAriaHiddenIconMoon(),this.adaCookieBanner(),this.handleFocusScroll(),this.ensureSkipLinkFirstFocus()}skipToContent(){const e=document.querySelector(H.SELECTORS.SKIP_TO_MAIN);e&&e.addEventListener("click",()=>{const e=document.querySelector(H.SELECTORS.MAIN_CONTENT),t=e?.querySelector("h1, a");t?.focus()})}getFocusableElements(e){return Array.from(e.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not
3([tabindex="-1"])')).filter(e=>!e.hasAttribute("disabled")&&null!==e.offsetParent)}handleTabNavigation(e){if(e.key!==H.KEYCODE.TAB)return;const t=document.activeElement;if(!N(t))return;const s=document.querySelector(H.SELECTORS.COOKIE_BANNER_SELECTOR);if("block"!==s?.style.display)return;const i=s.querySelector(H.SELECTORS.CLOSE_ICON_SELECTOR),n=this.getFocusableElements(s);if(0===n.length)return;const a=n.at(-1),r=t===a;if(t?.closest(H.SELECTORS.COOKIE_BANNER_SELECTOR))return e.shiftKey&&t===i&&i!==a?(e.preventDefault(),void a.focus()):void(r&&!e.shiftKey&&i&&i!==a&&(e.preventDefault(),i.focus()));i?.focus()}adaCookieBanner(){globalThis.addEventListener("keydown",this.handleTabNavigation.bind(this))}detectFocus(){document.querySelectorAll(H.SELECTORS.MAIN_MENU).forEach(e=>{e.addEventListener("focusin",e=>{e.target&&document.querySelectorAll(".hovering").forEach(e=>{e.classList.remove("hovering")})})}),globalThis.addEventListener("keydown",e=>{const t=document.activeElement,s=N(t)&&t.parentElement?.classList.contains("has-sub");e.key===H.KEYCODE.DOWN&&s&&(e.preventDefault(),t.parentElement?.classList.add("hovering"))}),document.querySelectorAll("a,button,input,div").forEach(e=>{e.addEventListener("focusin",({target:e})=>{N(e)&&(e.closest(H.SELECTORS.DROPDOWN)||document.querySelectorAll(H.SELECTORS.DROPDOWN).forEach(e=>{e.classList.remove("show","focus"),e.querySelector(".dropdown-menu")?.classList.remove("show")}))})})}initADA(){document.querySelectorAll(H.SELECTORS.POPUP_OPEN).forEach(e=>{e.removeAttribute("tabindex")})}addAriaHiddenIconMoon(){document.querySelectorAll(H.SELECTORS.ICOMOON).forEach(e=>{e.setAttribute("aria-hidden","true")})}controlKey(){document.querySelectorAll(H.SELECTORS.BUTTON_ROLE).forEach(e=>{e.addEventListener("keydown",e=>{const{target:t}=e;N(t)&&(e.key!==H.KEYCODE.SPACE||t.classList.contains("not-space")||(e.preventDefault(),t.click()))})})}handleFocusScroll(){let e=!1;document.addEventListener("keydown",t=>{"Tab"===t.key&&(e=!0)}),document.addEventListener("pointerdown",()=>{e=!1}),document.addEventListener("focusin",({target:t})=>{if(!e)return;if(!N(t))return;if(!t)return;if([".mega-menu",".navigation--pinned",".in-page-nav__sticky-nav",".cmp-tabs__tablist-container.is-sticky"].some(e=>null!==t.closest(e)))return;t.getBoundingClientRect().top<300&&requestAnimationFrame(()=>{const e=t.getBoundingClientRect();e.top<300&&window.scrollBy({top:e.top-300-10,behavior:"smooth"})})})}ensureSkipLinkFirstFocus(){let e=!0,t=!1;const s=()=>{t=!0};["pointerdown","touchstart","click","keydown"].forEach(e=>{document.addEventListener(e,s,{once:!0,passive:!0})});const i=s=>{if(e&&!t){e=!1;const t=document.querySelector(H.SELECTORS.COOKIE_BANNER_CONTENT_SELECTOR);if(!1===t?.classList.contains("ot-hide"))return;const n=document.querySelector(H.SELECTORS.SKIP_TO_MAIN);n&&(s.preventDefault(),n.focus(),document.removeEventListener("focusin",i))}else e=!1};document.addEventListener("focusin",i),setTimeout(()=>{document.removeEventListener("focusin",i),["pointerdown","touchstart","click","keydown"].forEach(e=>{document.removeEventListener(e,s)})},3e4)}}new H;const B=new class{customScrollElements;scrollActiveClass;scrollInstances=[];globalMouseMoveHandler=null;globalMouseUpHandler=null;constructor(){this.customScrollElements=document.querySelectorAll(".custom-scroll"),this.scrollActiveClass="start-scroll",this.setupGlobalDragHandlers()}init(){this.initCustomScrollX(),this.initCustomScrollY()}setupGlobalDragHandlers(){this.globalMouseMoveHandler=e=>{this.scrollInstances.forEach(t=>{t.isDragging&&this.handleDrag(t,e)})},this.globalMouseUpHandler=()=>{this.scrollInstances.forEach(e=>{e.isDragging&&(e.isDragging=!1,document.body.style.userSelect="")})},document.addEventListener("mousemove",this.globalMouseMoveHandler),document.addEventListener("mouseup",this.globalMouseUpHandler)}handleDrag(e,t){const{scrollContainer:s,scrollElements:i,direction:n,dragStartPos:a}=e,{scrollbar:r,thumb:o}=i;if("x"===n){const i=t.clientX-a.x,n=(r.offsetWidth??0)-(o.offsetWidth??0);if(n<=0)return;const l=(s.scrollWidth??1)-(s.offsetWidth??1),c=s.scrollLeft,d=Math.max(0,Math.min(l,c+i*(l/n)));s.scrollLeft=d,e.dragStartPos.x=t.clientX}else{const i=t.clientY-a.y,n=(r.offsetHeight??0)-(o.offsetHeight??0);if(n<=0)return;const l=(s.scrollHeight??1)-(s.offsetHeight??1),c=s.scrollTop,d=Math.max(0,Math.min(l,c+i*(l/n)));s.scrollTop=d,e.dragStartPos.y=t.clientY}}
3recalculate(){this.scrollInstances.forEach(e=>{e.handlers.checkScrollable()})}recalculateElement(e){const t=this.scrollInstances.find(t=>t.wrapper===e);t&&t.handlers.checkScrollable()}refresh(){this.scrollInstances=[],this.customScrollElements=document.querySelectorAll(".custom-scroll"),this.init()}initCustomScrollX(){this.customScrollElements.forEach(e=>{const t=e,s=t.querySelector(".scroll-container.scroll-x");if(!N(s)||!this.hasScrollableContent(s))return;const i={wrapper:t,scrollContainer:s,scrollElements:this.createScrollElements(t,"x"),handlers:{},direction:"x",isDragging:!1,dragStartPos:{x:0,y:0}},n=this.setupScrollHandlers(i);i.handlers=n,this.scrollInstances.push(i)})}initCustomScrollY(){this.customScrollElements.forEach(e=>{const t=e,s=t.querySelector(".scroll-container.scroll-y");if(!N(s))return;const i={wrapper:t,scrollContainer:s,scrollElements:this.createScrollElements(t,"y"),handlers:{},direction:"y",isDragging:!1,dragStartPos:{x:0,y:0}},n=this.setupScrollHandlers(i);i.handlers=n,this.scrollInstances.push(i)})}hasScrollableContent(e){return null!==e}createScrollElements(e,t){const s=`<div class="custom-scrollbar custom-scrollbar--${t}"><div class="custom-scrollbar__thumb"></div></div>`;e.insertAdjacentHTML("beforeend",s);const i=e.querySelector(`.custom-scrollbar.custom-scrollbar--${t}`),n=i?.querySelector(".custom-scrollbar__thumb");if(!N(i)||!N(n))throw new Error("Scrollbar or thumb not found");return{scrollbar:i,thumb:n}}setupScrollHandlers(e){const{wrapper:t,scrollContainer:s,scrollElements:i,direction:n}=e,{scrollbar:a,thumb:r}=i;this.validateScrollElements(a,r);const o=()=>this.updateThumbSize(t,s,r,n),l=()=>this.updateThumbPosition(s,a,r,n),c=()=>this.checkScrollable(t,s,a,n,o,l);return r.addEventListener("mousedown",t=>{t.preventDefault(),e.isDragging=!0,e.dragStartPos={x:t.clientX,y:t.clientY},document.body.style.userSelect="none"}),c(),this.attachScrollEventListeners(s,l,c),{updateThumbSize:o,updateThumbPosition:l,checkScrollable:c}}validateScrollElements(e,t){if(!N(e)||!N(t))throw new Error("Scrollbar or thumb not found")}updateThumbSize(e,t,s,i){"x"===i?this.updateHorizontalThumbSize(e,t,s):this.updateVerticalThumbSize(e,t,s)}updateHorizontalThumbSize(e,t,s){const i=(e.offsetWidth??0)/(t.scrollWidth??1);s.style.width=100*i+"%"}updateVerticalThumbSize(e,t,s){const i=(e.offsetHeight??0)/(t.scrollHeight??1);s.style.height=100*i+"%"}updateThumbPosition(e,t,s,i){"x"===i?this.updateHorizontalThumbPosition(e,t,s):this.updateVerticalThumbPosition(e,t,s)}updateHorizontalThumbPosition(e,t,s){const i=(e.scrollLeft??0)/((e.scrollWidth??1)-(e.offsetWidth??1))*((t.offsetWidth??0)-(s.offsetWidth??0));s.style.transform=`translateX(${i}px)`}updateVerticalThumbPosition(e,t,s){const i=(e.scrollTop??0)/((e.scrollHeight??1)-(e.offsetHeight??1))*((t.offsetHeight??0)-(s.offsetHeight??0));s.style.transform=`translateY(${i}px)`}checkScrollable(e,t,s,i,n,a){this.isContentScrollable(t,i)?this.enableScrollbar(e,s,n,a):this.disableScrollbar(e,s)}isContentScrollable(e,t){return"x"===t?(e.scrollWidth??0)-1>(e.offsetWidth??0):(e.scrollHeight??0)-1>(e.offsetHeight??0)}enableScrollbar(e,t,s,i){e.classList.add(this.scrollActiveClass);t.style.display="block",s(),i()}disableScrollbar(e,t){e.classList.remove(this.scrollActiveClass);t.style.display="none"}attachScrollEventListeners(e,t,s){e.addEventListener("scroll",t),window.addEventListener("resize",s)}};B.init();const F={focusableSelectors:["a[href]","button:not([disabled])","input:not([disabled])","textarea:not([disabled])","select:not([disabled])",'[tabindex]:not([tabindex="-1"])','[role="button"]:not([disabled])',".custom-tab"],excludeSelectors:[".swiper-slide-duplicate"],updateOnBreakpoint:!0},q=".swiper-pagination",$=".swiper-pagination-bullet",z=".relatedcontent__pagination",U='span[role="button"]',W=".swiper-pagination-bullets",V=".cmp-slider",G='.swiper-pagination-bullet, span[role="button"], button.swiper-pagination-bullet',K=".swiper-nav__button--prev",Y=".swiper-nav__button--next",j=".swiper-status",X=".swiper-announcements",Q="h1, h2, h3, h4, h5, h6",Z="pagination-",J="slide-focus-",ee="nav-",te="Pagination controls",se=(e,t)=>`Pagination controls, slide ${e} of ${t}`,ie=(e,t)=>`${e} / ${t}`,ne="tabindex",ae="data-original-tabindex",re="role",oe="aria-label",le="aria-describedby",ce="aria-live",de="aria-atomic",he="data-original-label",ue="data-swiper-id",me="sr-only",pe="swiper-status",ge="swiper-announcements";class fe{swiperInstances=new Map;idCounter=0;register(e,t={}){const s=`${J}${this.idCounter++}`,i={...F,...t};this.setupInitialTabManagement(e,i);const n=()=>this.updateTabNavigation(e,i),a=()=>{i.updateOnBreakpoint&&this.updateTabNavigation(e,i)},r=()=>{this.updateTabNavigation(e,i)};e.on("slideChange",n),e.on("breakpoint",a),e.on("afterInit",r),requestAnimationFrame(r);const o={swiper:e,options:i,cleanup:()=>{e.off("slideChange",n),e.off("breakpoint",a),e.off("afterInit",r),this.restoreAllTabIndexes(e,i)}};return this.swiperInstances.set(s,o),s}unregister(e){const t=this.swiperInstances.get(e);t&&(t.cleanup(),this.swiperInstances.delete(e))}
3updateAll(){this.swiperInstances.forEach(e=>{this.updateTabNavigation(e.swiper,e.options)})}setupInitialTabManagement(e,t){this.getAllSlides(e,t).forEach(e=>{this.getFocusableElements(e,t).forEach(e=>{const t=e.getAttribute(ne);null!==t&&e.setAttribute(ae,t)})})}updateTabNavigation(e,t){const s=this.getAllSlides(e,t),i=this.getVisibleSlideIndexes(e);s.forEach((e,s)=>{const n=i.includes(s);this.getFocusableElements(e,t).forEach(e=>{n?this.makeElementFocusable(e):this.makeElementUnfocusable(e)})})}getAllSlides(e,t){let s=[...e.slides];return t.excludeSelectors.length>0&&(s=s.filter(e=>!t.excludeSelectors.some(t=>e.matches(t)))),s}getVisibleSlideIndexes(e){const{activeIndex:t,params:s}=e,i="number"==typeof s.slidesPerView?s.slidesPerView:1,n=e.slides.length,a=[],r=Math.ceil(i);for(let e=0;e<r;e++){const s=t+e;s<n&&a.push(s)}return a}getFocusableElements(e,t){const s=t.focusableSelectors.join(", ");return Array.from(e.querySelectorAll(s))}makeElementFocusable(e){const t=e.getAttribute(ae);null===t?e.removeAttribute(ne):e.setAttribute(ne,t)}makeElementUnfocusable(e){e.setAttribute(ne,"-1")}restoreAllTabIndexes(e,t){this.getAllSlides(e,t).forEach(e=>{this.getFocusableElements(e,t).forEach(e=>{const t=e.getAttribute(ae);null===t?e.removeAttribute(ne):(e.setAttribute(ne,t),e.removeAttribute(ae))})})}}var Ee=fe;const be=new class{convertedContainers=new WeakSet;convertPaginationBullets(e){const t=this.getPaginationContainer(e);if(!t||this.convertedContainers.has(t))return!1;const s=this.getSpanBullets(t);return 0===s.length?(this.convertedContainers.add(t),!1):(s.forEach(e=>{this.convertSpanToButton(e)}),this.convertedContainers.add(t),this.updateSwiperPaginationReferences(e),!0)}convertSpanToButton(e){const t=document.createElement("button");t.className=e.className,t.innerHTML=e.innerHTML,t.setAttribute("type","button"),Array.from(e.attributes).forEach(e=>{"role"!==e.name&&t.setAttribute(e.name,e.value)}),e.parentNode?.replaceChild(t,e)}updateSwiperPaginationReferences(e){if(!e.pagination?.el)return;const t=e.pagination.el;"object"==typeof t&&"querySelectorAll"in t&&requestAnimationFrame(()=>{if(e.pagination){const s=Array.from(t.querySelectorAll(".swiper-pagination-bullet"));s.length>0&&(e.pagination.bullets=s.filter(e=>e instanceof HTMLElement))}})}getPaginationContainer(e){const t=e.pagination?.el||e.el.querySelector(q)||e.el.querySelector(z)||e.el.parentElement?.querySelector(z)||null;return t instanceof HTMLElement?t:null}getSpanBullets(e){return Array.from(e.querySelectorAll('span.swiper-pagination-bullet, span[role="button"]')).filter(e=>this.isPaginationBullet(e))}isPaginationBullet(e){const{className:t}=e;return t.includes("swiper-pagination-bullet")||t.includes("pagination-bullet")||t.includes("pagination__button")||"button"===e.getAttribute("role")&&t.includes("pagination")}forceConvertPaginationBullets(e){const t=this.getPaginationContainer(e);return!!t&&(this.convertedContainers.delete(t),this.convertPaginationBullets(e))}};class Te{swiperInstances=new Map;idCounter=0;register(e,t={}){const s=`${Z}${this.idCounter++}`,i={...F,...t};this.setupPaginationFocus(e,i);const n=()=>this.updatePaginationFocus(e,i),a=()=>this.handleBreakpointChange(e,i),r=()=>{this.setupPaginationFocus(e,i),this.updatePaginationFocus(e,i)};e.on("slideChange",n),e.on("slideChangeTransitionStart",n),e.on("slideChangeTransitionEnd",n),e.on("breakpoint",a),e.on("resize",a),e.on("update",a),e.on("afterInit",r),requestAnimationFrame(r);const o={swiper:e,options:i,cleanup:()=>{e.off("slideChange",n),e.off("slideChangeTransitionStart",n),e.off("slideChangeTransitionEnd",n),e.off("breakpoint",a),e.off("resize",a),e.off("update",a),e.off("afterInit",r),this.restorePaginationFocus(e)}};return this.swiperInstances.set(s,o),s}unregister(e){const t=this.swiperInstances.get(e);t&&(t.cleanup(),this.swiperInstances.delete(e))}updateAll(){this.swiperInstances.forEach(e=>{this.updatePaginationFocus(e.swiper,e.options)})}setupPaginationFocus(e,t){const s=this.getPaginationContainer(e);s&&(be.convertPaginationBullets(e),this.removePaginationBulletsRole(e),e.el.closest(V)||s.setAttribute(oe,te),this.updateRovingTabindex(s,e),this.addKeyboardControlHandlers(s,e))}handleBreakpointChange(e,t){be.forceConvertPaginationBullets(e),this.updatePaginationFocus(e,t)}updatePaginationFocus(e,t){const s=this.getPaginationContainer(e);if(!s)return;be.convertPaginationBullets(e);const i=this.getPaginationBullets(s),{activeIndex:n}=e;this.updateRovingTabindex(s,e);const a=i.length;e.el.closest(V)||s.setAttribute(oe,se(n+1,a)),this.removePaginationBulletsRole(e)}updateRovingTabindex(e,t){this.getPaginationBullets(e).forEach(e
3=>{if(!e.hasAttribute(ae)){const t=e.getAttribute(ne);null!==t&&e.setAttribute(ae,t)}const t=e.classList.contains("swiper-pagination-bullet-active");e.setAttribute(ne,t?"0":"-1")});const s=document.activeElement;if(s?.classList.contains("swiper-pagination-bullet")){const t=e.querySelector(".swiper-pagination-bullet-active");t&&t instanceof HTMLElement&&t.focus()}}removePaginationBulletsRole(e){const t=e.el.querySelector(W);t?.hasAttribute(re)&&t.removeAttribute(re)}addKeyboardControlHandlers(e,t){const s=e=>{const{target:s}=e;s&&s instanceof HTMLElement&&s.classList.contains("swiper-pagination-bullet-active")&&t.keyboard?.enable()},i=e=>{const{target:s}=e;s&&s instanceof HTMLElement&&s.classList.contains("swiper-pagination-bullet")&&t.keyboard?.disable()};e.addEventListener("focus",s,!0),e.addEventListener("blur",i,!0);const n=e;n.focusHandler=s,n.blurHandler=i}getPaginationContainer(e){const t=e.pagination?.el||e.el.querySelector(q)||e.el.querySelector(z)||e.el.parentElement?.querySelector(z)||null;return t instanceof HTMLElement?t:null}getPaginationBullets(e){const t=Array.from(e.querySelectorAll(G));if(0===t.length){return[...Array.from(e.querySelectorAll($)),...Array.from(e.querySelectorAll(U))]}return t}restorePaginationFocus(e){const t=this.getPaginationContainer(e);if(!t)return;t.removeAttribute(re),t.removeAttribute(oe),this.getPaginationBullets(t).forEach(e=>{const t=e.getAttribute(ae);null===t?e.removeAttribute(ne):(e.setAttribute(ne,t),e.removeAttribute(ae))});const s=t;s.focusHandler&&(t.removeEventListener("focus",s.focusHandler,!0),delete s.focusHandler),s.blurHandler&&(t.removeEventListener("blur",s.blurHandler,!0),delete s.blurHandler)}}var Se=Te;class ve{swiperInstances=new Map;idCounter=0;register(e,t={}){const s=`${J}${ee}${this.idCounter++}`,i={...F,...t};this.setupNavigationAccessibility(e);const n=()=>this.updateNavigationAccessibility(e),a=()=>{this.setupNavigationAccessibility(e),this.updateNavigationAccessibility(e)};e.on("slideChange",n),e.on("slideChangeTransitionEnd",()=>this.announceSlideChange(e)),e.on("afterInit",a),requestAnimationFrame(a);const r={swiper:e,options:i,cleanup:()=>{e.off("slideChange",n),e.off("afterInit",a),this.cleanup(e)}};return this.swiperInstances.set(s,r),s}unregister(e){const t=this.swiperInstances.get(e);t&&(t.cleanup(),this.swiperInstances.delete(e))}updateAll(){this.swiperInstances.forEach(e=>{this.updateNavigationAccessibility(e.swiper)})}setupNavigationAccessibility(e){this.createLiveRegions(e),this.enhanceNavigationButtons(e),this.addNavigationEventListeners(e),this.cleanupRedundantDisabledAttributes(e)}createLiveRegions(e){const t=e.el,s=this.getContainerId(t);if(!t.querySelector(j)){const e=document.createElement("div");e.className=`${me} ${pe}`,e.id=`swiper-status-${s}`,e.setAttribute(ce,"polite"),e.setAttribute(de,"true"),t.appendChild(e)}if(!t.querySelector(X)){const e=document.createElement("div");e.className=`${me} ${ge}`,e.id=`swiper-announcements-${s}`,e.setAttribute(ce,"assertive"),e.setAttribute(de,"true"),t.appendChild(e)}}enhanceNavigationButtons(e){const t=e.el.querySelector(K),s=e.el.querySelector(Y),i=this.getContainerId(e.el);if(t&&t instanceof HTMLButtonElement){const e=t.getAttribute(oe)??t.textContent?.trim()??t.title??t.dataset.label;e&&t.setAttribute(he,e),t.setAttribute(le,`swiper-status-${i}`)}if(s&&s instanceof HTMLButtonElement){const e=s.getAttribute(oe)??s.textContent?.trim()??s.title??s.dataset.label;e&&s.setAttribute(he,e),s.setAttribute(le,`swiper-status-${i}`)}}createNavigationClickHandler(e){return()=>{setTimeout(()=>{this.announceSlideChange(e)},100)}}addNavigationEventListeners(e){const t=e.el.querySelector(K),s=e.el.querySelector(Y);if(t&&t instanceof HTMLButtonElement){const s=this.createNavigationClickHandler(e);t.addEventListener("click",s),t.navClickHandler=s}if(s&&s instanceof HTMLButtonElement){const t=this.createNavigationClickHandler(e);s.addEventListener("click",t),s.navClickHandler=t}}updateNavigationAccessibility(e){this.updateNavigationAriaLabels(e),this.cleanupRedundantDisabledAttributes(e)}cleanupRedundantDisabledAttributes(e){const t=e?.navigation?.prevEl,s=e?.navigation?.nextEl;
3[t,s].forEach(e=>{e&&e instanceof HTMLButtonElement&&e.hasAttribute("disabled")&&e.hasAttribute("aria-disabled")&&e.removeAttribute("aria-disabled")})}updatePrevButtonAriaLabels(e,t,s){const i=e.el.querySelector(K);if(i&&i instanceof HTMLButtonElement){const e=i.getAttribute(he);if(e)if(t>1){const n=`${e} (${t-1}/${s})`;i.setAttribute(oe,n)}else i.setAttribute(oe,e)}}updateNextButtonAriaLabels(e,t,s){const i=e.el.querySelector(Y);if(i&&i instanceof HTMLButtonElement){const e=i.getAttribute(he);if(e&&t<s){const n=`${e} (${t+1}/${s})`;i.setAttribute(oe,n)}}}updateNavigationAriaLabels(e){const t=e.activeIndex+1,s=e.slides.length;this.updatePrevButtonAriaLabels(e,t,s),this.updateNextButtonAriaLabels(e,t,s)}announceSlideChange(e){const t=e.el.querySelector(X);if(!(t&&t instanceof HTMLElement))return;const s=e.activeIndex+1,i=e.slides.length;let n="";const a=e.slides[e.activeIndex].querySelector(Q);a&&(n=a.textContent?.trim()??"");const r=ie(s,i),o=n?`${n} ${r}`:r;t.textContent="",setTimeout(()=>{t&&(t.textContent=o)},50)}getContainerId(e){let t=e.getAttribute(ue);if(!t){const{crypto:s}=globalThis,i=new Uint32Array(1);s.getRandomValues(i),t=`swiper-${Date.now()}-${i[0].toString(36)}`,e.setAttribute(ue,t)}return t}cleanup(e){const t=e.el.querySelector(K),s=e.el.querySelector(Y),i=e.el.querySelector(j),n=e.el.querySelector(X);if(i?.remove(),n?.remove(),t&&t instanceof HTMLButtonElement){const e=t;e.navClickHandler&&(t.removeEventListener("click",e.navClickHandler),delete e.navClickHandler);const s=t.getAttribute(he);s&&(t.setAttribute(oe,s),t.removeAttribute(he),t.removeAttribute(le))}if(s&&s instanceof HTMLButtonElement){const e=s;e.navClickHandler&&(s.removeEventListener("click",e.navClickHandler),delete e.navClickHandler);const t=s.getAttribute(he);t&&(s.setAttribute(oe,t),s.removeAttribute(he),s.removeAttribute(le))}}}var Le=ve;new Ee;const ye=new class{slideFocusManager;paginationFocusManager;navigationAccessibilityManager;constructor(){this.slideFocusManager=new Ee,this.paginationFocusManager=new Se,this.navigationAccessibilityManager=new Le}register(e,t){return`${this.slideFocusManager.register(e,t)}|${this.paginationFocusManager.register(e,t)}|${this.navigationAccessibilityManager.register(e,t)}`}unregister(e){const[t,s,i]=e.split("|");t&&this.slideFocusManager.unregister(t),s&&this.paginationFocusManager.unregister(s),i&&this.navigationAccessibilityManager.unregister(i)}updateAll(){this.slideFocusManager.updateAll(),this.paginationFocusManager.updateAll(),this.navigationAccessibilityManager.updateAll()}},_e=ye;class Ae{element;playPauseButton=null;textElement=null;isPaused=!1;onToggleCallback;get paused(){return this.isPaused}set paused(e){this.isPaused=e,this.updateButtonVisualState()}constructor(e,t){this.element=e,this.onToggleCallback=t?.onToggle,this.playPauseButton=this.element.querySelector(".play-pause-toggle__button"),this.textElement=this.playPauseButton?.querySelector(".play-pause-toggle__button-text")??null,this.init()}init(){this.setupPlayPauseButton()}setupPlayPauseButton(){this.playPauseButton&&this.playPauseButton.addEventListener("click",()=>{this.togglePlayPause()})}togglePlayPause(){this.playPauseButton&&(this.isPaused=!this.isPaused,this.updateButtonVisualState(),this.onToggleCallback&&this.onToggleCallback(this.isPaused))}updateButtonVisualState(){if(this.playPauseButton)if(this.isPaused){if(this.playPauseButton.classList.remove("play-pause-toggle__button--play"),this.playPauseButton.classList.add("play-pause-toggle__button--pause"),this.textElement){const e=this.textElement.dataset.textPlay;e&&(this.textElement.textContent=e)}}else if(this.playPauseButton.classList.remove("play-pause-toggle__button--pause"),this.playPauseButton.classList.add("play-pause-toggle__button--play"),this.textElement){const e=this.textElement.dataset.textPause;e&&(this.textElement.textContent=e)}}static initialize(){const e=document.querySelectorAll(".play-pause-toggle");return Array.from(e).map(e=>new Ae(e))}}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",()=>{Ae.initialize()}):Ae.initialize();const Ce=e=>{if(e.length>2e3)return e.substring(0,2e3);try{return decodeURI(e)}catch{return e}};(()=>{if(globalThis.location.search){const t=(e=>{const t=(e??"").substring(1).split("&"),s=Object.create(null);let i=0;
3return t.forEach(e=>{if(i>=50)return;const[t,n]=e.split("=");t&&n&&(e=>{if(e.length>100)return!1;const t=e.toLowerCase().trim();return!(["__proto__","constructor","prototype"].includes(t)||t.startsWith("__")||t.includes(".")||t.includes("[")||t.includes("]"))})(t)&&(Object.defineProperty(s,t,{value:Ce(n),writable:!0,enumerable:!0,configurable:!0}),i++)}),s})(String(globalThis.location.search||"").substring(0,5e3)),s=(e=>{const t=e??{};return!!(t.utm_source??t.utm_medium??t.utm_campaign)})(e=t)?{CampaignSource:e?.utm_source,CampaignMedium:e?.utm_medium,CampaignName:e?.utm_campaign}:{};if(Object.keys(s).length){const e=globalThis.digitalData||{};e.page||(e.page={}),e.page.campaign=s,globalThis.digitalData=e}}var e})();class we{static ATTESTATION_LANDING_PAGE_CLASS="attestation--landing-page";static ATTESTATION_LANDING_PAGE_ONETRUST_CLASS="attestation--landing-page-onetrust";static OT_HIDE_CLASS="ot-hide";static OT_ACTIVE_CLASS="active";static ONETRUST_CONSENT_SDK="#onetrust-consent-sdk";static ONETRUST_PC_SDK="#onetrust-pc-sdk";static ONETRUST_PC_CLOSE_BUTTON="#close-pc-btn-handler";static OT_CLOSE_ICON=".ot-close-icon";static OT_CAT_HEADER=".ot-cat-header, .category-header";static OT_DESC_CNTR=".ot-desc-cntr, .description-container";static OT_DESC_CNTR_FOCUSABLE='.ot-desc-cntr[tabindex]:not([tabindex="-1"]), .category-group .ot-sdk-eight[tabindex]:not([tabindex="-1"])';static OT_GRP_DESC=".ot-category-desc";static OT_DESC_CNTR_1ST=".ot-desc-cntr:first-child:not(:has(.ot-category-desc))";static OT_DESC_CNTR_1ST_MB=".ot-abt-tab .ot-desc-cntr";static OT_DESC_CNTR_NTH2=".ot-desc-cntr:nth-child(2), .category-item:first-child .description-container";static OT_CAT_ITEM_NTH2_DESC=".ot-cat-item:nth-child(2) .ot-desc-cntr";static JS_OPEN_COOKIE_BANNER=".js-open-cookie-banner";static OPTANON_TOGGLE_DISPLAY="a.optanon-toggle-display";static EVENT_TOP_HEADER_DROPDOWN_CLOSED="topheader:dropdown:closed";breakpoint=640;debounceDelay=300;afterSDKDelay=0;resizeTimeout=null;wasAboveBreakpoint;lastOpenButton=null;observer=null;constructor(){this.wasAboveBreakpoint=window.innerWidth>this.breakpoint}init(){this.replaceHrefButtonOneTrust(),this.initResponsiveHelper(),this.initEventListeners(),this.setupOptanonWrapper()}setSecondCategoryItemActive(){const e=document.querySelector(we.OT_DESC_CNTR_NTH2);e&&e.classList.add(we.OT_ACTIVE_CLASS)}setupMutationObserver(){const e=document.querySelector(we.ONETRUST_CONSENT_SDK);if(!e)return;new MutationObserver(e=>{const t=e.find(e=>e.target instanceof HTMLElement&&e.target.matches(we.ONETRUST_PC_SDK)&&"attributes"===e.type);if(t){const e=t?.target;e.checkVisibility()||this.handlePopupOneTrustAttestation(!1)}}).observe(e,{childList:!0,subtree:!0,attributes:!0})}setupOptanonWrapper(){const e=()=>{const e=document.documentElement.lang.toLocaleLowerCase().split("-")[0];this.changeLanguage(e)};globalThis.OptanonWrapper=()=>{e(),this.setupMutationObserver(),this.setSecondCategoryItemActive()},document.addEventListener(we.EVENT_TOP_HEADER_DROPDOWN_CLOSED,e),this.getOneTrust()&&(e(),this.setSecondCategoryItemActive())}initEventListeners(){document.addEventListener("click",this.handleClick),document.addEventListener("keydown",this.handleKeydown)}handlePopupOneTrustAttestation(e){const t=document.querySelector(`.${we.ATTESTATION_LANDING_PAGE_ONETRUST_CLASS}`);t&&(e?t.classList.remove(we.ATTESTATION_LANDING_PAGE_CLASS):t.classList.add(we.ATTESTATION_LANDING_PAGE_CLASS))}handleClick=e=>{if(!(e.target instanceof HTMLElement))return;const{target:t}=e,s=t.matches(we.JS_OPEN_COOKIE_BANNER)?t:t.closest(we.JS_OPEN_COOKIE_BANNER);if(s)return this.handlePopupOneTrustAttestation(!0),this.lastOpenButton=s,void this.openCookieBanner();t.matches(we.OT_CLOSE_ICON)?this.handleCloseClick():t.matches(we.OT_CAT_HEADER)?this.handleCategoryHeaderClick(t):this.handleClickOutsideToClose(t)};handleEscapeKey=e=>{if(e.target instanceof HTMLElement){e.target.closest(we.ONETRUST_CONSENT_SDK)&&this.returnFocusToButton()}};handleCloseIconKeydown=e=>{if(!(e.target instanceof HTMLElement))return;if((e.target.matches(we.OT_CLOSE_ICON)?e.target:e.target.closest(we.OT_CLOSE_ICON))&&e.key===I.TAB&&!e.shiftKey){const t=document.querySelector(we.ONETRUST_CONSENT_SDK);if(t){const s=t.querySelector(we.OT_DESC_CNTR_FOCUSABLE);s&&(e.preventDefault(),s.focus())}}};handleKeydown=e=>{if(this.handleCloseIconKeydown(e),e.key===I.ENTER){const{activeElement:e}=document;if(!(e&&e instanceof HTMLElement))return;if(e.matches(we.OT_DESC_CNTR)){const t=e.querySelector(we.OT_CAT_HEADER);t?.click()}}e.key===I.ESC&&this.handleEscapeKey(e)};openCookieBanner(){this.togglePreferenceCenter();const e=document.querySelector(we.ONETRUST_CONSENT_SDK);if(e){const t=e.querySelector(we.OT_CAT_ITEM_NTH2_DESC);t&&t.classList.add(we.OT_ACTIVE_CLASS);const s=e?.querySelector(we.OT_DESC_CNTR_1ST),i=e?.querySelector(we.OT_DESC_CNTR_1ST_MB);s&&s.removeAttribute("tabindex"),i&&i.removeAttribute("tabindex"),this.focusFirstTabDescElement(e)}}focusFirstTabDescElement(e){setTimeout(()=>{const t=e.querySelector(".ot-tab-desc, .category-group");if(t){const e=Array.from(t.querySelectorAll('[tabindex="0"]')).find(e=>null!==e.offsetParent);e&&e.focus({preventScroll:!0})}},this.afterSDKDelay)}handleCloseClick(){this.returnFocusToButton()}returnFocusToButton(){setTimeout(()=>{this.lastOpenButton&&(this.lastOpenButton.focus(),this.lastOpenButton=null)},this.afterSDKDelay)}handleClickOutsideToClose(e){const t=document.querySelector(we.ONETRUST_CONSENT_SDK);if(!t)return;const s=t.querySelector(we.ONETRUST_PC_SDK);if(s&&!s.classList.contains(we.OT_HIDE_CLASS)&&"none"!==s.style.display){const t=s.contains(e),i=e.matches(we.JS_OPEN_COOKIE_BANNER)||null!==e.closest(we.JS_OPEN_COOKIE_BANNER);t||i||(this.manualTriggerClickCloseButton(),this.returnFocusToButton())}}handleCategoryHeaderClick(e){const t=e.closest(we.OT_DESC_CNTR),s=t?.querySelector(we.OT_GRP_DESC);if(t&&s){t.classList.contains(we.OT_ACTIVE_CLASS)?P.slideUp(s,()=>{t.classList.remove(we.OT_ACTIVE_CLASS)}):(t.classList.add(we.OT_ACTIVE_CLASS),P.slideDown(s))}}replaceHrefButtonOneTrust(){document.querySelectorAll(we.OPTANON_TOGGLE_DISPLAY).forEach(e
3=>{const t=e.getAttribute("href");"#"===t?.trim()&&e.setAttribute("href","#!")})}getOneTrust(){return globalThis.OneTrust??globalThis.Optanon??null}togglePreferenceCenter(){const e=this.getOneTrust();e?.ToggleInfoDisplay&&e.ToggleInfoDisplay()}closePreferenceCenter(){const e=this.getOneTrust();e?.Close&&e.Close()}manualTriggerClickCloseButton(){const e=document.querySelector(we.OT_CLOSE_ICON);e&&e.click()}changeLanguage(e){const t=this.getOneTrust();t?.changeLanguage&&t.changeLanguage(e)}initResponsiveHelper(){globalThis.addEventListener("resize",this.handleResize)}checkPreferenceCenterOpen(){const e=document.querySelector(we.ONETRUST_PC_SDK);if(!e)return!1;return"none"!==globalThis.getComputedStyle(e).display&&!e.classList.contains(we.OT_HIDE_CLASS)}async reInitializePreferenceCenter(){this.togglePreferenceCenter(),await new Promise(e=>{setTimeout(e,this.afterSDKDelay)}),this.togglePreferenceCenter()}handleResize=()=>{this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(()=>{const e=window.innerWidth>this.breakpoint;this.wasAboveBreakpoint!==e&&this.checkPreferenceCenterOpen()&&(this.reInitializePreferenceCenter(),this.wasAboveBreakpoint=e)},this.debounceDelay)}}(new we).init();var Ne=s(1236),Ie=s(150);const Re={AUTOPLAY:{delay:1e5,disableOnInteraction:!1},A11Y:{enabled:!0,scrollOnFocus:!1},DEFAULT:{loop:!0,keyboard:{enabled:!1}}}
3,De={swiperWrapper:".swiper-wrapper",swiperSlide:".swiper-slide",swiperNavigation:".swiper-nav__navigation",swiperNavButtonNext:".swiper-nav__button--next",swiperNavButtonPrev:".swiper-nav__button--prev",swiperNavPagination:".swiper-nav__pagination",swiperPaginationBullet:".swiper-pagination-bullet",swiperNavPaginationDesktop:".swiper-nav__pagination--desktop",swiperNavPaginationMobile:".swiper-nav__pagination--mobile"},Me={swiperSlide:"swiper-slide",animationBottom:"fade-in-up",swiperPaginationBulletActive:"swiper-pagination-bullet-active",fadeOutClasses:["opacity-20","pointer-events-none"],sliderLoop:"cmp-slider--loop",sliderAutoscroll:"cmp-slider--auto-scroll",setAnimation:"set-animation",hidden:"hidden"},Oe="custom-scroll",xe="scroll-container",Pe="scroll-y",ke="--slider-ampersand-description-max-height",He=".base-slider",Be=".cmp-slider--ampersand",Fe=".cmp-slider--content-tile",qe=".cmp-slider--contact-information-tile",$e=".cmp-slider--images",ze=".cmp-ampersand-box",Ue=".cmp-slider",We=".cmp-slider-ampersand__inner",Ve=".swiper",Ge=".header-bottom",Ke=".ampersand-box__desc",Ye=".ampersand-box__desc-inner",je=".ampersand-box__content",Xe=".ampersand-box__cta",Qe={breakpoints:{tablet:600,desktop:960},slidesPerView:{mobile:1,tablet:2,desktop:3}},Ze=100,Je=`${De.swiperNavPaginationDesktop} ${De.swiperPaginationBullet}`,et={DEFAULT:["opacity-20","pointer-events-none"],CONTACT_INFO:["opacity-50","pointer-events-none"],IMAGES:["opacity-30","pointer-events-none"]},tt={ALL:["opacity-20","opacity-30","opacity-50","pointer-events-none"]},st=1280,it=Be,nt=.5,at=.1;class rt{static DEFAULT_SELECTOR=He;element;selectorClass;swiper=null;swiperContainer=null;resizeTimeout=null;currentActiveSlideIndex=0;currentBreakpoint=null;temporaryTabPanel=null;accessibilityId=null;cloneCount=0;originalSlidesCount=0;originalPaginationAriaLabel=null;imagesLoaded=!1;hasCustomSlidesPerView={desktop:!1,tablet:!1,mobile:!1};swiperConfig;classes;selectors;dom;constructor(e,t=rt.DEFAULT_SELECTOR){if(!e)throw new Error("Element is required");this.element=e,this.selectorClass=t,this.swiperConfig={...Qe,slidesPerView:{...Qe.slidesPerView}},this.classes={...Me},this.selectors={...De},this.dom={swiper:this.element.querySelector(Ve),swiperWrapper:this.element.querySelector(this.selectors.swiperWrapper),swiperSlide:this.element.querySelectorAll(this.selectors.swiperSlide),animationElements:this.element.querySelectorAll(`.${this.classes.setAnimation}`),cmpSlider:this.element.querySelector(Ue),swiperNavigation:this.element.querySelector(this.selectors.swiperNavigation)},this.currentBreakpoint=this.getCurrentBreakpoint(),this.handleResize=this.handleResize.bind(this),this.parseSliderItemsAttribute(),this.configureSlider(),this.init()}parseSliderItemsAttribute(){const e=this.dom.cmpSlider??this.element,t=e.dataset.sliderItemsDesktop,s=e.dataset.sliderItemsTablet,i=e.dataset.sliderItemsMobile;if(t){const e=Number.parseInt(t.trim());!Number.isNaN(e)&&e>0&&(this.swiperConfig.slidesPerView.desktop=e,this.hasCustomSlidesPerView.desktop=!0)}if(s){const e=Number.parseInt(s.trim());!Number.isNaN(e)&&e>0&&(this.swiperConfig.slidesPerView.tablet=e,this.hasCustomSlidesPerView.tablet=!0)}if(i){const e=Number.parseInt(i.trim());!Number.isNaN(e)&&e>0&&(this.swiperConfig.slidesPerView.mobile=e,this.hasCustomSlidesPerView.mobile=!0)}}configureSlider(){}init(){try{const e=this.getTotalItems();e>=this.getMinItemsForSwiper()?this.initializeSwiper():(this.hideNavigation(),this.setupAnimation()),this.addResizeListener()}catch(e){console.error("Failed to initialize component:",e)}}initializeSwiper(){const e=this.makeTabPanelTemporarilyVisible();this.showNavigation(),this.removeAnimationClass(),this.initSwiper(),e&&this.restoreTabPanelHiddenState(),this.hasLoopClass()&&this.addScrollListener()}getTotalItems(){if(!this.dom.swiperWrapper)return 0;if(this.originalSlidesCount>0)return this.originalSlidesCount;return Array.from(this.dom.swiperWrapper.children).filter(e=>!e.classList.contains("clone-slide")).length}getMinItemsForSwiper(){return this.getCurrentSlidesPerView()+1}hideNavigation(){this.dom.swiperNavigation?.classList.add(this.classes.hidden)}
3showNavigation(){this.dom.swiperNavigation?.classList.remove(this.classes.hidden)}hasLoopClass(){return this.dom.cmpSlider?.classList.contains(this.classes.sliderLoop)??!1}hasAutoscrollClass(){return this.dom.cmpSlider?.classList.contains(this.classes.sliderAutoscroll)??!1}removeAnimationClass(){this.dom.animationElements.forEach(e=>{e.classList.remove(this.classes.setAnimation)})}disableContentTileTransitions(){this.dom.swiperSlide.forEach(e=>{e.style.transition="none"}),this.removeContentTileStylesAfterDelay()}removeContentTileStylesAfterDelay(e=10){setTimeout(()=>{this.dom.swiperSlide.forEach(e=>{e.style.transition=""})},e)}getCurrentSlidesPerView(){const e=window.innerWidth,{breakpoints:t,slidesPerView:s}=this.swiperConfig;let i=s.mobile;return e>=t.desktop?i=s.desktop:e>=t.tablet&&(i=s.tablet),i}getCurrentBreakpoint(){const e=window.innerWidth,{breakpoints:t}=this.swiperConfig;return e>=t.desktop?"desktop":e>=t.tablet?"tablet":"mobile"}renderPaginationBullet(e,t){const s=this.cloneCount;if(e<s||e>=s+this.originalSlidesCount)return"";const i=e-s;return`\n    <button class="${t}" data-original-index="${i}">
3\n      <span class="sr-only">Go to slide ${i+1}</span>\n    </button>`}handleSwiperInit(){setTimeout(()=>{this.updatePaginationBullets(),this.setupPaginationClickHandlers(),this.restorePaginationAriaLabel(),this.fadeOutSlides&&this.fadeOutSlides()},100)}getAccessibilityData(){const e=this.element.querySelector(this.selectors.swiperNavButtonPrev),t=this.element.querySelector(this.selectors.swiperNavButtonNext);return{prevSlideMessage:(e instanceof HTMLElement?e.getAttribute("aria-label"):null)??"",nextSlideMessage:(t instanceof HTMLElement?t.getAttribute("aria-label"):null)??""}}getSwiperConfig(){const e=this.hasLoopClass(),t=this.getAccessibilityData(),s={modules:[Ie.Vx,Ie.dK,Ie.Ij,Ie.s3,Ie.Jq],...Re.DEFAULT,loop:!1,speed:500,navigation:{nextEl:this.element.querySelector(this.selectors.swiperNavButtonNext),prevEl:this.element.querySelector(this.selectors.swiperNavButtonPrev)},pagination:{el:this.element.querySelector(this.selectors.swiperNavPagination),clickable:!0},slidesPerView:this.swiperConfig.slidesPerView.mobile,breakpoints:{[this.swiperConfig.breakpoints.tablet]:{slidesPerView:this.swiperConfig.slidesPerView.tablet},[this.swiperConfig.breakpoints.desktop]:{slidesPerView:this.swiperConfig.slidesPerView.desktop}},a11y:{...Re.A11Y,prevSlideMessage:t.prevSlideMessage,nextSlideMessage:t.nextSlideMessage},on:{init:()=>{requestAnimationFrame(()=>{this.fadeOutSlides&&this.fadeOutSlides()})},slideChange:()=>{this.fadeOutSlides&&this.fadeOutSlides()},breakpoint:()=>{this.fadeOutSlides&&this.fadeOutSlides()}}};if(e){const e=Math.max(0,Math.min(this.currentActiveSlideIndex,this.originalSlidesCount-1)),i=this.cloneCount+e;return{...s,initialSlide:i,pagination:{...s.pagination,renderBullet:this.renderPaginationBullet.bind(this)},a11y:{...Re.A11Y,prevSlideMessage:t.prevSlideMessage,nextSlideMessage:t.nextSlideMessage},on:{init:this.handleSwiperInit.bind(this),slideChange:()=>{this.updatePaginationBullets(),this.fadeOutSlides&&this.fadeOutSlides()},breakpoint:()=>{this.fadeOutSlides&&this.fadeOutSlides()}}}}return s}initSwiper(){const e=this.hasLoopClass();if(this.storePaginationAriaLabel(),e)this.cloneSlides();else{const e=this.element.querySelectorAll(this.selectors.swiperSlide);this.originalSlidesCount=e.length,this.cloneCount=0}this.dom.swiperSlide=this.element.querySelectorAll(this.selectors.swiperSlide),this.dom.swiper=this.element.querySelector(Ve);const t=this.getSwiperConfig();this.dom.swiper&&(this.swiper=new Ne.A(this.dom.swiper,t),this.accessibilityId=_e.register(this.swiper),e&&this.customControl(this.swiper),this.setupAnimation(),requestAnimationFrame(()=>{this.restorePaginationAriaLabel(),this.swiper&&!this.swiper.destroyed&&this.swiper.emit("slideChange")}))}storePaginationAriaLabel(){const e=this.element.querySelector(this.selectors.swiperNavPagination);e instanceof HTMLElement&&(this.originalPaginationAriaLabel=e.getAttribute("aria-label"))}restorePaginationAriaLabel(){if(this.originalPaginationAriaLabel){const e=this.element.querySelector(this.selectors.swiperNavPagination);e instanceof HTMLElement&&e.setAttribute("aria-label",this.originalPaginationAriaLabel)}}setupAnimation(){this.element.classList.add("animation"),setTimeout(()=>{k.init()},150)}addResizeListener(){globalThis.addEventListener("resize",this.handleResize)}addScrollListener(){globalThis.addEventListener("scroll",this.handleScroll.bind(this))}addEventListeners(){this.addResizeListener(),this.addScrollListener()}handleScroll(){if(this.imagesLoaded)return;const e=this.element.getBoundingClientRect(),t=window.innerHeight;e.top<t&&e.bottom>0&&this.slideCloneLoadImages()}handleResize(){this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(()=>{this.handleBreakpointChange()},100)}storeCurrentActiveSlideIndex(){if(this.swiper&&!this.swiper.destroyed){const{activeIndex:e}=this.swiper,t=this.cloneCount;e>=t&&e<t+this.originalSlidesCount?this.currentActiveSlideIndex=e-t:this.currentActiveSlideIndex=e<t?(this.originalSlidesCount-t+e)%this.originalSlidesCount:(e-t-this.originalSlidesCount)%this.originalSlidesCount}}handleBreakpointChange(){const e=this.getCurrentBreakpoint();if(this.currentBreakpoint===e)return;this.currentBreakpoint=e;const t=this.swiper&&!this.swiper.destroyed,s=this.getTotalItems()>=this.getMinItemsForSwiper();t?s?this.reinitializeSwiper():(this.destroySwiper(),this.clearCloneSlides(),this.clearFadeClasses(),this.hideNavigation()):s&&this.initializeSwiper()}reinitializeSwiper(){this.storeCurrentActiveSlideIndex();const e=this.makeTabPanelTemporarilyVisible();this.destroySwiper(),this.clearCloneSlides(),this.clearFadeClasses(),this.imagesLoaded=!1,this.initSwiper(),e&&this.restoreTabPanelHiddenState()}slideCloneLoadImages(){if(this.imagesLoaded)return;
3this.element.querySelectorAll(".clone-slide").forEach(e=>{this.processCloneSlideImages(e)}),this.imagesLoaded=!0}processCloneSlideImages(e){e.querySelectorAll(".cmp-image__image").forEach(e=>{this.processImageElement(e)})}processImageElement(e){const t=e.closest(".cmp-image");if(!(t instanceof HTMLElement))return;const s=t.dataset.imagesrc;s&&(this.loadImageFromDataAsset(e,s),e.classList.remove("cmp-image__image--is-loading"))}loadImageFromDataAsset(e,t){if(!(e instanceof HTMLImageElement))return;const s=e;s.src=t,s.hasAttribute("style")&&s.removeAttribute("style")}clearCloneSlides(){const e=this.element.querySelector(this.selectors.swiperWrapper);if(e instanceof HTMLElement){e.querySelectorAll(".clone-slide").forEach(e=>e.remove()),this.dom.swiperWrapper=e,this.cloneCount=0,this.originalSlidesCount=0}}clearFadeClasses(){const e=this.element.querySelectorAll(this.selectors.swiperSlide);e&&e.length>0&&e.forEach(e=>{e.classList.remove(...tt.ALL)})}destroySwiper(){this.accessibilityId&&(_e.unregister(this.accessibilityId),this.accessibilityId=null),this.swiper&&!this.swiper.destroyed&&(this.swiper.destroy(!0,!0),this.swiper=null)}cloneSlides(){const e=this.element.querySelectorAll(this.selectors.swiperSlide);this.originalSlidesCount=e.length;const t=this.calculateSlidesToClone();this.cloneCount=t,this.cloneSlidesAtStart(e,t),this.cloneSlidesAtEnd(e,t)}calculateSlidesToClone(){const e=this.getTotalItems();return"desktop"===this.getCurrentBreakpoint()?2*e:e}cloneSlidesAtStart(e,t){for(let s=t-1;s>=0;s--){const i=this.getSlideIndexFromEnd(s),n=this.createSlideClone(e[i],"clone-before-"+(t-s));this.insertSlideAtStart(n,e[0])}}cloneSlidesAtEnd(e,t){for(let s=0;s<t;s++){const t=s%this.originalSlidesCount,i=this.createSlideClone(e[t],`clone-after-${s+1}`);this.appendSlideAtEnd(i)}}getSlideIndexFromEnd(e){return(this.originalSlidesCount-1-e%this.originalSlidesCount)%this.originalSlidesCount}createSlideClone(e,t){if(!e)return null;const s=e.cloneNode(!0);return s instanceof HTMLElement?(s.classList.add("clone-slide",t),s):null}insertSlideAtStart(e,t){e&&this.dom.swiperWrapper&&this.dom.swiperWrapper.insertBefore(e,t)}appendSlideAtEnd(e){e&&this.dom.swiperWrapper&&this.dom.swiperWrapper.appendChild(e)}customControl(e){e.on("slideChangeTransitionEnd",()=>{if(e.activeIndex<this.cloneCount){const t=(this.originalSlidesCount-this.cloneCount+e.activeIndex)%this.originalSlidesCount,s=this.cloneCount+t;this.disableContentTileTransitions(),e.slideTo(s,0,!1)}if(e.activeIndex>=this.cloneCount+this.originalSlidesCount){const t=e.activeIndex-(this.cloneCount+this.originalSlidesCount),s=this.cloneCount+t;this.disableContentTileTransitions(),e.slideTo(s,0,!1)}})}updatePaginationBullets(){if(!this.swiper)return;const e=this.element.querySelectorAll(this.selectors.swiperPaginationBullet),{activeIndex:t}=this.swiper,s=this.cloneCount;e.forEach(e=>{e.classList.remove(this.classes.swiperPaginationBulletActive);let i=-1;if(i=t>=s&&t<s+this.originalSlidesCount?t-s:t<s?(this.originalSlidesCount-s+t)%this.originalSlidesCount:(t-s-this.originalSlidesCount)%this.originalSlidesCount,e instanceof HTMLElement){Number.parseInt(e.dataset.originalIndex??"-1")===i&&e.classList.add(this.classes.swiperPaginationBulletActive)}}),this.updatePaginationBulletSlideChangeTransitionStart()}updatePaginationBulletSlideChangeTransitionStart(){this.accessibilityId&&requestAnimationFrame(()=>{this.swiper&&!this.swiper.destroyed&&this.swiper.emit("slideChangeTransitionStart")})}setupPaginationClickHandlers(){this.element.querySelectorAll(this.selectors.swiperPaginationBullet).forEach(e=>{e.addEventListener("click",t=>{if(t.preventDefault(),t.stopPropagation(),e instanceof HTMLElement){const t=Number.parseInt(e.dataset.originalIndex??"-1");if(t>=0&&t<this.originalSlidesCount&&this.swiper){const e=t+this.cloneCount;this.disableContentTileTransitions(),this.swiper.slideTo(e,500,!0)}}})})}makeTabPanelTemporarilyVisible(){const e=this.element.closest(".cmp-tabs__tabpanel");return!!(e instanceof HTMLElement&&e.classList.contains(this.classes.hidden))&&(e.classList.remove(this.classes.hidden),e.classList.add("hidden-for-swiper-init"),this.temporaryTabPanel=e,!0)}restoreTabPanelHiddenState(){this.temporaryTabPanel&&requestAnimationFrame(()=>{requestAnimationFrame(()=>{this.temporaryTabPanel&&(this.temporaryTabPanel.classList.remove("hidden-for-swiper-init"),this.temporaryTabPanel.classList.add(this.classes.hidden),this.temporaryTabPanel=null)})})}static initialize(){const e=document.querySelectorAll(rt.DEFAULT_SELECTOR);return Array.from(e).map(e=>new rt(e))}}function ot(e,t,s=["opacity-20","pointer-events-none"],i={}){const{fadeOutPrev:n=!0}=i,a=t??e.swiper;if(!a)return;const r=e.dom?.swiperSlide??e.element.querySelectorAll(e.selectors?.swiperSlide??".swiper-slide");if(!r||0===r.length)return;const{params:{slidesPerView:o},activeIndex:l}=a,c=l,d=l+o;r.forEach((e,t)=>{const i=t<c,a=t>=d;t>=c&&t<d?e.classList.remove(...s):a||i&&n?e.classList.add(...s):i&&!n&&e.classList.remove(...s)})}function lt(e,t){const s=document.querySelectorAll(e);if(!s.length)return;if(Array.from(s).some(e=>function(e){if(!e)return!1;const t=e.getBoundingClientRect(),s=window.innerHeight??document.documentElement.clientHeight;if(!(t.width>0&&t.height>0))return!1;const i=t.top>=0&&t.top<s,n=t.bottom<0;return i||n}(e)))return void t();let i=0,n=!1;const a=()=>{n||(n=!0,requestAnimationFrame(()=>{i++,i>2&&(t(),globalThis.removeEventListener("scroll",a)),n=!1}))};globalThis.addEventListener("scroll",a)}class ct extends rt{static SELECTORS={COMPONENT_SLIDER_CONTENT_TILE:Fe};constructor(e){super(e,ct.SELECTORS.COMPONENT_SLIDER_CONTENT_TILE)}fadeOutSlides(e){ot(this,e??this.swiper??void 0,et.DEFAULT,{fadeOutPrev:!0})}static initialize(){const e=document.querySelectorAll(ct.SELECTORS.COMPONENT_SLIDER_CONTENT_TILE);return e.length?Array.from(e).map(e=>new ct(e)):[]}}const dt=()=>{lt(ct.SELECTORS.COMPONENT_SLIDER_CONTENT_TILE,ct.initialize)};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",dt):dt();class ht extends rt{static SELECTORS={COMPONENT_SLIDER_CONTACT_INFORMATION_TILE:qe};constructor(e){super(e,ht.SELECTORS.COMPONENT_SLIDER_CONTACT_INFORMATION_TILE)}fadeOutSlides(e){ot(this,e??this.swiper??void 0,et.CONTACT_INFO,{fadeOutPrev:!1})}static initialize(){const e=document.querySelectorAll(ht.SELECTORS.COMPONENT_SLIDER_CONTACT_INFORMATION_TILE);return e.length?Array.from(e).map(e=>new ht(e)):[]}}const ut=()=>{lt(ht.SELECTORS.COMPONENT_SLIDER_CONTACT_INFORMATION_TILE,ht.initialize)};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",ut):ut();class mt extends rt{static SELECTORS={COMPONENT_SLIDER_IMAGES:$e};autoScrollDirection=1;autoScrollSpeedDesktop=1.2;autoScrollSpeedMobile=.9;autoScrollAnimation=null;isPaused=!1;isAutoScrollEnabled=!1;playPauseToggle=null;constructor(e){super(e,mt.SELECTORS.COMPONENT_SLIDER_IMAGES),this.classes.fadeOutClasses=[...et.IMAGES],this.hasAutoscrollClass()&&this.hasLoopClass()&&(this.isAutoScrollEnabled=!0,this.setupPlayPauseToggle(),this.startAutoScroll(),this.setupAutoScrollEvents(),setTimeout(()=>{this.setSwiperSpeed(0)},100))}configureSlider(){this.hasCustomSlidesPerView.desktop||(this.swiperConfig.slidesPerView.desktop=4),this.hasCustomSlidesPerView.tablet||(this.swiperConfig.slidesPerView.tablet=3),this.hasCustomSlidesPerView.mobile||(this.swiperConfig.slidesPerView.mobile=2)}startAutoScroll(){this.autoScrollAnimation&&cancelAnimationFrame(this.autoScrollAnimation);const e=()=>{if(!this.isPaused&&this.swiper&&!this.swiper.destroyed){const e=this.swiper.getTranslate(),t=this.swiper.wrapperEl.querySelectorAll(".swiper-slide"),s=t[0]instanceof HTMLElement?t[0].offsetWidth:300,i=this.getCloneCount(),n=-s*i,a=-s*(i+this.getOriginalSlidesCount()),r=e-this.getAutoScrollSpeed()*this.autoScrollDirection,o=r<=a?n:r;this.swiper.setTranslate(o),this.swiper.updateProgress()}this.autoScrollAnimation=requestAnimationFrame(e)};this.autoScrollAnimation=requestAnimationFrame(e)}getCloneCount(){return this.cloneCount??0}getOriginalSlidesCount(){return this.originalSlidesCount??0}setupPlayPauseToggle(){this.playPauseToggle=new Ae(this.element,{onToggle:e=>{this.isPaused=e}})}setSwiperSpeed(e){if(this.swiper)try{this.swiper.params.speed=e,this.swiper.speed=e}catch(e){console.error("🔧 Error setting Swiper speed:",e)}else console.warn("🔧 Cannot set Swiper speed: Swiper not initialized")}setupAutoScrollEvents(){if(!this.swiper)return;const e=this.swiper.el;e.addEventListener("mouseenter",()=>{this.isPaused=!0,this.playPauseToggle&&(this.playPauseToggle.paused=!0)}),e.addEventListener("mouseleave",()=>{this.isPaused=!1,this.playPauseToggle&&(this.playPauseToggle.paused=!1)}),e.addEventListener("touchstart",()=>{this.isPaused=!0,this.playPauseToggle&&(this.playPauseToggle.paused=!0)}),e.addEventListener("touchend",()=>{setTimeout(()=>{this.isPaused=!1,this.playPauseToggle&&(this.playPauseToggle.paused=!1)},1e3)}),document.addEventListener("visibilitychange",()=>{this.isPaused=document.hidden,this.playPauseToggle&&(this.playPauseToggle.paused=document.hidden)})}getAutoScrollSpeed(){const e=window.innerWidth,{breakpoints:t}=this.swiperConfig;return e>=t.desktop?this.autoScrollSpeedDesktop:this.autoScrollSpeedMobile}fadeOutSlides(e){this.isAutoScrollEnabled||ot(this,e??this.swiper??void 0,this.classes.fadeOutClasses)}
3static initialize(){const e=document.querySelectorAll(mt.SELECTORS.COMPONENT_SLIDER_IMAGES);return e.length?Array.from(e).map(e=>new mt(e)):[]}}const pt=()=>{lt(mt.SELECTORS.COMPONENT_SLIDER_IMAGES,mt.initialize)};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",pt):pt();class gt extends rt{static SELECTORS={COMPONENT_SLIDER_AMPERSAND:Be,AMPERSAND_BOX:ze,WRAPPER:Ue};swiperElement=null;constructor(e){if(!e)throw new Error("AmpersandSlider: Element is required");super(e,gt.SELECTORS.COMPONENT_SLIDER_AMPERSAND),this.handleResize=this.handleResize.bind(this),globalThis.addEventListener("resize",this.handleResize)}configureSlider(){this.swiperConfig.slidesPerView={mobile:1,tablet:1,desktop:1}}init(){try{window.innerWidth<1280&&super.init()}catch(e){console.error("AmpersandSlider: Failed to initialize",e)}}handleResize(){this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(()=>{this.handleBreakpointChange()},100)}handleBreakpointChange(){const e=window.innerWidth>=1280,t=this.swiper&&!this.swiper.destroyed;e&&t?this.destroySwiper():e||t||this.initSwiper()}static initialize(){const e=document.querySelectorAll(gt.SELECTORS.COMPONENT_SLIDER_AMPERSAND),t=[];return e.length&&e.forEach(e=>{try{const s=new gt(e);t.push(s)}catch(e){console.error("AmpersandSlider: Failed to initialize slider",e)}}),t}}const ft=()=>{lt(gt.SELECTORS.COMPONENT_SLIDER_AMPERSAND,gt.initialize)};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",ft):ft();class Et{static SELECTOR=it;static MIN_DESKTOP_WIDTH=st;element;sliderWrapper;sliderContainer;paginationBullets;slides;currentSlide=0;totalSlides;headerHeight=0;scrollHandler;resizeHandler;isDesktopSliderEnabled=!1;isSticky=!1;isClickingBullet=!1;isUsingKeyboard=!1;scrollEndHandler;scrollCheckTimer;isScrollEndListenerActive=!1;bufferZone=Ze;keyboardHandler;resizeTimeout;savedHeight=null;beforePrintHandler;afterPrintHandler;constructor(e){if(!e)throw new Error("SliderAmpersandDesktop: Element is required");if(!this.isValidElement(e))throw new Error("SliderAmpersandDesktop: Invalid element type, must be HTMLElement");if(this.element=e,this.sliderWrapper=this.element.querySelector(Ue),this.sliderContainer=this.element.querySelector(We),this.paginationBullets=this.element.querySelectorAll(Je),this.slides=this.element.querySelectorAll(ze),this.totalSlides=this.slides.length,!this.hasRequiredElements())throw new Error("SliderAmpersandDesktop: Required slider elements not found");this.setupResizeListener()}init(){if(!(window.innerWidth<Et.MIN_DESKTOP_WIDTH))try{this.initializeComponent()}catch(e){throw console.error("SliderAmpersandDesktop: Error initializing component:",e),e}}initializeComponent(){this.totalSlides<2||(this.generatePaginationBullets(),this.updateHeaderHeight(),this.updateSliderHeight(),this.isDesktopSliderEnabled=!0,this.handleScrollEvent(),this.setupScrollListener(),this.setupBulletClickHandlers(),this.setupKeyboardNavigation(),this.setupAmpersandBoxTabNavigation(),this.setupPrintListeners())}generatePaginationBullets(){const e=this.element.querySelectorAll(ze).length;if(0===e)return void console.warn("SliderAmpersandDesktop: No ampersand boxes found for pagination generation");const t=this.element.querySelector(De.swiperNavPaginationDesktop);if(t){t.innerHTML="";for(let s=0;s<e;s++){const e=document.createElement("button"),i="swiper-pagination-bullet";e.className=0===s?`${i} swiper-pagination-bullet-active`:i,e.dataset.originalIndex=s.toString(),0!==s&&e.setAttribute("tabindex","-1"),e.setAttribute("aria-label",`Go to slide ${s+1}`);const n=document.createElement("span");n.className="swiper-pagination-progress",e.appendChild(n),t.appendChild(e)}this.paginationBullets=this.element.querySelectorAll(Je)}}setupScrollListener(){let e=!1;this.scrollHandler=()=>{e||(requestAnimationFrame(()=>{this.handleScrollEvent(),e=!1}),e=!0)},globalThis.addEventListener("scroll",this.scrollHandler,{passive:!0})}setupScrollEndListener(){this.isScrollEndListenerActive||(this.scrollEndHandler=()=>{const e=window.scrollY;clearTimeout(this.scrollCheckTimer),this.scrollCheckTimer=globalThis.setTimeout(()=>{Math.abs(window.scrollY-e)<1?(this.isClickingBullet&&(this.isClickingBullet=!1),this.isUsingKeyboard&&(this.isUsingKeyboard=!1)):this.scrollEndHandler?.()},100)},globalThis.addEventListener("scrollend",this.scrollEndHandler),this.isScrollEndListenerActive=!0)}updateHeaderHeight(){const e=document.querySelector(Ge);e instanceof HTMLElement&&(this.headerHeight=e.offsetHeight)}setupResizeListener(){this.resizeHandler=()=>{clearTimeout(this.resizeTimeout),this.resizeTimeout=globalThis.setTimeout(()=>{this.updateHeaderHeight(),this.handleBreakpointChange(),this.cleanupScrollWrappers()},100)},globalThis.addEventListener("resize",this.resizeHandler),globalThis.addEventListener("orientationchange",this.resizeHandler)}handleBreakpointChange(){window.innerWidth<Et.MIN_DESKTOP_WIDTH?this.cleanupDesktopStyles():this.isDesktopSliderEnabled?this.updateSliderHeight():this.initializeComponent()}cleanupDesktopStyles(){this.element&&this.element.removeAttribute("style"),this.sliderContainer&&this.sliderContainer.removeAttribute("style"),this.scrollHandler&&globalThis.removeEventListener("scroll",this.scrollHandler),this.resizeHandler&&(globalThis.removeEventListener("resize",this.resizeHandler),globalThis.removeEventListener("orientationchange",this.resizeHandler)),this.keyboardHandler&&document.removeEventListener("keydown",this.keyboardHandler),this.removeScrollEndListener(),this.removePrintListeners(),this.isDesktopSliderEnabled=!1}handleScrollEvent(){if(!this.element||!this.isDesktopSliderEnabled)return;const e=this.element.getBoundingClientRect(),t=e.top,s=e.height,i=window.innerHeight-this.headerHeight;let n=0,a=!1;const r=t<=this.headerHeight+this.bufferZone,o=t+s>this.headerHeight-this.bufferZone,l=t>this.headerHeight+this.bufferZone*(this.totalSlides-1),c=t<-2*this.bufferZone,d=r&&o&&!(l||c);if(t<=this.headerHeight&&Math.abs(t-this.headerHeight)<s-i){const e=this.headerHeight-t,r=(s-i)/(this.totalSlides-1);n=Math.min(e/r,this.totalSlides-1),n=Math.round(1e3*n)/1e3,a=!0}else t<this.headerHeight?(n=this.totalSlides-1,a=d):a=d;this.handleStickyState(a);const h=this.calculateSlidePosition(n),u=Math.floor(h),m=Math.max(0,Math.min(this.totalSlides-1,Math.round(u)));m!==this.currentSlide&&(this.currentSlide=m,this.updateActiveBullet(this.currentSlide)),this.updateSliderTransform(h),this.updateProgressBar(h),this.wrapLongDescriptions()}wrapLongDescriptions(){if(!this.isSticky||!this.sliderWrapper)return;let e=!1;this.sliderWrapper.querySelectorAll(Ye).forEach(t=>{if(!(t instanceof HTMLElement))return;const s=t.closest(je);s&&s instanceof HTMLElement&&this.shouldWrapDescription(s,t)&&(this.wrapDescriptionWithScroll(s,t),e=!0)}),e&&this.refreshCustomScroll()}cleanupScrollWrappers(){if(!this.sliderWrapper)return;
3this.sliderWrapper.querySelectorAll(Ye).forEach(e=>{if(!(e instanceof HTMLElement))return;const t=e.closest(je);if(!(t&&t instanceof HTMLElement))return;t.getBoundingClientRect().bottom<=window.innerHeight&&this.shouldUnwrapDescription(e)?this.unwrapDescriptionFromScroll(e):this.shouldUnwrapDescription(e)&&this.setScrollContainerMaxHeight(t,e)})}shouldWrapDescription(e,t){const s=e.getBoundingClientRect().bottom>window.innerHeight,i=t.parentElement?.classList.contains(xe);return s&&!i}shouldUnwrapDescription(e){return e.parentElement?.classList.contains(xe)??!1}wrapDescriptionWithScroll(e,t){const s=document.createElement("div");s.className=Oe;const i=document.createElement("div");i.className=`${xe} ${Pe}`,i.setAttribute("tabindex","-1"),this.setScrollContainerMaxHeight(e,t),s.appendChild(i);t.parentElement&&(t.before(s),i.appendChild(t))}setScrollContainerMaxHeight(e,t){const s=e.getBoundingClientRect(),i=e.querySelector(Xe),n=i instanceof HTMLElement?i.offsetHeight:0,a=window.innerHeight-s.top-n;t.style.setProperty(ke,`${a}px`)}unwrapDescriptionFromScroll(e){const t=e.parentElement,s=t?.parentElement;if(s?.classList.contains(Oe)){const t=e.closest(Ke);t&&t.appendChild(e),s.remove(),e.style.removeProperty(ke)}}refreshCustomScroll(){requestAnimationFrame(()=>{B.refresh()})}calculateSlidePosition(e){let t=this.totalSlides>1?e:0;const s=this.getSnapTolerance();if(null!==s){const e=Math.round(t);Math.abs(t-e)<s&&(t=e)}return t}getSnapTolerance(){return this.isUsingKeyboard?nt:this.isClickingBullet?at:null}updateSliderTransform(e){if(!this.sliderContainer||!this.isDesktopSliderEnabled)return;const t=-100*Math.max(0,Math.min(this.totalSlides-1,Math.round(100*e)/100));this.sliderContainer.style.transform=`translateX(${t}%)`}updateSliderHeight(){if(!this.element)return;const e=(window.innerHeight-this.headerHeight)*this.totalSlides;this.element.style.height=`${e}px`}setupBulletClickHandlers(){this.paginationBullets.forEach((e,t)=>{e.addEventListener("click",()=>{this.isClickingBullet=!0,this.updateActiveBullet(t,!0),this.updateProgressBar(t,!0),this.goToSlide(t)})})}setupKeyboardNavigation(){this.keyboardHandler=e=>{this.isUsingKeyboard=!0;const{activeElement:t}=document;t instanceof HTMLElement&&t.classList.contains("swiper-pagination-bullet")&&this.handleKeyboardNavigation(e)},document.addEventListener("keydown",this.keyboardHandler)}handleKeyboardNavigation(e){const{key:t}=e;if(t!==I.ARROW_LEFT&&t!==I.ARROW_RIGHT)return;e.preventDefault();const s=this.getCurrentFocusedBulletIndex();if(-1===s)return;let i;i=t===I.ARROW_LEFT?0===s?this.totalSlides-1:s-1:s===this.totalSlides-1?0:s+1,this.focusBullet(i),this.goToSlide(i)}getCurrentFocusedBulletIndex(){const{activeElement:e}=document;if(!(e instanceof HTMLElement))return-1;for(let t=0;t<this.paginationBullets.length;t++)if(this.paginationBullets[t]===e)return t;return-1}focusBullet(e){e>=0&&e<this.paginationBullets.length&&this.paginationBullets[e].focus()}updateActiveBullet(e,t=!1){if(!this.isClickingBullet||t){if(this.paginationBullets.forEach(e=>{e.classList.remove("swiper-pagination-bullet-active"),e.setAttribute("tabindex","-1");const t=e.querySelector(".swiper-pagination-progress");t&&t.removeAttribute("style")}),this.paginationBullets[e]){const t=this.paginationBullets[e];t.classList.add("swiper-pagination-bullet-active"),t.removeAttribute("tabindex")}this.updateSlidesTabIndex(e)}}updateSlidesTabIndex(e){this.slides.forEach((t,s)=>{const i=t.querySelectorAll("a[href], button:not([disabled]), input:not([disabled]), [tabindex]");s===e?i.forEach(e=>{"-1"===e.getAttribute("tabindex")&&e.removeAttribute("tabindex")}):i.forEach(e=>{e.setAttribute("tabindex","-1")})})}updateProgressBar(e,t=!1){if(this.isClickingBullet&&!t)return;const s=Math.min(Math.floor(e),this.totalSlides-1),i=this.paginationBullets[s];if(i){const t=i.querySelector(".swiper-pagination-progress");if(t instanceof HTMLElement){let i;i=e>=this.totalSlides-1?1:e-s;const n=Math.round(100*Math.max(0,Math.min(100,Math.round(100*i))))/100;t.style.width=`${n}%`}}}goToSlide(e){if(!this.element)return;const t=this.element.getBoundingClientRect(),s=t.top+window.scrollY,i=window.innerHeight-this.headerHeight,n=e,a=t.height-i,r=n*(this.totalSlides>1?a/(this.totalSlides-1):0),o=s-this.headerHeight+r;window.scrollTo({top:o,behavior:"smooth"})}handleStickyState(e){e!==this.isSticky&&(this.isSticky=e,this.isSticky?this.setupScrollEndListener():this.removeScrollEndListener())}removeScrollEndListener(){this.isScrollEndListenerActive&&this.scrollEndHandler&&(globalThis.removeEventListener("scrollend",this.scrollEndHandler),clearTimeout(this.scrollCheckTimer),this.isScrollEndListenerActive=!1,this.isClickingBullet=!1,this.isUsingKeyboard=!1)}
3setupAmpersandBoxTabNavigation(){if(!this.slides.length)return;const e=e=>{if(!this.shouldHandleTabNavigation(e))return;const t=this.getCurrentSlideFocusableElements();if(!t.length)return;const{activeElement:s}=document;if(!(s instanceof HTMLElement))return;const{shiftKey:i}=e;i?this.handleShiftTabNavigation(e,s,t):this.handleTabNavigation(e,s,t)};this.slides.forEach(t=>{t.addEventListener("keydown",e)})}shouldHandleTabNavigation(e){return e.key===I.TAB&&!!this.slides[this.currentSlide]}getCurrentSlideFocusableElements(){const e=this.slides[this.currentSlide];return e?this.getFocusableElements(e):[]}handleShiftTabNavigation(e,t,s){t===s[0]&&0!==this.currentSlide&&(e.preventDefault(),this.navigateToPreviousSlideAndFocus())}handleTabNavigation(e,t,s){t===s.at(-1)&&this.currentSlide!==this.totalSlides-1&&(e.preventDefault(),this.navigateToNextSlideAndFocus())}navigateToPreviousSlideAndFocus(){const e=this.currentSlide-1;this.goToSlide(e);const t=this.slides[e];if(!t)return;const s=this.getFocusableElements(t);if(s.length>0){const e=s.at(-1);e?.focus({preventScroll:!0})}}navigateToNextSlideAndFocus(){const e=this.currentSlide+1;this.goToSlide(e);const t=this.slides[e];if(!t)return;const s=this.getFocusableElements(t);s.length>0&&s[0].focus({preventScroll:!0})}getFocusableElements(e){const t=["a[href]","button:not([disabled])","input:not([disabled])","textarea:not([disabled])","select:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(", "),s=e.querySelectorAll(t);return Array.from(s).filter(e=>{const t=e.hidden||"none"===getComputedStyle(e).display,s=e.offsetWidth>0&&e.offsetHeight>0;return!t&&s})}setupPrintListeners(){this.beforePrintHandler=()=>{this.handleBeforePrint()},this.afterPrintHandler=()=>{this.handleAfterPrint()},globalThis.addEventListener("beforeprint",this.beforePrintHandler),globalThis.addEventListener("afterprint",this.afterPrintHandler)}handleBeforePrint(){if(!this.element||!this.isDesktopSliderEnabled)return;const e=this.element.style.height;e&&(this.savedHeight=e,this.element.style.height="")}handleAfterPrint(){this.element&&this.isDesktopSliderEnabled&&(null===this.savedHeight?this.updateSliderHeight():(this.element.style.height=this.savedHeight,this.savedHeight=null))}removePrintListeners(){this.beforePrintHandler&&(globalThis.removeEventListener("beforeprint",this.beforePrintHandler),this.beforePrintHandler=void 0),this.afterPrintHandler&&(globalThis.removeEventListener("afterprint",this.afterPrintHandler),this.afterPrintHandler=void 0),this.savedHeight=null}isValidElement(e){return e instanceof HTMLElement}hasRequiredElements(){return!!(this.element&&this.sliderContainer&&this.slides.length>0)}static initialize(){const e=document.querySelectorAll(Et.SELECTOR);if(!e.length)return[];const t=[];return e.forEach(e=>{if(0!==e.querySelectorAll(".cmp-slider").length)try{const s=new Et(e);s.init(),t.push(s)}catch(e){console.error("SliderAmpersandDesktop: Failed to initialize slider:",e)}}),t}}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",Et.initialize):Et.initialize();const bt=".count-graphic",Tt=".count-graphic__counter",St=".count-graphic__number",vt=".odometer-slots",Lt=".odometer-reel",yt=".count-graphic__inner",_t="data-animation-speed",At="data-count-from",Ct="data-count-to",wt=.1,Nt="0px 0px -50px 0px",It=80,Rt=-15,Dt=.6,Mt=.4,Ot=100,xt=10,Pt="transform 0.1s ease-out",kt="transform 0.3s ease-out",Ht="odometer-slots",Bt="odometer-slot",Ft="odometer-reel",qt="odometer-digit",$t="odometer-decimal-point",zt="count-graphic__counter--odometer",Ut="count-graphic--animation-odometer";class Wt{element;observer=null;hasAnimated=!1;constructor(e){this.element=e}init(){this.element.classList.contains(Ut)&&this.setupSlotMachineStructure(),this.setupIntersectionObserver()}setupIntersectionObserver(){const e={threshold:wt,rootMargin:Nt};this.observer=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting&&!this.hasAnimated&&(this.startAnimation(),this.hasAnimated=!0)})},e),this.observer.observe(this.element)}startAnimation(){const e=this.element.querySelectorAll(Tt),t=this.element.classList.contains(Ut),s=this.element.querySelector(yt),i=Number.parseFloat(s?.getAttribute(_t)??"1");let n=0;
3e.forEach(e=>{const t=Number.parseFloat(e.getAttribute(Ct)??"0");n=Math.max(n,t)}),e.forEach(e=>{if(!N(e))return;const s=e;t?this.animateOdometer(s,n/i*xt):this.animateCounter(s,n,i)})}animateCounter(e,t,s){const i=Number.parseFloat(e.getAttribute(At)??"0"),n=e.getAttribute(Ct)??"0",a=Number.parseFloat(n),r=e.querySelector(St);if(!r)return;const{thousandSeparator:o}=e.dataset,l="comma"===o,c=this.getDecimalPlacesFromString(n),d=Math.max(1,Math.floor(t/s)),h=(a-i)/d;let u=i;const m=()=>{if(u>=a){const e=this.formatCounterValue(a,c,l);return void(r.textContent=e)}u=Math.min(u+h,a);const e=this.formatCounterValue(u,c,l);r.textContent=e,requestAnimationFrame(m)};requestAnimationFrame(m)}formatCounterValue(e,t,s){if(t>0){const i=e.toFixed(t);if(s){const[e,t]=i.split(".");return`${Number.parseInt(e).toLocaleString()}.${t}`}return i}return s?Math.floor(e).toLocaleString():Math.floor(e).toString()}getDecimalPlacesFromString(e){const t=e.split(".")[1];return t?t.length:0}animateOdometer(e,t){const s=Number.parseFloat(e.getAttribute(Ct)??"0"),i=e.querySelector(St);i&&this.startSpinningAnimation(i,s,t)}setElementStyles(e,t){N(e)&&Object.keys(t).forEach(s=>{e.style.setProperty(s,t[s])})}startSpinningAnimation(e,t,s){const i=t%1!=0;let n,a="";if(i){const e=t.toFixed(1),[s,i]=e.split(".");n=s,a=i}else n=Math.floor(t).toString();const r=e.querySelector(vt);if(!r)return;const o=r.querySelectorAll(Lt),l=o.length;o.forEach((e,t)=>{let r;r=i&&t===o.length-1?Number.parseInt(a):Number.parseInt(n[t]),this.setElementStyles(e,{transition:"none",transform:"translateY(0%)"});const c=s*(Dt+t/(l-1)*Mt),d=It+t*Rt,h=Math.floor(c/d);let u=0,m=0;const p=setInterval(()=>{u=(u+1)%xt,this.setElementStyles(e,{transition:Pt,transform:`translateY(-${u*xt}%)`}),m++,m>=h&&(clearInterval(p),setTimeout(()=>{this.setElementStyles(e,{transition:kt,transform:`translateY(-${r*xt}%)`})},Ot))},d)})}setupSlotMachineStructure(){this.element.querySelectorAll(Tt).forEach(e=>{const t=Number.parseFloat(e.getAttribute(Ct)??"0"),s=e.querySelector(St);s&&(e.classList.add(zt),this.createSlotMachineStructure(s,t))})}createSlotMachineStructure(e,t){const s=t%1!=0;let i;if(s){const[e]=t.toFixed(1).split(".");i=e}else i=Math.floor(t).toString();const n=document.createElement("div");if(n.className=Ht,Array.from(i).forEach(()=>{const e=document.createElement("div");e.className=Bt;const t=document.createElement("div");t.className=Ft,Array.from({length:xt},(e,t)=>t).forEach(e=>{const s=document.createElement("div");s.className=qt,s.textContent=e.toString(),t.appendChild(s)}),e.appendChild(t),n.appendChild(e)}),s){const e=document.createElement("div");e.className=$t,e.textContent=".",n.appendChild(e);const t=document.createElement("div");t.className=Bt;const s=document.createElement("div");s.className=Ft,Array.from({length:xt},(e,t)=>t).forEach(e=>{const t=document.createElement("div");t.className=qt,t.textContent=e.toString(),s.appendChild(t)}),t.appendChild(s),n.appendChild(t)}const a=e;a.innerHTML="",a.appendChild(n);n.querySelectorAll(Lt).forEach(e=>{this.setElementStyles(e,{transform:"translateY(0%)"})})}}document.addEventListener("DOMContentLoaded",()=>{document.querySelectorAll(bt).forEach(e=>{new Wt(e).init()})});const Vt='.relatedcontent:not(.relatedcontent--ampersands-feature) .relatedcontent__list-wrapper[data-component="related-content-slider"]',Gt=".swiper-wrapper",Kt=".swiper-slide",Yt=".relatedcontent__navigation-button--next",jt=".relatedcontent__navigation-button--prev",Xt=".relatedcontent__pagination",Qt=".relatedcontent--ampersands-feature",Zt=".relatedcontent__item--active",Jt=".relatedcontent__load-more-button",es=".relatedcontent__load-more-button-link",ts=".relatedcontent__item",ss=".relatedcontent__item-container",is=".relatedcontent__item-content-wrapper",ns=".relatedcontent__item-details",as=".relatedcontent__item--active",rs=".relatedcontent__item:not(.relatedcontent__item--active)",os=".relatedcontent__item--active .relatedcontent__item-link",ls=".relatedcontent__item-content-wrapper .relatedcontent__item-title",cs="swiper-button-disabled",ds="disabled",hs="-1",us="aria-disabled",ms=["a[href]","button:not([disabled])","input:not([disabled])","textarea:not([disabled])",'[tabindex]:not
3([tabindex="-1"])'],ps="translate3d(",gs="px, 0px, 0px)",fs="300ms",Es="relatedcontent--two-columns",bs="relatedcontent--ampersands-feature",Ts="relatedcontent--featured-insights",Ss="relatedcontent--two-cols-featured-insights",vs="opacity-50",Ls="pointer-events-none",ys="active",_s="swiper-pagination-bullet-active",As="relatedcontent__item--active",Cs="hidden",ws="relatedcontent__item--hidden",Ns={MOBILE:1,TABLET:2,DESKTOP:3},Is={MOBILE:1,TABLET:2,DESKTOP:2},Rs={MOBILE:1,TABLET:2,DESKTOP:"auto"},Ds=16,Ms=24,Os=24,xs=960,Ps=5,ks=8,Hs=4,Bs=8,Fs="inert",qs="aria-hidden";class $s{el;swiper;slideWidth;currentTranslate;isAmpersandsFeature;accessibilityId;isFeaturedInsights;isFeaturedInsightsTwoColumns;loadMoreButton;loadMoreButtonLink;allItems;boundHandleLoadMoreClick;constructor(e){if(!e)throw new Error("Element is required for RelatedContent");this.el=e,this.swiper=null,this.slideWidth=0,this.currentTranslate=0,this.isAmpersandsFeature=!1,this.accessibilityId=null,this.isFeaturedInsights=!1,this.isFeaturedInsightsTwoColumns=!1,this.loadMoreButton=null,this.loadMoreButtonLink=null,this.allItems=null,this.boundHandleLoadMoreClick=this.handleLoadMoreClick.bind(this)}init(){this.initVariants(),this.isFeaturedInsights||this.isFeaturedInsightsTwoColumns||(this.initSwiper(),this.addEventListeners()),(this.isFeaturedInsights||this.isFeaturedInsightsTwoColumns)&&(this.initLoadMore(),this.addLoadMoreEventListener())}initSwiper(){const e=this.el.querySelector(Vt),t=this.el.querySelector(Yt),s=this.el.querySelector(jt),i=this.el.querySelector(Xt);if(!e)return;if(e.swiper)return;const n=e.closest(`.${Es}`);let a=Ns;n?a=Is:this.isAmpersandsFeature&&(a=Rs);const r={modules:[Ie.Vx,Ie.dK,Ie.s3,Ie.Jq],slidesPerView:a.MOBILE,spaceBetween:Ds,slidesPerGroup:1,loop:!1,speed:550,keyboard:Re.DEFAULT.keyboard,a11y:{...Re.A11Y},breakpoints:{320:{slidesPerView:a.MOBILE,spaceBetween:Ds},600:{slidesPerView:a.TABLET,spaceBetween:Ms},960:{slidesPerView:a.DESKTOP,spaceBetween:Os}},on:{init:e=>{if(this.isAmpersandsFeature||this.fadeOutSlides(e),this.isAmpersandsFeature&&window.innerWidth>xs){const e=this.el.querySelectorAll(Kt)[0];e&&(this.slideWidth=e.offsetWidth,e.classList.add(ys))}},afterInit:e=>{this.accessibilityId=_e.register(e)}}};t&&s&&(r.navigation={nextEl:t,prevEl:s}),i&&(r.pagination={el:i,clickable:!0}),this.swiper=new Ne.A(e,r)}addEventListeners(){this.swiper&&(this.addSwiperEventListeners(),this.addWindowEventListeners(),this.addSlideEventListeners())}addSwiperEventListeners(){this.swiper&&(this.swiper.on("beforeTransitionStart",e=>{this.isAmpersandsFeature||this.fadeOutSlides(),this.isAmpersandsFeature&&window.innerWidth>xs&&(this.checkActiveSlide(),this.calculateTranslate(e))}),this.swiper.on("breakpoint",()=>{this.isAmpersandsFeature||this.fadeOutSlides()}))}addWindowEventListeners(){globalThis.addEventListener("resize",()=>{this.swiper&&this.isAmpersandsFeature&&window.innerWidth>xs&&(this.updateSlideParameters(),this.currentTranslate=this.swiper.getTranslate())})}addSlideEventListeners(){this.el.querySelectorAll(Kt).forEach(e=>{if(!this.isAmpersandsFeature||window.innerWidth<xs)return;let t;e.addEventListener("mouseenter",e=>{t=globalThis.setTimeout(()=>{this.addActiveClass(e)},200)}),e.addEventListener("mouseleave",()=>{t&&clearTimeout(t)}),e.addEventListener("transitionend",()=>{this.swiper&&(this.swiper.updateSlides(),this.swiper.updateSlidesClasses())})})}updateSlideParameters(){const e=this.el.querySelectorAll(`${Kt}:not(.${ys})`);if(e.length>0){const t=e[0];this.slideWidth=t.offsetWidth}}calculateTranslate(e){if(!e||!this.slideWidth)return;const{activeIndex:t,previousIndex:s}=e,i=t>s?1:-1,n="number"==typeof e.params.spaceBetween?e.params.spaceBetween:0,a=i*(this.slideWidth+n),r=this.currentTranslate-a;this.currentTranslate=r,e.setTranslate(r)}addActiveClass(e){this.removeAllActiveClass();const t=e.target;t&&t instanceof HTMLElement&&t.classList.add(ys)}removeAllActiveClass(){this.el.querySelectorAll(Kt).forEach(e=>{e.classList.remove(ys)})}checkActiveSlide(){if(!this.swiper)return;const{activeIndex:e,slides:t}=this.swiper,s=t[e],i=e,n=e+3,a=this.el.querySelector(`.${ys}`);if(a){const e=Array.from(t).indexOf(a);if(!(e>=i&&e<=n)){let s;s=e<i?i:n;const a={target:t[s]};this.addActiveClass(a)}}else{const e={target:s};this.addActiveClass(e)}}fadeOutSlides(e=null){const t=e??this.swiper;if(t){const{params:{slidesPerView:e},activeIndex:s}=t,i=this.el.querySelectorAll(Kt),n=s+("number"==typeof e?e:1);
3i.forEach((e,t)=>{e.classList.remove(vs,Ls),(t<s||t>=n)&&e.classList.add(vs,Ls)})}}initVariants(){this.isAmpersandsFeature=!!this.el.closest(`.${bs}`),this.isFeaturedInsights=!!this.el.closest(`.${Ts}`),this.isFeaturedInsightsTwoColumns=!!this.el.closest(`.${Ss}`)}initLoadMore(){(this.isFeaturedInsights||this.isFeaturedInsightsTwoColumns)&&(this.loadMoreButton=this.el.querySelector(Jt),this.loadMoreButtonLink=this.el.querySelector(es),this.allItems=this.el.querySelectorAll(ts),this.loadMoreButton&&this.loadMoreButtonLink&&this.allItems&&(this.setupInitialItemsVisibility(),this.addLoadMoreEventListener()))}setupInitialItemsVisibility(){if(!this.allItems)return;const e=this.isFeaturedInsightsTwoColumns?ks:Ps;this.allItems.forEach((t,s)=>{s>=e&&(t.classList.add(ws),t.setAttribute(Fs,""))}),this.updateLoadMoreButtonVisibility()}addLoadMoreEventListener(){this.loadMoreButtonLink&&this.loadMoreButtonLink.addEventListener("click",this.boundHandleLoadMoreClick)}handleLoadMoreClick(e){this.loadMoreItems()}loadMoreItems(){if(!this.allItems)return;const e=this.isFeaturedInsightsTwoColumns?Bs:Hs;Array.from(this.allItems).filter(e=>e.classList.contains(ws)).slice(0,e).forEach(e=>{e.classList.remove(ws),e.removeAttribute(Fs)}),this.updateLoadMoreButtonVisibility()}updateLoadMoreButtonVisibility(){if(!this.loadMoreButton||!this.allItems)return;0===Array.from(this.allItems).filter(e=>e.classList.contains(ws)).length?this.loadMoreButton.classList.add(Cs):this.loadMoreButton.classList.remove(Cs)}destroy(){this.isFeaturedInsights||this.isFeaturedInsightsTwoColumns||(this.accessibilityId&&(_e.unregister(this.accessibilityId),this.accessibilityId=null),this.swiper&&(this.swiper.destroy(!0,!0),this.swiper=null)),(this.isFeaturedInsights||this.isFeaturedInsightsTwoColumns)&&this.loadMoreButtonLink&&this.loadMoreButtonLink.removeEventListener("click",this.boundHandleLoadMoreClick)}static initialize(){const e=new Set;document.querySelectorAll(Vt).forEach(t=>{const{parentElement:s}=t;s&&!e.has(s)&&(e.add(s),new $s(s).init())});document.querySelectorAll(`.${Ts}, .${Ss}`).forEach(t=>{t.querySelector(Jt)&&!e.has(t)&&(e.add(t),new $s(t).init())})}}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",$s.initialize):$s.initialize();class zs{element;hoverTimeout;slideWidth;currentSlideIndex;itemsPerView;accessibilityId;dom;swiper;nextButtonHandler;prevButtonHandler;hoverHandlers;paginationKeydownHandler;focusHandlers;constructor(e){this.element=e,this.hoverTimeout=null,this.slideWidth=0,this.currentSlideIndex=0,this.itemsPerView=this.calculateItemsPerView(),this.accessibilityId=null,this.hoverHandlers=new Map,this.focusHandlers=new Map,this.dom={relatedContentItem:this.element.querySelectorAll(ts),swiperElement:this.element.querySelector(".swiper"),swiperWrapper:this.element.querySelector(Gt),nextButton:this.element.querySelector(Yt),prevButton:this.element.querySelector(jt),pagination:this.element.querySelector(Xt)}}init(){this.calculateSlideWidth(),this.setItemLinkWidths(),this.setTitleMaxWidths(),this.addEventListeners(),this.dom.swiperElement&&this.dom.swiperWrapper&&this.initSwiper(),this.addSlideFocusListeners(),this.updatePointerNoneClasses(),this.updateNavigationButtons(),this.updateAccessibilityAttributes()}handleResize(){const e=this.calculateItemsPerView();e!==this.itemsPerView&&(this.itemsPerView=e,this.swiper&&(this.swiper.params.slidesPerView=this.itemsPerView,this.swiper.update())),this.calculateSlideWidth(),this.ensureActiveItem(),this.setItemLinkWidths(),this.setTitleMaxWidths(),this.updatePointerNoneClasses(),this.updateNavigationButtons()}calculateItemsPerView(){const e=window.innerWidth;return e>=1440?4:e>=1280?3:2}calculateSlideWidth(){const e=this.element.querySelector(rs);if(e){const t=e.offsetWidth;this.slideWidth=t}else{const e=this.dom.relatedContentItem[0];if(e){const t=e.offsetWidth;this.slideWidth=t}}}resetItemLinkWidths(){this.dom.relatedContentItem.forEach(e=>{const t=e.querySelector(ss);t&&(t.style.width="")})}resetTitleMaxWidths(){this.dom.relatedContentItem.forEach(e=>{const t=e.querySelector(ls);t&&(t.style.maxWidth="")})}
3removeItemInlineWidths(){this.dom.relatedContentItem.forEach(e=>{e.style.width=""})}setItemLinkWidths(){const e=this.element.querySelector(os);if(e){const t=e.clientWidth;this.dom.relatedContentItem.forEach(e=>{const s=e.querySelector(ss);s&&(s.style.width=`${t}px`)})}}setTitleMaxWidths(){const e=this.element.querySelector(rs);if(e){const t=e.querySelector(is);if(t){const e=t.clientWidth;this.dom.relatedContentItem.forEach(t=>{const s=t.querySelector(ls);s&&(s.style.maxWidth=`${e}px`)})}}}updatePointerNoneClasses(){const e=this.currentSlideIndex,t=this.currentSlideIndex+this.itemsPerView-1;this.dom.relatedContentItem.forEach((s,i)=>{i>=e&&i<=t?s.classList.remove(Ls):s.classList.add(Ls)})}updateNavigationButtons(){const e=this.dom.relatedContentItem.length,t=Math.max(0,e-this.itemsPerView);this.dom.prevButton&&(this.currentSlideIndex<=0?(this.dom.prevButton.classList.add(cs),this.dom.prevButton.setAttribute(ds,""),this.dom.prevButton.setAttribute("tabindex",hs),this.dom.prevButton.removeAttribute(us)):(this.dom.prevButton.classList.remove(cs),this.dom.prevButton.removeAttribute(ds),this.dom.prevButton.removeAttribute("tabindex"),this.dom.prevButton.setAttribute(us,"false"))),this.dom.nextButton&&(this.currentSlideIndex>=t?(this.dom.nextButton.classList.add(cs),this.dom.nextButton.setAttribute(ds,""),this.dom.nextButton.setAttribute("tabindex",hs),this.dom.nextButton.removeAttribute(us)):(this.dom.nextButton.classList.remove(cs),this.dom.nextButton.removeAttribute(ds),this.dom.nextButton.removeAttribute("tabindex"),this.dom.nextButton.setAttribute(us,"false")))}addEventListeners(){this.nextButtonHandler=e=>{e.preventDefault(),e.stopPropagation(),this.customNext()},this.prevButtonHandler=e=>{e.preventDefault(),e.stopPropagation(),this.customPrev()},this.dom.nextButton&&this.dom.nextButton.addEventListener("click",this.nextButtonHandler),this.dom.prevButton&&this.dom.prevButton.addEventListener("click",this.prevButtonHandler),this.dom.relatedContentItem.forEach(e=>{const t=e=>this.handleItemHover(e);this.hoverHandlers.set(e,t),e.addEventListener("mouseenter",t)})}addSlideFocusListeners(){this.dom.relatedContentItem.forEach((e,t)=>{const s=ms.join(", ");e.querySelectorAll(s).forEach(e=>{const s=()=>this.handleSlideFocus(t);e.addEventListener("focus",s),this.focusHandlers.set(e,s)})})}handleSlideFocus(e){this.setActiveItem(e)}removeEventListeners(){this.dom.nextButton&&this.nextButtonHandler&&(this.dom.nextButton.removeEventListener("click",this.nextButtonHandler),this.nextButtonHandler=void 0),this.dom.prevButton&&this.prevButtonHandler&&(this.dom.prevButton.removeEventListener("click",this.prevButtonHandler),this.prevButtonHandler=void 0),this.hoverHandlers.forEach((e,t)=>{t.removeEventListener("mouseenter",e)}),this.hoverHandlers.clear(),this.removeSlideFocusListeners()}removeSlideFocusListeners(){this.focusHandlers.forEach((e,t)=>{t.removeEventListener("focus",e)}),this.focusHandlers.clear()}addPaginationListeners(){this.swiper?.pagination&&Array.isArray(this.swiper.pagination.bullets)&&this.swiper.pagination.bullets.forEach((e,t)=>{e.addEventListener("click",e=>{e.preventDefault(),e.stopPropagation(),this.goToSlide(t)})})}goToSlide(e){const t=this.dom.relatedContentItem.length,s=Math.max(0,t-this.itemsPerView);if(e>=0&&e<=s){this.currentSlideIndex=e;const t=-this.currentSlideIndex*this.slideWidth;this.applyCustomTransform(t),this.handleSlideChange(e),this.updatePointerNoneClasses(),this.updateNavigationButtons()}this.swiper?.emit("slideChange")}handleItemHover(e){this.hoverTimeout&&clearTimeout(this.hoverTimeout);const t=e.currentTarget;N(t)&&(this.hoverTimeout=globalThis.setTimeout(()=>{this.dom.relatedContentItem.forEach(e=>{e.classList.remove("relatedcontent__item--active")}),t.classList.add("relatedcontent__item--active"),this.updateAccessibilityAttributes()},200))}handleSlideChange(e){const t=e??this.currentSlideIndex,s=this.element.querySelector(Zt),i=t,n=t+this.itemsPerView-1;if(s){const e=Array.from(this.dom.relatedContentItem).indexOf(s);if(e>=i&&e<=n)return;const t=this.findNewActiveIndex(e,i,n);null!==t&&this.setActiveItem(t)}else{const e=Math.max(0,Math.min(i,this.dom.relatedContentItem.length-1));this.setActiveItem(e)}}findNewActiveIndex(e,t,s){let i=null;return e<t?i=t:e>s&&(i=s),null!==i&&(i=Math.max(0,Math.min(i,this.dom.relatedContentItem.length-1))),i}
3setActiveItem(e){this.dom.relatedContentItem.forEach(e=>{e.classList.remove(As)}),this.dom.relatedContentItem[e]&&this.dom.relatedContentItem[e].classList.add(As),this.updateAccessibilityAttributes()}updateAccessibilityAttributes(){this.dom.relatedContentItem.forEach(e=>{const t=e.querySelector(ns),s=e.querySelector(is);e.classList.contains(As)?(t&&t.removeAttribute(qs),s&&s.setAttribute(qs,"true")):(t&&t.setAttribute(qs,"true"),s&&s.removeAttribute(qs))})}customNext(){const e=this.dom.relatedContentItem.length,t=Math.max(0,e-this.itemsPerView);if(this.currentSlideIndex<t){this.currentSlideIndex++;const e=-this.currentSlideIndex*this.slideWidth;this.applyCustomTransform(e),this.handleSlideChange(this.currentSlideIndex),this.updatePointerNoneClasses(),this.updateNavigationButtons()}this.swiper?.emit("slideChange")}customPrev(){if(this.currentSlideIndex>0){this.currentSlideIndex--;const e=-this.currentSlideIndex*this.slideWidth;this.applyCustomTransform(e),this.handleSlideChange(this.currentSlideIndex),this.updatePointerNoneClasses(),this.updateNavigationButtons()}this.swiper?.emit("slideChange")}applyCustomTransform(e){if(this.dom.swiperWrapper){const t=`\n        ${ps}${e}${gs}\n      `;this.dom.swiperWrapper.style.transform=t,this.dom.swiperWrapper.style.transitionDuration=fs}this.swiper&&(this.swiper.translate=e,this.swiper.activeIndex=this.currentSlideIndex,this.updatePagination(this.currentSlideIndex))}updatePagination(e){this.swiper?.pagination&&Array.isArray(this.swiper.pagination.bullets)&&(this.swiper.pagination.bullets.forEach(e=>{e.classList.remove(_s)}),this.swiper.pagination.bullets[e]&&this.swiper.pagination.bullets[e].classList.add(_s))}initSwiper(){if(!(this.element&&this.element instanceof Element))return;const{swiperWrapper:e}=this.dom;e&&(this.initSwiperFunction(),setTimeout(()=>{this.calculateSlideWidth(),this.addPaginationListeners(),this.updatePagination(this.currentSlideIndex),this.removeItemInlineWidths(),this.setItemLinkWidths(),this.setTitleMaxWidths(),this.handleSlideChange(0),this.updatePointerNoneClasses(),this.updateNavigationButtons()},300))}initSwiperFunction(){this.dom.swiperElement&&(this.swiper=new Ne.A(this.dom.swiperElement,{modules:[Ie.Vx,Ie.dK,Ie.Ij,Ie.s3,Ie.Jq],...Re.DEFAULT,loop:!1,pagination:{el:this.dom.pagination,clickable:!0},allowTouchMove:!1,slidesPerView:this.itemsPerView,navigation:!1,preventClicks:!1,preventClicksPropagation:!1,a11y:{...Re.A11Y},on:{afterInit:e=>{this.accessibilityId=_e.register(e)}}}),this.addCustomPaginationKeyboardControl())}addCustomPaginationKeyboardControl(){const e=this.dom.pagination;e&&(this.paginationKeydownHandler=e=>{this.handlePaginationKeydown(e)},e.addEventListener("keydown",this.paginationKeydownHandler))}handlePaginationKeydown(e){let t=this.currentSlideIndex;const s=this.dom.relatedContentItem.length,i=Math.max(0,s-this.itemsPerView);switch(e.key){case I.ARROW_LEFT:e.preventDefault(),e.stopPropagation(),this.currentSlideIndex>0&&(t=this.currentSlideIndex-1);break;case I.ARROW_RIGHT:e.preventDefault(),e.stopPropagation(),this.currentSlideIndex<i&&(t=this.currentSlideIndex+1);break;default:return}t!==this.currentSlideIndex&&this.goToSlide(t)}destroy(){this.accessibilityId&&(_e.unregister(this.accessibilityId),this.accessibilityId=null),this.swiper&&(this.swiper.destroy(!0,!0),this.swiper=void 0),this.removeEventListeners(),this.dom.pagination&&this.paginationKeydownHandler&&(this.dom.pagination.removeEventListener("keydown",this.paginationKeydownHandler),this.paginationKeydownHandler=void 0),this.resetItemLinkWidths(),this.resetTitleMaxWidths(),this.dom.relatedContentItem.forEach(e=>{e.classList.remove(Ls,As);const t=e.querySelector(ns),s=e.querySelector(is);t&&t.removeAttribute(qs),s&&s.removeAttribute(qs)}),this.dom.nextButton&&(this.dom.nextButton.classList.remove(cs),this.dom.nextButton.removeAttribute(ds),this.dom.nextButton.removeAttribute("tabindex"),this.dom.nextButton.removeAttribute(us)),this.dom.prevButton&&(this.dom.prevButton.classList.remove(cs),this.dom.prevButton.removeAttribute(ds),this.dom.prevButton.removeAttribute("tabindex"),this.dom.prevButton.removeAttribute(us)),this.dom.swiperWrapper&&(this.dom.swiperWrapper.style.transform="",this.dom.swiperWrapper.style.transitionDuration=""),this.hoverTimeout&&(clearTimeout(this.hoverTimeout),this.hoverTimeout=null),this.currentSlideIndex=0}ensureActiveItem(){if(!this.element.querySelector(as)&&this.dom.relatedContentItem.length>0){const e=this.currentSlideIndex,t=Math.max(0,Math.min(e,this.dom.relatedContentItem.length-1));this.setActiveItem(t)}}}class Us{element;swiper;accessibilityId;dom;constructor(e){this.element=e,this.accessibilityId=null,this.dom={relatedContentItem:this.element.querySelectorAll(ts),swiperElement:this.element.querySelector(".swiper"),swiperWrapper:this.element.querySelector(Gt),nextButton:this.element.querySelector(Yt),prevButton:this.element.querySelector(jt),pagination:this.element.querySelector(Xt)}}init(){this.dom.swiperElement&&this.dom.swiperWrapper&&this.initSwiper()}handleResize(){}initSwiper(){this.dom.swiperElement&&(this.swiper=new Ne.A(this.dom.swiperElement,{modules:[Ie.Vx,Ie.dK,Ie.s3,Ie.Jq],...Re.DEFAULT,slidesPerView:1,loop:!1,speed:550,keyboard:Re.DEFAULT.keyboard,a11y:{...Re.A11Y},navigation:{nextEl:this.dom.nextButton,prevEl:this.dom.prevButton},pagination:{el:this.dom.pagination,clickable:!0},allowTouchMove:!0,breakpoints:{600:{slidesPerView:2}}}),this.accessibilityId=_e.register(this.swiper))}destroy(){this.accessibilityId&&(_e.unregister(this.accessibilityId),this.accessibilityId=null),this.swiper&&(this.swiper.destroy(!0,!0),this.swiper=void 0)}}class Ws{element;isDesktop;resizeTimeout;resizeHandler;desktopHandler;mobileHandler;constructor(e){this.element=e,this.isDesktop=window.innerWidth>=960,this.init()}init(){this.element&&(this.setupResizeListener(),this.isDesktop?this.initDesktop():this.initMobile())}setupResizeListener(){this.resizeHandler=()=>{this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=globalThis.setTimeout(()=>{const e=this.isDesktop;this.isDesktop=window.innerWidth>=960,this.isDesktop&&!e?(this.cleanupMobile(),this.initDesktop()):!this.isDesktop&&e?(this.cleanupDesktop(),this.initMobile()):this.isDesktop&&this.desktopHandler?this.desktopHandler.handleResize():!this.isDesktop&&this.mobileHandler&&this.mobileHandler.handleResize()},250)},globalThis.addEventListener("resize",this.resizeHandler)}initDesktop(){this.desktopHandler=new zs(this.element),this.desktopHandler.init()}initMobile(){this.mobileHandler=new Us(this.element),this.mobileHandler.init()}cleanupDesktop(){this.desktopHandler&&(this.desktopHandler.destroy(),this.desktopHandler=void 0)}cleanupMobile(){this.mobileHandler&&(this.mobileHandler.destroy(),this.mobileHandler=void 0)}destroy(){this.cleanupDesktop(),this.cleanupMobile(),this.resizeHandler&&(globalThis.removeEventListener("resize",this.resizeHandler),this.resizeHandler=void 0),this.resizeTimeout&&(clearTimeout(this.resizeTimeout),this.resizeTimeout=void 0)}static initialize(){const e=document.querySelectorAll(Qt);
3e.length&&e.forEach(e=>new Ws(e))}}Ws.initialize();var Vs,Gs,Ks,Ys,js,Xs,Qs,Zs,Js,ei,ti=s(6540),si=s(5338);!function(e){e.INSIGHT="mandg:page_types/insight",e.FUND="mandg:page_types/fund",e.STRATEGY="mandg:page_types/strategy",e.FUND_LITERATURE="mandg:page_types/fund_literature",e.SPANISH_INSIGHT="mandg:page_types/spanish-insight",e.ITALIAN_INSIGHT="mandg:page_types/italian-insight",e.DOCUMENT_CENTRE="mandg:page_types/document-centre"}(Vs||(Vs={})),function(e){e.DOCUMENT="DOCUMENT",e.PRIMARY_TAG="PRIMARY_TAG",e.GENERIC="GENERIC",e.ARTICLE="ARTICLE",e.UNIVERSAL="UNIVERSAL",e.VERSATILE="VERSATILE",e.DOCUMENT_CENTRE="DOCUMENT_CENTRE"}(Gs||(Gs={})),function(e){e.DOCUMENT="document",e.PRIMARY_TAG="primary-tag",e.GENERIC="generic",e.ARTICLE="article",e.UNIVERSAL="universal",e.VERSATILE="versatile",e.DOCUMENT_CENTRE="document-centre"}(Ks||(Ks={})),function(e){e.DOCUMENT="document-tile",e.PRIMARY_TAG="primary-tag-tile",e.ARTICLE="article-tile",e.GENERIC="generic-tile",e.UNIVERSAL="universal-tile",e.VERSATILE="versatile-tile",e.DOCUMENT_CENTRE="document-centre-tile",e.PLACEHOLDER_MOBILE="placeholder-mobile",e.PLACEHOLDER_DESKTOP="placeholder-desktop",e.PLACEHOLDER_DOCUMENT="placeholder-document",e.PLACEHOLDER_RELATED_CONTENT="placeholder-related-content",e.PLACEHOLDER_RELATED_CONTENT_FEATURED_INSIGHTS="placeholder-related-content-featured-insights",e.PLACEHOLDER_RELATED_CONTENT_TWO_COLS_FEATURED_INSIGHTS="placeholder-related-content-two-cols-featured-insights",e.PLACEHOLDER_RELATED_CONTENT_AMPERSANDS="placeholder-related-content-ampersands",e.PLACEHOLDER_RELATED_CONTENT_AMPERSANDS_LISTING="placeholder-related-content-ampersands-listing",e.PLACEHOLDER_RELATED_CONTENT_AMPERSANDS_FEATURE="placeholder-related-content-ampersands-feature",e.PLACEHOLDER_RELATED_CONTENT_DISPLAY_AS_LIST="placeholder-related-content-display-as-list"}(Ys||(Ys={})),function(e){e.TEXT="TEXT",e.VIDEO="VIDEO",e.PODCAST="PODCAST"}(js||(js={})),function(e){e.RELEVANCY="RELEVANCY",e.PUBLICATION_DATE="PUBLICATION_DATE",e.ALPHABETICAL="ALPHABETICAL"}(Xs||(Xs={})),function(e){e.USE_DEFAULT="desc",e.ASCENDING="asc",e.DESCENDING="desc"}(Qs||(Qs={})),function(e){e.USE_DEFAULT="_score",e.TITLE="title",e.PUBLICATION_DATE="publication_date"}(Zs||(Zs={})),function(e){e.PT="pt-PT"}(Js||(Js={})),function(e){e.DEFAULT="default",e.SMART_MODE="smartmode",e.SMART_RESULTS="smartresults"}(ei||(ei={}));const ii={[Gs.ARTICLE]:{resultsPerBatch:6},[Gs.UNIVERSAL]:{resultsPerBatch:6},[Gs.VERSATILE]:{resultsPerBatch:6},[Gs.PRIMARY_TAG]:{resultsPerBatch:12},[Gs.GENERIC]:{resultsPerBatch:12},[Gs.DOCUMENT]:{resultsPerBatch:12},default:{resultsPerBatch:8}},ni={[Xs.RELEVANCY]:{sortList:[{field:Zs.USE_DEFAULT,direction:Qs.USE_DEFAULT}]},[Xs.PUBLICATION_DATE]:{sortList:[{field:Zs.USE_DEFAULT,direction:Qs.USE_DEFAULT},{field:Zs.PUBLICATION_DATE,direction:Qs.DESCENDING}]},[Xs.ALPHABETICAL]:{sortList:[{field:Zs.USE_DEFAULT,direction:Qs.USE_DEFAULT},{field:Zs.TITLE,direction:Qs.ASCENDING}]}};var ai,ri;!function(e){e.OR="or",e.AND="and"}(ai||(ai={})),function(e){e.PAGE_TYPE="page_type",e.ALL_TAGS="all_tags",e.TITLE="title",e.CUSTOM_TITLE="custom_title",e.DOCUMENT_CENTRE_TYPE="document_centre_type",e.SITE_ID="site_id",e.CATEGORY="category",e.HIDE_IN_SEARCH="hide_in_search"}(ri||(ri={}));const oi=(0,ti.createContext)({});var li=s(9478),ci=s(6071);const di=(0,ti.createContext)({}),hi=ni[Xs.RELEVANCY],ui=({siteId:e,children:t,engineName:s="",endpointBase:i="",searchKey:n="",enableDebug:a=!1,searchQuery:r={},resultsPerBatch:o=ii.default.resultsPerBatch,constantPageQuery:l=[],initialState:c=hi})=>{const d=Boolean(s&&i&&n),h=(0,ti.useMemo)(()=>({subscribeToStateChanges:void 0,unsubscribeToStateChanges:void 0,getActions:void 0}),[]),u=(0,ti.useMemo)(()=>{if(!d)return null;const t=new ci.A({engineName:s,endpointBase:i,searchKey:n,cacheResponses:!1,additionalHeaders:{"Query-Suggestion":!1,...n?.indexOf("search-")>=0?{}:{Authorization:`Basic ${n}`}},beforeSearchCall:(t,s)=>s({...t,filters:{...t.filters,all:[...l||[],...t.filters?.all??[],{[ri.SITE_ID]:[e]}],none:{[ri.HIDE_IN_SEARCH]:["true"]}},page:{size:o,current:t.page.current}})});return new li.vc({apiConnector:t,searchQuery:r,trackUrlState:!1,debug:a,initialState:c})},[])||h;return ti.createElement(di.Provider,{value:u},t)},mi=()=>(0,ti.useContext)(oi),pi=e=>e&&Object.hasOwn(e,"raw")?e.raw:e?.snippet,gi=(e,t)=>{let s;const i={day:"numeric",month:"short",year:"2-digit"};if(t===Js.PT){s=new Date(pi(e.publication_date)).toLocaleDateString("pt",i).replace(" de","").replace(". de","")}else s=new Date(pi(e.publication_date)).toLocaleDateString(t,i);return s},fi=(e,t,s="en-GB")=>{const i=pi(e.page_type),n=t.mappings[i]||t.defaultMode;return n===Gs.ARTICLE?((e,t="en-GB")=>{const s=pi(e.read_time),i=pi(e.content_type),n=e.read_time_label?pi(e.read_time_label):void 0,a=e.show_date_label?pi(e.show_date_label):"false",r=e.url_label?pi(e.url_label):void 0;return{timeToRead:s,contentType:i,publicationDate:gi(e,t),type:Gs.ARTICLE,hasTimeToRead:!!s&&!Number.isNaN(s),showDateLabel:"true"===a,urlLabel:r,readTimeLabel:n}})(e,s):n===Gs.UNIVERSAL?((e,t="en-GB")=>{const s=pi(e.read_time),i=pi(e.content_type),n=e.show_date_label?pi(e.show_date_label):"false",a=e.read_time_label?pi(e.read_time_label):void 0;return{timeToRead:s,contentType:i,publicationDate:gi(e,t),type:Gs.UNIVERSAL,hasTimeToRead:!!s&&!Number.isNaN(s),showDateLabel:"true"===n,readTimeLabel:a}})(e,s):n===Gs.VERSATILE?((e,t="en-GB")=>{const s=e.read_time?pi(e.read_time):void 0,i=pi(e.content_type),n=e.uses_default_read_time?pi(e.uses_default_read_time):"false",a=e.show_date_label?pi(e.show_date_label):"false",r=e.read_time_label?pi(e.read_time_label):void 0;return{timeToRead:s,contentType:i,publicationDate:gi(e,t),type:Gs.VERSATILE,hasTimeToRead:!!s&&!Number.isNaN(s),hideDefaultAttributeValues:"true"===n,showDateLabel:"true"===a,readTimeLabel:r}}
3)(e,s):n===Gs.DOCUMENT_CENTRE?((e,t="en-GB")=>({catCode:e.catalogue_code&&pi(e.catalogue_code),publicationDate:gi(e,t),type:Gs.DOCUMENT_CENTRE}))(e,s):n===Gs.DOCUMENT?((e,t="en-GB")=>({catCode:e.catalogue_code&&pi(e.catalogue_code),publicationDate:gi(e,t),type:Gs.DOCUMENT}))(e,s):{type:Gs[n]}},Ei={mappings:{},defaultMode:Gs.GENERIC},bi={},Ti=(e,t=Ei,s="en-GB",i=bi)=>e.map(e=>{const n=fi(e,t,s),a=pi(e.category??{raw:""});let r=pi(e.all_tags??{raw:""});"string"==typeof r&&(r=r.length>0?[r]:[]);let o={};return void 0!==r&&(o=Object.keys(i).filter(e=>r.includes(e)).reduce((e,t)=>({...e,[t]:i[t]}),{})),{title:e.custom_title?pi(e.custom_title):pi(e.title),shortDescription:pi(e.description??{raw:""}),url:pi(e.custom_url)||pi(e.url),id:pi(e.id),contentType:pi(e.content_type),allTags:r,documentTags:o,publicationDate:pi(e.publication_date),publicationDateForScore:new Date(pi(e.publication_date)).toLocaleDateString("en-GB",{day:"numeric",month:"short",year:"2-digit"}),tagScore:0,primaryTagCount:0,secondaryTagCount:0,totalMatchScore:0,primaryTag:i[a]||a,pageType:pi(e.page_type),image:e.thumbnail_url?pi(e.thumbnail_url):pi(e.image??{raw:""}),...n}}),Si=(e,t)=>e.length===t.length&&e.every((e,s)=>e===t[s]),vi=(e,t)=>e.filter(e=>!t.includes(e)),Li=({name:e,filterType:t})=>s=>({name:e,filterType:t,value:s}),yi=(e,t)=>t.map((t,s)=>{const i=e[s];if(i&&Si(i.values,t.values))return{changed:!1,filtersToRemove:[],filtersToAdd:[]};const n=(({name:e,filterType:t},s,i)=>vi(s,i).filter(e=>""!==e).map(Li({name:e,filterType:t})))(t,t.values,i?i.values:[]);return{changed:!0,filtersToRemove:(({name:e,filterType:t},s,i)=>vi(i,s).map(Li({name:e,filterType:t})))(t,t.values,i?i.values:[]),filtersToAdd:n}}).filter(e=>e.changed),_i=[{title:"Fancy insight",publicationDate:"1st of May, 2016",shortDescription:"Short description of this insight, not Lorem ipsum. At least yet ",timeToRead:10,showDateLabel:!0,contentType:"TEXT",url:"http://foo.bar1.pl",id:"5e9fed1b28ccbc30b1323711",type:Gs.ARTICLE,image:"https://via.placeholder.com/320x180",hasTimeToRead:!0},{title:"Fancy insight 1",publicationDate:"1st of May, 2016",shortDescription:"Short description of this insight, not Lorem ipsum. At least yetShort description of this articnot Lorem ipsum. At least yet not Lorem ipsum. At least yetShort description of this insight, not Lorem ipsumnot Lorem ipsum. At least yet not Lorem ipsum. At least yetShort description of this insight, not Lorem ipsumnot Lorem ipsum. At least yet not Lorem ipsum. At least yetShort description of this insight, not Lorem ipsumnot Lorem ipsum. At least yet not Lorem ipsum. At least yetShort description of this insight, not Lorem ipsumnot Lorem ipsum. At least yet not Lorem ipsum. At least yetShort description of this insight, not Lorem ipsu",timeToRead:3,showDateLabel:!0,contentType:"TEXT",url:"http://foo.bar2.pl",id:"5e9fed1b28ccbc30b1323712",type:Gs.ARTICLE,image:"https://via.placeholder.com/320x180",hasTimeToRead:!0},{title:"Fancy insight 2",publicationDate:"1st of May, 2016",shortDescription:"Be or not to be",timeToRead:5,showDateLabel:!1,contentType:"TEXT",url:"http://foo.bar3.pl",id:"5e9fed1b28ccbc30b1323713",type:Gs.ARTICLE,image:"https://via.placeholder.com/320x180",hasTimeToRead:!0},{title:"Fancy insight 3",publicationDate:"1st of March, 2016",shortDescription:"Foo Bar Baz",timeToRead:6,showDateLabel:!1,contentType:"TEXT",url:"http://foo.bar4.pl",id:"5e9fed1b28ccbc30b1323714",type:Gs.ARTICLE,image:"https://via.placeholder.com/320x180",hasTimeToRead:!0},{title:"Fancy insight 5",publicationDate:"1st of May, 2016",shortDescription:"Short description of this insight, not Lorem ipsum. At least yet",timeToRead:2,showDateLabel:!0,contentType:"TEXT",url:"http://foo.bar5.pl",id:"5e9fed1b28ccbc30b1323715",type:Gs.ARTICLE,image:"https://via.placeholder.com/320x180",hasTimeToRead:!0}],Ai=[{title:"Prudential Investment Plan fund guide",url:"#f1",shortDescription:"Short fund description",primaryTag:"Prospectus",id:"5e9fed1b28ccbc30b132372f",type:Gs.DOCUMENT},{title:"Prudence Inheritance Bond (formerly Wealth Preservation Bond) fund guide",url:"#f2",shortDe
3scription:"Short fund description",primaryTag:"Prospectus",id:"5e9fed1b28ccbc30b1323723",type:Gs.DOCUMENT},{title:"Flexible Retirement Plan (Personal Pension and Income Drawdown with SIPP Options) & Flexible Investment Plan - long fund guide",url:"#f3",shortDescription:"Short fund description",primaryTag:"Pension Funds",id:"5e9fed1b28ccbc30b1323724",type:Gs.DOCUMENT},{title:"International Prudence bond fund guide",url:"#f4",shortDescription:"Short fund description",primaryTag:"International Funds",id:"5e9fed1b28ccbc30b1323726",type:Gs.DOCUMENT}],Ci=[{title:"new Strategy",shortDescription:"new fancy description of this strategy",url:"#",primaryTag:"Real Estate",id:"5e9fed1b28ccbc30b1323701",type:Gs.PRIMARY_TAG},{title:"Strategy with a few primaryTag",shortDescription:"fancy description of this strategy with multiple primaryTag",url:"#2",primaryTag:"Real Estate",id:"5e9fed1b28ccbc30b1323702",type:Gs.PRIMARY_TAG},{title:"Strategy with not a very short short description",shortDescription:"fancy description of this strategy with not so short short description. Let it be long to the wrapping and so on Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere cursus ipsum, eu interdum mauris aliquam vel. Cras rutrum est vel purus pretium pellentesque. Pellentesque a fringilla nibh, id volutpat risus. Sed vitae pharetra tortor. Aenean in pulvinar sem. Maecenas dapibus id urna in varius.",url:"#3",primaryTag:"Funds",id:"5e9fed1b28ccbc30b1323703",type:Gs.PRIMARY_TAG}],wi=[{title:"Universal Article With Minimum Elements",publicationDate:"1st of May, 2016",timeToRead:10,url:"http://foo.bar1.pl",id:"60a22b3828ccbca3a29832c6",type:Gs.UNIVERSAL,hasTimeToRead:!0,contentType:"TEXT"},{title:"Universal Article With Primary Tag",publicationDate:"1st of May, 2016",primaryTag:"Real Estate",timeToRead:3,url:"http://foo.bar2.pl",id:"60a22b3828ccbca3a29832c7",type:Gs.UNIVERSAL,hasTimeToRead:!0,contentType:"TEXT"},{title:"Universal Article With Primary Tag And Description",publicationDate:"1st of May, 2016",shortDescription:"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.",primaryTag:"Real Estate",timeToRead:5,url:"http://foo.bar3.pl",id:"60a22b3828ccbca3a29832c8",type:Gs.UNIVERSAL,hasTimeToRead:!0,contentType:"TEXT"},{title:"Universal Article With Image",publicationDate:"1st of March, 2016",timeToRead:6,url:"http://foo.bar4.pl",id:"60a22b3828ccbca3a29832c9",type:Gs.UNIVERSAL,image:"https://via.placeholder.com/320x180",hasTimeToRead:!0,contentType:"TEXT"},{title:"Universal Article With Image Primary Tag And Description",publicationDate:"1st of May, 2016",shortDescription:"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.",primaryTag:"Real Estate",timeToRead:2,url:"http://foo.bar5.pl",id:"60a22b3828ccbca3a29832d1",type:Gs.UNIVERSAL,image:"https://via.placeholder.com/320x180",hasTimeToRead:!0,contentType:"TEXT"},{title:"Universal Article With Image And Primary Tag",publicationDate:"1st of May, 2016",primaryTag:"Real Estate",timeToRead:2,url:"http://foo.bar5.pl",id:"60a22b3828ccbca3a29832d2",type:Gs.UNIVERSAL,image:"https://via.placeholder.com/320x180",hasTimeToRead:!0,contentType:"TEXT"},{title:"Universal Article Without Read Time",publicationDate:"1st of May, 2016",shortDescription:"Article Without Read Time 1 min read 17 May 21 Print Summary: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Sed ut perspiciatis unde om
3nis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?",primaryTag:"Real Estate",url:"http://foo.bar5.pl",id:"60a22b3828ccbca3a29832d3",type:Gs.UNIVERSAL,image:"https://via.placeholder.com/320x180",hasTimeToRead:!1,contentType:"TEXT"}],Ni=[{title:"Versatile Article With Minimum Elements",publicationDate:"31st of October, 2023",timeToRead:10,url:"https://foo.bar1.pl",id:"60a22b3828ccbca3a29832c1",type:Gs.VERSATILE,hasTimeToRead:!0,contentType:"TEXT"},{title:"Versatile Article With Primary Tag",publicationDate:"31st of October, 2023",primaryTag:"Real Estate",timeToRead:3,url:"https://foo.bar2.pl",id:"60a22b3828ccbca3a29832c2",type:Gs.VERSATILE,hasTimeToRead:!0,contentType:"TEXT"},{title:"Versatile Article With Primary Tag And Description",publicationDate:"31st of October, 2023",shortDescription:"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.",primaryTag:"Real Estate",timeToRead:5,url:"https://foo.bar3.pl",id:"60a22b3828ccbca3a29832c4",type:Gs.VERSATILE,hasTimeToRead:!0,contentType:"TEXT"},{title:"Versatile Article Without Read Time",publicationDate:"31st of October, 2023",shortDescription:"Article Without Read Time 1 min read 17 May 21 Print Summary: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?",primaryTag:"Real Estate",url:"https://foo.bar5.pl",id:"60a22b3828ccbca3a29832d4",type:Gs.VERSATILE,image:"https://via.placeholder.com/320x180",hasTimeToRead:!1,contentType:"TEXT"}],Ii=(e="")=>e===Gs.PRIMARY_TAG?Ci:e===Gs.DOCUMENT?Ai:e===Gs.ARTICLE?_i:e===Gs.UNIVERSAL?wi:e===Gs.VERSATILE?Ni:[..._i,...Ai,...Ci,...wi,...Ni];var Ri,Di;!function(e){e.SEARCH="search",e.REDIRECT="searchItemClicked"}
3(Ri||(Ri={})),function(e){e.ALL="all",e.INSIGHT="insight",e.STRATEGY="strategy"}(Di||(Di={}));const Mi=(e,t)=>{const{[t]:s,...i}=e;return i};function Oi(e,t){return e.flatMap(e=>[Mi(e,t),...t in e?Oi(e[t],t):[]])}const xi=({filters:e,selectedFilters:t,searchType:s})=>{if(s===Di.ALL){const s=t.find(({name:e})=>e===ri.PAGE_TYPE)?.values[0]??"";return e.find(({value:e})=>e===s)?.baseName??""}return e.map(e=>{const s=`'${e.baseName}'`,i=t.filter(({name:e})=>e===ri.ALL_TAGS).map(({values:e})=>e).flat();return{filterName:s,children:Oi(e.children??[],"children").filter(e=>e.value&&i.includes(e.value)).map(e=>`'${e.baseName}'`)}}).filter(({children:e=[]})=>e.length>0).map(({filterName:e,children:t=[]})=>`${e}:${t.join(",")}`).join(";")},Pi={page:{pageInfo:{onsiteSearchTerm:"",onsiteSearchFilters:"",onsiteSearchResults:0,onsiteSearchType:""}}},ki=(e,t,s=!0)=>{window.digitalData=window.digitalData??Pi,window.digitalData.page.pageInfo={...window.digitalData.page.pageInfo,...e},s&&(e=>{window._satellite?window._satellite.track(e):(console.log({...window.digitalData?.page.pageInfo}),console.warn("Satellite track is not defined"))})(t)},Hi=(e,t,s)=>{ki({onsiteClickedItemPosition:s+1,onsiteClickedItemUrl:e,onsiteClickedItemTitle:t},Ri.REDIRECT)};const Bi=({state:e,payload:t,displayModeMappings:s,isLoadMoreChange:i=!1,isPaginationChange:n=!1,dateLocale:a="en-GB",tags:r={},alwaysUpdateSearchResultsCount:o=!1})=>{const l=e.resultSearchTerm!==t.resultSearchTerm||e.wasFirstBatchLoaded!==t.wasSearched||o,{wasSearched:c,isLoading:d,resultSearchTerm:h,totalPages:u}=t;var m;return{wasFirstBatchLoaded:c,results:i?[...e.results,...Ti(t.results,s,a??"en-GB",r)]:Ti(t.results,s,a??"en-GB",r),isLoading:d,resultsPerCategory:l?(m=t.facets)?Object.values(m).reduce((e,t)=>t?Object.assign(e,Object.fromEntries(t[0].data.map(e=>[e.value,e.count]))):e,{}):{}:e.resultsPerCategory,resultsCount:l?t.totalResults:e.resultsCount,currentResultsCount:t.totalResults,totalPages:u,currentPage:t.current,resultSearchTerm:h,resultsFilters:t.filters,isPageChange:i||n}},Fi={wasFirstBatchLoaded:!1,resultsCount:0,currentResultsCount:0,isLoading:!1,resultsPerCategory:{},results:[],currentPage:1,totalPages:0,resultSearchTerm:"",resultsFilters:[],isPageChange:!1},qi=(e,t=[],{setSearchTermConfig:s={},currentBatch:i=1,useMockData:n=!1,shouldConcat:a=!1,categoryFilters:r=[],searchType:o=Di.ALL,pageType:l="",isAnalyticsEnabled:c=!1,isDocumentCentre:d=!1,shouldInitializeSearch:h=!0}={})=>{const{dateLocale:u,displayModeMappings:m}=mi(),p=(0,ti.useRef)([]),[g,f]=(0,ti.useState)(!1),[E,b]=(0,ti.useState)(Fi),T=(0,ti.useContext)(di),S=(()=>{const{tagTitlesApiUrl:e}=mi(),[t,s]=(0,ti.useState)(void 0);return(0,ti.useEffect)(()=>{e&&fetch(e).then(e=>e.ok?e.json():Promise.reject()).then(e=>s(e.tags)).catch(e=>{console.log("useTags - fetch error:",e),s({})})},[]),t})();if(function(e){e||console.error("No defined search provider for useSearchResults hook")}(T),(0,ti.useEffect)(()=>{if(!T?.subscribeToStateChanges)return;const e=e=>{b(t=>{if(t.isLoading&&!e.isLoading||t.resultSearchTerm!==e.resultSearchTerm||d&&((e,t)=>{if(e.length!==t.length)return!0;for(let s=0;s<e.length;s++)if(e[s].title!==(t[s].custom_title?.raw??""))return!0;return!1})(t.results,e.results)){const n=t.resultSearchTerm!==e.resultSearchTerm,l=t.isLoading&&!e.isLoading,h=t.wasFirstBatchLoaded!==e.wasSearched,g=(s=t.resultsFilters,i=e.filters,!(s.length!==i.length||!s.every(({values:e,field:t})=>{const s=i.find(e=>e.field===t);return Si(e,s?.values??[])})||n||h)&&t.currentPage!==e.current&&l),f=a&&g,E=g&&!f;return c&&!E&&!f&&l&&(!d||n)&&(({searchTerm:e,searchResultsCount:t,filters:s,selectedFilters:i,searchType:n,shouldTrackEvent:a=!0,filterOverride:r})=>{ki({onsiteSearchTerm:e,onsiteSearchResults:t||"zero",onsiteSearchType:n,...r?{onsiteSearchFilters:r}:i?{onsiteSearchFilters:xi({filters:s,selectedFilters:i,searchType:n})}:{}},Ri.SEARCH,a)})({searchTerm:e.searchTerm,searchResultsCount:e.totalResults,selectedFilters:p.current,filters:r,searchType:o,filterOverride:d?"Documents":void 0}),Bi({state:t,payload:e,isLoadMoreChange:f,isPaginationChange:E,dateLocale:u,tags:S,displayModeMappings:m,alwaysUpdateSearchResultsCount:d})}var s,i;return{...t,isLoading:e.isLoading,isPageChange:!1}})};
3return T.subscribeToStateChanges(e),()=>T.unsubscribeToStateChanges(e)},[b,S]),(0,ti.useEffect)(()=>{if(!T?.getActions)return;const i=!h&&!E.wasFirstBatchLoaded;d&&!t.length||i||T.getActions().setSearchTerm(e,s)},[e]),(0,ti.useEffect)(()=>{if(!T?.getActions)return;const i=yi(p.current,t);p.current=t,i.length>0&&(T.getActions().clearFilters(),t.forEach(({name:e,values:t,filterType:s})=>{t.filter(e=>""!==e).length>0&&(e===ri.ALL_TAGS?T.getActions().addFilter("any",{[ri.ALL_TAGS]:t},"all"):T.getActions().addFilter(e,t,s===ai.AND?"all":"any"))}),d&&T.getActions().setSearchTerm(e,s),T.getActions().setCurrent(1))},[t,p]),(0,ti.useEffect)(()=>{b(e=>({...e,results:e.results.map(e=>({...e,...e.primaryTag&&S?{primaryTag:S[e.primaryTag]}:{}}))})),f(d||void 0!==S)},[S]),(0,ti.useEffect)(()=>{if(!T?.getActions)return;const e=!h&&!E.wasFirstBatchLoaded;d&&!t.length||e||T.getActions().setCurrent(i)},[i]),!T?.subscribeToStateChanges||!T.getActions)return{searchResults:[],searchResultsCount:0,resultsPerCategory:{},totalPages:0,wasFirstBatchLoaded:!0,isLoading:!1,hasMoreResults:!1,isPageChange:!1,currentResultsCount:0,tags:S};if(n)return((e,t)=>({searchResults:Ii(e),searchResultsCount:10,currentResultsCount:10,totalPages:5,resultsPerCategory:{},wasFirstBatchLoaded:!0,isLoading:!1,hasMoreResults:!0,isPageChange:t>1}))(m.mappings[l],i);const v=g?E:Fi;return{searchResults:v.results,searchResultsCount:v.resultsCount,resultsPerCategory:v.resultsPerCategory,totalPages:v.totalPages,wasFirstBatchLoaded:v.wasFirstBatchLoaded,isLoading:v.isLoading,hasMoreResults:v.currentPage<v.totalPages,isPageChange:E.isPageChange,currentResultsCount:E.currentResultsCount,tags:S}},$i=9,zi=13,Ui="Tab",Wi="Enter",Vi="Escape",Gi="Space",Ki="ArrowLeft",Yi="ArrowUp",ji="ArrowRight",Xi="ArrowDown",Qi=({label:e,isDisabled:t=!1,isHidden:s=!1,onClick:i=()=>{},analyticsData:n,analyticsId:a,className:r="ds-button ds-button--secondary-1 ds-button--icon ds-button--icon-arrow-down"})=>ti.createElement("div",{className:"search-page__action-button searchbox__button-container"},ti.createElement("button",{className:`searchbox__button searchbox__button--submit ${r}${s?" is-hidden":""}`,onClick:i,disabled:t,"data-dtm-data":n,"data-dtm-id":a,"aria-hidden":s},ti.createElement("span",{className:"searchbox__button-label searchbox__button-label--submit sr-only"},e))),Zi="mobile",Ji="tablet",en="tablet-portrait",tn="tablet-landscape",sn="desktop";var nn=s(3700);const an=new class{constructor(){this.debouncedGetAsyncSuggestions=(0,nn.s)(500,this.getAsyncSuggestions.bind(this))}sanitizeHTML=e=>{const t=document.createElement("div");return t.innerText=e,t.innerHTML};fetchSuggestions=(e,t,s)=>new Promise((i,n)=>{this.debouncedGetAsyncSuggestions(e,t,s,i,n)});getAsyncSuggestions(e,t,s,i,n){fetch(e,{method:"POST",headers:{"Content-Type":"application/json",Authorization:s?.indexOf("search-")>=0?`Bearer ${s}`:`Basic ${s}`,"Query-Suggestion":!0},body:JSON.stringify(t)}).then(e=>{if(!e.ok)throw new Error("Network response was not ok");return e.json()}).then(e=>{i(e)}).catch(e=>{console.error("Fetch error:",this.sanitizeHTML(e.message)),n(e)})}},rn=(0,ti.forwardRef)((e,t)=>{const{children:s,direction:i="y",className:n="",scrollContainerClassName:a="",enableScrollbar:r=!0,onScroll:o,style:l,scrollContainerStyle:c}=e,d=(0,ti.useRef)(null),h=(0,ti.useRef)(null),u=(0,ti.useRef)(null),m=(0,ti.useRef)(!1),p=(0,ti.useRef)({x:0,y:0}),g="start-scroll",f=(0,ti.useCallback)((e,t)=>{const s=e.querySelector(`.custom-scrollbar.custom-scrollbar--${t}`);if(s){const e=s.querySelector(".custom-scrollbar__thumb");if(e)return{scrollbar:s,thumb:e}}const i=`<div class="custom-scrollbar custom-scrollbar--${t}"><div class="custom-scrollbar__thumb"></div></div>`;e.insertAdjacentHTML("beforeend",i);const n=e.querySelector(`.custom-scrollbar.custom-scrollbar--${t}`),a=n?.querySelector(".custom-scrollbar__thumb");return n&&a?{scrollbar:n,thumb:a}:(console.warn("Failed to create scrollbar elements"),null)},[]),E=(0,ti.useCallback)((e,t,s,i)=>{if("x"===i){const i=(e.offsetWidth||0)/(t.scrollWidth||1);s.style.width=100*i+"%"}else{const i=(e.offsetHeight||0)/(t.scrollHeight||1);s.style.height=100*i+"%"}},[]),b=(0,ti.useCallback)((e,t,s,i)=>{if("x"===i){const i=(e.scrollLeft||0)/((e.scrollWidth||1)-(e.offsetWidth||1))*((t.offsetWidth||0)-(s.offsetWidth||0));s.style.transform=`translateX(${i}px)`}else{const i=(e.scrollTop||0)/((e.scrollHeight||1)-(e.offsetHeight||1))*((t.offsetHeight||0)-(s.offsetHeight||0));s.style.transform=`translateY(${i}px)`}},[]),T=(0,ti.useCallback)((e,t)=>"x"===t?(e.scrollWidth||0)>(e.offsetWidth||0):(e.scrollHeight||0)>(e.offsetHeight||0),[]),S=(0,ti.useCallback)((e,t,s,i)=>{e.classList.add(g);t.style.display="block",s(),i()},[g]),v=(0,ti.useCallback)((e,t)=>{e.classList.remove(g);t.style.display="none"},[g]),L=(0,ti.useCallback)(e=>{e.preventDefault(),m.current=!0,p.current={x:e.clientX,y:e.clientY},document.body.style.userSelect="none"},[]),y=(0,ti.useCallback)(e=>{if(!m.current)return;const t=d.current,s=h.current,n=u.current;if(!t||!s||!n)return;const{scrollbar:a,thumb:r}=n;if("x"===i){const t=e.clientX-p.current.x,i=(a.offsetWidth||0)-(r.offsetWidth||0);if(i<=0)return;const n=t/i,o=(s.scrollWidth||1)-(s.offsetWidth||1),l=s.scrollLeft,c=Math.max(0,Math.min(o,l+n*o));s.scrollLeft=c,p.current.x=e.clientX}else{const t=e.clientY-p.current.y,i=(a.offsetHeight||0)-(r.offsetHeight||0);if(i<=0)return;const n=t/i,o=(s.scrollHeight||1)-(s.offsetHeight||1),l=s.scrollTop,c=Math.max(0,Math.min(o,l+n*o));s.scrollTop=c,p.current.y=e.clientY}},[i]),_=(0,ti.useCallback)(()=>{m.current=!1,document.body.style.userSelect=""},[]),A=(0,ti.useCallback)(()=>{const e=d.current,t=h.current,s=u.current;if(!(e&&t&&s&&r))return;const{scrollbar:n,thumb:a}=s;T(t,i)?(S(e,n,()=>E(e,t,a,i),()=>b(t,n,a,i)),a.addEventListener("mousedown",L)):(v(e,n),a.removeEventListener("mousedown",L))},[i,r,T,E,b,S,v,L]),C=(0,ti.useCallback)(()=>{A()},[A]),w=(0,ti.useCallback)(e=>{const t=h.current;
3t&&t.scrollTo({top:e.top,left:e.left,behavior:e.behavior??"auto"})},[]),N=(0,ti.useCallback)(()=>h.current,[]);(0,ti.useImperativeHandle)(t,()=>({recalculate:C,scrollTo:w,getScrollContainer:N}),[C,w,N]);const I=(0,ti.useCallback)(e=>{const t=d.current,s=h.current,n=u.current;if(t&&s&&n){const{scrollbar:e,thumb:t}=n;b(s,e,t,i)}o&&o(e)},[i,b,o]);return(0,ti.useEffect)(()=>{const e=d.current,t=h.current;if(!e||!t||!r)return;const s=f(e,i);if(!s)return;u.current=s,A();const n=()=>A();return window.addEventListener("resize",n),document.addEventListener("mousemove",y),document.addEventListener("mouseup",_),()=>{window.removeEventListener("resize",n),document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",_);const e=u.current;if(e){const{thumb:t}=e;t.removeEventListener("mousedown",L)}}},[i,r,f,A,y,_,L]),(0,ti.useEffect)(()=>{const e=setTimeout(()=>{C()},50);return()=>clearTimeout(e)},[s,C]),ti.createElement("div",{ref:d,className:`custom-scroll ${n}`.trim(),style:l},ti.createElement("div",{ref:h,className:`scroll-container scroll-${i} ${a}`.trim(),onScroll:I,style:c,tabIndex:-1},s))});rn.displayName="CustomScroll";var on=rn;const ln="Clear Search",cn=({setSearchPhrase:e,placeholder:t="Search our strategies",placeholderMobile:s="",clearLabel:i,searchPhrase:n,buttonLabel:a,onSubmit:r,onClear:o,enableAutoSuggest:l,currentBreakpoint:c,smallInDesktop:d})=>{const[h,u]=(0,ti.useState)(!1),m=(0,ti.useRef)(null),p=(0,ti.useRef)(null),g=(0,ti.useRef)(null),f=(0,ti.useRef)(null),{suggestions:E,setSuggestions:b,fetchSuggestions:T}=(({searchPhrase:e,enableAutoSuggest:t})=>{const{siteId:s,endpointBase:i,searchKey:n,engineName:a,pageType:r}=mi(),[o,l]=(0,ti.useState)([]),c=/^[a-zA-Z0-9 !@#$%^&*()_+\-={};'":\\|,.<>/?]*$/,d=async e=>{const o=e.currentTarget.value.replace(/^-/,"\\-"),c=`${i}/api/as/v1/engines/${a}/search.json`,d={query:o,search_fields:{custom_title:{}},result_fields:{custom_title:{raw:{},snippet:{}}},filters:{all:[...r?[{page_type:r}]:[],{site_id:s}],none:{hide_in_search:["true"]}},page:{size:10,current:1}};if(t&&o?.length>=3&&i&&a&&n&&s)try{const e=((e,t)=>{const s=e?.results?.filter(e=>{const s=t.replace(/^\\/,"");return e.custom_title.raw?.toLowerCase().includes(s.toLowerCase())}),i=[];return s?.forEach(e=>{i.includes(e.custom_title.raw)||i.push(e.custom_title.raw)}),i})(await an.fetchSuggestions(c,d,n),o);l(e)}catch(e){console.error(e)}else l([])};return(0,ti.useEffect)(()=>{e&&e.length>=3&&o?.length>0&&c?.test(e)&&d({currentTarget:{value:e}})},[e]),{suggestions:o,setSuggestions:l,fetchSuggestions:d}})({searchPhrase:n,enableAutoSuggest:l});(0,ti.useEffect)(()=>{u(!!(l&&n?.length>2&&E?.length>0))},[l,E,n]),(0,ti.useEffect)(()=>{h&&m.current&&setTimeout(()=>m.current?.recalculate(),50)},[E,h]),(0,ti.useEffect)(()=>{const e=()=>{h&&u(!1)},t=e=>{h&&"Escape"===e.key&&u(!1)};return document.addEventListener("click",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("click",e),document.removeEventListener("keydown",t)}},[h]),(0,ti.useEffect)(()=>{const e=e=>{if(!h||!g.current)return;const t=g.current.querySelector(".suggestions-list"),n=t?.querySelectorAll("li");if(!n||0===n.length)return;const a=e.key===Xi,r=e.key===Yi,o=e.key===Vi,l=e.key===Ui;if(a||r)e.preventDefault(),a?s(n):i(n);else if(o){e.preventDefault(),u(!1);const t=g.current.querySelector(".searchbox__input");t instanceof HTMLInputElement&&t.focus()}else if(l){e.preventDefault(),u(!1);const t=g.current.querySelector(".searchbox__clear");t instanceof HTMLButtonElement&&t.focus()}},t=e=>{f.current&&clearTimeout(f.current),f.current=setTimeout(()=>{if(!m.current)return;const t=m.current.getScrollContainer();if(!t)return;const s=e.offsetTop,i=s+e.offsetHeight,n=t.scrollTop,a=t.clientHeight,r=n+a;s<n?m.current.scrollTo({top:s,behavior:"smooth"}):i>r&&m.current.scrollTo({top:i-a,behavior:"smooth"}),f.current=null},100)},s=e=>{const s=document.activeElement;if(!(s&&s instanceof HTMLElement))return;let i=Array.from(e).indexOf(s)+1;i>=e.length&&(i=0);const n=e[i];n instanceof HTMLElement&&(n.focus(),t(n))},i=e=>{const s=document.activeElement;if(s instanceof HTMLElement){let i=Array.from(e).indexOf(s)-1;i<0&&(i=e.length-1);const n=e[i];n instanceof HTMLElement&&(n.focus(),t(n))}};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[h,g]),(0,ti.useEffect)(()=>()=>{f.current&&(clearTimeout(f.current),f.current=null)},[]);const S=t=>{e(t),b([]),r?.(t)};return ti.createElement("div",{ref:g,className:"search-bar searchbox search-box "+(d?"search-box--small-desktop":"")},ti.createElement("div",{className:"search-bar-labelled searchbox__form"},ti.createElement("div",{className:"searchbox__input-container searchbox__input-container--show-clear"},ti.createElement("label",{className:"searchbox__input-label",htmlFor:`search_search-bar-${t.toLowerCase().split(" ").join("-")}`},t),ti.createElement("input",{ref:p,id:`search_search-bar-${t.toLowerCase().split(" ").join("-")}`,type:"text",className:"searchbox__input placeholder-visible "+(n?"has-search-term":""),"data-testid":"search-bar-input",value:n,onChange:t=>{const s=t.currentTarget.value;e(s),T(t)},onKeyDown:e=>{r&&e.key===Wi&&r(n)},placeholder:t,required:!0}),ti.createElement("label",{id:`search_search-bar-label-${t.toLowerCase().split(" ").join("-")}`,htmlFor:`search_search-bar-${t.toLowerCase().split(" ").join("-")}`,className:n?"is-hidden hidden":"sr-only"},!s||c!==Zi&&c!==Ji?t:s)),ti.createElement("div",{className:"search-bar__button--clear searchbox__action-wrapper"},ti.createElement("button",{className:n?"is-visible searchbox__clear":"searchbox__clear",onClick:()=>{o?o():e("");const t=g.current?.querySelector(".searchbox__input");t instanceof HTMLInputElement&&t.focus()},onKeyDown:t=>{t.key!==Wi&&t.key!==Gi||(t.preventDefault(),o?o():e(""),p.current?.focus())},disabled:!1,"data-dtm-data":ln,"data-dtm-id":ln,"aria-hidden":!n,"aria-label":ln},ti.createElement("span",{className:"searchbox__button-label searchbox__button-label--clear"},i),ti.createElement("span",{className:"searchbox__button-label searchbox__button-label--icon"},ti.createElement("span",{className:"icomoon icon-close","aria-hidden":"true"}))),ti.createElement(Qi,{className:"ds-button ds-button--primary-1",label:a,isDisabled:!1,onClick:()=>{r&&r(n)},isHidden:!1,analyticsId:a,analyticsData:a}))),l&&h&&ti.createElement("div",{className:"suggestions-container"},ti.createElement(on,{direction:"y",ref:m},ti.createElement("ul",{className:"suggestions-list search-suggestions",role:"listbox"},E?.map(e=>{const t=new RegExp(`(${s=n,s.replaceAll(/[ -!@#$%^&*()_+\-={};'":\\|,.<>/?]/g,String.raw`\$&`)})`,"gi");var s;const i=e.replace(t,"<span>$1</span>");return ti.createElement("li",{key:e,"aria-selected":"false",onClick:e=>S(e.currentTarget?.textContent??""),onKeyDown:e=>{e.key!==Wi&&e.key!==Gi||(e.preventDefault(),S(e.currentTarget?.textContent??""))},tabIndex:0,role:"option",dangerouslySetInnerHTML:{__html:i}})})))))},dn=({shouldClearAfterSubmit:e=!1,placeholder:t="",placeholderMobile:s="",initialSearchQuery:i="",buttonLabel:n="",afterSubmitCallback:a=()=>{}
3,enableAutoSuggest:r=!1,currentBreakpoint:o="",showInitialQueryValue:l=!0,smallInDesktop:c=!1,clearLabel:d=""}={})=>{const[h,u]=(0,ti.useState)(l?i:""),[m,p]=(0,ti.useState)(i),g=ti.createElement(cn,{placeholder:t,placeholderMobile:s,searchPhrase:h,setSearchPhrase:u,onSubmit:t=>{p(t),e&&u(""),a()},onClear:()=>{u(""),p("")},buttonLabel:n,enableAutoSuggest:r,currentBreakpoint:o,smallInDesktop:c,clearLabel:d});return{searchPhrase:m,setSearchPhrase:p,SearchBarComponent:g}},hn=e=>e.type===Gs.ARTICLE,un=e=>e.type===Gs.DOCUMENT,mn=e=>e.type===Gs.UNIVERSAL,pn=e=>e.type===Gs.VERSATILE,gn=e=>e.type===Gs.DOCUMENT_CENTRE,fn=(e,t)=>e.querySelector(`.search-page__grid-item:nth-of-type(${t}) .search-page__tile-link`),En=e=>t=>e.value===t.value&&e.name===t.name,bn=e=>"children"in e,Tn=600,Sn=960,vn=1280,Ln={mobile:`(max-width: ${Tn-1}px)`,tabletPortrait:`(min-width: ${Tn}px) and (max-width: ${Sn-1}px)`,tabletLandscapeUp:`(min-width: ${Sn}px)`,tablet:`(min-width: ${Tn}px) and (max-width: ${vn-1}px)`,desktop:`(min-width: ${vn}px)`},yn=()=>window.matchMedia(Ln.mobile).matches,_n=()=>window.matchMedia(Ln.tablet).matches,An=()=>window.matchMedia(Ln.desktop).matches,Cn=(e=!1)=>yn()?Zi:_n()?e?window.matchMedia(Ln.tabletPortrait).matches?en:tn:Ji:sn;const wn=new class{idCounter=0;subscribers=[];addListeners(){window.addEventListener("resize",this.update),window.addEventListener("orientationchange",this.update)}removeListeners(){window.removeEventListener("resize",this.update),window.removeEventListener("orientationchange",this.update)}subscribe(e){const t=this.idCounter;return this.subscribers.push({id:t,callback:e}),this.idCounter+=1,1===this.subscribers.length&&this.addListeners(),this.unsubscribe.bind(this,t)}unsubscribe(e){this.subscribers=this.subscribers.filter(({id:t})=>t!==e),0===this.subscribers.length&&this.removeListeners()}update=(0,nn.s)(200,()=>{const e={windowWidth:window.innerWidth,windowHeight:window.innerHeight,currentDevice:Cn(),currentDeviceSplitTablet:Cn(!0)};this.subscribers.forEach(({callback:t})=>t(e))})},Nn=e=>{(0,ti.useEffect)(()=>wn.subscribe(e),[])},In=(e=!1)=>{const t=Cn(e),[s,i]=(0,ti.useState)(t);return Nn(({currentDevice:t,currentDeviceSplitTablet:s})=>{i(e?s:t)}),s},Rn=e=>({name:"root",value:"root",children:e.map(({name:e,value:t})=>({name:e,value:t,children:[]}))}),Dn=(e,t)=>{const s=t[t.length-1];if(s.children.find(t=>t.value===e.value&&t.name===e.name))return t;for(let i=0;i<s.children.length;i++){const n=s.children[i];if(bn(n)){const s=Dn(e,[...t,n]);if(s)return s}}return null},Mn=(e,t)=>{const s=Dn(e,[t])?.slice(-1)[0]??null;return s?s.children.find(En(e))??null:null},On=e=>e.flatMap(e=>bn(e)&&e.children.length?On(e.children):{name:e.name,value:e.value}),xn=e=>{const t=e.children?.map(xn)??[];return{...e.value?{[e.value]:e.name}:{},...t.reduce((e,t)=>Object.assign(e,t),{})}},Pn=(e,t)=>{const s=Dn(e,[t]);if(s){const t=s[s.length-1],i=En(e);t.children=t.children.filter(e=>!i(e))}return t},kn=e=>{const t=[];return bn(e)&&e.children.length>0&&e.children.forEach(e=>{t.push(e.value),bn(e)&&t.push(...kn(e))}),t},Hn=({filters:e,isDesktop:t,setFiltersQuery:s,isFundfilelisting:i})=>{const{tagsPrefix:n}=mi();let a=!1;const r=mi(),[o,l]=(0,ti.useState)([]),[c,d]=(0,ti.useState)([]),[h,u]=(0,ti.useState)([]),[m,p]=(0,ti.useState)([]),[g,f]=(0,ti.useState)([]),[E,b]=(0,ti.useState)([]),[T,S]=(0,ti.useState)(Rn(e)),[v,L]=(0,ti.useState)(Rn(e)),[y,_]=(0,ti.useState)(Rn(e)),[A,C]=(0,ti.useState)(Rn(e));let w,N;a=!!i||r.dontShowButtonsDesktop,w=yn()||_n()?c:a?o:h,N=yn()||_n()?v:a?T:y;const I=m,R=E,D=g,M=A,O=(e,s)=>{d(s),L(e),t&&!a&&_(e)},x=(e,t)=>{u(t),_(e),S(e),l(t)},P=()=>{O(T,o),t&&!a&&b(o)},k=e=>{s((e=>e.children.map(e=>On(e.children)).flatMap(e=>({filterType:ai.OR,values:e.map(({value:e})=>e),name:ri.ALL_TAGS})))(e))},H=(e,t)=>{const s=(e=>Oi(e,"children"))(t.children);return[...w,e].filter(e=>s.some(t=>t.value===e.value))},B=(e,s)=>{const i=H(e,s);(t&&a?x:O)(s,i),t&&a&&k(s)},F=(e,t)=>{for(let s=e.length-1;s>=0;s--){const i=t.find(t=>e[s]&&e[s].value===t.value);if(i&&(e.splice(s,1),i?.children?.length))return F(e,i.children)}return e},q=(e,t,s,i)=>(s.forEach(s=>{if(e.filter(e=>e.value===s.value).length){if(0===t.filter(e=>e.value===s.value).length){const e=i.findIndex(e=>e.value===s.value);i.splice(e,1)}}s.children.length&&q(e,t,s.children,i)}),i),$=(e,t)=>{let s=t;return e.children?.length?(s=[...new Set([...e.children,...s])],e.children.forEac
3h(e=>{const t=$(e,s);s=[...new Set([...t,...s])]}),s):s},z=(e,t)=>{let s=t,i=[];return s=[...new Set([...e,...s])],e.forEach(e=>{const t=$(e,s);i=[...new Set([...t,...s,...i])]}),i};return(0,ti.useEffect)(()=>{const t=(e=>({...e.map(xn).reduce((e,t)=>Object.assign(e,t),{})}))(e),s=(new URL(globalThis.location.href).searchParams.get("t")?.split(",")??[]).map(e=>`${n}${e}`).filter(e=>t[e]).map(e=>({value:e,name:t[e]})),[i,a]=((e,t,s)=>{const i=[];return e.forEach(e=>{const n=Dn(e,[t]);n&&[...n,Mn(e,t)].slice(1).reduce((e,t)=>{if(!i.find(En(t))){const n={name:t.name,value:t.value},a=Mn({name:e.name,value:e.value},s);a&&bn(a)&&a.children.push({...n,children:[]}),i.push(n)}return t})}),[i,s]})(s,{name:"root",value:"root",children:e},Rn(e));p(i),x(a,i),k(a),C(a)},[]),(0,ti.useEffect)(()=>{const e=new URL(globalThis.location.href),t=e.searchParams;t.delete("t"),o.length&&t.set("t",o.map(({value:e})=>e.replace(n,"")).join(",")),globalThis.history.replaceState(null,"",e.href)},[o]),(0,ti.useEffect)(()=>{t&&a||P()},[t,o,a]),{filterState:w,paramFilters:I,desktopFilterState:R,desktopFilterLabels:D,nestedFilterState:N,nestedDesktopDraftFilterState:M,copyFiltersToDraft:P,resetFilters:()=>{C(Rn(e)),x(Rn(e),[]),O(Rn(e),[])},applyDraftFilters:()=>{x(v,c)},applyDesktopDraftFilters:t=>{const s=[...y.children[t].children],i=[...e[t].children],n=z(s,[]),a=[...new Set([...h,...n])],r=a.filter((e,t)=>t===a.findIndex(t=>t.value===e.value)),o=z(s,[]),l=[...r],c=[...o],d=q(l,c,i,r).sort((e,t)=>{const s=e.value.replace(/^mandg:/,""),i=t.value.replace(/^mandg:/,""),n=(s.match(/\//g)||[]).length,a=(i.match(/\//g)||[]).length;if(i.startsWith(`${s}/`))return-1;if(s.startsWith(`${i}/`))return 1;const r=e=>{const t=e.split("/");return t.length>=4?t[3]:t.at(-1)??""},o=r(s),l=r(i);return o!==l?o.localeCompare(l):n!==a?n-a:e.name.localeCompare(t.name)});C(y),x(y,d),k(y),f(d)},setNestedToInitial:e=>{_(e)},submitSelectedFilters:k,toggleFilter:B,deleteFilter:e=>{if(t&&!a){const t=Mn(e,y);if(t&&bn(t)&&t.children.length>0){const s=kn(t),i=g.filter(t=>t.value!==e.value&&!s.includes(t.value)),n=E.filter(t=>t.value!==e.value&&!s.includes(t.value));f(i),b(n)}((e,t)=>{const s=H(e,t);x(t,s),k(t)})(e,((e,t)=>{const s=Mn(e,t);if(s&&bn(s)){const i=kn(s);let n=Pn(e,t);return i.forEach(t=>{const s={name:e.name,value:t};n=Pn(s,n)}),n}return Pn(e,t)})(e,y))}else B(e,Pn(e,N))},resetDropDownFilters:e=>{const t={...y},s=[...h],i=t.children[e],n=F(s,i.children);i.children=[],_(t),k(t),u(n),l(n)}}},Bn=({text:e,type:t,onClick:s,ariaLabel:i})=>ti.createElement("li",{className:"filter__selected-item"},ti.createElement("button",{className:""+("tag"===t?"banner-search-box__tag-list-item  ds-button--filter":" btn-text text-link-teal category__clear_all"),onClick:s,"data-testid":`remove-filter-button:${e}`,"aria-label":i},e,"tag"===t&&ti.createElement("span",{className:"icomoon icon-close"}))),Fn=({clearAllLabel:e,removeSearchText:t,isDesktop:s,selectedFilters:i,searchPhrase:n,setSearchPhrase:a,deleteFilter:r,clearFilters:o})=>ti.createElement("div",{className:"filter__selected-items"},i.length>0||n?ti.createElement("ul",{className:"filter__selected-items-list"},n?ti.createElement(Bn,{type:"tag",key:"filter-button-searchphrase",onClick:()=>a(""),text:`"${n}"`,ariaLabel:t}):null,s&&i.map(e=>ti.createElement(Bn,{type:"tag",key:e.value,"data-testid":"filter-button",text:e.name,onClick:()=>r(e),ariaLabel:t})),s&&i.length>0&&ti.createElement(Bn,{text:e,"data-testid":"clear-all-button",type:"clear",onClick:o})):null),qn=({arrayOfChildren:e,childFilteringState:t,filterGroup:s})=>{const i=En(s);if(t){const s=e.findIndex(i);return-1===s?[...e,t]:[...e.slice(0,s),t,...e.slice(s+1)]}return e.filter(e=>!i(e))},$n=({type:e,text:t,onClick:s})=>ti.createElement("button",{className:`filter__form-control-buttton ${e}`,onClick:s},t),zn=e=>e.children.reduce((e,t)=>bn(t)?zn(t)+e+1:e+1,0),Un=({onChange:e,text:t,value:s,isChecked:i,onTab:n=()=>{}})=>ti.createElement("li",{"data-testid":`filter-checkbox:${t}`,className:"filter__form-item filter__form-item--value",role:"none"},ti.createElement("input",{onKeyDown:({keyCode:t,shiftKey:s})=>{t===zi&&e(),t===$i&&!s&&n()},type:"checkbox",id:s,onChange:e,checked:i,"aria-label":t}),ti.createElement("label",{htmlFor:s},ti.createElement("span",null,t))),Wn=(0,ti.forwardRef)(({handleKeyDown:e,isExpanded:t,onClick:s,header:i,counter:n=0,shouldDisplayCounter:a=!1,isMainFilterGroup:r=!1},o)=>ti.createElement("button",{ref:o,className:["filter__form-item-toggle-button",r?"filter__form-item-toggle-button--main-filter-group":"",t?"filter__form-item--expanded":""].join(" "),"aria-expanded":t,"aria-haspopup":"true",onClick:s,onKeyDown:e},ti.createElement("span",{className:"filter__form-item-toggle-button-label"},i,a&&ti.createElement("span",{className:"filter__form-item-toggle-button-label-suffix"}," (",n,")"))));Wn.displayName="ToggleButton";const Vn=({listFilter:e,isMobile:t,filters:s,toggleFilter:i,filterState:n,closeDropdown:a,isMainFilterGroup:r=!1,handleKeyDown:o=()=>
3null,isExpanded:l=!1,shouldCloseDropdownOnTab:c=!1,listNestedFilterState:d,onToggle:h=()=>null,clearDropDownFilters:u,submitFilters:m,filterGroupIndex:p,setExpandedDropdown:g,nestedDesktopDraftFilterState:f,setNestedToInitial:E,level:b=1})=>{const T=(0,ti.useRef)(null),S=(0,ti.useRef)(null),v=(0,ti.useRef)(null),L=(0,ti.useRef)(null),y=(0,ti.useRef)(!1),[_,A]=(0,ti.useState)(0),[C,w]=(0,ti.useState)("left"),N=mi(),I=(0,ti.useRef)(null);let R=!1;const D=T?.current?.closest(".funds-file-listing-app");R=!!D||N.dontShowButtonsDesktop;const M=e=>{if(!t&&T.current&&r){const t=document.documentElement.clientWidth,s=T.current.getBoundingClientRect().left,i=17,n=t-(Math.ceil(s)+T.current.offsetWidth+i);return n<0?Math.ceil(n+e):e}return 0},O=()=>{"right"!==C&&I.current&&v.current&&(v.current.getBoundingClientRect().right>window.innerWidth?w("right"):w("left"),setTimeout(()=>I.current?.recalculate(),100))};(0,ti.useEffect)(()=>{l&&setTimeout(()=>I.current?.recalculate(),100)},[l]),(0,ti.useEffect)(()=>{A(M(_)),O()},[]),Nn(()=>{A(M),O()}),(0,ti.useEffect)(()=>{const e=e=>{T.current&&!S.current?.contains(e.target)&&l&&(g?.(null),E&&f&&E(f))};return document.addEventListener("click",e),()=>document.removeEventListener("click",e)},[l]);const x=(0,ti.useRef)(l);(0,ti.useEffect)(()=>{x.current&&!l&&r&&setTimeout(()=>{L.current?.focus()},10),x.current=l,l||(y.current=!1)},[l,r]),(0,ti.useEffect)(()=>{s&&l&&I.current&&setTimeout(()=>I.current?.recalculate(),50)},[s,l]),(0,ti.useEffect)(()=>{const e=v.current;if(!e)return()=>{};const t=e=>{"Tab"===e.key&&(y.current=!0)},s=e=>{const t=e.relatedTarget;r&&l&&y.current&&!e.currentTarget.contains(t)&&!S.current?.contains(t)&&(a(),y.current=!1)};return e.addEventListener("keydown",t),e.addEventListener("focusout",s),()=>{e?.removeEventListener("keydown",t),e?.removeEventListener("focusout",s)}},[l]);const P=!r&&b>=2?` filter__form-item--group-level-${b}`:"",k=ti.createElement("ul",{className:"filter__form-items-list--list-items",ref:T},s?.map(({children:r,value:o,name:l},h)=>{const u={name:l,value:o},m=En(u);return r?.length?ti.createElement(Vn,{key:l,listFilter:u,isMobile:t,toggleFilter:(t,s)=>i(t,{...e,children:qn({filterGroup:u,childFilteringState:s,arrayOfChildren:d?.children||[]})}),filterState:n,filters:r,filterGroupIndex:p,closeDropdown:a,isExpanded:!!d?.children.find(m),shouldCloseDropdownOnTab:c&&(s?.length??0)-1===h,listNestedFilterState:d?.children.find(m)||null,level:b+1}):ti.createElement(Un,{key:l,onChange:()=>{i(u,{...e,children:d?.children.find(m)?d.children.filter(e=>!m(e)):[...d?.children||[],u]})},onTab:()=>c&&(s?.length??0)-1===h&&N.dontShowButtonsDesktop?a():null,isChecked:!!d?.children.find(e=>e.value===o),text:l,value:o})}));return ti.createElement("li",{className:`filter__form-item filter__form-item--group${P} ${l?"filter__form-item--expanded":""}`,"data-testid":`filter-group:${e.name}`,ref:S},ti.createElement(Wn,{ref:L,isExpanded:l,onClick:()=>{r?h(!l):i(e,l?null:{...e,children:[]})},handleKeyDown:e=>{r?o(e):e.key!==Ui||e.shiftKey||!c||l||a()},isMainFilterGroup:r,shouldDisplayCounter:r&&t&&!!d&&d.children.length>0,counter:r&&t&&d?zn(d):0,header:e.name}),ti.createElement("div",{className:`filter__form-items-list search-category-filter-list filter__form-items-list--${C}`,"aria-hidden":!l,ref:v},r?ti.createElement(on,{direction:"y",ref:I},k):k,!R&&r&&ti.createElement("div",{className:"filter__form--btn_div"},ti.createElement("button",{className:"btn-text text-link-teal",onClick:()=>{u?.(p)},"data-dtm-id":"button","data-dtm-data":"Clear all"},ti.createElement("span",{className:"clear-btn-label"},N.clearAllLabel)),ti.createElement("button",{className:"btn btn-teal result-btn",onClick:()=>{m?.(p)},"data-dtm-id":"button","data-dtm-data":"See results",onKeyDown:e=>e.key!==Ui||e.shiftKey?null:a()},ti.createElement("span",null,N.seeResultsLabel)))))},Gn=({isExpanded:e,isDesktop:t,filters:s,filterState:i,expandedDropdown:n,handleFilterBarClick:a,handleToggleKeyDown:r,clearFilters:o,submitFilters:l,setExpandedDropdown:c,toggleFilter:d,nestedFilterState:h,nestedDesktopDraftFilterState:u,clearDropDownFilters:m,setNestedToInitial:p})=>{const g=mi(),{mobileExpandedDropdownLabel:f,mobileCollapsedDropdownLabel:E}=g;return ti.createElement(ti.Fragment,null,ti.createElement("button",{className:"filter__form-toggle-button hide-lg-up",onClick:a,"aria-expanded":e,"aria-haspopup":"true","data-testid":"mobile-filter-toggle-button",tabIndex:t?-1:0},ti.createElement("span",{className:"filter__form-toggle-button-label","data-testid":"mobile-filter-counter"},e?f:E,i.length>0?ti.createElement("span",{className:"filter__form-toggle-button-label-suffix"}," (",i.length,")"):null)),ti.createElement("span",{className:"filter__form-toggle-button hide-lg-down"},ti.createElement("span",{className:"filter__form-toggle-button-label"},E)),ti.createElement("div",{className:"filter__form "+(e&&!t?"is-open":"")},ti.createElement("ul",{className:"filter__form-items-list filter__form-items-list--root"},s.map((e,s)=>ti.createElement(Vn,{key:e.name,listFilter:{name:e.name,value:""},handleKeyDown:r,onToggle:()=>c(n===e.name?null:e.name),isExpanded:n===e.name,isMobile:!t,filters:e.children,filterGroupIndex:s,toggleFilter:(t,s)=>{d(t,{name:"root",value:"root",children:qn({arrayOfChildren:h.children,filterGroup:{name:e.name,value:e.value},childFilteringState:s})})},filterState:i,closeDropdown:()=>c(null),shouldCloseDropdownOnTab:!0,isMainFilterGroup:!0,listNestedFilterState:h.children[s],clearDropDownFilters:m,submitFilters:l,setExpandedDropdown:c,nestedDesktopDraftFilterState:u,setNestedToInitial:p}
3))),!t&&ti.createElement("div",{className:"filter__form-controls"},ti.createElement($n,{type:"btn-text text-link-teal",onClick:o,"data-testid":"clear-filters-button",text:g.clearAllLabel}),ti.createElement($n,{type:"btn btn-teal",onClick:l,"data-testid":"submit-filters-button",text:g.seeResultsLabel}))))},Kn=({filters:e,setFiltersQuery:t,searchPhrase:s,setSearchPhrase:i})=>{const n=In()===sn;let a=!1;const r=mi(),[o,l]=(0,ti.useState)(!1),[c,d]=(0,ti.useState)(null),[h,u]=(0,ti.useState)([]),m=(0,ti.useRef)(!1),p=(0,ti.useRef)(null),g=!!p?.current?.closest(".funds-file-listing-app");a=!!g||r.dontShowButtonsDesktop;const{nestedFilterState:f,filterState:E,paramFilters:b,desktopFilterState:T,desktopFilterLabels:S,nestedDesktopDraftFilterState:v,resetFilters:L,copyFiltersToDraft:y,applyDraftFilters:_,applyDesktopDraftFilters:A,submitSelectedFilters:C,toggleFilter:w,deleteFilter:N,resetDropDownFilters:I,setNestedToInitial:R}=Hn({filters:e,isDesktop:n,setFiltersQuery:t,isFundfilelisting:g}),D=(t=!0)=>{L(),C(Rn(e)),u([]),t&&i("")},M=({key:e})=>{e===Vi&&c&&d(null)};return(0,ti.useEffect)(()=>{m.current?D(!1):m.current=!0},[s]),(0,ti.useEffect)(()=>{b.length&&!a&&u(b)},[b,a]),(0,ti.useEffect)(()=>{T.length&&!a&&u(T)},[T,a]),(0,ti.useEffect)(()=>{S.length>-1&&!a&&u(S)},[S,a]),(0,ti.useEffect)(()=>{const e=p.current;return e?(e.addEventListener("keydown",M),()=>{e.removeEventListener("keydown",M)}):()=>{}},[f]),ti.createElement("div",{ref:p,className:"filter"},ti.createElement(Gn,{isExpanded:o,isDesktop:n,filters:e,filterState:E,nestedFilterState:f,expandedDropdown:c,handleFilterBarClick:()=>{l(!o),d(null),y()},handleToggleKeyDown:e=>{e.key===Ui&&e.shiftKey&&d(null)},setExpandedDropdown:d,clearDropDownFilters:e=>{I(e);const t=f.children.filter(e=>e.children.length>0).flatMap(e=>e.children);u(t)},submitFilters:yn()||_n()?()=>{_(),C(f),d(null),l(!1)}:e=>{A(e),d(null),l(!1)},toggleFilter:w,clearFilters:D,setNestedToInitial:R,nestedDesktopDraftFilterState:v}),ti.createElement(Fn,{isDesktop:n,searchPhrase:s,clearAllLabel:r.clearAllLabel,deleteFilter:e=>{const t=h.filter(t=>t.name!==e.name);N(e),u(t)},selectedFilters:a?E:h,clearFilters:D,setSearchPhrase:i,removeSearchText:r.removeSearchText?`${r.removeSearchText} '${s}'`:void 0}))};var Yn=s(3516);const jn=ti.createElement("div",{className:"search-page__tile-placeholder search-page__tile-link","data-testid":Ys.PLACEHOLDER_MOBILE},ti.createElement("div",{className:"search-page__tile-placeholder-image search-page__image-container"},ti.createElement(Yn.Ay,{viewBox:"0 0 366 248",backgroundColor:"#ededed",foregroundColor:"#f3f3f3"},ti.createElement("rect",{x:"0",y:"0",width:"366",height:"248"}))),ti.createElement("div",{className:"search-page__tile-placeholder-content search-page__tile-content"},ti.createElement(Yn.Ay,{viewBox:"0 0 600 160",width:"600",height:"160",backgroundColor:"#ededed",foregroundColor:"#f3f3f3"},ti.createElement("rect",{x:"0",y:"20",width:"104",height:"16"}),ti.createElement("rect",{x:"0",y:"52",width:"600",height:"20"}),ti.createElement("rect",{x:"0",y:"80",width:"600",height:"20"}),ti.createElement("rect",{x:"0",y:"124",width:"80",height:"16"}),ti.createElement("rect",{x:"88",y:"132",width:"4",height:"4"}),ti.createElement("rect",{x:"100",y:"124",width:"80",height:"16"})))),Xn=ti.createElement("div",{className:"search-page__tile-placeholder search-page__tile-link","data-testid":Ys.PLACEHOLDER_DESKTOP},ti.createElement("div",{className:"search-page__tile-placeholder-image search-page__image-container"},ti.createElement(Yn.Ay,{viewBox:"0 0 180 212",backgroundColor:"#ededed",foregroundColor:"#f3f3f3"},ti.createElement("rect",{x:"0",y:"0",width:"180",height:"212"}))),ti.createElement("div",{className:"search-page__tile-placeholder-content search-page__tile-content"},ti.createElement(Yn.Ay,{viewBox:"0 0 600 168",width:"600",height:"168",backgroundColor:"#ededed",foregroundColor:"#f3f3f3"},ti.createElement("rect",{x:"0",y:"20",width:"104",height:"16"}),ti.createElement("rect",{x:"0",y:"52",width:"600",height:"24"}),ti.createElement("rect",{x:"0",y:"84",width:"600",height:"24"}),ti.createElement("rect",{x:"0",y:"132",width:"80",height:"16"}),ti.createElement("rect",{x:"88",y:"138",width:"4",height:"4"}),ti.createElement("rect",{x:"100",y:"132",width:"80",height:"16"})))),Qn=({children:e,type:t,resultsPerBatch:s=6,isLoading:i})=>ti.createElement("ul",{className:"search-page__grid"},ti.Children.count(e)>0&&ti.Children.map(e,e=>ti.createElement("li",{className:`search-page__grid-item search-page__grid-item--${t}`},e)),t!==Ks.DOCUMENT&&i&&new Array(s).fill(null).map((e,s)=>{const i=`${e}-${s}`;return ti.createElement("li",{className:`search-page__grid-item search-page__grid-item--${t}`,key:`placeholder${i}`},ti.createElement("div",{className:"search-page__tile-placeholder"},yn()&&jn,_n()&&jn,An()&&Xn))})),Zn=({label:e,isDisabled:t=!1,isHidden:s=!1,onClick:i=()=>{},analyticsData:n,analyticsId:a})=>ti.createElement("div",{className:"search-page__load-more-button"},ti.createElement("button",{className:"btn btn-teal btn-icon btn-add"+(s?" is-hidden":""),onClick:i,disabled:t,"data-dtm-data":n,"data-dtm-id":a,"aria-hidden":s},e));var Jn=s(5740),ea=s.n(Jn);const ta=!("-webkit-line-clamp"in document.documentElement.style);function sa({didClamp:e}){if(ta&&e){const e=document.createElement("span");e.textContent=this.element.textContent,this.element.textContent="",this.element.appendChild(e)}}const ia=(e,t)=>{const s=(0,ti.useRef)(null);(0,ti.useEffect)(()=>
3{if(s.current?s.current.reload({clamp:t,useOriginalText:!0,onClampEnd:sa}):e.current&&(s.current=new(ea())(e.current,{clamp:t,disableCssClamp:ta,onClampEnd:sa})),ta)return wn.subscribe(()=>{s.current&&s.current.reload({useOriginalText:!0,clamp:t,onClampEnd:sa})})},[t])},na=(e,t,s)=>{let i=(new Date).getTime(),n=-1;const a=e=>{i=(new Date).getTime(),n=e.button},r=e=>{(new Date).getTime()-i<2500&&e.button===n&&(0!==n&&1!==n||Hi(t.url,t.title,s)),i=(new Date).getTime(),n=-1},o=e=>{e.keyCode===zi&&Hi(t.url,t.title,s)};(0,ti.useEffect)(()=>(e.current&&(e.current.addEventListener("mousedown",a),e.current.addEventListener("mouseup",r),e.current.addEventListener("keydown",o)),()=>{e.current&&(e.current.removeEventListener("mousedown",a),e.current.removeEventListener("mouseup",r),e.current.removeEventListener("keydown",o))}),[e.current,s])},aa=()=>ti.createElement("span",{"data-testid":"text-download-icon",className:"ds-icon"},ti.createElement("span",{className:"icomoon icon-icon-download-document"})),ra=(0,ti.forwardRef)(({title:e},t)=>ti.createElement("h3",{className:"search__heading h10 last-mb-none",ref:t},ti.createElement("span",{className:"search-item-heading","data-testid":"search-item-heading"},e)));ra.displayName="Title";const oa=(0,ti.forwardRef)(({searchItem:e},t)=>{const s=un(e),{view:i=ei.DEFAULT}=mi(),n=e?.title?.split?.("|")?.[0];return ti.createElement("div",{className:"search__item-header"},s&&ti.createElement("div",{className:"search__item-header-icon"},ti.createElement(aa,null)),i===ei.DEFAULT&&e?.pageType===Vs.FUND&&n?ti.createElement(ra,{ref:t,title:n}):ti.createElement(ra,{ref:t,title:e.title}))});oa.displayName="SearchResultHeader";const la=({article:e,actionLabel:t,isTimeToReadEnabled:s=!0,hidePublicationDate:i=!1})=>{const n=e.type===Gs.VERSATILE,{view:a=ei.DEFAULT,articleDateLabel:r=""}=mi();return e.hasTimeToRead&&s||e.publicationDate&&i?ti.createElement("p",{className:"article-attributes"},(n||a===ei.SMART_MODE||a===ei.SMART_RESULTS)&&!i&&s&&e.hasTimeToRead&&ti.createElement(ti.Fragment,null,ti.createElement("span",{className:"article-publish-date"},e.showDateLabel&&ti.createElement(ti.Fragment,null,r," "),e.publicationDate),ti.createElement("span",{className:"article-attributes__separator"})),s&&e.hasTimeToRead&&ti.createElement("span",{className:"article-read-time"},`${e.timeToRead} ${e?.readTimeLabel||t}`),!n&&a===ei.DEFAULT&&!i&&ti.createElement(ti.Fragment,null,ti.createElement("span",{className:"article-attributes__separator"}),ti.createElement("span",{className:"article-publish-date"},e.showDateLabel&&ti.createElement(ti.Fragment,null,r," "),e.publicationDate))):null},ca=({article:e})=>{const{defaultThumbnail:t}=mi(),s=e.image||t;return ti.createElement("div",{className:"search-page__image-container"},ti.createElement("img",{src:s,alt:"",className:"search-page__image"}))},da=({tagsLabel:e,tags:t,tagList:s})=>{let i;if(Array.isArray(t)){const e=t?.map(e=>{const t=s?.[e];return t}),n=[...new Set(e)];i=[...n].sort((e,t)=>e&&t?e.toLowerCase().localeCompare(t.toLowerCase()):0)}return ti.createElement(ti.Fragment,null,t&&t.length>0&&ti.createElement("p",{className:"search-tags"},e&&ti.createElement("span",{className:"search-tag__label"},e),i?.map((e,t)=>{const s=`tag-${t}`;return ti.createElement(ti.Fragment,{key:s},ti.createElement("span",{className:"search-tags__data"},e),t!==i.length-1&&ti.createElement("span",{className:"search-tags__separator"}))}),!Array.isArray(t)&&ti.createElement("span",{className:"search-tags__data"},s?.[t])))},ha=(0,ti.forwardRef)(({shortDescription:e},t)=>ti.createElement("p",{className:"search__short-description",ref:t},e));ha.displayName="SearchShortDescription";const ua=({type:e,tagName:t=""})=>ti.createElement("p",{className:`primary-tag primary-tag--${e}`},t),ma=({item:e,index:t,searchType:s,tags:i})=>{const{minutesToReadLabel:n,minutesToListenLabel:a,minutesToWatchLabel:r,isTimeToReadEnabled:o,hidePublicationDate:l,articleTagsLabel:c}=mi(),d=In(),h=(0,ti.useRef)(null),u=(0,ti.useRef)(null),m=(0,ti.useRef)(null);ia(h,d===Zi?3:2),na(u,e,t);let p=n;return e.contentType===js.PODCAST?p=a:e.contentType===js.VIDEO&&(p=r),ti.createElement("article",{className:"search-page__tile search-page__tile--article","data-testid":Y
3s.ARTICLE},ti.createElement("a",{href:e.url,className:"search-page__tile-link","data-dtm-id":s,"data-dtm-data":e.title,ref:u},ti.createElement(ca,{article:e}),ti.createElement("div",{className:"search-page__tile-content"},ti.createElement(ua,{type:"1",tagName:e.primaryTag}),ti.createElement(oa,{ref:h,searchItem:e}),ti.createElement(ha,{ref:m,shortDescription:e.shortDescription}),ti.createElement("div",{className:"search-page__tile-content-bottom"},ti.createElement(da,{tagsLabel:c,tags:e?.allTags||[],tagList:i}),ti.createElement(la,{article:e,actionLabel:p,isTimeToReadEnabled:o,hidePublicationDate:l})))))},pa=({searchItem:e})=>{const t=(e=>un(e)?"2":"1")(e);return ti.createElement(ua,{tagName:e.primaryTag,type:t})},ga=({title:e,primaryTag:t,shortDescription:s})=>`${t??""}, ${e}, ${s??""}`,fa=({item:e,index:t,searchType:s})=>{const i=(0,ti.useRef)(null),n=(0,ti.useRef)(null),a=(0,ti.useRef)(null);return ia(i,2),ia(n,5),na(a,e,t),ti.createElement("article",{className:"search-page__tile search-page__tile--primary-tag","data-testid":Ys.PRIMARY_TAG},ti.createElement("a",{href:e.url,className:"search-page__tile-link","data-dtm-id":s,"data-dtm-data":e.title,"aria-label":ga(e),ref:a},ti.createElement(pa,{searchItem:e}),ti.createElement(oa,{ref:i,searchItem:e}),ti.createElement(ha,{ref:n,shortDescription:e.shortDescription})))},Ea=({title:e,shortDescription:t})=>`${e}, ${t||""}`,ba=({item:e,index:t,searchType:s})=>{const i=(0,ti.useRef)(null),n=(0,ti.useRef)(null),a=(0,ti.useRef)(null);return ia(i,2),ia(n,5),na(a,e,t),ti.createElement("article",{className:"search-page__tile search-page__tile--primary-tag","data-testid":Ys.GENERIC},ti.createElement("a",{href:e.url,className:"search-page__tile-link","data-dtm-id":s,"data-dtm-data":e.title,"aria-label":Ea(e),ref:a},ti.createElement(oa,{ref:i,searchItem:e}),ti.createElement(ha,{ref:n,shortDescription:e.shortDescription})))},Ta=(e,t,s)=>{const i=t&&e.hasTimeToRead?`${e.timeToRead} ${s}`:"";return`${e.primaryTag??""}, ${e.title}, ${e.shortDescription??""}, ${e.publicationDate}, ${i}`},Sa=({item:e,index:t,searchType:s})=>{const{minutesToReadLabel:i,minutesToWatchLabel:n,minutesToListenLabel:a,isTimeToReadEnabled:r,hidePublicationDate:o}=mi(),l=(0,ti.useRef)(null),c=(0,ti.useRef)(null);let d=i;return e.contentType===js.PODCAST?d=a:e.contentType===js.VIDEO&&(d=n),ia(l,5),na(c,e,t),ti.createElement("article",{className:"search-page__tile search-page__tile--universal","data-testid":Ys.UNIVERSAL},ti.createElement("a",{href:e.url,className:"search-page__tile-link","data-dtm-id":s,"data-dtm-data":e.title,"aria-label":Ta(e,r,d),ref:c},e.image&&ti.createElement(ca,{article:e}),e.primaryTag&&ti.createElement(pa,{searchItem:e}),ti.createElement(oa,{searchItem:e}),e.shortDescription&&ti.createElement(ha,{ref:l,shortDescription:e.shortDescription}),ti.createElement(la,{article:e,actionLabel:d,isTimeToReadEnabled:r,hidePublicationDate:o})))},va=(e,t,s)=>{const{primaryTag:i="",title:n,shortDescription:a="",publicationDate:r,hasTimeToRead:o,timeToRead:l}=e;return`${i}, ${n}, ${a}, ${r}, ${t&&o?`${l} ${s}`:""}`},La=({item:e,index:t,searchType:s})=>{const{minutesToReadLabel:i,minutesToWatchLabel:n,minutesToListenLabel:a,isTimeToReadEnabled:r,hidePublicationDate:o}=mi(),l=(0,ti.useRef)(null),c=(0,ti.useRef)(null);let d=i;return e.contentType===js.PODCAST?d=a:e.contentType===js.VIDEO&&(d=n),ia(l,5),na(c,e,t),ti.createElement("article",{className:"search-page__tile search-page__tile--versatile","data-testid":Ys.VERSATILE},ti.createElement("a",{href:e.url,className:"search-page__tile-link","data-dtm-id":s,"data-dtm-data":e.title,"aria-label":va(e,r,d),ref:c},e.primaryTag&&ti.createElement(pa,{searchItem:e}),ti.createElement(oa,{searchItem:e}),e.shortDescription&&ti.createElement(ha,{ref:l,shortDescription:e.shortDescription}),!e.hideDefaultAttributeValues&&e.hasTimeToRead&&ti.createElement(la,{article:e,actionLabel:d,isTimeToReadEnabled:r,hidePublicationDate:o})))},ya=({className:e="search-results__loading",ariaHidden:t=!0})=>ti.createElement("div",{className:e,"aria-hidden":t},ti.createElement("div",{className:"search-results__loading-spinner"})),_a=({displayMode:e,maxNumberOfItems:t})=>{const[s,i]=(0,ti.useState)(1),[n,a]=(0,ti.useState)([]),[r,o]=(0,ti.useState)(void 0),l=(0,ti.useRef)(null);(0,ti.useEffect)(()=>
3{if(l.current){const e="true"===l.current.parentElement?.parentElement?.dataset.autoSuggest;o(e)}},[]);const{searchBarPlaceholder:c,loadMoreButtonLabel:d,shouldDisplayLoadMoreButton:h,analyticsData:u,analyticsId:m,noResultsLabel:p,filters:g,pageType:f,searchButtonLabel:E,searchResultLabel:b,clearLabel:T}=mi(),{searchPhrase:S,SearchBarComponent:v,setSearchPhrase:L}=dn({placeholder:c,shouldClearAfterSubmit:!0,buttonLabel:E,enableAutoSuggest:r,smallInDesktop:!0,clearLabel:T}),y=0===Object.keys(n)?.length?[]:n,_=f.split("/").pop(),[A,C]=(e=>e===Gs.ARTICLE?[ma,Ks.ARTICLE]:e===Gs.VERSATILE?[La,Ks.VERSATILE]:e===Gs.PRIMARY_TAG?[fa,Ks.PRIMARY_TAG]:e===Gs.UNIVERSAL?[Sa,Ks.UNIVERSAL]:[ba,Ks.GENERIC])(e),{searchResults:w,wasFirstBatchLoaded:N,isLoading:I,hasMoreResults:R,isPageChange:D,currentResultsCount:M,tags:O}=qi(S,y,{setSearchTermConfig:{shouldClearFilters:!1},currentBatch:s,shouldConcat:!0,categoryFilters:g,isAnalyticsEnabled:!0,searchType:_,shouldInitializeSearch:!1});(0,ti.useEffect)(()=>i(1),[S,n]),(0,ti.useEffect)(()=>{if(D&&l.current){const e=(s-1)*t+1,i=fn(l.current,e);i?.scrollIntoView({behavior:"smooth"}),i?.focus({preventScroll:!0})}},[D]);const x=!D&&!I||s>1;return ti.createElement("section",{className:"search-page fade-in-up",ref:l},g?.length>0&&ti.createElement(Kn,{filters:g,setFiltersQuery:a,searchPhrase:S,setSearchPhrase:L}),v,!N&&ti.createElement(ya,null),N&&ti.createElement("div",{className:"total-search-results","data-search-results-count":M},N&&0===w.length?ti.createElement("p",{className:"search-page__no-results glossary__no-results-text"},p):ti.createElement(ti.Fragment,null,b&&ti.createElement("h2",{className:"category-search__count h8 m-0"},b," (",ti.createElement("span",{className:"category-search__count-number"},M),")"),ti.createElement(Qn,{type:C,resultsPerBatch:t,isLoading:I},x?w.map((e,t)=>ti.createElement(A,{item:e,key:e.id,index:t,searchType:_,tags:O})):null)),h&&w.length>0&&ti.createElement(Zn,{label:d,isDisabled:I,onClick:()=>i(s+1),isHidden:!R,analyticsId:m,analyticsData:u})))},Aa=({item:e,index:t,searchType:s,tags:i})=>{const n=(0,ti.useRef)(null),{minutesToReadLabel:a,minutesToListenLabel:r,minutesToWatchLabel:o,isTimeToReadEnabled:l,hidePublicationDate:c,articleTagsLabel:d}=mi();na(n,e,t);let h=a;return e.contentType===js.PODCAST?h=r:e.contentType===js.VIDEO&&(h=o),ti.createElement("article",{className:"search-page__tile search-page__tile--article","data-testid":Ys.ARTICLE},ti.createElement("a",{href:e.url,className:"search-page__tile-link","data-dtm-id":s,"data-dtm-data":e.url,ref:n},ti.createElement(ca,{article:e}),ti.createElement("div",{className:"search-page__tile-content"},ti.createElement(oa,{searchItem:e}),ti.createElement("div",{className:"search-page__tile-content-bottom"},ti.createElement(da,{tagsLabel:d,tags:e?.allTags||[],tagList:i}),ti.createElement(la,{article:e,actionLabel:h,isTimeToReadEnabled:l,hidePublicationDate:c})))))},Ca=({taggedInLabel:e,tagName:t})=>ti.createElement("div",{className:"search-page__header"},e&&ti.createElement("p",{className:"search-page__header-sub-title"},e),t&&ti.createElement("h1",{className:"search-page__header-title h4","data-testid":"tagged-in-title"},t)),wa=(e,t,s)=>{const i=t&&e.hasTimeToRead?`${e.timeToRead} ${s}`:"";return`${e.primaryTag??""}, ${e.title}, ${e.shortDescription??""}, ${e.publicationDate}, ${i}`},Na=({item:e,index:t,searchType:s})=>{const i=(0,ti.useRef)(null),{minutesToReadLabel:n,minutesToWatchLabel:a,minutesToListenLabel:r,isTimeToReadEnabled:o,hidePublicationDate:l}=mi();na(i,e,t);let c=n;e.contentType===js.PODCAST?c=r:e.contentType===js.VIDEO&&(c=a);const d=(0,ti.useRef)(null);return ia(d,5),ti.createElement("article",{className:"search-page__tile search-page__tile--universal","data-testid":Ys.UNIVERSAL},ti.createElement("a",{href:e.url,className:"search-page__tile-link","aria-label":wa(e,o,c),"data-dtm-id":s,"data-dtm-data":e.url,ref:i},e.image&&ti.createElement(ca,{article:e}),e.primaryTag&&ti.createElement(pa,{searchItem:e}),ti.createElement(oa,{searchItem:e}),e.shortDescription&&ti.createElement(ha,{ref:d,shortDescription:e.shortDe
3scription}),ti.createElement(la,{article:e,actionLabel:c,isTimeToReadEnabled:o,hidePublicationDate:l})))},Ia=({tag:e,displayMode:t})=>{const[s,i]=(0,ti.useState)(1),n=(0,ti.useRef)(null),{taggedInLabel:a,loadMoreButtonLabel:r,analytics:o,shouldDisplayLoadMoreButton:l,pageType:c}=mi(),d=c.split("/").pop(),{searchResults:h,isLoading:u,hasMoreResults:m,isPageChange:p,tags:g}=qi("",[],{currentBatch:s,searchType:d,setSearchTermConfig:{shouldClearFilters:!1},shouldConcat:!0,isAnalyticsEnabled:!0});(0,ti.useEffect)(()=>{if(p&&n.current){const e=(s-1)*ii[t].resultsPerBatch+1,i=fn(n.current,e);i?.scrollIntoView({behavior:"smooth"}),i?.focus({preventScroll:!0})}},[p]);const[f,E]=(e=>e===Gs.UNIVERSAL?[Na,Ks.UNIVERSAL]:e===Gs.VERSATILE?[La,Ks.VERSATILE]:[Aa,Ks.ARTICLE])(t),b=!p&&!u||s>1;return ti.createElement("section",{className:"search-page",ref:n},ti.createElement(Ca,{tagName:g?.[e]??"",taggedInLabel:a}),ti.createElement(Qn,{type:E,resultsPerBatch:ii[t].resultsPerBatch,isLoading:u},b?h.map((e,t)=>ti.createElement(f,{item:e,key:e.id,index:t,searchType:d,tags:g})):null),l&&h.length>0&&ti.createElement(Zn,{label:r,isDisabled:u,onClick:()=>i(s+1),isHidden:!m,analyticsId:o.loadMoreButtonId,analyticsData:o.loadMoreButtonData}))},Ra=ti.createElement(Yn.Ay,{viewBox:"0 0 406 460",backgroundColor:"#ededed",foregroundColor:"#f3f3f3","data-testid":Ys.PLACEHOLDER_RELATED_CONTENT},ti.createElement("rect",{x:"0",y:"0",width:"406",height:"200"}),ti.createElement("rect",{x:"24",y:"224",width:"358",height:"20"}),ti.createElement("rect",{x:"24",y:"260",width:"358",height:"60"}),ti.createElement("rect",{x:"24",y:"336",width:"358",height:"20"}),ti.createElement("rect",{x:"231",y:"388",width:"151",height:"48",rx:"24"})),Da=ti.createElement(Yn.Ay,{viewBox:"0 0 621 294",backgroundColor:"#ededed",foregroundColor:"#f3f3f3","data-testid":Ys.PLACEHOLDER_RELATED_CONTENT},ti.createElement("rect",{x:"0",y:"0",width:"262.7",height:"294"}),ti.createElement("rect",{x:"286.699",y:"24",width:"310.3",height:"30"}),ti.createElement("rect",{x:"286.699",y:"70",width:"310",height:"120"}),ti.createElement("rect",{x:"446",y:"222",width:"151",height:"48",rx:"24"})),Ma=ti.createElement(Yn.Ay,{viewBox:"0 0 406 451",backgroundColor:"#ededed",foregroundColor:"#f3f3f3","data-testid":Ys.PLACEHOLDER_RELATED_CONTENT_AMPERSANDS},ti.createElement("rect",{x:"24",y:"256.898",width:"358",height:"20",rx:"4"}),ti.createElement("rect",{x:"24",y:"292.898",width:"358",height:"90",rx:"4"}),ti.createElement("rect",{x:"24",y:"398.898",width:"358",height:"20",rx:"4"})),Oa=ti.createElement(Yn.Ay,{viewBox:"0 0 622 523",backgroundColor:"#ededed",foregroundColor:"#f3f3f3","data-testid":Ys.PLACEHOLDER_RELATED_CONTENT_FEATURED_INSIGHTS},ti.createElement("rect",{x:"0",y:"0",width:"622",height:"422",rx:"20"}),ti.createElement("rect",{x:"0",y:"446",width:"622",height:"40",rx:"4"}),ti.createElement("rect",{x:"0",y:"502",width:"622",height:"20",rx:"4"})),xa=ti.createElement(Yn.Ay,{viewBox:"0 0 588 147",backgroundColor:"#ededed",foregroundColor:"#f3f3f3","data-testid":Ys.PLACEHOLDER_RELATED_CONTENT_TWO_COLS_FEATURED_INSIGHTS},ti.createElement("rect",{x:"204",y:"25.8984",width:"310",height:"40",rx:"4"}),ti.createElement("rect",{y:"0.898438",width:"180",height:"122",rx:"8"}),ti.createElement("rect",{x:"204",y:"77.8984",width:"310",height:"20",rx:"4"}),ti.createElement("path",{d:"M588 146.898V145.898H0V146.898V147.898H588V146.898Z",fill:"#E8E8E8"})),Pa=ti.createElement("div",{className:"relatedcontent__item-link","data-testid":Ys.PLACEHOLDER_RELATED_CONTENT_AMPERSANDS_FEATURE},ti.createElement("span",{className:"relatedcontent__arrow-decor icomoon icon-arrow-top-right","aria-hidden":"true"}),ti.createElement("div",{className:"relatedcontent__item-container"},ti.createElement("div",{className:"relatedcontent__item-image-container"}),ti.createElement("div",{className:"relatedcontent__item-details"},ti.createElement("div",{className:"relatedcontent__item-title h10"},"_"),ti.createElement("div",{className:"relatedcontent__item-description"},"_"))),ti.createElement("div",{className:"relatedcontent__item-content-wrapper"},ti.createElement("div",{className:"relatedcontent__item-title h10"},"_"),ti.createElement("div",{className:"relatedcontent__item-description"},"_"))),ka=ti.createElement(Yn.Ay,{viewBox:"0 0 310 21",backgroundColor:"#D9D9D9",foregroundColor:"#f3f3f3","data-testid":Y
3s.PLACEHOLDER_RELATED_CONTENT_DISPLAY_AS_LIST},ti.createElement("rect",{y:"0.898438",width:"310",height:"20",rx:"4"})),Ha=({children:e,type:t,resultsPerBatch:s=6,isLoading:i,variant:n,shouldUseSwiper:a=!1})=>{const r="ampersands-feature"===n,o=(e=!1)=>{const s=`search-page__grid-item search-page__grid-item--${t}`,i=a?"swiper-slide":"";return r?[s,i,"relatedcontent__item relatedcontent__item--article",e?"relatedcontent__item--active":""].filter(Boolean).join(" "):[s,i].filter(Boolean).join(" ")},l=a?"search-page__grid relatedcontent__list swiper-wrapper":"search-page__grid relatedcontent__list";return ti.createElement("ul",{className:l},ti.Children.count(e)>0&&ti.Children.map(e,(e,t)=>ti.createElement("li",{className:o(0===t)},e)),t!==Ks.DOCUMENT&&i&&Array.from({length:s}).map((e,t)=>{const s=`${e}-${t}`;return ti.createElement("li",{className:o(),key:`placeholder${s}`},ti.createElement("div",{className:`search-page__tile-placeholder search-page__tile-placeholder--${n}`},"default"===n&&Ra,"two-card"===n&&Da,"ampersands"===n&&Ma,"ampersands-listing"===n&&Ma,"featured-insights"===n&&0===t&&Oa,"featured-insights"===n&&0!==t&&xa,"two-columns"===n&&xa,"ampersands-feature"===n&&Pa,"dis
3play-as-list"===n&&ka))}))},Ba=({article:e,actionLabel:t,isTimeToReadEnabled:s=!0,hidePublicationDate:i=!1})=>{const n=e.type===Gs.VERSATILE,{view:a=ei.DEFAULT,articleDateLabel:r=""}=mi();return e.hasTimeToRead&&s||e.publicationDate&&i?ti.createElement("p",{className:"article-attributes relatedcontent__item-attributes"},(n||a===ei.SMART_MODE||a===ei.SMART_RESULTS)&&!i&&s&&e.hasTimeToRead&&ti.createElement(ti.Fragment,null,ti.createElement("span",{className:"article-publish-date"},e.showDateLabel&&ti.createElement(ti.Fragment,null,r," "),e.publicationDate),ti.createElement("span",{className:"article-attributes__separator"})),s&&e.hasTimeToRead&&ti.createElement("span",{className:"article-read-time"},`${e.timeToRead} ${e.readTimeLabel||t}`),!n&&a===ei.DEFAULT&&!i&&ti.createElement(ti.Fragment,null,ti.createElement("span",{className:"article-attributes__separator"}),ti.createElement("span",{className:"article-publish-date"},e.showDateLabel&&ti.createElement(ti.Fragment,null,r," "),e.publicationDate))):null},Fa=({article:e})=>{const{defaultThumbnail:t}=mi(),s=e.image||t;return ti.createElement("div",{className:"search-page__image-container relatedcontent__item-image-container"},ti.createElement("img",{src:s,alt:"",className:"search-page__image"}))},qa=({label:e})=>e?ti.createElement("div",{className:"relatedcontent__cta relatedcontent__cta--react btn-mbr-none-block text-right"},ti.createElement("div",{className:"cmp-button btn btn-icon btn-icon-arrow-right text-link-teal-v2"},e)):null,$a="default",za="two-card",Ua="ampersands-feature",Wa="two-columns",Va="featured-insights",Ga=({item:e,variant:t=""})=>{const{minutesToReadLabel:s,minutesToListenLabel:i,minutesToWatchLabel:n,isTimeToReadEnabled:a,analyticsId:r,readMoreLabel:o,defaultThumbnail:l}=mi(),c=(0,ti.useMemo)(()=>(e=>({shouldShowCTAButton:e===$a||e===za,hasInlineResourceTypeLayout:e===Wa||e===Va,isAmpersandsFeature:e===Ua}))(t),[t]),{shouldShowCTAButton:d,hasInlineResourceTypeLayout:h,isAmpersandsFeature:u}=c;let m=s;return e.contentType===js.PODCAST?m=i:e.contentType===js.VIDEO&&(m=n),u?ti.createElement("a",{href:e.url,className:"relatedcontent__item-link","data-dtm-id":r,"data-dtm-data":e.title},ti.createElement("span",{className:"relatedcontent__arrow-decor icomoon icon-arrow-top-right","aria-hidden":"true"}),ti.createElement("div",{className:"relatedcontent__item-container"},ti.createElement("div",{className:"relatedcontent__item-image-container"},ti.createElement("img",{src:e.image||l,alt:"",className:"cmp-image__image"})),ti.createElement("div",{className:"relatedcontent__item-details","aria-hidden":"true"},ti.createElement("h3",{className:"relatedcontent__item-title h10"},ti.createElement("span",{className:"relatedcontent__item-title-inner"},e.title)),ti.createElement("p",{className:"relatedcontent__item-attributes"},e.primaryTag&&ti.createElement("span",{className:"relatedcontent__item-tag"},e.primaryTag),a&&e.hasTimeToRead&&ti.createElement("span",{className:"relatedcontent__item-read-time"},e.timeToRead," ",m),ti.createElement("span",{className:"relatedcontent__item-publish-date"},e.publicationDate)),e.shortDescription&&ti.createElement("p",{className:"relatedcontent__item-description"},e.shortDescription))),ti.createElement("div",{className:"relatedcontent__item-content-wrapper"},ti.createElement("h3",{className:"relatedcontent__item-title h10"},ti.createElement("span",{className:"relatedcontent__item-title-inner"},e.title)),ti.createElement("p",{className:"relatedcontent__item-attributes"},e.primaryTag&&ti.createElement("span",{className:"relatedcontent__item-tag"},e.primaryTag),a&&e.hasTimeToRead&&ti.createElement("span",{className:"relatedcontent__item-read-time"},e.timeToRead," ",m),ti.createElement("span",{className:"relatedcontent__item-publish-date"},e.publicationDate)),e.shortDescription&&ti.createElement("p",{className:"relatedcontent__item-description"},e.shortDescription))):ti.createElement("article",{className:"search-page__tile search-page__tile--article relatedcontent__item","data-testid":Ys.ARTICLE},ti.createElement("a",{href:e.url,className:"search-page__tile-link relatedcontent__item-link","data-dtm-id":r,"data-dtm-data":e.url},ti.createElement(Fa,{article:e}),ti.createElement("span",{className:"relatedcontent__arrow-decor relatedcontent__arrow-decor--hidden icomoon icon-arrow-top-right","aria-hidden":"true"}),ti.createElement("div",{className:"relatedcontent__item-content-wrapper"},e.primaryTag&&!h&&ti.createElement(pa,{searchItem:e}),ti.createElement(oa,{searchItem:e}
3),!h&&ti.createElement(Ba,{article:e,actionLabel:m,isTimeToReadEnabled:a}),e.shortDescription&&ti.createElement("p",{className:"relatedcontent__item-description"},e.shortDescription),h&&ti.createElement("div",{className:"relatedcontent__item-attributes"},e.primaryTag&&ti.createElement(pa,{searchItem:e}),ti.createElement(Ba,{article:e,actionLabel:m,isTimeToReadEnabled:a})),d&&ti.createElement(qa,{label:o}))))},Ka=(0,ti.forwardRef)(({shortDescription:e},t)=>ti.createElement("p",{className:"relatedcontent__item-description",ref:t},e));Ka.displayName="SearchShortDescription";const Ya="default",ja="two-card",Xa="ampersands-feature",Qa="two-columns",Za="featured-insights",Ja=({title:e,primaryTag:t,shortDescription:s})=>`${t??""}, ${e}, ${s??""}`,er=({item:e,variant:t=""})=>{const{analyticsId:s,readMoreLabel:i}=mi(),n=(0,ti.useMemo)(()=>(e=>({shouldShowCTAButton:e===Ya||e===ja,hasInlineResourceTypeLayout:e===Qa||e===Za,isAmpersandsFeature:e===Xa}))(t),[t]),{shouldShowCTAButton:a,hasInlineResourceTypeLayout:r,isAmpersandsFeature:o}=n;return o?ti.createElement("a",{href:e.url,className:"relatedcontent__item-link","aria-label":Ja(e),"data-dtm-id":s,"data-dtm-data":e.title},ti.createElement("span",{className:"relatedcontent__arrow-decor icomoon icon-arrow-top-right","aria-hidden":"true"}),ti.createElement("div",{className:"relatedcontent__item-container"},ti.createElement("div",{className:"relatedcontent__item-image-container"}),ti.createElement("div",{className:"relatedcontent__item-details","aria-hidden":"true"},ti.createElement("h3",{className:"relatedcontent__item-title h10"},ti.createElement("span",{className:"relatedcontent__item-title-inner"},e.title)),ti.createElement("p",{className:"relatedcontent__item-attributes"},e.primaryTag&&ti.createElement("span",{className:"relatedcontent__item-tag"},e.primaryTag)),e.shortDescription&&ti.createElement("p",{className:"relatedcontent__item-description"},e.shortDescription))),ti.createElement("div",{className:"relatedcontent__item-content-wrapper"},ti.createElement("h3",{className:"relatedcontent__item-title h10"},ti.createElement("span",{className:"relatedcontent__item-title-inner"},e.title)),ti.createElement("p",{className:"relatedcontent__item-attributes"},e.primaryTag&&ti.createElement("span",{className:"relatedcontent__item-tag"},e.primaryTag)),e.shortDescription&&ti.createElement("p",{className:"relatedcontent__item-description"},e.shortDescription))):ti.createElement("article",{className:"search-page__tile search-page__tile--primary-tag relatedcontent__item","data-testid":Ys.PRIMARY_TAG},ti.createElement("a",{href:e.url,className:"search-page__tile-link relatedcontent__item-link","aria-label":Ja(e),"data-dtm-id":s,"data-dtm-data":e.url},ti.createElement("span",{className:"relatedcontent__arrow-decor relatedcontent__arrow-decor--hidden icomoon icon-arrow-top-right","aria-hidden":"true"}),ti.createElement("div",{className:"relatedcontent__item-content-wrapper"},e.primaryTag&&!r&&ti.createElement(pa,{searchItem:e}),ti.createElement(oa,{searchItem:e}),e.shortDescription&&ti.createElement(Ka,{shortDescription:e.shortDescription}),r&&ti.createElement("div",{className:"relatedcontent__item-attributes"},e.primaryTag&&ti.createElement(pa,{searchItem:e})),a&&ti.createElement(qa,{label:i}))))},tr="default",sr="two-card",ir="ampersands-feature",nr="two-columns",ar="featured-insights",rr=({title:e,shortDescription:t})=>`${e}, ${t||""}`,or=({item:e,variant:t=""})=>{const{analyticsId:s,readMoreLabel:i}=mi(),n=(0,ti.useMemo)(()=>(e=>({shouldShowCTAButton:e===tr||e===sr,hasInlineResourceTypeLayout:e===nr||e===ar,isAmpersandsFeature:e===ir}))(t),[t]),{shouldShowCTAButton:a,isAmpersandsFeature:r}=n;return r?ti.createElement("a",{href:e.url,className:"relatedcontent__item-link","aria-label":rr(e),"data-dtm-id":s,"data-dtm-data":e.title},ti.createElement("span",{className:"relatedcontent__arrow-decor icomoon icon-arrow-top-right","aria-hidden":"true"}),ti.createElement("div",{className:"relatedcontent__item-container"},ti.createElement("div",{className:"relatedcontent__item-image-container"}),ti.createElement("div",{className:"relatedcontent__item-details","aria-hidden":"true"},ti.createElement("h3",{className:"relatedcontent__item-title h10"},ti.createElement("span",{className:"relatedcontent__item-title-inner"}
3,e.title)),e.shortDescription&&ti.createElement("p",{className:"relatedcontent__item-description"},e.shortDescription))),ti.createElement("div",{className:"relatedcontent__item-content-wrapper"},ti.createElement("h3",{className:"relatedcontent__item-title h10"},ti.createElement("span",{className:"relatedcontent__item-title-inner"},e.title)),e.shortDescription&&ti.createElement("p",{className:"relatedcontent__item-description"},e.shortDescription))):ti.createElement("article",{className:"search-page__tile search-page__tile--primary-tag relatedcontent__item","data-testid":Ys.GENERIC},ti.createElement("a",{href:e.url,className:"search-page__tile-link relatedcontent__item-link","aria-label":rr(e),"data-dtm-id":s,"data-dtm-data":e.url},ti.createElement("span",{className:"relatedcontent__arrow-decor relatedcontent__arrow-decor--hidden icomoon icon-arrow-top-right","aria-hidden":"true"}),ti.createElement("div",{className:"relatedcontent__item-content-wrapper"},ti.createElement(oa,{searchItem:e}),e.shortDescription&&ti.createElement(Ka,{shortDescription:e.shortDescription}),a&&ti.createElement(qa,{label:i}))))},lr="default",cr="two-card",dr="ampersands-feature",hr="two-columns",ur="featured-insights",mr=(e,t,s)=>{const i=t&&e.hasTimeToRead?`${e.timeToRead} ${s}`:"";return`${e.primaryTag??""}, ${e.title}, ${e.shortDescription??""}, ${e.publicationDate}, ${i}`},pr=({item:e,variant:t=""})=>{const{minutesToReadLabel:s,minutesToListenLabel:i,minutesToWatchLabel:n,isTimeToReadEnabled:a,analyticsId:r,readMoreLabel:o}=mi(),l=(0,ti.useMemo)(()=>(e=>({shouldShowCTAButton:e===lr||e===cr,hasInlineResourceTypeLayout:e===hr||e===ur,isAmpersandsFeature:e===dr}))(t),[t]),{shouldShowCTAButton:c,hasInlineResourceTypeLayout:d,isAmpersandsFeature:h}=l;let u=s;return e.contentType===js.PODCAST?u=i:e.contentType===js.VIDEO&&(u=n),h?ti.createElement("a",{href:e.url,className:"relatedcontent__item-link","aria-label":mr(e,a,u),"data-dtm-id":r,"data-dtm-data":e.title},ti.createElement("span",{className:"relatedcontent__arrow-decor icomoon icon-arrow-top-right","aria-hidden":"true"}),ti.createElement("div",{className:"relatedcontent__item-container"},ti.createElement("div",{className:"relatedcontent__item-image-container"},ti.createElement("img",{src:e.image||"",alt:"",className:"cmp-image__image"})),ti.createElement("div",{className:"relatedcontent__item-details","aria-hidden":"true"},ti.createElement("h3",{className:"relatedcontent__item-title h10"},ti.createElement("span",{className:"relatedcontent__item-title-inner"},e.title)),ti.createElement("p",{className:"relatedcontent__item-attributes"},e.primaryTag&&ti.createElement("span",{className:"relatedcontent__item-tag"},e.primaryTag),a&&e.hasTimeToRead&&ti.createElement("span",{className:"relatedcontent__item-read-time"},e.timeToRead," ",u),ti.createElement("span",{className:"relatedcontent__item-publish-date"},e.publicationDate)),e.shortDescription&&ti.createElement("p",{className:"relatedcontent__item-description"},e.shortDescription))),ti.createElement("div",{className:"relatedcontent__item-content-wrapper"},ti.createElement("h3",{className:"relatedcontent__item-title h10"},ti.createElement("span",{className:"relatedcontent__item-title-inner"},e.title)),ti.createElement("p",{className:"relatedcontent__item-attributes"},e.primaryTag&&ti.createElement("span",{className:"relatedcontent__item-tag"},e.primaryTag),a&&e.hasTimeToRead&&ti.createElement("span",{className:"relatedcontent__item-read-time"},e.timeToRead," ",u),ti.createElement("span",{className:"relatedcontent__item-publish-date"},e.publicationDate)),e.shortDescription&&ti.createElement("p",{className:"relatedcontent__item-description"},e.shortDescription))):ti.createElement("article",{className:"search-page__tile search-page__tile--universal relatedcontent__item","data-testid":Ys.UNIVERSAL},ti.createElement("a",{href:e.url,className:"search-page__tile-link relatedcontent__item-link","aria-label":mr(e,a,u),"data-dtm-id":r,"data-dtm-data":e.url},e.image&&ti.createElement(Fa,{article:e}),ti.createElement("span",{className:"relatedcontent__arrow-decor relatedcontent__arrow-decor--hidden icomoon icon-arrow-top-right","aria-hidden":"true"}),ti.createElement("div",{className:"relatedcontent__item-content-wrapper"},e.primaryTag&&!d&&ti.createElement(pa,{searchItem:e}),ti.createElement(oa,{searchItem:e}
3),e.shortDescription&&ti.createElement(Ka,{shortDescription:e.shortDescription}),!d&&ti.createElement(Ba,{article:e,actionLabel:u,isTimeToReadEnabled:a}),d&&ti.createElement("div",{className:"relatedcontent__item-attributes"},e.primaryTag&&ti.createElement(pa,{searchItem:e}),ti.createElement(Ba,{article:e,actionLabel:u,isTimeToReadEnabled:a})),c&&ti.createElement(qa,{label:o}))))},gr="default",fr="two-card",Er="ampersands-feature",br="two-columns",Tr="featured-insights",Sr=(e,t,s)=>{const{primaryTag:i="",title:n,shortDescription:a="",publicationDate:r,hasTimeToRead:o,timeToRead:l}=e;return`${i}, ${n}, ${a}, ${r}, ${t&&o?`${l} ${s}`:""}`},vr=({item:e,variant:t=""})=>{const{minutesToReadLabel:s,minutesToListenLabel:i,minutesToWatchLabel:n,isTimeToReadEnabled:a,analyticsId:r,readMoreLabel:o}=mi(),l=(0,ti.useMemo)(()=>(e=>({shouldShowCTAButton:e===gr||e===fr,hasInlineResourceTypeLayout:e===br||e===Tr,isAmpersandsFeature:e===Er}))(t),[t]),{shouldShowCTAButton:c,hasInlineResourceTypeLayout:d,isAmpersandsFeature:h}=l;let u=s;return e.contentType===js.PODCAST?u=i:e.contentType===js.VIDEO&&(u=n),h?ti.createElement("a",{href:e.url,className:"relatedcontent__item-link","aria-label":Sr(e,a,u),"data-dtm-id":r,"data-dtm-data":e.title},ti.createElement("span",{className:"relatedcontent__arrow-decor icomoon icon-arrow-top-right","aria-hidden":"true"}),ti.createElement("div",{className:"relatedcontent__item-container"},ti.createElement("div",{className:"relatedcontent__item-image-container"}),ti.createElement("div",{className:"relatedcontent__item-details","aria-hidden":"true"},ti.createElement("h3",{className:"relatedcontent__item-title h10"},ti.createElement("span",{className:"relatedcontent__item-title-inner"},e.title)),ti.createElement("p",{className:"relatedcontent__item-attributes"},e.primaryTag&&ti.createElement("span",{className:"relatedcontent__item-tag"},e.primaryTag),a&&e.hasTimeToRead&&ti.createElement("span",{className:"relatedcontent__item-read-time"},e.timeToRead," ",u),ti.createElement("span",{className:"relatedcontent__item-publish-date"},e.publicationDate)),e.shortDescription&&ti.createElement("p",{className:"relatedcontent__item-description"},e.shortDescription))),ti.createElement("div",{className:"relatedcontent__item-content-wrapper"},ti.createElement("h3",{className:"relatedcontent__item-title h10"},ti.createElement("span",{className:"relatedcontent__item-title-inner"},e.title)),ti.createElement("p",{className:"relatedcontent__item-attributes"},e.primaryTag&&ti.createElement("span",{className:"relatedcontent__item-tag"},e.primaryTag),a&&e.hasTimeToRead&&ti.createElement("span",{className:"relatedcontent__item-read-time"},e.timeToRead," ",u),ti.createElement("span",{className:"relatedcontent__item-publish-date"},e.publicationDate)),e.shortDescription&&ti.createElement("p",{className:"relatedcontent__item-description"},e.shortDescription))):ti.createElement("article",{className:"search-page__tile search-page__tile--versatile relatedcontent__item","data-testid":Ys.VERSATILE},ti.createElement("a",{href:e.url,className:"search-page__tile-link relatedcontent__item-link","aria-label":Sr(e,a,u),"data-dtm-id":r,"data-dtm-data":e.title},ti.createElement("span",{className:"relatedcontent__arrow-decor relatedcontent__arrow-decor--hidden icomoon icon-arrow-top-right","aria-hidden":"true"}),ti.createElement("div",{className:"relatedcontent__item-content-wrapper"},e.primaryTag&&!d&&ti.createElement(pa,{searchItem:e}),ti.createElement(oa,{searchItem:e}),e.shortDescription&&ti.createElement(Ka,{shortDescription:e.shortDescription}),!e.hideDefaultAttributeValues&&e.hasTimeToRead&&!d&&ti.createElement(Ba,{article:e,actionLabel:u,isTimeToReadEnabled:a}),d&&ti.createElement("div",{className:"relatedcontent__item-attributes"},e.primaryTag&&ti.createElement(pa,{searchItem:e}),!e.hideDefaultAttributeValues&&e.hasTimeToRead&&ti.createElement(Ba,{article:e,actionLabel:u,isTimeToReadEnabled:a})),c&&ti.createElement(qa,{label:o}))))},Lr=({label:e,isDisabled:t=!1,isHidden:s=!1,onClick:i=()=>{},analyticsData:n,analyticsId:a,className:r="ds-button ds-button--secondary-1 ds-button--icon ds-button--icon-arrow-down"})=>ti.createElement("div",{className:"search-page__action-button relatedcontent__load-more-button text-center"},ti.createElement("button",{className:`cmp-button  ${r}${s?" is-hidden":""}`,onClick:i,disabled:t,"data-dtm-data":n,"data-dtm-id":a,"aria-hidden":s},e)),yr=new Date;yr.setMonth(yr.getMonth()-6);const _r=(e,t,s)=>e?.length?(e.forEach((i,n)=>{let a=i.allTags??[];Array.isArray(i.allTags)||(a=Array.from(a));let{primaryTagCount:r=0,secondaryTagCount:o=0}=i;const{publicationDateForScore:l}=i;let c=0,d=0;
3a.forEach(e=>{t.includes(e)&&(c+=100,r++),s.includes(e)&&(d+=25,o++)});const h=c+d;let u=0;u+=l?.01*Math.round((new Date(l).getTime()-yr.getTime())/864e5):0;const m=u+h;Object.assign(e[n],{tagScore:h,primaryTagCount:r,secondaryTagCount:o,totalMatchScore:m})}),e.sort((e,t)=>t.totalMatchScore-e.totalMatchScore)):[],Ar=({displayMode:e,maxNumberOfItems:t,variant:s})=>{const[i,n]=(0,ti.useState)(1),[a,r]=(0,ti.useState)(!0),o=(0,ti.useRef)(null),l=(0,ti.useRef)(null),c=(0,ti.useRef)(null),d=(0,ti.useRef)(0),{searchResults:h,isLoading:u,isPageChange:m,wasFirstBatchLoaded:p,searchResultsCount:g}=qi("",[],{shouldConcat:!0,isAnalyticsEnabled:!0}),{loadMoreButtonLabel:f,displayLabel:E,backToTopLabel:b,ofLabel:T,noResultsLabel:S,shouldDisplayLoadMoreButton:v,buttonDtmId:L,sortOrder:y}=mi(),_=!m&&!u||i>1,[A,C]=(e=>e===Gs.ARTICLE?[Ga,Ks.ARTICLE]:e===Gs.PRIMARY_TAG?[er,Ks.PRIMARY_TAG]:e===Gs.VERSATILE?[vr,Ks.VERSATILE]:e===Gs.UNIVERSAL?[pr,Ks.UNIVERSAL]:[or,Ks.GENERIC])(e),[w,N]=(0,ti.useState)([]),{primaryTags:I,secondaryTags:R}=mi(),D="display-as-list",M=u||!p&&0===h.length;(0,ti.useEffect)(()=>{if(m&&o.current){const e=(i-1)*t+1,s=fn(o.current,e);s?.scrollIntoView({behavior:"smooth"}),s?.focus({preventScroll:!0})}},[m]),(0,ti.useEffect)(()=>{r(!0),d.current=0},[h]),(0,ti.useEffect)(()=>{const e=i*t;let s;if("RELEVANCY"===y){s=_r(h,I,R).slice(0,e)}else s=h.slice(0,e);const n=d.current,a=s.length,o="RELEVANCY"===y?_r(h,I,R).length:h.length;if(i>1){r(a>n&&a<o)}else r(a<o);d.current=a,N(s)},[h,i,t,y,I,R,g]);const O=a,x=Math.min(g,100),P=["featured-insights","two-columns",D,"ampersands-listing"].includes(s||""),k={default:4,"two-card":3,ampersands:4,"ampersands-feature":5}[s||"default"]||4;const H=s!==D&&(u||!P&&w.length>=k);return(0,ti.useEffect)(()=>{if(!u&&w.length>0&&o.current){let e;const t=()=>{const e=o.current?.closest(".relatedcontent");e&&(l.current&&(l.current.destroy(),l.current=null),c.current&&(c.current.destroy(),c.current=null),"ampersands-feature"===s?c.current=new Ws(e):H&&(l.current=new $s(e),l.current.init()))};return e=requestAnimationFrame(()=>{e=requestAnimationFrame(t)}),()=>{e&&cancelAnimationFrame(e)}}},[s,u,w.length,H]),(0,ti.useEffect)(()=>()=>{l.current&&(l.current.destroy(),l.current=null),c.current&&(c.current.destroy(),c.current=null)},[]),ti.createElement(ti.Fragment,null,ti.createElement("section",{className:"search-page"+(H?" swiper relatedcontent__list-wrapper":""),ref:o,"data-component":"related-content-slider"},p&&0===w.length?ti.createElement("p",{className:"search-page__no-results glossary__no-results-text"},S):ti.createElement(ti.Fragment,null,ti.createElement(Ha,{type:C,resultsPerBatch:t,isLoading:M,variant:s,shouldUseSwiper:H},_?w.map(e=>ti.createElement(A,{item:e,key:e.id,variant:s})):null),E&&v&&P&&w.length>0&&ti.createElement("p",{className:"search-page__page-results-display-text"},`${E} 1 - ${w.length} ${T} ${x}`)),v&&P&&O&&w.length>0&&ti.createElement(Lr,{className:"btn btn-white btn-icon btn-add",label:u?"loading":f,isDisabled:M,onClick:()=>{n(i+1)},isHidden:!O,analyticsId:L,analyticsData:f}),v&&P&&!O&&g>t&&ti.createElement(Lr,{className:"btn btn-white",label:b,isDisabled:M,onClick:()=>{if(o?.current){const e=o.current.closest(".relatedcontent");if(!e)return;const t=document.querySelector(".header-fixed")?.offsetHeight||0,s=e.getBoundingClientRect().top+window.pageYOffset-t;window.scroll({top:s,behavior:"smooth"}),e?.focus({preventScroll:!0})}},isHidden:!1,analyticsId:L,analyticsData:b})),H&&ti.createElement(ti.Fragment,null,ti.createElement("div",{className:"relatedcontent__navigation-wrapper"},ti.createElement("button",{className:"relatedcontent__navigation-button relatedcontent__navigation-button--prev"},ti.createElement("span",{className:"icomoon icon-chevron-left"}),ti.createElement("span",{className:"sr-only"},"Prev slider")),ti.createElement("button",{className:"relatedcontent__navigation-button relatedcontent__navigation-button--next"},ti.createElement("span",{className:"icomoon icon-chevron-right"}),ti.createElement("span",{className:"sr-only"},"Next slider"))),ti.createElement("fieldset",{className:"relatedcontent__pagination"})))},Cr=e=>{const t=JSON.parse(e.querySelector(".dynamic-content-config").text),s=t.displayModeMappings.mappings[t.pageType],i=e.querySelector(".related-content-dynamic-app"),n=i&&i.dataset.variant||"",a=t.tags.length>0?[{any:{[ri.ALL_TAGS]:t.tags}}]:[];(0,si.H)(e).render(ti.createElement(oi.Provider,{value:t},ti.createElement(ui,{engineName:t.engineName,endpointBase:t.endpointBase,searchKey:t.searchKey,siteId:t.siteId,resultsPerBatch:100,constantPageQuery:[...a,{[ri.PAGE_TYPE]:[t.pageType]},{none:{[ri.CUSTOM_TITLE]:[t.currentPageTitle]}}],initialState:ni[t.sortOrder]},ti.createElement(Ar,{displayMode:s,maxNumberOfItems:t.numberOfItems,variant:n}))))},wr=({currentPage:e,totalPages:t,onPageChange:s})=>{const{firstPageButtonLabel:i,previousPageButtonLabel:n,nextPageButtonLabel:a,lastPageButtonLabel:r}=mi(),[o,l]=(0,ti.useState)(window.innerWidth<600);(0,ti.useEffect)(()=>{let e;const t=()=>{clearTimeout(e),e=globalThis.setTimeout(()=>{l(window.innerWidth<600)},250)};return globalThis.addEventListener("resize",t),globalThis.addEventListener("orientationchange",t),()=>{globalThis.removeEventListener("resize",t),globalThis.removeEventListener("orientationchange",t),clearTimeout(e)}},[]);const c=1===e,d=e===t,h=(()=>{const s=e,i=t;return o?((e,t)=>
3{const s=[];if(t<=4){for(let e=1;e<=t;e++)s.push(e);return s}return 1===e?(s.push(1),t>1&&s.push("...",t)):e===t?s.push(1,"...",t):s.push(e,"...",t),s})(s,i):i>7?((e,t)=>{const s=[];let i,n;s.push(1),e>3&&s.push("..."),e<=2?(i=2,n=3):e>=t-1?(i=t-2,n=t-1):(i=e-1,n=e+1),i=Math.max(2,i),n=Math.min(t-1,n);for(let e=i;e<=n;e++)s.push(e);return e<t-2&&s.push("..."),t>1&&s.push(t),s})(s,i):(e=>{const t=[];for(let s=1;s<=e;s++)t.push(s);return t})(i)})();return ti.createElement("div",{className:"search-results-pagination-section pagination aem-GridColumn aem-GridColumn--default--12"},ti.createElement("div",{className:"search-results-pagination pagination__nav "},ti.createElement("button",{className:"pagination__button search-results-pagination__nav-btn search-results-pagination__nav-btn--first "+(c?"search-results-pagination__nav-btn--hidden":""),"data-testid":"pagination-first-button","data-dtm-id":"button","data-dtm-data":i,onClick:()=>s(1),"aria-label":i,disabled:c},ti.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"25",viewBox:"0 0 24 25",fill:"none"},ti.createElement("path",{d:"M15.3916 16.7031L16.3316 15.7631L13.2783 12.7031L16.3316 9.64312L15.3916 8.70312L11.3916 12.7031L15.3916 16.7031Z",fill:"#2F2F2F"}),ti.createElement("path",{d:"M10.999 16.7031L11.939 15.7631L8.88569 12.7031L11.939 9.64312L10.999 8.70312L6.99902 12.7031L10.999 16.7031Z",fill:"#2F2F2F"}))),ti.createElement("button",{className:"pagination__button search-results-pagination__nav-btn search-results-pagination__nav-btn--previous "+(c?"search-results-pagination__nav-btn--hidden":""),"data-testid":"pagination-previous-button","data-dtm-id":"button","data-dtm-data":n,onClick:()=>s(e-1),"aria-label":n,disabled:c},ti.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"17",viewBox:"0 0 16 17",fill:"none"},ti.createElement("path",{d:"M10.06 12.7031L11 11.7631L7.94667 8.70313L11 5.64312L10.06 4.70313L6.06 8.70313L10.06 12.7031Z",fill:"#2F2F2F"}))),h.map((t,i)=>
3{if("..."===t){const t=i<h.indexOf(e)?"dots-start":"dots-end";return ti.createElement("div",{key:t,className:"search-results-pagination__page-dots","aria-hidden":"true"},"...")}const n=t,a=n===e;return ti.createElement("button",{key:n,className:"pagination__button search-results-pagination__page-btn "+(a?"pagination__page--active":""),"data-testid":`pagination-page-${n}`,"data-dtm-id":"button","data-dtm-data":`Page ${n}`,onClick:()=>s(n),"aria-label":`Go to page ${n}`,"aria-current":a?"page":void 0},n)}),ti.createElement("button",{className:"pagination__button search-results-pagination__nav-btn search-results-pagination__nav-btn--next "+(d?"search-results-pagination__nav-btn--hidden":""),"data-testid":"pagination-next-button","data-dtm-id":"button","data-dtm-data":a,onClick:()=>s(e+1),"aria-label":a,disabled:d},ti.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"17",viewBox:"0 0 16 17",fill:"none"},ti.createElement("path",{d:"M5.94 12.7031L5 11.7631L8.05333 8.70313L5 5.64312L5.94 4.70313L9.94 8.70313L5.94 12.7031Z",fill:"#2F2F2F"}))),ti.createElement("button",{className:"pagination__button search-results-pagination__nav-btn search-results-pagination__nav-btn--last "+(d?"search-results-pagination__nav-btn--hidden":""),"data-testid":"pagination-last-button","data-dtm-id":"button","data-dtm-data":r,onClick:()=>s(t),"aria-label":r,disabled:d},ti.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"25",viewBox:"0 0 24 25",fill:"none"},ti.createElement("path",{d:"M7.93945 16.7031L6.99945 15.7631L10.0528 12.7031L6.99945 9.64312L7.93945 8.70312L11.9395 12.7031L7.93945 16.7031Z",fill:"#2F2F2F"}),ti.createElement("path",{d:"M12.332 16.7031L11.392 15.7631L14.4454 12.7031L11.392 9.64312L12.332 8.70312L16.332 12.7031L12.332 16.7031Z",fill:"#2F2F2F"})))))},Nr=(e,t,s)=>`${t} ${e.primaryTag??""} - ${e.title} - ${s??""}`,Ir=({item:e,downloadAriaLabel:t,index:s,downloadCtaLabel:i,openInNewTab:n})=>{const a=(0,ti.useRef)(null);return na(a,e,s),ti.createElement("article",{className:"search-page__tile search-page__tile--document hover-expand-circle","data-testid":Ys.DOCUMENT},ti.createElement("a",{href:e.url,className:"search-page__tile-link bg-white base-bg","aria-label":Nr(e,t,i),ref:a,target:n?"_blank":"_self",rel:n?"noreferrer":""},ti.createElement("div",{className:""},ti.createElement("div",{className:"search-page__tile-header"},ti.createElement(pa,{searchItem:e})),ti.createElement(ra,{title:e.title})),ti.createElement("div",{className:"text-right search-page__tile-download"},i&&ti.createElement("span",null,i),ti.createElement("span",{className:"icomoon "+(n?"icon-blank":"icon-pdf")})),ti.createElement("div",{className:"hover-expand-circle__ellipse-wrapper mix-blend-multiply"},ti.createElement("div",{className:"hover-expand-circle__ellipse"}))))},Rr=()=>{const[e,t]=(0,ti.useState)(1),[s,i]=(0,ti.useState)([]),[n,a]=(0,ti.useState)(void 0),r=(0,ti.useRef)(null);(0,ti.useEffect)(()=>{if(r.current){const e=r.current.closest(".funds-file-listing"),t=e instanceof HTMLElement&&"true"===e.dataset.autoSuggest;a(t)}},[]);const{title:o,searchBarPlaceholder:l,downloadAriaLabel:c,filters:d,noResultsLabel:h,pageType:u,searchButtonLabel:m,downloadCtaLabel:p,openInNewTab:g,clearLabel:f}=mi(),{searchPhrase:E,SearchBarComponent:b,setSearchPhrase:T}=dn({placeholder:l,shouldClearAfterSubmit:!0,buttonLabel:m,enableAutoSuggest:n,smallInDesktop:!0,clearLabel:f}),S=0===Object.keys(s).length?[]:s,{searchResults:v,wasFirstBatchLoaded:L,totalPages:y,isPageChange:_,currentResultsCount:A,isLoading:C}=qi(E,S,{searchType:u.split("/").pop(),setSearchTermConfig:{shouldClearFilters:!1},currentBatch:e,categoryFilters:d,isAnalyticsEnabled:!0});(0,ti.useEffect)(()=>{if(_&&r.current){const e=r.current.closest(".funds-file-listing-app");e&&e.scrollIntoView({behavior:"smooth"}),r.current.querySelector(".search-page__tile-link")?.focus({preventScroll:!0})}},[_]),(0,ti.useEffect)(()=>{t(1)},[E,s]);const w=(e-1)*ii[Gs.DOCUMENT].resultsPerBatch;return ti.createElement("div",{className:"fade-in-up"},ti.createElement("div",{className:"spacer-spacing-9"}),ti.createElement("div",{className:"funds-file-listing-title"},ti.createElement("h2",{className:"h6"},o)),ti.createElement("section",{className:"search-page-funds-file",ref:r},ti.createElement("div",{className:"search-page"},d.length>0&&ti.createElement(Kn,{filters:d,setFiltersQuery:i,searchPhrase:E,setSearchPhrase:T}),b),ti.createElement("div",{className:"total-search-results","data-search-results-count":A},(!L||C)&&ti.createElement(ya,null),L&&!C&&0===v.length&&ti.createElement("p",{className:"search-page__no-results glossary__no-results-text"},h),L&&v.length>0&&ti.createElement(Qn,{type:Ks.DOCUMENT,isLoading:C},v.map((e,t)=>ti.createElement(Ir,{key:e.id,item:e,downloadAriaLabel:c,index:t+w,downloadCtaLabel:p,openInNewTab:g}))))),y>1&&!C&&ti.createElement(ti.Fragment,null,ti.createElement(wr,{totalPages:y,currentPage:e,onPageChange:t}),ti.createElement("div",{className:"spacer-spacing-7"})))},Dr=new RegExp(/{\{[a-z]*}}/),Mr="search-results--empty",Or=(e,t,s,i,n)=>(0,ti.useEffect)(()=>{n&&s&&(0===e?(n.classList.add(Mr),((e,t)=>{const s=`interpolate-${t}`,i=document.querySelector(`.${s}`);i&&(i.textContent=e)})(t,i)):n.classList.remove(Mr))},[e,t,s]),xr=(e=!0,t="")=>{const{siteId:s,endpointBase:i,searchKey:n,engineName:a}=mi(),[r,o]=(0,ti.useState)({globalCounts:{},globalTotalCount:0,isLoading:!1,error:null}),l=(0,ti.useRef)(new Map),c=(0,ti.useRef)(null),d=(0,ti.useCallback)(async(e,t)=>{if(!(i&&a&&n&&s))return void o(e=>({...e,error:"Missing API configuration"}));const r=(e=>e.toLowerCase().trim()||"__GLOBAL_EMPTY__")(e),c=l.current.get(r);if(c)o(e=>({...e,globalCounts:c.counts,globalTotalCount:c.totalCount,isLoading:!1,error:null}));else{o(e=>({...e,isLoading:!0,error:null}));try{const c=`${i}/api/as/v1/engines/${a}/search.json`,d={query:e||"",result_fields:{id:{raw:{}}},page:{size:1,current:1},facets:{[ri.PAGE_TYPE]:{type:"value"}},filters:{all:[{[ri.SITE_ID]:[s]}],none:{[ri.HIDE_IN_SEARCH]:["true"]}}},h=await fetch(c,{method:"POST",headers:{"Content-Type":"application/json",Authorization:n?.startsWith("search-")?`Bearer ${n}`:`Basic ${n}`},body:JSON.stringify(d),signal:t});if(!h.ok)throw new Error(`API request failed: ${h.status} ${h.statusText}`);const u=await h.json(),m=(e=>(e.facets?.[ri.PAGE_TYPE]?.[0]?.data||[]).reduce((e,t)=>
3(e[t.value]=t.count,e),{}))(u),p=u.meta?.page?.total_results||0;l.current.set(r,{counts:m,totalCount:p}),(e=>{if(e.size>10){const t=e.keys().next().value;void 0!==t&&e.delete(t)}})(l.current),o(e=>({...e,globalCounts:m,globalTotalCount:p,isLoading:!1,error:null}))}catch(e){if(e instanceof Error&&"AbortError"===e.name)return;const t=e instanceof Error?e.message:"Failed to fetch global facets";o(e=>({...e,isLoading:!1,error:t}))}}},[i,a,n,s]),h=(0,ti.useCallback)(()=>{c.current&&(c.current.abort(),c.current=null)},[]);return(0,ti.useEffect)(()=>{if(!e)return h;h();const s=new AbortController;return c.current=s,d(t,s.signal).catch(e=>{e instanceof Error&&"AbortError"!==e.name&&console.error("Global facets fetch error:",e)}),h},[e,d,h,t]),(0,ti.useEffect)(()=>()=>{h(),l.current.clear()},[h]),{globalCounts:r.globalCounts,globalTotalCount:r.globalTotalCount}},Pr=({heading:e,isSelected:t,onSelect:s,isEnabled:i,appendRef:n=()=>{}})=>{const a=(0,ti.useRef)(null);return i&&n(a),ti.createElement("li",{role:"tab",onClick:()=>i&&s(),className:"cmp-tabs__tab "+(t?"cmp-tabs__tab--active":""),tabIndex:t?0:-1,"aria-selected":t,"data-testid":"tab",ref:a},e)},kr=({tabs:e,onCategorySelection:t,searchPhrase:s,selectedCategory:i})=>{const n=()=>{const t=e.findIndex(e=>e.value===i);return Math.max(t,0)},[a,r]=(0,ti.useState)(n()),o=[];(0,ti.useEffect)(()=>r(0),[s]),(0,ti.useEffect)(()=>{r(n())},[i,e]);return ti.createElement("div",{className:"tabs aem-GridColumn aem-GridColumn--default--12"},ti.createElement("ol",{"data-testid":"tabs-container",className:"cmp-tabs__tablist",role:"tablist","aria-multiselectable":"false",onKeyDown:({key:s})=>{if(o.length>1&&(s===Ki||s===ji)){const i=o.findIndex(({index:e})=>e===a),n=o[(i+(s===ji?1:-1)+o.length)%o.length];r(n.index),t(e[n.index].value),n.element?.focus()}}},e.map((e,s)=>ti.createElement(Pr,{key:e.title,heading:e.title,isSelected:s===a,onSelect:()=>{r(s),t(e.value)},isEnabled:e.isEnabled,appendRef:e=>o.push({element:e.current,index:s})}))))},Hr=(e,t)=>`${e} (${t})`,Br=({searchResultsCount:e,resultsPerCategory:t,searchPhrase:s,selectedCategory:i,onCategorySelection:n,globalCounts:a,globalTotalCount:r})=>{const{allLabel:o,filters:l}=mi(),c=(0,ti.useRef)({counts:{},totalCount:0}),d=(e=>Boolean(e?.trim()))(i),h=(0,ti.useCallback)(()=>{Object.keys(a).length>0&&r>0&&(c.current={counts:a,totalCount:r})},[a,r]);(0,ti.useEffect)(()=>{h()},[h]);const u=(0,ti.useMemo)(()=>{const s=Object.keys(a).length>0,i=Object.keys(c.current.counts).length>0,n=c.current.counts,h=l.filter(e=>!!e.value&&((e,t,s)=>{const i=t[e]||0,n=s[e]||0;return i>0||n>0})(e.value,a,t)).map(e=>{const r=((e,t,s,i,n,a)=>{const r=t[e]||0,o=s[e]||0,l=i[e]||0;return n&&r>0?r:a&&o>0?o:l})(e.value,a,n,t,s,i);return{title:Hr(e.name,r),value:e.value,isEnabled:!0}});let u=e;return d&&r>0?u=r:!d&&i&&c.current.totalCount>0&&(u=Math.max(e,c.current.totalCount)),[{title:Hr(o,u),value:"",isEnabled:!0},...h]},[o,e,l,d,a,r,t]);return ti.createElement(kr,{searchPhrase:s,tabs:u,selectedCategory:i,onCategorySelection:n})};var Fr=s(9418);const qr=({article:e,actionLabel:t,isTimeToReadEnabled:s=!0,hidePublicationDate:i=!1})=>{const n=e.type===Gs.VERSATILE,{view:a=ei.DEFAULT,articleDateLabel:r=""}=mi();return e.hasTimeToRead&&s||e.publicationDate&&i?ti.createElement(ti.Fragment,null,(n||a===ei.SMART_MODE||a===ei.SMART_RESULTS)&&!i&&s&&e.hasTimeToRead&&ti.createElement(ti.Fragment,null,ti.createElement("span",{className:"article-publish-date"},e.showDateLabel&&ti.createElement(ti.Fragment,null,r," "),e.publicationDate),ti.createElement("span",{className:"article-attributes__separator"})),s&&e.hasTimeToRead&&ti.createElement("span",{className:"article-read-time"},`${e.timeToRead} ${e.readTimeLabel||t}`),!n&&a===ei.DEFAULT&&!i&&ti.createElement(ti.Fragment,null,ti.createElement("span",{className:"article-attributes__separator"}),ti.createElement("span",{className:"article-publish-date"},e.showDateLabel&&ti.createElement(ti.Fragment,null,r," "),e.publicationDate))):null},$r=({documentData:e,tags:t,hidePublicationDate:s=!1})=>{const{view:i=ei.DEFAULT,documentParentTag:n,documentDateLabel:a,pdfLabel:r}=mi(),o=Object.keys(t??{}).filter(t=>e.allTags?.includes(t)).reduce((e,s)=>({...e,[s]:t?.[s]}),{}),l=e.allTags?.filter(e=>e.includes(n)&&e!==n).map(e=>
3o?o[e]:"").filter(Boolean).join(", ");return ti.createElement("div",{className:"document-attributes"},(i===ei.DEFAULT||i===ei.SMART_RESULTS)&&ti.createElement(ti.Fragment,null,!yn()&&ti.createElement(ti.Fragment,null,ti.createElement("div",{className:"document-icon__container"},ti.createElement("span",{className:"document-type__icon"}),ti.createElement("span",{className:"document-type__tags"},l),0===l?.length&&ti.createElement("span",null,r)),ti.createElement("div",{className:"document-icon__container"},e.catCode&&ti.createElement("span",{className:"document-attributes__separator"}),e.catCode),!s&&ti.createElement("div",{className:"document-icon__container"},ti.createElement("span",{className:"document-date__label"},a),ti.createElement("span",{className:"document-date__gap"},e.publicationDate),ti.createElement("span",{className:"document-attributes__separator"}))),yn()&&ti.createElement("div",{className:"mobile-document__attributes"},ti.createElement("div",{className:"date-catcode__container"},ti.createElement("div",{className:"document-icon__container"},ti.createElement("span",{className:"document-type__catcode"},e.catCode))),ti.createElement("div",{className:"document-icon__container"},ti.createElement("span",{className:"document-type__icon"}),ti.createElement("span",{className:"document-type__tags"},l),0===l?.length&&ti.createElement("span",null,r)),!s&&ti.createElement("div",{className:"document-icon__container"},ti.createElement("span",null,a),ti.createElement("span",{className:"document-date__gap"},e.publicationDate),e.catCode&&ti.createElement("span",{className:"document-attributes__separator"})))))},zr=({tags:e,tagList:t})=>{let s;if(Array.isArray(e)){const i=e?.map(e=>{const s=t?.[e];return s}),n=[...new Set(i)];s=[...n].sort((e,t)=>e&&t?e.toLowerCase().localeCompare(t.toLowerCase()):0)}return ti.createElement(ti.Fragment,null,e&&e.length>0&&ti.createElement(ti.Fragment,null,s?.map((e,t)=>{const i=`tag-${t}`;return ti.createElement(ti.Fragment,{key:i},ti.createElement("span",{className:"search-tags__data"},e),t!==s.length-1&&ti.createElement("span",{className:"search-tags__separator"}))}),!Array.isArray(e)&&ti.createElement("span",{className:"search-tags__data"},t?.[e])))},Ur=({thumbnailList:e})=>e&&ti.createElement("div",{className:"image-container"},ti.createElement("img",{className:"search-page__image",src:e.thumbnailImage,alt:e.pageType})),Wr=e=>{const{item:t,isTimeToReadEnabled:s,actionLabel:i,tags:n,shouldIncludeTags:a,isFundPage:r,fundISIN:o,fundDescLabel:l,isDocumentCentreItem:c,documentParentTag:d,pdfLabel:h,hidePublicationDate:u,view:m,isNotFundOrLiteraturePage:p}=e,g=hn(t)||mn(t),f=m===ei.DEFAULT||m===ei.SMART_RESULTS,E=t.publicationDate&&!u,b=!(!pn(t)&&!g)&&(s&&t.timeToRead&&i),T=t.publicationDate&&!1===u&&f,S=[],v=()=>{(un(t)||gn(t))&&"catCode"in t&&t.catCode&&S.push(t.catCode)},L=()=>{E&&S.push(String(t.publicationDate))},y=()=>{b&&(g||pn(t))&&S.push(`${t.timeToRead} ${i}`)};return t.primaryTag&&t.type!==Gs.GENERIC&&S.push(t.primaryTag),(()=>{if(r&&o&&t.title){const e=t.title.split("|")[0].trim();e&&S.push(e)}else t.title&&S.push(t.title)})(),r&&o&&l?S.push(`${l}: ${o}`):(m===ei.DEFAULT&&p&&t.shortDescription||m!==ei.DEFAULT&&!r&&t.shortDescription)&&S.push(t.shortDe
3scription),(()=>{if(c&&t.allTags){const e=(e=>{if(!e||!d||!n)return"";const t=Array.isArray(e)?e:[e],s=Object.keys(n).filter(e=>t.includes(e)).reduce((e,t)=>({...e,[t]:n[t]}),{}),i=t.filter(e=>e.includes(d)&&e!==d).map(e=>s[e]||"").filter(Boolean);return 0===i.length?h||"":i.join(", ")})(t.allTags);e&&S.push(e)}else if(a&&t.allTags){const e=(e=>{if(!e||Array.isArray(e)&&0===e.length)return"";if(Array.isArray(e)){const t=e.map(e=>n?.[e]).filter(e=>Boolean(e));return[...new Set(t)].toSorted((e,t)=>e.toLowerCase().localeCompare(t.toLowerCase())).join(", ")}return n?.[e]??""})(t.allTags);e&&S.push(e)}})(),un(t)?v():gn(t)?(v(),T&&S.push(String(t.publicationDate))):g?(y(),L()):pn(t)&&(t.hideDefaultAttributeValues||(y(),L())),S.join(", ")},Vr=({searchItem:e,index:t,tags:s})=>{const i=(0,ti.useRef)(null),n=(0,ti.useRef)(null),a=(0,ti.useRef)(null),r=In(),{isTimeToReadEnabled:o,minutesToReadLabel:l,minutesToListenLabel:c,minutesToWatchLabel:d,hidePublicationDate:h,view:u,thumbnailList:m,hideThumbnail:p,documentParentTag:g,pdfLabel:f}=mi();ia(i,2),ia(n,r===Zi?3:2),na(a,e,t);let E=l;e.contentType===js.PODCAST?E=c:e.contentType===js.VIDEO&&(E=d);const b="ISIN",T=e?.title?.split?.("|")?.[1],S=u===ei.DEFAULT,v=e?.pageType===Vs.FUND&&Boolean(T),L=e?.image&&!p,y=!e?.image?.includes("/dam/"),_=e?.pageType!==Vs.FUND&&!p,A=e=>e?.pageType!==Vs.FUND&&e?.pageType!==Vs.FUND_LITERATURE,C=m?.find(t=>t.pageType===e.pageType),w=!C?.thumbnailImage?.includes("/dam/"),N=S&&!gn(e)&&A(e)&&Boolean(e?.allTags),I=Wr({item:e,isTimeToReadEnabled:o,actionLabel:E,tags:s,shouldIncludeTags:N,isFundPage:v,fundISIN:T,fundDescLabel:b,isDocumentCentreItem:gn(e),documentParentTag:g,pdfLabel:f,hidePublicationDate:h,view:u,isNotFundOrLiteraturePage:A(e)}),R=e=>{if(!e||""===e.trim())return!1;const t=e.trim();if(/^(javascript|data|vbscript|file|about):/i.test(t))return!1;if(t.startsWith("//")||t.startsWith("http://")||t.startsWith("https://"))try{if(new URL(t,globalThis.location.origin).origin!==globalThis.location.origin)return!1}catch{return!1}return!t.includes("@")&&!t.includes("\\")&&(!!t.startsWith("/")&&!t.startsWith("//"))},D=e=>{const{url:t}=e;if(!R(t))return t;if(!e.title.toLowerCase().includes("glossary"))return t;const s=new URLSearchParams(globalThis.location.search).get("q")||"",i=Fr.A.sanitize(s),n=/^[a-zA-Z0-9\s.,;:!?'"()-]+$/.test(i)?i:"";if(!n)return t;try{const e=new URL(t,globalThis.location.origin);e.searchParams.set("highlight",n);const s=e.toString();return R(s)?s:t}catch{return t}};return ti.createElement("li",{"data-testid":"search-item",className:e.type===Gs.DOCUMENT_CENTRE?"search-results__item document-search__item":"search-results__item"},S&&!gn(e)?ti.createElement("div",{className:"search-results__item--image-thumbnail"},ti.createElement("a",{href:D(e),className:"search-results__link","aria-label":I,ref:a}),ti.createElement("div",{className:"search-results__item--image-thumbnail-image"},(()=>{let t=null;return L?t=y&&ti.createElement(ca,{article:e}):_&&(t=w&&C&&ti.createElement(Ur,{thumbnailList:C})),ti.createElement(ti.Fragment,null,t)})()),ti.createElement("div",{className:"search-results__item--content"},e.type!==Gs.GENERIC&&e.primaryTag&&ti.createElement(pa,{searchItem:e}),ti.createElement(oa,{ref:n,searchItem:e}),v?ti.createElement(ha,{ref:i,shortDescription:`${b}: ${T}`}
3):A(e)&&e.shortDescription?ti.createElement(ha,{ref:i,shortDescription:e.shortDescription}):null,ti.createElement("div",{className:"search-results__item--content-bottom"},A(e)&&e?.allTags&&ti.createElement(zr,{tags:e.allTags,tagList:s}),(hn(e)||mn(e)||pn(e)&&!e.hideDefaultAttributeValues)&&ti.createElement(ti.Fragment,null,e?.allTags&&e?.allTags?.length>0&&ti.createElement("span",{className:"search-tags__separator"}),ti.createElement(qr,{article:e,actionLabel:E,isTimeToReadEnabled:o,hidePublicationDate:h}))))):ti.createElement("a",{href:D(e),className:"search-results__link","aria-label":I,ref:a},e.type!==Gs.GENERIC&&e.primaryTag&&ti.createElement(pa,{searchItem:e}),ti.createElement(oa,{ref:n,searchItem:e}),e?.shortDescription&&ti.createElement(ha,{ref:i,shortDescription:e.shortDescription}),(hn(e)||mn(e)||pn(e)&&!e.hideDefaultAttributeValues)&&ti.createElement(qr,{article:e,actionLabel:E,isTimeToReadEnabled:o,hidePublicationDate:h}),(S||u===ei.SMART_RESULTS)&&gn(e)?ti.createElement($r,{documentData:e,tags:s,hidePublicationDate:h}):null))},Gr=({dataList:e,currentPage:t,tags:s})=>{const i=(t-1)*ii.default.resultsPerBatch;return ti.createElement("ul",{className:"search-results__list aem-GridColumn aem-GridColumn--default--12"},e.map((e,t)=>ti.createElement(Vr,{searchItem:e,key:e.id,index:t+i,tags:s})))},Kr=({color:e="#03363A"})=>ti.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32",fill:"none"},ti.createElement("path",{d:"M24 9.4L22.6 8L16 14.6L9.4 8L8 9.4L14.6 16L8 22.6L9.4 24L16 17.4L22.6 24L24 22.6L17.4 16L24 9.4Z",fill:e})),Yr=({rootNode:e,noResultsFragmentIdentifier:t,initialSearchQuery:s=""})=>{const{searchBarPlaceholder:i,filters:n,view:a=ei.DEFAULT,title:r,pageType:o,searchButtonLabel:l,titleWithKeyword:c,noResultsFoundText:d,description:h,contentTypeLabel:u,filterLabel:m,seeResultsLabel:p,clearLabel:g}=mi(),f=(0,ti.useCallback)(e=>{if(!e)return"";const t=e.split("/");return t.length>1?t.at(-1)??"":""},[]),E=(0,ti.useCallback)(e=>{if(!e)return"";const t=n.find(t=>{const s=t.value.split("/");return s.length>1&&s.at(-1)===e});return t?t.value:""},[n]),{params:b,updateParams:T}=(({initialParams:e,paramConfig:t,onParamsChange:s})=>{const i=(0,ti.useCallback)(()=>{const s=new URL(globalThis.location.href).searchParams,i={...e};return Object.keys(t).forEach(e=>{const n=t[e],a=s.get(n.paramName);null!==a&&(i[e]=n.deserialize?n.deserialize(a):a)}),i},[e,t]),n=(0,ti.useCallback)(e=>{const s=new URL(globalThis.location.href),i=s.searchParams;Object.entries(e).forEach(([e,s])=>{const n=t[e];if(void 0!==s&&n)if(n.isDefault?.(s))i.delete(n.paramName);else{const e=n.serialize?.(s)??String(s);i.set(n.paramName,e)}}),globalThis.history.replaceState(null,"",s.href)},[t]),[a]=(0,ti.useState)(()=>i()),[r,o]=(0,ti.useState)(a),[l,c]=(0,ti.useState)(!1),[d,h]=(0,ti.useState)(a);(0,ti.useEffect)(()=>{if(l){const e={};let t=!1;Object.keys(r).forEach(s=>{r[s]!==d[s]&&(e[s]=r[s],t=!0)}),t&&(n(e),s?.(r)),h(r)}},[r,l,n,s]),(0,ti.useEffect)(()=>{c(!0)},[]),(0,ti.useEffect)(()=>{const e=()=>{const e=i();o(e),h(e)};return globalThis.addEventListener("popstate",e),()=>globalThis.removeEventListener("popstate",e)},[i]);const u=(0,ti.useCallback)(e=>{o(t=>({...t,...e}))},[]),m=(0,ti.useCallback)(()=>{o(e)},[e]);return{params:r,updateParams:u,resetParams:m,setParams:o}})({initialParams:{searchQuery:s,category:o||"",page:1},paramConfig:{searchQuery:{paramName:"q",isDefault:e=>!e},category:{paramName:"category",serialize:e=>f(e),deserialize:e=>E(e),isDefault:e=>!e||e===o},page:{paramName:"page",serialize:e=>e.toString(),deserialize:e=>Number.parseInt(e)||1,isDefault:e=>1===e}}}),S=b.category,v=b.page,[L,y]=(0,ti.useState)(void 0),[_,A]=(0,ti.useState)(ti.createElement("h2",null,r)),C=(0,ti.useRef)(null),w=(0,ti.useRef)(0),N=(0,ti.useRef)(!0);(0,ti.useEffect)(()=>{if(C.current){const e="true"===C.current.parentElement?.parentElement?.dataset.autoSuggest;y(e)}},[]);const{searchPhrase:I,SearchBarComponent:R}=dn({placeholder:i,initialSearchQuery:b.searchQuery,afterSubmitCallback:()=>T({category:"",page:1}),buttonLabel:l,enableAutoSuggest:L,clearLabel:g,smallInDesktop:!0}),D=Boolean(N.current&&S?.trim()&&S!==o),{globalCounts:M,globalTotalCount:O}=xr(D,I),{searchResults:x,searchResultsCount:P,resultsPerCategory:k,wasFirstBatchLoaded:H,totalPages:B,isPageChange:F,isLoading:q,tags:$}=qi(I,[{name:ri.PAGE_TYPE,values:[S],filterType:ai.AND}],{searchType:Di.ALL,currentBatch:v,isAnalyticsEnabled:!0,categoryFilters:n}),[z,U]=(0,ti.useState)(!1);return(0,ti.useEffect)(()=>{F&&C.current&&(C.current.scrollIntoView({behavior:"smooth"}),C.current.querySelector(".search-results__link")?.focus({preventScroll:!0}))},[F]),Or(P,I,H,t,e),(0,ti.useEffect)(()=>{H&&N.current&&(N.current=!1)},[H]),(0,ti.useEffect)(()=>{T({searchQuery:I,page:I===b.searchQuery?v:1})},[I]),(0,ti.useEffect)(()=>{""===I&&""!==b.searchQuery&&T({category:"",page:1})},[I,b.searchQuery,T]),(0,ti.useEffect)(()=>{S!==b.category&&T({page:1})},[S]),(0,ti.useEffect)(()=>
3{if(a===ei.SMART_RESULTS){let e;e=I?P>0?ti.createElement(ti.Fragment,null,c," ‘",I,"’ ",ti.createElement("span",null,"(",P,")")):d:r,A(ti.createElement("h2",{className:"search-results__title"},e))}},[x]),(0,ti.useEffect)(()=>{z?w.current=window.scrollY:window.scrollTo({top:w.current})},[z]),ti.createElement("div",{className:`aem-Grid aem-Grid--12 aem-Grid--default--12\n       ${a===ei.SMART_MODE&&"search-results-app--smart-mode"}\n       ${H?"first-batch-loaded":""}\n      `,ref:C},ti.createElement("div",{className:"search-results__hero-container "},ti.createElement("div",{className:"container-wrapper-inner fade-in-up"},ti.createElement("div",{className:"search-results__hero-container-inner spacing-after-breadcrumb"},ti.createElement("div",{className:"search-results__heading"},ti.createElement("h1",{className:"h3"},r)),ti.createElement("div",{className:"search-results__search-bars-container"},a===ei.DEFAULT&&R)))),ti.createElement("div",{className:"container-wrapper-inner fade-in-up"},!H&&ti.createElement(ya,null),H&&ti.createElement("div",{className:"search-results-wrapper"},ti.createElement("div",{className:"search-results-tabs-container-mobile"},ti.createElement("button",{type:"button",className:"search-results-tabs-container-mobile__button",onClick:()=>U(!0)},ti.createElement("span",{className:"search-results-tabs-container-mobile__button-text"},m),ti.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},ti.createElement("path",{d:"M8.25 13.5C10.05 13.5 11.5498 14.775 11.9248 16.5H22.5V18H11.9248C11.5498 19.725 10.05 21 8.25 21C6.45001 21 4.95021 19.725 4.5752 18H1.5V16.5H4.5752C4.95021 14.775 6.45001 13.5 8.25 13.5ZM8.25 15C6.975 15 6 15.975 6 17.25C6 18.525 6.975 19.5 8.25 19.5C9.525 19.5 10.5 18.525 10.5 17.25C10.5 15.975 9.525 15 8.25 15ZM15.75 3C17.55 3 19.0498 4.27502 19.4248 6H22.5V7.5H19.4248C19.0498 9.22498 17.55 10.5 15.75 10.5C13.95 10.5 12.4502 9.22498 12.0752 7.5H1.5V6H12.0752C12.4502 4.27502 13.95 3 15.75 3ZM15.75 4.5C14.475 4.5 13.5 5.475 13.5 6.75C13.5 8.025 14.475 9 15.75 9C17.025 9 18 8.025 18 6.75C18 5.475 17.025 4.5 15.75 4.5Z",fill:"#055A60"})))),ti.createElement("div",{className:"search-results-tabs-container "+(z?"is-active":"")},ti.createElement("div",{className:"search-results-tabs-container-mobile__header"},ti.createElement("span",null,m),ti.createElement("button",{type:"button",className:"search-results-tabs-container-mobile__button search-results-tabs-container-mobile__button--close",onClick:()=>U(!1)},ti.createElement(Kr,null),ti.createElement("span",{className:"sr-only"},"Close"))),a===ei.DEFAULT&&ti.createElement(ti.Fragment,null,ti.createElement("div",{className:"search-results-tabs-container-mobile__content-type"},ti.createElement("span",null,u)),ti.createElement(Br,{searchPhrase:I,searchResultsCount:P,resultsPerCategory:k,selectedCategory:S,onCategorySelection:e=>T({category:e,page:1}),globalCounts:M,globalTotalCount:O})),ti.createElement("div",{className:"search-results-tabs-container-mobile__see-results"},ti.createElement("button",{type:"button",className:"search-results-tabs-container-mobile__see-results-button cmp-button btn btn-teal",onClick:()=>U(!1)},p)),a===ei.SMART_MODE&&ti.createElement(ti.Fragment,null,ti.createElement("h2",null,r," ",I&&ti.createElement(ti.Fragment,null,"‘",I,"’ "),H&&ti.createElement("span",null,"(",P,")")),ti.createElement("div",{className:"spacer spacer--line-separator"},ti.createElement("div",{className:"form-line-separator"}))),a===ei.SMART_RESULTS&&ti.createElement(ti.Fragment,null,ti.createElement("div",{className:"search-results__search-container"},ti.createElement("div",{className:"aem-Grid aem-Grid--12 aem-Grid--default--12"},_,ti.createElement("span",{className:"search-results__description"},h),R)),P>0&&ti.createElement(Br,{searchPhrase:I,searchResultsCount:P,resultsPerCategory:k,selectedCategory:S,onCategorySelection:e=>T({category:e,page:1}),globalCounts:M,globalTotalCount:O}))),q?ti.createElement(ya,null):ti.createElement(Gr,{dataList:x,currentPage:v,tags:$})),H&&!q&&B>1&&ti.createElement(wr,{totalPages:B,currentPage:v,onPageChange:e=>T({page:e})})))},jr=e=>{const t=new URL(document.location.href).searchParams.get("q")??"",s=JSON.parse(document.querySelector(".search-results-config").text),i=document.querySelector(".search-results__noresults .cmp-text > :first-child");i&&(i.innerHTML=((e,t,s)=>{const[i]=Dr.exec(e)??[];return i?e.replace(i,`<span class="interpolate-${s}">${n=t,n.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;")}</span>`):e;var n})(i.innerHTML,(e=>{const t=document.createElement("div");return t.innerText=e,t.innerHTML})(t),"search-query"));(0,si.H)(e).render(ti.createElement(oi.Provider,{value:s},ti.createElement(ui,{engineName:s.engineName,endpointBase:s.endpointBase,searchKey:s.searchKey,siteId:s.siteId,initialState:ni[s.sortOrder],searchQuery:{facets:{[ri.PAGE_TYPE]:{type:"value"},[ri.SITE_ID]:{type:"value"},[ri.CATEGORY]:{type:"value"}}}},ti.createElement(Yr,{initialSearchQuery:t,noResultsFragmentIdentifier:"search-query",rootNode:e}))))};var Xr=e=>{const{buttonlabel:t,clickHandler:s,returnArrayLength:i,displayLabel:n,ofLabel:a,itemsShowingLabel:r,documentsLabel:o,totalDocs:l,displayLoadmore:c,pdfCount:d,setDisplayLoadmore:h}=e;return(0,ti.useEffect)(()=>{i===l&&h(!1)},[i,l]),ti.createElement("div",{className:"literature__loadmore"},ti.createElement("div",{className:"literature__loadmore__displaylabel"},n," ","1 -"," ",c?i:l," ",a," ",l," ",r," ",d," ",o),c&&ti.createElement("div",{className:"literature__loadmore__button"},ti.createElement("button",{className:"ds-button btn-white btn-add btn-custom-icon cmp-button","data-dtm-id":"button",onClick:e=>s(e),"data-dtm-data":t},t)))};var Qr=e=>
3{let t=Number.parseInt(e.itemsPerLoad);const s=e.cardData||[],[i,n]=(0,ti.useState)(!0),{firstAccordionButtonRef:a}=e;t>s.length&&(t=s.length);const[r,o]=(0,ti.useState)(t),[l,c]=(0,ti.useState)(e.cardData?.slice(0,r)||[]),[d,h]=(0,ti.useState)(!1),{filtersApplied:u}=e,m=u.length;s.sort((e,t)=>e.title>t.title?1:-1),s.forEach(e=>{e.contentType.sort((e,t)=>e.type>t.type?1:-1),e.contentType.forEach(e=>{e.pdf.sort((e,t)=>e.name>t.name?1:-1)})});const p=s.map(e=>e.contentType.map(e=>e.pdf)).flat().flat().length;(0,ti.useEffect)(()=>{const e=s.slice(0,t);c(e),u?s.length>t?(n(!0),c(e)):(n(!1),c(s)):n(!0),o(e.length)},[s,u]);const g=l;return ti.createElement(ti.Fragment,null,g.length>0?g.map((e,t)=>ti.createElement("div",{className:"literatureLibrary__topicCard",key:`${e.title}-${t}`},0===t?ti.createElement("h2",{className:"literatureLibrary__topicCard-title"},e.title):ti.createElement("h3",{className:"literatureLibrary__topicCard-title"},e.title),e.contentType.map((s,i)=>{const n=`${s.pdf[0].name}-${i}`;return ti.createElement("div",{className:"literatureLibrary__topicCard__accordion",key:n},ti.createElement("button",{ref:0===t&&0===i?a:null,className:"literatureLibrary__topicCard__accordion--button btn_down",onClick:t=>{((e,t)=>{const s=document.getElementById(t),i=e.target;s.classList.contains("accordion-open")?(s.classList.remove("accordion-open"),i.classList.remove("btn_up"),i.classList.add("btn_down")):(s.classList.add("accordion-open"),i.classList.remove("btn_down"),i.classList.add("btn_up"))})(t,`${e.title}-${s.type}`)}},s.type," (",s.pdf.length,")"),ti.createElement("div",{className:"literatureLibrary__topicCard__accordion-content",id:`${e.title}-${s.type}`},s.pdf.map((e,t)=>{const s=`${e.path}-${t}`;return ti.createElement("div",{className:"literatureLibrary__topicCard__accordion-content__card",key:s},ti.createElement("a",{href:e.path,rel:"noopener noreferrer",target:"_blank"},e.name),ti.createElement("div",{className:"literatureLibrary__topicCard__accordion-content__card-description"},e.description?ti.createElement("p",null,e.libraryID?`${e.libraryID}-${e.description}`:e.description):ti.createElement("p",null,e.libraryID)))})))}))):ti.createElement("div",{id:"no-results-found-topic",className:"noresults-found-topic",dangerouslySetInnerHTML:{__html:e.noDocumentMessage}}),g.length>0&&ti.createElement(Xr,{buttonlabel:e.loadmoreButtonLabel,clickHandler:e=>{h(!0);const i=r+t;i>=s.length?(c(s),n(!1)):(c(s.slice(0,i)),o(i)),setTimeout(()=>{h(!1)},1e3),e&&e.target.blur()},isLoading:d,displayLabel:e.displayLabel,ofLabel:e.ofLabel,itemsShowingLabel:e.itemsShowingLabel,documentsLabel:e.documentsLabel,returnArrayLength:m>0?m:r,totalDocs:s.length,displayLoadmore:i,pdfCount:p,setDisplayLoadmore:n}))};var Zr=({literatureData:e,applySelectedCategory:t,applyMobileFiltering:s,setSelectedTopicsFilter:i,setSelectedContentTypeFilter:n,setDraftTopicArr:a,setDraftContentTypeArr:r,setTopicArr:o,setContentTypeArr:l,clearURLParams:c})=>{const{categories:d,filters:h,applyFilterLabel:u,categoryLabel:m,clearAllLabel:p,contentTypeLabel:g,filterInsightsLabel:f,topicsLabel:E,dontShowButtonsDesktop:b}=e,T=[m,E,g],[S,v]=(0,ti.useState)(!1),[L,y]=(0,ti.useState)(null),[_,A]=(0,ti.useState)(d?.[0]??null),[C,w]=(0,ti.useState)([]),[N,I]=(0,ti.useState)([]),[R,D]=(0,ti.useState)([]),[M,O]=(0,ti.useState)([]),x=(0,ti.useRef)(null),P=(0,ti.useRef)(null),k="is-open",H=()=>{const e=P?.current?.querySelectorAll(".accordion-open");e?.forEach(e=>{e.classList.remove("accordion-open"),e.closest(".filter__form-item--group")?.classList.remove("filter__form-item--expanded")});const t=P?.current?.querySelectorAll(".btn_up");t?.forEach(e=>{e.classList.remove("btn_up"),e.classList.add("btn_down")})};(0,ti.useEffect)(()=>{const e=e=>{e.target.closest(".filter__form-item--group")||H()};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]),(0,ti.useEffect)(()=>{const e=new URLSearchParams(globalThis.location.search),t=e.get("libraryDocumentType"),s=e.get("libraryCategory"),i=e.get("libraryLiteratureType"),n=t&&decodeURIComponent(t),a=s?decode
3URIComponent(s).split(","):null,r=i?decodeURIComponent(i).split(","):null,o=d?.find(e=>e.text===n);o&&A(o),a&&a.length>0&&(w(a),D(a)),r&&r.length>0&&(I(r),O(r))},[]),(0,ti.useEffect)(()=>{_&&(y(h[_.key]),t?.(_.key))},[_]),(0,ti.useEffect)(()=>{s?.(R,M)},[R,M]),(0,ti.useEffect)(()=>{0===R?.length&&c?.(["libraryCategory"])},[R]),(0,ti.useEffect)(()=>{0===M.length&&c?.(["libraryLiteratureType"])},[M]),(0,ti.useEffect)(()=>{S&&x.current&&setTimeout(()=>x.current?.recalculate(),100)},[S]),(0,ti.useEffect)(()=>{L&&S&&x.current&&setTimeout(()=>x.current?.recalculate(),50)},[L,S]);const B=(e=!1)=>{const t=document.querySelector(".mobile-filters-options-list"),s=document.querySelector(".literature-topic-card"),i=document.querySelector(".selected_mobile_filters_div");t?.classList.contains(k)||e?(t&&t.classList.remove(k),s&&(s.style.display="block"),i&&(i.style.display="block"),v(!1)):(t&&t.classList.add(k),s&&(s.style.display="none"),i&&(i.style.display="none"),v(!0))},F=()=>{D(C),O(N),B(!0)},q=e=>e===E?"topics":"contentTypes",$=e=>"topics"===e?C:N,z=e=>{b||a(e)},U=e=>{b||r(e)},W=(e,t,s)=>{const a="topics"===e;if("clear"===t)a?(w([]),D([]),o([]),i([]),z([])):(I([]),O([]),l([]),n([]),U([]));else if("toggle"===t&&s){const t=$(e),r=t.includes(s)?t.filter(e=>e!==s):[...t,s];a?(w(r),i(r),z(r)):(I(r),n(r),U(r))}},V=(e,t)=>{const s=q(e);W(s,"toggle",t)},G=(e,t)=>{const s=q(e);return $(s).includes(t)};return ti.createElement("div",{className:"literature__mobile__filters__component literatureLibrary__topicCard__accordion",ref:P},ti.createElement("button",{className:"literatureLibrary__form-toggle-button filter__form-toggle-button "+(S?"btn-close expanded":""),onClick:()=>B(),"aria-expanded":S},ti.createElement("span",{className:"filter__form-toggle-button-label","data-testid":"mobile-filter-counter"},ti.createElement("span",{className:"literature_filter__title_tablet product_filter__title_tablet"},f),C.length+N.length>0&&ti.createElement("span",{className:"filter__form-toggle-button-label-suffix"}," (",C.length+N.length,")"))),ti.createElement("div",{className:`mobile-filters-options-list filter__form ${S?k:""}`},ti.createElement("div",{className:"filter__form-items-list--root"},T?.map((e,t)=>{const s=`${e}-${t}`,i=(e=>e===E?L?.topics:L?.contentTypes)(e),n=(e=>e===E?C.length:e===g?N.length:0)(e);return ti.createElement("div",{key:s,className:"filter__form-item--group"},ti.createElement("button",{key:s,className:"mobile-filter-header filter__form-item-toggle-button filter__form-item-toggle-button--main-filter-group btn_down",onClick:t=>{((e,t)=>{const s=document.getElementById(t),i=e.target;s?.classList.contains("accordion-open")?(s.classList.remove("accordion-open"),s.closest(".filter__form-item--group")?.classList.remove("filter__form-item--expanded"),i.classList.remove("btn_up"),i.classList.add("btn_down")):(H(),s?.classList.add("accordion-open"),i.classList.remove("btn_down"),i.classList.add("btn_up"),s?.closest(".filter__form-item--group")?.classList.add("filter__form-item--expanded"))})(t,e?.replaceAll(/\s/g,""))}},e,n>0&&ti.createElement("span",{className:"filter__form-item-toggle-button-label-suffix"}," (",n,")")),ti.createElement("div",{className:"filter__form-items-list search-category-filter-list",id:e?.replaceAll(/\s/g,"")},ti.createElement(on,{direction:"y"},ti.createElement("ul",{className:"filter__form-items-list--list-items"},0===t?ti.createElement(ti.Fragment,null,d?.length>0&&d.map(e=>ti.createElement("li",{key:e.key,className:"filter__form-item filter__form-item--value"},ti.createElement("label",{className:"mobile-filter-option",htmlFor:`custom-radio-${e.key}`},ti.createElement("input",{className:"filter__input mobile-filter-header",type:"radio",id:`custom-radio-${e.key}`,"data-testid":"input-radio-mobile",value:e.text,onChange:t=>((e,t)=>{A(t),w([]),I([]),"key"in e&&e.key===Gi&&e.preventDefault()})(t,e),checked:_.key===e.key}),ti.createElement("span",{className:"text","data-testid":"radio-button-mobile"},e.text))))):L&&i?.map(t=>ti.createElement("li",{key:t.text,"data-testid":"filter-checkbox:Convertibles",className:"filter__form-item filter__form-item--value"},ti.createElement("input",{type:"checkbox",id:`custom-checkbox-${t.text.split(" ").join("-")}`,"data-testid":"category-filters-mobile",name:"filters",value:t.value,onChange:()=>V(e,t.text),onKeyDown:s=>{s.key===Wi&&V(e,t.text)},className:"filter__input mobile-filter-header",checked:G(e,t.text)}),ti.createElement("label",{className:"mobile-filter-option",htmlFor:`custom-checkbox-${t.text.split(" ").join("-")}`},ti.createElement("span",{className:"text"},t.text)))))),0!==t&&ti.createElement("div",{className:"filter__form--btn_div"},ti.createElement("button",{className:"btn-text text-link-teal",onClick:()=>(e=>{1===e?W("topics","clear"):2===e&&W("contentTypes","clear")})(t)},ti.createElement("span",{className:"clear-btn-label"},p)),ti.createElement("button",{className:"btn btn-teal result-btn",onClick:()=>F()},ti.createElement("span",null,u)))))}
3)),ti.createElement("div",{className:"filter__form-controls"},ti.createElement("button",{className:"filter__form-control-buttton btn-text text-link-teal",onClick:()=>(w([]),I([]),D([]),O([]),i([]),n([]),o([]),l([]),void B(!0))},p),ti.createElement("button",{className:"filter__form-control-buttton btn btn-teal",onClick:()=>F()},u))))};var Jr=e=>{const t=[...e.selectedTopicsFilterArray??[],...e.selectedContentTypeArray??[]],s=t.length,{clearAllFilters:i}=e,{clearFilter:n}=e,a=e.categorySelectedLabel;return ti.createElement("div",{className:"literature_selected__filters__div filter__selected-items-list"},ti.createElement("button",{name:a,className:"filtered-label ds-button--filter category__selected__btn  banner-search-box__tag-list-item"},a),s>0&&t?.map(e=>ti.createElement("button",{key:e,onClick:()=>n(e),className:"selected__filter ds-button--icon ds-button--icon-close ds-button--filter banner-search-box__tag-list-item "},e,ti.createElement("span",{className:"icomoon icon-close"}))),s>0&&ti.createElement("button",{className:"ds-button--filter-clear literatureLibrary__clearAll btn-text text-link-white",onClick:()=>i()},e.ClearAllButtonLabel))};var eo=e=>{const{topicArr:t,contentTypeArr:s,setTopicArr:i,setContentTypeArr:n,desktopClearAll:a,draftTopicArr:r,draftContentTypeArr:o,setDraftTopicArr:l,setDraftContentTypeArr:c,selectedTopicsFilter:d,selectedContentTypeFilter:h,setSelectedTopicsFilter:u,setSelectedContentTypeFilter:m,selectedCategory:p,handleTopic:g,handleContentType:f,clearAllFilters:E,clearFilter:b,updateSearchParams:T,clearURLParams:S,firstAccordionButtonRef:v}=e,{categories:L,filters:y,categoryLabel:_,topicsLabel:A,contentTypeLabel:C,clearAllLabel:w,applyFilterLabel:N,dontShowButtonsDesktop:I}=e.literatureData,R=[_,A,C],[D,M]=(0,ti.useState)(p?.text),[O,x]=(0,ti.useState)([]),[P,k]=(0,ti.useState)([]),[H,B]=(0,ti.useState)(!1),[F,q]=(0,ti.useState)(!1),$=(0,ti.useRef)(null),z=(0,ti.useRef)(null),U=In();O?.sort((e,t)=>e.text>t.text?1:-1);const W=(e,t)=>{e?.classList.remove("literature__filter__show"),e?.classList.add("literature__filter__hide"),t?.classList.remove("dropdown_btn_up"),t?.classList.add("dropdown_btn_down");const s=t?.closest(".filter__form-item--group");s?.classList.remove("filter__form-item--expanded"),t?.setAttribute("aria-expanded","false")},V=(e,t)=>{let s=e.target,i=e.target.nextElementSibling;"SPAN"===e.target.tagName&&(s=e.target.parentElement,i=e.target.parentElement.nextElementSibling);const n=document.querySelectorAll(".literature_filter_btn");n?.forEach(e=>{if(e===s)if(s.classList.contains("dropdown_btn_down")){i.classList.remove("literature__filter__hide"),i.classList.add("literature__filter__show"),s.classList.add("dropdown_btn_up"),s.classList.remove("dropdown_btn_down");const e=s.closest(".filter__form-item--group");e?.classList.add("filter__form-item--expanded"),s.setAttribute("aria-expanded","true")}else W(i,s);else{const t=e.nextElementSibling;W(t,e)}}),B(2===t);document.querySelectorAll(".literature__filter__show").length?q(!0):q(!1)},G=(t,s)=>{M(s);const a=s.split(" ").join("-").toLowerCase();x(y[a].topics),k(y[a].contentTypes),i([]),n([]),I||(l([]),c([])),u([]),m([]),S(["libraryCategory","libraryLiteratureType"]),e.applySelectedCategory(a),t.key===Gi&&t.preventDefault()},K=t=>{M(t);const s=t?.split(" ").join("-"),i=s?.toLowerCase(),n=[];let a;L?.forEach(e=>{n.push(e.key)}),n.includes(i)?a=i:(a=p?.key,M(p?.text)),x(y?.[a]?.topics),k(y?.[a]?.contentTypes),e.applySelectedCategory(a)},Y=(e,i)=>{let n;if(e===A){n=(I?t:r).includes(i)}else{n=(I?s:o).includes(i)}return n},j=(0,ti.useCallback)(()=>{requestAnimationFrame(()=>{v?.current&&v.current.focus()})},[v]),X=(e,t)=>{const s=t.target.offsetParent,a=t.target.offsetParent?.previousElementSibling;e===A?(i(r),u(r),r.length&&T("libraryCategory",r.join(","))):(n(o),m(o),o.length&&T("libraryLiteratureType",o.join(","))),W(s,a),j()},Q=(e,t,s=!1)=>{"topics"===t&&g(e,s),"contentTypes"===t&&f(e,s)};(0,ti.useEffect)(()=>{if(U===sn){const e=globalThis.location.search,t=new URLSearchParams(e).get("libraryDocumentType");if(t){const e=decodeURI(t);K(e)}else K(p?.text)}},[U===sn]),(0,ti.useEffect)(()=>{const e=e=>{const t=e.target.className;($.current&&!$.current.contains(e.target)||"literature__filters__list filterDesktop"===t||"literature__filters__values__div"===t)&&F&&V(e,0)};return document.addEventListener("click",e),()=>document.removeEventListener("click",e)},[F]),(0,ti.useEffect)(()=>{F&&z.current&&setTimeout(()=>z.current?.recalculate(),100)},[F]),(0,ti.useEffect)(()=>{O&&z.current&&setTimeout(()=>z.current?.recalculate(),50)},[O]),(0,ti.useEffect)(()=>{P&&z.current&&setTimeout(()=>z.current?.recalculate(),50)},[P]);const Z=({key:e})=>{const t=document.querySelector(".literature__filter__show"),s=document.querySelector(".dropdown_btn_up");e===Vi&&F&&W(t,s)};let J;return(0,ti.useEffect)(()=>{const e=$.current;return e&&e.addEventListener("keydown",Z),()=>{e?.removeEventListener("keydown",Z)}},[F]),ti.createElement(ti.Fragment,null,U===Zi||U===Ji?ti.createElement("div",{className:"mobile__filters__accordian filterMobile"},ti.createElement(Zr,{literatureData:e.literatureData,applySelectedCategory:e.applySelectedCategory,applyMobileFiltering:e.applyMobileFiltering,
3setSelectedTopicsFilter:u,setSelectedContentTypeFilter:m,setDraftTopicArr:l,setDraftContentTypeArr:c,setTopicArr:i,setContentTypeArr:n,clearURLParams:S})):null,ti.createElement("div",{className:"literature__filters__list filterDesktop filter__form-items-list--root",ref:$},R?.map((e,t)=>{const s=`${e}-${t}`;return H?(J=ti.createElement("div",{className:"literature__filter__list__options filter__form-item--group"},ti.createElement(on,{direction:"y"},P?.map(e=>ti.createElement("div",{key:e.value,className:"literature__filter__dropdown__list filter__form-item--value"},ti.createElement("input",{type:"checkbox","data-testid":"checkbox-content-types",id:`custom-desktop-checkbox-${e.text.split(" ").join("-")}_${t}`,name:"filters",checked:Y(C,e.text),value:e.text,className:"filter__input",onKeyDown:e=>{e.key===Wi&&Q(e,"contentTypes",!0)},onChange:e=>Q(e,"contentTypes")}),ti.createElement("label",{className:"checkbox__select__label",htmlFor:`custom-desktop-checkbox-${e.text.split(" ").join("-")}_${t}`},ti.createElement("span",null,e.text)))))),I||(J=ti.createElement(ti.Fragment,null,J,ti.createElement("div",{className:"literatureLibrary_btn_container_desktop filter__form--btn_div"},ti.createElement("button",{id:`${R[1]}-clear-all`,className:"ds-button ds-button--secondary-1 btn-text text-link-teal","data-dtm-id":"button","data-dtm-data":"Clear all",onClick:()=>a(C)},w),ti.createElement("button",{id:`${R[1]?.split(" ").join("-")}-apply`,className:"ds-button ds-button--primary apply__btn btn btn-teal","data-dtm-id":"button","data-dtm-data":"See results",onClick:e=>X(C,e)},N))))):(J=ti.createElement("div",{className:"literature__filter__list__options filter__form-item--group"},ti.createElement(on,{direction:"y"},O?.map(e=>ti.createElement("div",{key:e.value,className:"literature__filter__dropdown__list filter__form-item--value"},ti.createElement("input",{type:"checkbox","data-testid":"checkbox-topics",id:`custom-desktop-checkbox-${e.text.split(" ").join("-")}_${t}`,name:"filters",checked:Y(A,e?.text),value:e.text,className:"filter__input",onKeyDown:e=>{e.key===Wi&&Q(e,"topics",!0)},onChange:e=>Q(e,"topics")}),ti.createElement("label",{className:"checkbox__select__label",htmlFor:`custom-desktop-checkbox-${e.text.split(" ").join("-")}_${t}`},ti.createElement("span",null,e.text)))))),I||(J=ti.createElement(ti.Fragment,null,J,ti.createElement("div",{className:"literatureLibrary_btn_container_desktop filter__form--btn_div"},ti.createElement("button",{id:`${A}-clear-all_${t}`,className:"ds-button ds-button--secondary-1 btn-text text-link-teal","data-dtm-id":"button","data-dtm-data":"Clear all",onClick:()=>a(A)},w),ti.createElement("button",{id:`${A?.split(" ").join("-")}-apply_${t}`,className:"ds-button ds-button--primary apply__btn btn btn-teal","data-dtm-id":"button","data-dtm-data":"See results",onClick:e=>X(A,e)},N))))),ti.createElement("div",{className:"literature__filters__values__div filter__form-item--group",key:s},ti.createElement("button",{className:"literature_filter_btn dropdown_btn_down filter__form-item-toggle-button ",key:s,"aria-expanded":"false",onClick:e=>V(e,t)},ti.createElement("span",null,e)),ti.createElement("div",{className:0===t?`radio__category__dropdown filter__container__${e} literature__filter__hide search-category-filter-list`:`literature__filter__list__items filter__container__${e} literature__filter__hide search-category-filter-list`},0===t?ti.createElement("div",{className:"literature__filter__dropdown__list filter__form-items-list--list-items"},ti.createElement(on,{direction:"y"},L?.map(e=>ti.createElement("div",{className:"filter__form-item--value",key:e.key},ti.createElement("label",{className:"category__select__radio__label filter__form-item ",htmlFor:`custom-desktop-checkbox-${e.text.split(" ").join("-")}`},ti.createElement("input",{id:`custom-desktop-checkbox-${e.text.split(" ").join("-")}`,"data-testid":"input-radio-desktop",className:"filter__input",type:"radio",value:e.text,onChange:t=>G(t,e.text),checked:D===e.text,tabIndex:-1}),ti.createElement("button",{"data-testid":"radio-button-desktop",onKeyDown:t=>{t.key!==Wi&&t.key!==Gi||G(t,e.text)}},e.text)))))):J))})),ti.createElement("div",{className:"selected__filters__div filterDesktop"},ti.createElement(Jr,{categorySelectedLabel:D,selectedTopicsFilterArray:d,selectedContentTypeArray:h,clearAllFilters:E,clearFilter:b,ApplyFilterButtonLabel:N,ClearAllButtonLabel:w,clearURLParams:S})))};var to=()=>{const e=document.querySelector(".literaturelibrary-config")?.innerHTML??"",t=e&&JSON.parse(e),{docs:s,dontShowButtonsDesktop:i,topicsLabel:n,categories:a}
3=t,r=a?.[0],[o,l]=(0,ti.useState)(),[c,d]=(0,ti.useState)(),[h,u]=(0,ti.useState)([]),[m,p]=(0,ti.useState)([]),[g,f]=(0,ti.useState)([]),[E,b]=(0,ti.useState)([]),[T,S]=(0,ti.useState)(!1),[v,L]=(0,ti.useState)([]),[y,_]=(0,ti.useState)([]),[A,C]=(0,ti.useState)(!1),[w,N]=(0,ti.useState)(!1),[I,R]=(0,ti.useState)([]),[D,M]=(0,ti.useState)([]),O=(0,ti.useRef)(null),x=e=>{const t=[];return e.forEach(e=>{e.contentType.filter(e=>g.includes(e.type)).forEach(s=>{t.push({title:e.title,contentType:[{type:s.type,pdf:s.pdf}]})})}),t},P=e=>{let t=[...e.contentType];return D.length>0&&(t=e.contentType.filter(e=>D.includes(e.type))),{title:e.title,contentType:t}};(0,ti.useEffect)(()=>{(()=>{const e=[],t=[];if(o?.length){if(h?.length&&g?.length){o.forEach(e=>h.some(s=>{s===e.title&&t.push(e)}));const s=x(t);[...new Set(s.map(e=>e.title))].forEach(t=>{e.push({title:t,contentType:s.filter(e=>e.title===t).map(e=>e.contentType[0])})})}else if(h.length)o.forEach(t=>h.some(s=>{s===t.title&&e.push(t)}));else if(g.length){const t=x(o);[...new Set(t.map(e=>
3e.title))].forEach(s=>{e.push({title:s,contentType:t.filter(e=>e.title===s).map(e=>e.contentType[0])})})}d(e)}})()},[h,g]);const k=e=>{const t=new URL(globalThis.location.href);e.forEach(e=>{((e,t)=>{e.search?.includes(t)&&(e.searchParams.delete(t),window.history.replaceState(null,null,e))})(t,e)})};(0,ti.useEffect)(()=>{if(An()){const e=new URLSearchParams(globalThis.location.search),t=e.get("libraryCategory"),s=e.get("libraryLiteratureType"),n=t?decodeURIComponent(t).split(","):null,a=s?decodeURIComponent(s).split(","):null;n&&n.length>0&&(u(n),L(n)),a&&a.length>0&&(f(a),_(a)),i||(p(n??[]),b(a??[]))}},[An()]),(0,ti.useEffect)(()=>{h.length>0||g.length>0||v.length>0||y.length>0?S(!0):S(!1)},[h,g,v,y]),(0,ti.useEffect)(()=>{0===v.length&&A&&k(["libraryCategory"])},[v]),(0,ti.useEffect)(()=>{0===y.length&&w&&k(["libraryLiteratureType"])},[y]);const H=(e,t)=>{const s=encodeURIComponent(t),i=new URL(globalThis.location.href);i.searchParams.set(e,s),globalThis.history.replaceState(null,"",i.toString())};(0,ti.useEffect)(()=>{if(!An()&&o?.length){let e=[...o];I?.length>0&&(e=o.filter(e=>I.includes(e.title))),e=e.map(P).filter(e=>e.contentType.length>0),S(I.length>0||D.length>0),d(e),I.length&&H("libraryCategory",I.join(",")),D.length&&H("libraryLiteratureType",D.join(","))}},[o,I,D]);return ti.createElement(ti.Fragment,null,ti.createElement("div",{className:"literature__filters__div fade-in-up"},ti.createElement(eo,{literatureData:t,applySelectedCategory:e=>{(e=>{const t=[],s=[];e?.length&&(e?.forEach(e=>{const{name:s,description:i,libraryID:n,path:a,tags:r,title:o,type:l}=e;for(const e of o)for(const o of l){const l={title:e,contentType:{type:o,pdf:{name:s,description:i,libraryID:n,path:a,tags:r}}};t.push(l)}}),t?.forEach(e=>{const{title:t,contentType:i}=e,{type:n,pdf:a}=i;if(s?.length){const e=s.find(e=>e.title===t);if(e?.contentType){const t=e.contentType.find(e=>e.type===n);if(t)t.pdf.push(a);else{const t={type:n,pdf:[a]};e.contentType.push(t)}}else{const e={title:t,contentType:[{type:n,pdf:[a]}]};s.push(e)}}else{const e={title:t,contentType:[{type:n,pdf:[a]}]};s.push(e)}})),l(s)})(s?.[e]);const t=a?.find(t=>t?.key===e);H("libraryDocumentType",t?.text)},handleTopic:(e,t)=>{let s,n=i?[...h]:[...m];s=t?!e.target.checked:e.target.checked,s?n=[e.target.value,...n]:(n.splice(n.indexOf(e.target.value),1),C(!0)),i?(u(n),L(n),H("libraryCategory",n.join(","))):p(n)},handleContentType:(e,t)=>{let s,n=i?[...g]:[...E];s=t?!e.target.checked:e.target.checked,s?n=[e.target.value,...n]:(n.splice(n.indexOf(e.target.value),1),N(!0)),i?(f(n),H("libraryLiteratureType",n.join(",")),_(n)):b(n)},topicArr:h,contentTypeArr:g,clearAllFilters:()=>{L([]),_([]),C(!0),N(!0),u([]),f([]),i||(p([]),b([]))},draftTopicArr:m,draftContentTypeArr:E,desktopClearAll:e=>{e===n?(L([]),p([]),u([]),C(!0)):(_([]),b([]),f([]),N(!0))},selectedTopicsFilter:v,selectedContentTypeFilter:y,setSelectedTopicsFilter:L,setSelectedContentTypeFilter:_,selectedCategory:r,clearFilter:e=>{const t=h,s=g;if(t.includes(e)){const s=t.indexOf(e);t.splice(s,1),u([...t]),i||p([...t]),L([...t]),H("libraryCategory",t.join(",")),C(!0)}if(s.includes(e)){const t=s.indexOf(e);s.splice(t,1),f([...s]),i||b([...s]),_([...s]),H("libraryLiteratureType",s.join(",")),N(!0)}},setDraftTopicArr:p,setDraftContentTypeArr:b,setTopicFilterChange:C,applyMobileFiltering:(e,t)=>{R(e),M(t)},updateSearchParams:H,clearURLParams:k,setTopicArr:u,setContentTypeArr:f,firstAccordionButtonRef:O})),ti.createElement("div",{className:"literature-topic-card fade-in-up"},ti.createElement(Qr,{cardData:T?c:o,loadmoreButtonLabel:t.loadMoreButtonLabel,itemsPerLoad:t.numberOfItemsPerLoad,displayLabel:t.displayLabel,ofLabel:t.ofLabel,itemsShowingLabel:t.itemsShowingLabel,documentsLabel:t.documentsLabel,filtersApplied:T,noDocumentMessage:t.noDocumentMessage,firstAccordionButtonRef:O})))};function so(){const e=[];if(window.frameElement&&(0===window.frameElement.getAttribute("src")?.indexOf("/content/")||0===window.frameElement.getAttribute("src")?.indexOf("/conf/"))){const t=document.querySelector("body"),s=new MutationObserver(t=>{((e,t)=>
3{e.forEach(e=>{"childList"===e.type&&e.addedNodes.length>0&&e.addedNodes.forEach(e=>{t.forEach(t=>{e?.classList?.contains(t.className)&&t.callback(e);const s=e?.querySelector?.(`.${t.className}`);s&&t.callback(s)})})})})(t,e)});t&&s.observe(t,{childList:!0,subtree:!0})}return{add:(t,s)=>{e.push({className:t,callback:s})}}}window.addEventListener("load",()=>{const e=so(),t=document.querySelector(".search-results-app"),s=document.querySelector(".literatureLibrary__div"),i=document.querySelector(".tagged-in-app"),n=document.querySelector(".category-search-app"),a=document.querySelector(".funds-file-listing-app"),r=document.querySelectorAll(".related-content-dynamic");var o;t&&jr(t),n&&(e=>{const t=JSON.parse(document.querySelector(".category-search-config").text),s=t.displayModeMappings.mappings[t.pageType]||t.displayModeMappings.defaultMode;(0,si.H)(e).render(ti.createElement(oi.Provider,{value:t},ti.createElement(ui,{engineName:t.engineName,endpointBase:t.endpointBase,searchKey:t.searchKey,siteId:t.siteId,resultsPerBatch:t.numberOfItems,constantPageQuery:[{[ri.PAGE_TYPE]:[t.pageType]}],initialState:ni[t.sortOrder]},ti.createElement(_a,{displayMode:s,maxNumberOfItems:t.numberOfItems}))))})(n),a&&(e=>{const t=JSON.parse(document.querySelector(".funds-file-listing-config").text);(0,si.H)(e).render(ti.createElement(oi.Provider,{value:t},ti.createElement(ui,{engineName:t.engineName,endpointBase:t.endpointBase,searchKey:t.searchKey,siteId:t.siteId,resultsPerBatch:ii[Gs.DOCUMENT].resultsPerBatch,constantPageQuery:[{[ri.PAGE_TYPE]:[t.pageType]}],initialState:ni[Xs.ALPHABETICAL]},ti.createElement(Rr,null))))})(a),i&&(e=>{const t=new URL(document.location.href).searchParams.get("t")??"",s=JSON.parse(document.querySelector(".tagged-in-config").text),i=s.displayModeMappings.mappings[s.pageType]||Gs.ARTICLE,n=`${s.tagsPrefix}${t}`;(0,si.H)(e).render(ti.createElement(oi.Provider,{value:s},ti.createElement(ui,{engineName:s.engineName,endpointBase:s.endpointBase,searchKey:s.searchKey,siteId:s.siteId,resultsPerBatch:ii[i].resultsPerBatch,constantPageQuery:[{[ri.ALL_TAGS]:[n]},{[ri.PAGE_TYPE]:[s.pageType]}],initialState:ni[s.sortOrder]},ti.createElement(Ia,{tag:n,displayMode:i}))))})(i),r.length&&r.forEach(Cr),e.add("relatedcontent",e=>{const t=e.querySelector(".related-content-dynamic");t&&Cr(t)}),s&&(o=s,(0,si.H)(o).render(ti.createElement(to,null)))});const io=".cmp-breadcrumb__list",no=".cmp-breadcrumb__item",ao=".cmp-breadcrumb__item-link",ro=".cmp-breadcrumb__text",oo="cmp-breadcrumb__item--truncated",lo="cmp-breadcrumb__item--dynamically-constrained",co="cmp-breadcrumb__item--hidden",ho="--breadcrumb-last-item-dynamic-width",uo="--breadcrumb-second-to-last-item-dynamic-width";class mo{container;items=[];resizeObserver=null;debounceTimer;DEBOUNCE_DELAY=250;constructor(e){this.container=e,this.init()}getConstrainingContainer(){const e=this.container.closest(".cmp-breadcrumb__content");return e instanceof HTMLElement?e:this.container}init(){this.collectItems(),this.setupResizeObserver(),this.calculateTruncation()}collectItems(){const e=this.container.querySelectorAll(no);this.items=Array.from(e).map((t,s)=>{const i=t.querySelector(ro),n=t.querySelector(ao),a=t.dataset.originalText??i?.textContent??"";return{element:(HTMLElement,t),textElement:i instanceof HTMLElement?i:t,linkElement:n instanceof HTMLElement?n:t,originalText:a,index:s,isFirst:0===s,isLast:s===e.length-1}})}calculateTruncation(){this.resetAllItems(),this.isOverflowing()&&this.applySimpleTruncationStrategy()}resetAllItems(){this.container.style.removeProperty(ho),this.container.style.removeProperty(uo),this.items.forEach(e=>{e.element.classList.remove(oo,lo,co);const t={...e};t.textElement.textContent=t.originalText})}isOverflowing(){return this.container.scrollWidth>this.getConstrainingContainer().clientWidth}applySimpleTruncationStrategy(){for(let e=1;e<this.items.length-2;e++){if(this.items[e].element.classList.add(oo),!this.isOverflowing())return}if(this.isOverflowing()&&this.truncateLastItemOnly(),this.isOverflowing()&&this.items.length>=3){this.items.at(-1).element.classList.contains(co)&&this.truncateSecondToLastItem()}}setupResizeObserver(){if(!globalThis.ResizeObserver)return void globalThis.addEventListener("resize",this.debouncedCalculation.bind(this));this.resizeObserver=new ResizeObserver(this.debouncedCalculation.bind(this));const e=this.getConstrainingContainer();this.resizeObserver.observe(e)}truncateLastItemOnly(){const e=this.items.at(-1),t=this.calculateRemainingSpace(),s=globalThis.getComputedStyle(e.textElement);t<1.5*Number.parseFloat(s.fontSize)?e.element.classList.add(co):(e.element.classList.add(lo),this.container.style.setProperty(ho,`${t}px`))}truncateSecondToLastItem(){if(this.items.length<3)return;const e=this.items.at(-2);if(e.isFirst)return;e.element.classList.add(lo);const t=this.calculateRemainingSpaceForSecondToLast();this.container.style.setProperty(uo,`${Math.max(0,t)}px`)}calculateRemainingSpace(){const e=this.getConstrainingContainer().clientWidth,t=this.items.at(-1),s=this.container.style.getPropertyValue(ho);this.container.style.removeProperty(ho);const i=this.container.scrollWidth-e;s&&this.container.style.setProperty(ho,s);const n=t.element.offsetWidth-i;return Math.max(0,n)}calculateRemainingSpaceForSecondToLast(){const e=this.getConstrainingContainer().clientWidth,t=this.items.at(-2),s=this.container.style.getPropertyValue(uo);this.container.style.removeProperty(uo);const i=this.container.scrollWidth-e;s&&this.container.style.setProperty(uo,s);const n=t.element.offsetWidth-i;return Math.max(0,n)}debouncedCalculation(){clearTimeout(this.debounceTimer),this.debounceTimer=globalThis.setTimeout(()=>{this.calculateTruncation()},this.DEBOUNCE_DELAY)}destroy(){this.resizeObserver&&this.resizeObserver.disconnect(),clearTimeout(this.debounceTimer),globalThis.removeEventListener("resize",this.debouncedCalculation.bind(this)),this.resetAllItems()}}function po(){const e=document.querySelectorAll(io),t=[];
3return e.forEach(e=>{if(e instanceof HTMLElement){const s=new mo(e);t.push(s)}}),t}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",po):po();const go=".herobanner",fo=".herobanner-video",Eo=".herobanner-video video",bo=".herobanner__video-controls-button--toggle",To=".herobanner__video-controls-icon--play",So=".herobanner__video-controls-icon--pause",vo=".herobanner__video-controls-button-label-text",Lo=".herobanner__video-controls",yo=".cmp-image__image",_o=".s7dm-smartcropvideo-media",Ao="herobanner__video-controls-button--active",Co="hero-banner--text-background",wo="hero-banner--no-parallax",No="hero-banner--video-banner",Io="data-pause-label",Ro="data-play-label",Do="aria-label",Mo="Play",Oo="Pause",xo=100,Po=.7,ko=.3,Ho=600;class Bo{el;video;toggleButton;playIcon;pauseIcon;buttonLabelText;pauseLabel=Oo;playLabel=Mo;videoControls;smartcropContainer;constructor(e){if(!e)throw new Error("Element is required for VideoControls");this.el=e,this.video=null,this.toggleButton=null,this.playIcon=null,this.pauseIcon=null,this.buttonLabelText=null,this.videoControls=null,this.smartcropContainer=null}init(){try{this.findElements(),this.setInitialState(),this.addEventListeners()}catch(e){0}}findElements(){if(this.video=this.el.querySelector(Eo),this.toggleButton=this.el.querySelector(bo),this.playIcon=this.el.querySelector(To),this.pauseIcon=this.el.querySelector(So),this.buttonLabelText=this.el.querySelector(vo),this.buttonLabelText&&(this.pauseLabel=this.buttonLabelText.getAttribute(Io)??Oo,this.playLabel=this.buttonLabelText.getAttribute(Ro)??Mo),this.videoControls=this.el.querySelector(Lo),this.smartcropContainer=this.el.querySelector(_o),!this.video)throw new Error("VideoControls: Video element not found");if(!this.toggleButton)throw new Error("VideoControls: Toggle button not found")}setInitialState(){this.video&&(this.updateControlsState(),this.applyPlaysinlineAttribute(),this.applyAccessibilityVideoAttributes())}addEventListeners(){this.toggleButton&&this.toggleButton.addEventListener("click",this.handleToggleClick.bind(this)),this.el.addEventListener("play",this.handleVideoPlayDelegated.bind(this),!0),this.el.addEventListener("pause",this.handleVideoPauseDelegated.bind(this),!0),this.el.addEventListener("ended",this.handleVideoEndedDelegated.bind(this),!0)}handleToggleClick(e){e.preventDefault(),this.toggleVideoState()}handleVideoPlayDelegated(e){e.target instanceof HTMLVideoElement&&this.isTargetVideo(e.target)&&(this.updateVideoReference(e.target),this.handleVideoPlay())}handleVideoPauseDelegated(e){e.target instanceof HTMLVideoElement&&this.isTargetVideo(e.target)&&(this.updateVideoReference(e.target),this.handleVideoPause())}handleVideoEndedDelegated(e){e.target instanceof HTMLVideoElement&&this.isTargetVideo(e.target)&&(this.updateVideoReference(e.target),this.handleVideoEnded())}isTargetVideo(e){return this.el.contains(e)}updateVideoReference(e){this.video!==e&&(this.video=e)}handleVideoPlay(){this.updateControlsState()}handleVideoPause(){this.updateControlsState()}handleVideoEnded(){this.updateControlsState()}playVideo(){this.video&&this.video.play().catch(e=>{0})}pauseVideo(){this.video&&this.video.pause()}toggleVideoState(){if(!this.video)return;this.isVideoPlaying()?(this.pauseVideo(),this.updateAriaLabelImmediate({willBePlaying:!1})):(this.playVideo(),this.updateAriaLabelImmediate({willBePlaying:!0}))}updateControlsState(){if(!this.video||!this.toggleButton)return;const e=this.isVideoPlaying();this.updateButtonState(e),this.updateButtonLabel(e),this.updateAriaLabelIfNeeded(e)}updateAriaLabelImmediate({willBePlaying:e}){if(!this.toggleButton)return;const t=e?this.pauseLabel:this.playLabel;this.toggleButton.setAttribute(Do,t??"")}updateAriaLabelIfNeeded(e){if(!this.toggleButton)return;const t=e?this.pauseLabel:this.playLabel;this.toggleButton.getAttribute(Do)!==t&&this.toggleButton.setAttribute(Do,t??"")}isVideoPlaying(){return!!this.video&&(!this.video.paused&&!this.video.ended)}updateButtonState(e){this.toggleButton&&(this.toggleButton.dataset.state=e?"pause":"play",this.playIcon&&this.pauseIcon&&(e?(this.playIcon.classList.remove(Ao),this.pauseIcon.classList.add(Ao)):(this.playIcon.classList.add(Ao),this.pauseIcon.classList.remove(Ao))))}updateButtonLabel(e){this.buttonLabelText&&(this.buttonLabelText.textContent=e?this.pauseL
3abel:this.playLabel)}applyAccessibilityVideoAttributes(){if(!this.video)return;const e=this.smartcropContainer?.getAttribute("id");this.applyPlaysinlineAttribute(),this.applyVideoIdAndAriaControls(e)}applyPlaysinlineAttribute(){this.video&&!this.video.hasAttribute("playsinline")&&this.video.setAttribute("playsinline","")}applyVideoIdAndAriaControls(e){if(!this.video||!e||this.video.id)return;const t=`${e}-video`;this.video.id=t,this.setAriaControlsOnButton(t)}setAriaControlsOnButton(e){if(!this.video)return;this.video.closest(go)&&this.toggleButton&&this.toggleButton.setAttribute("aria-controls",e)}}class Fo{el;image;isActive;elementTop;elementHeight;imageHeight;maxTransform;boundScrollHandler;boundResizeHandler;rafId;resizeTimeoutId;currentTransform;targetTransform;animationRafId;isResponsiveDisabled;imageResizeObserver;constructor(e){if(!e)throw new Error("Element is required for ParallaxEffect");this.el=e,this.image=null,this.isActive=!1,this.elementTop=0,this.elementHeight=0,this.imageHeight=0,this.maxTransform=0,this.rafId=null,this.resizeTimeoutId=null,this.currentTransform=0,this.targetTransform=0,this.animationRafId=null,this.isResponsiveDisabled=!1,this.imageResizeObserver=null,this.boundScrollHandler=this.handleScroll.bind(this),this.boundResizeHandler=this.handleResize.bind(this)}init(){try{if(!this.shouldInitializeParallax())return;this.findElements(),this.checkResponsiveState(),this.addEventListeners(),this.isResponsiveDisabled?this.resetImageStyles():(this.setupParallax(),this.isActive=!0,this.startAnimationLoop(),this.startImageSizeTracking())}catch(e){0}}shouldInitializeParallax(){const e=!!this.el.querySelector(`.${Co}`),t=this.el.classList.contains(wo),s=this.el.classList.contains(No);return e&&!t&&!s}findElements(){if(this.image=this.el.querySelector(yo),!this.image)throw new Error("ParallaxEffect: Image element not found")}checkResponsiveState(){this.isResponsiveDisabled=globalThis.innerWidth<Ho}resetImageStyles(){this.image&&(this.image.style.transform="",this.image.style.transition="",this.image.style.willChange="")}disableParallax(){this.isActive&&(globalThis.removeEventListener("scroll",this.boundScrollHandler),this.animationRafId&&(cancelAnimationFrame(this.animationRafId),this.animationRafId=null),this.stopImageSizeTracking(),this.resetImageStyles(),this.isActive=!1)}enableParallax(){this.isActive||this.isResponsiveDisabled||(this.setupParallax(),this.isActive=!0,globalThis.addEventListener("scroll",this.boundScrollHandler,{passive:!0}),this.startAnimationLoop(),this.startImageSizeTracking())}setupParallax(){this.image&&(this.calculateDimensions(),this.calculateMaxTransform(),this.setupInitialTransition(),this.updateTargetTransform())}setupInitialTransition(){this.image&&(this.image.style.transition="none",this.image.style.willChange="transform")}calculateDimensions(){if(!this.image)return;const e=this.el.getBoundingClientRect();this.elementTop=e.top+globalThis.scrollY,this.elementHeight=e.height,this.imageHeight=this.image.offsetHeight}calculateMaxTransform(){this.image&&(this.maxTransform=Math.max(0,this.imageHeight-this.elementHeight))}addEventListeners(){globalThis.addEventListener("scroll",this.boundScrollHandler,{passive:!0}),globalThis.addEventListener("resize",this.boundResizeHandler)}handleScroll(){this.isActive&&this.image&&!this.isResponsiveDisabled&&(this.rafId||(this.rafId=requestAnimationFrame(()=>{this.updateTargetTransform(),this.rafId=null})))}updateTargetTransform(){if(!this.image)return;const{scrollY:e}=globalThis,t=globalThis.innerHeight,s=.1*t,i=this.elementTop+this.elementHeight+.2*t+s,n=this.elementTop-s;if(!(e<i&&e+t>n))return;const a=this.elementTop-t-s,r=this.elementTop+this.elementHeight+s+.2*t-a,o=Math.max(0,Math.min(1,(e-a)/r)),l=this.applyEasingCurve(o);this.targetTransform=(1-l)*this.maxTransform}applyEasingCurve(e){return 1-(1-e)**1.75}startAnimationLoop(){if(!this.isActive||this.isResponsiveDisabled)return;const e=()=>{this.isActive&&!this.isResponsiveDisabled&&(this.smoothUpdateTransform(),this.animationRafId=requestAnimationFrame(e))};this.animationRafId=requestAnimationFrame(e)}smoothUpdateTransform(){if(!this.image)return;const e=this.targetTransform-this.currentTransform;if(Math.abs(e)>ko){const t=this.getAdaptiveEasing(e);this.currentTransform+=e*t;const s=Math.floor(this.currentTransform),i=Number.isFinite(s)?s:0;this.image.style.setProperty("transform",`translateY(${i}px)`)}}getAdaptiveEasing(e){const t=Math.abs(e)/this.maxTransform;let s=1;return t>.1?s=1.1:t<.04&&(s=.6),Po*s}handleResize(){this.resizeTimeoutId&&clearTimeout(this.resizeTimeoutId),this.resizeTimeoutId=setTimeout(()=>{const e=this.isResponsiveDisabled;this.checkResponsiveState(),e!==this.isResponsiveDisabled?this.isResponsiveDisabled?this.disableParallax():this.enableParallax():this.isActive&&!this.isResponsiveDisabled&&(this.calculateDimensions(),this.calculateMaxTransform(),this.updateTargetTransform(),this.smoothUpdateTransform()),this.resizeTimeoutId=null},xo)}startImageSizeTracking(){this.image&&!this.imageResizeObserver&&(this.imageResizeObserver=new ResizeObserver(()=>{this.handleImageSizeChange()}),this.imageResizeObserver.observe(this.image))}stopImageSizeTracking(){this.imageResizeObserver&&(this.imageResizeObserver.disconnect(),this.imageResizeObserver=null)}handleImageSizeChange(){this.image&&this.isActive&&!this.isResponsiveDisabled&&(this.calculateDimensions(),this.calculateMaxTransform(),this.updateTargetTransform())}}class qo{el;videoControls;parallaxEffect;videoObserver;initializationRetryCount;maxRetries=10;retryDelay=500;constructor(e){if(!e)throw new Error("Element is required for HeroBanner");this.el=e,this.videoControls=null,this.parallaxEffect=null,this.videoObserver=null,this.initializationRetryCount=0}init(){try{this.initializeVideoControls(),this.initializeParallax()}catch(e){void 0!==globalThis.window&&"localhost"===globalThis.location.hostname&&console.warn("HeroBanner initialization failed:",e)}}initializeVideoControls(){const e=this.el.querySelector(Eo);if(e instanceof HTMLVideoElement&&this.isValidVideoSource(e))this.createVideoControls();else{(this.el.classList.contains(No)||this.el.querySelector(fo))&&(this.setupVideoObserver(),this.retryVideoInitialization())}}isValidVideoSource(e){if(""!==e.src?.trim())return!0;const t=e.querySelectorAll("source");return Array.from(t).some(e=>e.src&&""!==e.src.trim())}initializeParallax(){this.parallaxEffect=new Fo(this.el),this.parallaxEffect.init()}createVideoControls(){this.videoControls||(this.videoControls=new Bo(this.el),this.videoControls.init(),this.cleanupVideoObserver())}setupVideoObserver(){!this.videoObserver&&"MutationObserver"in globalThis&&(this.videoObserver=new MutationObserver(e=>{this.handleMutations(e)}),this.observeVideoContainer())}
3handleMutations(e){e.forEach(e=>{"childList"===e.type&&this.processAddedNodes(e.addedNodes)})}processAddedNodes(e){e.forEach(e=>{e.nodeType===Node.ELEMENT_NODE&&e instanceof Element&&this.checkForVideoElement(e)})}checkForVideoElement(e){let t=null;if(e.matches(Eo))t=e instanceof HTMLVideoElement?e:null;else{const s=e.querySelector(Eo);t=s instanceof HTMLVideoElement?s:null}t&&this.isValidVideoSource(t)&&this.createVideoControls()}observeVideoContainer(){const e=this.el.querySelector(fo);e&&this.videoObserver&&this.videoObserver.observe(e,{childList:!0,subtree:!0})}retryVideoInitialization(){if(this.initializationRetryCount>=this.maxRetries)return console.warn("Max retries reached for video initialization"),void this.cleanupVideoObserver();setTimeout(()=>{this.initializationRetryCount++;const e=this.el.querySelector(Eo);e instanceof HTMLVideoElement&&this.isValidVideoSource(e)?this.createVideoControls():this.retryVideoInitialization()},this.retryDelay)}cleanupVideoObserver(){this.videoObserver&&(this.videoObserver.disconnect(),this.videoObserver=null)}destroy(){this.cleanupVideoObserver(),this.videoControls&&(this.videoControls=null),this.parallaxEffect&&(this.parallaxEffect=null)}static initialize(){const e=document.querySelectorAll(`${go}[data-banner-style="video-banner"], ${go} ${fo}, ${go}:has(.${Co})`);if(e.length){const t=new Set;e.forEach(e=>{const s=e.closest(go);s instanceof HTMLElement&&!t.has(s)&&(t.add(s),new qo(s).init())})}}}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",qo.initialize):qo.initialize();const $o={CONTAINER:'.hero-banner-with-tiles__slider[data-component="hero-banner-with-tiles"]',SLIDE:".swiper-slide",PAGINATION:".hero-banner-with-tiles__pagination",COMPONENT:".hero-banner-with-tiles"},zo={SWIPER_PAGINATION_BULLET:"swiper-pagination-bullet",SWIPER_PAGINATION_BULLET_ACTIVE:"swiper-pagination-bullet-active"},Uo="resize",Wo="DOMContentLoaded",Vo=150,Go=320,Ko=600,Yo=960,jo={slidesPerView:1,slidesPerGroup:1,loop:!1,spaceBetween:16,keyboard:{enabled:!0},a11y:{enabled:!0},minSlidesRequired:2},Xo=10,Qo=24,Zo="Element is required for HeroBannerWithTile",Jo="Error initializing Hero Banner With Tile";class el{static SELECTORS=$o;static CLASS_NAMES=zo;el;swiper=null;resizeTimeout=null;accessibilityId=null;constructor(e){if(!e)throw new Error(Zo);this.el=e,this.init()}init(){try{this.handleResponsiveSwiper(),this.bindResizeListener()}catch(e){this.handleInitializationError(e)}}handleInitializationError(e){this.destroy();const t=new Error(`${Jo}: ${e.message}`);throw t.cause=e,t}handleResponsiveSwiper(){const e=window.innerWidth<Yo;e&&!this.swiper?this.initSwiper():!e&&this.swiper&&this.destroySwiper()}initSwiper(){const e=this.el.querySelector($o.CONTAINER),t=this.el.querySelector($o.PAGINATION);if(!e)return;if(e.swiper)return;if(e.querySelectorAll($o.SLIDE).length<jo.minSlidesRequired)return;const s={modules:[Ie.dK,Ie.s3,Ie.Jq],slidesPerView:jo.slidesPerView,slidesPerGroup:jo.slidesPerGroup,loop:jo.loop,spaceBetween:jo.spaceBetween,keyboard:jo.keyboard,a11y:jo.a11y,breakpoints:{[Go]:{slidesPerView:jo.slidesPerView,spaceBetween:Xo},[Ko]:{slidesPerView:2,spaceBetween:Qo}}};t&&(s.pagination={el:t,clickable:!0,bulletClass:zo.SWIPER_PAGINATION_BULLET,bulletActiveClass:zo.SWIPER_PAGINATION_BULLET_ACTIVE}),this.swiper=new Ne.A(e,s),requestAnimationFrame(()=>{if(this.swiper&&!this.swiper.destroyed){const e={focusableSelectors:["a[href]","button:not([disabled])",".hero-banner-with-tiles__tile-link",".cmp-button",'[tabindex]:not([tabindex="-1"])','[role="button"]:not([disabled])'],updateOnBreakpoint:!0};this.accessibilityId=_e.register(this.swiper,e)}})}destroySwiper(){this.accessibilityId&&(_e.unregister(this.accessibilityId),this.accessibilityId=null),this.swiper&&(this.swiper.destroy(!0,!0),this.swiper=null)}bindResizeListener(){globalThis.addEventListener(Uo,()=>{this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(()=>{this.handleResponsiveSwiper()},Vo)})}destroy(){this.destroySwiper(),this.resizeTimeout&&(clearTimeout(this.resizeTimeout),this.resizeTimeout=null)}static instances=new WeakMap;static initialize(){const e=document.querySelectorAll($o.COMPONENT);
3e.length&&e.forEach(e=>{const t=e.querySelector($o.CONTAINER);if(t&&!el.instances.has(e))try{const t=new el(e);el.instances.set(e,t)}catch(s){console.error("Failed to initialize HeroBannerWithTile component:",s,{component:e,swiperContainer:t})}})}}function tl(){el.initialize()}"loading"===document.readyState?document.addEventListener(Wo,tl):tl();const sl=".searchbox",il=".searchbox__form",nl=".searchbox__input",al=".searchbox__clear",rl=".suggestions-container",ol=".search-suggestions",ll=".search-config",cl=".custom-scroll",dl="active",hl="placeholder-visible",ul="is-open",ml=50;const pl=new class{debouncedGetAsyncSuggestions;constructor(){this.debouncedGetAsyncSuggestions=(0,nn.s)(500,this.getAsyncSuggestions.bind(this))}fetchSuggestions=(e,t,s,i)=>new Promise((n,a)=>{this.debouncedGetAsyncSuggestions(e,t,s,n,a,i)});async getAsyncSuggestions(e,t,s,i,n,a){try{const n=await fetch(e,{method:"POST",headers:{"Content-Type":"application/json",...s&&{Authorization:s?.indexOf("search-")>=0?`Bearer ${s}`:`Basic ${s}`}},body:JSON.stringify(t),signal:a});if(!n.ok)throw new Error(`HTTP error! status: ${n.status}`);i(await n.json())}catch(e){n(e)}}};class gl{el;form;input;clearButton;suggestionsContainer;suggestionsList;customScroll;searchConfig;isSuggestionEnabled;originalInputValue;isHovering;lastMousePosition;boundOutsideClick;abortController;constructor(e){if(!e)throw new Error("Element is required for SearchBox");this.el=e,this.form=null,this.input=null,this.clearButton=null,this.suggestionsContainer=null,this.suggestionsList=null,this.customScroll=null,this.searchConfig=null,this.isSuggestionEnabled=!1,this.originalInputValue="",this.isHovering=!1,this.lastMousePosition=null,this.boundOutsideClick=this.handleOutsideClick.bind(this),this.abortController=null}init(){this.findElements(),this.parseSearchConfig(),this.setInitialState(),this.addEventListeners(),this.updatePlaceholder(),this.el.searchBoxInstance=this}findElements(){this.form=this.el.querySelector(il),this.input=this.el.querySelector(nl),this.clearButton=this.el.querySelector(al),this.suggestionsContainer=this.el.querySelector(rl),this.suggestionsList=this.el.querySelector(ol),this.customScroll=this.el.querySelector(cl)}parseSearchConfig(){const e=this.el.querySelector(ll),t=e?.textContent??e?.innerText;if(t)try{this.searchConfig=JSON.parse(t)}catch{this.searchConfig=null,this.isSuggestionEnabled=!1}this.isSuggestionEnabled="true"===this.el.dataset.autosuggest}setInitialState(){if(!this.input||!this.clearButton)return;const e=this.input.value.trim().length>0;this.toggleClearButton(e)}addEventListeners(){this.input&&this.clearButton&&(this.input.addEventListener("input",this.handleInput.bind(this)),this.input.addEventListener("focus",this.handleFocus.bind(this)),this.input.addEventListener("blur",this.handleBlur.bind(this)),document.addEventListener("keydown",this.handleKeydown.bind(this)),this.clearButton.addEventListener("click",this.handleClear.bind(this)),document.addEventListener("click",this.boundOutsideClick),this.form&&(this.form.addEventListener("reset",this.handleReset.bind(this)),this.form.addEventListener("submit",this.handleSubmit.bind(this))))}handleInput(){if(!this.input)return;const e=this.input.value.trim().length>0;this.toggleClearButton(e),this.isHovering||this.resetOriginalInputValue(),this.handleSuggestions()}handleFocus(){if(!this.input)return;const e=this.input.value.trim().length>0;this.toggleClearButton(e)}handleBlur(){if(!this.input)return;this.input.value.trim().length>0||this.toggleClearButton(!1)}handleKeydown(e){if(!this.input||!this.isSuggestionEnabled)return;const t=this.suggestionsContainer?.classList.contains(ul);if(!t)return;const s=this.suggestionsList?.querySelectorAll("li");if(s&&0!==s.length)switch(e.key){case I.ARROW_DOWN:e.preventDefault(),this.focusNextSuggestion(s);break;case I.ARROW_UP:e.preventDefault(),this.focusPreviousSuggestion(s);break;case I.ESCAPE:e.preventDefault(),this.hideSuggestions(),this.input.focus();break;case I.TAB:e.preventDefault(),this.hideSuggestions(),this.clearButton?.focus()}}focusNextSuggestion(e){const t=document.activeElement;if(!(t&&t instanceof HTMLElement))return;let s=Array.from(e).indexOf(t)+1;s>=e.length&&(s=0);const i=e[s];i instanceof HTMLElement&&(i.focus(),this.scrollToVisibleIfNeeded(i))}focusPreviousSuggestion(e){const t=document.activeElement;if(t instanceof HTMLElement){let s=Array.from(e).indexOf(t)-1;s<0&&(s=e.length-1);const i=e[s];i instanceof HTMLElement&&(i.focus(),this.scrollToVisibleIfNeeded(i))}}scrollToVisibleIfNeeded(e){if(!this.suggestionsContainer)return;const t=this.suggestionsContainer.querySelector(".scroll-container");if(!t)return;const s=e.offsetTop,i=s+e.offsetHeight,n=t.scrollTop,a=t.clientHeight,r=n+a;s<n?t.scrollTo({top:s,behavior:"smooth"}):i>r&&t.scrollTo({top:i-a,behavior:"smooth"})}handleClear(){if(!this.input)return;this.input.value="",this.input.focus(),this.toggleClearButton(!1),this.hideSuggestions();const e=new Event("input",{bubbles:!0});this.input.dispatchEvent(e)}handleReset(){setTimeout(()=>{this.toggleClearButton(!1),this.hideSuggestions()},ml)}isValidInternalUrl(e){if(!e||""===e.trim())return!1;const t=e.trim();if(/^(javascript|data|vbscript|file|about):/i.test(t))return!1;if(t.startsWith("//")||t.startsWith("http://")||t.startsWith("https://"))try{if(new 
3URL(t,globalThis.location.origin).origin!==globalThis.location.origin)return!1}catch{return!1}return!t.includes("@")&&!t.includes("\\")&&(!t.startsWith("/")||!t.startsWith("//"))}handleSubmit(e){if(!this.input||!this.form)return;e.preventDefault();const t=this.input.value.trim(),s=t.length>1e4?t.substring(0,1e4):t,i=/^[a-zA-Z0-9\u00C0-\u024F\u00BF\u4E00-\u9FFF\u3040-\u309F\u30A0-\u30FF\s!@#$%^&*()_+\-={};'":\\|,.<>/?]+$/u.test(s)?Fr.A.sanitize(s,{ALLOWED_TAGS:[]}):"";if(!i)return;this.stopFetchSuggestions(),this.hideSuggestions();const n=this.form.getAttribute("action");if(n){if(!this.isValidInternalUrl(n))return;const e=new URL(n,globalThis.location.origin);e.searchParams.set("q",i),globalThis.location.href=e.toString()}}handleOutsideClick(e){e.target&&!this.el.contains(e.target)&&this.hideSuggestions()}handleSuggestions(){if(!this.input||!this.isSuggestionEnabled)return;const e=this.sanitizeHTML(this.input.value.trim()).replace(/^-/,String.raw`\-`),t=String.raw`^[a-zA-Z0-9\u00C0-\u024F\u00BF\u4E00-\u9FFF\u3040-\u309F\u30A0-\u30FF `,s=String.raw`!@#$%^&*()_+\-={};'":\\|,.<>/?]*$`,i=new RegExp(t+s,"u");this.shouldHideSuggestions(e,i)?this.hideSuggestions():e.length>=3&&this.searchConfig&&this.fetchSuggestions(e)}shouldHideSuggestions(e,t){return e.length<3||!t.test(e)}async fetchSuggestions(e){if(this.searchConfig){this.stopFetchSuggestions(),this.abortController=new AbortController;try{const{apiUrl:t,requestData:s}=this.buildApiRequest(e),i=await pl.fetchSuggestions(t,s,this.searchConfig.searchKey,this.abortController.signal);if(!this.input||this.input.value.trim().length<3)return void this.hideSuggestions();const n=this.decodeHtml(e).replace(/^\\/,""),a=this.processApiResponse(i,n);a&&a.length>0?this.displaySuggestions(a,n):this.hideSuggestions()}catch(e){e instanceof Error&&"AbortError"!==e.name&&this.hideSuggestions()}}}buildApiRequest(e){if(!this.searchConfig)throw new Error("Search config is required");const{endpointBase:t,engineName:s,siteId:i,pageType:n}=this.searchConfig;return{apiUrl:`${t}/api/as/v1/engines/${s}/search.json`,requestData:{query:e,search_fields:{custom_title:{}},result_fields:{custom_title:{raw:{},snippet:{}}},filters:{all:[...n?[{page_type:n}]:[],{site_id:i}],none:{hide_in_search:["true"]}},page:{size:10,current:1}}}}processApiResponse(e,t){return e.results?.filter(e=>e.custom_title.raw?.toLowerCase().includes(t.toLowerCase()))||[]}displaySuggestions(e,t){if(!this.suggestionsList||!this.suggestionsContainer)return;this.suggestionsList.innerHTML="";this.getUniqueSuggestions(e).forEach(e=>{const s=this.createSuggestionItem(e,t);this.suggestionsList&&this.suggestionsList.appendChild(s)}),this.suggestionsContainer.classList.add(ul),setTimeout(()=>{this.customScroll&&B.recalculateElement(this.customScroll)},ml)}getUniqueSuggestions(e){const t=new Set;return e.forEach(e=>{e.custom_title.raw&&t.add(e.custom_title.raw)}),Array.from(t)}createSuggestionItem(e,t){const s=document.createElement("li"),i=new RegExp(String.raw`(\s*)(${this.escapeRegExp(t)})(\s*)`,"gi"),n=this.sanitizeHTML(e).replace(i,(e,t,s,i)=>`${t.replaceAll(" ","&nbsp;")}<span>${s}</span>${i.replaceAll(" ","&nbsp;")}`);return s.innerHTML=Fr.A.sanitize(n),s.setAttribute("aria-selected","false"),s.setAttribute("role","option"),s.setAttribute("tabindex","0"),s.addEventListener("click",()=>this.selectSuggestion(e)),s.addEventListener("keydown",t=>{t.key!==I.ENTER&&t.key!==I.SPACE||(t.preventDefault(),this.selectSuggestion(e))}),s.addEventListener("mousemove",t=>this.handleSuggestionMouseMove(t,e)),s.addEventListener("mouseleave",()=>this.handleSuggestionLeave()),s}handleSuggestionMouseMove(e,t){if(!this.input)return;const s={x:e.clientX,y:e.clientY};if(this.lastMousePosition){if(!(Math.abs(s.x-this.lastMousePosition.x)>1||Math.abs(s.y-this.lastMousePosition.y)>1))return}this.lastMousePosition=s,this.originalInputValue||(this.originalInputValue=this.input.value),this.isHovering=!0,this.input.value=t}handleSuggestionLeave(){this.input&&(this.isHovering=!1,this.lastMousePosition=null,this.input.value=this.originalInputValue)}resetOriginalInputValue(){this.originalInputValue="",this.isHovering=!1}selectSuggestion(e){if(this.input&&(this.input.value=e,this.resetOriginalInputValue(),this.hideSuggestions(),this.form)){const e=new Event("submit",{bubbles:!0,cancelable:!0});this.form.dispatchEvent(e)}}stopFetchSuggestions(){this.abortController&&(this.abortController.abort(),this.abortController=null)}hideSuggestions(){this.stopFetchSuggestions(),this.suggestionsContainer&&this.suggestionsContainer.classList.remove(ul),this.suggestionsList&&(this.suggestionsList.innerHTML=""),this.resetOriginalInputValue()}escapeRegExp(e){return e.replaceAll(/[ -!@#$%^&*()_+\-={};'":\\|,.<>/?]/g,String.raw`\$&`)}sanitizeHTML(e){const t=document.createElement("div");return t.innerText=e,t.innerHTML}decodeHtml(e){const t=document.createElement("textarea");return t.innerHTML=e,t.value}toggleClearButton(e){this.clearButton&&(e?(this.clearButton.classList.add(dl),this.clearButton.removeAttribute("inert")):(this.clearButton.classList.remove(dl),this.clearButton.setAttribute("inert","true")))}updatePlaceholder(){this.input&&this.input.classList.add(hl)}static initialize(){const e=document.querySelectorAll(sl);
3e.length&&e.forEach(e=>{const t=e.querySelector(nl),s=e.querySelector(al);t&&s&&new gl(e).init()})}}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",gl.initialize):gl.initialize();const fl=".glossary",El=".glossary__alphabet-list",bl=".glossary__alphabet-arrow--prev",Tl=".glossary__alphabet-arrow--next",Sl=".glossary__alphabet-button",vl=".glossary__loading",Ll="glossary__alphabet-button--active",yl="glossary__alphabet-arrow--hidden",_l="glossary__terms--hidden",Al="glossary__loading--hidden",Cl="glossary__results--hidden",wl={scrollAmount:200,loadingDelay:1e3},Nl="smooth",Il="data-letter",Rl="aria-controls",Dl=".glossary__results",Ml="glossaryInstance",Ol={MAX_SEARCH_LENGTH:500,MAX_HIGHLIGHT_LENGTH:100,DANGEROUS_PATTERNS:/^(https?|ftp|javascript|data|mailto):/i,ALLOWED_CHARACTERS_PATTERN:/[^a-zA-Z0-9\s.,;:!?'"-]/g};function xl(){document.querySelectorAll(fl).forEach(e=>{try{if(Ml in e&&e[Ml])return;const t=new kl(e);Object.defineProperty(e,Ml,{value:t,writable:!1,configurable:!0,enumerable:!1})}catch(e){0}})}function Pl(e,t,s){const i=s.length;let n=e+t,a=0;for(;a<i;){n<0?n=i-1:n>=i&&(n=0);const e=s[n];if(e&&!e.disabled)return e;n+=t,a++}return null}class kl{static SELECTOR=fl;element;config;tablist;panels;alphabetList;prevArrow;nextArrow;loadingContainer;isLoading=!0;isInitialized=!1;highlightText=null;handleTabClick;handleTabKeydown;handlePrevArrowClick;handleNextArrowClick;handleAlphabetListScroll;handleWindowResize;constructor(e,t={}){if(!e)throw new Error("Glossary: Element is required");this.element=e,this.config={...wl,...t},this.tablist=this.element.querySelector(El),this.panels=this.element.querySelectorAll('[role="tabpanel"]'),this.alphabetList=this.element.querySelector(El),this.prevArrow=this.element.querySelector(bl),this.nextArrow=this.element.querySelector(Tl),this.loadingContainer=this.element.querySelector(vl),this.handleTabClick=e=>this.onTabClick(e),this.handleTabKeydown=e=>this.onTabKeydown(e),this.handlePrevArrowClick=()=>this.scrollPrev(),this.handleNextArrowClick=()=>this.scrollNext(),this.handleAlphabetListScroll=()=>this.updateArrowVisibility(),this.handleWindowResize=()=>this.updateArrowVisibility(),this.init()}get tabs(){return this.element.querySelectorAll(Sl)}init(){this.isInitialized||(this.showLoading(),this.sortAlphabetButtons(),this.bindEvents(),setTimeout(()=>{this.hideLoading();let e=this.initializeFromURL();this.updateArrowVisibility(),e=e||this.handleHighlightText(),this.isInitialized=!0,e||this.activateFirstAvailableButton()},this.config.loadingDelay))}showLoading(){this.loadingContainer&&this.loadingContainer.classList.remove(Al);const e=this.element.querySelector(Dl);e&&e.classList.add(Cl),this.isLoading=!0}hideLoading(){this.loadingContainer&&this.loadingContainer.classList.add(Al);const e=this.element.querySelector(Dl);e&&e.classList.remove(Cl),this.isLoading=!1}activateFirstAvailableButton(){const e=Array.from(this.tabs).find(e=>!e.disabled);e&&this.activateTab(e,!1,!1)}sortAlphabetButtons(){if(!this.alphabetList||!this.tabs||0===this.tabs.length)return;const e=Array.from(this.tabs);e.sort((e,t)=>{const s=e.dataset.letter??"",i=t.dataset.letter??"";return s.localeCompare(i)}),e.forEach(e=>{this.alphabetList?.appendChild(e)})}
3bindEvents(){this.tabs&&this.tabs.forEach(e=>{e.addEventListener("click",this.handleTabClick),e.addEventListener("keydown",this.handleTabKeydown)}),this.bindArrowEvents(),this.alphabetList&&this.alphabetList.addEventListener("scroll",this.handleAlphabetListScroll),globalThis.addEventListener("resize",this.handleWindowResize)}bindArrowEvents(){this.prevArrow&&this.prevArrow.addEventListener("click",this.handlePrevArrowClick),this.nextArrow&&this.nextArrow.addEventListener("click",this.handleNextArrowClick)}initializeFromURL(){let e=null;const t=this.getHashFromURL();if(t&&(e=this.findTabByLetter(t.toUpperCase())),!e){const t=this.getSearchParamFromURL();t&&(e=this.findTabBySearchText(t))}return!!e&&(this.activateTab(e,!1,!1),this.scrollTabIntoView(e),!0)}getHashFromURL(){const e=globalThis.location.hash.replace("#","");return decodeURIComponent(e).toUpperCase()}sanitizeURLParam(e,t=Ol.MAX_SEARCH_LENGTH){if(!e)return null;if(e.length>t)return null;if(Ol.DANGEROUS_PATTERNS.test(e))return null;let s;try{s=decodeURIComponent(e)}catch(e){return console.error("Invalid URI encoding:",e),null}const i=s.replaceAll(/(^['"]|['"]$)/g,"").trim();if(i.length>t)return null;const n=i.replace(Ol.ALLOWED_CHARACTERS_PATTERN,"");return n&&0!==n.trim().length?n:null}getSearchParamFromURL(){const e=new URLSearchParams(globalThis.location.search).get("search");return this.sanitizeURLParam(e)}handleHighlightText(){const e=new URLSearchParams(globalThis.location.search);if(this.highlightText=e.get("highlight")??"",!this.highlightText||!this.panels?.length)return!1;const t=this.highlightText.toLowerCase().split(/\s+/).filter(e=>e.length>0);let s,i=0;if(this.panels.forEach(e=>{const n=this.calculateTabScore(e,t);n>i&&(i=n,s=e)}),s){const e=s.getAttribute("aria-labelledby");if(e){const t=this.element.querySelector(`#${e}`);if(t)return this.activateTab(t,!1,!1),!0}}return!1}getRegexForKeyword(e){return new RegExp(`\\b${e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}\\b`,"gi")}calculateElementScore(e,t,s,i){if(!e)return 0;let n=0;if(e.toLowerCase()===i.toLowerCase())return 500*t;const a=e.includes(i.toLowerCase());a&&(n+=50*t);return s.every(t=>this.getRegexForKeyword(t).test(e))&&!a&&(n+=30*t),s.forEach(s=>{const i=this.getRegexForKeyword(s),a=Array.from(e.matchAll(i));a.length>0&&(n+=a.length*t*(1+.1*s.length))}),n}calculateTabScore(e,t){let s=0;const i=t.join(" ");return e.querySelectorAll("ul > li, p, h3").forEach(e=>{const n=e.textContent?.trim();if(n){const a="h3"===e.tagName.toLowerCase()?3:1;n.split("\n").filter(Boolean).forEach(e=>{s+=this.calculateElementScore(e,a,t,i)})}}),s}findTabBySearchText(e){if(!this.panels||!e)return null;const t=this.normalizeText(e),s=Array.from(this.panels).find(e=>{const s=e.textContent??"";return this.normalizeText(s).includes(t)});if(s){const e=s.getAttribute("id");if(e){const t=e.replace("glossary-panel-","");return this.findTabByLetter(t)}}return null}normalizeText(e){return e.toLowerCase().trim().replaceAll(/\s+/g," ")}findTabByLetter(e){return this.tabs?Array.from(this.tabs).find(t=>{const s=t.getAttribute(Il);return s?.toUpperCase()===e.toUpperCase()})??null:null}onTabClick(e){e.preventDefault();const t=e.target;t instanceof HTMLButtonElement&&!t.disabled&&(this.activateTab(t,!1,!0),this.scrollTabIntoView(t))}onTabKeydown(e){if(!this.tabs)return;const{key:t}=e,s=e.target;if(!(s instanceof HTMLButtonElement))return;const i=Array.from(this.tabs),n=i.indexOf(s);let a=null;switch(t){case I.ARROW_LEFT:case I.ARROW_UP:a=Pl(n,-1,i);break;case I.ARROW_RIGHT:case I.ARROW_DOWN:a=Pl(n,1,i);break;case I.HOME:a=Pl(-1,1,i);break;case I.END:a=Pl(i.length,-1,i);break;default:return}a&&(e.preventDefault(),this.activateTab(a,!0,!0),this.scrollTabIntoView(a))}activateTab(e,t=!1,s=!0){if(!e||!this.panels)return;this.deactivateTabs(),e.setAttribute("tabindex","0"),e.setAttribute("aria-selected","true"),e.classList.add(Ll);const i=e.getAttribute(Rl);if(i){const e=this.element.querySelector(`#${i}`);e&&e.classList.remove(_l)}if(s){const{letter:t}=e.dataset;if(t){const e=`#${t.toLowerCase()}`,s=new URL(globalThis.location.href);s.searchParams.delete("search"),s.searchParams.delete("highlight");const i=`${s.toString().split("#")[0]}${e}`;globalThis.history.replaceState({},"",i)}}t&&e.focus()}
3deactivateTabs(){this.tabs&&this.tabs.forEach(e=>{e.setAttribute("tabindex","-1"),e.setAttribute("aria-selected","false"),e.classList.remove(Ll)}),this.panels&&this.panels.forEach(e=>{e.classList.add(_l)})}scrollPrev(){this.alphabetList&&this.alphabetList.scrollBy({left:-this.config.scrollAmount,behavior:Nl})}scrollNext(){this.alphabetList&&this.alphabetList.scrollBy({left:this.config.scrollAmount,behavior:Nl})}scrollTabIntoView(e){if(!this.alphabetList)return;const t=this.alphabetList.getBoundingClientRect(),s=e.getBoundingClientRect(),i=this.prevArrow?.offsetWidth??0,n=this.nextArrow?.offsetWidth??0,a=t.left+i,r=t.right-n;let o=0;s.left<a?o=s.left-a:s.right>r&&(o=s.right-r),0!==o&&this.alphabetList.scrollBy({left:o,behavior:Nl})}updateArrowVisibility(){if(!this.alphabetList||!this.prevArrow||!this.nextArrow)return;const e=this.alphabetList.scrollLeft<=0;const t=function(e){const{scrollLeft:t,scrollWidth:s,clientWidth:i}=e;return t>=s-i-1}(this.alphabetList);e?this.prevArrow.classList.add(yl):this.prevArrow.classList.remove(yl),t?this.nextArrow.classList.add(yl):this.nextArrow.classList.remove(yl)}static initialize(){const e=document.querySelectorAll(kl.SELECTOR);return Array.from(e).map(e=>{const t=new kl(e);return Object.defineProperty(e,Ml,{value:t,writable:!1,configurable:!0,enumerable:!1}),t})}}function Hl(){xl(),so().add("glossary",()=>{xl()})}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",Hl):Hl();const Bl={ACTIVE:"active",HIDDEN:"is-hidden",HORIZONTAL_SCROLL:"tabs--horizontal-scroll",NO_SCROLL:"tabs-scroll--no-scroll",ISSUE:"tabs--issue",OPEN:"open",IS_STICKY:"is-sticky",MOUSE:"mouse",IS_HIDDEN:"is-hidden"},Fl=".tablist",ql=".tablist__wrapper",$l=".tablist__dropdown-trigger",zl=".tablist__dropdown-label",Ul=".tabs__arrow--prev",Wl=".tabs__arrow--next",Vl="[role=tab]",Gl="[role=tabpanel]",Kl=".tabs",Yl=".header-fixed",jl=".height-header-placeholder",Xl=".focus",Ql=".tabs__nav-item",Zl=".cmp-tabs__tablist-container",Jl=".cmp-tabs__tabpanel",ec="tabindex",tc="aria-selected",sc="aria-controls",ic="data-deletable",nc="click",ac="keydown",rc="focus",oc="scroll",lc="resize",cc={END:I.END,HOME:I.HOME,ARROW_LEFT:I.ARROW_LEFT,ARROW_UP:I.ARROW_UP,ARROW_RIGHT:I.ARROW_RIGHT,ARROW_DOWN:I.ARROW_DOWN,DELETE:I.DELETE,BACKSPACE:I.BACKSPACE,ESC:I.ESC,ENTER:I.ENTER,SPACE:I.SPACE},dc=200,hc=10,uc=100,mc=60,pc="0",gc="-1",fc="true",Ec="false",bc="smooth",Tc={passive:!0};class Sc{tabList;constructor(e){this.tabList=e}clickEventListener(e){const{currentTarget:t}=e;if(!(t instanceof HTMLElement))return;const s=t;this.tabList.activateTab(s,!1)}keydownEventListener(e){const{key:t}=e;if(this.tabList.isDropdownVariant)this.handleDropdownNavigation(e);else switch(t){case cc.END:{e.preventDefault();const t=this.tabList.getTabs();this.tabList.activateTab(t.at(-1),!0);break}case cc.HOME:e.preventDefault(),this.tabList.activateTab(this.tabList.getTabs()[0],!0);break;case cc.ARROW_UP:case cc.ARROW_DOWN:case cc.ARROW_LEFT:case cc.ARROW_RIGHT:this.tabList.determineOrientation(e);break;case cc.DELETE:this.tabList.determineDeletable(e)}}handleDropdownNavigation(e){const{key:t}=e,{target:s}=e;if(!(s instanceof HTMLElement))return;const i=s,n=this.tabList.getTabs(),a=n.indexOf(i);switch(t){case cc.ENTER:case cc.SPACE:e.preventDefault(),this.tabList.activateTab(i,!1),this.tabList.updateDropdownLabel?.(),this.tabList.closeDropdown?.();break;case cc.ARROW_DOWN:{e.preventDefault();const t=a+1;t<n.length?n[t].focus():n[0].focus();break}case cc.ARROW_UP:{e.preventDefault();const t=a-1;t>=0?n[t].focus():n.at(-1).focus();break}case cc.HOME:e.preventDefault(),n[0].focus();break;case cc.END:e.preventDefault(),n.at(-1).focus();break;case cc.ESC:e.preventDefault(),this.tabList.closeDropdown?.()}}isMouseInteraction(e){return e.classList.contains(Bl.MOUSE)}focusEventHandler(e){const{target:t}=e;if(t&&t===document.activeElement&&t instanceof HTMLElement){this.isMouseInteraction(t)||this.tabList.activateTab(t,!1)}}}var vc=class{element;resizeTimeout;scrollTimeout;tablistContainer;tablistWrapper;dropdownTrigger;tabPanels;constructor(e){this.element=e,this.resizeTimeout=null,this.scrollTimeout=null,this.tablistContainer=null,this.tablistWrapper=null,this.dropdownTrigger=null,this.tabPanels=[],this.init()}getHeaderPlaceholderHeight(){const e=document.querySelector(jl);if(e){return e.clientHeight}return mc??60}init(){this.collectElements(),this.setupWindowResizeListener(),this.setupScrollListener(),this.setupTabClickListeners(),this.setupFocusOutListener(),this.setStickyHeight()}collectElements(){const e=this.element.querySelector(Zl);e instanceof HTMLElement&&(this.tablistContainer=e);const t=this.element.querySelector(ql);t instanceof HTMLElement&&(this.tablistWrapper=t);const s=this.element.querySelector($l);s instanceof HTMLElement&&(this.dropdownTrigger=s);const i=Array.from(this.element.querySelectorAll(Jl));i.length>0&&(this.tabPanels=i)}setupTabClickListeners(){this.element.querySelectorAll(Ql).forEach(e
3=>{e.addEventListener(nc,()=>{this.scrollToTabsSection(this.element)})})}setupFocusOutListener(){this.tablistWrapper&&this.tablistWrapper.addEventListener("focusout",({relatedTarget:e})=>{e instanceof Node&&!this.tablistWrapper?.contains(e)&&this.closeDropdown()})}closeDropdown(){this.dropdownTrigger&&this.tablistWrapper&&(this.dropdownTrigger.classList.remove(Bl.OPEN),this.tablistWrapper.classList.remove(Bl.OPEN))}scrollToTabsSection(e){if(!e)return;const t=this.getHeaderPlaceholderHeight(),s=e.getBoundingClientRect(),i=window.scrollY+s.top;window.scrollTo({top:i-t,behavior:bc})}setupWindowResizeListener(){globalThis.addEventListener(lc,()=>{this.resizeTimeout&&globalThis.clearTimeout(this.resizeTimeout),this.resizeTimeout=globalThis.setTimeout(()=>{this.handleStickyTabs()},uc??100)})}setupScrollListener(){globalThis.addEventListener(oc,()=>{this.scrollTimeout&&globalThis.clearTimeout(this.scrollTimeout),this.scrollTimeout=globalThis.setTimeout(()=>{this.handleStickyTabs()},hc??10)},Tc),this.handleStickyTabs()}handleStickyTabs(){const{scrollY:e}=globalThis,t=this.getHeaderPlaceholderHeight();if(!this.tablistContainer)return;if(!this.getActiveTabPanel())return;e>=this.element.getBoundingClientRect().top+e-t?this.setTablistContainerSticky(this.tablistContainer,!0):this.setTablistContainerSticky(this.tablistContainer,!1)}setStickyHeight(){const{tablistContainer:e}=this;if(!e)return;const t=e.clientHeight;document.documentElement.style.setProperty("--tabs-issue-sticky-height",`${t}px`)}setTablistContainerSticky(e,t){const s=e;t?s.classList.add(Bl.IS_STICKY):s.classList.remove(Bl.IS_STICKY)}getActiveTabPanel(){const e=this.element.querySelector(`${Ql}.${Bl.ACTIVE}`);if(!(e instanceof HTMLElement))return null;const t=e.getAttribute("aria-controls");if(!t)return null;const s=document.getElementById(t);return s instanceof HTMLElement?s:null}destroy(){globalThis.removeEventListener(oc,this.handleStickyTabs),this.resizeTimeout&&(globalThis.clearTimeout(this.resizeTimeout),this.resizeTimeout=null),this.scrollTimeout&&(globalThis.clearTimeout(this.scrollTimeout),this.scrollTimeout=null),this.tablistContainer&&this.setTablistContainerSticky(this.tablistContainer,!1)}};class Lc{static CLASSES=Bl;static KEYS=cc;element;tablist;tablistWrapper;dropdownTrigger;tabs;panels;handlers;isHorizontalScroll;prevArrow;nextArrow;isDropdownVariant;dropdownLabel;issueTabs;fixedGapMobile;fixedGapDesktop;mobileBreakpoint;fixedGap;constructor(e){this.element=e,this.tablist=e.querySelector(Fl),this.tablistWrapper=e.querySelector(ql),this.dropdownTrigger=e.querySelector($l),this.tabs=Array.from(e.querySelectorAll(Vl)),this.panels=Array.from(e.querySelectorAll(Gl)),this.handlers=new Sc(this),this.isHorizontalScroll=!e.classList.contains(Bl.ISSUE),this.prevArrow=e.querySelector(Ul),this.nextArrow=e.querySelector(Wl),this.isDropdownVariant=e.classList.contains(Bl.ISSUE),this.dropdownLabel=e.querySelector(zl),this.issueTabs=this.isDropdownVariant?new vc(e):null,this.fixedGapMobile=10,this.fixedGapDesktop=100,this.mobileBreakpoint=768,this.fixedGap=40,this.init()}init(){this.addListeners(),this.addHashChangeListener(),this.isHorizontalScroll?this.initHorizontalScroll():this.initDropdown(),this.initializeFromHash()}
3addListeners(){this.tabs.forEach(e=>{e.addEventListener(nc,e=>{e instanceof MouseEvent&&this.handlers.clickEventListener(e)}),e.addEventListener(ac,e=>{e instanceof KeyboardEvent&&this.handlers.keydownEventListener(e)}),e.addEventListener(rc,e=>{e instanceof FocusEvent&&this.handlers.focusEventHandler(e)})})}initHorizontalScroll(){this.tablistWrapper&&this.prevArrow&&this.nextArrow&&(this.tablistWrapper.addEventListener(oc,()=>this.updateArrowStates()),this.prevArrow.addEventListener(nc,()=>this.scrollTabs("prev")),this.nextArrow.addEventListener(nc,()=>this.scrollTabs("next")),globalThis.addEventListener(lc,()=>this.checkScrollNeed()),this.checkScrollNeed(),this.updateArrowStates())}scrollTabs(e){if(!this.tablistWrapper)return;const t=dc??200,s=this.tablistWrapper.scrollLeft;"prev"===e?this.tablistWrapper.scrollLeft=s-t:"next"===e&&(this.tablistWrapper.scrollLeft=s+t)}updateArrowStates(){if(!this.tablistWrapper||!this.prevArrow||!this.nextArrow)return;const{scrollLeft:e,scrollWidth:t,clientWidth:s}=this.tablistWrapper,i=e<=0,n=e>=t-s-1;this.prevArrow.disabled=i,this.nextArrow.disabled=n}checkScrollNeed(){if(!this.tablistWrapper)return;this.tablistWrapper.scrollWidth>this.tablistWrapper.clientWidth?this.element.classList.remove(Bl.NO_SCROLL):this.element.classList.add(Bl.NO_SCROLL),this.updateArrowStates()}tabContactScroll(e,t=!0){const s=e.closest(Kl);if(!(s instanceof HTMLElement))return;if(this.isDropdownVariant)return;const i=s.querySelector(Fl);i instanceof HTMLElement&&this.shouldScrollToTab(i,t)&&this.performTabScroll(s)}shouldScrollToTab(e,t){if(!t)return!0;const s=e.getBoundingClientRect(),i=this.calculateHeaderHeight();return s.top<=i}calculateHeaderHeight(){const e=document.querySelector(Yl);return e instanceof HTMLElement?e.offsetHeight:0}performTabScroll(e){const t=this.calculateHeaderHeight(),s=e.getBoundingClientRect().top+window.scrollY-t-this.fixedGap;window.scrollTo({top:s,behavior:bc})}activateTab(e,t=!1,s=!0,i=!0){e&&(this.deactivateTabs(),this.setTabAsActive(e),this.showTabPanel(e),this.handleTabActivationSideEffects(e,s,t,i))}setTabAsActive(e){e.setAttribute(ec,pc),e.setAttribute(tc,fc),e.classList.add(Bl.ACTIVE)}showTabPanel(e){const t=e.getAttribute(sc);if(!t)return;const s=this.element.querySelector(`#${t}`);s&&s.classList.remove(Bl.HIDDEN)}handleTabActivationSideEffects(e,t,s,i){t&&this.updateUrlHash(e),this.isHorizontalScroll&&this.scrollTabIntoView(e),this.isDropdownVariant&&this.updateDropdownLabel(),this.tabContactScroll(e,i),s&&i&&e.focus()}scrollTabIntoView(e){this.tablistWrapper&&e&&this.scrollTabToItemIfNeeded(e)}scrollTabToItemIfNeeded(e){if(!this.tablistWrapper||!e)return;if(!this.isHorizontalScroll)return;const t=window.innerWidth>=600?120:40,s=this.tablistWrapper.getBoundingClientRect(),i=e.getBoundingClientRect(),n=i.left-s.left,a=i.right-s.left,r=t,o=s.width-t;let l=!1,c=this.tablistWrapper.scrollLeft;if(n<r){const e=r-n;c=this.tablistWrapper.scrollLeft-e,l=!0}else if(a>o){const e=a-o;c=this.tablistWrapper.scrollLeft+e,l=!0}if(l){const e=this.tablistWrapper.scrollWidth-this.tablistWrapper.clientWidth;c=Math.max(0,Math.min(e,c)),this.tablistWrapper.scrollLeft=c,this.updateArrowStates()}}calculateOptimalScrollPosition(e,t){const s=this.prevArrow?this.prevArrow.offsetWidth:0,i=this.nextArrow?this.nextArrow.offsetWidth:0,n=window.innerWidth>=this.mobileBreakpoint?this.fixedGapDesktop:this.fixedGapMobile,a=t-s-i-2*n,r=e.offsetWidth;if(r>a){const t=s+n;return e.offsetLeft-t}return e.offsetLeft+r/2-t/2}
3deactivateTabs(){this.tabs.forEach(e=>{e.setAttribute(ec,gc),e.setAttribute(tc,Ec),e.classList.remove(Bl.ACTIVE)}),this.panels.forEach(e=>{e.classList.add(Bl.HIDDEN)})}getTabs(){return this.tabs}scrollToTabIfNeeded(e){if(e<0||e>=this.tabs.length)return;if(!this.isHorizontalScroll)return;const t=this.tabs[e];t&&this.scrollTabToItemIfNeeded(t)}determineOrientation(e){if(!this.tablist)return;const t=function(e,t){const{key:s}=e;return s===t.ARROW_UP||s===t.ARROW_DOWN||s===t.ARROW_LEFT||s===t.ARROW_RIGHT}(e,cc);if(t){const t=function(e,t,s){const{key:i}=e,{target:n}=e;if(!(n instanceof HTMLElement))return null;const a=n,r=t.indexOf(a);let o;switch(i){case s.ARROW_LEFT:case s.ARROW_UP:o=r-1,o<0&&(o=t.length-1);break;case s.ARROW_RIGHT:case s.ARROW_DOWN:o=r+1,o>=t.length&&(o=0);break;case s.HOME:o=0;break;case s.END:o=t.length-1;break;default:return null}const l=t[o];return l?(e.preventDefault(),l):null}(e,this.tabs,cc);t&&this.activateTab(t,!0)}}determineDeletable(e){const{target:t}=e;if(!(t instanceof HTMLElement))return;const s=t;if(s.hasAttribute(ic)){this.deleteTab(e),this.tabs=Array.from(this.element.querySelectorAll(Vl)),this.panels=Array.from(this.element.querySelectorAll(Gl));const t=this.tabs.indexOf(s);t-1<0?this.activateTab(this.tabs[0],!1,!0,!0):this.activateTab(this.tabs[t-1],!1,!0,!0),this.isHorizontalScroll&&this.checkScrollNeed()}}deleteTab(e){const{target:t}=e;if(!(t instanceof HTMLElement))return;const s=t,i=s.getAttribute(sc);if(i){const e=document.getElementById(i);e&&e.remove()}s.remove()}initDropdown(){this.addDropdownListeners(),this.updateDropdownLabel()}addDropdownListeners(){this.dropdownTrigger&&(this.addDropdownTriggerListeners(),this.addDocumentListeners(),this.addDropdownTabListeners())}addDropdownTriggerListeners(){this.dropdownTrigger&&(this.dropdownTrigger.addEventListener(nc,e=>{e.preventDefault(),this.toggleDropdown()}),this.dropdownTrigger.addEventListener(ac,e=>{e instanceof KeyboardEvent&&this.handleDropdownTriggerKeydown(e)}))}addDocumentListeners(){document.addEventListener(nc,e=>{this.tablist&&e.target instanceof Node&&!this.tablist.contains(e.target)&&this.closeDropdown()}),document.addEventListener(ac,e=>{e instanceof KeyboardEvent&&e.key===cc.ESC&&this.isDropdownOpen()&&(this.closeDropdown(),this.dropdownTrigger?.focus())})}
3addDropdownTabListeners(){this.tabs.forEach(e=>{e.addEventListener(nc,e=>{e instanceof MouseEvent&&(this.handlers.clickEventListener(e),this.updateDropdownLabel(),this.closeDropdown())}),e.addEventListener(ac,e=>{e instanceof KeyboardEvent&&(e.key!==cc.ENTER&&e.key!==cc.SPACE&&e.key!==cc.ESC||setTimeout(()=>{this.dropdownTrigger&&this.dropdownTrigger.focus()},0))})})}toggleDropdown(){if(!this.dropdownTrigger)return;this.dropdownTrigger.classList.contains(Bl.OPEN)?this.closeDropdown():this.openDropdown()}openDropdown(){this.dropdownTrigger&&this.tablistWrapper&&(this.dropdownTrigger.classList.add(Bl.OPEN),this.tablistWrapper.classList.add(Bl.OPEN))}closeDropdown(){this.dropdownTrigger&&this.tablistWrapper&&(this.dropdownTrigger.classList.remove(Bl.OPEN),this.tablistWrapper.classList.remove(Bl.OPEN))}isDropdownOpen(){return this.dropdownTrigger?.classList.contains(Bl.OPEN)??!1}handleDropdownTriggerKeydown(e){const{key:t}=e;switch(t){case cc.ENTER:case cc.SPACE:e.preventDefault(),this.toggleDropdown();break;case cc.ARROW_DOWN:{e.preventDefault(),this.openDropdown();const t=this.tabs[0];t&&t.focus();break}case cc.ARROW_UP:{e.preventDefault(),this.openDropdown();const t=this.tabs.at(-1);t&&t.focus();break}case cc.ESC:e.preventDefault(),this.closeDropdown(),this.dropdownTrigger?.focus()}}updateDropdownLabel(){if(!this.dropdownLabel)return;const e=this.tabs.find(e=>e.classList.contains(Bl.ACTIVE));if(e){const t=e.querySelector(Xl),s=t?.innerHTML??e.innerHTML,i=Fr.A.sanitize(s);this.dropdownLabel.innerHTML=i}}addHashChangeListener(){globalThis.addEventListener("hashchange",()=>{this.initializeFromHash()})}initializeFromHash(){const{hash:e}=globalThis.location;if(!e)return;const t=this.findTabByHash(e);t&&this.activateTabFromHash(t)}findTabByHash(e){return this.tabs.find(t=>this.getTabHash(t)===e)}activateTabFromHash(e){setTimeout(()=>{const t=this.temporarilyDisableFocusOutline(e);this.activateTab(e,!1,!1,!1),this.handleDropdownScrollIfNeeded(),this.restoreFocusOutline(e,t)},500)}temporarilyDisableFocusOutline(e){const t=e.style.outline;return e.style.setProperty("outline","none"),t}handleDropdownScrollIfNeeded(){this.isDropdownVariant&&this.issueTabs&&this.issueTabs.scrollToTabsSection(this.element)}restoreFocusOutline(e,t){setTimeout(()=>{e.style.setProperty("outline",t)},100)}updateUrlHash(e){const t=this.getTabHash(e);t&&globalThis.history.replaceState(null,"",t)}getTabHash(e){const{dtmHref:t}=e.dataset;if(t)return t.startsWith("#")?t:`#${t}`;const s=e.getAttribute(sc);if(s)return`#${s}`;const i=e.querySelector(Xl),n=i?.textContent?.trim()??e.textContent?.trim()??"";if(n){return`#${n.toLowerCase().replaceAll(/[^\w\s-]/g,"").replaceAll(/\s+/g,"-").replaceAll(/-+/g,"-").trim()}`}return""}static initialize(){const e=document.querySelectorAll(Kl);e.length&&e.forEach(e=>new Lc(e))}}Lc.initialize();const yc={BLOCKQUOTE_ANIMATION:".blockquote-animation",BLOCKQUOTE_AUTHOR:".blockquote__author",BLOCKQUOTE_QUOTE:".quote"},_c="parent-word",Ac="child-word",Cc="child-word-inner",wc="expand-word",Nc="opacity-0",Ic="normal-text",Rc=.0035,Dc=.003,Mc="runAnimation",Oc="scroll",xc="animationend",Pc="DOMContentLoaded",kc="”",Hc=" ",Bc="\n",Fc="",qc={passive:!0},$c={bubbles:!0};function zc(e){if(!(e instanceof Element))return document.createElement("span");const t=e.cloneNode();return t instanceof HTMLElement?(t.className=Fc,t):document.createElement("span")}class Uc{static SELECTORS=yc;element;animationTimeBase;classes;dom;rootAnimatorChildNodes;boundHandleScroll;currentWordIndex=0;hasAnimated=!1;isInitialized=!1;constructor(e,t={}){if(!e)throw new Error("Element is required");this.element=e,this.animationTimeBase=this.parseAnimationTimeBase(e,t.animationTimeBase),this.classes=this.createClassesConfig(),this.dom=this.createDOMConfig(e),this.rootAnimatorChildNodes=e.childNodes,this.boundHandleScroll=this.handleScroll.bind(this),this.init()}parseAnimationTimeBase(e,t){if(void 0!==t)return t;const s=e.dataset.animationTimeBase;if(s){return Number.parseFloat(s)||Rc}return Rc}createClassesConfig(){return{parentWordClass:_c,childWordClass:Ac,childWordInnerClass:Cc,expandWord:wc,opacity0:Nc}}createDOMConfig(e){return{blockquoteAuthor:e.parentElement?.querySelector(yc.BLOCKQUOTE_AUTHOR)??null}}init(){if(!this.isInitialized)try{this.addEventListeners(),this.setUpDOMForAnimation(),this.addAnimationDuration(),this.catchEventRunAnimation(),this.checkIfElementInViewport(),this.isInitialized=!0}catch(e){this.handleInitializationError(e instanceof Error?e:new Error(String(e)))}}handleInitializationError(e){throw this.cleanup(),this.isInitialized=!1,new Error(`Failed to initialize Blockquote component: ${e.message}`)}addEventListeners(){globalThis.addEventListener(Oc,this.boundHandleScroll,qc)}removeEventListeners(){!function(e,t,s,i){try{e.removeEventListener(t,s,i)}catch{}}(globalThis,Oc,this.boundHandleScroll,qc)}checkIfElementInViewport(){const e=window.scrollY;(function(e){const{windowScrollTop:t,elementTop:s,heightScreen:i}=e;return t>s-i})({windowScrollTop:e,elementTop:this.element.getBoundingClientRect().top+e,heightScreen:window.innerHeight})&&this.startAnimation()}handleScroll(){this.hasAnimated?this.removeEventListeners():this.checkIfElementInViewport()}startAnimation(){this.hasAnimated||(this.hasAnimated=!0,this.runAnimation(),this.removeEventListeners())}setUpDOMForAnimation(){const e=(this.element.textContent?.trim()||"").split(/\n+/).map(e=>e.trim()).filter(e=>e.length>0);if(e.length>1){let t=Fc;e.forEach((s,i)=>{const n=document.createElement("span");n.classList.add("quote-line");const a=0===i,r=i===e.length-1;
3this.wrapWordsInSpansMultiLine(s,Ic,r,a).forEach(e=>{n.appendChild(e)}),t+=n.outerHTML}),this.element.innerHTML=t}else{let e=Fc;this.rootAnimatorChildNodes.forEach(t=>{if(function(e){const t=e.textContent?.trim();return t!==Bc&&t!==Fc}(t))if(t.childNodes.length){const s=zc(t);t.childNodes.forEach(e=>{s.appendChild(this.getWordSpanPerNode(e))}),e+=s.outerHTML}else e+=this.getWordSpanPerNode(t).outerHTML}),this.element.innerHTML=e}}wrapWordsInSpans(e,t){const s=e.trim().split(/\s+/).filter(e=>e!==Fc),i=[];return s.forEach((e,n)=>{if(e===Fc)return;const a=document.createElement("span"),r=document.createElement("span"),o=document.createElement("span");a.classList.add(this.classes.parentWordClass),r.classList.add(t);const l=0===n,c=n===s.length-1;o.innerHTML=l&&c?`“${e}${kc}`:l?`“${e}`:c?`${e}${kc}`:e,o.classList.add(this.classes.childWordInnerClass),r.classList.add(this.classes.childWordClass),r.appendChild(o),a.appendChild(r),i.push(a),n<s.length-1&&i.push(document.createTextNode(Hc))}),i}wrapWordsInSpansMultiLine(e,t,s,i=!1){const n=e.trim().split(/\s+/).filter(e=>e!==Fc),a=[];return n.forEach((e,r)=>{if(e===Fc)return;const o=document.createElement("span"),l=document.createElement("span"),c=document.createElement("span");o.classList.add(this.classes.parentWordClass),l.classList.add(t);const d=0===r,h=r===n.length-1;c.innerHTML=i&&d?`“${e}`:s&&h?`${e}${kc}`:e,c.classList.add(this.classes.childWordInnerClass),l.classList.add(this.classes.childWordClass),l.appendChild(c),o.appendChild(l),a.push(o),r<n.length-1&&a.push(document.createTextNode(Hc))}),a}getWordSpanPerNode(e){const t=zc(e),s=function(e){return e instanceof Element&&e.className||Ic}(e),i=function(e){return e instanceof Element?e.innerHTML??Fc:e.textContent??Fc}(e);return this.wrapWordsInSpans(i,s).forEach(e=>{t.appendChild(e)}),t}addAnimationDuration(){let e=1;this.element.querySelectorAll(`.${this.classes.childWordClass}`).forEach(t=>{const s=t.textContent??Fc;e=function(e,t,s){return t+e.length*s}(s,e,Dc);const i=function(e){const{textLength:t,animationTimeBase:s,delayMultiplier:i}=e;return t*s*i}({textLength:s.length,animationTimeBase:this.animationTimeBase,delayMultiplier:e}),n=t;n.style.animationDuration=`${i}s`;const a=n.querySelector(`.${this.classes.childWordInnerClass}`);a&&(a.style.animationDuration=`${i}s`)})}catchEventRunAnimation(){this.element.addEventListener(Mc,e=>{if(e instanceof CustomEvent&&e.detail&&"number"==typeof e.detail.currentIndex){const t=e,{currentIndex:s}=t.detail;this.element.querySelectorAll(`.${this.classes.childWordClass}`).forEach((e,t)=>{t===s&&e.classList.add(this.classes.expandWord)})}})}runAnimation(){const e=this.element.querySelectorAll(`.${this.classes.childWordClass}`),t=this.element.querySelectorAll(`.${this.classes.childWordInnerClass}`);this.dispatchEventRunAnimation(),t.forEach(e=>{e.addEventListener(xc,e=>{e.stopPropagation()})}),e.forEach(t=>{t.addEventListener(xc,()=>{this.currentWordIndex++,this.dispatchEventRunAnimation(),this.currentWordIndex===e.length&&this.dom.blockquoteAuthor&&this.dom.blockquoteAuthor.classList.remove(this.classes.opacity0)})})}dispatchEventRunAnimation(){const e=new CustomEvent(Mc,{...$c,detail:{currentIndex:this.currentWordIndex}});this.element.dispatchEvent(e)}cleanup(){this.removeEventListeners(),this.currentWordIndex=0,this.hasAnimated=!1,this.isInitialized=!1}destroy(){this.cleanup()}static initialize(){const e=document.querySelectorAll(Uc.SELECTORS.BLOCKQUOTE_ANIMATION);return Array.from(e).map(e=>{try{return new Uc(e)}catch{return null}}).filter(e=>null!==e)}static initializeLineBreaks(){document.querySelectorAll(Uc.SELECTORS.BLOCKQUOTE_QUOTE).forEach(e=>{if("true"===e.dataset.lineBreaksProcessed||e.classList.contains("blockquote-animation"))return;const t=e.innerHTML.replaceAll(/<br\s*\/?>/gi,"\n"),s=document.createElement("div");s.innerHTML=t;const i=(s.textContent?.trim()||"").split(/\n+/).map(e=>e.trim()).filter(e=>e.length>0);if(i.length>1){const t=e;t.innerHTML="",i.forEach(e=>{const s=document.createElement("span");s.textContent=e,s.classList.add("quote-line"),t.appendChild(s)}),t.dataset.lineBreaksProcessed="true"}})}}function Wc(){Uc.initialize(),Uc.initializeLineBreaks()}"loading"===document.readyState?document.addEventListener(Pc,Wc):Wc();const Vc=".in-page-nav__sticky-nav",Gc=".in-page-navigation",Kc=".inpagenavigation",Yc=".in-page-nav-wrapper",jc=".in-page-nav-basic",Xc=".in-page-nav-list-item",Qc=".in-PageNavLink",Zc=".in-page-nav__nav-list",Jc=".in-page-nav-subheading__button",ed=".
3in-page-nav__navigation-controls__button--next",td=".in-page-nav__navigation-controls__button--previous",sd=".in-page-nav-wrapper--mobile",id=".in-page-nav-list-wrapper",nd=".in-page-nav-mobile__active-section",ad=".header-fixed",rd=".container",od="active-nav",ld="active",cd="in-page-nav-subheading__button--active",dd="is-author-mode",hd="in-page-nav__sticky-nav--top",ud="in-page-navigation--top",md="in-page-navigation--left",pd="container--in-page-navigation-parent",gd="container--in-page-navigation-parent-closest",fd="in-page-nav__sticky-nav--moved",Ed="in-page-nav-list-wrapper--hidden",bd="in-page-nav__navigation-controls__button--hidden",Td="in-page-nav__is-dragging-nav",Sd="container-wrapper-inner",vd=960,Ld=250,yd=500,_d=100,Ad=1e3,Cd=100,wd=16,Nd=8,Id=300,Rd=100,Dd=200,Md=24,Od=2,xd=100,Pd="data-hash",kd="inert",Hd="aria-expanded",Bd="--article-header-progress-bar-height",Fd="--in-page-nav-bar-height",qd="--navigation-sticky-height",$d="transform",zd="sticky",Ud="click",Wd="pointerdown",Vd="pointermove",Gd="pointerup",Kd="pointercancel",Yd="contextmenu",jd="transitionend",Xd="resize",Qd="scroll",Zd="scrollend",Jd="DOMContentLoaded",eh="keydown",th="smooth",sh="#section-",ih="#",nh={MIN_PARTS_REQUIRED:3,MIN_PARTS_FOR_SUBSECTION:4,NUMERIC_PATTERN:/^\d+$/};class ah{state;constructor(){this.state={currentIndex:0,currentSubIndex:null,totalItems:0,itemPositions:[],sections:[],isScrolling:!1,isTopVariant:!1,isDragging:!1}}get currentIndex(){return this.state.currentIndex}set currentIndex(e){this.state.currentIndex=e}get currentSubIndex(){return this.state.currentSubIndex}set currentSubIndex(e){this.state.currentSubIndex=e}get totalItems(){return this.state.totalItems}set totalItems(e){this.state.totalItems=e}get itemPositions(){return this.state.itemPositions}set itemPositions(e){this.state.itemPositions=e}get sections(){return this.state.sections}set sections(e){this.state.sections=e}get isScrolling(){return this.state.isScrolling}set isScrolling(e){this.state.isScrolling=e}get isTopVariant(){return this.state.isTopVariant}set isTopVariant(e){this.state.isTopVariant=e}get isDragging(){return this.state.isDragging}set isDragging(e){this.state.isDragging=e}clearSections(){this.state.sections=[]}addSection(e){this.state.sections.push(e)}isValidIndex(e){return e>=0&&e<this.totalItems}resetSubIndex(){this.state.currentSubIndex=null}}class rh{el;navListWrapper;navList;navItems;navLinks;subheadingButtons;nextButton;prevButton;navListContainer;state;mobileMenuManager;buttonManager;subsections;hashParseCache;constructor(e,t,s){this.el=e,this.state=t,this.navListWrapper=null,this.navList=null,this.navItems=null,this.navLinks=null,this.subheadingButtons=null,this.nextButton=null,this.prevButton=null,this.navListContainer=null,this.mobileMenuManager=s??null,this.buttonManager=null,this.subsections=new Map,this.hashParseCache=new Map}setButtonManager(e){this.buttonManager=e}findElements(){if(this.navListWrapper=this.el.querySelector(id),this.navList=this.el.querySelector(jc),this.navItems=this.el.querySelectorAll(Xc),this.navLinks=this.el.querySelectorAll(Qc),this.subheadingButtons=this.el.querySelectorAll(Jc),this.nextButton=this.el.querySelector(ed),this.prevButton=this.el.querySelector(td),this.navListContainer=this.el.querySelector(Zc),!this.navList||!this.navItems?.length)return!1;if(!this.navListContainer)if(this.navList.parentElement)this.navListContainer=this.navList.parentElement;else{const e=this.el.querySelector(id);e instanceof HTMLElement?this.navListContainer=e:this.navListContainer=this.el}return this.state.isTopVariant=this.el.classList.contains(hd),this.state.totalItems=this.navItems.length,this.findSubsections(),!0}findSections(){this.state.clearSections(),this.navLinks?.length&&Array.from(this.navLinks).forEach(e=>{const t=e.getAttribute(Pd);if(t){const e=this.el.closest(".in-page-nav-wrapper")??this.el.closest(".in-page-navigation"),s=e?e.querySelector(t):document.querySelector(t);s&&this.state.addSection(s)}})}findSubsections(){this.subheadingButtons?.length&&(this.subsections.clear(),Array.from(this.subheadingButtons).forEac
3h(e=>{this.processSubheadingButton(e)}))}processSubheadingButton(e){const t=e.getAttribute(Pd);if(!this.isValidSectionHash(t))return;const s=this.el.closest(".in-page-nav-wrapper")??this.el.closest(".in-page-navigation"),i=s?s.querySelector(t):document.querySelector(t);if(!i)return;const n=this.extractParentIndex(t);n&&this.addSubsectionToMap(n,i)}isValidSectionHash(e){return Boolean(e?.startsWith(sh))}parseHashStructure(e){if(this.hashParseCache.has(e))return this.hashParseCache.get(e)??null;if(!e?.startsWith(sh))return this.hashParseCache.set(e,null),null;const t=e.replace(sh,"").split("-");if(t.length<nh.MIN_PARTS_REQUIRED)return this.hashParseCache.set(e,null),null;const s=t.at(-1),i=t.at(-2);if(!nh.NUMERIC_PATTERN.test(s))return this.hashParseCache.set(e,null),null;const n=nh.NUMERIC_PATTERN.test(i),a=t.length>=nh.MIN_PARTS_FOR_SUBSECTION&&n?{prefix:"section",parts:t,componentIdentifier:t.slice(0,-2).join("-"),mainSectionIndex:Number.parseInt(i),isSubsection:!0,parentIdentifier:t.slice(0,-1).join("-"),subIndex:Number.parseInt(s)}:{prefix:"section",parts:t,componentIdentifier:t.slice(0,-1).join("-"),mainSectionIndex:Number.parseInt(s),isSubsection:!1,parentIdentifier:t.join("-")};return this.hashParseCache.set(e,a),a}isValidHashFormat(e){return null!==this.parseHashStructure(e)}extractParentIndex(e){const t=this.parseHashStructure(e);return t?.isSubsection?t.parentIdentifier:null}addSubsectionToMap(e,t){const s=e;this.subsections.has(s)||this.subsections.set(s,[]),this.subsections.get(s)?.push(t)}findParentIndexByIdentifier(e){if(!this.navLinks?.length||!e)return-1;for(let t=0;t<this.navLinks.length;t++){const s=this.navLinks[t].getAttribute(Pd);if(s){const i=this.parseHashStructure(s);if(i&&!i.isSubsection&&i.parentIdentifier===e)return t}}return-1}calculateDimensions(){this.navListContainer&&this.calculateItemPositions()}calculateItemPositions(){if(!this.navItems?.length||!this.navList)return;const e=[];Array.from(this.navItems).forEach(t=>{const s=t.offsetLeft;e.push(s)}),this.state.itemPositions=e}updateActiveItem(){if(!this.navItems?.length)return;this.navItems.forEach(e=>{e.classList.remove(od)});const e=this.navItems[this.state.currentIndex];e&&e.classList.add(od),this.mobileMenuManager&&this.mobileMenuManager.updateMobileActiveSection()}updateActiveSubheading(){if(!this.subheadingButtons?.length)return;if(this.subheadingButtons.forEach(e=>{e.classList.remove(cd)}),null===this.state.currentSubIndex)return;const e=this.state.currentIndex;if(!this.navLinks||e<0||e>=this.navLinks.length)return;const t=this.navLinks[e].getAttribute(Pd);if(!t)return;const s=this.parseHashStructure(t);if(!s||s.isSubsection)return;const i=s.parentIdentifier;if(!this.subsections.has(i))return;const n=this.subsections.get(i);if(!n?.length)return;if(this.state.currentSubIndex<0||this.state.currentSubIndex>=n.length)return;const a=n[this.state.currentSubIndex];if(!a)return;const r=`${ih}${a.id}`,o=Array.from(this.subheadingButtons).find(e=>e.getAttribute(Pd)===r);o&&o.classList.add(cd)}setActiveSubheading(e){const t=this.parseHashStructure(e);if(!t?.isSubsection||void 0===t.subIndex)return!1;const s=this.findParentIndexByIdentifier(t.parentIdentifier);return-1!==s&&(!(s<0||s>=this.state.totalItems)&&(this.state.currentIndex=s,this.state.currentSubIndex=t.subIndex,this.updateActiveItem(),this.updateActiveSubheading(),!0))}scrollNavByDistance(e){if(!this.navList||!this.navListContainer)return;if(!this.state.isTopVariant)return;const t=this.getCurrentTransform(),s=.4*this.navListContainer.getBoundingClientRect().width;let i;i="next"===e?t-s:t+s;const n=this.calculateScrollBoundaries();i=Math.max(n.right-Od,Math.min(n.left,i)),this.navList.style.transform=`translateX(${i}px)`}getCurrentTransform(){if(!this.navList)return 0;const e=globalThis.getComputedStyle(this.navList).transform;if("none"===e||!e)return 0;const t=/matrix\(([^)]+)\)/.exec(e);if(!t?.[1])return 0;const s=t[1].split(", ");return Number.parseFloat(s[4])||0}calculateScrollBoundaries(){if(!this.navList||!this.navListContainer)return{left:0,right:0};const e=this.state.itemPositions[0]||0,t=this.state.itemPositions.length-1;if(t<0)return{left:0,right:0};
3const s=this.state.itemPositions[t],i=this.navListContainer.getBoundingClientRect().width,n=this.navItems?.[t],a=-(s+(n?.getBoundingClientRect().width??0)-e-i);return{left:0,right:Math.min(0,a)}}scrollToItemIfNeeded(e){if(!this.navList||!this.navListContainer||!this.navItems)return;if(!this.state.isTopVariant)return;if(e<0||e>=this.navItems.length)return;let t=80;window.innerWidth<600?t=40:window.innerWidth>=960&&(t=120);const s=this.getCurrentTransform(),i=this.navListContainer.getBoundingClientRect(),n=this.navItems[e].getBoundingClientRect(),a=n.left-i.left,r=n.right-i.left,o=t,l=i.width-t;let c=!1,d=s;if(n.width>l-o){if(a!==o){d=s+(o-a),c=!0}}else if(a<o){d=s+(o-a),c=!0}else if(r>l){d=s-(r-l),c=!0}if(c){const e=this.calculateScrollBoundaries();d=Math.max(e.right-Od,Math.min(e.left,d)),this.navList.style.transform=`translateX(${d}px)`}}getNavListWrapper(){return this.navListWrapper}getNavList(){return this.navList}getNavLinks(){return this.navLinks}getSubheadingButtons(){return this.subheadingButtons}getNavItems(){return this.navItems}getNextButton(){return this.nextButton}getPrevButton(){return this.prevButton}getNavListContainer(){return this.navListContainer}getSubsections(e){if(!this.navLinks||e<0||e>=this.navLinks.length)return[];const t=this.navLinks[e].getAttribute(Pd);if(!t)return[];const s=this.parseHashStructure(t);if(!s||s.isSubsection)return[];const i=s.parentIdentifier;return this.subsections.get(i)??[]}}class oh{state;domManager;buttonManager;el;scrollTimeout;alignmentPointCache=null;CACHE_DURATION=100;constructor(e,t,s,i){this.state=e,this.domManager=t,this.buttonManager=s,this.el=i,this.scrollTimeout=null}getNavigationIndexFromHash(e){const t=this.domManager.getNavLinks();if(!t?.length)return-1;for(let s=0;s<t.length;s++){const i=t[s].dataset.hash;if(i&&i===e)return s}return-1}getHeaderHeight(){const e=document.querySelector(ad);return e instanceof HTMLElement?e.offsetHeight:0}getCSSVariableHeight(e){const t=getComputedStyle(document.documentElement).getPropertyValue(e);return Number.parseInt(t.trim())||0}getInPageNavHeight(){if(!this.state.isTopVariant&&window.innerWidth>=vd)return 0;const e=this.el;if(!e)return 0;return globalThis.getComputedStyle(e).position!==zd?0:(document.documentElement.style.setProperty(Fd,`${e.offsetHeight}px`),e.offsetHeight)}handleScroll(){this.state.isScrolling||this.state.isDragging||(this.trackActiveSection(),this.trackActiveSubsection(),this.buttonManager.updateButtonStates())}getAlignmentPoint(){const e=Date.now();if(this.alignmentPointCache&&e-this.alignmentPointCache.timestamp<this.CACHE_DURATION)return this.alignmentPointCache.value;const t=this.getHeaderHeight(),s=this.getCSSVariableHeight(Bd),i=t+this.getInPageNavHeight()+s+this.getCSSVariableHeight(qd)+Md;return this.alignmentPointCache={value:i,timestamp:e},i}isSectionActiveAtTrigger(e,t,s=1){const i=e.top-s,n=e.bottom+s;return t>=i&&t<=n}isAtPageBottom(){return window.scrollY+window.innerHeight>=document.documentElement.scrollHeight-10}findClosestElementToTrigger(e,t){let s={index:-1,distance:1/0};for(let i=0;i<e.length;i++){const n=e[i].getBoundingClientRect();if(this.isSectionActiveAtTrigger(n,t)){const e=Math.abs(n.top-t);if(e<s.distance&&(s={index:i,distance:e},0===e))break}}return s.index}trackActiveSection(){if(!this.state.sections.length)return;if(this.isAtPageBottom()){const e=this.state.sections.length-1;return void(e!==this.state.currentIndex&&(this.setActiveItemWithoutScroll(e),this.state.resetSubIndex(),this.domManager.updateActiveSubheading()))}const e=this.getAlignmentPoint();let t=this.findClosestElementToTrigger(this.state.sections,e);-1===t&&(t=this.findClosestSection(e)),-1!==t&&t!==this.state.currentIndex&&(this.setActiveItemWithoutScroll(t),this.state.resetSubIndex(),this.domManager.updateActiveSubheading())}trackActiveSubsection(){if(-1===this.state.currentIndex)return;const e=this.domManager.getSubsections(this.state.currentIndex);if(!e.length)return;const t=this.getAlignmentPoint(),s=this.findClosestElementToTrigger(e,t);-1!==s&&s!==this.state.currentSubIndex?(this.state.currentSubIndex=s,this.domManager.updateActiveSubheading()):-1===s&&null!==this.state.currentSubIndex&&(this.state.resetSubIndex(),this.domManager.updateActiveSubheading())}findClosestSection(e){let t=1/0,s=-1;for(let i=0;i<this.state.sections.length;i++){const n=this.state.sections[i].getBoundingClientRect(),a=n.top+n.height/2,r=Math.abs(a-e);r<t&&(t=r,s=i)}return s}scrollToSection(e){const t=this.el.closest(".in-page-nav-wrapper")??this.el.closest(".in-page-navigation"),s=t?t.querySelector(e):document.querySelector(e);
3if(!s)return;this.clearScrollTimeout(),this.state.isScrolling=!0;const i=this.getAlignmentPoint(),n=s.getBoundingClientRect().top+window.scrollY-i;window.scrollTo({top:n,behavior:th}),e.includes("-")&&e.startsWith(sh)&&this.domManager.setActiveSubheading(e),this.enableScrollTrackingAfterScroll()}clearScrollTimeout(){null!==this.scrollTimeout&&(clearTimeout(this.scrollTimeout),this.scrollTimeout=null)}enableScrollTrackingAfterScroll(){const e=()=>{this.state.isScrolling=!1,this.trackActiveSection(),this.trackActiveSubsection(),globalThis.removeEventListener(Zd,e)};"onscrollend"in globalThis?globalThis.addEventListener(Zd,e,{once:!0}):this.scrollTimeout=setTimeout(()=>{this.state.isScrolling=!1,this.trackActiveSection(),this.trackActiveSubsection(),this.scrollTimeout=null},Ad)}setActiveItemWithoutScroll(e){this.state.isValidIndex(e)&&(this.state.currentIndex=e,this.domManager.updateActiveItem(),this.domManager.scrollToItemIfNeeded(e),this.buttonManager.updateButtonStates())}scrollToCurrentSection(){const e=this.domManager.getNavLinks();if(!e?.length)return;const t=e[this.state.currentIndex];if(!t)return;const{hash:s}=t.dataset;s&&this.scrollToSection(s)}}class lh{state;domManager;isListeningToTransitions=!1;onTransitionEnd=null;constructor(e,t){this.state=e,this.domManager=t}updateButtonStates(){const e=this.domManager.getNextButton(),t=this.domManager.getPrevButton(),s=this.domManager.getNavList(),i=this.domManager.getNavListContainer();e&&t&&s&&i&&this.state.isTopVariant&&(this.updatePreviousButtonState(t,s,i),this.updateNextButtonState(e,s,i))}
3updatePreviousButtonState(e,t,s){const i=t.getBoundingClientRect(),n=s.getBoundingClientRect();Math.round(n.left)-Math.round(i.left)>1?this.showButton(e):this.hideButton(e)}updateNextButtonState(e,t,s){const i=s.getBoundingClientRect(),n=t.children[t.children.length-1];if(!(n instanceof HTMLElement))return void this.hideButton(e);const a=n.getBoundingClientRect();Math.round(a.right)-Math.round(i.right)>1?this.showButton(e):this.hideButton(e)}hideButton(e){const t=e;t.disabled=!0,t.setAttribute(kd,""),t.classList.add(bd)}showButton(e){const t=e;t.disabled=!1,t.removeAttribute(kd),t.classList.remove(bd)}enableTransitionBasedUpdates(){if(this.isListeningToTransitions)return;const e=this.domManager.getNavList();e&&(this.onTransitionEnd??=this.handleTransitionEnd.bind(this),e.addEventListener(jd,this.onTransitionEnd),this.isListeningToTransitions=!0)}disableTransitionBasedUpdates(){if(!this.isListeningToTransitions)return;const e=this.domManager.getNavList();e&&this.onTransitionEnd&&e.removeEventListener(jd,this.onTransitionEnd),this.isListeningToTransitions=!1}handleTransitionEnd(e){e.target===this.domManager.getNavList()&&e.propertyName===$d&&this.updateButtonStates()}forceUpdateButtonStates(){this.updateButtonStates()}}class ch{static updateHash(e){if(!e?.startsWith(ih))return;const t=new URL(globalThis.location.href);t.hash=e,globalThis.history.replaceState({},"",t.toString())}static getHash(){const{hash:e}=globalThis.location;return e&&e.trim().length>1?e:null}}class dh{state;domManager;scrollManager;buttonManager;mobileMenuManager;swipeManager;boundHandleResize;boundHandleScroll;boundHandleNext;boundHandlePrevious;boundListEventHandler;navLinkHandlers;subheadingHandlers;constructor(e,t,s,i,n,a){this.state=e,this.domManager=t,this.scrollManager=s,this.buttonManager=i,this.mobileMenuManager=n??null,this.swipeManager=a??null,this.boundHandleResize=this.handleResize.bind(this),this.boundHandleScroll=this.handleScroll.bind(this),this.boundHandleNext=this.handleNext.bind(this),this.boundHandlePrevious=this.handlePrevious.bind(this),this.boundListEventHandler=this.listEventHandler.bind(this),this.navLinkHandlers=[],this.subheadingHandlers=[]}addEventListeners(){const e=this.domManager.getNextButton(),t=this.domManager.getPrevButton(),s=this.domManager.getNavListWrapper();s&&s.addEventListener(eh,this.boundListEventHandler),this.state.isTopVariant&&(e&&e.addEventListener(Ud,this.boundHandleNext),t&&t.addEventListener(Ud,this.boundHandlePrevious)),this.addNavLinkListeners(),this.addSubheadingButtonListeners(),globalThis.addEventListener(Xd,this.boundHandleResize),globalThis.addEventListener(Qd,this.boundHandleScroll,{passive:!0})}listEventHandler(e){const t=e,{target:s,key:i,shiftKey:n}=t;s instanceof HTMLElement&&i===I.TAB&&(this.handleButtonNavigation(s,n,t)||this.handleNavigationItemFocus(s,n,t))}ensureNavElements(){const e=this.domManager.getNavList(),t=this.domManager.getNavListWrapper(),s=this.domManager.getNavItems();return e&&t&&s?.length?{navList:e,navListWrapper:t,navItems:s}:null}isAtNavigationBoundary(e,t){return t?!e.previousElementSibling:!e.nextElementSibling}updateNavPositionForFocusedElement(e){const t=this.ensureNavElements();if(!t)return;const{navItems:s}=t,i=Array.from(s).indexOf(e);-1!==i&&this.domManager.scrollToItemIfNeeded(i)}getTargetNavItem(e,t){const s=t?e.previousElementSibling:e.nextElementSibling;return s instanceof HTMLElement?s:null}handleButtonNavigation(e,t,s){if(!(e.matches(ed)||e.matches(td)))return!1;const i=this.domManager.getPrevButton(),n=this.domManager.getNextButton();return t?this.handleButtonNavigationBackward(e,i,s):this.handleButtonNavigationForward(e,n,s),!0}handleButtonNavigationForward(e,t,s){e.matches(td)&&t&&!t.disabled&&(s.preventDefault(),t.focus({preventScroll:!0}))}handleButtonNavigationBackward(e,t,s){e.matches(ed)&&(t&&!t.disabled?(s.preventDefault(),t.focus({preventScroll:!0})):this.focusLastNavItem(s)),e.matches(td)&&this.focusLastNavItem(s)}focusLastNavItem(e){const t=this.ensureNavElements();if(!t)return;const{navItems:s}=t,i=s[s.length-1],n=i.querySelector(Qc);n&&(e.preventDefault(),n.focus({preventScroll:!0}),this.state.isTopVariant&&this.updateNavPositionForFocusedElement(i))}handleNavigationItemFocus(e,t,s){const i=e.closest(Xc);if(!(i instanceof HTMLElement))return;const n=this.isAtNavigationBoundary(i,t);if(n&&this.state.isTopVariant)return t?void 0:void this.focusFirstAvailableButton(s);if(n)return;s.preventDefault();const a=this.getTargetNavItem(i,t);if(!a)return;const r=a.querySelector(Qc);r instanceof HTMLElement&&(r.focus({preventScroll:!0}),this.state.isTopVariant&&this.updateNavPositionForFocusedElement(a))}focusFirstAvailableButton(e){const t=this.domManager.getPrevButton(),s=this.domManager.getNextButton();t&&!t.disabled?(e.preventDefault(),t.focus({preventScroll:!0})):s&&!s.disabled&&(e.preventDefault(),s.focus({preventScroll:!0}))}handleNext(e){e.preventDefault(),this.domManager.scrollNavByDistance("next"),this.buttonManager.updateButtonStates()}handlePrevious(e){e.preventDefault(),this.domManager.scrollNavByDistance("prev"),this.buttonManager.updateButtonStates()}handleResize(){this.domManager.calculateDimensions(),this.state.isTopVariant&&this.domManager.scrollToItemIfNeeded(this.state.currentIndex),this.buttonManager.updateButtonStates(),this.swipeManager&&this.swipeManager.refresh()}handleScroll(){this.scrollManager.handleScroll(),this.buttonManager.updateButtonStates()}addNavLinkListeners(){const e=this.domManager.getNavLinks();e?.length&&e.forEach((e,t)=>{const s=e=>this.handleNavLinkClick(e,t);e.addEventListener(Ud,s),this.navLinkHandlers.push({el:e,handler:s}
3)})}addSubheadingButtonListeners(){const e=this.domManager.getSubheadingButtons();e?.length&&e.forEach(e=>{const t=e=>this.handleSubheadingButtonClick(e);e.addEventListener(Ud,t),this.subheadingHandlers.push({el:e,handler:t})})}handleNavLinkClick(e,t){if(this.swipeManager?.isDragging())return void e.preventDefault();e.preventDefault();const{target:s}=e;if(!(s instanceof HTMLButtonElement))return;const i=s.getAttribute(Pd);i&&(!this.state.isTopVariant&&this.mobileMenuManager&&this.mobileMenuManager.closeMenu(),this.state.isValidIndex(t)&&(this.state.currentIndex=t,this.domManager.updateActiveItem(),this.domManager.scrollToItemIfNeeded(t),this.buttonManager.updateButtonStates()),this.scrollManager.scrollToSection(i),ch.updateHash(i))}handleSubheadingButtonClick(e){if(this.swipeManager?.isDragging())return void e.preventDefault();e.preventDefault();const{target:t}=e;if(!(t instanceof HTMLButtonElement))return;const s=t.getAttribute(Pd);if(!s)return;!this.state.isTopVariant&&this.mobileMenuManager&&this.mobileMenuManager.closeMenu();this.domManager.setActiveSubheading(s)&&(this.scrollManager.scrollToSection(s),ch.updateHash(s))}setActiveItem(e){this.state.isValidIndex(e)&&(this.state.currentIndex=e,this.updateNavigation())}updateNavigation(){this.domManager.updateActiveItem(),this.domManager.scrollToItemIfNeeded(this.state.currentIndex),this.buttonManager.updateButtonStates()}syncUrlWithCurrentIndex(){const e=this.domManager.getNavLinks();if(!e?.length)return;const t=e[this.state.currentIndex];if(!t)return;const s=t.getAttribute(Pd);s&&ch.updateHash(s)}destroy(){const e=this.domManager.getNextButton(),t=this.domManager.getPrevButton(),s=this.domManager.getNavList();s&&s.removeEventListener(eh,this.boundListEventHandler),this.state.isTopVariant&&(e&&e.removeEventListener(Ud,this.boundHandleNext),t&&t.removeEventListener(Ud,this.boundHandlePrevious)),this.navLinkHandlers.forEach(({el:e,handler:t})=>{e.removeEventListener(Ud,t)}),this.navLinkHandlers=[],this.subheadingHandlers.forEach(({el:e,handler:t})=>{e.removeEventListener(Ud,t)}),this.subheadingHandlers=[],globalThis.removeEventListener(Xd,this.boundHandleResize),globalThis.removeEventListener(Qd,this.boundHandleScroll)}}class hh{el;state;mobileToggle;navListWrapper;mobileActiveSection;isMenuOpen;resizeTimeout=null;DEBOUNCE_DELAY=Ld;boundDebouncedResize;boundToggleClick;constructor(e,t){this.el=e,this.state=t,this.mobileToggle=null,this.navListWrapper=null,this.mobileActiveSection=null,this.isMenuOpen=!1,this.boundDebouncedResize=this.debouncedResize.bind(this),this.boundToggleClick=this.toggleMobileMenu.bind(this)}initialize(){this.findElements(),this.addEventListeners(),this.handleResize()}findElements(){this.mobileToggle=this.el.querySelector(sd),this.navListWrapper=this.el.querySelector(id),this.mobileActiveSection=this.el.querySelector(nd)}addEventListeners(){this.mobileToggle&&(this.mobileToggle.addEventListener(Ud,this.boundToggleClick),globalThis.addEventListener(Xd,this.boundDebouncedResize))}debouncedResize(){this.resizeTimeout&&globalThis.clearTimeout(this.resizeTimeout),this.resizeTimeout=globalThis.setTimeout(()=>{this.handleResize(),this.resizeTimeout=null},this.DEBOUNCE_DELAY)}handleResize(){if(!this.navListWrapper)return;if(window.innerWidth>=vd)return this.navListWrapper.classList.remove(Ed),this.navListWrapper.removeAttribute(kd),this.isMenuOpen=!0,void(this.mobileToggle&&this.mobileToggle.setAttribute(Hd,"true"));this.state.isTopVariant?(this.isMenuOpen=!0,this.navListWrapper.classList.remove(Ed),this.navListWrapper.removeAttribute(kd),this.mobileToggle&&this.mobileToggle.setAttribute(Hd,"true")):(this.isMenuOpen=!1,this.navListWrapper.classList.add(Ed),this.navListWrapper.setAttribute(kd,""),this.mobileToggle&&this.mobileToggle.setAttribute(Hd,"false"))}toggleMobileMenu(){if(!this.navListWrapper)return;const e=window.innerWidth>=vd;this.isMenuOpen=!this.isMenuOpen,this.isMenuOpen?(this.navListWrapper.classList.remove(Ed),this.navListWrapper.removeAttribute(kd)):e||(this.navListWrapper.classList.add(Ed),this.navListWrapper.setAttribute(kd,"")),this.mobileToggle&&this.mobileToggle.setAttribute(Hd,this.isMenuOpen.toString())}
3closeMenu(){if(!this.navListWrapper)return;window.innerWidth>=vd||this.isMenuOpen&&(this.isMenuOpen=!1,this.navListWrapper.classList.add(Ed),this.navListWrapper.setAttribute(kd,""),this.mobileToggle&&this.mobileToggle.setAttribute(Hd,"false"))}updateMobileActiveSection(){if(!this.mobileActiveSection||this.state.isTopVariant)return;const e=this.el.querySelectorAll(Qc);if(!e?.length)return;const t=e[this.state.currentIndex];if(t){const e=t.textContent?.trim()??"";this.mobileActiveSection.textContent=e}}destroy(){globalThis.removeEventListener(Xd,this.boundDebouncedResize),this.resizeTimeout&&(globalThis.clearTimeout(this.resizeTimeout),this.resizeTimeout=null),this.mobileToggle&&this.mobileToggle.removeEventListener(Ud,this.boundToggleClick)}}class uh{state;domManager;buttonManager;dragState;config;animationId=null;isPointerDown=!1;cachedBoundaries=null;lastUpdateTime=0;navListElement=null;navListContainer=null;rafId=null;boundHandleStart;boundHandleMove;boundHandleEnd;boundPreventContextMenu;constructor(e,t,s){this.state=e,this.domManager=t,this.buttonManager=s,this.boundHandleStart=this.handleStart.bind(this),this.boundHandleMove=this.handleMove.bind(this),this.boundHandleEnd=this.handleEnd.bind(this),this.boundPreventContextMenu=this.preventContextMenu.bind(this),this.dragState={isDragging:!1,startX:0,currentX:0,startTime:0,startTransform:0,velocity:0,lastMoveTime:0,lastMoveX:0,allowClick:!0,moved:!1,startedOnButton:!1,dragActivationTimeout:null},this.config={dragThreshold:10,velocityThreshold:.5,snapDuration:300,momentumDecay:.95,resistanceFactor:.3,maxMomentumDuration:1500,updateInterval:wd,enableActiveItemUpdate:!1,clickTolerance:3,buttonDragDelay:150}}initialize(){const e=this.domManager.getNavList(),t=this.domManager.getNavListContainer();e&&t&&this.state.isTopVariant&&(this.navListElement=e,this.navListContainer=t,this.addEventListeners(t),this.buttonManager.enableTransitionBasedUpdates(),this.getBoundaries(!0))}addEventListeners(e){e.addEventListener(Wd,this.boundHandleStart,{passive:!0}),e.addEventListener(Vd,this.boundHandleMove,{passive:!1}),e.addEventListener(Gd,this.boundHandleEnd,{passive:!0}),e.addEventListener(Kd,this.boundHandleEnd,{passive:!0});e.style.touchAction="pan-y pinch-zoom",e.addEventListener(Yd,this.boundPreventContextMenu)}handleStart(e){const{clientX:t}=e;if(!e.isPrimary)return;const{target:s}=e,i=s instanceof HTMLElement&&!!s.closest(".in-PageNavLink");this.isPointerDown=!0;const n=Date.now();this.dragState={isDragging:!1,startX:t,currentX:t,startTime:n,startTransform:this.getCurrentTransform(),velocity:0,lastMoveTime:n,lastMoveX:t,allowClick:!0,moved:!1,startedOnButton:i,dragActivationTimeout:null},this.cancelAnimation()}handleMove(e){if(!this.isPointerDown||!e.isPrimary)return;const{clientX:t}=e,s=t-this.dragState.startX,i=Date.now();this.updateMovementFlags(s),this.confirmDragIfThresholdExceeded(e,s),this.dragState.isDragging&&(e.preventDefault(),this.dragState.currentX=t,this.updateVelocityIfNeeded(t,i),this.throttledScheduleTransform(s,i))}updateMovementFlags(e){Math.abs(e)>this.config.clickTolerance&&(this.dragState.moved=!0,this.dragState.allowClick=!1)}getDragThreshold(){return this.dragState.startedOnButton?2*this.config.dragThreshold:this.config.dragThreshold}confirmDragIfThresholdExceeded(e,t){if(!(this.dragState.isDragging||Math.abs(t)<=this.getDragThreshold())){if(this.dragState.isDragging=!0,this.state.isDragging=!0,e.preventDefault(),this.navListContainer&&e.pointerId)try{this.navListContainer.setPointerCapture(e.pointerId)}catch{}document.body.classList.add(Td)}}updateVelocityIfNeeded(e,t){const s=t-this.dragState.lastMoveTime;if(s>Nd){const i=e-this.dragState.lastMoveX;this.dragState.velocity=i/s,this.dragState.lastMoveTime=t,this.dragState.lastMoveX=e}}throttledScheduleTransform(e,t){t-this.lastUpdateTime>=this.config.updateInterval&&(this.scheduleTransformUpdate(e),this.lastUpdateTime=t)}handleEnd(e){if(this.isPointerDown&&e.isPrimary){if(this.isPointerDown=!1,document.body.classList.remove(Td),this.navListContainer&&e.pointerId&&this.navListContainer.releasePointerCapture(e.pointerId),this.dragState.isDragging){e.preventDefault();const t=this.dragState.currentX-this.dragState.startX,s=Date.now()-this.dragState.startTime;this.handleDragEnd(t,s)}this.dragState.isDragging=!1,this.state.isDragging=!1}}scheduleTransformUpdate(e){null===this.rafId&&(this.rafId=requestAnimationFrame(()=>{this.updateTransform(e),this.rafId=null}))}updateTransform(e){if(!this.navListElement)return;let t=this.dragState.startTransform+e;
3const s=this.getBoundaries();if(t>s.left){const e=t-s.left;t=s.left+e*this.config.resistanceFactor}else if(t<s.right){const e=s.right-t;t=s.right-e*this.config.resistanceFactor}this.navListElement.style.transform=`translateX(${t}px)`}getBoundaries(e=!1){const t=Date.now();return!e&&this.cachedBoundaries&&t-this.cachedBoundaries.timestamp<Cd?{left:this.cachedBoundaries.left,right:this.cachedBoundaries.right}:this.calculateBoundaries()}calculateBoundaries(){const e=this.domManager.getNavListContainer(),t=this.domManager.getNavItems();if(!e||!this.navListElement||!t)return{left:0,right:0};const{itemPositions:s}=this.state;if(!s.length)return{left:0,right:0};const i=s[0],n=s.length-1,a=s[n],r=e.getBoundingClientRect().width,o=t[n],l=-(a+(o?.getBoundingClientRect().width??0)-i-r),c=Math.min(0,l);return this.cachedBoundaries={left:0,right:c,timestamp:Date.now(),containerWidth:e.offsetWidth,contentWidth:this.navListElement.scrollWidth},{left:0,right:c}}handleDragEnd(e,t){const s=this.getBoundaries();let i=this.dragState.startTransform+e;const n=Math.abs(this.dragState.velocity);if(n>this.config.velocityThreshold&&t<Id){i+=this.dragState.velocity*Math.min(Dd,n*Rd)}i=Math.max(s.right-Od,Math.min(s.left,i));const a=this.findNearestSnapPosition(i);this.animateToPosition(a)}findNearestSnapPosition(e){const t=this.getBoundaries(),s=Math.max(t.right-Od,Math.min(t.left,e)),{itemPositions:i}=this.state,n=this.domManager.getNavItems();if(!i.length||!n)return e;const a=this.calculateShadowGap(),r=i[0],o=this.domManager.getNavListContainer();if(!o)return s;const l=o.getBoundingClientRect().width-2*a,c=t.right-Od;if(Math.abs(s-c)<xd)return s;return this.findClosestItemPosition(i,n,t,s,l,r).closestPosition}calculateShadowGap(){return window.innerWidth<600?40:window.innerWidth>=960?120:80}findClosestItemPosition(e,t,s,i,n,a){if(!t)return{closestPosition:i,closestIndex:this.state.currentIndex};let r=1/0,o=i,l=this.state.currentIndex;for(let c=0;c<e.length;c++){const d=e[c],h=t[c]?.getBoundingClientRect().width??0,u=this.calculateItemTransform(d,a,h,n);if(u>=s.right-Od&&u<=s.left){const e=Math.abs(i-u);e<r&&(r=e,o=u,l=c)}}return this.config.enableActiveItemUpdate&&l!==this.state.currentIndex&&(this.state.currentIndex=l),{closestPosition:o,closestIndex:l}}calculateItemTransform(e,t,s,i){return s>i?-(e-t)+(i+40):-(e-t)}animateToPosition(e){if(!this.navListElement)return;const t=this.getCurrentTransform(),s=e-t;if(Math.abs(s)<1)return;if(globalThis.matchMedia("(prefers-reduced-motion: reduce)").matches)return this.navListElement.style.transform=`translateX(${e}px)`,void this.buttonManager.forceUpdateButtonStates();const i=performance.now(),n=this.config.snapDuration,a=e=>{const r=e-i,o=Math.min(r/n,1),l=t+s*(o*(2-o));this.navListElement.style.transform=`translateX(${l}px)`,o<1?this.animationId=requestAnimationFrame(a):(this.animationId=null,this.buttonManager.forceUpdateButtonStates())};this.animationId=requestAnimationFrame(a)}getCurrentTransform(){if(!this.navListElement)return 0;const e=globalThis.getComputedStyle(this.navListElement),{transform:t}=e;if("none"===t)return 0;const s=/translateX\(([^)]+)px\)/.exec(t);if(s)return Number.parseFloat(s[1]);return new DOMMatrix(t).m41}updateButtonStates(){this.config.enableActiveItemUpdate&&this.domManager.updateActiveItem()}cancelAnimation(){null!==this.animationId&&(cancelAnimationFrame(this.animationId),this.animationId=null)}preventContextMenu(e){this.dragState.isDragging&&e.preventDefault()}destroy(){this.cancelAnimation(),null!==this.rafId&&(cancelAnimationFrame(this.rafId),this.rafId=null),document.body.classList.remove(Td),this.state.isDragging=!1,this.buttonManager.disableTransitionBasedUpdates(),this.navListContainer&&(this.navListContainer.removeEventListener(Wd,this.boundHandleStart),this.navListContainer.removeEventListener(Vd,this.boundHandleMove),this.navListContainer.removeEventListener(Gd,this.boundHandleEnd),this.navListContainer.removeEventListener(Kd,this.boundHandleEnd),this.navListContainer.removeEventListener(Yd,this.boundPreventContextMenu),this.navListContainer.style.touchAction=""),this.navListElement&&(this.navListElement.style.transition=""),this.cachedBoundaries=null,this.navListElement=null,this.navList
3Container=null}isDragging(){return this.dragState.isDragging}allowsClick(){return this.dragState.allowClick&&!this.dragState.isDragging}refresh(){this.cachedBoundaries=null,this.getBoundaries(!0)}}class mh{el;state;stickyNav;movedStickyNav;WIDTH_COMPARISON_THRESHOLD=50;constructor(e,t){this.el=e,this.state=t,this.stickyNav=null,this.movedStickyNav=null}reorganizeLayout(){const e=this.validateAndSetup();if(!e)return;const t=this.el.closest(Kc);if(!(t instanceof HTMLElement))return;if(!this.shouldReorganize(t))return;const{containerRoot:s,container:i}=this.getContainerStructure();if(!s||!i)return;const n=t.parentElement,a=this.shouldMoveToParentLevel(n);this.applyLayoutChanges(e,a,n,t,s)}validateAndSetup(){if(this.el.classList.contains(fd))return null;const e=this.el.closest(Gc);if(!(e instanceof HTMLElement))return null;const t=e?.classList.contains(ud),s=this.el.classList.contains(dd);return!t||s?null:(this.stickyNav=this.el,e)}shouldReorganize(e){const t=this.findReferenceElement();if(!t)return!1;const s=this.getElementWidthWithPadding(t),i=this.getElementWidthWithPadding(e);return Math.abs(i-s)>=this.WIDTH_COMPARISON_THRESHOLD}getContainerStructure(){const e=this.stickyNav?.closest(rd)??null;return{containerRoot:e,container:e?.parentElement??null}}shouldMoveToParentLevel(e){if(!e)return!1;const t=this.findReferenceElement();if(!t)return!1;const s=this.getElementWidthWithPadding(t),i=this.getElementWidthWithPadding(e);return Math.abs(i-s)<this.WIDTH_COMPARISON_THRESHOLD}applyLayoutChanges(e,t,s,i,n){this.stickyNav?.classList.add(fd),this.addVariantClass(e);const a=this.countContainerAncestors(e)<3,r=this.stickyNav?.querySelector(id);if(r&&a&&this.wrapListWrapper(r),t&&s)s.insertBefore(this.stickyNav,i);else{const e=n.parentElement;e?.insertBefore(this.stickyNav,n)}this.movedStickyNav=this.stickyNav??null}addVariantClass(e){e?.classList.contains(ud)?this.stickyNav?.classList.add(ud):e?.classList.contains(md)&&this.stickyNav?.classList.add(md)}wrapListWrapper(e){const t=e.parentElement?.classList.contains(Sd);if(t)return;const s=e.parentNode,i=document.createElement("div");i.classList.add("aem-GridColumn","aem-GridColumn--default--12");const n=document.createElement("div");n.classList.add(Sd),n.appendChild(e),i.appendChild(n),s?.insertBefore(i,s.firstChild)}findReferenceElement(){const e=document.querySelector(".root.responsivegrid");if(!e)return null;const t=e.querySelector(":scope > .aem-Grid");if(!(t instanceof HTMLElement))return null;const s=t.querySelector(":scope > .container");if(!(s instanceof HTMLElement))return null;const i=s.querySelector(".container-wrapper-inner");if(!(i instanceof HTMLElement))return null;const n=i.querySelector(".cmp-container");return n instanceof HTMLElement?n:null}getElementSelector(e){if(e.id)return`#${e.id}`;if(e.className&&"string"==typeof e.className){const t=e.className.split(" ").filter(e=>e.trim()).slice(0,3).map(e=>`.${e}`).join("");if(t)return`${e.tagName.toLowerCase()}${t}`}return e.tagName.toLowerCase()}getElementWidthWithPadding(e){const t=globalThis.getComputedStyle(e),s=Number.parseFloat(t.borderLeftWidth)||0,i=Number.parseFloat(t.borderRightWidth)||0;return e.offsetWidth-s-i}countContainerAncestors(e){let t=0,s=e?.parentElement;for(;s;)s.classList.contains("container")&&t++,s=s.parentElement;return t}}class ph{el;state;domManager;scrollManager;buttonManager;eventManager;mobileMenuManager;swipeManager;layoutManager;constructor(e){if(!e)throw new Error("Element is required for InPageNavigation");this.el=e,this.state=new ah,this.layoutManager=new mh(e,this.state),this.mobileMenuManager=new hh(e,this.state),this.domManager=new rh(e,this.state,this.mobileMenuManager),this.buttonManager=new lh(this.state,this.domManager),this.scrollManager=new oh(this.state,this.domManager,this.buttonManager,this.el),this.swipeManager=new uh(this.state,this.domManager,this.buttonManager),this.domManager.setButtonManager(this.buttonManager),this.eventManager=new dh(this.state,this.domManager,this.scrollManager,this.buttonManager,this.mobileMenuManager,this.swipeManager)}init(){this.domManager.findElements()&&(this.domManager.findSections(),this.addParentContainerClass(),this.layoutManager.reorganizeLayout(),this.domManager.calculateDimensions(),this.setInitialActiveItem(),this.eventManager.addEventListeners(),this.mobileMenuManager.initialize(),this.swipeManager.initialize(),setTimeout(()=>{this.buttonManager.updateButtonStates(),this.handleInitialPagePosition()},yd))}addParentContainerClass(){const e=document.querySelectorAll(Gc);
3e&&e.forEach(e=>{const t=e.closest(rd);if(t){t.classList.add(gd);const e=t?.parentElement?.closest(rd);e&&e.classList.add(pd)}})}handleInitialPagePosition(){const e=ch.getHash();e?this.handleHashBasedPosition(e):this.detectCurrentSectionOnLoad()}handleHashBasedPosition(e){const t=this.domManager.getNavLinks();if(!t?.length)return;const s=Array.from(t).findIndex(t=>t.dataset.hash===e);if(-1===s){if(this.domManager.setActiveSubheading(e))this.scrollManager.scrollToSection(e);else{const t=this.el.closest(Yc)??this.el.closest(Gc);(t?t.querySelector(e):document.querySelector(e))?this.scrollManager.scrollToSection(e):this.detectCurrentSectionOnLoad()}}else this.setActiveItemWithoutScroll(s),this.scrollManager.scrollToSection(e)}detectCurrentSectionOnLoad(){setTimeout(()=>{this.scrollManager.handleScroll(),this.buttonManager.updateButtonStates()},_d)}setInitialActiveItem(){const e=this.domManager.getNavItems();if(!e?.length)return;const t=Array.from(e).findIndex(e=>e.classList.contains(ld));this.state.currentIndex=-1===t?0:t,this.domManager.updateActiveItem(),this.mobileMenuManager.updateMobileActiveSection()}setActiveItemWithoutScroll(e){this.state.isValidIndex(e)&&(this.state.currentIndex=e,this.domManager.updateActiveItem(),this.domManager.scrollToItemIfNeeded(e),this.buttonManager.updateButtonStates())}static initialize(){const e=document.querySelectorAll(Vc);e.length&&e.forEach(e=>{new ph(e).init()})}}"loading"===document.readyState?document.addEventListener(Jd,ph.initialize):ph.initialize();const gh={selector:".cmp-ampersand-box",evenClass:"cmp-ampersand-box--even",oddClass:"cmp-ampersand-box--odd",lastClass:"cmp-ampersand-box--last"};class fh{container;ampersandBoxes;config;isInitialized=!1;constructor(e={},t={}){if(e.element&&!(e.element instanceof HTMLElement))throw new Error("Element must be a valid HTMLElement");this.container=e.element??null,this.ampersandBoxes=e.boxes??null,this.config={...gh,...t}}init(){if(!this.isInitialized)try{this.setupAmpersandBoxNumbers(),this.isInitialized=!0}catch(e){console.error("Failed to initialize AmpersandBox:",e)}}setupAmpersandBoxNumbers(){let e=[];this.container?e=this.container.matches(this.config.selector)?[this.container]:this.container.querySelectorAll(this.config.selector):this.ampersandBoxes&&(e=this.ampersandBoxes);const t=e.length;0!==t&&e.forEach((e,s)=>{if(!(e instanceof HTMLElement))return;(t-s)%2==0?e.classList.add(this.config.evenClass):e.classList.add(this.config.oddClass),s===t-1&&e.classList.add(this.config.lastClass)})}static initialize(){const e=[],t=document.querySelectorAll(gh.selector);if(!t.length)return e;const s=new Map;return t.forEach(e=>{const t=e.closest(".tabs--issue");if(t instanceof HTMLElement)s.has(t)||s.set(t,[]),s.get(t)?.push(e);else{const t=e.closest(".slider");t instanceof HTMLElement?(s.has(t)||s.set(t,[]),s.get(t)?.push(e)):s.set(e,[e])}}),s.forEach((t,s)=>{const i=new fh({element:s});i.init(),e.push(i)}),e}}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",fh.initialize):fh.initialize();const Eh=".embed",bh=".embed__iframe--tap-xf",Th="infogram-script-embed",Sh="rel",vh="noopener noreferrer",Lh="load",yh="DOMContentLoaded",_h="complete",Ah="loading",Ch=100,wh=100,Nh="Element is required";class Ih{element;resizeObserver=null;cleanupObserver=null;resizeTimeout=null;constructor(e){if(this.element=e,!e)throw new Error(Nh);this.addSecurityAttributes(),this.initializeTapXFIframes()}addSecurityAttributes(){if(!this.element.classList.contains(Th))return;this.element.querySelectorAll("a").forEach(e=>{e.setAttribute(Sh,vh)})}initializeTapXFIframes(){const e=this.element.querySelector(bh);e&&this.handleTapXFIframeResize(e)}handleTapXFIframeResize(e){const t=()=>this.updateIframeHeight(e),s=()=>this.debouncedResize(t),i=()=>this.setupResizeObserver(e,s),n=()=>{t(),i()};e.contentDocument?.readyState===_h?n():e.addEventListener(Lh,()=>{setTimeout(n,wh)},{once:!0})}updateIframeHeight(e){try{const t=e.contentWindow?.document;if(!t?.body)return;const{scrollHeight:s}=t.body;e.style.height=`${s}px`}catch{}}debouncedResize(e){this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(e,Ch)}setupResizeObserver(e,t){if(e.contentWindow&&"ResizeObserver"in globalThis)try{const s=e.contentWindow.document;s?.body&&(this.resizeObserver=new ResizeObserver(t),this.resizeObserver.observe(s.body),this.setupCleanupObserver(e))}catch{}}setupCleanupObserver(e){this.cleanupObserver=new MutationObserver(()=>{document.contains(e)||this.cleanup()}),this.cleanupObserver.observe(document.body,{childList:!0,subtree:!0})}destroy(){this.cleanup()}cleanup(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),this.cleanupObserver&&(this.cleanupObserver.disconnect(),this.cleanupObserver=null),this.resizeTimeout&&(clearTimeout(this.resizeTimeout),this.resizeTimeout=null)}static initialize(){const e=document.querySelectorAll(Eh);return Array.from(e).map(e=>new Ih(e))}}document.readyState===Ah?document.addEventListener(yh,Ih.initialize):Ih.initialize();const Rh={title:"",description:"",stepOne:"",stepTwo:"",stepThree:"",stepFour:"",proceedButton:"",additionalDescription:"",shareClassInfo:"",singleAmou
3ntLabel:"",singleAmountPlaceholder:"",monthlyAmountLabel:"",monthlyAmountPlaceholder:"",andOr:"",fundsLabel:"",fundsPlaceholder:"",fundsFilterPlaceholder:"",shareClassLabel:"",shareClassPlaceholder:"",calculateButton:"",formErrorLabel:"",columnOneEstimate:"",columnOneActual:"",columnOneEstimateInfo:"",columnOneActualInfo:"",columnTwo:"",columnThree:"",columnThreeEstimateInfo:"",columnThreeActualInfo:"",ongoingCharges:"",ongoingChargesInfo:"",annualCharge:"",annualChargeInfo:"",shareClassHedging:"",shareClassHedgingInfo:"",extraordinaryExpenses:"",extraordinaryExpensesInfo:"",ongoingChargesReitAndItcycd:"",ongoingUnderlyingCharges:"",ongoingUnderlyingChargesInfo:"",underlyingChargesClosedEndedFund:"",underlyingChargesClosedEndedFundInfo:"",oversightOtherIndepServices:"",oversightOtherIndepServicesInfo:"",propertyExpenses:"",propertyExpensesInfo:"",directPortfolio:"",directPortfolioInfo:"",totalCharges:"",totalChargesInfo:"",resultsDescription:"",footNotesOne:"",footNotesTwo:"",footNotesThree:"",dtmId:""},Dh={title:"Test title",description:"<p>Test description</p>",stepOne:"Test step one",stepTwo:"Test step two",stepThree:"Test step three",stepFour:"Test step four",proceedButton:"Test proceed button",additionalDescription:"<p>Test additional description</p>",shareClassInfo:"<p>Test share class info content</p>",singleAmountLabel:"Test single amount label",singleAmountPlaceholder:"Test single amount placeholder",monthlyAmountLabel:"Test monthly amount label",monthlyAmountPlaceholder:"Test monthly amount placeholder",andOr:"Test and/or",fundsLabel:"Test funds label",fundsPlaceholder:"Test funds placeholder",fundsFilterPlaceholder:"Test funds filter placeholder",shareClassLabel:"Test share class label",shareClassPlaceholder:"Test share class placeholder",calculateButton:"Test calculate button",formErrorLabel:"Test form error",columnOneEstimate:"Test column one estimate",columnOneActual:"Test column one actual",columnOneEstimateInfo:"Test column one estimate info content",columnOneActualInfo:"Test column one actual info content",columnTwo:"Test column two",columnThree:"Test column three",columnThreeEstimateInfo:"Test column three estimate info content",columnThreeActualInfo:"Test column three actual info content",ongoingCharges:"Test Ongoing charges",ongoingChargesInfo:"Test ongoing charges info",annualCharge:"Test Annual charge",annualChargeInfo:"Test annual charge info",shareClassHedging:"Test Share class hedging",shareClassHedgingInfo:"Test Share class hedging info content",extraordinaryExpenses:"Test Extraordinary expenses",extraordinaryExpensesInfo:"Test Extraordinary expenses info content",ongoingChargesReitAndItcycd:"Test Extraordinary expenses info content charges",ongoingUnderlyingCharges:"Test Ongoing charges from underlying funds",ongoingUnderlyingChargesInfo:"Test Ongoing charges from underlying funds info content",underlyingChargesClosedEndedFund:"Test Ongoing charges from underlying funds info content ended",underlyingChargesClosedEndedFundInfo:"Test Ongoing charges from underlying funds info contents info",oversightOtherIndepServices:"Test Ongoing charges from underlying funds info indep service",oversightOtherIndepServicesInfo:"Test Ongoing charges from underlying funds info indep service info",propertyExpenses:"Test Property Expenses",propertyExpensesInfo:"Test Property Expenses info content",directPortfolio:"Test Direct portfolio transaction costs",directPortfolioInfo:"Test Direct portfolio transaction info content",totalCharges:"Test Total charges",totalChargesInfo:"Test Total charges info content",resultsDescription:"<p>Test results description</p>",footNotesOne:"Test foot notes one",footNotesTwo:"Test foot notes two",footNotesThree:"Test foot notes three",dtmId:"Test dtmId"},Mh=(0,ti.createContext)(Dh),Oh=(0,ti.createContext)({activeToggleSection:"",setActiveToggleSection:null,clickElement:null,setClickElement:null,tooltipContainerRef:null,setTooltipContainerRef:null,showTooltip:()=>{},hideTooltip:()=>{}}),xh=({children:e})=>{const[t,s]=(0,ti.useState)(""),[i,n]=(0,ti.useState)(null),[a,r]=(0,ti.useState)(null),o=(0,ti.useCallback)(e=>{s(e)},[]),l=(0,ti.useCallback)(()=>{s("")},[]),c=(0,ti.useMemo)(()=>({activeToggleSection:t,setActiveToggleSection:s,showTooltip:o,hideTooltip:l,clickElement:i,setClickElement:n,tooltipContainerRef:a,setTooltipContainerRef:r}),[t,o,l,i,a]);return ti.createElement(Oh.Provider,{value:c},e)},Ph=(e,t)=>{const s={left:Number.NaN,top:Number.NaN,right:Number.NaN,bottom:Number.NaN,arrowLeft:Number.NaN,arrowRight:Number.NaN,maxHeight:Number.NaN,element:null};if(!e)return s;const i=e?e.getBoundingClientRect():{top:0,left:0,width:0,height:0,right:0},n=i.top+i.height+20,a=Math.max(document.documentElement.scrollHeight,document.body?.scrollHeight||0),r=window.scrollY+i.top+i.height,o=Math.max(0,a-r-50),l=[".fcc-form",".fcc-results-table",".fcc-steps__steps"].map(t=>e?.closest(t)).find(Boolean),c=document.body.offsetWidth||window.innerWidth;if(l&&t){const s=l.getBoundingClientRect(),a=t.getBoundingClientRect();let r,d,h,u;return i.left+i.width/2<s.left+s.width/2?(r=s.left,d=Number.NaN,u="auto",a.width+s.left<i.left&&(r=i.left-a.width+80),h=i.left-r+i.width/2-8):(d=c-s.right,r=Number.NaN,h="auto",u=c-i.right-d+i.width/2-8),{left:r,top:n,right:d,bottom:Number.NaN,arrowLeft:h,arrowRight:u,maxHeight:o,element:e}}
3return{left:Number.NaN,top:n,right:Number.NaN,bottom:Number.NaN,arrowLeft:Number.NaN,arrowRight:Number.NaN,maxHeight:o,element:e}},kh=({name:e,children:t,open:s,className:i,onClose:n,useGlobalPosition:a=!0})=>{const{activeToggleSection:r,hideTooltip:o,clickElement:l,setTooltipContainerRef:c}=(0,ti.useContext)(Oh),d=(0,ti.useRef)(null),h=(0,ti.useRef)(null),[u,m]=(0,ti.useState)(!1),[p,g]=(0,ti.useState)(null),f=r===e||Boolean(s),E=a?o:n;return(0,ti.useEffect)(()=>{f?(c?.(d),setTimeout(()=>m(!0),10)):(m(!1),c?.(null))},[f,c]),(0,ti.useEffect)(()=>{const e=e=>{"Escape"===e.key&&f&&E&&E()},t=e=>{const t=e.target?.closest(".fcc-info-button"),s=d?.current?.contains(e.target);!t&&!s&&f&&E&&E()},s=()=>{};let i=window.innerWidth;const n=()=>{f&&E&&window.innerWidth!==i&&E()};return f&&(i=window.innerWidth,document.addEventListener("keydown",e),document.addEventListener("mousedown",t),window.addEventListener("scroll",s,!0),window.addEventListener("resize",n)),()=>{document.removeEventListener("keydown",e),document.removeEventListener("mousedown",t),window.removeEventListener("scroll",s,!0),window.removeEventListener("resize",n)}},[f,E]),(0,ti.useEffect)(()=>{if(u&&r===e){const e=Ph(l,d.current);g(e)}const t=()=>{if(l&&u&&r===e){const e=Ph(l,d.current);g(e)}};return u||g(null),window.addEventListener("scroll",t),()=>window.removeEventListener("scroll",t)},[u,l,r]),f?ti.createElement(ti.Fragment,null,ti.createElement("button",{className:"fcc-toggle-section__overlay "+(u?"fcc-toggle-section__overlay--visible":""),onClick:E,onKeyDown:e=>"Enter"===e.key&&E?.(),"aria-label":"Close overlay"}),ti.createElement("div",{className:`fcc-toggle-section ${u?"fcc-toggle-section--visible":""} ${i||""}`,ref:d,style:{top:`${p?.top}px`,left:`${p?.left}px`,right:`${p?.right}px`,bottom:`${p?.bottom}px`}},ti.createElement("div",{className:"fcc-toggle-section__content-wrapper ps-relative"},ti.createElement("button",{className:"fcc-toggle-section__content-wrapper-close",onClick:E},ti.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},ti.createElement("path",{d:"M18 7.05L16.95 6L12 10.95L7.05 6L6 7.05L10.95 12L6 16.95L7.05 18L12 13.05L16.95 18L18 16.95L13.05 12L18 7.05Z",fill:"#fff"})),ti.createElement("span",{className:"sr-only"},"Close")),ti.createElement("div",{className:"fcc-toggle-section__content-wrapper-arrow",style:{left:"number"==typeof p?.arrowLeft?`${p.arrowLeft}px`:p?.arrowLeft,right:"number"==typeof p?.arrowRight?`${p.arrowRight}px`:p?.arrowRight}},ti.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"11",viewBox:"0 0 16 11",fill:"none"},ti.createElement("path",{d:"M7.59741 0L15.1948 10.7373H0L7.59741 0Z",fill:"#EDF3F4"}))),ti.createElement("div",{className:"fcc-toggle-section__content-wrapper-outer"},ti.createElement("div",{className:"fcc-toggle-section__content",style:{maxHeight:`${p?.maxHeight}px`},ref:h,..."string"==typeof t&&{dangerouslySetInnerHTML:{__html:t}},..."string"!=typeof t&&{children:t}}))))):null},Hh=({name:e,light:t,dtmData:s,onCustomClick:i})=>{const{toggle:n,activeToggleSection:a,tooltipContainerRef:r}=(()=>{const{showTooltip:e,hideTooltip:t,activeToggleSection:s,setClickElement:i,tooltipContainerRef:n}=(0,ti.useContext)(Oh),a=(0,ti.useRef)(null),r=(0,ti.useRef)(""),o=(0,ti.useCallback)((t,s)=>{const n=t.currentTarget;a.current=n,r.current=s,e(s),i?.(n)},[e,i]),l=(0,ti.useCallback)((e,i)=>{s===i?t():o(e,i)},[s,o,t]),c=(0,ti.useCallback)(e=>s===e,[s]);return{show:o,hide:t,toggle:l,isActive:c,clickElement:a.current,activeToggleSection:s,tooltipContainerRef:n}})(),o=(0,ti.useRef)(null),l=(0,ti.useRef)(!1),c=(0,ti.useRef)(0),d=(0,ti.useRef)(!1);(0,ti.useEffect)(()=>{const e=o.current;if(!e)return;const t=e.closest(".fcc-field");if(!t)return;const s=()=>{const e=!!t.querySelector(".fcc-dropdown--open");d.current&&!e&&(c.current=Date.now()),d.current=e},i=new MutationObserver(s);return i.observe(t,{attributes:!0,subtree:!0,attributeFilter:["class"]}),s(),()=>{i.disconnect()}},[]);const h=()=>{const e=o.current;if(!e)return!1;const t=e.closest(".fcc-field");if(!t)return!1;const s=t.querySelector(".fcc-dropdown--open");if(s){const e=s.querySelector(".fcc-input__input-element");return""===e?.value}return c.current>0&&Date.now()-c.current<300};return(0,ti.useEffect)(()=>{a===e&&o.current&&r?.current&&l.current&&setTimeout(()=>{const e=r.current;if(e){const t=e.getBoundingClientRect(),s=window.innerHeight,i=t.bottom-s;if(i>0){const e=window.scrollY+i+20;window.scrollTo({top:e,behavior:"smooth"})}}l.current=!1},150)},[a,e,r]),ti.createElement("button",{ref:o,className:"fcc-info-button "+(t?"fcc-info-button--light":""),onClick:t=>{if(h())return t.preventDefault(),void t.stopPropagation();l.current=!1,i?i():n(t,e)},onKeyDown:t=>{if("Enter"===t.key||" "===t.key){if(t.preventDefault(),h())return;l.current=!0,i?i():n(t,e)}},type:"button","aria-label":"Show more info","aria-expanded":a===e,"data-dtm-id":"Info-icon","data-dtm-data":s},ti.createElement("span",{className:"fcc-info-button__icon"},ti.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none"},ti.createElement("path",{d:"M8.5 1C7.11553 1 5.76216 1.41054 4.61101 2.17971C3.45987 2.94888 2.56266 4.04213 2.03285 5.32122C1.50303 6.6003 1.36441 8.00776 1.63451 9.36563C1.9046 10.7235 2.57129 11.9708 3.55026 12.9497C4.52922 13.9287 5.7765 14.5954 7.13437 14.8655C8.49224 15.1356 9.8997 14.997 11.1788 14.4672C12.4579 13.9373 13.5511 13.0401 14.3203 11.889C15.0895 10.7378 15.5 9.38447 15.5 8C15.5 6.14348 14.7625 4.36301 13.4497 3.05025C12.137 1.7375 10.3565 1 8.5 1ZM8.5 4C8.64834 4 8.79334 4.04399 8.91668 4.1264C9.04002 4.20881 9.13615 4.32594 9.19291 4.46299C9.24968 4.60003 9.26453 4.75083 9.23559 4.89632C9.20665 5.0418 9.13522 5.17544 9.03033 5.28033C8.92544 5.38522 8.79181 5.45665 8.64632 5.48559C8.50083 5.51453 8.35004 5.499
368 8.21299 5.44291C8.07595 5.38614 7.95881 5.29001 7.8764 5.16668C7.79399 5.04334 7.75 4.89834 7.75 4.75C7.75 4.55109 7.82902 4.36032 7.96967 4.21967C8.11033 4.07902 8.30109 4 8.5 4ZM10.5 12.0625H6.5V10.9375H7.9375V8.0625H7V6.9375H9.0625V10.9375H10.5V12.0625Z",fill:"#2F2F2F"}))),ti.createElement("span",{className:"fcc-info-button__section-arrow "+(a===e?"fcc-info-button__section-arrow--visible":"")}))},Bh=({showShareClassInfo:e})=>{const t=(0,ti.useContext)(Mh);return ti.createElement("div",{className:"fcc-steps"},ti.createElement("div",{className:"fcc-steps__steps"},ti.createElement("div",{className:"fcc-steps__step"},ti.createElement("span",{className:"fcc-steps__number"},"1"),ti.createElement("span",{className:"fcc-steps__description"},t.stepOne)),ti.createElement("div",{className:"fcc-steps__step"},ti.createElement("span",{className:"fcc-steps__number"},"2"),ti.createElement("span",{className:"fcc-steps__description"},t.stepTwo)),ti.createElement("div",{className:"fcc-steps__step"},ti.createElement("span",{className:"fcc-steps__number"},"3"),ti.createElement("span",{className:"fcc-steps__description"},ti.createElement("span",{className:"fcc-steps__description-step-three"},t.stepThree),e&&ti.createElement(Hh,{name:"fcc-steps-share-class",dtmData:"progress steps share class helper text toggle"}))),ti.createElement("div",{className:"fcc-steps__step"},ti.createElement("span",{className:"fcc-steps__number"},"4"),ti.createElement("span",{className:"fcc-steps__description"},t.stepFour))),e&&ti.createElement(kh,{name:"fcc-steps-share-class"},t.shareClassInfo))},Fh=e=>fetch(e).then(e=>{if(e.ok)return e.json();throw new Error(e.statusText)}),qh=({inputPrefix:e,id:t,onChange:s,...i})=>{const[n,a]=(0,ti.useState)(""),[r,o]=(0,ti.useState)(!1);return(0,ti.useEffect)(()=>{const e=n.length>0||r,s=new CustomEvent("inputFloatingLabel",{detail:{id:t,isFloating:e}});document.dispatchEvent(s)},[n,r]),ti.createElement("div",{className:"fcc-input "+(e?"fcc-input--prefix":"")},ti.createElement("div",{className:"fcc-input__content"},ti.createElement("input",{id:t,className:"fcc-input__input-element","aria-labelledby":`${t}-label ${t}-validation-message`,onChange:e=>{a(e.target.value),s?.(e)},value:n,..."number"===i.type&&{onKeyPress:e=>{const t=e.currentTarget.getAttribute("maxlength"),s=e.key;return!(!/\d/.test(s)||t&&e.currentTarget.value.length>=Number.parseInt(t))||(e.preventDefault(),!1)},onPaste:e=>{e.preventDefault()},onBlur:e=>{o(!1);const{value:t}=e.target;t.length>1&&a(t.replace(/^0+/,""))},onFocus:()=>{o(!0)}},...i,placeholder:""}),e?ti.createElement("div",{className:"fcc-input__prefix-element"},e):null))};var $h=s(981);const zh=()=>ti.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"21",height:"20",viewBox:"0 0 21 20",fill:"none"},ti.createElement("path",{d:"M10.5 13.75L4.25 7.5L5.125 6.625L10.5 12L15.875 6.625L16.75 7.5L10.5 13.75Z",fill:"#2F2F2F"})),Uh=({id:e,filterable:t,disabled:s,items:i,onChange:n,selectedValue:a})=>{const[r,o]=(0,ti.useState)(null),[l,c]=(0,ti.useState)(""),[d,h]=(0,ti.useState)(!1),u=(0,ti.useRef)(i),m=()=>{d||(c(""),o(null),h(!0))},p=()=>{h(!1),r||n("")},g=e=>{e.preventDefault()};return(0,ti.useEffect)(()=>{const e=i.find(e=>e.value===a);o(e||null)},[i,a]),(0,ti.useEffect)(()=>{const t=l.length>0||d,s=new CustomEvent("inputFloatingLabel",{detail:{id:e,isFloating:t}}),i=new CustomEvent("inputHighIndex",{detail:{highIndex:d,id:e}});document.dispatchEvent(s),document.dispatchEvent(i)},[l,d]),ti.createElement($h.Ay,{onSelect:e=>{o(e??null),n(e?e.value:""),h(!1)},itemToString:e=>e?e.label:"",isOpen:d,onOuterClick:p,inputValue:l,onInputValueChange:e=>{c(e)},selectedItem:r},({getInputProps:n,getMenuProps:a,getItemProps:r,isOpen:o,selectedItem:l,inputValue:c,highlightedIndex:d})=>ti.createElement("div",{className:"fcc-dropdown fcc-dropdown--suffix "+(o?"fcc-dropdown--open":"")},ti.createElement("div",{className:"fcc-dropdown__content"},ti.createElement("input",{...n({id:e,className:"fcc-input__input-element",type:"text",placeholder:"",onFocus:m,onClick:m,onBlur:p,onKeyDown:e=>{e.key!==Ui&&m()},readOnly:!t,disabled:s,"aria-labelledby":`${e}-label ${e}-validation-message`})}),ti.createElement("div",{className:"fcc-dropdown__suffix-element"},ti.createElement(zh,null))),o&&ti.createElement("div",{className:"fcc-dropdown__list-wrapper"},ti.createElement("ul",{...a({className:"fcc-dropdown__list",tabIndex:-1,onMouseDown:g,unselectable:"on"})},(e=>{let t=i;if(e){const s=i.filter(t=>t.label.toLowerCase().includes(e.toLowerCase())).map(({label:t,value:s})=>({label:t,value:s,matchedLabel:t.replace(new RegExp(`(${e})`,"i"),'<span class="fcc-dropdown__item-label-match">$1</span>')}));s.length>0&&(u.current=s),t=u.current}return t})(c).map((e,t)=>ti.createElement("li",{key:e.value,...r({item:e,index:t,className:`fcc-dropdown__list-item\n                            ${d===t?"fcc-dropdown__list-item--highlighted":""}\n                            ${l===e?"fcc-dropdown__list-item--selected":""}`})},ti.createElement("span",{dangerouslySetInnerHTML:{__html:e.matchedLabel??e.label}})))))))},Wh=({id:e,label:t,extraLabel:s,children:i,className:n})=>{const[a,r]=(0,ti.useState)(!1),[o,l]=(0,ti.useState)(!1);return(0,ti.useEffect)(()=>{const t=t=>{const{isFloating:s,id:i}=t.detail;i===e&&r(s)};return document.addEventListener("inputFloatingLabel",t),()=>{document.removeEventListener("inputFloatingLabel",t)}},[a]),(0,ti.useEffect)(()=>{const t=t=>{const{highIndex:s,id:i}=t.detail;i===e&&l(s)};return document.addEventListener("inputHighIndex",t),()=>{document.removeEventListener("inputHighIndex",t)}},[o]),ti.createElement("div",{className:`fcc-field ${o?"fcc-field--high-index":""} ${n??""}`},ti.createElement("div",{className:"fcc-field__label-wrapper "+(a?"fcc-field__label-wrapper--floating":"")},t&&ti.createElement("label",{id:e&&`${e}-label`,className:"fcc-field__label",htmlFor:e},t),s&&ti.createElement("div",{className:"fcc-field__extra-label"},s)),i)},Vh=({children:e})=>ti.createElement("span",{className:"fcc-info-button-wrapper"},e),Gh={page:{pageInfo:{onsiteSearchTerm:"",onsiteSearchResults:0,onsiteSearchType:"",onsiteSearchFilters:""}}},Kh=e=>{globalThis.digitalData=globalThis.digitalData??Gh,globalThis.digitalData.page.pageInfo={...globalThis.digitalData.page.pageInfo,...e},globalThis._satellite?globalThis._satellite.track("fund-calc"):console.warn({...globalThis.digitalData?.page.pageInfo})},Yh=({dataUri:e,updateResults:t})=>{const s=(0,ti.useContext)(Mh),[i,n]=(0,ti.useState)({singleAmou
3nt:void 0,monthlyAmount:void 0,fund:void 0,shareClass:void 0}),[a,r]=(0,ti.useState)(!1),[o,l]=(0,ti.useState)(!1),[c,d]=(0,ti.useState)(void 0),[h,u]=(0,ti.useState)(void 0),[m,p]=(0,ti.useState)([]),[g,f]=(0,ti.useState)([]),[E,b]=(0,ti.useState)(void 0),[T,S]=(0,ti.useState)("");let v=!1;(void 0!==i.singleAmount&&i.singleAmount>0||void 0!==i.monthlyAmount&&i.monthlyAmount>0)&&i.fund&&i.shareClass&&(v=!0);const L=e=>{S(`An error has occured when fetching calculator data - ${e}`)},y=()=>{S("")};return(0,ti.useEffect)(()=>{Fh(`${e}.v1.funds.json`).then(e=>{if(!(e.funds.length>0))throw new Error("Empty funds list.");{const t=e.funds.map(e=>({label:e.fund.replace("M&G ",""),value:e.mnemonic})).sort((e,t)=>e.label.localeCompare(t.label));p(t)}}).catch(e=>{L(e)})},[e]),(0,ti.useEffect)(()=>{a&&h&&c&&t(h,a,c)},[a,h,c]),ti.createElement("div",{className:"fcc-calculator-container"},ti.createElement("form",{className:"fcc-form"},ti.createElement("div",{className:"fcc-form-row fcc-form-row--first"},ti.createElement("div",{className:"fcc-form-columns"},ti.createElement(Wh,{id:"single-amount",label:s.singleAmountLabel},ti.createElement(qh,{id:"single-amount",type:"number",maxLength:8,min:0,max:99999999,inputPrefix:"£",autoComplete:"off",placeholder:s.singleAmountPlaceholder,onChange:e=>{const t=Number.parseInt(e.target.value);n({...i,singleAmount:Number.isNaN(t)?void 0:t})}}))),ti.createElement("div",{className:"fcc-or-and"},ti.createElement("span",null,s.andOr)),ti.createElement("div",{className:"fcc-form-columns"},ti.createElement(Wh,{id:"monthly-amount",label:s.monthlyAmountLabel},ti.createElement(qh,{id:"monthly-amount",type:"number",maxLength:5,min:0,max:99999999,inputPrefix:"£",autoComplete:"off",placeholder:s.monthlyAmountPlaceholder,onChange:e=>{const t=Number.parseInt(e.target.value);n({...i,monthlyAmount:Number.isNaN(t)?void 0:t})}})))),ti.createElement("div",{className:"fcc-form-row"},ti.createElement("div",{className:"fcc-form-columns"},ti.createElement(Wh,{id:"funds",className:"fcc-dropdown-field",label:s.fundsLabel},ti.createElement(Uh,{id:"funds",placeholder:s.fundsPlaceholder,filterPlaceholder:s.fundsFilterPlaceholder,items:m,onChange:t=>{y(),n({...i,fund:t,shareClass:void 0}),t?Fh(`${e}.v1.fund.${t.toLowerCase()}.json`).then(e=>{if(e?.isins){const t=e.isins.map(e=>({label:e.fullClassName,value:e.isin}));f(t),b(e)}else L("No data found.")}).catch(e=>{L(e)}):f([])},disabled:0===m.length,filterable:!0}))),ti.createElement("div",{className:"fcc-form-arrow"},ti.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"33",height:"32",viewBox:"0 0 33 32",fill:"none"},ti.createElement("path",{d:"M18.5 6L17.07 7.393L24.65 15H4.5V17H24.65L17.07 24.573L18.5 26L28.5 16L18.5 6Z"}))),ti.createElement("div",{className:"fcc-form-columns fcc-form-columns--share-class"},ti.createElement(Wh,{id:"share-class",className:"fcc-dropdown-field",label:ti.createElement("span",null,s.shareClassLabel),extraLabel:ti.createElement(Vh,null,ti.createElement(Hh,{name:"share-class-info",dtmData:"form share class helper text toggle"}),ti.createElement(kh,{name:"share-class-info",useGlobalPosition:!0},s.shareClassInfo))},ti.createElement(Uh,{id:"share-class",placeholder:s.shareClassPlaceholder,items:g,onChange:e=>{y(),n({...i,shareClass:e})},disabled:!i.fund&&0===g.length,selectedValue:i.shareClass})))),ti.createElement("div",{className:"fcc-form-button-container"},ti.createElement("button",{className:"fcc-button cmp-button btn btn-teal "+(!v||o?"btn-disable":""),type:"button",onClick:()=>{y();const e=i.singleAmount||0,t=i.monthlyAmount||0,s=12*t;let n;if(l(!0),E?.isins){const a=E.isins.find(e=>e.isin===i.shareClass);if(!a)return;u(a),d(e+s),r(!0),e>0&&t>0?n="BOTH":e>0?n="SINGLE_AMOUNT":t>0&&(n="MONTHLY_AMOUNT"),Kh({amountType:n,fundSelected:E.fundInfo.fund,shareClass:a.fullClassName})}l(!1)},disabled:!v||o,"data-dtm-id":s.dtmId?s.dtmId:"button","data-dtm-data":"Fund charge calc - calculate"},s.calculateButton)),T&&ti.createElement("div",{className:"fcc-form__error-message"},s.formErrorLabel)))},jh=e=>new Intl.NumberFormat("en-GB",{minimumFractionDigits:2,maximumFractionDigits:2}).format(e),Xh=(e,t)=>`£${jh(e*t/100)}`,Qh=e=>`${jh(e)}%`,Zh=e=>{const t=e.split("."),s=2e3+Number.parseInt(t[2]),i=Number.parseInt(t[1])-1,n=Number.parseInt(t[0]),a=new Date(s,i,n).toLocaleDateString("en-GB",{year:"numeric",month:"long",day:"numeric"});return"Invalid Date"===a?"":a},Jh=({data:e,totalAmount:t})=>{const s=(0,ti.useContext)(Mh),[i,n]=(0,ti.useState)(!1),a=(0,ti.useRef)(null);let r=!1,o=!1,l=!0,c=!1,d=!1;"ESTIMATE"===e.estimate?.toUpperCase()&&(r=!0,l=!1,"NOTAVAILABLE"===e.directPortfolio?.toUpperCase()&&(c=!0,d=!0)),"NOTAVAILABLE"===e.estimate?.toUpperCase()&&(o=!0);const h=(0,ti.useCallback)(()=>{const e=a.current;if(!e)return;const{scrollLeft:t,scrollWidth:s,clientWidth:i}=e,n=t>0,r=t+i<s-1;e.classList.toggle("fcc-results-table__wrapper--scrollable-left",n),e.classList.toggle("fcc-results-table__wrapper--scrollable-right",r)},[]);return(0,ti.useEffect)(()=>{const e=a.current;if(e)return h(),e.addEventListener("scroll",h),window.addEventListener("resize",h),()=>{e.removeEventListener("scroll",h),window.removeEventListener("resize",h)}}
3,[h]),(0,ti.useEffect)(()=>{h()},[i,h]),ti.createElement("div",{className:"fcc-results-table","data-total-amount":t},ti.createElement("div",{ref:a,className:"fcc-results-table__wrapper"},ti.createElement("table",{className:"fcc-results-table__table"},ti.createElement("thead",{className:"fcc-results-table__header"},ti.createElement("tr",null,ti.createElement("th",{className:"fcc-results-table__header-cell fcc-results-table__header-cell--description"},ti.createElement("div",{className:"fcc-results-table__header-content"},l&&ti.createElement("span",{className:"fcc-results-table__title-actual"},s.columnOneActual," ",Zh(e.date)),!l&&ti.createElement("span",{className:"fcc-results-table__title-estimate"},s.columnOneEstimate),ti.createElement(Vh,null,ti.createElement(Hh,{name:"results-charges-date",light:!0,dtmData:"Fund charge calc - header title"}),ti.createElement(kh,{name:"results-charges-date"},l&&ti.createElement("p",{className:"fcc-results-table__title-actual"},s.columnOneActualInfo),!l&&ti.createElement("p",{className:"fcc-results-table__title-estimate"},s.columnOneEstimateInfo))))),ti.createElement("th",{className:"fcc-results-table__header-cell fcc-results-table__header-cell--currency"},s.columnTwo),ti.createElement("th",{className:"fcc-results-table__header-cell fcc-results-table__header-cell--percentage"},ti.createElement("div",{className:"fcc-results-table__header-content"},s.columnThree,ti.createElement(Vh,null,ti.createElement(Hh,{name:"results-percentage-info",light:!0,dtmData:"Fund charge calc - header percentage"}),ti.createElement(kh,{name:"results-percentage-info"},l&&ti.createElement("p",{className:"fcc-results-table__title-actual"},s.columnThreeActualInfo),!l&&ti.createElement("p",{className:"fcc-results-table__title-estimate"},s.columnThreeEstimateInfo))))))),ti.createElement("tbody",{className:"fcc-results-table__body"},ti.createElement("tr",{className:"fcc-results-table__row fcc-results-table__row--expandable","data-calculator":"totalOngoingCharges"},ti.createElement("td",{className:"fcc-results-table__cell fcc-results-table__cell--description"},ti.createElement("div",{className:"fcc-results-table__cell-content"},ti.createElement("button",{className:"fcc-results-table__expand-button "+(i?"fcc-results-table__expand-button--expanded":""),onClick:()=>{n(!i)},type:"button","aria-label":"Expand ongoing charges","data-dtm-id":"accordions","data-dtm-data":"Fund charge calc - ongoing charges expand"},ti.createElement("span",{className:"fcc-results-table__expand-icon"},ti.createElement(zh,null))),ti.createElement("div",{className:"fcc-results-table__cell-text"},ti.createElement("span",{className:"fcc-results-table__text-bold"},s.ongoingCharges,r&&ti.createElement("span",{className:"fcc-results-table__asterisk"}," *")),ti.createElement(Hh,{name:"results-ongoing-charges",dtmData:"Fund charge calc - ongoing charges"}))),ti.createElement(kh,{name:"results-ongoing-charges"},ti.createElement("p",null,s.ongoingChargesInfo))),ti.createElement("td",{className:"fcc-results-table__cell fcc-results-table__cell--currency"},ti.createElement("span",{className:"fcc-results-table__value"},Xh(t,e.totalOngoingCharges)),o&&ti.createElement("span",{className:"fcc-results-table__double-asterisk"},"**")),ti.createElement("td",{className:"fcc-results-table__cell fcc-results-table__cell--percentage"},o&&ti.createElement("span",{className:"fcc-results-table__double-asterisk"},"**"),ti.createElement("span",{className:"fcc-results-table__value"},Qh(e.totalOngoingCharges)))),i&&ti.createElement(ti.Fragment,null,ti.createElement("tr",{className:"fcc-results-table__row fcc-results-table__row--subcategory","data-calculator":"investmentManagement"},ti.createElement("td",{className:"fcc-results-table__cell fcc-results-table__cell--description fcc-results-table__cell--subcategory"},ti.createElement("div",{className:"fcc-results-table__cell-content"},ti.createElement("div",{className:"fcc-results-table__cell-text"},s.annualCharge,ti.createElement("sup",{className:"superscript"},"†"),ti.createElement(Vh,null,ti.createElement(Hh,{name:"results-investment-management",dtmData:"Fund charge calc - ongoing charges: annual charge"}),ti.createElement(kh,{name:"results-investment-management"},ti.createElement("p",null,s.annualChargeInfo)))))),ti.createElement("td",{className:"fcc-results-table__cell fcc-results-table__cell--currency"},ti.createElement("span",{className:"fcc-results-table__value"},Xh(t,e.investmentManagement)),o&&ti.createElement("span",{className:"fcc-results-table__double-asterisk"},"**")),ti.createElement("td",{className:"fcc-results-table__cell fcc-results-table__cell--percentage"},o&&ti.createElement("span",{className:"fcc-results-table__double-asterisk"},"**"),ti.createElement("span",{className:"fcc-results-table__value"},Qh(e.investmentManagement)))),!!e.shareClassHedging&&0!==e.shareClassHedging&&ti.createElement("tr",{className:"fcc-results-table__row fcc-results-table__row--subcategory","data-calculator":"shareClassHedging"},ti.createElement("td",{className:"fcc-results-table__cell fcc-results-table__cell--description fcc-results-table__cell--subcategory"},ti.createElement("div",{className:"fcc-results-table__cell-content"},ti.createElement("div",{className:"fcc-results-table__cell-text"},s.shareClassHedging,ti.createElement("sup",{className:"superscript"},"†"),ti.createElement(Vh,null,ti.createElement(Hh,{name:"results-share-class-hedging",dtmData:"Fund charge calc - ongoing charges: share class hedging"}),ti.createElement(kh,{name:"results-share-class-hedging"},ti.createElement("p",null,s.shareClassHedgingInfo)))))),ti.createElement("td",{className:"fcc-results-table__cell fcc-results-table__cell--currency"},ti.createElement("span",{className:"fcc-results-table__value"},Xh(t,e.shareClassHedging)),o&&ti.createElement("span",{className:"fcc-results-table__double-asterisk"},"**")),ti.createElement("td",{className:"fcc-results-table__cell fcc-results-table__cell--percentage"},o&&ti.createElement("span",{className:"fcc-results-table__double-asterisk"},"**"),ti.createElement("span",{className:"fcc-results-table__value"},Qh(e.shareClassHedging)))),0!==e.oversight&&ti.createElement("tr",{className:"fcc-results-table__row fcc-results-table__row--subcategory","data-calculator":"oversight"},ti.createElement("td",{className:"fcc-results-table__cell fcc-results-table__cell--description fcc-results-table__cell--subcategory"},ti.createElement("div",{className:"fcc-results-table__cell-content"},ti.createElement("div",{className:"fcc-results-table__cell-text"},s.oversightOtherIndepServices,ti.createElement(Vh,null,ti.createElement(Hh,{name:"results-oversight",dtmData:"Fund charge calc - ongoing charges: oversight expenses"}),ti.createElement(kh,{name:"results-oversight"},ti.createElement("p",null,s.oversightOtherIndepServicesInfo)))))),ti.createElement("td",{className:"fcc-results-table__cell fcc-results-table__cell--currency"},ti.createElement("span",{className:"fcc-results-table__value"},Xh(t,e.oversight)),o&&ti.createElement("span",{className:"fcc-results-table__double-asterisk"},"**")),ti.createElement("td",{className:"fcc-results-table__cell fcc-results-table__cell--percentage"},o&&ti.createElement("span",{className:"fcc-results-table__double-asterisk"},"**"),ti.createElement("span",{className:"fcc-results-table__value"},Qh(e.oversight)))),0!==e.ongoingChargesReitAndItc&&ti.createElement("tr",{className:"fcc-results-table__row fcc-results-table__row--subcategory","data-calculator":"underlyingfunds"},ti.createElement("td",{className:"fcc-results-table__cell fcc-results-table__cell--description fcc-results-table__cell--subcategory"},ti.createElement("div",{className:"fcc-results-table__cell-content"},ti.createElement("div",{className:"fcc-results-table__cell-text"},s.underlyingChargesClosedEndedFund,ti.createElement(Vh,null,ti.createElement(Hh,{name:"results-underlying-funds",dtmData:"Fund charge calc - ongoing charges: oversight expenses"}),ti.createElement(kh,{name:"results-underlying-funds"},ti.createElement("p",null,s.underlyingChargesClosedEndedFundInfo)))))),ti.createElement("td",{className:"fcc-results-table__cell fcc-results-table__cell--currency"},ti.createElement("span",{className:"fcc-results-table__value"},Xh(t,e.ongoingChargesReitAndItc)),o&&ti.createElement("span",{className:"fcc-results-table__double-asterisk"},"**")),ti.createElement("td",{className:"fcc-results-table__cell fcc-results-table__cell--percentage"},o&&ti.createElement("span",{className:"fcc-results-table__double-asterisk"},"**"),ti.createElement("span",{className:"fcc-results-table__value"},Qh(e.ongoingChargesReitAndItc)))),0!==e.extraordinaryCosts&&ti.createElement("tr",{className:"fcc-results-table__row fcc-results-table__row--subcategory","data-calculator":"extraordinaryFunds"},ti.createElement("td",{className:"fcc-results-table__cell fcc-results-table__cell--description fcc-results-table__cell--subcategory"},ti.createElement("div",{className:"fcc-results-table__cell-content"},ti.createElement("div",{className:"fcc-results-table__cell-text"},s.extraordinaryExpenses,ti.createElement(Vh,null,ti.createElement(Hh,{name:"results-extraoridnary-funds",dtmData:"Fund charge calc - ongoing charges: extraordinary expenses"}),ti.createElement(kh,{name:"results-extraoridnary-funds"},ti.createElement("p",null,s.extraordinaryExpensesInfo)))))),ti.createElement("td",{className:"fcc-results-table__cell fcc-results-table__cell--currency"},ti.createElement("span",{className:"fcc-results-table__value"},Xh(t,e.extraordinaryCosts)),o&&ti.createElement("span",{className:"fcc-results-table__double-asterisk"},"**")),ti.createElement("td",{className:"fcc-results-table__cell fcc-results-table__cell--percentage"},o&&ti.createElement("span",{className:"fcc-results-table__double-asterisk"},"**"),ti.createElement("span",{className:"fcc-results-table__value"},Qh(e.extraordinaryCosts))))),0!==e.propertyExpenses&&ti.createElement("tr",{className:"fcc-results-table__row","data-calculator":"propertyExpenses"},ti.createElement("td",{className:"fcc-results-table__cell fcc-results-table__cell--description"},ti.createElement("div",{className:"fcc-results-table__cell-content"},ti.createElement("div",{className:"fcc-results-table__cell-text"},s.propertyExpenses,ti.createElement(Vh,null,ti.createElement(Hh,{name:"results-property-expenses",dtmData:"Fund charge calc - property expenses"}),ti.createElement(kh,{name:"results-property-expenses"},ti.createElement("p",null,s.propertyExpensesInfo)))))),ti.createElement("td",{className:"fcc-results-table__cell fcc-results-table__cell--currency"},ti.createElement("span",{className:"fcc-results-table__value"},Xh(t,e.propertyExpenses)),o&&ti.createElement("span",{className:"fcc-results-table__double-asterisk"},"**")),ti.createElement("td",{className:"fcc-results-table__cell fcc-results-table__cell--percentage"},o&&ti.createElement("span",{className:"fcc-results-table__double-asterisk"},"**"),ti.createElement("span",{className:"fcc-results-table__value"},Qh(e.propertyExpenses)))),ti.createElement("tr",{className:"fcc-results-table__row","data-calculator":"totalDirectCosts"},ti.createElement("td",{className:"fcc-results-table__cell fcc-results-table__cell--description"},ti.createElement("div",{className:"fcc-results-table__cell-content"},ti.createElement("div",{className:"fcc-results-table__cell-text"},s.directPortfolio,ti.createElement(Vh,null,ti.createElement(Hh,{name:"results-total-direct",dtmData:"Fund charge calc - direct portfolio transaction costs"}),ti.createElement(kh,{name:"results-total-direct"},ti.createElement("p",null,s.directPortfolioInfo)))))),ti.createElement("td",{className:"fcc-results-table__cell fcc-results-table__cell--currency"},ti.createElement("span",{className:"fcc-results-table__value"},Xh(t,e.totalDirectCosts)),o&&ti.createElement("span",{className:"fcc-results-table__double-asterisk"},"**")),ti.createElement("td",{className:"fcc-results-table__cell fcc-results-table__cell--percentage"},(o||c)&&ti.createElement("span",{className:"fcc-results-table__double-asterisk"},"**"),ti.createElement("span",{className:"fcc-results-table__value"},Qh(e.totalDirectCosts)))),ti.createElement("tr",{className:"fcc-results-table__row fcc-results-table__row--total","data-calculator":"total"},ti.createElement("td",{className:"fcc-results-table__cell fcc-results-table__cell--description"},ti.createElement("div",{className:"fcc-results-table__cell-content"},ti.createElement("div",{className:"fcc-results-table__cell-text"},ti.createElement("span",{className:"fcc-results-table__text-bold"},s.totalCharges,r&&!d&&ti.createElement("span",{className:"fcc-results-table__asterisk"}," *")),ti.createElement(Vh,null,ti.createElement(Hh,{name:"results-total",dtmData:"Fund charge calc - total charges"}),ti.createElement(kh,{name:"results-total"},ti.createElement("p",null,s.totalChargesInfo)))))),ti.createElement("td",{className:"fcc-results-table__cell fcc-results-table__cell--currency"},ti.createElement("span",{className:"fcc-results-table__value fcc-results-table__value--bold"},Xh(t,e.totalOngoingCharges+e.totalDirectCosts+e.propertyExpenses)),(o||d)&&ti.createElement("span",{className:"fcc-results-table__double-asterisk"},"**")),ti.createElement("td",{className:"fcc-results-table__cell fcc-results-table__cell--percentage"},(o||d)&&ti.createElement("span",{className:"fcc-results-table__double-asterisk"},"**"),ti.createElement("span",{className:"fcc-results-table__value fcc-results-table__value--bold"},Qh(e.totalOngoingCharges+e.totalDirectCosts+e.propertyExpenses))))))))},eu=({data:e})=>{const t=(0,ti.useContext)(Mh);let s=!1,i=!1;return e.estimate&&"ESTIMATE"===e.estimate.toUpperCase()&&(s=!0,e.directPortfolio&&"NOTAVAILABLE"===e.directPortfolio.toUpperCase()&&(i=!0)),e.estimate&&"NOTAVAILABLE"===e.estimate.toUpperCase()&&(i=!0),ti.createElement("div",{className:"fcc-results-footer"},ti.createElement("div",{className:"fcc-results-footer__indirect-portfolio",dangerouslySetInnerHTML:{__html:t.resultsDescription.replace("##DATE_VALUE##",Zh(e.date)).replace("##DEALING_SPREAD_VALUE##",`${e.fsDealingSpreads.toFixed(2)}%`)}}),ti.createElement("div",{className:"fcc-results-footer__footnotes"},s&&ti.createElement("div",{className:"fcc-results-footer__footnotes-section fcc-results-footer__footnotes-asterisk"},ti.createElement("span",{className:"fcc-results-footer__superscript"},"∗"),ti.createElement("p",null,t.footNotesOne)),i&&ti.createElement("div",{className:"fcc-results-footer__footnotes-section fcc-results-footer__footnotes-double-asterisk"},ti.createElement("span",{className:"fcc-results-footer__superscript"},"∗∗"),ti.createElement("p",null,t.footNotesTwo)),ti.createElement("div",{className:"fcc-results-footer__footnotes-section fcc-results-footer__footnotes-charges-info"},ti.createElement("span",{className:"fcc-results-footer__superscript"},"†"),ti.createElement("p",null,t.footNotesThree))))},tu="fcc-show-calculator-form",su=({authoringDataProp:e,dataUri:t})=>{const s=globalThis.sessionStorage.getItem(tu),[i,n]=(0,ti.useState)("true"===s),a=(e=>{const t={...Rh};return e&&Object.keys(t).forEach(s=>{const i=e[s];i&&(t[s]=i)}),t})(e),[r,o]=(0,ti.useState)(void 0),[l,c]=(0,ti.useState)(!1),[d,h]=(0,ti.useState)(void 0);return ti.createElement(Mh.Provider,{value:a},ti.createElement(xh,null,ti.createElement("div",{className:"fcc-container aem-Grid aem-Grid--12 aem-Grid--default--12 fade-in-up"},a.title&&a.title!==Dh.title&&ti.createElement("h1",{className:"h6"},a.title),ti.createElement("div",{className:"fcc-intro",dangerouslySetInnerHTML:{__html:a.description}}),ti.createElement("div",{className:"fcc-wrapper"},ti.createElement(Bh,{showShareClassInfo:!i}),!i&&ti.createElement(ti.Fragment,null,ti.createElement("div",{className:"text-center"},ti.createElement("button",{className:"fcc-button cmp-button btn btn-teal",type:"button",onClick:()=>{n(!0),globalThis.sessionStorage.setItem(tu,"true")},"aria-label":"Proceed","data-dtm-id":a.dtmId?a.dtmId:"button","data-dtm-data":"Fund charge calc - proceed"},ti.createElement("span",{className:"ds-button__label"},a.proceedButton))),ti.createElement("div",{className:"fcc-info",dangerouslySetInnerHTML:{__html:a.additionalDescription}})),i&&ti.createElement(Yh,{dataUri:t,updateResults:(e,t,s)=>{o(e),c(t),h(s)}})),r&&l&&ti.createElement(ti.Fragment,null,ti.createElement(Jh,{data:r,t
3otalAmount:d||0}),ti.createElement(eu,{data:r})))))};window.addEventListener("load",()=>{const e=document.getElementById("fund-charge-calculator"),t=document.querySelector(".fund-charge-calculator-config");let s=null;if(e&&t){const i=(0,si.H)(e),n=t.textContent??"";try{s=n?JSON.parse(n):null}catch{s=null}const a=`${globalThis.location.pathname.replace(".html","")}/jcr:content/root/content/fundchargecalculator`;i.render(ti.createElement(ti.StrictMode,null,ti.createElement(su,{authoringDataProp:s,dataUri:a})))}});class iu{targetPosition=0;currentOptions={};lastTargetPosition=0;timeout=null;adjustmentTimeout=null;scrollEndListener=null;scrollEndTimeout=null;buffer=16;headerFixed=document.querySelector(".header-fixed");headerTop=document.querySelector(".header-top");stickyContainer=document.querySelector(".container--sticky");easingFunctions={easeInOutCubic:e=>e<.5?4*e*e*e:(e-1)*(2*e-2)*(2*e-2)+1,easeOutQuart:e=>{const t=e-1;return 1-t*t*t*t}};getHeaderHeight(e=!1){const t=window.scrollY||document.documentElement.scrollTop;let s=0;return this.stickyContainer&&this.stickyContainer.offsetHeight>0&&0===t&&(s+=this.stickyContainer.offsetHeight),this.headerFixed&&(s+=e?this.headerFixed.offsetHeight-(this.headerTop?.offsetHeight??0):this.headerFixed.offsetHeight),s}getElementFinalPosition(e,t=0){const s=e.getBoundingClientRect();let i=0,n=e;for(;n&&n!==document.body;){const e=globalThis.getComputedStyle(n),{transform:t}=e;if(n.classList.contains("fade-in-up")&&t&&"none"!==t){i+=new DOMMatrix(t).m42}n=n.parentElement}return s.top+window.scrollY-i-t}scrollSpeed={pixelsPerSecond:1200,minDuration:500,maxDuration:1800};calculateDuration(e,t){if(t?.duration)return t.duration;const s=Math.abs(e)/this.scrollSpeed.pixelsPerSecond*1e3,i=Math.max(this.scrollSpeed.minDuration,Math.min(s,this.scrollSpeed.maxDuration));return Math.abs(e)<500?Math.max(i,600):Math.abs(e)>3e3?Math.min(1.3*i,this.scrollSpeed.maxDuration):i}scrollTo({target:e,options:t={},offset:s=0}){return new Promise(i=>{this.cancelScroll(),this.currentOptions={duration:800,easing:this.easingFunctions.easeInOutCubic,offset:0,...t},this.targetPosition="number"==typeof e?e:this.getElementFinalPosition(e,(this.currentOptions.offset??0)+s);const n=window.scrollY||document.documentElement.scrollTop,a=n<this.targetPosition;if(this.targetPosition-=this.getHeaderHeight(a)+(e=>{const t=getComputedStyle(document.documentElement).getPropertyValue(e);return Number.parseInt(t.trim())||0})("--navigation-sticky-height")+this.buffer,Math.abs(this.targetPosition-n)<1)return this.currentOptions.onComplete&&this.currentOptions.onComplete(),void i();const r=Math.abs(this.targetPosition-n),o=this.calculateDuration(r,this.currentOptions),l=()=>{this.cleanup(),this.currentOptions.onComplete&&this.currentOptions.onComplete(),i()};this.scrollEndListener=()=>{l()},window.addEventListener("scrollend",this.scrollEndListener,{once:!0}),this.scrollEndTimeout=globalThis.setTimeout(()=>{this.scrollEndListener&&(window.removeEventListener("scrollend",this.scrollEndListener),this.scrollEndListener=null),l()},o+200),window.scrollTo({top:this.targetPosition,behavior:"smooth"})})}optionComplete(e){e.onComplete&&e.onComplete()}adjustmentFunction(e,t){const s=window.scrollY||document.documentElement.scrollTop,i=this.getElementFinalPosition(e,t.offset??0);if(Math.abs(i-this.lastTargetPosition)>10&&Math.abs(i-s)>10){this.lastTargetPosition=i,this.cancelScroll();const e=this.calculateDuration(i-s);this.scrollTo({target:i,options:{duration:e,easing:this.easingFunctions.easeOutQuart}}),this.timeout&&clearTimeout(this.timeout),this.timeout=globalThis.setTimeout(()=>this.optionComplete(t),e)}e&&(this.lastTargetPosition=this.getElementFinalPosition(e,t.offset??0))}setupResizeObserver(e,t){let s=null;"ResizeObserver"in globalThis&&(s=new ResizeObserver(()=>{this.adjustmentTimeout&&clearTimeout(this.adjustmentTimeout),this.adjustmentTimeout=globalThis.setTimeout(()=>{this.adjustmentFunction(e,t)},100)}),s.observe(e),document.body&&s.observe(document.body),globalThis.setTimeout(()=>{s&&s.disconnect(),this.adjustmentTimeout&&clearTimeout(this.adjustmentTimeout)},3e3))}scrollToWithContentHandling({target:e,options:t={}}){return new Promise(s=>{const i="number"==typeof e?null:e;i&&this.setupResizeObserver(i,t);const n={...t,onComplete:()=>
3{i&&(this.lastTargetPosition=i.getBoundingClientRect().top+window.scrollY-(t.offset??0)),this.optionComplete(t),s()}};this.scrollTo({target:e,options:n})})}cleanup(){this.scrollEndListener&&(window.removeEventListener("scrollend",this.scrollEndListener),this.scrollEndListener=null),this.scrollEndTimeout&&(clearTimeout(this.scrollEndTimeout),this.scrollEndTimeout=null)}cancelScroll(){this.cleanup(),this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.adjustmentTimeout&&(clearTimeout(this.adjustmentTimeout),this.adjustmentTimeout=null)}static scrollTo(e,t){return(new iu).scrollTo({target:e,options:t})}static scrollToWithContentHandling(e,t){return(new iu).scrollToWithContentHandling({target:e,options:t})}}const nu=".navigation",au=".navigation__link",ru=".navigation__list",ou=".navigation__arrow--prev",lu=".navigation__arrow--next",cu=".header-fixed",du=".header-top",hu=".navigation__item",uu="navigation--type-fund-page",mu="navigation--pinned",pu="navigation--has-scroll",gu="hide-header-top",fu="navigation__item--active",Eu=50;class bu{el;scrollSpyTargets=[];navigationLinks;headerFixed;scrollElement;clicked=!1;smoothScroll;headerTop;prevArrow;nextArrow;arrowPrevFocus=!1;arrowNextFocus=!1;fixedGapMobile;fixedGapDesktop;mobileBreakpoint;arrowStateUpdatePending=!1;scrollDebounceTimeout=null;resizeTimeout=null;constructor(e){this.el=e,this.navigationLinks=this.el.querySelectorAll(au),this.scrollElement=this.el.querySelector(ru),this.headerFixed=document.querySelector(cu),this.headerTop=document.querySelector(du),this.clicked=!1,this.smoothScroll=new iu,this.prevArrow=this.el.querySelector(ou),this.nextArrow=this.el.querySelector(lu),this.fixedGapMobile=10,this.fixedGapDesktop=100,this.mobileBreakpoint=768}init(){this.hideInvalidNavigationItems(),this.el.classList.contains(uu)&&(this.setupFundPageNavigationPinDetection(),this.setupScrollSpy(),this.addEventListener(),this.setupArrowControls(),this.updateActiveNavigationItem(),globalThis.addEventListener("scroll",this.handleScroll.bind(this)),this.setupStickyHeightTracking()),this.setupFocusManagement()}activeTabScrollLeftCategory(e){if(!this.scrollElement)return;const t=this.scrollElement.clientWidth,s=e.offsetWidth,i=e.offsetLeft,n=this.scrollElement.scrollWidth-t;let a=i+s/2-t/2;a=Math.max(0,Math.min(n,a)),this.smoothScrollToPosition(a)}smoothScrollToPosition(e){this.scrollElement&&(this.scrollElement.scrollLeft=e)}setStickyHeight(){const{el:e}=this;if(!e)return;const{height:t}=e.getBoundingClientRect(),s=Math.floor(t);document.documentElement.style.setProperty("--navigation-sticky-height",`${s}px`)}setupStickyHeightTracking(){this.setStickyHeight(),window.addEventListener("resize",this.handleWindowResize.bind(this))}handleWindowResize(){this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(()=>{this.setStickyHeight()},300)}getHeaderHeight(){return this.headerFixed?this.headerFixed.classList.contains(gu)?this.headerFixed.offsetHeight-(this.headerTop?.offsetHeight??0):this.headerFixed.offsetHeight:0}scrollToNextPrevTab(e=1){if(!this.scrollElement)return;const t=this.scrollElement.scrollLeft,s=this.scrollElement.clientWidth,i=this.scrollElement.scrollWidth-s;let n=t+s*e/2;n=Math.max(0,Math.min(i,n)),this.smoothScrollToPosition(n)}setupArrowControls(){this.prevArrow&&this.nextArrow&&this.scrollElement&&(this.prevArrow.addEventListener("click",this.handlePrevArrowClick.bind(this)),this.nextArrow.addEventListener("click",this.handleNextArrowClick.bind(this)),this.scrollElement.addEventListener("scroll",this.handleScrollElementScroll.bind(this)),this.updateScrollCapability(),this.updateArrowStates())}handlePrevArrowClick(){this.arrowPrevFocus=!0,this.scrollElement&&this.scrollToNextPrevTab(-1),this.updateArrowStates()}handleNextArrowClick(){this.arrowNextFocus=!0,this.scrollElement&&this.scrollToNextPrevTab(1),this.updateArrowStates()}handleScrollElementScroll(){this.debouncedUpdateArrowStates(),this.shiftFocus()}shiftFocus(){this.prevArrow&&this.nextArrow&&(this.arrowPrevFocus||this.arrowNextFocus)&&(this.arrowPrevFocus&&this.prevArrow.disabled?(this.nextArrow.focus({preventScroll:!0}),this.arrowPrevFocus=!1):this.arrowNextFocus&&this.nextArrow.disabled&&(this.prevArrow.focus({preventScroll:!0}),this.arrowNextFocus=!1))}updateArrowStates(){if(!this.prevArrow||!this.nextArrow||!this.scrollElement)return;const{scrollLeft:e,scrollWidth:t,clientWidth:s}=this.scrollElement,i=t-s;this.prevArrow.disabled=e<=0,this.nextArrow.disabled=e>=i-1}debouncedUpdateArrowStates(){this.arrowStateUpdatePending||(this.arrowStateUpdatePending=!0,this.updateArrowStates(),this.arrowStateUpdatePending=!1)}updateScrollCapability(){if(!this.scrollElement)return;const e=this.scrollElement.scrollWidth>this.scrollElement.clientWidth;this.el.classList.toggle(pu,e)}
3isValidHashLink(e){return!0===e?.startsWith("#")&&"#"!==e}setupScrollSpy(){this.scrollSpyTargets=[],this.navigationLinks.forEach(e=>{const t=e.getAttribute("href");if(this.isValidHashLink(t)){const e=document.querySelector(t);e&&this.scrollSpyTargets.push(e)}})}addEventListener(){this.navigationLinks.forEach(e=>{e.addEventListener("click",this.handleNavigationLinkClick.bind(this))})}handleNavigationLinkClick(e){const t=e.currentTarget,s=t.getAttribute("href");if(!this.isValidHashLink(s))return;e.preventDefault();const i=document.querySelector(s);if(!i)return;const n=t.closest(hu);n&&n instanceof HTMLElement&&this.activeListItem(n),this.scrollActiveItemIntoView(),this.updateArrowStates(),this.smoothScroll.scrollToWithContentHandling({target:i,options:{onComplete:this.handleSmoothScrollComplete.bind(this)}}),s&&globalThis.history.replaceState({},"",s)}handleSmoothScrollComplete(){this.scrollDebounceTimeout&&clearTimeout(this.scrollDebounceTimeout),this.scrollDebounceTimeout=setTimeout(()=>{this.clicked=!1,this.scrollDebounceTimeout=null},500)}hideInvalidNavigationItems(){this.el.querySelectorAll(hu).forEach(e=>{const t=e.querySelector("[data-hash]");if(t){const s=t.getAttribute("data-hash");if(s&&s.startsWith("#")){const t=s.substring(1);if(!document.getElementById(t)){e.style.display="none"}}}})}activeListItem(e){e&&(this.scrollDebounceTimeout&&(clearTimeout(this.scrollDebounceTimeout),this.scrollDebounceTimeout=null),this.clicked=!0,this.navigationLinks.forEach(e=>{const t=e.closest(hu);t&&t.classList.remove(fu)}),e.classList.add(fu))}setupFundPageNavigationPinDetection(){globalThis.addEventListener("resize",()=>{this.updateScrollCapability(),this.updateArrowStates()})}handleScroll(){this.updateActiveNavigationItem();const e=this.el.getBoundingClientRect().top<=100;this.el.classList.toggle(mu,e)}calculateOptimalScrollPosition(e,t){const s=this.prevArrow?this.prevArrow.offsetWidth:0,i=this.nextArrow?this.nextArrow.offsetWidth:0,n=window.innerWidth>=this.mobileBreakpoint?this.fixedGapDesktop:this.fixedGapMobile,a=t-s-i-2*n,r=e.offsetWidth;if(r>a){const t=s+n;return e.offsetLeft-t}return e.offsetLeft+r/2-t/2}scrollActiveItemIntoView(){if(!this.scrollElement)return;const e=this.el.querySelector(`\n      ${hu}.${fu}\n      `);e&&this.activeTabScrollLeftCategory(e)}scrollFocusedItemIntoView(e){if(!this.scrollElement)return;const t=e.closest(hu);if(!(t&&t instanceof HTMLElement))return;const s=t.offsetLeft,i=s+t.offsetWidth,n=this.scrollElement.scrollLeft,a=this.scrollElement.clientWidth;if(s<n||i>n+a){const e=this.calculateOptimalScrollPosition(t,a),s=this.scrollElement.scrollWidth-a,i=0,n=Math.max(i,Math.min(s,e));this.scrollElement.scrollTo({left:n,behavior:"smooth"}),setTimeout(()=>{this.updateArrowStates()},100)}}updateActiveNavigationItem(){if(0===this.scrollSpyTargets.length||this.clicked)return;const e=window.scrollY+this.getHeaderHeight()+Eu+this.el.offsetHeight;for(let t=this.scrollSpyTargets.length-1;t>=0;t--){const s=this.scrollSpyTargets[t];if(e>=s.getBoundingClientRect().top+window.scrollY){this.navigationLinks.forEach(e=>{const t=e.getAttribute("href"),i=e.closest(hu);t===`#${s.id}`?i?.classList.add(fu):i?.classList.remove(fu)}),this.scrollActiveItemIntoView();break}}}setupFocusManagement(){this.navigationLinks.forEach(e=>{e.addEventListener("focus",this.handleNavigationLinkFocus.bind(this,e))})}handleNavigationLinkFocus(e,t){t.preventDefault(),t.target&&t.target instanceof HTMLElement&&t.target.focus({preventScroll:!0}),this.el.classList.contains(uu)&&this.scrollFocusedItemIntoView(e)}static initialize(){const e=document.querySelectorAll(nu),t=[];return e.forEach(e=>{const s=new bu(e);s.init(),t.push(s)}),t}}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",bu.initialize):bu.initialize();const Tu=".article-header",Su=".article-header__progress-bar",vu=".article-header__progress-bar-inner",Lu=".header-fixed, #header",yu=".articleheader";class _u{el;rootContainer;progressBar;progressBarInner;headerFixed;isInitialized;boundHandleScroll;boundHandleResize;constructor(e){this.el=e,this.rootContainer=null,this.progressBar=null,this.progressBarInner=null,this.headerFixed=null,this.isInitialized=!1,this.boundHandleScroll=this.handleScroll.bind(this),this.boundHandleResize=this.handleResize.bind(this)}init(){this.findElements(),this.moveProgressBarToSiblingLevel(),this.addEventListeners(),this.updateProgress(),this.isInitialized=!0}findElements(){if(this.rootContainer=document.querySelector(yu),!this.rootContainer)throw new Error(`Art
3icle header root container not found with selector: ${yu}`);this.progressBar=this.rootContainer.querySelector(Su),this.progressBarInner=this.rootContainer.querySelector(vu),this.headerFixed=document.querySelector(Lu)}addEventListeners(){globalThis.addEventListener("scroll",this.boundHandleScroll),globalThis.addEventListener("resize",this.boundHandleResize)}handleScroll(){this.isInitialized&&this.updateProgress()}handleResize(){this.isInitialized&&this.updateProgress()}updateProgress(){if(!this.progressBarInner)return;const e=window.scrollY||document.documentElement.scrollTop,t=document.documentElement.scrollHeight-window.innerHeight,s=Math.min(Math.max(e/t*100,0),100);this.progressBarInner.style.setProperty("--progress-bar-width",`${s}%`)}moveProgressBarToSiblingLevel(){if(!this.progressBar)return;const e=this.el.closest(yu);if(e?.parentElement&&this.progressBar.parentElement!==e.parentElement)try{e.insertAdjacentElement("afterend",this.progressBar)}catch(e){console.error("Failed to move progress bar to sibling level of articleheader:",e)}}destroy(){globalThis.removeEventListener("scroll",this.boundHandleScroll),globalThis.removeEventListener("resize",this.boundHandleResize),this.isInitialized=!1}static initialize(){const e=document.querySelectorAll(Tu);e.length&&e.forEach(e=>{new _u(e).init()})}}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",_u.initialize):_u.initialize();const Au=".social-share",Cu=".social-share__toggle",wu=".social-share__inner",Nu=".social-share__item--copy",Iu=".social-share__button",Ru=".social-share__items",Du=".article-header",Mu="social-share--expanded",Ou="social-share__item--copy--copied",xu="--social-share-pin-position",Pu=960,ku=100,Hu="aria-expanded",Bu="aria-pressed",Fu="inert";class qu{inner;toggleButton;items;isExpanded;wasDesktop;constructor(e,t){this.inner=e,this.toggleButton=t,this.items=null,this.isExpanded=!1,this.wasDesktop=!1}init(){const e=window.innerWidth>=Pu;this.items=this.inner.querySelector(Ru),e&&this.setupInitialState()}setupInitialState(){this.isDesktop()&&(this.wasDesktop=!0,this.setCollapsed())}toggle(){this.isDesktop()&&(this.isExpanded?this.collapse():this.expand())}collapse(){this.isDesktop()&&this.setCollapsed()}expand(){this.isDesktop()&&this.setExpanded()}handleResize(){const e=this.isDesktop();e&&!this.wasDesktop?this.setCollapsed():e&&this.wasDesktop?this.isExpanded?this.setExpanded():this.setCollapsed():!e&&this.wasDesktop&&this.cleanupDesktopState(),this.wasDesktop=e}canToggle(){return this.isDesktop()}isDesktop(){return window.innerWidth>=Pu}cleanupDesktopState(){this.inner.closest(Au)?.classList.remove(Mu),this.toggleButton.removeAttribute(Hu),this.toggleButton.removeAttribute(Bu),this.items&&this.items.removeAttribute(Fu),this.isExpanded=!1}setCollapsed(){this.isDesktop()&&(this.isExpanded=!1,this.inner.closest(Au)?.classList.remove(Mu),this.items&&this.items.setAttribute(Fu,""),this.updateAriaState())}setExpanded(){this.isDesktop()&&(this.isExpanded=!0,this.inner.closest(Au)?.classList.add(Mu),this.items&&this.items.removeAttribute(Fu),this.updateAriaState())}updateAriaState(){this.isDesktop()&&(this.toggleButton.setAttribute(Hu,this.isExpanded.toString()),this.toggleButton.setAttribute(Bu,this.isExpanded.toString()))}reset(){this.cleanupDesktopState()}}class $u{container;boundResizeHandler;resizeTimeout;toggleHandler;isInitialized;constructor(e,t=null){const s=e.closest(Au);if(!(s&&s instanceof HTMLElement))throw new Error("Social share container not found");this.container=s,this.boundResizeHandler=this.handleResize.bind(this),this.resizeTimeout=null,this.toggleHandler=t,this.isInitialized=!1}init(){this.container&&this.hasArticleHeaderVariant()&&(this.checkScreenSize(),this.addEventListeners(),this.isInitialized=!0)}hasArticleHeaderVariant(){return null!==this.container.closest(Du)}shouldPin(){return window.innerWidth>=Pu&&this.hasArticleHeaderVariant()}checkScreenSize(){this.shouldPin()?this.updatePinPosition():this.cleanupPinning()}updatePinPosition(){const e=this.container.getBoundingClientRect(),t=document.documentElement.clientWidth-e.right;this.container.style.setProperty(xu,`${t}px`)}cleanupPinning(){this.removePinPosition()}removePinPosition(){this.container.style.removeProperty(xu)}addEventListeners(){globalThis.addEventListener("resize",this.boundResizeHandler)}removeEventListeners(){globalThis.removeEventListener("resize",this.boundResizeHandler)}handleResize(){this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(()=>{this.isInitialized&&this.checkScreenSize(),this.resizeTimeout=null},ku)}destroy(){this.removeEventListeners(),this.cleanupPinning(),this.resizeTimeout&&(clearTimeout(this.resizeTimeout),this.resizeTimeout=null),this.isInitialized=!1}}class zu{copyButton;copyItem;boundCopyHandler;copiedClassTimeout;constructor(e){this.copyItem=e.querySelector(Nu),this.copyButton=this.copyItem?.querySelector(Iu)??null,this.boundCopyHandler=this.handleCopy.bind(this),this.copiedClassTimeout=null}init(){this.copyButton&&this.addEventListener()}addEventListener(){this.copyButton&&this.copyButton.addEventListener("click",this.boundCopyHandler)}handleCopy(e){e.preventDefault();const t=globalThis.location.href;navigator.clipboard.writeText(t).then(()=>{this.addCopiedClass()}).catch(e=>{throw new Error("CopyHandler: Failed to copy URL",{cause:e})})}addCopiedClass(){this.copyItem&&(this.copiedClassTimeout&&clearTimeout(this.copiedClassTimeout),this.copyItem.classList.add(Ou),this.copiedClassTimeout=setTimeout(()=>{this.copyItem&&this.copyItem.classList.remove(Ou),this.copiedClassTimeout=null},2e3))}destroy(){this.copyButton&&this.copyButton.removeEventListener("click",this.boundCopyHandler),this.copiedClassTimeout&&(clearTimeout(this.copiedClassTimeout),this.copiedClassTimeout=null)}}class Uu{el;toggleButton;inner;toggleHandler;pinHandler;copyHandler;boundToggleHandler;boundResizeHandler;resizeTimeout;constructor(e){this.el=e,this.toggleButton=null,this.inner=null,this.toggleHandler=null,this.pinHandler=null,this.copyHandler=null,this.resizeTimeout=null,this.boundToggleHandler=this.handleToggle.bind(this),this.boundResizeHandler=this.handleResize.bind(this),this.el instanceof HTMLElement&&(this.el.socialShareInstance=this)}init(){this.findElements(),this.setupToggleHandler(),this.setupCopyHandler(),this.isInArticleHeader()&&this.setupPinH
3andler(),this.addEventListeners()}isInArticleHeader(){return null!==this.el.closest(".article-header")}findElements(){this.toggleButton=this.el.querySelector(Cu),this.inner=this.el.querySelector(wu)}setupToggleHandler(){this.inner&&this.toggleButton&&(this.toggleHandler=new qu(this.inner,this.toggleButton),this.toggleHandler.init())}setupPinHandler(){this.inner&&(this.pinHandler=new $u(this.inner,this.toggleHandler),this.pinHandler.init())}setupCopyHandler(){this.copyHandler=new zu(this.el),this.copyHandler.init()}addEventListeners(){this.toggleButton&&this.toggleButton.addEventListener("click",this.boundToggleHandler),globalThis.addEventListener("resize",this.boundResizeHandler)}handleToggle(e){e.preventDefault(),this.toggleHandler&&this.toggleHandler.canToggle()&&this.toggleHandler.toggle()}handleResize(){this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(()=>{this.toggleHandler&&this.toggleHandler.handleResize(),this.pinHandler&&this.pinHandler.handleResize(),this.resizeTimeout=null},ku)}destroy(){this.toggleButton&&this.toggleButton.removeEventListener("click",this.boundToggleHandler),globalThis.removeEventListener("resize",this.boundResizeHandler),this.resizeTimeout&&(clearTimeout(this.resizeTimeout),this.resizeTimeout=null),this.toggleHandler&&(this.toggleHandler.reset(),this.toggleHandler=null),this.pinHandler&&(this.pinHandler.destroy(),this.pinHandler=null),this.copyHandler&&(this.copyHandler.destroy(),this.copyHandler=null),this.el instanceof HTMLElement&&delete this.el.socialShareInstance}static initialize(){const e=document.querySelectorAll(Au);e.length&&e.forEach(e=>{new Uu(e).init()})}}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",Uu.initialize):Uu.initialize();const Wu=".print-button-cmp",Vu=".print-button-cmp__btn";class Gu{el=null;button=null;constructor(e){e&&(this.el=e)}init(){this.el&&(this.findElements(),this.addEventListeners())}findElements(){if(this.button=this.el?.querySelector(Vu)??null,!this.button)throw new Error("PrintButton: Button element not found")}addEventListeners(){this.button&&this.button.addEventListener("click",this.handlePrint.bind(this))}handlePrint(e){if(e.preventDefault(),this.button)try{globalThis.print()}catch(e){console.error("Error triggering print:",e)}}static initialize(){const e=document.querySelectorAll(Wu);e.length&&e.forEach(e=>{new Gu(e).init()})}}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",Gu.initialize):Gu.initialize();const Ku=".accordion",Yu=".cmp-accordion",ju=".cmp-accordion__item",Xu=".cmp-accordion__button",Qu=".cmp-accordion__title",Zu=".cmp-text",Ju=".only-open-one",em=".faq-root-json",tm=".faq-entity-json",sm=".accordion-gen-faq-schema",im="js-expanded",nm="is-animating",am="cmp-accordion__panel--hidden",rm="aria-expanded",om="aria-hidden",lm="data-cmp-expanded",cm="application/ld+json",dm=e=>{const t=e.getAttribute("aria-controls");if(t){const e=document.getElementById(t);if(e)return e}const s=e.closest(".cmp-accordion__item");return s?s.querySelector(".cmp-accordion__panel"):null},hm=(e,t)=>{const s=e.closest(ju);s&&(t?s.setAttribute(lm,""):s.removeAttribute(lm))},um=(e,t)=>{e.querySelectorAll(".cmp-accordion__button").forEach(e=>{if(e instanceof HTMLElement){const s=dm(e);s&&s!==t&&(e.setAttribute(rm,"false"),e.classList.remove(im),P.slideUp(s),hm(e,!1))}})},mm=(e,t)=>{const s=(e=>{const t=document.getElementById(e);if(!t)return null;const s=t.getAttribute("aria-labelledby");return s?document.getElementById(s):null})(e);if(!s)return;const i=dm(s);i&&(um(t,i),s.setAttribute(rm,"true"),s.classList.add(im),i.classList.remove(am),i.setAttribute(om,"false"),P.slideDown(i),hm(s,!0))};class pm{static handleToggle(e){const t=e.closest(Ku),s=e.closest(Yu),i=dm(e);if(!i)throw new Error("No accordion panel found for button");const n="true"===e.getAttribute(rm),a=s?.matches(Ju),r=e.classList.contains(im);e.classList.contains(nm)||(a&&t instanceof HTMLElement?this.handleSingleExpansionToggle(e,i,t,r):this.handleMultiExpansionToggle(e,i,n,r))}static handleSingleExpansionToggle(e,t,s,i){if(i)return e.setAttribute(rm,"false"),e.classList.remove(im),void this.closeAccordionItem(e,t);um(s,t),e.setAttribute(rm,"true"),e.classList.add(im),this.openAccordionItem(e,t)}static handleMultiExpansionToggle(e,t,s,i){e.classList.add(nm),e.setAttribute(rm,String(!s)),e.classList.toggle(im),i?this.closeAccordionItem(e,t):this.openAccordionItem(e,t),setTimeout(()=>{e.classList.remove(nm)},500)}static openAccordionItem(e,t){t.classList.remove(am),t.setAttribute(om,"false"),P.slideDown(t),hm(e,!0),(e=>{const t=globalThis.location.href,[s,i]=t.split("#");let n=s;if(i&&i.includes("&")){const e=i.split("&").slice(1).join("&");e&&(n=`${s}?${e}`)}const a=new URL(n);a.hash=e,globalThis.history.replaceState(null,"",a.toString())})(t.id)}static closeAccordionItem(e,t){if(t.setAttribute(om,"true"),P.slideUp(t),t.classList.add(am),hm(e,!1),globalThis.location.hash===`#${t.id}`){const e=new URL(globalThis.location.href);e.hash="",globalThis.history.replaceState(null,"",e.toString())}}}class gm{element;static instances=new WeakMap;constructor(e){if(!e)throw new Error("AccordionFAQ: element is required");this.element=e,this.init()}init(){try{this.generateFAQSchema()}catch(e){console.error("AccordionFAQ: Failed to generate FAQ schema",e)}}generateFAQSchema(){const e=this.element.querySelector(em)?.textContent,t=this.element.querySelector(tm)?.textContent;if(e&&t)try{const s=JSON.parse(e),i=this.extractQuestionAnswerPairs(),n=this.createFAQEntities(i,t);n.length>0&&this.injectSchemaScript(s,n)}catch(e){console.error("AccordionFAQ: Failed to parse FAQ JSON",e)}}extractQuestionAnswerPairs(){const e=this.element.querySelectorAll(ju),t=[];
3return e.forEach(e=>{const s=e.querySelector(Qu),i=e.querySelector(Zu);if(i&&s){const e={question:s.textContent??"",answer:i.innerHTML??""};t.push(e)}}),t}createFAQEntities(e,t){const s=[];return e.forEach(e=>{try{const i=JSON.parse(t),n={...i,name:e.question,acceptedAnswer:{...i.acceptedAnswer,text:e.answer}};s.push(n)}catch(e){console.error("AccordionFAQ: Failed to parse FAQ entity template",e)}}),s}injectSchemaScript(e,t){const s={...e,mainEntity:t},i=document.createElement("script");i.setAttribute("type",cm),i.textContent=JSON.stringify(s),document.head.appendChild(i)}static initialize(e){if(!e)return null;if(gm.instances.has(e))return gm.instances.get(e)??null;try{const t=new gm(e);return gm.instances.set(e,t),t}catch(e){return console.error("AccordionFAQ: Failed to initialize",e),null}}}var fm=gm;class Em{element;smoothScroll;constructor(e){this.element=e,this.smoothScroll=new iu,this.init()}init(){this.addListeners(),this.handleHashInitialization(),this.createAccordionSchema()}createAccordionSchema(){const e=this.element.querySelector(sm);e instanceof HTMLElement&&fm.initialize(e)}addListeners(){this.element.querySelectorAll(Xu).forEach(e=>{if(e instanceof HTMLElement){e.hasAttribute(rm)||e.setAttribute(rm,"false");const t=e.classList.contains("js-expanded");hm(e,t),e.addEventListener("click",t=>{t.preventDefault(),pm.handleToggle(e)})}})}async handleHashInitialization(){const e=(()=>{const{hash:e}=globalThis.location;return e?e.substring(1):null})();if(e){const t=this.element.querySelector(`#${e}`);if(t){const s=t.closest(ju);mm(e,this.element),await new Promise(e=>{setTimeout(e,500)}),this.smoothScroll.scrollTo({target:s})}}}static initialize(){const e=document.querySelectorAll(Ku);return e.length?Array.from(e).filter(e=>e instanceof HTMLElement).map(e=>new Em(e)):[]}}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",()=>{Em.initialize()}):Em.initialize();const bm=200,Tm=100,Sm=".promotional-banner__tile-container",vm=".promotional-banner__content-wrapper",Lm=".promotional-banner__tile",ym=".promotional-banner__tile-title",_m=".promotional-banner__content-inner",Am=".promotional-banner__background-blur--mobile",Cm=".promotional-banner__tiles",wm="promotional-banner__tile--active";class Nm{el;config;hoverTimeout=null;resizeTimeout=null;resizeHandler=null;tileContainers;constructor(e,t={}){if(!e)throw new Error("Element is required for PromotionalBanner");this.el=e,this.config={hoverDelay:bm,resizeDebounce:Tm,...t},this.tileContainers=this.el.querySelectorAll(Sm)}init(){this.setupHoverEvents(),this.setContentWrapperHeights(),this.setDynamicContainerHeights(),this.setupResizeHandler()}setupHoverEvents(){this.tileContainers.length&&this.tileContainers.forEach((e,t)=>{e.addEventListener("mouseenter",()=>{this.setActiveBackground(t)})})}setActiveBackground(e){this.hoverTimeout&&clearTimeout(this.hoverTimeout),this.hoverTimeout=globalThis.setTimeout(()=>{if(this.el.querySelectorAll(Lm).forEach(e=>{e.classList.remove(wm)}),this.tileContainers[e]){const t=this.tileContainers[e].closest(Lm);t instanceof HTMLElement&&t.classList.add(wm)}},this.config.hoverDelay??bm)}setContentWrapperHeights(){this.tileContainers.length&&this.tileContainers.forEach(e=>{const t=e.querySelector(vm),s=e.querySelector(ym),i=e.querySelector(_m),n=e.closest(Lm)?.querySelector(Am);if(!t||!s||!i)return;const a=globalThis.getComputedStyle(i),r=(Number.parseInt(a.paddingTop)??0)+(Number.parseInt(a.paddingBottom)??0),o=s.offsetHeight+r;t.style.setProperty("--base-height",`${o}px`);const l=i.scrollHeight;t.style.setProperty("--full-height",`${l}px`),n&&n.style.setProperty("--full-height",`${l}px`)})}setDynamicContainerHeights(){this.tileContainers.length&&this.tileContainers.forEach(e=>{const t=e.querySelector(vm),s=e.querySelector(_m);if(!t||!s)return;const i=globalThis.getComputedStyle(e),n=Number.parseInt(i.minHeight)??0,a=globalThis.getComputedStyle(t),r=Number.parseInt(a.marginTop)??0,o=t.style.height;t.style.height="auto";const l=s.scrollHeight+r,c=Math.max(n,l);e.style.setProperty("--dynamic-min-height",`${c}px`),t.style.height=o})}setupResizeHandler(){this.resizeHandler=()=>{this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=globalThis.setTimeout(()=>{this.setContentWrapperHeights(),this.setDynamicContainerHeights()},this.config.resizeDebounce??Tm)},globalThis.addEventListener("resize",this.resizeHandler)}static initialize(){const e=document.querySelectorAll(Cm);
3e.length&&e.forEach(e=>{new Nm(e).init()})}}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",Nm.initialize):Nm.initialize();const Im="hidden",Rm="active",Dm="first-batch-load",Mm="is-expanded",Om="filter__form-item--expanded",xm="is-open",Pm="pagination__page--active",km="btn-text",Hm="custom-scroll",Bm="filter__form-item--value",Fm="filter__form-item--group",qm="js-clear-banner-filters",$m="banner-search-box__tag-list-item",zm="banner-search-box__tag-list-item--search",Um="filter__form-items-list--right",Wm="filter__form-item--group-level-2",Vm="filter__form-items-list--root",Gm="filter__selected-item",Km="search-results__item",Ym="search-results__item--image-thumbnail",jm="search-results__item--image-thumbnail-image",Xm="search-results__item--content",Qm="search-results__item--content-bottom",Zm="search-page__image-container",Jm="search-page__image",ep="search__item-header",tp="search__heading",sp="search__short-description",ip="search-tags__data",np="search-tags__separator",ap="primary-tag",rp="primary-tag--1",op="insight-card__placeholder",lp="insight-results__grid",cp="pagination",dp="pagination__container",hp="pagination__nav",up="pagination__button",mp="pagination__button--first",pp="pagination__button--prev",gp="pagination__button--next",fp="pagination__button--last",Ep="pagination__page",bp="pagination__pages",Tp="pagination__ellipsis",Sp="text-link-teal",vp="category__clear_all",Lp="h10",yp="last-mb-none",_p="spacer-spacing-3",Ap="spacer-spacing-5",Cp="spacer-spacing-9",wp="icomoon",Np="icon-angle-double-left",Ip="icon-angle-double-right",Rp="icon-chevron-left",Dp="icon-chevron-right",Mp="icon-close",Op={CONTAINER:".insight-results",LOADING:".insight-results__loading",MAIN_CONTENT:".insight-results__main-content",NO_RESULTS:".insight-results__no-results",INNER:".insight-results__inner",RESULTS_COUNT:".insight-results__count",COUNT_NUMBER:".insight-results__count-number",RESULTS_CONTAINER:".insight-results__results-container",TRANSLATIONS:".insight-results__translations",CONFIG_SCRIPT:".insight-search-config",BANNER_SEARCH_BOX:".banner-search-box",BANNER_SEARCH_BOX_LIST:".js-search-box-list",FILTER_FORM:".filter__form",FILTER_FORM_ITEM:".filter__form-item",FILTER_FORM_ITEMS_LIST:`.${"filter__form-items-list"}`,FILTER_TOGGLE_BUTTON:".filter__form-toggle-button",BANNER_CLEAR_BUTTON:".js-clear-banner-filters",BANNER_APPLY_BUTTON:".js-apply-banner-filters",BANNER_CONTENT_CONTAINER:".filter__form-items-list--root",BANNER_FILTER_GROUP:`.${Fm}`,BANNER_FILTER_GROUP_LEVEL_1:`.${Fm}:not(.${Wm})`,BANNER_FILTER_HEADER:".filter__form-item-toggle-button",BANNER_FILTER_OPTIONS:`.${"search-category-filter-list"}`,MAIN_SEARCH_INPUT:"#searchbox-insight",MAIN_SEARCH_FORM:".searchbox__form",MAIN_SUBMIT_BUTTON:".searchbox__button--submit",MAIN_CLEAR_BUTTON:".searchbox__clear",SEARCH_BOX:".searchbox",MAIN_SUGGESTIONS_CONTAINER:".suggestions-container",MAIN_SUGGESTIONS_LIST:".search-suggestions",PAGINATION_CONTAINER:"[data-pagination]",CONTAINER_WRAPPER_INNER:".container-wrapper-inner",RETRY_BUTTON:".insight-results__retry-btn",TAG_LIST:".filter__selected-items-list",INPUT_CHECKBOX:'input[type="checkbox"]',COUNT_BANNER_FILTERS:".js-count-banner-filters",SEARCH_RESULTS:".search-results",SEARCH_RESULT:".search-result",BTN_TEXT:".btn-text",BTN_TEAL:".btn.btn-teal",FILTER_GROUP_WITH_DATA_VALUE:".filter__form-item--group[data-filter-value]",HEADER:"header",A_HREF:"a[href]",H3:"h3",SEARCH_RESULT_TITLE:".search-result__title",RESULT_TITLE:".result-title",DATA_PAGE_SELECTOR:"[data-page]",SPAN:"span",BUTTON:"button",LI:"li",LABEL:"label",INPUT:"input",DIV:"div",UL:"ul",P:"p",IMG:"img",A:"a"},xp="aria-hidden",Pp="aria-expanded",kp="data-search-phrase",Hp="data-tag",Bp="data-page",Fp="aria-label",qp="class",$p="data-event-bound",zp="tabindex",Up="data-testid",Wp="data-pagination",Vp="aria-current",Gp="disabled",Kp="Content-Type",Yp="application/json",jp="href",Xp="src",Qp="alt",Zp="loading",Jp=960,eg=1280,tg=8,sg=1e3,ig=1e4,ng=1e4,ag=100,rg=0,og=300,lg="GET",cg="AND",dg="q",hg="t",ug="page",mg="",pg="{}",gg="mock-engine",fg="mock-endpoint",Eg="mock-key",bg="prod/mandg/mandg:site-ids/investments/professional-investor/gb/en",Tg="PUBLICATION_DATE",Sg="mandg:page_types/insight",vg="min read",Lg="category-search",yg="all_tags",_g="mandg:",Ag="/",Cg=":",wg="lazy",Ng="true",Ig="false",Rg="-1",Dg="0",Mg="1",Og="first",xg="prev",Pg="next",kg="last",Hg="checkbox",Bg="div",Fg="button",qg="li",$g="span",zg="label",Ug="input",Wg="h3",Vg="p",Gg="a",Kg="img",Yg="click",jg="keydown",Xg="submit",Qg="change",Zg="scroll",Jg="resize",ef="orientationchange",tf="DOMContentLoaded";class sf{static scrollTimeout=null;static isValidInternalUrl(e){if(!e||e.trim()===mg)return!1;const t=e.trim();if(/^(javascript|data|vbscript|file|about):/i.test(t))return!1;if(t.startsWith("//")||t.startsWith("http://")||t.startsWith("https://"))try{if(new 
3URL(t,globalThis.location.origin).origin!==globalThis.location.origin)return!1}catch{return!1}return!t.includes("@")&&!t.includes("\\")&&(!!t.startsWith("/")&&!t.startsWith("//"))}static getComponentConfig(e){const t={hideResults:!e.querySelector(Op.RESULTS_CONTAINER),searchResultsPageUrl:e.dataset.searchResultsPage??mg,translations:{},allTags:{},minutesToReadLabel:""},s=e.querySelector(Op.TRANSLATIONS);if(s instanceof HTMLElement){const e=s.dataset;Object.keys(e).slice(0,ag).forEach(s=>{const i=s.replaceAll(/([A-Z])/g,"-$1").toLowerCase(),n=e[s]??mg;t.translations[i]=n.length>ig?n.substring(0,ig):n})}return t}static sanitizeURLSearch(){const e=(globalThis.location.search??"").substring(0,1e4);if(e.length>ig)return"";const t=e.substring(0,ig);return/^[a-zA-Z0-9?&=%\-_.~\s]*$/.test(t)?t:""}static parseSearchPhrase(e){if(!e)return mg;try{const t=decodeURIComponent(e);if(t.length>ig)return mg;return/^[a-zA-Z0-9\s.,;:!?'"()-]+$/.test(t)?t:mg}catch{return mg}}static parseSelectedFilters(e){if(!e)return[];try{const t=decodeURIComponent(e),s=(t.length>ig?t.substring(0,ig):t).split(",").filter(e=>e.trim()!==mg).slice(0,ag);if(0===s.length)return[];const i=/^[a-zA-Z0-9\s_/-]+$/;return s.filter(e=>i.test(e)).map(e=>`${_g}${e}`)}catch{return[]}}static loadStateFromURL(){const e=this.sanitizeURLSearch();if(!e)return{searchPhrase:mg,selectedFilters:[],currentPage:1};const t=new URLSearchParams(e),s=this.parseSearchPhrase(t.get(dg)),i=this.parseSelectedFilters(t.get(hg)),n=t.get(ug);let a=1;if(n){const e=Number.parseInt(n);!Number.isNaN(e)&&e>=1&&e<=ng&&(a=e)}return{searchPhrase:s,selectedFilters:i,currentPage:a}}static buildURLParameters(e,t,s){const i=new URLSearchParams,n=e.length>ig?e.substring(0,ig):e,a=/^[a-zA-Z0-9\s.,;:!?'"()-]+$/.test(n)?n:mg;a&&a.trim()!==mg?i.set(dg,encodeURIComponent(a.trim())):i.delete(dg);const r=t.slice(0,ag);if(r.length>0){const e=r.map(e=>e.replace(/^mandg:/,mg));i.set(hg,encodeURIComponent(e.join(",")))}else i.delete(hg);const o=Math.max(1,Math.min(s,ng));return o>1?i.set(ug,o.toString()):i.delete(ug),i}static buildSearchURL(e,t,s=1,i=""){const n=this.buildURLParameters(e,t,s),a=Fr.A.sanitize(globalThis.location.pathname,{ALLOWED_TAGS:[]}),r=i&&i.trim()!==mg?i:a;return i&&i.trim()!==mg&&!this.isValidInternalUrl(i)?a:n.toString()?`${r}?${n.toString()}`:r}static updateURLParameters(e,t,s){const i=this.buildURLParameters(e,t,s),n=Fr.A.sanitize(globalThis.location.pathname,{ALLOWED_TAGS:[]}),a=i.toString()?`${n}?${i.toString()}`:n;globalThis.history.pushState({},"",a)}static redirectToSearchResults(e,t,s){if(!s||s.trim()===mg)return;if(!this.isValidInternalUrl(s))return;const i=this.buildSearchURL(e,t,1,s);globalThis.location.href=i}static getTranslation(e,t,s=""){return e[t]??s}static focusFirstResultItem(e){const t=e.querySelector(Op.MAIN_CONTENT);if(t){const e=t.querySelector(`.${Km}`);if(e instanceof HTMLElement){const t=e.querySelector(Gg);t instanceof HTMLAnchorElement&&t.focus({preventScroll:!0})}}}static scrollToResults(e){const t=e.querySelector(Op.INNER);if(t){this.scrollTimeout&&clearTimeout(this.scrollTimeout);const s=document.querySelector(Op.HEADER),i=s instanceof HTMLElement?s.offsetHeight:0;this.scrollTimeout=setTimeout(()=>{const s=t.getBoundingClientRect(),n=window.scrollY+s.top-i;window.scrollTo({top:n,behavior:"smooth"});globalThis.addEventListener(Zg,()=>{this.focusFirstResultItem(e)},{once:!0}),this.scrollTimeout=null},100)}}static syncSearchInputs(e,t){const s=e.querySelector(Op.MAIN_SEARCH_INPUT);if(s instanceof HTMLInputElement)if(s.value=t,t.trim()===mg){const t=e.querySelector(Op.MAIN_CLEAR_BUTTON);t instanceof HTMLButtonElement&&(t.classList.remove(Rm),t.setAttribute("inert","true"))}else{const t=e.querySelector(Op.MAIN_CLEAR_BUTTON);t instanceof HTMLButtonElement&&(t.classList.add(Rm),t.removeAttribute("inert"))}}}class nf{static generateResultsHTML(e,t,s,i,n,a){if(!e||0===e.length||e.length>sg)return"";const r=e.map(e=>{const s=Fr.A.sanitize(e.url,{ALLOWED_TAGS:[]}),i=Fr.A.sanitize(e.image??"",{ALLOWED_TAGS:[]}),n=Fr.A.sanitize(a.defaultThumbnail??"",{ALLOWED_TAGS:[]}),r=i||n,o=Fr.A.sanitize(e.title,{ALLOWED_TAGS:[]}
3),l=Fr.A.sanitize(e.shortDescription,{ALLOWED_TAGS:[]}),c=this.formatCategory(e.primaryTag??"",t),d=this.formatResourcesType(e.allTags??[],t),h=e.publicationDate&&!a.hidePublicationDate?this.formatDate(e.publicationDate):"",u=[d,e.readTime?this.formatReadTime(e.readTime,a.minutesToReadLabel):"",h].filter(e=>""!==e).join(` <span class="${np}"></span> `);return`\n        <div class="${Km}">\n      <a href="${s}" class="${Ym}">\n        <div class="${jm}">\n          <div class="${Zm}">\n          ${r?`<img src="${r}" alt="${mg}"\n                  loading="${wg}" class="${Jm}">`:`<div class="${op}"></div>`}\n          </div>\n        </div>\n        <div class="${Xm}">\n          <p class="${ap} ${rp}">${c}</p>\n          <div class="${ep}">\n            <h3 class="${tp} ${Lp} ${yp}">\n              <span>${o}</span>\n            </h3>\n          </div>\n          <p class="${sp}">${l}</p>\n          <div class="${Qm}">\n            ${u}\n          </div>\n        </div>\n      </a>\n      </div>\n    `}).join(""),o=s>1?this.generatePaginationHTML(s,i,n):"";return`\n      <div class="${Ap}"></div>\n        <div class="${lp}">\n          ${r}\n        </div>\n        <div class="${_p}"></div>\n       <div class="${Cp}"></div>\n        ${o}\n    `}static generatePaginationHTML(e,t,s){const i=Math.max(1,Math.min(e,ng)),n=Math.max(1,Math.min(t,i)),a=this.generatePageNumbers(i,n),r=1===n,o=n===i,l=sf.getTranslation(s.translations,"current-page","page"),c=a.map(e=>e.isEllipsis?`<span class="${Tp}">...</span>`:`\n          <button class="${Ep} ${up}\n                          ${e.isActive?Pm:mg}"\n                  data-page="${e.pageNumber}"\n                  aria-label="${sf.getTranslation(s.translations,"go-to-page","Go to page")} ${e.pageNumber}"\n                  ${e.isActive?`aria-current="${l}"`:mg}>\n            ${e.pageNumber}\n          </button>\n        `).join("");return`\n      <div class="${cp}" data-pagination>\n        <div class="${dp}">\n          <div class="${hp}">\n            <button class="${up} ${mp}"\n                    data-page="first"\n                    aria-label="${sf.getTranslation(s.translations,"go-to-first-page","Go to first page")}"\n                    ${r?Gp:mg}>\n              <span class="${wp} ${Np}"></span>\n            </button>\n\n            <button class="${up} ${pp}"\n                    data-page="prev"\n                    aria-label="${sf.getTranslation(s.translations,"go-to-previous-page","Go to previous page")}"\n                    ${r?Gp:mg}>\n              <span class="${wp} ${Rp}"></span>\n            </button>\n\n            <div class="${bp}">\n              ${c}\n            </div>\n\n            <button class="${up} ${gp}"\n                    data-page="next"\n                    aria-label="${sf.getTranslation(s.translations,"go-to-next-page","Go to next page")}"\n                    ${o?Gp:mg}>\n              <span class="${wp} ${Dp}"></span>\n            </button>\n\n            <button class="${up} ${fp}"\n                    data-page="last"\n                    aria-label="${sf.getTranslation(s.translations,"go-to-last-page","Go to last page")}"\n                    ${o?Gp:mg}>\n              <span class="${wp} ${Ip}"></span>\n            </button>\n          </div>\n        </div>\n      </div>\n    `}static generateFilterGroupHTML(e,t,s,i=new Set,n=1,a=!0,r=!1){const o=!a&&i.has(e.value),l=this.createFilterGroupContainer(e,o,n,a),c=this.createFilterGroupHeader(e,o,a),d=this.createOptionsContainer(t,o,a),h=this.createOptionsList(o,a);return this.populateOptionsList(h,e,s,i,n),this.assembleFilterGroup(l,c,d,h,a,r),l}static createFilterGroupContainer(e,t,s,i){const n=!i&&s>=2?` filter__form-item--group-level-${s}`:"",a=t?" filter__form-item--expanded":"",r=document.createElement("li");return r.className=`filter__form-item filter__form-item--group${n}${a}`,r.dataset.testid=`filter-group:${e.name}`,e.value&&(r.dataset.filterValue=e.value),r}static createFilterGroupHeader(e,t,s){const i=document.createElement("button");i.className=s?"filter__form-item-toggle-button filter__form-item-toggle-button--main-filter-group":"filter__form-item-toggle-button",i.setAttribute("aria-expanded",t?"true":"false"),i.setAttribute("aria-haspopup","true");const n=document.createElement("span");return n.className="filter__form-item-toggle-button-label",n.textContent=e.name,i.appendChild(n),i}static createOptionsContainer(e,t,s){const i=document.createElement("div");return i.className="filter__form-items-list search-category-filter-list filter__form-items-list--left",i.id=`filter-options-${e}`,i.setAttribute("aria-hidden",s||!t?"true":"false"),i}static createOptionsList(e,t){const s=document.createElement("ul");return s.className="filter__form-items-list--list-items",!t&&e&&(s.style.minHeight="0"),s}static populateOptionsList(e,t,s,i,n){if(!t.children||0===t.children.length)return;(t.children.length>
3ag?t.children.slice(0,ag):t.children).forEach((t,a)=>{const r=this.createOptionElement(t,a,s,i,n);e.appendChild(r)})}static createOptionElement(e,t,s,i,n){return e.children&&e.children.length>0?this.generateFilterGroupHTML({name:e.name,baseName:e.baseName,value:e.value,children:e.children},t,s,i,n+1,!1):this.generateFilterOptionHTML(e,s)}static assembleFilterGroup(e,t,s,i,n,a=!1){n?this.setupMainFilterGroup(s,i,a):s.appendChild(i),e.appendChild(t),e.appendChild(s)}static setupMainFilterGroup(e,t,s=!1){const i=this.createScrollWrapper(t);if(e.appendChild(i),!s){const t=this.createButtonsContainer();e.appendChild(t)}}static createScrollWrapper(e){const t=document.createElement("div");t.className="custom-scroll";const s=document.createElement("div");return s.className="scroll-container scroll-y",s.setAttribute("tabindex","-1"),s.appendChild(e),t.appendChild(s),t}static createButtonsContainer(){const e=document.createElement("div");e.className="filter__form--btn_div";const t=this.createClearButton(),s=this.createSubmitButton();return e.appendChild(t),e.appendChild(s),e}static createClearButton(){const e=document.createElement("button");e.className="btn-text text-link-teal",e.dataset.dtmId="button";const t=document.querySelector(".insight-results__translations"),s=Fr.A.sanitize(t?.dataset.clearAll??"Clear all",{ALLOWED_TAGS:[]});return e.dataset.dtmData=s,e.innerHTML=Fr.A.sanitize(`<span class="clear-btn-label">${s}</span>`,{ALLOWED_TAGS:["span"],ALLOWED_ATTR:["class"]}),e}static createSubmitButton(){const e=document.createElement("button");e.className="btn btn-teal result-btn",e.dataset.dtmId="button";const t=document.querySelector(".insight-results__translations"),s=Fr.A.sanitize(t?.dataset.seeResults??"See results",{ALLOWED_TAGS:[]});return e.dataset.dtmData=s,e.innerHTML=Fr.A.sanitize(`<span>${s}</span>`,{ALLOWED_TAGS:["span"],ALLOWED_ATTR:[]}),e}static generateFilterOptionHTML(e,t){const s=document.createElement(qg);s.className=Bm,s.setAttribute(Up,`filter-checkbox:${e.name}`);const i=document.createElement(Ug);if(!(i instanceof HTMLInputElement))throw new TypeError("Failed to create HTMLInputElement");i.type=Hg,i.id=e.value,i.value=e.value,i.setAttribute(Fp,e.name),i.checked=t.has(e.value),i.addEventListener("keydown",e=>{e.key===I.ENTER&&(e.preventDefault(),i.checked=!i.checked,i.dispatchEvent(new Event("change",{bubbles:!0})))});const n=document.createElement(zg);if(!(n instanceof HTMLLabelElement))throw new TypeError("Failed to create HTMLLabelElement");n.htmlFor=i.id;const a=document.createElement($g);return a.textContent=e.name,n.appendChild(a),s.appendChild(i),s.appendChild(n),s}static generatePageNumbers(e,t){return window.innerWidth<600?this.generateAdvancedPaginationMobile(e,t):e>7?this.generateAdvancedPagination(e,t):this.generateSimplePagination(e,t)}static generateSimplePagination(e,t){const s=[],i=Math.max(1,Math.min(e,ng));for(let e=1;e<=i;e++)s.push({pageNumber:e,isActive:e===t,isEllipsis:!1});return s}static generateAdvancedPagination(e,t){const s=[],i=Math.max(1,Math.min(e,ng)),n=Math.max(1,Math.min(t,i));let a,r;s.push({pageNumber:1,isActive:1===n,isEllipsis:!1}),n>3&&s.push({isEllipsis:!0}),n<=2?(a=2,r=3):n>=i-1?(a=i-2,r=i-1):(a=n-1,r=n+1),a=Math.max(2,a),r=Math.min(i-1,r);const o=Math.max(1,Math.min(a,ng)),l=Math.max(1,Math.min(r,ng));for(let e=o;e<=l;e++)s.push({pageNumber:e,isActive:e===n,isEllipsis:!1});return n<i-2&&s.push({isEllipsis:!0}),i>1&&s.push({pageNumber:i,isActive:n===i,isEllipsis:!1}),s}static generateAdvancedPaginationMobile(e,t){const s=[],i=Math.max(1,Math.min(e,ng)),n=Math.max(1,Math.min(t,i));if(i<=4){for(let e=1;e<=i;e++)s.push({pageNumber:e,isActive:e===n,isEllipsis:!1});return s}return 1===n?(s.push({pageNumber:1,isActive:!0,isEllipsis:!1}),i>1&&s.push({isEllipsis:!0},{pageNumber:i,isActive:!1,isEllipsis:!1})):n===i?s.push({pageNumber:1,isActive:!1,isEllipsis:!1},{isEllipsis:!0},{pageNumber:i,isActive:!0,isEllipsis:!1}):s.push({pageNumber:n,isActive:!0,isEllipsis:!1},{isEllipsis:!0},{pageNumber:i,isActive:!1,isEllipsis:!1}),s}static formatDate(e){try{const t=new Date(e).toLocaleDateString("en-GB",{day:"numeric",month:"short",year:"numeric"}),s=Fr.A.sanitize(t,{ALLOWED_TAGS:[]});return`<span class="${ip}">${s}</span>`}catch{const e=document.querySelector(".insight-results__translations"),t=e?.dataset.dateFallback??"Date",s=Fr.A.sanitize(t,{ALLOWED_TAGS:[]});return`<span class="${ip}">${s}</span>`}}static formatCategory(e,t){if(!t?.[e])return"";const s=t[e];return Fr.A.sanitize(s,{ALLOWED_TAGS:[]})}static formatResourcesType(e,t){if(!e||0===e.length||!t)return"";return(e.length>ag?e.slice(0,ag):e).map(e=>
3t[e]).filter(Boolean).filter((e,t,s)=>s.indexOf(e)===t).map(e=>{const t=Fr.A.sanitize(e,{ALLOWED_TAGS:[]});return`<span class="${ip}">${t}</span>`}).join(` <span class="${np}"></span> `)}static formatTagList(e,t){if(!e||0===e.length||!t)return"";const s=(e.length>ag?e.slice(0,ag):e).filter(e=>t[e]).map(e=>{const s=Fr.A.sanitize(e,{ALLOWED_TAGS:[]}),i=Fr.A.sanitize(t[e],{ALLOWED_TAGS:[]}),n=document.querySelector(".insight-results__translations"),a=Fr.A.sanitize(n?.dataset.remove??"Remove",{ALLOWED_TAGS:[]}),r=Fr.A.sanitize(`${a} ${i}`,{ALLOWED_TAGS:[]});return`<li class="${Gm}">\n          <button class="${$m}" data-tag="${s}"\n            aria-label="${r}">${i}\n            <span class="${wp} ${Mp}"></span>\n          </button>\n        </li>`}).join(""),i=document.querySelector(".insight-results__translations"),n=Fr.A.sanitize(i?.dataset.clearAll??"Clear all",{ALLOWED_TAGS:[]});return s+`<li class="${Gm}">\n      <button class="${km} ${Sp}\n                     ${vp} ${qm}">\n        ${n}\n      </button>\n    </li>`}static formatReadTime(e,t){const s=`${Number.isFinite(e)&&e>=0?Math.floor(e):0} ${Fr.A.sanitize(t,{ALLOWED_TAGS:[]})}`,i=Fr.A.sanitize(s,{ALLOWED_TAGS:[]});return`<span class="${ip}">${i}</span>`}static createSearchTag(e){const t=Fr.A.sanitize(e,{ALLOWED_TAGS:[]}),s=`${$m} ${zm}`,i=document.querySelector(".insight-results__translations"),n=Fr.A.sanitize(i?.dataset.removeSearch??"Remove search",{ALLOWED_TAGS:[]}),a=Fr.A.sanitize(`${n} '${t}'`,{ALLOWED_TAGS:[]});return`<li class="${Gm}">\n      <button class="${s}" data-search-phrase="${t}" aria-label="${a}">\n        ${`"${t}" <span class="${wp} ${Mp}"></span>`}\n      </button>\n    </li>`}}class af{$this;getSelectedFilters;getExpandedFilters;onBannerSearchSubmit;onClearAllFilters;onApplyFilters;elements;bannerConfig=null;dontShowButtonsDesktop=!1;hasMultipleFilterGroupsLevel1=!1;constructor(e,t,s,i,n,a){this.$this=e,this.getSelectedFilters=t,this.getExpandedFilters=s,this.onBannerSearchSubmit=i,this.onClearAllFilters=n,this.onApplyFilters=a,this.elements={bannerSearchBoxList:this.safeQuerySelector(Op.BANNER_SEARCH_BOX_LIST,HTMLElement),filterForm:this.safeQuerySelector(Op.FILTER_FORM,HTMLElement),filterToggleButton:this.safeQuerySelector(Op.FILTER_TOGGLE_BUTTON,HTMLElement),clearButton:this.safeQuerySelector(Op.BANNER_CLEAR_BUTTON,HTMLElement),applyButton:this.safeQuerySelector(Op.BANNER_APPLY_BUTTON,HTMLElement),contentContainer:this.safeQuerySelector(Op.BANNER_CONTENT_CONTAINER,HTMLElement),searchInput:this.safeQuerySelector(Op.MAIN_SEARCH_INPUT,HTMLInputElement)}}safeQuerySelector(e,t){const s=this.$this.querySelector(e);return s instanceof t?s:null}initBanner(e){this.elements.bannerSearchBoxList&&this.elements.filterToggleButton&&this.elements.contentContainer&&(this.loadBannerConfig(e),this.setInitialAriaHidden(),this.bindBannerEvents())}loadBannerConfig(e){try{if(e){const t=JSON.parse(e.textContent??pg);if("object"!=typeof t||null===t)throw new Error("Invalid config format");this.bannerConfig=t}}catch(e){throw new Error("Failed to parse category search config",{cause:e})}}getBannerConfig(){return this.bannerConfig}setInitialAriaHidden(){this.elements.filterForm&&(window.innerWidth<eg?(this.elements.filterToggleButton?.setAttribute(Pp,Ig),this.elements.filterToggleButton?.setAttribute(zp,Dg)):(this.elements.filterToggleButton?.setAttribute(Pp,Ig),this.elements.filterToggleButton?.setAttribute(zp,Rg)))}bindBannerEvents(){this.elements.filterToggleButton?.addEventListener(Yg,()=>{window.innerWidth<eg&&(this.elements.filterToggleButton?.classList.contains(Mm)?this.closeBannerModal():this.openBannerModal())}),this.elements.clearButton?.addEventListener(Yg,()=>this.onClearAllFilters()),this.elements.applyButton?.addEventListener(Yg,()=>{this.onApplyFilters(),this.closeBannerModal()}),this.documentCloseBannerModal()}documentCloseBannerModal(){document.addEventListener(Yg,e=>{const{target:t}=e;t&&t instanceof HTMLElement&&this.elements.bannerSearchBoxList?.classList.contains(xm)&&window.innerWidth<Jp&&!this.elements.bannerSearchBoxList?.contains(t)&&!this.elements.filterToggleButton?.contains(t)&&this.closeBannerModal()}),document.addEventListener(jg,e=>{e instanceof KeyboardEvent&&e.key===I.ESC&&this.elements.bannerSearchBoxList?.classList.contains(xm)&&window.innerWidth<Jp&&this.closeBannerModal()}),globalThis.addEventListener(Jg,()=>{this.setInitialAriaHidden()})}openBannerModal(){this.elements.bannerSearchBoxList&&window.innerWidth<eg&&(this.elements.filterToggleButton?.classList.add(Mm),this.elements.bannerSearchBoxList.classList.add(xm),this.elements.filterForm?.classList.add(xm),this.elements.filterForm?.setAttribute(xp,Ig),this.elements.filterToggleButton?.setAttribute(Pp,Ng),document.body.style.overflow=Im)}closeBannerModal(){this.elements.bannerSearchBoxList&&window.innerWidth<eg&&(this.elements.filterToggleButton?.classList.remove(Mm),this.elements.bannerSearchBoxList.classList.remove(xm),this.elements.filterForm?.classList.remove(xm),this.elements.filterForm?.setAttribute(xp,Ng),this.elements.filterToggleButton?.setAttribute(Pp,Ig),document.body.style.overflow=mg)}stopBannerSearchSuggestions(){const e=this.$this.querySelector(Op.SEARCH_BOX);if(!(e&&e instanceof HTMLElement))return;const t=e;
3t.searchBoxInstance?.stopFetchSuggestions&&t.searchBoxInstance.stopFetchSuggestions()}hideBannerSearchSuggestions(){const e=this.$this.querySelector(Op.SEARCH_BOX);if(!e)return;const t=e.querySelector(Op.MAIN_SUGGESTIONS_CONTAINER);t&&t.classList.remove(xm);const s=e.querySelector(Op.MAIN_SUGGESTIONS_LIST);s&&(s.innerHTML="")}generateFilterGroups(e,t,s,i){this.bannerConfig&&this.elements.contentContainer&&(this.elements.contentContainer.innerHTML="",this.bannerConfig.filters.forEach((n,a)=>{n.children&&n.children.length>0&&this.createAndBindFilterGroup(n,a,e,t,s,i)}),this.afterCreateFilterGroup(),setTimeout(()=>{B.refresh()},rg))}createAndBindFilterGroup(e,t,s,i,n,a){const r=nf.generateFilterGroupHTML(e,t,this.getSelectedFilters(),this.getExpandedFilters(),1,!0,this.dontShowButtonsDesktop);this.elements.contentContainer&&this.elements.contentContainer.appendChild(r),this.bindCheckboxEvents(e,r,t,s),this.bindButtonEvents(e,r,n,a),this.bindNestedGroupEvents(e,r,t,s,i)}bindCheckboxEvents(e,t,s,i,n){e.children.forEach(e=>{if(e.children&&e.children.length>0){const n=t.querySelector(`[data-testid="filter-group:${e.name}"]`);n instanceof HTMLElement&&this.bindCheckboxEvents({name:e.name,baseName:e.baseName,value:e.value,children:e.children},n,s,i,e)}else{const a=this.safeQuerySelectorFrom(t,`#${CSS.escape(e.value)}`,HTMLInputElement);a&&a.addEventListener(Qg,()=>{i(a,e,s,n)})}})}bindButtonEvents(e,t,s,i){const n=this.safeQuerySelectorFrom(t,".btn-text",HTMLButtonElement),a=this.safeQuerySelectorFrom(t,".btn.btn-teal",HTMLButtonElement);n&&n.addEventListener(Yg,()=>{s(e)}),a&&a.addEventListener(Yg,()=>{i(t)})}bindNestedGroupEvents(e,t,s,i,n){this.bindNestedGroupEventsRecursive(e.children,t,s,i,n)}bindNestedGroupEventsRecursive(e,t,s,i,n){e.forEach(e=>{if(e.children&&e.children.length>0){const a=t.querySelector(`[data-testid="filter-group:${e.name}"]`);if(a instanceof HTMLElement){const t=a.querySelector(Op.BANNER_FILTER_HEADER);t instanceof HTMLElement&&(t.hasAttribute($p)||(t.setAttribute($p,"true"),t.addEventListener(Yg,t=>{t.stopPropagation(),n(a,e,s)}))),this.bindNestedGroupEventsRecursive(e.children,a,s,i,n)}}})}setHasMultipleFilterGroupsLevel1(){const e=this.elements.contentContainer?.querySelectorAll(Op.BANNER_FILTER_GROUP_LEVEL_1);e&&e.length>1&&(this.hasMultipleFilterGroupsLevel1=!0)}afterCreateFilterGroup(){const e=this.elements.contentContainer?.querySelectorAll(Op.BANNER_FILTER_GROUP);e&&0!==e.length&&(this.setHasMultipleFilterGroupsLevel1(),e instanceof NodeList&&this.filterGroups(e),document.addEventListener(Yg,e=>{const{target:t}=e;if(!(t&&t instanceof HTMLElement))return;const s=null!==this.elements.filterForm?.querySelector(`.${Om}`);!t.closest(Op.BANNER_FILTER_OPTIONS)&&!t.closest(Op.FILTER_FORM_ITEM)&&window.innerWidth>=Jp&&s&&this.closeAllFilterGroups()}))}filterGroups(e){e.forEach(e=>{this.setupFilterGroup(e)})}setupFilterGroup(e){const t=e.parentElement?.classList.contains(Vm);if(!t)return;const s=this.safeQuerySelectorFrom(e,Op.BANNER_FILTER_HEADER,HTMLElement),i=this.safeQuerySelectorFrom(e,Op.BANNER_FILTER_OPTIONS,HTMLElement);if(!s||!i)throw new Error("Required filter group elements not found");s.addEventListener(Yg,()=>{this.handleFilterGroupClick(e,s,i)}),i.addEventListener("focusout",t=>{const n=t.relatedTarget;if(n&&!n?.closest(Op.FILTER_FORM_ITEMS_LIST)){const t=e.classList.contains(Om),n=window.innerWidth<=Jp;t&&this.collapseFilterGroup(e,s,i,n)}})}handleFilterGroupClick(e,t,s){const i=e.classList.contains(Om),n=window.innerWidth<=Jp;this.checkPositionMenu(e),i||this.closeAllFilterGroups(),i?this.collapseFilterGroup(e,t,s,n):this.expandFilterGroup(e,t,s,n)}collapseFilterGroup(e,t,s,i){e.classList.remove(Om),t.setAttribute(Pp,"false"),s.setAttribute(xp,"true"),i&&!this.isNestedLevel2Group(e)&&this.hasMultipleFilterGroupsLevel1&&P.slideUp(s)}expandFilterGroup(e,t,s,i){e.classList.add(Om),t.setAttribute(Pp,"true"),s.setAttribute(xp,"false"),i&&!this.isNestedLevel2Group(e)&&this.hasMultipleFilterGroupsLevel1&&P.slideDown(s),this.recalculateCustomScroll(s)}checkPositionMenu(e){const t=e.querySelector(Op.BANNER_FILTER_OPTIONS);t&&t.getBoundingClientRect().right>window.innerWidth&&t.classList.add(Um)}isNestedLevel2Group(e){return e.classList.contains(Wm)}recalculateCustomScroll(e){setTimeout(()=>{e.querySelectorAll(`.${Hm}
3`).forEach(e=>{B.recalculateElement(e)})},og)}closeAllFilterGroups(){if(!this.elements.contentContainer)return;const e=this.elements.contentContainer.querySelectorAll(Op.BANNER_FILTER_OPTIONS),t=this.elements.contentContainer.querySelectorAll(Op.BANNER_FILTER_HEADER),s=window.innerWidth<=Jp;e.forEach((e,i)=>{if(!(e instanceof HTMLElement))return;const n=t[i];if(!(n instanceof HTMLElement))return;const a=e,r=a.closest(Op.BANNER_FILTER_GROUP);if(!(r instanceof HTMLElement))return;const o=r.parentElement?.classList.contains(Vm);o&&r.classList.contains(Om)&&this.collapseExpandedFilterGroup(r,n,a,s)})}collapseExpandedFilterGroup(e,t,s,i){i&&!this.isNestedLevel2Group(e)?P.slideUp(s,()=>{e.classList.remove(Om)}):e.classList.remove(Om),t.setAttribute(Pp,"false"),s.setAttribute(xp,"true")}safeQuerySelectorFrom(e,t,s){const i=e.querySelector(t);return i instanceof s?i:null}getContentContainer(){return this.elements.contentContainer}getBannerSearchBoxList(){return this.elements.bannerSearchBoxList}setDontShowButtonsDesktop(e){this.dontShowButtonsDesktop=e}getDontShowButtonsDesktop(){return this.dontShowButtonsDesktop}}const rf=e=>t=>t.value===e.value,of=e=>"children"in e&&Array.isArray(e.children);class lf{$this;getContentContainer;selectedFilters=new Set;expandedFilters=new Set;nestedFilterState={};originalBannerConfig=null;desktopDraftFilters=new Set;desktopDraftExpandedFilters=new Set;desktopDraftNestedState={};dontShowButtonsDesktop=!1;constructor(e,t,s=!1){this.$this=e,this.getContentContainer=t,this.dontShowButtonsDesktop=s}initializeNestedState(e){e&&(this.originalBannerConfig=this.deepCloneBannerConfig(e),e.filters.forEach((e,t)=>{this.nestedFilterState[t]={name:e.name,value:e.value,children:[]}}))}getSelectedFilters(){return this.selectedFilters}getExpandedFilters(){return this.expandedFilters}setSelectedFilters(e){this.selectedFilters=e}getDesktopDraftFilters(){return this.desktopDraftFilters}setDesktopDraftFilters(e){this.desktopDraftFilters=e}getDesktopDraftExpandedFilters(){return this.desktopDraftExpandedFilters}setDesktopDraftExpandedFilters(e){this.desktopDraftExpandedFilters=e}getDesktopDraftNestedState(){return this.desktopDraftNestedState}setDesktopDraftNestedState(e){this.desktopDraftNestedState=e}getDontShowButtonsDesktop(){return this.dontShowButtonsDesktop}setDontShowButtonsDesktop(e){this.dontShowButtonsDesktop=e}getCurrentFilterState(){return this.isDesktop()&&!this.dontShowButtonsDesktop?this.desktopDraftFilters:this.selectedFilters}getCurrentExpandedState(){return this.isDesktop()&&!this.dontShowButtonsDesktop?this.desktopDraftExpandedFilters:this.expandedFilters}getCurrentNestedState(){return this.isDesktop()&&!this.dontShowButtonsDesktop?this.desktopDraftNestedState:this.nestedFilterState}isDesktop(){return window.innerWidth>=Jp}clearAllFilters(){this.clearFilterState(),this.clearDesktopDraftState(),this.resetNestedFilterState(),this.uncheckAllCheckboxes(),this.collapseAllExpandedGroups()}clearFilterState(){this.selectedFilters.clear(),this.expandedFilters.clear()}clearDesktopDraftState(){this.desktopDraftFilters.clear(),this.desktopDraftExpandedFilters.clear(),this.desktopDraftNestedState={}}resetNestedFilterState(){Object.keys(this.nestedFilterState).forEach(e=>{const t=Number.parseInt(e);this.resetFilterGroupState(t)})}resetFilterGroupState(e){this.originalBannerConfig?.filters[e]&&(this.nestedFilterState[e]={name:this.originalBannerConfig.filters[e].name,value:this.originalBannerConfig.filters[e].value,children:[]})}uncheckAllCheckboxes(){const e=this.getContentContainer()?.querySelectorAll(Op.INPUT_CHECKBOX);if(!e)return;Array.from(e).filter(e=>e instanceof HTMLInputElement).forEach(e=>{e.checked=!1})}collapseAllExpandedGroups(){const e=this.getContentContainer()?.querySelectorAll(`.${Om}`);e&&e.forEach(e=>{e instanceof HTMLElement&&this.collapseExpandedGroup(e)})}collapseExpandedGroup(e){e.classList.remove(Om);const t=e.querySelector(Op.BANNER_FILTER_HEADER),s=e.querySelector(Op.BANNER_FILTER_OPTIONS);t&&t.setAttribute(Pp,Ig),s&&s.setAttribute(xp,Ng)}clearFilterGroup(e){this.clearFilterGroupRecursive(e.children),this.collapseNestedFilterGroups()}
3clearFilterGroupRecursive(e){e.forEach(e=>{this.selectedFilters.delete(e.value),this.expandedFilters.delete(e.value);const t=this.safeQuerySelector(`#${CSS.escape(e.value)}`,HTMLInputElement);t&&(t.checked=!1),e.children&&e.children.length>0&&this.clearFilterGroupRecursive(e.children)})}collapseNestedFilterGroups(){const e=this.getContentContainer();if(!e)return;e.querySelectorAll(Op.FILTER_GROUP_WITH_DATA_VALUE).forEach(e=>{if(!(e instanceof HTMLElement))return;const t=e.querySelector(Op.BANNER_FILTER_HEADER),s=e.querySelector(Op.BANNER_FILTER_OPTIONS);e.classList.contains(Om)&&e.classList.remove(Om),t&&t.setAttribute(Pp,Ig),s&&s.setAttribute(xp,Ng)})}handleNestedCheckboxChange(e,t,s,i){const n=this.findFilterOptionByValue(t.value);if(!n)return;const a=n.children&&n.children.length>0;e.checked?(this.selectedFilters.add(t.value),this.addFilterToNestedState(t,s,i)):a?this.removeFilterAndAllDescendants(n,s,i):(this.selectedFilters.delete(t.value),this.removeFilterFromNestedState(t,s,i))}handleNestedGroupToggle(e,t,s){const i=e.classList.contains(Om),n=e.querySelector(Op.BANNER_FILTER_HEADER),a=e.querySelector(Op.BANNER_FILTER_OPTIONS);if(!n||!a)return;const r=window.innerWidth<=Jp;if(i)e.classList.remove(Om),n.setAttribute(Pp,Ig),a.setAttribute(xp,Ng),this.expandedFilters.delete(t.value),this.removeFilterAndDescendants(t,s),r&&a instanceof HTMLElement&&!this.isNestedLevel2Group(e)&&P.slideUp(a);else{if(e.classList.add(Om),n.setAttribute(Pp,Ng),a.setAttribute(xp,Ig),this.expandedFilters.add(t.value),!this.selectedFilters.has(t.value)){this.selectedFilters.add(t.value);const e={name:t.name,baseName:t.baseName,value:t.value,children:[]};this.addFilterToNestedState(e,s)}r&&a instanceof HTMLElement&&!this.isNestedLevel2Group(e)&&P.slideDown(a)}}removeFilterAndDescendants(e,t){this.removeFilterAndAllDescendants(e,t)}removeFilterByValue(e){const t=this.findFilterOptionByValue(e);if(!t)return this.selectedFilters.delete(e),this.expandedFilters.delete(e),this.uncheckFilterCheckbox(e),!1;const s=this.findFilterGroupIndex(e);if(-1===s)return this.selectedFilters.delete(e),this.expandedFilters.delete(e),this.uncheckFilterCheckbox(e),!1;if(t.children&&t.children.length>0){const i=this.getAllDescendantValues(t);this.selectedFilters.delete(e),this.expandedFilters.delete(e),this.uncheckFilterCheckbox(e),this.collapseFilterGroup(e),i.forEach(e=>{this.selectedFilters.delete(e),this.expandedFilters.delete(e),this.uncheckFilterCheckbox(e)}),this.removeFilterFromNestedState(t,s),this.removeDescendantsFromNestedState(t,s)}else this.selectedFilters.delete(e),this.expandedFilters.delete(e),this.uncheckFilterCheckbox(e),this.removeFilterFromNestedState(t,s);return!0}collapseFilterGroup(e){const t=this.getContentContainer();if(!t)return;const s=t.querySelector(`[data-filter-value="${CSS.escape(e)}"]`);if(!(s instanceof HTMLElement))return;const i=s.querySelector(Op.BANNER_FILTER_HEADER),n=s.querySelector(Op.BANNER_FILTER_OPTIONS);s.classList.contains(Om)&&s.classList.remove(Om),i&&i.setAttribute(Pp,Ig),n&&n.setAttribute(xp,Ng)}buildNestedStateFromSelectedFilters(e){e&&e.filters.forEach((e,t)=>{this.nestedFilterState[t]={name:e.name,value:e.value,children:[]},this.addSelectedFiltersToNested(e.children,this.nestedFilterState[t])})}addSelectedFiltersToNested(e,t){e.forEach(e=>{if(this.selectedFilters.has(e.value))if(e.children&&e.children.length>0){const s={name:e.name,value:e.value,children:[]};this.expandedFilters.add(e.value),this.addSelectedFiltersToNested(e.children,s),t.children.push(s)}else t.children.push(e);else if(e.children&&e.children.length>0){const s={name:e.name,value:e.value,children:[]};this.addSelectedFiltersToNested(e.children,s),s.children.length>0&&(t.children.push(s),this.expandedFilters.add(e.value))}})}restoreNestedFilterStates(e){e.querySelectorAll(Op.FILTER_GROUP_WITH_DATA_VALUE).forEach(e=>{if(!(e instanceof HTMLElement))return;const{filterValue:t}=e.dataset;if(!t)return;if(this.expandedFilters.has(t)){const t=e.querySelector(Op.BANNER_FILTER_HEADER),s=e.querySelector(Op.BANNER_FILTER_OPTIONS);t&&s&&(e.classList.add(Om),t.setAttribute(Pp,Ng),s.setAttribute(xp,Ig),this.restoreNestedFilterStates(e))}})}buildFilterNamesMap(e){const t={...e};if(!this.originalBannerConfig?.filters)return t;const s=e=>
3{e.forEach(e=>{t[e.value]=e.name,e.children&&e.children.length>0&&s(e.children)})};return this.originalBannerConfig.filters.forEach(e=>{s(e.children)}),t}sortFiltersHierarchically(e){if(!this.originalBannerConfig?.filters)return e;const t=[],s=new Set,i=new Set(e);return e.forEach(e=>{s.has(e)||this.isChildOfAnyFilter(e,i)||this.addFilterAndChildren(e,t,s,i)}),t}updateFilterCount(e){const t=this.$this?.querySelectorAll(Op.COUNT_BANNER_FILTERS),s=Array.from(t),i=Number.isInteger(e)&&e>=0?e:0,n=i>0?`&nbsp;(${i})`:"",a=Fr.A.sanitize(n,{ALLOWED_TAGS:[]});s.forEach(e=>{e.innerHTML=a})}addFilterToNestedState(e,t,s){if(!this.nestedFilterState[t]){const e=this.originalBannerConfig?.filters[t];this.nestedFilterState[t]={name:e?.name??"",value:e?.value??"",children:[]}}const i={name:e.name,baseName:e.baseName,value:e.value,children:[]};if(s){const e={name:s.name,baseName:s.baseName,value:s.value,children:[]};this.addToParentInNested(this.nestedFilterState[t],e,i)}else{const e=rf(i);this.nestedFilterState[t].children.some(e)||this.nestedFilterState[t].children.push(i)}}addToParentInNested(e,t,s){const i=rf(t),n=[...e.children];if(!n.some((e,a)=>{if(i(e)){if(of(e)){const t=e,i=rf(s);t.children.some(i)||t.children.push(s)}else{const e={name:t.name,value:t.value,children:[s]};n[a]=e}return this.expandedFilters.add(t.value),!0}return of(e)&&this.addToParentInNested(e,t,s),!1})){const e={name:t.name,value:t.value,children:[s]};n.push(e),this.expandedFilters.add(t.value)}Object.assign(e,{children:n})}
3removeFilterFromNestedState(e,t,s){if(this.nestedFilterState[t])if(s)this.removeFromParentInNested(this.nestedFilterState[t],s,e);else{const s=rf(e);this.nestedFilterState[t].children=this.nestedFilterState[t].children.filter(e=>!s(e))}}removeFromParentInNested(e,t,s){const i=rf(t),n=rf(s);let a=[...e.children];a.forEach(e=>{if(i(e)&&of(e)){const s=e;return s.children=s.children.filter(e=>!n(e)),void(0===s.children.length&&(this.expandedFilters.delete(t.value),a=a.filter(e=>!i(e))))}of(e)&&this.removeFromParentInNested(e,t,s)}),Object.assign(e,{children:a})}removeFilterAndAllDescendants(e,t,s){const i=this.getAllDescendantValues(e);this.selectedFilters.delete(e.value),this.expandedFilters.delete(e.value),this.uncheckFilterCheckbox(e.value),i.forEach(e=>{this.selectedFilters.delete(e),this.expandedFilters.delete(e),this.uncheckFilterCheckbox(e)}),this.removeFilterFromNestedState(e,t,s),this.removeDescendantsFromNestedState(e,t)}removeDescendantsFromNestedState(e,t){if(!e.children||0===e.children.length)return;this.nestedFilterState[t]&&e.children.forEach(e=>{this.removeFilterFromNestedState(e,t),this.removeDescendantsFromNestedState(e,t)})}getAllDescendantValues(e){const t=[];return e.children&&e.children.length>0&&e.children.forEach(e=>{t.push(e.value,...this.getAllDescendantValues(e))}),t}findFilterOptionByValue(e){if(!this.originalBannerConfig?.filters)return null;const t=s=>{const i=s.find(t=>t.value===e);return i||s.reduce((e,s)=>e||(s.children&&s.children.length>0?t(s.children):null),null)};return this.originalBannerConfig.filters.reduce((e,s)=>e||t(s.children),null)}findFilterGroupIndex(e){return this.originalBannerConfig?.filters?this.originalBannerConfig.filters.findIndex(t=>null!==this.findFilterOptionInGroup(e,t.children)):-1}findFilterOptionInGroup(e,t){return t.reduce((t,s)=>t||(s.value===e?s:s.children&&s.children.length>0?this.findFilterOptionInGroup(e,s.children):null),null)}uncheckFilterCheckbox(e){const t=this.safeQuerySelector(`#${CSS.escape(e)}`,HTMLInputElement);t&&(t.checked=!1)}safeQuerySelector(e,t){const s=this.getContentContainer();if(!s)return null;const i=s.querySelector(e);return i instanceof t?i:null}deepCloneBannerConfig(e){return structuredClone(e)}isNestedLevel2Group(e){return e.classList.contains(Wm)}findFilterInConfig(e){if(!this.originalBannerConfig?.filters)return null;const{filters:t}=this.originalBannerConfig;return t.reduce((t,s)=>t||this.searchInOptions(s.children,e),null)}searchInOptions(e,t){const s=e.find(e=>e.value===t);return s||e.reduce((e,s)=>e||(s.children&&s.children.length>0?this.searchInOptions(s.children,t):null),null)}isChildOfAnyFilter(e,t){return!!this.originalBannerConfig?.filters&&this.originalBannerConfig.filters.some(s=>this.checkInChildren(s.children,e,t))}checkInChildren(e,t,s){return e.some(e=>!!(e.children&&e.children.length>0)&&(e.children.some(e=>e.value===t)?s.has(e.value):this.checkInChildren(e.children,t,s)))}addFilterAndChildren(e,t,s,i){if(s.has(e))return;const n=this.findFilterInConfig(e);n&&(t.push(e),s.add(e),n.children&&n.children.length>0&&n.children.forEach(e=>{i.has(e.value)&&!s.has(e.value)&&this.addFilterAndChildren(e.value,t,s,i)}))}}class cf{$this;onTagRemove;onSearchPhraseRemove;onClearAll;constructor(e,t,s,i){this.$this=e,this.onTagRemove=t,this.onSearchPhraseRemove=s,this.onClearAll=i,this.bindTagListEvents()}bindTagListEvents(){document.addEventListener(Yg,e=>{const{target:t}=e;if(!(t&&t instanceof HTMLElement))return;if(!t.closest(Op.TAG_LIST))return;if(t.classList.contains(qm))return void this.onClearAll();if(!t.classList.contains($m))return;if(t.getAttribute(kp))return void this.onSearchPhraseRemove();const s=t.getAttribute(Hp);s&&this.onTagRemove(s)})}renderTagList(e,t,s,i){this.$this.querySelectorAll(Op.TAG_LIST).forEach(n=>{if(!(n instanceof HTMLElement))return;const a=n,r=e.trim().length>0,o=t&&t[0]?.values.length>0;if(a.innerHTML=mg,a&&(r||o)){let t=mg;if(r&&(t+=nf.createSearchTag(e)),o){t+=nf.formatTagList(s,i)}a.classList.remove(Im),a.innerHTML=Fr.A.sanitize(t,{ALLOWED_TAGS:[qg,Fg,$g],ALLOWED_ATTR:[qp,Hp,kp,Fp]})}else a.classList.add(Im)})}}class df{$this;onPageChange;currentBatch=1;totalPages=0;isLoading=!1;constructor(e,t){this.$this=e,this.onPageChange=t}bindPagination(){const e=this.$this.querySelector(Op.PAGINATION_CONTAINER);e&&(e.removeEventListener(Yg,this.handlePaginationClick),e.addEventListener(Yg,this.handlePaginationClick.bind(this)))}handlePaginationClick=e=>{const{target:t}=e;if(!(t&&t instanceof HTMLElement))return;const s=t.closest(Op.DATA_PAGE_SELECTOR);if(!(s&&s instanceof HTMLButtonElement))return;if(s.disabled||this.isLoading)return;e.preventDefault();const i=s.getAttribute(Bp);let n=this.currentBatch;switch(i){case Og:n=1;break;case xg:n=Math.max(1,this.currentBatch-1);break;case Pg:n=Math.min(this.totalPages,this.currentBatch+1);break;case kg:n=this.totalPages;break;default:{const e=Number.parseInt(i??Mg);e>=1&&e<=this.totalPages&&(n=e);break}}n!==this.currentBatch&&this.goToPage(n)};goToPage(e){this.currentBatch=e,this.onPageChange(e)}getCurrentBatch(){return this.currentBatch}setCurrentBatch(e){this.currentBatch=e}getTotalPages(){return this.totalPages}setTotalPages(e){this.totalPages=e}getIsLoading(){return this.isLoading}setIsLoading(e){this.isLoading=e}}const hf=new class{config=null;constructor(e=null){this.config=e}updateConfig(e){this.config=e}async fetchSearchResults(e){if(!this.config)throw new Error("Search configuration not provided");const t=`${this.config.endpointBase}/api/as/v1/engines/${this.config.engineName}/search.json`,s=this.buildSearchRequest(e);try{const e=await fetch(t,{method:"POST",headers:{"Content-Type":"application/json",...this.config.searchKey&&{Authorization:this.config.searchKey.startsWith("search-")?`Bearer ${this.config.searchKey}`:`Basic ${this.config.searchKey}`}},body:JSON.stringify(s)}),i=await e.json();if(400===e.status&&i.errors&&i.errors.length>0)return{results:[],meta:{page:{current:1,total_pages:0,total_results:0,size:0}}};if(!e.ok)throw new Error(`HTTP error! status: ${e.status}`);return i}catch(e){throw console.error("Failed to fetch search results:",e),e}}buildSearchRequest(e){if(!this.config)throw new Error("Search configuration not provided");const{searchPhrase:t,filters:s,currentBatch:i,resultsPerBatch:n,sortOrder:a,pageType:r}=e,o=[{_score:"desc"}];"PUBLICATION_DATE"===a&&o.push({publication_date:"desc"});const l={query:t,sort:o,search_fields:{custom_title:{},description:{}},filters:{all:[{page_type:[r]},{site_id:[this.config.siteId]}],none:{hide_in_search:["true"]}},page:{size:n,current:i}};
3return s.forEach(({name:e,values:t,filterType:s})=>{const i=t.filter(e=>""!==e);if(i.length>0)if("all_tags"===e){const t=l.filters;t.any=t.any??[],t.any.push({[e]:i})}else{const t="AND"===s?"all":"any",n=l.filters;n[t]=n[t]??[],n[t].push({[e]:i})}}),l}isConfigured(){return null!==this.config}getConfig(){return this.config}};class uf{config=null;constructor(e){this.updateConfig(e)}async fetchSearchResults(e,t,s,i,n){if(!this.config)throw new Error("Search configuration not provided");try{const a=await hf.fetchSearchResults({searchPhrase:e,filters:t,currentBatch:s,resultsPerBatch:this.config.resultsPerBatch??8,sortOrder:i,pageType:n});return{results:this.adaptSearchResults(a.results),totalPages:a.meta.page.total_pages,totalResults:a.meta.page.total_results}}catch(e){throw new Error("Failed to fetch search results",{cause:e})}}adaptSearchResults(e){return e.map(e=>{const t=this.getRawValue(e.id,"string"),s=this.getRawValue(e.custom_title,"string"),i=this.getRawValue(e.title,"string"),n=this.getRawValue(e.description,"string"),a=this.getRawValue(e.custom_url,"string"),r=this.getRawValue(e.url,"string"),o=this.getRawValue(e.thumbnail_url,"string"),l=this.getRawValue(e.image,"string"),c=this.getRawValue(e.publication_date,"string"),d=this.getRawValue(e.content_type,"string"),h=this.getRawValue(e.all_tags,"array"),u=this.getRawValue(e.category,"string"),m=this.getRawValue(e.read_time,"number");return{id:"string"==typeof t?t:"",title:this.getPreferredString(s,i),shortDescription:"string"==typeof n?n:"",url:this.getPreferredString(a,r),image:this.getPreferredString(o,l),publicationDate:"string"==typeof c?c:"",contentType:"string"==typeof d?d:"",allTags:Array.isArray(h)?h.filter(e=>"string"==typeof e):[],primaryTag:"string"==typeof u?u:"",readTime:"number"==typeof m?m:0}})}getPreferredString(e,t){return"string"==typeof e?e:"string"==typeof t?t:""}getRawValue(e,t){const s="object"==typeof e&&null!==e?e:{},i=s?.raw??e;return"array"===t?Array.isArray(i)?i.filter(e=>"string"==typeof e):[]:"number"===t?"number"==typeof i?i:0:"string"==typeof i?i:""}updateConfig(e){this.config=e,hf.updateConfig(e)}}const mf={page:{pageInfo:{onsiteSearchTerm:"",onsiteSearchResults:0,onsiteSearchType:"",onsiteSearchFilters:""}}},pf=(e,t,s=!0)=>{globalThis.digitalData=globalThis.digitalData??mf,globalThis.digitalData.page.pageInfo={...globalThis.digitalData.page.pageInfo,...e},s&&(e=>{globalThis._satellite&&globalThis._satellite.track(e)})(t)},gf=e=>e.length>0?e.join(","):"";class ff{rootElement;componentConfig;config;searchResults=[];totalResults=0;allTags={};dataService;constructor(e,t,s){this.rootElement=e,this.componentConfig=t,this.config=s,this.dataService=new uf(this.config)}async fetchSearchResults(e,t,s){const i=await this.dataService.fetchSearchResults(e,t,s,this.config?.sortOrder,this.config?.pageType);return this.searchResults=i.results,this.totalResults=i.totalResults,i}renderSearchResults(e,t,s){const i=this.safeQuerySelector(Op.MAIN_CONTENT,HTMLElement);if(!i)throw new Error("Results container not found");const n=e.length>0;this.updateUIVisibility(n),this.renderResultsContent(e,t,s,i,n),this.updateResultsCount(),this.dispatchResultsEvent(e,t,s,n)}updateUIVisibility(e){const t=this.safeQuerySelector(Op.RESULTS_COUNT,HTMLElement),s=this.safeQuerySelector(Op.NO_RESULTS,HTMLElement),i=this.safeQuerySelector(Op.MAIN_CONTENT,HTMLElement);e?(t?.classList.remove(Im),s?.classList.add(Im),i?.classList.remove(Im)):(t?.classList.add(Im),s?.classList.remove(Im),i?.classList.add(Im))}renderResultsContent(e,t,s,i,n){const a=i;if(n){const i=nf.generateResultsHTML(e,this.allTags,t,s,this.componentConfig,{minutesToReadLabel:this.config?.minutesToReadLabel??mg,hidePublicationDate:this.config?.hidePublicationDate??!1,defaultThumbnail:this.config?.defaultThumbnail??mg});a.innerHTML=Fr.A.sanitize(i,{ALLOWED_TAGS:[Bg,Gg,Kg,Vg,Wg,$g,Fg],ALLOWED_ATTR:[qp,jp,Xp,Qp,Zp,Bp,Wp,Fp,Vp,Gp]})}else a.innerHTML=mg}updateResultsCount(){const e=this.safeQuerySelector(Op.COUNT_NUMBER,HTMLElement);e&&(e.textContent=this.totalResults.toString())}dispatchResultsEvent(e,t,s,i){const n=new CustomEvent("insightResultsUpdated",{detail:{results:e,totalResults:this.totalResults,currentPage:s,totalPages:t,isLoading:!1,hasMoreResults:s<t,hasResults:i}});document.dispatchEvent(n)}bindResultClickEvents(e){const t=this.safeQuerySelector(Op.MAIN_CONTENT,HTMLElement);t&&(t.removeEventListener(Yg,this.handleResultClick),t.addEventListener(Yg,this.handleResultClick.bind(this)))}handleResultClick=e=>{const{target:t}=e;if(!(t&&t instanceof HTMLElement))return;const s=t.closest(Op.A_HREF);if(!(s&&s instanceof HTMLAnchorElement))return;const i=Array.from(s.closest(Op.SEARCH_RESULTS)?.children??[]).indexOf(s.closest(Op.SEARCH_RESULT)??s),n=s.querySelector(`\n      ${Wg}, ${Op.SEARCH_RESULT_TITLE}, ${Op.RESULT_TITLE}\n    `),a=n?.textContent?.trim()??s.textContent?.trim()??mg;((e,t,s)=>{pf({onsiteClickedItemPosition:s+1,onsiteClickedItemUrl:e,onsiteClickedItemTitle:t},"category-search-redirect",!0)})(s.href,a,i)};
3submitSearchAnalytics(e,t,s,i){(({searchTerm:e,searchResultsCount:t,searchType:s,selectedFilters:i=[],filterOverride:n,shouldTrackEvent:a=!0})=>{const r={onsiteSearchTerm:e,onsiteSearchResults:t??"zero",onsiteSearchType:s,onsiteSearchFilters:n??gf(i)};pf(r,"category-search",a)})({searchTerm:e,searchResultsCount:t,searchType:s,selectedFilters:i})}setAllTags(e){this.allTags=e}getAllTags(){return this.allTags}getTotalResults(){return this.totalResults}getSearchResults(){return this.searchResults}showLoading(){const e=this.safeQuerySelector(Op.LOADING,HTMLElement);e?.classList.remove(Im)}hideLoading(){const e=this.safeQuerySelector(Op.LOADING,HTMLElement);e?.classList.add(Im),e?.classList.remove(Dm)}safeQuerySelector(e,t){const s=this.rootElement.querySelector(e);return s instanceof t?s:null}}class Ef{$this;elements;config=null;componentConfig;searchPhrase=mg;filters=[];tagsApiUrl=mg;bannerManager;filterManager;tagManager;paginationManager;searchManager;resizeHandler=null;isMobile=window.innerWidth<600;constructor(){const e=document.querySelector(Op.CONTAINER);if(!(e&&e instanceof HTMLElement))return;this.$this=e;const t=(e,t)=>{const s=this.$this.querySelector(e);return s&&s instanceof t?s:null};this.elements={searchInput:t(Op.MAIN_SEARCH_INPUT,HTMLInputElement),searchForm:t(Op.MAIN_SEARCH_FORM,HTMLFormElement),searchButton:t(Op.MAIN_SUBMIT_BUTTON,HTMLButtonElement),mainClearButton:t(Op.MAIN_CLEAR_BUTTON,HTMLElement),configScript:t(Op.CONFIG_SCRIPT,HTMLScriptElement)},this.componentConfig=sf.getComponentConfig(this.$this)}start(){this.$this&&this.init().catch(e=>{throw new Error("Failed to initialize CategorySearch",{cause:e})})}
3async init(){this.loadConfig(),this.initializeManagers(),await this.loadTags();const e=sf.loadStateFromURL();this.searchPhrase=e.searchPhrase,this.paginationManager.setCurrentBatch(e.currentPage),e.selectedFilters.length>0&&(this.filters=[{name:yg,filterType:cg,values:e.selectedFilters}],this.filterManager.setSelectedFilters(new Set(e.selectedFilters))),sf.syncSearchInputs(this.$this,this.searchPhrase),this.bindSearchEvents();this.$this.querySelector(Op.BANNER_SEARCH_BOX)instanceof HTMLElement&&(this.bannerManager.initBanner(this.elements.configScript),this.initFilterUI()),this.componentConfig.hideResults||this.fetchSearchResults(),this.setupResizeListener()}initializeManagers(){this.bannerManager=new af(this.$this,()=>this.filterManager.getSelectedFilters(),()=>this.filterManager.getExpandedFilters(),()=>this.handleBannerSearchSubmit(),()=>this.clearAllFilters(),()=>this.executeSearch(void 0,Array.from(this.filterManager.getSelectedFilters()))),this.bannerManager.setDontShowButtonsDesktop(this.config?.dontShowButtonsDesktop??!1),this.filterManager=new lf(this.$this,()=>this.bannerManager.getContentContainer(),this.config?.dontShowButtonsDesktop??!1),this.tagManager=new cf(this.$this,e=>this.handleTagRemove(e),()=>this.clearAllFilters(),()=>this.clearAllFilters()),this.paginationManager=new df(this.$this,e=>this.handlePageChange(e)),this.searchManager=new ff(this.$this,this.componentConfig,this.config)}initFilterUI(){const e=this.bannerManager.getBannerConfig();this.filterManager.initializeNestedState(e);const t=sf.loadStateFromURL();t.selectedFilters.length>0&&(this.filterManager.setSelectedFilters(new Set(t.selectedFilters)),this.filterManager.buildNestedStateFromSelectedFilters(e)),this.bannerManager.generateFilterGroups((e,t,s,i)=>this.handleCheckboxChange(e,t,s,i),(e,t,s)=>this.handleNestedGroupToggle(e,t,s),e=>this.clearFilterGroup(e),e=>this.handleSubmitButtonClick(e)),this.filterManager.updateFilterCount(this.filterManager.getSelectedFilters().size)}loadConfig(){try{if(this.elements.configScript){const e=JSON.parse(this.elements.configScript.textContent??pg);this.config={engineName:e.engineName??mg,endpointBase:e.endpointBase??mg,searchKey:e.searchKey??mg,siteId:e.siteId??mg,resultsPerBatch:e.numberOfItems??tg,sortOrder:e.sortOrder??mg,pageType:e.pageType??mg,minutesToReadLabel:e.minutesToReadLabel??mg,hidePublicationDate:e.hidePublicationDate??!1,defaultThumbnail:e.defaultThumbnail??mg,dontShowButtonsDesktop:e.dontShowButtonsDesktop??!1},this.tagsApiUrl=e.tagTitlesApiUrl??mg}}catch{this.config={engineName:gg,endpointBase:fg,searchKey:Eg,siteId:bg,resultsPerBatch:tg,sortOrder:Tg,pageType:Sg,minutesToReadLabel:vg,hidePublicationDate:!1,defaultThumbnail:mg,dontShowButtonsDesktop:!1},this.tagsApiUrl=mg}}async loadTags(){if(this.tagsApiUrl)try{const e=await fetch(this.tagsApiUrl,{method:lg,headers:{[Kp]:Yp}});if(!e.ok)throw new Error(`HTTP error! status: ${e.status}`);const t=await e.json();this.searchManager.setAllTags(t.tags??{})}catch{this.searchManager.setAllTags({})}else this.searchManager.setAllTags({})}bindSearchEvents(){this.elements.searchButton?.addEventListener(Yg,e=>{e.preventDefault(),this.handleBannerSearchSubmit()}),this.elements.mainClearButton?.addEventListener(Yg,()=>{this.bannerManager.hideBannerSearchSuggestions(),this.searchPhrase=mg,this.elements.searchInput&&(this.elements.searchInput.value=mg),sf.syncSearchInputs(this.$this,this.searchPhrase),this.filterManager.updateFilterCount(this.filterManager.getSelectedFilters().size),this.executeSearch(this.searchPhrase,Array.from(this.filterManager.getSelectedFilters()),!1)}),this.elements.searchInput?.addEventListener(jg,e=>{e instanceof KeyboardEvent&&e.key===I.ENTER&&(e.preventDefault(),this.handleBannerSearchSubmit())}),this.elements.searchForm?.addEventListener(Xg,e=>{e.preventDefault(),this.handleBannerSearchSubmit()})}handleBannerSearchSubmit(){const e=this.getSearchState();this.bannerManager.stopBannerSearchSuggestions(),this.bannerManager.hideBannerSearchSuggestions(),e.searchPhrase.trim().length>0?(this.filterManager.clearAllFilters(),this.filterManager.updateFilterCount(0),this.executeSearch(e.searchPhrase,[])):this.executeSearch(e.searchPhrase,e.selectedFilters),window.innerWidth<eg&&this.bannerManager.closeBannerModal()}getSearchState(){return{searchPhrase:this.elements.searchInput?.value?.trim()??mg,selectedFilters:Array.from(this.filterManager.getSelectedFilters())}}executeSearch(e,t,s=!0){void 0!==e&&(this.searchPhrase=e,sf.syncSearchInputs(this.$this,this.searchPhrase));const i=t??Array.from(this.filterManager.getSelectedFilters());this.filters=i.length>0?[{name:yg,filterType:cg,values:i}]:[],this.componentConfig.hideResults?sf.redirectToSearchResults(this.searchPhrase,i,this.componentConfig.searchResultsPageUrl):(this.paginationManager.setCurrentBatch(1),sf.updateURLParameters(this.searchPhrase,i,this.paginationManager.getCurrentBatch()),this.fetchSearchResults(s),this.renderTagList())}clearAllFilters(){this.filterManager.clearAllFilters(),this.searchPhrase=mg,this.elements.searchInput&&(this.elements.searchInput.value=mg),sf.syncSearchInputs(this.$this,this.searchPhrase),this.filterManager.updateFilterCount(0),this.executeSearch(this.searchPhrase,Array.from(this.filterManager.getSelectedFilters())),this.bannerManager.closeBannerModal()}clearFilterGroup(e){this.filterManager.clearFilterGroup(e),this.filterManager.updateFilterCount(this.filterManager.getSelectedFilters().size),this.executeSearch(void 0,Array.from(this.filterManager.getSelectedFilters()))}handleCheckboxChange(e,t,s,i){this.filterManager.handleNestedCheckboxChange(e,t,s,i),this.filterManager.updateFilterCount(this.filterManager.getSelectedFilters().size),this.config?.dontShowButtonsDesktop&&this.executeSearch(void 0,Array.from(this.filterManager.getSelectedFilters()))}
3handleNestedGroupToggle(e,t,s){this.filterManager.handleNestedGroupToggle(e,t,s),this.filterManager.updateFilterCount(this.filterManager.getSelectedFilters().size),this.config?.dontShowButtonsDesktop&&this.executeSearch(void 0,Array.from(this.filterManager.getSelectedFilters()));const i=this.bannerManager.getContentContainer();i&&this.filterManager.restoreNestedFilterStates(i)}handleSubmitButtonClick(e){this.executeSearch(void 0,Array.from(this.filterManager.getSelectedFilters())),this.bannerManager.closeBannerModal(),e.classList.remove(Om)}handleTagRemove(e){this.filterManager.removeFilterByValue(e),this.filterManager.updateFilterCount(this.filterManager.getSelectedFilters().size),this.executeSearch(void 0,Array.from(this.filterManager.getSelectedFilters())),(({searchTerm:e,searchResultsCount:t,searchType:s,selectedFilters:i=[],shouldTrackEvent:n=!0})=>{const a={onsiteSearchTerm:e,onsiteSearchResults:t??"zero",onsiteSearchType:s,onsiteSearchFilters:gf(i)};pf(a,"category-search-filter",n)})({searchTerm:this.searchPhrase,searchResultsCount:this.searchManager.getTotalResults(),searchType:this.getSearchTypeForAnalytics(),selectedFilters:Array.from(this.filterManager.getSelectedFilters())})}handlePageChange(e){sf.updateURLParameters(this.searchPhrase,this.getFilterValues(),this.paginationManager.getCurrentBatch()),this.fetchSearchResults(!0)}async fetchSearchResults(e=!1){if(this.searchManager.showLoading(),!this.paginationManager.getIsLoading()){this.paginationManager.setIsLoading(!0);try{const t=await this.searchManager.fetchSearchResults(this.searchPhrase,this.filters,this.paginationManager.getCurrentBatch());this.paginationManager.setTotalPages(t.totalPages),this.searchManager.submitSearchAnalytics(this.searchPhrase,t.totalResults,this.getSearchTypeForAnalytics(),this.getFilterValues()),this.searchManager.renderSearchResults(t.results,t.totalPages,this.paginationManager.getCurrentBatch()),this.renderTagList(),t.results.length>0&&(this.paginationManager.bindPagination(),this.searchManager.bindResultClickEvents(()=>{})),this.paginationManager.setIsLoading(!1),this.searchManager.hideLoading(),e&&sf.scrollToResults(this.$this)}catch(e){console.error("Error fetching search results",e)}}}renderTagList(){const e=this.filterManager.buildFilterNamesMap(this.searchManager.getAllTags()),t=this.filterManager.sortFiltersHierarchically(this.getFilterValues());this.tagManager.renderTagList(this.searchPhrase,this.filters,t,e)}refresh(){this.paginationManager.setCurrentBatch(1),this.fetchSearchResults()}getFilterValues(){return this.filters.filter(e=>e.name===yg).flatMap(e=>e.values)}getSearchTypeForAnalytics(){const e=this.config?.pageType??Lg,t=e.lastIndexOf(Ag),s=e.lastIndexOf(Cg),i=Math.max(t,s);return i>=0?e.substring(i+1):e}setupResizeListener(){let e;this.resizeHandler=()=>{clearTimeout(e),e=globalThis.setTimeout(()=>{const e=window.innerWidth<600;e!==this.isMobile&&(this.isMobile=e,this.rerenderPagination())},250)},globalThis.addEventListener(Jg,this.resizeHandler),globalThis.addEventListener(ef,this.resizeHandler)}rerenderPagination(){this.searchManager.getSearchResults().length>0&&(this.searchManager.renderSearchResults(this.searchManager.getSearchResults(),this.paginationManager.getTotalPages(),this.paginationManager.getCurrentBatch()),this.paginationManager.bindPagination())}destroy(){this.resizeHandler&&(globalThis.removeEventListener(Jg,this.resizeHandler),globalThis.removeEventListener(ef,this.resizeHandler))}}document.addEventListener(tf,()=>{const e=new Ef;e.start(),globalThis.categorySearch=e});class bf{wrappers;isActive=!1;resizeTimeout=null;TABLET_MIN=680;TABLET_MAX=959;constructor(){this.wrappers=document.querySelectorAll(".menu-items__wrapper")}init(){this.checkBreakpoint(),this.bindEvents()}bindEvents(){globalThis.addEventListener("resize",this.handleResize.bind(this)),globalThis.addEventListener("orientationchange",this.handleResize.bind(this))}handleResize(){this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=globalThis.setTimeout(()=>{this.checkBreakpoint()},100)}checkBreakpoint(){const e=window.innerWidth,t=e>=this.TABLET_MIN&&e<=this.TABLET_MAX;t&&!this.isActive?this.enableMasonry():!t&&this.isActive&&this.disableMasonry()}
3enableMasonry(){this.isActive=!0,this.wrappers.forEach(e=>{this.applyMasonryLayout(e)})}disableMasonry(){this.isActive=!1,this.wrappers.forEach(e=>{this.removeMasonryLayout(e)})}applyMasonryLayout(e){const t=e.querySelectorAll(".menu-items");if(0===t.length)return;this.removeMasonryLayout(e),this.setWrapperStyles(e);const s=e.offsetWidth??0,i=this.calculateGap(e),n=this.calculateColumnWidth(s),a=this.initializeColumns(n,i);t.forEach(e=>{this.positionMenuItem(e,a,n,i)}),this.setWrapperHeight(e,a),e.classList.add("masonry-active")}setWrapperStyles(e){const t=e;t.style.position="relative",t.style.display="block"}calculateGap(e){const t=Number.parseInt(globalThis.getComputedStyle(e).gap);return Number.isNaN(t)||!Number.isFinite(t)?16:Math.floor(t)}calculateColumnWidth(e){const t=(e-24)/2;return Number.isFinite(t)&&t>0?t:0}initializeColumns(e,t){const s=[];for(let i=0;i<2;i++)s.push({height:0,x:i*(e+t)});return s}positionMenuItem(e,t,s,i){const n=t.reduce((e,t)=>t.height<e.height?t:e,t[0]),a=t.indexOf(n),r=this.getSafeValue(n.x),o=this.getSafeValue(n.height),l=this.getSafeValue(s),c=e;c.style.position="absolute",c.style.left=`${r}px`,c.style.top=`${o}px`,c.style.width=`${l}px`;const d=e.offsetHeight||this.getEstimatedHeight(e),h=this.getSafeNonNegativeValue(d);t[a].height+=h+i}getSafeValue(e){return Number.isFinite(e)?Math.floor(e):0}getSafeNonNegativeValue(e){return Number.isFinite(e)&&e>=0?e:0}setWrapperHeight(e,t){const s=t.length>0?Math.max(...t.map(e=>e.height)):0,i=this.getSafeNonNegativeValue(s);e.style.height=`${i}px`}removeMasonryLayout(e){const t=e.querySelectorAll(".menu-items"),s=e;s.style.position="",s.style.display="",s.style.height="",s.classList.remove("masonry-active"),t.forEach(e=>{const t=e;t.style.position="",t.style.left="",t.style.top="",t.style.width=""})}getEstimatedHeight(e){const t={position:e.style.position,visibility:e.style.visibility,display:e.style.display},s=e;s.style.position="absolute",s.style.visibility="hidden",s.style.display="block";const i=e.offsetHeight;return s.style.position=t.position,s.style.visibility=t.visibility,s.style.display=t.display,Number.isFinite(i)&&i>0?i:100}refresh(){this.isActive&&this.wrappers.forEach(e=>{this.applyMasonryLayout(e)})}destroy(){this.disableMasonry(),globalThis.removeEventListener("resize",this.handleResize.bind(this)),globalThis.removeEventListener("orientationchange",this.handleResize.bind(this)),this.resizeTimeout&&clearTimeout(this.resizeTimeout)}static initialize(){return new bf}}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",()=>{bf.initialize()}):bf.initialize();const Tf=".header-menu-wrapper",Sf=".main-menu-ul",vf=".hamburger-menu",Lf="#header",yf="a.skip-to-main-link",_f=".header a:not(.skip-to-main-link), .header button",Af=".main-link",Cf="button[aria-expanded]",wf=".sr-only",Nf=".menu-child",If=".menu-item",Rf=":scope > button",Df=".main-menu-dropdown",Mf=":scope > .main-menu-dropdown >.container-wrapper-inner > .main-menu-dropdown__header .main-menu-dropdown__title",Of="#header.is-open-menu, #header-attestation.is-open-menu",xf="a",Pf=".header-menu-button .btn",kf=".is-open-child",Hf=".hide-on-desktop",Bf=".submenu-container",Ff="is-open-menu",qf="is-open-child",$f="open-menu-child",zf="hovering",Uf="pin-color",Wf="has-sub",Vf="main-link",Gf="menu-items__link",Kf=960,Yf=1025,jf="aria-expanded",Xf="aria-hidden",Qf="aria-disabled",Zf="tabindex",Jf="data-submenu",eE=960,tE=I.ESC,sE=I.ARROW_LEFT,iE=I.ARROW_UP,nE=I.ARROW_RIGHT,aE=I.ARROW_DOWN,rE=I.HOME,oE=I.END,lE=I.TAB,cE=I.ENTER,dE="#header",hE=".header-top-bar",uE=".js-search-modal",mE=".js-open-search-modal",pE=".header-contact-button-desktop",gE=".header-actions",fE=[dE,"#header-attestation","#main-menu-mobile"],EE=fE.join(", "),bE="pin-header",TE="hide-header-top",SE="is-open",vE="is-open-menu",LE={SCROLL:100,PIN:0,SHOW_HEADER_THRESHOLD:250,TRANSITION_DURATION:((e,t=0)=>{const s=getComputedStyle(document.documentElement).getPropertyValue(e).trim();return s.endsWith("ms")?Number.parseInt(s.replace("ms",""))+t:s.endsWith("s")?1e3*Number.parseFloat(s.replace("s",""))+t:t})("--base-transition-speed-normal",10)},yE=e=>{const t=e=>e?Fr.A.sanitize(e,{ALLOWED_TAGS:[]}):"";return{OPEN_MENU:t(e.dataset.openMenuText)||"Open menu",CLOSE_MENU:t(e.dataset.closeMenuText)||"Close menu"}},_E={MAIN_LINK_WITH_ARIA:".main-link, button[aria-expanded][aria-controls]",HAS_SUB_LI:"li.has-sub",HAS_SUB_CLASS:".has-sub",MAIN_MENU_UL_LI:".main-menu-ul >li",MAIN_MENU_UL_LI_BUTTON:".main-menu-ul >li>button",MAIN_MENU_DROPDOWN_LI_A:".main-menu-dropdown li>a",MOBILE_LEVEL_1_BUTTON:".menu-item.has-sub > button",INPUT:"input",LI:"li",BUTTON:"button",A:"a",SCOPE_LI_HOVERING:":scope > li.hovering",HEADER_AUDIENCE_DROPDOWN:".header-audience__item--dropdown",COOKIE_BANNER_BUTTON:".js-open-cookie-banner",MEGA_MENU_SETTINGS_BUTTON:".mega-menu__settings",HEADER_LOGO_LINK:".header-logo a",HEADER_LOGO_LINK_SEARCH:".header-logo-link",HEADER_SEARCH_BUTTON:".header-search-button",HEADER_MENU_CLOSE_BUTTON:".header-menu-button.hide-on-desktop .cmp-button",SEARCH_MODAL_BUTTON:".js-open-search-modal",SEARCHBOX_INPUT:".searchbox__input",SEARCHBOX_CLEAR_ACTIVE:".searchbox__clear.active",SEARCHBOX_SUBMIT:".searchbox__button--submit",IS_OPEN_CHILD_DROPDOWN:".is-open-child .main-menu-dropdown",SEARCH_MODAL_OPEN:".js-open-search-modal.is-open",HEADER_MENU_OPEN:".header-menu-wrapper.is-open-menu"},AE=(...e)=>fE.map(t=>[t,...e].join(" ")).join(", "),CE=AE(Tf),wE=AE(Tf,_E.HAS_SUB_LI),NE=AE(Tf,_E.MAIN_MENU_UL_LI),IE=AE(Tf,_E.MAIN_MENU_UL_LI_BUTTON),RE=AE(Tf,_E.MAIN_MENU_DROPDOWN_LI_A),DE="--width-header-button",ME={CLICK:"click",KEYDOWN:"keydown",KEYUP:"keyup",MOUSEOVER:"mouseover",MOUSELEAVE:"mouseleave",FOCUS:"focus",FOCUSOUT:"focusout",SCROLL:"scroll",RESIZE:"resize",ORIENTATION_CHANGE:"orientationchange"};class OE{elements;timeout;timeHeader;scopeLinkSelector;constructor(e){this.elements=e,this.timeout=null,this.timeHeader=null,this.scopeLinkSelector=Rf}closeMenu=()=>
3{const{skipLink:e,focusManager:t}=this.elements;document.documentElement.classList.remove(Ff),document.querySelectorAll(EE).forEach(e=>{if(!(e instanceof HTMLElement))return;e.classList.remove(Ff),e.querySelector(Tf)?.classList.remove(Ff);const t=e.querySelector(vf);if(t instanceof HTMLElement){t.classList.remove(Ff);const e=t.querySelector(wf);e instanceof HTMLElement&&(e.textContent=yE(t).OPEN_MENU),t.setAttribute(jf,"false")}}),t&&"function"==typeof t.unbindEventFocusOnMenu?t.unbindEventFocusOnMenu():e?.removeAttribute(Zf)};handleMainMenuToggle=e=>{const t=e.currentTarget;if(!(t instanceof HTMLElement))return;const s=t.querySelector(Tf),i=t.querySelector(vf);if(t.classList.contains(Ff))return void this.closeMenu();document.querySelectorAll(EE).forEach(e=>{e!==t&&e instanceof HTMLElement&&(e.classList.remove(Ff),e.querySelector(Tf)?.classList.remove(Ff),e.querySelector(vf)?.classList.remove(Ff))}),t.classList.remove(TE),document.documentElement.classList.add(Ff),t.classList.add(Ff),s?.classList.add(Ff),i?.classList.add(Ff);const n=i?.querySelector(wf);n instanceof HTMLElement&&i&&(n.textContent=yE(i).CLOSE_MENU),i?.setAttribute(jf,"true"),this.elements.focusManager.bindEventFocusOnMenu({mainMenu:s,header:t,hamburgerMenu:i})};handleDropdownMenu=(e,t=!1)=>{if(window.innerWidth>=Kf)return!0;const s=e.parentElement;if(!s?.classList.contains(qf)&&!e.classList.contains(qf))return this.openSubmenu(e),!t;this.closeSubmenu(e);const{focusManager:i}=this.elements;return i&&"function"==typeof i.refreshFocusableElements&&i.refreshFocusableElements(),!0};openSubmenu=e=>{const{liLevel1:t,focusManager:s}=this.elements;this.closeAllLevel1Items(t),this.activateCurrentItem(e),this.handleFocusManagerOnOpen(s);const i=e.closest("li"),n=i?.querySelector(".main-menu-dropdown__title");n instanceof HTMLElement&&n.focus()};closeSubmenu=e=>{const{focusManager:t}=this.elements;this.deactivateCurrentItem(e),this.handleFocusManagerOnClose(t,e)};closeAllLevel1Items=e=>{e?.forEach(e=>{e.classList.remove(qf);const t=e.querySelector(this.scopeLinkSelector);t instanceof HTMLElement&&t.hasAttribute(jf)&&t.setAttribute(jf,"false")})};activateCurrentItem=e=>{e.classList.add(qf),e.setAttribute(jf,"true")};deactivateCurrentItem=e=>{e.classList.remove(qf),e.setAttribute(jf,"false")};handleFocusManagerOnOpen=e=>{e?.disableLevel1Buttons&&e.disableLevel1Buttons(),e?.refreshFocusableElements&&e.refreshFocusableElements()};handleFocusManagerOnClose=(e,t)=>{e?.enableLevel1Buttons&&e.enableLevel1Buttons();const s=t.querySelector(Cf);s instanceof HTMLElement&&s.focus()};handleLevel2Dropdown=e=>{const t=e.currentTarget;if(!(t instanceof HTMLElement))return;const s=t.parentElement;window.innerWidth<Yf&&(s?.querySelector(Nf)&&!s.classList.contains($f)?s.classList.add($f):s?.classList.remove($f))};handleOutsideClick=e=>{const t=document.querySelector(Of),{target:s}=e;s instanceof HTMLElement&&t&&!t.contains(s)&&this.closeMenu()};handleHoverMenu=e=>{const{header:t,mainMenuContainer:s}=this.elements,i=s?.querySelectorAll(_E.SCOPE_LI_HOVERING);if(t?.classList.add(Uf),window.innerWidth>Kf-1&&(i?.length||0)<2){const s=e.currentTarget;if(!(s instanceof HTMLElement))return;this.clearMenuTimeouts(),this.timeout=setTimeout(()=>{if(this.closeAllSubmenu(),s.classList.add(zf),t?.style.setProperty("--menu-height",`${s.querySelector(Df)?.clientHeight}px`),s.classList.contains(Wf)){const e=s.querySelector(this.scopeLinkSelector);e instanceof HTMLElement&&e.setAttribute(jf,"true")}},0)}};handleMenuLeave=()=>{const{header:e}=this.elements;window.innerWidth>Kf-1&&(this.clearMenuTimeouts(),this.timeout=setTimeout(()=>{this.closeAllSubmenu()},50),this.timeHeader=setTimeout(()=>{e?.classList.remove(Uf),this.closeAllSubmenu()},200))};clearMenuTimeouts=()=>{this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.timeHeader&&(clearTimeout(this.timeHeader),this.timeHeader=null)};closeAllSubmenu=()=>{const{liLevel1:e}=this.elements;e?.forEach(e=>{e.classList.remove(zf);const t=e.querySelector(this.scopeLinkSelector);t instanceof HTMLElement&&t.setAttribute(jf,"false")})}}class xE{elements;focusScopeOverride=null;focusableElements=[];focusableElementsQuery="";currentFocusIndex=-1;isMenuOpen=!1;lastFocusedElement=null;boundFocusTrapping;boundMenuKeydown;constructor(e){this.elements=e,this.boundFocusTrapping=this.handleFocusTrapping.bind(this),this.boundMenuKeydown=this.handleMenuKeydown.bind(this),this.focusableElementsQuery=["a[href]:not([disabled])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[tabindex]:not
3([tabindex="-1"])'].join(", "),this.handleFocusTrappingSearch()}isMobile(){return window.innerWidth<Kf}get effectiveMainMenu(){return this.focusScopeOverride?.mainMenu??this.elements.mainMenu}get effectiveHeader(){return this.focusScopeOverride?.header??this.elements.header}get effectiveHamburger(){return this.focusScopeOverride?.hamburgerMenu??this.elements.hamburgerMenu}isElementInViewport(e,t){const s=e.getBoundingClientRect(),i=t.getBoundingClientRect(),n=globalThis.getComputedStyle(t),a=Number.parseFloat(n.paddingTop)||0,r=Number.parseFloat(n.paddingBottom)||0,o=i.top+a,l=i.bottom-r;return s.top>=o&&s.bottom<=l}scrollToFocusElement(e){if(this.isMobile()){if(e.classList.contains(Vf)){const t=e.closest(Tf);t&&!this.isElementInViewport(e,t)&&t.scrollTo({top:e.offsetTop,behavior:"smooth"})}if(e.classList.contains(Gf)){const t=e.closest(Df);t&&!this.isElementInViewport(e,t)&&t.scrollTo({top:e.offsetTop,behavior:"smooth"})}}}bindEventFocusOnMenu(e){this.focusScopeOverride=e??null;const{skipLink:t,firstLinkInMenu:s,lastLinkInMenu:i}=this.elements;t?.setAttribute(Zf,"-1"),s?.addEventListener(ME.KEYDOWN,this.shiftTabFocusToLast.bind(this)),i?.addEventListener(ME.KEYDOWN,this.tabFocusToFirst.bind(this)),this.isMobile()&&(this.lastFocusedElement=document.activeElement instanceof HTMLElement?document.activeElement:null,this.isMenuOpen=!0,this.updateFocusableElements(),this.setupFocusTrapping(),setTimeout(()=>{this.focusFirstMenuItem()},100),document.addEventListener(ME.KEYDOWN,this.handleGlobalKeydown.bind(this)))}unbindEventFocusOnMenu(){const{skipLink:e}=this.elements;e?.removeAttribute(Zf),this.isMobile()&&(this.isMenuOpen=!1,this.currentFocusIndex=-1,this.enableLevel1Buttons(),this.removeFocusTrapping(),document.removeEventListener(ME.KEYDOWN,this.handleGlobalKeydown.bind(this)),this.restoreFocus()),this.focusScopeOverride=null}elementIsVisible(e){const t=null!==e.offsetParent||"none"!==getComputedStyle(e).display,s=!e.hasAttribute(Xf)||"true"!==e.getAttribute(Xf),i="-1"!==e.getAttribute(Zf),n=e.closest(Hf),a=this.isMobile();return!(n&&!a)&&(t&&s&&i)}getFocusableElements(){if(!this.effectiveMainMenu)return[];const e=this.effectiveMainMenu.querySelector(_E.IS_OPEN_CHILD_DROPDOWN)??this.effectiveMainMenu;return Array.from(e.querySelectorAll(this.focusableElementsQuery)).filter(e=>{const t=e.closest(Df);return this.elementIsVisible(e)&&(!(t instanceof HTMLElement)||t?.closest(_E.HAS_SUB_CLASS)?.classList.contains(qf))})}updateFocusableElements(){this.effectiveMainMenu&&(this.focusableElements=this.getFocusableElements())}setupFocusTrapping(){this.effectiveMainMenu&&(this.effectiveMainMenu.addEventListener(ME.KEYDOWN,this.boundMenuKeydown),document.addEventListener(ME.KEYDOWN,this.boundFocusTrapping))}removeFocusTrapping(){this.effectiveMainMenu&&(this.effectiveMainMenu.removeEventListener(ME.KEYDOWN,this.boundMenuKeydown),document.removeEventListener(ME.KEYDOWN,this.boundFocusTrapping))}handleMenuKeydown(e){if(this.isMenuOpen)switch(e.key){case rE:e.preventDefault(),this.focusFirstElement();break;case oE:e.preventDefault(),this.focusLastElement()}}focusTabIsOpenMenu(e){if(e.key!==lE)return;const{activeElement:t}=document,s=this.getAllFocusableElementsInOrder();if(0===s.length)return;let i=-1;if(t&&t instanceof HTMLElement&&(i=s.indexOf(t)),-1===i)return e.preventDefault(),void s[0].focus();let n;n=e.shiftKey?0===i?s.length-1:i-1:i===s.length-1?0:i+1,e.preventDefault(),s[n].focus()}focusTabIsOpenSearch(e){const{activeElement:t}=document,s=this.getSearchModalFocusableElements();if(0===s.length)return;let i=-1;if(t&&t instanceof HTMLElement&&(i=s.indexOf(t)),-1===i)return e.preventDefault(),void s[0].focus();let n;n=e.shiftKey?0===i?s.length-1:i-1:i===s.length-1?0:i+1,e.preventDefault(),s[n].focus()}getSearchModalFocusableElements(){const e=[];return[_E.HEADER_LOGO_LINK_SEARCH,_E.SEARCHBOX_INPUT,_E.SEARCHBOX_CLEAR_ACTIVE,_E.SEARCHBOX_SUBMIT,_E.SEARCH_MODAL_BUTTON].forEach(t=>{const s=this.effectiveHeader?.querySelectorAll(t);s?.forEach(t=>{t instanceof HTMLElement&&this.elementIsVisible(t)&&e.push(t)})}),e}handleFocusTrappingSearch(){document.addEventListener(ME.KEYDOWN,e=>{const t=document.querySelector(_E.SEARCH_MODAL_OPEN);t instanceof HTMLElement&&e.key===lE&&this.focusTabIsOpenSearch(e),this.handleEscapeKeySearch(e,t instanceof HTMLElement?t:null)})}handleFocusTrapping(e){if(e.key!==lE&&!this.isMobile())return;document.querySelector(_E.HEADER_MENU_OPEN)&&this.isMenuOpen&&this.focusTabIsOpenMenu(e)}getAllFocusableElementsInOrder(){const e=[],t=this.effectiveHeader,s=[_E.HEADER_AUDIENCE_DROPDOWN,_E.MEGA_MENU_SETTINGS_BUTTON,_E.HEADER_LOGO_LINK,_E.HEADER_SEARCH_BUTTON,vf],i=t??document;
3s.forEach(t=>{const s=i.querySelector(t);s instanceof HTMLElement&&this.elementIsVisible(s)&&e.push(s)});this.getFocusableElements().forEach(t=>{this.elementIsVisible(t)&&e.push(t)});const n=i.querySelector(_E.HEADER_MENU_CLOSE_BUTTON);return n instanceof HTMLElement&&this.elementIsVisible(n)&&e.push(n),e}getSubmenuFocusableElements(e){const t=Array.from(e.querySelectorAll(this.focusableElementsQuery)).filter(e=>{const t=null!==e.offsetParent||"none"!==getComputedStyle(e).display,s=!e.hasAttribute(Xf)||"true"!==e.getAttribute(Xf),i="-1"!==e.getAttribute(Zf);return t&&s&&i}),s=document.querySelector(Pf);if(s instanceof HTMLElement){const e=null!==s.offsetParent||"none"!==getComputedStyle(s).display,i=!s.hasAttribute(Xf)||"true"!==s.getAttribute(Xf),n="-1"!==s.getAttribute(Zf);e&&i&&n&&!t.includes(s)&&t.push(s)}return t}disableLevel1Buttons(){if(!this.effectiveMainMenu)return;this.effectiveMainMenu.querySelectorAll(_E.MOBILE_LEVEL_1_BUTTON).forEach(e=>{const t=e.closest(_E.LI),s=t?.querySelector(kf);s||(e.setAttribute(Zf,"-1"),e.setAttribute(Qf,"true"))})}enableLevel1Buttons(){if(!this.effectiveMainMenu)return;this.effectiveMainMenu.querySelectorAll(_E.MOBILE_LEVEL_1_BUTTON).forEach(e=>{e.removeAttribute(Zf),e.removeAttribute(Qf)})}handleEscapeKeySearch(e,t){e.key===tE&&t&&(e.preventDefault(),t.click(),t.focus())}handleGlobalKeydown(e){if(this.isMobile()&&this.isMenuOpen)switch(e.key){case tE:if(e.preventDefault(),this.handleSubmenuEscape(e))return;this.closeMenu();break;case iE:case aE:this.handleArrowKeyNavigation(e);break;case sE:case nE:this.handleHorizontalNavigation(e);break;case rE:e.preventDefault(),this.focusFirstElement();break;case oE:e.preventDefault(),this.focusLastElement()}}focusFirstMenuItem(){this.focusableElements.length>0&&(this.currentFocusIndex=0,this.focusableElements[0].focus())}focusFirstElement(){this.focusFirstMenuItem()}focusLastElement(){this.focusableElements.length>0&&(this.currentFocusIndex=this.focusableElements.length-1,this.focusableElements[this.currentFocusIndex].focus())}focusNextElement(){if(0===this.focusableElements.length)return;const{activeElement:e}=document;let t=-1;e&&e instanceof HTMLElement&&(t=this.focusableElements.indexOf(e));let s=t+1;s>=this.focusableElements.length&&(s=0),this.currentFocusIndex=s,this.focusableElements[s].focus()}focusPreviousElement(){if(0===this.focusableElements.length)return;const{activeElement:e}=document;let t=-1;e&&e instanceof HTMLElement&&(t=this.focusableElements.indexOf(e));let s=t-1;s<0&&(s=this.focusableElements.length-1),this.currentFocusIndex=s,this.focusableElements[s].focus()}closeMenu(){const e=this.effectiveHamburger;e&&e.click()}handleSubmenuEscape(e){const{activeElement:t}=document;if(!(t&&t instanceof HTMLElement||this.isMenuOpen))return!1;const s=document.querySelector(kf);if(s){const e=s.querySelector(".main-menu-dropdown__title");e instanceof HTMLElement&&e.click()}else this.closeMenu();return this.enableLevel1Buttons(),!0}handleArrowKeyNavigation(e){e.key===iE?(e.preventDefault(),this.focusPreviousElement()):e.key===aE&&(e.preventDefault(),this.focusNextElement())}handleHorizontalNavigation(e){const{activeElement:t}=document;if(!(t&&t instanceof HTMLElement))return;const s=t.closest(`${Df}, ${Bf}, [${Jf}]`);if(e.key===sE&&s){e.preventDefault();const t=s.closest(If),i=t?.querySelector(`${Af}, ${Cf}`);if(!(i instanceof HTMLElement))return;if(!(t instanceof HTMLElement))return;return t.classList.remove(qf),i.hasAttribute(jf)&&i.setAttribute(jf,"false"),void i.focus()}if(e.key===nE&&!s){e.preventDefault();const s=t.closest(If);if(s?.classList.contains(Wf)){t.click()}}}restoreFocus(){this.lastFocusedElement&&this.lastFocusedElement instanceof HTMLElement&&"function"==typeof this.lastFocusedElement.focus&&setTimeout(()=>{this.lastFocusedElement?.focus()},50)}tabFocusToFirst(e){const{firstLinkInMenu:t}=this.elements;e.key===lE&&this.isMobile()&&!e.shiftKey&&(e.preventDefault(),t?.focus())}shiftTabFocusToLast(e){const{lastLinkInMenu:t}=this.elements;e.key===lE&&this.isMobile()&&e.shiftKey&&(e.preventDefault(),t?.focus())}refreshFocusableElements(){this.updateFocusableElements()}get menuIsOpen(){return this.isMenuOpen}}new class{mainMenu;mainMenuUl;header;hamburgerMenu;li;liHasSub;liLevel1;liLevel2;linksInMenu;firstLinkInMenu;lastLinkInMenu;skipLink;elementItems;mainMenuContainer;focusManager;eventHandlers;constructor(){this.initializeElements(),this.focusManager=new xE({skipLink:this.skipLink,firstLinkInMenu:this.firstLinkInMenu,lastLinkInMenu:this.lastLinkInMenu,hamburgerMenu:this.hamburgerMenu,mainMenu:this.mainMenu,header:this.header}),this.eventHandlers=new OE({...this,focusManager:this.focusManager}),this.mainMenu&&this.init()}initializeElements(){this.mainMenu=document.querySelector(CE)??document.querySelector(Tf),this.mainMenuUl=this.mainMenu?.querySelector(Sf)??null,this.header=document.querySelector(EE),this.hamburgerMenu=this.header?.querySelector(vf)??null,this.li=document.querySelectorAll(IE),this.liHasSub=document.querySelectorAll(wE),this.liLevel1=document.querySelectorAll(NE),this.liLevel2=document.querySelectorAll(RE),this.linksInMenu=document.querySelectorAll(_f),[this.firstLinkInMenu]=this.linksInMenu,this.lastLinkInMenu=this.linksInMenu[this.linksInMenu.length-1],this.skipLink=document.querySelector(yf),this.elementItems={hamburger:this.hamburgerMenu,html:document.documentElement,mainMenu:this.mainMenu,header:this.header},document.querySelector(mE)?.addEventListener(ME.CLICK,()=>{const e=document.querySelector(uE),t=document.querySelector(mE);e&&(e.classList.toggle(SE),t?.classList.toggle(SE),document.querySelectorAll(EE).forEac
3h(e=>{e.classList.remove(TE)})),e?.classList.contains(SE)&&e.querySelector(_E.INPUT)?.focus();const s=document.querySelector(pE);if(s){const e=s.offsetWidth??0,t=document.querySelector(gE),i=(N(t)?Number.parseInt(globalThis.getComputedStyle(t).rowGap):0)??0;document.documentElement.style.setProperty(DE,e+i-3+"px")}this.eventHandlers.closeMenu()}),this.clickOutside(),this.mainMenuContainer=this.mainMenu}init(){this.bindEvents()}bindEvents(){document.querySelectorAll(EE).forEach(e=>{e.addEventListener(ME.CLICK,e=>{const{target:t}=e;N(t)&&t.closest(vf)&&this.eventHandlers.handleMainMenuToggle(e)})}),this.liHasSub?.forEach(e=>{const t=e.querySelector(Rf);N(t)&&this.scopeLinkEvent(t,e);const s=e.querySelector(Mf);s&&(s.addEventListener(ME.CLICK,()=>this.eventHandlers.handleDropdownMenu(e)),s.addEventListener(ME.KEYDOWN,t=>{if(!(t instanceof KeyboardEvent))return;const s=t;(s.key===cE||" "===s.key)&&window.innerWidth<Kf&&(s.preventDefault(),this.eventHandlers.handleDropdownMenu(e))}))}),document.addEventListener(ME.CLICK,e=>{const{target:t}=e;N(t)&&!t.closest(Sf)&&this.eventHandlers.handleMenuLeave()}),this.bindWindowEvents(),this.adaKeyBoardMobile()}scopeLinkEvent(e,t){e.addEventListener(ME.CLICK,()=>this.eventHandlers.handleDropdownMenu(t)),e.addEventListener(ME.KEYDOWN,e=>{if(!(e instanceof KeyboardEvent))return;const s=e;(s.key===cE||" "===s.key)&&window.innerWidth<Kf&&(s.preventDefault(),this.eventHandlers.handleDropdownMenu(t))})}adaKeyBoardMobile(){document.addEventListener(ME.KEYDOWN,()=>{setTimeout(()=>{const e=document.activeElement;N(e)&&(e.classList.contains("main-link")||e.classList.contains("menu-items__link"))&&this.focusManager.scrollToFocusElement(e)},50)})}bindWindowEvents(){const e=()=>
3{window.innerWidth<Kf&&document.querySelectorAll(EE).forEach(e=>{e instanceof HTMLElement&&e.style.removeProperty("--menu-height")})};globalThis.addEventListener(ME.RESIZE,()=>{window.innerWidth<Kf&&this.skipLink?.removeAttribute(Zf),e()}),globalThis.addEventListener(ME.ORIENTATION_CHANGE,()=>{e()}),e(),globalThis.addEventListener(ME.KEYDOWN,e=>{e.key===tE&&window.innerWidth>Kf-1&&this.eventHandlers.handleMenuLeave()})}clickOutside(){document.addEventListener(ME.CLICK,e=>{const{target:t}=e;if(N(t)&&!t.closest(gE)){const e=document.querySelector(uE),t=document.querySelector(mE);e&&(e.classList.remove(SE),t?.classList.remove(SE))}})}closeAllSubmenu(){const e=this.mainMenu?.querySelectorAll(`${Sf}>li.${zf}`);e?.forEach(e=>{if(e.classList.remove(zf),e.classList.contains(Wf)){const t=e.querySelector(Rf);t?.setAttribute(jf,"false")}})}};class PE{controlFocusByKey(e,t,s){if(!(window.innerWidth<Kf))switch(e.key){case sE:case iE:if(e.preventDefault(),s>-1){t[Math.max(0,s-1)].focus()}break;case nE:case aE:if(e.preventDefault(),s>-1){t[Math.min(t.length-1,s+1)].focus()}break;case rE:e.preventDefault(),t[0].focus();break;case oE:e.preventDefault(),t.at(-1).focus()}}}class kE{ariaExpanded;constructor(){this.ariaExpanded=jf}toggleExpand(e,t,s,i,n){if(n!==e&&null!==n&&this.toggleExpand(n,!1,s,i,n),s[e]){const n=t?e:null;return s[e].setAttribute(this.ariaExpanded,t.toString()),this.toggleMenu(i[e],t),n}return n}toggleMenu(e,t){if(e){const s=e.closest(If);if(!(s instanceof HTMLElement))return;if(window.innerWidth>=eE)if(t){const e=document.querySelector(Lf);if(!(e instanceof HTMLElement))return;s.classList.add(zf),e.style.setProperty("--menu-height",`${s.querySelector(Df)?.clientHeight}px`)}else s.classList.remove(zf);else t||e.parentElement?.classList.remove(qf)}}}class HE{element;controlledNodes;openIndex;useArrowKeys;topLevelNodes;ariaExpanded;keyboardNav;submenuHandler;constructor(e){this.element=e,this.controlledNodes=[],this.openIndex=null,this.useArrowKeys=!0,this.topLevelNodes=Array.from(this.element.querySelectorAll(_E.MAIN_LINK_WITH_ARIA)),this.ariaExpanded=jf,this.keyboardNav=new PE,this.submenuHandler=new kE,this.init()}init(){this.initializeNodes(),this.bindEvents()}initializeNodes(){this.topLevelNodes.forEach(e=>{e.tagName.toLowerCase()===_E.BUTTON.toLowerCase()&&e.hasAttribute("aria-controls")?this.initializeSubmenu(e):this.initializeSimpleMenu(e)})}initializeSubmenu(e){const t=e.parentElement?.querySelector(Df);t instanceof HTMLElement&&(this.controlledNodes.push(t),this.bindSubmenuEvents(e,t))}initializeSimpleMenu(e){this.controlledNodes.push(null),e.addEventListener(ME.KEYDOWN,this.onMenuNoSubKeyDown.bind(this)),e.addEventListener(ME.FOCUS,this.onMenuNoSubFocus.bind(this))}bindEvents(){document.addEventListener(ME.KEYUP,e=>{const{target:t}=e;if(t instanceof HTMLElement&&e.key===lE)if(t.closest(Sf)||null===this.openIndex){const e=this.topLevelNodes.indexOf(t);-1!==e&&e!==this.openIndex&&(null!==this.openIndex&&this.submenuHandler.toggleExpand(this.openIndex,!1,this.topLevelNodes,this.controlledNodes,null),this.openIndex=null)}else this.openIndex=this.submenuHandler.toggleExpand(this.openIndex,!1,this.topLevelNodes,this.controlledNodes,null)})}bindSubmenuEvents(e,t){t.addEventListener(ME.KEYDOWN,this.onSubMenuKeyDown.bind(this)),e.addEventListener(ME.CLICK,this.onMenuHasSubClick.bind(this)),e.addEventListener(ME.KEYDOWN,this.onMenuHasSubKeyDown.bind(this))}onMenuHasSubClick(e){if(window.innerWidth>=eE){const t=e.target;if(N(t)){const e=this.topLevelNodes.indexOf(t),s="true"===t.getAttribute(this.ariaExpanded);this.openIndex=this.submenuHandler.toggleExpand(e,!s,this.topLevelNodes,this.controlledNodes,this.openIndex)}}}onMenuHasSubKeyDown(e){const{activeElement:t}=document;if(!N(t))return;const s=this.topLevelNodes.indexOf(t);if(e.key===tE&&window.innerWidth>=eE)this.openIndex=null;else if(this.useArrowKeys&&this.openIndex===s&&e.key===aE){e.preventDefault();const t=this.controlledNodes[this.openIndex]?.querySelector(xf);t&&t.focus()}else this.useArrowKeys&&this.keyboardNav.controlFocusByKey(e,this.topLevelNodes,s)}onMenuNoSubKeyDown(e){const{activeElement:t}=document;if(!N(t))return;const s=this.topLevelNodes.indexOf(t);this.useArrowKeys&&this.keyboardNav.controlFocusByKey(e,this.topLevelNodes,s)}onSubMenuKeyDown(e){const{activeElement:t}=document;if(null===this.openIndex||!N(t))return;const s=Array.from(this.controlledNodes[this.openIndex]?.querySelectorAll(xf)??[]);if(!s.length)return;const i=s.indexOf(t);e.key===tE&&window.innerWidth>=eE&&(this.topLevelNodes[this.openIndex].focus(),this.openIndex=null),this.useArrowKeys&&this.keyboardNav.controlFocusByKey(e,s,i)}onMenuNoSubFocus(){window.innerWidth>=eE&&(this.openIndex=null)}
3updateKeyControls(e){this.useArrowKeys=e}static initialize(){const e=document.querySelectorAll(Sf);if(e.length){const t=this.initializeMenus(e);return this.initializeFakeLinks(e),t}return[]}static initializeMenus(e){return Array.from(e).map(e=>new HE(e))}static initializeFakeLinks(e){e.forEach(e=>{const t=e.querySelectorAll(xf);t.forEach(e=>{e.addEventListener(ME.CLICK,e=>this.handleFakeLinkClick(t,e))})})}static handleFakeLinkClick(e,t){e.forEach(e=>e.removeAttribute("aria-current"));const{target:s}=t;s instanceof HTMLElement&&s.setAttribute("aria-current","page")}}HE.initialize();class BE{static HEADER_SELECTOR="#header";static PIN_CLASS="pin-header";static HIDE_HEADER_TOP_CLASS="hide-header-top";static SCROLL_THRESHOLD=100;static HEADER_TOP_SELECTOR=".header-top-bar";static PIN_THRESHOLD=0;header;scrollTop;lastScrollTop;headerTop;scrollUpDistance=0;headerBottom;isTransitioning=!1;transitionTimeout=null;constructor(){this.header=document.querySelector(dE),this.scrollTop=0,this.lastScrollTop=100,this.headerTop=this.header?.querySelector(hE)??null,this.headerBottom=this.header?.querySelector(".header-bottom")??null,this.init()}init(){if(this.header){this.scrollPinHeader();(new bf).init(),this.setMessageBannerHeight(),this.setupHeaderBottomHeightTracking(),globalThis.addEventListener("resize",()=>{this.setMessageBannerHeight()})}}scrollPinHeader(){this.updateHeaderState(),[ME.SCROLL,ME.RESIZE,ME.ORIENTATION_CHANGE].forEac
3h(e=>{globalThis.addEventListener(e,()=>{this.updateHeaderState()})})}updateHeaderState(){if(!this.header)return;this.scrollTop=window.scrollY;if(this.scrollTop>LE.PIN?this.header.classList.add(bE):this.header.classList.remove(bE),0===this.scrollTop)return this.header.classList.remove(TE),this.scrollUpDistance=0,void(this.lastScrollTop=this.scrollTop);this.isTransitioning||(this.scrollTop>this.lastScrollTop&&this.scrollTop>0&&!this.header.classList.contains(vE)&&!this.header.querySelector(uE)?.classList.contains(SE)?(this.header.classList.add(TE),this.scrollUpDistance=0):this.scrollTop<this.lastScrollTop&&(this.scrollUpDistance+=this.lastScrollTop-this.scrollTop,this.scrollUpDistance>=200&&(this.header.classList.remove(TE),this.scrollUpDistance=0,this.startTransitionLock())),this.lastScrollTop=this.scrollTop)}startTransitionLock(){this.isTransitioning=!0,null!==this.transitionTimeout&&globalThis.clearTimeout(this.transitionTimeout),this.transitionTimeout=globalThis.setTimeout(()=>{this.isTransitioning=!1,this.transitionTimeout=null,this.lastScrollTop=globalThis.scrollY},LE.TRANSITION_DURATION)}static initialize(){return document.querySelector(dE)?new BE:null}setMessageBannerHeight(){const e=this.header?.querySelector(".cmp-experiencefragment .container--sticky .text-compliance-message-banner");e&&document.querySelector("html")?.style.setProperty("--ds-message-banner-height",`${e.clientHeight}px`)}getHeaderBottomHeight(){return this.headerBottom?.offsetHeight??0}setHeaderBottomHeight(){const e=this.getHeaderBottomHeight();document.querySelector("html")?.style.setProperty("--ds-header-bottom-height",`${e}px`)}setupHeaderBottomHeightTracking(){let e;this.setHeaderBottomHeight(),globalThis.addEventListener("resize",()=>{clearTimeout(e),e=setTimeout(()=>{this.setHeaderBottomHeight()},300)})}}BE.initialize();const FE=".header-dropdown",qE=".header-top-nav__item--dropdown",$E=".header-dropdown__wrapper",zE=".header-dropdown__trigger",UE=".header-dropdown__close",WE=".header-dropdown__content",VE="show",GE="header-attestation",KE="topheader:dropdown:opened",YE="topheader:dropdown:closed",jE=100,XE="click",QE="keydown",ZE=I.ESC,JE=I.ARROW_UP,eb=I.ARROW_DOWN,tb=I.TAB,sb="aria-expanded",ib={autoInit:!0,closeOnOutsideClick:!0,enableKeyboardNavigation:!0};class nb{static SELECTOR=FE;element;config;wrapper=null;triggerButton=null;boundAttestationTabHandler;state={isOpen:!1};static instances=[];constructor(e,t={}){this.element=e,this.config={...ib,...t},this.wrapper=e.querySelector($E),this.triggerButton=e.querySelector(zE),this.boundAttestationTabHandler=this.handleAttestationTabNavigation.bind(this),this.config.autoInit&&this.init()}init(){this.setupEventListeners(),this.setupKeyboardNavigation()}open(){!this.state.isOpen&&this.wrapper&&(this.wrapper.classList.add(VE),this.state.isOpen=!0,this.triggerButton&&this.triggerButton.setAttribute(sb,"true"),this.dispatchEvent(KE),this.focusFirstItem())}close(){this.state.isOpen&&this.wrapper&&(this.wrapper.classList.remove(VE),this.state.isOpen=!1,this.triggerButton&&this.triggerButton.setAttribute(sb,"false"),this.dispatchEvent(YE),this.restoreFocus())}toggle(){this.state.isOpen?this.close():this.open()}setupEventListeners(){this.triggerButton&&this.triggerButton.addEventListener(XE,this.handleTriggerClick.bind(this)),this.config.closeOnOutsideClick&&document.addEventListener(XE,this.handleOutsideClick.bind(this)),this.setupNavigationListeners()}setupNavigationListeners(){this.element.querySelectorAll(UE).forEach(e=>{e.addEventListener(XE,this.close.bind(this))})}setupKeyboardNavigation(){this.config.enableKeyboardNavigation&&(this.element.addEventListener(QE,e=>{e instanceof KeyboardEvent&&this.handleKeyboardNavigationWithFilter(e)}),this.setupAttestationTabNavigation())}handleKeyboardNavigationWithFilter(e){const{target:t}=e;if(!(t instanceof HTMLElement))return;const s=t.closest(qE);if(!s)return;const i=s.querySelector($E);i?.classList.contains(VE)&&this.handleKeyboardNavigation(e)}handleTriggerClick(e){e.preventDefault(),e.stopPropagation(),this.toggle()}handleOutsideClick(e){const{target:t}=e;if(!(t instanceof HTMLElement))return;const s=this.element.querySelector(WE),i=document.querySelector("#onetrust-consent-sdk"),n=s?.contains(t),a=i?.contains(t);!n&&!a&&s&&this.state.isOpen&&t.isConnected&&this.close()}handleKeyboardNavigation(e){switch(e.key){case ZE:e.preventDefault(),this.close();break;case tb:this.handleTabNavigation(e);break;case JE:case eb:e.preventDefault(),this.handleArrowNavigation(e.key===eb)}}handleTabNavigation(e){const t=this.getFocusableElements(),{activeElement:s}=document;let i=-1;s instanceof HTMLElement&&(i=t.indexOf(s)),e.shiftKey&&0===i?(e.preventDefault(),t.at(-1)?.focu
3s()):e.shiftKey||i!==t.length-1||(e.preventDefault(),t[0]?.focus())}handleArrowNavigation(e){const t=this.getFocusableElements(),{activeElement:s}=document;let i=-1;s instanceof HTMLElement&&(i=t.indexOf(s));const n=e?i+1:i-1;n>=0&&n<t.length&&t[n]?.focus()}focusFirstItem(){setTimeout(()=>{this.wrapper?.classList.contains(GE)?this.getFocusableElements()[1]?.focus():this.getFocusableElements()[0]?.focus()},jE)}restoreFocus(){this.triggerButton?.focus()}getFocusableElements(){const e=["button:not([disabled])","input:not([disabled])","a[href]",'[tabindex]:not([tabindex="-1"])'];return this.wrapper?.classList.contains(GE)?Array.from(this.wrapper.querySelectorAll(e.join(", "))).filter(e=>e instanceof HTMLElement):Array.from(this.element.querySelectorAll(e.join(", "))).filter(e=>e instanceof HTMLElement)}setupAttestationTabNavigation(){document.addEventListener(QE,this.boundAttestationTabHandler)}handleAttestationTabNavigation(e){if(!(e instanceof KeyboardEvent))return;const t=e;if(t.key!==tb)return;if(!this.isAttestationHeaderShowing())return;const s=document.querySelector(".attestation");if(!s)return;const{activeElement:i}=document;i instanceof HTMLElement&&s.contains(i)&&this.controlAttestationTabNavigation(t)}isAttestationHeaderShowing(){return null!==document.querySelector(".header-attestation.show")}controlAttestationTabNavigation(e){const t=document.querySelector(".attestation");if(!t)return;if(!(t instanceof HTMLElement))return;const s=this.getAttestationFocusableElements(t);if(0===s.length)return;const i=document.activeElement;if(!(i instanceof HTMLElement))return;const n=s.indexOf(i);e.shiftKey?n<=0&&(e.preventDefault(),s.at(-1)?.focus()):n>=s.length-1&&(e.preventDefault(),s[0]?.focus())}getAttestationFocusableElements(e){return Array.from(e.querySelectorAll(['button:not([disabled]):not([tabindex="-1"])','input:not([disabled]):not([tabindex="-1"])','a[href]:not([tabindex="-1"])','[tabindex]:not([tabindex="-1"])'].join(", "))).filter(t=>{if(!(t instanceof HTMLElement))return!1;const s=globalThis.getComputedStyle(t);if("none"===s.display||"hidden"===s.visibility)return!1;let i=t.parentElement;for(;i&&i!==e;){const e=globalThis.getComputedStyle(i);if("none"===e.display||"hidden"===e.visibility)return!1;i=i.parentElement}return!0})}dispatchEvent(e){const t=new CustomEvent(e,{detail:{instance:this,state:{...this.state}},bubbles:!0,cancelable:!0});this.element.dispatchEvent(t)}static addInstance(e){nb.instances.push(e)}static removeInstance(e){const t=nb.instances.indexOf(e);t>-1&&nb.instances.splice(t,1)}destroy(){document.removeEventListener(QE,this.boundAttestationTabHandler),nb.removeInstance(this)}static getInstances(){return[...nb.instances]}static initialize(){const e=document.querySelectorAll(nb.SELECTOR);return Array.from(e).map(e=>{const t=new nb(e);return nb.addInstance(t),t})}}var ab=nb;class rb{static SELECTOR=".header-top";element;dropdownInstances=[];stickyContainer;isInitialized=!1;constructor(e){this.element=e,this.stickyContainer=document.querySelector(".cmp-experiencefragment .container--sticky")}init(){this.isInitialized||(this.initializeDropdowns(),this.setupEventListeners(),this.setupHeaderHeightTracking(),this.isInitialized=!0)}initializeDropdowns(){this.element.querySelectorAll(FE).forEach(e=>{const t=new ab(e);this.dropdownInstances.push(t)})}setupEventListeners(){document.addEventListener(QE,e=>{e instanceof KeyboardEvent&&this.handleGlobalKeydown(e)}),document.addEventListener("container-sticky:height-changed",()=>{this.setStickyContainerHeight()})}handleGlobalKeydown(e){e.key===ZE&&!0!==globalThis.isAttestationclosing&&this.closeAllDropdowns()}closeAllDropdowns(){this.dropdownInstances.forEach(e=>{e.close()})}getHeaderTopHeight(){return this.element?.offsetHeight||0}setHeaderTopHeight(){const e=this.getHeaderTopHeight();document.querySelector("html")?.style.setProperty("--ds-header-top-height-no-change",`${e}px`)}setStickyContainerHeight(){const e=this.stickyContainer?.offsetHeight||0;document.querySelector("html")?.style.setProperty("--ds-header-top",`${e}px`)}setupHeaderHeightTracking(){let e;this.setHeaderTopHeight(),this.setStickyContainerHeight(),globalThis.addEventListener("resize",()=>{clearTimeout(e),e=setTimeout(()=>{this.setHeaderTopHeight(),this.setStickyContainerHeight()},300)})}static initialize(){const e=document.querySelectorAll(rb.SELECTOR);return Array.from(e).map(e=>{const t=new rb(e);return t.init(),t})}
3static initializeDropdowns(){return ab.initialize()}}document.addEventListener("DOMContentLoaded",()=>{rb.initialize()});const ob="dismissedServiceBanners",lb=".dismissible-service-banner-v2",cb=".dismissible-service-banner__wrapper",db=".dismissible-service-banner",hb=".dismissible-service-banner__close",ub=".aria-banner-close",mb="block",pb="none",gb="tabindex",fb="id",Eb=e=>{try{const t=localStorage.getItem(e);return t?JSON.parse(t):[]}catch(e){return console.error("Error parsing localStorage data:",e),[]}};class bb{static displayActiveBanners(e,t){let s=!1;if(t.forEach(t=>{if(!(t instanceof HTMLElement))return;const i=t.querySelector(hb);if(!(i instanceof HTMLElement))return;const n=i.getAttribute(fb);if(!n)throw new Error("No button ID found for banner element");if(((e,t)=>!t.some(t=>t.bannerId===e))(n,e)){t.style.display=mb,s=!0}}),s){const e=document.querySelector(cb);e instanceof HTMLElement&&(e.style.display=mb)}}static handleCloseButtonClick(e,t,s){const i=e.getAttribute(fb);if(!i)throw new Error("No banner ID found for close button");(e=>{const t={bannerId:e,dismissedTime:Date.now()+864e5},s=Eb(ob);s.push(t),localStorage.setItem(ob,JSON.stringify(s))})(i);const n=e.closest(db);n instanceof HTMLElement&&(n.style.display=pb,document.querySelector("html")?.style.setProperty("--ds-header-dismissible-service-banner-height","0px"),document.dispatchEvent(new CustomEvent("container-sticky:height-changed"))),s&&s instanceof HTMLElement&&(s.setAttribute(gb,"0"),s.focus());const a=(e=>Array.from(e).filter(e=>e instanceof HTMLElement&&globalThis.getComputedStyle(e).display===mb).length)(t);if(0===a){const t=e.closest(cb);t instanceof HTMLElement&&(t.style.display=pb)}}}class Tb{element;constructor(e){this.element=e,this.init()}init(){this.onloadBanner(),this.showDismissibleServiceBannerHeader()}onloadBanner(){const e=document.querySelectorAll(hb),t=document.querySelectorAll(db),s=document.querySelector(ub),i=Eb(ob),n=(e=>{const t=Date.now();return e.filter(e=>t<e.dismissedTime)})(i);bb.displayActiveBanners(n,t),((e,t)=>{e.length>0&&(0===t.length?localStorage.removeItem(ob):localStorage.setItem(ob,JSON.stringify(t)))})(i,n),e.forEach(e=>{e instanceof HTMLElement&&e.addEventListener("click",()=>{bb.handleCloseButtonClick(e,t,s instanceof HTMLElement?s:null)})})}static initialize(){const e=document.querySelectorAll(lb);return e.length?Array.from(e).filter(e=>e instanceof HTMLElement).map(e=>new Tb(e)):[]}getDismissibleServiceBannerHeight(){const e=this.element;return e?.offsetHeight||0}setDismissibleServiceBannerHeight(){const e=this.getDismissibleServiceBannerHeight();document.querySelector("html")?.style.setProperty("--ds-header-dismissible-service-banner-height",`${e}px`)}showDismissibleServiceBannerHeader(){const e=null!==this.element.closest(".cmp-experiencefragment")||null!==this.element.closest("cmp-experiencefragment");if(this.element.parentElement?.querySelector(".header-fixed")||this.element.parentElement?.querySelector(".headermenu .header-fixed")||e){let e;this.element.classList.add("show-header-top"),this.setDismissibleServiceBannerHeight(),globalThis.addEventListener("resize",()=>{clearTimeout(e),e=setTimeout(()=>{this.setDismissibleServiceBannerHeight()},300)})}}}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",()=>{Tb.initialize()}):Tb.initialize();const Sb=".text-error-message",vb=".text-error-message__close",Lb=".text",yb=".text-gen-faq-schema",_b=".faq-root-json",Ab=".faq-entity-json",Cb="text-error-message--visible",wb="text-error-message--animating",Nb="text-error-message--hidden",Ib="text-error-message--notification-bar",Rb="aria-hidden",Db="error-message",Mb="--ds-header-text-error-message-height",Ob=(e=Db)=>null!==(e=>{const t=`${e}=`,s=document.cookie.split(";").find(e=>e.trim().startsWith(t));if(s)return s.trim().substring(t.length).trim();return null})(e),xb=(e=Db)=>{var t;t=e,document.cookie=`${t}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;`},Pb=e=>{document.documentElement.style.setProperty(Mb,`${e}px`)};class kb{static handleClose(e){e.querySelector(vb)&&(e.classList.contains(wb)||(e.classList.add(wb),e.classList.remove(Cb),e.classList.add(Nb),e.setAttribute(Rb,"true"),document.documentElement.style.removeProperty(Mb),xb(),setTimeout(()=>{e.style.display="none",e.classList.remove(wb),document.dispatchEvent(new CustomEvent("container-sticky:height-changed"))},300)))}static handleKeydown(e,t){e.key!==I.ENTER&&e.key!==I.SPACE||(e.preventDefault(),kb.handleClose(t)),e.key===I.ESC&&(e.preventDefault(),kb.handleClose(t))}}class Hb{element;cookieName;constructor(e){this.element=e,this.cookieName=this.element.classList.contains(Ib)?"notification-bar":Db,this.init()}init(){Ob(this.cookieName)?(this.showErrorMessage(),this.addListeners()):this.hideErrorMessage()}
3showErrorMessage(){this.element.style.display="block",this.element.classList.add(Cb),this.element.classList.remove(Nb),this.element.setAttribute(Rb,"false");const e=this.element.offsetHeight;Pb(e),globalThis.addEventListener("resize",()=>{const e=this.element.offsetHeight;Pb(e)}),setTimeout(()=>{xb(this.cookieName)},1e3)}hideErrorMessage(){this.element.style.display="none",this.element.classList.remove(Cb),this.element.classList.add(Nb),this.element.setAttribute(Rb,"true")}setVarScrollTop(){const e=window.scrollY;document.documentElement.style.setProperty("--scroll-top",`${Math.min(e,this.element.clientHeight)}px`)}addListeners(){const e=this.element.querySelector(vb);this.setVarScrollTop(),e&&e instanceof HTMLElement&&(e.addEventListener("click",e=>{e.preventDefault(),kb.handleClose(this.element),globalThis.removeEventListener("scroll",()=>{this.setVarScrollTop()})}),e.addEventListener("keydown",e=>{kb.handleKeydown(e,this.element),globalThis.removeEventListener("scroll",()=>{this.setVarScrollTop()})})),globalThis.addEventListener("scroll",()=>{this.setVarScrollTop()})}static initialize(){const e=document.querySelectorAll(Sb);return e.length?Array.from(e).filter(e=>e instanceof HTMLElement).map(e=>new Hb(e)):[]}}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",()=>{Hb.initialize()}):Hb.initialize();class Bb{element;textRootElement;jsonMainElement;jsonEntityElement;constructor(e){this.element=e,this.textRootElement=this.element.closest(Lb),this.jsonMainElement=this.textRootElement?.querySelector(_b)??null,this.jsonEntityElement=this.textRootElement?.querySelector(Ab)??null,this.init()}init(){const e=this.jsonMainElement?.textContent??null,t=this.jsonEntityElement?.textContent??null;e&&t&&this.buildAndAppendFAQSchema(e,t)}buildAndAppendFAQSchema(e,t){const s=JSON.parse(e),{questions:i,answers:n}=this.extractQuestionsAndAnswers();if(i.length>0){const e=this.createFAQEntities(i,n,t);s.mainEntity=e,this.appendSchemaToHead(s)}}extractQuestionsAndAnswers(){const e=[],t=[];let s="";return Array.from(this.element.childNodes).forEach(i=>{this.isHeadingNode(i)?(e.push(i.textContent??""),s.length>0&&(t.push(s),s="")):e.length>0&&("#text"===i.nodeName?s+=i.textContent??"":this.isAnswerContentNode(i)&&(s+=i.outerHTML))}),s.length>0&&t.push(s),{questions:e,answers:t}}isHeadingNode(e){const t=e.nodeName.toUpperCase();return"H2"===t||"H3"===t||"H4"===t}isAnswerContentNode(e){const t=e.nodeName.toUpperCase();return"P"===t||"UL"===t||"OL"===t}createFAQEntities(e,t,s){return e.map((e,i)=>{const n=JSON.parse(s);return n.name=e,n.acceptedAnswer.text=t[i],n})}appendSchemaToHead(e){const t=document.createElement("script");t.setAttribute("type","application/ld+json"),t.textContent=JSON.stringify(e),document.head.appendChild(t)}static initialize(){const e=document.querySelectorAll(yb);return e.length?Array.from(e).filter(e=>e instanceof HTMLElement).map(e=>new Bb(e)):[]}}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",()=>{Bb.initialize()}):Bb.initialize();const Fb=600,qb=960,$b=1280,zb={mobile:`(max-width: ${Fb-1}px)`,tabletPortrait:`(min-width: ${Fb}px) and (max-width: ${qb-1}px)`,tabletLandscapeUp:`(min-width: ${qb}px)`,tablet:`(min-width: ${Fb}px) and (max-width: ${$b-1}px)`,desktop:`(min-width: ${$b}px)`},Ub={TABLE_WRAPPER:".table-wrapper",SHADOW_CONTAINER:".shadow-container",TABLE_DATA:".table-data",STICKY_ROW:".sticky-row",STICKY_COL:".sticky-col",TABLE_NO_HEADER:".table-no-header"},Wb={SCROLL_LEFT:"scroll-left",SCROLL_BOTTOM:"scroll-bottom",SCROLL_TOP:"scroll-top",NO_SCROLL_LEFT:"no-scroll-left",NO_SCROLL_RIGHT:"no-scroll-right"},Vb={ENTER:I.ENTER,TAB:I.TAB},Gb=300,Kb={MODULE_CLASS:"table",TABLE_CONTAINER:".table-container",FIXED_FIRST_COLUMN:".table--fixed-first-column",NO_CORNER_CELL:".table--no-corner-cell",TOTAL_SUM:".total-sum",SORT_ENABLED:".sort",SORT_ICON:".sort-icon",SORT_HEADER:".table-data__sort-header",SORT_HEADER_CONTENT:".table-data__sort-header-content",NEW_TAB_ICON:".new-tab-icon",COMMON_LABELS:".common-labels",...Ub},Yb={TABLE_CONTAINER:"table-container",TABLE_WRAPPER:"table-wrapper",SHADOW_CONTAINER:"shadow-container",CELLS_FIXED:"cells-fixed",TOTAL_SUM_ROW:"total-sum-row",SORT_DEFAULT:"sort-default",SORT_ASC:"sort-asc",SORT_DESC:"sort-desc",SORT_ICON:"sort-icon",SORT_HEADER:"table-data__sort-header",SORT_HEADER_CONTENT:"table-data__sort-header-content",NEW_TAB_ICON:"new-tab-icon",TABLE_NO_HEADER:"table-no-header",SCROLL_BAR:"scroll-bar",SCROLL_BAR_X:"scroll-bar-x",SCROLL_BAR_Y:"scroll-bar-y",...Wb},jb={SCOPE:"scope",SCOPE_COL:"col",TABINDEX:"tabindex",ARIA_LABEL:"aria-label",TARGET:"target",TARGET_BLANK:"_blank"},Xb=Vb,Qb=(e,t,s)=>{e.style.setProperty(t,s)},Zb=e=>e?.offsetHeight??0,Jb=e=>e?.offsetWidth??0,eT=(e,t)=>
3{let s=Date.now();return()=>{s+t-Date.now()<0&&(e(),s=Date.now())}},tT=()=>globalThis.matchMedia(zb.mobile).matches,sT=e=>{const t=e.replaceAll(",","");return Number.isNaN(+t)?e:t},iT=(e,t,s,i)=>{const n=document.createElementNS("http://www.w3.org/2000/svg","svg");return n.setAttribute("width",e),n.setAttribute("height",t),n.setAttribute("viewBox",s),n.setAttribute("fill","none"),n.setAttribute("class",i),n},nT=(e,t)=>{const s=document.createElementNS("http://www.w3.org/2000/svg","path");return s.setAttribute("d",e),s.setAttribute("fill",t),s},aT=(e,t)=>{const s=e,i=document.createElement("div");for(i.classList.add("table-data__sort-header");s.firstChild;)i.appendChild(s.firstChild);if(s.appendChild(i),i.firstChild){const e=document.createElement("span");for(e.classList.add("table-data__sort-header-content");i.firstChild;)e.appendChild(i.firstChild);i.appendChild(e)}const n=document.createElement("button");n.setAttribute("aria-label",t),i.append(n),n.classList.add("sort-default","sort-icon");const a=iT("11","6","0 0 11 6","sort-icon-asc"),r=nT("M1.61436 6L5.33096 2.2915L9.04756 6L10.1893 4.8583L5.33096 0L0.472656 4.8583L1.61436 6Z","white");a.appendChild(r),n.appendChild(a);const o=iT("10","6","0 0 10 6","sort-icon-desc"),l=nT("M1.28233 0L4.99892 3.7085L8.71552 0L9.85722 1.1417L4.99892 6L0.140625 1.1417L1.28233 0Z","white");return o.appendChild(l),n.appendChild(o),n},rT=()=>{const e=document.querySelector(".common-labels");if(e?.textContent)try{return JSON.parse(e.textContent)}catch{return null}return null},oT=e=>{if("_blank"===e.getAttribute("target")){const t=document.createElement("span");e.after(t),t.classList.add("new-tab-icon")}};class lT{static handleScrollPosition(e){Math.ceil(e.offsetWidth+e.scrollLeft)>=e.scrollWidth?e.classList.add(Yb.NO_SCROLL_LEFT):e.classList.remove(Yb.NO_SCROLL_LEFT)}static handleAdvanceTableScrollPosition(e,t,s){const i=e.scrollWidth-1,n=e.scrollHeight-1;e.classList.remove(Yb.SCROLL_LEFT),Math.ceil(e.scrollLeft)>0&&e.classList.add(Yb.SCROLL_LEFT),Math.ceil(e.offsetWidth+e.scrollLeft)===i?e.classList.add(Yb.NO_SCROLL_RIGHT):e.classList.remove(Yb.NO_SCROLL_RIGHT);const a=s?.parentElement?.parentElement?.parentElement?.parentElement;a?.closest(Kb.STICKY_ROW)&&this.handleStickyRowScrolling(e,t,s,a,n),a?.closest(Kb.STICKY_COL)&&this.handleStickyColumnScrolling(e,a)}static handleStickyRowScrolling(e,t,s,i,n){t.classList.remove(Yb.SCROLL_BOTTOM),e.offsetWidth>e.scrollWidth?(Qb(t,"--topshadow","602px"),Qb(t,"--topshadowtablet","610px"),Qb(t,"--topshadowmobile","618px")):(Qb(t,"--topshadow","586px"),Qb(t,"--topshadowtablet","594px"),Qb(t,"--topshadowmobile","602px")),Math.ceil(e.scrollTop)>0&&t.classList.add(Yb.SCROLL_BOTTOM),Math.ceil(e.offsetHeight+e.scrollTop)>=n?t.classList.add(Yb.SCROLL_TOP):t.classList.remove(Yb.SCROLL_TOP),642===Math.ceil(e.offsetHeight)?Qb(e,"--right","var(--scrollbar-width, 16px)"):Qb(e,"--right","0px");const a=i.querySelectorAll("tr:first-child td, tr:first-child th"),r=i.querySelectorAll("tr:nth-child(2) td"),o=i.querySelectorAll("th:first-child, td:first-child");let l=0;a.forEach(e=>{l=Zb(e),Qb(t,"--top",`${l}px`)}),r.forEach(e=>{if(s.closest(Kb.TABLE_NO_HEADER)){const s=Zb(e);Qb(t,"--top",`${l+s}px`)}}),o.forEach(e=>{i.closest(Kb.STICKY_COL)?Qb(t,"--left",Jb(e)-1+"px"):Qb(t,"--left","0px")})}static handleStickyColumnScrolling(e,t){t.querySelectorAll("th:first-child, td:first-child").forEach(t=>{e.closest(Yb.SCROLL_LEFT)&&Qb(e,"--left",Jb(t)-1+"px")})}static extractCellText(e,t){if(!Number.isInteger(t)||t<0)return"";const s=e.querySelectorAll("td")[t];return s?.textContent??""}static compareTextValues(e,t,s){return e>t?1*s:-1*s}static compareNumericValues(e,t,s){return(Number(e)-Number(t))*s}static compareMixedValues(e,t,s){const i=/\d/;for(;e.length&&t.length;){const n=e.shift()??"",a=t.shift()??"";if(n!==a)return i.test(n)&&i.test(a)?this.compareNumericValues(n,a,s):this.compareTextValues(n,a,s)}return e.length-t.length}static compareRows(e,t,s,i){const n=this.extractCellText(e,s),a=this.extractCellText(t,s),r=String(n),o=String(a);if(r===o)return 0;const l=/\d/;if(!l.test(r)||!l.test(o))return this.compareTextValues(r,o,i);const c=/(-\d+\.?\d*)|(\d+\.?\d*)|(\D+)|(-\D+)/g,d=sT(r),h=sT(o),u=d.match(c)??[],m=h.match(c)??[];return this.compareMixedValues(u,m,i)}static sortedRows(e,t,s){return e.sort((e,i)=>this.compareRows(e,i,t,s))}static sortTableByColumn(e,t,s=!0,i=!1,n=!1){const a=i?"td":"th",r=s?1:-1;if(!(e instanceof HTMLTableElement))return;const o=e.tBodies[0],l=Array.from(o?.querySelectorAll("tr")??[]);let c=[];c=e.closest(Kb.TOTAL_SUM)?l?.slice(1,-1):n&&i?l?.slice(2):l?.slice(1);const d=this.sortedRows(c,t,r);o?.append(...d);let h=null;
3o?.querySelectorAll("tr").forEach(e=>{e.classList.contains(Yb.TOTAL_SUM_ROW)&&(h=e,e.remove())}),h&&o?.append(h),this.updateSortIcons(e,a,t,s)}static updateSortIcons(e,t,s,i){if(!Number.isInteger(s)||s<0)return;if("th"!==t&&"td"!==t)return;const n=e.querySelectorAll(t);n.forEach((e,t)=>{if(t!==s){const t=e.querySelector(`.${Yb.SORT_ICON}`);t&&(t.classList.add(Yb.SORT_DEFAULT),t.classList.remove(Yb.SORT_ASC,Yb.SORT_DESC))}});const a=n[s];if(a){const e=a.querySelector(`.${Yb.SORT_ICON}`);e&&(e.classList.remove(Yb.SORT_DEFAULT,Yb.SORT_ASC),e.classList.toggle(Yb.SORT_ASC,i),e.classList.toggle(Yb.SORT_DESC,!i))}}static handleColumnSort(e,t,s,i){const n=e?.parentElement?.parentElement?.parentElement;if(!(n instanceof HTMLElement))return;const a=Array.prototype.indexOf.call(e.parentElement?.children??[],e),r=t.classList.contains(Yb.SORT_ASC);this.sortTableByColumn(n,a,!r,s,i)}static enableSort(e){const t=rT(),s=t?.commonsConfigLabels?.sortingLabel??"Sort column";e.querySelectorAll("th").forEach(e=>{if(e.getAttribute(jb.SCOPE)===jb.SCOPE_COL){const t=aT(e,s),i=s=>{s instanceof KeyboardEvent&&s.preventDefault(),this.handleColumnSort(e,t,false,!1)};t.addEventListener("keypress",e=>{e.key!==Xb.TAB&&e.key!==Xb.ENTER||i(e)}),t.addEventListener("click",i)}})}static addSortEventListeners(e,t,s,i){const n=n=>{n instanceof KeyboardEvent&&n.preventDefault(),this.handleColumnSort(e,t,s,i)};t.addEventListener("keypress",e=>{e.key!==Xb.TAB&&e.key!==Xb.ENTER||n(e)}),t.addEventListener("click",n)}static handleTableWithoutHeader(e,t){const s=t.closest(Kb.STICKY_ROW);if(t.closest(Kb.SORT_ENABLED)){if(0===(e.querySelector("tr")?.getElementsByTagName("th").length??0)){const t=e.querySelector("tr")?.querySelectorAll("td");e.classList.add(Yb.TABLE_NO_HEADER);const i=e.insertRow(0);t?.forEach((e,t)=>{i.insertCell(t)});const n=e.querySelector("tr")?.querySelectorAll("td"),a=rT(),r=a?.commonsConfigLabels?.sortingLabel??"Sort column";n?.forEach(e=>{const t=aT(e,r);this.addSortEventListeners(e,t,true,!!s)})}}}static handleTextProcessing(e){const t=e.querySelectorAll("td"),s=e.querySelectorAll("th");t.forEach(e=>{const t=e.getElementsByTagName("a");Array.from(t).forEach(e=>{oT(e)})}),s.forEach(e=>{const t=e.getElementsByTagName("a");Array.from(t).forEach(e=>{oT(e)})})}static handleTotalSumClass(e,t){if(t.closest(Kb.TOTAL_SUM)){const t=e.querySelector("tr:last-child");t instanceof HTMLTableRowElement&&t.classList.add(Yb.TOTAL_SUM_ROW)}}static handleDimensions(e,t){return!t&&tT()?(this.setDefaultDimensions(e),!0):t&&!tT()?(this.setCustomDimensions(e),!1):t}static setCustomDimensions(e){e.classList.add(Yb.CELLS_FIXED)}static setDefaultDimensions(e){const t=e.querySelectorAll("tr");e.querySelectorAll("th:first-child, td:first-child").forEach((e,s)=>{const i=e;i.style.width="",i.style.height="",t[s]&&(t[s].style.height="")}),e.classList.remove(Yb.CELLS_FIXED);e.style.marginLeft=""}static checkScrollBar(e){const t=e.closest(Kb.TABLE_WRAPPER);t&&(e.clientHeight>t.clientHeight?t.classList.add(Yb.SCROLL_BAR_Y):t.classList.remove(Yb.SCROLL_BAR_Y),e.clientWidth>t.clientWidth?t.classList.add(Yb.SCROLL_BAR_X):t.classList.remove(Yb.SCROLL_BAR_X))}static setSizeFirstTdTh(e){const t=e.querySelector("tr:first-child"),s=t?.querySelector("td:first-child"),i=t?.querySelector("th:first-child"),n=s??i,a=e.closest(Kb.TABLE_CONTAINER);n instanceof HTMLElement&&a instanceof HTMLElement&&(Qb(a,"--width-first-cell",Jb(n)-1+"px"),Qb(a,"--height-first-cell",`${Zb(n)}px`))}}class cT{element;wrapper;shadow;rows;fixedCells;wasMobile=!1;constructor(e){this.element=e,this.init()}init(){this.initTable(),this.element.closest(Kb.FIXED_FIRST_COLUMN)&&this.initFixedTable(),this.element.closest(Kb.NO_CORNER_CELL)&&this.setSizeFirstTdTh();const e=this.element?.parentElement?.parentElement?.parentElement;e?.closest(Kb.TABLE_DATA)&&this.initAdvanceTable(e)}initTable(){this.wrap(),this.checkScrollPosition(),this.checkScrollPositionOfAdvanceTable(),this.checkScrollBar(),globalThis.addEventListener("resize",eT(this.checkScrollBar.bind(this),Gb)),globalThis.addEventListener("resize",eT(this.setSizeFirstTdTh.bind(this),Gb)),globalThis.addEventListener("resize",eT(this.checkScrollPosition.bind(this),Gb)),globalThis.addEventListener("resize",eT(this.checkScrollPositionOfAdvanceTable.bind(this),Gb)),this.checkText()}setSizeFirstTdTh(){lT.setSizeFirstTdTh(this.element)}checkScrollBar(){lT.checkScrollBar(this.element)}initFixedTable(){this.rows=this.element.querySelectorAll("tr"),this.fixedCells=this.element.querySelectorAll("th:first-child, td:first-child"),tT()?this.wasMobile=!0:(this.setCustomDimensions(),this.wasMobile=!1),globalThis.addEventListener("resize",this.handleDimensions.bind(this))}initAdvanceTable(e){this.checkSort(e),this.checkTableWithoutHeader(e),this.checkTotalSumClass(e),this.setSizeFirstTdTh()}wrap(){const{wrapper:e,shadow:t}=(e=>{const t=document.createElement("div"),s=document.createElement("div");t.appendChild(s),t.classList.add("table-container"),s.classList.add("table-wrapper"),e.parentNode?.insertBefore(t,e);const i=document.createElement("div");return s.appendChild(i),i.classList.add("shadow-container"),i.appendChild(e),{wrapper:s,shadow:i}})(this.element);this.wrapper=e,this.shadow=t,this.wrapper.addEventListener("scroll",this.checkScrollPosition.bind(this)),this.wrapper.addEventListener("scroll",this.checkScrollPositionOfAdvanceTable.bind(this))}handleDimensions(){this.wasMobile=lT.handleDimensions(this.element,this.wasMobile)}setCustomDimensions(){lT.setCustomDimensions(this.element)}setDefaultDimensions(){lT.setDefaultDimensions(this.element)}checkScrollPosition(){this.wrapper&&lT.handleScrollPosition(this.wrapper)}checkScrollPositionOfAdvanceTable(){this.wrapper&&this.shadow&&lT.handleAdvanceTableScrollPosition(this.wrapper,this.shadow,this.element)}enableSort(){lT.enableSort(this.element)}checkTableWithoutHeader(e){lT.handleTableWithoutHeader(this.element,e)}checkSort(e){e.closest(Kb.SORT_ENABLED)&&this.enableSort()}checkText(){lT.handleTextProcessing(this.element)}checkTotalSumClass(e){lT.handleTotalSumClass(this.element,e)}static initialize(){const e=document.querySelectorAll(Kb.MODULE_CLASS);return e.length?Array.from(e).map(e=>new cT(e)):[]}}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",()=>{cT.initialize()}):cT.initialize();const dT={MODULE_CLASS:".table-data table",DENSITY_GRID:".density-grid",HIGH_DENSITY_ICON:".high-density-icon",MEDIUM_DENSITY_ICON:".medium-density-icon",LOW_DENSITY_ICON:".low-density-icon",SCROLL_LEFT:".
3scroll-left",...Ub},hT={LOW_DENSITY_VIEW:"low-density-view",MEDIUM_DENSITY_VIEW:"medium-density-view",HIGH_DENSITY_VIEW:"high-density-view",ACTIVE:"active",...Wb},uT=0,mT=1,pT=2,gT="--top",fT="--left",ET="--right",bT="--topshadow",TT="--topshadowtablet",ST="--topshadowmobile",vT="602px",LT="610px",yT="618px",_T="586px",AT="594px",CT="602px",wT="var(--scrollbar-width, 16px)",NT="0px",IT=Vb,RT=e=>e?.parentElement?.parentElement?.parentElement?.parentElement??null,DT=(e,t)=>!!e?.closest(t),MT=(e,t,s)=>{const{low:i,medium:n,high:a}=s;switch(t.classList.remove(hT.LOW_DENSITY_VIEW,hT.MEDIUM_DENSITY_VIEW,hT.HIGH_DENSITY_VIEW),[i,n,a].forEach(e=>{e?.classList.remove(hT.ACTIVE)}),e){case mT:t.classList.add(hT.MEDIUM_DENSITY_VIEW),n?.classList.add(hT.ACTIVE);break;case pT:t.classList.add(hT.HIGH_DENSITY_VIEW),a?.classList.add(hT.ACTIVE);break;default:t.classList.add(hT.LOW_DENSITY_VIEW),i?.classList.add(hT.ACTIVE)}},OT=(e,t,s)=>{const i=RT(t);if(!i)return;const n=i.querySelectorAll("tr:first-child td, tr:first-child th"),a=i.querySelectorAll("tr:nth-child(2) td");let r=0;if(n.forEach(t=>{t instanceof HTMLElement&&(r=Zb(t),Qb(e,gT,`${r}px`))}),a.forEach(s=>{if(s instanceof HTMLElement&&DT(t,dT.TABLE_NO_HEADER)){const t=Zb(s);Qb(e,gT,`${r+t}px`)}}),((e,t)=>{e.querySelectorAll("th:first-child, td:first-child").forEach(e=>{e instanceof HTMLElement&&Qb(t,fT,Jb(e)-1+"px")})})(i,e),DT(i,dT.STICKY_COL)){i.querySelectorAll("th:first-child, td:first-child").forEach(e=>{e instanceof HTMLElement&&DT(s,dT.SCROLL_LEFT)&&Qb(s,fT,Jb(e)-1+"px")})}},xT=(e,t)=>Math.ceil(e.offsetHeight+e.scrollTop)>=t;class PT{static handleDensityClick(e,t,s,i){const n=s.parentElement;if(!n)return;const a=(e=>({low:e.querySelector(dT.LOW_DENSITY_ICON),medium:e.querySelector(dT.MEDIUM_DENSITY_ICON),high:e.querySelector(dT.HIGH_DENSITY_ICON)}))(e);MT(uT,n,a);t.querySelectorAll("li").forEach((e,t)=>{const r=e;r.addEventListener("touchstart",()=>{this.handleDensityChange(t,n,a,s,i)}),r.addEventListener("click",()=>{this.handleDensityChange(t,n,a,s,i)}),r.addEventListener("keypress",e=>{e.key!==IT.TAB&&e.key!==IT.ENTER||this.handleDensityChange(t,n,a,s,i)})})}static handleDensityChange(e,t,s,i,n){MT(e,t,s),lT.setSizeFirstTdTh(i),n()}static handleScrollPosition(e,t,s){OT(t,s,e);const i=e.scrollWidth-1,n=e.scrollHeight-1;this.handleHorizontalScrollClasses(e,i);const a=RT(s);a&&DT(a,dT.STICKY_ROW)&&this.handleStickyRowScrolling(e,t,n)}static handleHorizontalScrollClasses(e,t){e.classList.remove(hT.SCROLL_LEFT),Math.ceil(e.scrollLeft)>0&&e.classList.add(hT.SCROLL_LEFT),(e=>Math.ceil(e.offsetWidth+e.scrollLeft)>=e.scrollWidth)(e)?e.classList.add(hT.NO_SCROLL_LEFT):e.classList.remove(hT.NO_SCROLL_LEFT),((e,t)=>Math.ceil(e.offsetWidth+e.scrollLeft)===t)(e,t)?e.classList.add(hT.NO_SCROLL_RIGHT):e.classList.remove(hT.NO_SCROLL_RIGHT)}static handleStickyRowScrolling(e,t,s){t.classList.remove(hT.SCROLL_BOTTOM),((e,t)=>{t.offsetWidth>t.scrollWidth?(Qb(e,bT,vT),Qb(e,TT,LT),Qb(e,ST,yT)):(Qb(e,bT,_T),Qb(e,TT,AT),Qb(e,ST,CT))})(t,e),(e=>Math.ceil(e.scrollTop)>0)(e)&&t.classList.add(hT.SCROLL_BOTTOM),xT(e,e.scrollHeight)||xT(e,s)?t.classList.add(hT.SCROLL_TOP):t.classList.remove(hT.SCROLL_TOP),(e=>{642===Math.ceil(e.offsetHeight)?Qb(e,ET,wT):Qb(e,ET,NT)})(e)}static initializeScrollClasses(e,t,s){OT(e,t,s)}}class kT{element;wrapper=null;shadow=null;constructor(e){this.element=e,this.init()}init(){this.initTable()}initTable(){const e=RT(this.element);if(!e)return;const t=e.querySelector(dT.DENSITY_GRID);t&&t instanceof HTMLElement&&this.hasDensityControls(e,t)&&this.initDensityControls(e,t),this.wrapper=this.element.closest(dT.TABLE_WRAPPER),this.shadow=this.element.closest(dT.SHADOW_CONTAINER),this.wrapper&&this.shadow&&(this.wrapper.addEventListener("scroll",this.handleScrollPosition.bind(this)),this.initializeScrollClasses())}hasDensityControls(e,t){return e&&t&&DT(e,dT.TABLE_DATA)&&DT(t,dT.DENSITY_GRID)}initDensityControls(e,t){PT.handleDensityClick(e,t,this.element,this.handleScrollPosition.bind(this))}handleScrollPosition(){this.wrapper&&this.shadow&&PT.handleScrollPosition(this.wrapper,this.shadow,this.element)}initializeScrollClasses(){this.wrapper&&this.shadow&&PT.initializeScrollClasses(this.shadow,this.element,this.wrapper)}static initialize(){const e=document.querySelectorAll(dT.MODULE_CLASS);return e.length?Array.from(e).map(e=>new kT(e)):[]}}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",()=>{kT.initialize()}):kT.initialize();const HT=".countdown",BT=".countdown__clock",FT=".countdown__clock-item--days .countdown__clock-item-number",qT=".countdown__clock-item--hours .countdown__clock-item-number",$T=".countdown__clock-item--minutes .countdown__clock-item-number",zT=".countdown__clock-item--seconds .countdown__clock-item-number",UT="countdown--hide-on-completion",WT="countdown--display-completion-message",VT="countdown--completed";class GT{el;daysElement;hoursElement;minutesElement;secondsElement;countdownData;intervalId;endDate;constructor(e){this.el=e,this.daysElement=null,this.hoursElement=null,this.minutesElement=null,this.secondsElement=null,this.intervalId=null,this.endDate=new Date,this.countdownData=this.parseCountdownData()}init(){this.findElements(),this.setupEndDate(),this.startCountdown()}parseCountdownData(){return{endTime:this.el.querySelector(BT)?.dataset.endTime??"",timezone:this.el.querySelector(BT)?.dataset.timeZone??void 0,hideOnCompletion:this.el.classList.contains(UT),displayCompletionMessage:this.el.classList.contains(WT)}}findElements(){if(this.daysElement=this.el.querySelector(FT),this.hoursElement=this.el.querySelector(qT),this.minutesElement=this.el.querySelector($T),this.secondsElement=this.el.querySelector(zT),!(this.daysElement&&this.hoursElement&&this.minutesElement&&this.secondsElement))throw new Error("Countdown: Required clock elements not found")}setupEndDate(){if(!this.countdownData.endTime)throw new Error("Countdown: End time is required");try{this.endDate=this.parseEndTimeWithTimezone(this.countdownData.endTime,this.countdownData.timezone)}catch(e){throw new Error("Countdown: Invalid end time format",{cause:e})}}parseEndTimeWithTimezone(e,t){if(!t)return new Date(e);try{const s=e.split(/[/\s:]/);if(s.length<6)throw new Error("Invalid date format");const i=Number.parseInt(s[0]),n=Number.parseInt(s[1])-1,a=Number.parseInt(s[2]),r=Number.parseInt(s[3]),o=Number.parseInt(s[4]),l=Number.parseInt(s[5]),c=new Date(i,n,a,r,o,l),d=new Intl.DateTimeFormat("en",{timeZone:t,timeZoneName:"longOffset"}),h=d.formatToParts(c).find(e=>"timeZoneName"===e.type)?.value??"+00:00",u=/([+-])(\d{2}):(\d{2})/.exec(h);if(!u)return new Date(e);const m="+"===u[1]?1:-1,p=Number.parseInt(u[2]),g=m*(60*p+Number.parseInt(u[3]))*60*1e3,f=new Date(Date.UTC(i,n,a,r,o,l));return new Date(f.getTime()-g)}catch(e){throw new Error("Countdown: Invalid end time format",{cause:e})}}calculateTimeRemaining(){const e=Date.now(),t=this.endDate.getTime()-e;if(t<=0)return{days:0,hours:0,minutes:0,seconds:0};return{days:Math.floor(t/864e5),hours:Math.floor(t%864e5/36e5),minutes:Math.floor(t%36e5/6e4),seconds:Math.floor(t%6e4/1e3)}}formatNumber(e){return e.toString().padStart(2,"0")}updateDisplay(e){const t={days:this.formatNumber(e.days),hours:this.formatNumber(e.hours),minutes:this.formatNumber(e.minutes),seconds:this.formatNumber(e.seconds)};this.updateTimeElement(this.daysElement,t.days),this.updateTimeElement(this.hoursElement,t.hours),this.updateTimeElement(this.minutesElement,t.minutes),this.updateTimeElement(this.secondsElement,t.seconds)}updateTimeElement(e,t){if(!e)return;const s=e.querySelectorAll("span");s.length>=2&&(s[0].textContent=t[0],s[1].textContent=t[1])}handleCompletion(){this.stopCountdown(),this.el.classList.add(VT)}startCountdown(){this.updateCountdown(),this.intervalId=globalThis.setInterval(()=>{this.updateCountdown()},1e3)}updateCountdown(){const e=this.calculateTimeRemaining();this.updateDisplay(e),0===e.days&&0===e.hours&&0===e.minutes&&0===e.seconds&&this.handleCompletion()}stopCountdown(){null!==this.intervalId&&(clearInterval(this.intervalId),this.intervalId=null)}static initialize(){const e=document.querySelectorAll(HT);
3e.length&&e.forEach(e=>{new GT(e).init()})}}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",GT.initialize):GT.initialize();const KT=".attestation",YT=".attestation-dropdown",jT=".attestation-dropdown-container",XT=".attestation-dropdown-trigger",QT=".attestation-dropdown-search-input",ZT=".attestation-dropdown-list",JT=".attestation-dropdown-item",eS=".attestation-dropdown-text",tS=".attestation-dropdown-item-title",sS=".attestation-actions",iS=".attestation-fields",nS=".attestation-terms",aS=".attestation--landing-page",rS=".herobanner",oS=".attestation-location-dropdown",lS=".attestation-investor-type-dropdown",cS=".attestation-language-dropdown",dS=".attestation-terms-text",hS=".attestation-btn-accept",uS=".attestation-btn-required",mS=".attestation-config",pS="#attestation-page-config",gS="[data-text-key]",fS="[data-placeholder-key]",ES="[data-image-key]",bS=".cmp-experiencefragment:has(.attestation--xf-page)",TS="show",SS="selected",vS="selected-all",LS="hidden",yS="disabled",_S="attestation-dropdown-content--single",AS=".attestation--infracapital",CS="aria-expanded",wS="aria-selected",NS="data-value",IS="data-dropdown-type",RS="data-image-key",DS="data-text-key",MS="data-placeholder-key",OS="data-previous-value",xS="disabled",PS="tabindex",kS="placeholder",HS="src",BS="role",FS="attestation",qS="redirectTo",$S="redirectFrom",zS={LOCATION_LIST:`${oS} ${ZT}`,LOCATION_TRIGGER:`${oS} ${XT}`,LOCATION_TEXT:`${oS} ${eS}`,LOCATION_SELECTED_ITEM:`${oS}\n   ${JT}.${SS}`,INVESTOR_LIST:`${lS} ${ZT}`,INVESTOR_TRIGGER:`${lS} ${XT}`,INVESTOR_TEXT:`${lS} ${eS}`,INVESTOR_SELECTED_ITEM:`${lS}\n   ${JT}.${SS}`,LANGUAGE_LIST:`${cS} ${ZT}`,LANGUAGE_TRIGGER:`${cS} ${XT}`,LANGUAGE_TEXT:`${cS} ${eS}`,LANGUAGE_SELECTED_ITEM:`${cS}\n   ${JT}.${SS}`,ITEM_BY_VALUE:e=>`${JT}[${NS}="${e}"]`,LOCATION_ITEM_BY_VALUE:e=>`${oS}\n   ${JT}[${NS}="${e}"]`,INVESTOR_ITEM_BY_VALUE:e=>`${lS}\n   ${JT}[${NS}="${e}"]`,LANGUAGE_ITEM_BY_VALUE:e=>`${cS}\n   ${JT}[${NS}="${e}"]`},US="click",WS="keydown",VS="input",GS="OneTrustGroupsUpdated",KS="topheader:dropdown:opened",YS="topheader:dropdown:closed",jS="attestation:opened",XS="true",QS="false",ZS="0",JS="li",ev="option",tv="presentation",sv="X-Country-Edgescape";async function iv(e){try{let t=e.apiAttestation;if(!t)throw new Error("API URL not found in configuration");t=function(e){try{const t=new URL(e);if("https:"!==t.protocol){if("http:"===t.protocol){t.protocol="https:";const e=t.toString();return console.warn("API URL upgraded from HTTP to HTTPS for security"),e}throw new Error("Invalid protocol. Only HTTPS is allowed for API calls")}return e}catch{if(!e.startsWith("http://")&&!e.startsWith("https://"))return`${globalThis.location.origin}${e.startsWith("/")?"":"/"}${e}`;throw new Error("Invalid API URL format")}}(t);const s=`${qS}=`,i=document.cookie.split("; ").find(e=>e.startsWith(s)),n=t.includes("?");let a="";i?a=i.replace(s,""):e.currentPath&&(a=e.currentPath),a&&(t=`${t}${n?"&":"?"}path=${a}`);const r=await fetch(t,{method:"GET",headers:{"Content-Type":"application/json"}});if(!r.ok)throw new Error(`HTTP error! status: ${r.status}`);const o=await r.json(),l=r.headers?.get(sv);return l&&o&&"object"==typeof o&&!Array.isArray(o)&&"defaultAttestation"in o&&(o.defaultAttestation.location=l.toLowerCase()),o?.attestation&&(o.attestation=(o?.attestation||[]).reduce((e,t)=>{const s=t.audiences.reduce((e,t)=>{const s=t.languages.filter(e=>e["country-language-attestation-model"].attestationRedirectTo);return s.length>0&&e.push({...t,languages:s}),e},[]);return s.length>0&&e.push({...t,audiences:s}),e},[])),o}catch(e){throw console.error("Error fetching attestation data:",e),e}}class nv{element;onItemSelect;isOpen=!1;trigger=null;list=null;items=null;selectedIndex=-1;searchInput=null;noResultsLabel=null;hasResults=!0;constructor(e,t){this.element=e,this.onItemSelect=t,this.init()}init(){this.trigger=this.element.querySelector(XT),this.list=this.element.querySelector(ZT),this.items=this.element.querySelectorAll(JT),this.searchInput=this.element.querySelector(QT),this.noResultsLabel=this.element.querySelector(".attestation-no-results-label"),this.bindEvents()}bindEvents(){this.trigger&&(this.trigger.addEventListener(US,()=>{this.toggle()}),this.element.addEventListener(WS,e=>{this.handleTriggerKeydown(e)})),this.list&&this.list.addEventListener(US,e=>{const t=e.target.closest(JT);t&&this.selectItemByElement(t)}),this.searchInput&&(this.searchInput.addEventListener(VS,e=>{this.handleSearchInput(e)}),this.searchInput.addEventListener(WS,e=>{this.handleSearchInputKeydown(e)})),document.addEventListener(US,e=>{this.element.contains(e.target)||this.close()})}handleSearchInputKeydown(e){if(e.key===I.ENTER){e.preventDefault();const t=this.getFirstVisibleItem();t&&this.selectItemByElement(t)}}handleSearchInput(e){const t=e.target.value.toLowerCase().trim();this.filterItems(t),this.noResultsLabel&&(this.hasResults?this.noResultsLabel.classList.add(LS):this.noResultsLabel.classList.remove(LS))}filterItems(e){if(!this.items)return;let t=0;
3this.items.forEach(s=>{const i=s.querySelector(tS),n=i?.textContent?.toLowerCase()??"",a=s.closest("li");a&&(""===e||n.includes(e)?a.style.display="":(a.style.display="none",t++))}),this.hasResults=t!==this.items.length}getFirstVisibleItem(){if(!this.items)return null;const e=Array.from(this.items).find(e=>{const t=e.closest("li");return t&&"none"!==t.style.display});return e||null}handleTriggerKeydown(e){switch(e.key){case I.ARROW_DOWN:e.preventDefault(),this.isOpen||this.open(),this.focusNextItem();break;case I.ARROW_UP:e.preventDefault(),this.isOpen||this.open(),this.focusPreviousItem();break;case I.ESC:this.close(),this.trigger?.focus()}}focusNextItem(){this.items&&(this.selectedIndex=Math.min(this.selectedIndex+1,this.items.length-1),this.focusItem(this.selectedIndex))}focusPreviousItem(){this.items&&(this.selectedIndex=Math.max(this.selectedIndex-1,0),this.focusItem(this.selectedIndex))}focusItem(e){if(!this.items?.[e])return;this.items[e].focus()}focusTriggerFromItem(e){const t=e.closest(jT),s=t?.querySelector(XT);s?.focus()}toggle(){this.isOpen?this.close():this.open()}open(){this.isOpen=!0,this.element.classList.add(TS),this.trigger&&this.trigger.setAttribute(CS,XS),-1===this.selectedIndex&&this.items&&this.items.length>0&&(this.selectedIndex=0,this.focusItem(0)),setTimeout(()=>{const e=this.element.querySelector(".custom-scroll");e instanceof HTMLElement&&B.recalculateElement(e)},100)}close(){this.isOpen=!1,this.element.classList.remove(TS),this.trigger&&this.trigger.setAttribute(CS,QS)}selectItemByElement(e){const t=e.getAttribute(NS),s=e.querySelector(tS),i=s?.textContent?.trim()??"";t&&(this.focusTriggerFromItem(e),this.selectItem(e,t,i))}selectItem(e,t,s){const i=this.element.querySelector(eS);i&&(i.textContent=s),this.items&&this.items.forEach(e=>{const t=e;t.classList.remove(SS),t.setAttribute(wS,QS)}),e.classList.add(SS),e.setAttribute(wS,XS),this.selectedIndex=Array.from(this.items??[]).indexOf(e),this.close(),this.onItemSelect({value:t,text:s,element:e})}updateItems(){this.items=this.element.querySelectorAll(JT),this.items&&this.items.forEach(e=>{e.setAttribute(wS,QS)})}isDropdownOpen(){return this.isOpen}getSelectedValue(){const e=this.element.querySelector(`${JT}.${SS}`);return e?e.getAttribute(NS):null}getDropdownType(){return this.element.getAttribute(IS)??""}getElement(){return this.element}resetFilter(){this.searchInput&&(this.searchInput.value=""),this.filterItems("")}destroy(){this.close()}}function av(e){const t="https:"===globalThis.location.protocol?"; Secure":"";document.cookie=`${e}=;path=/;max-age=0;samesite=lax${t}`}function rv(e){const t=`; ${Fr.A.sanitize(document.cookie,{ALLOWED_TAGS:[]})}`.split(`; ${e}=`);return 2===t.length?t.pop()?.split(";").shift()??null:null}class ov{element;attestationData=null;configScript=null;pageConfigScript=null;config=null;attesRedirectTo=null;isAutoSelecting=!1;loaded=!1;pageConfigData=null;redirected=!1;isInfraCapital=!1;isLandingPage=!1;isXfPage=!1;constructor(e){if(this.element=e,this.configScript=e.querySelector(mS),this.pageConfigScript=document.querySelector(pS),!this.configScript||!this.pageConfigScript)return;const t=JSON.parse(this.configScript.textContent??"{}");this.pageConfigData=JSON.parse(this.pageConfigScript?.textContent??"{}"),this.config={locationDropdown:null,investorTypeDropdown:null,languageDropdown:null,...t},this.isInfraCapital=null!==e.querySelector(AS),this.isLandingPage=null!==e.querySelector(aS),this.isXfPage=Boolean(e.closest(bS))}sanitizeRecommendationHtml(e){const t=Fr.A.sanitize(e,{ADD_ATTR:["target","rel"]}),s=document.createElement("div");return s.innerHTML=t,s.querySelectorAll('a[target="_blank"]').forEach(e=>{e.setAttribute("rel","noopener noreferrer")}),s.innerHTML}async initialize(){if(!this.config)throw new Error("Attestation configuration not found");this.attestationData=await iv(this.config),this.attestationData?.defaultAttestation&&Object.keys(this.attestationData?.defaultAttestation).length>0&&(this.config.defaultAttestation={...this.attestationData?.defaultAttestation}),this.loaded=!0,this.renderLocationDropdown(),this.renderTermsAndConditions(),this.setDefaultValues(),this.updateDropdownDisabledState(),this.checkAllSelected(),this.initializeDropdowns(),this.initializeActionButtons(),this.handlePageShow(),setTimeout(()=>{this.element.classList.add(TS),this.isLandingPage||this.focusFirstDropdown()},500),setTimeout(()=>{this.handleSaveSettingOneTrust()},1e3)}initializeDropdowns(){this.element.querySelectorAll(YT).forEach(e
3=>{if(e instanceof HTMLElement){const t=e.getAttribute(IS),s=new nv(e,e=>{this.handleDropdownSelection(t,e)});"location"===t?this.config.locationDropdown=s:"investor"===t?this.config.investorTypeDropdown=s:"language"===t&&(this.config.languageDropdown=s)}})}renderDropdownHtml(e,t,s,i){if(!(e instanceof HTMLElement||e))return;const n=Fr.A.sanitize(t,{ALLOWED_TAGS:[]}),a=Fr.A.sanitize(s,{ALLOWED_TAGS:[]}),r=i?Fr.A.sanitize(i,{ALLOWED_TAGS:[]}):"";e.innerHTML=Fr.A.sanitize(`\n    <button class="attestation-dropdown-item"\n            ${NS}="${n}"\n            ${BS}="${ev}"\n            ${wS}="${QS}"\n            ${PS}="${ZS}">\n      <span class="attestation-dropdown-item-content last-mb-none">\n        <span class="attestation-dropdown-item-title block">${a}</span>\n        ${r?`<span class="attestation-dropdown-item-desc block">${r}</span>`:""}\n      </span>\n      <span class="icomoon icon-check selected-icon"></span>\n    </button>\n  `,{ALLOWED_TAGS:["button","span"],ALLOWED_ATTR:["class","data-value","role","aria-selected","tabindex"]})}sortDropdownData(e,t){const s="other";return[e.name.toLowerCase(),t.name.toLowerCase()].includes(s)?e.name.toLowerCase()===s?1:-1:e.displayName.localeCompare(t.displayName)}renderLocationDropdown(){const e=this.element.querySelector(zS.LOCATION_LIST);if(!e||!this.attestationData)return;e.innerHTML="";const t=this.config?.currentLanguage??this.config?.defaultAttestation?.language??"en",s=this.attestationData.labels.find(e=>e.name===t),i={};if(s?.["attestation-labels"]?.attestationLocation)try{JSON.parse(s["attestation-labels"].attestationLocation).forEach(e=>{i[e.locationCode]=e.locationName})}catch{}const n=this.attestationData.attestation.map(e=>({displayName:i[e.name]??e.title,name:e.name,title:e.title})).sort(this.sortDropdownData);n.forEach(t=>{const s=document.createElement("li");s.setAttribute(BS,tv);const n=i[t.name]??t.title;this.renderDropdownHtml(s,t.name,n),e.appendChild(s),this.config?.locationDropdown?.resetFilter()}),this.handleSingleLocationItem(n),this.config?.locationDropdown?.updateItems()}handleSingleLocationItem(e){const t=this.element.querySelector(oS);if(!t||1!==e.length)return;const s=t.querySelector(".attestation-dropdown-content");s?.classList.add(_S),this.config?.selectedLocation||setTimeout(()=>{const t=this.element.querySelector(zS.LOCATION_ITEM_BY_VALUE(e[0].name));t&&t instanceof HTMLButtonElement&&t.click(),this.handleInfraCapitalDropdown(),this.hideTermsAndAttestationFieldsOnlyOneDropdown()},50)}checkIsOnlyOneItemInEachDropdown(){const e=this.element.querySelectorAll(oS),t=this.element.querySelectorAll(lS),s=this.element.querySelectorAll(cS);return 1===t.length&&1===s.length&&1===e.length}hideTermsAndAttestationFieldsOnlyOneDropdown(){if(!this.checkIsOnlyOneItemInEachDropdown())return;const e=this.element.querySelector(iS);e&&e.classList.add(LS);const t=this.element.querySelector(nS);t&&t.classList.add(LS)}handleInfraCapitalDropdown(){this.isInfraCapital&&requestAnimationFrame(()=>{const e=this.element.querySelectorAll(lS);if(1===e.length){const t=e[0].querySelector(JT);t&&t instanceof HTMLButtonElement&&t.click()}})}focusFirstDropdown(){const e=this.element.querySelector(XT);e&&e instanceof HTMLElement&&e.focus()}renderInvestorTypeDropdown(e){const t=this.element.querySelector(zS.INVESTOR_LIST);if(!t||!this.attestationData)return;t.innerHTML="";let s=this.config?.currentLanguage??this.config?.defaultAttestation?.language;if(void 0===s){const t=this.attestationData.attestation.find(t=>t.name===e);if(!t)return;let i;for(let e,s=0;s<1;s++)e=t.audiences[s],e&&(i=e.languages);if(!i)return;for(let e=0;e<i.length;e++)(1===i?.length||i.length>1&&i[e].name.includes("en"))&&(s=i[e].name);this.config&&(this.config.currentLanguage=s??"en",this.config.defaultAttestation&&(this.config.defaultAttestation.language=s??"en"))}const i=this.getLabelsForLanguage(s),n=this.attestationData.attestation.find(t=>t.name===e);n?(n.audiences.forEach(e=>{const s=document.createElement(JS);s.setAttribute(OS,n.name),s.setAttribute(BS,tv);let a=e.title,r="";if(i?.["attestation-labels"]){const t=i["attestation-labels"],s=this.generateInvestorTypeMapping(e.name,e.title,t);s&&(a=t[s.titleKey]??e.title,s.descKey&&(r=t[s.descKey]??""))}this.renderDropdownHtml(s,e.name,a,r),t.appendChild(s)}),this.config?.investorTypeDropdown?.updateItems()):this.config?.investorTypeDropdown?.updateItems()}renderLanguageDropdown(e,t){const s=this.element.querySelector(zS.LANGUAGE_LIST);if(!s||!this.attestationData)return;s.innerHTML="";const i=this.config?.currentLanguage??this.config?.defaultAttestation?.language??"en",n=this.attestationData.labels.find(e=>e.name===i),a={};if(n?.["attestation-labels"]?.attestationLanguageTitle)try{JSON.parse(n["attestation-labels"].attestationLanguageTitle).forEach(e
3=>{a[e.languageCode]=e.languageTitle})}catch{}const r=this.attestationData.attestation.find(t=>t.name===e);if(r){const e=r.audiences.find(e=>e.name===t);if(e){e.languages.map(e=>({displayName:a[e.name]??e.title,name:e.name,title:e.title})).sort(this.sortDropdownData).forEach(t=>{const i=document.createElement(JS);i.setAttribute(OS,e.name),i.setAttribute(BS,tv);const n=a[t.name]??t.title;this.renderDropdownHtml(i,t.name,n),s.appendChild(i)}),1!==e.languages.length||this.isAutoSelecting||this.config?.selectedLanguage||this.autoSelectSingleLanguage(e.languages[0].name)}}this.config?.languageDropdown?.updateItems()}checkAllSelected(){if(!this.config)return;const{selectedLocation:e,selectedInvestorType:t,selectedLanguage:s}=this.config;e&&t&&s?(this.element.classList.add(vS),this.enableActionButtons(),B.recalculate()):(this.element.classList.remove(vS),this.disableActionButtons())}updateDropdownDisabledState(){if(!this.config)return;const{selectedLocation:e,selectedInvestorType:t}=this.config,s=this.element.querySelector(oS);s&&this.enableDropdowns(s);const i=this.element.querySelector(lS);i&&(e?this.enableDropdowns(i):this.disableDropdowns(i));const n=this.element.querySelector(cS);n&&(e&&t?this.enableDropdowns(n):this.disableDropdowns(n))}disableDropdowns(e){if(!e)return;e.classList.add(yS);const t=e.querySelector(XT);t&&t.setAttribute(xS,"")}enableDropdowns(e){if(!e)return;e.classList.remove(yS);const t=e.querySelector(XT);t&&t.removeAttribute(xS)}disableActionButtons(){const e=this.element.querySelector(sS);if(e){const t=e.querySelectorAll("button");t&&t.forEach(e=>{e instanceof HTMLButtonElement&&e.setAttribute(xS,"")})}}enableActionButtons(){const e=this.element.querySelector(sS);if(e){const t=e.querySelectorAll("button");t&&t.forEach(e=>{e instanceof HTMLButtonElement&&e.removeAttribute(xS)})}}updateLanguageTexts(){if(!this.attestationData||!this.config?.currentLanguage)return;let e=this.getLabelsForLanguage(this.config.currentLanguage);if(e||(this.config.currentLanguage=this.config.defaultAttestation?.language??"en",e=this.getLabelsForLanguage(this.config.currentLanguage)),!e)return;const t=this.getCurrentDropdownSelections(),s=e["attestation-labels"];this.updateImage(s),this.updateElementsByDataKey(s),this.updatePlaceholderAttributes(s);const i=this.isAutoSelecting;this.isAutoSelecting=!0,this.renderLocationDropdown(),this.config?.selectedLocation&&this.renderInvestorTypeDropdown(this.config.selectedLocation),this.config?.selectedLocation&&this.config?.selectedInvestorType&&this.renderLanguageDropdown(this.config.selectedLocation,this.config.selectedInvestorType),this.isAutoSelecting=i,this.restoreDropdownSelections(t)}updateImage(e){const t=this.element.querySelector(ES),s=t?.getAttribute(RS);if(t&&t instanceof HTMLImageElement&&s){const i=t.getAttribute(HS);i&&e[s]&&e[s]!==i&&t.setAttribute(HS,e[s])}}updateElementsByDataKey(e){this.element.querySelectorAll(gS).forEach(t=>{if(t instanceof HTMLElement){const s=t.getAttribute(DS);s&&e[s]&&(t.innerHTML=Fr.A.sanitize(e[s]))}});const t=this.element.querySelector(rS);if(!t||!e)return;["attestationBannerText1","attestationBannerText2"].every(t=>!e[t])?t.classList.add(LS):t.classList.remove(LS)}updatePlaceholderAttributes(e){this.element.querySelectorAll(fS).forEach(t=>{const s=t.getAttribute(MS);s&&e[s]&&t.setAttribute(kS,e[s])})}getCurrentDropdownSelections(){const e={};if(this.config?.selectedLocation)e.location=this.config.selectedLocation;else{const t=this.element.querySelector(zS.LOCATION_SELECTED_ITEM);t&&(e.location=t.getAttribute(NS)??"")}if(this.config?.selectedInvestorType)e.investorType=this.config.selectedInvestorType;else{const t=this.element.querySelector(zS.INVESTOR_SELECTED_ITEM);t&&(e.investorType=t.getAttribute(NS)??"")}if(this.config?.selectedLanguage)e.language=this.config.selectedLanguage;else{const t=this.element.querySelector(zS.LANGUAGE_SELECTED_ITEM);t&&(e.language=t.getAttribute(NS)??"")}return e}restoreDropdownSelections(e){if(e.location){const t=this.element.querySelector(zS.LOCATION_TEXT),s=this.element.querySelector(zS.LOCATION_ITEM_BY_VALUE(e.location));if(t&&s){const e=s.querySelector(tS);t.textContent=e?.textContent?.trim()??"",s.classList.add(SS),s.setAttribute(wS,XS)}}if(e.investorType){const t=this.element.querySelector(zS.INVESTOR_TEXT),s=this.element.querySelector(zS.INVESTOR_ITEM_BY_VALUE(e.investorType));if(t&&s){const e=s.querySelector(tS);t.textContent=e?.textContent?.trim()??"",s.classList.add(SS),s.setAttribute(wS,XS)}}if(e.language){const t=this.element.querySelector(zS.LANGUAGE_TEXT),s=this.element.querySelector(zS.LANGUAGE_ITEM_BY_VALUE(e.language));if(t&&s&&this.config?.selectedLanguage){const e=s.querySelector(tS);t.textContent=e?.textContent?.trim()??"",s.classList.add(SS),s.setAttribute(wS,XS)}}}getLabelsForLanguage(e="en"){return this.attestationData?this.attestationData.labels.find(t=>t.name===e):null}
3generateInvestorTypeMapping(e,t,s){const i=[`attestation${this.capitalizeFirst(e)}Label`,`attestation${this.capitalizeFirst(t)}Label`,`attestation${this.capitalizeFirst(e.replace("-",""))}Label`,`attestation${this.capitalizeFirst(t.replace(" ",""))}Label`].find(e=>s[e]);if(i){const e=i.replace("Label","Description");return{titleKey:i,descKey:s[e]?e:""}}const n=Object.entries(s).find(([s,i])=>{if(s.includes("Label")&&"string"==typeof i){const i=s.toLowerCase(),n=e.toLowerCase(),a=t.toLowerCase();return i.includes(n)??i.includes(a.replace(" ",""))}return!1});if(n){const e=n[0].replace("Label","Description");return{titleKey:n[0],descKey:s[e]?e:""}}return null}capitalizeFirst(e){return e.charAt(0).toUpperCase()+e.slice(1)}setDefaultValues(){const e=rv(FS);e&&this.processDefaultAttestationFromCookie(e),this.processMockGeoLocationFromURL(),this.config?.defaultAttestation?this.applyDefaultAttestationValues():this.setDefaultEnglishLanguage()}processMockGeoLocationFromURL(){const e=(new URLSearchParams(globalThis.location.search).get("mockGeoLocation")??"").toLowerCase().trim();if(!e)return;const t=this.attestationData?.labels.find(({name:t,title:s})=>t.toLowerCase()===e||s.toLowerCase()===e);t&&(this.config?.defaultAttestation||(this.config.defaultAttestation={location:"",investorType:"",language:""}),this.config.defaultAttestation.location=t.name)}getCurrentRedirectToPath(e){let t={title:"",attestationRecommendation:"",attestationRedirectTo:"",audience:""};const s=this.attestationData?.attestation;return s?(this.attestationData?.attestation.forEach(s=>{s.audiences.forEach(s=>
3{s.languages.forEach(s=>{const i=s["country-language-attestation-model"];e.includes(i.attestationRedirectTo)&&(t=i)})})}),t.attestationRedirectTo):""}applyDefaultAttestationValues(){const{location:e,investorType:t,language:s}=this.config.defaultAttestation??{};e&&setTimeout(()=>{this.setDefaultLocation(e)},50),!e||t||s?(e&&t&&setTimeout(()=>{this.setDefaultInvestorType(e,t)},150),e&&t&&s&&setTimeout(()=>{this.setDefaultLanguage(e,t,s)},250)):this.setDefaultEnglishLanguage()}processDefaultAttestationFromCookie(e){const t=this.attestationData?.attestation.reduce((t,s)=>{const i=s.name;let n="",a="";return s.audiences.forEach(t=>{t.languages.forEach(s=>{const r=s.name.includes("-")?s.name.split("-")[0]:s.name,o=`${t.name}-${i}-${r}`;e.includes(o)&&(n=t.name,a=s.name)})}),n&&a&&i?{location:i,investorType:n,language:a}:t},{});t&&Object.keys(t).length>0&&this.config&&(this.config.defaultAttestation=t)}setDefaultEnglishLanguage(){const e=this.attestationData?.labels.find(e=>"en"===e.name);if(e){const t=e["attestation-labels"];this.updateImage(t),this.updateElementsByDataKey(t),this.updatePlaceholderAttributes(t)}}setDefaultLocation(e){const t=this.element.querySelector(zS.LOCATION_ITEM_BY_VALUE(e));t&&t instanceof HTMLButtonElement&&t.click()}setDefaultInvestorType(e,t){this.renderInvestorTypeDropdown(e),setTimeout(()=>{const e=this.element.querySelector(zS.INVESTOR_ITEM_BY_VALUE(t));e&&e instanceof HTMLButtonElement&&e.click()},50)}setDefaultLanguage(e,t,s){this.renderLanguageDropdown(e,t),setTimeout(()=>{const e=this.element.querySelector(zS.LANGUAGE_ITEM_BY_VALUE(s));e&&e instanceof HTMLButtonElement&&e.click()},50)}renderTermsAndConditions(){const e=this.element.querySelector(dS);if(!e||!this.attestationData)return;const t=this.attestationData.attestation[0];if(t?.audiences[0]?.languages[0]){const s=t.audiences[0].languages[0]["country-language-attestation-model"],i=s?.attestationRecommendation,n=s?.attestationRedirectTo;n&&(this.attesRedirectTo=n),i&&(e.innerHTML=this.sanitizeRecommendationHtml(i))}}autoSelectSingleInvestorType(e){if(this.isAutoSelecting)return;this.isAutoSelecting=!0;const t=this.element.querySelector(zS.INVESTOR_ITEM_BY_VALUE(e));t&&t instanceof HTMLButtonElement&&t.click(),setTimeout(()=>{this.isAutoSelecting=!1},200)}autoSelectSingleLanguage(e){if(this.isAutoSelecting)return;this.isAutoSelecting=!0;const t=this.element.querySelector(zS.LANGUAGE_ITEM_BY_VALUE(e));t&&t instanceof HTMLButtonElement&&t.click(),setTimeout(()=>{this.isAutoSelecting=!1},200)}handleDropdownSelection(e,t){if(e&&this.config){switch(e){case"location":this.config.selectedLocation=t.value,this.config.selectedInvestorType=void 0,this.config.selectedLanguage=void 0,this.config.currentLanguage=void 0,this.config.defaultAttestation&&(this.config.defaultAttestation.language=void 0),this.renderInvestorTypeDropdown(t.value);break;case"investor":this.config.selectedInvestorType=t.value,this.config.selectedLanguage=void 0,this.config.selectedLocation&&this.renderLanguageDropdown(this.config.selectedLocation,t.value),this.config.languageDropdown?.close();break;case"language":this.config.currentLanguage=t.value,this.config.selectedLanguage=t.value,globalThis.OneTrust&&"function"==typeof globalThis.OneTrust.changeLanguage&&globalThis.OneTrust.changeLanguage(t.value),this.updateTermsAndConditions()}this.updateLanguageTexts(),this.updateDropdownDisabledState(),setTimeout(()=>{this.checkAllSelected()},100)}}updateTermsAndConditions(){if(!this.attestationData||!this.config)return;const e=this.element.querySelector(dS);if(!e)return;const t=this.findAttestationModel();t&&this.updateTermsContent(e,t)}findAttestationModel(){const e=(this.attestationData?.attestation??[]).find(e=>e.name===this.config.selectedLocation);if(!e)return null;const t=e.audiences.find(e=>e.name===this.config.selectedInvestorType);if(!t)return null;const s=t.languages.find(e=>e.name===this.config.currentLanguage);return s?.["country-language-attestation-model"]??null}updateTermsContent(e,t){const{attestationRecommendation:s,attestationRedirectTo:i}=t;i&&(this.attesRedirectTo=i);const n=e,a=this.element.querySelector(nS);n instanceof HTMLElement&&a instanceof HTMLElement&&(a.classList.remove("hidden"),s?n.innerHTML=this.sanitizeRecommendationHtml(s):(n.innerHTML="",a.classList.add("hidden")))}initializeActionButtons(){const e=this.element.querySelector(hS);e&&e.addEventListener(US,()=>{this.handleAcceptClick()});const t=this.element.querySelector(uS);t&&t.addEventListener(US,()=>{this.handleRequiredClick()})}handleAcceptClick(){this.config?.selectedLocation&&this.config?.selectedInvestorType&&this.config?.currentLanguage&&this.handleRedirectUrlClick()}handleRedirectUrlClick(){if(this.redirected)return;const e=this.getRedirectUrl();this.saveAttestationCookie(),e&&(this.redirected=!0,globalThis.location.href=e)}saveAttestationCookie(){if(!this.config)return;const e=this.config?.cookieExpirationDays,t=e||"number"==typeof e?e:365,s=this.findAttestationModel(),i=new Date;i.setDate(i.getDate()+t);const n=s?.audience??"";n&&(!function(e,t,s={}){const{expirationDays:i}=s||{},n="https:"===globalThis.location.protocol?"; Secure":"",a=new Date;i&&"number"==typeof i&&a.setDate(a.getDate()+i);const r=[`${e}=${t}`,"path=/",i?"":"max-age=604800","samesite=lax",n.trim(),i?`expires=${a.toUTCString()}
3`:""].filter(Boolean).join(";");document.cookie=r}(FS,n,{expirationDays:t}),av(qS),av($S))}updateRedirectParams(e){if(!e||globalThis.location.origin.includes("localhost"))return e;const t=new URL(e,globalThis.location.origin),s=new URL(globalThis.location.href);return t.searchParams.delete(qS),s.searchParams.delete(qS),s.searchParams.forEach((e,s)=>{t.searchParams.set(s,e)}),t.toString()}removeLastSlash(e){return"/"===e.at(-1)?e.slice(0,-1):e}normalizeInternalRedirectUrl(e){if(!e)return"";try{const t=new URL(e,globalThis.location.origin);return t.origin,globalThis.location.origin,t.pathname+t.search+t.hash}catch{return e}}formatAuthorUrl(e,t){return globalThis.location.href.includes(".html")&&t?e.replace(".html",""):e}updateCurrentRedirectToPathForLandingPage(e,t){if(this.isLandingPage&&t){const e=this.getCurrentRedirectToPath(t);if(e)return e}return e}formatRedirectUrl(e,t){let s=e,i=this.pageConfigData?.currentRedirectToPath;if(i=this.formatAuthorUrl(i??"",t??null),s=this.formatAuthorUrl(s,t),i=this.updateCurrentRedirectToPathForLandingPage(i,t),i&&s){i=new URL(i,globalThis.location.origin).toString();const e=new URL(s,globalThis.location.origin);s=e.toString(),i=this.removeLastSlash(i),s=this.removeLastSlash(s),!this.isLandingPage||t?s=this.config?.smartUrlPath&&t?.includes(this.config?.smartUrlPath)?t.replace(this.config?.smartUrlPath,e.pathname):(t??globalThis.location.href.replaceAll(/([^:]\/)\/+/g,"$1"))?.replace(i??"",s??""):this.config?.smartUrlPath&&globalThis.location.href.includes(this.config?.smartUrlPath)&&(s=globalThis.location.href.replace(this.config?.smartUrlPath,e.pathname.replace(".html","")))}return s}getRedirectUrl(){let e=null;this.attesRedirectTo&&(e=this.attesRedirectTo),this.config?.attesRedirectTo&&(e=this.config.attesRedirectTo);const t=this.findAttestationModel();if(t?.isExternal)return e;const s=rv($S);return t&&e&&(e=this.formatRedirectUrl(e,s)),e=this.updateRedirectParams(e??""),e=this.normalizeInternalRedirectUrl(e??""),e??""}handleRequiredClick(){this.config?.selectedLocation&&this.config?.selectedInvestorType&&this.config?.currentLanguage&&(this.rejectAllCookiesOneTrust(),this.handleRedirectUrlClick())}allowAllCookiesOneTrust(){globalThis.OneTrust&&"function"==typeof globalThis.OneTrust.AllowAll&&(globalThis.OneTrust.Close(),globalThis.OneTrust.AllowAll())}rejectAllCookiesOneTrust(){globalThis.OneTrust&&"function"==typeof globalThis.OneTrust.RejectAll&&(globalThis.OneTrust.Close(),globalThis.OneTrust.RejectAll())}handleSaveSettingOneTrust(){globalThis.addEventListener(GS,()=>{const e=this.findAttestationModel();e?.audience&&(this.isInfraCapital||this.handleRedirectUrlClick())})}handlePageShow(){globalThis.addEventListener("pageshow",e=>{const t=document.querySelector(UE);t&&t instanceof HTMLButtonElement&&t.click(),e.persisted&&globalThis.location.reload()})}}const lv=[],cv=[],dv=e=>{if(null==e||!(e instanceof HTMLElement))return;const t=new ov(e);e.closest(".js-header-audience-dropdown")?lv.push(t):e.closest(bS)?cv.push(t):t.initialize()};document.querySelectorAll(KT).forEach(e=>{dv(e)}),so().add("attestation",e=>{dv(e)}),document.addEventListener(KS,e=>{const{target:t}=e;t instanceof HTMLElement&&(t.closest(".js-header-audience-dropdown")||t.classList.contains("js-header-language-dropdown"))&&lv.forEach(e=>{e.loaded||e.initialize()})}),document.addEventListener(jS,()=>{cv.forEach(e=>{e.loaded||e.initialize()})}),document.addEventListener(YS,e=>{const{target:t}=e;t instanceof HTMLElement&&t.closest(".js-header-audience-dropdown")&&lv.forEach(e=>{e.loaded&&e.setDefaultValues()})});const hv=300,uv=5,mv=".generic-grid .aem-Grid, .swiper-wrapper",pv=".contactInfotiles",gv=".contact-info-tiles__header-container",fv="Element is required for ContactInfoTiles",Ev="Failed to initialize ContactInfoTiles component";class bv{el;config;resizeTimeout=null;resizeHandler=null;constructor(e,t={}){if(!e)throw new Error(fv);this.el=e,this.config={resizeDebounce:hv,rowThreshold:uv,...t},this.init()}init(){this.equalizeHeights(),this.setupResizeHandler()}equalizeHeights(){const e=this.el.querySelectorAll(pv);if(!e.length)return;
3this.groupItemsByRow(e).forEach(e=>{1===e.length?this.processSingleItemRow(e[0]):this.processMultipleItemRow(e)})}groupItemsByRow(e){const t=[];let s=[],i=-1;const n=this.config.rowThreshold??uv;return e.forEach(e=>{const a=e.getBoundingClientRect().top;-1===i||Math.abs(a-i)>n?(s.length>0&&t.push(s),s=[e],i=a):s.push(e)}),s.length>0&&t.push(s),t}processSingleItemRow(e){const t=e.querySelector(gv);t&&(t.style.height="",t.style.minHeight="")}processMultipleItemRow(e){const t=this.getMaxHeight(e);e.forEach(e=>{const s=e.querySelector(gv);s&&(s.style.minHeight=`${t}px`,s.style.height="")})}getMaxHeight(e){let t=0;return e.forEach(e=>{const s=e.querySelector(gv);if(s){s.style.height="auto",s.style.minHeight="";const e=s.offsetHeight;e>t&&(t=e)}}),t}setupResizeHandler(){const e=this.config.resizeDebounce??hv;this.resizeHandler=()=>{this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(()=>{this.equalizeHeights()},e)},globalThis.addEventListener("resize",this.resizeHandler)}destroy(){this.resizeTimeout&&(clearTimeout(this.resizeTimeout),this.resizeTimeout=null),this.resizeHandler&&(globalThis.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null)}static instances=new WeakMap;static initialize(){document.querySelectorAll(mv).forEach(e=>{if(e.querySelector(pv)&&!bv.instances.has(e))try{const t=new bv(e);bv.instances.set(e,t)}catch(e){const t=e instanceof Error?e.message:String(e);console.error(`${Ev}: ${t}`,e)}})}}function Tv(){bv.initialize()}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",Tv):Tv()}},s={};function i(e){var n=s[e];if(void 0!==n)return n.exports;var a=s[e]={exports:{}};return t[e].call(a.exports,a,a.exports,i),a.exports}i.m=t,e=[],i.O=function(t,s,n,a){if(!s){var r=1/0;for(d=0;d<e.length;d++){s=e[d][0],n=e[d][1],a=e[d][2];for(var o=!0,l=0;l<s.length;l++)(!1&a||r>=a)&&Object.keys(i.O).every(function(e){return i.O[e](s[l])})?s.splice(l--,1):(o=!1,a<r&&(r=a));if(o){e.splice(d--,1);var c=n();void 0!==c&&(t=c)}}return t}a=a||0;for(var d=e.length;d>0&&e[d-1][2]>a;d--)e[d]=e[d-1];e[d]=[s,n,a]},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,{a:t}),t},i.d=function(e,t){for(var s in t)i.o(t,s)&&!i.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e={506:0};i.O.j=function(t){return 0===e[t]};var t=function(t,s){var n,a,r=s[0],o=s[1],l=s[2],c=0;if(r.some(function(t){return 0!==e[t]})){for(n in o)i.o(o,n)&&(i.m[n]=o[n]);if(l)var d=l(i)}for(t&&t(s);c<r.length;c++)a=r[c],i.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return i.O(d)},s=self.webpackChunkaem_maven_archetype=self.webpackChunkaem_maven_archetype||[];s.forEach(t.bind(null,0)),s.push=t.bind(null,s.push.bind(s))}();var n=i.O(void 0,[174],function(){return i(3802)});n=i.O(n)}();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.