diff --git a/develop/assets/index-14f07603.css b/develop/assets/index-14f07603.css deleted file mode 100644 index 317b3bea..00000000 --- a/develop/assets/index-14f07603.css +++ /dev/null @@ -1,6 +0,0 @@ -@charset "UTF-8";.app-update-banner.app-update-banner{position:absolute;left:50%;transform:translate(-50%);position:fixed;top:31px;padding:0 4rem 0 0;z-index:1040;margin:0;color:var(--text-color);text-align:center;width:700px;max-width:calc(100% - 30px);box-shadow:0 0 1rem var(--brand-color)}.app-container{height:100%}.app{padding-top:56px;height:100%}.shlink-wrapper{min-height:100%;padding-bottom:3.1rem;margin-bottom:-3.1rem}.shlink-footer{height:2.3rem;margin-top:.8rem;padding:0}@media (min-width: 768px){.shlink-footer{padding:0 15px}}.aside-menu{width:260px;background-color:var(--primary-color);box-shadow:#0000000d 0 8px 15px;position:fixed!important;padding-top:13px;padding-bottom:10px;top:56px;bottom:0;left:0;display:block;z-index:1010;overflow-x:hidden;overflow-y:auto}@media (min-width: 768px){.aside-menu{padding:30px 15px 15px}}@media (max-width: 767px){.aside-menu{transition:left .3s;top:53px;box-shadow:-10px 0 50px 11px #0000008c}}@media (max-width: 767px){.aside-menu--hidden{left:-295px}}.aside-menu__nav{height:100%}.aside-menu__item{padding:10px 20px;margin:0 -15px;text-decoration:none!important;cursor:pointer}@media (max-width: 767px){.aside-menu__item{margin:0}}.aside-menu__item:hover{background-color:var(--secondary-color)}.aside-menu__item--selected,.aside-menu__item--selected:hover{color:#fff;background-color:var(--brand-color)}.aside-menu__item--divider{border-bottom:1px solid #eeeeee;margin:20px 0}.aside-menu__item--danger{color:#dc3545}.aside-menu__item--push{margin-top:auto}.aside-menu__item--danger:hover{color:#fff;background-color:#dc3545}.aside-menu__item-text{margin-left:8px}.servers-list__list-group.servers-list__list-group{width:100%}.servers-list__list-group:not(.servers-list__list-group--embedded){max-width:400px;box-shadow:0 .125rem .25rem #00000013}.servers-list__server-item.servers-list__server-item{text-align:left;position:relative;padding:.75rem 2.5rem .75rem 1rem}.servers-list__server-item:not(:hover){color:#4696e5}.servers-list__server-item:hover{background-color:var(--secondary-color)}.servers-list__server-item-icon{position:absolute;top:50%;transform:translateY(-50%);right:1rem}.servers-list__list-group--embedded.servers-list__list-group--embedded{border-radius:0;border-top:1px solid var(--border-color)}@media (min-width: 768px){.servers-list__list-group--embedded.servers-list__list-group--embedded{max-height:220px;overflow-x:auto;scrollbar-color:rgba(0,0,0,.2) #f5f5f5;scrollbar-width:thin}.servers-list__list-group--embedded.servers-list__list-group--embedded::-webkit-scrollbar{width:6px;background-color:#f5f5f5}.servers-list__list-group--embedded.servers-list__list-group--embedded::-webkit-scrollbar-thumb{background-color:#0003;border-radius:.5rem}}.servers-list__list-group--embedded.servers-list__list-group--embedded .servers-list__server-item{border:none;border-bottom:1px solid var(--border-color)}.home{position:relative;padding-top:15px;width:100%}@media (min-width: 768px){.home{padding-top:0;height:calc(100vh - 56px - 3.1rem)}}.home__logo-wrapper{padding:1.5rem!important;height:100%!important;min-height:300px}.home__logo{position:absolute;top:50%;transform:translateY(-50%);width:calc(300.024px - 3rem)}.home__main-card{margin:0 auto;max-width:720px}@media (min-width: 768px){.home__main-card{position:absolute;top:50%;transform:translateY(-50%)}}.home__title-wrapper{padding:1.5rem!important;border-bottom:1px solid var(--border-color)}.home__title{text-align:center;font-size:1.75rem;margin:0}@media (min-width: 768px){.home__title{font-size:2.2rem}}@media (min-width: 768px){.home__servers-container{border-left:1px solid var(--border-color)}}.main-header.main-header{color:#fff;background-color:var(--brand-color)!important}.main-header.main-header .navbar-brand{color:inherit!important}.main-header__brand-logo{width:26px;margin-right:5px}.main-header__toggle-icon{width:20px;transition:transform .3s}.main-header__toggle-icon--opened{transform:rotate(180deg)}.no-menu-wrapper{padding:15px 0 0}@media (min-width: 768px){.no-menu-wrapper{padding:30px 20px 20px}}.menu-layout__swipeable,.menu-layout__swipeable-inner{height:100%}.menu-layout__burger-icon{display:none;transition:color .3s;position:fixed;top:18px;z-index:1035;font-size:1.5rem;cursor:pointer;color:#ffffff80}@media (max-width: 767px){.menu-layout__burger-icon{display:inline-block}}.menu-layout__burger-icon--active{color:#fff}.menu-layout__container.menu-layout__container{padding:20px 0 0;min-height:100%}@media (min-width: 768px){.menu-layout__container.menu-layout__container{padding:30px 0 0 260px}}.shlink-versions-container--with-sidebar{margin-left:0}@media (min-width: 768px){.shlink-versions-container--with-sidebar{margin-left:260px}}.dropdown-btn__toggle.dropdown-btn__toggle{text-align:left}.dropdown-btn__toggle.dropdown-btn__toggle--with-caret{padding-right:1.75rem}.dropdown-btn__toggle.dropdown-btn__toggle,.dropdown-btn__toggle.dropdown-btn__toggle:not(:disabled):not(.disabled).active,.dropdown-btn__toggle.dropdown-btn__toggle:not(:disabled):not(.disabled):active,.dropdown-btn__toggle.dropdown-btn__toggle:not(:disabled):not(.disabled):focus,.dropdown-btn__toggle.dropdown-btn__toggle:not(:disabled):not(.disabled):hover,.show>.dropdown-btn__toggle.dropdown-btn__toggle.dropdown-toggle{color:var(--input-text-color);background-color:var(--primary-color);border-color:var(--input-border-color)}.card .dropdown-btn__toggle.dropdown-btn__toggle,.card .dropdown-btn__toggle.dropdown-btn__toggle:not(:disabled):not(.disabled).active,.card .dropdown-btn__toggle.dropdown-btn__toggle:not(:disabled):not(.disabled):active,.card .dropdown-btn__toggle.dropdown-btn__toggle:not(:disabled):not(.disabled):focus,.card .dropdown-btn__toggle.dropdown-btn__toggle:not(:disabled):not(.disabled):hover,.show>.card .dropdown-btn__toggle.dropdown-btn__toggle.dropdown-toggle{background-color:var(--input-color)}.dropdown-btn__toggle.dropdown-btn__toggle.disabled,.dropdown-btn__toggle.dropdown-btn__toggle:disabled{background-color:var(--input-disabled-color)}.dropdown-btn__toggle.dropdown-btn__toggle:after{position:absolute;top:50%;transform:translateY(-50%);right:.75rem}.domains-dropdown__toggle-btn.domains-dropdown__toggle-btn,.domains-dropdown__toggle-btn.domains-dropdown__toggle-btn:hover,.domains-dropdown__toggle-btn.domains-dropdown__toggle-btn:active{color:#6c757d!important}.domains-dropdown__toggle-btn--active.domains-dropdown__toggle-btn--active,.domains-dropdown__toggle-btn--active.domains-dropdown__toggle-btn--active:hover,.domains-dropdown__toggle-btn--active.domains-dropdown__toggle-btn--active:active{color:var(--input-text-color)!important}.domains-dropdown__back-btn.domains-dropdown__back-btn,.domains-dropdown__back-btn.domains-dropdown__back-btn:hover{border-color:var(--border-color)}.search-field{position:relative}.search-field:focus-within{z-index:1}.search-field__input.search-field__input{padding-left:40px;padding-right:40px}.search-field__input--no-border.search-field__input--no-border{border:none;border-radius:0}.search-field__icon{position:absolute;top:50%;transform:translateY(-50%);left:15px;color:#6c757d}.search-field__close{position:absolute;top:50%;transform:translateY(-50%);right:10px;cursor:pointer}.import-servers-btn__csv-select{position:absolute;left:-9999px;top:-9999px}.server-error__container{text-align:center;display:flex;align-items:center;justify-content:center}.server-error__delete-btn{color:#dc3545;cursor:pointer}.server-error__delete-btn:hover{text-decoration:underline}.highlight-card.highlight-card{text-align:center;border-top:3px solid var(--brand-color);color:inherit;text-decoration:none}.highlight-card__link-icon{position:absolute;right:5px;bottom:5px;opacity:.1;transform:rotate(-45deg)}.highlight-card__title{text-transform:uppercase;color:#6c757d}.nav-pills__nav{position:sticky!important;top:55px;z-index:2}.nav-pills__nav-link.nav-pills__nav-link{border-radius:0!important;padding-bottom:calc(.5rem - 3px)!important;border-bottom:3px solid transparent!important;color:#5d6778;font-weight:700;cursor:pointer;text-decoration:none}@media (min-width: 576px) and (max-width: 991px){.nav-pills__nav-link.nav-pills__nav-link{font-size:89%}}.nav-pills__nav-link:hover{color:#4696e5!important}.nav-pills__nav-link.active{border-color:#4696e5!important;background-color:var(--primary-color)!important;color:#4696e5!important}.ordering-dropdown__menu--link.ordering-dropdown__menu--link{min-width:11rem}.ordering-dropdown__sort-icon{margin:3.5px 0 0;float:right}.user-interface__theme-icon{float:right;margin-top:.25rem}.create-short-url-result__copy-btn{margin-left:10px;vertical-align:inherit}.copy-to-clipboard-icon{cursor:pointer;font-size:1.2rem}.qr-code-modal__img{max-width:100%;box-shadow:0 0 .25rem #0003}.short-urls-visits-count__max-visits-control{cursor:help}.short-url-visits-count__amount{transition:transform .3s ease;display:inline-block}.short-url-visits-count__amount--big{transform:scale(1.5)}.short-url-visits-count__tooltip-list-item:not(:last-child){margin-bottom:.5rem}.tag{color:#fff}.tag--light-bg{color:#222!important}.tag:not(:last-child){margin-right:3px}.tag__close-selected-tag.tag__close-selected-tag{font-size:inherit;color:inherit;opacity:1;cursor:pointer;margin-left:5px}.tag__close-selected-tag.tag__close-selected-tag:hover{color:inherit!important;opacity:1!important}.short-urls-row__cell.short-urls-row__cell{vertical-align:middle!important}.short-urls-row__cell--break{word-break:break-all}@media (min-width: 992px){.short-urls-row__cell--indivisible{white-space:nowrap}}@media (max-width: 991px){.short-urls-row__short-url-wrapper{word-break:break-all}}@media (min-width: 992px){.short-urls-row__short-url-wrapper{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;vertical-align:bottom;display:inline-block;max-width:18rem}}.short-urls-row__copy-hint{position:absolute;top:50%;transform:translateY(-50%) translate(10px);box-shadow:0 3px 15px #00000040}@media (max-width: 991px){.short-urls-row__copy-hint{position:absolute;top:50%;transform:translateY(-50%) translate(calc(-100% - 20px))}}.react-datepicker__close-icon.react-datepicker__close-icon{position:absolute;top:50%;transform:translateY(-50%);right:0}.react-datepicker__close-icon.react-datepicker__close-icon:after{right:.75rem;line-height:11px;background-color:#333;font-size:14px}.react-datepicker__input-container,.react-datepicker-wrapper{display:block!important}.react-datepicker__day--keyboard-selected{background-color:#4696e5}.react-datepicker__day--keyboard-selected:hover{background-color:#1d77d0}.react-datepicker__time.react-datepicker__time,.react-datepicker.react-datepicker{background-color:var(--primary-color)!important;color:var(--text-color);border-color:var(--border-color)}.react-datepicker__header.react-datepicker__header{background-color:var(--secondary-color);border-color:var(--border-color)}.react-datepicker__current-month.react-datepicker__current-month,.react-datepicker-time__header.react-datepicker-time__header,.react-datepicker-year-header.react-datepicker-year-header,.react-datepicker__day-name.react-datepicker__day-name,.react-datepicker__day.react-datepicker__day:not(:hover):not(.react-datepicker__day--selected),.react-datepicker__time-name.react-datepicker__time-name{color:inherit}.react-datepicker__day--disabled.react-datepicker__day--disabled{cursor:default;color:var(--border-color)!important}.react-datepicker__day--keyboard-selected.react-datepicker__day--keyboard-selected,.react-datepicker__month-text--keyboard-selected.react-datepicker__month-text--keyboard-selected,.react-datepicker__quarter-text--keyboard-selected.react-datepicker__quarter-text--keyboard-selected,.react-datepicker__year-text--keyboard-selected.react-datepicker__year-text--keyboard-selected{background-color:var(--brand-color)!important;color:#fff!important}.react-datepicker__time-list-item.react-datepicker__time-list-item:hover{color:#232323}.react-datepicker__time-container.react-datepicker__time-container{border-color:var(--border-color)}.react-datepicker__time-list.react-datepicker__time-list{scrollbar-color:rgba(0,0,0,.5) var(--secondary-color);scrollbar-width:thin}.react-datepicker__time-list.react-datepicker__time-list::-webkit-scrollbar{width:10px;background-color:var(--secondary-color)}.react-datepicker__time-list.react-datepicker__time-list::-webkit-scrollbar-thumb{background-color:#00000080;border-radius:.5rem}.react-datepicker-popper.react-datepicker-popper{z-index:2}.react-datepicker-popper.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle.react-datepicker__triangle:after{border-top-color:var(--primary-color)}.react-datepicker-popper.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle.react-datepicker__triangle:before{border-top-color:var(--border-color)}.react-datepicker-popper.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle.react-datepicker__triangle:after{border-bottom-color:var(--secondary-color)}.react-datepicker-popper.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle.react-datepicker__triangle:before{border-bottom-color:var(--border-color)}.icon-input-container{position:relative}.icon-input-container__input{padding-right:35px!important}.icon-input-container__input:not(:disabled){background-color:var(--primary-color)!important}.card .icon-input-container__input:not(:disabled),.dropdown .icon-input-container__input:not(:disabled){background-color:var(--input-color)!important}.icon-input-container__icon{position:absolute;top:50%;transform:translateY(-50%);right:.75rem;cursor:pointer}.use-existing-if-found-info-icon__modal-quote{margin-bottom:0;padding:10px 15px;font-size:17.5px;border-left:5px solid #eeeeee;background-color:#f9f9f9}.short-url-form p:last-child{margin-bottom:0}.short-url-form .card{height:100%}.short-urls-filtering-bar__tags-icon{vertical-align:bottom;font-size:1.6rem}.short-urls-table.short-urls-table{margin-bottom:-1px}.short-urls-table__header-cell--with-action,.edit-tag-modal__color-picker-toggle{cursor:pointer}.edit-tag-modal__color-icon{color:#fff}.edit-tag-modal__popover.edit-tag-modal__popover{border-radius:.6rem}.tag-bullet{border-radius:50%;width:20px;height:20px;display:inline-block;vertical-align:-4px;margin-right:7px}.simple-paginator{user-select:none}.tags-table__header-cell.tags-table__header-cell{z-index:1;position:relative;top:56px;position:sticky;cursor:pointer}.tags-table__header-cell.tags-table__header-cell:before{content:"";position:absolute;top:-1px;left:0;bottom:-1px;right:0;background:var(--table-border-color);z-index:-2}.tags-table__header-cell.tags-table__header-cell:first-child:before{left:0}.tags-table__header-cell.tags-table__header-cell:after{content:"";position:absolute;top:0;left:0;bottom:0;right:0;background:var(--primary-color);z-index:-1}.tags-table__header-cell.tags-table__header-cell:first-child:after{left:0}.chart-card__footer--sticky{position:sticky;bottom:0}.doughnut-chart-legend{list-style-type:none;padding:0;margin:0}@media (max-width: 767px){.doughnut-chart-legend{margin-top:1rem}}.doughnut-chart-legend__item:not(:first-child){margin-top:.3rem}.doughnut-chart-legend__item-color{width:20px;min-width:20px;height:20px;margin-right:5px;border-radius:10px}.doughnut-chart-legend__item-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.line-chart-card__body canvas{height:300px!important}@media (min-width: 768px){.line-chart-card__body canvas{height:400px!important}}@media (min-width: 768px){.map-modal__modal.map-modal__modal{width:calc(100% - 40px);max-width:calc(100% - 40px);height:calc(100% - 40px);margin:20px}}@media (max-width: 767px){.map-modal__modal.map-modal__modal{width:calc(100% - 20px);max-width:calc(100% - 20px);height:calc(100% - 20px);margin:10px}}.map-modal__modal-content.map-modal__modal-content{height:100%}.map-modal__modal-title.map-modal__modal-title{position:absolute;width:100%;z-index:1001;padding:.5rem 1rem 1rem;margin:0;color:#fff;background:linear-gradient(rgba(0,0,0,.5),rgba(0,0,0,0))}.map-modal__modal-body.map-modal__modal-body{padding:0;display:flex;overflow:hidden}.map-modal__modal.map-modal__modal .leaflet-container.leaflet-container{flex:1 1 auto;border-radius:.3rem}.map-modal__modal.map-modal__modal .leaflet-top.leaflet-top .leaflet-control.leaflet-control{margin-top:60px}.open-map-modal-btn__btn.open-map-modal-btn__btn{padding:0;margin-right:1rem}.visits-table{margin:1.5rem 0 0;position:relative;background-color:var(--primary-color);overflow-y:hidden}.visits-table__header-cell{cursor:pointer;margin-bottom:55px;z-index:1;position:relative}.visits-table__header-cell:before{content:"";position:absolute;top:-1px;left:0;bottom:-1px;right:-1px;background:var(--table-border-color);z-index:-2}.visits-table__header-cell:first-child:before{left:-1px}.visits-table__header-cell:after{content:"";position:absolute;top:0;left:1px;bottom:0;right:0;background:var(--primary-color);z-index:-1}.visits-table__header-cell:first-child:after{left:0}@media (min-width: 768px){.visits-table__header-cell.visits-table__sticky{top:96px}}.visits-table__header-icon{float:right;margin-top:3px}.visits-table__footer-cell.visits-table__footer-cell{bottom:0;margin-top:34px;padding:.5rem;z-index:1;position:relative}.visits-table__footer-cell.visits-table__footer-cell:before{content:"";position:absolute;top:-1px;left:0;bottom:-1px;right:-1px;background:var(--table-border-color);z-index:-2}.visits-table__footer-cell.visits-table__footer-cell:first-child:before{left:-1px}.visits-table__footer-cell.visits-table__footer-cell:after{content:"";position:absolute;top:0;left:1px;bottom:0;right:0;background:var(--primary-color);z-index:-1}.visits-table__footer-cell.visits-table__footer-cell:first-child:after{left:0}.visits-table__sticky.visits-table__sticky{position:sticky}.short-url-visits-header__created-at{cursor:default}/*! - * Bootstrap v5.2.3 (https://getbootstrap.com/) - * Copyright 2011-2022 The Bootstrap Authors - * Copyright 2011-2022 Twitter, Inc. - * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) - */:root{--bs-blue: #0d6efd;--bs-indigo: #6610f2;--bs-purple: #6f42c1;--bs-pink: #d63384;--bs-red: #dc3545;--bs-orange: #fd7e14;--bs-yellow: #ffc107;--bs-green: #198754;--bs-teal: #20c997;--bs-cyan: #0dcaf0;--bs-black: #000;--bs-white: #fff;--bs-gray: #6c757d;--bs-gray-dark: #343a40;--bs-gray-100: #f8f9fa;--bs-gray-200: #e9ecef;--bs-gray-300: #dee2e6;--bs-gray-400: #ced4da;--bs-gray-500: #adb5bd;--bs-gray-600: #6c757d;--bs-gray-700: #495057;--bs-gray-800: #343a40;--bs-gray-900: #212529;--bs-primary: #4696e5;--bs-secondary: #6c757d;--bs-success: #198754;--bs-info: #0dcaf0;--bs-warning: #ffc107;--bs-danger: #dc3545;--bs-light: #f8f9fa;--bs-dark: #212529;--bs-primary-rgb: 70, 150, 229;--bs-secondary-rgb: 108, 117, 125;--bs-success-rgb: 25, 135, 84;--bs-info-rgb: 13, 202, 240;--bs-warning-rgb: 255, 193, 7;--bs-danger-rgb: 220, 53, 69;--bs-light-rgb: 248, 249, 250;--bs-dark-rgb: 33, 37, 41;--bs-white-rgb: 255, 255, 255;--bs-black-rgb: 0, 0, 0;--bs-body-color-rgb: 33, 37, 41;--bs-body-bg-rgb: 255, 255, 255;--bs-font-sans-serif: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--bs-font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--bs-gradient: linear-gradient(180deg, rgba(255, 255, 255, .15), rgba(255, 255, 255, 0));--bs-body-font-family: var(--bs-font-sans-serif);--bs-body-font-size: 1rem;--bs-body-font-weight: 400;--bs-body-line-height: 1.5;--bs-body-color: #212529;--bs-body-bg: #fff;--bs-border-width: 1px;--bs-border-style: solid;--bs-border-color: #dee2e6;--bs-border-color-translucent: rgba(0, 0, 0, .175);--bs-border-radius: .375rem;--bs-border-radius-sm: .25rem;--bs-border-radius-lg: .5rem;--bs-border-radius-xl: 1rem;--bs-border-radius-2xl: 2rem;--bs-border-radius-pill: 50rem;--bs-link-color: #4696e5;--bs-link-hover-color: #3878b7;--bs-code-color: #d63384;--bs-highlight-bg: #fff3cd}*,*:before,*:after{box-sizing:border-box}@media (prefers-reduced-motion: no-preference){:root{scroll-behavior:smooth}}body{margin:0;font-family:var(--bs-body-font-family);font-size:var(--bs-body-font-size);font-weight:var(--bs-body-font-weight);line-height:var(--bs-body-line-height);color:var(--bs-body-color);text-align:var(--bs-body-text-align);background-color:var(--bs-body-bg);-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:rgba(0,0,0,0)}hr{margin:1rem 0;color:inherit;border:0;border-top:1px solid;opacity:.25}h6,.h6,h5,.h5,h4,.h4,h3,.h3,h2,.h2,h1,.h1{margin-top:0;margin-bottom:.5rem;font-weight:500;line-height:1.2}h1,.h1{font-size:calc(1.375rem + 1.5vw)}@media (min-width: 1200px){h1,.h1{font-size:2.5rem}}h2,.h2{font-size:calc(1.325rem + .9vw)}@media (min-width: 1200px){h2,.h2{font-size:2rem}}h3,.h3{font-size:calc(1.3rem + .6vw)}@media (min-width: 1200px){h3,.h3{font-size:1.75rem}}h4,.h4{font-size:calc(1.275rem + .3vw)}@media (min-width: 1200px){h4,.h4{font-size:1.5rem}}h5,.h5{font-size:1.25rem}h6,.h6{font-size:1rem}p{margin-top:0;margin-bottom:1rem}abbr[title]{text-decoration:underline dotted;cursor:help;text-decoration-skip-ink:none}address{margin-bottom:1rem;font-style:normal;line-height:inherit}ol,ul{padding-left:2rem}ol,ul,dl{margin-top:0;margin-bottom:1rem}ol ol,ul ul,ol ul,ul ol{margin-bottom:0}dt{font-weight:700}dd{margin-bottom:.5rem;margin-left:0}blockquote{margin:0 0 1rem}b,strong{font-weight:bolder}small,.small{font-size:.875em}mark,.mark{padding:.1875em;background-color:var(--bs-highlight-bg)}sub,sup{position:relative;font-size:.75em;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}a{color:var(--bs-link-color);text-decoration:underline}a:hover{color:var(--bs-link-hover-color)}a:not([href]):not([class]),a:not([href]):not([class]):hover{color:inherit;text-decoration:none}pre,code,kbd,samp{font-family:var(--bs-font-monospace);font-size:1em}pre{display:block;margin-top:0;margin-bottom:1rem;overflow:auto;font-size:.875em}pre code{font-size:inherit;color:inherit;word-break:normal}code{font-size:.875em;color:var(--bs-code-color);word-wrap:break-word}a>code{color:inherit}kbd{padding:.1875rem .375rem;font-size:.875em;color:var(--bs-body-bg);background-color:var(--bs-body-color);border-radius:.25rem}kbd kbd{padding:0;font-size:1em}figure{margin:0 0 1rem}img,svg{vertical-align:middle}table{caption-side:bottom;border-collapse:collapse}caption{padding-top:.5rem;padding-bottom:.5rem;color:#6c757d;text-align:left}th{text-align:inherit;text-align:-webkit-match-parent}thead,tbody,tfoot,tr,td,th{border-color:inherit;border-style:solid;border-width:0}label{display:inline-block}button{border-radius:0}button:focus:not(:focus-visible){outline:0}input,button,select,optgroup,textarea{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button,select{text-transform:none}[role=button]{cursor:pointer}select{word-wrap:normal}select:disabled{opacity:1}[list]:not([type=date]):not([type=datetime-local]):not([type=month]):not([type=week]):not([type=time])::-webkit-calendar-picker-indicator{display:none!important}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button:not(:disabled),[type=button]:not(:disabled),[type=reset]:not(:disabled),[type=submit]:not(:disabled){cursor:pointer}::-moz-focus-inner{padding:0;border-style:none}textarea{resize:vertical}fieldset{min-width:0;padding:0;margin:0;border:0}legend{float:left;width:100%;padding:0;margin-bottom:.5rem;font-size:calc(1.275rem + .3vw);line-height:inherit}@media (min-width: 1200px){legend{font-size:1.5rem}}legend+*{clear:left}::-webkit-datetime-edit-fields-wrapper,::-webkit-datetime-edit-text,::-webkit-datetime-edit-minute,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-year-field{padding:0}::-webkit-inner-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:textfield}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-color-swatch-wrapper{padding:0}::file-selector-button{font:inherit;-webkit-appearance:button}output{display:inline-block}iframe{border:0}summary{display:list-item;cursor:pointer}progress{vertical-align:baseline}[hidden]{display:none!important}.lead{font-size:1.25rem;font-weight:300}.display-1{font-size:calc(1.625rem + 4.5vw);font-weight:300;line-height:1.2}@media (min-width: 1200px){.display-1{font-size:5rem}}.display-2{font-size:calc(1.575rem + 3.9vw);font-weight:300;line-height:1.2}@media (min-width: 1200px){.display-2{font-size:4.5rem}}.display-3{font-size:calc(1.525rem + 3.3vw);font-weight:300;line-height:1.2}@media (min-width: 1200px){.display-3{font-size:4rem}}.display-4{font-size:calc(1.475rem + 2.7vw);font-weight:300;line-height:1.2}@media (min-width: 1200px){.display-4{font-size:3.5rem}}.display-5{font-size:calc(1.425rem + 2.1vw);font-weight:300;line-height:1.2}@media (min-width: 1200px){.display-5{font-size:3rem}}.display-6{font-size:calc(1.375rem + 1.5vw);font-weight:300;line-height:1.2}@media (min-width: 1200px){.display-6{font-size:2.5rem}}.list-unstyled,.list-inline{padding-left:0;list-style:none}.list-inline-item{display:inline-block}.list-inline-item:not(:last-child){margin-right:.5rem}.initialism{font-size:.875em;text-transform:uppercase}.blockquote{margin-bottom:1rem;font-size:1.25rem}.blockquote>:last-child{margin-bottom:0}.blockquote-footer{margin-top:-1rem;margin-bottom:1rem;font-size:.875em;color:#6c757d}.blockquote-footer:before{content:"— "}.img-fluid{max-width:100%;height:auto}.img-thumbnail{padding:.25rem;background-color:#fff;border:1px solid var(--bs-border-color);border-radius:.375rem;max-width:100%;height:auto}.figure{display:inline-block}.figure-img{margin-bottom:.5rem;line-height:1}.figure-caption{font-size:.875em;color:#6c757d}.container,.container-fluid,.container-xxl,.container-xl,.container-lg,.container-md,.container-sm{--bs-gutter-x: 1.5rem;--bs-gutter-y: 0;width:100%;padding-right:calc(var(--bs-gutter-x) * .5);padding-left:calc(var(--bs-gutter-x) * .5);margin-right:auto;margin-left:auto}@media (min-width: 576px){.container-sm,.container{max-width:540px}}@media (min-width: 768px){.container-md,.container-sm,.container{max-width:720px}}@media (min-width: 992px){.container-lg,.container-md,.container-sm,.container{max-width:960px}}@media (min-width: 1200px){.container-xl,.container-lg,.container-md,.container-sm,.container{max-width:1140px}}@media (min-width: 1400px){.container-xxl,.container-xl,.container-lg,.container-md,.container-sm,.container{max-width:1320px}}.row{--bs-gutter-x: 1.5rem;--bs-gutter-y: 0;display:flex;flex-wrap:wrap;margin-top:calc(-1 * var(--bs-gutter-y));margin-right:calc(-.5 * var(--bs-gutter-x));margin-left:calc(-.5 * var(--bs-gutter-x))}.row>*{flex-shrink:0;width:100%;max-width:100%;padding-right:calc(var(--bs-gutter-x) * .5);padding-left:calc(var(--bs-gutter-x) * .5);margin-top:var(--bs-gutter-y)}.col{flex:1 0 0%}.row-cols-auto>*{flex:0 0 auto;width:auto}.row-cols-1>*{flex:0 0 auto;width:100%}.row-cols-2>*{flex:0 0 auto;width:50%}.row-cols-3>*{flex:0 0 auto;width:33.3333333333%}.row-cols-4>*{flex:0 0 auto;width:25%}.row-cols-5>*{flex:0 0 auto;width:20%}.row-cols-6>*{flex:0 0 auto;width:16.6666666667%}.col-auto{flex:0 0 auto;width:auto}.col-1{flex:0 0 auto;width:8.33333333%}.col-2{flex:0 0 auto;width:16.66666667%}.col-3{flex:0 0 auto;width:25%}.col-4{flex:0 0 auto;width:33.33333333%}.col-5{flex:0 0 auto;width:41.66666667%}.col-6{flex:0 0 auto;width:50%}.col-7{flex:0 0 auto;width:58.33333333%}.col-8{flex:0 0 auto;width:66.66666667%}.col-9{flex:0 0 auto;width:75%}.col-10{flex:0 0 auto;width:83.33333333%}.col-11{flex:0 0 auto;width:91.66666667%}.col-12{flex:0 0 auto;width:100%}.offset-1{margin-left:8.33333333%}.offset-2{margin-left:16.66666667%}.offset-3{margin-left:25%}.offset-4{margin-left:33.33333333%}.offset-5{margin-left:41.66666667%}.offset-6{margin-left:50%}.offset-7{margin-left:58.33333333%}.offset-8{margin-left:66.66666667%}.offset-9{margin-left:75%}.offset-10{margin-left:83.33333333%}.offset-11{margin-left:91.66666667%}.g-0,.gx-0{--bs-gutter-x: 0}.g-0,.gy-0{--bs-gutter-y: 0}.g-1,.gx-1{--bs-gutter-x: .25rem}.g-1,.gy-1{--bs-gutter-y: .25rem}.g-2,.gx-2{--bs-gutter-x: .5rem}.g-2,.gy-2{--bs-gutter-y: .5rem}.g-3,.gx-3{--bs-gutter-x: 1rem}.g-3,.gy-3{--bs-gutter-y: 1rem}.g-4,.gx-4{--bs-gutter-x: 1.5rem}.g-4,.gy-4{--bs-gutter-y: 1.5rem}.g-5,.gx-5{--bs-gutter-x: 3rem}.g-5,.gy-5{--bs-gutter-y: 3rem}@media (min-width: 576px){.col-sm{flex:1 0 0%}.row-cols-sm-auto>*{flex:0 0 auto;width:auto}.row-cols-sm-1>*{flex:0 0 auto;width:100%}.row-cols-sm-2>*{flex:0 0 auto;width:50%}.row-cols-sm-3>*{flex:0 0 auto;width:33.3333333333%}.row-cols-sm-4>*{flex:0 0 auto;width:25%}.row-cols-sm-5>*{flex:0 0 auto;width:20%}.row-cols-sm-6>*{flex:0 0 auto;width:16.6666666667%}.col-sm-auto{flex:0 0 auto;width:auto}.col-sm-1{flex:0 0 auto;width:8.33333333%}.col-sm-2{flex:0 0 auto;width:16.66666667%}.col-sm-3{flex:0 0 auto;width:25%}.col-sm-4{flex:0 0 auto;width:33.33333333%}.col-sm-5{flex:0 0 auto;width:41.66666667%}.col-sm-6{flex:0 0 auto;width:50%}.col-sm-7{flex:0 0 auto;width:58.33333333%}.col-sm-8{flex:0 0 auto;width:66.66666667%}.col-sm-9{flex:0 0 auto;width:75%}.col-sm-10{flex:0 0 auto;width:83.33333333%}.col-sm-11{flex:0 0 auto;width:91.66666667%}.col-sm-12{flex:0 0 auto;width:100%}.offset-sm-0{margin-left:0}.offset-sm-1{margin-left:8.33333333%}.offset-sm-2{margin-left:16.66666667%}.offset-sm-3{margin-left:25%}.offset-sm-4{margin-left:33.33333333%}.offset-sm-5{margin-left:41.66666667%}.offset-sm-6{margin-left:50%}.offset-sm-7{margin-left:58.33333333%}.offset-sm-8{margin-left:66.66666667%}.offset-sm-9{margin-left:75%}.offset-sm-10{margin-left:83.33333333%}.offset-sm-11{margin-left:91.66666667%}.g-sm-0,.gx-sm-0{--bs-gutter-x: 0}.g-sm-0,.gy-sm-0{--bs-gutter-y: 0}.g-sm-1,.gx-sm-1{--bs-gutter-x: .25rem}.g-sm-1,.gy-sm-1{--bs-gutter-y: .25rem}.g-sm-2,.gx-sm-2{--bs-gutter-x: .5rem}.g-sm-2,.gy-sm-2{--bs-gutter-y: .5rem}.g-sm-3,.gx-sm-3{--bs-gutter-x: 1rem}.g-sm-3,.gy-sm-3{--bs-gutter-y: 1rem}.g-sm-4,.gx-sm-4{--bs-gutter-x: 1.5rem}.g-sm-4,.gy-sm-4{--bs-gutter-y: 1.5rem}.g-sm-5,.gx-sm-5{--bs-gutter-x: 3rem}.g-sm-5,.gy-sm-5{--bs-gutter-y: 3rem}}@media (min-width: 768px){.col-md{flex:1 0 0%}.row-cols-md-auto>*{flex:0 0 auto;width:auto}.row-cols-md-1>*{flex:0 0 auto;width:100%}.row-cols-md-2>*{flex:0 0 auto;width:50%}.row-cols-md-3>*{flex:0 0 auto;width:33.3333333333%}.row-cols-md-4>*{flex:0 0 auto;width:25%}.row-cols-md-5>*{flex:0 0 auto;width:20%}.row-cols-md-6>*{flex:0 0 auto;width:16.6666666667%}.col-md-auto{flex:0 0 auto;width:auto}.col-md-1{flex:0 0 auto;width:8.33333333%}.col-md-2{flex:0 0 auto;width:16.66666667%}.col-md-3{flex:0 0 auto;width:25%}.col-md-4{flex:0 0 auto;width:33.33333333%}.col-md-5{flex:0 0 auto;width:41.66666667%}.col-md-6{flex:0 0 auto;width:50%}.col-md-7{flex:0 0 auto;width:58.33333333%}.col-md-8{flex:0 0 auto;width:66.66666667%}.col-md-9{flex:0 0 auto;width:75%}.col-md-10{flex:0 0 auto;width:83.33333333%}.col-md-11{flex:0 0 auto;width:91.66666667%}.col-md-12{flex:0 0 auto;width:100%}.offset-md-0{margin-left:0}.offset-md-1{margin-left:8.33333333%}.offset-md-2{margin-left:16.66666667%}.offset-md-3{margin-left:25%}.offset-md-4{margin-left:33.33333333%}.offset-md-5{margin-left:41.66666667%}.offset-md-6{margin-left:50%}.offset-md-7{margin-left:58.33333333%}.offset-md-8{margin-left:66.66666667%}.offset-md-9{margin-left:75%}.offset-md-10{margin-left:83.33333333%}.offset-md-11{margin-left:91.66666667%}.g-md-0,.gx-md-0{--bs-gutter-x: 0}.g-md-0,.gy-md-0{--bs-gutter-y: 0}.g-md-1,.gx-md-1{--bs-gutter-x: .25rem}.g-md-1,.gy-md-1{--bs-gutter-y: .25rem}.g-md-2,.gx-md-2{--bs-gutter-x: .5rem}.g-md-2,.gy-md-2{--bs-gutter-y: .5rem}.g-md-3,.gx-md-3{--bs-gutter-x: 1rem}.g-md-3,.gy-md-3{--bs-gutter-y: 1rem}.g-md-4,.gx-md-4{--bs-gutter-x: 1.5rem}.g-md-4,.gy-md-4{--bs-gutter-y: 1.5rem}.g-md-5,.gx-md-5{--bs-gutter-x: 3rem}.g-md-5,.gy-md-5{--bs-gutter-y: 3rem}}@media (min-width: 992px){.col-lg{flex:1 0 0%}.row-cols-lg-auto>*{flex:0 0 auto;width:auto}.row-cols-lg-1>*{flex:0 0 auto;width:100%}.row-cols-lg-2>*{flex:0 0 auto;width:50%}.row-cols-lg-3>*{flex:0 0 auto;width:33.3333333333%}.row-cols-lg-4>*{flex:0 0 auto;width:25%}.row-cols-lg-5>*{flex:0 0 auto;width:20%}.row-cols-lg-6>*{flex:0 0 auto;width:16.6666666667%}.col-lg-auto{flex:0 0 auto;width:auto}.col-lg-1{flex:0 0 auto;width:8.33333333%}.col-lg-2{flex:0 0 auto;width:16.66666667%}.col-lg-3{flex:0 0 auto;width:25%}.col-lg-4{flex:0 0 auto;width:33.33333333%}.col-lg-5{flex:0 0 auto;width:41.66666667%}.col-lg-6{flex:0 0 auto;width:50%}.col-lg-7{flex:0 0 auto;width:58.33333333%}.col-lg-8{flex:0 0 auto;width:66.66666667%}.col-lg-9{flex:0 0 auto;width:75%}.col-lg-10{flex:0 0 auto;width:83.33333333%}.col-lg-11{flex:0 0 auto;width:91.66666667%}.col-lg-12{flex:0 0 auto;width:100%}.offset-lg-0{margin-left:0}.offset-lg-1{margin-left:8.33333333%}.offset-lg-2{margin-left:16.66666667%}.offset-lg-3{margin-left:25%}.offset-lg-4{margin-left:33.33333333%}.offset-lg-5{margin-left:41.66666667%}.offset-lg-6{margin-left:50%}.offset-lg-7{margin-left:58.33333333%}.offset-lg-8{margin-left:66.66666667%}.offset-lg-9{margin-left:75%}.offset-lg-10{margin-left:83.33333333%}.offset-lg-11{margin-left:91.66666667%}.g-lg-0,.gx-lg-0{--bs-gutter-x: 0}.g-lg-0,.gy-lg-0{--bs-gutter-y: 0}.g-lg-1,.gx-lg-1{--bs-gutter-x: .25rem}.g-lg-1,.gy-lg-1{--bs-gutter-y: .25rem}.g-lg-2,.gx-lg-2{--bs-gutter-x: .5rem}.g-lg-2,.gy-lg-2{--bs-gutter-y: .5rem}.g-lg-3,.gx-lg-3{--bs-gutter-x: 1rem}.g-lg-3,.gy-lg-3{--bs-gutter-y: 1rem}.g-lg-4,.gx-lg-4{--bs-gutter-x: 1.5rem}.g-lg-4,.gy-lg-4{--bs-gutter-y: 1.5rem}.g-lg-5,.gx-lg-5{--bs-gutter-x: 3rem}.g-lg-5,.gy-lg-5{--bs-gutter-y: 3rem}}@media (min-width: 1200px){.col-xl{flex:1 0 0%}.row-cols-xl-auto>*{flex:0 0 auto;width:auto}.row-cols-xl-1>*{flex:0 0 auto;width:100%}.row-cols-xl-2>*{flex:0 0 auto;width:50%}.row-cols-xl-3>*{flex:0 0 auto;width:33.3333333333%}.row-cols-xl-4>*{flex:0 0 auto;width:25%}.row-cols-xl-5>*{flex:0 0 auto;width:20%}.row-cols-xl-6>*{flex:0 0 auto;width:16.6666666667%}.col-xl-auto{flex:0 0 auto;width:auto}.col-xl-1{flex:0 0 auto;width:8.33333333%}.col-xl-2{flex:0 0 auto;width:16.66666667%}.col-xl-3{flex:0 0 auto;width:25%}.col-xl-4{flex:0 0 auto;width:33.33333333%}.col-xl-5{flex:0 0 auto;width:41.66666667%}.col-xl-6{flex:0 0 auto;width:50%}.col-xl-7{flex:0 0 auto;width:58.33333333%}.col-xl-8{flex:0 0 auto;width:66.66666667%}.col-xl-9{flex:0 0 auto;width:75%}.col-xl-10{flex:0 0 auto;width:83.33333333%}.col-xl-11{flex:0 0 auto;width:91.66666667%}.col-xl-12{flex:0 0 auto;width:100%}.offset-xl-0{margin-left:0}.offset-xl-1{margin-left:8.33333333%}.offset-xl-2{margin-left:16.66666667%}.offset-xl-3{margin-left:25%}.offset-xl-4{margin-left:33.33333333%}.offset-xl-5{margin-left:41.66666667%}.offset-xl-6{margin-left:50%}.offset-xl-7{margin-left:58.33333333%}.offset-xl-8{margin-left:66.66666667%}.offset-xl-9{margin-left:75%}.offset-xl-10{margin-left:83.33333333%}.offset-xl-11{margin-left:91.66666667%}.g-xl-0,.gx-xl-0{--bs-gutter-x: 0}.g-xl-0,.gy-xl-0{--bs-gutter-y: 0}.g-xl-1,.gx-xl-1{--bs-gutter-x: .25rem}.g-xl-1,.gy-xl-1{--bs-gutter-y: .25rem}.g-xl-2,.gx-xl-2{--bs-gutter-x: .5rem}.g-xl-2,.gy-xl-2{--bs-gutter-y: .5rem}.g-xl-3,.gx-xl-3{--bs-gutter-x: 1rem}.g-xl-3,.gy-xl-3{--bs-gutter-y: 1rem}.g-xl-4,.gx-xl-4{--bs-gutter-x: 1.5rem}.g-xl-4,.gy-xl-4{--bs-gutter-y: 1.5rem}.g-xl-5,.gx-xl-5{--bs-gutter-x: 3rem}.g-xl-5,.gy-xl-5{--bs-gutter-y: 3rem}}@media (min-width: 1400px){.col-xxl{flex:1 0 0%}.row-cols-xxl-auto>*{flex:0 0 auto;width:auto}.row-cols-xxl-1>*{flex:0 0 auto;width:100%}.row-cols-xxl-2>*{flex:0 0 auto;width:50%}.row-cols-xxl-3>*{flex:0 0 auto;width:33.3333333333%}.row-cols-xxl-4>*{flex:0 0 auto;width:25%}.row-cols-xxl-5>*{flex:0 0 auto;width:20%}.row-cols-xxl-6>*{flex:0 0 auto;width:16.6666666667%}.col-xxl-auto{flex:0 0 auto;width:auto}.col-xxl-1{flex:0 0 auto;width:8.33333333%}.col-xxl-2{flex:0 0 auto;width:16.66666667%}.col-xxl-3{flex:0 0 auto;width:25%}.col-xxl-4{flex:0 0 auto;width:33.33333333%}.col-xxl-5{flex:0 0 auto;width:41.66666667%}.col-xxl-6{flex:0 0 auto;width:50%}.col-xxl-7{flex:0 0 auto;width:58.33333333%}.col-xxl-8{flex:0 0 auto;width:66.66666667%}.col-xxl-9{flex:0 0 auto;width:75%}.col-xxl-10{flex:0 0 auto;width:83.33333333%}.col-xxl-11{flex:0 0 auto;width:91.66666667%}.col-xxl-12{flex:0 0 auto;width:100%}.offset-xxl-0{margin-left:0}.offset-xxl-1{margin-left:8.33333333%}.offset-xxl-2{margin-left:16.66666667%}.offset-xxl-3{margin-left:25%}.offset-xxl-4{margin-left:33.33333333%}.offset-xxl-5{margin-left:41.66666667%}.offset-xxl-6{margin-left:50%}.offset-xxl-7{margin-left:58.33333333%}.offset-xxl-8{margin-left:66.66666667%}.offset-xxl-9{margin-left:75%}.offset-xxl-10{margin-left:83.33333333%}.offset-xxl-11{margin-left:91.66666667%}.g-xxl-0,.gx-xxl-0{--bs-gutter-x: 0}.g-xxl-0,.gy-xxl-0{--bs-gutter-y: 0}.g-xxl-1,.gx-xxl-1{--bs-gutter-x: .25rem}.g-xxl-1,.gy-xxl-1{--bs-gutter-y: .25rem}.g-xxl-2,.gx-xxl-2{--bs-gutter-x: .5rem}.g-xxl-2,.gy-xxl-2{--bs-gutter-y: .5rem}.g-xxl-3,.gx-xxl-3{--bs-gutter-x: 1rem}.g-xxl-3,.gy-xxl-3{--bs-gutter-y: 1rem}.g-xxl-4,.gx-xxl-4{--bs-gutter-x: 1.5rem}.g-xxl-4,.gy-xxl-4{--bs-gutter-y: 1.5rem}.g-xxl-5,.gx-xxl-5{--bs-gutter-x: 3rem}.g-xxl-5,.gy-xxl-5{--bs-gutter-y: 3rem}}.table{--bs-table-color: var(--bs-body-color);--bs-table-bg: transparent;--bs-table-border-color: var(--bs-border-color);--bs-table-accent-bg: transparent;--bs-table-striped-color: var(--bs-body-color);--bs-table-striped-bg: rgba(0, 0, 0, .05);--bs-table-active-color: var(--bs-body-color);--bs-table-active-bg: rgba(0, 0, 0, .1);--bs-table-hover-color: var(--bs-body-color);--bs-table-hover-bg: rgba(0, 0, 0, .075);width:100%;margin-bottom:1rem;color:var(--bs-table-color);vertical-align:top;border-color:var(--bs-table-border-color)}.table>:not(caption)>*>*{padding:.5rem;background-color:var(--bs-table-bg);border-bottom-width:1px;box-shadow:inset 0 0 0 9999px var(--bs-table-accent-bg)}.table>tbody{vertical-align:inherit}.table>thead{vertical-align:bottom}.table-group-divider{border-top:2px solid currentcolor}.caption-top{caption-side:top}.table-sm>:not(caption)>*>*{padding:.25rem}.table-bordered>:not(caption)>*{border-width:1px 0}.table-bordered>:not(caption)>*>*{border-width:0 1px}.table-borderless>:not(caption)>*>*{border-bottom-width:0}.table-borderless>:not(:first-child){border-top-width:0}.table-striped>tbody>tr:nth-of-type(odd)>*{--bs-table-accent-bg: var(--bs-table-striped-bg);color:var(--bs-table-striped-color)}.table-striped-columns>:not(caption)>tr>:nth-child(even){--bs-table-accent-bg: var(--bs-table-striped-bg);color:var(--bs-table-striped-color)}.table-active{--bs-table-accent-bg: var(--bs-table-active-bg);color:var(--bs-table-active-color)}.table-hover>tbody>tr:hover>*{--bs-table-accent-bg: var(--bs-table-hover-bg);color:var(--bs-table-hover-color)}.table-primary{--bs-table-color: #000;--bs-table-bg: #daeafa;--bs-table-border-color: #c4d3e1;--bs-table-striped-bg: #cfdeee;--bs-table-striped-color: #000;--bs-table-active-bg: #c4d3e1;--bs-table-active-color: #000;--bs-table-hover-bg: #cad8e7;--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-secondary{--bs-table-color: #000;--bs-table-bg: #e2e3e5;--bs-table-border-color: #cbccce;--bs-table-striped-bg: #d7d8da;--bs-table-striped-color: #000;--bs-table-active-bg: #cbccce;--bs-table-active-color: #000;--bs-table-hover-bg: #d1d2d4;--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-success{--bs-table-color: #000;--bs-table-bg: #d1e7dd;--bs-table-border-color: #bcd0c7;--bs-table-striped-bg: #c7dbd2;--bs-table-striped-color: #000;--bs-table-active-bg: #bcd0c7;--bs-table-active-color: #000;--bs-table-hover-bg: #c1d6cc;--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-info{--bs-table-color: #000;--bs-table-bg: #cff4fc;--bs-table-border-color: #badce3;--bs-table-striped-bg: #c5e8ef;--bs-table-striped-color: #000;--bs-table-active-bg: #badce3;--bs-table-active-color: #000;--bs-table-hover-bg: #bfe2e9;--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-warning{--bs-table-color: #000;--bs-table-bg: #fff3cd;--bs-table-border-color: #e6dbb9;--bs-table-striped-bg: #f2e7c3;--bs-table-striped-color: #000;--bs-table-active-bg: #e6dbb9;--bs-table-active-color: #000;--bs-table-hover-bg: #ece1be;--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-danger{--bs-table-color: #000;--bs-table-bg: #f8d7da;--bs-table-border-color: #dfc2c4;--bs-table-striped-bg: #eccccf;--bs-table-striped-color: #000;--bs-table-active-bg: #dfc2c4;--bs-table-active-color: #000;--bs-table-hover-bg: #e5c7ca;--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-light{--bs-table-color: #000;--bs-table-bg: #f8f9fa;--bs-table-border-color: #dfe0e1;--bs-table-striped-bg: #ecedee;--bs-table-striped-color: #000;--bs-table-active-bg: #dfe0e1;--bs-table-active-color: #000;--bs-table-hover-bg: #e5e6e7;--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-dark{--bs-table-color: #fff;--bs-table-bg: #212529;--bs-table-border-color: #373b3e;--bs-table-striped-bg: #2c3034;--bs-table-striped-color: #fff;--bs-table-active-bg: #373b3e;--bs-table-active-color: #fff;--bs-table-hover-bg: #323539;--bs-table-hover-color: #fff;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-responsive{overflow-x:auto;-webkit-overflow-scrolling:touch}@media (max-width: 575.98px){.table-responsive-sm{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width: 767.98px){.table-responsive-md{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width: 991.98px){.table-responsive-lg{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width: 1199.98px){.table-responsive-xl{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width: 1399.98px){.table-responsive-xxl{overflow-x:auto;-webkit-overflow-scrolling:touch}}.form-label{margin-bottom:.5rem}.col-form-label{padding-top:calc(.375rem + 1px);padding-bottom:calc(.375rem + 1px);margin-bottom:0;font-size:inherit;line-height:1.5}.col-form-label-lg{padding-top:calc(.5rem + 1px);padding-bottom:calc(.5rem + 1px);font-size:1.25rem}.col-form-label-sm{padding-top:calc(.25rem + 1px);padding-bottom:calc(.25rem + 1px);font-size:.875rem}.form-text{margin-top:.25rem;font-size:.875em;color:#6c757d}.form-control{display:block;width:100%;padding:.375rem .75rem;font-size:1rem;font-weight:400;line-height:1.5;color:#212529;background-color:#fff;background-clip:padding-box;border:1px solid #ced4da;appearance:none;border-radius:.375rem;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion: reduce){.form-control{transition:none}}.form-control[type=file]{overflow:hidden}.form-control[type=file]:not(:disabled):not([readonly]){cursor:pointer}.form-control:focus{color:#212529;background-color:#fff;border-color:#a3cbf2;outline:0;box-shadow:0 0 0 .25rem #4696e540}.form-control::-webkit-date-and-time-value{height:1.5em}.form-control::placeholder{color:#6c757d;opacity:1}.form-control:disabled{background-color:#e9ecef;opacity:1}.form-control::file-selector-button{padding:.375rem .75rem;margin:-.375rem -.75rem;margin-inline-end:.75rem;color:#212529;background-color:#e9ecef;pointer-events:none;border-color:inherit;border-style:solid;border-width:0;border-inline-end-width:1px;border-radius:0;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion: reduce){.form-control::file-selector-button{transition:none}}.form-control:hover:not(:disabled):not([readonly])::file-selector-button{background-color:#dde0e3}.form-control-plaintext{display:block;width:100%;padding:.375rem 0;margin-bottom:0;line-height:1.5;color:#212529;background-color:transparent;border:solid transparent;border-width:1px 0}.form-control-plaintext:focus{outline:0}.form-control-plaintext.form-control-sm,.form-control-plaintext.form-control-lg{padding-right:0;padding-left:0}.form-control-sm{min-height:calc(1.5em + .5rem + 2px);padding:.25rem .5rem;font-size:.875rem;border-radius:.25rem}.form-control-sm::file-selector-button{padding:.25rem .5rem;margin:-.25rem -.5rem;margin-inline-end:.5rem}.form-control-lg{min-height:calc(1.5em + 1rem + 2px);padding:.5rem 1rem;font-size:1.25rem;border-radius:.5rem}.form-control-lg::file-selector-button{padding:.5rem 1rem;margin:-.5rem -1rem;margin-inline-end:1rem}textarea.form-control{min-height:calc(1.5em + .75rem + 2px)}textarea.form-control-sm{min-height:calc(1.5em + .5rem + 2px)}textarea.form-control-lg{min-height:calc(1.5em + 1rem + 2px)}.form-control-color{width:3rem;height:calc(1.5em + .75rem + 2px);padding:.375rem}.form-control-color:not(:disabled):not([readonly]){cursor:pointer}.form-control-color::-moz-color-swatch{border:0!important;border-radius:.375rem}.form-control-color::-webkit-color-swatch{border-radius:.375rem}.form-control-color.form-control-sm{height:calc(1.5em + .5rem + 2px)}.form-control-color.form-control-lg{height:calc(1.5em + 1rem + 2px)}.form-select{display:block;width:100%;padding:.375rem 2.25rem .375rem .75rem;-moz-padding-start:calc(.75rem - 3px);font-size:1rem;font-weight:400;line-height:1.5;color:#212529;background-color:#fff;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");background-repeat:no-repeat;background-position:right .75rem center;background-size:16px 12px;border:1px solid #ced4da;border-radius:.375rem;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out;appearance:none}@media (prefers-reduced-motion: reduce){.form-select{transition:none}}.form-select:focus{border-color:#a3cbf2;outline:0;box-shadow:0 0 0 .25rem #4696e540}.form-select[multiple],.form-select[size]:not([size="1"]){padding-right:.75rem;background-image:none}.form-select:disabled{background-color:#e9ecef}.form-select:-moz-focusring{color:transparent;text-shadow:0 0 0 #212529}.form-select-sm{padding-top:.25rem;padding-bottom:.25rem;padding-left:.5rem;font-size:.875rem;border-radius:.25rem}.form-select-lg{padding-top:.5rem;padding-bottom:.5rem;padding-left:1rem;font-size:1.25rem;border-radius:.5rem}.form-check{display:block;min-height:1.5rem;padding-left:1.5em;margin-bottom:.125rem}.form-check .form-check-input{float:left;margin-left:-1.5em}.form-check-reverse{padding-right:1.5em;padding-left:0;text-align:right}.form-check-reverse .form-check-input{float:right;margin-right:-1.5em;margin-left:0}.form-check-input{width:1em;height:1em;margin-top:.25em;vertical-align:top;background-color:#fff;background-repeat:no-repeat;background-position:center;background-size:contain;border:1px solid rgba(0,0,0,.25);appearance:none;print-color-adjust:exact}.form-check-input[type=checkbox]{border-radius:.25em}.form-check-input[type=radio]{border-radius:50%}.form-check-input:active{filter:brightness(90%)}.form-check-input:focus{border-color:#a3cbf2;outline:0;box-shadow:0 0 0 .25rem #4696e540}.form-check-input:checked{background-color:#4696e5;border-color:#4696e5}.form-check-input:checked[type=checkbox]{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e")}.form-check-input:checked[type=radio]{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23fff'/%3e%3c/svg%3e")}.form-check-input[type=checkbox]:indeterminate{background-color:#4696e5;border-color:#4696e5;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10h8'/%3e%3c/svg%3e")}.form-check-input:disabled{pointer-events:none;filter:none;opacity:.5}.form-check-input[disabled]~.form-check-label,.form-check-input:disabled~.form-check-label{cursor:default;opacity:.5}.form-switch{padding-left:2.5em}.form-switch .form-check-input{width:2em;margin-left:-2.5em;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%280, 0, 0, 0.25%29'/%3e%3c/svg%3e");background-position:left center;border-radius:2em;transition:background-position .15s ease-in-out}@media (prefers-reduced-motion: reduce){.form-switch .form-check-input{transition:none}}.form-switch .form-check-input:focus{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23a3cbf2'/%3e%3c/svg%3e")}.form-switch .form-check-input:checked{background-position:right center;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e")}.form-switch.form-check-reverse{padding-right:2.5em;padding-left:0}.form-switch.form-check-reverse .form-check-input{margin-right:-2.5em;margin-left:0}.form-check-inline{display:inline-block;margin-right:1rem}.btn-check{position:absolute;clip:rect(0,0,0,0);pointer-events:none}.btn-check[disabled]+.btn,.btn-check:disabled+.btn{pointer-events:none;filter:none;opacity:.65}.form-range{width:100%;height:1.5rem;padding:0;background-color:transparent;appearance:none}.form-range:focus{outline:0}.form-range:focus::-webkit-slider-thumb{box-shadow:0 0 0 1px #fff,0 0 0 .25rem #4696e540}.form-range:focus::-moz-range-thumb{box-shadow:0 0 0 1px #fff,0 0 0 .25rem #4696e540}.form-range::-moz-focus-outer{border:0}.form-range::-webkit-slider-thumb{width:1rem;height:1rem;margin-top:-.25rem;background-color:#4696e5;border:0;border-radius:1rem;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;appearance:none}@media (prefers-reduced-motion: reduce){.form-range::-webkit-slider-thumb{transition:none}}.form-range::-webkit-slider-thumb:active{background-color:#c8e0f7}.form-range::-webkit-slider-runnable-track{width:100%;height:.5rem;color:transparent;cursor:pointer;background-color:#dee2e6;border-color:transparent;border-radius:1rem}.form-range::-moz-range-thumb{width:1rem;height:1rem;background-color:#4696e5;border:0;border-radius:1rem;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;appearance:none}@media (prefers-reduced-motion: reduce){.form-range::-moz-range-thumb{transition:none}}.form-range::-moz-range-thumb:active{background-color:#c8e0f7}.form-range::-moz-range-track{width:100%;height:.5rem;color:transparent;cursor:pointer;background-color:#dee2e6;border-color:transparent;border-radius:1rem}.form-range:disabled{pointer-events:none}.form-range:disabled::-webkit-slider-thumb{background-color:#adb5bd}.form-range:disabled::-moz-range-thumb{background-color:#adb5bd}.form-floating{position:relative}.form-floating>.form-control,.form-floating>.form-control-plaintext,.form-floating>.form-select{height:calc(3.5rem + 2px);line-height:1.25}.form-floating>label{position:absolute;top:0;left:0;width:100%;height:100%;padding:1rem .75rem;overflow:hidden;text-align:start;text-overflow:ellipsis;white-space:nowrap;pointer-events:none;border:1px solid transparent;transform-origin:0 0;transition:opacity .1s ease-in-out,transform .1s ease-in-out}@media (prefers-reduced-motion: reduce){.form-floating>label{transition:none}}.form-floating>.form-control,.form-floating>.form-control-plaintext{padding:1rem .75rem}.form-floating>.form-control::placeholder,.form-floating>.form-control-plaintext::placeholder{color:transparent}.form-floating>.form-control:focus,.form-floating>.form-control:not(:placeholder-shown),.form-floating>.form-control-plaintext:focus,.form-floating>.form-control-plaintext:not(:placeholder-shown){padding-top:1.625rem;padding-bottom:.625rem}.form-floating>.form-control:-webkit-autofill,.form-floating>.form-control-plaintext:-webkit-autofill{padding-top:1.625rem;padding-bottom:.625rem}.form-floating>.form-select{padding-top:1.625rem;padding-bottom:.625rem}.form-floating>.form-control:focus~label,.form-floating>.form-control:not(:placeholder-shown)~label,.form-floating>.form-control-plaintext~label,.form-floating>.form-select~label{opacity:.65;transform:scale(.85) translateY(-.5rem) translate(.15rem)}.form-floating>.form-control:-webkit-autofill~label{opacity:.65;transform:scale(.85) translateY(-.5rem) translate(.15rem)}.form-floating>.form-control-plaintext~label{border-width:1px 0}.input-group{position:relative;display:flex;flex-wrap:wrap;align-items:stretch;width:100%}.input-group>.form-control,.input-group>.form-select,.input-group>.form-floating{position:relative;flex:1 1 auto;width:1%;min-width:0}.input-group>.form-control:focus,.input-group>.form-select:focus,.input-group>.form-floating:focus-within{z-index:5}.input-group .btn{position:relative;z-index:2}.input-group .btn:focus{z-index:5}.input-group-text{display:flex;align-items:center;padding:.375rem .75rem;font-size:1rem;font-weight:400;line-height:1.5;color:#212529;text-align:center;white-space:nowrap;background-color:#e9ecef;border:1px solid #ced4da;border-radius:.375rem}.input-group-lg>.form-control,.input-group-lg>.form-select,.input-group-lg>.input-group-text,.input-group-lg>.btn{padding:.5rem 1rem;font-size:1.25rem;border-radius:.5rem}.input-group-sm>.form-control,.input-group-sm>.form-select,.input-group-sm>.input-group-text,.input-group-sm>.btn{padding:.25rem .5rem;font-size:.875rem;border-radius:.25rem}.input-group-lg>.form-select,.input-group-sm>.form-select{padding-right:3rem}.input-group:not(.has-validation)>:not(:last-child):not(.dropdown-toggle):not(.dropdown-menu):not(.form-floating),.input-group:not(.has-validation)>.dropdown-toggle:nth-last-child(n+3),.input-group:not(.has-validation)>.form-floating:not(:last-child)>.form-control,.input-group:not(.has-validation)>.form-floating:not(:last-child)>.form-select{border-top-right-radius:0;border-bottom-right-radius:0}.input-group.has-validation>:nth-last-child(n+3):not(.dropdown-toggle):not(.dropdown-menu):not(.form-floating),.input-group.has-validation>.dropdown-toggle:nth-last-child(n+4),.input-group.has-validation>.form-floating:nth-last-child(n+3)>.form-control,.input-group.has-validation>.form-floating:nth-last-child(n+3)>.form-select{border-top-right-radius:0;border-bottom-right-radius:0}.input-group>:not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback){margin-left:-1px;border-top-left-radius:0;border-bottom-left-radius:0}.input-group>.form-floating:not(:first-child)>.form-control,.input-group>.form-floating:not(:first-child)>.form-select{border-top-left-radius:0;border-bottom-left-radius:0}.valid-feedback{display:none;width:100%;margin-top:.25rem;font-size:.875em;color:#198754}.valid-tooltip{position:absolute;top:100%;z-index:5;display:none;max-width:100%;padding:.25rem .5rem;margin-top:.1rem;font-size:.875rem;color:#fff;background-color:#198754e6;border-radius:.375rem}.was-validated :valid~.valid-feedback,.was-validated :valid~.valid-tooltip,.is-valid~.valid-feedback,.is-valid~.valid-tooltip{display:block}.was-validated .form-control:valid,.form-control.is-valid{border-color:#198754;padding-right:calc(1.5em + .75rem);background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");background-repeat:no-repeat;background-position:right calc(.375em + .1875rem) center;background-size:calc(.75em + .375rem) calc(.75em + .375rem)}.was-validated .form-control:valid:focus,.form-control.is-valid:focus{border-color:#198754;box-shadow:0 0 0 .25rem #19875440}.was-validated textarea.form-control:valid,textarea.form-control.is-valid{padding-right:calc(1.5em + .75rem);background-position:top calc(.375em + .1875rem) right calc(.375em + .1875rem)}.was-validated .form-select:valid,.form-select.is-valid{border-color:#198754}.was-validated .form-select:valid:not([multiple]):not([size]),.was-validated .form-select:valid:not([multiple])[size="1"],.form-select.is-valid:not([multiple]):not([size]),.form-select.is-valid:not([multiple])[size="1"]{padding-right:4.125rem;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"),url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");background-position:right .75rem center,center right 2.25rem;background-size:16px 12px,calc(.75em + .375rem) calc(.75em + .375rem)}.was-validated .form-select:valid:focus,.form-select.is-valid:focus{border-color:#198754;box-shadow:0 0 0 .25rem #19875440}.was-validated .form-control-color:valid,.form-control-color.is-valid{width:calc(3.75rem + 1.5em)}.was-validated .form-check-input:valid,.form-check-input.is-valid{border-color:#198754}.was-validated .form-check-input:valid:checked,.form-check-input.is-valid:checked{background-color:#198754}.was-validated .form-check-input:valid:focus,.form-check-input.is-valid:focus{box-shadow:0 0 0 .25rem #19875440}.was-validated .form-check-input:valid~.form-check-label,.form-check-input.is-valid~.form-check-label{color:#198754}.form-check-inline .form-check-input~.valid-feedback{margin-left:.5em}.was-validated .input-group>.form-control:not(:focus):valid,.input-group>.form-control:not(:focus).is-valid,.was-validated .input-group>.form-select:not(:focus):valid,.input-group>.form-select:not(:focus).is-valid,.was-validated .input-group>.form-floating:not(:focus-within):valid,.input-group>.form-floating:not(:focus-within).is-valid{z-index:3}.invalid-feedback{display:none;width:100%;margin-top:.25rem;font-size:.875em;color:#dc3545}.invalid-tooltip{position:absolute;top:100%;z-index:5;display:none;max-width:100%;padding:.25rem .5rem;margin-top:.1rem;font-size:.875rem;color:#fff;background-color:#dc3545e6;border-radius:.375rem}.was-validated :invalid~.invalid-feedback,.was-validated :invalid~.invalid-tooltip,.is-invalid~.invalid-feedback,.is-invalid~.invalid-tooltip{display:block}.was-validated .form-control:invalid,.form-control.is-invalid{border-color:#dc3545;padding-right:calc(1.5em + .75rem);background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");background-repeat:no-repeat;background-position:right calc(.375em + .1875rem) center;background-size:calc(.75em + .375rem) calc(.75em + .375rem)}.was-validated .form-control:invalid:focus,.form-control.is-invalid:focus{border-color:#dc3545;box-shadow:0 0 0 .25rem #dc354540}.was-validated textarea.form-control:invalid,textarea.form-control.is-invalid{padding-right:calc(1.5em + .75rem);background-position:top calc(.375em + .1875rem) right calc(.375em + .1875rem)}.was-validated .form-select:invalid,.form-select.is-invalid{border-color:#dc3545}.was-validated .form-select:invalid:not([multiple]):not([size]),.was-validated .form-select:invalid:not([multiple])[size="1"],.form-select.is-invalid:not([multiple]):not([size]),.form-select.is-invalid:not([multiple])[size="1"]{padding-right:4.125rem;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"),url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");background-position:right .75rem center,center right 2.25rem;background-size:16px 12px,calc(.75em + .375rem) calc(.75em + .375rem)}.was-validated .form-select:invalid:focus,.form-select.is-invalid:focus{border-color:#dc3545;box-shadow:0 0 0 .25rem #dc354540}.was-validated .form-control-color:invalid,.form-control-color.is-invalid{width:calc(3.75rem + 1.5em)}.was-validated .form-check-input:invalid,.form-check-input.is-invalid{border-color:#dc3545}.was-validated .form-check-input:invalid:checked,.form-check-input.is-invalid:checked{background-color:#dc3545}.was-validated .form-check-input:invalid:focus,.form-check-input.is-invalid:focus{box-shadow:0 0 0 .25rem #dc354540}.was-validated .form-check-input:invalid~.form-check-label,.form-check-input.is-invalid~.form-check-label{color:#dc3545}.form-check-inline .form-check-input~.invalid-feedback{margin-left:.5em}.was-validated .input-group>.form-control:not(:focus):invalid,.input-group>.form-control:not(:focus).is-invalid,.was-validated .input-group>.form-select:not(:focus):invalid,.input-group>.form-select:not(:focus).is-invalid,.was-validated .input-group>.form-floating:not(:focus-within):invalid,.input-group>.form-floating:not(:focus-within).is-invalid{z-index:4}.btn{--bs-btn-padding-x: .75rem;--bs-btn-padding-y: .375rem;--bs-btn-font-family: ;--bs-btn-font-size: 1rem;--bs-btn-font-weight: 400;--bs-btn-line-height: 1.5;--bs-btn-color: #212529;--bs-btn-bg: transparent;--bs-btn-border-width: 1px;--bs-btn-border-color: transparent;--bs-btn-border-radius: .375rem;--bs-btn-hover-border-color: transparent;--bs-btn-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 1px rgba(0, 0, 0, .075);--bs-btn-disabled-opacity: .65;--bs-btn-focus-box-shadow: 0 0 0 .25rem rgba(var(--bs-btn-focus-shadow-rgb), .5);display:inline-block;padding:var(--bs-btn-padding-y) var(--bs-btn-padding-x);font-family:var(--bs-btn-font-family);font-size:var(--bs-btn-font-size);font-weight:var(--bs-btn-font-weight);line-height:var(--bs-btn-line-height);color:var(--bs-btn-color);text-align:center;text-decoration:none;vertical-align:middle;cursor:pointer;user-select:none;border:var(--bs-btn-border-width) solid var(--bs-btn-border-color);border-radius:var(--bs-btn-border-radius);background-color:var(--bs-btn-bg);transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion: reduce){.btn{transition:none}}.btn:hover{color:var(--bs-btn-hover-color);background-color:var(--bs-btn-hover-bg);border-color:var(--bs-btn-hover-border-color)}.btn-check+.btn:hover{color:var(--bs-btn-color);background-color:var(--bs-btn-bg);border-color:var(--bs-btn-border-color)}.btn:focus-visible{color:var(--bs-btn-hover-color);background-color:var(--bs-btn-hover-bg);border-color:var(--bs-btn-hover-border-color);outline:0;box-shadow:var(--bs-btn-focus-box-shadow)}.btn-check:focus-visible+.btn{border-color:var(--bs-btn-hover-border-color);outline:0;box-shadow:var(--bs-btn-focus-box-shadow)}.btn-check:checked+.btn,:not(.btn-check)+.btn:active,.btn:first-child:active,.btn.active,.btn.show{color:var(--bs-btn-active-color);background-color:var(--bs-btn-active-bg);border-color:var(--bs-btn-active-border-color)}.btn-check:checked+.btn:focus-visible,:not(.btn-check)+.btn:active:focus-visible,.btn:first-child:active:focus-visible,.btn.active:focus-visible,.btn.show:focus-visible{box-shadow:var(--bs-btn-focus-box-shadow)}.btn:disabled,.btn.disabled,fieldset:disabled .btn{color:var(--bs-btn-disabled-color);pointer-events:none;background-color:var(--bs-btn-disabled-bg);border-color:var(--bs-btn-disabled-border-color);opacity:var(--bs-btn-disabled-opacity)}.btn-primary{--bs-btn-color: #000;--bs-btn-bg: #4696e5;--bs-btn-border-color: #4696e5;--bs-btn-hover-color: #000;--bs-btn-hover-bg: #62a6e9;--bs-btn-hover-border-color: #59a1e8;--bs-btn-focus-shadow-rgb: 60, 128, 195;--bs-btn-active-color: #000;--bs-btn-active-bg: #6babea;--bs-btn-active-border-color: #59a1e8;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #000;--bs-btn-disabled-bg: #4696e5;--bs-btn-disabled-border-color: #4696e5}.btn-secondary{--bs-btn-color: #fff;--bs-btn-bg: #6c757d;--bs-btn-border-color: #6c757d;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #5c636a;--bs-btn-hover-border-color: #565e64;--bs-btn-focus-shadow-rgb: 130, 138, 145;--bs-btn-active-color: #fff;--bs-btn-active-bg: #565e64;--bs-btn-active-border-color: #51585e;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #fff;--bs-btn-disabled-bg: #6c757d;--bs-btn-disabled-border-color: #6c757d}.btn-success{--bs-btn-color: #fff;--bs-btn-bg: #198754;--bs-btn-border-color: #198754;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #157347;--bs-btn-hover-border-color: #146c43;--bs-btn-focus-shadow-rgb: 60, 153, 110;--bs-btn-active-color: #fff;--bs-btn-active-bg: #146c43;--bs-btn-active-border-color: #13653f;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #fff;--bs-btn-disabled-bg: #198754;--bs-btn-disabled-border-color: #198754}.btn-info{--bs-btn-color: #000;--bs-btn-bg: #0dcaf0;--bs-btn-border-color: #0dcaf0;--bs-btn-hover-color: #000;--bs-btn-hover-bg: #31d2f2;--bs-btn-hover-border-color: #25cff2;--bs-btn-focus-shadow-rgb: 11, 172, 204;--bs-btn-active-color: #000;--bs-btn-active-bg: #3dd5f3;--bs-btn-active-border-color: #25cff2;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #000;--bs-btn-disabled-bg: #0dcaf0;--bs-btn-disabled-border-color: #0dcaf0}.btn-warning{--bs-btn-color: #000;--bs-btn-bg: #ffc107;--bs-btn-border-color: #ffc107;--bs-btn-hover-color: #000;--bs-btn-hover-bg: #ffca2c;--bs-btn-hover-border-color: #ffc720;--bs-btn-focus-shadow-rgb: 217, 164, 6;--bs-btn-active-color: #000;--bs-btn-active-bg: #ffcd39;--bs-btn-active-border-color: #ffc720;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #000;--bs-btn-disabled-bg: #ffc107;--bs-btn-disabled-border-color: #ffc107}.btn-danger{--bs-btn-color: #fff;--bs-btn-bg: #dc3545;--bs-btn-border-color: #dc3545;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #bb2d3b;--bs-btn-hover-border-color: #b02a37;--bs-btn-focus-shadow-rgb: 225, 83, 97;--bs-btn-active-color: #fff;--bs-btn-active-bg: #b02a37;--bs-btn-active-border-color: #a52834;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #fff;--bs-btn-disabled-bg: #dc3545;--bs-btn-disabled-border-color: #dc3545}.btn-light{--bs-btn-color: #000;--bs-btn-bg: #f8f9fa;--bs-btn-border-color: #f8f9fa;--bs-btn-hover-color: #000;--bs-btn-hover-bg: #d3d4d5;--bs-btn-hover-border-color: #c6c7c8;--bs-btn-focus-shadow-rgb: 211, 212, 213;--bs-btn-active-color: #000;--bs-btn-active-bg: #c6c7c8;--bs-btn-active-border-color: #babbbc;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #000;--bs-btn-disabled-bg: #f8f9fa;--bs-btn-disabled-border-color: #f8f9fa}.btn-dark{--bs-btn-color: #fff;--bs-btn-bg: #212529;--bs-btn-border-color: #212529;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #424649;--bs-btn-hover-border-color: #373b3e;--bs-btn-focus-shadow-rgb: 66, 70, 73;--bs-btn-active-color: #fff;--bs-btn-active-bg: #4d5154;--bs-btn-active-border-color: #373b3e;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #fff;--bs-btn-disabled-bg: #212529;--bs-btn-disabled-border-color: #212529}.btn-outline-primary{--bs-btn-color: #4696e5;--bs-btn-border-color: #4696e5;--bs-btn-hover-color: #000;--bs-btn-hover-bg: #4696e5;--bs-btn-hover-border-color: #4696e5;--bs-btn-focus-shadow-rgb: 70, 150, 229;--bs-btn-active-color: #000;--bs-btn-active-bg: #4696e5;--bs-btn-active-border-color: #4696e5;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #4696e5;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #4696e5;--bs-gradient: none}.btn-outline-secondary{--bs-btn-color: #6c757d;--bs-btn-border-color: #6c757d;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #6c757d;--bs-btn-hover-border-color: #6c757d;--bs-btn-focus-shadow-rgb: 108, 117, 125;--bs-btn-active-color: #fff;--bs-btn-active-bg: #6c757d;--bs-btn-active-border-color: #6c757d;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #6c757d;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #6c757d;--bs-gradient: none}.btn-outline-success{--bs-btn-color: #198754;--bs-btn-border-color: #198754;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #198754;--bs-btn-hover-border-color: #198754;--bs-btn-focus-shadow-rgb: 25, 135, 84;--bs-btn-active-color: #fff;--bs-btn-active-bg: #198754;--bs-btn-active-border-color: #198754;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #198754;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #198754;--bs-gradient: none}.btn-outline-info{--bs-btn-color: #0dcaf0;--bs-btn-border-color: #0dcaf0;--bs-btn-hover-color: #000;--bs-btn-hover-bg: #0dcaf0;--bs-btn-hover-border-color: #0dcaf0;--bs-btn-focus-shadow-rgb: 13, 202, 240;--bs-btn-active-color: #000;--bs-btn-active-bg: #0dcaf0;--bs-btn-active-border-color: #0dcaf0;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #0dcaf0;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #0dcaf0;--bs-gradient: none}.btn-outline-warning{--bs-btn-color: #ffc107;--bs-btn-border-color: #ffc107;--bs-btn-hover-color: #000;--bs-btn-hover-bg: #ffc107;--bs-btn-hover-border-color: #ffc107;--bs-btn-focus-shadow-rgb: 255, 193, 7;--bs-btn-active-color: #000;--bs-btn-active-bg: #ffc107;--bs-btn-active-border-color: #ffc107;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #ffc107;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #ffc107;--bs-gradient: none}.btn-outline-danger{--bs-btn-color: #dc3545;--bs-btn-border-color: #dc3545;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #dc3545;--bs-btn-hover-border-color: #dc3545;--bs-btn-focus-shadow-rgb: 220, 53, 69;--bs-btn-active-color: #fff;--bs-btn-active-bg: #dc3545;--bs-btn-active-border-color: #dc3545;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #dc3545;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #dc3545;--bs-gradient: none}.btn-outline-light{--bs-btn-color: #f8f9fa;--bs-btn-border-color: #f8f9fa;--bs-btn-hover-color: #000;--bs-btn-hover-bg: #f8f9fa;--bs-btn-hover-border-color: #f8f9fa;--bs-btn-focus-shadow-rgb: 248, 249, 250;--bs-btn-active-color: #000;--bs-btn-active-bg: #f8f9fa;--bs-btn-active-border-color: #f8f9fa;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #f8f9fa;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #f8f9fa;--bs-gradient: none}.btn-outline-dark{--bs-btn-color: #212529;--bs-btn-border-color: #212529;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #212529;--bs-btn-hover-border-color: #212529;--bs-btn-focus-shadow-rgb: 33, 37, 41;--bs-btn-active-color: #fff;--bs-btn-active-bg: #212529;--bs-btn-active-border-color: #212529;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #212529;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #212529;--bs-gradient: none}.btn-link{--bs-btn-font-weight: 400;--bs-btn-color: var(--bs-link-color);--bs-btn-bg: transparent;--bs-btn-border-color: transparent;--bs-btn-hover-color: var(--bs-link-hover-color);--bs-btn-hover-border-color: transparent;--bs-btn-active-color: var(--bs-link-hover-color);--bs-btn-active-border-color: transparent;--bs-btn-disabled-color: #6c757d;--bs-btn-disabled-border-color: transparent;--bs-btn-box-shadow: none;--bs-btn-focus-shadow-rgb: 60, 128, 195;text-decoration:underline}.btn-link:focus-visible{color:var(--bs-btn-color)}.btn-link:hover{color:var(--bs-btn-hover-color)}.btn-lg,.btn-group-lg>.btn{--bs-btn-padding-y: .5rem;--bs-btn-padding-x: 1rem;--bs-btn-font-size: 1.25rem;--bs-btn-border-radius: .5rem}.btn-sm,.btn-group-sm>.btn{--bs-btn-padding-y: .25rem;--bs-btn-padding-x: .5rem;--bs-btn-font-size: .875rem;--bs-btn-border-radius: .25rem}.fade{transition:opacity .15s linear}@media (prefers-reduced-motion: reduce){.fade{transition:none}}.fade:not(.show){opacity:0}.collapse:not(.show){display:none}.collapsing{height:0;overflow:hidden;transition:height .35s ease}@media (prefers-reduced-motion: reduce){.collapsing{transition:none}}.collapsing.collapse-horizontal{width:0;height:auto;transition:width .35s ease}@media (prefers-reduced-motion: reduce){.collapsing.collapse-horizontal{transition:none}}.dropup,.dropend,.dropdown,.dropstart,.dropup-center,.dropdown-center{position:relative}.dropdown-toggle{white-space:nowrap}.dropdown-toggle:after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";border-top:.3em solid;border-right:.3em solid transparent;border-bottom:0;border-left:.3em solid transparent}.dropdown-toggle:empty:after{margin-left:0}.dropdown-menu{--bs-dropdown-zindex: 1000;--bs-dropdown-min-width: 10rem;--bs-dropdown-padding-x: 0;--bs-dropdown-padding-y: .5rem;--bs-dropdown-spacer: .125rem;--bs-dropdown-font-size: 1rem;--bs-dropdown-color: #212529;--bs-dropdown-bg: #fff;--bs-dropdown-border-color: var(--bs-border-color-translucent);--bs-dropdown-border-radius: .375rem;--bs-dropdown-border-width: 1px;--bs-dropdown-inner-border-radius:calc(.375rem - 1px);--bs-dropdown-divider-bg: var(--bs-border-color-translucent);--bs-dropdown-divider-margin-y: .5rem;--bs-dropdown-box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15);--bs-dropdown-link-color: #212529;--bs-dropdown-link-hover-color: #1e2125;--bs-dropdown-link-hover-bg: #e9ecef;--bs-dropdown-link-active-color: #fff;--bs-dropdown-link-active-bg: #4696e5;--bs-dropdown-link-disabled-color: #adb5bd;--bs-dropdown-item-padding-x: 1rem;--bs-dropdown-item-padding-y: .25rem;--bs-dropdown-header-color: #6c757d;--bs-dropdown-header-padding-x: 1rem;--bs-dropdown-header-padding-y: .5rem;position:absolute;z-index:var(--bs-dropdown-zindex);display:none;min-width:var(--bs-dropdown-min-width);padding:var(--bs-dropdown-padding-y) var(--bs-dropdown-padding-x);margin:0;font-size:var(--bs-dropdown-font-size);color:var(--bs-dropdown-color);text-align:left;list-style:none;background-color:var(--bs-dropdown-bg);background-clip:padding-box;border:var(--bs-dropdown-border-width) solid var(--bs-dropdown-border-color);border-radius:var(--bs-dropdown-border-radius)}.dropdown-menu[data-bs-popper]{top:100%;left:0;margin-top:var(--bs-dropdown-spacer)}.dropdown-menu-start{--bs-position: start}.dropdown-menu-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-end{--bs-position: end}.dropdown-menu-end[data-bs-popper]{right:0;left:auto}@media (min-width: 576px){.dropdown-menu-sm-start{--bs-position: start}.dropdown-menu-sm-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-sm-end{--bs-position: end}.dropdown-menu-sm-end[data-bs-popper]{right:0;left:auto}}@media (min-width: 768px){.dropdown-menu-md-start{--bs-position: start}.dropdown-menu-md-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-md-end{--bs-position: end}.dropdown-menu-md-end[data-bs-popper]{right:0;left:auto}}@media (min-width: 992px){.dropdown-menu-lg-start{--bs-position: start}.dropdown-menu-lg-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-lg-end{--bs-position: end}.dropdown-menu-lg-end[data-bs-popper]{right:0;left:auto}}@media (min-width: 1200px){.dropdown-menu-xl-start{--bs-position: start}.dropdown-menu-xl-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-xl-end{--bs-position: end}.dropdown-menu-xl-end[data-bs-popper]{right:0;left:auto}}@media (min-width: 1400px){.dropdown-menu-xxl-start{--bs-position: start}.dropdown-menu-xxl-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-xxl-end{--bs-position: end}.dropdown-menu-xxl-end[data-bs-popper]{right:0;left:auto}}.dropup .dropdown-menu[data-bs-popper]{top:auto;bottom:100%;margin-top:0;margin-bottom:var(--bs-dropdown-spacer)}.dropup .dropdown-toggle:after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";border-top:0;border-right:.3em solid transparent;border-bottom:.3em solid;border-left:.3em solid transparent}.dropup .dropdown-toggle:empty:after{margin-left:0}.dropend .dropdown-menu[data-bs-popper]{top:0;right:auto;left:100%;margin-top:0;margin-left:var(--bs-dropdown-spacer)}.dropend .dropdown-toggle:after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";border-top:.3em solid transparent;border-right:0;border-bottom:.3em solid transparent;border-left:.3em solid}.dropend .dropdown-toggle:empty:after{margin-left:0}.dropend .dropdown-toggle:after{vertical-align:0}.dropstart .dropdown-menu[data-bs-popper]{top:0;right:100%;left:auto;margin-top:0;margin-right:var(--bs-dropdown-spacer)}.dropstart .dropdown-toggle:after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:""}.dropstart .dropdown-toggle:after{display:none}.dropstart .dropdown-toggle:before{display:inline-block;margin-right:.255em;vertical-align:.255em;content:"";border-top:.3em solid transparent;border-right:.3em solid;border-bottom:.3em solid transparent}.dropstart .dropdown-toggle:empty:after{margin-left:0}.dropstart .dropdown-toggle:before{vertical-align:0}.dropdown-divider{height:0;margin:var(--bs-dropdown-divider-margin-y) 0;overflow:hidden;border-top:1px solid var(--bs-dropdown-divider-bg);opacity:1}.dropdown-item{display:block;width:100%;padding:var(--bs-dropdown-item-padding-y) var(--bs-dropdown-item-padding-x);clear:both;font-weight:400;color:var(--bs-dropdown-link-color);text-align:inherit;text-decoration:none;white-space:nowrap;background-color:transparent;border:0}.dropdown-item:hover,.dropdown-item:focus{color:var(--bs-dropdown-link-hover-color);background-color:var(--bs-dropdown-link-hover-bg)}.dropdown-item.active,.dropdown-item:active{color:var(--bs-dropdown-link-active-color);text-decoration:none;background-color:var(--bs-dropdown-link-active-bg)}.dropdown-item.disabled,.dropdown-item:disabled{color:var(--bs-dropdown-link-disabled-color);pointer-events:none;background-color:transparent}.dropdown-menu.show{display:block}.dropdown-header{display:block;padding:var(--bs-dropdown-header-padding-y) var(--bs-dropdown-header-padding-x);margin-bottom:0;font-size:.875rem;color:var(--bs-dropdown-header-color);white-space:nowrap}.dropdown-item-text{display:block;padding:var(--bs-dropdown-item-padding-y) var(--bs-dropdown-item-padding-x);color:var(--bs-dropdown-link-color)}.dropdown-menu-dark{--bs-dropdown-color: #dee2e6;--bs-dropdown-bg: #343a40;--bs-dropdown-border-color: var(--bs-border-color-translucent);--bs-dropdown-box-shadow: ;--bs-dropdown-link-color: #dee2e6;--bs-dropdown-link-hover-color: #fff;--bs-dropdown-divider-bg: var(--bs-border-color-translucent);--bs-dropdown-link-hover-bg: rgba(255, 255, 255, .15);--bs-dropdown-link-active-color: #fff;--bs-dropdown-link-active-bg: #4696e5;--bs-dropdown-link-disabled-color: #adb5bd;--bs-dropdown-header-color: #adb5bd}.btn-group,.btn-group-vertical{position:relative;display:inline-flex;vertical-align:middle}.btn-group>.btn,.btn-group-vertical>.btn{position:relative;flex:1 1 auto}.btn-group>.btn-check:checked+.btn,.btn-group>.btn-check:focus+.btn,.btn-group>.btn:hover,.btn-group>.btn:focus,.btn-group>.btn:active,.btn-group>.btn.active,.btn-group-vertical>.btn-check:checked+.btn,.btn-group-vertical>.btn-check:focus+.btn,.btn-group-vertical>.btn:hover,.btn-group-vertical>.btn:focus,.btn-group-vertical>.btn:active,.btn-group-vertical>.btn.active{z-index:1}.btn-toolbar{display:flex;flex-wrap:wrap;justify-content:flex-start}.btn-toolbar .input-group{width:auto}.btn-group{border-radius:.375rem}.btn-group>:not(.btn-check:first-child)+.btn,.btn-group>.btn-group:not(:first-child){margin-left:-1px}.btn-group>.btn:not(:last-child):not(.dropdown-toggle),.btn-group>.btn.dropdown-toggle-split:first-child,.btn-group>.btn-group:not(:last-child)>.btn{border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn:nth-child(n+3),.btn-group>:not(.btn-check)+.btn,.btn-group>.btn-group:not(:first-child)>.btn{border-top-left-radius:0;border-bottom-left-radius:0}.dropdown-toggle-split{padding-right:.5625rem;padding-left:.5625rem}.dropdown-toggle-split:after,.dropup .dropdown-toggle-split:after,.dropend .dropdown-toggle-split:after{margin-left:0}.dropstart .dropdown-toggle-split:before{margin-right:0}.btn-sm+.dropdown-toggle-split,.btn-group-sm>.btn+.dropdown-toggle-split{padding-right:.375rem;padding-left:.375rem}.btn-lg+.dropdown-toggle-split,.btn-group-lg>.btn+.dropdown-toggle-split{padding-right:.75rem;padding-left:.75rem}.btn-group-vertical{flex-direction:column;align-items:flex-start;justify-content:center}.btn-group-vertical>.btn,.btn-group-vertical>.btn-group{width:100%}.btn-group-vertical>.btn:not(:first-child),.btn-group-vertical>.btn-group:not(:first-child){margin-top:-1px}.btn-group-vertical>.btn:not(:last-child):not(.dropdown-toggle),.btn-group-vertical>.btn-group:not(:last-child)>.btn{border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn~.btn,.btn-group-vertical>.btn-group:not(:first-child)>.btn{border-top-left-radius:0;border-top-right-radius:0}.nav{--bs-nav-link-padding-x: 1rem;--bs-nav-link-padding-y: .5rem;--bs-nav-link-font-weight: ;--bs-nav-link-color: var(--bs-link-color);--bs-nav-link-hover-color: var(--bs-link-hover-color);--bs-nav-link-disabled-color: #6c757d;display:flex;flex-wrap:wrap;padding-left:0;margin-bottom:0;list-style:none}.nav-link{display:block;padding:var(--bs-nav-link-padding-y) var(--bs-nav-link-padding-x);font-size:var(--bs-nav-link-font-size);font-weight:var(--bs-nav-link-font-weight);color:var(--bs-nav-link-color);text-decoration:none;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out}@media (prefers-reduced-motion: reduce){.nav-link{transition:none}}.nav-link:hover,.nav-link:focus{color:var(--bs-nav-link-hover-color)}.nav-link.disabled{color:var(--bs-nav-link-disabled-color);pointer-events:none;cursor:default}.nav-tabs{--bs-nav-tabs-border-width: 1px;--bs-nav-tabs-border-color: #dee2e6;--bs-nav-tabs-border-radius: .375rem;--bs-nav-tabs-link-hover-border-color: #e9ecef #e9ecef #dee2e6;--bs-nav-tabs-link-active-color: #495057;--bs-nav-tabs-link-active-bg: #fff;--bs-nav-tabs-link-active-border-color: #dee2e6 #dee2e6 #fff;border-bottom:var(--bs-nav-tabs-border-width) solid var(--bs-nav-tabs-border-color)}.nav-tabs .nav-link{margin-bottom:calc(-1 * var(--bs-nav-tabs-border-width));background:none;border:var(--bs-nav-tabs-border-width) solid transparent;border-top-left-radius:var(--bs-nav-tabs-border-radius);border-top-right-radius:var(--bs-nav-tabs-border-radius)}.nav-tabs .nav-link:hover,.nav-tabs .nav-link:focus{isolation:isolate;border-color:var(--bs-nav-tabs-link-hover-border-color)}.nav-tabs .nav-link.disabled,.nav-tabs .nav-link:disabled{color:var(--bs-nav-link-disabled-color);background-color:transparent;border-color:transparent}.nav-tabs .nav-link.active,.nav-tabs .nav-item.show .nav-link{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}.nav-tabs .dropdown-menu{margin-top:calc(-1 * var(--bs-nav-tabs-border-width));border-top-left-radius:0;border-top-right-radius:0}.nav-pills{--bs-nav-pills-border-radius: .375rem;--bs-nav-pills-link-active-color: #fff;--bs-nav-pills-link-active-bg: #4696e5}.nav-pills .nav-link{background:none;border:0;border-radius:var(--bs-nav-pills-border-radius)}.nav-pills .nav-link:disabled{color:var(--bs-nav-link-disabled-color);background-color:transparent;border-color:transparent}.nav-pills .nav-link.active,.nav-pills .show>.nav-link{color:var(--bs-nav-pills-link-active-color);background-color:var(--bs-nav-pills-link-active-bg)}.nav-fill>.nav-link,.nav-fill .nav-item{flex:1 1 auto;text-align:center}.nav-justified>.nav-link,.nav-justified .nav-item{flex-basis:0;flex-grow:1;text-align:center}.nav-fill .nav-item .nav-link,.nav-justified .nav-item .nav-link{width:100%}.tab-content>.tab-pane{display:none}.tab-content>.active{display:block}.navbar{--bs-navbar-padding-x: 0;--bs-navbar-padding-y: .5rem;--bs-navbar-color: rgba(0, 0, 0, .55);--bs-navbar-hover-color: rgba(0, 0, 0, .7);--bs-navbar-disabled-color: rgba(0, 0, 0, .3);--bs-navbar-active-color: rgba(0, 0, 0, .9);--bs-navbar-brand-padding-y: .3125rem;--bs-navbar-brand-margin-end: 1rem;--bs-navbar-brand-font-size: 1.25rem;--bs-navbar-brand-color: rgba(0, 0, 0, .9);--bs-navbar-brand-hover-color: rgba(0, 0, 0, .9);--bs-navbar-nav-link-padding-x: .5rem;--bs-navbar-toggler-padding-y: .25rem;--bs-navbar-toggler-padding-x: .75rem;--bs-navbar-toggler-font-size: 1.25rem;--bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");--bs-navbar-toggler-border-color: rgba(0, 0, 0, .1);--bs-navbar-toggler-border-radius: .375rem;--bs-navbar-toggler-focus-width: .25rem;--bs-navbar-toggler-transition: box-shadow .15s ease-in-out;position:relative;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;padding:var(--bs-navbar-padding-y) var(--bs-navbar-padding-x)}.navbar>.container,.navbar>.container-fluid,.navbar>.container-sm,.navbar>.container-md,.navbar>.container-lg,.navbar>.container-xl,.navbar>.container-xxl{display:flex;flex-wrap:inherit;align-items:center;justify-content:space-between}.navbar-brand{padding-top:var(--bs-navbar-brand-padding-y);padding-bottom:var(--bs-navbar-brand-padding-y);margin-right:var(--bs-navbar-brand-margin-end);font-size:var(--bs-navbar-brand-font-size);color:var(--bs-navbar-brand-color);text-decoration:none;white-space:nowrap}.navbar-brand:hover,.navbar-brand:focus{color:var(--bs-navbar-brand-hover-color)}.navbar-nav{--bs-nav-link-padding-x: 0;--bs-nav-link-padding-y: .5rem;--bs-nav-link-font-weight: ;--bs-nav-link-color: var(--bs-navbar-color);--bs-nav-link-hover-color: var(--bs-navbar-hover-color);--bs-nav-link-disabled-color: var(--bs-navbar-disabled-color);display:flex;flex-direction:column;padding-left:0;margin-bottom:0;list-style:none}.navbar-nav .show>.nav-link,.navbar-nav .nav-link.active{color:var(--bs-navbar-active-color)}.navbar-nav .dropdown-menu{position:static}.navbar-text{padding-top:.5rem;padding-bottom:.5rem;color:var(--bs-navbar-color)}.navbar-text a,.navbar-text a:hover,.navbar-text a:focus{color:var(--bs-navbar-active-color)}.navbar-collapse{flex-basis:100%;flex-grow:1;align-items:center}.navbar-toggler{padding:var(--bs-navbar-toggler-padding-y) var(--bs-navbar-toggler-padding-x);font-size:var(--bs-navbar-toggler-font-size);line-height:1;color:var(--bs-navbar-color);background-color:transparent;border:var(--bs-border-width) solid var(--bs-navbar-toggler-border-color);border-radius:var(--bs-navbar-toggler-border-radius);transition:var(--bs-navbar-toggler-transition)}@media (prefers-reduced-motion: reduce){.navbar-toggler{transition:none}}.navbar-toggler:hover{text-decoration:none}.navbar-toggler:focus{text-decoration:none;outline:0;box-shadow:0 0 0 var(--bs-navbar-toggler-focus-width)}.navbar-toggler-icon{display:inline-block;width:1.5em;height:1.5em;vertical-align:middle;background-image:var(--bs-navbar-toggler-icon-bg);background-repeat:no-repeat;background-position:center;background-size:100%}.navbar-nav-scroll{max-height:var(--bs-scroll-height, 75vh);overflow-y:auto}@media (min-width: 576px){.navbar-expand-sm{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-sm .navbar-nav{flex-direction:row}.navbar-expand-sm .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-sm .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand-sm .navbar-nav-scroll{overflow:visible}.navbar-expand-sm .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-sm .navbar-toggler{display:none}.navbar-expand-sm .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand-sm .offcanvas .offcanvas-header{display:none}.navbar-expand-sm .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}@media (min-width: 768px){.navbar-expand-md{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-md .navbar-nav{flex-direction:row}.navbar-expand-md .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-md .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand-md .navbar-nav-scroll{overflow:visible}.navbar-expand-md .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-md .navbar-toggler{display:none}.navbar-expand-md .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand-md .offcanvas .offcanvas-header{display:none}.navbar-expand-md .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}@media (min-width: 992px){.navbar-expand-lg{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-lg .navbar-nav{flex-direction:row}.navbar-expand-lg .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-lg .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand-lg .navbar-nav-scroll{overflow:visible}.navbar-expand-lg .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-lg .navbar-toggler{display:none}.navbar-expand-lg .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand-lg .offcanvas .offcanvas-header{display:none}.navbar-expand-lg .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}@media (min-width: 1200px){.navbar-expand-xl{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-xl .navbar-nav{flex-direction:row}.navbar-expand-xl .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-xl .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand-xl .navbar-nav-scroll{overflow:visible}.navbar-expand-xl .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-xl .navbar-toggler{display:none}.navbar-expand-xl .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand-xl .offcanvas .offcanvas-header{display:none}.navbar-expand-xl .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}@media (min-width: 1400px){.navbar-expand-xxl{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-xxl .navbar-nav{flex-direction:row}.navbar-expand-xxl .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-xxl .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand-xxl .navbar-nav-scroll{overflow:visible}.navbar-expand-xxl .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-xxl .navbar-toggler{display:none}.navbar-expand-xxl .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand-xxl .offcanvas .offcanvas-header{display:none}.navbar-expand-xxl .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}.navbar-expand{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand .navbar-nav{flex-direction:row}.navbar-expand .navbar-nav .dropdown-menu{position:absolute}.navbar-expand .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand .navbar-nav-scroll{overflow:visible}.navbar-expand .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand .navbar-toggler{display:none}.navbar-expand .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand .offcanvas .offcanvas-header{display:none}.navbar-expand .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}.navbar-dark{--bs-navbar-color: rgba(255, 255, 255, .55);--bs-navbar-hover-color: rgba(255, 255, 255, .75);--bs-navbar-disabled-color: rgba(255, 255, 255, .25);--bs-navbar-active-color: #fff;--bs-navbar-brand-color: #fff;--bs-navbar-brand-hover-color: #fff;--bs-navbar-toggler-border-color: rgba(255, 255, 255, .1);--bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e")}.card{--bs-card-spacer-y: 1rem;--bs-card-spacer-x: 1rem;--bs-card-title-spacer-y: .5rem;--bs-card-border-width: 1px;--bs-card-border-color: var(--bs-border-color-translucent);--bs-card-border-radius: .375rem;--bs-card-box-shadow: ;--bs-card-inner-border-radius:calc(.375rem - 1px);--bs-card-cap-padding-y: .5rem;--bs-card-cap-padding-x: 1rem;--bs-card-cap-bg: rgba(0, 0, 0, .03);--bs-card-cap-color: ;--bs-card-height: ;--bs-card-color: ;--bs-card-bg: #fff;--bs-card-img-overlay-padding: 1rem;--bs-card-group-margin: .75rem;position:relative;display:flex;flex-direction:column;min-width:0;height:var(--bs-card-height);word-wrap:break-word;background-color:var(--bs-card-bg);background-clip:border-box;border:var(--bs-card-border-width) solid var(--bs-card-border-color);border-radius:var(--bs-card-border-radius)}.card>hr{margin-right:0;margin-left:0}.card>.list-group{border-top:inherit;border-bottom:inherit}.card>.list-group:first-child{border-top-width:0;border-top-left-radius:var(--bs-card-inner-border-radius);border-top-right-radius:var(--bs-card-inner-border-radius)}.card>.list-group:last-child{border-bottom-width:0;border-bottom-right-radius:var(--bs-card-inner-border-radius);border-bottom-left-radius:var(--bs-card-inner-border-radius)}.card>.card-header+.list-group,.card>.list-group+.card-footer{border-top:0}.card-body{flex:1 1 auto;padding:var(--bs-card-spacer-y) var(--bs-card-spacer-x);color:var(--bs-card-color)}.card-title{margin-bottom:var(--bs-card-title-spacer-y)}.card-subtitle{margin-top:calc(-.5 * var(--bs-card-title-spacer-y));margin-bottom:0}.card-text:last-child{margin-bottom:0}.card-link+.card-link{margin-left:var(--bs-card-spacer-x)}.card-header{padding:var(--bs-card-cap-padding-y) var(--bs-card-cap-padding-x);margin-bottom:0;color:var(--bs-card-cap-color);background-color:var(--bs-card-cap-bg);border-bottom:var(--bs-card-border-width) solid var(--bs-card-border-color)}.card-header:first-child{border-radius:var(--bs-card-inner-border-radius) var(--bs-card-inner-border-radius) 0 0}.card-footer{padding:var(--bs-card-cap-padding-y) var(--bs-card-cap-padding-x);color:var(--bs-card-cap-color);background-color:var(--bs-card-cap-bg);border-top:var(--bs-card-border-width) solid var(--bs-card-border-color)}.card-footer:last-child{border-radius:0 0 var(--bs-card-inner-border-radius) var(--bs-card-inner-border-radius)}.card-header-tabs{margin-right:calc(-.5 * var(--bs-card-cap-padding-x));margin-bottom:calc(-1 * var(--bs-card-cap-padding-y));margin-left:calc(-.5 * var(--bs-card-cap-padding-x));border-bottom:0}.card-header-tabs .nav-link.active{background-color:var(--bs-card-bg);border-bottom-color:var(--bs-card-bg)}.card-header-pills{margin-right:calc(-.5 * var(--bs-card-cap-padding-x));margin-left:calc(-.5 * var(--bs-card-cap-padding-x))}.card-img-overlay{position:absolute;top:0;right:0;bottom:0;left:0;padding:var(--bs-card-img-overlay-padding);border-radius:var(--bs-card-inner-border-radius)}.card-img,.card-img-top,.card-img-bottom{width:100%}.card-img,.card-img-top{border-top-left-radius:var(--bs-card-inner-border-radius);border-top-right-radius:var(--bs-card-inner-border-radius)}.card-img,.card-img-bottom{border-bottom-right-radius:var(--bs-card-inner-border-radius);border-bottom-left-radius:var(--bs-card-inner-border-radius)}.card-group>.card{margin-bottom:var(--bs-card-group-margin)}@media (min-width: 576px){.card-group{display:flex;flex-flow:row wrap}.card-group>.card{flex:1 0 0%;margin-bottom:0}.card-group>.card+.card{margin-left:0;border-left:0}.card-group>.card:not(:last-child){border-top-right-radius:0;border-bottom-right-radius:0}.card-group>.card:not(:last-child) .card-img-top,.card-group>.card:not(:last-child) .card-header{border-top-right-radius:0}.card-group>.card:not(:last-child) .card-img-bottom,.card-group>.card:not(:last-child) .card-footer{border-bottom-right-radius:0}.card-group>.card:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.card-group>.card:not(:first-child) .card-img-top,.card-group>.card:not(:first-child) .card-header{border-top-left-radius:0}.card-group>.card:not(:first-child) .card-img-bottom,.card-group>.card:not(:first-child) .card-footer{border-bottom-left-radius:0}}.accordion{--bs-accordion-color: #212529;--bs-accordion-bg: #fff;--bs-accordion-transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out, border-radius .15s ease;--bs-accordion-border-color: var(--bs-border-color);--bs-accordion-border-width: 1px;--bs-accordion-border-radius: .375rem;--bs-accordion-inner-border-radius:calc(.375rem - 1px);--bs-accordion-btn-padding-x: 1.25rem;--bs-accordion-btn-padding-y: 1rem;--bs-accordion-btn-color: #212529;--bs-accordion-btn-bg: var(--bs-accordion-bg);--bs-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");--bs-accordion-btn-icon-width: 1.25rem;--bs-accordion-btn-icon-transform: rotate(-180deg);--bs-accordion-btn-icon-transition: transform .2s ease-in-out;--bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%233f87ce'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");--bs-accordion-btn-focus-border-color: #a3cbf2;--bs-accordion-btn-focus-box-shadow: 0 0 0 .25rem rgba(70, 150, 229, .25);--bs-accordion-body-padding-x: 1.25rem;--bs-accordion-body-padding-y: 1rem;--bs-accordion-active-color: #3f87ce;--bs-accordion-active-bg: #edf5fc}.accordion-button{position:relative;display:flex;align-items:center;width:100%;padding:var(--bs-accordion-btn-padding-y) var(--bs-accordion-btn-padding-x);font-size:1rem;color:var(--bs-accordion-btn-color);text-align:left;background-color:var(--bs-accordion-btn-bg);border:0;border-radius:0;overflow-anchor:none;transition:var(--bs-accordion-transition)}@media (prefers-reduced-motion: reduce){.accordion-button{transition:none}}.accordion-button:not(.collapsed){color:var(--bs-accordion-active-color);background-color:var(--bs-accordion-active-bg);box-shadow:inset 0 calc(-1 * var(--bs-accordion-border-width)) 0 var(--bs-accordion-border-color)}.accordion-button:not(.collapsed):after{background-image:var(--bs-accordion-btn-active-icon);transform:var(--bs-accordion-btn-icon-transform)}.accordion-button:after{flex-shrink:0;width:var(--bs-accordion-btn-icon-width);height:var(--bs-accordion-btn-icon-width);margin-left:auto;content:"";background-image:var(--bs-accordion-btn-icon);background-repeat:no-repeat;background-size:var(--bs-accordion-btn-icon-width);transition:var(--bs-accordion-btn-icon-transition)}@media (prefers-reduced-motion: reduce){.accordion-button:after{transition:none}}.accordion-button:hover{z-index:2}.accordion-button:focus{z-index:3;border-color:var(--bs-accordion-btn-focus-border-color);outline:0;box-shadow:var(--bs-accordion-btn-focus-box-shadow)}.accordion-header{margin-bottom:0}.accordion-item{color:var(--bs-accordion-color);background-color:var(--bs-accordion-bg);border:var(--bs-accordion-border-width) solid var(--bs-accordion-border-color)}.accordion-item:first-of-type{border-top-left-radius:var(--bs-accordion-border-radius);border-top-right-radius:var(--bs-accordion-border-radius)}.accordion-item:first-of-type .accordion-button{border-top-left-radius:var(--bs-accordion-inner-border-radius);border-top-right-radius:var(--bs-accordion-inner-border-radius)}.accordion-item:not(:first-of-type){border-top:0}.accordion-item:last-of-type{border-bottom-right-radius:var(--bs-accordion-border-radius);border-bottom-left-radius:var(--bs-accordion-border-radius)}.accordion-item:last-of-type .accordion-button.collapsed{border-bottom-right-radius:var(--bs-accordion-inner-border-radius);border-bottom-left-radius:var(--bs-accordion-inner-border-radius)}.accordion-item:last-of-type .accordion-collapse{border-bottom-right-radius:var(--bs-accordion-border-radius);border-bottom-left-radius:var(--bs-accordion-border-radius)}.accordion-body{padding:var(--bs-accordion-body-padding-y) var(--bs-accordion-body-padding-x)}.accordion-flush .accordion-collapse{border-width:0}.accordion-flush .accordion-item{border-right:0;border-left:0;border-radius:0}.accordion-flush .accordion-item:first-child{border-top:0}.accordion-flush .accordion-item:last-child{border-bottom:0}.accordion-flush .accordion-item .accordion-button,.accordion-flush .accordion-item .accordion-button.collapsed{border-radius:0}.breadcrumb{--bs-breadcrumb-padding-x: 0;--bs-breadcrumb-padding-y: 0;--bs-breadcrumb-margin-bottom: 1rem;--bs-breadcrumb-bg: ;--bs-breadcrumb-border-radius: ;--bs-breadcrumb-divider-color: #6c757d;--bs-breadcrumb-item-padding-x: .5rem;--bs-breadcrumb-item-active-color: #6c757d;display:flex;flex-wrap:wrap;padding:var(--bs-breadcrumb-padding-y) var(--bs-breadcrumb-padding-x);margin-bottom:var(--bs-breadcrumb-margin-bottom);font-size:var(--bs-breadcrumb-font-size);list-style:none;background-color:var(--bs-breadcrumb-bg);border-radius:var(--bs-breadcrumb-border-radius)}.breadcrumb-item+.breadcrumb-item{padding-left:var(--bs-breadcrumb-item-padding-x)}.breadcrumb-item+.breadcrumb-item:before{float:left;padding-right:var(--bs-breadcrumb-item-padding-x);color:var(--bs-breadcrumb-divider-color);content:var(--bs-breadcrumb-divider, "/")}.breadcrumb-item.active{color:var(--bs-breadcrumb-item-active-color)}.pagination{--bs-pagination-padding-x: .75rem;--bs-pagination-padding-y: .375rem;--bs-pagination-font-size: 1rem;--bs-pagination-color: var(--bs-link-color);--bs-pagination-bg: #fff;--bs-pagination-border-width: 1px;--bs-pagination-border-color: #dee2e6;--bs-pagination-border-radius: .375rem;--bs-pagination-hover-color: var(--bs-link-hover-color);--bs-pagination-hover-bg: #e9ecef;--bs-pagination-hover-border-color: #dee2e6;--bs-pagination-focus-color: var(--bs-link-hover-color);--bs-pagination-focus-bg: #e9ecef;--bs-pagination-focus-box-shadow: 0 0 0 .25rem rgba(70, 150, 229, .25);--bs-pagination-active-color: #fff;--bs-pagination-active-bg: #4696e5;--bs-pagination-active-border-color: #4696e5;--bs-pagination-disabled-color: #6c757d;--bs-pagination-disabled-bg: #fff;--bs-pagination-disabled-border-color: #dee2e6;display:flex;padding-left:0;list-style:none}.page-link{position:relative;display:block;padding:var(--bs-pagination-padding-y) var(--bs-pagination-padding-x);font-size:var(--bs-pagination-font-size);color:var(--bs-pagination-color);text-decoration:none;background-color:var(--bs-pagination-bg);border:var(--bs-pagination-border-width) solid var(--bs-pagination-border-color);transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion: reduce){.page-link{transition:none}}.page-link:hover{z-index:2;color:var(--bs-pagination-hover-color);background-color:var(--bs-pagination-hover-bg);border-color:var(--bs-pagination-hover-border-color)}.page-link:focus{z-index:3;color:var(--bs-pagination-focus-color);background-color:var(--bs-pagination-focus-bg);outline:0;box-shadow:var(--bs-pagination-focus-box-shadow)}.page-link.active,.active>.page-link{z-index:3;color:var(--bs-pagination-active-color);background-color:var(--bs-pagination-active-bg);border-color:var(--bs-pagination-active-border-color)}.page-link.disabled,.disabled>.page-link{color:var(--bs-pagination-disabled-color);pointer-events:none;background-color:var(--bs-pagination-disabled-bg);border-color:var(--bs-pagination-disabled-border-color)}.page-item:not(:first-child) .page-link{margin-left:-1px}.page-item:first-child .page-link{border-top-left-radius:var(--bs-pagination-border-radius);border-bottom-left-radius:var(--bs-pagination-border-radius)}.page-item:last-child .page-link{border-top-right-radius:var(--bs-pagination-border-radius);border-bottom-right-radius:var(--bs-pagination-border-radius)}.pagination-lg{--bs-pagination-padding-x: 1.5rem;--bs-pagination-padding-y: .75rem;--bs-pagination-font-size: 1.25rem;--bs-pagination-border-radius: .5rem}.pagination-sm{--bs-pagination-padding-x: .5rem;--bs-pagination-padding-y: .25rem;--bs-pagination-font-size: .875rem;--bs-pagination-border-radius: .25rem}.badge{--bs-badge-padding-x: .65em;--bs-badge-padding-y: .35em;--bs-badge-font-size: .75em;--bs-badge-font-weight: 700;--bs-badge-color: #fff;--bs-badge-border-radius: .375rem;display:inline-block;padding:var(--bs-badge-padding-y) var(--bs-badge-padding-x);font-size:var(--bs-badge-font-size);font-weight:var(--bs-badge-font-weight);line-height:1;color:var(--bs-badge-color);text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:var(--bs-badge-border-radius)}.badge:empty{display:none}.btn .badge{position:relative;top:-1px}.alert{--bs-alert-bg: transparent;--bs-alert-padding-x: 1rem;--bs-alert-padding-y: 1rem;--bs-alert-margin-bottom: 1rem;--bs-alert-color: inherit;--bs-alert-border-color: transparent;--bs-alert-border: 1px solid var(--bs-alert-border-color);--bs-alert-border-radius: .375rem;position:relative;padding:var(--bs-alert-padding-y) var(--bs-alert-padding-x);margin-bottom:var(--bs-alert-margin-bottom);color:var(--bs-alert-color);background-color:var(--bs-alert-bg);border:var(--bs-alert-border);border-radius:var(--bs-alert-border-radius)}.alert-heading{color:inherit}.alert-link{font-weight:700}.alert-dismissible{padding-right:3rem}.alert-dismissible .btn-close{position:absolute;top:0;right:0;z-index:2;padding:1.25rem 1rem}.alert-primary{--bs-alert-color: #2a5a89;--bs-alert-bg: #daeafa;--bs-alert-border-color: #c8e0f7}.alert-primary .alert-link{color:#22486e}.alert-secondary{--bs-alert-color: #41464b;--bs-alert-bg: #e2e3e5;--bs-alert-border-color: #d3d6d8}.alert-secondary .alert-link{color:#34383c}.alert-success{--bs-alert-color: #0f5132;--bs-alert-bg: #d1e7dd;--bs-alert-border-color: #badbcc}.alert-success .alert-link{color:#0c4128}.alert-info{--bs-alert-color: #055160;--bs-alert-bg: #cff4fc;--bs-alert-border-color: #b6effb}.alert-info .alert-link{color:#04414d}.alert-warning{--bs-alert-color: #664d03;--bs-alert-bg: #fff3cd;--bs-alert-border-color: #ffecb5}.alert-warning .alert-link{color:#523e02}.alert-danger{--bs-alert-color: #842029;--bs-alert-bg: #f8d7da;--bs-alert-border-color: #f5c2c7}.alert-danger .alert-link{color:#6a1a21}.alert-light{--bs-alert-color: #636464;--bs-alert-bg: #fefefe;--bs-alert-border-color: #fdfdfe}.alert-light .alert-link{color:#4f5050}.alert-dark{--bs-alert-color: #141619;--bs-alert-bg: #d3d3d4;--bs-alert-border-color: #bcbebf}.alert-dark .alert-link{color:#101214}@keyframes progress-bar-stripes{0%{background-position-x:1rem}}.progress{--bs-progress-height: 1rem;--bs-progress-font-size: .75rem;--bs-progress-bg: #e9ecef;--bs-progress-border-radius: .375rem;--bs-progress-box-shadow: inset 0 1px 2px rgba(0, 0, 0, .075);--bs-progress-bar-color: #fff;--bs-progress-bar-bg: #4696e5;--bs-progress-bar-transition: width .6s ease;display:flex;height:var(--bs-progress-height);overflow:hidden;font-size:var(--bs-progress-font-size);background-color:var(--bs-progress-bg);border-radius:var(--bs-progress-border-radius)}.progress-bar{display:flex;flex-direction:column;justify-content:center;overflow:hidden;color:var(--bs-progress-bar-color);text-align:center;white-space:nowrap;background-color:var(--bs-progress-bar-bg);transition:var(--bs-progress-bar-transition)}@media (prefers-reduced-motion: reduce){.progress-bar{transition:none}}.progress-bar-striped{background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-size:var(--bs-progress-height) var(--bs-progress-height)}.progress-bar-animated{animation:1s linear infinite progress-bar-stripes}@media (prefers-reduced-motion: reduce){.progress-bar-animated{animation:none}}.list-group{--bs-list-group-color: #212529;--bs-list-group-bg: #fff;--bs-list-group-border-color: rgba(0, 0, 0, .125);--bs-list-group-border-width: 1px;--bs-list-group-border-radius: .375rem;--bs-list-group-item-padding-x: 1rem;--bs-list-group-item-padding-y: .5rem;--bs-list-group-action-color: #495057;--bs-list-group-action-hover-color: #495057;--bs-list-group-action-hover-bg: #f8f9fa;--bs-list-group-action-active-color: #212529;--bs-list-group-action-active-bg: #e9ecef;--bs-list-group-disabled-color: #6c757d;--bs-list-group-disabled-bg: #fff;--bs-list-group-active-color: #fff;--bs-list-group-active-bg: #4696e5;--bs-list-group-active-border-color: #4696e5;display:flex;flex-direction:column;padding-left:0;margin-bottom:0;border-radius:var(--bs-list-group-border-radius)}.list-group-numbered{list-style-type:none;counter-reset:section}.list-group-numbered>.list-group-item:before{content:counters(section,".") ". ";counter-increment:section}.list-group-item-action{width:100%;color:var(--bs-list-group-action-color);text-align:inherit}.list-group-item-action:hover,.list-group-item-action:focus{z-index:1;color:var(--bs-list-group-action-hover-color);text-decoration:none;background-color:var(--bs-list-group-action-hover-bg)}.list-group-item-action:active{color:var(--bs-list-group-action-active-color);background-color:var(--bs-list-group-action-active-bg)}.list-group-item{position:relative;display:block;padding:var(--bs-list-group-item-padding-y) var(--bs-list-group-item-padding-x);color:var(--bs-list-group-color);text-decoration:none;background-color:var(--bs-list-group-bg);border:var(--bs-list-group-border-width) solid var(--bs-list-group-border-color)}.list-group-item:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.list-group-item:last-child{border-bottom-right-radius:inherit;border-bottom-left-radius:inherit}.list-group-item.disabled,.list-group-item:disabled{color:var(--bs-list-group-disabled-color);pointer-events:none;background-color:var(--bs-list-group-disabled-bg)}.list-group-item.active{z-index:2;color:var(--bs-list-group-active-color);background-color:var(--bs-list-group-active-bg);border-color:var(--bs-list-group-active-border-color)}.list-group-item+.list-group-item{border-top-width:0}.list-group-item+.list-group-item.active{margin-top:calc(-1 * var(--bs-list-group-border-width));border-top-width:var(--bs-list-group-border-width)}.list-group-horizontal{flex-direction:row}.list-group-horizontal>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal>.list-group-item.active{margin-top:0}.list-group-horizontal>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}@media (min-width: 576px){.list-group-horizontal-sm{flex-direction:row}.list-group-horizontal-sm>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-sm>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-sm>.list-group-item.active{margin-top:0}.list-group-horizontal-sm>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-sm>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}@media (min-width: 768px){.list-group-horizontal-md{flex-direction:row}.list-group-horizontal-md>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-md>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-md>.list-group-item.active{margin-top:0}.list-group-horizontal-md>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-md>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}@media (min-width: 992px){.list-group-horizontal-lg{flex-direction:row}.list-group-horizontal-lg>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-lg>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-lg>.list-group-item.active{margin-top:0}.list-group-horizontal-lg>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-lg>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}@media (min-width: 1200px){.list-group-horizontal-xl{flex-direction:row}.list-group-horizontal-xl>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-xl>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-xl>.list-group-item.active{margin-top:0}.list-group-horizontal-xl>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-xl>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}@media (min-width: 1400px){.list-group-horizontal-xxl{flex-direction:row}.list-group-horizontal-xxl>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-xxl>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-xxl>.list-group-item.active{margin-top:0}.list-group-horizontal-xxl>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-xxl>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}.list-group-flush{border-radius:0}.list-group-flush>.list-group-item{border-width:0 0 var(--bs-list-group-border-width)}.list-group-flush>.list-group-item:last-child{border-bottom-width:0}.list-group-item-primary{color:#2a5a89;background-color:#daeafa}.list-group-item-primary.list-group-item-action:hover,.list-group-item-primary.list-group-item-action:focus{color:#2a5a89;background-color:#c4d3e1}.list-group-item-primary.list-group-item-action.active{color:#fff;background-color:#2a5a89;border-color:#2a5a89}.list-group-item-secondary{color:#41464b;background-color:#e2e3e5}.list-group-item-secondary.list-group-item-action:hover,.list-group-item-secondary.list-group-item-action:focus{color:#41464b;background-color:#cbccce}.list-group-item-secondary.list-group-item-action.active{color:#fff;background-color:#41464b;border-color:#41464b}.list-group-item-success{color:#0f5132;background-color:#d1e7dd}.list-group-item-success.list-group-item-action:hover,.list-group-item-success.list-group-item-action:focus{color:#0f5132;background-color:#bcd0c7}.list-group-item-success.list-group-item-action.active{color:#fff;background-color:#0f5132;border-color:#0f5132}.list-group-item-info{color:#055160;background-color:#cff4fc}.list-group-item-info.list-group-item-action:hover,.list-group-item-info.list-group-item-action:focus{color:#055160;background-color:#badce3}.list-group-item-info.list-group-item-action.active{color:#fff;background-color:#055160;border-color:#055160}.list-group-item-warning{color:#664d03;background-color:#fff3cd}.list-group-item-warning.list-group-item-action:hover,.list-group-item-warning.list-group-item-action:focus{color:#664d03;background-color:#e6dbb9}.list-group-item-warning.list-group-item-action.active{color:#fff;background-color:#664d03;border-color:#664d03}.list-group-item-danger{color:#842029;background-color:#f8d7da}.list-group-item-danger.list-group-item-action:hover,.list-group-item-danger.list-group-item-action:focus{color:#842029;background-color:#dfc2c4}.list-group-item-danger.list-group-item-action.active{color:#fff;background-color:#842029;border-color:#842029}.list-group-item-light{color:#636464;background-color:#fefefe}.list-group-item-light.list-group-item-action:hover,.list-group-item-light.list-group-item-action:focus{color:#636464;background-color:#e5e5e5}.list-group-item-light.list-group-item-action.active{color:#fff;background-color:#636464;border-color:#636464}.list-group-item-dark{color:#141619;background-color:#d3d3d4}.list-group-item-dark.list-group-item-action:hover,.list-group-item-dark.list-group-item-action:focus{color:#141619;background-color:#bebebf}.list-group-item-dark.list-group-item-action.active{color:#fff;background-color:#141619;border-color:#141619}.btn-close{box-sizing:content-box;width:1em;height:1em;padding:.25em;color:#000;background:transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;border:0;border-radius:.375rem;opacity:.5}.btn-close:hover{color:#000;text-decoration:none;opacity:.75}.btn-close:focus{outline:0;box-shadow:0 0 0 .25rem #4696e540;opacity:1}.btn-close:disabled,.btn-close.disabled{pointer-events:none;user-select:none;opacity:.25}.btn-close-white{filter:invert(1) grayscale(100%) brightness(200%)}.toast{--bs-toast-zindex: 1090;--bs-toast-padding-x: .75rem;--bs-toast-padding-y: .5rem;--bs-toast-spacing: 1.5rem;--bs-toast-max-width: 350px;--bs-toast-font-size: .875rem;--bs-toast-color: ;--bs-toast-bg: rgba(255, 255, 255, .85);--bs-toast-border-width: 1px;--bs-toast-border-color: var(--bs-border-color-translucent);--bs-toast-border-radius: .375rem;--bs-toast-box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15);--bs-toast-header-color: #6c757d;--bs-toast-header-bg: rgba(255, 255, 255, .85);--bs-toast-header-border-color: rgba(0, 0, 0, .05);width:var(--bs-toast-max-width);max-width:100%;font-size:var(--bs-toast-font-size);color:var(--bs-toast-color);pointer-events:auto;background-color:var(--bs-toast-bg);background-clip:padding-box;border:var(--bs-toast-border-width) solid var(--bs-toast-border-color);box-shadow:var(--bs-toast-box-shadow);border-radius:var(--bs-toast-border-radius)}.toast.showing{opacity:0}.toast:not(.show){display:none}.toast-container{--bs-toast-zindex: 1090;position:absolute;z-index:var(--bs-toast-zindex);width:max-content;max-width:100%;pointer-events:none}.toast-container>:not(:last-child){margin-bottom:var(--bs-toast-spacing)}.toast-header{display:flex;align-items:center;padding:var(--bs-toast-padding-y) var(--bs-toast-padding-x);color:var(--bs-toast-header-color);background-color:var(--bs-toast-header-bg);background-clip:padding-box;border-bottom:var(--bs-toast-border-width) solid var(--bs-toast-header-border-color);border-top-left-radius:calc(var(--bs-toast-border-radius) - var(--bs-toast-border-width));border-top-right-radius:calc(var(--bs-toast-border-radius) - var(--bs-toast-border-width))}.toast-header .btn-close{margin-right:calc(-.5 * var(--bs-toast-padding-x));margin-left:var(--bs-toast-padding-x)}.toast-body{padding:var(--bs-toast-padding-x);word-wrap:break-word}.modal{--bs-modal-zindex: 1055;--bs-modal-width: 500px;--bs-modal-padding: 1rem;--bs-modal-margin: .5rem;--bs-modal-color: ;--bs-modal-bg: #fff;--bs-modal-border-color: var(--bs-border-color-translucent);--bs-modal-border-width: 1px;--bs-modal-border-radius: .5rem;--bs-modal-box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075);--bs-modal-inner-border-radius:calc(.5rem - 1px);--bs-modal-header-padding-x: 1rem;--bs-modal-header-padding-y: 1rem;--bs-modal-header-padding: 1rem 1rem;--bs-modal-header-border-color: var(--bs-border-color);--bs-modal-header-border-width: 1px;--bs-modal-title-line-height: 1.5;--bs-modal-footer-gap: .5rem;--bs-modal-footer-bg: ;--bs-modal-footer-border-color: var(--bs-border-color);--bs-modal-footer-border-width: 1px;position:fixed;top:0;left:0;z-index:var(--bs-modal-zindex);display:none;width:100%;height:100%;overflow-x:hidden;overflow-y:auto;outline:0}.modal-dialog{position:relative;width:auto;margin:var(--bs-modal-margin);pointer-events:none}.modal.fade .modal-dialog{transition:transform .3s ease-out;transform:translateY(-50px)}@media (prefers-reduced-motion: reduce){.modal.fade .modal-dialog{transition:none}}.modal.show .modal-dialog{transform:none}.modal.modal-static .modal-dialog{transform:scale(1.02)}.modal-dialog-scrollable{height:calc(100% - var(--bs-modal-margin) * 2)}.modal-dialog-scrollable .modal-content{max-height:100%;overflow:hidden}.modal-dialog-scrollable .modal-body{overflow-y:auto}.modal-dialog-centered{display:flex;align-items:center;min-height:calc(100% - var(--bs-modal-margin) * 2)}.modal-content{position:relative;display:flex;flex-direction:column;width:100%;color:var(--bs-modal-color);pointer-events:auto;background-color:var(--bs-modal-bg);background-clip:padding-box;border:var(--bs-modal-border-width) solid var(--bs-modal-border-color);border-radius:var(--bs-modal-border-radius);outline:0}.modal-backdrop{--bs-backdrop-zindex: 1050;--bs-backdrop-bg: #000;--bs-backdrop-opacity: .5;position:fixed;top:0;left:0;z-index:var(--bs-backdrop-zindex);width:100vw;height:100vh;background-color:var(--bs-backdrop-bg)}.modal-backdrop.fade{opacity:0}.modal-backdrop.show{opacity:var(--bs-backdrop-opacity)}.modal-header{display:flex;flex-shrink:0;align-items:center;justify-content:space-between;padding:var(--bs-modal-header-padding);border-bottom:var(--bs-modal-header-border-width) solid var(--bs-modal-header-border-color);border-top-left-radius:var(--bs-modal-inner-border-radius);border-top-right-radius:var(--bs-modal-inner-border-radius)}.modal-header .btn-close{padding:calc(var(--bs-modal-header-padding-y) * .5) calc(var(--bs-modal-header-padding-x) * .5);margin:calc(-.5 * var(--bs-modal-header-padding-y)) calc(-.5 * var(--bs-modal-header-padding-x)) calc(-.5 * var(--bs-modal-header-padding-y)) auto}.modal-title{margin-bottom:0;line-height:var(--bs-modal-title-line-height)}.modal-body{position:relative;flex:1 1 auto;padding:var(--bs-modal-padding)}.modal-footer{display:flex;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;padding:calc(var(--bs-modal-padding) - var(--bs-modal-footer-gap) * .5);background-color:var(--bs-modal-footer-bg);border-top:var(--bs-modal-footer-border-width) solid var(--bs-modal-footer-border-color);border-bottom-right-radius:var(--bs-modal-inner-border-radius);border-bottom-left-radius:var(--bs-modal-inner-border-radius)}.modal-footer>*{margin:calc(var(--bs-modal-footer-gap) * .5)}@media (min-width: 576px){.modal{--bs-modal-margin: 1.75rem;--bs-modal-box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15)}.modal-dialog{max-width:var(--bs-modal-width);margin-right:auto;margin-left:auto}.modal-sm{--bs-modal-width: 300px}}@media (min-width: 992px){.modal-lg,.modal-xl{--bs-modal-width: 800px}}@media (min-width: 1200px){.modal-xl{--bs-modal-width: 1140px}}.modal-fullscreen{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen .modal-header,.modal-fullscreen .modal-footer{border-radius:0}.modal-fullscreen .modal-body{overflow-y:auto}@media (max-width: 575.98px){.modal-fullscreen-sm-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-sm-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-sm-down .modal-header,.modal-fullscreen-sm-down .modal-footer{border-radius:0}.modal-fullscreen-sm-down .modal-body{overflow-y:auto}}@media (max-width: 767.98px){.modal-fullscreen-md-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-md-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-md-down .modal-header,.modal-fullscreen-md-down .modal-footer{border-radius:0}.modal-fullscreen-md-down .modal-body{overflow-y:auto}}@media (max-width: 991.98px){.modal-fullscreen-lg-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-lg-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-lg-down .modal-header,.modal-fullscreen-lg-down .modal-footer{border-radius:0}.modal-fullscreen-lg-down .modal-body{overflow-y:auto}}@media (max-width: 1199.98px){.modal-fullscreen-xl-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-xl-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-xl-down .modal-header,.modal-fullscreen-xl-down .modal-footer{border-radius:0}.modal-fullscreen-xl-down .modal-body{overflow-y:auto}}@media (max-width: 1399.98px){.modal-fullscreen-xxl-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-xxl-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-xxl-down .modal-header,.modal-fullscreen-xxl-down .modal-footer{border-radius:0}.modal-fullscreen-xxl-down .modal-body{overflow-y:auto}}.tooltip{--bs-tooltip-zindex: 1080;--bs-tooltip-max-width: 200px;--bs-tooltip-padding-x: .5rem;--bs-tooltip-padding-y: .25rem;--bs-tooltip-margin: ;--bs-tooltip-font-size: .875rem;--bs-tooltip-color: #fff;--bs-tooltip-bg: #000;--bs-tooltip-border-radius: .375rem;--bs-tooltip-opacity: .9;--bs-tooltip-arrow-width: .8rem;--bs-tooltip-arrow-height: .4rem;z-index:var(--bs-tooltip-zindex);display:block;padding:var(--bs-tooltip-arrow-height);margin:var(--bs-tooltip-margin);font-family:var(--bs-font-sans-serif);font-style:normal;font-weight:400;line-height:1.5;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;white-space:normal;word-spacing:normal;line-break:auto;font-size:var(--bs-tooltip-font-size);word-wrap:break-word;opacity:0}.tooltip.show{opacity:var(--bs-tooltip-opacity)}.tooltip .tooltip-arrow{display:block;width:var(--bs-tooltip-arrow-width);height:var(--bs-tooltip-arrow-height)}.tooltip .tooltip-arrow:before{position:absolute;content:"";border-color:transparent;border-style:solid}.bs-tooltip-top .tooltip-arrow,.bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow{bottom:0}.bs-tooltip-top .tooltip-arrow:before,.bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow:before{top:-1px;border-width:var(--bs-tooltip-arrow-height) calc(var(--bs-tooltip-arrow-width) * .5) 0;border-top-color:var(--bs-tooltip-bg)}.bs-tooltip-end .tooltip-arrow,.bs-tooltip-auto[data-popper-placement^=right] .tooltip-arrow{left:0;width:var(--bs-tooltip-arrow-height);height:var(--bs-tooltip-arrow-width)}.bs-tooltip-end .tooltip-arrow:before,.bs-tooltip-auto[data-popper-placement^=right] .tooltip-arrow:before{right:-1px;border-width:calc(var(--bs-tooltip-arrow-width) * .5) var(--bs-tooltip-arrow-height) calc(var(--bs-tooltip-arrow-width) * .5) 0;border-right-color:var(--bs-tooltip-bg)}.bs-tooltip-bottom .tooltip-arrow,.bs-tooltip-auto[data-popper-placement^=bottom] .tooltip-arrow{top:0}.bs-tooltip-bottom .tooltip-arrow:before,.bs-tooltip-auto[data-popper-placement^=bottom] .tooltip-arrow:before{bottom:-1px;border-width:0 calc(var(--bs-tooltip-arrow-width) * .5) var(--bs-tooltip-arrow-height);border-bottom-color:var(--bs-tooltip-bg)}.bs-tooltip-start .tooltip-arrow,.bs-tooltip-auto[data-popper-placement^=left] .tooltip-arrow{right:0;width:var(--bs-tooltip-arrow-height);height:var(--bs-tooltip-arrow-width)}.bs-tooltip-start .tooltip-arrow:before,.bs-tooltip-auto[data-popper-placement^=left] .tooltip-arrow:before{left:-1px;border-width:calc(var(--bs-tooltip-arrow-width) * .5) 0 calc(var(--bs-tooltip-arrow-width) * .5) var(--bs-tooltip-arrow-height);border-left-color:var(--bs-tooltip-bg)}.tooltip-inner{max-width:var(--bs-tooltip-max-width);padding:var(--bs-tooltip-padding-y) var(--bs-tooltip-padding-x);color:var(--bs-tooltip-color);text-align:center;background-color:var(--bs-tooltip-bg);border-radius:var(--bs-tooltip-border-radius)}.popover{--bs-popover-zindex: 1070;--bs-popover-max-width: 276px;--bs-popover-font-size: .875rem;--bs-popover-bg: #fff;--bs-popover-border-width: 1px;--bs-popover-border-color: var(--bs-border-color-translucent);--bs-popover-border-radius: .5rem;--bs-popover-inner-border-radius:calc(.5rem - 1px);--bs-popover-box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15);--bs-popover-header-padding-x: 1rem;--bs-popover-header-padding-y: .5rem;--bs-popover-header-font-size: 1rem;--bs-popover-header-color: ;--bs-popover-header-bg: #f0f0f0;--bs-popover-body-padding-x: 1rem;--bs-popover-body-padding-y: 1rem;--bs-popover-body-color: #212529;--bs-popover-arrow-width: 1rem;--bs-popover-arrow-height: .5rem;--bs-popover-arrow-border: var(--bs-popover-border-color);z-index:var(--bs-popover-zindex);display:block;max-width:var(--bs-popover-max-width);font-family:var(--bs-font-sans-serif);font-style:normal;font-weight:400;line-height:1.5;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;white-space:normal;word-spacing:normal;line-break:auto;font-size:var(--bs-popover-font-size);word-wrap:break-word;background-color:var(--bs-popover-bg);background-clip:padding-box;border:var(--bs-popover-border-width) solid var(--bs-popover-border-color);border-radius:var(--bs-popover-border-radius)}.popover .popover-arrow{display:block;width:var(--bs-popover-arrow-width);height:var(--bs-popover-arrow-height)}.popover .popover-arrow:before,.popover .popover-arrow:after{position:absolute;display:block;content:"";border-color:transparent;border-style:solid;border-width:0}.bs-popover-top>.popover-arrow,.bs-popover-auto[data-popper-placement^=top]>.popover-arrow{bottom:calc(-1 * (var(--bs-popover-arrow-height)) - var(--bs-popover-border-width))}.bs-popover-top>.popover-arrow:before,.bs-popover-auto[data-popper-placement^=top]>.popover-arrow:before,.bs-popover-top>.popover-arrow:after,.bs-popover-auto[data-popper-placement^=top]>.popover-arrow:after{border-width:var(--bs-popover-arrow-height) calc(var(--bs-popover-arrow-width) * .5) 0}.bs-popover-top>.popover-arrow:before,.bs-popover-auto[data-popper-placement^=top]>.popover-arrow:before{bottom:0;border-top-color:var(--bs-popover-arrow-border)}.bs-popover-top>.popover-arrow:after,.bs-popover-auto[data-popper-placement^=top]>.popover-arrow:after{bottom:var(--bs-popover-border-width);border-top-color:var(--bs-popover-bg)}.bs-popover-end>.popover-arrow,.bs-popover-auto[data-popper-placement^=right]>.popover-arrow{left:calc(-1 * (var(--bs-popover-arrow-height)) - var(--bs-popover-border-width));width:var(--bs-popover-arrow-height);height:var(--bs-popover-arrow-width)}.bs-popover-end>.popover-arrow:before,.bs-popover-auto[data-popper-placement^=right]>.popover-arrow:before,.bs-popover-end>.popover-arrow:after,.bs-popover-auto[data-popper-placement^=right]>.popover-arrow:after{border-width:calc(var(--bs-popover-arrow-width) * .5) var(--bs-popover-arrow-height) calc(var(--bs-popover-arrow-width) * .5) 0}.bs-popover-end>.popover-arrow:before,.bs-popover-auto[data-popper-placement^=right]>.popover-arrow:before{left:0;border-right-color:var(--bs-popover-arrow-border)}.bs-popover-end>.popover-arrow:after,.bs-popover-auto[data-popper-placement^=right]>.popover-arrow:after{left:var(--bs-popover-border-width);border-right-color:var(--bs-popover-bg)}.bs-popover-bottom>.popover-arrow,.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow{top:calc(-1 * (var(--bs-popover-arrow-height)) - var(--bs-popover-border-width))}.bs-popover-bottom>.popover-arrow:before,.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow:before,.bs-popover-bottom>.popover-arrow:after,.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow:after{border-width:0 calc(var(--bs-popover-arrow-width) * .5) var(--bs-popover-arrow-height)}.bs-popover-bottom>.popover-arrow:before,.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow:before{top:0;border-bottom-color:var(--bs-popover-arrow-border)}.bs-popover-bottom>.popover-arrow:after,.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow:after{top:var(--bs-popover-border-width);border-bottom-color:var(--bs-popover-bg)}.bs-popover-bottom .popover-header:before,.bs-popover-auto[data-popper-placement^=bottom] .popover-header:before{position:absolute;top:0;left:50%;display:block;width:var(--bs-popover-arrow-width);margin-left:calc(-.5 * var(--bs-popover-arrow-width));content:"";border-bottom:var(--bs-popover-border-width) solid var(--bs-popover-header-bg)}.bs-popover-start>.popover-arrow,.bs-popover-auto[data-popper-placement^=left]>.popover-arrow{right:calc(-1 * (var(--bs-popover-arrow-height)) - var(--bs-popover-border-width));width:var(--bs-popover-arrow-height);height:var(--bs-popover-arrow-width)}.bs-popover-start>.popover-arrow:before,.bs-popover-auto[data-popper-placement^=left]>.popover-arrow:before,.bs-popover-start>.popover-arrow:after,.bs-popover-auto[data-popper-placement^=left]>.popover-arrow:after{border-width:calc(var(--bs-popover-arrow-width) * .5) 0 calc(var(--bs-popover-arrow-width) * .5) var(--bs-popover-arrow-height)}.bs-popover-start>.popover-arrow:before,.bs-popover-auto[data-popper-placement^=left]>.popover-arrow:before{right:0;border-left-color:var(--bs-popover-arrow-border)}.bs-popover-start>.popover-arrow:after,.bs-popover-auto[data-popper-placement^=left]>.popover-arrow:after{right:var(--bs-popover-border-width);border-left-color:var(--bs-popover-bg)}.popover-header{padding:var(--bs-popover-header-padding-y) var(--bs-popover-header-padding-x);margin-bottom:0;font-size:var(--bs-popover-header-font-size);color:var(--bs-popover-header-color);background-color:var(--bs-popover-header-bg);border-bottom:var(--bs-popover-border-width) solid var(--bs-popover-border-color);border-top-left-radius:var(--bs-popover-inner-border-radius);border-top-right-radius:var(--bs-popover-inner-border-radius)}.popover-header:empty{display:none}.popover-body{padding:var(--bs-popover-body-padding-y) var(--bs-popover-body-padding-x);color:var(--bs-popover-body-color)}.carousel{position:relative}.carousel.pointer-event{touch-action:pan-y}.carousel-inner{position:relative;width:100%;overflow:hidden}.carousel-inner:after{display:block;clear:both;content:""}.carousel-item{position:relative;display:none;float:left;width:100%;margin-right:-100%;backface-visibility:hidden;transition:transform .6s ease-in-out}@media (prefers-reduced-motion: reduce){.carousel-item{transition:none}}.carousel-item.active,.carousel-item-next,.carousel-item-prev{display:block}.carousel-item-next:not(.carousel-item-start),.active.carousel-item-end{transform:translate(100%)}.carousel-item-prev:not(.carousel-item-end),.active.carousel-item-start{transform:translate(-100%)}.carousel-fade .carousel-item{opacity:0;transition-property:opacity;transform:none}.carousel-fade .carousel-item.active,.carousel-fade .carousel-item-next.carousel-item-start,.carousel-fade .carousel-item-prev.carousel-item-end{z-index:1;opacity:1}.carousel-fade .active.carousel-item-start,.carousel-fade .active.carousel-item-end{z-index:0;opacity:0;transition:opacity 0s .6s}@media (prefers-reduced-motion: reduce){.carousel-fade .active.carousel-item-start,.carousel-fade .active.carousel-item-end{transition:none}}.carousel-control-prev,.carousel-control-next{position:absolute;top:0;bottom:0;z-index:1;display:flex;align-items:center;justify-content:center;width:15%;padding:0;color:#fff;text-align:center;background:none;border:0;opacity:.5;transition:opacity .15s ease}@media (prefers-reduced-motion: reduce){.carousel-control-prev,.carousel-control-next{transition:none}}.carousel-control-prev:hover,.carousel-control-prev:focus,.carousel-control-next:hover,.carousel-control-next:focus{color:#fff;text-decoration:none;outline:0;opacity:.9}.carousel-control-prev{left:0}.carousel-control-next{right:0}.carousel-control-prev-icon,.carousel-control-next-icon{display:inline-block;width:2rem;height:2rem;background-repeat:no-repeat;background-position:50%;background-size:100% 100%}.carousel-control-prev-icon{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e")}.carousel-control-next-icon{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e")}.carousel-indicators{position:absolute;right:0;bottom:0;left:0;z-index:2;display:flex;justify-content:center;padding:0;margin-right:15%;margin-bottom:1rem;margin-left:15%;list-style:none}.carousel-indicators [data-bs-target]{box-sizing:content-box;flex:0 1 auto;width:30px;height:3px;padding:0;margin-right:3px;margin-left:3px;text-indent:-999px;cursor:pointer;background-color:#fff;background-clip:padding-box;border:0;border-top:10px solid transparent;border-bottom:10px solid transparent;opacity:.5;transition:opacity .6s ease}@media (prefers-reduced-motion: reduce){.carousel-indicators [data-bs-target]{transition:none}}.carousel-indicators .active{opacity:1}.carousel-caption{position:absolute;right:15%;bottom:1.25rem;left:15%;padding-top:1.25rem;padding-bottom:1.25rem;color:#fff;text-align:center}.carousel-dark .carousel-control-prev-icon,.carousel-dark .carousel-control-next-icon{filter:invert(1) grayscale(100)}.carousel-dark .carousel-indicators [data-bs-target]{background-color:#000}.carousel-dark .carousel-caption{color:#000}.spinner-grow,.spinner-border{display:inline-block;width:var(--bs-spinner-width);height:var(--bs-spinner-height);vertical-align:var(--bs-spinner-vertical-align);border-radius:50%;animation:var(--bs-spinner-animation-speed) linear infinite var(--bs-spinner-animation-name)}@keyframes spinner-border{to{transform:rotate(360deg)}}.spinner-border{--bs-spinner-width: 2rem;--bs-spinner-height: 2rem;--bs-spinner-vertical-align: -.125em;--bs-spinner-border-width: .25em;--bs-spinner-animation-speed: .75s;--bs-spinner-animation-name: spinner-border;border:var(--bs-spinner-border-width) solid currentcolor;border-right-color:transparent}.spinner-border-sm{--bs-spinner-width: 1rem;--bs-spinner-height: 1rem;--bs-spinner-border-width: .2em}@keyframes spinner-grow{0%{transform:scale(0)}50%{opacity:1;transform:none}}.spinner-grow{--bs-spinner-width: 2rem;--bs-spinner-height: 2rem;--bs-spinner-vertical-align: -.125em;--bs-spinner-animation-speed: .75s;--bs-spinner-animation-name: spinner-grow;background-color:currentcolor;opacity:0}.spinner-grow-sm{--bs-spinner-width: 1rem;--bs-spinner-height: 1rem}@media (prefers-reduced-motion: reduce){.spinner-border,.spinner-grow{--bs-spinner-animation-speed: 1.5s}}.offcanvas,.offcanvas-xxl,.offcanvas-xl,.offcanvas-lg,.offcanvas-md,.offcanvas-sm{--bs-offcanvas-zindex: 1045;--bs-offcanvas-width: 400px;--bs-offcanvas-height: 30vh;--bs-offcanvas-padding-x: 1rem;--bs-offcanvas-padding-y: 1rem;--bs-offcanvas-color: ;--bs-offcanvas-bg: #fff;--bs-offcanvas-border-width: 1px;--bs-offcanvas-border-color: var(--bs-border-color-translucent);--bs-offcanvas-box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075)}@media (max-width: 575.98px){.offcanvas-sm{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:transform .3s ease-in-out}}@media (max-width: 575.98px) and (prefers-reduced-motion: reduce){.offcanvas-sm{transition:none}}@media (max-width: 575.98px){.offcanvas-sm.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(-100%)}}@media (max-width: 575.98px){.offcanvas-sm.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(100%)}}@media (max-width: 575.98px){.offcanvas-sm.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}}@media (max-width: 575.98px){.offcanvas-sm.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}}@media (max-width: 575.98px){.offcanvas-sm.showing,.offcanvas-sm.show:not(.hiding){transform:none}}@media (max-width: 575.98px){.offcanvas-sm.showing,.offcanvas-sm.hiding,.offcanvas-sm.show{visibility:visible}}@media (min-width: 576px){.offcanvas-sm{--bs-offcanvas-height: auto;--bs-offcanvas-border-width: 0;background-color:transparent!important}.offcanvas-sm .offcanvas-header{display:none}.offcanvas-sm .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}@media (max-width: 767.98px){.offcanvas-md{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:transform .3s ease-in-out}}@media (max-width: 767.98px) and (prefers-reduced-motion: reduce){.offcanvas-md{transition:none}}@media (max-width: 767.98px){.offcanvas-md.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(-100%)}}@media (max-width: 767.98px){.offcanvas-md.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(100%)}}@media (max-width: 767.98px){.offcanvas-md.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}}@media (max-width: 767.98px){.offcanvas-md.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}}@media (max-width: 767.98px){.offcanvas-md.showing,.offcanvas-md.show:not(.hiding){transform:none}}@media (max-width: 767.98px){.offcanvas-md.showing,.offcanvas-md.hiding,.offcanvas-md.show{visibility:visible}}@media (min-width: 768px){.offcanvas-md{--bs-offcanvas-height: auto;--bs-offcanvas-border-width: 0;background-color:transparent!important}.offcanvas-md .offcanvas-header{display:none}.offcanvas-md .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}@media (max-width: 991.98px){.offcanvas-lg{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:transform .3s ease-in-out}}@media (max-width: 991.98px) and (prefers-reduced-motion: reduce){.offcanvas-lg{transition:none}}@media (max-width: 991.98px){.offcanvas-lg.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(-100%)}}@media (max-width: 991.98px){.offcanvas-lg.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(100%)}}@media (max-width: 991.98px){.offcanvas-lg.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}}@media (max-width: 991.98px){.offcanvas-lg.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}}@media (max-width: 991.98px){.offcanvas-lg.showing,.offcanvas-lg.show:not(.hiding){transform:none}}@media (max-width: 991.98px){.offcanvas-lg.showing,.offcanvas-lg.hiding,.offcanvas-lg.show{visibility:visible}}@media (min-width: 992px){.offcanvas-lg{--bs-offcanvas-height: auto;--bs-offcanvas-border-width: 0;background-color:transparent!important}.offcanvas-lg .offcanvas-header{display:none}.offcanvas-lg .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}@media (max-width: 1199.98px){.offcanvas-xl{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:transform .3s ease-in-out}}@media (max-width: 1199.98px) and (prefers-reduced-motion: reduce){.offcanvas-xl{transition:none}}@media (max-width: 1199.98px){.offcanvas-xl.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(-100%)}}@media (max-width: 1199.98px){.offcanvas-xl.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(100%)}}@media (max-width: 1199.98px){.offcanvas-xl.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}}@media (max-width: 1199.98px){.offcanvas-xl.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}}@media (max-width: 1199.98px){.offcanvas-xl.showing,.offcanvas-xl.show:not(.hiding){transform:none}}@media (max-width: 1199.98px){.offcanvas-xl.showing,.offcanvas-xl.hiding,.offcanvas-xl.show{visibility:visible}}@media (min-width: 1200px){.offcanvas-xl{--bs-offcanvas-height: auto;--bs-offcanvas-border-width: 0;background-color:transparent!important}.offcanvas-xl .offcanvas-header{display:none}.offcanvas-xl .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}@media (max-width: 1399.98px){.offcanvas-xxl{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:transform .3s ease-in-out}}@media (max-width: 1399.98px) and (prefers-reduced-motion: reduce){.offcanvas-xxl{transition:none}}@media (max-width: 1399.98px){.offcanvas-xxl.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(-100%)}}@media (max-width: 1399.98px){.offcanvas-xxl.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(100%)}}@media (max-width: 1399.98px){.offcanvas-xxl.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}}@media (max-width: 1399.98px){.offcanvas-xxl.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}}@media (max-width: 1399.98px){.offcanvas-xxl.showing,.offcanvas-xxl.show:not(.hiding){transform:none}}@media (max-width: 1399.98px){.offcanvas-xxl.showing,.offcanvas-xxl.hiding,.offcanvas-xxl.show{visibility:visible}}@media (min-width: 1400px){.offcanvas-xxl{--bs-offcanvas-height: auto;--bs-offcanvas-border-width: 0;background-color:transparent!important}.offcanvas-xxl .offcanvas-header{display:none}.offcanvas-xxl .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}.offcanvas{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:transform .3s ease-in-out}@media (prefers-reduced-motion: reduce){.offcanvas{transition:none}}.offcanvas.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(-100%)}.offcanvas.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(100%)}.offcanvas.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}.offcanvas.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}.offcanvas.showing,.offcanvas.show:not(.hiding){transform:none}.offcanvas.showing,.offcanvas.hiding,.offcanvas.show{visibility:visible}.offcanvas-backdrop{position:fixed;top:0;left:0;z-index:1040;width:100vw;height:100vh;background-color:#000}.offcanvas-backdrop.fade{opacity:0}.offcanvas-backdrop.show{opacity:.5}.offcanvas-header{display:flex;align-items:center;justify-content:space-between;padding:var(--bs-offcanvas-padding-y) var(--bs-offcanvas-padding-x)}.offcanvas-header .btn-close{padding:calc(var(--bs-offcanvas-padding-y) * .5) calc(var(--bs-offcanvas-padding-x) * .5);margin-top:calc(-.5 * var(--bs-offcanvas-padding-y));margin-right:calc(-.5 * var(--bs-offcanvas-padding-x));margin-bottom:calc(-.5 * var(--bs-offcanvas-padding-y))}.offcanvas-title{margin-bottom:0;line-height:1.5}.offcanvas-body{flex-grow:1;padding:var(--bs-offcanvas-padding-y) var(--bs-offcanvas-padding-x);overflow-y:auto}.placeholder{display:inline-block;min-height:1em;vertical-align:middle;cursor:wait;background-color:currentcolor;opacity:.5}.placeholder.btn:before{display:inline-block;content:""}.placeholder-xs{min-height:.6em}.placeholder-sm{min-height:.8em}.placeholder-lg{min-height:1.2em}.placeholder-glow .placeholder{animation:placeholder-glow 2s ease-in-out infinite}@keyframes placeholder-glow{50%{opacity:.2}}.placeholder-wave{mask-image:linear-gradient(130deg,#000 55%,rgba(0,0,0,.8) 75%,#000 95%);mask-size:200% 100%;animation:placeholder-wave 2s linear infinite}@keyframes placeholder-wave{to{mask-position:-200% 0%}}.clearfix:after{display:block;clear:both;content:""}.text-bg-primary{color:#000!important;background-color:RGBA(70,150,229,var(--bs-bg-opacity, 1))!important}.text-bg-secondary{color:#fff!important;background-color:RGBA(108,117,125,var(--bs-bg-opacity, 1))!important}.text-bg-success{color:#fff!important;background-color:RGBA(25,135,84,var(--bs-bg-opacity, 1))!important}.text-bg-info{color:#000!important;background-color:RGBA(13,202,240,var(--bs-bg-opacity, 1))!important}.text-bg-warning{color:#000!important;background-color:RGBA(255,193,7,var(--bs-bg-opacity, 1))!important}.text-bg-danger{color:#fff!important;background-color:RGBA(220,53,69,var(--bs-bg-opacity, 1))!important}.text-bg-light{color:#000!important;background-color:RGBA(248,249,250,var(--bs-bg-opacity, 1))!important}.text-bg-dark{color:#fff!important;background-color:RGBA(33,37,41,var(--bs-bg-opacity, 1))!important}.link-primary{color:#4696e5!important}.link-primary:hover,.link-primary:focus{color:#6babea!important}.link-secondary{color:#6c757d!important}.link-secondary:hover,.link-secondary:focus{color:#565e64!important}.link-success{color:#198754!important}.link-success:hover,.link-success:focus{color:#146c43!important}.link-info{color:#0dcaf0!important}.link-info:hover,.link-info:focus{color:#3dd5f3!important}.link-warning{color:#ffc107!important}.link-warning:hover,.link-warning:focus{color:#ffcd39!important}.link-danger{color:#dc3545!important}.link-danger:hover,.link-danger:focus{color:#b02a37!important}.link-light{color:#f8f9fa!important}.link-light:hover,.link-light:focus{color:#f9fafb!important}.link-dark{color:#212529!important}.link-dark:hover,.link-dark:focus{color:#1a1e21!important}.ratio{position:relative;width:100%}.ratio:before{display:block;padding-top:var(--bs-aspect-ratio);content:""}.ratio>*{position:absolute;top:0;left:0;width:100%;height:100%}.ratio-1x1{--bs-aspect-ratio: 100%}.ratio-4x3{--bs-aspect-ratio: 75%}.ratio-16x9{--bs-aspect-ratio: 56.25%}.ratio-21x9{--bs-aspect-ratio: 42.8571428571%}.fixed-top{position:fixed;top:0;right:0;left:0;z-index:1030}.fixed-bottom{position:fixed;right:0;bottom:0;left:0;z-index:1030}.sticky-top{position:sticky;top:0;z-index:1020}.sticky-bottom{position:sticky;bottom:0;z-index:1020}@media (min-width: 576px){.sticky-sm-top{position:sticky;top:0;z-index:1020}.sticky-sm-bottom{position:sticky;bottom:0;z-index:1020}}@media (min-width: 768px){.sticky-md-top{position:sticky;top:0;z-index:1020}.sticky-md-bottom{position:sticky;bottom:0;z-index:1020}}@media (min-width: 992px){.sticky-lg-top{position:sticky;top:0;z-index:1020}.sticky-lg-bottom{position:sticky;bottom:0;z-index:1020}}@media (min-width: 1200px){.sticky-xl-top{position:sticky;top:0;z-index:1020}.sticky-xl-bottom{position:sticky;bottom:0;z-index:1020}}@media (min-width: 1400px){.sticky-xxl-top{position:sticky;top:0;z-index:1020}.sticky-xxl-bottom{position:sticky;bottom:0;z-index:1020}}.hstack{display:flex;flex-direction:row;align-items:center;align-self:stretch}.vstack{display:flex;flex:1 1 auto;flex-direction:column;align-self:stretch}.visually-hidden,.visually-hidden-focusable:not(:focus):not(:focus-within){position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.stretched-link:after{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;content:""}.text-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vr{display:inline-block;align-self:stretch;width:1px;min-height:1em;background-color:currentcolor;opacity:.25}.align-baseline{vertical-align:baseline!important}.align-top{vertical-align:top!important}.align-middle{vertical-align:middle!important}.align-bottom{vertical-align:bottom!important}.align-text-bottom{vertical-align:text-bottom!important}.align-text-top{vertical-align:text-top!important}.float-start{float:left!important}.float-end{float:right!important}.float-none{float:none!important}.opacity-0{opacity:0!important}.opacity-25{opacity:.25!important}.opacity-50{opacity:.5!important}.opacity-75{opacity:.75!important}.opacity-100{opacity:1!important}.overflow-auto{overflow:auto!important}.overflow-hidden{overflow:hidden!important}.overflow-visible{overflow:visible!important}.overflow-scroll{overflow:scroll!important}.d-inline{display:inline!important}.d-inline-block{display:inline-block!important}.d-block{display:block!important}.d-grid{display:grid!important}.d-table{display:table!important}.d-table-row{display:table-row!important}.d-table-cell{display:table-cell!important}.d-flex{display:flex!important}.d-inline-flex{display:inline-flex!important}.d-none{display:none!important}.shadow{box-shadow:0 .5rem 1rem #00000026!important}.shadow-sm{box-shadow:0 .125rem .25rem #00000013!important}.shadow-lg{box-shadow:0 1rem 3rem #0000002d!important}.shadow-none{box-shadow:none!important}.position-static{position:static!important}.position-relative{position:relative!important}.position-absolute{position:absolute!important}.position-fixed{position:fixed!important}.position-sticky{position:sticky!important}.top-0{top:0!important}.top-50{top:50%!important}.top-100{top:100%!important}.bottom-0{bottom:0!important}.bottom-50{bottom:50%!important}.bottom-100{bottom:100%!important}.start-0{left:0!important}.start-50{left:50%!important}.start-100{left:100%!important}.end-0{right:0!important}.end-50{right:50%!important}.end-100{right:100%!important}.translate-middle{transform:translate(-50%,-50%)!important}.translate-middle-x{transform:translate(-50%)!important}.translate-middle-y{transform:translateY(-50%)!important}.border{border:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-0{border:0!important}.border-top{border-top:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-top-0{border-top:0!important}.border-end{border-right:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-end-0{border-right:0!important}.border-bottom{border-bottom:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-bottom-0{border-bottom:0!important}.border-start{border-left:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-start-0{border-left:0!important}.border-primary{--bs-border-opacity: 1;border-color:rgba(var(--bs-primary-rgb),var(--bs-border-opacity))!important}.border-secondary{--bs-border-opacity: 1;border-color:rgba(var(--bs-secondary-rgb),var(--bs-border-opacity))!important}.border-success{--bs-border-opacity: 1;border-color:rgba(var(--bs-success-rgb),var(--bs-border-opacity))!important}.border-info{--bs-border-opacity: 1;border-color:rgba(var(--bs-info-rgb),var(--bs-border-opacity))!important}.border-warning{--bs-border-opacity: 1;border-color:rgba(var(--bs-warning-rgb),var(--bs-border-opacity))!important}.border-danger{--bs-border-opacity: 1;border-color:rgba(var(--bs-danger-rgb),var(--bs-border-opacity))!important}.border-light{--bs-border-opacity: 1;border-color:rgba(var(--bs-light-rgb),var(--bs-border-opacity))!important}.border-dark{--bs-border-opacity: 1;border-color:rgba(var(--bs-dark-rgb),var(--bs-border-opacity))!important}.border-white{--bs-border-opacity: 1;border-color:rgba(var(--bs-white-rgb),var(--bs-border-opacity))!important}.border-1{--bs-border-width: 1px}.border-2{--bs-border-width: 2px}.border-3{--bs-border-width: 3px}.border-4{--bs-border-width: 4px}.border-5{--bs-border-width: 5px}.border-opacity-10{--bs-border-opacity: .1}.border-opacity-25{--bs-border-opacity: .25}.border-opacity-50{--bs-border-opacity: .5}.border-opacity-75{--bs-border-opacity: .75}.border-opacity-100{--bs-border-opacity: 1}.w-25{width:25%!important}.w-50{width:50%!important}.w-75{width:75%!important}.w-100{width:100%!important}.w-auto{width:auto!important}.mw-100{max-width:100%!important}.vw-100{width:100vw!important}.min-vw-100{min-width:100vw!important}.h-25{height:25%!important}.h-50{height:50%!important}.h-75{height:75%!important}.h-100{height:100%!important}.h-auto{height:auto!important}.mh-100{max-height:100%!important}.vh-100{height:100vh!important}.min-vh-100{min-height:100vh!important}.flex-fill{flex:1 1 auto!important}.flex-row{flex-direction:row!important}.flex-column{flex-direction:column!important}.flex-row-reverse{flex-direction:row-reverse!important}.flex-column-reverse{flex-direction:column-reverse!important}.flex-grow-0{flex-grow:0!important}.flex-grow-1{flex-grow:1!important}.flex-shrink-0{flex-shrink:0!important}.flex-shrink-1{flex-shrink:1!important}.flex-wrap{flex-wrap:wrap!important}.flex-nowrap{flex-wrap:nowrap!important}.flex-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-start{justify-content:flex-start!important}.justify-content-end{justify-content:flex-end!important}.justify-content-center{justify-content:center!important}.justify-content-between{justify-content:space-between!important}.justify-content-around{justify-content:space-around!important}.justify-content-evenly{justify-content:space-evenly!important}.align-items-start{align-items:flex-start!important}.align-items-end{align-items:flex-end!important}.align-items-center{align-items:center!important}.align-items-baseline{align-items:baseline!important}.align-items-stretch{align-items:stretch!important}.align-content-start{align-content:flex-start!important}.align-content-end{align-content:flex-end!important}.align-content-center{align-content:center!important}.align-content-between{align-content:space-between!important}.align-content-around{align-content:space-around!important}.align-content-stretch{align-content:stretch!important}.align-self-auto{align-self:auto!important}.align-self-start{align-self:flex-start!important}.align-self-end{align-self:flex-end!important}.align-self-center{align-self:center!important}.align-self-baseline{align-self:baseline!important}.align-self-stretch{align-self:stretch!important}.order-first{order:-1!important}.order-0{order:0!important}.order-1{order:1!important}.order-2{order:2!important}.order-3{order:3!important}.order-4{order:4!important}.order-5{order:5!important}.order-last{order:6!important}.m-0{margin:0!important}.m-1{margin:.25rem!important}.m-2{margin:.5rem!important}.m-3{margin:1rem!important}.m-4{margin:1.5rem!important}.m-5{margin:3rem!important}.m-auto{margin:auto!important}.mx-0{margin-right:0!important;margin-left:0!important}.mx-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-3{margin-right:1rem!important;margin-left:1rem!important}.mx-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-5{margin-right:3rem!important;margin-left:3rem!important}.mx-auto{margin-right:auto!important;margin-left:auto!important}.my-0{margin-top:0!important;margin-bottom:0!important}.my-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-0{margin-top:0!important}.mt-1{margin-top:.25rem!important}.mt-2{margin-top:.5rem!important}.mt-3{margin-top:1rem!important}.mt-4{margin-top:1.5rem!important}.mt-5{margin-top:3rem!important}.mt-auto{margin-top:auto!important}.me-0{margin-right:0!important}.me-1{margin-right:.25rem!important}.me-2{margin-right:.5rem!important}.me-3{margin-right:1rem!important}.me-4{margin-right:1.5rem!important}.me-5{margin-right:3rem!important}.me-auto{margin-right:auto!important}.mb-0{margin-bottom:0!important}.mb-1{margin-bottom:.25rem!important}.mb-2{margin-bottom:.5rem!important}.mb-3{margin-bottom:1rem!important}.mb-4{margin-bottom:1.5rem!important}.mb-5{margin-bottom:3rem!important}.mb-auto{margin-bottom:auto!important}.ms-0{margin-left:0!important}.ms-1{margin-left:.25rem!important}.ms-2{margin-left:.5rem!important}.ms-3{margin-left:1rem!important}.ms-4{margin-left:1.5rem!important}.ms-5{margin-left:3rem!important}.ms-auto{margin-left:auto!important}.p-0{padding:0!important}.p-1{padding:.25rem!important}.p-2{padding:.5rem!important}.p-3{padding:1rem!important}.p-4{padding:1.5rem!important}.p-5{padding:3rem!important}.px-0{padding-right:0!important;padding-left:0!important}.px-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-3{padding-right:1rem!important;padding-left:1rem!important}.px-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-5{padding-right:3rem!important;padding-left:3rem!important}.py-0{padding-top:0!important;padding-bottom:0!important}.py-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-0{padding-top:0!important}.pt-1{padding-top:.25rem!important}.pt-2{padding-top:.5rem!important}.pt-3{padding-top:1rem!important}.pt-4{padding-top:1.5rem!important}.pt-5{padding-top:3rem!important}.pe-0{padding-right:0!important}.pe-1{padding-right:.25rem!important}.pe-2{padding-right:.5rem!important}.pe-3{padding-right:1rem!important}.pe-4{padding-right:1.5rem!important}.pe-5{padding-right:3rem!important}.pb-0{padding-bottom:0!important}.pb-1{padding-bottom:.25rem!important}.pb-2{padding-bottom:.5rem!important}.pb-3{padding-bottom:1rem!important}.pb-4{padding-bottom:1.5rem!important}.pb-5{padding-bottom:3rem!important}.ps-0{padding-left:0!important}.ps-1{padding-left:.25rem!important}.ps-2{padding-left:.5rem!important}.ps-3{padding-left:1rem!important}.ps-4{padding-left:1.5rem!important}.ps-5{padding-left:3rem!important}.gap-0{gap:0!important}.gap-1{gap:.25rem!important}.gap-2{gap:.5rem!important}.gap-3{gap:1rem!important}.gap-4{gap:1.5rem!important}.gap-5{gap:3rem!important}.font-monospace{font-family:var(--bs-font-monospace)!important}.fs-1{font-size:calc(1.375rem + 1.5vw)!important}.fs-2{font-size:calc(1.325rem + .9vw)!important}.fs-3{font-size:calc(1.3rem + .6vw)!important}.fs-4{font-size:calc(1.275rem + .3vw)!important}.fs-5{font-size:1.25rem!important}.fs-6{font-size:1rem!important}.fst-italic{font-style:italic!important}.fst-normal{font-style:normal!important}.fw-light{font-weight:300!important}.fw-lighter{font-weight:lighter!important}.fw-normal{font-weight:400!important}.fw-bold{font-weight:700!important}.fw-semibold{font-weight:600!important}.fw-bolder{font-weight:bolder!important}.lh-1{line-height:1!important}.lh-sm{line-height:1.25!important}.lh-base{line-height:1.5!important}.lh-lg{line-height:2!important}.text-start{text-align:left!important}.text-end{text-align:right!important}.text-center{text-align:center!important}.text-decoration-none{text-decoration:none!important}.text-decoration-underline{text-decoration:underline!important}.text-decoration-line-through{text-decoration:line-through!important}.text-lowercase{text-transform:lowercase!important}.text-uppercase{text-transform:uppercase!important}.text-capitalize{text-transform:capitalize!important}.text-wrap{white-space:normal!important}.text-nowrap{white-space:nowrap!important}.text-break{word-wrap:break-word!important;word-break:break-word!important}.text-primary{--bs-text-opacity: 1;color:rgba(var(--bs-primary-rgb),var(--bs-text-opacity))!important}.text-secondary{--bs-text-opacity: 1;color:rgba(var(--bs-secondary-rgb),var(--bs-text-opacity))!important}.text-success{--bs-text-opacity: 1;color:rgba(var(--bs-success-rgb),var(--bs-text-opacity))!important}.text-info{--bs-text-opacity: 1;color:rgba(var(--bs-info-rgb),var(--bs-text-opacity))!important}.text-warning{--bs-text-opacity: 1;color:rgba(var(--bs-warning-rgb),var(--bs-text-opacity))!important}.text-danger{--bs-text-opacity: 1;color:rgba(var(--bs-danger-rgb),var(--bs-text-opacity))!important}.text-light{--bs-text-opacity: 1;color:rgba(var(--bs-light-rgb),var(--bs-text-opacity))!important}.text-dark{--bs-text-opacity: 1;color:rgba(var(--bs-dark-rgb),var(--bs-text-opacity))!important}.text-black{--bs-text-opacity: 1;color:rgba(var(--bs-black-rgb),var(--bs-text-opacity))!important}.text-white{--bs-text-opacity: 1;color:rgba(var(--bs-white-rgb),var(--bs-text-opacity))!important}.text-body{--bs-text-opacity: 1;color:rgba(var(--bs-body-color-rgb),var(--bs-text-opacity))!important}.text-muted{--bs-text-opacity: 1;color:#6c757d!important}.text-black-50{--bs-text-opacity: 1;color:#00000080!important}.text-white-50{--bs-text-opacity: 1;color:#ffffff80!important}.text-reset{--bs-text-opacity: 1;color:inherit!important}.text-opacity-25{--bs-text-opacity: .25}.text-opacity-50{--bs-text-opacity: .5}.text-opacity-75{--bs-text-opacity: .75}.text-opacity-100{--bs-text-opacity: 1}.bg-primary{--bs-bg-opacity: 1;background-color:rgba(var(--bs-primary-rgb),var(--bs-bg-opacity))!important}.bg-secondary{--bs-bg-opacity: 1;background-color:rgba(var(--bs-secondary-rgb),var(--bs-bg-opacity))!important}.bg-success{--bs-bg-opacity: 1;background-color:rgba(var(--bs-success-rgb),var(--bs-bg-opacity))!important}.bg-info{--bs-bg-opacity: 1;background-color:rgba(var(--bs-info-rgb),var(--bs-bg-opacity))!important}.bg-warning{--bs-bg-opacity: 1;background-color:rgba(var(--bs-warning-rgb),var(--bs-bg-opacity))!important}.bg-danger{--bs-bg-opacity: 1;background-color:rgba(var(--bs-danger-rgb),var(--bs-bg-opacity))!important}.bg-light{--bs-bg-opacity: 1;background-color:rgba(var(--bs-light-rgb),var(--bs-bg-opacity))!important}.bg-dark{--bs-bg-opacity: 1;background-color:rgba(var(--bs-dark-rgb),var(--bs-bg-opacity))!important}.bg-black{--bs-bg-opacity: 1;background-color:rgba(var(--bs-black-rgb),var(--bs-bg-opacity))!important}.bg-white{--bs-bg-opacity: 1;background-color:rgba(var(--bs-white-rgb),var(--bs-bg-opacity))!important}.bg-body{--bs-bg-opacity: 1;background-color:rgba(var(--bs-body-bg-rgb),var(--bs-bg-opacity))!important}.bg-transparent{--bs-bg-opacity: 1;background-color:transparent!important}.bg-opacity-10{--bs-bg-opacity: .1}.bg-opacity-25{--bs-bg-opacity: .25}.bg-opacity-50{--bs-bg-opacity: .5}.bg-opacity-75{--bs-bg-opacity: .75}.bg-opacity-100{--bs-bg-opacity: 1}.bg-gradient{background-image:var(--bs-gradient)!important}.user-select-all{user-select:all!important}.user-select-auto{user-select:auto!important}.user-select-none{user-select:none!important}.pe-none{pointer-events:none!important}.pe-auto{pointer-events:auto!important}.rounded{border-radius:var(--bs-border-radius)!important}.rounded-0{border-radius:0!important}.rounded-1{border-radius:var(--bs-border-radius-sm)!important}.rounded-2{border-radius:var(--bs-border-radius)!important}.rounded-3{border-radius:var(--bs-border-radius-lg)!important}.rounded-4{border-radius:var(--bs-border-radius-xl)!important}.rounded-5{border-radius:var(--bs-border-radius-2xl)!important}.rounded-circle{border-radius:50%!important}.rounded-pill{border-radius:var(--bs-border-radius-pill)!important}.rounded-top{border-top-left-radius:var(--bs-border-radius)!important;border-top-right-radius:var(--bs-border-radius)!important}.rounded-end{border-top-right-radius:var(--bs-border-radius)!important;border-bottom-right-radius:var(--bs-border-radius)!important}.rounded-bottom{border-bottom-right-radius:var(--bs-border-radius)!important;border-bottom-left-radius:var(--bs-border-radius)!important}.rounded-start{border-bottom-left-radius:var(--bs-border-radius)!important;border-top-left-radius:var(--bs-border-radius)!important}.visible{visibility:visible!important}.invisible{visibility:hidden!important}@media (min-width: 576px){.float-sm-start{float:left!important}.float-sm-end{float:right!important}.float-sm-none{float:none!important}.d-sm-inline{display:inline!important}.d-sm-inline-block{display:inline-block!important}.d-sm-block{display:block!important}.d-sm-grid{display:grid!important}.d-sm-table{display:table!important}.d-sm-table-row{display:table-row!important}.d-sm-table-cell{display:table-cell!important}.d-sm-flex{display:flex!important}.d-sm-inline-flex{display:inline-flex!important}.d-sm-none{display:none!important}.flex-sm-fill{flex:1 1 auto!important}.flex-sm-row{flex-direction:row!important}.flex-sm-column{flex-direction:column!important}.flex-sm-row-reverse{flex-direction:row-reverse!important}.flex-sm-column-reverse{flex-direction:column-reverse!important}.flex-sm-grow-0{flex-grow:0!important}.flex-sm-grow-1{flex-grow:1!important}.flex-sm-shrink-0{flex-shrink:0!important}.flex-sm-shrink-1{flex-shrink:1!important}.flex-sm-wrap{flex-wrap:wrap!important}.flex-sm-nowrap{flex-wrap:nowrap!important}.flex-sm-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-sm-start{justify-content:flex-start!important}.justify-content-sm-end{justify-content:flex-end!important}.justify-content-sm-center{justify-content:center!important}.justify-content-sm-between{justify-content:space-between!important}.justify-content-sm-around{justify-content:space-around!important}.justify-content-sm-evenly{justify-content:space-evenly!important}.align-items-sm-start{align-items:flex-start!important}.align-items-sm-end{align-items:flex-end!important}.align-items-sm-center{align-items:center!important}.align-items-sm-baseline{align-items:baseline!important}.align-items-sm-stretch{align-items:stretch!important}.align-content-sm-start{align-content:flex-start!important}.align-content-sm-end{align-content:flex-end!important}.align-content-sm-center{align-content:center!important}.align-content-sm-between{align-content:space-between!important}.align-content-sm-around{align-content:space-around!important}.align-content-sm-stretch{align-content:stretch!important}.align-self-sm-auto{align-self:auto!important}.align-self-sm-start{align-self:flex-start!important}.align-self-sm-end{align-self:flex-end!important}.align-self-sm-center{align-self:center!important}.align-self-sm-baseline{align-self:baseline!important}.align-self-sm-stretch{align-self:stretch!important}.order-sm-first{order:-1!important}.order-sm-0{order:0!important}.order-sm-1{order:1!important}.order-sm-2{order:2!important}.order-sm-3{order:3!important}.order-sm-4{order:4!important}.order-sm-5{order:5!important}.order-sm-last{order:6!important}.m-sm-0{margin:0!important}.m-sm-1{margin:.25rem!important}.m-sm-2{margin:.5rem!important}.m-sm-3{margin:1rem!important}.m-sm-4{margin:1.5rem!important}.m-sm-5{margin:3rem!important}.m-sm-auto{margin:auto!important}.mx-sm-0{margin-right:0!important;margin-left:0!important}.mx-sm-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-sm-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-sm-3{margin-right:1rem!important;margin-left:1rem!important}.mx-sm-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-sm-5{margin-right:3rem!important;margin-left:3rem!important}.mx-sm-auto{margin-right:auto!important;margin-left:auto!important}.my-sm-0{margin-top:0!important;margin-bottom:0!important}.my-sm-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-sm-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-sm-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-sm-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-sm-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-sm-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-sm-0{margin-top:0!important}.mt-sm-1{margin-top:.25rem!important}.mt-sm-2{margin-top:.5rem!important}.mt-sm-3{margin-top:1rem!important}.mt-sm-4{margin-top:1.5rem!important}.mt-sm-5{margin-top:3rem!important}.mt-sm-auto{margin-top:auto!important}.me-sm-0{margin-right:0!important}.me-sm-1{margin-right:.25rem!important}.me-sm-2{margin-right:.5rem!important}.me-sm-3{margin-right:1rem!important}.me-sm-4{margin-right:1.5rem!important}.me-sm-5{margin-right:3rem!important}.me-sm-auto{margin-right:auto!important}.mb-sm-0{margin-bottom:0!important}.mb-sm-1{margin-bottom:.25rem!important}.mb-sm-2{margin-bottom:.5rem!important}.mb-sm-3{margin-bottom:1rem!important}.mb-sm-4{margin-bottom:1.5rem!important}.mb-sm-5{margin-bottom:3rem!important}.mb-sm-auto{margin-bottom:auto!important}.ms-sm-0{margin-left:0!important}.ms-sm-1{margin-left:.25rem!important}.ms-sm-2{margin-left:.5rem!important}.ms-sm-3{margin-left:1rem!important}.ms-sm-4{margin-left:1.5rem!important}.ms-sm-5{margin-left:3rem!important}.ms-sm-auto{margin-left:auto!important}.p-sm-0{padding:0!important}.p-sm-1{padding:.25rem!important}.p-sm-2{padding:.5rem!important}.p-sm-3{padding:1rem!important}.p-sm-4{padding:1.5rem!important}.p-sm-5{padding:3rem!important}.px-sm-0{padding-right:0!important;padding-left:0!important}.px-sm-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-sm-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-sm-3{padding-right:1rem!important;padding-left:1rem!important}.px-sm-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-sm-5{padding-right:3rem!important;padding-left:3rem!important}.py-sm-0{padding-top:0!important;padding-bottom:0!important}.py-sm-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-sm-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-sm-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-sm-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-sm-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-sm-0{padding-top:0!important}.pt-sm-1{padding-top:.25rem!important}.pt-sm-2{padding-top:.5rem!important}.pt-sm-3{padding-top:1rem!important}.pt-sm-4{padding-top:1.5rem!important}.pt-sm-5{padding-top:3rem!important}.pe-sm-0{padding-right:0!important}.pe-sm-1{padding-right:.25rem!important}.pe-sm-2{padding-right:.5rem!important}.pe-sm-3{padding-right:1rem!important}.pe-sm-4{padding-right:1.5rem!important}.pe-sm-5{padding-right:3rem!important}.pb-sm-0{padding-bottom:0!important}.pb-sm-1{padding-bottom:.25rem!important}.pb-sm-2{padding-bottom:.5rem!important}.pb-sm-3{padding-bottom:1rem!important}.pb-sm-4{padding-bottom:1.5rem!important}.pb-sm-5{padding-bottom:3rem!important}.ps-sm-0{padding-left:0!important}.ps-sm-1{padding-left:.25rem!important}.ps-sm-2{padding-left:.5rem!important}.ps-sm-3{padding-left:1rem!important}.ps-sm-4{padding-left:1.5rem!important}.ps-sm-5{padding-left:3rem!important}.gap-sm-0{gap:0!important}.gap-sm-1{gap:.25rem!important}.gap-sm-2{gap:.5rem!important}.gap-sm-3{gap:1rem!important}.gap-sm-4{gap:1.5rem!important}.gap-sm-5{gap:3rem!important}.text-sm-start{text-align:left!important}.text-sm-end{text-align:right!important}.text-sm-center{text-align:center!important}}@media (min-width: 768px){.float-md-start{float:left!important}.float-md-end{float:right!important}.float-md-none{float:none!important}.d-md-inline{display:inline!important}.d-md-inline-block{display:inline-block!important}.d-md-block{display:block!important}.d-md-grid{display:grid!important}.d-md-table{display:table!important}.d-md-table-row{display:table-row!important}.d-md-table-cell{display:table-cell!important}.d-md-flex{display:flex!important}.d-md-inline-flex{display:inline-flex!important}.d-md-none{display:none!important}.flex-md-fill{flex:1 1 auto!important}.flex-md-row{flex-direction:row!important}.flex-md-column{flex-direction:column!important}.flex-md-row-reverse{flex-direction:row-reverse!important}.flex-md-column-reverse{flex-direction:column-reverse!important}.flex-md-grow-0{flex-grow:0!important}.flex-md-grow-1{flex-grow:1!important}.flex-md-shrink-0{flex-shrink:0!important}.flex-md-shrink-1{flex-shrink:1!important}.flex-md-wrap{flex-wrap:wrap!important}.flex-md-nowrap{flex-wrap:nowrap!important}.flex-md-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-md-start{justify-content:flex-start!important}.justify-content-md-end{justify-content:flex-end!important}.justify-content-md-center{justify-content:center!important}.justify-content-md-between{justify-content:space-between!important}.justify-content-md-around{justify-content:space-around!important}.justify-content-md-evenly{justify-content:space-evenly!important}.align-items-md-start{align-items:flex-start!important}.align-items-md-end{align-items:flex-end!important}.align-items-md-center{align-items:center!important}.align-items-md-baseline{align-items:baseline!important}.align-items-md-stretch{align-items:stretch!important}.align-content-md-start{align-content:flex-start!important}.align-content-md-end{align-content:flex-end!important}.align-content-md-center{align-content:center!important}.align-content-md-between{align-content:space-between!important}.align-content-md-around{align-content:space-around!important}.align-content-md-stretch{align-content:stretch!important}.align-self-md-auto{align-self:auto!important}.align-self-md-start{align-self:flex-start!important}.align-self-md-end{align-self:flex-end!important}.align-self-md-center{align-self:center!important}.align-self-md-baseline{align-self:baseline!important}.align-self-md-stretch{align-self:stretch!important}.order-md-first{order:-1!important}.order-md-0{order:0!important}.order-md-1{order:1!important}.order-md-2{order:2!important}.order-md-3{order:3!important}.order-md-4{order:4!important}.order-md-5{order:5!important}.order-md-last{order:6!important}.m-md-0{margin:0!important}.m-md-1{margin:.25rem!important}.m-md-2{margin:.5rem!important}.m-md-3{margin:1rem!important}.m-md-4{margin:1.5rem!important}.m-md-5{margin:3rem!important}.m-md-auto{margin:auto!important}.mx-md-0{margin-right:0!important;margin-left:0!important}.mx-md-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-md-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-md-3{margin-right:1rem!important;margin-left:1rem!important}.mx-md-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-md-5{margin-right:3rem!important;margin-left:3rem!important}.mx-md-auto{margin-right:auto!important;margin-left:auto!important}.my-md-0{margin-top:0!important;margin-bottom:0!important}.my-md-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-md-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-md-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-md-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-md-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-md-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-md-0{margin-top:0!important}.mt-md-1{margin-top:.25rem!important}.mt-md-2{margin-top:.5rem!important}.mt-md-3{margin-top:1rem!important}.mt-md-4{margin-top:1.5rem!important}.mt-md-5{margin-top:3rem!important}.mt-md-auto{margin-top:auto!important}.me-md-0{margin-right:0!important}.me-md-1{margin-right:.25rem!important}.me-md-2{margin-right:.5rem!important}.me-md-3{margin-right:1rem!important}.me-md-4{margin-right:1.5rem!important}.me-md-5{margin-right:3rem!important}.me-md-auto{margin-right:auto!important}.mb-md-0{margin-bottom:0!important}.mb-md-1{margin-bottom:.25rem!important}.mb-md-2{margin-bottom:.5rem!important}.mb-md-3{margin-bottom:1rem!important}.mb-md-4{margin-bottom:1.5rem!important}.mb-md-5{margin-bottom:3rem!important}.mb-md-auto{margin-bottom:auto!important}.ms-md-0{margin-left:0!important}.ms-md-1{margin-left:.25rem!important}.ms-md-2{margin-left:.5rem!important}.ms-md-3{margin-left:1rem!important}.ms-md-4{margin-left:1.5rem!important}.ms-md-5{margin-left:3rem!important}.ms-md-auto{margin-left:auto!important}.p-md-0{padding:0!important}.p-md-1{padding:.25rem!important}.p-md-2{padding:.5rem!important}.p-md-3{padding:1rem!important}.p-md-4{padding:1.5rem!important}.p-md-5{padding:3rem!important}.px-md-0{padding-right:0!important;padding-left:0!important}.px-md-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-md-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-md-3{padding-right:1rem!important;padding-left:1rem!important}.px-md-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-md-5{padding-right:3rem!important;padding-left:3rem!important}.py-md-0{padding-top:0!important;padding-bottom:0!important}.py-md-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-md-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-md-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-md-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-md-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-md-0{padding-top:0!important}.pt-md-1{padding-top:.25rem!important}.pt-md-2{padding-top:.5rem!important}.pt-md-3{padding-top:1rem!important}.pt-md-4{padding-top:1.5rem!important}.pt-md-5{padding-top:3rem!important}.pe-md-0{padding-right:0!important}.pe-md-1{padding-right:.25rem!important}.pe-md-2{padding-right:.5rem!important}.pe-md-3{padding-right:1rem!important}.pe-md-4{padding-right:1.5rem!important}.pe-md-5{padding-right:3rem!important}.pb-md-0{padding-bottom:0!important}.pb-md-1{padding-bottom:.25rem!important}.pb-md-2{padding-bottom:.5rem!important}.pb-md-3{padding-bottom:1rem!important}.pb-md-4{padding-bottom:1.5rem!important}.pb-md-5{padding-bottom:3rem!important}.ps-md-0{padding-left:0!important}.ps-md-1{padding-left:.25rem!important}.ps-md-2{padding-left:.5rem!important}.ps-md-3{padding-left:1rem!important}.ps-md-4{padding-left:1.5rem!important}.ps-md-5{padding-left:3rem!important}.gap-md-0{gap:0!important}.gap-md-1{gap:.25rem!important}.gap-md-2{gap:.5rem!important}.gap-md-3{gap:1rem!important}.gap-md-4{gap:1.5rem!important}.gap-md-5{gap:3rem!important}.text-md-start{text-align:left!important}.text-md-end{text-align:right!important}.text-md-center{text-align:center!important}}@media (min-width: 992px){.float-lg-start{float:left!important}.float-lg-end{float:right!important}.float-lg-none{float:none!important}.d-lg-inline{display:inline!important}.d-lg-inline-block{display:inline-block!important}.d-lg-block{display:block!important}.d-lg-grid{display:grid!important}.d-lg-table{display:table!important}.d-lg-table-row{display:table-row!important}.d-lg-table-cell{display:table-cell!important}.d-lg-flex{display:flex!important}.d-lg-inline-flex{display:inline-flex!important}.d-lg-none{display:none!important}.flex-lg-fill{flex:1 1 auto!important}.flex-lg-row{flex-direction:row!important}.flex-lg-column{flex-direction:column!important}.flex-lg-row-reverse{flex-direction:row-reverse!important}.flex-lg-column-reverse{flex-direction:column-reverse!important}.flex-lg-grow-0{flex-grow:0!important}.flex-lg-grow-1{flex-grow:1!important}.flex-lg-shrink-0{flex-shrink:0!important}.flex-lg-shrink-1{flex-shrink:1!important}.flex-lg-wrap{flex-wrap:wrap!important}.flex-lg-nowrap{flex-wrap:nowrap!important}.flex-lg-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-lg-start{justify-content:flex-start!important}.justify-content-lg-end{justify-content:flex-end!important}.justify-content-lg-center{justify-content:center!important}.justify-content-lg-between{justify-content:space-between!important}.justify-content-lg-around{justify-content:space-around!important}.justify-content-lg-evenly{justify-content:space-evenly!important}.align-items-lg-start{align-items:flex-start!important}.align-items-lg-end{align-items:flex-end!important}.align-items-lg-center{align-items:center!important}.align-items-lg-baseline{align-items:baseline!important}.align-items-lg-stretch{align-items:stretch!important}.align-content-lg-start{align-content:flex-start!important}.align-content-lg-end{align-content:flex-end!important}.align-content-lg-center{align-content:center!important}.align-content-lg-between{align-content:space-between!important}.align-content-lg-around{align-content:space-around!important}.align-content-lg-stretch{align-content:stretch!important}.align-self-lg-auto{align-self:auto!important}.align-self-lg-start{align-self:flex-start!important}.align-self-lg-end{align-self:flex-end!important}.align-self-lg-center{align-self:center!important}.align-self-lg-baseline{align-self:baseline!important}.align-self-lg-stretch{align-self:stretch!important}.order-lg-first{order:-1!important}.order-lg-0{order:0!important}.order-lg-1{order:1!important}.order-lg-2{order:2!important}.order-lg-3{order:3!important}.order-lg-4{order:4!important}.order-lg-5{order:5!important}.order-lg-last{order:6!important}.m-lg-0{margin:0!important}.m-lg-1{margin:.25rem!important}.m-lg-2{margin:.5rem!important}.m-lg-3{margin:1rem!important}.m-lg-4{margin:1.5rem!important}.m-lg-5{margin:3rem!important}.m-lg-auto{margin:auto!important}.mx-lg-0{margin-right:0!important;margin-left:0!important}.mx-lg-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-lg-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-lg-3{margin-right:1rem!important;margin-left:1rem!important}.mx-lg-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-lg-5{margin-right:3rem!important;margin-left:3rem!important}.mx-lg-auto{margin-right:auto!important;margin-left:auto!important}.my-lg-0{margin-top:0!important;margin-bottom:0!important}.my-lg-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-lg-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-lg-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-lg-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-lg-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-lg-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-lg-0{margin-top:0!important}.mt-lg-1{margin-top:.25rem!important}.mt-lg-2{margin-top:.5rem!important}.mt-lg-3{margin-top:1rem!important}.mt-lg-4{margin-top:1.5rem!important}.mt-lg-5{margin-top:3rem!important}.mt-lg-auto{margin-top:auto!important}.me-lg-0{margin-right:0!important}.me-lg-1{margin-right:.25rem!important}.me-lg-2{margin-right:.5rem!important}.me-lg-3{margin-right:1rem!important}.me-lg-4{margin-right:1.5rem!important}.me-lg-5{margin-right:3rem!important}.me-lg-auto{margin-right:auto!important}.mb-lg-0{margin-bottom:0!important}.mb-lg-1{margin-bottom:.25rem!important}.mb-lg-2{margin-bottom:.5rem!important}.mb-lg-3{margin-bottom:1rem!important}.mb-lg-4{margin-bottom:1.5rem!important}.mb-lg-5{margin-bottom:3rem!important}.mb-lg-auto{margin-bottom:auto!important}.ms-lg-0{margin-left:0!important}.ms-lg-1{margin-left:.25rem!important}.ms-lg-2{margin-left:.5rem!important}.ms-lg-3{margin-left:1rem!important}.ms-lg-4{margin-left:1.5rem!important}.ms-lg-5{margin-left:3rem!important}.ms-lg-auto{margin-left:auto!important}.p-lg-0{padding:0!important}.p-lg-1{padding:.25rem!important}.p-lg-2{padding:.5rem!important}.p-lg-3{padding:1rem!important}.p-lg-4{padding:1.5rem!important}.p-lg-5{padding:3rem!important}.px-lg-0{padding-right:0!important;padding-left:0!important}.px-lg-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-lg-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-lg-3{padding-right:1rem!important;padding-left:1rem!important}.px-lg-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-lg-5{padding-right:3rem!important;padding-left:3rem!important}.py-lg-0{padding-top:0!important;padding-bottom:0!important}.py-lg-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-lg-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-lg-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-lg-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-lg-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-lg-0{padding-top:0!important}.pt-lg-1{padding-top:.25rem!important}.pt-lg-2{padding-top:.5rem!important}.pt-lg-3{padding-top:1rem!important}.pt-lg-4{padding-top:1.5rem!important}.pt-lg-5{padding-top:3rem!important}.pe-lg-0{padding-right:0!important}.pe-lg-1{padding-right:.25rem!important}.pe-lg-2{padding-right:.5rem!important}.pe-lg-3{padding-right:1rem!important}.pe-lg-4{padding-right:1.5rem!important}.pe-lg-5{padding-right:3rem!important}.pb-lg-0{padding-bottom:0!important}.pb-lg-1{padding-bottom:.25rem!important}.pb-lg-2{padding-bottom:.5rem!important}.pb-lg-3{padding-bottom:1rem!important}.pb-lg-4{padding-bottom:1.5rem!important}.pb-lg-5{padding-bottom:3rem!important}.ps-lg-0{padding-left:0!important}.ps-lg-1{padding-left:.25rem!important}.ps-lg-2{padding-left:.5rem!important}.ps-lg-3{padding-left:1rem!important}.ps-lg-4{padding-left:1.5rem!important}.ps-lg-5{padding-left:3rem!important}.gap-lg-0{gap:0!important}.gap-lg-1{gap:.25rem!important}.gap-lg-2{gap:.5rem!important}.gap-lg-3{gap:1rem!important}.gap-lg-4{gap:1.5rem!important}.gap-lg-5{gap:3rem!important}.text-lg-start{text-align:left!important}.text-lg-end{text-align:right!important}.text-lg-center{text-align:center!important}}@media (min-width: 1200px){.float-xl-start{float:left!important}.float-xl-end{float:right!important}.float-xl-none{float:none!important}.d-xl-inline{display:inline!important}.d-xl-inline-block{display:inline-block!important}.d-xl-block{display:block!important}.d-xl-grid{display:grid!important}.d-xl-table{display:table!important}.d-xl-table-row{display:table-row!important}.d-xl-table-cell{display:table-cell!important}.d-xl-flex{display:flex!important}.d-xl-inline-flex{display:inline-flex!important}.d-xl-none{display:none!important}.flex-xl-fill{flex:1 1 auto!important}.flex-xl-row{flex-direction:row!important}.flex-xl-column{flex-direction:column!important}.flex-xl-row-reverse{flex-direction:row-reverse!important}.flex-xl-column-reverse{flex-direction:column-reverse!important}.flex-xl-grow-0{flex-grow:0!important}.flex-xl-grow-1{flex-grow:1!important}.flex-xl-shrink-0{flex-shrink:0!important}.flex-xl-shrink-1{flex-shrink:1!important}.flex-xl-wrap{flex-wrap:wrap!important}.flex-xl-nowrap{flex-wrap:nowrap!important}.flex-xl-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-xl-start{justify-content:flex-start!important}.justify-content-xl-end{justify-content:flex-end!important}.justify-content-xl-center{justify-content:center!important}.justify-content-xl-between{justify-content:space-between!important}.justify-content-xl-around{justify-content:space-around!important}.justify-content-xl-evenly{justify-content:space-evenly!important}.align-items-xl-start{align-items:flex-start!important}.align-items-xl-end{align-items:flex-end!important}.align-items-xl-center{align-items:center!important}.align-items-xl-baseline{align-items:baseline!important}.align-items-xl-stretch{align-items:stretch!important}.align-content-xl-start{align-content:flex-start!important}.align-content-xl-end{align-content:flex-end!important}.align-content-xl-center{align-content:center!important}.align-content-xl-between{align-content:space-between!important}.align-content-xl-around{align-content:space-around!important}.align-content-xl-stretch{align-content:stretch!important}.align-self-xl-auto{align-self:auto!important}.align-self-xl-start{align-self:flex-start!important}.align-self-xl-end{align-self:flex-end!important}.align-self-xl-center{align-self:center!important}.align-self-xl-baseline{align-self:baseline!important}.align-self-xl-stretch{align-self:stretch!important}.order-xl-first{order:-1!important}.order-xl-0{order:0!important}.order-xl-1{order:1!important}.order-xl-2{order:2!important}.order-xl-3{order:3!important}.order-xl-4{order:4!important}.order-xl-5{order:5!important}.order-xl-last{order:6!important}.m-xl-0{margin:0!important}.m-xl-1{margin:.25rem!important}.m-xl-2{margin:.5rem!important}.m-xl-3{margin:1rem!important}.m-xl-4{margin:1.5rem!important}.m-xl-5{margin:3rem!important}.m-xl-auto{margin:auto!important}.mx-xl-0{margin-right:0!important;margin-left:0!important}.mx-xl-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-xl-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-xl-3{margin-right:1rem!important;margin-left:1rem!important}.mx-xl-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-xl-5{margin-right:3rem!important;margin-left:3rem!important}.mx-xl-auto{margin-right:auto!important;margin-left:auto!important}.my-xl-0{margin-top:0!important;margin-bottom:0!important}.my-xl-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-xl-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-xl-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-xl-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-xl-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-xl-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-xl-0{margin-top:0!important}.mt-xl-1{margin-top:.25rem!important}.mt-xl-2{margin-top:.5rem!important}.mt-xl-3{margin-top:1rem!important}.mt-xl-4{margin-top:1.5rem!important}.mt-xl-5{margin-top:3rem!important}.mt-xl-auto{margin-top:auto!important}.me-xl-0{margin-right:0!important}.me-xl-1{margin-right:.25rem!important}.me-xl-2{margin-right:.5rem!important}.me-xl-3{margin-right:1rem!important}.me-xl-4{margin-right:1.5rem!important}.me-xl-5{margin-right:3rem!important}.me-xl-auto{margin-right:auto!important}.mb-xl-0{margin-bottom:0!important}.mb-xl-1{margin-bottom:.25rem!important}.mb-xl-2{margin-bottom:.5rem!important}.mb-xl-3{margin-bottom:1rem!important}.mb-xl-4{margin-bottom:1.5rem!important}.mb-xl-5{margin-bottom:3rem!important}.mb-xl-auto{margin-bottom:auto!important}.ms-xl-0{margin-left:0!important}.ms-xl-1{margin-left:.25rem!important}.ms-xl-2{margin-left:.5rem!important}.ms-xl-3{margin-left:1rem!important}.ms-xl-4{margin-left:1.5rem!important}.ms-xl-5{margin-left:3rem!important}.ms-xl-auto{margin-left:auto!important}.p-xl-0{padding:0!important}.p-xl-1{padding:.25rem!important}.p-xl-2{padding:.5rem!important}.p-xl-3{padding:1rem!important}.p-xl-4{padding:1.5rem!important}.p-xl-5{padding:3rem!important}.px-xl-0{padding-right:0!important;padding-left:0!important}.px-xl-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-xl-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-xl-3{padding-right:1rem!important;padding-left:1rem!important}.px-xl-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-xl-5{padding-right:3rem!important;padding-left:3rem!important}.py-xl-0{padding-top:0!important;padding-bottom:0!important}.py-xl-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-xl-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-xl-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-xl-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-xl-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-xl-0{padding-top:0!important}.pt-xl-1{padding-top:.25rem!important}.pt-xl-2{padding-top:.5rem!important}.pt-xl-3{padding-top:1rem!important}.pt-xl-4{padding-top:1.5rem!important}.pt-xl-5{padding-top:3rem!important}.pe-xl-0{padding-right:0!important}.pe-xl-1{padding-right:.25rem!important}.pe-xl-2{padding-right:.5rem!important}.pe-xl-3{padding-right:1rem!important}.pe-xl-4{padding-right:1.5rem!important}.pe-xl-5{padding-right:3rem!important}.pb-xl-0{padding-bottom:0!important}.pb-xl-1{padding-bottom:.25rem!important}.pb-xl-2{padding-bottom:.5rem!important}.pb-xl-3{padding-bottom:1rem!important}.pb-xl-4{padding-bottom:1.5rem!important}.pb-xl-5{padding-bottom:3rem!important}.ps-xl-0{padding-left:0!important}.ps-xl-1{padding-left:.25rem!important}.ps-xl-2{padding-left:.5rem!important}.ps-xl-3{padding-left:1rem!important}.ps-xl-4{padding-left:1.5rem!important}.ps-xl-5{padding-left:3rem!important}.gap-xl-0{gap:0!important}.gap-xl-1{gap:.25rem!important}.gap-xl-2{gap:.5rem!important}.gap-xl-3{gap:1rem!important}.gap-xl-4{gap:1.5rem!important}.gap-xl-5{gap:3rem!important}.text-xl-start{text-align:left!important}.text-xl-end{text-align:right!important}.text-xl-center{text-align:center!important}}@media (min-width: 1400px){.float-xxl-start{float:left!important}.float-xxl-end{float:right!important}.float-xxl-none{float:none!important}.d-xxl-inline{display:inline!important}.d-xxl-inline-block{display:inline-block!important}.d-xxl-block{display:block!important}.d-xxl-grid{display:grid!important}.d-xxl-table{display:table!important}.d-xxl-table-row{display:table-row!important}.d-xxl-table-cell{display:table-cell!important}.d-xxl-flex{display:flex!important}.d-xxl-inline-flex{display:inline-flex!important}.d-xxl-none{display:none!important}.flex-xxl-fill{flex:1 1 auto!important}.flex-xxl-row{flex-direction:row!important}.flex-xxl-column{flex-direction:column!important}.flex-xxl-row-reverse{flex-direction:row-reverse!important}.flex-xxl-column-reverse{flex-direction:column-reverse!important}.flex-xxl-grow-0{flex-grow:0!important}.flex-xxl-grow-1{flex-grow:1!important}.flex-xxl-shrink-0{flex-shrink:0!important}.flex-xxl-shrink-1{flex-shrink:1!important}.flex-xxl-wrap{flex-wrap:wrap!important}.flex-xxl-nowrap{flex-wrap:nowrap!important}.flex-xxl-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-xxl-start{justify-content:flex-start!important}.justify-content-xxl-end{justify-content:flex-end!important}.justify-content-xxl-center{justify-content:center!important}.justify-content-xxl-between{justify-content:space-between!important}.justify-content-xxl-around{justify-content:space-around!important}.justify-content-xxl-evenly{justify-content:space-evenly!important}.align-items-xxl-start{align-items:flex-start!important}.align-items-xxl-end{align-items:flex-end!important}.align-items-xxl-center{align-items:center!important}.align-items-xxl-baseline{align-items:baseline!important}.align-items-xxl-stretch{align-items:stretch!important}.align-content-xxl-start{align-content:flex-start!important}.align-content-xxl-end{align-content:flex-end!important}.align-content-xxl-center{align-content:center!important}.align-content-xxl-between{align-content:space-between!important}.align-content-xxl-around{align-content:space-around!important}.align-content-xxl-stretch{align-content:stretch!important}.align-self-xxl-auto{align-self:auto!important}.align-self-xxl-start{align-self:flex-start!important}.align-self-xxl-end{align-self:flex-end!important}.align-self-xxl-center{align-self:center!important}.align-self-xxl-baseline{align-self:baseline!important}.align-self-xxl-stretch{align-self:stretch!important}.order-xxl-first{order:-1!important}.order-xxl-0{order:0!important}.order-xxl-1{order:1!important}.order-xxl-2{order:2!important}.order-xxl-3{order:3!important}.order-xxl-4{order:4!important}.order-xxl-5{order:5!important}.order-xxl-last{order:6!important}.m-xxl-0{margin:0!important}.m-xxl-1{margin:.25rem!important}.m-xxl-2{margin:.5rem!important}.m-xxl-3{margin:1rem!important}.m-xxl-4{margin:1.5rem!important}.m-xxl-5{margin:3rem!important}.m-xxl-auto{margin:auto!important}.mx-xxl-0{margin-right:0!important;margin-left:0!important}.mx-xxl-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-xxl-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-xxl-3{margin-right:1rem!important;margin-left:1rem!important}.mx-xxl-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-xxl-5{margin-right:3rem!important;margin-left:3rem!important}.mx-xxl-auto{margin-right:auto!important;margin-left:auto!important}.my-xxl-0{margin-top:0!important;margin-bottom:0!important}.my-xxl-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-xxl-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-xxl-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-xxl-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-xxl-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-xxl-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-xxl-0{margin-top:0!important}.mt-xxl-1{margin-top:.25rem!important}.mt-xxl-2{margin-top:.5rem!important}.mt-xxl-3{margin-top:1rem!important}.mt-xxl-4{margin-top:1.5rem!important}.mt-xxl-5{margin-top:3rem!important}.mt-xxl-auto{margin-top:auto!important}.me-xxl-0{margin-right:0!important}.me-xxl-1{margin-right:.25rem!important}.me-xxl-2{margin-right:.5rem!important}.me-xxl-3{margin-right:1rem!important}.me-xxl-4{margin-right:1.5rem!important}.me-xxl-5{margin-right:3rem!important}.me-xxl-auto{margin-right:auto!important}.mb-xxl-0{margin-bottom:0!important}.mb-xxl-1{margin-bottom:.25rem!important}.mb-xxl-2{margin-bottom:.5rem!important}.mb-xxl-3{margin-bottom:1rem!important}.mb-xxl-4{margin-bottom:1.5rem!important}.mb-xxl-5{margin-bottom:3rem!important}.mb-xxl-auto{margin-bottom:auto!important}.ms-xxl-0{margin-left:0!important}.ms-xxl-1{margin-left:.25rem!important}.ms-xxl-2{margin-left:.5rem!important}.ms-xxl-3{margin-left:1rem!important}.ms-xxl-4{margin-left:1.5rem!important}.ms-xxl-5{margin-left:3rem!important}.ms-xxl-auto{margin-left:auto!important}.p-xxl-0{padding:0!important}.p-xxl-1{padding:.25rem!important}.p-xxl-2{padding:.5rem!important}.p-xxl-3{padding:1rem!important}.p-xxl-4{padding:1.5rem!important}.p-xxl-5{padding:3rem!important}.px-xxl-0{padding-right:0!important;padding-left:0!important}.px-xxl-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-xxl-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-xxl-3{padding-right:1rem!important;padding-left:1rem!important}.px-xxl-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-xxl-5{padding-right:3rem!important;padding-left:3rem!important}.py-xxl-0{padding-top:0!important;padding-bottom:0!important}.py-xxl-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-xxl-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-xxl-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-xxl-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-xxl-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-xxl-0{padding-top:0!important}.pt-xxl-1{padding-top:.25rem!important}.pt-xxl-2{padding-top:.5rem!important}.pt-xxl-3{padding-top:1rem!important}.pt-xxl-4{padding-top:1.5rem!important}.pt-xxl-5{padding-top:3rem!important}.pe-xxl-0{padding-right:0!important}.pe-xxl-1{padding-right:.25rem!important}.pe-xxl-2{padding-right:.5rem!important}.pe-xxl-3{padding-right:1rem!important}.pe-xxl-4{padding-right:1.5rem!important}.pe-xxl-5{padding-right:3rem!important}.pb-xxl-0{padding-bottom:0!important}.pb-xxl-1{padding-bottom:.25rem!important}.pb-xxl-2{padding-bottom:.5rem!important}.pb-xxl-3{padding-bottom:1rem!important}.pb-xxl-4{padding-bottom:1.5rem!important}.pb-xxl-5{padding-bottom:3rem!important}.ps-xxl-0{padding-left:0!important}.ps-xxl-1{padding-left:.25rem!important}.ps-xxl-2{padding-left:.5rem!important}.ps-xxl-3{padding-left:1rem!important}.ps-xxl-4{padding-left:1.5rem!important}.ps-xxl-5{padding-left:3rem!important}.gap-xxl-0{gap:0!important}.gap-xxl-1{gap:.25rem!important}.gap-xxl-2{gap:.5rem!important}.gap-xxl-3{gap:1rem!important}.gap-xxl-4{gap:1.5rem!important}.gap-xxl-5{gap:3rem!important}.text-xxl-start{text-align:left!important}.text-xxl-end{text-align:right!important}.text-xxl-center{text-align:center!important}}@media (min-width: 1200px){.fs-1{font-size:2.5rem!important}.fs-2{font-size:2rem!important}.fs-3{font-size:1.75rem!important}.fs-4{font-size:1.5rem!important}}@media print{.d-print-inline{display:inline!important}.d-print-inline-block{display:inline-block!important}.d-print-block{display:block!important}.d-print-grid{display:grid!important}.d-print-table{display:table!important}.d-print-table-row{display:table-row!important}.d-print-table-cell{display:table-cell!important}.d-print-flex{display:flex!important}.d-print-inline-flex{display:inline-flex!important}.d-print-none{display:none!important}}.react-tags{position:relative;padding:5px 0 0 6px;border-radius:.5rem;background-color:var(--primary-color);border:1px solid var(--input-border-color);transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out;font-size:1em;line-height:1.2;cursor:text}.input-group>.react-tags{flex:1 1 auto;width:1%;min-width:0}.card .react-tags{background-color:var(--input-color)}.react-tags.is-focused{box-shadow:0 0 0 .2rem #4696e540}.react-tags__tag{font-size:100%}.react-tags__selected{display:inline;vertical-align:2px}.react-tags__selected-tag{display:inline-block;box-sizing:border-box;margin:0 6px 6px 0;padding:6px 8px;border:1px solid var(--input-border-color);border-radius:.25rem;background:#f1f1f1;font-size:inherit;line-height:inherit}.react-tags__selected-tag:after{content:"✕";color:#aaa;margin-left:8px}.react-tags__selected-tag:hover,.react-tags__selected-tag:focus{border-color:var(--input-border-color)}.react-tags__search{display:inline-block;padding:6px 2px;margin-bottom:5px;max-width:100%}@media screen and (min-width: 576px){.react-tags__search{position:relative}}.react-tags__search-input{font-size:1.25rem;line-height:inherit;color:var(--input-text-color);background-color:inherit;max-width:100%;margin:0 0 0 7px;padding:0;border:0;outline:none}.react-tags__search-input::placeholder{color:#6c757d}.react-tags__search-input::-ms-clear{display:none}.react-tags__suggestions{position:absolute;top:100%;left:0;width:100%;z-index:10}@media screen and (min-width: 576px){.react-tags__suggestions{width:240px}}.react-tags__suggestions ul{margin:4px -1px;padding:0;list-style:none;background:var(--primary-color);border:1px solid var(--border-color);border-radius:.25rem;box-shadow:0 2px 6px #0003}.react-tags__suggestions li{padding:8px 10px}.react-tags__suggestions li:not(:last-child){border-bottom:1px solid var(--border-color)}.react-tags__suggestions li mark,.react-tags__suggestions li .mark{text-decoration:underline;background:none;font-weight:600}.react-tags__suggestions li:hover{cursor:pointer;background-color:var(--active-color)}.react-tags__suggestions li.is-active{background-color:var(--active-color)}.react-tags__suggestions li.is-disabled{opacity:.5;cursor:auto}html:not([data-theme=dark]){--color-scheme: initial;--primary-color: #ffffff;--primary-color-alfa: rgba(255, 255, 255, .5);--secondary-color: #f5f6fe;--text-color: #232323;--border-color: rgba(0, 0, 0, .125);--active-color: #eeeeee;--brand-color: #4696e5;--input-color: #ffffff;--input-disabled-color: #f5f6fe;--input-border-color: rgba(0, 0, 0, .19);--input-text-color: #495057;--table-border-color: #dee2e6;--table-highlight-color: rgba(0, 0, 0, .075);--btn-close-filter: initial}html[data-theme=dark]{--color-scheme: dark;--primary-color: #161b22;--primary-color-alfa: rgba(22, 27, 34, .8);--secondary-color: #0f131a;--text-color: rgb(201, 209, 217);--border-color: rgba(255, 255, 255, .15);--active-color: #0f131a;--brand-color: #0b2d4e;--input-color: #12161c;--input-disabled-color: #1a2028;--input-border-color: rgba(255, 255, 255, .15);--input-text-color: rgb(201, 209, 217);--table-border-color: #393d43;--table-highlight-color: rgba(255, 255, 255, .15);--btn-close-filter: invert(1)}@media (max-width: 991px){.responsive-table__header{display:none}}@media (max-width: 991px){.responsive-table.table>:not(:first-child){border:none}}@media (max-width: 991px){.responsive-table__row{display:block;border-bottom:1px solid var(--border-color);border-top:2px solid var(--border-color);position:relative}.responsive-table__row:not(:last-child){margin-bottom:10px}}.responsive-table__cell.responsive-table__cell{vertical-align:middle!important}@media (max-width: 991px){.responsive-table__cell.responsive-table__cell{display:block;width:100%;position:relative;padding:.5rem;font-size:.9rem}.responsive-table__cell.responsive-table__cell[data-th]:before{content:attr(data-th) ": ";font-weight:700}.responsive-table__cell.responsive-table__cell:last-child{position:absolute;top:3.5px;right:.5rem;width:auto;padding:0;border:none}}@media (max-width: 991px){.responsive-table__cell.responsive-table__cell .btn-sm,.responsive-table__cell.responsive-table__cell .btn-group-sm>.btn{padding:.1rem .4rem;margin-top:.16rem}}.sticky-card-paginator{position:sticky;bottom:0;background-color:var(--primary-color-alfa);padding:.75rem 0;border-top:1px solid var(--border-color)}*{outline:none!important}:root{scroll-behavior:auto;color-scheme:var(--color-scheme)}html,body,#root{height:100%;background:var(--secondary-color);color:var(--text-color)}a,.btn-link{text-decoration:none}a:not(.nav-link):not(.navbar-brand):not(.page-link):not(.highlight-card):not(.btn):not(.dropdown-item):hover,.btn-link:hover{text-decoration:underline}.bg-main{background-color:#4696e5!important}.bg-warning{color:#232323}.card-body,.card-header,.list-group-item{background-color:transparent}.card-footer{background-color:var(--primary-color-alfa)}.card{box-shadow:0 .125rem .25rem #00000013;background-color:var(--primary-color);border-color:var(--border-color)}.list-group,.modal-content,.page-link,.page-item.disabled .page-link,.dropdown-menu{background-color:var(--primary-color)}.modal-header,.modal-footer,.card-header,.card-footer,.table thead th,.table th,.table td,.page-link,.page-link:hover,.page-item.disabled .page-link,.dropdown-divider,.dropdown-menu,.list-group-item,.modal-content,hr{border-color:var(--border-color)}.table-bordered,.table-bordered thead th,.table-bordered thead td{border-color:var(--table-border-color)}.page-link:hover,.page-link:focus{background-color:var(--secondary-color)}.page-item.active .page-link{background-color:var(--brand-color);border-color:var(--brand-color)}.pagination .page-link{cursor:pointer}@media (min-width: 1200px){.container-xl{max-width:1320px}}@media (max-width: 767px){.container-xl{padding-right:0;padding-left:0}}.btn-block{display:block;width:100%}.btn-primary,.btn-primary:hover,.btn-primary:active,.btn-primary.active,.btn-outline-primary:hover,.btn-outline-primary:active,.btn-outline-primary.active{color:#fff}.dropdown-item,.dropdown-item-text{color:var(--text-color)}.dropdown-item:not(:disabled){cursor:pointer}.dropdown-item:focus:not(:disabled),.dropdown-item:hover:not(:disabled),.dropdown-item.active:not(:disabled),.dropdown-item:active:not(:disabled){background-color:var(--active-color)!important;color:var(--text-color)!important}.dropdown-item--danger.dropdown-item--danger{color:#dc3545}.dropdown-item--danger.dropdown-item--danger:hover,.dropdown-item--danger.dropdown-item--danger:active,.dropdown-item--danger.dropdown-item--danger.active{color:#dc3545!important}.badge-main{color:#fff;background-color:var(--brand-color)}.close,.close:hover,.table,.table-hover>tbody>tr:hover>*,.table-hover>tbody>tr>*{color:var(--text-color)}.btn-close{filter:var(--btn-close-filter)}.table-hover tbody tr:hover{background-color:var(--secondary-color)}.form-control,.form-control:focus{background-color:var(--primary-color);border-color:var(--input-border-color);color:var(--input-text-color)}.form-control.disabled,.form-control:disabled{background-color:var(--input-disabled-color);cursor:not-allowed}.card .form-control:not(:disabled),.card .form-control:not(:disabled):hover{background-color:var(--input-color)}.table-active,.table-active>th,.table-active>td{background-color:var(--table-highlight-color)!important}@media (max-width: 767px){.navbar-brand{margin:0 auto!important}}.indivisible{white-space:nowrap}.pointer{cursor:pointer}.text-ellipsis{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.progress-bar{background-color:#4696e5}@media (max-width: 575px){.btn-xs-block{width:100%;display:block}}@media (max-width: 991px){.btn-md-block{width:100%;display:block}}.leaflet-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container,.leaflet-pane>svg,.leaflet-pane>canvas,.leaflet-zoom-box,.leaflet-image-layer,.leaflet-layer{position:absolute;left:0;top:0}.leaflet-container{overflow:hidden}.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow{-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:none}.leaflet-tile::selection{background:transparent}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{width:1600px;height:1600px;-webkit-transform-origin:0 0}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-overlay-pane svg{max-width:none!important;max-height:none!important}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer,.leaflet-container .leaflet-tile{max-width:none!important;max-height:none!important;width:auto;padding:0}.leaflet-container.leaflet-touch-zoom{-ms-touch-action:pan-x pan-y;touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{-ms-touch-action:pinch-zoom;touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{-ms-touch-action:none;touch-action:none}.leaflet-container{-webkit-tap-highlight-color:transparent}.leaflet-container a{-webkit-tap-highlight-color:rgba(51,181,229,.4)}.leaflet-tile{filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{width:0;height:0;-moz-box-sizing:border-box;box-sizing:border-box;z-index:800}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-overlay-pane{z-index:400}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-popup-pane{z-index:700}.leaflet-map-pane canvas{z-index:100}.leaflet-map-pane svg{z-index:200}.leaflet-vml-shape{width:1px;height:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{position:relative;z-index:800;pointer-events:visiblePainted;pointer-events:auto}.leaflet-top,.leaflet-bottom{position:absolute;z-index:1000;pointer-events:none}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{float:left;clear:both}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-fade-anim .leaflet-popup{opacity:0;-webkit-transition:opacity .2s linear;-moz-transition:opacity .2s linear;transition:opacity .2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.leaflet-zoom-animated{-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0}svg.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{-webkit-transition:-webkit-transform .25s cubic-bezier(0,0,.25,1);-moz-transition:-moz-transform .25s cubic-bezier(0,0,.25,1);transition:transform .25s cubic-bezier(0,0,.25,1)}.leaflet-zoom-anim .leaflet-tile,.leaflet-pan-anim .leaflet-tile{-webkit-transition:none;-moz-transition:none;transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-popup-pane,.leaflet-control{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-image-layer,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-marker-icon.leaflet-interactive,.leaflet-image-layer.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive,svg.leaflet-image-layer.leaflet-interactive path{pointer-events:visiblePainted;pointer-events:auto}.leaflet-container{background:#ddd;outline-offset:1px}.leaflet-container a{color:#0078a8}.leaflet-zoom-box{border:2px dotted #38f;background:rgba(255,255,255,.5)}.leaflet-container{font-family:Helvetica Neue,Arial,Helvetica,sans-serif;font-size:12px;font-size:.75rem;line-height:1.5}.leaflet-bar{box-shadow:0 1px 5px #000000a6;border-radius:4px}.leaflet-bar a{background-color:#fff;border-bottom:1px solid #ccc;width:26px;height:26px;line-height:26px;display:block;text-align:center;text-decoration:none;color:#000}.leaflet-bar a,.leaflet-control-layers-toggle{background-position:50% 50%;background-repeat:no-repeat;display:block}.leaflet-bar a:hover,.leaflet-bar a:focus{background-color:#f4f4f4}.leaflet-bar a:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.leaflet-bar a:last-child{border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-bottom:none}.leaflet-bar a.leaflet-disabled{cursor:default;background-color:#f4f4f4;color:#bbb}.leaflet-touch .leaflet-bar a{width:30px;height:30px;line-height:30px}.leaflet-touch .leaflet-bar a:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.leaflet-touch .leaflet-bar a:last-child{border-bottom-left-radius:2px;border-bottom-right-radius:2px}.leaflet-control-zoom-in,.leaflet-control-zoom-out{font:700 18px Lucida Console,Monaco,monospace;text-indent:1px}.leaflet-touch .leaflet-control-zoom-in,.leaflet-touch .leaflet-control-zoom-out{font-size:22px}.leaflet-control-layers{box-shadow:0 1px 5px #0006;background:#fff;border-radius:5px}.leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAQAAAADQ4RFAAACf0lEQVR4AY1UM3gkARTePdvdoTxXKc+qTl3aU5U6b2Kbkz3Gtq3Zw6ziLGNPzrYx7946Tr6/ee/XeCQ4D3ykPtL5tHno4n0d/h3+xfuWHGLX81cn7r0iTNzjr7LrlxCqPtkbTQEHeqOrTy4Yyt3VCi/IOB0v7rVC7q45Q3Gr5K6jt+3Gl5nCoDD4MtO+j96Wu8atmhGqcNGHObuf8OM/x3AMx38+4Z2sPqzCxRFK2aF2e5Jol56XTLyggAMTL56XOMoS1W4pOyjUcGGQdZxU6qRh7B9Zp+PfpOFlqt0zyDZckPi1ttmIp03jX8gyJ8a/PG2yutpS/Vol7peZIbZcKBAEEheEIAgFbDkz5H6Zrkm2hVWGiXKiF4Ycw0RWKdtC16Q7qe3X4iOMxruonzegJzWaXFrU9utOSsLUmrc0YjeWYjCW4PDMADElpJSSQ0vQvA1Tm6/JlKnqFs1EGyZiFCqnRZTEJJJiKRYzVYzJck2Rm6P4iH+cmSY0YzimYa8l0EtTODFWhcMIMVqdsI2uiTvKmTisIDHJ3od5GILVhBCarCfVRmo4uTjkhrhzkiBV7SsaqS+TzrzM1qpGGUFt28pIySQHR6h7F6KSwGWm97ay+Z+ZqMcEjEWebE7wxCSQwpkhJqoZA5ivCdZDjJepuJ9IQjGGUmuXJdBFUygxVqVsxFsLMbDe8ZbDYVCGKxs+W080max1hFCarCfV+C1KATwcnvE9gRRuMP2prdbWGowm1KB1y+zwMMENkM755cJ2yPDtqhTI6ED1M/82yIDtC/4j4BijjeObflpO9I9MwXTCsSX8jWAFeHr05WoLTJ5G8IQVS/7vwR6ohirYM7f6HzYpogfS3R2OAAAAAElFTkSuQmCC);width:36px;height:36px}.leaflet-retina .leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAQAAABvcdNgAAAEsklEQVR4AWL4TydIhpZK1kpWOlg0w3ZXP6D2soBtG42jeI6ZmQTHzAxiTbSJsYLjO9HhP+WOmcuhciVnmHVQcJnp7DFvScowZorad/+V/fVzMdMT2g9Cv9guXGv/7pYOrXh2U+RRR3dSd9JRx6bIFc/ekqHI29JC6pJ5ZEh1yWkhkbcFeSjxgx3L2m1cb1C7bceyxA+CNjT/Ifff+/kDk2u/w/33/IeCMOSaWZ4glosqT3DNnNZQ7Cs58/3Ce5HL78iZH/vKVIaYlqzfdLu8Vi7dnvUbEza5Idt36tquZFldl6N5Z/POLof0XLK61mZCmJSWjVF9tEjUluu74IUXvgttuVIHE7YxSkaYhJZam7yiM9Pv82JYfl9nptxZaxMJE4YSPty+vF0+Y2up9d3wwijfjZbabqm/3bZ9ecKHsiGmRflnn1MW4pjHf9oLufyn2z3y1D6n8g8TZhxyzipLNPnAUpsOiuWimg52psrTZYnOWYNDTMuWBWa0tJb4rgq1UvmutpaYEbZlwU3CLJm/ayYjHW5/h7xWLn9Hh1vepDkyf7dE7MtT5LR4e7yYpHrkhOUpEfssBLq2pPhAqoSWKUkk7EDqkmK6RrCEzqDjhNDWNE+XSMvkJRDWlZTmCW0l0PHQGRZY5t1L83kT0Y3l2SItk5JAWHl2dCOBm+fPu3fo5/3v61RMCO9Jx2EEYYhb0rmNQMX/vm7gqOEJLcXTGw3CAuRNeyaPWwjR8PRqKQ1PDA/dpv+on9Shox52WFnx0KY8onHayrJzm87i5h9xGw/tfkev0jGsQizqezUKjk12hBMKJ4kbCqGPVNXudyyrShovGw5CgxsRICxF6aRmSjlBnHRzg7Gx8fKqEubI2rahQYdR1YgDIRQO7JvQyD52hoIQx0mxa0ODtW2Iozn1le2iIRdzwWewedyZzewidueOGqlsn1MvcnQpuVwLGG3/IR1hIKxCjelIDZ8ldqWz25jWAsnldEnK0Zxro19TGVb2ffIZEsIO89EIEDvKMPrzmBOQcKQ+rroye6NgRRxqR4U8EAkz0CL6uSGOm6KQCdWjvjRiSP1BPalCRS5iQYiEIvxuBMJEWgzSoHADcVMuN7IuqqTeyUPq22qFimFtxDyBBJEwNyt6TM88blFHao/6tWWhuuOM4SAK4EI4QmFHA+SEyWlp4EQoJ13cYGzMu7yszEIBOm2rVmHUNqwAIQabISNMRstmdhNWcFLsSm+0tjJH1MdRxO5Nx0WDMhCtgD6OKgZeljJqJKc9po8juskR9XN0Y1lZ3mWjLR9JCO1jRDMd0fpYC2VnvjBSEFg7wBENc0R9HFlb0xvF1+TBEpF68d+DHR6IOWVv2BECtxo46hOFUBd/APU57WIoEwJhIi2CdpyZX0m93BZicktMj1AS9dClteUFAUNUIEygRZCtik5zSxI9MubTBH1GOiHsiLJ3OCoSZkILa9PxiN0EbvhsAo8tdAf9Seepd36lGWHmtNANTv5Jd0z4QYyeo/UEJqxKRpg5LZx6btLPsOaEmdMyxYdlc8LMaJnikDlhclqmPiQnTEpLUIZEwkRagjYkEibQErwhkTAKCLQEbUgkzJQWc/0PstHHcfEdQ+UAAAAASUVORK5CYII=);background-size:26px 26px}.leaflet-touch .leaflet-control-layers-toggle{width:44px;height:44px}.leaflet-control-layers .leaflet-control-layers-list,.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{padding:6px 10px 6px 6px;color:#333;background:#fff}.leaflet-control-layers-scrollbar{overflow-y:scroll;overflow-x:hidden;padding-right:5px}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label{display:block;font-size:13px;font-size:1.08333em}.leaflet-control-layers-separator{height:0;border-top:1px solid #ddd;margin:5px -10px 5px -6px}.leaflet-default-icon-path{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=)}.leaflet-container .leaflet-control-attribution{background:#fff;background:rgba(255,255,255,.8);margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{padding:0 5px;color:#333;line-height:1.4}.leaflet-control-attribution a{text-decoration:none}.leaflet-control-attribution a:hover,.leaflet-control-attribution a:focus{text-decoration:underline}.leaflet-attribution-flag{display:inline!important;vertical-align:baseline!important;width:1em;height:.6669em}.leaflet-left .leaflet-control-scale{margin-left:5px}.leaflet-bottom .leaflet-control-scale{margin-bottom:5px}.leaflet-control-scale-line{border:2px solid #777;border-top:none;line-height:1.1;padding:2px 5px 1px;white-space:nowrap;-moz-box-sizing:border-box;box-sizing:border-box;background:rgba(255,255,255,.8);text-shadow:1px 1px #fff}.leaflet-control-scale-line:not(:first-child){border-top:2px solid #777;border-bottom:none;margin-top:-2px}.leaflet-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #777}.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{box-shadow:none}.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{border:2px solid rgba(0,0,0,.2);background-clip:padding-box}.leaflet-popup{position:absolute;text-align:center;margin-bottom:20px}.leaflet-popup-content-wrapper{padding:1px;text-align:left;border-radius:12px}.leaflet-popup-content{margin:13px 24px 13px 20px;line-height:1.3;font-size:13px;font-size:1.08333em;min-height:1px}.leaflet-popup-content p{margin:1.3em 0}.leaflet-popup-tip-container{width:40px;height:20px;position:absolute;left:50%;margin-top:-1px;margin-left:-20px;overflow:hidden;pointer-events:none}.leaflet-popup-tip{width:17px;height:17px;padding:1px;margin:-10px auto 0;pointer-events:auto;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:white;color:#333;box-shadow:0 3px 14px #0006}.leaflet-container a.leaflet-popup-close-button{position:absolute;top:0;right:0;border:none;text-align:center;width:24px;height:24px;font:16px/24px Tahoma,Verdana,sans-serif;color:#757575;text-decoration:none;background:transparent}.leaflet-container a.leaflet-popup-close-button:hover,.leaflet-container a.leaflet-popup-close-button:focus{color:#585858}.leaflet-popup-scrolled{overflow:auto}.leaflet-oldie .leaflet-popup-content-wrapper{-ms-zoom:1}.leaflet-oldie .leaflet-popup-tip{width:24px;margin:0 auto;-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";filter:progid:DXImageTransform.Microsoft.Matrix(M11=.70710678,M12=.70710678,M21=-.70710678,M22=.70710678)}.leaflet-oldie .leaflet-control-zoom,.leaflet-oldie .leaflet-control-layers,.leaflet-oldie .leaflet-popup-content-wrapper,.leaflet-oldie .leaflet-popup-tip{border:1px solid #999}.leaflet-div-icon{background:#fff;border:1px solid #666}.leaflet-tooltip{position:absolute;padding:6px;background-color:#fff;border:1px solid #fff;border-radius:3px;color:#222;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;box-shadow:0 1px 3px #0006}.leaflet-tooltip.leaflet-interactive{cursor:pointer;pointer-events:auto}.leaflet-tooltip-top:before,.leaflet-tooltip-bottom:before,.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{position:absolute;pointer-events:none;border:6px solid transparent;background:transparent;content:""}.leaflet-tooltip-bottom{margin-top:6px}.leaflet-tooltip-top{margin-top:-6px}.leaflet-tooltip-bottom:before,.leaflet-tooltip-top:before{left:50%;margin-left:-6px}.leaflet-tooltip-top:before{bottom:0;margin-bottom:-12px;border-top-color:#fff}.leaflet-tooltip-bottom:before{top:0;margin-top:-12px;margin-left:-6px;border-bottom-color:#fff}.leaflet-tooltip-left{margin-left:-6px}.leaflet-tooltip-right{margin-left:6px}.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{top:50%;margin-top:-6px}.leaflet-tooltip-left:before{right:0;margin-right:-12px;border-left-color:#fff}.leaflet-tooltip-right:before{left:0;margin-left:-12px;border-right-color:#fff}@media print{.leaflet-control{-webkit-print-color-adjust:exact;print-color-adjust:exact}}.react-datepicker__year-read-view--down-arrow,.react-datepicker__month-read-view--down-arrow,.react-datepicker__month-year-read-view--down-arrow,.react-datepicker__navigation-icon:before{border-color:#ccc;border-style:solid;border-width:3px 3px 0 0;content:"";display:block;height:9px;position:absolute;top:6px;width:9px}.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle,.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle{margin-left:-4px;position:absolute;width:0}.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle:before,.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:before,.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle:after,.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:after{box-sizing:content-box;position:absolute;border:8px solid transparent;height:0;width:1px;content:"";z-index:-1;border-width:8px;left:-8px}.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle:before,.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:before{border-bottom-color:#aeaeae}.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle{top:0;margin-top:-8px}.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:before,.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:after{border-top:none;border-bottom-color:#f0f0f0}.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:after{top:0}.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:before{top:-1px;border-bottom-color:#aeaeae}.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle{bottom:0;margin-bottom:-8px}.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle:before,.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle:after{border-bottom:none;border-top-color:#fff}.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle:after{bottom:0}.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle:before{bottom:-1px;border-top-color:#aeaeae}.react-datepicker-wrapper{display:inline-block;padding:0;border:0;width:100%}.react-datepicker{font-family:Helvetica Neue,helvetica,arial,sans-serif;font-size:.8rem;background-color:#fff;color:#000;border:1px solid #aeaeae;border-radius:.3rem;display:inline-block;position:relative}.react-datepicker--time-only .react-datepicker__triangle{left:35px}.react-datepicker--time-only .react-datepicker__time-container{border-left:0}.react-datepicker--time-only .react-datepicker__time,.react-datepicker--time-only .react-datepicker__time-box{border-bottom-left-radius:.3rem;border-bottom-right-radius:.3rem}.react-datepicker__triangle{position:absolute;left:50px}.react-datepicker-popper{z-index:1}.react-datepicker-popper[data-placement^=bottom]{padding-top:10px}.react-datepicker-popper[data-placement=bottom-end] .react-datepicker__triangle,.react-datepicker-popper[data-placement=top-end] .react-datepicker__triangle{left:auto;right:50px}.react-datepicker-popper[data-placement^=top]{padding-bottom:10px}.react-datepicker-popper[data-placement^=right]{padding-left:8px}.react-datepicker-popper[data-placement^=right] .react-datepicker__triangle{left:auto;right:42px}.react-datepicker-popper[data-placement^=left]{padding-right:8px}.react-datepicker-popper[data-placement^=left] .react-datepicker__triangle{left:42px;right:auto}.react-datepicker__header{text-align:center;background-color:#f0f0f0;border-bottom:1px solid #aeaeae;border-top-left-radius:.3rem;padding:8px 0;position:relative}.react-datepicker__header--time{padding-bottom:8px;padding-left:5px;padding-right:5px}.react-datepicker__header--time:not(.react-datepicker__header--time--only){border-top-left-radius:0}.react-datepicker__header:not(.react-datepicker__header--has-time-select){border-top-right-radius:.3rem}.react-datepicker__year-dropdown-container--select,.react-datepicker__month-dropdown-container--select,.react-datepicker__month-year-dropdown-container--select,.react-datepicker__year-dropdown-container--scroll,.react-datepicker__month-dropdown-container--scroll,.react-datepicker__month-year-dropdown-container--scroll{display:inline-block;margin:0 2px}.react-datepicker__current-month,.react-datepicker-time__header,.react-datepicker-year-header{margin-top:0;color:#000;font-weight:700;font-size:.944rem}.react-datepicker-time__header{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.react-datepicker__navigation{align-items:center;background:none;display:flex;justify-content:center;text-align:center;cursor:pointer;position:absolute;top:2px;padding:0;border:none;z-index:1;height:32px;width:32px;text-indent:-999em;overflow:hidden}.react-datepicker__navigation--previous{left:2px}.react-datepicker__navigation--next{right:2px}.react-datepicker__navigation--next--with-time:not(.react-datepicker__navigation--next--with-today-button){right:85px}.react-datepicker__navigation--years{position:relative;top:0;display:block;margin-left:auto;margin-right:auto}.react-datepicker__navigation--years-previous{top:4px}.react-datepicker__navigation--years-upcoming{top:-4px}.react-datepicker__navigation:hover *:before{border-color:#a6a6a6}.react-datepicker__navigation-icon{position:relative;top:-1px;font-size:20px;width:0}.react-datepicker__navigation-icon--next{left:-2px}.react-datepicker__navigation-icon--next:before{transform:rotate(45deg);left:-7px}.react-datepicker__navigation-icon--previous{right:-2px}.react-datepicker__navigation-icon--previous:before{transform:rotate(225deg);right:-7px}.react-datepicker__month-container{float:left}.react-datepicker__year{margin:.4rem;text-align:center}.react-datepicker__year-wrapper{display:flex;flex-wrap:wrap;max-width:180px}.react-datepicker__year .react-datepicker__year-text{display:inline-block;width:4rem;margin:2px}.react-datepicker__month{margin:.4rem;text-align:center}.react-datepicker__month .react-datepicker__month-text,.react-datepicker__month .react-datepicker__quarter-text{display:inline-block;width:4rem;margin:2px}.react-datepicker__input-time-container{clear:both;width:100%;float:left;margin:5px 0 10px 15px;text-align:left}.react-datepicker__input-time-container .react-datepicker-time__caption,.react-datepicker__input-time-container .react-datepicker-time__input-container{display:inline-block}.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input{display:inline-block;margin-left:10px}.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input{width:auto}.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input[type=time]::-webkit-inner-spin-button,.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input[type=time]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input[type=time]{-moz-appearance:textfield}.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__delimiter{margin-left:5px;display:inline-block}.react-datepicker__time-container{float:right;border-left:1px solid #aeaeae;width:85px}.react-datepicker__time-container--with-today-button{display:inline;border:1px solid #aeaeae;border-radius:.3rem;position:absolute;right:-72px;top:0}.react-datepicker__time-container .react-datepicker__time{position:relative;background:white;border-bottom-right-radius:.3rem}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box{width:85px;overflow-x:hidden;margin:0 auto;text-align:center;border-bottom-right-radius:.3rem}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list{list-style:none;margin:0;height:calc(195px + .85rem);overflow-y:scroll;padding-right:0;padding-left:0;width:100%;box-sizing:content-box}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item{height:30px;padding:5px 10px;white-space:nowrap}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item:hover{cursor:pointer;background-color:#f0f0f0}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--selected{background-color:#216ba5;color:#fff;font-weight:700}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--selected:hover{background-color:#216ba5}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--disabled{color:#ccc}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--disabled:hover{cursor:default;background-color:transparent}.react-datepicker__week-number{color:#ccc;display:inline-block;width:1.7rem;line-height:1.7rem;text-align:center;margin:.166rem}.react-datepicker__week-number.react-datepicker__week-number--clickable{cursor:pointer}.react-datepicker__week-number.react-datepicker__week-number--clickable:hover{border-radius:.3rem;background-color:#f0f0f0}.react-datepicker__day-names,.react-datepicker__week{white-space:nowrap}.react-datepicker__day-names{margin-bottom:-8px}.react-datepicker__day-name,.react-datepicker__day,.react-datepicker__time-name{color:#000;display:inline-block;width:1.7rem;line-height:1.7rem;text-align:center;margin:.166rem}.react-datepicker__month--selected,.react-datepicker__month--in-selecting-range,.react-datepicker__month--in-range,.react-datepicker__quarter--selected,.react-datepicker__quarter--in-selecting-range,.react-datepicker__quarter--in-range{border-radius:.3rem;background-color:#216ba5;color:#fff}.react-datepicker__month--selected:hover,.react-datepicker__month--in-selecting-range:hover,.react-datepicker__month--in-range:hover,.react-datepicker__quarter--selected:hover,.react-datepicker__quarter--in-selecting-range:hover,.react-datepicker__quarter--in-range:hover{background-color:#1d5d90}.react-datepicker__month--disabled,.react-datepicker__quarter--disabled{color:#ccc;pointer-events:none}.react-datepicker__month--disabled:hover,.react-datepicker__quarter--disabled:hover{cursor:default;background-color:transparent}.react-datepicker__day,.react-datepicker__month-text,.react-datepicker__quarter-text,.react-datepicker__year-text{cursor:pointer}.react-datepicker__day:hover,.react-datepicker__month-text:hover,.react-datepicker__quarter-text:hover,.react-datepicker__year-text:hover{border-radius:.3rem;background-color:#f0f0f0}.react-datepicker__day--today,.react-datepicker__month-text--today,.react-datepicker__quarter-text--today,.react-datepicker__year-text--today{font-weight:700}.react-datepicker__day--highlighted,.react-datepicker__month-text--highlighted,.react-datepicker__quarter-text--highlighted,.react-datepicker__year-text--highlighted{border-radius:.3rem;background-color:#3dcc4a;color:#fff}.react-datepicker__day--highlighted:hover,.react-datepicker__month-text--highlighted:hover,.react-datepicker__quarter-text--highlighted:hover,.react-datepicker__year-text--highlighted:hover{background-color:#32be3f}.react-datepicker__day--highlighted-custom-1,.react-datepicker__month-text--highlighted-custom-1,.react-datepicker__quarter-text--highlighted-custom-1,.react-datepicker__year-text--highlighted-custom-1{color:#f0f}.react-datepicker__day--highlighted-custom-2,.react-datepicker__month-text--highlighted-custom-2,.react-datepicker__quarter-text--highlighted-custom-2,.react-datepicker__year-text--highlighted-custom-2{color:green}.react-datepicker__day--selected,.react-datepicker__day--in-selecting-range,.react-datepicker__day--in-range,.react-datepicker__month-text--selected,.react-datepicker__month-text--in-selecting-range,.react-datepicker__month-text--in-range,.react-datepicker__quarter-text--selected,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__quarter-text--in-range,.react-datepicker__year-text--selected,.react-datepicker__year-text--in-selecting-range,.react-datepicker__year-text--in-range{border-radius:.3rem;background-color:#216ba5;color:#fff}.react-datepicker__day--selected:hover,.react-datepicker__day--in-selecting-range:hover,.react-datepicker__day--in-range:hover,.react-datepicker__month-text--selected:hover,.react-datepicker__month-text--in-selecting-range:hover,.react-datepicker__month-text--in-range:hover,.react-datepicker__quarter-text--selected:hover,.react-datepicker__quarter-text--in-selecting-range:hover,.react-datepicker__quarter-text--in-range:hover,.react-datepicker__year-text--selected:hover,.react-datepicker__year-text--in-selecting-range:hover,.react-datepicker__year-text--in-range:hover{background-color:#1d5d90}.react-datepicker__day--keyboard-selected,.react-datepicker__month-text--keyboard-selected,.react-datepicker__quarter-text--keyboard-selected,.react-datepicker__year-text--keyboard-selected{border-radius:.3rem;background-color:#2579ba;color:#fff}.react-datepicker__day--keyboard-selected:hover,.react-datepicker__month-text--keyboard-selected:hover,.react-datepicker__quarter-text--keyboard-selected:hover,.react-datepicker__year-text--keyboard-selected:hover{background-color:#1d5d90}.react-datepicker__day--in-selecting-range:not(.react-datepicker__day--in-range,.react-datepicker__month-text--in-range,.react-datepicker__quarter-text--in-range,.react-datepicker__year-text--in-range),.react-datepicker__month-text--in-selecting-range:not(.react-datepicker__day--in-range,.react-datepicker__month-text--in-range,.react-datepicker__quarter-text--in-range,.react-datepicker__year-text--in-range),.react-datepicker__quarter-text--in-selecting-range:not(.react-datepicker__day--in-range,.react-datepicker__month-text--in-range,.react-datepicker__quarter-text--in-range,.react-datepicker__year-text--in-range),.react-datepicker__year-text--in-selecting-range:not(.react-datepicker__day--in-range,.react-datepicker__month-text--in-range,.react-datepicker__quarter-text--in-range,.react-datepicker__year-text--in-range){background-color:#216ba580}.react-datepicker__month--selecting-range .react-datepicker__day--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__month--selecting-range .react-datepicker__month-text--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__month--selecting-range .react-datepicker__quarter-text--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__month--selecting-range .react-datepicker__year-text--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range){background-color:#f0f0f0;color:#000}.react-datepicker__day--disabled,.react-datepicker__month-text--disabled,.react-datepicker__quarter-text--disabled,.react-datepicker__year-text--disabled{cursor:default;color:#ccc}.react-datepicker__day--disabled:hover,.react-datepicker__month-text--disabled:hover,.react-datepicker__quarter-text--disabled:hover,.react-datepicker__year-text--disabled:hover{background-color:transparent}.react-datepicker__month-text.react-datepicker__month--selected:hover,.react-datepicker__month-text.react-datepicker__month--in-range:hover,.react-datepicker__month-text.react-datepicker__quarter--selected:hover,.react-datepicker__month-text.react-datepicker__quarter--in-range:hover,.react-datepicker__quarter-text.react-datepicker__month--selected:hover,.react-datepicker__quarter-text.react-datepicker__month--in-range:hover,.react-datepicker__quarter-text.react-datepicker__quarter--selected:hover,.react-datepicker__quarter-text.react-datepicker__quarter--in-range:hover{background-color:#216ba5}.react-datepicker__month-text:hover,.react-datepicker__quarter-text:hover{background-color:#f0f0f0}.react-datepicker__input-container{position:relative;display:inline-block;width:100%}.react-datepicker__year-read-view,.react-datepicker__month-read-view,.react-datepicker__month-year-read-view{border:1px solid transparent;border-radius:.3rem;position:relative}.react-datepicker__year-read-view:hover,.react-datepicker__month-read-view:hover,.react-datepicker__month-year-read-view:hover{cursor:pointer}.react-datepicker__year-read-view:hover .react-datepicker__year-read-view--down-arrow,.react-datepicker__year-read-view:hover .react-datepicker__month-read-view--down-arrow,.react-datepicker__month-read-view:hover .react-datepicker__year-read-view--down-arrow,.react-datepicker__month-read-view:hover .react-datepicker__month-read-view--down-arrow,.react-datepicker__month-year-read-view:hover .react-datepicker__year-read-view--down-arrow,.react-datepicker__month-year-read-view:hover .react-datepicker__month-read-view--down-arrow{border-top-color:#b3b3b3}.react-datepicker__year-read-view--down-arrow,.react-datepicker__month-read-view--down-arrow,.react-datepicker__month-year-read-view--down-arrow{transform:rotate(135deg);right:-16px;top:0}.react-datepicker__year-dropdown,.react-datepicker__month-dropdown,.react-datepicker__month-year-dropdown{background-color:#f0f0f0;position:absolute;width:50%;left:25%;top:30px;z-index:1;text-align:center;border-radius:.3rem;border:1px solid #aeaeae}.react-datepicker__year-dropdown:hover,.react-datepicker__month-dropdown:hover,.react-datepicker__month-year-dropdown:hover{cursor:pointer}.react-datepicker__year-dropdown--scrollable,.react-datepicker__month-dropdown--scrollable,.react-datepicker__month-year-dropdown--scrollable{height:150px;overflow-y:scroll}.react-datepicker__year-option,.react-datepicker__month-option,.react-datepicker__month-year-option{line-height:20px;width:100%;display:block;margin-left:auto;margin-right:auto}.react-datepicker__year-option:first-of-type,.react-datepicker__month-option:first-of-type,.react-datepicker__month-year-option:first-of-type{border-top-left-radius:.3rem;border-top-right-radius:.3rem}.react-datepicker__year-option:last-of-type,.react-datepicker__month-option:last-of-type,.react-datepicker__month-year-option:last-of-type{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border-bottom-left-radius:.3rem;border-bottom-right-radius:.3rem}.react-datepicker__year-option:hover,.react-datepicker__month-option:hover,.react-datepicker__month-year-option:hover{background-color:#ccc}.react-datepicker__year-option:hover .react-datepicker__navigation--years-upcoming,.react-datepicker__month-option:hover .react-datepicker__navigation--years-upcoming,.react-datepicker__month-year-option:hover .react-datepicker__navigation--years-upcoming{border-bottom-color:#b3b3b3}.react-datepicker__year-option:hover .react-datepicker__navigation--years-previous,.react-datepicker__month-option:hover .react-datepicker__navigation--years-previous,.react-datepicker__month-year-option:hover .react-datepicker__navigation--years-previous{border-top-color:#b3b3b3}.react-datepicker__year-option--selected,.react-datepicker__month-option--selected,.react-datepicker__month-year-option--selected{position:absolute;left:15px}.react-datepicker__close-icon{cursor:pointer;background-color:transparent;border:0;outline:0;padding:0 6px 0 0;position:absolute;top:0;right:0;height:100%;display:table-cell;vertical-align:middle}.react-datepicker__close-icon:after{cursor:pointer;background-color:#216ba5;color:#fff;border-radius:50%;height:16px;width:16px;padding:2px;font-size:12px;line-height:1;text-align:center;display:table-cell;vertical-align:middle;content:"×"}.react-datepicker__today-button{background:#f0f0f0;border-top:1px solid #aeaeae;cursor:pointer;text-align:center;font-weight:700;padding:5px 0;clear:left}.react-datepicker__portal{position:fixed;width:100vw;height:100vh;background-color:#000c;left:0;top:0;justify-content:center;align-items:center;display:flex;z-index:2147483647}.react-datepicker__portal .react-datepicker__day-name,.react-datepicker__portal .react-datepicker__day,.react-datepicker__portal .react-datepicker__time-name{width:3rem;line-height:3rem}@media (max-width: 400px),(max-height: 550px){.react-datepicker__portal .react-datepicker__day-name,.react-datepicker__portal .react-datepicker__day,.react-datepicker__portal .react-datepicker__time-name{width:2rem;line-height:2rem}}.react-datepicker__portal .react-datepicker__current-month,.react-datepicker__portal .react-datepicker-time__header{font-size:1.44rem} diff --git a/develop/assets/index-CQj-G6Vv.css b/develop/assets/index-CQj-G6Vv.css new file mode 100644 index 00000000..fa388afa --- /dev/null +++ b/develop/assets/index-CQj-G6Vv.css @@ -0,0 +1,6 @@ +@charset "UTF-8";.app-update-banner.app-update-banner{position:absolute;left:50%;transform:translate(-50%);position:fixed;top:31px;padding:0 4rem 0 0;z-index:1040;margin:0;color:var(--text-color);text-align:center;width:700px;max-width:calc(100% - 30px);box-shadow:0 0 1rem var(--brand-color)}.app-container{height:100%}.app{padding-top:56px;height:100%}.shlink-wrapper{min-height:100%;padding-bottom:3.1rem;margin-bottom:-3.1rem}.shlink-footer{height:2.3rem;margin-top:.8rem;padding:0}@media (min-width: 768px){.shlink-footer{padding:0 15px}}.servers-list__list-group.servers-list__list-group{width:100%}.servers-list__list-group:not(.servers-list__list-group--embedded){max-width:400px;box-shadow:0 .125rem .25rem #00000013}.servers-list__server-item.servers-list__server-item{text-align:left;position:relative;padding:.75rem 2.5rem .75rem 1rem}.servers-list__server-item:not(:hover){color:#4696e5}.servers-list__server-item:hover{background-color:var(--secondary-color)}.servers-list__server-item-icon{position:absolute;top:50%;transform:translateY(-50%);right:1rem}.servers-list__list-group--embedded.servers-list__list-group--embedded{border-radius:0;border-top:1px solid var(--border-color)}@media (min-width: 768px){.servers-list__list-group--embedded.servers-list__list-group--embedded{max-height:220px;overflow-x:auto;scrollbar-color:rgba(0,0,0,.2) #f5f5f5;scrollbar-width:thin}.servers-list__list-group--embedded.servers-list__list-group--embedded::-webkit-scrollbar{width:6px;background-color:#f5f5f5}.servers-list__list-group--embedded.servers-list__list-group--embedded::-webkit-scrollbar-thumb{background-color:#0003;border-radius:.5rem}}.servers-list__list-group--embedded.servers-list__list-group--embedded .servers-list__server-item{border:none;border-bottom:1px solid var(--border-color)}.home{position:relative;padding-top:15px;width:100%}@media (min-width: 768px){.home{padding-top:0;height:calc(100vh - 56px - 3.1rem)}}.home__logo-wrapper{padding:1.5rem!important;height:100%!important;min-height:300px}.home__logo{position:absolute;top:50%;transform:translateY(-50%);width:calc(300.024px - 3rem)}.home__main-card{margin:0 auto;max-width:720px}@media (min-width: 768px){.home__main-card{position:absolute;top:50%;transform:translateY(-50%)}}.home__title-wrapper{padding:1.5rem!important;border-bottom:1px solid var(--border-color)}.home__title{text-align:center;font-size:1.75rem;margin:0}@media (min-width: 768px){.home__title{font-size:2.2rem}}@media (min-width: 768px){.home__servers-container{border-left:1px solid var(--border-color)}}.main-header.main-header{color:#fff;background-color:var(--brand-color)!important}.main-header.main-header .navbar-brand{color:inherit!important}.main-header__brand-logo{width:26px;margin-right:5px}.main-header__toggle-icon{width:20px;transition:transform .3s}.main-header__toggle-icon--opened{transform:rotate(180deg)}.shlink-versions-container--with-sidebar{margin-left:0}@media (min-width: 768px){.shlink-versions-container--with-sidebar{margin-left:260px}}.no-menu-wrapper{padding:15px 0 0}@media (min-width: 768px){.no-menu-wrapper{padding:30px 20px 20px}}.server-error__container{text-align:center;display:flex;align-items:center;justify-content:center}.server-error__delete-btn{color:#dc3545;font-weight:inherit}.server-error__delete-btn:hover{text-decoration:underline}.user-interface__theme-icon{float:right;margin-top:.25rem}/*! + * Bootstrap v5.2.3 (https://getbootstrap.com/) + * Copyright 2011-2022 The Bootstrap Authors + * Copyright 2011-2022 Twitter, Inc. + * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) + */:root{--bs-blue: #0d6efd;--bs-indigo: #6610f2;--bs-purple: #6f42c1;--bs-pink: #d63384;--bs-red: #dc3545;--bs-orange: #fd7e14;--bs-yellow: #ffc107;--bs-green: #198754;--bs-teal: #20c997;--bs-cyan: #0dcaf0;--bs-black: #000;--bs-white: #fff;--bs-gray: #6c757d;--bs-gray-dark: #343a40;--bs-gray-100: #f8f9fa;--bs-gray-200: #e9ecef;--bs-gray-300: #dee2e6;--bs-gray-400: #ced4da;--bs-gray-500: #adb5bd;--bs-gray-600: #6c757d;--bs-gray-700: #495057;--bs-gray-800: #343a40;--bs-gray-900: #212529;--bs-primary: #4696e5;--bs-secondary: #6c757d;--bs-success: #198754;--bs-info: #0dcaf0;--bs-warning: #ffc107;--bs-danger: #dc3545;--bs-light: #f8f9fa;--bs-dark: #212529;--bs-primary-rgb: 70, 150, 229;--bs-secondary-rgb: 108, 117, 125;--bs-success-rgb: 25, 135, 84;--bs-info-rgb: 13, 202, 240;--bs-warning-rgb: 255, 193, 7;--bs-danger-rgb: 220, 53, 69;--bs-light-rgb: 248, 249, 250;--bs-dark-rgb: 33, 37, 41;--bs-white-rgb: 255, 255, 255;--bs-black-rgb: 0, 0, 0;--bs-body-color-rgb: 33, 37, 41;--bs-body-bg-rgb: 255, 255, 255;--bs-font-sans-serif: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--bs-font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--bs-gradient: linear-gradient(180deg, rgba(255, 255, 255, .15), rgba(255, 255, 255, 0));--bs-body-font-family: var(--bs-font-sans-serif);--bs-body-font-size: 1rem;--bs-body-font-weight: 400;--bs-body-line-height: 1.5;--bs-body-color: #212529;--bs-body-bg: #fff;--bs-border-width: 1px;--bs-border-style: solid;--bs-border-color: #dee2e6;--bs-border-color-translucent: rgba(0, 0, 0, .175);--bs-border-radius: .375rem;--bs-border-radius-sm: .25rem;--bs-border-radius-lg: .5rem;--bs-border-radius-xl: 1rem;--bs-border-radius-2xl: 2rem;--bs-border-radius-pill: 50rem;--bs-link-color: #4696e5;--bs-link-hover-color: #3878b7;--bs-code-color: #d63384;--bs-highlight-bg: #fff3cd}*,*:before,*:after{box-sizing:border-box}@media (prefers-reduced-motion: no-preference){:root{scroll-behavior:smooth}}body{margin:0;font-family:var(--bs-body-font-family);font-size:var(--bs-body-font-size);font-weight:var(--bs-body-font-weight);line-height:var(--bs-body-line-height);color:var(--bs-body-color);text-align:var(--bs-body-text-align);background-color:var(--bs-body-bg);-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:rgba(0,0,0,0)}hr{margin:1rem 0;color:inherit;border:0;border-top:1px solid;opacity:.25}h6,.h6,h5,.h5,h4,.h4,h3,.h3,h2,.h2,h1,.h1{margin-top:0;margin-bottom:.5rem;font-weight:500;line-height:1.2}h1,.h1{font-size:calc(1.375rem + 1.5vw)}@media (min-width: 1200px){h1,.h1{font-size:2.5rem}}h2,.h2{font-size:calc(1.325rem + .9vw)}@media (min-width: 1200px){h2,.h2{font-size:2rem}}h3,.h3{font-size:calc(1.3rem + .6vw)}@media (min-width: 1200px){h3,.h3{font-size:1.75rem}}h4,.h4{font-size:calc(1.275rem + .3vw)}@media (min-width: 1200px){h4,.h4{font-size:1.5rem}}h5,.h5{font-size:1.25rem}h6,.h6{font-size:1rem}p{margin-top:0;margin-bottom:1rem}abbr[title]{text-decoration:underline dotted;cursor:help;text-decoration-skip-ink:none}address{margin-bottom:1rem;font-style:normal;line-height:inherit}ol,ul{padding-left:2rem}ol,ul,dl{margin-top:0;margin-bottom:1rem}ol ol,ul ul,ol ul,ul ol{margin-bottom:0}dt{font-weight:700}dd{margin-bottom:.5rem;margin-left:0}blockquote{margin:0 0 1rem}b,strong{font-weight:bolder}small,.small{font-size:.875em}mark,.mark{padding:.1875em;background-color:var(--bs-highlight-bg)}sub,sup{position:relative;font-size:.75em;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}a{color:var(--bs-link-color);text-decoration:underline}a:hover{color:var(--bs-link-hover-color)}a:not([href]):not([class]),a:not([href]):not([class]):hover{color:inherit;text-decoration:none}pre,code,kbd,samp{font-family:var(--bs-font-monospace);font-size:1em}pre{display:block;margin-top:0;margin-bottom:1rem;overflow:auto;font-size:.875em}pre code{font-size:inherit;color:inherit;word-break:normal}code{font-size:.875em;color:var(--bs-code-color);word-wrap:break-word}a>code{color:inherit}kbd{padding:.1875rem .375rem;font-size:.875em;color:var(--bs-body-bg);background-color:var(--bs-body-color);border-radius:.25rem}kbd kbd{padding:0;font-size:1em}figure{margin:0 0 1rem}img,svg{vertical-align:middle}table{caption-side:bottom;border-collapse:collapse}caption{padding-top:.5rem;padding-bottom:.5rem;color:#6c757d;text-align:left}th{text-align:inherit;text-align:-webkit-match-parent}thead,tbody,tfoot,tr,td,th{border-color:inherit;border-style:solid;border-width:0}label{display:inline-block}button{border-radius:0}button:focus:not(:focus-visible){outline:0}input,button,select,optgroup,textarea{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button,select{text-transform:none}[role=button]{cursor:pointer}select{word-wrap:normal}select:disabled{opacity:1}[list]:not([type=date]):not([type=datetime-local]):not([type=month]):not([type=week]):not([type=time])::-webkit-calendar-picker-indicator{display:none!important}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button:not(:disabled),[type=button]:not(:disabled),[type=reset]:not(:disabled),[type=submit]:not(:disabled){cursor:pointer}::-moz-focus-inner{padding:0;border-style:none}textarea{resize:vertical}fieldset{min-width:0;padding:0;margin:0;border:0}legend{float:left;width:100%;padding:0;margin-bottom:.5rem;font-size:calc(1.275rem + .3vw);line-height:inherit}@media (min-width: 1200px){legend{font-size:1.5rem}}legend+*{clear:left}::-webkit-datetime-edit-fields-wrapper,::-webkit-datetime-edit-text,::-webkit-datetime-edit-minute,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-year-field{padding:0}::-webkit-inner-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:textfield}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-color-swatch-wrapper{padding:0}::file-selector-button{font:inherit;-webkit-appearance:button}output{display:inline-block}iframe{border:0}summary{display:list-item;cursor:pointer}progress{vertical-align:baseline}[hidden]{display:none!important}.lead{font-size:1.25rem;font-weight:300}.display-1{font-size:calc(1.625rem + 4.5vw);font-weight:300;line-height:1.2}@media (min-width: 1200px){.display-1{font-size:5rem}}.display-2{font-size:calc(1.575rem + 3.9vw);font-weight:300;line-height:1.2}@media (min-width: 1200px){.display-2{font-size:4.5rem}}.display-3{font-size:calc(1.525rem + 3.3vw);font-weight:300;line-height:1.2}@media (min-width: 1200px){.display-3{font-size:4rem}}.display-4{font-size:calc(1.475rem + 2.7vw);font-weight:300;line-height:1.2}@media (min-width: 1200px){.display-4{font-size:3.5rem}}.display-5{font-size:calc(1.425rem + 2.1vw);font-weight:300;line-height:1.2}@media (min-width: 1200px){.display-5{font-size:3rem}}.display-6{font-size:calc(1.375rem + 1.5vw);font-weight:300;line-height:1.2}@media (min-width: 1200px){.display-6{font-size:2.5rem}}.list-unstyled,.list-inline{padding-left:0;list-style:none}.list-inline-item{display:inline-block}.list-inline-item:not(:last-child){margin-right:.5rem}.initialism{font-size:.875em;text-transform:uppercase}.blockquote{margin-bottom:1rem;font-size:1.25rem}.blockquote>:last-child{margin-bottom:0}.blockquote-footer{margin-top:-1rem;margin-bottom:1rem;font-size:.875em;color:#6c757d}.blockquote-footer:before{content:"— "}.img-fluid{max-width:100%;height:auto}.img-thumbnail{padding:.25rem;background-color:#fff;border:1px solid var(--bs-border-color);border-radius:.375rem;max-width:100%;height:auto}.figure{display:inline-block}.figure-img{margin-bottom:.5rem;line-height:1}.figure-caption{font-size:.875em;color:#6c757d}.container,.container-fluid,.container-xxl,.container-xl,.container-lg,.container-md,.container-sm{--bs-gutter-x: 1.5rem;--bs-gutter-y: 0;width:100%;padding-right:calc(var(--bs-gutter-x) * .5);padding-left:calc(var(--bs-gutter-x) * .5);margin-right:auto;margin-left:auto}@media (min-width: 576px){.container-sm,.container{max-width:540px}}@media (min-width: 768px){.container-md,.container-sm,.container{max-width:720px}}@media (min-width: 992px){.container-lg,.container-md,.container-sm,.container{max-width:960px}}@media (min-width: 1200px){.container-xl,.container-lg,.container-md,.container-sm,.container{max-width:1140px}}@media (min-width: 1400px){.container-xxl,.container-xl,.container-lg,.container-md,.container-sm,.container{max-width:1320px}}.row{--bs-gutter-x: 1.5rem;--bs-gutter-y: 0;display:flex;flex-wrap:wrap;margin-top:calc(-1 * var(--bs-gutter-y));margin-right:calc(-.5 * var(--bs-gutter-x));margin-left:calc(-.5 * var(--bs-gutter-x))}.row>*{flex-shrink:0;width:100%;max-width:100%;padding-right:calc(var(--bs-gutter-x) * .5);padding-left:calc(var(--bs-gutter-x) * .5);margin-top:var(--bs-gutter-y)}.col{flex:1 0 0%}.row-cols-auto>*{flex:0 0 auto;width:auto}.row-cols-1>*{flex:0 0 auto;width:100%}.row-cols-2>*{flex:0 0 auto;width:50%}.row-cols-3>*{flex:0 0 auto;width:33.3333333333%}.row-cols-4>*{flex:0 0 auto;width:25%}.row-cols-5>*{flex:0 0 auto;width:20%}.row-cols-6>*{flex:0 0 auto;width:16.6666666667%}.col-auto{flex:0 0 auto;width:auto}.col-1{flex:0 0 auto;width:8.33333333%}.col-2{flex:0 0 auto;width:16.66666667%}.col-3{flex:0 0 auto;width:25%}.col-4{flex:0 0 auto;width:33.33333333%}.col-5{flex:0 0 auto;width:41.66666667%}.col-6{flex:0 0 auto;width:50%}.col-7{flex:0 0 auto;width:58.33333333%}.col-8{flex:0 0 auto;width:66.66666667%}.col-9{flex:0 0 auto;width:75%}.col-10{flex:0 0 auto;width:83.33333333%}.col-11{flex:0 0 auto;width:91.66666667%}.col-12{flex:0 0 auto;width:100%}.offset-1{margin-left:8.33333333%}.offset-2{margin-left:16.66666667%}.offset-3{margin-left:25%}.offset-4{margin-left:33.33333333%}.offset-5{margin-left:41.66666667%}.offset-6{margin-left:50%}.offset-7{margin-left:58.33333333%}.offset-8{margin-left:66.66666667%}.offset-9{margin-left:75%}.offset-10{margin-left:83.33333333%}.offset-11{margin-left:91.66666667%}.g-0,.gx-0{--bs-gutter-x: 0}.g-0,.gy-0{--bs-gutter-y: 0}.g-1,.gx-1{--bs-gutter-x: .25rem}.g-1,.gy-1{--bs-gutter-y: .25rem}.g-2,.gx-2{--bs-gutter-x: .5rem}.g-2,.gy-2{--bs-gutter-y: .5rem}.g-3,.gx-3{--bs-gutter-x: 1rem}.g-3,.gy-3{--bs-gutter-y: 1rem}.g-4,.gx-4{--bs-gutter-x: 1.5rem}.g-4,.gy-4{--bs-gutter-y: 1.5rem}.g-5,.gx-5{--bs-gutter-x: 3rem}.g-5,.gy-5{--bs-gutter-y: 3rem}@media (min-width: 576px){.col-sm{flex:1 0 0%}.row-cols-sm-auto>*{flex:0 0 auto;width:auto}.row-cols-sm-1>*{flex:0 0 auto;width:100%}.row-cols-sm-2>*{flex:0 0 auto;width:50%}.row-cols-sm-3>*{flex:0 0 auto;width:33.3333333333%}.row-cols-sm-4>*{flex:0 0 auto;width:25%}.row-cols-sm-5>*{flex:0 0 auto;width:20%}.row-cols-sm-6>*{flex:0 0 auto;width:16.6666666667%}.col-sm-auto{flex:0 0 auto;width:auto}.col-sm-1{flex:0 0 auto;width:8.33333333%}.col-sm-2{flex:0 0 auto;width:16.66666667%}.col-sm-3{flex:0 0 auto;width:25%}.col-sm-4{flex:0 0 auto;width:33.33333333%}.col-sm-5{flex:0 0 auto;width:41.66666667%}.col-sm-6{flex:0 0 auto;width:50%}.col-sm-7{flex:0 0 auto;width:58.33333333%}.col-sm-8{flex:0 0 auto;width:66.66666667%}.col-sm-9{flex:0 0 auto;width:75%}.col-sm-10{flex:0 0 auto;width:83.33333333%}.col-sm-11{flex:0 0 auto;width:91.66666667%}.col-sm-12{flex:0 0 auto;width:100%}.offset-sm-0{margin-left:0}.offset-sm-1{margin-left:8.33333333%}.offset-sm-2{margin-left:16.66666667%}.offset-sm-3{margin-left:25%}.offset-sm-4{margin-left:33.33333333%}.offset-sm-5{margin-left:41.66666667%}.offset-sm-6{margin-left:50%}.offset-sm-7{margin-left:58.33333333%}.offset-sm-8{margin-left:66.66666667%}.offset-sm-9{margin-left:75%}.offset-sm-10{margin-left:83.33333333%}.offset-sm-11{margin-left:91.66666667%}.g-sm-0,.gx-sm-0{--bs-gutter-x: 0}.g-sm-0,.gy-sm-0{--bs-gutter-y: 0}.g-sm-1,.gx-sm-1{--bs-gutter-x: .25rem}.g-sm-1,.gy-sm-1{--bs-gutter-y: .25rem}.g-sm-2,.gx-sm-2{--bs-gutter-x: .5rem}.g-sm-2,.gy-sm-2{--bs-gutter-y: .5rem}.g-sm-3,.gx-sm-3{--bs-gutter-x: 1rem}.g-sm-3,.gy-sm-3{--bs-gutter-y: 1rem}.g-sm-4,.gx-sm-4{--bs-gutter-x: 1.5rem}.g-sm-4,.gy-sm-4{--bs-gutter-y: 1.5rem}.g-sm-5,.gx-sm-5{--bs-gutter-x: 3rem}.g-sm-5,.gy-sm-5{--bs-gutter-y: 3rem}}@media (min-width: 768px){.col-md{flex:1 0 0%}.row-cols-md-auto>*{flex:0 0 auto;width:auto}.row-cols-md-1>*{flex:0 0 auto;width:100%}.row-cols-md-2>*{flex:0 0 auto;width:50%}.row-cols-md-3>*{flex:0 0 auto;width:33.3333333333%}.row-cols-md-4>*{flex:0 0 auto;width:25%}.row-cols-md-5>*{flex:0 0 auto;width:20%}.row-cols-md-6>*{flex:0 0 auto;width:16.6666666667%}.col-md-auto{flex:0 0 auto;width:auto}.col-md-1{flex:0 0 auto;width:8.33333333%}.col-md-2{flex:0 0 auto;width:16.66666667%}.col-md-3{flex:0 0 auto;width:25%}.col-md-4{flex:0 0 auto;width:33.33333333%}.col-md-5{flex:0 0 auto;width:41.66666667%}.col-md-6{flex:0 0 auto;width:50%}.col-md-7{flex:0 0 auto;width:58.33333333%}.col-md-8{flex:0 0 auto;width:66.66666667%}.col-md-9{flex:0 0 auto;width:75%}.col-md-10{flex:0 0 auto;width:83.33333333%}.col-md-11{flex:0 0 auto;width:91.66666667%}.col-md-12{flex:0 0 auto;width:100%}.offset-md-0{margin-left:0}.offset-md-1{margin-left:8.33333333%}.offset-md-2{margin-left:16.66666667%}.offset-md-3{margin-left:25%}.offset-md-4{margin-left:33.33333333%}.offset-md-5{margin-left:41.66666667%}.offset-md-6{margin-left:50%}.offset-md-7{margin-left:58.33333333%}.offset-md-8{margin-left:66.66666667%}.offset-md-9{margin-left:75%}.offset-md-10{margin-left:83.33333333%}.offset-md-11{margin-left:91.66666667%}.g-md-0,.gx-md-0{--bs-gutter-x: 0}.g-md-0,.gy-md-0{--bs-gutter-y: 0}.g-md-1,.gx-md-1{--bs-gutter-x: .25rem}.g-md-1,.gy-md-1{--bs-gutter-y: .25rem}.g-md-2,.gx-md-2{--bs-gutter-x: .5rem}.g-md-2,.gy-md-2{--bs-gutter-y: .5rem}.g-md-3,.gx-md-3{--bs-gutter-x: 1rem}.g-md-3,.gy-md-3{--bs-gutter-y: 1rem}.g-md-4,.gx-md-4{--bs-gutter-x: 1.5rem}.g-md-4,.gy-md-4{--bs-gutter-y: 1.5rem}.g-md-5,.gx-md-5{--bs-gutter-x: 3rem}.g-md-5,.gy-md-5{--bs-gutter-y: 3rem}}@media (min-width: 992px){.col-lg{flex:1 0 0%}.row-cols-lg-auto>*{flex:0 0 auto;width:auto}.row-cols-lg-1>*{flex:0 0 auto;width:100%}.row-cols-lg-2>*{flex:0 0 auto;width:50%}.row-cols-lg-3>*{flex:0 0 auto;width:33.3333333333%}.row-cols-lg-4>*{flex:0 0 auto;width:25%}.row-cols-lg-5>*{flex:0 0 auto;width:20%}.row-cols-lg-6>*{flex:0 0 auto;width:16.6666666667%}.col-lg-auto{flex:0 0 auto;width:auto}.col-lg-1{flex:0 0 auto;width:8.33333333%}.col-lg-2{flex:0 0 auto;width:16.66666667%}.col-lg-3{flex:0 0 auto;width:25%}.col-lg-4{flex:0 0 auto;width:33.33333333%}.col-lg-5{flex:0 0 auto;width:41.66666667%}.col-lg-6{flex:0 0 auto;width:50%}.col-lg-7{flex:0 0 auto;width:58.33333333%}.col-lg-8{flex:0 0 auto;width:66.66666667%}.col-lg-9{flex:0 0 auto;width:75%}.col-lg-10{flex:0 0 auto;width:83.33333333%}.col-lg-11{flex:0 0 auto;width:91.66666667%}.col-lg-12{flex:0 0 auto;width:100%}.offset-lg-0{margin-left:0}.offset-lg-1{margin-left:8.33333333%}.offset-lg-2{margin-left:16.66666667%}.offset-lg-3{margin-left:25%}.offset-lg-4{margin-left:33.33333333%}.offset-lg-5{margin-left:41.66666667%}.offset-lg-6{margin-left:50%}.offset-lg-7{margin-left:58.33333333%}.offset-lg-8{margin-left:66.66666667%}.offset-lg-9{margin-left:75%}.offset-lg-10{margin-left:83.33333333%}.offset-lg-11{margin-left:91.66666667%}.g-lg-0,.gx-lg-0{--bs-gutter-x: 0}.g-lg-0,.gy-lg-0{--bs-gutter-y: 0}.g-lg-1,.gx-lg-1{--bs-gutter-x: .25rem}.g-lg-1,.gy-lg-1{--bs-gutter-y: .25rem}.g-lg-2,.gx-lg-2{--bs-gutter-x: .5rem}.g-lg-2,.gy-lg-2{--bs-gutter-y: .5rem}.g-lg-3,.gx-lg-3{--bs-gutter-x: 1rem}.g-lg-3,.gy-lg-3{--bs-gutter-y: 1rem}.g-lg-4,.gx-lg-4{--bs-gutter-x: 1.5rem}.g-lg-4,.gy-lg-4{--bs-gutter-y: 1.5rem}.g-lg-5,.gx-lg-5{--bs-gutter-x: 3rem}.g-lg-5,.gy-lg-5{--bs-gutter-y: 3rem}}@media (min-width: 1200px){.col-xl{flex:1 0 0%}.row-cols-xl-auto>*{flex:0 0 auto;width:auto}.row-cols-xl-1>*{flex:0 0 auto;width:100%}.row-cols-xl-2>*{flex:0 0 auto;width:50%}.row-cols-xl-3>*{flex:0 0 auto;width:33.3333333333%}.row-cols-xl-4>*{flex:0 0 auto;width:25%}.row-cols-xl-5>*{flex:0 0 auto;width:20%}.row-cols-xl-6>*{flex:0 0 auto;width:16.6666666667%}.col-xl-auto{flex:0 0 auto;width:auto}.col-xl-1{flex:0 0 auto;width:8.33333333%}.col-xl-2{flex:0 0 auto;width:16.66666667%}.col-xl-3{flex:0 0 auto;width:25%}.col-xl-4{flex:0 0 auto;width:33.33333333%}.col-xl-5{flex:0 0 auto;width:41.66666667%}.col-xl-6{flex:0 0 auto;width:50%}.col-xl-7{flex:0 0 auto;width:58.33333333%}.col-xl-8{flex:0 0 auto;width:66.66666667%}.col-xl-9{flex:0 0 auto;width:75%}.col-xl-10{flex:0 0 auto;width:83.33333333%}.col-xl-11{flex:0 0 auto;width:91.66666667%}.col-xl-12{flex:0 0 auto;width:100%}.offset-xl-0{margin-left:0}.offset-xl-1{margin-left:8.33333333%}.offset-xl-2{margin-left:16.66666667%}.offset-xl-3{margin-left:25%}.offset-xl-4{margin-left:33.33333333%}.offset-xl-5{margin-left:41.66666667%}.offset-xl-6{margin-left:50%}.offset-xl-7{margin-left:58.33333333%}.offset-xl-8{margin-left:66.66666667%}.offset-xl-9{margin-left:75%}.offset-xl-10{margin-left:83.33333333%}.offset-xl-11{margin-left:91.66666667%}.g-xl-0,.gx-xl-0{--bs-gutter-x: 0}.g-xl-0,.gy-xl-0{--bs-gutter-y: 0}.g-xl-1,.gx-xl-1{--bs-gutter-x: .25rem}.g-xl-1,.gy-xl-1{--bs-gutter-y: .25rem}.g-xl-2,.gx-xl-2{--bs-gutter-x: .5rem}.g-xl-2,.gy-xl-2{--bs-gutter-y: .5rem}.g-xl-3,.gx-xl-3{--bs-gutter-x: 1rem}.g-xl-3,.gy-xl-3{--bs-gutter-y: 1rem}.g-xl-4,.gx-xl-4{--bs-gutter-x: 1.5rem}.g-xl-4,.gy-xl-4{--bs-gutter-y: 1.5rem}.g-xl-5,.gx-xl-5{--bs-gutter-x: 3rem}.g-xl-5,.gy-xl-5{--bs-gutter-y: 3rem}}@media (min-width: 1400px){.col-xxl{flex:1 0 0%}.row-cols-xxl-auto>*{flex:0 0 auto;width:auto}.row-cols-xxl-1>*{flex:0 0 auto;width:100%}.row-cols-xxl-2>*{flex:0 0 auto;width:50%}.row-cols-xxl-3>*{flex:0 0 auto;width:33.3333333333%}.row-cols-xxl-4>*{flex:0 0 auto;width:25%}.row-cols-xxl-5>*{flex:0 0 auto;width:20%}.row-cols-xxl-6>*{flex:0 0 auto;width:16.6666666667%}.col-xxl-auto{flex:0 0 auto;width:auto}.col-xxl-1{flex:0 0 auto;width:8.33333333%}.col-xxl-2{flex:0 0 auto;width:16.66666667%}.col-xxl-3{flex:0 0 auto;width:25%}.col-xxl-4{flex:0 0 auto;width:33.33333333%}.col-xxl-5{flex:0 0 auto;width:41.66666667%}.col-xxl-6{flex:0 0 auto;width:50%}.col-xxl-7{flex:0 0 auto;width:58.33333333%}.col-xxl-8{flex:0 0 auto;width:66.66666667%}.col-xxl-9{flex:0 0 auto;width:75%}.col-xxl-10{flex:0 0 auto;width:83.33333333%}.col-xxl-11{flex:0 0 auto;width:91.66666667%}.col-xxl-12{flex:0 0 auto;width:100%}.offset-xxl-0{margin-left:0}.offset-xxl-1{margin-left:8.33333333%}.offset-xxl-2{margin-left:16.66666667%}.offset-xxl-3{margin-left:25%}.offset-xxl-4{margin-left:33.33333333%}.offset-xxl-5{margin-left:41.66666667%}.offset-xxl-6{margin-left:50%}.offset-xxl-7{margin-left:58.33333333%}.offset-xxl-8{margin-left:66.66666667%}.offset-xxl-9{margin-left:75%}.offset-xxl-10{margin-left:83.33333333%}.offset-xxl-11{margin-left:91.66666667%}.g-xxl-0,.gx-xxl-0{--bs-gutter-x: 0}.g-xxl-0,.gy-xxl-0{--bs-gutter-y: 0}.g-xxl-1,.gx-xxl-1{--bs-gutter-x: .25rem}.g-xxl-1,.gy-xxl-1{--bs-gutter-y: .25rem}.g-xxl-2,.gx-xxl-2{--bs-gutter-x: .5rem}.g-xxl-2,.gy-xxl-2{--bs-gutter-y: .5rem}.g-xxl-3,.gx-xxl-3{--bs-gutter-x: 1rem}.g-xxl-3,.gy-xxl-3{--bs-gutter-y: 1rem}.g-xxl-4,.gx-xxl-4{--bs-gutter-x: 1.5rem}.g-xxl-4,.gy-xxl-4{--bs-gutter-y: 1.5rem}.g-xxl-5,.gx-xxl-5{--bs-gutter-x: 3rem}.g-xxl-5,.gy-xxl-5{--bs-gutter-y: 3rem}}.table{--bs-table-color: var(--bs-body-color);--bs-table-bg: transparent;--bs-table-border-color: var(--bs-border-color);--bs-table-accent-bg: transparent;--bs-table-striped-color: var(--bs-body-color);--bs-table-striped-bg: rgba(0, 0, 0, .05);--bs-table-active-color: var(--bs-body-color);--bs-table-active-bg: rgba(0, 0, 0, .1);--bs-table-hover-color: var(--bs-body-color);--bs-table-hover-bg: rgba(0, 0, 0, .075);width:100%;margin-bottom:1rem;color:var(--bs-table-color);vertical-align:top;border-color:var(--bs-table-border-color)}.table>:not(caption)>*>*{padding:.5rem;background-color:var(--bs-table-bg);border-bottom-width:1px;box-shadow:inset 0 0 0 9999px var(--bs-table-accent-bg)}.table>tbody{vertical-align:inherit}.table>thead{vertical-align:bottom}.table-group-divider{border-top:2px solid currentcolor}.caption-top{caption-side:top}.table-sm>:not(caption)>*>*{padding:.25rem}.table-bordered>:not(caption)>*{border-width:1px 0}.table-bordered>:not(caption)>*>*{border-width:0 1px}.table-borderless>:not(caption)>*>*{border-bottom-width:0}.table-borderless>:not(:first-child){border-top-width:0}.table-striped>tbody>tr:nth-of-type(odd)>*{--bs-table-accent-bg: var(--bs-table-striped-bg);color:var(--bs-table-striped-color)}.table-striped-columns>:not(caption)>tr>:nth-child(2n){--bs-table-accent-bg: var(--bs-table-striped-bg);color:var(--bs-table-striped-color)}.table-active{--bs-table-accent-bg: var(--bs-table-active-bg);color:var(--bs-table-active-color)}.table-hover>tbody>tr:hover>*{--bs-table-accent-bg: var(--bs-table-hover-bg);color:var(--bs-table-hover-color)}.table-primary{--bs-table-color: #000;--bs-table-bg: #daeafa;--bs-table-border-color: #c4d3e1;--bs-table-striped-bg: #cfdeee;--bs-table-striped-color: #000;--bs-table-active-bg: #c4d3e1;--bs-table-active-color: #000;--bs-table-hover-bg: #cad8e7;--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-secondary{--bs-table-color: #000;--bs-table-bg: #e2e3e5;--bs-table-border-color: #cbccce;--bs-table-striped-bg: #d7d8da;--bs-table-striped-color: #000;--bs-table-active-bg: #cbccce;--bs-table-active-color: #000;--bs-table-hover-bg: #d1d2d4;--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-success{--bs-table-color: #000;--bs-table-bg: #d1e7dd;--bs-table-border-color: #bcd0c7;--bs-table-striped-bg: #c7dbd2;--bs-table-striped-color: #000;--bs-table-active-bg: #bcd0c7;--bs-table-active-color: #000;--bs-table-hover-bg: #c1d6cc;--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-info{--bs-table-color: #000;--bs-table-bg: #cff4fc;--bs-table-border-color: #badce3;--bs-table-striped-bg: #c5e8ef;--bs-table-striped-color: #000;--bs-table-active-bg: #badce3;--bs-table-active-color: #000;--bs-table-hover-bg: #bfe2e9;--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-warning{--bs-table-color: #000;--bs-table-bg: #fff3cd;--bs-table-border-color: #e6dbb9;--bs-table-striped-bg: #f2e7c3;--bs-table-striped-color: #000;--bs-table-active-bg: #e6dbb9;--bs-table-active-color: #000;--bs-table-hover-bg: #ece1be;--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-danger{--bs-table-color: #000;--bs-table-bg: #f8d7da;--bs-table-border-color: #dfc2c4;--bs-table-striped-bg: #eccccf;--bs-table-striped-color: #000;--bs-table-active-bg: #dfc2c4;--bs-table-active-color: #000;--bs-table-hover-bg: #e5c7ca;--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-light{--bs-table-color: #000;--bs-table-bg: #f8f9fa;--bs-table-border-color: #dfe0e1;--bs-table-striped-bg: #ecedee;--bs-table-striped-color: #000;--bs-table-active-bg: #dfe0e1;--bs-table-active-color: #000;--bs-table-hover-bg: #e5e6e7;--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-dark{--bs-table-color: #fff;--bs-table-bg: #212529;--bs-table-border-color: #373b3e;--bs-table-striped-bg: #2c3034;--bs-table-striped-color: #fff;--bs-table-active-bg: #373b3e;--bs-table-active-color: #fff;--bs-table-hover-bg: #323539;--bs-table-hover-color: #fff;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-responsive{overflow-x:auto;-webkit-overflow-scrolling:touch}@media (max-width: 575.98px){.table-responsive-sm{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width: 767.98px){.table-responsive-md{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width: 991.98px){.table-responsive-lg{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width: 1199.98px){.table-responsive-xl{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width: 1399.98px){.table-responsive-xxl{overflow-x:auto;-webkit-overflow-scrolling:touch}}.form-label{margin-bottom:.5rem}.col-form-label{padding-top:calc(.375rem + 1px);padding-bottom:calc(.375rem + 1px);margin-bottom:0;font-size:inherit;line-height:1.5}.col-form-label-lg{padding-top:calc(.5rem + 1px);padding-bottom:calc(.5rem + 1px);font-size:1.25rem}.col-form-label-sm{padding-top:calc(.25rem + 1px);padding-bottom:calc(.25rem + 1px);font-size:.875rem}.form-text{margin-top:.25rem;font-size:.875em;color:#6c757d}.form-control{display:block;width:100%;padding:.375rem .75rem;font-size:1rem;font-weight:400;line-height:1.5;color:#212529;background-color:#fff;background-clip:padding-box;border:1px solid #ced4da;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:.375rem;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion: reduce){.form-control{transition:none}}.form-control[type=file]{overflow:hidden}.form-control[type=file]:not(:disabled):not([readonly]){cursor:pointer}.form-control:focus{color:#212529;background-color:#fff;border-color:#a3cbf2;outline:0;box-shadow:0 0 0 .25rem #4696e540}.form-control::-webkit-date-and-time-value{height:1.5em}.form-control::placeholder{color:#6c757d;opacity:1}.form-control:disabled{background-color:#e9ecef;opacity:1}.form-control::file-selector-button{padding:.375rem .75rem;margin:-.375rem -.75rem;margin-inline-end:.75rem;color:#212529;background-color:#e9ecef;pointer-events:none;border-color:inherit;border-style:solid;border-width:0;border-inline-end-width:1px;border-radius:0;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion: reduce){.form-control::file-selector-button{transition:none}}.form-control:hover:not(:disabled):not([readonly])::file-selector-button{background-color:#dde0e3}.form-control-plaintext{display:block;width:100%;padding:.375rem 0;margin-bottom:0;line-height:1.5;color:#212529;background-color:transparent;border:solid transparent;border-width:1px 0}.form-control-plaintext:focus{outline:0}.form-control-plaintext.form-control-sm,.form-control-plaintext.form-control-lg{padding-right:0;padding-left:0}.form-control-sm{min-height:calc(1.5em + .5rem + 2px);padding:.25rem .5rem;font-size:.875rem;border-radius:.25rem}.form-control-sm::file-selector-button{padding:.25rem .5rem;margin:-.25rem -.5rem;margin-inline-end:.5rem}.form-control-lg{min-height:calc(1.5em + 1rem + 2px);padding:.5rem 1rem;font-size:1.25rem;border-radius:.5rem}.form-control-lg::file-selector-button{padding:.5rem 1rem;margin:-.5rem -1rem;margin-inline-end:1rem}textarea.form-control{min-height:calc(1.5em + .75rem + 2px)}textarea.form-control-sm{min-height:calc(1.5em + .5rem + 2px)}textarea.form-control-lg{min-height:calc(1.5em + 1rem + 2px)}.form-control-color{width:3rem;height:calc(1.5em + .75rem + 2px);padding:.375rem}.form-control-color:not(:disabled):not([readonly]){cursor:pointer}.form-control-color::-moz-color-swatch{border:0!important;border-radius:.375rem}.form-control-color::-webkit-color-swatch{border-radius:.375rem}.form-control-color.form-control-sm{height:calc(1.5em + .5rem + 2px)}.form-control-color.form-control-lg{height:calc(1.5em + 1rem + 2px)}.form-select{display:block;width:100%;padding:.375rem 2.25rem .375rem .75rem;-moz-padding-start:calc(.75rem - 3px);font-size:1rem;font-weight:400;line-height:1.5;color:#212529;background-color:#fff;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");background-repeat:no-repeat;background-position:right .75rem center;background-size:16px 12px;border:1px solid #ced4da;border-radius:.375rem;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out;-webkit-appearance:none;-moz-appearance:none;appearance:none}@media (prefers-reduced-motion: reduce){.form-select{transition:none}}.form-select:focus{border-color:#a3cbf2;outline:0;box-shadow:0 0 0 .25rem #4696e540}.form-select[multiple],.form-select[size]:not([size="1"]){padding-right:.75rem;background-image:none}.form-select:disabled{background-color:#e9ecef}.form-select:-moz-focusring{color:transparent;text-shadow:0 0 0 #212529}.form-select-sm{padding-top:.25rem;padding-bottom:.25rem;padding-left:.5rem;font-size:.875rem;border-radius:.25rem}.form-select-lg{padding-top:.5rem;padding-bottom:.5rem;padding-left:1rem;font-size:1.25rem;border-radius:.5rem}.form-check{display:block;min-height:1.5rem;padding-left:1.5em;margin-bottom:.125rem}.form-check .form-check-input{float:left;margin-left:-1.5em}.form-check-reverse{padding-right:1.5em;padding-left:0;text-align:right}.form-check-reverse .form-check-input{float:right;margin-right:-1.5em;margin-left:0}.form-check-input{width:1em;height:1em;margin-top:.25em;vertical-align:top;background-color:#fff;background-repeat:no-repeat;background-position:center;background-size:contain;border:1px solid rgba(0,0,0,.25);-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-print-color-adjust:exact;print-color-adjust:exact}.form-check-input[type=checkbox]{border-radius:.25em}.form-check-input[type=radio]{border-radius:50%}.form-check-input:active{filter:brightness(90%)}.form-check-input:focus{border-color:#a3cbf2;outline:0;box-shadow:0 0 0 .25rem #4696e540}.form-check-input:checked{background-color:#4696e5;border-color:#4696e5}.form-check-input:checked[type=checkbox]{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e")}.form-check-input:checked[type=radio]{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23fff'/%3e%3c/svg%3e")}.form-check-input[type=checkbox]:indeterminate{background-color:#4696e5;border-color:#4696e5;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10h8'/%3e%3c/svg%3e")}.form-check-input:disabled{pointer-events:none;filter:none;opacity:.5}.form-check-input[disabled]~.form-check-label,.form-check-input:disabled~.form-check-label{cursor:default;opacity:.5}.form-switch{padding-left:2.5em}.form-switch .form-check-input{width:2em;margin-left:-2.5em;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%280, 0, 0, 0.25%29'/%3e%3c/svg%3e");background-position:left center;border-radius:2em;transition:background-position .15s ease-in-out}@media (prefers-reduced-motion: reduce){.form-switch .form-check-input{transition:none}}.form-switch .form-check-input:focus{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23a3cbf2'/%3e%3c/svg%3e")}.form-switch .form-check-input:checked{background-position:right center;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e")}.form-switch.form-check-reverse{padding-right:2.5em;padding-left:0}.form-switch.form-check-reverse .form-check-input{margin-right:-2.5em;margin-left:0}.form-check-inline{display:inline-block;margin-right:1rem}.btn-check{position:absolute;clip:rect(0,0,0,0);pointer-events:none}.btn-check[disabled]+.btn,.btn-check:disabled+.btn{pointer-events:none;filter:none;opacity:.65}.form-range{width:100%;height:1.5rem;padding:0;background-color:transparent;-webkit-appearance:none;-moz-appearance:none;appearance:none}.form-range:focus{outline:0}.form-range:focus::-webkit-slider-thumb{box-shadow:0 0 0 1px #fff,0 0 0 .25rem #4696e540}.form-range:focus::-moz-range-thumb{box-shadow:0 0 0 1px #fff,0 0 0 .25rem #4696e540}.form-range::-moz-focus-outer{border:0}.form-range::-webkit-slider-thumb{width:1rem;height:1rem;margin-top:-.25rem;background-color:#4696e5;border:0;border-radius:1rem;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;-webkit-appearance:none;-moz-appearance:none;appearance:none}@media (prefers-reduced-motion: reduce){.form-range::-webkit-slider-thumb{transition:none}}.form-range::-webkit-slider-thumb:active{background-color:#c8e0f7}.form-range::-webkit-slider-runnable-track{width:100%;height:.5rem;color:transparent;cursor:pointer;background-color:#dee2e6;border-color:transparent;border-radius:1rem}.form-range::-moz-range-thumb{width:1rem;height:1rem;background-color:#4696e5;border:0;border-radius:1rem;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;-webkit-appearance:none;-moz-appearance:none;appearance:none}@media (prefers-reduced-motion: reduce){.form-range::-moz-range-thumb{transition:none}}.form-range::-moz-range-thumb:active{background-color:#c8e0f7}.form-range::-moz-range-track{width:100%;height:.5rem;color:transparent;cursor:pointer;background-color:#dee2e6;border-color:transparent;border-radius:1rem}.form-range:disabled{pointer-events:none}.form-range:disabled::-webkit-slider-thumb{background-color:#adb5bd}.form-range:disabled::-moz-range-thumb{background-color:#adb5bd}.form-floating{position:relative}.form-floating>.form-control,.form-floating>.form-control-plaintext,.form-floating>.form-select{height:calc(3.5rem + 2px);line-height:1.25}.form-floating>label{position:absolute;top:0;left:0;width:100%;height:100%;padding:1rem .75rem;overflow:hidden;text-align:start;text-overflow:ellipsis;white-space:nowrap;pointer-events:none;border:1px solid transparent;transform-origin:0 0;transition:opacity .1s ease-in-out,transform .1s ease-in-out}@media (prefers-reduced-motion: reduce){.form-floating>label{transition:none}}.form-floating>.form-control,.form-floating>.form-control-plaintext{padding:1rem .75rem}.form-floating>.form-control::placeholder,.form-floating>.form-control-plaintext::placeholder{color:transparent}.form-floating>.form-control:focus,.form-floating>.form-control:not(:placeholder-shown),.form-floating>.form-control-plaintext:focus,.form-floating>.form-control-plaintext:not(:placeholder-shown){padding-top:1.625rem;padding-bottom:.625rem}.form-floating>.form-control:-webkit-autofill,.form-floating>.form-control-plaintext:-webkit-autofill{padding-top:1.625rem;padding-bottom:.625rem}.form-floating>.form-select{padding-top:1.625rem;padding-bottom:.625rem}.form-floating>.form-control:focus~label,.form-floating>.form-control:not(:placeholder-shown)~label,.form-floating>.form-control-plaintext~label,.form-floating>.form-select~label{opacity:.65;transform:scale(.85) translateY(-.5rem) translate(.15rem)}.form-floating>.form-control:-webkit-autofill~label{opacity:.65;transform:scale(.85) translateY(-.5rem) translate(.15rem)}.form-floating>.form-control-plaintext~label{border-width:1px 0}.input-group{position:relative;display:flex;flex-wrap:wrap;align-items:stretch;width:100%}.input-group>.form-control,.input-group>.form-select,.input-group>.form-floating{position:relative;flex:1 1 auto;width:1%;min-width:0}.input-group>.form-control:focus,.input-group>.form-select:focus,.input-group>.form-floating:focus-within{z-index:5}.input-group .btn{position:relative;z-index:2}.input-group .btn:focus{z-index:5}.input-group-text{display:flex;align-items:center;padding:.375rem .75rem;font-size:1rem;font-weight:400;line-height:1.5;color:#212529;text-align:center;white-space:nowrap;background-color:#e9ecef;border:1px solid #ced4da;border-radius:.375rem}.input-group-lg>.form-control,.input-group-lg>.form-select,.input-group-lg>.input-group-text,.input-group-lg>.btn{padding:.5rem 1rem;font-size:1.25rem;border-radius:.5rem}.input-group-sm>.form-control,.input-group-sm>.form-select,.input-group-sm>.input-group-text,.input-group-sm>.btn{padding:.25rem .5rem;font-size:.875rem;border-radius:.25rem}.input-group-lg>.form-select,.input-group-sm>.form-select{padding-right:3rem}.input-group:not(.has-validation)>:not(:last-child):not(.dropdown-toggle):not(.dropdown-menu):not(.form-floating),.input-group:not(.has-validation)>.dropdown-toggle:nth-last-child(n+3),.input-group:not(.has-validation)>.form-floating:not(:last-child)>.form-control,.input-group:not(.has-validation)>.form-floating:not(:last-child)>.form-select{border-top-right-radius:0;border-bottom-right-radius:0}.input-group.has-validation>:nth-last-child(n+3):not(.dropdown-toggle):not(.dropdown-menu):not(.form-floating),.input-group.has-validation>.dropdown-toggle:nth-last-child(n+4),.input-group.has-validation>.form-floating:nth-last-child(n+3)>.form-control,.input-group.has-validation>.form-floating:nth-last-child(n+3)>.form-select{border-top-right-radius:0;border-bottom-right-radius:0}.input-group>:not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback){margin-left:-1px;border-top-left-radius:0;border-bottom-left-radius:0}.input-group>.form-floating:not(:first-child)>.form-control,.input-group>.form-floating:not(:first-child)>.form-select{border-top-left-radius:0;border-bottom-left-radius:0}.valid-feedback{display:none;width:100%;margin-top:.25rem;font-size:.875em;color:#198754}.valid-tooltip{position:absolute;top:100%;z-index:5;display:none;max-width:100%;padding:.25rem .5rem;margin-top:.1rem;font-size:.875rem;color:#fff;background-color:#198754e6;border-radius:.375rem}.was-validated :valid~.valid-feedback,.was-validated :valid~.valid-tooltip,.is-valid~.valid-feedback,.is-valid~.valid-tooltip{display:block}.was-validated .form-control:valid,.form-control.is-valid{border-color:#198754;padding-right:calc(1.5em + .75rem);background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");background-repeat:no-repeat;background-position:right calc(.375em + .1875rem) center;background-size:calc(.75em + .375rem) calc(.75em + .375rem)}.was-validated .form-control:valid:focus,.form-control.is-valid:focus{border-color:#198754;box-shadow:0 0 0 .25rem #19875440}.was-validated textarea.form-control:valid,textarea.form-control.is-valid{padding-right:calc(1.5em + .75rem);background-position:top calc(.375em + .1875rem) right calc(.375em + .1875rem)}.was-validated .form-select:valid,.form-select.is-valid{border-color:#198754}.was-validated .form-select:valid:not([multiple]):not([size]),.was-validated .form-select:valid:not([multiple])[size="1"],.form-select.is-valid:not([multiple]):not([size]),.form-select.is-valid:not([multiple])[size="1"]{padding-right:4.125rem;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"),url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");background-position:right .75rem center,center right 2.25rem;background-size:16px 12px,calc(.75em + .375rem) calc(.75em + .375rem)}.was-validated .form-select:valid:focus,.form-select.is-valid:focus{border-color:#198754;box-shadow:0 0 0 .25rem #19875440}.was-validated .form-control-color:valid,.form-control-color.is-valid{width:calc(3.75rem + 1.5em)}.was-validated .form-check-input:valid,.form-check-input.is-valid{border-color:#198754}.was-validated .form-check-input:valid:checked,.form-check-input.is-valid:checked{background-color:#198754}.was-validated .form-check-input:valid:focus,.form-check-input.is-valid:focus{box-shadow:0 0 0 .25rem #19875440}.was-validated .form-check-input:valid~.form-check-label,.form-check-input.is-valid~.form-check-label{color:#198754}.form-check-inline .form-check-input~.valid-feedback{margin-left:.5em}.was-validated .input-group>.form-control:not(:focus):valid,.input-group>.form-control:not(:focus).is-valid,.was-validated .input-group>.form-select:not(:focus):valid,.input-group>.form-select:not(:focus).is-valid,.was-validated .input-group>.form-floating:not(:focus-within):valid,.input-group>.form-floating:not(:focus-within).is-valid{z-index:3}.invalid-feedback{display:none;width:100%;margin-top:.25rem;font-size:.875em;color:#dc3545}.invalid-tooltip{position:absolute;top:100%;z-index:5;display:none;max-width:100%;padding:.25rem .5rem;margin-top:.1rem;font-size:.875rem;color:#fff;background-color:#dc3545e6;border-radius:.375rem}.was-validated :invalid~.invalid-feedback,.was-validated :invalid~.invalid-tooltip,.is-invalid~.invalid-feedback,.is-invalid~.invalid-tooltip{display:block}.was-validated .form-control:invalid,.form-control.is-invalid{border-color:#dc3545;padding-right:calc(1.5em + .75rem);background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");background-repeat:no-repeat;background-position:right calc(.375em + .1875rem) center;background-size:calc(.75em + .375rem) calc(.75em + .375rem)}.was-validated .form-control:invalid:focus,.form-control.is-invalid:focus{border-color:#dc3545;box-shadow:0 0 0 .25rem #dc354540}.was-validated textarea.form-control:invalid,textarea.form-control.is-invalid{padding-right:calc(1.5em + .75rem);background-position:top calc(.375em + .1875rem) right calc(.375em + .1875rem)}.was-validated .form-select:invalid,.form-select.is-invalid{border-color:#dc3545}.was-validated .form-select:invalid:not([multiple]):not([size]),.was-validated .form-select:invalid:not([multiple])[size="1"],.form-select.is-invalid:not([multiple]):not([size]),.form-select.is-invalid:not([multiple])[size="1"]{padding-right:4.125rem;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"),url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");background-position:right .75rem center,center right 2.25rem;background-size:16px 12px,calc(.75em + .375rem) calc(.75em + .375rem)}.was-validated .form-select:invalid:focus,.form-select.is-invalid:focus{border-color:#dc3545;box-shadow:0 0 0 .25rem #dc354540}.was-validated .form-control-color:invalid,.form-control-color.is-invalid{width:calc(3.75rem + 1.5em)}.was-validated .form-check-input:invalid,.form-check-input.is-invalid{border-color:#dc3545}.was-validated .form-check-input:invalid:checked,.form-check-input.is-invalid:checked{background-color:#dc3545}.was-validated .form-check-input:invalid:focus,.form-check-input.is-invalid:focus{box-shadow:0 0 0 .25rem #dc354540}.was-validated .form-check-input:invalid~.form-check-label,.form-check-input.is-invalid~.form-check-label{color:#dc3545}.form-check-inline .form-check-input~.invalid-feedback{margin-left:.5em}.was-validated .input-group>.form-control:not(:focus):invalid,.input-group>.form-control:not(:focus).is-invalid,.was-validated .input-group>.form-select:not(:focus):invalid,.input-group>.form-select:not(:focus).is-invalid,.was-validated .input-group>.form-floating:not(:focus-within):invalid,.input-group>.form-floating:not(:focus-within).is-invalid{z-index:4}.btn{--bs-btn-padding-x: .75rem;--bs-btn-padding-y: .375rem;--bs-btn-font-family: ;--bs-btn-font-size: 1rem;--bs-btn-font-weight: 400;--bs-btn-line-height: 1.5;--bs-btn-color: #212529;--bs-btn-bg: transparent;--bs-btn-border-width: 1px;--bs-btn-border-color: transparent;--bs-btn-border-radius: .375rem;--bs-btn-hover-border-color: transparent;--bs-btn-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 1px rgba(0, 0, 0, .075);--bs-btn-disabled-opacity: .65;--bs-btn-focus-box-shadow: 0 0 0 .25rem rgba(var(--bs-btn-focus-shadow-rgb), .5);display:inline-block;padding:var(--bs-btn-padding-y) var(--bs-btn-padding-x);font-family:var(--bs-btn-font-family);font-size:var(--bs-btn-font-size);font-weight:var(--bs-btn-font-weight);line-height:var(--bs-btn-line-height);color:var(--bs-btn-color);text-align:center;text-decoration:none;vertical-align:middle;cursor:pointer;-webkit-user-select:none;user-select:none;border:var(--bs-btn-border-width) solid var(--bs-btn-border-color);border-radius:var(--bs-btn-border-radius);background-color:var(--bs-btn-bg);transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion: reduce){.btn{transition:none}}.btn:hover{color:var(--bs-btn-hover-color);background-color:var(--bs-btn-hover-bg);border-color:var(--bs-btn-hover-border-color)}.btn-check+.btn:hover{color:var(--bs-btn-color);background-color:var(--bs-btn-bg);border-color:var(--bs-btn-border-color)}.btn:focus-visible{color:var(--bs-btn-hover-color);background-color:var(--bs-btn-hover-bg);border-color:var(--bs-btn-hover-border-color);outline:0;box-shadow:var(--bs-btn-focus-box-shadow)}.btn-check:focus-visible+.btn{border-color:var(--bs-btn-hover-border-color);outline:0;box-shadow:var(--bs-btn-focus-box-shadow)}.btn-check:checked+.btn,:not(.btn-check)+.btn:active,.btn:first-child:active,.btn.active,.btn.show{color:var(--bs-btn-active-color);background-color:var(--bs-btn-active-bg);border-color:var(--bs-btn-active-border-color)}.btn-check:checked+.btn:focus-visible,:not(.btn-check)+.btn:active:focus-visible,.btn:first-child:active:focus-visible,.btn.active:focus-visible,.btn.show:focus-visible{box-shadow:var(--bs-btn-focus-box-shadow)}.btn:disabled,.btn.disabled,fieldset:disabled .btn{color:var(--bs-btn-disabled-color);pointer-events:none;background-color:var(--bs-btn-disabled-bg);border-color:var(--bs-btn-disabled-border-color);opacity:var(--bs-btn-disabled-opacity)}.btn-primary{--bs-btn-color: #000;--bs-btn-bg: #4696e5;--bs-btn-border-color: #4696e5;--bs-btn-hover-color: #000;--bs-btn-hover-bg: #62a6e9;--bs-btn-hover-border-color: #59a1e8;--bs-btn-focus-shadow-rgb: 60, 128, 195;--bs-btn-active-color: #000;--bs-btn-active-bg: #6babea;--bs-btn-active-border-color: #59a1e8;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #000;--bs-btn-disabled-bg: #4696e5;--bs-btn-disabled-border-color: #4696e5}.btn-secondary{--bs-btn-color: #fff;--bs-btn-bg: #6c757d;--bs-btn-border-color: #6c757d;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #5c636a;--bs-btn-hover-border-color: #565e64;--bs-btn-focus-shadow-rgb: 130, 138, 145;--bs-btn-active-color: #fff;--bs-btn-active-bg: #565e64;--bs-btn-active-border-color: #51585e;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #fff;--bs-btn-disabled-bg: #6c757d;--bs-btn-disabled-border-color: #6c757d}.btn-success{--bs-btn-color: #fff;--bs-btn-bg: #198754;--bs-btn-border-color: #198754;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #157347;--bs-btn-hover-border-color: #146c43;--bs-btn-focus-shadow-rgb: 60, 153, 110;--bs-btn-active-color: #fff;--bs-btn-active-bg: #146c43;--bs-btn-active-border-color: #13653f;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #fff;--bs-btn-disabled-bg: #198754;--bs-btn-disabled-border-color: #198754}.btn-info{--bs-btn-color: #000;--bs-btn-bg: #0dcaf0;--bs-btn-border-color: #0dcaf0;--bs-btn-hover-color: #000;--bs-btn-hover-bg: #31d2f2;--bs-btn-hover-border-color: #25cff2;--bs-btn-focus-shadow-rgb: 11, 172, 204;--bs-btn-active-color: #000;--bs-btn-active-bg: #3dd5f3;--bs-btn-active-border-color: #25cff2;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #000;--bs-btn-disabled-bg: #0dcaf0;--bs-btn-disabled-border-color: #0dcaf0}.btn-warning{--bs-btn-color: #000;--bs-btn-bg: #ffc107;--bs-btn-border-color: #ffc107;--bs-btn-hover-color: #000;--bs-btn-hover-bg: #ffca2c;--bs-btn-hover-border-color: #ffc720;--bs-btn-focus-shadow-rgb: 217, 164, 6;--bs-btn-active-color: #000;--bs-btn-active-bg: #ffcd39;--bs-btn-active-border-color: #ffc720;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #000;--bs-btn-disabled-bg: #ffc107;--bs-btn-disabled-border-color: #ffc107}.btn-danger{--bs-btn-color: #fff;--bs-btn-bg: #dc3545;--bs-btn-border-color: #dc3545;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #bb2d3b;--bs-btn-hover-border-color: #b02a37;--bs-btn-focus-shadow-rgb: 225, 83, 97;--bs-btn-active-color: #fff;--bs-btn-active-bg: #b02a37;--bs-btn-active-border-color: #a52834;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #fff;--bs-btn-disabled-bg: #dc3545;--bs-btn-disabled-border-color: #dc3545}.btn-light{--bs-btn-color: #000;--bs-btn-bg: #f8f9fa;--bs-btn-border-color: #f8f9fa;--bs-btn-hover-color: #000;--bs-btn-hover-bg: #d3d4d5;--bs-btn-hover-border-color: #c6c7c8;--bs-btn-focus-shadow-rgb: 211, 212, 213;--bs-btn-active-color: #000;--bs-btn-active-bg: #c6c7c8;--bs-btn-active-border-color: #babbbc;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #000;--bs-btn-disabled-bg: #f8f9fa;--bs-btn-disabled-border-color: #f8f9fa}.btn-dark{--bs-btn-color: #fff;--bs-btn-bg: #212529;--bs-btn-border-color: #212529;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #424649;--bs-btn-hover-border-color: #373b3e;--bs-btn-focus-shadow-rgb: 66, 70, 73;--bs-btn-active-color: #fff;--bs-btn-active-bg: #4d5154;--bs-btn-active-border-color: #373b3e;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #fff;--bs-btn-disabled-bg: #212529;--bs-btn-disabled-border-color: #212529}.btn-outline-primary{--bs-btn-color: #4696e5;--bs-btn-border-color: #4696e5;--bs-btn-hover-color: #000;--bs-btn-hover-bg: #4696e5;--bs-btn-hover-border-color: #4696e5;--bs-btn-focus-shadow-rgb: 70, 150, 229;--bs-btn-active-color: #000;--bs-btn-active-bg: #4696e5;--bs-btn-active-border-color: #4696e5;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #4696e5;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #4696e5;--bs-gradient: none}.btn-outline-secondary{--bs-btn-color: #6c757d;--bs-btn-border-color: #6c757d;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #6c757d;--bs-btn-hover-border-color: #6c757d;--bs-btn-focus-shadow-rgb: 108, 117, 125;--bs-btn-active-color: #fff;--bs-btn-active-bg: #6c757d;--bs-btn-active-border-color: #6c757d;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #6c757d;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #6c757d;--bs-gradient: none}.btn-outline-success{--bs-btn-color: #198754;--bs-btn-border-color: #198754;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #198754;--bs-btn-hover-border-color: #198754;--bs-btn-focus-shadow-rgb: 25, 135, 84;--bs-btn-active-color: #fff;--bs-btn-active-bg: #198754;--bs-btn-active-border-color: #198754;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #198754;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #198754;--bs-gradient: none}.btn-outline-info{--bs-btn-color: #0dcaf0;--bs-btn-border-color: #0dcaf0;--bs-btn-hover-color: #000;--bs-btn-hover-bg: #0dcaf0;--bs-btn-hover-border-color: #0dcaf0;--bs-btn-focus-shadow-rgb: 13, 202, 240;--bs-btn-active-color: #000;--bs-btn-active-bg: #0dcaf0;--bs-btn-active-border-color: #0dcaf0;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #0dcaf0;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #0dcaf0;--bs-gradient: none}.btn-outline-warning{--bs-btn-color: #ffc107;--bs-btn-border-color: #ffc107;--bs-btn-hover-color: #000;--bs-btn-hover-bg: #ffc107;--bs-btn-hover-border-color: #ffc107;--bs-btn-focus-shadow-rgb: 255, 193, 7;--bs-btn-active-color: #000;--bs-btn-active-bg: #ffc107;--bs-btn-active-border-color: #ffc107;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #ffc107;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #ffc107;--bs-gradient: none}.btn-outline-danger{--bs-btn-color: #dc3545;--bs-btn-border-color: #dc3545;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #dc3545;--bs-btn-hover-border-color: #dc3545;--bs-btn-focus-shadow-rgb: 220, 53, 69;--bs-btn-active-color: #fff;--bs-btn-active-bg: #dc3545;--bs-btn-active-border-color: #dc3545;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #dc3545;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #dc3545;--bs-gradient: none}.btn-outline-light{--bs-btn-color: #f8f9fa;--bs-btn-border-color: #f8f9fa;--bs-btn-hover-color: #000;--bs-btn-hover-bg: #f8f9fa;--bs-btn-hover-border-color: #f8f9fa;--bs-btn-focus-shadow-rgb: 248, 249, 250;--bs-btn-active-color: #000;--bs-btn-active-bg: #f8f9fa;--bs-btn-active-border-color: #f8f9fa;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #f8f9fa;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #f8f9fa;--bs-gradient: none}.btn-outline-dark{--bs-btn-color: #212529;--bs-btn-border-color: #212529;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #212529;--bs-btn-hover-border-color: #212529;--bs-btn-focus-shadow-rgb: 33, 37, 41;--bs-btn-active-color: #fff;--bs-btn-active-bg: #212529;--bs-btn-active-border-color: #212529;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #212529;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #212529;--bs-gradient: none}.btn-link{--bs-btn-font-weight: 400;--bs-btn-color: var(--bs-link-color);--bs-btn-bg: transparent;--bs-btn-border-color: transparent;--bs-btn-hover-color: var(--bs-link-hover-color);--bs-btn-hover-border-color: transparent;--bs-btn-active-color: var(--bs-link-hover-color);--bs-btn-active-border-color: transparent;--bs-btn-disabled-color: #6c757d;--bs-btn-disabled-border-color: transparent;--bs-btn-box-shadow: none;--bs-btn-focus-shadow-rgb: 60, 128, 195;text-decoration:underline}.btn-link:focus-visible{color:var(--bs-btn-color)}.btn-link:hover{color:var(--bs-btn-hover-color)}.btn-lg,.btn-group-lg>.btn{--bs-btn-padding-y: .5rem;--bs-btn-padding-x: 1rem;--bs-btn-font-size: 1.25rem;--bs-btn-border-radius: .5rem}.btn-sm,.btn-group-sm>.btn{--bs-btn-padding-y: .25rem;--bs-btn-padding-x: .5rem;--bs-btn-font-size: .875rem;--bs-btn-border-radius: .25rem}.fade{transition:opacity .15s linear}@media (prefers-reduced-motion: reduce){.fade{transition:none}}.fade:not(.show){opacity:0}.collapse:not(.show){display:none}.collapsing{height:0;overflow:hidden;transition:height .35s ease}@media (prefers-reduced-motion: reduce){.collapsing{transition:none}}.collapsing.collapse-horizontal{width:0;height:auto;transition:width .35s ease}@media (prefers-reduced-motion: reduce){.collapsing.collapse-horizontal{transition:none}}.dropup,.dropend,.dropdown,.dropstart,.dropup-center,.dropdown-center{position:relative}.dropdown-toggle{white-space:nowrap}.dropdown-toggle:after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";border-top:.3em solid;border-right:.3em solid transparent;border-bottom:0;border-left:.3em solid transparent}.dropdown-toggle:empty:after{margin-left:0}.dropdown-menu{--bs-dropdown-zindex: 1000;--bs-dropdown-min-width: 10rem;--bs-dropdown-padding-x: 0;--bs-dropdown-padding-y: .5rem;--bs-dropdown-spacer: .125rem;--bs-dropdown-font-size: 1rem;--bs-dropdown-color: #212529;--bs-dropdown-bg: #fff;--bs-dropdown-border-color: var(--bs-border-color-translucent);--bs-dropdown-border-radius: .375rem;--bs-dropdown-border-width: 1px;--bs-dropdown-inner-border-radius:calc(.375rem - 1px);--bs-dropdown-divider-bg: var(--bs-border-color-translucent);--bs-dropdown-divider-margin-y: .5rem;--bs-dropdown-box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15);--bs-dropdown-link-color: #212529;--bs-dropdown-link-hover-color: #1e2125;--bs-dropdown-link-hover-bg: #e9ecef;--bs-dropdown-link-active-color: #fff;--bs-dropdown-link-active-bg: #4696e5;--bs-dropdown-link-disabled-color: #adb5bd;--bs-dropdown-item-padding-x: 1rem;--bs-dropdown-item-padding-y: .25rem;--bs-dropdown-header-color: #6c757d;--bs-dropdown-header-padding-x: 1rem;--bs-dropdown-header-padding-y: .5rem;position:absolute;z-index:var(--bs-dropdown-zindex);display:none;min-width:var(--bs-dropdown-min-width);padding:var(--bs-dropdown-padding-y) var(--bs-dropdown-padding-x);margin:0;font-size:var(--bs-dropdown-font-size);color:var(--bs-dropdown-color);text-align:left;list-style:none;background-color:var(--bs-dropdown-bg);background-clip:padding-box;border:var(--bs-dropdown-border-width) solid var(--bs-dropdown-border-color);border-radius:var(--bs-dropdown-border-radius)}.dropdown-menu[data-bs-popper]{top:100%;left:0;margin-top:var(--bs-dropdown-spacer)}.dropdown-menu-start{--bs-position: start}.dropdown-menu-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-end{--bs-position: end}.dropdown-menu-end[data-bs-popper]{right:0;left:auto}@media (min-width: 576px){.dropdown-menu-sm-start{--bs-position: start}.dropdown-menu-sm-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-sm-end{--bs-position: end}.dropdown-menu-sm-end[data-bs-popper]{right:0;left:auto}}@media (min-width: 768px){.dropdown-menu-md-start{--bs-position: start}.dropdown-menu-md-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-md-end{--bs-position: end}.dropdown-menu-md-end[data-bs-popper]{right:0;left:auto}}@media (min-width: 992px){.dropdown-menu-lg-start{--bs-position: start}.dropdown-menu-lg-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-lg-end{--bs-position: end}.dropdown-menu-lg-end[data-bs-popper]{right:0;left:auto}}@media (min-width: 1200px){.dropdown-menu-xl-start{--bs-position: start}.dropdown-menu-xl-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-xl-end{--bs-position: end}.dropdown-menu-xl-end[data-bs-popper]{right:0;left:auto}}@media (min-width: 1400px){.dropdown-menu-xxl-start{--bs-position: start}.dropdown-menu-xxl-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-xxl-end{--bs-position: end}.dropdown-menu-xxl-end[data-bs-popper]{right:0;left:auto}}.dropup .dropdown-menu[data-bs-popper]{top:auto;bottom:100%;margin-top:0;margin-bottom:var(--bs-dropdown-spacer)}.dropup .dropdown-toggle:after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";border-top:0;border-right:.3em solid transparent;border-bottom:.3em solid;border-left:.3em solid transparent}.dropup .dropdown-toggle:empty:after{margin-left:0}.dropend .dropdown-menu[data-bs-popper]{top:0;right:auto;left:100%;margin-top:0;margin-left:var(--bs-dropdown-spacer)}.dropend .dropdown-toggle:after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";border-top:.3em solid transparent;border-right:0;border-bottom:.3em solid transparent;border-left:.3em solid}.dropend .dropdown-toggle:empty:after{margin-left:0}.dropend .dropdown-toggle:after{vertical-align:0}.dropstart .dropdown-menu[data-bs-popper]{top:0;right:100%;left:auto;margin-top:0;margin-right:var(--bs-dropdown-spacer)}.dropstart .dropdown-toggle:after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:""}.dropstart .dropdown-toggle:after{display:none}.dropstart .dropdown-toggle:before{display:inline-block;margin-right:.255em;vertical-align:.255em;content:"";border-top:.3em solid transparent;border-right:.3em solid;border-bottom:.3em solid transparent}.dropstart .dropdown-toggle:empty:after{margin-left:0}.dropstart .dropdown-toggle:before{vertical-align:0}.dropdown-divider{height:0;margin:var(--bs-dropdown-divider-margin-y) 0;overflow:hidden;border-top:1px solid var(--bs-dropdown-divider-bg);opacity:1}.dropdown-item{display:block;width:100%;padding:var(--bs-dropdown-item-padding-y) var(--bs-dropdown-item-padding-x);clear:both;font-weight:400;color:var(--bs-dropdown-link-color);text-align:inherit;text-decoration:none;white-space:nowrap;background-color:transparent;border:0}.dropdown-item:hover,.dropdown-item:focus{color:var(--bs-dropdown-link-hover-color);background-color:var(--bs-dropdown-link-hover-bg)}.dropdown-item.active,.dropdown-item:active{color:var(--bs-dropdown-link-active-color);text-decoration:none;background-color:var(--bs-dropdown-link-active-bg)}.dropdown-item.disabled,.dropdown-item:disabled{color:var(--bs-dropdown-link-disabled-color);pointer-events:none;background-color:transparent}.dropdown-menu.show{display:block}.dropdown-header{display:block;padding:var(--bs-dropdown-header-padding-y) var(--bs-dropdown-header-padding-x);margin-bottom:0;font-size:.875rem;color:var(--bs-dropdown-header-color);white-space:nowrap}.dropdown-item-text{display:block;padding:var(--bs-dropdown-item-padding-y) var(--bs-dropdown-item-padding-x);color:var(--bs-dropdown-link-color)}.dropdown-menu-dark{--bs-dropdown-color: #dee2e6;--bs-dropdown-bg: #343a40;--bs-dropdown-border-color: var(--bs-border-color-translucent);--bs-dropdown-box-shadow: ;--bs-dropdown-link-color: #dee2e6;--bs-dropdown-link-hover-color: #fff;--bs-dropdown-divider-bg: var(--bs-border-color-translucent);--bs-dropdown-link-hover-bg: rgba(255, 255, 255, .15);--bs-dropdown-link-active-color: #fff;--bs-dropdown-link-active-bg: #4696e5;--bs-dropdown-link-disabled-color: #adb5bd;--bs-dropdown-header-color: #adb5bd}.btn-group,.btn-group-vertical{position:relative;display:inline-flex;vertical-align:middle}.btn-group>.btn,.btn-group-vertical>.btn{position:relative;flex:1 1 auto}.btn-group>.btn-check:checked+.btn,.btn-group>.btn-check:focus+.btn,.btn-group>.btn:hover,.btn-group>.btn:focus,.btn-group>.btn:active,.btn-group>.btn.active,.btn-group-vertical>.btn-check:checked+.btn,.btn-group-vertical>.btn-check:focus+.btn,.btn-group-vertical>.btn:hover,.btn-group-vertical>.btn:focus,.btn-group-vertical>.btn:active,.btn-group-vertical>.btn.active{z-index:1}.btn-toolbar{display:flex;flex-wrap:wrap;justify-content:flex-start}.btn-toolbar .input-group{width:auto}.btn-group{border-radius:.375rem}.btn-group>:not(.btn-check:first-child)+.btn,.btn-group>.btn-group:not(:first-child){margin-left:-1px}.btn-group>.btn:not(:last-child):not(.dropdown-toggle),.btn-group>.btn.dropdown-toggle-split:first-child,.btn-group>.btn-group:not(:last-child)>.btn{border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn:nth-child(n+3),.btn-group>:not(.btn-check)+.btn,.btn-group>.btn-group:not(:first-child)>.btn{border-top-left-radius:0;border-bottom-left-radius:0}.dropdown-toggle-split{padding-right:.5625rem;padding-left:.5625rem}.dropdown-toggle-split:after,.dropup .dropdown-toggle-split:after,.dropend .dropdown-toggle-split:after{margin-left:0}.dropstart .dropdown-toggle-split:before{margin-right:0}.btn-sm+.dropdown-toggle-split,.btn-group-sm>.btn+.dropdown-toggle-split{padding-right:.375rem;padding-left:.375rem}.btn-lg+.dropdown-toggle-split,.btn-group-lg>.btn+.dropdown-toggle-split{padding-right:.75rem;padding-left:.75rem}.btn-group-vertical{flex-direction:column;align-items:flex-start;justify-content:center}.btn-group-vertical>.btn,.btn-group-vertical>.btn-group{width:100%}.btn-group-vertical>.btn:not(:first-child),.btn-group-vertical>.btn-group:not(:first-child){margin-top:-1px}.btn-group-vertical>.btn:not(:last-child):not(.dropdown-toggle),.btn-group-vertical>.btn-group:not(:last-child)>.btn{border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn~.btn,.btn-group-vertical>.btn-group:not(:first-child)>.btn{border-top-left-radius:0;border-top-right-radius:0}.nav{--bs-nav-link-padding-x: 1rem;--bs-nav-link-padding-y: .5rem;--bs-nav-link-font-weight: ;--bs-nav-link-color: var(--bs-link-color);--bs-nav-link-hover-color: var(--bs-link-hover-color);--bs-nav-link-disabled-color: #6c757d;display:flex;flex-wrap:wrap;padding-left:0;margin-bottom:0;list-style:none}.nav-link{display:block;padding:var(--bs-nav-link-padding-y) var(--bs-nav-link-padding-x);font-size:var(--bs-nav-link-font-size);font-weight:var(--bs-nav-link-font-weight);color:var(--bs-nav-link-color);text-decoration:none;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out}@media (prefers-reduced-motion: reduce){.nav-link{transition:none}}.nav-link:hover,.nav-link:focus{color:var(--bs-nav-link-hover-color)}.nav-link.disabled{color:var(--bs-nav-link-disabled-color);pointer-events:none;cursor:default}.nav-tabs{--bs-nav-tabs-border-width: 1px;--bs-nav-tabs-border-color: #dee2e6;--bs-nav-tabs-border-radius: .375rem;--bs-nav-tabs-link-hover-border-color: #e9ecef #e9ecef #dee2e6;--bs-nav-tabs-link-active-color: #495057;--bs-nav-tabs-link-active-bg: #fff;--bs-nav-tabs-link-active-border-color: #dee2e6 #dee2e6 #fff;border-bottom:var(--bs-nav-tabs-border-width) solid var(--bs-nav-tabs-border-color)}.nav-tabs .nav-link{margin-bottom:calc(-1 * var(--bs-nav-tabs-border-width));background:none;border:var(--bs-nav-tabs-border-width) solid transparent;border-top-left-radius:var(--bs-nav-tabs-border-radius);border-top-right-radius:var(--bs-nav-tabs-border-radius)}.nav-tabs .nav-link:hover,.nav-tabs .nav-link:focus{isolation:isolate;border-color:var(--bs-nav-tabs-link-hover-border-color)}.nav-tabs .nav-link.disabled,.nav-tabs .nav-link:disabled{color:var(--bs-nav-link-disabled-color);background-color:transparent;border-color:transparent}.nav-tabs .nav-link.active,.nav-tabs .nav-item.show .nav-link{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}.nav-tabs .dropdown-menu{margin-top:calc(-1 * var(--bs-nav-tabs-border-width));border-top-left-radius:0;border-top-right-radius:0}.nav-pills{--bs-nav-pills-border-radius: .375rem;--bs-nav-pills-link-active-color: #fff;--bs-nav-pills-link-active-bg: #4696e5}.nav-pills .nav-link{background:none;border:0;border-radius:var(--bs-nav-pills-border-radius)}.nav-pills .nav-link:disabled{color:var(--bs-nav-link-disabled-color);background-color:transparent;border-color:transparent}.nav-pills .nav-link.active,.nav-pills .show>.nav-link{color:var(--bs-nav-pills-link-active-color);background-color:var(--bs-nav-pills-link-active-bg)}.nav-fill>.nav-link,.nav-fill .nav-item{flex:1 1 auto;text-align:center}.nav-justified>.nav-link,.nav-justified .nav-item{flex-basis:0;flex-grow:1;text-align:center}.nav-fill .nav-item .nav-link,.nav-justified .nav-item .nav-link{width:100%}.tab-content>.tab-pane{display:none}.tab-content>.active{display:block}.navbar{--bs-navbar-padding-x: 0;--bs-navbar-padding-y: .5rem;--bs-navbar-color: rgba(0, 0, 0, .55);--bs-navbar-hover-color: rgba(0, 0, 0, .7);--bs-navbar-disabled-color: rgba(0, 0, 0, .3);--bs-navbar-active-color: rgba(0, 0, 0, .9);--bs-navbar-brand-padding-y: .3125rem;--bs-navbar-brand-margin-end: 1rem;--bs-navbar-brand-font-size: 1.25rem;--bs-navbar-brand-color: rgba(0, 0, 0, .9);--bs-navbar-brand-hover-color: rgba(0, 0, 0, .9);--bs-navbar-nav-link-padding-x: .5rem;--bs-navbar-toggler-padding-y: .25rem;--bs-navbar-toggler-padding-x: .75rem;--bs-navbar-toggler-font-size: 1.25rem;--bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");--bs-navbar-toggler-border-color: rgba(0, 0, 0, .1);--bs-navbar-toggler-border-radius: .375rem;--bs-navbar-toggler-focus-width: .25rem;--bs-navbar-toggler-transition: box-shadow .15s ease-in-out;position:relative;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;padding:var(--bs-navbar-padding-y) var(--bs-navbar-padding-x)}.navbar>.container,.navbar>.container-fluid,.navbar>.container-sm,.navbar>.container-md,.navbar>.container-lg,.navbar>.container-xl,.navbar>.container-xxl{display:flex;flex-wrap:inherit;align-items:center;justify-content:space-between}.navbar-brand{padding-top:var(--bs-navbar-brand-padding-y);padding-bottom:var(--bs-navbar-brand-padding-y);margin-right:var(--bs-navbar-brand-margin-end);font-size:var(--bs-navbar-brand-font-size);color:var(--bs-navbar-brand-color);text-decoration:none;white-space:nowrap}.navbar-brand:hover,.navbar-brand:focus{color:var(--bs-navbar-brand-hover-color)}.navbar-nav{--bs-nav-link-padding-x: 0;--bs-nav-link-padding-y: .5rem;--bs-nav-link-font-weight: ;--bs-nav-link-color: var(--bs-navbar-color);--bs-nav-link-hover-color: var(--bs-navbar-hover-color);--bs-nav-link-disabled-color: var(--bs-navbar-disabled-color);display:flex;flex-direction:column;padding-left:0;margin-bottom:0;list-style:none}.navbar-nav .show>.nav-link,.navbar-nav .nav-link.active{color:var(--bs-navbar-active-color)}.navbar-nav .dropdown-menu{position:static}.navbar-text{padding-top:.5rem;padding-bottom:.5rem;color:var(--bs-navbar-color)}.navbar-text a,.navbar-text a:hover,.navbar-text a:focus{color:var(--bs-navbar-active-color)}.navbar-collapse{flex-basis:100%;flex-grow:1;align-items:center}.navbar-toggler{padding:var(--bs-navbar-toggler-padding-y) var(--bs-navbar-toggler-padding-x);font-size:var(--bs-navbar-toggler-font-size);line-height:1;color:var(--bs-navbar-color);background-color:transparent;border:var(--bs-border-width) solid var(--bs-navbar-toggler-border-color);border-radius:var(--bs-navbar-toggler-border-radius);transition:var(--bs-navbar-toggler-transition)}@media (prefers-reduced-motion: reduce){.navbar-toggler{transition:none}}.navbar-toggler:hover{text-decoration:none}.navbar-toggler:focus{text-decoration:none;outline:0;box-shadow:0 0 0 var(--bs-navbar-toggler-focus-width)}.navbar-toggler-icon{display:inline-block;width:1.5em;height:1.5em;vertical-align:middle;background-image:var(--bs-navbar-toggler-icon-bg);background-repeat:no-repeat;background-position:center;background-size:100%}.navbar-nav-scroll{max-height:var(--bs-scroll-height, 75vh);overflow-y:auto}@media (min-width: 576px){.navbar-expand-sm{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-sm .navbar-nav{flex-direction:row}.navbar-expand-sm .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-sm .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand-sm .navbar-nav-scroll{overflow:visible}.navbar-expand-sm .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-sm .navbar-toggler{display:none}.navbar-expand-sm .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand-sm .offcanvas .offcanvas-header{display:none}.navbar-expand-sm .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}@media (min-width: 768px){.navbar-expand-md{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-md .navbar-nav{flex-direction:row}.navbar-expand-md .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-md .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand-md .navbar-nav-scroll{overflow:visible}.navbar-expand-md .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-md .navbar-toggler{display:none}.navbar-expand-md .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand-md .offcanvas .offcanvas-header{display:none}.navbar-expand-md .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}@media (min-width: 992px){.navbar-expand-lg{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-lg .navbar-nav{flex-direction:row}.navbar-expand-lg .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-lg .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand-lg .navbar-nav-scroll{overflow:visible}.navbar-expand-lg .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-lg .navbar-toggler{display:none}.navbar-expand-lg .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand-lg .offcanvas .offcanvas-header{display:none}.navbar-expand-lg .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}@media (min-width: 1200px){.navbar-expand-xl{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-xl .navbar-nav{flex-direction:row}.navbar-expand-xl .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-xl .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand-xl .navbar-nav-scroll{overflow:visible}.navbar-expand-xl .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-xl .navbar-toggler{display:none}.navbar-expand-xl .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand-xl .offcanvas .offcanvas-header{display:none}.navbar-expand-xl .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}@media (min-width: 1400px){.navbar-expand-xxl{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-xxl .navbar-nav{flex-direction:row}.navbar-expand-xxl .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-xxl .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand-xxl .navbar-nav-scroll{overflow:visible}.navbar-expand-xxl .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-xxl .navbar-toggler{display:none}.navbar-expand-xxl .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand-xxl .offcanvas .offcanvas-header{display:none}.navbar-expand-xxl .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}.navbar-expand{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand .navbar-nav{flex-direction:row}.navbar-expand .navbar-nav .dropdown-menu{position:absolute}.navbar-expand .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand .navbar-nav-scroll{overflow:visible}.navbar-expand .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand .navbar-toggler{display:none}.navbar-expand .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand .offcanvas .offcanvas-header{display:none}.navbar-expand .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}.navbar-dark{--bs-navbar-color: rgba(255, 255, 255, .55);--bs-navbar-hover-color: rgba(255, 255, 255, .75);--bs-navbar-disabled-color: rgba(255, 255, 255, .25);--bs-navbar-active-color: #fff;--bs-navbar-brand-color: #fff;--bs-navbar-brand-hover-color: #fff;--bs-navbar-toggler-border-color: rgba(255, 255, 255, .1);--bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e")}.card{--bs-card-spacer-y: 1rem;--bs-card-spacer-x: 1rem;--bs-card-title-spacer-y: .5rem;--bs-card-border-width: 1px;--bs-card-border-color: var(--bs-border-color-translucent);--bs-card-border-radius: .375rem;--bs-card-box-shadow: ;--bs-card-inner-border-radius:calc(.375rem - 1px);--bs-card-cap-padding-y: .5rem;--bs-card-cap-padding-x: 1rem;--bs-card-cap-bg: rgba(0, 0, 0, .03);--bs-card-cap-color: ;--bs-card-height: ;--bs-card-color: ;--bs-card-bg: #fff;--bs-card-img-overlay-padding: 1rem;--bs-card-group-margin: .75rem;position:relative;display:flex;flex-direction:column;min-width:0;height:var(--bs-card-height);word-wrap:break-word;background-color:var(--bs-card-bg);background-clip:border-box;border:var(--bs-card-border-width) solid var(--bs-card-border-color);border-radius:var(--bs-card-border-radius)}.card>hr{margin-right:0;margin-left:0}.card>.list-group{border-top:inherit;border-bottom:inherit}.card>.list-group:first-child{border-top-width:0;border-top-left-radius:var(--bs-card-inner-border-radius);border-top-right-radius:var(--bs-card-inner-border-radius)}.card>.list-group:last-child{border-bottom-width:0;border-bottom-right-radius:var(--bs-card-inner-border-radius);border-bottom-left-radius:var(--bs-card-inner-border-radius)}.card>.card-header+.list-group,.card>.list-group+.card-footer{border-top:0}.card-body{flex:1 1 auto;padding:var(--bs-card-spacer-y) var(--bs-card-spacer-x);color:var(--bs-card-color)}.card-title{margin-bottom:var(--bs-card-title-spacer-y)}.card-subtitle{margin-top:calc(-.5 * var(--bs-card-title-spacer-y));margin-bottom:0}.card-text:last-child{margin-bottom:0}.card-link+.card-link{margin-left:var(--bs-card-spacer-x)}.card-header{padding:var(--bs-card-cap-padding-y) var(--bs-card-cap-padding-x);margin-bottom:0;color:var(--bs-card-cap-color);background-color:var(--bs-card-cap-bg);border-bottom:var(--bs-card-border-width) solid var(--bs-card-border-color)}.card-header:first-child{border-radius:var(--bs-card-inner-border-radius) var(--bs-card-inner-border-radius) 0 0}.card-footer{padding:var(--bs-card-cap-padding-y) var(--bs-card-cap-padding-x);color:var(--bs-card-cap-color);background-color:var(--bs-card-cap-bg);border-top:var(--bs-card-border-width) solid var(--bs-card-border-color)}.card-footer:last-child{border-radius:0 0 var(--bs-card-inner-border-radius) var(--bs-card-inner-border-radius)}.card-header-tabs{margin-right:calc(-.5 * var(--bs-card-cap-padding-x));margin-bottom:calc(-1 * var(--bs-card-cap-padding-y));margin-left:calc(-.5 * var(--bs-card-cap-padding-x));border-bottom:0}.card-header-tabs .nav-link.active{background-color:var(--bs-card-bg);border-bottom-color:var(--bs-card-bg)}.card-header-pills{margin-right:calc(-.5 * var(--bs-card-cap-padding-x));margin-left:calc(-.5 * var(--bs-card-cap-padding-x))}.card-img-overlay{position:absolute;top:0;right:0;bottom:0;left:0;padding:var(--bs-card-img-overlay-padding);border-radius:var(--bs-card-inner-border-radius)}.card-img,.card-img-top,.card-img-bottom{width:100%}.card-img,.card-img-top{border-top-left-radius:var(--bs-card-inner-border-radius);border-top-right-radius:var(--bs-card-inner-border-radius)}.card-img,.card-img-bottom{border-bottom-right-radius:var(--bs-card-inner-border-radius);border-bottom-left-radius:var(--bs-card-inner-border-radius)}.card-group>.card{margin-bottom:var(--bs-card-group-margin)}@media (min-width: 576px){.card-group{display:flex;flex-flow:row wrap}.card-group>.card{flex:1 0 0%;margin-bottom:0}.card-group>.card+.card{margin-left:0;border-left:0}.card-group>.card:not(:last-child){border-top-right-radius:0;border-bottom-right-radius:0}.card-group>.card:not(:last-child) .card-img-top,.card-group>.card:not(:last-child) .card-header{border-top-right-radius:0}.card-group>.card:not(:last-child) .card-img-bottom,.card-group>.card:not(:last-child) .card-footer{border-bottom-right-radius:0}.card-group>.card:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.card-group>.card:not(:first-child) .card-img-top,.card-group>.card:not(:first-child) .card-header{border-top-left-radius:0}.card-group>.card:not(:first-child) .card-img-bottom,.card-group>.card:not(:first-child) .card-footer{border-bottom-left-radius:0}}.accordion{--bs-accordion-color: #212529;--bs-accordion-bg: #fff;--bs-accordion-transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out, border-radius .15s ease;--bs-accordion-border-color: var(--bs-border-color);--bs-accordion-border-width: 1px;--bs-accordion-border-radius: .375rem;--bs-accordion-inner-border-radius:calc(.375rem - 1px);--bs-accordion-btn-padding-x: 1.25rem;--bs-accordion-btn-padding-y: 1rem;--bs-accordion-btn-color: #212529;--bs-accordion-btn-bg: var(--bs-accordion-bg);--bs-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");--bs-accordion-btn-icon-width: 1.25rem;--bs-accordion-btn-icon-transform: rotate(-180deg);--bs-accordion-btn-icon-transition: transform .2s ease-in-out;--bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%233f87ce'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");--bs-accordion-btn-focus-border-color: #a3cbf2;--bs-accordion-btn-focus-box-shadow: 0 0 0 .25rem rgba(70, 150, 229, .25);--bs-accordion-body-padding-x: 1.25rem;--bs-accordion-body-padding-y: 1rem;--bs-accordion-active-color: #3f87ce;--bs-accordion-active-bg: #edf5fc}.accordion-button{position:relative;display:flex;align-items:center;width:100%;padding:var(--bs-accordion-btn-padding-y) var(--bs-accordion-btn-padding-x);font-size:1rem;color:var(--bs-accordion-btn-color);text-align:left;background-color:var(--bs-accordion-btn-bg);border:0;border-radius:0;overflow-anchor:none;transition:var(--bs-accordion-transition)}@media (prefers-reduced-motion: reduce){.accordion-button{transition:none}}.accordion-button:not(.collapsed){color:var(--bs-accordion-active-color);background-color:var(--bs-accordion-active-bg);box-shadow:inset 0 calc(-1 * var(--bs-accordion-border-width)) 0 var(--bs-accordion-border-color)}.accordion-button:not(.collapsed):after{background-image:var(--bs-accordion-btn-active-icon);transform:var(--bs-accordion-btn-icon-transform)}.accordion-button:after{flex-shrink:0;width:var(--bs-accordion-btn-icon-width);height:var(--bs-accordion-btn-icon-width);margin-left:auto;content:"";background-image:var(--bs-accordion-btn-icon);background-repeat:no-repeat;background-size:var(--bs-accordion-btn-icon-width);transition:var(--bs-accordion-btn-icon-transition)}@media (prefers-reduced-motion: reduce){.accordion-button:after{transition:none}}.accordion-button:hover{z-index:2}.accordion-button:focus{z-index:3;border-color:var(--bs-accordion-btn-focus-border-color);outline:0;box-shadow:var(--bs-accordion-btn-focus-box-shadow)}.accordion-header{margin-bottom:0}.accordion-item{color:var(--bs-accordion-color);background-color:var(--bs-accordion-bg);border:var(--bs-accordion-border-width) solid var(--bs-accordion-border-color)}.accordion-item:first-of-type{border-top-left-radius:var(--bs-accordion-border-radius);border-top-right-radius:var(--bs-accordion-border-radius)}.accordion-item:first-of-type .accordion-button{border-top-left-radius:var(--bs-accordion-inner-border-radius);border-top-right-radius:var(--bs-accordion-inner-border-radius)}.accordion-item:not(:first-of-type){border-top:0}.accordion-item:last-of-type{border-bottom-right-radius:var(--bs-accordion-border-radius);border-bottom-left-radius:var(--bs-accordion-border-radius)}.accordion-item:last-of-type .accordion-button.collapsed{border-bottom-right-radius:var(--bs-accordion-inner-border-radius);border-bottom-left-radius:var(--bs-accordion-inner-border-radius)}.accordion-item:last-of-type .accordion-collapse{border-bottom-right-radius:var(--bs-accordion-border-radius);border-bottom-left-radius:var(--bs-accordion-border-radius)}.accordion-body{padding:var(--bs-accordion-body-padding-y) var(--bs-accordion-body-padding-x)}.accordion-flush .accordion-collapse{border-width:0}.accordion-flush .accordion-item{border-right:0;border-left:0;border-radius:0}.accordion-flush .accordion-item:first-child{border-top:0}.accordion-flush .accordion-item:last-child{border-bottom:0}.accordion-flush .accordion-item .accordion-button,.accordion-flush .accordion-item .accordion-button.collapsed{border-radius:0}.breadcrumb{--bs-breadcrumb-padding-x: 0;--bs-breadcrumb-padding-y: 0;--bs-breadcrumb-margin-bottom: 1rem;--bs-breadcrumb-bg: ;--bs-breadcrumb-border-radius: ;--bs-breadcrumb-divider-color: #6c757d;--bs-breadcrumb-item-padding-x: .5rem;--bs-breadcrumb-item-active-color: #6c757d;display:flex;flex-wrap:wrap;padding:var(--bs-breadcrumb-padding-y) var(--bs-breadcrumb-padding-x);margin-bottom:var(--bs-breadcrumb-margin-bottom);font-size:var(--bs-breadcrumb-font-size);list-style:none;background-color:var(--bs-breadcrumb-bg);border-radius:var(--bs-breadcrumb-border-radius)}.breadcrumb-item+.breadcrumb-item{padding-left:var(--bs-breadcrumb-item-padding-x)}.breadcrumb-item+.breadcrumb-item:before{float:left;padding-right:var(--bs-breadcrumb-item-padding-x);color:var(--bs-breadcrumb-divider-color);content:var(--bs-breadcrumb-divider, "/")}.breadcrumb-item.active{color:var(--bs-breadcrumb-item-active-color)}.pagination{--bs-pagination-padding-x: .75rem;--bs-pagination-padding-y: .375rem;--bs-pagination-font-size: 1rem;--bs-pagination-color: var(--bs-link-color);--bs-pagination-bg: #fff;--bs-pagination-border-width: 1px;--bs-pagination-border-color: #dee2e6;--bs-pagination-border-radius: .375rem;--bs-pagination-hover-color: var(--bs-link-hover-color);--bs-pagination-hover-bg: #e9ecef;--bs-pagination-hover-border-color: #dee2e6;--bs-pagination-focus-color: var(--bs-link-hover-color);--bs-pagination-focus-bg: #e9ecef;--bs-pagination-focus-box-shadow: 0 0 0 .25rem rgba(70, 150, 229, .25);--bs-pagination-active-color: #fff;--bs-pagination-active-bg: #4696e5;--bs-pagination-active-border-color: #4696e5;--bs-pagination-disabled-color: #6c757d;--bs-pagination-disabled-bg: #fff;--bs-pagination-disabled-border-color: #dee2e6;display:flex;padding-left:0;list-style:none}.page-link{position:relative;display:block;padding:var(--bs-pagination-padding-y) var(--bs-pagination-padding-x);font-size:var(--bs-pagination-font-size);color:var(--bs-pagination-color);text-decoration:none;background-color:var(--bs-pagination-bg);border:var(--bs-pagination-border-width) solid var(--bs-pagination-border-color);transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion: reduce){.page-link{transition:none}}.page-link:hover{z-index:2;color:var(--bs-pagination-hover-color);background-color:var(--bs-pagination-hover-bg);border-color:var(--bs-pagination-hover-border-color)}.page-link:focus{z-index:3;color:var(--bs-pagination-focus-color);background-color:var(--bs-pagination-focus-bg);outline:0;box-shadow:var(--bs-pagination-focus-box-shadow)}.page-link.active,.active>.page-link{z-index:3;color:var(--bs-pagination-active-color);background-color:var(--bs-pagination-active-bg);border-color:var(--bs-pagination-active-border-color)}.page-link.disabled,.disabled>.page-link{color:var(--bs-pagination-disabled-color);pointer-events:none;background-color:var(--bs-pagination-disabled-bg);border-color:var(--bs-pagination-disabled-border-color)}.page-item:not(:first-child) .page-link{margin-left:-1px}.page-item:first-child .page-link{border-top-left-radius:var(--bs-pagination-border-radius);border-bottom-left-radius:var(--bs-pagination-border-radius)}.page-item:last-child .page-link{border-top-right-radius:var(--bs-pagination-border-radius);border-bottom-right-radius:var(--bs-pagination-border-radius)}.pagination-lg{--bs-pagination-padding-x: 1.5rem;--bs-pagination-padding-y: .75rem;--bs-pagination-font-size: 1.25rem;--bs-pagination-border-radius: .5rem}.pagination-sm{--bs-pagination-padding-x: .5rem;--bs-pagination-padding-y: .25rem;--bs-pagination-font-size: .875rem;--bs-pagination-border-radius: .25rem}.badge{--bs-badge-padding-x: .65em;--bs-badge-padding-y: .35em;--bs-badge-font-size: .75em;--bs-badge-font-weight: 700;--bs-badge-color: #fff;--bs-badge-border-radius: .375rem;display:inline-block;padding:var(--bs-badge-padding-y) var(--bs-badge-padding-x);font-size:var(--bs-badge-font-size);font-weight:var(--bs-badge-font-weight);line-height:1;color:var(--bs-badge-color);text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:var(--bs-badge-border-radius)}.badge:empty{display:none}.btn .badge{position:relative;top:-1px}.alert{--bs-alert-bg: transparent;--bs-alert-padding-x: 1rem;--bs-alert-padding-y: 1rem;--bs-alert-margin-bottom: 1rem;--bs-alert-color: inherit;--bs-alert-border-color: transparent;--bs-alert-border: 1px solid var(--bs-alert-border-color);--bs-alert-border-radius: .375rem;position:relative;padding:var(--bs-alert-padding-y) var(--bs-alert-padding-x);margin-bottom:var(--bs-alert-margin-bottom);color:var(--bs-alert-color);background-color:var(--bs-alert-bg);border:var(--bs-alert-border);border-radius:var(--bs-alert-border-radius)}.alert-heading{color:inherit}.alert-link{font-weight:700}.alert-dismissible{padding-right:3rem}.alert-dismissible .btn-close{position:absolute;top:0;right:0;z-index:2;padding:1.25rem 1rem}.alert-primary{--bs-alert-color: #2a5a89;--bs-alert-bg: #daeafa;--bs-alert-border-color: #c8e0f7}.alert-primary .alert-link{color:#22486e}.alert-secondary{--bs-alert-color: #41464b;--bs-alert-bg: #e2e3e5;--bs-alert-border-color: #d3d6d8}.alert-secondary .alert-link{color:#34383c}.alert-success{--bs-alert-color: #0f5132;--bs-alert-bg: #d1e7dd;--bs-alert-border-color: #badbcc}.alert-success .alert-link{color:#0c4128}.alert-info{--bs-alert-color: #055160;--bs-alert-bg: #cff4fc;--bs-alert-border-color: #b6effb}.alert-info .alert-link{color:#04414d}.alert-warning{--bs-alert-color: #664d03;--bs-alert-bg: #fff3cd;--bs-alert-border-color: #ffecb5}.alert-warning .alert-link{color:#523e02}.alert-danger{--bs-alert-color: #842029;--bs-alert-bg: #f8d7da;--bs-alert-border-color: #f5c2c7}.alert-danger .alert-link{color:#6a1a21}.alert-light{--bs-alert-color: #636464;--bs-alert-bg: #fefefe;--bs-alert-border-color: #fdfdfe}.alert-light .alert-link{color:#4f5050}.alert-dark{--bs-alert-color: #141619;--bs-alert-bg: #d3d3d4;--bs-alert-border-color: #bcbebf}.alert-dark .alert-link{color:#101214}@keyframes progress-bar-stripes{0%{background-position-x:1rem}}.progress{--bs-progress-height: 1rem;--bs-progress-font-size: .75rem;--bs-progress-bg: #e9ecef;--bs-progress-border-radius: .375rem;--bs-progress-box-shadow: inset 0 1px 2px rgba(0, 0, 0, .075);--bs-progress-bar-color: #fff;--bs-progress-bar-bg: #4696e5;--bs-progress-bar-transition: width .6s ease;display:flex;height:var(--bs-progress-height);overflow:hidden;font-size:var(--bs-progress-font-size);background-color:var(--bs-progress-bg);border-radius:var(--bs-progress-border-radius)}.progress-bar{display:flex;flex-direction:column;justify-content:center;overflow:hidden;color:var(--bs-progress-bar-color);text-align:center;white-space:nowrap;background-color:var(--bs-progress-bar-bg);transition:var(--bs-progress-bar-transition)}@media (prefers-reduced-motion: reduce){.progress-bar{transition:none}}.progress-bar-striped{background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-size:var(--bs-progress-height) var(--bs-progress-height)}.progress-bar-animated{animation:1s linear infinite progress-bar-stripes}@media (prefers-reduced-motion: reduce){.progress-bar-animated{animation:none}}.list-group{--bs-list-group-color: #212529;--bs-list-group-bg: #fff;--bs-list-group-border-color: rgba(0, 0, 0, .125);--bs-list-group-border-width: 1px;--bs-list-group-border-radius: .375rem;--bs-list-group-item-padding-x: 1rem;--bs-list-group-item-padding-y: .5rem;--bs-list-group-action-color: #495057;--bs-list-group-action-hover-color: #495057;--bs-list-group-action-hover-bg: #f8f9fa;--bs-list-group-action-active-color: #212529;--bs-list-group-action-active-bg: #e9ecef;--bs-list-group-disabled-color: #6c757d;--bs-list-group-disabled-bg: #fff;--bs-list-group-active-color: #fff;--bs-list-group-active-bg: #4696e5;--bs-list-group-active-border-color: #4696e5;display:flex;flex-direction:column;padding-left:0;margin-bottom:0;border-radius:var(--bs-list-group-border-radius)}.list-group-numbered{list-style-type:none;counter-reset:section}.list-group-numbered>.list-group-item:before{content:counters(section,".") ". ";counter-increment:section}.list-group-item-action{width:100%;color:var(--bs-list-group-action-color);text-align:inherit}.list-group-item-action:hover,.list-group-item-action:focus{z-index:1;color:var(--bs-list-group-action-hover-color);text-decoration:none;background-color:var(--bs-list-group-action-hover-bg)}.list-group-item-action:active{color:var(--bs-list-group-action-active-color);background-color:var(--bs-list-group-action-active-bg)}.list-group-item{position:relative;display:block;padding:var(--bs-list-group-item-padding-y) var(--bs-list-group-item-padding-x);color:var(--bs-list-group-color);text-decoration:none;background-color:var(--bs-list-group-bg);border:var(--bs-list-group-border-width) solid var(--bs-list-group-border-color)}.list-group-item:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.list-group-item:last-child{border-bottom-right-radius:inherit;border-bottom-left-radius:inherit}.list-group-item.disabled,.list-group-item:disabled{color:var(--bs-list-group-disabled-color);pointer-events:none;background-color:var(--bs-list-group-disabled-bg)}.list-group-item.active{z-index:2;color:var(--bs-list-group-active-color);background-color:var(--bs-list-group-active-bg);border-color:var(--bs-list-group-active-border-color)}.list-group-item+.list-group-item{border-top-width:0}.list-group-item+.list-group-item.active{margin-top:calc(-1 * var(--bs-list-group-border-width));border-top-width:var(--bs-list-group-border-width)}.list-group-horizontal{flex-direction:row}.list-group-horizontal>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal>.list-group-item.active{margin-top:0}.list-group-horizontal>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}@media (min-width: 576px){.list-group-horizontal-sm{flex-direction:row}.list-group-horizontal-sm>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-sm>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-sm>.list-group-item.active{margin-top:0}.list-group-horizontal-sm>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-sm>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}@media (min-width: 768px){.list-group-horizontal-md{flex-direction:row}.list-group-horizontal-md>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-md>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-md>.list-group-item.active{margin-top:0}.list-group-horizontal-md>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-md>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}@media (min-width: 992px){.list-group-horizontal-lg{flex-direction:row}.list-group-horizontal-lg>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-lg>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-lg>.list-group-item.active{margin-top:0}.list-group-horizontal-lg>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-lg>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}@media (min-width: 1200px){.list-group-horizontal-xl{flex-direction:row}.list-group-horizontal-xl>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-xl>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-xl>.list-group-item.active{margin-top:0}.list-group-horizontal-xl>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-xl>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}@media (min-width: 1400px){.list-group-horizontal-xxl{flex-direction:row}.list-group-horizontal-xxl>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-xxl>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-xxl>.list-group-item.active{margin-top:0}.list-group-horizontal-xxl>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-xxl>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}.list-group-flush{border-radius:0}.list-group-flush>.list-group-item{border-width:0 0 var(--bs-list-group-border-width)}.list-group-flush>.list-group-item:last-child{border-bottom-width:0}.list-group-item-primary{color:#2a5a89;background-color:#daeafa}.list-group-item-primary.list-group-item-action:hover,.list-group-item-primary.list-group-item-action:focus{color:#2a5a89;background-color:#c4d3e1}.list-group-item-primary.list-group-item-action.active{color:#fff;background-color:#2a5a89;border-color:#2a5a89}.list-group-item-secondary{color:#41464b;background-color:#e2e3e5}.list-group-item-secondary.list-group-item-action:hover,.list-group-item-secondary.list-group-item-action:focus{color:#41464b;background-color:#cbccce}.list-group-item-secondary.list-group-item-action.active{color:#fff;background-color:#41464b;border-color:#41464b}.list-group-item-success{color:#0f5132;background-color:#d1e7dd}.list-group-item-success.list-group-item-action:hover,.list-group-item-success.list-group-item-action:focus{color:#0f5132;background-color:#bcd0c7}.list-group-item-success.list-group-item-action.active{color:#fff;background-color:#0f5132;border-color:#0f5132}.list-group-item-info{color:#055160;background-color:#cff4fc}.list-group-item-info.list-group-item-action:hover,.list-group-item-info.list-group-item-action:focus{color:#055160;background-color:#badce3}.list-group-item-info.list-group-item-action.active{color:#fff;background-color:#055160;border-color:#055160}.list-group-item-warning{color:#664d03;background-color:#fff3cd}.list-group-item-warning.list-group-item-action:hover,.list-group-item-warning.list-group-item-action:focus{color:#664d03;background-color:#e6dbb9}.list-group-item-warning.list-group-item-action.active{color:#fff;background-color:#664d03;border-color:#664d03}.list-group-item-danger{color:#842029;background-color:#f8d7da}.list-group-item-danger.list-group-item-action:hover,.list-group-item-danger.list-group-item-action:focus{color:#842029;background-color:#dfc2c4}.list-group-item-danger.list-group-item-action.active{color:#fff;background-color:#842029;border-color:#842029}.list-group-item-light{color:#636464;background-color:#fefefe}.list-group-item-light.list-group-item-action:hover,.list-group-item-light.list-group-item-action:focus{color:#636464;background-color:#e5e5e5}.list-group-item-light.list-group-item-action.active{color:#fff;background-color:#636464;border-color:#636464}.list-group-item-dark{color:#141619;background-color:#d3d3d4}.list-group-item-dark.list-group-item-action:hover,.list-group-item-dark.list-group-item-action:focus{color:#141619;background-color:#bebebf}.list-group-item-dark.list-group-item-action.active{color:#fff;background-color:#141619;border-color:#141619}.btn-close{box-sizing:content-box;width:1em;height:1em;padding:.25em;color:#000;background:transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;border:0;border-radius:.375rem;opacity:.5}.btn-close:hover{color:#000;text-decoration:none;opacity:.75}.btn-close:focus{outline:0;box-shadow:0 0 0 .25rem #4696e540;opacity:1}.btn-close:disabled,.btn-close.disabled{pointer-events:none;-webkit-user-select:none;user-select:none;opacity:.25}.btn-close-white{filter:invert(1) grayscale(100%) brightness(200%)}.toast{--bs-toast-zindex: 1090;--bs-toast-padding-x: .75rem;--bs-toast-padding-y: .5rem;--bs-toast-spacing: 1.5rem;--bs-toast-max-width: 350px;--bs-toast-font-size: .875rem;--bs-toast-color: ;--bs-toast-bg: rgba(255, 255, 255, .85);--bs-toast-border-width: 1px;--bs-toast-border-color: var(--bs-border-color-translucent);--bs-toast-border-radius: .375rem;--bs-toast-box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15);--bs-toast-header-color: #6c757d;--bs-toast-header-bg: rgba(255, 255, 255, .85);--bs-toast-header-border-color: rgba(0, 0, 0, .05);width:var(--bs-toast-max-width);max-width:100%;font-size:var(--bs-toast-font-size);color:var(--bs-toast-color);pointer-events:auto;background-color:var(--bs-toast-bg);background-clip:padding-box;border:var(--bs-toast-border-width) solid var(--bs-toast-border-color);box-shadow:var(--bs-toast-box-shadow);border-radius:var(--bs-toast-border-radius)}.toast.showing{opacity:0}.toast:not(.show){display:none}.toast-container{--bs-toast-zindex: 1090;position:absolute;z-index:var(--bs-toast-zindex);width:max-content;max-width:100%;pointer-events:none}.toast-container>:not(:last-child){margin-bottom:var(--bs-toast-spacing)}.toast-header{display:flex;align-items:center;padding:var(--bs-toast-padding-y) var(--bs-toast-padding-x);color:var(--bs-toast-header-color);background-color:var(--bs-toast-header-bg);background-clip:padding-box;border-bottom:var(--bs-toast-border-width) solid var(--bs-toast-header-border-color);border-top-left-radius:calc(var(--bs-toast-border-radius) - var(--bs-toast-border-width));border-top-right-radius:calc(var(--bs-toast-border-radius) - var(--bs-toast-border-width))}.toast-header .btn-close{margin-right:calc(-.5 * var(--bs-toast-padding-x));margin-left:var(--bs-toast-padding-x)}.toast-body{padding:var(--bs-toast-padding-x);word-wrap:break-word}.modal{--bs-modal-zindex: 1055;--bs-modal-width: 500px;--bs-modal-padding: 1rem;--bs-modal-margin: .5rem;--bs-modal-color: ;--bs-modal-bg: #fff;--bs-modal-border-color: var(--bs-border-color-translucent);--bs-modal-border-width: 1px;--bs-modal-border-radius: .5rem;--bs-modal-box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075);--bs-modal-inner-border-radius:calc(.5rem - 1px);--bs-modal-header-padding-x: 1rem;--bs-modal-header-padding-y: 1rem;--bs-modal-header-padding: 1rem 1rem;--bs-modal-header-border-color: var(--bs-border-color);--bs-modal-header-border-width: 1px;--bs-modal-title-line-height: 1.5;--bs-modal-footer-gap: .5rem;--bs-modal-footer-bg: ;--bs-modal-footer-border-color: var(--bs-border-color);--bs-modal-footer-border-width: 1px;position:fixed;top:0;left:0;z-index:var(--bs-modal-zindex);display:none;width:100%;height:100%;overflow-x:hidden;overflow-y:auto;outline:0}.modal-dialog{position:relative;width:auto;margin:var(--bs-modal-margin);pointer-events:none}.modal.fade .modal-dialog{transition:transform .3s ease-out;transform:translateY(-50px)}@media (prefers-reduced-motion: reduce){.modal.fade .modal-dialog{transition:none}}.modal.show .modal-dialog{transform:none}.modal.modal-static .modal-dialog{transform:scale(1.02)}.modal-dialog-scrollable{height:calc(100% - var(--bs-modal-margin) * 2)}.modal-dialog-scrollable .modal-content{max-height:100%;overflow:hidden}.modal-dialog-scrollable .modal-body{overflow-y:auto}.modal-dialog-centered{display:flex;align-items:center;min-height:calc(100% - var(--bs-modal-margin) * 2)}.modal-content{position:relative;display:flex;flex-direction:column;width:100%;color:var(--bs-modal-color);pointer-events:auto;background-color:var(--bs-modal-bg);background-clip:padding-box;border:var(--bs-modal-border-width) solid var(--bs-modal-border-color);border-radius:var(--bs-modal-border-radius);outline:0}.modal-backdrop{--bs-backdrop-zindex: 1050;--bs-backdrop-bg: #000;--bs-backdrop-opacity: .5;position:fixed;top:0;left:0;z-index:var(--bs-backdrop-zindex);width:100vw;height:100vh;background-color:var(--bs-backdrop-bg)}.modal-backdrop.fade{opacity:0}.modal-backdrop.show{opacity:var(--bs-backdrop-opacity)}.modal-header{display:flex;flex-shrink:0;align-items:center;justify-content:space-between;padding:var(--bs-modal-header-padding);border-bottom:var(--bs-modal-header-border-width) solid var(--bs-modal-header-border-color);border-top-left-radius:var(--bs-modal-inner-border-radius);border-top-right-radius:var(--bs-modal-inner-border-radius)}.modal-header .btn-close{padding:calc(var(--bs-modal-header-padding-y) * .5) calc(var(--bs-modal-header-padding-x) * .5);margin:calc(-.5 * var(--bs-modal-header-padding-y)) calc(-.5 * var(--bs-modal-header-padding-x)) calc(-.5 * var(--bs-modal-header-padding-y)) auto}.modal-title{margin-bottom:0;line-height:var(--bs-modal-title-line-height)}.modal-body{position:relative;flex:1 1 auto;padding:var(--bs-modal-padding)}.modal-footer{display:flex;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;padding:calc(var(--bs-modal-padding) - var(--bs-modal-footer-gap) * .5);background-color:var(--bs-modal-footer-bg);border-top:var(--bs-modal-footer-border-width) solid var(--bs-modal-footer-border-color);border-bottom-right-radius:var(--bs-modal-inner-border-radius);border-bottom-left-radius:var(--bs-modal-inner-border-radius)}.modal-footer>*{margin:calc(var(--bs-modal-footer-gap) * .5)}@media (min-width: 576px){.modal{--bs-modal-margin: 1.75rem;--bs-modal-box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15)}.modal-dialog{max-width:var(--bs-modal-width);margin-right:auto;margin-left:auto}.modal-sm{--bs-modal-width: 300px}}@media (min-width: 992px){.modal-lg,.modal-xl{--bs-modal-width: 800px}}@media (min-width: 1200px){.modal-xl{--bs-modal-width: 1140px}}.modal-fullscreen{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen .modal-header,.modal-fullscreen .modal-footer{border-radius:0}.modal-fullscreen .modal-body{overflow-y:auto}@media (max-width: 575.98px){.modal-fullscreen-sm-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-sm-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-sm-down .modal-header,.modal-fullscreen-sm-down .modal-footer{border-radius:0}.modal-fullscreen-sm-down .modal-body{overflow-y:auto}}@media (max-width: 767.98px){.modal-fullscreen-md-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-md-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-md-down .modal-header,.modal-fullscreen-md-down .modal-footer{border-radius:0}.modal-fullscreen-md-down .modal-body{overflow-y:auto}}@media (max-width: 991.98px){.modal-fullscreen-lg-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-lg-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-lg-down .modal-header,.modal-fullscreen-lg-down .modal-footer{border-radius:0}.modal-fullscreen-lg-down .modal-body{overflow-y:auto}}@media (max-width: 1199.98px){.modal-fullscreen-xl-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-xl-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-xl-down .modal-header,.modal-fullscreen-xl-down .modal-footer{border-radius:0}.modal-fullscreen-xl-down .modal-body{overflow-y:auto}}@media (max-width: 1399.98px){.modal-fullscreen-xxl-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-xxl-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-xxl-down .modal-header,.modal-fullscreen-xxl-down .modal-footer{border-radius:0}.modal-fullscreen-xxl-down .modal-body{overflow-y:auto}}.tooltip{--bs-tooltip-zindex: 1080;--bs-tooltip-max-width: 200px;--bs-tooltip-padding-x: .5rem;--bs-tooltip-padding-y: .25rem;--bs-tooltip-margin: ;--bs-tooltip-font-size: .875rem;--bs-tooltip-color: #fff;--bs-tooltip-bg: #000;--bs-tooltip-border-radius: .375rem;--bs-tooltip-opacity: .9;--bs-tooltip-arrow-width: .8rem;--bs-tooltip-arrow-height: .4rem;z-index:var(--bs-tooltip-zindex);display:block;padding:var(--bs-tooltip-arrow-height);margin:var(--bs-tooltip-margin);font-family:var(--bs-font-sans-serif);font-style:normal;font-weight:400;line-height:1.5;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;white-space:normal;word-spacing:normal;line-break:auto;font-size:var(--bs-tooltip-font-size);word-wrap:break-word;opacity:0}.tooltip.show{opacity:var(--bs-tooltip-opacity)}.tooltip .tooltip-arrow{display:block;width:var(--bs-tooltip-arrow-width);height:var(--bs-tooltip-arrow-height)}.tooltip .tooltip-arrow:before{position:absolute;content:"";border-color:transparent;border-style:solid}.bs-tooltip-top .tooltip-arrow,.bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow{bottom:0}.bs-tooltip-top .tooltip-arrow:before,.bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow:before{top:-1px;border-width:var(--bs-tooltip-arrow-height) calc(var(--bs-tooltip-arrow-width) * .5) 0;border-top-color:var(--bs-tooltip-bg)}.bs-tooltip-end .tooltip-arrow,.bs-tooltip-auto[data-popper-placement^=right] .tooltip-arrow{left:0;width:var(--bs-tooltip-arrow-height);height:var(--bs-tooltip-arrow-width)}.bs-tooltip-end .tooltip-arrow:before,.bs-tooltip-auto[data-popper-placement^=right] .tooltip-arrow:before{right:-1px;border-width:calc(var(--bs-tooltip-arrow-width) * .5) var(--bs-tooltip-arrow-height) calc(var(--bs-tooltip-arrow-width) * .5) 0;border-right-color:var(--bs-tooltip-bg)}.bs-tooltip-bottom .tooltip-arrow,.bs-tooltip-auto[data-popper-placement^=bottom] .tooltip-arrow{top:0}.bs-tooltip-bottom .tooltip-arrow:before,.bs-tooltip-auto[data-popper-placement^=bottom] .tooltip-arrow:before{bottom:-1px;border-width:0 calc(var(--bs-tooltip-arrow-width) * .5) var(--bs-tooltip-arrow-height);border-bottom-color:var(--bs-tooltip-bg)}.bs-tooltip-start .tooltip-arrow,.bs-tooltip-auto[data-popper-placement^=left] .tooltip-arrow{right:0;width:var(--bs-tooltip-arrow-height);height:var(--bs-tooltip-arrow-width)}.bs-tooltip-start .tooltip-arrow:before,.bs-tooltip-auto[data-popper-placement^=left] .tooltip-arrow:before{left:-1px;border-width:calc(var(--bs-tooltip-arrow-width) * .5) 0 calc(var(--bs-tooltip-arrow-width) * .5) var(--bs-tooltip-arrow-height);border-left-color:var(--bs-tooltip-bg)}.tooltip-inner{max-width:var(--bs-tooltip-max-width);padding:var(--bs-tooltip-padding-y) var(--bs-tooltip-padding-x);color:var(--bs-tooltip-color);text-align:center;background-color:var(--bs-tooltip-bg);border-radius:var(--bs-tooltip-border-radius)}.popover{--bs-popover-zindex: 1070;--bs-popover-max-width: 276px;--bs-popover-font-size: .875rem;--bs-popover-bg: #fff;--bs-popover-border-width: 1px;--bs-popover-border-color: var(--bs-border-color-translucent);--bs-popover-border-radius: .5rem;--bs-popover-inner-border-radius:calc(.5rem - 1px);--bs-popover-box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15);--bs-popover-header-padding-x: 1rem;--bs-popover-header-padding-y: .5rem;--bs-popover-header-font-size: 1rem;--bs-popover-header-color: ;--bs-popover-header-bg: #f0f0f0;--bs-popover-body-padding-x: 1rem;--bs-popover-body-padding-y: 1rem;--bs-popover-body-color: #212529;--bs-popover-arrow-width: 1rem;--bs-popover-arrow-height: .5rem;--bs-popover-arrow-border: var(--bs-popover-border-color);z-index:var(--bs-popover-zindex);display:block;max-width:var(--bs-popover-max-width);font-family:var(--bs-font-sans-serif);font-style:normal;font-weight:400;line-height:1.5;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;white-space:normal;word-spacing:normal;line-break:auto;font-size:var(--bs-popover-font-size);word-wrap:break-word;background-color:var(--bs-popover-bg);background-clip:padding-box;border:var(--bs-popover-border-width) solid var(--bs-popover-border-color);border-radius:var(--bs-popover-border-radius)}.popover .popover-arrow{display:block;width:var(--bs-popover-arrow-width);height:var(--bs-popover-arrow-height)}.popover .popover-arrow:before,.popover .popover-arrow:after{position:absolute;display:block;content:"";border-color:transparent;border-style:solid;border-width:0}.bs-popover-top>.popover-arrow,.bs-popover-auto[data-popper-placement^=top]>.popover-arrow{bottom:calc(-1 * (var(--bs-popover-arrow-height)) - var(--bs-popover-border-width))}.bs-popover-top>.popover-arrow:before,.bs-popover-auto[data-popper-placement^=top]>.popover-arrow:before,.bs-popover-top>.popover-arrow:after,.bs-popover-auto[data-popper-placement^=top]>.popover-arrow:after{border-width:var(--bs-popover-arrow-height) calc(var(--bs-popover-arrow-width) * .5) 0}.bs-popover-top>.popover-arrow:before,.bs-popover-auto[data-popper-placement^=top]>.popover-arrow:before{bottom:0;border-top-color:var(--bs-popover-arrow-border)}.bs-popover-top>.popover-arrow:after,.bs-popover-auto[data-popper-placement^=top]>.popover-arrow:after{bottom:var(--bs-popover-border-width);border-top-color:var(--bs-popover-bg)}.bs-popover-end>.popover-arrow,.bs-popover-auto[data-popper-placement^=right]>.popover-arrow{left:calc(-1 * (var(--bs-popover-arrow-height)) - var(--bs-popover-border-width));width:var(--bs-popover-arrow-height);height:var(--bs-popover-arrow-width)}.bs-popover-end>.popover-arrow:before,.bs-popover-auto[data-popper-placement^=right]>.popover-arrow:before,.bs-popover-end>.popover-arrow:after,.bs-popover-auto[data-popper-placement^=right]>.popover-arrow:after{border-width:calc(var(--bs-popover-arrow-width) * .5) var(--bs-popover-arrow-height) calc(var(--bs-popover-arrow-width) * .5) 0}.bs-popover-end>.popover-arrow:before,.bs-popover-auto[data-popper-placement^=right]>.popover-arrow:before{left:0;border-right-color:var(--bs-popover-arrow-border)}.bs-popover-end>.popover-arrow:after,.bs-popover-auto[data-popper-placement^=right]>.popover-arrow:after{left:var(--bs-popover-border-width);border-right-color:var(--bs-popover-bg)}.bs-popover-bottom>.popover-arrow,.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow{top:calc(-1 * (var(--bs-popover-arrow-height)) - var(--bs-popover-border-width))}.bs-popover-bottom>.popover-arrow:before,.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow:before,.bs-popover-bottom>.popover-arrow:after,.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow:after{border-width:0 calc(var(--bs-popover-arrow-width) * .5) var(--bs-popover-arrow-height)}.bs-popover-bottom>.popover-arrow:before,.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow:before{top:0;border-bottom-color:var(--bs-popover-arrow-border)}.bs-popover-bottom>.popover-arrow:after,.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow:after{top:var(--bs-popover-border-width);border-bottom-color:var(--bs-popover-bg)}.bs-popover-bottom .popover-header:before,.bs-popover-auto[data-popper-placement^=bottom] .popover-header:before{position:absolute;top:0;left:50%;display:block;width:var(--bs-popover-arrow-width);margin-left:calc(-.5 * var(--bs-popover-arrow-width));content:"";border-bottom:var(--bs-popover-border-width) solid var(--bs-popover-header-bg)}.bs-popover-start>.popover-arrow,.bs-popover-auto[data-popper-placement^=left]>.popover-arrow{right:calc(-1 * (var(--bs-popover-arrow-height)) - var(--bs-popover-border-width));width:var(--bs-popover-arrow-height);height:var(--bs-popover-arrow-width)}.bs-popover-start>.popover-arrow:before,.bs-popover-auto[data-popper-placement^=left]>.popover-arrow:before,.bs-popover-start>.popover-arrow:after,.bs-popover-auto[data-popper-placement^=left]>.popover-arrow:after{border-width:calc(var(--bs-popover-arrow-width) * .5) 0 calc(var(--bs-popover-arrow-width) * .5) var(--bs-popover-arrow-height)}.bs-popover-start>.popover-arrow:before,.bs-popover-auto[data-popper-placement^=left]>.popover-arrow:before{right:0;border-left-color:var(--bs-popover-arrow-border)}.bs-popover-start>.popover-arrow:after,.bs-popover-auto[data-popper-placement^=left]>.popover-arrow:after{right:var(--bs-popover-border-width);border-left-color:var(--bs-popover-bg)}.popover-header{padding:var(--bs-popover-header-padding-y) var(--bs-popover-header-padding-x);margin-bottom:0;font-size:var(--bs-popover-header-font-size);color:var(--bs-popover-header-color);background-color:var(--bs-popover-header-bg);border-bottom:var(--bs-popover-border-width) solid var(--bs-popover-border-color);border-top-left-radius:var(--bs-popover-inner-border-radius);border-top-right-radius:var(--bs-popover-inner-border-radius)}.popover-header:empty{display:none}.popover-body{padding:var(--bs-popover-body-padding-y) var(--bs-popover-body-padding-x);color:var(--bs-popover-body-color)}.carousel{position:relative}.carousel.pointer-event{touch-action:pan-y}.carousel-inner{position:relative;width:100%;overflow:hidden}.carousel-inner:after{display:block;clear:both;content:""}.carousel-item{position:relative;display:none;float:left;width:100%;margin-right:-100%;backface-visibility:hidden;transition:transform .6s ease-in-out}@media (prefers-reduced-motion: reduce){.carousel-item{transition:none}}.carousel-item.active,.carousel-item-next,.carousel-item-prev{display:block}.carousel-item-next:not(.carousel-item-start),.active.carousel-item-end{transform:translate(100%)}.carousel-item-prev:not(.carousel-item-end),.active.carousel-item-start{transform:translate(-100%)}.carousel-fade .carousel-item{opacity:0;transition-property:opacity;transform:none}.carousel-fade .carousel-item.active,.carousel-fade .carousel-item-next.carousel-item-start,.carousel-fade .carousel-item-prev.carousel-item-end{z-index:1;opacity:1}.carousel-fade .active.carousel-item-start,.carousel-fade .active.carousel-item-end{z-index:0;opacity:0;transition:opacity 0s .6s}@media (prefers-reduced-motion: reduce){.carousel-fade .active.carousel-item-start,.carousel-fade .active.carousel-item-end{transition:none}}.carousel-control-prev,.carousel-control-next{position:absolute;top:0;bottom:0;z-index:1;display:flex;align-items:center;justify-content:center;width:15%;padding:0;color:#fff;text-align:center;background:none;border:0;opacity:.5;transition:opacity .15s ease}@media (prefers-reduced-motion: reduce){.carousel-control-prev,.carousel-control-next{transition:none}}.carousel-control-prev:hover,.carousel-control-prev:focus,.carousel-control-next:hover,.carousel-control-next:focus{color:#fff;text-decoration:none;outline:0;opacity:.9}.carousel-control-prev{left:0}.carousel-control-next{right:0}.carousel-control-prev-icon,.carousel-control-next-icon{display:inline-block;width:2rem;height:2rem;background-repeat:no-repeat;background-position:50%;background-size:100% 100%}.carousel-control-prev-icon{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e")}.carousel-control-next-icon{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e")}.carousel-indicators{position:absolute;right:0;bottom:0;left:0;z-index:2;display:flex;justify-content:center;padding:0;margin-right:15%;margin-bottom:1rem;margin-left:15%;list-style:none}.carousel-indicators [data-bs-target]{box-sizing:content-box;flex:0 1 auto;width:30px;height:3px;padding:0;margin-right:3px;margin-left:3px;text-indent:-999px;cursor:pointer;background-color:#fff;background-clip:padding-box;border:0;border-top:10px solid transparent;border-bottom:10px solid transparent;opacity:.5;transition:opacity .6s ease}@media (prefers-reduced-motion: reduce){.carousel-indicators [data-bs-target]{transition:none}}.carousel-indicators .active{opacity:1}.carousel-caption{position:absolute;right:15%;bottom:1.25rem;left:15%;padding-top:1.25rem;padding-bottom:1.25rem;color:#fff;text-align:center}.carousel-dark .carousel-control-prev-icon,.carousel-dark .carousel-control-next-icon{filter:invert(1) grayscale(100)}.carousel-dark .carousel-indicators [data-bs-target]{background-color:#000}.carousel-dark .carousel-caption{color:#000}.spinner-grow,.spinner-border{display:inline-block;width:var(--bs-spinner-width);height:var(--bs-spinner-height);vertical-align:var(--bs-spinner-vertical-align);border-radius:50%;animation:var(--bs-spinner-animation-speed) linear infinite var(--bs-spinner-animation-name)}@keyframes spinner-border{to{transform:rotate(360deg)}}.spinner-border{--bs-spinner-width: 2rem;--bs-spinner-height: 2rem;--bs-spinner-vertical-align: -.125em;--bs-spinner-border-width: .25em;--bs-spinner-animation-speed: .75s;--bs-spinner-animation-name: spinner-border;border:var(--bs-spinner-border-width) solid currentcolor;border-right-color:transparent}.spinner-border-sm{--bs-spinner-width: 1rem;--bs-spinner-height: 1rem;--bs-spinner-border-width: .2em}@keyframes spinner-grow{0%{transform:scale(0)}50%{opacity:1;transform:none}}.spinner-grow{--bs-spinner-width: 2rem;--bs-spinner-height: 2rem;--bs-spinner-vertical-align: -.125em;--bs-spinner-animation-speed: .75s;--bs-spinner-animation-name: spinner-grow;background-color:currentcolor;opacity:0}.spinner-grow-sm{--bs-spinner-width: 1rem;--bs-spinner-height: 1rem}@media (prefers-reduced-motion: reduce){.spinner-border,.spinner-grow{--bs-spinner-animation-speed: 1.5s}}.offcanvas,.offcanvas-xxl,.offcanvas-xl,.offcanvas-lg,.offcanvas-md,.offcanvas-sm{--bs-offcanvas-zindex: 1045;--bs-offcanvas-width: 400px;--bs-offcanvas-height: 30vh;--bs-offcanvas-padding-x: 1rem;--bs-offcanvas-padding-y: 1rem;--bs-offcanvas-color: ;--bs-offcanvas-bg: #fff;--bs-offcanvas-border-width: 1px;--bs-offcanvas-border-color: var(--bs-border-color-translucent);--bs-offcanvas-box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075)}@media (max-width: 575.98px){.offcanvas-sm{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:transform .3s ease-in-out}}@media (max-width: 575.98px) and (prefers-reduced-motion: reduce){.offcanvas-sm{transition:none}}@media (max-width: 575.98px){.offcanvas-sm.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(-100%)}.offcanvas-sm.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(100%)}.offcanvas-sm.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}.offcanvas-sm.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}.offcanvas-sm.showing,.offcanvas-sm.show:not(.hiding){transform:none}.offcanvas-sm.showing,.offcanvas-sm.hiding,.offcanvas-sm.show{visibility:visible}}@media (min-width: 576px){.offcanvas-sm{--bs-offcanvas-height: auto;--bs-offcanvas-border-width: 0;background-color:transparent!important}.offcanvas-sm .offcanvas-header{display:none}.offcanvas-sm .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}@media (max-width: 767.98px){.offcanvas-md{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:transform .3s ease-in-out}}@media (max-width: 767.98px) and (prefers-reduced-motion: reduce){.offcanvas-md{transition:none}}@media (max-width: 767.98px){.offcanvas-md.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(-100%)}.offcanvas-md.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(100%)}.offcanvas-md.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}.offcanvas-md.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}.offcanvas-md.showing,.offcanvas-md.show:not(.hiding){transform:none}.offcanvas-md.showing,.offcanvas-md.hiding,.offcanvas-md.show{visibility:visible}}@media (min-width: 768px){.offcanvas-md{--bs-offcanvas-height: auto;--bs-offcanvas-border-width: 0;background-color:transparent!important}.offcanvas-md .offcanvas-header{display:none}.offcanvas-md .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}@media (max-width: 991.98px){.offcanvas-lg{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:transform .3s ease-in-out}}@media (max-width: 991.98px) and (prefers-reduced-motion: reduce){.offcanvas-lg{transition:none}}@media (max-width: 991.98px){.offcanvas-lg.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(-100%)}.offcanvas-lg.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(100%)}.offcanvas-lg.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}.offcanvas-lg.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}.offcanvas-lg.showing,.offcanvas-lg.show:not(.hiding){transform:none}.offcanvas-lg.showing,.offcanvas-lg.hiding,.offcanvas-lg.show{visibility:visible}}@media (min-width: 992px){.offcanvas-lg{--bs-offcanvas-height: auto;--bs-offcanvas-border-width: 0;background-color:transparent!important}.offcanvas-lg .offcanvas-header{display:none}.offcanvas-lg .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}@media (max-width: 1199.98px){.offcanvas-xl{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:transform .3s ease-in-out}}@media (max-width: 1199.98px) and (prefers-reduced-motion: reduce){.offcanvas-xl{transition:none}}@media (max-width: 1199.98px){.offcanvas-xl.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(-100%)}.offcanvas-xl.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(100%)}.offcanvas-xl.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}.offcanvas-xl.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}.offcanvas-xl.showing,.offcanvas-xl.show:not(.hiding){transform:none}.offcanvas-xl.showing,.offcanvas-xl.hiding,.offcanvas-xl.show{visibility:visible}}@media (min-width: 1200px){.offcanvas-xl{--bs-offcanvas-height: auto;--bs-offcanvas-border-width: 0;background-color:transparent!important}.offcanvas-xl .offcanvas-header{display:none}.offcanvas-xl .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}@media (max-width: 1399.98px){.offcanvas-xxl{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:transform .3s ease-in-out}}@media (max-width: 1399.98px) and (prefers-reduced-motion: reduce){.offcanvas-xxl{transition:none}}@media (max-width: 1399.98px){.offcanvas-xxl.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(-100%)}.offcanvas-xxl.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(100%)}.offcanvas-xxl.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}.offcanvas-xxl.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}.offcanvas-xxl.showing,.offcanvas-xxl.show:not(.hiding){transform:none}.offcanvas-xxl.showing,.offcanvas-xxl.hiding,.offcanvas-xxl.show{visibility:visible}}@media (min-width: 1400px){.offcanvas-xxl{--bs-offcanvas-height: auto;--bs-offcanvas-border-width: 0;background-color:transparent!important}.offcanvas-xxl .offcanvas-header{display:none}.offcanvas-xxl .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}.offcanvas{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:transform .3s ease-in-out}@media (prefers-reduced-motion: reduce){.offcanvas{transition:none}}.offcanvas.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(-100%)}.offcanvas.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(100%)}.offcanvas.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}.offcanvas.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}.offcanvas.showing,.offcanvas.show:not(.hiding){transform:none}.offcanvas.showing,.offcanvas.hiding,.offcanvas.show{visibility:visible}.offcanvas-backdrop{position:fixed;top:0;left:0;z-index:1040;width:100vw;height:100vh;background-color:#000}.offcanvas-backdrop.fade{opacity:0}.offcanvas-backdrop.show{opacity:.5}.offcanvas-header{display:flex;align-items:center;justify-content:space-between;padding:var(--bs-offcanvas-padding-y) var(--bs-offcanvas-padding-x)}.offcanvas-header .btn-close{padding:calc(var(--bs-offcanvas-padding-y) * .5) calc(var(--bs-offcanvas-padding-x) * .5);margin-top:calc(-.5 * var(--bs-offcanvas-padding-y));margin-right:calc(-.5 * var(--bs-offcanvas-padding-x));margin-bottom:calc(-.5 * var(--bs-offcanvas-padding-y))}.offcanvas-title{margin-bottom:0;line-height:1.5}.offcanvas-body{flex-grow:1;padding:var(--bs-offcanvas-padding-y) var(--bs-offcanvas-padding-x);overflow-y:auto}.placeholder{display:inline-block;min-height:1em;vertical-align:middle;cursor:wait;background-color:currentcolor;opacity:.5}.placeholder.btn:before{display:inline-block;content:""}.placeholder-xs{min-height:.6em}.placeholder-sm{min-height:.8em}.placeholder-lg{min-height:1.2em}.placeholder-glow .placeholder{animation:placeholder-glow 2s ease-in-out infinite}@keyframes placeholder-glow{50%{opacity:.2}}.placeholder-wave{-webkit-mask-image:linear-gradient(130deg,#000 55%,rgba(0,0,0,.8) 75%,#000 95%);mask-image:linear-gradient(130deg,#000 55%,rgba(0,0,0,.8) 75%,#000 95%);-webkit-mask-size:200% 100%;mask-size:200% 100%;animation:placeholder-wave 2s linear infinite}@keyframes placeholder-wave{to{-webkit-mask-position:-200% 0%;mask-position:-200% 0%}}.clearfix:after{display:block;clear:both;content:""}.text-bg-primary{color:#000!important;background-color:RGBA(70,150,229,var(--bs-bg-opacity, 1))!important}.text-bg-secondary{color:#fff!important;background-color:RGBA(108,117,125,var(--bs-bg-opacity, 1))!important}.text-bg-success{color:#fff!important;background-color:RGBA(25,135,84,var(--bs-bg-opacity, 1))!important}.text-bg-info{color:#000!important;background-color:RGBA(13,202,240,var(--bs-bg-opacity, 1))!important}.text-bg-warning{color:#000!important;background-color:RGBA(255,193,7,var(--bs-bg-opacity, 1))!important}.text-bg-danger{color:#fff!important;background-color:RGBA(220,53,69,var(--bs-bg-opacity, 1))!important}.text-bg-light{color:#000!important;background-color:RGBA(248,249,250,var(--bs-bg-opacity, 1))!important}.text-bg-dark{color:#fff!important;background-color:RGBA(33,37,41,var(--bs-bg-opacity, 1))!important}.link-primary{color:#4696e5!important}.link-primary:hover,.link-primary:focus{color:#6babea!important}.link-secondary{color:#6c757d!important}.link-secondary:hover,.link-secondary:focus{color:#565e64!important}.link-success{color:#198754!important}.link-success:hover,.link-success:focus{color:#146c43!important}.link-info{color:#0dcaf0!important}.link-info:hover,.link-info:focus{color:#3dd5f3!important}.link-warning{color:#ffc107!important}.link-warning:hover,.link-warning:focus{color:#ffcd39!important}.link-danger{color:#dc3545!important}.link-danger:hover,.link-danger:focus{color:#b02a37!important}.link-light{color:#f8f9fa!important}.link-light:hover,.link-light:focus{color:#f9fafb!important}.link-dark{color:#212529!important}.link-dark:hover,.link-dark:focus{color:#1a1e21!important}.ratio{position:relative;width:100%}.ratio:before{display:block;padding-top:var(--bs-aspect-ratio);content:""}.ratio>*{position:absolute;top:0;left:0;width:100%;height:100%}.ratio-1x1{--bs-aspect-ratio: 100%}.ratio-4x3{--bs-aspect-ratio: 75%}.ratio-16x9{--bs-aspect-ratio: 56.25%}.ratio-21x9{--bs-aspect-ratio: 42.8571428571%}.fixed-top{position:fixed;top:0;right:0;left:0;z-index:1030}.fixed-bottom{position:fixed;right:0;bottom:0;left:0;z-index:1030}.sticky-top{position:sticky;top:0;z-index:1020}.sticky-bottom{position:sticky;bottom:0;z-index:1020}@media (min-width: 576px){.sticky-sm-top{position:sticky;top:0;z-index:1020}.sticky-sm-bottom{position:sticky;bottom:0;z-index:1020}}@media (min-width: 768px){.sticky-md-top{position:sticky;top:0;z-index:1020}.sticky-md-bottom{position:sticky;bottom:0;z-index:1020}}@media (min-width: 992px){.sticky-lg-top{position:sticky;top:0;z-index:1020}.sticky-lg-bottom{position:sticky;bottom:0;z-index:1020}}@media (min-width: 1200px){.sticky-xl-top{position:sticky;top:0;z-index:1020}.sticky-xl-bottom{position:sticky;bottom:0;z-index:1020}}@media (min-width: 1400px){.sticky-xxl-top{position:sticky;top:0;z-index:1020}.sticky-xxl-bottom{position:sticky;bottom:0;z-index:1020}}.hstack{display:flex;flex-direction:row;align-items:center;align-self:stretch}.vstack{display:flex;flex:1 1 auto;flex-direction:column;align-self:stretch}.visually-hidden,.visually-hidden-focusable:not(:focus):not(:focus-within){position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.stretched-link:after{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;content:""}.text-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vr{display:inline-block;align-self:stretch;width:1px;min-height:1em;background-color:currentcolor;opacity:.25}.align-baseline{vertical-align:baseline!important}.align-top{vertical-align:top!important}.align-middle{vertical-align:middle!important}.align-bottom{vertical-align:bottom!important}.align-text-bottom{vertical-align:text-bottom!important}.align-text-top{vertical-align:text-top!important}.float-start{float:left!important}.float-end{float:right!important}.float-none{float:none!important}.opacity-0{opacity:0!important}.opacity-25{opacity:.25!important}.opacity-50{opacity:.5!important}.opacity-75{opacity:.75!important}.opacity-100{opacity:1!important}.overflow-auto{overflow:auto!important}.overflow-hidden{overflow:hidden!important}.overflow-visible{overflow:visible!important}.overflow-scroll{overflow:scroll!important}.d-inline{display:inline!important}.d-inline-block{display:inline-block!important}.d-block{display:block!important}.d-grid{display:grid!important}.d-table{display:table!important}.d-table-row{display:table-row!important}.d-table-cell{display:table-cell!important}.d-flex{display:flex!important}.d-inline-flex{display:inline-flex!important}.d-none{display:none!important}.shadow{box-shadow:0 .5rem 1rem #00000026!important}.shadow-sm{box-shadow:0 .125rem .25rem #00000013!important}.shadow-lg{box-shadow:0 1rem 3rem #0000002d!important}.shadow-none{box-shadow:none!important}.position-static{position:static!important}.position-relative{position:relative!important}.position-absolute{position:absolute!important}.position-fixed{position:fixed!important}.position-sticky{position:sticky!important}.top-0{top:0!important}.top-50{top:50%!important}.top-100{top:100%!important}.bottom-0{bottom:0!important}.bottom-50{bottom:50%!important}.bottom-100{bottom:100%!important}.start-0{left:0!important}.start-50{left:50%!important}.start-100{left:100%!important}.end-0{right:0!important}.end-50{right:50%!important}.end-100{right:100%!important}.translate-middle{transform:translate(-50%,-50%)!important}.translate-middle-x{transform:translate(-50%)!important}.translate-middle-y{transform:translateY(-50%)!important}.border{border:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-0{border:0!important}.border-top{border-top:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-top-0{border-top:0!important}.border-end{border-right:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-end-0{border-right:0!important}.border-bottom{border-bottom:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-bottom-0{border-bottom:0!important}.border-start{border-left:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-start-0{border-left:0!important}.border-primary{--bs-border-opacity: 1;border-color:rgba(var(--bs-primary-rgb),var(--bs-border-opacity))!important}.border-secondary{--bs-border-opacity: 1;border-color:rgba(var(--bs-secondary-rgb),var(--bs-border-opacity))!important}.border-success{--bs-border-opacity: 1;border-color:rgba(var(--bs-success-rgb),var(--bs-border-opacity))!important}.border-info{--bs-border-opacity: 1;border-color:rgba(var(--bs-info-rgb),var(--bs-border-opacity))!important}.border-warning{--bs-border-opacity: 1;border-color:rgba(var(--bs-warning-rgb),var(--bs-border-opacity))!important}.border-danger{--bs-border-opacity: 1;border-color:rgba(var(--bs-danger-rgb),var(--bs-border-opacity))!important}.border-light{--bs-border-opacity: 1;border-color:rgba(var(--bs-light-rgb),var(--bs-border-opacity))!important}.border-dark{--bs-border-opacity: 1;border-color:rgba(var(--bs-dark-rgb),var(--bs-border-opacity))!important}.border-white{--bs-border-opacity: 1;border-color:rgba(var(--bs-white-rgb),var(--bs-border-opacity))!important}.border-1{--bs-border-width: 1px}.border-2{--bs-border-width: 2px}.border-3{--bs-border-width: 3px}.border-4{--bs-border-width: 4px}.border-5{--bs-border-width: 5px}.border-opacity-10{--bs-border-opacity: .1}.border-opacity-25{--bs-border-opacity: .25}.border-opacity-50{--bs-border-opacity: .5}.border-opacity-75{--bs-border-opacity: .75}.border-opacity-100{--bs-border-opacity: 1}.w-25{width:25%!important}.w-50{width:50%!important}.w-75{width:75%!important}.w-100{width:100%!important}.w-auto{width:auto!important}.mw-100{max-width:100%!important}.vw-100{width:100vw!important}.min-vw-100{min-width:100vw!important}.h-25{height:25%!important}.h-50{height:50%!important}.h-75{height:75%!important}.h-100{height:100%!important}.h-auto{height:auto!important}.mh-100{max-height:100%!important}.vh-100{height:100vh!important}.min-vh-100{min-height:100vh!important}.flex-fill{flex:1 1 auto!important}.flex-row{flex-direction:row!important}.flex-column{flex-direction:column!important}.flex-row-reverse{flex-direction:row-reverse!important}.flex-column-reverse{flex-direction:column-reverse!important}.flex-grow-0{flex-grow:0!important}.flex-grow-1{flex-grow:1!important}.flex-shrink-0{flex-shrink:0!important}.flex-shrink-1{flex-shrink:1!important}.flex-wrap{flex-wrap:wrap!important}.flex-nowrap{flex-wrap:nowrap!important}.flex-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-start{justify-content:flex-start!important}.justify-content-end{justify-content:flex-end!important}.justify-content-center{justify-content:center!important}.justify-content-between{justify-content:space-between!important}.justify-content-around{justify-content:space-around!important}.justify-content-evenly{justify-content:space-evenly!important}.align-items-start{align-items:flex-start!important}.align-items-end{align-items:flex-end!important}.align-items-center{align-items:center!important}.align-items-baseline{align-items:baseline!important}.align-items-stretch{align-items:stretch!important}.align-content-start{align-content:flex-start!important}.align-content-end{align-content:flex-end!important}.align-content-center{align-content:center!important}.align-content-between{align-content:space-between!important}.align-content-around{align-content:space-around!important}.align-content-stretch{align-content:stretch!important}.align-self-auto{align-self:auto!important}.align-self-start{align-self:flex-start!important}.align-self-end{align-self:flex-end!important}.align-self-center{align-self:center!important}.align-self-baseline{align-self:baseline!important}.align-self-stretch{align-self:stretch!important}.order-first{order:-1!important}.order-0{order:0!important}.order-1{order:1!important}.order-2{order:2!important}.order-3{order:3!important}.order-4{order:4!important}.order-5{order:5!important}.order-last{order:6!important}.m-0{margin:0!important}.m-1{margin:.25rem!important}.m-2{margin:.5rem!important}.m-3{margin:1rem!important}.m-4{margin:1.5rem!important}.m-5{margin:3rem!important}.m-auto{margin:auto!important}.mx-0{margin-right:0!important;margin-left:0!important}.mx-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-3{margin-right:1rem!important;margin-left:1rem!important}.mx-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-5{margin-right:3rem!important;margin-left:3rem!important}.mx-auto{margin-right:auto!important;margin-left:auto!important}.my-0{margin-top:0!important;margin-bottom:0!important}.my-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-0{margin-top:0!important}.mt-1{margin-top:.25rem!important}.mt-2{margin-top:.5rem!important}.mt-3{margin-top:1rem!important}.mt-4{margin-top:1.5rem!important}.mt-5{margin-top:3rem!important}.mt-auto{margin-top:auto!important}.me-0{margin-right:0!important}.me-1{margin-right:.25rem!important}.me-2{margin-right:.5rem!important}.me-3{margin-right:1rem!important}.me-4{margin-right:1.5rem!important}.me-5{margin-right:3rem!important}.me-auto{margin-right:auto!important}.mb-0{margin-bottom:0!important}.mb-1{margin-bottom:.25rem!important}.mb-2{margin-bottom:.5rem!important}.mb-3{margin-bottom:1rem!important}.mb-4{margin-bottom:1.5rem!important}.mb-5{margin-bottom:3rem!important}.mb-auto{margin-bottom:auto!important}.ms-0{margin-left:0!important}.ms-1{margin-left:.25rem!important}.ms-2{margin-left:.5rem!important}.ms-3{margin-left:1rem!important}.ms-4{margin-left:1.5rem!important}.ms-5{margin-left:3rem!important}.ms-auto{margin-left:auto!important}.p-0{padding:0!important}.p-1{padding:.25rem!important}.p-2{padding:.5rem!important}.p-3{padding:1rem!important}.p-4{padding:1.5rem!important}.p-5{padding:3rem!important}.px-0{padding-right:0!important;padding-left:0!important}.px-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-3{padding-right:1rem!important;padding-left:1rem!important}.px-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-5{padding-right:3rem!important;padding-left:3rem!important}.py-0{padding-top:0!important;padding-bottom:0!important}.py-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-0{padding-top:0!important}.pt-1{padding-top:.25rem!important}.pt-2{padding-top:.5rem!important}.pt-3{padding-top:1rem!important}.pt-4{padding-top:1.5rem!important}.pt-5{padding-top:3rem!important}.pe-0{padding-right:0!important}.pe-1{padding-right:.25rem!important}.pe-2{padding-right:.5rem!important}.pe-3{padding-right:1rem!important}.pe-4{padding-right:1.5rem!important}.pe-5{padding-right:3rem!important}.pb-0{padding-bottom:0!important}.pb-1{padding-bottom:.25rem!important}.pb-2{padding-bottom:.5rem!important}.pb-3{padding-bottom:1rem!important}.pb-4{padding-bottom:1.5rem!important}.pb-5{padding-bottom:3rem!important}.ps-0{padding-left:0!important}.ps-1{padding-left:.25rem!important}.ps-2{padding-left:.5rem!important}.ps-3{padding-left:1rem!important}.ps-4{padding-left:1.5rem!important}.ps-5{padding-left:3rem!important}.gap-0{gap:0!important}.gap-1{gap:.25rem!important}.gap-2{gap:.5rem!important}.gap-3{gap:1rem!important}.gap-4{gap:1.5rem!important}.gap-5{gap:3rem!important}.font-monospace{font-family:var(--bs-font-monospace)!important}.fs-1{font-size:calc(1.375rem + 1.5vw)!important}.fs-2{font-size:calc(1.325rem + .9vw)!important}.fs-3{font-size:calc(1.3rem + .6vw)!important}.fs-4{font-size:calc(1.275rem + .3vw)!important}.fs-5{font-size:1.25rem!important}.fs-6{font-size:1rem!important}.fst-italic{font-style:italic!important}.fst-normal{font-style:normal!important}.fw-light{font-weight:300!important}.fw-lighter{font-weight:lighter!important}.fw-normal{font-weight:400!important}.fw-bold{font-weight:700!important}.fw-semibold{font-weight:600!important}.fw-bolder{font-weight:bolder!important}.lh-1{line-height:1!important}.lh-sm{line-height:1.25!important}.lh-base{line-height:1.5!important}.lh-lg{line-height:2!important}.text-start{text-align:left!important}.text-end{text-align:right!important}.text-center{text-align:center!important}.text-decoration-none{text-decoration:none!important}.text-decoration-underline{text-decoration:underline!important}.text-decoration-line-through{text-decoration:line-through!important}.text-lowercase{text-transform:lowercase!important}.text-uppercase{text-transform:uppercase!important}.text-capitalize{text-transform:capitalize!important}.text-wrap{white-space:normal!important}.text-nowrap{white-space:nowrap!important}.text-break{word-wrap:break-word!important;word-break:break-word!important}.text-primary{--bs-text-opacity: 1;color:rgba(var(--bs-primary-rgb),var(--bs-text-opacity))!important}.text-secondary{--bs-text-opacity: 1;color:rgba(var(--bs-secondary-rgb),var(--bs-text-opacity))!important}.text-success{--bs-text-opacity: 1;color:rgba(var(--bs-success-rgb),var(--bs-text-opacity))!important}.text-info{--bs-text-opacity: 1;color:rgba(var(--bs-info-rgb),var(--bs-text-opacity))!important}.text-warning{--bs-text-opacity: 1;color:rgba(var(--bs-warning-rgb),var(--bs-text-opacity))!important}.text-danger{--bs-text-opacity: 1;color:rgba(var(--bs-danger-rgb),var(--bs-text-opacity))!important}.text-light{--bs-text-opacity: 1;color:rgba(var(--bs-light-rgb),var(--bs-text-opacity))!important}.text-dark{--bs-text-opacity: 1;color:rgba(var(--bs-dark-rgb),var(--bs-text-opacity))!important}.text-black{--bs-text-opacity: 1;color:rgba(var(--bs-black-rgb),var(--bs-text-opacity))!important}.text-white{--bs-text-opacity: 1;color:rgba(var(--bs-white-rgb),var(--bs-text-opacity))!important}.text-body{--bs-text-opacity: 1;color:rgba(var(--bs-body-color-rgb),var(--bs-text-opacity))!important}.text-muted{--bs-text-opacity: 1;color:#6c757d!important}.text-black-50{--bs-text-opacity: 1;color:#00000080!important}.text-white-50{--bs-text-opacity: 1;color:#ffffff80!important}.text-reset{--bs-text-opacity: 1;color:inherit!important}.text-opacity-25{--bs-text-opacity: .25}.text-opacity-50{--bs-text-opacity: .5}.text-opacity-75{--bs-text-opacity: .75}.text-opacity-100{--bs-text-opacity: 1}.bg-primary{--bs-bg-opacity: 1;background-color:rgba(var(--bs-primary-rgb),var(--bs-bg-opacity))!important}.bg-secondary{--bs-bg-opacity: 1;background-color:rgba(var(--bs-secondary-rgb),var(--bs-bg-opacity))!important}.bg-success{--bs-bg-opacity: 1;background-color:rgba(var(--bs-success-rgb),var(--bs-bg-opacity))!important}.bg-info{--bs-bg-opacity: 1;background-color:rgba(var(--bs-info-rgb),var(--bs-bg-opacity))!important}.bg-warning{--bs-bg-opacity: 1;background-color:rgba(var(--bs-warning-rgb),var(--bs-bg-opacity))!important}.bg-danger{--bs-bg-opacity: 1;background-color:rgba(var(--bs-danger-rgb),var(--bs-bg-opacity))!important}.bg-light{--bs-bg-opacity: 1;background-color:rgba(var(--bs-light-rgb),var(--bs-bg-opacity))!important}.bg-dark{--bs-bg-opacity: 1;background-color:rgba(var(--bs-dark-rgb),var(--bs-bg-opacity))!important}.bg-black{--bs-bg-opacity: 1;background-color:rgba(var(--bs-black-rgb),var(--bs-bg-opacity))!important}.bg-white{--bs-bg-opacity: 1;background-color:rgba(var(--bs-white-rgb),var(--bs-bg-opacity))!important}.bg-body{--bs-bg-opacity: 1;background-color:rgba(var(--bs-body-bg-rgb),var(--bs-bg-opacity))!important}.bg-transparent{--bs-bg-opacity: 1;background-color:transparent!important}.bg-opacity-10{--bs-bg-opacity: .1}.bg-opacity-25{--bs-bg-opacity: .25}.bg-opacity-50{--bs-bg-opacity: .5}.bg-opacity-75{--bs-bg-opacity: .75}.bg-opacity-100{--bs-bg-opacity: 1}.bg-gradient{background-image:var(--bs-gradient)!important}.user-select-all{-webkit-user-select:all!important;user-select:all!important}.user-select-auto{-webkit-user-select:auto!important;user-select:auto!important}.user-select-none{-webkit-user-select:none!important;user-select:none!important}.pe-none{pointer-events:none!important}.pe-auto{pointer-events:auto!important}.rounded{border-radius:var(--bs-border-radius)!important}.rounded-0{border-radius:0!important}.rounded-1{border-radius:var(--bs-border-radius-sm)!important}.rounded-2{border-radius:var(--bs-border-radius)!important}.rounded-3{border-radius:var(--bs-border-radius-lg)!important}.rounded-4{border-radius:var(--bs-border-radius-xl)!important}.rounded-5{border-radius:var(--bs-border-radius-2xl)!important}.rounded-circle{border-radius:50%!important}.rounded-pill{border-radius:var(--bs-border-radius-pill)!important}.rounded-top{border-top-left-radius:var(--bs-border-radius)!important;border-top-right-radius:var(--bs-border-radius)!important}.rounded-end{border-top-right-radius:var(--bs-border-radius)!important;border-bottom-right-radius:var(--bs-border-radius)!important}.rounded-bottom{border-bottom-right-radius:var(--bs-border-radius)!important;border-bottom-left-radius:var(--bs-border-radius)!important}.rounded-start{border-bottom-left-radius:var(--bs-border-radius)!important;border-top-left-radius:var(--bs-border-radius)!important}.visible{visibility:visible!important}.invisible{visibility:hidden!important}@media (min-width: 576px){.float-sm-start{float:left!important}.float-sm-end{float:right!important}.float-sm-none{float:none!important}.d-sm-inline{display:inline!important}.d-sm-inline-block{display:inline-block!important}.d-sm-block{display:block!important}.d-sm-grid{display:grid!important}.d-sm-table{display:table!important}.d-sm-table-row{display:table-row!important}.d-sm-table-cell{display:table-cell!important}.d-sm-flex{display:flex!important}.d-sm-inline-flex{display:inline-flex!important}.d-sm-none{display:none!important}.flex-sm-fill{flex:1 1 auto!important}.flex-sm-row{flex-direction:row!important}.flex-sm-column{flex-direction:column!important}.flex-sm-row-reverse{flex-direction:row-reverse!important}.flex-sm-column-reverse{flex-direction:column-reverse!important}.flex-sm-grow-0{flex-grow:0!important}.flex-sm-grow-1{flex-grow:1!important}.flex-sm-shrink-0{flex-shrink:0!important}.flex-sm-shrink-1{flex-shrink:1!important}.flex-sm-wrap{flex-wrap:wrap!important}.flex-sm-nowrap{flex-wrap:nowrap!important}.flex-sm-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-sm-start{justify-content:flex-start!important}.justify-content-sm-end{justify-content:flex-end!important}.justify-content-sm-center{justify-content:center!important}.justify-content-sm-between{justify-content:space-between!important}.justify-content-sm-around{justify-content:space-around!important}.justify-content-sm-evenly{justify-content:space-evenly!important}.align-items-sm-start{align-items:flex-start!important}.align-items-sm-end{align-items:flex-end!important}.align-items-sm-center{align-items:center!important}.align-items-sm-baseline{align-items:baseline!important}.align-items-sm-stretch{align-items:stretch!important}.align-content-sm-start{align-content:flex-start!important}.align-content-sm-end{align-content:flex-end!important}.align-content-sm-center{align-content:center!important}.align-content-sm-between{align-content:space-between!important}.align-content-sm-around{align-content:space-around!important}.align-content-sm-stretch{align-content:stretch!important}.align-self-sm-auto{align-self:auto!important}.align-self-sm-start{align-self:flex-start!important}.align-self-sm-end{align-self:flex-end!important}.align-self-sm-center{align-self:center!important}.align-self-sm-baseline{align-self:baseline!important}.align-self-sm-stretch{align-self:stretch!important}.order-sm-first{order:-1!important}.order-sm-0{order:0!important}.order-sm-1{order:1!important}.order-sm-2{order:2!important}.order-sm-3{order:3!important}.order-sm-4{order:4!important}.order-sm-5{order:5!important}.order-sm-last{order:6!important}.m-sm-0{margin:0!important}.m-sm-1{margin:.25rem!important}.m-sm-2{margin:.5rem!important}.m-sm-3{margin:1rem!important}.m-sm-4{margin:1.5rem!important}.m-sm-5{margin:3rem!important}.m-sm-auto{margin:auto!important}.mx-sm-0{margin-right:0!important;margin-left:0!important}.mx-sm-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-sm-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-sm-3{margin-right:1rem!important;margin-left:1rem!important}.mx-sm-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-sm-5{margin-right:3rem!important;margin-left:3rem!important}.mx-sm-auto{margin-right:auto!important;margin-left:auto!important}.my-sm-0{margin-top:0!important;margin-bottom:0!important}.my-sm-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-sm-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-sm-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-sm-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-sm-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-sm-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-sm-0{margin-top:0!important}.mt-sm-1{margin-top:.25rem!important}.mt-sm-2{margin-top:.5rem!important}.mt-sm-3{margin-top:1rem!important}.mt-sm-4{margin-top:1.5rem!important}.mt-sm-5{margin-top:3rem!important}.mt-sm-auto{margin-top:auto!important}.me-sm-0{margin-right:0!important}.me-sm-1{margin-right:.25rem!important}.me-sm-2{margin-right:.5rem!important}.me-sm-3{margin-right:1rem!important}.me-sm-4{margin-right:1.5rem!important}.me-sm-5{margin-right:3rem!important}.me-sm-auto{margin-right:auto!important}.mb-sm-0{margin-bottom:0!important}.mb-sm-1{margin-bottom:.25rem!important}.mb-sm-2{margin-bottom:.5rem!important}.mb-sm-3{margin-bottom:1rem!important}.mb-sm-4{margin-bottom:1.5rem!important}.mb-sm-5{margin-bottom:3rem!important}.mb-sm-auto{margin-bottom:auto!important}.ms-sm-0{margin-left:0!important}.ms-sm-1{margin-left:.25rem!important}.ms-sm-2{margin-left:.5rem!important}.ms-sm-3{margin-left:1rem!important}.ms-sm-4{margin-left:1.5rem!important}.ms-sm-5{margin-left:3rem!important}.ms-sm-auto{margin-left:auto!important}.p-sm-0{padding:0!important}.p-sm-1{padding:.25rem!important}.p-sm-2{padding:.5rem!important}.p-sm-3{padding:1rem!important}.p-sm-4{padding:1.5rem!important}.p-sm-5{padding:3rem!important}.px-sm-0{padding-right:0!important;padding-left:0!important}.px-sm-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-sm-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-sm-3{padding-right:1rem!important;padding-left:1rem!important}.px-sm-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-sm-5{padding-right:3rem!important;padding-left:3rem!important}.py-sm-0{padding-top:0!important;padding-bottom:0!important}.py-sm-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-sm-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-sm-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-sm-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-sm-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-sm-0{padding-top:0!important}.pt-sm-1{padding-top:.25rem!important}.pt-sm-2{padding-top:.5rem!important}.pt-sm-3{padding-top:1rem!important}.pt-sm-4{padding-top:1.5rem!important}.pt-sm-5{padding-top:3rem!important}.pe-sm-0{padding-right:0!important}.pe-sm-1{padding-right:.25rem!important}.pe-sm-2{padding-right:.5rem!important}.pe-sm-3{padding-right:1rem!important}.pe-sm-4{padding-right:1.5rem!important}.pe-sm-5{padding-right:3rem!important}.pb-sm-0{padding-bottom:0!important}.pb-sm-1{padding-bottom:.25rem!important}.pb-sm-2{padding-bottom:.5rem!important}.pb-sm-3{padding-bottom:1rem!important}.pb-sm-4{padding-bottom:1.5rem!important}.pb-sm-5{padding-bottom:3rem!important}.ps-sm-0{padding-left:0!important}.ps-sm-1{padding-left:.25rem!important}.ps-sm-2{padding-left:.5rem!important}.ps-sm-3{padding-left:1rem!important}.ps-sm-4{padding-left:1.5rem!important}.ps-sm-5{padding-left:3rem!important}.gap-sm-0{gap:0!important}.gap-sm-1{gap:.25rem!important}.gap-sm-2{gap:.5rem!important}.gap-sm-3{gap:1rem!important}.gap-sm-4{gap:1.5rem!important}.gap-sm-5{gap:3rem!important}.text-sm-start{text-align:left!important}.text-sm-end{text-align:right!important}.text-sm-center{text-align:center!important}}@media (min-width: 768px){.float-md-start{float:left!important}.float-md-end{float:right!important}.float-md-none{float:none!important}.d-md-inline{display:inline!important}.d-md-inline-block{display:inline-block!important}.d-md-block{display:block!important}.d-md-grid{display:grid!important}.d-md-table{display:table!important}.d-md-table-row{display:table-row!important}.d-md-table-cell{display:table-cell!important}.d-md-flex{display:flex!important}.d-md-inline-flex{display:inline-flex!important}.d-md-none{display:none!important}.flex-md-fill{flex:1 1 auto!important}.flex-md-row{flex-direction:row!important}.flex-md-column{flex-direction:column!important}.flex-md-row-reverse{flex-direction:row-reverse!important}.flex-md-column-reverse{flex-direction:column-reverse!important}.flex-md-grow-0{flex-grow:0!important}.flex-md-grow-1{flex-grow:1!important}.flex-md-shrink-0{flex-shrink:0!important}.flex-md-shrink-1{flex-shrink:1!important}.flex-md-wrap{flex-wrap:wrap!important}.flex-md-nowrap{flex-wrap:nowrap!important}.flex-md-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-md-start{justify-content:flex-start!important}.justify-content-md-end{justify-content:flex-end!important}.justify-content-md-center{justify-content:center!important}.justify-content-md-between{justify-content:space-between!important}.justify-content-md-around{justify-content:space-around!important}.justify-content-md-evenly{justify-content:space-evenly!important}.align-items-md-start{align-items:flex-start!important}.align-items-md-end{align-items:flex-end!important}.align-items-md-center{align-items:center!important}.align-items-md-baseline{align-items:baseline!important}.align-items-md-stretch{align-items:stretch!important}.align-content-md-start{align-content:flex-start!important}.align-content-md-end{align-content:flex-end!important}.align-content-md-center{align-content:center!important}.align-content-md-between{align-content:space-between!important}.align-content-md-around{align-content:space-around!important}.align-content-md-stretch{align-content:stretch!important}.align-self-md-auto{align-self:auto!important}.align-self-md-start{align-self:flex-start!important}.align-self-md-end{align-self:flex-end!important}.align-self-md-center{align-self:center!important}.align-self-md-baseline{align-self:baseline!important}.align-self-md-stretch{align-self:stretch!important}.order-md-first{order:-1!important}.order-md-0{order:0!important}.order-md-1{order:1!important}.order-md-2{order:2!important}.order-md-3{order:3!important}.order-md-4{order:4!important}.order-md-5{order:5!important}.order-md-last{order:6!important}.m-md-0{margin:0!important}.m-md-1{margin:.25rem!important}.m-md-2{margin:.5rem!important}.m-md-3{margin:1rem!important}.m-md-4{margin:1.5rem!important}.m-md-5{margin:3rem!important}.m-md-auto{margin:auto!important}.mx-md-0{margin-right:0!important;margin-left:0!important}.mx-md-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-md-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-md-3{margin-right:1rem!important;margin-left:1rem!important}.mx-md-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-md-5{margin-right:3rem!important;margin-left:3rem!important}.mx-md-auto{margin-right:auto!important;margin-left:auto!important}.my-md-0{margin-top:0!important;margin-bottom:0!important}.my-md-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-md-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-md-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-md-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-md-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-md-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-md-0{margin-top:0!important}.mt-md-1{margin-top:.25rem!important}.mt-md-2{margin-top:.5rem!important}.mt-md-3{margin-top:1rem!important}.mt-md-4{margin-top:1.5rem!important}.mt-md-5{margin-top:3rem!important}.mt-md-auto{margin-top:auto!important}.me-md-0{margin-right:0!important}.me-md-1{margin-right:.25rem!important}.me-md-2{margin-right:.5rem!important}.me-md-3{margin-right:1rem!important}.me-md-4{margin-right:1.5rem!important}.me-md-5{margin-right:3rem!important}.me-md-auto{margin-right:auto!important}.mb-md-0{margin-bottom:0!important}.mb-md-1{margin-bottom:.25rem!important}.mb-md-2{margin-bottom:.5rem!important}.mb-md-3{margin-bottom:1rem!important}.mb-md-4{margin-bottom:1.5rem!important}.mb-md-5{margin-bottom:3rem!important}.mb-md-auto{margin-bottom:auto!important}.ms-md-0{margin-left:0!important}.ms-md-1{margin-left:.25rem!important}.ms-md-2{margin-left:.5rem!important}.ms-md-3{margin-left:1rem!important}.ms-md-4{margin-left:1.5rem!important}.ms-md-5{margin-left:3rem!important}.ms-md-auto{margin-left:auto!important}.p-md-0{padding:0!important}.p-md-1{padding:.25rem!important}.p-md-2{padding:.5rem!important}.p-md-3{padding:1rem!important}.p-md-4{padding:1.5rem!important}.p-md-5{padding:3rem!important}.px-md-0{padding-right:0!important;padding-left:0!important}.px-md-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-md-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-md-3{padding-right:1rem!important;padding-left:1rem!important}.px-md-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-md-5{padding-right:3rem!important;padding-left:3rem!important}.py-md-0{padding-top:0!important;padding-bottom:0!important}.py-md-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-md-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-md-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-md-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-md-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-md-0{padding-top:0!important}.pt-md-1{padding-top:.25rem!important}.pt-md-2{padding-top:.5rem!important}.pt-md-3{padding-top:1rem!important}.pt-md-4{padding-top:1.5rem!important}.pt-md-5{padding-top:3rem!important}.pe-md-0{padding-right:0!important}.pe-md-1{padding-right:.25rem!important}.pe-md-2{padding-right:.5rem!important}.pe-md-3{padding-right:1rem!important}.pe-md-4{padding-right:1.5rem!important}.pe-md-5{padding-right:3rem!important}.pb-md-0{padding-bottom:0!important}.pb-md-1{padding-bottom:.25rem!important}.pb-md-2{padding-bottom:.5rem!important}.pb-md-3{padding-bottom:1rem!important}.pb-md-4{padding-bottom:1.5rem!important}.pb-md-5{padding-bottom:3rem!important}.ps-md-0{padding-left:0!important}.ps-md-1{padding-left:.25rem!important}.ps-md-2{padding-left:.5rem!important}.ps-md-3{padding-left:1rem!important}.ps-md-4{padding-left:1.5rem!important}.ps-md-5{padding-left:3rem!important}.gap-md-0{gap:0!important}.gap-md-1{gap:.25rem!important}.gap-md-2{gap:.5rem!important}.gap-md-3{gap:1rem!important}.gap-md-4{gap:1.5rem!important}.gap-md-5{gap:3rem!important}.text-md-start{text-align:left!important}.text-md-end{text-align:right!important}.text-md-center{text-align:center!important}}@media (min-width: 992px){.float-lg-start{float:left!important}.float-lg-end{float:right!important}.float-lg-none{float:none!important}.d-lg-inline{display:inline!important}.d-lg-inline-block{display:inline-block!important}.d-lg-block{display:block!important}.d-lg-grid{display:grid!important}.d-lg-table{display:table!important}.d-lg-table-row{display:table-row!important}.d-lg-table-cell{display:table-cell!important}.d-lg-flex{display:flex!important}.d-lg-inline-flex{display:inline-flex!important}.d-lg-none{display:none!important}.flex-lg-fill{flex:1 1 auto!important}.flex-lg-row{flex-direction:row!important}.flex-lg-column{flex-direction:column!important}.flex-lg-row-reverse{flex-direction:row-reverse!important}.flex-lg-column-reverse{flex-direction:column-reverse!important}.flex-lg-grow-0{flex-grow:0!important}.flex-lg-grow-1{flex-grow:1!important}.flex-lg-shrink-0{flex-shrink:0!important}.flex-lg-shrink-1{flex-shrink:1!important}.flex-lg-wrap{flex-wrap:wrap!important}.flex-lg-nowrap{flex-wrap:nowrap!important}.flex-lg-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-lg-start{justify-content:flex-start!important}.justify-content-lg-end{justify-content:flex-end!important}.justify-content-lg-center{justify-content:center!important}.justify-content-lg-between{justify-content:space-between!important}.justify-content-lg-around{justify-content:space-around!important}.justify-content-lg-evenly{justify-content:space-evenly!important}.align-items-lg-start{align-items:flex-start!important}.align-items-lg-end{align-items:flex-end!important}.align-items-lg-center{align-items:center!important}.align-items-lg-baseline{align-items:baseline!important}.align-items-lg-stretch{align-items:stretch!important}.align-content-lg-start{align-content:flex-start!important}.align-content-lg-end{align-content:flex-end!important}.align-content-lg-center{align-content:center!important}.align-content-lg-between{align-content:space-between!important}.align-content-lg-around{align-content:space-around!important}.align-content-lg-stretch{align-content:stretch!important}.align-self-lg-auto{align-self:auto!important}.align-self-lg-start{align-self:flex-start!important}.align-self-lg-end{align-self:flex-end!important}.align-self-lg-center{align-self:center!important}.align-self-lg-baseline{align-self:baseline!important}.align-self-lg-stretch{align-self:stretch!important}.order-lg-first{order:-1!important}.order-lg-0{order:0!important}.order-lg-1{order:1!important}.order-lg-2{order:2!important}.order-lg-3{order:3!important}.order-lg-4{order:4!important}.order-lg-5{order:5!important}.order-lg-last{order:6!important}.m-lg-0{margin:0!important}.m-lg-1{margin:.25rem!important}.m-lg-2{margin:.5rem!important}.m-lg-3{margin:1rem!important}.m-lg-4{margin:1.5rem!important}.m-lg-5{margin:3rem!important}.m-lg-auto{margin:auto!important}.mx-lg-0{margin-right:0!important;margin-left:0!important}.mx-lg-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-lg-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-lg-3{margin-right:1rem!important;margin-left:1rem!important}.mx-lg-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-lg-5{margin-right:3rem!important;margin-left:3rem!important}.mx-lg-auto{margin-right:auto!important;margin-left:auto!important}.my-lg-0{margin-top:0!important;margin-bottom:0!important}.my-lg-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-lg-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-lg-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-lg-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-lg-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-lg-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-lg-0{margin-top:0!important}.mt-lg-1{margin-top:.25rem!important}.mt-lg-2{margin-top:.5rem!important}.mt-lg-3{margin-top:1rem!important}.mt-lg-4{margin-top:1.5rem!important}.mt-lg-5{margin-top:3rem!important}.mt-lg-auto{margin-top:auto!important}.me-lg-0{margin-right:0!important}.me-lg-1{margin-right:.25rem!important}.me-lg-2{margin-right:.5rem!important}.me-lg-3{margin-right:1rem!important}.me-lg-4{margin-right:1.5rem!important}.me-lg-5{margin-right:3rem!important}.me-lg-auto{margin-right:auto!important}.mb-lg-0{margin-bottom:0!important}.mb-lg-1{margin-bottom:.25rem!important}.mb-lg-2{margin-bottom:.5rem!important}.mb-lg-3{margin-bottom:1rem!important}.mb-lg-4{margin-bottom:1.5rem!important}.mb-lg-5{margin-bottom:3rem!important}.mb-lg-auto{margin-bottom:auto!important}.ms-lg-0{margin-left:0!important}.ms-lg-1{margin-left:.25rem!important}.ms-lg-2{margin-left:.5rem!important}.ms-lg-3{margin-left:1rem!important}.ms-lg-4{margin-left:1.5rem!important}.ms-lg-5{margin-left:3rem!important}.ms-lg-auto{margin-left:auto!important}.p-lg-0{padding:0!important}.p-lg-1{padding:.25rem!important}.p-lg-2{padding:.5rem!important}.p-lg-3{padding:1rem!important}.p-lg-4{padding:1.5rem!important}.p-lg-5{padding:3rem!important}.px-lg-0{padding-right:0!important;padding-left:0!important}.px-lg-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-lg-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-lg-3{padding-right:1rem!important;padding-left:1rem!important}.px-lg-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-lg-5{padding-right:3rem!important;padding-left:3rem!important}.py-lg-0{padding-top:0!important;padding-bottom:0!important}.py-lg-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-lg-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-lg-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-lg-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-lg-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-lg-0{padding-top:0!important}.pt-lg-1{padding-top:.25rem!important}.pt-lg-2{padding-top:.5rem!important}.pt-lg-3{padding-top:1rem!important}.pt-lg-4{padding-top:1.5rem!important}.pt-lg-5{padding-top:3rem!important}.pe-lg-0{padding-right:0!important}.pe-lg-1{padding-right:.25rem!important}.pe-lg-2{padding-right:.5rem!important}.pe-lg-3{padding-right:1rem!important}.pe-lg-4{padding-right:1.5rem!important}.pe-lg-5{padding-right:3rem!important}.pb-lg-0{padding-bottom:0!important}.pb-lg-1{padding-bottom:.25rem!important}.pb-lg-2{padding-bottom:.5rem!important}.pb-lg-3{padding-bottom:1rem!important}.pb-lg-4{padding-bottom:1.5rem!important}.pb-lg-5{padding-bottom:3rem!important}.ps-lg-0{padding-left:0!important}.ps-lg-1{padding-left:.25rem!important}.ps-lg-2{padding-left:.5rem!important}.ps-lg-3{padding-left:1rem!important}.ps-lg-4{padding-left:1.5rem!important}.ps-lg-5{padding-left:3rem!important}.gap-lg-0{gap:0!important}.gap-lg-1{gap:.25rem!important}.gap-lg-2{gap:.5rem!important}.gap-lg-3{gap:1rem!important}.gap-lg-4{gap:1.5rem!important}.gap-lg-5{gap:3rem!important}.text-lg-start{text-align:left!important}.text-lg-end{text-align:right!important}.text-lg-center{text-align:center!important}}@media (min-width: 1200px){.float-xl-start{float:left!important}.float-xl-end{float:right!important}.float-xl-none{float:none!important}.d-xl-inline{display:inline!important}.d-xl-inline-block{display:inline-block!important}.d-xl-block{display:block!important}.d-xl-grid{display:grid!important}.d-xl-table{display:table!important}.d-xl-table-row{display:table-row!important}.d-xl-table-cell{display:table-cell!important}.d-xl-flex{display:flex!important}.d-xl-inline-flex{display:inline-flex!important}.d-xl-none{display:none!important}.flex-xl-fill{flex:1 1 auto!important}.flex-xl-row{flex-direction:row!important}.flex-xl-column{flex-direction:column!important}.flex-xl-row-reverse{flex-direction:row-reverse!important}.flex-xl-column-reverse{flex-direction:column-reverse!important}.flex-xl-grow-0{flex-grow:0!important}.flex-xl-grow-1{flex-grow:1!important}.flex-xl-shrink-0{flex-shrink:0!important}.flex-xl-shrink-1{flex-shrink:1!important}.flex-xl-wrap{flex-wrap:wrap!important}.flex-xl-nowrap{flex-wrap:nowrap!important}.flex-xl-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-xl-start{justify-content:flex-start!important}.justify-content-xl-end{justify-content:flex-end!important}.justify-content-xl-center{justify-content:center!important}.justify-content-xl-between{justify-content:space-between!important}.justify-content-xl-around{justify-content:space-around!important}.justify-content-xl-evenly{justify-content:space-evenly!important}.align-items-xl-start{align-items:flex-start!important}.align-items-xl-end{align-items:flex-end!important}.align-items-xl-center{align-items:center!important}.align-items-xl-baseline{align-items:baseline!important}.align-items-xl-stretch{align-items:stretch!important}.align-content-xl-start{align-content:flex-start!important}.align-content-xl-end{align-content:flex-end!important}.align-content-xl-center{align-content:center!important}.align-content-xl-between{align-content:space-between!important}.align-content-xl-around{align-content:space-around!important}.align-content-xl-stretch{align-content:stretch!important}.align-self-xl-auto{align-self:auto!important}.align-self-xl-start{align-self:flex-start!important}.align-self-xl-end{align-self:flex-end!important}.align-self-xl-center{align-self:center!important}.align-self-xl-baseline{align-self:baseline!important}.align-self-xl-stretch{align-self:stretch!important}.order-xl-first{order:-1!important}.order-xl-0{order:0!important}.order-xl-1{order:1!important}.order-xl-2{order:2!important}.order-xl-3{order:3!important}.order-xl-4{order:4!important}.order-xl-5{order:5!important}.order-xl-last{order:6!important}.m-xl-0{margin:0!important}.m-xl-1{margin:.25rem!important}.m-xl-2{margin:.5rem!important}.m-xl-3{margin:1rem!important}.m-xl-4{margin:1.5rem!important}.m-xl-5{margin:3rem!important}.m-xl-auto{margin:auto!important}.mx-xl-0{margin-right:0!important;margin-left:0!important}.mx-xl-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-xl-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-xl-3{margin-right:1rem!important;margin-left:1rem!important}.mx-xl-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-xl-5{margin-right:3rem!important;margin-left:3rem!important}.mx-xl-auto{margin-right:auto!important;margin-left:auto!important}.my-xl-0{margin-top:0!important;margin-bottom:0!important}.my-xl-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-xl-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-xl-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-xl-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-xl-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-xl-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-xl-0{margin-top:0!important}.mt-xl-1{margin-top:.25rem!important}.mt-xl-2{margin-top:.5rem!important}.mt-xl-3{margin-top:1rem!important}.mt-xl-4{margin-top:1.5rem!important}.mt-xl-5{margin-top:3rem!important}.mt-xl-auto{margin-top:auto!important}.me-xl-0{margin-right:0!important}.me-xl-1{margin-right:.25rem!important}.me-xl-2{margin-right:.5rem!important}.me-xl-3{margin-right:1rem!important}.me-xl-4{margin-right:1.5rem!important}.me-xl-5{margin-right:3rem!important}.me-xl-auto{margin-right:auto!important}.mb-xl-0{margin-bottom:0!important}.mb-xl-1{margin-bottom:.25rem!important}.mb-xl-2{margin-bottom:.5rem!important}.mb-xl-3{margin-bottom:1rem!important}.mb-xl-4{margin-bottom:1.5rem!important}.mb-xl-5{margin-bottom:3rem!important}.mb-xl-auto{margin-bottom:auto!important}.ms-xl-0{margin-left:0!important}.ms-xl-1{margin-left:.25rem!important}.ms-xl-2{margin-left:.5rem!important}.ms-xl-3{margin-left:1rem!important}.ms-xl-4{margin-left:1.5rem!important}.ms-xl-5{margin-left:3rem!important}.ms-xl-auto{margin-left:auto!important}.p-xl-0{padding:0!important}.p-xl-1{padding:.25rem!important}.p-xl-2{padding:.5rem!important}.p-xl-3{padding:1rem!important}.p-xl-4{padding:1.5rem!important}.p-xl-5{padding:3rem!important}.px-xl-0{padding-right:0!important;padding-left:0!important}.px-xl-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-xl-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-xl-3{padding-right:1rem!important;padding-left:1rem!important}.px-xl-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-xl-5{padding-right:3rem!important;padding-left:3rem!important}.py-xl-0{padding-top:0!important;padding-bottom:0!important}.py-xl-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-xl-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-xl-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-xl-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-xl-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-xl-0{padding-top:0!important}.pt-xl-1{padding-top:.25rem!important}.pt-xl-2{padding-top:.5rem!important}.pt-xl-3{padding-top:1rem!important}.pt-xl-4{padding-top:1.5rem!important}.pt-xl-5{padding-top:3rem!important}.pe-xl-0{padding-right:0!important}.pe-xl-1{padding-right:.25rem!important}.pe-xl-2{padding-right:.5rem!important}.pe-xl-3{padding-right:1rem!important}.pe-xl-4{padding-right:1.5rem!important}.pe-xl-5{padding-right:3rem!important}.pb-xl-0{padding-bottom:0!important}.pb-xl-1{padding-bottom:.25rem!important}.pb-xl-2{padding-bottom:.5rem!important}.pb-xl-3{padding-bottom:1rem!important}.pb-xl-4{padding-bottom:1.5rem!important}.pb-xl-5{padding-bottom:3rem!important}.ps-xl-0{padding-left:0!important}.ps-xl-1{padding-left:.25rem!important}.ps-xl-2{padding-left:.5rem!important}.ps-xl-3{padding-left:1rem!important}.ps-xl-4{padding-left:1.5rem!important}.ps-xl-5{padding-left:3rem!important}.gap-xl-0{gap:0!important}.gap-xl-1{gap:.25rem!important}.gap-xl-2{gap:.5rem!important}.gap-xl-3{gap:1rem!important}.gap-xl-4{gap:1.5rem!important}.gap-xl-5{gap:3rem!important}.text-xl-start{text-align:left!important}.text-xl-end{text-align:right!important}.text-xl-center{text-align:center!important}}@media (min-width: 1400px){.float-xxl-start{float:left!important}.float-xxl-end{float:right!important}.float-xxl-none{float:none!important}.d-xxl-inline{display:inline!important}.d-xxl-inline-block{display:inline-block!important}.d-xxl-block{display:block!important}.d-xxl-grid{display:grid!important}.d-xxl-table{display:table!important}.d-xxl-table-row{display:table-row!important}.d-xxl-table-cell{display:table-cell!important}.d-xxl-flex{display:flex!important}.d-xxl-inline-flex{display:inline-flex!important}.d-xxl-none{display:none!important}.flex-xxl-fill{flex:1 1 auto!important}.flex-xxl-row{flex-direction:row!important}.flex-xxl-column{flex-direction:column!important}.flex-xxl-row-reverse{flex-direction:row-reverse!important}.flex-xxl-column-reverse{flex-direction:column-reverse!important}.flex-xxl-grow-0{flex-grow:0!important}.flex-xxl-grow-1{flex-grow:1!important}.flex-xxl-shrink-0{flex-shrink:0!important}.flex-xxl-shrink-1{flex-shrink:1!important}.flex-xxl-wrap{flex-wrap:wrap!important}.flex-xxl-nowrap{flex-wrap:nowrap!important}.flex-xxl-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-xxl-start{justify-content:flex-start!important}.justify-content-xxl-end{justify-content:flex-end!important}.justify-content-xxl-center{justify-content:center!important}.justify-content-xxl-between{justify-content:space-between!important}.justify-content-xxl-around{justify-content:space-around!important}.justify-content-xxl-evenly{justify-content:space-evenly!important}.align-items-xxl-start{align-items:flex-start!important}.align-items-xxl-end{align-items:flex-end!important}.align-items-xxl-center{align-items:center!important}.align-items-xxl-baseline{align-items:baseline!important}.align-items-xxl-stretch{align-items:stretch!important}.align-content-xxl-start{align-content:flex-start!important}.align-content-xxl-end{align-content:flex-end!important}.align-content-xxl-center{align-content:center!important}.align-content-xxl-between{align-content:space-between!important}.align-content-xxl-around{align-content:space-around!important}.align-content-xxl-stretch{align-content:stretch!important}.align-self-xxl-auto{align-self:auto!important}.align-self-xxl-start{align-self:flex-start!important}.align-self-xxl-end{align-self:flex-end!important}.align-self-xxl-center{align-self:center!important}.align-self-xxl-baseline{align-self:baseline!important}.align-self-xxl-stretch{align-self:stretch!important}.order-xxl-first{order:-1!important}.order-xxl-0{order:0!important}.order-xxl-1{order:1!important}.order-xxl-2{order:2!important}.order-xxl-3{order:3!important}.order-xxl-4{order:4!important}.order-xxl-5{order:5!important}.order-xxl-last{order:6!important}.m-xxl-0{margin:0!important}.m-xxl-1{margin:.25rem!important}.m-xxl-2{margin:.5rem!important}.m-xxl-3{margin:1rem!important}.m-xxl-4{margin:1.5rem!important}.m-xxl-5{margin:3rem!important}.m-xxl-auto{margin:auto!important}.mx-xxl-0{margin-right:0!important;margin-left:0!important}.mx-xxl-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-xxl-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-xxl-3{margin-right:1rem!important;margin-left:1rem!important}.mx-xxl-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-xxl-5{margin-right:3rem!important;margin-left:3rem!important}.mx-xxl-auto{margin-right:auto!important;margin-left:auto!important}.my-xxl-0{margin-top:0!important;margin-bottom:0!important}.my-xxl-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-xxl-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-xxl-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-xxl-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-xxl-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-xxl-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-xxl-0{margin-top:0!important}.mt-xxl-1{margin-top:.25rem!important}.mt-xxl-2{margin-top:.5rem!important}.mt-xxl-3{margin-top:1rem!important}.mt-xxl-4{margin-top:1.5rem!important}.mt-xxl-5{margin-top:3rem!important}.mt-xxl-auto{margin-top:auto!important}.me-xxl-0{margin-right:0!important}.me-xxl-1{margin-right:.25rem!important}.me-xxl-2{margin-right:.5rem!important}.me-xxl-3{margin-right:1rem!important}.me-xxl-4{margin-right:1.5rem!important}.me-xxl-5{margin-right:3rem!important}.me-xxl-auto{margin-right:auto!important}.mb-xxl-0{margin-bottom:0!important}.mb-xxl-1{margin-bottom:.25rem!important}.mb-xxl-2{margin-bottom:.5rem!important}.mb-xxl-3{margin-bottom:1rem!important}.mb-xxl-4{margin-bottom:1.5rem!important}.mb-xxl-5{margin-bottom:3rem!important}.mb-xxl-auto{margin-bottom:auto!important}.ms-xxl-0{margin-left:0!important}.ms-xxl-1{margin-left:.25rem!important}.ms-xxl-2{margin-left:.5rem!important}.ms-xxl-3{margin-left:1rem!important}.ms-xxl-4{margin-left:1.5rem!important}.ms-xxl-5{margin-left:3rem!important}.ms-xxl-auto{margin-left:auto!important}.p-xxl-0{padding:0!important}.p-xxl-1{padding:.25rem!important}.p-xxl-2{padding:.5rem!important}.p-xxl-3{padding:1rem!important}.p-xxl-4{padding:1.5rem!important}.p-xxl-5{padding:3rem!important}.px-xxl-0{padding-right:0!important;padding-left:0!important}.px-xxl-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-xxl-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-xxl-3{padding-right:1rem!important;padding-left:1rem!important}.px-xxl-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-xxl-5{padding-right:3rem!important;padding-left:3rem!important}.py-xxl-0{padding-top:0!important;padding-bottom:0!important}.py-xxl-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-xxl-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-xxl-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-xxl-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-xxl-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-xxl-0{padding-top:0!important}.pt-xxl-1{padding-top:.25rem!important}.pt-xxl-2{padding-top:.5rem!important}.pt-xxl-3{padding-top:1rem!important}.pt-xxl-4{padding-top:1.5rem!important}.pt-xxl-5{padding-top:3rem!important}.pe-xxl-0{padding-right:0!important}.pe-xxl-1{padding-right:.25rem!important}.pe-xxl-2{padding-right:.5rem!important}.pe-xxl-3{padding-right:1rem!important}.pe-xxl-4{padding-right:1.5rem!important}.pe-xxl-5{padding-right:3rem!important}.pb-xxl-0{padding-bottom:0!important}.pb-xxl-1{padding-bottom:.25rem!important}.pb-xxl-2{padding-bottom:.5rem!important}.pb-xxl-3{padding-bottom:1rem!important}.pb-xxl-4{padding-bottom:1.5rem!important}.pb-xxl-5{padding-bottom:3rem!important}.ps-xxl-0{padding-left:0!important}.ps-xxl-1{padding-left:.25rem!important}.ps-xxl-2{padding-left:.5rem!important}.ps-xxl-3{padding-left:1rem!important}.ps-xxl-4{padding-left:1.5rem!important}.ps-xxl-5{padding-left:3rem!important}.gap-xxl-0{gap:0!important}.gap-xxl-1{gap:.25rem!important}.gap-xxl-2{gap:.5rem!important}.gap-xxl-3{gap:1rem!important}.gap-xxl-4{gap:1.5rem!important}.gap-xxl-5{gap:3rem!important}.text-xxl-start{text-align:left!important}.text-xxl-end{text-align:right!important}.text-xxl-center{text-align:center!important}}@media (min-width: 1200px){.fs-1{font-size:2.5rem!important}.fs-2{font-size:2rem!important}.fs-3{font-size:1.75rem!important}.fs-4{font-size:1.5rem!important}}@media print{.d-print-inline{display:inline!important}.d-print-inline-block{display:inline-block!important}.d-print-block{display:block!important}.d-print-grid{display:grid!important}.d-print-table{display:table!important}.d-print-table-row{display:table-row!important}.d-print-table-cell{display:table-cell!important}.d-print-flex{display:flex!important}.d-print-inline-flex{display:inline-flex!important}.d-print-none{display:none!important}}@media (max-width: 991px){.responsive-table__header{display:none}}@media (max-width: 991px){.responsive-table.table>:not(:first-child){border:none}}@media (max-width: 991px){.responsive-table__row{display:block;border-bottom:1px solid var(--border-color);border-top:2px solid var(--border-color);position:relative}.responsive-table__row:not(:last-child){margin-bottom:10px}}.responsive-table__cell.responsive-table__cell{vertical-align:middle!important}@media (max-width: 991px){.responsive-table__cell.responsive-table__cell{display:block;width:100%;position:relative;padding:.5rem;font-size:.9rem}.responsive-table__cell.responsive-table__cell[data-th]:before{content:attr(data-th) ": ";font-weight:700}.responsive-table__cell.responsive-table__cell:last-child{position:absolute;top:3.5px;right:.5rem;width:auto;padding:0;border:none}}@media (max-width: 991px){.responsive-table__cell.responsive-table__cell .btn-sm,.responsive-table__cell.responsive-table__cell .btn-group-sm>.btn{padding:.1rem .4rem;margin-top:.16rem}}html:not([data-theme=dark]){--color-scheme: initial;--primary-color: #ffffff;--primary-color-alfa: rgba(255, 255, 255, .5);--secondary-color: #f5f6fe;--text-color: #232323;--border-color: rgba(0, 0, 0, .125);--active-color: #eeeeee;--brand-color: #4696e5;--input-color: #ffffff;--input-disabled-color: #f5f6fe;--input-border-color: rgba(0, 0, 0, .19);--input-text-color: #495057;--table-border-color: #dee2e6;--table-highlight-color: rgba(0, 0, 0, .075);--btn-close-filter: initial}html[data-theme=dark]{--color-scheme: dark;--primary-color: #161b22;--primary-color-alfa: rgba(22, 27, 34, .8);--secondary-color: #0f131a;--text-color: rgb(201, 209, 217);--border-color: rgba(255, 255, 255, .15);--active-color: #0f131a;--brand-color: #0b2d4e;--input-color: #12161c;--input-disabled-color: #1a2028;--input-border-color: rgba(255, 255, 255, .15);--input-text-color: rgb(201, 209, 217);--table-border-color: #393d43;--table-highlight-color: rgba(255, 255, 255, .15);--btn-close-filter: invert(1)}:root{scroll-behavior:auto;color-scheme:var(--color-scheme)}html,body,#root{height:100%;background:var(--secondary-color);color:var(--text-color)}a,.btn-link{text-decoration:none}a:not(.nav-link):not(.navbar-brand):not(.page-link):not(.highlight-card):not(.btn):not(.dropdown-item):hover,.btn-link:hover{text-decoration:underline}.bg-main{background-color:#4696e5!important}.bg-warning{color:#232323}.card-body,.card-header,.list-group-item{background-color:transparent}.card-footer{background-color:var(--primary-color-alfa)}.card.card{box-shadow:0 .125rem .25rem #00000013;background-color:var(--primary-color);border-color:var(--border-color)}.list-group,.modal-content,.page-link,.page-item.disabled .page-link,.dropdown-menu{background-color:var(--primary-color)}.modal-header.modal-header,.modal-footer.modal-footer,.card-header.card-header,.card-footer.card-footer,.table.table thead th,.table.table th,.table.table td,.page-link.page-link,.page-link.page-link:hover,.page-item.page-item.disabled .page-link.page-link,.dropdown-divider.dropdown-divider,.dropdown-menu.dropdown-menu,.list-group-item.list-group-item,.modal-content.modal-content,hr{border-color:var(--border-color)}.table-bordered,.table-bordered thead th,.table-bordered thead td{border-color:var(--table-border-color)}.page-link:hover,.page-link:focus{background-color:var(--secondary-color)}.page-item.active .page-link{background-color:var(--brand-color);border-color:var(--brand-color)}.pagination .page-link{cursor:pointer}@media (min-width: 1200px){.container-xl{max-width:1320px}}@media (max-width: 767px){.container-xl{padding-right:0;padding-left:0}}.btn-block{display:block;width:100%}.btn-primary,.btn-primary:hover,.btn-primary:active,.btn-primary.active,.btn-outline-primary:hover,.btn-outline-primary:active.btn-outline-primary:active,.btn-outline-primary.active.btn-outline-primary.active{color:#fff}.dropdown-item,.dropdown-item-text{color:var(--text-color)}.dropdown-item:not(:disabled){cursor:pointer}.dropdown-item:focus:not(:disabled),.dropdown-item:hover:not(:disabled),.dropdown-item.active:not(:disabled),.dropdown-item:active:not(:disabled){background-color:var(--active-color)!important;color:var(--text-color)!important}.dropdown-item--danger.dropdown-item--danger{color:#dc3545}.dropdown-item--danger.dropdown-item--danger:hover,.dropdown-item--danger.dropdown-item--danger:active,.dropdown-item--danger.dropdown-item--danger.active{color:#dc3545!important}.badge-main{color:#fff;background-color:var(--brand-color)}.close,.close:hover,.table,.table-hover>tbody>tr:hover>*,.table-hover>tbody>tr>*{color:var(--text-color)}.btn-close{filter:var(--btn-close-filter)}.table-hover tbody tr:hover{background-color:var(--secondary-color)}.form-control.form-control,.form-control.form-control:focus{background-color:var(--primary-color);border-color:var(--input-border-color);color:var(--input-text-color)}.form-control.disabled,.form-control:disabled{background-color:var(--input-disabled-color);cursor:not-allowed}.card .form-control:not(:disabled),.card .form-control:not(:disabled):hover{background-color:var(--input-color)}.table-active,.table-active>th,.table-active>td{background-color:var(--table-highlight-color)!important}@media (max-width: 767px){.navbar-brand{margin:0 auto!important}}.indivisible{white-space:nowrap}.pointer{cursor:pointer}.progress-bar{background-color:#4696e5}@media (max-width: 575px){.btn-xs-block{width:100%;display:block}}@media (max-width: 991px){.btn-md-block{width:100%;display:block}}.search-field{position:relative}.search-field:focus-within{z-index:1}.search-field__input.search-field__input{padding-left:40px;padding-right:40px}.search-field__input--no-border.search-field__input--no-border{border:none;border-radius:0}.search-field__icon{position:absolute;top:50%;transform:translateY(-50%);left:15px;color:#6c757d}.search-field__close{position:absolute;top:50%;transform:translateY(-50%);right:10px;cursor:pointer}.dropdown-btn__toggle.dropdown-btn__toggle{text-align:left}.dropdown-btn__toggle.dropdown-btn__toggle--with-caret{padding-right:1.75rem}.dropdown-btn__toggle.dropdown-btn__toggle,.dropdown-btn__toggle.dropdown-btn__toggle:not(:disabled):not(.disabled).active,.dropdown-btn__toggle.dropdown-btn__toggle:not(:disabled):not(.disabled):active,.dropdown-btn__toggle.dropdown-btn__toggle:not(:disabled):not(.disabled):focus,.dropdown-btn__toggle.dropdown-btn__toggle:not(:disabled):not(.disabled):hover,.show>.dropdown-btn__toggle.dropdown-btn__toggle.dropdown-toggle{color:var(--input-text-color);background-color:var(--primary-color);border-color:var(--input-border-color)}.card .dropdown-btn__toggle.dropdown-btn__toggle,.card .dropdown-btn__toggle.dropdown-btn__toggle:not(:disabled):not(.disabled).active,.card .dropdown-btn__toggle.dropdown-btn__toggle:not(:disabled):not(.disabled):active,.card .dropdown-btn__toggle.dropdown-btn__toggle:not(:disabled):not(.disabled):focus,.card .dropdown-btn__toggle.dropdown-btn__toggle:not(:disabled):not(.disabled):hover,.show>.card .dropdown-btn__toggle.dropdown-btn__toggle.dropdown-toggle{background-color:var(--input-color)}.dropdown-btn__toggle.dropdown-btn__toggle.disabled,.dropdown-btn__toggle.dropdown-btn__toggle:disabled{background-color:var(--input-disabled-color)}.dropdown-btn__toggle.dropdown-btn__toggle:after{position:absolute;top:50%;transform:translateY(-50%);right:.75rem}.nav-pills__nav{position:sticky!important;top:55px;z-index:2}.nav-pills__nav-link.nav-pills__nav-link{border-radius:0!important;padding-bottom:calc(.5rem - 3px)!important;border-bottom:3px solid transparent!important;color:#5d6778;font-weight:700;cursor:pointer;text-decoration:none}@media (min-width: 576px) and (max-width: 991px){.nav-pills__nav-link.nav-pills__nav-link{font-size:89%}}.nav-pills__nav-link:hover{color:#4696e5!important}.nav-pills__nav-link.active{border-color:#4696e5!important;background-color:var(--primary-color)!important;color:#4696e5!important}.ordering-dropdown__menu--link.ordering-dropdown__menu--link{min-width:11rem}.ordering-dropdown__sort-icon{margin:3.5px 0 0;float:right}.domains-dropdown__toggle-btn.domains-dropdown__toggle-btn,.domains-dropdown__toggle-btn.domains-dropdown__toggle-btn:hover,.domains-dropdown__toggle-btn.domains-dropdown__toggle-btn:active{color:#6c757d!important}.domains-dropdown__toggle-btn--active.domains-dropdown__toggle-btn--active,.domains-dropdown__toggle-btn--active.domains-dropdown__toggle-btn--active:hover,.domains-dropdown__toggle-btn--active.domains-dropdown__toggle-btn--active:active{color:var(--input-text-color)!important}.domains-dropdown__back-btn.domains-dropdown__back-btn,.domains-dropdown__back-btn.domains-dropdown__back-btn:hover{border-color:var(--border-color)}.highlight-card.highlight-card.highlight-card{text-align:center;border-top:3px solid var(--brand-color);color:inherit;text-decoration:none}.highlight-card__link-icon{position:absolute;right:5px;bottom:5px;opacity:.1;transform:rotate(-45deg)}.highlight-card__title{color:#6c757d}.create-short-url-result__copy-btn{margin-left:10px;vertical-align:inherit}.copy-to-clipboard-icon{cursor:pointer;font-size:1.2rem}.qr-code-modal__img{max-width:100%;box-shadow:0 0 .25rem #0003}.short-urls-visits-count__max-visits-control{cursor:help}.short-url-visits-count__amount{transition:transform .3s ease;display:inline-block}.short-url-visits-count__amount--big{transform:scale(1.5)}.short-url-visits-count__tooltip-list-item:not(:last-child){margin-bottom:.5rem}.tag:not(:last-child){margin-right:3px}.tag__close.tag__close{font-size:1.3rem}.short-urls-row__cell.short-urls-row__cell{vertical-align:middle!important}.short-urls-row__cell--break{word-break:break-all}@media (min-width: 992px){.short-urls-row__cell--indivisible{white-space:nowrap}}@media (max-width: 991px){.short-urls-row__short-url-wrapper{word-break:break-all}}@media (min-width: 992px){.short-urls-row__short-url-wrapper{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;vertical-align:bottom;display:inline-block;max-width:18rem}}.short-urls-row__copy-hint{position:absolute;top:50%;transform:translateY(-50%) translate(10px);box-shadow:0 3px 15px #00000040}@media (max-width: 991px){.short-urls-row__copy-hint{position:absolute;top:50%;transform:translateY(-50%) translate(calc(-100% - 20px))}}.icon-input-container{position:relative}.icon-input-container__input{padding-right:35px!important}.icon-input-container__input:not(:disabled){background-color:var(--primary-color)!important}.card .icon-input-container__input:not(:disabled),.dropdown .icon-input-container__input:not(:disabled){background-color:var(--input-color)!important}.icon-input-container__icon{position:absolute;top:50%;transform:translateY(-50%);right:.75rem;cursor:pointer}.react-datepicker__close-icon.react-datepicker__close-icon{position:absolute;top:50%;transform:translateY(-50%);padding:0;right:.75rem}.react-datepicker__close-icon.react-datepicker__close-icon:after{right:.75rem;line-height:11px;background-color:#333;font-size:14px}.react-datepicker__input-container,.react-datepicker-wrapper{display:block!important}.react-datepicker__day--keyboard-selected{background-color:#4696e5}.react-datepicker__day--keyboard-selected:hover{background-color:#1d77d0}.react-datepicker__time.react-datepicker__time,.react-datepicker.react-datepicker{background-color:var(--primary-color)!important;color:var(--text-color);border-color:var(--border-color)}.react-datepicker__header.react-datepicker__header{background-color:var(--secondary-color);border-color:var(--border-color)}.react-datepicker__current-month.react-datepicker__current-month,.react-datepicker-time__header.react-datepicker-time__header,.react-datepicker-year-header.react-datepicker-year-header,.react-datepicker__day-name.react-datepicker__day-name,.react-datepicker__day.react-datepicker__day:not(:hover):not(.react-datepicker__day--selected),.react-datepicker__time-name.react-datepicker__time-name{color:inherit}.react-datepicker__day--disabled.react-datepicker__day--disabled{cursor:default;color:var(--border-color)!important}.react-datepicker__day--keyboard-selected.react-datepicker__day--keyboard-selected,.react-datepicker__month-text--keyboard-selected.react-datepicker__month-text--keyboard-selected,.react-datepicker__quarter-text--keyboard-selected.react-datepicker__quarter-text--keyboard-selected,.react-datepicker__year-text--keyboard-selected.react-datepicker__year-text--keyboard-selected{background-color:var(--brand-color)!important;color:#fff!important}.react-datepicker__time-list-item.react-datepicker__time-list-item:hover{color:#232323}.react-datepicker__time-container.react-datepicker__time-container{border-color:var(--border-color)}.react-datepicker__time-list.react-datepicker__time-list{scrollbar-color:rgba(0,0,0,.5) var(--secondary-color);scrollbar-width:thin}.react-datepicker__time-list.react-datepicker__time-list::-webkit-scrollbar{width:10px;background-color:var(--secondary-color)}.react-datepicker__time-list.react-datepicker__time-list::-webkit-scrollbar-thumb{background-color:#00000080;border-radius:.5rem}.react-datepicker-popper.react-datepicker-popper{z-index:2}.react-datepicker-popper.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle.react-datepicker__triangle:after{border-top-color:var(--primary-color)}.react-datepicker-popper.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle.react-datepicker__triangle:before{border-top-color:var(--border-color)}.react-datepicker-popper.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle.react-datepicker__triangle:after{border-bottom-color:var(--secondary-color)}.react-datepicker-popper.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle.react-datepicker__triangle:before{border-bottom-color:var(--border-color)}.use-existing-if-found-info-icon__modal-quote{margin-bottom:0;padding:10px 15px;font-size:17.5px;border-left:5px solid #eeeeee;background-color:#f9f9f9}.short-url-form p:last-child{margin-bottom:0}.short-url-form .card{height:100%}.short-urls-filtering-bar__tags-icon{vertical-align:bottom;font-size:1.6rem}.short-urls-table.short-urls-table{margin-bottom:-1px}.short-urls-table__header-cell--with-action{cursor:pointer}.color-bullet{border-radius:50%;width:20px;height:20px;display:inline-block;vertical-align:-4px;margin-right:5px}.simple-paginator{-webkit-user-select:none;user-select:none}.tags-table__header-cell.tags-table__header-cell{z-index:1;position:relative;top:56px;position:sticky;cursor:pointer}.tags-table__header-cell.tags-table__header-cell:before{content:"";position:absolute;top:-1px;right:0;bottom:-1px;left:0;background:var(--table-border-color);z-index:-2}.tags-table__header-cell.tags-table__header-cell:first-child:before{left:0}.tags-table__header-cell.tags-table__header-cell:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:var(--primary-color);z-index:-1}.tags-table__header-cell.tags-table__header-cell:first-child:after{left:0}.chart-card__footer--sticky{position:sticky;bottom:0}.doughnut-chart-legend{list-style-type:none;padding:0;margin:0}@media (max-width: 767px){.doughnut-chart-legend{margin-top:1rem}}.doughnut-chart-legend__item:not(:first-child){margin-top:.3rem}.doughnut-chart-legend__item-color{width:20px;min-width:20px;height:20px;margin-right:5px;border-radius:10px}.doughnut-chart-legend__item-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}@media (min-width: 768px){.map-modal__modal.map-modal__modal{width:calc(100% - 40px);max-width:calc(100% - 40px);height:calc(100% - 40px);margin:20px}}@media (max-width: 767px){.map-modal__modal.map-modal__modal{width:calc(100% - 20px);max-width:calc(100% - 20px);height:calc(100% - 20px);margin:10px}}.map-modal__modal-content.map-modal__modal-content{height:100%}.map-modal__modal-title.map-modal__modal-title{position:absolute;width:100%;z-index:1001;padding:.5rem 1rem 1rem;margin:0;color:#fff;background:linear-gradient(rgba(0,0,0,.5),rgba(0,0,0,0))}.map-modal__modal-body.map-modal__modal-body{padding:0;display:flex;overflow:hidden}.map-modal__modal.map-modal__modal .leaflet-container.leaflet-container{flex:1 1 auto;border-radius:.3rem}.map-modal__modal.map-modal__modal .leaflet-top.leaflet-top .leaflet-control.leaflet-control{margin-top:60px}.open-map-modal-btn__btn.open-map-modal-btn__btn{padding:0;margin-right:1rem}.visits-table{margin:1.5rem 0 0;position:relative;background-color:var(--primary-color);overflow-y:hidden}.visits-table__header-cell{cursor:pointer;margin-bottom:55px;z-index:1;position:relative}.visits-table__header-cell:before{content:"";position:absolute;top:-1px;right:-1px;bottom:-1px;left:0;background:var(--table-border-color);z-index:-2}.visits-table__header-cell:first-child:before{left:-1px}.visits-table__header-cell:after{content:"";position:absolute;top:0;right:0;bottom:0;left:1px;background:var(--primary-color);z-index:-1}.visits-table__header-cell:first-child:after{left:0}@media (min-width: 768px){.visits-table__header-cell.visits-table__sticky{top:96px}}.visits-table__header-icon{float:right;margin-top:3px}.visits-table__footer-cell.visits-table__footer-cell{bottom:0;margin-top:34px;padding:.5rem;z-index:1;position:relative}.visits-table__footer-cell.visits-table__footer-cell:before{content:"";position:absolute;top:-1px;right:-1px;bottom:-1px;left:0;background:var(--table-border-color);z-index:-2}.visits-table__footer-cell.visits-table__footer-cell:first-child:before{left:-1px}.visits-table__footer-cell.visits-table__footer-cell:after{content:"";position:absolute;top:0;right:0;bottom:0;left:1px;background:var(--primary-color);z-index:-1}.visits-table__footer-cell.visits-table__footer-cell:first-child:after{left:0}.visits-table__sticky.visits-table__sticky{position:sticky}.short-url-visits-header__created-at{cursor:default}.aside-menu{width:260px;background-color:var(--primary-color);box-shadow:#0000000d 0 8px 15px;position:fixed!important;padding-top:13px;padding-bottom:10px;top:56px;bottom:0;left:0;display:block;z-index:1010;overflow:hidden auto}@media (min-width: 768px){.aside-menu{padding:30px 15px 15px}}@media (max-width: 767px){.aside-menu{transition:left .3s;top:53px;box-shadow:-10px 0 50px 11px #0000008c}}@media (max-width: 767px){.aside-menu--hidden{left:-295px}}.aside-menu__nav{height:100%}.aside-menu__item{padding:10px 20px;margin:0 -15px;text-decoration:none!important;cursor:pointer}@media (max-width: 767px){.aside-menu__item{margin:0}}.aside-menu__item:hover{background-color:var(--secondary-color)}.aside-menu__item--selected,.aside-menu__item--selected:hover{color:#fff;background-color:var(--brand-color)}.aside-menu__item-text{margin-left:8px}.shlink-layout__swipeable,.shlink-layout__swipeable-inner{height:100%}.shlink-layout__burger-icon{display:none;transition:color .3s;position:fixed;top:18px;z-index:1035;font-size:1.5rem;cursor:pointer;color:#ffffff80}@media (max-width: 767px){.shlink-layout__burger-icon{display:inline-block}}.shlink-layout__burger-icon--active{color:#fff}.shlink-layout__container.shlink-layout__container{padding:20px 0 0;min-height:100%}@media (min-width: 768px){.shlink-layout__container.shlink-layout__container{padding:30px 0 0 260px}}.leaflet-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container,.leaflet-pane>svg,.leaflet-pane>canvas,.leaflet-zoom-box,.leaflet-image-layer,.leaflet-layer{position:absolute;left:0;top:0}.leaflet-container{overflow:hidden}.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow{-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:none}.leaflet-tile::selection{background:transparent}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{width:1600px;height:1600px;-webkit-transform-origin:0 0}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-overlay-pane svg{max-width:none!important;max-height:none!important}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer,.leaflet-container .leaflet-tile{max-width:none!important;max-height:none!important;width:auto;padding:0}.leaflet-container img.leaflet-tile{mix-blend-mode:plus-lighter}.leaflet-container.leaflet-touch-zoom{-ms-touch-action:pan-x pan-y;touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{-ms-touch-action:pinch-zoom;touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{-ms-touch-action:none;touch-action:none}.leaflet-container{-webkit-tap-highlight-color:transparent}.leaflet-container a{-webkit-tap-highlight-color:rgba(51,181,229,.4)}.leaflet-tile{filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{width:0;height:0;-moz-box-sizing:border-box;box-sizing:border-box;z-index:800}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-overlay-pane{z-index:400}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-popup-pane{z-index:700}.leaflet-map-pane canvas{z-index:100}.leaflet-map-pane svg{z-index:200}.leaflet-vml-shape{width:1px;height:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{position:relative;z-index:800;pointer-events:visiblePainted;pointer-events:auto}.leaflet-top,.leaflet-bottom{position:absolute;z-index:1000;pointer-events:none}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{float:left;clear:both}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-fade-anim .leaflet-popup{opacity:0;-webkit-transition:opacity .2s linear;-moz-transition:opacity .2s linear;transition:opacity .2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.leaflet-zoom-animated{-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0}svg.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{-webkit-transition:-webkit-transform .25s cubic-bezier(0,0,.25,1);-moz-transition:-moz-transform .25s cubic-bezier(0,0,.25,1);transition:transform .25s cubic-bezier(0,0,.25,1)}.leaflet-zoom-anim .leaflet-tile,.leaflet-pan-anim .leaflet-tile{-webkit-transition:none;-moz-transition:none;transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-popup-pane,.leaflet-control{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-image-layer,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-marker-icon.leaflet-interactive,.leaflet-image-layer.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive,svg.leaflet-image-layer.leaflet-interactive path{pointer-events:visiblePainted;pointer-events:auto}.leaflet-container{background:#ddd;outline-offset:1px}.leaflet-container a{color:#0078a8}.leaflet-zoom-box{border:2px dotted #38f;background:rgba(255,255,255,.5)}.leaflet-container{font-family:Helvetica Neue,Arial,Helvetica,sans-serif;font-size:12px;font-size:.75rem;line-height:1.5}.leaflet-bar{box-shadow:0 1px 5px #000000a6;border-radius:4px}.leaflet-bar a{background-color:#fff;border-bottom:1px solid #ccc;width:26px;height:26px;line-height:26px;display:block;text-align:center;text-decoration:none;color:#000}.leaflet-bar a,.leaflet-control-layers-toggle{background-position:50% 50%;background-repeat:no-repeat;display:block}.leaflet-bar a:hover,.leaflet-bar a:focus{background-color:#f4f4f4}.leaflet-bar a:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.leaflet-bar a:last-child{border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-bottom:none}.leaflet-bar a.leaflet-disabled{cursor:default;background-color:#f4f4f4;color:#bbb}.leaflet-touch .leaflet-bar a{width:30px;height:30px;line-height:30px}.leaflet-touch .leaflet-bar a:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.leaflet-touch .leaflet-bar a:last-child{border-bottom-left-radius:2px;border-bottom-right-radius:2px}.leaflet-control-zoom-in,.leaflet-control-zoom-out{font:700 18px Lucida Console,Monaco,monospace;text-indent:1px}.leaflet-touch .leaflet-control-zoom-in,.leaflet-touch .leaflet-control-zoom-out{font-size:22px}.leaflet-control-layers{box-shadow:0 1px 5px #0006;background:#fff;border-radius:5px}.leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAQAAAADQ4RFAAACf0lEQVR4AY1UM3gkARTePdvdoTxXKc+qTl3aU5U6b2Kbkz3Gtq3Zw6ziLGNPzrYx7946Tr6/ee/XeCQ4D3ykPtL5tHno4n0d/h3+xfuWHGLX81cn7r0iTNzjr7LrlxCqPtkbTQEHeqOrTy4Yyt3VCi/IOB0v7rVC7q45Q3Gr5K6jt+3Gl5nCoDD4MtO+j96Wu8atmhGqcNGHObuf8OM/x3AMx38+4Z2sPqzCxRFK2aF2e5Jol56XTLyggAMTL56XOMoS1W4pOyjUcGGQdZxU6qRh7B9Zp+PfpOFlqt0zyDZckPi1ttmIp03jX8gyJ8a/PG2yutpS/Vol7peZIbZcKBAEEheEIAgFbDkz5H6Zrkm2hVWGiXKiF4Ycw0RWKdtC16Q7qe3X4iOMxruonzegJzWaXFrU9utOSsLUmrc0YjeWYjCW4PDMADElpJSSQ0vQvA1Tm6/JlKnqFs1EGyZiFCqnRZTEJJJiKRYzVYzJck2Rm6P4iH+cmSY0YzimYa8l0EtTODFWhcMIMVqdsI2uiTvKmTisIDHJ3od5GILVhBCarCfVRmo4uTjkhrhzkiBV7SsaqS+TzrzM1qpGGUFt28pIySQHR6h7F6KSwGWm97ay+Z+ZqMcEjEWebE7wxCSQwpkhJqoZA5ivCdZDjJepuJ9IQjGGUmuXJdBFUygxVqVsxFsLMbDe8ZbDYVCGKxs+W080max1hFCarCfV+C1KATwcnvE9gRRuMP2prdbWGowm1KB1y+zwMMENkM755cJ2yPDtqhTI6ED1M/82yIDtC/4j4BijjeObflpO9I9MwXTCsSX8jWAFeHr05WoLTJ5G8IQVS/7vwR6ohirYM7f6HzYpogfS3R2OAAAAAElFTkSuQmCC);width:36px;height:36px}.leaflet-retina .leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAQAAABvcdNgAAAEsklEQVR4AWL4TydIhpZK1kpWOlg0w3ZXP6D2soBtG42jeI6ZmQTHzAxiTbSJsYLjO9HhP+WOmcuhciVnmHVQcJnp7DFvScowZorad/+V/fVzMdMT2g9Cv9guXGv/7pYOrXh2U+RRR3dSd9JRx6bIFc/ekqHI29JC6pJ5ZEh1yWkhkbcFeSjxgx3L2m1cb1C7bceyxA+CNjT/Ifff+/kDk2u/w/33/IeCMOSaWZ4glosqT3DNnNZQ7Cs58/3Ce5HL78iZH/vKVIaYlqzfdLu8Vi7dnvUbEza5Idt36tquZFldl6N5Z/POLof0XLK61mZCmJSWjVF9tEjUluu74IUXvgttuVIHE7YxSkaYhJZam7yiM9Pv82JYfl9nptxZaxMJE4YSPty+vF0+Y2up9d3wwijfjZbabqm/3bZ9ecKHsiGmRflnn1MW4pjHf9oLufyn2z3y1D6n8g8TZhxyzipLNPnAUpsOiuWimg52psrTZYnOWYNDTMuWBWa0tJb4rgq1UvmutpaYEbZlwU3CLJm/ayYjHW5/h7xWLn9Hh1vepDkyf7dE7MtT5LR4e7yYpHrkhOUpEfssBLq2pPhAqoSWKUkk7EDqkmK6RrCEzqDjhNDWNE+XSMvkJRDWlZTmCW0l0PHQGRZY5t1L83kT0Y3l2SItk5JAWHl2dCOBm+fPu3fo5/3v61RMCO9Jx2EEYYhb0rmNQMX/vm7gqOEJLcXTGw3CAuRNeyaPWwjR8PRqKQ1PDA/dpv+on9Shox52WFnx0KY8onHayrJzm87i5h9xGw/tfkev0jGsQizqezUKjk12hBMKJ4kbCqGPVNXudyyrShovGw5CgxsRICxF6aRmSjlBnHRzg7Gx8fKqEubI2rahQYdR1YgDIRQO7JvQyD52hoIQx0mxa0ODtW2Iozn1le2iIRdzwWewedyZzewidueOGqlsn1MvcnQpuVwLGG3/IR1hIKxCjelIDZ8ldqWz25jWAsnldEnK0Zxro19TGVb2ffIZEsIO89EIEDvKMPrzmBOQcKQ+rroye6NgRRxqR4U8EAkz0CL6uSGOm6KQCdWjvjRiSP1BPalCRS5iQYiEIvxuBMJEWgzSoHADcVMuN7IuqqTeyUPq22qFimFtxDyBBJEwNyt6TM88blFHao/6tWWhuuOM4SAK4EI4QmFHA+SEyWlp4EQoJ13cYGzMu7yszEIBOm2rVmHUNqwAIQabISNMRstmdhNWcFLsSm+0tjJH1MdRxO5Nx0WDMhCtgD6OKgZeljJqJKc9po8juskR9XN0Y1lZ3mWjLR9JCO1jRDMd0fpYC2VnvjBSEFg7wBENc0R9HFlb0xvF1+TBEpF68d+DHR6IOWVv2BECtxo46hOFUBd/APU57WIoEwJhIi2CdpyZX0m93BZicktMj1AS9dClteUFAUNUIEygRZCtik5zSxI9MubTBH1GOiHsiLJ3OCoSZkILa9PxiN0EbvhsAo8tdAf9Seepd36lGWHmtNANTv5Jd0z4QYyeo/UEJqxKRpg5LZx6btLPsOaEmdMyxYdlc8LMaJnikDlhclqmPiQnTEpLUIZEwkRagjYkEibQErwhkTAKCLQEbUgkzJQWc/0PstHHcfEdQ+UAAAAASUVORK5CYII=);background-size:26px 26px}.leaflet-touch .leaflet-control-layers-toggle{width:44px;height:44px}.leaflet-control-layers .leaflet-control-layers-list,.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{padding:6px 10px 6px 6px;color:#333;background:#fff}.leaflet-control-layers-scrollbar{overflow-y:scroll;overflow-x:hidden;padding-right:5px}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label{display:block;font-size:13px;font-size:1.08333em}.leaflet-control-layers-separator{height:0;border-top:1px solid #ddd;margin:5px -10px 5px -6px}.leaflet-default-icon-path{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=)}.leaflet-container .leaflet-control-attribution{background:#fff;background:rgba(255,255,255,.8);margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{padding:0 5px;color:#333;line-height:1.4}.leaflet-control-attribution a{text-decoration:none}.leaflet-control-attribution a:hover,.leaflet-control-attribution a:focus{text-decoration:underline}.leaflet-attribution-flag{display:inline!important;vertical-align:baseline!important;width:1em;height:.6669em}.leaflet-left .leaflet-control-scale{margin-left:5px}.leaflet-bottom .leaflet-control-scale{margin-bottom:5px}.leaflet-control-scale-line{border:2px solid #777;border-top:none;line-height:1.1;padding:2px 5px 1px;white-space:nowrap;-moz-box-sizing:border-box;box-sizing:border-box;background:rgba(255,255,255,.8);text-shadow:1px 1px #fff}.leaflet-control-scale-line:not(:first-child){border-top:2px solid #777;border-bottom:none;margin-top:-2px}.leaflet-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #777}.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{box-shadow:none}.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{border:2px solid rgba(0,0,0,.2);background-clip:padding-box}.leaflet-popup{position:absolute;text-align:center;margin-bottom:20px}.leaflet-popup-content-wrapper{padding:1px;text-align:left;border-radius:12px}.leaflet-popup-content{margin:13px 24px 13px 20px;line-height:1.3;font-size:13px;font-size:1.08333em;min-height:1px}.leaflet-popup-content p{margin:1.3em 0}.leaflet-popup-tip-container{width:40px;height:20px;position:absolute;left:50%;margin-top:-1px;margin-left:-20px;overflow:hidden;pointer-events:none}.leaflet-popup-tip{width:17px;height:17px;padding:1px;margin:-10px auto 0;pointer-events:auto;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:white;color:#333;box-shadow:0 3px 14px #0006}.leaflet-container a.leaflet-popup-close-button{position:absolute;top:0;right:0;border:none;text-align:center;width:24px;height:24px;font:16px/24px Tahoma,Verdana,sans-serif;color:#757575;text-decoration:none;background:transparent}.leaflet-container a.leaflet-popup-close-button:hover,.leaflet-container a.leaflet-popup-close-button:focus{color:#585858}.leaflet-popup-scrolled{overflow:auto}.leaflet-oldie .leaflet-popup-content-wrapper{-ms-zoom:1}.leaflet-oldie .leaflet-popup-tip{width:24px;margin:0 auto;-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";filter:progid:DXImageTransform.Microsoft.Matrix(M11=.70710678,M12=.70710678,M21=-.70710678,M22=.70710678)}.leaflet-oldie .leaflet-control-zoom,.leaflet-oldie .leaflet-control-layers,.leaflet-oldie .leaflet-popup-content-wrapper,.leaflet-oldie .leaflet-popup-tip{border:1px solid #999}.leaflet-div-icon{background:#fff;border:1px solid #666}.leaflet-tooltip{position:absolute;padding:6px;background-color:#fff;border:1px solid #fff;border-radius:3px;color:#222;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;box-shadow:0 1px 3px #0006}.leaflet-tooltip.leaflet-interactive{cursor:pointer;pointer-events:auto}.leaflet-tooltip-top:before,.leaflet-tooltip-bottom:before,.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{position:absolute;pointer-events:none;border:6px solid transparent;background:transparent;content:""}.leaflet-tooltip-bottom{margin-top:6px}.leaflet-tooltip-top{margin-top:-6px}.leaflet-tooltip-bottom:before,.leaflet-tooltip-top:before{left:50%;margin-left:-6px}.leaflet-tooltip-top:before{bottom:0;margin-bottom:-12px;border-top-color:#fff}.leaflet-tooltip-bottom:before{top:0;margin-top:-12px;margin-left:-6px;border-bottom-color:#fff}.leaflet-tooltip-left{margin-left:-6px}.leaflet-tooltip-right{margin-left:6px}.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{top:50%;margin-top:-6px}.leaflet-tooltip-left:before{right:0;margin-right:-12px;border-left-color:#fff}.leaflet-tooltip-right:before{left:0;margin-left:-12px;border-right-color:#fff}@media print{.leaflet-control{-webkit-print-color-adjust:exact;print-color-adjust:exact}}.react-datepicker__year-read-view--down-arrow,.react-datepicker__month-read-view--down-arrow,.react-datepicker__month-year-read-view--down-arrow,.react-datepicker__navigation-icon:before{border-color:#ccc;border-style:solid;border-width:3px 3px 0 0;content:"";display:block;height:9px;position:absolute;top:6px;width:9px}.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle,.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle{margin-left:-4px;position:absolute;width:0}.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle:before,.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:before,.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle:after,.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:after{box-sizing:content-box;position:absolute;border:8px solid rgba(0,0,0,0);height:0;width:1px;content:"";z-index:-1;border-width:8px;left:-8px}.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle:before,.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:before{border-bottom-color:#aeaeae}.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle{top:0;margin-top:-8px}.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:before,.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:after{border-top:none;border-bottom-color:#f0f0f0}.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:after{top:0}.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:before{top:-1px;border-bottom-color:#aeaeae}.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle{bottom:0;margin-bottom:-8px}.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle:before,.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle:after{border-bottom:none;border-top-color:#fff}.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle:after{bottom:0}.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle:before{bottom:-1px;border-top-color:#aeaeae}.react-datepicker-wrapper{display:inline-block;padding:0;border:0}.react-datepicker{font-family:Helvetica Neue,helvetica,arial,sans-serif;font-size:.8rem;background-color:#fff;color:#000;border:1px solid #aeaeae;border-radius:.3rem;display:inline-block;position:relative}.react-datepicker--time-only .react-datepicker__triangle{left:35px}.react-datepicker--time-only .react-datepicker__time-container{border-left:0}.react-datepicker--time-only .react-datepicker__time,.react-datepicker--time-only .react-datepicker__time-box{border-bottom-left-radius:.3rem;border-bottom-right-radius:.3rem}.react-datepicker__triangle{position:absolute;left:50px}.react-datepicker-popper{z-index:1}.react-datepicker-popper[data-placement^=bottom]{padding-top:10px}.react-datepicker-popper[data-placement=bottom-end] .react-datepicker__triangle,.react-datepicker-popper[data-placement=top-end] .react-datepicker__triangle{left:auto;right:50px}.react-datepicker-popper[data-placement^=top]{padding-bottom:10px}.react-datepicker-popper[data-placement^=right]{padding-left:8px}.react-datepicker-popper[data-placement^=right] .react-datepicker__triangle{left:auto;right:42px}.react-datepicker-popper[data-placement^=left]{padding-right:8px}.react-datepicker-popper[data-placement^=left] .react-datepicker__triangle{left:42px;right:auto}.react-datepicker__header{text-align:center;background-color:#f0f0f0;border-bottom:1px solid #aeaeae;border-top-left-radius:.3rem;padding:8px 0;position:relative}.react-datepicker__header--time{padding-bottom:8px;padding-left:5px;padding-right:5px}.react-datepicker__header--time:not(.react-datepicker__header--time--only){border-top-left-radius:0}.react-datepicker__header:not(.react-datepicker__header--has-time-select){border-top-right-radius:.3rem}.react-datepicker__year-dropdown-container--select,.react-datepicker__month-dropdown-container--select,.react-datepicker__month-year-dropdown-container--select,.react-datepicker__year-dropdown-container--scroll,.react-datepicker__month-dropdown-container--scroll,.react-datepicker__month-year-dropdown-container--scroll{display:inline-block;margin:0 15px}.react-datepicker__current-month,.react-datepicker-time__header,.react-datepicker-year-header{margin-top:0;color:#000;font-weight:700;font-size:.944rem}.react-datepicker-time__header{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.react-datepicker__navigation{align-items:center;background:none;display:flex;justify-content:center;text-align:center;cursor:pointer;position:absolute;top:2px;padding:0;border:none;z-index:1;height:32px;width:32px;text-indent:-999em;overflow:hidden}.react-datepicker__navigation--previous{left:2px}.react-datepicker__navigation--next{right:2px}.react-datepicker__navigation--next--with-time:not(.react-datepicker__navigation--next--with-today-button){right:85px}.react-datepicker__navigation--years{position:relative;top:0;display:block;margin-left:auto;margin-right:auto}.react-datepicker__navigation--years-previous{top:4px}.react-datepicker__navigation--years-upcoming{top:-4px}.react-datepicker__navigation:hover *:before{border-color:#a6a6a6}.react-datepicker__navigation-icon{position:relative;top:-1px;font-size:20px;width:0}.react-datepicker__navigation-icon--next{left:-2px}.react-datepicker__navigation-icon--next:before{transform:rotate(45deg);left:-7px}.react-datepicker__navigation-icon--previous{right:-2px}.react-datepicker__navigation-icon--previous:before{transform:rotate(225deg);right:-7px}.react-datepicker__month-container{float:left}.react-datepicker__year{margin:.4rem;text-align:center}.react-datepicker__year-wrapper{display:flex;flex-wrap:wrap;max-width:180px}.react-datepicker__year .react-datepicker__year-text{display:inline-block;width:4rem;margin:2px}.react-datepicker__month{margin:.4rem;text-align:center}.react-datepicker__month .react-datepicker__month-text,.react-datepicker__month .react-datepicker__quarter-text{display:inline-block;width:4rem;margin:2px}.react-datepicker__input-time-container{clear:both;width:100%;float:left;margin:5px 0 10px 15px;text-align:left}.react-datepicker__input-time-container .react-datepicker-time__caption,.react-datepicker__input-time-container .react-datepicker-time__input-container{display:inline-block}.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input{display:inline-block;margin-left:10px}.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input{width:auto}.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input[type=time]::-webkit-inner-spin-button,.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input[type=time]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input[type=time]{-moz-appearance:textfield}.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__delimiter{margin-left:5px;display:inline-block}.react-datepicker__time-container{float:right;border-left:1px solid #aeaeae;width:85px}.react-datepicker__time-container--with-today-button{display:inline;border:1px solid #aeaeae;border-radius:.3rem;position:absolute;right:-87px;top:0}.react-datepicker__time-container .react-datepicker__time{position:relative;background:#fff;border-bottom-right-radius:.3rem}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box{width:85px;overflow-x:hidden;margin:0 auto;text-align:center;border-bottom-right-radius:.3rem}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list{list-style:none;margin:0;height:calc(195px + .85rem);overflow-y:scroll;padding-right:0;padding-left:0;width:100%;box-sizing:content-box}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item{height:30px;padding:5px 10px;white-space:nowrap}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item:hover{cursor:pointer;background-color:#f0f0f0}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--selected{background-color:#216ba5;color:#fff;font-weight:700}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--selected:hover{background-color:#216ba5}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--disabled{color:#ccc}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--disabled:hover{cursor:default;background-color:#0000}.react-datepicker__week-number{color:#ccc;display:inline-block;width:1.7rem;line-height:1.7rem;text-align:center;margin:.166rem}.react-datepicker__week-number.react-datepicker__week-number--clickable{cursor:pointer}.react-datepicker__week-number.react-datepicker__week-number--clickable:not(.react-datepicker__week-number--selected,.react-datepicker__week-number--keyboard-selected):hover{border-radius:.3rem;background-color:#f0f0f0}.react-datepicker__week-number--selected{border-radius:.3rem;background-color:#216ba5;color:#fff}.react-datepicker__week-number--selected:hover{background-color:#1d5d90}.react-datepicker__week-number--keyboard-selected{border-radius:.3rem;background-color:#2a87d0;color:#fff}.react-datepicker__week-number--keyboard-selected:hover{background-color:#1d5d90}.react-datepicker__day-names{white-space:nowrap;margin-bottom:-8px}.react-datepicker__week{white-space:nowrap}.react-datepicker__day-name,.react-datepicker__day,.react-datepicker__time-name{color:#000;display:inline-block;width:1.7rem;line-height:1.7rem;text-align:center;margin:.166rem}.react-datepicker__day,.react-datepicker__month-text,.react-datepicker__quarter-text,.react-datepicker__year-text{cursor:pointer}.react-datepicker__day:hover,.react-datepicker__month-text:hover,.react-datepicker__quarter-text:hover,.react-datepicker__year-text:hover{border-radius:.3rem;background-color:#f0f0f0}.react-datepicker__day--today,.react-datepicker__month-text--today,.react-datepicker__quarter-text--today,.react-datepicker__year-text--today{font-weight:700}.react-datepicker__day--highlighted,.react-datepicker__month-text--highlighted,.react-datepicker__quarter-text--highlighted,.react-datepicker__year-text--highlighted{border-radius:.3rem;background-color:#3dcc4a;color:#fff}.react-datepicker__day--highlighted:hover,.react-datepicker__month-text--highlighted:hover,.react-datepicker__quarter-text--highlighted:hover,.react-datepicker__year-text--highlighted:hover{background-color:#32be3f}.react-datepicker__day--highlighted-custom-1,.react-datepicker__month-text--highlighted-custom-1,.react-datepicker__quarter-text--highlighted-custom-1,.react-datepicker__year-text--highlighted-custom-1{color:#f0f}.react-datepicker__day--highlighted-custom-2,.react-datepicker__month-text--highlighted-custom-2,.react-datepicker__quarter-text--highlighted-custom-2,.react-datepicker__year-text--highlighted-custom-2{color:green}.react-datepicker__day--holidays,.react-datepicker__month-text--holidays,.react-datepicker__quarter-text--holidays,.react-datepicker__year-text--holidays{position:relative;border-radius:.3rem;background-color:#ff6803;color:#fff}.react-datepicker__day--holidays .holiday-overlay,.react-datepicker__month-text--holidays .holiday-overlay,.react-datepicker__quarter-text--holidays .holiday-overlay,.react-datepicker__year-text--holidays .holiday-overlay{position:absolute;bottom:100%;left:50%;transform:translate(-50%);background-color:#333;color:#fff;padding:4px;border-radius:4px;white-space:nowrap;visibility:hidden;opacity:0;transition:visibility 0s,opacity .3s ease-in-out}.react-datepicker__day--holidays:hover,.react-datepicker__month-text--holidays:hover,.react-datepicker__quarter-text--holidays:hover,.react-datepicker__year-text--holidays:hover{background-color:#cf5300}.react-datepicker__day--holidays:hover .holiday-overlay,.react-datepicker__month-text--holidays:hover .holiday-overlay,.react-datepicker__quarter-text--holidays:hover .holiday-overlay,.react-datepicker__year-text--holidays:hover .holiday-overlay{visibility:visible;opacity:1}.react-datepicker__day--selected,.react-datepicker__day--in-selecting-range,.react-datepicker__day--in-range,.react-datepicker__month-text--selected,.react-datepicker__month-text--in-selecting-range,.react-datepicker__month-text--in-range,.react-datepicker__quarter-text--selected,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__quarter-text--in-range,.react-datepicker__year-text--selected,.react-datepicker__year-text--in-selecting-range,.react-datepicker__year-text--in-range{border-radius:.3rem;background-color:#216ba5;color:#fff}.react-datepicker__day--selected:hover,.react-datepicker__day--in-selecting-range:hover,.react-datepicker__day--in-range:hover,.react-datepicker__month-text--selected:hover,.react-datepicker__month-text--in-selecting-range:hover,.react-datepicker__month-text--in-range:hover,.react-datepicker__quarter-text--selected:hover,.react-datepicker__quarter-text--in-selecting-range:hover,.react-datepicker__quarter-text--in-range:hover,.react-datepicker__year-text--selected:hover,.react-datepicker__year-text--in-selecting-range:hover,.react-datepicker__year-text--in-range:hover{background-color:#1d5d90}.react-datepicker__day--keyboard-selected,.react-datepicker__month-text--keyboard-selected,.react-datepicker__quarter-text--keyboard-selected,.react-datepicker__year-text--keyboard-selected{border-radius:.3rem;background-color:#bad9f1;color:#000}.react-datepicker__day--keyboard-selected:hover,.react-datepicker__month-text--keyboard-selected:hover,.react-datepicker__quarter-text--keyboard-selected:hover,.react-datepicker__year-text--keyboard-selected:hover{background-color:#1d5d90}.react-datepicker__day--in-selecting-range:not(.react-datepicker__day--in-range,.react-datepicker__month-text--in-range,.react-datepicker__quarter-text--in-range,.react-datepicker__year-text--in-range),.react-datepicker__month-text--in-selecting-range:not(.react-datepicker__day--in-range,.react-datepicker__month-text--in-range,.react-datepicker__quarter-text--in-range,.react-datepicker__year-text--in-range),.react-datepicker__quarter-text--in-selecting-range:not(.react-datepicker__day--in-range,.react-datepicker__month-text--in-range,.react-datepicker__quarter-text--in-range,.react-datepicker__year-text--in-range),.react-datepicker__year-text--in-selecting-range:not(.react-datepicker__day--in-range,.react-datepicker__month-text--in-range,.react-datepicker__quarter-text--in-range,.react-datepicker__year-text--in-range){background-color:#216ba580}.react-datepicker__month--selecting-range .react-datepicker__day--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__year--selecting-range .react-datepicker__day--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__month--selecting-range .react-datepicker__month-text--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__year--selecting-range .react-datepicker__month-text--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__month--selecting-range .react-datepicker__quarter-text--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__year--selecting-range .react-datepicker__quarter-text--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__month--selecting-range .react-datepicker__year-text--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__year--selecting-range .react-datepicker__year-text--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range){background-color:#f0f0f0;color:#000}.react-datepicker__day--disabled,.react-datepicker__month-text--disabled,.react-datepicker__quarter-text--disabled,.react-datepicker__year-text--disabled{cursor:default;color:#ccc}.react-datepicker__day--disabled:hover,.react-datepicker__month-text--disabled:hover,.react-datepicker__quarter-text--disabled:hover,.react-datepicker__year-text--disabled:hover{background-color:#0000}.react-datepicker__input-container{position:relative;display:inline-block;width:100%}.react-datepicker__input-container .react-datepicker__calendar-icon{position:absolute;padding:.5rem;box-sizing:content-box}.react-datepicker__view-calendar-icon input{padding:6px 10px 5px 25px}.react-datepicker__year-read-view,.react-datepicker__month-read-view,.react-datepicker__month-year-read-view{border:1px solid rgba(0,0,0,0);border-radius:.3rem;position:relative}.react-datepicker__year-read-view:hover,.react-datepicker__month-read-view:hover,.react-datepicker__month-year-read-view:hover{cursor:pointer}.react-datepicker__year-read-view:hover .react-datepicker__year-read-view--down-arrow,.react-datepicker__year-read-view:hover .react-datepicker__month-read-view--down-arrow,.react-datepicker__month-read-view:hover .react-datepicker__year-read-view--down-arrow,.react-datepicker__month-read-view:hover .react-datepicker__month-read-view--down-arrow,.react-datepicker__month-year-read-view:hover .react-datepicker__year-read-view--down-arrow,.react-datepicker__month-year-read-view:hover .react-datepicker__month-read-view--down-arrow{border-top-color:#b3b3b3}.react-datepicker__year-read-view--down-arrow,.react-datepicker__month-read-view--down-arrow,.react-datepicker__month-year-read-view--down-arrow{transform:rotate(135deg);right:-16px;top:0}.react-datepicker__year-dropdown,.react-datepicker__month-dropdown,.react-datepicker__month-year-dropdown{background-color:#f0f0f0;position:absolute;width:50%;left:25%;top:30px;z-index:1;text-align:center;border-radius:.3rem;border:1px solid #aeaeae}.react-datepicker__year-dropdown:hover,.react-datepicker__month-dropdown:hover,.react-datepicker__month-year-dropdown:hover{cursor:pointer}.react-datepicker__year-dropdown--scrollable,.react-datepicker__month-dropdown--scrollable,.react-datepicker__month-year-dropdown--scrollable{height:150px;overflow-y:scroll}.react-datepicker__year-option,.react-datepicker__month-option,.react-datepicker__month-year-option{line-height:20px;width:100%;display:block;margin-left:auto;margin-right:auto}.react-datepicker__year-option:first-of-type,.react-datepicker__month-option:first-of-type,.react-datepicker__month-year-option:first-of-type{border-top-left-radius:.3rem;border-top-right-radius:.3rem}.react-datepicker__year-option:last-of-type,.react-datepicker__month-option:last-of-type,.react-datepicker__month-year-option:last-of-type{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border-bottom-left-radius:.3rem;border-bottom-right-radius:.3rem}.react-datepicker__year-option:hover,.react-datepicker__month-option:hover,.react-datepicker__month-year-option:hover{background-color:#ccc}.react-datepicker__year-option:hover .react-datepicker__navigation--years-upcoming,.react-datepicker__month-option:hover .react-datepicker__navigation--years-upcoming,.react-datepicker__month-year-option:hover .react-datepicker__navigation--years-upcoming{border-bottom-color:#b3b3b3}.react-datepicker__year-option:hover .react-datepicker__navigation--years-previous,.react-datepicker__month-option:hover .react-datepicker__navigation--years-previous,.react-datepicker__month-year-option:hover .react-datepicker__navigation--years-previous{border-top-color:#b3b3b3}.react-datepicker__year-option--selected,.react-datepicker__month-option--selected,.react-datepicker__month-year-option--selected{position:absolute;left:15px}.react-datepicker__close-icon{cursor:pointer;background-color:#0000;border:0;outline:0;padding:0 6px 0 0;position:absolute;top:0;right:0;height:100%;display:table-cell;vertical-align:middle}.react-datepicker__close-icon:after{cursor:pointer;background-color:#216ba5;color:#fff;border-radius:50%;height:16px;width:16px;padding:2px;font-size:12px;line-height:1;text-align:center;display:table-cell;vertical-align:middle;content:"×"}.react-datepicker__close-icon--disabled{cursor:default}.react-datepicker__close-icon--disabled:after{cursor:default;background-color:#ccc}.react-datepicker__today-button{background:#f0f0f0;border-top:1px solid #aeaeae;cursor:pointer;text-align:center;font-weight:700;padding:5px 0;clear:left}.react-datepicker__portal{position:fixed;width:100vw;height:100vh;background-color:#000c;left:0;top:0;justify-content:center;align-items:center;display:flex;z-index:2147483647}.react-datepicker__portal .react-datepicker__day-name,.react-datepicker__portal .react-datepicker__day,.react-datepicker__portal .react-datepicker__time-name{width:3rem;line-height:3rem}@media (max-width: 400px),(max-height: 550px){.react-datepicker__portal .react-datepicker__day-name,.react-datepicker__portal .react-datepicker__day,.react-datepicker__portal .react-datepicker__time-name{width:2rem;line-height:2rem}}.react-datepicker__portal .react-datepicker__current-month,.react-datepicker__portal .react-datepicker-time__header{font-size:1.44rem}.react-datepicker__children-container{width:13.8rem;margin:.4rem;padding-right:.2rem;padding-left:.2rem;height:auto}.react-datepicker__aria-live{position:absolute;clip-path:circle(0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;width:1px;white-space:nowrap}.react-datepicker__calendar-icon{width:1em;height:1em;vertical-align:-.125em}.react-tags{position:relative;padding:5px 0 0 6px;border-radius:.5rem;background-color:var(--primary-color);border:1px solid var(--input-border-color);transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out;font-size:1em;line-height:1.2;cursor:text}.input-group>.react-tags{flex:1 1 auto;width:1%;min-width:0}.card .react-tags{background-color:var(--input-color)}.react-tags.is-active{box-shadow:0 0 0 .2rem #4696e540}.react-tags__label{display:none}.react-tags__tag{font-size:100%}.react-tags__list{display:inline;vertical-align:2px;padding:0;list-style-type:none}.react-tags__list-item{display:inline-block}.react-tags__list-item:not(:last-child){margin-right:3px}.react-tags__combobox{display:inline-block;padding:6px 2px;margin-top:2px;margin-bottom:3px;max-width:100%}@media screen and (min-width: 576px){.react-tags__combobox{position:relative}}.react-tags__combobox-input{font-size:1.25rem;line-height:inherit;color:var(--input-text-color);background-color:inherit;max-width:100%;margin:0 0 0 7px;padding:0;border:0;outline:none}.react-tags__combobox-input::placeholder{color:#6c757d}.react-tags__combobox-input::-ms-clear{display:none}.react-tags__listbox{position:absolute;top:100%;left:0;width:100%;z-index:10;margin:4px -1px;padding:0;background:var(--primary-color);border:1px solid var(--border-color);border-radius:.25rem;box-shadow:0 2px 6px #0003}@media screen and (min-width: 576px){.react-tags__listbox{width:240px}}.react-tags__listbox .react-tags__listbox-option{padding:8px 10px}.react-tags__listbox .react-tags__listbox-option:not(:last-child){border-bottom:1px solid var(--border-color)}.react-tags__listbox .react-tags__listbox-option:hover:not(.react-tags__listbox-option--not-selectable){cursor:pointer;background-color:var(--active-color)}.react-tags__listbox .react-tags__listbox-option.is-active{background-color:var(--active-color)}.react-tags__listbox .react-tags__listbox-option.is-disabled{opacity:.5;cursor:auto}.sticky-card-paginator{position:sticky;bottom:0;background-color:var(--primary-color-alfa);padding:.75rem 0;border-top:1px solid var(--border-color)}.input-group-text.input-group-text{border-color:var(--input-border-color)}.top-sticky{position:sticky;top:56px;z-index:10} diff --git a/develop/assets/index-Ot_bbhNG.js b/develop/assets/index-Ot_bbhNG.js new file mode 100644 index 00000000..25a29083 --- /dev/null +++ b/develop/assets/index-Ot_bbhNG.js @@ -0,0 +1,1035 @@ +var UK=Object.defineProperty;var $K=(e,t,n)=>t in e?UK(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var nc=(e,t,n)=>($K(e,typeof t!="symbol"?t+"":t,n),n);function BK(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();function Du(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var CF={exports:{}},C_={},kF={exports:{}},pt={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var tv=Symbol.for("react.element"),zK=Symbol.for("react.portal"),VK=Symbol.for("react.fragment"),HK=Symbol.for("react.strict_mode"),WK=Symbol.for("react.profiler"),YK=Symbol.for("react.provider"),GK=Symbol.for("react.context"),qK=Symbol.for("react.forward_ref"),KK=Symbol.for("react.suspense"),ZK=Symbol.for("react.memo"),QK=Symbol.for("react.lazy"),kN=Symbol.iterator;function XK(e){return e===null||typeof e!="object"?null:(e=kN&&e[kN]||e["@@iterator"],typeof e=="function"?e:null)}var jF={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},PF=Object.assign,AF={};function ud(e,t,n){this.props=e,this.context=t,this.refs=AF,this.updater=n||jF}ud.prototype.isReactComponent={};ud.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)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")};ud.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function NF(){}NF.prototype=ud.prototype;function SC(e,t,n){this.props=e,this.context=t,this.refs=AF,this.updater=n||jF}var EC=SC.prototype=new NF;EC.constructor=SC;PF(EC,ud.prototype);EC.isPureReactComponent=!0;var jN=Array.isArray,MF=Object.prototype.hasOwnProperty,TC={current:null},RF={key:!0,ref:!0,__self:!0,__source:!0};function DF(e,t,n){var r,i={},o=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(o=""+t.key),t)MF.call(t,r)&&!RF.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1>>1,re=X[W];if(0>>1;Wi(oe,V))lei(fe,oe)?(X[W]=fe,X[le]=V,W=le):(X[W]=oe,X[ee]=V,W=ee);else if(lei(fe,V))X[W]=fe,X[le]=V,W=le;else break e}}return z}function i(X,z){var V=X.sortIndex-z.sortIndex;return V!==0?V:X.id-z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],u=[],f=1,d=null,p=3,m=!1,v=!1,g=!1,x=typeof setTimeout=="function"?setTimeout:null,b=typeof clearTimeout=="function"?clearTimeout:null,_=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(X){for(var z=n(u);z!==null;){if(z.callback===null)r(u);else if(z.startTime<=X)r(u),z.sortIndex=z.expirationTime,t(l,z);else break;z=n(u)}}function O(X){if(g=!1,w(X),!v)if(n(l)!==null)v=!0,Z(E);else{var z=n(u);z!==null&&te(O,z.startTime-X)}}function E(X,z){v=!1,g&&(g=!1,b(P),P=-1),m=!0;var V=p;try{for(w(z),d=n(l);d!==null&&(!(d.expirationTime>z)||X&&!F());){var W=d.callback;if(typeof W=="function"){d.callback=null,p=d.priorityLevel;var re=W(d.expirationTime<=z);z=e.unstable_now(),typeof re=="function"?d.callback=re:d===n(l)&&r(l),w(z)}else r(l);d=n(l)}if(d!==null)var q=!0;else{var ee=n(u);ee!==null&&te(O,ee.startTime-z),q=!1}return q}finally{d=null,p=V,m=!1}}var T=!1,k=null,P=-1,D=5,N=-1;function F(){return!(e.unstable_now()-NX||125W?(X.sortIndex=V,t(u,X),n(l)===null&&X===n(u)&&(g?(b(P),P=-1):g=!0,te(O,V-W))):(X.sortIndex=re,t(l,X),v||m||(v=!0,Z(E))),X},e.unstable_shouldYield=F,e.unstable_wrapCallback=function(X){var z=p;return function(){var V=p;p=z;try{return X.apply(this,arguments)}finally{p=V}}}})(UF);FF.exports=UF;var uZ=FF.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var $F=I,ci=uZ;function Te(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),MS=Object.prototype.hasOwnProperty,cZ=/^[: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]*$/,AN={},NN={};function fZ(e){return MS.call(NN,e)?!0:MS.call(AN,e)?!1:cZ.test(e)?NN[e]=!0:(AN[e]=!0,!1)}function dZ(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function pZ(e,t,n,r){if(t===null||typeof t>"u"||dZ(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Fr(e,t,n,r,i,o,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var dr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){dr[e]=new Fr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];dr[t]=new Fr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){dr[e]=new Fr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){dr[e]=new Fr(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){dr[e]=new Fr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){dr[e]=new Fr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){dr[e]=new Fr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){dr[e]=new Fr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){dr[e]=new Fr(e,5,!1,e.toLowerCase(),null,!1,!1)});var kC=/[\-:]([a-z])/g;function jC(e){return e[1].toUpperCase()}"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-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(kC,jC);dr[t]=new Fr(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(kC,jC);dr[t]=new Fr(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(kC,jC);dr[t]=new Fr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){dr[e]=new Fr(e,1,!1,e.toLowerCase(),null,!1,!1)});dr.xlinkHref=new Fr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){dr[e]=new Fr(e,1,!1,e.toLowerCase(),null,!0,!0)});function PC(e,t,n,r){var i=dr.hasOwnProperty(t)?dr[t]:null;(i!==null?i.type!==0:r||!(2s||i[a]!==o[s]){var l=` +`+i[a].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{Mx=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Mp(e):""}function hZ(e){switch(e.tag){case 5:return Mp(e.type);case 16:return Mp("Lazy");case 13:return Mp("Suspense");case 19:return Mp("SuspenseList");case 0:case 2:case 15:return e=Rx(e.type,!1),e;case 11:return e=Rx(e.type.render,!1),e;case 1:return e=Rx(e.type,!0),e;default:return""}}function IS(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Sc:return"Fragment";case Oc:return"Portal";case RS:return"Profiler";case AC:return"StrictMode";case DS:return"Suspense";case LS:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case VF:return(e.displayName||"Context")+".Consumer";case zF:return(e._context.displayName||"Context")+".Provider";case NC:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case MC:return t=e.displayName||null,t!==null?t:IS(e.type)||"Memo";case vs:t=e._payload,e=e._init;try{return IS(e(t))}catch{}}return null}function mZ(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=t.render,e=e.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 IS(t);case 8:return t===AC?"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(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Ks(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function WF(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function vZ(e){var t=WF(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){r=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ug(e){e._valueTracker||(e._valueTracker=vZ(e))}function YF(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=WF(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Yy(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function FS(e,t){var n=t.checked;return cn({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function RN(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ks(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function GF(e,t){t=t.checked,t!=null&&PC(e,"checked",t,!1)}function US(e,t){GF(e,t);var n=Ks(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?$S(e,t.type,n):t.hasOwnProperty("defaultValue")&&$S(e,t.type,Ks(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function DN(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function $S(e,t,n){(t!=="number"||Yy(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Rp=Array.isArray;function qc(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=cg.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ch(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Gp={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},gZ=["Webkit","ms","Moz","O"];Object.keys(Gp).forEach(function(e){gZ.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Gp[t]=Gp[e]})});function QF(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Gp.hasOwnProperty(e)&&Gp[e]?(""+t).trim():t+"px"}function XF(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=QF(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var yZ=cn({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 VS(e,t){if(t){if(yZ[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Te(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Te(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Te(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Te(62))}}function HS(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";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 WS=null;function RC(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var YS=null,Kc=null,Zc=null;function FN(e){if(e=iv(e)){if(typeof YS!="function")throw Error(Te(280));var t=e.stateNode;t&&(t=N_(t),YS(e.stateNode,e.type,t))}}function JF(e){Kc?Zc?Zc.push(e):Zc=[e]:Kc=e}function eU(){if(Kc){var e=Kc,t=Zc;if(Zc=Kc=null,FN(e),t)for(e=0;e>>=0,e===0?32:31-(jZ(e)/PZ|0)|0}var fg=64,dg=4194304;function Dp(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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Zy(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=n&268435455;if(a!==0){var s=a&~i;s!==0?r=Dp(s):(o&=a,o!==0&&(r=Dp(o)))}else a=n&~i,a!==0?r=Dp(a):o!==0&&(r=Dp(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function nv(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-mo(t),e[t]=n}function RZ(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=Kp),GN=String.fromCharCode(32),qN=!1;function _U(e,t){switch(e){case"keyup":return lQ.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function wU(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ec=!1;function cQ(e,t){switch(e){case"compositionend":return wU(t);case"keypress":return t.which!==32?null:(qN=!0,GN);case"textInput":return e=t.data,e===GN&&qN?null:e;default:return null}}function fQ(e,t){if(Ec)return e==="compositionend"||!zC&&_U(e,t)?(e=yU(),gy=UC=Os=null,Ec=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=XN(n)}}function EU(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?EU(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function TU(){for(var e=window,t=Yy();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Yy(e.document)}return t}function VC(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function _Q(e){var t=TU(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&EU(n.ownerDocument.documentElement,n)){if(r!==null&&VC(n)){if(t=r.start,e=r.end,e===void 0&&(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,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=JN(n,o);var a=JN(n,r);i&&a&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.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;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Tc=null,XS=null,Qp=null,JS=!1;function eM(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;JS||Tc==null||Tc!==Yy(r)||(r=Tc,"selectionStart"in r&&VC(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Qp&&Mh(Qp,r)||(Qp=r,r=Jy(XS,"onSelect"),0jc||(e.current=o2[jc],o2[jc]=null,jc--)}function Ft(e,t){jc++,o2[jc]=e.current,e.current=t}var Zs={},_r=ul(Zs),Wr=ul(!1),bu=Zs;function lf(e,t){var n=e.type.contextTypes;if(!n)return Zs;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Yr(e){return e=e.childContextTypes,e!=null}function t0(){Gt(Wr),Gt(_r)}function sM(e,t,n){if(_r.current!==Zs)throw Error(Te(168));Ft(_r,t),Ft(Wr,n)}function DU(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(Te(108,mZ(e)||"Unknown",i));return cn({},n,r)}function n0(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Zs,bu=_r.current,Ft(_r,e),Ft(Wr,Wr.current),!0}function lM(e,t,n){var r=e.stateNode;if(!r)throw Error(Te(169));n?(e=DU(e,t,bu),r.__reactInternalMemoizedMergedChildContext=e,Gt(Wr),Gt(_r),Ft(_r,e)):Gt(Wr),Ft(Wr,n)}var ga=null,M_=!1,qx=!1;function LU(e){ga===null?ga=[e]:ga.push(e)}function NQ(e){M_=!0,LU(e)}function cl(){if(!qx&&ga!==null){qx=!0;var e=0,t=At;try{var n=ga;for(At=1;e>=a,i-=a,_a=1<<32-mo(t)+i|n<P?(D=k,k=null):D=k.sibling;var N=p(b,k,w[P],O);if(N===null){k===null&&(k=D);break}e&&k&&N.alternate===null&&t(b,k),_=o(N,_,P),T===null?E=N:T.sibling=N,T=N,k=D}if(P===w.length)return n(b,k),Zt&&Dl(b,P),E;if(k===null){for(;PP?(D=k,k=null):D=k.sibling;var F=p(b,k,N.value,O);if(F===null){k===null&&(k=D);break}e&&k&&F.alternate===null&&t(b,k),_=o(F,_,P),T===null?E=F:T.sibling=F,T=F,k=D}if(N.done)return n(b,k),Zt&&Dl(b,P),E;if(k===null){for(;!N.done;P++,N=w.next())N=d(b,N.value,O),N!==null&&(_=o(N,_,P),T===null?E=N:T.sibling=N,T=N);return Zt&&Dl(b,P),E}for(k=r(b,k);!N.done;P++,N=w.next())N=m(k,b,P,N.value,O),N!==null&&(e&&N.alternate!==null&&k.delete(N.key===null?P:N.key),_=o(N,_,P),T===null?E=N:T.sibling=N,T=N);return e&&k.forEach(function(B){return t(b,B)}),Zt&&Dl(b,P),E}function x(b,_,w,O){if(typeof w=="object"&&w!==null&&w.type===Sc&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case lg:e:{for(var E=w.key,T=_;T!==null;){if(T.key===E){if(E=w.type,E===Sc){if(T.tag===7){n(b,T.sibling),_=i(T,w.props.children),_.return=b,b=_;break e}}else if(T.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===vs&&mM(E)===T.type){n(b,T.sibling),_=i(T,w.props),_.ref=up(b,T,w),_.return=b,b=_;break e}n(b,T);break}else t(b,T);T=T.sibling}w.type===Sc?(_=su(w.props.children,b.mode,O,w.key),_.return=b,b=_):(O=Ey(w.type,w.key,w.props,null,b.mode,O),O.ref=up(b,_,w),O.return=b,b=O)}return a(b);case Oc:e:{for(T=w.key;_!==null;){if(_.key===T)if(_.tag===4&&_.stateNode.containerInfo===w.containerInfo&&_.stateNode.implementation===w.implementation){n(b,_.sibling),_=i(_,w.children||[]),_.return=b,b=_;break e}else{n(b,_);break}else t(b,_);_=_.sibling}_=nO(w,b.mode,O),_.return=b,b=_}return a(b);case vs:return T=w._init,x(b,_,T(w._payload),O)}if(Rp(w))return v(b,_,w,O);if(ip(w))return g(b,_,w,O);bg(b,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,_!==null&&_.tag===6?(n(b,_.sibling),_=i(_,w),_.return=b,b=_):(n(b,_),_=tO(w,b.mode,O),_.return=b,b=_),a(b)):n(b,_)}return x}var cf=HU(!0),WU=HU(!1),ov={},Ho=ul(ov),Ih=ul(ov),Fh=ul(ov);function Ql(e){if(e===ov)throw Error(Te(174));return e}function XC(e,t){switch(Ft(Fh,t),Ft(Ih,e),Ft(Ho,ov),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:zS(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=zS(t,e)}Gt(Ho),Ft(Ho,t)}function ff(){Gt(Ho),Gt(Ih),Gt(Fh)}function YU(e){Ql(Fh.current);var t=Ql(Ho.current),n=zS(t,e.type);t!==n&&(Ft(Ih,e),Ft(Ho,n))}function JC(e){Ih.current===e&&(Gt(Ho),Gt(Ih))}var on=ul(0);function l0(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Kx=[];function ek(){for(var e=0;en?n:4,e(!0);var r=Zx.transition;Zx.transition={};try{e(!1),t()}finally{At=n,Zx.transition=r}}function l$(){return Bi().memoizedState}function LQ(e,t,n){var r=Us(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},u$(e))c$(t,n);else if(n=$U(e,t,n,r),n!==null){var i=Rr();vo(n,e,r,i),f$(n,t,r)}}function IQ(e,t,n){var r=Us(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(u$(e))c$(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,yo(s,a)){var l=t.interleaved;l===null?(i.next=i,ZC(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=$U(e,t,i,r),n!==null&&(i=Rr(),vo(n,e,r,i),f$(n,t,r))}}function u$(e){var t=e.alternate;return e===ln||t!==null&&t===ln}function c$(e,t){Xp=u0=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function f$(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,LC(e,n)}}var c0={readContext:$i,useCallback:hr,useContext:hr,useEffect:hr,useImperativeHandle:hr,useInsertionEffect:hr,useLayoutEffect:hr,useMemo:hr,useReducer:hr,useRef:hr,useState:hr,useDebugValue:hr,useDeferredValue:hr,useTransition:hr,useMutableSource:hr,useSyncExternalStore:hr,useId:hr,unstable_isNewReconciler:!1},FQ={readContext:$i,useCallback:function(e,t){return Ro().memoizedState=[e,t===void 0?null:t],e},useContext:$i,useEffect:gM,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,wy(4194308,4,r$.bind(null,t,e),n)},useLayoutEffect:function(e,t){return wy(4194308,4,e,t)},useInsertionEffect:function(e,t){return wy(4,2,e,t)},useMemo:function(e,t){var n=Ro();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ro();return t=n!==void 0?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=LQ.bind(null,ln,e),[r.memoizedState,e]},useRef:function(e){var t=Ro();return e={current:e},t.memoizedState=e},useState:vM,useDebugValue:ok,useDeferredValue:function(e){return Ro().memoizedState=e},useTransition:function(){var e=vM(!1),t=e[0];return e=DQ.bind(null,e[1]),Ro().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ln,i=Ro();if(Zt){if(n===void 0)throw Error(Te(407));n=n()}else{if(n=t(),Gn===null)throw Error(Te(349));wu&30||KU(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,gM(QU.bind(null,r,o,e),[e]),r.flags|=2048,Bh(9,ZU.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Ro(),t=Gn.identifierPrefix;if(Zt){var n=wa,r=_a;n=(r&~(1<<32-mo(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Uh++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[Lo]=t,e[Lh]=r,_$(e,t,!1,!1),t.stateNode=e;e:{switch(a=HS(n,r),n){case"dialog":Bt("cancel",e),Bt("close",e),i=r;break;case"iframe":case"object":case"embed":Bt("load",e),i=r;break;case"video":case"audio":for(i=0;ipf&&(t.flags|=128,r=!0,cp(o,!1),t.lanes=4194304)}else{if(!r)if(e=l0(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),cp(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!Zt)return mr(t),null}else 2*bn()-o.renderingStartTime>pf&&n!==1073741824&&(t.flags|=128,r=!0,cp(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(n=o.last,n!==null?n.sibling=a:t.child=a,o.last=a)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=bn(),t.sibling=null,n=on.current,Ft(on,r?n&1|2:n&1),t):(mr(t),null);case 22:case 23:return fk(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ii&1073741824&&(mr(t),t.subtreeFlags&6&&(t.flags|=8192)):mr(t),null;case 24:return null;case 25:return null}throw Error(Te(156,t.tag))}function YQ(e,t){switch(WC(t),t.tag){case 1:return Yr(t.type)&&t0(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ff(),Gt(Wr),Gt(_r),ek(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return JC(t),null;case 13:if(Gt(on),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Te(340));uf()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Gt(on),null;case 4:return ff(),null;case 10:return KC(t.type._context),null;case 22:case 23:return fk(),null;case 24:return null;default:return null}}var wg=!1,yr=!1,GQ=typeof WeakSet=="function"?WeakSet:Set,$e=null;function Mc(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){dn(e,t,r)}else n.current=null}function g2(e,t,n){try{n()}catch(r){dn(e,t,r)}}var TM=!1;function qQ(e,t){if(e2=Qy,e=TU(),VC(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var a=0,s=-1,l=-1,u=0,f=0,d=e,p=null;t:for(;;){for(var m;d!==n||i!==0&&d.nodeType!==3||(s=a+i),d!==o||r!==0&&d.nodeType!==3||(l=a+r),d.nodeType===3&&(a+=d.nodeValue.length),(m=d.firstChild)!==null;)p=d,d=m;for(;;){if(d===e)break t;if(p===n&&++u===i&&(s=a),p===o&&++f===r&&(l=a),(m=d.nextSibling)!==null)break;d=p,p=d.parentNode}d=m}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(t2={focusedElem:e,selectionRange:n},Qy=!1,$e=t;$e!==null;)if(t=$e,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,$e=e;else for(;$e!==null;){t=$e;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var g=v.memoizedProps,x=v.memoizedState,b=t.stateNode,_=b.getSnapshotBeforeUpdate(t.elementType===t.type?g:oo(t.type,g),x);b.__reactInternalSnapshotBeforeUpdate=_}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Te(163))}}catch(O){dn(t,t.return,O)}if(e=t.sibling,e!==null){e.return=t.return,$e=e;break}$e=t.return}return v=TM,TM=!1,v}function Jp(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&g2(t,n,o)}i=i.next}while(i!==r)}}function L_(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==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 y2(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function O$(e){var t=e.alternate;t!==null&&(e.alternate=null,O$(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Lo],delete t[Lh],delete t[i2],delete t[PQ],delete t[AQ])),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 S$(e){return e.tag===5||e.tag===3||e.tag===4}function CM(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||S$(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function b2(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=e0));else if(r!==4&&(e=e.child,e!==null))for(b2(e,t,n),e=e.sibling;e!==null;)b2(e,t,n),e=e.sibling}function _2(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(_2(e,t,n),e=e.sibling;e!==null;)_2(e,t,n),e=e.sibling}var ur=null,ao=!1;function rs(e,t,n){for(n=n.child;n!==null;)E$(e,t,n),n=n.sibling}function E$(e,t,n){if(Vo&&typeof Vo.onCommitFiberUnmount=="function")try{Vo.onCommitFiberUnmount(k_,n)}catch{}switch(n.tag){case 5:yr||Mc(n,t);case 6:var r=ur,i=ao;ur=null,rs(e,t,n),ur=r,ao=i,ur!==null&&(ao?(e=ur,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ur.removeChild(n.stateNode));break;case 18:ur!==null&&(ao?(e=ur,n=n.stateNode,e.nodeType===8?Gx(e.parentNode,n):e.nodeType===1&&Gx(e,n),Ah(e)):Gx(ur,n.stateNode));break;case 4:r=ur,i=ao,ur=n.stateNode.containerInfo,ao=!0,rs(e,t,n),ur=r,ao=i;break;case 0:case 11:case 14:case 15:if(!yr&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,a!==void 0&&(o&2||o&4)&&g2(n,t,a),i=i.next}while(i!==r)}rs(e,t,n);break;case 1:if(!yr&&(Mc(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){dn(n,t,s)}rs(e,t,n);break;case 21:rs(e,t,n);break;case 22:n.mode&1?(yr=(r=yr)||n.memoizedState!==null,rs(e,t,n),yr=r):rs(e,t,n);break;default:rs(e,t,n)}}function kM(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new GQ),t.forEach(function(r){var i=rX.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function ro(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=a),r&=~o}if(r=i,r=bn()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*ZQ(r/1960))-r,10e?16:e,Ss===null)var r=!1;else{if(e=Ss,Ss=null,p0=0,bt&6)throw Error(Te(331));var i=bt;for(bt|=4,$e=e.current;$e!==null;){var o=$e,a=o.child;if($e.flags&16){var s=o.deletions;if(s!==null){for(var l=0;lbn()-uk?au(e,0):lk|=n),Gr(e,t)}function M$(e,t){t===0&&(e.mode&1?(t=dg,dg<<=1,!(dg&130023424)&&(dg=4194304)):t=1);var n=Rr();e=Na(e,t),e!==null&&(nv(e,t,n),Gr(e,n))}function nX(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),M$(e,n)}function rX(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(Te(314))}r!==null&&r.delete(t),M$(e,n)}var R$;R$=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Wr.current)Br=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Br=!1,HQ(e,t,n);Br=!!(e.flags&131072)}else Br=!1,Zt&&t.flags&1048576&&IU(t,i0,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;xy(e,t),e=t.pendingProps;var i=lf(t,_r.current);Xc(t,n),i=nk(null,t,r,e,i,n);var o=rk();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Yr(r)?(o=!0,n0(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,QC(t),i.updater=R_,t.stateNode=i,i._reactInternals=t,c2(t,r,e,n),t=p2(null,t,r,!0,o,n)):(t.tag=0,Zt&&o&&HC(t),kr(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(xy(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=oX(r),e=oo(r,e),i){case 0:t=d2(null,t,r,e,n);break e;case 1:t=OM(null,t,r,e,n);break e;case 11:t=wM(null,t,r,e,n);break e;case 14:t=xM(null,t,r,oo(r.type,e),n);break e}throw Error(Te(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:oo(r,i),d2(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:oo(r,i),OM(e,t,r,i,n);case 3:e:{if(g$(t),e===null)throw Error(Te(387));r=t.pendingProps,o=t.memoizedState,i=o.element,BU(e,t),s0(t,r,null,n);var a=t.memoizedState;if(r=a.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=df(Error(Te(423)),t),t=SM(e,t,r,n,i);break e}else if(r!==i){i=df(Error(Te(424)),t),t=SM(e,t,r,n,i);break e}else for(ai=Ls(t.stateNode.containerInfo.firstChild),si=t,Zt=!0,uo=null,n=WU(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(uf(),r===i){t=Ma(e,t,n);break e}kr(e,t,r,n)}t=t.child}return t;case 5:return YU(t),e===null&&s2(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,n2(r,i)?a=null:o!==null&&n2(r,o)&&(t.flags|=32),v$(e,t),kr(e,t,a,n),t.child;case 6:return e===null&&s2(t),null;case 13:return y$(e,t,n);case 4:return XC(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=cf(t,null,r,n):kr(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:oo(r,i),wM(e,t,r,i,n);case 7:return kr(e,t,t.pendingProps,n),t.child;case 8:return kr(e,t,t.pendingProps.children,n),t.child;case 12:return kr(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value,Ft(o0,r._currentValue),r._currentValue=a,o!==null)if(yo(o.value,a)){if(o.children===i.children&&!Wr.current){t=Ma(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){a=o.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=Ea(-1,n&-n),l.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var f=u.pending;f===null?l.next=l:(l.next=f.next,f.next=l),u.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),l2(o.return,n,t),s.lanes|=n;break}l=l.next}}else if(o.tag===10)a=o.type===t.type?null:o.child;else if(o.tag===18){if(a=o.return,a===null)throw Error(Te(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),l2(a,n,t),a=o.sibling}else a=o.child;if(a!==null)a.return=o;else for(a=o;a!==null;){if(a===t){a=null;break}if(o=a.sibling,o!==null){o.return=a.return,a=o;break}a=a.return}o=a}kr(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Xc(t,n),i=$i(i),r=r(i),t.flags|=1,kr(e,t,r,n),t.child;case 14:return r=t.type,i=oo(r,t.pendingProps),i=oo(r.type,i),xM(e,t,r,i,n);case 15:return h$(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:oo(r,i),xy(e,t),t.tag=1,Yr(r)?(e=!0,n0(t)):e=!1,Xc(t,n),VU(t,r,i),c2(t,r,i,n),p2(null,t,r,!0,e,n);case 19:return b$(e,t,n);case 22:return m$(e,t,n)}throw Error(Te(156,t.tag))};function D$(e,t){return sU(e,t)}function iX(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=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 Ni(e,t,n,r){return new iX(e,t,n,r)}function pk(e){return e=e.prototype,!(!e||!e.isReactComponent)}function oX(e){if(typeof e=="function")return pk(e)?1:0;if(e!=null){if(e=e.$$typeof,e===NC)return 11;if(e===MC)return 14}return 2}function $s(e,t){var n=e.alternate;return n===null?(n=Ni(e.tag,t,e.key,e.mode),n.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=e.flags&14680064,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=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ey(e,t,n,r,i,o){var a=2;if(r=e,typeof e=="function")pk(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Sc:return su(n.children,i,o,t);case AC:a=8,i|=8;break;case RS:return e=Ni(12,n,t,i|2),e.elementType=RS,e.lanes=o,e;case DS:return e=Ni(13,n,t,i),e.elementType=DS,e.lanes=o,e;case LS:return e=Ni(19,n,t,i),e.elementType=LS,e.lanes=o,e;case HF:return F_(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case zF:a=10;break e;case VF:a=9;break e;case NC:a=11;break e;case MC:a=14;break e;case vs:a=16,r=null;break e}throw Error(Te(130,e==null?e:typeof e,""))}return t=Ni(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function su(e,t,n,r){return e=Ni(7,e,r,t),e.lanes=n,e}function F_(e,t,n,r){return e=Ni(22,e,r,t),e.elementType=HF,e.lanes=n,e.stateNode={isHidden:!1},e}function tO(e,t,n){return e=Ni(6,e,null,t),e.lanes=n,e}function nO(e,t,n){return t=Ni(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function aX(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=Lx(0),this.expirationTimes=Lx(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Lx(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function hk(e,t,n,r,i,o,a,s,l){return e=new aX(e,t,n,s,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Ni(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},QC(o),e}function sX(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(U$)}catch(e){console.error(e)}}U$(),IF.exports=vi;var dd=IF.exports;const lu=Du(dd);var $$,LM=dd;$$=LM.createRoot,LM.hydrateRoot;var dX={};/** + * @license React + * use-sync-external-store-with-selector.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var av=I;function pX(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var hX=typeof Object.is=="function"?Object.is:pX,mX=av.useSyncExternalStore,vX=av.useRef,gX=av.useEffect,yX=av.useMemo,bX=av.useDebugValue;dX.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=vX(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=yX(function(){function l(m){if(!u){if(u=!0,f=m,m=r(m),i!==void 0&&a.hasValue){var v=a.value;if(i(v,m))return d=v}return d=m}if(v=d,hX(f,m))return v;var g=r(m);return i!==void 0&&i(v,g)?v:(f=m,d=g)}var u=!1,f,d,p=n===void 0?null:n;return[function(){return l(t())},p===null?void 0:function(){return l(p())}]},[t,n,r,i]);var s=mX(e,o[0],o[1]);return gX(function(){a.hasValue=!0,a.value=s},[s]),bX(s),s};var Tt="default"in NS?M:NS,IM=Symbol.for("react-redux-context"),FM=typeof globalThis<"u"?globalThis:{};function _X(){if(!Tt.createContext)return{};const e=FM[IM]??(FM[IM]=new Map);let t=e.get(Tt.createContext);return t||(t=Tt.createContext(null),e.set(Tt.createContext,t)),t}var B$=_X(),wX=()=>{throw new Error("uSES not initialized!")},xX=Symbol.for("react.element"),OX=Symbol.for("react.portal"),SX=Symbol.for("react.fragment"),EX=Symbol.for("react.strict_mode"),TX=Symbol.for("react.profiler"),CX=Symbol.for("react.provider"),kX=Symbol.for("react.context"),jX=Symbol.for("react.server_context"),z$=Symbol.for("react.forward_ref"),PX=Symbol.for("react.suspense"),AX=Symbol.for("react.suspense_list"),yk=Symbol.for("react.memo"),NX=Symbol.for("react.lazy"),MX=z$,RX=yk;function DX(e){if(typeof e=="object"&&e!==null){const t=e.$$typeof;switch(t){case xX:{const n=e.type;switch(n){case SX:case TX:case EX:case PX:case AX:return n;default:{const r=n&&n.$$typeof;switch(r){case jX:case kX:case z$:case NX:case yk:case CX:return r;default:return t}}}}case OX:return t}}}function LX(e){return DX(e)===yk}function IX(e,t,n,r,{areStatesEqual:i,areOwnPropsEqual:o,areStatePropsEqual:a}){let s=!1,l,u,f,d,p;function m(_,w){return l=_,u=w,f=e(l,u),d=t(r,u),p=n(f,d,u),s=!0,p}function v(){return f=e(l,u),t.dependsOnOwnProps&&(d=t(r,u)),p=n(f,d,u),p}function g(){return e.dependsOnOwnProps&&(f=e(l,u)),t.dependsOnOwnProps&&(d=t(r,u)),p=n(f,d,u),p}function x(){const _=e(l,u),w=!a(_,f);return f=_,w&&(p=n(f,d,u)),p}function b(_,w){const O=!o(w,u),E=!i(_,l,w,u);return l=_,u=w,O&&E?v():O?g():E?x():p}return function(w,O){return s?b(w,O):m(w,O)}}function FX(e,{initMapStateToProps:t,initMapDispatchToProps:n,initMergeProps:r,...i}){const o=t(e,i),a=n(e,i),s=r(e,i);return IX(o,a,s,e,i)}function UX(e,t){const n={};for(const r in e){const i=e[r];typeof i=="function"&&(n[r]=(...o)=>t(i(...o)))}return n}function E2(e){return function(n){const r=e(n);function i(){return r}return i.dependsOnOwnProps=!1,i}}function UM(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function V$(e,t){return function(r,{displayName:i}){const o=function(s,l){return o.dependsOnOwnProps?o.mapToProps(s,l):o.mapToProps(s,void 0)};return o.dependsOnOwnProps=!0,o.mapToProps=function(s,l){o.mapToProps=e,o.dependsOnOwnProps=UM(e);let u=o(s,l);return typeof u=="function"&&(o.mapToProps=u,o.dependsOnOwnProps=UM(u),u=o(s,l)),u},o}}function bk(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function $X(e){return e&&typeof e=="object"?E2(t=>UX(e,t)):e?typeof e=="function"?V$(e):bk(e,"mapDispatchToProps"):E2(t=>({dispatch:t}))}function BX(e){return e?typeof e=="function"?V$(e):bk(e,"mapStateToProps"):E2(()=>({}))}function zX(e,t,n){return{...n,...e,...t}}function VX(e){return function(n,{displayName:r,areMergedPropsEqual:i}){let o=!1,a;return function(l,u,f){const d=e(l,u,f);return o?i(d,a)||(a=d):(o=!0,a=d),a}}}function HX(e){return e?typeof e=="function"?VX(e):bk(e,"mergeProps"):()=>zX}function WX(e){e()}function YX(){let e=null,t=null;return{clear(){e=null,t=null},notify(){WX(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!r||e===null||(r=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var $M={notify(){},get:()=>[]};function H$(e,t){let n,r=$M,i=0,o=!1;function a(g){f();const x=r.subscribe(g);let b=!1;return()=>{b||(b=!0,x(),d())}}function s(){r.notify()}function l(){v.onStateChange&&v.onStateChange()}function u(){return o}function f(){i++,n||(n=t?t.addNestedSub(l):e.subscribe(l),r=YX())}function d(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=$M)}function p(){o||(o=!0,f())}function m(){o&&(o=!1,d())}const v={addNestedSub:a,notifyNestedSubs:s,handleChangeWrapper:l,isSubscribed:u,trySubscribe:p,tryUnsubscribe:m,getListeners:()=>r};return v}var GX=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",v0=GX?Tt.useLayoutEffect:Tt.useEffect;function BM(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function rO(e,t){if(BM(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i=0;i{Y$=e},rJ=[null,null];function iJ(e,t,n){v0(()=>e(...t),n)}function oJ(e,t,n,r,i,o){e.current=r,n.current=!1,i.current&&(i.current=null,o())}function aJ(e,t,n,r,i,o,a,s,l,u,f){if(!e)return()=>{};let d=!1,p=null;const m=()=>{if(d||!s.current)return;const g=t.getState();let x,b;try{x=r(g,i.current)}catch(_){b=_,p=_}b||(p=null),x===o.current?a.current||u():(o.current=x,l.current=x,a.current=!0,f())};return n.onStateChange=m,n.trySubscribe(),m(),()=>{if(d=!0,n.tryUnsubscribe(),n.onStateChange=null,p)throw p}}function sJ(e,t){return e===t}function lJ(e,t,n,{pure:r,areStatesEqual:i=sJ,areOwnPropsEqual:o=rO,areStatePropsEqual:a=rO,areMergedPropsEqual:s=rO,forwardRef:l=!1,context:u=B$}={}){const f=u,d=BX(e),p=$X(t),m=HX(n),v=!!e;return x=>{const b=x.displayName||x.name||"Component",_=`Connect(${b})`,w={shouldHandleStateChanges:v,displayName:_,wrappedComponentName:b,WrappedComponent:x,initMapStateToProps:d,initMapDispatchToProps:p,initMergeProps:m,areStatesEqual:i,areStatePropsEqual:a,areOwnPropsEqual:o,areMergedPropsEqual:s};function O(k){const[P,D,N]=Tt.useMemo(()=>{const{reactReduxForwardedRef:K,...se}=k;return[k.context,K,se]},[k]),F=Tt.useMemo(()=>{let K=f;return P!=null&&P.Consumer,K},[P,f]),B=Tt.useContext(F),Y=!!k.store&&!!k.store.getState&&!!k.store.dispatch,H=!!B&&!!B.store,Q=Y?k.store:B.store,Z=H?B.getServerState:Q.getState,te=Tt.useMemo(()=>FX(Q.dispatch,w),[Q]),[X,z]=Tt.useMemo(()=>{if(!v)return rJ;const K=H$(Q,Y?void 0:B.subscription),se=K.notifyNestedSubs.bind(K);return[K,se]},[Q,Y,B]),V=Tt.useMemo(()=>Y?B:{...B,subscription:X},[Y,B,X]),W=Tt.useRef(),re=Tt.useRef(N),q=Tt.useRef(),ee=Tt.useRef(!1);Tt.useRef(!1);const oe=Tt.useRef(!1),le=Tt.useRef();v0(()=>(oe.current=!0,()=>{oe.current=!1}),[]);const fe=Tt.useMemo(()=>()=>q.current&&N===re.current?q.current:te(Q.getState(),N),[Q,N]),j=Tt.useMemo(()=>se=>X?aJ(v,Q,X,te,re,W,ee,oe,q,z,se):()=>{},[X]);iJ(oJ,[re,W,ee,N,q,z]);let A;try{A=Y$(j,fe,Z?()=>te(Z(),N):fe)}catch(K){throw le.current&&(K.message+=` +The error may be correlated with this previous error: +${le.current.stack} + +`),K}v0(()=>{le.current=void 0,q.current=void 0,W.current=A});const $=Tt.useMemo(()=>Tt.createElement(x,{...A,ref:D}),[D,x,A]);return Tt.useMemo(()=>v?Tt.createElement(F.Provider,{value:V},$):$,[F,$,V])}const T=Tt.memo(O);if(T.WrappedComponent=x,T.displayName=O.displayName=_,l){const P=Tt.forwardRef(function(N,F){return Tt.createElement(T,{...N,reactReduxForwardedRef:F})});return P.displayName=_,P.WrappedComponent=x,T2(P,x)}return T2(T,x)}}var G$=lJ;function uJ({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",identityFunctionCheck:o="once"}){const a=Tt.useMemo(()=>{const u=H$(e);return{store:e,subscription:u,getServerState:r?()=>r:void 0,stabilityCheck:i,identityFunctionCheck:o}},[e,r,i,o]),s=Tt.useMemo(()=>e.getState(),[e]);v0(()=>{const{subscription:u}=a;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),s!==e.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[a,s]);const l=t||B$;return Tt.createElement(l.Provider,{value:a},n)}var q$=uJ;nJ(I.useSyncExternalStore);/** + * @remix-run/router v1.14.2 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Vh(){return Vh=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function _k(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function fJ(){return Math.random().toString(36).substr(2,8)}function YM(e,t){return{usr:e.state,key:e.key,idx:t}}function C2(e,t,n,r){return n===void 0&&(n=null),Vh({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?pd(t):t,{state:n,key:t&&t.key||r||fJ()})}function g0(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function pd(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function dJ(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,a=i.history,s=Es.Pop,l=null,u=f();u==null&&(u=0,a.replaceState(Vh({},a.state,{idx:u}),""));function f(){return(a.state||{idx:null}).idx}function d(){s=Es.Pop;let x=f(),b=x==null?null:x-u;u=x,l&&l({action:s,location:g.location,delta:b})}function p(x,b){s=Es.Push;let _=C2(g.location,x,b);n&&n(_,x),u=f()+1;let w=YM(_,u),O=g.createHref(_);try{a.pushState(w,"",O)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;i.location.assign(O)}o&&l&&l({action:s,location:g.location,delta:1})}function m(x,b){s=Es.Replace;let _=C2(g.location,x,b);n&&n(_,x),u=f();let w=YM(_,u),O=g.createHref(_);a.replaceState(w,"",O),o&&l&&l({action:s,location:g.location,delta:0})}function v(x){let b=i.location.origin!=="null"?i.location.origin:i.location.href,_=typeof x=="string"?x:g0(x);return un(b,"No window.location.(origin|href) available to create URL for href: "+_),new URL(_,b)}let g={get action(){return s},get location(){return e(i,a)},listen(x){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(WM,d),l=x,()=>{i.removeEventListener(WM,d),l=null}},createHref(x){return t(i,x)},createURL:v,encodeLocation(x){let b=v(x);return{pathname:b.pathname,search:b.search,hash:b.hash}},push:p,replace:m,go(x){return a.go(x)}};return g}var GM;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(GM||(GM={}));function pJ(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?pd(t):t,i=hf(r.pathname||"/",n);if(i==null)return null;let o=K$(e);hJ(o);let a=null;for(let s=0;a==null&&s{let l={relativePath:s===void 0?o.path||"":s,caseSensitive:o.caseSensitive===!0,childrenIndex:a,route:o};l.relativePath.startsWith("/")&&(un(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=Bs([r,l.relativePath]),f=n.concat(l);o.children&&o.children.length>0&&(un(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),K$(o.children,t,f,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:wJ(u,o.index),routesMeta:f})};return e.forEach((o,a)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))i(o,a);else for(let l of Z$(o.path))i(o,a,l)}),t}function Z$(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let a=Z$(r.join("/")),s=[];return s.push(...a.map(l=>l===""?o:[o,l].join("/"))),i&&s.push(...a),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function hJ(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:xJ(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const mJ=/^:[\w-]+$/,vJ=3,gJ=2,yJ=1,bJ=10,_J=-2,qM=e=>e==="*";function wJ(e,t){let n=e.split("/"),r=n.length;return n.some(qM)&&(r+=_J),t&&(r+=gJ),n.filter(i=>!qM(i)).reduce((i,o)=>i+(mJ.test(o)?vJ:o===""?yJ:bJ),r)}function xJ(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function OJ(e,t){let{routesMeta:n}=e,r={},i="/",o=[];for(let a=0;a{let{paramName:p,isOptional:m}=f;if(p==="*"){let g=s[d]||"";a=o.slice(0,o.length-g.length).replace(/(.)\/+$/,"$1")}const v=s[d];return m&&!v?u[p]=void 0:u[p]=TJ(v||"",p),u},{}),pathname:o,pathnameBase:a,pattern:e}}function SJ(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),_k(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,s,l)=>(r.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function EJ(e){try{return decodeURI(e)}catch(t){return _k(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function TJ(e,t){try{return decodeURIComponent(e)}catch(n){return _k(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function hf(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function CJ(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?pd(e):e;return{pathname:n?n.startsWith("/")?n:kJ(n,t):t,search:AJ(r),hash:NJ(i)}}function kJ(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function iO(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function jJ(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function wk(e,t){let n=jJ(e);return t?n.map((r,i)=>i===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function xk(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=pd(e):(i=Vh({},e),un(!i.pathname||!i.pathname.includes("?"),iO("?","pathname","search",i)),un(!i.pathname||!i.pathname.includes("#"),iO("#","pathname","hash",i)),un(!i.search||!i.search.includes("#"),iO("#","search","hash",i)));let o=e===""||i.pathname==="",a=o?"/":i.pathname,s;if(a==null)s=n;else{let d=t.length-1;if(!r&&a.startsWith("..")){let p=a.split("/");for(;p[0]==="..";)p.shift(),d-=1;i.pathname=p.join("/")}s=d>=0?t[d]:"/"}let l=CJ(i,s),u=a&&a!=="/"&&a.endsWith("/"),f=(o||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||f)&&(l.pathname+="/"),l}const Bs=e=>e.join("/").replace(/\/\/+/g,"/"),PJ=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),AJ=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,NJ=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function MJ(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Q$=["post","put","patch","delete"];new Set(Q$);const RJ=["get",...Q$];new Set(RJ);/** + * React Router v6.21.3 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Hh(){return Hh=Object.assign?Object.assign.bind():function(e){for(var t=1;t{s.current=!0}),I.useCallback(function(u,f){if(f===void 0&&(f={}),!s.current)return;if(typeof u=="number"){r.go(u);return}let d=xk(u,JSON.parse(a),o,f.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:Bs([t,d.pathname])),(f.replace?r.replace:r.push)(d,f.state,f)},[t,r,a,o,e])}function hd(){let{matches:e}=I.useContext(Ya),t=e[e.length-1];return t?t.params:{}}function W_(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=I.useContext(Wa),{matches:i}=I.useContext(Ya),{pathname:o}=xr(),a=JSON.stringify(wk(i,r.v7_relativeSplatPath));return I.useMemo(()=>xk(e,JSON.parse(a),o,n==="path"),[e,a,o,n])}function IJ(e,t){return FJ(e,t)}function FJ(e,t,n,r){Fu()||un(!1);let{navigator:i}=I.useContext(Wa),{matches:o}=I.useContext(Ya),a=o[o.length-1],s=a?a.params:{};a&&a.pathname;let l=a?a.pathnameBase:"/";a&&a.route;let u=xr(),f;if(t){var d;let x=typeof t=="string"?pd(t):t;l==="/"||(d=x.pathname)!=null&&d.startsWith(l)||un(!1),f=x}else f=u;let p=f.pathname||"/",m=l==="/"?p:p.slice(l.length)||"/",v=pJ(e,{pathname:m}),g=VJ(v&&v.map(x=>Object.assign({},x,{params:Object.assign({},s,x.params),pathname:Bs([l,i.encodeLocation?i.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?l:Bs([l,i.encodeLocation?i.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),o,n,r);return t&&g?I.createElement(H_.Provider,{value:{location:Hh({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:Es.Pop}},g):g}function UJ(){let e=GJ(),t=MJ(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},o=null;return I.createElement(I.Fragment,null,I.createElement("h2",null,"Unexpected Application Error!"),I.createElement("h3",{style:{fontStyle:"italic"}},t),n?I.createElement("pre",{style:i},n):null,o)}const $J=I.createElement(UJ,null);class BJ extends I.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?I.createElement(Ya.Provider,{value:this.props.routeContext},I.createElement(J$.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function zJ(e){let{routeContext:t,match:n,children:r}=e,i=I.useContext(V_);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),I.createElement(Ya.Provider,{value:t},r)}function VJ(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if((o=n)!=null&&o.errors)e=n.matches;else return null}let a=e,s=(i=n)==null?void 0:i.errors;if(s!=null){let f=a.findIndex(d=>d.route.id&&(s==null?void 0:s[d.route.id]));f>=0||un(!1),a=a.slice(0,Math.min(a.length,f+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let f=0;f=0?a=a.slice(0,u+1):a=[a[0]];break}}}return a.reduceRight((f,d,p)=>{let m,v=!1,g=null,x=null;n&&(m=s&&d.route.id?s[d.route.id]:void 0,g=d.route.errorElement||$J,l&&(u<0&&p===0?(KJ("route-fallback",!1),v=!0,x=null):u===p&&(v=!0,x=d.route.hydrateFallbackElement||null)));let b=t.concat(a.slice(0,p+1)),_=()=>{let w;return m?w=g:v?w=x:d.route.Component?w=I.createElement(d.route.Component,null):d.route.element?w=d.route.element:w=f,I.createElement(zJ,{match:d,routeContext:{outlet:f,matches:b,isDataRoute:n!=null},children:w})};return n&&(d.route.ErrorBoundary||d.route.errorElement||p===0)?I.createElement(BJ,{location:n.location,revalidation:n.revalidation,component:g,error:m,children:_(),routeContext:{outlet:null,matches:b,isDataRoute:!0}}):_()},null)}var t7=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(t7||{}),y0=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(y0||{});function HJ(e){let t=I.useContext(V_);return t||un(!1),t}function WJ(e){let t=I.useContext(X$);return t||un(!1),t}function YJ(e){let t=I.useContext(Ya);return t||un(!1),t}function n7(e){let t=YJ(),n=t.matches[t.matches.length-1];return n.route.id||un(!1),n.route.id}function GJ(){var e;let t=I.useContext(J$),n=WJ(y0.UseRouteError),r=n7(y0.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function qJ(){let{router:e}=HJ(t7.UseNavigateStable),t=n7(y0.UseNavigateStable),n=I.useRef(!1);return e7(()=>{n.current=!0}),I.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Hh({fromRouteId:t},o)))},[e,t])}const KM={};function KJ(e,t,n){!t&&!KM[e]&&(KM[e]=!0)}function Ok(e){let{to:t,replace:n,state:r,relative:i}=e;Fu()||un(!1);let{future:o,static:a}=I.useContext(Wa),{matches:s}=I.useContext(Ya),{pathname:l}=xr(),u=oa(),f=xk(t,wk(s,o.v7_relativeSplatPath),l,i==="path"),d=JSON.stringify(f);return I.useEffect(()=>u(JSON.parse(d),{replace:n,state:r,relative:i}),[u,d,i,n,r]),null}function yt(e){un(!1)}function ZJ(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Es.Pop,navigator:o,static:a=!1,future:s}=e;Fu()&&un(!1);let l=t.replace(/^\/*/,"/"),u=I.useMemo(()=>({basename:l,navigator:o,static:a,future:Hh({v7_relativeSplatPath:!1},s)}),[l,s,o,a]);typeof r=="string"&&(r=pd(r));let{pathname:f="/",search:d="",hash:p="",state:m=null,key:v="default"}=r,g=I.useMemo(()=>{let x=hf(f,l);return x==null?null:{location:{pathname:x,search:d,hash:p,state:m,key:v},navigationType:i}},[l,f,d,p,m,v,i]);return g==null?null:I.createElement(Wa.Provider,{value:u},I.createElement(H_.Provider,{children:n,value:g}))}function Y_(e){let{children:t,location:n}=e;return IJ(j2(t),n)}new Promise(()=>{});function j2(e,t){t===void 0&&(t=[]);let n=[];return I.Children.forEach(e,(r,i)=>{if(!I.isValidElement(r))return;let o=[...t,i];if(r.type===I.Fragment){n.push.apply(n,j2(r.props.children,o));return}r.type!==yt&&un(!1),!r.props.index||!r.props.children||un(!1);let a={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(a.children=j2(r.props.children,o)),n.push(a)}),n}/** + * React Router DOM v6.21.3 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function b0(){return b0=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function QJ(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function XJ(e,t){return e.button===0&&(!t||t==="_self")&&!QJ(e)}const JJ=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],e3=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],t3=I.createContext({isTransitioning:!1}),n3="startTransition",ZM=NS[n3];function i7(e){let{basename:t,children:n,future:r,window:i}=e,o=I.useRef();o.current==null&&(o.current=cJ({window:i,v5Compat:!0}));let a=o.current,[s,l]=I.useState({action:a.action,location:a.location}),{v7_startTransition:u}=r||{},f=I.useCallback(d=>{u&&ZM?ZM(()=>l(d)):l(d)},[l,u]);return I.useLayoutEffect(()=>a.listen(f),[a,f]),I.createElement(ZJ,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:a,future:r})}const r3=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",i3=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,$t=I.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:a,state:s,target:l,to:u,preventScrollReset:f,unstable_viewTransition:d}=t,p=r7(t,JJ),{basename:m}=I.useContext(Wa),v,g=!1;if(typeof u=="string"&&i3.test(u)&&(v=u,r3))try{let w=new URL(window.location.href),O=u.startsWith("//")?new URL(w.protocol+u):new URL(u),E=hf(O.pathname,m);O.origin===w.origin&&E!=null?u=E+O.search+O.hash:g=!0}catch{}let x=DJ(u,{relative:i}),b=a3(u,{replace:a,state:s,target:l,preventScrollReset:f,relative:i,unstable_viewTransition:d});function _(w){r&&r(w),w.defaultPrevented||b(w)}return I.createElement("a",b0({},p,{href:v||x,onClick:g||o?r:_,ref:n,target:l}))}),o7=I.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:i=!1,className:o="",end:a=!1,style:s,to:l,unstable_viewTransition:u,children:f}=t,d=r7(t,e3),p=W_(l,{relative:d.relative}),m=xr(),v=I.useContext(X$),{navigator:g,basename:x}=I.useContext(Wa),b=v!=null&&s3(p)&&u===!0,_=g.encodeLocation?g.encodeLocation(p).pathname:p.pathname,w=m.pathname,O=v&&v.navigation&&v.navigation.location?v.navigation.location.pathname:null;i||(w=w.toLowerCase(),O=O?O.toLowerCase():null,_=_.toLowerCase()),O&&x&&(O=hf(O,x)||O);const E=_!=="/"&&_.endsWith("/")?_.length-1:_.length;let T=w===_||!a&&w.startsWith(_)&&w.charAt(E)==="/",k=O!=null&&(O===_||!a&&O.startsWith(_)&&O.charAt(_.length)==="/"),P={isActive:T,isPending:k,isTransitioning:b},D=T?r:void 0,N;typeof o=="function"?N=o(P):N=[o,T?"active":null,k?"pending":null,b?"transitioning":null].filter(Boolean).join(" ");let F=typeof s=="function"?s(P):s;return I.createElement($t,b0({},d,{"aria-current":D,className:N,ref:n,style:F,to:l,unstable_viewTransition:u}),typeof f=="function"?f(P):f)});var P2;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(P2||(P2={}));var QM;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(QM||(QM={}));function o3(e){let t=I.useContext(V_);return t||un(!1),t}function a3(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:a,unstable_viewTransition:s}=t===void 0?{}:t,l=oa(),u=xr(),f=W_(e,{relative:a});return I.useCallback(d=>{if(XJ(d,n)){d.preventDefault();let p=r!==void 0?r:g0(u)===g0(f);l(e,{replace:p,state:i,preventScrollReset:o,relative:a,unstable_viewTransition:s})}},[u,l,f,r,i,n,e,o,a,s])}function s3(e,t){t===void 0&&(t={});let n=I.useContext(t3);n==null&&un(!1);let{basename:r}=o3(P2.useViewTransitionState),i=W_(e,{relative:t.relative});if(!n.isTransitioning)return!1;let o=hf(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=hf(n.nextLocation.pathname,r)||n.nextLocation.pathname;return k2(i.pathname,a)!=null||k2(i.pathname,o)!=null}const l3="shlink-web-client",u3="A React-based progressive web application for shlink",c3="/shlink-web-client/develop",f3="https://github.com/shlinkio/shlink-web-client",d3="MIT",p3="module",h3={lint:"npm run lint:css && npm run lint:js","lint:css":"stylelint src/*.scss src/**/*.scss","lint:js":"eslint --ext .js,.ts,.tsx src test","lint:fix":"npm run lint:css:fix && npm run lint:js:fix","lint:css:fix":"npm run lint:css -- --fix","lint:js:fix":"npm run lint:js -- --fix",types:"tsc",start:"vite serve --host=0.0.0.0",preview:"vite preview --host=0.0.0.0",build:"npm run types && vite build && node scripts/replace-version.mjs","build:dist":"npm run build && node scripts/create-dist-file.mjs",test:"vitest run --run","test:watch":"vitest --watch","test:ci":"npm run test -- --coverage","test:verbose":"npm run test -- --verbose"},m3={"@fortawesome/fontawesome-free":"^6.5.1","@fortawesome/fontawesome-svg-core":"^6.5.1","@fortawesome/free-brands-svg-icons":"^6.5.1","@fortawesome/free-regular-svg-icons":"^6.5.1","@fortawesome/free-solid-svg-icons":"^6.5.1","@fortawesome/react-fontawesome":"^0.2.0","@json2csv/plainjs":"^7.0.5","@reduxjs/toolkit":"^2.1.0","@shlinkio/data-manipulation":"^1.0.3","@shlinkio/shlink-frontend-kit":"^0.4.2","@shlinkio/shlink-js-sdk":"^0.2.2","@shlinkio/shlink-web-component":"^0.5.0",bootstrap:"5.2.3",bottlejs:"^2.0.1",clsx:"^2.1.0","compare-versions":"^6.1.0",csvtojson:"^2.0.10","date-fns":"^3.3.1",react:"^18.2.0","react-dom":"^18.2.0","react-external-link":"^2.2.0","react-redux":"^9.1.0","react-router-dom":"^6.21.3",reactstrap:"^9.2.2","redux-localstorage-simple":"^2.5.1",uuid:"^9.0.1","workbox-core":"^7.0.0","workbox-expiration":"^7.0.0","workbox-precaching":"^7.0.0","workbox-routing":"^7.0.0","workbox-strategies":"^7.0.0"},v3={"@shlinkio/eslint-config-js-coding-standard":"~2.3.0","@shlinkio/stylelint-config-css-coding-standard":"~1.1.1","@testing-library/jest-dom":"^6.3.0","@testing-library/react":"^14.1.2","@testing-library/user-event":"^14.5.2","@total-typescript/shoehorn":"^0.1.1","@types/react":"^18.2.48","@types/react-dom":"^18.2.18","@types/uuid":"^9.0.8","@vitejs/plugin-react":"^4.2.1","@vitest/coverage-v8":"^1.2.2","adm-zip":"^0.5.10","axe-core":"^4.8.3",chalk:"^5.3.0",eslint:"^8.56.0",history:"^5.3.0",jsdom:"^24.0.0",sass:"^1.70.0",stylelint:"^15.11.0",typescript:"^5.3.3",vite:"^5.0.12","vite-plugin-pwa":"^0.17.5",vitest:"^1.2.2"},g3=[">0.2%","not dead","not ie <= 11","not op_mini all"],_0={name:l3,description:u3,private:!1,homepage:c3,repository:f3,license:d3,type:p3,scripts:h3,dependencies:m3,devDependencies:v3,browserslist:g3};var bo,Jo=".",a7="function",s7="string",l7="__global__",Sk="Provider",y3=0,Ek=Array.prototype.slice,b3=function(t,n){var r=t[n];if(r===void 0&&bo.config.strict)throw new Error("Bottle was unable to resolve a service. `"+n+"` is undefined.");return r},G_=function(t){var n;return this.nested[t]||(n=bo.pop(),this.nested[t]=n,this.factory(t,function(){return n.container})),this.nested[t]},u7=function(t){return t.split(Jo).reduce(b3,this)},_3=function(t,n,r,i){var o={configurable:!0,enumerable:!0};return t.length?o.get=function(){var s=0,l=function(f){if(f)throw f;t[s]&&t[s++](r,l)};return l(),r}:(o.value=r,o.writable=!0),Object.defineProperty(i,n,o),i[n]},w3=function(t,n){var r,i;return typeof t===a7&&(n=t,t=l7),r=t.split(Jo),i=r.shift(),r.length?G_.call(this,i).middleware(r.join(Jo),n):(this.middlewares[i]||(this.middlewares[i]=[]),this.middlewares[i].push(n)),this},x3=function(t,n){return n(t)},XM=function(t,n){return(t[n]||[]).concat(t.__global__||[])},O3=function(t,n){var r,i,o,a,s;return this.id,o=this.container,a=this.decorators,s=this.middlewares,r=t+Sk,i=Object.create(null),i[r]={configurable:!0,enumerable:!0,get:function(){var u=new n;return delete o[r],o[r]=u,u}},i[t]={configurable:!0,enumerable:!0,get:function(){var u=o[r],f;return u&&(f=XM(a,t).reduce(x3,u.$get(o)),delete o[r],delete o[t]),f===void 0?f:_3(XM(s,t),t,f,o)}},Object.defineProperties(o,i),this},c7=function(t,n){var r,i;return r=t.split(Jo),this.providerMap[t]&&r.length===1&&!this.container[t+Sk]?console.error(t+" provider already instantiated."):(this.originalProviders[t]=n,this.providerMap[t]=!0,i=r.shift(),r.length?(G_.call(this,i).provider(r.join(Jo),n),this):O3.call(this,i,n))},Tk=function(t,n){return c7.call(this,t,function(){this.$get=n})},f7=function(t,n,r){var i=arguments.length>3?Ek.call(arguments,3):[],o=this;return Tk.call(this,t,function(){var s=n,l=i.map(u7,o.container);return r?new(n.bind.apply(n,[null].concat(l))):s.apply(null,l)})},S3=function(t,n){return f7.apply(this,[t,n,!0].concat(Ek.call(arguments,2)))},E3=function(t,n){return f7.apply(this,[t,n,!1].concat(Ek.call(arguments,2)))},d7=function(t,n){Object.defineProperty(this,t,{configurable:!0,enumerable:!0,value:n,writable:!0})},p7=function(t,n){var r=t[n];return r||(r={},d7.call(t,n,r)),r},T3=function(t,n){var r;return r=t.split(Jo),t=r.pop(),d7.call(r.reduce(p7,this.container),t,n),this},C3=function(t,n){Object.defineProperty(this,t,{configurable:!1,enumerable:!0,value:n,writable:!1})},k3=function(t,n){var r=t.split(Jo);return t=r.pop(),C3.call(r.reduce(p7,this.container),t,n),this},h7=function(t,n){var r,i;return typeof t===a7&&(n=t,t=l7),r=t.split(Jo),i=r.shift(),r.length?G_.call(this,i).decorator(r.join(Jo),n):(this.decorators[i]||(this.decorators[i]=[]),this.decorators[i].push(n)),this},j3=function(t){return this.deferred.push(t),this},P3=function(t){return(t||[]).map(u7,this.container)},A3=function(t,n){return Tk.call(this,t,function(i){return{instance:n.bind(n,i)}})},N3=function(t){return!/^\$(?:decorator|register|list)$|Provider$/.test(t)},Ck=function(t){return Object.keys(t||this.container||{}).filter(N3)},w0={},M3=function(t){var n;return typeof t===s7?(n=w0[t],n||(w0[t]=n=new bo,n.constant("BOTTLE_NAME",t)),n):new bo},R3=function(t){typeof t===s7?delete w0[t]:w0={}},m7=function(t){var n=t.$value===void 0?t:t.$value;return this[t.$type||"service"].apply(this,[t.$name,n].concat(t.$inject||[]))},JM=function(t){delete this.providerMap[t],delete this.container[t],delete this.container[t+Sk]},D3=function(t){var n=this.originalProviders,r=Array.isArray(t);Object.keys(this.originalProviders).forEach(function(o){if(!(r&&t.indexOf(o)===-1)){var a=o.split(Jo);a.length>1&&a.forEach(JM,G_.call(this,a[0])),JM.call(this,o),this.provider(o,n[o])}},this)},L3=function(t){return this.deferred.forEach(function(r){r(t)}),this};bo=function e(t){if(!(this instanceof e))return e.pop(t);this.id=y3++,this.decorators={},this.middlewares={},this.nested={},this.providerMap={},this.originalProviders={},this.deferred=[],this.container={$decorator:h7.bind(this),$register:m7.bind(this),$list:Ck.bind(this)}};bo.prototype={constant:k3,decorator:h7,defer:j3,digest:P3,factory:Tk,instanceFactory:A3,list:Ck,middleware:w3,provider:c7,resetProviders:D3,register:m7,resolve:L3,service:S3,serviceFactory:E3,value:T3};bo.pop=M3;bo.clear=R3;bo.list=Ck;bo.config={strict:!1};const I3=bo;var v7=(e=>(e.INVALID_ARGUMENT="INVALID_ARGUMENT",e.INVALID_SHORT_URL_DELETION="INVALID_SHORT_URL_DELETION",e.DOMAIN_NOT_FOUND="DOMAIN_NOT_FOUND",e.FORBIDDEN_OPERATION="FORBIDDEN_OPERATION",e.INVALID_URL="INVALID_URL",e.INVALID_SLUG="INVALID_SLUG",e.INVALID_SHORTCODE="INVALID_SHORTCODE",e.TAG_CONFLICT="TAG_CONFLICT",e.TAG_NOT_FOUND="TAG_NOT_FOUND",e.MERCURE_NOT_CONFIGURED="MERCURE_NOT_CONFIGURED",e.INVALID_AUTHORIZATION="INVALID_AUTHORIZATION",e.INVALID_API_KEY="INVALID_API_KEY",e.NOT_FOUND="NOT_FOUND",e))(v7||{}),g7=(e=>(e.INVALID_ARGUMENT="https://shlink.io/api/error/invalid-data",e.INVALID_SHORT_URL_DELETION="https://shlink.io/api/error/invalid-short-url-deletion",e.DOMAIN_NOT_FOUND="https://shlink.io/api/error/domain-not-found",e.FORBIDDEN_OPERATION="https://shlink.io/api/error/forbidden-tag-operation",e.INVALID_URL="https://shlink.io/api/error/invalid-url",e.INVALID_SLUG="https://shlink.io/api/error/non-unique-slug",e.INVALID_SHORTCODE="https://shlink.io/api/error/short-url-not-found",e.TAG_CONFLICT="https://shlink.io/api/error/tag-conflict",e.TAG_NOT_FOUND="https://shlink.io/api/error/tag-not-found",e.MERCURE_NOT_CONFIGURED="https://shlink.io/api/error/mercure-not-configured",e.INVALID_AUTHORIZATION="https://shlink.io/api/error/missing-authentication",e.INVALID_API_KEY="https://shlink.io/api/error/invalid-api-key",e.NOT_FOUND="https://shlink.io/api/error/not-found",e))(g7||{}),F3=Object.defineProperty,U3=(e,t,n)=>t in e?F3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,$3=(e,t,n)=>(U3(e,typeof t!="symbol"?t+"":t,n),n);const B3=(e,t)=>`${e}/rest/v${t}`,z3=e=>e.dir?`${e.field}-${e.dir}`:void 0,V3=({orderBy:e={},excludeMaxVisitsReached:t,excludePastValidUntil:n,...r})=>({...r,excludeMaxVisitsReached:t===!0?"true":void 0,excludePastValidUntil:n===!0?"true":void 0,orderBy:z3(e)}),H3=e=>e===null||!(typeof e=="object"&&"type"in e&&"status"in e)?!1:(e.type===v7.NOT_FOUND||e.type===g7.NOT_FOUND)&&e.status===404,W3=(e,t)=>{const[n,r]=e.split("://");if(!r)throw new Error(`It is not possible to determine authority on "${e}" for replacement`);const[,...i]=r.split("/"),o=i.length?`/${i.join("/")}`:"";return`${n}://${t}${o}`},Y3=(e={})=>{const t=Object.entries(e).flatMap(([n,r])=>r==null?[]:Array.isArray(r)?r.map(i=>[`${n}[]`,i]):[[n,r]]);return new URLSearchParams(t).toString()};class G3{constructor(t,n){$3(this,"apiVersion"),this.httpClient=t,this.serverInfo=n,this.apiVersion=3}async listShortUrls(t={}){return this.performRequest({url:"/short-urls",query:V3(t)}).then(({shortUrls:n})=>n)}async createShortUrl(t){const n=Object.entries(t).reduce((r,[i,o])=>(o&&(r[i]=o),r),{});return this.performRequest({url:"/short-urls",method:"POST",body:n})}async getShortUrlVisits(t,n){return this.performRequest({url:`/short-urls/${t}/visits`,query:n}).then(({visits:r})=>r)}async deleteShortUrlVisits(t,n){const r=n?{domain:n}:void 0;return this.performRequest({method:"DELETE",url:`/short-urls/${t}/visits`,query:r})}async getTagVisits(t,n){return this.performRequest({url:`/tags/${t}/visits`,query:n}).then(({visits:r})=>r)}async getDomainVisits(t,n){return this.performRequest({url:`/domains/${t}/visits`,query:n}).then(({visits:r})=>r)}async getOrphanVisits(t){return this.performRequest({url:"/visits/orphan",query:t}).then(({visits:n})=>n)}async deleteOrphanVisits(){return this.performRequest({method:"DELETE",url:"/visits/orphan"})}async getNonOrphanVisits(t){return this.performRequest({url:"/visits/non-orphan",query:t}).then(({visits:n})=>n)}async getVisitsOverview(){return this.performRequest({url:"/visits"}).then(({visits:t})=>t)}async getShortUrl(t,n){return this.performRequest({url:`/short-urls/${t}`,query:{domain:n}})}async deleteShortUrl(t,n){return this.performEmptyRequest({url:`/short-urls/${t}`,method:"DELETE",query:{domain:n}})}async updateShortUrl(t,n,r){return this.performRequest({url:`/short-urls/${t}`,method:"PATCH",query:{domain:n},body:r})}async listTags(){return this.performRequest({url:"/tags",query:{withStats:"true"}}).then(({tags:t})=>t).then(({data:t,stats:n=[]})=>({tags:t,stats:n}))}async tagsStats(){return this.performRequest({url:"/tags/stats"}).then(({tags:t})=>t).then(({data:t})=>({tags:t.map(({tag:n})=>n),stats:t}))}async deleteTags(t){return this.performEmptyRequest({url:"/tags",method:"DELETE",query:{tags:t}}).then(()=>({tags:t}))}async editTag(t,n){return this.performEmptyRequest({url:"/tags",method:"PUT",body:{oldName:t,newName:n}}).then(()=>({oldName:t,newName:n}))}async health(t){return this.performRequest({url:"/health",domain:t})}async mercureInfo(){return this.performRequest({url:"/mercure-info"})}async listDomains(){return this.performRequest({url:"/domains"}).then(({domains:t})=>t)}async editDomainRedirects(t){return this.performRequest({url:"/domains/redirects",method:"PATCH",body:t})}async performRequest(t){return this.httpClient.jsonRequest(...this.toFetchParams(t)).catch(this.handleFetchError(()=>this.httpClient.jsonRequest(...this.toFetchParams(t))))}async performEmptyRequest(t){return this.httpClient.emptyRequest(...this.toFetchParams(t)).catch(this.handleFetchError(()=>this.httpClient.emptyRequest(...this.toFetchParams(t))))}toFetchParams({url:t,method:n="GET",query:r={},body:i,domain:o}){const a=Y3(r),s=a?`?${a}`:"",l=o?W3(this.serverInfo.baseUrl,o):this.serverInfo.baseUrl;return[`${B3(l,this.apiVersion)}${t}${s}`,{method:n,body:i&&JSON.stringify(i),headers:{"X-Api-Key":this.serverInfo.apiKey}}]}handleFetchError(t){return n=>{if(!H3(n))throw n;return this.apiVersion=2,t()}}}const y7=e=>!!(e!=null&&e.url)&&!!(e!=null&&e.apiKey),nh=e=>!!(e!=null&&e.id),b7=e=>!!(e!=null&&e.version),q3=e=>!!(e!=null&&e.serverNotFound),K3=e=>nh(e)?e.id:"",Z3=({id:e,autoConnect:t,...n})=>n,eR={},Q3=e=>typeof e=="function",X3=e=>{const{selectedServer:t}=e();if(!y7(t))throw new Error("There's no selected server or it is not found");return t},J3=e=>t=>{const{url:n,apiKey:r}=Q3(t)?X3(t):t,i=`${r}_${n}`,o=eR[i]??new G3(e,{apiKey:r,baseUrl:n});return eR[i]=o,o},eee=e=>{e.serviceFactory("buildShlinkApiClient",J3,"HttpClient")};var tee={prefix:"fas",iconName:"calendar-days",icon:[448,512,["calendar-alt"],"f073","M128 0c17.7 0 32 14.3 32 32V64H288V32c0-17.7 14.3-32 32-32s32 14.3 32 32V64h48c26.5 0 48 21.5 48 48v48H0V112C0 85.5 21.5 64 48 64H96V32c0-17.7 14.3-32 32-32zM0 192H448V464c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V192zm64 80v32c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V272c0-8.8-7.2-16-16-16H80c-8.8 0-16 7.2-16 16zm128 0v32c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V272c0-8.8-7.2-16-16-16H208c-8.8 0-16 7.2-16 16zm144-16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V272c0-8.8-7.2-16-16-16H336zM64 400v32c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V400c0-8.8-7.2-16-16-16H80c-8.8 0-16 7.2-16 16zm144-16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V400c0-8.8-7.2-16-16-16H208zm112 16v32c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V400c0-8.8-7.2-16-16-16H336c-8.8 0-16 7.2-16 16z"]},nee=tee,ree={prefix:"fas",iconName:"circle-minus",icon:[512,512,["minus-circle"],"f056","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM184 232H328c13.3 0 24 10.7 24 24s-10.7 24-24 24H184c-13.3 0-24-10.7-24-24s10.7-24 24-24z"]},kk=ree,iee={prefix:"fas",iconName:"file-csv",icon:[512,512,[],"f6dd","M0 64C0 28.7 28.7 0 64 0H224V128c0 17.7 14.3 32 32 32H384V304H176c-35.3 0-64 28.7-64 64V512H64c-35.3 0-64-28.7-64-64V64zm384 64H256V0L384 128zM200 352h16c22.1 0 40 17.9 40 40v8c0 8.8-7.2 16-16 16s-16-7.2-16-16v-8c0-4.4-3.6-8-8-8H200c-4.4 0-8 3.6-8 8v80c0 4.4 3.6 8 8 8h16c4.4 0 8-3.6 8-8v-8c0-8.8 7.2-16 16-16s16 7.2 16 16v8c0 22.1-17.9 40-40 40H200c-22.1 0-40-17.9-40-40V392c0-22.1 17.9-40 40-40zm133.1 0H368c8.8 0 16 7.2 16 16s-7.2 16-16 16H333.1c-7.2 0-13.1 5.9-13.1 13.1c0 5.2 3 9.9 7.8 12l37.4 16.6c16.3 7.2 26.8 23.4 26.8 41.2c0 24.9-20.2 45.1-45.1 45.1H304c-8.8 0-16-7.2-16-16s7.2-16 16-16h42.9c7.2 0 13.1-5.9 13.1-13.1c0-5.2-3-9.9-7.8-12l-37.4-16.6c-16.3-7.2-26.8-23.4-26.8-41.2c0-24.9 20.2-45.1 45.1-45.1zm98.9 0c8.8 0 16 7.2 16 16v31.6c0 23 5.5 45.6 16 66c10.5-20.3 16-42.9 16-66V368c0-8.8 7.2-16 16-16s16 7.2 16 16v31.6c0 34.7-10.3 68.7-29.6 97.6l-5.1 7.7c-3 4.5-8 7.1-13.3 7.1s-10.3-2.7-13.3-7.1l-5.1-7.7c-19.3-28.9-29.6-62.9-29.6-97.6V368c0-8.8 7.2-16 16-16z"]},oee={prefix:"fas",iconName:"pencil",icon:[512,512,[9999,61504,"pencil-alt"],"f303","M410.3 231l11.3-11.3-33.9-33.9-62.1-62.1L291.7 89.8l-11.3 11.3-22.6 22.6L58.6 322.9c-10.4 10.4-18 23.3-22.2 37.4L1 480.7c-2.5 8.4-.2 17.5 6.1 23.7s15.3 8.5 23.7 6.1l120.3-35.4c14.1-4.2 27-11.8 37.4-22.2L387.7 253.7 410.3 231zM160 399.4l-9.1 22.7c-4 3.1-8.5 5.4-13.3 6.9L59.4 452l23-78.1c1.4-4.9 3.8-9.4 6.9-13.3l22.7-9.1v32c0 8.8 7.2 16 16 16h32zM362.7 18.7L348.3 33.2 325.7 55.8 314.3 67.1l33.9 33.9 62.1 62.1 33.9 33.9 11.3-11.3 22.6-22.6 14.5-14.5c25-25 25-65.5 0-90.5L453.3 18.7c-25-25-65.5-25-90.5 0zm-47.4 168l-144 144c-6.2 6.2-16.4 6.2-22.6 0s-6.2-16.4 0-22.6l144-144c6.2-6.2 16.4-6.2 22.6 0s6.2 16.4 0 22.6z"]},aee=oee,_7={prefix:"fas",iconName:"circle-notch",icon:[512,512,[],"f1ce","M222.7 32.1c5 16.9-4.6 34.8-21.5 39.8C121.8 95.6 64 169.1 64 256c0 106 86 192 192 192s192-86 192-192c0-86.9-57.8-160.4-137.1-184.1c-16.9-5-26.6-22.9-21.5-39.8s22.9-26.6 39.8-21.5C434.9 42.1 512 140 512 256c0 141.4-114.6 256-256 256S0 397.4 0 256C0 140 77.1 42.1 182.9 10.6c16.9-5 34.8 4.6 39.8 21.5z"]},see={prefix:"fas",iconName:"bars",icon:[448,512,["navicon"],"f0c9","M0 96C0 78.3 14.3 64 32 64H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32H32c-17.7 0-32-14.3-32-32s14.3-32 32-32H416c17.7 0 32 14.3 32 32z"]},w7={prefix:"fas",iconName:"list",icon:[512,512,["list-squares"],"f03a","M40 48C26.7 48 16 58.7 16 72v48c0 13.3 10.7 24 24 24H88c13.3 0 24-10.7 24-24V72c0-13.3-10.7-24-24-24H40zM192 64c-17.7 0-32 14.3-32 32s14.3 32 32 32H480c17.7 0 32-14.3 32-32s-14.3-32-32-32H192zm0 160c-17.7 0-32 14.3-32 32s14.3 32 32 32H480c17.7 0 32-14.3 32-32s-14.3-32-32-32H192zm0 160c-17.7 0-32 14.3-32 32s14.3 32 32 32H480c17.7 0 32-14.3 32-32s-14.3-32-32-32H192zM16 232v48c0 13.3 10.7 24 24 24H88c13.3 0 24-10.7 24-24V232c0-13.3-10.7-24-24-24H40c-13.3 0-24 10.7-24 24zM40 368c-13.3 0-24 10.7-24 24v48c0 13.3 10.7 24 24 24H88c13.3 0 24-10.7 24-24V392c0-13.3-10.7-24-24-24H40z"]},lee={prefix:"fas",iconName:"circle-dot",icon:[512,512,[128280,"dot-circle"],"f192","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-352a96 96 0 1 1 0 192 96 96 0 1 1 0-192z"]},uee=lee,cee={prefix:"fas",iconName:"pen-to-square",icon:[512,512,["edit"],"f044","M471.6 21.7c-21.9-21.9-57.3-21.9-79.2 0L362.3 51.7l97.9 97.9 30.1-30.1c21.9-21.9 21.9-57.3 0-79.2L471.6 21.7zm-299.2 220c-6.1 6.1-10.8 13.6-13.5 21.9l-29.6 88.8c-2.9 8.6-.6 18.1 5.8 24.6s15.9 8.7 24.6 5.8l88.8-29.6c8.2-2.7 15.7-7.4 21.9-13.5L437.7 172.3 339.7 74.3 172.4 241.7zM96 64C43 64 0 107 0 160V416c0 53 43 96 96 96H352c53 0 96-43 96-96V320c0-17.7-14.3-32-32-32s-32 14.3-32 32v96c0 17.7-14.3 32-32 32H96c-17.7 0-32-14.3-32-32V160c0-17.7 14.3-32 32-32h96c17.7 0 32-14.3 32-32s-14.3-32-32-32H96z"]},jk=cee,fee={prefix:"fas",iconName:"plug",icon:[384,512,[128268],"f1e6","M96 0C78.3 0 64 14.3 64 32v96h64V32c0-17.7-14.3-32-32-32zM288 0c-17.7 0-32 14.3-32 32v96h64V32c0-17.7-14.3-32-32-32zM32 160c-17.7 0-32 14.3-32 32s14.3 32 32 32v32c0 77.4 55 142 128 156.8V480c0 17.7 14.3 32 32 32s32-14.3 32-32V412.8C297 398 352 333.4 352 256V224c17.7 0 32-14.3 32-32s-14.3-32-32-32H32z"]},dee={prefix:"fas",iconName:"globe",icon:[512,512,[127760],"f0ac","M352 256c0 22.2-1.2 43.6-3.3 64H163.3c-2.2-20.4-3.3-41.8-3.3-64s1.2-43.6 3.3-64H348.7c2.2 20.4 3.3 41.8 3.3 64zm28.8-64H503.9c5.3 20.5 8.1 41.9 8.1 64s-2.8 43.5-8.1 64H380.8c2.1-20.6 3.2-42 3.2-64s-1.1-43.4-3.2-64zm112.6-32H376.7c-10-63.9-29.8-117.4-55.3-151.6c78.3 20.7 142 77.5 171.9 151.6zm-149.1 0H167.7c6.1-36.4 15.5-68.6 27-94.7c10.5-23.6 22.2-40.7 33.5-51.5C239.4 3.2 248.7 0 256 0s16.6 3.2 27.8 13.8c11.3 10.8 23 27.9 33.5 51.5c11.6 26 20.9 58.2 27 94.7zm-209 0H18.6C48.6 85.9 112.2 29.1 190.6 8.4C165.1 42.6 145.3 96.1 135.3 160zM8.1 192H131.2c-2.1 20.6-3.2 42-3.2 64s1.1 43.4 3.2 64H8.1C2.8 299.5 0 278.1 0 256s2.8-43.5 8.1-64zM194.7 446.6c-11.6-26-20.9-58.2-27-94.6H344.3c-6.1 36.4-15.5 68.6-27 94.6c-10.5 23.6-22.2 40.7-33.5 51.5C272.6 508.8 263.3 512 256 512s-16.6-3.2-27.8-13.8c-11.3-10.8-23-27.9-33.5-51.5zM135.3 352c10 63.9 29.8 117.4 55.3 151.6C112.2 482.9 48.6 426.1 18.6 352H135.3zm358.1 0c-30 74.1-93.6 130.9-171.9 151.6c25.5-34.2 45.2-87.7 55.3-151.6H493.4z"]},pee={prefix:"fas",iconName:"ban",icon:[512,512,[128683,"cancel"],"f05e","M367.2 412.5L99.5 144.8C77.1 176.1 64 214.5 64 256c0 106 86 192 192 192c41.5 0 79.9-13.1 111.2-35.5zm45.3-45.3C434.9 335.9 448 297.5 448 256c0-106-86-192-192-192c-41.5 0-79.9 13.1-111.2 35.5L412.5 367.2zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256z"]},tR={prefix:"fas",iconName:"server",icon:[512,512,[],"f233","M64 32C28.7 32 0 60.7 0 96v64c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64zm280 72a24 24 0 1 1 0 48 24 24 0 1 1 0-48zm48 24a24 24 0 1 1 48 0 24 24 0 1 1 -48 0zM64 288c-35.3 0-64 28.7-64 64v64c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V352c0-35.3-28.7-64-64-64H64zm280 72a24 24 0 1 1 0 48 24 24 0 1 1 0-48zm56 24a24 24 0 1 1 48 0 24 24 0 1 1 -48 0z"]},hee={prefix:"fas",iconName:"file-arrow-up",icon:[384,512,["file-upload"],"f574","M64 0C28.7 0 0 28.7 0 64V448c0 35.3 28.7 64 64 64H320c35.3 0 64-28.7 64-64V160H256c-17.7 0-32-14.3-32-32V0H64zM256 0V128H384L256 0zM216 408c0 13.3-10.7 24-24 24s-24-10.7-24-24V305.9l-31 31c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l72-72c9.4-9.4 24.6-9.4 33.9 0l72 72c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-31-31V408z"]},mee=hee,vee={prefix:"fas",iconName:"map-location-dot",icon:[576,512,["map-marked-alt"],"f5a0","M408 120c0 54.6-73.1 151.9-105.2 192c-7.7 9.6-22 9.6-29.6 0C241.1 271.9 168 174.6 168 120C168 53.7 221.7 0 288 0s120 53.7 120 120zm8 80.4c3.5-6.9 6.7-13.8 9.6-20.6c.5-1.2 1-2.5 1.5-3.7l116-46.4C558.9 123.4 576 135 576 152V422.8c0 9.8-6 18.6-15.1 22.3L416 503V200.4zM137.6 138.3c2.4 14.1 7.2 28.3 12.8 41.5c2.9 6.8 6.1 13.7 9.6 20.6V451.8L32.9 502.7C17.1 509 0 497.4 0 480.4V209.6c0-9.8 6-18.6 15.1-22.3l122.6-49zM327.8 332c13.9-17.4 35.7-45.7 56.2-77V504.3L192 449.4V255c20.5 31.3 42.3 59.6 56.2 77c20.5 25.6 59.1 25.6 79.6 0zM288 152a40 40 0 1 0 0-80 40 40 0 1 0 0 80z"]},A2=vee,gee={prefix:"fas",iconName:"caret-up",icon:[320,512,[],"f0d8","M182.6 137.4c-12.5-12.5-32.8-12.5-45.3 0l-128 128c-9.2 9.2-11.9 22.9-6.9 34.9s16.6 19.8 29.6 19.8H288c12.9 0 24.6-7.8 29.6-19.8s2.2-25.7-6.9-34.9l-128-128z"]},yee={prefix:"fas",iconName:"palette",icon:[512,512,[127912],"f53f","M512 256c0 .9 0 1.8 0 2.7c-.4 36.5-33.6 61.3-70.1 61.3H344c-26.5 0-48 21.5-48 48c0 3.4 .4 6.7 1 9.9c2.1 10.2 6.5 20 10.8 29.9c6.1 13.8 12.1 27.5 12.1 42c0 31.8-21.6 60.7-53.4 62c-3.5 .1-7 .2-10.6 .2C114.6 512 0 397.4 0 256S114.6 0 256 0S512 114.6 512 256zM128 288a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm0-96a32 32 0 1 0 0-64 32 32 0 1 0 0 64zM288 96a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm96 96a32 32 0 1 0 0-64 32 32 0 1 0 0 64z"]},bee={prefix:"fas",iconName:"arrow-down-wide-short",icon:[576,512,["sort-amount-asc","sort-amount-down"],"f160","M151.6 469.6C145.5 476.2 137 480 128 480s-17.5-3.8-23.6-10.4l-88-96c-11.9-13-11.1-33.3 2-45.2s33.3-11.1 45.2 2L96 365.7V64c0-17.7 14.3-32 32-32s32 14.3 32 32V365.7l32.4-35.4c11.9-13 32.2-13.9 45.2-2s13.9 32.2 2 45.2l-88 96zM320 480c-17.7 0-32-14.3-32-32s14.3-32 32-32h32c17.7 0 32 14.3 32 32s-14.3 32-32 32H320zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32h96c17.7 0 32 14.3 32 32s-14.3 32-32 32H320zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32H480c17.7 0 32 14.3 32 32s-14.3 32-32 32H320zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32H544c17.7 0 32 14.3 32 32s-14.3 32-32 32H320z"]},_ee=bee,Pk={prefix:"fas",iconName:"chart-pie",icon:[576,512,["pie-chart"],"f200","M304 240V16.6c0-9 7-16.6 16-16.6C443.7 0 544 100.3 544 224c0 9-7.6 16-16.6 16H304zM32 272C32 150.7 122.1 50.3 239 34.3c9.2-1.3 17 6.1 17 15.4V288L412.5 444.5c6.7 6.7 6.2 17.7-1.5 23.1C371.8 495.6 323.8 512 272 512C139.5 512 32 404.6 32 272zm526.4 16c9.3 0 16.6 7.8 15.4 17c-7.7 55.9-34.6 105.6-73.9 142.3c-6 5.6-15.4 5.2-21.2-.7L320 288H558.4z"]},q_={prefix:"fas",iconName:"chart-line",icon:[512,512,["line-chart"],"f201","M64 64c0-17.7-14.3-32-32-32S0 46.3 0 64V400c0 44.2 35.8 80 80 80H480c17.7 0 32-14.3 32-32s-14.3-32-32-32H80c-8.8 0-16-7.2-16-16V64zm406.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L320 210.7l-57.4-57.4c-12.5-12.5-32.8-12.5-45.3 0l-112 112c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L240 221.3l57.4 57.4c12.5 12.5 32.8 12.5 45.3 0l128-128z"]},x7={prefix:"fas",iconName:"tags",icon:[512,512,[],"f02c","M345 39.1L472.8 168.4c52.4 53 52.4 138.2 0 191.2L360.8 472.9c-9.3 9.4-24.5 9.5-33.9 .2s-9.5-24.5-.2-33.9L438.6 325.9c33.9-34.3 33.9-89.4 0-123.7L310.9 72.9c-9.3-9.4-9.2-24.6 .2-33.9s24.6-9.2 33.9 .2zM0 229.5V80C0 53.5 21.5 32 48 32H197.5c17 0 33.3 6.7 45.3 18.7l168 168c25 25 25 65.5 0 90.5L277.3 442.7c-25 25-65.5 25-90.5 0l-168-168C6.7 262.7 0 246.5 0 229.5zM144 144a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]},nR={prefix:"fas",iconName:"calendar-xmark",icon:[448,512,["calendar-times"],"f273","M128 0c17.7 0 32 14.3 32 32V64H288V32c0-17.7 14.3-32 32-32s32 14.3 32 32V64h48c26.5 0 48 21.5 48 48v48H0V112C0 85.5 21.5 64 48 64H96V32c0-17.7 14.3-32 32-32zM0 192H448V464c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V192zM305 305c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-47 47-47-47c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l47 47-47 47c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l47-47 47 47c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-47-47 47-47z"]},wee={prefix:"fas",iconName:"trash",icon:[448,512,[],"f1f8","M135.2 17.7L128 32H32C14.3 32 0 46.3 0 64S14.3 96 32 96H416c17.7 0 32-14.3 32-32s-14.3-32-32-32H320l-7.2-14.3C307.4 6.8 296.3 0 284.2 0H163.8c-12.1 0-23.2 6.8-28.6 17.7zM416 128H32L53.2 467c1.6 25.3 22.6 45 47.9 45H346.9c25.3 0 46.3-19.7 47.9-45L416 128z"]},xee={prefix:"fas",iconName:"arrow-left",icon:[448,512,[8592],"f060","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.2 288 416 288c17.7 0 32-14.3 32-32s-14.3-32-32-32l-306.7 0L214.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160z"]},Oee={prefix:"fas",iconName:"up-right-from-square",icon:[512,512,["external-link-alt"],"f35d","M352 0c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9L370.7 96 201.4 265.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L416 141.3l41.4 41.4c9.2 9.2 22.9 11.9 34.9 6.9s19.8-16.6 19.8-29.6V32c0-17.7-14.3-32-32-32H352zM80 32C35.8 32 0 67.8 0 112V432c0 44.2 35.8 80 80 80H400c44.2 0 80-35.8 80-80V320c0-17.7-14.3-32-32-32s-32 14.3-32 32V432c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16V112c0-8.8 7.2-16 16-16H192c17.7 0 32-14.3 32-32s-14.3-32-32-32H80z"]},See=Oee,Eee={prefix:"fas",iconName:"tag",icon:[448,512,[127991],"f02b","M0 80V229.5c0 17 6.7 33.3 18.7 45.3l176 176c25 25 65.5 25 90.5 0L418.7 317.3c25-25 25-65.5 0-90.5l-176-176c-12-12-28.3-18.7-45.3-18.7H48C21.5 32 0 53.5 0 80zm112 32a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},Tee={prefix:"fas",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336h24V272H216c-13.3 0-24-10.7-24-24s10.7-24 24-24h48c13.3 0 24 10.7 24 24v88h8c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},Ak=Tee,Cee={prefix:"fas",iconName:"arrow-rotate-left",icon:[512,512,[8634,"arrow-left-rotate","arrow-rotate-back","arrow-rotate-backward","undo"],"f0e2","M125.7 160H176c17.7 0 32 14.3 32 32s-14.3 32-32 32H48c-17.7 0-32-14.3-32-32V64c0-17.7 14.3-32 32-32s32 14.3 32 32v51.2L97.6 97.6c87.5-87.5 229.3-87.5 316.8 0s87.5 229.3 0 316.8s-229.3 87.5-316.8 0c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0c62.5 62.5 163.8 62.5 226.3 0s62.5-163.8 0-226.3s-163.8-62.5-226.3 0L125.7 160z"]},kee=Cee,jee={prefix:"fas",iconName:"caret-down",icon:[320,512,[],"f0d7","M137.4 374.6c12.5 12.5 32.8 12.5 45.3 0l128-128c9.2-9.2 11.9-22.9 6.9-34.9s-16.6-19.8-29.6-19.8L32 192c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9l128 128z"]},Pee={prefix:"fas",iconName:"ellipsis-vertical",icon:[128,512,["ellipsis-v"],"f142","M64 360a56 56 0 1 0 0 112 56 56 0 1 0 0-112zm0-160a56 56 0 1 0 0 112 56 56 0 1 0 0-112zM120 96A56 56 0 1 0 8 96a56 56 0 1 0 112 0z"]},Aee=Pee,Nee={prefix:"fas",iconName:"house",icon:[576,512,[127968,63498,63500,"home","home-alt","home-lg-alt"],"f015","M575.8 255.5c0 18-15 32.1-32 32.1h-32l.7 160.2c0 2.7-.2 5.4-.5 8.1V472c0 22.1-17.9 40-40 40H456c-1.1 0-2.2 0-3.3-.1c-1.4 .1-2.8 .1-4.2 .1H416 392c-22.1 0-40-17.9-40-40V448 384c0-17.7-14.3-32-32-32H256c-17.7 0-32 14.3-32 32v64 24c0 22.1-17.9 40-40 40H160 128.1c-1.5 0-3-.1-4.5-.2c-1.2 .1-2.4 .2-3.6 .2H104c-22.1 0-40-17.9-40-40V360c0-.9 0-1.9 .1-2.8V287.6H32c-18 0-32-14-32-32.1c0-9 3-17 10-24L266.4 8c7-7 15-8 22-8s15 2 21 7L564.8 231.5c8 7 12 15 11 24z"]},Mee=Nee,Ree={prefix:"fas",iconName:"arrow-up-wide-short",icon:[576,512,["sort-amount-up"],"f161","M151.6 42.4C145.5 35.8 137 32 128 32s-17.5 3.8-23.6 10.4l-88 96c-11.9 13-11.1 33.3 2 45.2s33.3 11.1 45.2-2L96 146.3V448c0 17.7 14.3 32 32 32s32-14.3 32-32V146.3l32.4 35.4c11.9 13 32.2 13.9 45.2 2s13.9-32.2 2-45.2l-88-96zM320 480h32c17.7 0 32-14.3 32-32s-14.3-32-32-32H320c-17.7 0-32 14.3-32 32s14.3 32 32 32zm0-128h96c17.7 0 32-14.3 32-32s-14.3-32-32-32H320c-17.7 0-32 14.3-32 32s14.3 32 32 32zm0-128H480c17.7 0 32-14.3 32-32s-14.3-32-32-32H320c-17.7 0-32 14.3-32 32s14.3 32 32 32zm0-128H544c17.7 0 32-14.3 32-32s-14.3-32-32-32H320c-17.7 0-32 14.3-32 32s14.3 32 32 32z"]},Dee=Ree,Lee={prefix:"fas",iconName:"file-arrow-down",icon:[384,512,["file-download"],"f56d","M64 0C28.7 0 0 28.7 0 64V448c0 35.3 28.7 64 64 64H320c35.3 0 64-28.7 64-64V160H256c-17.7 0-32-14.3-32-32V0H64zM256 0V128H384L256 0zM216 232V334.1l31-31c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-72 72c-9.4 9.4-24.6 9.4-33.9 0l-72-72c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l31 31V232c0-13.3 10.7-24 24-24s24 10.7 24 24z"]},O7=Lee,Iee={prefix:"fas",iconName:"sun",icon:[512,512,[9728],"f185","M361.5 1.2c5 2.1 8.6 6.6 9.6 11.9L391 121l107.9 19.8c5.3 1 9.8 4.6 11.9 9.6s1.5 10.7-1.6 15.2L446.9 256l62.3 90.3c3.1 4.5 3.7 10.2 1.6 15.2s-6.6 8.6-11.9 9.6L391 391 371.1 498.9c-1 5.3-4.6 9.8-9.6 11.9s-10.7 1.5-15.2-1.6L256 446.9l-90.3 62.3c-4.5 3.1-10.2 3.7-15.2 1.6s-8.6-6.6-9.6-11.9L121 391 13.1 371.1c-5.3-1-9.8-4.6-11.9-9.6s-1.5-10.7 1.6-15.2L65.1 256 2.8 165.7c-3.1-4.5-3.7-10.2-1.6-15.2s6.6-8.6 11.9-9.6L121 121 140.9 13.1c1-5.3 4.6-9.8 9.6-11.9s10.7-1.5 15.2 1.6L256 65.1 346.3 2.8c4.5-3.1 10.2-3.7 15.2-1.6zM160 256a96 96 0 1 1 192 0 96 96 0 1 1 -192 0zm224 0a128 128 0 1 0 -256 0 128 128 0 1 0 256 0z"]},Fee={prefix:"fas",iconName:"link",icon:[640,512,[128279,"chain"],"f0c1","M579.8 267.7c56.5-56.5 56.5-148 0-204.5c-50-50-128.8-56.5-186.3-15.4l-1.6 1.1c-14.4 10.3-17.7 30.3-7.4 44.6s30.3 17.7 44.6 7.4l1.6-1.1c32.1-22.9 76-19.3 103.8 8.6c31.5 31.5 31.5 82.5 0 114L422.3 334.8c-31.5 31.5-82.5 31.5-114 0c-27.9-27.9-31.5-71.8-8.6-103.8l1.1-1.6c10.3-14.4 6.9-34.4-7.4-44.6s-34.4-6.9-44.6 7.4l-1.1 1.6C206.5 251.2 213 330 263 380c56.5 56.5 148 56.5 204.5 0L579.8 267.7zM60.2 244.3c-56.5 56.5-56.5 148 0 204.5c50 50 128.8 56.5 186.3 15.4l1.6-1.1c14.4-10.3 17.7-30.3 7.4-44.6s-30.3-17.7-44.6-7.4l-1.6 1.1c-32.1 22.9-76 19.3-103.8-8.6C74 372 74 321 105.5 289.5L217.7 177.2c31.5-31.5 82.5-31.5 114 0c27.9 27.9 31.5 71.8 8.6 103.9l-1.1 1.6c-10.3 14.4-6.9 34.4 7.4 44.6s34.4 6.9 44.6-7.4l1.1-1.6C433.5 260.8 427 182 377 132c-56.5-56.5-148-56.5-204.5 0L60.2 244.3z"]},Uee={prefix:"fas",iconName:"magnifying-glass",icon:[512,512,[128269,"search"],"f002","M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"]},$ee=Uee,Bee={prefix:"fas",iconName:"chevron-down",icon:[512,512,[],"f078","M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"]},Nk={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32V224H48c-17.7 0-32 14.3-32 32s14.3 32 32 32H192V432c0 17.7 14.3 32 32 32s32-14.3 32-32V288H400c17.7 0 32-14.3 32-32s-14.3-32-32-32H256V80z"]},zee={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"]},N2=zee,Vee={prefix:"fas",iconName:"chevron-right",icon:[320,512,[9002],"f054","M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"]},Hee={prefix:"fas",iconName:"rotate",icon:[512,512,[128260,"sync-alt"],"f2f1","M142.9 142.9c62.2-62.2 162.7-62.5 225.3-1L327 183c-6.9 6.9-8.9 17.2-5.2 26.2s12.5 14.8 22.2 14.8H463.5c0 0 0 0 0 0H472c13.3 0 24-10.7 24-24V72c0-9.7-5.8-18.5-14.8-22.2s-19.3-1.7-26.2 5.2L413.4 96.6c-87.6-86.5-228.7-86.2-315.8 1C73.2 122 55.6 150.7 44.8 181.4c-5.9 16.7 2.9 34.9 19.5 40.8s34.9-2.9 40.8-19.5c7.7-21.8 20.2-42.3 37.8-59.8zM16 312v7.6 .7V440c0 9.7 5.8 18.5 14.8 22.2s19.3 1.7 26.2-5.2l41.6-41.6c87.6 86.5 228.7 86.2 315.8-1c24.4-24.4 42.1-53.1 52.9-83.7c5.9-16.7-2.9-34.9-19.5-40.8s-34.9 2.9-40.8 19.5c-7.7 21.8-20.2 42.3-37.8 59.8c-62.2 62.2-162.7 62.5-225.3 1L185 329c6.9-6.9 8.9-17.2 5.2-26.2s-12.5-14.8-22.2-14.8H48.4h-.7H40c-13.3 0-24 10.7-24 24z"]},Wee=Hee,rR={prefix:"fas",iconName:"robot",icon:[640,512,[129302],"f544","M320 0c17.7 0 32 14.3 32 32V96H472c39.8 0 72 32.2 72 72V440c0 39.8-32.2 72-72 72H168c-39.8 0-72-32.2-72-72V168c0-39.8 32.2-72 72-72H288V32c0-17.7 14.3-32 32-32zM208 384c-8.8 0-16 7.2-16 16s7.2 16 16 16h32c8.8 0 16-7.2 16-16s-7.2-16-16-16H208zm96 0c-8.8 0-16 7.2-16 16s7.2 16 16 16h32c8.8 0 16-7.2 16-16s-7.2-16-16-16H304zm96 0c-8.8 0-16 7.2-16 16s7.2 16 16 16h32c8.8 0 16-7.2 16-16s-7.2-16-16-16H400zM264 256a40 40 0 1 0 -80 0 40 40 0 1 0 80 0zm152 40a40 40 0 1 0 0-80 40 40 0 1 0 0 80zM48 224H64V416H48c-26.5 0-48-21.5-48-48V272c0-26.5 21.5-48 48-48zm544 0c26.5 0 48 21.5 48 48v96c0 26.5-21.5 48-48 48H576V224h16z"]},S7={prefix:"fas",iconName:"gears",icon:[640,512,["cogs"],"f085","M308.5 135.3c7.1-6.3 9.9-16.2 6.2-25c-2.3-5.3-4.8-10.5-7.6-15.5L304 89.4c-3-5-6.3-9.9-9.8-14.6c-5.7-7.6-15.7-10.1-24.7-7.1l-28.2 9.3c-10.7-8.8-23-16-36.2-20.9L199 27.1c-1.9-9.3-9.1-16.7-18.5-17.8C173.9 8.4 167.2 8 160.4 8h-.7c-6.8 0-13.5 .4-20.1 1.2c-9.4 1.1-16.6 8.6-18.5 17.8L115 56.1c-13.3 5-25.5 12.1-36.2 20.9L50.5 67.8c-9-3-19-.5-24.7 7.1c-3.5 4.7-6.8 9.6-9.9 14.6l-3 5.3c-2.8 5-5.3 10.2-7.6 15.6c-3.7 8.7-.9 18.6 6.2 25l22.2 19.8C32.6 161.9 32 168.9 32 176s.6 14.1 1.7 20.9L11.5 216.7c-7.1 6.3-9.9 16.2-6.2 25c2.3 5.3 4.8 10.5 7.6 15.6l3 5.2c3 5.1 6.3 9.9 9.9 14.6c5.7 7.6 15.7 10.1 24.7 7.1l28.2-9.3c10.7 8.8 23 16 36.2 20.9l6.1 29.1c1.9 9.3 9.1 16.7 18.5 17.8c6.7 .8 13.5 1.2 20.4 1.2s13.7-.4 20.4-1.2c9.4-1.1 16.6-8.6 18.5-17.8l6.1-29.1c13.3-5 25.5-12.1 36.2-20.9l28.2 9.3c9 3 19 .5 24.7-7.1c3.5-4.7 6.8-9.5 9.8-14.6l3.1-5.4c2.8-5 5.3-10.2 7.6-15.5c3.7-8.7 .9-18.6-6.2-25l-22.2-19.8c1.1-6.8 1.7-13.8 1.7-20.9s-.6-14.1-1.7-20.9l22.2-19.8zM112 176a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zM504.7 500.5c6.3 7.1 16.2 9.9 25 6.2c5.3-2.3 10.5-4.8 15.5-7.6l5.4-3.1c5-3 9.9-6.3 14.6-9.8c7.6-5.7 10.1-15.7 7.1-24.7l-9.3-28.2c8.8-10.7 16-23 20.9-36.2l29.1-6.1c9.3-1.9 16.7-9.1 17.8-18.5c.8-6.7 1.2-13.5 1.2-20.4s-.4-13.7-1.2-20.4c-1.1-9.4-8.6-16.6-17.8-18.5L583.9 307c-5-13.3-12.1-25.5-20.9-36.2l9.3-28.2c3-9 .5-19-7.1-24.7c-4.7-3.5-9.6-6.8-14.6-9.9l-5.3-3c-5-2.8-10.2-5.3-15.6-7.6c-8.7-3.7-18.6-.9-25 6.2l-19.8 22.2c-6.8-1.1-13.8-1.7-20.9-1.7s-14.1 .6-20.9 1.7l-19.8-22.2c-6.3-7.1-16.2-9.9-25-6.2c-5.3 2.3-10.5 4.8-15.6 7.6l-5.2 3c-5.1 3-9.9 6.3-14.6 9.9c-7.6 5.7-10.1 15.7-7.1 24.7l9.3 28.2c-8.8 10.7-16 23-20.9 36.2L315.1 313c-9.3 1.9-16.7 9.1-17.8 18.5c-.8 6.7-1.2 13.5-1.2 20.4s.4 13.7 1.2 20.4c1.1 9.4 8.6 16.6 17.8 18.5l29.1 6.1c5 13.3 12.1 25.5 20.9 36.2l-9.3 28.2c-3 9-.5 19 7.1 24.7c4.7 3.5 9.5 6.8 14.6 9.8l5.4 3.1c5 2.8 10.2 5.3 15.5 7.6c8.7 3.7 18.6 .9 25-6.2l19.8-22.2c6.8 1.1 13.8 1.7 20.9 1.7s14.1-.6 20.9-1.7l19.8 22.2zM464 304a48 48 0 1 1 0 96 48 48 0 1 1 0-96z"]},Yee=S7,Gee={prefix:"fas",iconName:"qrcode",icon:[448,512,[],"f029","M0 80C0 53.5 21.5 32 48 32h96c26.5 0 48 21.5 48 48v96c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80zM64 96v64h64V96H64zM0 336c0-26.5 21.5-48 48-48h96c26.5 0 48 21.5 48 48v96c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V336zm64 16v64h64V352H64zM304 32h96c26.5 0 48 21.5 48 48v96c0 26.5-21.5 48-48 48H304c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48zm80 64H320v64h64V96zM256 304c0-8.8 7.2-16 16-16h64c8.8 0 16 7.2 16 16s7.2 16 16 16h32c8.8 0 16-7.2 16-16s7.2-16 16-16s16 7.2 16 16v96c0 8.8-7.2 16-16 16H368c-8.8 0-16-7.2-16-16s-7.2-16-16-16s-16 7.2-16 16v64c0 8.8-7.2 16-16 16H272c-8.8 0-16-7.2-16-16V304zM368 480a16 16 0 1 1 0-32 16 16 0 1 1 0 32zm64 0a16 16 0 1 1 0-32 16 16 0 1 1 0 32z"]},qee={prefix:"fas",iconName:"moon",icon:[384,512,[127769,9214],"f186","M223.5 32C100 32 0 132.3 0 256S100 480 223.5 480c60.6 0 115.5-24.2 155.8-63.4c5-4.9 6.3-12.5 3.1-18.7s-10.1-9.7-17-8.5c-9.8 1.7-19.8 2.6-30.1 2.6c-96.9 0-175.5-78.8-175.5-176c0-65.8 36-123.1 89.3-153.3c6.1-3.5 9.2-10.5 7.7-17.3s-7.3-11.9-14.3-12.5c-6.3-.5-12.6-.8-19-.8z"]},Kee={prefix:"fas",iconName:"link-slash",icon:[640,512,["chain-broken","chain-slash","unlink"],"f127","M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2S-1.2 34.7 9.2 42.9l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7L489.3 358.2l90.5-90.5c56.5-56.5 56.5-148 0-204.5c-50-50-128.8-56.5-186.3-15.4l-1.6 1.1c-14.4 10.3-17.7 30.3-7.4 44.6s30.3 17.7 44.6 7.4l1.6-1.1c32.1-22.9 76-19.3 103.8 8.6c31.5 31.5 31.5 82.5 0 114l-96 96-31.9-25C430.9 239.6 420.1 175.1 377 132c-52.2-52.3-134.5-56.2-191.3-11.7L38.8 5.1zM239 162c30.1-14.9 67.7-9.9 92.8 15.3c20 20 27.5 48.3 21.7 74.5L239 162zM116.6 187.9L60.2 244.3c-56.5 56.5-56.5 148 0 204.5c50 50 128.8 56.5 186.3 15.4l1.6-1.1c14.4-10.3 17.7-30.3 7.4-44.6s-30.3-17.7-44.6-7.4l-1.6 1.1c-32.1 22.9-76 19.3-103.8-8.6C74 372 74 321 105.5 289.5l61.8-61.8-50.6-39.9zM220.9 270c-2.1 39.8 12.2 80.1 42.2 110c38.9 38.9 94.4 51 143.6 36.3L220.9 270z"]},Zee={prefix:"fas",iconName:"desktop",icon:[576,512,[128421,61704,"desktop-alt"],"f390","M64 0C28.7 0 0 28.7 0 64V352c0 35.3 28.7 64 64 64H240l-10.7 32H160c-17.7 0-32 14.3-32 32s14.3 32 32 32H416c17.7 0 32-14.3 32-32s-14.3-32-32-32H346.7L336 416H512c35.3 0 64-28.7 64-64V64c0-35.3-28.7-64-64-64H64zM512 64V288H64V64H512z"]},Wh={prefix:"fas",iconName:"check",icon:[448,512,[10003,10004],"f00c","M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"]},Qee={prefix:"fas",iconName:"triangle-exclamation",icon:[512,512,[9888,"exclamation-triangle","warning"],"f071","M256 32c14.2 0 27.3 7.5 34.5 19.8l216 368c7.3 12.4 7.3 27.7 .2 40.1S486.3 480 472 480H40c-14.3 0-27.6-7.7-34.7-20.1s-7-27.8 .2-40.1l216-368C228.7 39.5 241.8 32 256 32zm0 128c-13.3 0-24 10.7-24 24V296c0 13.3 10.7 24 24 24s24-10.7 24-24V184c0-13.3-10.7-24-24-24zm32 224a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]},Xee=Qee;function iR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Fe(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n-1;i--){var o=n[i],a=(o.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(a)>-1&&(r=o)}return qt.head.insertBefore(t,r),e}}var Ote="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function Zh(){for(var e=12,t="";e-- >0;)t+=Ote[Math.random()*62|0];return t}function md(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function Fk(e){return e.classList?md(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function L7(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function Ste(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,'="').concat(L7(e[n]),'" ')},"").trim()}function K_(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")},"")}function Uk(e){return e.size!==$o.size||e.x!==$o.x||e.y!==$o.y||e.rotate!==$o.rotate||e.flipX||e.flipY}function Ete(e){var t=e.transform,n=e.containerWidth,r=e.iconWidth,i={transform:"translate(".concat(n/2," 256)")},o="translate(".concat(t.x*32,", ").concat(t.y*32,") "),a="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),s="rotate(".concat(t.rotate," 0 0)"),l={transform:"".concat(o," ").concat(a," ").concat(s)},u={transform:"translate(".concat(r/2*-1," -256)")};return{outer:i,inner:l,path:u}}function Tte(e){var t=e.transform,n=e.width,r=n===void 0?R2:n,i=e.height,o=i===void 0?R2:i,a=e.startCentered,s=a===void 0?!1:a,l="";return s&&j7?l+="translate(".concat(t.x/is-r/2,"em, ").concat(t.y/is-o/2,"em) "):s?l+="translate(calc(-50% + ".concat(t.x/is,"em), calc(-50% + ").concat(t.y/is,"em)) "):l+="translate(".concat(t.x/is,"em, ").concat(t.y/is,"em) "),l+="scale(".concat(t.size/is*(t.flipX?-1:1),", ").concat(t.size/is*(t.flipY?-1:1),") "),l+="rotate(".concat(t.rotate,"deg) "),l}var Cte=`:root, :host { + --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid"; + --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular"; + --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light"; + --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin"; + --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone"; + --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp"; + --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp"; + --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp"; + --fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 6 Sharp"; + --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands"; +} + +svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa { + overflow: visible; + box-sizing: content-box; +} + +.svg-inline--fa { + display: var(--fa-display, inline-block); + height: 1em; + overflow: visible; + vertical-align: -0.125em; +} +.svg-inline--fa.fa-2xs { + vertical-align: 0.1em; +} +.svg-inline--fa.fa-xs { + vertical-align: 0em; +} +.svg-inline--fa.fa-sm { + vertical-align: -0.0714285705em; +} +.svg-inline--fa.fa-lg { + vertical-align: -0.2em; +} +.svg-inline--fa.fa-xl { + vertical-align: -0.25em; +} +.svg-inline--fa.fa-2xl { + vertical-align: -0.3125em; +} +.svg-inline--fa.fa-pull-left { + margin-right: var(--fa-pull-margin, 0.3em); + width: auto; +} +.svg-inline--fa.fa-pull-right { + margin-left: var(--fa-pull-margin, 0.3em); + width: auto; +} +.svg-inline--fa.fa-li { + width: var(--fa-li-width, 2em); + top: 0.25em; +} +.svg-inline--fa.fa-fw { + width: var(--fa-fw-width, 1.25em); +} + +.fa-layers svg.svg-inline--fa { + bottom: 0; + left: 0; + margin: auto; + position: absolute; + right: 0; + top: 0; +} + +.fa-layers-counter, .fa-layers-text { + display: inline-block; + position: absolute; + text-align: center; +} + +.fa-layers { + display: inline-block; + height: 1em; + position: relative; + text-align: center; + vertical-align: -0.125em; + width: 1em; +} +.fa-layers svg.svg-inline--fa { + -webkit-transform-origin: center center; + transform-origin: center center; +} + +.fa-layers-text { + left: 50%; + top: 50%; + -webkit-transform: translate(-50%, -50%); + transform: translate(-50%, -50%); + -webkit-transform-origin: center center; + transform-origin: center center; +} + +.fa-layers-counter { + background-color: var(--fa-counter-background-color, #ff253a); + border-radius: var(--fa-counter-border-radius, 1em); + box-sizing: border-box; + color: var(--fa-inverse, #fff); + line-height: var(--fa-counter-line-height, 1); + max-width: var(--fa-counter-max-width, 5em); + min-width: var(--fa-counter-min-width, 1.5em); + overflow: hidden; + padding: var(--fa-counter-padding, 0.25em 0.5em); + right: var(--fa-right, 0); + text-overflow: ellipsis; + top: var(--fa-top, 0); + -webkit-transform: scale(var(--fa-counter-scale, 0.25)); + transform: scale(var(--fa-counter-scale, 0.25)); + -webkit-transform-origin: top right; + transform-origin: top right; +} + +.fa-layers-bottom-right { + bottom: var(--fa-bottom, 0); + right: var(--fa-right, 0); + top: auto; + -webkit-transform: scale(var(--fa-layers-scale, 0.25)); + transform: scale(var(--fa-layers-scale, 0.25)); + -webkit-transform-origin: bottom right; + transform-origin: bottom right; +} + +.fa-layers-bottom-left { + bottom: var(--fa-bottom, 0); + left: var(--fa-left, 0); + right: auto; + top: auto; + -webkit-transform: scale(var(--fa-layers-scale, 0.25)); + transform: scale(var(--fa-layers-scale, 0.25)); + -webkit-transform-origin: bottom left; + transform-origin: bottom left; +} + +.fa-layers-top-right { + top: var(--fa-top, 0); + right: var(--fa-right, 0); + -webkit-transform: scale(var(--fa-layers-scale, 0.25)); + transform: scale(var(--fa-layers-scale, 0.25)); + -webkit-transform-origin: top right; + transform-origin: top right; +} + +.fa-layers-top-left { + left: var(--fa-left, 0); + right: auto; + top: var(--fa-top, 0); + -webkit-transform: scale(var(--fa-layers-scale, 0.25)); + transform: scale(var(--fa-layers-scale, 0.25)); + -webkit-transform-origin: top left; + transform-origin: top left; +} + +.fa-1x { + font-size: 1em; +} + +.fa-2x { + font-size: 2em; +} + +.fa-3x { + font-size: 3em; +} + +.fa-4x { + font-size: 4em; +} + +.fa-5x { + font-size: 5em; +} + +.fa-6x { + font-size: 6em; +} + +.fa-7x { + font-size: 7em; +} + +.fa-8x { + font-size: 8em; +} + +.fa-9x { + font-size: 9em; +} + +.fa-10x { + font-size: 10em; +} + +.fa-2xs { + font-size: 0.625em; + line-height: 0.1em; + vertical-align: 0.225em; +} + +.fa-xs { + font-size: 0.75em; + line-height: 0.0833333337em; + vertical-align: 0.125em; +} + +.fa-sm { + font-size: 0.875em; + line-height: 0.0714285718em; + vertical-align: 0.0535714295em; +} + +.fa-lg { + font-size: 1.25em; + line-height: 0.05em; + vertical-align: -0.075em; +} + +.fa-xl { + font-size: 1.5em; + line-height: 0.0416666682em; + vertical-align: -0.125em; +} + +.fa-2xl { + font-size: 2em; + line-height: 0.03125em; + vertical-align: -0.1875em; +} + +.fa-fw { + text-align: center; + width: 1.25em; +} + +.fa-ul { + list-style-type: none; + margin-left: var(--fa-li-margin, 2.5em); + padding-left: 0; +} +.fa-ul > li { + position: relative; +} + +.fa-li { + left: calc(var(--fa-li-width, 2em) * -1); + position: absolute; + text-align: center; + width: var(--fa-li-width, 2em); + line-height: inherit; +} + +.fa-border { + border-color: var(--fa-border-color, #eee); + border-radius: var(--fa-border-radius, 0.1em); + border-style: var(--fa-border-style, solid); + border-width: var(--fa-border-width, 0.08em); + padding: var(--fa-border-padding, 0.2em 0.25em 0.15em); +} + +.fa-pull-left { + float: left; + margin-right: var(--fa-pull-margin, 0.3em); +} + +.fa-pull-right { + float: right; + margin-left: var(--fa-pull-margin, 0.3em); +} + +.fa-beat { + -webkit-animation-name: fa-beat; + animation-name: fa-beat; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out); + animation-timing-function: var(--fa-animation-timing, ease-in-out); +} + +.fa-bounce { + -webkit-animation-name: fa-bounce; + animation-name: fa-bounce; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1)); + animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1)); +} + +.fa-fade { + -webkit-animation-name: fa-fade; + animation-name: fa-fade; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); + animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); +} + +.fa-beat-fade { + -webkit-animation-name: fa-beat-fade; + animation-name: fa-beat-fade; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); + animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); +} + +.fa-flip { + -webkit-animation-name: fa-flip; + animation-name: fa-flip; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out); + animation-timing-function: var(--fa-animation-timing, ease-in-out); +} + +.fa-shake { + -webkit-animation-name: fa-shake; + animation-name: fa-shake; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, linear); + animation-timing-function: var(--fa-animation-timing, linear); +} + +.fa-spin { + -webkit-animation-name: fa-spin; + animation-name: fa-spin; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 2s); + animation-duration: var(--fa-animation-duration, 2s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, linear); + animation-timing-function: var(--fa-animation-timing, linear); +} + +.fa-spin-reverse { + --fa-animation-direction: reverse; +} + +.fa-pulse, +.fa-spin-pulse { + -webkit-animation-name: fa-spin; + animation-name: fa-spin; + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, steps(8)); + animation-timing-function: var(--fa-animation-timing, steps(8)); +} + +@media (prefers-reduced-motion: reduce) { + .fa-beat, +.fa-bounce, +.fa-fade, +.fa-beat-fade, +.fa-flip, +.fa-pulse, +.fa-shake, +.fa-spin, +.fa-spin-pulse { + -webkit-animation-delay: -1ms; + animation-delay: -1ms; + -webkit-animation-duration: 1ms; + animation-duration: 1ms; + -webkit-animation-iteration-count: 1; + animation-iteration-count: 1; + -webkit-transition-delay: 0s; + transition-delay: 0s; + -webkit-transition-duration: 0s; + transition-duration: 0s; + } +} +@-webkit-keyframes fa-beat { + 0%, 90% { + -webkit-transform: scale(1); + transform: scale(1); + } + 45% { + -webkit-transform: scale(var(--fa-beat-scale, 1.25)); + transform: scale(var(--fa-beat-scale, 1.25)); + } +} +@keyframes fa-beat { + 0%, 90% { + -webkit-transform: scale(1); + transform: scale(1); + } + 45% { + -webkit-transform: scale(var(--fa-beat-scale, 1.25)); + transform: scale(var(--fa-beat-scale, 1.25)); + } +} +@-webkit-keyframes fa-bounce { + 0% { + -webkit-transform: scale(1, 1) translateY(0); + transform: scale(1, 1) translateY(0); + } + 10% { + -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); + transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); + } + 30% { + -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em)); + transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em)); + } + 50% { + -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); + transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); + } + 57% { + -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); + transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); + } + 64% { + -webkit-transform: scale(1, 1) translateY(0); + transform: scale(1, 1) translateY(0); + } + 100% { + -webkit-transform: scale(1, 1) translateY(0); + transform: scale(1, 1) translateY(0); + } +} +@keyframes fa-bounce { + 0% { + -webkit-transform: scale(1, 1) translateY(0); + transform: scale(1, 1) translateY(0); + } + 10% { + -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); + transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); + } + 30% { + -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em)); + transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em)); + } + 50% { + -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); + transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); + } + 57% { + -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); + transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); + } + 64% { + -webkit-transform: scale(1, 1) translateY(0); + transform: scale(1, 1) translateY(0); + } + 100% { + -webkit-transform: scale(1, 1) translateY(0); + transform: scale(1, 1) translateY(0); + } +} +@-webkit-keyframes fa-fade { + 50% { + opacity: var(--fa-fade-opacity, 0.4); + } +} +@keyframes fa-fade { + 50% { + opacity: var(--fa-fade-opacity, 0.4); + } +} +@-webkit-keyframes fa-beat-fade { + 0%, 100% { + opacity: var(--fa-beat-fade-opacity, 0.4); + -webkit-transform: scale(1); + transform: scale(1); + } + 50% { + opacity: 1; + -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125)); + transform: scale(var(--fa-beat-fade-scale, 1.125)); + } +} +@keyframes fa-beat-fade { + 0%, 100% { + opacity: var(--fa-beat-fade-opacity, 0.4); + -webkit-transform: scale(1); + transform: scale(1); + } + 50% { + opacity: 1; + -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125)); + transform: scale(var(--fa-beat-fade-scale, 1.125)); + } +} +@-webkit-keyframes fa-flip { + 50% { + -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); + transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); + } +} +@keyframes fa-flip { + 50% { + -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); + transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); + } +} +@-webkit-keyframes fa-shake { + 0% { + -webkit-transform: rotate(-15deg); + transform: rotate(-15deg); + } + 4% { + -webkit-transform: rotate(15deg); + transform: rotate(15deg); + } + 8%, 24% { + -webkit-transform: rotate(-18deg); + transform: rotate(-18deg); + } + 12%, 28% { + -webkit-transform: rotate(18deg); + transform: rotate(18deg); + } + 16% { + -webkit-transform: rotate(-22deg); + transform: rotate(-22deg); + } + 20% { + -webkit-transform: rotate(22deg); + transform: rotate(22deg); + } + 32% { + -webkit-transform: rotate(-12deg); + transform: rotate(-12deg); + } + 36% { + -webkit-transform: rotate(12deg); + transform: rotate(12deg); + } + 40%, 100% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } +} +@keyframes fa-shake { + 0% { + -webkit-transform: rotate(-15deg); + transform: rotate(-15deg); + } + 4% { + -webkit-transform: rotate(15deg); + transform: rotate(15deg); + } + 8%, 24% { + -webkit-transform: rotate(-18deg); + transform: rotate(-18deg); + } + 12%, 28% { + -webkit-transform: rotate(18deg); + transform: rotate(18deg); + } + 16% { + -webkit-transform: rotate(-22deg); + transform: rotate(-22deg); + } + 20% { + -webkit-transform: rotate(22deg); + transform: rotate(22deg); + } + 32% { + -webkit-transform: rotate(-12deg); + transform: rotate(-12deg); + } + 36% { + -webkit-transform: rotate(12deg); + transform: rotate(12deg); + } + 40%, 100% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } +} +@-webkit-keyframes fa-spin { + 0% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} +@keyframes fa-spin { + 0% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} +.fa-rotate-90 { + -webkit-transform: rotate(90deg); + transform: rotate(90deg); +} + +.fa-rotate-180 { + -webkit-transform: rotate(180deg); + transform: rotate(180deg); +} + +.fa-rotate-270 { + -webkit-transform: rotate(270deg); + transform: rotate(270deg); +} + +.fa-flip-horizontal { + -webkit-transform: scale(-1, 1); + transform: scale(-1, 1); +} + +.fa-flip-vertical { + -webkit-transform: scale(1, -1); + transform: scale(1, -1); +} + +.fa-flip-both, +.fa-flip-horizontal.fa-flip-vertical { + -webkit-transform: scale(-1, -1); + transform: scale(-1, -1); +} + +.fa-rotate-by { + -webkit-transform: rotate(var(--fa-rotate-angle, none)); + transform: rotate(var(--fa-rotate-angle, none)); +} + +.fa-stack { + display: inline-block; + vertical-align: middle; + height: 2em; + position: relative; + width: 2.5em; +} + +.fa-stack-1x, +.fa-stack-2x { + bottom: 0; + left: 0; + margin: auto; + position: absolute; + right: 0; + top: 0; + z-index: var(--fa-stack-z-index, auto); +} + +.svg-inline--fa.fa-stack-1x { + height: 1em; + width: 1.25em; +} +.svg-inline--fa.fa-stack-2x { + height: 2em; + width: 2.5em; +} + +.fa-inverse { + color: var(--fa-inverse, #fff); +} + +.sr-only, +.fa-sr-only { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0, 0, 0, 0); + white-space: nowrap; + border-width: 0; +} + +.sr-only-focusable:not(:focus), +.fa-sr-only-focusable:not(:focus) { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0, 0, 0, 0); + white-space: nowrap; + border-width: 0; +} + +.svg-inline--fa .fa-primary { + fill: var(--fa-primary-color, currentColor); + opacity: var(--fa-primary-opacity, 1); +} + +.svg-inline--fa .fa-secondary { + fill: var(--fa-secondary-color, currentColor); + opacity: var(--fa-secondary-opacity, 0.4); +} + +.svg-inline--fa.fa-swap-opacity .fa-primary { + opacity: var(--fa-secondary-opacity, 0.4); +} + +.svg-inline--fa.fa-swap-opacity .fa-secondary { + opacity: var(--fa-primary-opacity, 1); +} + +.svg-inline--fa mask .fa-primary, +.svg-inline--fa mask .fa-secondary { + fill: black; +} + +.fad.fa-inverse, +.fa-duotone.fa-inverse { + color: var(--fa-inverse, #fff); +}`;function I7(){var e=P7,t=A7,n=He.cssPrefix,r=He.replacementClass,i=Cte;if(n!==e||r!==t){var o=new RegExp("\\.".concat(e,"\\-"),"g"),a=new RegExp("\\--".concat(e,"\\-"),"g"),s=new RegExp("\\.".concat(t),"g");i=i.replace(o,".".concat(n,"-")).replace(a,"--".concat(n,"-")).replace(s,".".concat(r))}return i}var fR=!1;function oO(){He.autoAddCss&&!fR&&(xte(I7()),fR=!0)}var kte={mixout:function(){return{dom:{css:I7,insertCss:oO}}},hooks:function(){return{beforeDOMElementCreation:function(){oO()},beforeI2svg:function(){oO()}}}},Da=Qs||{};Da[Ra]||(Da[Ra]={});Da[Ra].styles||(Da[Ra].styles={});Da[Ra].hooks||(Da[Ra].hooks={});Da[Ra].shims||(Da[Ra].shims=[]);var ho=Da[Ra],F7=[],jte=function e(){qt.removeEventListener("DOMContentLoaded",e),O0=1,F7.map(function(t){return t()})},O0=!1;Ga&&(O0=(qt.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(qt.readyState),O0||qt.addEventListener("DOMContentLoaded",jte));function Pte(e){Ga&&(O0?setTimeout(e,0):F7.push(e))}function uv(e){var t=e.tag,n=e.attributes,r=n===void 0?{}:n,i=e.children,o=i===void 0?[]:i;return typeof e=="string"?L7(e):"<".concat(t," ").concat(Ste(r),">").concat(o.map(uv).join(""),"")}function dR(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var Ate=function(t,n){return function(r,i,o,a){return t.call(n,r,i,o,a)}},aO=function(t,n,r,i){var o=Object.keys(t),a=o.length,s=i!==void 0?Ate(n,i):n,l,u,f;for(r===void 0?(l=1,f=t[o[0]]):(l=0,f=r);l=55296&&i<=56319&&n=55296&&r<=56319&&n>t+1&&(i=e.charCodeAt(t+1),i>=56320&&i<=57343)?(r-55296)*1024+i-56320+65536:r}function pR(e){return Object.keys(e).reduce(function(t,n){var r=e[n],i=!!r.icon;return i?t[r.iconName]=r.icon:t[n]=r,t},{})}function I2(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.skipHooks,i=r===void 0?!1:r,o=pR(t);typeof ho.hooks.addPack=="function"&&!i?ho.hooks.addPack(e,pR(t)):ho.styles[e]=Fe(Fe({},ho.styles[e]||{}),o),e==="fas"&&I2("fa",t)}var Pg,Ag,Ng,Dc=ho.styles,Rte=ho.shims,Dte=(Pg={},Rn(Pg,Wt,Object.values(qh[Wt])),Rn(Pg,pn,Object.values(qh[pn])),Pg),$k=null,U7={},$7={},B7={},z7={},V7={},Lte=(Ag={},Rn(Ag,Wt,Object.keys(Yh[Wt])),Rn(Ag,pn,Object.keys(Yh[pn])),Ag);function Ite(e){return~gte.indexOf(e)}function Fte(e,t){var n=t.split("-"),r=n[0],i=n.slice(1).join("-");return r===e&&i!==""&&!Ite(i)?i:null}var H7=function(){var t=function(o){return aO(Dc,function(a,s,l){return a[l]=aO(s,o,{}),a},{})};U7=t(function(i,o,a){if(o[3]&&(i[o[3]]=a),o[2]){var s=o[2].filter(function(l){return typeof l=="number"});s.forEach(function(l){i[l.toString(16)]=a})}return i}),$7=t(function(i,o,a){if(i[a]=a,o[2]){var s=o[2].filter(function(l){return typeof l=="string"});s.forEach(function(l){i[l]=a})}return i}),V7=t(function(i,o,a){var s=o[2];return i[a]=a,s.forEach(function(l){i[l]=a}),i});var n="far"in Dc||He.autoFetchSvg,r=aO(Rte,function(i,o){var a=o[0],s=o[1],l=o[2];return s==="far"&&!n&&(s="fas"),typeof a=="string"&&(i.names[a]={prefix:s,iconName:l}),typeof a=="number"&&(i.unicodes[a.toString(16)]={prefix:s,iconName:l}),i},{names:{},unicodes:{}});B7=r.names,z7=r.unicodes,$k=Z_(He.styleDefault,{family:He.familyDefault})};wte(function(e){$k=Z_(e.styleDefault,{family:He.familyDefault})});H7();function Bk(e,t){return(U7[e]||{})[t]}function Ute(e,t){return($7[e]||{})[t]}function Jl(e,t){return(V7[e]||{})[t]}function W7(e){return B7[e]||{prefix:null,iconName:null}}function $te(e){var t=z7[e],n=Bk("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function Xs(){return $k}var zk=function(){return{prefix:null,iconName:null,rest:[]}};function Z_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.family,r=n===void 0?Wt:n,i=Yh[r][e],o=Gh[r][e]||Gh[r][i],a=e in ho.styles?e:null;return o||a||null}var hR=(Ng={},Rn(Ng,Wt,Object.keys(qh[Wt])),Rn(Ng,pn,Object.keys(qh[pn])),Ng);function Q_(e){var t,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.skipLookups,i=r===void 0?!1:r,o=(t={},Rn(t,Wt,"".concat(He.cssPrefix,"-").concat(Wt)),Rn(t,pn,"".concat(He.cssPrefix,"-").concat(pn)),t),a=null,s=Wt;(e.includes(o[Wt])||e.some(function(u){return hR[Wt].includes(u)}))&&(s=Wt),(e.includes(o[pn])||e.some(function(u){return hR[pn].includes(u)}))&&(s=pn);var l=e.reduce(function(u,f){var d=Fte(He.cssPrefix,f);if(Dc[f]?(f=Dte[s].includes(f)?fte[s][f]:f,a=f,u.prefix=f):Lte[s].indexOf(f)>-1?(a=f,u.prefix=Z_(f,{family:s})):d?u.iconName=d:f!==He.replacementClass&&f!==o[Wt]&&f!==o[pn]&&u.rest.push(f),!i&&u.prefix&&u.iconName){var p=a==="fa"?W7(u.iconName):{},m=Jl(u.prefix,u.iconName);p.prefix&&(a=null),u.iconName=p.iconName||m||u.iconName,u.prefix=p.prefix||u.prefix,u.prefix==="far"&&!Dc.far&&Dc.fas&&!He.autoFetchSvg&&(u.prefix="fas")}return u},zk());return(e.includes("fa-brands")||e.includes("fab"))&&(l.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(l.prefix="fad"),!l.prefix&&s===pn&&(Dc.fass||He.autoFetchSvg)&&(l.prefix="fass",l.iconName=Jl(l.prefix,l.iconName)||l.iconName),(l.prefix==="fa"||a==="fa")&&(l.prefix=Xs()||"fas"),l}var Bte=function(){function e(){Jee(this,e),this.definitions={}}return ete(e,[{key:"add",value:function(){for(var n=this,r=arguments.length,i=new Array(r),o=0;o0&&f.forEach(function(d){typeof d=="string"&&(n[s][d]=u)}),n[s][l]=u}),n}}]),e}(),mR=[],Lc={},ef={},zte=Object.keys(ef);function Vte(e,t){var n=t.mixoutsTo;return mR=e,Lc={},Object.keys(ef).forEach(function(r){zte.indexOf(r)===-1&&delete ef[r]}),mR.forEach(function(r){var i=r.mixout?r.mixout():{};if(Object.keys(i).forEach(function(a){typeof i[a]=="function"&&(n[a]=i[a]),x0(i[a])==="object"&&Object.keys(i[a]).forEach(function(s){n[a]||(n[a]={}),n[a][s]=i[a][s]})}),r.hooks){var o=r.hooks();Object.keys(o).forEach(function(a){Lc[a]||(Lc[a]=[]),Lc[a].push(o[a])})}r.provides&&r.provides(ef)}),n}function F2(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i1?t-1:0),r=1;r0&&arguments[0]!==void 0?arguments[0]:{};return Ga?(Eu("beforeI2svg",t),La("pseudoElements2svg",t),La("i2svg",t)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot;He.autoReplaceSvg===!1&&(He.autoReplaceSvg=!0),He.observeMutations=!0,Pte(function(){Gte({autoReplaceSvgRoot:n}),Eu("watch",t)})}},Yte={icon:function(t){if(t===null)return null;if(x0(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:Jl(t.prefix,t.iconName)||t.iconName};if(Array.isArray(t)&&t.length===2){var n=t[1].indexOf("fa-")===0?t[1].slice(3):t[1],r=Z_(t[0]);return{prefix:r,iconName:Jl(r,n)||n}}if(typeof t=="string"&&(t.indexOf("".concat(He.cssPrefix,"-"))>-1||t.match(dte))){var i=Q_(t.split(" "),{skipLookups:!0});return{prefix:i.prefix||Xs(),iconName:Jl(i.prefix,i.iconName)||i.iconName}}if(typeof t=="string"){var o=Xs();return{prefix:o,iconName:Jl(o,t)||t}}}},yi={noAuto:Hte,config:He,dom:Wte,parse:Yte,library:Y7,findIconDefinition:U2,toHtml:uv},Gte=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot,r=n===void 0?qt:n;(Object.keys(ho.styles).length>0||He.autoFetchSvg)&&Ga&&He.autoReplaceSvg&&yi.dom.i2svg({node:r})};function X_(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(r){return uv(r)})}}),Object.defineProperty(e,"node",{get:function(){if(Ga){var r=qt.createElement("div");return r.innerHTML=e.html,r.children}}}),e}function qte(e){var t=e.children,n=e.main,r=e.mask,i=e.attributes,o=e.styles,a=e.transform;if(Uk(a)&&n.found&&!r.found){var s=n.width,l=n.height,u={x:s/l/2,y:.5};i.style=K_(Fe(Fe({},o),{},{"transform-origin":"".concat(u.x+a.x/16,"em ").concat(u.y+a.y/16,"em")}))}return[{tag:"svg",attributes:i,children:t}]}function Kte(e){var t=e.prefix,n=e.iconName,r=e.children,i=e.attributes,o=e.symbol,a=o===!0?"".concat(t,"-").concat(He.cssPrefix,"-").concat(n):o;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:Fe(Fe({},i),{},{id:a}),children:r}]}]}function Vk(e){var t=e.icons,n=t.main,r=t.mask,i=e.prefix,o=e.iconName,a=e.transform,s=e.symbol,l=e.title,u=e.maskId,f=e.titleId,d=e.extra,p=e.watchable,m=p===void 0?!1:p,v=r.found?r:n,g=v.width,x=v.height,b=i==="fak",_=[He.replacementClass,o?"".concat(He.cssPrefix,"-").concat(o):""].filter(function(D){return d.classes.indexOf(D)===-1}).filter(function(D){return D!==""||!!D}).concat(d.classes).join(" "),w={children:[],attributes:Fe(Fe({},d.attributes),{},{"data-prefix":i,"data-icon":o,class:_,role:d.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(g," ").concat(x)})},O=b&&!~d.classes.indexOf("fa-fw")?{width:"".concat(g/x*16*.0625,"em")}:{};m&&(w.attributes[Su]=""),l&&(w.children.push({tag:"title",attributes:{id:w.attributes["aria-labelledby"]||"title-".concat(f||Zh())},children:[l]}),delete w.attributes.title);var E=Fe(Fe({},w),{},{prefix:i,iconName:o,main:n,mask:r,maskId:u,transform:a,symbol:s,styles:Fe(Fe({},O),d.styles)}),T=r.found&&n.found?La("generateAbstractMask",E)||{children:[],attributes:{}}:La("generateAbstractIcon",E)||{children:[],attributes:{}},k=T.children,P=T.attributes;return E.children=k,E.attributes=P,s?Kte(E):qte(E)}function vR(e){var t=e.content,n=e.width,r=e.height,i=e.transform,o=e.title,a=e.extra,s=e.watchable,l=s===void 0?!1:s,u=Fe(Fe(Fe({},a.attributes),o?{title:o}:{}),{},{class:a.classes.join(" ")});l&&(u[Su]="");var f=Fe({},a.styles);Uk(i)&&(f.transform=Tte({transform:i,startCentered:!0,width:n,height:r}),f["-webkit-transform"]=f.transform);var d=K_(f);d.length>0&&(u.style=d);var p=[];return p.push({tag:"span",attributes:u,children:[t]}),o&&p.push({tag:"span",attributes:{class:"sr-only"},children:[o]}),p}function Zte(e){var t=e.content,n=e.title,r=e.extra,i=Fe(Fe(Fe({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),o=K_(r.styles);o.length>0&&(i.style=o);var a=[];return a.push({tag:"span",attributes:i,children:[t]}),n&&a.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),a}var sO=ho.styles;function $2(e){var t=e[0],n=e[1],r=e.slice(4),i=Mk(r,1),o=i[0],a=null;return Array.isArray(o)?a={tag:"g",attributes:{class:"".concat(He.cssPrefix,"-").concat(Xl.GROUP)},children:[{tag:"path",attributes:{class:"".concat(He.cssPrefix,"-").concat(Xl.SECONDARY),fill:"currentColor",d:o[0]}},{tag:"path",attributes:{class:"".concat(He.cssPrefix,"-").concat(Xl.PRIMARY),fill:"currentColor",d:o[1]}}]}:a={tag:"path",attributes:{fill:"currentColor",d:o}},{found:!0,width:t,height:n,icon:a}}var Qte={found:!1,width:512,height:512};function Xte(e,t){!N7&&!He.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function B2(e,t){var n=t;return t==="fa"&&He.styleDefault!==null&&(t=Xs()),new Promise(function(r,i){if(La("missingIconAbstract"),n==="fa"){var o=W7(e)||{};e=o.iconName||e,t=o.prefix||t}if(e&&t&&sO[t]&&sO[t][e]){var a=sO[t][e];return r($2(a))}Xte(e,t),r(Fe(Fe({},Qte),{},{icon:He.showMissingIcons&&e?La("missingIconAbstract")||{}:{}}))})}var gR=function(){},z2=He.measurePerformance&&Sg&&Sg.mark&&Sg.measure?Sg:{mark:gR,measure:gR},Ip='FA "6.5.1"',Jte=function(t){return z2.mark("".concat(Ip," ").concat(t," begins")),function(){return G7(t)}},G7=function(t){z2.mark("".concat(Ip," ").concat(t," ends")),z2.measure("".concat(Ip," ").concat(t),"".concat(Ip," ").concat(t," begins"),"".concat(Ip," ").concat(t," ends"))},Hk={begin:Jte,end:G7},Ty=function(){};function yR(e){var t=e.getAttribute?e.getAttribute(Su):null;return typeof t=="string"}function ene(e){var t=e.getAttribute?e.getAttribute(Dk):null,n=e.getAttribute?e.getAttribute(Lk):null;return t&&n}function tne(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(He.replacementClass)}function nne(){if(He.autoReplaceSvg===!0)return Cy.replace;var e=Cy[He.autoReplaceSvg];return e||Cy.replace}function rne(e){return qt.createElementNS("http://www.w3.org/2000/svg",e)}function ine(e){return qt.createElement(e)}function q7(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.ceFn,r=n===void 0?e.tag==="svg"?rne:ine:n;if(typeof e=="string")return qt.createTextNode(e);var i=r(e.tag);Object.keys(e.attributes||[]).forEach(function(a){i.setAttribute(a,e.attributes[a])});var o=e.children||[];return o.forEach(function(a){i.appendChild(q7(a,{ceFn:r}))}),i}function one(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var Cy={replace:function(t){var n=t[0];if(n.parentNode)if(t[1].forEach(function(i){n.parentNode.insertBefore(q7(i),n)}),n.getAttribute(Su)===null&&He.keepOriginalSource){var r=qt.createComment(one(n));n.parentNode.replaceChild(r,n)}else n.remove()},nest:function(t){var n=t[0],r=t[1];if(~Fk(n).indexOf(He.replacementClass))return Cy.replace(t);var i=new RegExp("".concat(He.cssPrefix,"-.*"));if(delete r[0].attributes.id,r[0].attributes.class){var o=r[0].attributes.class.split(" ").reduce(function(s,l){return l===He.replacementClass||l.match(i)?s.toSvg.push(l):s.toNode.push(l),s},{toNode:[],toSvg:[]});r[0].attributes.class=o.toSvg.join(" "),o.toNode.length===0?n.removeAttribute("class"):n.setAttribute("class",o.toNode.join(" "))}var a=r.map(function(s){return uv(s)}).join(` +`);n.setAttribute(Su,""),n.innerHTML=a}};function bR(e){e()}function K7(e,t){var n=typeof t=="function"?t:Ty;if(e.length===0)n();else{var r=bR;He.mutateApproach===ute&&(r=Qs.requestAnimationFrame||bR),r(function(){var i=nne(),o=Hk.begin("mutate");e.map(i),o(),n()})}}var Wk=!1;function Z7(){Wk=!0}function V2(){Wk=!1}var S0=null;function _R(e){if(uR&&He.observeMutations){var t=e.treeCallback,n=t===void 0?Ty:t,r=e.nodeCallback,i=r===void 0?Ty:r,o=e.pseudoElementsCallback,a=o===void 0?Ty:o,s=e.observeMutationsRoot,l=s===void 0?qt:s;S0=new uR(function(u){if(!Wk){var f=Xs();md(u).forEach(function(d){if(d.type==="childList"&&d.addedNodes.length>0&&!yR(d.addedNodes[0])&&(He.searchPseudoElements&&a(d.target),n(d.target)),d.type==="attributes"&&d.target.parentNode&&He.searchPseudoElements&&a(d.target.parentNode),d.type==="attributes"&&yR(d.target)&&~vte.indexOf(d.attributeName))if(d.attributeName==="class"&&ene(d.target)){var p=Q_(Fk(d.target)),m=p.prefix,v=p.iconName;d.target.setAttribute(Dk,m||f),v&&d.target.setAttribute(Lk,v)}else tne(d.target)&&i(d.target)})}}),Ga&&S0.observe(l,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function ane(){S0&&S0.disconnect()}function sne(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce(function(r,i){var o=i.split(":"),a=o[0],s=o.slice(1);return a&&s.length>0&&(r[a]=s.join(":").trim()),r},{})),n}function lne(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"",i=Q_(Fk(e));return i.prefix||(i.prefix=Xs()),t&&n&&(i.prefix=t,i.iconName=n),i.iconName&&i.prefix||(i.prefix&&r.length>0&&(i.iconName=Ute(i.prefix,e.innerText)||Bk(i.prefix,L2(e.innerText))),!i.iconName&&He.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i}function une(e){var t=md(e.attributes).reduce(function(i,o){return i.name!=="class"&&i.name!=="style"&&(i[o.name]=o.value),i},{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return He.autoA11y&&(n?t["aria-labelledby"]="".concat(He.replacementClass,"-title-").concat(r||Zh()):(t["aria-hidden"]="true",t.focusable="false")),t}function cne(){return{iconName:null,title:null,titleId:null,prefix:null,transform:$o,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function wR(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=lne(e),r=n.iconName,i=n.prefix,o=n.rest,a=une(e),s=F2("parseNodeAttributes",{},e),l=t.styleParser?sne(e):[];return Fe({iconName:r,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:i,transform:$o,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:o,styles:l,attributes:a}},s)}var fne=ho.styles;function Q7(e){var t=He.autoReplaceSvg==="nest"?wR(e,{styleParser:!1}):wR(e);return~t.extra.classes.indexOf(M7)?La("generateLayersText",e,t):La("generateSvgReplacementMutation",e,t)}var Js=new Set;Ik.map(function(e){Js.add("fa-".concat(e))});Object.keys(Yh[Wt]).map(Js.add.bind(Js));Object.keys(Yh[pn]).map(Js.add.bind(Js));Js=sv(Js);function xR(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!Ga)return Promise.resolve();var n=qt.documentElement.classList,r=function(d){return n.add("".concat(cR,"-").concat(d))},i=function(d){return n.remove("".concat(cR,"-").concat(d))},o=He.autoFetchSvg?Js:Ik.map(function(f){return"fa-".concat(f)}).concat(Object.keys(fne));o.includes("fa")||o.push("fa");var a=[".".concat(M7,":not([").concat(Su,"])")].concat(o.map(function(f){return".".concat(f,":not([").concat(Su,"])")})).join(", ");if(a.length===0)return Promise.resolve();var s=[];try{s=md(e.querySelectorAll(a))}catch{}if(s.length>0)r("pending"),i("complete");else return Promise.resolve();var l=Hk.begin("onTree"),u=s.reduce(function(f,d){try{var p=Q7(d);p&&f.push(p)}catch(m){N7||m.name==="MissingIcon"&&console.error(m)}return f},[]);return new Promise(function(f,d){Promise.all(u).then(function(p){K7(p,function(){r("active"),r("complete"),i("pending"),typeof t=="function"&&t(),l(),f()})}).catch(function(p){l(),d(p)})})}function dne(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;Q7(e).then(function(n){n&&K7([n],t)})}function pne(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=(t||{}).icon?t:U2(t||{}),i=n.mask;return i&&(i=(i||{}).icon?i:U2(i||{})),e(r,Fe(Fe({},n),{},{mask:i}))}}var hne=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.transform,i=r===void 0?$o:r,o=n.symbol,a=o===void 0?!1:o,s=n.mask,l=s===void 0?null:s,u=n.maskId,f=u===void 0?null:u,d=n.title,p=d===void 0?null:d,m=n.titleId,v=m===void 0?null:m,g=n.classes,x=g===void 0?[]:g,b=n.attributes,_=b===void 0?{}:b,w=n.styles,O=w===void 0?{}:w;if(t){var E=t.prefix,T=t.iconName,k=t.icon;return X_(Fe({type:"icon"},t),function(){return Eu("beforeDOMElementCreation",{iconDefinition:t,params:n}),He.autoA11y&&(p?_["aria-labelledby"]="".concat(He.replacementClass,"-title-").concat(v||Zh()):(_["aria-hidden"]="true",_.focusable="false")),Vk({icons:{main:$2(k),mask:l?$2(l.icon):{found:!1,width:null,height:null,icon:{}}},prefix:E,iconName:T,transform:Fe(Fe({},$o),i),symbol:a,title:p,maskId:f,titleId:v,extra:{attributes:_,styles:O,classes:x}})})}},mne={mixout:function(){return{icon:pne(hne)}},hooks:function(){return{mutationObserverCallbacks:function(n){return n.treeCallback=xR,n.nodeCallback=dne,n}}},provides:function(t){t.i2svg=function(n){var r=n.node,i=r===void 0?qt:r,o=n.callback,a=o===void 0?function(){}:o;return xR(i,a)},t.generateSvgReplacementMutation=function(n,r){var i=r.iconName,o=r.title,a=r.titleId,s=r.prefix,l=r.transform,u=r.symbol,f=r.mask,d=r.maskId,p=r.extra;return new Promise(function(m,v){Promise.all([B2(i,s),f.iconName?B2(f.iconName,f.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(g){var x=Mk(g,2),b=x[0],_=x[1];m([n,Vk({icons:{main:b,mask:_},prefix:s,iconName:i,transform:l,symbol:u,maskId:d,title:o,titleId:a,extra:p,watchable:!0})])}).catch(v)})},t.generateAbstractIcon=function(n){var r=n.children,i=n.attributes,o=n.main,a=n.transform,s=n.styles,l=K_(s);l.length>0&&(i.style=l);var u;return Uk(a)&&(u=La("generateAbstractTransformGrouping",{main:o,transform:a,containerWidth:o.width,iconWidth:o.width})),r.push(u||o.icon),{children:r,attributes:i}}}},vne={mixout:function(){return{layer:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.classes,o=i===void 0?[]:i;return X_({type:"layer"},function(){Eu("beforeDOMElementCreation",{assembler:n,params:r});var a=[];return n(function(s){Array.isArray(s)?s.map(function(l){a=a.concat(l.abstract)}):a=a.concat(s.abstract)}),[{tag:"span",attributes:{class:["".concat(He.cssPrefix,"-layers")].concat(sv(o)).join(" ")},children:a}]})}}}},gne={mixout:function(){return{counter:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.title,o=i===void 0?null:i,a=r.classes,s=a===void 0?[]:a,l=r.attributes,u=l===void 0?{}:l,f=r.styles,d=f===void 0?{}:f;return X_({type:"counter",content:n},function(){return Eu("beforeDOMElementCreation",{content:n,params:r}),Zte({content:n.toString(),title:o,extra:{attributes:u,styles:d,classes:["".concat(He.cssPrefix,"-layers-counter")].concat(sv(s))}})})}}}},yne={mixout:function(){return{text:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.transform,o=i===void 0?$o:i,a=r.title,s=a===void 0?null:a,l=r.classes,u=l===void 0?[]:l,f=r.attributes,d=f===void 0?{}:f,p=r.styles,m=p===void 0?{}:p;return X_({type:"text",content:n},function(){return Eu("beforeDOMElementCreation",{content:n,params:r}),vR({content:n,transform:Fe(Fe({},$o),o),title:s,extra:{attributes:d,styles:m,classes:["".concat(He.cssPrefix,"-layers-text")].concat(sv(u))}})})}}},provides:function(t){t.generateLayersText=function(n,r){var i=r.title,o=r.transform,a=r.extra,s=null,l=null;if(j7){var u=parseInt(getComputedStyle(n).fontSize,10),f=n.getBoundingClientRect();s=f.width/u,l=f.height/u}return He.autoA11y&&!i&&(a.attributes["aria-hidden"]="true"),Promise.resolve([n,vR({content:n.innerHTML,width:s,height:l,transform:o,title:i,extra:a,watchable:!0})])}}},bne=new RegExp('"',"ug"),OR=[1105920,1112319];function _ne(e){var t=e.replace(bne,""),n=Mte(t,0),r=n>=OR[0]&&n<=OR[1],i=t.length===2?t[0]===t[1]:!1;return{value:L2(i?t[0]:t),isSecondary:r||i}}function SR(e,t){var n="".concat(lte).concat(t.replace(":","-"));return new Promise(function(r,i){if(e.getAttribute(n)!==null)return r();var o=md(e.children),a=o.filter(function(k){return k.getAttribute(D2)===t})[0],s=Qs.getComputedStyle(e,t),l=s.getPropertyValue("font-family").match(pte),u=s.getPropertyValue("font-weight"),f=s.getPropertyValue("content");if(a&&!l)return e.removeChild(a),r();if(l&&f!=="none"&&f!==""){var d=s.getPropertyValue("content"),p=~["Sharp"].indexOf(l[2])?pn:Wt,m=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(l[2])?Gh[p][l[2].toLowerCase()]:hte[p][u],v=_ne(d),g=v.value,x=v.isSecondary,b=l[0].startsWith("FontAwesome"),_=Bk(m,g),w=_;if(b){var O=$te(g);O.iconName&&O.prefix&&(_=O.iconName,m=O.prefix)}if(_&&!x&&(!a||a.getAttribute(Dk)!==m||a.getAttribute(Lk)!==w)){e.setAttribute(n,w),a&&e.removeChild(a);var E=cne(),T=E.extra;T.attributes[D2]=t,B2(_,m).then(function(k){var P=Vk(Fe(Fe({},E),{},{icons:{main:k,mask:zk()},prefix:m,iconName:w,extra:T,watchable:!0})),D=qt.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(D,e.firstChild):e.appendChild(D),D.outerHTML=P.map(function(N){return uv(N)}).join(` +`),e.removeAttribute(n),r()}).catch(i)}else r()}else r()})}function wne(e){return Promise.all([SR(e,"::before"),SR(e,"::after")])}function xne(e){return e.parentNode!==document.head&&!~cte.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(D2)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function ER(e){if(Ga)return new Promise(function(t,n){var r=md(e.querySelectorAll("*")).filter(xne).map(wne),i=Hk.begin("searchPseudoElements");Z7(),Promise.all(r).then(function(){i(),V2(),t()}).catch(function(){i(),V2(),n()})})}var One={hooks:function(){return{mutationObserverCallbacks:function(n){return n.pseudoElementsCallback=ER,n}}},provides:function(t){t.pseudoElements2svg=function(n){var r=n.node,i=r===void 0?qt:r;He.searchPseudoElements&&ER(i)}}},TR=!1,Sne={mixout:function(){return{dom:{unwatch:function(){Z7(),TR=!0}}}},hooks:function(){return{bootstrap:function(){_R(F2("mutationObserverCallbacks",{}))},noAuto:function(){ane()},watch:function(n){var r=n.observeMutationsRoot;TR?V2():_R(F2("mutationObserverCallbacks",{observeMutationsRoot:r}))}}}},CR=function(t){var n={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t.toLowerCase().split(" ").reduce(function(r,i){var o=i.toLowerCase().split("-"),a=o[0],s=o.slice(1).join("-");if(a&&s==="h")return r.flipX=!0,r;if(a&&s==="v")return r.flipY=!0,r;if(s=parseFloat(s),isNaN(s))return r;switch(a){case"grow":r.size=r.size+s;break;case"shrink":r.size=r.size-s;break;case"left":r.x=r.x-s;break;case"right":r.x=r.x+s;break;case"up":r.y=r.y-s;break;case"down":r.y=r.y+s;break;case"rotate":r.rotate=r.rotate+s;break}return r},n)},Ene={mixout:function(){return{parse:{transform:function(n){return CR(n)}}}},hooks:function(){return{parseNodeAttributes:function(n,r){var i=r.getAttribute("data-fa-transform");return i&&(n.transform=CR(i)),n}}},provides:function(t){t.generateAbstractTransformGrouping=function(n){var r=n.main,i=n.transform,o=n.containerWidth,a=n.iconWidth,s={transform:"translate(".concat(o/2," 256)")},l="translate(".concat(i.x*32,", ").concat(i.y*32,") "),u="scale(".concat(i.size/16*(i.flipX?-1:1),", ").concat(i.size/16*(i.flipY?-1:1),") "),f="rotate(".concat(i.rotate," 0 0)"),d={transform:"".concat(l," ").concat(u," ").concat(f)},p={transform:"translate(".concat(a/2*-1," -256)")},m={outer:s,inner:d,path:p};return{tag:"g",attributes:Fe({},m.outer),children:[{tag:"g",attributes:Fe({},m.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:Fe(Fe({},r.icon.attributes),m.path)}]}]}}}},lO={x:0,y:0,width:"100%",height:"100%"};function kR(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function Tne(e){return e.tag==="g"?e.children:[e]}var Cne={hooks:function(){return{parseNodeAttributes:function(n,r){var i=r.getAttribute("data-fa-mask"),o=i?Q_(i.split(" ").map(function(a){return a.trim()})):zk();return o.prefix||(o.prefix=Xs()),n.mask=o,n.maskId=r.getAttribute("data-fa-mask-id"),n}}},provides:function(t){t.generateAbstractMask=function(n){var r=n.children,i=n.attributes,o=n.main,a=n.mask,s=n.maskId,l=n.transform,u=o.width,f=o.icon,d=a.width,p=a.icon,m=Ete({transform:l,containerWidth:d,iconWidth:u}),v={tag:"rect",attributes:Fe(Fe({},lO),{},{fill:"white"})},g=f.children?{children:f.children.map(kR)}:{},x={tag:"g",attributes:Fe({},m.inner),children:[kR(Fe({tag:f.tag,attributes:Fe(Fe({},f.attributes),m.path)},g))]},b={tag:"g",attributes:Fe({},m.outer),children:[x]},_="mask-".concat(s||Zh()),w="clip-".concat(s||Zh()),O={tag:"mask",attributes:Fe(Fe({},lO),{},{id:_,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[v,b]},E={tag:"defs",children:[{tag:"clipPath",attributes:{id:w},children:Tne(p)},O]};return r.push(E,{tag:"rect",attributes:Fe({fill:"currentColor","clip-path":"url(#".concat(w,")"),mask:"url(#".concat(_,")")},lO)}),{children:r,attributes:i}}}},kne={provides:function(t){var n=!1;Qs.matchMedia&&(n=Qs.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){var r=[],i={fill:"currentColor"},o={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};r.push({tag:"path",attributes:Fe(Fe({},i),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var a=Fe(Fe({},o),{},{attributeName:"opacity"}),s={tag:"circle",attributes:Fe(Fe({},i),{},{cx:"256",cy:"364",r:"28"}),children:[]};return n||s.children.push({tag:"animate",attributes:Fe(Fe({},o),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:Fe(Fe({},a),{},{values:"1;0;1;1;0;1;"})}),r.push(s),r.push({tag:"path",attributes:Fe(Fe({},i),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:n?[]:[{tag:"animate",attributes:Fe(Fe({},a),{},{values:"1;0;0;0;0;1;"})}]}),n||r.push({tag:"path",attributes:Fe(Fe({},i),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:Fe(Fe({},a),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:r}}}},jne={hooks:function(){return{parseNodeAttributes:function(n,r){var i=r.getAttribute("data-fa-symbol"),o=i===null?!1:i===""?!0:i;return n.symbol=o,n}}}},Pne=[kte,mne,vne,gne,yne,One,Sne,Ene,Cne,kne,jne];Vte(Pne,{mixoutsTo:yi});yi.noAuto;yi.config;yi.library;yi.dom;var H2=yi.parse;yi.findIconDefinition;yi.toHtml;var Ane=yi.icon;yi.layer;yi.text;yi.counter;var X7={exports:{}},Nne="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Mne=Nne,Rne=Mne;function J7(){}function eB(){}eB.resetWarningCache=J7;var Dne=function(){function e(r,i,o,a,s,l){if(l!==Rne){var u=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 u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:eB,resetWarningCache:J7};return n.PropTypes=n,n};X7.exports=Dne();var Lne=X7.exports;const U=Du(Lne);function jR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ts(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function Fne(e,t){if(e==null)return{};var n=Ine(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function W2(e){return Une(e)||$ne(e)||Bne(e)||zne()}function Une(e){if(Array.isArray(e))return Y2(e)}function $ne(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Bne(e,t){if(e){if(typeof e=="string")return Y2(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Y2(e,t)}}function Y2(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&arguments[2]!==void 0?arguments[2]:{};if(typeof t=="string")return t;var r=(t.children||[]).map(function(l){return nB(e,l)}),i=Object.keys(t.attributes||{}).reduce(function(l,u){var f=t.attributes[u];switch(u){case"class":l.attrs.className=f,delete t.attributes.class;break;case"style":l.attrs.style=Gne(f);break;default:u.indexOf("aria-")===0||u.indexOf("data-")===0?l.attrs[u.toLowerCase()]=f:l.attrs[tB(u)]=f}return l},{attrs:{}}),o=n.style,a=o===void 0?{}:o,s=Fne(n,Wne);return i.attrs.style=Ts(Ts({},i.attrs.style),a),e.apply(void 0,[t.tag,Ts(Ts({},i.attrs),s)].concat(W2(r)))}var rB=!1;try{rB=!0}catch{}function qne(){if(!rB&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function PR(e){if(e&&E0(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(H2.icon)return H2.icon(e);if(e===null)return null;if(e&&E0(e)==="object"&&e.prefix&&e.iconName)return e;if(Array.isArray(e)&&e.length===2)return{prefix:e[0],iconName:e[1]};if(typeof e=="string")return{prefix:"fas",iconName:e}}function uO(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?Ic({},e,t):{}}var Ne=M.forwardRef(function(e,t){var n=e.icon,r=e.mask,i=e.symbol,o=e.className,a=e.title,s=e.titleId,l=e.maskId,u=PR(n),f=uO("classes",[].concat(W2(Vne(e)),W2(o.split(" ")))),d=uO("transform",typeof e.transform=="string"?H2.transform(e.transform):e.transform),p=uO("mask",PR(r)),m=Ane(u,Ts(Ts(Ts(Ts({},f),d),p),{},{symbol:i,title:a,titleId:s,maskId:l}));if(!m)return qne("Could not find icon",u),null;var v=m.abstract,g={ref:t};return Object.keys(e).forEach(function(x){Ne.defaultProps.hasOwnProperty(x)||(g[x]=e[x])}),Kne(v[0],g)});Ne.displayName="FontAwesomeIcon";Ne.propTypes={beat:U.bool,border:U.bool,beatFade:U.bool,bounce:U.bool,className:U.string,fade:U.bool,flash:U.bool,mask:U.oneOfType([U.object,U.array,U.string]),maskId:U.string,fixedWidth:U.bool,inverse:U.bool,flip:U.oneOf([!0,!1,"horizontal","vertical","both"]),icon:U.oneOfType([U.object,U.array,U.string]),listItem:U.bool,pull:U.oneOf(["right","left"]),pulse:U.bool,rotation:U.oneOf([0,90,180,270]),shake:U.bool,size:U.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:U.bool,spinPulse:U.bool,spinReverse:U.bool,symbol:U.oneOfType([U.bool,U.string]),title:U.string,titleId:U.string,transform:U.oneOfType([U.string,U.object]),swapOpacity:U.bool};Ne.defaultProps={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1};var Kne=nB.bind(null,M.createElement),iB={exports:{}};/*! + Copyright (c) 2018 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],i=0;i0?"".concat(e,"px"):null}function Xne(){return document.body.clientWidth0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:tre;return t?e.split(" ").map(function(n){return t[n]||n}).join(" "):e}function fl(e,t){var n={};return Object.keys(e).forEach(function(r){t.indexOf(r)===-1&&(n[r]=e[r])}),n}function aB(e,t){for(var n=Array.isArray(t)?t:[t],r=n.length,i,o={};r>0;)r-=1,i=n[r],o[i]=e[i];return o}var AR={};function G2(e){AR[e]||(typeof console<"u"&&console.error(e),AR[e]=!0)}function sB(e,t){return function(r,i,o){r[i]!==null&&typeof r[i]<"u"&&G2('"'.concat(i,'" property of "').concat(o,`" has been deprecated. +`).concat(t));for(var a=arguments.length,s=new Array(a>3?a-3:0),l=3;l"u"?"undefined":vf(window))==="object"&&window.Element||function(){};function Yk(e,t,n){if(!(e[t]instanceof nre))return new Error("Invalid prop `"+t+"` supplied to `"+n+"`. Expected prop to be an instance of Element. Validation failed.")}var gf=U.oneOfType([U.string,U.func,Yk,U.shape({current:U.any})]),dt=U.oneOfType([U.func,U.string,U.shape({$$typeof:U.symbol,render:U.func}),U.arrayOf(U.oneOfType([U.func,U.string,U.shape({$$typeof:U.symbol,render:U.func})]))]),T0={Fade:150,Collapse:350,Modal:300,Carousel:600,Offcanvas:300},C0=["in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","onEnter","onEntering","onEntered","onExit","onExiting","onExited"],Mg={ENTERING:"entering",ENTERED:"entered",EXITING:"exiting",EXITED:"exited"},jt={esc:27,space:32,enter:13,tab:9,up:38,down:40,home:36,end:35,n:78,p:80},rre=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Gk=!!(typeof window<"u"&&window.document&&window.document.createElement);function ire(e){return e&&vf(e)==="object"?"current"in e:!1}function lB(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}function q2(e){var t=vf(e);return e!=null&&(t==="object"||t==="function")}function NR(e){var t=vf(e),n=0/0;if(t==="number")return e;if(t==="symbol"||t==="object"&&lB(e)==="[object Symbol]")return n;if(q2(e)){var r=typeof e.valueOf=="function"?e.valueOf():e;e=q2(r)?"".concat(r):r}if(t!=="string")return e===0?e:+e;e=e.replace(/^\s+|\s+$/g,"");var i=/^0b[01]+$/i.test(e);return i||/^0o[0-7]+$/i.test(e)?parseInt(e.slice(2),i?2:8):/^[-+]0x[0-9a-f]+$/i.test(e)?n:+e}function ore(e){if(!q2(e))return!1;var t=lB(e);return t==="[object Function]"||t==="[object AsyncFunction]"||t==="[object GeneratorFunction]"||t==="[object Proxy]"}function are(e){if(ire(e))return e.current;if(ore(e))return e();if(typeof e=="string"&&Gk){var t=document.querySelectorAll(e);if(t.length||(t=document.querySelectorAll("#".concat(e))),!t.length)throw new Error("The target '".concat(e,"' could not be identified in the dom, tip: check spelling"));return t}return e}function MR(e){return e===null?!1:Array.isArray(e)||Gk&&typeof e.length=="number"}function Qh(e,t){var n=are(e);return t?MR(n)?n:n===null?[]:[n]:MR(n)?n[0]:n}var sre=["a[href]","area[href]","input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","object","embed","[tabindex]:not(.modal):not(.offcanvas)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'],lre=["className","cssModule","noGutters","tag","widths"];function K2(){return K2=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function cre(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}var fre=["xs","sm","md","lg","xl","xxl"],ic=U.oneOfType([U.number,U.string]),dre={tag:dt,noGutters:sB(U.bool,"Please use Bootstrap 5 gutter utility classes. https://getbootstrap.com/docs/5.0/layout/gutters/"),className:U.string,cssModule:U.object,xs:ic,sm:ic,md:ic,lg:ic,xl:ic,xxl:ic,widths:U.array};function Pr(e){var t=e.className,n=e.cssModule,r=e.noGutters,i=e.tag,o=i===void 0?"div":i,a=e.widths,s=a===void 0?fre:a,l=ure(e,lre),u=[];s.forEach(function(d,p){var m=e[d];if(delete l[d],!!m){var v=!p;u.push(v?"row-cols-".concat(m):"row-cols-".concat(d,"-").concat(m))}});var f=qe(Qe(t,r?"gx-0":null,"row",u),n);return M.createElement(o,K2({},l,{className:f}))}Pr.propTypes=dre;var pre=["expand","className","cssModule","light","dark","fixed","sticky","color","container","tag","children"];function Z2(){return Z2=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function mre(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}var vre={children:U.node,className:U.string,color:U.string,container:U.oneOfType([U.bool,U.string]),cssModule:U.object,dark:U.bool,expand:U.oneOfType([U.bool,U.string]),fixed:U.string,light:U.bool,role:U.string,sticky:U.string,tag:dt},gre=function(t){return t===!1?!1:t===!0||t==="xs"?"navbar-expand":"navbar-expand-".concat(t)};function uB(e){var t,n=e.expand,r=n===void 0?!1:n,i=e.className,o=e.cssModule,a=e.light,s=e.dark,l=e.fixed,u=e.sticky,f=e.color,d=e.container,p=d===void 0?"fluid":d,m=e.tag,v=m===void 0?"nav":m,g=e.children,x=hre(e,pre),b=qe(Qe(i,"navbar",gre(r),(t={"navbar-light":a,"navbar-dark":s},cO(t,"bg-".concat(f),f),cO(t,"fixed-".concat(l),l),cO(t,"sticky-".concat(u),u),t)),o),_=p&&p===!0?"container":"container-".concat(p);return M.createElement(v,Z2({},x,{className:b}),p?M.createElement("div",{className:_},g):g)}uB.propTypes=vre;var yre=["className","cssModule","tag"];function Q2(){return Q2=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function _re(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}var wre={className:U.string,cssModule:U.object,tag:dt};function cB(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"a":r,o=bre(e,yre),a=qe(Qe(t,"navbar-brand"),n);return M.createElement(i,Q2({},o,{className:a}))}cB.propTypes=wre;var xre=["className","cssModule","children","tag"];function X2(){return X2=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Tre(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}var Cre={className:U.string,cssModule:U.object,tag:dt,type:U.string,children:U.node};function fB(e){var t=e.className,n=e.cssModule,r=e.children,i=e.tag,o=i===void 0?"button":i,a=Ere(e,xre),s=qe(Qe(t,"navbar-toggler"),n);return M.createElement(o,X2({"aria-label":"Toggle navigation"},Ore({type:"button"},a),{className:s}),r||M.createElement("span",{className:qe("navbar-toggler-icon",n)}))}fB.propTypes=Cre;var kre=["className","cssModule","tabs","pills","vertical","horizontal","justified","fill","navbar","card","tag"];function J2(){return J2=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Pre(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}var Are={card:U.bool,className:U.string,cssModule:U.object,fill:U.bool,horizontal:U.oneOf(["center","end"]),justified:U.bool,navbar:U.bool,pills:U.bool,tabs:U.bool,tag:dt,vertical:U.oneOfType([U.bool,U.string])},Nre=function(t){return t===!1?!1:t===!0||t==="xs"?"flex-column":"flex-".concat(t,"-column")};function qk(e){var t=e.className,n=e.cssModule,r=e.tabs,i=e.pills,o=e.vertical,a=o===void 0?!1:o,s=e.horizontal,l=e.justified,u=e.fill,f=e.navbar,d=e.card,p=e.tag,m=p===void 0?"ul":p,v=jre(e,kre),g=qe(Qe(t,f?"navbar-nav":"nav",s?"justify-content-".concat(s):!1,Nre(a),{"nav-tabs":r,"card-header-tabs":d&&r,"nav-pills":i,"card-header-pills":d&&i,"nav-justified":l,"nav-fill":u}),n);return M.createElement(m,J2({},v,{className:g}))}qk.propTypes=Are;var Mre=["className","cssModule","active","tag"];function e1(){return e1=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Dre(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}var Lre={active:U.bool,className:U.string,cssModule:U.object,tag:dt};function Kk(e){var t=e.className,n=e.cssModule,r=e.active,i=e.tag,o=i===void 0?"li":i,a=Rre(e,Mre),s=qe(Qe(t,"nav-item",r?"active":!1),n);return M.createElement(o,e1({},a,{className:s}))}Kk.propTypes=Lre;function t1(e){"@babel/helpers - typeof";return t1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t1(e)}var Ire=["className","cssModule","active","tag","innerRef"];function n1(){return n1=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ure(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}function $re(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function DR(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function k0(e){return k0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},k0(e)}var Yre={active:U.bool,className:U.string,cssModule:U.object,disabled:U.bool,href:U.any,innerRef:U.oneOfType([U.object,U.func,U.string]),onClick:U.func,tag:dt},pB=function(e){zre(n,e);var t=Vre(n);function n(r){var i;return $re(this,n),i=t.call(this,r),i.onClick=i.onClick.bind(dB(i)),i}return Bre(n,[{key:"onClick",value:function(i){if(this.props.disabled){i.preventDefault();return}this.props.href==="#"&&i.preventDefault(),this.props.onClick&&this.props.onClick(i)}},{key:"render",value:function(){var i=this.props,o=i.className,a=i.cssModule,s=i.active,l=i.tag,u=l===void 0?"a":l,f=i.innerRef,d=Fre(i,Ire),p=qe(Qe(o,"nav-link",{disabled:d.disabled,active:s}),a);return M.createElement(u,n1({},d,{ref:f,onClick:this.onClick,className:p}))}}]),n}(M.Component);pB.propTypes=Yre;const hB=pB;var Gre=["className","cssModule","variant","innerRef"];function i1(){return i1=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Qre(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}var Xre={active:U.bool,"aria-label":U.string,onClick:U.func,variant:U.oneOf(["white"]),className:U.string,cssModule:U.object,innerRef:U.oneOfType([U.object,U.string,U.func])};function mB(e){var t=e.className;e.cssModule;var n=e.variant,r=e.innerRef,i=Zre(e,Gre),o=qe(Qe(t,"btn-close",n&&"btn-close-".concat(n)));return M.createElement("button",i1({ref:r,type:"button",className:o},qre({"aria-label":"close"},i)))}mB.propTypes=Xre;var Jre=["active","aria-label","block","className","close","cssModule","color","outline","size","tag","innerRef"];function o1(){return o1=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function tie(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}var nie={active:U.bool,"aria-label":U.string,block:U.bool,children:U.node,className:U.string,cssModule:U.object,close:U.bool,color:U.string,disabled:U.bool,innerRef:U.oneOfType([U.object,U.func,U.string]),onClick:U.func,outline:U.bool,size:U.string,tag:dt};function _t(e){var t=I.useCallback(function(_){if(e.disabled){_.preventDefault();return}if(e.onClick)return e.onClick(_)},[e.onClick,e.disabled]),n=e.active,r=e["aria-label"],i=e.block,o=e.className,a=e.close,s=e.cssModule,l=e.color,u=l===void 0?"secondary":l,f=e.outline,d=e.size,p=e.tag,m=p===void 0?"button":p,v=e.innerRef,g=eie(e,Jre);if(a)return M.createElement(mB,g);var x="btn".concat(f?"-outline":"","-").concat(u),b=qe(Qe(o,"btn",x,d?"btn-".concat(d):!1,i?"d-block w-100":!1,{active:n,disabled:e.disabled}),s);return g.href&&m==="button"&&(m="a"),M.createElement(m,o1({type:m==="button"&&g.onClick?"button":void 0},g,{className:b,ref:v,onClick:t,"aria-label":r}))}_t.propTypes=nie;var vB=I.createContext(),gB=I.createContext();function IR(e){var t=e.children,n=I.useState(null),r=n[0],i=n[1],o=I.useRef(!1);I.useEffect(function(){return function(){o.current=!0}},[]);var a=I.useCallback(function(s){o.current||i(s)},[]);return I.createElement(vB.Provider,{value:r},I.createElement(gB.Provider,{value:a},t))}var yB=function(t){return Array.isArray(t)?t[0]:t},bB=function(t){if(typeof t=="function"){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i"u")return!1;var t=fi(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function mie(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},o=t.elements[n];!Li(o)||!ea(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(a){var s=i[a];s===!1?o.removeAttribute(a):o.setAttribute(a,s===!0?"":s)}))})}function vie(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],o=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=a.reduce(function(l,u){return l[u]="",l},{});!Li(i)||!ea(i)||(Object.assign(i.style,s),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}const gie={name:"applyStyles",enabled:!0,phase:"write",fn:mie,effect:vie,requires:["computeStyles"]};function Wo(e){return e.split("-")[0]}var uu=Math.max,j0=Math.min,bf=Math.round;function s1(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function xB(){return!/^((?!chrome|android).)*safari/i.test(s1())}function _f(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&Li(e)&&(i=e.offsetWidth>0&&bf(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&bf(r.height)/e.offsetHeight||1);var a=Tu(e)?fi(e):window,s=a.visualViewport,l=!xB()&&n,u=(r.left+(l&&s?s.offsetLeft:0))/i,f=(r.top+(l&&s?s.offsetTop:0))/o,d=r.width/i,p=r.height/o;return{width:d,height:p,top:f,right:u+d,bottom:f+p,left:u,x:u,y:f}}function Xk(e){var t=_f(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function OB(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Qk(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ia(e){return fi(e).getComputedStyle(e)}function yie(e){return["table","td","th"].indexOf(ea(e))>=0}function dl(e){return((Tu(e)?e.ownerDocument:e.document)||window.document).documentElement}function J_(e){return ea(e)==="html"?e:e.assignedSlot||e.parentNode||(Qk(e)?e.host:null)||dl(e)}function BR(e){return!Li(e)||Ia(e).position==="fixed"?null:e.offsetParent}function bie(e){var t=/firefox/i.test(s1()),n=/Trident/i.test(s1());if(n&&Li(e)){var r=Ia(e);if(r.position==="fixed")return null}var i=J_(e);for(Qk(i)&&(i=i.host);Li(i)&&["html","body"].indexOf(ea(i))<0;){var o=Ia(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function fv(e){for(var t=fi(e),n=BR(e);n&&yie(n)&&Ia(n).position==="static";)n=BR(n);return n&&(ea(n)==="html"||ea(n)==="body"&&Ia(n).position==="static")?t:n||bie(e)||t}function Jk(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function oh(e,t,n){return uu(e,j0(t,n))}function _ie(e,t,n){var r=oh(e,t,n);return r>n?n:r}function SB(){return{top:0,right:0,bottom:0,left:0}}function EB(e){return Object.assign({},SB(),e)}function TB(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var wie=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,EB(typeof t!="number"?t:TB(t,cv))};function xie(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=Wo(n.placement),l=Jk(s),u=[Kr,Vi].indexOf(s)>=0,f=u?"height":"width";if(!(!o||!a)){var d=wie(i.padding,n),p=Xk(o),m=l==="y"?qr:Kr,v=l==="y"?zi:Vi,g=n.rects.reference[f]+n.rects.reference[l]-a[l]-n.rects.popper[f],x=a[l]-n.rects.reference[l],b=fv(o),_=b?l==="y"?b.clientHeight||0:b.clientWidth||0:0,w=g/2-x/2,O=d[m],E=_-p[f]-d[v],T=_/2-p[f]/2+w,k=oh(O,T,E),P=l;n.modifiersData[r]=(t={},t[P]=k,t.centerOffset=k-T,t)}}function Oie(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||OB(t.elements.popper,i)&&(t.elements.arrow=i))}const Sie={name:"arrow",enabled:!0,phase:"main",fn:xie,effect:Oie,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function wf(e){return e.split("-")[1]}var Eie={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Tie(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:bf(n*i)/i||0,y:bf(r*i)/i||0}}function zR(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,f=e.roundOffsets,d=e.isFixed,p=a.x,m=p===void 0?0:p,v=a.y,g=v===void 0?0:v,x=typeof f=="function"?f({x:m,y:g}):{x:m,y:g};m=x.x,g=x.y;var b=a.hasOwnProperty("x"),_=a.hasOwnProperty("y"),w=Kr,O=qr,E=window;if(u){var T=fv(n),k="clientHeight",P="clientWidth";if(T===fi(n)&&(T=dl(n),Ia(T).position!=="static"&&s==="absolute"&&(k="scrollHeight",P="scrollWidth")),T=T,i===qr||(i===Kr||i===Vi)&&o===Xh){O=zi;var D=d&&T===E&&E.visualViewport?E.visualViewport.height:T[k];g-=D-r.height,g*=l?1:-1}if(i===Kr||(i===qr||i===zi)&&o===Xh){w=Vi;var N=d&&T===E&&E.visualViewport?E.visualViewport.width:T[P];m-=N-r.width,m*=l?1:-1}}var F=Object.assign({position:s},u&&Eie),B=f===!0?Tie({x:m,y:g},fi(n)):{x:m,y:g};if(m=B.x,g=B.y,l){var Y;return Object.assign({},F,(Y={},Y[O]=_?"0":"",Y[w]=b?"0":"",Y.transform=(E.devicePixelRatio||1)<=1?"translate("+m+"px, "+g+"px)":"translate3d("+m+"px, "+g+"px, 0)",Y))}return Object.assign({},F,(t={},t[O]=_?g+"px":"",t[w]=b?m+"px":"",t.transform="",t))}function Cie(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,a=o===void 0?!0:o,s=n.roundOffsets,l=s===void 0?!0:s,u={placement:Wo(t.placement),variation:wf(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,zR(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,zR(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const kie={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Cie,data:{}};var Rg={passive:!0};function jie(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,a=r.resize,s=a===void 0?!0:a,l=fi(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach(function(f){f.addEventListener("scroll",n.update,Rg)}),s&&l.addEventListener("resize",n.update,Rg),function(){o&&u.forEach(function(f){f.removeEventListener("scroll",n.update,Rg)}),s&&l.removeEventListener("resize",n.update,Rg)}}const Pie={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:jie,data:{}};var Aie={left:"right",right:"left",bottom:"top",top:"bottom"};function ky(e){return e.replace(/left|right|bottom|top/g,function(t){return Aie[t]})}var Nie={start:"end",end:"start"};function VR(e){return e.replace(/start|end/g,function(t){return Nie[t]})}function ej(e){var t=fi(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function tj(e){return _f(dl(e)).left+ej(e).scrollLeft}function Mie(e,t){var n=fi(e),r=dl(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var u=xB();(u||!u&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+tj(e),y:l}}function Rie(e){var t,n=dl(e),r=ej(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=uu(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=uu(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+tj(e),l=-r.scrollTop;return Ia(i||n).direction==="rtl"&&(s+=uu(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}function nj(e){var t=Ia(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function CB(e){return["html","body","#document"].indexOf(ea(e))>=0?e.ownerDocument.body:Li(e)&&nj(e)?e:CB(J_(e))}function ah(e,t){var n;t===void 0&&(t=[]);var r=CB(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=fi(r),a=i?[o].concat(o.visualViewport||[],nj(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(ah(J_(a)))}function l1(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Die(e,t){var n=_f(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function HR(e,t,n){return t===_B?l1(Mie(e,n)):Tu(t)?Die(t,n):l1(Rie(dl(e)))}function Lie(e){var t=ah(J_(e)),n=["absolute","fixed"].indexOf(Ia(e).position)>=0,r=n&&Li(e)?fv(e):e;return Tu(r)?t.filter(function(i){return Tu(i)&&OB(i,r)&&ea(i)!=="body"}):[]}function Iie(e,t,n,r){var i=t==="clippingParents"?Lie(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce(function(l,u){var f=HR(e,u,r);return l.top=uu(f.top,l.top),l.right=j0(f.right,l.right),l.bottom=j0(f.bottom,l.bottom),l.left=uu(f.left,l.left),l},HR(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function kB(e){var t=e.reference,n=e.element,r=e.placement,i=r?Wo(r):null,o=r?wf(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(i){case qr:l={x:a,y:t.y-n.height};break;case zi:l={x:a,y:t.y+t.height};break;case Vi:l={x:t.x+t.width,y:s};break;case Kr:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var u=i?Jk(i):null;if(u!=null){var f=u==="y"?"height":"width";switch(o){case yf:l[u]=l[u]-(t[f]/2-n[f]/2);break;case Xh:l[u]=l[u]+(t[f]/2-n[f]/2);break}}return l}function Jh(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.strategy,a=o===void 0?e.strategy:o,s=n.boundary,l=s===void 0?rie:s,u=n.rootBoundary,f=u===void 0?_B:u,d=n.elementContext,p=d===void 0?dp:d,m=n.altBoundary,v=m===void 0?!1:m,g=n.padding,x=g===void 0?0:g,b=EB(typeof x!="number"?x:TB(x,cv)),_=p===dp?iie:dp,w=e.rects.popper,O=e.elements[v?_:p],E=Iie(Tu(O)?O:O.contextElement||dl(e.elements.popper),l,f,a),T=_f(e.elements.reference),k=kB({reference:T,element:w,strategy:"absolute",placement:i}),P=l1(Object.assign({},w,k)),D=p===dp?P:T,N={top:E.top-D.top+b.top,bottom:D.bottom-E.bottom+b.bottom,left:E.left-D.left+b.left,right:D.right-E.right+b.right},F=e.modifiersData.offset;if(p===dp&&F){var B=F[i];Object.keys(N).forEach(function(Y){var H=[Vi,zi].indexOf(Y)>=0?1:-1,Q=[qr,zi].indexOf(Y)>=0?"y":"x";N[Y]+=B[Q]*H})}return N}function Fie(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?wB:l,f=wf(r),d=f?s?$R:$R.filter(function(v){return wf(v)===f}):cv,p=d.filter(function(v){return u.indexOf(v)>=0});p.length===0&&(p=d);var m=p.reduce(function(v,g){return v[g]=Jh(e,{placement:g,boundary:i,rootBoundary:o,padding:a})[Wo(g)],v},{});return Object.keys(m).sort(function(v,g){return m[v]-m[g]})}function Uie(e){if(Wo(e)===Zk)return[];var t=ky(e);return[VR(e),t,VR(t)]}function $ie(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!0:a,l=n.fallbackPlacements,u=n.padding,f=n.boundary,d=n.rootBoundary,p=n.altBoundary,m=n.flipVariations,v=m===void 0?!0:m,g=n.allowedAutoPlacements,x=t.options.placement,b=Wo(x),_=b===x,w=l||(_||!v?[ky(x)]:Uie(x)),O=[x].concat(w).reduce(function(ee,oe){return ee.concat(Wo(oe)===Zk?Fie(t,{placement:oe,boundary:f,rootBoundary:d,padding:u,flipVariations:v,allowedAutoPlacements:g}):oe)},[]),E=t.rects.reference,T=t.rects.popper,k=new Map,P=!0,D=O[0],N=0;N=0,Q=H?"width":"height",Z=Jh(t,{placement:F,boundary:f,rootBoundary:d,altBoundary:p,padding:u}),te=H?Y?Vi:Kr:Y?zi:qr;E[Q]>T[Q]&&(te=ky(te));var X=ky(te),z=[];if(o&&z.push(Z[B]<=0),s&&z.push(Z[te]<=0,Z[X]<=0),z.every(function(ee){return ee})){D=F,P=!1;break}k.set(F,z)}if(P)for(var V=v?3:1,W=function(oe){var le=O.find(function(fe){var j=k.get(fe);if(j)return j.slice(0,oe).every(function(A){return A})});if(le)return D=le,"break"},re=V;re>0;re--){var q=W(re);if(q==="break")break}t.placement!==D&&(t.modifiersData[r]._skip=!0,t.placement=D,t.reset=!0)}}const Bie={name:"flip",enabled:!0,phase:"main",fn:$ie,requiresIfExists:["offset"],data:{_skip:!1}};function WR(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function YR(e){return[qr,Vi,zi,Kr].some(function(t){return e[t]>=0})}function zie(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=Jh(t,{elementContext:"reference"}),s=Jh(t,{altBoundary:!0}),l=WR(a,r),u=WR(s,i,o),f=YR(l),d=YR(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:f,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":d})}const Vie={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:zie};function Hie(e,t,n){var r=Wo(e),i=[Kr,qr].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[Kr,Vi].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function Wie(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,a=wB.reduce(function(f,d){return f[d]=Hie(d,t.rects,o),f},{}),s=a[t.placement],l=s.x,u=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}const Yie={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Wie};function Gie(e){var t=e.state,n=e.name;t.modifiersData[n]=kB({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const qie={name:"popperOffsets",enabled:!0,phase:"read",fn:Gie,data:{}};function Kie(e){return e==="x"?"y":"x"}function Zie(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!1:a,l=n.boundary,u=n.rootBoundary,f=n.altBoundary,d=n.padding,p=n.tether,m=p===void 0?!0:p,v=n.tetherOffset,g=v===void 0?0:v,x=Jh(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:f}),b=Wo(t.placement),_=wf(t.placement),w=!_,O=Jk(b),E=Kie(O),T=t.modifiersData.popperOffsets,k=t.rects.reference,P=t.rects.popper,D=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,N=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),F=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,B={x:0,y:0};if(T){if(o){var Y,H=O==="y"?qr:Kr,Q=O==="y"?zi:Vi,Z=O==="y"?"height":"width",te=T[O],X=te+x[H],z=te-x[Q],V=m?-P[Z]/2:0,W=_===yf?k[Z]:P[Z],re=_===yf?-P[Z]:-k[Z],q=t.elements.arrow,ee=m&&q?Xk(q):{width:0,height:0},oe=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:SB(),le=oe[H],fe=oe[Q],j=oh(0,k[Z],ee[Z]),A=w?k[Z]/2-V-j-le-N.mainAxis:W-j-le-N.mainAxis,$=w?-k[Z]/2+V+j+fe+N.mainAxis:re+j+fe+N.mainAxis,J=t.elements.arrow&&fv(t.elements.arrow),K=J?O==="y"?J.clientTop||0:J.clientLeft||0:0,se=(Y=F==null?void 0:F[O])!=null?Y:0,he=te+A-se-K,Ee=te+$-se,ue=oh(m?j0(X,he):X,te,m?uu(z,Ee):z);T[O]=ue,B[O]=ue-te}if(s){var ve,ge=O==="x"?qr:Kr,Oe=O==="x"?zi:Vi,Ce=T[E],ke=E==="y"?"height":"width",Pe=Ce+x[ge],ce=Ce-x[Oe],de=[qr,Kr].indexOf(b)!==-1,_e=(ve=F==null?void 0:F[E])!=null?ve:0,be=de?Pe:Ce-k[ke]-P[ke]-_e+N.altAxis,Se=de?Ce+k[ke]+P[ke]-_e-N.altAxis:ce,Ae=m&&de?_ie(be,Ce,Se):oh(m?be:Pe,Ce,m?Se:ce);T[E]=Ae,B[E]=Ae-Ce}t.modifiersData[r]=B}}const Qie={name:"preventOverflow",enabled:!0,phase:"main",fn:Zie,requiresIfExists:["offset"]};function Xie(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Jie(e){return e===fi(e)||!Li(e)?ej(e):Xie(e)}function eoe(e){var t=e.getBoundingClientRect(),n=bf(t.width)/e.offsetWidth||1,r=bf(t.height)/e.offsetHeight||1;return n!==1||r!==1}function toe(e,t,n){n===void 0&&(n=!1);var r=Li(t),i=Li(t)&&eoe(t),o=dl(t),a=_f(e,i,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((ea(t)!=="body"||nj(o))&&(s=Jie(t)),Li(t)?(l=_f(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=tj(o))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function noe(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function i(o){n.add(o.name);var a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&i(l)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function roe(e){var t=noe(e);return hie.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function ioe(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function ooe(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var GR={placement:"bottom",modifiers:[],strategy:"absolute"};function qR(){for(var e=arguments.length,t=new Array(e),n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Toe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}function Coe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function KR(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function P0(e){return P0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},P0(e)}var Moe={a11y:U.bool,disabled:U.bool,direction:U.oneOf(["up","down","start","end","left","right"]),group:U.bool,isOpen:U.bool,nav:U.bool,active:U.bool,size:U.string,tag:dt,toggle:U.func,children:U.node,className:U.string,cssModule:U.object,dropup:U.bool,inNavbar:U.bool,setActiveFromChild:U.bool,menuRole:U.oneOf(["listbox","menu"])},Roe={a11y:!0,isOpen:!1,direction:"down",nav:!1,active:!1,inNavbar:!1,setActiveFromChild:!1},Doe=[jt.space,jt.enter,jt.up,jt.down,jt.end,jt.home],ew=function(e){joe(n,e);var t=Poe(n);function n(r){var i;return Coe(this,n),i=t.call(this,r),i.addEvents=i.addEvents.bind(us(i)),i.handleDocumentClick=i.handleDocumentClick.bind(us(i)),i.handleKeyDown=i.handleKeyDown.bind(us(i)),i.removeEvents=i.removeEvents.bind(us(i)),i.toggle=i.toggle.bind(us(i)),i.handleMenuRef=i.handleMenuRef.bind(us(i)),i.handleToggleRef=i.handleToggleRef.bind(us(i)),i.containerRef=M.createRef(),i.menuRef=M.createRef(),i.toggleRef=M.createRef(),i}return koe(n,[{key:"componentDidMount",value:function(){this.handleProps()}},{key:"componentDidUpdate",value:function(i){this.props.isOpen!==i.isOpen&&this.handleProps()}},{key:"componentWillUnmount",value:function(){this.removeEvents()}},{key:"handleMenuRef",value:function(i){this.menuRef.current=i}},{key:"handleToggleRef",value:function(i){this.toggleRef.current=i}},{key:"handleDocumentClick",value:function(i){if(!(i&&(i.which===3||i.type==="keyup"&&i.which!==jt.tab))){var o=this.getContainer(),a=this.getMenu(),s=this.getToggle();if(s){var l=s.contains(i.target),u=a&&a.contains(i.target)&&a!==i.target,f=!1;o&&(f=o.classList.contains("input-group")&&o.classList.contains("dropdown")&&i.target.tagName==="INPUT"),!((l&&!f||u)&&(i.type!=="keyup"||i.which===jt.tab))&&this.toggle(i)}}}},{key:"handleKeyDown",value:function(i){var o=this,a=i.target.getAttribute("role")==="menuitem"||i.target.getAttribute("role")==="option",s=this.getMenuCtrl()===i.target,l=jt.tab===i.which;if(!(/input|textarea/i.test(i.target.tagName)||l&&!this.props.a11y||l&&!(a||s))&&((Doe.indexOf(i.which)!==-1||i.which>=48&&i.which<=90)&&i.preventDefault(),!this.props.disabled)){if(s)if([jt.space,jt.enter,jt.up,jt.down].indexOf(i.which)>-1)this.props.isOpen||this.toggle(i),setTimeout(function(){var _;return(_=o.getMenuItems()[0])===null||_===void 0?void 0:_.focus()});else if(this.props.isOpen&&l){var u;i.preventDefault(),(u=this.getMenuItems()[0])===null||u===void 0||u.focus()}else this.props.isOpen&&i.which===jt.esc&&this.toggle(i);if(this.props.isOpen&&a){if([jt.tab,jt.esc].indexOf(i.which)>-1)this.toggle(i),this.getMenuCtrl().focus();else if([jt.space,jt.enter].indexOf(i.which)>-1)i.target.click(),this.getMenuCtrl().focus();else if([jt.down,jt.up].indexOf(i.which)>-1||[jt.n,jt.p].indexOf(i.which)>-1&&i.ctrlKey){var f=this.getMenuItems(),d=f.indexOf(i.target);jt.up===i.which||jt.p===i.which&&i.ctrlKey?d=d!==0?d-1:f.length-1:(jt.down===i.which||jt.n===i.which&&i.ctrlKey)&&(d=d===f.length-1?0:d+1),f[d].focus()}else if(jt.end===i.which){var p=this.getMenuItems();p[p.length-1].focus()}else if(jt.home===i.which){var m=this.getMenuItems();m[0].focus()}else if(i.which>=48&&i.which<=90)for(var v=this.getMenuItems(),g=String.fromCharCode(i.which).toLowerCase(),x=0;x=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Foe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}function Uoe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ZR(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function A0(e){return A0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},A0(e)}var Woe={children:U.node,active:U.bool,disabled:U.bool,divider:U.bool,tag:dt,header:U.bool,onClick:U.func,className:U.string,cssModule:U.object,toggle:U.bool,text:U.bool},rj=function(e){Boe(n,e);var t=zoe(n);function n(r){var i;return Uoe(this,n),i=t.call(this,r),i.onClick=i.onClick.bind(m1(i)),i.getTabIndex=i.getTabIndex.bind(m1(i)),i}return $oe(n,[{key:"onClick",value:function(i){var o,a=this.props,s=a.disabled,l=a.header,u=a.divider,f=a.text;if(s||l||u||f){i.preventDefault();return}this.props.onClick&&this.props.onClick(i),(!((o=this.props.toggle)!==null&&o!==void 0)||o)&&this.context.toggle(i)}},{key:"getRole",value:function(){return this.context.menuRole==="listbox"?"option":"menuitem"}},{key:"getTabIndex",value:function(){var i=this.props,o=i.disabled,a=i.header,s=i.divider,l=i.text;return o||a||s||l?"-1":"0"}},{key:"render",value:function(){var i=this.getTabIndex(),o=i>-1?this.getRole():void 0,a=fl(this.props,["toggle"]),s=a.className,l=a.cssModule,u=a.divider,f=a.tag,d=f===void 0?"button":f,p=a.header,m=a.active,v=a.text,g=Ioe(a,Loe),x=qe(Qe(s,{disabled:g.disabled,"dropdown-item":!u&&!p&&!v,active:m,"dropdown-header":p,"dropdown-divider":u,"dropdown-item-text":v}),l);return d==="button"&&(p?d="h6":u?d="div":g.href?d="a":v&&(d="span")),M.createElement(d,p1({type:d==="button"&&(g.onClick||this.props.toggle)?"button":void 0},g,{tabIndex:i,role:o,className:x,onClick:this.onClick}))}}]),n}(M.Component);rj.propTypes=Woe;rj.contextType=em;const Re=rj;function v1(e){"@babel/helpers - typeof";return v1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},v1(e)}var Yoe=["className","cssModule","dark","end","right","tag","flip","modifiers","persist","strategy","container","updateOnSelect"];function N0(){return N0=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function eae(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}function tae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function XR(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function M0(e){return M0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},M0(e)}var lae={tag:dt,children:U.node.isRequired,dark:U.bool,end:U.bool,flip:U.bool,modifiers:U.array,className:U.string,cssModule:U.object,style:U.object,persist:U.bool,strategy:U.string,container:gf,updateOnSelect:U.bool,right:sB(U.bool,'Please use "end" instead.')},uae={up:"top",left:"left",right:"right",start:"left",end:"right",down:"bottom"},ij=function(e){rae(n,e);var t=iae(n);function n(){return tae(this,n),t.apply(this,arguments)}return nae(n,[{key:"getRole",value:function(){return this.context.menuRole==="listbox"?"listbox":"menu"}},{key:"render",value:function(){var i=this,o=this.props,a=o.className,s=o.cssModule,l=o.dark,u=o.end,f=o.right,d=o.tag,p=d===void 0?"div":d,m=o.flip,v=m===void 0?!0:m,g=o.modifiers,x=g===void 0?[]:g,b=o.persist,_=o.strategy,w=o.container,O=o.updateOnSelect,E=Joe(o,Yoe),T=qe(Qe(a,"dropdown-menu",{"dropdown-menu-dark":l,"dropdown-menu-end":u||f,show:this.context.isOpen}),s),k=p;if(b||this.context.isOpen&&!this.context.inNavbar){var P=uae[this.context.direction]||"bottom",D=u||f?"end":"start",N="".concat(P,"-").concat(D),F=[].concat(qoe(x),[{name:"flip",enabled:!!v}]),B={};b&&(B.display="block",B.visibility=this.context.isOpen?"visible":"hidden");var Y=M.createElement(jB,{placement:N,modifiers:F,strategy:_},function(Q){var Z=Q.ref,te=Q.style,X=Q.placement,z=Q.update,V=fO(fO(fO({},i.props.style),B),te),W=function(q){Z(q);var ee=i.context.onMenuRef;ee&&ee(q)};return M.createElement(k,N0({tabIndex:"-1",role:i.getRole(),ref:W},E,{style:V,"aria-hidden":!i.context.isOpen,className:T,"data-popper-placement":X,onClick:function(){return O&&z()}}))});return w?lu.createPortal(Y,Qh(w)):Y}var H=this.context.onMenuRef;return M.createElement(k,N0({tabIndex:"-1",role:this.getRole()},E,{ref:H,"aria-hidden":!this.context.isOpen,className:T,"data-popper-placement":E.placement,"data-bs-popper":"static"}))}}]),n}(M.Component);ij.propTypes=lae;ij.contextType=em;const vd=ij;function b1(e){"@babel/helpers - typeof";return b1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},b1(e)}var cae=["className","color","cssModule","caret","split","nav","tag","innerRef"];function _1(){return _1=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function pae(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}function hae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function JR(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function R0(e){return R0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},R0(e)}var _ae={caret:U.bool,color:U.string,children:U.node,className:U.string,cssModule:U.object,disabled:U.bool,onClick:U.func,"aria-haspopup":U.bool,split:U.bool,tag:dt,nav:U.bool,innerRef:U.oneOfType([U.object,U.string,U.func])},wae={color:"secondary","aria-haspopup":!0},tw=function(e){vae(n,e);var t=gae(n);function n(r){var i;return hae(this,n),i=t.call(this,r),i.onClick=i.onClick.bind(AB(i)),i}return mae(n,[{key:"onClick",value:function(i){if(this.props.disabled||this.context.disabled){i.preventDefault();return}this.props.nav&&!this.props.tag&&i.preventDefault(),this.props.onClick&&this.props.onClick(i),this.context.toggle(i)}},{key:"getRole",value:function(){return this.context.menuRole||this.props["aria-haspopup"]}},{key:"render",value:function(){var i=this,o=this.props,a=o.className,s=o.color,l=o.cssModule,u=o.caret,f=o.split,d=o.nav,p=o.tag,m=o.innerRef,v=dae(o,cae),g=v["aria-label"]||"Toggle Dropdown",x=qe(Qe(a,{"dropdown-toggle":u||f,"dropdown-toggle-split":f,"nav-link":d}),l),b=typeof v.children<"u"?v.children:M.createElement("span",{className:"visually-hidden"},g),_;d&&!p?(_="a",v.href="#"):p?_=p:(_=_t,v.color=s,v.cssModule=l);var w=function(E){var T=E.ref,k=function(D){T(D);var N=i.context.onToggleRef;N&&N(D)};return M.createElement(_,_1({},v,fae({},typeof _=="string"?"ref":"innerRef",k),{className:x,onClick:i.onClick,"aria-expanded":i.context.isOpen,"aria-haspopup":i.getRole(),children:b}))};return this.context.inNavbar?M.createElement(M.Fragment,null,w({ref:this.context.onToggleRef})):M.createElement(Ooe,{innerRef:m},w)}}]),n}(M.Component);tw.propTypes=_ae;tw.defaultProps=wae;tw.contextType=em;const gd=tw;function xae(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}function x1(e,t){return x1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},x1(e,t)}function Oae(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,x1(e,t)}const eD={disabled:!1},NB=M.createContext(null);var Fp="unmounted",Il="exited",Fl="entering",yc="entered",O1="exiting",qa=function(e){Oae(t,e);function t(r,i){var o;o=e.call(this,r,i)||this;var a=i,s=a&&!a.isMounting?r.enter:r.appear,l;return o.appearStatus=null,r.in?s?(l=Il,o.appearStatus=Fl):l=yc:r.unmountOnExit||r.mountOnEnter?l=Fp:l=Il,o.state={status:l},o.nextCallback=null,o}t.getDerivedStateFromProps=function(i,o){var a=i.in;return a&&o.status===Fp?{status:Il}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var o=null;if(i!==this.props){var a=this.state.status;this.props.in?a!==Fl&&a!==yc&&(o=Fl):(a===Fl||a===yc)&&(o=O1)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,o,a,s;return o=a=s=i,i!=null&&typeof i!="number"&&(o=i.exit,a=i.enter,s=i.appear!==void 0?i.appear:a),{exit:o,enter:a,appear:s}},n.updateStatus=function(i,o){i===void 0&&(i=!1),o!==null?(this.cancelNextCallback(),o===Fl?this.performEnter(i):this.performExit()):this.props.unmountOnExit&&this.state.status===Il&&this.setState({status:Fp})},n.performEnter=function(i){var o=this,a=this.props.enter,s=this.context?this.context.isMounting:i,l=this.props.nodeRef?[s]:[lu.findDOMNode(this),s],u=l[0],f=l[1],d=this.getTimeouts(),p=s?d.appear:d.enter;if(!i&&!a||eD.disabled){this.safeSetState({status:yc},function(){o.props.onEntered(u)});return}this.props.onEnter(u,f),this.safeSetState({status:Fl},function(){o.props.onEntering(u,f),o.onTransitionEnd(p,function(){o.safeSetState({status:yc},function(){o.props.onEntered(u,f)})})})},n.performExit=function(){var i=this,o=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:lu.findDOMNode(this);if(!o||eD.disabled){this.safeSetState({status:Il},function(){i.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:O1},function(){i.props.onExiting(s),i.onTransitionEnd(a.exit,function(){i.safeSetState({status:Il},function(){i.props.onExited(s)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,o){o=this.setNextCallback(o),this.setState(i,o)},n.setNextCallback=function(i){var o=this,a=!0;return this.nextCallback=function(s){a&&(a=!1,o.nextCallback=null,i(s))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(i,o){this.setNextCallback(o);var a=this.props.nodeRef?this.props.nodeRef.current:lu.findDOMNode(this),s=i==null&&!this.props.addEndListener;if(!a||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],u=l[0],f=l[1];this.props.addEndListener(u,f)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===Fp)return null;var o=this.props,a=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var s=xae(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return M.createElement(NB.Provider,{value:null},typeof a=="function"?a(i,s):M.cloneElement(M.Children.only(a),s))},t}(M.Component);qa.contextType=NB;qa.propTypes={};function oc(){}qa.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:oc,onEntering:oc,onEntered:oc,onExit:oc,onExiting:oc,onExited:oc};qa.UNMOUNTED=Fp;qa.EXITED=Il;qa.ENTERING=Fl;qa.ENTERED=yc;qa.EXITING=O1;const yd=qa;var Sae=["tag","baseClass","baseClassActive","className","cssModule","children","innerRef"];function D0(){return D0=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Tae(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}function tD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function tm(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Aae(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}function Nae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nD(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function I0(e){return I0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},I0(e)}function rD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function xf(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Wae(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}var Yae={body:U.bool,className:U.string,color:U.string,cssModule:U.object,innerRef:U.oneOfType([U.object,U.string,U.func]),inverse:U.bool,outline:U.bool,tag:dt};function di(e){var t=e.className,n=e.cssModule,r=e.color,i=e.body,o=e.inverse,a=e.outline,s=e.tag,l=s===void 0?"div":s,u=e.innerRef,f=Hae(e,Vae),d=qe(Qe(t,"card",o?"text-white":!1,i?"card-body":!1,r?"".concat(a?"border":"bg","-").concat(r):!1),n);return M.createElement(l,T1({},f,{className:d,ref:u}))}di.propTypes=Yae;var Gae=["className","cssModule","innerRef","tag"];function C1(){return C1=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Kae(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}var Zae={className:U.string,cssModule:U.object,innerRef:U.oneOfType([U.object,U.string,U.func]),tag:dt};function Of(e){var t=e.className,n=e.cssModule,r=e.innerRef,i=e.tag,o=i===void 0?"div":i,a=qae(e,Gae),s=qe(Qe(t,"card-body"),n);return M.createElement(o,C1({},a,{className:s,ref:r}))}Of.propTypes=Zae;var Qae=["className","cssModule","tag"];function k1(){return k1=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Jae(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}var ese={className:U.string,cssModule:U.object,tag:dt};function DB(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"div":r,o=Xae(e,Qae),a=qe(Qe(t,"card-footer"),n);return M.createElement(i,k1({},o,{className:a}))}DB.propTypes=ese;var tse=["className","cssModule","tag"];function j1(){return j1=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function rse(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}var ise={className:U.string,cssModule:U.object,tag:dt};function Sf(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"div":r,o=nse(e,tse),a=qe(Qe(t,"card-header"),n);return M.createElement(i,j1({},o,{className:a}))}Sf.propTypes=ise;var ose=["className","cssModule","tag"];function P1(){return P1=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function sse(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}var lse={className:U.string,cssModule:U.object,tag:dt};function LB(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"p":r,o=ase(e,ose),a=qe(Qe(t,"card-text"),n);return M.createElement(i,P1({},o,{className:a}))}LB.propTypes=lse;var use=["className","cssModule","tag"];function A1(){return A1=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function fse(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}var dse={className:U.string,cssModule:U.object,tag:dt};function IB(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"div":r,o=cse(e,use),a=qe(Qe(t,"card-title"),n);return M.createElement(i,A1({},o,{className:a}))}IB.propTypes=dse;function N1(e){"@babel/helpers - typeof";return N1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},N1(e)}var pse=["cssModule","children","isOpen","flip","target","offset","fallbackPlacements","placementPrefix","arrowClassName","hideArrow","popperClassName","tag","container","modifiers","strategy","boundariesElement","onClosed","fade","transition","placement"];function M1(){return M1=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function bse(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}function _se(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oD(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function F0(e){return F0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},F0(e)}function aD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Py(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function U0(e){return U0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},U0(e)}var sj={children:U.oneOfType([U.node,U.func]),placement:U.oneOf(rre),target:gf.isRequired,container:gf,isOpen:U.bool,disabled:U.bool,hideArrow:U.bool,boundariesElement:U.oneOfType([U.string,Yk]),className:U.string,innerClassName:U.string,arrowClassName:U.string,popperClassName:U.string,cssModule:U.object,toggle:U.func,autohide:U.bool,placementPrefix:U.string,delay:U.oneOfType([U.shape({show:U.number,hide:U.number}),U.number]),modifiers:U.array,strategy:U.string,offset:U.arrayOf(U.number),innerRef:U.oneOfType([U.func,U.string,U.object]),trigger:U.string,fade:U.bool,flip:U.bool},FB={show:0,hide:50},Ise={isOpen:!1,hideArrow:!1,autohide:!1,delay:FB,toggle:function(){},trigger:"click",fade:!0};function UB(e,t){return t&&(e===t||t.contains(e))}function lD(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return t&&t.length&&t.filter(function(n){return UB(e,n)})[0]}var lj=function(e){Mse(n,e);var t=Rse(n);function n(r){var i;return Ase(this,n),i=t.call(this,r),i._targets=[],i.currentTargetElement=null,i.addTargetEvents=i.addTargetEvents.bind(ti(i)),i.handleDocumentClick=i.handleDocumentClick.bind(ti(i)),i.removeTargetEvents=i.removeTargetEvents.bind(ti(i)),i.toggle=i.toggle.bind(ti(i)),i.showWithDelay=i.showWithDelay.bind(ti(i)),i.hideWithDelay=i.hideWithDelay.bind(ti(i)),i.onMouseOverTooltipContent=i.onMouseOverTooltipContent.bind(ti(i)),i.onMouseLeaveTooltipContent=i.onMouseLeaveTooltipContent.bind(ti(i)),i.show=i.show.bind(ti(i)),i.hide=i.hide.bind(ti(i)),i.onEscKeyDown=i.onEscKeyDown.bind(ti(i)),i.getRef=i.getRef.bind(ti(i)),i.state={isOpen:r.isOpen},i._isMounted=!1,i}return Nse(n,[{key:"componentDidMount",value:function(){this._isMounted=!0,this.updateTarget()}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.removeTargetEvents(),this._targets=null,this.clearShowTimeout(),this.clearHideTimeout()}},{key:"handleDocumentClick",value:function(i){var o=this.props.trigger.split(" ");o.indexOf("legacy")>-1&&(this.props.isOpen||lD(i.target,this._targets))?(this._hideTimeout&&this.clearHideTimeout(),this.props.isOpen&&!UB(i.target,this._popover)?this.hideWithDelay(i):this.props.isOpen||this.showWithDelay(i)):o.indexOf("click")>-1&&lD(i.target,this._targets)&&(this._hideTimeout&&this.clearHideTimeout(),this.props.isOpen?this.hideWithDelay(i):this.showWithDelay(i))}},{key:"onMouseOverTooltipContent",value:function(){this.props.trigger.indexOf("hover")>-1&&!this.props.autohide&&(this._hideTimeout&&this.clearHideTimeout(),this.state.isOpen&&!this.props.isOpen&&this.toggle())}},{key:"onMouseLeaveTooltipContent",value:function(i){this.props.trigger.indexOf("hover")>-1&&!this.props.autohide&&(this._showTimeout&&this.clearShowTimeout(),i.persist(),this._hideTimeout=setTimeout(this.hide.bind(this,i),this.getDelay("hide")))}},{key:"onEscKeyDown",value:function(i){i.key==="Escape"&&this.hide(i)}},{key:"getRef",value:function(i){var o=this.props.innerRef;o&&(typeof o=="function"?o(i):nm(o)==="object"&&(o.current=i)),this._popover=i}},{key:"getDelay",value:function(i){var o=this.props.delay;return nm(o)==="object"?isNaN(o[i])?FB[i]:o[i]:o}},{key:"getCurrentTarget",value:function(i){if(!i)return null;var o=this._targets.indexOf(i);return o>=0?this._targets[o]:this.getCurrentTarget(i.parentElement)}},{key:"show",value:function(i){if(!this.props.isOpen){if(this.clearShowTimeout(),this.currentTargetElement=i?i.currentTarget||this.getCurrentTarget(i.target):null,i&&i.composedPath&&typeof i.composedPath=="function"){var o=i.composedPath();this.currentTargetElement=o&&o[0]||this.currentTargetElement}this.toggle(i)}}},{key:"showWithDelay",value:function(i){this._hideTimeout&&this.clearHideTimeout(),this._showTimeout=setTimeout(this.show.bind(this,i),this.getDelay("show"))}},{key:"hide",value:function(i){this.props.isOpen&&(this.clearHideTimeout(),this.currentTargetElement=null,this.toggle(i))}},{key:"hideWithDelay",value:function(i){this._showTimeout&&this.clearShowTimeout(),this._hideTimeout=setTimeout(this.hide.bind(this,i),this.getDelay("hide"))}},{key:"clearShowTimeout",value:function(){clearTimeout(this._showTimeout),this._showTimeout=void 0}},{key:"clearHideTimeout",value:function(){clearTimeout(this._hideTimeout),this._hideTimeout=void 0}},{key:"addEventOnTargets",value:function(i,o,a){this._targets.forEach(function(s){s.addEventListener(i,o,a)})}},{key:"removeEventOnTargets",value:function(i,o,a){this._targets.forEach(function(s){s.removeEventListener(i,o,a)})}},{key:"addTargetEvents",value:function(){if(this.props.trigger){var i=this.props.trigger.split(" ");i.indexOf("manual")===-1&&((i.indexOf("click")>-1||i.indexOf("legacy")>-1)&&document.addEventListener("click",this.handleDocumentClick,!0),this._targets&&this._targets.length&&(i.indexOf("hover")>-1&&(this.addEventOnTargets("mouseover",this.showWithDelay,!0),this.addEventOnTargets("mouseout",this.hideWithDelay,!0)),i.indexOf("focus")>-1&&(this.addEventOnTargets("focusin",this.show,!0),this.addEventOnTargets("focusout",this.hide,!0)),this.addEventOnTargets("keydown",this.onEscKeyDown,!0)))}}},{key:"removeTargetEvents",value:function(){this._targets&&(this.removeEventOnTargets("mouseover",this.showWithDelay,!0),this.removeEventOnTargets("mouseout",this.hideWithDelay,!0),this.removeEventOnTargets("keydown",this.onEscKeyDown,!0),this.removeEventOnTargets("focusin",this.show,!0),this.removeEventOnTargets("focusout",this.hide,!0)),document.removeEventListener("click",this.handleDocumentClick,!0)}},{key:"updateTarget",value:function(){var i=Qh(this.props.target,!0);i!==this._targets&&(this.removeTargetEvents(),this._targets=i?Array.from(i):[],this.currentTargetElement=this.currentTargetElement||this._targets[0],this.addTargetEvents())}},{key:"toggle",value:function(i){return this.props.disabled||!this._isMounted?i&&i.preventDefault():this.props.toggle(i)}},{key:"render",value:function(){var i=this;this.props.isOpen&&this.updateTarget();var o=this.currentTargetElement||this._targets[0];if(!o)return null;var a=this.props,s=a.className,l=a.cssModule,u=a.innerClassName,f=a.isOpen,d=a.hideArrow,p=a.boundariesElement,m=a.placement,v=a.placementPrefix,g=a.arrowClassName,x=a.popperClassName,b=a.container,_=a.modifiers,w=a.strategy,O=a.offset,E=a.fade,T=a.flip,k=a.children,P=fl(this.props,Object.keys(sj)),D=qe(x,l),N=qe(u,l);return M.createElement(Pse,{className:s,target:o,isOpen:f,hideArrow:d,boundariesElement:p,placement:m,placementPrefix:v,arrowClassName:g,popperClassName:D,container:b,modifiers:_,strategy:w,offset:O,cssModule:l,fade:E,flip:T},function(F){var B=F.update;return M.createElement("div",L1({},P,{ref:i.getRef,className:N,role:"tooltip",onMouseOver:i.onMouseOverTooltipContent,onMouseLeave:i.onMouseLeaveTooltipContent,onKeyDown:i.onEscKeyDown}),typeof k=="function"?k({update:B}):k)})}}],[{key:"getDerivedStateFromProps",value:function(i,o){return i.isOpen&&!o.isOpen?{isOpen:i.isOpen}:null}}]),n}(M.Component);lj.propTypes=sj;lj.defaultProps=Ise;const Fse=lj;var Use=["children","className","barClassName","cssModule","value","min","max","animated","striped","color","bar","multi","tag","style","barStyle","barAriaValueText","barAriaLabelledBy"];function $0(){return $0=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function zse(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}var Vse={animated:U.bool,bar:U.bool,barAriaLabelledBy:U.string,barAriaValueText:U.string,barClassName:U.string,barStyle:U.object,children:U.node,className:U.string,cssModule:U.object,color:U.string,max:U.oneOfType([U.string,U.number]),min:U.oneOfType([U.string,U.number]),multi:U.bool,striped:U.bool,style:U.object,tag:dt,value:U.oneOfType([U.string,U.number])};function $B(e){var t=e.children,n=e.className,r=e.barClassName,i=e.cssModule,o=e.value,a=o===void 0?0:o,s=e.min,l=s===void 0?0:s,u=e.max,f=u===void 0?100:u,d=e.animated,p=e.striped,m=e.color,v=e.bar,g=e.multi,x=e.tag,b=x===void 0?"div":x,_=e.style,w=_===void 0?{}:_,O=e.barStyle,E=O===void 0?{}:O,T=e.barAriaValueText,k=e.barAriaLabelledBy,P=Bse(e,Use),D=NR(a)/NR(f)*100,N=qe(Qe(n,"progress"),i),F=qe(Qe("progress-bar",v&&n||r,d?"progress-bar-animated":null,m?"bg-".concat(m):null,p||d?"progress-bar-striped":null),i),B={className:F,style:dO(dO(dO({},v?w:{}),E),{},{width:"".concat(D,"%")}),role:"progressbar","aria-valuenow":a,"aria-valuemin":l,"aria-valuemax":f,"aria-valuetext":T,"aria-labelledby":k,children:t};return v?M.createElement(b,$0({},P,B)):M.createElement(b,$0({},P,{style:w,className:N}),g?t:M.createElement("div",B))}$B.propTypes=Vse;function F1(e){"@babel/helpers - typeof";return F1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},F1(e)}function Hse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cD(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function B0(e){return B0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},B0(e)}var Qse={children:U.node.isRequired,node:U.any},BB=function(e){Yse(n,e);var t=Gse(n);function n(){return Hse(this,n),t.apply(this,arguments)}return Wse(n,[{key:"componentWillUnmount",value:function(){this.defaultNode&&document.body.removeChild(this.defaultNode),this.defaultNode=null}},{key:"render",value:function(){return Gk?(!this.props.node&&!this.defaultNode&&(this.defaultNode=document.createElement("div"),document.body.appendChild(this.defaultNode)),lu.createPortal(this.props.children,this.props.node||this.defaultNode)):null}}]),n}(M.Component);BB.propTypes=Qse;const Xse=BB;function $1(e){"@babel/helpers - typeof";return $1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$1(e)}function fD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function sc(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function z0(e){return z0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},z0(e)}function V0(){}var pD=U.shape(Ar.propTypes),zB={autoFocus:U.bool,backdrop:U.oneOfType([U.bool,U.oneOf(["static"])]),backdropClassName:U.string,backdropTransition:pD,centered:U.bool,children:U.node,contentClassName:U.string,className:U.string,container:gf,cssModule:U.object,external:U.node,fade:U.bool,fullscreen:U.oneOfType([U.bool,U.oneOf(["sm","md","lg","xl"])]),innerRef:U.oneOfType([U.object,U.string,U.func]),isOpen:U.bool,keyboard:U.bool,labelledBy:U.string,modalClassName:U.string,modalTransition:pD,onClosed:U.func,onEnter:U.func,onExit:U.func,onOpened:U.func,returnFocusAfterClose:U.bool,role:U.string,scrollable:U.bool,size:U.string,toggle:U.func,trapFocus:U.bool,unmountOnClose:U.bool,wrapClassName:U.string,zIndex:U.oneOfType([U.number,U.string])},ole=Object.keys(zB),ale={isOpen:!1,autoFocus:!0,centered:!1,scrollable:!1,role:"dialog",backdrop:!0,keyboard:!0,zIndex:1050,fade:!0,onOpened:V0,onClosed:V0,modalTransition:{timeout:T0.Modal},backdropTransition:{mountOnEnter:!0,timeout:T0.Fade},unmountOnClose:!0,returnFocusAfterClose:!0,container:"body",trapFocus:!1},pv=function(e){tle(n,e);var t=nle(n);function n(r){var i;return Jse(this,n),i=t.call(this,r),i._element=null,i._originalBodyPadding=null,i.getFocusableChildren=i.getFocusableChildren.bind(Ei(i)),i.handleBackdropClick=i.handleBackdropClick.bind(Ei(i)),i.handleBackdropMouseDown=i.handleBackdropMouseDown.bind(Ei(i)),i.handleEscape=i.handleEscape.bind(Ei(i)),i.handleStaticBackdropAnimation=i.handleStaticBackdropAnimation.bind(Ei(i)),i.handleTab=i.handleTab.bind(Ei(i)),i.onOpened=i.onOpened.bind(Ei(i)),i.onClosed=i.onClosed.bind(Ei(i)),i.manageFocusAfterClose=i.manageFocusAfterClose.bind(Ei(i)),i.clearBackdropAnimationTimeout=i.clearBackdropAnimationTimeout.bind(Ei(i)),i.trapFocus=i.trapFocus.bind(Ei(i)),i.state={isOpen:!1,showStaticBackdropAnimation:!1},i}return ele(n,[{key:"componentDidMount",value:function(){var i=this.props,o=i.isOpen,a=i.autoFocus,s=i.onEnter;o&&(this.init(),this.setState({isOpen:!0}),a&&this.setFocus()),s&&s(),document.addEventListener("focus",this.trapFocus,!0),this._isMounted=!0}},{key:"componentDidUpdate",value:function(i,o){if(this.props.isOpen&&!i.isOpen){this.init(),this.setState({isOpen:!0});return}this.props.autoFocus&&this.state.isOpen&&!o.isOpen&&this.setFocus(),this._element&&i.zIndex!==this.props.zIndex&&(this._element.style.zIndex=this.props.zIndex)}},{key:"componentWillUnmount",value:function(){this.clearBackdropAnimationTimeout(),this.props.onExit&&this.props.onExit(),this._element&&(this.destroy(),(this.props.isOpen||this.state.isOpen)&&this.close()),document.removeEventListener("focus",this.trapFocus,!0),this._isMounted=!1}},{key:"handleBackdropClick",value:function(i){if(i.target===this._mouseDownElement){i.stopPropagation();var o=this._dialog?this._dialog.parentNode:null;if(o&&i.target===o&&this.props.backdrop==="static"&&this.handleStaticBackdropAnimation(),!this.props.isOpen||this.props.backdrop!==!0)return;o&&i.target===o&&this.props.toggle&&this.props.toggle(i)}}},{key:"handleTab",value:function(i){if(i.which===9&&!(this.modalIndex0&&(i.preventDefault(),i.stopPropagation(),o[0].focus())}}},{key:"init",value:function(){try{this._triggeringElement=document.activeElement}catch{this._triggeringElement=null}this._element||(this._element=document.createElement("div"),this._element.setAttribute("tabindex","-1"),this._element.style.position="relative",this._element.style.zIndex=this.props.zIndex,this._mountContainer=Qh(this.props.container),this._mountContainer.appendChild(this._element)),this._originalBodyPadding=Jne(),n.openCount<1&&(n.originalBodyOverflow=window.getComputedStyle(document.body).overflow),ere(),n.openCount===0&&(document.body.className=Qe(document.body.className,qe("modal-open",this.props.cssModule)),document.body.style.overflow="hidden"),this.modalIndex=n.openCount,n.openCount+=1}},{key:"destroy",value:function(){this._element&&(this._mountContainer.removeChild(this._element),this._element=null),this.manageFocusAfterClose()}},{key:"manageFocusAfterClose",value:function(){if(this._triggeringElement){var i=this.props.returnFocusAfterClose;this._triggeringElement.focus&&i&&this._triggeringElement.focus(),this._triggeringElement=null}}},{key:"close",value:function(){if(n.openCount<=1){var i=qe("modal-open",this.props.cssModule),o=new RegExp("(^| )".concat(i,"( |$)"));document.body.className=document.body.className.replace(o," ").trim(),document.body.style.overflow=n.originalBodyOverflow}this.manageFocusAfterClose(),n.openCount=Math.max(0,n.openCount-1),oB(this._originalBodyPadding)}},{key:"clearBackdropAnimationTimeout",value:function(){this._backdropAnimationTimeout&&(clearTimeout(this._backdropAnimationTimeout),this._backdropAnimationTimeout=void 0)}},{key:"renderModalDialog",value:function(){var i,o=this,a=fl(this.props,ole),s="modal-dialog";return M.createElement("div",sh({},a,{className:qe(Qe(s,this.props.className,(i={},bc(i,"modal-".concat(this.props.size),this.props.size),bc(i,"".concat(s,"-centered"),this.props.centered),bc(i,"".concat(s,"-scrollable"),this.props.scrollable),bc(i,"modal-fullscreen",this.props.fullscreen===!0),bc(i,"modal-fullscreen-".concat(this.props.fullscreen,"-down"),typeof this.props.fullscreen=="string"),i)),this.props.cssModule),role:"document",ref:function(u){o._dialog=u}}),M.createElement("div",{className:qe(Qe("modal-content",this.props.contentClassName),this.props.cssModule)},this.props.children))}},{key:"render",value:function(){var i=this.props.unmountOnClose;if(this._element&&(this.state.isOpen||!i)){var o=!!this._element&&!this.state.isOpen&&!i;this._element.style.display=o?"none":"block";var a=this.props,s=a.wrapClassName,l=a.modalClassName,u=a.backdropClassName,f=a.cssModule,d=a.isOpen,p=a.backdrop,m=a.role,v=a.labelledBy,g=a.external,x=a.innerRef,b={onClick:this.handleBackdropClick,onMouseDown:this.handleBackdropMouseDown,onKeyUp:this.handleEscape,onKeyDown:this.handleTab,style:{display:"block"},"aria-labelledby":v,"aria-modal":!0,role:m,tabIndex:"-1"},_=this.props.fade,w=sc(sc(sc({},Ar.defaultProps),this.props.modalTransition),{},{baseClass:_?this.props.modalTransition.baseClass:"",timeout:_?this.props.modalTransition.timeout:0}),O=sc(sc(sc({},Ar.defaultProps),this.props.backdropTransition),{},{baseClass:_?this.props.backdropTransition.baseClass:"",timeout:_?this.props.backdropTransition.timeout:0}),E=p&&(_?M.createElement(Ar,sh({},O,{in:d&&!!p,cssModule:f,className:qe(Qe("modal-backdrop",u),f)})):M.createElement("div",{className:qe(Qe("modal-backdrop","show",u),f)}));return M.createElement(Xse,{node:this._element},M.createElement("div",{className:qe(s)},M.createElement(Ar,sh({},b,w,{in:d,onEntered:this.onOpened,onExited:this.onClosed,cssModule:f,className:qe(Qe("modal",l,this.state.showStaticBackdropAnimation&&"modal-static"),f),innerRef:x}),g,this.renderModalDialog()),E))}return null}}]),n}(M.Component);pv.propTypes=zB;pv.defaultProps=ale;pv.openCount=0;pv.originalBodyOverflow=null;const Ka=pv;var sle=["className","cssModule","children","toggle","tag","wrapTag","closeAriaLabel","close"];function z1(){return z1=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ule(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}var cle={children:U.node,className:U.string,close:U.object,closeAriaLabel:U.string,cssModule:U.object,tag:dt,toggle:U.func,wrapTag:dt};function Za(e){var t,n=e.className,r=e.cssModule,i=e.children,o=e.toggle,a=e.tag,s=a===void 0?"h5":a,l=e.wrapTag,u=l===void 0?"div":l,f=e.closeAriaLabel,d=f===void 0?"Close":f,p=e.close,m=lle(e,sle),v=qe(Qe(n,"modal-header"),r);return!p&&o&&(t=M.createElement("button",{type:"button",onClick:o,className:qe("btn-close",r),"aria-label":d})),M.createElement(u,z1({},m,{className:v}),M.createElement(s,{className:qe("modal-title",r)},i),p||t)}Za.propTypes=cle;var fle=["className","cssModule","tag"];function V1(){return V1=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ple(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}var hle={className:U.string,cssModule:U.object,tag:dt};function aa(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"div":r,o=dle(e,fle),a=qe(Qe(t,"modal-body"),n);return M.createElement(i,V1({},o,{className:a}))}aa.propTypes=hle;var mle=["className","cssModule","tag"];function H1(){return H1=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function gle(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}var yle={className:U.string,cssModule:U.object,tag:dt};function Uu(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"div":r,o=vle(e,mle),a=qe(Qe(t,"modal-footer"),n);return M.createElement(i,H1({},o,{className:a}))}Uu.propTypes=yle;function W1(){return W1=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function xle(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}var Ole={className:U.string,cssModule:U.object,flush:U.bool,horizontal:U.oneOfType([U.bool,U.string]),numbered:U.bool,tag:dt},Sle=function(t){return t===!1?!1:t===!0||t==="xs"?"list-group-horizontal":"list-group-horizontal-".concat(t)};function VB(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"ul":r,o=e.flush,a=e.horizontal,s=a===void 0?!1:a,l=e.numbered,u=l===void 0?!1:l,f=wle(e,_le),d=qe(Qe(t,"list-group",o?"list-group-flush":Sle(s),{"list-group-numbered":u}),n);return M.createElement(i,Y1({},f,{className:d}))}VB.propTypes=Ole;var Ele=["className","cssModule","row","disabled","check","inline","floating","noMargin","tag","switch"];function G1(){return G1=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Cle(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}var kle={children:U.node,row:U.bool,check:U.bool,switch:U.bool,inline:U.bool,floating:U.bool,noMargin:U.bool,disabled:U.bool,tag:dt,className:U.string,cssModule:U.object};function zr(e){var t=e.className,n=e.cssModule,r=e.row,i=e.disabled,o=e.check,a=e.inline,s=e.floating,l=e.noMargin,u=e.tag,f=u===void 0?"div":u,d=e.switch,p=Tle(e,Ele),m=o||d,v=qe(Qe(t,r?"row":!1,m?"form-check":!1,d?"form-switch":!1,m||l?!1:"mb-3",m&&a?"form-check-inline":!1,m&&i?"disabled":!1,s&&"form-floating"),n);return f==="fieldset"&&(p.disabled=i),M.createElement(f,G1({},p,{className:v}))}zr.propTypes=kle;function q1(e){"@babel/helpers - typeof";return q1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},q1(e)}var jle=["className","cssModule","type","bsSize","valid","invalid","tag","addon","plaintext","innerRef"];function K1(){return K1=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ale(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}function Nle(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hD(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function H0(e){return H0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},H0(e)}var Fle={children:U.node,type:U.string,size:U.oneOfType([U.number,U.string]),bsSize:U.string,valid:U.bool,invalid:U.bool,tag:dt,innerRef:U.oneOfType([U.object,U.func,U.string]),plaintext:U.bool,addon:U.bool,className:U.string,cssModule:U.object},HB=function(e){Rle(n,e);var t=Dle(n);function n(r){var i;return Nle(this,n),i=t.call(this,r),i.getRef=i.getRef.bind(Q1(i)),i.focus=i.focus.bind(Q1(i)),i}return Mle(n,[{key:"getRef",value:function(i){this.props.innerRef&&this.props.innerRef(i),this.ref=i}},{key:"focus",value:function(){this.ref&&this.ref.focus()}},{key:"render",value:function(){var i=this.props,o=i.className,a=i.cssModule,s=i.type,l=s===void 0?"text":s,u=i.bsSize,f=i.valid,d=i.invalid,p=i.tag,m=i.addon,v=i.plaintext,g=i.innerRef,x=Ple(i,jle),b=["switch","radio","checkbox"].indexOf(l)>-1,_=/\D/g,w=l==="textarea",O=l==="select",E=l==="range",T=p||(O||w?l:"input"),k="form-control";v?(k="".concat(k,"-plaintext"),T=p||"input"):E?k="form-range":O?k="form-select":b&&(m?k=null:k="form-check-input"),x.size&&_.test(x.size)&&(G2(`Please use the prop "bsSize" instead of the "size" to bootstrap's input sizing.`),u=x.size,delete x.size);var P=qe(Qe(o,d&&"is-invalid",f&&"is-valid",u?O?"form-select-".concat(u):"form-control-".concat(u):!1,k),a);return(T==="input"||p&&typeof p=="function")&&(x.type=l==="switch"?"checkbox":l),x.children&&!(v||l==="select"||typeof T!="string"||T==="select")&&(G2('Input with a type of "'.concat(l,'" cannot have children. Please use "value"/"defaultValue" instead.')),delete x.children),M.createElement(T,K1({},x,{ref:g,className:P,"aria-invalid":d}))}}]),n}(M.Component);HB.propTypes=Fle;const Cu=HB;var Ule=["className","cssModule","tag","type","size"];function W0(){return W0=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ble(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}var zle={className:U.string,cssModule:U.object,size:U.string,tag:dt,type:U.string};function nw(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"div":r;e.type;var o=e.size,a=$le(e,Ule),s=qe(Qe(t,"input-group",o?"input-group-".concat(o):null),n);return e.type==="dropdown"?M.createElement(dv,W0({},a,{className:s})):M.createElement(PB.Provider,{value:{insideInputGroup:!0}},M.createElement(i,W0({},a,{className:s})))}nw.propTypes=zle;var Vle=["className","listClassName","cssModule","size","tag","listTag","aria-label"];function X1(){return X1=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Yle(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}var Gle={children:U.node,className:U.string,listClassName:U.string,cssModule:U.object,size:U.string,tag:dt,listTag:dt,"aria-label":U.string};function uj(e){var t=e.className,n=e.listClassName,r=e.cssModule,i=e.size,o=e.tag,a=o===void 0?"nav":o,s=e.listTag,l=s===void 0?"ul":s,u=e["aria-label"],f=u===void 0?"pagination":u,d=Wle(e,Vle),p=qe(Qe(t),r),m=qe(Qe(n,"pagination",Hle({},"pagination-".concat(i),!!i)),r);return M.createElement(a,{className:p,"aria-label":f},M.createElement(l,X1({},d,{className:m})))}uj.propTypes=Gle;var qle=["active","className","cssModule","disabled","tag"];function J1(){return J1=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Zle(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}var Qle={active:U.bool,children:U.node,className:U.string,cssModule:U.object,disabled:U.bool,tag:dt};function cu(e){var t=e.active,n=e.className,r=e.cssModule,i=e.disabled,o=e.tag,a=o===void 0?"li":o,s=Kle(e,qle),l=qe(Qe(n,"page-item",{active:t,disabled:i}),r);return M.createElement(a,J1({},s,{className:l}))}cu.propTypes=Qle;var Xle=["className","cssModule","next","previous","first","last","tag"];function eE(){return eE=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function eue(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}var tue={"aria-label":U.string,children:U.node,className:U.string,cssModule:U.object,next:U.bool,previous:U.bool,first:U.bool,last:U.bool,tag:dt};function fu(e){var t=e.className,n=e.cssModule,r=e.next,i=e.previous,o=e.first,a=e.last,s=e.tag,l=s===void 0?"a":s,u=Jle(e,Xle),f=qe(Qe(t,"page-link"),n),d;i?d="Previous":r?d="Next":o?d="First":a&&(d="Last");var p=e["aria-label"]||d,m;i?m="‹":r?m="›":o?m="«":a&&(m="»");var v=e.children;return v&&Array.isArray(v)&&v.length===0&&(v=null),!u.href&&l==="a"&&(l="button"),(i||r||o||a)&&(v=[M.createElement("span",{"aria-hidden":"true",key:"caret"},v||m),M.createElement("span",{className:"visually-hidden",key:"ariaLabel"},p)]),M.createElement(l,eE({},u,{className:f,"aria-label":p}),v)}fu.propTypes=tue;var nue=["className","closeClassName","closeAriaLabel","cssModule","tag","color","isOpen","toggle","children","transition","fade","innerRef"];function tE(){return tE=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function oue(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}var aue={children:U.node,className:U.string,closeClassName:U.string,closeAriaLabel:U.string,color:U.string,cssModule:U.object,fade:U.bool,innerRef:U.oneOfType([U.object,U.string,U.func]),isOpen:U.bool,tag:dt,toggle:U.func,transition:U.shape(Ar.propTypes)};function WB(e){var t=e.className,n=e.closeClassName,r=e.closeAriaLabel,i=r===void 0?"Close":r,o=e.cssModule,a=e.tag,s=a===void 0?"div":a,l=e.color,u=l===void 0?"success":l,f=e.isOpen,d=f===void 0?!0:f,p=e.toggle,m=e.children,v=e.transition,g=v===void 0?pp(pp({},Ar.defaultProps),{},{unmountOnExit:!0}):v,x=e.fade,b=x===void 0?!0:x,_=e.innerRef,w=iue(e,nue),O=qe(Qe(t,"alert","alert-".concat(u),{"alert-dismissible":p}),o),E=qe(Qe("btn-close",n),o),T=pp(pp(pp({},Ar.defaultProps),g),{},{baseClass:b?g.baseClass:"",timeout:b?g.timeout:0});return M.createElement(Ar,tE({},w,T,{tag:s,className:O,in:d,role:"alert",innerRef:_}),p?M.createElement("button",{type:"button",className:E,"aria-label":i,onClick:p}):null,m)}WB.propTypes=aue;var sue=["className","cssModule","tag","active","disabled","action","color"];function nE(){return nE=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function uue(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}var cue={action:U.bool,active:U.bool,className:U.string,cssModule:U.object,color:U.string,disabled:U.bool,tag:dt},fue=function(t){t.preventDefault()};function YB(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"li":r,o=e.active,a=e.disabled,s=e.action,l=e.color,u=lue(e,sue),f=qe(Qe(t,o?"active":!1,a?"disabled":!1,s?"list-group-item-action":!1,l?"list-group-item-".concat(l):!1,"list-group-item"),n);return a&&(u.onClick=fue),M.createElement(i,nE({},u,{className:f}))}YB.propTypes=cue;function rE(e){"@babel/helpers - typeof";return rE=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rE(e)}function vD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function due(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Y0(e){return Y0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Y0(e)}var _ue=["defaultOpen"],mv=function(e){vue(n,e);var t=gue(n);function n(r){var i;return hue(this,n),i=t.call(this,r),i.state={isOpen:r.defaultOpen||!1},i.toggle=i.toggle.bind(GB(i)),i}return mue(n,[{key:"toggle",value:function(i){var o=this;this.setState(function(a){return{isOpen:!a.isOpen}},function(){o.props.onToggle&&o.props.onToggle(i,o.state.isOpen)})}},{key:"render",value:function(){return M.createElement(dv,iE({isOpen:this.state.isOpen,toggle:this.toggle},fl(this.props,_ue)))}}]),n}(I.Component);mv.propTypes=due({defaultOpen:U.bool,onToggle:U.func},dv.propTypes);function aE(e){"@babel/helpers - typeof";return aE=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},aE(e)}function yD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function wue(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function G0(e){return G0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},G0(e)}var jue=["defaultOpen"],Jr=function(e){Eue(n,e);var t=Tue(n);function n(r){var i;return Oue(this,n),i=t.call(this,r),i.state={isOpen:r.defaultOpen||!1},i.toggle=i.toggle.bind(qB(i)),i}return Sue(n,[{key:"toggle",value:function(){this.setState(function(i){return{isOpen:!i.isOpen}})}},{key:"render",value:function(){return M.createElement(hv,sE({isOpen:this.state.isOpen,toggle:this.toggle},fl(this.props,jue)))}}]),n}(I.Component);Jr.propTypes=wue({defaultOpen:U.bool},hv.propTypes);function KB(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t({error:"border-danger",default:""})[e],Aue=e=>({error:"text-danger",default:"text-muted"})[e],el=({className:e,children:t,loading:n=!1,type:r="default",fullWidth:i=!1})=>{const o=Ii({"col-md-12":i,"col-md-10 offset-md-1":!i});return y.jsx(Pr,{className:Ii("g-0",e),children:y.jsx("div",{className:o,children:y.jsx(di,{className:Pue(r),body:!0,children:y.jsxs("h3",{className:Ii("text-center mb-0",Aue(r)),children:[n&&y.jsx(Ne,{icon:_7,spin:!0}),n&&y.jsx("span",{className:"ms-2",children:t??"Loading..."}),!n&&t]})})})})},Qt=({title:e,children:t,bodyClassName:n,...r})=>y.jsxs(di,{...r,children:[e&&y.jsx(Sf,{role:"heading","aria-level":4,children:e}),y.jsx(Of,{className:n,children:t})]}),li=({children:e,type:t,className:n,small:r=!1})=>y.jsx(Pr,{className:n,children:y.jsx("div",{className:Ii({"col-md-10 offset-md-1":!r,"col-12":r}),children:y.jsx(Qt,{role:"document",className:Ii("text-center",{"bg-main":t==="success","bg-danger":t==="error","bg-warning":t==="warning","text-white":t!=="warning"}),bodyClassName:Ii({"p-2":r}),children:e})})});let Dg;const Nue=new Uint8Array(16);function Mue(){if(!Dg&&(Dg=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Dg))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Dg(Nue)}const or=[];for(let e=0;e<256;++e)or.push((e+256).toString(16).slice(1));function Rue(e,t=0){return or[e[t+0]]+or[e[t+1]]+or[e[t+2]]+or[e[t+3]]+"-"+or[e[t+4]]+or[e[t+5]]+"-"+or[e[t+6]]+or[e[t+7]]+"-"+or[e[t+8]]+or[e[t+9]]+"-"+or[e[t+10]]+or[e[t+11]]+or[e[t+12]]+or[e[t+13]]+or[e[t+14]]+or[e[t+15]]}const Due=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),_D={randomUUID:Due};function Lue(e,t,n){if(_D.randomUUID&&!t&&!e)return _D.randomUUID();e=e||{};const r=e.random||(e.rng||Mue)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(let i=0;i<16;++i)t[n+i]=r[i];return t}return Rue(r)}function Iue(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Fue(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var Uue=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),n=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var r=42;e[t]=r;for(t in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var i=Object.getOwnPropertySymbols(e);if(i.length!==1||i[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==r||o.enumerable!==!0)return!1}return!0},wD=typeof Symbol<"u"&&Symbol,$ue=Uue,Bue=function(){return typeof wD!="function"||typeof Symbol!="function"||typeof wD("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:$ue()},xD={foo:{}},zue=Object,Vue=function(){return{__proto__:xD}.foo===xD.foo&&!({__proto__:null}instanceof zue)},Hue="Function.prototype.bind called on incompatible ",pO=Array.prototype.slice,Wue=Object.prototype.toString,Yue="[object Function]",Gue=function(e){var t=this;if(typeof t!="function"||Wue.call(t)!==Yue)throw new TypeError(Hue+t);for(var n=pO.call(arguments,1),r,i=function(){if(this instanceof r){var u=t.apply(this,n.concat(pO.call(arguments)));return Object(u)===u?u:this}else return t.apply(e,n.concat(pO.call(arguments)))},o=Math.max(0,t.length-n.length),a=[],s=0;s"u"||!Vn?ht:Vn(Uint8Array),pu={"%AggregateError%":typeof AggregateError>"u"?ht:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?ht:ArrayBuffer,"%ArrayIteratorPrototype%":lc&&Vn?Vn([][Symbol.iterator]()):ht,"%AsyncFromSyncIteratorPrototype%":ht,"%AsyncFunction%":_c,"%AsyncGenerator%":_c,"%AsyncGeneratorFunction%":_c,"%AsyncIteratorPrototype%":_c,"%Atomics%":typeof Atomics>"u"?ht:Atomics,"%BigInt%":typeof BigInt>"u"?ht:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?ht:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?ht:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?ht:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?ht:Float32Array,"%Float64Array%":typeof Float64Array>"u"?ht:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?ht:FinalizationRegistry,"%Function%":ZB,"%GeneratorFunction%":_c,"%Int8Array%":typeof Int8Array>"u"?ht:Int8Array,"%Int16Array%":typeof Int16Array>"u"?ht:Int16Array,"%Int32Array%":typeof Int32Array>"u"?ht:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":lc&&Vn?Vn(Vn([][Symbol.iterator]())):ht,"%JSON%":typeof JSON=="object"?JSON:ht,"%Map%":typeof Map>"u"?ht:Map,"%MapIteratorPrototype%":typeof Map>"u"||!lc||!Vn?ht:Vn(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?ht:Promise,"%Proxy%":typeof Proxy>"u"?ht:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?ht:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?ht:Set,"%SetIteratorPrototype%":typeof Set>"u"||!lc||!Vn?ht:Vn(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?ht:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":lc&&Vn?Vn(""[Symbol.iterator]()):ht,"%Symbol%":lc?Symbol:ht,"%SyntaxError%":Ef,"%ThrowTypeError%":Que,"%TypedArray%":Jue,"%TypeError%":tf,"%Uint8Array%":typeof Uint8Array>"u"?ht:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?ht:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?ht:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?ht:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?ht:WeakMap,"%WeakRef%":typeof WeakRef>"u"?ht:WeakRef,"%WeakSet%":typeof WeakSet>"u"?ht:WeakSet};if(Vn)try{null.error}catch(e){var ece=Vn(Vn(e));pu["%Error.prototype%"]=ece}var tce=function e(t){var n;if(t==="%AsyncFunction%")n=hO("async function () {}");else if(t==="%GeneratorFunction%")n=hO("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=hO("async function* () {}");else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&Vn&&(n=Vn(i.prototype))}return pu[t]=n,n},OD={"%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"]},vv=cj,q0=Zue,nce=vv.call(Function.call,Array.prototype.concat),rce=vv.call(Function.apply,Array.prototype.splice),SD=vv.call(Function.call,String.prototype.replace),K0=vv.call(Function.call,String.prototype.slice),ice=vv.call(Function.call,RegExp.prototype.exec),oce=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ace=/\\(\\)?/g,sce=function(e){var t=K0(e,0,1),n=K0(e,-1);if(t==="%"&&n!=="%")throw new Ef("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&t!=="%")throw new Ef("invalid intrinsic syntax, expected opening `%`");var r=[];return SD(e,oce,function(i,o,a,s){r[r.length]=a?SD(s,ace,"$1"):o||i}),r},lce=function(e,t){var n=e,r;if(q0(OD,n)&&(r=OD[n],n="%"+r[0]+"%"),q0(pu,n)){var i=pu[n];if(i===_c&&(i=tce(n)),typeof i>"u"&&!t)throw new tf("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new Ef("intrinsic "+e+" does not exist!")},fj=function(e,t){if(typeof e!="string"||e.length===0)throw new tf("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new tf('"allowMissing" argument must be a boolean');if(ice(/^%?[^%]*%?$/,e)===null)throw new Ef("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=sce(e),r=n.length>0?n[0]:"",i=lce("%"+r+"%",t),o=i.name,a=i.value,s=!1,l=i.alias;l&&(r=l[0],rce(n,nce([0,1],l)));for(var u=1,f=!0;u=n.length){var v=du(a,d);f=!!v,f&&"get"in v&&!("originalValue"in v.get)?a=v.get:a=a[d]}else f=q0(a,d),a=a[d];f&&!s&&(pu[o]=a)}}return a},QB={exports:{}};(function(e){var t=cj,n=fj,r=n("%Function.prototype.apply%"),i=n("%Function.prototype.call%"),o=n("%Reflect.apply%",!0)||t.call(i,r),a=n("%Object.getOwnPropertyDescriptor%",!0),s=n("%Object.defineProperty%",!0),l=n("%Math.max%");if(s)try{s({},"a",{value:1})}catch{s=null}e.exports=function(f){var d=o(t,i,arguments);if(a&&s){var p=a(d,"length");p.configurable&&s(d,"length",{value:1+l(0,f.length-(arguments.length-1))})}return d};var u=function(){return o(t,r,arguments)};s?s(e.exports,"apply",{value:u}):e.exports.apply=u})(QB);var uce=QB.exports,XB=fj,JB=uce,cce=JB(XB("String.prototype.indexOf")),fce=function(e,t){var n=XB(e,!!t);return typeof n=="function"&&cce(e,".prototype.")>-1?JB(n):n};const dce={},pce=Object.freeze(Object.defineProperty({__proto__:null,default:dce},Symbol.toStringTag,{value:"Module"})),hce=Fue(pce);var dj=typeof Map=="function"&&Map.prototype,vO=Object.getOwnPropertyDescriptor&&dj?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Z0=dj&&vO&&typeof vO.get=="function"?vO.get:null,ED=dj&&Map.prototype.forEach,pj=typeof Set=="function"&&Set.prototype,gO=Object.getOwnPropertyDescriptor&&pj?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Q0=pj&&gO&&typeof gO.get=="function"?gO.get:null,TD=pj&&Set.prototype.forEach,mce=typeof WeakMap=="function"&&WeakMap.prototype,lh=mce?WeakMap.prototype.has:null,vce=typeof WeakSet=="function"&&WeakSet.prototype,uh=vce?WeakSet.prototype.has:null,gce=typeof WeakRef=="function"&&WeakRef.prototype,CD=gce?WeakRef.prototype.deref:null,yce=Boolean.prototype.valueOf,bce=Object.prototype.toString,_ce=Function.prototype.toString,wce=String.prototype.match,hj=String.prototype.slice,Cs=String.prototype.replace,xce=String.prototype.toUpperCase,kD=String.prototype.toLowerCase,e9=RegExp.prototype.test,jD=Array.prototype.concat,Do=Array.prototype.join,Oce=Array.prototype.slice,PD=Math.floor,uE=typeof BigInt=="function"?BigInt.prototype.valueOf:null,yO=Object.getOwnPropertySymbols,cE=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Tf=typeof Symbol=="function"&&typeof Symbol.iterator=="object",wr=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Tf||"symbol")?Symbol.toStringTag:null,t9=Object.prototype.propertyIsEnumerable,AD=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function ND(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||e9.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var r=e<0?-PD(-e):PD(e);if(r!==e){var i=String(r),o=hj.call(t,i.length+1);return Cs.call(i,n,"$&_")+"."+Cs.call(Cs.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Cs.call(t,n,"$&_")}var fE=hce,MD=fE.custom,RD=r9(MD)?MD:null,Sce=function e(t,n,r,i){var o=n||{};if(ys(o,"quoteStyle")&&o.quoteStyle!=="single"&&o.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(ys(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var a=ys(o,"customInspect")?o.customInspect:!0;if(typeof a!="boolean"&&a!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(ys(o,"indent")&&o.indent!==null&&o.indent!==" "&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(ys(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var s=o.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return o9(t,o);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var l=String(t);return s?ND(t,l):l}if(typeof t=="bigint"){var u=String(t)+"n";return s?ND(t,u):u}var f=typeof o.depth>"u"?5:o.depth;if(typeof r>"u"&&(r=0),r>=f&&f>0&&typeof t=="object")return dE(t)?"[Array]":"[Object]";var d=zce(o,r);if(typeof i>"u")i=[];else if(i9(i,t)>=0)return"[Circular]";function p(Y,H,Q){if(H&&(i=Oce.call(i),i.push(H)),Q){var Z={depth:o.depth};return ys(o,"quoteStyle")&&(Z.quoteStyle=o.quoteStyle),e(Y,Z,r+1,i)}return e(Y,o,r+1,i)}if(typeof t=="function"&&!DD(t)){var m=Mce(t),v=Lg(t,p);return"[Function"+(m?": "+m:" (anonymous)")+"]"+(v.length>0?" { "+Do.call(v,", ")+" }":"")}if(r9(t)){var g=Tf?Cs.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):cE.call(t);return typeof t=="object"&&!Tf?hp(g):g}if(Uce(t)){for(var x="<"+kD.call(String(t.nodeName)),b=t.attributes||[],_=0;_",x}if(dE(t)){if(t.length===0)return"[]";var w=Lg(t,p);return d&&!Bce(w)?"["+pE(w,d)+"]":"[ "+Do.call(w,", ")+" ]"}if(Cce(t)){var O=Lg(t,p);return!("cause"in Error.prototype)&&"cause"in t&&!t9.call(t,"cause")?"{ ["+String(t)+"] "+Do.call(jD.call("[cause]: "+p(t.cause),O),", ")+" }":O.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+Do.call(O,", ")+" }"}if(typeof t=="object"&&a){if(RD&&typeof t[RD]=="function"&&fE)return fE(t,{depth:f-r});if(a!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(Rce(t)){var E=[];return ED&&ED.call(t,function(Y,H){E.push(p(H,t,!0)+" => "+p(Y,t))}),LD("Map",Z0.call(t),E,d)}if(Ice(t)){var T=[];return TD&&TD.call(t,function(Y){T.push(p(Y,t))}),LD("Set",Q0.call(t),T,d)}if(Dce(t))return bO("WeakMap");if(Fce(t))return bO("WeakSet");if(Lce(t))return bO("WeakRef");if(jce(t))return hp(p(Number(t)));if(Ace(t))return hp(p(uE.call(t)));if(Pce(t))return hp(yce.call(t));if(kce(t))return hp(p(String(t)));if(!Tce(t)&&!DD(t)){var k=Lg(t,p),P=AD?AD(t)===Object.prototype:t instanceof Object||t.constructor===Object,D=t instanceof Object?"":"null prototype",N=!P&&wr&&Object(t)===t&&wr in t?hj.call(pl(t),8,-1):D?"Object":"",F=P||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",B=F+(N||D?"["+Do.call(jD.call([],N||[],D||[]),": ")+"] ":"");return k.length===0?B+"{}":d?B+"{"+pE(k,d)+"}":B+"{ "+Do.call(k,", ")+" }"}return String(t)};function n9(e,t,n){var r=(n.quoteStyle||t)==="double"?'"':"'";return r+e+r}function Ece(e){return Cs.call(String(e),/"/g,""")}function dE(e){return pl(e)==="[object Array]"&&(!wr||!(typeof e=="object"&&wr in e))}function Tce(e){return pl(e)==="[object Date]"&&(!wr||!(typeof e=="object"&&wr in e))}function DD(e){return pl(e)==="[object RegExp]"&&(!wr||!(typeof e=="object"&&wr in e))}function Cce(e){return pl(e)==="[object Error]"&&(!wr||!(typeof e=="object"&&wr in e))}function kce(e){return pl(e)==="[object String]"&&(!wr||!(typeof e=="object"&&wr in e))}function jce(e){return pl(e)==="[object Number]"&&(!wr||!(typeof e=="object"&&wr in e))}function Pce(e){return pl(e)==="[object Boolean]"&&(!wr||!(typeof e=="object"&&wr in e))}function r9(e){if(Tf)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!cE)return!1;try{return cE.call(e),!0}catch{}return!1}function Ace(e){if(!e||typeof e!="object"||!uE)return!1;try{return uE.call(e),!0}catch{}return!1}var Nce=Object.prototype.hasOwnProperty||function(e){return e in this};function ys(e,t){return Nce.call(e,t)}function pl(e){return bce.call(e)}function Mce(e){if(e.name)return e.name;var t=wce.call(_ce.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function i9(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;nt.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return o9(hj.call(e,0,t.maxStringLength),t)+r}var i=Cs.call(Cs.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,$ce);return n9(i,"single",t)}function $ce(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":"")+xce.call(t.toString(16))}function hp(e){return"Object("+e+")"}function bO(e){return e+" { ? }"}function LD(e,t,n,r){var i=r?pE(n,r):Do.call(n,", ");return e+" ("+t+") {"+i+"}"}function Bce(e){for(var t=0;t=0)return!1;return!0}function zce(e,t){var n;if(e.indent===" ")n=" ";else if(typeof e.indent=="number"&&e.indent>0)n=Do.call(Array(e.indent+1)," ");else return null;return{base:n,prev:Do.call(Array(t+1),n)}}function pE(e,t){if(e.length===0)return"";var n=` +`+t.prev+t.base;return n+Do.call(e,","+n)+` +`+t.prev}function Lg(e,t){var n=dE(e),r=[];if(n){r.length=e.length;for(var i=0;i1;){var t=e.pop(),n=t.obj[t.prop];if(Yl(n)){for(var r=[],i=0;i=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||i===rfe.RFC1738&&(l===40||l===41)){a+=o.charAt(s);continue}if(l<128){a=a+Ao[l];continue}if(l<2048){a=a+(Ao[192|l>>6]+Ao[128|l&63]);continue}if(l<55296||l>=57344){a=a+(Ao[224|l>>12]+Ao[128|l>>6&63]+Ao[128|l&63]);continue}s+=1,l=65536+((l&1023)<<10|o.charCodeAt(s)&1023),a+=Ao[240|l>>18]+Ao[128|l>>12&63]+Ao[128|l>>6&63]+Ao[128|l&63]}return a},ufe=function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r"u"&&(w=0)}if(typeof l=="function"?b=l(n,b):b instanceof Date?b=d(b):r==="comma"&&ya(b)&&(b=Ay.maybeMap(b,function(Z){return Z instanceof Date?d(Z):Z})),b===null){if(o)return s&&!v?s(n,vr.encoder,g,"key",p):n;b=""}if(gfe(b)||Ay.isBuffer(b)){if(s){var T=v?n:s(n,vr.encoder,g,"key",p);return[m(T)+"="+m(s(b,vr.encoder,g,"value",p))]}return[m(n)+"="+m(String(b))]}var k=[];if(typeof b>"u")return k;var P;if(r==="comma"&&ya(b))v&&s&&(b=Ay.maybeMap(b,s)),P=[{value:b.length>0?b.join(",")||null:void 0}];else if(ya(l))P=l;else{var D=Object.keys(b);P=u?D.sort(u):D}for(var N=i&&ya(b)&&b.length===1?n+"[]":n,F=0;F"u"?vr.allowDots:!!e.allowDots,charset:t,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:vr.charsetSentinel,delimiter:typeof e.delimiter>"u"?vr.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:vr.encode,encoder:typeof e.encoder=="function"?e.encoder:vr.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:vr.encodeValuesOnly,filter:i,format:n,formatter:r,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:vr.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:vr.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:vr.strictNullHandling}},_fe=function(e,t){var n=e,r=bfe(t),i,o;typeof r.filter=="function"?(o=r.filter,n=o("",n)):ya(r.filter)&&(o=r.filter,i=o);var a=[];if(typeof n!="object"||n===null)return"";var s;t&&t.arrayFormat in ID?s=t.arrayFormat:t&&"indices"in t?s=t.indices?"indices":"repeat":s="indices";var l=ID[s];if(t&&"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var u=l==="comma"&&t&&t.commaRoundTrip;i||(i=Object.keys(n)),r.sort&&i.sort(r.sort);for(var f=l9(),d=0;d0?v+m:""},Cf=s9,hE=Object.prototype.hasOwnProperty,wfe=Array.isArray,Bn={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:Cf.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},xfe=function(e){return e.replace(/&#(\d+);/g,function(t,n){return String.fromCharCode(parseInt(n,10))})},c9=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},Ofe="utf8=%26%2310003%3B",Sfe="utf8=%E2%9C%93",Efe=function(e,t){var n={__proto__:null},r=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,i=t.parameterLimit===1/0?void 0:t.parameterLimit,o=r.split(t.delimiter,i),a=-1,s,l=t.charset;if(t.charsetSentinel)for(s=0;s-1&&(m=wfe(m)?[m]:m),hE.call(n,p)?n[p]=Cf.combine(n[p],m):n[p]=m}return n},Tfe=function(e,t,n,r){for(var i=r?t:c9(t,n),o=e.length-1;o>=0;--o){var a,s=e[o];if(s==="[]"&&n.parseArrays)a=[].concat(i);else{a=n.plainObjects?Object.create(null):{};var l=s.charAt(0)==="["&&s.charAt(s.length-1)==="]"?s.slice(1,-1):s,u=parseInt(l,10);!n.parseArrays&&l===""?a={0:i}:!isNaN(u)&&s!==l&&String(u)===l&&u>=0&&n.parseArrays&&u<=n.arrayLimit?(a=[],a[u]=i):l!=="__proto__"&&(a[l]=i)}i=a}return i},Cfe=function(e,t,n,r){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,o=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,s=n.depth>0&&o.exec(i),l=s?i.slice(0,s.index):i,u=[];if(l){if(!n.plainObjects&&hE.call(Object.prototype,l)&&!n.allowPrototypes)return;u.push(l)}for(var f=0;n.depth>0&&(s=a.exec(i))!==null&&f"u"?Bn.charset:e.charset;return{allowDots:typeof e.allowDots>"u"?Bn.allowDots:!!e.allowDots,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:Bn.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:Bn.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:Bn.arrayLimit,charset:t,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:Bn.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:Bn.comma,decoder:typeof e.decoder=="function"?e.decoder:Bn.decoder,delimiter:typeof e.delimiter=="string"||Cf.isRegExp(e.delimiter)?e.delimiter:Bn.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:Bn.depth,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:Bn.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:Bn.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:Bn.plainObjects,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:Bn.strictNullHandling}},jfe=function(e,t){var n=kfe(t);if(e===""||e===null||typeof e>"u")return n.plainObjects?Object.create(null):{};for(var r=typeof e=="string"?Efe(e,n):e,i=n.plainObjects?Object.create(null):{},o=Object.keys(r),a=0;af9.parse(e,{ignoreQueryPrefix:!0}),rw=e=>f9.stringify(e,{arrayFormat:"brackets"}),Cn=(e=!1)=>{const[t,n]=I.useState(e),r=I.useCallback(()=>n(a=>!a),[]),i=I.useCallback(()=>n(!0),[]),o=I.useCallback(()=>n(!1),[]);return[t,r,i,o]},d9=(e=!1,t=2e3,n=window.setTimeout,r=window.clearTimeout)=>{const[i,o]=I.useState(e),a=I.useRef(e),s=I.useRef(),l=I.useCallback(()=>{o(!a.current),s.current&&r(s.current),s.current=n(()=>o(a.current),t)},[r,t,n]);return[i,l]},iw=()=>{const{current:e}=I.useRef(`dom-${Lue()}`);return e},hl=()=>I.useRef(null),_d=()=>{const{search:e}=xr();return I.useMemo(()=>yj(e),[e])},p9=({checked:e=!1,onChange:t,className:n,children:r,type:i,inline:o=!1})=>{const a=iw(),s=f=>t==null?void 0:t(f.target.checked,f),l={"form-switch":i==="switch","form-checkbox":i==="checkbox"},u=o?{display:"inline-block"}:{};return y.jsxs("span",{className:Ii("form-check",l,n),style:u,children:[y.jsx("input",{type:"checkbox",className:"form-check-input",id:a,checked:e,onChange:s}),y.jsx("label",{className:"form-check-label",htmlFor:a,children:r})]})},h9=e=>y.jsx(p9,{type:"checkbox",...e}),ku=e=>y.jsx(p9,{type:"switch",...e}),wd=({children:e,label:t,className:n="",labelClassName:r="",noMargin:i=!1,id:o})=>y.jsxs("div",{className:`${n} ${i?"":"mb-3"}`,children:[y.jsx("label",{className:`form-label ${r}`,htmlFor:o,children:t}),e]}),Ny=({children:e,value:t,onChange:n,type:r,required:i,placeholder:o,className:a,labelClassName:s})=>{const l=iw();return y.jsx(wd,{label:y.jsxs(y.Fragment,{children:[e,":"]}),className:a,labelClassName:s,id:l,children:y.jsx("input",{id:l,className:"form-control",type:r??"text",value:t,required:i??!0,placeholder:o,onChange:u=>n(u.target.value)})})},Rfe=500;let My;const UD=()=>{My&&clearTimeout(My),My=null},gv=({onChange:e,className:t,large:n=!0,noBorder:r=!1,initialValue:i="",setTimeout_:o=setTimeout})=>{const[a,s]=I.useState(i),l=(u,f=Rfe)=>{s(u),UD(),My=o(()=>{e(u),UD()},f)};return y.jsxs("div",{className:Ii("search-field",t),children:[y.jsx("input",{type:"text",className:Ii("form-control search-field__input",{"form-control-lg":n,"search-field__input--no-border":r}),placeholder:"Search...",value:a,onChange:u=>l(u.target.value)}),y.jsx(Ne,{icon:$ee,className:"search-field__icon"}),y.jsx("button",{"aria-label":"Clear search",type:"button",className:"close search-field__close btn-close",hidden:a==="",id:"search-field__close",onClick:()=>l("",0)})]})},Qa=({text:e,disabled:t=!1,className:n,children:r,dropdownClassName:i,noCaret:o,end:a=!1,minWidth:s,inline:l,size:u,...f})=>{const[d,p]=Cn(),m=Ii("dropdown-btn__toggle",n,{"btn-block":!l,"dropdown-btn__toggle--with-caret":!o}),v={minWidth:s&&`${s}px`};return y.jsxs(dv,{isOpen:d,toggle:p,disabled:t,className:i,children:[y.jsx(gd,{size:u,caret:!o,className:m,color:"primary",...f,children:e}),y.jsx(vd,{className:"w-100",end:a,style:v,children:r})]})},ow=({children:e,minWidth:t,label:n="Options"})=>y.jsx(Qa,{text:y.jsx(Ne,{className:"px-1",icon:Aee}),"aria-label":n,size:"sm",minWidth:t,end:!0,noCaret:!0,inline:!0,children:e}),fh=({children:e,...t})=>y.jsx(Kk,{children:y.jsx(hB,{className:"nav-pills__nav-link",tag:o7,...t,children:e})}),m9=({children:e,fill:t=!1,className:n=""})=>y.jsx(di,{className:`nav-pills__nav p-0 overflow-hidden ${n}`,body:!0,children:y.jsx(qk,{pills:!0,fill:t,children:I.Children.map(e,r=>{if(!I.isValidElement(r)||r.type!==fh)throw new Error("Only NavPillItem children are allowed inside NavPills.");return r})})}),aw=(e,t,n)=>e!==t?"ASC":n?{ASC:"DESC",DESC:void 0}[n]:"ASC",v9=(e,{field:t,dir:n})=>!t||!n?e:e.sort((r,i)=>{const o=n==="ASC"?1:-1,a=n==="ASC"?-1:1;return r[t]>i[t]?o:a}),Dfe=e=>e.dir?`${e.field}-${e.dir}`:void 0,Lfe=e=>{const[t,n]=e.split("-");return{field:t,dir:n}};function yv({items:e,order:t,onChange:n,isButton:r=!0,right:i=!1,prefixed:o=!0}){const a=s=>()=>{const l=aw(s,t.field,t.dir);n(l?s:void 0,l)};return y.jsxs(mv,{children:[y.jsxs(gd,{caret:!0,color:r?"primary":"link",className:Ii({"dropdown-btn__toggle btn-block pe-4 overflow-hidden":r,"btn-sm p-0":!r}),children:[!r&&y.jsx(y.Fragment,{children:"Order by"}),r&&!t.field&&y.jsx("i",{children:"Order by..."}),r&&t.field&&y.jsxs(y.Fragment,{children:[o&&"Order by: ",e[t.field]," - ",y.jsx("small",{children:t.dir??"DESC"})]})]}),y.jsxs(vd,{end:i,className:Ii("w-100",{"ordering-dropdown__menu--link":!r}),children:[Object.entries(e).map(([s,l])=>y.jsxs(Re,{active:t.field===s,onClick:a(s),children:[l,t.field===s&&y.jsx(Ne,{icon:t.dir==="ASC"?Dee:_ee,className:"ordering-dropdown__sort-icon"})]},s)),y.jsx(Re,{divider:!0}),y.jsx(Re,{disabled:!t.field,onClick:()=>n(),children:y.jsx("i",{children:"Clear selection"})})]})]})}const rm="#4696e5",Ife="rgba(70, 150, 229, 0.4)",mE="#f77f28",Ffe="rgba(247, 127, 40, 0.4)",Ufe="white",$fe="#161b22",Bfe=e=>{var t;return(t=document.querySelector("html"))==null?void 0:t.setAttribute("data-theme",e)},bj=()=>{var e;return((e=document.querySelector("html"))==null?void 0:e.getAttribute("data-theme"))==="dark"},_j=(e=window.matchMedia.bind(window))=>e("(prefers-color-scheme: dark)").matches?"dark":"light";function g9(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t{const[i,,o]=Cn(),a=I.useCallback(()=>{o(),n()},[n,o]);return y.jsxs(WB,{className:"app-update-banner",isOpen:e,toggle:t,tag:Qt,color:"secondary",innerRef:r,children:[y.jsx("h4",{className:"mb-4",children:"This app has just been updated!"}),y.jsxs("p",{className:"mb-0",children:["Restart it to enjoy the new features.",y.jsxs(_t,{role:"button",disabled:i,className:"ms-2",color:"secondary",size:"sm",onClick:a,children:[!i&&y.jsxs(y.Fragment,{children:["Restart now ",y.jsx(Ne,{icon:Wee,className:"ms-1"})]}),i&&y.jsx(y.Fragment,{children:"Restarting..."})]})]})]})}),y9=({to:e="/",children:t="Home"})=>y.jsx("div",{className:"home",children:y.jsxs(Qt,{className:"p-4",children:[y.jsx("h2",{children:"Oops! We could not find requested route."}),y.jsx("p",{children:"Use your browser's back button to navigate to the page you have previously come from, or just press this button."}),y.jsx("br",{}),y.jsx($t,{to:e,className:"btn btn-outline-primary btn-lg",children:t})]})});function Ki(e){return I.useRef(e).current}function Zi(e,t){return(n,r=globalThis.console)=>(t.forEach(i=>{const o=n[i];e[i]=o}),e)}const Vfe=async()=>{var t;(await((t=navigator.serviceWorker)==null?void 0:t.getRegistrations())??[]).forEach(({waiting:n})=>{n==null||n.addEventListener("statechange",r=>{var i;((i=r.target)==null?void 0:i.state)==="activated"&&window.location.reload()}),n==null||n.postMessage({type:"SKIP_WAITING"})})},b9=({fetchServers:e,servers:t,settings:n,appUpdated:r,resetAppUpdate:i})=>{var x;const{MainHeader:o,Home:a,ShlinkWebComponentContainer:s,CreateServer:l,EditServer:u,Settings:f,ManageServers:d,ShlinkVersionsContainer:p}=Ki(b9),m=xr(),v=I.useRef(t),g=m.pathname==="/";return I.useEffect(()=>{Object.keys(v.current).length===0&&e()},[e]),I.useEffect(()=>{var b;Bfe(((b=n.ui)==null?void 0:b.theme)??_j())},[(x=n.ui)==null?void 0:x.theme]),y.jsxs("div",{className:"container-fluid app-container",children:[y.jsx(o,{}),y.jsxs("div",{className:"app",children:[y.jsx("div",{className:xd("shlink-wrapper",{"d-flex d-md-block align-items-center":g}),children:y.jsxs(Y_,{children:[y.jsx(yt,{index:!0,element:y.jsx(a,{})}),y.jsx(yt,{path:"/settings/*",element:y.jsx(f,{})}),y.jsx(yt,{path:"/manage-servers",element:y.jsx(d,{})}),y.jsx(yt,{path:"/server/create",element:y.jsx(l,{})}),y.jsx(yt,{path:"/server/:serverId/edit",element:y.jsx(u,{})}),y.jsx(yt,{path:"/server/:serverId/*",element:y.jsx(s,{})}),y.jsx(yt,{path:"*",element:y.jsx(y9,{})})]})}),y.jsx("div",{className:"shlink-footer",children:y.jsx(p,{})})]}),y.jsx(zfe,{isOpen:r,toggle:i,forceUpdate:Vfe})]})},Hfe=Zi(b9,["MainHeader","Home","ShlinkWebComponentContainer","CreateServer","EditServer","Settings","ManageServers","ShlinkVersionsContainer"]);function sr(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Wfe=(()=>typeof Symbol=="function"&&Symbol.observable||"@@observable")(),$D=Wfe,OO=()=>Math.random().toString(36).substring(7).split("").join("."),Yfe={INIT:`@@redux/INIT${OO()}`,REPLACE:`@@redux/REPLACE${OO()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${OO()}`},X0=Yfe;function wj(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function _9(e,t,n){if(typeof e!="function")throw new Error(sr(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(sr(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(sr(1));return n(_9)(e,t)}let r=e,i=t,o=new Map,a=o,s=0,l=!1;function u(){a===o&&(a=new Map,o.forEach((x,b)=>{a.set(b,x)}))}function f(){if(l)throw new Error(sr(3));return i}function d(x){if(typeof x!="function")throw new Error(sr(4));if(l)throw new Error(sr(5));let b=!0;u();const _=s++;return a.set(_,x),function(){if(b){if(l)throw new Error(sr(6));b=!1,u(),a.delete(_),o=null}}}function p(x){if(!wj(x))throw new Error(sr(7));if(typeof x.type>"u")throw new Error(sr(8));if(typeof x.type!="string")throw new Error(sr(17));if(l)throw new Error(sr(9));try{l=!0,i=r(i,x)}finally{l=!1}return(o=a).forEach(_=>{_()}),x}function m(x){if(typeof x!="function")throw new Error(sr(10));r=x,p({type:X0.REPLACE})}function v(){const x=d;return{subscribe(b){if(typeof b!="object"||b===null)throw new Error(sr(11));function _(){const O=b;O.next&&O.next(f())}return _(),{unsubscribe:x(_)}},[$D](){return this}}}return p({type:X0.INIT}),{dispatch:p,subscribe:d,getState:f,replaceReducer:m,[$D]:v}}function Gfe(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:X0.INIT})>"u")throw new Error(sr(12));if(typeof n(void 0,{type:X0.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(sr(13))})}function xj(e){const t=Object.keys(e),n={};for(let o=0;o"u")throw s&&s.type,new Error(sr(14));u[d]=v,l=l||v!==m}return l=l||r.length!==Object.keys(a).length,l?u:a}}function J0(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function qfe(...e){return t=>(n,r)=>{const i=t(n,r);let o=()=>{throw new Error(sr(15))};const a={getState:i.getState,dispatch:(l,...u)=>o(l,...u)},s=e.map(l=>l(a));return o=J0(...s)(i.dispatch),{...i,dispatch:o}}}function Kfe(e){return wj(e)&&"type"in e&&typeof e.type=="string"}var w9=Symbol.for("immer-nothing"),BD=Symbol.for("immer-draftable"),pi=Symbol.for("immer-state");function fo(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var kf=Object.getPrototypeOf;function tl(e){return!!e&&!!e[pi]}function Fa(e){var t;return e?x9(e)||Array.isArray(e)||!!e[BD]||!!((t=e.constructor)!=null&&t[BD])||lw(e)||uw(e):!1}var Zfe=Object.prototype.constructor.toString();function x9(e){if(!e||typeof e!="object")return!1;const t=kf(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===Zfe}function im(e,t){sw(e)===0?Object.entries(e).forEach(([n,r])=>{t(n,r,e)}):e.forEach((n,r)=>t(r,n,e))}function sw(e){const t=e[pi];return t?t.type_:Array.isArray(e)?1:lw(e)?2:uw(e)?3:0}function vE(e,t){return sw(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function O9(e,t,n){const r=sw(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function Qfe(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function lw(e){return e instanceof Map}function uw(e){return e instanceof Set}function Ul(e){return e.copy_||e.base_}function gE(e,t){if(lw(e))return new Map(e);if(uw(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&x9(e))return kf(e)?{...e}:Object.assign(Object.create(null),e);const n=Object.getOwnPropertyDescriptors(e);delete n[pi];let r=Reflect.ownKeys(n);for(let i=0;i1&&(e.set=e.add=e.clear=e.delete=Xfe),Object.freeze(e),t&&im(e,(n,r)=>Oj(r,!0))),e}function Xfe(){fo(2)}function cw(e){return Object.isFrozen(e)}var Jfe={};function ju(e){const t=Jfe[e];return t||fo(0,e),t}var om;function S9(){return om}function ede(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function zD(e,t){t&&(ju("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function yE(e){bE(e),e.drafts_.forEach(tde),e.drafts_=null}function bE(e){e===om&&(om=e.parent_)}function VD(e){return om=ede(om,e)}function tde(e){const t=e[pi];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function HD(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[pi].modified_&&(yE(t),fo(4)),Fa(e)&&(e=eb(t,e),t.parent_||tb(t,e)),t.patches_&&ju("Patches").generateReplacementPatches_(n[pi].base_,e,t.patches_,t.inversePatches_)):e=eb(t,n,[]),yE(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==w9?e:void 0}function eb(e,t,n){if(cw(t))return t;const r=t[pi];if(!r)return im(t,(i,o)=>WD(e,r,t,i,o,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return tb(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const i=r.copy_;let o=i,a=!1;r.type_===3&&(o=new Set(i),i.clear(),a=!0),im(o,(s,l)=>WD(e,r,i,s,l,n,a)),tb(e,i,!1),n&&e.patches_&&ju("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function WD(e,t,n,r,i,o,a){if(tl(i)){const s=o&&t&&t.type_!==3&&!vE(t.assigned_,r)?o.concat(r):void 0,l=eb(e,i,s);if(O9(n,r,l),tl(l))e.canAutoFreeze_=!1;else return}else a&&n.add(i);if(Fa(i)&&!cw(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;eb(e,i),(!t||!t.scope_.parent_)&&tb(e,i)}}function tb(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Oj(t,n)}function nde(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:S9(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,o=Sj;n&&(i=[r],o=am);const{revoke:a,proxy:s}=Proxy.revocable(i,o);return r.draft_=s,r.revoke_=a,s}var Sj={get(e,t){if(t===pi)return e;const n=Ul(e);if(!vE(n,t))return rde(e,n,t);const r=n[t];return e.finalized_||!Fa(r)?r:r===SO(e.base_,t)?(EO(e),e.copy_[t]=wE(r,e)):r},has(e,t){return t in Ul(e)},ownKeys(e){return Reflect.ownKeys(Ul(e))},set(e,t,n){const r=E9(Ul(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=SO(Ul(e),t),o=i==null?void 0:i[pi];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(Qfe(n,i)&&(n!==void 0||vE(e.base_,t)))return!0;EO(e),_E(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return SO(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,EO(e),_E(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Ul(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){fo(11)},getPrototypeOf(e){return kf(e.base_)},setPrototypeOf(){fo(12)}},am={};im(Sj,(e,t)=>{am[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});am.deleteProperty=function(e,t){return am.set.call(this,e,t,void 0)};am.set=function(e,t,n){return Sj.set.call(this,e[0],t,n,e[0])};function SO(e,t){const n=e[pi];return(n?Ul(n):e)[t]}function rde(e,t,n){var i;const r=E9(t,n);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function E9(e,t){if(!(t in e))return;let n=kf(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=kf(n)}}function _E(e){e.modified_||(e.modified_=!0,e.parent_&&_E(e.parent_))}function EO(e){e.copy_||(e.copy_=gE(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var ide=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const o=n;n=t;const a=this;return function(l=o,...u){return a.produce(l,f=>n.call(this,f,...u))}}typeof n!="function"&&fo(6),r!==void 0&&typeof r!="function"&&fo(7);let i;if(Fa(t)){const o=VD(this),a=wE(t,void 0);let s=!0;try{i=n(a),s=!1}finally{s?yE(o):bE(o)}return zD(o,r),HD(i,o)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===w9&&(i=void 0),this.autoFreeze_&&Oj(i,!0),r){const o=[],a=[];ju("Patches").generateReplacementPatches_(t,i,o,a),r(o,a)}return i}else fo(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(a,...s)=>this.produceWithPatches(a,l=>t(l,...s));let r,i;return[this.produce(t,n,(a,s)=>{r=a,i=s}),r,i]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){Fa(e)||fo(8),tl(e)&&(e=T9(e));const t=VD(this),n=wE(e,void 0);return n[pi].isManual_=!0,bE(t),n}finishDraft(e,t){const n=e&&e[pi];(!n||!n.isManual_)&&fo(9);const{scope_:r}=n;return zD(r,t),HD(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const i=t[n];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}n>-1&&(t=t.slice(n+1));const r=ju("Patches").applyPatches_;return tl(e)?r(e,t):this.produce(e,i=>r(i,t))}};function wE(e,t){const n=lw(e)?ju("MapSet").proxyMap_(e,t):uw(e)?ju("MapSet").proxySet_(e,t):nde(e,t);return(t?t.scope_:S9()).drafts_.push(n),n}function T9(e){return tl(e)||fo(10,e),C9(e)}function C9(e){if(!Fa(e)||cw(e))return e;const t=e[pi];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=gE(e,t.scope_.immer_.useStrictShallowCopy_)}else n=gE(e,!0);return im(n,(r,i)=>{O9(n,r,C9(i))}),t&&(t.finalized_=!1),n}var hi=new ide,k9=hi.produce;hi.produceWithPatches.bind(hi);hi.setAutoFreeze.bind(hi);hi.setUseStrictShallowCopy.bind(hi);hi.applyPatches.bind(hi);hi.createDraft.bind(hi);hi.finishDraft.bind(hi);function ode(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function ade(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var YD=e=>Array.isArray(e)?e:[e];function sde(e){const t=Array.isArray(e[0])?e[0]:e;return ade(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function lde(e,t){const n=[],{length:r}=e;for(let i=0;i{n=Ug(),a.resetResultsCount()},a.resultsCount=()=>o,a.resetResultsCount=()=>{o=0},a}function dde(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e;return(...i)=>{let o=0,a=0,s,l={},u=i.pop();typeof u=="object"&&(l=u,u=i.pop()),ode(u,`createSelector expects an output function after the inputs, but received: [${typeof u}]`);const f={...n,...l},{memoize:d,memoizeOptions:p=[],argsMemoize:m=j9,argsMemoizeOptions:v=[],devModeChecks:g={}}=f,x=YD(p),b=YD(v),_=sde(i),w=d(function(){return o++,u.apply(null,arguments)},...x),O=m(function(){a++;const T=lde(_,arguments);return s=w.apply(null,T),s},...b);return Object.assign(O,{resultFunc:u,memoizedResultFunc:w,dependencies:_,dependencyRecomputations:()=>a,resetDependencyRecomputations:()=>{a=0},lastResult:()=>s,recomputations:()=>o,resetRecomputations:()=>{o=0},memoize:d,argsMemoize:m})}}function P9(e){return({dispatch:n,getState:r})=>i=>o=>typeof o=="function"?o(n,r,e):i(o)}var pde=P9(),hde=P9,mde=(...e)=>{const t=dde(...e),n=Object.assign((...r)=>{const i=t(...r),o=(a,...s)=>i(tl(a)?T9(a):a,...s);return Object.assign(o,i),o},{withTypes:()=>n});return n};mde(j9);var vde=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?J0:J0.apply(null,arguments)},gde=e=>e&&typeof e.match=="function";function Mn(e,t){function n(...r){if(t){let i=t(...r);if(!i)throw new Error(Zr(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>Kfe(r)&&r.type===e,n}var A9=class $p extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,$p.prototype)}static get[Symbol.species](){return $p}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new $p(...t[0].concat(this)):new $p(...t.concat(this))}};function qD(e){return Fa(e)?k9(e,()=>{}):e}function KD(e,t,n){if(e.has(t)){let i=e.get(t);return n.update&&(i=n.update(i,t,e),e.set(t,i)),i}if(!n.insert)throw new Error(Zr(10));const r=n.insert(t,e);return e.set(t,r),r}function yde(e){return typeof e=="boolean"}var bde=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:o=!0}=t??{};let a=new A9;return n&&(yde(n)?a.push(pde):a.push(hde(n.extraArgument))),a},_de="RTK_autoBatch",N9=e=>t=>{setTimeout(t,e)},wde=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:N9(10),xde=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,o=!1,a=!1;const s=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?wde:e.type==="callback"?e.queueNotification:N9(e.timeout),u=()=>{a=!1,o&&(o=!1,s.forEach(f=>f()))};return Object.assign({},r,{subscribe(f){const d=()=>i&&f(),p=r.subscribe(d);return s.add(f),()=>{p(),s.delete(f)}},dispatch(f){var d;try{return i=!((d=f==null?void 0:f.meta)!=null&&d[_de]),o=!i,o&&(a||(a=!0,l(u))),r.dispatch(f)}finally{i=!0}}})},Ode=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new A9(e);return r&&i.push(xde(typeof r=="object"?r:void 0)),i},Sde=!0;function M9(e){const t=bde(),{reducer:n=void 0,middleware:r,devTools:i=!0,preloadedState:o=void 0,enhancers:a=void 0}=e||{};let s;if(typeof n=="function")s=n;else if(wj(n))s=xj(n);else throw new Error(Zr(1));let l;typeof r=="function"?l=r(t):l=t();let u=J0;i&&(u=vde({trace:!Sde,...typeof i=="object"&&i}));const f=qfe(...l),d=Ode(f);let p=typeof a=="function"?a(d):d();const m=u(...p);return _9(s,o,m)}function R9(e){const t={},n=[];let r;const i={addCase(o,a){const s=typeof o=="string"?o:o.type;if(!s)throw new Error(Zr(28));if(s in t)throw new Error(Zr(29));return t[s]=a,i},addMatcher(o,a){return n.push({matcher:o,reducer:a}),i},addDefaultCase(o){return r=o,i}};return e(i),[t,n,r]}function Ede(e){return typeof e=="function"}function Tde(e,t){let[n,r,i]=R9(t),o;if(Ede(e))o=()=>qD(e());else{const s=qD(e);o=()=>s}function a(s=o(),l){let u=[n[l.type],...r.filter(({matcher:f})=>f(l)).map(({reducer:f})=>f)];return u.filter(f=>!!f).length===0&&(u=[i]),u.reduce((f,d)=>{if(d)if(tl(f)){const m=d(f,l);return m===void 0?f:m}else{if(Fa(f))return k9(f,p=>d(p,l));{const p=d(f,l);if(p===void 0){if(f===null)return f;throw new Error(Zr(9))}return p}}return f},s)}return a.getInitialState=o,a}var Cde="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",D9=(e=21)=>{let t="",n=e;for(;n--;)t+=Cde[Math.random()*64|0];return t},kde=(e,t)=>gde(e)?e.match(t):e(t);function jde(...e){return t=>e.some(n=>kde(n,t))}var Pde=["name","message","stack","code"],TO=class{constructor(e,t){nc(this,"_type");this.payload=e,this.meta=t}},ZD=class{constructor(e,t){nc(this,"_type");this.payload=e,this.meta=t}},Ade=e=>{if(typeof e=="object"&&e!==null){const t={};for(const n of Pde)typeof e[n]=="string"&&(t[n]=e[n]);return t}return{message:String(e)}},L9=(()=>{function e(t,n,r){const i=Mn(t+"/fulfilled",(l,u,f,d)=>({payload:l,meta:{...d||{},arg:f,requestId:u,requestStatus:"fulfilled"}})),o=Mn(t+"/pending",(l,u,f)=>({payload:void 0,meta:{...f||{},arg:u,requestId:l,requestStatus:"pending"}})),a=Mn(t+"/rejected",(l,u,f,d,p)=>({payload:d,error:(r&&r.serializeError||Ade)(l||"Rejected"),meta:{...p||{},arg:f,requestId:u,rejectedWithValue:!!d,requestStatus:"rejected",aborted:(l==null?void 0:l.name)==="AbortError",condition:(l==null?void 0:l.name)==="ConditionError"}}));function s(l){return(u,f,d)=>{const p=r!=null&&r.idGenerator?r.idGenerator(l):D9(),m=new AbortController;let v,g;function x(_){g=_,m.abort()}const b=async function(){var O,E;let _;try{let T=(O=r==null?void 0:r.condition)==null?void 0:O.call(r,l,{getState:f,extra:d});if(Mde(T)&&(T=await T),T===!1||m.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const k=new Promise((P,D)=>{v=()=>{D({name:"AbortError",message:g||"Aborted"})},m.signal.addEventListener("abort",v)});u(o(p,l,(E=r==null?void 0:r.getPendingMeta)==null?void 0:E.call(r,{requestId:p,arg:l},{getState:f,extra:d}))),_=await Promise.race([k,Promise.resolve(n(l,{dispatch:u,getState:f,extra:d,requestId:p,signal:m.signal,abort:x,rejectWithValue:(P,D)=>new TO(P,D),fulfillWithValue:(P,D)=>new ZD(P,D)})).then(P=>{if(P instanceof TO)throw P;return P instanceof ZD?i(P.payload,p,l,P.meta):i(P,p,l)})])}catch(T){_=T instanceof TO?a(null,p,l,T.payload,T.meta):a(T,p,l)}finally{v&&m.signal.removeEventListener("abort",v)}return r&&!r.dispatchConditionRejection&&a.match(_)&&_.meta.condition||u(_),_}();return Object.assign(b,{abort:x,requestId:p,arg:l,unwrap(){return b.then(Nde)}})}}return Object.assign(s,{pending:o,rejected:a,fulfilled:i,settled:jde(a,i),typePrefix:t})}return e.withTypes=()=>e,e})();function Nde(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Mde(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Rde=Symbol.for("rtk-slice-createasyncthunk");function Dde(e,t){return`${e}/${t}`}function Lde({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[Rde];return function(i){const{name:o,reducerPath:a=o}=i;if(!o)throw new Error(Zr(11));typeof process<"u";const s=(typeof i.reducers=="function"?i.reducers(Fde()):i.reducers)||{},l=Object.keys(s),u={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},f={addCase(w,O){const E=typeof w=="string"?w:w.type;if(!E)throw new Error(Zr(12));if(E in u.sliceCaseReducersByType)throw new Error(Zr(13));return u.sliceCaseReducersByType[E]=O,f},addMatcher(w,O){return u.sliceMatchers.push({matcher:w,reducer:O}),f},exposeAction(w,O){return u.actionCreators[w]=O,f},exposeCaseReducer(w,O){return u.sliceCaseReducersByName[w]=O,f}};l.forEach(w=>{const O=s[w],E={reducerName:w,type:Dde(o,w),createNotation:typeof i.reducers=="function"};$de(O)?zde(E,O,f,t):Ude(E,O,f)});function d(){const[w={},O=[],E=void 0]=typeof i.extraReducers=="function"?R9(i.extraReducers):[i.extraReducers],T={...w,...u.sliceCaseReducersByType};return Tde(i.initialState,k=>{for(let P in T)k.addCase(P,T[P]);for(let P of u.sliceMatchers)k.addMatcher(P.matcher,P.reducer);for(let P of O)k.addMatcher(P.matcher,P.reducer);E&&k.addDefaultCase(E)})}const p=w=>w,m=new Map;let v;function g(w,O){return v||(v=d()),v(w,O)}function x(){return v||(v=d()),v.getInitialState()}function b(w,O=!1){function E(k){let P=k[w];return typeof P>"u"&&O&&(P=x()),P}function T(k=p){const P=KD(m,O,{insert:()=>new WeakMap});return KD(P,k,{insert:()=>{const D={};for(const[N,F]of Object.entries(i.selectors??{}))D[N]=Ide(F,k,x,O);return D}})}return{reducerPath:w,getSelectors:T,get selectors(){return T(E)},selectSlice:E}}const _={name:o,reducer:g,actions:u.actionCreators,caseReducers:u.sliceCaseReducersByName,getInitialState:x,...b(a),injectInto(w,{reducerPath:O,...E}={}){const T=O??a;return w.inject({reducerPath:T,reducer:g},E),{..._,...b(T,!0)}}};return _}}function Ide(e,t,n,r){function i(o,...a){let s=t(o);return typeof s>"u"&&r&&(s=n()),e(s,...a)}return i.unwrapped=e,i}var Dn=Lde();function Fde(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function Ude({type:e,reducerName:t,createNotation:n},r,i){let o,a;if("reducer"in r){if(n&&!Bde(r))throw new Error(Zr(17));o=r.reducer,a=r.prepare}else o=r;i.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,a?Mn(e,a):Mn(e))}function $de(e){return e._reducerDefinitionType==="asyncThunk"}function Bde(e){return e._reducerDefinitionType==="reducerWithPrepare"}function zde({type:e,reducerName:t},n,r,i){if(!i)throw new Error(Zr(18));const{payloadCreator:o,fulfilled:a,pending:s,rejected:l,settled:u,options:f}=n,d=i(e,o,f);r.exposeAction(t,d),a&&r.addCase(d.fulfilled,a),s&&r.addCase(d.pending,s),l&&r.addCase(d.rejected,l),u&&r.addMatcher(d.settled,u),r.exposeCaseReducer(t,{fulfilled:a||$g,pending:s||$g,rejected:l||$g,settled:u||$g})}function $g(){}var Vde=(e,t)=>{if(typeof e!="function")throw new Error(Zr(32))},Ej="listenerMiddleware",Hde=e=>{let{type:t,actionCreator:n,matcher:r,predicate:i,effect:o}=e;if(t)i=Mn(t).match;else if(n)t=n.type,i=n.match;else if(r)i=r;else if(!i)throw new Error(Zr(21));return Vde(o),{predicate:i,type:t,effect:o}},Wde=Object.assign(e=>{const{type:t,predicate:n,effect:r}=Hde(e);return{id:D9(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(Zr(22))}}},{withTypes:()=>Wde}),Yde=Object.assign(Mn(`${Ej}/add`),{withTypes:()=>Yde});Mn(`${Ej}/removeAll`);var Gde=Object.assign(Mn(`${Ej}/remove`),{withTypes:()=>Gde});function Zr(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}const{actions:qde,reducer:Kde}=Dn({name:"shlink/appUpdates",initialState:!1,reducers:{appUpdateAvailable:()=>!0,resetAppUpdate:()=>!1}}),{appUpdateAvailable:Zde,resetAppUpdate:Qde}=qde,Xde=Kde,Jde=(e,t)=>{e.factory("App",Hfe),e.decorator("App",t(["servers","settings","appUpdated"],["fetchServers","resetAppUpdate"])),e.serviceFactory("appUpdateAvailable",()=>Zde),e.serviceFactory("resetAppUpdate",()=>Qde)},QD={"Content-Type":"application/json"},XD=e=>e!=null&&e.body?e?{...e,headers:{...e.headers??{},...QD}}:{headers:QD}:e;class epe{constructor(t=window.fetch.bind(window)){this.fetch=t}async jsonRequest(t,n){return this.fetch(t,XD(n)).then(async r=>{const i=await r.json();if(!r.ok)throw i;return i})}async emptyRequest(t,n){return this.fetch(t,XD(n)).then(async r=>{if(!r.ok)throw await r.json()})}}var Tj=(e=>(e.INVALID_ARGUMENT="INVALID_ARGUMENT",e.INVALID_SHORT_URL_DELETION="INVALID_SHORT_URL_DELETION",e.DOMAIN_NOT_FOUND="DOMAIN_NOT_FOUND",e.FORBIDDEN_OPERATION="FORBIDDEN_OPERATION",e.INVALID_URL="INVALID_URL",e.INVALID_SLUG="INVALID_SLUG",e.INVALID_SHORTCODE="INVALID_SHORTCODE",e.TAG_CONFLICT="TAG_CONFLICT",e.TAG_NOT_FOUND="TAG_NOT_FOUND",e.MERCURE_NOT_CONFIGURED="MERCURE_NOT_CONFIGURED",e.INVALID_AUTHORIZATION="INVALID_AUTHORIZATION",e.INVALID_API_KEY="INVALID_API_KEY",e.NOT_FOUND="NOT_FOUND",e))(Tj||{}),Cj=(e=>(e.INVALID_ARGUMENT="https://shlink.io/api/error/invalid-data",e.INVALID_SHORT_URL_DELETION="https://shlink.io/api/error/invalid-short-url-deletion",e.DOMAIN_NOT_FOUND="https://shlink.io/api/error/domain-not-found",e.FORBIDDEN_OPERATION="https://shlink.io/api/error/forbidden-tag-operation",e.INVALID_URL="https://shlink.io/api/error/invalid-url",e.INVALID_SLUG="https://shlink.io/api/error/non-unique-slug",e.INVALID_SHORTCODE="https://shlink.io/api/error/short-url-not-found",e.TAG_CONFLICT="https://shlink.io/api/error/tag-conflict",e.TAG_NOT_FOUND="https://shlink.io/api/error/tag-not-found",e.MERCURE_NOT_CONFIGURED="https://shlink.io/api/error/mercure-not-configured",e.INVALID_AUTHORIZATION="https://shlink.io/api/error/missing-authentication",e.INVALID_API_KEY="https://shlink.io/api/error/invalid-api-key",e.NOT_FOUND="https://shlink.io/api/error/not-found",e))(Cj||{}),tpe={prefix:"far",iconName:"calendar-days",icon:[448,512,["calendar-alt"],"f073","M152 24c0-13.3-10.7-24-24-24s-24 10.7-24 24V64H64C28.7 64 0 92.7 0 128v16 48V448c0 35.3 28.7 64 64 64H384c35.3 0 64-28.7 64-64V192 144 128c0-35.3-28.7-64-64-64H344V24c0-13.3-10.7-24-24-24s-24 10.7-24 24V64H152V24zM48 192h80v56H48V192zm0 104h80v64H48V296zm128 0h96v64H176V296zm144 0h80v64H320V296zm80-48H320V192h80v56zm0 160v40c0 8.8-7.2 16-16 16H320V408h80zm-128 0v56H176V408h96zm-144 0v56H64c-8.8 0-16-7.2-16-16V408h80zM272 248H176V192h96v56z"]},npe=tpe,rpe={prefix:"far",iconName:"circle-right",icon:[512,512,[61838,"arrow-alt-circle-right"],"f35a","M464 256A208 208 0 1 1 48 256a208 208 0 1 1 416 0zM0 256a256 256 0 1 0 512 0A256 256 0 1 0 0 256zM294.6 135.1c-4.2-4.5-10.1-7.1-16.3-7.1C266 128 256 138 256 150.3V208H160c-17.7 0-32 14.3-32 32v32c0 17.7 14.3 32 32 32h96v57.7c0 12.3 10 22.3 22.3 22.3c6.2 0 12.1-2.6 16.3-7.1l99.9-107.1c3.5-3.8 5.5-8.7 5.5-13.8s-2-10.1-5.5-13.8L294.6 135.1z"]},ipe=rpe,ope={prefix:"far",iconName:"circle",icon:[512,512,[128308,128309,128992,128993,128994,128995,128996,9679,9898,9899,11044,61708,61915],"f111","M464 256A208 208 0 1 0 48 256a208 208 0 1 0 416 0zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256z"]},I9={prefix:"far",iconName:"clone",icon:[512,512,[],"f24d","M64 464H288c8.8 0 16-7.2 16-16V384h48v64c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V224c0-35.3 28.7-64 64-64h64v48H64c-8.8 0-16 7.2-16 16V448c0 8.8 7.2 16 16 16zM224 304H448c8.8 0 16-7.2 16-16V64c0-8.8-7.2-16-16-16H224c-8.8 0-16 7.2-16 16V288c0 8.8 7.2 16 16 16zm-64-16V64c0-35.3 28.7-64 64-64H448c35.3 0 64 28.7 64 64V288c0 35.3-28.7 64-64 64H224c-35.3 0-64-28.7-64-64z"]},ape={prefix:"fab",iconName:"apple",icon:[384,512,[],"f179","M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z"]},spe={prefix:"fab",iconName:"android",icon:[576,512,[],"f17b","M420.55,301.93a24,24,0,1,1,24-24,24,24,0,0,1-24,24m-265.1,0a24,24,0,1,1,24-24,24,24,0,0,1-24,24m273.7-144.48,47.94-83a10,10,0,1,0-17.27-10h0l-48.54,84.07a301.25,301.25,0,0,0-246.56,0L116.18,64.45a10,10,0,1,0-17.27,10h0l47.94,83C64.53,202.22,8.24,285.55,0,384H576c-8.24-98.45-64.54-181.78-146.85-226.55"]},lpe=Object.defineProperty,upe=(e,t,n)=>t in e?lpe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,zs=(e,t,n)=>(upe(e,typeof t!="symbol"?t+"":t,n),n),_o,ta=".",F9="function",U9="string",$9="__global__",kj="Provider",cpe=0,jj=Array.prototype.slice,fpe=function(e,t){var n=e[t];if(n===void 0&&_o.config.strict)throw new Error("Bottle was unable to resolve a service. `"+t+"` is undefined.");return n},fw=function(e){var t;return this.nested[e]||(t=_o.pop(),this.nested[e]=t,this.factory(e,function(){return t.container})),this.nested[e]},B9=function(e){return e.split(ta).reduce(fpe,this)},dpe=function(e,t,n,r){var i={configurable:!0,enumerable:!0};return e.length?i.get=function(){var o=0,a=function(s){if(s)throw s;e[o]&&e[o++](n,a)};return a(),n}:(i.value=n,i.writable=!0),Object.defineProperty(r,t,i),r[t]},ppe=function(e,t){var n,r;return typeof e===F9&&(t=e,e=$9),n=e.split(ta),r=n.shift(),n.length?fw.call(this,r).middleware(n.join(ta),t):(this.middlewares[r]||(this.middlewares[r]=[]),this.middlewares[r].push(t)),this},hpe=function(e,t){return t(e)},JD=function(e,t){return(e[t]||[]).concat(e.__global__||[])},mpe=function(e,t){var n,r,i,o,a;return this.id,i=this.container,o=this.decorators,a=this.middlewares,n=e+kj,r=Object.create(null),r[n]={configurable:!0,enumerable:!0,get:function(){var s=new t;return delete i[n],i[n]=s,s}},r[e]={configurable:!0,enumerable:!0,get:function(){var s=i[n],l;return s&&(l=JD(o,e).reduce(hpe,s.$get(i)),delete i[n],delete i[e]),l===void 0?l:dpe(JD(a,e),e,l,i)}},Object.defineProperties(i,r),this},z9=function(e,t){var n,r;return n=e.split(ta),this.providerMap[e]&&n.length===1&&!this.container[e+kj]?console.error(e+" provider already instantiated."):(this.originalProviders[e]=t,this.providerMap[e]=!0,r=n.shift(),n.length?(fw.call(this,r).provider(n.join(ta),t),this):mpe.call(this,r,t))},Pj=function(e,t){return z9.call(this,e,function(){this.$get=t})},V9=function(e,t,n){var r=arguments.length>3?jj.call(arguments,3):[],i=this;return Pj.call(this,e,function(){var o=t,a=r.map(B9,i.container);return n?new(t.bind.apply(t,[null].concat(a))):o.apply(null,a)})},vpe=function(e,t){return V9.apply(this,[e,t,!0].concat(jj.call(arguments,2)))},gpe=function(e,t){return V9.apply(this,[e,t,!1].concat(jj.call(arguments,2)))},H9=function(e,t){Object.defineProperty(this,e,{configurable:!0,enumerable:!0,value:t,writable:!0})},W9=function(e,t){var n=e[t];return n||(n={},H9.call(e,t,n)),n},ype=function(e,t){var n;return n=e.split(ta),e=n.pop(),H9.call(n.reduce(W9,this.container),e,t),this},bpe=function(e,t){Object.defineProperty(this,e,{configurable:!1,enumerable:!0,value:t,writable:!1})},_pe=function(e,t){var n=e.split(ta);return e=n.pop(),bpe.call(n.reduce(W9,this.container),e,t),this},Y9=function(e,t){var n,r;return typeof e===F9&&(t=e,e=$9),n=e.split(ta),r=n.shift(),n.length?fw.call(this,r).decorator(n.join(ta),t):(this.decorators[r]||(this.decorators[r]=[]),this.decorators[r].push(t)),this},wpe=function(e){return this.deferred.push(e),this},xpe=function(e){return(e||[]).map(B9,this.container)},Ope=function(e,t){return Pj.call(this,e,function(n){return{instance:t.bind(t,n)}})},Spe=function(e){return!/^\$(?:decorator|register|list)$|Provider$/.test(e)},Aj=function(e){return Object.keys(e||this.container||{}).filter(Spe)},nb={},Epe=function(e){var t;return typeof e===U9?(t=nb[e],t||(nb[e]=t=new _o,t.constant("BOTTLE_NAME",e)),t):new _o},Tpe=function(e){typeof e===U9?delete nb[e]:nb={}},G9=function(e){var t=e.$value===void 0?e:e.$value;return this[e.$type||"service"].apply(this,[e.$name,t].concat(e.$inject||[]))},eL=function(e){delete this.providerMap[e],delete this.container[e],delete this.container[e+kj]},Cpe=function(e){var t=this.originalProviders,n=Array.isArray(e);Object.keys(this.originalProviders).forEach(function(r){if(!(n&&e.indexOf(r)===-1)){var i=r.split(ta);i.length>1&&i.forEach(eL,fw.call(this,i[0])),eL.call(this,r),this.provider(r,t[r])}},this)},kpe=function(e){return this.deferred.forEach(function(t){t(e)}),this};_o=function e(t){if(!(this instanceof e))return e.pop(t);this.id=cpe++,this.decorators={},this.middlewares={},this.nested={},this.providerMap={},this.originalProviders={},this.deferred=[],this.container={$decorator:Y9.bind(this),$register:G9.bind(this),$list:Aj.bind(this)}};_o.prototype={constant:_pe,decorator:Y9,defer:wpe,digest:xpe,factory:Pj,instanceFactory:Ope,list:Aj,middleware:ppe,provider:z9,resetProviders:Cpe,register:G9,resolve:kpe,service:vpe,serviceFactory:gpe,value:ype};_o.pop=Epe;_o.clear=Tpe;_o.list=Aj;_o.config={strict:!1};const jpe=_o,Ppe=({listDomains:e,value:t,domainsList:n,onChange:r})=>{const[i,,o,a]=Cn(),{domains:s}=n,l=!t,u=I.useCallback(()=>{r(""),a()},[r,a]),f=I.useCallback(()=>{r(""),o()},[r,o]);return I.useEffect(()=>{e()},[e]),i?y.jsxs(nw,{children:[y.jsx(Cu,{value:t??"",placeholder:"Domain",onChange:d=>r(d.target.value)}),y.jsx(_t,{id:"backToDropdown",outline:!0,type:"button",className:"domains-dropdown__back-btn","aria-label":"Back to domains list",onClick:u,children:y.jsx(Ne,{icon:kee})}),y.jsx(Jr,{target:"backToDropdown",placement:"left",trigger:"hover",children:"Existing domains"})]}):y.jsxs(Qa,{text:l?"Domain":`Domain: ${t}`,className:l?"domains-dropdown__toggle-btn":"domains-dropdown__toggle-btn--active",children:[s.map(({domain:d,isDefault:p})=>y.jsxs(Re,{active:(t===d||p)&&l,onClick:()=>r(d),children:[d,p&&y.jsx("span",{className:"float-end text-muted",children:"default"})]},d)),y.jsx(Re,{divider:!0}),y.jsx(Re,{onClick:f,children:y.jsx("i",{children:"New domain"})})]})},Ape=e=>(e==null?void 0:e.type)===Tj.INVALID_ARGUMENT||(e==null?void 0:e.type)===Cj.INVALID_ARGUMENT,Npe=e=>(e==null?void 0:e.type)==="INVALID_SHORTCODE_DELETION"||(e==null?void 0:e.type)===Tj.INVALID_SHORT_URL_DELETION||(e==null?void 0:e.type)===Cj.INVALID_SHORT_URL_DELETION,Mpe=e=>!!e&&typeof e=="object"&&["type","detail","title","status"].every(t=>t in e),Qi=e=>Mpe(e)?e:void 0,Ua=({errorData:e,fallbackMessage:t})=>y.jsxs(y.Fragment,{children:[(e==null?void 0:e.detail)??t,Ape(e)&&y.jsxs("p",{className:"mb-0",children:["Invalid elements: [",e.invalidElements.join(", "),"]"]})]});function q9(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;ty.jsx("button",{type:"button",className:We("border-0",t),style:{backgroundColor:"inherit",fontWeight:"inherit",color:"inherit",...e},...n}),K9=I.createContext(""),Rpe=K9.Provider,ml=()=>I.useContext(K9),Z9=I.createContext(void 0),{Provider:Nj}=Z9,dw=()=>I.useContext(Z9),Dpe=5,Mj=()=>{const[e,t]=I.useState([]),n=I.useMemo(()=>e.length>=Dpe,[e.length]),r=I.useCallback(s=>!n&&t(l=>[...l,s]),[n]),i=I.useCallback(s=>!n&&e.every(l=>l.name!==s),[e,n]),o=I.useCallback(s=>t(l=>l.filter(u=>u!==s)),[]),a=I.useCallback(()=>t([]),[]);return{itemsToCompare:e,addItemToCompare:r,removeItemToCompare:o,clearItemsToCompare:a,canAddItemWithName:i}},Rj=({className:e,type:t})=>{const n=ml(),r=dw(),i=I.useMemo(()=>r?encodeURIComponent(r.itemsToCompare.map(l=>l.query).join(",")):"",[r]);if(!r||r.itemsToCompare.length===0)return null;const{itemsToCompare:o,clearItemsToCompare:a,removeItemToCompare:s}=r;return y.jsx("div",{className:We("top-sticky",e),children:y.jsxs(Qt,{bodyClassName:"d-md-flex gap-3 align-items-center",children:[y.jsx("ul",{className:"d-flex flex-wrap gap-1 flex-grow-1 p-0 m-0",children:o.map((l,u)=>{var f;return y.jsxs("li",{className:We("badge pe-1",{"bg-secondary":!((f=l.style)!=null&&f.backgroundColor)}),style:l.style,children:[l.name,y.jsx(jf,{"aria-label":`Remove ${l.name}`,className:"fw-bold fs-6",onClick:()=>s(l),children:"×"})]},`${l.name}_${u}`)})}),y.jsxs("div",{className:"d-flex mt-3 mt-md-0",children:[y.jsxs(_t,{outline:!0,color:"primary",className:"flex-grow-1 indivisible",disabled:o.length<2,tag:$t,to:`${n}/${t}/compare-visits?${t}=${i}`,children:[y.jsx(Ne,{icon:q_,fixedWidth:!0,className:"me-1"}),"Compare (",o.length,"/5) »"]}),y.jsx(_t,{"aria-label":"Close compare",outline:!0,color:"secondary",className:"ms-2 fw-bold",onClick:a,children:"×"})]})]})})},Lpe=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,tL=e=>{if(typeof e!="string")throw new TypeError("Invalid argument expected string");const t=e.match(Lpe);if(!t)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return t.shift(),t},nL=e=>e==="*"||e==="x"||e==="X",rL=e=>{const t=parseInt(e,10);return isNaN(t)?e:t},Ipe=(e,t)=>typeof e!=typeof t?[String(e),String(t)]:[e,t],Fpe=(e,t)=>{if(nL(e)||nL(t))return 0;const[n,r]=Ipe(rL(e),rL(t));return n>r?1:n{for(let n=0;n{const n=tL(e),r=tL(t),i=n.pop(),o=r.pop(),a=iL(n,r);return a!==0?a:i&&o?iL(i.split("."),o.split(".")):i||o?i?-1:1:0},oL=(e,t,n)=>{$pe(n);const r=Upe(e,t);return Q9[n].includes(r)},Q9={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]},aL=Object.keys(Q9),$pe=e=>{if(typeof e!="string")throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);if(aL.indexOf(e)===-1)throw new Error(`Invalid operator, expected one of ${aL.join("|")}`)},Bpe=(e,{maxVersion:t,minVersion:n})=>{const r=!n||oL(e,n,">=");return(!t||oL(e,t,"<="))&&r},X9={domainVisits:"3.1.0",excludeBotsOnShortUrls:"3.4.0",filterDisabledUrls:"3.4.0",deviceLongUrls:"3.5.0",shortUrlVisitsDeletion:"3.6.0",orphanVisitsDeletion:"3.6.0"};Object.freeze(X9);const uc=(e,t)=>t==="latest"||Bpe(t,{minVersion:X9[e]}),J9=e=>({domainVisits:uc("domainVisits",e),excludeBotsOnShortUrls:uc("excludeBotsOnShortUrls",e),filterDisabledUrls:uc("filterDisabledUrls",e),deviceLongUrls:uc("deviceLongUrls",e),shortUrlVisitsDeletion:uc("shortUrlVisitsDeletion",e),orphanVisitsDeletion:uc("orphanVisitsDeletion",e)}),ez=I.createContext(J9("0.0.0")),zpe=ez.Provider,Vpe=e=>I.useMemo(()=>J9(e),[e]),$u=e=>I.useContext(ez)[e],tz=(e,t)=>e.reduce((n,r)=>{const i=t(r);return n[i]=(n[i]||0)+1,n},{}),Hpe=(e,t)=>e.reduce((n,r)=>{const i=t(r);return(n[i]=n[i]||[]).push(r),n},{}),CO=e=>Object.prototype.toString.call(e)==="[object Object]",nz=(e,t)=>{const n={...e};return!CO(e)||!CO(t)||Object.keys(t).forEach(r=>{CO(t[r])?n[r]=r in e&&e[r]!==void 0?nz(e[r],t[r]):{...t[r]}:n[r]=t[r]}),n},Dj=(e,t)=>Array.from({length:t-e},(n,r)=>e+r),Wpe=(e,t)=>[...e].sort((n,r)=>{const i=t(n),o=t(r);return i===o?0:i{const n=[];for(let r=0;rObject.fromEntries(e.map((n,r)=>[n,t[r]])),dh=(e,t,n)=>n==null?e.shortCode===t&&!e.domain:e.shortCode===t&&e.domain===n,Ype=(e,t)=>!e.domain&&t===hw?!0:e.domain===t,Gpe=(e,t)=>{const n=(t==null?void 0:t.validateUrls)??!1;return e?{longUrl:e.longUrl,tags:e.tags,title:e.title??void 0,domain:e.domain??void 0,validSince:e.meta.validSince??void 0,validUntil:e.meta.validUntil??void 0,maxVisits:e.meta.maxVisits??void 0,crawlable:e.crawlable,forwardQuery:e.forwardQuery,deviceLongUrls:e.deviceLongUrls&&{android:e.deviceLongUrls.android??void 0,ios:e.deviceLongUrls.ios??void 0,desktop:e.deviceLongUrls.desktop??void 0},validateUrl:n}:{longUrl:"",validateUrl:n}},rz=e=>e.replaceAll("/","__"),Lj=e=>e.replaceAll("__","/"),Ij=({domain:e,shortCode:t})=>`${e??hw}__${rz(t)}`,iz=e=>{const[t,n]=e.split(/__(.+)/);if(!n)throw new Error(`It was not possible to parse domain and short code from "${e}"`);return{domain:t===hw?null:t,shortCode:Lj(n)}};function Je(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function wo(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function Fj(e,t){const n=Je(e);return isNaN(t)?wo(e,NaN):(t&&n.setDate(n.getDate()+t),n)}function qpe(e,t){const n=Je(e);if(isNaN(t))return wo(e,NaN);if(!t)return n;const r=n.getDate(),i=wo(e,n.getTime());i.setMonth(n.getMonth()+t+1,0);const o=i.getDate();return r>=o?i:(n.setFullYear(i.getFullYear(),i.getMonth(),r),n)}function Kpe(e,t){const{years:n=0,months:r=0,weeks:i=0,days:o=0,hours:a=0,minutes:s=0,seconds:l=0}=t,u=Je(e),f=r||n?qpe(u,r+n*12):u,d=o||i?Fj(f,o+i*7):f,p=s+a*60,m=(l+p*60)*1e3;return wo(e,d.getTime()+m)}const oz=6048e5,Zpe=864e5,az=6e4,Uj=36e5,Bg=43200,lL=1440;let Qpe={};function Od(){return Qpe}function sm(e,t){var n,r,i,o;const a=Od(),s=(t==null?void 0:t.weekStartsOn)??((r=(n=t==null?void 0:t.locale)==null?void 0:n.options)==null?void 0:r.weekStartsOn)??a.weekStartsOn??((o=(i=a.locale)==null?void 0:i.options)==null?void 0:o.weekStartsOn)??0,l=Je(e),u=l.getDay(),f=(u=i.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function Pu(e){const t=Je(e);return t.setHours(0,0,0,0),t}function rb(e){const t=Je(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function lz(e,t){const n=Pu(e),r=Pu(t),i=+n-rb(n),o=+r-rb(r);return Math.round((i-o)/Zpe)}function Xpe(e){const t=sz(e),n=wo(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),lm(n)}function uz(e){let t;return e.forEach(function(n){const r=Je(n);(t===void 0||t{const r=Je(n);(!t||t>r||isNaN(+r))&&(t=r)}),t||new Date(NaN)}function Ry(e,t){const n=Je(e),r=Je(t),i=n.getTime()-r.getTime();return i<0?-1:i>0?1:i}function ehe(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function the(e){if(!ehe(e)&&typeof e!="number")return!1;const t=Je(e);return!isNaN(Number(t))}function nhe(e,t){const n=Je(e),r=Je(t),i=n.getFullYear()-r.getFullYear(),o=n.getMonth()-r.getMonth();return i*12+o}function bv(e,t){const n=Je(e),r=Je(t),i=uL(n,r),o=Math.abs(lz(n,r));n.setDate(n.getDate()-i*o);const a=+(uL(n,r)===-i),s=i*(o-a);return s===0?0:s}function uL(e,t){const n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function $j(e){return t=>{const n=(e?Math[e]:Math.trunc)(t);return n===0?0:n}}function cz(e,t){return+Je(e)-+Je(t)}function rhe(e,t,n){const r=cz(e,t)/Uj;return $j(n==null?void 0:n.roundingMethod)(r)}function Pf(e){const t=Je(e);return t.setHours(23,59,59,999),t}function ihe(e){const t=Je(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function ohe(e){const t=Je(e);return+Pf(t)==+ihe(t)}function ib(e,t){const n=Je(e),r=Je(t),i=Ry(n,r),o=Math.abs(nhe(n,r));let a;if(o<1)a=0;else{n.getMonth()===1&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-i*o);let s=Ry(n,r)===-i;ohe(Je(e))&&o===1&&Ry(e,r)===1&&(s=!1),a=i*(o-Number(s))}return a===0?0:a}function ahe(e,t,n){const r=cz(e,t)/1e3;return $j(n==null?void 0:n.roundingMethod)(r)}function she(e,t,n){const r=bv(e,t)/7;return $j(n==null?void 0:n.roundingMethod)(r)}function lhe(e){const t=Je(e),n=wo(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function uhe(e,t){var n,r,i,o;const a=Od(),s=(t==null?void 0:t.weekStartsOn)??((r=(n=t==null?void 0:t.locale)==null?void 0:n.options)==null?void 0:r.weekStartsOn)??a.weekStartsOn??((o=(i=a.locale)==null?void 0:i.options)==null?void 0:o.weekStartsOn)??0,l=Je(e),u=l.getDay(),f=(u{let r;const i=fhe[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function kO(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const phe={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},hhe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},mhe={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},vhe={date:kO({formats:phe,defaultWidth:"full"}),time:kO({formats:hhe,defaultWidth:"full"}),dateTime:kO({formats:mhe,defaultWidth:"full"})},ghe={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},yhe=(e,t,n,r)=>ghe[e];function mp(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const a=e.defaultFormattingWidth||e.defaultWidth,s=n!=null&&n.width?String(n.width):a;i=e.formattingValues[s]||e.formattingValues[a]}else{const a=e.defaultWidth,s=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[s]||e.values[a]}const o=e.argumentCallback?e.argumentCallback(t):t;return i[o]}}const bhe={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},_he={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},whe={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},xhe={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Ohe={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},She={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Ehe=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},The={ordinalNumber:Ehe,era:mp({values:bhe,defaultWidth:"wide"}),quarter:mp({values:_he,defaultWidth:"wide",argumentCallback:e=>e-1}),month:mp({values:whe,defaultWidth:"wide"}),day:mp({values:xhe,defaultWidth:"wide"}),dayPeriod:mp({values:Ohe,defaultWidth:"wide",formattingValues:She,defaultFormattingWidth:"wide"})};function vp(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;const a=o[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?khe(s,d=>d.test(a)):Che(s,d=>d.test(a));let u;u=e.valueCallback?e.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;const f=t.slice(a.length);return{value:u,rest:f}}}function Che(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function khe(e,t){for(let n=0;n{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],o=t.match(e.parsePattern);if(!o)return null;let a=e.valueCallback?e.valueCallback(o[0]):o[0];a=n.valueCallback?n.valueCallback(a):a;const s=t.slice(i.length);return{value:a,rest:s}}}const Phe=/^(\d+)(th|st|nd|rd)?/i,Ahe=/\d+/i,Nhe={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Mhe={any:[/^b/i,/^(a|c)/i]},Rhe={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Dhe={any:[/1/i,/2/i,/3/i,/4/i]},Lhe={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Ihe={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Fhe={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Uhe={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},$he={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Bhe={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},zhe={ordinalNumber:jhe({matchPattern:Phe,parsePattern:Ahe,valueCallback:e=>parseInt(e,10)}),era:vp({matchPatterns:Nhe,defaultMatchWidth:"wide",parsePatterns:Mhe,defaultParseWidth:"any"}),quarter:vp({matchPatterns:Rhe,defaultMatchWidth:"wide",parsePatterns:Dhe,defaultParseWidth:"any",valueCallback:e=>e+1}),month:vp({matchPatterns:Lhe,defaultMatchWidth:"wide",parsePatterns:Ihe,defaultParseWidth:"any"}),day:vp({matchPatterns:Fhe,defaultMatchWidth:"wide",parsePatterns:Uhe,defaultParseWidth:"any"}),dayPeriod:vp({matchPatterns:$he,defaultMatchWidth:"any",parsePatterns:Bhe,defaultParseWidth:"any"})},fz={code:"en-US",formatDistance:dhe,formatLong:vhe,formatRelative:yhe,localize:The,match:zhe,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Vhe(e){const t=Je(e);return lz(t,lhe(t))+1}function Hhe(e){const t=Je(e),n=+lm(t)-+Xpe(t);return Math.round(n/oz)+1}function dz(e,t){var n,r,i,o;const a=Je(e),s=a.getFullYear(),l=Od(),u=(t==null?void 0:t.firstWeekContainsDate)??((r=(n=t==null?void 0:t.locale)==null?void 0:n.options)==null?void 0:r.firstWeekContainsDate)??l.firstWeekContainsDate??((o=(i=l.locale)==null?void 0:i.options)==null?void 0:o.firstWeekContainsDate)??1,f=wo(e,0);f.setFullYear(s+1,0,u),f.setHours(0,0,0,0);const d=sm(f,t),p=wo(e,0);p.setFullYear(s,0,u),p.setHours(0,0,0,0);const m=sm(p,t);return a.getTime()>=d.getTime()?s+1:a.getTime()>=m.getTime()?s:s-1}function Whe(e,t){var n,r,i,o;const a=Od(),s=(t==null?void 0:t.firstWeekContainsDate)??((r=(n=t==null?void 0:t.locale)==null?void 0:n.options)==null?void 0:r.firstWeekContainsDate)??a.firstWeekContainsDate??((o=(i=a.locale)==null?void 0:i.options)==null?void 0:o.firstWeekContainsDate)??1,l=dz(e,t),u=wo(e,0);return u.setFullYear(l,0,s),u.setHours(0,0,0,0),sm(u,t)}function Yhe(e,t){const n=Je(e),r=+sm(n,t)-+Whe(n,t);return Math.round(r/oz)+1}function ft(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const as={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return ft(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):ft(n+1,2)},d(e,t){return ft(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return ft(e.getHours()%12||12,t.length)},H(e,t){return ft(e.getHours(),t.length)},m(e,t){return ft(e.getMinutes(),t.length)},s(e,t){return ft(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return ft(i,t.length)}},cc={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},cL={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return as.y(e,t)},Y:function(e,t,n,r){const i=dz(e,r),o=i>0?i:1-i;if(t==="YY"){const a=o%100;return ft(a,2)}return t==="Yo"?n.ordinalNumber(o,{unit:"year"}):ft(o,t.length)},R:function(e,t){const n=sz(e);return ft(n,t.length)},u:function(e,t){const n=e.getFullYear();return ft(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return ft(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return ft(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return as.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return ft(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const i=Yhe(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):ft(i,t.length)},I:function(e,t,n){const r=Hhe(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):ft(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):as.d(e,t)},D:function(e,t,n){const r=Vhe(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):ft(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return ft(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return ft(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),i=r===0?7:r;switch(t){case"i":return String(i);case"ii":return ft(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let i;switch(r===12?i=cc.noon:r===0?i=cc.midnight:i=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let i;switch(r>=17?i=cc.evening:r>=12?i=cc.afternoon:r>=4?i=cc.morning:i=cc.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return as.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):as.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):ft(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):ft(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):as.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):as.s(e,t)},S:function(e,t){return as.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return dL(r);case"XXXX":case"XX":return $l(r);case"XXXXX":case"XXX":default:return $l(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return dL(r);case"xxxx":case"xx":return $l(r);case"xxxxx":case"xxx":default:return $l(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+fL(r,":");case"OOOO":default:return"GMT"+$l(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+fL(r,":");case"zzzz":default:return"GMT"+$l(r,":")}},t:function(e,t,n){const r=Math.trunc(e.getTime()/1e3);return ft(r,t.length)},T:function(e,t,n){const r=e.getTime();return ft(r,t.length)}};function fL(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),o=r%60;return o===0?n+String(i):n+String(i)+t+ft(o,2)}function dL(e,t){return e%60===0?(e>0?"-":"+")+ft(Math.abs(e)/60,2):$l(e,t)}function $l(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=ft(Math.trunc(r/60),2),o=ft(r%60,2);return n+i+t+o}const pL=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},pz=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},Ghe=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return pL(e,t);let o;switch(r){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",pL(r,t)).replace("{{time}}",pz(i,t))},qhe={p:pz,P:Ghe},Khe=/^D+$/,Zhe=/^Y+$/,Qhe=["D","DD","YY","YYYY"];function Xhe(e){return Khe.test(e)}function Jhe(e){return Zhe.test(e)}function eme(e,t,n){const r=tme(e,t,n);if(console.warn(r),Qhe.includes(e))throw new RangeError(r)}function tme(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const nme=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,rme=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ime=/^'([^]*?)'?$/,ome=/''/g,ame=/[a-zA-Z]/;function ob(e,t,n){var r,i,o,a,s,l,u,f;const d=Od(),p=(n==null?void 0:n.locale)??d.locale??fz,m=(n==null?void 0:n.firstWeekContainsDate)??((i=(r=n==null?void 0:n.locale)==null?void 0:r.options)==null?void 0:i.firstWeekContainsDate)??d.firstWeekContainsDate??((a=(o=d.locale)==null?void 0:o.options)==null?void 0:a.firstWeekContainsDate)??1,v=(n==null?void 0:n.weekStartsOn)??((l=(s=n==null?void 0:n.locale)==null?void 0:s.options)==null?void 0:l.weekStartsOn)??d.weekStartsOn??((f=(u=d.locale)==null?void 0:u.options)==null?void 0:f.weekStartsOn)??0,g=Je(e);if(!the(g))throw new RangeError("Invalid time value");let x=t.match(rme).map(_=>{const w=_[0];if(w==="p"||w==="P"){const O=qhe[w];return O(_,p.formatLong)}return _}).join("").match(nme).map(_=>{if(_==="''")return{isToken:!1,value:"'"};const w=_[0];if(w==="'")return{isToken:!1,value:sme(_)};if(cL[w])return{isToken:!0,value:_};if(w.match(ame))throw new RangeError("Format string contains an unescaped latin alphabet character `"+w+"`");return{isToken:!1,value:_}});p.localize.preprocessor&&(x=p.localize.preprocessor(g,x));const b={firstWeekContainsDate:m,weekStartsOn:v,locale:p};return x.map(_=>{if(!_.isToken)return _.value;const w=_.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&Jhe(w)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&Xhe(w))&&eme(w,t,String(e));const O=cL[w[0]];return O(g,w,p.localize,b)}).join("")}function sme(e){const t=e.match(ime);return t?t[1].replace(ome,"'"):e}function lme(e,t,n){const r=Od(),i=(n==null?void 0:n.locale)??r.locale??fz,o=2520,a=Ry(e,t);if(isNaN(a))throw new RangeError("Invalid time value");const s=Object.assign({},n,{addSuffix:n==null?void 0:n.addSuffix,comparison:a});let l,u;a>0?(l=Je(t),u=Je(e)):(l=Je(e),u=Je(t));const f=ahe(u,l),d=(rb(u)-rb(l))/1e3,p=Math.round((f-d)/60);let m;if(p<2)return n!=null&&n.includeSeconds?f<5?i.formatDistance("lessThanXSeconds",5,s):f<10?i.formatDistance("lessThanXSeconds",10,s):f<20?i.formatDistance("lessThanXSeconds",20,s):f<40?i.formatDistance("halfAMinute",0,s):f<60?i.formatDistance("lessThanXMinutes",1,s):i.formatDistance("xMinutes",1,s):p===0?i.formatDistance("lessThanXMinutes",1,s):i.formatDistance("xMinutes",p,s);if(p<45)return i.formatDistance("xMinutes",p,s);if(p<90)return i.formatDistance("aboutXHours",1,s);if(pr.getTime()}function ab(e,t){const n=Je(e),r=Je(t);return+n<+r}function xE(e,t){const n=Je(e),r=Je(t);return+n==+r}function dme(e,t){const n=+Je(e),[r,i]=[+Je(t.start),+Je(t.end)].sort((o,a)=>o-a);return n>=r&&n<=i}function sb(e,t){return Fj(e,-t)}function nl(e,t){const n=(t==null?void 0:t.additionalDigits)??2,r=vme(e);let i;if(r.date){const l=gme(r.date,n);i=yme(l.restDateString,l.year)}if(!i||isNaN(i.getTime()))return new Date(NaN);const o=i.getTime();let a=0,s;if(r.time&&(a=bme(r.time),isNaN(a)))return new Date(NaN);if(r.timezone){if(s=_me(r.timezone),isNaN(s))return new Date(NaN)}else{const l=new Date(o+a),u=new Date(0);return u.setFullYear(l.getUTCFullYear(),l.getUTCMonth(),l.getUTCDate()),u.setHours(l.getUTCHours(),l.getUTCMinutes(),l.getUTCSeconds(),l.getUTCMilliseconds()),u}return new Date(o+a+s)}const zg={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},pme=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,hme=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,mme=/^([+-])(\d{2})(?::?(\d{2}))?$/;function vme(e){const t={},n=e.split(zg.dateTimeDelimiter);let r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],zg.timeZoneDelimiter.test(t.date)&&(t.date=e.split(zg.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){const i=zg.timezone.exec(r);i?(t.time=r.replace(i[1],""),t.timezone=i[1]):t.time=r}return t}function gme(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};const i=r[1]?parseInt(r[1]):null,o=r[2]?parseInt(r[2]):null;return{year:o===null?i:o*100,restDateString:e.slice((r[1]||r[2]).length)}}function yme(e,t){if(t===null)return new Date(NaN);const n=e.match(pme);if(!n)return new Date(NaN);const r=!!n[4],i=gp(n[1]),o=gp(n[2])-1,a=gp(n[3]),s=gp(n[4]),l=gp(n[5])-1;if(r)return Eme(t,s,l)?wme(t,s,l):new Date(NaN);{const u=new Date(0);return!Ome(t,o,a)||!Sme(t,i)?new Date(NaN):(u.setUTCFullYear(t,o,Math.max(i,a)),u)}}function gp(e){return e?parseInt(e):1}function bme(e){const t=e.match(hme);if(!t)return NaN;const n=jO(t[1]),r=jO(t[2]),i=jO(t[3]);return Tme(n,r,i)?n*Uj+r*az+i*1e3:NaN}function jO(e){return e&&parseFloat(e.replace(",","."))||0}function _me(e){if(e==="Z")return 0;const t=e.match(mme);if(!t)return 0;const n=t[1]==="+"?-1:1,r=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return Cme(r,i)?n*(r*Uj+i*az):NaN}function wme(e,t,n){const r=new Date(0);r.setUTCFullYear(e,0,4);const i=r.getUTCDay()||7,o=(t-1)*7+n+1-i;return r.setUTCDate(r.getUTCDate()+o),r}const xme=[31,null,31,30,31,30,31,31,30,31,30,31];function hz(e){return e%400===0||e%4===0&&e%100!==0}function Ome(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(xme[t]||(hz(e)?29:28))}function Sme(e,t){return t>=1&&t<=(hz(e)?366:365)}function Eme(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function Tme(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function Cme(e,t){return t>=0&&t<=59}const mz="yyyy-MM-dd",Bj="yyyy-MM-dd HH:mm",rl=()=>new Date,zj=e=>typeof e!="string",Vj=(e,t)=>!e||!zj(e)?e:t?ob(e,t):ume(e),il=e=>Vj(e,void 0),eu=e=>Vj(e,mz),lb=e=>Vj(e,Bj),Mi=e=>zj(e)?e:nl(e),_v=(e,t,n)=>{const r=Mi(e),i=t&&Mi(t),o=n&&Mi(n);if(i&&o)try{return dme(r,{start:i,end:o})}catch{return!1}return i?xE(r,i)||fme(r,i):o?xE(r,o)||ab(r,o):!0},jl=(e,t)=>xE(e,t)||ab(e,t),pw="all",vz={today:"Today",yesterday:"Yesterday",last7Days:"Last 7 days",last30Days:"Last 30 days",last90Days:"Last 90 days",last180Days:"Last 180 days",last365Days:"Last 365 days",[pw]:void 0},gz=Object.keys(vz),kme=e=>!e||!e.startDate&&!e.endDate,ub=e=>typeof e=="string"&&gz.includes(e),jme=gz.filter(e=>e!==pw),hL=e=>e?Mi(e):null,yz=(e,t)=>({startDate:hL(e),endDate:hL(t)}),Pme=e=>{if(!(!e||kme(e)))return e.startDate&&!e.endDate?`Since ${eu(e.startDate)}`:!e.startDate&&e.endDate?`Until ${eu(e.endDate)}`:`${eu(e.startDate)} - ${eu(e.endDate)}`},bz=e=>{if(!(!e||e===pw))return ub(e)?vz[e]:Pme(e)},ji=e=>Pu(sb(rl(),e)),fc=e=>({startDate:e,endDate:Pf(rl())}),_z=e=>{var t;return((t=[[()=>e==="today",()=>fc(Pu(rl()))],[()=>e==="yesterday",()=>({startDate:ji(1),endDate:Pf(sb(rl(),1))})],[()=>e==="last7Days",()=>fc(ji(7))],[()=>e==="last30Days",()=>fc(ji(30))],[()=>e==="last90Days",()=>fc(ji(90))],[()=>e==="last180Days",()=>fc(ji(180))],[()=>e==="last365Days",()=>fc(ji(365))]].find(([n])=>n()))==null?void 0:t[1]())??{}},Ame=e=>{var t;const n=Mi(e);return((t=[[()=>jl(Pu(rl()),n),"today"],[()=>jl(ji(1),n),"yesterday"],[()=>jl(ji(7),n),"last7Days"],[()=>jl(ji(30),n),"last30Days"],[()=>jl(ji(90),n),"last90Days"],[()=>jl(ji(180),n),"last180Days"],[()=>jl(ji(365),n),"last365Days"]].find(([r])=>r()))==null?void 0:t[1])??pw},wz=e=>ub(e)?_z(e):e,xz=e=>!!(e&&e.startDate),Nme=({startDate:e,endDate:t})=>{const n=bv(Pf(t??new Date),Pu(e))+1,r=sb(Pu(e),n),i=sb(Pf(e),1);return{startDate:r,endDate:i}},Mme=e=>{if(xz(e))return bv(e.endDate??new Date,e.startDate)},Hj=e=>e.visitedUrl!==void 0,Rme=e=>e.visitedUrl!==void 0,Dme=e=>{const t=Hpe(e,n=>Hj(n.visit)?"orphanVisits":"nonOrphanVisits");return{orphanVisits:[],nonOrphanVisits:[],...t}},Oz=(e,{shortCode:t,domain:n},{endDate:r,startDate:i}={})=>e.filter(({shortUrl:o,visit:a})=>o&&dh(o,t,n)&&_v(a.date,i,r)),Sz=(e,t,{endDate:n,startDate:r}={})=>e.filter(({shortUrl:i,visit:o})=>i&&Ype(i,t)&&_v(o.date,r,n)),Ez=(e,t,{endDate:n,startDate:r}={})=>e.filter(({shortUrl:i,visit:o})=>(i==null?void 0:i.tags.includes(t))&&_v(o.date,r,n)),Vg=(e,t)=>tz(e,n=>n[t]),Lme=e=>{const t=((e==null?void 0:e.startDate)&&il(e==null?void 0:e.startDate))??void 0,n=((e==null?void 0:e.endDate)&&il(e==null?void 0:e.endDate))??void 0;return{startDate:t,endDate:n}},OE=({filter:e,dateRange:t})=>{const{startDate:n,endDate:r}=Lme(t),i=(e==null?void 0:e.excludeBots)||void 0;return{startDate:n,endDate:r,excludeBots:i}},Ime=e=>xz(e.dateRange),Fme=({dateRange:e,...t})=>({...t,dateRange:Nme(e)}),pr=(e,t)=>L9(e,t,{serializeError:n=>n}),mL=5e3,Ume=2,$me=4,Bme=({currentPage:e,pagesCount:t})=>e>=t,zme=(e,t)=>t*100/e,Tz=({visitsLoader:e,shouldCancel:t,progressChanged:n,batchSize:r})=>{const i=async(a,s)=>Promise.all(s.map(async l=>e({...a,page:l,itemsPerPage:mL}).then(({data:u})=>u))).then(l=>l.flat()),o=async(a,s,l=0)=>{if(t())return[];const u=await i(a,s[l]);return n(zme(s.length,l+1)),l{const{pagination:s,data:l}=await e({...a,page:1,itemsPerPage:mL});if(Bme(s))return l;const u=Dj(Ume,s.pagesCount+1),f=nf(u,r);return s.pagesCount-1>r&&n(0),l.concat(await o(a,f))}},wv=(e,t)=>async n=>e?t({page:1,itemsPerPage:1,excludeBots:n}).then(({data:r})=>r[0]):Promise.resolve(void 0),xv=({typePrefix:e,createLoaders:t,shouldCancel:n})=>{const r=Mn(`${e}/progressChanged`),i=Mn(`${e}/fallbackToInterval`),o=pr(e,async(a,{getState:s,dispatch:l})=>{var u;const{params:f,options:d}=a,{visitsLoader:p,lastVisitLoader:m}=t(a),v=Mme(f.dateRange),g=OE(f),x=d.loadPrevInterval&&Ime(f)?OE(Fme(f)):void 0,b=$me/(x?2:1),_=x?{main:0,prev:0}:{main:0},w=(P,D)=>{_[P]=D;const N=Object.values(_),F=N.reduce((B,Y)=>B+Y,0);l(r(F/N.length))},O=Tz({visitsLoader:p,shouldCancel:()=>n(s),progressChanged:P=>w("main",P),batchSize:b}),[E,T,k]=await Promise.all([O(g),m((u=f.filter)==null?void 0:u.excludeBots),x?O(x).then(P=>P.map(D=>{if(v===void 0)return D;const{date:N,...F}=D,B=Fj(Mi(N),v);return{...F,date:il(B)}})):Promise.resolve(void 0)]);return!E.length&&T&&l(i(Ame(T.date))),{...a,visits:E,prevVisits:k}});return Object.assign(o,{progressChanged:r,fallbackToInterval:i})},Sd=Mn("shlink/visitCreation/createNewVisits",e=>({payload:{createdVisits:e}})),Ov=({name:e,asyncThunkCreator:t,initialState:n,filterCreatedVisits:r,extraReducers:i})=>{const{pending:o,rejected:a,fulfilled:s,progressChanged:l,fallbackToInterval:u}=t,{reducer:f,actions:d}=Dn({name:e,initialState:n,reducers:{cancelGetVisits:m=>({...m,cancelLoad:!0})},extraReducers:m=>{m.addCase(o,()=>({...n,loading:!0})),m.addCase(a,(v,{error:g})=>({...n,errorData:Qi(g)??null})),m.addCase(s,(v,{payload:g})=>({...v,...g,loading:!1,progress:null,errorData:null})),m.addCase(l,(v,{payload:g})=>({...v,progress:g})),m.addCase(u,(v,{payload:g})=>({...v,fallbackInterval:g})),m.addCase(Sd,(v,{payload:g})=>{const{visits:x}=v,b=r(v,g.createdVisits).map(({visit:_})=>_);return b.length?{...v,visits:[...b,...x]}:v}),i==null||i(m)}}),{cancelGetVisits:p}=d;return{reducer:f,cancelGetVisits:p}},Cz="shlink/domainVisits",hw="DEFAULT",Vme={visits:[],domain:"",loading:!1,cancelLoad:!1,errorData:null,progress:null},Hme=e=>xv({typePrefix:`${Cz}/getDomainVisits`,createLoaders:({domain:t,options:n})=>{const r=e(),{doIntervalFallback:i=!1}=n,o=s=>r.getDomainVisits(t,s),a=wv(i,s=>r.getDomainVisits(t,s));return{visitsLoader:o,lastVisitLoader:a}},shouldCancel:t=>t().domainVisits.cancelLoad}),Wme=e=>Ov({name:Cz,initialState:Vme,asyncThunkCreator:e,filterCreatedVisits:({domain:t,params:n},r)=>Sz(r,t,n==null?void 0:n.dateRange)}),Dy=({className:e="",placement:t,children:n})=>{const r=hl();return y.jsxs(y.Fragment,{children:[y.jsx("span",{className:e,ref:r,children:y.jsx(Ne,{icon:Ak})}),y.jsx(Jr,{target:r,placement:t,children:n})]})},Wj=e=>t=>{t.preventDefault(),e()},Yj=(e,t,n=1)=>Dj(n,e+1).map(t),Yme=e=>Array.isArray(e)&&e.length===0||typeof e=="string"&&e===""||typeof e=="object"&&Object.keys(e).length===0,Gl=e=>e!=null&&!Yme(e),PO=e=>e||null,SE=e=>e?"true":"false",AO=e=>e===void 0?void 0:SE(e),NO=({isLast:e,...t})=>y.jsx(Ny,{...t,required:!1,type:"url",placeholder:"No redirect",className:e?"mb-0":""}),Gme=({isOpen:e,toggle:t,domain:n,editDomainRedirects:r})=>{var i,o,a;const[s,l]=I.useState(((i=n.redirects)==null?void 0:i.baseUrlRedirect)??""),[u,f]=I.useState(((o=n.redirects)==null?void 0:o.regular404Redirect)??""),[d,p]=I.useState(((a=n.redirects)==null?void 0:a.invalidShortUrlRedirect)??""),m=Wj(async()=>r({domain:n.domain,redirects:{baseUrlRedirect:PO(s),regular404Redirect:PO(u),invalidShortUrlRedirect:PO(d)}}).then(t));return y.jsx(Ka,{isOpen:e,toggle:t,centered:!0,children:y.jsxs("form",{name:"domainRedirectsModal",onSubmit:m,children:[y.jsxs(Za,{toggle:t,children:["Edit redirects for ",y.jsx("b",{children:n.domain})]}),y.jsxs(aa,{children:[y.jsxs(NO,{value:s,onChange:l,children:[y.jsxs(Dy,{className:"me-2",placement:"bottom",children:["Visitors accessing the base url, as in ",y.jsxs("b",{children:["https://",n.domain,"/"]}),", will be redirected to this URL."]}),"Base URL"]}),y.jsxs(NO,{value:u,onChange:f,children:[y.jsxs(Dy,{className:"me-2",placement:"bottom",children:["Visitors accessing a url not matching a short URL pattern, as in ",y.jsxs("b",{children:["https://",n.domain,"/???/[...]"]}),", will be redirected to this URL."]}),"Regular 404"]}),y.jsxs(NO,{value:d,isLast:!0,onChange:p,children:[y.jsx(Dy,{className:"me-2",placement:"bottom",children:"Visitors accessing a url matching a short URL pattern, but not matching an existing short code, will be redirected to this URL."}),"Invalid short URL"]})]}),y.jsxs(Uu,{children:[y.jsx(_t,{color:"link",type:"button",onClick:t,children:"Cancel"}),y.jsx(_t,{color:"primary",children:"Save"})]})]})})},qme=({domain:e,editDomainRedirects:t})=>{const[n,r]=Cn(),i=$u("domainVisits"),o=ml(),a=dw();return y.jsxs(ow,{children:[i&&y.jsxs(y.Fragment,{children:[y.jsxs(Re,{tag:$t,to:`${o}/domain/${e.domain}${e.isDefault?`_${hw}`:""}/visits`,children:[y.jsx(Ne,{icon:Pk,fixedWidth:!0})," Visit stats"]}),y.jsxs(Re,{disabled:!a||!a.canAddItemWithName(e.domain),onClick:()=>a==null?void 0:a.addItemToCompare({name:e.domain,query:e.domain}),children:[y.jsx(Ne,{icon:q_,fixedWidth:!0})," Compare visits"]}),y.jsx(Re,{divider:!0,tag:"hr"})]}),y.jsxs(Re,{onClick:r,children:[y.jsx(Ne,{fixedWidth:!0,icon:jk})," Edit redirects"]}),y.jsx(Gme,{domain:e,isOpen:n,toggle:r,editDomainRedirects:t})]})},Ta=({href:e,children:t,rel:n,...r})=>y.jsx("a",{target:"_blank",rel:`noopener noreferrer${n?` ${n}`:""}`,href:e,...r,children:t??e}),Kme="Left",Zme="Right",Qme="Up",Xme="Down",Uc={delta:10,preventScrollOnSwipe:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0,swipeDuration:1/0,touchEventOptions:{passive:!0}},EE={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},vL="mousemove",gL="mouseup",Jme="touchend",eve="touchmove",tve="touchstart";function nve(e,t,n,r){return e>t?n>0?Zme:Kme:r>0?Xme:Qme}function yL(e,t){if(t===0)return e;const n=Math.PI/180*t,r=e[0]*Math.cos(n)+e[1]*Math.sin(n),i=e[1]*Math.cos(n)-e[0]*Math.sin(n);return[r,i]}function rve(e,t){const n=u=>{const f="touches"in u;f&&u.touches.length>1||e((d,p)=>{p.trackMouse&&!f&&(document.addEventListener(vL,r),document.addEventListener(gL,a));const{clientX:m,clientY:v}=f?u.touches[0]:u,g=yL([m,v],p.rotationAngle);return p.onTouchStartOrOnMouseDown&&p.onTouchStartOrOnMouseDown({event:u}),Object.assign(Object.assign(Object.assign({},d),EE),{initial:g.slice(),xy:g,start:u.timeStamp||0})})},r=u=>{e((f,d)=>{const p="touches"in u;if(p&&u.touches.length>1)return f;if(u.timeStamp-f.start>d.swipeDuration)return f.swiping?Object.assign(Object.assign({},f),{swiping:!1}):f;const{clientX:m,clientY:v}=p?u.touches[0]:u,[g,x]=yL([m,v],d.rotationAngle),b=g-f.xy[0],_=x-f.xy[1],w=Math.abs(b),O=Math.abs(_),E=(u.timeStamp||0)-f.start,T=Math.sqrt(w*w+O*O)/(E||1),k=[b/(E||1),_/(E||1)],P=nve(w,O,b,_),D=typeof d.delta=="number"?d.delta:d.delta[P.toLowerCase()]||Uc.delta;if(w{e((f,d)=>{let p;if(f.swiping&&f.eventData){if(u.timeStamp-f.start{document.removeEventListener(vL,r),document.removeEventListener(gL,a)},a=u=>{o(),i(u)},s=(u,f)=>{let d=()=>{};if(u&&u.addEventListener){const p=Object.assign(Object.assign({},Uc.touchEventOptions),f.touchEventOptions),m=[[tve,n,p],[eve,r,Object.assign(Object.assign({},p),f.preventScrollOnSwipe?{passive:!1}:{})],[Jme,i,p]];m.forEach(([v,g,x])=>u.addEventListener(v,g,x)),d=()=>m.forEach(([v,g])=>u.removeEventListener(v,g))}return d},l={ref:u=>{u!==null&&e((f,d)=>{if(f.el===u)return f;const p={};return f.el&&f.el!==u&&f.cleanUpTouch&&(f.cleanUpTouch(),p.cleanUpTouch=void 0),d.trackTouch&&u&&(p.cleanUpTouch=s(u,d)),Object.assign(Object.assign(Object.assign({},f),{el:u}),p)})}};return t.trackMouse&&(l.onMouseDown=n),[l,s]}function ive(e,t,n,r){return!t.trackTouch||!e.el?(e.cleanUpTouch&&e.cleanUpTouch(),Object.assign(Object.assign({},e),{cleanUpTouch:void 0})):e.cleanUpTouch?t.preventScrollOnSwipe!==n.preventScrollOnSwipe||t.touchEventOptions.passive!==n.touchEventOptions.passive?(e.cleanUpTouch(),Object.assign(Object.assign({},e),{cleanUpTouch:r(e.el,t)})):e:Object.assign(Object.assign({},e),{cleanUpTouch:r(e.el,t)})}function ove(e){const{trackMouse:t}=e,n=I.useRef(Object.assign({},EE)),r=I.useRef(Object.assign({},Uc)),i=I.useRef(Object.assign({},r.current));i.current=Object.assign({},r.current),r.current=Object.assign(Object.assign({},Uc),e);let o;for(o in Uc)r.current[o]===void 0&&(r.current[o]=Uc[o]);const[a,s]=I.useMemo(()=>rve(l=>n.current=l(n.current,r.current),{trackMouse:t}),[t]);return n.current=ive(n.current,r.current,i.current,s),a}const ave=(e,t)=>{const n=r=>i=>{i.event.composedPath().some(({classList:o})=>o==null?void 0:o.contains("visits-table"))||document.querySelector(".modal")||r()};return ove({delta:40,onSwipedLeft:n(t),onSwipedRight:n(e)})},sve=(e,t)=>{const[n,r]=I.useState(t),i=I.useCallback(o=>{const{location:a,history:s}=window,l=yj(a.search);l[e]=o,s.pushState(null,"",`${a.pathname}?${rw(l)}`),r(o)},[e]);return[n,i]},Gj=e=>{const t=_d();return I.useMemo(()=>{var n;return((n=t[e])==null?void 0:n.split(",").filter(Boolean))??[]},[e,t])},lve=()=>{const e=oa();return I.useCallback(()=>e(-1),[e])},qj=(e,t)=>{const n=I.useCallback(()=>t(`(max-width: ${e}px)`).matches,[t,e]),[r,i]=I.useState(n());return I.useEffect(()=>{const o=()=>i(n());return window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[n]),r},uve=({status:e,matchMedia:t=window.matchMedia})=>{const n=hl(),r=qj(991,t);return e==="validating"?y.jsx(Ne,{fixedWidth:!0,icon:_7,spin:!0}):y.jsxs(y.Fragment,{children:[y.jsx("span",{ref:n,children:e==="valid"?y.jsx(Ne,{fixedWidth:!0,icon:Wh,className:"text-muted"}):y.jsx(Ne,{fixedWidth:!0,icon:N2,className:"text-danger"})}),y.jsx(Jr,{target:n,placement:r?"right":"left",autohide:e==="valid",children:e==="valid"?"Congratulations! This domain is properly configured.":y.jsxs("span",{children:["Oops! There is some missing configuration, and short URLs shared with this domain will not work.",y.jsx("br",{}),"Check the ",y.jsx(Ta,{href:"https://slnk.to/multi-domain-docs",children:"documentation"})," in order to find out what is missing."]})})]})},MO=({fallback:e})=>y.jsxs("span",{className:"text-muted",children:[!e&&y.jsx("small",{children:"No redirect"}),e&&y.jsxs(y.Fragment,{children:[e," ",y.jsx("small",{children:"(as fallback)"})]})]}),cve=()=>y.jsxs(y.Fragment,{children:[y.jsx(Ne,{fixedWidth:!0,icon:uee,className:"text-primary",id:"defaultDomainIcon"}),y.jsx(Jr,{target:"defaultDomainIcon",placement:"right",children:"Default domain"})]}),fve=({domain:e,editDomainRedirects:t,checkDomainHealth:n,defaultRedirects:r})=>{const{domain:i,isDefault:o,redirects:a,status:s}=e;return I.useEffect(()=>{n(e.domain)},[n,e.domain]),y.jsxs("tr",{className:"responsive-table__row",children:[y.jsx("td",{className:"responsive-table__cell","data-th":"Is default domain",children:o&&y.jsx(cve,{})}),y.jsx("th",{className:"responsive-table__cell","data-th":"Domain",children:i}),y.jsx("td",{className:"responsive-table__cell","data-th":"Base path redirect",children:(a==null?void 0:a.baseUrlRedirect)??y.jsx(MO,{fallback:r==null?void 0:r.baseUrlRedirect})}),y.jsx("td",{className:"responsive-table__cell","data-th":"Regular 404 redirect",children:(a==null?void 0:a.regular404Redirect)??y.jsx(MO,{fallback:r==null?void 0:r.regular404Redirect})}),y.jsx("td",{className:"responsive-table__cell","data-th":"Invalid short URL redirect",children:(a==null?void 0:a.invalidShortUrlRedirect)??y.jsx(MO,{fallback:r==null?void 0:r.invalidShortUrlRedirect})}),y.jsx("td",{className:"responsive-table__cell text-lg-center","data-th":"Status",children:y.jsx(uve,{status:s})}),y.jsx("td",{className:"responsive-table__cell text-end",children:y.jsx(qme,{domain:e,editDomainRedirects:t})})]})},bL=[{value:"Is default domain",isHidden:!0},{value:"Domain",isHidden:!1},{value:"Base path redirect",isHidden:!1},{value:"Regular 404 redirect",isHidden:!1},{value:"Invalid short URL redirect",isHidden:!1},{value:"Domain status",isHidden:!0},{value:"Options",isHidden:!0}],dve=({listDomains:e,domainsList:t,filterDomains:n,editDomainRedirects:r,checkDomainHealth:i})=>{var o;const{filteredDomains:a,defaultRedirects:s,loading:l,error:u,errorData:f}=t,d=s??((o=a.find(({isDefault:m})=>m))==null?void 0:o.redirects),p=Mj();return I.useEffect(()=>{e()},[e]),l?y.jsx(el,{loading:!0}):y.jsxs(Nj,{value:p,children:[y.jsx(gv,{className:"mb-3",onChange:n}),y.jsx(Rj,{type:"domains",className:"mb-3"}),(()=>u?y.jsx(li,{type:"error",children:y.jsx(Ua,{errorData:f,fallbackMessage:"Error loading domains :("})}):y.jsx(Qt,{children:y.jsxs("table",{className:"table table-hover responsive-table mb-0",children:[y.jsx("thead",{className:"responsive-table__header",children:y.jsx("tr",{children:bL.map((m,v)=>y.jsx("th",{children:y.jsx("span",{className:m.isHidden?"sr-only":void 0,children:m.value})},v))})}),y.jsxs("tbody",{children:[a.length<1&&y.jsx("tr",{children:y.jsx("td",{colSpan:bL.length,className:"text-center",children:"No results found"})}),a.map(m=>y.jsx(fve,{domain:m,editDomainRedirects:r,checkDomainHealth:i,defaultRedirects:d},m.domain))]})]})}))()]})},pve="shlink/domainRedirects/EDIT_DOMAIN_REDIRECTS",hve=e=>pr(pve,async({domain:t,redirects:n})=>{const r=await e().editDomainRedirects({domain:t,...n});return{domain:t,redirects:r}}),Hg="shlink/domainsList",Wg={domains:[],filteredDomains:[],loading:!1,error:!1},_L=({domain:e,redirects:t})=>n=>n.domain!==e?n:{...n,redirects:t},wL=(e,t)=>n=>n.domain!==e?n:{...n,status:t},mve=(e,t)=>{const n=pr(`${Hg}/listDomains`,async()=>{const{data:a,defaultRedirects:s}=await e().listDomains();return{domains:a.map(l=>({...l,status:"validating"})),defaultRedirects:s}}),r=pr(`${Hg}/checkDomainHealth`,async a=>{try{const{status:s}=await e().health(a);return{domain:a,status:s==="pass"?"valid":"invalid"}}catch{return{domain:a,status:"invalid"}}}),i=Mn(`${Hg}/filterDomains`),{reducer:o}=Dn({name:Hg,initialState:Wg,reducers:{},extraReducers:a=>{a.addCase(n.pending,()=>({...Wg,loading:!0})),a.addCase(n.rejected,(s,{error:l})=>({...Wg,error:!0,errorData:Qi(l)})),a.addCase(n.fulfilled,(s,{payload:l})=>({...Wg,...l,filteredDomains:l.domains})),a.addCase(r.fulfilled,({domains:s,filteredDomains:l,...u},{payload:f})=>({...u,domains:s.map(wL(f.domain,f.status)),filteredDomains:l.map(wL(f.domain,f.status))})),a.addCase(i,(s,{payload:l})=>({...s,filteredDomains:s.domains.filter(({domain:u})=>u.toLowerCase().match(l.toLowerCase()))})),a.addCase(t.fulfilled,(s,{payload:l})=>({...s,domains:s.domains.map(_L(l)),filteredDomains:s.filteredDomains.map(_L(l))}))}});return{reducer:o,listDomains:n,checkDomainHealth:r,filterDomains:i}},vve=(e,t)=>{e.serviceFactory("DomainSelector",()=>Ppe),e.decorator("DomainSelector",t(["domainsList"],["listDomains"])),e.serviceFactory("ManageDomains",()=>dve),e.decorator("ManageDomains",t(["domainsList"],["listDomains","filterDomains","editDomainRedirects","checkDomainHealth"])),e.serviceFactory("domainsListReducerCreator",mve,"apiClientFactory","editDomainRedirects"),e.serviceFactory("domainsListReducer",n=>n.reducer,"domainsListReducerCreator"),e.serviceFactory("listDomains",n=>n.listDomains,"domainsListReducerCreator"),e.serviceFactory("filterDomains",n=>n.filterDomains,"domainsListReducerCreator"),e.serviceFactory("editDomainRedirects",hve,"apiClientFactory"),e.serviceFactory("checkDomainHealth",n=>n.checkDomainHealth,"domainsListReducerCreator")},xL="shlink/mercure",gve={loading:!0,error:!1},yve=e=>{const t=pr(`${xL}/loadMercureInfo`,r=>{if(r&&r.realTimeUpdates&&!r.realTimeUpdates.enabled)throw new Error("Real time updates not enabled");return e().mercureInfo()}),{reducer:n}=Dn({name:xL,initialState:gve,reducers:{},extraReducers:r=>{r.addCase(t.pending,i=>({...i,loading:!0,error:!1})),r.addCase(t.rejected,i=>({...i,loading:!1,error:!0})),r.addCase(t.fulfilled,(i,{payload:o})=>({...o,loading:!1,error:!1}))}});return{loadMercureInfo:t,reducer:n}},bve=e=>{e.serviceFactory("mercureInfoReducerCreator",yve,"apiClientFactory"),e.serviceFactory("mercureInfoReducer",t=>t.reducer,"mercureInfoReducerCreator"),e.serviceFactory("loadMercureInfo",t=>t.loadMercureInfo,"mercureInfoReducerCreator")};function en(e){return I.useRef(e).current}function tn(e,t){return(n,r=globalThis.console)=>(t.forEach(i=>{const o=n[i];e[i]=o}),e)}var $c=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Et(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var TE={exports:{}};/** @license + * eventsource.js + * Available under MIT License (MIT) + * https://github.com/Yaffle/EventSource/ + */(function(e,t){(function(n){var r=n.setTimeout,i=n.clearTimeout,o=n.XMLHttpRequest,a=n.XDomainRequest,s=n.ActiveXObject,l=n.EventSource,u=n.document,f=n.Promise,d=n.fetch,p=n.Response,m=n.TextDecoder,v=n.TextEncoder,g=n.AbortController;if(typeof window<"u"&&typeof u<"u"&&!("readyState"in u)&&u.body==null&&(u.readyState="loading",window.addEventListener("load",function(ue){u.readyState="complete"},!1)),o==null&&s!=null&&(o=function(){return new s("Microsoft.XMLHTTP")}),Object.create==null&&(Object.create=function(ue){function ve(){}return ve.prototype=ue,new ve}),Date.now||(Date.now=function(){return new Date().getTime()}),g==null){var x=d;d=function(ue,ve){var ge=ve.signal;return x(ue,{headers:ve.headers,credentials:ve.credentials,cache:ve.cache}).then(function(Oe){var Ce=Oe.body.getReader();return ge._reader=Ce,ge._aborted&&ge._reader.cancel(),{status:Oe.status,statusText:Oe.statusText,headers:Oe.headers,body:{getReader:function(){return Ce}}}})},g=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){this.signal._reader!=null&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function b(){this.bitsNeeded=0,this.codePoint=0}b.prototype.decode=function(ue){function ve(_e,be,Se){if(Se===1)return _e>=128>>be&&_e<=2048>>be&&_e<=57344>>be&&_e<=65536>>be&&_e<>6>15?3:be>31?2:1;if(_e===6*2)return be>15?3:2;if(_e===6*3)return 3;throw new Error}for(var Oe=65533,Ce="",ke=this.bitsNeeded,Pe=this.codePoint,ce=0;ce191||!ve(Pe<<6|de&63,ke-6,ge(ke,Pe)))&&(ke=0,Pe=Oe,Ce+=String.fromCharCode(Pe)),ke===0?(de>=0&&de<=127?(ke=0,Pe=de):de>=192&&de<=223?(ke=6*1,Pe=de&31):de>=224&&de<=239?(ke=6*2,Pe=de&15):de>=240&&de<=247?(ke=6*3,Pe=de&7):(ke=0,Pe=Oe),ke!==0&&!ve(Pe,ke,ge(ke,Pe))&&(ke=0,Pe=Oe)):(ke-=6,Pe=Pe<<6|de&63),ke===0&&(Pe<=65535?Ce+=String.fromCharCode(Pe):(Ce+=String.fromCharCode(55296+(Pe-65535-1>>10)),Ce+=String.fromCharCode(56320+(Pe-65535-1&1023))))}return this.bitsNeeded=ke,this.codePoint=Pe,Ce};var _=function(){try{return new m().decode(new v().encode("test"),{stream:!0})==="test"}catch(ue){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+ue)}return!1};(m==null||v==null||!_())&&(m=b);var w=function(){};function O(ue){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=w,this.onload=w,this.onerror=w,this.onreadystatechange=w,this._contentType="",this._xhr=ue,this._sendTimeout=0,this._abort=w}O.prototype.open=function(ue,ve){this._abort(!0);var ge=this,Oe=this._xhr,Ce=1,ke=0;this._abort=function(Se){ge._sendTimeout!==0&&(i(ge._sendTimeout),ge._sendTimeout=0),(Ce===1||Ce===2||Ce===3)&&(Ce=4,Oe.onload=w,Oe.onerror=w,Oe.onabort=w,Oe.onprogress=w,Oe.onreadystatechange=w,Oe.abort(),ke!==0&&(i(ke),ke=0),Se||(ge.readyState=4,ge.onabort(null),ge.onreadystatechange())),Ce=0};var Pe=function(){if(Ce===1){var Se=0,Ae="",Le=void 0;if("contentType"in Oe)Se=200,Ae="OK",Le=Oe.contentType;else try{Se=Oe.status,Ae=Oe.statusText,Le=Oe.getResponseHeader("Content-Type")}catch{Se=0,Ae="",Le=void 0}Se!==0&&(Ce=2,ge.readyState=2,ge.status=Se,ge.statusText=Ae,ge._contentType=Le,ge.onreadystatechange())}},ce=function(){if(Pe(),Ce===2||Ce===3){Ce=3;var Se="";try{Se=Oe.responseText}catch{}ge.readyState=3,ge.responseText=Se,ge.onprogress()}},de=function(Se,Ae){if((Ae==null||Ae.preventDefault==null)&&(Ae={preventDefault:w}),ce(),Ce===1||Ce===2||Ce===3){if(Ce=4,ke!==0&&(i(ke),ke=0),ge.readyState=4,Se==="load")ge.onload(Ae);else if(Se==="error")ge.onerror(Ae);else if(Se==="abort")ge.onabort(Ae);else throw new TypeError;ge.onreadystatechange()}},_e=function(Se){Oe!=null&&(Oe.readyState===4?(!("onload"in Oe)||!("onerror"in Oe)||!("onabort"in Oe))&&de(Oe.responseText===""?"error":"load",Se):Oe.readyState===3?"onprogress"in Oe||ce():Oe.readyState===2&&Pe())},be=function(){ke=r(function(){be()},500),Oe.readyState===3&&ce()};"onload"in Oe&&(Oe.onload=function(Se){de("load",Se)}),"onerror"in Oe&&(Oe.onerror=function(Se){de("error",Se)}),"onabort"in Oe&&(Oe.onabort=function(Se){de("abort",Se)}),"onprogress"in Oe&&(Oe.onprogress=ce),"onreadystatechange"in Oe&&(Oe.onreadystatechange=function(Se){_e(Se)}),("contentType"in Oe||!("ontimeout"in o.prototype))&&(ve+=(ve.indexOf("?")===-1?"?":"&")+"padding=true"),Oe.open(ue,ve,!0),"readyState"in Oe&&(ke=r(function(){be()},0))},O.prototype.abort=function(){this._abort(!1)},O.prototype.getResponseHeader=function(ue){return this._contentType},O.prototype.setRequestHeader=function(ue,ve){var ge=this._xhr;"setRequestHeader"in ge&&ge.setRequestHeader(ue,ve)},O.prototype.getAllResponseHeaders=function(){return this._xhr.getAllResponseHeaders!=null&&this._xhr.getAllResponseHeaders()||""},O.prototype.send=function(){if((!("ontimeout"in o.prototype)||!("sendAsBinary"in o.prototype)&&!("mozAnon"in o.prototype))&&u!=null&&u.readyState!=null&&u.readyState!=="complete"){var ue=this;ue._sendTimeout=r(function(){ue._sendTimeout=0,ue.send()},4);return}var ve=this._xhr;"withCredentials"in ve&&(ve.withCredentials=this.withCredentials);try{ve.send(void 0)}catch(ge){throw ge}};function E(ue){return ue.replace(/[A-Z]/g,function(ve){return String.fromCharCode(ve.charCodeAt(0)+32)})}function T(ue){for(var ve=Object.create(null),ge=ue.split(`\r +`),Oe=0;Oe"u"?typeof window<"u"?window:typeof self<"u"?self:$c:globalThis)})(TE,TE.exports);var _ve=TE.exports;const wve=(e,t,n,r)=>{const{mercureHubUrl:i,token:o,loading:a,error:s}=e;if(a||s||!i)return;const l=({data:d})=>n(JSON.parse(d)),u=({status:d})=>d===401&&r(),f=t.map(d=>{const p=new URL(i);p.searchParams.append("topic",d);const m=new _ve.EventSourcePolyfill(p,{headers:{Authorization:`Bearer ${o}`}});return m.onmessage=l,m.onerror=u,m});return()=>f.forEach(d=>d.close())};function Oo(e,t){const n=new Set;return r=>{const{createNewVisits:i,loadMercureInfo:o,mercureInfo:a}=r,s=hd();return I.useEffect(()=>{const{interval:l}=a,u=m=>l?n.add(m):i([m]),f=t(s),d=wve(a,f,u,o);if(!l)return d;const p=setInterval(()=>{i([...n]),n.clear()},l*1e3*60);return()=>{clearInterval(p),d==null||d()}},[i,o,a,s]),y.jsx(e,{...r})}}class Dr{}zs(Dr,"visits","https://shlink.io/new-visit"),zs(Dr,"orphanVisits","https://shlink.io/new-orphan-visit"),zs(Dr,"shortUrlVisits",e=>`https://shlink.io/new-visit/${e}`);const Kj="shlink/shortUrlDeletion",OL={shortCode:"",loading:!1,deleted:!1,error:!1},xve=e=>pr(`${Kj}/deleteShortUrl`,async({shortCode:t,domain:n})=>(await e().deleteShortUrl(t,n),{shortCode:t,domain:n})),kz=Mn(`${Kj}/shortUrlDeleted`),Ove=e=>{const{actions:t,reducer:n}=Dn({name:Kj,initialState:OL,reducers:{resetDeleteShortUrl:()=>OL},extraReducers:i=>{i.addCase(e.pending,o=>({...o,loading:!0,error:!1,deleted:!1})),i.addCase(e.rejected,(o,{error:a})=>({...o,errorData:Qi(a),loading:!1,error:!0,deleted:!1})),i.addCase(e.fulfilled,(o,{payload:a})=>({...o,shortCode:a.shortCode,loading:!1,error:!1,deleted:!0}))}}),{resetDeleteShortUrl:r}=t;return{reducer:n,resetDeleteShortUrl:r}},jz="shlink/shortUrlsList",Pz=5,Sve={loading:!0,error:!1},Eve=e=>pr(`${jz}/listShortUrls`,t=>e().listShortUrls(t??{})),Tve=(e,t,n)=>Dn({name:jz,initialState:Sve,reducers:{},extraReducers:r=>{r.addCase(e.pending,i=>({...i,loading:!0,error:!1})),r.addCase(e.rejected,()=>({loading:!1,error:!0})),r.addCase(e.fulfilled,(i,{payload:o})=>({loading:!1,error:!1,shortUrls:o})),r.addCase(n.fulfilled,(i,{payload:o})=>{i.shortUrls&&(i.shortUrls.data=[o,...i.shortUrls.data.slice(0,Pz-1)],i.shortUrls.pagination.totalItems+=1)}),r.addCase(t.fulfilled,(i,{payload:o})=>{i.shortUrls&&(i.shortUrls.data=i.shortUrls.data.map(a=>{const{shortCode:s,domain:l}=o;return dh(a,s,l)?o:a}))}),r.addCase(kz,(i,{payload:o})=>{i.shortUrls&&(i.shortUrls.data=i.shortUrls.data.filter(a=>!dh(a,o.shortCode,o.domain)),i.shortUrls.pagination.totalItems-=1)}),r.addCase(Sd,(i,{payload:o})=>{i.shortUrls&&(i.shortUrls.data=i.shortUrls.data.map(a=>{var s;return((s=o.createdVisits.findLast(({shortUrl:l})=>l&&dh(a,l.shortCode,l.domain)))==null?void 0:s.shortUrl)??a}))})}}),SL=10,{ceil:Cve}=Math,kve=new Intl.NumberFormat("en-US"),hn=e=>kve.format(Number(e)),jve=e=>Cve(e/SL)*SL,Pve={field:"dateCreated",dir:"DESC"},Az={realTimeUpdates:{enabled:!0},shortUrlCreation:{validateUrls:!1},visits:{defaultInterval:"last30Days"},shortUrlsList:{defaultOrdering:Pve}},Nz=I.createContext(Az),Ave=Nz.Provider,Zj=()=>I.useContext(Nz)??Az,vl=e=>Zj()[e],CE=({children:e,title:t,link:n,tooltip:r})=>{const i=hl();return y.jsxs(y.Fragment,{children:[y.jsxs(di,{innerRef:i,className:"highlight-card",body:!0,tag:$t,to:n,children:[y.jsx(Ne,{size:"3x",className:"highlight-card__link-icon",icon:ipe}),y.jsx(IB,{className:"lh-sm fw-semibold text-uppercase fs-5 highlight-card__title",children:t}),y.jsx(LB,{className:"fs-2 fw-semibold lh-sm",children:e})]}),r&&y.jsx(Jr,{target:i,placement:"bottom",children:r})]})},EL=({loading:e,excludeBots:t,visitsSummary:n,...r})=>y.jsx(CE,{tooltip:n.bots!==void 0?y.jsxs(y.Fragment,{children:[t?"Plus":"Including"," ",y.jsx("strong",{children:hn(n.bots)})," potential bot visits"]}):void 0,...r,children:e?"Loading...":hn(t&&n.nonBots?n.nonBots:n.total)}),Mz=Oo(({shortUrlsList:e,listShortUrls:t,tagsList:n,loadVisitsOverview:r,visitsOverview:i})=>{const{ShortUrlsTable:o,CreateShortUrl:a}=en(Mz),{loading:s,shortUrls:l}=e,{loading:u}=n,{loading:f,nonOrphanVisits:d,orphanVisits:p}=i,m=ml(),v=oa(),g=vl("visits");return I.useEffect(()=>{t({itemsPerPage:Pz,orderBy:{field:"dateCreated",dir:"DESC"}}),r()},[t,r]),y.jsxs(y.Fragment,{children:[y.jsxs(Pr,{children:[y.jsx("div",{className:"col-lg-6 col-xl-3 mb-3",children:y.jsx(EL,{title:"Visits",link:`${m}/non-orphan-visits`,excludeBots:(g==null?void 0:g.excludeBots)??!1,loading:f,visitsSummary:d})}),y.jsx("div",{className:"col-lg-6 col-xl-3 mb-3",children:y.jsx(EL,{title:"Orphan visits",link:`${m}/orphan-visits`,excludeBots:(g==null?void 0:g.excludeBots)??!1,loading:f,visitsSummary:p})}),y.jsx("div",{className:"col-lg-6 col-xl-3 mb-3",children:y.jsx(CE,{title:"Short URLs",link:`${m}/list-short-urls/1`,children:s?"Loading...":hn((l==null?void 0:l.pagination.totalItems)??0)})}),y.jsx("div",{className:"col-lg-6 col-xl-3 mb-3",children:y.jsx(CE,{title:"Tags",link:`${m}/manage-tags`,children:u?"Loading...":hn(n.tags.length)})})]}),y.jsxs(di,{className:"mb-3",children:[y.jsxs(Sf,{children:[y.jsx("span",{className:"d-sm-none",children:"Create a short URL"}),y.jsx("h5",{className:"d-none d-sm-inline",children:"Create a short URL"}),y.jsx($t,{className:"float-end",to:`${m}/create-short-url`,children:"Advanced options »"})]}),y.jsx(Of,{children:y.jsx(a,{basicMode:!0})})]}),y.jsxs(di,{children:[y.jsxs(Sf,{children:[y.jsx("span",{className:"d-sm-none",children:"Recently created URLs"}),y.jsx("h5",{className:"d-none d-sm-inline",children:"Recently created URLs"}),y.jsx($t,{className:"float-end",to:`${m}/list-short-urls/1`,children:"See all »"})]}),y.jsx(Of,{children:y.jsx(o,{shortUrlsList:e,className:"mb-0",onTagClick:x=>v(`${m}/list-short-urls/1?tags=${encodeURIComponent(x)}`)})})]})]})},()=>[Dr.visits,Dr.orphanVisits]),Nve=tn(Mz,["ShortUrlsTable","CreateShortUrl"]);function Mve(e,t){e.factory("Overview",Nve),e.decorator("Overview",t(["shortUrlsList","tagsList","mercureInfo","visitsOverview"],["listShortUrls","createNewVisits","loadMercureInfo","loadVisitsOverview"]))}const Rve=e=>({longUrl:"",tags:[],customSlug:"",title:void 0,shortCodeLength:void 0,domain:"",validSince:void 0,validUntil:void 0,maxVisits:void 0,findIfExists:!1,validateUrl:(e==null?void 0:e.validateUrls)??!1,forwardQuery:(e==null?void 0:e.forwardQuery)??!0}),Rz=({createShortUrl:e,shortUrlCreation:t,resetCreateShortUrl:n,basicMode:r=!1})=>{const{ShortUrlForm:i,CreateShortUrlResult:o}=en(Rz),a=vl("shortUrlCreation"),s=I.useMemo(()=>Rve(a),[a]);return y.jsxs(y.Fragment,{children:[y.jsx(i,{initialState:s,saving:t.saving,mode:r?"create-basic":"create",onSave:async l=>(n(),e(l))}),y.jsx(o,{creation:t,resetCreateShortUrl:n,canBeClosed:r})]})},Dve=tn(Rz,["ShortUrlForm","CreateShortUrlResult"]),Qj=()=>{const e=lve();return y.jsx(_t,{color:"link",size:"lg",className:"p-0 me-3",onClick:e,"aria-label":"Go back",children:y.jsx(Ne,{icon:xee})})},mw=()=>{const e=oa(),t=ml(),n=_d(),r=I.useMemo(()=>{const{orderBy:o,tags:a,excludeBots:s,excludeMaxVisitsReached:l,excludePastValidUntil:u,...f}=n,d=o?Lfe(o):void 0,p=(a==null?void 0:a.split(","))??[];return{...f,orderBy:d,tags:p,excludeBots:s!==void 0?s==="true":void 0,excludeMaxVisitsReached:l!==void 0?l==="true":void 0,excludePastValidUntil:u!==void 0?u==="true":void 0}},[n]),i=I.useCallback(o=>{const a={...r,...o},{orderBy:s,tags:l,excludeBots:u,excludeMaxVisitsReached:f,excludePastValidUntil:d,...p}=a,m={...p,orderBy:s&&Dfe(s),tags:l.length>0?l.join(","):void 0,excludeBots:AO(u),excludeMaxVisitsReached:AO(f),excludePastValidUntil:AO(d)},v=rw(m),g=v?`?${v}`:"";e(`${t}/list-short-urls/1${g}`)},[r,e,t]);return[r,i]},Dz=()=>{const{shortCode:e=""}=hd();return I.useMemo(()=>Lj(e),[e])},Lz=({shortUrlsDetails:e,getShortUrlsDetails:t,shortUrlEdition:n,editShortUrl:r})=>{const{ShortUrlForm:i}=en(Lz),{domain:o}=_d(),a=Dz(),s=I.useMemo(()=>a?{shortCode:a,domain:o}:void 0,[o,a]),{loading:l,error:u,errorData:f,shortUrls:d}=e,p=s&&(d==null?void 0:d.get(s)),{saving:m,saved:v,error:g,errorData:x}=n,b=vl("shortUrlCreation"),_=I.useMemo(()=>Gpe(p,b),[p,b]);return I.useEffect(()=>{s&&t([s])},[t,s]),l?y.jsx(el,{loading:!0}):u?y.jsx(li,{type:"error",children:y.jsx(Ua,{errorData:f,fallbackMessage:"An error occurred while loading short URL detail :("})}):y.jsxs(y.Fragment,{children:[y.jsx("header",{className:"mb-3",children:y.jsx(di,{body:!0,children:y.jsxs("h2",{className:"d-sm-flex justify-content-between align-items-center mb-0",children:[y.jsx(Qj,{}),y.jsx("span",{className:"text-center",children:y.jsxs("small",{children:["Edit ",y.jsx(Ta,{href:(p==null?void 0:p.shortUrl)??""})]})}),y.jsx("span",{})]})})}),y.jsx(i,{initialState:_,saving:m,mode:"edit",onSave:async w=>{p&&r({...p,data:w})}}),v&&g&&y.jsx(li,{type:"error",className:"mt-3",children:y.jsx(Ua,{errorData:x,fallbackMessage:"An error occurred while updating short URL :("})}),v&&!g&&y.jsx(li,{type:"success",className:"mt-3",children:"Short URL properly edited."})]})},Lve=tn(Lz,["ShortUrlForm"]);var vw={},Ive=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r"u"){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var d=TL[t.format]||TL.default;window.clipboardData.setData(d,e)}else f.clipboardData.clearData(),f.clipboardData.setData(t.format,e);t.onCopy&&(f.preventDefault(),t.onCopy(f.clipboardData))}),document.body.appendChild(s),o.selectNodeContents(s),a.addRange(o);var u=document.execCommand("copy");if(!u)throw new Error("copy command was unsuccessful");l=!0}catch(f){n&&console.error("unable to copy using execCommand: ",f),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),l=!0}catch(d){n&&console.error("unable to copy using clipboardData: ",d),n&&console.error("falling back to prompt"),r=$ve("message"in t?t.message:Uve),window.prompt(r,e)}}finally{a&&(typeof a.removeRange=="function"?a.removeRange(o):a.removeAllRanges()),s&&document.body.removeChild(s),i()}return l}var zve=Bve;function kE(e){"@babel/helpers - typeof";return kE=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},kE(e)}Object.defineProperty(vw,"__esModule",{value:!0});vw.CopyToClipboard=void 0;var Yg=Iz(M),Vve=Iz(zve),Hve=["text","onCopy","options","children"];function Iz(e){return e&&e.__esModule?e:{default:e}}function CL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function kL(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Yve(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}function Gve(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jL(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function cb(e){return cb=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},cb(e)}function Xj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Uz=function(e){Kve(n,e);var t=Zve(n);function n(){var r;Gve(this,n);for(var i=arguments.length,o=new Array(i),a=0;a{const{useTimeoutToggle:r}=en(Bz),[i,o]=r(),{error:a,saved:s}=e;if(I.useEffect(()=>{t()},[t]),a)return y.jsxs(li,{type:"error",className:"mt-3",children:[n&&y.jsx(Ne,{"data-testid":"error-close-button",icon:N2,className:"float-end pointer",onClick:t}),y.jsx(Ua,{errorData:e.errorData,fallbackMessage:"An error occurred while creating the URL :("})]});if(!s)return null;const{shortUrl:l}=e.result;return y.jsxs(li,{type:"success",className:"mt-3",children:[n&&y.jsx(Ne,{"data-testid":"success-close-button",icon:N2,className:"float-end pointer",onClick:t}),y.jsxs("span",{children:[y.jsx("b",{children:"Great!"})," The short URL is ",y.jsx("b",{children:l})]}),y.jsx($z,{text:l,onCopy:o,children:y.jsxs("button",{className:"btn btn-light btn-sm create-short-url-result__copy-btn",id:"copyBtn",type:"button",children:[y.jsx(Ne,{icon:I9})," Copy"]})}),y.jsx(hv,{placement:"left",isOpen:i,target:"copyBtn",children:"Copied!"})]})},tge=tn(Bz,["useTimeoutToggle"]),RO="delete",nge=({shortUrl:e,toggle:t,isOpen:n,shortUrlDeletion:r,resetDeleteShortUrl:i,deleteShortUrl:o,shortUrlDeleted:a})=>{const[s,l]=I.useState("");I.useEffect(()=>i,[i]);const{loading:u,error:f,deleted:d,errorData:p}=r,m=I.useCallback(()=>{i(),t()},[i,t]),v=I.useCallback(g=>(g.preventDefault(),o(e).then(t)),[o,e,t]);return y.jsx(Ka,{isOpen:n,toggle:m,centered:!0,onClosed:()=>d&&a(e),children:y.jsxs("form",{onSubmit:v,children:[y.jsx(Za,{toggle:m,children:y.jsx("span",{className:"text-danger",children:"Delete short URL"})}),y.jsxs(aa,{children:[y.jsxs("p",{children:[y.jsx("b",{className:"text-danger",children:"Caution!"})," You are about to delete a short URL."]}),y.jsx("p",{children:"This action cannot be undone. Once you have deleted it, all the visits stats will be lost."}),y.jsxs("p",{children:["Write ",y.jsx("b",{children:RO})," to confirm deletion."]}),y.jsx("input",{type:"text",className:"form-control",placeholder:`Insert ${RO}`,value:s,onChange:g=>l(g.target.value)}),f&&y.jsx(li,{type:Npe(p)?"warning":"error",small:!0,className:"mt-2",children:y.jsx(Ua,{errorData:p,fallbackMessage:"Something went wrong while deleting the URL :("})})]}),y.jsxs(Uu,{children:[y.jsx("button",{type:"button",className:"btn btn-link",onClick:m,children:"Cancel"}),y.jsx("button",{type:"submit",className:"btn btn-danger",disabled:s!==RO||u,children:u?"Deleting...":"Delete"})]})]})})},zz=({amount:e=0,loading:t=!1,...n})=>y.jsxs(_t,{...n,outline:!0,color:"primary",disabled:t,children:[y.jsx(Ne,{icon:iee})," ",t?"Exporting...":y.jsxs(y.Fragment,{children:["Export (",hn(e),")"]})]}),PL=20,Vz=({amount:e=0})=>{const{apiClientFactory:t,ReportExporter:n}=en(Vz),[{tags:r,search:i,startDate:o,endDate:a,orderBy:s,tagsMode:l}]=mw(),[u,,f,d]=Cn(),p=I.useCallback(async()=>{const m=e/PL,v=async(x=1)=>{const{data:b}=await t().listShortUrls({page:`${x}`,tags:r,searchTerm:i,startDate:o,endDate:a,orderBy:s,tagsMode:l,itemsPerPage:PL});return x>=m?b:b.concat(await v(x+1))};f();const g=await v();n.exportShortUrls(g.map(x=>{var b;const{hostname:_,pathname:w}=new URL(x.shortUrl),O=w.substring(1);return{createdAt:x.dateCreated,domain:_,shortCode:O,shortUrl:x.shortUrl,longUrl:x.longUrl,title:x.title??"",tags:x.tags.join("|"),visits:((b=x==null?void 0:x.visitsSummary)==null?void 0:b.total)??x.visitsCount}})),d()},[e,t,a,s,n,i,o,f,d,r,l]);return y.jsx(zz,{loading:u,className:"btn-md-block",amount:e,onClick:p})},rge=tn(Vz,["apiClientFactory","ReportExporter"]),Hz=({text:e,onCopy:t})=>y.jsx($z,{text:e,onCopy:t,children:y.jsx(Ne,{icon:I9,className:"ms-2 copy-to-clipboard-icon"})}),ige=(e,{margin:t,...n})=>{const r=`${e}/qr-code`,i=rw({...n,margin:t>0?t:void 0});return`${r}${i?`?${i}`:""}`},oge=({errorCorrection:e,setErrorCorrection:t})=>y.jsxs(Qa,{text:`Error correction (${e})`,children:[y.jsxs(Re,{active:e==="L",onClick:()=>t("L"),children:[y.jsx("b",{children:"L"}),"ow"]}),y.jsxs(Re,{active:e==="M",onClick:()=>t("M"),children:[y.jsx("b",{children:"M"}),"edium"]}),y.jsxs(Re,{active:e==="Q",onClick:()=>t("Q"),children:[y.jsx("b",{children:"Q"}),"uartile"]}),y.jsxs(Re,{active:e==="H",onClick:()=>t("H"),children:[y.jsx("b",{children:"H"}),"igh"]})]}),age=({format:e,setFormat:t})=>y.jsxs(Qa,{text:`Format (${e})`,children:[y.jsx(Re,{active:e==="png",onClick:()=>t("png"),children:"PNG"}),y.jsx(Re,{active:e==="svg",onClick:()=>t("svg"),children:"SVG"})]}),Wz=({shortUrl:{shortUrl:e,shortCode:t},toggle:n,isOpen:r})=>{const{ImageDownloader:i}=en(Wz),[o,a]=I.useState(300),[s,l]=I.useState(0),[u,f]=I.useState("png"),[d,p]=I.useState("L"),m=I.useMemo(()=>ige(e,{size:o,format:u,margin:s,errorCorrection:d}),[e,o,u,s,d]),v=I.useMemo(()=>o+s,[o,s]),g=I.useMemo(()=>{if(!(v<500))return v<800?"lg":"xl"},[v]);return y.jsxs(Ka,{isOpen:r,toggle:n,centered:!0,size:g,children:[y.jsxs(Za,{toggle:n,children:["QR code for ",y.jsx(Ta,{href:e,children:e})]}),y.jsxs(aa,{children:[y.jsxs(Pr,{children:[y.jsxs(zr,{className:"d-grid col-md-6",children:[y.jsxs("label",{htmlFor:"sizeControl",children:["Size: ",o,"px"]}),y.jsx("input",{id:"sizeControl",type:"range",className:"form-control-range",value:o,step:10,min:50,max:1e3,onChange:x=>a(Number(x.target.value))})]}),y.jsxs(zr,{className:"d-grid col-md-6",children:[y.jsxs("label",{htmlFor:"marginControl",children:["Margin: ",s,"px"]}),y.jsx("input",{id:"marginControl",type:"range",className:"form-control-range",value:s,step:1,min:0,max:100,onChange:x=>l(Number(x.target.value))})]}),y.jsx(zr,{className:"d-grid col-md-6",children:y.jsx(age,{format:u,setFormat:f})}),y.jsx(zr,{className:"col-md-6",children:y.jsx(oge,{errorCorrection:d,setErrorCorrection:p})})]}),y.jsxs("div",{className:"text-center",children:[y.jsxs("div",{className:"mb-3",children:[y.jsx(Ta,{href:m}),y.jsx(Hz,{text:m})]}),y.jsx("img",{src:m,className:"qr-code-modal__img",alt:"QR code"}),y.jsx("div",{className:"mt-3",children:y.jsxs(_t,{block:!0,color:"primary",onClick:()=>{i.saveImage(m,`${t}-qr-code.${u}`).catch(()=>{})},children:["Download ",y.jsx(Ne,{icon:O7,className:"ms-1"})]})})]})]})]})},sge=tn(Wz,["ImageDownloader"]),fb=({date:e,format:t=Bj,relative:n=!1})=>{const r=zj(e)?e:nl(e);return y.jsx("time",{dateTime:`${cme(r)}000`,children:n?`${lme(rl(),r)} ago`:ob(r,t)})},lge=e=>{const{meta:t,visitsCount:n,visitsSummary:r}=e,{maxVisits:i,validSince:o,validUntil:a}=t,s=(r==null?void 0:r.total)??n;return i&&s>=i?{icon:Kee,className:"text-danger",description:y.jsxs(y.Fragment,{children:["This short URL cannot be currently visited because it has reached the maximum amount of ",y.jsx("b",{children:i})," visit",i>1?"s":"","."]})}:a&&ab(Mi(a),rl())?{icon:nR,className:"text-danger",description:y.jsxs(y.Fragment,{children:["This short URL cannot be visited since ",y.jsx("b",{className:"indivisible",children:lb(Mi(a))}),"."]})}:o&&ab(rl(),Mi(o))?{icon:nR,className:"text-warning",description:y.jsxs(y.Fragment,{children:["This short URL will start working on ",y.jsx("b",{className:"indivisible",children:lb(Mi(o))}),"."]})}:{icon:Wh,className:"text-primary",description:"This short URL can be visited normally."}},uge=({shortUrl:e})=>{const t=hl(),{icon:n,className:r,description:i}=lge(e);return y.jsxs(y.Fragment,{children:[y.jsx("span",{style:{cursor:i?"help":void 0},ref:t,children:y.jsx(Ne,{icon:n,className:r})}),y.jsx(Jr,{target:t,placement:"bottom",children:i})]})},cge=(e,{shortCode:t,domain:n},r)=>{const i=n?`?domain=${n}`:"";return`${e}/short-code/${rz(t)}/${r}${i}`},AE=({shortUrl:e,suffix:t,asLink:n,children:r,...i})=>{const o=ml();return!n||!e?y.jsx("span",{...i,children:r}):y.jsx($t,{to:cge(o,e,t),...i,children:r})},Yz=({visitsCount:e,shortUrl:t,active:n=!1,asLink:r=!1})=>{const i=hl(),{maxVisits:o,validSince:a,validUntil:s}=(t==null?void 0:t.meta)??{},l=!!o||!!a||!!s,u=y.jsx(AE,{shortUrl:t,suffix:"visits",asLink:r,children:y.jsx("strong",{className:We("short-url-visits-count__amount",{"short-url-visits-count__amount--big":n}),children:hn(e)})});return l?y.jsxs(y.Fragment,{children:[y.jsxs("span",{className:"indivisible",children:[u,y.jsxs("small",{className:"short-urls-visits-count__max-visits-control",ref:i,children:[o&&y.jsxs(y.Fragment,{children:[" / ",hn(o)]}),y.jsx("sup",{className:"ms-1",children:y.jsx(Ne,{icon:Ak})})]})]}),y.jsx(Jr,{target:i,placement:"bottom",children:y.jsxs("ul",{className:"list-unstyled mb-0",children:[o&&y.jsxs("li",{className:"short-url-visits-count__tooltip-list-item",children:["This short URL will not accept more than ",y.jsx("b",{children:hn(o)})," visit",o===1?"":"s","."]}),a&&y.jsxs("li",{className:"short-url-visits-count__tooltip-list-item",children:["This short URL will not accept visits before ",y.jsx("b",{className:"indivisible",children:lb(Mi(a))}),"."]}),s&&y.jsxs("li",{className:"short-url-visits-count__tooltip-list-item",children:["This short URL will not accept visits after ",y.jsx("b",{className:"indivisible",children:lb(Mi(s))}),"."]})]})})]}):u},fge=e=>!!e.onClose,dge=e=>!!e.onClick,gw=e=>{const{text:t,children:n,className:r,colorGenerator:i}=e,o=dge(e),a=o?jf:"span",s=I.useMemo(()=>i.stylesForKey(t),[t,i]);return y.jsxs(a,{className:We("badge tag fw-bold",r,{pointer:o}),style:s,onClick:o?e.onClick:void 0,children:[n??t,fge(e)&&y.jsx(jf,{"aria-label":`Remove ${t}`,className:"bg-transparent ms-1 opacity-100 p-0 fw-bold tag__close",onClick:e.onClose,children:"×"})]})},pge=({tags:e,onTagClick:t,colorGenerator:n})=>e.length===0?y.jsx("i",{className:"indivisible",children:y.jsx("small",{children:"No tags"})}):y.jsx(y.Fragment,{children:e.map(r=>y.jsx(gw,{text:r,colorGenerator:n,onClick:()=>t==null?void 0:t(r)},r))}),Gz=({shortUrl:e,onTagClick:t})=>{var n,r,i,o;const{ShortUrlsRowMenu:a,ColorGenerator:s,useTimeoutToggle:l}=en(Gz),[u,f]=l(),[d,p]=l(!1,500),m=I.useRef(!0),[{excludeBots:v}]=mw(),g=vl("visits"),x=v??(g==null?void 0:g.excludeBots);return I.useEffect(()=>{!m.current&&p(),m.current=!1},[(n=e.visitsSummary)==null?void 0:n.total,(r=e.visitsSummary)==null?void 0:r.nonBots,e.visitsCount,p]),y.jsxs("tr",{className:"responsive-table__row",children:[y.jsx("td",{className:"indivisible short-urls-row__cell responsive-table__cell","data-th":"Created at",children:y.jsx(fb,{date:e.dateCreated})}),y.jsx("td",{className:"responsive-table__cell short-urls-row__cell","data-th":"Short URL",children:y.jsxs("span",{className:"position-relative short-urls-row__cell--indivisible",children:[y.jsx("span",{className:"short-urls-row__short-url-wrapper",children:y.jsx(Ta,{href:e.shortUrl})}),y.jsx(Hz,{text:e.shortUrl,onCopy:f}),y.jsx("span",{className:"badge bg-warning text-black short-urls-row__copy-hint",hidden:!u,children:"Copied short URL!"})]})}),y.jsx("td",{className:"responsive-table__cell short-urls-row__cell short-urls-row__cell--break","data-th":`${e.title?"Title":"Long URL"}`,children:y.jsx(Ta,{href:e.longUrl,children:e.title??e.longUrl})}),e.title&&y.jsx("td",{className:"short-urls-row__cell responsive-table__cell short-urls-row__cell--break d-lg-none","data-th":"Long URL",children:y.jsx(Ta,{href:e.longUrl})}),y.jsx("td",{className:"responsive-table__cell short-urls-row__cell","data-th":"Tags",children:y.jsx(pge,{tags:e.tags,colorGenerator:s,onTagClick:t})}),y.jsx("td",{className:"responsive-table__cell short-urls-row__cell text-lg-end","data-th":"Visits",children:y.jsx(Yz,{visitsCount:(x?(i=e.visitsSummary)==null?void 0:i.nonBots:(o=e.visitsSummary)==null?void 0:o.total)??e.visitsCount,shortUrl:e,active:d,asLink:!0})}),y.jsx("td",{className:"responsive-table__cell short-urls-row__cell","data-th":"Status",children:y.jsx(uge,{shortUrl:e})}),y.jsx("td",{className:"responsive-table__cell short-urls-row__cell text-end",children:y.jsx(a,{shortUrl:e})})]})},hge=tn(Gz,["ShortUrlsRowMenu","ColorGenerator","useTimeoutToggle"]),qz=({shortUrl:e})=>{const{DeleteShortUrlModal:t,QrCodeModal:n}=en(qz),[r,,i,o]=Cn(),[a,,s,l]=Cn(),u=dw();return y.jsxs(ow,{minWidth:190,children:[y.jsxs(Re,{tag:AE,shortUrl:e,suffix:"visits",asLink:!0,children:[y.jsx(Ne,{icon:Pk,fixedWidth:!0})," Visit stats"]}),u&&y.jsxs(y.Fragment,{children:[y.jsxs(Re,{disabled:!u.canAddItemWithName(e.shortUrl),onClick:()=>u.addItemToCompare({name:e.shortUrl,query:Ij(e)}),children:[y.jsx(Ne,{icon:q_,fixedWidth:!0})," Compare visits"]}),y.jsx(Re,{divider:!0,tag:"hr"})]}),y.jsxs(Re,{tag:AE,shortUrl:e,suffix:"edit",asLink:!0,children:[y.jsx(Ne,{icon:jk,fixedWidth:!0})," Edit short URL"]}),y.jsxs(Re,{onClick:i,children:[y.jsx(Ne,{icon:Gee,fixedWidth:!0})," QR code"]}),y.jsx(n,{shortUrl:e,isOpen:r,toggle:o}),y.jsx(Re,{divider:!0,tag:"hr"}),y.jsxs(Re,{className:"dropdown-item--danger",onClick:s,children:[y.jsx(Ne,{icon:kk,fixedWidth:!0})," Delete short URL"]}),y.jsx(t,{shortUrl:e,isOpen:a,toggle:l})]})},mge=tn(qz,["DeleteShortUrlModal","QrCodeModal"]),Kz="shlink/shortUrlCreation",AL={saving:!1,saved:!1,error:!1},vge=e=>pr(`${Kz}/createShortUrl`,t=>e().createShortUrl(t)),gge=e=>{const{reducer:t,actions:n}=Dn({name:Kz,initialState:AL,reducers:{resetCreateShortUrl:()=>AL},extraReducers:i=>{i.addCase(e.pending,()=>({saving:!0,saved:!1,error:!1})),i.addCase(e.rejected,(o,{error:a})=>({saving:!1,saved:!1,error:!0,errorData:Qi(a)})),i.addCase(e.fulfilled,(o,{payload:a})=>({result:a,saving:!1,saved:!0,error:!1}))}}),{resetCreateShortUrl:r}=n;return{reducer:t,resetCreateShortUrl:r}},Zz="shlink/shortUrlEdition",yge={saving:!1,saved:!1,error:!1},bge=e=>pr(`${Zz}/editShortUrl`,({shortCode:t,domain:n,data:r})=>e().updateShortUrl(t,n,r)),_ge=e=>Dn({name:Zz,initialState:yge,reducers:{},extraReducers:t=>{t.addCase(e.pending,n=>({...n,saving:!0,error:!1,saved:!1})),t.addCase(e.rejected,(n,{error:r})=>({...n,saving:!1,error:!0,saved:!1,errorData:Qi(r)})),t.addCase(e.fulfilled,(n,{payload:r})=>({shortUrl:r,saving:!1,error:!1,saved:!0}))}}),NL="shlink/shortUrlsDetails",ML={loading:!1,error:!1},wge=e=>{const t=pr(`${NL}/getShortUrlsDetails`,async(r,{getState:i})=>{const{shortUrlsList:o}=i(),a=await Promise.all(r.map(async s=>{var l;const{shortCode:u,domain:f}=s,d=(l=o==null?void 0:o.shortUrls)==null?void 0:l.data.find(p=>dh(p,u,f));return[s,d??await e().getShortUrl(u,f)]}));return new Map(a)}),{reducer:n}=Dn({name:NL,initialState:ML,reducers:{},extraReducers:r=>{r.addCase(t.pending,()=>({loading:!0,error:!1})),r.addCase(t.rejected,(i,{error:o})=>({loading:!1,error:!0,errorData:Qi(o)})),r.addCase(t.fulfilled,(i,{payload:o})=>({...ML,shortUrls:o}))}});return{reducer:n,getShortUrlsDetails:t}},xge=({icon:e,className:t,...n})=>{const r=hl();return y.jsxs("div",{className:"icon-input-container",children:[y.jsx(Cu,{className:We("icon-input-container__input",t),innerRef:r,...n}),y.jsx(Ne,{icon:e,fixedWidth:!0,className:"icon-input-container__icon",onClick:()=>{var i;return(i=r.current)==null?void 0:i.focus()}})]})};var Qz={exports:{}},DO,RL;function Oge(){if(RL)return DO;RL=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return DO=e,DO}var LO,DL;function Sge(){if(DL)return LO;DL=1;var e=Oge();function t(){}function n(){}return n.resetWarningCache=t,LO=function(){function r(a,s,l,u,f,d){if(d!==e){var p=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 p.name="Invariant Violation",p}}r.isRequired=r;function i(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o},LO}Qz.exports=Sge()();var Ege=Qz.exports;const rt=Et(Ege);var Xz={exports:{}};/*! + Copyright (c) 2018 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],i=0;i1?"s":"")+" required, but only "+t.length+" present")}function yw(e){return Me(1,arguments),e instanceof Date||Hi(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function ze(e){Me(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||Hi(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function um(e){if(Me(1,arguments),!yw(e)&&typeof e!="number")return!1;var t=ze(e);return!isNaN(Number(t))}function at(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function Jj(e,t){Me(2,arguments);var n=ze(e).getTime(),r=at(t);return new Date(n+r)}function Jz(e,t){Me(2,arguments);var n=at(t);return Jj(e,-n)}var Cge=864e5;function kge(e){Me(1,arguments);var t=ze(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),i=n-r;return Math.floor(i/Cge)+1}function Af(e){Me(1,arguments);var t=1,n=ze(e),r=n.getUTCDay(),i=(r=i.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function jge(e){Me(1,arguments);var t=eV(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=Af(n);return r}var Pge=6048e5;function tV(e){Me(1,arguments);var t=ze(e),n=Af(t).getTime()-jge(t).getTime();return Math.round(n/Pge)+1}var Age={};function Bu(){return Age}function Au(e,t){var n,r,i,o,a,s,l,u;Me(1,arguments);var f=Bu(),d=at((n=(r=(i=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:f.weekStartsOn)!==null&&r!==void 0?r:(l=f.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&n!==void 0?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=ze(e),m=p.getUTCDay(),v=(m=1&&m<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var v=new Date(0);v.setUTCFullYear(d+1,0,m),v.setUTCHours(0,0,0,0);var g=Au(v,t),x=new Date(0);x.setUTCFullYear(d,0,m),x.setUTCHours(0,0,0,0);var b=Au(x,t);return f.getTime()>=g.getTime()?d+1:f.getTime()>=b.getTime()?d:d-1}function Nge(e,t){var n,r,i,o,a,s,l,u;Me(1,arguments);var f=Bu(),d=at((n=(r=(i=(o=t==null?void 0:t.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&i!==void 0?i:f.firstWeekContainsDate)!==null&&r!==void 0?r:(l=f.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&n!==void 0?n:1),p=eP(e,t),m=new Date(0);m.setUTCFullYear(p,0,d),m.setUTCHours(0,0,0,0);var v=Au(m,t);return v}var Mge=6048e5;function nV(e,t){Me(1,arguments);var n=ze(e),r=Au(n,t).getTime()-Nge(n,t).getTime();return Math.round(r/Mge)+1}function Pt(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length0?n:1-n;return Pt(t==="yy"?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return t==="M"?String(n+1):Pt(n+1,2)},d:function(e,t){return Pt(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h:function(e,t){return Pt(e.getUTCHours()%12||12,t.length)},H:function(e,t){return Pt(e.getUTCHours(),t.length)},m:function(e,t){return Pt(e.getUTCMinutes(),t.length)},s:function(e,t){return Pt(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,r=e.getUTCMilliseconds(),i=Math.floor(r*Math.pow(10,n-3));return Pt(i,t.length)}};const ss=Rge;var dc={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Dge={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){var r=e.getUTCFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return ss.y(e,t)},Y:function(e,t,n,r){var i=eP(e,r),o=i>0?i:1-i;if(t==="YY"){var a=o%100;return Pt(a,2)}return t==="Yo"?n.ordinalNumber(o,{unit:"year"}):Pt(o,t.length)},R:function(e,t){var n=eV(e);return Pt(n,t.length)},u:function(e,t){var n=e.getUTCFullYear();return Pt(n,t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return Pt(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return Pt(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return ss.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return Pt(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var i=nV(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):Pt(i,t.length)},I:function(e,t,n){var r=tV(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):Pt(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):ss.d(e,t)},D:function(e,t,n){var r=kge(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):Pt(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var i=e.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return Pt(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var i=e.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return Pt(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),i=r===0?7:r;switch(t){case"i":return String(i);case"ii":return Pt(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours(),i=r/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r=e.getUTCHours(),i;switch(r===12?i=dc.noon:r===0?i=dc.midnight:i=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r=e.getUTCHours(),i;switch(r>=17?i=dc.evening:r>=12?i=dc.afternoon:r>=4?i=dc.morning:i=dc.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){var r=e.getUTCHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return ss.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):ss.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):Pt(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):Pt(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):ss.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):ss.s(e,t)},S:function(e,t){return ss.S(e,t)},X:function(e,t,n,r){var i=r._originalDate||e,o=i.getTimezoneOffset();if(o===0)return"Z";switch(t){case"X":return IL(o);case"XXXX":case"XX":return Bl(o);case"XXXXX":case"XXX":default:return Bl(o,":")}},x:function(e,t,n,r){var i=r._originalDate||e,o=i.getTimezoneOffset();switch(t){case"x":return IL(o);case"xxxx":case"xx":return Bl(o);case"xxxxx":case"xxx":default:return Bl(o,":")}},O:function(e,t,n,r){var i=r._originalDate||e,o=i.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+LL(o,":");case"OOOO":default:return"GMT"+Bl(o,":")}},z:function(e,t,n,r){var i=r._originalDate||e,o=i.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+LL(o,":");case"zzzz":default:return"GMT"+Bl(o,":")}},t:function(e,t,n,r){var i=r._originalDate||e,o=Math.floor(i.getTime()/1e3);return Pt(o,t.length)},T:function(e,t,n,r){var i=r._originalDate||e,o=i.getTime();return Pt(o,t.length)}};function LL(e,t){var n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),o=r%60;if(o===0)return n+String(i);var a=t||"";return n+String(i)+a+Pt(o,2)}function IL(e,t){if(e%60===0){var n=e>0?"-":"+";return n+Pt(Math.abs(e)/60,2)}return Bl(e,t)}function Bl(e,t){var n=t||"",r=e>0?"-":"+",i=Math.abs(e),o=Pt(Math.floor(i/60),2),a=Pt(i%60,2);return r+o+n+a}const Lge=Dge;var FL=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},rV=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},Ige=function(e,t){var n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return FL(e,t);var o;switch(r){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",FL(r,t)).replace("{{time}}",rV(i,t))},Fge={p:rV,P:Ige};const NE=Fge;function db(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}var Uge=["D","DD"],$ge=["YY","YYYY"];function iV(e){return Uge.indexOf(e)!==-1}function oV(e){return $ge.indexOf(e)!==-1}function pb(e,t,n){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Bge={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},zge=function(e,t,n){var r,i=Bge[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};const Vge=zge;function IO(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}var Hge={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Wge={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Yge={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Gge={date:IO({formats:Hge,defaultWidth:"full"}),time:IO({formats:Wge,defaultWidth:"full"}),dateTime:IO({formats:Yge,defaultWidth:"full"})};const qge=Gge;var Kge={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Zge=function(e,t,n,r){return Kge[e]};const Qge=Zge;function yp(e){return function(t,n){var r=n!=null&&n.context?String(n.context):"standalone",i;if(r==="formatting"&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,a=n!=null&&n.width?String(n.width):o;i=e.formattingValues[a]||e.formattingValues[o]}else{var s=e.defaultWidth,l=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[l]||e.values[s]}var u=e.argumentCallback?e.argumentCallback(t):t;return i[u]}}var Xge={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Jge={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},eye={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},tye={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},nye={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},rye={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},iye=function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},oye={ordinalNumber:iye,era:yp({values:Xge,defaultWidth:"wide"}),quarter:yp({values:Jge,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:yp({values:eye,defaultWidth:"wide"}),day:yp({values:tye,defaultWidth:"wide"}),dayPeriod:yp({values:nye,defaultWidth:"wide",formattingValues:rye,defaultFormattingWidth:"wide"})};const aye=oye;function bp(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;var a=o[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?lye(s,function(d){return d.test(a)}):sye(s,function(d){return d.test(a)}),u;u=e.valueCallback?e.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;var f=t.slice(a.length);return{value:u,rest:f}}}function sye(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function lye(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],o=t.match(e.parsePattern);if(!o)return null;var a=e.valueCallback?e.valueCallback(o[0]):o[0];a=n.valueCallback?n.valueCallback(a):a;var s=t.slice(i.length);return{value:a,rest:s}}}var cye=/^(\d+)(th|st|nd|rd)?/i,fye=/\d+/i,dye={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},pye={any:[/^b/i,/^(a|c)/i]},hye={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},mye={any:[/1/i,/2/i,/3/i,/4/i]},vye={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},gye={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},yye={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},bye={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},_ye={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},wye={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},xye={ordinalNumber:uye({matchPattern:cye,parsePattern:fye,valueCallback:function(e){return parseInt(e,10)}}),era:bp({matchPatterns:dye,defaultMatchWidth:"wide",parsePatterns:pye,defaultParseWidth:"any"}),quarter:bp({matchPatterns:hye,defaultMatchWidth:"wide",parsePatterns:mye,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:bp({matchPatterns:vye,defaultMatchWidth:"wide",parsePatterns:gye,defaultParseWidth:"any"}),day:bp({matchPatterns:yye,defaultMatchWidth:"wide",parsePatterns:bye,defaultParseWidth:"any"}),dayPeriod:bp({matchPatterns:_ye,defaultMatchWidth:"any",parsePatterns:wye,defaultParseWidth:"any"})};const Oye=xye;var Sye={code:"en-US",formatDistance:Vge,formatLong:qge,formatRelative:Qge,localize:aye,match:Oye,options:{weekStartsOn:0,firstWeekContainsDate:1}};const aV=Sye;var Eye=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Tye=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Cye=/^'([^]*?)'?$/,kye=/''/g,jye=/[a-zA-Z]/;function UL(e,t,n){var r,i,o,a,s,l,u,f,d,p,m,v,g,x,b,_,w,O;Me(2,arguments);var E=String(t),T=Bu(),k=(r=(i=n==null?void 0:n.locale)!==null&&i!==void 0?i:T.locale)!==null&&r!==void 0?r:aV,P=at((o=(a=(s=(l=n==null?void 0:n.firstWeekContainsDate)!==null&&l!==void 0?l:n==null||(u=n.locale)===null||u===void 0||(f=u.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&s!==void 0?s:T.firstWeekContainsDate)!==null&&a!==void 0?a:(d=T.locale)===null||d===void 0||(p=d.options)===null||p===void 0?void 0:p.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(P>=1&&P<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var D=at((m=(v=(g=(x=n==null?void 0:n.weekStartsOn)!==null&&x!==void 0?x:n==null||(b=n.locale)===null||b===void 0||(_=b.options)===null||_===void 0?void 0:_.weekStartsOn)!==null&&g!==void 0?g:T.weekStartsOn)!==null&&v!==void 0?v:(w=T.locale)===null||w===void 0||(O=w.options)===null||O===void 0?void 0:O.weekStartsOn)!==null&&m!==void 0?m:0);if(!(D>=0&&D<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!k.localize)throw new RangeError("locale must contain localize property");if(!k.formatLong)throw new RangeError("locale must contain formatLong property");var N=ze(e);if(!um(N))throw new RangeError("Invalid time value");var F=db(N),B=Jz(N,F),Y={firstWeekContainsDate:P,weekStartsOn:D,locale:k,_originalDate:N},H=E.match(Tye).map(function(Q){var Z=Q[0];if(Z==="p"||Z==="P"){var te=NE[Z];return te(Q,k.formatLong)}return Q}).join("").match(Eye).map(function(Q){if(Q==="''")return"'";var Z=Q[0];if(Z==="'")return Pye(Q);var te=Lge[Z];if(te)return!(n!=null&&n.useAdditionalWeekYearTokens)&&oV(Q)&&pb(Q,t,String(e)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&iV(Q)&&pb(Q,t,String(e)),te(B,Q,k.localize,Y);if(Z.match(jye))throw new RangeError("Format string contains an unescaped latin alphabet character `"+Z+"`");return Q}).join("");return H}function Pye(e){var t=e.match(Cye);return t?t[1].replace(kye,"'"):e}var Aye=6e4;function ME(e,t){Me(2,arguments);var n=at(t);return Jj(e,n*Aye)}var Nye=36e5;function Mye(e,t){Me(2,arguments);var n=at(t);return Jj(e,n*Nye)}function Ed(e,t){Me(2,arguments);var n=ze(e),r=at(t);return isNaN(r)?new Date(NaN):(r&&n.setDate(n.getDate()+r),n)}function hb(e,t){Me(2,arguments);var n=at(t),r=n*7;return Ed(e,r)}function xo(e,t){Me(2,arguments);var n=ze(e),r=at(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var i=n.getDate(),o=new Date(n.getTime());o.setMonth(n.getMonth()+r+1,0);var a=o.getDate();return i>=a?o:(n.setFullYear(o.getFullYear(),o.getMonth(),i),n)}function sV(e,t){Me(2,arguments);var n=at(t),r=n*3;return xo(e,r)}function Nf(e,t){Me(2,arguments);var n=at(t);return xo(e,n*12)}function Rye(e,t){Me(2,arguments);var n=at(t);return Ed(e,-n)}function $L(e,t){Me(2,arguments);var n=at(t);return hb(e,-n)}function Mf(e,t){Me(2,arguments);var n=at(t);return xo(e,-n)}function Dye(e,t){Me(2,arguments);var n=at(t);return sV(e,-n)}function cm(e,t){Me(2,arguments);var n=at(t);return Nf(e,-n)}function BL(e){Me(1,arguments);var t=ze(e),n=t.getSeconds();return n}function Yo(e){Me(1,arguments);var t=ze(e),n=t.getMinutes();return n}function Go(e){Me(1,arguments);var t=ze(e),n=t.getHours();return n}function Lye(e){Me(1,arguments);var t=ze(e),n=t.getDay();return n}function zL(e){Me(1,arguments);var t=ze(e),n=t.getDate();return n}function lV(e,t){var n,r,i,o,a,s,l,u;Me(1,arguments);var f=Bu(),d=at((n=(r=(i=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:f.weekStartsOn)!==null&&r!==void 0?r:(l=f.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&n!==void 0?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=ze(e),m=p.getDay(),v=(m=i.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function Fye(e){Me(1,arguments);var t=Iye(e),n=new Date(0);n.setFullYear(t,0,4),n.setHours(0,0,0,0);var r=mb(n);return r}var Uye=6048e5;function $ye(e){Me(1,arguments);var t=ze(e),n=mb(t).getTime()-Fye(t).getTime();return Math.round(n/Uye)+1}function br(e){Me(1,arguments);var t=ze(e),n=t.getMonth();return n}function Bc(e){Me(1,arguments);var t=ze(e),n=Math.floor(t.getMonth()/3)+1;return n}function ut(e){return Me(1,arguments),ze(e).getFullYear()}function RE(e){Me(1,arguments);var t=ze(e),n=t.getTime();return n}function Bye(e,t){Me(2,arguments);var n=ze(e),r=at(t);return n.setSeconds(r),n}function Ly(e,t){Me(2,arguments);var n=ze(e),r=at(t);return n.setMinutes(r),n}function Iy(e,t){Me(2,arguments);var n=ze(e),r=at(t);return n.setHours(r),n}function zye(e){Me(1,arguments);var t=ze(e),n=t.getFullYear(),r=t.getMonth(),i=new Date(0);return i.setFullYear(n,r+1,0),i.setHours(0,0,0,0),i.getDate()}function jr(e,t){Me(2,arguments);var n=ze(e),r=at(t),i=n.getFullYear(),o=n.getDate(),a=new Date(0);a.setFullYear(i,r,15),a.setHours(0,0,0,0);var s=zye(a);return n.setMonth(r,Math.min(o,s)),n}function pc(e,t){Me(2,arguments);var n=ze(e),r=at(t),i=Math.floor(n.getMonth()/3)+1,o=r-i;return jr(n,n.getMonth()+o*3)}function ba(e,t){Me(2,arguments);var n=ze(e),r=at(t);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(r),n)}function VL(e){Me(1,arguments);var t;if(e&&typeof e.forEach=="function")t=e;else if(Hi(e)==="object"&&e!==null)t=Array.prototype.slice.call(e);else return new Date(NaN);var n;return t.forEach(function(r){var i=ze(r);(n===void 0||n>i||isNaN(i.getDate()))&&(n=i)}),n||new Date(NaN)}function HL(e){Me(1,arguments);var t;if(e&&typeof e.forEach=="function")t=e;else if(Hi(e)==="object"&&e!==null)t=Array.prototype.slice.call(e);else return new Date(NaN);var n;return t.forEach(function(r){var i=ze(r);(n===void 0||nr.getTime()}function ks(e,t){Me(2,arguments);var n=ze(e),r=ze(t);return n.getTime()=r&&n<=i}function WL(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(l){throw l},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,s;return{s:function(){n=n.call(e)},n:function(){var l=n.next();return o=l.done,l},e:function(l){a=!0,s=l},f:function(){try{!o&&n.return!=null&&n.return()}finally{if(a)throw s}}}}function Xye(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function Ue(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function IE(e,t){return IE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},IE(e,t)}function wt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&IE(e,t)}function bb(e){return bb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},bb(e)}function Jye(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function e0e(e,t){if(t&&(Hi(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ue(e)}function xt(e){var t=Jye();return function(){var n=bb(e),r;if(t){var i=bb(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return e0e(this,r)}}function mt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function t0e(e,t){if(Hi(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Hi(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function fV(e){var t=t0e(e,"string");return Hi(t)==="symbol"?t:String(t)}function GL(e,t){for(var n=0;n0,r=n?t:1-t,i;if(r<=50)i=e||100;else{var o=r+50,a=Math.floor(o/100)*100,s=e>=o%100;i=e+a-(s?100:0)}return n?i:1-i}function vV(e){return e%400===0||e%4===0&&e%100!==0}var s0e=function(e){wt(n,e);var t=xt(n);function n(){var r;mt(this,n);for(var i=arguments.length,o=new Array(i),a=0;a0}},{key:"set",value:function(r,i,o){var a=r.getUTCFullYear();if(o.isTwoDigitYear){var s=mV(o.year,a);return r.setUTCFullYear(s,0,1),r.setUTCHours(0,0,0,0),r}var l=!("era"in i)||i.era===1?o.year:1-o.year;return r.setUTCFullYear(l,0,1),r.setUTCHours(0,0,0,0),r}}]),n}(Ct),l0e=function(e){wt(n,e);var t=xt(n);function n(){var r;mt(this,n);for(var i=arguments.length,o=new Array(i),a=0;a0}},{key:"set",value:function(r,i,o,a){var s=eP(r,a);if(o.isTwoDigitYear){var l=mV(o.year,s);return r.setUTCFullYear(l,0,a.firstWeekContainsDate),r.setUTCHours(0,0,0,0),Au(r,a)}var u=!("era"in i)||i.era===1?o.year:1-o.year;return r.setUTCFullYear(u,0,a.firstWeekContainsDate),r.setUTCHours(0,0,0,0),Au(r,a)}}]),n}(Ct),u0e=function(e){wt(n,e);var t=xt(n);function n(){var r;mt(this,n);for(var i=arguments.length,o=new Array(i),a=0;a=1&&i<=4}},{key:"set",value:function(r,i,o){return r.setUTCMonth((o-1)*3,1),r.setUTCHours(0,0,0,0),r}}]),n}(Ct),d0e=function(e){wt(n,e);var t=xt(n);function n(){var r;mt(this,n);for(var i=arguments.length,o=new Array(i),a=0;a=1&&i<=4}},{key:"set",value:function(r,i,o){return r.setUTCMonth((o-1)*3,1),r.setUTCHours(0,0,0,0),r}}]),n}(Ct),p0e=function(e){wt(n,e);var t=xt(n);function n(){var r;mt(this,n);for(var i=arguments.length,o=new Array(i),a=0;a=0&&i<=11}},{key:"set",value:function(r,i,o){return r.setUTCMonth(o,1),r.setUTCHours(0,0,0,0),r}}]),n}(Ct),h0e=function(e){wt(n,e);var t=xt(n);function n(){var r;mt(this,n);for(var i=arguments.length,o=new Array(i),a=0;a=0&&i<=11}},{key:"set",value:function(r,i,o){return r.setUTCMonth(o,1),r.setUTCHours(0,0,0,0),r}}]),n}(Ct);function m0e(e,t,n){Me(2,arguments);var r=ze(e),i=at(t),o=nV(r,n)-i;return r.setUTCDate(r.getUTCDate()-o*7),r}var v0e=function(e){wt(n,e);var t=xt(n);function n(){var r;mt(this,n);for(var i=arguments.length,o=new Array(i),a=0;a=1&&i<=53}},{key:"set",value:function(r,i,o,a){return Au(m0e(r,o,a),a)}}]),n}(Ct);function g0e(e,t){Me(2,arguments);var n=ze(e),r=at(t),i=tV(n)-r;return n.setUTCDate(n.getUTCDate()-i*7),n}var y0e=function(e){wt(n,e);var t=xt(n);function n(){var r;mt(this,n);for(var i=arguments.length,o=new Array(i),a=0;a=1&&i<=53}},{key:"set",value:function(r,i,o){return Af(g0e(r,o))}}]),n}(Ct),b0e=[31,28,31,30,31,30,31,31,30,31,30,31],_0e=[31,29,31,30,31,30,31,31,30,31,30,31],w0e=function(e){wt(n,e);var t=xt(n);function n(){var r;mt(this,n);for(var i=arguments.length,o=new Array(i),a=0;a=1&&i<=_0e[s]:i>=1&&i<=b0e[s]}},{key:"set",value:function(r,i,o){return r.setUTCDate(o),r.setUTCHours(0,0,0,0),r}}]),n}(Ct),x0e=function(e){wt(n,e);var t=xt(n);function n(){var r;mt(this,n);for(var i=arguments.length,o=new Array(i),a=0;a=1&&i<=366:i>=1&&i<=365}},{key:"set",value:function(r,i,o){return r.setUTCMonth(0,o),r.setUTCHours(0,0,0,0),r}}]),n}(Ct);function iP(e,t,n){var r,i,o,a,s,l,u,f;Me(2,arguments);var d=Bu(),p=at((r=(i=(o=(a=n==null?void 0:n.weekStartsOn)!==null&&a!==void 0?a:n==null||(s=n.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&o!==void 0?o:d.weekStartsOn)!==null&&i!==void 0?i:(u=d.locale)===null||u===void 0||(f=u.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&r!==void 0?r:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=ze(e),v=at(t),g=m.getUTCDay(),x=v%7,b=(x+7)%7,_=(b=0&&i<=6}},{key:"set",value:function(r,i,o,a){return r=iP(r,o,a),r.setUTCHours(0,0,0,0),r}}]),n}(Ct),S0e=function(e){wt(n,e);var t=xt(n);function n(){var r;mt(this,n);for(var i=arguments.length,o=new Array(i),a=0;a=0&&i<=6}},{key:"set",value:function(r,i,o,a){return r=iP(r,o,a),r.setUTCHours(0,0,0,0),r}}]),n}(Ct),E0e=function(e){wt(n,e);var t=xt(n);function n(){var r;mt(this,n);for(var i=arguments.length,o=new Array(i),a=0;a=0&&i<=6}},{key:"set",value:function(r,i,o,a){return r=iP(r,o,a),r.setUTCHours(0,0,0,0),r}}]),n}(Ct);function T0e(e,t){Me(2,arguments);var n=at(t);n%7===0&&(n=n-7);var r=1,i=ze(e),o=i.getUTCDay(),a=n%7,s=(a+7)%7,l=(s=1&&i<=7}},{key:"set",value:function(r,i,o){return r=T0e(r,o),r.setUTCHours(0,0,0,0),r}}]),n}(Ct),k0e=function(e){wt(n,e);var t=xt(n);function n(){var r;mt(this,n);for(var i=arguments.length,o=new Array(i),a=0;a=1&&i<=12}},{key:"set",value:function(r,i,o){var a=r.getUTCHours()>=12;return a&&o<12?r.setUTCHours(o+12,0,0,0):!a&&o===12?r.setUTCHours(0,0,0,0):r.setUTCHours(o,0,0,0),r}}]),n}(Ct),N0e=function(e){wt(n,e);var t=xt(n);function n(){var r;mt(this,n);for(var i=arguments.length,o=new Array(i),a=0;a=0&&i<=23}},{key:"set",value:function(r,i,o){return r.setUTCHours(o,0,0,0),r}}]),n}(Ct),M0e=function(e){wt(n,e);var t=xt(n);function n(){var r;mt(this,n);for(var i=arguments.length,o=new Array(i),a=0;a=0&&i<=11}},{key:"set",value:function(r,i,o){var a=r.getUTCHours()>=12;return a&&o<12?r.setUTCHours(o+12,0,0,0):r.setUTCHours(o,0,0,0),r}}]),n}(Ct),R0e=function(e){wt(n,e);var t=xt(n);function n(){var r;mt(this,n);for(var i=arguments.length,o=new Array(i),a=0;a=1&&i<=24}},{key:"set",value:function(r,i,o){var a=o<=24?o%24:o;return r.setUTCHours(a,0,0,0),r}}]),n}(Ct),D0e=function(e){wt(n,e);var t=xt(n);function n(){var r;mt(this,n);for(var i=arguments.length,o=new Array(i),a=0;a=0&&i<=59}},{key:"set",value:function(r,i,o){return r.setUTCMinutes(o,0,0),r}}]),n}(Ct),L0e=function(e){wt(n,e);var t=xt(n);function n(){var r;mt(this,n);for(var i=arguments.length,o=new Array(i),a=0;a=0&&i<=59}},{key:"set",value:function(r,i,o){return r.setUTCSeconds(o,0),r}}]),n}(Ct),I0e=function(e){wt(n,e);var t=xt(n);function n(){var r;mt(this,n);for(var i=arguments.length,o=new Array(i),a=0;a=1&&N<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var F=at((v=(g=(x=(b=r==null?void 0:r.weekStartsOn)!==null&&b!==void 0?b:r==null||(_=r.locale)===null||_===void 0||(w=_.options)===null||w===void 0?void 0:w.weekStartsOn)!==null&&x!==void 0?x:P.weekStartsOn)!==null&&g!==void 0?g:(O=P.locale)===null||O===void 0||(E=O.options)===null||E===void 0?void 0:E.weekStartsOn)!==null&&v!==void 0?v:0);if(!(F>=0&&F<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(k==="")return T===""?ze(n):new Date(NaN);var B={firstWeekContainsDate:N,weekStartsOn:F,locale:D},Y=[new i0e],H=k.match(H0e).map(function(j){var A=j[0];if(A in NE){var $=NE[A];return $(j,D.formatLong)}return j}).join("").match(V0e),Q=[],Z=YL(H),te;try{var X=function(){var j=te.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&oV(j)&&pb(j,k,e),!(r!=null&&r.useAdditionalDayOfYearTokens)&&iV(j)&&pb(j,k,e);var A=j[0],$=z0e[A];if($){var J=$.incompatibleTokens;if(Array.isArray(J)){var K=Q.find(function(he){return J.includes(he.token)||he.token===A});if(K)throw new RangeError("The format string mustn't contain `".concat(K.fullToken,"` and `").concat(j,"` at the same time"))}else if($.incompatibleTokens==="*"&&Q.length>0)throw new RangeError("The format string mustn't contain `".concat(j,"` and any other token at the same time"));Q.push({token:A,fullToken:j});var se=$.run(T,j,D.match,B);if(!se)return{v:new Date(NaN)};Y.push(se.setter),T=se.rest}else{if(A.match(q0e))throw new RangeError("Format string contains an unescaped latin alphabet character `"+A+"`");if(j==="''"?j="'":A==="'"&&(j=K0e(j)),T.indexOf(j)===0)T=T.slice(j.length);else return{v:new Date(NaN)}}};for(Z.s();!(te=Z.n()).done;){var z=X();if(Hi(z)==="object")return z.v}}catch(j){Z.e(j)}finally{Z.f()}if(T.length>0&&G0e.test(T))return new Date(NaN);var V=Y.map(function(j){return j.priority}).sort(function(j,A){return A-j}).filter(function(j,A,$){return $.indexOf(j)===A}).map(function(j){return Y.filter(function(A){return A.priority===j}).sort(function(A,$){return $.subPriority-A.subPriority})}).map(function(j){return j[0]}),W=ze(n);if(isNaN(W.getTime()))return new Date(NaN);var re=Jz(W,db(W)),q={},ee=YL(V),oe;try{for(ee.s();!(oe=ee.n()).done;){var le=oe.value;if(!le.validate(re,B))return new Date(NaN);var fe=le.set(re,q,B);Array.isArray(fe)?(re=fe[0],Xye(q,fe[1])):re=fe}}catch(j){ee.e(j)}finally{ee.f()}return re}function K0e(e){return e.match(W0e)[1].replace(Y0e,"'")}function Z0e(e,t){var n;Me(1,arguments);var r=at((n=t==null?void 0:t.additionalDigits)!==null&&n!==void 0?n:2);if(r!==2&&r!==1&&r!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof e=="string"||Object.prototype.toString.call(e)==="[object String]"))return new Date(NaN);var i=ebe(e),o;if(i.date){var a=tbe(i.date,r);o=nbe(a.restDateString,a.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);var s=o.getTime(),l=0,u;if(i.time&&(l=rbe(i.time),isNaN(l)))return new Date(NaN);if(i.timezone){if(u=ibe(i.timezone),isNaN(u))return new Date(NaN)}else{var f=new Date(s+l),d=new Date(0);return d.setFullYear(f.getUTCFullYear(),f.getUTCMonth(),f.getUTCDate()),d.setHours(f.getUTCHours(),f.getUTCMinutes(),f.getUTCSeconds(),f.getUTCMilliseconds()),d}return new Date(s+l+u)}var Gg={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Q0e=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,X0e=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,J0e=/^([+-])(\d{2})(?::?(\d{2}))?$/;function ebe(e){var t={},n=e.split(Gg.dateTimeDelimiter),r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],Gg.timeZoneDelimiter.test(t.date)&&(t.date=e.split(Gg.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){var i=Gg.timezone.exec(r);i?(t.time=r.replace(i[1],""),t.timezone=i[1]):t.time=r}return t}function tbe(e,t){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};var i=r[1]?parseInt(r[1]):null,o=r[2]?parseInt(r[2]):null;return{year:o===null?i:o*100,restDateString:e.slice((r[1]||r[2]).length)}}function nbe(e,t){if(t===null)return new Date(NaN);var n=e.match(Q0e);if(!n)return new Date(NaN);var r=!!n[4],i=_p(n[1]),o=_p(n[2])-1,a=_p(n[3]),s=_p(n[4]),l=_p(n[5])-1;if(r)return ube(t,s,l)?obe(t,s,l):new Date(NaN);var u=new Date(0);return!sbe(t,o,a)||!lbe(t,i)?new Date(NaN):(u.setUTCFullYear(t,o,Math.max(i,a)),u)}function _p(e){return e?parseInt(e):1}function rbe(e){var t=e.match(X0e);if(!t)return NaN;var n=UO(t[1]),r=UO(t[2]),i=UO(t[3]);return cbe(n,r,i)?n*nP+r*tP+i*1e3:NaN}function UO(e){return e&&parseFloat(e.replace(",","."))||0}function ibe(e){if(e==="Z")return 0;var t=e.match(J0e);if(!t)return 0;var n=t[1]==="+"?-1:1,r=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return fbe(r,i)?n*(r*nP+i*tP):NaN}function obe(e,t,n){var r=new Date(0);r.setUTCFullYear(e,0,4);var i=r.getUTCDay()||7,o=(t-1)*7+n+1-i;return r.setUTCDate(r.getUTCDate()+o),r}var abe=[31,null,31,30,31,30,31,31,30,31,30,31];function gV(e){return e%400===0||e%4===0&&e%100!==0}function sbe(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(abe[t]||(gV(e)?29:28))}function lbe(e,t){return t>=1&&t<=(gV(e)?366:365)}function ube(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function cbe(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function fbe(e,t){return t>=0&&t<=59}function dbe(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,FE(e,t)}function FE(e,t){return FE=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},FE(e,t)}function pbe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}function qL(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hbe(e,t,n){return e===t?!0:e.correspondingElement?e.correspondingElement.classList.contains(n):e.classList.contains(n)}function mbe(e,t,n){if(e===t)return!0;for(;e.parentNode||e.host;){if(e.parentNode&&hbe(e,t,n))return!0;e=e.parentNode||e.host}return e}function vbe(e){return document.documentElement.clientWidth<=e.clientX||document.documentElement.clientHeight<=e.clientY}var gbe=function(){if(!(typeof window>"u"||typeof window.addEventListener!="function")){var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}}),n=function(){};return window.addEventListener("testPassiveEventSupport",n,t),window.removeEventListener("testPassiveEventSupport",n,t),e}};function ybe(e){return e===void 0&&(e=0),function(){return++e}}var bbe=ybe(),UE,qg={},$O={},_be=["touchstart","touchmove"],wbe="ignore-react-onclickoutside";function KL(e,t){var n={},r=_be.indexOf(t)!==-1;return r&&UE&&(n.passive=!e.props.preventDefault),n}function bw(e,t){var n,r,i=e.displayName||e.name||"Component";return r=n=function(o){dbe(a,o);function a(l){var u;return u=o.call(this,l)||this,u.__outsideClickHandler=function(f){if(typeof u.__clickOutsideHandlerProp=="function"){u.__clickOutsideHandlerProp(f);return}var d=u.getInstance();if(typeof d.props.handleClickOutside=="function"){d.props.handleClickOutside(f);return}if(typeof d.handleClickOutside=="function"){d.handleClickOutside(f);return}throw new Error("WrappedComponent: "+i+" lacks a handleClickOutside(event) function for processing outside click events.")},u.__getComponentNode=function(){var f=u.getInstance();return t&&typeof t.setClickOutsideRef=="function"?t.setClickOutsideRef()(f):typeof f.setClickOutsideRef=="function"?f.setClickOutsideRef():dd.findDOMNode(f)},u.enableOnClickOutside=function(){if(!(typeof document>"u"||$O[u._uid])){typeof UE>"u"&&(UE=gbe()),$O[u._uid]=!0;var f=u.props.eventTypes;f.forEach||(f=[f]),qg[u._uid]=function(d){if(u.componentNode!==null&&(u.props.preventDefault&&d.preventDefault(),u.props.stopPropagation&&d.stopPropagation(),!(u.props.excludeScrollbar&&vbe(d)))){var p=d.composed&&d.composedPath&&d.composedPath().shift()||d.target;mbe(p,u.componentNode,u.props.outsideClickIgnoreClass)===document&&u.__outsideClickHandler(d)}},f.forEach(function(d){document.addEventListener(d,qg[u._uid],KL(qL(u),d))})}},u.disableOnClickOutside=function(){delete $O[u._uid];var f=qg[u._uid];if(f&&typeof document<"u"){var d=u.props.eventTypes;d.forEach||(d=[d]),d.forEach(function(p){return document.removeEventListener(p,f,KL(qL(u),p))}),delete qg[u._uid]}},u.getRef=function(f){return u.instanceRef=f},u._uid=bbe(),u}var s=a.prototype;return s.getInstance=function(){if(e.prototype&&!e.prototype.isReactComponent)return this;var l=this.instanceRef;return l.getInstance?l.getInstance():l},s.componentDidMount=function(){if(!(typeof document>"u"||!document.createElement)){var l=this.getInstance();if(t&&typeof t.handleClickOutside=="function"&&(this.__clickOutsideHandlerProp=t.handleClickOutside(l),typeof this.__clickOutsideHandlerProp!="function"))throw new Error("WrappedComponent: "+i+" lacks a function for processing outside click events specified by the handleClickOutside config option.");this.componentNode=this.__getComponentNode(),!this.props.disableOnClickOutside&&this.enableOnClickOutside()}},s.componentDidUpdate=function(){this.componentNode=this.__getComponentNode()},s.componentWillUnmount=function(){this.disableOnClickOutside()},s.render=function(){var l=this.props;l.excludeScrollbar;var u=pbe(l,["excludeScrollbar"]);return e.prototype&&e.prototype.isReactComponent?u.ref=this.getRef:u.wrappedRef=this.getRef,u.disableOnClickOutside=this.disableOnClickOutside,u.enableOnClickOutside=this.enableOnClickOutside,I.createElement(e,u)},a}(I.Component),n.displayName="OnClickOutside("+i+")",n.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:t&&t.excludeScrollbar||!1,outsideClickIgnoreClass:wbe,preventDefault:!1,stopPropagation:!1},n.getClass=function(){return e.getClass?e.getClass():e},r}var yV=I.createContext(),bV=I.createContext();function xbe(e){var t=e.children,n=I.useState(null),r=n[0],i=n[1],o=I.useRef(!1);I.useEffect(function(){return function(){o.current=!0}},[]);var a=I.useCallback(function(s){o.current||i(s)},[]);return I.createElement(yV.Provider,{value:r},I.createElement(bV.Provider,{value:a},t))}var _V=function(e){return Array.isArray(e)?e[0]:e},wV=function(e){if(typeof e=="function"){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r"u")return!1;var t=mi(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Dbe(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},o=t.elements[n];!Fi(o)||!na(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(a){var s=i[a];s===!1?o.removeAttribute(a):o.setAttribute(a,s===!0?"":s)}))})}function Lbe(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],o=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=a.reduce(function(l,u){return l[u]="",l},{});!Fi(i)||!na(i)||(Object.assign(i.style,s),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}const Ibe={name:"applyStyles",enabled:!0,phase:"write",fn:Dbe,effect:Lbe,requires:["computeStyles"]};function Ko(e){return e.split("-")[0]}var hu=Math.max,_b=Math.min,Df=Math.round;function BE(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function SV(){return!/^((?!chrome|android).)*safari/i.test(BE())}function Lf(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&Fi(e)&&(i=e.offsetWidth>0&&Df(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Df(r.height)/e.offsetHeight||1);var a=Nu(e)?mi(e):window,s=a.visualViewport,l=!SV()&&n,u=(r.left+(l&&s?s.offsetLeft:0))/i,f=(r.top+(l&&s?s.offsetTop:0))/o,d=r.width/i,p=r.height/o;return{width:d,height:p,top:f,right:u+d,bottom:f+p,left:u,x:u,y:f}}function sP(e){var t=Lf(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function EV(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&aP(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function $a(e){return mi(e).getComputedStyle(e)}function Fbe(e){return["table","td","th"].indexOf(na(e))>=0}function gl(e){return((Nu(e)?e.ownerDocument:e.document)||window.document).documentElement}function _w(e){return na(e)==="html"?e:e.assignedSlot||e.parentNode||(aP(e)?e.host:null)||gl(e)}function JL(e){return!Fi(e)||$a(e).position==="fixed"?null:e.offsetParent}function Ube(e){var t=/firefox/i.test(BE()),n=/Trident/i.test(BE());if(n&&Fi(e)){var r=$a(e);if(r.position==="fixed")return null}var i=_w(e);for(aP(i)&&(i=i.host);Fi(i)&&["html","body"].indexOf(na(i))<0;){var o=$a(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function Ev(e){for(var t=mi(e),n=JL(e);n&&Fbe(n)&&$a(n).position==="static";)n=JL(n);return n&&(na(n)==="html"||na(n)==="body"&&$a(n).position==="static")?t:n||Ube(e)||t}function lP(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ph(e,t,n){return hu(e,_b(t,n))}function $be(e,t,n){var r=ph(e,t,n);return r>n?n:r}function TV(){return{top:0,right:0,bottom:0,left:0}}function CV(e){return Object.assign({},TV(),e)}function kV(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Bbe=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,CV(typeof e!="number"?e:kV(e,Sv))};function zbe(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=Ko(n.placement),l=lP(s),u=[Xr,Yi].indexOf(s)>=0,f=u?"height":"width";if(!(!o||!a)){var d=Bbe(i.padding,n),p=sP(o),m=l==="y"?Qr:Xr,v=l==="y"?Wi:Yi,g=n.rects.reference[f]+n.rects.reference[l]-a[l]-n.rects.popper[f],x=a[l]-n.rects.reference[l],b=Ev(o),_=b?l==="y"?b.clientHeight||0:b.clientWidth||0:0,w=g/2-x/2,O=d[m],E=_-p[f]-d[v],T=_/2-p[f]/2+w,k=ph(O,T,E),P=l;n.modifiersData[r]=(t={},t[P]=k,t.centerOffset=k-T,t)}}function Vbe(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||EV(t.elements.popper,i)&&(t.elements.arrow=i))}const Hbe={name:"arrow",enabled:!0,phase:"main",fn:zbe,effect:Vbe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function If(e){return e.split("-")[1]}var Wbe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ybe(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Df(n*i)/i||0,y:Df(r*i)/i||0}}function e4(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,f=e.roundOffsets,d=e.isFixed,p=a.x,m=p===void 0?0:p,v=a.y,g=v===void 0?0:v,x=typeof f=="function"?f({x:m,y:g}):{x:m,y:g};m=x.x,g=x.y;var b=a.hasOwnProperty("x"),_=a.hasOwnProperty("y"),w=Xr,O=Qr,E=window;if(u){var T=Ev(n),k="clientHeight",P="clientWidth";if(T===mi(n)&&(T=gl(n),$a(T).position!=="static"&&s==="absolute"&&(k="scrollHeight",P="scrollWidth")),T=T,i===Qr||(i===Xr||i===Yi)&&o===dm){O=Wi;var D=d&&T===E&&E.visualViewport?E.visualViewport.height:T[k];g-=D-r.height,g*=l?1:-1}if(i===Xr||(i===Qr||i===Wi)&&o===dm){w=Yi;var N=d&&T===E&&E.visualViewport?E.visualViewport.width:T[P];m-=N-r.width,m*=l?1:-1}}var F=Object.assign({position:s},u&&Wbe),B=f===!0?Ybe({x:m,y:g},mi(n)):{x:m,y:g};if(m=B.x,g=B.y,l){var Y;return Object.assign({},F,(Y={},Y[O]=_?"0":"",Y[w]=b?"0":"",Y.transform=(E.devicePixelRatio||1)<=1?"translate("+m+"px, "+g+"px)":"translate3d("+m+"px, "+g+"px, 0)",Y))}return Object.assign({},F,(t={},t[O]=_?g+"px":"",t[w]=b?m+"px":"",t.transform="",t))}function Gbe(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,a=o===void 0?!0:o,s=n.roundOffsets,l=s===void 0?!0:s,u={placement:Ko(t.placement),variation:If(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,e4(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,e4(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const qbe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Gbe,data:{}};var Kg={passive:!0};function Kbe(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,a=r.resize,s=a===void 0?!0:a,l=mi(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach(function(f){f.addEventListener("scroll",n.update,Kg)}),s&&l.addEventListener("resize",n.update,Kg),function(){o&&u.forEach(function(f){f.removeEventListener("scroll",n.update,Kg)}),s&&l.removeEventListener("resize",n.update,Kg)}}const Zbe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Kbe,data:{}};var Qbe={left:"right",right:"left",bottom:"top",top:"bottom"};function Fy(e){return e.replace(/left|right|bottom|top/g,function(t){return Qbe[t]})}var Xbe={start:"end",end:"start"};function t4(e){return e.replace(/start|end/g,function(t){return Xbe[t]})}function uP(e){var t=mi(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function cP(e){return Lf(gl(e)).left+uP(e).scrollLeft}function Jbe(e,t){var n=mi(e),r=gl(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var u=SV();(u||!u&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+cP(e),y:l}}function e_e(e){var t,n=gl(e),r=uP(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=hu(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=hu(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+cP(e),l=-r.scrollTop;return $a(i||n).direction==="rtl"&&(s+=hu(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}function fP(e){var t=$a(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function jV(e){return["html","body","#document"].indexOf(na(e))>=0?e.ownerDocument.body:Fi(e)&&fP(e)?e:jV(_w(e))}function hh(e,t){var n;t===void 0&&(t=[]);var r=jV(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=mi(r),a=i?[o].concat(o.visualViewport||[],fP(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(hh(_w(a)))}function zE(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function t_e(e,t){var n=Lf(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function n4(e,t,n){return t===xV?zE(Jbe(e,n)):Nu(t)?t_e(t,n):zE(e_e(gl(e)))}function n_e(e){var t=hh(_w(e)),n=["absolute","fixed"].indexOf($a(e).position)>=0,r=n&&Fi(e)?Ev(e):e;return Nu(r)?t.filter(function(i){return Nu(i)&&EV(i,r)&&na(i)!=="body"}):[]}function r_e(e,t,n,r){var i=t==="clippingParents"?n_e(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce(function(l,u){var f=n4(e,u,r);return l.top=hu(f.top,l.top),l.right=_b(f.right,l.right),l.bottom=_b(f.bottom,l.bottom),l.left=hu(f.left,l.left),l},n4(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function PV(e){var t=e.reference,n=e.element,r=e.placement,i=r?Ko(r):null,o=r?If(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(i){case Qr:l={x:a,y:t.y-n.height};break;case Wi:l={x:a,y:t.y+t.height};break;case Yi:l={x:t.x+t.width,y:s};break;case Xr:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var u=i?lP(i):null;if(u!=null){var f=u==="y"?"height":"width";switch(o){case Rf:l[u]=l[u]-(t[f]/2-n[f]/2);break;case dm:l[u]=l[u]+(t[f]/2-n[f]/2);break}}return l}function pm(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.strategy,a=o===void 0?e.strategy:o,s=n.boundary,l=s===void 0?Obe:s,u=n.rootBoundary,f=u===void 0?xV:u,d=n.elementContext,p=d===void 0?wp:d,m=n.altBoundary,v=m===void 0?!1:m,g=n.padding,x=g===void 0?0:g,b=CV(typeof x!="number"?x:kV(x,Sv)),_=p===wp?Sbe:wp,w=e.rects.popper,O=e.elements[v?_:p],E=r_e(Nu(O)?O:O.contextElement||gl(e.elements.popper),l,f,a),T=Lf(e.elements.reference),k=PV({reference:T,element:w,strategy:"absolute",placement:i}),P=zE(Object.assign({},w,k)),D=p===wp?P:T,N={top:E.top-D.top+b.top,bottom:D.bottom-E.bottom+b.bottom,left:E.left-D.left+b.left,right:D.right-E.right+b.right},F=e.modifiersData.offset;if(p===wp&&F){var B=F[i];Object.keys(N).forEach(function(Y){var H=[Yi,Wi].indexOf(Y)>=0?1:-1,Q=[Qr,Wi].indexOf(Y)>=0?"y":"x";N[Y]+=B[Q]*H})}return N}function i_e(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?OV:l,f=If(r),d=f?s?XL:XL.filter(function(v){return If(v)===f}):Sv,p=d.filter(function(v){return u.indexOf(v)>=0});p.length===0&&(p=d);var m=p.reduce(function(v,g){return v[g]=pm(e,{placement:g,boundary:i,rootBoundary:o,padding:a})[Ko(g)],v},{});return Object.keys(m).sort(function(v,g){return m[v]-m[g]})}function o_e(e){if(Ko(e)===oP)return[];var t=Fy(e);return[t4(e),t,t4(t)]}function a_e(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!0:a,l=n.fallbackPlacements,u=n.padding,f=n.boundary,d=n.rootBoundary,p=n.altBoundary,m=n.flipVariations,v=m===void 0?!0:m,g=n.allowedAutoPlacements,x=t.options.placement,b=Ko(x),_=b===x,w=l||(_||!v?[Fy(x)]:o_e(x)),O=[x].concat(w).reduce(function(ee,oe){return ee.concat(Ko(oe)===oP?i_e(t,{placement:oe,boundary:f,rootBoundary:d,padding:u,flipVariations:v,allowedAutoPlacements:g}):oe)},[]),E=t.rects.reference,T=t.rects.popper,k=new Map,P=!0,D=O[0],N=0;N=0,Q=H?"width":"height",Z=pm(t,{placement:F,boundary:f,rootBoundary:d,altBoundary:p,padding:u}),te=H?Y?Yi:Xr:Y?Wi:Qr;E[Q]>T[Q]&&(te=Fy(te));var X=Fy(te),z=[];if(o&&z.push(Z[B]<=0),s&&z.push(Z[te]<=0,Z[X]<=0),z.every(function(ee){return ee})){D=F,P=!1;break}k.set(F,z)}if(P)for(var V=v?3:1,W=function(ee){var oe=O.find(function(le){var fe=k.get(le);if(fe)return fe.slice(0,ee).every(function(j){return j})});if(oe)return D=oe,"break"},re=V;re>0;re--){var q=W(re);if(q==="break")break}t.placement!==D&&(t.modifiersData[r]._skip=!0,t.placement=D,t.reset=!0)}}const s_e={name:"flip",enabled:!0,phase:"main",fn:a_e,requiresIfExists:["offset"],data:{_skip:!1}};function r4(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function i4(e){return[Qr,Yi,Wi,Xr].some(function(t){return e[t]>=0})}function l_e(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=pm(t,{elementContext:"reference"}),s=pm(t,{altBoundary:!0}),l=r4(a,r),u=r4(s,i,o),f=i4(l),d=i4(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:f,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":d})}const u_e={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:l_e};function c_e(e,t,n){var r=Ko(e),i=[Xr,Qr].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[Xr,Yi].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function f_e(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,a=OV.reduce(function(f,d){return f[d]=c_e(d,t.rects,o),f},{}),s=a[t.placement],l=s.x,u=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}const d_e={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:f_e};function p_e(e){var t=e.state,n=e.name;t.modifiersData[n]=PV({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const h_e={name:"popperOffsets",enabled:!0,phase:"read",fn:p_e,data:{}};function m_e(e){return e==="x"?"y":"x"}function v_e(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!1:a,l=n.boundary,u=n.rootBoundary,f=n.altBoundary,d=n.padding,p=n.tether,m=p===void 0?!0:p,v=n.tetherOffset,g=v===void 0?0:v,x=pm(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:f}),b=Ko(t.placement),_=If(t.placement),w=!_,O=lP(b),E=m_e(O),T=t.modifiersData.popperOffsets,k=t.rects.reference,P=t.rects.popper,D=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,N=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),F=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,B={x:0,y:0};if(T){if(o){var Y,H=O==="y"?Qr:Xr,Q=O==="y"?Wi:Yi,Z=O==="y"?"height":"width",te=T[O],X=te+x[H],z=te-x[Q],V=m?-P[Z]/2:0,W=_===Rf?k[Z]:P[Z],re=_===Rf?-P[Z]:-k[Z],q=t.elements.arrow,ee=m&&q?sP(q):{width:0,height:0},oe=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:TV(),le=oe[H],fe=oe[Q],j=ph(0,k[Z],ee[Z]),A=w?k[Z]/2-V-j-le-N.mainAxis:W-j-le-N.mainAxis,$=w?-k[Z]/2+V+j+fe+N.mainAxis:re+j+fe+N.mainAxis,J=t.elements.arrow&&Ev(t.elements.arrow),K=J?O==="y"?J.clientTop||0:J.clientLeft||0:0,se=(Y=F==null?void 0:F[O])!=null?Y:0,he=te+A-se-K,Ee=te+$-se,ue=ph(m?_b(X,he):X,te,m?hu(z,Ee):z);T[O]=ue,B[O]=ue-te}if(s){var ve,ge=O==="x"?Qr:Xr,Oe=O==="x"?Wi:Yi,Ce=T[E],ke=E==="y"?"height":"width",Pe=Ce+x[ge],ce=Ce-x[Oe],de=[Qr,Xr].indexOf(b)!==-1,_e=(ve=F==null?void 0:F[E])!=null?ve:0,be=de?Pe:Ce-k[ke]-P[ke]-_e+N.altAxis,Se=de?Ce+k[ke]+P[ke]-_e-N.altAxis:ce,Ae=m&&de?$be(be,Ce,Se):ph(m?be:Pe,Ce,m?Se:ce);T[E]=Ae,B[E]=Ae-Ce}t.modifiersData[r]=B}}const g_e={name:"preventOverflow",enabled:!0,phase:"main",fn:v_e,requiresIfExists:["offset"]};function y_e(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function b_e(e){return e===mi(e)||!Fi(e)?uP(e):y_e(e)}function __e(e){var t=e.getBoundingClientRect(),n=Df(t.width)/e.offsetWidth||1,r=Df(t.height)/e.offsetHeight||1;return n!==1||r!==1}function w_e(e,t,n){n===void 0&&(n=!1);var r=Fi(t),i=Fi(t)&&__e(t),o=gl(t),a=Lf(e,i,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((na(t)!=="body"||fP(o))&&(s=b_e(t)),Fi(t)?(l=Lf(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=cP(o))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function x_e(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function i(o){n.add(o.name);var a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&i(l)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function O_e(e){var t=x_e(e);return Rbe.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function S_e(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function E_e(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var o4={placement:"bottom",modifiers:[],strategy:"absolute"};function a4(){for(var e=arguments.length,t=new Array(e),n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var n,r=xb(e);if(t){var i=xb(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(o,a){if(a&&(typeof a=="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ie(o)}(this,n)}}function hm(e){return function(t){if(Array.isArray(t))return BO(t)}(e)||function(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}(e)||function(t,n){if(t){if(typeof t=="string")return BO(t,n);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return BO(t,n)}}(e)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function BO(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.maxDate,i=t.excludeDates,o=t.excludeDateIntervals,a=t.includeDates,s=t.includeDateIntervals,l=t.filterDate;return xw(e,{minDate:n,maxDate:r})||i&&i.some(function(u){return It(e,u)})||o&&o.some(function(u){var f=u.start,d=u.end;return fm(e,{start:f,end:d})})||a&&!a.some(function(u){return It(e,u)})||s&&!s.some(function(u){var f=u.start,d=u.end;return fm(e,{start:f,end:d})})||l&&!l(Rt(e))||!1}function pP(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.excludeDates,r=t.excludeDateIntervals;return r&&r.length>0?r.some(function(i){var o=i.start,a=i.end;return fm(e,{start:o,end:a})}):n&&n.some(function(i){return It(e,i)})||!1}function MV(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.maxDate,i=t.excludeDates,o=t.includeDates,a=t.filterDate;return xw(e,{minDate:uV(n),maxDate:Hye(r)})||i&&i.some(function(s){return co(e,s)})||o&&!o.some(function(s){return co(e,s)})||a&&!a(Rt(e))||!1}function zO(e,t,n,r){var i=ut(e),o=br(e),a=ut(t),s=br(t),l=ut(r);return i===a&&i===l?o<=n&&n<=s:i=n||li:void 0}function q_e(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.maxDate,i=t.excludeDates,o=t.includeDates,a=t.filterDate;return xw(e,{minDate:n,maxDate:r})||i&&i.some(function(s){return Ob(e,s)})||o&&!o.some(function(s){return Ob(e,s)})||a&&!a(Rt(e))||!1}function VO(e,t,n){if(!um(t)||!um(n))return!1;var r=ut(t),i=ut(n);return r<=e&&i>=e}function RV(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.maxDate,i=t.excludeDates,o=t.includeDates,a=t.filterDate,s=new Date(e,0,1);return xw(s,{minDate:cV(n),maxDate:Wye(r)})||i&&i.some(function(l){return js(s,l)})||o&&!o.some(function(l){return js(s,l)})||a&&!a(Rt(s))||!1}function HO(e,t,n,r){var i=ut(e),o=Bc(e),a=ut(t),s=Bc(t),l=ut(r);return i===a&&i===l?o<=n&&n<=s:i=n||li:void 0}function xw(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.maxDate;return n&&vb(e,n)<0||r&&vb(e,r)>0}function h4(e,t){return t.some(function(n){return Go(n)===Go(e)&&Yo(n)===Yo(e)})}function m4(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.excludeTimes,r=t.includeTimes,i=t.filterTime;return n&&h4(e,n)||r&&!h4(e,r)||i&&!i(e)||!1}function v4(e,t){var n=t.minTime,r=t.maxTime;if(!n||!r)throw new Error("Both minTime and maxTime props required");var i,o=Rt(),a=Iy(Ly(o,Yo(e)),Go(e)),s=Iy(Ly(o,Yo(n)),Go(n)),l=Iy(Ly(o,Yo(r)),Go(r));try{i=!fm(a,{start:s,end:l})}catch{i=!1}return i}function g4(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.includeDates,i=Mf(e,1);return n&&gb(n,i)>0||r&&r.every(function(o){return gb(o,i)>0})||!1}function y4(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.maxDate,r=t.includeDates,i=xo(e,1);return n&&gb(i,n)>0||r&&r.every(function(o){return gb(i,o)>0})||!1}function b4(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.includeDates,i=cm(e,1);return n&&yb(n,i)>0||r&&r.every(function(o){return yb(o,i)>0})||!1}function _4(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.maxDate,r=t.includeDates,i=Nf(e,1);return n&&yb(i,n)>0||r&&r.every(function(o){return yb(i,o)>0})||!1}function DV(e){var t=e.minDate,n=e.includeDates;if(n&&t){var r=n.filter(function(i){return vb(i,t)>=0});return VL(r)}return n?VL(n):t}function LV(e){var t=e.maxDate,n=e.includeDates;if(n&&t){var r=n.filter(function(i){return vb(i,t)<=0});return HL(r)}return n?HL(n):t}function w4(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"react-datepicker__day--highlighted",n=new Map,r=0,i=e.length;r0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"react-datepicker__day--holidays",n=new Map;return e.forEach(function(r){var i=r.date,o=r.holidayName;if(yw(i)){var a=Xt(i,"MM.dd.yyyy"),s=n.get(a)||{};if(!("className"in s)||s.className!==t||(l=s.holidayNames,u=[o],l.length!==u.length||!l.every(function(d,p){return d===u[p]}))){var l,u;s.className=t;var f=s.holidayNames;s.holidayNames=f?[].concat(hm(f),[o]):[o],n.set(a,s)}}}),n}function Z_e(e,t,n,r,i){for(var o=i.length,a=[],s=0;s1&&arguments[1]!==void 0?arguments[1]:mh,n=Math.ceil(ut(e)/t)*t;return{startPeriod:n-(t-1),endPeriod:n}}function O4(e){var t=e.getSeconds(),n=e.getMilliseconds();return ze(e.getTime()-1e3*t-n)}function Q_e(e,t,n,r){for(var i=[],o=0;o<2*t+1;o++){var a=e+t-o,s=!0;n&&(s=ut(n)<=a),r&&s&&(s=ut(r)>=a),s&&i.push(a)}return i}var X_e=bw(function(e){Zn(n,M.Component);var t=Qn(n);function n(r){var i;qn(this,n),ne(ie(i=t.call(this,r)),"renderOptions",function(){var l=i.props.year,u=i.state.yearsList.map(function(p){return M.createElement("div",{className:l===p?"react-datepicker__year-option react-datepicker__year-option--selected_year":"react-datepicker__year-option",key:p,onClick:i.onChange.bind(ie(i),p),"aria-selected":l===p?"true":void 0},l===p?M.createElement("span",{className:"react-datepicker__year-option--selected"},"✓"):"",p)}),f=i.props.minDate?ut(i.props.minDate):null,d=i.props.maxDate?ut(i.props.maxDate):null;return d&&i.state.yearsList.find(function(p){return p===d})||u.unshift(M.createElement("div",{className:"react-datepicker__year-option",key:"upcoming",onClick:i.incrementYears},M.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-upcoming"}))),f&&i.state.yearsList.find(function(p){return p===f})||u.push(M.createElement("div",{className:"react-datepicker__year-option",key:"previous",onClick:i.decrementYears},M.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-previous"}))),u}),ne(ie(i),"onChange",function(l){i.props.onChange(l)}),ne(ie(i),"handleClickOutside",function(){i.props.onCancel()}),ne(ie(i),"shiftYears",function(l){var u=i.state.yearsList.map(function(f){return f+l});i.setState({yearsList:u})}),ne(ie(i),"incrementYears",function(){return i.shiftYears(1)}),ne(ie(i),"decrementYears",function(){return i.shiftYears(-1)});var o=r.yearDropdownItemNumber,a=r.scrollableYearDropdown,s=o||(a?10:5);return i.state={yearsList:Q_e(i.props.year,s,i.props.minDate,i.props.maxDate)},i.dropdownRef=I.createRef(),i}return Kn(n,[{key:"componentDidMount",value:function(){var r=this.dropdownRef.current;if(r){var i=r.children?Array.from(r.children):null,o=i?i.find(function(a){return a.ariaSelected}):null;r.scrollTop=o?o.offsetTop+(o.clientHeight-r.clientHeight)/2:(r.scrollHeight-r.clientHeight)/2}}},{key:"render",value:function(){var r=fr({"react-datepicker__year-dropdown":!0,"react-datepicker__year-dropdown--scrollable":this.props.scrollableYearDropdown});return M.createElement("div",{className:r,ref:this.dropdownRef},this.renderOptions())}}]),n}()),J_e=function(e){Zn(n,M.Component);var t=Qn(n);function n(){var r;qn(this,n);for(var i=arguments.length,o=new Array(i),a=0;a0?f.get(d).holidayNames.join(", "):""}),ne(ie(r),"getTabIndex",function(s,l){var u=s||r.props.selected,f=l||r.props.preSelection;return(!r.props.showWeekPicker||!r.props.showWeekNumber&&r.isStartOfWeek())&&(r.isKeyboardSelected()||r.isSameDay(u)&&It(f,u))?0:-1}),ne(ie(r),"handleFocusDay",function(){var s,l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=!1;r.getTabIndex()===0&&!l.isInputFocused&&r.isSameDay(r.props.preSelection)&&(document.activeElement&&document.activeElement!==document.body||(u=!0),r.props.inline&&!r.props.shouldFocusDayInline&&(u=!1),r.props.containerRef&&r.props.containerRef.current&&r.props.containerRef.current.contains(document.activeElement)&&document.activeElement.classList.contains("react-datepicker__day")&&(u=!0),r.props.monthShowsDuplicateDaysEnd&&r.isAfterMonth()&&(u=!1),r.props.monthShowsDuplicateDaysStart&&r.isBeforeMonth()&&(u=!1)),u&&((s=r.dayEl.current)===null||s===void 0||s.focus({preventScroll:!0}))}),ne(ie(r),"renderDayContents",function(){return r.props.monthShowsDuplicateDaysEnd&&r.isAfterMonth()||r.props.monthShowsDuplicateDaysStart&&r.isBeforeMonth()?null:r.props.renderDayContents?r.props.renderDayContents(zL(r.props.day),r.props.day):zL(r.props.day)}),ne(ie(r),"render",function(){return M.createElement("div",{ref:r.dayEl,className:r.getClassNames(r.props.day),onKeyDown:r.handleOnKeyDown,onClick:r.handleClick,onMouseEnter:r.handleMouseEnter,tabIndex:r.getTabIndex(),"aria-label":r.getAriaLabel(),role:"option",title:r.getTitle(),"aria-disabled":r.isDisabled(),"aria-current":r.isCurrentDay()?"date":void 0,"aria-selected":r.isSelected()||r.isInRange()},r.renderDayContents(),r.getTitle()!==""&&M.createElement("span",{className:"holiday-overlay"},r.getTitle()))}),r}return Kn(n,[{key:"componentDidMount",value:function(){this.handleFocusDay()}},{key:"componentDidUpdate",value:function(r){this.handleFocusDay(r)}}]),n}(),awe=function(e){Zn(n,M.Component);var t=Qn(n);function n(){var r;qn(this,n);for(var i=arguments.length,o=new Array(i),a=0;a0&&arguments[0]!==void 0?arguments[0]:{},l=!1;r.getTabIndex()===0&&!s.isInputFocused&&It(r.props.date,r.props.preSelection)&&(document.activeElement&&document.activeElement!==document.body||(l=!0),r.props.inline&&!r.props.shouldFocusDayInline&&(l=!1),r.props.containerRef&&r.props.containerRef.current&&r.props.containerRef.current.contains(document.activeElement)&&document.activeElement&&document.activeElement.classList.contains("react-datepicker__week-number")&&(l=!0)),l&&r.weekNumberEl.current&&r.weekNumberEl.current.focus({preventScroll:!0})}),r}return Kn(n,[{key:"componentDidMount",value:function(){this.handleFocusWeekNumber()}},{key:"componentDidUpdate",value:function(r){this.handleFocusWeekNumber(r)}},{key:"render",value:function(){var r=this.props,i=r.weekNumber,o=r.ariaLabelPrefix,a=o===void 0?"week ":o,s={"react-datepicker__week-number":!0,"react-datepicker__week-number--clickable":!!r.onClick,"react-datepicker__week-number--selected":It(this.props.date,this.props.selected),"react-datepicker__week-number--keyboard-selected":this.isKeyboardSelected()};return M.createElement("div",{ref:this.weekNumberEl,className:fr(s),"aria-label":"".concat(a," ").concat(this.props.weekNumber),onClick:this.handleClick,onKeyDown:this.handleOnKeyDown,tabIndex:this.getTabIndex()},i)}}],[{key:"defaultProps",get:function(){return{ariaLabelPrefix:"week "}}}]),n}(),swe=function(e){Zn(n,M.Component);var t=Qn(n);function n(){var r;qn(this,n);for(var i=arguments.length,o=new Array(i),a=0;a=6,m=!l&&!r.isWeekInMonth(d);if(p||m){if(!r.props.peekNextMonth)break;f=!0}}return s}),ne(ie(r),"onMonthClick",function(s,l){r.handleDayClick(Vs(jr(r.props.day,l)),s)}),ne(ie(r),"onMonthMouseEnter",function(s){r.handleDayMouseEnter(Vs(jr(r.props.day,s)))}),ne(ie(r),"handleMonthNavigation",function(s,l){r.isDisabled(l)||r.isExcluded(l)||(r.props.setPreSelection(l),r.MONTH_REFS[s].current&&r.MONTH_REFS[s].current.focus())}),ne(ie(r),"onMonthKeyDown",function(s,l){var u=r.props,f=u.selected,d=u.preSelection,p=u.disabledKeyboardNavigation,m=u.showTwoColumnMonthYearPicker,v=u.showFourColumnMonthYearPicker,g=u.setPreSelection,x=s.key;if(x!=="Tab"&&s.preventDefault(),!p){var b=S4(v,m),_=WO[b].verticalNavigationOffset,w=WO[b].grid;switch(x){case"Enter":r.onMonthClick(s,l),g(f);break;case"ArrowRight":r.handleMonthNavigation(l===11?0:l+1,xo(d,1));break;case"ArrowLeft":r.handleMonthNavigation(l===0?11:l-1,Mf(d,1));break;case"ArrowUp":r.handleMonthNavigation(w[0].includes(l)?l+12-_:l-_,Mf(d,_));break;case"ArrowDown":r.handleMonthNavigation(w[w.length-1].includes(l)?l-12+_:l+_,xo(d,_))}}}),ne(ie(r),"onQuarterClick",function(s,l){r.handleDayClick(d4(pc(r.props.day,l)),s)}),ne(ie(r),"onQuarterMouseEnter",function(s){r.handleDayMouseEnter(d4(pc(r.props.day,s)))}),ne(ie(r),"handleQuarterNavigation",function(s,l){r.isDisabled(l)||r.isExcluded(l)||(r.props.setPreSelection(l),r.QUARTER_REFS[s-1].current&&r.QUARTER_REFS[s-1].current.focus())}),ne(ie(r),"onQuarterKeyDown",function(s,l){var u=s.key;if(!r.props.disabledKeyboardNavigation)switch(u){case"Enter":r.onQuarterClick(s,l),r.props.setPreSelection(r.props.selected);break;case"ArrowRight":r.handleQuarterNavigation(l===4?1:l+1,sV(r.props.preSelection,1));break;case"ArrowLeft":r.handleQuarterNavigation(l===1?4:l-1,Dye(r.props.preSelection,1))}}),ne(ie(r),"getMonthClassNames",function(s){var l=r.props,u=l.day,f=l.startDate,d=l.endDate,p=l.selected,m=l.minDate,v=l.maxDate,g=l.preSelection,x=l.monthClassName,b=l.excludeDates,_=l.includeDates,w=x?x(jr(u,s)):void 0,O=jr(u,s);return fr("react-datepicker__month-text","react-datepicker__month-".concat(s),w,{"react-datepicker__month-text--disabled":(m||v||b||_)&&MV(O,r.props),"react-datepicker__month-text--selected":r.isSelectedMonth(u,s,p),"react-datepicker__month-text--keyboard-selected":!r.props.disabledKeyboardNavigation&&br(g)===s,"react-datepicker__month-text--in-selecting-range":r.isInSelectingRangeMonth(s),"react-datepicker__month-text--in-range":zO(f,d,s,u),"react-datepicker__month-text--range-start":r.isRangeStartMonth(s),"react-datepicker__month-text--range-end":r.isRangeEndMonth(s),"react-datepicker__month-text--selecting-range-start":r.isSelectingMonthRangeStart(s),"react-datepicker__month-text--selecting-range-end":r.isSelectingMonthRangeEnd(s),"react-datepicker__month-text--today":r.isCurrentMonth(u,s)})}),ne(ie(r),"getTabIndex",function(s){var l=br(r.props.preSelection);return r.props.disabledKeyboardNavigation||s!==l?"-1":"0"}),ne(ie(r),"getQuarterTabIndex",function(s){var l=Bc(r.props.preSelection);return r.props.disabledKeyboardNavigation||s!==l?"-1":"0"}),ne(ie(r),"getAriaLabel",function(s){var l=r.props,u=l.chooseDayAriaLabelPrefix,f=u===void 0?"Choose":u,d=l.disabledDayAriaLabelPrefix,p=d===void 0?"Not available":d,m=l.day,v=jr(m,s),g=r.isDisabled(v)||r.isExcluded(v)?p:f;return"".concat(g," ").concat(Xt(v,"MMMM yyyy"))}),ne(ie(r),"getQuarterClassNames",function(s){var l=r.props,u=l.day,f=l.startDate,d=l.endDate,p=l.selected,m=l.minDate,v=l.maxDate,g=l.preSelection,x=l.disabledKeyboardNavigation;return fr("react-datepicker__quarter-text","react-datepicker__quarter-".concat(s),{"react-datepicker__quarter-text--disabled":(m||v)&&q_e(pc(u,s),r.props),"react-datepicker__quarter-text--selected":r.isSelectedQuarter(u,s,p),"react-datepicker__quarter-text--keyboard-selected":!x&&Bc(g)===s,"react-datepicker__quarter-text--in-selecting-range":r.isInSelectingRangeQuarter(s),"react-datepicker__quarter-text--in-range":HO(f,d,s,u),"react-datepicker__quarter-text--range-start":r.isRangeStartQuarter(s),"react-datepicker__quarter-text--range-end":r.isRangeEndQuarter(s)})}),ne(ie(r),"getMonthContent",function(s){var l=r.props,u=l.showFullMonthYearPicker,f=l.renderMonthContent,d=l.locale,p=l.day,m=NV(s,d),v=dP(s,d);return f?f(s,m,v,p):u?v:m}),ne(ie(r),"getQuarterContent",function(s){var l=r.props,u=l.renderQuarterContent,f=function(d,p){return Xt(pc(Rt(),d),"QQQ",p)}(s,l.locale);return u?u(s,f):f}),ne(ie(r),"renderMonths",function(){var s=r.props,l=s.showTwoColumnMonthYearPicker,u=s.showFourColumnMonthYearPicker,f=s.day,d=s.selected;return WO[S4(u,l)].grid.map(function(p,m){return M.createElement("div",{className:"react-datepicker__month-wrapper",key:m},p.map(function(v,g){return M.createElement("div",{ref:r.MONTH_REFS[v],key:g,onClick:function(x){r.onMonthClick(x,v)},onKeyDown:function(x){r.onMonthKeyDown(x,v)},onMouseEnter:function(){return r.onMonthMouseEnter(v)},tabIndex:r.getTabIndex(v),className:r.getMonthClassNames(v),role:"option","aria-label":r.getAriaLabel(v),"aria-current":r.isCurrentMonth(f,v)?"date":void 0,"aria-selected":r.isSelectedMonth(f,v,d)},r.getMonthContent(v))}))})}),ne(ie(r),"renderQuarters",function(){var s=r.props,l=s.day,u=s.selected;return M.createElement("div",{className:"react-datepicker__quarter-wrapper"},[1,2,3,4].map(function(f,d){return M.createElement("div",{key:d,ref:r.QUARTER_REFS[d],role:"option",onClick:function(p){r.onQuarterClick(p,f)},onKeyDown:function(p){r.onQuarterKeyDown(p,f)},onMouseEnter:function(){return r.onQuarterMouseEnter(f)},className:r.getQuarterClassNames(f),"aria-selected":r.isSelectedQuarter(l,f,u),tabIndex:r.getQuarterTabIndex(f),"aria-current":r.isCurrentQuarter(l,f)?"date":void 0},r.getQuarterContent(f))}))}),ne(ie(r),"getClassNames",function(){var s=r.props,l=s.selectingDate,u=s.selectsStart,f=s.selectsEnd,d=s.showMonthYearPicker,p=s.showQuarterYearPicker,m=s.showWeekPicker;return fr("react-datepicker__month",{"react-datepicker__month--selecting-range":l&&(u||f)},{"react-datepicker__monthPicker":d},{"react-datepicker__quarterPicker":p},{"react-datepicker__weekPicker":m})}),r}return Kn(n,[{key:"render",value:function(){var r=this.props,i=r.showMonthYearPicker,o=r.showQuarterYearPicker,a=r.day,s=r.ariaLabelPrefix,l=s===void 0?"month ":s;return M.createElement("div",{className:this.getClassNames(),onMouseLeave:this.handleMouseLeave,"aria-label":"".concat(l," ").concat(Xt(a,"yyyy-MM")),role:"listbox"},i?this.renderMonths():o?this.renderQuarters():this.renderWeeks())}}]),n}(),$V=function(e){Zn(n,M.Component);var t=Qn(n);function n(){var r;qn(this,n);for(var i=arguments.length,o=new Array(i),a=0;a0&&arguments[0]!==void 0?arguments[0]:{}).className||"").split(/\s+/);return dwe.some(function(s){return a.indexOf(s)>=0})})(o.target)&&i.props.onDropdownFocus()}),ne(ie(i),"getDateInView",function(){var o=i.props,a=o.preSelection,s=o.selected,l=o.openToDate,u=DV(i.props),f=LV(i.props),d=Rt(),p=l||s||a;return p||(u&&ks(d,u)?u:f&&ol(d,f)?f:d)}),ne(ie(i),"increaseMonth",function(){i.setState(function(o){var a=o.date;return{date:xo(a,1)}},function(){return i.handleMonthChange(i.state.date)})}),ne(ie(i),"decreaseMonth",function(){i.setState(function(o){var a=o.date;return{date:Mf(a,1)}},function(){return i.handleMonthChange(i.state.date)})}),ne(ie(i),"handleDayClick",function(o,a,s){i.props.onSelect(o,a,s),i.props.setPreSelection&&i.props.setPreSelection(o)}),ne(ie(i),"handleDayMouseEnter",function(o){i.setState({selectingDate:o}),i.props.onDayMouseEnter&&i.props.onDayMouseEnter(o)}),ne(ie(i),"handleMonthMouseLeave",function(){i.setState({selectingDate:null}),i.props.onMonthMouseLeave&&i.props.onMonthMouseLeave()}),ne(ie(i),"handleYearMouseEnter",function(o,a){i.setState({selectingDate:ba(Rt(),a)}),i.props.onYearMouseEnter&&i.props.onYearMouseEnter(o,a)}),ne(ie(i),"handleYearMouseLeave",function(o,a){i.props.onYearMouseLeave&&i.props.onYearMouseLeave(o,a)}),ne(ie(i),"handleYearChange",function(o){i.props.onYearChange&&(i.props.onYearChange(o),i.setState({isRenderAriaLiveMessage:!0})),i.props.adjustDateOnChange&&(i.props.onSelect&&i.props.onSelect(o),i.props.setOpen&&i.props.setOpen(!0)),i.props.setPreSelection&&i.props.setPreSelection(o)}),ne(ie(i),"handleMonthChange",function(o){i.handleCustomMonthChange(o),i.props.adjustDateOnChange&&(i.props.onSelect&&i.props.onSelect(o),i.props.setOpen&&i.props.setOpen(!0)),i.props.setPreSelection&&i.props.setPreSelection(o)}),ne(ie(i),"handleCustomMonthChange",function(o){i.props.onMonthChange&&(i.props.onMonthChange(o),i.setState({isRenderAriaLiveMessage:!0}))}),ne(ie(i),"handleMonthYearChange",function(o){i.handleYearChange(o),i.handleMonthChange(o)}),ne(ie(i),"changeYear",function(o){i.setState(function(a){var s=a.date;return{date:ba(s,o)}},function(){return i.handleYearChange(i.state.date)})}),ne(ie(i),"changeMonth",function(o){i.setState(function(a){var s=a.date;return{date:jr(s,o)}},function(){return i.handleMonthChange(i.state.date)})}),ne(ie(i),"changeMonthYear",function(o){i.setState(function(a){var s=a.date;return{date:ba(jr(s,br(o)),ut(o))}},function(){return i.handleMonthYearChange(i.state.date)})}),ne(ie(i),"header",function(){var o=Zo(arguments.length>0&&arguments[0]!==void 0?arguments[0]:i.state.date,i.props.locale,i.props.calendarStartDay),a=[];return i.props.showWeekNumbers&&a.push(M.createElement("div",{key:"W",className:"react-datepicker__day-name"},i.props.weekLabel||"#")),a.concat([0,1,2,3,4,5,6].map(function(s){var l=Ed(o,s),u=i.formatWeekday(l,i.props.locale),f=i.props.weekDayClassName?i.props.weekDayClassName(l):void 0;return M.createElement("div",{key:s,className:fr("react-datepicker__day-name",f)},u)}))}),ne(ie(i),"formatWeekday",function(o,a){return i.props.formatWeekDay?function(s,l,u){return l(Xt(s,"EEEE",u))}(o,i.props.formatWeekDay,a):i.props.useWeekdaysShort?function(s,l){return Xt(s,"EEE",l)}(o,a):function(s,l){return Xt(s,"EEEEEE",l)}(o,a)}),ne(ie(i),"decreaseYear",function(){i.setState(function(o){var a=o.date;return{date:cm(a,i.props.showYearPicker?i.props.yearItemNumber:1)}},function(){return i.handleYearChange(i.state.date)})}),ne(ie(i),"clearSelectingDate",function(){i.setState({selectingDate:null})}),ne(ie(i),"renderPreviousButton",function(){if(!i.props.renderCustomHeader){var o;switch(!0){case i.props.showMonthYearPicker:o=b4(i.state.date,i.props);break;case i.props.showYearPicker:o=function(b){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},w=_.minDate,O=_.yearItemNumber,E=O===void 0?mh:O,T=zc(Bp(cm(b,E)),E).endPeriod,k=w&&ut(w);return k&&k>T||!1}(i.state.date,i.props);break;default:o=g4(i.state.date,i.props)}if((i.props.forceShowMonthNavigation||i.props.showDisabledMonthNavigation||!o)&&!i.props.showTimeSelectOnly){var a=["react-datepicker__navigation","react-datepicker__navigation--previous"],s=i.decreaseMonth;(i.props.showMonthYearPicker||i.props.showQuarterYearPicker||i.props.showYearPicker)&&(s=i.decreaseYear),o&&i.props.showDisabledMonthNavigation&&(a.push("react-datepicker__navigation--previous--disabled"),s=null);var l=i.props.showMonthYearPicker||i.props.showQuarterYearPicker||i.props.showYearPicker,u=i.props,f=u.previousMonthButtonLabel,d=u.previousYearButtonLabel,p=i.props,m=p.previousMonthAriaLabel,v=m===void 0?typeof f=="string"?f:"Previous Month":m,g=p.previousYearAriaLabel,x=g===void 0?typeof d=="string"?d:"Previous Year":g;return M.createElement("button",{type:"button",className:a.join(" "),onClick:s,onKeyDown:i.props.handleOnKeyDown,"aria-label":l?x:v},M.createElement("span",{className:["react-datepicker__navigation-icon","react-datepicker__navigation-icon--previous"].join(" ")},l?i.props.previousYearButtonLabel:i.props.previousMonthButtonLabel))}}}),ne(ie(i),"increaseYear",function(){i.setState(function(o){var a=o.date;return{date:Nf(a,i.props.showYearPicker?i.props.yearItemNumber:1)}},function(){return i.handleYearChange(i.state.date)})}),ne(ie(i),"renderNextButton",function(){if(!i.props.renderCustomHeader){var o;switch(!0){case i.props.showMonthYearPicker:o=_4(i.state.date,i.props);break;case i.props.showYearPicker:o=function(b){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},w=_.maxDate,O=_.yearItemNumber,E=O===void 0?mh:O,T=zc(Nf(b,E),E).startPeriod,k=w&&ut(w);return k&&k0&&arguments[0]!==void 0?arguments[0]:i.state.date,a=["react-datepicker__current-month"];return i.props.showYearDropdown&&a.push("react-datepicker__current-month--hasYearDropdown"),i.props.showMonthDropdown&&a.push("react-datepicker__current-month--hasMonthDropdown"),i.props.showMonthYearDropdown&&a.push("react-datepicker__current-month--hasMonthYearDropdown"),M.createElement("div",{className:a.join(" ")},Xt(o,i.props.dateFormat,i.props.locale))}),ne(ie(i),"renderYearDropdown",function(){var o=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(i.props.showYearDropdown&&!o)return M.createElement(J_e,{adjustDateOnChange:i.props.adjustDateOnChange,date:i.state.date,onSelect:i.props.onSelect,setOpen:i.props.setOpen,dropdownMode:i.props.dropdownMode,onChange:i.changeYear,minDate:i.props.minDate,maxDate:i.props.maxDate,year:ut(i.state.date),scrollableYearDropdown:i.props.scrollableYearDropdown,yearDropdownItemNumber:i.props.yearDropdownItemNumber})}),ne(ie(i),"renderMonthDropdown",function(){var o=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(i.props.showMonthDropdown&&!o)return M.createElement(twe,{dropdownMode:i.props.dropdownMode,locale:i.props.locale,onChange:i.changeMonth,month:br(i.state.date),useShortMonthInDropdown:i.props.useShortMonthInDropdown})}),ne(ie(i),"renderMonthYearDropdown",function(){var o=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(i.props.showMonthYearDropdown&&!o)return M.createElement(iwe,{dropdownMode:i.props.dropdownMode,locale:i.props.locale,dateFormat:i.props.dateFormat,onChange:i.changeMonthYear,minDate:i.props.minDate,maxDate:i.props.maxDate,date:i.state.date,scrollableMonthYearDropdown:i.props.scrollableMonthYearDropdown})}),ne(ie(i),"handleTodayButtonClick",function(o){i.props.onSelect(p4(),o),i.props.setPreSelection&&i.props.setPreSelection(p4())}),ne(ie(i),"renderTodayButton",function(){if(i.props.todayButton&&!i.props.showTimeSelectOnly)return M.createElement("div",{className:"react-datepicker__today-button",onClick:function(o){return i.handleTodayButtonClick(o)}},i.props.todayButton)}),ne(ie(i),"renderDefaultHeader",function(o){var a=o.monthDate,s=o.i;return M.createElement("div",{className:"react-datepicker__header ".concat(i.props.showTimeSelect?"react-datepicker__header--has-time-select":"")},i.renderCurrentMonth(a),M.createElement("div",{className:"react-datepicker__header__dropdown react-datepicker__header__dropdown--".concat(i.props.dropdownMode),onFocus:i.handleDropdownFocus},i.renderMonthDropdown(s!==0),i.renderMonthYearDropdown(s!==0),i.renderYearDropdown(s!==0)),M.createElement("div",{className:"react-datepicker__day-names"},i.header(a)))}),ne(ie(i),"renderCustomHeader",function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=o.monthDate,s=o.i;if(i.props.showTimeSelect&&!i.state.monthContainer||i.props.showTimeSelectOnly)return null;var l=g4(i.state.date,i.props),u=y4(i.state.date,i.props),f=b4(i.state.date,i.props),d=_4(i.state.date,i.props),p=!i.props.showMonthYearPicker&&!i.props.showQuarterYearPicker&&!i.props.showYearPicker;return M.createElement("div",{className:"react-datepicker__header react-datepicker__header--custom",onFocus:i.props.onDropdownFocus},i.props.renderCustomHeader(wb(wb({},i.state),{},{customHeaderCount:s,monthDate:a,changeMonth:i.changeMonth,changeYear:i.changeYear,decreaseMonth:i.decreaseMonth,increaseMonth:i.increaseMonth,decreaseYear:i.decreaseYear,increaseYear:i.increaseYear,prevMonthButtonDisabled:l,nextMonthButtonDisabled:u,prevYearButtonDisabled:f,nextYearButtonDisabled:d})),p&&M.createElement("div",{className:"react-datepicker__day-names"},i.header(a)))}),ne(ie(i),"renderYearHeader",function(){var o=i.state.date,a=i.props,s=a.showYearPicker,l=zc(o,a.yearItemNumber),u=l.startPeriod,f=l.endPeriod;return M.createElement("div",{className:"react-datepicker__header react-datepicker-year-header"},s?"".concat(u," - ").concat(f):ut(o))}),ne(ie(i),"renderHeader",function(o){switch(!0){case i.props.renderCustomHeader!==void 0:return i.renderCustomHeader(o);case(i.props.showMonthYearPicker||i.props.showQuarterYearPicker||i.props.showYearPicker):return i.renderYearHeader(o);default:return i.renderDefaultHeader(o)}}),ne(ie(i),"renderMonths",function(){var o;if(!i.props.showTimeSelectOnly&&!i.props.showYearPicker){for(var a=[],s=i.props.showPreviousMonths?i.props.monthsShown-1:0,l=Mf(i.state.date,s),u=(o=i.props.monthSelectedIn)!==null&&o!==void 0?o:s,f=0;f0;a.push(M.createElement("div",{key:p,ref:function(g){i.monthContainer=g},className:"react-datepicker__month-container"},i.renderHeader({monthDate:d,i:f}),M.createElement(lwe,{chooseDayAriaLabelPrefix:i.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:i.props.disabledDayAriaLabelPrefix,weekAriaLabelPrefix:i.props.weekAriaLabelPrefix,ariaLabelPrefix:i.props.monthAriaLabelPrefix,onChange:i.changeMonthYear,day:d,dayClassName:i.props.dayClassName,calendarStartDay:i.props.calendarStartDay,monthClassName:i.props.monthClassName,onDayClick:i.handleDayClick,handleOnKeyDown:i.props.handleOnDayKeyDown,onDayMouseEnter:i.handleDayMouseEnter,onMouseLeave:i.handleMonthMouseLeave,onWeekSelect:i.props.onWeekSelect,orderInDisplay:f,formatWeekNumber:i.props.formatWeekNumber,locale:i.props.locale,minDate:i.props.minDate,maxDate:i.props.maxDate,excludeDates:i.props.excludeDates,excludeDateIntervals:i.props.excludeDateIntervals,highlightDates:i.props.highlightDates,holidays:i.props.holidays,selectingDate:i.state.selectingDate,includeDates:i.props.includeDates,includeDateIntervals:i.props.includeDateIntervals,inline:i.props.inline,shouldFocusDayInline:i.props.shouldFocusDayInline,fixedHeight:i.props.fixedHeight,filterDate:i.props.filterDate,preSelection:i.props.preSelection,setPreSelection:i.props.setPreSelection,selected:i.props.selected,selectsStart:i.props.selectsStart,selectsEnd:i.props.selectsEnd,selectsRange:i.props.selectsRange,selectsDisabledDaysInRange:i.props.selectsDisabledDaysInRange,showWeekNumbers:i.props.showWeekNumbers,startDate:i.props.startDate,endDate:i.props.endDate,peekNextMonth:i.props.peekNextMonth,setOpen:i.props.setOpen,shouldCloseOnSelect:i.props.shouldCloseOnSelect,renderDayContents:i.props.renderDayContents,renderMonthContent:i.props.renderMonthContent,renderQuarterContent:i.props.renderQuarterContent,renderYearContent:i.props.renderYearContent,disabledKeyboardNavigation:i.props.disabledKeyboardNavigation,showMonthYearPicker:i.props.showMonthYearPicker,showFullMonthYearPicker:i.props.showFullMonthYearPicker,showTwoColumnMonthYearPicker:i.props.showTwoColumnMonthYearPicker,showFourColumnMonthYearPicker:i.props.showFourColumnMonthYearPicker,showYearPicker:i.props.showYearPicker,showQuarterYearPicker:i.props.showQuarterYearPicker,showWeekPicker:i.props.showWeekPicker,isInputFocused:i.props.isInputFocused,containerRef:i.containerRef,monthShowsDuplicateDaysEnd:m,monthShowsDuplicateDaysStart:v})))}return a}}),ne(ie(i),"renderYears",function(){if(!i.props.showTimeSelectOnly)return i.props.showYearPicker?M.createElement("div",{className:"react-datepicker__year--container"},i.renderHeader(),M.createElement(uwe,Ff({onDayClick:i.handleDayClick,selectingDate:i.state.selectingDate,clearSelectingDate:i.clearSelectingDate,date:i.state.date},i.props,{onYearMouseEnter:i.handleYearMouseEnter,onYearMouseLeave:i.handleYearMouseLeave}))):void 0}),ne(ie(i),"renderTimeSection",function(){if(i.props.showTimeSelect&&(i.state.monthContainer||i.props.showTimeSelectOnly))return M.createElement($V,{selected:i.props.selected,openToDate:i.props.openToDate,onChange:i.props.onTimeChange,timeClassName:i.props.timeClassName,format:i.props.timeFormat,includeTimes:i.props.includeTimes,intervals:i.props.timeIntervals,minTime:i.props.minTime,maxTime:i.props.maxTime,excludeTimes:i.props.excludeTimes,filterTime:i.props.filterTime,timeCaption:i.props.timeCaption,todayButton:i.props.todayButton,showMonthDropdown:i.props.showMonthDropdown,showMonthYearDropdown:i.props.showMonthYearDropdown,showYearDropdown:i.props.showYearDropdown,withPortal:i.props.withPortal,monthRef:i.state.monthContainer,injectTimes:i.props.injectTimes,locale:i.props.locale,handleOnKeyDown:i.props.handleOnKeyDown,showTimeSelectOnly:i.props.showTimeSelectOnly})}),ne(ie(i),"renderInputTimeSection",function(){var o=new Date(i.props.selected),a=bs(o)&&i.props.selected?"".concat(x4(o.getHours()),":").concat(x4(o.getMinutes())):"";if(i.props.showTimeInput)return M.createElement(cwe,{date:o,timeString:a,timeInputLabel:i.props.timeInputLabel,onChange:i.props.onTimeChange,customTimeInput:i.props.customTimeInput})}),ne(ie(i),"renderAriaLiveRegion",function(){var o,a=zc(i.state.date,i.props.yearItemNumber),s=a.startPeriod,l=a.endPeriod;return o=i.props.showYearPicker?"".concat(s," - ").concat(l):i.props.showMonthYearPicker||i.props.showQuarterYearPicker?ut(i.state.date):"".concat(dP(br(i.state.date),i.props.locale)," ").concat(ut(i.state.date)),M.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},i.state.isRenderAriaLiveMessage&&o)}),ne(ie(i),"renderChildren",function(){if(i.props.children)return M.createElement("div",{className:"react-datepicker__children-container"},i.props.children)}),i.containerRef=M.createRef(),i.state={date:i.getDateInView(),selectingDate:null,monthContainer:null,isRenderAriaLiveMessage:!1},i}return Kn(n,[{key:"componentDidMount",value:function(){var r=this;this.props.showTimeSelect&&(this.assignMonthContainer=void r.setState({monthContainer:r.monthContainer}))}},{key:"componentDidUpdate",value:function(r){var i=this;if(!this.props.preSelection||It(this.props.preSelection,r.preSelection)&&this.props.monthSelectedIn===r.monthSelectedIn)this.props.openToDate&&!It(this.props.openToDate,r.openToDate)&&this.setState({date:this.props.openToDate});else{var o=!co(this.state.date,this.props.preSelection);this.setState({date:this.props.preSelection},function(){return o&&i.handleCustomMonthChange(i.state.date)})}}},{key:"render",value:function(){var r=this.props.container||fwe;return M.createElement("div",{style:{display:"contents"},ref:this.containerRef},M.createElement(r,{className:fr("react-datepicker",this.props.className,{"react-datepicker--time-only":this.props.showTimeSelectOnly}),showPopperArrow:this.props.showPopperArrow,arrowProps:this.props.arrowProps},this.renderAriaLiveRegion(),this.renderPreviousButton(),this.renderNextButton(),this.renderMonths(),this.renderYears(),this.renderTodayButton(),this.renderTimeSection(),this.renderInputTimeSection(),this.renderChildren()))}}],[{key:"defaultProps",get:function(){return{onDropdownFocus:function(){},monthsShown:1,forceShowMonthNavigation:!1,timeCaption:"Time",previousYearButtonLabel:"Previous Year",nextYearButtonLabel:"Next Year",previousMonthButtonLabel:"Previous Month",nextMonthButtonLabel:"Next Month",customTimeInput:null,yearItemNumber:mh}}}]),n}(),hwe=function(e){var t=e.icon,n=e.className,r=n===void 0?"":n,i=e.onClick,o="react-datepicker__calendar-icon";return M.isValidElement(t)?M.cloneElement(t,{className:"".concat(t.props.className||""," ").concat(o," ").concat(r),onClick:function(a){typeof t.props.onClick=="function"&&t.props.onClick(a),typeof i=="function"&&i(a)}}):typeof t=="string"?M.createElement("i",{className:"".concat(o," ").concat(t," ").concat(r),"aria-hidden":"true",onClick:i}):M.createElement("svg",{className:"".concat(o," ").concat(r),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",onClick:i},M.createElement("path",{d:"M96 32V64H48C21.5 64 0 85.5 0 112v48H448V112c0-26.5-21.5-48-48-48H352V32c0-17.7-14.3-32-32-32s-32 14.3-32 32V64H160V32c0-17.7-14.3-32-32-32S96 14.3 96 32zM448 192H0V464c0 26.5 21.5 48 48 48H400c26.5 0 48-21.5 48-48V192z"}))},BV=function(e){Zn(n,M.Component);var t=Qn(n);function n(r){var i;return qn(this,n),(i=t.call(this,r)).el=document.createElement("div"),i}return Kn(n,[{key:"componentDidMount",value:function(){this.portalRoot=(this.props.portalHost||document).getElementById(this.props.portalId),this.portalRoot||(this.portalRoot=document.createElement("div"),this.portalRoot.setAttribute("id",this.props.portalId),(this.props.portalHost||document.body).appendChild(this.portalRoot)),this.portalRoot.appendChild(this.el)}},{key:"componentWillUnmount",value:function(){this.portalRoot.removeChild(this.el)}},{key:"render",value:function(){return lu.createPortal(this.props.children,this.el)}}]),n}(),mwe=function(e){return!e.disabled&&e.tabIndex!==-1},zV=function(e){Zn(n,M.Component);var t=Qn(n);function n(r){var i;return qn(this,n),ne(ie(i=t.call(this,r)),"getTabChildren",function(){return Array.prototype.slice.call(i.tabLoopRef.current.querySelectorAll("[tabindex], a, button, input, select, textarea"),1,-1).filter(mwe)}),ne(ie(i),"handleFocusStart",function(){var o=i.getTabChildren();o&&o.length>1&&o[o.length-1].focus()}),ne(ie(i),"handleFocusEnd",function(){var o=i.getTabChildren();o&&o.length>1&&o[0].focus()}),i.tabLoopRef=M.createRef(),i}return Kn(n,[{key:"render",value:function(){return this.props.enableTabLoop?M.createElement("div",{className:"react-datepicker__tab-loop",ref:this.tabLoopRef},M.createElement("div",{className:"react-datepicker__tab-loop__start",tabIndex:"0",onFocus:this.handleFocusStart}),this.props.children,M.createElement("div",{className:"react-datepicker__tab-loop__end",tabIndex:"0",onFocus:this.handleFocusEnd})):this.props.children}}],[{key:"defaultProps",get:function(){return{enableTabLoop:!0}}}]),n}(),vwe=function(e){Zn(n,M.Component);var t=Qn(n);function n(){return qn(this,n),t.apply(this,arguments)}return Kn(n,[{key:"render",value:function(){var r,i=this.props,o=i.className,a=i.wrapperClassName,s=i.hidePopper,l=i.popperComponent,u=i.popperModifiers,f=i.popperPlacement,d=i.popperProps,p=i.targetComponent,m=i.enableTabLoop,v=i.popperOnKeyDown,g=i.portalId,x=i.portalHost;if(!s){var b=fr("react-datepicker-popper",o);r=M.createElement($_e,Ff({modifiers:u,placement:f},d),function(w){var O=w.ref,E=w.style,T=w.placement,k=w.arrowProps;return M.createElement(zV,{enableTabLoop:m},M.createElement("div",{ref:O,style:E,className:b,"data-placement":T,onKeyDown:v},M.cloneElement(l,{arrowProps:k})))})}this.props.popperContainer&&(r=M.createElement(this.props.popperContainer,{},r)),g&&!s&&(r=M.createElement(BV,{portalId:g,portalHost:x},r));var _=fr("react-datepicker-wrapper",a);return M.createElement(xbe,{className:"react-datepicker-manager"},M.createElement(H_e,null,function(w){var O=w.ref;return M.createElement("div",{ref:O,className:_},p)}),r)}}],[{key:"defaultProps",get:function(){return{hidePopper:!0,popperModifiers:[],popperProps:{},popperPlacement:"bottom-start"}}}]),n}(),E4="react-datepicker-ignore-onclickoutside",gwe=bw(pwe),YO="Date input not valid.",ywe=function(e){Zn(n,M.Component);var t=Qn(n);function n(r){var i;return qn(this,n),ne(ie(i=t.call(this,r)),"getPreSelection",function(){return i.props.openToDate?i.props.openToDate:i.props.selectsEnd&&i.props.startDate?i.props.startDate:i.props.selectsStart&&i.props.endDate?i.props.endDate:Rt()}),ne(ie(i),"modifyHolidays",function(){var o;return(o=i.props.holidays)===null||o===void 0?void 0:o.reduce(function(a,s){var l=new Date(s.date);return um(l)?[].concat(hm(a),[wb(wb({},s),{},{date:l})]):a},[])}),ne(ie(i),"calcInitialState",function(){var o,a=i.getPreSelection(),s=DV(i.props),l=LV(i.props),u=s&&ks(a,qo(s))?s:l&&ol(a,LE(l))?l:a;return{open:i.props.startOpen||!1,preventFocus:!1,preSelection:(o=i.props.selectsRange?i.props.startDate:i.props.selected)!==null&&o!==void 0?o:u,highlightDates:w4(i.props.highlightDates),focused:!1,shouldFocusDayInline:!1,isRenderAriaLiveMessage:!1}}),ne(ie(i),"clearPreventFocusTimeout",function(){i.preventFocusTimeout&&clearTimeout(i.preventFocusTimeout)}),ne(ie(i),"setFocus",function(){i.input&&i.input.focus&&i.input.focus({preventScroll:!0})}),ne(ie(i),"setBlur",function(){i.input&&i.input.blur&&i.input.blur(),i.cancelFocusInput()}),ne(ie(i),"setOpen",function(o){var a=arguments.length>1&&arguments[1]!==void 0&&arguments[1];i.setState({open:o,preSelection:o&&i.state.open?i.state.preSelection:i.calcInitialState().preSelection,lastPreSelectChange:GO},function(){o||i.setState(function(s){return{focused:!!a&&s.focused}},function(){!a&&i.setBlur(),i.setState({inputValue:null})})})}),ne(ie(i),"inputOk",function(){return yw(i.state.preSelection)}),ne(ie(i),"isCalendarOpen",function(){return i.props.open===void 0?i.state.open&&!i.props.disabled&&!i.props.readOnly:i.props.open}),ne(ie(i),"handleFocus",function(o){i.state.preventFocus||(i.props.onFocus(o),i.props.preventOpenOnFocus||i.props.readOnly||i.setOpen(!0)),i.setState({focused:!0})}),ne(ie(i),"sendFocusBackToInput",function(){i.preventFocusTimeout&&i.clearPreventFocusTimeout(),i.setState({preventFocus:!0},function(){i.preventFocusTimeout=setTimeout(function(){i.setFocus(),i.setState({preventFocus:!1})})})}),ne(ie(i),"cancelFocusInput",function(){clearTimeout(i.inputFocusTimeout),i.inputFocusTimeout=null}),ne(ie(i),"deferFocusInput",function(){i.cancelFocusInput(),i.inputFocusTimeout=setTimeout(function(){return i.setFocus()},1)}),ne(ie(i),"handleDropdownFocus",function(){i.cancelFocusInput()}),ne(ie(i),"handleBlur",function(o){(!i.state.open||i.props.withPortal||i.props.showTimeInput)&&i.props.onBlur(o),i.setState({focused:!1})}),ne(ie(i),"handleCalendarClickOutside",function(o){i.props.inline||i.setOpen(!1),i.props.onClickOutside(o),i.props.withPortal&&o.preventDefault()}),ne(ie(i),"handleChange",function(){for(var o=arguments.length,a=new Array(o),s=0;s0&&(v=FO(u,f.slice(0,u.length),new Date)),bs(v)||(v=new Date(u))),bs(v)&&x?v:null));i.props.showTimeSelectOnly&&i.props.selected&&b&&!It(b,i.props.selected)&&(b=W_e(i.props.selected,{hours:Go(b),minutes:Yo(b),seconds:BL(b)})),!b&&l.target.value||(i.props.showWeekPicker&&(b=Zo(b,i.props.locale,i.props.calendarStartDay)),i.setSelected(b,l,!0))}}),ne(ie(i),"handleSelect",function(o,a,s){if(i.props.shouldCloseOnSelect&&!i.props.showTimeSelect&&i.sendFocusBackToInput(),i.props.onChangeRaw&&i.props.onChangeRaw(a),i.props.showWeekPicker&&(o=Zo(o,i.props.locale,i.props.calendarStartDay)),i.setSelected(o,a,!1,s),i.props.showDateSelect&&i.setState({isRenderAriaLiveMessage:!0}),!i.props.shouldCloseOnSelect||i.props.showTimeSelect)i.setPreSelection(o);else if(!i.props.inline){i.props.selectsRange||i.setOpen(!1);var l=i.props,u=l.startDate,f=l.endDate;!u||f||ks(o,u)||i.setOpen(!1)}}),ne(ie(i),"setSelected",function(o,a,s,l){var u=o;if(i.props.showYearPicker){if(u!==null&&RV(ut(u),i.props))return}else if(i.props.showMonthYearPicker){if(u!==null&&MV(u,i.props))return}else if(u!==null&&ww(u,i.props))return;var f=i.props,d=f.onChange,p=f.selectsRange,m=f.startDate,v=f.endDate;if(!tu(i.props.selected,u)||i.props.allowSameDay||p)if(u!==null&&(!i.props.selected||s&&(i.props.showTimeSelect||i.props.showTimeSelectOnly||i.props.showTimeInput)||(u=f4(u,{hour:Go(i.props.selected),minute:Yo(i.props.selected),second:BL(i.props.selected)})),i.props.inline||i.setState({preSelection:u}),i.props.focusSelectedMonth||i.setState({monthSelectedIn:l})),p){var g=m&&!v,x=m&&v;!m&&!v?d([u,null],a):g&&(ks(u,m)?d([u,null],a):d([m,u],a)),x&&d([u,null],a)}else d(u,a);s||(i.props.onSelect(u,a),i.setState({inputValue:null}))}),ne(ie(i),"setPreSelection",function(o){var a=i.props.minDate!==void 0,s=i.props.maxDate!==void 0,l=!0;if(o){i.props.showWeekPicker&&(o=Zo(o,i.props.locale,i.props.calendarStartDay));var u=qo(o);if(a&&s)l=$y(o,i.props.minDate,i.props.maxDate);else if(a){var f=qo(i.props.minDate);l=ol(o,f)||tu(u,f)}else if(s){var d=LE(i.props.maxDate);l=ks(o,d)||tu(u,d)}}l&&i.setState({preSelection:o})}),ne(ie(i),"toggleCalendar",function(){i.setOpen(!i.state.open)}),ne(ie(i),"handleTimeChange",function(o){var a=i.props.selected?i.props.selected:i.getPreSelection(),s=i.props.selected?o:f4(a,{hour:Go(o),minute:Yo(o)});i.setState({preSelection:s}),i.props.onChange(s),i.props.shouldCloseOnSelect&&(i.sendFocusBackToInput(),i.setOpen(!1)),i.props.showTimeInput&&i.setOpen(!0),(i.props.showTimeSelectOnly||i.props.showTimeSelect)&&i.setState({isRenderAriaLiveMessage:!0}),i.setState({inputValue:null})}),ne(ie(i),"onInputClick",function(){i.props.disabled||i.props.readOnly||i.setOpen(!0),i.props.onInputClick()}),ne(ie(i),"onInputKeyDown",function(o){i.props.onKeyDown(o);var a=o.key;if(i.state.open||i.props.inline||i.props.preventOpenOnFocus){if(i.state.open){if(a==="ArrowDown"||a==="ArrowUp"){o.preventDefault();var s=i.props.showWeekPicker&&i.props.showWeekNumbers?'.react-datepicker__week-number[tabindex="0"]':'.react-datepicker__day[tabindex="0"]',l=i.calendar.componentNode&&i.calendar.componentNode.querySelector(s);return void(l&&l.focus({preventScroll:!0}))}var u=Rt(i.state.preSelection);a==="Enter"?(o.preventDefault(),i.inputOk()&&i.state.lastPreSelectChange===GO?(i.handleSelect(u,o),!i.props.shouldCloseOnSelect&&i.setPreSelection(u)):i.setOpen(!1)):a==="Escape"?(o.preventDefault(),i.sendFocusBackToInput(),i.setOpen(!1)):a==="Tab"&&i.setOpen(!1),i.inputOk()||i.props.onInputError({code:1,msg:YO})}}else a!=="ArrowDown"&&a!=="ArrowUp"&&a!=="Enter"||i.onInputClick()}),ne(ie(i),"onPortalKeyDown",function(o){o.key==="Escape"&&(o.preventDefault(),i.setState({preventFocus:!0},function(){i.setOpen(!1),setTimeout(function(){i.setFocus(),i.setState({preventFocus:!1})})}))}),ne(ie(i),"onDayKeyDown",function(o){i.props.onKeyDown(o);var a=o.key,s=Rt(i.state.preSelection);if(a==="Enter")o.preventDefault(),i.handleSelect(s,o),!i.props.shouldCloseOnSelect&&i.setPreSelection(s);else if(a==="Escape")o.preventDefault(),i.setOpen(!1),i.inputOk()||i.props.onInputError({code:1,msg:YO});else if(!i.props.disabledKeyboardNavigation){var l;switch(a){case"ArrowLeft":l=i.props.showWeekPicker?$L(s,1):Rye(s,1);break;case"ArrowRight":l=i.props.showWeekPicker?hb(s,1):Ed(s,1);break;case"ArrowUp":l=$L(s,1);break;case"ArrowDown":l=hb(s,1);break;case"PageUp":l=Mf(s,1);break;case"PageDown":l=xo(s,1);break;case"Home":l=cm(s,1);break;case"End":l=Nf(s,1);break;default:l=null}if(!l)return void(i.props.onInputError&&i.props.onInputError({code:1,msg:YO}));if(o.preventDefault(),i.setState({lastPreSelectChange:GO}),i.props.adjustDateOnChange&&i.setSelected(l),i.setPreSelection(l),i.props.inline){var u=br(s),f=br(l),d=ut(s),p=ut(l);u!==f||d!==p?i.setState({shouldFocusDayInline:!0}):i.setState({shouldFocusDayInline:!1})}}}),ne(ie(i),"onPopperKeyDown",function(o){o.key==="Escape"&&(o.preventDefault(),i.sendFocusBackToInput())}),ne(ie(i),"onClearClick",function(o){o&&o.preventDefault&&o.preventDefault(),i.sendFocusBackToInput(),i.props.selectsRange?i.props.onChange([null,null],o):i.props.onChange(null,o),i.setState({inputValue:null})}),ne(ie(i),"clear",function(){i.onClearClick()}),ne(ie(i),"onScroll",function(o){typeof i.props.closeOnScroll=="boolean"&&i.props.closeOnScroll?o.target!==document&&o.target!==document.documentElement&&o.target!==document.body||i.setOpen(!1):typeof i.props.closeOnScroll=="function"&&i.props.closeOnScroll(o)&&i.setOpen(!1)}),ne(ie(i),"renderCalendar",function(){return i.props.inline||i.isCalendarOpen()?M.createElement(gwe,{ref:function(o){i.calendar=o},locale:i.props.locale,calendarStartDay:i.props.calendarStartDay,chooseDayAriaLabelPrefix:i.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:i.props.disabledDayAriaLabelPrefix,weekAriaLabelPrefix:i.props.weekAriaLabelPrefix,monthAriaLabelPrefix:i.props.monthAriaLabelPrefix,adjustDateOnChange:i.props.adjustDateOnChange,setOpen:i.setOpen,shouldCloseOnSelect:i.props.shouldCloseOnSelect,dateFormat:i.props.dateFormatCalendar,useWeekdaysShort:i.props.useWeekdaysShort,formatWeekDay:i.props.formatWeekDay,dropdownMode:i.props.dropdownMode,selected:i.props.selected,preSelection:i.state.preSelection,onSelect:i.handleSelect,onWeekSelect:i.props.onWeekSelect,openToDate:i.props.openToDate,minDate:i.props.minDate,maxDate:i.props.maxDate,selectsStart:i.props.selectsStart,selectsEnd:i.props.selectsEnd,selectsRange:i.props.selectsRange,startDate:i.props.startDate,endDate:i.props.endDate,excludeDates:i.props.excludeDates,excludeDateIntervals:i.props.excludeDateIntervals,filterDate:i.props.filterDate,onClickOutside:i.handleCalendarClickOutside,formatWeekNumber:i.props.formatWeekNumber,highlightDates:i.state.highlightDates,holidays:K_e(i.modifyHolidays()),includeDates:i.props.includeDates,includeDateIntervals:i.props.includeDateIntervals,includeTimes:i.props.includeTimes,injectTimes:i.props.injectTimes,inline:i.props.inline,shouldFocusDayInline:i.state.shouldFocusDayInline,peekNextMonth:i.props.peekNextMonth,showMonthDropdown:i.props.showMonthDropdown,showPreviousMonths:i.props.showPreviousMonths,useShortMonthInDropdown:i.props.useShortMonthInDropdown,showMonthYearDropdown:i.props.showMonthYearDropdown,showWeekNumbers:i.props.showWeekNumbers,showYearDropdown:i.props.showYearDropdown,withPortal:i.props.withPortal,forceShowMonthNavigation:i.props.forceShowMonthNavigation,showDisabledMonthNavigation:i.props.showDisabledMonthNavigation,scrollableYearDropdown:i.props.scrollableYearDropdown,scrollableMonthYearDropdown:i.props.scrollableMonthYearDropdown,todayButton:i.props.todayButton,weekLabel:i.props.weekLabel,outsideClickIgnoreClass:E4,fixedHeight:i.props.fixedHeight,monthsShown:i.props.monthsShown,monthSelectedIn:i.state.monthSelectedIn,onDropdownFocus:i.handleDropdownFocus,onMonthChange:i.props.onMonthChange,onYearChange:i.props.onYearChange,dayClassName:i.props.dayClassName,weekDayClassName:i.props.weekDayClassName,monthClassName:i.props.monthClassName,timeClassName:i.props.timeClassName,showDateSelect:i.props.showDateSelect,showTimeSelect:i.props.showTimeSelect,showTimeSelectOnly:i.props.showTimeSelectOnly,onTimeChange:i.handleTimeChange,timeFormat:i.props.timeFormat,timeIntervals:i.props.timeIntervals,minTime:i.props.minTime,maxTime:i.props.maxTime,excludeTimes:i.props.excludeTimes,filterTime:i.props.filterTime,timeCaption:i.props.timeCaption,className:i.props.calendarClassName,container:i.props.calendarContainer,yearItemNumber:i.props.yearItemNumber,yearDropdownItemNumber:i.props.yearDropdownItemNumber,previousMonthAriaLabel:i.props.previousMonthAriaLabel,previousMonthButtonLabel:i.props.previousMonthButtonLabel,nextMonthAriaLabel:i.props.nextMonthAriaLabel,nextMonthButtonLabel:i.props.nextMonthButtonLabel,previousYearAriaLabel:i.props.previousYearAriaLabel,previousYearButtonLabel:i.props.previousYearButtonLabel,nextYearAriaLabel:i.props.nextYearAriaLabel,nextYearButtonLabel:i.props.nextYearButtonLabel,timeInputLabel:i.props.timeInputLabel,disabledKeyboardNavigation:i.props.disabledKeyboardNavigation,renderCustomHeader:i.props.renderCustomHeader,popperProps:i.props.popperProps,renderDayContents:i.props.renderDayContents,renderMonthContent:i.props.renderMonthContent,renderQuarterContent:i.props.renderQuarterContent,renderYearContent:i.props.renderYearContent,onDayMouseEnter:i.props.onDayMouseEnter,onMonthMouseLeave:i.props.onMonthMouseLeave,onYearMouseEnter:i.props.onYearMouseEnter,onYearMouseLeave:i.props.onYearMouseLeave,selectsDisabledDaysInRange:i.props.selectsDisabledDaysInRange,showTimeInput:i.props.showTimeInput,showMonthYearPicker:i.props.showMonthYearPicker,showFullMonthYearPicker:i.props.showFullMonthYearPicker,showTwoColumnMonthYearPicker:i.props.showTwoColumnMonthYearPicker,showFourColumnMonthYearPicker:i.props.showFourColumnMonthYearPicker,showYearPicker:i.props.showYearPicker,showQuarterYearPicker:i.props.showQuarterYearPicker,showWeekPicker:i.props.showWeekPicker,showPopperArrow:i.props.showPopperArrow,excludeScrollbar:i.props.excludeScrollbar,handleOnKeyDown:i.props.onKeyDown,handleOnDayKeyDown:i.onDayKeyDown,isInputFocused:i.state.focused,customTimeInput:i.props.customTimeInput,setPreSelection:i.setPreSelection},i.props.children):null}),ne(ie(i),"renderAriaLiveRegion",function(){var o,a=i.props,s=a.dateFormat,l=a.locale,u=i.props.showTimeInput||i.props.showTimeSelect?"PPPPp":"PPPP";return o=i.props.selectsRange?"Selected start date: ".concat(No(i.props.startDate,{dateFormat:u,locale:l}),". ").concat(i.props.endDate?"End date: "+No(i.props.endDate,{dateFormat:u,locale:l}):""):i.props.showTimeSelectOnly?"Selected time: ".concat(No(i.props.selected,{dateFormat:s,locale:l})):i.props.showYearPicker?"Selected year: ".concat(No(i.props.selected,{dateFormat:"yyyy",locale:l})):i.props.showMonthYearPicker?"Selected month: ".concat(No(i.props.selected,{dateFormat:"MMMM yyyy",locale:l})):i.props.showQuarterYearPicker?"Selected quarter: ".concat(No(i.props.selected,{dateFormat:"yyyy, QQQ",locale:l})):"Selected date: ".concat(No(i.props.selected,{dateFormat:u,locale:l})),M.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},o)}),ne(ie(i),"renderDateInput",function(){var o,a=fr(i.props.className,ne({},E4,i.state.open)),s=i.props.customInput||M.createElement("input",{type:"text"}),l=i.props.customInputRef||"ref",u=typeof i.props.value=="string"?i.props.value:typeof i.state.inputValue=="string"?i.state.inputValue:i.props.selectsRange?function(f,d,p){if(!f)return"";var m=No(f,p),v=d?No(d,p):"";return"".concat(m," - ").concat(v)}(i.props.startDate,i.props.endDate,i.props):No(i.props.selected,i.props);return M.cloneElement(s,(ne(ne(ne(ne(ne(ne(ne(ne(ne(ne(o={},l,function(f){i.input=f}),"value",u),"onBlur",i.handleBlur),"onChange",i.handleChange),"onClick",i.onInputClick),"onFocus",i.handleFocus),"onKeyDown",i.onInputKeyDown),"id",i.props.id),"name",i.props.name),"form",i.props.form),ne(ne(ne(ne(ne(ne(ne(ne(ne(ne(o,"autoFocus",i.props.autoFocus),"placeholder",i.props.placeholderText),"disabled",i.props.disabled),"autoComplete",i.props.autoComplete),"className",fr(s.props.className,a)),"title",i.props.title),"readOnly",i.props.readOnly),"required",i.props.required),"tabIndex",i.props.tabIndex),"aria-describedby",i.props.ariaDescribedBy),ne(ne(ne(o,"aria-invalid",i.props.ariaInvalid),"aria-labelledby",i.props.ariaLabelledBy),"aria-required",i.props.ariaRequired)))}),ne(ie(i),"renderClearButton",function(){var o=i.props,a=o.isClearable,s=o.disabled,l=o.selected,u=o.startDate,f=o.endDate,d=o.clearButtonTitle,p=o.clearButtonClassName,m=p===void 0?"":p,v=o.ariaLabelClose,g=v===void 0?"Close":v;return!a||l==null&&u==null&&f==null?null:M.createElement("button",{type:"button",className:fr("react-datepicker__close-icon",m,{"react-datepicker__close-icon--disabled":s}),disabled:s,"aria-label":g,onClick:i.onClearClick,title:d,tabIndex:-1})}),i.state=i.calcInitialState(),i.preventFocusTimeout=null,i}return Kn(n,[{key:"componentDidMount",value:function(){window.addEventListener("scroll",this.onScroll,!0)}},{key:"componentDidUpdate",value:function(r,i){var o,a;r.inline&&(o=r.selected,a=this.props.selected,o&&a?br(o)!==br(a)||ut(o)!==ut(a):o!==a)&&this.setPreSelection(this.props.selected),this.state.monthSelectedIn!==void 0&&r.monthsShown!==this.props.monthsShown&&this.setState({monthSelectedIn:0}),r.highlightDates!==this.props.highlightDates&&this.setState({highlightDates:w4(this.props.highlightDates)}),i.focused||tu(r.selected,this.props.selected)||this.setState({inputValue:null}),i.open!==this.state.open&&(i.open===!1&&this.state.open===!0&&this.props.onCalendarOpen(),i.open===!0&&this.state.open===!1&&this.props.onCalendarClose())}},{key:"componentWillUnmount",value:function(){this.clearPreventFocusTimeout(),window.removeEventListener("scroll",this.onScroll,!0)}},{key:"renderInputContainer",value:function(){var r=this.props,i=r.showIcon,o=r.icon,a=r.calendarIconClassname,s=r.toggleCalendarOnIconClick,l=this.state.open;return M.createElement("div",{className:"react-datepicker__input-container".concat(i?" react-datepicker__view-calendar-icon":"")},i&&M.createElement(hwe,Ff({icon:o,className:"".concat(a," ").concat(l&&"react-datepicker-ignore-onclickoutside")},s?{onClick:this.toggleCalendar}:null)),this.state.isRenderAriaLiveMessage&&this.renderAriaLiveRegion(),this.renderDateInput(),this.renderClearButton())}},{key:"render",value:function(){var r=this.renderCalendar();if(this.props.inline)return r;if(this.props.withPortal){var i=this.state.open?M.createElement(zV,{enableTabLoop:this.props.enableTabLoop},M.createElement("div",{className:"react-datepicker__portal",tabIndex:-1,onKeyDown:this.onPortalKeyDown},r)):null;return this.state.open&&this.props.portalId&&(i=M.createElement(BV,{portalId:this.props.portalId,portalHost:this.props.portalHost},i)),M.createElement("div",null,this.renderInputContainer(),i)}return M.createElement(vwe,{className:this.props.popperClassName,wrapperClassName:this.props.wrapperClassName,hidePopper:!this.isCalendarOpen(),portalId:this.props.portalId,portalHost:this.props.portalHost,popperModifiers:this.props.popperModifiers,targetComponent:this.renderInputContainer(),popperContainer:this.props.popperContainer,popperComponent:r,popperPlacement:this.props.popperPlacement,popperProps:this.props.popperProps,popperOnKeyDown:this.onPopperKeyDown,enableTabLoop:this.props.enableTabLoop})}}],[{key:"defaultProps",get:function(){return{allowSameDay:!1,dateFormat:"MM/dd/yyyy",dateFormatCalendar:"LLLL yyyy",onChange:function(){},disabled:!1,disabledKeyboardNavigation:!1,dropdownMode:"scroll",onFocus:function(){},onBlur:function(){},onKeyDown:function(){},onInputClick:function(){},onSelect:function(){},onClickOutside:function(){},onMonthChange:function(){},onCalendarOpen:function(){},onCalendarClose:function(){},preventOpenOnFocus:!1,onYearChange:function(){},onInputError:function(){},monthsShown:1,readOnly:!1,withPortal:!1,selectsDisabledDaysInRange:!1,shouldCloseOnSelect:!0,showTimeSelect:!1,showTimeInput:!1,showPreviousMonths:!1,showMonthYearPicker:!1,showFullMonthYearPicker:!1,showTwoColumnMonthYearPicker:!1,showFourColumnMonthYearPicker:!1,showYearPicker:!1,showQuarterYearPicker:!1,showWeekPicker:!1,strictParsing:!1,timeIntervals:30,timeCaption:"Time",previousMonthAriaLabel:"Previous Month",previousMonthButtonLabel:"Previous Month",nextMonthAriaLabel:"Next Month",nextMonthButtonLabel:"Next Month",previousYearAriaLabel:"Previous Year",previousYearButtonLabel:"Previous Year",nextYearAriaLabel:"Next Year",nextYearButtonLabel:"Next Year",timeInputLabel:"Time",enableTabLoop:!0,yearItemNumber:mh,focusSelectedMonth:!1,showPopperArrow:!0,excludeScrollbar:!0,customTimeInput:null,calendarStartDay:void 0,toggleCalendarOnIconClick:!1}}}]),n}(),bwe="input",GO="navigate";const WE=e=>{const{className:t,isClearable:n,selected:r,dateFormat:i}=e,o=!n||!r,a=I.useRef();return y.jsxs("div",{className:"icon-input-container",children:[y.jsx(ywe,{...e,popperModifiers:[{name:"arrow",options:{padding:24}}],dateFormat:i??mz,className:We("icon-input-container__input form-control",t),ref:a}),o&&y.jsx(Ne,{icon:npe,className:"icon-input-container__icon",onClick:()=>{var s;return(s=a.current)==null?void 0:s.input.focus()}})]})},_we=e=>y.jsx(WE,{...e,dateFormat:Bj,showTimeSelect:!0,timeIntervals:10}),qO=({children:e,infoTooltip:t,checked:n,onChange:r})=>y.jsxs("p",{children:[y.jsx(h9,{inline:!0,checked:n,className:t?"me-2":"",onChange:r,children:e}),t&&y.jsx(Dy,{placement:"right",children:t})]}),wwe=({isOpen:e,toggle:t})=>y.jsxs(Ka,{isOpen:e,toggle:t,centered:!0,size:"lg",children:[y.jsx(Za,{toggle:t,children:"Info"}),y.jsxs(aa,{children:[y.jsxs("p",{children:["When the ",y.jsx("b",{children:y.jsx("i",{children:'"Use existing URL if found"'})})," checkbox is checked, the server will return an existing short URL if it matches provided params."]}),y.jsx("p",{children:"These are the checks performed by Shlink in order to determine if an existing short URL should be returned:"}),y.jsxs("ul",{children:[y.jsx("li",{children:"When only the long URL is provided: The most recent match will be returned, or a new short URL will be created if none is found."}),y.jsxs("li",{children:["When long URL and custom slug and/or domain are provided: Same as in previous case, but it will try to match the short URL using both the long URL and the slug, the long URL and the domain, or the three of them.",y.jsx("br",{}),"If the slug is being used by another long URL, an error will be returned."]}),y.jsx("li",{children:"When other params are provided: Same as in previous cases, but it will try to match existing short URLs with all provided data. If any of them does not match, a new short URL will be created"})]})]})]}),xwe=()=>{const[e,t]=Cn();return y.jsxs(y.Fragment,{children:[y.jsx(jf,{className:"p-0",title:"What does this mean?",onClick:t,children:y.jsx(Ne,{icon:Ak})}),y.jsx(wwe,{isOpen:e,toggle:t})]})},KO=e=>typeof e=="string"?nl(e):e,Owe=e=>"shortCodeLength"in e&&"customSlug"in e&&"domain"in e,Swe=e=>"error"in e,VV=({mode:e,saving:t,onSave:n,initialState:r,tagsList:i})=>{const{TagsSelector:o,DomainSelector:a}=en(VV),[s,l]=I.useState(r),u=()=>l(r),f=$u("deviceLongUrls"),d=e==="edit",p=Owe(s),m=e==="create-basic",v=E=>l(T=>({...T,tags:E})),g=(E,T)=>Gl(E)?E:Gl(T)?null:void 0,x=Wj(async()=>n({...s,validSince:il(s.validSince)??null,validUntil:il(s.validUntil)??null,maxVisits:Gl(s.maxVisits)?Number(s.maxVisits):null}).then(E=>!d&&!Swe(E)&&u()).catch(()=>{}));I.useEffect(()=>{l(r)},[r]);const b=(E,T,k="text",P={},D={})=>y.jsx(zr,{...D,children:y.jsx(Cu,{name:E,id:E,type:k,placeholder:T,value:s[E]??"",onChange:P.onChange??(N=>l(F=>({...F,[E]:N.target.value}))),...P})}),_=(E,T,k)=>{var P;return y.jsx(xge,{icon:k,name:E,id:E,type:"url",placeholder:T,value:((P=s.deviceLongUrls)==null?void 0:P[E])??"",onChange:D=>l(N=>{var F;return{...N,deviceLongUrls:{...N.deviceLongUrls??{},[E]:g(D.target.value,(F=r.deviceLongUrls)==null?void 0:F[E])}}})})},w=(E,T,k={})=>y.jsx(_we,{name:E,selected:s[E]?KO(s[E]):null,placeholderText:T,isClearable:!0,onChange:P=>l(D=>({...D,[E]:P})),...k}),O=y.jsxs(y.Fragment,{children:[y.jsx(zr,{children:y.jsx(Cu,{name:"longUrl",bsSize:"lg",type:"url",placeholder:"URL to be shortened",required:!0,value:s.longUrl,onChange:E=>l(T=>({...T,longUrl:E.target.value}))})}),y.jsxs(Pr,{children:[m&&b("customSlug","Custom slug","text",{bsSize:"lg"},{className:"col-lg-6"}),y.jsx("div",{className:m?"col-lg-6 mb-3":"col-12",children:y.jsx(o,{tags:i.tags,selectedTags:s.tags??[],onChange:v})})]})]});return y.jsxs("form",{name:"shortUrlForm",className:"short-url-form",onSubmit:x,children:[m&&O,!m&&y.jsxs(y.Fragment,{children:[y.jsxs(Pr,{children:[y.jsx("div",{className:We("mb-3",{"col-sm-6":f,"col-12":!f}),children:y.jsx(Qt,{title:"Main options",className:"mb-3",children:O})}),f&&y.jsx("div",{className:"col-sm-6 mb-3",children:y.jsxs(Qt,{title:"Device-specific long URLs",children:[y.jsx(zr,{children:_("android","Android-specific redirection",spe)}),y.jsx(zr,{children:_("ios","iOS-specific redirection",ape)}),_("desktop","Desktop-specific redirection",Zee)]})})]}),y.jsxs(Pr,{children:[y.jsx("div",{className:"col-sm-6 mb-3",children:y.jsxs(Qt,{title:"Customize the short URL",children:[b("title","Title","text",{onChange:({target:E})=>l(T=>({...T,title:g(E.value,r.title)}))}),!d&&p&&y.jsxs(y.Fragment,{children:[y.jsxs(Pr,{children:[y.jsx("div",{className:"col-lg-6",children:b("customSlug","Custom slug","text",{disabled:Gl(s.shortCodeLength)})}),y.jsx("div",{className:"col-lg-6",children:b("shortCodeLength","Short code length","number",{min:4,disabled:Gl(s.customSlug)})})]}),y.jsx(a,{value:s.domain,onChange:E=>l(T=>({...T,domain:E}))})]})]})}),y.jsx("div",{className:"col-sm-6 mb-3",children:y.jsxs(Qt,{title:"Limit access to the short URL",children:[b("maxVisits","Maximum number of visits allowed","number",{min:1}),y.jsx("div",{className:"mb-3",children:w("validSince","Enabled since...",{maxDate:s.validUntil?KO(s.validUntil):void 0})}),w("validUntil","Enabled until...",{minDate:s.validSince?KO(s.validSince):void 0})]})})]}),y.jsxs(Pr,{children:[y.jsx("div",{className:"col-sm-6 mb-3",children:y.jsxs(Qt,{title:"Extra checks",children:[y.jsx(qO,{infoTooltip:"If checked, Shlink will try to reach the long URL, failing in case it's not publicly accessible.",checked:s.validateUrl,onChange:E=>l(T=>({...T,validateUrl:E})),children:"Validate URL"}),!d&&p&&y.jsxs("p",{children:[y.jsx(h9,{inline:!0,className:"me-2",checked:s.findIfExists,onChange:E=>l(T=>({...T,findIfExists:E})),children:"Use existing URL if found"}),y.jsx(xwe,{})]})]})}),y.jsx("div",{className:"col-sm-6 mb-3",children:y.jsxs(Qt,{title:"Configure behavior",children:[y.jsx(qO,{infoTooltip:"This short URL will be included in the robots.txt for your Shlink instance, allowing web crawlers (like Google) to index it.",checked:s.crawlable,onChange:E=>l(T=>({...T,crawlable:E})),children:"Make it crawlable"}),y.jsx(qO,{infoTooltip:"When this short URL is visited, any query params appended to it will be forwarded to the long URL.",checked:s.forwardQuery,onChange:E=>l(T=>({...T,forwardQuery:E})),children:"Forward query params on redirect"})]})})]})]}),y.jsx("div",{className:"text-center",children:y.jsx(_t,{outline:!0,color:"primary",disabled:t||!s.longUrl,className:"btn-xs-block",children:t?"Saving...":"Save"})})]})},Ewe=tn(VV,["TagsSelector","DomainSelector"]),Twe=({active:e,allText:t,onChange:n})=>y.jsxs(y.Fragment,{children:[y.jsx(Re,{active:e==="all",onClick:()=>n("all"),children:t}),y.jsx(Re,{divider:!0,tag:"hr"}),jme.map(r=>y.jsx(Re,{active:e===r,onClick:()=>n(r),children:bz(r)},r))]}),Cwe=({startDate:e=null,endDate:t=null,disabled:n=!1,onStartDateChange:r,onEndDateChange:i})=>y.jsxs("div",{className:"row",children:[y.jsx("div",{className:"col-md-6",children:y.jsx(WE,{selected:e,placeholderText:"Since...",isClearable:!0,maxDate:t??void 0,disabled:n,onChange:r})}),y.jsx("div",{className:"col-md-6",children:y.jsx(WE,{className:"mt-2 mt-md-0",selected:t,placeholderText:"Until...",isClearable:!0,minDate:e??void 0,disabled:n,onChange:o=>i(o&&Pf(o))})})]}),hP=({onDatesChange:e,dateRangeOrInterval:t,defaultText:n,disabled:r})=>{const i=I.useMemo(()=>bz(t)??n,[t,n]),[o,a]=I.useMemo(()=>ub(t)?[void 0,t]:[t,void 0],[t]),s=I.useCallback(l=>{ub(l)?e(_z(l),l):e(l)},[e]);return y.jsxs(Qa,{disabled:r,text:i,children:[y.jsx(Twe,{allText:n,active:a,onChange:s}),y.jsx(Re,{divider:!0,tag:"hr"}),y.jsx(Re,{header:!0,"aria-hidden":!0,children:"Custom:"}),y.jsx(Re,{text:!0,children:y.jsx(Cwe,{...o,onStartDateChange:l=>s({...o,startDate:l}),onEndDateChange:l=>s({...o,endDate:l})})})]})},kwe={dateCreated:"Created at",shortCode:"Short URL",longUrl:"Long URL",title:"Title",visits:"Visits"},jwe=({onChange:e,selected:t={},className:n,supportsDisabledFiltering:r})=>{const{excludeBots:i=!1,excludeMaxVisitsReached:o=!1,excludePastValidUntil:a=!1}=t,s=l=>()=>e({...t,[l]:!(t!=null&&t[l])});return y.jsxs(Qa,{text:"Filters",dropdownClassName:n,inline:!0,end:!0,minWidth:250,children:[y.jsx(Re,{header:!0,"aria-hidden":!0,children:"Visits:"}),y.jsx(Re,{active:i,onClick:s("excludeBots"),children:"Ignore visits from bots"}),r&&y.jsxs(y.Fragment,{children:[y.jsx(Re,{divider:!0,tag:"hr"}),y.jsx(Re,{header:!0,"aria-hidden":!0,children:"Short URLs:"}),y.jsx(Re,{active:o,onClick:s("excludeMaxVisitsReached"),children:"Exclude with visits reached"}),y.jsx(Re,{active:a,onClick:s("excludePastValidUntil"),children:"Exclude enabled in the past"})]}),y.jsx(Re,{divider:!0,tag:"hr"}),y.jsx(Re,{disabled:t.excludeBots===void 0&&t.excludeMaxVisitsReached===void 0&&t.excludePastValidUntil===void 0,onClick:()=>e({excludeBots:void 0,excludeMaxVisitsReached:void 0,excludePastValidUntil:void 0}),children:y.jsx("i",{children:"Reset to defaults"})})]})},HV=({className:e,shortUrlsAmount:t,order:n,handleOrderBy:r,tagsList:i})=>{const{ExportShortUrlsBtn:o,TagsSelector:a}=en(HV),[{search:s,tags:l,startDate:u,endDate:f,excludeBots:d,excludeMaxVisitsReached:p,excludePastValidUntil:m,tagsMode:v="any"},g]=mw(),x=$u("filterDisabledUrls"),b=vl("visits"),[_,w]=I.useState(),O=I.useCallback(({startDate:P,endDate:D},N)=>{g({startDate:il(P)??void 0,endDate:il(D)??void 0}),w(N)},[g]),E=I.useCallback(P=>g({search:P||void 0}),[g]),T=I.useCallback(P=>g({tags:P}),[g]),k=I.useCallback(()=>g({tagsMode:v==="any"?"all":"any"}),[v,g]);return y.jsxs("div",{className:We("short-urls-filtering-bar-container",e),children:[y.jsx(gv,{initialValue:s,onChange:E}),y.jsxs(nw,{className:"mt-3",children:[y.jsx(a,{immutable:!0,placeholder:"With tags...",tags:i.tags,selectedTags:l,onChange:T}),l.length>1&&y.jsxs(y.Fragment,{children:[y.jsx(_t,{outline:!0,color:"secondary",onClick:k,id:"tagsModeBtn","aria-label":"Change tags mode",children:y.jsx(Ne,{className:"short-urls-filtering-bar__tags-icon",icon:v==="all"?x7:Eee})}),y.jsx(Jr,{target:"tagsModeBtn",placement:"left",children:v==="all"?"With all the tags.":"With any of the tags."})]})]}),y.jsxs(Pr,{className:"flex-lg-row-reverse",children:[y.jsx("div",{className:"col-lg-8 col-xl-6 mt-3",children:y.jsxs("div",{className:"d-md-flex",children:[y.jsx("div",{className:"flex-fill",children:y.jsx(hP,{defaultText:"All short URLs",dateRangeOrInterval:_??yz(u,f),onDatesChange:O})}),y.jsx(jwe,{className:"ms-0 ms-md-2 mt-3 mt-md-0",selected:{excludeBots:d??(b==null?void 0:b.excludeBots),excludeMaxVisitsReached:p,excludePastValidUntil:m},onChange:g,supportsDisabledFiltering:x})]})}),y.jsx("div",{className:"col-6 col-lg-4 col-xl-6 mt-3",children:y.jsx(o,{amount:t})}),y.jsx("div",{className:"col-6 d-lg-none mt-3",children:y.jsx(yv,{prefixed:!1,items:kwe,order:n,onChange:r})})]})]})},Pwe=tn(HV,["ExportShortUrlsBtn","TagsSelector"]);function vh({currentOrder:e,field:t,className:n="ms-1"}){return!e.dir||e.field!==t?null:y.jsx(Ne,{icon:e.dir==="ASC"?gee:jee,className:n})}const hc=2,YE="...",WV=(e,t)=>{const n=Dj(Math.max(hc,e-hc),Math.min(t-1,e+hc)+1);return e-hc>hc&&n.unshift(YE),e+hce===YE,YV=e=>mm(e)?e:hn(e),GV=(e,t)=>mm(e)?`${e}_${t}`:`${e}`,Awe=({paginator:e,currentQueryString:t=""})=>{const{currentPage:n=0,pagesCount:r=0}=e??{},i=ml(),o=s=>`${i}/list-short-urls/${s}${t}`;if(r<=1)return y.jsx("div",{className:"pb-3"});const a=()=>WV(n,r).map((s,l)=>y.jsx(cu,{disabled:mm(s),active:n===s,children:y.jsx(fu,{tag:$t,to:o(s),children:YV(s)})},GV(s,l)));return y.jsxs(uj,{className:"sticky-card-paginator py-3",listClassName:"flex-wrap justify-content-center mb-0",children:[y.jsx(cu,{disabled:n===1,children:y.jsx(fu,{previous:!0,tag:$t,to:o(n-1)})}),a(),y.jsx(cu,{disabled:n>=r,children:y.jsx(fu,{next:!0,tag:$t,to:o(n+1)})})]})},Nwe={field:"dateCreated",dir:"DESC"},qV=Oo(({listShortUrls:e,shortUrlsList:t})=>{var n,r,i;const{ShortUrlsTable:o,ShortUrlsFilteringBar:a}=en(qV),{page:s}=hd(),l=xr(),[{tags:u,search:f,startDate:d,endDate:p,orderBy:m,tagsMode:v,excludeBots:g,excludePastValidUntil:x,excludeMaxVisitsReached:b},_]=mw(),w=Zj(),[O,E]=I.useState(m??((n=w.shortUrlsList)==null?void 0:n.defaultOrdering)??Nwe),{pagination:T}=(t==null?void 0:t.shortUrls)??{},k=I.useMemo(()=>{var Q;return g??((Q=w.visits)==null?void 0:Q.excludeBots)},[g,(r=w.visits)==null?void 0:r.excludeBots]),P=$u("excludeBotsOnShortUrls"),D=I.useCallback((Q,Z)=>{_({orderBy:{field:Q,dir:Z}}),E({field:Q,dir:Z})},[_]),N=Q=>()=>D(Q,aw(Q,O.field,O.dir)),F=Q=>y.jsx(vh,{currentOrder:O,field:Q}),B=I.useCallback(Q=>_({tags:[...new Set([...u,Q])]}),[u,_]),Y=I.useCallback(({field:Q,dir:Z})=>P&&k&&Q==="visits"?{field:"nonBotVisits",dir:Z}:{field:Q,dir:Z},[k,P]),H=Mj();return I.useEffect(()=>{e({page:s,searchTerm:f,tags:u,startDate:d,endDate:p,orderBy:Y(O),tagsMode:v,excludePastValidUntil:x,excludeMaxVisitsReached:b})},[e,Y,s,f,u,d,p,O,v,x,b]),y.jsxs(Nj,{value:H,children:[y.jsx(a,{shortUrlsAmount:(i=t.shortUrls)==null?void 0:i.pagination.totalItems,order:O,handleOrderBy:D,className:"mb-3"}),y.jsx(Rj,{type:"short-urls",className:"mb-3"}),y.jsxs(di,{body:!0,className:"pb-0",children:[y.jsx(o,{shortUrlsList:t,orderByColumn:N,renderOrderIcon:F,onTagClick:B}),y.jsx(Awe,{paginator:T,currentQueryString:l.search})]})]})},()=>[Dr.visits]),Mwe=tn(qV,["ShortUrlsTable","ShortUrlsFilteringBar"]),KV=({orderByColumn:e,renderOrderIcon:t,shortUrlsList:n,onTagClick:r,className:i})=>{const{ShortUrlsRow:o}=en(KV),{error:a,loading:s,shortUrls:l}=n,u=We({"short-urls-table__header-cell--with-action":!!e}),f=We("short-urls-table__header-cell",u),d=We("table table-hover responsive-table short-urls-table",i),p=()=>a?y.jsx("tr",{children:y.jsx("td",{colSpan:6,className:"text-center table-danger text-dark",children:"Something went wrong while loading short URLs :("})}):s?y.jsx("tr",{children:y.jsx("td",{colSpan:6,className:"text-center",children:"Loading..."})}):!s&&(!l||l.data.length===0)?y.jsx("tr",{children:y.jsx("td",{colSpan:6,className:"text-center",children:"No results found"})}):l==null?void 0:l.data.map(m=>y.jsx(o,{shortUrl:m,onTagClick:r},m.shortUrl));return y.jsxs("table",{className:d,children:[y.jsx("thead",{className:"responsive-table__header short-urls-table__header",children:y.jsxs("tr",{children:[y.jsxs("th",{className:f,onClick:e==null?void 0:e("dateCreated"),children:["Created at ",t==null?void 0:t("dateCreated")]}),y.jsxs("th",{className:f,onClick:e==null?void 0:e("shortCode"),children:["Short URL ",t==null?void 0:t("shortCode")]}),y.jsxs("th",{className:"short-urls-table__header-cell",children:[y.jsxs(jf,{className:We("p-0",u),onClick:e==null?void 0:e("title"),children:["Title ",t==null?void 0:t("title")]}),"  /  ",y.jsxs(jf,{className:We("p-0",u),onClick:e==null?void 0:e("longUrl"),children:[y.jsx("span",{className:"indivisible",children:"Long URL"})," ",t==null?void 0:t("longUrl")]})]}),y.jsx("th",{className:"short-urls-table__header-cell",children:"Tags"}),y.jsx("th",{className:f,onClick:e==null?void 0:e("visits"),children:y.jsxs("span",{className:"indivisible",children:["Visits ",t==null?void 0:t("visits")]})}),y.jsx("th",{className:"short-urls-table__header-cell",colSpan:2,"aria-hidden":!0})]})}),y.jsx("tbody",{children:p()})]})},Rwe=tn(KV,["ShortUrlsRow"]),Dwe=(e,t)=>{e.factory("ShortUrlsList",Mwe),e.decorator("ShortUrlsList",t(["mercureInfo","shortUrlsList"],["listShortUrls","createNewVisits","loadMercureInfo"])),e.factory("ShortUrlsTable",Rwe),e.factory("ShortUrlsRow",hge),e.factory("ShortUrlsRowMenu",mge),e.factory("CreateShortUrlResult",tge),e.factory("ShortUrlForm",Ewe),e.decorator("ShortUrlForm",t(["tagsList"])),e.factory("CreateShortUrl",Dve),e.decorator("CreateShortUrl",t(["shortUrlCreation"],["createShortUrl","resetCreateShortUrl"])),e.factory("EditShortUrl",Lve),e.decorator("EditShortUrl",t(["shortUrlsDetails","shortUrlEdition"],["getShortUrlsDetails","editShortUrl"])),e.serviceFactory("DeleteShortUrlModal",()=>nge),e.decorator("DeleteShortUrlModal",t(["shortUrlDeletion"],["deleteShortUrl","shortUrlDeleted","resetDeleteShortUrl"])),e.factory("QrCodeModal",sge),e.factory("ExportShortUrlsBtn",rge),e.factory("ShortUrlsFilteringBar",Pwe),e.decorator("ShortUrlsFilteringBar",t(["tagsList"])),e.serviceFactory("shortUrlsListReducerCreator",Tve,"listShortUrls","editShortUrl","createShortUrl"),e.serviceFactory("shortUrlsListReducer",n=>n.reducer,"shortUrlsListReducerCreator"),e.serviceFactory("shortUrlCreationReducerCreator",gge,"createShortUrl"),e.serviceFactory("shortUrlCreationReducer",n=>n.reducer,"shortUrlCreationReducerCreator"),e.serviceFactory("shortUrlEditionReducerCreator",_ge,"editShortUrl"),e.serviceFactory("shortUrlEditionReducer",n=>n.reducer,"shortUrlEditionReducerCreator"),e.serviceFactory("shortUrlDeletionReducerCreator",Ove,"deleteShortUrl"),e.serviceFactory("shortUrlDeletionReducer",n=>n.reducer,"shortUrlDeletionReducerCreator"),e.serviceFactory("shortUrlsDetailsReducerCreator",wge,"apiClientFactory"),e.serviceFactory("shortUrlsDetailsReducer",n=>n.reducer,"shortUrlsDetailsReducerCreator"),e.serviceFactory("listShortUrls",Eve,"apiClientFactory"),e.serviceFactory("createShortUrl",vge,"apiClientFactory"),e.serviceFactory("resetCreateShortUrl",n=>n.resetCreateShortUrl,"shortUrlCreationReducerCreator"),e.serviceFactory("deleteShortUrl",xve,"apiClientFactory"),e.serviceFactory("resetDeleteShortUrl",n=>n.resetDeleteShortUrl,"shortUrlDeletionReducerCreator"),e.serviceFactory("shortUrlDeleted",()=>kz),e.serviceFactory("getShortUrlsDetails",n=>n.getShortUrlsDetails,"shortUrlsDetailsReducerCreator"),e.serviceFactory("editShortUrl",bge,"apiClientFactory")},Lwe=({tag:e,toggle:t,isOpen:n,deleteTag:r,tagDelete:i,tagDeleted:o})=>{const{deleting:a,error:s,deleted:l,errorData:u}=i;return y.jsxs(Ka,{toggle:t,isOpen:n,centered:!0,onClosed:()=>l&&o(e),children:[y.jsx(Za,{toggle:t,className:"text-danger",children:"Delete tag"}),y.jsxs(aa,{children:["Are you sure you want to delete tag ",y.jsx("b",{children:e}),"?",s&&y.jsx(li,{type:"error",small:!0,className:"mt-2",children:y.jsx(Ua,{errorData:u,fallbackMessage:"Something went wrong while deleting the tag :("})})]}),y.jsxs(Uu,{children:[y.jsx(_t,{color:"link",onClick:t,children:"Cancel"}),y.jsx(_t,{color:"danger",disabled:a,onClick:async()=>{await r(e),t()},children:a?"Deleting tag...":"Delete tag"})]})]})},ZV=({tag:e,editTag:t,toggle:n,tagEdited:r,isOpen:i,tagEdit:o})=>{const{ColorGenerator:a}=en(ZV),[s,l]=I.useState(e),[u,f]=I.useState(a.getColorForKey(e)),{editing:d,error:p,edited:m,errorData:v}=o,g=Wj(async()=>{await t({oldName:e,newName:s,color:u}),n()}),x=I.useCallback(()=>m&&r({oldName:e,newName:s,color:u}),[u,m,s,e,r]);return y.jsx(Ka,{isOpen:i,toggle:n,centered:!0,onClosed:x,children:y.jsxs("form",{name:"editTag",onSubmit:g,children:[y.jsx(Za,{toggle:n,children:"Edit tag"}),y.jsxs(aa,{children:[y.jsxs(nw,{children:[y.jsxs("div",{className:"input-group-text p-0 position-relative",style:{backgroundColor:u,borderColor:u},children:[y.jsx(Ne,{icon:yee,className:"position-absolute top-50 start-50 translate-middle text-white"}),y.jsx(Cu,{className:"form-control-color opacity-0",type:"color",value:u,onChange:b=>f(b.target.value)})]}),y.jsx(Cu,{value:s,placeholder:"Tag",required:!0,onChange:({target:b})=>l(b.value)})]}),p&&y.jsx(li,{type:"error",small:!0,className:"mt-2",children:y.jsx(Ua,{errorData:v,fallbackMessage:"Something went wrong while editing the tag :("})})]}),y.jsxs(Uu,{children:[y.jsx(_t,{type:"button",color:"link",onClick:n,children:"Cancel"}),y.jsx(_t,{color:"primary",disabled:d,children:d?"Saving...":"Save"})]})]})})},Iwe=tn(ZV,["ColorGenerator"]),zl={Enter:"Enter",Escape:"Escape",Tab:"Tab",Backspace:"Backspace",UpArrow:"ArrowUp",UpArrowCompat:"Up",DownArrow:"ArrowDown",DownArrowCompat:"Down",PageDown:"PageDown",PageUp:"PageUp"},mP=Symbol("Create new tag"),QV=Symbol("No options"),wc=()=>{},Xn=M.createContext(void 0);function T4(e,t){return e===t?[]:e.filter(n=>!t.includes(n))}function Fwe(e){return e.selectionStart===0&&e.selectionEnd===0}function Uwe(e){const t=e.value.length;return e.selectionStart===t&&e.selectionEnd===t}function Ow(e){return`${e}-label`}function $we(e){return`${e}-combobox`}function Bwe(e){return`${e}-input`}function XV(e){return`${e}-listbox`}function JV(e,t){return`${e}-option-${qwe(t)}`}function zwe(e,t){if((e==null?void 0:e.value)===mP&&e.disabled===!1)return{value:t,label:t}}function Vwe(e){const t=zwe(e.activeOption,e.value)||e.activeOption||Xwe(e.value,e.options);return t&&!t.disabled?t:void 0}function Hwe(e,t,n){const r=t-1;return e>r?n:en===e.value)}const Kwe=/[-\\^$*+?.()|[\]{}]/g;function eH(e){return e.replace(Kwe,"\\$&")}function tH(e){return new RegExp(eH(e),"i")}function Zwe(e){return new RegExp(`^${eH(e)}$`,"i")}function Qwe(e,t){if(e){const n=tH(e);return t.filter(r=>n.test(r.label))}else return[].concat(t)}function Xwe(e,t){const n=Zwe(e);return t.find(r=>n.test(r.label))||null}const Jwe={autoComplete:"off",autoCorrect:"off","data-form-type":"other",spellCheck:!1};function exe({allowBackspace:e,ariaDescribedBy:t,ariaErrorMessage:n,delimiterKeys:r}){const{id:i,comboBoxRef:o,inputRef:a,isDisabled:s,isInvalid:l,managerRef:u}=I.useContext(Xn),f=I.useMemo(()=>{const v=D=>{const N=D.currentTarget.value;u.current.updateInputValue(N),document.activeElement===a.current&&u.current.listBoxExpand(N)},g=()=>{u.current.listBoxExpand()},x=D=>{var N;((N=o.current)==null?void 0:N.contains(D.relatedTarget))===!1&&u.current.listBoxCollapse()},b=()=>{u.current.listBoxExpand()},_=D=>{const{activeIndex:N,isExpanded:F}=u.current.state;F?(D.preventDefault(),u.current.updateActiveIndex(N+1)):(Uwe(D.currentTarget)||D.altKey)&&(D.preventDefault(),u.current.listBoxExpand())},w=D=>{const{activeIndex:N,isExpanded:F}=u.current.state;F?(D.preventDefault(),u.current.updateActiveIndex(N-1)):Fwe(D.currentTarget)&&(D.preventDefault(),u.current.listBoxExpand())},O=D=>{const{isExpanded:N,options:F}=u.current.state;N&&(D.preventDefault(),u.current.updateActiveIndex(F.length-1))},E=D=>{u.current.state.isExpanded&&(D.preventDefault(),u.current.updateActiveIndex(0))},T=()=>{u.current.state.isExpanded?u.current.listBoxCollapse():u.current.updateInputValue("")},k=()=>{if(e){const{value:D,selected:N}=u.current.state,F=N[N.length-1];D===""&&F&&u.current.selectTag(F)}},P=D=>{u.current.state.isExpanded&&(D.preventDefault(),u.current.selectTag())};return{onBlur:x,onChange:v,onClick:b,onFocus:g,onKeyDown:D=>{if(D.key===zl.UpArrow)return w(D);if(D.key===zl.DownArrow)return _(D);if(D.key===zl.PageUp)return E(D);if(D.key===zl.PageDown)return O(D);if(D.key===zl.Escape)return T();if(D.key===zl.Backspace)return k();if(r.includes(D.key))return P(D)}}},[e,o,r,a,u]),{activeOption:d,isExpanded:p,value:m}=u.current.state;return{...Jwe,"aria-autocomplete":"list","aria-activedescendant":d?JV(i,d):void 0,"aria-controls":XV(i),"aria-describedby":t||void 0,"aria-disabled":s,"aria-errormessage":l&&n||void 0,"aria-invalid":l,"aria-labelledby":Ow(i),"aria-expanded":p,id:Bwe(i),onBlur:s?wc:f.onBlur,onChange:s?wc:f.onChange,onClick:s?wc:f.onClick,onFocus:s?wc:f.onFocus,onKeyDown:s?wc:f.onKeyDown,ref:a,role:"combobox",type:"text",value:m}}const txe={position:"absolute",width:0,height:0,visibility:"hidden",overflow:"scroll",whiteSpace:"pre"},nxe=["font-family","font-size","font-style","font-weight","letter-spacing","text-transform"];function rxe({allowResize:e=!0,text:t}){const n=I.useRef(null),{inputRef:r}=I.useContext(Xn),[i,o]=I.useState(null);return I.useLayoutEffect(()=>{if(e&&r.current&&n.current&&window.getComputedStyle){const a=window.getComputedStyle(r.current);nxe.forEach(s=>{const l=a.getPropertyValue(s);n.current.style.setProperty(s,l)})}},[e,r,n]),I.useLayoutEffect(()=>{var a;if(e){const s=Math.ceil(((a=n.current)==null?void 0:a.scrollWidth)??0)+2;i!==s&&o(s)}},[e,t,i]),{width:i,sizerProps:{ref:n,style:txe}}}function ixe(){const{id:e,inputRef:t,listBoxRef:n,managerRef:r}=I.useContext(Xn),i=r.current.state.activeIndex===-1,o=I.useCallback(a=>{var s;a.target!==t.current&&((s=t.current)==null||s.focus({preventScroll:!0}))},[t]);return I.useEffect(()=>{var a;i&&((a=n.current)==null||a.scrollTo({top:0}))},[n,i]),{"aria-labelledby":Ow(e),id:XV(e),onFocus:o,ref:n,role:"listbox",tabIndex:-1}}function oxe({activateFirstOption:e,allowNew:t,collapseOnSelect:n,newOptionText:r,noOptionsText:i,onAdd:o,onDelete:a,onCollapse:s,onExpand:l,onInput:u,onShouldCollapse:f,onShouldExpand:d,onValidate:p,selected:m,suggestions:v,suggestionsTransform:g}){const x=I.useRef(),[b,_]=I.useState(null),[w,O]=I.useState(!1),[E,T]=I.useState(""),k=I.useMemo(()=>{const H=g(E,v);return E&&(t&&H.push({disabled:p?!p(E):!1,label:r,value:mP}),H.length===0&&H.push({disabled:!0,label:i,value:QV})),H},[t,r,i,p,v,g,E]),P=b?qE(b,k):-1,D=e?Math.max(P,0):P,N=k[D],F={activeIndex:D,activeOption:N,isExpanded:w,options:k,selected:m,value:E},B={tagsAdded:x.current?T4(m,x.current.state.selected):[],tagsDeleted:x.current?T4(x.current.state.selected,m):[]},Y={listBoxCollapse(H){w&&(!f||f(H??F.value))&&(O(!1),_(null),s==null||s())},listBoxExpand(H){w||(!d||d(H??F.value))&&(O(!0),_(k[D]),l==null||l())},updateActiveIndex(H){const Q=Hwe(H,k.length,e?0:-1);_(k[Q])},updateInputValue(H){E!==H&&(T(H),u==null||u(H))},selectTag(H){if(H??(H=Vwe(F)),H){const Q=qE(H,F.selected);Q>-1?a(Q):o(H),n&&this.listBoxCollapse(),this.updateInputValue("")}}};return x.current={...Y,flags:B,state:F},x}function axe(e){const{id:t,inputRef:n,listBoxRef:r,managerRef:i}=I.useContext(Xn),o=I.useRef(null),a=i.current.state.options[e],s=e===i.current.state.activeIndex,l=a.disabled??!1,u=qE(a,i.current.state.selected)>-1,f=I.useCallback(()=>{var p;i.current.selectTag(),(p=n.current)==null||p.focus()},[n,i]),d=I.useCallback(()=>{e!==i.current.state.activeIndex&&i.current.updateActiveIndex(e)},[e,i]);return uxe(o,r,s),{option:{...a,active:s,disabled:l,index:e,selected:u},optionProps:{"aria-disabled":l,"aria-posinset":e+1,"aria-selected":l?void 0:u,"aria-setsize":i.current.state.options.length,id:JV(t,a),onClick:f,onMouseDown:d,ref:o,role:"option",tabIndex:-1}}}function sxe({inputRef:e,managerRef:t}){return I.useRef({input:{blur(){var n;(n=e.current)==null||n.blur()},focus(){var n;(n=e.current)==null||n.focus()},get value(){return t.current.state.value},set value(n){typeof n!="string"&&(n=String(n)),t.current.updateInputValue(n)}},listBox:{collapse(){t.current.listBoxCollapse()},expand(){t.current.listBoxExpand()},get activeOption(){return t.current.state.activeOption},get isExpanded(){return t.current.state.isExpanded}},select(n){t.current.selectTag(n)}}).current}function lxe({onBlur:e,onFocus:t}){const[n,r]=I.useState(!1),{id:i,inputRef:o}=I.useContext(Xn),a=I.useRef(null),s=I.useMemo(()=>({"aria-describedby":Ow(i),id:i,onFocus(){r(!0),t==null||t()},onBlur(){var l;(l=a.current)!=null&&l.contains(document.activeElement)||(r(!1),e==null||e())},onClick(){var l;document.activeElement===a.current&&((l=o.current)==null||l.focus())},ref:a,tabIndex:-1}),[o,i,e,t,a]);return{isActive:n,rootProps:s}}function uxe(e,t,n){I.useEffect(()=>{var r,i,o,a;if(n){const s=(r=e.current)==null?void 0:r.offsetHeight,l=(i=e.current)==null?void 0:i.offsetTop,u=(o=t.current)==null?void 0:o.offsetHeight,f=(a=t.current)==null?void 0:a.scrollTop;lf+u&&t.current.scrollTo(0,l+s-u)}},[n,t,e])}function cxe(e,t){const{isDisabled:n,managerRef:r}=I.useContext(Xn),i=r.current.state.selected[e],o=I.useCallback(()=>r.current.selectTag(i),[r,i]);return{tag:i,tagProps:{"aria-disabled":n,title:Sb(t,i.label),onClick:n?wc:o}}}function fxe(){var e;const{inputRef:t,managerRef:n}=I.useContext(Xn),r=I.useRef(),i=n.current.flags.tagsDeleted.length,o=(e=r.current)==null?void 0:e.contains(document.activeElement);return I.useLayoutEffect(()=>{var a,s;if(i){const l=(a=r.current)==null?void 0:a.contains(document.activeElement);o&&!l&&((s=t.current)==null||s.focus({preventScroll:!0}))}},[t,o,r,i]),{listRef:r}}const dxe={position:"absolute",width:1,height:1,left:-9999,overflow:"hidden",clip:"rect(0 0 0 0)"};function pxe({ariaAddedText:e,ariaDeletedText:t}){const{managerRef:n}=I.useContext(Xn),r=I.useRef([]);return n.current.flags.tagsAdded.forEach(i=>{r.current.push(Sb(e,i.label))}),n.current.flags.tagsDeleted.forEach(i=>{r.current.push(Sb(t,i.label))}),M.createElement("div",{"aria-live":"polite","aria-relevant":"additions",role:"status",style:dxe},r.current.join(` +`))}function hxe({children:e}){const{classNames:t,comboBoxRef:n,id:r}=I.useContext(Xn);return M.createElement("div",{className:t.comboBox,id:$we(r),ref:n},e)}const mxe=({classNames:e,text:t})=>M.createElement("mark",{className:e.highlight},t);function vxe({option:e,query:t,render:n=mxe}){const{classNames:r}=I.useContext(Xn);if(e.value===mP||e.value===QV)return M.createElement(M.Fragment,null,Sb(e.label,t));if(t){const i=Ywe(e.label,t);if(i){const o=n({text:i[1],classNames:r});return M.createElement(M.Fragment,null,i[0],o,i[2])}}return M.createElement(M.Fragment,null,e.label)}const gxe=M.memo(vxe),yxe=({classNames:e,inputWidth:t,...n})=>M.createElement("input",{className:e.input,style:{width:t},...n});function bxe({allowBackspace:e=!0,allowResize:t=!0,ariaDescribedBy:n,ariaErrorMessage:r,delimiterKeys:i,placeholderText:o,render:a=yxe}){const{classNames:s}=I.useContext(Xn),{value:l,...u}=exe({allowBackspace:e,ariaDescribedBy:n,ariaErrorMessage:r,delimiterKeys:i}),f=l.lengthM.createElement("div",{className:t.label,id:n},e);function wxe({children:e,render:t=_xe}){const{classNames:n,id:r}=I.useContext(Xn);return t({children:e,classNames:n,id:Ow(r)})}const xxe=({children:e,classNames:t,...n})=>M.createElement("div",{className:t.listBox,...n},e);function Oxe({children:e,render:t=xxe}){const{classNames:n,managerRef:r}=I.useContext(Xn),i=ixe();return!r.current.state.isExpanded||M.Children.count(e)===0?null:t({children:e,classNames:n,...i})}const Sxe=({children:e,classNames:t,option:n,...r})=>{const i=[t.option];return n.active&&i.push(t.optionIsActive),M.createElement("div",{className:i.join(" "),...r},e)};function Exe({children:e,index:t,render:n=Sxe}){const{classNames:r}=I.useContext(Xn),{option:i,optionProps:o}=axe(t);return n({classNames:r,children:e,option:i,...o})}const Txe=({children:e,classNames:t,isActive:n,isDisabled:r,isInvalid:i,...o})=>{const a=[t.root];return n&&a.push(t.rootIsActive),r&&a.push(t.rootIsDisabled),i&&a.push(t.rootIsInvalid),M.createElement("div",{className:a.join(" "),...o},e)};function Cxe({children:e,onBlur:t,onFocus:n,render:r=Txe}){const{classNames:i,isDisabled:o,isInvalid:a}=I.useContext(Xn),{isActive:s,rootProps:l}=lxe({onBlur:t,onFocus:n});return r({children:e,classNames:i,isActive:s,isDisabled:o,isInvalid:a,...l})}const kxe=({classNames:e,tag:t,...n})=>M.createElement("button",{type:"button",className:e.tag,...n},M.createElement("span",{className:e.tagName},t.label));function jxe({render:e=kxe,index:t,title:n}){const{classNames:r}=I.useContext(Xn),{tag:i,tagProps:o}=cxe(t,n);return e({classNames:r,tag:i,...o})}function Pxe({children:e,label:t}){const{classNames:n}=I.useContext(Xn),{listRef:r}=fxe();return M.createElement("ul",{className:n.tagList,"aria-label":t,ref:r,role:"list"},e.map(i=>M.createElement("li",{className:n.tagListItem,key:i.key,role:"listitem"},i)))}const Axe={root:"react-tags",rootIsActive:"is-active",rootIsDisabled:"is-disabled",rootIsInvalid:"is-invalid",label:"react-tags__label",tagList:"react-tags__list",tagListItem:"react-tags__list-item",tag:"react-tags__tag",tagName:"react-tags__tag-name",comboBox:"react-tags__combobox",input:"react-tags__combobox-input",listBox:"react-tags__listbox",option:"react-tags__listbox-option",optionIsActive:"is-active",highlight:"react-tags__listbox-option-highlight"},Nxe=[zl.Enter];function Mxe({activateFirstOption:e=!1,allowBackspace:t=!0,allowNew:n=!1,allowResize:r=!0,ariaAddedText:i="Added tag %value%",ariaDescribedBy:o,ariaErrorMessage:a,ariaDeletedText:s="Removed tag %value%",classNames:l=Axe,collapseOnSelect:u=!1,deleteButtonText:f="Remove %value% from the list",delimiterKeys:d=Nxe,id:p="react-tags",isDisabled:m=!1,isInvalid:v=!1,labelText:g="Select tags",newOptionText:x="Add %value%",noOptionsText:b="No options found for %value%",onAdd:_,onBlur:w,onCollapse:O,onDelete:E,onExpand:T,onFocus:k,onInput:P,onShouldCollapse:D,onShouldExpand:N,onValidate:F,placeholderText:B="Add a tag",renderHighlight:Y,renderInput:H,renderLabel:Q,renderListBox:Z,renderOption:te,renderRoot:X,renderTag:z,selected:V=[],suggestions:W=[],suggestionsTransform:re=Qwe,tagListLabelText:q="Selected tags"},ee){const oe=I.useRef(null),le=I.useRef(null),fe=I.useRef(null),j=oxe({activateFirstOption:e,allowNew:n,collapseOnSelect:u,newOptionText:x,noOptionsText:b,onAdd:_,onDelete:E,onCollapse:O,onExpand:T,onInput:P,onShouldCollapse:D,onShouldExpand:N,onValidate:F,selected:V,suggestions:W,suggestionsTransform:re}),A=sxe({inputRef:le,managerRef:j});return ee&&(typeof ee=="function"?ee(A):ee.current=A),M.createElement(Xn.Provider,{value:{classNames:l,comboBoxRef:oe,id:p,inputRef:le,isDisabled:m,isInvalid:v,listBoxRef:fe,managerRef:j}},M.createElement(Cxe,{onBlur:w,onFocus:k,render:X},M.createElement(wxe,{render:Q},g),M.createElement(Pxe,{label:q},j.current.state.selected.map(($,J)=>M.createElement(jxe,{key:GE($),index:J,render:z,title:f}))),M.createElement(hxe,null,M.createElement(bxe,{allowBackspace:t,allowResize:r,ariaDescribedBy:o,ariaErrorMessage:a,delimiterKeys:d,placeholderText:B,render:H}),M.createElement(Oxe,{render:Z},j.current.state.options.map(($,J)=>M.createElement(Exe,{key:GE($),index:J,render:te},M.createElement(gxe,{option:$,query:j.current.state.value,render:Y}))))),M.createElement(pxe,{ariaAddedText:i,ariaDeletedText:s})))}const Rxe=M.forwardRef(Mxe),Dxe=/\s+/g,nH=e=>e.trim().toLowerCase().replace(Dxe,"-"),rH=({color:e})=>y.jsx("div",{style:{backgroundColor:e},className:"color-bullet"}),iH=({tag:e,colorGenerator:t})=>y.jsx(rH,{color:t.getColorForKey(e)});let C4=1;const oH="Tag not found",aH="Add tag",Lxe=e=>e!==oH,Ixe=e=>e===aH,k4=e=>(C4+=1,{label:e,value:`${e}${C4}`}),Fxe=e=>({tag:t,onClick:n})=>y.jsx(gw,{colorGenerator:e,text:t.label,className:"react-tags__tag",onClose:n}),Uxe=(e,t)=>({option:n,classNames:r,...i})=>{var o;const a=Lxe(n.label),s=Ixe(n.label);return y.jsx("div",{className:We(r.option,{[r.optionIsActive]:a&&n.active,"react-tags__listbox-option--not-selectable":!a}),...i,children:a?y.jsxs(y.Fragment,{children:[!s&&y.jsx(iH,{tag:`${n.label}`,colorGenerator:e}),s?y.jsxs("i",{children:['Add "',nH(((o=t.current)==null?void 0:o.input.value)??""),'"']}):n.label]}):y.jsx("i",{children:n.label})})},sH=({selectedTags:e,onChange:t,placeholder:n,tags:r,immutable:i=!1})=>{const{ColorGenerator:o}=en(sH),a=vl("shortUrlCreation"),s=(a==null?void 0:a.tagFilteringMode)??"startsWith",l=hl();return y.jsx(Rxe,{ref:l,selected:e.map(k4),suggestions:r.filter(u=>!e.includes(u)).map(k4),renderTag:Fxe(o),renderOption:Uxe(o,l),activateFirstOption:!0,allowNew:!i,newOptionText:aH,noOptionsText:oH,placeholderText:n??"Add tags to the URL",delimiterKeys:["Enter",","],suggestionsTransform:(u,f)=>{const d=u.toLowerCase().trim();return d.length<1?[]:[...f.filter(({label:p})=>s==="includes"?p.includes(d):p.startsWith(d))].slice(0,5)},onDelete:u=>{const f=[...e];f.splice(u,1),t(f)},onAdd:({label:u})=>t([...new Set([...e,...u.split(",").map(nH)])])})},$xe=tn(sH,["ColorGenerator"]),KE="shlink/tagDelete",Bxe={deleting:!1,deleted:!1,error:!1},lH=Mn(`${KE}/tagDeleted`),zxe=e=>{const t=pr(`${KE}/deleteTag`,async r=>{await e().deleteTags([r])}),{reducer:n}=Dn({name:KE,initialState:Bxe,reducers:{},extraReducers:r=>{r.addCase(t.pending,()=>({deleting:!0,deleted:!1,error:!1})),r.addCase(t.rejected,(i,{error:o})=>({deleting:!1,deleted:!1,error:!0,errorData:Qi(o)})),r.addCase(t.fulfilled,()=>({deleting:!1,deleted:!0,error:!1}))}});return{reducer:n,deleteTag:t}},vP="shlink/tagEdit",Vxe={editing:!1,edited:!1,error:!1},uH=Mn(`${vP}/tagEdited`),Hxe=(e,t)=>pr(`${vP}/editTag`,async({oldName:n,newName:r,color:i})=>(await e().editTag(n,r),t.setColorForKey(r,i),{oldName:n,newName:r,color:i})),Wxe=e=>Dn({name:vP,initialState:Vxe,reducers:{},extraReducers:t=>{t.addCase(e.pending,()=>({editing:!0,edited:!1,error:!1})),t.addCase(e.rejected,(n,{error:r})=>({editing:!1,edited:!1,error:!0,errorData:Qi(r)})),t.addCase(e.fulfilled,(n,{payload:r})=>{const{oldName:i,newName:o}=r;return{oldName:i,newName:o,editing:!1,edited:!0,error:!1}})}}),gP="shlink/tagsList",ZO={tags:[],filteredTags:[],stats:{},loading:!1,error:!1},j4=(e,t)=>n=>n===e?t:n,P4=(e,t)=>e.filter(n=>n!==t),Yxe=(e,t)=>e.reduce((n,[r,i])=>{if(!n[r])return n;const{bots:o,nonBots:a}=i,s=n[r];return{...n,[r]:{...s,visitsSummary:s.visitsSummary&&{total:s.visitsSummary.total+o+a,bots:s.visitsSummary.bots+o,nonBots:s.visitsSummary.nonBots+a},visitsCount:s.visitsCount+o+a}}},{...t}),Gxe=e=>Object.entries(e.reduce((t,{shortUrl:n,visit:r})=>(n==null||n.tags.forEach(i=>{t[i]||(t[i]={bots:0,nonBots:0}),r.potentialBot?t[i].bots+=1:t[i].nonBots+=1}),t),{})),qxe=e=>pr(`${gP}/listTags`,async()=>{const{tags:t,stats:n}=await e().tagsStats(),r=n.reduce((i,{tag:o,...a})=>(i[o]=a,i),{});return{tags:t,stats:r}}),cH=Mn(`${gP}/filterTags`),Kxe=(e,t)=>Dn({name:gP,initialState:ZO,reducers:{},extraReducers:n=>{n.addCase(cH,(r,{payload:i})=>({...r,filteredTags:r.tags.filter(o=>o.toLowerCase().match(i.toLowerCase()))})),n.addCase(e.pending,r=>({...r,loading:!0,error:!1})),n.addCase(e.rejected,(r,{error:i})=>({...ZO,error:!0,errorData:Qi(i)})),n.addCase(e.fulfilled,(r,{payload:i})=>({...ZO,stats:i.stats,tags:i.tags,filteredTags:i.tags})),n.addCase(lH,({tags:r,filteredTags:i,...o},{payload:a})=>({...o,tags:P4(r,a),filteredTags:P4(i,a)})),n.addCase(uH,({tags:r,filteredTags:i,stats:o,...a},{payload:s})=>({...a,stats:{...o,[s.newName]:o[s.oldName]},tags:r.map(j4(s.oldName,s.newName)).sort(),filteredTags:i.map(j4(s.oldName,s.newName)).sort()})),n.addCase(Sd,(r,{payload:i})=>({...r,stats:Yxe(Gxe(i.createdVisits),r.stats)})),n.addCase(t.fulfilled,({tags:r,...i},{payload:o})=>({...i,tags:r.concat(o.tags.filter(a=>!r.includes(a)))}))}}),Zxe={tag:"Tag",shortUrls:"Short URLs",visits:"Visits"},fH=Oo(({filterTags:e,tagsList:t})=>{var n,r;const{TagsTable:i}=en(fH),o=Zj(),[a,s]=I.useState(((n=o.tags)==null?void 0:n.defaultOrdering)??{}),l=I.useMemo(()=>{const f=t.filteredTags.map(d=>{var p,m,v;const g=t.stats[d],x=((p=o.visits)!=null&&p.excludeBots?(m=g==null?void 0:g.visitsSummary)==null?void 0:m.nonBots:(v=g==null?void 0:g.visitsSummary)==null?void 0:v.total)??(g==null?void 0:g.visitsCount)??0;return{tag:d,visits:x,shortUrls:(g==null?void 0:g.shortUrlsCount)??0}});return v9(f,a)},[a,(r=o.visits)==null?void 0:r.excludeBots,t.filteredTags,t.stats]),u=Mj();return t.loading?y.jsx(el,{loading:!0}):t.error?y.jsx(li,{type:"error",children:y.jsx(Ua,{errorData:t.errorData,fallbackMessage:"Error loading tags :("})}):y.jsxs(Nj,{value:u,children:[y.jsx(gv,{className:"mb-3",onChange:e}),y.jsx(Pr,{className:"mb-3",children:y.jsx("div",{className:"col-lg-6 offset-lg-6",children:y.jsx(yv,{items:Zxe,order:a,onChange:(f,d)=>s({field:f,dir:d})})})}),y.jsx(Rj,{type:"tags",className:"mb-3"}),y.jsx(i,{sortedTags:l,currentOrder:a,orderByColumn:f=>()=>{const d=aw(f,a.field,a.dir);s({field:d?f:void 0,dir:d})}})]})},()=>[Dr.visits]),Qxe=tn(fH,["TagsTable"]),yP=({pagesCount:e,currentPage:t,setCurrentPage:n,centered:r=!0})=>{if(e<2)return null;const i=o=>()=>!mm(o)&&n(o);return y.jsxs(uj,{listClassName:We("flex-wrap mb-0 simple-paginator",{"justify-content-center":r}),children:[y.jsx(cu,{disabled:t<=1,children:y.jsx(fu,{previous:!0,tag:"span",onClick:i(t-1)})}),WV(t,e).map((o,a)=>y.jsx(cu,{disabled:mm(o),active:t===o,children:y.jsx(fu,{role:"link",tag:"span",onClick:i(o),children:YV(o)})},GV(o,a))),y.jsx(cu,{disabled:t>=e,children:y.jsx(fu,{next:!0,tag:"span",onClick:i(t+1)})})]})},Xxe=20,dH=({sortedTags:e,orderByColumn:t,currentOrder:n})=>{const{TagsTableRow:r}=en(dH),i=I.useRef(!0),{page:o=1}=_d(),[a,s]=sve("page",Number(o)),l=nf(e,Xxe),u=l.length>1,f=l[a-1]??[];return I.useEffect(()=>{!i.current&&s(1),i.current=!1},[s,e]),I.useEffect(()=>{scrollTo(0,0)},[a]),y.jsxs(Qt,{bodyClassName:u?"pb-1":"",children:[y.jsxs("table",{className:"table table-hover responsive-table mb-0",children:[y.jsxs("thead",{className:"responsive-table__header",children:[y.jsxs("tr",{children:[y.jsxs("th",{className:"tags-table__header-cell",onClick:t("tag"),children:["Tag ",y.jsx(vh,{currentOrder:n,field:"tag"})]}),y.jsxs("th",{className:"tags-table__header-cell text-lg-end",onClick:t("shortUrls"),children:["Short URLs ",y.jsx(vh,{currentOrder:n,field:"shortUrls"})]}),y.jsxs("th",{className:"tags-table__header-cell text-lg-end",onClick:t("visits"),children:["Visits ",y.jsx(vh,{currentOrder:n,field:"visits"})]}),y.jsx("th",{className:"tags-table__header-cell",children:y.jsx("span",{className:"sr-only",children:"Options"})})]}),y.jsx("tr",{children:y.jsx("th",{"aria-hidden":!0,colSpan:4,className:"p-0 border-top-0"})})]}),y.jsxs("tbody",{children:[f.length===0&&y.jsx("tr",{children:y.jsx("td",{colSpan:4,className:"text-center",children:"No tags found"})}),f.map(d=>y.jsx(r,{tag:d},d.tag))]})]}),u&&y.jsx("div",{className:"sticky-card-paginator",children:y.jsx(yP,{pagesCount:l.length,currentPage:a,setCurrentPage:s})})]},a)},Jxe=tn(dH,["TagsTableRow"]),pH=({tag:e})=>{const{DeleteTagConfirmModal:t,EditTagModal:n,ColorGenerator:r}=en(pH),[i,o]=Cn(),[a,s]=Cn(),l=ml(),u=dw();return y.jsxs("tr",{className:"responsive-table__row",children:[y.jsxs("th",{className:"responsive-table__cell","data-th":"Tag",children:[y.jsx(iH,{tag:e.tag,colorGenerator:r})," ",e.tag]}),y.jsx("td",{className:"responsive-table__cell text-lg-end","data-th":"Short URLs",children:y.jsx($t,{to:`${l}/list-short-urls/1?tags=${encodeURIComponent(e.tag)}`,children:hn(e.shortUrls)})}),y.jsx("td",{className:"responsive-table__cell text-lg-end","data-th":"Visits",children:y.jsx($t,{to:`${l}/tag/${e.tag}/visits`,children:hn(e.visits)})}),y.jsx("td",{className:"responsive-table__cell text-lg-end",children:y.jsxs(ow,{children:[y.jsxs(Re,{onClick:s,children:[y.jsx(Ne,{icon:aee,fixedWidth:!0,className:"me-1"})," Edit"]}),y.jsxs(Re,{disabled:!u||!u.canAddItemWithName(e.tag),onClick:()=>u==null?void 0:u.addItemToCompare({name:e.tag,query:e.tag,style:r.stylesForKey(e.tag)}),children:[y.jsx(Ne,{icon:q_,fixedWidth:!0})," Compare visits"]}),y.jsx(Re,{divider:!0,tag:"hr"}),y.jsxs(Re,{className:"dropdown-item--danger",onClick:o,children:[y.jsx(Ne,{icon:wee,fixedWidth:!0,className:"me-1"})," Delete tag"]})]})}),y.jsx(n,{tag:e.tag,toggle:s,isOpen:a}),y.jsx(t,{tag:e.tag,toggle:o,isOpen:i})]})},eOe=tn(pH,["DeleteTagConfirmModal","EditTagModal","ColorGenerator"]),tOe=(e,t)=>{e.factory("TagsSelector",$xe),e.serviceFactory("DeleteTagConfirmModal",()=>Lwe),e.decorator("DeleteTagConfirmModal",t(["tagDelete"],["deleteTag","tagDeleted"])),e.factory("EditTagModal",Iwe),e.decorator("EditTagModal",t(["tagEdit"],["editTag","tagEdited"])),e.factory("TagsTableRow",eOe),e.factory("TagsTable",Jxe),e.factory("TagsList",Qxe),e.decorator("TagsList",t(["tagsList","mercureInfo"],["filterTags","createNewVisits","loadMercureInfo"])),e.serviceFactory("tagEditReducerCreator",Wxe,"editTag"),e.serviceFactory("tagEditReducer",n=>n.reducer,"tagEditReducerCreator"),e.serviceFactory("tagDeleteReducerCreator",zxe,"apiClientFactory"),e.serviceFactory("tagDeleteReducer",n=>n.reducer,"tagDeleteReducerCreator"),e.serviceFactory("tagsListReducerCreator",Kxe,"listTags","createShortUrl"),e.serviceFactory("tagsListReducer",n=>n.reducer,"tagsListReducerCreator"),e.serviceFactory("listTags",qxe,"apiClientFactory"),e.serviceFactory("filterTags",()=>cH),e.serviceFactory("deleteTag",n=>n.deleteTag,"tagDeleteReducerCreator"),e.serviceFactory("tagDeleted",()=>lH),e.serviceFactory("editTag",Hxe,"apiClientFactory","ColorGenerator"),e.serviceFactory("tagEdited",()=>uH)};function QO(e){return e==null?"":`${e}`}function nOe(e={}){const{separator:t,decimals:n}=e;return t?n?r=>r.toFixed(n).replace(".",t):r=>`${r}`.replace(".",t):n?r=>r.toFixed(n):r=>`${r}`}function bP(e={}){const t=typeof e.quote=="string"?e.quote:'"',n=typeof e.escapedQuote=="string"?e.escapedQuote:`${t}${t}`;if(!t||t===n)return i=>i;const r=new RegExp(t,"g");return i=>(i.includes(t)&&(i=i.replace(r,n)),`${t}${i}${t}`)}function rOe(e={stringFormatter:bP()}){return t=>e.stringFormatter(t.toString().slice(7,-1))}function iOe(e={stringFormatter:bP()}){return t=>{if(t===null)return"";let n=JSON.stringify(t);return n===void 0?"":(n[0]==='"'&&(n=n.replace(/^"(.+)"$/,"$1")),e.stringFormatter(n))}}const oOe=RegExp(`[^.[\\]]+|\\[(?:([^"'][^[]*)|(["'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))`,"g");function aOe(e){var t,n,r;const i=[];let o;for(;o=oOe.exec(e);)i.push((r=(t=o[3])!==null&&t!==void 0?t:(n=o[1])===null||n===void 0?void 0:n.trim())!==null&&r!==void 0?r:o[0]);return i}function A4(e,t,n){if(t in e){const o=e[t];return o===void 0?n:o}const r=Array.isArray(t)?t:aOe(t);let i=e;for(const o of r)if(i=i==null?void 0:i[o],i===void 0)return n;return i}function hH(e,t){try{return Array.isArray(t)?e.push(...t):e.push(t),e}catch{return e.concat(t)}}function ZE(e,t){let n=!0;return e.reduce((r,i)=>(i==null&&(i=""),n?(n=!1,`${i}`):`${r}${t}${i}`),"")}var N4;(function(e){e.header="header",e.undefined="undefined",e.boolean="boolean",e.number="number",e.bigint="bigint",e.string="string",e.symbol="symbol",e.function="function",e.object="object"})(N4||(N4={}));class sOe{constructor(t){this.opts=this.preprocessOpts(t)}preprocessOpts(t){const n=Object.assign({},t);n.fields&&(n.fields=this.preprocessFieldsInfo(n.fields,n.defaultValue)),n.transforms=n.transforms||[];const r=n.formatters&&n.formatters.string||bP(),i=iOe({stringFormatter:r}),o={header:r,undefined:QO,boolean:QO,number:nOe(),bigint:QO,string:r,symbol:rOe({stringFormatter:r}),function:i,object:i};return n.formatters=Object.assign(Object.assign({},o),n.formatters),n.delimiter=n.delimiter||",",n.eol=n.eol||` +`,n.header=n.header!==!1,n.includeEmptyRows=n.includeEmptyRows||!1,n.withBOM=n.withBOM||!1,n}preprocessFieldsInfo(t,n){return t.map(r=>{if(typeof r=="string")return{label:r,value:i=>A4(i,r,n)};if(typeof r=="object"){const i="default"in r?r.default:n;if(typeof r.value=="string"){const o=r.value;return{label:r.label||r.value,value:a=>A4(a,o,i)}}if(typeof r.value=="function"){const o=r.label||r.value.name||"",a={label:o,default:i},s=r.value;return{label:o,value(l){const u=s(l,a);return u===void 0?i:u}}}}throw new Error("Invalid field info option. "+JSON.stringify(r))})}getHeader(){return ZE(this.opts.fields.map(t=>this.opts.formatters.header(t.label)),this.opts.delimiter)}preprocessRow(t){return this.opts.transforms.reduce((n,r)=>n.map(i=>r(i)).reduce(hH,[]),[t])}processRow(t){if(!t)return;const n=this.opts.fields.map(r=>this.processCell(t,r));if(!(!this.opts.includeEmptyRows&&n.every(r=>r==="")))return ZE(n,this.opts.delimiter)}processCell(t,n){return this.processValue(n.value(t))}processValue(t){const n=this.opts.formatters[typeof t];return n(t)}}class lOe extends sOe{constructor(t){super(t)}parse(t){const n=this.preprocessData(t);this.opts.fields=this.opts.fields||this.preprocessFieldsInfo(n.reduce((o,a)=>(Object.keys(a).forEach(s=>{o.includes(s)||o.push(s)}),o),[]),this.opts.defaultValue);const r=this.opts.header?this.getHeader():"",i=this.processData(n);return(this.opts.withBOM?"\uFEFF":"")+r+(r&&i?this.opts.eol:"")+i}preprocessData(t){const n=Array.isArray(t)?t:[t];if(!this.opts.fields){if(t==null||n.length===0)throw new Error('Data should not be empty or the "fields" option should be included');if(typeof n[0]!="object")throw new Error('Data items should be objects or the "fields" option should be included')}return this.opts.transforms.length===0?n:n.map(r=>this.preprocessRow(r)).reduce(hH,[])}processData(t){return ZE(t.map(n=>this.processRow(n)).filter(n=>n),this.opts.eol)}}var Un;(function(e){e[e.BACKSPACE=8]="BACKSPACE",e[e.FORM_FEED=12]="FORM_FEED",e[e.NEWLINE=10]="NEWLINE",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.TAB=9]="TAB",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.NUMBER_SIGN=35]="NUMBER_SIGN",e[e.DOLLAR_SIGN=36]="DOLLAR_SIGN",e[e.PERCENT_SIGN=37]="PERCENT_SIGN",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.LEFT_PARENTHESIS=40]="LEFT_PARENTHESIS",e[e.RIGHT_PARENTHESIS=41]="RIGHT_PARENTHESIS",e[e.ASTERISK=42]="ASTERISK",e[e.PLUS_SIGN=43]="PLUS_SIGN",e[e.COMMA=44]="COMMA",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.FULL_STOP=46]="FULL_STOP",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_ZERO=48]="DIGIT_ZERO",e[e.DIGIT_ONE=49]="DIGIT_ONE",e[e.DIGIT_TWO=50]="DIGIT_TWO",e[e.DIGIT_THREE=51]="DIGIT_THREE",e[e.DIGIT_FOUR=52]="DIGIT_FOUR",e[e.DIGIT_FIVE=53]="DIGIT_FIVE",e[e.DIGIT_SIX=54]="DIGIT_SIX",e[e.DIGIT_SEVEN=55]="DIGIT_SEVEN",e[e.DIGIT_EIGHT=56]="DIGIT_EIGHT",e[e.DIGIT_NINE=57]="DIGIT_NINE",e[e.COLON=58]="COLON",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.COMMERCIAL_AT=64]="COMMERCIAL_AT",e[e.LATIN_CAPITAL_LETTER_A=65]="LATIN_CAPITAL_LETTER_A",e[e.LATIN_CAPITAL_LETTER_B=66]="LATIN_CAPITAL_LETTER_B",e[e.LATIN_CAPITAL_LETTER_C=67]="LATIN_CAPITAL_LETTER_C",e[e.LATIN_CAPITAL_LETTER_D=68]="LATIN_CAPITAL_LETTER_D",e[e.LATIN_CAPITAL_LETTER_E=69]="LATIN_CAPITAL_LETTER_E",e[e.LATIN_CAPITAL_LETTER_F=70]="LATIN_CAPITAL_LETTER_F",e[e.LATIN_CAPITAL_LETTER_G=71]="LATIN_CAPITAL_LETTER_G",e[e.LATIN_CAPITAL_LETTER_H=72]="LATIN_CAPITAL_LETTER_H",e[e.LATIN_CAPITAL_LETTER_I=73]="LATIN_CAPITAL_LETTER_I",e[e.LATIN_CAPITAL_LETTER_J=74]="LATIN_CAPITAL_LETTER_J",e[e.LATIN_CAPITAL_LETTER_K=75]="LATIN_CAPITAL_LETTER_K",e[e.LATIN_CAPITAL_LETTER_L=76]="LATIN_CAPITAL_LETTER_L",e[e.LATIN_CAPITAL_LETTER_M=77]="LATIN_CAPITAL_LETTER_M",e[e.LATIN_CAPITAL_LETTER_N=78]="LATIN_CAPITAL_LETTER_N",e[e.LATIN_CAPITAL_LETTER_O=79]="LATIN_CAPITAL_LETTER_O",e[e.LATIN_CAPITAL_LETTER_P=80]="LATIN_CAPITAL_LETTER_P",e[e.LATIN_CAPITAL_LETTER_Q=81]="LATIN_CAPITAL_LETTER_Q",e[e.LATIN_CAPITAL_LETTER_R=82]="LATIN_CAPITAL_LETTER_R",e[e.LATIN_CAPITAL_LETTER_S=83]="LATIN_CAPITAL_LETTER_S",e[e.LATIN_CAPITAL_LETTER_T=84]="LATIN_CAPITAL_LETTER_T",e[e.LATIN_CAPITAL_LETTER_U=85]="LATIN_CAPITAL_LETTER_U",e[e.LATIN_CAPITAL_LETTER_V=86]="LATIN_CAPITAL_LETTER_V",e[e.LATIN_CAPITAL_LETTER_W=87]="LATIN_CAPITAL_LETTER_W",e[e.LATIN_CAPITAL_LETTER_X=88]="LATIN_CAPITAL_LETTER_X",e[e.LATIN_CAPITAL_LETTER_Y=89]="LATIN_CAPITAL_LETTER_Y",e[e.LATIN_CAPITAL_LETTER_Z=90]="LATIN_CAPITAL_LETTER_Z",e[e.LEFT_SQUARE_BRACKET=91]="LEFT_SQUARE_BRACKET",e[e.REVERSE_SOLIDUS=92]="REVERSE_SOLIDUS",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.CIRCUMFLEX_ACCENT=94]="CIRCUMFLEX_ACCENT",e[e.LOW_LINE=95]="LOW_LINE",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_LETTER_A=97]="LATIN_SMALL_LETTER_A",e[e.LATIN_SMALL_LETTER_B=98]="LATIN_SMALL_LETTER_B",e[e.LATIN_SMALL_LETTER_C=99]="LATIN_SMALL_LETTER_C",e[e.LATIN_SMALL_LETTER_D=100]="LATIN_SMALL_LETTER_D",e[e.LATIN_SMALL_LETTER_E=101]="LATIN_SMALL_LETTER_E",e[e.LATIN_SMALL_LETTER_F=102]="LATIN_SMALL_LETTER_F",e[e.LATIN_SMALL_LETTER_G=103]="LATIN_SMALL_LETTER_G",e[e.LATIN_SMALL_LETTER_H=104]="LATIN_SMALL_LETTER_H",e[e.LATIN_SMALL_LETTER_I=105]="LATIN_SMALL_LETTER_I",e[e.LATIN_SMALL_LETTER_J=106]="LATIN_SMALL_LETTER_J",e[e.LATIN_SMALL_LETTER_K=107]="LATIN_SMALL_LETTER_K",e[e.LATIN_SMALL_LETTER_L=108]="LATIN_SMALL_LETTER_L",e[e.LATIN_SMALL_LETTER_M=109]="LATIN_SMALL_LETTER_M",e[e.LATIN_SMALL_LETTER_N=110]="LATIN_SMALL_LETTER_N",e[e.LATIN_SMALL_LETTER_O=111]="LATIN_SMALL_LETTER_O",e[e.LATIN_SMALL_LETTER_P=112]="LATIN_SMALL_LETTER_P",e[e.LATIN_SMALL_LETTER_Q=113]="LATIN_SMALL_LETTER_Q",e[e.LATIN_SMALL_LETTER_R=114]="LATIN_SMALL_LETTER_R",e[e.LATIN_SMALL_LETTER_S=115]="LATIN_SMALL_LETTER_S",e[e.LATIN_SMALL_LETTER_T=116]="LATIN_SMALL_LETTER_T",e[e.LATIN_SMALL_LETTER_U=117]="LATIN_SMALL_LETTER_U",e[e.LATIN_SMALL_LETTER_V=118]="LATIN_SMALL_LETTER_V",e[e.LATIN_SMALL_LETTER_W=119]="LATIN_SMALL_LETTER_W",e[e.LATIN_SMALL_LETTER_X=120]="LATIN_SMALL_LETTER_X",e[e.LATIN_SMALL_LETTER_Y=121]="LATIN_SMALL_LETTER_Y",e[e.LATIN_SMALL_LETTER_Z=122]="LATIN_SMALL_LETTER_Z",e[e.LEFT_CURLY_BRACKET=123]="LEFT_CURLY_BRACKET",e[e.VERTICAL_LINE=124]="VERTICAL_LINE",e[e.RIGHT_CURLY_BRACKET=125]="RIGHT_CURLY_BRACKET",e[e.TILDE=126]="TILDE"})(Un||(Un={}));Un.QUOTATION_MARK+"",Un.QUOTATION_MARK,Un.REVERSE_SOLIDUS+"",Un.REVERSE_SOLIDUS,Un.SOLIDUS+"",Un.SOLIDUS,Un.LATIN_SMALL_LETTER_B+"",Un.BACKSPACE,Un.LATIN_SMALL_LETTER_F+"",Un.FORM_FEED,Un.LATIN_SMALL_LETTER_N+"",Un.NEWLINE,Un.LATIN_SMALL_LETTER_R+"",Un.CARRIAGE_RETURN,Un.LATIN_SMALL_LETTER_T+"",Un.TAB;var M4;(function(e){e[e.LEFT_BRACE=0]="LEFT_BRACE",e[e.RIGHT_BRACE=1]="RIGHT_BRACE",e[e.LEFT_BRACKET=2]="LEFT_BRACKET",e[e.RIGHT_BRACKET=3]="RIGHT_BRACKET",e[e.COLON=4]="COLON",e[e.COMMA=5]="COMMA",e[e.TRUE=6]="TRUE",e[e.FALSE=7]="FALSE",e[e.NULL=8]="NULL",e[e.STRING=9]="STRING",e[e.NUMBER=10]="NUMBER",e[e.SEPARATOR=11]="SEPARATOR"})(M4||(M4={}));var R4;(function(e){e[e.START=0]="START",e[e.ENDED=1]="ENDED",e[e.ERROR=2]="ERROR",e[e.TRUE1=3]="TRUE1",e[e.TRUE2=4]="TRUE2",e[e.TRUE3=5]="TRUE3",e[e.FALSE1=6]="FALSE1",e[e.FALSE2=7]="FALSE2",e[e.FALSE3=8]="FALSE3",e[e.FALSE4=9]="FALSE4",e[e.NULL1=10]="NULL1",e[e.NULL2=11]="NULL2",e[e.NULL3=12]="NULL3",e[e.STRING_DEFAULT=13]="STRING_DEFAULT",e[e.STRING_AFTER_BACKSLASH=14]="STRING_AFTER_BACKSLASH",e[e.STRING_UNICODE_DIGIT_1=15]="STRING_UNICODE_DIGIT_1",e[e.STRING_UNICODE_DIGIT_2=16]="STRING_UNICODE_DIGIT_2",e[e.STRING_UNICODE_DIGIT_3=17]="STRING_UNICODE_DIGIT_3",e[e.STRING_UNICODE_DIGIT_4=18]="STRING_UNICODE_DIGIT_4",e[e.STRING_INCOMPLETE_CHAR=19]="STRING_INCOMPLETE_CHAR",e[e.NUMBER_AFTER_INITIAL_MINUS=20]="NUMBER_AFTER_INITIAL_MINUS",e[e.NUMBER_AFTER_INITIAL_ZERO=21]="NUMBER_AFTER_INITIAL_ZERO",e[e.NUMBER_AFTER_INITIAL_NON_ZERO=22]="NUMBER_AFTER_INITIAL_NON_ZERO",e[e.NUMBER_AFTER_FULL_STOP=23]="NUMBER_AFTER_FULL_STOP",e[e.NUMBER_AFTER_DECIMAL=24]="NUMBER_AFTER_DECIMAL",e[e.NUMBER_AFTER_E=25]="NUMBER_AFTER_E",e[e.NUMBER_AFTER_E_AND_SIGN=26]="NUMBER_AFTER_E_AND_SIGN",e[e.NUMBER_AFTER_E_AND_DIGIT=27]="NUMBER_AFTER_E_AND_DIGIT",e[e.SEPARATOR=28]="SEPARATOR"})(R4||(R4={}));var D4;(function(e){e[e.OBJECT=0]="OBJECT",e[e.ARRAY=1]="ARRAY"})(D4||(D4={}));var L4;(function(e){e[e.VALUE=0]="VALUE",e[e.KEY=1]="KEY",e[e.COLON=2]="COLON",e[e.COMMA=3]="COMMA",e[e.ENDED=4]="ENDED",e[e.ERROR=5]="ERROR",e[e.SEPARATOR=6]="SEPARATOR"})(L4||(L4={}));const uOe=new lOe,cOe=e=>uOe.parse(e),fOe=6,I4="0123456789ABCDEF",dOe=128,{floor:pOe,random:hOe,sqrt:mOe,round:vOe}=Math,gOe=()=>`#${Yj(fOe,()=>I4[pOe(hOe()*I4.length)]).join("")}`,F4=e=>e.toLowerCase().trim(),yOe=e=>(e.match(/../g)??[]).map(t=>parseInt(t,16)||0),bOe=(e=0,t=0,n=0)=>vOe(mOe(.299*e**2+.587*t**2+.114*n**2));class _Oe{constructor(t){zs(this,"colors"),zs(this,"lights");var n;this.storage=t,this.colors=((n=this.storage)==null?void 0:n.getTagColors())??{},this.lights={}}getColorForKey(t){const n=F4(t);return this.colors[n]||this.setColorForKey(n,gOe())}setColorForKey(t,n){var r;const i=F4(t);return this.colors[i]=n,(r=this.storage)==null||r.storeTagColors(this.colors),n}stylesForKey(t){const n=this.getColorForKey(t);return{backgroundColor:n,color:this.isLightColor(n)?"#222":"#fff"}}isLightColor(t){const n=t.substring(1);if(this.lights[n]===void 0){const r=yOe(n);this.lights[n]=bOe(...r)>=dOe}return this.lights[n]}}const mH=({document:e},t,n)=>{const r=e.createElement("a");r.setAttribute("href",t),r.setAttribute("download",n),r.style.visibility="hidden",e.body.appendChild(r),r.click(),e.body.removeChild(r)},wOe=(e,t,n)=>{const r=new Blob([t],{type:"text/csv;charset=utf-8;"}),i=URL.createObjectURL(r);mH(e,i,n)};class xOe{constructor(t,n){this.fetch=t,this.window=n}async saveImage(t,n){const r=await this.fetch(t).then(o=>o.blob()),i=URL.createObjectURL(r);mH(this.window,i,n)}}class OOe{constructor(t,n){zs(this,"exportVisits",(r,i)=>{i.length&&this.exportCsv(r,i)}),zs(this,"exportShortUrls",r=>{r.length&&this.exportCsv("short_urls.csv",r)}),zs(this,"exportCsv",(r,i)=>{const o=this.jsonToCsv(i);wOe(this.window,o,r)}),this.window=t,this.jsonToCsv=n}}function SOe(e){e.constant("window",window),e.constant("fetch",window.fetch.bind(window)),e.service("ImageDownloader",xOe,"fetch","window"),e.service("ColorGenerator",_Oe,"TagColorsStorage"),e.constant("jsonToCsv",cOe),e.service("ReportExporter",OOe,"window","jsonToCsv"),e.serviceFactory("useTimeoutToggle",()=>d9)}const Tv=({visits:e,shortUrl:t,children:n,title:r})=>y.jsx("header",{children:y.jsxs(di,{body:!0,children:[y.jsxs("h2",{className:"d-flex justify-content-between align-items-center mb-0",children:[y.jsx(Qj,{}),y.jsx("span",{className:"text-center d-none d-sm-block",children:y.jsx("small",{children:r})}),y.jsxs("span",{className:"badge badge-main ms-3",children:["Visits:"," ",y.jsx(Yz,{visitsCount:e.length,shortUrl:t})]})]}),y.jsx("h3",{className:"text-center d-block d-sm-none mb-0 mt-3",children:y.jsx("small",{children:r})}),n&&y.jsx("div",{className:"mt-md-2",children:n})]})}),vH=({title:e,footer:t,children:n})=>y.jsxs(di,{role:"document",children:[y.jsx(Sf,{className:"chart-card__header",children:e}),y.jsx(Of,{children:n}),t&&y.jsx(DB,{className:"chart-card__footer--sticky",children:t})]});var EOe=Array.isArray,ei=EOe,TOe=typeof $c=="object"&&$c&&$c.Object===Object&&$c,gH=TOe,COe=gH,kOe=typeof self=="object"&&self&&self.Object===Object&&self,jOe=COe||kOe||Function("return this")(),sa=jOe,POe=sa,AOe=POe.Symbol,Cv=AOe,U4=Cv,yH=Object.prototype,NOe=yH.hasOwnProperty,MOe=yH.toString,xp=U4?U4.toStringTag:void 0;function ROe(e){var t=NOe.call(e,xp),n=e[xp];try{e[xp]=void 0;var r=!0}catch{}var i=MOe.call(e);return r&&(t?e[xp]=n:delete e[xp]),i}var DOe=ROe,LOe=Object.prototype,IOe=LOe.toString;function FOe(e){return IOe.call(e)}var UOe=FOe,$4=Cv,$Oe=DOe,BOe=UOe,zOe="[object Null]",VOe="[object Undefined]",B4=$4?$4.toStringTag:void 0;function HOe(e){return e==null?e===void 0?VOe:zOe:B4&&B4 in Object(e)?$Oe(e):BOe(e)}var Xa=HOe;function WOe(e){return e!=null&&typeof e=="object"}var Ja=WOe,YOe=Xa,GOe=Ja,qOe="[object Symbol]";function KOe(e){return typeof e=="symbol"||GOe(e)&&YOe(e)==qOe}var Td=KOe,ZOe=ei,QOe=Td,XOe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,JOe=/^\w*$/;function eSe(e,t){if(ZOe(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||QOe(e)?!0:JOe.test(e)||!XOe.test(e)||t!=null&&e in Object(t)}var _P=eSe;function tSe(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var yl=tSe;const Cd=Et(yl);var nSe=Xa,rSe=yl,iSe="[object AsyncFunction]",oSe="[object Function]",aSe="[object GeneratorFunction]",sSe="[object Proxy]";function lSe(e){if(!rSe(e))return!1;var t=nSe(e);return t==oSe||t==aSe||t==iSe||t==sSe}var wP=lSe;const Xe=Et(wP);var uSe=sa,cSe=uSe["__core-js_shared__"],fSe=cSe,XO=fSe,z4=function(){var e=/[^.]+$/.exec(XO&&XO.keys&&XO.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function dSe(e){return!!z4&&z4 in e}var pSe=dSe,hSe=Function.prototype,mSe=hSe.toString;function vSe(e){if(e!=null){try{return mSe.call(e)}catch{}try{return e+""}catch{}}return""}var bH=vSe,gSe=wP,ySe=pSe,bSe=yl,_Se=bH,wSe=/[\\^$.*+?()[\]{}|]/g,xSe=/^\[object .+?Constructor\]$/,OSe=Function.prototype,SSe=Object.prototype,ESe=OSe.toString,TSe=SSe.hasOwnProperty,CSe=RegExp("^"+ESe.call(TSe).replace(wSe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function kSe(e){if(!bSe(e)||ySe(e))return!1;var t=gSe(e)?CSe:xSe;return t.test(_Se(e))}var jSe=kSe;function PSe(e,t){return e==null?void 0:e[t]}var ASe=PSe,NSe=jSe,MSe=ASe;function RSe(e,t){var n=MSe(e,t);return NSe(n)?n:void 0}var zu=RSe,DSe=zu,LSe=DSe(Object,"create"),Sw=LSe,V4=Sw;function ISe(){this.__data__=V4?V4(null):{},this.size=0}var FSe=ISe;function USe(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var $Se=USe,BSe=Sw,zSe="__lodash_hash_undefined__",VSe=Object.prototype,HSe=VSe.hasOwnProperty;function WSe(e){var t=this.__data__;if(BSe){var n=t[e];return n===zSe?void 0:n}return HSe.call(t,e)?t[e]:void 0}var YSe=WSe,GSe=Sw,qSe=Object.prototype,KSe=qSe.hasOwnProperty;function ZSe(e){var t=this.__data__;return GSe?t[e]!==void 0:KSe.call(t,e)}var QSe=ZSe,XSe=Sw,JSe="__lodash_hash_undefined__";function e2e(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=XSe&&t===void 0?JSe:t,this}var t2e=e2e,n2e=FSe,r2e=$Se,i2e=YSe,o2e=QSe,a2e=t2e;function kd(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t-1}var O2e=x2e,S2e=Ew;function E2e(e,t){var n=this.__data__,r=S2e(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var T2e=E2e,C2e=u2e,k2e=g2e,j2e=_2e,P2e=O2e,A2e=T2e;function jd(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t0?1:-1},nu=function(e){return kv(e)&&e.indexOf("%")===e.length-1},je=function(e){return Q1e(e)&&!Ad(e)},Nn=function(e){return je(e)||kv(e)},tEe=0,bl=function(e){var t=++tEe;return"".concat(e||"").concat(t)},Vr=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!je(e)&&!kv(e))return n;var i;if(nu(e)){var o=e.indexOf("%");i=t*parseFloat(e.slice(0,o))/100}else i=+e;return Ad(i)&&(i=n),r&&i>t&&(i=t),i},cs=function(e){if(!e)return null;var t=Object.keys(e);return t&&t.length?e[t[0]]:null},nEe=function(e){if(!Array.isArray(e))return!1;for(var t=e.length,n={},r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function uEe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}function JE(e){"@babel/helpers - typeof";return JE=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},JE(e)}var X4={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},Ca=function(e){return typeof e=="string"?e:e?e.displayName||e.name||"Component":""},J4=null,JO=null,jP=function e(t){if(t===J4&&Array.isArray(JO))return JO;var n=[];return I.Children.forEach(t,function(r){Ze(r)||(QE.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),JO=n,J4=t,n};function Lr(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(i){return Ca(i)}):r=[Ca(t)],jP(e).forEach(function(i){var o=ui(i,"type.displayName")||ui(i,"type.name");r.indexOf(o)!==-1&&n.push(i)}),n}function Uo(e,t){var n=Lr(e,t);return n&&n[0]}var eI=function(e){if(!e||!e.props)return!1;var t=e.props,n=t.width,r=t.height;return!(!je(n)||n<=0||!je(r)||r<=0)},cEe=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],fEe=function(e){return e&&e.type&&kv(e.type)&&cEe.indexOf(e.type)>=0},CH=function(e){return e&&JE(e)==="object"&&"cx"in e&&"cy"in e&&"r"in e},dEe=function(e,t,n,r){var i,o=(i=Z4==null?void 0:Z4[r])!==null&&i!==void 0?i:[];return!Xe(e)&&(r&&o.includes(t)||oEe.includes(t))||n&&kP.includes(t)},Ve=function(e,t,n){if(!e||typeof e=="function"||typeof e=="boolean")return null;var r=e;if(I.isValidElement(e)&&(r=e.props),!Cd(r))return null;var i={};return Object.keys(r).forEach(function(o){var a;dEe((a=r)===null||a===void 0?void 0:a[o],o,t,n)&&(i[o]=r[o])}),i},kH=function e(t,n){if(t===n)return!0;var r=I.Children.count(t);if(r!==I.Children.count(n))return!1;if(r===0)return!0;if(r===1)return tI(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function gEe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}function tT(e){var t=e.children,n=e.width,r=e.height,i=e.viewBox,o=e.className,a=e.style,s=e.title,l=e.desc,u=vEe(e,mEe),f=i||{width:n,height:r,x:0,y:0},d=We("recharts-surface",o);return M.createElement("svg",eT({},Ve(u,!0,"svg"),{className:d,width:n,height:r,style:a,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),M.createElement("title",null,s),M.createElement("desc",null,l),t)}var yEe=["children","className"];function nT(){return nT=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function _Ee(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}var nt=M.forwardRef(function(e,t){var n=e.children,r=e.className,i=bEe(e,yEe),o=We("recharts-layer",r);return M.createElement("g",nT({className:o},Ve(i,!0),{ref:t}),n)}),ka=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;ii?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r=r?e:OEe(e,t,n)}var EEe=SEe,TEe="\\ud800-\\udfff",CEe="\\u0300-\\u036f",kEe="\\ufe20-\\ufe2f",jEe="\\u20d0-\\u20ff",PEe=CEe+kEe+jEe,AEe="\\ufe0e\\ufe0f",NEe="\\u200d",MEe=RegExp("["+NEe+TEe+PEe+AEe+"]");function REe(e){return MEe.test(e)}var jH=REe;function DEe(e){return e.split("")}var LEe=DEe,PH="\\ud800-\\udfff",IEe="\\u0300-\\u036f",FEe="\\ufe20-\\ufe2f",UEe="\\u20d0-\\u20ff",$Ee=IEe+FEe+UEe,BEe="\\ufe0e\\ufe0f",zEe="["+PH+"]",rT="["+$Ee+"]",iT="\\ud83c[\\udffb-\\udfff]",VEe="(?:"+rT+"|"+iT+")",AH="[^"+PH+"]",NH="(?:\\ud83c[\\udde6-\\uddff]){2}",MH="[\\ud800-\\udbff][\\udc00-\\udfff]",HEe="\\u200d",RH=VEe+"?",DH="["+BEe+"]?",WEe="(?:"+HEe+"(?:"+[AH,NH,MH].join("|")+")"+DH+RH+")*",YEe=DH+RH+WEe,GEe="(?:"+[AH+rT+"?",rT,NH,MH,zEe].join("|")+")",qEe=RegExp(iT+"(?="+iT+")|"+GEe+YEe,"g");function KEe(e){return e.match(qEe)||[]}var ZEe=KEe,QEe=LEe,XEe=jH,JEe=ZEe;function eTe(e){return XEe(e)?JEe(e):QEe(e)}var tTe=eTe,nTe=EEe,rTe=jH,iTe=tTe,oTe=xH;function aTe(e){return function(t){t=oTe(t);var n=rTe(t)?iTe(t):void 0,r=n?n[0]:t.charAt(0),i=n?nTe(n,1).join(""):t.slice(1);return r[e]()+i}}var sTe=aTe,lTe=sTe,uTe=lTe("toUpperCase"),cTe=uTe;const jw=Et(cTe);function Vt(e){return function(){return e}}const LH=Math.cos,Cb=Math.sin,So=Math.sqrt,kb=Math.PI,Pw=2*kb,oT=Math.PI,aT=2*oT,Vl=1e-6,fTe=aT-Vl;function IH(e){this._+=e[0];for(let t=1,n=e.length;t=0))throw new Error(`invalid digits: ${e}`);if(t>15)return IH;const n=10**t;return function(r){this._+=r[0];for(let i=1,o=r.length;iVl)if(!(Math.abs(d*l-u*f)>Vl)||!o)this._append`L${this._x1=t},${this._y1=n}`;else{let m=r-a,v=i-s,g=l*l+u*u,x=m*m+v*v,b=Math.sqrt(g),_=Math.sqrt(p),w=o*Math.tan((oT-Math.acos((g+p-x)/(2*b*_)))/2),O=w/_,E=w/b;Math.abs(O-1)>Vl&&this._append`L${t+O*f},${n+O*d}`,this._append`A${o},${o},0,0,${+(d*m>f*v)},${this._x1=t+E*l},${this._y1=n+E*u}`}}arc(t,n,r,i,o,a){if(t=+t,n=+n,r=+r,a=!!a,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(i),l=r*Math.sin(i),u=t+s,f=n+l,d=1^a,p=a?i-o:o-i;this._x1===null?this._append`M${u},${f}`:(Math.abs(this._x1-u)>Vl||Math.abs(this._y1-f)>Vl)&&this._append`L${u},${f}`,r&&(p<0&&(p=p%aT+aT),p>fTe?this._append`A${r},${r},0,1,${d},${t-s},${n-l}A${r},${r},0,1,${d},${this._x1=u},${this._y1=f}`:p>Vl&&this._append`A${r},${r},0,${+(p>=oT)},${d},${this._x1=t+r*Math.cos(o)},${this._y1=n+r*Math.sin(o)}`)}rect(t,n,r,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}}function PP(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new pTe(t)}function AP(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function FH(e){this._context=e}FH.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function Aw(e){return new FH(e)}function UH(e){return e[0]}function $H(e){return e[1]}function BH(e,t){var n=Vt(!0),r=null,i=Aw,o=null,a=PP(s);e=typeof e=="function"?e:e===void 0?UH:Vt(e),t=typeof t=="function"?t:t===void 0?$H:Vt(t);function s(l){var u,f=(l=AP(l)).length,d,p=!1,m;for(r==null&&(o=i(m=a())),u=0;u<=f;++u)!(u=m;--v)s.point(w[v],O[v]);s.lineEnd(),s.areaEnd()}b&&(w[p]=+e(x,p,d),O[p]=+t(x,p,d),s.point(r?+r(x,p,d):w[p],n?+n(x,p,d):O[p]))}if(_)return s=null,_+""||null}function f(){return BH().defined(i).curve(a).context(o)}return u.x=function(d){return arguments.length?(e=typeof d=="function"?d:Vt(+d),r=null,u):e},u.x0=function(d){return arguments.length?(e=typeof d=="function"?d:Vt(+d),u):e},u.x1=function(d){return arguments.length?(r=d==null?null:typeof d=="function"?d:Vt(+d),u):r},u.y=function(d){return arguments.length?(t=typeof d=="function"?d:Vt(+d),n=null,u):t},u.y0=function(d){return arguments.length?(t=typeof d=="function"?d:Vt(+d),u):t},u.y1=function(d){return arguments.length?(n=d==null?null:typeof d=="function"?d:Vt(+d),u):n},u.lineX0=u.lineY0=function(){return f().x(e).y(t)},u.lineY1=function(){return f().x(e).y(n)},u.lineX1=function(){return f().x(r).y(t)},u.defined=function(d){return arguments.length?(i=typeof d=="function"?d:Vt(!!d),u):i},u.curve=function(d){return arguments.length?(a=d,o!=null&&(s=a(o)),u):a},u.context=function(d){return arguments.length?(d==null?o=s=null:s=a(o=d),u):o},u}class zH{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function hTe(e){return new zH(e,!0)}function mTe(e){return new zH(e,!1)}const NP={draw(e,t){const n=So(t/kb);e.moveTo(n,0),e.arc(0,0,n,0,Pw)}},vTe={draw(e,t){const n=So(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},VH=So(1/3),gTe=VH*2,yTe={draw(e,t){const n=So(t/gTe),r=n*VH;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},bTe={draw(e,t){const n=So(t),r=-n/2;e.rect(r,r,n,n)}},_Te=.8908130915292852,HH=Cb(kb/10)/Cb(7*kb/10),wTe=Cb(Pw/10)*HH,xTe=-LH(Pw/10)*HH,OTe={draw(e,t){const n=So(t*_Te),r=wTe*n,i=xTe*n;e.moveTo(0,-n),e.lineTo(r,i);for(let o=1;o<5;++o){const a=Pw*o/5,s=LH(a),l=Cb(a);e.lineTo(l*n,-s*n),e.lineTo(s*r-l*i,l*r+s*i)}e.closePath()}},eS=So(3),STe={draw(e,t){const n=-So(t/(eS*3));e.moveTo(0,n*2),e.lineTo(-eS*n,-n),e.lineTo(eS*n,-n),e.closePath()}},xi=-.5,Oi=So(3)/2,sT=1/So(12),ETe=(sT/2+1)*3,TTe={draw(e,t){const n=So(t/ETe),r=n/2,i=n*sT,o=r,a=n*sT+n,s=-o,l=a;e.moveTo(r,i),e.lineTo(o,a),e.lineTo(s,l),e.lineTo(xi*r-Oi*i,Oi*r+xi*i),e.lineTo(xi*o-Oi*a,Oi*o+xi*a),e.lineTo(xi*s-Oi*l,Oi*s+xi*l),e.lineTo(xi*r+Oi*i,xi*i-Oi*r),e.lineTo(xi*o+Oi*a,xi*a-Oi*o),e.lineTo(xi*s+Oi*l,xi*l-Oi*s),e.closePath()}};function CTe(e,t){let n=null,r=PP(i);e=typeof e=="function"?e:Vt(e||NP),t=typeof t=="function"?t:Vt(t===void 0?64:+t);function i(){let o;if(n||(n=o=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),o)return n=null,o+""||null}return i.type=function(o){return arguments.length?(e=typeof o=="function"?o:Vt(o),i):e},i.size=function(o){return arguments.length?(t=typeof o=="function"?o:Vt(+o),i):t},i.context=function(o){return arguments.length?(n=o??null,i):n},i}function jb(){}function Pb(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function WH(e){this._context=e}WH.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Pb(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Pb(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function kTe(e){return new WH(e)}function YH(e){this._context=e}YH.prototype={areaStart:jb,areaEnd:jb,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Pb(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function jTe(e){return new YH(e)}function GH(e){this._context=e}GH.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Pb(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function PTe(e){return new GH(e)}function qH(e){this._context=e}qH.prototype={areaStart:jb,areaEnd:jb,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function ATe(e){return new qH(e)}function rI(e){return e<0?-1:1}function iI(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),a=(n-e._y1)/(i||r<0&&-0),s=(o*i+a*r)/(r+i);return(rI(o)+rI(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function oI(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function tS(e,t,n){var r=e._x0,i=e._y0,o=e._x1,a=e._y1,s=(o-r)/3;e._context.bezierCurveTo(r+s,i+s*t,o-s,a-s*n,o,a)}function Ab(e){this._context=e}Ab.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:tS(this,this._t0,oI(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,tS(this,oI(this,n=iI(this,e,t)),n);break;default:tS(this,this._t0,n=iI(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function KH(e){this._context=new ZH(e)}(KH.prototype=Object.create(Ab.prototype)).point=function(e,t){Ab.prototype.point.call(this,t,e)};function ZH(e){this._context=e}ZH.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,o){this._context.bezierCurveTo(t,e,r,n,o,i)}};function NTe(e){return new Ab(e)}function MTe(e){return new KH(e)}function QH(e){this._context=e}QH.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=aI(e),i=aI(t),o=0,a=1;a=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(o[n-1]=(e[n]+i[n-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function DTe(e){return new Nw(e,.5)}function LTe(e){return new Nw(e,0)}function ITe(e){return new Nw(e,1)}function Uf(e,t){if((a=e.length)>1)for(var n=1,r,i,o=e[t[0]],a,s=o.length;n=0;)n[t]=t;return n}function FTe(e,t){return e[t]}function UTe(e){const t=[];return t.key=e,t}function $Te(){var e=Vt([]),t=lT,n=Uf,r=FTe;function i(o){var a=Array.from(e.apply(this,arguments),UTe),s,l=a.length,u=-1,f;for(const d of o)for(s=0,++u;s0){for(var n,r,i=0,o=e[0].length,a;i0){for(var n=0,r=e[t[0]],i,o=r.length;n0)||!((o=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,o,a;r=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function KTe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}var XH={symbolCircle:NP,symbolCross:vTe,symbolDiamond:yTe,symbolSquare:bTe,symbolStar:OTe,symbolTriangle:STe,symbolWye:TTe},ZTe=Math.PI/180,QTe=function(e){var t="symbol".concat(jw(e));return XH[t]||NP},XTe=function(e,t,n){if(t==="area")return e;switch(n){case"cross":return 5*e*e/9;case"diamond":return .5*e*e/Math.sqrt(3);case"square":return e*e;case"star":{var r=18*ZTe;return 1.25*e*e*(Math.tan(r)-Math.tan(r*2)*Math.pow(Math.tan(r),2))}case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},JTe=function(e,t){XH["symbol".concat(jw(e))]=t},Mw=function(e){var t=e.type,n=t===void 0?"circle":t,r=e.size,i=r===void 0?64:r,o=e.sizeType,a=o===void 0?"area":o,s=qTe(e,HTe),l=lI(lI({},s),{},{type:n,size:i,sizeType:a}),u=function(){var v=QTe(n),g=CTe().type(v).size(XTe(i,a,n));return g()},f=l.className,d=l.cx,p=l.cy,m=Ve(l,!0);return d===+d&&p===+p&&i===+i?M.createElement("path",uT({},m,{className:We("recharts-symbols",f),transform:"translate(".concat(d,", ").concat(p,")"),d:u()})):null};Mw.registerSymbol=JTe;function $f(e){"@babel/helpers - typeof";return $f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$f(e)}function cT(){return cT=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Nb(e){return Nb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Nb(e)}function gm(e,t,n){return t=JH(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function JH(e){var t=lCe(e,"string");return $f(t)==="symbol"?t:String(t)}function lCe(e,t){if($f(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if($f(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Si=32,MP=function(e){rCe(n,e);var t=iCe(n);function n(){return tCe(this,n),t.apply(this,arguments)}return nCe(n,[{key:"renderIcon",value:function(r){var i=this.props.inactiveColor,o=Si/2,a=Si/6,s=Si/3,l=r.inactive?i:r.color;if(r.type==="plainline")return M.createElement("line",{strokeWidth:4,fill:"none",stroke:l,strokeDasharray:r.payload.strokeDasharray,x1:0,y1:o,x2:Si,y2:o,className:"recharts-legend-icon"});if(r.type==="line")return M.createElement("path",{strokeWidth:4,fill:"none",stroke:l,d:"M0,".concat(o,"h").concat(s,` + A`).concat(a,",").concat(a,",0,1,1,").concat(2*s,",").concat(o,` + H`).concat(Si,"M").concat(2*s,",").concat(o,` + A`).concat(a,",").concat(a,",0,1,1,").concat(s,",").concat(o),className:"recharts-legend-icon"});if(r.type==="rect")return M.createElement("path",{stroke:"none",fill:l,d:"M0,".concat(Si/8,"h").concat(Si,"v").concat(Si*3/4,"h").concat(-Si,"z"),className:"recharts-legend-icon"});if(M.isValidElement(r.legendIcon)){var u=eCe({},r);return delete u.legendIcon,M.cloneElement(r.legendIcon,u)}return M.createElement(Mw,{fill:l,cx:o,cy:o,size:Si,sizeType:"diameter",type:r.type})}},{key:"renderItems",value:function(){var r=this,i=this.props,o=i.payload,a=i.iconSize,s=i.layout,l=i.formatter,u=i.inactiveColor,f={x:0,y:0,width:Si,height:Si},d={display:s==="horizontal"?"inline-block":"block",marginRight:10},p={display:"inline-block",verticalAlign:"middle",marginRight:4};return o.map(function(m,v){var g,x=m.formatter||l,b=We((g={"recharts-legend-item":!0},gm(g,"legend-item-".concat(v),!0),gm(g,"inactive",m.inactive),g));if(m.type==="none")return null;var _=Xe(m.value)?null:m.value;ka(!Xe(m.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: `);var w=m.inactive?u:m.color;return M.createElement("li",cT({className:b,style:d,key:"legend-item-".concat(v)},al(r.props,m,v)),M.createElement(tT,{width:a,height:a,viewBox:f,style:p},r.renderIcon(m)),M.createElement("span",{className:"recharts-legend-item-text",style:{color:w}},x?x(_,m,v):_))})}},{key:"render",value:function(){var r=this.props,i=r.payload,o=r.layout,a=r.align;if(!i||!i.length)return null;var s={padding:0,margin:0,textAlign:o==="horizontal"?a:"left"};return M.createElement("ul",{className:"recharts-default-legend",style:s},this.renderItems())}}]),n}(I.PureComponent);gm(MP,"displayName","Legend");gm(MP,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var uCe=Tw;function cCe(){this.__data__=new uCe,this.size=0}var fCe=cCe;function dCe(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var pCe=dCe;function hCe(e){return this.__data__.get(e)}var mCe=hCe;function vCe(e){return this.__data__.has(e)}var gCe=vCe,yCe=Tw,bCe=OP,_Ce=SP,wCe=200;function xCe(e,t){var n=this.__data__;if(n instanceof yCe){var r=n.__data__;if(!bCe||r.lengths))return!1;var u=o.get(e),f=o.get(t);if(u&&f)return u==t&&f==e;var d=-1,p=!0,m=n&HCe?new $Ce:void 0;for(o.set(e,t),o.set(t,e);++d-1&&e%1==0&&e-1&&e%1==0&&e<=qke}var IP=Kke,Zke=Xa,Qke=IP,Xke=Ja,Jke="[object Arguments]",eje="[object Array]",tje="[object Boolean]",nje="[object Date]",rje="[object Error]",ije="[object Function]",oje="[object Map]",aje="[object Number]",sje="[object Object]",lje="[object RegExp]",uje="[object Set]",cje="[object String]",fje="[object WeakMap]",dje="[object ArrayBuffer]",pje="[object DataView]",hje="[object Float32Array]",mje="[object Float64Array]",vje="[object Int8Array]",gje="[object Int16Array]",yje="[object Int32Array]",bje="[object Uint8Array]",_je="[object Uint8ClampedArray]",wje="[object Uint16Array]",xje="[object Uint32Array]",zt={};zt[hje]=zt[mje]=zt[vje]=zt[gje]=zt[yje]=zt[bje]=zt[_je]=zt[wje]=zt[xje]=!0;zt[Jke]=zt[eje]=zt[dje]=zt[tje]=zt[pje]=zt[nje]=zt[rje]=zt[ije]=zt[oje]=zt[aje]=zt[sje]=zt[lje]=zt[uje]=zt[cje]=zt[fje]=!1;function Oje(e){return Xke(e)&&Qke(e.length)&&!!zt[Zke(e)]}var Sje=Oje;function Eje(e){return function(t){return e(t)}}var lW=Eje,Db={exports:{}};Db.exports;(function(e,t){var n=gH,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===r,a=o&&n.process,s=function(){try{var l=i&&i.require&&i.require("util").types;return l||a&&a.binding&&a.binding("util")}catch{}}();e.exports=s})(Db,Db.exports);var Tje=Db.exports,Cje=Sje,kje=lW,vI=Tje,gI=vI&&vI.isTypedArray,jje=gI?kje(gI):Cje,uW=jje,Pje=Mke,Aje=DP,Nje=ei,Mje=sW,Rje=LP,Dje=uW,Lje=Object.prototype,Ije=Lje.hasOwnProperty;function Fje(e,t){var n=Nje(e),r=!n&&Aje(e),i=!n&&!r&&Mje(e),o=!n&&!r&&!i&&Dje(e),a=n||r||i||o,s=a?Pje(e.length,String):[],l=s.length;for(var u in e)(t||Ije.call(e,u))&&!(a&&(u=="length"||i&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Rje(u,l)))&&s.push(u);return s}var Uje=Fje,$je=Object.prototype;function Bje(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||$je;return e===n}var zje=Bje;function Vje(e,t){return function(n){return e(t(n))}}var cW=Vje,Hje=cW,Wje=Hje(Object.keys,Object),Yje=Wje,Gje=zje,qje=Yje,Kje=Object.prototype,Zje=Kje.hasOwnProperty;function Qje(e){if(!Gje(e))return qje(e);var t=[];for(var n in Object(e))Zje.call(e,n)&&n!="constructor"&&t.push(n);return t}var Xje=Qje,Jje=wP,ePe=IP;function tPe(e){return e!=null&&ePe(e.length)&&!Jje(e)}var jv=tPe,nPe=Uje,rPe=Xje,iPe=jv;function oPe(e){return iPe(e)?nPe(e):rPe(e)}var Rw=oPe,aPe=wke,sPe=Ake,lPe=Rw;function uPe(e){return aPe(e,lPe,sPe)}var cPe=uPe,yI=cPe,fPe=1,dPe=Object.prototype,pPe=dPe.hasOwnProperty;function hPe(e,t,n,r,i,o){var a=n&fPe,s=yI(e),l=s.length,u=yI(t),f=u.length;if(l!=f&&!a)return!1;for(var d=l;d--;){var p=s[d];if(!(a?p in t:pPe.call(t,p)))return!1}var m=o.get(e),v=o.get(t);if(m&&v)return m==t&&v==e;var g=!0;o.set(e,t),o.set(t,e);for(var x=a;++d-1}var dNe=fNe;function pNe(e,t,n){for(var r=-1,i=e==null?0:e.length;++r=kNe){var u=t?null:TNe(e);if(u)return CNe(u);a=!1,i=ENe,l=new xNe}else l=t?[]:s;e:for(;++r"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Lb(e){return Lb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Lb(e)}function Dw(e,t,n){return t=bW(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bW(e){var t=zNe(e,"string");return Bf(t)==="symbol"?t:String(t)}function zNe(e,t){if(Bf(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Bf(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function VNe(e,t){if(e==null)return{};var n=HNe(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function HNe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}function WNe(e){return e.value}function YNe(e,t){if(M.isValidElement(e))return M.cloneElement(e,t);if(typeof e=="function")return M.createElement(e,t);t.ref;var n=VNe(t,DNe);return M.createElement(MP,n)}var RI=1,ym=function(e){FNe(n,e);var t=UNe(n);function n(){var r;LNe(this,n);for(var i=arguments.length,o=new Array(i),a=0;aRI||Math.abs(i.height-this.lastBoundingBox.height)>RI)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,r&&r(i))}else(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,r&&r(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Pl({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(r){var i=this.props,o=i.layout,a=i.align,s=i.verticalAlign,l=i.margin,u=i.chartWidth,f=i.chartHeight,d,p;if(!r||(r.left===void 0||r.left===null)&&(r.right===void 0||r.right===null))if(a==="center"&&o==="vertical"){var m=this.getBBoxSnapshot();d={left:((u||0)-m.width)/2}}else d=a==="right"?{right:l&&l.right||0}:{left:l&&l.left||0};if(!r||(r.top===void 0||r.top===null)&&(r.bottom===void 0||r.bottom===null))if(s==="middle"){var v=this.getBBoxSnapshot();p={top:((f||0)-v.height)/2}}else p=s==="bottom"?{bottom:l&&l.bottom||0}:{top:l&&l.top||0};return Pl(Pl({},d),p)}},{key:"render",value:function(){var r=this,i=this.props,o=i.content,a=i.width,s=i.height,l=i.wrapperStyle,u=i.payloadUniqBy,f=i.payload,d=Pl(Pl({position:"absolute",width:a||"auto",height:s||"auto"},this.getDefaultPosition(l)),l);return M.createElement("div",{className:"recharts-legend-wrapper",style:d,ref:function(p){r.wrapperNode=p}},YNe(o,Pl(Pl({},this.props),{},{payload:gW(f,u,WNe)})))}}],[{key:"getWithHeight",value:function(r,i){var o=r.props.layout;return o==="vertical"&&je(r.props.height)?{height:r.props.height}:o==="horizontal"?{width:r.props.width||i}:null}}]),n}(I.PureComponent);Dw(ym,"displayName","Legend");Dw(ym,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var DI=Cv,GNe=DP,qNe=ei,LI=DI?DI.isConcatSpreadable:void 0;function KNe(e){return qNe(e)||GNe(e)||!!(LI&&e&&e[LI])}var ZNe=KNe,QNe=oW,XNe=ZNe;function _W(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=XNe),i||(i=[]);++o0&&n(s)?t>1?_W(s,t-1,n,r,i):QNe(i,s):r||(i[i.length]=s)}return i}var wW=_W;function JNe(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++i];if(n(o[l],l,o)===!1)break}return t}}var eMe=JNe,tMe=eMe,nMe=tMe(),rMe=nMe,iMe=rMe,oMe=Rw;function aMe(e,t){return e&&iMe(e,t,oMe)}var xW=aMe,sMe=jv;function lMe(e,t){return function(n,r){if(n==null)return n;if(!sMe(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=Object(n);(t?o--:++ot||o&&a&&l&&!s&&!u||r&&a&&l||!n&&l||!i)return 1;if(!r&&!o&&!u&&e=s)return l;var u=n[r];return l*(u=="desc"?-1:1)}}return e.index-t.index}var xMe=wMe,oS=TP,OMe=CP,SMe=la,EMe=OW,TMe=gMe,CMe=lW,kMe=xMe,jMe=Rd,PMe=ei;function AMe(e,t,n){t.length?t=oS(t,function(o){return PMe(o)?function(a){return OMe(a,o.length===1?o[0]:o)}:o}):t=[jMe];var r=-1;t=oS(t,CMe(SMe));var i=EMe(e,function(o,a,s){var l=oS(t,function(u){return u(o)});return{criteria:l,index:++r,value:o}});return TMe(i,function(o,a){return kMe(o,a,n)})}var NMe=AMe;function MMe(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var RMe=MMe,DMe=RMe,FI=Math.max;function LMe(e,t,n){return t=FI(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=FI(r.length-t,0),a=Array(o);++i0){if(++t>=YMe)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var ZMe=KMe,QMe=WMe,XMe=ZMe,JMe=XMe(QMe),eRe=JMe,tRe=Rd,nRe=IMe,rRe=eRe;function iRe(e,t){return rRe(nRe(e,t,tRe),e+"")}var oRe=iRe,aRe=xP,sRe=jv,lRe=LP,uRe=yl;function cRe(e,t,n){if(!uRe(n))return!1;var r=typeof t;return(r=="number"?sRe(n)&&lRe(t,n.length):r=="string"&&t in n)?aRe(n[t],e):!1}var Lw=cRe,fRe=wW,dRe=NMe,pRe=oRe,$I=Lw,hRe=pRe(function(e,t){if(e==null)return[];var n=t.length;return n>1&&$I(e,t[0],t[1])?t=[]:n>2&&$I(t[0],t[1],t[2])&&(t=[t[0]]),dRe(e,fRe(t,1),[])}),mRe=hRe;const $P=Et(mRe);function bm(e){"@babel/helpers - typeof";return bm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bm(e)}function vRe(e,t){return _Re(e)||bRe(e,t)||yRe(e,t)||gRe()}function gRe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yRe(e,t){if(e){if(typeof e=="string")return BI(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return BI(e,t)}}function BI(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function PRe(e,t){return Dd(e.getTime(),t.getTime())}function GI(e,t,n){if(e.size!==t.size)return!1;for(var r={},i=e.entries(),o=0,a,s;(a=i.next())&&!a.done;){for(var l=t.entries(),u=!1,f=0;(s=l.next())&&!s.done;){var d=a.value,p=d[0],m=d[1],v=s.value,g=v[0],x=v[1];!u&&!r[f]&&(u=n.equals(p,g,o,f,e,t,n)&&n.equals(m,x,p,g,e,t,n))&&(r[f]=!0),f++}if(!u)return!1;o++}return!0}function ARe(e,t,n){var r=YI(e),i=r.length;if(YI(t).length!==i)return!1;for(var o;i-- >0;)if(o=r[i],o===TW&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!EW(t,o)||!n.equals(e[o],t[o],o,o,e,t,n))return!1;return!0}function Op(e,t,n){var r=HI(e),i=r.length;if(HI(t).length!==i)return!1;for(var o,a,s;i-- >0;)if(o=r[i],o===TW&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!EW(t,o)||!n.equals(e[o],t[o],o,o,e,t,n)||(a=WI(e,o),s=WI(t,o),(a||s)&&(!a||!s||a.configurable!==s.configurable||a.enumerable!==s.enumerable||a.writable!==s.writable)))return!1;return!0}function NRe(e,t){return Dd(e.valueOf(),t.valueOf())}function MRe(e,t){return e.source===t.source&&e.flags===t.flags}function qI(e,t,n){if(e.size!==t.size)return!1;for(var r={},i=e.values(),o,a;(o=i.next())&&!o.done;){for(var s=t.values(),l=!1,u=0;(a=s.next())&&!a.done;)!l&&!r[u]&&(l=n.equals(o.value,a.value,o.value,a.value,e,t,n))&&(r[u]=!0),u++;if(!l)return!1}return!0}function RRe(e,t){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}var DRe="[object Arguments]",LRe="[object Boolean]",IRe="[object Date]",FRe="[object Map]",URe="[object Number]",$Re="[object Object]",BRe="[object RegExp]",zRe="[object Set]",VRe="[object String]",HRe=Array.isArray,KI=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,ZI=Object.assign,WRe=Object.prototype.toString.call.bind(Object.prototype.toString);function YRe(e){var t=e.areArraysEqual,n=e.areDatesEqual,r=e.areMapsEqual,i=e.areObjectsEqual,o=e.arePrimitiveWrappersEqual,a=e.areRegExpsEqual,s=e.areSetsEqual,l=e.areTypedArraysEqual;return function(u,f,d){if(u===f)return!0;if(u==null||f==null||typeof u!="object"||typeof f!="object")return u!==u&&f!==f;var p=u.constructor;if(p!==f.constructor)return!1;if(p===Object)return i(u,f,d);if(HRe(u))return t(u,f,d);if(KI!=null&&KI(u))return l(u,f,d);if(p===Date)return n(u,f,d);if(p===RegExp)return a(u,f,d);if(p===Map)return r(u,f,d);if(p===Set)return s(u,f,d);var m=WRe(u);return m===IRe?n(u,f,d):m===BRe?a(u,f,d):m===FRe?r(u,f,d):m===zRe?s(u,f,d):m===$Re?typeof u.then!="function"&&typeof f.then!="function"&&i(u,f,d):m===DRe?i(u,f,d):m===LRe||m===URe||m===VRe?o(u,f,d):!1}}function GRe(e){var t=e.circular,n=e.createCustomConfig,r=e.strict,i={areArraysEqual:r?Op:jRe,areDatesEqual:PRe,areMapsEqual:r?VI(GI,Op):GI,areObjectsEqual:r?Op:ARe,arePrimitiveWrappersEqual:NRe,areRegExpsEqual:MRe,areSetsEqual:r?VI(qI,Op):qI,areTypedArraysEqual:r?Op:RRe};if(n&&(i=ZI({},i,n(i))),t){var o=Xg(i.areArraysEqual),a=Xg(i.areMapsEqual),s=Xg(i.areObjectsEqual),l=Xg(i.areSetsEqual);i=ZI({},i,{areArraysEqual:o,areMapsEqual:a,areObjectsEqual:s,areSetsEqual:l})}return i}function qRe(e){return function(t,n,r,i,o,a,s){return e(t,n,s)}}function KRe(e){var t=e.circular,n=e.comparator,r=e.createState,i=e.equals,o=e.strict;if(r)return function(s,l){var u=r(),f=u.cache,d=f===void 0?t?new WeakMap:void 0:f,p=u.meta;return n(s,l,{cache:d,equals:i,meta:p,strict:o})};if(t)return function(s,l){return n(s,l,{cache:new WeakMap,equals:i,meta:void 0,strict:o})};var a={cache:void 0,equals:i,meta:void 0,strict:o};return function(s,l){return n(s,l,a)}}var ZRe=_l();_l({strict:!0});_l({circular:!0});_l({circular:!0,strict:!0});_l({createInternalComparator:function(){return Dd}});_l({strict:!0,createInternalComparator:function(){return Dd}});_l({circular:!0,createInternalComparator:function(){return Dd}});_l({circular:!0,createInternalComparator:function(){return Dd},strict:!0});function _l(e){e===void 0&&(e={});var t=e.circular,n=t===void 0?!1:t,r=e.createInternalComparator,i=e.createState,o=e.strict,a=o===void 0?!1:o,s=GRe(e),l=YRe(s),u=r?r(l):qRe(l);return KRe({circular:n,comparator:l,createState:i,equals:u,strict:a})}function QRe(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function QI(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=-1,r=function i(o){n<0&&(n=o),o-n>t?(e(o),n=-1):QRe(i)};requestAnimationFrame(r)}function yT(e){"@babel/helpers - typeof";return yT=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yT(e)}function XRe(e){return nDe(e)||tDe(e)||eDe(e)||JRe()}function JRe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function eDe(e,t){if(e){if(typeof e=="string")return XI(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return XI(e,t)}}function XI(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?1:g<0?0:g},v=function(g){for(var x=g>1?1:g,b=x,_=0;_<8;++_){var w=f(b)-x,O=p(b);if(Math.abs(w-x)0&&arguments[0]!==void 0?arguments[0]:{},t=e.stiff,n=t===void 0?100:t,r=e.damping,i=r===void 0?8:r,o=e.dt,a=o===void 0?17:o,s=function(l,u,f){var d=-(l-u)*n,p=f*i,m=f+(d-p)*a/1e3,v=f*a/1e3+l;return Math.abs(v-u)e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function IDe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}function sS(e){return BDe(e)||$De(e)||UDe(e)||FDe()}function FDe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function UDe(e,t){if(e){if(typeof e=="string")return OT(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return OT(e,t)}}function $De(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function BDe(e){if(Array.isArray(e))return OT(e)}function OT(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function $b(e){return $b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},$b(e)}var Gi=function(e){WDe(n,e);var t=YDe(n);function n(r,i){var o;zDe(this,n),o=t.call(this,r,i);var a=o.props,s=a.isActive,l=a.attributeName,u=a.from,f=a.to,d=a.steps,p=a.children,m=a.duration;if(o.handleStyleChange=o.handleStyleChange.bind(TT(o)),o.changeStyle=o.changeStyle.bind(TT(o)),!s||m<=0)return o.state={style:{}},typeof p=="function"&&(o.state={style:f}),ET(o);if(d&&d.length)o.state={style:d[0].style};else if(u){if(typeof p=="function")return o.state={style:u},ET(o);o.state={style:l?zp({},l,u):u}}else o.state={style:{}};return o}return VDe(n,[{key:"componentDidMount",value:function(){var r=this.props,i=r.isActive,o=r.canBegin;this.mounted=!0,!(!i||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(r){var i=this.props,o=i.isActive,a=i.canBegin,s=i.attributeName,l=i.shouldReAnimate,u=i.to,f=i.from,d=this.state.style;if(a){if(!o){var p={style:s?zp({},s,u):u};this.state&&d&&(s&&d[s]!==u||!s&&d!==u)&&this.setState(p);return}if(!(ZRe(r.to,u)&&r.canBegin&&r.isActive)){var m=!r.canBegin||!r.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var v=m||l?f:r.to;if(this.state&&d){var g={style:s?zp({},s,v):v};(s&&[s]!==v||!s&&d!==v)&&this.setState(g)}this.runAnimation(io(io({},this.props),{},{from:v,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var r=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),r&&r()}},{key:"handleStyleChange",value:function(r){this.changeStyle(r)}},{key:"changeStyle",value:function(r){this.mounted&&this.setState({style:r})}},{key:"runJSAnimation",value:function(r){var i=this,o=r.from,a=r.to,s=r.duration,l=r.easing,u=r.begin,f=r.onAnimationEnd,d=r.onAnimationStart,p=RDe(o,a,ODe(l),s,this.changeStyle),m=function(){i.stopJSAnimation=p()};this.manager.start([d,u,m,s,f])}},{key:"runStepAnimation",value:function(r){var i=this,o=r.steps,a=r.begin,s=r.onAnimationStart,l=o[0],u=l.style,f=l.duration,d=f===void 0?0:f,p=function(m,v,g){if(g===0)return m;var x=v.duration,b=v.easing,_=b===void 0?"ease":b,w=v.style,O=v.properties,E=v.onAnimationEnd,T=g>0?o[g-1]:v,k=O||Object.keys(w);if(typeof _=="function"||_==="spring")return[].concat(sS(m),[i.runJSAnimation.bind(i,{from:T.style,to:w,duration:x,easing:_}),x]);var P=e6(k,x,_),D=io(io(io({},T.style),w),{},{transition:P});return[].concat(sS(m),[D,x,E]).filter(cDe)};return this.manager.start([s].concat(sS(o.reduce(p,[u,Math.max(d,a)])),[r.onAnimationEnd]))}},{key:"runAnimation",value:function(r){this.manager||(this.manager=rDe());var i=r.begin,o=r.duration,a=r.attributeName,s=r.to,l=r.easing,u=r.onAnimationStart,f=r.onAnimationEnd,d=r.steps,p=r.children,m=this.manager;if(this.unSubscribe=m.subscribe(this.handleStyleChange),typeof l=="function"||typeof p=="function"||l==="spring"){this.runJSAnimation(r);return}if(d.length>1){this.runStepAnimation(r);return}var v=a?zp({},a,s):s,g=e6(Object.keys(v),o,l);m.start([u,i,io(io({},v),{},{transition:g}),o,f])}},{key:"render",value:function(){var r=this.props,i=r.children;r.begin;var o=r.duration;r.attributeName,r.easing;var a=r.isActive;r.steps,r.from,r.to,r.canBegin,r.onAnimationEnd,r.shouldReAnimate,r.onAnimationReStart;var s=LDe(r,DDe),l=I.Children.count(i),u=BP(this.state.style);if(typeof i=="function")return i(u);if(!a||l===0||o<=0)return i;var f=function(d){var p=d.props,m=p.style,v=m===void 0?{}:m,g=p.className,x=I.cloneElement(d,io(io({},s),{},{style:io(io({},v),u),className:g}));return x};return l===1?f(I.Children.only(i)):M.createElement("div",null,I.Children.map(i,function(d){return f(d)}))}}]),n}(I.PureComponent);Gi.displayName="Animate";Gi.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};Gi.propTypes={from:rt.oneOfType([rt.object,rt.string]),to:rt.oneOfType([rt.object,rt.string]),attributeName:rt.string,duration:rt.number,begin:rt.number,easing:rt.oneOfType([rt.string,rt.func]),steps:rt.arrayOf(rt.shape({duration:rt.number.isRequired,style:rt.object.isRequired,easing:rt.oneOfType([rt.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),rt.func]),properties:rt.arrayOf("string"),onAnimationEnd:rt.func})),children:rt.oneOfType([rt.node,rt.func]),isActive:rt.bool,canBegin:rt.bool,onAnimationEnd:rt.func,shouldReAnimate:rt.bool,onAnimationStart:rt.func,onAnimationReStart:rt.func};Number.isFinite===void 0&&(Number.isFinite=function(e){return typeof e=="number"&&isFinite(e)});rt.object,rt.object,rt.object,rt.element;rt.object,rt.object,rt.object,rt.oneOfType([rt.array,rt.element]),rt.any;function xm(e){"@babel/helpers - typeof";return xm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xm(e)}function Jg(e,t,n){return t=qDe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qDe(e){var t=KDe(e,"string");return xm(t)==="symbol"?t:String(t)}function KDe(e,t){if(xm(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(xm(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Sp="recharts-tooltip-wrapper",ZDe={visibility:"hidden"};function QDe(e){var t,n=e.coordinate,r=e.translateX,i=e.translateY;return We(Sp,(t={},Jg(t,"".concat(Sp,"-right"),je(r)&&n&&je(n.x)&&r>=n.x),Jg(t,"".concat(Sp,"-left"),je(r)&&n&&je(n.x)&&r=n.y),Jg(t,"".concat(Sp,"-top"),je(i)&&n&&je(n.y)&&ig?Math.max(f,l[r]):Math.max(d,l[r])}function XDe(e){var t=e.translateX,n=e.translateY,r=e.useTranslate3d;return BP({transform:r?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")})}function JDe(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,i=e.position,o=e.reverseDirection,a=e.tooltipBox,s=e.useTranslate3d,l=e.viewBox,u,f,d;return a.height>0&&a.width>0&&n?(f=s6({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:i,reverseDirection:o,tooltipDimension:a.width,viewBox:l,viewBoxDimension:l.width}),d=s6({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:i,reverseDirection:o,tooltipDimension:a.height,viewBox:l,viewBoxDimension:l.height}),u=XDe({translateX:f,translateY:d,useTranslate3d:s})):u=ZDe,{cssProperties:u,cssClasses:QDe({translateX:f,translateY:d,coordinate:n})}}function Hf(e){"@babel/helpers - typeof";return Hf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hf(e)}function l6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function lS(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Bb(e){return Bb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Bb(e)}function zy(e,t,n){return t=NW(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function NW(e){var t=aLe(e,"string");return Hf(t)==="symbol"?t:String(t)}function aLe(e,t){if(Hf(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Hf(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var c6=1,sLe=function(e){nLe(n,e);var t=rLe(n);function n(){var r;eLe(this,n);for(var i=arguments.length,o=new Array(i),a=0;ac6||Math.abs(r.height-this.lastBoundingBox.height)>c6)&&(this.lastBoundingBox.width=r.width,this.lastBoundingBox.height=r.height)}else(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1)}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var r,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((r=this.props.coordinate)===null||r===void 0?void 0:r.x)!==this.state.dismissedAtCoordinate.x||((i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var r=this,i=this.props,o=i.active,a=i.allowEscapeViewBox,s=i.animationDuration,l=i.animationEasing,u=i.children,f=i.coordinate,d=i.hasPayload,p=i.isAnimationActive,m=i.offset,v=i.position,g=i.reverseDirection,x=i.useTranslate3d,b=i.viewBox,_=i.wrapperStyle,w=JDe({allowEscapeViewBox:a,coordinate:f,offsetTopLeft:m,position:v,reverseDirection:g,tooltipBox:{height:this.lastBoundingBox.height,width:this.lastBoundingBox.width},useTranslate3d:x,viewBox:b}),O=w.cssClasses,E=w.cssProperties,T=lS(lS(lS({},p&&o&&BP({transition:"transform ".concat(s,"ms ").concat(l)})),E),{},{pointerEvents:"none",visibility:!this.state.dismissed&&o&&d?"visible":"hidden",position:"absolute",top:0,left:0},_);return M.createElement("div",{tabIndex:-1,role:"dialog",className:O,style:T,ref:function(k){r.wrapperNode=k}},u)}}]),n}(I.PureComponent),lLe=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Ui={isSsr:lLe(),get:function(e){return Ui[e]},set:function(e,t){if(typeof e=="string")Ui[e]=t;else{var n=Object.keys(e);n&&n.length&&n.forEach(function(r){Ui[r]=e[r]})}}};function Wf(e){"@babel/helpers - typeof";return Wf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wf(e)}function f6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function d6(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function zb(e){return zb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},zb(e)}function zP(e,t,n){return t=MW(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function MW(e){var t=vLe(e,"string");return Wf(t)==="symbol"?t:String(t)}function vLe(e,t){if(Wf(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Wf(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function gLe(e){return e.dataKey}function yLe(e,t){return M.isValidElement(e)?M.cloneElement(e,t):typeof e=="function"?M.createElement(e,t):M.createElement(ERe,t)}var xa=function(e){fLe(n,e);var t=dLe(n);function n(){return uLe(this,n),t.apply(this,arguments)}return cLe(n,[{key:"render",value:function(){var r=this.props,i=r.active,o=r.allowEscapeViewBox,a=r.animationDuration,s=r.animationEasing,l=r.content,u=r.coordinate,f=r.filterNull,d=r.isAnimationActive,p=r.offset,m=r.payload,v=r.payloadUniqBy,g=r.position,x=r.reverseDirection,b=r.useTranslate3d,_=r.viewBox,w=r.wrapperStyle,O=m??[];f&&O.length&&(O=gW(m.filter(function(T){return T.value!=null}),v,gLe));var E=O.length>0;return M.createElement(sLe,{allowEscapeViewBox:o,animationDuration:a,animationEasing:s,isAnimationActive:d,active:i,coordinate:u,hasPayload:E,offset:p,position:g,reverseDirection:x,useTranslate3d:b,viewBox:_,wrapperStyle:w},yLe(l,d6(d6({},this.props),{},{payload:O})))}}]),n}(I.PureComponent);zP(xa,"displayName","Tooltip");zP(xa,"defaultProps",{allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Ui.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var bLe=sa,_Le=function(){return bLe.Date.now()},wLe=_Le,xLe=/\s/;function OLe(e){for(var t=e.length;t--&&xLe.test(e.charAt(t)););return t}var SLe=OLe,ELe=SLe,TLe=/^\s+/;function CLe(e){return e&&e.slice(0,ELe(e)+1).replace(TLe,"")}var kLe=CLe,jLe=kLe,h6=yl,PLe=Td,m6=0/0,ALe=/^[-+]0x[0-9a-f]+$/i,NLe=/^0b[01]+$/i,MLe=/^0o[0-7]+$/i,RLe=parseInt;function DLe(e){if(typeof e=="number")return e;if(PLe(e))return m6;if(h6(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=h6(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=jLe(e);var n=NLe.test(e);return n||MLe.test(e)?RLe(e.slice(2),n?2:8):ALe.test(e)?m6:+e}var RW=DLe,LLe=yl,uS=wLe,v6=RW,ILe="Expected a function",FLe=Math.max,ULe=Math.min;function $Le(e,t,n){var r,i,o,a,s,l,u=0,f=!1,d=!1,p=!0;if(typeof e!="function")throw new TypeError(ILe);t=v6(t)||0,LLe(n)&&(f=!!n.leading,d="maxWait"in n,o=d?FLe(v6(n.maxWait)||0,t):o,p="trailing"in n?!!n.trailing:p);function m(T){var k=r,P=i;return r=i=void 0,u=T,a=e.apply(P,k),a}function v(T){return u=T,s=setTimeout(b,t),f?m(T):a}function g(T){var k=T-l,P=T-u,D=t-k;return d?ULe(D,o-P):D}function x(T){var k=T-l,P=T-u;return l===void 0||k>=t||k<0||d&&P>=o}function b(){var T=uS();if(x(T))return _(T);s=setTimeout(b,g(T))}function _(T){return s=void 0,p&&r?m(T):(r=i=void 0,a)}function w(){s!==void 0&&clearTimeout(s),u=0,r=l=i=s=void 0}function O(){return s===void 0?a:_(uS())}function E(){var T=uS(),k=x(T);if(r=arguments,i=this,l=T,k){if(s===void 0)return v(l);if(d)return clearTimeout(s),s=setTimeout(b,t),m(l)}return s===void 0&&(s=setTimeout(b,t)),a}return E.cancel=w,E.flush=O,E}var BLe=$Le,zLe=BLe,VLe=yl,HLe="Expected a function";function WLe(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(HLe);return VLe(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),zLe(e,t,{leading:r,maxWait:t,trailing:i})}var YLe=WLe;const DW=Et(YLe);function Om(e){"@babel/helpers - typeof";return Om=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Om(e)}function g6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ey(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&(Y=DW(Y,g,{trailing:!0,leading:!1}));var H=new ResizeObserver(Y),Q=E.current.getBoundingClientRect(),Z=Q.width,te=Q.height;return F(Z,te),H.observe(E.current),function(){H.disconnect()}},[F,g]);var B=I.useMemo(function(){var Y=D.containerWidth,H=D.containerHeight;if(Y<0||H<0)return null;ka(nu(a)||nu(l),`The width(%s) and height(%s) are both fixed numbers, + maybe you don't need to use a ResponsiveContainer.`,a,l),ka(!n||n>0,"The aspect(%s) must be greater than zero.",n);var Q=nu(a)?Y:a,Z=nu(l)?H:l;n&&n>0&&(Q?Z=Q/n:Z&&(Q=Z*n),p&&Z>p&&(Z=p)),ka(Q>0||Z>0,`The width(%s) and height(%s) of chart should be greater than 0, + please check the style of container, or the props width(%s) and height(%s), + or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the + height and width.`,Q,Z,a,l,f,d,n);var te=!Array.isArray(m)&&QE.isElement(m)&&Ca(m.type).endsWith("Chart");return M.Children.map(m,function(X){return QE.isElement(X)?I.cloneElement(X,ey({width:Q,height:Z},te?{style:ey({height:"100%",width:"100%",maxHeight:Z,maxWidth:Q},X.props.style)}:{})):X})},[n,m,l,p,d,f,D,a]);return M.createElement("div",{id:x?"".concat(x):void 0,className:We("recharts-responsive-container",b),style:ey(ey({},O),{},{width:a,height:l,minWidth:f,minHeight:d,maxHeight:p}),ref:E},B)}),Ws=function(e){return null};Ws.displayName="Cell";function Sm(e){"@babel/helpers - typeof";return Sm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Sm(e)}function b6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function jT(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:{};if(e==null||Ui.isSsr)return{width:0,height:0};var n=a4e(t),r=JSON.stringify({text:e,copyStyle:n});if(mc.widthCache[r])return mc.widthCache[r];try{var i=document.getElementById(_6);i||(i=document.createElement("span"),i.setAttribute("id",_6),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));var o=jT(jT({},o4e),n);Object.assign(i.style,o),i.textContent="".concat(e);var a=i.getBoundingClientRect(),s={width:a.width,height:a.height};return mc.widthCache[r]=s,++mc.cacheCount>i4e&&(mc.cacheCount=0,mc.widthCache={}),s}catch{return{width:0,height:0}}},s4e=function(e){return{top:e.top+window.scrollY-document.documentElement.clientTop,left:e.left+window.scrollX-document.documentElement.clientLeft}};function Em(e){"@babel/helpers - typeof";return Em=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Em(e)}function Vb(e,t){return f4e(e)||c4e(e,t)||u4e(e,t)||l4e()}function l4e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function u4e(e,t){if(e){if(typeof e=="string")return w6(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return w6(e,t)}}function w6(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function E4e(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}function C6(e,t){return j4e(e)||k4e(e,t)||C4e(e,t)||T4e()}function T4e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function C4e(e,t){if(e){if(typeof e=="string")return k6(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return k6(e,t)}}function k6(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&arguments[0]!==void 0?arguments[0]:[];return Y.reduce(function(H,Q){var Z=Q.word,te=Q.width,X=H[H.length-1];if(X&&(r==null||i||X.width+te+nQ.width?H:Q})};if(!u)return p;for(var v="…",g=function(Y){var H=f.slice(0,Y),Q=UW({breakAll:l,style:s,children:H+v}).wordsWithComputedWidth,Z=d(Q),te=Z.length>o||m(Z).width>Number(r);return[te,Z]},x=0,b=f.length-1,_=0,w;x<=b&&_<=f.length-1;){var O=Math.floor((x+b)/2),E=O-1,T=g(E),k=C6(T,2),P=k[0],D=k[1],N=g(O),F=C6(N,1),B=F[0];if(!P&&!B&&(x=O+1),P&&B&&(b=O-1),!P&&B){w=D;break}_++}return w||p},j6=function(e){var t=Ze(e)?[]:e.toString().split(FW);return[{words:t}]},A4e=function(e){var t=e.width,n=e.scaleToFit,r=e.children,i=e.style,o=e.breakAll,a=e.maxLines;if((t||n)&&!Ui.isSsr){var s,l,u=UW({breakAll:o,children:r,style:i});if(u){var f=u.wordsWithComputedWidth,d=u.spaceWidth;s=f,l=d}else return j6(r);return P4e({breakAll:o,children:r,maxLines:a,style:i},s,l,t,n)}return j6(r)},P6="#808080",Mu=function(e){var t=e.x,n=t===void 0?0:t,r=e.y,i=r===void 0?0:r,o=e.lineHeight,a=o===void 0?"1em":o,s=e.capHeight,l=s===void 0?"0.71em":s,u=e.scaleToFit,f=u===void 0?!1:u,d=e.textAnchor,p=d===void 0?"start":d,m=e.verticalAnchor,v=m===void 0?"end":m,g=e.fill,x=g===void 0?P6:g,b=T6(e,O4e),_=I.useMemo(function(){return A4e({breakAll:b.breakAll,children:b.children,maxLines:b.maxLines,scaleToFit:f,style:b.style,width:b.width})},[b.breakAll,b.children,b.maxLines,f,b.style,b.width]),w=b.dx,O=b.dy,E=b.angle,T=b.className,k=b.breakAll,P=T6(b,S4e);if(!Nn(n)||!Nn(i))return null;var D=n+(je(w)?w:0),N=i+(je(O)?O:0),F;switch(v){case"start":F=cS("calc(".concat(l,")"));break;case"middle":F=cS("calc(".concat((_.length-1)/2," * -").concat(a," + (").concat(l," / 2))"));break;default:F=cS("calc(".concat(_.length-1," * -").concat(a,")"));break}var B=[];if(f){var Y=_[0].width,H=b.width;B.push("scale(".concat((je(H)?H/Y:1)/Y,")"))}return E&&B.push("rotate(".concat(E,", ").concat(D,", ").concat(N,")")),B.length&&(P.transform=B.join(" ")),M.createElement("text",PT({},Ve(P,!0),{x:D,y:N,className:We("recharts-text",T),textAnchor:p,fill:x.includes("url")?P6:x}),_.map(function(Q,Z){var te=Q.words.join(k?"":" ");return M.createElement("tspan",{x:D,dy:Z===0?F:a,key:te},te)}))};function Ys(e,t){return e==null||t==null?NaN:et?1:e>=t?0:NaN}function N4e(e,t){return e==null||t==null?NaN:te?1:t>=e?0:NaN}function HP(e){let t,n,r;e.length!==2?(t=Ys,n=(s,l)=>Ys(e(s),l),r=(s,l)=>e(s)-l):(t=e===Ys||e===N4e?e:M4e,n=e,r=e);function i(s,l,u=0,f=s.length){if(u>>1;n(s[d],l)<0?u=d+1:f=d}while(u>>1;n(s[d],l)<=0?u=d+1:f=d}while(uu&&r(s[d-1],l)>-r(s[d],l)?d-1:d}return{left:i,center:a,right:o}}function M4e(){return 0}function $W(e){return e===null?NaN:+e}function*R4e(e,t){if(t===void 0)for(let n of e)n!=null&&(n=+n)>=n&&(yield n);else{let n=-1;for(let r of e)(r=t(r,++n,e))!=null&&(r=+r)>=r&&(yield r)}}const D4e=HP(Ys),L4e=D4e.right;HP($W).center;const Pv=L4e;class A6 extends Map{constructor(t,n=U4e){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,i]of t)this.set(r,i)}get(t){return super.get(N6(this,t))}has(t){return super.has(N6(this,t))}set(t,n){return super.set(I4e(this,t),n)}delete(t){return super.delete(F4e(this,t))}}function N6({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function I4e({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function F4e({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function U4e(e){return e!==null&&typeof e=="object"?e.valueOf():e}function $4e(e=Ys){if(e===Ys)return BW;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function BW(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(et?1:0)}const B4e=Math.sqrt(50),z4e=Math.sqrt(10),V4e=Math.sqrt(2);function Hb(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),o=r/Math.pow(10,i),a=o>=B4e?10:o>=z4e?5:o>=V4e?2:1;let s,l,u;return i<0?(u=Math.pow(10,-i)/a,s=Math.round(e*u),l=Math.round(t*u),s/ut&&--l,u=-u):(u=Math.pow(10,i)*a,s=Math.round(e/u),l=Math.round(t/u),s*ut&&--l),l0))return[];if(e===t)return[e];const r=t=i))return[];const s=o-i+1,l=new Array(s);if(r)if(a<0)for(let u=0;u=r)&&(n=r);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n=i)&&(n=i)}return n}function R6(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function zW(e,t,n=0,r=1/0,i){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(i=i===void 0?BW:$4e(i);r>n;){if(r-n>600){const l=r-n+1,u=t-n+1,f=Math.log(l),d=.5*Math.exp(2*f/3),p=.5*Math.sqrt(f*d*(l-d)/l)*(u-l/2<0?-1:1),m=Math.max(n,Math.floor(t-u*d/l+p)),v=Math.min(r,Math.floor(t+(l-u)*d/l+p));zW(e,t,m,v,i)}const o=e[t];let a=n,s=r;for(Ep(e,n,t),i(e[r],o)>0&&Ep(e,n,r);a0;)--s}i(e[n],o)===0?Ep(e,n,s):(++s,Ep(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function Ep(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function H4e(e,t,n){if(e=Float64Array.from(R4e(e,n)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return R6(e);if(t>=1)return M6(e);var r,i=(r-1)*t,o=Math.floor(i),a=M6(zW(e,o).subarray(0,o+1)),s=R6(e.subarray(o+1));return a+(s-a)*(i-o)}}function W4e(e,t,n=$W){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,o=Math.floor(i),a=+n(e[o],o,e),s=+n(e[o+1],o+1,e);return a+(s-a)*(i-o)}}function Y4e(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,o=new Array(i);++r>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?ny(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?ny(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=q4e.exec(e))?new Hr(t[1],t[2],t[3],1):(t=K4e.exec(e))?new Hr(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Z4e.exec(e))?ny(t[1],t[2],t[3],t[4]):(t=Q4e.exec(e))?ny(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=X4e.exec(e))?B6(t[1],t[2]/100,t[3]/100,1):(t=J4e.exec(e))?B6(t[1],t[2]/100,t[3]/100,t[4]):D6.hasOwnProperty(e)?F6(D6[e]):e==="transparent"?new Hr(NaN,NaN,NaN,0):null}function F6(e){return new Hr(e>>16&255,e>>8&255,e&255,1)}function ny(e,t,n,r){return r<=0&&(e=t=n=NaN),new Hr(e,t,n,r)}function nIe(e){return e instanceof Av||(e=jm(e)),e?(e=e.rgb(),new Hr(e.r,e.g,e.b,e.opacity)):new Hr}function DT(e,t,n,r){return arguments.length===1?nIe(e):new Hr(e,t,n,r??1)}function Hr(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}YP(Hr,DT,HW(Av,{brighter(e){return e=e==null?Wb:Math.pow(Wb,e),new Hr(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Cm:Math.pow(Cm,e),new Hr(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Hr(vu(this.r),vu(this.g),vu(this.b),Yb(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:U6,formatHex:U6,formatHex8:rIe,formatRgb:$6,toString:$6}));function U6(){return`#${ru(this.r)}${ru(this.g)}${ru(this.b)}`}function rIe(){return`#${ru(this.r)}${ru(this.g)}${ru(this.b)}${ru((isNaN(this.opacity)?1:this.opacity)*255)}`}function $6(){const e=Yb(this.opacity);return`${e===1?"rgb(":"rgba("}${vu(this.r)}, ${vu(this.g)}, ${vu(this.b)}${e===1?")":`, ${e})`}`}function Yb(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function vu(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ru(e){return e=vu(e),(e<16?"0":"")+e.toString(16)}function B6(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new po(e,t,n,r)}function WW(e){if(e instanceof po)return new po(e.h,e.s,e.l,e.opacity);if(e instanceof Av||(e=jm(e)),!e)return new po;if(e instanceof po)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(t===o?a=(n-r)/s+(n0&&l<1?0:a,new po(a,s,l,e.opacity)}function iIe(e,t,n,r){return arguments.length===1?WW(e):new po(e,t,n,r??1)}function po(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}YP(po,iIe,HW(Av,{brighter(e){return e=e==null?Wb:Math.pow(Wb,e),new po(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Cm:Math.pow(Cm,e),new po(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new Hr(fS(e>=240?e-240:e+120,i,r),fS(e,i,r),fS(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new po(z6(this.h),ry(this.s),ry(this.l),Yb(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Yb(this.opacity);return`${e===1?"hsl(":"hsla("}${z6(this.h)}, ${ry(this.s)*100}%, ${ry(this.l)*100}%${e===1?")":`, ${e})`}`}}));function z6(e){return e=(e||0)%360,e<0?e+360:e}function ry(e){return Math.max(0,Math.min(1,e||0))}function fS(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const GP=e=>()=>e;function oIe(e,t){return function(n){return e+n*t}}function aIe(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function sIe(e){return(e=+e)==1?YW:function(t,n){return n-t?aIe(t,n,e):GP(isNaN(t)?n:t)}}function YW(e,t){var n=t-e;return n?oIe(e,n):GP(isNaN(e)?t:e)}const V6=function e(t){var n=sIe(t);function r(i,o){var a=n((i=DT(i)).r,(o=DT(o)).r),s=n(i.g,o.g),l=n(i.b,o.b),u=YW(i.opacity,o.opacity);return function(f){return i.r=a(f),i.g=s(f),i.b=l(f),i.opacity=u(f),i+""}}return r.gamma=e,r}(1);function lIe(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(o){for(i=0;in&&(o=t.slice(n,o),s[a]?s[a]+=o:s[++a]=o),(r=r[0])===(i=i[0])?s[a]?s[a]+=i:s[++a]=i:(s[++a]=null,l.push({i:a,x:Gb(r,i)})),n=dS.lastIndex;return nt&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function bIe(e,t,n){var r=e[0],i=e[1],o=t[0],a=t[1];return i2?_Ie:bIe,l=u=null,d}function d(p){return p==null||isNaN(p=+p)?o:(l||(l=s(e.map(r),t,n)))(r(a(p)))}return d.invert=function(p){return a(i((u||(u=s(t,e.map(r),Gb)))(p)))},d.domain=function(p){return arguments.length?(e=Array.from(p,qb),f()):e.slice()},d.range=function(p){return arguments.length?(t=Array.from(p),f()):t.slice()},d.rangeRound=function(p){return t=Array.from(p),n=qP,f()},d.clamp=function(p){return arguments.length?(a=p?!0:Mr,f()):a!==Mr},d.interpolate=function(p){return arguments.length?(n=p,f()):n},d.unknown=function(p){return arguments.length?(o=p,d):o},function(p,m){return r=p,i=m,f()}}function KP(){return Iw()(Mr,Mr)}function wIe(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Kb(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function Yf(e){return e=Kb(Math.abs(e)),e?e[1]:NaN}function xIe(e,t){return function(n,r){for(var i=n.length,o=[],a=0,s=e[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),o.push(n.substring(i-=s,i+s)),!((l+=s+1)>r));)s=e[a=(a+1)%e.length];return o.reverse().join(t)}}function OIe(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var SIe=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Pm(e){if(!(t=SIe.exec(e)))throw new Error("invalid format: "+e);var t;return new ZP({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Pm.prototype=ZP.prototype;function ZP(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}ZP.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function EIe(e){e:for(var t=e.length,n=1,r=-1,i;n0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var GW;function TIe(e,t){var n=Kb(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(GW=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+Kb(e,Math.max(0,t+o-1))[0]}function W6(e,t){var n=Kb(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const Y6={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:wIe,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>W6(e*100,t),r:W6,s:TIe,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function G6(e){return e}var q6=Array.prototype.map,K6=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function CIe(e){var t=e.grouping===void 0||e.thousands===void 0?G6:xIe(q6.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",o=e.numerals===void 0?G6:OIe(q6.call(e.numerals,String)),a=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function u(d){d=Pm(d);var p=d.fill,m=d.align,v=d.sign,g=d.symbol,x=d.zero,b=d.width,_=d.comma,w=d.precision,O=d.trim,E=d.type;E==="n"?(_=!0,E="g"):Y6[E]||(w===void 0&&(w=12),O=!0,E="g"),(x||p==="0"&&m==="=")&&(x=!0,p="0",m="=");var T=g==="$"?n:g==="#"&&/[boxX]/.test(E)?"0"+E.toLowerCase():"",k=g==="$"?r:/[%p]/.test(E)?a:"",P=Y6[E],D=/[defgprs%]/.test(E);w=w===void 0?6:/[gprs]/.test(E)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function N(F){var B=T,Y=k,H,Q,Z;if(E==="c")Y=P(F)+Y,F="";else{F=+F;var te=F<0||1/F<0;if(F=isNaN(F)?l:P(Math.abs(F),w),O&&(F=EIe(F)),te&&+F==0&&v!=="+"&&(te=!1),B=(te?v==="("?v:s:v==="-"||v==="("?"":v)+B,Y=(E==="s"?K6[8+GW/3]:"")+Y+(te&&v==="("?")":""),D){for(H=-1,Q=F.length;++HZ||Z>57){Y=(Z===46?i+F.slice(H+1):F.slice(H))+Y,F=F.slice(0,H);break}}}_&&!x&&(F=t(F,1/0));var X=B.length+F.length+Y.length,z=X>1)+B+F+Y+z.slice(X);break;default:F=z+B+F+Y;break}return o(F)}return N.toString=function(){return d+""},N}function f(d,p){var m=u((d=Pm(d),d.type="f",d)),v=Math.max(-8,Math.min(8,Math.floor(Yf(p)/3)))*3,g=Math.pow(10,-v),x=K6[8+v/3];return function(b){return m(g*b)+x}}return{format:u,formatPrefix:f}}var iy,QP,qW;kIe({thousands:",",grouping:[3],currency:["$",""]});function kIe(e){return iy=CIe(e),QP=iy.format,qW=iy.formatPrefix,iy}function jIe(e){return Math.max(0,-Yf(Math.abs(e)))}function PIe(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Yf(t)/3)))*3-Yf(Math.abs(e)))}function AIe(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Yf(t)-Yf(e))+1}function KW(e,t,n,r){var i=MT(e,t,n),o;switch(r=Pm(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(o=PIe(i,a))&&(r.precision=o),qW(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=AIe(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=jIe(i))&&(r.precision=o-(r.type==="%")*2);break}}return QP(r)}function wl(e){var t=e.domain;return e.ticks=function(n){var r=t();return AT(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return KW(i[0],i[i.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,o=r.length-1,a=r[i],s=r[o],l,u,f=10;for(s0;){if(u=NT(a,s,n),u===l)return r[i]=a,r[o]=s,t(r);if(u>0)a=Math.floor(a/u)*u,s=Math.ceil(s/u)*u;else if(u<0)a=Math.ceil(a*u)/u,s=Math.floor(s*u)/u;else break;l=u}return e},e}function Zb(){var e=KP();return e.copy=function(){return Nv(e,Zb())},Xi.apply(e,arguments),wl(e)}function ZW(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,qb),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return ZW(e).unknown(t)},e=arguments.length?Array.from(e,qb):[0,1],wl(n)}function QW(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],o=e[r],a;return oMath.pow(e,t)}function LIe(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function X6(e){return(t,n)=>-e(-t,n)}function XP(e){const t=e(Z6,Q6),n=t.domain;let r=10,i,o;function a(){return i=LIe(r),o=DIe(r),n()[0]<0?(i=X6(i),o=X6(o),e(NIe,MIe)):e(Z6,Q6),t}return t.base=function(s){return arguments.length?(r=+s,a()):r},t.domain=function(s){return arguments.length?(n(s),a()):n()},t.ticks=s=>{const l=n();let u=l[0],f=l[l.length-1];const d=f0){for(;p<=m;++p)for(v=1;vf)break;b.push(g)}}else for(;p<=m;++p)for(v=r-1;v>=1;--v)if(g=p>0?v/o(-p):v*o(p),!(gf)break;b.push(g)}b.length*2{if(s==null&&(s=10),l==null&&(l=r===10?"s":","),typeof l!="function"&&(!(r%1)&&(l=Pm(l)).precision==null&&(l.trim=!0),l=QP(l)),s===1/0)return l;const u=Math.max(1,r*s/t.ticks().length);return f=>{let d=f/o(Math.round(i(f)));return d*rn(QW(n(),{floor:s=>o(Math.floor(i(s))),ceil:s=>o(Math.ceil(i(s)))})),t}function XW(){const e=XP(Iw()).domain([1,10]);return e.copy=()=>Nv(e,XW()).base(e.base()),Xi.apply(e,arguments),e}function J6(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function e5(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function JP(e){var t=1,n=e(J6(t),e5(t));return n.constant=function(r){return arguments.length?e(J6(t=+r),e5(t)):t},wl(n)}function JW(){var e=JP(Iw());return e.copy=function(){return Nv(e,JW()).constant(e.constant())},Xi.apply(e,arguments)}function t5(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function IIe(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function FIe(e){return e<0?-e*e:e*e}function eA(e){var t=e(Mr,Mr),n=1;function r(){return n===1?e(Mr,Mr):n===.5?e(IIe,FIe):e(t5(n),t5(1/n))}return t.exponent=function(i){return arguments.length?(n=+i,r()):n},wl(t)}function tA(){var e=eA(Iw());return e.copy=function(){return Nv(e,tA()).exponent(e.exponent())},Xi.apply(e,arguments),e}function UIe(){return tA.apply(null,arguments).exponent(.5)}function n5(e){return Math.sign(e)*e*e}function $Ie(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function eY(){var e=KP(),t=[0,1],n=!1,r;function i(o){var a=$Ie(e(o));return isNaN(a)?r:n?Math.round(a):a}return i.invert=function(o){return e.invert(n5(o))},i.domain=function(o){return arguments.length?(e.domain(o),i):e.domain()},i.range=function(o){return arguments.length?(e.range((t=Array.from(o,qb)).map(n5)),i):t.slice()},i.rangeRound=function(o){return i.range(o).round(!0)},i.round=function(o){return arguments.length?(n=!!o,i):n},i.clamp=function(o){return arguments.length?(e.clamp(o),i):e.clamp()},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return eY(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},Xi.apply(i,arguments),wl(i)}function tY(){var e=[],t=[],n=[],r;function i(){var a=0,s=Math.max(1,t.length);for(n=new Array(s-1);++a0?n[s-1]:e[0],s=n?[r[n-1],t]:[r[u-1],r[u]]},a.unknown=function(l){return arguments.length&&(o=l),a},a.thresholds=function(){return r.slice()},a.copy=function(){return nY().domain([e,t]).range(i).unknown(o)},Xi.apply(wl(a),arguments)}function rY(){var e=[.5],t=[0,1],n,r=1;function i(o){return o!=null&&o<=o?t[Pv(e,o,0,r)]:n}return i.domain=function(o){return arguments.length?(e=Array.from(o),r=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(o){return arguments.length?(t=Array.from(o),r=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(o){var a=t.indexOf(o);return[e[a-1],e[a]]},i.unknown=function(o){return arguments.length?(n=o,i):n},i.copy=function(){return rY().domain(e).range(t).unknown(n)},Xi.apply(i,arguments)}const pS=new Date,hS=new Date;function Ln(e,t,n,r){function i(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}return i.floor=o=>(e(o=new Date(+o)),o),i.ceil=o=>(e(o=new Date(o-1)),t(o,1),e(o),o),i.round=o=>{const a=i(o),s=i.ceil(o);return o-a(t(o=new Date(+o),a==null?1:Math.floor(a)),o),i.range=(o,a,s)=>{const l=[];if(o=i.ceil(o),s=s==null?1:Math.floor(s),!(o0))return l;let u;do l.push(u=new Date(+o)),t(o,s),e(o);while(uLn(a=>{if(a>=a)for(;e(a),!o(a);)a.setTime(a-1)},(a,s)=>{if(a>=a)if(s<0)for(;++s<=0;)for(;t(a,-1),!o(a););else for(;--s>=0;)for(;t(a,1),!o(a););}),n&&(i.count=(o,a)=>(pS.setTime(+o),hS.setTime(+a),e(pS),e(hS),Math.floor(n(pS,hS))),i.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?i.filter(r?a=>r(a)%o===0:a=>i.count(0,a)%o===0):i)),i}const Qb=Ln(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Qb.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Ln(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Qb);Qb.range;const Oa=1e3,Ri=Oa*60,Sa=Ri*60,Ba=Sa*24,nA=Ba*7,r5=Ba*30,mS=Ba*365,iu=Ln(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Oa)},(e,t)=>(t-e)/Oa,e=>e.getUTCSeconds());iu.range;const rA=Ln(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Oa)},(e,t)=>{e.setTime(+e+t*Ri)},(e,t)=>(t-e)/Ri,e=>e.getMinutes());rA.range;const iA=Ln(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Ri)},(e,t)=>(t-e)/Ri,e=>e.getUTCMinutes());iA.range;const oA=Ln(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Oa-e.getMinutes()*Ri)},(e,t)=>{e.setTime(+e+t*Sa)},(e,t)=>(t-e)/Sa,e=>e.getHours());oA.range;const aA=Ln(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Sa)},(e,t)=>(t-e)/Sa,e=>e.getUTCHours());aA.range;const Mv=Ln(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Ri)/Ba,e=>e.getDate()-1);Mv.range;const Fw=Ln(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Ba,e=>e.getUTCDate()-1);Fw.range;const iY=Ln(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Ba,e=>Math.floor(e/Ba));iY.range;function Vu(e){return Ln(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Ri)/nA)}const Uw=Vu(0),Xb=Vu(1),BIe=Vu(2),zIe=Vu(3),Gf=Vu(4),VIe=Vu(5),HIe=Vu(6);Uw.range;Xb.range;BIe.range;zIe.range;Gf.range;VIe.range;HIe.range;function Hu(e){return Ln(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/nA)}const $w=Hu(0),Jb=Hu(1),WIe=Hu(2),YIe=Hu(3),qf=Hu(4),GIe=Hu(5),qIe=Hu(6);$w.range;Jb.range;WIe.range;YIe.range;qf.range;GIe.range;qIe.range;const sA=Ln(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());sA.range;const lA=Ln(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());lA.range;const za=Ln(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());za.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Ln(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});za.range;const Va=Ln(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Va.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Ln(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});Va.range;function oY(e,t,n,r,i,o){const a=[[iu,1,Oa],[iu,5,5*Oa],[iu,15,15*Oa],[iu,30,30*Oa],[o,1,Ri],[o,5,5*Ri],[o,15,15*Ri],[o,30,30*Ri],[i,1,Sa],[i,3,3*Sa],[i,6,6*Sa],[i,12,12*Sa],[r,1,Ba],[r,2,2*Ba],[n,1,nA],[t,1,r5],[t,3,3*r5],[e,1,mS]];function s(u,f,d){const p=fx).right(a,p);if(m===a.length)return e.every(MT(u/mS,f/mS,d));if(m===0)return Qb.every(Math.max(MT(u,f,d),1));const[v,g]=a[p/a[m-1][2]53)return null;"w"in K||(K.w=1),"Z"in K?(he=gS(Tp(K.y,0,1)),Ee=he.getUTCDay(),he=Ee>4||Ee===0?Jb.ceil(he):Jb(he),he=Fw.offset(he,(K.V-1)*7),K.y=he.getUTCFullYear(),K.m=he.getUTCMonth(),K.d=he.getUTCDate()+(K.w+6)%7):(he=vS(Tp(K.y,0,1)),Ee=he.getDay(),he=Ee>4||Ee===0?Xb.ceil(he):Xb(he),he=Mv.offset(he,(K.V-1)*7),K.y=he.getFullYear(),K.m=he.getMonth(),K.d=he.getDate()+(K.w+6)%7)}else("W"in K||"U"in K)&&("w"in K||(K.w="u"in K?K.u%7:"W"in K?1:0),Ee="Z"in K?gS(Tp(K.y,0,1)).getUTCDay():vS(Tp(K.y,0,1)).getDay(),K.m=0,K.d="W"in K?(K.w+6)%7+K.W*7-(Ee+5)%7:K.w+K.U*7-(Ee+6)%7);return"Z"in K?(K.H+=K.Z/100|0,K.M+=K.Z%100,gS(K)):vS(K)}}function P(A,$,J,K){for(var se=0,he=$.length,Ee=J.length,ue,ve;se=Ee)return-1;if(ue=$.charCodeAt(se++),ue===37){if(ue=$.charAt(se++),ve=E[ue in i5?$.charAt(se++):ue],!ve||(K=ve(A,J,K))<0)return-1}else if(ue!=J.charCodeAt(K++))return-1}return K}function D(A,$,J){var K=u.exec($.slice(J));return K?(A.p=f.get(K[0].toLowerCase()),J+K[0].length):-1}function N(A,$,J){var K=m.exec($.slice(J));return K?(A.w=v.get(K[0].toLowerCase()),J+K[0].length):-1}function F(A,$,J){var K=d.exec($.slice(J));return K?(A.w=p.get(K[0].toLowerCase()),J+K[0].length):-1}function B(A,$,J){var K=b.exec($.slice(J));return K?(A.m=_.get(K[0].toLowerCase()),J+K[0].length):-1}function Y(A,$,J){var K=g.exec($.slice(J));return K?(A.m=x.get(K[0].toLowerCase()),J+K[0].length):-1}function H(A,$,J){return P(A,t,$,J)}function Q(A,$,J){return P(A,n,$,J)}function Z(A,$,J){return P(A,r,$,J)}function te(A){return a[A.getDay()]}function X(A){return o[A.getDay()]}function z(A){return l[A.getMonth()]}function V(A){return s[A.getMonth()]}function W(A){return i[+(A.getHours()>=12)]}function re(A){return 1+~~(A.getMonth()/3)}function q(A){return a[A.getUTCDay()]}function ee(A){return o[A.getUTCDay()]}function oe(A){return l[A.getUTCMonth()]}function le(A){return s[A.getUTCMonth()]}function fe(A){return i[+(A.getUTCHours()>=12)]}function j(A){return 1+~~(A.getUTCMonth()/3)}return{format:function(A){var $=T(A+="",w);return $.toString=function(){return A},$},parse:function(A){var $=k(A+="",!1);return $.toString=function(){return A},$},utcFormat:function(A){var $=T(A+="",O);return $.toString=function(){return A},$},utcParse:function(A){var $=k(A+="",!0);return $.toString=function(){return A},$}}}var i5={"-":"",_:" ",0:"0"},Jn=/^\s*\d+/,e6e=/^%/,t6e=/[\\^$*+?|[\]().{}]/g;function St(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o[t.toLowerCase(),n]))}function r6e(e,t,n){var r=Jn.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function i6e(e,t,n){var r=Jn.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function o6e(e,t,n){var r=Jn.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function a6e(e,t,n){var r=Jn.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function s6e(e,t,n){var r=Jn.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function o5(e,t,n){var r=Jn.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function a5(e,t,n){var r=Jn.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function l6e(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function u6e(e,t,n){var r=Jn.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function c6e(e,t,n){var r=Jn.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function s5(e,t,n){var r=Jn.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function f6e(e,t,n){var r=Jn.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function l5(e,t,n){var r=Jn.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function d6e(e,t,n){var r=Jn.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function p6e(e,t,n){var r=Jn.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function h6e(e,t,n){var r=Jn.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function m6e(e,t,n){var r=Jn.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function v6e(e,t,n){var r=e6e.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function g6e(e,t,n){var r=Jn.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function y6e(e,t,n){var r=Jn.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function u5(e,t){return St(e.getDate(),t,2)}function b6e(e,t){return St(e.getHours(),t,2)}function _6e(e,t){return St(e.getHours()%12||12,t,2)}function w6e(e,t){return St(1+Mv.count(za(e),e),t,3)}function aY(e,t){return St(e.getMilliseconds(),t,3)}function x6e(e,t){return aY(e,t)+"000"}function O6e(e,t){return St(e.getMonth()+1,t,2)}function S6e(e,t){return St(e.getMinutes(),t,2)}function E6e(e,t){return St(e.getSeconds(),t,2)}function T6e(e){var t=e.getDay();return t===0?7:t}function C6e(e,t){return St(Uw.count(za(e)-1,e),t,2)}function sY(e){var t=e.getDay();return t>=4||t===0?Gf(e):Gf.ceil(e)}function k6e(e,t){return e=sY(e),St(Gf.count(za(e),e)+(za(e).getDay()===4),t,2)}function j6e(e){return e.getDay()}function P6e(e,t){return St(Xb.count(za(e)-1,e),t,2)}function A6e(e,t){return St(e.getFullYear()%100,t,2)}function N6e(e,t){return e=sY(e),St(e.getFullYear()%100,t,2)}function M6e(e,t){return St(e.getFullYear()%1e4,t,4)}function R6e(e,t){var n=e.getDay();return e=n>=4||n===0?Gf(e):Gf.ceil(e),St(e.getFullYear()%1e4,t,4)}function D6e(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+St(t/60|0,"0",2)+St(t%60,"0",2)}function c5(e,t){return St(e.getUTCDate(),t,2)}function L6e(e,t){return St(e.getUTCHours(),t,2)}function I6e(e,t){return St(e.getUTCHours()%12||12,t,2)}function F6e(e,t){return St(1+Fw.count(Va(e),e),t,3)}function lY(e,t){return St(e.getUTCMilliseconds(),t,3)}function U6e(e,t){return lY(e,t)+"000"}function $6e(e,t){return St(e.getUTCMonth()+1,t,2)}function B6e(e,t){return St(e.getUTCMinutes(),t,2)}function z6e(e,t){return St(e.getUTCSeconds(),t,2)}function V6e(e){var t=e.getUTCDay();return t===0?7:t}function H6e(e,t){return St($w.count(Va(e)-1,e),t,2)}function uY(e){var t=e.getUTCDay();return t>=4||t===0?qf(e):qf.ceil(e)}function W6e(e,t){return e=uY(e),St(qf.count(Va(e),e)+(Va(e).getUTCDay()===4),t,2)}function Y6e(e){return e.getUTCDay()}function G6e(e,t){return St(Jb.count(Va(e)-1,e),t,2)}function q6e(e,t){return St(e.getUTCFullYear()%100,t,2)}function K6e(e,t){return e=uY(e),St(e.getUTCFullYear()%100,t,2)}function Z6e(e,t){return St(e.getUTCFullYear()%1e4,t,4)}function Q6e(e,t){var n=e.getUTCDay();return e=n>=4||n===0?qf(e):qf.ceil(e),St(e.getUTCFullYear()%1e4,t,4)}function X6e(){return"+0000"}function f5(){return"%"}function d5(e){return+e}function p5(e){return Math.floor(+e/1e3)}var vc,cY,fY;J6e({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function J6e(e){return vc=JIe(e),cY=vc.format,vc.parse,fY=vc.utcFormat,vc.utcParse,vc}function e5e(e){return new Date(e)}function t5e(e){return e instanceof Date?+e:+new Date(+e)}function uA(e,t,n,r,i,o,a,s,l,u){var f=KP(),d=f.invert,p=f.domain,m=u(".%L"),v=u(":%S"),g=u("%I:%M"),x=u("%I %p"),b=u("%a %d"),_=u("%b %d"),w=u("%B"),O=u("%Y");function E(T){return(l(T)t(i/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(i,o)=>H4e(e,o/r))},n.copy=function(){return mY(t).domain(e)},es.apply(n,arguments)}function zw(){var e=0,t=.5,n=1,r=1,i,o,a,s,l,u=Mr,f,d=!1,p;function m(g){return isNaN(g=+g)?p:(g=.5+((g=+f(g))-o)*(r*gt}var bY=l5e,u5e=Vw,c5e=bY,f5e=Rd;function d5e(e){return e&&e.length?u5e(e,f5e,c5e):void 0}var p5e=d5e;const Ps=Et(p5e);function h5e(e,t){return ee.e^o.s<0?1:-1;for(r=o.d.length,i=e.d.length,t=0,n=re.d[t]^o.s<0?1:-1;return r===i?0:r>i^o.s<0?1:-1};Be.decimalPlaces=Be.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*Ht;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};Be.dividedBy=Be.div=function(e){return ja(this,new this.constructor(e))};Be.dividedToIntegerBy=Be.idiv=function(e){var t=this,n=t.constructor;return Dt(ja(t,new n(e),0,1),n.precision)};Be.equals=Be.eq=function(e){return!this.cmp(e)};Be.exponent=function(){return Tn(this)};Be.greaterThan=Be.gt=function(e){return this.cmp(e)>0};Be.greaterThanOrEqualTo=Be.gte=function(e){return this.cmp(e)>=0};Be.isInteger=Be.isint=function(){return this.e>this.d.length-2};Be.isNegative=Be.isneg=function(){return this.s<0};Be.isPositive=Be.ispos=function(){return this.s>0};Be.isZero=function(){return this.s===0};Be.lessThan=Be.lt=function(e){return this.cmp(e)<0};Be.lessThanOrEqualTo=Be.lte=function(e){return this.cmp(e)<1};Be.logarithm=Be.log=function(e){var t,n=this,r=n.constructor,i=r.precision,o=i+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(oi))throw Error(qi+"NaN");if(n.s<1)throw Error(qi+(n.s?"NaN":"-Infinity"));return n.eq(oi)?new r(0):(Jt=!1,t=ja(Am(n,o),Am(e,o),o),Jt=!0,Dt(t,i))};Be.minus=Be.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?SY(t,e):xY(t,(e.s=-e.s,e))};Be.modulo=Be.mod=function(e){var t,n=this,r=n.constructor,i=r.precision;if(e=new r(e),!e.s)throw Error(qi+"NaN");return n.s?(Jt=!1,t=ja(n,e,0,1).times(e),Jt=!0,n.minus(t)):Dt(new r(n),i)};Be.naturalExponential=Be.exp=function(){return OY(this)};Be.naturalLogarithm=Be.ln=function(){return Am(this)};Be.negated=Be.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};Be.plus=Be.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?xY(t,e):SY(t,(e.s=-e.s,e))};Be.precision=Be.sd=function(e){var t,n,r,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(gu+e);if(t=Tn(i)+1,r=i.d.length-1,n=r*Ht+1,r=i.d[r],r){for(;r%10==0;r/=10)n--;for(r=i.d[0];r>=10;r/=10)n++}return e&&t>n?t:n};Be.squareRoot=Be.sqrt=function(){var e,t,n,r,i,o,a,s=this,l=s.constructor;if(s.s<1){if(!s.s)return new l(0);throw Error(qi+"NaN")}for(e=Tn(s),Jt=!1,i=Math.sqrt(+s),i==0||i==1/0?(t=Bo(s.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=Fd((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),r=new l(t)):r=new l(i.toString()),n=l.precision,i=a=n+3;;)if(o=r,r=o.plus(ja(s,o,a+2)).times(.5),Bo(o.d).slice(0,a)===(t=Bo(r.d)).slice(0,a)){if(t=t.slice(a-3,a+1),i==a&&t=="4999"){if(Dt(o,n+1,0),o.times(o).eq(s)){r=o;break}}else if(t!="9999")break;a+=4}return Jt=!0,Dt(r,n)};Be.times=Be.mul=function(e){var t,n,r,i,o,a,s,l,u,f=this,d=f.constructor,p=f.d,m=(e=new d(e)).d;if(!f.s||!e.s)return new d(0);for(e.s*=f.s,n=f.e+e.e,l=p.length,u=m.length,l=0;){for(t=0,i=l+r;i>r;)s=o[i]+m[r]*p[i-r-1]+t,o[i--]=s%Hn|0,t=s/Hn|0;o[i]=(o[i]+t)%Hn|0}for(;!o[--a];)o.pop();return t?++n:o.shift(),e.d=o,e.e=n,Jt?Dt(e,d.precision):e};Be.toDecimalPlaces=Be.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(ra(e,0,Id),t===void 0?t=r.rounding:ra(t,0,8),Dt(n,e+Tn(n)+1,t))};Be.toExponential=function(e,t){var n,r=this,i=r.constructor;return e===void 0?n=Ru(r,!0):(ra(e,0,Id),t===void 0?t=i.rounding:ra(t,0,8),r=Dt(new i(r),e+1,t),n=Ru(r,!0,e+1)),n};Be.toFixed=function(e,t){var n,r,i=this,o=i.constructor;return e===void 0?Ru(i):(ra(e,0,Id),t===void 0?t=o.rounding:ra(t,0,8),r=Dt(new o(i),e+Tn(i)+1,t),n=Ru(r.abs(),!1,e+Tn(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)};Be.toInteger=Be.toint=function(){var e=this,t=e.constructor;return Dt(new t(e),Tn(e)+1,t.rounding)};Be.toNumber=function(){return+this};Be.toPower=Be.pow=function(e){var t,n,r,i,o,a,s=this,l=s.constructor,u=12,f=+(e=new l(e));if(!e.s)return new l(oi);if(s=new l(s),!s.s){if(e.s<1)throw Error(qi+"Infinity");return s}if(s.eq(oi))return s;if(r=l.precision,e.eq(oi))return Dt(s,r);if(t=e.e,n=e.d.length-1,a=t>=n,o=s.s,a){if((n=f<0?-f:f)<=wY){for(i=new l(oi),t=Math.ceil(r/Ht+4),Jt=!1;n%2&&(i=i.times(s),v5(i.d,t)),n=Fd(n/2),n!==0;)s=s.times(s),v5(s.d,t);return Jt=!0,e.s<0?new l(oi).div(i):Dt(i,r)}}else if(o<0)throw Error(qi+"NaN");return o=o<0&&e.d[Math.max(t,n)]&1?-1:1,s.s=1,Jt=!1,i=e.times(Am(s,r+u)),Jt=!0,i=OY(i),i.s=o,i};Be.toPrecision=function(e,t){var n,r,i=this,o=i.constructor;return e===void 0?(n=Tn(i),r=Ru(i,n<=o.toExpNeg||n>=o.toExpPos)):(ra(e,1,Id),t===void 0?t=o.rounding:ra(t,0,8),i=Dt(new o(i),e,t),n=Tn(i),r=Ru(i,e<=n||n<=o.toExpNeg,e)),r};Be.toSignificantDigits=Be.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(ra(e,1,Id),t===void 0?t=r.rounding:ra(t,0,8)),Dt(new r(n),e,t)};Be.toString=Be.valueOf=Be.val=Be.toJSON=Be[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Tn(e),n=e.constructor;return Ru(e,t<=n.toExpNeg||t>=n.toExpPos)};function xY(e,t){var n,r,i,o,a,s,l,u,f=e.constructor,d=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),Jt?Dt(t,d):t;if(l=e.d,u=t.d,a=e.e,i=t.e,l=l.slice(),o=a-i,o){for(o<0?(r=l,o=-o,s=u.length):(r=u,i=a,s=l.length),a=Math.ceil(d/Ht),s=a>s?a+1:s+1,o>s&&(o=s,r.length=1),r.reverse();o--;)r.push(0);r.reverse()}for(s=l.length,o=u.length,s-o<0&&(o=s,r=u,u=l,l=r),n=0;o;)n=(l[--o]=l[o]+u[o]+n)/Hn|0,l[o]%=Hn;for(n&&(l.unshift(n),++i),s=l.length;l[--s]==0;)l.pop();return t.d=l,t.e=i,Jt?Dt(t,d):t}function ra(e,t,n){if(e!==~~e||en)throw Error(gu+e)}function Bo(e){var t,n,r,i=e.length-1,o="",a=e[0];if(i>0){for(o+=a,t=1;ta?1:-1;else for(s=l=0;si[s]?1:-1;break}return l}function n(r,i,o){for(var a=0;o--;)r[o]-=a,a=r[o]1;)r.shift()}return function(r,i,o,a){var s,l,u,f,d,p,m,v,g,x,b,_,w,O,E,T,k,P,D=r.constructor,N=r.s==i.s?1:-1,F=r.d,B=i.d;if(!r.s)return new D(r);if(!i.s)throw Error(qi+"Division by zero");for(l=r.e-i.e,k=B.length,E=F.length,m=new D(N),v=m.d=[],u=0;B[u]==(F[u]||0);)++u;if(B[u]>(F[u]||0)&&--l,o==null?_=o=D.precision:a?_=o+(Tn(r)-Tn(i))+1:_=o,_<0)return new D(0);if(_=_/Ht+2|0,u=0,k==1)for(f=0,B=B[0],_++;(u1&&(B=e(B,f),F=e(F,f),k=B.length,E=F.length),O=k,g=F.slice(0,k),x=g.length;x=Hn/2&&++T;do f=0,s=t(B,g,k,x),s<0?(b=g[0],k!=x&&(b=b*Hn+(g[1]||0)),f=b/T|0,f>1?(f>=Hn&&(f=Hn-1),d=e(B,f),p=d.length,x=g.length,s=t(d,g,p,x),s==1&&(f--,n(d,k16)throw Error(dA+Tn(e));if(!e.s)return new f(oi);for(t==null?(Jt=!1,s=d):s=t,a=new f(.03125);e.abs().gte(.1);)e=e.times(a),u+=5;for(r=Math.log(Wl(2,u))/Math.LN10*2+5|0,s+=r,n=i=o=new f(oi),f.precision=s;;){if(i=Dt(i.times(e),s),n=n.times(++l),a=o.plus(ja(i,n,s)),Bo(a.d).slice(0,s)===Bo(o.d).slice(0,s)){for(;u--;)o=Dt(o.times(o),s);return f.precision=d,t==null?(Jt=!0,Dt(o,d)):o}o=a}}function Tn(e){for(var t=e.e*Ht,n=e.d[0];n>=10;n/=10)t++;return t}function yS(e,t,n){if(t>e.LN10.sd())throw Jt=!0,n&&(e.precision=n),Error(qi+"LN10 precision limit exceeded");return Dt(new e(e.LN10),t)}function _s(e){for(var t="";e--;)t+="0";return t}function Am(e,t){var n,r,i,o,a,s,l,u,f,d=1,p=10,m=e,v=m.d,g=m.constructor,x=g.precision;if(m.s<1)throw Error(qi+(m.s?"NaN":"-Infinity"));if(m.eq(oi))return new g(0);if(t==null?(Jt=!1,u=x):u=t,m.eq(10))return t==null&&(Jt=!0),yS(g,u);if(u+=p,g.precision=u,n=Bo(v),r=n.charAt(0),o=Tn(m),Math.abs(o)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)m=m.times(e),n=Bo(m.d),r=n.charAt(0),d++;o=Tn(m),r>1?(m=new g("0."+n),o++):m=new g(r+"."+n.slice(1))}else return l=yS(g,u+2,x).times(o+""),m=Am(new g(r+"."+n.slice(1)),u-p).plus(l),g.precision=x,t==null?(Jt=!0,Dt(m,x)):m;for(s=a=m=ja(m.minus(oi),m.plus(oi),u),f=Dt(m.times(m),u),i=3;;){if(a=Dt(a.times(f),u),l=s.plus(ja(a,new g(i),u)),Bo(l.d).slice(0,u)===Bo(s.d).slice(0,u))return s=s.times(2),o!==0&&(s=s.plus(yS(g,u+2,x).times(o+""))),s=ja(s,new g(d),u),g.precision=x,t==null?(Jt=!0,Dt(s,x)):s;s=l,i+=2}}function m5(e,t){var n,r,i;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;)++r;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(r,i),t){if(i-=r,n=n-r-1,e.e=Fd(n/Ht),e.d=[],r=(n+1)%Ht,n<0&&(r+=Ht),re_||e.e<-e_))throw Error(dA+n)}else e.s=0,e.e=0,e.d=[0];return e}function Dt(e,t,n){var r,i,o,a,s,l,u,f,d=e.d;for(a=1,o=d[0];o>=10;o/=10)a++;if(r=t-a,r<0)r+=Ht,i=t,u=d[f=0];else{if(f=Math.ceil((r+1)/Ht),o=d.length,f>=o)return e;for(u=o=d[f],a=1;o>=10;o/=10)a++;r%=Ht,i=r-Ht+a}if(n!==void 0&&(o=Wl(10,a-i-1),s=u/o%10|0,l=t<0||d[f+1]!==void 0||u%o,l=n<4?(s||l)&&(n==0||n==(e.s<0?3:2)):s>5||s==5&&(n==4||l||n==6&&(r>0?i>0?u/Wl(10,a-i):0:d[f-1])%10&1||n==(e.s<0?8:7))),t<1||!d[0])return l?(o=Tn(e),d.length=1,t=t-o-1,d[0]=Wl(10,(Ht-t%Ht)%Ht),e.e=Fd(-t/Ht)||0):(d.length=1,d[0]=e.e=e.s=0),e;if(r==0?(d.length=f,o=1,f--):(d.length=f+1,o=Wl(10,Ht-r),d[f]=i>0?(u/Wl(10,a-i)%Wl(10,i)|0)*o:0),l)for(;;)if(f==0){(d[0]+=o)==Hn&&(d[0]=1,++e.e);break}else{if(d[f]+=o,d[f]!=Hn)break;d[f--]=0,o=1}for(r=d.length;d[--r]===0;)d.pop();if(Jt&&(e.e>e_||e.e<-e_))throw Error(dA+Tn(e));return e}function SY(e,t){var n,r,i,o,a,s,l,u,f,d,p=e.constructor,m=p.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new p(e),Jt?Dt(t,m):t;if(l=e.d,d=t.d,r=t.e,u=e.e,l=l.slice(),a=u-r,a){for(f=a<0,f?(n=l,a=-a,s=d.length):(n=d,r=u,s=l.length),i=Math.max(Math.ceil(m/Ht),s)+2,a>i&&(a=i,n.length=1),n.reverse(),i=a;i--;)n.push(0);n.reverse()}else{for(i=l.length,s=d.length,f=i0;--i)l[s++]=0;for(i=d.length;i>a;){if(l[--i]0?o=o.charAt(0)+"."+o.slice(1)+_s(r):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+_s(-i-1)+o,n&&(r=n-a)>0&&(o+=_s(r))):i>=a?(o+=_s(i+1-a),n&&(r=n-i-1)>0&&(o=o+"."+_s(r))):((r=i+1)0&&(i+1===a&&(o+="."),o+=_s(r))),e.s<0?"-"+o:o}function v5(e,t){if(e.length>t)return e.length=t,!0}function EY(e){var t,n,r;function i(o){var a=this;if(!(a instanceof i))return new i(o);if(a.constructor=i,o instanceof i){a.s=o.s,a.e=o.e,a.d=(o=o.d)?o.slice():o;return}if(typeof o=="number"){if(o*0!==0)throw Error(gu+o);if(o>0)a.s=1;else if(o<0)o=-o,a.s=-1;else{a.s=0,a.e=0,a.d=[0];return}if(o===~~o&&o<1e7){a.e=0,a.d=[o];return}return m5(a,o.toString())}else if(typeof o!="string")throw Error(gu+o);if(o.charCodeAt(0)===45?(o=o.slice(1),a.s=-1):a.s=1,D5e.test(o))m5(a,o);else throw Error(gu+o)}if(i.prototype=Be,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=EY,i.config=i.set=L5e,e===void 0&&(e={}),e)for(r=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t=i[t+1]&&r<=i[t+2])this[n]=r;else throw Error(gu+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(gu+n+": "+r);return this}var pA=EY(R5e);oi=new pA(1);const Nt=pA;function I5e(e){return B5e(e)||$5e(e)||U5e(e)||F5e()}function F5e(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function U5e(e,t){if(e){if(typeof e=="string")return FT(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return FT(e,t)}}function $5e(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function B5e(e){if(Array.isArray(e))return FT(e)}function FT(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=t?n.apply(void 0,i):e(t-a,g5(function(){for(var s=arguments.length,l=new Array(s),u=0;ue.length)&&(t=e.length);for(var n=0,r=new Array(t);n"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,i=!1,o=void 0;try{for(var a=e[Symbol.iterator](),s;!(r=(s=a.next()).done)&&(n.push(s.value),!(t&&n.length===t));r=!0);}catch(l){i=!0,o=l}finally{try{!r&&a.return!=null&&a.return()}finally{if(i)throw o}}return n}}function n8e(e){if(Array.isArray(e))return e}function PY(e){var t=Nm(e,2),n=t[0],r=t[1],i=n,o=r;return n>r&&(i=r,o=n),[i,o]}function AY(e,t,n){if(e.lte(0))return new Nt(0);var r=Yw.getDigitCount(e.toNumber()),i=new Nt(10).pow(r),o=e.div(i),a=r!==1?.05:.1,s=new Nt(Math.ceil(o.div(a).toNumber())).add(n).mul(a),l=s.mul(i);return t?l:new Nt(Math.ceil(l))}function r8e(e,t,n){var r=1,i=new Nt(e);if(!i.isint()&&n){var o=Math.abs(e);o<1?(r=new Nt(10).pow(Yw.getDigitCount(e)-1),i=new Nt(Math.floor(i.div(r).toNumber())).mul(r)):o>1&&(i=new Nt(Math.floor(e)))}else e===0?i=new Nt(Math.floor((t-1)/2)):n||(i=new Nt(Math.floor(e)));var a=Math.floor((t-1)/2),s=W5e(H5e(function(l){return i.add(new Nt(l-a).mul(r)).toNumber()}),UT);return s(0,t)}function NY(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new Nt(0),tickMin:new Nt(0),tickMax:new Nt(0)};var o=AY(new Nt(t).sub(e).div(n-1),r,i),a;e<=0&&t>=0?a=new Nt(0):(a=new Nt(e).add(t).div(2),a=a.sub(new Nt(a).mod(o)));var s=Math.ceil(a.sub(e).div(o).toNumber()),l=Math.ceil(new Nt(t).sub(a).div(o).toNumber()),u=s+l+1;return u>n?NY(e,t,n,r,i+1):(u0?l+(n-u):l,s=t>0?s:s+(n-u)),{step:o,tickMin:a.sub(new Nt(s).mul(o)),tickMax:a.add(new Nt(l).mul(o))})}function i8e(e){var t=Nm(e,2),n=t[0],r=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=Math.max(i,2),s=PY([n,r]),l=Nm(s,2),u=l[0],f=l[1];if(u===-1/0||f===1/0){var d=f===1/0?[u].concat(BT(UT(0,i-1).map(function(){return 1/0}))):[].concat(BT(UT(0,i-1).map(function(){return-1/0})),[f]);return n>r?$T(d):d}if(u===f)return r8e(u,i,o);var p=NY(u,f,a,o),m=p.step,v=p.tickMin,g=p.tickMax,x=Yw.rangeStep(v,g.add(new Nt(.1).mul(m)),m);return n>r?$T(x):x}function o8e(e,t){var n=Nm(e,2),r=n[0],i=n[1],o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=PY([r,i]),s=Nm(a,2),l=s[0],u=s[1];if(l===-1/0||u===1/0)return[r,i];if(l===u)return[l];var f=Math.max(t,2),d=AY(new Nt(u).sub(l).div(f-1),o,0),p=[].concat(BT(Yw.rangeStep(new Nt(l),new Nt(u).sub(new Nt(.99).mul(d)),d)),[u]);return r>i?$T(p):p}var a8e=kY(i8e),s8e=kY(o8e),l8e=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function t_(){return t_=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function m8e(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}function Ud(e){var t=e.offset,n=e.layout,r=e.width,i=e.dataKey,o=e.data,a=e.dataPointFormatter,s=e.xAxis,l=e.yAxis,u=h8e(e,l8e),f=Ve(u),d=o.map(function(p){var m=a(p,i),v=m.x,g=m.y,x=m.value,b=m.errorVal;if(!b)return null;var _=[],w,O;if(Array.isArray(b)){var E=u8e(b,2);w=E[0],O=E[1]}else w=O=b;if(n==="vertical"){var T=s.scale,k=g+t,P=k+r,D=k-r,N=T(x-w),F=T(x+O);_.push({x1:F,y1:P,x2:F,y2:D}),_.push({x1:N,y1:k,x2:F,y2:k}),_.push({x1:N,y1:P,x2:N,y2:D})}else if(n==="horizontal"){var B=l.scale,Y=v+t,H=Y-r,Q=Y+r,Z=B(x-w),te=B(x+O);_.push({x1:H,y1:te,x2:Q,y2:te}),_.push({x1:Y,y1:Z,x2:Y,y2:te}),_.push({x1:H,y1:Z,x2:Q,y2:Z})}return M.createElement(nt,t_({className:"recharts-errorBar",key:"bar-".concat(_.map(function(X){return"".concat(X.x1,"-").concat(X.x2,"-").concat(X.y1,"-").concat(X.y2)}))},f),_.map(function(X){return M.createElement("line",t_({},X,{key:"line-".concat(X.x1,"-").concat(X.x2,"-").concat(X.y1,"-").concat(X.y2)}))}))});return M.createElement(nt,{className:"recharts-errorBars"},d)}Ud.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"};Ud.displayName="ErrorBar";function Mm(e){"@babel/helpers - typeof";return Mm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mm(e)}function b5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function bS(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=-1,a=(t=n==null?void 0:n.length)!==null&&t!==void 0?t:0;if(a<=1)return 0;if(i&&i.axisType==="angleAxis"&&Math.abs(Math.abs(i.range[1]-i.range[0])-360)<=1e-6)for(var s=i.range,l=0;l0?r[l-1].coordinate:r[a-1].coordinate,f=r[l].coordinate,d=l>=a-1?r[0].coordinate:r[l+1].coordinate,p=void 0;if(Nr(f-u)!==Nr(d-f)){var m=[];if(Nr(d-f)===Nr(s[1]-s[0])){p=d;var v=f+s[1]-s[0];m[0]=Math.min(v,(v+u)/2),m[1]=Math.max(v,(v+u)/2)}else{p=u;var g=d+s[1]-s[0];m[0]=Math.min(f,(g+f)/2),m[1]=Math.max(f,(g+f)/2)}var x=[Math.min(f,(p+f)/2),Math.max(f,(p+f)/2)];if(e>x[0]&&e<=x[1]||e>=m[0]&&e<=m[1]){o=r[l].index;break}}else{var b=Math.min(u,d),_=Math.max(u,d);if(e>(b+f)/2&&e<=(_+f)/2){o=r[l].index;break}}}else for(var w=0;w0&&w(n[w].coordinate+n[w-1].coordinate)/2&&e<=(n[w].coordinate+n[w+1].coordinate)/2||w===a-1&&e>(n[w].coordinate+n[w-1].coordinate)/2){o=n[w].index;break}return o},hA=function(e){var t=e,n=t.type.displayName,r=e.props,i=r.stroke,o=r.fill,a;switch(n){case"Line":a=i;break;case"Area":case"Radar":a=i&&i!=="none"?i:o;break;default:a=o;break}return a},T8e=function(e){var t=e.barSize,n=e.stackGroups,r=n===void 0?{}:n;if(!r)return{};for(var i={},o=Object.keys(r),a=0,s=o.length;a=0});if(g&&g.length){var x=g[0].props.barSize,b=g[0].props[v];i[b]||(i[b]=[]),i[b].push({item:g[0],stackList:g.slice(1),barSize:Ze(x)?t:x})}}return i},C8e=function(e){var t=e.barGap,n=e.barCategoryGap,r=e.bandSize,i=e.sizeList,o=i===void 0?[]:i,a=e.maxBarSize,s=o.length;if(s<1)return null;var l=Vr(t,r,0,!0),u,f=[];if(o[0].barSize===+o[0].barSize){var d=!1,p=r/s,m=o.reduce(function(w,O){return w+O.barSize||0},0);m+=(s-1)*l,m>=r&&(m-=(s-1)*l,l=0),m>=r&&p>0&&(d=!0,p*=.9,m=s*p);var v=(r-m)/2>>0,g={offset:v-l,size:0};u=o.reduce(function(w,O){var E={item:O.item,position:{offset:g.offset+g.size+l,size:d?p:O.barSize}},T=[].concat(w5(w),[E]);return g=T[T.length-1].position,O.stackList&&O.stackList.length&&O.stackList.forEach(function(k){T.push({item:k,position:g})}),T},f)}else{var x=Vr(n,r,0,!0);r-2*x-(s-1)*l<=0&&(l=0);var b=(r-2*x-(s-1)*l)/s;b>1&&(b>>=0);var _=a===+a?Math.min(b,a):b;u=o.reduce(function(w,O,E){var T=[].concat(w5(w),[{item:O.item,position:{offset:x+(b+l)*E+(b-_)/2,size:_}}]);return O.stackList&&O.stackList.length&&O.stackList.forEach(function(k){T.push({item:k,position:T[T.length-1].position})}),T},f)}return u},k8e=function(e,t,n,r){var i=n.children,o=n.width,a=n.margin,s=o-(a.left||0)-(a.right||0),l=MY({children:i,legendWidth:s});if(l){var u=r||{},f=u.width,d=u.height,p=l.align,m=l.verticalAlign,v=l.layout;if((v==="vertical"||v==="horizontal"&&m==="middle")&&p!=="center"&&je(e[p]))return Pi(Pi({},e),{},af({},p,e[p]+(f||0)));if((v==="horizontal"||v==="vertical"&&p==="center")&&m!=="middle"&&je(e[m]))return Pi(Pi({},e),{},af({},m,e[m]+(d||0)))}return e},j8e=function(e,t,n){return Ze(t)?!0:e==="horizontal"?t==="yAxis":e==="vertical"||n==="x"?t==="xAxis":n==="y"?t==="yAxis":!0},RY=function(e,t,n,r,i){var o=t.props.children,a=Lr(o,Ud).filter(function(l){return j8e(r,i,l.props.direction)});if(a&&a.length){var s=a.map(function(l){return l.props.dataKey});return e.reduce(function(l,u){var f=Yt(u,n,0),d=Array.isArray(f)?[Hw(f),Ps(f)]:[f,f],p=s.reduce(function(m,v){var g=Yt(u,v,0),x=d[0]-Math.abs(Array.isArray(g)?g[0]:g),b=d[1]+Math.abs(Array.isArray(g)?g[1]:g);return[Math.min(x,m[0]),Math.max(b,m[1])]},[1/0,-1/0]);return[Math.min(p[0],l[0]),Math.max(p[1],l[1])]},[1/0,-1/0])}return null},P8e=function(e,t,n,r,i){var o=t.map(function(a){return RY(e,a,n,i,r)}).filter(function(a){return!Ze(a)});return o&&o.length?o.reduce(function(a,s){return[Math.min(a[0],s[0]),Math.max(a[1],s[1])]},[1/0,-1/0]):null},DY=function(e,t,n,r,i){var o=t.map(function(s){var l=s.props.dataKey;return n==="number"&&l&&RY(e,s,l,r)||Vy(e,l,n,i)});if(n==="number")return o.reduce(function(s,l){return[Math.min(s[0],l[0]),Math.max(s[1],l[1])]},[1/0,-1/0]);var a={};return o.reduce(function(s,l){for(var u=0,f=l.length;u=2?Nr(a[0]-a[1])*2*l:l,t&&(e.ticks||e.niceTicks)){var u=(e.ticks||e.niceTicks).map(function(f){var d=i?i.indexOf(f):f;return{coordinate:r(d)+l,value:f,offset:l}});return u.filter(function(f){return!Ad(f.coordinate)})}return e.isCategorical&&e.categoricalDomain?e.categoricalDomain.map(function(f,d){return{coordinate:r(f)+l,value:f,index:d,offset:l}}):r.ticks&&!n?r.ticks(e.tickCount).map(function(f){return{coordinate:r(f)+l,value:f,offset:l}}):r.domain().map(function(f,d){return{coordinate:r(f)+l,value:i?i[f]:f,index:d,offset:l}})},_S=new WeakMap,oy=function(e,t){if(typeof t!="function")return e;_S.has(e)||_S.set(e,new WeakMap);var n=_S.get(e);if(n.has(t))return n.get(t);var r=function(){e.apply(void 0,arguments),t.apply(void 0,arguments)};return n.set(t,r),r},IY=function(e,t,n){var r=e.scale,i=e.type,o=e.layout,a=e.axisType;if(r==="auto")return o==="radial"&&a==="radiusAxis"?{scale:Tm(),realScaleType:"band"}:o==="radial"&&a==="angleAxis"?{scale:Zb(),realScaleType:"linear"}:i==="category"&&t&&(t.indexOf("LineChart")>=0||t.indexOf("AreaChart")>=0||t.indexOf("ComposedChart")>=0&&!n)?{scale:bh(),realScaleType:"point"}:i==="category"?{scale:Tm(),realScaleType:"band"}:{scale:Zb(),realScaleType:"linear"};if(kv(r)){var s="scale".concat(jw(r));return{scale:(h5[s]||bh)(),realScaleType:h5[s]?s:"point"}}return Xe(r)?{scale:r}:{scale:bh(),realScaleType:"point"}},O5=1e-4,FY=function(e){var t=e.domain();if(!(!t||t.length<=2)){var n=t.length,r=e.range(),i=Math.min(r[0],r[1])-O5,o=Math.max(r[0],r[1])+O5,a=e(t[0]),s=e(t[n-1]);(ao||so)&&e.domain([t[0],t[n-1]])}},A8e=function(e,t){if(!e)return null;for(var n=0,r=e.length;nr)&&(i[1]=r),i[0]>r&&(i[0]=r),i[1]=0?(e[a][n][0]=i,e[a][n][1]=i+s,i=e[a][n][1]):(e[a][n][0]=o,e[a][n][1]=o+s,o=e[a][n][1])}},R8e=function(e){var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n=0?(e[o][n][0]=i,e[o][n][1]=i+a,i=e[o][n][1]):(e[o][n][0]=0,e[o][n][1]=0)}},D8e={sign:M8e,expand:BTe,none:Uf,silhouette:zTe,wiggle:VTe,positive:R8e},L8e=function(e,t,n){var r=t.map(function(a){return a.props.dataKey}),i=D8e[n],o=$Te().keys(r).value(function(a,s){return+Yt(a,s,0)}).order(lT).offset(i);return o(e)},I8e=function(e,t,n,r,i,o){if(!e)return null;var a=o?t.reverse():t,s={},l=a.reduce(function(f,d){var p=d.props,m=p.stackId,v=p.hide;if(v)return f;var g=d.props[n],x=f[g]||{hasStack:!1,stackGroups:{}};if(Nn(m)){var b=x.stackGroups[m]||{numericAxisId:n,cateAxisId:r,items:[]};b.items.push(d),x.hasStack=!0,x.stackGroups[m]=b}else x.stackGroups[bl("_stackId_")]={numericAxisId:n,cateAxisId:r,items:[d]};return Pi(Pi({},f),{},af({},g,x))},s),u={};return Object.keys(l).reduce(function(f,d){var p=l[d];if(p.hasStack){var m={};p.stackGroups=Object.keys(p.stackGroups).reduce(function(v,g){var x=p.stackGroups[g];return Pi(Pi({},v),{},af({},g,{numericAxisId:n,cateAxisId:r,items:x.items,stackedData:L8e(e,x.items,i)}))},m)}return Pi(Pi({},f),{},af({},d,p))},u)},UY=function(e,t){var n=t.realScaleType,r=t.type,i=t.tickCount,o=t.originalDomain,a=t.allowDecimals,s=n||t.scale;if(s!=="auto"&&s!=="linear")return null;if(i&&r==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var l=e.domain();if(!l.length)return null;var u=a8e(l,i,a);return e.domain([Hw(u),Ps(u)]),{niceTicks:u}}if(i&&r==="number"){var f=e.domain(),d=s8e(f,i,a);return{niceTicks:d}}return null},Kf=function(e){var t=e.axis,n=e.ticks,r=e.bandSize,i=e.entry,o=e.index,a=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!Ze(i[t.dataKey])){var s=Eb(n,"value",i[t.dataKey]);if(s)return s.coordinate+r/2}return n[o]?n[o].coordinate+r/2:null}var l=Yt(i,Ze(a)?t.dataKey:a);return Ze(l)?null:t.scale(l)},S5=function(e){var t=e.axis,n=e.ticks,r=e.offset,i=e.bandSize,o=e.entry,a=e.index;if(t.type==="category")return n[a]?n[a].coordinate+r:null;var s=Yt(o,t.dataKey,t.domain[a]);return Ze(s)?null:t.scale(s)-i/2+r},F8e=function(e){var t=e.numericAxis,n=t.scale.domain();if(t.type==="number"){var r=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]);return r<=0&&i>=0?0:i<0?i:r}return n[0]},U8e=function(e,t){var n=e.props.stackId;if(Nn(n)){var r=t[n];if(r){var i=r.items.indexOf(e);return i>=0?r.stackedData[i]:null}}return null},$8e=function(e){return e.reduce(function(t,n){return[Hw(n.concat([t[0]]).filter(je)),Ps(n.concat([t[1]]).filter(je))]},[1/0,-1/0])},$Y=function(e,t,n){return Object.keys(e).reduce(function(r,i){var o=e[i],a=o.stackedData,s=a.reduce(function(l,u){var f=$8e(u.slice(t,n+1));return[Math.min(l[0],f[0]),Math.max(l[1],f[1])]},[1/0,-1/0]);return[Math.min(s[0],r[0]),Math.max(s[1],r[1])]},[1/0,-1/0]).map(function(r){return r===1/0||r===-1/0?0:r})},E5=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,T5=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,HT=function(e,t,n){if(Xe(e))return e(t,n);if(!Array.isArray(e))return t;var r=[];if(je(e[0]))r[0]=n?e[0]:Math.min(e[0],t[0]);else if(E5.test(e[0])){var i=+E5.exec(e[0])[1];r[0]=t[0]-i}else Xe(e[0])?r[0]=e[0](t[0]):r[0]=t[0];if(je(e[1]))r[1]=n?e[1]:Math.max(e[1],t[1]);else if(T5.test(e[1])){var o=+T5.exec(e[1])[1];r[1]=t[1]+o}else Xe(e[1])?r[1]=e[1](t[1]):r[1]=t[1];return r},n_=function(e,t,n){if(e&&e.scale&&e.scale.bandwidth){var r=e.scale.bandwidth();if(!n||r>0)return r}if(e&&t&&t.length>=2){for(var i=$P(t,function(f){return f.coordinate}),o=1/0,a=1,s=i.length;ae.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(e-(n.left||0)-(n.right||0)),Math.abs(t-(n.top||0)-(n.bottom||0)))/2},K8e=function(e,t,n,r,i){var o=e.width,a=e.height,s=e.startAngle,l=e.endAngle,u=Vr(e.cx,o,o/2),f=Vr(e.cy,a,a/2),d=VY(o,a,n),p=Vr(e.innerRadius,d,0),m=Vr(e.outerRadius,d,d*.8),v=Object.keys(t);return v.reduce(function(g,x){var b=t[x],_=b.domain,w=b.reversed,O;if(Ze(b.range))r==="angleAxis"?O=[s,l]:r==="radiusAxis"&&(O=[p,m]),w&&(O=[O[1],O[0]]);else{O=b.range;var E=O,T=V8e(E,2);s=T[0],l=T[1]}var k=IY(b,i),P=k.realScaleType,D=k.scale;D.domain(_).range(O),FY(D);var N=UY(D,va(va({},b),{},{realScaleType:P})),F=va(va(va({},b),N),{},{range:O,radius:m,realScaleType:P,scale:D,cx:u,cy:f,innerRadius:p,outerRadius:m,startAngle:s,endAngle:l});return va(va({},g),{},zY({},x,F))},{})},Z8e=function(e,t){var n=e.x,r=e.y,i=t.x,o=t.y;return Math.sqrt(Math.pow(n-i,2)+Math.pow(r-o,2))},Q8e=function(e,t){var n=e.x,r=e.y,i=t.cx,o=t.cy,a=Z8e({x:n,y:r},{x:i,y:o});if(a<=0)return{radius:a};var s=(n-i)/a,l=Math.acos(s);return r>o&&(l=2*Math.PI-l),{radius:a,angle:q8e(l),angleInRadian:l}},X8e=function(e){var t=e.startAngle,n=e.endAngle,r=Math.floor(t/360),i=Math.floor(n/360),o=Math.min(r,i);return{startAngle:t-o*360,endAngle:n-o*360}},J8e=function(e,t){var n=t.startAngle,r=t.endAngle,i=Math.floor(n/360),o=Math.floor(r/360),a=Math.min(i,o);return e+a*360},P5=function(e,t){var n=e.x,r=e.y,i=Q8e({x:n,y:r},t),o=i.radius,a=i.angle,s=t.innerRadius,l=t.outerRadius;if(ol)return!1;if(o===0)return!0;var u=X8e(t),f=u.startAngle,d=u.endAngle,p=a,m;if(f<=d){for(;p>d;)p-=360;for(;p=f&&p<=d}else{for(;p>f;)p-=360;for(;p=d&&p<=f}return m?va(va({},t),{},{radius:o,angle:J8e(p,t)}):null};function Lm(e){"@babel/helpers - typeof";return Lm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lm(e)}var eFe=["offset"];function tFe(e){return oFe(e)||iFe(e)||rFe(e)||nFe()}function nFe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rFe(e,t){if(e){if(typeof e=="string")return WT(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return WT(e,t)}}function iFe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function oFe(e){if(Array.isArray(e))return WT(e)}function WT(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function sFe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}function A5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function jn(e){for(var t=1;t=0?1:-1,_,w;r==="insideStart"?(_=p+b*o,w=v):r==="insideEnd"?(_=m-b*o,w=!v):r==="end"&&(_=m+b*o,w=v),w=x<=0?w:!w;var O=Ut(l,u,g,_),E=Ut(l,u,g,_+(w?1:-1)*359),T="M".concat(O.x,",").concat(O.y,` + A`).concat(g,",").concat(g,",0,1,").concat(w?0:1,`, + `).concat(E.x,",").concat(E.y),k=Ze(e.id)?bl("recharts-radial-line-"):e.id;return M.createElement("text",Im({},n,{dominantBaseline:"central",className:We("recharts-radial-bar-label",a)}),M.createElement("defs",null,M.createElement("path",{id:k,d:T})),M.createElement("textPath",{xlinkHref:"#".concat(k)},t))},hFe=function(e){var t=e.viewBox,n=e.offset,r=e.position,i=t,o=i.cx,a=i.cy,s=i.innerRadius,l=i.outerRadius,u=i.startAngle,f=i.endAngle,d=(u+f)/2;if(r==="outside"){var p=Ut(o,a,l+n,d),m=p.x,v=p.y;return{x:m,y:v,textAnchor:m>=o?"start":"end",verticalAnchor:"middle"}}if(r==="center")return{x:o,y:a,textAnchor:"middle",verticalAnchor:"middle"};if(r==="centerTop")return{x:o,y:a,textAnchor:"middle",verticalAnchor:"start"};if(r==="centerBottom")return{x:o,y:a,textAnchor:"middle",verticalAnchor:"end"};var g=(s+l)/2,x=Ut(o,a,g,d),b=x.x,_=x.y;return{x:b,y:_,textAnchor:"middle",verticalAnchor:"middle"}},mFe=function(e){var t=e.viewBox,n=e.parentViewBox,r=e.offset,i=e.position,o=t,a=o.x,s=o.y,l=o.width,u=o.height,f=u>=0?1:-1,d=f*r,p=f>0?"end":"start",m=f>0?"start":"end",v=l>=0?1:-1,g=v*r,x=v>0?"end":"start",b=v>0?"start":"end";if(i==="top"){var _={x:a+l/2,y:s-f*r,textAnchor:"middle",verticalAnchor:p};return jn(jn({},_),n?{height:Math.max(s-n.y,0),width:l}:{})}if(i==="bottom"){var w={x:a+l/2,y:s+u+d,textAnchor:"middle",verticalAnchor:m};return jn(jn({},w),n?{height:Math.max(n.y+n.height-(s+u),0),width:l}:{})}if(i==="left"){var O={x:a-g,y:s+u/2,textAnchor:x,verticalAnchor:"middle"};return jn(jn({},O),n?{width:Math.max(O.x-n.x,0),height:u}:{})}if(i==="right"){var E={x:a+l+g,y:s+u/2,textAnchor:b,verticalAnchor:"middle"};return jn(jn({},E),n?{width:Math.max(n.x+n.width-E.x,0),height:u}:{})}var T=n?{width:l,height:u}:{};return i==="insideLeft"?jn({x:a+g,y:s+u/2,textAnchor:b,verticalAnchor:"middle"},T):i==="insideRight"?jn({x:a+l-g,y:s+u/2,textAnchor:x,verticalAnchor:"middle"},T):i==="insideTop"?jn({x:a+l/2,y:s+d,textAnchor:"middle",verticalAnchor:m},T):i==="insideBottom"?jn({x:a+l/2,y:s+u-d,textAnchor:"middle",verticalAnchor:p},T):i==="insideTopLeft"?jn({x:a+g,y:s+d,textAnchor:b,verticalAnchor:m},T):i==="insideTopRight"?jn({x:a+l-g,y:s+d,textAnchor:x,verticalAnchor:m},T):i==="insideBottomLeft"?jn({x:a+g,y:s+u-d,textAnchor:b,verticalAnchor:p},T):i==="insideBottomRight"?jn({x:a+l-g,y:s+u-d,textAnchor:x,verticalAnchor:p},T):Cd(i)&&(je(i.x)||nu(i.x))&&(je(i.y)||nu(i.y))?jn({x:a+Vr(i.x,l),y:s+Vr(i.y,u),textAnchor:"end",verticalAnchor:"end"},T):jn({x:a+l/2,y:s+u/2,textAnchor:"middle",verticalAnchor:"middle"},T)},vFe=function(e){return"cx"in e&&je(e.cx)};function Yn(e){var t=e.offset,n=t===void 0?5:t,r=aFe(e,eFe),i=jn({offset:n},r),o=i.viewBox,a=i.position,s=i.value,l=i.children,u=i.content,f=i.className,d=f===void 0?"":f,p=i.textBreakAll;if(!o||Ze(s)&&Ze(l)&&!I.isValidElement(u)&&!Xe(u))return null;if(I.isValidElement(u))return I.cloneElement(u,i);var m;if(Xe(u)){if(m=I.createElement(u,i),I.isValidElement(m))return m}else m=fFe(i);var v=vFe(o),g=Ve(i,!0);if(v&&(a==="insideStart"||a==="insideEnd"||a==="end"))return pFe(i,m,g);var x=v?hFe(i):mFe(i);return M.createElement(Mu,Im({className:We("recharts-label",d)},g,x,{breakAll:p}),m)}Yn.displayName="Label";var HY=function(e){var t=e.cx,n=e.cy,r=e.angle,i=e.startAngle,o=e.endAngle,a=e.r,s=e.radius,l=e.innerRadius,u=e.outerRadius,f=e.x,d=e.y,p=e.top,m=e.left,v=e.width,g=e.height,x=e.clockWise,b=e.labelViewBox;if(b)return b;if(je(v)&&je(g)){if(je(f)&&je(d))return{x:f,y:d,width:v,height:g};if(je(p)&&je(m))return{x:p,y:m,width:v,height:g}}return je(f)&&je(d)?{x:f,y:d,width:0,height:0}:je(t)&&je(n)?{cx:t,cy:n,startAngle:i||r||0,endAngle:o||r||0,innerRadius:l||0,outerRadius:u||s||a||0,clockWise:x}:e.viewBox?e.viewBox:{}},gFe=function(e,t){return e?e===!0?M.createElement(Yn,{key:"label-implicit",viewBox:t}):Nn(e)?M.createElement(Yn,{key:"label-implicit",viewBox:t,value:e}):I.isValidElement(e)?e.type===Yn?I.cloneElement(e,{key:"label-implicit",viewBox:t}):M.createElement(Yn,{key:"label-implicit",content:e,viewBox:t}):Xe(e)?M.createElement(Yn,{key:"label-implicit",content:e,viewBox:t}):Cd(e)?M.createElement(Yn,Im({viewBox:t},e,{key:"label-implicit"})):null:null},yFe=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&n&&!e.label)return null;var r=e.children,i=HY(e),o=Lr(r,Yn).map(function(s,l){return I.cloneElement(s,{viewBox:t||i,key:"label-".concat(l)})});if(!n)return o;var a=gFe(e.label,t||i);return[a].concat(tFe(o))};Yn.parseViewBox=HY;Yn.renderCallByParent=yFe;function bFe(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var _Fe=bFe;const wFe=Et(_Fe);function Fm(e){"@babel/helpers - typeof";return Fm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fm(e)}var xFe=["valueAccessor"],OFe=["data","dataKey","clockWise","id","textBreakAll"];function SFe(e){return kFe(e)||CFe(e)||TFe(e)||EFe()}function EFe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function TFe(e,t){if(e){if(typeof e=="string")return YT(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return YT(e,t)}}function CFe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function kFe(e){if(Array.isArray(e))return YT(e)}function YT(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function NFe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}var MFe=function(e){return Array.isArray(e.value)?wFe(e.value):e.value};function go(e){var t=e.valueAccessor,n=t===void 0?MFe:t,r=R5(e,xFe),i=r.data,o=r.dataKey,a=r.clockWise,s=r.id,l=r.textBreakAll,u=R5(r,OFe);return!i||!i.length?null:M.createElement(nt,{className:"recharts-label-list"},i.map(function(f,d){var p=Ze(o)?n(f,d):Yt(f&&f.payload,o),m=Ze(s)?{}:{id:"".concat(s,"-").concat(d)};return M.createElement(Yn,i_({},Ve(f,!0),u,m,{parentViewBox:f.parentViewBox,value:p,textBreakAll:l,viewBox:Yn.parseViewBox(Ze(a)?f:M5(M5({},f),{},{clockWise:a})),key:"label-".concat(d),index:d}))}))}go.displayName="LabelList";function RFe(e,t){return e?e===!0?M.createElement(go,{key:"labelList-implicit",data:t}):M.isValidElement(e)||Xe(e)?M.createElement(go,{key:"labelList-implicit",data:t,content:e}):Cd(e)?M.createElement(go,i_({data:t},e,{key:"labelList-implicit"})):null:null}function DFe(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&n&&!e.label)return null;var r=e.children,i=Lr(r,go).map(function(a,s){return I.cloneElement(a,{data:t,key:"labelList-".concat(s)})});if(!n)return i;var o=RFe(e.label,t);return[o].concat(SFe(i))}go.renderCallByParent=DFe;function Um(e){"@babel/helpers - typeof";return Um=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Um(e)}function GT(){return GT=Object.assign?Object.assign.bind():function(e){for(var t=1;t180),",").concat(+(o>l),`, + `).concat(f.x,",").concat(f.y,` + `);if(r>0){var p=Ut(t,n,r,o),m=Ut(t,n,r,l);d+="L ".concat(m.x,",").concat(m.y,` + A `).concat(r,",").concat(r,`,0, + `).concat(+(Math.abs(s)>180),",").concat(+(o<=l),`, + `).concat(p.x,",").concat(p.y," Z")}else d+="L ".concat(t,",").concat(n," Z");return d},$Fe=function(e){var t=e.cx,n=e.cy,r=e.innerRadius,i=e.outerRadius,o=e.cornerRadius,a=e.forceCornerRadius,s=e.cornerIsExternal,l=e.startAngle,u=e.endAngle,f=Nr(u-l),d=ay({cx:t,cy:n,radius:i,angle:l,sign:f,cornerRadius:o,cornerIsExternal:s}),p=d.circleTangency,m=d.lineTangency,v=d.theta,g=ay({cx:t,cy:n,radius:i,angle:u,sign:-f,cornerRadius:o,cornerIsExternal:s}),x=g.circleTangency,b=g.lineTangency,_=g.theta,w=s?Math.abs(l-u):Math.abs(l-u)-v-_;if(w<0)return a?"M ".concat(m.x,",").concat(m.y,` + a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0 + a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0 + `):WY({cx:t,cy:n,innerRadius:r,outerRadius:i,startAngle:l,endAngle:u});var O="M ".concat(m.x,",").concat(m.y,` + A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(p.x,",").concat(p.y,` + A`).concat(i,",").concat(i,",0,").concat(+(w>180),",").concat(+(f<0),",").concat(x.x,",").concat(x.y,` + A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(b.x,",").concat(b.y,` + `);if(r>0){var E=ay({cx:t,cy:n,radius:r,angle:l,sign:f,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),T=E.circleTangency,k=E.lineTangency,P=E.theta,D=ay({cx:t,cy:n,radius:r,angle:u,sign:-f,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),N=D.circleTangency,F=D.lineTangency,B=D.theta,Y=s?Math.abs(l-u):Math.abs(l-u)-P-B;if(Y<0&&o===0)return"".concat(O,"L").concat(t,",").concat(n,"Z");O+="L".concat(F.x,",").concat(F.y,` + A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(N.x,",").concat(N.y,` + A`).concat(r,",").concat(r,",0,").concat(+(Y>180),",").concat(+(f>0),",").concat(T.x,",").concat(T.y,` + A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(k.x,",").concat(k.y,"Z")}else O+="L".concat(t,",").concat(n,"Z");return O},BFe={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},YY=function(e){var t=L5(L5({},BFe),e),n=t.cx,r=t.cy,i=t.innerRadius,o=t.outerRadius,a=t.cornerRadius,s=t.forceCornerRadius,l=t.cornerIsExternal,u=t.startAngle,f=t.endAngle,d=t.className;if(o0&&Math.abs(u-f)<360?g=$Fe({cx:n,cy:r,innerRadius:i,outerRadius:o,cornerRadius:Math.min(v,m/2),forceCornerRadius:s,cornerIsExternal:l,startAngle:u,endAngle:f}):g=WY({cx:n,cy:r,innerRadius:i,outerRadius:o,startAngle:u,endAngle:f}),M.createElement("path",GT({},Ve(t,!0),{className:p,d:g,role:"img"}))};function $m(e){"@babel/helpers - typeof";return $m=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$m(e)}function qT(){return qT=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0?1:-1,s=n>=0?1:-1,l=r>=0&&n>=0||r<0&&n<0?1:0,u;if(o>0&&i instanceof Array){for(var f=[0,0,0,0],d=0,p=4;do?o:i[d];u="M".concat(e,",").concat(t+a*f[0]),f[0]>0&&(u+="A ".concat(f[0],",").concat(f[0],",0,0,").concat(l,",").concat(e+s*f[0],",").concat(t)),u+="L ".concat(e+n-s*f[1],",").concat(t),f[1]>0&&(u+="A ".concat(f[1],",").concat(f[1],",0,0,").concat(l,`, + `).concat(e+n,",").concat(t+a*f[1])),u+="L ".concat(e+n,",").concat(t+r-a*f[2]),f[2]>0&&(u+="A ".concat(f[2],",").concat(f[2],",0,0,").concat(l,`, + `).concat(e+n-s*f[2],",").concat(t+r)),u+="L ".concat(e+s*f[3],",").concat(t+r),f[3]>0&&(u+="A ".concat(f[3],",").concat(f[3],",0,0,").concat(l,`, + `).concat(e,",").concat(t+r-a*f[3])),u+="Z"}else if(o>0&&i===+i&&i>0){var m=Math.min(o,i);u="M ".concat(e,",").concat(t+a*m,` + A `).concat(m,",").concat(m,",0,0,").concat(l,",").concat(e+s*m,",").concat(t,` + L `).concat(e+n-s*m,",").concat(t,` + A `).concat(m,",").concat(m,",0,0,").concat(l,",").concat(e+n,",").concat(t+a*m,` + L `).concat(e+n,",").concat(t+r-a*m,` + A `).concat(m,",").concat(m,",0,0,").concat(l,",").concat(e+n-s*m,",").concat(t+r,` + L `).concat(e+s*m,",").concat(t+r,` + A `).concat(m,",").concat(m,",0,0,").concat(l,",").concat(e,",").concat(t+r-a*m," Z")}else u="M ".concat(e,",").concat(t," h ").concat(n," v ").concat(r," h ").concat(-n," Z");return u},tUe=function(e,t){if(!e||!t)return!1;var n=e.x,r=e.y,i=t.x,o=t.y,a=t.width,s=t.height;if(Math.abs(a)>0&&Math.abs(s)>0){var l=Math.min(i,i+a),u=Math.max(i,i+a),f=Math.min(o,o+s),d=Math.max(o,o+s);return n>=l&&n<=u&&r>=f&&r<=d}return!1},nUe={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},mA=function(e){var t=z5(z5({},nUe),e),n=I.useRef(),r=I.useState(-1),i=GFe(r,2),o=i[0],a=i[1];I.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var w=n.current.getTotalLength();w&&a(w)}catch{}},[]);var s=t.x,l=t.y,u=t.width,f=t.height,d=t.radius,p=t.className,m=t.animationEasing,v=t.animationDuration,g=t.animationBegin,x=t.isAnimationActive,b=t.isUpdateAnimationActive;if(s!==+s||l!==+l||u!==+u||f!==+f||u===0||f===0)return null;var _=We("recharts-rectangle",p);return b?M.createElement(Gi,{canBegin:o>0,from:{width:u,height:f,x:s,y:l},to:{width:u,height:f,x:s,y:l},duration:v,animationEasing:m,isActive:b},function(w){var O=w.width,E=w.height,T=w.x,k=w.y;return M.createElement(Gi,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:g,duration:v,isActive:x,easing:m},M.createElement("path",o_({},Ve(t,!0),{className:_,d:V5(T,k,O,E,d),ref:n})))}):M.createElement("path",o_({},Ve(t,!0),{className:_,d:V5(s,l,u,f,d)}))},rUe=["points","className","baseLinePoints","connectNulls"];function Hc(){return Hc=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function oUe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}function H5(e){return uUe(e)||lUe(e)||sUe(e)||aUe()}function aUe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sUe(e,t){if(e){if(typeof e=="string")return KT(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return KT(e,t)}}function lUe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function uUe(e){if(Array.isArray(e))return KT(e)}function KT(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&arguments[0]!==void 0?arguments[0]:[],t=[[]];return e.forEach(function(n){W5(n)?t[t.length-1].push(n):t[t.length-1].length>0&&t.push([])}),W5(e[0])&&t[t.length-1].push(e[0]),t[t.length-1].length<=0&&(t=t.slice(0,-1)),t},_h=function(e,t){var n=cUe(e);t&&(n=[n.reduce(function(i,o){return[].concat(H5(i),H5(o))},[])]);var r=n.map(function(i){return i.reduce(function(o,a,s){return"".concat(o).concat(s===0?"M":"L").concat(a.x,",").concat(a.y)},"")}).join("");return n.length===1?"".concat(r,"Z"):r},fUe=function(e,t,n){var r=_h(e,n);return"".concat(r.slice(-1)==="Z"?r.slice(0,-1):r,"L").concat(_h(t.reverse(),n).slice(1))},dUe=function(e){var t=e.points,n=e.className,r=e.baseLinePoints,i=e.connectNulls,o=iUe(e,rUe);if(!t||!t.length)return null;var a=We("recharts-polygon",n);if(r&&r.length){var s=o.stroke&&o.stroke!=="none",l=fUe(t,r,i);return M.createElement("g",{className:a},M.createElement("path",Hc({},Ve(o,!0),{fill:l.slice(-1)==="Z"?o.fill:"none",stroke:"none",d:l})),s?M.createElement("path",Hc({},Ve(o,!0),{fill:"none",d:_h(t,i)})):null,s?M.createElement("path",Hc({},Ve(o,!0),{fill:"none",d:_h(r,i)})):null)}var u=_h(t,i);return M.createElement("path",Hc({},Ve(o,!0),{fill:u.slice(-1)==="Z"?o.fill:"none",className:a,d:u}))};function ZT(){return ZT=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function bUe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}var _Ue=function(e,t,n,r,i,o){return"M".concat(e,",").concat(i,"v").concat(r,"M").concat(o,",").concat(t,"h").concat(n)},wUe=function(e){var t=e.x,n=t===void 0?0:t,r=e.y,i=r===void 0?0:r,o=e.top,a=o===void 0?0:o,s=e.left,l=s===void 0?0:s,u=e.width,f=u===void 0?0:u,d=e.height,p=d===void 0?0:d,m=e.className,v=yUe(e,pUe),g=hUe({x:n,y:i,top:a,left:l,width:f,height:p},v);return!je(n)||!je(i)||!je(f)||!je(p)||!je(a)||!je(l)?null:M.createElement("path",QT({},Ve(g,!0),{className:We("recharts-cross",m),d:_Ue(n,i,f,p,a,l)}))},xUe=Vw,OUe=bY,SUe=la;function EUe(e,t){return e&&e.length?xUe(e,SUe(t),OUe):void 0}var TUe=EUe;const CUe=Et(TUe);var kUe=Vw,jUe=la,PUe=_Y;function AUe(e,t){return e&&e.length?kUe(e,jUe(t),PUe):void 0}var NUe=AUe;const MUe=Et(NUe);var RUe=["cx","cy","angle","ticks","axisLine"],DUe=["ticks","tick","angle","tickFormatter","stroke"];function Zf(e){"@babel/helpers - typeof";return Zf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zf(e)}function wh(){return wh=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function LUe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}function IUe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function K5(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function a_(e){return a_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a_(e)}function Gw(e,t,n){return t=GY(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function GY(e){var t=HUe(e,"string");return Zf(t)==="symbol"?t:String(t)}function HUe(e,t){if(Zf(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Zf(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var qw=function(e){UUe(n,e);var t=$Ue(n);function n(){return IUe(this,n),t.apply(this,arguments)}return FUe(n,[{key:"getTickValueCoord",value:function(r){var i=r.coordinate,o=this.props,a=o.angle,s=o.cx,l=o.cy;return Ut(s,l,i,a)}},{key:"getTickTextAnchor",value:function(){var r=this.props.orientation,i;switch(r){case"left":i="end";break;case"right":i="start";break;default:i="middle";break}return i}},{key:"getViewBox",value:function(){var r=this.props,i=r.cx,o=r.cy,a=r.angle,s=r.ticks,l=CUe(s,function(f){return f.coordinate||0}),u=MUe(s,function(f){return f.coordinate||0});return{cx:i,cy:o,startAngle:a,endAngle:a,innerRadius:u.coordinate||0,outerRadius:l.coordinate||0}}},{key:"renderAxisLine",value:function(){var r=this.props,i=r.cx,o=r.cy,a=r.angle,s=r.ticks,l=r.axisLine,u=q5(r,RUe),f=s.reduce(function(v,g){return[Math.min(v[0],g.coordinate),Math.max(v[1],g.coordinate)]},[1/0,-1/0]),d=Ut(i,o,f[0],a),p=Ut(i,o,f[1],a),m=Al(Al(Al({},Ve(u)),{},{fill:"none"},Ve(l)),{},{x1:d.x,y1:d.y,x2:p.x,y2:p.y});return M.createElement("line",wh({className:"recharts-polar-radius-axis-line"},m))}},{key:"renderTicks",value:function(){var r=this,i=this.props,o=i.ticks,a=i.tick,s=i.angle,l=i.tickFormatter,u=i.stroke,f=q5(i,DUe),d=this.getTickTextAnchor(),p=Ve(f),m=Ve(a),v=o.map(function(g,x){var b=r.getTickValueCoord(g),_=Al(Al(Al(Al({textAnchor:d,transform:"rotate(".concat(90-s,", ").concat(b.x,", ").concat(b.y,")")},p),{},{stroke:"none",fill:u},m),{},{index:x},b),{},{payload:g});return M.createElement(nt,wh({className:"recharts-polar-radius-axis-tick",key:"tick-".concat(g.coordinate)},al(r.props,g,x)),n.renderTickItem(a,_,l?l(g.value,x):g.value))});return M.createElement(nt,{className:"recharts-polar-radius-axis-ticks"},v)}},{key:"render",value:function(){var r=this.props,i=r.ticks,o=r.axisLine,a=r.tick;return!i||!i.length?null:M.createElement(nt,{className:"recharts-polar-radius-axis"},o&&this.renderAxisLine(),a&&this.renderTicks(),Yn.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(r,i,o){var a;return M.isValidElement(r)?a=M.cloneElement(r,i):Xe(r)?a=r(i):a=M.createElement(Mu,wh({},i,{className:"recharts-polar-radius-axis-tick-value"}),o),a}}]),n}(I.PureComponent);Gw(qw,"displayName","PolarRadiusAxis");Gw(qw,"axisType","radiusAxis");Gw(qw,"defaultProps",{type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0});function Qf(e){"@babel/helpers - typeof";return Qf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qf(e)}function ql(){return ql=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function s_(e){return s_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s_(e)}function Kw(e,t,n){return t=qY(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qY(e){var t=XUe(e,"string");return Qf(t)==="symbol"?t:String(t)}function XUe(e,t){if(Qf(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Qf(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var JUe=Math.PI/180,X5=1e-5,Zw=function(e){GUe(n,e);var t=qUe(n);function n(){return WUe(this,n),t.apply(this,arguments)}return YUe(n,[{key:"getTickLineCoord",value:function(r){var i=this.props,o=i.cx,a=i.cy,s=i.radius,l=i.orientation,u=i.tickSize,f=u||8,d=Ut(o,a,s,r.coordinate),p=Ut(o,a,s+(l==="inner"?-1:1)*f,r.coordinate);return{x1:d.x,y1:d.y,x2:p.x,y2:p.y}}},{key:"getTickTextAnchor",value:function(r){var i=this.props.orientation,o=Math.cos(-r.coordinate*JUe),a;return o>X5?a=i==="outer"?"start":"end":o<-X5?a=i==="outer"?"end":"start":a="middle",a}},{key:"renderAxisLine",value:function(){var r=this.props,i=r.cx,o=r.cy,a=r.radius,s=r.axisLine,l=r.axisLineType,u=Nl(Nl({},Ve(this.props)),{},{fill:"none"},Ve(s));if(l==="circle")return M.createElement(Rv,ql({className:"recharts-polar-angle-axis-line"},u,{cx:i,cy:o,r:a}));var f=this.props.ticks,d=f.map(function(p){return Ut(i,o,a,p.coordinate)});return M.createElement(dUe,ql({className:"recharts-polar-angle-axis-line"},u,{points:d}))}},{key:"renderTicks",value:function(){var r=this,i=this.props,o=i.ticks,a=i.tick,s=i.tickLine,l=i.tickFormatter,u=i.stroke,f=Ve(this.props),d=Ve(a),p=Nl(Nl({},f),{},{fill:"none"},Ve(s)),m=o.map(function(v,g){var x=r.getTickLineCoord(v),b=r.getTickTextAnchor(v),_=Nl(Nl(Nl({textAnchor:b},f),{},{stroke:"none",fill:u},d),{},{index:g,payload:v,x:x.x2,y:x.y2});return M.createElement(nt,ql({className:"recharts-polar-angle-axis-tick",key:"tick-".concat(v.coordinate)},al(r.props,v,g)),s&&M.createElement("line",ql({className:"recharts-polar-angle-axis-tick-line"},p,x)),a&&n.renderTickItem(a,_,l?l(v.value,g):v.value))});return M.createElement(nt,{className:"recharts-polar-angle-axis-ticks"},m)}},{key:"render",value:function(){var r=this.props,i=r.ticks,o=r.radius,a=r.axisLine;return o<=0||!i||!i.length?null:M.createElement(nt,{className:"recharts-polar-angle-axis"},a&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(r,i,o){var a;return M.isValidElement(r)?a=M.cloneElement(r,i):Xe(r)?a=r(i):a=M.createElement(Mu,ql({},i,{className:"recharts-polar-angle-axis-tick-value"}),o),a}}]),n}(I.PureComponent);Kw(Zw,"displayName","PolarAngleAxis");Kw(Zw,"axisType","angleAxis");Kw(Zw,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var e$e=cW,t$e=e$e(Object.getPrototypeOf,Object),n$e=t$e,r$e=Xa,i$e=n$e,o$e=Ja,a$e="[object Object]",s$e=Function.prototype,l$e=Object.prototype,KY=s$e.toString,u$e=l$e.hasOwnProperty,c$e=KY.call(Object);function f$e(e){if(!o$e(e)||r$e(e)!=a$e)return!1;var t=i$e(e);if(t===null)return!0;var n=u$e.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&KY.call(n)==c$e}var d$e=f$e;const p$e=Et(d$e);var h$e=Xa,m$e=Ja,v$e="[object Boolean]";function g$e(e){return e===!0||e===!1||m$e(e)&&h$e(e)==v$e}var y$e=g$e;const b$e=Et(y$e);function Vm(e){"@babel/helpers - typeof";return Vm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vm(e)}function l_(){return l_=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0,from:{upperWidth:0,lowerWidth:0,height:d,x:s,y:l},to:{upperWidth:u,lowerWidth:f,height:d,x:s,y:l},duration:v,animationEasing:m,isActive:x},function(_){var w=_.upperWidth,O=_.lowerWidth,E=_.height,T=_.x,k=_.y;return M.createElement(Gi,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:g,duration:v,easing:m},M.createElement("path",l_({},Ve(t,!0),{className:b,d:n8(T,k,w,O,E),ref:n})))}):M.createElement("g",null,M.createElement("path",l_({},Ve(t,!0),{className:b,d:n8(s,l,u,f,d)})))},P$e=["option","shapeType","propTransformer","activeClassName","isActive"];function Hm(e){"@babel/helpers - typeof";return Hm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hm(e)}function A$e(e,t){if(e==null)return{};var n=N$e(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function N$e(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}function r8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function u_(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function f_(e){return f_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},f_(e)}function Ai(e,t,n){return t=ZY(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ZY(e){var t=X$e(e,"string");return Xf(t)==="symbol"?t:String(t)}function X$e(e,t){if(Xf(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Xf(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ia=function(e){q$e(n,e);var t=K$e(n);function n(r){var i;return Y$e(this,n),i=t.call(this,r),Ai(xc(i),"pieRef",null),Ai(xc(i),"sectorRefs",[]),Ai(xc(i),"id",bl("recharts-pie-")),Ai(xc(i),"handleAnimationEnd",function(){var o=i.props.onAnimationEnd;i.setState({isAnimationFinished:!0}),Xe(o)&&o()}),Ai(xc(i),"handleAnimationStart",function(){var o=i.props.onAnimationStart;i.setState({isAnimationFinished:!1}),Xe(o)&&o()}),i.state={isAnimationFinished:!r.isAnimationActive,prevIsAnimationActive:r.isAnimationActive,prevAnimationId:r.animationId,sectorToFocus:0},i}return G$e(n,[{key:"isActiveIndex",value:function(r){var i=this.props.activeIndex;return Array.isArray(i)?i.indexOf(r)!==-1:r===i}},{key:"hasActiveIndex",value:function(){var r=this.props.activeIndex;return Array.isArray(r)?r.length!==0:r||r===0}},{key:"renderLabels",value:function(r){var i=this.props.isAnimationActive;if(i&&!this.state.isAnimationFinished)return null;var o=this.props,a=o.label,s=o.labelLine,l=o.dataKey,u=o.valueKey,f=Ve(this.props),d=Ve(a),p=Ve(s),m=a&&a.offsetRadius||20,v=r.map(function(g,x){var b=(g.startAngle+g.endAngle)/2,_=Ut(g.cx,g.cy,g.outerRadius+m,b),w=Kt(Kt(Kt(Kt({},f),g),{},{stroke:"none"},d),{},{index:x,textAnchor:n.getTextAnchor(_.x,g.cx)},_),O=Kt(Kt(Kt(Kt({},f),g),{},{fill:"none",stroke:g.fill},p),{},{index:x,points:[Ut(g.cx,g.cy,g.outerRadius,b),_],key:"line"}),E=l;return Ze(l)&&Ze(u)?E="value":Ze(l)&&(E=u),M.createElement(nt,{key:"label-".concat(g.startAngle,"-").concat(g.endAngle)},s&&n.renderLabelLineItem(s,O),n.renderLabelItem(a,w,Yt(g,E)))});return M.createElement(nt,{className:"recharts-pie-labels"},v)}},{key:"renderSectorsStatically",value:function(r){var i=this,o=this.props,a=o.activeShape,s=o.blendStroke,l=o.inactiveShape;return r.map(function(u,f){if((u==null?void 0:u.startAngle)===0&&(u==null?void 0:u.endAngle)===0&&r.length!==1)return null;var d=i.isActiveIndex(f),p=l&&i.hasActiveIndex()?l:null,m=d?a:p,v=Kt(Kt({},u),{},{stroke:s?u.fill:u.stroke,tabIndex:-1});return M.createElement(nt,Wc({ref:function(g){g&&!i.sectorRefs.includes(g)&&i.sectorRefs.push(g)},tabIndex:-1,className:"recharts-pie-sector"},al(i.props,u,f),{key:"sector-".concat(u==null?void 0:u.startAngle,"-").concat(u==null?void 0:u.endAngle,"-").concat(u.midAngle)}),M.createElement(c_,Wc({option:m,isActive:d,shapeType:"sector"},v)))})}},{key:"renderSectorsWithAnimation",value:function(){var r=this,i=this.props,o=i.sectors,a=i.isAnimationActive,s=i.animationBegin,l=i.animationDuration,u=i.animationEasing,f=i.animationId,d=this.state,p=d.prevSectors,m=d.prevIsAnimationActive;return M.createElement(Gi,{begin:s,duration:l,isActive:a,easing:u,from:{t:0},to:{t:1},key:"pie-".concat(f,"-").concat(m),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(v){var g=v.t,x=[],b=o&&o[0],_=b.startAngle;return o.forEach(function(w,O){var E=p&&p[O],T=O>0?ui(w,"paddingAngle",0):0;if(E){var k=an(E.endAngle-E.startAngle,w.endAngle-w.startAngle),P=Kt(Kt({},w),{},{startAngle:_+T,endAngle:_+k(g)+T});x.push(P),_=P.endAngle}else{var D=w.endAngle,N=w.startAngle,F=an(0,D-N),B=F(g),Y=Kt(Kt({},w),{},{startAngle:_+T,endAngle:_+B+T});x.push(Y),_=Y.endAngle}}),M.createElement(nt,null,r.renderSectorsStatically(x))})}},{key:"attachKeyboardHandlers",value:function(r){var i=this;r.onkeydown=function(o){if(!o.altKey)switch(o.key){case"ArrowLeft":{var a=++i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[a].focus(),i.setState({sectorToFocus:a});break}case"ArrowRight":{var s=--i.state.sectorToFocus<0?i.sectorRefs.length-1:i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[s].focus(),i.setState({sectorToFocus:s});break}case"Escape":{i.sectorRefs[i.state.sectorToFocus].blur(),i.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var r=this.props,i=r.sectors,o=r.isAnimationActive,a=this.state.prevSectors;return o&&i&&i.length&&(!a||!sl(a,i))?this.renderSectorsWithAnimation():this.renderSectorsStatically(i)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var r=this,i=this.props,o=i.hide,a=i.sectors,s=i.className,l=i.label,u=i.cx,f=i.cy,d=i.innerRadius,p=i.outerRadius,m=i.isAnimationActive,v=this.state.isAnimationFinished;if(o||!a||!a.length||!je(u)||!je(f)||!je(d)||!je(p))return null;var g=We("recharts-pie",s);return M.createElement(nt,{tabIndex:this.props.rootTabIndex,className:g,ref:function(x){r.pieRef=x}},this.renderSectors(),l&&this.renderLabels(a),Yn.renderCallByParent(this.props,null,!1),(!m||v)&&go.renderCallByParent(this.props,a,!1))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return i.prevIsAnimationActive!==r.isAnimationActive?{prevIsAnimationActive:r.isAnimationActive,prevAnimationId:r.animationId,curSectors:r.sectors,prevSectors:[],isAnimationFinished:!0}:r.isAnimationActive&&r.animationId!==i.prevAnimationId?{prevAnimationId:r.animationId,curSectors:r.sectors,prevSectors:i.curSectors,isAnimationFinished:!0}:r.sectors!==i.curSectors?{curSectors:r.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(r,i){return r>i?"start":r=360?_:_-1)*l,O=x-_*m-w,E=r.reduce(function(P,D){var N=Yt(D,b,0);return P+(je(N)?N:0)},0),T;if(E>0){var k;T=r.map(function(P,D){var N=Yt(P,b,0),F=Yt(P,f,D),B=(je(N)?N:0)/E,Y;D?Y=k.endAngle+Nr(g)*l*(N!==0?1:0):Y=a;var H=Y+Nr(g)*((N!==0?m:0)+B*O),Q=(Y+H)/2,Z=(v.innerRadius+v.outerRadius)/2,te=[{name:F,value:N,payload:P,dataKey:b,type:p}],X=Ut(v.cx,v.cy,Z,Q);return k=Kt(Kt(Kt({percent:B,cornerRadius:o,name:F,tooltipPayload:te,midAngle:Q,middleRadius:Z,tooltipPosition:X},P),v),{},{value:Yt(P,b),startAngle:Y,endAngle:H,payload:P,paddingAngle:Nr(g)*l}),k})}return Kt(Kt({},v),{},{sectors:T,data:r})});var J$e=Math.ceil,e7e=Math.max;function t7e(e,t,n,r){for(var i=-1,o=e7e(J$e((t-e)/(n||1)),0),a=Array(o);o--;)a[r?o:++i]=e,e+=n;return a}var n7e=t7e,r7e=RW,s8=1/0,i7e=17976931348623157e292;function o7e(e){if(!e)return e===0?e:0;if(e=r7e(e),e===s8||e===-s8){var t=e<0?-1:1;return t*i7e}return e===e?e:0}var QY=o7e,a7e=n7e,s7e=Lw,wS=QY;function l7e(e){return function(t,n,r){return r&&typeof r!="number"&&s7e(t,n,r)&&(n=r=void 0),t=wS(t),n===void 0?(n=t,t=0):n=wS(n),r=r===void 0?t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function h_(e){return h_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},h_(e)}function ri(e,t,n){return t=JY(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function JY(e){var t=O7e(e,"string");return Jf(t)==="symbol"?t:String(t)}function O7e(e,t){if(Jf(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Jf(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var S7e=function(e){var t=e.data,n=e.startIndex,r=e.endIndex,i=e.x,o=e.width,a=e.travellerWidth;if(!t||!t.length)return{};var s=t.length,l=bh().domain(d_(0,s)).range([i,i+o-a]),u=l.domain().map(function(f){return l(f)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:l(n),endX:l(r),scale:l,scaleValues:u}},d8=function(e){return e.changedTouches&&!!e.changedTouches.length},ed=function(e){b7e(n,e);var t=_7e(n);function n(r){var i;return g7e(this,n),i=t.call(this,r),ri(Mo(i),"handleDrag",function(o){i.leaveTimer&&(clearTimeout(i.leaveTimer),i.leaveTimer=null),i.state.isTravellerMoving?i.handleTravellerMove(o):i.state.isSlideMoving&&i.handleSlideDrag(o)}),ri(Mo(i),"handleTouchMove",function(o){o.changedTouches!=null&&o.changedTouches.length>0&&i.handleDrag(o.changedTouches[0])}),ri(Mo(i),"handleDragEnd",function(){i.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var o=i.props,a=o.endIndex,s=o.onDragEnd,l=o.startIndex;s==null||s({endIndex:a,startIndex:l})}),i.detachDragEndListener()}),ri(Mo(i),"handleLeaveWrapper",function(){(i.state.isTravellerMoving||i.state.isSlideMoving)&&(i.leaveTimer=window.setTimeout(i.handleDragEnd,i.props.leaveTimeOut))}),ri(Mo(i),"handleEnterSlideOrTraveller",function(){i.setState({isTextActive:!0})}),ri(Mo(i),"handleLeaveSlideOrTraveller",function(){i.setState({isTextActive:!1})}),ri(Mo(i),"handleSlideDragStart",function(o){var a=d8(o)?o.changedTouches[0]:o;i.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:a.pageX}),i.attachDragEndListener()}),i.travellerDragStartHandlers={startX:i.handleTravellerDragStart.bind(Mo(i),"startX"),endX:i.handleTravellerDragStart.bind(Mo(i),"endX")},i.state={},i}return y7e(n,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(r){var i=r.startX,o=r.endX,a=this.state.scaleValues,s=this.props,l=s.gap,u=s.data,f=u.length-1,d=Math.min(i,o),p=Math.max(i,o),m=n.getIndexInRange(a,d),v=n.getIndexInRange(a,p);return{startIndex:m-m%l,endIndex:v===f?f:v-v%l}}},{key:"getTextOfTick",value:function(r){var i=this.props,o=i.data,a=i.tickFormatter,s=i.dataKey,l=Yt(o[r],s,r);return Xe(a)?a(l,r):l}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(r){var i=this.state,o=i.slideMoveStartX,a=i.startX,s=i.endX,l=this.props,u=l.x,f=l.width,d=l.travellerWidth,p=l.startIndex,m=l.endIndex,v=l.onChange,g=r.pageX-o;g>0?g=Math.min(g,u+f-d-s,u+f-d-a):g<0&&(g=Math.max(g,u-a,u-s));var x=this.getIndex({startX:a+g,endX:s+g});(x.startIndex!==p||x.endIndex!==m)&&v&&v(x),this.setState({startX:a+g,endX:s+g,slideMoveStartX:r.pageX})}},{key:"handleTravellerDragStart",value:function(r,i){var o=d8(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:r,brushMoveStartX:o.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(r){var i,o=this.state,a=o.brushMoveStartX,s=o.movingTravellerId,l=o.endX,u=o.startX,f=this.state[s],d=this.props,p=d.x,m=d.width,v=d.travellerWidth,g=d.onChange,x=d.gap,b=d.data,_={startX:this.state.startX,endX:this.state.endX},w=r.pageX-a;w>0?w=Math.min(w,p+m-v-f):w<0&&(w=Math.max(w,p-f)),_[s]=f+w;var O=this.getIndex(_),E=O.startIndex,T=O.endIndex,k=function(){var P=b.length-1;return s==="startX"&&(l>u?E%x===0:T%x===0)||lu?T%x===0:E%x===0)||l>u&&T===P};this.setState((i={},ri(i,s,f+w),ri(i,"brushMoveStartX",r.pageX),i),function(){g&&k()&&g(O)})}},{key:"handleTravellerMoveKeyboard",value:function(r,i){var o=this,a=this.state,s=a.scaleValues,l=a.startX,u=a.endX,f=this.state[i],d=s.indexOf(f);if(d!==-1){var p=d+r;if(!(p===-1||p>=s.length)){var m=s[p];i==="startX"&&m>=u||i==="endX"&&m<=l||this.setState(ri({},i,m),function(){o.props.onChange(o.getIndex({startX:o.state.startX,endX:o.state.endX}))})}}}},{key:"renderBackground",value:function(){var r=this.props,i=r.x,o=r.y,a=r.width,s=r.height,l=r.fill,u=r.stroke;return M.createElement("rect",{stroke:u,fill:l,x:i,y:o,width:a,height:s})}},{key:"renderPanorama",value:function(){var r=this.props,i=r.x,o=r.y,a=r.width,s=r.height,l=r.data,u=r.children,f=r.padding,d=I.Children.only(u);return d?M.cloneElement(d,{x:i,y:o,width:a,height:s,margin:f,compact:!0,data:l}):null}},{key:"renderTravellerLayer",value:function(r,i){var o=this,a=this.props,s=a.y,l=a.travellerWidth,u=a.height,f=a.traveller,d=a.ariaLabel,p=a.data,m=a.startIndex,v=a.endIndex,g=Math.max(r,this.props.x),x=xS(xS({},Ve(this.props)),{},{x:g,y:s,width:l,height:u}),b=d||"Min value: ".concat(p[m].name,", Max value: ").concat(p[v].name);return M.createElement(nt,{tabIndex:0,role:"slider","aria-label":b,"aria-valuenow":r,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(_){["ArrowLeft","ArrowRight"].includes(_.key)&&(_.preventDefault(),_.stopPropagation(),o.handleTravellerMoveKeyboard(_.key==="ArrowRight"?1:-1,i))},onFocus:function(){o.setState({isTravellerFocused:!0})},onBlur:function(){o.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},n.renderTraveller(f,x))}},{key:"renderSlide",value:function(r,i){var o=this.props,a=o.y,s=o.height,l=o.stroke,u=o.travellerWidth,f=Math.min(r,i)+u,d=Math.max(Math.abs(i-r)-u,0);return M.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:l,fillOpacity:.2,x:f,y:a,width:d,height:s})}},{key:"renderText",value:function(){var r=this.props,i=r.startIndex,o=r.endIndex,a=r.y,s=r.height,l=r.travellerWidth,u=r.stroke,f=this.state,d=f.startX,p=f.endX,m=5,v={pointerEvents:"none",fill:u};return M.createElement(nt,{className:"recharts-brush-texts"},M.createElement(Mu,p_({textAnchor:"end",verticalAnchor:"middle",x:Math.min(d,p)-m,y:a+s/2},v),this.getTextOfTick(i)),M.createElement(Mu,p_({textAnchor:"start",verticalAnchor:"middle",x:Math.max(d,p)+l+m,y:a+s/2},v),this.getTextOfTick(o)))}},{key:"render",value:function(){var r=this.props,i=r.data,o=r.className,a=r.children,s=r.x,l=r.y,u=r.width,f=r.height,d=r.alwaysShowText,p=this.state,m=p.startX,v=p.endX,g=p.isTextActive,x=p.isSlideMoving,b=p.isTravellerMoving,_=p.isTravellerFocused;if(!i||!i.length||!je(s)||!je(l)||!je(u)||!je(f)||u<=0||f<=0)return null;var w=We("recharts-brush",o),O=M.Children.count(a)===1,E=v7e("userSelect","none");return M.createElement(nt,{className:w,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:E},this.renderBackground(),O&&this.renderPanorama(),this.renderSlide(m,v),this.renderTravellerLayer(m,"startX"),this.renderTravellerLayer(v,"endX"),(g||x||b||_||d)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(r){var i=r.x,o=r.y,a=r.width,s=r.height,l=r.stroke,u=Math.floor(o+s/2)-1;return M.createElement(M.Fragment,null,M.createElement("rect",{x:i,y:o,width:a,height:s,fill:l,stroke:"none"}),M.createElement("line",{x1:i+1,y1:u,x2:i+a-1,y2:u,fill:"none",stroke:"#fff"}),M.createElement("line",{x1:i+1,y1:u+2,x2:i+a-1,y2:u+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(r,i){var o;return M.isValidElement(r)?o=M.cloneElement(r,i):Xe(r)?o=r(i):o=n.renderDefaultTraveller(i),o}},{key:"getDerivedStateFromProps",value:function(r,i){var o=r.data,a=r.width,s=r.x,l=r.travellerWidth,u=r.updateId,f=r.startIndex,d=r.endIndex;if(o!==i.prevData||u!==i.prevUpdateId)return xS({prevData:o,prevTravellerWidth:l,prevUpdateId:u,prevX:s,prevWidth:a},o&&o.length?S7e({data:o,width:a,x:s,travellerWidth:l,startIndex:f,endIndex:d}):{scale:null,scaleValues:null});if(i.scale&&(a!==i.prevWidth||s!==i.prevX||l!==i.prevTravellerWidth)){i.scale.range([s,s+a-l]);var p=i.scale.domain().map(function(m){return i.scale(m)});return{prevData:o,prevTravellerWidth:l,prevUpdateId:u,prevX:s,prevWidth:a,startX:i.scale(r.startIndex),endX:i.scale(r.endIndex),scaleValues:p}}return null}},{key:"getIndexInRange",value:function(r,i){for(var o=r.length,a=0,s=o-1;s-a>1;){var l=Math.floor((a+s)/2);r[l]>i?s=l:a=l}return i>=r[s]?s:a}}]),n}(I.PureComponent);ri(ed,"displayName","Brush");ri(ed,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var E7e=UP;function T7e(e,t){var n;return E7e(e,function(r,i,o){return n=t(r,i,o),!n}),!!n}var C7e=T7e,k7e=nW,j7e=la,P7e=C7e,A7e=ei,N7e=Lw;function M7e(e,t,n){var r=A7e(e)?k7e:P7e;return n&&N7e(e,t,n)&&(t=void 0),r(e,j7e(t))}var R7e=M7e;const D7e=Et(R7e);var Xo=function(e,t){var n=e.alwaysShow,r=e.ifOverflow;return n&&(r="extendDomain"),r===t},p8=SW;function L7e(e,t,n){t=="__proto__"&&p8?p8(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var I7e=L7e,F7e=I7e,U7e=xW,$7e=la;function B7e(e,t){var n={};return t=$7e(t),U7e(e,function(r,i,o){F7e(n,i,t(r,i,o))}),n}var z7e=B7e;const V7e=Et(z7e);function H7e(e,t){for(var n=-1,r=e==null?0:e.length;++n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function sBe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}function lBe(e,t){var n=e.x,r=e.y,i=aBe(e,nBe),o="".concat(n),a=parseInt(o,10),s="".concat(r),l=parseInt(s,10),u="".concat(t.height||i.height),f=parseInt(u,10),d="".concat(t.width||i.width),p=parseInt(d,10);return Ap(Ap(Ap(Ap(Ap({},t),i),a?{x:a}:{}),l?{y:l}:{}),{},{height:f,width:p,name:t.name,radius:t.radius})}function m8(e){return M.createElement(c_,nC({shapeType:"rectangle",propTransformer:lBe,activeClassName:"recharts-active-bar"},e))}var uBe=["value","background"];function td(e){"@babel/helpers - typeof";return td=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},td(e)}function cBe(e,t){if(e==null)return{};var n=fBe(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function fBe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}function m_(){return m_=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function v_(e){return v_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},v_(e)}function As(e,t,n){return t=tG(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tG(e){var t=yBe(e,"string");return td(t)==="symbol"?t:String(t)}function yBe(e,t){if(td(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(td(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var qs=function(e){hBe(n,e);var t=mBe(n);function n(){var r;dBe(this,n);for(var i=arguments.length,o=new Array(i),a=0;a0&&Math.abs(H)0&&Math.abs(Y)0&&(B=Math.min((q||0)-(Y[ee-1]||0),B))});var H=B/F,Q=v.layout==="vertical"?n.height:n.width;if(v.padding==="gap"&&(T=H*Q/2),v.padding==="no-gap"){var Z=Vr(e.barCategoryGap,H*Q),te=H*Q/2;T=te-Z-(te-Z)/Q*Z}}r==="xAxis"?k=[n.left+(_.left||0)+(T||0),n.left+n.width-(_.right||0)-(T||0)]:r==="yAxis"?k=s==="horizontal"?[n.top+n.height-(_.bottom||0),n.top+(_.top||0)]:[n.top+(_.top||0)+(T||0),n.top+n.height-(_.bottom||0)-(T||0)]:k=v.range,O&&(k=[k[1],k[0]]);var X=IY(v,i,d),z=X.scale,V=X.realScaleType;z.domain(x).range(k),FY(z);var W=UY(z,so(so({},v),{},{realScaleType:V}));r==="xAxis"?(N=g==="top"&&!w||g==="bottom"&&w,P=n.left,D=f[E]-N*v.height):r==="yAxis"&&(N=g==="left"&&!w||g==="right"&&w,P=f[E]-N*v.width,D=n.top);var re=so(so(so({},v),W),{},{realScaleType:V,x:P,y:D,scale:z,width:r==="xAxis"?n.width:v.width,height:r==="yAxis"?n.height:v.height});return re.bandSize=n_(re,W),!v.hide&&r==="xAxis"?f[E]+=(N?-1:1)*re.height:v.hide||(f[E]+=(N?-1:1)*re.width),so(so({},p),{},Jw({},m,re))},{})},iG=function(e,t){var n=e.x,r=e.y,i=t.x,o=t.y;return{x:Math.min(n,i),y:Math.min(r,o),width:Math.abs(i-n),height:Math.abs(o-r)}},xBe=function(e){var t=e.x1,n=e.y1,r=e.x2,i=e.y2;return iG({x:t,y:n},{x:r,y:i})},oG=function(){function e(t){bBe(this,e),this.scale=t}return _Be(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.bandAware,i=n.position;if(t!==void 0){if(i)switch(i){case"start":return this.scale(t);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+o}case"end":{var a=this.bandwidth?this.bandwidth():0;return this.scale(t)+a}default:return this.scale(t)}if(r){var s=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+s}return this.scale(t)}}},{key:"isInRange",value:function(t){var n=this.range(),r=n[0],i=n[n.length-1];return r<=i?t>=r&&t<=i:t>=i&&t<=r}}],[{key:"create",value:function(t){return new e(t)}}]),e}();Jw(oG,"EPS",1e-4);var vA=function(e){var t=Object.keys(e).reduce(function(n,r){return so(so({},n),{},Jw({},r,oG.create(e[r])))},{});return so(so({},t),{},{apply:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.bandAware,o=r.position;return V7e(n,function(a,s){return t[s].apply(a,{bandAware:i,position:o})})},isInRange:function(n){return eG(n,function(r,i){return t[i].isInRange(r)})}})};function OBe(e){return(e%180+180)%180}var SBe=function(e){var t=e.width,n=e.height,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=OBe(r),o=i*Math.PI/180,a=Math.atan(n/t),s=o>a&&oe.length)&&(t=e.length);for(var n=0,r=new Array(t);ne*i)return!1;var o=n();return e*(t-e*o/2-r)>=0&&e*(t+e*o/2-i)<=0}function WBe(e,t){return aG(e,t+1)}function YBe(e,t,n,r,i){for(var o=(r||[]).slice(),a=t.start,s=t.end,l=0,u=1,f=a,d=function(){var m=r==null?void 0:r[l];if(m===void 0)return{v:aG(r,u)};var v=l,g,x=function(){return g===void 0&&(g=n(m,v)),g},b=m.coordinate,_=l===0||g_(e,b,x,f,s);_||(l=0,f=a,u+=1),_&&(f=b+e*(x()/2+i),l+=u)},p;u<=o.length;)if(p=d(),p)return p.v;return[]}function Xm(e){"@babel/helpers - typeof";return Xm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xm(e)}function C8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function gr(e){for(var t=1;t0?p.coordinate-g*e:p.coordinate})}else o[d]=p=gr(gr({},p),{},{tickCoord:p.coordinate});var x=g_(e,p.tickCoord,v,s,l);x&&(l=p.tickCoord-e*(v()/2+i),o[d]=gr(gr({},p),{},{isShow:!0}))},f=a-1;f>=0;f--)u(f);return o}function QBe(e,t,n,r,i,o){var a=(r||[]).slice(),s=a.length,l=t.start,u=t.end;if(o){var f=r[s-1],d=n(f,s-1),p=e*(f.coordinate+e*d/2-u);a[s-1]=f=gr(gr({},f),{},{tickCoord:p>0?f.coordinate-p*e:f.coordinate});var m=g_(e,f.tickCoord,function(){return d},l,u);m&&(u=f.tickCoord-e*(d/2+i),a[s-1]=gr(gr({},f),{},{isShow:!0}))}for(var v=o?s-1:s,g=function(b){var _=a[b],w,O=function(){return w===void 0&&(w=n(_,b)),w};if(b===0){var E=e*(_.coordinate-e*O()/2-l);a[b]=_=gr(gr({},_),{},{tickCoord:E<0?_.coordinate-E*e:_.coordinate})}else a[b]=_=gr(gr({},_),{},{tickCoord:_.coordinate});var T=g_(e,_.tickCoord,O,l,u);T&&(l=_.tickCoord+e*(O()/2+i),a[b]=gr(gr({},_),{},{isShow:!0}))},x=0;x=2?Nr(i[1].coordinate-i[0].coordinate):1,b=HBe(o,x,m);return l==="equidistantPreserveStart"?YBe(x,b,g,i,a):(l==="preserveStart"||l==="preserveStartEnd"?p=QBe(x,b,g,i,a,l==="preserveStartEnd"):p=ZBe(x,b,g,i,a),p.filter(function(_){return _.isShow}))}var XBe=["viewBox"],JBe=["viewBox"],e9e=["ticks"];function nd(e){"@babel/helpers - typeof";return nd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nd(e)}function Yc(){return Yc=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function t9e(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}function n9e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function j8(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function y_(e){return y_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},y_(e)}function yA(e,t,n){return t=sG(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sG(e){var t=u9e(e,"string");return nd(t)==="symbol"?t:String(t)}function u9e(e,t){if(nd(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(nd(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var xh=function(e){i9e(n,e);var t=o9e(n);function n(r){var i;return n9e(this,n),i=t.call(this,r),i.state={fontSize:"",letterSpacing:""},i}return r9e(n,[{key:"shouldComponentUpdate",value:function(r,i){var o=r.viewBox,a=OS(r,XBe),s=this.props,l=s.viewBox,u=OS(s,JBe);return!rf(o,l)||!rf(a,u)||!rf(i,this.state)}},{key:"componentDidMount",value:function(){var r=this.layerReference;if(r){var i=r.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];i&&this.setState({fontSize:window.getComputedStyle(i).fontSize,letterSpacing:window.getComputedStyle(i).letterSpacing})}}},{key:"getTickLineCoord",value:function(r){var i=this.props,o=i.x,a=i.y,s=i.width,l=i.height,u=i.orientation,f=i.tickSize,d=i.mirror,p=i.tickMargin,m,v,g,x,b,_,w=d?-1:1,O=r.tickSize||f,E=je(r.tickCoord)?r.tickCoord:r.coordinate;switch(u){case"top":m=v=r.coordinate,x=a+ +!d*l,g=x-w*O,_=g-w*p,b=E;break;case"left":g=x=r.coordinate,v=o+ +!d*s,m=v-w*O,b=m-w*p,_=E;break;case"right":g=x=r.coordinate,v=o+ +d*s,m=v+w*O,b=m+w*p,_=E;break;default:m=v=r.coordinate,x=a+ +d*l,g=x+w*O,_=g+w*p,b=E;break}return{line:{x1:m,y1:g,x2:v,y2:x},tick:{x:b,y:_}}}},{key:"getTickTextAnchor",value:function(){var r=this.props,i=r.orientation,o=r.mirror,a;switch(i){case"left":a=o?"start":"end";break;case"right":a=o?"end":"start";break;default:a="middle";break}return a}},{key:"getTickVerticalAnchor",value:function(){var r=this.props,i=r.orientation,o=r.mirror,a="end";switch(i){case"left":case"right":a="middle";break;case"top":a=o?"start":"end";break;default:a=o?"end":"start";break}return a}},{key:"renderAxisLine",value:function(){var r=this.props,i=r.x,o=r.y,a=r.width,s=r.height,l=r.orientation,u=r.mirror,f=r.axisLine,d=Tr(Tr(Tr({},Ve(this.props)),Ve(f)),{},{fill:"none"});if(l==="top"||l==="bottom"){var p=+(l==="top"&&!u||l==="bottom"&&u);d=Tr(Tr({},d),{},{x1:i,y1:o+p*s,x2:i+a,y2:o+p*s})}else{var m=+(l==="left"&&!u||l==="right"&&u);d=Tr(Tr({},d),{},{x1:i+m*a,y1:o,x2:i+m*a,y2:o+s})}return M.createElement("line",Yc({},d,{className:We("recharts-cartesian-axis-line",ui(f,"className"))}))}},{key:"renderTicks",value:function(r,i,o){var a=this,s=this.props,l=s.tickLine,u=s.stroke,f=s.tick,d=s.tickFormatter,p=s.unit,m=sC(Tr(Tr({},this.props),{},{ticks:r}),i,o),v=this.getTickTextAnchor(),g=this.getTickVerticalAnchor(),x=Ve(this.props),b=Ve(f),_=Tr(Tr({},x),{},{fill:"none"},Ve(l)),w=m.map(function(O,E){var T=a.getTickLineCoord(O),k=T.line,P=T.tick,D=Tr(Tr(Tr(Tr({textAnchor:v,verticalAnchor:g},x),{},{stroke:"none",fill:u},b),P),{},{index:E,payload:O,visibleTicksCount:m.length,tickFormatter:d});return M.createElement(nt,Yc({className:"recharts-cartesian-axis-tick",key:"tick-".concat(O.value,"-").concat(O.coordinate,"-").concat(O.tickCoord)},al(a.props,O,E)),l&&M.createElement("line",Yc({},_,k,{className:We("recharts-cartesian-axis-tick-line",ui(l,"className"))})),f&&n.renderTickItem(f,D,"".concat(Xe(d)?d(O.value,E):O.value).concat(p||"")))});return M.createElement("g",{className:"recharts-cartesian-axis-ticks"},w)}},{key:"render",value:function(){var r=this,i=this.props,o=i.axisLine,a=i.width,s=i.height,l=i.ticksGenerator,u=i.className,f=i.hide;if(f)return null;var d=this.props,p=d.ticks,m=OS(d,e9e),v=p;return Xe(l)&&(v=p&&p.length>0?l(this.props):l(m)),a<=0||s<=0||!v||!v.length?null:M.createElement(nt,{className:We("recharts-cartesian-axis",u),ref:function(g){r.layerReference=g}},o&&this.renderAxisLine(),this.renderTicks(v,this.state.fontSize,this.state.letterSpacing),Yn.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(r,i,o){var a;return M.isValidElement(r)?a=M.cloneElement(r,i):Xe(r)?a=r(i):a=M.createElement(Mu,Yc({},i,{className:"recharts-cartesian-axis-tick-value"}),o),a}}]),n}(I.Component);yA(xh,"displayName","CartesianAxis");yA(xh,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var c9e=["x1","y1","x2","y2","key"],f9e=["offset"];function rd(e){"@babel/helpers - typeof";return rd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rd(e)}function uC(){return uC=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function d9e(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}function A8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ls(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function b_(e){return b_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},b_(e)}function bA(e,t,n){return t=lG(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lG(e){var t=_9e(e,"string");return rd(t)==="symbol"?t:String(t)}function _9e(e,t){if(rd(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(rd(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ex=function(e){m9e(n,e);var t=v9e(n);function n(){return p9e(this,n),t.apply(this,arguments)}return h9e(n,[{key:"renderHorizontal",value:function(r){var i=this,o=this.props,a=o.x,s=o.width,l=o.horizontal;if(!r||!r.length)return null;var u=r.map(function(f,d){var p=ls(ls({},i.props),{},{x1:a,y1:f,x2:a+s,y2:f,key:"line-".concat(d),index:d});return n.renderLineItem(l,p)});return M.createElement("g",{className:"recharts-cartesian-grid-horizontal"},u)}},{key:"renderVertical",value:function(r){var i=this,o=this.props,a=o.y,s=o.height,l=o.vertical;if(!r||!r.length)return null;var u=r.map(function(f,d){var p=ls(ls({},i.props),{},{x1:f,y1:a,x2:f,y2:a+s,key:"line-".concat(d),index:d});return n.renderLineItem(l,p)});return M.createElement("g",{className:"recharts-cartesian-grid-vertical"},u)}},{key:"renderVerticalStripes",value:function(r){var i=this.props.verticalFill;if(!i||!i.length)return null;var o=this.props,a=o.fillOpacity,s=o.x,l=o.y,u=o.width,f=o.height,d=r.map(function(m){return Math.round(m+s-s)}).sort(function(m,v){return m-v});s!==d[0]&&d.unshift(0);var p=d.map(function(m,v){var g=!d[v+1],x=g?s+u-m:d[v+1]-m;if(x<=0)return null;var b=v%i.length;return M.createElement("rect",{key:"react-".concat(v),x:m,y:l,width:x,height:f,stroke:"none",fill:i[b],fillOpacity:a,className:"recharts-cartesian-grid-bg"})});return M.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},p)}},{key:"renderHorizontalStripes",value:function(r){var i=this.props.horizontalFill;if(!i||!i.length)return null;var o=this.props,a=o.fillOpacity,s=o.x,l=o.y,u=o.width,f=o.height,d=r.map(function(m){return Math.round(m+l-l)}).sort(function(m,v){return m-v});l!==d[0]&&d.unshift(0);var p=d.map(function(m,v){var g=!d[v+1],x=g?l+f-m:d[v+1]-m;if(x<=0)return null;var b=v%i.length;return M.createElement("rect",{key:"react-".concat(v),y:m,x:s,height:x,width:u,stroke:"none",fill:i[b],fillOpacity:a,className:"recharts-cartesian-grid-bg"})});return M.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},p)}},{key:"renderBackground",value:function(){var r=this.props.fill;if(!r||r==="none")return null;var i=this.props,o=i.fillOpacity,a=i.x,s=i.y,l=i.width,u=i.height;return M.createElement("rect",{x:a,y:s,width:l,height:u,stroke:"none",fill:r,fillOpacity:o,className:"recharts-cartesian-grid-bg"})}},{key:"render",value:function(){var r=this.props,i=r.x,o=r.y,a=r.width,s=r.height,l=r.horizontal,u=r.vertical,f=r.horizontalCoordinatesGenerator,d=r.verticalCoordinatesGenerator,p=r.xAxis,m=r.yAxis,v=r.offset,g=r.chartWidth,x=r.chartHeight,b=r.syncWithTicks,_=r.horizontalValues,w=r.verticalValues;if(!je(a)||a<=0||!je(s)||s<=0||!je(i)||i!==+i||!je(o)||o!==+o)return null;var O=this.props,E=O.horizontalPoints,T=O.verticalPoints;if((!E||!E.length)&&Xe(f)){var k=_&&_.length;E=f({yAxis:m?ls(ls({},m),{},{ticks:k?_:m.ticks}):void 0,width:g,height:x,offset:v},k?!0:b)}if((!T||!T.length)&&Xe(d)){var P=w&&w.length;T=d({xAxis:p?ls(ls({},p),{},{ticks:P?w:p.ticks}):void 0,width:g,height:x,offset:v},P?!0:b)}return M.createElement("g",{className:"recharts-cartesian-grid"},this.renderBackground(),l&&this.renderHorizontal(E),u&&this.renderVertical(T),l&&this.renderHorizontalStripes(E),u&&this.renderVerticalStripes(T))}}],[{key:"renderLineItem",value:function(r,i){var o;if(M.isValidElement(r))o=M.cloneElement(r,i);else if(Xe(r))o=r(i);else{var a=i.x1,s=i.y1,l=i.x2,u=i.y2,f=i.key,d=P8(i,c9e),p=Ve(d);p.offset;var m=P8(p,f9e);o=M.createElement("line",uC({},m,{x1:a,y1:s,x2:l,y2:u,fill:"none",key:f}))}return o}}]),n}(I.PureComponent);bA(ex,"displayName","CartesianGrid");bA(ex,"defaultProps",{horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]});var w9e=["type","layout","connectNulls","ref"];function id(e){"@babel/helpers - typeof";return id=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},id(e)}function x9e(e,t){if(e==null)return{};var n=O9e(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function O9e(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}function Oh(){return Oh=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function __(e){return __=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},__(e)}function lo(e,t,n){return t=uG(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uG(e){var t=R9e(e,"string");return id(t)==="symbol"?t:String(t)}function R9e(e,t){if(id(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(id(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var $d=function(e){P9e(n,e);var t=A9e(n);function n(){var r;k9e(this,n);for(var i=arguments.length,o=new Array(i),a=0;ap){v=[].concat(gc(u.slice(0,g)),[p-x]);break}var b=v.length%2===0?[0,m]:[m];return[].concat(gc(n.repeat(u,d)),gc(v),b).map(function(_){return"".concat(_,"px")}).join(", ")}),lo(ds(r),"id",bl("recharts-line-")),lo(ds(r),"pathRef",function(s){r.mainCurve=s}),lo(ds(r),"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0}),r.props.onAnimationEnd&&r.props.onAnimationEnd()}),lo(ds(r),"handleAnimationStart",function(){r.setState({isAnimationFinished:!1}),r.props.onAnimationStart&&r.props.onAnimationStart()}),r}return j9e(n,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var r=this.getTotalLength();this.setState({totalLength:r})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var r=this.getTotalLength();r!==this.state.totalLength&&this.setState({totalLength:r})}}},{key:"getTotalLength",value:function(){var r=this.mainCurve;try{return r&&r.getTotalLength&&r.getTotalLength()||0}catch{return 0}}},{key:"renderErrorBar",value:function(r,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var o=this.props,a=o.points,s=o.xAxis,l=o.yAxis,u=o.layout,f=o.children,d=Lr(f,Ud);if(!d)return null;var p=function(v,g){return{x:v.x,y:v.y,value:v.value,errorVal:Yt(v.payload,g)}},m={clipPath:r?"url(#clipPath-".concat(i,")"):null};return M.createElement(nt,m,d.map(function(v){return M.cloneElement(v,{key:"bar-".concat(v.props.dataKey),data:a,xAxis:s,yAxis:l,layout:u,dataPointFormatter:p})}))}},{key:"renderDots",value:function(r,i,o){var a=this.props.isAnimationActive;if(a&&!this.state.isAnimationFinished)return null;var s=this.props,l=s.dot,u=s.points,f=s.dataKey,d=Ve(this.props),p=Ve(l,!0),m=u.map(function(g,x){var b=ni(ni(ni({key:"dot-".concat(x),r:3},d),p),{},{value:g.value,dataKey:f,cx:g.x,cy:g.y,index:x,payload:g.payload});return n.renderDotItem(l,b)}),v={clipPath:r?"url(#clipPath-".concat(i?"":"dots-").concat(o,")"):null};return M.createElement(nt,Oh({className:"recharts-line-dots",key:"dots"},v),m)}},{key:"renderCurveStatically",value:function(r,i,o,a){var s=this.props,l=s.type,u=s.layout,f=s.connectNulls;s.ref;var d=x9e(s,w9e),p=ni(ni(ni({},Ve(d,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:i?"url(#clipPath-".concat(o,")"):null,points:r},a),{},{type:l,layout:u,connectNulls:f});return M.createElement(Gs,Oh({},p,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(r,i){var o=this,a=this.props,s=a.points,l=a.strokeDasharray,u=a.isAnimationActive,f=a.animationBegin,d=a.animationDuration,p=a.animationEasing,m=a.animationId,v=a.animateNewValues,g=a.width,x=a.height,b=this.state,_=b.prevPoints,w=b.totalLength;return M.createElement(Gi,{begin:f,duration:d,isActive:u,easing:p,from:{t:0},to:{t:1},key:"line-".concat(m),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(O){var E=O.t;if(_){var T=_.length/s.length,k=s.map(function(B,Y){var H=Math.floor(Y*T);if(_[H]){var Q=_[H],Z=an(Q.x,B.x),te=an(Q.y,B.y);return ni(ni({},B),{},{x:Z(E),y:te(E)})}if(v){var X=an(g*2,B.x),z=an(x/2,B.y);return ni(ni({},B),{},{x:X(E),y:z(E)})}return ni(ni({},B),{},{x:B.x,y:B.y})});return o.renderCurveStatically(k,r,i)}var P=an(0,w),D=P(E),N;if(l){var F="".concat(l).split(/[,\s]+/gim).map(function(B){return parseFloat(B)});N=o.getStrokeDasharray(D,w,F)}else N=o.generateSimpleStrokeDasharray(w,D);return o.renderCurveStatically(s,r,i,{strokeDasharray:N})})}},{key:"renderCurve",value:function(r,i){var o=this.props,a=o.points,s=o.isAnimationActive,l=this.state,u=l.prevPoints,f=l.totalLength;return s&&a&&a.length&&(!u&&f>0||!sl(u,a))?this.renderCurveWithAnimation(r,i):this.renderCurveStatically(a,r,i)}},{key:"render",value:function(){var r,i=this.props,o=i.hide,a=i.dot,s=i.points,l=i.className,u=i.xAxis,f=i.yAxis,d=i.top,p=i.left,m=i.width,v=i.height,g=i.isAnimationActive,x=i.id;if(o||!s||!s.length)return null;var b=this.state.isAnimationFinished,_=s.length===1,w=We("recharts-line",l),O=u&&u.allowDataOverflow,E=f&&f.allowDataOverflow,T=O||E,k=Ze(x)?this.id:x,P=(r=Ve(a))!==null&&r!==void 0?r:{r:3,strokeWidth:2},D=P.r,N=D===void 0?3:D,F=P.strokeWidth,B=F===void 0?2:F,Y=CH(a)?a:{},H=Y.clipDot,Q=H===void 0?!0:H,Z=N*2+B;return M.createElement(nt,{className:w},O||E?M.createElement("defs",null,M.createElement("clipPath",{id:"clipPath-".concat(k)},M.createElement("rect",{x:O?p:p-m/2,y:E?d:d-v/2,width:O?m:m*2,height:E?v:v*2})),!Q&&M.createElement("clipPath",{id:"clipPath-dots-".concat(k)},M.createElement("rect",{x:p-Z/2,y:d-Z/2,width:m+Z,height:v+Z}))):null,!_&&this.renderCurve(T,k),this.renderErrorBar(T,k),(_||a)&&this.renderDots(T,Q,k),(!g||b)&&go.renderCallByParent(this.props,s))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return r.animationId!==i.prevAnimationId?{prevAnimationId:r.animationId,curPoints:r.points,prevPoints:i.curPoints}:r.points!==i.curPoints?{curPoints:r.points}:null}},{key:"repeat",value:function(r,i){for(var o=r.length%2!==0?[].concat(gc(r),[0]):r,a=[],s=0;s=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function I9e(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}function ou(){return ou=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function w_(e){return w_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},w_(e)}function zo(e,t,n){return t=fG(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fG(e){var t=H9e(e,"string");return od(t)==="symbol"?t:String(t)}function H9e(e,t){if(od(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(od(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Wu=function(e){$9e(n,e);var t=B9e(n);function n(){var r;F9e(this,n);for(var i=arguments.length,o=new Array(i),a=0;a0||!sl(f,a)||!sl(d,s))?this.renderAreaWithAnimation(r,i):this.renderAreaStatically(a,s,r,i)}},{key:"render",value:function(){var r,i=this.props,o=i.hide,a=i.dot,s=i.points,l=i.className,u=i.top,f=i.left,d=i.xAxis,p=i.yAxis,m=i.width,v=i.height,g=i.isAnimationActive,x=i.id;if(o||!s||!s.length)return null;var b=this.state.isAnimationFinished,_=s.length===1,w=We("recharts-area",l),O=d&&d.allowDataOverflow,E=p&&p.allowDataOverflow,T=O||E,k=Ze(x)?this.id:x,P=(r=Ve(a))!==null&&r!==void 0?r:{r:3,strokeWidth:2},D=P.r,N=D===void 0?3:D,F=P.strokeWidth,B=F===void 0?2:F,Y=CH(a)?a:{},H=Y.clipDot,Q=H===void 0?!0:H,Z=N*2+B;return M.createElement(nt,{className:w},O||E?M.createElement("defs",null,M.createElement("clipPath",{id:"clipPath-".concat(k)},M.createElement("rect",{x:O?f:f-m/2,y:E?u:u-v/2,width:O?m:m*2,height:E?v:v*2})),!Q&&M.createElement("clipPath",{id:"clipPath-dots-".concat(k)},M.createElement("rect",{x:f-Z/2,y:u-Z/2,width:m+Z,height:v+Z}))):null,_?null:this.renderArea(T,k),(a||_)&&this.renderDots(T,Q,k),(!g||b)&&go.renderCallByParent(this.props,s))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return r.animationId!==i.prevAnimationId?{prevAnimationId:r.animationId,curPoints:r.points,curBaseLine:r.baseLine,prevPoints:i.curPoints,prevBaseLine:i.curBaseLine}:r.points!==i.curPoints||r.baseLine!==i.curBaseLine?{curPoints:r.points,curBaseLine:r.baseLine}:null}}]),n}(I.PureComponent);cG=Wu;zo(Wu,"displayName","Area");zo(Wu,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!Ui.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});zo(Wu,"getBaseValue",function(e,t,n,r){var i=e.layout,o=e.baseValue,a=t.props.baseValue,s=a??o;if(je(s)&&typeof s=="number")return s;var l=i==="horizontal"?r:n,u=l.scale.domain();if(l.type==="number"){var f=Math.max(u[0],u[1]),d=Math.min(u[0],u[1]);return s==="dataMin"?d:s==="dataMax"||f<0?f:Math.max(Math.min(u[0],u[1]),0)}return s==="dataMin"?u[0]:s==="dataMax"?u[1]:u[0]});zo(Wu,"getComposedData",function(e){var t=e.props,n=e.item,r=e.xAxis,i=e.yAxis,o=e.xAxisTicks,a=e.yAxisTicks,s=e.bandSize,l=e.dataKey,u=e.stackedData,f=e.dataStartIndex,d=e.displayedData,p=e.offset,m=t.layout,v=u&&u.length,g=cG.getBaseValue(t,n,r,i),x=m==="horizontal",b=!1,_=d.map(function(O,E){var T;v?T=u[f+E]:(T=Yt(O,l),Array.isArray(T)?b=!0:T=[g,T]);var k=T[1]==null||v&&Yt(O,l)==null;return x?{x:Kf({axis:r,ticks:o,bandSize:s,entry:O,index:E}),y:k?null:i.scale(T[1]),value:T,payload:O}:{x:k?null:r.scale(T[1]),y:Kf({axis:i,ticks:a,bandSize:s,entry:O,index:E}),value:T,payload:O}}),w;return v||b?w=_.map(function(O){var E=Array.isArray(O.value)?O.value[0]:null;return x?{x:O.x,y:E!=null&&O.y!=null?i.scale(E):null}:{x:E!=null?r.scale(E):null,y:O.y}}):w=x?i.scale(g):r.scale(g),ps({points:_,baseLine:w,layout:m,isRange:b},p)});zo(Wu,"renderDotItem",function(e,t){var n;return M.isValidElement(e)?n=M.cloneElement(e,t):Xe(e)?n=e(t):n=M.createElement(Rv,ou({},t,{className:"recharts-area-dot"})),n});var tx=function(){return null};tx.displayName="ZAxis";tx.defaultProps={zAxisId:0,range:[64,64],scale:"auto",type:"number"};var W9e=["option","isActive"];function Sh(){return Sh=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function G9e(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}function q9e(e){var t=e.option,n=e.isActive,r=Y9e(e,W9e);return typeof t=="string"?M.createElement(c_,Sh({option:M.createElement(Mw,Sh({type:t},r)),isActive:n,shapeType:"symbols"},r)):M.createElement(c_,Sh({option:t,isActive:n,shapeType:"symbols"},r))}function ad(e){"@babel/helpers - typeof";return ad=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ad(e)}function Eh(){return Eh=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function x_(e){return x_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},x_(e)}function Ns(e,t,n){return t=dG(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dG(e){var t=tze(e,"string");return ad(t)==="symbol"?t:String(t)}function tze(e,t){if(ad(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ad(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var nx=function(e){Q9e(n,e);var t=X9e(n);function n(){var r;K9e(this,n);for(var i=arguments.length,o=new Array(i),a=0;a-1?i[o?t[a]:a]:void 0}}var aze=oze,sze=QY;function lze(e){var t=sze(e),n=t%1;return t===t?n?t-n:t:0}var uze=lze,cze=vW,fze=la,dze=uze,pze=Math.max;function hze(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:dze(n);return i<0&&(i=pze(r+i,0)),cze(e,fze(t),i)}var mze=hze,vze=aze,gze=mze,yze=vze(gze),bze=yze;const _ze=Et(bze);var wze="Invariant failed";function xze(e,t){if(!e)throw new Error(wze)}function U8(e){return Tze(e)||Eze(e)||Sze(e)||Oze()}function Oze(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Sze(e,t){if(e){if(typeof e=="string")return mC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return mC(e,t)}}function Eze(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Tze(e){if(Array.isArray(e))return mC(e)}function mC(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Wze(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}function Yze(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function H8(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function O_(e){return O_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},O_(e)}function ld(e){return eVe(e)||Jze(e)||vG(e)||Xze()}function Xze(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vG(e,t){if(e){if(typeof e=="string")return yC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return yC(e,t)}}function Jze(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function eVe(e){if(Array.isArray(e))return yC(e)}function yC(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?o:e&&e.length&&je(r)&&je(i)?e.slice(r,i+1):[]};function bG(e){return e==="number"?[0,"auto"]:void 0}var _G=function(e,t,n,r){var i=e.graphicalItems,o=e.tooltipAxis,a=rx(t,e);return n<0||!i||!i.length||n>=a.length?null:i.reduce(function(s,l){var u,f=l.props.hide;if(f)return s;var d=(u=l.props.data)!==null&&u!==void 0?u:t;d&&e.dataStartIndex+e.dataEndIndex!==0&&(d=d.slice(e.dataStartIndex,e.dataEndIndex+1));var p;if(o.dataKey&&!o.allowDuplicatedCategory){var m=d===void 0?a:d;p=Eb(m,o.dataKey,r)}else p=d&&d[n]||a[n];return p?[].concat(ld(s),[BY(l,p)]):s},[])},Y8=function(e,t,n,r){var i=r||{x:e.chartX,y:e.chartY},o=iVe(i,n),a=e.orderedTooltipTicks,s=e.tooltipAxis,l=e.tooltipTicks,u=E8e(o,a,l,s);if(u>=0&&l){var f=l[u]&&l[u].value,d=_G(e,t,u,f),p=oVe(n,a,u,i);return{activeTooltipIndex:u,activeLabel:f,activePayload:d,activeCoordinate:p}}return null},aVe=function(e,t){var n=t.axes,r=t.graphicalItems,i=t.axisType,o=t.axisIdKey,a=t.stackGroups,s=t.dataStartIndex,l=t.dataEndIndex,u=e.layout,f=e.children,d=e.stackOffset,p=LY(u,i);return n.reduce(function(m,v){var g,x=v.props,b=x.type,_=x.dataKey,w=x.allowDataOverflow,O=x.allowDuplicatedCategory,E=x.scale,T=x.ticks,k=x.includeHidden,P=v.props[o];if(m[P])return m;var D=rx(e.data,{graphicalItems:r.filter(function(W){return W.props[o]===P}),dataStartIndex:s,dataEndIndex:l}),N=D.length,F,B,Y;Mze(v.props.domain,w,b)&&(F=HT(v.props.domain,null,w),p&&(b==="number"||E!=="auto")&&(Y=Vy(D,_,"category")));var H=bG(b);if(!F||F.length===0){var Q,Z=(Q=v.props.domain)!==null&&Q!==void 0?Q:H;if(_){if(F=Vy(D,_,b),b==="category"&&p){var te=nEe(F);O&&te?(B=F,F=d_(0,N)):O||(F=C5(Z,F,v).reduce(function(W,re){return W.indexOf(re)>=0?W:[].concat(ld(W),[re])},[]))}else if(b==="category")O?F=F.filter(function(W){return W!==""&&!Ze(W)}):F=C5(Z,F,v).reduce(function(W,re){return W.indexOf(re)>=0||re===""||Ze(re)?W:[].concat(ld(W),[re])},[]);else if(b==="number"){var X=P8e(D,r.filter(function(W){return W.props[o]===P&&(k||!W.props.hide)}),_,i,u);X&&(F=X)}p&&(b==="number"||E!=="auto")&&(Y=Vy(D,_,"category"))}else p?F=d_(0,N):a&&a[P]&&a[P].hasStack&&b==="number"?F=d==="expand"?[0,1]:$Y(a[P].stackGroups,s,l):F=DY(D,r.filter(function(W){return W.props[o]===P&&(k||!W.props.hide)}),b,u,!0);if(b==="number")F=vC(f,F,P,i,T),Z&&(F=HT(Z,F,w));else if(b==="category"&&Z){var z=Z,V=F.every(function(W){return z.indexOf(W)>=0});V&&(F=z)}}return ye(ye({},m),{},Ge({},P,ye(ye({},v.props),{},{axisType:i,domain:F,categoricalDomain:Y,duplicateDomain:B,originalDomain:(g=v.props.domain)!==null&&g!==void 0?g:H,isCategorical:p,layout:u})))},{})},sVe=function(e,t){var n=t.graphicalItems,r=t.Axis,i=t.axisType,o=t.axisIdKey,a=t.stackGroups,s=t.dataStartIndex,l=t.dataEndIndex,u=e.layout,f=e.children,d=rx(e.data,{graphicalItems:n,dataStartIndex:s,dataEndIndex:l}),p=d.length,m=LY(u,i),v=-1;return n.reduce(function(g,x){var b=x.props[o],_=bG("number");if(!g[b]){v++;var w;return m?w=d_(0,p):a&&a[b]&&a[b].hasStack?(w=$Y(a[b].stackGroups,s,l),w=vC(f,w,b,i)):(w=HT(_,DY(d,n.filter(function(O){return O.props[o]===b&&!O.props.hide}),"number",u),r.defaultProps.allowDataOverflow),w=vC(f,w,b,i)),ye(ye({},g),{},Ge({},b,ye(ye({axisType:i},r.defaultProps),{},{hide:!0,orientation:ui(nVe,"".concat(i,".").concat(v%2),null),domain:w,originalDomain:_,isCategorical:m,layout:u})))}return g},{})},lVe=function(e,t){var n=t.axisType,r=n===void 0?"xAxis":n,i=t.AxisComp,o=t.graphicalItems,a=t.stackGroups,s=t.dataStartIndex,l=t.dataEndIndex,u=e.children,f="".concat(r,"Id"),d=Lr(u,i),p={};return d&&d.length?p=aVe(e,{axes:d,graphicalItems:o,axisType:r,axisIdKey:f,stackGroups:a,dataStartIndex:s,dataEndIndex:l}):o&&o.length&&(p=sVe(e,{Axis:i,graphicalItems:o,axisType:r,axisIdKey:f,stackGroups:a,dataStartIndex:s,dataEndIndex:l})),p},uVe=function(e){var t=cs(e),n=fs(t,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:$P(n,function(r){return r.coordinate}),tooltipAxis:t,tooltipAxisBandSize:n_(t,n)}},G8=function(e){var t=e.children,n=e.defaultShowTooltip,r=Uo(t,ed),i=0,o=0;return e.data&&e.data.length!==0&&(o=e.data.length-1),r&&r.props&&(r.props.startIndex>=0&&(i=r.props.startIndex),r.props.endIndex>=0&&(o=r.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:i,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!n}},cVe=function(e){return!e||!e.length?!1:e.some(function(t){var n=Ca(t&&t.type);return n&&n.indexOf("Bar")>=0})},q8=function(e){return e==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:e==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:e==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},fVe=function(e,t){var n=e.props,r=e.graphicalItems,i=e.xAxisMap,o=i===void 0?{}:i,a=e.yAxisMap,s=a===void 0?{}:a,l=n.width,u=n.height,f=n.children,d=n.margin||{},p=Uo(f,ed),m=Uo(f,ym),v=Object.keys(s).reduce(function(O,E){var T=s[E],k=T.orientation;return!T.mirror&&!T.hide?ye(ye({},O),{},Ge({},k,O[k]+T.width)):O},{left:d.left||0,right:d.right||0}),g=Object.keys(o).reduce(function(O,E){var T=o[E],k=T.orientation;return!T.mirror&&!T.hide?ye(ye({},O),{},Ge({},k,ui(O,"".concat(k))+T.height)):O},{top:d.top||0,bottom:d.bottom||0}),x=ye(ye({},g),v),b=x.bottom;p&&(x.bottom+=p.props.height||ed.defaultProps.height),m&&t&&(x=k8e(x,r,n,t));var _=l-x.left-x.right,w=u-x.top-x.bottom;return ye(ye({brushBottom:b},x),{},{width:Math.max(_,0),height:Math.max(w,0)})},_A=function(e){var t,n=e.chartName,r=e.GraphicalChild,i=e.defaultTooltipEventType,o=i===void 0?"axis":i,a=e.validateTooltipEventTypes,s=a===void 0?["axis"]:a,l=e.axisComponents,u=e.legendContent,f=e.formatAxisMap,d=e.defaultProps,p=function(v,g){var x=g.graphicalItems,b=g.stackGroups,_=g.offset,w=g.updateId,O=g.dataStartIndex,E=g.dataEndIndex,T=v.barSize,k=v.layout,P=v.barGap,D=v.barCategoryGap,N=v.maxBarSize,F=q8(k),B=F.numericAxisName,Y=F.cateAxisName,H=cVe(x),Q=H&&T8e({barSize:T,stackGroups:b}),Z=[];return x.forEach(function(te,X){var z=rx(v.data,{graphicalItems:[te],dataStartIndex:O,dataEndIndex:E}),V=te.props,W=V.dataKey,re=V.maxBarSize,q=te.props["".concat(B,"Id")],ee=te.props["".concat(Y,"Id")],oe={},le=l.reduce(function(Oe,Ce){var ke,Pe=g["".concat(Ce.axisType,"Map")],ce=te.props["".concat(Ce.axisType,"Id")];Pe&&Pe[ce]||Ce.axisType==="zAxis"||xze(!1);var de=Pe[ce];return ye(ye({},Oe),{},(ke={},Ge(ke,Ce.axisType,de),Ge(ke,"".concat(Ce.axisType,"Ticks"),fs(de)),ke))},oe),fe=le[Y],j=le["".concat(Y,"Ticks")],A=b&&b[q]&&b[q].hasStack&&U8e(te,b[q].stackGroups),$=Ca(te.type).indexOf("Bar")>=0,J=n_(fe,j),K=[];if($){var se,he,Ee=Ze(re)?N:re,ue=(se=(he=n_(fe,j,!0))!==null&&he!==void 0?he:Ee)!==null&&se!==void 0?se:0;K=C8e({barGap:P,barCategoryGap:D,bandSize:ue!==J?ue:J,sizeList:Q[ee],maxBarSize:Ee}),ue!==J&&(K=K.map(function(Oe){return ye(ye({},Oe),{},{position:ye(ye({},Oe.position),{},{offset:Oe.position.offset-ue/2})})}))}var ve=te&&te.type&&te.type.getComposedData;if(ve){var ge;Z.push({props:ye(ye({},ve(ye(ye({},le),{},{displayedData:z,props:v,dataKey:W,item:te,bandSize:J,barPosition:K,offset:_,stackedData:A,layout:k,dataStartIndex:O,dataEndIndex:E}))),{},(ge={key:te.key||"item-".concat(X)},Ge(ge,B,le[B]),Ge(ge,Y,le[Y]),Ge(ge,"animationId",w),ge)),childIndex:hEe(te,v.children),item:te})}}),Z},m=function(v,g){var x=v.props,b=v.dataStartIndex,_=v.dataEndIndex,w=v.updateId;if(!eI({props:x}))return null;var O=x.children,E=x.layout,T=x.stackOffset,k=x.data,P=x.reverseStackOrder,D=q8(E),N=D.numericAxisName,F=D.cateAxisName,B=Lr(O,r),Y=I8e(k,B,"".concat(N,"Id"),"".concat(F,"Id"),T,P),H=l.reduce(function(z,V){var W="".concat(V.axisType,"Map");return ye(ye({},z),{},Ge({},W,lVe(x,ye(ye({},V),{},{graphicalItems:B,stackGroups:V.axisType===N&&Y,dataStartIndex:b,dataEndIndex:_}))))},{}),Q=fVe(ye(ye({},H),{},{props:x,graphicalItems:B}),g==null?void 0:g.legendBBox);Object.keys(H).forEach(function(z){H[z]=f(x,H[z],Q,z.replace("Map",""),n)});var Z=H["".concat(F,"Map")],te=uVe(Z),X=p(x,ye(ye({},H),{},{dataStartIndex:b,dataEndIndex:_,updateId:w,graphicalItems:B,stackGroups:Y,offset:Q}));return ye(ye({formattedGraphicalItems:X,graphicalItems:B,offset:Q,stackGroups:Y},te),H)};return t=function(v){qze(x,v);var g=Kze(x);function x(b){var _,w,O;return Yze(this,x),O=g.call(this,b),Ge(ot(O),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),Ge(ot(O),"accessibilityManager",new Nze),Ge(ot(O),"handleLegendBBoxUpdate",function(E){if(E){var T=O.state,k=T.dataStartIndex,P=T.dataEndIndex,D=T.updateId;O.setState(ye({legendBBox:E},m({props:O.props,dataStartIndex:k,dataEndIndex:P,updateId:D},ye(ye({},O.state),{},{legendBBox:E}))))}}),Ge(ot(O),"handleReceiveSyncEvent",function(E,T,k){if(O.props.syncId===E){if(k===O.eventEmitterSymbol&&typeof O.props.syncMethod!="function")return;O.applySyncEvent(T)}}),Ge(ot(O),"handleBrushChange",function(E){var T=E.startIndex,k=E.endIndex;if(T!==O.state.dataStartIndex||k!==O.state.dataEndIndex){var P=O.state.updateId;O.setState(function(){return ye({dataStartIndex:T,dataEndIndex:k},m({props:O.props,dataStartIndex:T,dataEndIndex:k,updateId:P},O.state))}),O.triggerSyncEvent({dataStartIndex:T,dataEndIndex:k})}}),Ge(ot(O),"handleMouseEnter",function(E){var T=O.getMouseInfo(E);if(T){var k=ye(ye({},T),{},{isTooltipActive:!0});O.setState(k),O.triggerSyncEvent(k);var P=O.props.onMouseEnter;Xe(P)&&P(k,E)}}),Ge(ot(O),"triggeredAfterMouseMove",function(E){var T=O.getMouseInfo(E),k=T?ye(ye({},T),{},{isTooltipActive:!0}):{isTooltipActive:!1};O.setState(k),O.triggerSyncEvent(k);var P=O.props.onMouseMove;Xe(P)&&P(k,E)}),Ge(ot(O),"handleItemMouseEnter",function(E){O.setState(function(){return{isTooltipActive:!0,activeItem:E,activePayload:E.tooltipPayload,activeCoordinate:E.tooltipPosition||{x:E.cx,y:E.cy}}})}),Ge(ot(O),"handleItemMouseLeave",function(){O.setState(function(){return{isTooltipActive:!1}})}),Ge(ot(O),"handleMouseMove",function(E){E.persist(),O.throttleTriggeredAfterMouseMove(E)}),Ge(ot(O),"handleMouseLeave",function(E){var T={isTooltipActive:!1};O.setState(T),O.triggerSyncEvent(T);var k=O.props.onMouseLeave;Xe(k)&&k(T,E)}),Ge(ot(O),"handleOuterEvent",function(E){var T=pEe(E),k=ui(O.props,"".concat(T));if(T&&Xe(k)){var P,D;/.*touch.*/i.test(T)?D=O.getMouseInfo(E.changedTouches[0]):D=O.getMouseInfo(E),k((P=D)!==null&&P!==void 0?P:{},E)}}),Ge(ot(O),"handleClick",function(E){var T=O.getMouseInfo(E);if(T){var k=ye(ye({},T),{},{isTooltipActive:!0});O.setState(k),O.triggerSyncEvent(k);var P=O.props.onClick;Xe(P)&&P(k,E)}}),Ge(ot(O),"handleMouseDown",function(E){var T=O.props.onMouseDown;if(Xe(T)){var k=O.getMouseInfo(E);T(k,E)}}),Ge(ot(O),"handleMouseUp",function(E){var T=O.props.onMouseUp;if(Xe(T)){var k=O.getMouseInfo(E);T(k,E)}}),Ge(ot(O),"handleTouchMove",function(E){E.changedTouches!=null&&E.changedTouches.length>0&&O.throttleTriggeredAfterMouseMove(E.changedTouches[0])}),Ge(ot(O),"handleTouchStart",function(E){E.changedTouches!=null&&E.changedTouches.length>0&&O.handleMouseDown(E.changedTouches[0])}),Ge(ot(O),"handleTouchEnd",function(E){E.changedTouches!=null&&E.changedTouches.length>0&&O.handleMouseUp(E.changedTouches[0])}),Ge(ot(O),"triggerSyncEvent",function(E){O.props.syncId!==void 0&&SS.emit(ES,O.props.syncId,E,O.eventEmitterSymbol)}),Ge(ot(O),"applySyncEvent",function(E){var T=O.props,k=T.layout,P=T.syncMethod,D=O.state.updateId,N=E.dataStartIndex,F=E.dataEndIndex;if(E.dataStartIndex!==void 0||E.dataEndIndex!==void 0)O.setState(ye({dataStartIndex:N,dataEndIndex:F},m({props:O.props,dataStartIndex:N,dataEndIndex:F,updateId:D},O.state)));else if(E.activeTooltipIndex!==void 0){var B=E.chartX,Y=E.chartY,H=E.activeTooltipIndex,Q=O.state,Z=Q.offset,te=Q.tooltipTicks;if(!Z)return;if(typeof P=="function")H=P(te,E);else if(P==="value"){H=-1;for(var X=0;X=0){var $,J;if(B.dataKey&&!B.allowDuplicatedCategory){var K=typeof B.dataKey=="function"?A:"payload.".concat(B.dataKey.toString());$=Eb(X,K,H),J=z&&V&&Eb(V,K,H)}else $=X==null?void 0:X[Y],J=z&&V&&V[Y];if(oe||ee){var se=E.props.activeIndex!==void 0?E.props.activeIndex:Y;return[I.cloneElement(E,ye(ye(ye({},P.props),fe),{},{activeIndex:se})),null,null]}if(!Ze($))return[j].concat(ld(O.renderActivePoints({item:P,activePoint:$,basePoint:J,childIndex:Y,isRange:z})))}else{var he,Ee=(he=O.getItemByXY(O.state.activeCoordinate))!==null&&he!==void 0?he:{graphicalItem:j},ue=Ee.graphicalItem,ve=ue.item,ge=ve===void 0?E:ve,Oe=ue.childIndex,Ce=ye(ye(ye({},P.props),fe),{},{activeIndex:Oe});return[I.cloneElement(ge,Ce),null,null]}return z?[j,null,null]:[j,null]}),Ge(ot(O),"renderCustomized",function(E,T,k){return I.cloneElement(E,ye(ye({key:"recharts-customized-".concat(k)},O.props),O.state))}),Ge(ot(O),"renderMap",{CartesianGrid:{handler:O.renderGrid,once:!0},ReferenceArea:{handler:O.renderReferenceElement},ReferenceLine:{handler:O.renderReferenceElement},ReferenceDot:{handler:O.renderReferenceElement},XAxis:{handler:O.renderXAxis},YAxis:{handler:O.renderYAxis},Brush:{handler:O.renderBrush,once:!0},Bar:{handler:O.renderGraphicChild},Line:{handler:O.renderGraphicChild},Area:{handler:O.renderGraphicChild},Radar:{handler:O.renderGraphicChild},RadialBar:{handler:O.renderGraphicChild},Scatter:{handler:O.renderGraphicChild},Pie:{handler:O.renderGraphicChild},Funnel:{handler:O.renderGraphicChild},Tooltip:{handler:O.renderCursor,once:!0},PolarGrid:{handler:O.renderPolarGrid,once:!0},PolarAngleAxis:{handler:O.renderPolarAxis},PolarRadiusAxis:{handler:O.renderPolarAxis},Customized:{handler:O.renderCustomized}}),O.clipPathId="".concat((_=b.id)!==null&&_!==void 0?_:bl("recharts"),"-clip"),O.throttleTriggeredAfterMouseMove=DW(O.triggeredAfterMouseMove,(w=b.throttleDelay)!==null&&w!==void 0?w:1e3/60),O.state={},O}return Gze(x,[{key:"componentDidMount",value:function(){var b,_;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(b=this.props.margin.left)!==null&&b!==void 0?b:0,top:(_=this.props.margin.top)!==null&&_!==void 0?_:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout})}},{key:"getSnapshotBeforeUpdate",value:function(b,_){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==_.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==b.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==b.margin){var w,O;this.accessibilityManager.setDetails({offset:{left:(w=this.props.margin.left)!==null&&w!==void 0?w:0,top:(O=this.props.margin.top)!==null&&O!==void 0?O:0}})}return null}},{key:"componentDidUpdate",value:function(){}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var b=Uo(this.props.children,xa);if(b&&typeof b.props.shared=="boolean"){var _=b.props.shared?"axis":"item";return s.indexOf(_)>=0?_:o}return o}},{key:"getMouseInfo",value:function(b){if(!this.container)return null;var _=this.container,w=_.getBoundingClientRect(),O=s4e(w),E={chartX:Math.round(b.pageX-O.left),chartY:Math.round(b.pageY-O.top)},T=w.width/_.offsetWidth||1,k=this.inRange(E.chartX,E.chartY,T);if(!k)return null;var P=this.state,D=P.xAxisMap,N=P.yAxisMap,F=this.getTooltipEventType();if(F!=="axis"&&D&&N){var B=cs(D).scale,Y=cs(N).scale,H=B&&B.invert?B.invert(E.chartX):null,Q=Y&&Y.invert?Y.invert(E.chartY):null;return ye(ye({},E),{},{xValue:H,yValue:Q})}var Z=Y8(this.state,this.props.data,this.props.layout,k);return Z?ye(ye({},E),Z):null}},{key:"inRange",value:function(b,_){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,O=this.props.layout,E=b/w,T=_/w;if(O==="horizontal"||O==="vertical"){var k=this.state.offset,P=E>=k.left&&E<=k.left+k.width&&T>=k.top&&T<=k.top+k.height;return P?{x:E,y:T}:null}var D=this.state,N=D.angleAxisMap,F=D.radiusAxisMap;if(N&&F){var B=cs(N);return P5({x:E,y:T},B)}return null}},{key:"parseEventsOfWrapper",value:function(){var b=this.props.children,_=this.getTooltipEventType(),w=Uo(b,xa),O={};w&&_==="axis"&&(w.props.trigger==="click"?O={onClick:this.handleClick}:O={onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd});var E=Tb(this.props,this.handleOuterEvent);return ye(ye({},E),O)}},{key:"addListener",value:function(){SS.on(ES,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){SS.removeListener(ES,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(b,_,w){for(var O=this.state.formattedGraphicalItems,E=0,T=O.length;EK8[e%K8.length],S_="#46e587",vVe="rgba(70, 229, 135, 0.4)",gVe=({chartData:e,showNumbers:t})=>y.jsx("ul",{className:"doughnut-chart-legend",children:e.map(({name:n,color:r,value:i})=>y.jsxs("li",{className:"doughnut-chart-legend__item d-flex",children:[y.jsx("div",{className:"doughnut-chart-legend__item-color",style:{backgroundColor:r}}),y.jsxs("small",{className:"doughnut-chart-legend__item-text flex-fill",children:[n,t&&y.jsxs("b",{children:[" (",hn(i),")"]})]})]},n))}),Z8=e=>I.useMemo(()=>Object.entries(e).map(([t,n],r)=>({name:t,value:n,color:OG(r)})),[e]),yVe=({stats:e,prevStats:t,showNumbersInLegend:n,dimensions:r})=>{const i=Z8(e),o=Z8(t),a=o.length>0,s=bj()?$fe:Ufe;return y.jsxs("div",{className:"row align-items-center",children:[y.jsx("div",{className:"col-sm-12 col-md-7",children:y.jsx("div",{style:r??{width:"100%",height:300},children:y.jsx(r?I.Fragment:VP,{children:y.jsxs(pVe,{...r,children:[y.jsx(xa,{formatter:hn,contentStyle:wG,itemStyle:{color:"white"}}),y.jsx(ia,{data:i,dataKey:"value",nameKey:"name",startAngle:360,endAngle:0,outerRadius:"100%",innerRadius:a?"65%":"50%",animationBegin:0,children:i.map((l,u)=>y.jsx(Ws,{fill:l.color,stroke:s},`${l.name}-${u}`))}),a&&y.jsx(ia,{data:o,dataKey:"value",nameKey:"name",startAngle:360,endAngle:0,outerRadius:"55%",innerRadius:"20%",animationBegin:0,stroke:s,fill:S_})]})})})}),y.jsx("div",{className:"col-sm-12 col-md-5",children:y.jsx(gVe,{chartData:i,showNumbers:n})})]})},Q8=({title:e,...t})=>{const[n,r]=Cn(!1);return y.jsx(vH,{title:y.jsxs(y.Fragment,{children:[e,y.jsx("div",{className:"float-end",children:y.jsx(ku,{checked:n,onChange:r,children:"Show numbers"})})]}),children:y.jsx(yVe,{...t,showNumbersInLegend:n})})},bVe=({visitsGroups:e})=>{const t=I.useMemo(()=>Object.entries(e),[e]);return t.length===0?null:y.jsx("ul",{className:"list-unstyled mb-0 mt-2 d-flex flex-wrap justify-content-center gap-3",children:t.map(([n,r],i)=>y.jsxs("li",{className:"d-inline",children:[y.jsx(rH,{color:SG(r)}),y.jsxs("strong",{children:[n," (",hn(r.length),")"]})]},`${n}${i}`))})},_Ve={monthly:"Month",weekly:"Week",daily:"Day",hourly:"Hour"},wVe={hourly:e=>({hours:e}),daily:e=>({days:e}),weekly:e=>({weeks:e}),monthly:e=>({months:e})},xVe={hourly:rhe,daily:bv,weekly:she,monthly:ib},wA={hourly:e=>ob(e,"yyyy-MM-dd HH:00"),daily:e=>eu(e),weekly(e){const t=eu(lm(e)),n=eu(che(e));return`${t} - ${n}`},monthly:e=>ob(e,"yyyy-MM")},OVe=e=>{var t;const n=Object.values(e).filter(a=>a.length>0);if(n.length===0)return"monthly";const r=new Date,i=n.map(a=>nl(a[a.length-1].date)),o=uz(i);return((t=[[()=>bv(r,o)<=2,"hourly"],[()=>ib(r,o)<=1,"daily"],[()=>ib(r,o)<=6,"weekly"]].find(([a])=>a()))==null?void 0:t[1])??"monthly"},SVe=(e,t)=>Object.keys(t).reduce((n,r)=>(n[r]=tz(t[r],i=>wA[e](nl(i.date))),n),{}),EVe=(e,t)=>t.reduce((n,r)=>{const i=wA[e](nl(r.date));return n[i]=n[i]??[],n[i].push(r),n},{}),TVe=(e,t)=>{const n=Object.values(t).filter(d=>d.length>0).map(d=>[...d].reverse());if(n.length===0)return[];const r=xVe[e],i=wA[e],o=wVe[e],a=n.map(d=>nl(d[0].date)),s=n.map(d=>nl(d[d.length-1].date)),l=uz(s),u=Jpe(a),f=r(l,u)+1;return[i(u),...Yj(f,d=>i(Kpe(u,o(d))))]},SG=e=>{if(e.color)return e.color;const t={main:rm,highlighted:mE,previous:S_};return e.type?t[e.type]:rm},X8=(e,t)=>I.useMemo(()=>Object.values(e).find(n=>n.type===t)??[],[e,t]),CVe=(e,t,n)=>{const r=X8(e,"main"),i=X8(e,"highlighted"),o=I.useMemo(()=>n?EVe(t,r):{},[n,t,r]),a=I.useCallback((s,{payload:l})=>{const u=o[l.date]??[];n==null||n(u===i?[]:u)},[o,i,n]);return n&&{cursor:"pointer",onClick:a}},EG=({visitsGroups:e,setSelectedVisits:t,dimensions:n,matchMedia:r})=>{const[i,o]=I.useState(OVe(e)),a=qj(767,r??window.matchMedia),s=I.useMemo(()=>{const d=SVe(i,e),p=Object.keys(d);return TVe(i,e).map(m=>({date:m,...p.reduce((v,g)=>(v[g]=d[g][m]??0,v),{})}))},[i,e]),l=CVe(e,i,t),u=n?I.Fragment:VP,f=I.useMemo(()=>n?{}:{width:"100%",height:a?300:400},[n,a]);return y.jsxs(di,{children:[y.jsxs(Sf,{role:"heading","aria-level":4,children:["Visits over time",y.jsx("div",{className:"float-end",children:y.jsxs(mv,{children:[y.jsx(gd,{caret:!0,color:"link",className:"btn-sm p-0",children:"Group by"}),y.jsx(vd,{end:!0,children:Object.entries(_Ve).map(([d,p])=>y.jsx(Re,{active:i===d,onClick:()=>o(d),children:p},d))})]})})]}),y.jsxs(Of,{children:[y.jsx(u,{...f,children:y.jsxs(dVe,{data:s,...n,children:[y.jsx(Bd,{dataKey:"date"}),y.jsx(zd,{tickFormatter:hn}),y.jsx(xa,{formatter:hn,...xG}),y.jsx(ex,{strokeOpacity:bj()?.1:.9}),Object.entries(e).map(([d,p])=>p.length>0&&y.jsx($d,{dataKey:d,type:"monotone",stroke:SG(p),strokeWidth:2,activeDot:p.type==="previous"?void 0:l,strokeDasharray:p.type==="previous"?"8 3":void 0},d))]})}),y.jsx(bVe,{visitsGroups:e})]})]})},kVe=({toggleClassName:e,ranges:t,value:n,setValue:r})=>y.jsxs(mv,{children:[y.jsx(gd,{caret:!0,color:"link",className:e,children:"Paginate"}),y.jsxs(vd,{end:!0,children:[t.map(i=>y.jsxs(Re,{active:i===n,onClick:()=>r(i),children:[y.jsx("b",{children:i})," items per page"]},i)),y.jsx(Re,{divider:!0,tag:"hr"}),y.jsx(Re,{disabled:n===1/0,onClick:()=>r(1/0),children:y.jsx("i",{children:"Clear pagination"})})]})]}),J8=e=>e.startsWith("hidden_"),jVe=({stats:e,prevStats:t,highlightedStats:n,highlightedLabel:r,max:i,onClick:o,dimensions:a})=>{const s=I.useMemo(()=>Object.entries(e).map(([d,p])=>{const m=(n==null?void 0:n[d])??0,v=(t==null?void 0:t[d])??0,g=J8(d);return{name:d,amount:Math.max(p,v),nonHighlightedAmount:g?null:p-m,highlightedAmount:g?null:m,prevAmount:g?null:v}}),[e,t,n]),l=I.useMemo(()=>{const d=s.reduce((p,{name:m})=>p>m.length?p:m.length,0);return Math.min(150,d*7)},[s]),u=a?I.Fragment:VP,f=I.useMemo(()=>a?{}:{width:"100%",height:Math.max(300,s.length*(t?44:22))},[a,s.length,t]);return y.jsx(u,{...f,children:y.jsxs(hVe,{layout:"vertical",data:s,barCategoryGap:3,...a,children:[y.jsx(Bd,{type:"number",dataKey:"amount",tickFormatter:hn,domain:i?[0,i]:void 0}),y.jsx(zd,{type:"category",dataKey:"name",width:l,interval:0,style:{fontSize:".8rem"},tickFormatter:d=>J8(d)?"":d}),y.jsx(ex,{strokeOpacity:bj()?.05:.9}),y.jsx(xa,{filterNull:!0,...xG,formatter:(d,p)=>{const m=hn(d),v=(()=>p==="highlightedAmount"?r:p==="prevAmount"?"Previous period":n?"Non-selected":"Visits")();return[m,v]}}),y.jsx(qs,{dataKey:"nonHighlightedAmount",stackId:"main",cursor:"pointer",fill:rm,onClick:({name:d})=>o==null?void 0:o(d),children:s.map(d=>y.jsx(Ws,{fill:Ife,stroke:rm,strokeWidth:2},d.name))}),n&&y.jsx(qs,{dataKey:"highlightedAmount",stackId:"main",cursor:"pointer",fill:mE,onClick:({name:d})=>o==null?void 0:o(d),children:s.map(d=>y.jsx(Ws,{fill:Ffe,stroke:mE,strokeWidth:2},d.name))}),t&&y.jsx(qs,{dataKey:"prevAmount",fill:S_,children:s.map(d=>y.jsx(Ws,{fill:vVe,stroke:S_,strokeWidth:2},d.name))})]})})},PVe=e=>typeof e=="string"?e.toLowerCase():e,AVe=([e])=>e,NVe=([,e])=>e,uy=({stats:e,prevStats:t,highlightedStats:n,title:r,sortingItems:i,extraHeaderContent:o,withPagination:a=!0,...s})=>{const[l,u]=I.useState({}),[f,d]=I.useState(1),[p,m]=I.useState(50),v=I.useCallback((P,D)=>{const N=Object.entries(P),F=l.field?Wpe(N,([B,Y])=>PVe(l.field===Object.keys(D)[0]?B:Y)):N;return!l.dir||l.dir==="ASC"?F:[...F].reverse()},[l.dir,l.field]),g=I.useCallback(P=>{const D=P[f-1];if(f[`hidden_${F}`,0])]},[f]),x=I.useCallback(P=>y.jsx(yP,{currentPage:f,pagesCount:P,setCurrentPage:d}),[f]),b=I.useCallback((P,D,N,F)=>{const B=v(P,D),Y=B.map(AVe),H=N&&Object.entries({...sL(Y,Y.map(()=>0)),...N}),Q=F&&Object.entries({...sL(Y,Y.map(()=>0)),...F});if(B.length<=p)return{currentPageStats:Object.fromEntries(B),currentPageHighlightedStats:H&&Object.fromEntries(H),currentPagePrevStats:Q&&Object.fromEntries(Q)};const Z=nf(B,p),te=H&&nf(H,p),X=Q&&nf(Q,p);return{currentPageStats:Object.fromEntries(g(Z)),currentPageHighlightedStats:te&&Object.fromEntries(g(te)),currentPagePrevStats:X&&Object.fromEntries(g(X)),pagination:x(Z.length),max:jve(Math.max(...B.map(NVe)))}},[g,v,p,x]),{currentPageStats:_,currentPagePrevStats:w,currentPageHighlightedStats:O,pagination:E,max:T}=I.useMemo(()=>b(e,i,n&&Object.keys(n).length>0?n:void 0,t&&Object.keys(t).length>0?t:void 0),[b,n,t,i,e]),k=I.useMemo(()=>Object.keys(_),[_]);return y.jsx(vH,{title:y.jsxs(y.Fragment,{children:[r,y.jsx("div",{className:"float-end",children:y.jsx(yv,{isButton:!1,right:!0,items:i,order:l,onChange:(P,D)=>{u({field:P,dir:D}),d(1)}})}),a&&Object.keys(e).length>50&&y.jsx("div",{className:"float-end",children:y.jsx(kVe,{toggleClassName:"btn-sm p-0 me-3",ranges:[50,100,200,500],value:p,setValue:P=>{m(P),d(1)}})}),o&&y.jsx("div",{className:"float-end",children:o(E?k:void 0)})]}),footer:E,children:y.jsx(jVe,{stats:_,prevStats:w,highlightedStats:O,max:T,...s})})},eF=(e,t)=>{if(!(!t||!(e in t)))return t[e]&&il(t[e])||""},TG=()=>{const e=oa(),t=_d(),{startDate:n,endDate:r,orphanVisitsType:i,excludeBots:o,loadPrevInterval:a,...s}=t,l=I.useMemo(()=>({dateRange:n!=null||r!=null?yz(n,r):void 0,visitsFilter:{orphanVisitsType:i,excludeBots:o!==void 0?o==="true":void 0},loadPrevInterval:a!==void 0?a==="true":void 0}),[r,o,a,i,n]),u=I.useCallback(f=>{const{dateRange:d,visitsFilter:p={},loadPrevInterval:m}=nz(l,f),{excludeBots:v,orphanVisitsType:g}=p,x={...s,startDate:eF("startDate",d),endDate:eF("endDate",d),excludeBots:v===void 0?void 0:SE(v),orphanVisitsType:g,loadPrevInterval:m===void 0?void 0:SE(m)},b=rw(x),_=b?`?${b}`:"";e(_,{replace:!0,relative:"route"})},[l,e,s]);return[l,u]};function CG(e,t){const n=I.useRef(t);I.useEffect(function(){t!==n.current&&e.attributionControl!=null&&(n.current!=null&&e.attributionControl.removeAttribution(n.current),t!=null&&e.attributionControl.addAttribution(t)),n.current=t},[e,t])}const MVe=1;function RVe(e){return Object.freeze({__version:MVe,map:e})}function DVe(e,t){return Object.freeze({...e,...t})}const kG=I.createContext(null),jG=kG.Provider;function PG(){const e=I.useContext(kG);if(e==null)throw new Error("No context provided: useLeafletContext() can only be used in a descendant of ");return e}function LVe(e){function t(n,r){const{instance:i,context:o}=e(n).current;return I.useImperativeHandle(r,()=>i),n.children==null?null:M.createElement(jG,{value:o},n.children)}return I.forwardRef(t)}function IVe(e){function t(n,r){const[i,o]=I.useState(!1),{instance:a}=e(n,o).current;I.useImperativeHandle(r,()=>a),I.useEffect(function(){i&&a.update()},[a,i,n.children]);const s=a._contentNode;return s?dd.createPortal(n.children,s):null}return I.forwardRef(t)}function FVe(e){function t(n,r){const{instance:i}=e(n).current;return I.useImperativeHandle(r,()=>i),null}return I.forwardRef(t)}function AG(e,t){const n=I.useRef();I.useEffect(function(){return t!=null&&e.instance.on(t),n.current=t,function(){n.current!=null&&e.instance.off(n.current),n.current=null}},[e,t])}function xA(e,t){const n=e.pane??t.pane;return n?{...e,pane:n}:e}function UVe(e,t){return function(n,r){const i=PG(),o=e(xA(n,i),i);return CG(i.map,n.attribution),AG(o.current,n.eventHandlers),t(o.current,i,n,r),o}}var bC={exports:{}};/* @preserve + * Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com + * (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade + */(function(e,t){(function(n,r){r(t)})($c,function(n){var r="1.9.4";function i(c){var h,S,C,R;for(S=1,C=arguments.length;S"u"||!L||!L.Mixin)){c=w(c)?c:[c];for(var h=0;h0?Math.floor(c):Math.ceil(c)};X.prototype={clone:function(){return new X(this.x,this.y)},add:function(c){return this.clone()._add(V(c))},_add:function(c){return this.x+=c.x,this.y+=c.y,this},subtract:function(c){return this.clone()._subtract(V(c))},_subtract:function(c){return this.x-=c.x,this.y-=c.y,this},divideBy:function(c){return this.clone()._divideBy(c)},_divideBy:function(c){return this.x/=c,this.y/=c,this},multiplyBy:function(c){return this.clone()._multiplyBy(c)},_multiplyBy:function(c){return this.x*=c,this.y*=c,this},scaleBy:function(c){return new X(this.x*c.x,this.y*c.y)},unscaleBy:function(c){return new X(this.x/c.x,this.y/c.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=z(this.x),this.y=z(this.y),this},distanceTo:function(c){c=V(c);var h=c.x-this.x,S=c.y-this.y;return Math.sqrt(h*h+S*S)},equals:function(c){return c=V(c),c.x===this.x&&c.y===this.y},contains:function(c){return c=V(c),Math.abs(c.x)<=Math.abs(this.x)&&Math.abs(c.y)<=Math.abs(this.y)},toString:function(){return"Point("+p(this.x)+", "+p(this.y)+")"}};function V(c,h,S){return c instanceof X?c:w(c)?new X(c[0],c[1]):c==null?c:typeof c=="object"&&"x"in c&&"y"in c?new X(c.x,c.y):new X(c,h,S)}function W(c,h){if(c)for(var S=h?[c,h]:c,C=0,R=S.length;C=this.min.x&&S.x<=this.max.x&&h.y>=this.min.y&&S.y<=this.max.y},intersects:function(c){c=re(c);var h=this.min,S=this.max,C=c.min,R=c.max,G=R.x>=h.x&&C.x<=S.x,ae=R.y>=h.y&&C.y<=S.y;return G&&ae},overlaps:function(c){c=re(c);var h=this.min,S=this.max,C=c.min,R=c.max,G=R.x>h.x&&C.xh.y&&C.y=h.lat&&R.lat<=S.lat&&C.lng>=h.lng&&R.lng<=S.lng},intersects:function(c){c=ee(c);var h=this._southWest,S=this._northEast,C=c.getSouthWest(),R=c.getNorthEast(),G=R.lat>=h.lat&&C.lat<=S.lat,ae=R.lng>=h.lng&&C.lng<=S.lng;return G&&ae},overlaps:function(c){c=ee(c);var h=this._southWest,S=this._northEast,C=c.getSouthWest(),R=c.getNorthEast(),G=R.lat>h.lat&&C.lath.lng&&C.lng1,vn=function(){var c=!1;try{var h=Object.defineProperty({},"passive",{get:function(){c=!0}});window.addEventListener("testPassiveEventSupport",d,h),window.removeEventListener("testPassiveEventSupport",d,h)}catch{}return c}(),Sr=function(){return!!document.createElement("canvas").getContext}(),tr=!!(document.createElementNS&&Ee("svg").createSVGRect),nr=!!tr&&function(){var c=document.createElement("div");return c.innerHTML="",(c.firstChild&&c.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),kn=!tr&&function(){try{var c=document.createElement("div");c.innerHTML='';var h=c.firstChild;return h.style.behavior="url(#default#VML)",h&&typeof h.adj=="object"}catch{return!1}}(),Ji=navigator.platform.indexOf("Mac")===0,eo=navigator.platform.indexOf("Linux")===0;function rr(c){return navigator.userAgent.toLowerCase().indexOf(c)>=0}var Ye={ie:ge,ielt9:Oe,edge:Ce,webkit:ke,android:Pe,android23:ce,androidStock:_e,opera:be,chrome:Se,gecko:Ae,safari:Le,phantom:st,opera12:ct,win:et,ie3d:fn,webkit3d:nn,gecko3d:In,any3d:Or,mobile:Eo,mobileWebkit:er,mobileWebkit3d:Hd,msPointer:To,pointer:$v,touch:zv,touchNative:Bv,mobileOpera:Wd,mobileGecko:Ol,retina:xn,passiveEvents:vn,canvas:Sr,svg:tr,vml:kn,inlineSvg:nr,mac:Ji,linux:eo},MA=Ye.msPointer?"MSPointerDown":"pointerdown",RA=Ye.msPointer?"MSPointerMove":"pointermove",DA=Ye.msPointer?"MSPointerUp":"pointerup",LA=Ye.msPointer?"MSPointerCancel":"pointercancel",ox={touchstart:MA,touchmove:RA,touchend:DA,touchcancel:LA},IA={touchstart:Uq,touchmove:Vv,touchend:Vv,touchcancel:Vv},Gu={},FA=!1;function Rq(c,h,S){return h==="touchstart"&&Fq(),IA[h]?(S=IA[h].bind(this,S),c.addEventListener(ox[h],S,!1),S):(console.warn("wrong event specified:",h),d)}function Dq(c,h,S){if(!ox[h]){console.warn("wrong event specified:",h);return}c.removeEventListener(ox[h],S,!1)}function Lq(c){Gu[c.pointerId]=c}function Iq(c){Gu[c.pointerId]&&(Gu[c.pointerId]=c)}function UA(c){delete Gu[c.pointerId]}function Fq(){FA||(document.addEventListener(MA,Lq,!0),document.addEventListener(RA,Iq,!0),document.addEventListener(DA,UA,!0),document.addEventListener(LA,UA,!0),FA=!0)}function Vv(c,h){if(h.pointerType!==(h.MSPOINTER_TYPE_MOUSE||"mouse")){h.touches=[];for(var S in Gu)h.touches.push(Gu[S]);h.changedTouches=[h],c(h)}}function Uq(c,h){h.MSPOINTER_TYPE_TOUCH&&h.pointerType===h.MSPOINTER_TYPE_TOUCH&&ir(h),Vv(c,h)}function $q(c){var h={},S,C;for(C in c)S=c[C],h[C]=S&&S.bind?S.bind(c):S;return c=h,h.type="dblclick",h.detail=2,h.isTrusted=!1,h._simulated=!0,h}var Bq=200;function zq(c,h){c.addEventListener("dblclick",h);var S=0,C;function R(G){if(G.detail!==1){C=G.detail;return}if(!(G.pointerType==="mouse"||G.sourceCapabilities&&!G.sourceCapabilities.firesTouchEvents)){var ae=HA(G);if(!(ae.some(function(me){return me instanceof HTMLLabelElement&&me.attributes.for})&&!ae.some(function(me){return me instanceof HTMLInputElement||me instanceof HTMLSelectElement}))){var pe=Date.now();pe-S<=Bq?(C++,C===2&&h($q(G))):C=1,S=pe}}}return c.addEventListener("click",R),{dblclick:h,simDblclick:R}}function Vq(c,h){c.removeEventListener("dblclick",h.dblclick),c.removeEventListener("click",h.simDblclick)}var ax=Yv(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Yd=Yv(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),$A=Yd==="webkitTransition"||Yd==="OTransition"?Yd+"End":"transitionend";function BA(c){return typeof c=="string"?document.getElementById(c):c}function Gd(c,h){var S=c.style[h]||c.currentStyle&&c.currentStyle[h];if((!S||S==="auto")&&document.defaultView){var C=document.defaultView.getComputedStyle(c,null);S=C?C[h]:null}return S==="auto"?null:S}function Ot(c,h,S){var C=document.createElement(c);return C.className=h||"",S&&S.appendChild(C),C}function rn(c){var h=c.parentNode;h&&h.removeChild(c)}function Hv(c){for(;c.firstChild;)c.removeChild(c.firstChild)}function qu(c){var h=c.parentNode;h&&h.lastChild!==c&&h.appendChild(c)}function Ku(c){var h=c.parentNode;h&&h.firstChild!==c&&h.insertBefore(c,h.firstChild)}function sx(c,h){if(c.classList!==void 0)return c.classList.contains(h);var S=Wv(c);return S.length>0&&new RegExp("(^|\\s)"+h+"(\\s|$)").test(S)}function it(c,h){if(c.classList!==void 0)for(var S=v(h),C=0,R=S.length;C0?2*window.devicePixelRatio:1;function YA(c){return Ye.edge?c.wheelDeltaY/2:c.deltaY&&c.deltaMode===0?-c.deltaY/Yq:c.deltaY&&c.deltaMode===1?-c.deltaY*20:c.deltaY&&c.deltaMode===2?-c.deltaY*60:c.deltaX||c.deltaZ?0:c.wheelDelta?(c.wheelDeltaY||c.wheelDelta)/2:c.detail&&Math.abs(c.detail)<32765?-c.detail*20:c.detail?c.detail/-32765*60:0}function bx(c,h){var S=h.relatedTarget;if(!S)return!0;try{for(;S&&S!==c;)S=S.parentNode}catch{return!1}return S!==c}var Gq={__proto__:null,on:tt,off:Lt,stopPropagation:Tl,disableScrollPropagation:yx,disableClickPropagation:Qd,preventDefault:ir,stop:Cl,getPropagationPath:HA,getMousePosition:WA,getWheelDelta:YA,isExternalTarget:bx,addListener:tt,removeListener:Lt},GA=te.extend({run:function(c,h,S,C){this.stop(),this._el=c,this._inProgress=!0,this._duration=S||.25,this._easeOutPower=1/Math.max(C||.5,.2),this._startPos=El(c),this._offset=h.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=F(this._animate,this),this._step()},_step:function(c){var h=+new Date-this._startTime,S=this._duration*1e3;hthis.options.maxZoom)?this.setZoom(c):this},panInsideBounds:function(c,h){this._enforcingBounds=!0;var S=this.getCenter(),C=this._limitCenter(S,this._zoom,ee(c));return S.equals(C)||this.panTo(C,h),this._enforcingBounds=!1,this},panInside:function(c,h){h=h||{};var S=V(h.paddingTopLeft||h.padding||[0,0]),C=V(h.paddingBottomRight||h.padding||[0,0]),R=this.project(this.getCenter()),G=this.project(c),ae=this.getPixelBounds(),pe=re([ae.min.add(S),ae.max.subtract(C)]),me=pe.getSize();if(!pe.contains(G)){this._enforcingBounds=!0;var xe=G.subtract(pe.getCenter()),Ie=pe.extend(G).getSize().subtract(me);R.x+=xe.x<0?-Ie.x:Ie.x,R.y+=xe.y<0?-Ie.y:Ie.y,this.panTo(this.unproject(R),h),this._enforcingBounds=!1}return this},invalidateSize:function(c){if(!this._loaded)return this;c=i({animate:!1,pan:!0},c===!0?{animate:!0}:c);var h=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var S=this.getSize(),C=h.divideBy(2).round(),R=S.divideBy(2).round(),G=C.subtract(R);return!G.x&&!G.y?this:(c.animate&&c.pan?this.panBy(G):(c.pan&&this._rawPanBy(G),this.fire("move"),c.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(a(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:h,newSize:S}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(c){if(c=this._locateOptions=i({timeout:1e4,watch:!1},c),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var h=a(this._handleGeolocationResponse,this),S=a(this._handleGeolocationError,this);return c.watch?this._locationWatchId=navigator.geolocation.watchPosition(h,S,c):navigator.geolocation.getCurrentPosition(h,S,c),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(c){if(this._container._leaflet_id){var h=c.code,S=c.message||(h===1?"permission denied":h===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:h,message:"Geolocation error: "+S+"."})}},_handleGeolocationResponse:function(c){if(this._container._leaflet_id){var h=c.coords.latitude,S=c.coords.longitude,C=new oe(h,S),R=C.toBounds(c.coords.accuracy*2),G=this._locateOptions;if(G.setView){var ae=this.getBoundsZoom(R);this.setView(C,G.maxZoom?Math.min(ae,G.maxZoom):ae)}var pe={latlng:C,bounds:R,timestamp:c.timestamp};for(var me in c.coords)typeof c.coords[me]=="number"&&(pe[me]=c.coords[me]);this.fire("locationfound",pe)}},addHandler:function(c,h){if(!h)return this;var S=this[c]=new h(this);return this._handlers.push(S),this.options[c]&&S.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch{this._container._leaflet_id=void 0,this._containerId=void 0}this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),rn(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(B(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var c;for(c in this._layers)this._layers[c].remove();for(c in this._panes)rn(this._panes[c]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(c,h){var S="leaflet-pane"+(c?" leaflet-"+c.replace("Pane","")+"-pane":""),C=Ot("div",S,h||this._mapPane);return c&&(this._panes[c]=C),C},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var c=this.getPixelBounds(),h=this.unproject(c.getBottomLeft()),S=this.unproject(c.getTopRight());return new q(h,S)},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZoom===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(c,h,S){c=ee(c),S=V(S||[0,0]);var C=this.getZoom()||0,R=this.getMinZoom(),G=this.getMaxZoom(),ae=c.getNorthWest(),pe=c.getSouthEast(),me=this.getSize().subtract(S),xe=re(this.project(pe,C),this.project(ae,C)).getSize(),Ie=Ye.any3d?this.options.zoomSnap:1,Ke=me.x/xe.x,lt=me.y/xe.y,Er=h?Math.max(Ke,lt):Math.min(Ke,lt);return C=this.getScaleZoom(Er,C),Ie&&(C=Math.round(C/(Ie/100))*(Ie/100),C=h?Math.ceil(C/Ie)*Ie:Math.floor(C/Ie)*Ie),Math.max(R,Math.min(G,C))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new X(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(c,h){var S=this._getTopLeftPoint(c,h);return new W(S,S.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(c){return this.options.crs.getProjectedBounds(c===void 0?this.getZoom():c)},getPane:function(c){return typeof c=="string"?this._panes[c]:c},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(c,h){var S=this.options.crs;return h=h===void 0?this._zoom:h,S.scale(c)/S.scale(h)},getScaleZoom:function(c,h){var S=this.options.crs;h=h===void 0?this._zoom:h;var C=S.zoom(c*S.scale(h));return isNaN(C)?1/0:C},project:function(c,h){return h=h===void 0?this._zoom:h,this.options.crs.latLngToPoint(le(c),h)},unproject:function(c,h){return h=h===void 0?this._zoom:h,this.options.crs.pointToLatLng(V(c),h)},layerPointToLatLng:function(c){var h=V(c).add(this.getPixelOrigin());return this.unproject(h)},latLngToLayerPoint:function(c){var h=this.project(le(c))._round();return h._subtract(this.getPixelOrigin())},wrapLatLng:function(c){return this.options.crs.wrapLatLng(le(c))},wrapLatLngBounds:function(c){return this.options.crs.wrapLatLngBounds(ee(c))},distance:function(c,h){return this.options.crs.distance(le(c),le(h))},containerPointToLayerPoint:function(c){return V(c).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(c){return V(c).add(this._getMapPanePos())},containerPointToLatLng:function(c){var h=this.containerPointToLayerPoint(V(c));return this.layerPointToLatLng(h)},latLngToContainerPoint:function(c){return this.layerPointToContainerPoint(this.latLngToLayerPoint(le(c)))},mouseEventToContainerPoint:function(c){return WA(c,this._container)},mouseEventToLayerPoint:function(c){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(c))},mouseEventToLatLng:function(c){return this.layerPointToLatLng(this.mouseEventToLayerPoint(c))},_initContainer:function(c){var h=this._container=BA(c);if(h){if(h._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");tt(h,"scroll",this._onScroll,this),this._containerId=l(h)},_initLayout:function(){var c=this._container;this._fadeAnimated=this.options.fadeAnimation&&Ye.any3d,it(c,"leaflet-container"+(Ye.touch?" leaflet-touch":"")+(Ye.retina?" leaflet-retina":"")+(Ye.ielt9?" leaflet-oldie":"")+(Ye.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var h=Gd(c,"position");h!=="absolute"&&h!=="relative"&&h!=="fixed"&&h!=="sticky"&&(c.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var c=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),On(this._mapPane,new X(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(it(c.markerPane,"leaflet-zoom-hide"),it(c.shadowPane,"leaflet-zoom-hide"))},_resetView:function(c,h,S){On(this._mapPane,new X(0,0));var C=!this._loaded;this._loaded=!0,h=this._limitZoom(h),this.fire("viewprereset");var R=this._zoom!==h;this._moveStart(R,S)._move(c,h)._moveEnd(R),this.fire("viewreset"),C&&this.fire("load")},_moveStart:function(c,h){return c&&this.fire("zoomstart"),h||this.fire("movestart"),this},_move:function(c,h,S,C){h===void 0&&(h=this._zoom);var R=this._zoom!==h;return this._zoom=h,this._lastCenter=c,this._pixelOrigin=this._getNewPixelOrigin(c),C?S&&S.pinch&&this.fire("zoom",S):((R||S&&S.pinch)&&this.fire("zoom",S),this.fire("move",S)),this},_moveEnd:function(c){return c&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return B(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(c){On(this._mapPane,this._getMapPanePos().subtract(c))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(c){this._targets={},this._targets[l(this._container)]=this;var h=c?Lt:tt;h(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&h(window,"resize",this._onResize,this),Ye.any3d&&this.options.transform3DLimit&&(c?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){B(this._resizeRequest),this._resizeRequest=F(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var c=this._getMapPanePos();Math.max(Math.abs(c.x),Math.abs(c.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(c,h){for(var S=[],C,R=h==="mouseout"||h==="mouseover",G=c.target||c.srcElement,ae=!1;G;){if(C=this._targets[l(G)],C&&(h==="click"||h==="preclick")&&this._draggableMoved(C)){ae=!0;break}if(C&&C.listens(h,!0)&&(R&&!bx(G,c)||(S.push(C),R))||G===this._container)break;G=G.parentNode}return!S.length&&!ae&&!R&&this.listens(h,!0)&&(S=[this]),S},_isClickDisabled:function(c){for(;c&&c!==this._container;){if(c._leaflet_disable_click)return!0;c=c.parentNode}},_handleDOMEvent:function(c){var h=c.target||c.srcElement;if(!(!this._loaded||h._leaflet_disable_events||c.type==="click"&&this._isClickDisabled(h))){var S=c.type;S==="mousedown"&&px(h),this._fireDOMEvent(c,S)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(c,h,S){if(c.type==="click"){var C=i({},c);C.type="preclick",this._fireDOMEvent(C,C.type,S)}var R=this._findEventTargets(c,h);if(S){for(var G=[],ae=0;ae0?Math.round(c-h)/2:Math.max(0,Math.ceil(c))-Math.max(0,Math.floor(h))},_limitZoom:function(c){var h=this.getMinZoom(),S=this.getMaxZoom(),C=Ye.any3d?this.options.zoomSnap:1;return C&&(c=Math.round(c/C)*C),Math.max(h,Math.min(S,c))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){gn(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(c,h){var S=this._getCenterOffset(c)._trunc();return(h&&h.animate)!==!0&&!this.getSize().contains(S)?!1:(this.panBy(S,h),!0)},_createAnimProxy:function(){var c=this._proxy=Ot("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(c),this.on("zoomanim",function(h){var S=ax,C=this._proxy.style[S];Sl(this._proxy,this.project(h.center,h.zoom),this.getZoomScale(h.zoom,1)),C===this._proxy.style[S]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){rn(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var c=this.getCenter(),h=this.getZoom();Sl(this._proxy,this.project(c,h),this.getZoomScale(h,1))},_catchTransitionEnd:function(c){this._animatingZoom&&c.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(c,h,S){if(this._animatingZoom)return!0;if(S=S||{},!this._zoomAnimated||S.animate===!1||this._nothingToAnimate()||Math.abs(h-this._zoom)>this.options.zoomAnimationThreshold)return!1;var C=this.getZoomScale(h),R=this._getCenterOffset(c)._divideBy(1-1/C);return S.animate!==!0&&!this.getSize().contains(R)?!1:(F(function(){this._moveStart(!0,S.noMoveStart||!1)._animateZoom(c,h,!0)},this),!0)},_animateZoom:function(c,h,S,C){this._mapPane&&(S&&(this._animatingZoom=!0,this._animateToCenter=c,this._animateToZoom=h,it(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:c,zoom:h,noUpdate:C}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(a(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&gn(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function qq(c,h){return new gt(c,h)}var to=H.extend({options:{position:"topright"},initialize:function(c){g(this,c)},getPosition:function(){return this.options.position},setPosition:function(c){var h=this._map;return h&&h.removeControl(this),this.options.position=c,h&&h.addControl(this),this},getContainer:function(){return this._container},addTo:function(c){this.remove(),this._map=c;var h=this._container=this.onAdd(c),S=this.getPosition(),C=c._controlCorners[S];return it(h,"leaflet-control"),S.indexOf("bottom")!==-1?C.insertBefore(h,C.firstChild):C.appendChild(h),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(rn(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(c){this._map&&c&&c.screenX>0&&c.screenY>0&&this._map.getContainer().focus()}}),Xd=function(c){return new to(c)};gt.include({addControl:function(c){return c.addTo(this),this},removeControl:function(c){return c.remove(),this},_initControlPos:function(){var c=this._controlCorners={},h="leaflet-",S=this._controlContainer=Ot("div",h+"control-container",this._container);function C(R,G){var ae=h+R+" "+h+G;c[R+G]=Ot("div",ae,S)}C("top","left"),C("top","right"),C("bottom","left"),C("bottom","right")},_clearControlPos:function(){for(var c in this._controlCorners)rn(this._controlCorners[c]);rn(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var qA=to.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(c,h,S,C){return S1,this._baseLayersList.style.display=c?"":"none"),this._separator.style.display=h&&c?"":"none",this},_onLayerChange:function(c){this._handlingClick||this._update();var h=this._getLayer(l(c.target)),S=h.overlay?c.type==="add"?"overlayadd":"overlayremove":c.type==="add"?"baselayerchange":null;S&&this._map.fire(S,h)},_createRadioElement:function(c,h){var S='",C=document.createElement("div");return C.innerHTML=S,C.firstChild},_addItem:function(c){var h=document.createElement("label"),S=this._map.hasLayer(c.layer),C;c.overlay?(C=document.createElement("input"),C.type="checkbox",C.className="leaflet-control-layers-selector",C.defaultChecked=S):C=this._createRadioElement("leaflet-base-layers_"+l(this),S),this._layerControlInputs.push(C),C.layerId=l(c.layer),tt(C,"click",this._onInputClick,this);var R=document.createElement("span");R.innerHTML=" "+c.name;var G=document.createElement("span");h.appendChild(G),G.appendChild(C),G.appendChild(R);var ae=c.overlay?this._overlaysList:this._baseLayersList;return ae.appendChild(h),this._checkDisabledLayers(),h},_onInputClick:function(){if(!this._preventClick){var c=this._layerControlInputs,h,S,C=[],R=[];this._handlingClick=!0;for(var G=c.length-1;G>=0;G--)h=c[G],S=this._getLayer(h.layerId).layer,h.checked?C.push(S):h.checked||R.push(S);for(G=0;G=0;R--)h=c[R],S=this._getLayer(h.layerId).layer,h.disabled=S.options.minZoom!==void 0&&CS.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var c=this._section;this._preventClick=!0,tt(c,"click",ir),this.expand();var h=this;setTimeout(function(){Lt(c,"click",ir),h._preventClick=!1})}}),Kq=function(c,h,S){return new qA(c,h,S)},_x=to.extend({options:{position:"topleft",zoomInText:'',zoomInTitle:"Zoom in",zoomOutText:'',zoomOutTitle:"Zoom out"},onAdd:function(c){var h="leaflet-control-zoom",S=Ot("div",h+" leaflet-bar"),C=this.options;return this._zoomInButton=this._createButton(C.zoomInText,C.zoomInTitle,h+"-in",S,this._zoomIn),this._zoomOutButton=this._createButton(C.zoomOutText,C.zoomOutTitle,h+"-out",S,this._zoomOut),this._updateDisabled(),c.on("zoomend zoomlevelschange",this._updateDisabled,this),S},onRemove:function(c){c.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(c){!this._disabled&&this._map._zoomthis._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(c.shiftKey?3:1))},_createButton:function(c,h,S,C,R){var G=Ot("a",S,C);return G.innerHTML=c,G.href="#",G.title=h,G.setAttribute("role","button"),G.setAttribute("aria-label",h),Qd(G),tt(G,"click",Cl),tt(G,"click",R,this),tt(G,"click",this._refocusOnMap,this),G},_updateDisabled:function(){var c=this._map,h="leaflet-disabled";gn(this._zoomInButton,h),gn(this._zoomOutButton,h),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||c._zoom===c.getMinZoom())&&(it(this._zoomOutButton,h),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||c._zoom===c.getMaxZoom())&&(it(this._zoomInButton,h),this._zoomInButton.setAttribute("aria-disabled","true"))}});gt.mergeOptions({zoomControl:!0}),gt.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new _x,this.addControl(this.zoomControl))});var Zq=function(c){return new _x(c)},KA=to.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(c){var h="leaflet-control-scale",S=Ot("div",h),C=this.options;return this._addScales(C,h+"-line",S),c.on(C.updateWhenIdle?"moveend":"move",this._update,this),c.whenReady(this._update,this),S},onRemove:function(c){c.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(c,h,S){c.metric&&(this._mScale=Ot("div",h,S)),c.imperial&&(this._iScale=Ot("div",h,S))},_update:function(){var c=this._map,h=c.getSize().y/2,S=c.distance(c.containerPointToLatLng([0,h]),c.containerPointToLatLng([this.options.maxWidth,h]));this._updateScales(S)},_updateScales:function(c){this.options.metric&&c&&this._updateMetric(c),this.options.imperial&&c&&this._updateImperial(c)},_updateMetric:function(c){var h=this._getRoundNum(c),S=h<1e3?h+" m":h/1e3+" km";this._updateScale(this._mScale,S,h/c)},_updateImperial:function(c){var h=c*3.2808399,S,C,R;h>5280?(S=h/5280,C=this._getRoundNum(S),this._updateScale(this._iScale,C+" mi",C/S)):(R=this._getRoundNum(h),this._updateScale(this._iScale,R+" ft",R/h))},_updateScale:function(c,h,S){c.style.width=Math.round(this.options.maxWidth*S)+"px",c.innerHTML=h},_getRoundNum:function(c){var h=Math.pow(10,(Math.floor(c)+"").length-1),S=c/h;return S=S>=10?10:S>=5?5:S>=3?3:S>=2?2:1,h*S}}),Qq=function(c){return new KA(c)},Xq='',wx=to.extend({options:{position:"bottomright",prefix:''+(Ye.inlineSvg?Xq+" ":"")+"Leaflet"},initialize:function(c){g(this,c),this._attributions={}},onAdd:function(c){c.attributionControl=this,this._container=Ot("div","leaflet-control-attribution"),Qd(this._container);for(var h in c._layers)c._layers[h].getAttribution&&this.addAttribution(c._layers[h].getAttribution());return this._update(),c.on("layeradd",this._addAttribution,this),this._container},onRemove:function(c){c.off("layeradd",this._addAttribution,this)},_addAttribution:function(c){c.layer.getAttribution&&(this.addAttribution(c.layer.getAttribution()),c.layer.once("remove",function(){this.removeAttribution(c.layer.getAttribution())},this))},setPrefix:function(c){return this.options.prefix=c,this._update(),this},addAttribution:function(c){return c?(this._attributions[c]||(this._attributions[c]=0),this._attributions[c]++,this._update(),this):this},removeAttribution:function(c){return c?(this._attributions[c]&&(this._attributions[c]--,this._update()),this):this},_update:function(){if(this._map){var c=[];for(var h in this._attributions)this._attributions[h]&&c.push(h);var S=[];this.options.prefix&&S.push(this.options.prefix),c.length&&S.push(c.join(", ")),this._container.innerHTML=S.join(' ')}}});gt.mergeOptions({attributionControl:!0}),gt.addInitHook(function(){this.options.attributionControl&&new wx().addTo(this)});var Jq=function(c){return new wx(c)};to.Layers=qA,to.Zoom=_x,to.Scale=KA,to.Attribution=wx,Xd.layers=Kq,Xd.zoom=Zq,Xd.scale=Qq,Xd.attribution=Jq;var ko=H.extend({initialize:function(c){this._map=c},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});ko.addTo=function(c,h){return c.addHandler(h,this),this};var eK={Events:Z},ZA=Ye.touch?"touchstart mousedown":"mousedown",ts=te.extend({options:{clickTolerance:3},initialize:function(c,h,S,C){g(this,C),this._element=c,this._dragStartTarget=h||c,this._preventOutline=S},enable:function(){this._enabled||(tt(this._dragStartTarget,ZA,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(ts._dragging===this&&this.finishDrag(!0),Lt(this._dragStartTarget,ZA,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(c){if(this._enabled&&(this._moved=!1,!sx(this._element,"leaflet-zoom-anim"))){if(c.touches&&c.touches.length!==1){ts._dragging===this&&this.finishDrag();return}if(!(ts._dragging||c.shiftKey||c.which!==1&&c.button!==1&&!c.touches)&&(ts._dragging=this,this._preventOutline&&px(this._element),cx(),qd(),!this._moving)){this.fire("down");var h=c.touches?c.touches[0]:c,S=zA(this._element);this._startPoint=new X(h.clientX,h.clientY),this._startPos=El(this._element),this._parentScale=hx(S);var C=c.type==="mousedown";tt(document,C?"mousemove":"touchmove",this._onMove,this),tt(document,C?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(c){if(this._enabled){if(c.touches&&c.touches.length>1){this._moved=!0;return}var h=c.touches&&c.touches.length===1?c.touches[0]:c,S=new X(h.clientX,h.clientY)._subtract(this._startPoint);!S.x&&!S.y||Math.abs(S.x)+Math.abs(S.y)G&&(ae=pe,G=me);G>S&&(h[ae]=1,Ox(c,h,S,C,ae),Ox(c,h,S,ae,R))}function iK(c,h){for(var S=[c[0]],C=1,R=0,G=c.length;Ch&&(S.push(c[C]),R=C);return Rh.max.x&&(S|=2),c.yh.max.y&&(S|=8),S}function oK(c,h){var S=h.x-c.x,C=h.y-c.y;return S*S+C*C}function Jd(c,h,S,C){var R=h.x,G=h.y,ae=S.x-R,pe=S.y-G,me=ae*ae+pe*pe,xe;return me>0&&(xe=((c.x-R)*ae+(c.y-G)*pe)/me,xe>1?(R=S.x,G=S.y):xe>0&&(R+=ae*xe,G+=pe*xe)),ae=c.x-R,pe=c.y-G,C?ae*ae+pe*pe:new X(R,G)}function _i(c){return!w(c[0])||typeof c[0][0]!="object"&&typeof c[0][0]<"u"}function rN(c){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),_i(c)}function iN(c,h){var S,C,R,G,ae,pe,me,xe;if(!c||c.length===0)throw new Error("latlngs not passed");_i(c)||(console.warn("latlngs are not flat! Only the first ring will be used"),c=c[0]);var Ie=le([0,0]),Ke=ee(c),lt=Ke.getNorthWest().distanceTo(Ke.getSouthWest())*Ke.getNorthEast().distanceTo(Ke.getNorthWest());lt<1700&&(Ie=xx(c));var Er=c.length,Fn=[];for(S=0;SC){me=(G-C)/R,xe=[pe.x-me*(pe.x-ae.x),pe.y-me*(pe.y-ae.y)];break}var Ur=h.unproject(V(xe));return le([Ur.lat+Ie.lat,Ur.lng+Ie.lng])}var aK={__proto__:null,simplify:JA,pointToSegmentDistance:eN,closestPointOnSegment:nK,clipSegment:nN,_getEdgeIntersection:Kv,_getBitCode:kl,_sqClosestPointOnSegment:Jd,isFlat:_i,_flat:rN,polylineCenter:iN},Sx={project:function(c){return new X(c.lng,c.lat)},unproject:function(c){return new oe(c.y,c.x)},bounds:new W([-180,-90],[180,90])},Ex={R:6378137,R_MINOR:6356752314245179e-9,bounds:new W([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(c){var h=Math.PI/180,S=this.R,C=c.lat*h,R=this.R_MINOR/S,G=Math.sqrt(1-R*R),ae=G*Math.sin(C),pe=Math.tan(Math.PI/4-C/2)/Math.pow((1-ae)/(1+ae),G/2);return C=-S*Math.log(Math.max(pe,1e-10)),new X(c.lng*h*S,C)},unproject:function(c){for(var h=180/Math.PI,S=this.R,C=this.R_MINOR/S,R=Math.sqrt(1-C*C),G=Math.exp(-c.y/S),ae=Math.PI/2-2*Math.atan(G),pe=0,me=.1,xe;pe<15&&Math.abs(me)>1e-7;pe++)xe=R*Math.sin(ae),xe=Math.pow((1-xe)/(1+xe),R/2),me=Math.PI/2-2*Math.atan(G*xe)-ae,ae+=me;return new oe(ae*h,c.x*h/S)}},sK={__proto__:null,LonLat:Sx,Mercator:Ex,SphericalMercator:$},lK=i({},j,{code:"EPSG:3395",projection:Ex,transformation:function(){var c=.5/(Math.PI*Ex.R);return K(c,.5,-c,.5)}()}),oN=i({},j,{code:"EPSG:4326",projection:Sx,transformation:K(1/180,1,-1/180,.5)}),uK=i({},fe,{projection:Sx,transformation:K(1,0,-1,0),scale:function(c){return Math.pow(2,c)},zoom:function(c){return Math.log(c)/Math.LN2},distance:function(c,h){var S=h.lng-c.lng,C=h.lat-c.lat;return Math.sqrt(S*S+C*C)},infinite:!0});fe.Earth=j,fe.EPSG3395=lK,fe.EPSG3857=se,fe.EPSG900913=he,fe.EPSG4326=oN,fe.Simple=uK;var no=te.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(c){return c.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(c){return c&&c.removeLayer(this),this},getPane:function(c){return this._map.getPane(c?this.options[c]||c:this.options.pane)},addInteractiveTarget:function(c){return this._map._targets[l(c)]=this,this},removeInteractiveTarget:function(c){return delete this._map._targets[l(c)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(c){var h=c.target;if(h.hasLayer(this)){if(this._map=h,this._zoomAnimated=h._zoomAnimated,this.getEvents){var S=this.getEvents();h.on(S,this),this.once("remove",function(){h.off(S,this)},this)}this.onAdd(h),this.fire("add"),h.fire("layeradd",{layer:this})}}});gt.include({addLayer:function(c){if(!c._layerAdd)throw new Error("The provided object is not a Layer.");var h=l(c);return this._layers[h]?this:(this._layers[h]=c,c._mapToAdd=this,c.beforeAdd&&c.beforeAdd(this),this.whenReady(c._layerAdd,c),this)},removeLayer:function(c){var h=l(c);return this._layers[h]?(this._loaded&&c.onRemove(this),delete this._layers[h],this._loaded&&(this.fire("layerremove",{layer:c}),c.fire("remove")),c._map=c._mapToAdd=null,this):this},hasLayer:function(c){return l(c)in this._layers},eachLayer:function(c,h){for(var S in this._layers)c.call(h,this._layers[S]);return this},_addLayers:function(c){c=c?w(c)?c:[c]:[];for(var h=0,S=c.length;hthis._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()=2&&h[0]instanceof oe&&h[0].equals(h[S-1])&&h.pop(),h},_setLatLngs:function(c){fa.prototype._setLatLngs.call(this,c),_i(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return _i(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var c=this._renderer._bounds,h=this.options.weight,S=new X(h,h);if(c=new W(c.min.subtract(S),c.max.add(S)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(c))){if(this.options.noClip){this._parts=this._rings;return}for(var C=0,R=this._rings.length,G;Cc.y!=R.y>c.y&&c.x<(R.x-C.x)*(c.y-C.y)/(R.y-C.y)+C.x&&(h=!h);return h||fa.prototype._containsPoint.call(this,c,!0)}});function gK(c,h){return new Xu(c,h)}var da=ca.extend({initialize:function(c,h){g(this,h),this._layers={},c&&this.addData(c)},addData:function(c){var h=w(c)?c:c.features,S,C,R;if(h){for(S=0,C=h.length;S0&&R.push(R[0].slice()),R}function Ju(c,h){return c.feature?i({},c.feature,{geometry:h}):tg(h)}function tg(c){return c.type==="Feature"||c.type==="FeatureCollection"?c:{type:"Feature",properties:{},geometry:c}}var jx={toGeoJSON:function(c){return Ju(this,{type:"Point",coordinates:kx(this.getLatLng(),c)})}};Zv.include(jx),Tx.include(jx),Qv.include(jx),fa.include({toGeoJSON:function(c){var h=!_i(this._latlngs),S=eg(this._latlngs,h?1:0,!1,c);return Ju(this,{type:(h?"Multi":"")+"LineString",coordinates:S})}}),Xu.include({toGeoJSON:function(c){var h=!_i(this._latlngs),S=h&&!_i(this._latlngs[0]),C=eg(this._latlngs,S?2:h?1:0,!0,c);return h||(C=[C]),Ju(this,{type:(S?"Multi":"")+"Polygon",coordinates:C})}}),Zu.include({toMultiPoint:function(c){var h=[];return this.eachLayer(function(S){h.push(S.toGeoJSON(c).geometry.coordinates)}),Ju(this,{type:"MultiPoint",coordinates:h})},toGeoJSON:function(c){var h=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(h==="MultiPoint")return this.toMultiPoint(c);var S=h==="GeometryCollection",C=[];return this.eachLayer(function(R){if(R.toGeoJSON){var G=R.toGeoJSON(c);if(S)C.push(G.geometry);else{var ae=tg(G);ae.type==="FeatureCollection"?C.push.apply(C,ae.features):C.push(ae)}}}),S?Ju(this,{geometries:C,type:"GeometryCollection"}):{type:"FeatureCollection",features:C}}});function lN(c,h){return new da(c,h)}var yK=lN,ng=no.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(c,h,S){this._url=c,this._bounds=ee(h),g(this,S)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(it(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){rn(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(c){return this.options.opacity=c,this._image&&this._updateOpacity(),this},setStyle:function(c){return c.opacity&&this.setOpacity(c.opacity),this},bringToFront:function(){return this._map&&qu(this._image),this},bringToBack:function(){return this._map&&Ku(this._image),this},setUrl:function(c){return this._url=c,this._image&&(this._image.src=c),this},setBounds:function(c){return this._bounds=ee(c),this._map&&this._reset(),this},getEvents:function(){var c={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(c.zoomanim=this._animateZoom),c},setZIndex:function(c){return this.options.zIndex=c,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var c=this._url.tagName==="IMG",h=this._image=c?this._url:Ot("img");if(it(h,"leaflet-image-layer"),this._zoomAnimated&&it(h,"leaflet-zoom-animated"),this.options.className&&it(h,this.options.className),h.onselectstart=d,h.onmousemove=d,h.onload=a(this.fire,this,"load"),h.onerror=a(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(h.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),c){this._url=h.src;return}h.src=this._url,h.alt=this.options.alt},_animateZoom:function(c){var h=this._map.getZoomScale(c.zoom),S=this._map._latLngBoundsToNewLayerBounds(this._bounds,c.zoom,c.center).min;Sl(this._image,S,h)},_reset:function(){var c=this._image,h=new W(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),S=h.getSize();On(c,h.min),c.style.width=S.x+"px",c.style.height=S.y+"px"},_updateOpacity:function(){bi(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var c=this.options.errorOverlayUrl;c&&this._url!==c&&(this._url=c,this._image.src=c)},getCenter:function(){return this._bounds.getCenter()}}),bK=function(c,h,S){return new ng(c,h,S)},uN=ng.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var c=this._url.tagName==="VIDEO",h=this._image=c?this._url:Ot("video");if(it(h,"leaflet-image-layer"),this._zoomAnimated&&it(h,"leaflet-zoom-animated"),this.options.className&&it(h,this.options.className),h.onselectstart=d,h.onmousemove=d,h.onloadeddata=a(this.fire,this,"load"),c){for(var S=h.getElementsByTagName("source"),C=[],R=0;R0?C:[h.src];return}w(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(h.style,"objectFit")&&(h.style.objectFit="fill"),h.autoplay=!!this.options.autoplay,h.loop=!!this.options.loop,h.muted=!!this.options.muted,h.playsInline=!!this.options.playsInline;for(var G=0;GR?(h.height=R+"px",it(c,G)):gn(c,G),this._containerWidth=this._container.offsetWidth},_animateZoom:function(c){var h=this._map._latLngToNewLayerPoint(this._latlng,c.zoom,c.center),S=this._getAnchor();On(this._container,h.add(S))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var c=this._map,h=parseInt(Gd(this._container,"marginBottom"),10)||0,S=this._container.offsetHeight+h,C=this._containerWidth,R=new X(this._containerLeft,-S-this._containerBottom);R._add(El(this._container));var G=c.layerPointToContainerPoint(R),ae=V(this.options.autoPanPadding),pe=V(this.options.autoPanPaddingTopLeft||ae),me=V(this.options.autoPanPaddingBottomRight||ae),xe=c.getSize(),Ie=0,Ke=0;G.x+C+me.x>xe.x&&(Ie=G.x+C-xe.x+me.x),G.x-Ie-pe.x<0&&(Ie=G.x-pe.x),G.y+S+me.y>xe.y&&(Ke=G.y+S-xe.y+me.y),G.y-Ke-pe.y<0&&(Ke=G.y-pe.y),(Ie||Ke)&&(this.options.keepInView&&(this._autopanning=!0),c.fire("autopanstart").panBy([Ie,Ke]))}},_getAnchor:function(){return V(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),xK=function(c,h){return new rg(c,h)};gt.mergeOptions({closePopupOnClick:!0}),gt.include({openPopup:function(c,h,S){return this._initOverlay(rg,c,h,S).openOn(this),this},closePopup:function(c){return c=arguments.length?c:this._popup,c&&c.close(),this}}),no.include({bindPopup:function(c,h){return this._popup=this._initOverlay(rg,this._popup,c,h),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(c){return this._popup&&(this instanceof ca||(this._popup._source=this),this._popup._prepareOpen(c||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return this._popup?this._popup.isOpen():!1},setPopupContent:function(c){return this._popup&&this._popup.setContent(c),this},getPopup:function(){return this._popup},_openPopup:function(c){if(!(!this._popup||!this._map)){Cl(c);var h=c.layer||c.target;if(this._popup._source===h&&!(h instanceof ns)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(c.latlng);return}this._popup._source=h,this.openPopup(c.latlng)}},_movePopup:function(c){this._popup.setLatLng(c.latlng)},_onKeyPress:function(c){c.originalEvent.keyCode===13&&this._openPopup(c)}});var ig=jo.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(c){jo.prototype.onAdd.call(this,c),this.setOpacity(this.options.opacity),c.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(c){jo.prototype.onRemove.call(this,c),c.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var c=jo.prototype.getEvents.call(this);return this.options.permanent||(c.preclick=this.close),c},_initLayout:function(){var c="leaflet-tooltip",h=c+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=Ot("div",h),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+l(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(c){var h,S,C=this._map,R=this._container,G=C.latLngToContainerPoint(C.getCenter()),ae=C.layerPointToContainerPoint(c),pe=this.options.direction,me=R.offsetWidth,xe=R.offsetHeight,Ie=V(this.options.offset),Ke=this._getAnchor();pe==="top"?(h=me/2,S=xe):pe==="bottom"?(h=me/2,S=0):pe==="center"?(h=me/2,S=xe/2):pe==="right"?(h=0,S=xe/2):pe==="left"?(h=me,S=xe/2):ae.xthis.options.maxZoom||SC?this._retainParent(R,G,ae,C):!1)},_retainChildren:function(c,h,S,C){for(var R=2*c;R<2*c+2;R++)for(var G=2*h;G<2*h+2;G++){var ae=new X(R,G);ae.z=S+1;var pe=this._tileCoordsToKey(ae),me=this._tiles[pe];if(me&&me.active){me.retain=!0;continue}else me&&me.loaded&&(me.retain=!0);S+1this.options.maxZoom||this.options.minZoom!==void 0&&R1){this._setView(c,S);return}for(var Ke=R.min.y;Ke<=R.max.y;Ke++)for(var lt=R.min.x;lt<=R.max.x;lt++){var Er=new X(lt,Ke);if(Er.z=this._tileZoom,!!this._isValidTile(Er)){var Fn=this._tiles[this._tileCoordsToKey(Er)];Fn?Fn.current=!0:ae.push(Er)}}if(ae.sort(function(Ur,tc){return Ur.distanceTo(G)-tc.distanceTo(G)}),ae.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var wi=document.createDocumentFragment();for(lt=0;ltS.max.x)||!h.wrapLat&&(c.yS.max.y))return!1}if(!this.options.bounds)return!0;var C=this._tileCoordsToBounds(c);return ee(this.options.bounds).overlaps(C)},_keyToBounds:function(c){return this._tileCoordsToBounds(this._keyToTileCoords(c))},_tileCoordsToNwSe:function(c){var h=this._map,S=this.getTileSize(),C=c.scaleBy(S),R=C.add(S),G=h.unproject(C,c.z),ae=h.unproject(R,c.z);return[G,ae]},_tileCoordsToBounds:function(c){var h=this._tileCoordsToNwSe(c),S=new q(h[0],h[1]);return this.options.noWrap||(S=this._map.wrapLatLngBounds(S)),S},_tileCoordsToKey:function(c){return c.x+":"+c.y+":"+c.z},_keyToTileCoords:function(c){var h=c.split(":"),S=new X(+h[0],+h[1]);return S.z=+h[2],S},_removeTile:function(c){var h=this._tiles[c];h&&(rn(h.el),delete this._tiles[c],this.fire("tileunload",{tile:h.el,coords:this._keyToTileCoords(c)}))},_initTile:function(c){it(c,"leaflet-tile");var h=this.getTileSize();c.style.width=h.x+"px",c.style.height=h.y+"px",c.onselectstart=d,c.onmousemove=d,Ye.ielt9&&this.options.opacity<1&&bi(c,this.options.opacity)},_addTile:function(c,h){var S=this._getTilePos(c),C=this._tileCoordsToKey(c),R=this.createTile(this._wrapCoords(c),a(this._tileReady,this,c));this._initTile(R),this.createTile.length<2&&F(a(this._tileReady,this,c,null,R)),On(R,S),this._tiles[C]={el:R,coords:c,current:!0},h.appendChild(R),this.fire("tileloadstart",{tile:R,coords:c})},_tileReady:function(c,h,S){h&&this.fire("tileerror",{error:h,tile:S,coords:c});var C=this._tileCoordsToKey(c);S=this._tiles[C],S&&(S.loaded=+new Date,this._map._fadeAnimated?(bi(S.el,0),B(this._fadeFrame),this._fadeFrame=F(this._updateOpacity,this)):(S.active=!0,this._pruneTiles()),h||(it(S.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:S.el,coords:c})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),Ye.ielt9||!this._map._fadeAnimated?F(this._pruneTiles,this):setTimeout(a(this._pruneTiles,this),250)))},_getTilePos:function(c){return c.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(c){var h=new X(this._wrapX?f(c.x,this._wrapX):c.x,this._wrapY?f(c.y,this._wrapY):c.y);return h.z=c.z,h},_pxBoundsToTileRange:function(c){var h=this.getTileSize();return new W(c.min.unscaleBy(h).floor(),c.max.unscaleBy(h).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var c in this._tiles)if(!this._tiles[c].loaded)return!1;return!0}});function EK(c){return new tp(c)}var ec=tp.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(c,h){this._url=c,h=g(this,h),h.detectRetina&&Ye.retina&&h.maxZoom>0?(h.tileSize=Math.floor(h.tileSize/2),h.zoomReverse?(h.zoomOffset--,h.minZoom=Math.min(h.maxZoom,h.minZoom+1)):(h.zoomOffset++,h.maxZoom=Math.max(h.minZoom,h.maxZoom-1)),h.minZoom=Math.max(0,h.minZoom)):h.zoomReverse?h.minZoom=Math.min(h.maxZoom,h.minZoom):h.maxZoom=Math.max(h.minZoom,h.maxZoom),typeof h.subdomains=="string"&&(h.subdomains=h.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(c,h){return this._url===c&&h===void 0&&(h=!0),this._url=c,h||this.redraw(),this},createTile:function(c,h){var S=document.createElement("img");return tt(S,"load",a(this._tileOnLoad,this,h,S)),tt(S,"error",a(this._tileOnError,this,h,S)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(S.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(S.referrerPolicy=this.options.referrerPolicy),S.alt="",S.src=this.getTileUrl(c),S},getTileUrl:function(c){var h={r:Ye.retina?"@2x":"",s:this._getSubdomain(c),x:c.x,y:c.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var S=this._globalTileRange.max.y-c.y;this.options.tms&&(h.y=S),h["-y"]=S}return _(this._url,i(h,this.options))},_tileOnLoad:function(c,h){Ye.ielt9?setTimeout(a(c,this,null,h),0):c(null,h)},_tileOnError:function(c,h,S){var C=this.options.errorTileUrl;C&&h.getAttribute("src")!==C&&(h.src=C),c(S,h)},_onTileRemove:function(c){c.tile.onload=null},_getZoomForUrl:function(){var c=this._tileZoom,h=this.options.maxZoom,S=this.options.zoomReverse,C=this.options.zoomOffset;return S&&(c=h-c),c+C},_getSubdomain:function(c){var h=Math.abs(c.x+c.y)%this.options.subdomains.length;return this.options.subdomains[h]},_abortLoading:function(){var c,h;for(c in this._tiles)if(this._tiles[c].coords.z!==this._tileZoom&&(h=this._tiles[c].el,h.onload=d,h.onerror=d,!h.complete)){h.src=E;var S=this._tiles[c].coords;rn(h),delete this._tiles[c],this.fire("tileabort",{tile:h,coords:S})}},_removeTile:function(c){var h=this._tiles[c];if(h)return h.el.setAttribute("src",E),tp.prototype._removeTile.call(this,c)},_tileReady:function(c,h,S){if(!(!this._map||S&&S.getAttribute("src")===E))return tp.prototype._tileReady.call(this,c,h,S)}});function dN(c,h){return new ec(c,h)}var pN=ec.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(c,h){this._url=c;var S=i({},this.defaultWmsParams);for(var C in h)C in this.options||(S[C]=h[C]);h=g(this,h);var R=h.detectRetina&&Ye.retina?2:1,G=this.getTileSize();S.width=G.x*R,S.height=G.y*R,this.wmsParams=S},onAdd:function(c){this._crs=this.options.crs||c.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var h=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[h]=this._crs.code,ec.prototype.onAdd.call(this,c)},getTileUrl:function(c){var h=this._tileCoordsToNwSe(c),S=this._crs,C=re(S.project(h[0]),S.project(h[1])),R=C.min,G=C.max,ae=(this._wmsVersion>=1.3&&this._crs===oN?[R.y,R.x,G.y,G.x]:[R.x,R.y,G.x,G.y]).join(","),pe=ec.prototype.getTileUrl.call(this,c);return pe+x(this.wmsParams,pe,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+ae},setParams:function(c,h){return i(this.wmsParams,c),h||this.redraw(),this}});function TK(c,h){return new pN(c,h)}ec.WMS=pN,dN.wms=TK;var pa=no.extend({options:{padding:.1},initialize:function(c){g(this,c),l(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),it(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var c={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(c.zoomanim=this._onAnimZoom),c},_onAnimZoom:function(c){this._updateTransform(c.center,c.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(c,h){var S=this._map.getZoomScale(h,this._zoom),C=this._map.getSize().multiplyBy(.5+this.options.padding),R=this._map.project(this._center,h),G=C.multiplyBy(-S).add(R).subtract(this._map._getNewPixelOrigin(c,h));Ye.any3d?Sl(this._container,G,S):On(this._container,G)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var c in this._layers)this._layers[c]._reset()},_onZoomEnd:function(){for(var c in this._layers)this._layers[c]._project()},_updatePaths:function(){for(var c in this._layers)this._layers[c]._update()},_update:function(){var c=this.options.padding,h=this._map.getSize(),S=this._map.containerPointToLayerPoint(h.multiplyBy(-c)).round();this._bounds=new W(S,S.add(h.multiplyBy(1+c*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),hN=pa.extend({options:{tolerance:0},getEvents:function(){var c=pa.prototype.getEvents.call(this);return c.viewprereset=this._onViewPreReset,c},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){pa.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var c=this._container=document.createElement("canvas");tt(c,"mousemove",this._onMouseMove,this),tt(c,"click dblclick mousedown mouseup contextmenu",this._onClick,this),tt(c,"mouseout",this._handleMouseOut,this),c._leaflet_disable_events=!0,this._ctx=c.getContext("2d")},_destroyContainer:function(){B(this._redrawRequest),delete this._ctx,rn(this._container),Lt(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var c;this._redrawBounds=null;for(var h in this._layers)c=this._layers[h],c._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){pa.prototype._update.call(this);var c=this._bounds,h=this._container,S=c.getSize(),C=Ye.retina?2:1;On(h,c.min),h.width=C*S.x,h.height=C*S.y,h.style.width=S.x+"px",h.style.height=S.y+"px",Ye.retina&&this._ctx.scale(2,2),this._ctx.translate(-c.min.x,-c.min.y),this.fire("update")}},_reset:function(){pa.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(c){this._updateDashArray(c),this._layers[l(c)]=c;var h=c._order={layer:c,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=h),this._drawLast=h,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(c){this._requestRedraw(c)},_removePath:function(c){var h=c._order,S=h.next,C=h.prev;S?S.prev=C:this._drawLast=C,C?C.next=S:this._drawFirst=S,delete c._order,delete this._layers[l(c)],this._requestRedraw(c)},_updatePath:function(c){this._extendRedrawBounds(c),c._project(),c._update(),this._requestRedraw(c)},_updateStyle:function(c){this._updateDashArray(c),this._requestRedraw(c)},_updateDashArray:function(c){if(typeof c.options.dashArray=="string"){var h=c.options.dashArray.split(/[, ]+/),S=[],C,R;for(R=0;R')}}catch{}return function(c){return document.createElement("<"+c+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),CK={_initContainer:function(){this._container=Ot("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(pa.prototype._update.call(this),this.fire("update"))},_initPath:function(c){var h=c._container=np("shape");it(h,"leaflet-vml-shape "+(this.options.className||"")),h.coordsize="1 1",c._path=np("path"),h.appendChild(c._path),this._updateStyle(c),this._layers[l(c)]=c},_addPath:function(c){var h=c._container;this._container.appendChild(h),c.options.interactive&&c.addInteractiveTarget(h)},_removePath:function(c){var h=c._container;rn(h),c.removeInteractiveTarget(h),delete this._layers[l(c)]},_updateStyle:function(c){var h=c._stroke,S=c._fill,C=c.options,R=c._container;R.stroked=!!C.stroke,R.filled=!!C.fill,C.stroke?(h||(h=c._stroke=np("stroke")),R.appendChild(h),h.weight=C.weight+"px",h.color=C.color,h.opacity=C.opacity,C.dashArray?h.dashStyle=w(C.dashArray)?C.dashArray.join(" "):C.dashArray.replace(/( *, *)/g," "):h.dashStyle="",h.endcap=C.lineCap.replace("butt","flat"),h.joinstyle=C.lineJoin):h&&(R.removeChild(h),c._stroke=null),C.fill?(S||(S=c._fill=np("fill")),R.appendChild(S),S.color=C.fillColor||C.color,S.opacity=C.fillOpacity):S&&(R.removeChild(S),c._fill=null)},_updateCircle:function(c){var h=c._point.round(),S=Math.round(c._radius),C=Math.round(c._radiusY||S);this._setPath(c,c._empty()?"M0 0":"AL "+h.x+","+h.y+" "+S+","+C+" 0,"+65535*360)},_setPath:function(c,h){c._path.v=h},_bringToFront:function(c){qu(c._container)},_bringToBack:function(c){Ku(c._container)}},og=Ye.vml?np:Ee,rp=pa.extend({_initContainer:function(){this._container=og("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=og("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){rn(this._container),Lt(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){pa.prototype._update.call(this);var c=this._bounds,h=c.getSize(),S=this._container;(!this._svgSize||!this._svgSize.equals(h))&&(this._svgSize=h,S.setAttribute("width",h.x),S.setAttribute("height",h.y)),On(S,c.min),S.setAttribute("viewBox",[c.min.x,c.min.y,h.x,h.y].join(" ")),this.fire("update")}},_initPath:function(c){var h=c._path=og("path");c.options.className&&it(h,c.options.className),c.options.interactive&&it(h,"leaflet-interactive"),this._updateStyle(c),this._layers[l(c)]=c},_addPath:function(c){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(c._path),c.addInteractiveTarget(c._path)},_removePath:function(c){rn(c._path),c.removeInteractiveTarget(c._path),delete this._layers[l(c)]},_updatePath:function(c){c._project(),c._update()},_updateStyle:function(c){var h=c._path,S=c.options;h&&(S.stroke?(h.setAttribute("stroke",S.color),h.setAttribute("stroke-opacity",S.opacity),h.setAttribute("stroke-width",S.weight),h.setAttribute("stroke-linecap",S.lineCap),h.setAttribute("stroke-linejoin",S.lineJoin),S.dashArray?h.setAttribute("stroke-dasharray",S.dashArray):h.removeAttribute("stroke-dasharray"),S.dashOffset?h.setAttribute("stroke-dashoffset",S.dashOffset):h.removeAttribute("stroke-dashoffset")):h.setAttribute("stroke","none"),S.fill?(h.setAttribute("fill",S.fillColor||S.color),h.setAttribute("fill-opacity",S.fillOpacity),h.setAttribute("fill-rule",S.fillRule||"evenodd")):h.setAttribute("fill","none"))},_updatePoly:function(c,h){this._setPath(c,ue(c._parts,h))},_updateCircle:function(c){var h=c._point,S=Math.max(Math.round(c._radius),1),C=Math.max(Math.round(c._radiusY),1)||S,R="a"+S+","+C+" 0 1,0 ",G=c._empty()?"M0 0":"M"+(h.x-S)+","+h.y+R+S*2+",0 "+R+-S*2+",0 ";this._setPath(c,G)},_setPath:function(c,h){c._path.setAttribute("d",h)},_bringToFront:function(c){qu(c._path)},_bringToBack:function(c){Ku(c._path)}});Ye.vml&&rp.include(CK);function vN(c){return Ye.svg||Ye.vml?new rp(c):null}gt.include({getRenderer:function(c){var h=c.options.renderer||this._getPaneRenderer(c.options.pane)||this.options.renderer||this._renderer;return h||(h=this._renderer=this._createRenderer()),this.hasLayer(h)||this.addLayer(h),h},_getPaneRenderer:function(c){if(c==="overlayPane"||c===void 0)return!1;var h=this._paneRenderers[c];return h===void 0&&(h=this._createRenderer({pane:c}),this._paneRenderers[c]=h),h},_createRenderer:function(c){return this.options.preferCanvas&&mN(c)||vN(c)}});var gN=Xu.extend({initialize:function(c,h){Xu.prototype.initialize.call(this,this._boundsToLatLngs(c),h)},setBounds:function(c){return this.setLatLngs(this._boundsToLatLngs(c))},_boundsToLatLngs:function(c){return c=ee(c),[c.getSouthWest(),c.getNorthWest(),c.getNorthEast(),c.getSouthEast()]}});function kK(c,h){return new gN(c,h)}rp.create=og,rp.pointsToPath=ue,da.geometryToLayer=Xv,da.coordsToLatLng=Cx,da.coordsToLatLngs=Jv,da.latLngToCoords=kx,da.latLngsToCoords=eg,da.getFeature=Ju,da.asFeature=tg,gt.mergeOptions({boxZoom:!0});var yN=ko.extend({initialize:function(c){this._map=c,this._container=c._container,this._pane=c._panes.overlayPane,this._resetStateTimeout=0,c.on("unload",this._destroy,this)},addHooks:function(){tt(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Lt(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){rn(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){this._resetStateTimeout!==0&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(c){if(!c.shiftKey||c.which!==1&&c.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),qd(),cx(),this._startPoint=this._map.mouseEventToContainerPoint(c),tt(document,{contextmenu:Cl,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(c){this._moved||(this._moved=!0,this._box=Ot("div","leaflet-zoom-box",this._container),it(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(c);var h=new W(this._point,this._startPoint),S=h.getSize();On(this._box,h.min),this._box.style.width=S.x+"px",this._box.style.height=S.y+"px"},_finish:function(){this._moved&&(rn(this._box),gn(this._container,"leaflet-crosshair")),Kd(),fx(),Lt(document,{contextmenu:Cl,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(c){if(!(c.which!==1&&c.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(a(this._resetState,this),0);var h=new q(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(h).fire("boxzoomend",{boxZoomBounds:h})}},_onKeyDown:function(c){c.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});gt.addInitHook("addHandler","boxZoom",yN),gt.mergeOptions({doubleClickZoom:!0});var bN=ko.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(c){var h=this._map,S=h.getZoom(),C=h.options.zoomDelta,R=c.originalEvent.shiftKey?S-C:S+C;h.options.doubleClickZoom==="center"?h.setZoom(R):h.setZoomAround(c.containerPoint,R)}});gt.addInitHook("addHandler","doubleClickZoom",bN),gt.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var _N=ko.extend({addHooks:function(){if(!this._draggable){var c=this._map;this._draggable=new ts(c._mapPane,c._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),c.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),c.on("zoomend",this._onZoomEnd,this),c.whenReady(this._onZoomEnd,this))}it(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){gn(this._map._container,"leaflet-grab"),gn(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var c=this._map;if(c._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var h=ee(this._map.options.maxBounds);this._offsetLimit=re(this._map.latLngToContainerPoint(h.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(h.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;c.fire("movestart").fire("dragstart"),c.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(c){if(this._map.options.inertia){var h=this._lastTime=+new Date,S=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(S),this._times.push(h),this._prunePositions(h)}this._map.fire("move",c).fire("drag",c)},_prunePositions:function(c){for(;this._positions.length>1&&c-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var c=this._map.getSize().divideBy(2),h=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=h.subtract(c).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(c,h){return c-(c-h)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var c=this._draggable._newPos.subtract(this._draggable._startPos),h=this._offsetLimit;c.xh.max.x&&(c.x=this._viscousLimit(c.x,h.max.x)),c.y>h.max.y&&(c.y=this._viscousLimit(c.y,h.max.y)),this._draggable._newPos=this._draggable._startPos.add(c)}},_onPreDragWrap:function(){var c=this._worldWidth,h=Math.round(c/2),S=this._initialWorldOffset,C=this._draggable._newPos.x,R=(C-h+S)%c+h-S,G=(C+h+S)%c-h-S,ae=Math.abs(R+S)0?G:-G))-h;this._delta=0,this._startTime=null,ae&&(c.options.scrollWheelZoom==="center"?c.setZoom(h+ae):c.setZoomAround(this._lastMousePos,h+ae))}});gt.addInitHook("addHandler","scrollWheelZoom",xN);var jK=600;gt.mergeOptions({tapHold:Ye.touchNative&&Ye.safari&&Ye.mobile,tapTolerance:15});var ON=ko.extend({addHooks:function(){tt(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Lt(this._map._container,"touchstart",this._onDown,this)},_onDown:function(c){if(clearTimeout(this._holdTimeout),c.touches.length===1){var h=c.touches[0];this._startPos=this._newPos=new X(h.clientX,h.clientY),this._holdTimeout=setTimeout(a(function(){this._cancel(),this._isTapValid()&&(tt(document,"touchend",ir),tt(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",h))},this),jK),tt(document,"touchend touchcancel contextmenu",this._cancel,this),tt(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function c(){Lt(document,"touchend",ir),Lt(document,"touchend touchcancel",c)},_cancel:function(){clearTimeout(this._holdTimeout),Lt(document,"touchend touchcancel contextmenu",this._cancel,this),Lt(document,"touchmove",this._onMove,this)},_onMove:function(c){var h=c.touches[0];this._newPos=new X(h.clientX,h.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(c,h){var S=new MouseEvent(c,{bubbles:!0,cancelable:!0,view:window,screenX:h.screenX,screenY:h.screenY,clientX:h.clientX,clientY:h.clientY});S._simulated=!0,h.target.dispatchEvent(S)}});gt.addInitHook("addHandler","tapHold",ON),gt.mergeOptions({touchZoom:Ye.touch,bounceAtZoomLimits:!0});var SN=ko.extend({addHooks:function(){it(this._map._container,"leaflet-touch-zoom"),tt(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){gn(this._map._container,"leaflet-touch-zoom"),Lt(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(c){var h=this._map;if(!(!c.touches||c.touches.length!==2||h._animatingZoom||this._zooming)){var S=h.mouseEventToContainerPoint(c.touches[0]),C=h.mouseEventToContainerPoint(c.touches[1]);this._centerPoint=h.getSize()._divideBy(2),this._startLatLng=h.containerPointToLatLng(this._centerPoint),h.options.touchZoom!=="center"&&(this._pinchStartLatLng=h.containerPointToLatLng(S.add(C)._divideBy(2))),this._startDist=S.distanceTo(C),this._startZoom=h.getZoom(),this._moved=!1,this._zooming=!0,h._stop(),tt(document,"touchmove",this._onTouchMove,this),tt(document,"touchend touchcancel",this._onTouchEnd,this),ir(c)}},_onTouchMove:function(c){if(!(!c.touches||c.touches.length!==2||!this._zooming)){var h=this._map,S=h.mouseEventToContainerPoint(c.touches[0]),C=h.mouseEventToContainerPoint(c.touches[1]),R=S.distanceTo(C)/this._startDist;if(this._zoom=h.getScaleZoom(R,this._startZoom),!h.options.bounceAtZoomLimits&&(this._zoomh.getMaxZoom()&&R>1)&&(this._zoom=h._limitZoom(this._zoom)),h.options.touchZoom==="center"){if(this._center=this._startLatLng,R===1)return}else{var G=S._add(C)._divideBy(2)._subtract(this._centerPoint);if(R===1&&G.x===0&&G.y===0)return;this._center=h.unproject(h.project(this._pinchStartLatLng,this._zoom).subtract(G),this._zoom)}this._moved||(h._moveStart(!0,!1),this._moved=!0),B(this._animRequest);var ae=a(h._move,h,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=F(ae,this,!0),ir(c)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,B(this._animRequest),Lt(document,"touchmove",this._onTouchMove,this),Lt(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))}});gt.addInitHook("addHandler","touchZoom",SN),gt.BoxZoom=yN,gt.DoubleClickZoom=bN,gt.Drag=_N,gt.Keyboard=wN,gt.ScrollWheelZoom=xN,gt.TapHold=ON,gt.TouchZoom=SN,n.Bounds=W,n.Browser=Ye,n.CRS=fe,n.Canvas=hN,n.Circle=Tx,n.CircleMarker=Qv,n.Class=H,n.Control=to,n.DivIcon=fN,n.DivOverlay=jo,n.DomEvent=Gq,n.DomUtil=Wq,n.Draggable=ts,n.Evented=te,n.FeatureGroup=ca,n.GeoJSON=da,n.GridLayer=tp,n.Handler=ko,n.Icon=Qu,n.ImageOverlay=ng,n.LatLng=oe,n.LatLngBounds=q,n.Layer=no,n.LayerGroup=Zu,n.LineUtil=aK,n.Map=gt,n.Marker=Zv,n.Mixin=eK,n.Path=ns,n.Point=X,n.PolyUtil=tK,n.Polygon=Xu,n.Polyline=fa,n.Popup=rg,n.PosAnimation=GA,n.Projection=sK,n.Rectangle=gN,n.Renderer=pa,n.SVG=rp,n.SVGOverlay=cN,n.TileLayer=ec,n.Tooltip=ig,n.Transformation=J,n.Util=Y,n.VideoOverlay=uN,n.bind=a,n.bounds=re,n.canvas=mN,n.circle=mK,n.circleMarker=hK,n.control=Xd,n.divIcon=SK,n.extend=i,n.featureGroup=fK,n.geoJSON=lN,n.geoJson=yK,n.gridLayer=EK,n.icon=dK,n.imageOverlay=bK,n.latLng=le,n.latLngBounds=ee,n.layerGroup=cK,n.map=qq,n.marker=pK,n.point=V,n.polygon=gK,n.polyline=vK,n.popup=xK,n.rectangle=kK,n.setOptions=g,n.stamp=l,n.svg=vN,n.svgOverlay=wK,n.tileLayer=dN,n.tooltip=OK,n.transformation=K,n.version=r,n.videoOverlay=_K;var PK=window.L;n.noConflict=function(){return window.L=PK,this},window.L=n})})(bC,bC.exports);var Iv=bC.exports;const tF=Et(Iv);function OA(e,t,n){return Object.freeze({instance:e,context:t,container:n})}function SA(e,t){return t==null?function(n,r){const i=I.useRef();return i.current||(i.current=e(n,r)),i}:function(n,r){const i=I.useRef();i.current||(i.current=e(n,r));const o=I.useRef(n),{instance:a}=i.current;return I.useEffect(function(){o.current!==n&&(t(a,n,o.current),o.current=n)},[a,n,r]),i}}function $Ve(e,t){I.useEffect(function(){return(t.layerContainer??t.map).addLayer(e.instance),function(){var n;(n=t.layerContainer)==null||n.removeLayer(e.instance),t.map.removeLayer(e.instance)}},[t,e])}function NG(e){return function(t){const n=PG(),r=e(xA(t,n),n);return CG(n.map,t.attribution),AG(r.current,t.eventHandlers),$Ve(r.current,n),r}}function BVe(e,t){const n=SA(e,t),r=NG(n);return LVe(r)}function zVe(e,t){const n=SA(e),r=UVe(n,t);return IVe(r)}function VVe(e,t){const n=SA(e,t),r=NG(n);return FVe(r)}function HVe(e,t,n){const{opacity:r,zIndex:i}=t;r!=null&&r!==n.opacity&&e.setOpacity(r),i!=null&&i!==n.zIndex&&e.setZIndex(i)}function _C(){return _C=Object.assign||function(e){for(var t=1;t(m==null?void 0:m.map)??null,[m]);const g=I.useCallback(b=>{if(b!==null&&m===null){const _=new Iv.Map(b,f);n!=null&&u!=null?_.setView(n,u):e!=null&&_.fitBounds(e,t),l!=null&&_.whenReady(l),v(RVe(_))}},[]);I.useEffect(()=>()=>{m==null||m.map.remove()},[m]);const x=m?M.createElement(jG,{value:m},r):a??null;return M.createElement("div",_C({},p,{ref:g}),x)}const YVe=I.forwardRef(WVe),GVe=BVe(function({position:e,...t},n){const r=new Iv.Marker(e,t);return OA(r,DVe(n,{overlayContainer:r}))},function(e,t,n){t.position!==n.position&&e.setLatLng(t.position),t.icon!=null&&t.icon!==n.icon&&e.setIcon(t.icon),t.zIndexOffset!=null&&t.zIndexOffset!==n.zIndexOffset&&e.setZIndexOffset(t.zIndexOffset),t.opacity!=null&&t.opacity!==n.opacity&&e.setOpacity(t.opacity),e.dragging!=null&&t.draggable!==n.draggable&&(t.draggable===!0?e.dragging.enable():e.dragging.disable())}),qVe=zVe(function(e,t){const n=new Iv.Popup(e,t.overlayContainer);return OA(n,t)},function(e,t,{position:n},r){I.useEffect(function(){const{instance:i}=e;function o(s){s.popup===i&&(i.update(),r(!0))}function a(s){s.popup===i&&r(!1)}return t.map.on({popupopen:o,popupclose:a}),t.overlayContainer==null?(n!=null&&i.setLatLng(n),i.openOn(t.map)):t.overlayContainer.bindPopup(i),function(){var s;t.map.off({popupopen:o,popupclose:a}),(s=t.overlayContainer)==null||s.unbindPopup(),t.map.removeLayer(i)}},[e,t,r,n])}),KVe=VVe(function({url:e,...t},n){const r=new Iv.TileLayer(e,xA(t,n));return OA(r,n)},function(e,t,n){HVe(e,t,n);const{url:r}=t;r!=null&&r!==n.url&&e.setUrl(r)}),ZVe=()=>y.jsx(KVe,{attribution:'© OpenStreetMap contributors',url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"}),QVe=e=>{if(e.length===0)return{};if(e.length>1)return{bounds:e.map(({latLong:n})=>n)};const[{latLong:t}]=e;return{zoom:10,center:t}},MG=({toggle:e,isOpen:t,title:n,locations:r=[]})=>y.jsx(Ka,{toggle:e,isOpen:t,className:"map-modal__modal",contentClassName:"map-modal__modal-content",children:y.jsxs(aa,{className:"map-modal__modal-body",children:[y.jsxs("h3",{className:"map-modal__modal-title",children:[n,y.jsx("button",{type:"button",className:"btn-close float-end","aria-label":"Close",onClick:e})]}),y.jsxs(YVe,{...QVe(r),children:[y.jsx(ZVe,{}),r.map(({cityName:i,latLong:o,count:a},s)=>y.jsx(GVe,{position:o,children:y.jsxs(qVe,{children:[y.jsx("b",{children:a})," visit",a>1?"s":""," from ",y.jsx("b",{children:i})]})},s))]})]})}),XVe=({modalTitle:e,activeCities:t,locations:n=[]})=>{const[r,,i,o]=Cn(),[a,s]=Cn(),[l,u]=I.useState([]),f=iw(),d=I.useCallback(p=>{u(p?n.filter(p):n),i()},[n,i]);return y.jsxs(y.Fragment,{children:[!t&&y.jsx(_t,{color:"link",className:"open-map-modal-btn__btn",id:f,onClick:()=>d(),"aria-label":"Show in map",children:y.jsx(Ne,{icon:A2})}),t&&y.jsxs(dv,{isOpen:a,toggle:s,children:[y.jsx(gd,{color:"link",className:"open-map-modal-btn__btn",id:f,children:y.jsx(Ne,{icon:A2})}),y.jsxs(vd,{end:!0,children:[y.jsx(Re,{onClick:()=>d(),children:"Show all locations"}),y.jsx(Re,{onClick:()=>d(({cityName:p})=>t.includes(p)),children:"Show locations in current page"})]})]}),y.jsx(Jr,{placement:"left",target:f,children:"Show in map"}),y.jsx(MG,{toggle:o,isOpen:r,title:e,locations:l})]})},RG=({onChange:e,selected:t={},className:n,isOrphanVisits:r=!1,withPrevInterval:i=!1,disabled:o})=>{const{orphanVisitsType:a,excludeBots:s=!1,loadPrevInterval:l=!1}=t,u=p=>({active:a===p,onClick:()=>e({...t,orphanVisitsType:p===a?void 0:p})}),f=I.useCallback(()=>e({...t,excludeBots:!s}),[s,e,t]),d=I.useCallback(()=>e({...t,loadPrevInterval:!l}),[l,e,t]);return y.jsxs(Qa,{disabled:o,text:"More",dropdownClassName:n,end:!0,minWidth:250,children:[i&&y.jsxs(y.Fragment,{children:[y.jsx(Re,{active:l,onClick:d,children:"Compare with previous period"}),y.jsx(Re,{divider:!0,tag:"hr"})]}),y.jsx(Re,{header:!0,"aria-hidden":!0,children:"Bots:"}),y.jsx(Re,{active:s,onClick:f,children:"Exclude potential bots"}),r&&y.jsxs(y.Fragment,{children:[y.jsx(Re,{divider:!0,tag:"hr"}),y.jsx(Re,{header:!0,"aria-hidden":!0,children:"Orphan visits type:"}),y.jsx(Re,{...u("base_url"),children:"Base URL"}),y.jsx(Re,{...u("invalid_short_url"),children:"Invalid short URL"}),y.jsx(Re,{...u("regular_404"),children:"Regular 404"})]}),y.jsx(Re,{divider:!0,tag:"hr"}),y.jsx(Re,{disabled:t.excludeBots===void 0&&t.loadPrevInterval===void 0&&t.orphanVisitsType===void 0,onClick:()=>e({excludeBots:void 0,loadPrevInterval:void 0,orphanVisitsType:void 0}),children:y.jsx("i",{children:"Reset to defaults"})})]})},DG=({info:e})=>{const{loading:t,errorData:n,progress:r}=e;return y.jsxs(y.Fragment,{children:[t&&r===null&&y.jsx(el,{loading:!0}),t&&r!==null&&y.jsxs(el,{loading:!0,children:["This is going to take a while... :S",y.jsx($B,{value:r,striped:r>=100,className:"mt-3"})]}),n&&y.jsx(li,{type:"error",children:y.jsx(Ua,{errorData:n,fallbackMessage:"An error occurred while loading visits :("})})]})},Wy=({children:e,showFallback:t})=>y.jsxs(y.Fragment,{children:[t&&y.jsx(el,{className:"mt-3",children:"There are no visits matching current filter"}),!t&&y.jsx(y.Fragment,{children:e})]}),JVe=({visitsDeletion:e,deleteVisits:t})=>{const{deleting:n}=e,[r,,i]=Cn();return y.jsx(Qt,{title:y.jsx("span",{className:"text-danger fw-bold",children:"Danger zone"}),children:y.jsxs("div",{className:"d-flex justify-content-between align-items-center",children:[y.jsxs("dl",{className:"m-0 me-3",children:[y.jsx("dt",{children:"Delete visits."}),y.jsxs("dd",{className:"m-0",children:["This will delete ",y.jsx("b",{children:"all"})," visits, not only the ones matching current filter."]})]}),!r&&y.jsx(_t,{color:"danger",className:"indivisible",onClick:i,children:"Delete visits"}),r&&y.jsxs(_t,{color:"danger",disabled:n,className:"indivisible",onClick:t,innerRef:o=>{o==null||o.focus()},children:[!n&&y.jsx(y.Fragment,{children:"Click again to confirm"}),n&&y.jsx(y.Fragment,{children:"Deleting..."})]})]})})},eHe={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},LG={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},yn={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},Cr={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},hs={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"};class we{static getFirstMatch(t,n){const r=n.match(t);return r&&r.length>0&&r[1]||""}static getSecondMatch(t,n){const r=n.match(t);return r&&r.length>1&&r[2]||""}static matchAndReturnConst(t,n,r){if(t.test(n))return r}static getWindowsVersionName(t){switch(t){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}static getMacOSVersionName(t){const n=t.split(".").splice(0,2).map(r=>parseInt(r,10)||0);if(n.push(0),n[0]===10)switch(n[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}}static getAndroidVersionName(t){const n=t.split(".").splice(0,2).map(r=>parseInt(r,10)||0);if(n.push(0),!(n[0]===1&&n[1]<5)){if(n[0]===1&&n[1]<6)return"Cupcake";if(n[0]===1&&n[1]>=6)return"Donut";if(n[0]===2&&n[1]<2)return"Eclair";if(n[0]===2&&n[1]===2)return"Froyo";if(n[0]===2&&n[1]>2)return"Gingerbread";if(n[0]===3)return"Honeycomb";if(n[0]===4&&n[1]<1)return"Ice Cream Sandwich";if(n[0]===4&&n[1]<4)return"Jelly Bean";if(n[0]===4&&n[1]>=4)return"KitKat";if(n[0]===5)return"Lollipop";if(n[0]===6)return"Marshmallow";if(n[0]===7)return"Nougat";if(n[0]===8)return"Oreo";if(n[0]===9)return"Pie"}}static getVersionPrecision(t){return t.split(".").length}static compareVersions(t,n,r=!1){const i=we.getVersionPrecision(t),o=we.getVersionPrecision(n);let a=Math.max(i,o),s=0;const l=we.map([t,n],u=>{const f=a-we.getVersionPrecision(u),d=u+new Array(f+1).join(".0");return we.map(d.split("."),p=>new Array(20-p.length).join("0")+p).reverse()});for(r&&(s=a-Math.min(i,o)),a-=1;a>=s;){if(l[0][a]>l[1][a])return 1;if(l[0][a]===l[1][a]){if(a===s)return 0;a-=1}else if(l[0][a]{r[s]=a[s]})}return t}static getBrowserAlias(t){return eHe[t]}static getBrowserTypeByAlias(t){return LG[t]||""}}const Mt=/version\/(\d+(\.?_?\d+)+)/i,tHe=[{test:[/googlebot/i],describe(e){const t={name:"Googlebot"},n=we.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||we.getFirstMatch(Mt,e);return n&&(t.version=n),t}},{test:[/opera/i],describe(e){const t={name:"Opera"},n=we.getFirstMatch(Mt,e)||we.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe(e){const t={name:"Opera"},n=we.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||we.getFirstMatch(Mt,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe(e){const t={name:"Samsung Internet for Android"},n=we.getFirstMatch(Mt,e)||we.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe(e){const t={name:"NAVER Whale Browser"},n=we.getFirstMatch(Mt,e)||we.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe(e){const t={name:"MZ Browser"},n=we.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||we.getFirstMatch(Mt,e);return n&&(t.version=n),t}},{test:[/focus/i],describe(e){const t={name:"Focus"},n=we.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||we.getFirstMatch(Mt,e);return n&&(t.version=n),t}},{test:[/swing/i],describe(e){const t={name:"Swing"},n=we.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||we.getFirstMatch(Mt,e);return n&&(t.version=n),t}},{test:[/coast/i],describe(e){const t={name:"Opera Coast"},n=we.getFirstMatch(Mt,e)||we.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(e){const t={name:"Opera Touch"},n=we.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||we.getFirstMatch(Mt,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe(e){const t={name:"Yandex Browser"},n=we.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||we.getFirstMatch(Mt,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe(e){const t={name:"UC Browser"},n=we.getFirstMatch(Mt,e)||we.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe(e){const t={name:"Maxthon"},n=we.getFirstMatch(Mt,e)||we.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe(e){const t={name:"Epiphany"},n=we.getFirstMatch(Mt,e)||we.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe(e){const t={name:"Puffin"},n=we.getFirstMatch(Mt,e)||we.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe(e){const t={name:"Sleipnir"},n=we.getFirstMatch(Mt,e)||we.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe(e){const t={name:"K-Meleon"},n=we.getFirstMatch(Mt,e)||we.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe(e){const t={name:"WeChat"},n=we.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||we.getFirstMatch(Mt,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe(e){const t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=we.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||we.getFirstMatch(Mt,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe(e){const t={name:"Internet Explorer"},n=we.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe(e){const t={name:"Microsoft Edge"},n=we.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe(e){const t={name:"Microsoft Edge"},n=we.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe(e){const t={name:"Vivaldi"},n=we.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe(e){const t={name:"SeaMonkey"},n=we.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe(e){const t={name:"Sailfish"},n=we.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe(e){const t={name:"Amazon Silk"},n=we.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe(e){const t={name:"PhantomJS"},n=we.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe(e){const t={name:"SlimerJS"},n=we.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){const t={name:"BlackBerry"},n=we.getFirstMatch(Mt,e)||we.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe(e){const t={name:"WebOS Browser"},n=we.getFirstMatch(Mt,e)||we.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe(e){const t={name:"Bada"},n=we.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe(e){const t={name:"Tizen"},n=we.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||we.getFirstMatch(Mt,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe(e){const t={name:"QupZilla"},n=we.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||we.getFirstMatch(Mt,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe(e){const t={name:"Firefox"},n=we.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe(e){const t={name:"Electron"},n=we.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe(e){const t={name:"Miui"},n=we.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe(e){const t={name:"Chromium"},n=we.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||we.getFirstMatch(Mt,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe(e){const t={name:"Chrome"},n=we.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe(e){const t={name:"Google Search"},n=we.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){const t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){const t={name:"Android Browser"},n=we.getFirstMatch(Mt,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe(e){const t={name:"PlayStation 4"},n=we.getFirstMatch(Mt,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe(e){const t={name:"Safari"},n=we.getFirstMatch(Mt,e);return n&&(t.version=n),t}},{test:[/.*/i],describe(e){const t=/^(.*)\/(.*) /,n=/^(.*)\/(.*)[ \t]\((.*)/,r=e.search("\\(")!==-1?n:t;return{name:we.getFirstMatch(r,e),version:we.getSecondMatch(r,e)}}}],nHe=[{test:[/Roku\/DVP/],describe(e){const t=we.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:Cr.Roku,version:t}}},{test:[/windows phone/i],describe(e){const t=we.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:Cr.WindowsPhone,version:t}}},{test:[/windows /i],describe(e){const t=we.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=we.getWindowsVersionName(t);return{name:Cr.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){const t={name:Cr.iOS},n=we.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe(e){const t=we.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=we.getMacOSVersionName(t),r={name:Cr.MacOS,version:t};return n&&(r.versionName=n),r}},{test:[/(ipod|iphone|ipad)/i],describe(e){const t=we.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:Cr.iOS,version:t}}},{test(e){const t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){const t=we.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=we.getAndroidVersionName(t),r={name:Cr.Android,version:t};return n&&(r.versionName=n),r}},{test:[/(web|hpw)[o0]s/i],describe(e){const t=we.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:Cr.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){const t=we.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||we.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||we.getFirstMatch(/\bbb(\d+)/i,e);return{name:Cr.BlackBerry,version:t}}},{test:[/bada/i],describe(e){const t=we.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:Cr.Bada,version:t}}},{test:[/tizen/i],describe(e){const t=we.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:Cr.Tizen,version:t}}},{test:[/linux/i],describe(){return{name:Cr.Linux}}},{test:[/CrOS/],describe(){return{name:Cr.ChromeOS}}},{test:[/PlayStation 4/],describe(e){const t=we.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:Cr.PlayStation4,version:t}}}],rHe=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(e){const t=we.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:yn.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:yn.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:yn.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:yn.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:yn.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:yn.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:yn.tablet}}},{test(e){const t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe(e){const t=we.getFirstMatch(/(ipod|iphone)/i,e);return{type:yn.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:yn.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:yn.mobile}}},{test(e){return e.getBrowserName(!0)==="blackberry"},describe(){return{type:yn.mobile,vendor:"BlackBerry"}}},{test(e){return e.getBrowserName(!0)==="bada"},describe(){return{type:yn.mobile}}},{test(e){return e.getBrowserName()==="windows phone"},describe(){return{type:yn.mobile,vendor:"Microsoft"}}},{test(e){const t=Number(String(e.getOSVersion()).split(".")[0]);return e.getOSName(!0)==="android"&&t>=3},describe(){return{type:yn.tablet}}},{test(e){return e.getOSName(!0)==="android"},describe(){return{type:yn.mobile}}},{test(e){return e.getOSName(!0)==="macos"},describe(){return{type:yn.desktop,vendor:"Apple"}}},{test(e){return e.getOSName(!0)==="windows"},describe(){return{type:yn.desktop}}},{test(e){return e.getOSName(!0)==="linux"},describe(){return{type:yn.desktop}}},{test(e){return e.getOSName(!0)==="playstation 4"},describe(){return{type:yn.tv}}},{test(e){return e.getOSName(!0)==="roku"},describe(){return{type:yn.tv}}}],iHe=[{test(e){return e.getBrowserName(!0)==="microsoft edge"},describe(e){if(/\sedg\//i.test(e))return{name:hs.Blink};const t=we.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:hs.EdgeHTML,version:t}}},{test:[/trident/i],describe(e){const t={name:hs.Trident},n=we.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){return e.test(/presto/i)},describe(e){const t={name:hs.Presto},n=we.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){const t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe(e){const t={name:hs.Gecko},n=we.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:hs.Blink}}},{test:[/(apple)?webkit/i],describe(e){const t={name:hs.WebKit},n=we.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}];class nF{constructor(t,n=!1){if(t==null||t==="")throw new Error("UserAgent parameter can't be empty");this._ua=t,this.parsedResult={},n!==!0&&this.parse()}getUA(){return this._ua}test(t){return t.test(this._ua)}parseBrowser(){this.parsedResult.browser={};const t=we.find(tHe,n=>{if(typeof n.test=="function")return n.test(this);if(n.test instanceof Array)return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.browser=t.describe(this.getUA())),this.parsedResult.browser}getBrowser(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}getBrowserName(t){return t?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""}getBrowserVersion(){return this.getBrowser().version}getOS(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()}parseOS(){this.parsedResult.os={};const t=we.find(nHe,n=>{if(typeof n.test=="function")return n.test(this);if(n.test instanceof Array)return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.os=t.describe(this.getUA())),this.parsedResult.os}getOSName(t){const{name:n}=this.getOS();return t?String(n).toLowerCase()||"":n||""}getOSVersion(){return this.getOS().version}getPlatform(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}getPlatformType(t=!1){const{type:n}=this.getPlatform();return t?String(n).toLowerCase()||"":n||""}parsePlatform(){this.parsedResult.platform={};const t=we.find(rHe,n=>{if(typeof n.test=="function")return n.test(this);if(n.test instanceof Array)return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.platform=t.describe(this.getUA())),this.parsedResult.platform}getEngine(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}getEngineName(t){return t?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}parseEngine(){this.parsedResult.engine={};const t=we.find(iHe,n=>{if(typeof n.test=="function")return n.test(this);if(n.test instanceof Array)return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.engine=t.describe(this.getUA())),this.parsedResult.engine}parse(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}getResult(){return we.assign({},this.parsedResult)}satisfies(t){const n={};let r=0;const i={};let o=0;if(Object.keys(t).forEach(a=>{const s=t[a];typeof s=="string"?(i[a]=s,o+=1):typeof s=="object"&&(n[a]=s,r+=1)}),r>0){const a=Object.keys(n),s=we.find(a,u=>this.isOS(u));if(s){const u=this.satisfies(n[s]);if(u!==void 0)return u}const l=we.find(a,u=>this.isPlatform(u));if(l){const u=this.satisfies(n[l]);if(u!==void 0)return u}}if(o>0){const a=Object.keys(i),s=we.find(a,l=>this.isBrowser(l,!0));if(s!==void 0)return this.compareVersion(i[s])}}isBrowser(t,n=!1){const r=this.getBrowserName().toLowerCase();let i=t.toLowerCase();const o=we.getBrowserTypeByAlias(i);return n&&o&&(i=o.toLowerCase()),i===r}compareVersion(t){let n=[0],r=t,i=!1;const o=this.getBrowserVersion();if(typeof o=="string")return t[0]===">"||t[0]==="<"?(r=t.substr(1),t[1]==="="?(i=!0,r=t.substr(2)):n=[],t[0]===">"?n.push(1):n.push(-1)):t[0]==="="?r=t.substr(1):t[0]==="~"&&(i=!0,r=t.substr(1)),n.indexOf(we.compareVersions(o,r,i))>-1}isOS(t){return this.getOSName(!0)===String(t).toLowerCase()}isPlatform(t){return this.getPlatformType(!0)===String(t).toLowerCase()}isEngine(t){return this.getEngineName(!0)===String(t).toLowerCase()}is(t,n=!1){return this.isBrowser(t,n)||this.isOS(t)||this.isPlatform(t)}some(t=[]){return t.some(n=>this.is(n))}}/*! + * Bowser - a browser detector + * https://github.com/lancedikson/bowser + * MIT License | (c) Dustin Diaz 2012-2015 + * MIT License | (c) Denis Demchenko 2015-2019 + */class oHe{static getParser(t,n=!1){if(typeof t!="string")throw new Error("UserAgent should be a string");return new nF(t,n)}static parse(t){return new nF(t).getResult()}static get BROWSER_MAP(){return LG}static get ENGINE_MAP(){return hs}static get OS_MAP(){return Cr}static get PLATFORMS_MAP(){return yn}}const cy="Others",aHe=["Android Browser","Chrome","Chromium","Firefox","Internet Explorer","Microsoft Edge","Opera","Safari","Samsung Internet for Android","Vivaldi","WeChat"],sHe=e=>{if(!Gl(e))return{browser:cy,os:cy};const{browser:{name:t},os:{name:n}}=oHe.parse(e);return{os:n??cy,browser:t&&aHe.includes(t)?t:cy}},lHe=e=>{var t;return Gl(e)?((t=e.split("/")[e.includes("://")?2:0])==null?void 0:t.split(":")[0])??"":"Direct"},IG=(e,t)=>e[t]!==void 0,rF=e=>typeof e=="number"?e:e?parseFloat(e):0,uHe=(e,{os:t})=>{e[t]=(e[t]||0)+1},cHe=(e,{browser:t})=>{e[t]=(e[t]||0)+1},fHe=(e,{referer:t})=>{e[t]=(e[t]||0)+1},FG=e=>(t,n)=>{const r=IG(n,e)?n[e]:"Unknown";t[r]=(t[r]||0)+1},dHe=FG("country"),pHe=FG("city"),hHe=(e,t)=>{if(!IG(t,"city")||t.city==="Unknown")return;const{city:n,latitude:r,longitude:i}=t,o=e[n]||{cityName:n,count:0,latLong:[rF(r),rF(i)]};o.count+=1,e[n]=o},mHe=(e,t)=>{if(!Rme(t))return;const{visitedUrl:n}=t;e[n]=(e[n]||0)+1},wC=e=>e.reduce((t,n)=>(uHe(t.os,n),cHe(t.browsers,n),fHe(t.referrers,n),dHe(t.countries,n),pHe(t.cities,n),hHe(t.citiesForMap,n),mHe(t.visitedUrls,n),t),{os:{},browsers:{},referrers:{},countries:{},cities:{},citiesForMap:{},visitedUrls:{}}),E_=e=>e.map(t=>{const{userAgent:n,date:r,referer:i,visitLocation:o,potentialBot:a}=t,s={date:r,potentialBot:a,...sHe(n),referer:lHe(i),country:(o==null?void 0:o.countryName)||"Unknown",city:(o==null?void 0:o.cityName)||"Unknown",latitude:o==null?void 0:o.latitude,longitude:o==null?void 0:o.longitude};return Hj(t)?{...s,type:t.type,visitedUrl:t.visitedUrl}:s}),vHe=Object.freeze(Object.defineProperty({__proto__:null,normalizeVisits:E_,processStatsFromVisits:wC},Symbol.toStringTag,{value:"Module"})),Yp=20,gHe=({browser:e,os:t,referer:n,country:r,city:i,...o},a)=>`${e} ${t} ${n} ${r} ${i} ${o.visitedUrl}`.toLowerCase().includes(a.toLowerCase()),yHe=(e,t)=>t.filter(n=>gHe(n,e)),bHe=(e,t)=>v9(t,e),_He=(e,t,n)=>{const r=t?yHe(t,e):[...e],i=bHe(n,r),o=i.length;return{visitsGroups:nf(i,Yp),total:o}},ha="visits-table__header-cell visits-table__sticky",wHe=({visits:e,selectedVisits:t=[],setSelectedVisits:n,matchMedia:r=window.matchMedia,isOrphanVisits:i=!1})=>{var o;const a=qj(767,r),[s,l]=I.useState(void 0),u=I.useRef(s),[f,d]=I.useState({}),p=I.useMemo(()=>_He(e,s,f),[e,s,f]),[m,v]=I.useState(1),g=m*Yp,x=g-Yp,b=8+Number(i),_=O=>()=>d({field:O,dir:aw(O,f.field,f.dir)}),w=O=>y.jsx(vh,{currentOrder:f,field:O,className:"visits-table__header-icon"});return I.useEffect(()=>{u.current!==s&&(v(1),n([])),u.current=s},[s,n]),y.jsx("div",{className:"table-responsive-md",children:y.jsxs("table",{className:"table table-bordered table-hover table-sm visits-table",children:[y.jsxs("thead",{className:"visits-table__header",children:[y.jsxs("tr",{children:[y.jsxs("th",{className:`${ha} text-center`,onClick:()=>n(t.length0})})]}),y.jsxs("th",{className:`${ha} text-center`,onClick:_("potentialBot"),children:[y.jsx("span",{className:"sr-only",children:"Is bot"}),y.jsx(Ne,{icon:rR}),w("potentialBot")]}),y.jsxs("th",{className:ha,onClick:_("date"),children:["Date",w("date")]}),y.jsxs("th",{className:ha,onClick:_("country"),children:["Country",w("country")]}),y.jsxs("th",{className:ha,onClick:_("city"),children:["City",w("city")]}),y.jsxs("th",{className:ha,onClick:_("browser"),children:["Browser",w("browser")]}),y.jsxs("th",{className:ha,onClick:_("os"),children:["OS",w("os")]}),y.jsxs("th",{className:ha,onClick:_("referer"),children:["Referrer",w("referer")]}),i&&y.jsxs("th",{className:ha,onClick:_("visitedUrl"),children:["Visited URL",w("visitedUrl")]})]}),y.jsx("tr",{children:y.jsx("td",{colSpan:b,className:"p-0",children:y.jsx(gv,{noBorder:!0,large:!1,onChange:l})})})]}),y.jsxs("tbody",{children:[p.total===0&&y.jsx("tr",{children:y.jsx("td",{colSpan:b,className:"text-center",children:"There are no visits matching current filter"})}),(o=p.visitsGroups[m-1])==null?void 0:o.map((O,E)=>{const T=t.includes(O);return y.jsxs("tr",{style:{cursor:"pointer"},className:We({"table-active":T}),onClick:()=>n(T?t.filter(k=>k!==O):[...t,O]),children:[y.jsx("td",{className:"text-center",children:T&&y.jsx(Ne,{icon:Wh,className:"text-primary"})}),y.jsx("td",{className:"text-center",children:O.potentialBot&&y.jsxs(y.Fragment,{children:[y.jsx(Ne,{icon:rR,id:`botIcon${E}`}),y.jsx(Jr,{placement:"right",target:`botIcon${E}`,children:"Potentially a visit from a bot or crawler"})]})}),y.jsx("td",{children:y.jsx(fb,{date:O.date})}),y.jsx("td",{children:O.country}),y.jsx("td",{children:O.city}),y.jsx("td",{children:O.browser}),y.jsx("td",{children:O.os}),y.jsx("td",{children:O.referer}),i&&y.jsx("td",{children:O.visitedUrl})]},E)})]}),p.total>Yp&&y.jsx("tfoot",{children:y.jsx("tr",{children:y.jsx("td",{colSpan:b,className:"visits-table__footer-cell visits-table__sticky",children:y.jsxs("div",{className:"row",children:[y.jsx("div",{className:"col-md-6",children:y.jsx(yP,{pagesCount:Math.ceil(p.total/Yp),currentPage:m,setCurrentPage:v,centered:a})}),y.jsx("div",{className:We("col-md-6",{"d-flex align-items-center flex-row-reverse":!a,"text-center mt-3":a}),children:y.jsxs("div",{children:["Visits ",y.jsx("b",{children:hn(x+1)})," to"," ",y.jsx("b",{children:hn(Math.min(g,p.total))})," of"," ",y.jsx("b",{children:hn(p.total)})]})})]})})})})]})})},ms={byTime:{title:"By time",subPath:"by-time",icon:nee},byContext:{title:"By context",subPath:"by-context",icon:Pk},byLocation:{title:"By location",subPath:"by-location",icon:A2},list:{title:"List",subPath:"list",icon:w7},options:{title:"Options",subPath:"options",icon:S7,shouldRender:({deletion:e})=>!!e}};Object.freeze(ms);const CS=({display:e})=>e&&y.jsx("div",{className:"mt-3 mx-auto w-75",children:y.jsx(Qt,{children:y.jsxs("div",{className:"d-flex gap-2",children:[y.jsx(Ne,{icon:Xee,className:"mt-1"}),y.jsx("i",{children:"Could not calculate previous period because selected one does not have a strictly defined start date."})]})})});let fy;const Fv=e=>{const{children:t,visitsInfo:n,getVisits:r,cancelGetVisits:i,deletion:o,exportCsv:a,isOrphanVisits:s=!1}=e,{visits:l,prevVisits:u,loading:f,errorData:d,fallbackInterval:p}=n,[{dateRange:m,visitsFilter:v,loadPrevInterval:g},x]=TG(),b=vl("visits"),[_,w]=I.useState(),O=I.useCallback(({startDate:j,endDate:A},$)=>{x({dateRange:{startDate:j??void 0,endDate:A??void 0}}),w($)},[x]),E=I.useRef(m??p??(b==null?void 0:b.defaultInterval)??"last30Days"),[T,k]=I.useState([]),[P,D]=I.useState(),N=I.useRef(!0),{search:F}=xr(),B=I.useCallback(j=>j?`${j}${F}`:F,[F]),Y=I.useMemo(()=>E_(l),[l]),H=I.useMemo(()=>u&&E_(u),[u]),{os:Q,browsers:Z,referrers:te,countries:X,cities:z,citiesForMap:V,visitedUrls:W}=I.useMemo(()=>wC(Y),[Y]),re=I.useMemo(()=>wC(H??[]),[H]),q=I.useMemo(()=>Object.fromEntries([["Visits",Object.assign(Y,{type:"main"})],H&&["Previous period",Object.assign(H,{type:"previous"})],T.length>0&&[P??"Selected",Object.assign(T,{type:"highlighted"})]].filter(Boolean)),[P,T,H,Y]),ee=I.useMemo(()=>({...v,excludeBots:v.excludeBots??(b==null?void 0:b.excludeBots),loadPrevInterval:g??(b==null?void 0:b.loadPrevInterval)}),[g,v,b==null?void 0:b.excludeBots,b==null?void 0:b.loadPrevInterval]),oe=I.useMemo(()=>Object.values(V),[V]),le=I.useCallback(j=>{fy=void 0,k(j)},[]),fe=I.useCallback((j,A)=>{const $=`${j}_${A}`;fy===$?(k([]),D(void 0),fy=void 0):(k(Y.filter(J=>J[j]===A)),D(A),fy=$)},[Y]);return I.useEffect(()=>i,[i]),I.useEffect(()=>{const j=m??wz(E.current),{loadPrevInterval:A,...$}=ee,J={doIntervalFallback:N.current,loadPrevInterval:A};r({dateRange:j,filter:$},J),le([]),N.current=!1},[m,v,r,ee,le]),I.useEffect(()=>{p&&E.current===((b==null?void 0:b.defaultInterval)??"last30Days")&&(E.current=p)},[p,b==null?void 0:b.defaultInterval]),y.jsxs(y.Fragment,{children:[t,y.jsx("section",{className:"mt-3",children:y.jsxs("div",{className:"row flex-md-row-reverse",children:[y.jsx("div",{className:"col-lg-7 col-xl-6",children:y.jsxs("div",{className:"d-md-flex",children:[y.jsx("div",{className:"flex-grow-1",children:y.jsx(hP,{disabled:f,dateRangeOrInterval:_??m??E.current,defaultText:"All visits",onDatesChange:O})}),y.jsx(RG,{disabled:f,className:"ms-0 ms-md-2 mt-3 mt-md-0",isOrphanVisits:s,withPrevInterval:!0,selected:ee,onChange:({loadPrevInterval:j,...A})=>x({visitsFilter:A,loadPrevInterval:j})})]})}),l.length>0&&y.jsx("div",{className:"col-lg-5 col-xl-6 mt-3 mt-lg-0",children:y.jsxs("div",{className:"d-flex",children:[y.jsx(zz,{className:"btn-md-block",amount:Y.length,onClick:()=>a(Y)}),y.jsxs(_t,{outline:!0,disabled:T.length===0,className:"btn-md-block ms-2",onClick:()=>le([]),children:["Clear selection ",T.length>0&&y.jsxs(y.Fragment,{children:["(",hn(T.length),")"]})]})]})})]})}),y.jsxs("section",{className:"mt-3",children:[y.jsx(DG,{info:n}),!f&&!d&&y.jsxs(y.Fragment,{children:[y.jsx(m9,{fill:!0,children:Object.values(ms).map(({title:j,icon:A,subPath:$,shouldRender:J},K)=>!J||J(e)?y.jsxs(fh,{to:B($),replace:!0,children:[y.jsx(Ne,{icon:A}),y.jsx("span",{className:"ms-2 d-none d-lg-inline",children:j})]},K):void 0).filter(Boolean)}),y.jsx(Pr,{children:y.jsxs(Y_,{children:[y.jsx(yt,{path:ms.byTime.subPath,element:y.jsxs(Wy,{showFallback:l.length===0,children:[y.jsx("div",{className:"col-12 mt-3","data-testid":"line-chart-container",children:y.jsx(EG,{visitsGroups:q,setSelectedVisits:le})}),y.jsx(CS,{display:!!ee.loadPrevInterval&&!u})]})}),y.jsx(yt,{path:ms.byContext.subPath,element:y.jsxs(Wy,{showFallback:l.length===0,children:[y.jsx("div",{className:We("mt-3 col-lg-6",{"col-xl-4":!s}),children:y.jsx(Q8,{title:"Operating systems",stats:Q,prevStats:re.os})}),y.jsx("div",{className:We("mt-3 col-lg-6",{"col-xl-4":!s}),children:y.jsx(Q8,{title:"Browsers",stats:Z,prevStats:re.browsers})}),y.jsx("div",{className:We("mt-3",{"col-xl-4":!s,"col-lg-6":s}),children:y.jsx(uy,{title:"Referrers",withPagination:!1,stats:te,prevStats:re.referrers,highlightedStats:Vg(T,"referer"),highlightedLabel:P,sortingItems:{name:"Referrer name",amount:"Visits amount"},onClick:j=>fe("referer",j)})}),s&&y.jsx("div",{className:"mt-3 col-lg-6",children:y.jsx(uy,{title:"Visited URLs",stats:W,prevStats:re.visitedUrls,highlightedStats:Vg(T,"visitedUrl"),highlightedLabel:P,sortingItems:{visitedUrl:"Visited URL",amount:"Visits amount"},onClick:j=>fe("visitedUrl",j)})}),y.jsx("div",{className:"col-12",children:y.jsx(CS,{display:!!ee.loadPrevInterval&&!u})})]})}),y.jsx(yt,{path:ms.byLocation.subPath,element:y.jsxs(Wy,{showFallback:l.length===0,children:[y.jsx("div",{className:"col-lg-6 mt-3",children:y.jsx(uy,{title:"Countries",stats:X,prevStats:re.countries,highlightedStats:Vg(T,"country"),highlightedLabel:P,sortingItems:{name:"Country name",amount:"Visits amount"},onClick:j=>fe("country",j)})}),y.jsx("div",{className:"col-lg-6 mt-3",children:y.jsx(uy,{title:"Cities",stats:z,prevStats:re.cities,highlightedStats:Vg(T,"city"),highlightedLabel:P,extraHeaderContent:j=>oe.length>0&&y.jsx(XVe,{modalTitle:"Cities",locations:oe,activeCities:j}),sortingItems:{name:"City name",amount:"Visits amount"},onClick:j=>fe("city",j)})}),y.jsx("div",{className:"col-12",children:y.jsx(CS,{display:!!ee.loadPrevInterval&&!u})})]})}),y.jsx(yt,{path:ms.list.subPath,element:y.jsx("div",{className:"col-12",children:y.jsx(wHe,{visits:Y,selectedVisits:T,setSelectedVisits:le,isOrphanVisits:s})})}),o&&y.jsx(yt,{path:ms.options.subPath,element:y.jsx("div",{className:"col-12 mt-3",children:y.jsx(JVe,{...o})})}),y.jsx(yt,{path:"*",element:y.jsx(Ok,{replace:!0,to:B(ms.byTime.subPath)})})]})})]})]})]})},UG=Oo(({getDomainVisits:e,domainVisits:t,cancelGetDomainVisits:n})=>{const{ReportExporter:r}=en(UG),{domain:i=""}=hd(),[o,a=o]=i.split("_"),s=I.useCallback((u,f)=>e({domain:a,options:f,params:u}),[a,e]),l=I.useCallback(u=>r.exportVisits(`domain_${o}_visits.csv`,u),[o,r]);return y.jsx(Fv,{getVisits:s,cancelGetVisits:n,visitsInfo:t,exportCsv:l,children:y.jsx(Tv,{visits:t.visits,title:`"${o}" visits`})})},()=>[Dr.visits]),xHe=tn(UG,["ReportExporter"]),$G=Oo(({getNonOrphanVisits:e,nonOrphanVisits:t,cancelGetNonOrphanVisits:n})=>{const{ReportExporter:r}=en($G),i=I.useCallback(a=>r.exportVisits("non_orphan_visits.csv",a),[r]),o=I.useCallback((a,s)=>e({options:s,params:a}),[e]);return y.jsx(Fv,{getVisits:o,cancelGetVisits:n,visitsInfo:t,exportCsv:i,children:y.jsx(Tv,{title:"Non-orphan visits",visits:t.visits})})},()=>[Dr.visits]),OHe=tn($G,["ReportExporter"]),BG=Oo(({getOrphanVisits:e,orphanVisits:t,cancelGetOrphanVisits:n,deleteOrphanVisits:r,orphanVisitsDeletion:i})=>{const o=$u("orphanVisitsDeletion"),{ReportExporter:a}=en(BG),s=I.useCallback(f=>a.exportVisits("orphan_visits.csv",f),[a]),l=I.useCallback((f,d)=>{var p;return e({options:d,params:f,orphanVisitsType:(p=f.filter)==null?void 0:p.orphanVisitsType})},[e]),u=I.useMemo(()=>o?{deleteVisits:r,visitsDeletion:i}:void 0,[r,i,o]);return y.jsx(Fv,{getVisits:l,cancelGetVisits:n,visitsInfo:t,exportCsv:s,deletion:u,isOrphanVisits:!0,children:y.jsx(Tv,{title:"Orphan visits",visits:t.visits})})},()=>[Dr.orphanVisits]),SHe=tn(BG,["ReportExporter"]),zG="shlink/orphanVisits",EHe={visits:[],loading:!1,cancelLoad:!1,errorData:null,progress:null},THe=e=>xv({typePrefix:`${zG}/getNonOrphanVisits`,createLoaders:({options:t})=>{const n=e(),{doIntervalFallback:r=!1}=t,i=async a=>n.getNonOrphanVisits(a),o=wv(r,a=>n.getNonOrphanVisits(a));return{visitsLoader:i,lastVisitLoader:o}},shouldCancel:t=>t().orphanVisits.cancelLoad}),CHe=e=>Ov({name:zG,initialState:EHe,asyncThunkCreator:e,filterCreatedVisits:({params:t},n)=>{const{startDate:r,endDate:i}=(t==null?void 0:t.dateRange)??{};return n.filter(({visit:o})=>_v(o.date,r,i))}}),VG="shlink/orphanVisits",kHe={visits:[],loading:!1,cancelLoad:!1,errorData:null,progress:null},jHe=(e,t)=>!t||t===e.type,PHe=({data:e,...t},n)=>{const r=e.filter(i=>Hj(i)&&jHe(i,n));return{...t,data:r}},AHe=e=>xv({typePrefix:`${VG}/getOrphanVisits`,createLoaders:({orphanVisitsType:t,options:n})=>{const r=e(),{doIntervalFallback:i=!1}=n,o=async s=>r.getOrphanVisits(s).then(l=>PHe(l,t)),a=wv(i,s=>r.getOrphanVisits(s));return{visitsLoader:o,lastVisitLoader:a}},shouldCancel:t=>t().orphanVisits.cancelLoad}),NHe=(e,t)=>Ov({name:VG,initialState:kHe,asyncThunkCreator:e,extraReducers:n=>{n.addCase(t.fulfilled,r=>({...r,visits:[]}))},filterCreatedVisits:({params:n},r)=>{const{startDate:i,endDate:o}=(n==null?void 0:n.dateRange)??{};return r.filter(({visit:a,shortUrl:s})=>!s&&_v(a.date,i,o))}}),HG="shlink/orphanVisitsDeletion",iF={deletedVisits:0,deleting:!1,error:!1},MHe=e=>pr(`${HG}/deleteOrphanVisits`,()=>e().deleteOrphanVisits()),RHe=e=>Dn({name:HG,initialState:iF,reducers:{},extraReducers:t=>{t.addCase(e.pending,n=>({...n,deleting:!0,error:!1})),t.addCase(e.rejected,(n,{error:r})=>({...n,deleting:!1,error:!0,errorData:Qi(r)})),t.addCase(e.fulfilled,(n,{payload:r})=>{const{deletedVisits:i}=r;return{...iF,deletedVisits:i}})}}),WG="shlink/shortUrlVisits",DHe={visits:[],shortCode:"",loading:!1,errorData:null,cancelLoad:!1,progress:null},LHe=e=>xv({typePrefix:`${WG}/getShortUrlVisits`,createLoaders:({shortCode:t,domain:n,options:r})=>{const i=e(),{doIntervalFallback:o=!1}=r,a=l=>i.getShortUrlVisits(t,{...l,domain:n}),s=wv(o,l=>i.getShortUrlVisits(t,{...l,domain:n}));return{visitsLoader:a,lastVisitLoader:s}},shouldCancel:t=>t().shortUrlVisits.cancelLoad}),IHe=(e,t)=>Ov({name:WG,initialState:DHe,asyncThunkCreator:e,extraReducers:n=>{n.addCase(t.fulfilled,(r,{payload:i})=>r.shortCode===i.shortCode&&r.domain===i.domain?{...r,visits:[]}:r)},filterCreatedVisits:({shortCode:n,domain:r,params:i},o)=>Oz(o,{shortCode:n,domain:r},i==null?void 0:i.dateRange)}),YG="shlink/shortUrlVisitsDeletion",oF={shortCode:"",deletedVisits:0,deleting:!1,error:!1},FHe=e=>pr(`${YG}/deleteShortUrlVisits`,async({shortCode:t,domain:n})=>({...await e().deleteShortUrlVisits(t,n),shortCode:t,domain:n})),UHe=e=>Dn({name:YG,initialState:oF,reducers:{},extraReducers:t=>{t.addCase(e.pending,n=>({...n,deleting:!0,error:!1})),t.addCase(e.rejected,(n,{error:r})=>({...n,deleting:!1,error:!0,errorData:Qi(r)})),t.addCase(e.fulfilled,(n,{payload:r})=>{const{shortCode:i,domain:o,deletedVisits:a}=r;return{...oF,shortCode:i,domain:o,deletedVisits:a}})}}),GG="shlink/tagVisits",$He={visits:[],tag:"",loading:!1,cancelLoad:!1,errorData:null,progress:null},BHe=e=>xv({typePrefix:`${GG}/getTagVisits`,createLoaders:({tag:t,options:n})=>{const r=e(),{doIntervalFallback:i=!1}=n,o=s=>r.getTagVisits(t,s),a=wv(i,async s=>r.getTagVisits(t,s));return{visitsLoader:o,lastVisitLoader:a}},shouldCancel:t=>t().tagVisits.cancelLoad}),zHe=e=>Ov({name:GG,initialState:$He,asyncThunkCreator:e,filterCreatedVisits:({tag:t,params:n},r)=>Ez(r,t,n==null?void 0:n.dateRange)}),qG="shlink/visitsOverview",dy={nonOrphanVisits:{total:0},orphanVisits:{total:0},loading:!1,error:!1},aF=e=>e.filter(({visit:t})=>t.potentialBot).length,VHe=e=>pr(`${qG}/loadVisitsOverview`,()=>e().getVisitsOverview().then(({nonOrphanVisits:t,visitsCount:n,orphanVisits:r,orphanVisitsCount:i})=>({nonOrphanVisits:{total:(t==null?void 0:t.total)??n,nonBots:t==null?void 0:t.nonBots,bots:t==null?void 0:t.bots},orphanVisits:{total:(r==null?void 0:r.total)??i,nonBots:r==null?void 0:r.nonBots,bots:r==null?void 0:r.bots}}))),HHe=e=>Dn({name:qG,initialState:dy,reducers:{},extraReducers:t=>{t.addCase(e.pending,()=>({...dy,loading:!0})),t.addCase(e.rejected,()=>({...dy,error:!0})),t.addCase(e.fulfilled,(n,{payload:r})=>({...dy,...r})),t.addCase(Sd,({nonOrphanVisits:n,orphanVisits:r,...i},{payload:o})=>{const{nonOrphanVisits:a,orphanVisits:s}=Dme(o.createdVisits),l=a.length,u=aF(a),f=l-u,d=s.length,p=aF(s),m=d-p;return{...i,nonOrphanVisits:{total:n.total+l,bots:n.bots&&n.bots+u,nonBots:n.nonBots&&n.nonBots+f},orphanVisits:{total:r.total+d,bots:r.bots&&r.bots+p,nonBots:r.nonBots&&r.nonBots+m}}})}}),WHe=({shortUrl:e,loading:t,shortUrlVisits:n})=>{const{visits:r}=n,i=(e==null?void 0:e.shortUrl)??"",o=(e==null?void 0:e.longUrl)??"",a=e==null?void 0:e.title;return y.jsxs(Tv,{title:y.jsxs(y.Fragment,{children:["Visits for ",y.jsx(Ta,{href:i})]}),visits:r,shortUrl:e,children:[y.jsx("hr",{}),y.jsxs("div",{children:["Created: ",(()=>e?y.jsxs("span",{children:[y.jsx("b",{id:"created",className:"short-url-visits-header__created-at",children:y.jsx(fb,{date:e.dateCreated,relative:!0})}),y.jsx(Jr,{placement:"bottom",target:"created",children:y.jsx(fb,{date:e.dateCreated})})]}):y.jsx("small",{children:"Loading..."}))()]}),y.jsxs("div",{className:"long-url-container",children:[`${a?"Title":"Long URL"}: `,t&&y.jsx("small",{children:"Loading..."}),!t&&y.jsx(Ta,{href:o,children:a??o})]})]})},KG=Oo(({shortUrlVisits:e,shortUrlVisitsDeletion:t,shortUrlsDetails:n,getShortUrlVisits:r,getShortUrlsDetails:i,deleteShortUrlVisits:o,cancelGetShortUrlVisits:a})=>{const s=$u("shortUrlVisitsDeletion"),{ReportExporter:l}=en(KG),{domain:u}=_d(),f=Dz(),d=I.useMemo(()=>({shortCode:f,domain:u}),[u,f]),p=I.useMemo(()=>{var x;return(x=n.shortUrls)==null?void 0:x.get(d)},[d,n.shortUrls]),m=I.useCallback((x,b)=>r({...d,options:b,params:x}),[r,d]),v=I.useCallback(x=>l.exportVisits(`short-url_${p==null?void 0:p.shortUrl.replace(/https?:\/\//g,"")}_visits.csv`,x),[l,p==null?void 0:p.shortUrl]),g=I.useMemo(()=>s?{deleteVisits:()=>o({shortCode:f,domain:u}),visitsDeletion:t}:void 0,[o,u,f,t,s]);return I.useEffect(()=>{i([d])},[d,i]),y.jsx(Fv,{getVisits:m,cancelGetVisits:a,visitsInfo:e,exportCsv:v,deletion:g,children:y.jsx(WHe,{shortUrl:p,loading:n.loading,shortUrlVisits:e})})},e=>e.shortCode?[Dr.shortUrlVisits(Lj(e.shortCode))]:[]),YHe=tn(KG,["ReportExporter"]),GHe=({tagVisits:e,colorGenerator:t})=>{const{visits:n,tag:r}=e;return y.jsx(Tv,{title:y.jsxs("span",{className:"d-flex align-items-center justify-content-center",children:[y.jsx("span",{className:"me-2",children:"Visits for"}),y.jsx(gw,{text:r,colorGenerator:t})]}),visits:n})},ZG=Oo(({getTagVisits:e,tagVisits:t,cancelGetTagVisits:n})=>{const{ColorGenerator:r,ReportExporter:i}=en(ZG),{tag:o=""}=hd(),a=I.useCallback((l,u)=>e({tag:o,params:l,options:u}),[e,o]),s=I.useCallback(l=>i.exportVisits(`tag_${o}_visits.csv`,l),[i,o]);return y.jsx(Fv,{getVisits:a,cancelGetVisits:n,visitsInfo:t,exportCsv:s,children:y.jsx(GHe,{tagVisits:t,colorGenerator:r})})},()=>[Dr.visits]),qHe=tn(ZG,["ColorGenerator","ReportExporter"]),EA=({title:e,colors:t,getVisitsForComparison:n,visitsComparisonInfo:r,cancelGetVisitsComparison:i})=>{const{loading:o,visitsGroups:a}=r,s=vl("visits"),l=I.useMemo(()=>Object.keys(a).reduce((_,w,O)=>(_[w]=Object.assign(E_(a[w]),{color:(t==null?void 0:t[w])??OG(O)}),_),{}),[t,a]),u=I.useMemo(()=>Object.values(a).every(_=>_.length===0),[a]),[{dateRange:f,visitsFilter:d},p]=TG(),[m,v]=I.useState(),g=I.useCallback(({startDate:_,endDate:w},O)=>{p({dateRange:{startDate:_??void 0,endDate:w??void 0}}),v(O)},[p]),x=I.useRef(f??(s==null?void 0:s.defaultInterval)??"last30Days"),b=I.useMemo(()=>({...d,excludeBots:d.excludeBots??(s==null?void 0:s.excludeBots)}),[d,s==null?void 0:s.excludeBots]);return I.useEffect(()=>{const _=f??wz(x.current);return n({params:{dateRange:_,filter:b}}),i},[i,f,n,b]),y.jsxs(y.Fragment,{children:[y.jsx("div",{className:"mb-3",children:y.jsxs(Qt,{bodyClassName:"d-flex",children:[y.jsx(Qj,{}),y.jsx("h3",{className:"mb-0 flex-grow-1 text-center",children:e})]})}),y.jsx("div",{className:"col-lg-7 col-xl-6 offset-lg-5 offset-xl-6 mb-3",children:y.jsxs("div",{className:"d-md-flex",children:[y.jsx("div",{className:"flex-grow-1",children:y.jsx(hP,{disabled:o,defaultText:"All visits",dateRangeOrInterval:m??x.current,onDatesChange:g})}),y.jsx(RG,{disabled:o,className:"ms-0 ms-md-2 mt-3 mt-md-0",selected:b,onChange:({orphanVisitsType:_,excludeBots:w})=>p({visitsFilter:{orphanVisitsType:_,excludeBots:w}})})]})}),y.jsx(DG,{info:r}),!o&&y.jsx(Wy,{showFallback:u,children:y.jsx(EG,{visitsGroups:l})})]})},KHe=Oo(({getDomainVisitsForComparison:e,domainVisitsComparison:t,cancelGetDomainVisitsComparison:n})=>{const r=Gj("domains"),i=I.useCallback(o=>e({...o,domains:r}),[r,e]);return y.jsx(EA,{title:`Comparing "${r.join('", "')}"`,getVisitsForComparison:i,visitsComparisonInfo:t,cancelGetVisitsComparison:n})},()=>[Dr.visits]),ZHe=({visitsLoaders:e,shouldCancel:t,progressChanged:n})=>{const r=Object.keys(e),i=Math.max(1,Math.round(4/r.length)),o=Object.fromEntries(r.map(l=>[l,0])),a=(l,u)=>{o[l]=u;const f=Object.values(o),d=f.reduce((p,m)=>p+m,0);n(d/f.length)},s=Object.entries(e).map(([l,u])=>[l,Tz({visitsLoader:u,batchSize:i,shouldCancel:t,progressChanged:f=>a(l,f)})]);return async l=>{const u=await Promise.all(s.map(async([f,d])=>{const p=await d(l);return[f,p]}));return Object.fromEntries(u)}},TA=({typePrefix:e,createLoaders:t,shouldCancel:n})=>{const r=Mn(`${e}/progressChanged`),i=pr(e,async(o,{getState:a,dispatch:s})=>{const l=t(o),u=await ZHe({visitsLoaders:l,shouldCancel:()=>n(a),progressChanged:f=>s(r(f))})(OE(o.params));return{...o,visitsGroups:u}});return Object.assign(i,{progressChanged:r})},CA=({name:e,asyncThunkCreator:t,initialState:n,filterCreatedVisitsForGroup:r})=>{const{pending:i,rejected:o,fulfilled:a,progressChanged:s}=t,{reducer:l,actions:u}=Dn({name:e,initialState:n,reducers:{cancelGetVisits:d=>({...d,cancelLoad:!0})},extraReducers:d=>{d.addCase(i,()=>({...n,loading:!0})),d.addCase(o,(p,{error:m})=>({...n,errorData:Qi(m)??null})),d.addCase(a,(p,{payload:m})=>({...p,...m,loading:!1,progress:null,errorData:null})),d.addCase(s,(p,{payload:m})=>({...p,progress:m})),d.addCase(Sd,(p,{payload:m})=>{const{visitsGroups:v,...g}=p,x=Object.keys(v).map(_=>{const w=r({...g,groupKey:_},m.createdVisits).map(({visit:O})=>O);return[_,[...w,...v[_]]]}),b=Object.fromEntries(x);return{...g,visitsGroups:b}})}}),{cancelGetVisits:f}=u;return{reducer:l,cancelGetVisits:f}},QG="shlink/domainVisitsComparison",QHe={visitsGroups:{},loading:!1,cancelLoad:!1,errorData:null,progress:null},XHe=e=>TA({typePrefix:`${QG}/getDomainVisitsForComparison`,createLoaders:({domains:t})=>{const n=e(),r=t.map(i=>[i,o=>n.getDomainVisits(i,o)]);return Object.fromEntries(r)},shouldCancel:t=>t().domainVisitsComparison.cancelLoad}),JHe=e=>CA({name:QG,initialState:QHe,asyncThunkCreator:e,filterCreatedVisitsForGroup:({groupKey:t,params:n},r)=>Sz(r,t,n==null?void 0:n.dateRange)}),XG="shlink/shortUrlVisitsComparison",eWe={visitsGroups:{},loading:!1,cancelLoad:!1,errorData:null,progress:null},tWe=e=>TA({typePrefix:`${XG}/getShortUrlVisitsForComparison`,createLoaders:({shortUrls:t})=>{const n=e(),r=t.map(i=>[Ij(i),o=>n.getShortUrlVisits(i.shortCode,{...o,domain:i.domain})]);return Object.fromEntries(r)},shouldCancel:t=>t().shortUrlVisitsComparison.cancelLoad}),nWe=e=>CA({name:XG,initialState:eWe,asyncThunkCreator:e,filterCreatedVisitsForGroup:({groupKey:t,params:n},r)=>Oz(r,iz(t),n==null?void 0:n.dateRange)}),JG="shlink/tagVisitsComparison",rWe={visitsGroups:{},loading:!1,cancelLoad:!1,errorData:null,progress:null},iWe=e=>TA({typePrefix:`${JG}/getTagVisitsForComparison`,createLoaders:({tags:t})=>{const n=e(),r=t.map(i=>[i,o=>n.getTagVisits(i,o)]);return Object.fromEntries(r)},shouldCancel:t=>t().tagVisitsComparison.cancelLoad}),oWe=e=>CA({name:JG,initialState:rWe,asyncThunkCreator:e,filterCreatedVisitsForGroup:({groupKey:t,params:n},r)=>Ez(r,t,n==null?void 0:n.dateRange)}),aWe=Oo(({getShortUrlVisitsForComparison:e,shortUrlVisitsComparison:t,cancelGetShortUrlVisitsComparison:n,shortUrlsDetails:r,getShortUrlsDetails:i})=>{const o=Gj("short-urls"),a=I.useMemo(()=>o.map(iz),[o]),s=I.useCallback(f=>e({...f,shortUrls:a}),[e,a]),l=I.useMemo(()=>{var f;return[...((f=r.shortUrls)==null?void 0:f.values())??[]]},[r.shortUrls]),u=I.useMemo(()=>{const{visitsGroups:f,loading:d,...p}=t,m=l.reduce((v,g)=>(v[g.shortUrl]=f[Ij(g)]??[],v),{});return{...p,visitsGroups:m,loading:d||r.loading}},[t,r.loading,l]);return I.useEffect(()=>{a.length>0&&i(a)},[i,a]),y.jsx(EA,{title:y.jsx("span",{"data-testid":"title",children:r.loading?"Loading...":`Comparing ${l.length} short URLs`}),getVisitsForComparison:s,visitsComparisonInfo:u,cancelGetVisitsComparison:n})},()=>[Dr.visits]),eq=Oo(({getTagVisitsForComparison:e,tagVisitsComparison:t,cancelGetTagVisitsComparison:n})=>{const{ColorGenerator:r}=en(eq),i=Gj("tags"),o=I.useCallback(l=>e({...l,tags:i}),[e,i]),{visitsGroups:a}=t,s=I.useMemo(()=>Object.keys(a).reduce((l,u)=>(l[u]=r.getColorForKey(u),l),{}),[r,a]);return y.jsx(EA,{title:y.jsxs(y.Fragment,{children:["Comparing ",i.map(l=>y.jsx(gw,{colorGenerator:r,text:l},l))]}),getVisitsForComparison:o,visitsComparisonInfo:t,cancelGetVisitsComparison:n,colors:s})},()=>[Dr.visits]),sWe=tn(eq,["ColorGenerator"]),lWe=(e,t)=>{const n=(r,i)=>t([...r,"mercureInfo"],[...i,"createNewVisits","loadMercureInfo"]);e.serviceFactory("MapModal",()=>MG),e.factory("ShortUrlVisits",YHe),e.decorator("ShortUrlVisits",t(["shortUrlVisits","shortUrlVisitsDeletion","shortUrlsDetails","mercureInfo"],["getShortUrlVisits","deleteShortUrlVisits","getShortUrlsDetails","cancelGetShortUrlVisits","createNewVisits","loadMercureInfo"])),e.factory("TagVisits",qHe),e.decorator("TagVisits",n(["tagVisits"],["getTagVisits","cancelGetTagVisits"])),e.factory("TagVisitsComparison",sWe),e.decorator("TagVisitsComparison",n(["tagVisitsComparison"],["getTagVisitsForComparison","cancelGetTagVisitsForComparison"])),e.serviceFactory("DomainVisitsComparison",()=>KHe),e.decorator("DomainVisitsComparison",n(["domainVisitsComparison"],["getDomainVisitsForComparison","cancelGetDomainVisitsForComparison"])),e.serviceFactory("ShortUrlVisitsComparison",()=>aWe),e.decorator("ShortUrlVisitsComparison",n(["shortUrlVisitsComparison","shortUrlsDetails"],["getShortUrlVisitsForComparison","cancelGetShortUrlVisitsForComparison","getShortUrlsDetails"])),e.factory("DomainVisits",xHe),e.decorator("DomainVisits",n(["domainVisits"],["getDomainVisits","cancelGetDomainVisits"])),e.factory("OrphanVisits",SHe),e.decorator("OrphanVisits",n(["orphanVisits","orphanVisitsDeletion"],["getOrphanVisits","cancelGetOrphanVisits","deleteOrphanVisits"])),e.factory("NonOrphanVisits",OHe),e.decorator("NonOrphanVisits",n(["nonOrphanVisits"],["getNonOrphanVisits","cancelGetNonOrphanVisits"])),e.serviceFactory("VisitsParser",()=>vHe),e.serviceFactory("getShortUrlVisits",LHe,"apiClientFactory"),e.serviceFactory("cancelGetShortUrlVisits",r=>r.cancelGetVisits,"shortUrlVisitsReducerCreator"),e.serviceFactory("getShortUrlVisitsForComparison",tWe,"apiClientFactory"),e.serviceFactory("cancelGetShortUrlVisitsForComparison",r=>r.cancelGetVisits,"shortUrlVisitsComparisonReducerCreator"),e.serviceFactory("deleteShortUrlVisits",FHe,"apiClientFactory"),e.serviceFactory("getTagVisits",BHe,"apiClientFactory"),e.serviceFactory("cancelGetTagVisits",r=>r.cancelGetVisits,"tagVisitsReducerCreator"),e.serviceFactory("getTagVisitsForComparison",iWe,"apiClientFactory"),e.serviceFactory("cancelGetTagVisitsForComparison",r=>r.cancelGetVisits,"tagVisitsComparisonReducerCreator"),e.serviceFactory("getDomainVisits",Hme,"apiClientFactory"),e.serviceFactory("cancelGetDomainVisits",r=>r.cancelGetVisits,"domainVisitsReducerCreator"),e.serviceFactory("getDomainVisitsForComparison",XHe,"apiClientFactory"),e.serviceFactory("cancelGetDomainVisitsForComparison",r=>r.cancelGetVisits,"domainVisitsComparisonReducerCreator"),e.serviceFactory("getOrphanVisits",AHe,"apiClientFactory"),e.serviceFactory("cancelGetOrphanVisits",r=>r.cancelGetVisits,"orphanVisitsReducerCreator"),e.serviceFactory("deleteOrphanVisits",MHe,"apiClientFactory"),e.serviceFactory("getNonOrphanVisits",THe,"apiClientFactory"),e.serviceFactory("cancelGetNonOrphanVisits",r=>r.cancelGetVisits,"nonOrphanVisitsReducerCreator"),e.serviceFactory("createNewVisits",()=>Sd),e.serviceFactory("loadVisitsOverview",VHe,"apiClientFactory"),e.serviceFactory("visitsOverviewReducerCreator",HHe,"loadVisitsOverview"),e.serviceFactory("visitsOverviewReducer",r=>r.reducer,"visitsOverviewReducerCreator"),e.serviceFactory("domainVisitsReducerCreator",Wme,"getDomainVisits"),e.serviceFactory("domainVisitsReducer",r=>r.reducer,"domainVisitsReducerCreator"),e.serviceFactory("nonOrphanVisitsReducerCreator",CHe,"getNonOrphanVisits"),e.serviceFactory("nonOrphanVisitsReducer",r=>r.reducer,"nonOrphanVisitsReducerCreator"),e.serviceFactory("orphanVisitsReducerCreator",NHe,"getOrphanVisits","deleteOrphanVisits"),e.serviceFactory("orphanVisitsReducer",r=>r.reducer,"orphanVisitsReducerCreator"),e.serviceFactory("orphanVisitsDeletionReducerCreator",RHe,"deleteOrphanVisits"),e.serviceFactory("orphanVisitsDeletionReducer",r=>r.reducer,"orphanVisitsDeletionReducerCreator"),e.serviceFactory("shortUrlVisitsReducerCreator",IHe,"getShortUrlVisits","deleteShortUrlVisits"),e.serviceFactory("shortUrlVisitsReducer",r=>r.reducer,"shortUrlVisitsReducerCreator"),e.serviceFactory("shortUrlVisitsDeletionReducerCreator",UHe,"deleteShortUrlVisits"),e.serviceFactory("shortUrlVisitsDeletionReducer",r=>r.reducer,"shortUrlVisitsDeletionReducerCreator"),e.serviceFactory("tagVisitsReducerCreator",zHe,"getTagVisits"),e.serviceFactory("tagVisitsReducer",r=>r.reducer,"tagVisitsReducerCreator"),e.serviceFactory("tagVisitsComparisonReducerCreator",oWe,"getTagVisitsForComparison"),e.serviceFactory("tagVisitsComparisonReducer",r=>r.reducer,"tagVisitsComparisonReducerCreator"),e.serviceFactory("domainVisitsComparisonReducerCreator",JHe,"getDomainVisitsForComparison"),e.serviceFactory("domainVisitsComparisonReducer",r=>r.reducer,"domainVisitsComparisonReducerCreator"),e.serviceFactory("shortUrlVisitsComparisonReducerCreator",nWe,"getShortUrlVisitsForComparison"),e.serviceFactory("shortUrlVisitsComparisonReducer",r=>r.reducer,"shortUrlVisitsComparisonReducerCreator")},Np=({children:e,to:t,className:n,...r})=>y.jsx(o7,{className:({isActive:i})=>We("aside-menu__item",n,{"aside-menu__item--selected":i}),to:t,...r,children:e}),uWe=({routePrefix:e,showOnMobile:t=!1})=>{const{pathname:n}=xr(),r=We("aside-menu",{"aside-menu--hidden":!t}),i=o=>`${e}${o}`;return y.jsx("aside",{className:r,children:y.jsxs("nav",{className:"nav flex-column aside-menu__nav",children:[y.jsxs(Np,{to:i("/overview"),children:[y.jsx(Ne,{fixedWidth:!0,icon:Mee}),y.jsx("span",{className:"aside-menu__item-text",children:"Overview"})]}),y.jsxs(Np,{to:i("/list-short-urls/1"),className:We({"aside-menu__item--selected":n.match("/list-short-urls")!==null}),children:[y.jsx(Ne,{fixedWidth:!0,icon:w7}),y.jsx("span",{className:"aside-menu__item-text",children:"List short URLs"})]}),y.jsxs(Np,{to:i("/create-short-url"),children:[y.jsx(Ne,{fixedWidth:!0,icon:Fee,flip:"horizontal"}),y.jsx("span",{className:"aside-menu__item-text",children:"Create short URL"})]}),y.jsxs(Np,{to:i("/manage-tags"),children:[y.jsx(Ne,{fixedWidth:!0,icon:x7}),y.jsx("span",{className:"aside-menu__item-text",children:"Manage tags"})]}),y.jsxs(Np,{to:i("/manage-domains"),children:[y.jsx(Ne,{fixedWidth:!0,icon:dee}),y.jsx("span",{className:"aside-menu__item-text",children:"Manage domains"})]})]})})},tq=({createNotFound:e})=>{const{TagsList:t,ShortUrlsList:n,CreateShortUrl:r,ShortUrlVisits:i,TagVisits:o,DomainVisits:a,OrphanVisits:s,NonOrphanVisits:l,Overview:u,EditShortUrl:f,ManageDomains:d,TagVisitsComparison:p,DomainVisitsComparison:m,ShortUrlVisitsComparison:v}=en(tq),g=xr(),x=ml(),[b,_,w,O]=Cn();I.useEffect(()=>O(),[g,O]);const E=$u("domainVisits"),T=We("shlink-layout__burger-icon",{"shlink-layout__burger-icon--active":b}),k=ave(w,O);return y.jsxs(y.Fragment,{children:[y.jsx(Ne,{icon:see,className:T,onClick:_}),y.jsx("div",{...k,className:"shlink-layout__swipeable",children:y.jsxs("div",{className:"shlink-layout__swipeable-inner",children:[y.jsx(uWe,{routePrefix:x,showOnMobile:b}),y.jsx("div",{className:"shlink-layout__container",onPointerDown:()=>O(),children:y.jsx("div",{className:"container-xl",children:y.jsxs(Y_,{children:[y.jsx(yt,{index:!0,element:y.jsx(Ok,{replace:!0,to:"overview"})}),y.jsx(yt,{path:"/overview",element:y.jsx(u,{})}),y.jsx(yt,{path:"/list-short-urls/:page",element:y.jsx(n,{})}),y.jsx(yt,{path:"/create-short-url",element:y.jsx(r,{})}),y.jsx(yt,{path:"/short-code/:shortCode/visits/*",element:y.jsx(i,{})}),y.jsx(yt,{path:"/short-code/:shortCode/edit",element:y.jsx(f,{})}),y.jsx(yt,{path:"/short-urls/compare-visits",element:y.jsx(v,{})}),y.jsx(yt,{path:"/tag/:tag/visits/*",element:y.jsx(o,{})}),y.jsx(yt,{path:"/tags/compare-visits",element:y.jsx(p,{})}),E&&y.jsx(yt,{path:"/domain/:domain/visits/*",element:y.jsx(a,{})}),y.jsx(yt,{path:"/orphan-visits/*",element:y.jsx(s,{})}),y.jsx(yt,{path:"/non-orphan-visits/*",element:y.jsx(l,{})}),y.jsx(yt,{path:"/manage-tags",element:y.jsx(t,{})}),y.jsx(yt,{path:"/manage-domains",element:y.jsx(d,{})}),y.jsx(yt,{path:"/domains/compare-visits",element:y.jsx(m,{})}),e&&y.jsx(yt,{path:"*",element:e("/list-short-urls/1")})]})})})]})})]})},cWe=tn(tq,["TagsList","ShortUrlsList","CreateShortUrl","ShortUrlVisits","TagVisits","DomainVisits","OrphanVisits","NonOrphanVisits","Overview","EditShortUrl","ManageDomains","TagVisitsComparison","DomainVisitsComparison","ShortUrlVisitsComparison"]),fWe=!0,dWe=e=>M9({devTools:!fWe,reducer:xj({mercureInfo:e.mercureInfoReducer,shortUrlsList:e.shortUrlsListReducer,shortUrlCreation:e.shortUrlCreationReducer,shortUrlDeletion:e.shortUrlDeletionReducer,shortUrlEdition:e.shortUrlEditionReducer,shortUrlsDetails:e.shortUrlsDetailsReducer,shortUrlVisits:e.shortUrlVisitsReducer,shortUrlVisitsDeletion:e.shortUrlVisitsDeletionReducer,shortUrlVisitsComparison:e.shortUrlVisitsComparisonReducer,tagVisits:e.tagVisitsReducer,tagVisitsComparison:e.tagVisitsComparisonReducer,domainVisits:e.domainVisitsReducer,domainVisitsComparison:e.domainVisitsComparisonReducer,orphanVisits:e.orphanVisitsReducer,orphanVisitsDeletion:e.orphanVisitsDeletionReducer,nonOrphanVisits:e.nonOrphanVisitsReducer,tagsList:e.tagsListReducer,tagDelete:e.tagDeleteReducer,tagEdit:e.tagEditReducer,domainsList:e.domainsListReducer,visitsOverview:e.visitsOverviewReducer}),middleware:t=>t({immutableCheck:!1,serializableCheck:!1})}),pWe=e=>{e.factory("Main",cWe),e.factory("store",dWe)},ua=new jpe,{container:hWe}=ua,mWe=e=>t=>Object.fromEntries(e.map(n=>[n,t[n]])),vWe=(e,t)=>(...n)=>e[t](...n),gWe=(e,t)=>({...e,[t]:vWe(hWe,t)}),Uv=(e,t=[])=>G$(e?mWe(e):null,t.reduce(gWe,{}));pWe(ua);Dwe(ua,Uv);tOe(ua,Uv);lWe(ua,Uv);bve(ua);vve(ua,Uv);Mve(ua,Uv);SOe(ua);let sF;const yWe=e=>({serverVersion:t,apiClient:n,settings:r,routesPrefix:i="",createNotFound:o,tagColorsStorage:a})=>{const s=Vpe(t),l=I.useRef(),[u,f]=I.useState(),d=Fu(),p=I.useMemo(()=>d?I.Fragment:i7,[d]);return I.useEffect(()=>{sF=n,e.value("apiClientFactory",()=>sF),a&&e.value("TagColorsStorage",a);const{container:m}=e,{Main:v,store:g,loadMercureInfo:x,listTags:b}=m;l.current=y.jsx(v,{createNotFound:o}),f(g),g.dispatch(x(r)),g.dispatch(b())},[n,o,r,a]),u?y.jsx(q$,{store:u,children:y.jsx(Ave,{value:r,children:y.jsx(zpe,{value:s,children:y.jsx(Rpe,{value:i,children:y.jsx(p,{children:l.current})})})})}):y.jsx(y.Fragment,{})},bWe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=",_We="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAABSCAMAAAAhFXfZAAAC91BMVEVMaXEzeak2f7I4g7g3g7cua5gzeKg8hJo3grY4g7c3grU0gLI2frE0daAubJc2gbQwd6QzeKk2gLMtd5sxdKIua5g1frA2f7IydaM0e6w2fq41fK01eqo3grgubJgta5cxdKI1f7AydaQydaMxc6EubJgvbJkwcZ4ubZkwcJwubZgubJcydqUydKIxapgubJctbJcubZcubJcvbJYubJcvbZkubJctbJctbZcubJg2f7AubJcrbZcubJcubJcua5g3grY0fq8ubJcubJdEkdEwhsw6i88vhswuhcsuhMtBjMgthMsrg8srgss6is8qgcs8i9A9iMYtg8spgcoogMo7hcMngMonf8olfso4gr8kfck5iM8jfMk4iM8he8k1fro7itAgesk2hs8eecgzfLcofssdeMg0hc4cd8g2hcsxeLQbdsgZdcgxeLImfcszhM0vda4xgckzhM4xg84wf8Yxgs4udKsvfcQucqhUndROmdM1fK0wcZ8vb5w0eqpQm9MzeKhXoNVcpdYydKNWn9VZotVKltJFjsIwcJ1Rms9OlslLmtH///8+kc9epdYzd6dbo9VHkMM2f7FHmNBClM8ydqVcpNY9hro3gLM9hLczealQmcw3fa46f7A8gLMxc6I3eagyc6FIldJMl9JSnNRSntNNl9JPnNJFi75UnM9ZodVKksg8kM45jc09e6ZHltFBk883gbRBh7pDk9EwcaBzn784g7dKkcY2i81Om9M7j85Llc81is09g7Q4grY/j9A0eqxKmdFFltBEjcXf6fFImdBCiLxJl9FGlNFBi78yiMxVndEvbpo6js74+vx+psPP3+o/ks5HkcpGmNCjwdZCkNDM3ehYoNJEls+lxNkxh8xHks0+jdC1zd5Lg6r+/v/H2ufz9/o3jM3t8/edvdM/k89Th61OiLBSjbZklbaTt9BfptdjmL1AicBHj8hGk9FAgK1dkLNTjLRekrdClc/k7fM0icy0y9tgp9c4jc2NtM9Dlc8zicxeXZn3AAAAQ3RSTlMAHDdTb4yPA+LtnEQmC4L2EmHqB7XA0d0sr478x4/Yd5i1zOfyPkf1sLVq4Nh3FvjxopQ2/STNuFzUwFIwxKaejILpIBEV9wAABhVJREFUeF6s1NdyFEcYBeBeoQIhRAkLlRDGrhIgY3BJL8CVeKzuyXFzzjkn5ZxzzuScg3PO8cKzu70JkO0LfxdTU//pM9vTu7Xgf6KqOVTb9X7toRrVEfBf1HTVjZccrT/2by1VV928Yty9ZbVuucdz90frG8DBjl9pVApbOstvmMuvVgaNXSfAAd6pGxpy6yxf5ph43pS/4f3uoaGm2rdu72S9xzOvMymkZFq/ptDrk90mhW7e4zl7HLzhxGWPR20xmSxJ/VqldG5m9XhaVOA1DadsNh3Pu5L2N6QtPO/32JpqQBVVk20oy/Pi2s23WEvyfHbe1thadVQttvm7Llf65gGmXK67XtupyoM7HQhmXdLS8oGWJNeOJ3C5fG5XCEJnkez3/oFdsvgJ4l2ANZwhrJKk/7OSXa+3Vw2WJMlKnGkobouYk6T0TyX30klOUnTD9HJ5qpckL3EW/w4XF3Xd0FGywXUrstrclVsqz5Pd/sXFYyDnPdrLcQODmGOK47IZb4CmibmMn+MYRzFZ5jg33ZL/EJrWcszHmANy3ARBK/IXtciJy8VsitPSdE3uuHxzougojcUdr8/32atnz/ev3f/K5wtpxUTpcaI45zusVDpYtZi+jg0oU9b3x74h7+n9ABvYEZeKaVq0sh0AtLKsFtqNBdeT0MrSzwwlq9+x6xAO4tgOtSzbCjrNQQiNvQUbUEubvzBUeGw26yDCsRHCoLkTHDa7IdOLIThs/gHvChszh2CimE8peRs47cxANI0lYNB5y1DljpOF0IhzBDPOZnDOqYYbeGKECbPzWnXludPphw5c2YBq5zlwXphIbO4VDCZ0gnPfUO1TwZoYwAs2ExPCedAu9DAjfQUjzITQb3jNj0KG2Sgt6BHaQUdYzWz+XmBktOHwanXjaSTcwwziBcuMOtwBmqPrTOxFQR/DRKKPqyur0aiW6cULYsx6tBm0jXpR/AUWR6HRq9WVW6MRhIq5jLyjbaCTDCijyYJNpCajdyobP/eTw0iexBAKkJ3gA5KcQb2zBXsIBckn+xVv8jkZSaEFHE+jFEleAEfayRU0MouNoBmB/L50Ai/HSLIHxcrpCvnhSQAuakKp2C/YbCylJjXRVy/z3+Kv/RrNcCo+WUzlVEhzKffnTQnxeN9fWF88fiNCUdSTsaufaChKWInHeysygfpIqagoakW+vV20J8uyl6TyNKEZWV4oRSPyCkWpgOLSbkCObT8o2r6tlG58HQquf6O0v50tB7JM7F4EORd2dx/K0w/KHsVkLPaoYrwgP/y7krr3SSMA4zj+OBgmjYkxcdIJQyQRKgg2viX9Hddi9UBb29LrKR7CVVEEEXWojUkXNyfTNDE14W9gbHJNuhjDettN3ZvbOvdOqCD3Jp/9l+/wJE+9PkYGjx/fqkys3S2rMozM/o2106rfMUINo6hVqz+eu/hd1c4xTg0TAfy5kV+4UG6+IthHTU9woWmxuKNbTfuCSfovBCxq7EtHqvYL4Sm6F8GVxsSXHMQ07TOi1DKtZxjWaaIyi4CXWjxPccUw8WVbMYY5wxC1mzEyXMJWkllpRloi+Kkoq69sxBTlElF6aAxYUbjXNlhlDZilDnM4U5SlN5biRsRHnbx3mbeWjEh4mEyiuJDl5XcWVmX5GvNkFgLWZM5qwsop4/AWfLhU1cR7k1VVvcYCWRkOI6Xy5gmnphCYIkvzuNYzHzosq2oNk2RtSs8khfUOfHIDgR6ysYBaMpl4uEgk2U/oJTs9AaTSwma7dT69geAE2ZpEjUsn2ieJNHeKfrI3EcAGJ2ZaNgVuC8EBctCLc57P5u5led6IOBkIYkuQMrmmjChs4VkfOerHqSBkPzZlhe06RslZ3zMjk2sscqKwY0RcjKK+LWbzd7KiHhkncs/siFJ+V5eXxD34B8nVuJEpGJNmxN2gH3vSvp7J70tF+D1Ej8qUJD1TkErAND2GZwTFg/LubvmgiBG3SOvdlsqFQrkEzJCL1rstlnVFROixZoDDSuXQFHESwVGlcuQcMb/b42NgjLowh5MTDFE3vNB5qStRIErdCQEh6pLPR92anSUb/wAIhldAaDMpGgAAAABJRU5ErkJggg==",wWe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACkAAAApCAQAAAACach9AAACMUlEQVR4Ae3ShY7jQBAE0Aoz/f9/HTMzhg1zrdKUrJbdx+Kd2nD8VNudfsL/Th///dyQN2TH6f3y/BGpC379rV+S+qqetBOxImNQXL8JCAr2V4iMQXHGNJxeCfZXhSRBcQMfvkOWUdtfzlLgAENmZDcmo2TVmt8OSM2eXxBp3DjHSMFutqS7SbmemzBiR+xpKCNUIRkdkkYxhAkyGoBvyQFEJEefwSmmvBfJuJ6aKqKWnAkvGZOaZXTUgFqYULWNSHUckZuR1HIIimUExutRxwzOLROIG4vKmCKQt364mIlhSyzAf1m9lHZHJZrlAOMMztRRiKimp/rpdJDc9Awry5xTZCte7FHtuS8wJgeYGrex28xNTd086Dik7vUMscQOa8y4DoGtCCSkAKlNwpgNtphjrC6MIHUkR6YWxxs6Sc5xqn222mmCRFzIt8lEdKx+ikCtg91qS2WpwVfBelJCiQJwvzixfI9cxZQWgiSJelKnwBElKYtDOb2MFbhmUigbReQBV0Cg4+qMXSxXSyGUn4UbF8l+7qdSGnTC0XLCmahIgUHLhLOhpVCtw4CzYXvLQWQbJNmxoCsOKAxSgBJno75avolkRw8iIAFcsdc02e9iyCd8tHwmeSSoKTowIgvscSGZUOA7PuCN5b2BX9mQM7S0wYhMNU74zgsPBj3HU7wguAfnxxjFQGBE6pwN+GjME9zHY7zGp8wVxMShYX9NXvEWD3HbwJf4giO4CFIQxXScH1/TM+04kkBiAAAAAElFTkSuQmCC",xWe=()=>{delete tF.Icon.Default.prototype._getIconUrl,tF.Icon.Default.mergeOptions({iconRetinaUrl:_We,iconUrl:bWe,shadowUrl:wWe})};xWe();const OWe=yWe(ua);function T_(e){return t=>{const{resetSelectedServer:n}=t;return I.useEffect(()=>{n()},[n]),y.jsx(e,{...t})}}let SWe=class extends I.Component{constructor(t){super(t),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(t){const{console:n=globalThis.console}=this.props;n.error(t)}render(){const{hasError:t}=this.state,{location:n=globalThis.location}=this.props;if(t)return y.jsx("div",{className:"home",children:y.jsxs(Qt,{className:"p-4",children:[y.jsx("h1",{children:"Oops! This is awkward :S"}),y.jsx("p",{children:"It seems that something went wrong. Try refreshing the page or just click this button."}),y.jsx("br",{}),y.jsx(_t,{outline:!0,color:"primary",onClick:()=>n.reload(),children:"Take me back"})]})});const{children:r}=this.props;return r}};const nq=({href:e,children:t,rel:n,...r})=>y.jsx("a",{target:"_blank",rel:`noopener noreferrer${n?` ${n}`:""}`,href:e,...r,children:t??e}),EWe=({id:e,name:t})=>y.jsxs(YB,{tag:$t,to:`/server/${e}`,className:"servers-list__server-item",children:[t,y.jsx(Ne,{icon:Vee,className:"servers-list__server-item-icon"})]}),rq=({servers:e,children:t,embedded:n=!1})=>y.jsxs(y.Fragment,{children:[t&&y.jsx("div",{"data-testid":"title",className:"mb-0 fs-5 fw-normal lh-sm",children:t}),e.length>0&&y.jsx(VB,{"data-testid":"list",tag:"div",className:xd("servers-list__list-group",{"servers-list__list-group--embedded":n}),children:e.map(({id:r,name:i})=>y.jsx(EWe,{id:r,name:i},r))})]}),iq=({color:e=rm,className:t})=>y.jsx("svg",{className:t,viewBox:"0 0 512 512",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:y.jsxs("g",{fill:e,children:[y.jsx("path",{d:" M 23.71 85.08 C 17.22 49.81 49.44 14.86 85.08 18.12 C 118.83 19.21 145.72 53.33 139.45 86.37 C 155.64 102.30 171.32 118.83 187.87 134.36 C 198.32 111.73 208.84 89.12 219.57 66.62 C 226.05 53.84 243.47 48.74 255.73 56.27 C 263.76 62.10 270.34 69.69 277.25 76.75 C 286.28 86.61 285.72 102.89 276.31 112.31 C 223.38 165.37 170.38 218.37 117.35 271.34 C 107.72 280.99 91.01 281.25 81.11 271.86 C 74.39 264.94 66.82 258.69 61.24 250.77 C 53.72 238.52 58.85 221.07 71.64 214.62 C 94.11 203.87 116.72 193.38 139.33 182.91 C 123.81 166.36 107.30 150.68 91.37 134.49 C 60.20 140.28 27.37 116.78 23.71 85.08 Z"}),y.jsx("path",{d:" M 205.21 201.23 C 225.32 181.36 260.88 181.11 281.14 200.86 C 299.25 218.75 317.37 236.65 335.10 254.93 C 356.73 278.01 352.01 318.70 326.03 336.56 C 320.07 330.47 313.73 324.65 308.12 318.28 C 323.86 309.39 328.76 286.18 316.63 272.39 C 301.73 256.95 286.30 242.03 271.24 226.75 C 264.49 219.65 256.80 212.00 246.37 211.52 C 224.65 208.64 205.52 233.36 214.49 253.58 C 221.09 266.81 234.22 275.12 243.62 286.24 C 240.43 295.96 238.09 306.13 238.29 316.46 C 225.55 304.29 213.16 291.73 200.89 279.09 C 180.97 257.57 183.10 220.45 205.21 201.23 Z"}),y.jsx("path",{d:" M 273.90 352.07 C 252.28 328.99 256.98 288.31 282.96 270.46 C 288.93 276.54 295.26 282.36 300.88 288.72 C 285.14 297.62 280.23 320.82 292.38 334.61 C 307.27 350.05 322.70 364.96 337.75 380.25 C 344.51 387.35 352.20 395.00 362.64 395.48 C 384.35 398.37 403.49 373.64 394.51 353.42 C 387.92 340.18 374.78 331.88 365.38 320.76 C 368.56 311.04 370.91 300.86 370.71 290.54 C 383.45 302.70 395.84 315.27 408.11 327.91 C 428.03 349.43 425.90 386.55 403.78 405.77 C 383.68 425.64 348.13 425.89 327.86 406.14 C 309.75 388.25 291.60 370.37 273.90 352.07 Z"}),y.jsx("path",{d:" M 422.11 403.83 C 431.96 394.07 441.60 384.06 451.66 374.51 C 460.90 383.74 471.89 392.70 474.89 406.11 C 480.16 429.97 484.08 454.13 488.76 478.12 C 490.00 483.41 484.47 488.29 479.35 486.63 C 454.66 481.52 429.55 478.12 405.14 471.84 C 393.17 467.97 385.20 457.75 376.55 449.27 C 386.39 439.49 396.13 429.60 406.06 419.91 C 416.37 433.45 435.74 414.00 422.11 403.83 Z"})]})}),TWe=({servers:e})=>{const t=oa(),n=Object.values(e),r=n.length>0;return I.useEffect(()=>{const i=n.find(({autoConnect:o})=>o);i&&t(`/server/${i.id}`)},[n,t]),y.jsx("div",{className:"home",children:y.jsx(di,{className:"home__main-card",children:y.jsxs(Pr,{className:"g-0",children:[y.jsx("div",{className:"col-md-5 d-none d-md-block",children:y.jsx("div",{className:"home__logo-wrapper",children:y.jsx("div",{className:"home__logo",children:y.jsx(iq,{})})})}),y.jsxs("div",{className:"col-md-7 home__servers-container",children:[y.jsx("div",{className:"home__title-wrapper",children:y.jsx("h1",{className:"home__title",children:"Welcome!"})}),y.jsx(rq,{embedded:!0,servers:n,children:!r&&y.jsxs("div",{className:"p-4 text-center",children:[y.jsx("p",{className:"mb-5",children:"This application will help you manage your Shlink servers."}),y.jsx("p",{children:y.jsxs($t,{to:"/server/create",className:"btn btn-outline-primary btn-lg me-2",children:[y.jsx(Ne,{icon:Nk})," ",y.jsx("span",{className:"ms-1",children:"Add a server"})]})}),y.jsx("p",{className:"mb-0 mt-5",children:y.jsx(nq,{href:"https://shlink.io/documentation",children:y.jsxs("small",{children:[y.jsx("span",{className:"me-1",children:"Learn more about Shlink"})," ",y.jsx(Ne,{icon:See})]})})})]})})]})]})})})},oq=()=>{const{ServersDropdown:e}=Ki(oq),[t,n,,r]=Cn(),i=xr(),{pathname:o}=i;I.useEffect(r,[i,r]);const a="/settings",s=xd("main-header__toggle-icon",{"main-header__toggle-icon--opened":t});return y.jsxs(uB,{color:"primary",dark:!0,fixed:"top",className:"main-header",expand:"md",children:[y.jsxs(cB,{tag:$t,to:"/",children:[y.jsx(iq,{className:"main-header__brand-logo",color:"white"})," Shlink"]}),y.jsx(fB,{onClick:n,children:y.jsx(Ne,{icon:Bee,className:s})}),y.jsx(zae,{navbar:!0,isOpen:t,children:y.jsxs(qk,{navbar:!0,className:"ms-auto",children:[y.jsx(Kk,{children:y.jsxs(hB,{tag:$t,to:a,active:o.startsWith(a),children:[y.jsx(Ne,{icon:Yee}),"  Settings"]})}),y.jsx(e,{})]})})]})},CWe=Zi(oq,["ServersDropdown"]),kWe=({children:e})=>{const t=xr();return I.useEffect(()=>{scrollTo(0,0)},[t]),y.jsx(y.Fragment,{children:e})},kS=e=>Object.prototype.toString.call(e)==="[object Object]",aq=(e,t)=>{const n={};return(...r)=>{const i=e(...r);if(n[i])return n[i];const o=t(...r);return n[i]=o,o}},sq=(e,t)=>{const n={...e};return!kS(e)||!kS(t)||Object.keys(t).forEach(r=>{kS(t[r])?n[r]=r in e&&e[r]!==void 0?sq(e[r],t[r]):{...t[r]}:n[r]=t[r]}),n},jWe=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,lF=e=>{if(typeof e!="string")throw new TypeError("Invalid argument expected string");const t=e.match(jWe);if(!t)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return t.shift(),t},uF=e=>e==="*"||e==="x"||e==="X",cF=e=>{const t=parseInt(e,10);return isNaN(t)?e:t},PWe=(e,t)=>typeof e!=typeof t?[String(e),String(t)]:[e,t],AWe=(e,t)=>{if(uF(e)||uF(t))return 0;const[n,r]=PWe(cF(e),cF(t));return n>r?1:n{for(let n=0;n{const n=lF(e),r=lF(t),i=n.pop(),o=r.pop(),a=fF(n,r);return a!==0?a:i&&o?fF(i.split("."),o.split(".")):i||o?i?-1:1:0},MWe=(e,t,n)=>{RWe(n);const r=NWe(e,t);return lq[n].includes(r)},lq={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]},dF=Object.keys(lq),RWe=e=>{if(typeof e!="string")throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);if(dF.indexOf(e)===-1)throw new Error(`Invalid operator, expected one of ${dF.join("|")}`)},uq=aq(e=>e,e=>{try{return MWe(e,e,"=")}catch{return!1}}),cq=e=>uq(e)?`v${e}`:e,fq=(e,t="latest")=>uq(e)?e:t,DWe="%_VERSION_%",LWe=e=>cq(fq(e)),pF=({project:e,version:t})=>y.jsx(nq,{href:`https://github.com/shlinkio/${e}/releases/${t}`,className:"text-muted",children:y.jsx("b",{children:t})}),IWe=({selectedServer:e,clientVersion:t=DWe})=>{const n=LWe(t);return y.jsxs("small",{className:"text-muted",children:[b7(e)&&y.jsxs(y.Fragment,{children:["Server: ",y.jsx(pF,{project:"shlink",version:e.printableVersion})," - "]}),"Client: ",y.jsx(pF,{project:"shlink-web-client",version:n})]})},FWe=/^\/server\/[a-zA-Z0-9-]*\/(?!edit)/,UWe=({selectedServer:e})=>{const{pathname:t}=xr(),n=I.useMemo(()=>FWe.test(t),[t]),r=xd("text-center",{"shlink-versions-container--with-sidebar":n});return y.jsx("div",{className:r,children:y.jsx(IWe,{selectedServer:e})})},Vd=({children:e})=>y.jsx("div",{className:"no-menu-wrapper container-xl",children:e});function dq(e){const t=n=>{const{ServerError:r}=Ki(t),i=hd(),{selectServer:o,selectedServer:a}=n;return I.useEffect(()=>{i.serverId&&o(i.serverId)},[i.serverId,o]),a?q3(a)?y.jsx(r,{}):y.jsx(e,{...n}):y.jsx(Vd,{children:y.jsx(el,{loading:!0})})};return t}const pq=dq(I.memo(({selectedServer:e,settings:t})=>{const{buildShlinkApiClient:n,TagColorsStorage:r,ShlinkWebComponent:i,ServerError:o}=Ki(pq);if(!b7(e))return y.jsx(o,{});const a=`/server/${e.id}`;return y.jsx(i,{serverVersion:e.version,apiClient:n(e),settings:t,routesPrefix:a,tagColorsStorage:r,createNotFound:s=>y.jsx(y9,{to:`${a}${s}`,children:"List short URLs"})})})),$We=Zi(pq,["buildShlinkApiClient","TagColorsStorage","ShlinkWebComponent","ServerError"]),BWe=(e,t)=>{e.constant("window",window),e.constant("console",console),e.constant("fetch",window.fetch.bind(window)),e.service("HttpClient",epe,"fetch"),e.serviceFactory("ScrollToTop",()=>kWe),e.factory("MainHeader",CWe),e.serviceFactory("Home",()=>TWe),e.decorator("Home",T_),e.decorator("Home",t(["servers"],["resetSelectedServer"])),e.serviceFactory("ShlinkWebComponent",()=>OWe),e.factory("ShlinkWebComponentContainer",$We),e.decorator("ShlinkWebComponentContainer",t(["selectedServer","settings"],["selectServer"])),e.serviceFactory("ShlinkVersionsContainer",()=>UWe),e.decorator("ShlinkVersionsContainer",t(["selectedServer"])),e.serviceFactory("ErrorHandler",()=>SWe)};let py;const zWe=new Uint8Array(16);function VWe(){if(!py&&(py=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!py))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return py(zWe)}const ar=[];for(let e=0;e<256;++e)ar.push((e+256).toString(16).slice(1));function HWe(e,t=0){return ar[e[t+0]]+ar[e[t+1]]+ar[e[t+2]]+ar[e[t+3]]+"-"+ar[e[t+4]]+ar[e[t+5]]+"-"+ar[e[t+6]]+ar[e[t+7]]+"-"+ar[e[t+8]]+ar[e[t+9]]+"-"+ar[e[t+10]]+ar[e[t+11]]+ar[e[t+12]]+ar[e[t+13]]+ar[e[t+14]]+ar[e[t+15]]}const WWe=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),hF={randomUUID:WWe};function hq(e,t,n){if(hF.randomUUID&&!t&&!e)return hF.randomUUID();e=e||{};const r=e.random||(e.rng||VWe)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(let i=0;i<16;++i)t[n+i]=r[i];return t}return HWe(r)}const mq=()=>{const e=oa();return I.useCallback(()=>e(-1),[e])},YWe=()=>{const{search:e}=xr();return I.useMemo(()=>yj(e),[e])},vq=({isOpen:e,duplicatedServers:t,onDiscard:n,onSave:r})=>{const i=t.length>1;return y.jsxs(Ka,{centered:!0,isOpen:e,children:[y.jsxs(Za,{children:["Duplicated server",i&&"s"]}),y.jsxs(aa,{children:[y.jsx("p",{children:i?"The next servers already exist:":"There is already a server with:"}),y.jsx("ul",{children:t.map(({url:o,apiKey:a},s)=>i?y.jsxs("li",{children:[y.jsx("b",{children:o})," - ",y.jsx("b",{children:a})]},s):y.jsxs(I.Fragment,{children:[y.jsxs("li",{children:["URL: ",y.jsx("b",{children:o})]}),y.jsxs("li",{children:["API key: ",y.jsx("b",{children:a})]})]},s))}),y.jsxs("span",{children:[i?"Do you want to ignore duplicated servers":"Do you want to save this server anyway","?"]})]}),y.jsxs(Uu,{children:[y.jsx(_t,{color:"link",onClick:n,children:i?"Ignore duplicates":"Discard"}),y.jsx(_t,{color:"primary",onClick:r,children:"Save anyway"})]})]})},GWe=e=>t=>{t.preventDefault(),e()},gq=({onSubmit:e,initialValues:t,children:n,title:r})=>{const[i,o]=I.useState(""),[a,s]=I.useState(""),[l,u]=I.useState(""),f=GWe(()=>e({name:i,url:a,apiKey:l}));return I.useEffect(()=>{t&&o(t.name),t&&s(t.url),t&&u(t.apiKey)},[t]),y.jsxs("form",{className:"server-form",name:"serverForm",onSubmit:f,children:[y.jsxs(Qt,{className:"mb-3",title:r,children:[y.jsx(Ny,{value:i,onChange:o,children:"Name"}),y.jsx(Ny,{type:"url",value:a,onChange:s,children:"URL"}),y.jsx(Ny,{value:l,onChange:u,children:"API key"})]}),y.jsx("div",{className:"text-end",children:n})]})},mF=4e3,vF=({type:e})=>y.jsx("div",{className:"mt-3",children:y.jsxs(li,{type:e,children:[e==="success"&&"Servers properly imported. You can now select one from the list :)",e==="error"&&"The servers could not be imported. Make sure the format is correct."]})}),yq=({servers:e,createServers:t})=>{const{ImportServersBtn:n,useTimeoutToggle:r}=Ki(yq),i=oa(),o=mq(),a=!!Object.keys(e).length,[s,l]=r(!1,mF),[u,f]=r(!1,mF),[d,p]=Cn(),[m,v]=I.useState(),g=I.useCallback(x=>{const b=hq();t([{...x,id:b}]),i(`/server/${b}`)},[t,i]);return I.useEffect(()=>{if(!m)return;Object.values(e).some(({url:b,apiKey:_})=>(m==null?void 0:m.url)===b&&(m==null?void 0:m.apiKey)===_)?p():g(m)},[g,m,e,p]),y.jsxs(Vd,{children:[y.jsxs(gq,{title:y.jsx("h5",{className:"mb-0",children:"Add new server"}),onSubmit:v,children:[!a&&y.jsx(n,{tooltipPlacement:"top",onImport:l,onImportError:f}),a&&y.jsx(_t,{outline:!0,onClick:o,children:"Cancel"}),y.jsx(_t,{outline:!0,color:"primary",className:"ms-2",children:"Create server"})]}),s&&y.jsx(vF,{type:"success"}),u&&y.jsx(vF,{type:"error"}),y.jsx(vq,{isOpen:d,duplicatedServers:m?[m]:[],onDiscard:o,onSave:()=>m&&g(m)})]})},qWe=Zi(yq,["ImportServersBtn","useTimeoutToggle"]),bq=({server:e,className:t,children:n,textClassName:r})=>{const{DeleteServerModal:i}=Ki(bq),[o,,a,s]=Cn();return y.jsxs(y.Fragment,{children:[y.jsxs("button",{type:"button",className:xd(t,"p-0 bg-transparent border-0"),onClick:a,children:[!n&&y.jsx(Ne,{fixedWidth:!0,icon:kk}),y.jsx("span",{className:r,children:n??"Remove this server"})]}),y.jsx(i,{server:e,isOpen:o,toggle:s})]})},KWe=Zi(bq,["DeleteServerModal"]),ZWe=({server:e,toggle:t,isOpen:n,deleteServer:r,redirectHome:i=!0})=>{const o=oa(),a=I.useRef(!1),s=()=>{a.current=!0,t()},l=()=>{a.current&&(r(e),i&&o("/"))};return y.jsxs(Ka,{isOpen:n,toggle:t,centered:!0,onClosed:l,children:[y.jsx(Za,{toggle:t,className:"text-danger",children:"Remove server"}),y.jsxs(aa,{children:[y.jsxs("p",{children:["Are you sure you want to remove ",y.jsx("b",{children:e?e.name:""}),"?"]}),y.jsx("p",{children:y.jsx("i",{children:"No data will be deleted, only the access to this server will be removed from this device. You can create it again at any moment."})})]}),y.jsxs(Uu,{children:[y.jsx(_t,{color:"link",onClick:t,children:"Cancel"}),y.jsx(_t,{color:"danger",onClick:s,children:"Delete"})]})]})},QWe=dq(({editServer:e,selectedServer:t,selectServer:n})=>{const r=mq(),{reconnect:i}=YWe();if(!nh(t))return null;const o=a=>{e(t.id,a),i==="true"&&n(t.id),r()};return y.jsx(Vd,{children:y.jsxs(gq,{title:y.jsxs("h5",{className:"mb-0",children:['Edit "',t.name,'"']}),initialValues:t,onSubmit:o,children:[y.jsx(_t,{outline:!0,className:"me-2",onClick:r,children:"Cancel"}),y.jsx(_t,{outline:!0,color:"primary",children:"Save"})]})})}),XWe=Zi(QWe,["ServerError"]),gF=(e,{url:t,apiKey:n})=>e.some(r=>r.url===t&&r.apiKey===n),_q=({createServers:e,servers:t,children:n,onImport:r=()=>{},onImportError:i=()=>{},tooltipPlacement:o="bottom",className:a=""})=>{const{ServersImporter:s}=Ki(_q),l=hl(),[u,f]=I.useState([]),[d,,p,m]=Cn(),v=I.useRef([]),g=I.useCallback(w=>{e(w),r()},[e,r]),x=I.useCallback(async({target:w})=>{var O;return s.importServersFromFile((O=w.files)==null?void 0:O[0]).then(E=>{v.current=E;const T=Object.values(t),k=E.filter(D=>gF(T,D)),P=!!k.length;P?f(k):g(E),P&&p()}).then(()=>{w.value=null}).catch(i)},[g,i,t,s,p]),b=I.useCallback(()=>{g(v.current),m()},[g,m,v]),_=I.useCallback(()=>{g(v.current.filter(w=>!gF(u,w))),m()},[g,u,m]);return y.jsxs(y.Fragment,{children:[y.jsxs(_t,{outline:!0,id:"importBtn",className:a,onClick:()=>{var w;return(w=l.current)==null?void 0:w.click()},children:[y.jsx(Ne,{icon:mee,fixedWidth:!0})," ",n??"Import from file"]}),y.jsxs(Jr,{placement:o,target:"importBtn",children:["You can create servers by importing a CSV file with ",y.jsx("b",{children:"name"}),", ",y.jsx("b",{children:"apiKey"})," and ",y.jsx("b",{children:"url"})," columns."]}),y.jsx("input",{type:"file",accept:"text/csv",className:"d-none",ref:l,onChange:x,"aria-hidden":!0}),y.jsx(vq,{isOpen:d,duplicatedServers:u,onDiscard:_,onSave:b})]})},JWe=Zi(_q,["ServersImporter"]),wq=({servers:e,selectedServer:t})=>{const{DeleteServerButton:n}=Ki(wq);return y.jsx(Vd,{children:y.jsxs("div",{className:"server-error__container flex-column",children:[y.jsxs(el,{className:"w-100 mb-3 mb-md-5",type:"error",fullWidth:!0,children:[!nh(t)&&"Could not find this Shlink server.",nh(t)&&y.jsxs(y.Fragment,{children:[y.jsx("p",{children:"Oops! Could not connect to this Shlink server."}),"Make sure you have internet connection, and the server is properly configured and on-line."]})]}),y.jsx(rq,{servers:Object.values(e),children:y.jsxs("p",{className:"mb-md-3",children:["These are the Shlink servers currently configured. Choose one of them or ",y.jsx($t,{to:"/server/create",children:"add a new one"}),"."]})}),nh(t)&&y.jsx("div",{className:"container mt-3 mt-md-5",children:y.jsxs("p",{className:"fs-5 fw-normal lh-sm",children:["Alternatively, if you think you may have miss-configured this server, you can ",y.jsx(n,{server:t,className:"server-error__delete-btn",children:"remove it"})," or ",y.jsx($t,{to:`/server/${t.id}/edit?reconnect=true`,children:"edit it"}),"."]})})]})})},eYe=Zi(wq,["DeleteServerButton"]),tYe=4e3,xq=({servers:e})=>{const{ServersExporter:t,ImportServersBtn:n,useTimeoutToggle:r,ManageServersRow:i}=Ki(xq),o=Object.values(e),[a,s]=I.useState(o),l=p=>s(o.filter(({name:m,url:v})=>`${m} ${v}`.toLowerCase().match(p.toLowerCase()))),u=a.some(({autoConnect:p})=>!!p),[f,d]=r(!1,tYe);return I.useEffect(()=>{s(Object.values(e))},[e]),y.jsxs(Vd,{children:[y.jsx(gv,{className:"mb-3",onChange:l}),y.jsxs(Pr,{className:"mb-3",children:[y.jsxs("div",{className:"col-md-6 d-flex d-md-block mb-2 mb-md-0",children:[y.jsx(n,{className:"flex-fill",onImportError:d,children:"Import servers"}),o.length>0&&y.jsxs(_t,{outline:!0,className:"ms-2 flex-fill",onClick:async()=>t.exportServers(),children:[y.jsx(Ne,{icon:O7,fixedWidth:!0})," Export servers"]})]}),y.jsx("div",{className:"col-md-6 text-md-end d-flex d-md-block",children:y.jsxs(_t,{outline:!0,color:"primary",className:"flex-fill",tag:$t,to:"/server/create",children:[y.jsx(Ne,{icon:Nk,fixedWidth:!0})," Add a server"]})})]}),y.jsx(Qt,{children:y.jsxs("table",{className:"table table-hover responsive-table mb-0",children:[y.jsx("thead",{className:"responsive-table__header",children:y.jsxs("tr",{children:[u&&y.jsx("th",{style:{width:"50px"},children:y.jsx("span",{className:"sr-only",children:"Auto-connect"})}),y.jsx("th",{children:"Name"}),y.jsx("th",{children:"Base URL"}),y.jsx("th",{children:y.jsx("span",{className:"sr-only",children:"Options"})})]})}),y.jsxs("tbody",{children:[!a.length&&y.jsx("tr",{className:"text-center",children:y.jsx("td",{colSpan:4,children:"No servers found."})}),a.map(p=>y.jsx(i,{server:p,hasAutoConnect:u},p.id))]})]})}),f&&y.jsx("div",{className:"mt-3",children:y.jsx(li,{type:"error",children:"The servers could not be imported. Make sure the format is correct."})})]})},nYe=Zi(xq,["ServersExporter","ImportServersBtn","useTimeoutToggle","ManageServersRow"]),Oq=({server:e,hasAutoConnect:t})=>{const{ManageServersRowDropdown:n}=Ki(Oq);return y.jsxs("tr",{className:"responsive-table__row",children:[t&&y.jsx("td",{className:"responsive-table__cell","data-th":"Auto-connect",children:e.autoConnect&&y.jsxs(y.Fragment,{children:[y.jsx(Ne,{icon:Wh,className:"text-primary",id:"autoConnectIcon"}),y.jsx(Jr,{target:"autoConnectIcon",placement:"right",children:"Auto-connect to this server"})]})}),y.jsx("th",{className:"responsive-table__cell","data-th":"Name",children:y.jsx($t,{to:`/server/${e.id}`,children:e.name})}),y.jsx("td",{className:"responsive-table__cell","data-th":"Base URL",children:e.url}),y.jsx("td",{className:"responsive-table__cell text-end",children:y.jsx(n,{server:e})})]})},rYe=Zi(Oq,["ManageServersRowDropdown"]),Sq=({server:e,setAutoConnect:t})=>{const{DeleteServerModal:n}=Ki(Sq),[r,,i,o]=Cn(),a=`/server/${e.id}`,{autoConnect:s}=e,l=s?pee:ope;return y.jsxs(ow,{minWidth:170,children:[y.jsxs(Re,{tag:$t,to:a,children:[y.jsx(Ne,{icon:fee,fixedWidth:!0})," Connect"]}),y.jsxs(Re,{tag:$t,to:`${a}/edit`,children:[y.jsx(Ne,{icon:jk,fixedWidth:!0})," Edit server"]}),y.jsxs(Re,{onClick:()=>t(e,!s),children:[y.jsx(Ne,{icon:l,fixedWidth:!0})," ",s?"Do not a":"A","uto-connect"]}),y.jsx(Re,{divider:!0,tag:"hr"}),y.jsxs(Re,{className:"dropdown-item--danger",onClick:i,children:[y.jsx(Ne,{icon:kk,fixedWidth:!0})," Remove server"]}),y.jsx(n,{redirectHome:!1,server:e,isOpen:r,toggle:o})]})},iYe=Zi(Sq,["DeleteServerModal"]),Eq=(e,t)=>L9(e,t,{serializeError:n=>n}),oYe={},aYe=e=>"id"in e?e:{...e,id:hq()},sYe=e=>e.reduce((t,n)=>({...t,[n.id]:n}),{}),{actions:lYe,reducer:uYe}=Dn({name:"shlink/servers",initialState:oYe,reducers:{editServer:{prepare:(e,t)=>({payload:{serverId:e,serverData:t}}),reducer:(e,{payload:t})=>{const{serverId:n,serverData:r}=t;return e[n]?{...e,[n]:{...e[n],...r}}:e}},deleteServer:(e,{payload:t})=>{const{[t.id]:n,...r}=e;return r},setAutoConnect:{prepare:({id:e},t)=>({payload:{serverId:e,autoConnect:t}}),reducer:(e,{payload:t})=>{const{serverId:n,autoConnect:r}=t;return e[n]?r?Object.fromEntries(Object.entries(e).map(([i,o])=>[i,{...o,autoConnect:i===n}])):{...e,[n]:{...e[n],autoConnect:r}}:e}},createServers:{prepare:e=>({payload:sYe(e.map(aYe))}),reducer:(e,{payload:t})=>({...e,...t})}}}),{editServer:cYe,deleteServer:fYe,setAutoConnect:dYe,createServers:Tq}=lYe,pYe=uYe,hYe=e=>Array.isArray(e)?e.filter(y7):[],mYe=e=>Eq("shlink/remoteServers/fetchServers",async(t,{dispatch:n})=>{const r=await e.jsonRequest(`${_0.homepage}/servers.json`),i=hYe(r);n(Tq(i))}),kA="shlink/selectedServer",vYe="1.0.0",gYe="999.999.999",yYe="latest",bYe=e=>fq(e===yYe?gYe:e,vYe),_Ye=aq(e=>`${e.id}_${e.url}_${e.apiKey}`,async(e,t)=>t().then(({version:n})=>({version:bYe(n),printableVersion:cq(n)}))),yF=null,jA=Mn(`${kA}/resetSelectedServer`),wYe=e=>Eq(`${kA}/selectServer`,async(t,{dispatch:n,getState:r})=>{n(jA());const{servers:i}=r(),o=i[t];if(!o)return{serverNotFound:!0};try{const a=e(o),{version:s,printableVersion:l}=await _Ye(o,()=>a.health());return{...o,version:s,printableVersion:l}}catch{return{...o,serverNotReachable:!0}}}),xYe=e=>Dn({name:kA,initialState:yF,reducers:{},extraReducers:t=>{t.addCase(jA,()=>yF),t.addCase(e.fulfilled,(n,{payload:r})=>r)}}),OYe=({servers:e,selectedServer:t})=>{const n=Object.values(e),r=()=>n.length===0?y.jsxs(Re,{tag:$t,to:"/server/create",children:[y.jsx(Ne,{icon:Nk})," ",y.jsx("span",{className:"ms-1",children:"Add a server"})]}):y.jsxs(y.Fragment,{children:[n.map(({name:i,id:o})=>y.jsx(Re,{tag:$t,to:`/server/${o}`,active:K3(t)===o,children:i},o)),y.jsx(Re,{divider:!0,tag:"hr"}),y.jsxs(Re,{tag:$t,to:"/manage-servers",children:[y.jsx(Ne,{icon:tR})," ",y.jsx("span",{className:"ms-1",children:"Manage servers"})]})]});return y.jsxs(mv,{nav:!0,inNavbar:!0,children:[y.jsxs(gd,{nav:!0,caret:!0,children:[y.jsx(Ne,{icon:tR})," ",y.jsx("span",{className:"ms-1",children:"Servers"})]}),y.jsx(vd,{end:!0,style:{right:0},children:r()})]})},SYe=({document:e},t,n)=>{const r=e.createElement("a");r.setAttribute("href",t),r.setAttribute("download",n),r.style.visibility="hidden",e.body.appendChild(r),r.click(),e.body.removeChild(r)},EYe=(e,t,n)=>{const r=new Blob([t],{type:"text/csv;charset=utf-8;"}),i=URL.createObjectURL(r);SYe(e,i,n)},TYe="shlink-servers.csv";class CYe{constructor(t,n,r){nc(this,"exportServers",async()=>{const t=Object.values(this.storage.get("servers")??{}).map(Z3);try{const n=this.jsonToCsv(t);EYe(this.window,n,TYe)}catch(n){console.error(n)}});this.storage=t,this.window=n,this.jsonToCsv=r}}const kYe=e=>typeof e.url=="string"&&typeof e.apiKey=="string"&&typeof e.name=="string",jYe=e=>Array.isArray(e)&&e.every(kYe);class PYe{constructor(t){this.csvToJson=t}async importServersFromFile(t){if(!t)throw new Error("No file provided");const n=await t.text(),r=await this.csvToJson(n);if(!jYe(r))throw new Error("Provided file does not have the right format.");return r}}const AYe=(e,t)=>{e.factory("ManageServers",nYe),e.decorator("ManageServers",T_),e.decorator("ManageServers",t(["selectedServer","servers"],["resetSelectedServer"])),e.factory("ManageServersRow",rYe),e.factory("ManageServersRowDropdown",iYe),e.decorator("ManageServersRowDropdown",t(null,["setAutoConnect"])),e.factory("CreateServer",qWe),e.decorator("CreateServer",T_),e.decorator("CreateServer",t(["selectedServer","servers"],["createServers","resetSelectedServer"])),e.factory("EditServer",XWe),e.decorator("EditServer",t(["selectedServer"],["editServer","selectServer","resetSelectedServer"])),e.serviceFactory("ServersDropdown",()=>OYe),e.decorator("ServersDropdown",t(["servers","selectedServer"])),e.serviceFactory("DeleteServerModal",()=>ZWe),e.decorator("DeleteServerModal",t(null,["deleteServer"])),e.factory("DeleteServerButton",KWe),e.factory("ImportServersBtn",JWe),e.decorator("ImportServersBtn",t(["servers"],["createServers"])),e.factory("ServerError",eYe),e.decorator("ServerError",t(["servers","selectedServer"])),e.service("ServersImporter",PYe,"csvToJson"),e.service("ServersExporter",CYe,"Storage","window","jsonToCsv"),e.serviceFactory("selectServer",wYe,"buildShlinkApiClient","loadMercureInfo"),e.serviceFactory("createServers",()=>Tq),e.serviceFactory("deleteServer",()=>fYe),e.serviceFactory("editServer",()=>cYe),e.serviceFactory("setAutoConnect",()=>dYe),e.serviceFactory("fetchServers",mYe,"HttpClient"),e.serviceFactory("resetSelectedServer",()=>jA),e.serviceFactory("selectedServerReducerCreator",xYe,"selectServer"),e.serviceFactory("selectedServerReducer",n=>n.reducer,"selectedServerReducerCreator")},yu=({children:e})=>y.jsx("small",{className:"form-text text-muted d-block",children:e}),NYe=e=>e?`${e}`:"",MYe=({settings:e,toggleRealTimeUpdates:t,setRealTimeUpdatesInterval:n})=>{const{realTimeUpdates:r={enabled:!0}}=e,i=iw();return y.jsxs(Qt,{title:"Real-time updates",className:"h-100",children:[y.jsx(zr,{children:y.jsxs(ku,{checked:r.enabled,onChange:t,children:["Enable or disable real-time updates.",y.jsxs(yu,{children:["Real-time updates are currently being ",y.jsx("b",{children:r.enabled?"processed":"ignored"}),"."]})]})}),y.jsxs(wd,{noMargin:!0,label:"Real-time updates frequency (in minutes):",labelClassName:xd("form-label",{"text-muted":!r.enabled}),id:i,children:[y.jsx(Cu,{type:"number",min:0,placeholder:"Immediate",disabled:!r.enabled,value:NYe(r.interval),id:i,onChange:({target:o})=>n(Number(o.value))}),r.enabled&&y.jsxs(yu,{children:[r.interval!==void 0&&r.interval>0&&y.jsxs("span",{children:["Updates will be reflected in the UI every ",y.jsx("b",{children:r.interval})," minute",r.interval>1&&"s","."]}),!r.interval&&"Updates will be reflected in the UI as soon as they happen."]})]})]})},Cq={field:"dateCreated",dir:"DESC"},RYe={realTimeUpdates:{enabled:!0},shortUrlCreation:{validateUrls:!1},ui:{theme:_j()},visits:{defaultInterval:"last30Days"},shortUrlsList:{defaultOrdering:Cq}},DYe=(e,{payload:t})=>sq(e,t),Ml=e=>({reducer:DYe,prepare:e}),Rl=e=>({payload:e}),{reducer:LYe,actions:IYe}=Dn({name:"shlink/settings",initialState:RYe,reducers:{toggleRealTimeUpdates:Ml(e=>Rl({realTimeUpdates:{enabled:e}})),setRealTimeUpdatesInterval:Ml(e=>Rl({realTimeUpdates:{interval:e}})),setShortUrlCreationSettings:Ml(e=>Rl({shortUrlCreation:e})),setShortUrlsListSettings:Ml(e=>Rl({shortUrlsList:e})),setUiSettings:Ml(e=>Rl({ui:e})),setVisitsSettings:Ml(e=>Rl({visits:e})),setTagsSettings:Ml(e=>Rl({tags:e}))}}),{toggleRealTimeUpdates:FYe,setRealTimeUpdatesInterval:UYe,setShortUrlCreationSettings:$Ye,setShortUrlsListSettings:BYe,setUiSettings:zYe,setVisitsSettings:VYe,setTagsSettings:HYe}=IYe,WYe=LYe,jS=({items:e})=>y.jsx(y.Fragment,{children:e.map((t,n)=>y.jsx("div",{className:"mb-3",children:t},n))}),kq=()=>{const{RealTimeUpdatesSettings:e,ShortUrlCreationSettings:t,ShortUrlsListSettings:n,UserInterfaceSettings:r,VisitsSettings:i,TagsSettings:o}=Ki(kq);return y.jsxs(Vd,{children:[y.jsxs(m9,{className:"mb-3",children:[y.jsx(fh,{to:"general",children:"General"}),y.jsx(fh,{to:"short-urls",children:"Short URLs"}),y.jsx(fh,{to:"other-items",children:"Other items"})]}),y.jsxs(Y_,{children:[y.jsx(yt,{path:"general",element:y.jsx(jS,{items:[y.jsx(r,{}),y.jsx(e,{})]})}),y.jsx(yt,{path:"short-urls",element:y.jsx(jS,{items:[y.jsx(t,{}),y.jsx(n,{})]})}),y.jsx(yt,{path:"other-items",element:y.jsx(jS,{items:[y.jsx(o,{}),y.jsx(i,{})]})}),y.jsx(yt,{path:"*",element:y.jsx(Ok,{replace:!0,to:"general"})})]})]})},YYe=Zi(kq,["RealTimeUpdatesSettings","ShortUrlCreationSettings","ShortUrlsListSettings","UserInterfaceSettings","VisitsSettings","TagsSettings"]),PS=e=>e==="includes"?"Suggest tags including input":"Suggest tags starting with input",GYe=e=>e==="includes"?y.jsxs(y.Fragment,{children:["The list of suggested tags will contain those ",y.jsx("b",{children:"including"})," provided input."]}):y.jsxs(y.Fragment,{children:["The list of suggested tags will contain those ",y.jsx("b",{children:"starting with"})," provided input."]}),qYe=({settings:e,setShortUrlCreationSettings:t})=>{const n=e.shortUrlCreation??{validateUrls:!1},r=i=>()=>t({...n??{validateUrls:!1},tagFilteringMode:i});return y.jsxs(Qt,{title:"Short URLs form",className:"h-100",children:[y.jsx(zr,{children:y.jsxs(ku,{checked:n.validateUrls??!1,onChange:i=>t({...n,validateUrls:i}),children:["Request validation on long URLs when creating new short URLs.",y.jsxs(yu,{children:["The initial state of the ",y.jsx("b",{children:"Validate URL"})," checkbox will be ",y.jsx("b",{children:n.validateUrls?"checked":"unchecked"}),"."]})]})}),y.jsx(zr,{children:y.jsxs(ku,{checked:n.forwardQuery??!0,onChange:i=>t({...n,forwardQuery:i}),children:["Make all new short URLs forward their query params to the long URL.",y.jsxs(yu,{children:["The initial state of the ",y.jsx("b",{children:"Forward query params on redirect"})," checkbox will be ",y.jsx("b",{children:n.forwardQuery??!0?"checked":"unchecked"}),"."]})]})}),y.jsxs(wd,{noMargin:!0,label:"Tag suggestions search mode:",children:[y.jsxs(Qa,{text:PS(n.tagFilteringMode),children:[y.jsx(Re,{active:!n.tagFilteringMode||n.tagFilteringMode==="startsWith",onClick:r("startsWith"),children:PS("startsWith")}),y.jsx(Re,{active:n.tagFilteringMode==="includes",onClick:r("includes"),children:PS("includes")})]}),y.jsx(yu,{children:GYe(n.tagFilteringMode)})]})]})},KYe={dateCreated:"Created at",shortCode:"Short URL",longUrl:"Long URL",title:"Title",visits:"Visits"},ZYe=({settings:{shortUrlsList:e},setShortUrlsListSettings:t})=>y.jsx(Qt,{title:"Short URLs list",className:"h-100",children:y.jsx(wd,{noMargin:!0,label:"Default ordering for short URLs list:",children:y.jsx(yv,{items:KYe,order:(e==null?void 0:e.defaultOrdering)??Cq,onChange:(n,r)=>t({defaultOrdering:{field:n,dir:r}})})})}),QYe={tag:"Tag",shortUrls:"Short URLs",visits:"Visits"},XYe=({settings:{tags:e},setTagsSettings:t})=>y.jsx(Qt,{title:"Tags",className:"h-100",children:y.jsx(wd,{noMargin:!0,label:"Default ordering for tags list:",children:y.jsx(yv,{items:QYe,order:(e==null?void 0:e.defaultOrdering)??{},onChange:(n,r)=>t({...e,defaultOrdering:{field:n,dir:r}})})})}),JYe=({settings:{ui:e},setUiSettings:t,_matchMedia:n})=>{const r=I.useMemo(()=>(e==null?void 0:e.theme)??_j(n),[e==null?void 0:e.theme,n]);return y.jsxs(Qt,{title:"User interface",className:"h-100",children:[y.jsx(Ne,{icon:r==="dark"?qee:Iee,className:"user-interface__theme-icon"}),y.jsx(ku,{checked:r==="dark",onChange:i=>{t({...e,theme:i?"dark":"light"})},children:"Use dark theme."})]})},jq={today:"Today",yesterday:"Yesterday",last7Days:"Last 7 days",last30Days:"Last 30 days",last90Days:"Last 90 days",last180Days:"Last 180 days",last365Days:"Last 365 days"},eGe=(e,t)=>!e||e==="all"?t:jq[e],tGe=({onChange:e,active:t,allText:n})=>y.jsxs(Qa,{text:eGe(t,n),children:[y.jsx(Re,{active:t==="all",onClick:()=>e("all"),children:n}),y.jsx(Re,{divider:!0}),Object.entries(jq).map(([r,i])=>y.jsx(Re,{active:t===r,onClick:()=>e(r),children:i},r))]}),bF=e=>{var t;return((t=e.visits)==null?void 0:t.defaultInterval)??"last30Days"},nGe=({settings:e,setVisitsSettings:t})=>{var r,i,o,a;const n=I.useCallback(({defaultInterval:s,...l})=>t({defaultInterval:s??bF(e),...l}),[t,e]);return y.jsxs(Qt,{title:"Visits",className:"h-100",children:[y.jsx(zr,{children:y.jsxs(ku,{checked:!!((r=e.visits)!=null&&r.excludeBots),onChange:s=>n({excludeBots:s}),children:["Exclude bots wherever possible (this option‘s effect might depend on Shlink server‘s version).",y.jsxs(yu,{children:["The visits coming from potential bots will be ",y.jsx("b",{children:(i=e.visits)!=null&&i.excludeBots?"excluded":"included"}),"."]})]})}),y.jsx(zr,{children:y.jsxs(ku,{checked:!!((o=e.visits)!=null&&o.loadPrevInterval),onChange:s=>n({loadPrevInterval:s}),children:["Compare visits with previous period.",y.jsxs(yu,{children:["When loading visits, previous period ",y.jsx("b",{children:(a=e.visits)!=null&&a.loadPrevInterval?"will":"won't"})," be loaded by default."]})]})}),y.jsx(wd,{noMargin:!0,label:"Default interval to load on visits sections:",children:y.jsx(tGe,{allText:"All visits",active:bF(e),onChange:s=>n({defaultInterval:s})})})]})},rGe=(e,t)=>{e.factory("Settings",YYe),e.decorator("Settings",T_),e.decorator("Settings",t(null,["resetSelectedServer"])),e.serviceFactory("RealTimeUpdatesSettings",()=>MYe),e.decorator("RealTimeUpdatesSettings",t(["settings"],["toggleRealTimeUpdates","setRealTimeUpdatesInterval"])),e.serviceFactory("ShortUrlCreationSettings",()=>qYe),e.decorator("ShortUrlCreationSettings",t(["settings"],["setShortUrlCreationSettings"])),e.serviceFactory("UserInterfaceSettings",()=>JYe),e.decorator("UserInterfaceSettings",t(["settings"],["setUiSettings"])),e.serviceFactory("VisitsSettings",()=>nGe),e.decorator("VisitsSettings",t(["settings"],["setVisitsSettings"])),e.serviceFactory("TagsSettings",()=>XYe),e.decorator("TagsSettings",t(["settings"],["setTagsSettings"])),e.serviceFactory("ShortUrlsListSettings",()=>ZYe),e.decorator("ShortUrlsListSettings",t(["settings"],["setShortUrlsListSettings"])),e.serviceFactory("toggleRealTimeUpdates",()=>FYe),e.serviceFactory("setRealTimeUpdatesInterval",()=>UYe),e.serviceFactory("setShortUrlCreationSettings",()=>$Ye),e.serviceFactory("setShortUrlsListSettings",()=>BYe),e.serviceFactory("setUiSettings",()=>zYe),e.serviceFactory("setVisitsSettings",()=>VYe),e.serviceFactory("setTagsSettings",()=>HYe)};function AS(e){return e==null?"":`${e}`}function iGe(e={}){const{separator:t,decimals:n}=e;return t?n?r=>r.toFixed(n).replace(".",t):r=>`${r}`.replace(".",t):n?r=>r.toFixed(n):r=>`${r}`}function PA(e={}){const t=typeof e.quote=="string"?e.quote:'"',n=typeof e.escapedQuote=="string"?e.escapedQuote:`${t}${t}`;if(!t||t===n)return i=>i;const r=new RegExp(t,"g");return i=>(i.includes(t)&&(i=i.replace(r,n)),`${t}${i}${t}`)}function oGe(e={stringFormatter:PA()}){return t=>e.stringFormatter(t.toString().slice(7,-1))}function aGe(e={stringFormatter:PA()}){return t=>{if(t===null)return"";let n=JSON.stringify(t);return n===void 0?"":(n[0]==='"'&&(n=n.replace(/^"(.+)"$/,"$1")),e.stringFormatter(n))}}const sGe=RegExp(`[^.[\\]]+|\\[(?:([^"'][^[]*)|(["'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))`,"g");function lGe(e){var t,n,r;const i=[];let o;for(;o=sGe.exec(e);)i.push((r=(t=o[3])!==null&&t!==void 0?t:(n=o[1])===null||n===void 0?void 0:n.trim())!==null&&r!==void 0?r:o[0]);return i}function _F(e,t,n){if(t in e){const o=e[t];return o===void 0?n:o}const r=Array.isArray(t)?t:lGe(t);let i=e;for(const o of r)if(i=i==null?void 0:i[o],i===void 0)return n;return i}function Pq(e,t){try{return Array.isArray(t)?e.push(...t):e.push(t),e}catch{return e.concat(t)}}function xC(e,t){let n=!0;return e.reduce((r,i)=>(i==null&&(i=""),n?(n=!1,`${i}`):`${r}${t}${i}`),"")}var wF;(function(e){e.header="header",e.undefined="undefined",e.boolean="boolean",e.number="number",e.bigint="bigint",e.string="string",e.symbol="symbol",e.function="function",e.object="object"})(wF||(wF={}));class uGe{constructor(t){this.opts=this.preprocessOpts(t)}preprocessOpts(t){const n=Object.assign({},t);n.fields&&(n.fields=this.preprocessFieldsInfo(n.fields,n.defaultValue)),n.transforms=n.transforms||[];const r=n.formatters&&n.formatters.string||PA(),i=aGe({stringFormatter:r}),o={header:r,undefined:AS,boolean:AS,number:iGe(),bigint:AS,string:r,symbol:oGe({stringFormatter:r}),function:i,object:i};return n.formatters=Object.assign(Object.assign({},o),n.formatters),n.delimiter=n.delimiter||",",n.eol=n.eol||` +`,n.header=n.header!==!1,n.includeEmptyRows=n.includeEmptyRows||!1,n.withBOM=n.withBOM||!1,n}preprocessFieldsInfo(t,n){return t.map(r=>{if(typeof r=="string")return{label:r,value:i=>_F(i,r,n)};if(typeof r=="object"){const i="default"in r?r.default:n;if(typeof r.value=="string"){const o=r.value;return{label:r.label||r.value,value:a=>_F(a,o,i)}}if(typeof r.value=="function"){const o=r.label||r.value.name||"",a={label:o,default:i},s=r.value;return{label:o,value(l){const u=s(l,a);return u===void 0?i:u}}}}throw new Error("Invalid field info option. "+JSON.stringify(r))})}getHeader(){return xC(this.opts.fields.map(t=>this.opts.formatters.header(t.label)),this.opts.delimiter)}preprocessRow(t){return this.opts.transforms.reduce((n,r)=>n.map(i=>r(i)).reduce(Pq,[]),[t])}processRow(t){if(!t)return;const n=this.opts.fields.map(r=>this.processCell(t,r));if(!(!this.opts.includeEmptyRows&&n.every(r=>r==="")))return xC(n,this.opts.delimiter)}processCell(t,n){return this.processValue(n.value(t))}processValue(t){const n=this.opts.formatters[typeof t];return n(t)}}class cGe extends uGe{constructor(t){super(t)}parse(t){const n=this.preprocessData(t);this.opts.fields=this.opts.fields||this.preprocessFieldsInfo(n.reduce((a,s)=>(Object.keys(s).forEach(l=>{a.includes(l)||a.push(l)}),a),[]),this.opts.defaultValue);const r=this.opts.header?this.getHeader():"",i=this.processData(n);return(this.opts.withBOM?"\uFEFF":"")+r+(r&&i?this.opts.eol:"")+i}preprocessData(t){const n=Array.isArray(t)?t:[t];if(!this.opts.fields){if(t==null||n.length===0)throw new Error('Data should not be empty or the "fields" option should be included');if(typeof n[0]!="object")throw new Error('Data items should be objects or the "fields" option should be included')}return this.opts.transforms.length===0?n:n.map(r=>this.preprocessRow(r)).reduce(Pq,[])}processData(t){return xC(t.map(n=>this.processRow(n)).filter(n=>n),this.opts.eol)}}var $n;(function(e){e[e.BACKSPACE=8]="BACKSPACE",e[e.FORM_FEED=12]="FORM_FEED",e[e.NEWLINE=10]="NEWLINE",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.TAB=9]="TAB",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.NUMBER_SIGN=35]="NUMBER_SIGN",e[e.DOLLAR_SIGN=36]="DOLLAR_SIGN",e[e.PERCENT_SIGN=37]="PERCENT_SIGN",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.LEFT_PARENTHESIS=40]="LEFT_PARENTHESIS",e[e.RIGHT_PARENTHESIS=41]="RIGHT_PARENTHESIS",e[e.ASTERISK=42]="ASTERISK",e[e.PLUS_SIGN=43]="PLUS_SIGN",e[e.COMMA=44]="COMMA",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.FULL_STOP=46]="FULL_STOP",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_ZERO=48]="DIGIT_ZERO",e[e.DIGIT_ONE=49]="DIGIT_ONE",e[e.DIGIT_TWO=50]="DIGIT_TWO",e[e.DIGIT_THREE=51]="DIGIT_THREE",e[e.DIGIT_FOUR=52]="DIGIT_FOUR",e[e.DIGIT_FIVE=53]="DIGIT_FIVE",e[e.DIGIT_SIX=54]="DIGIT_SIX",e[e.DIGIT_SEVEN=55]="DIGIT_SEVEN",e[e.DIGIT_EIGHT=56]="DIGIT_EIGHT",e[e.DIGIT_NINE=57]="DIGIT_NINE",e[e.COLON=58]="COLON",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.COMMERCIAL_AT=64]="COMMERCIAL_AT",e[e.LATIN_CAPITAL_LETTER_A=65]="LATIN_CAPITAL_LETTER_A",e[e.LATIN_CAPITAL_LETTER_B=66]="LATIN_CAPITAL_LETTER_B",e[e.LATIN_CAPITAL_LETTER_C=67]="LATIN_CAPITAL_LETTER_C",e[e.LATIN_CAPITAL_LETTER_D=68]="LATIN_CAPITAL_LETTER_D",e[e.LATIN_CAPITAL_LETTER_E=69]="LATIN_CAPITAL_LETTER_E",e[e.LATIN_CAPITAL_LETTER_F=70]="LATIN_CAPITAL_LETTER_F",e[e.LATIN_CAPITAL_LETTER_G=71]="LATIN_CAPITAL_LETTER_G",e[e.LATIN_CAPITAL_LETTER_H=72]="LATIN_CAPITAL_LETTER_H",e[e.LATIN_CAPITAL_LETTER_I=73]="LATIN_CAPITAL_LETTER_I",e[e.LATIN_CAPITAL_LETTER_J=74]="LATIN_CAPITAL_LETTER_J",e[e.LATIN_CAPITAL_LETTER_K=75]="LATIN_CAPITAL_LETTER_K",e[e.LATIN_CAPITAL_LETTER_L=76]="LATIN_CAPITAL_LETTER_L",e[e.LATIN_CAPITAL_LETTER_M=77]="LATIN_CAPITAL_LETTER_M",e[e.LATIN_CAPITAL_LETTER_N=78]="LATIN_CAPITAL_LETTER_N",e[e.LATIN_CAPITAL_LETTER_O=79]="LATIN_CAPITAL_LETTER_O",e[e.LATIN_CAPITAL_LETTER_P=80]="LATIN_CAPITAL_LETTER_P",e[e.LATIN_CAPITAL_LETTER_Q=81]="LATIN_CAPITAL_LETTER_Q",e[e.LATIN_CAPITAL_LETTER_R=82]="LATIN_CAPITAL_LETTER_R",e[e.LATIN_CAPITAL_LETTER_S=83]="LATIN_CAPITAL_LETTER_S",e[e.LATIN_CAPITAL_LETTER_T=84]="LATIN_CAPITAL_LETTER_T",e[e.LATIN_CAPITAL_LETTER_U=85]="LATIN_CAPITAL_LETTER_U",e[e.LATIN_CAPITAL_LETTER_V=86]="LATIN_CAPITAL_LETTER_V",e[e.LATIN_CAPITAL_LETTER_W=87]="LATIN_CAPITAL_LETTER_W",e[e.LATIN_CAPITAL_LETTER_X=88]="LATIN_CAPITAL_LETTER_X",e[e.LATIN_CAPITAL_LETTER_Y=89]="LATIN_CAPITAL_LETTER_Y",e[e.LATIN_CAPITAL_LETTER_Z=90]="LATIN_CAPITAL_LETTER_Z",e[e.LEFT_SQUARE_BRACKET=91]="LEFT_SQUARE_BRACKET",e[e.REVERSE_SOLIDUS=92]="REVERSE_SOLIDUS",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.CIRCUMFLEX_ACCENT=94]="CIRCUMFLEX_ACCENT",e[e.LOW_LINE=95]="LOW_LINE",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_LETTER_A=97]="LATIN_SMALL_LETTER_A",e[e.LATIN_SMALL_LETTER_B=98]="LATIN_SMALL_LETTER_B",e[e.LATIN_SMALL_LETTER_C=99]="LATIN_SMALL_LETTER_C",e[e.LATIN_SMALL_LETTER_D=100]="LATIN_SMALL_LETTER_D",e[e.LATIN_SMALL_LETTER_E=101]="LATIN_SMALL_LETTER_E",e[e.LATIN_SMALL_LETTER_F=102]="LATIN_SMALL_LETTER_F",e[e.LATIN_SMALL_LETTER_G=103]="LATIN_SMALL_LETTER_G",e[e.LATIN_SMALL_LETTER_H=104]="LATIN_SMALL_LETTER_H",e[e.LATIN_SMALL_LETTER_I=105]="LATIN_SMALL_LETTER_I",e[e.LATIN_SMALL_LETTER_J=106]="LATIN_SMALL_LETTER_J",e[e.LATIN_SMALL_LETTER_K=107]="LATIN_SMALL_LETTER_K",e[e.LATIN_SMALL_LETTER_L=108]="LATIN_SMALL_LETTER_L",e[e.LATIN_SMALL_LETTER_M=109]="LATIN_SMALL_LETTER_M",e[e.LATIN_SMALL_LETTER_N=110]="LATIN_SMALL_LETTER_N",e[e.LATIN_SMALL_LETTER_O=111]="LATIN_SMALL_LETTER_O",e[e.LATIN_SMALL_LETTER_P=112]="LATIN_SMALL_LETTER_P",e[e.LATIN_SMALL_LETTER_Q=113]="LATIN_SMALL_LETTER_Q",e[e.LATIN_SMALL_LETTER_R=114]="LATIN_SMALL_LETTER_R",e[e.LATIN_SMALL_LETTER_S=115]="LATIN_SMALL_LETTER_S",e[e.LATIN_SMALL_LETTER_T=116]="LATIN_SMALL_LETTER_T",e[e.LATIN_SMALL_LETTER_U=117]="LATIN_SMALL_LETTER_U",e[e.LATIN_SMALL_LETTER_V=118]="LATIN_SMALL_LETTER_V",e[e.LATIN_SMALL_LETTER_W=119]="LATIN_SMALL_LETTER_W",e[e.LATIN_SMALL_LETTER_X=120]="LATIN_SMALL_LETTER_X",e[e.LATIN_SMALL_LETTER_Y=121]="LATIN_SMALL_LETTER_Y",e[e.LATIN_SMALL_LETTER_Z=122]="LATIN_SMALL_LETTER_Z",e[e.LEFT_CURLY_BRACKET=123]="LEFT_CURLY_BRACKET",e[e.VERTICAL_LINE=124]="VERTICAL_LINE",e[e.RIGHT_CURLY_BRACKET=125]="RIGHT_CURLY_BRACKET",e[e.TILDE=126]="TILDE"})($n||($n={}));$n.QUOTATION_MARK+"",$n.QUOTATION_MARK,$n.REVERSE_SOLIDUS+"",$n.REVERSE_SOLIDUS,$n.SOLIDUS+"",$n.SOLIDUS,$n.LATIN_SMALL_LETTER_B+"",$n.BACKSPACE,$n.LATIN_SMALL_LETTER_F+"",$n.FORM_FEED,$n.LATIN_SMALL_LETTER_N+"",$n.NEWLINE,$n.LATIN_SMALL_LETTER_R+"",$n.CARRIAGE_RETURN,$n.LATIN_SMALL_LETTER_T+"",$n.TAB;var xF;(function(e){e[e.LEFT_BRACE=0]="LEFT_BRACE",e[e.RIGHT_BRACE=1]="RIGHT_BRACE",e[e.LEFT_BRACKET=2]="LEFT_BRACKET",e[e.RIGHT_BRACKET=3]="RIGHT_BRACKET",e[e.COLON=4]="COLON",e[e.COMMA=5]="COMMA",e[e.TRUE=6]="TRUE",e[e.FALSE=7]="FALSE",e[e.NULL=8]="NULL",e[e.STRING=9]="STRING",e[e.NUMBER=10]="NUMBER",e[e.SEPARATOR=11]="SEPARATOR"})(xF||(xF={}));var OF;(function(e){e[e.START=0]="START",e[e.ENDED=1]="ENDED",e[e.ERROR=2]="ERROR",e[e.TRUE1=3]="TRUE1",e[e.TRUE2=4]="TRUE2",e[e.TRUE3=5]="TRUE3",e[e.FALSE1=6]="FALSE1",e[e.FALSE2=7]="FALSE2",e[e.FALSE3=8]="FALSE3",e[e.FALSE4=9]="FALSE4",e[e.NULL1=10]="NULL1",e[e.NULL2=11]="NULL2",e[e.NULL3=12]="NULL3",e[e.STRING_DEFAULT=13]="STRING_DEFAULT",e[e.STRING_AFTER_BACKSLASH=14]="STRING_AFTER_BACKSLASH",e[e.STRING_UNICODE_DIGIT_1=15]="STRING_UNICODE_DIGIT_1",e[e.STRING_UNICODE_DIGIT_2=16]="STRING_UNICODE_DIGIT_2",e[e.STRING_UNICODE_DIGIT_3=17]="STRING_UNICODE_DIGIT_3",e[e.STRING_UNICODE_DIGIT_4=18]="STRING_UNICODE_DIGIT_4",e[e.STRING_INCOMPLETE_CHAR=19]="STRING_INCOMPLETE_CHAR",e[e.NUMBER_AFTER_INITIAL_MINUS=20]="NUMBER_AFTER_INITIAL_MINUS",e[e.NUMBER_AFTER_INITIAL_ZERO=21]="NUMBER_AFTER_INITIAL_ZERO",e[e.NUMBER_AFTER_INITIAL_NON_ZERO=22]="NUMBER_AFTER_INITIAL_NON_ZERO",e[e.NUMBER_AFTER_FULL_STOP=23]="NUMBER_AFTER_FULL_STOP",e[e.NUMBER_AFTER_DECIMAL=24]="NUMBER_AFTER_DECIMAL",e[e.NUMBER_AFTER_E=25]="NUMBER_AFTER_E",e[e.NUMBER_AFTER_E_AND_SIGN=26]="NUMBER_AFTER_E_AND_SIGN",e[e.NUMBER_AFTER_E_AND_DIGIT=27]="NUMBER_AFTER_E_AND_DIGIT",e[e.SEPARATOR=28]="SEPARATOR"})(OF||(OF={}));var SF;(function(e){e[e.OBJECT=0]="OBJECT",e[e.ARRAY=1]="ARRAY"})(SF||(SF={}));var EF;(function(e){e[e.VALUE=0]="VALUE",e[e.KEY=1]="KEY",e[e.COLON=2]="COLON",e[e.COMMA=3]="COMMA",e[e.ENDED=4]="ENDED",e[e.ERROR=5]="ERROR",e[e.SEPARATOR=6]="SEPARATOR"})(EF||(EF={}));var fGe=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(r,i,o){n.o(r,i)||Object.defineProperty(r,i,{enumerable:!0,get:o})},n.r=function(r){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},n.t=function(r,i){if(1&i&&(r=n(r)),8&i||4&i&&typeof r=="object"&&r&&r.__esModule)return r;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:r}),2&i&&typeof r!="string")for(var a in r)n.d(o,a,(function(s){return r[s]}).bind(null,a));return o},n.n=function(r){var i=r&&r.__esModule?function(){return r.default}:function(){return r};return n.d(i,"a",i),i},n.o=function(r,i){return Object.prototype.hasOwnProperty.call(r,i)},n.p="",n(n.s=32)}([function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch{typeof window=="object"&&(n=window)}e.exports=n},function(e,t,n){var r=n(6),i=Object.keys||function(v){var g=[];for(var x in v)g.push(x);return g};e.exports=d;var o=n(5);o.inherits=n(2);var a=n(23),s=n(14);o.inherits(d,a);for(var l=i(s.prototype),u=0;u + * @license MIT + */var i=n(38),o=n(39),a=n(40);function s(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(j,A){if(s()=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|j}function g(j,A){if(u.isBuffer(j))return j.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(j)||j instanceof ArrayBuffer))return j.byteLength;typeof j!="string"&&(j=""+j);var $=j.length;if($===0)return 0;for(var J=!1;;)switch(A){case"ascii":case"latin1":case"binary":return $;case"utf8":case"utf-8":case void 0:return oe(j).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*$;case"hex":return $>>>1;case"base64":return le(j).length;default:if(J)return oe(j).length;A=(""+A).toLowerCase(),J=!0}}function x(j,A,$){var J=j[A];j[A]=j[$],j[$]=J}function b(j,A,$,J,K){if(j.length===0)return-1;if(typeof $=="string"?(J=$,$=0):$>2147483647?$=2147483647:$<-2147483648&&($=-2147483648),$=+$,isNaN($)&&($=K?0:j.length-1),$<0&&($=j.length+$),$>=j.length){if(K)return-1;$=j.length-1}else if($<0){if(!K)return-1;$=0}if(typeof A=="string"&&(A=u.from(A,J)),u.isBuffer(A))return A.length===0?-1:_(j,A,$,J,K);if(typeof A=="number")return A&=255,u.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?K?Uint8Array.prototype.indexOf.call(j,A,$):Uint8Array.prototype.lastIndexOf.call(j,A,$):_(j,[A],$,J,K);throw new TypeError("val must be string, number or Buffer")}function _(j,A,$,J,K){var se,he=1,Ee=j.length,ue=A.length;if(J!==void 0&&((J=String(J).toLowerCase())==="ucs2"||J==="ucs-2"||J==="utf16le"||J==="utf-16le")){if(j.length<2||A.length<2)return-1;he=2,Ee/=2,ue/=2,$/=2}function ve(ke,Pe){return he===1?ke[Pe]:ke.readUInt16BE(Pe*he)}if(K){var ge=-1;for(se=$;seEe&&($=Ee-ue),se=$;se>=0;se--){for(var Oe=!0,Ce=0;CeK&&(J=K):J=K;var se=A.length;if(se%2!=0)throw new TypeError("Invalid hex string");J>se/2&&(J=se/2);for(var he=0;he>8,ue=he%256,ve.push(ue),ve.push(Ee);return ve}(A,j.length-$),j,$,J)}function D(j,A,$){return A===0&&$===j.length?i.fromByteArray(j):i.fromByteArray(j.slice(A,$))}function N(j,A,$){$=Math.min(j.length,$);for(var J=[],K=A;K<$;){var se,he,Ee,ue,ve=j[K],ge=null,Oe=ve>239?4:ve>223?3:ve>191?2:1;if(K+Oe<=$)switch(Oe){case 1:ve<128&&(ge=ve);break;case 2:(192&(se=j[K+1]))==128&&(ue=(31&ve)<<6|63&se)>127&&(ge=ue);break;case 3:se=j[K+1],he=j[K+2],(192&se)==128&&(192&he)==128&&(ue=(15&ve)<<12|(63&se)<<6|63&he)>2047&&(ue<55296||ue>57343)&&(ge=ue);break;case 4:se=j[K+1],he=j[K+2],Ee=j[K+3],(192&se)==128&&(192&he)==128&&(192&Ee)==128&&(ue=(15&ve)<<18|(63&se)<<12|(63&he)<<6|63&Ee)>65535&&ue<1114112&&(ge=ue)}ge===null?(ge=65533,Oe=1):ge>65535&&(ge-=65536,J.push(ge>>>10&1023|55296),ge=56320|1023&ge),J.push(ge),K+=Oe}return function(Ce){var ke=Ce.length;if(ke<=F)return String.fromCharCode.apply(String,Ce);for(var Pe="",ce=0;cethis.length||((J===void 0||J>this.length)&&(J=this.length),J<=0)||(J>>>=0)<=($>>>=0))return"";for(A||(A="utf8");;)switch(A){case"hex":return H(this,$,J);case"utf8":case"utf-8":return N(this,$,J);case"ascii":return B(this,$,J);case"latin1":case"binary":return Y(this,$,J);case"base64":return D(this,$,J);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Q(this,$,J);default:if(K)throw new TypeError("Unknown encoding: "+A);A=(A+"").toLowerCase(),K=!0}}).apply(this,arguments)},u.prototype.equals=function(j){if(!u.isBuffer(j))throw new TypeError("Argument must be a Buffer");return this===j||u.compare(this,j)===0},u.prototype.inspect=function(){var j="",A=t.INSPECT_MAX_BYTES;return this.length>0&&(j=this.toString("hex",0,A).match(/.{2}/g).join(" "),this.length>A&&(j+=" ... ")),""},u.prototype.compare=function(j,A,$,J,K){if(!u.isBuffer(j))throw new TypeError("Argument must be a Buffer");if(A===void 0&&(A=0),$===void 0&&($=j?j.length:0),J===void 0&&(J=0),K===void 0&&(K=this.length),A<0||$>j.length||J<0||K>this.length)throw new RangeError("out of range index");if(J>=K&&A>=$)return 0;if(J>=K)return-1;if(A>=$)return 1;if(A>>>=0,$>>>=0,J>>>=0,K>>>=0,this===j)return 0;for(var se=K-J,he=$-A,Ee=Math.min(se,he),ue=this.slice(J,K),ve=j.slice(A,$),ge=0;geK)&&($=K),j.length>0&&($<0||A<0)||A>this.length)throw new RangeError("Attempt to write outside buffer bounds");J||(J="utf8");for(var se=!1;;)switch(J){case"hex":return w(this,j,A,$);case"utf8":case"utf-8":return O(this,j,A,$);case"ascii":return E(this,j,A,$);case"latin1":case"binary":return T(this,j,A,$);case"base64":return k(this,j,A,$);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,j,A,$);default:if(se)throw new TypeError("Unknown encoding: "+J);J=(""+J).toLowerCase(),se=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var F=4096;function B(j,A,$){var J="";$=Math.min(j.length,$);for(var K=A;K<$;++K)J+=String.fromCharCode(127&j[K]);return J}function Y(j,A,$){var J="";$=Math.min(j.length,$);for(var K=A;K<$;++K)J+=String.fromCharCode(j[K]);return J}function H(j,A,$){var J=j.length;(!A||A<0)&&(A=0),(!$||$<0||$>J)&&($=J);for(var K="",se=A;se<$;++se)K+=ee(j[se]);return K}function Q(j,A,$){for(var J=j.slice(A,$),K="",se=0;se$)throw new RangeError("Trying to access beyond buffer length")}function te(j,A,$,J,K,se){if(!u.isBuffer(j))throw new TypeError('"buffer" argument must be a Buffer instance');if(A>K||Aj.length)throw new RangeError("Index out of range")}function X(j,A,$,J){A<0&&(A=65535+A+1);for(var K=0,se=Math.min(j.length-$,2);K>>8*(J?K:1-K)}function z(j,A,$,J){A<0&&(A=4294967295+A+1);for(var K=0,se=Math.min(j.length-$,4);K>>8*(J?K:3-K)&255}function V(j,A,$,J,K,se){if($+J>j.length)throw new RangeError("Index out of range");if($<0)throw new RangeError("Index out of range")}function W(j,A,$,J,K){return K||V(j,0,$,4),o.write(j,A,$,J,23,4),$+4}function re(j,A,$,J,K){return K||V(j,0,$,8),o.write(j,A,$,J,52,8),$+8}u.prototype.slice=function(j,A){var $,J=this.length;if(j=~~j,A=A===void 0?J:~~A,j<0?(j+=J)<0&&(j=0):j>J&&(j=J),A<0?(A+=J)<0&&(A=0):A>J&&(A=J),A0&&(K*=256);)J+=this[j+--A]*K;return J},u.prototype.readUInt8=function(j,A){return A||Z(j,1,this.length),this[j]},u.prototype.readUInt16LE=function(j,A){return A||Z(j,2,this.length),this[j]|this[j+1]<<8},u.prototype.readUInt16BE=function(j,A){return A||Z(j,2,this.length),this[j]<<8|this[j+1]},u.prototype.readUInt32LE=function(j,A){return A||Z(j,4,this.length),(this[j]|this[j+1]<<8|this[j+2]<<16)+16777216*this[j+3]},u.prototype.readUInt32BE=function(j,A){return A||Z(j,4,this.length),16777216*this[j]+(this[j+1]<<16|this[j+2]<<8|this[j+3])},u.prototype.readIntLE=function(j,A,$){j|=0,A|=0,$||Z(j,A,this.length);for(var J=this[j],K=1,se=0;++se=(K*=128)&&(J-=Math.pow(2,8*A)),J},u.prototype.readIntBE=function(j,A,$){j|=0,A|=0,$||Z(j,A,this.length);for(var J=A,K=1,se=this[j+--J];J>0&&(K*=256);)se+=this[j+--J]*K;return se>=(K*=128)&&(se-=Math.pow(2,8*A)),se},u.prototype.readInt8=function(j,A){return A||Z(j,1,this.length),128&this[j]?-1*(255-this[j]+1):this[j]},u.prototype.readInt16LE=function(j,A){A||Z(j,2,this.length);var $=this[j]|this[j+1]<<8;return 32768&$?4294901760|$:$},u.prototype.readInt16BE=function(j,A){A||Z(j,2,this.length);var $=this[j+1]|this[j]<<8;return 32768&$?4294901760|$:$},u.prototype.readInt32LE=function(j,A){return A||Z(j,4,this.length),this[j]|this[j+1]<<8|this[j+2]<<16|this[j+3]<<24},u.prototype.readInt32BE=function(j,A){return A||Z(j,4,this.length),this[j]<<24|this[j+1]<<16|this[j+2]<<8|this[j+3]},u.prototype.readFloatLE=function(j,A){return A||Z(j,4,this.length),o.read(this,j,!0,23,4)},u.prototype.readFloatBE=function(j,A){return A||Z(j,4,this.length),o.read(this,j,!1,23,4)},u.prototype.readDoubleLE=function(j,A){return A||Z(j,8,this.length),o.read(this,j,!0,52,8)},u.prototype.readDoubleBE=function(j,A){return A||Z(j,8,this.length),o.read(this,j,!1,52,8)},u.prototype.writeUIntLE=function(j,A,$,J){j=+j,A|=0,$|=0,J||te(this,j,A,$,Math.pow(2,8*$)-1,0);var K=1,se=0;for(this[A]=255&j;++se<$&&(K*=256);)this[A+se]=j/K&255;return A+$},u.prototype.writeUIntBE=function(j,A,$,J){j=+j,A|=0,$|=0,J||te(this,j,A,$,Math.pow(2,8*$)-1,0);var K=$-1,se=1;for(this[A+K]=255&j;--K>=0&&(se*=256);)this[A+K]=j/se&255;return A+$},u.prototype.writeUInt8=function(j,A,$){return j=+j,A|=0,$||te(this,j,A,1,255,0),u.TYPED_ARRAY_SUPPORT||(j=Math.floor(j)),this[A]=255&j,A+1},u.prototype.writeUInt16LE=function(j,A,$){return j=+j,A|=0,$||te(this,j,A,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[A]=255&j,this[A+1]=j>>>8):X(this,j,A,!0),A+2},u.prototype.writeUInt16BE=function(j,A,$){return j=+j,A|=0,$||te(this,j,A,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[A]=j>>>8,this[A+1]=255&j):X(this,j,A,!1),A+2},u.prototype.writeUInt32LE=function(j,A,$){return j=+j,A|=0,$||te(this,j,A,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[A+3]=j>>>24,this[A+2]=j>>>16,this[A+1]=j>>>8,this[A]=255&j):z(this,j,A,!0),A+4},u.prototype.writeUInt32BE=function(j,A,$){return j=+j,A|=0,$||te(this,j,A,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[A]=j>>>24,this[A+1]=j>>>16,this[A+2]=j>>>8,this[A+3]=255&j):z(this,j,A,!1),A+4},u.prototype.writeIntLE=function(j,A,$,J){if(j=+j,A|=0,!J){var K=Math.pow(2,8*$-1);te(this,j,A,$,K-1,-K)}var se=0,he=1,Ee=0;for(this[A]=255&j;++se<$&&(he*=256);)j<0&&Ee===0&&this[A+se-1]!==0&&(Ee=1),this[A+se]=(j/he>>0)-Ee&255;return A+$},u.prototype.writeIntBE=function(j,A,$,J){if(j=+j,A|=0,!J){var K=Math.pow(2,8*$-1);te(this,j,A,$,K-1,-K)}var se=$-1,he=1,Ee=0;for(this[A+se]=255&j;--se>=0&&(he*=256);)j<0&&Ee===0&&this[A+se+1]!==0&&(Ee=1),this[A+se]=(j/he>>0)-Ee&255;return A+$},u.prototype.writeInt8=function(j,A,$){return j=+j,A|=0,$||te(this,j,A,1,127,-128),u.TYPED_ARRAY_SUPPORT||(j=Math.floor(j)),j<0&&(j=255+j+1),this[A]=255&j,A+1},u.prototype.writeInt16LE=function(j,A,$){return j=+j,A|=0,$||te(this,j,A,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[A]=255&j,this[A+1]=j>>>8):X(this,j,A,!0),A+2},u.prototype.writeInt16BE=function(j,A,$){return j=+j,A|=0,$||te(this,j,A,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[A]=j>>>8,this[A+1]=255&j):X(this,j,A,!1),A+2},u.prototype.writeInt32LE=function(j,A,$){return j=+j,A|=0,$||te(this,j,A,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[A]=255&j,this[A+1]=j>>>8,this[A+2]=j>>>16,this[A+3]=j>>>24):z(this,j,A,!0),A+4},u.prototype.writeInt32BE=function(j,A,$){return j=+j,A|=0,$||te(this,j,A,4,2147483647,-2147483648),j<0&&(j=4294967295+j+1),u.TYPED_ARRAY_SUPPORT?(this[A]=j>>>24,this[A+1]=j>>>16,this[A+2]=j>>>8,this[A+3]=255&j):z(this,j,A,!1),A+4},u.prototype.writeFloatLE=function(j,A,$){return W(this,j,A,!0,$)},u.prototype.writeFloatBE=function(j,A,$){return W(this,j,A,!1,$)},u.prototype.writeDoubleLE=function(j,A,$){return re(this,j,A,!0,$)},u.prototype.writeDoubleBE=function(j,A,$){return re(this,j,A,!1,$)},u.prototype.copy=function(j,A,$,J){if($||($=0),J||J===0||(J=this.length),A>=j.length&&(A=j.length),A||(A=0),J>0&&J<$&&(J=$),J===$||j.length===0||this.length===0)return 0;if(A<0)throw new RangeError("targetStart out of bounds");if($<0||$>=this.length)throw new RangeError("sourceStart out of bounds");if(J<0)throw new RangeError("sourceEnd out of bounds");J>this.length&&(J=this.length),j.length-A=0;--K)j[K+A]=this[K+$];else if(se<1e3||!u.TYPED_ARRAY_SUPPORT)for(K=0;K>>=0,$=$===void 0?this.length:$>>>0,j||(j=0),typeof j=="number")for(se=A;se<$;++se)this[se]=j;else{var he=u.isBuffer(j)?j:oe(new u(j,J).toString()),Ee=he.length;for(se=0;se<$-A;++se)this[se+A]=he[se%Ee]}return this};var q=/[^+\/0-9A-Za-z-_]/g;function ee(j){return j<16?"0"+j.toString(16):j.toString(16)}function oe(j,A){var $;A=A||1/0;for(var J=j.length,K=null,se=[],he=0;he55295&&$<57344){if(!K){if($>56319){(A-=3)>-1&&se.push(239,191,189);continue}if(he+1===J){(A-=3)>-1&&se.push(239,191,189);continue}K=$;continue}if($<56320){(A-=3)>-1&&se.push(239,191,189),K=$;continue}$=65536+(K-55296<<10|$-56320)}else K&&(A-=3)>-1&&se.push(239,191,189);if(K=null,$<128){if((A-=1)<0)break;se.push($)}else if($<2048){if((A-=2)<0)break;se.push($>>6|192,63&$|128)}else if($<65536){if((A-=3)<0)break;se.push($>>12|224,$>>6&63|128,63&$|128)}else{if(!($<1114112))throw new Error("Invalid code point");if((A-=4)<0)break;se.push($>>18|240,$>>12&63|128,$>>6&63|128,63&$|128)}}return se}function le(j){return i.toByteArray(function(A){if((A=function($){return $.trim?$.trim():$.replace(/^\s+|\s+$/g,"")}(A).replace(q,"")).length<2)return"";for(;A.length%4!=0;)A+="=";return A}(j))}function fe(j,A,$,J){for(var K=0;K=A.length||K>=j.length);++K)A[K+$]=j[K];return K}}).call(this,n(0))},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(x){if(n===setTimeout)return setTimeout(x,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(x,0);try{return n(x,0)}catch{try{return n.call(null,x,0)}catch{return n.call(this,x,0)}}}(function(){try{n=typeof setTimeout=="function"?setTimeout:o}catch{n=o}try{r=typeof clearTimeout=="function"?clearTimeout:a}catch{r=a}})();var l,u=[],f=!1,d=-1;function p(){f&&l&&(f=!1,l.length?u=l.concat(u):d=-1,u.length&&m())}function m(){if(!f){var x=s(p);f=!0;for(var b=u.length;b;){for(l=u,u=[];++d1)for(var _=1;_=0&&(s._idleTimeoutId=setTimeout(function(){s._onTimeout&&s._onTimeout()},l))},n(35),t.setImmediate=typeof self<"u"&&self.setImmediate||r!==void 0&&r.setImmediate||this&&this.setImmediate,t.clearImmediate=typeof self<"u"&&self.clearImmediate||r!==void 0&&r.clearImmediate||this&&this.clearImmediate}).call(this,n(0))},function(e,t){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(a){return typeof a=="function"}function i(a){return typeof a=="object"&&a!==null}function o(a){return a===void 0}e.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(a){if(!function(s){return typeof s=="number"}(a)||a<0||isNaN(a))throw TypeError("n must be a positive number");return this._maxListeners=a,this},n.prototype.emit=function(a){var s,l,u,f,d,p;if(this._events||(this._events={}),a==="error"&&(!this._events.error||i(this._events.error)&&!this._events.error.length)){if((s=arguments[1])instanceof Error)throw s;var m=new Error('Uncaught, unspecified "error" event. ('+s+")");throw m.context=s,m}if(o(l=this._events[a]))return!1;if(r(l))switch(arguments.length){case 1:l.call(this);break;case 2:l.call(this,arguments[1]);break;case 3:l.call(this,arguments[1],arguments[2]);break;default:f=Array.prototype.slice.call(arguments,1),l.apply(this,f)}else if(i(l))for(f=Array.prototype.slice.call(arguments,1),u=(p=l.slice()).length,d=0;d0&&this._events[a].length>l&&(this._events[a].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[a].length),typeof console.trace=="function"&&console.trace()),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(a,s){if(!r(s))throw TypeError("listener must be a function");var l=!1;function u(){this.removeListener(a,u),l||(l=!0,s.apply(this,arguments))}return u.listener=s,this.on(a,u),this},n.prototype.removeListener=function(a,s){var l,u,f,d;if(!r(s))throw TypeError("listener must be a function");if(!this._events||!this._events[a])return this;if(f=(l=this._events[a]).length,u=-1,l===s||r(l.listener)&&l.listener===s)delete this._events[a],this._events.removeListener&&this.emit("removeListener",a,s);else if(i(l)){for(d=f;d-- >0;)if(l[d]===s||l[d].listener&&l[d].listener===s){u=d;break}if(u<0)return this;l.length===1?(l.length=0,delete this._events[a]):l.splice(u,1),this._events.removeListener&&this.emit("removeListener",a,s)}return this},n.prototype.removeAllListeners=function(a){var s,l;if(!this._events)return this;if(!this._events.removeListener)return arguments.length===0?this._events={}:this._events[a]&&delete this._events[a],this;if(arguments.length===0){for(s in this._events)s!=="removeListener"&&this.removeAllListeners(s);return this.removeAllListeners("removeListener"),this._events={},this}if(r(l=this._events[a]))this.removeListener(a,l);else if(l)for(;l.length;)this.removeListener(a,l[l.length-1]);return delete this._events[a],this},n.prototype.listeners=function(a){return this._events&&this._events[a]?r(this._events[a])?[this._events[a]]:this._events[a].slice():[]},n.prototype.listenerCount=function(a){if(this._events){var s=this._events[a];if(r(s))return 1;if(s)return s.length}return 0},n.listenerCount=function(a,s){return a.listenerCount(s)}},function(e,t,n){(t=e.exports=n(23)).Stream=t,t.Readable=t,t.Writable=n(14),t.Duplex=n(1),t.Transform=n(27),t.PassThrough=n(45)},function(e,t,n){(function(r,i,o){var a=n(6);function s(N){var F=this;this.next=null,this.entry=null,this.finish=function(){(function(B,Y,H){var Q=B.entry;for(B.entry=null;Q;){var Z=Q.callback;Y.pendingcb--,Z(void 0),Q=Q.next}Y.corkedRequestsFree?Y.corkedRequestsFree.next=B:Y.corkedRequestsFree=B})(F,N)}}e.exports=w;var l,u=!r.browser&&["v0.10","v0.9."].indexOf(r.version.slice(0,5))>-1?i:a.nextTick;w.WritableState=_;var f=n(5);f.inherits=n(2);var d,p={deprecate:n(44)},m=n(24),v=n(7).Buffer,g=o.Uint8Array||function(){},x=n(25);function b(){}function _(N,F){l=l||n(1),N=N||{};var B=F instanceof l;this.objectMode=!!N.objectMode,B&&(this.objectMode=this.objectMode||!!N.writableObjectMode);var Y=N.highWaterMark,H=N.writableHighWaterMark,Q=this.objectMode?16:16384;this.highWaterMark=Y||Y===0?Y:B&&(H||H===0)?H:Q,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var Z=N.decodeStrings===!1;this.decodeStrings=!Z,this.defaultEncoding=N.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(te){(function(X,z){var V=X._writableState,W=V.sync,re=V.writecb;if(function(ee){ee.writing=!1,ee.writecb=null,ee.length-=ee.writelen,ee.writelen=0}(V),z)(function(ee,oe,le,fe,j){--oe.pendingcb,le?(a.nextTick(j,fe),a.nextTick(D,ee,oe),ee._writableState.errorEmitted=!0,ee.emit("error",fe)):(j(fe),ee._writableState.errorEmitted=!0,ee.emit("error",fe),D(ee,oe))})(X,V,W,z,re);else{var q=k(V);q||V.corked||V.bufferProcessing||!V.bufferedRequest||T(X,V),W?u(E,X,V,q,re):E(X,V,q,re)}})(F,te)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new s(this)}function w(N){if(l=l||n(1),!(d.call(w,this)||this instanceof l))return new w(N);this._writableState=new _(N,this),this.writable=!0,N&&(typeof N.write=="function"&&(this._write=N.write),typeof N.writev=="function"&&(this._writev=N.writev),typeof N.destroy=="function"&&(this._destroy=N.destroy),typeof N.final=="function"&&(this._final=N.final)),m.call(this)}function O(N,F,B,Y,H,Q,Z){F.writelen=Y,F.writecb=Z,F.writing=!0,F.sync=!0,B?N._writev(H,F.onwrite):N._write(H,Q,F.onwrite),F.sync=!1}function E(N,F,B,Y){B||function(H,Q){Q.length===0&&Q.needDrain&&(Q.needDrain=!1,H.emit("drain"))}(N,F),F.pendingcb--,Y(),D(N,F)}function T(N,F){F.bufferProcessing=!0;var B=F.bufferedRequest;if(N._writev&&B&&B.next){var Y=F.bufferedRequestCount,H=new Array(Y),Q=F.corkedRequestsFree;Q.entry=B;for(var Z=0,te=!0;B;)H[Z]=B,B.isBuf||(te=!1),B=B.next,Z+=1;H.allBuffers=te,O(N,F,!0,F.length,H,"",Q.finish),F.pendingcb++,F.lastBufferedRequest=null,Q.next?(F.corkedRequestsFree=Q.next,Q.next=null):F.corkedRequestsFree=new s(F),F.bufferedRequestCount=0}else{for(;B;){var X=B.chunk,z=B.encoding,V=B.callback;if(O(N,F,!1,F.objectMode?1:X.length,X,z,V),B=B.next,F.bufferedRequestCount--,F.writing)break}B===null&&(F.lastBufferedRequest=null)}F.bufferedRequest=B,F.bufferProcessing=!1}function k(N){return N.ending&&N.length===0&&N.bufferedRequest===null&&!N.finished&&!N.writing}function P(N,F){N._final(function(B){F.pendingcb--,B&&N.emit("error",B),F.prefinished=!0,N.emit("prefinish"),D(N,F)})}function D(N,F){var B=k(F);return B&&(function(Y,H){H.prefinished||H.finalCalled||(typeof Y._final=="function"?(H.pendingcb++,H.finalCalled=!0,a.nextTick(P,Y,H)):(H.prefinished=!0,Y.emit("prefinish")))}(N,F),F.pendingcb===0&&(F.finished=!0,N.emit("finish"))),B}f.inherits(w,m),_.prototype.getBuffer=function(){for(var N=this.bufferedRequest,F=[];N;)F.push(N),N=N.next;return F},function(){try{Object.defineProperty(_.prototype,"buffer",{get:p.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}(),typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(d=Function.prototype[Symbol.hasInstance],Object.defineProperty(w,Symbol.hasInstance,{value:function(N){return!!d.call(this,N)||this===w&&N&&N._writableState instanceof _}})):d=function(N){return N instanceof this},w.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},w.prototype.write=function(N,F,B){var Y=this._writableState,H=!1,Q=!Y.objectMode&&function(Z){return v.isBuffer(Z)||Z instanceof g}(N);return Q&&!v.isBuffer(N)&&(N=function(Z){return v.from(Z)}(N)),typeof F=="function"&&(B=F,F=null),Q?F="buffer":F||(F=Y.defaultEncoding),typeof B!="function"&&(B=b),Y.ended?function(Z,te){var X=new Error("write after end");Z.emit("error",X),a.nextTick(te,X)}(this,B):(Q||function(Z,te,X,z){var V=!0,W=!1;return X===null?W=new TypeError("May not write null values to stream"):typeof X=="string"||X===void 0||te.objectMode||(W=new TypeError("Invalid non-string/buffer chunk")),W&&(Z.emit("error",W),a.nextTick(z,W),V=!1),V}(this,Y,N,B))&&(Y.pendingcb++,H=function(Z,te,X,z,V,W){if(!X){var re=function(le,fe,j){return le.objectMode||le.decodeStrings===!1||typeof fe!="string"||(fe=v.from(fe,j)),fe}(te,z,V);z!==re&&(X=!0,V="buffer",z=re)}var q=te.objectMode?1:z.length;te.length+=q;var ee=te.length-1))throw new TypeError("Unknown encoding: "+N);return this._writableState.defaultEncoding=N,this},Object.defineProperty(w.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),w.prototype._write=function(N,F,B){B(new Error("_write() is not implemented"))},w.prototype._writev=null,w.prototype.end=function(N,F,B){var Y=this._writableState;typeof N=="function"?(B=N,N=null,F=null):typeof F=="function"&&(B=F,F=null),N!=null&&this.write(N,F),Y.corked&&(Y.corked=1,this.uncork()),Y.ending||Y.finished||function(H,Q,Z){Q.ending=!0,D(H,Q),Z&&(Q.finished?a.nextTick(Z):H.once("finish",Z)),Q.ended=!0,H.writable=!1}(this,Y,B)},Object.defineProperty(w.prototype,"destroyed",{get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(N){this._writableState&&(this._writableState.destroyed=N)}}),w.prototype.destroy=x.destroy,w.prototype._undestroy=x.undestroy,w.prototype._destroy=function(N,F){this.end(),F(N)}}).call(this,n(4),n(11).setImmediate,n(0))},function(e,t,n){(function(r,i,o){e.exports=function a(s,l,u){function f(m,v){if(!l[m]){if(!s[m]){var g=typeof _dereq_=="function"&&_dereq_;if(!v&&g)return g(m,!0);if(d)return d(m,!0);var x=new Error("Cannot find module '"+m+"'");throw x.code="MODULE_NOT_FOUND",x}var b=l[m]={exports:{}};s[m][0].call(b.exports,function(_){return f(s[m][1][_]||_)},b,b.exports,a,s,l,u)}return l[m].exports}for(var d=typeof _dereq_=="function"&&_dereq_,p=0;p0;){var _=b.shift();if(typeof _=="function"){var w=b.shift(),O=b.shift();_.call(w,O)}else _._settlePromises()}},m.prototype._drainQueues=function(){this._drainQueue(this._normalQueue),this._reset(),this._haveDrainedQueues=!0,this._drainQueue(this._lateQueue)},m.prototype._queueTick=function(){this._isTickUsed||(this._isTickUsed=!0,this._schedule(this.drainQueues))},m.prototype._reset=function(){this._isTickUsed=!1},s.exports=m,s.exports.firstLineError=u},{"./queue":26,"./schedule":29,"./util":36}],3:[function(a,s,l){s.exports=function(u,f,d,p){var m=!1,v=function(_,w){this._reject(w)},g=function(_,w){w.promiseRejectionQueued=!0,w.bindingPromise._then(v,v,null,this,_)},x=function(_,w){!(50397184&this._bitField)&&this._resolveCallback(w.target)},b=function(_,w){w.promiseRejectionQueued||this._reject(_)};u.prototype.bind=function(_){m||(m=!0,u.prototype._propagateFrom=p.propagateFromFunction(),u.prototype._boundValue=p.boundValueFunction());var w=d(_),O=new u(f);O._propagateFrom(this,1);var E=this._target();if(O._setBoundTo(w),w instanceof u){var T={promiseRejectionQueued:!1,promise:O,target:E,bindingPromise:w};E._then(f,g,void 0,O,T),w._then(x,b,void 0,O,T),O._setOnCancel(w)}else O._resolveCallback(E);return O},u.prototype._setBoundTo=function(_){_!==void 0?(this._bitField=2097152|this._bitField,this._boundTo=_):this._bitField=-2097153&this._bitField},u.prototype._isBound=function(){return(2097152&this._bitField)==2097152},u.bind=function(_,w){return u.resolve(w).bind(_)}}},{}],4:[function(a,s,l){var u;typeof Promise<"u"&&(u=Promise);var f=a("./promise")();f.noConflict=function(){try{Promise===f&&(Promise=u)}catch{}return f},s.exports=f},{"./promise":22}],5:[function(a,s,l){var u=Object.create;if(u){var f=u(null),d=u(null);f[" size"]=d[" size"]=0}s.exports=function(p){var m=a("./util"),v=m.canEvaluate;function g(_){return function(w,O){var E;if(w!=null&&(E=w[O]),typeof E!="function"){var T="Object "+m.classString(w)+" has no method '"+m.toString(O)+"'";throw new p.TypeError(T)}return E}(_,this.pop()).apply(_,this)}function x(_){return _[this]}function b(_){var w=+this;return w<0&&(w=Math.max(0,w+_.length)),_[w]}m.isIdentifier,p.prototype.call=function(_){var w=[].slice.call(arguments,1);return w.push(_),this._then(g,void 0,void 0,w,void 0)},p.prototype.get=function(_){var w;if(typeof _=="number")w=b;else if(v){var O=(void 0)(_);w=O!==null?O:x}else w=x;return this._then(w,void 0,void 0,_,void 0)}}},{"./util":36}],6:[function(a,s,l){s.exports=function(u,f,d,p){var m=a("./util"),v=m.tryCatch,g=m.errorObj,x=u._async;u.prototype.break=u.prototype.cancel=function(){if(!p.cancellation())return this._warn("cancellation is disabled");for(var b=this,_=b;b._isCancellable();){if(!b._cancelBy(_)){_._isFollowing()?_._followee().cancel():_._cancelBranched();break}var w=b._cancellationParent;if(w==null||!w._isCancellable()){b._isFollowing()?b._followee().cancel():b._cancelBranched();break}b._isFollowing()&&b._followee().cancel(),b._setWillBeCancelled(),_=b,b=w}},u.prototype._branchHasCancelled=function(){this._branchesRemainingToCancel--},u.prototype._enoughBranchesHaveCancelled=function(){return this._branchesRemainingToCancel===void 0||this._branchesRemainingToCancel<=0},u.prototype._cancelBy=function(b){return b===this?(this._branchesRemainingToCancel=0,this._invokeOnCancel(),!0):(this._branchHasCancelled(),!!this._enoughBranchesHaveCancelled()&&(this._invokeOnCancel(),!0))},u.prototype._cancelBranched=function(){this._enoughBranchesHaveCancelled()&&this._cancel()},u.prototype._cancel=function(){this._isCancellable()&&(this._setCancelled(),x.invoke(this._cancelPromises,this,void 0))},u.prototype._cancelPromises=function(){this._length()>0&&this._settlePromises()},u.prototype._unsetOnCancel=function(){this._onCancelField=void 0},u.prototype._isCancellable=function(){return this.isPending()&&!this._isCancelled()},u.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()},u.prototype._doInvokeOnCancel=function(b,_){if(m.isArray(b))for(var w=0;w=0)return d[v]}return u.prototype._promiseCreated=function(){},u.prototype._pushContext=function(){},u.prototype._popContext=function(){return null},u._peekContext=u.prototype._peekContext=function(){},p.prototype._pushContext=function(){this._trace!==void 0&&(this._trace._promiseCreated=null,d.push(this._trace))},p.prototype._popContext=function(){if(this._trace!==void 0){var v=d.pop(),g=v._promiseCreated;return v._promiseCreated=null,g}return null},p.CapturedTrace=null,p.create=function(){if(f)return new p},p.deactivateLongStackTraces=function(){},p.activateLongStackTraces=function(){var v=u.prototype._pushContext,g=u.prototype._popContext,x=u._peekContext,b=u.prototype._peekContext,_=u.prototype._promiseCreated;p.deactivateLongStackTraces=function(){u.prototype._pushContext=v,u.prototype._popContext=g,u._peekContext=x,u.prototype._peekContext=b,u.prototype._promiseCreated=_,f=!1},f=!0,u.prototype._pushContext=p.prototype._pushContext,u.prototype._popContext=p.prototype._popContext,u._peekContext=u.prototype._peekContext=m,u.prototype._promiseCreated=function(){var w=this._peekContext();w&&w._promiseCreated==null&&(w._promiseCreated=this)}},p}},{}],9:[function(a,s,l){s.exports=function(u,f){var d,p,m,v=u._getDomain,g=u._async,x=a("./errors").Warning,b=a("./util"),_=b.canAttachTrace,w=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,O=/\((?:timers\.js):\d+:\d+\)/,E=/[\/<\(](.+?):(\d+):(\d+)\)?\s*$/,T=null,k=null,P=!1,D=b.env("BLUEBIRD_DEBUG")!=0,N=!(b.env("BLUEBIRD_WARNINGS")==0||!D&&!b.env("BLUEBIRD_WARNINGS")),F=!(b.env("BLUEBIRD_LONG_STACK_TRACES")==0||!D&&!b.env("BLUEBIRD_LONG_STACK_TRACES")),B=b.env("BLUEBIRD_W_FORGOTTEN_RETURN")!=0&&(N||!!b.env("BLUEBIRD_W_FORGOTTEN_RETURN"));u.prototype.suppressUnhandledRejections=function(){var ce=this._target();ce._bitField=-1048577&ce._bitField|524288},u.prototype._ensurePossibleRejectionHandled=function(){if(!(524288&this._bitField)){this._setRejectionIsUnhandled();var ce=this;setTimeout(function(){ce._notifyUnhandledRejection()},1)}},u.prototype._notifyUnhandledRejectionIsHandled=function(){he("rejectionHandled",d,void 0,this)},u.prototype._setReturnedNonUndefined=function(){this._bitField=268435456|this._bitField},u.prototype._returnedNonUndefined=function(){return(268435456&this._bitField)!=0},u.prototype._notifyUnhandledRejection=function(){if(this._isRejectionUnhandled()){var ce=this._settledValue();this._setUnhandledRejectionIsNotified(),he("unhandledRejection",p,ce,this)}},u.prototype._setUnhandledRejectionIsNotified=function(){this._bitField=262144|this._bitField},u.prototype._unsetUnhandledRejectionIsNotified=function(){this._bitField=-262145&this._bitField},u.prototype._isUnhandledRejectionNotified=function(){return(262144&this._bitField)>0},u.prototype._setRejectionIsUnhandled=function(){this._bitField=1048576|this._bitField},u.prototype._unsetRejectionIsUnhandled=function(){this._bitField=-1048577&this._bitField,this._isUnhandledRejectionNotified()&&(this._unsetUnhandledRejectionIsNotified(),this._notifyUnhandledRejectionIsHandled())},u.prototype._isRejectionUnhandled=function(){return(1048576&this._bitField)>0},u.prototype._warn=function(ce,de,_e){return $(ce,de,_e||this)},u.onPossiblyUnhandledRejection=function(ce){var de=v();p=typeof ce=="function"?de===null?ce:b.domainBind(de,ce):void 0},u.onUnhandledRejectionHandled=function(ce){var de=v();d=typeof ce=="function"?de===null?ce:b.domainBind(de,ce):void 0};var Y=function(){};u.longStackTraces=function(){if(g.haveItemsQueued()&&!Pe.longStackTraces)throw new Error(`cannot enable long stack traces after promises have been created + + See http://goo.gl/MqrFmX +`);if(!Pe.longStackTraces&&ue()){var ce=u.prototype._captureStackTrace,de=u.prototype._attachExtraTrace;Pe.longStackTraces=!0,Y=function(){if(g.haveItemsQueued()&&!Pe.longStackTraces)throw new Error(`cannot enable long stack traces after promises have been created + + See http://goo.gl/MqrFmX +`);u.prototype._captureStackTrace=ce,u.prototype._attachExtraTrace=de,f.deactivateLongStackTraces(),g.enableTrampoline(),Pe.longStackTraces=!1},u.prototype._captureStackTrace=j,u.prototype._attachExtraTrace=A,f.activateLongStackTraces(),g.disableTrampolineIfNecessary()}},u.hasLongStackTraces=function(){return Pe.longStackTraces&&ue()};var H=function(){try{if(typeof CustomEvent=="function"){var ce=new CustomEvent("CustomEvent");return b.global.dispatchEvent(ce),function(de,_e){var be=new CustomEvent(de.toLowerCase(),{detail:_e,cancelable:!0});return!b.global.dispatchEvent(be)}}return typeof Event=="function"?(ce=new Event("CustomEvent"),b.global.dispatchEvent(ce),function(de,_e){var be=new Event(de.toLowerCase(),{cancelable:!0});return be.detail=_e,!b.global.dispatchEvent(be)}):((ce=document.createEvent("CustomEvent")).initCustomEvent("testingtheevent",!1,!0,{}),b.global.dispatchEvent(ce),function(de,_e){var be=document.createEvent("CustomEvent");return be.initCustomEvent(de.toLowerCase(),!1,!0,_e),!b.global.dispatchEvent(be)})}catch{}return function(){return!1}}(),Q=b.isNode?function(){return r.emit.apply(r,arguments)}:b.global?function(ce){var de="on"+ce.toLowerCase(),_e=b.global[de];return!!_e&&(_e.apply(b.global,[].slice.call(arguments,1)),!0)}:function(){return!1};function Z(ce,de){return{promise:de}}var te={promiseCreated:Z,promiseFulfilled:Z,promiseRejected:Z,promiseResolved:Z,promiseCancelled:Z,promiseChained:function(ce,de,_e){return{promise:de,child:_e}},warning:function(ce,de){return{warning:de}},unhandledRejection:function(ce,de,_e){return{reason:de,promise:_e}},rejectionHandled:Z},X=function(ce){var de=!1;try{de=Q.apply(null,arguments)}catch(be){g.throwLater(be),de=!0}var _e=!1;try{_e=H(ce,te[ce].apply(null,arguments))}catch(be){g.throwLater(be),_e=!0}return _e||de};function z(){return!1}function V(ce,de,_e){var be=this;try{ce(de,_e,function(Se){if(typeof Se!="function")throw new TypeError("onCancel must be a function, got: "+b.toString(Se));be._attachCancellationCallback(Se)})}catch(Se){return Se}}function W(ce){if(!this._isCancellable())return this;var de=this._onCancel();de!==void 0?b.isArray(de)?de.push(ce):this._setOnCancel([de,ce]):this._setOnCancel(ce)}function re(){return this._onCancelField}function q(ce){this._onCancelField=ce}function ee(){this._cancellationParent=void 0,this._onCancelField=void 0}function oe(ce,de){if(1&de){this._cancellationParent=ce;var _e=ce._branchesRemainingToCancel;_e===void 0&&(_e=0),ce._branchesRemainingToCancel=_e+1}2&de&&ce._isBound()&&this._setBoundTo(ce._boundTo)}u.config=function(ce){if("longStackTraces"in(ce=Object(ce))&&(ce.longStackTraces?u.longStackTraces():!ce.longStackTraces&&u.hasLongStackTraces()&&Y()),"warnings"in ce){var de=ce.warnings;Pe.warnings=!!de,B=Pe.warnings,b.isObject(de)&&"wForgottenReturn"in de&&(B=!!de.wForgottenReturn)}if("cancellation"in ce&&ce.cancellation&&!Pe.cancellation){if(g.haveItemsQueued())throw new Error("cannot enable cancellation after promises are in use");u.prototype._clearCancellationData=ee,u.prototype._propagateFrom=oe,u.prototype._onCancel=re,u.prototype._setOnCancel=q,u.prototype._attachCancellationCallback=W,u.prototype._execute=V,le=oe,Pe.cancellation=!0}return"monitoring"in ce&&(ce.monitoring&&!Pe.monitoring?(Pe.monitoring=!0,u.prototype._fireEvent=X):!ce.monitoring&&Pe.monitoring&&(Pe.monitoring=!1,u.prototype._fireEvent=z)),u},u.prototype._fireEvent=z,u.prototype._execute=function(ce,de,_e){try{ce(de,_e)}catch(be){return be}},u.prototype._onCancel=function(){},u.prototype._setOnCancel=function(ce){},u.prototype._attachCancellationCallback=function(ce){},u.prototype._captureStackTrace=function(){},u.prototype._attachExtraTrace=function(){},u.prototype._clearCancellationData=function(){},u.prototype._propagateFrom=function(ce,de){};var le=function(ce,de){2&de&&ce._isBound()&&this._setBoundTo(ce._boundTo)};function fe(){var ce=this._boundTo;return ce!==void 0&&ce instanceof u?ce.isFulfilled()?ce.value():void 0:ce}function j(){this._trace=new Ce(this._peekContext())}function A(ce,de){if(_(ce)){var _e=this._trace;if(_e!==void 0&&de&&(_e=_e._parent),_e!==void 0)_e.attachExtraTrace(ce);else if(!ce.__stackCleaned__){var be=K(ce);b.notEnumerableProp(ce,"stack",be.message+` +`+be.stack.join(` +`)),b.notEnumerableProp(ce,"__stackCleaned__",!0)}}}function $(ce,de,_e){if(Pe.warnings){var be,Se=new x(ce);if(de)_e._attachExtraTrace(Se);else if(Pe.longStackTraces&&(be=u._peekContext()))be.attachExtraTrace(Se);else{var Ae=K(Se);Se.stack=Ae.message+` +`+Ae.stack.join(` +`)}X("warning",Se)||se(Se,"",!0)}}function J(ce){for(var de=[],_e=0;_e0?function(be){for(var Se=be.stack.replace(/\s+$/g,"").split(` +`),Ae=0;Ae0&&be.name!="SyntaxError"&&(Se=Se.slice(Ae)),Se}(ce):[" (No stack trace)"],{message:_e,stack:ce.name=="SyntaxError"?de:J(de)}}function se(ce,de,_e){if(typeof console<"u"){var be;if(b.isObject(ce)){var Se=ce.stack;be=de+k(Se,ce)}else be=de+String(ce);typeof m=="function"?m(be,_e):typeof console.log!="function"&&typeof console.log!="object"||console.log(be)}}function he(ce,de,_e,be){var Se=!1;try{typeof de=="function"&&(Se=!0,ce==="rejectionHandled"?de(be):de(_e,be))}catch(Ae){g.throwLater(Ae)}ce==="unhandledRejection"?X(ce,_e,be)||Se||se(_e,"Unhandled rejection "):X(ce,be)}function Ee(ce){var de;if(typeof ce=="function")de="[function "+(ce.name||"anonymous")+"]";else{if(de=ce&&typeof ce.toString=="function"?ce.toString():b.toString(ce),/\[object [a-zA-Z0-9$_]+\]/.test(de))try{de=JSON.stringify(ce)}catch{}de.length===0&&(de="(empty array)")}return"(<"+function(_e){return _e.length<41?_e:_e.substr(0,38)+"..."}(de)+">, no stack trace)"}function ue(){return typeof ke=="function"}var ve=function(){return!1},ge=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;function Oe(ce){var de=ce.match(ge);if(de)return{fileName:de[1],line:parseInt(de[2],10)}}function Ce(ce){this._parent=ce,this._promisesCreated=0;var de=this._length=1+(ce===void 0?0:ce._length);ke(this,Ce),de>32&&this.uncycle()}b.inherits(Ce,Error),f.CapturedTrace=Ce,Ce.prototype.uncycle=function(){var ce=this._length;if(!(ce<2)){for(var de=[],_e={},be=0,Se=this;Se!==void 0;++be)de.push(Se),Se=Se._parent;for(be=(ce=this._length=be)-1;be>=0;--be){var Ae=de[be].stack;_e[Ae]===void 0&&(_e[Ae]=be)}for(be=0;be0&&(de[Le-1]._parent=void 0,de[Le-1]._length=1),de[be]._parent=void 0,de[be]._length=1;var st=be>0?de[be-1]:this;Le=0;--et)de[et]._length=ct,ct++;return}}}},Ce.prototype.attachExtraTrace=function(ce){if(!ce.__stackCleaned__){this.uncycle();for(var de=K(ce),_e=de.message,be=[de.stack],Se=this;Se!==void 0;)be.push(J(Se.stack.split(` +`))),Se=Se._parent;(function(Ae){for(var Le=Ae[0],st=1;st=0;--In)if(ct[In]===fn){nn=In;break}for(In=nn;In>=0;--In){var Or=ct[In];if(Le[et]!==Or)break;Le.pop(),et--}Le=ct}})(be),function(Ae){for(var Le=0;Le=0)return T=/@/,k=de,P=!0,function(Ae){Ae.stack=new Error().stack};try{throw new Error}catch(Ae){be="stack"in Ae}return"stack"in Se||!be||typeof Error.stackTraceLimit!="number"?(k=function(Ae,Le){return typeof Ae=="string"?Ae:typeof Le!="object"&&typeof Le!="function"||Le.name===void 0||Le.message===void 0?Ee(Le):Le.toString()},null):(T=ce,k=de,function(Ae){Error.stackTraceLimit+=6;try{throw new Error}catch(Le){Ae.stack=Le.stack}Error.stackTraceLimit-=6})}();typeof console<"u"&&console.warn!==void 0&&(m=function(ce){console.warn(ce)},b.isNode&&r.stderr.isTTY?m=function(ce,de){var _e=de?"\x1B[33m":"\x1B[31m";console.warn(_e+ce+`\x1B[0m +`)}:b.isNode||typeof new Error().stack!="string"||(m=function(ce,de){console.warn("%c"+ce,de?"color: darkorange":"color: red")}));var Pe={warnings:N,longStackTraces:!1,cancellation:!1,monitoring:!1};return F&&u.longStackTraces(),{longStackTraces:function(){return Pe.longStackTraces},warnings:function(){return Pe.warnings},cancellation:function(){return Pe.cancellation},monitoring:function(){return Pe.monitoring},propagateFromFunction:function(){return le},boundValueFunction:function(){return fe},checkForgottenReturns:function(ce,de,_e,be,Se){if(ce===void 0&&de!==null&&B){if(Se!==void 0&&Se._returnedNonUndefined()||!(65535&be._bitField))return;_e&&(_e+=" ");var Ae="",Le="";if(de._trace){for(var st=de._trace.stack.split(` +`),ct=J(st),et=ct.length-1;et>=0;--et){var fn=ct[et];if(!O.test(fn)){var nn=fn.match(E);nn&&(Ae="at "+nn[1]+":"+nn[2]+":"+nn[3]+" ");break}}if(ct.length>0){var In=ct[0];for(et=0;et0&&(Le=` +`+st[et-1]);break}}}var Or="a promise was created in a "+_e+"handler "+Ae+"but was not returned from it, see http://goo.gl/rRqMUw"+Le;be._warn(Or,!0,de)}},setBounds:function(ce,de){if(ue()){for(var _e,be,Se=ce.stack.split(` +`),Ae=de.stack.split(` +`),Le=-1,st=-1,ct=0;ct=st||(ve=function(fn){if(w.test(fn))return!0;var nn=Oe(fn);return!!(nn&&nn.fileName===_e&&Le<=nn.line&&nn.line<=st)})}},warn:$,deprecated:function(ce,de){var _e=ce+" is deprecated and will be removed in a future version.";return de&&(_e+=" Use "+de+" instead."),$(_e)},CapturedTrace:Ce,fireDomEvent:H,fireGlobalEvent:Q}}},{"./errors":12,"./util":36}],10:[function(a,s,l){s.exports=function(u){function f(){return this.value}function d(){throw this.reason}u.prototype.return=u.prototype.thenReturn=function(p){return p instanceof u&&p.suppressUnhandledRejections(),this._then(f,void 0,void 0,{value:p},void 0)},u.prototype.throw=u.prototype.thenThrow=function(p){return this._then(d,void 0,void 0,{reason:p},void 0)},u.prototype.catchThrow=function(p){if(arguments.length<=1)return this._then(void 0,d,void 0,{reason:p},void 0);var m=arguments[1];return this.caught(p,function(){throw m})},u.prototype.catchReturn=function(p){if(arguments.length<=1)return p instanceof u&&p.suppressUnhandledRejections(),this._then(void 0,f,void 0,{value:p},void 0);var m=arguments[1];return m instanceof u&&m.suppressUnhandledRejections(),this.caught(p,function(){return m})}}},{}],11:[function(a,s,l){s.exports=function(u,f){var d=u.reduce,p=u.all;function m(){return p(this)}u.prototype.each=function(v){return d(this,v,f,0)._then(m,void 0,void 0,this,void 0)},u.prototype.mapSeries=function(v){return d(this,v,f,f)},u.each=function(v,g){return d(v,g,f,0)._then(m,void 0,void 0,v,void 0)},u.mapSeries=function(v,g){return d(v,g,f,f)}}},{}],12:[function(a,s,l){var u,f,d=a("./es5"),p=d.freeze,m=a("./util"),v=m.inherits,g=m.notEnumerableProp;function x(N,F){function B(Y){if(!(this instanceof B))return new B(Y);g(this,"message",typeof Y=="string"?Y:F),g(this,"name",N),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):Error.call(this)}return v(B,Error),B}var b=x("Warning","warning"),_=x("CancellationError","cancellation error"),w=x("TimeoutError","timeout error"),O=x("AggregateError","aggregate error");try{u=TypeError,f=RangeError}catch{u=x("TypeError","type error"),f=x("RangeError","range error")}for(var E="join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(" "),T=0;T1?T.cancelPromise._reject(k):T.cancelPromise._cancel(),T.cancelPromise=null,!0)}function w(){return E.call(this,this.promise._target()._settledValue())}function O(T){if(!_(this,T))return v.e=T,v}function E(T){var k=this.promise,P=this.handler;if(!this.called){this.called=!0;var D=this.isFinallyHandler()?P.call(k._boundValue()):P.call(k._boundValue(),T);if(D===d)return D;if(D!==void 0){k._setReturnedNonUndefined();var N=f(D,k);if(N instanceof u){if(this.cancelPromise!=null){if(N._isCancelled()){var F=new m("late cancellation observer");return k._attachExtraTrace(F),v.e=F,v}N.isPending()&&N._attachCancellationCallback(new b(this))}return N._then(w,O,void 0,this,void 0)}}}return k.isRejected()?(_(this),v.e=T,v):(_(this),T)}return x.prototype.isFinallyHandler=function(){return this.type===0},b.prototype._resultCancelled=function(){_(this.finallyHandler)},u.prototype._passThrough=function(T,k,P,D){return typeof T!="function"?this.then():this._then(P,D,void 0,new x(this,k,T),void 0)},u.prototype.lastly=u.prototype.finally=function(T){return this._passThrough(T,0,E,E)},u.prototype.tap=function(T){return this._passThrough(T,1,E)},u.prototype.tapCatch=function(T){var k=arguments.length;if(k===1)return this._passThrough(T,1,void 0,E);var P,D=new Array(k-1),N=0;for(P=0;P0&&typeof arguments[b]=="function"&&(x=arguments[b]);var _=[].slice.call(arguments);x&&_.pop();var w=new f(_).promise();return x!==void 0?w.spread(x):w}}},{"./util":36}],18:[function(a,s,l){s.exports=function(u,f,d,p,m,v){var g=u._getDomain,x=a("./util"),b=x.tryCatch,_=x.errorObj,w=u._async;function O(T,k,P,D){this.constructor$(T),this._promise._captureStackTrace();var N=g();this._callback=N===null?k:x.domainBind(N,k),this._preservedValues=D===m?new Array(this.length()):null,this._limit=P,this._inFlight=0,this._queue=[],w.invoke(this._asyncInit,this,void 0)}function E(T,k,P,D){if(typeof k!="function")return d("expecting a function but got "+x.classString(k));var N=0;if(P!==void 0){if(typeof P!="object"||P===null)return u.reject(new TypeError("options argument must be an object but it is "+x.classString(P)));if(typeof P.concurrency!="number")return u.reject(new TypeError("'concurrency' must be a number but it is "+x.classString(P.concurrency)));N=P.concurrency}return new O(T,k,N=typeof N=="number"&&isFinite(N)&&N>=1?N:0,D).promise()}x.inherits(O,f),O.prototype._asyncInit=function(){this._init$(void 0,-2)},O.prototype._init=function(){},O.prototype._promiseFulfilled=function(T,k){var P=this._values,D=this.length(),N=this._preservedValues,F=this._limit;if(k<0){if(P[k=-1*k-1]=T,F>=1&&(this._inFlight--,this._drainQueue(),this._isResolved()))return!0}else{if(F>=1&&this._inFlight>=F)return P[k]=T,this._queue.push(k),!1;N!==null&&(N[k]=T);var B=this._promise,Y=this._callback,H=B._boundValue();B._pushContext();var Q=b(Y).call(H,T,k,D),Z=B._popContext();if(v.checkForgottenReturns(Q,Z,N!==null?"Promise.filter":"Promise.map",B),Q===_)return this._reject(Q.e),!0;var te=p(Q,this._promise);if(te instanceof u){var X=(te=te._target())._bitField;if(!(50397184&X))return F>=1&&this._inFlight++,P[k]=te,te._proxy(this,-1*(k+1)),!1;if(!(33554432&X))return 16777216&X?(this._reject(te._reason()),!0):(this._cancel(),!0);Q=te._value()}P[k]=Q}return++this._totalResolved>=D&&(N!==null?this._filter(P,N):this._resolve(P),!0)},O.prototype._drainQueue=function(){for(var T=this._queue,k=this._limit,P=this._values;T.length>0&&this._inFlight1){m.deprecated("calling Promise.try with more than 1 argument");var w=arguments[1],O=arguments[2];b=v.isArray(w)?g(x).apply(O,w):g(x).call(O,w)}else b=g(x)();var E=_._popContext();return m.checkForgottenReturns(b,E,"Promise.try",_),_._resolveFromSyncValue(b),_},u.prototype._resolveFromSyncValue=function(x){x===v.errorObj?this._rejectCallback(x.e,!1):this._resolveCallback(x,!0)}}},{"./util":36}],20:[function(a,s,l){var u=a("./util"),f=u.maybeWrapAsError,d=a("./errors").OperationalError,p=a("./es5"),m=/^(?:name|message|stack|cause)$/;function v(g){var x;if(function(O){return O instanceof Error&&p.getPrototypeOf(O)===Error.prototype}(g)){(x=new d(g)).name=g.name,x.message=g.message,x.stack=g.stack;for(var b=p.keys(g),_=0;_1){var oe,le=new Array(ee-1),fe=0;for(oe=0;oe0&&typeof q!="function"&&typeof ee!="function"){var oe=".then() only accepts functions but was passed: "+g.classString(q);arguments.length>1&&(oe+=", "+g.classString(ee)),this._warn(oe)}return this._then(q,ee,void 0,void 0,void 0)},z.prototype.done=function(q,ee){this._then(q,ee,void 0,void 0,void 0)._setIsFinal()},z.prototype.spread=function(q){return typeof q!="function"?d("expecting a function but got "+g.classString(q)):this.all()._then(q,void 0,void 0,k,void 0)},z.prototype.toJSON=function(){var q={isFulfilled:!1,isRejected:!1,fulfillmentValue:void 0,rejectionReason:void 0};return this.isFulfilled()?(q.fulfillmentValue=this.value(),q.isFulfilled=!0):this.isRejected()&&(q.rejectionReason=this.reason(),q.isRejected=!0),q},z.prototype.all=function(){return arguments.length>0&&this._warn(".all() was passed arguments but it does not take any"),new N(this).promise()},z.prototype.error=function(q){return this.caught(g.originatesFromRejection,q)},z.getNewLibraryCopy=s.exports,z.is=function(q){return q instanceof z},z.fromNode=z.fromCallback=function(q){var ee=new z(T);ee._captureStackTrace();var oe=arguments.length>1&&!!Object(arguments[1]).multiArgs,le=X(q)(Z(ee,oe));return le===te&&ee._rejectCallback(le.e,!0),ee._isFateSealed()||ee._setAsyncGuaranteed(),ee},z.all=function(q){return new N(q).promise()},z.cast=function(q){var ee=D(q);return ee instanceof z||((ee=new z(T))._captureStackTrace(),ee._setFulfilled(),ee._rejectionHandler0=q),ee},z.resolve=z.fulfilled=z.cast,z.reject=z.rejected=function(q){var ee=new z(T);return ee._captureStackTrace(),ee._rejectCallback(q,!0),ee},z.setScheduler=function(q){if(typeof q!="function")throw new O("expecting a function but got "+g.classString(q));return _.setScheduler(q)},z.prototype._then=function(q,ee,oe,le,fe){var j=fe!==void 0,A=j?fe:new z(T),$=this._target(),J=$._bitField;j||(A._propagateFrom(this,3),A._captureStackTrace(),le===void 0&&2097152&this._bitField&&(le=50397184&J?this._boundValue():$===this?void 0:this._boundTo),this._fireEvent("promiseChained",this,A));var K=m();if(50397184&J){var se,he,Ee=$._settlePromiseCtx;33554432&J?(he=$._rejectionHandler0,se=q):16777216&J?(he=$._fulfillmentHandler0,se=ee,$._unsetRejectionIsUnhandled()):(Ee=$._settlePromiseLateCancellationObserver,he=new E("late cancellation observer"),$._attachExtraTrace(he),se=ee),_.invoke(Ee,$,{handler:K===null?se:typeof se=="function"&&g.domainBind(K,se),promise:A,receiver:le,value:he})}else $._addCallbacks(q,ee,A,le,K);return A},z.prototype._length=function(){return 65535&this._bitField},z.prototype._isFateSealed=function(){return(117506048&this._bitField)!=0},z.prototype._isFollowing=function(){return(67108864&this._bitField)==67108864},z.prototype._setLength=function(q){this._bitField=-65536&this._bitField|65535&q},z.prototype._setFulfilled=function(){this._bitField=33554432|this._bitField,this._fireEvent("promiseFulfilled",this)},z.prototype._setRejected=function(){this._bitField=16777216|this._bitField,this._fireEvent("promiseRejected",this)},z.prototype._setFollowing=function(){this._bitField=67108864|this._bitField,this._fireEvent("promiseResolved",this)},z.prototype._setIsFinal=function(){this._bitField=4194304|this._bitField},z.prototype._isFinal=function(){return(4194304&this._bitField)>0},z.prototype._unsetCancelled=function(){this._bitField=-65537&this._bitField},z.prototype._setCancelled=function(){this._bitField=65536|this._bitField,this._fireEvent("promiseCancelled",this)},z.prototype._setWillBeCancelled=function(){this._bitField=8388608|this._bitField},z.prototype._setAsyncGuaranteed=function(){_.hasCustomScheduler()||(this._bitField=134217728|this._bitField)},z.prototype._receiverAt=function(q){var ee=q===0?this._receiver0:this[4*q-4+3];if(ee!==v)return ee===void 0&&this._isBound()?this._boundValue():ee},z.prototype._promiseAt=function(q){return this[4*q-4+2]},z.prototype._fulfillmentHandlerAt=function(q){return this[4*q-4+0]},z.prototype._rejectionHandlerAt=function(q){return this[4*q-4+1]},z.prototype._boundValue=function(){},z.prototype._migrateCallback0=function(q){q._bitField;var ee=q._fulfillmentHandler0,oe=q._rejectionHandler0,le=q._promise0,fe=q._receiverAt(0);fe===void 0&&(fe=v),this._addCallbacks(ee,oe,le,fe,null)},z.prototype._migrateCallbackAt=function(q,ee){var oe=q._fulfillmentHandlerAt(ee),le=q._rejectionHandlerAt(ee),fe=q._promiseAt(ee),j=q._receiverAt(ee);j===void 0&&(j=v),this._addCallbacks(oe,le,fe,j,null)},z.prototype._addCallbacks=function(q,ee,oe,le,fe){var j=this._length();if(j>=65531&&(j=0,this._setLength(0)),j===0)this._promise0=oe,this._receiver0=le,typeof q=="function"&&(this._fulfillmentHandler0=fe===null?q:g.domainBind(fe,q)),typeof ee=="function"&&(this._rejectionHandler0=fe===null?ee:g.domainBind(fe,ee));else{var A=4*j-4;this[A+2]=oe,this[A+3]=le,typeof q=="function"&&(this[A+0]=fe===null?q:g.domainBind(fe,q)),typeof ee=="function"&&(this[A+1]=fe===null?ee:g.domainBind(fe,ee))}return this._setLength(j+1),j},z.prototype._proxy=function(q,ee){this._addCallbacks(void 0,void 0,ee,q,null)},z.prototype._resolveCallback=function(q,ee){if(!(117506048&this._bitField)){if(q===this)return this._rejectCallback(u(),!1);var oe=D(q,this);if(!(oe instanceof z))return this._fulfill(q);ee&&this._propagateFrom(oe,2);var le=oe._target();if(le!==this){var fe=le._bitField;if(50397184&fe)if(33554432&fe)this._fulfill(le._value());else if(16777216&fe)this._reject(le._reason());else{var $=new E("late cancellation observer");le._attachExtraTrace($),this._reject($)}else{var j=this._length();j>0&&le._migrateCallback0(this);for(var A=1;A>>16)){if(q===this){var oe=u();return this._attachExtraTrace(oe),this._reject(oe)}this._setFulfilled(),this._rejectionHandler0=q,(65535&ee)>0&&(134217728&ee?this._settlePromises():_.settlePromises(this))}},z.prototype._reject=function(q){var ee=this._bitField;if(!((117506048&ee)>>>16)){if(this._setRejected(),this._fulfillmentHandler0=q,this._isFinal())return _.fatalError(q,g.isNode);(65535&ee)>0?_.settlePromises(this):this._ensurePossibleRejectionHandled()}},z.prototype._fulfillPromises=function(q,ee){for(var oe=1;oe0){if(16842752&q){var oe=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,oe,q),this._rejectPromises(ee,oe)}else{var le=this._rejectionHandler0;this._settlePromise0(this._fulfillmentHandler0,le,q),this._fulfillPromises(ee,le)}this._setLength(0)}this._clearCancellationData()},z.prototype._settledValue=function(){var q=this._bitField;return 33554432&q?this._rejectionHandler0:16777216&q?this._fulfillmentHandler0:void 0},z.defer=z.pending=function(){return Y.deprecated("Promise.defer","new Promise"),{promise:new z(T),resolve:V,reject:W}},g.notEnumerableProp(z,"_makeSelfResolutionError",u),a("./method")(z,T,D,d,Y),a("./bind")(z,T,D,Y),a("./cancel")(z,N,d,Y),a("./direct_resolve")(z),a("./synchronous_inspection")(z),a("./join")(z,N,D,T,_,m),z.Promise=z,z.version="3.5.1",a("./map.js")(z,N,d,D,T,Y),a("./call_get.js")(z),a("./using.js")(z,d,D,B,T,Y),a("./timers.js")(z,T,Y),a("./generators.js")(z,d,T,D,p,Y),a("./nodeify.js")(z),a("./promisify.js")(z,T),a("./props.js")(z,N,D,d),a("./race.js")(z,T,D,d),a("./reduce.js")(z,N,d,D,T,Y),a("./settle.js")(z,N,Y),a("./some.js")(z,N,d),a("./filter.js")(z,T),a("./each.js")(z,T),a("./any.js")(z),g.toFastProperties(z),g.toFastProperties(z.prototype),re({a:1}),re({b:2}),re({c:3}),re(1),re(function(){}),re(void 0),re(!1),re(new z(T)),Y.setBounds(b.firstLineError,g.lastLineError),z}},{"./any.js":1,"./async":2,"./bind":3,"./call_get.js":5,"./cancel":6,"./catch_filter":7,"./context":8,"./debuggability":9,"./direct_resolve":10,"./each.js":11,"./errors":12,"./es5":13,"./filter.js":14,"./finally":15,"./generators.js":16,"./join":17,"./map.js":18,"./method":19,"./nodeback":20,"./nodeify.js":21,"./promise_array":23,"./promisify.js":24,"./props.js":25,"./race.js":27,"./reduce.js":28,"./settle.js":30,"./some.js":31,"./synchronous_inspection":32,"./thenables":33,"./timers.js":34,"./using.js":35,"./util":36}],23:[function(a,s,l){s.exports=function(u,f,d,p,m){var v=a("./util");function g(x){var b=this._promise=new u(f);x instanceof u&&b._propagateFrom(x,3),b._setOnCancel(this),this._values=x,this._length=0,this._totalResolved=0,this._init(void 0,-2)}return v.isArray,v.inherits(g,m),g.prototype.length=function(){return this._length},g.prototype.promise=function(){return this._promise},g.prototype._init=function x(b,_){var w=d(this._values,this._promise);if(w instanceof u){var O=(w=w._target())._bitField;if(this._values=w,(50397184&O)==0)return this._promise._setAsyncGuaranteed(),w._then(x,this._reject,void 0,this,_);if(!(33554432&O))return 16777216&O?this._reject(w._reason()):this._cancel();w=w._value()}if((w=v.asArray(w))!==null)w.length!==0?this._iterate(w):_===-5?this._resolveEmptyArray():this._resolve(function(T){switch(_){case-2:return[];case-3:return{};case-6:return new Map}}());else{var E=p("expecting an array or an iterable object but got "+v.classString(w)).reason();this._promise._rejectCallback(E,!1)}},g.prototype._iterate=function(x){var b=this.getActualLength(x.length);this._length=b,this._values=this.shouldCopyValues()?new Array(b):this._values;for(var _=this._promise,w=!1,O=null,E=0;E=this._length&&(this._resolve(this._values),!0)},g.prototype._promiseCancelled=function(){return this._cancel(),!0},g.prototype._promiseRejected=function(x){return this._totalResolved++,this._reject(x),!0},g.prototype._resultCancelled=function(){if(!this._isResolved()){var x=this._values;if(this._cancel(),x instanceof u)x.cancel();else for(var b=0;b=this._length){var T;if(this._isMap)T=function(N){for(var F=new m,B=N.length/2|0,Y=0;Y>1},u.prototype.props=function(){return w(this)},u.props=function(O){return w(O)}}},{"./es5":13,"./util":36}],26:[function(a,s,l){function u(f){this._capacity=f,this._length=0,this._front=0}u.prototype._willBeOverCapacity=function(f){return this._capacity"u"){var p=i.setImmediate,m=r.nextTick;u=f.isRecentNode?function(g){p.call(i,g)}:function(g){m.call(r,g)}}else if(typeof d=="function"&&typeof d.resolve=="function"){var v=d.resolve();u=function(g){v.then(g)}}else u=typeof MutationObserver>"u"||typeof window<"u"&&window.navigator&&(window.navigator.standalone||window.cordova)?o!==void 0?function(g){o(g)}:typeof setTimeout<"u"?function(g){setTimeout(g,0)}:function(){throw new Error(`No async scheduler available + + See http://goo.gl/MqrFmX +`)}:function(){var g=document.createElement("div"),x={attributes:!0},b=!1,_=document.createElement("div");return new MutationObserver(function(){g.classList.toggle("foo"),b=!1}).observe(_,x),function(w){var O=new MutationObserver(function(){O.disconnect(),w()});O.observe(g,x),b||(b=!0,_.classList.toggle("foo"))}}();s.exports=u},{"./util":36}],30:[function(a,s,l){s.exports=function(u,f,d){var p=u.PromiseInspection;function m(v){this.constructor$(v)}a("./util").inherits(m,f),m.prototype._promiseResolved=function(v,g){return this._values[v]=g,++this._totalResolved>=this._length&&(this._resolve(this._values),!0)},m.prototype._promiseFulfilled=function(v,g){var x=new p;return x._bitField=33554432,x._settledValueField=v,this._promiseResolved(g,x)},m.prototype._promiseRejected=function(v,g){var x=new p;return x._bitField=16777216,x._settledValueField=v,this._promiseResolved(g,x)},u.settle=function(v){return d.deprecated(".settle()",".reflect()"),new m(v).promise()},u.prototype.settle=function(){return u.settle(this)}}},{"./util":36}],31:[function(a,s,l){s.exports=function(u,f,d){var p=a("./util"),m=a("./errors").RangeError,v=a("./errors").AggregateError,g=p.isArray,x={};function b(w){this.constructor$(w),this._howMany=0,this._unwrap=!1,this._initialized=!1}function _(w,O){if((0|O)!==O||O<0)return d(`expecting a positive integer + + See http://goo.gl/MqrFmX +`);var E=new b(w),T=E.promise();return E.setHowMany(O),E.init(),T}p.inherits(b,f),b.prototype._init=function(){if(this._initialized)if(this._howMany!==0){this._init$(void 0,-5);var w=g(this._values);!this._isResolved()&&w&&this._howMany>this._canPossiblyFulfill()&&this._reject(this._getRangeError(this.length()))}else this._resolve([])},b.prototype.init=function(){this._initialized=!0,this._init()},b.prototype.setUnwrap=function(){this._unwrap=!0},b.prototype.howMany=function(){return this._howMany},b.prototype.setHowMany=function(w){this._howMany=w},b.prototype._promiseFulfilled=function(w){return this._addFulfilled(w),this._fulfilled()===this.howMany()&&(this._values.length=this.howMany(),this.howMany()===1&&this._unwrap?this._resolve(this._values[0]):this._resolve(this._values),!0)},b.prototype._promiseRejected=function(w){return this._addRejected(w),this._checkOutcome()},b.prototype._promiseCancelled=function(){return this._values instanceof u||this._values==null?this._cancel():(this._addRejected(x),this._checkOutcome())},b.prototype._checkOutcome=function(){if(this.howMany()>this._canPossiblyFulfill()){for(var w=new v,O=this.length();O0?this._reject(w):this._cancel(),!0}return!1},b.prototype._fulfilled=function(){return this._totalResolved},b.prototype._rejected=function(){return this._values.length-this.length()},b.prototype._addRejected=function(w){this._values.push(w)},b.prototype._addFulfilled=function(w){this._values[this._totalResolved++]=w},b.prototype._canPossiblyFulfill=function(){return this.length()-this._rejected()},b.prototype._getRangeError=function(w){var O="Input array must contain at least "+this._howMany+" items but contains only "+w+" items";return new m(O)},b.prototype._resolveEmptyArray=function(){this._reject(this._getRangeError(0))},u.some=function(w,O){return _(w,O)},u.prototype.some=function(w){return _(this,w)},u._SomePromiseArray=b}},{"./errors":12,"./util":36}],32:[function(a,s,l){s.exports=function(u){function f(b){b!==void 0?(b=b._target(),this._bitField=b._bitField,this._settledValueField=b._isFateSealed()?b._settledValue():void 0):(this._bitField=0,this._settledValueField=void 0)}f.prototype._settledValue=function(){return this._settledValueField};var d=f.prototype.value=function(){if(!this.isFulfilled())throw new TypeError(`cannot get fulfillment value of a non-fulfilled promise + + See http://goo.gl/MqrFmX +`);return this._settledValue()},p=f.prototype.error=f.prototype.reason=function(){if(!this.isRejected())throw new TypeError(`cannot get rejection reason of a non-rejected promise + + See http://goo.gl/MqrFmX +`);return this._settledValue()},m=f.prototype.isFulfilled=function(){return(33554432&this._bitField)!=0},v=f.prototype.isRejected=function(){return(16777216&this._bitField)!=0},g=f.prototype.isPending=function(){return(50397184&this._bitField)==0},x=f.prototype.isResolved=function(){return(50331648&this._bitField)!=0};f.prototype.isCancelled=function(){return(8454144&this._bitField)!=0},u.prototype.__isCancelled=function(){return(65536&this._bitField)==65536},u.prototype._isCancelled=function(){return this._target().__isCancelled()},u.prototype.isCancelled=function(){return(8454144&this._target()._bitField)!=0},u.prototype.isPending=function(){return g.call(this._target())},u.prototype.isRejected=function(){return v.call(this._target())},u.prototype.isFulfilled=function(){return m.call(this._target())},u.prototype.isResolved=function(){return x.call(this._target())},u.prototype.value=function(){return d.call(this._target())},u.prototype.reason=function(){var b=this._target();return b._unsetRejectionIsUnhandled(),p.call(b)},u.prototype._value=function(){return this._settledValue()},u.prototype._reason=function(){return this._unsetRejectionIsUnhandled(),this._settledValue()},u.PromiseInspection=f}},{}],33:[function(a,s,l){s.exports=function(u,f){var d=a("./util"),p=d.errorObj,m=d.isObject,v={}.hasOwnProperty;return function(g,x){if(m(g)){if(g instanceof u)return g;var b=function(w){try{return function(O){return O.then}(w)}catch(O){return p.e=O,p}}(g);if(b===p){x&&x._pushContext();var _=u.reject(b.e);return x&&x._popContext(),_}if(typeof b=="function")return function(w){try{return v.call(w,"_promise0")}catch{return!1}}(g)?(_=new u(f),g._then(_._fulfill,_._reject,void 0,_,null),_):function(w,O,E){var T=new u(f),k=T;E&&E._pushContext(),T._captureStackTrace(),E&&E._popContext();var P=!0,D=d.tryCatch(O).call(w,function(N){T&&(T._resolveCallback(N),T=null)},function(N){T&&(T._rejectCallback(N,P,!0),T=null)});return P=!1,T&&D===p&&(T._rejectCallback(D.e,!0,!0),T=null),k}(g,b,x)}return g}}},{"./util":36}],34:[function(a,s,l){s.exports=function(u,f,d){var p=a("./util"),m=u.TimeoutError;function v(w){this.handle=w}v.prototype._resultCancelled=function(){clearTimeout(this.handle)};var g=function(w){return x(+this).thenReturn(w)},x=u.delay=function(w,O){var E,T;return O!==void 0?(E=u.resolve(O)._then(g,null,null,w,void 0),d.cancellation()&&O instanceof u&&E._setOnCancel(O)):(E=new u(f),T=setTimeout(function(){E._fulfill()},+w),d.cancellation()&&E._setOnCancel(new v(T)),E._captureStackTrace()),E._setAsyncGuaranteed(),E};function b(w){return clearTimeout(this.handle),w}function _(w){throw clearTimeout(this.handle),w}u.prototype.delay=function(w){return x(w,this)},u.prototype.timeout=function(w,O){var E,T;w=+w;var k=new v(setTimeout(function(){E.isPending()&&function(P,D,N){var F;F=typeof D!="string"?D instanceof Error?D:new m("operation timed out"):new m(D),p.markAsOriginatingFromRejection(F),P._attachExtraTrace(F),P._reject(F),N!=null&&N.cancel()}(E,O,T)},w));return d.cancellation()?(T=this.then(),(E=T._then(b,_,void 0,k,void 0))._setOnCancel(k)):E=this._then(b,_,void 0,k,void 0),E}}},{"./util":36}],35:[function(a,s,l){s.exports=function(u,f,d,p,m,v){var g=a("./util"),x=a("./errors").TypeError,b=a("./util").inherits,_=g.errorObj,w=g.tryCatch,O={};function E(F){setTimeout(function(){throw F},0)}function T(F,B){var Y=0,H=F.length,Q=new u(m);return function Z(){if(Y>=H)return Q._fulfill();var te=function(X){var z=d(X);return z!==X&&typeof X._isDisposable=="function"&&typeof X._getDisposer=="function"&&X._isDisposable()&&z._setDisposable(X._getDisposer()),z}(F[Y++]);if(te instanceof u&&te._isDisposable()){try{te=d(te._getDisposer().tryDispose(B),F.promise)}catch(X){return E(X)}if(te instanceof u)return te._then(Z,E,null,null,null)}Z()}(),Q}function k(F,B,Y){this._data=F,this._promise=B,this._context=Y}function P(F,B,Y){this.constructor$(F,B,Y)}function D(F){return k.isDisposer(F)?(this.resources[this.index]._setDisposable(F),F.promise()):F}function N(F){this.length=F,this.promise=null,this[F-1]=null}k.prototype.data=function(){return this._data},k.prototype.promise=function(){return this._promise},k.prototype.resource=function(){return this.promise().isFulfilled()?this.promise().value():O},k.prototype.tryDispose=function(F){var B=this.resource(),Y=this._context;Y!==void 0&&Y._pushContext();var H=B!==O?this.doDispose(B,F):null;return Y!==void 0&&Y._popContext(),this._promise._unsetDisposable(),this._data=null,H},k.isDisposer=function(F){return F!=null&&typeof F.resource=="function"&&typeof F.tryDispose=="function"},b(P,k),P.prototype.doDispose=function(F,B){return this.data().call(F,F,B)},N.prototype._resultCancelled=function(){for(var F=this.length,B=0;B0},u.prototype._getDisposer=function(){return this._disposer},u.prototype._unsetDisposable=function(){this._bitField=-131073&this._bitField,this._disposer=void 0},u.prototype.disposer=function(F){if(typeof F=="function")return new P(F,this,p());throw new x}}},{"./errors":12,"./util":36}],36:[function(a,s,l){var u,f=a("./es5"),d=typeof navigator>"u",p={e:{}},m=typeof self<"u"?self:typeof window<"u"?window:i!==void 0?i:this!==void 0?this:null;function v(){try{var H=u;return u=null,H.apply(this,arguments)}catch(Q){return p.e=Q,p}}function g(H){return H==null||H===!0||H===!1||typeof H=="string"||typeof H=="number"}function x(H,Q,Z){if(g(H))return H;var te={value:Z,configurable:!0,enumerable:!1,writable:!0};return f.defineProperty(H,Q,te),H}var b=function(){var H=[Array.prototype,Object.prototype,Function.prototype],Q=function(X){for(var z=0;z1,te=Q.length>0&&!(Q.length===1&&Q[0]==="constructor"),X=_.test(H+"")&&f.names(H).length>0;if(Z||te||X)return!0}return!1}catch{return!1}},isIdentifier:function(H){return w.test(H)},inheritedDataKeys:b,getDataPropertyOrDefault:function(H,Q,Z){if(!f.isES5)return{}.hasOwnProperty.call(H,Q)?H[Q]:void 0;var te=Object.getOwnPropertyDescriptor(H,Q);return te!=null?te.get==null&&te.set==null?te.value:Z:void 0},thrower:function(H){throw H},isArray:f.isArray,asArray:D,notEnumerableProp:x,isPrimitive:g,isObject:function(H){return typeof H=="function"||typeof H=="object"&&H!==null},isError:E,canEvaluate:d,errorObj:p,tryCatch:function(H){return u=H,v},inherits:function(H,Q){var Z={}.hasOwnProperty;function te(){for(var X in this.constructor=H,this.constructor$=Q,Q.prototype)Z.call(Q.prototype,X)&&X.charAt(X.length-1)!=="$"&&(this[X+"$"]=Q.prototype[X])}return te.prototype=Q.prototype,H.prototype=new te,H.prototype},withAppended:function(H,Q){var Z,te=H.length,X=new Array(te+1);for(Z=0;Z10||H[0]>0}(),Y.isNode&&Y.toFastProperties(r);try{throw new Error}catch(H){Y.lastLineError=H}s.exports=Y},{"./es5":13}]},{},[4])(4),typeof window<"u"&&window!==null?window.P=window.Promise:typeof self<"u"&&self!==null&&(self.P=self.Promise)}).call(this,n(4),n(0),n(11).setImmediate)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(r,i){if(!i.eol&&r){for(var o=0,a=r.length;o0?(typeof W=="string"||le.objectMode||Object.getPrototypeOf(W)===f.prototype||(W=function(fe){return f.from(fe)}(W)),q?le.endEmitted?V.emit("error",new Error("stream.unshift() after end event")):T(V,le,W,!0):le.ended?V.emit("error",new Error("stream.push() after EOF")):(le.reading=!1,le.decoder&&!re?(W=le.decoder.write(W),le.objectMode||W.length!==0?T(V,le,W,!1):F(V,le)):T(V,le,W,!1))):q||(le.reading=!1)),function(fe){return!fe.ended&&(fe.needReadable||fe.lengthW.highWaterMark&&(W.highWaterMark=function(re){return re>=k?re=k:(re--,re|=re>>>1,re|=re>>>2,re|=re>>>4,re|=re>>>8,re|=re>>>16,re++),re}(V)),V<=W.length?V:W.ended?W.length:(W.needReadable=!0,0))}function D(V){var W=V._readableState;W.needReadable=!1,W.emittedReadable||(v("emitReadable",W.flowing),W.emittedReadable=!0,W.sync?o.nextTick(N,V):N(V))}function N(V){v("emit readable"),V.emit("readable"),Q(V)}function F(V,W){W.readingMore||(W.readingMore=!0,o.nextTick(B,V,W))}function B(V,W){for(var re=W.length;!W.reading&&!W.flowing&&!W.ended&&W.length=W.length?(re=W.decoder?W.buffer.join(""):W.buffer.length===1?W.buffer.head.data:W.buffer.concat(W.length),W.buffer.clear()):re=function(q,ee,oe){var le;return qK.length?K.length:fe;if(se===K.length?J+=K:J+=K.slice(0,fe),(fe-=se)==0){se===K.length?(++$,A.next?j.head=A.next:j.head=j.tail=null):(j.head=A,A.data=K.slice(se));break}++$}return j.length-=$,J}(q,ee):function(fe,j){var A=f.allocUnsafe(fe),$=j.head,J=1;for($.data.copy(A),fe-=$.data.length;$=$.next;){var K=$.data,se=fe>K.length?K.length:fe;if(K.copy(A,A.length-fe,0,se),(fe-=se)==0){se===K.length?(++J,$.next?j.head=$.next:j.head=j.tail=null):(j.head=$,$.data=K.slice(se));break}++J}return j.length-=J,A}(q,ee),le}(V,W.buffer,W.decoder),re);var re}function te(V){var W=V._readableState;if(W.length>0)throw new Error('"endReadable()" called on non-empty stream');W.endEmitted||(W.ended=!0,o.nextTick(X,W,V))}function X(V,W){V.endEmitted||V.length!==0||(V.endEmitted=!0,W.readable=!1,W.emit("end"))}function z(V,W){for(var re=0,q=V.length;re=W.highWaterMark||W.ended))return v("read: emitReadable",W.length,W.ended),W.length===0&&W.ended?te(this):D(this),null;if((V=P(V,W))===0&&W.ended)return W.length===0&&te(this),null;var q,ee=W.needReadable;return v("need readable",ee),(W.length===0||W.length-V0?Z(V,W):null)===null?(W.needReadable=!0,V=0):W.length-=V,W.length===0&&(W.ended||(W.needReadable=!0),re!==V&&W.ended&&te(this)),q!==null&&this.emit("data",q),q},O.prototype._read=function(V){this.emit("error",new Error("_read() is not implemented"))},O.prototype.pipe=function(V,W){var re=this,q=this._readableState;switch(q.pipesCount){case 0:q.pipes=V;break;case 1:q.pipes=[q.pipes,V];break;default:q.pipes.push(V)}q.pipesCount+=1,v("pipe count=%d opts=%j",q.pipesCount,W);var ee=W&&W.end===!1||V===i.stdout||V===i.stderr?se:oe;function oe(){v("onend"),V.end()}q.endEmitted?o.nextTick(ee):re.once("end",ee),V.on("unpipe",function he(Ee,ue){v("onunpipe"),Ee===re&&ue&&ue.hasUnpiped===!1&&(ue.hasUnpiped=!0,v("cleanup"),V.removeListener("close",J),V.removeListener("finish",K),V.removeListener("drain",le),V.removeListener("error",$),V.removeListener("unpipe",he),re.removeListener("end",oe),re.removeListener("end",se),re.removeListener("data",A),fe=!0,!q.awaitDrain||V._writableState&&!V._writableState.needDrain||le())});var le=function(he){return function(){var Ee=he._readableState;v("pipeOnDrain",Ee.awaitDrain),Ee.awaitDrain&&Ee.awaitDrain--,Ee.awaitDrain===0&&l(he,"data")&&(Ee.flowing=!0,Q(he))}}(re);V.on("drain",le);var fe=!1,j=!1;function A(he){v("ondata"),j=!1,V.write(he)!==!1||j||((q.pipesCount===1&&q.pipes===V||q.pipesCount>1&&z(q.pipes,V)!==-1)&&!fe&&(v("false write response, pause",re._readableState.awaitDrain),re._readableState.awaitDrain++,j=!0),re.pause())}function $(he){v("onerror",he),se(),V.removeListener("error",$),l(V,"error")===0&&V.emit("error",he)}function J(){V.removeListener("finish",K),se()}function K(){v("onfinish"),V.removeListener("close",J),se()}function se(){v("unpipe"),re.unpipe(V)}return re.on("data",A),function(he,Ee,ue){if(typeof he.prependListener=="function")return he.prependListener(Ee,ue);he._events&&he._events[Ee]?s(he._events[Ee])?he._events[Ee].unshift(ue):he._events[Ee]=[ue,he._events[Ee]]:he.on(Ee,ue)}(V,"error",$),V.once("close",J),V.once("finish",K),V.emit("pipe",re),q.flowing||(v("pipe resume"),re.resume()),V},O.prototype.unpipe=function(V){var W=this._readableState,re={hasUnpiped:!1};if(W.pipesCount===0)return this;if(W.pipesCount===1)return V&&V!==W.pipes?this:(V||(V=W.pipes),W.pipes=null,W.pipesCount=0,W.flowing=!1,V&&V.emit("unpipe",this,re),this);if(!V){var q=W.pipes,ee=W.pipesCount;W.pipes=null,W.pipesCount=0,W.flowing=!1;for(var oe=0;oe>5==6?2:v>>4==14?3:v>>3==30?4:v>>6==2?-1:-2}function s(v){var g=this.lastTotal-this.lastNeed,x=function(b,_,w){if((192&_[0])!=128)return b.lastNeed=0,"�";if(b.lastNeed>1&&_.length>1){if((192&_[1])!=128)return b.lastNeed=1,"�";if(b.lastNeed>2&&_.length>2&&(192&_[2])!=128)return b.lastNeed=2,"�"}}(this,v);return x!==void 0?x:this.lastNeed<=v.length?(v.copy(this.lastChar,g,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(v.copy(this.lastChar,g,0,v.length),void(this.lastNeed-=v.length))}function l(v,g){if((v.length-g)%2==0){var x=v.toString("utf16le",g);if(x){var b=x.charCodeAt(x.length-1);if(b>=55296&&b<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=v[v.length-2],this.lastChar[1]=v[v.length-1],x.slice(0,-1)}return x}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=v[v.length-1],v.toString("utf16le",g,v.length-1)}function u(v){var g=v&&v.length?this.write(v):"";if(this.lastNeed){var x=this.lastTotal-this.lastNeed;return g+this.lastChar.toString("utf16le",0,x)}return g}function f(v,g){var x=(v.length-g)%3;return x===0?v.toString("base64",g):(this.lastNeed=3-x,this.lastTotal=3,x===1?this.lastChar[0]=v[v.length-1]:(this.lastChar[0]=v[v.length-2],this.lastChar[1]=v[v.length-1]),v.toString("base64",g,v.length-x))}function d(v){var g=v&&v.length?this.write(v):"";return this.lastNeed?g+this.lastChar.toString("base64",0,3-this.lastNeed):g}function p(v){return v.toString(this.encoding)}function m(v){return v&&v.length?this.write(v):""}t.StringDecoder=o,o.prototype.write=function(v){if(v.length===0)return"";var g,x;if(this.lastNeed){if((g=this.fillLast(v))===void 0)return"";x=this.lastNeed,this.lastNeed=0}else x=0;return x=0?(T>0&&(_.lastNeed=T-1),T):--E=0?(T>0&&(_.lastNeed=T-2),T):--E=0?(T>0&&(T===2?T=0:_.lastNeed=T-3),T):0}(this,v,g);if(!this.lastNeed)return v.toString("utf8",g);this.lastTotal=x;var b=v.length-(x-this.lastNeed);return v.copy(this.lastChar,0,b),v.toString("utf8",g,b)},o.prototype.fillLast=function(v){if(this.lastNeed<=v.length)return v.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);v.copy(this.lastChar,this.lastTotal-this.lastNeed,0,v.length),this.lastNeed-=v.length}},function(e,t,n){e.exports=o;var r=n(1),i=n(5);function o(l){if(!(this instanceof o))return new o(l);r.call(this,l),this._transformState={afterTransform:(function(u,f){var d=this._transformState;d.transforming=!1;var p=d.writecb;if(!p)return this.emit("error",new Error("write callback called multiple times"));d.writechunk=null,d.writecb=null,f!=null&&this.push(f),p(u);var m=this._readableState;m.reading=!1,(m.needReadable||m.length-1&&a.push(i[s]);return a},t.trimLeft=String.prototype.trimLeft?function(i){return i.trimLeft()}:function(i){return i.replace(/^\s+/,"")},t.trimRight=String.prototype.trimRight?function(i){return i.trimRight()}:function(i){return i.replace(/\s+$/,"")}}).call(this,n(3).Buffer)},function(e,t,n){var r=this&&this.__extends||function(){var o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,s){a.__proto__=s}||function(a,s){for(var l in s)s.hasOwnProperty(l)&&(a[l]=s[l])};return function(a,s){function l(){this.constructor=a}o(a,s),a.prototype=s===null?Object.create(s):(l.prototype=s.prototype,new l)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=function(o){function a(s,l,u){var f=o.call(this,"Error: "+s+". JSON Line number: "+l+(u?" near: "+u:""))||this;return f.err=s,f.line=l,f.extra=u,f.name="CSV Parse Error",f}return r(a,o),a.column_mismatched=function(s,l){return new a("column_mismatched",s,l)},a.unclosed_quote=function(s,l){return new a("unclosed_quote",s,l)},a.fromJSON=function(s){return new a(s.err,s.line,s.extra)},a.prototype.toJSON=function(){return{err:this.err,line:this.line,extra:this.extra}},a}(Error);t.default=i},function(e,t,n){var r=n(18),i=n(68),o=n(69),a=r?r.toStringTag:void 0;e.exports=function(s){return s==null?s===void 0?"[object Undefined]":"[object Null]":a&&a in Object(s)?i(s):o(s)}},function(e,t){e.exports=function(n,r){return n===r||n!=n&&r!=r}},function(e,t,n){e.exports=n(33)},function(e,t,n){var r=n(34),i=function(o,a){return new r.Converter(o,a)};i.csv=i,i.Converter=r.Converter,e.exports=i},function(e,t,n){(function(r){var i=this&&this.__extends||function(){var m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,g){v.__proto__=g}||function(v,g){for(var x in g)g.hasOwnProperty(x)&&(v[x]=g[x])};return function(v,g){function x(){this.constructor=v}m(v,g),v.prototype=g===null?Object.create(g):(x.prototype=g.prototype,new x)}}(),o=this&&this.__importDefault||function(m){return m&&m.__esModule?m:{default:m}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(36),s=n(50),l=n(51),u=o(n(15)),f=n(52),d=n(105),p=function(m){function v(g,x){x===void 0&&(x={});var b=m.call(this,x)||this;return b.options=x,b.params=s.mergeParams(g),b.runtime=l.initParseRuntime(b),b.result=new d.Result(b),b.processor=new f.ProcessorLocal(b),b.once("error",function(_){r(function(){b.result.processError(_),b.emit("done",_)})}),b.once("done",function(){b.processor.destroy()}),b}return i(v,m),v.prototype.preRawData=function(g){return this.runtime.preRawDataHook=g,this},v.prototype.preFileLine=function(g){return this.runtime.preFileLineHook=g,this},v.prototype.subscribe=function(g,x,b){return this.parseRuntime.subscribe={onNext:g,onError:x,onCompleted:b},this},v.prototype.fromFile=function(g,x){var b=this,_=n(!function(){var w=new Error("Cannot find module 'fs'");throw w.code="MODULE_NOT_FOUND",w}());return _.exists(g,function(w){w?_.createReadStream(g,x).pipe(b):b.emit("error",new Error("File does not exist. Check to make sure the file path to your csv is correct."))}),this},v.prototype.fromStream=function(g){return g.pipe(this),this},v.prototype.fromString=function(g){g.toString();var x=new a.Readable,b=0;return x._read=function(_){if(b>=g.length)this.push(null);else{var w=g.substr(b,_);this.push(w),b+=_}},this.fromStream(x)},v.prototype.then=function(g,x){var b=this;return new u.default(function(_,w){b.parseRuntime.then={onfulfilled:function(O){_(g?g(O):O)},onrejected:function(O){x?_(x(O)):w(O)}}})},Object.defineProperty(v.prototype,"parseParam",{get:function(){return this.params},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"parseRuntime",{get:function(){return this.runtime},enumerable:!0,configurable:!0}),v.prototype._transform=function(g,x,b){var _=this;this.processor.process(g).then(function(w){if(w.length>0)return _.runtime.started=!0,_.result.processResult(w)}).then(function(){_.emit("drained"),b()},function(w){_.runtime.hasError=!0,_.runtime.error=w,_.emit("error",w),b()})},v.prototype._flush=function(g){var x=this;this.processor.flush().then(function(b){if(b.length>0)return x.result.processResult(b)}).then(function(){x.processEnd(g)},function(b){x.emit("error",b),g()})},v.prototype.processEnd=function(g){this.result.endProcess(),this.emit("done"),g()},Object.defineProperty(v.prototype,"parsedLineNumber",{get:function(){return this.runtime.parsedLineNumber},enumerable:!0,configurable:!0}),v}(a.Transform);t.Converter=p}).call(this,n(11).setImmediate)},function(e,t,n){(function(r,i){(function(o,a){if(!o.setImmediate){var s,l=1,u={},f=!1,d=o.document,p=Object.getPrototypeOf&&Object.getPrototypeOf(o);p=p&&p.setTimeout?p:o,{}.toString.call(o.process)==="[object process]"?s=function(g){i.nextTick(function(){v(g)})}:function(){if(o.postMessage&&!o.importScripts){var g=!0,x=o.onmessage;return o.onmessage=function(){g=!1},o.postMessage("","*"),o.onmessage=x,g}}()?function(){var g="setImmediate$"+Math.random()+"$",x=function(b){b.source===o&&typeof b.data=="string"&&b.data.indexOf(g)===0&&v(+b.data.slice(g.length))};o.addEventListener?o.addEventListener("message",x,!1):o.attachEvent("onmessage",x),s=function(b){o.postMessage(g+b,"*")}}():o.MessageChannel?function(){var g=new MessageChannel;g.port1.onmessage=function(x){v(x.data)},s=function(x){g.port2.postMessage(x)}}():d&&"onreadystatechange"in d.createElement("script")?function(){var g=d.documentElement;s=function(x){var b=d.createElement("script");b.onreadystatechange=function(){v(x),b.onreadystatechange=null,g.removeChild(b),b=null},g.appendChild(b)}}():s=function(g){setTimeout(v,0,g)},p.setImmediate=function(g){typeof g!="function"&&(g=new Function(""+g));for(var x=new Array(arguments.length-1),b=0;b"u"?r===void 0?this:r:self)}).call(this,n(0),n(4))},function(e,t,n){e.exports=i;var r=n(12).EventEmitter;function i(){r.call(this)}n(2)(i,r),i.Readable=n(13),i.Writable=n(46),i.Duplex=n(47),i.Transform=n(48),i.PassThrough=n(49),i.Stream=i,i.prototype.pipe=function(o,a){var s=this;function l(g){o.writable&&o.write(g)===!1&&s.pause&&s.pause()}function u(){s.readable&&s.resume&&s.resume()}s.on("data",l),o.on("drain",u),o._isStdio||a&&a.end===!1||(s.on("end",d),s.on("close",p));var f=!1;function d(){f||(f=!0,o.end())}function p(){f||(f=!0,typeof o.destroy=="function"&&o.destroy())}function m(g){if(v(),r.listenerCount(this,"error")===0)throw g}function v(){s.removeListener("data",l),o.removeListener("drain",u),s.removeListener("end",d),s.removeListener("close",p),s.removeListener("error",m),o.removeListener("error",m),s.removeListener("end",v),s.removeListener("close",v),o.removeListener("close",v)}return s.on("error",m),o.on("error",m),s.on("end",v),s.on("close",v),o.on("close",v),o.emit("pipe",s),o}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(r){return n.call(r)=="[object Array]"}},function(e,t,n){t.byteLength=function(p){var m=u(p),v=m[0],g=m[1];return 3*(v+g)/4-g},t.toByteArray=function(p){for(var m,v=u(p),g=v[0],x=v[1],b=new o(3*(g+x)/4-x),_=0,w=x>0?g-4:g,O=0;O>16&255,b[_++]=m>>8&255,b[_++]=255&m;return x===2&&(m=i[p.charCodeAt(O)]<<2|i[p.charCodeAt(O+1)]>>4,b[_++]=255&m),x===1&&(m=i[p.charCodeAt(O)]<<10|i[p.charCodeAt(O+1)]<<4|i[p.charCodeAt(O+2)]>>2,b[_++]=m>>8&255,b[_++]=255&m),b},t.fromByteArray=function(p){for(var m,v=p.length,g=v%3,x=[],b=0,_=v-g;b<_;b+=16383)x.push(d(p,b,b+16383>_?_:b+16383));return g===1?(m=p[v-1],x.push(r[m>>2]+r[m<<4&63]+"==")):g===2&&(m=(p[v-2]<<8)+p[v-1],x.push(r[m>>10]+r[m>>4&63]+r[m<<2&63]+"=")),x.join("")};for(var r=[],i=[],o=typeof Uint8Array<"u"?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=a.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var v=p.indexOf("=");return v===-1&&(v=m),[v,v===m?0:4-v%4]}function f(p){return r[p>>18&63]+r[p>>12&63]+r[p>>6&63]+r[63&p]}function d(p,m,v){for(var g,x=[],b=m;b>1,p=-7,m=i?a-1:0,v=i?-1:1,g=n[r+m];for(m+=v,s=g&(1<<-p)-1,g>>=-p,p+=u;p>0;s=256*s+n[r+m],m+=v,p-=8);for(l=s&(1<<-p)-1,s>>=-p,p+=o;p>0;l=256*l+n[r+m],m+=v,p-=8);if(s===0)s=1-d;else{if(s===f)return l?NaN:1/0*(g?-1:1);l+=Math.pow(2,o),s-=d}return(g?-1:1)*l*Math.pow(2,s-o)},t.write=function(n,r,i,o,a,s){var l,u,f,d=8*s-a-1,p=(1<>1,v=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,g=o?0:s-1,x=o?1:-1,b=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(u=isNaN(r)?1:0,l=p):(l=Math.floor(Math.log(r)/Math.LN2),r*(f=Math.pow(2,-l))<1&&(l--,f*=2),(r+=l+m>=1?v/f:v*Math.pow(2,1-m))*f>=2&&(l++,f/=2),l+m>=p?(u=0,l=p):l+m>=1?(u=(r*f-1)*Math.pow(2,a),l+=m):(u=r*Math.pow(2,m-1)*Math.pow(2,a),l=0));a>=8;n[i+g]=255&u,g+=x,u/=256,a-=8);for(l=l<0;n[i+g]=255&l,g+=x,l/=256,d-=8);n[i+g-x]|=128*b}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(r){return n.call(r)=="[object Array]"}},function(e,t){},function(e,t,n){var r=n(7).Buffer,i=n(43);function o(a,s,l){a.copy(s,l)}e.exports=function(){function a(){(function(s,l){if(!(s instanceof l))throw new TypeError("Cannot call a class as a function")})(this,a),this.head=null,this.tail=null,this.length=0}return a.prototype.push=function(s){var l={data:s,next:null};this.length>0?this.tail.next=l:this.head=l,this.tail=l,++this.length},a.prototype.unshift=function(s){var l={data:s,next:this.head};this.length===0&&(this.tail=l),this.head=l,++this.length},a.prototype.shift=function(){if(this.length!==0){var s=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,s}},a.prototype.clear=function(){this.head=this.tail=null,this.length=0},a.prototype.join=function(s){if(this.length===0)return"";for(var l=this.head,u=""+l.data;l=l.next;)u+=s+l.data;return u},a.prototype.concat=function(s){if(this.length===0)return r.alloc(0);if(this.length===1)return this.head.data;for(var l=r.allocUnsafe(s>>>0),u=this.head,f=0;u;)o(u.data,l,f),f+=u.data.length,u=u.next;return l},a}(),i&&i.inspect&&i.inspect.custom&&(e.exports.prototype[i.inspect.custom]=function(){var a=i.inspect({length:this.length});return this.constructor.name+" "+a})},function(e,t){},function(e,t,n){(function(r){function i(o){try{if(!r.localStorage)return!1}catch{return!1}var a=r.localStorage[o];return a!=null&&String(a).toLowerCase()==="true"}e.exports=function(o,a){if(i("noDeprecation"))return o;var s=!1;return function(){if(!s){if(i("throwDeprecation"))throw new Error(a);i("traceDeprecation")?console.trace(a):console.warn(a),s=!0}return o.apply(this,arguments)}}}).call(this,n(0))},function(e,t,n){e.exports=o;var r=n(27),i=n(5);function o(a){if(!(this instanceof o))return new o(a);r.call(this,a)}i.inherits=n(2),i.inherits(o,r),o.prototype._transform=function(a,s,l){l(null,a)}},function(e,t,n){e.exports=n(14)},function(e,t,n){e.exports=n(1)},function(e,t,n){e.exports=n(13).Transform},function(e,t,n){e.exports=n(13).PassThrough},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.mergeParams=function(r){var i={delimiter:",",ignoreColumns:void 0,includeColumns:void 0,quote:'"',trim:!0,checkType:!1,ignoreEmpty:!1,noheader:!1,headers:void 0,flatKeys:!1,maxRowLength:0,checkColumn:!1,escape:'"',colParser:{},eol:void 0,alwaysSplitAtEOL:!1,output:"json",nullObject:!1,downstreamFormat:"line",needEmitAll:!0};for(var o in r||(r={}),r)r.hasOwnProperty(o)&&(Array.isArray(r[o])?i[o]=[].concat(r[o]):i[o]=r[o]);return i}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.initParseRuntime=function(r){var i=r.parseParam,o={needProcessIgnoreColumn:!1,needProcessIncludeColumn:!1,selectedColumns:void 0,ended:!1,hasError:!1,error:void 0,delimiter:r.parseParam.delimiter,eol:r.parseParam.eol,columnConv:[],headerType:[],headerTitle:[],headerFlag:[],headers:void 0,started:!1,parsedLineNumber:0,columnValueSetter:[]};return i.ignoreColumns&&(o.needProcessIgnoreColumn=!0),i.includeColumns&&(o.needProcessIncludeColumn=!0),o}},function(e,t,n){(function(r){var i=this&&this.__extends||function(){var x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,_){b.__proto__=_}||function(b,_){for(var w in _)_.hasOwnProperty(w)&&(b[w]=_[w])};return function(b,_){function w(){this.constructor=b}x(b,_),b.prototype=_===null?Object.create(_):(w.prototype=_.prototype,new w)}}(),o=this&&this.__importDefault||function(x){return x&&x.__esModule?x:{default:x}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(53),s=o(n(15)),l=n(54),u=o(n(16)),f=n(57),d=n(28),p=n(58),m=o(n(59)),v=o(n(29)),g=function(x){function b(){var _=x!==null&&x.apply(this,arguments)||this;return _.rowSplit=new p.RowSplit(_.converter),_.eolEmitted=!1,_._needEmitEol=void 0,_.headEmitted=!1,_._needEmitHead=void 0,_}return i(b,x),b.prototype.flush=function(){var _=this;if(this.runtime.csvLineBuffer&&this.runtime.csvLineBuffer.length>0){var w=this.runtime.csvLineBuffer;return this.runtime.csvLineBuffer=void 0,this.process(w,!0).then(function(O){return _.runtime.csvLineBuffer&&_.runtime.csvLineBuffer.length>0?s.default.reject(v.default.unclosed_quote(_.runtime.parsedLineNumber,_.runtime.csvLineBuffer.toString())):s.default.resolve(O)})}return s.default.resolve([])},b.prototype.destroy=function(){return s.default.resolve()},Object.defineProperty(b.prototype,"needEmitEol",{get:function(){return this._needEmitEol===void 0&&(this._needEmitEol=this.converter.listeners("eol").length>0),this._needEmitEol},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"needEmitHead",{get:function(){return this._needEmitHead===void 0&&(this._needEmitHead=this.converter.listeners("header").length>0),this._needEmitHead},enumerable:!0,configurable:!0}),b.prototype.process=function(_,w){var O,E=this;return w===void 0&&(w=!1),O=w?_.toString():l.prepareData(_,this.converter.parseRuntime),s.default.resolve().then(function(){return E.runtime.preRawDataHook?E.runtime.preRawDataHook(O):O}).then(function(T){return T&&T.length>0?E.processCSV(T,w):s.default.resolve([])})},b.prototype.processCSV=function(_,w){var O=this,E=this.params,T=this.runtime;T.eol||u.default(_,T),this.needEmitEol&&!this.eolEmitted&&T.eol&&(this.converter.emit("eol",T.eol),this.eolEmitted=!0),E.ignoreEmpty&&!T.started&&(_=d.trimLeft(_));var k=f.stringToLines(_,T);return w?(k.lines.push(k.partial),k.partial=""):this.prependLeftBuf(d.bufFromString(k.partial)),k.lines.length>0?(T.preFileLineHook?this.runPreLineHook(k.lines):s.default.resolve(k.lines)).then(function(P){return T.started||O.runtime.headers?O.processCSVBody(P):O.processDataWithHead(P)}):s.default.resolve([])},b.prototype.processDataWithHead=function(_){if(this.params.noheader)this.params.headers?this.runtime.headers=this.params.headers:this.runtime.headers=[];else{for(var w="",O=[];_.length;){var E=w+_.shift(),T=this.rowSplit.parse(E);if(T.closed){O=T.cells,w="";break}w=E+u.default(E,this.runtime)}if(this.prependLeftBuf(d.bufFromString(w)),O.length===0)return[];this.params.headers?this.runtime.headers=this.params.headers:this.runtime.headers=O}return(this.runtime.needProcessIgnoreColumn||this.runtime.needProcessIncludeColumn)&&this.filterHeader(),this.needEmitHead&&!this.headEmitted&&(this.converter.emit("header",this.runtime.headers),this.headEmitted=!0),this.processCSVBody(_)},b.prototype.filterHeader=function(){if(this.runtime.selectedColumns=[],this.runtime.headers){for(var _=this.runtime.headers,w=0;w<_.length;w++)if(this.params.ignoreColumns)if(this.params.ignoreColumns.test(_[w])){if(!this.params.includeColumns||!this.params.includeColumns.test(_[w]))continue;this.runtime.selectedColumns.push(w)}else this.runtime.selectedColumns.push(w);else this.params.includeColumns?this.params.includeColumns.test(_[w])&&this.runtime.selectedColumns.push(w):this.runtime.selectedColumns.push(w);this.runtime.headers=d.filterArray(this.runtime.headers,this.runtime.selectedColumns)}},b.prototype.processCSVBody=function(_){if(this.params.output==="line")return _;var w=this.rowSplit.parseMultiLines(_);return this.prependLeftBuf(d.bufFromString(w.partial)),this.params.output==="csv"?w.rowsCells:m.default(w.rowsCells,this.converter)},b.prototype.prependLeftBuf=function(_){_&&(this.runtime.csvLineBuffer?this.runtime.csvLineBuffer=r.concat([_,this.runtime.csvLineBuffer]):this.runtime.csvLineBuffer=_)},b.prototype.runPreLineHook=function(_){var w=this;return new s.default(function(O,E){(function T(k,P,D,N){if(D>=k.length)N();else if(P.preFileLineHook){var F=k[D],B=P.preFileLineHook(F,P.parsedLineNumber+D);if(D++,B&&B.then)B.then(function(Y){k[D-1]=Y,T(k,P,D,N)});else{for(k[D-1]=B;D0?r.concat([d.csvLineBuffer,f]):f}(a,s);s.csvLineBuffer=void 0;var u=function(f,d){var p=f.length-1;if(128&f[p]){for(;(192&f[p])==128;)p--;p--}return p!=f.length-1?(d.csvLineBuffer=f.slice(p+1),f.slice(0,p+1)):f}(l,s).toString("utf8");return s.started===!1?o.default(u):u}}).call(this,n(3).Buffer)},function(e,t,n){(function(r){var i=n(56);e.exports=function(o){return typeof o=="string"&&o.charCodeAt(0)===65279?o.slice(1):r.isBuffer(o)&&i(o)&&o[0]===239&&o[1]===187&&o[2]===191?o.slice(3):o}}).call(this,n(3).Buffer)},function(e,t){e.exports=function(n){for(var r=0;r0),this._needEmitDelimiter},enumerable:!0,configurable:!0}),l.prototype.parse=function(u){if(u.length===0||this.conv.parseParam.ignoreEmpty&&u.trim().length===0)return{cells:[],closed:!0};var f=this.quote,d=this.trim;this.escape,(this.conv.parseRuntime.delimiter instanceof Array||this.conv.parseRuntime.delimiter.toLowerCase()==="auto")&&(this.conv.parseRuntime.delimiter=this.getDelimiter(u)),this.needEmitDelimiter&&!this.delimiterEmitted&&(this.conv.emit("delimiter",this.conv.parseRuntime.delimiter),this.delimiterEmitted=!0);var p=this.conv.parseRuntime.delimiter,m=u.split(p);if(f==="off"){if(d)for(var v=0;vd&&(p=m,d=v)}),p},l.prototype.isQuoteOpen=function(u){var f=this.quote,d=this.escape;return u[0]===f&&(u[1]!==f||u[1]===d&&(u[2]===f||u.length===2))},l.prototype.isQuoteClose=function(u){var f=this.quote,d=this.escape;this.conv.parseParam.trim&&(u=o.trimRight(u));for(var p=0,m=u.length-1;u[m]===f||u[m]===d;)m--,p++;return p%2!=0},l.prototype.escapeQuote=function(u){var f="es|"+this.quote+"|"+this.escape;this.cachedRegExp[f]===void 0&&(this.cachedRegExp[f]=new RegExp("\\"+this.escape+"\\"+this.quote,"g"));var d=this.cachedRegExp[f];return u.replace(d,this.quote)},l.prototype.parseMultiLines=function(u){for(var f=[],d="";u.length;){var p=d+u.shift(),m=this.parse(p);m.cells.length===0&&this.conv.parseParam.ignoreEmpty||(m.closed||this.conv.parseParam.alwaysSplitAtEOL?(this.conv.parseRuntime.selectedColumns?f.push(o.filterArray(m.cells,this.conv.parseRuntime.selectedColumns)):f.push(m.cells),d=""):d=p+(i.default(p,this.conv.parseRuntime)||` +`))}return{rowsCells:f,partial:d}},l}();t.RowSplit=s},function(e,t,n){var r=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(29)),o=r(n(60)),a=/^[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?$/;function s(b,_,w){if(_.parseParam.checkColumn&&_.parseRuntime.headers&&b.length!==_.parseRuntime.headers.length)throw i.default.column_mismatched(_.parseRuntime.parsedLineNumber+w);return function(O,E,T){for(var k=!1,P={},D=0,N=O.length;D-1){for(var T=_.split("."),k=!0;T.length>0;)if(T.shift().length===0){k=!1;break}!k||O.parseParam.colParser[_]&&O.parseParam.colParser[_].flat?O.parseRuntime.columnValueSetter[E]=d:O.parseRuntime.columnValueSetter[E]=p}else O.parseRuntime.columnValueSetter[E]=d;O.parseParam.nullObject===!0&&w==="null"&&(w=null),O.parseRuntime.columnValueSetter[E](b,_,w)}function d(b,_,w){b[_]=w}function p(b,_,w){o.default(b,_,w)}function m(b,_,w,O){return O.parseRuntime.headerType[w]?O.parseRuntime.headerType[w]:_.indexOf("number#!")>-1?O.parseRuntime.headerType[w]=v:_.indexOf("string#!")>-1?O.parseRuntime.headerType[w]=g:O.parseParam.checkType?O.parseRuntime.headerType[w]=x:O.parseRuntime.headerType[w]=g}function v(b){var _=parseFloat(b);return isNaN(_)?b:_}function g(b){return b.toString()}function x(b){var _=b.trim();return _===""?g(b):a.test(_)?v(b):_.length===5&&_.toLowerCase()==="false"||_.length===4&&_.toLowerCase()==="true"?function(w){var O=w.trim();return O.length!==5||O.toLowerCase()!=="false"}(b):_[0]==="{"&&_[_.length-1]==="}"||_[0]==="["&&_[_.length-1]==="]"?function(w){try{return JSON.parse(w)}catch{return w}}(b):g(b)}},function(e,t,n){var r=n(61);e.exports=function(i,o,a){return i==null?i:r(i,o,a)}},function(e,t,n){var r=n(62),i=n(74),o=n(103),a=n(20),s=n(104);e.exports=function(l,u,f,d){if(!a(l))return l;for(var p=-1,m=(u=i(u,l)).length,v=m-1,g=l;g!=null&&++p-1}},function(e,t,n){var r=n(9);e.exports=function(i,o){var a=this.__data__,s=r(a,i);return s<0?(++this.size,a.push([i,o])):a[s][1]=o,this}},function(e,t,n){var r=n(17)(n(19),"Map");e.exports=r},function(e,t,n){var r=n(10);e.exports=function(i){var o=r(this,i).delete(i);return this.size-=o?1:0,o}},function(e,t){e.exports=function(n){var r=typeof n;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?n!=="__proto__":n===null}},function(e,t,n){var r=n(10);e.exports=function(i){return r(this,i).get(i)}},function(e,t,n){var r=n(10);e.exports=function(i){return r(this,i).has(i)}},function(e,t,n){var r=n(10);e.exports=function(i,o){var a=r(this,i),s=a.size;return a.set(i,o),this.size+=a.size==s?0:1,this}},function(e,t,n){var r=n(101);e.exports=function(i){return i==null?"":r(i)}},function(e,t,n){var r=n(18),i=n(102),o=n(21),a=n(22),s=r?r.prototype:void 0,l=s?s.toString:void 0;e.exports=function u(f){if(typeof f=="string")return f;if(o(f))return i(f,u)+"";if(a(f))return l?l.call(f):"";var d=f+"";return d=="0"&&1/f==-1/0?"-0":d}},function(e,t){e.exports=function(n,r){for(var i=-1,o=n==null?0:n.length,a=Array(o);++i-1&&r%1==0&&r0||this.converter.listeners("readable").length>0),this._needPushDownstream},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"needEmitAll",{get:function(){return!!this.converter.parseRuntime.then&&this.converter.parseParam.needEmitAll},enumerable:!0,configurable:!0}),l.prototype.processResult=function(u){var f=this,d=this.converter.parseRuntime.parsedLineNumber;return this.needPushDownstream&&this.converter.parseParam.downstreamFormat==="array"&&d===0&&s(this.converter,"["+o.EOL),new i.default(function(p,m){f.needEmitLine?function v(g,x,b,_,w){if(b>=g.length)w();else if(x.parseRuntime.subscribe&&x.parseRuntime.subscribe.onNext){var O=x.parseRuntime.subscribe.onNext,E=g[b],T=O(E,x.parseRuntime.parsedLineNumber+b);if(b++,T&&T.then)T.then(function(){(function(P,D,N,F,B,Y,H){B&&s(N,H),v(P,N,F,B,Y)})(g,0,x,b,_,w,E)},w);else{for(_&&s(x,E);bnew Promise(t=>{dGe().fromString(e).then(t)}),hGe=new cGe,mGe=e=>hGe.parse(e),vGe="shlink",TF=e=>`${vGe}.${e}`;class gGe{constructor(t){nc(this,"get",t=>{const n=this.localStorage.getItem(TF(t));return n?JSON.parse(n):void 0});nc(this,"set",(t,n)=>this.localStorage.setItem(TF(t),JSON.stringify(n)));this.localStorage=t}}class yGe{constructor(t){this.storage=t}getTagColors(){return this.storage.get("colors")??{}}storeTagColors(t){this.storage.set("colors",t)}}const bGe=e=>{e.constant("localStorage",window.localStorage),e.service("Storage",gGe,"localStorage"),e.service("TagColorsStorage",yGe,"Storage"),e.constant("csvToJson",pGe),e.constant("jsonToCsv",mGe),e.serviceFactory("useTimeoutToggle",()=>d9)},Yu=new I3,{container:AA}=Yu,_Ge=(e,t)=>(...n)=>e[t](...n),wGe=(e,t)=>({...e,[t]:_Ge(AA,t)}),xGe=e=>t=>Object.fromEntries(e.map(n=>[n,t[n]])),ix=(e,t=[])=>G$(e?xGe(e):null,t.reduce(wGe,{}));Jde(Yu,ix);BWe(Yu,ix);eee(Yu);AYe(Yu,ix);bGe(Yu);rGe(Yu,ix);var NA={},OC={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.isPlainObject=t.clone=t.recursive=t.merge=t.main=void 0,e.exports=t=n,t.default=n;function n(){for(var u=[],f=0;fz.length)&&(V=z.length);for(var W=0,re=Array(V);Wxj({appUpdated:Xde,servers:pYe,selectedServer:e.selectedServerReducer,settings:WYe}),EGe=e=>{var t;return e.settings&&((t=e.settings.visits)==null?void 0:t.defaultInterval)==="last180days"&&e.settings.visits&&(e.settings.visits.defaultInterval="last180Days"),e},TGe=!0,Aq={states:["settings","servers"],namespace:"shlink",namespaceSeparator:".",debounce:300},CGe=EGe(NA.load(Aq)),kGe=e=>M9({devTools:!TGe,reducer:SGe(e),preloadedState:CGe,middleware:t=>t({immutableCheck:!1,serializableCheck:!1}).concat(NA.save(Aq))}),jGe=!!(window.location.hostname==="localhost"||window.location.hostname==="[::1]"||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/));function PGe(e){if("serviceWorker"in navigator){if(new URL(_0.homepage,window.location.href).origin!==window.location.origin)return;window.addEventListener("load",()=>{const n=`${_0.homepage}/service-worker.js`;jGe?(AGe(n,e),navigator.serviceWorker.ready.then(()=>{console.log("This web app is being served cache-first by a service worker. To learn more, visit https://cra.link/PWA")})):Nq(n,e)})}}function Nq(e,t){navigator.serviceWorker.register(e).then(n=>{n.onupdatefound=()=>{const r=n.installing;r!=null&&(r.onstatechange=()=>{r.state==="installed"&&(navigator.serviceWorker.controller?(console.log("New content is available and will be used when all tabs for this page are closed. See https://cra.link/PWA."),t&&t.onUpdate&&t.onUpdate(n)):(console.log("Content is cached for offline use."),t&&t.onSuccess&&t.onSuccess(n)))})}}).catch(n=>{console.error("Error during service worker registration:",n)})}function AGe(e,t){fetch(e,{headers:{"Service-Worker":"script"}}).then(n=>{const r=n.headers.get("content-type");n.status===404||r!=null&&r.indexOf("javascript")===-1?navigator.serviceWorker.ready.then(i=>{i.unregister().then(()=>{window.location.reload()})}):Nq(e,t)}).catch(()=>{console.log("No internet connection found. App is running in offline mode.")})}const Mq=kGe(AA),{App:NGe,ScrollToTop:MGe,ErrorHandler:RGe,appUpdateAvailable:DGe}=AA;$$(document.getElementById("root")).render(y.jsx(q$,{store:Mq,children:y.jsx(i7,{basename:_0.homepage,children:y.jsx(RGe,{children:y.jsx(MGe,{children:y.jsx(NGe,{})})})})}));PGe({onUpdate(){Mq.dispatch(DGe())}}); diff --git a/develop/assets/index-cd38f146.js b/develop/assets/index-cd38f146.js deleted file mode 100644 index eaa942f5..00000000 --- a/develop/assets/index-cd38f146.js +++ /dev/null @@ -1,999 +0,0 @@ -var g$=Object.defineProperty;var v$=(e,t,n)=>t in e?g$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var xe=(e,t,n)=>(v$(e,typeof t!="symbol"?t+"":t,n),n);function y$(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var $l=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ri(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function _$(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){if(this instanceof r){var i=[null];i.push.apply(i,arguments);var o=Function.bind.apply(t,i);return new o}return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var TL={exports:{}},iy={},OL={exports:{}},it={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var kd=Symbol.for("react.element"),b$=Symbol.for("react.portal"),w$=Symbol.for("react.fragment"),x$=Symbol.for("react.strict_mode"),S$=Symbol.for("react.profiler"),C$=Symbol.for("react.provider"),E$=Symbol.for("react.context"),T$=Symbol.for("react.forward_ref"),O$=Symbol.for("react.suspense"),P$=Symbol.for("react.memo"),k$=Symbol.for("react.lazy"),rO=Symbol.iterator;function M$(e){return e===null||typeof e!="object"?null:(e=rO&&e[rO]||e["@@iterator"],typeof e=="function"?e:null)}var PL={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},kL=Object.assign,ML={};function Vc(e,t,n){this.props=e,this.context=t,this.refs=ML,this.updater=n||PL}Vc.prototype.isReactComponent={};Vc.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)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")};Vc.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function RL(){}RL.prototype=Vc.prototype;function b2(e,t,n){this.props=e,this.context=t,this.refs=ML,this.updater=n||PL}var w2=b2.prototype=new RL;w2.constructor=b2;kL(w2,Vc.prototype);w2.isPureReactComponent=!0;var iO=Array.isArray,NL=Object.prototype.hasOwnProperty,x2={current:null},LL={key:!0,ref:!0,__self:!0,__source:!0};function DL(e,t,n){var r,i={},o=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)NL.call(t,r)&&!LL.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1Math.max(Math.min(e,n),t);function $u(e){return ls(Md(e*2.55),0,255)}function bs(e){return ls(Md(e*255),0,255)}function po(e){return ls(Md(e/2.55)/100,0,1)}function sO(e){return ls(Md(e*100),0,100)}const Vr={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},Y1=[..."0123456789ABCDEF"],z$=e=>Y1[e&15],U$=e=>Y1[(e&240)>>4]+Y1[e&15],$h=e=>(e&240)>>4===(e&15),V$=e=>$h(e.r)&&$h(e.g)&&$h(e.b)&&$h(e.a);function H$(e){var t=e.length,n;return e[0]==="#"&&(t===4||t===5?n={r:255&Vr[e[1]]*17,g:255&Vr[e[2]]*17,b:255&Vr[e[3]]*17,a:t===5?Vr[e[4]]*17:255}:(t===7||t===9)&&(n={r:Vr[e[1]]<<4|Vr[e[2]],g:Vr[e[3]]<<4|Vr[e[4]],b:Vr[e[5]]<<4|Vr[e[6]],a:t===9?Vr[e[7]]<<4|Vr[e[8]]:255})),n}const W$=(e,t)=>e<255?t(e):"";function Y$(e){var t=V$(e)?z$:U$;return e?"#"+t(e.r)+t(e.g)+t(e.b)+W$(e.a,t):void 0}const q$=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function jL(e,t,n){const r=t*Math.min(n,1-n),i=(o,s=(o+e/30)%12)=>n-r*Math.max(Math.min(s-3,9-s,1),-1);return[i(0),i(8),i(4)]}function G$(e,t,n){const r=(i,o=(i+e/60)%6)=>n-n*t*Math.max(Math.min(o,4-o,1),0);return[r(5),r(3),r(1)]}function Z$(e,t,n){const r=jL(e,1,.5);let i;for(t+n>1&&(i=1/(t+n),t*=i,n*=i),i=0;i<3;i++)r[i]*=1-t-n,r[i]+=t;return r}function K$(e,t,n,r,i){return e===i?(t-n)/r+(t.5?f/(2-o-s):f/(o+s),l=K$(n,r,i,f,o),l=l*60+.5),[l|0,c||0,a]}function E2(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(bs)}function T2(e,t,n){return E2(jL,e,t,n)}function X$(e,t,n){return E2(Z$,e,t,n)}function Q$(e,t,n){return E2(G$,e,t,n)}function IL(e){return(e%360+360)%360}function J$(e){const t=q$.exec(e);let n=255,r;if(!t)return;t[5]!==r&&(n=t[6]?$u(+t[5]):bs(+t[5]));const i=IL(+t[2]),o=+t[3]/100,s=+t[4]/100;return t[1]==="hwb"?r=X$(i,o,s):t[1]==="hsv"?r=Q$(i,o,s):r=T2(i,o,s),{r:r[0],g:r[1],b:r[2],a:n}}function e7(e,t){var n=C2(e);n[0]=IL(n[0]+t),n=T2(n),e.r=n[0],e.g=n[1],e.b=n[2]}function t7(e){if(!e)return;const t=C2(e),n=t[0],r=sO(t[1]),i=sO(t[2]);return e.a<255?`hsla(${n}, ${r}%, ${i}%, ${po(e.a)})`:`hsl(${n}, ${r}%, ${i}%)`}const aO={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},lO={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function n7(){const e={},t=Object.keys(lO),n=Object.keys(aO);let r,i,o,s,a;for(r=0;r>16&255,o>>8&255,o&255]}return e}let Bh;function r7(e){Bh||(Bh=n7(),Bh.transparent=[0,0,0,0]);const t=Bh[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const i7=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function o7(e){const t=i7.exec(e);let n=255,r,i,o;if(t){if(t[7]!==r){const s=+t[7];n=t[8]?$u(s):ls(s*255,0,255)}return r=+t[1],i=+t[3],o=+t[5],r=255&(t[2]?$u(r):ls(r,0,255)),i=255&(t[4]?$u(i):ls(i,0,255)),o=255&(t[6]?$u(o):ls(o,0,255)),{r,g:i,b:o,a:n}}}function s7(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${po(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const r0=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,Sl=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function a7(e,t,n){const r=Sl(po(e.r)),i=Sl(po(e.g)),o=Sl(po(e.b));return{r:bs(r0(r+n*(Sl(po(t.r))-r))),g:bs(r0(i+n*(Sl(po(t.g))-i))),b:bs(r0(o+n*(Sl(po(t.b))-o))),a:e.a+n*(t.a-e.a)}}function zh(e,t,n){if(e){let r=C2(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,t===0?360:1)),r=T2(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function FL(e,t){return e&&Object.assign(t||{},e)}function cO(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=bs(e[3]))):(t=FL(e,{r:0,g:0,b:0,a:1}),t.a=bs(t.a)),t}function l7(e){return e.charAt(0)==="r"?o7(e):J$(e)}class Lf{constructor(t){if(t instanceof Lf)return t;const n=typeof t;let r;n==="object"?r=cO(t):n==="string"&&(r=H$(t)||r7(t)||l7(t)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var t=FL(this._rgb);return t&&(t.a=po(t.a)),t}set rgb(t){this._rgb=cO(t)}rgbString(){return this._valid?s7(this._rgb):void 0}hexString(){return this._valid?Y$(this._rgb):void 0}hslString(){return this._valid?t7(this._rgb):void 0}mix(t,n){if(t){const r=this.rgb,i=t.rgb;let o;const s=n===o?.5:n,a=2*s-1,l=r.a-i.a,c=((a*l===-1?a:(a+l)/(1+a*l))+1)/2;o=1-c,r.r=255&c*r.r+o*i.r+.5,r.g=255&c*r.g+o*i.g+.5,r.b=255&c*r.b+o*i.b+.5,r.a=s*r.a+(1-s)*i.a,this.rgb=r}return this}interpolate(t,n){return t&&(this._rgb=a7(this._rgb,t._rgb,n)),this}clone(){return new Lf(this.rgb)}alpha(t){return this._rgb.a=bs(t),this}clearer(t){const n=this._rgb;return n.a*=1-t,this}greyscale(){const t=this._rgb,n=Md(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=n,this}opaquer(t){const n=this._rgb;return n.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return zh(this._rgb,2,t),this}darken(t){return zh(this._rgb,2,-t),this}saturate(t){return zh(this._rgb,1,t),this}desaturate(t){return zh(this._rgb,1,-t),this}rotate(t){return e7(this._rgb,t),this}}/*! - * Chart.js v4.1.1 - * https://www.chartjs.org - * (c) 2022 Chart.js Contributors - * Released under the MIT License - */function co(){}const c7=(()=>{let e=0;return()=>e++})();function ct(e){return e===null||typeof e>"u"}function kt(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function rt(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function qt(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function Tr(e,t){return qt(e)?e:t}function Ke(e,t){return typeof e>"u"?t:e}const u7=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100:+e/t,$L=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function Ct(e,t,n){if(e&&typeof e.call=="function")return e.apply(n,t)}function vt(e,t,n,r){let i,o,s;if(kt(e))if(o=e.length,r)for(i=o-1;i>=0;i--)t.call(n,e[i],i);else for(i=0;ie,x:e=>e.x,y:e=>e.y};function h7(e){const t=e.split("."),n=[];let r="";for(const i of t)r+=i,r.endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}function p7(e){const t=h7(e);return n=>{for(const r of t){if(r==="")break;n=n&&n[r]}return n}}function As(e,t){return(uO[t]||(uO[t]=p7(t)))(e)}function O2(e){return e.charAt(0).toUpperCase()+e.slice(1)}const Qr=e=>typeof e<"u",js=e=>typeof e=="function",fO=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};function m7(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const It=Math.PI,Mt=2*It,g7=Mt+It,ag=Number.POSITIVE_INFINITY,v7=It/180,Gt=It/2,da=It/4,dO=It*2/3,cs=Math.log10,Gi=Math.sign;function nf(e,t,n){return Math.abs(e-t)i-o).pop(),t}function yc(e){return!isNaN(parseFloat(e))&&isFinite(e)}function _7(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}function zL(e,t,n){let r,i,o;for(r=0,i=e.length;rl&&c=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function k2(e,t,n){n=n||(s=>e[s]1;)o=i+r>>1,n(o)?i=o:r=o;return{lo:i,hi:r}}const bo=(e,t,n,r)=>k2(e,n,r?i=>{const o=e[i][t];return oe[i][t]k2(e,n,r=>e[r][t]>=n);function S7(e,t,n){let r=0,i=e.length;for(;rr&&e[i-1]>n;)i--;return r>0||i{const r="_onData"+O2(n),i=e[n];Object.defineProperty(e,n,{configurable:!0,enumerable:!1,value(...o){const s=i.apply(this,o);return e._chartjs.listeners.forEach(a=>{typeof a[r]=="function"&&a[r](...o)}),s}})})}function mO(e,t){const n=e._chartjs;if(!n)return;const r=n.listeners,i=r.indexOf(t);i!==-1&&r.splice(i,1),!(r.length>0)&&(VL.forEach(o=>{delete e[o]}),delete e._chartjs)}function HL(e){const t=new Set;let n,r;for(n=0,r=e.length;n"u"?function(e){return e()}:window.requestAnimationFrame}();function YL(e,t){let n=[],r=!1;return function(...i){n=i,r||(r=!0,WL.call(window,()=>{r=!1,e.apply(t,n)}))}}function E7(e,t){let n;return function(...r){return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}const M2=e=>e==="start"?"left":e==="end"?"right":"center",Kn=(e,t,n)=>e==="start"?t:e==="end"?n:(t+n)/2,T7=(e,t,n,r)=>e===(r?"left":"right")?n:e==="center"?(t+n)/2:t;function qL(e,t,n){const r=t.length;let i=0,o=r;if(e._sorted){const{iScale:s,_parsed:a}=e,l=s.axis,{min:c,max:f,minDefined:h,maxDefined:p}=s.getUserBounds();h&&(i=En(Math.min(bo(a,s.axis,c).lo,n?r:bo(t,l,s.getPixelForValue(c)).lo),0,r-1)),p?o=En(Math.max(bo(a,s.axis,f,!0).hi+1,n?0:bo(t,l,s.getPixelForValue(f),!0).hi+1),i,r)-i:o=r-i}return{start:i,count:o}}function GL(e){const{xScale:t,yScale:n,_scaleRanges:r}=e,i={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!r)return e._scaleRanges=i,!0;const o=r.xmin!==t.min||r.xmax!==t.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,i),o}const Uh=e=>e===0||e===1,gO=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*Mt/n)),vO=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*Mt/n)+1,rf={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*Gt)+1,easeOutSine:e=>Math.sin(e*Gt),easeInOutSine:e=>-.5*(Math.cos(It*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>Uh(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>Uh(e)?e:gO(e,.075,.3),easeOutElastic:e=>Uh(e)?e:vO(e,.075,.3),easeInOutElastic(e){return Uh(e)?e:e<.5?.5*gO(e*2,.1125,.45):.5+.5*vO(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-rf.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?rf.easeInBounce(e*2)*.5:rf.easeOutBounce(e*2-1)*.5+.5};function ZL(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function yO(e){return ZL(e)?e:new Lf(e)}function i0(e){return ZL(e)?e:new Lf(e).saturate(.5).darken(.1).hexString()}const O7=["x","y","borderWidth","radius","tension"],P7=["color","borderColor","backgroundColor"];function k7(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),e.set("animations",{colors:{type:"color",properties:P7},numbers:{type:"number",properties:O7}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>t|0}}}})}function M7(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const _O=new Map;function R7(e,t){t=t||{};const n=e+JSON.stringify(t);let r=_O.get(n);return r||(r=new Intl.NumberFormat(e,t),_O.set(n,r)),r}function Rd(e,t,n){return R7(t,n).format(e)}const KL={values(e){return kt(e)?e:""+e},numeric(e,t,n){if(e===0)return"0";const r=this.chart.options.locale;let i,o=e;if(n.length>1){const c=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(c<1e-4||c>1e15)&&(i="scientific"),o=N7(e,n)}const s=cs(Math.abs(o)),a=Math.max(Math.min(-1*Math.floor(s),20),0),l={notation:i,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),Rd(e,r,l)},logarithmic(e,t,n){if(e===0)return"0";const r=n[t].significand||e/Math.pow(10,Math.floor(cs(e)));return[1,2,3,5,10,15].includes(r)||t>.8*n.length?KL.numeric.call(this,e,t,n):""}};function N7(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}var oy={formatters:KL};function L7(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,n)=>n.lineWidth,tickColor:(t,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:oy.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const Ha=Object.create(null),G1=Object.create(null);function of(e,t){if(!t)return e;const n=t.split(".");for(let r=0,i=n.length;rr.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(r,i)=>i0(i.backgroundColor),this.hoverBorderColor=(r,i)=>i0(i.borderColor),this.hoverColor=(r,i)=>i0(i.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(n)}set(t,n){return o0(this,t,n)}get(t){return of(this,t)}describe(t,n){return o0(G1,t,n)}override(t,n){return o0(Ha,t,n)}route(t,n,r,i){const o=of(this,t),s=of(this,r),a="_"+n;Object.defineProperties(o,{[a]:{value:o[n],writable:!0},[n]:{enumerable:!0,get(){const l=this[a],c=s[i];return rt(l)?Object.assign({},c,l):Ke(l,c)},set(l){this[a]=l}}})}apply(t){t.forEach(n=>n(this))}}var tn=new D7({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[k7,M7,L7]);function A7(e){return!e||ct(e.size)||ct(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function lg(e,t,n,r,i){let o=t[i];return o||(o=t[i]=e.measureText(i).width,n.push(i)),o>r&&(r=o),r}function j7(e,t,n,r){r=r||{};let i=r.data=r.data||{},o=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(i=r.data={},o=r.garbageCollect=[],r.font=t),e.save(),e.font=t;let s=0;const a=n.length;let l,c,f,h,p;for(l=0;ln.length){for(l=0;l0&&e.stroke()}}function jf(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.xt.top-n&&e.y0&&o.strokeColor!=="";let l,c;for(e.save(),e.font=i.string,$7(e,o),l=0;l+e||0;function R2(e,t){const n={},r=rt(t),i=r?Object.keys(t):t,o=rt(e)?r?s=>Ke(e[s],e[t[s]]):s=>e[s]:()=>e;for(const s of i)n[s]=W7(o(s));return n}function QL(e){return R2(e,{top:"y",right:"x",bottom:"y",left:"x"})}function Aa(e){return R2(e,["topLeft","topRight","bottomLeft","bottomRight"])}function er(e){const t=QL(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function gn(e,t){e=e||{},t=t||tn.font;let n=Ke(e.size,t.size);typeof n=="string"&&(n=parseInt(n,10));let r=Ke(e.style,t.style);r&&!(""+r).match(V7)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const i={family:Ke(e.family,t.family),lineHeight:H7(Ke(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:Ke(e.weight,t.weight),string:""};return i.string=A7(i),i}function Bu(e,t,n,r){let i=!0,o,s,a;for(o=0,s=e.length;on&&a===0?0:a+l;return{min:s(r,-Math.abs(o)),max:s(i,o)}}function qs(e,t){return Object.assign(Object.create(e),t)}function N2(e,t=[""],n=e,r,i=()=>e[0]){Qr(r)||(r=nD("_fallback",e));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:n,_fallback:r,_getTarget:i,override:s=>N2([s,...e],t,n,r)};return new Proxy(o,{deleteProperty(s,a){return delete s[a],delete s._keys,delete e[0][a],!0},get(s,a){return eD(s,a,()=>eB(a,t,e,s))},getOwnPropertyDescriptor(s,a){return Reflect.getOwnPropertyDescriptor(s._scopes[0],a)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(s,a){return xO(s).includes(a)},ownKeys(s){return xO(s)},set(s,a,l){const c=s._storage||(s._storage=i());return s[a]=c[a]=l,delete s._keys,!0}})}function _c(e,t,n,r){const i={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:JL(e,r),setContext:o=>_c(e,o,n,r),override:o=>_c(e.override(o),t,n,r)};return new Proxy(i,{deleteProperty(o,s){return delete o[s],delete e[s],!0},get(o,s,a){return eD(o,s,()=>G7(o,s,a))},getOwnPropertyDescriptor(o,s){return o._descriptors.allKeys?Reflect.has(e,s)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,s)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(o,s){return Reflect.has(e,s)},ownKeys(){return Reflect.ownKeys(e)},set(o,s,a){return e[s]=a,delete o[s],!0}})}function JL(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:r=t.indexable,_allKeys:i=t.allKeys}=e;return{allKeys:i,scriptable:n,indexable:r,isScriptable:js(n)?n:()=>n,isIndexable:js(r)?r:()=>r}}const q7=(e,t)=>e?e+O2(t):t,L2=(e,t)=>rt(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function eD(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t))return e[t];const r=n();return e[t]=r,r}function G7(e,t,n){const{_proxy:r,_context:i,_subProxy:o,_descriptors:s}=e;let a=r[t];return js(a)&&s.isScriptable(t)&&(a=Z7(t,a,e,n)),kt(a)&&a.length&&(a=K7(t,a,e,s.isIndexable)),L2(t,a)&&(a=_c(a,i,o&&o[t],s)),a}function Z7(e,t,n,r){const{_proxy:i,_context:o,_subProxy:s,_stack:a}=n;if(a.has(e))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+e);return a.add(e),t=t(o,s||r),a.delete(e),L2(e,t)&&(t=D2(i._scopes,i,e,t)),t}function K7(e,t,n,r){const{_proxy:i,_context:o,_subProxy:s,_descriptors:a}=n;if(Qr(o.index)&&r(e))t=t[o.index%t.length];else if(rt(t[0])){const l=t,c=i._scopes.filter(f=>f!==l);t=[];for(const f of l){const h=D2(c,i,e,f);t.push(_c(h,o,s&&s[e],a))}}return t}function tD(e,t,n){return js(e)?e(t,n):e}const X7=(e,t)=>e===!0?t:typeof e=="string"?As(t,e):void 0;function Q7(e,t,n,r,i){for(const o of t){const s=X7(n,o);if(s){e.add(s);const a=tD(s._fallback,n,i);if(Qr(a)&&a!==n&&a!==r)return a}else if(s===!1&&Qr(r)&&n!==r)return null}return!1}function D2(e,t,n,r){const i=t._rootScopes,o=tD(t._fallback,n,r),s=[...e,...i],a=new Set;a.add(r);let l=wO(a,s,n,o||n,r);return l===null||Qr(o)&&o!==n&&(l=wO(a,s,o,l,r),l===null)?!1:N2(Array.from(a),[""],i,o,()=>J7(t,n,r))}function wO(e,t,n,r,i){for(;n;)n=Q7(e,t,n,r,i);return n}function J7(e,t,n){const r=e._getTarget();t in r||(r[t]={});const i=r[t];return kt(i)&&rt(n)?n:i||{}}function eB(e,t,n,r){let i;for(const o of t)if(i=nD(q7(o,e),n),Qr(i))return L2(e,i)?D2(n,r,e,i):i}function nD(e,t){for(const n of t){if(!n)continue;const r=n[e];if(Qr(r))return r}}function xO(e){let t=e._keys;return t||(t=e._keys=tB(e._scopes)),t}function tB(e){const t=new Set;for(const n of e)for(const r of Object.keys(n).filter(i=>!i.startsWith("_")))t.add(r);return Array.from(t)}function rD(e,t,n,r){const{iScale:i}=e,{key:o="r"}=this._parsing,s=new Array(r);let a,l,c,f;for(a=0,l=r;ate==="x"?"y":"x";function rB(e,t,n,r){const i=e.skip?t:e,o=t,s=n.skip?t:n,a=q1(o,i),l=q1(s,o);let c=a/(a+l),f=l/(a+l);c=isNaN(c)?0:c,f=isNaN(f)?0:f;const h=r*c,p=r*f;return{previous:{x:o.x-h*(s.x-i.x),y:o.y-h*(s.y-i.y)},next:{x:o.x+p*(s.x-i.x),y:o.y+p*(s.y-i.y)}}}function iB(e,t,n){const r=e.length;let i,o,s,a,l,c=bc(e,0);for(let f=0;f!c.skip)),t.cubicInterpolationMode==="monotone")sB(e,i);else{let c=r?e[e.length-1]:e[0];for(o=0,s=e.length;oe.ownerDocument.defaultView.getComputedStyle(e,null);function cB(e,t){return ly(e).getPropertyValue(t)}const uB=["top","right","bottom","left"];function ja(e,t,n){const r={};n=n?"-"+n:"";for(let i=0;i<4;i++){const o=uB[i];r[o]=parseFloat(e[t+"-"+o+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const fB=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function dB(e,t){const n=e.touches,r=n&&n.length?n[0]:e,{offsetX:i,offsetY:o}=r;let s=!1,a,l;if(fB(i,o,e.target))a=i,l=o;else{const c=t.getBoundingClientRect();a=r.clientX-c.left,l=r.clientY-c.top,s=!0}return{x:a,y:l,box:s}}function ba(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:r}=t,i=ly(n),o=i.boxSizing==="border-box",s=ja(i,"padding"),a=ja(i,"border","width"),{x:l,y:c,box:f}=dB(e,n),h=s.left+(f&&a.left),p=s.top+(f&&a.top);let{width:m,height:v}=t;return o&&(m-=s.width+a.width,v-=s.height+a.height),{x:Math.round((l-h)/m*n.width/r),y:Math.round((c-p)/v*n.height/r)}}function hB(e,t,n){let r,i;if(t===void 0||n===void 0){const o=A2(e);if(!o)t=e.clientWidth,n=e.clientHeight;else{const s=o.getBoundingClientRect(),a=ly(o),l=ja(a,"border","width"),c=ja(a,"padding");t=s.width-c.width-l.width,n=s.height-c.height-l.height,r=cg(a.maxWidth,o,"clientWidth"),i=cg(a.maxHeight,o,"clientHeight")}}return{width:t,height:n,maxWidth:r||ag,maxHeight:i||ag}}const Hh=e=>Math.round(e*10)/10;function pB(e,t,n,r){const i=ly(e),o=ja(i,"margin"),s=cg(i.maxWidth,e,"clientWidth")||ag,a=cg(i.maxHeight,e,"clientHeight")||ag,l=hB(e,t,n);let{width:c,height:f}=l;if(i.boxSizing==="content-box"){const p=ja(i,"border","width"),m=ja(i,"padding");c-=m.width+p.width,f-=m.height+p.height}return c=Math.max(0,c-o.width),f=Math.max(0,r?c/r:f-o.height),c=Hh(Math.min(c,s,l.maxWidth)),f=Hh(Math.min(f,a,l.maxHeight)),c&&!f&&(f=Hh(c/2)),(t!==void 0||n!==void 0)&&r&&l.height&&f>l.height&&(f=l.height,c=Hh(Math.floor(f*r))),{width:c,height:f}}function SO(e,t,n){const r=t||1,i=Math.floor(e.height*r),o=Math.floor(e.width*r);e.height=Math.floor(e.height),e.width=Math.floor(e.width);const s=e.canvas;return s.style&&(n||!s.style.height&&!s.style.width)&&(s.style.height=`${e.height}px`,s.style.width=`${e.width}px`),e.currentDevicePixelRatio!==r||s.height!==i||s.width!==o?(e.currentDevicePixelRatio=r,s.height=i,s.width=o,e.ctx.setTransform(r,0,0,r,0,0),!0):!1}const mB=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch{}return e}();function CO(e,t){const n=cB(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function wa(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function gB(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:r==="middle"?n<.5?e.y:t.y:r==="after"?n<1?e.y:t.y:n>0?t.y:e.y}}function vB(e,t,n,r){const i={x:e.cp2x,y:e.cp2y},o={x:t.cp1x,y:t.cp1y},s=wa(e,i,n),a=wa(i,o,n),l=wa(o,t,n),c=wa(s,a,n),f=wa(a,l,n);return wa(c,f,n)}const yB=function(e,t){return{x(n){return e+e+t-n},setWidth(n){t=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,r){return n-r},leftForLtr(n,r){return n-r}}},_B=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function nc(e,t,n){return e?yB(t,n):_B()}function sD(e,t){let n,r;(t==="ltr"||t==="rtl")&&(n=e.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=r)}function aD(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function lD(e){return e==="angle"?{between:Af,compare:b7,normalize:Pr}:{between:_o,compare:(t,n)=>t-n,normalize:t=>t}}function EO({start:e,end:t,count:n,loop:r,style:i}){return{start:e%n,end:t%n,loop:r&&(t-e+1)%n===0,style:i}}function bB(e,t,n){const{property:r,start:i,end:o}=n,{between:s,normalize:a}=lD(r),l=t.length;let{start:c,end:f,loop:h}=e,p,m;if(h){for(c+=l,f+=l,p=0,m=l;pl(i,S,_)&&a(i,S)!==0,P=()=>a(o,_)===0||l(o,S,_),k=()=>y||T(),N=()=>!y||P();for(let D=f,z=f;D<=h;++D)w=t[D%s],!w.skip&&(_=c(w[r]),_!==S&&(y=l(_,i,o),x===null&&k()&&(x=a(_,i)===0?D:z),x!==null&&N()&&(v.push(EO({start:x,end:D,loop:p,count:s,style:m})),x=null),z=D,S=_));return x!==null&&v.push(EO({start:x,end:h,loop:p,count:s,style:m})),v}function uD(e,t){const n=[],r=e.segments;for(let i=0;ii&&e[o%t].skip;)o--;return o%=t,{start:i,end:o}}function xB(e,t,n,r){const i=e.length,o=[];let s=t,a=e[t],l;for(l=t+1;l<=n;++l){const c=e[l%i];c.skip||c.stop?a.skip||(r=!1,o.push({start:t%i,end:(l-1)%i,loop:r}),t=s=c.stop?l:null):(s=l,a.skip&&(t=l)),a=c}return s!==null&&o.push({start:t%i,end:s%i,loop:r}),o}function SB(e,t){const n=e.points,r=e.options.spanGaps,i=n.length;if(!i)return[];const o=!!e._loop,{start:s,end:a}=wB(n,i,o,r);if(r===!0)return TO(e,[{start:s,end:a,loop:o}],n,t);const l=aa({chart:t,initial:n.initial,numSteps:s,currentStep:Math.min(r-n.start,s)}))}_refresh(){this._request||(this._running=!0,this._request=WL.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let n=0;this._charts.forEach((r,i)=>{if(!r.running||!r.items.length)return;const o=r.items;let s=o.length-1,a=!1,l;for(;s>=0;--s)l=o[s],l._active?(l._total>r.duration&&(r.duration=l._total),l.tick(t),a=!0):(o[s]=o[o.length-1],o.pop());a&&(i.draw(),this._notify(i,r,t,"progress")),o.length||(r.running=!1,this._notify(i,r,t,"complete"),r.initial=!1),n+=o.length}),this._lastDate=t,n===0&&(this._running=!1)}_getAnims(t){const n=this._charts;let r=n.get(t);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(t,r)),r}listen(t,n,r){this._getAnims(t).listeners[n].push(r)}add(t,n){!n||!n.length||this._getAnims(t).items.push(...n)}has(t){return this._getAnims(t).items.length>0}start(t){const n=this._charts.get(t);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((r,i)=>Math.max(r,i._duration),0),this._refresh())}running(t){if(!this._running)return!1;const n=this._charts.get(t);return!(!n||!n.running||!n.items.length)}stop(t){const n=this._charts.get(t);if(!n||!n.items.length)return;const r=n.items;let i=r.length-1;for(;i>=0;--i)r[i].cancel();n.items=[],this._notify(t,n,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var uo=new TB;const PO="transparent",OB={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const r=yO(e||PO),i=r.valid&&yO(t||PO);return i&&i.valid?i.mix(r,n).hexString():t},number(e,t,n){return e+(t-e)*n}};class PB{constructor(t,n,r,i){const o=n[r];i=Bu([t.to,i,o,t.from]);const s=Bu([t.from,o,i]);this._active=!0,this._fn=t.fn||OB[t.type||typeof s],this._easing=rf[t.easing]||rf.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=r,this._from=s,this._to=i,this._promises=void 0}active(){return this._active}update(t,n,r){if(this._active){this._notify(!1);const i=this._target[this._prop],o=r-this._start,s=this._duration-o;this._start=r,this._duration=Math.floor(Math.max(s,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=Bu([t.to,n,i,t.from]),this._from=Bu([t.from,i,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const n=t-this._start,r=this._duration,i=this._prop,o=this._from,s=this._loop,a=this._to;let l;if(this._active=o!==a&&(s||n1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[i]=this._fn(o,a,l)}wait(){const t=this._promises||(this._promises=[]);return new Promise((n,r)=>{t.push({res:n,rej:r})})}_notify(t){const n=t?"res":"rej",r=this._promises||[];for(let i=0;i{const o=t[i];if(!rt(o))return;const s={};for(const a of n)s[a]=o[a];(kt(o.properties)&&o.properties||[i]).forEach(a=>{(a===i||!r.has(a))&&r.set(a,s)})})}_animateOptions(t,n){const r=n.options,i=MB(t,r);if(!i)return[];const o=this._createAnimations(i,r);return r.$shared&&kB(t.options.$animations,r).then(()=>{t.options=r},()=>{}),o}_createAnimations(t,n){const r=this._properties,i=[],o=t.$animations||(t.$animations={}),s=Object.keys(n),a=Date.now();let l;for(l=s.length-1;l>=0;--l){const c=s[l];if(c.charAt(0)==="$")continue;if(c==="options"){i.push(...this._animateOptions(t,n));continue}const f=n[c];let h=o[c];const p=r.get(c);if(h)if(p&&h.active()){h.update(p,f,a);continue}else h.cancel();if(!p||!p.duration){t[c]=f;continue}o[c]=h=new PB(p,t,c,f),i.push(h)}return i}update(t,n){if(this._properties.size===0){Object.assign(t,n);return}const r=this._createAnimations(t,n);if(r.length)return uo.add(this._chart,r),!0}}function kB(e,t){const n=[],r=Object.keys(t);for(let i=0;i0||!n&&o<0)return i.index}return null}function LO(e,t){const{chart:n,_cachedMeta:r}=e,i=n._stacks||(n._stacks={}),{iScale:o,vScale:s,index:a}=r,l=o.axis,c=s.axis,f=DB(o,s,r),h=t.length;let p;for(let m=0;mn[r].axis===t).shift()}function IB(e,t){return qs(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function FB(e,t,n){return qs(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}function _u(e,t){const n=e.controller.index,r=e.vScale&&e.vScale.axis;if(r){t=t||e._parsed;for(const i of t){const o=i._stacks;if(!o||o[r]===void 0||o[r][n]===void 0)return;delete o[r][n],o[r]._visualValues!==void 0&&o[r]._visualValues[n]!==void 0&&delete o[r]._visualValues[n]}}}const a0=e=>e==="reset"||e==="none",DO=(e,t)=>t?e:Object.assign({},e),$B=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:dD(n,!0),values:null};class wi{constructor(t,n){this.chart=t,this._ctx=t.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=RO(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&_u(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,n=this._cachedMeta,r=this.getDataset(),i=(h,p,m,v)=>h==="x"?p:h==="r"?v:m,o=n.xAxisID=Ke(r.xAxisID,s0(t,"x")),s=n.yAxisID=Ke(r.yAxisID,s0(t,"y")),a=n.rAxisID=Ke(r.rAxisID,s0(t,"r")),l=n.indexAxis,c=n.iAxisID=i(l,o,s,a),f=n.vAxisID=i(l,s,o,a);n.xScale=this.getScaleForId(o),n.yScale=this.getScaleForId(s),n.rScale=this.getScaleForId(a),n.iScale=this.getScaleForId(c),n.vScale=this.getScaleForId(f)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const n=this._cachedMeta;return t===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&mO(this._data,this),t._stacked&&_u(t)}_dataCheck(){const t=this.getDataset(),n=t.data||(t.data=[]),r=this._data;if(rt(n))this._data=LB(n);else if(r!==n){if(r){mO(r,this);const i=this._cachedMeta;_u(i),i._parsed=[]}n&&Object.isExtensible(n)&&C7(n,this),this._syncList=[],this._data=n}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const n=this._cachedMeta,r=this.getDataset();let i=!1;this._dataCheck();const o=n._stacked;n._stacked=RO(n.vScale,n),n.stack!==r.stack&&(i=!0,_u(n),n.stack=r.stack),this._resyncElements(t),(i||o!==n._stacked)&&LO(this,n._parsed)}configure(){const t=this.chart.config,n=t.datasetScopeKeys(this._type),r=t.getOptionScopes(this.getDataset(),n,!0);this.options=t.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,n){const{_cachedMeta:r,_data:i}=this,{iScale:o,_stacked:s}=r,a=o.axis;let l=t===0&&n===i.length?!0:r._sorted,c=t>0&&r._parsed[t-1],f,h,p;if(this._parsing===!1)r._parsed=i,r._sorted=!0,p=i;else{kt(i[t])?p=this.parseArrayData(r,i,t,n):rt(i[t])?p=this.parseObjectData(r,i,t,n):p=this.parsePrimitiveData(r,i,t,n);const m=()=>h[a]===null||c&&h[a]y||h=0;--p)if(!v()){this.updateRangeFromParsed(c,t,m,l);break}}return c}getAllParsedValues(t){const n=this._cachedMeta._parsed,r=[];let i,o,s;for(i=0,o=n.length;i=0&&tthis.getContext(r,i,n),y=c.resolveNamedOptions(p,m,v,h);return y.$shared&&(y.$shared=l,o[s]=Object.freeze(DO(y,l))),y}_resolveAnimations(t,n,r){const i=this.chart,o=this._cachedDataOpts,s=`animation-${n}`,a=o[s];if(a)return a;let l;if(i.options.animation!==!1){const f=this.chart.config,h=f.datasetAnimationScopeKeys(this._type,n),p=f.getOptionScopes(this.getDataset(),h);l=f.createResolver(p,this.getContext(t,r,n))}const c=new fD(i,l&&l.animations);return l&&l._cacheable&&(o[s]=Object.freeze(c)),c}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,n){return!n||a0(t)||this.chart._animationsDisabled}_getSharedOptions(t,n){const r=this.resolveDataElementOptions(t,n),i=this._sharedOptions,o=this.getSharedOptions(r),s=this.includeOptions(n,o)||o!==i;return this.updateSharedOptions(o,n,r),{sharedOptions:o,includeOptions:s}}updateElement(t,n,r,i){a0(i)?Object.assign(t,r):this._resolveAnimations(n,i).update(t,r)}updateSharedOptions(t,n,r){t&&!a0(n)&&this._resolveAnimations(void 0,n).update(t,r)}_setStyle(t,n,r,i){t.active=i;const o=this.getStyle(n,i);this._resolveAnimations(n,r,i).update(t,{options:!i&&this.getSharedOptions(o)||o})}removeHoverStyle(t,n,r){this._setStyle(t,r,"active",!1)}setHoverStyle(t,n,r){this._setStyle(t,r,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const n=this._data,r=this._cachedMeta.data;for(const[a,l,c]of this._syncList)this[a](l,c);this._syncList=[];const i=r.length,o=n.length,s=Math.min(o,i);s&&this.parse(0,s),o>i?this._insertElements(i,o-i,t):o{for(c.length+=n,a=c.length-1;a>=s;a--)c[a]=c[a-n]};for(l(o),a=t;ai-o))}return e._cache.$bar}function zB(e){const t=e.iScale,n=BB(t,e.type);let r=t._length,i,o,s,a;const l=()=>{s===32767||s===-32768||(Qr(a)&&(r=Math.min(r,Math.abs(s-a)||r)),a=s)};for(i=0,o=n.length;i0?i[e-1]:null,a=eMath.abs(a)&&(l=a,c=s),t[n.axis]=c,t._custom={barStart:l,barEnd:c,start:i,end:o,min:s,max:a}}function hD(e,t,n,r){return kt(e)?HB(e,t,n,r):t[n.axis]=n.parse(e,r),t}function AO(e,t,n,r){const i=e.iScale,o=e.vScale,s=i.getLabels(),a=i===o,l=[];let c,f,h,p;for(c=n,f=n+r;c=n?1:-1)}function YB(e){let t,n,r,i,o;return e.horizontal?(t=e.base>e.x,n="left",r="right"):(t=e.basel.controller.options.grouped),o=r.options.stacked,s=[],a=l=>{const c=l.controller.getParsed(n),f=c&&c[l.vScale.axis];if(ct(f)||isNaN(f))return!0};for(const l of i)if(!(n!==void 0&&a(l))&&((o===!1||s.indexOf(l.stack)===-1||o===void 0&&l.stack===void 0)&&s.push(l.stack),l.index===t))break;return s.length||s.push(void 0),s}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,n,r){const i=this._getStacks(t,r),o=n!==void 0?i.indexOf(n):-1;return o===-1?i.length-1:o}_getRuler(){const t=this.options,n=this._cachedMeta,r=n.iScale,i=[];let o,s;for(o=0,s=n.data.length;o=0;--r)n=Math.max(n,t[r].size(this.resolveDataElementOptions(r))/2);return n>0&&n}getLabelAndValue(t){const n=this._cachedMeta,r=this.chart.data.labels||[],{xScale:i,yScale:o}=n,s=this.getParsed(t),a=i.getLabelForValue(s.x),l=o.getLabelForValue(s.y),c=s._custom;return{label:r[t]||"",value:"("+a+", "+l+(c?", "+c:"")+")"}}update(t){const n=this._cachedMeta.data;this.updateElements(n,0,n.length,t)}updateElements(t,n,r,i){const o=i==="reset",{iScale:s,vScale:a}=this._cachedMeta,{sharedOptions:l,includeOptions:c}=this._getSharedOptions(n,i),f=s.axis,h=a.axis;for(let p=n;pAf(S,a,l,!0)?1:Math.max(T,T*n,P,P*n),v=(S,T,P)=>Af(S,a,l,!0)?-1:Math.min(T,T*n,P,P*n),y=m(0,c,h),x=m(Gt,f,p),_=v(It,c,h),w=v(It+Gt,f,p);r=(y-_)/2,i=(x-w)/2,o=-(y+_)/2,s=-(x+w)/2}return{ratioX:r,ratioY:i,offsetX:o,offsetY:s}}class us extends wi{constructor(t,n){super(t,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,n){const r=this.getDataset().data,i=this._cachedMeta;if(this._parsing===!1)i._parsed=r;else{let o=l=>+r[l];if(rt(r[t])){const{key:l="value"}=this._parsing;o=c=>+As(r[c],l)}let s,a;for(s=t,a=t+n;s0&&!isNaN(t)?Mt*(Math.abs(t)/n):0}getLabelAndValue(t){const n=this._cachedMeta,r=this.chart,i=r.data.labels||[],o=Rd(n._parsed[t],r.options.locale);return{label:i[t]||"",value:o}}getMaxBorderWidth(t){let n=0;const r=this.chart;let i,o,s,a,l;if(!t){for(i=0,o=r.data.datasets.length;it!=="spacing",_indexable:t=>t!=="spacing"}),xe(us,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const n=t.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:r,color:i}}=t.legend.options;return n.labels.map((o,s)=>{const l=t.getDatasetMeta(0).controller.getStyle(s);return{text:o,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:i,lineWidth:l.borderWidth,pointStyle:r,hidden:!t.getDataVisibility(s),index:s}})}return[]}},onClick(t,n,r){r.chart.toggleDataVisibility(n.index),r.chart.update()}}}});class af extends wi{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const n=this._cachedMeta,{dataset:r,data:i=[],_dataset:o}=n,s=this.chart._animationsDisabled;let{start:a,count:l}=qL(n,i,s);this._drawStart=a,this._drawCount=l,GL(n)&&(a=0,l=i.length),r._chart=this.chart,r._datasetIndex=this.index,r._decimated=!!o._decimated,r.points=i;const c=this.resolveDatasetElementOptions(t);this.options.showLine||(c.borderWidth=0),c.segment=this.options.segment,this.updateElement(r,void 0,{animated:!s,options:c},t),this.updateElements(i,a,l,t)}updateElements(t,n,r,i){const o=i==="reset",{iScale:s,vScale:a,_stacked:l,_dataset:c}=this._cachedMeta,{sharedOptions:f,includeOptions:h}=this._getSharedOptions(n,i),p=s.axis,m=a.axis,{spanGaps:v,segment:y}=this.options,x=yc(v)?v:Number.POSITIVE_INFINITY,_=this.chart._animationsDisabled||o||i==="none",w=n+r,S=t.length;let T=n>0&&this.getParsed(n-1);for(let P=0;P=w){N.skip=!0;continue}const D=this.getParsed(P),z=ct(D[m]),A=N[p]=s.getPixelForValue(D[p],P),W=N[m]=o||z?a.getBasePixel():a.getPixelForValue(l?this.applyStack(a,D,l):D[m],P);N.skip=isNaN(A)||isNaN(W)||z,N.stop=P>0&&Math.abs(D[p]-T[p])>x,y&&(N.parsed=D,N.raw=c.data[P]),h&&(N.options=f||this.resolveDataElementOptions(P,k.active?"active":i)),_||this.updateElement(k,P,N,i),T=D}}getMaxOverflow(){const t=this._cachedMeta,n=t.dataset,r=n.options&&n.options.borderWidth||0,i=t.data||[];if(!i.length)return r;const o=i[0].size(this.resolveDataElementOptions(0)),s=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(r,o,s)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}xe(af,"id","line"),xe(af,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),xe(af,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});class lf extends wi{constructor(t,n){super(t,n),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const n=this._cachedMeta,r=this.chart,i=r.data.labels||[],o=Rd(n._parsed[t].r,r.options.locale);return{label:i[t]||"",value:o}}parseObjectData(t,n,r,i){return rD.bind(this)(t,n,r,i)}update(t){const n=this._cachedMeta.data;this._updateRadius(),this.updateElements(n,0,n.length,t)}getMinMax(){const t=this._cachedMeta,n={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach((r,i)=>{const o=this.getParsed(i).r;!isNaN(o)&&this.chart.getDataVisibility(i)&&(on.max&&(n.max=o))}),n}_updateRadius(){const t=this.chart,n=t.chartArea,r=t.options,i=Math.min(n.right-n.left,n.bottom-n.top),o=Math.max(i/2,0),s=Math.max(r.cutoutPercentage?o/100*r.cutoutPercentage:1,0),a=(o-s)/t.getVisibleDatasetCount();this.outerRadius=o-a*this.index,this.innerRadius=this.outerRadius-a}updateElements(t,n,r,i){const o=i==="reset",s=this.chart,l=s.options.animation,c=this._cachedMeta.rScale,f=c.xCenter,h=c.yCenter,p=c.getIndexAngle(0)-.5*It;let m=p,v;const y=360/this.countVisibleElements();for(v=0;v{!isNaN(this.getParsed(i).r)&&this.chart.getDataVisibility(i)&&n++}),n}_computeAngle(t,n,r){return this.chart.getDataVisibility(t)?yi(this.resolveDataElementOptions(t,n).angle||r):0}}xe(lf,"id","polarArea"),xe(lf,"defaults",{dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0}),xe(lf,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const n=t.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:r,color:i}}=t.legend.options;return n.labels.map((o,s)=>{const l=t.getDatasetMeta(0).controller.getStyle(s);return{text:o,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:i,lineWidth:l.borderWidth,pointStyle:r,hidden:!t.getDataVisibility(s),index:s}})}return[]}},onClick(t,n,r){r.chart.toggleDataVisibility(n.index),r.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}});class K1 extends us{}xe(K1,"id","pie"),xe(K1,"defaults",{cutout:0,rotation:0,circumference:360,radius:"100%"});class Wp extends wi{getLabelAndValue(t){const n=this._cachedMeta.vScale,r=this.getParsed(t);return{label:n.getLabels()[t],value:""+n.getLabelForValue(r[n.axis])}}parseObjectData(t,n,r,i){return rD.bind(this)(t,n,r,i)}update(t){const n=this._cachedMeta,r=n.dataset,i=n.data||[],o=n.iScale.getLabels();if(r.points=i,t!=="resize"){const s=this.resolveDatasetElementOptions(t);this.options.showLine||(s.borderWidth=0);const a={_loop:!0,_fullLoop:o.length===i.length,options:s};this.updateElement(r,void 0,a,t)}this.updateElements(i,0,i.length,t)}updateElements(t,n,r,i){const o=this._cachedMeta.rScale,s=i==="reset";for(let a=n;a0&&this.getParsed(n-1);for(let T=n;T0&&Math.abs(k[m]-S[m])>_,x&&(N.parsed=k,N.raw=c.data[T]),p&&(N.options=h||this.resolveDataElementOptions(T,P.active?"active":i)),w||this.updateElement(P,T,N,i),S=k}this.updateSharedOptions(h,i,f)}getMaxOverflow(){const t=this._cachedMeta,n=t.data||[];if(!this.options.showLine){let a=0;for(let l=n.length-1;l>=0;--l)a=Math.max(a,n[l].size(this.resolveDataElementOptions(l))/2);return a>0&&a}const r=t.dataset,i=r.options&&r.options.borderWidth||0;if(!n.length)return i;const o=n[0].size(this.resolveDataElementOptions(0)),s=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(i,o,s)/2}}xe(Yp,"id","scatter"),xe(Yp,"defaults",{datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1}),xe(Yp,"overrides",{interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}});var XB=Object.freeze({__proto__:null,BarController:sf,BubbleController:Hp,DoughnutController:us,LineController:af,PolarAreaController:lf,PieController:K1,RadarController:Wp,ScatterController:Yp});function pa(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class j2{static override(t){Object.assign(j2.prototype,t)}constructor(t){this.options=t||{}}init(){}formats(){return pa()}parse(){return pa()}format(){return pa()}add(){return pa()}diff(){return pa()}startOf(){return pa()}endOf(){return pa()}}var QB={_date:j2};function JB(e,t,n,r){const{controller:i,data:o,_sorted:s}=e,a=i._cachedMeta.iScale;if(a&&t===a.axis&&t!=="r"&&s&&o.length){const l=a._reversePixels?x7:bo;if(r){if(i._sharedOptions){const c=o[0],f=typeof c.getRange=="function"&&c.getRange(t);if(f){const h=l(o,t,n-f),p=l(o,t,n+f);return{lo:h.lo,hi:p.hi}}}}else return l(o,t,n)}return{lo:0,hi:o.length-1}}function Nd(e,t,n,r,i){const o=e.getSortedVisibleDatasetMetas(),s=n[t];for(let a=0,l=o.length;a{l[s](t[n],i)&&(o.push({element:l,datasetIndex:c,index:f}),a=a||l.inRange(t.x,t.y,i))}),r&&!a?[]:o}var r9={evaluateInteractionItems:Nd,modes:{index(e,t,n,r){const i=ba(t,e),o=n.axis||"x",s=n.includeInvisible||!1,a=n.intersect?c0(e,i,o,r,s):u0(e,i,o,!1,r,s),l=[];return a.length?(e.getSortedVisibleDatasetMetas().forEach(c=>{const f=a[0].index,h=c.data[f];h&&!h.skip&&l.push({element:h,datasetIndex:c.index,index:f})}),l):[]},dataset(e,t,n,r){const i=ba(t,e),o=n.axis||"xy",s=n.includeInvisible||!1;let a=n.intersect?c0(e,i,o,r,s):u0(e,i,o,!1,r,s);if(a.length>0){const l=a[0].datasetIndex,c=e.getDatasetMeta(l).data;a=[];for(let f=0;fn.pos===t)}function $O(e,t){return e.filter(n=>pD.indexOf(n.pos)===-1&&n.box.axis===t)}function wu(e,t){return e.sort((n,r)=>{const i=t?r:n,o=t?n:r;return i.weight===o.weight?i.index-o.index:i.weight-o.weight})}function i9(e){const t=[];let n,r,i,o,s,a;for(n=0,r=(e||[]).length;nc.box.fullSize),!0),r=wu(bu(t,"left"),!0),i=wu(bu(t,"right")),o=wu(bu(t,"top"),!0),s=wu(bu(t,"bottom")),a=$O(t,"x"),l=$O(t,"y");return{fullSize:n,leftAndTop:r.concat(o),rightAndBottom:i.concat(l).concat(s).concat(a),chartArea:bu(t,"chartArea"),vertical:r.concat(i).concat(l),horizontal:o.concat(s).concat(a)}}function BO(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function mD(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function l9(e,t,n,r){const{pos:i,box:o}=n,s=e.maxPadding;if(!rt(i)){n.size&&(e[i]-=n.size);const h=r[n.stack]||{size:0,count:1};h.size=Math.max(h.size,n.horizontal?o.height:o.width),n.size=h.size/h.count,e[i]+=n.size}o.getPadding&&mD(s,o.getPadding());const a=Math.max(0,t.outerWidth-BO(s,e,"left","right")),l=Math.max(0,t.outerHeight-BO(s,e,"top","bottom")),c=a!==e.w,f=l!==e.h;return e.w=a,e.h=l,n.horizontal?{same:c,other:f}:{same:f,other:c}}function c9(e){const t=e.maxPadding;function n(r){const i=Math.max(t[r]-e[r],0);return e[r]+=i,i}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}function u9(e,t){const n=t.maxPadding;function r(i){const o={left:0,top:0,right:0,bottom:0};return i.forEach(s=>{o[s]=Math.max(t[s],n[s])}),o}return r(e?["left","right"]:["top","bottom"])}function zu(e,t,n,r){const i=[];let o,s,a,l,c,f;for(o=0,s=e.length,c=0;o{typeof y.beforeLayout=="function"&&y.beforeLayout()});const f=l.reduce((y,x)=>x.box.options&&x.box.options.display===!1?y:y+1,0)||1,h=Object.freeze({outerWidth:t,outerHeight:n,padding:i,availableWidth:o,availableHeight:s,vBoxMaxWidth:o/2/f,hBoxMaxHeight:s/2}),p=Object.assign({},i);mD(p,er(r));const m=Object.assign({maxPadding:p,w:o,h:s,x:i.left,y:i.top},i),v=s9(l.concat(c),h);zu(a.fullSize,m,h,v),zu(l,m,h,v),zu(c,m,h,v)&&zu(l,m,h,v),c9(m),zO(a.leftAndTop,m,h,v),m.x+=m.w,m.y+=m.h,zO(a.rightAndBottom,m,h,v),e.chartArea={left:m.left,top:m.top,right:m.left+m.w,bottom:m.top+m.h,height:m.h,width:m.w},vt(a.chartArea,y=>{const x=y.box;Object.assign(x,e.chartArea),x.update(m.w,m.h,{left:0,top:0,right:0,bottom:0})})}};class gD{acquireContext(t,n){}releaseContext(t){return!1}addEventListener(t,n,r){}removeEventListener(t,n,r){}getDevicePixelRatio(){return 1}getMaximumSize(t,n,r,i){return n=Math.max(0,n||t.width),r=r||t.height,{width:n,height:Math.max(0,i?Math.floor(n/i):r)}}isAttached(t){return!0}updateConfig(t){}}class f9 extends gD{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const qp="$chartjs",d9={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},UO=e=>e===null||e==="";function h9(e,t){const n=e.style,r=e.getAttribute("height"),i=e.getAttribute("width");if(e[qp]={initial:{height:r,width:i,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",UO(i)){const o=CO(e,"width");o!==void 0&&(e.width=o)}if(UO(r))if(e.style.height==="")e.height=e.width/(t||2);else{const o=CO(e,"height");o!==void 0&&(e.height=o)}return e}const vD=mB?{passive:!0}:!1;function p9(e,t,n){e.addEventListener(t,n,vD)}function m9(e,t,n){e.canvas.removeEventListener(t,n,vD)}function g9(e,t){const n=d9[e.type]||e.type,{x:r,y:i}=ba(e,t);return{type:n,chart:t,native:e,x:r!==void 0?r:null,y:i!==void 0?i:null}}function ug(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function v9(e,t,n){const r=e.canvas,i=new MutationObserver(o=>{let s=!1;for(const a of o)s=s||ug(a.addedNodes,r),s=s&&!ug(a.removedNodes,r);s&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}function y9(e,t,n){const r=e.canvas,i=new MutationObserver(o=>{let s=!1;for(const a of o)s=s||ug(a.removedNodes,r),s=s&&!ug(a.addedNodes,r);s&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}const Ff=new Map;let VO=0;function yD(){const e=window.devicePixelRatio;e!==VO&&(VO=e,Ff.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function _9(e,t){Ff.size||window.addEventListener("resize",yD),Ff.set(e,t)}function b9(e){Ff.delete(e),Ff.size||window.removeEventListener("resize",yD)}function w9(e,t,n){const r=e.canvas,i=r&&A2(r);if(!i)return;const o=YL((a,l)=>{const c=i.clientWidth;n(a,l),c{const l=a[0],c=l.contentRect.width,f=l.contentRect.height;c===0&&f===0||o(c,f)});return s.observe(i),_9(e,o),s}function f0(e,t,n){n&&n.disconnect(),t==="resize"&&b9(e)}function x9(e,t,n){const r=e.canvas,i=YL(o=>{e.ctx!==null&&n(g9(o,e))},e);return p9(r,t,i),i}class S9 extends gD{acquireContext(t,n){const r=t&&t.getContext&&t.getContext("2d");return r&&r.canvas===t?(h9(t,n),r):null}releaseContext(t){const n=t.canvas;if(!n[qp])return!1;const r=n[qp].initial;["height","width"].forEach(o=>{const s=r[o];ct(s)?n.removeAttribute(o):n.setAttribute(o,s)});const i=r.style||{};return Object.keys(i).forEach(o=>{n.style[o]=i[o]}),n.width=n.width,delete n[qp],!0}addEventListener(t,n,r){this.removeEventListener(t,n);const i=t.$proxies||(t.$proxies={}),s={attach:v9,detach:y9,resize:w9}[n]||x9;i[n]=s(t,n,r)}removeEventListener(t,n){const r=t.$proxies||(t.$proxies={}),i=r[n];if(!i)return;({attach:f0,detach:f0,resize:f0}[n]||m9)(t,n,i),r[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,n,r,i){return pB(t,n,r,i)}isAttached(t){const n=A2(t);return!!(n&&n.isConnected)}}function C9(e){return!oD()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?f9:S9}var zp;let jo=(zp=class{constructor(){xe(this,"active",!1)}tooltipPosition(t){const{x:n,y:r}=this.getProps(["x","y"],t);return{x:n,y:r}}hasValue(){return yc(this.x)&&yc(this.y)}getProps(t,n){const r=this.$animations;if(!n||!r)return this;const i={};return t.forEach(o=>{i[o]=r[o]&&r[o].active()?r[o]._to:this[o]}),i}},xe(zp,"defaults",{}),xe(zp,"defaultRoutes"),zp);function E9(e,t){const n=e.options.ticks,r=T9(e),i=Math.min(n.maxTicksLimit||r,r),o=n.major.enabled?P9(t):[],s=o.length,a=o[0],l=o[s-1],c=[];if(s>i)return k9(t,c,o,s/i),c;const f=O9(o,t,i);if(s>0){let h,p;const m=s>1?Math.round((l-a)/(s-1)):null;for(Yh(t,c,f,ct(m)?0:a-m,a),h=0,p=s-1;hi)return l}return Math.max(i,1)}function P9(e){const t=[];let n,r;for(n=0,r=e.length;ne==="left"?"right":e==="right"?"left":e,HO=(e,t,n)=>t==="top"||t==="left"?e[t]+n:e[t]-n;function WO(e,t){const n=[],r=e.length/t,i=e.length;let o=0;for(;os+a)))return l}function L9(e,t){vt(e,n=>{const r=n.gc,i=r.length/2;let o;if(i>t){for(o=0;or?r:n,r=i&&n>r?n:r,{min:Tr(n,Tr(r,n)),max:Tr(r,Tr(n,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Ct(this.options.beforeUpdate,[this])}update(t,n,r){const{beginAtZero:i,grace:o,ticks:s}=this.options,a=s.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=n,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=Y7(this,o,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=a=o||r<=1||!this.isHorizontal()){this.labelRotation=i;return}const f=this._getLabelSizes(),h=f.widest.width,p=f.highest.height,m=En(this.chart.width-h,0,this.maxWidth);a=t.offset?this.maxWidth/r:m/(r-1),h+6>a&&(a=m/(r-(t.offset?.5:1)),l=this.maxHeight-xu(t.grid)-n.padding-YO(t.title,this.chart.options.font),c=Math.sqrt(h*h+p*p),s=P2(Math.min(Math.asin(En((f.highest.height+6)/a,-1,1)),Math.asin(En(l/c,-1,1))-Math.asin(En(p/c,-1,1)))),s=Math.max(i,Math.min(o,s))),this.labelRotation=s}afterCalculateLabelRotation(){Ct(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Ct(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:n,options:{ticks:r,title:i,grid:o}}=this,s=this._isVisible(),a=this.isHorizontal();if(s){const l=YO(i,n.options.font);if(a?(t.width=this.maxWidth,t.height=xu(o)+l):(t.height=this.maxHeight,t.width=xu(o)+l),r.display&&this.ticks.length){const{first:c,last:f,widest:h,highest:p}=this._getLabelSizes(),m=r.padding*2,v=yi(this.labelRotation),y=Math.cos(v),x=Math.sin(v);if(a){const _=r.mirror?0:x*h.width+y*p.height;t.height=Math.min(this.maxHeight,t.height+_+m)}else{const _=r.mirror?0:y*h.width+x*p.height;t.width=Math.min(this.maxWidth,t.width+_+m)}this._calculatePadding(c,f,x,y)}}this._handleMargins(),a?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,n,r,i){const{ticks:{align:o,padding:s},position:a}=this.options,l=this.labelRotation!==0,c=a!=="top"&&this.axis==="x";if(this.isHorizontal()){const f=this.getPixelForTick(0)-this.left,h=this.right-this.getPixelForTick(this.ticks.length-1);let p=0,m=0;l?c?(p=i*t.width,m=r*n.height):(p=r*t.height,m=i*n.width):o==="start"?m=n.width:o==="end"?p=t.width:o!=="inner"&&(p=t.width/2,m=n.width/2),this.paddingLeft=Math.max((p-f+s)*this.width/(this.width-f),0),this.paddingRight=Math.max((m-h+s)*this.width/(this.width-h),0)}else{let f=n.height/2,h=t.height/2;o==="start"?(f=0,h=t.height):o==="end"&&(f=n.height,h=0),this.paddingTop=f+s,this.paddingBottom=h+s}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){Ct(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:n}=this.options;return n==="top"||n==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let n,r;for(n=0,r=t.length;n({width:o[N]||0,height:s[N]||0});return{first:k(0),last:k(n-1),widest:k(T),highest:k(P),widths:o,heights:s}}getLabelForValue(t){return t}getPixelForValue(t,n){return NaN}getValueForPixel(t){}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const n=this._startPixel+t*this._length;return w7(this._alignToPixels?ha(this.chart,n,0):n)}getDecimalForPixel(t){const n=(t-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:n}=this;return t<0&&n<0?n:t>0&&n>0?t:0}getContext(t){const n=this.ticks||[];if(t>=0&&ta*i?a/r:l/i:l*i0}_computeGridLineItems(t){const n=this.axis,r=this.chart,i=this.options,{grid:o,position:s,border:a}=i,l=o.offset,c=this.isHorizontal(),h=this.ticks.length+(l?1:0),p=xu(o),m=[],v=a.setContext(this.getContext()),y=v.display?v.width:0,x=y/2,_=function(ie){return ha(r,ie,y)};let w,S,T,P,k,N,D,z,A,W,Y,J;if(s==="top")w=_(this.bottom),N=this.bottom-p,z=w-x,W=_(t.top)+x,J=t.bottom;else if(s==="bottom")w=_(this.top),W=t.top,J=_(t.bottom)-x,N=w+x,z=this.top+p;else if(s==="left")w=_(this.right),k=this.right-p,D=w-x,A=_(t.left)+x,Y=t.right;else if(s==="right")w=_(this.left),A=t.left,Y=_(t.right)-x,k=w+x,D=this.left+p;else if(n==="x"){if(s==="center")w=_((t.top+t.bottom)/2+.5);else if(rt(s)){const ie=Object.keys(s)[0],oe=s[ie];w=_(this.chart.scales[ie].getPixelForValue(oe))}W=t.top,J=t.bottom,N=w+x,z=N+p}else if(n==="y"){if(s==="center")w=_((t.left+t.right)/2);else if(rt(s)){const ie=Object.keys(s)[0],oe=s[ie];w=_(this.chart.scales[ie].getPixelForValue(oe))}k=w-x,D=k-p,A=t.left,Y=t.right}const Z=Ke(i.ticks.maxTicksLimit,h),ee=Math.max(1,Math.ceil(h/Z));for(S=0;So.value===t);return i>=0?n.setContext(this.getContext(i)).lineWidth:0}drawGrid(t){const n=this.options.grid,r=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let o,s;const a=(l,c,f)=>{!f.width||!f.color||(r.save(),r.lineWidth=f.width,r.strokeStyle=f.color,r.setLineDash(f.borderDash||[]),r.lineDashOffset=f.borderDashOffset,r.beginPath(),r.moveTo(l.x,l.y),r.lineTo(c.x,c.y),r.stroke(),r.restore())};if(n.display)for(o=0,s=i.length;o{this.draw(o)}}]:[{z:r,draw:o=>{this.drawBackground(),this.drawGrid(o),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:n,draw:o=>{this.drawLabels(o)}}]}getMatchingVisibleMetas(t){const n=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",i=[];let o,s;for(o=0,s=n.length;o{const r=n.split("."),i=r.pop(),o=[e].concat(r).join("."),s=t[n].split("."),a=s.pop(),l=s.join(".");tn.route(o,i,l,a)})}function B9(e){return"id"in e&&"defaults"in e}class z9{constructor(){this.controllers=new qh(wi,"datasets",!0),this.elements=new qh(jo,"elements"),this.plugins=new qh(Object,"plugins"),this.scales=new qh(al,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,n,r){[...n].forEach(i=>{const o=r||this._getRegistryForType(i);r||o.isForType(i)||o===this.plugins&&i.id?this._exec(t,o,i):vt(i,s=>{const a=r||this._getRegistryForType(s);this._exec(t,a,s)})})}_exec(t,n,r){const i=O2(t);Ct(r["before"+i],[],r),n[t](r),Ct(r["after"+i],[],r)}_getRegistryForType(t){for(let n=0;no.filter(a=>!s.some(l=>a.plugin.id===l.plugin.id));this._notify(i(n,r),t,"stop"),this._notify(i(r,n),t,"start")}}function V9(e){const t={},n=[],r=Object.keys(Bi.plugins.items);for(let o=0;o1&&fg(e[0].toLowerCase(),t),e))return e;throw new Error(`Cannot determine type of '${name}' axis. Please provide 'axis' or 'position' option.`)}function K9(e,t){const n=Ha[e.type]||{scales:{}},r=t.scales||{},i=X1(e.type,t),o=Object.create(null);return Object.keys(r).forEach(s=>{const a=r[s];if(!rt(a))return console.error(`Invalid scale configuration for scale: ${s}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${s}`);const l=fg(s,a),c=G9(l,i),f=n.scales||{};o[s]=tf(Object.create(null),[{axis:l},a,f[l],f[c]])}),e.data.datasets.forEach(s=>{const a=s.type||e.type,l=s.indexAxis||X1(a,t),f=(Ha[a]||{}).scales||{};Object.keys(f).forEach(h=>{const p=q9(h,l),m=s[p+"AxisID"]||p;o[m]=o[m]||Object.create(null),tf(o[m],[{axis:p},r[m],f[h]])})}),Object.keys(o).forEach(s=>{const a=o[s];tf(a,[tn.scales[a.type],tn.scale])}),o}function _D(e){const t=e.options||(e.options={});t.plugins=Ke(t.plugins,{}),t.scales=K9(e,t)}function bD(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function X9(e){return e=e||{},e.data=bD(e.data),_D(e),e}const qO=new Map,wD=new Set;function Gh(e,t){let n=qO.get(e);return n||(n=t(),qO.set(e,n),wD.add(n)),n}const Su=(e,t,n)=>{const r=As(t,n);r!==void 0&&e.add(r)};class Q9{constructor(t){this._config=X9(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=bD(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),_D(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Gh(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,n){return Gh(`${t}.transition.${n}`,()=>[[`datasets.${t}.transitions.${n}`,`transitions.${n}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,n){return Gh(`${t}-${n}`,()=>[[`datasets.${t}.elements.${n}`,`datasets.${t}`,`elements.${n}`,""]])}pluginScopeKeys(t){const n=t.id,r=this.type;return Gh(`${r}-plugin-${n}`,()=>[[`plugins.${n}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,n){const r=this._scopeCache;let i=r.get(t);return(!i||n)&&(i=new Map,r.set(t,i)),i}getOptionScopes(t,n,r){const{options:i,type:o}=this,s=this._cachedScopes(t,r),a=s.get(n);if(a)return a;const l=new Set;n.forEach(f=>{t&&(l.add(t),f.forEach(h=>Su(l,t,h))),f.forEach(h=>Su(l,i,h)),f.forEach(h=>Su(l,Ha[o]||{},h)),f.forEach(h=>Su(l,tn,h)),f.forEach(h=>Su(l,G1,h))});const c=Array.from(l);return c.length===0&&c.push(Object.create(null)),wD.has(n)&&s.set(n,c),c}chartOptionScopes(){const{options:t,type:n}=this;return[t,Ha[n]||{},tn.datasets[n]||{},{type:n},tn,G1]}resolveNamedOptions(t,n,r,i=[""]){const o={$shared:!0},{resolver:s,subPrefixes:a}=GO(this._resolverCache,t,i);let l=s;if(ez(s,n)){o.$shared=!1,r=js(r)?r():r;const c=this.createResolver(t,r,a);l=_c(s,r,c)}for(const c of n)o[c]=l[c];return o}createResolver(t,n,r=[""],i){const{resolver:o}=GO(this._resolverCache,t,r);return rt(n)?_c(o,n,void 0,i):o}}function GO(e,t,n){let r=e.get(t);r||(r=new Map,e.set(t,r));const i=n.join();let o=r.get(i);return o||(o={resolver:N2(t,n),subPrefixes:n.filter(a=>!a.toLowerCase().includes("hover"))},r.set(i,o)),o}const J9=e=>rt(e)&&Object.getOwnPropertyNames(e).reduce((t,n)=>t||js(e[n]),!1);function ez(e,t){const{isScriptable:n,isIndexable:r}=JL(e);for(const i of t){const o=n(i),s=r(i),a=(s||o)&&e[i];if(o&&(js(a)||J9(a))||s&&kt(a))return!0}return!1}var tz="4.1.1";const nz=["top","bottom","left","right","chartArea"];function ZO(e,t){return e==="top"||e==="bottom"||nz.indexOf(e)===-1&&t==="x"}function KO(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function XO(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),Ct(n&&n.onComplete,[e],t)}function rz(e){const t=e.chart,n=t.options.animation;Ct(n&&n.onProgress,[e],t)}function xD(e){return oD()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const Gp={},QO=e=>{const t=xD(e);return Object.values(Gp).filter(n=>n.canvas===t).pop()};function iz(e,t,n){const r=Object.keys(e);for(const i of r){const o=+i;if(o>=t){const s=e[i];delete e[i],(n>0||o>t)&&(e[o+n]=s)}}}function oz(e,t,n,r){return!n||e.type==="mouseout"?null:r?t:e}function sz(e){const{xScale:t,yScale:n}=e;if(t&&n)return{left:t.left,right:t.right,top:n.top,bottom:n.bottom}}var Qo;let cy=(Qo=class{static register(...t){Bi.add(...t),JO()}static unregister(...t){Bi.remove(...t),JO()}constructor(t,n){const r=this.config=new Q9(n),i=xD(t),o=QO(i);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");const s=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||C9(i)),this.platform.updateConfig(r);const a=this.platform.acquireContext(i,s.aspectRatio),l=a&&a.canvas,c=l&&l.height,f=l&&l.width;if(this.id=c7(),this.ctx=a,this.canvas=l,this.width=f,this.height=c,this._options=s,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new U9,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=E7(h=>this.update(h),s.resizeDelay||0),this._dataChanges=[],Gp[this.id]=this,!a||!l){console.error("Failed to create chart: can't acquire context from the given item");return}uo.listen(this,"complete",XO),uo.listen(this,"progress",rz),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:n},width:r,height:i,_aspectRatio:o}=this;return ct(t)?n&&o?o:i?r/i:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return Bi}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():SO(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return bO(this.canvas,this.ctx),this}stop(){return uo.stop(this),this}resize(t,n){uo.running(this)?this._resizeBeforeDraw={width:t,height:n}:this._resize(t,n)}_resize(t,n){const r=this.options,i=this.canvas,o=r.maintainAspectRatio&&this.aspectRatio,s=this.platform.getMaximumSize(i,t,n,o),a=r.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=s.width,this.height=s.height,this._aspectRatio=this.aspectRatio,SO(this,a,!0)&&(this.notifyPlugins("resize",{size:s}),Ct(r.onResize,[this,s],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};vt(n,(r,i)=>{r.id=i})}buildOrUpdateScales(){const t=this.options,n=t.scales,r=this.scales,i=Object.keys(r).reduce((s,a)=>(s[a]=!1,s),{});let o=[];n&&(o=o.concat(Object.keys(n).map(s=>{const a=n[s],l=fg(s,a),c=l==="r",f=l==="x";return{options:a,dposition:c?"chartArea":f?"bottom":"left",dtype:c?"radialLinear":f?"category":"linear"}}))),vt(o,s=>{const a=s.options,l=a.id,c=fg(l,a),f=Ke(a.type,s.dtype);(a.position===void 0||ZO(a.position,c)!==ZO(s.dposition))&&(a.position=s.dposition),i[l]=!0;let h=null;if(l in r&&r[l].type===f)h=r[l];else{const p=Bi.getScale(f);h=new p({id:l,type:f,ctx:this.ctx,chart:this}),r[h.id]=h}h.init(a,t)}),vt(i,(s,a)=>{s||delete r[a]}),vt(r,s=>{Jn.configure(this,s,s.options),Jn.addBox(this,s)})}_updateMetasets(){const t=this._metasets,n=this.data.datasets.length,r=t.length;if(t.sort((i,o)=>i.index-o.index),r>n){for(let i=n;in.length&&delete this._stacks,t.forEach((r,i)=>{n.filter(o=>o===r._dataset).length===0&&this._destroyDatasetMeta(i)})}buildOrUpdateControllers(){const t=[],n=this.data.datasets;let r,i;for(this._removeUnreferencedMetasets(),r=0,i=n.length;r{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const n=this.config;n.update();const r=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let s=0;for(let c=0,f=this.data.datasets.length;c{c.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(KO("z","_idx"));const{_active:a,_lastEvent:l}=this;l?this._eventHandler(l,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){vt(this.scales,t=>{Jn.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,n=new Set(Object.keys(this._listeners)),r=new Set(t.events);(!fO(n,r)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,n=this._getUniformDataChanges()||[];for(const{method:r,start:i,count:o}of n){const s=r==="_removeElements"?-o:o;iz(t,i,s)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const n=this.data.datasets.length,r=o=>new Set(t.filter(s=>s[0]===o).map((s,a)=>a+","+s.splice(1).join(","))),i=r(0);for(let o=1;oo.split(",")).map(o=>({method:o[1],start:+o[2],count:+o[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;Jn.update(this,this.width,this.height,t);const n=this.chartArea,r=n.width<=0||n.height<=0;this._layers=[],vt(this.boxes,i=>{r&&i.position==="chartArea"||(i.configure&&i.configure(),this._layers.push(...i._layers()))},this),this._layers.forEach((i,o)=>{i._idx=o}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let n=0,r=this.data.datasets.length;n=0;--n)this._drawDataset(t[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const n=this.ctx,r=t._clip,i=!r.disabled,o=sz(t)||this.chartArea,s={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",s)!==!1&&(i&&sy(n,{left:r.left===!1?0:o.left-r.left,right:r.right===!1?this.width:o.right+r.right,top:r.top===!1?0:o.top-r.top,bottom:r.bottom===!1?this.height:o.bottom+r.bottom}),t.controller.draw(),i&&ay(n),s.cancelable=!1,this.notifyPlugins("afterDatasetDraw",s))}isPointInArea(t){return jf(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,n,r,i){const o=r9.modes[n];return typeof o=="function"?o(this,t,r,i):[]}getDatasetMeta(t){const n=this.data.datasets[t],r=this._metasets;let i=r.filter(o=>o&&o._dataset===n).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:t,_dataset:n,_parsed:[],_sorted:!1},r.push(i)),i}getContext(){return this.$context||(this.$context=qs(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const n=this.data.datasets[t];if(!n)return!1;const r=this.getDatasetMeta(t);return typeof r.hidden=="boolean"?!r.hidden:!n.hidden}setDatasetVisibility(t,n){const r=this.getDatasetMeta(t);r.hidden=!n}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,n,r){const i=r?"show":"hide",o=this.getDatasetMeta(t),s=o.controller._resolveAnimations(void 0,i);Qr(n)?(o.data[n].hidden=!r,this.update()):(this.setDatasetVisibility(t,r),s.update(o,{visible:r}),this.update(a=>a.datasetIndex===t?i:void 0))}hide(t,n){this._updateVisibility(t,n,!1)}show(t,n){this._updateVisibility(t,n,!0)}_destroyDatasetMeta(t){const n=this._metasets[t];n&&n.controller&&n.controller._destroy(),delete this._metasets[t]}_stop(){let t,n;for(this.stop(),uo.remove(this),t=0,n=this.data.datasets.length;t{n.addEventListener(this,o,s),t[o]=s},i=(o,s,a)=>{o.offsetX=s,o.offsetY=a,this._eventHandler(o)};vt(this.options.events,o=>r(o,i))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,n=this.platform,r=(l,c)=>{n.addEventListener(this,l,c),t[l]=c},i=(l,c)=>{t[l]&&(n.removeEventListener(this,l,c),delete t[l])},o=(l,c)=>{this.canvas&&this.resize(l,c)};let s;const a=()=>{i("attach",a),this.attached=!0,this.resize(),r("resize",o),r("detach",s)};s=()=>{this.attached=!1,i("resize",o),this._stop(),this._resize(0,0),r("attach",a)},n.isAttached(this.canvas)?a():s()}unbindEvents(){vt(this._listeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._listeners={},vt(this._responsiveListeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,n,r){const i=r?"set":"remove";let o,s,a,l;for(n==="dataset"&&(o=this.getDatasetMeta(t[0].datasetIndex),o.controller["_"+i+"DatasetHoverStyle"]()),a=0,l=t.length;a{const a=this.getDatasetMeta(o);if(!a)throw new Error("No dataset found at index "+o);return{datasetIndex:o,element:a.data[s],index:s}});!og(r,n)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,n))}notifyPlugins(t,n,r){return this._plugins.notify(this,t,n,r)}isPluginEnabled(t){return this._plugins._cache.filter(n=>n.plugin.id===t).length===1}_updateHoverStyles(t,n,r){const i=this.options.hover,o=(l,c)=>l.filter(f=>!c.some(h=>f.datasetIndex===h.datasetIndex&&f.index===h.index)),s=o(n,t),a=r?t:o(t,n);s.length&&this.updateHoverStyle(s,i.mode,!1),a.length&&i.mode&&this.updateHoverStyle(a,i.mode,!0)}_eventHandler(t,n){const r={event:t,replay:n,cancelable:!0,inChartArea:this.isPointInArea(t)},i=s=>(s.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",r,i)===!1)return;const o=this._handleEvent(t,n,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,i),(o||r.changed)&&this.render(),this}_handleEvent(t,n,r){const{_active:i=[],options:o}=this,s=n,a=this._getActiveElements(t,i,r,s),l=m7(t),c=oz(t,this._lastEvent,r,l);r&&(this._lastEvent=null,Ct(o.onHover,[t,a,this],this),l&&Ct(o.onClick,[t,a,this],this));const f=!og(a,i);return(f||n)&&(this._active=a,this._updateHoverStyles(a,i,n)),this._lastEvent=c,f}_getActiveElements(t,n,r,i){if(t.type==="mouseout")return[];if(!r)return n;const o=this.options.hover;return this.getElementsAtEventForMode(t,o.mode,o,i)}},xe(Qo,"defaults",tn),xe(Qo,"instances",Gp),xe(Qo,"overrides",Ha),xe(Qo,"registry",Bi),xe(Qo,"version",tz),xe(Qo,"getChart",QO),Qo);function JO(){return vt(cy.instances,e=>e._plugins.invalidate())}function az(e,t,n){const{startAngle:r,pixelMargin:i,x:o,y:s,outerRadius:a,innerRadius:l}=t;let c=i/a;e.beginPath(),e.arc(o,s,a,r-c,n+c),l>i?(c=i/l,e.arc(o,s,l,n+c,r-c,!0)):e.arc(o,s,i,n+Gt,r-Gt),e.closePath(),e.clip()}function lz(e){return R2(e,["outerStart","outerEnd","innerStart","innerEnd"])}function cz(e,t,n,r){const i=lz(e.options.borderRadius),o=(n-t)/2,s=Math.min(o,r*t/2),a=l=>{const c=(n-Math.min(o,l))*r/2;return En(l,0,Math.min(o,c))};return{outerStart:a(i.outerStart),outerEnd:a(i.outerEnd),innerStart:En(i.innerStart,0,s),innerEnd:En(i.innerEnd,0,s)}}function Cl(e,t,n,r){return{x:n+e*Math.cos(t),y:r+e*Math.sin(t)}}function dg(e,t,n,r,i,o){const{x:s,y:a,startAngle:l,pixelMargin:c,innerRadius:f}=t,h=Math.max(t.outerRadius+r+n-c,0),p=f>0?f+r+n+c:0;let m=0;const v=i-l;if(r){const ee=f>0?f-r:0,ie=h>0?h-r:0,oe=(ee+ie)/2,G=oe!==0?v*oe/(oe+r):v;m=(v-G)/2}const y=Math.max(.001,v*h-n/It)/h,x=(v-y)/2,_=l+x+m,w=i-x-m,{outerStart:S,outerEnd:T,innerStart:P,innerEnd:k}=cz(t,p,h,w-_),N=h-S,D=h-T,z=_+S/N,A=w-T/D,W=p+P,Y=p+k,J=_+P/W,Z=w-k/Y;if(e.beginPath(),o){const ee=(z+A)/2;if(e.arc(s,a,h,z,ee),e.arc(s,a,h,ee,A),T>0){const F=Cl(D,A,s,a);e.arc(F.x,F.y,T,A,w+Gt)}const ie=Cl(Y,w,s,a);if(e.lineTo(ie.x,ie.y),k>0){const F=Cl(Y,Z,s,a);e.arc(F.x,F.y,k,w+Gt,Z+Math.PI)}const oe=(w-k/p+(_+P/p))/2;if(e.arc(s,a,p,w-k/p,oe,!0),e.arc(s,a,p,oe,_+P/p,!0),P>0){const F=Cl(W,J,s,a);e.arc(F.x,F.y,P,J+Math.PI,_-Gt)}const G=Cl(N,_,s,a);if(e.lineTo(G.x,G.y),S>0){const F=Cl(N,z,s,a);e.arc(F.x,F.y,S,_-Gt,z)}}else{e.moveTo(s,a);const ee=Math.cos(z)*h+s,ie=Math.sin(z)*h+a;e.lineTo(ee,ie);const oe=Math.cos(A)*h+s,G=Math.sin(A)*h+a;e.lineTo(oe,G)}e.closePath()}function uz(e,t,n,r,i){const{fullCircles:o,startAngle:s,circumference:a}=t;let l=t.endAngle;if(o){dg(e,t,n,r,l,i);for(let c=0;c=Mt||Af(o,a,l),y=_o(s,c+p,f+p);return v&&y}getCenterPoint(t){const{x:n,y:r,startAngle:i,endAngle:o,innerRadius:s,outerRadius:a}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],t),{offset:l,spacing:c}=this.options,f=(i+o)/2,h=(s+a+c+l)/2;return{x:n+Math.cos(f)*h,y:r+Math.sin(f)*h}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:n,circumference:r}=this,i=(n.offset||0)/4,o=(n.spacing||0)/2,s=n.circular;if(this.pixelMargin=n.borderAlign==="inner"?.33:0,this.fullCircles=r>Mt?Math.floor(r/Mt):0,r===0||this.innerRadius<0||this.outerRadius<0)return;t.save();const a=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(a)*i,Math.sin(a)*i);const l=1-Math.sin(Math.min(It,r||0)),c=i*l;t.fillStyle=n.backgroundColor,t.strokeStyle=n.borderColor,uz(t,this,c,o,s),fz(t,this,c,o,s),t.restore()}}xe(Zp,"id","arc"),xe(Zp,"defaults",{borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),xe(Zp,"defaultRoutes",{backgroundColor:"backgroundColor"});function SD(e,t,n=t){e.lineCap=Ke(n.borderCapStyle,t.borderCapStyle),e.setLineDash(Ke(n.borderDash,t.borderDash)),e.lineDashOffset=Ke(n.borderDashOffset,t.borderDashOffset),e.lineJoin=Ke(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=Ke(n.borderWidth,t.borderWidth),e.strokeStyle=Ke(n.borderColor,t.borderColor)}function dz(e,t,n){e.lineTo(n.x,n.y)}function hz(e){return e.stepped?I7:e.tension||e.cubicInterpolationMode==="monotone"?F7:dz}function CD(e,t,n={}){const r=e.length,{start:i=0,end:o=r-1}=n,{start:s,end:a}=t,l=Math.max(i,s),c=Math.min(o,a),f=ia&&o>a;return{count:r,start:l,loop:t.loop,ilen:c(s+(c?a-T:T))%o,S=()=>{y!==x&&(e.lineTo(f,x),e.lineTo(f,y),e.lineTo(f,_))};for(l&&(m=i[w(0)],e.moveTo(m.x,m.y)),p=0;p<=a;++p){if(m=i[w(p)],m.skip)continue;const T=m.x,P=m.y,k=T|0;k===v?(Px&&(x=P),f=(h*f+T)/++h):(S(),e.lineTo(T,P),v=k,h=0,y=x=P),_=P}S()}function Q1(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!n?mz:pz}function gz(e){return e.stepped?gB:e.tension||e.cubicInterpolationMode==="monotone"?vB:wa}function vz(e,t,n,r){let i=t._path;i||(i=t._path=new Path2D,t.path(i,n,r)&&i.closePath()),SD(e,t.options),e.stroke(i)}function yz(e,t,n,r){const{segments:i,options:o}=t,s=Q1(t);for(const a of i)SD(e,o,a.style),e.beginPath(),s(e,t,a,{start:n,end:n+r-1})&&e.closePath(),e.stroke()}const _z=typeof Path2D=="function";function bz(e,t,n,r){_z&&!t.options.segment?vz(e,t,n,r):yz(e,t,n,r)}class fs extends jo{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,n){const r=this.options;if((r.tension||r.cubicInterpolationMode==="monotone")&&!r.stepped&&!this._pointsUpdated){const i=r.spanGaps?this._loop:this._fullLoop;lB(this._points,r,t,i,n),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=SB(this,this.options.segment))}first(){const t=this.segments,n=this.points;return t.length&&n[t[0].start]}last(){const t=this.segments,n=this.points,r=t.length;return r&&n[t[r-1].end]}interpolate(t,n){const r=this.options,i=t[n],o=this.points,s=uD(this,{property:n,start:i,end:i});if(!s.length)return;const a=[],l=gz(r);let c,f;for(c=0,f=s.length;ct!=="borderDash"&&t!=="fill"});function eP(e,t,n,r){const i=e.options,{[n]:o}=e.getProps([n],r);return Math.abs(t-o)e.replace("rgb(","rgba(").replace(")",", 0.5)"));function TD(e){return J1[e%J1.length]}function OD(e){return tP[e%tP.length]}function Oz(e,t){return e.borderColor=TD(t),e.backgroundColor=OD(t),++t}function Pz(e,t){return e.backgroundColor=e.data.map(()=>TD(t++)),t}function kz(e,t){return e.backgroundColor=e.data.map(()=>OD(t++)),t}function Mz(e){let t=0;return(n,r)=>{const i=e.getDatasetMeta(r).controller;i instanceof us?t=Pz(n,t):i instanceof lf?t=kz(n,t):i&&(t=Oz(n,t))}}function nP(e){let t;for(t in e)if(e[t].borderColor||e[t].backgroundColor)return!0;return!1}var Rz={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(e,t,n){if(!n.enabled)return;const{options:{elements:r},data:{datasets:i}}=e.config;if(!n.forceOverride&&(nP(i)||r&&nP(r)))return;const o=Mz(e);i.forEach(o)}};function Nz(e,t,n,r,i){const o=i.samples||r;if(o>=n)return e.slice(t,t+n);const s=[],a=(n-2)/(o-2);let l=0;const c=t+n-1;let f=t,h,p,m,v,y;for(s[l++]=e[f],h=0;hm&&(m=v,p=e[w],y=w);s[l++]=p,f=y}return s[l++]=e[c],s}function Lz(e,t,n,r){let i=0,o=0,s,a,l,c,f,h,p,m,v,y;const x=[],_=t+n-1,w=e[t].x,T=e[_].x-w;for(s=t;sy&&(y=c,p=s),i=(o*i+a.x)/++o;else{const k=s-1;if(!ct(h)&&!ct(p)){const N=Math.min(h,p),D=Math.max(h,p);N!==m&&N!==k&&x.push({...e[N],x:i}),D!==m&&D!==k&&x.push({...e[D],x:i})}s>0&&k!==m&&x.push(e[k]),x.push(a),f=P,o=0,v=y=c,h=p=m=s}}return x}function PD(e){if(e._decimated){const t=e._data;delete e._decimated,delete e._data,Object.defineProperty(e,"data",{value:t})}}function rP(e){e.data.datasets.forEach(t=>{PD(t)})}function Dz(e,t){const n=t.length;let r=0,i;const{iScale:o}=e,{min:s,max:a,minDefined:l,maxDefined:c}=o.getUserBounds();return l&&(r=En(bo(t,o.axis,s).lo,0,n-1)),c?i=En(bo(t,o.axis,a).hi+1,r,n)-r:i=n-r,{start:r,count:i}}var Az={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(e,t,n)=>{if(!n.enabled){rP(e);return}const r=e.width;e.data.datasets.forEach((i,o)=>{const{_data:s,indexAxis:a}=i,l=e.getDatasetMeta(o),c=s||i.data;if(Bu([a,e.options.indexAxis])==="y"||!l.controller.supportsDecimation)return;const f=e.scales[l.xAxisID];if(f.type!=="linear"&&f.type!=="time"||e.options.parsing)return;let{start:h,count:p}=Dz(l,c);const m=n.threshold||4*r;if(p<=m){PD(i);return}ct(s)&&(i._data=c,delete i.data,Object.defineProperty(i,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(y){this._data=y}}));let v;switch(n.algorithm){case"lttb":v=Nz(c,h,p,r,n);break;case"min-max":v=Lz(c,h,p,r);break;default:throw new Error(`Unsupported decimation algorithm '${n.algorithm}'`)}i._decimated=v})},destroy(e){rP(e)}};function jz(e,t,n){const r=e.segments,i=e.points,o=t.points,s=[];for(const a of r){let{start:l,end:c}=a;c=I2(l,c,i);const f=eb(n,i[l],i[c],a.loop);if(!t.segments){s.push({source:a,target:f,start:i[l],end:i[c]});continue}const h=uD(t,f);for(const p of h){const m=eb(n,o[p.start],o[p.end],p.loop),v=cD(a,i,m);for(const y of v)s.push({source:y,target:p,start:{[n]:iP(f,m,"start",Math.max)},end:{[n]:iP(f,m,"end",Math.min)}})}}return s}function eb(e,t,n,r){if(r)return;let i=t[e],o=n[e];return e==="angle"&&(i=Pr(i),o=Pr(o)),{property:e,start:i,end:o}}function Iz(e,t){const{x:n=null,y:r=null}=e||{},i=t.points,o=[];return t.segments.forEach(({start:s,end:a})=>{a=I2(s,a,i);const l=i[s],c=i[a];r!==null?(o.push({x:l.x,y:r}),o.push({x:c.x,y:r})):n!==null&&(o.push({x:n,y:l.y}),o.push({x:n,y:c.y}))}),o}function I2(e,t,n){for(;t>e;t--){const r=n[t];if(!isNaN(r.x)&&!isNaN(r.y))break}return t}function iP(e,t,n,r){return e&&t?r(e[n],t[n]):e?e[n]:t?t[n]:0}function kD(e,t){let n=[],r=!1;return kt(e)?(r=!0,n=e):n=Iz(e,t),n.length?new fs({points:n,options:{tension:0},_loop:r,_fullLoop:r}):null}function oP(e){return e&&e.fill!==!1}function Fz(e,t,n){let i=e[t].fill;const o=[t];let s;if(!n)return i;for(;i!==!1&&o.indexOf(i)===-1;){if(!qt(i))return i;if(s=e[i],!s)return!1;if(s.visible)return i;o.push(i),i=s.fill}return!1}function $z(e,t,n){const r=Vz(e);if(rt(r))return isNaN(r.value)?!1:r;let i=parseFloat(r);return qt(i)&&Math.floor(i)===i?Bz(r[0],t,i,n):["origin","start","end","stack","shape"].indexOf(r)>=0&&r}function Bz(e,t,n,r){return(e==="-"||e==="+")&&(n=t+n),n===t||n<0||n>=r?!1:n}function zz(e,t){let n=null;return e==="start"?n=t.bottom:e==="end"?n=t.top:rt(e)?n=t.getPixelForValue(e.value):t.getBasePixel&&(n=t.getBasePixel()),n}function Uz(e,t,n){let r;return e==="start"?r=n:e==="end"?r=t.options.reverse?t.min:t.max:rt(e)?r=e.value:r=t.getBaseValue(),r}function Vz(e){const t=e.options,n=t.fill;let r=Ke(n&&n.target,n);return r===void 0&&(r=!!t.backgroundColor),r===!1||r===null?!1:r===!0?"origin":r}function Hz(e){const{scale:t,index:n,line:r}=e,i=[],o=r.segments,s=r.points,a=Wz(t,n);a.push(kD({x:null,y:t.bottom},r));for(let l=0;l=0;--s){const a=i[s].$filler;a&&(a.line.updateControlPoints(o,a.axis),r&&a.fill&&p0(e.ctx,a,o))}},beforeDatasetsDraw(e,t,n){if(n.drawTime!=="beforeDatasetsDraw")return;const r=e.getSortedVisibleDatasetMetas();for(let i=r.length-1;i>=0;--i){const o=r[i].$filler;oP(o)&&p0(e.ctx,o,e.chartArea)}},beforeDatasetDraw(e,t,n){const r=t.meta.$filler;!oP(r)||n.drawTime!=="beforeDatasetDraw"||p0(e.ctx,r,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const cP=(e,t)=>{let{boxHeight:n=t,boxWidth:r=t}=e;return e.usePointStyle&&(n=Math.min(n,t),r=e.pointStyleWidth||Math.min(r,t)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(t,n)}},nU=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class uP extends jo{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n,r){this.maxWidth=t,this.maxHeight=n,this._margins=r,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let n=Ct(t.generateLabels,[this.chart],this)||[];t.filter&&(n=n.filter(r=>t.filter(r,this.chart.data))),t.sort&&(n=n.sort((r,i)=>t.sort(r,i,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:t,ctx:n}=this;if(!t.display){this.width=this.height=0;return}const r=t.labels,i=gn(r.font),o=i.size,s=this._computeTitleHeight(),{boxWidth:a,itemHeight:l}=cP(r,o);let c,f;n.font=i.string,this.isHorizontal()?(c=this.maxWidth,f=this._fitRows(s,o,a,l)+10):(f=this.maxHeight,c=this._fitCols(s,i,a,l)+10),this.width=Math.min(c,t.maxWidth||this.maxWidth),this.height=Math.min(f,t.maxHeight||this.maxHeight)}_fitRows(t,n,r,i){const{ctx:o,maxWidth:s,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],f=i+a;let h=t;o.textAlign="left",o.textBaseline="middle";let p=-1,m=-f;return this.legendItems.forEach((v,y)=>{const x=r+n/2+o.measureText(v.text).width;(y===0||c[c.length-1]+x+2*a>s)&&(h+=f,c[c.length-(y>0?0:1)]=0,m+=f,p++),l[y]={left:0,top:m,row:p,width:x,height:i},c[c.length-1]+=x+a}),h}_fitCols(t,n,r,i){const{ctx:o,maxHeight:s,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],f=s-t;let h=a,p=0,m=0,v=0,y=0;return this.legendItems.forEach((x,_)=>{const{itemWidth:w,itemHeight:S}=rU(r,n,o,x,i);_>0&&m+S+2*a>f&&(h+=p+a,c.push({width:p,height:m}),v+=p+a,y++,p=m=0),l[_]={left:v,top:m,col:y,width:w,height:S},p=Math.max(p,w),m+=S+a}),h+=p,c.push({width:p,height:m}),h}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:r,labels:{padding:i},rtl:o}}=this,s=nc(o,this.left,this.width);if(this.isHorizontal()){let a=0,l=Kn(r,this.left+i,this.right-this.lineWidths[a]);for(const c of n)a!==c.row&&(a=c.row,l=Kn(r,this.left+i,this.right-this.lineWidths[a])),c.top+=this.top+t+i,c.left=s.leftForLtr(s.x(l),c.width),l+=c.width+i}else{let a=0,l=Kn(r,this.top+t+i,this.bottom-this.columnSizes[a].height);for(const c of n)c.col!==a&&(a=c.col,l=Kn(r,this.top+t+i,this.bottom-this.columnSizes[a].height)),c.top=l,c.left+=this.left+i,c.left=s.leftForLtr(s.x(c.left),c.width),l+=c.height+i}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;sy(t,this),this._draw(),ay(t)}}_draw(){const{options:t,columnSizes:n,lineWidths:r,ctx:i}=this,{align:o,labels:s}=t,a=tn.color,l=nc(t.rtl,this.left,this.width),c=gn(s.font),{padding:f}=s,h=c.size,p=h/2;let m;this.drawTitle(),i.textAlign=l.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=c.string;const{boxWidth:v,boxHeight:y,itemHeight:x}=cP(s,h),_=function(k,N,D){if(isNaN(v)||v<=0||isNaN(y)||y<0)return;i.save();const z=Ke(D.lineWidth,1);if(i.fillStyle=Ke(D.fillStyle,a),i.lineCap=Ke(D.lineCap,"butt"),i.lineDashOffset=Ke(D.lineDashOffset,0),i.lineJoin=Ke(D.lineJoin,"miter"),i.lineWidth=z,i.strokeStyle=Ke(D.strokeStyle,a),i.setLineDash(Ke(D.lineDash,[])),s.usePointStyle){const A={radius:y*Math.SQRT2/2,pointStyle:D.pointStyle,rotation:D.rotation,borderWidth:z},W=l.xPlus(k,v/2),Y=N+p;XL(i,A,W,Y,s.pointStyleWidth&&v)}else{const A=N+Math.max((h-y)/2,0),W=l.leftForLtr(k,v),Y=Aa(D.borderRadius);i.beginPath(),Object.values(Y).some(J=>J!==0)?If(i,{x:W,y:A,w:v,h:y,radius:Y}):i.rect(W,A,v,y),i.fill(),z!==0&&i.stroke()}i.restore()},w=function(k,N,D){Wa(i,D.text,k,N+x/2,c,{strikethrough:D.hidden,textAlign:l.textAlign(D.textAlign)})},S=this.isHorizontal(),T=this._computeTitleHeight();S?m={x:Kn(o,this.left+f,this.right-r[0]),y:this.top+f+T,line:0}:m={x:this.left+f,y:Kn(o,this.top+T+f,this.bottom-n[0].height),line:0},sD(this.ctx,t.textDirection);const P=x+f;this.legendItems.forEach((k,N)=>{i.strokeStyle=k.fontColor,i.fillStyle=k.fontColor;const D=i.measureText(k.text).width,z=l.textAlign(k.textAlign||(k.textAlign=s.textAlign)),A=v+p+D;let W=m.x,Y=m.y;l.setWidth(this.width),S?N>0&&W+A+f>this.right&&(Y=m.y+=P,m.line++,W=m.x=Kn(o,this.left+f,this.right-r[m.line])):N>0&&Y+P>this.bottom&&(W=m.x=W+n[m.line].width+f,m.line++,Y=m.y=Kn(o,this.top+T+f,this.bottom-n[m.line].height));const J=l.x(W);if(_(J,Y,k),W=T7(z,W+v+p,S?W+A:this.right,t.rtl),w(l.x(W),Y,k),S)m.x+=A+f;else if(typeof k.text!="string"){const Z=c.lineHeight;m.y+=RD(k,Z)}else m.y+=P}),aD(this.ctx,t.textDirection)}drawTitle(){const t=this.options,n=t.title,r=gn(n.font),i=er(n.padding);if(!n.display)return;const o=nc(t.rtl,this.left,this.width),s=this.ctx,a=n.position,l=r.size/2,c=i.top+l;let f,h=this.left,p=this.width;if(this.isHorizontal())p=Math.max(...this.lineWidths),f=this.top+c,h=Kn(t.align,h,this.right-p);else{const v=this.columnSizes.reduce((y,x)=>Math.max(y,x.height),0);f=c+Kn(t.align,this.top,this.bottom-v-t.labels.padding-this._computeTitleHeight())}const m=Kn(a,h,h+p);s.textAlign=o.textAlign(M2(a)),s.textBaseline="middle",s.strokeStyle=n.color,s.fillStyle=n.color,s.font=r.string,Wa(s,n.text,m,f,r)}_computeTitleHeight(){const t=this.options.title,n=gn(t.font),r=er(t.padding);return t.display?n.lineHeight+r.height:0}_getLegendItemAt(t,n){let r,i,o;if(_o(t,this.left,this.right)&&_o(n,this.top,this.bottom)){for(o=this.legendHitBoxes,r=0;ro.length>s.length?o:s)),t+n.size/2+r.measureText(i).width}function oU(e,t,n){let r=e;return typeof t.text!="string"&&(r=RD(t,n)),r}function RD(e,t){const n=e.text?e.text.length+.5:0;return t*n}function sU(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var aU={id:"legend",_element:uP,start(e,t,n){const r=e.legend=new uP({ctx:e.ctx,options:n,chart:e});Jn.configure(e,r,n),Jn.addBox(e,r)},stop(e){Jn.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const r=e.legend;Jn.configure(e,r,n),r.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const r=t.datasetIndex,i=n.chart;i.isDatasetVisible(r)?(i.hide(r),t.hidden=!0):(i.show(r),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:i,color:o,useBorderRadius:s,borderRadius:a}}=e.legend.options;return e._getSortedDatasetMetas().map(l=>{const c=l.controller.getStyle(n?0:void 0),f=er(c.borderWidth);return{text:t[l.index].label,fillStyle:c.backgroundColor,fontColor:o,hidden:!l.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(f.width+f.height)/4,strokeStyle:c.borderColor,pointStyle:r||c.pointStyle,rotation:c.rotation,textAlign:i||c.textAlign,borderRadius:s&&(a||c.borderRadius),datasetIndex:l.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class F2 extends jo{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n){const r=this.options;if(this.left=0,this.top=0,!r.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=n;const i=kt(r.text)?r.text.length:1;this._padding=er(r.padding);const o=i*gn(r.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){const t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){const{top:n,left:r,bottom:i,right:o,options:s}=this,a=s.align;let l=0,c,f,h;return this.isHorizontal()?(f=Kn(a,r,o),h=n+t,c=o-r):(s.position==="left"?(f=r+t,h=Kn(a,i,n),l=It*-.5):(f=o-t,h=Kn(a,n,i),l=It*.5),c=i-n),{titleX:f,titleY:h,maxWidth:c,rotation:l}}draw(){const t=this.ctx,n=this.options;if(!n.display)return;const r=gn(n.font),o=r.lineHeight/2+this._padding.top,{titleX:s,titleY:a,maxWidth:l,rotation:c}=this._drawArgs(o);Wa(t,n.text,0,0,r,{color:n.color,maxWidth:l,rotation:c,textAlign:M2(n.align),textBaseline:"middle",translation:[s,a]})}}function lU(e,t){const n=new F2({ctx:e.ctx,options:t,chart:e});Jn.configure(e,n,t),Jn.addBox(e,n),e.titleBlock=n}var cU={id:"title",_element:F2,start(e,t,n){lU(e,n)},stop(e){const t=e.titleBlock;Jn.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const r=e.titleBlock;Jn.configure(e,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Zh=new WeakMap;var uU={id:"subtitle",start(e,t,n){const r=new F2({ctx:e.ctx,options:n,chart:e});Jn.configure(e,r,n),Jn.addBox(e,r),Zh.set(e,r)},stop(e){Jn.removeBox(e,Zh.get(e)),Zh.delete(e)},beforeUpdate(e,t,n){const r=Zh.get(e);Jn.configure(e,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Uu={average(e){if(!e.length)return!1;let t,n,r=0,i=0,o=0;for(t=0,n=e.length;t-1?e.split(` -`):e}function fU(e,t){const{element:n,datasetIndex:r,index:i}=t,o=e.getDatasetMeta(r).controller,{label:s,value:a}=o.getLabelAndValue(i);return{chart:e,label:s,parsed:o.getParsed(i),raw:e.data.datasets[r].data[i],formattedValue:a,dataset:o.getDataset(),dataIndex:i,datasetIndex:r,element:n}}function fP(e,t){const n=e.chart.ctx,{body:r,footer:i,title:o}=e,{boxWidth:s,boxHeight:a}=t,l=gn(t.bodyFont),c=gn(t.titleFont),f=gn(t.footerFont),h=o.length,p=i.length,m=r.length,v=er(t.padding);let y=v.height,x=0,_=r.reduce((T,P)=>T+P.before.length+P.lines.length+P.after.length,0);if(_+=e.beforeBody.length+e.afterBody.length,h&&(y+=h*c.lineHeight+(h-1)*t.titleSpacing+t.titleMarginBottom),_){const T=t.displayColors?Math.max(a,l.lineHeight):l.lineHeight;y+=m*T+(_-m)*l.lineHeight+(_-1)*t.bodySpacing}p&&(y+=t.footerMarginTop+p*f.lineHeight+(p-1)*t.footerSpacing);let w=0;const S=function(T){x=Math.max(x,n.measureText(T).width+w)};return n.save(),n.font=c.string,vt(e.title,S),n.font=l.string,vt(e.beforeBody.concat(e.afterBody),S),w=t.displayColors?s+2+t.boxPadding:0,vt(r,T=>{vt(T.before,S),vt(T.lines,S),vt(T.after,S)}),w=0,n.font=f.string,vt(e.footer,S),n.restore(),x+=v.width,{width:x,height:y}}function dU(e,t){const{y:n,height:r}=t;return ne.height-r/2?"bottom":"center"}function hU(e,t,n,r){const{x:i,width:o}=r,s=n.caretSize+n.caretPadding;if(e==="left"&&i+o+s>t.width||e==="right"&&i-o-s<0)return!0}function pU(e,t,n,r){const{x:i,width:o}=n,{width:s,chartArea:{left:a,right:l}}=e;let c="center";return r==="center"?c=i<=(a+l)/2?"left":"right":i<=o/2?c="left":i>=s-o/2&&(c="right"),hU(c,e,t,n)&&(c="center"),c}function dP(e,t,n){const r=n.yAlign||t.yAlign||dU(e,n);return{xAlign:n.xAlign||t.xAlign||pU(e,t,n,r),yAlign:r}}function mU(e,t){let{x:n,width:r}=e;return t==="right"?n-=r:t==="center"&&(n-=r/2),n}function gU(e,t,n){let{y:r,height:i}=e;return t==="top"?r+=n:t==="bottom"?r-=i+n:r-=i/2,r}function hP(e,t,n,r){const{caretSize:i,caretPadding:o,cornerRadius:s}=e,{xAlign:a,yAlign:l}=n,c=i+o,{topLeft:f,topRight:h,bottomLeft:p,bottomRight:m}=Aa(s);let v=mU(t,a);const y=gU(t,l,c);return l==="center"?a==="left"?v+=c:a==="right"&&(v-=c):a==="left"?v-=Math.max(f,p)+i:a==="right"&&(v+=Math.max(h,m)+i),{x:En(v,0,r.width-t.width),y:En(y,0,r.height-t.height)}}function Kh(e,t,n){const r=er(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-r.right:e.x+r.left}function pP(e){return $i([],fo(e))}function vU(e,t,n){return qs(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function mP(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const ND={beforeTitle:co,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,r=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(r>0&&t.dataIndex"u"?ND[t].call(n,r):i}var H1;let gP=(H1=class extends jo{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const n=this.chart,r=this.options.setContext(this.getContext()),i=r.enabled&&n.options.animation&&r.animations,o=new fD(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=vU(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){const{callbacks:r}=n,i=dr(r,"beforeTitle",this,t),o=dr(r,"title",this,t),s=dr(r,"afterTitle",this,t);let a=[];return a=$i(a,fo(i)),a=$i(a,fo(o)),a=$i(a,fo(s)),a}getBeforeBody(t,n){return pP(dr(n.callbacks,"beforeBody",this,t))}getBody(t,n){const{callbacks:r}=n,i=[];return vt(t,o=>{const s={before:[],lines:[],after:[]},a=mP(r,o);$i(s.before,fo(dr(a,"beforeLabel",this,o))),$i(s.lines,dr(a,"label",this,o)),$i(s.after,fo(dr(a,"afterLabel",this,o))),i.push(s)}),i}getAfterBody(t,n){return pP(dr(n.callbacks,"afterBody",this,t))}getFooter(t,n){const{callbacks:r}=n,i=dr(r,"beforeFooter",this,t),o=dr(r,"footer",this,t),s=dr(r,"afterFooter",this,t);let a=[];return a=$i(a,fo(i)),a=$i(a,fo(o)),a=$i(a,fo(s)),a}_createItems(t){const n=this._active,r=this.chart.data,i=[],o=[],s=[];let a=[],l,c;for(l=0,c=n.length;lt.filter(f,h,p,r))),t.itemSort&&(a=a.sort((f,h)=>t.itemSort(f,h,r))),vt(a,f=>{const h=mP(t.callbacks,f);i.push(dr(h,"labelColor",this,f)),o.push(dr(h,"labelPointStyle",this,f)),s.push(dr(h,"labelTextColor",this,f))}),this.labelColors=i,this.labelPointStyles=o,this.labelTextColors=s,this.dataPoints=a,a}update(t,n){const r=this.options.setContext(this.getContext()),i=this._active;let o,s=[];if(!i.length)this.opacity!==0&&(o={opacity:0});else{const a=Uu[r.position].call(this,i,this._eventPosition);s=this._createItems(r),this.title=this.getTitle(s,r),this.beforeBody=this.getBeforeBody(s,r),this.body=this.getBody(s,r),this.afterBody=this.getAfterBody(s,r),this.footer=this.getFooter(s,r);const l=this._size=fP(this,r),c=Object.assign({},a,l),f=dP(this.chart,r,c),h=hP(r,c,f,this.chart);this.xAlign=f.xAlign,this.yAlign=f.yAlign,o={opacity:1,x:h.x,y:h.y,width:l.width,height:l.height,caretX:a.x,caretY:a.y}}this._tooltipItems=s,this.$context=void 0,o&&this._resolveAnimations().update(this,o),t&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(t,n,r,i){const o=this.getCaretPosition(t,r,i);n.lineTo(o.x1,o.y1),n.lineTo(o.x2,o.y2),n.lineTo(o.x3,o.y3)}getCaretPosition(t,n,r){const{xAlign:i,yAlign:o}=this,{caretSize:s,cornerRadius:a}=r,{topLeft:l,topRight:c,bottomLeft:f,bottomRight:h}=Aa(a),{x:p,y:m}=t,{width:v,height:y}=n;let x,_,w,S,T,P;return o==="center"?(T=m+y/2,i==="left"?(x=p,_=x-s,S=T+s,P=T-s):(x=p+v,_=x+s,S=T-s,P=T+s),w=x):(i==="left"?_=p+Math.max(l,f)+s:i==="right"?_=p+v-Math.max(c,h)-s:_=this.caretX,o==="top"?(S=m,T=S-s,x=_-s,w=_+s):(S=m+y,T=S+s,x=_+s,w=_-s),P=S),{x1:x,x2:_,x3:w,y1:S,y2:T,y3:P}}drawTitle(t,n,r){const i=this.title,o=i.length;let s,a,l;if(o){const c=nc(r.rtl,this.x,this.width);for(t.x=Kh(this,r.titleAlign,r),n.textAlign=c.textAlign(r.titleAlign),n.textBaseline="middle",s=gn(r.titleFont),a=r.titleSpacing,n.fillStyle=r.titleColor,n.font=s.string,l=0;lS!==0)?(t.beginPath(),t.fillStyle=o.multiKeyBackground,If(t,{x,y,w:c,h:l,radius:w}),t.fill(),t.stroke(),t.fillStyle=s.backgroundColor,t.beginPath(),If(t,{x:_,y:y+1,w:c-2,h:l-2,radius:w}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(x,y,c,l),t.strokeRect(x,y,c,l),t.fillStyle=s.backgroundColor,t.fillRect(_,y+1,c-2,l-2))}t.fillStyle=this.labelTextColors[r]}drawBody(t,n,r){const{body:i}=this,{bodySpacing:o,bodyAlign:s,displayColors:a,boxHeight:l,boxWidth:c,boxPadding:f}=r,h=gn(r.bodyFont);let p=h.lineHeight,m=0;const v=nc(r.rtl,this.x,this.width),y=function(D){n.fillText(D,v.x(t.x+m),t.y+p/2),t.y+=p+o},x=v.textAlign(s);let _,w,S,T,P,k,N;for(n.textAlign=s,n.textBaseline="middle",n.font=h.string,t.x=Kh(this,x,r),n.fillStyle=r.bodyColor,vt(this.beforeBody,y),m=a&&x!=="right"?s==="center"?c/2+f:c+2+f:0,T=0,k=i.length;T0&&n.stroke()}_updateAnimationTarget(t){const n=this.chart,r=this.$animations,i=r&&r.x,o=r&&r.y;if(i||o){const s=Uu[t.position].call(this,this._active,this._eventPosition);if(!s)return;const a=this._size=fP(this,t),l=Object.assign({},s,this._size),c=dP(n,t,l),f=hP(t,l,c,n);(i._to!==f.x||o._to!==f.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=a.width,this.height=a.height,this.caretX=s.x,this.caretY=s.y,this._resolveAnimations().update(this,f))}}_willRender(){return!!this.opacity}draw(t){const n=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(n);const i={width:this.width,height:this.height},o={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const s=er(n.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&a&&(t.save(),t.globalAlpha=r,this.drawBackground(o,t,i,n),sD(t,n.textDirection),o.y+=s.top,this.drawTitle(o,t,n),this.drawBody(o,t,n),this.drawFooter(o,t,n),aD(t,n.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,n){const r=this._active,i=t.map(({datasetIndex:a,index:l})=>{const c=this.chart.getDatasetMeta(a);if(!c)throw new Error("Cannot find a dataset at index "+a);return{datasetIndex:a,element:c.data[l],index:l}}),o=!og(r,i),s=this._positionChanged(i,n);(o||s)&&(this._active=i,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,n,r=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,o=this._active||[],s=this._getActiveElements(t,o,n,r),a=this._positionChanged(s,t),l=n||!og(s,o)||a;return l&&(this._active=s,(i.enabled||i.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,n))),l}_getActiveElements(t,n,r,i){const o=this.options;if(t.type==="mouseout")return[];if(!i)return n;const s=this.chart.getElementsAtEventForMode(t,o.mode,o,r);return o.reverse&&s.reverse(),s}_positionChanged(t,n){const{caretX:r,caretY:i,options:o}=this,s=Uu[o.position].call(this,t,n);return s!==!1&&(r!==s.x||i!==s.y)}},xe(H1,"positioners",Uu),H1);var yU={id:"tooltip",_element:gP,positioners:Uu,afterInit(e,t,n){n&&(e.tooltip=new gP({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:ND},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},_U=Object.freeze({__proto__:null,Colors:Rz,Decimation:Az,Filler:tU,Legend:aU,SubTitle:uU,Title:cU,Tooltip:yU});const bU=(e,t,n,r)=>(typeof t=="string"?(n=e.push(t)-1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function wU(e,t,n,r){const i=e.indexOf(t);if(i===-1)return bU(e,t,n,r);const o=e.lastIndexOf(t);return i!==o?n:i}const xU=(e,t)=>e===null?null:En(Math.round(e),0,t);function vP(e){const t=this.getLabels();return e>=0&&en.length-1?null:this.getPixelForValue(n[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}xe(tb,"id","category"),xe(tb,"defaults",{ticks:{callback:vP}});function SU(e,t){const n=[],{bounds:i,step:o,min:s,max:a,precision:l,count:c,maxTicks:f,maxDigits:h,includeBounds:p}=e,m=o||1,v=f-1,{min:y,max:x}=t,_=!ct(s),w=!ct(a),S=!ct(c),T=(x-y)/(h+1);let P=hO((x-y)/v/m)*m,k,N,D,z;if(P<1e-14&&!_&&!w)return[{value:y},{value:x}];z=Math.ceil(x/P)-Math.floor(y/P),z>v&&(P=hO(z*P/v/m)*m),ct(l)||(k=Math.pow(10,l),P=Math.ceil(P*k)/k),i==="ticks"?(N=Math.floor(y/P)*P,D=Math.ceil(x/P)*P):(N=y,D=x),_&&w&&o&&_7((a-s)/o,P/1e3)?(z=Math.round(Math.min((a-s)/P,f)),P=(a-s)/z,N=s,D=a):S?(N=_?s:N,D=w?a:D,z=c-1,P=(D-N)/z):(z=(D-N)/P,nf(z,Math.round(z),P/1e3)?z=Math.round(z):z=Math.ceil(z));const A=Math.max(pO(P),pO(N));k=Math.pow(10,ct(l)?A:l),N=Math.round(N*k)/k,D=Math.round(D*k)/k;let W=0;for(_&&(p&&N!==s?(n.push({value:s}),Ni=n?i:l,a=l=>o=r?o:l;if(t){const l=Gi(i),c=Gi(o);l<0&&c<0?a(0):l>0&&c>0&&s(0)}if(i===o){let l=o===0?1:Math.abs(o*.05);a(o+l),t||s(i-l)}this.min=i,this.max=o}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:n,stepSize:r}=t,i;return r?(i=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,i>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${i} ticks. Limiting to 1000.`),i=1e3)):(i=this.computeTickLimit(),n=n||11),n&&(i=Math.min(n,i)),i}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,n=t.ticks;let r=this.getTickLimit();r=Math.max(2,r);const i={maxTicks:r,bounds:t.bounds,min:t.min,max:t.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},o=this._range||this,s=SU(i,o);return t.bounds==="ticks"&&zL(s,this,"value"),t.reverse?(s.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),s}configure(){const t=this.ticks;let n=this.min,r=this.max;if(super.configure(),this.options.offset&&t.length){const i=(r-n)/Math.max(t.length-1,1)/2;n-=i,r+=i}this._startValue=n,this._endValue=r,this._valueRange=r-n}getLabelForValue(t){return Rd(t,this.chart.options.locale,this.options.ticks.format)}}class nb extends hg{determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=qt(t)?t:0,this.max=qt(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),n=t?this.width:this.height,r=yi(this.options.ticks.minRotation),i=(t?Math.sin(r):Math.cos(r))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,o.lineHeight/i))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}xe(nb,"id","linear"),xe(nb,"defaults",{ticks:{callback:oy.formatters.numeric}});const $f=e=>Math.floor(cs(e)),ma=(e,t)=>Math.pow(10,$f(e)+t);function _P(e){return e/Math.pow(10,$f(e))===1}function bP(e,t,n){const r=Math.pow(10,n),i=Math.floor(e/r);return Math.ceil(t/r)-i}function CU(e,t){const n=t-e;let r=$f(n);for(;bP(e,t,r)>10;)r++;for(;bP(e,t,r)<10;)r--;return Math.min(r,$f(e))}function EU(e,{min:t,max:n}){t=Tr(e.min,t);const r=[],i=$f(t);let o=CU(t,n),s=o<0?Math.pow(10,Math.abs(o)):1;const a=Math.pow(10,o),l=i>o?Math.pow(10,i):0,c=Math.round((t-l)*s)/s,f=Math.floor((t-l)/a/10)*a*10;let h=Math.floor((c-f)/Math.pow(10,o)),p=Tr(e.min,Math.round((l+f+h*Math.pow(10,o))*s)/s);for(;p=10?h=h<15?15:20:h++,h>=20&&(o++,h=2,s=o>=0?1:s),p=Math.round((l+f+h*Math.pow(10,o))*s)/s;const m=Tr(e.max,p);return r.push({value:m,major:_P(m),significand:h}),r}class rb extends al{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,n){const r=hg.prototype.parse.apply(this,[t,n]);if(r===0){this._zero=!0;return}return qt(r)&&r>0?r:null}determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=qt(t)?Math.max(0,t):null,this.max=qt(n)?Math.max(0,n):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!qt(this._userMin)&&(this.min=t===ma(this.min,0)?ma(this.min,-1):ma(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let r=this.min,i=this.max;const o=a=>r=t?r:a,s=a=>i=n?i:a;r===i&&(r<=0?(o(1),s(10)):(o(ma(r,-1)),s(ma(i,1)))),r<=0&&o(ma(i,-1)),i<=0&&s(ma(r,1)),this.min=r,this.max=i}buildTicks(){const t=this.options,n={min:this._userMin,max:this._userMax},r=EU(n,this);return t.bounds==="ticks"&&zL(r,this,"value"),t.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}getLabelForValue(t){return t===void 0?"0":Rd(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=cs(t),this._valueRange=cs(this.max)-cs(t)}getPixelForValue(t){return(t===void 0||t===0)&&(t=this.min),t===null||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(cs(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const n=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+n*this._valueRange)}}xe(rb,"id","logarithmic"),xe(rb,"defaults",{ticks:{callback:oy.formatters.logarithmic,major:{enabled:!0}}});function ib(e){const t=e.ticks;if(t.display&&e.display){const n=er(t.backdropPadding);return Ke(t.font&&t.font.size,tn.font.size)+n.height}return 0}function TU(e,t,n){return n=kt(n)?n:[n],{w:j7(e,t.string,n),h:n.length*t.lineHeight}}function wP(e,t,n,r,i){return e===r||e===i?{start:t-n/2,end:t+n/2}:ei?{start:t-n,end:t}:{start:t,end:t+n}}function OU(e){const t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},n=Object.assign({},t),r=[],i=[],o=e._pointLabels.length,s=e.options.pointLabels,a=s.centerPointLabels?It/o:0;for(let l=0;lt.r&&(a=(r.end-t.r)/o,e.r=Math.max(e.r,t.r+a)),i.startt.b&&(l=(i.end-t.b)/s,e.b=Math.max(e.b,t.b+l))}function kU(e,t,n){const r=[],i=e._pointLabels.length,o=e.options,s=ib(o)/2,a=e.drawingArea,l=o.pointLabels.centerPointLabels?It/i:0;for(let c=0;c270||n<90)&&(e-=t),e}function LU(e,t){const{ctx:n,options:{pointLabels:r}}=e;for(let i=t-1;i>=0;i--){const o=r.setContext(e.getPointLabelContext(i)),s=gn(o.font),{x:a,y:l,textAlign:c,left:f,top:h,right:p,bottom:m}=e._pointLabelItems[i],{backdropColor:v}=o;if(!ct(v)){const y=Aa(o.borderRadius),x=er(o.backdropPadding);n.fillStyle=v;const _=f-x.left,w=h-x.top,S=p-f+x.width,T=m-h+x.height;Object.values(y).some(P=>P!==0)?(n.beginPath(),If(n,{x:_,y:w,w:S,h:T,radius:y}),n.fill()):n.fillRect(_,w,S,T)}Wa(n,e._pointLabels[i],a,l+s.lineHeight/2,s,{color:o.color,textAlign:c,textBaseline:"middle"})}}function LD(e,t,n,r){const{ctx:i}=e;if(n)i.arc(e.xCenter,e.yCenter,t,0,Mt);else{let o=e.getPointPosition(0,t);i.moveTo(o.x,o.y);for(let s=1;s{const i=Ct(this.options.pointLabels.callback,[n,r],this);return i||i===0?i:""}).filter((n,r)=>this.chart.getDataVisibility(r))}fit(){const t=this.options;t.display&&t.pointLabels.display?OU(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,n,r,i){this.xCenter+=Math.floor((t-n)/2),this.yCenter+=Math.floor((r-i)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,n,r,i))}getIndexAngle(t){const n=Mt/(this._pointLabels.length||1),r=this.options.startAngle||0;return Pr(t*n+yi(r))}getDistanceFromCenterForValue(t){if(ct(t))return NaN;const n=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*n:(t-this.min)*n}getValueForDistanceFromCenter(t){if(ct(t))return NaN;const n=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-n:this.min+n}getPointLabelContext(t){const n=this._pointLabels||[];if(t>=0&&t{if(h!==0){l=this.getDistanceFromCenterForValue(f.value);const p=this.getContext(h),m=i.setContext(p),v=o.setContext(p);DU(this,m,l,s,v)}}),r.display){for(t.save(),a=s-1;a>=0;a--){const f=r.setContext(this.getPointLabelContext(a)),{color:h,lineWidth:p}=f;!p||!h||(t.lineWidth=p,t.strokeStyle=h,t.setLineDash(f.borderDash),t.lineDashOffset=f.borderDashOffset,l=this.getDistanceFromCenterForValue(n.ticks.reverse?this.min:this.max),c=this.getPointPosition(a,l),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(c.x,c.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,n=this.options,r=n.ticks;if(!r.display)return;const i=this.getIndexAngle(0);let o,s;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(i),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((a,l)=>{if(l===0&&!n.reverse)return;const c=r.setContext(this.getContext(l)),f=gn(c.font);if(o=this.getDistanceFromCenterForValue(this.ticks[l].value),c.showLabelBackdrop){t.font=f.string,s=t.measureText(a.label).width,t.fillStyle=c.backdropColor;const h=er(c.backdropPadding);t.fillRect(-s/2-h.left,-o-f.size/2-h.top,s+h.width,f.size+h.height)}Wa(t,a.label,0,-o,f,{color:c.color})}),t.restore()}drawTitle(){}}xe(Vu,"id","radialLinear"),xe(Vu,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:oy.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(t){return t},padding:5,centerPointLabels:!1}}),xe(Vu,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),xe(Vu,"descriptors",{angleLines:{_fallback:"grid"}});const uy={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},mr=Object.keys(uy);function jU(e,t){return e-t}function xP(e,t){if(ct(t))return null;const n=e._adapter,{parser:r,round:i,isoWeekday:o}=e._parseOpts;let s=t;return typeof r=="function"&&(s=r(s)),qt(s)||(s=typeof r=="string"?n.parse(s,r):n.parse(s)),s===null?null:(i&&(s=i==="week"&&(yc(o)||o===!0)?n.startOf(s,"isoWeek",o):n.startOf(s,i)),+s)}function SP(e,t,n,r){const i=mr.length;for(let o=mr.indexOf(e);o=mr.indexOf(n);o--){const s=mr[o];if(uy[s].common&&e._adapter.diff(i,r,s)>=t-1)return s}return mr[n?mr.indexOf(n):0]}function FU(e){for(let t=mr.indexOf(e)+1,n=mr.length;t=t?n[r]:n[i];e[o]=!0}}function $U(e,t,n,r){const i=e._adapter,o=+i.startOf(t[0].value,r),s=t[t.length-1].value;let a,l;for(a=o;a<=s;a=+i.add(a,1,r))l=n[a],l>=0&&(t[l].major=!0);return t}function EP(e,t,n){const r=[],i={},o=t.length;let s,a;for(s=0;s+t.value))}initOffsets(t=[]){let n=0,r=0,i,o;this.options.offset&&t.length&&(i=this.getDecimalForValue(t[0]),t.length===1?n=1-i:n=(this.getDecimalForValue(t[1])-i)/2,o=this.getDecimalForValue(t[t.length-1]),t.length===1?r=o:r=(o-this.getDecimalForValue(t[t.length-2]))/2);const s=t.length<3?.5:.25;n=En(n,0,s),r=En(r,0,s),this._offsets={start:n,end:r,factor:1/(n+1+r)}}_generate(){const t=this._adapter,n=this.min,r=this.max,i=this.options,o=i.time,s=o.unit||SP(o.minUnit,n,r,this._getLabelCapacity(n)),a=Ke(i.ticks.stepSize,1),l=s==="week"?o.isoWeekday:!1,c=yc(l)||l===!0,f={};let h=n,p,m;if(c&&(h=+t.startOf(h,"isoWeek",l)),h=+t.startOf(h,c?"day":s),t.diff(r,n,s)>1e5*a)throw new Error(n+" and "+r+" are too far apart with stepSize of "+a+" "+s);const v=i.ticks.source==="data"&&this.getDataTimestamps();for(p=h,m=0;py-x).map(y=>+y)}getLabelForValue(t){const n=this._adapter,r=this.options.time;return r.tooltipFormat?n.format(t,r.tooltipFormat):n.format(t,r.displayFormats.datetime)}_tickFormatFunction(t,n,r,i){const o=this.options,s=o.ticks.callback;if(s)return Ct(s,[t,n,r],this);const a=o.time.displayFormats,l=this._unit,c=this._majorUnit,f=l&&a[l],h=c&&a[c],p=r[n],m=c&&h&&p&&p.major;return this._adapter.format(t,i||(m?h:f))}generateTickLabels(t){let n,r,i;for(n=0,r=t.length;n0?a:1}getDataTimestamps(){let t=this._cache.data||[],n,r;if(t.length)return t;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(n=0,r=i.length;n=e[r].pos&&t<=e[i].pos&&({lo:r,hi:i}=bo(e,"pos",t)),{pos:o,time:a}=e[r],{pos:s,time:l}=e[i]):(t>=e[r].time&&t<=e[i].time&&({lo:r,hi:i}=bo(e,"time",t)),{time:o,pos:a}=e[r],{time:s,pos:l}=e[i]);const c=s-o;return c?a+(l-a)*(t-o)/c:a}class ob extends Bf{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(t);this._minPos=Xh(n,this.min),this._tableRange=Xh(n,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:n,max:r}=this,i=[],o=[];let s,a,l,c,f;for(s=0,a=t.length;s=n&&c<=r&&i.push(c);if(i.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(s=0,a=i.length;s>>1,ne=G[B];if(0>>1;Bi(te,j))sei(pe,te)?(G[B]=pe,G[se]=j,B=se):(G[B]=te,G[q]=j,B=q);else if(sei(pe,j))G[B]=pe,G[se]=j,B=se;else break e}}return F}function i(G,F){var j=G.sortIndex-F.sortIndex;return j!==0?j:G.id-F.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],c=[],f=1,h=null,p=3,m=!1,v=!1,y=!1,x=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function S(G){for(var F=n(c);F!==null;){if(F.callback===null)r(c);else if(F.startTime<=G)r(c),F.sortIndex=F.expirationTime,t(l,F);else break;F=n(c)}}function T(G){if(y=!1,S(G),!v)if(n(l)!==null)v=!0,ie(P);else{var F=n(c);F!==null&&oe(T,F.startTime-G)}}function P(G,F){v=!1,y&&(y=!1,_(D),D=-1),m=!0;var j=p;try{for(S(F),h=n(l);h!==null&&(!(h.expirationTime>F)||G&&!W());){var B=h.callback;if(typeof B=="function"){h.callback=null,p=h.priorityLevel;var ne=B(h.expirationTime<=F);F=e.unstable_now(),typeof ne=="function"?h.callback=ne:h===n(l)&&r(l),S(F)}else r(l);h=n(l)}if(h!==null)var H=!0;else{var q=n(c);q!==null&&oe(T,q.startTime-F),H=!1}return H}finally{h=null,p=j,m=!1}}var k=!1,N=null,D=-1,z=5,A=-1;function W(){return!(e.unstable_now()-AG||125B?(G.sortIndex=j,t(c,G),n(l)===null&&G===n(c)&&(y?(_(D),D=-1):y=!0,oe(T,j-B))):(G.sortIndex=ne,t(l,G),v||m||(v=!0,ie(P))),G},e.unstable_shouldYield=W,e.unstable_wrapCallback=function(G){var F=p;return function(){var j=p;p=F;try{return G.apply(this,arguments)}finally{p=j}}}})(jD);AD.exports=jD;var UU=AD.exports;/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var ID=V,Dr=UU;function Ee(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),sb=Object.prototype.hasOwnProperty,VU=/^[: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]*$/,TP={},OP={};function HU(e){return sb.call(OP,e)?!0:sb.call(TP,e)?!1:VU.test(e)?OP[e]=!0:(TP[e]=!0,!1)}function WU(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function YU(e,t,n,r){if(t===null||typeof t>"u"||WU(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function fr(e,t,n,r,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var Hn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Hn[e]=new fr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Hn[t]=new fr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Hn[e]=new fr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Hn[e]=new fr(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){Hn[e]=new fr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Hn[e]=new fr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Hn[e]=new fr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Hn[e]=new fr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Hn[e]=new fr(e,5,!1,e.toLowerCase(),null,!1,!1)});var $2=/[\-:]([a-z])/g;function B2(e){return e[1].toUpperCase()}"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-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($2,B2);Hn[t]=new fr(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($2,B2);Hn[t]=new fr(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($2,B2);Hn[t]=new fr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Hn[e]=new fr(e,1,!1,e.toLowerCase(),null,!1,!1)});Hn.xlinkHref=new fr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Hn[e]=new fr(e,1,!1,e.toLowerCase(),null,!0,!0)});function z2(e,t,n,r){var i=Hn.hasOwnProperty(t)?Hn[t]:null;(i!==null?i.type!==0:r||!(2a||i[s]!==o[a]){var l=` -`+i[s].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{g0=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Hu(e):""}function qU(e){switch(e.tag){case 5:return Hu(e.type);case 16:return Hu("Lazy");case 13:return Hu("Suspense");case 19:return Hu("SuspenseList");case 0:case 2:case 15:return e=v0(e.type,!1),e;case 11:return e=v0(e.type.render,!1),e;case 1:return e=v0(e.type,!0),e;default:return""}}function ub(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case zl:return"Fragment";case Bl:return"Portal";case ab:return"Profiler";case U2:return"StrictMode";case lb:return"Suspense";case cb:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case BD:return(e.displayName||"Context")+".Consumer";case $D:return(e._context.displayName||"Context")+".Provider";case V2:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case H2:return t=e.displayName||null,t!==null?t:ub(e.type)||"Memo";case es:t=e._payload,e=e._init;try{return ub(e(t))}catch{}}return null}function GU(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=t.render,e=e.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 ub(t);case 8:return t===U2?"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(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Is(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function UD(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ZU(e){var t=UD(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Jh(e){e._valueTracker||(e._valueTracker=ZU(e))}function VD(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=UD(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function pg(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function fb(e,t){var n=t.checked;return Vt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function kP(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Is(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function HD(e,t){t=t.checked,t!=null&&z2(e,"checked",t,!1)}function db(e,t){HD(e,t);var n=Is(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?hb(e,t.type,n):t.hasOwnProperty("defaultValue")&&hb(e,t.type,Is(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function MP(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function hb(e,t,n){(t!=="number"||pg(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Wu=Array.isArray;function rc(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=ep.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Uf(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var cf={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},KU=["Webkit","ms","Moz","O"];Object.keys(cf).forEach(function(e){KU.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),cf[t]=cf[e]})});function GD(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||cf.hasOwnProperty(e)&&cf[e]?(""+t).trim():t+"px"}function ZD(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=GD(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var XU=Vt({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 gb(e,t){if(t){if(XU[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Ee(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Ee(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Ee(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Ee(62))}}function vb(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";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 yb=null;function W2(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var _b=null,ic=null,oc=null;function LP(e){if(e=Ad(e)){if(typeof _b!="function")throw Error(Ee(280));var t=e.stateNode;t&&(t=my(t),_b(e.stateNode,e.type,t))}}function KD(e){ic?oc?oc.push(e):oc=[e]:ic=e}function XD(){if(ic){var e=ic,t=oc;if(oc=ic=null,LP(e),t)for(e=0;e>>=0,e===0?32:31-(lV(e)/cV|0)|0}var tp=64,np=4194304;function Yu(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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function yg(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~i;a!==0?r=Yu(a):(o&=s,o!==0&&(r=Yu(o)))}else s=n&~i,s!==0?r=Yu(s):o!==0&&(r=Yu(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Ld(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-xi(t),e[t]=n}function hV(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=ff),UP=String.fromCharCode(32),VP=!1;function vA(e,t){switch(e){case"keyup":return zV.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function yA(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ul=!1;function VV(e,t){switch(e){case"compositionend":return yA(t);case"keypress":return t.which!==32?null:(VP=!0,UP);case"textInput":return e=t.data,e===UP&&VP?null:e;default:return null}}function HV(e,t){if(Ul)return e==="compositionend"||!J2&&vA(e,t)?(e=mA(),Jp=K2=hs=null,Ul=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=qP(n)}}function xA(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?xA(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function SA(){for(var e=window,t=pg();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=pg(e.document)}return t}function eS(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function JV(e){var t=SA(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&xA(n.ownerDocument.documentElement,n)){if(r!==null&&eS(n)){if(t=r.start,e=r.end,e===void 0&&(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,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=GP(n,o);var s=GP(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Vl=null,Eb=null,hf=null,Tb=!1;function ZP(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Tb||Vl==null||Vl!==pg(r)||(r=Vl,"selectionStart"in r&&eS(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),hf&&Gf(hf,r)||(hf=r,r=wg(Eb,"onSelect"),0Yl||(e.current=Nb[Yl],Nb[Yl]=null,Yl--)}function Et(e,t){Yl++,Nb[Yl]=e.current,e.current=t}var Fs={},tr=Zs(Fs),yr=Zs(!1),Ya=Fs;function xc(e,t){var n=e.type.contextTypes;if(!n)return Fs;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function _r(e){return e=e.childContextTypes,e!=null}function Sg(){Rt(yr),Rt(tr)}function nk(e,t,n){if(tr.current!==Fs)throw Error(Ee(168));Et(tr,t),Et(yr,n)}function NA(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(Ee(108,GU(e)||"Unknown",i));return Vt({},n,r)}function Cg(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Fs,Ya=tr.current,Et(tr,e),Et(yr,yr.current),!0}function rk(e,t,n){var r=e.stateNode;if(!r)throw Error(Ee(169));n?(e=NA(e,t,Ya),r.__reactInternalMemoizedMergedChildContext=e,Rt(yr),Rt(tr),Et(tr,e)):Rt(yr),Et(yr,n)}var mo=null,gy=!1,R0=!1;function LA(e){mo===null?mo=[e]:mo.push(e)}function fH(e){gy=!0,LA(e)}function Ks(){if(!R0&&mo!==null){R0=!0;var e=0,t=_t;try{var n=mo;for(_t=1;e>=s,i-=s,wo=1<<32-xi(t)+i|n<D?(z=N,N=null):z=N.sibling;var A=p(_,N,S[D],T);if(A===null){N===null&&(N=z);break}e&&N&&A.alternate===null&&t(_,N),w=o(A,w,D),k===null?P=A:k.sibling=A,k=A,N=z}if(D===S.length)return n(_,N),jt&&xa(_,D),P;if(N===null){for(;DD?(z=N,N=null):z=N.sibling;var W=p(_,N,A.value,T);if(W===null){N===null&&(N=z);break}e&&N&&W.alternate===null&&t(_,N),w=o(W,w,D),k===null?P=W:k.sibling=W,k=W,N=z}if(A.done)return n(_,N),jt&&xa(_,D),P;if(N===null){for(;!A.done;D++,A=S.next())A=h(_,A.value,T),A!==null&&(w=o(A,w,D),k===null?P=A:k.sibling=A,k=A);return jt&&xa(_,D),P}for(N=r(_,N);!A.done;D++,A=S.next())A=m(N,_,D,A.value,T),A!==null&&(e&&A.alternate!==null&&N.delete(A.key===null?D:A.key),w=o(A,w,D),k===null?P=A:k.sibling=A,k=A);return e&&N.forEach(function(Y){return t(_,Y)}),jt&&xa(_,D),P}function x(_,w,S,T){if(typeof S=="object"&&S!==null&&S.type===zl&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case Qh:e:{for(var P=S.key,k=w;k!==null;){if(k.key===P){if(P=S.type,P===zl){if(k.tag===7){n(_,k.sibling),w=i(k,S.props.children),w.return=_,_=w;break e}}else if(k.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===es&&uk(P)===k.type){n(_,k.sibling),w=i(k,S.props),w.ref=ku(_,k,S),w.return=_,_=w;break e}n(_,k);break}else t(_,k);k=k.sibling}S.type===zl?(w=Fa(S.props.children,_.mode,T,S.key),w.return=_,_=w):(T=am(S.type,S.key,S.props,null,_.mode,T),T.ref=ku(_,w,S),T.return=_,_=T)}return s(_);case Bl:e:{for(k=S.key;w!==null;){if(w.key===k)if(w.tag===4&&w.stateNode.containerInfo===S.containerInfo&&w.stateNode.implementation===S.implementation){n(_,w.sibling),w=i(w,S.children||[]),w.return=_,_=w;break e}else{n(_,w);break}else t(_,w);w=w.sibling}w=$0(S,_.mode,T),w.return=_,_=w}return s(_);case es:return k=S._init,x(_,w,k(S._payload),T)}if(Wu(S))return v(_,w,S,T);if(Cu(S))return y(_,w,S,T);cp(_,S)}return typeof S=="string"&&S!==""||typeof S=="number"?(S=""+S,w!==null&&w.tag===6?(n(_,w.sibling),w=i(w,S),w.return=_,_=w):(n(_,w),w=F0(S,_.mode,T),w.return=_,_=w),s(_)):n(_,w)}return x}var Cc=zA(!0),UA=zA(!1),jd={},Ki=Zs(jd),Qf=Zs(jd),Jf=Zs(jd);function Na(e){if(e===jd)throw Error(Ee(174));return e}function cS(e,t){switch(Et(Jf,t),Et(Qf,e),Et(Ki,jd),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:mb(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=mb(t,e)}Rt(Ki),Et(Ki,t)}function Ec(){Rt(Ki),Rt(Qf),Rt(Jf)}function VA(e){Na(Jf.current);var t=Na(Ki.current),n=mb(t,e.type);t!==n&&(Et(Qf,e),Et(Ki,n))}function uS(e){Qf.current===e&&(Rt(Ki),Rt(Qf))}var Bt=Zs(0);function Mg(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var N0=[];function fS(){for(var e=0;en?n:4,e(!0);var r=L0.transition;L0.transition={};try{e(!1),t()}finally{_t=n,L0.transition=r}}function o4(){return ei().memoizedState}function mH(e,t,n){var r=Os(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},s4(e))a4(t,n);else if(n=IA(e,t,n,r),n!==null){var i=cr();Si(n,e,r,i),l4(n,t,r)}}function gH(e,t,n){var r=Os(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(s4(e))a4(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,a=o(s,n);if(i.hasEagerState=!0,i.eagerState=a,Oi(a,s)){var l=t.interleaved;l===null?(i.next=i,aS(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=IA(e,t,i,r),n!==null&&(i=cr(),Si(n,e,r,i),l4(n,t,r))}}function s4(e){var t=e.alternate;return e===Ut||t!==null&&t===Ut}function a4(e,t){pf=Rg=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function l4(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,q2(e,n)}}var Ng={readContext:Jr,useCallback:qn,useContext:qn,useEffect:qn,useImperativeHandle:qn,useInsertionEffect:qn,useLayoutEffect:qn,useMemo:qn,useReducer:qn,useRef:qn,useState:qn,useDebugValue:qn,useDeferredValue:qn,useTransition:qn,useMutableSource:qn,useSyncExternalStore:qn,useId:qn,unstable_isNewReconciler:!1},vH={readContext:Jr,useCallback:function(e,t){return zi().memoizedState=[e,t===void 0?null:t],e},useContext:Jr,useEffect:dk,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,rm(4194308,4,e4.bind(null,t,e),n)},useLayoutEffect:function(e,t){return rm(4194308,4,e,t)},useInsertionEffect:function(e,t){return rm(4,2,e,t)},useMemo:function(e,t){var n=zi();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=zi();return t=n!==void 0?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=mH.bind(null,Ut,e),[r.memoizedState,e]},useRef:function(e){var t=zi();return e={current:e},t.memoizedState=e},useState:fk,useDebugValue:gS,useDeferredValue:function(e){return zi().memoizedState=e},useTransition:function(){var e=fk(!1),t=e[0];return e=pH.bind(null,e[1]),zi().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Ut,i=zi();if(jt){if(n===void 0)throw Error(Ee(407));n=n()}else{if(n=t(),Tn===null)throw Error(Ee(349));Ga&30||YA(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,dk(GA.bind(null,r,o,e),[e]),r.flags|=2048,nd(9,qA.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=zi(),t=Tn.identifierPrefix;if(jt){var n=xo,r=wo;n=(r&~(1<<32-xi(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ed++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Vi]=t,e[Xf]=r,v4(e,t,!1,!1),t.stateNode=e;e:{switch(s=vb(n,r),n){case"dialog":Tt("cancel",e),Tt("close",e),i=r;break;case"iframe":case"object":case"embed":Tt("load",e),i=r;break;case"video":case"audio":for(i=0;iOc&&(t.flags|=128,r=!0,Mu(o,!1),t.lanes=4194304)}else{if(!r)if(e=Mg(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Mu(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!jt)return Gn(t),null}else 2*en()-o.renderingStartTime>Oc&&n!==1073741824&&(t.flags|=128,r=!0,Mu(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=en(),t.sibling=null,n=Bt.current,Et(Bt,r?n&1|2:n&1),t):(Gn(t),null);case 22:case 23:return xS(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Or&1073741824&&(Gn(t),t.subtreeFlags&6&&(t.flags|=8192)):Gn(t),null;case 24:return null;case 25:return null}throw Error(Ee(156,t.tag))}function EH(e,t){switch(nS(t),t.tag){case 1:return _r(t.type)&&Sg(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ec(),Rt(yr),Rt(tr),fS(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return uS(t),null;case 13:if(Rt(Bt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Ee(340));Sc()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Rt(Bt),null;case 4:return Ec(),null;case 10:return sS(t.type._context),null;case 22:case 23:return xS(),null;case 24:return null;default:return null}}var fp=!1,Xn=!1,TH=typeof WeakSet=="function"?WeakSet:Set,ze=null;function Kl(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Wt(e,t,r)}else n.current=null}function Hb(e,t,n){try{n()}catch(r){Wt(e,t,r)}}var wk=!1;function OH(e,t){if(Ob=_g,e=SA(),eS(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,c=0,f=0,h=e,p=null;t:for(;;){for(var m;h!==n||i!==0&&h.nodeType!==3||(a=s+i),h!==o||r!==0&&h.nodeType!==3||(l=s+r),h.nodeType===3&&(s+=h.nodeValue.length),(m=h.firstChild)!==null;)p=h,h=m;for(;;){if(h===e)break t;if(p===n&&++c===i&&(a=s),p===o&&++f===r&&(l=s),(m=h.nextSibling)!==null)break;h=p,p=h.parentNode}h=m}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Pb={focusedElem:e,selectionRange:n},_g=!1,ze=t;ze!==null;)if(t=ze,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ze=e;else for(;ze!==null;){t=ze;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var y=v.memoizedProps,x=v.memoizedState,_=t.stateNode,w=_.getSnapshotBeforeUpdate(t.elementType===t.type?y:di(t.type,y),x);_.__reactInternalSnapshotBeforeUpdate=w}break;case 3:var S=t.stateNode.containerInfo;S.nodeType===1?S.textContent="":S.nodeType===9&&S.documentElement&&S.removeChild(S.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Ee(163))}}catch(T){Wt(t,t.return,T)}if(e=t.sibling,e!==null){e.return=t.return,ze=e;break}ze=t.return}return v=wk,wk=!1,v}function mf(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&Hb(t,n,o)}i=i.next}while(i!==r)}}function _y(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==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 Wb(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function b4(e){var t=e.alternate;t!==null&&(e.alternate=null,b4(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Vi],delete t[Xf],delete t[Rb],delete t[cH],delete t[uH])),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 w4(e){return e.tag===5||e.tag===3||e.tag===4}function xk(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||w4(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Yb(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=xg));else if(r!==4&&(e=e.child,e!==null))for(Yb(e,t,n),e=e.sibling;e!==null;)Yb(e,t,n),e=e.sibling}function qb(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(qb(e,t,n),e=e.sibling;e!==null;)qb(e,t,n),e=e.sibling}var Bn=null,hi=!1;function Zo(e,t,n){for(n=n.child;n!==null;)x4(e,t,n),n=n.sibling}function x4(e,t,n){if(Zi&&typeof Zi.onCommitFiberUnmount=="function")try{Zi.onCommitFiberUnmount(fy,n)}catch{}switch(n.tag){case 5:Xn||Kl(n,t);case 6:var r=Bn,i=hi;Bn=null,Zo(e,t,n),Bn=r,hi=i,Bn!==null&&(hi?(e=Bn,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Bn.removeChild(n.stateNode));break;case 18:Bn!==null&&(hi?(e=Bn,n=n.stateNode,e.nodeType===8?M0(e.parentNode,n):e.nodeType===1&&M0(e,n),Yf(e)):M0(Bn,n.stateNode));break;case 4:r=Bn,i=hi,Bn=n.stateNode.containerInfo,hi=!0,Zo(e,t,n),Bn=r,hi=i;break;case 0:case 11:case 14:case 15:if(!Xn&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&Hb(n,t,s),i=i.next}while(i!==r)}Zo(e,t,n);break;case 1:if(!Xn&&(Kl(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Wt(n,t,a)}Zo(e,t,n);break;case 21:Zo(e,t,n);break;case 22:n.mode&1?(Xn=(r=Xn)||n.memoizedState!==null,Zo(e,t,n),Xn=r):Zo(e,t,n);break;default:Zo(e,t,n)}}function Sk(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new TH),t.forEach(function(r){var i=jH.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function fi(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=s),r&=~o}if(r=i,r=en()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*kH(r/1960))-r,10e?16:e,ps===null)var r=!1;else{if(e=ps,ps=null,Ag=0,ut&6)throw Error(Ee(331));var i=ut;for(ut|=4,ze=e.current;ze!==null;){var o=ze,s=o.child;if(ze.flags&16){var a=o.deletions;if(a!==null){for(var l=0;len()-bS?Ia(e,0):_S|=n),br(e,t)}function M4(e,t){t===0&&(e.mode&1?(t=np,np<<=1,!(np&130023424)&&(np=4194304)):t=1);var n=cr();e=Oo(e,t),e!==null&&(Ld(e,t,n),br(e,n))}function AH(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),M4(e,n)}function jH(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(Ee(314))}r!==null&&r.delete(t),M4(e,n)}var R4;R4=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||yr.current)gr=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return gr=!1,SH(e,t,n);gr=!!(e.flags&131072)}else gr=!1,jt&&t.flags&1048576&&DA(t,Tg,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;im(e,t),e=t.pendingProps;var i=xc(t,tr.current);ac(t,n),i=hS(null,t,r,e,i,n);var o=pS();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,_r(r)?(o=!0,Cg(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,lS(t),i.updater=vy,t.stateNode=i,i._reactInternals=t,Ib(t,r,e,n),t=Bb(null,t,r,!0,o,n)):(t.tag=0,jt&&o&&tS(t),ar(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(im(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=FH(r),e=di(r,e),i){case 0:t=$b(null,t,r,e,n);break e;case 1:t=yk(null,t,r,e,n);break e;case 11:t=gk(null,t,r,e,n);break e;case 14:t=vk(null,t,r,di(r.type,e),n);break e}throw Error(Ee(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:di(r,i),$b(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:di(r,i),yk(e,t,r,i,n);case 3:e:{if(p4(t),e===null)throw Error(Ee(387));r=t.pendingProps,o=t.memoizedState,i=o.element,FA(e,t),kg(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=Tc(Error(Ee(423)),t),t=_k(e,t,r,n,i);break e}else if(r!==i){i=Tc(Error(Ee(424)),t),t=_k(e,t,r,n,i);break e}else for(kr=Cs(t.stateNode.containerInfo.firstChild),Rr=t,jt=!0,mi=null,n=UA(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Sc(),r===i){t=Po(e,t,n);break e}ar(e,t,r,n)}t=t.child}return t;case 5:return VA(t),e===null&&Db(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,kb(r,i)?s=null:o!==null&&kb(r,o)&&(t.flags|=32),h4(e,t),ar(e,t,s,n),t.child;case 6:return e===null&&Db(t),null;case 13:return m4(e,t,n);case 4:return cS(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Cc(t,null,r,n):ar(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:di(r,i),gk(e,t,r,i,n);case 7:return ar(e,t,t.pendingProps,n),t.child;case 8:return ar(e,t,t.pendingProps.children,n),t.child;case 12:return ar(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,Et(Og,r._currentValue),r._currentValue=s,o!==null)if(Oi(o.value,s)){if(o.children===i.children&&!yr.current){t=Po(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){s=o.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=So(-1,n&-n),l.tag=2;var c=o.updateQueue;if(c!==null){c=c.shared;var f=c.pending;f===null?l.next=l:(l.next=f.next,f.next=l),c.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),Ab(o.return,n,t),a.lanes|=n;break}l=l.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(Ee(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),Ab(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}ar(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,ac(t,n),i=Jr(i),r=r(i),t.flags|=1,ar(e,t,r,n),t.child;case 14:return r=t.type,i=di(r,t.pendingProps),i=di(r.type,i),vk(e,t,r,i,n);case 15:return f4(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:di(r,i),im(e,t),t.tag=1,_r(r)?(e=!0,Cg(t)):e=!1,ac(t,n),BA(t,r,i),Ib(t,r,i,n),Bb(null,t,r,!0,e,n);case 19:return g4(e,t,n);case 22:return d4(e,t,n)}throw Error(Ee(156,t.tag))};function N4(e,t){return iA(e,t)}function IH(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=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 qr(e,t,n,r){return new IH(e,t,n,r)}function CS(e){return e=e.prototype,!(!e||!e.isReactComponent)}function FH(e){if(typeof e=="function")return CS(e)?1:0;if(e!=null){if(e=e.$$typeof,e===V2)return 11;if(e===H2)return 14}return 2}function Ps(e,t){var n=e.alternate;return n===null?(n=qr(e.tag,t,e.key,e.mode),n.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=e.flags&14680064,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=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function am(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")CS(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case zl:return Fa(n.children,i,o,t);case U2:s=8,i|=8;break;case ab:return e=qr(12,n,t,i|2),e.elementType=ab,e.lanes=o,e;case lb:return e=qr(13,n,t,i),e.elementType=lb,e.lanes=o,e;case cb:return e=qr(19,n,t,i),e.elementType=cb,e.lanes=o,e;case zD:return wy(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case $D:s=10;break e;case BD:s=9;break e;case V2:s=11;break e;case H2:s=14;break e;case es:s=16,r=null;break e}throw Error(Ee(130,e==null?e:typeof e,""))}return t=qr(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Fa(e,t,n,r){return e=qr(7,e,r,t),e.lanes=n,e}function wy(e,t,n,r){return e=qr(22,e,r,t),e.elementType=zD,e.lanes=n,e.stateNode={isHidden:!1},e}function F0(e,t,n){return e=qr(6,e,null,t),e.lanes=n,e}function $0(e,t,n){return t=qr(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function $H(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=_0(0),this.expirationTimes=_0(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=_0(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function ES(e,t,n,r,i,o,s,a,l){return e=new $H(e,t,n,a,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=qr(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},lS(o),e}function BH(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(j4)}catch(e){console.error(e)}}j4(),DD.exports=jr;var Id=DD.exports;const $a=ri(Id);var I4,Rk=Id;I4=Rk.createRoot,Rk.hydrateRoot;var F4={exports:{}},$4={};/** - * @license React - * use-sync-external-store-shim.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Pc=V;function WH(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var YH=typeof Object.is=="function"?Object.is:WH,qH=Pc.useState,GH=Pc.useEffect,ZH=Pc.useLayoutEffect,KH=Pc.useDebugValue;function XH(e,t){var n=t(),r=qH({inst:{value:n,getSnapshot:t}}),i=r[0].inst,o=r[1];return ZH(function(){i.value=n,i.getSnapshot=t,B0(i)&&o({inst:i})},[e,n,t]),GH(function(){return B0(i)&&o({inst:i}),e(function(){B0(i)&&o({inst:i})})},[e]),KH(n),n}function B0(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!YH(e,n)}catch{return!0}}function QH(e,t){return t()}var JH=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?QH:XH;$4.useSyncExternalStore=Pc.useSyncExternalStore!==void 0?Pc.useSyncExternalStore:JH;F4.exports=$4;var B4=F4.exports,eW={};/** - * @license React - * use-sync-external-store-shim/with-selector.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Ty=V,tW=B4;function nW(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var rW=typeof Object.is=="function"?Object.is:nW,iW=tW.useSyncExternalStore,oW=Ty.useRef,sW=Ty.useEffect,aW=Ty.useMemo,lW=Ty.useDebugValue;eW.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=oW(null);if(o.current===null){var s={hasValue:!1,value:null};o.current=s}else s=o.current;o=aW(function(){function l(m){if(!c){if(c=!0,f=m,m=r(m),i!==void 0&&s.hasValue){var v=s.value;if(i(v,m))return h=v}return h=m}if(v=h,rW(f,m))return v;var y=r(m);return i!==void 0&&i(v,y)?v:(f=m,h=y)}var c=!1,f,h,p=n===void 0?null:n;return[function(){return l(t())},p===null?void 0:function(){return l(p())}]},[t,n,r,i]);var a=iW(e,o[0],o[1]);return sW(function(){s.hasValue=!0,s.value=a},[a]),lW(a),a};function cW(e){e()}let z4=cW;const uW=e=>z4=e,fW=()=>z4,U4=V.createContext(null),dW=()=>{throw new Error("uSES not initialized!")};function cc(){return cc=Object.assign||function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}var V4={exports:{}},bt={};/** @license React v16.13.1 - * react-is.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var On=typeof Symbol=="function"&&Symbol.for,MS=On?Symbol.for("react.element"):60103,RS=On?Symbol.for("react.portal"):60106,Oy=On?Symbol.for("react.fragment"):60107,Py=On?Symbol.for("react.strict_mode"):60108,ky=On?Symbol.for("react.profiler"):60114,My=On?Symbol.for("react.provider"):60109,Ry=On?Symbol.for("react.context"):60110,NS=On?Symbol.for("react.async_mode"):60111,Ny=On?Symbol.for("react.concurrent_mode"):60111,Ly=On?Symbol.for("react.forward_ref"):60112,Dy=On?Symbol.for("react.suspense"):60113,hW=On?Symbol.for("react.suspense_list"):60120,Ay=On?Symbol.for("react.memo"):60115,jy=On?Symbol.for("react.lazy"):60116,pW=On?Symbol.for("react.block"):60121,mW=On?Symbol.for("react.fundamental"):60117,gW=On?Symbol.for("react.responder"):60118,vW=On?Symbol.for("react.scope"):60119;function Fr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case MS:switch(e=e.type,e){case NS:case Ny:case Oy:case ky:case Py:case Dy:return e;default:switch(e=e&&e.$$typeof,e){case Ry:case Ly:case jy:case Ay:case My:return e;default:return t}}case RS:return t}}}function H4(e){return Fr(e)===Ny}bt.AsyncMode=NS;bt.ConcurrentMode=Ny;bt.ContextConsumer=Ry;bt.ContextProvider=My;bt.Element=MS;bt.ForwardRef=Ly;bt.Fragment=Oy;bt.Lazy=jy;bt.Memo=Ay;bt.Portal=RS;bt.Profiler=ky;bt.StrictMode=Py;bt.Suspense=Dy;bt.isAsyncMode=function(e){return H4(e)||Fr(e)===NS};bt.isConcurrentMode=H4;bt.isContextConsumer=function(e){return Fr(e)===Ry};bt.isContextProvider=function(e){return Fr(e)===My};bt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===MS};bt.isForwardRef=function(e){return Fr(e)===Ly};bt.isFragment=function(e){return Fr(e)===Oy};bt.isLazy=function(e){return Fr(e)===jy};bt.isMemo=function(e){return Fr(e)===Ay};bt.isPortal=function(e){return Fr(e)===RS};bt.isProfiler=function(e){return Fr(e)===ky};bt.isStrictMode=function(e){return Fr(e)===Py};bt.isSuspense=function(e){return Fr(e)===Dy};bt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Oy||e===Ny||e===ky||e===Py||e===Dy||e===hW||typeof e=="object"&&e!==null&&(e.$$typeof===jy||e.$$typeof===Ay||e.$$typeof===My||e.$$typeof===Ry||e.$$typeof===Ly||e.$$typeof===mW||e.$$typeof===gW||e.$$typeof===vW||e.$$typeof===pW)};bt.typeOf=Fr;V4.exports=bt;var yW=V4.exports,LS=yW,_W={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},bW={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},wW={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},W4={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},DS={};DS[LS.ForwardRef]=wW;DS[LS.Memo]=W4;function Nk(e){return LS.isMemo(e)?W4:DS[e.$$typeof]||_W}var xW=Object.defineProperty,SW=Object.getOwnPropertyNames,Lk=Object.getOwnPropertySymbols,CW=Object.getOwnPropertyDescriptor,EW=Object.getPrototypeOf,Dk=Object.prototype;function Y4(e,t,n){if(typeof t!="string"){if(Dk){var r=EW(t);r&&r!==Dk&&Y4(e,r,n)}var i=SW(t);Lk&&(i=i.concat(Lk(t)));for(var o=Nk(e),s=Nk(t),a=0;at(i(...o)))}return n}function Qb(e){return function(n){const r=e(n);function i(){return r}return i.dependsOnOwnProps=!1,i}}function jk(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function G4(e,t){return function(r,{displayName:i}){const o=function(a,l){return o.dependsOnOwnProps?o.mapToProps(a,l):o.mapToProps(a,void 0)};return o.dependsOnOwnProps=!0,o.mapToProps=function(a,l){o.mapToProps=e,o.dependsOnOwnProps=jk(e);let c=o(a,l);return typeof c=="function"&&(o.mapToProps=c,o.dependsOnOwnProps=jk(c),c=o(a,l)),c},o}}function IS(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function AW(e){return e&&typeof e=="object"?Qb(t=>DW(e,t)):e?typeof e=="function"?G4(e):IS(e,"mapDispatchToProps"):Qb(t=>({dispatch:t}))}function jW(e){return e?typeof e=="function"?G4(e):IS(e,"mapStateToProps"):Qb(()=>({}))}function IW(e,t,n){return cc({},n,e,t)}function FW(e){return function(n,{displayName:r,areMergedPropsEqual:i}){let o=!1,s;return function(l,c,f){const h=e(l,c,f);return o?i(h,s)||(s=h):(o=!0,s=h),s}}}function $W(e){return e?typeof e=="function"?FW(e):IS(e,"mergeProps"):()=>IW}function BW(){const e=fW();let t=null,n=null;return{clear(){t=null,n=null},notify(){e(()=>{let r=t;for(;r;)r.callback(),r=r.next})},get(){let r=[],i=t;for(;i;)r.push(i),i=i.next;return r},subscribe(r){let i=!0,o=n={callback:r,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){!i||t===null||(i=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}const Ik={notify(){},get:()=>[]};function Z4(e,t){let n,r=Ik;function i(h){return l(),r.subscribe(h)}function o(){r.notify()}function s(){f.onStateChange&&f.onStateChange()}function a(){return!!n}function l(){n||(n=t?t.addNestedSub(s):e.subscribe(s),r=BW())}function c(){n&&(n(),n=void 0,r.clear(),r=Ik)}const f={addNestedSub:i,notifyNestedSubs:o,handleChangeWrapper:s,isSubscribed:a,trySubscribe:l,tryUnsubscribe:c,getListeners:()=>r};return f}const zW=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Fg=zW?V.useLayoutEffect:V.useEffect;function Fk(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function z0(e,t){if(Fk(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i=0;i{K4=e},HW=[null,null];function WW(e,t,n){Fg(()=>e(...t),n)}function YW(e,t,n,r,i,o){e.current=r,n.current=!1,i.current&&(i.current=null,o())}function qW(e,t,n,r,i,o,s,a,l,c,f){if(!e)return()=>{};let h=!1,p=null;const m=()=>{if(h||!a.current)return;const y=t.getState();let x,_;try{x=r(y,i.current)}catch(w){_=w,p=w}_||(p=null),x===o.current?s.current||c():(o.current=x,l.current=x,s.current=!0,f())};return n.onStateChange=m,n.trySubscribe(),m(),()=>{if(h=!0,n.tryUnsubscribe(),n.onStateChange=null,p)throw p}}function GW(e,t){return e===t}function ZW(e,t,n,{pure:r,areStatesEqual:i=GW,areOwnPropsEqual:o=z0,areStatePropsEqual:s=z0,areMergedPropsEqual:a=z0,forwardRef:l=!1,context:c=U4}={}){const f=c,h=jW(e),p=AW(t),m=$W(n),v=!!e;return x=>{const _=x.displayName||x.name||"Component",w=`Connect(${_})`,S={shouldHandleStateChanges:v,displayName:w,wrappedComponentName:_,WrappedComponent:x,initMapStateToProps:h,initMapDispatchToProps:p,initMergeProps:m,areStatesEqual:i,areStatePropsEqual:s,areOwnPropsEqual:o,areMergedPropsEqual:a};function T(N){const[D,z,A]=V.useMemo(()=>{const{reactReduxForwardedRef:K}=N,ae=kS(N,UW);return[N.context,K,ae]},[N]),W=V.useMemo(()=>D&&D.Consumer&&MW.isContextConsumer(U.createElement(D.Consumer,null))?D:f,[D,f]),Y=V.useContext(W),J=!!N.store&&!!N.store.getState&&!!N.store.dispatch,Z=!!Y&&!!Y.store,ee=J?N.store:Y.store,ie=Z?Y.getServerState:ee.getState,oe=V.useMemo(()=>LW(ee.dispatch,S),[ee]),[G,F]=V.useMemo(()=>{if(!v)return HW;const K=Z4(ee,J?void 0:Y.subscription),ae=K.notifyNestedSubs.bind(K);return[K,ae]},[ee,J,Y]),j=V.useMemo(()=>J?Y:cc({},Y,{subscription:G}),[J,Y,G]),B=V.useRef(),ne=V.useRef(A),H=V.useRef(),q=V.useRef(!1);V.useRef(!1);const te=V.useRef(!1),se=V.useRef();Fg(()=>(te.current=!0,()=>{te.current=!1}),[]);const pe=V.useMemo(()=>()=>H.current&&A===ne.current?H.current:oe(ee.getState(),A),[ee,A]),O=V.useMemo(()=>ae=>G?qW(v,ee,G,oe,ne,B,q,te,H,F,ae):()=>{},[G]);WW(YW,[ne,B,q,A,H,F]);let R;try{R=K4(O,pe,ie?()=>oe(ie(),A):pe)}catch(K){throw se.current&&(K.message+=` -The error may be correlated with this previous error: -${se.current.stack} - -`),K}Fg(()=>{se.current=void 0,H.current=void 0,B.current=R});const I=V.useMemo(()=>U.createElement(x,cc({},R,{ref:z})),[z,x,R]);return V.useMemo(()=>v?U.createElement(W.Provider,{value:j},I):I,[W,I,j])}const k=U.memo(T);if(k.WrappedComponent=x,k.displayName=T.displayName=w,l){const D=U.forwardRef(function(A,W){return U.createElement(k,cc({},A,{reactReduxForwardedRef:W}))});return D.displayName=w,D.WrappedComponent=x,Ak(D,x)}return Ak(k,x)}}function KW({store:e,context:t,children:n,serverState:r}){const i=V.useMemo(()=>{const a=Z4(e);return{store:e,subscription:a,getServerState:r?()=>r:void 0}},[e,r]),o=V.useMemo(()=>e.getState(),[e]);Fg(()=>{const{subscription:a}=i;return a.onStateChange=a.notifyNestedSubs,a.trySubscribe(),o!==e.getState()&&a.notifyNestedSubs(),()=>{a.tryUnsubscribe(),a.onStateChange=void 0}},[i,o]);const s=t||U4;return U.createElement(s.Provider,{value:i},n)}VW(B4.useSyncExternalStore);uW(Id.unstable_batchedUpdates);/** - * @remix-run/router v1.2.1 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function $g(){return $g=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function QW(){return Math.random().toString(36).substr(2,8)}function Bk(e){return{usr:e.state,key:e.key}}function Jb(e,t,n,r){return n===void 0&&(n=null),$g({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Yc(t):t,{state:n,key:t&&t.key||r||QW()})}function id(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Yc(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function JW(e){let t=typeof window<"u"&&typeof window.location<"u"&&window.location.origin!=="null"?window.location.origin:window.location.href,n=typeof e=="string"?e:id(e);return fn(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}function eY(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,s=i.history,a=ms.Pop,l=null;function c(){a=ms.Pop,l&&l({action:a,location:p.location})}function f(m,v){a=ms.Push;let y=Jb(p.location,m,v);n&&n(y,m);let x=Bk(y),_=p.createHref(y);try{s.pushState(x,"",_)}catch{i.location.assign(_)}o&&l&&l({action:a,location:p.location})}function h(m,v){a=ms.Replace;let y=Jb(p.location,m,v);n&&n(y,m);let x=Bk(y),_=p.createHref(y);s.replaceState(x,"",_),o&&l&&l({action:a,location:p.location})}let p={get action(){return a},get location(){return e(i,s)},listen(m){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener($k,c),l=m,()=>{i.removeEventListener($k,c),l=null}},createHref(m){return t(i,m)},encodeLocation(m){let v=JW(typeof m=="string"?m:id(m));return{pathname:v.pathname,search:v.search,hash:v.hash}},push:f,replace:h,go(m){return s.go(m)}};return p}var zk;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(zk||(zk={}));function tY(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Yc(t):t,i=J4(r.pathname||"/",n);if(i==null)return null;let o=X4(e);nY(o);let s=null;for(let a=0;s==null&&a{let l={relativePath:a===void 0?o.path||"":a,caseSensitive:o.caseSensitive===!0,childrenIndex:s,route:o};l.relativePath.startsWith("/")&&(fn(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let c=ks([r,l.relativePath]),f=n.concat(l);o.children&&o.children.length>0&&(fn(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),X4(o.children,t,f,c)),!(o.path==null&&!o.index)&&t.push({path:c,score:cY(c,o.index),routesMeta:f})};return e.forEach((o,s)=>{var a;if(o.path===""||!((a=o.path)!=null&&a.includes("?")))i(o,s);else for(let l of Q4(o.path))i(o,s,l)}),t}function Q4(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let s=Q4(r.join("/")),a=[];return a.push(...s.map(l=>l===""?o:[o,l].join("/"))),i&&a.push(...s),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function nY(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:uY(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const rY=/^:\w+$/,iY=3,oY=2,sY=1,aY=10,lY=-2,Uk=e=>e==="*";function cY(e,t){let n=e.split("/"),r=n.length;return n.some(Uk)&&(r+=lY),t&&(r+=oY),n.filter(i=>!Uk(i)).reduce((i,o)=>i+(rY.test(o)?iY:o===""?sY:aY),r)}function uY(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function fY(e,t){let{routesMeta:n}=e,r={},i="/",o=[];for(let s=0;s{if(f==="*"){let p=a[h]||"";s=o.slice(0,o.length-p.length).replace(/(.)\/+$/,"$1")}return c[f]=mY(a[h]||"",f),c},{}),pathname:o,pathnameBase:s,pattern:e}}function hY(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),FS(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(s,a)=>(r.push(a),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function pY(e){try{return decodeURI(e)}catch(t){return FS(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function mY(e,t){try{return decodeURIComponent(e)}catch(n){return FS(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function J4(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function FS(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function gY(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Yc(e):e;return{pathname:n?n.startsWith("/")?n:vY(n,t):t,search:_Y(r),hash:bY(i)}}function vY(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function U0(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function ej(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function tj(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Yc(e):(i=$g({},e),fn(!i.pathname||!i.pathname.includes("?"),U0("?","pathname","search",i)),fn(!i.pathname||!i.pathname.includes("#"),U0("#","pathname","hash",i)),fn(!i.search||!i.search.includes("#"),U0("#","search","hash",i)));let o=e===""||i.pathname==="",s=o?"/":i.pathname,a;if(r||s==null)a=n;else{let h=t.length-1;if(s.startsWith("..")){let p=s.split("/");for(;p[0]==="..";)p.shift(),h-=1;i.pathname=p.join("/")}a=h>=0?t[h]:"/"}let l=gY(i,a),c=s&&s!=="/"&&s.endsWith("/"),f=(o||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||f)&&(l.pathname+="/"),l}const ks=e=>e.join("/").replace(/\/\/+/g,"/"),yY=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),_Y=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,bY=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class wY{constructor(t,n,r,i){i===void 0&&(i=!1),this.status=t,this.statusText=n||"",this.internal=i,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function xY(e){return e instanceof wY}const nj=["post","put","patch","delete"];new Set(nj);const SY=["get",...nj];new Set(SY);/** - * React Router v6.6.1 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function ew(){return ew=Object.assign?Object.assign.bind():function(e){for(var t=1;t{i.value=r,i.getSnapshot=t,V0(i)&&o({inst:i})},[e,r,t]),OY(()=>(V0(i)&&o({inst:i}),e(()=>{V0(i)&&o({inst:i})})),[e]),kY(r),r}function V0(e){const t=e.getSnapshot,n=e.value;try{const r=t();return!EY(n,r)}catch{return!0}}function RY(e,t,n){return t()}const NY=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",LY=!NY,DY=LY?RY:MY;"useSyncExternalStore"in W1&&(e=>e.useSyncExternalStore)(W1);const AY=V.createContext(null),jY=V.createContext(null),qy=V.createContext(null),Fd=V.createContext(null),Gy=V.createContext(null),ul=V.createContext({outlet:null,matches:[]}),rj=V.createContext(null);function IY(e,t){let{relative:n}=t===void 0?{}:t;qc()||fn(!1);let{basename:r,navigator:i}=V.useContext(Fd),{hash:o,pathname:s,search:a}=$S(e,{relative:n}),l=s;return r!=="/"&&(l=s==="/"?r:ks([r,s])),i.createHref({pathname:l,search:a,hash:o})}function qc(){return V.useContext(Gy)!=null}function Pn(){return qc()||fn(!1),V.useContext(Gy).location}function Fo(){qc()||fn(!1);let{basename:e,navigator:t}=V.useContext(Fd),{matches:n}=V.useContext(ul),{pathname:r}=Pn(),i=JSON.stringify(ej(n).map(a=>a.pathnameBase)),o=V.useRef(!1);return V.useEffect(()=>{o.current=!0}),V.useCallback(function(a,l){if(l===void 0&&(l={}),!o.current)return;if(typeof a=="number"){t.go(a);return}let c=tj(a,JSON.parse(i),r,l.relative==="path");e!=="/"&&(c.pathname=c.pathname==="/"?e:ks([e,c.pathname])),(l.replace?t.replace:t.push)(c,l.state,l)},[e,t,i,r])}function Xs(){let{matches:e}=V.useContext(ul),t=e[e.length-1];return t?t.params:{}}function $S(e,t){let{relative:n}=t===void 0?{}:t,{matches:r}=V.useContext(ul),{pathname:i}=Pn(),o=JSON.stringify(ej(r).map(s=>s.pathnameBase));return V.useMemo(()=>tj(e,JSON.parse(o),i,n==="path"),[e,o,i,n])}function FY(e,t){qc()||fn(!1);let{navigator:n}=V.useContext(Fd),r=V.useContext(qy),{matches:i}=V.useContext(ul),o=i[i.length-1],s=o?o.params:{};o&&o.pathname;let a=o?o.pathnameBase:"/";o&&o.route;let l=Pn(),c;if(t){var f;let y=typeof t=="string"?Yc(t):t;a==="/"||(f=y.pathname)!=null&&f.startsWith(a)||fn(!1),c=y}else c=l;let h=c.pathname||"/",p=a==="/"?h:h.slice(a.length)||"/",m=tY(e,{pathname:p}),v=UY(m&&m.map(y=>Object.assign({},y,{params:Object.assign({},s,y.params),pathname:ks([a,n.encodeLocation?n.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?a:ks([a,n.encodeLocation?n.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),i,r||void 0);return t&&v?V.createElement(Gy.Provider,{value:{location:ew({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:ms.Pop}},v):v}function $Y(){let e=YY(),t=xY(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r},o={padding:"2px 4px",backgroundColor:r};return V.createElement(V.Fragment,null,V.createElement("h2",null,"Unhandled Thrown Error!"),V.createElement("h3",{style:{fontStyle:"italic"}},t),n?V.createElement("pre",{style:i},n):null,V.createElement("p",null,"💿 Hey developer 👋"),V.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",V.createElement("code",{style:o},"errorElement")," props on ",V.createElement("code",{style:o},"")))}class BY extends V.Component{constructor(t){super(t),this.state={location:t.location,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location?{error:t.error,location:t.location}:{error:t.error||n.error,location:n.location}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error?V.createElement(ul.Provider,{value:this.props.routeContext},V.createElement(rj.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function zY(e){let{routeContext:t,match:n,children:r}=e,i=V.useContext(AY);return i&&n.route.errorElement&&(i._deepestRenderedBoundaryId=n.route.id),V.createElement(ul.Provider,{value:t},r)}function UY(e,t,n){if(t===void 0&&(t=[]),e==null)if(n!=null&&n.errors)e=n.matches;else return null;let r=e,i=n==null?void 0:n.errors;if(i!=null){let o=r.findIndex(s=>s.route.id&&(i==null?void 0:i[s.route.id]));o>=0||fn(!1),r=r.slice(0,Math.min(r.length,o+1))}return r.reduceRight((o,s,a)=>{let l=s.route.id?i==null?void 0:i[s.route.id]:null,c=n?s.route.errorElement||V.createElement($Y,null):null,f=t.concat(r.slice(0,a+1)),h=()=>V.createElement(zY,{match:s,routeContext:{outlet:o,matches:f}},l?c:s.route.element!==void 0?s.route.element:o);return n&&(s.route.errorElement||a===0)?V.createElement(BY,{location:n.location,component:c,error:l,children:h(),routeContext:{outlet:null,matches:f}}):h()},null)}var Vk;(function(e){e.UseRevalidator="useRevalidator"})(Vk||(Vk={}));var Bg;(function(e){e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator"})(Bg||(Bg={}));function VY(e){let t=V.useContext(qy);return t||fn(!1),t}function HY(e){let t=V.useContext(ul);return t||fn(!1),t}function WY(e){let t=HY(),n=t.matches[t.matches.length-1];return n.route.id||fn(!1),n.route.id}function YY(){var e;let t=V.useContext(rj),n=VY(Bg.UseRouteError),r=WY(Bg.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function BS(e){let{to:t,replace:n,state:r,relative:i}=e;qc()||fn(!1);let o=V.useContext(qy),s=Fo();return V.useEffect(()=>{o&&o.navigation.state!=="idle"||s(t,{replace:n,state:r,relative:i})}),null}function gt(e){fn(!1)}function qY(e){let{basename:t="/",children:n=null,location:r,navigationType:i=ms.Pop,navigator:o,static:s=!1}=e;qc()&&fn(!1);let a=t.replace(/^\/*/,"/"),l=V.useMemo(()=>({basename:a,navigator:o,static:s}),[a,o,s]);typeof r=="string"&&(r=Yc(r));let{pathname:c="/",search:f="",hash:h="",state:p=null,key:m="default"}=r,v=V.useMemo(()=>{let y=J4(c,a);return y==null?null:{pathname:y,search:f,hash:h,state:p,key:m}},[a,c,f,h,p,m]);return v==null?null:V.createElement(Fd.Provider,{value:l},V.createElement(Gy.Provider,{children:n,value:{location:v,navigationType:i}}))}function Zy(e){let{children:t,location:n}=e,r=V.useContext(jY),i=r&&!t?r.router.routes:tw(t);return FY(i,n)}var Hk;(function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"})(Hk||(Hk={}));new Promise(()=>{});function tw(e,t){t===void 0&&(t=[]);let n=[];return V.Children.forEach(e,(r,i)=>{if(!V.isValidElement(r))return;if(r.type===V.Fragment){n.push.apply(n,tw(r.props.children,t));return}r.type!==gt&&fn(!1),!r.props.index||!r.props.children||fn(!1);let o=[...t,i],s={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,hasErrorBoundary:r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle};r.props.children&&(s.children=tw(r.props.children,o)),n.push(s)}),n}/** - * React Router DOM v6.6.1 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function zg(){return zg=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function GY(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function ZY(e,t){return e.button===0&&(!t||t==="_self")&&!GY(e)}const KY=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],XY=["aria-current","caseSensitive","className","end","style","to","children"];function QY(e){let{basename:t,children:n,window:r}=e,i=V.useRef();i.current==null&&(i.current=XW({window:r,v5Compat:!0}));let o=i.current,[s,a]=V.useState({action:o.action,location:o.location});return V.useLayoutEffect(()=>o.listen(a),[o]),V.createElement(qY,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:o})}const Lt=V.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:s,state:a,target:l,to:c,preventScrollReset:f}=t,h=ij(t,KY),p=IY(c,{relative:i}),m=JY(c,{replace:s,state:a,target:l,preventScrollReset:f,relative:i});function v(y){r&&r(y),y.defaultPrevented||m(y)}return V.createElement("a",zg({},h,{href:p,onClick:o?r:v,ref:n,target:l}))}),oj=V.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:i=!1,className:o="",end:s=!1,style:a,to:l,children:c}=t,f=ij(t,XY),h=$S(l,{relative:f.relative}),p=Pn(),m=V.useContext(qy),{navigator:v}=V.useContext(Fd),y=v.encodeLocation?v.encodeLocation(h).pathname:h.pathname,x=p.pathname,_=m&&m.navigation&&m.navigation.location?m.navigation.location.pathname:null;i||(x=x.toLowerCase(),_=_?_.toLowerCase():null,y=y.toLowerCase());let w=x===y||!s&&x.startsWith(y)&&x.charAt(y.length)==="/",S=_!=null&&(_===y||!s&&_.startsWith(y)&&_.charAt(y.length)==="/"),T=w?r:void 0,P;typeof o=="function"?P=o({isActive:w,isPending:S}):P=[o,w?"active":null,S?"pending":null].filter(Boolean).join(" ");let k=typeof a=="function"?a({isActive:w,isPending:S}):a;return V.createElement(Lt,zg({},f,{"aria-current":T,className:P,ref:n,style:k,to:l}),typeof c=="function"?c({isActive:w,isPending:S}):c)});var Wk;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(Wk||(Wk={}));var Yk;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Yk||(Yk={}));function JY(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:s}=t===void 0?{}:t,a=Fo(),l=Pn(),c=$S(e,{relative:s});return V.useCallback(f=>{if(ZY(f,n)){f.preventDefault();let h=r!==void 0?r:id(l)===id(c);a(e,{replace:h,state:i,preventScrollReset:o,relative:s})}},[l,a,c,r,i,n,e,o,s])}const eq="shlink-web-client",tq="A React-based progressive web application for shlink",nq="/shlink-web-client/develop",rq="https://github.com/shlinkio/shlink-web-client",iq="MIT",oq={lint:"npm run lint:css && npm run lint:js","lint:css":"stylelint src/*.scss src/**/*.scss","lint:js":"eslint --ext .js,.ts,.tsx src test","lint:fix":"npm run lint:css:fix && npm run lint:js:fix","lint:css:fix":"npm run lint:css -- --fix","lint:js:fix":"npm run lint:js -- --fix",types:"tsc",start:"vite serve --host=0.0.0.0",preview:"vite preview --host=0.0.0.0",build:"npm run types && vite build && node scripts/replace-version.mjs","build:dist":"npm run build && node scripts/create-dist-file.mjs",test:"vitest run --run","test:watch":"vitest --watch","test:ci":"npm run test -- --coverage","test:verbose":"npm run test -- --verbose"},sq={"@fortawesome/fontawesome-free":"^6.3.0","@fortawesome/fontawesome-svg-core":"^6.3.0","@fortawesome/free-brands-svg-icons":"^6.3.0","@fortawesome/free-regular-svg-icons":"^6.3.0","@fortawesome/free-solid-svg-icons":"^6.3.0","@fortawesome/react-fontawesome":"^0.2.0","@json2csv/plainjs":"^6.1.2","@reduxjs/toolkit":"^1.9.1",bootstrap:"^5.2.3",bottlejs:"^2.0.1",bowser:"^2.11.0","chart.js":"^4.1.1",classnames:"^2.3.2","compare-versions":"^5.0.3",csvtojson:"^2.0.10","date-fns":"^2.29.3","event-source-polyfill":"^1.0.31",history:"^5.3.0",leaflet:"^1.9.3",qs:"^6.11.0",ramda:"^0.27.2",react:"^18.2.0","react-chartjs-2":"^5.1.0","react-colorful":"^5.6.1","react-copy-to-clipboard":"^5.1.0","react-datepicker":"^4.8.0","react-dom":"^18.2.0","react-external-link":"^2.2.0","react-leaflet":"^4.2.0","react-redux":"^8.0.5","react-router-dom":"^6.6.1","react-swipeable":"^7.0.0","react-tag-autocomplete":"^6.3.0",reactstrap:"^9.1.5","redux-localstorage-simple":"^2.5.1",uuid:"^8.3.2","workbox-core":"^6.5.4","workbox-expiration":"^6.5.4","workbox-precaching":"^6.5.4","workbox-routing":"^6.5.4","workbox-strategies":"^6.5.4"},aq={"@shlinkio/eslint-config-js-coding-standard":"~2.1.0","@shlinkio/stylelint-config-css-coding-standard":"~1.0.1","@testing-library/jest-dom":"^5.16.5","@testing-library/react":"^14.0.0","@testing-library/user-event":"^14.4.3","@total-typescript/shoehorn":"^0.1.0","@types/json2csv":"^5.0.3","@types/leaflet":"^1.9.0","@types/qs":"^6.9.7","@types/ramda":"^0.28.15","@types/react":"^18.0.26","@types/react-color":"^3.0.6","@types/react-copy-to-clipboard":"^5.0.4","@types/react-datepicker":"^4.8.0","@types/react-dom":"^18.0.10","@types/react-tag-autocomplete":"^6.3.0","@types/uuid":"^8.3.4","@vitejs/plugin-react":"^4.0.0","@vitest/coverage-v8":"^0.32.0","adm-zip":"^0.5.10",chalk:"^5.2.0",eslint:"^8.30.0",jsdom:"^22.0.0","resize-observer-polyfill":"^1.5.1",sass:"^1.57.1",stylelint:"^15.10.1",typescript:"^5.0.2",vite:"^4.3.9","vite-plugin-pwa":"^0.14.4",vitest:"^0.32.0","vitest-canvas-mock":"^0.2.2"},lq=[">0.2%","not dead","not ie <= 11","not op_mini all"],Ug={name:eq,description:tq,private:!1,homepage:nq,repository:rq,license:iq,scripts:oq,dependencies:sq,devDependencies:aq,browserslist:lq};var Pi,Ji=".",sj="function",aj="string",lj="__global__",zS="Provider",cq=0,US=Array.prototype.slice,uq=function(t,n){var r=t[n];if(r===void 0&&Pi.config.strict)throw new Error("Bottle was unable to resolve a service. `"+n+"` is undefined.");return r},Ky=function(t){var n;return this.nested[t]||(n=Pi.pop(),this.nested[t]=n,this.factory(t,function(){return n.container})),this.nested[t]},cj=function(t){return t.split(Ji).reduce(uq,this)},fq=function(t,n,r,i){var o={configurable:!0,enumerable:!0};return t.length?o.get=function(){var a=0,l=function(f){if(f)throw f;t[a]&&t[a++](r,l)};return l(),r}:(o.value=r,o.writable=!0),Object.defineProperty(i,n,o),i[n]},dq=function(t,n){var r,i;return typeof t===sj&&(n=t,t=lj),r=t.split(Ji),i=r.shift(),r.length?Ky.call(this,i).middleware(r.join(Ji),n):(this.middlewares[i]||(this.middlewares[i]=[]),this.middlewares[i].push(n)),this},hq=function(t,n){return n(t)},qk=function(t,n){return(t[n]||[]).concat(t.__global__||[])},pq=function(t,n){var r,i,o,s,a;return this.id,o=this.container,s=this.decorators,a=this.middlewares,r=t+zS,i=Object.create(null),i[r]={configurable:!0,enumerable:!0,get:function(){var c=new n;return delete o[r],o[r]=c,c}},i[t]={configurable:!0,enumerable:!0,get:function(){var c=o[r],f;return c&&(f=qk(s,t).reduce(hq,c.$get(o)),delete o[r],delete o[t]),f===void 0?f:fq(qk(a,t),t,f,o)}},Object.defineProperties(o,i),this},uj=function(t,n){var r,i;return r=t.split(Ji),this.providerMap[t]&&r.length===1&&!this.container[t+zS]?console.error(t+" provider already instantiated."):(this.originalProviders[t]=n,this.providerMap[t]=!0,i=r.shift(),r.length?(Ky.call(this,i).provider(r.join(Ji),n),this):pq.call(this,i,n))},VS=function(t,n){return uj.call(this,t,function(){this.$get=n})},fj=function(t,n,r){var i=arguments.length>3?US.call(arguments,3):[],o=this;return VS.call(this,t,function(){var a=n,l=i.map(cj,o.container);return r?new(n.bind.apply(n,[null].concat(l))):a.apply(null,l)})},mq=function(t,n){return fj.apply(this,[t,n,!0].concat(US.call(arguments,2)))},gq=function(t,n){return fj.apply(this,[t,n,!1].concat(US.call(arguments,2)))},dj=function(t,n){Object.defineProperty(this,t,{configurable:!0,enumerable:!0,value:n,writable:!0})},hj=function(t,n){var r=t[n];return r||(r={},dj.call(t,n,r)),r},vq=function(t,n){var r;return r=t.split(Ji),t=r.pop(),dj.call(r.reduce(hj,this.container),t,n),this},yq=function(t,n){Object.defineProperty(this,t,{configurable:!1,enumerable:!0,value:n,writable:!1})},_q=function(t,n){var r=t.split(Ji);return t=r.pop(),yq.call(r.reduce(hj,this.container),t,n),this},pj=function(t,n){var r,i;return typeof t===sj&&(n=t,t=lj),r=t.split(Ji),i=r.shift(),r.length?Ky.call(this,i).decorator(r.join(Ji),n):(this.decorators[i]||(this.decorators[i]=[]),this.decorators[i].push(n)),this},bq=function(t){return this.deferred.push(t),this},wq=function(t){return(t||[]).map(cj,this.container)},xq=function(t,n){return VS.call(this,t,function(i){return{instance:n.bind(n,i)}})},Sq=function(t){return!/^\$(?:decorator|register|list)$|Provider$/.test(t)},HS=function(t){return Object.keys(t||this.container||{}).filter(Sq)},Vg={},Cq=function(t){var n;return typeof t===aj?(n=Vg[t],n||(Vg[t]=n=new Pi,n.constant("BOTTLE_NAME",t)),n):new Pi},Eq=function(t){typeof t===aj?delete Vg[t]:Vg={}},mj=function(t){var n=t.$value===void 0?t:t.$value;return this[t.$type||"service"].apply(this,[t.$name,n].concat(t.$inject||[]))},Gk=function(t){delete this.providerMap[t],delete this.container[t],delete this.container[t+zS]},Tq=function(t){var n=this.originalProviders,r=Array.isArray(t);Object.keys(this.originalProviders).forEach(function(o){if(!(r&&t.indexOf(o)===-1)){var s=o.split(Ji);s.length>1&&s.forEach(Gk,Ky.call(this,s[0])),Gk.call(this,o),this.provider(o,n[o])}},this)},Oq=function(t){return this.deferred.forEach(function(r){r(t)}),this};Pi=function e(t){if(!(this instanceof e))return e.pop(t);this.id=cq++,this.decorators={},this.middlewares={},this.nested={},this.providerMap={},this.originalProviders={},this.deferred=[],this.container={$decorator:pj.bind(this),$register:mj.bind(this),$list:HS.bind(this)}};Pi.prototype={constant:_q,decorator:pj,defer:bq,digest:wq,factory:VS,instanceFactory:xq,list:HS,middleware:dq,provider:uj,resetProviders:Tq,register:mj,resolve:Oq,service:mq,serviceFactory:gq,value:vq};Pi.pop=Cq;Pi.clear=Eq;Pi.list=HS;Pi.config={strict:!1};const Pq=Pi;var kq=function(){return!0};const gj=kq;function Ot(e){return e!=null&&typeof e=="object"&&e["@@functional/placeholder"]===!0}function yt(e){return function t(n){return arguments.length===0||Ot(n)?t:e.apply(this,arguments)}}function lt(e){return function t(n,r){switch(arguments.length){case 0:return t;case 1:return Ot(n)?t:yt(function(i){return e(n,i)});default:return Ot(n)&&Ot(r)?t:Ot(n)?yt(function(i){return e(i,r)}):Ot(r)?yt(function(i){return e(n,i)}):e(n,r)}}}function Mq(e,t){e=e||[],t=t||[];var n,r=e.length,i=t.length,o=[];for(n=0;n=arguments.length)?a=t[s]:(a=arguments[i],i+=1),r[s]=a,Ot(a)||(o-=1),s+=1}return o<=0?n.apply(this,r):Gc(o,Xy(e,r,n))}}var Rq=lt(function(t,n){return t===1?yt(n):Gc(t,Xy(t,[],n))});const Hg=Rq;function Qs(e){return function t(n,r,i){switch(arguments.length){case 0:return t;case 1:return Ot(n)?t:lt(function(o,s){return e(n,o,s)});case 2:return Ot(n)&&Ot(r)?t:Ot(n)?lt(function(o,s){return e(o,r,s)}):Ot(r)?lt(function(o,s){return e(n,o,s)}):yt(function(o){return e(n,r,o)});default:return Ot(n)&&Ot(r)&&Ot(i)?t:Ot(n)&&Ot(r)?lt(function(o,s){return e(o,s,i)}):Ot(n)&&Ot(i)?lt(function(o,s){return e(o,r,s)}):Ot(r)&&Ot(i)?lt(function(o,s){return e(n,o,s)}):Ot(n)?yt(function(o){return e(o,r,i)}):Ot(r)?yt(function(o){return e(n,o,i)}):Ot(i)?yt(function(o){return e(n,r,o)}):e(n,r,i)}}}const $d=Array.isArray||function(t){return t!=null&&t.length>=0&&Object.prototype.toString.call(t)==="[object Array]"};function Nq(e){return e!=null&&typeof e["@@transducer/step"]=="function"}function WS(e,t,n){return function(){if(arguments.length===0)return n();var r=Array.prototype.slice.call(arguments,0),i=r.pop();if(!$d(i)){for(var o=0;ot?n:t});const vj=Lq;function lm(e,t){for(var n=0,r=t.length,i=Array(r);n0?t.hasOwnProperty(0)&&t.hasOwnProperty(t.length-1):!1});const yj=Dq;var Aq=function(){function e(t){this.f=t}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(t){return t},e.prototype["@@transducer/step"]=function(t,n){return this.f(t,n)},e}();function jq(e){return new Aq(e)}var Iq=lt(function(t,n){return Gc(t.length,function(){return t.apply(n,arguments)})});const Fq=Iq;function $q(e,t,n){for(var r=0,i=n.length;r=0;)n=Jk[r],Mr(n,t)&&!Wq(i,n)&&(i[i.length]=n),r-=1;return i});const eo=Yq;var qq=lt(WS(["fantasy-land/map","map"],Uq,function(t,n){switch(Object.prototype.toString.call(n)){case"[object Function]":return Hg(n.length,function(){return t.call(this,n.apply(this,arguments))});case"[object Object]":return Zc(function(r,i){return r[i]=t(n[i]),r},{},eo(n));default:return lm(t,n)}}));const Bd=qq,nw=Number.isInteger||function(t){return t<<0===t};var Gq=lt(function(t,n){var r=t<0?n.length+t:t;return Qy(n)?n.charAt(r):n[r]});const bj=Gq;var Zq=lt(function(t,n){return t.map(function(r){for(var i=n,o=0,s;o1){var o=!$o(r)&&Mr(i,r)?r[i]:nw(t[1])?[]:{};n=e(Array.prototype.slice.call(t,1),n,o)}if(nw(i)&&$d(r)){var s=[].concat(r);return s[i]=n,s}else return sd(i,n,r)});const Tl=aG;function lG(e){var t=Object.prototype.toString.call(e);return t==="[object Function]"||t==="[object AsyncFunction]"||t==="[object GeneratorFunction]"||t==="[object AsyncGeneratorFunction]"}var cG=lt(function(t,n){var r=Hg(t,n);return Hg(t,function(){return Zc(rG,Bd(r,arguments[0]),Array.prototype.slice.call(arguments,1))})});const uG=cG;var fG=yt(function(t){return uG(t.length,t)});const dG=fG;function hG(e){return function t(n){for(var r,i,o,s=[],a=0,l=n.length;a=0;){if(n[o]===e)return r[o]===t;o-=1}switch(i){case"Map":return e.size!==t.size?!1:rM(e.entries(),t.entries(),n.concat([e]),r.concat([t]));case"Set":return e.size!==t.size?!1:rM(e.values(),t.values(),n.concat([e]),r.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var s=eo(e);if(s.length!==eo(t).length)return!1;var a=n.concat([e]),l=r.concat([t]);for(o=s.length-1;o>=0;){var c=s[o];if(!(Mr(c,t)&&ZS(t[c],e[c],a,l)))return!1;o-=1}return!0}var kG=lt(function(t,n){return ZS(t,n,[],[])});const KS=kG;function MG(e,t,n){var r,i;if(typeof e.indexOf=="function")switch(typeof t){case"number":if(t===0){for(r=1/t;n=0}function Y0(e){var t=e.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0");return'"'+t.replace(/"/g,'\\"')+'"'}var Nu=function(t){return(t<10?"0":"")+t},NG=typeof Date.prototype.toISOString=="function"?function(t){return t.toISOString()}:function(t){return t.getUTCFullYear()+"-"+Nu(t.getUTCMonth()+1)+"-"+Nu(t.getUTCDate())+"T"+Nu(t.getUTCHours())+":"+Nu(t.getUTCMinutes())+":"+Nu(t.getUTCSeconds())+"."+(t.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};const LG=NG;function DG(e){return function(){return!e.apply(this,arguments)}}function AG(e,t){for(var n=0,r=t.length,i=[];n":Cj(s,a)},r=function(o,s){return lm(function(a){return Y0(a)+": "+n(o[a])},s.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+lm(n,e).join(", ")+"))";case"[object Array]":return"["+lm(n,e).concat(r(e,zd(function(o){return/^\d+$/.test(o)},eo(e)))).join(", ")+"]";case"[object Boolean]":return typeof e=="object"?"new Boolean("+n(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?n(NaN):Y0(LG(e)))+")";case"[object Null]":return"null";case"[object Number]":return typeof e=="object"?"new Number("+n(e.valueOf())+")":1/e===-1/0?"-0":e.toString(10);case"[object String]":return typeof e=="object"?"new String("+n(e.valueOf())+")":Y0(e);case"[object Undefined]":return"undefined";default:if(typeof e.toString=="function"){var i=e.toString();if(i!=="[object Object]")return i}return"{"+r(e,eo(e)).join(", ")+"}"}}var zG=yt(function(t){return Cj(t,[])});const UG=zG;var VG=yt(function(t){var n=YS(vj,0,Bd(function(r){return r[0].length},t));return Gc(n,function(){for(var r=0;rs?1:0})});const EZ=CZ;var TZ=lt(function(t,n){if(t<=0)throw new Error("First argument to splitEvery must be a positive integer");for(var r=[],i=0;i!!(e!=null&&e.url)&&!!(e!=null&&e.apiKey),Ms=e=>!!(e!=null&&e.id),Jy=e=>!!(e!=null&&e.version),AZ=e=>!!(e!=null&&e.serverNotFound),Ud=e=>Ms(e)?e.id:"",jZ=e=>vZ(["id","autoConnect"],e),e_=(e,t,n)=>e!==t?"ASC":n?{ASC:"DESC",DESC:void 0}[n]:"ASC",Nj=(e,{field:t,dir:n})=>!t||!n?e:e.sort((r,i)=>{const o=n==="ASC"?1:-1,s=n==="ASC"?-1:1;return r[t]>i[t]?o:s}),Lj=e=>e.dir?`${e.field}-${e.dir}`:void 0,IZ=e=>{const[t,n]=e.split("-");return{field:t,dir:n}};var FZ=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},n=Symbol("test"),r=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var i=42;t[n]=i;for(n in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var o=Object.getOwnPropertySymbols(t);if(o.length!==1||o[0]!==n||!Object.prototype.propertyIsEnumerable.call(t,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(t,n);if(s.value!==i||s.enumerable!==!0)return!1}return!0},oM=typeof Symbol<"u"&&Symbol,$Z=FZ,BZ=function(){return typeof oM!="function"||typeof Symbol!="function"||typeof oM("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:$Z()},zZ="Function.prototype.bind called on incompatible ",q0=Array.prototype.slice,UZ=Object.prototype.toString,VZ="[object Function]",HZ=function(t){var n=this;if(typeof n!="function"||UZ.call(n)!==VZ)throw new TypeError(zZ+n);for(var r=q0.call(arguments,1),i,o=function(){if(this instanceof i){var f=n.apply(this,r.concat(q0.call(arguments)));return Object(f)===f?f:this}else return n.apply(t,r.concat(q0.call(arguments)))},s=Math.max(0,n.length-r.length),a=[],l=0;l"u"?st:ns(Uint8Array),fc={"%AggregateError%":typeof AggregateError>"u"?st:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?st:ArrayBuffer,"%ArrayIteratorPrototype%":Ol?ns([][Symbol.iterator]()):st,"%AsyncFromSyncIteratorPrototype%":st,"%AsyncFunction%":Il,"%AsyncGenerator%":Il,"%AsyncGeneratorFunction%":Il,"%AsyncIteratorPrototype%":Il,"%Atomics%":typeof Atomics>"u"?st:Atomics,"%BigInt%":typeof BigInt>"u"?st:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?st:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?st:Float32Array,"%Float64Array%":typeof Float64Array>"u"?st:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?st:FinalizationRegistry,"%Function%":Dj,"%GeneratorFunction%":Il,"%Int8Array%":typeof Int8Array>"u"?st:Int8Array,"%Int16Array%":typeof Int16Array>"u"?st:Int16Array,"%Int32Array%":typeof Int32Array>"u"?st:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Ol?ns(ns([][Symbol.iterator]())):st,"%JSON%":typeof JSON=="object"?JSON:st,"%Map%":typeof Map>"u"?st:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Ol?st:ns(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?st:Promise,"%Proxy%":typeof Proxy>"u"?st:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?st:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?st:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Ol?st:ns(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?st:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Ol?ns(""[Symbol.iterator]()):st,"%Symbol%":Ol?Symbol:st,"%SyntaxError%":ld,"%ThrowTypeError%":GZ,"%TypedArray%":ZZ,"%TypeError%":uc,"%Uint8Array%":typeof Uint8Array>"u"?st:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?st:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?st:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?st:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?st:WeakMap,"%WeakRef%":typeof WeakRef>"u"?st:WeakRef,"%WeakSet%":typeof WeakSet>"u"?st:WeakSet},KZ=function e(t){var n;if(t==="%AsyncFunction%")n=G0("async function () {}");else if(t==="%GeneratorFunction%")n=G0("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=G0("async function* () {}");else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&(n=ns(i.prototype))}return fc[t]=n,n},sM={"%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"]},t_=eC,Gg=qZ,XZ=t_.call(Function.call,Array.prototype.concat),QZ=t_.call(Function.apply,Array.prototype.splice),aM=t_.call(Function.call,String.prototype.replace),Zg=t_.call(Function.call,String.prototype.slice),JZ=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,eK=/\\(\\)?/g,tK=function(t){var n=Zg(t,0,1),r=Zg(t,-1);if(n==="%"&&r!=="%")throw new ld("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&n!=="%")throw new ld("invalid intrinsic syntax, expected opening `%`");var i=[];return aM(t,JZ,function(o,s,a,l){i[i.length]=a?aM(l,eK,"$1"):s||o}),i},nK=function(t,n){var r=t,i;if(Gg(sM,r)&&(i=sM[r],r="%"+i[0]+"%"),Gg(fc,r)){var o=fc[r];if(o===Il&&(o=KZ(r)),typeof o>"u"&&!n)throw new uc("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:r,value:o}}throw new ld("intrinsic "+t+" does not exist!")},tC=function(t,n){if(typeof t!="string"||t.length===0)throw new uc("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new uc('"allowMissing" argument must be a boolean');var r=tK(t),i=r.length>0?r[0]:"",o=nK("%"+i+"%",n),s=o.name,a=o.value,l=!1,c=o.alias;c&&(i=c[0],QZ(r,XZ([0,1],c)));for(var f=1,h=!0;f=r.length){var y=Ba(a,p);h=!!y,h&&"get"in y&&!("originalValue"in y.get)?a=y.get:a=a[p]}else h=Gg(a,p),a=a[p];h&&!l&&(fc[s]=a)}}return a},Aj={exports:{}};(function(e){var t=eC,n=tC,r=n("%Function.prototype.apply%"),i=n("%Function.prototype.call%"),o=n("%Reflect.apply%",!0)||t.call(i,r),s=n("%Object.getOwnPropertyDescriptor%",!0),a=n("%Object.defineProperty%",!0),l=n("%Math.max%");if(a)try{a({},"a",{value:1})}catch{a=null}e.exports=function(h){var p=o(t,i,arguments);if(s&&a){var m=s(p,"length");m.configurable&&a(p,"length",{value:1+l(0,h.length-(arguments.length-1))})}return p};var c=function(){return o(t,r,arguments)};a?a(e.exports,"apply",{value:c}):e.exports.apply=c})(Aj);var rK=Aj.exports,jj=tC,Ij=rK,iK=Ij(jj("String.prototype.indexOf")),oK=function(t,n){var r=jj(t,!!n);return typeof r=="function"&&iK(t,".prototype.")>-1?Ij(r):r};const sK={},aK=Object.freeze(Object.defineProperty({__proto__:null,default:sK},Symbol.toStringTag,{value:"Module"})),lK=_$(aK);var nC=typeof Map=="function"&&Map.prototype,K0=Object.getOwnPropertyDescriptor&&nC?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Kg=nC&&K0&&typeof K0.get=="function"?K0.get:null,cK=nC&&Map.prototype.forEach,rC=typeof Set=="function"&&Set.prototype,X0=Object.getOwnPropertyDescriptor&&rC?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Xg=rC&&X0&&typeof X0.get=="function"?X0.get:null,uK=rC&&Set.prototype.forEach,fK=typeof WeakMap=="function"&&WeakMap.prototype,yf=fK?WeakMap.prototype.has:null,dK=typeof WeakSet=="function"&&WeakSet.prototype,_f=dK?WeakSet.prototype.has:null,hK=typeof WeakRef=="function"&&WeakRef.prototype,lM=hK?WeakRef.prototype.deref:null,pK=Boolean.prototype.valueOf,mK=Object.prototype.toString,gK=Function.prototype.toString,vK=String.prototype.match,iC=String.prototype.slice,gs=String.prototype.replace,yK=String.prototype.toUpperCase,cM=String.prototype.toLowerCase,Fj=RegExp.prototype.test,uM=Array.prototype.concat,Ui=Array.prototype.join,_K=Array.prototype.slice,fM=Math.floor,iw=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Q0=Object.getOwnPropertySymbols,ow=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,kc=typeof Symbol=="function"&&typeof Symbol.iterator=="object",nr=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===kc||"symbol")?Symbol.toStringTag:null,$j=Object.prototype.propertyIsEnumerable,dM=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function hM(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||Fj.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var r=e<0?-fM(-e):fM(e);if(r!==e){var i=String(r),o=iC.call(t,i.length+1);return gs.call(i,n,"$&_")+"."+gs.call(gs.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return gs.call(t,n,"$&_")}var J0=lK.custom,e1=J0&&zj(J0)?J0:null,bK=function e(t,n,r,i){var o=n||{};if(rs(o,"quoteStyle")&&o.quoteStyle!=="single"&&o.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(rs(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=rs(o,"customInspect")?o.customInspect:!0;if(typeof s!="boolean"&&s!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(rs(o,"indent")&&o.indent!==null&&o.indent!==" "&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(rs(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var a=o.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return Vj(t,o);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var l=String(t);return a?hM(t,l):l}if(typeof t=="bigint"){var c=String(t)+"n";return a?hM(t,c):c}var f=typeof o.depth>"u"?5:o.depth;if(typeof r>"u"&&(r=0),r>=f&&f>0&&typeof t=="object")return sw(t)?"[Array]":"[Object]";var h=$K(o,r);if(typeof i>"u")i=[];else if(Uj(i,t)>=0)return"[Circular]";function p(J,Z,ee){if(Z&&(i=_K.call(i),i.push(Z)),ee){var ie={depth:o.depth};return rs(o,"quoteStyle")&&(ie.quoteStyle=o.quoteStyle),e(J,ie,r+1,i)}return e(J,o,r+1,i)}if(typeof t=="function"){var m=MK(t),v=pp(t,p);return"[Function"+(m?": "+m:" (anonymous)")+"]"+(v.length>0?" { "+Ui.call(v,", ")+" }":"")}if(zj(t)){var y=kc?gs.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):ow.call(t);return typeof t=="object"&&!kc?Du(y):y}if(jK(t)){for(var x="<"+cM.call(String(t.nodeName)),_=t.attributes||[],w=0;w<_.length;w++)x+=" "+_[w].name+"="+Bj(wK(_[w].value),"double",o);return x+=">",t.childNodes&&t.childNodes.length&&(x+="..."),x+="",x}if(sw(t)){if(t.length===0)return"[]";var S=pp(t,p);return h&&!FK(S)?"["+aw(S,h)+"]":"[ "+Ui.call(S,", ")+" ]"}if(CK(t)){var T=pp(t,p);return"cause"in t&&!$j.call(t,"cause")?"{ ["+String(t)+"] "+Ui.call(uM.call("[cause]: "+p(t.cause),T),", ")+" }":T.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+Ui.call(T,", ")+" }"}if(typeof t=="object"&&s){if(e1&&typeof t[e1]=="function")return t[e1]();if(s!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(RK(t)){var P=[];return cK.call(t,function(J,Z){P.push(p(Z,t,!0)+" => "+p(J,t))}),pM("Map",Kg.call(t),P,h)}if(DK(t)){var k=[];return uK.call(t,function(J){k.push(p(J,t))}),pM("Set",Xg.call(t),k,h)}if(NK(t))return t1("WeakMap");if(AK(t))return t1("WeakSet");if(LK(t))return t1("WeakRef");if(TK(t))return Du(p(Number(t)));if(PK(t))return Du(p(iw.call(t)));if(OK(t))return Du(pK.call(t));if(EK(t))return Du(p(String(t)));if(!xK(t)&&!SK(t)){var N=pp(t,p),D=dM?dM(t)===Object.prototype:t instanceof Object||t.constructor===Object,z=t instanceof Object?"":"null prototype",A=!D&&nr&&Object(t)===t&&nr in t?iC.call(Js(t),8,-1):z?"Object":"",W=D||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",Y=W+(A||z?"["+Ui.call(uM.call([],A||[],z||[]),": ")+"] ":"");return N.length===0?Y+"{}":h?Y+"{"+aw(N,h)+"}":Y+"{ "+Ui.call(N,", ")+" }"}return String(t)};function Bj(e,t,n){var r=(n.quoteStyle||t)==="double"?'"':"'";return r+e+r}function wK(e){return gs.call(String(e),/"/g,""")}function sw(e){return Js(e)==="[object Array]"&&(!nr||!(typeof e=="object"&&nr in e))}function xK(e){return Js(e)==="[object Date]"&&(!nr||!(typeof e=="object"&&nr in e))}function SK(e){return Js(e)==="[object RegExp]"&&(!nr||!(typeof e=="object"&&nr in e))}function CK(e){return Js(e)==="[object Error]"&&(!nr||!(typeof e=="object"&&nr in e))}function EK(e){return Js(e)==="[object String]"&&(!nr||!(typeof e=="object"&&nr in e))}function TK(e){return Js(e)==="[object Number]"&&(!nr||!(typeof e=="object"&&nr in e))}function OK(e){return Js(e)==="[object Boolean]"&&(!nr||!(typeof e=="object"&&nr in e))}function zj(e){if(kc)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!ow)return!1;try{return ow.call(e),!0}catch{}return!1}function PK(e){if(!e||typeof e!="object"||!iw)return!1;try{return iw.call(e),!0}catch{}return!1}var kK=Object.prototype.hasOwnProperty||function(e){return e in this};function rs(e,t){return kK.call(e,t)}function Js(e){return mK.call(e)}function MK(e){if(e.name)return e.name;var t=vK.call(gK.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function Uj(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;nt.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return Vj(iC.call(e,0,t.maxStringLength),t)+r}var i=gs.call(gs.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,IK);return Bj(i,"single",t)}function IK(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":"")+yK.call(t.toString(16))}function Du(e){return"Object("+e+")"}function t1(e){return e+" { ? }"}function pM(e,t,n,r){var i=r?aw(n,r):Ui.call(n,", ");return e+" ("+t+") {"+i+"}"}function FK(e){for(var t=0;t=0)return!1;return!0}function $K(e,t){var n;if(e.indent===" ")n=" ";else if(typeof e.indent=="number"&&e.indent>0)n=Ui.call(Array(e.indent+1)," ");else return null;return{base:n,prev:Ui.call(Array(t+1),n)}}function aw(e,t){if(e.length===0)return"";var n=` -`+t.prev+t.base;return n+Ui.call(e,","+n)+` -`+t.prev}function pp(e,t){var n=sw(e),r=[];if(n){r.length=e.length;for(var i=0;i1;){var n=t.pop(),r=n.obj[n.prop];if(Pa(r)){for(var i=[],o=0;o=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||o===eX.RFC1738&&(c===40||c===41)){a+=s.charAt(l);continue}if(c<128){a=a+Ii[c];continue}if(c<2048){a=a+(Ii[192|c>>6]+Ii[128|c&63]);continue}if(c<55296||c>=57344){a=a+(Ii[224|c>>12]+Ii[128|c>>6&63]+Ii[128|c&63]);continue}l+=1,c=65536+((c&1023)<<10|s.charCodeAt(l)&1023),a+=Ii[240|c>>18]+Ii[128|c>>12&63]+Ii[128|c>>6&63]+Ii[128|c&63]}return a},sX=function(t){for(var n=[{obj:{o:t},prop:"o"}],r=[],i=0;i"u"&&(S=0)}if(typeof l=="function"?_=l(n,_):_ instanceof Date?_=h(_):r==="comma"&&go(_)&&(_=lw.maybeMap(_,function(F){return F instanceof Date?h(F):F})),_===null){if(o)return a&&!v?a(n,$n.encoder,y,"key",p):n;_=""}if(mX(_)||lw.isBuffer(_)){if(a){var k=v?n:a(n,$n.encoder,y,"key",p);if(r==="comma"&&v){for(var N=dX.call(String(_),","),D="",z=0;z"u")return A;var W;if(r==="comma"&&go(_))W=[{value:_.length>0?_.join(",")||null:void 0}];else if(go(l))W=l;else{var Y=Object.keys(_);W=c?Y.sort(c):Y}for(var J=i&&go(_)&&_.length===1?n+"[]":n,Z=0;Z"u"?$n.allowDots:!!t.allowDots,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:$n.charsetSentinel,delimiter:typeof t.delimiter>"u"?$n.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:$n.encode,encoder:typeof t.encoder=="function"?t.encoder:$n.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:$n.encodeValuesOnly,filter:o,format:r,formatter:i,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:$n.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:$n.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:$n.strictNullHandling}},yX=function(e,t){var n=e,r=vX(t),i,o;typeof r.filter=="function"?(o=r.filter,n=o("",n)):go(r.filter)&&(o=r.filter,i=o);var s=[];if(typeof n!="object"||n===null)return"";var a;t&&t.arrayFormat in mM?a=t.arrayFormat:t&&"indices"in t?a=t.indices?"indices":"repeat":a="indices";var l=mM[a];if(t&&"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var c=l==="comma"&&t&&t.commaRoundTrip;i||(i=Object.keys(n)),r.sort&&i.sort(r.sort);for(var f=Yj(),h=0;h0?v+m:""},Mc=Wj,cw=Object.prototype.hasOwnProperty,_X=Array.isArray,Sn={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:Mc.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},bX=function(e){return e.replace(/&#(\d+);/g,function(t,n){return String.fromCharCode(parseInt(n,10))})},Gj=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},wX="utf8=%26%2310003%3B",xX="utf8=%E2%9C%93",SX=function(t,n){var r={},i=n.ignoreQueryPrefix?t.replace(/^\?/,""):t,o=n.parameterLimit===1/0?void 0:n.parameterLimit,s=i.split(n.delimiter,o),a=-1,l,c=n.charset;if(n.charsetSentinel)for(l=0;l-1&&(v=_X(v)?[v]:v),cw.call(r,m)?r[m]=Mc.combine(r[m],v):r[m]=v}return r},CX=function(e,t,n,r){for(var i=r?t:Gj(t,n),o=e.length-1;o>=0;--o){var s,a=e[o];if(a==="[]"&&n.parseArrays)s=[].concat(i);else{s=n.plainObjects?Object.create(null):{};var l=a.charAt(0)==="["&&a.charAt(a.length-1)==="]"?a.slice(1,-1):a,c=parseInt(l,10);!n.parseArrays&&l===""?s={0:i}:!isNaN(c)&&a!==l&&String(c)===l&&c>=0&&n.parseArrays&&c<=n.arrayLimit?(s=[],s[c]=i):l!=="__proto__"&&(s[l]=i)}i=s}return i},EX=function(t,n,r,i){if(t){var o=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,s=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,l=r.depth>0&&s.exec(o),c=l?o.slice(0,l.index):o,f=[];if(c){if(!r.plainObjects&&cw.call(Object.prototype,c)&&!r.allowPrototypes)return;f.push(c)}for(var h=0;r.depth>0&&(l=a.exec(o))!==null&&h"u"?Sn.charset:t.charset;return{allowDots:typeof t.allowDots>"u"?Sn.allowDots:!!t.allowDots,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:Sn.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:Sn.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:Sn.arrayLimit,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Sn.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:Sn.comma,decoder:typeof t.decoder=="function"?t.decoder:Sn.decoder,delimiter:typeof t.delimiter=="string"||Mc.isRegExp(t.delimiter)?t.delimiter:Sn.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:Sn.depth,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:Sn.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:Sn.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:Sn.plainObjects,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Sn.strictNullHandling}},OX=function(e,t){var n=TX(t);if(e===""||e===null||typeof e>"u")return n.plainObjects?Object.create(null):{};for(var r=typeof e=="string"?SX(e,n):e,i=n.plainObjects?Object.create(null):{},o=Object.keys(r),s=0;sZj.parse(e,{ignoreQueryPrefix:!0}),Vd=e=>Zj.stringify(e,{arrayFormat:"brackets"});var n_=(e=>(e.INVALID_ARGUMENT="INVALID_ARGUMENT",e.INVALID_SHORT_URL_DELETION="INVALID_SHORT_URL_DELETION",e.DOMAIN_NOT_FOUND="DOMAIN_NOT_FOUND",e.FORBIDDEN_OPERATION="FORBIDDEN_OPERATION",e.INVALID_URL="INVALID_URL",e.INVALID_SLUG="INVALID_SLUG",e.INVALID_SHORTCODE="INVALID_SHORTCODE",e.TAG_CONFLICT="TAG_CONFLICT",e.TAG_NOT_FOUND="TAG_NOT_FOUND",e.MERCURE_NOT_CONFIGURED="MERCURE_NOT_CONFIGURED",e.INVALID_AUTHORIZATION="INVALID_AUTHORIZATION",e.INVALID_API_KEY="INVALID_API_KEY",e.NOT_FOUND="NOT_FOUND",e))(n_||{}),r_=(e=>(e.INVALID_ARGUMENT="https://shlink.io/api/error/invalid-data",e.INVALID_SHORT_URL_DELETION="https://shlink.io/api/error/invalid-short-url-deletion",e.DOMAIN_NOT_FOUND="https://shlink.io/api/error/domain-not-found",e.FORBIDDEN_OPERATION="https://shlink.io/api/error/forbidden-tag-operation",e.INVALID_URL="https://shlink.io/api/error/invalid-url",e.INVALID_SLUG="https://shlink.io/api/error/non-unique-slug",e.INVALID_SHORTCODE="https://shlink.io/api/error/short-url-not-found",e.TAG_CONFLICT="https://shlink.io/api/error/tag-conflict",e.TAG_NOT_FOUND="https://shlink.io/api/error/tag-not-found",e.MERCURE_NOT_CONFIGURED="https://shlink.io/api/error/mercure-not-configured",e.INVALID_AUTHORIZATION="https://shlink.io/api/error/missing-authentication",e.INVALID_API_KEY="https://shlink.io/api/error/invalid-api-key",e.NOT_FOUND="https://shlink.io/api/error/not-found",e))(r_||{});const NX=e=>!!e&&typeof e=="object"&&["type","detail","title","status"].every(t=>t in e),ro=e=>NX(e)?e:void 0,LX=e=>(e==null?void 0:e.type)===n_.INVALID_ARGUMENT||(e==null?void 0:e.type)===r_.INVALID_ARGUMENT,DX=e=>(e==null?void 0:e.type)==="INVALID_SHORTCODE_DELETION"||(e==null?void 0:e.type)===n_.INVALID_SHORT_URL_DELETION||(e==null?void 0:e.type)===r_.INVALID_SHORT_URL_DELETION,AX=e=>((e==null?void 0:e.type)===n_.NOT_FOUND||(e==null?void 0:e.type)===r_.NOT_FOUND)&&(e==null?void 0:e.status)===404,jX=(e,t)=>`${e}/rest/v${t}`,IX=zd($o),FX=({orderBy:e={},excludeMaxVisitsReached:t,excludePastValidUntil:n,...r})=>({...r,excludeMaxVisitsReached:t===!0?"true":void 0,excludePastValidUntil:n===!0?"true":void 0,orderBy:Lj(e)});class $X{constructor(t,n,r){xe(this,"apiVersion");xe(this,"listShortUrls",async(t={})=>this.performRequest("/short-urls","GET",FX(t)).then(({shortUrls:n})=>n));xe(this,"createShortUrl",async t=>{const n=zd(r=>Wn(r)||$o(r),t);return this.performRequest("/short-urls","POST",{},n)});xe(this,"getShortUrlVisits",async(t,n)=>this.performRequest(`/short-urls/${t}/visits`,"GET",n).then(({visits:r})=>r));xe(this,"getTagVisits",async(t,n)=>this.performRequest(`/tags/${t}/visits`,"GET",n).then(({visits:r})=>r));xe(this,"getDomainVisits",async(t,n)=>this.performRequest(`/domains/${t}/visits`,"GET",n).then(({visits:r})=>r));xe(this,"getOrphanVisits",async t=>this.performRequest("/visits/orphan","GET",t).then(({visits:n})=>n));xe(this,"getNonOrphanVisits",async t=>this.performRequest("/visits/non-orphan","GET",t).then(({visits:n})=>n));xe(this,"getVisitsOverview",async()=>this.performRequest("/visits").then(({visits:t})=>t));xe(this,"getShortUrl",async(t,n)=>this.performRequest(`/short-urls/${t}`,"GET",{domain:n}));xe(this,"deleteShortUrl",async(t,n)=>this.performEmptyRequest(`/short-urls/${t}`,"DELETE",{domain:n}));xe(this,"updateShortUrl",async(t,n,r)=>this.performRequest(`/short-urls/${t}`,"PATCH",{domain:n},r));xe(this,"listTags",async()=>this.performRequest("/tags","GET",{withStats:"true"}).then(({tags:t})=>t).then(({data:t,stats:n})=>({tags:t,stats:n})));xe(this,"tagsStats",async()=>this.performRequest("/tags/stats","GET").then(({tags:t})=>t).then(({data:t})=>({tags:t.map(({tag:n})=>n),stats:t})));xe(this,"deleteTags",async t=>this.performEmptyRequest("/tags","DELETE",{tags:t}).then(()=>({tags:t})));xe(this,"editTag",async(t,n)=>this.performEmptyRequest("/tags","PUT",{},{oldName:t,newName:n}).then(()=>({oldName:t,newName:n})));xe(this,"health",async()=>this.performRequest("/health","GET"));xe(this,"mercureInfo",async()=>this.performRequest("/mercure-info","GET"));xe(this,"listDomains",async()=>this.performRequest("/domains").then(({domains:t})=>t));xe(this,"editDomainRedirects",async t=>this.performRequest("/domains/redirects","PATCH",{},t));xe(this,"performRequest",async(t,n="GET",r={},i)=>this.httpClient.fetchJson(...this.toFetchParams(t,n,r,i)).catch(this.handleFetchError(()=>this.httpClient.fetchJson(...this.toFetchParams(t,n,r,i)))));xe(this,"performEmptyRequest",async(t,n="GET",r={},i)=>this.httpClient.fetchEmpty(...this.toFetchParams(t,n,r,i)).catch(this.handleFetchError(()=>this.httpClient.fetchEmpty(...this.toFetchParams(t,n,r,i)))));xe(this,"toFetchParams",(t,n,r={},i)=>{const o=Vd(IX(r)),s=Wn(o)?"":`?${o}`;return[`${jX(this.baseUrl,this.apiVersion)}${t}${s}`,{method:n,body:i&&JSON.stringify(i),headers:{"X-Api-Key":this.apiKey}}]});xe(this,"handleFetchError",t=>n=>{if(!AX(ro(n)))throw n;return this.apiVersion=2,t()});this.httpClient=t,this.baseUrl=n,this.apiKey=r,this.apiVersion=3}}const o1={},BX=e=>typeof e=="function",zX=e=>{const{selectedServer:t}=e();if(!JS(t))throw new Error("There's no selected server or it is not found");return t},UX=e=>t=>{const{url:n,apiKey:r}=BX(t)?zX(t):t,i=`${n}_${r}`;return o1[i]||(o1[i]=new $X(e,n,r)),o1[i]},VX=e=>{e.serviceFactory("buildShlinkApiClient",UX,"HttpClient")};var Kj={exports:{}};/*! - Copyright (c) 2018 Jed Watson. - Licensed under the MIT License (MIT), see - http://jedwatson.github.io/classnames -*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],i=0;ie.length)&&(t=e.length);for(var n=0,r=new Array(t);n-1;i--){var o=n[i],s=(o.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(s)>-1&&(r=o)}return Nt.head.insertBefore(t,r),e}}var dJ="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function pd(){for(var e=12,t="";e-- >0;)t+=dJ[Math.random()*62|0];return t}function Qc(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function yC(e){return e.classList?Qc(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function pI(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function hJ(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,'="').concat(pI(e[n]),'" ')},"").trim()}function i_(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")},"")}function _C(e){return e.size!==qi.size||e.x!==qi.x||e.y!==qi.y||e.rotate!==qi.rotate||e.flipX||e.flipY}function pJ(e){var t=e.transform,n=e.containerWidth,r=e.iconWidth,i={transform:"translate(".concat(n/2," 256)")},o="translate(".concat(t.x*32,", ").concat(t.y*32,") "),s="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),a="rotate(".concat(t.rotate," 0 0)"),l={transform:"".concat(o," ").concat(s," ").concat(a)},c={transform:"translate(".concat(r/2*-1," -256)")};return{outer:i,inner:l,path:c}}function mJ(e){var t=e.transform,n=e.width,r=n===void 0?dw:n,i=e.height,o=i===void 0?dw:i,s=e.startCentered,a=s===void 0?!1:s,l="";return a&&aI?l+="translate(".concat(t.x/Ko-r/2,"em, ").concat(t.y/Ko-o/2,"em) "):a?l+="translate(calc(-50% + ".concat(t.x/Ko,"em), calc(-50% + ").concat(t.y/Ko,"em)) "):l+="translate(".concat(t.x/Ko,"em, ").concat(t.y/Ko,"em) "),l+="scale(".concat(t.size/Ko*(t.flipX?-1:1),", ").concat(t.size/Ko*(t.flipY?-1:1),") "),l+="rotate(".concat(t.rotate,"deg) "),l}var gJ=`:root, :host { - --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid"; - --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular"; - --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light"; - --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin"; - --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone"; - --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp"; - --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp"; - --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands"; -} - -svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa { - overflow: visible; - box-sizing: content-box; -} - -.svg-inline--fa { - display: var(--fa-display, inline-block); - height: 1em; - overflow: visible; - vertical-align: -0.125em; -} -.svg-inline--fa.fa-2xs { - vertical-align: 0.1em; -} -.svg-inline--fa.fa-xs { - vertical-align: 0em; -} -.svg-inline--fa.fa-sm { - vertical-align: -0.0714285705em; -} -.svg-inline--fa.fa-lg { - vertical-align: -0.2em; -} -.svg-inline--fa.fa-xl { - vertical-align: -0.25em; -} -.svg-inline--fa.fa-2xl { - vertical-align: -0.3125em; -} -.svg-inline--fa.fa-pull-left { - margin-right: var(--fa-pull-margin, 0.3em); - width: auto; -} -.svg-inline--fa.fa-pull-right { - margin-left: var(--fa-pull-margin, 0.3em); - width: auto; -} -.svg-inline--fa.fa-li { - width: var(--fa-li-width, 2em); - top: 0.25em; -} -.svg-inline--fa.fa-fw { - width: var(--fa-fw-width, 1.25em); -} - -.fa-layers svg.svg-inline--fa { - bottom: 0; - left: 0; - margin: auto; - position: absolute; - right: 0; - top: 0; -} - -.fa-layers-counter, .fa-layers-text { - display: inline-block; - position: absolute; - text-align: center; -} - -.fa-layers { - display: inline-block; - height: 1em; - position: relative; - text-align: center; - vertical-align: -0.125em; - width: 1em; -} -.fa-layers svg.svg-inline--fa { - -webkit-transform-origin: center center; - transform-origin: center center; -} - -.fa-layers-text { - left: 50%; - top: 50%; - -webkit-transform: translate(-50%, -50%); - transform: translate(-50%, -50%); - -webkit-transform-origin: center center; - transform-origin: center center; -} - -.fa-layers-counter { - background-color: var(--fa-counter-background-color, #ff253a); - border-radius: var(--fa-counter-border-radius, 1em); - box-sizing: border-box; - color: var(--fa-inverse, #fff); - line-height: var(--fa-counter-line-height, 1); - max-width: var(--fa-counter-max-width, 5em); - min-width: var(--fa-counter-min-width, 1.5em); - overflow: hidden; - padding: var(--fa-counter-padding, 0.25em 0.5em); - right: var(--fa-right, 0); - text-overflow: ellipsis; - top: var(--fa-top, 0); - -webkit-transform: scale(var(--fa-counter-scale, 0.25)); - transform: scale(var(--fa-counter-scale, 0.25)); - -webkit-transform-origin: top right; - transform-origin: top right; -} - -.fa-layers-bottom-right { - bottom: var(--fa-bottom, 0); - right: var(--fa-right, 0); - top: auto; - -webkit-transform: scale(var(--fa-layers-scale, 0.25)); - transform: scale(var(--fa-layers-scale, 0.25)); - -webkit-transform-origin: bottom right; - transform-origin: bottom right; -} - -.fa-layers-bottom-left { - bottom: var(--fa-bottom, 0); - left: var(--fa-left, 0); - right: auto; - top: auto; - -webkit-transform: scale(var(--fa-layers-scale, 0.25)); - transform: scale(var(--fa-layers-scale, 0.25)); - -webkit-transform-origin: bottom left; - transform-origin: bottom left; -} - -.fa-layers-top-right { - top: var(--fa-top, 0); - right: var(--fa-right, 0); - -webkit-transform: scale(var(--fa-layers-scale, 0.25)); - transform: scale(var(--fa-layers-scale, 0.25)); - -webkit-transform-origin: top right; - transform-origin: top right; -} - -.fa-layers-top-left { - left: var(--fa-left, 0); - right: auto; - top: var(--fa-top, 0); - -webkit-transform: scale(var(--fa-layers-scale, 0.25)); - transform: scale(var(--fa-layers-scale, 0.25)); - -webkit-transform-origin: top left; - transform-origin: top left; -} - -.fa-1x { - font-size: 1em; -} - -.fa-2x { - font-size: 2em; -} - -.fa-3x { - font-size: 3em; -} - -.fa-4x { - font-size: 4em; -} - -.fa-5x { - font-size: 5em; -} - -.fa-6x { - font-size: 6em; -} - -.fa-7x { - font-size: 7em; -} - -.fa-8x { - font-size: 8em; -} - -.fa-9x { - font-size: 9em; -} - -.fa-10x { - font-size: 10em; -} - -.fa-2xs { - font-size: 0.625em; - line-height: 0.1em; - vertical-align: 0.225em; -} - -.fa-xs { - font-size: 0.75em; - line-height: 0.0833333337em; - vertical-align: 0.125em; -} - -.fa-sm { - font-size: 0.875em; - line-height: 0.0714285718em; - vertical-align: 0.0535714295em; -} - -.fa-lg { - font-size: 1.25em; - line-height: 0.05em; - vertical-align: -0.075em; -} - -.fa-xl { - font-size: 1.5em; - line-height: 0.0416666682em; - vertical-align: -0.125em; -} - -.fa-2xl { - font-size: 2em; - line-height: 0.03125em; - vertical-align: -0.1875em; -} - -.fa-fw { - text-align: center; - width: 1.25em; -} - -.fa-ul { - list-style-type: none; - margin-left: var(--fa-li-margin, 2.5em); - padding-left: 0; -} -.fa-ul > li { - position: relative; -} - -.fa-li { - left: calc(var(--fa-li-width, 2em) * -1); - position: absolute; - text-align: center; - width: var(--fa-li-width, 2em); - line-height: inherit; -} - -.fa-border { - border-color: var(--fa-border-color, #eee); - border-radius: var(--fa-border-radius, 0.1em); - border-style: var(--fa-border-style, solid); - border-width: var(--fa-border-width, 0.08em); - padding: var(--fa-border-padding, 0.2em 0.25em 0.15em); -} - -.fa-pull-left { - float: left; - margin-right: var(--fa-pull-margin, 0.3em); -} - -.fa-pull-right { - float: right; - margin-left: var(--fa-pull-margin, 0.3em); -} - -.fa-beat { - -webkit-animation-name: fa-beat; - animation-name: fa-beat; - -webkit-animation-delay: var(--fa-animation-delay, 0s); - animation-delay: var(--fa-animation-delay, 0s); - -webkit-animation-direction: var(--fa-animation-direction, normal); - animation-direction: var(--fa-animation-direction, normal); - -webkit-animation-duration: var(--fa-animation-duration, 1s); - animation-duration: var(--fa-animation-duration, 1s); - -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); - animation-iteration-count: var(--fa-animation-iteration-count, infinite); - -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out); - animation-timing-function: var(--fa-animation-timing, ease-in-out); -} - -.fa-bounce { - -webkit-animation-name: fa-bounce; - animation-name: fa-bounce; - -webkit-animation-delay: var(--fa-animation-delay, 0s); - animation-delay: var(--fa-animation-delay, 0s); - -webkit-animation-direction: var(--fa-animation-direction, normal); - animation-direction: var(--fa-animation-direction, normal); - -webkit-animation-duration: var(--fa-animation-duration, 1s); - animation-duration: var(--fa-animation-duration, 1s); - -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); - animation-iteration-count: var(--fa-animation-iteration-count, infinite); - -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1)); - animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1)); -} - -.fa-fade { - -webkit-animation-name: fa-fade; - animation-name: fa-fade; - -webkit-animation-delay: var(--fa-animation-delay, 0s); - animation-delay: var(--fa-animation-delay, 0s); - -webkit-animation-direction: var(--fa-animation-direction, normal); - animation-direction: var(--fa-animation-direction, normal); - -webkit-animation-duration: var(--fa-animation-duration, 1s); - animation-duration: var(--fa-animation-duration, 1s); - -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); - animation-iteration-count: var(--fa-animation-iteration-count, infinite); - -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); - animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); -} - -.fa-beat-fade { - -webkit-animation-name: fa-beat-fade; - animation-name: fa-beat-fade; - -webkit-animation-delay: var(--fa-animation-delay, 0s); - animation-delay: var(--fa-animation-delay, 0s); - -webkit-animation-direction: var(--fa-animation-direction, normal); - animation-direction: var(--fa-animation-direction, normal); - -webkit-animation-duration: var(--fa-animation-duration, 1s); - animation-duration: var(--fa-animation-duration, 1s); - -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); - animation-iteration-count: var(--fa-animation-iteration-count, infinite); - -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); - animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); -} - -.fa-flip { - -webkit-animation-name: fa-flip; - animation-name: fa-flip; - -webkit-animation-delay: var(--fa-animation-delay, 0s); - animation-delay: var(--fa-animation-delay, 0s); - -webkit-animation-direction: var(--fa-animation-direction, normal); - animation-direction: var(--fa-animation-direction, normal); - -webkit-animation-duration: var(--fa-animation-duration, 1s); - animation-duration: var(--fa-animation-duration, 1s); - -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); - animation-iteration-count: var(--fa-animation-iteration-count, infinite); - -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out); - animation-timing-function: var(--fa-animation-timing, ease-in-out); -} - -.fa-shake { - -webkit-animation-name: fa-shake; - animation-name: fa-shake; - -webkit-animation-delay: var(--fa-animation-delay, 0s); - animation-delay: var(--fa-animation-delay, 0s); - -webkit-animation-direction: var(--fa-animation-direction, normal); - animation-direction: var(--fa-animation-direction, normal); - -webkit-animation-duration: var(--fa-animation-duration, 1s); - animation-duration: var(--fa-animation-duration, 1s); - -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); - animation-iteration-count: var(--fa-animation-iteration-count, infinite); - -webkit-animation-timing-function: var(--fa-animation-timing, linear); - animation-timing-function: var(--fa-animation-timing, linear); -} - -.fa-spin { - -webkit-animation-name: fa-spin; - animation-name: fa-spin; - -webkit-animation-delay: var(--fa-animation-delay, 0s); - animation-delay: var(--fa-animation-delay, 0s); - -webkit-animation-direction: var(--fa-animation-direction, normal); - animation-direction: var(--fa-animation-direction, normal); - -webkit-animation-duration: var(--fa-animation-duration, 2s); - animation-duration: var(--fa-animation-duration, 2s); - -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); - animation-iteration-count: var(--fa-animation-iteration-count, infinite); - -webkit-animation-timing-function: var(--fa-animation-timing, linear); - animation-timing-function: var(--fa-animation-timing, linear); -} - -.fa-spin-reverse { - --fa-animation-direction: reverse; -} - -.fa-pulse, -.fa-spin-pulse { - -webkit-animation-name: fa-spin; - animation-name: fa-spin; - -webkit-animation-direction: var(--fa-animation-direction, normal); - animation-direction: var(--fa-animation-direction, normal); - -webkit-animation-duration: var(--fa-animation-duration, 1s); - animation-duration: var(--fa-animation-duration, 1s); - -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); - animation-iteration-count: var(--fa-animation-iteration-count, infinite); - -webkit-animation-timing-function: var(--fa-animation-timing, steps(8)); - animation-timing-function: var(--fa-animation-timing, steps(8)); -} - -@media (prefers-reduced-motion: reduce) { - .fa-beat, -.fa-bounce, -.fa-fade, -.fa-beat-fade, -.fa-flip, -.fa-pulse, -.fa-shake, -.fa-spin, -.fa-spin-pulse { - -webkit-animation-delay: -1ms; - animation-delay: -1ms; - -webkit-animation-duration: 1ms; - animation-duration: 1ms; - -webkit-animation-iteration-count: 1; - animation-iteration-count: 1; - -webkit-transition-delay: 0s; - transition-delay: 0s; - -webkit-transition-duration: 0s; - transition-duration: 0s; - } -} -@-webkit-keyframes fa-beat { - 0%, 90% { - -webkit-transform: scale(1); - transform: scale(1); - } - 45% { - -webkit-transform: scale(var(--fa-beat-scale, 1.25)); - transform: scale(var(--fa-beat-scale, 1.25)); - } -} -@keyframes fa-beat { - 0%, 90% { - -webkit-transform: scale(1); - transform: scale(1); - } - 45% { - -webkit-transform: scale(var(--fa-beat-scale, 1.25)); - transform: scale(var(--fa-beat-scale, 1.25)); - } -} -@-webkit-keyframes fa-bounce { - 0% { - -webkit-transform: scale(1, 1) translateY(0); - transform: scale(1, 1) translateY(0); - } - 10% { - -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); - transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); - } - 30% { - -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em)); - transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em)); - } - 50% { - -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); - transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); - } - 57% { - -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); - transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); - } - 64% { - -webkit-transform: scale(1, 1) translateY(0); - transform: scale(1, 1) translateY(0); - } - 100% { - -webkit-transform: scale(1, 1) translateY(0); - transform: scale(1, 1) translateY(0); - } -} -@keyframes fa-bounce { - 0% { - -webkit-transform: scale(1, 1) translateY(0); - transform: scale(1, 1) translateY(0); - } - 10% { - -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); - transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); - } - 30% { - -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em)); - transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em)); - } - 50% { - -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); - transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); - } - 57% { - -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); - transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); - } - 64% { - -webkit-transform: scale(1, 1) translateY(0); - transform: scale(1, 1) translateY(0); - } - 100% { - -webkit-transform: scale(1, 1) translateY(0); - transform: scale(1, 1) translateY(0); - } -} -@-webkit-keyframes fa-fade { - 50% { - opacity: var(--fa-fade-opacity, 0.4); - } -} -@keyframes fa-fade { - 50% { - opacity: var(--fa-fade-opacity, 0.4); - } -} -@-webkit-keyframes fa-beat-fade { - 0%, 100% { - opacity: var(--fa-beat-fade-opacity, 0.4); - -webkit-transform: scale(1); - transform: scale(1); - } - 50% { - opacity: 1; - -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125)); - transform: scale(var(--fa-beat-fade-scale, 1.125)); - } -} -@keyframes fa-beat-fade { - 0%, 100% { - opacity: var(--fa-beat-fade-opacity, 0.4); - -webkit-transform: scale(1); - transform: scale(1); - } - 50% { - opacity: 1; - -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125)); - transform: scale(var(--fa-beat-fade-scale, 1.125)); - } -} -@-webkit-keyframes fa-flip { - 50% { - -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); - transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); - } -} -@keyframes fa-flip { - 50% { - -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); - transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); - } -} -@-webkit-keyframes fa-shake { - 0% { - -webkit-transform: rotate(-15deg); - transform: rotate(-15deg); - } - 4% { - -webkit-transform: rotate(15deg); - transform: rotate(15deg); - } - 8%, 24% { - -webkit-transform: rotate(-18deg); - transform: rotate(-18deg); - } - 12%, 28% { - -webkit-transform: rotate(18deg); - transform: rotate(18deg); - } - 16% { - -webkit-transform: rotate(-22deg); - transform: rotate(-22deg); - } - 20% { - -webkit-transform: rotate(22deg); - transform: rotate(22deg); - } - 32% { - -webkit-transform: rotate(-12deg); - transform: rotate(-12deg); - } - 36% { - -webkit-transform: rotate(12deg); - transform: rotate(12deg); - } - 40%, 100% { - -webkit-transform: rotate(0deg); - transform: rotate(0deg); - } -} -@keyframes fa-shake { - 0% { - -webkit-transform: rotate(-15deg); - transform: rotate(-15deg); - } - 4% { - -webkit-transform: rotate(15deg); - transform: rotate(15deg); - } - 8%, 24% { - -webkit-transform: rotate(-18deg); - transform: rotate(-18deg); - } - 12%, 28% { - -webkit-transform: rotate(18deg); - transform: rotate(18deg); - } - 16% { - -webkit-transform: rotate(-22deg); - transform: rotate(-22deg); - } - 20% { - -webkit-transform: rotate(22deg); - transform: rotate(22deg); - } - 32% { - -webkit-transform: rotate(-12deg); - transform: rotate(-12deg); - } - 36% { - -webkit-transform: rotate(12deg); - transform: rotate(12deg); - } - 40%, 100% { - -webkit-transform: rotate(0deg); - transform: rotate(0deg); - } -} -@-webkit-keyframes fa-spin { - 0% { - -webkit-transform: rotate(0deg); - transform: rotate(0deg); - } - 100% { - -webkit-transform: rotate(360deg); - transform: rotate(360deg); - } -} -@keyframes fa-spin { - 0% { - -webkit-transform: rotate(0deg); - transform: rotate(0deg); - } - 100% { - -webkit-transform: rotate(360deg); - transform: rotate(360deg); - } -} -.fa-rotate-90 { - -webkit-transform: rotate(90deg); - transform: rotate(90deg); -} - -.fa-rotate-180 { - -webkit-transform: rotate(180deg); - transform: rotate(180deg); -} - -.fa-rotate-270 { - -webkit-transform: rotate(270deg); - transform: rotate(270deg); -} - -.fa-flip-horizontal { - -webkit-transform: scale(-1, 1); - transform: scale(-1, 1); -} - -.fa-flip-vertical { - -webkit-transform: scale(1, -1); - transform: scale(1, -1); -} - -.fa-flip-both, -.fa-flip-horizontal.fa-flip-vertical { - -webkit-transform: scale(-1, -1); - transform: scale(-1, -1); -} - -.fa-rotate-by { - -webkit-transform: rotate(var(--fa-rotate-angle, none)); - transform: rotate(var(--fa-rotate-angle, none)); -} - -.fa-stack { - display: inline-block; - vertical-align: middle; - height: 2em; - position: relative; - width: 2.5em; -} - -.fa-stack-1x, -.fa-stack-2x { - bottom: 0; - left: 0; - margin: auto; - position: absolute; - right: 0; - top: 0; - z-index: var(--fa-stack-z-index, auto); -} - -.svg-inline--fa.fa-stack-1x { - height: 1em; - width: 1.25em; -} -.svg-inline--fa.fa-stack-2x { - height: 2em; - width: 2.5em; -} - -.fa-inverse { - color: var(--fa-inverse, #fff); -} - -.sr-only, -.fa-sr-only { - position: absolute; - width: 1px; - height: 1px; - padding: 0; - margin: -1px; - overflow: hidden; - clip: rect(0, 0, 0, 0); - white-space: nowrap; - border-width: 0; -} - -.sr-only-focusable:not(:focus), -.fa-sr-only-focusable:not(:focus) { - position: absolute; - width: 1px; - height: 1px; - padding: 0; - margin: -1px; - overflow: hidden; - clip: rect(0, 0, 0, 0); - white-space: nowrap; - border-width: 0; -} - -.svg-inline--fa .fa-primary { - fill: var(--fa-primary-color, currentColor); - opacity: var(--fa-primary-opacity, 1); -} - -.svg-inline--fa .fa-secondary { - fill: var(--fa-secondary-color, currentColor); - opacity: var(--fa-secondary-opacity, 0.4); -} - -.svg-inline--fa.fa-swap-opacity .fa-primary { - opacity: var(--fa-secondary-opacity, 0.4); -} - -.svg-inline--fa.fa-swap-opacity .fa-secondary { - opacity: var(--fa-primary-opacity, 1); -} - -.svg-inline--fa mask .fa-primary, -.svg-inline--fa mask .fa-secondary { - fill: black; -} - -.fad.fa-inverse, -.fa-duotone.fa-inverse { - color: var(--fa-inverse, #fff); -}`;function mI(){var e=lI,t=cI,n=Ve.cssPrefix,r=Ve.replacementClass,i=gJ;if(n!==e||r!==t){var o=new RegExp("\\.".concat(e,"\\-"),"g"),s=new RegExp("\\--".concat(e,"\\-"),"g"),a=new RegExp("\\.".concat(t),"g");i=i.replace(o,".".concat(n,"-")).replace(s,"--".concat(n,"-")).replace(a,".".concat(r))}return i}var OM=!1;function s1(){Ve.autoAddCss&&!OM&&(fJ(mI()),OM=!0)}var vJ={mixout:function(){return{dom:{css:mI,insertCss:s1}}},hooks:function(){return{beforeDOMElementCreation:function(){s1()},beforeI2svg:function(){s1()}}}},Mo=$s||{};Mo[ko]||(Mo[ko]={});Mo[ko].styles||(Mo[ko].styles={});Mo[ko].hooks||(Mo[ko].hooks={});Mo[ko].shims||(Mo[ko].shims=[]);var _i=Mo[ko],gI=[],yJ=function e(){Nt.removeEventListener("DOMContentLoaded",e),Jg=1,gI.map(function(t){return t()})},Jg=!1;Bo&&(Jg=(Nt.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Nt.readyState),Jg||Nt.addEventListener("DOMContentLoaded",yJ));function _J(e){Bo&&(Jg?setTimeout(e,0):gI.push(e))}function Yd(e){var t=e.tag,n=e.attributes,r=n===void 0?{}:n,i=e.children,o=i===void 0?[]:i;return typeof e=="string"?pI(e):"<".concat(t," ").concat(hJ(r),">").concat(o.map(Yd).join(""),"")}function PM(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var bJ=function(t,n){return function(r,i,o,s){return t.call(n,r,i,o,s)}},a1=function(t,n,r,i){var o=Object.keys(t),s=o.length,a=i!==void 0?bJ(n,i):n,l,c,f;for(r===void 0?(l=1,f=t[o[0]]):(l=0,f=r);l=55296&&i<=56319&&n=55296&&r<=56319&&n>t+1&&(i=e.charCodeAt(t+1),i>=56320&&i<=57343)?(r-55296)*1024+i-56320+65536:r}function kM(e){return Object.keys(e).reduce(function(t,n){var r=e[n],i=!!r.icon;return i?t[r.iconName]=r.icon:t[n]=r,t},{})}function mw(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.skipHooks,i=r===void 0?!1:r,o=kM(t);typeof _i.hooks.addPack=="function"&&!i?_i.hooks.addPack(e,kM(t)):_i.styles[e]=Be(Be({},_i.styles[e]||{}),o),e==="fas"&&mw("fa",t)}var Sp,Cp,Ep,Ql=_i.styles,SJ=_i.shims,CJ=(Sp={},bn(Sp,Pt,Object.values(dd[Pt])),bn(Sp,Yt,Object.values(dd[Yt])),Sp),bC=null,vI={},yI={},_I={},bI={},wI={},EJ=(Cp={},bn(Cp,Pt,Object.keys(ud[Pt])),bn(Cp,Yt,Object.keys(ud[Yt])),Cp);function TJ(e){return~sJ.indexOf(e)}function OJ(e,t){var n=t.split("-"),r=n[0],i=n.slice(1).join("-");return r===e&&i!==""&&!TJ(i)?i:null}var xI=function(){var t=function(o){return a1(Ql,function(s,a,l){return s[l]=a1(a,o,{}),s},{})};vI=t(function(i,o,s){if(o[3]&&(i[o[3]]=s),o[2]){var a=o[2].filter(function(l){return typeof l=="number"});a.forEach(function(l){i[l.toString(16)]=s})}return i}),yI=t(function(i,o,s){if(i[s]=s,o[2]){var a=o[2].filter(function(l){return typeof l=="string"});a.forEach(function(l){i[l]=s})}return i}),wI=t(function(i,o,s){var a=o[2];return i[s]=s,a.forEach(function(l){i[l]=s}),i});var n="far"in Ql||Ve.autoFetchSvg,r=a1(SJ,function(i,o){var s=o[0],a=o[1],l=o[2];return a==="far"&&!n&&(a="fas"),typeof s=="string"&&(i.names[s]={prefix:a,iconName:l}),typeof s=="number"&&(i.unicodes[s.toString(16)]={prefix:a,iconName:l}),i},{names:{},unicodes:{}});_I=r.names,bI=r.unicodes,bC=o_(Ve.styleDefault,{family:Ve.familyDefault})};uJ(function(e){bC=o_(e.styleDefault,{family:Ve.familyDefault})});xI();function wC(e,t){return(vI[e]||{})[t]}function PJ(e,t){return(yI[e]||{})[t]}function Da(e,t){return(wI[e]||{})[t]}function SI(e){return _I[e]||{prefix:null,iconName:null}}function kJ(e){var t=bI[e],n=wC("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function Bs(){return bC}var xC=function(){return{prefix:null,iconName:null,rest:[]}};function o_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.family,r=n===void 0?Pt:n,i=ud[r][e],o=fd[r][e]||fd[r][i],s=e in _i.styles?e:null;return o||s||null}var MM=(Ep={},bn(Ep,Pt,Object.keys(dd[Pt])),bn(Ep,Yt,Object.keys(dd[Yt])),Ep);function s_(e){var t,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.skipLookups,i=r===void 0?!1:r,o=(t={},bn(t,Pt,"".concat(Ve.cssPrefix,"-").concat(Pt)),bn(t,Yt,"".concat(Ve.cssPrefix,"-").concat(Yt)),t),s=null,a=Pt;(e.includes(o[Pt])||e.some(function(c){return MM[Pt].includes(c)}))&&(a=Pt),(e.includes(o[Yt])||e.some(function(c){return MM[Yt].includes(c)}))&&(a=Yt);var l=e.reduce(function(c,f){var h=OJ(Ve.cssPrefix,f);if(Ql[f]?(f=CJ[a].includes(f)?eJ[a][f]:f,s=f,c.prefix=f):EJ[a].indexOf(f)>-1?(s=f,c.prefix=o_(f,{family:a})):h?c.iconName=h:f!==Ve.replacementClass&&f!==o[Pt]&&f!==o[Yt]&&c.rest.push(f),!i&&c.prefix&&c.iconName){var p=s==="fa"?SI(c.iconName):{},m=Da(c.prefix,c.iconName);p.prefix&&(s=null),c.iconName=p.iconName||m||c.iconName,c.prefix=p.prefix||c.prefix,c.prefix==="far"&&!Ql.far&&Ql.fas&&!Ve.autoFetchSvg&&(c.prefix="fas")}return c},xC());return(e.includes("fa-brands")||e.includes("fab"))&&(l.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(l.prefix="fad"),!l.prefix&&a===Yt&&(Ql.fass||Ve.autoFetchSvg)&&(l.prefix="fass",l.iconName=Da(l.prefix,l.iconName)||l.iconName),(l.prefix==="fa"||s==="fa")&&(l.prefix=Bs()||"fas"),l}var MJ=function(){function e(){UQ(this,e),this.definitions={}}return VQ(e,[{key:"add",value:function(){for(var n=this,r=arguments.length,i=new Array(r),o=0;o0&&f.forEach(function(h){typeof h=="string"&&(n[a][h]=c)}),n[a][l]=c}),n}}]),e}(),RM=[],Jl={},dc={},RJ=Object.keys(dc);function NJ(e,t){var n=t.mixoutsTo;return RM=e,Jl={},Object.keys(dc).forEach(function(r){RJ.indexOf(r)===-1&&delete dc[r]}),RM.forEach(function(r){var i=r.mixout?r.mixout():{};if(Object.keys(i).forEach(function(s){typeof i[s]=="function"&&(n[s]=i[s]),Qg(i[s])==="object"&&Object.keys(i[s]).forEach(function(a){n[s]||(n[s]={}),n[s][a]=i[s][a]})}),r.hooks){var o=r.hooks();Object.keys(o).forEach(function(s){Jl[s]||(Jl[s]=[]),Jl[s].push(o[s])})}r.provides&&r.provides(dc)}),n}function gw(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i1?t-1:0),r=1;r0&&arguments[0]!==void 0?arguments[0]:{};return Bo?(Qa("beforeI2svg",t),Ro("pseudoElements2svg",t),Ro("i2svg",t)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot;Ve.autoReplaceSvg===!1&&(Ve.autoReplaceSvg=!0),Ve.observeMutations=!0,_J(function(){jJ({autoReplaceSvgRoot:n}),Qa("watch",t)})}},AJ={icon:function(t){if(t===null)return null;if(Qg(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:Da(t.prefix,t.iconName)||t.iconName};if(Array.isArray(t)&&t.length===2){var n=t[1].indexOf("fa-")===0?t[1].slice(3):t[1],r=o_(t[0]);return{prefix:r,iconName:Da(r,n)||n}}if(typeof t=="string"&&(t.indexOf("".concat(Ve.cssPrefix,"-"))>-1||t.match(tJ))){var i=s_(t.split(" "),{skipLookups:!0});return{prefix:i.prefix||Bs(),iconName:Da(i.prefix,i.iconName)||i.iconName}}if(typeof t=="string"){var o=Bs();return{prefix:o,iconName:Da(o,t)||t}}}},$r={noAuto:LJ,config:Ve,dom:DJ,parse:AJ,library:CI,findIconDefinition:vw,toHtml:Yd},jJ=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot,r=n===void 0?Nt:n;(Object.keys(_i.styles).length>0||Ve.autoFetchSvg)&&Bo&&Ve.autoReplaceSvg&&$r.dom.i2svg({node:r})};function a_(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(r){return Yd(r)})}}),Object.defineProperty(e,"node",{get:function(){if(Bo){var r=Nt.createElement("div");return r.innerHTML=e.html,r.children}}}),e}function IJ(e){var t=e.children,n=e.main,r=e.mask,i=e.attributes,o=e.styles,s=e.transform;if(_C(s)&&n.found&&!r.found){var a=n.width,l=n.height,c={x:a/l/2,y:.5};i.style=i_(Be(Be({},o),{},{"transform-origin":"".concat(c.x+s.x/16,"em ").concat(c.y+s.y/16,"em")}))}return[{tag:"svg",attributes:i,children:t}]}function FJ(e){var t=e.prefix,n=e.iconName,r=e.children,i=e.attributes,o=e.symbol,s=o===!0?"".concat(t,"-").concat(Ve.cssPrefix,"-").concat(n):o;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:Be(Be({},i),{},{id:s}),children:r}]}]}function SC(e){var t=e.icons,n=t.main,r=t.mask,i=e.prefix,o=e.iconName,s=e.transform,a=e.symbol,l=e.title,c=e.maskId,f=e.titleId,h=e.extra,p=e.watchable,m=p===void 0?!1:p,v=r.found?r:n,y=v.width,x=v.height,_=i==="fak",w=[Ve.replacementClass,o?"".concat(Ve.cssPrefix,"-").concat(o):""].filter(function(z){return h.classes.indexOf(z)===-1}).filter(function(z){return z!==""||!!z}).concat(h.classes).join(" "),S={children:[],attributes:Be(Be({},h.attributes),{},{"data-prefix":i,"data-icon":o,class:w,role:h.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(y," ").concat(x)})},T=_&&!~h.classes.indexOf("fa-fw")?{width:"".concat(y/x*16*.0625,"em")}:{};m&&(S.attributes[Xa]=""),l&&(S.children.push({tag:"title",attributes:{id:S.attributes["aria-labelledby"]||"title-".concat(f||pd())},children:[l]}),delete S.attributes.title);var P=Be(Be({},S),{},{prefix:i,iconName:o,main:n,mask:r,maskId:c,transform:s,symbol:a,styles:Be(Be({},T),h.styles)}),k=r.found&&n.found?Ro("generateAbstractMask",P)||{children:[],attributes:{}}:Ro("generateAbstractIcon",P)||{children:[],attributes:{}},N=k.children,D=k.attributes;return P.children=N,P.attributes=D,a?FJ(P):IJ(P)}function NM(e){var t=e.content,n=e.width,r=e.height,i=e.transform,o=e.title,s=e.extra,a=e.watchable,l=a===void 0?!1:a,c=Be(Be(Be({},s.attributes),o?{title:o}:{}),{},{class:s.classes.join(" ")});l&&(c[Xa]="");var f=Be({},s.styles);_C(i)&&(f.transform=mJ({transform:i,startCentered:!0,width:n,height:r}),f["-webkit-transform"]=f.transform);var h=i_(f);h.length>0&&(c.style=h);var p=[];return p.push({tag:"span",attributes:c,children:[t]}),o&&p.push({tag:"span",attributes:{class:"sr-only"},children:[o]}),p}function $J(e){var t=e.content,n=e.title,r=e.extra,i=Be(Be(Be({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),o=i_(r.styles);o.length>0&&(i.style=o);var s=[];return s.push({tag:"span",attributes:i,children:[t]}),n&&s.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),s}var l1=_i.styles;function yw(e){var t=e[0],n=e[1],r=e.slice(4),i=hC(r,1),o=i[0],s=null;return Array.isArray(o)?s={tag:"g",attributes:{class:"".concat(Ve.cssPrefix,"-").concat(La.GROUP)},children:[{tag:"path",attributes:{class:"".concat(Ve.cssPrefix,"-").concat(La.SECONDARY),fill:"currentColor",d:o[0]}},{tag:"path",attributes:{class:"".concat(Ve.cssPrefix,"-").concat(La.PRIMARY),fill:"currentColor",d:o[1]}}]}:s={tag:"path",attributes:{fill:"currentColor",d:o}},{found:!0,width:t,height:n,icon:s}}var BJ={found:!1,width:512,height:512};function zJ(e,t){!uI&&!Ve.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function _w(e,t){var n=t;return t==="fa"&&Ve.styleDefault!==null&&(t=Bs()),new Promise(function(r,i){if(Ro("missingIconAbstract"),n==="fa"){var o=SI(e)||{};e=o.iconName||e,t=o.prefix||t}if(e&&t&&l1[t]&&l1[t][e]){var s=l1[t][e];return r(yw(s))}zJ(e,t),r(Be(Be({},BJ),{},{icon:Ve.showMissingIcons&&e?Ro("missingIconAbstract")||{}:{}}))})}var LM=function(){},bw=Ve.measurePerformance&&vp&&vp.mark&&vp.measure?vp:{mark:LM,measure:LM},Zu='FA "6.3.0"',UJ=function(t){return bw.mark("".concat(Zu," ").concat(t," begins")),function(){return EI(t)}},EI=function(t){bw.mark("".concat(Zu," ").concat(t," ends")),bw.measure("".concat(Zu," ").concat(t),"".concat(Zu," ").concat(t," begins"),"".concat(Zu," ").concat(t," ends"))},CC={begin:UJ,end:EI},cm=function(){};function DM(e){var t=e.getAttribute?e.getAttribute(Xa):null;return typeof t=="string"}function VJ(e){var t=e.getAttribute?e.getAttribute(mC):null,n=e.getAttribute?e.getAttribute(gC):null;return t&&n}function HJ(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(Ve.replacementClass)}function WJ(){if(Ve.autoReplaceSvg===!0)return um.replace;var e=um[Ve.autoReplaceSvg];return e||um.replace}function YJ(e){return Nt.createElementNS("http://www.w3.org/2000/svg",e)}function qJ(e){return Nt.createElement(e)}function TI(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.ceFn,r=n===void 0?e.tag==="svg"?YJ:qJ:n;if(typeof e=="string")return Nt.createTextNode(e);var i=r(e.tag);Object.keys(e.attributes||[]).forEach(function(s){i.setAttribute(s,e.attributes[s])});var o=e.children||[];return o.forEach(function(s){i.appendChild(TI(s,{ceFn:r}))}),i}function GJ(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var um={replace:function(t){var n=t[0];if(n.parentNode)if(t[1].forEach(function(i){n.parentNode.insertBefore(TI(i),n)}),n.getAttribute(Xa)===null&&Ve.keepOriginalSource){var r=Nt.createComment(GJ(n));n.parentNode.replaceChild(r,n)}else n.remove()},nest:function(t){var n=t[0],r=t[1];if(~yC(n).indexOf(Ve.replacementClass))return um.replace(t);var i=new RegExp("".concat(Ve.cssPrefix,"-.*"));if(delete r[0].attributes.id,r[0].attributes.class){var o=r[0].attributes.class.split(" ").reduce(function(a,l){return l===Ve.replacementClass||l.match(i)?a.toSvg.push(l):a.toNode.push(l),a},{toNode:[],toSvg:[]});r[0].attributes.class=o.toSvg.join(" "),o.toNode.length===0?n.removeAttribute("class"):n.setAttribute("class",o.toNode.join(" "))}var s=r.map(function(a){return Yd(a)}).join(` -`);n.setAttribute(Xa,""),n.innerHTML=s}};function AM(e){e()}function OI(e,t){var n=typeof t=="function"?t:cm;if(e.length===0)n();else{var r=AM;Ve.mutateApproach===QQ&&(r=$s.requestAnimationFrame||AM),r(function(){var i=WJ(),o=CC.begin("mutate");e.map(i),o(),n()})}}var EC=!1;function PI(){EC=!0}function ww(){EC=!1}var ev=null;function jM(e){if(EM&&Ve.observeMutations){var t=e.treeCallback,n=t===void 0?cm:t,r=e.nodeCallback,i=r===void 0?cm:r,o=e.pseudoElementsCallback,s=o===void 0?cm:o,a=e.observeMutationsRoot,l=a===void 0?Nt:a;ev=new EM(function(c){if(!EC){var f=Bs();Qc(c).forEach(function(h){if(h.type==="childList"&&h.addedNodes.length>0&&!DM(h.addedNodes[0])&&(Ve.searchPseudoElements&&s(h.target),n(h.target)),h.type==="attributes"&&h.target.parentNode&&Ve.searchPseudoElements&&s(h.target.parentNode),h.type==="attributes"&&DM(h.target)&&~oJ.indexOf(h.attributeName))if(h.attributeName==="class"&&VJ(h.target)){var p=s_(yC(h.target)),m=p.prefix,v=p.iconName;h.target.setAttribute(mC,m||f),v&&h.target.setAttribute(gC,v)}else HJ(h.target)&&i(h.target)})}}),Bo&&ev.observe(l,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function ZJ(){ev&&ev.disconnect()}function KJ(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce(function(r,i){var o=i.split(":"),s=o[0],a=o.slice(1);return s&&a.length>0&&(r[s]=a.join(":").trim()),r},{})),n}function XJ(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"",i=s_(yC(e));return i.prefix||(i.prefix=Bs()),t&&n&&(i.prefix=t,i.iconName=n),i.iconName&&i.prefix||(i.prefix&&r.length>0&&(i.iconName=PJ(i.prefix,e.innerText)||wC(i.prefix,pw(e.innerText))),!i.iconName&&Ve.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i}function QJ(e){var t=Qc(e.attributes).reduce(function(i,o){return i.name!=="class"&&i.name!=="style"&&(i[o.name]=o.value),i},{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return Ve.autoA11y&&(n?t["aria-labelledby"]="".concat(Ve.replacementClass,"-title-").concat(r||pd()):(t["aria-hidden"]="true",t.focusable="false")),t}function JJ(){return{iconName:null,title:null,titleId:null,prefix:null,transform:qi,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function IM(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=XJ(e),r=n.iconName,i=n.prefix,o=n.rest,s=QJ(e),a=gw("parseNodeAttributes",{},e),l=t.styleParser?KJ(e):[];return Be({iconName:r,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:i,transform:qi,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:o,styles:l,attributes:s}},a)}var eee=_i.styles;function kI(e){var t=Ve.autoReplaceSvg==="nest"?IM(e,{styleParser:!1}):IM(e);return~t.extra.classes.indexOf(fI)?Ro("generateLayersText",e,t):Ro("generateSvgReplacementMutation",e,t)}var zs=new Set;vC.map(function(e){zs.add("fa-".concat(e))});Object.keys(ud[Pt]).map(zs.add.bind(zs));Object.keys(ud[Yt]).map(zs.add.bind(zs));zs=Hd(zs);function FM(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!Bo)return Promise.resolve();var n=Nt.documentElement.classList,r=function(h){return n.add("".concat(TM,"-").concat(h))},i=function(h){return n.remove("".concat(TM,"-").concat(h))},o=Ve.autoFetchSvg?zs:vC.map(function(f){return"fa-".concat(f)}).concat(Object.keys(eee));o.includes("fa")||o.push("fa");var s=[".".concat(fI,":not([").concat(Xa,"])")].concat(o.map(function(f){return".".concat(f,":not([").concat(Xa,"])")})).join(", ");if(s.length===0)return Promise.resolve();var a=[];try{a=Qc(e.querySelectorAll(s))}catch{}if(a.length>0)r("pending"),i("complete");else return Promise.resolve();var l=CC.begin("onTree"),c=a.reduce(function(f,h){try{var p=kI(h);p&&f.push(p)}catch(m){uI||m.name==="MissingIcon"&&console.error(m)}return f},[]);return new Promise(function(f,h){Promise.all(c).then(function(p){OI(p,function(){r("active"),r("complete"),i("pending"),typeof t=="function"&&t(),l(),f()})}).catch(function(p){l(),h(p)})})}function tee(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;kI(e).then(function(n){n&&OI([n],t)})}function nee(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=(t||{}).icon?t:vw(t||{}),i=n.mask;return i&&(i=(i||{}).icon?i:vw(i||{})),e(r,Be(Be({},n),{},{mask:i}))}}var ree=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.transform,i=r===void 0?qi:r,o=n.symbol,s=o===void 0?!1:o,a=n.mask,l=a===void 0?null:a,c=n.maskId,f=c===void 0?null:c,h=n.title,p=h===void 0?null:h,m=n.titleId,v=m===void 0?null:m,y=n.classes,x=y===void 0?[]:y,_=n.attributes,w=_===void 0?{}:_,S=n.styles,T=S===void 0?{}:S;if(t){var P=t.prefix,k=t.iconName,N=t.icon;return a_(Be({type:"icon"},t),function(){return Qa("beforeDOMElementCreation",{iconDefinition:t,params:n}),Ve.autoA11y&&(p?w["aria-labelledby"]="".concat(Ve.replacementClass,"-title-").concat(v||pd()):(w["aria-hidden"]="true",w.focusable="false")),SC({icons:{main:yw(N),mask:l?yw(l.icon):{found:!1,width:null,height:null,icon:{}}},prefix:P,iconName:k,transform:Be(Be({},qi),i),symbol:s,title:p,maskId:f,titleId:v,extra:{attributes:w,styles:T,classes:x}})})}},iee={mixout:function(){return{icon:nee(ree)}},hooks:function(){return{mutationObserverCallbacks:function(n){return n.treeCallback=FM,n.nodeCallback=tee,n}}},provides:function(t){t.i2svg=function(n){var r=n.node,i=r===void 0?Nt:r,o=n.callback,s=o===void 0?function(){}:o;return FM(i,s)},t.generateSvgReplacementMutation=function(n,r){var i=r.iconName,o=r.title,s=r.titleId,a=r.prefix,l=r.transform,c=r.symbol,f=r.mask,h=r.maskId,p=r.extra;return new Promise(function(m,v){Promise.all([_w(i,a),f.iconName?_w(f.iconName,f.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(y){var x=hC(y,2),_=x[0],w=x[1];m([n,SC({icons:{main:_,mask:w},prefix:a,iconName:i,transform:l,symbol:c,maskId:h,title:o,titleId:s,extra:p,watchable:!0})])}).catch(v)})},t.generateAbstractIcon=function(n){var r=n.children,i=n.attributes,o=n.main,s=n.transform,a=n.styles,l=i_(a);l.length>0&&(i.style=l);var c;return _C(s)&&(c=Ro("generateAbstractTransformGrouping",{main:o,transform:s,containerWidth:o.width,iconWidth:o.width})),r.push(c||o.icon),{children:r,attributes:i}}}},oee={mixout:function(){return{layer:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.classes,o=i===void 0?[]:i;return a_({type:"layer"},function(){Qa("beforeDOMElementCreation",{assembler:n,params:r});var s=[];return n(function(a){Array.isArray(a)?a.map(function(l){s=s.concat(l.abstract)}):s=s.concat(a.abstract)}),[{tag:"span",attributes:{class:["".concat(Ve.cssPrefix,"-layers")].concat(Hd(o)).join(" ")},children:s}]})}}}},see={mixout:function(){return{counter:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.title,o=i===void 0?null:i,s=r.classes,a=s===void 0?[]:s,l=r.attributes,c=l===void 0?{}:l,f=r.styles,h=f===void 0?{}:f;return a_({type:"counter",content:n},function(){return Qa("beforeDOMElementCreation",{content:n,params:r}),$J({content:n.toString(),title:o,extra:{attributes:c,styles:h,classes:["".concat(Ve.cssPrefix,"-layers-counter")].concat(Hd(a))}})})}}}},aee={mixout:function(){return{text:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.transform,o=i===void 0?qi:i,s=r.title,a=s===void 0?null:s,l=r.classes,c=l===void 0?[]:l,f=r.attributes,h=f===void 0?{}:f,p=r.styles,m=p===void 0?{}:p;return a_({type:"text",content:n},function(){return Qa("beforeDOMElementCreation",{content:n,params:r}),NM({content:n,transform:Be(Be({},qi),o),title:a,extra:{attributes:h,styles:m,classes:["".concat(Ve.cssPrefix,"-layers-text")].concat(Hd(c))}})})}}},provides:function(t){t.generateLayersText=function(n,r){var i=r.title,o=r.transform,s=r.extra,a=null,l=null;if(aI){var c=parseInt(getComputedStyle(n).fontSize,10),f=n.getBoundingClientRect();a=f.width/c,l=f.height/c}return Ve.autoA11y&&!i&&(s.attributes["aria-hidden"]="true"),Promise.resolve([n,NM({content:n.innerHTML,width:a,height:l,transform:o,title:i,extra:s,watchable:!0})])}}},lee=new RegExp('"',"ug"),$M=[1105920,1112319];function cee(e){var t=e.replace(lee,""),n=xJ(t,0),r=n>=$M[0]&&n<=$M[1],i=t.length===2?t[0]===t[1]:!1;return{value:pw(i?t[0]:t),isSecondary:r||i}}function BM(e,t){var n="".concat(XQ).concat(t.replace(":","-"));return new Promise(function(r,i){if(e.getAttribute(n)!==null)return r();var o=Qc(e.children),s=o.filter(function(N){return N.getAttribute(hw)===t})[0],a=$s.getComputedStyle(e,t),l=a.getPropertyValue("font-family").match(nJ),c=a.getPropertyValue("font-weight"),f=a.getPropertyValue("content");if(s&&!l)return e.removeChild(s),r();if(l&&f!=="none"&&f!==""){var h=a.getPropertyValue("content"),p=~["Sharp"].indexOf(l[2])?Yt:Pt,m=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(l[2])?fd[p][l[2].toLowerCase()]:rJ[p][c],v=cee(h),y=v.value,x=v.isSecondary,_=l[0].startsWith("FontAwesome"),w=wC(m,y),S=w;if(_){var T=kJ(y);T.iconName&&T.prefix&&(w=T.iconName,m=T.prefix)}if(w&&!x&&(!s||s.getAttribute(mC)!==m||s.getAttribute(gC)!==S)){e.setAttribute(n,S),s&&e.removeChild(s);var P=JJ(),k=P.extra;k.attributes[hw]=t,_w(w,m).then(function(N){var D=SC(Be(Be({},P),{},{icons:{main:N,mask:xC()},prefix:m,iconName:S,extra:k,watchable:!0})),z=Nt.createElement("svg");t==="::before"?e.insertBefore(z,e.firstChild):e.appendChild(z),z.outerHTML=D.map(function(A){return Yd(A)}).join(` -`),e.removeAttribute(n),r()}).catch(i)}else r()}else r()})}function uee(e){return Promise.all([BM(e,"::before"),BM(e,"::after")])}function fee(e){return e.parentNode!==document.head&&!~JQ.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(hw)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function zM(e){if(Bo)return new Promise(function(t,n){var r=Qc(e.querySelectorAll("*")).filter(fee).map(uee),i=CC.begin("searchPseudoElements");PI(),Promise.all(r).then(function(){i(),ww(),t()}).catch(function(){i(),ww(),n()})})}var dee={hooks:function(){return{mutationObserverCallbacks:function(n){return n.pseudoElementsCallback=zM,n}}},provides:function(t){t.pseudoElements2svg=function(n){var r=n.node,i=r===void 0?Nt:r;Ve.searchPseudoElements&&zM(i)}}},UM=!1,hee={mixout:function(){return{dom:{unwatch:function(){PI(),UM=!0}}}},hooks:function(){return{bootstrap:function(){jM(gw("mutationObserverCallbacks",{}))},noAuto:function(){ZJ()},watch:function(n){var r=n.observeMutationsRoot;UM?ww():jM(gw("mutationObserverCallbacks",{observeMutationsRoot:r}))}}}},VM=function(t){var n={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t.toLowerCase().split(" ").reduce(function(r,i){var o=i.toLowerCase().split("-"),s=o[0],a=o.slice(1).join("-");if(s&&a==="h")return r.flipX=!0,r;if(s&&a==="v")return r.flipY=!0,r;if(a=parseFloat(a),isNaN(a))return r;switch(s){case"grow":r.size=r.size+a;break;case"shrink":r.size=r.size-a;break;case"left":r.x=r.x-a;break;case"right":r.x=r.x+a;break;case"up":r.y=r.y-a;break;case"down":r.y=r.y+a;break;case"rotate":r.rotate=r.rotate+a;break}return r},n)},pee={mixout:function(){return{parse:{transform:function(n){return VM(n)}}}},hooks:function(){return{parseNodeAttributes:function(n,r){var i=r.getAttribute("data-fa-transform");return i&&(n.transform=VM(i)),n}}},provides:function(t){t.generateAbstractTransformGrouping=function(n){var r=n.main,i=n.transform,o=n.containerWidth,s=n.iconWidth,a={transform:"translate(".concat(o/2," 256)")},l="translate(".concat(i.x*32,", ").concat(i.y*32,") "),c="scale(".concat(i.size/16*(i.flipX?-1:1),", ").concat(i.size/16*(i.flipY?-1:1),") "),f="rotate(".concat(i.rotate," 0 0)"),h={transform:"".concat(l," ").concat(c," ").concat(f)},p={transform:"translate(".concat(s/2*-1," -256)")},m={outer:a,inner:h,path:p};return{tag:"g",attributes:Be({},m.outer),children:[{tag:"g",attributes:Be({},m.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:Be(Be({},r.icon.attributes),m.path)}]}]}}}},c1={x:0,y:0,width:"100%",height:"100%"};function HM(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function mee(e){return e.tag==="g"?e.children:[e]}var gee={hooks:function(){return{parseNodeAttributes:function(n,r){var i=r.getAttribute("data-fa-mask"),o=i?s_(i.split(" ").map(function(s){return s.trim()})):xC();return o.prefix||(o.prefix=Bs()),n.mask=o,n.maskId=r.getAttribute("data-fa-mask-id"),n}}},provides:function(t){t.generateAbstractMask=function(n){var r=n.children,i=n.attributes,o=n.main,s=n.mask,a=n.maskId,l=n.transform,c=o.width,f=o.icon,h=s.width,p=s.icon,m=pJ({transform:l,containerWidth:h,iconWidth:c}),v={tag:"rect",attributes:Be(Be({},c1),{},{fill:"white"})},y=f.children?{children:f.children.map(HM)}:{},x={tag:"g",attributes:Be({},m.inner),children:[HM(Be({tag:f.tag,attributes:Be(Be({},f.attributes),m.path)},y))]},_={tag:"g",attributes:Be({},m.outer),children:[x]},w="mask-".concat(a||pd()),S="clip-".concat(a||pd()),T={tag:"mask",attributes:Be(Be({},c1),{},{id:w,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[v,_]},P={tag:"defs",children:[{tag:"clipPath",attributes:{id:S},children:mee(p)},T]};return r.push(P,{tag:"rect",attributes:Be({fill:"currentColor","clip-path":"url(#".concat(S,")"),mask:"url(#".concat(w,")")},c1)}),{children:r,attributes:i}}}},vee={provides:function(t){var n=!1;$s.matchMedia&&(n=$s.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){var r=[],i={fill:"currentColor"},o={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};r.push({tag:"path",attributes:Be(Be({},i),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var s=Be(Be({},o),{},{attributeName:"opacity"}),a={tag:"circle",attributes:Be(Be({},i),{},{cx:"256",cy:"364",r:"28"}),children:[]};return n||a.children.push({tag:"animate",attributes:Be(Be({},o),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:Be(Be({},s),{},{values:"1;0;1;1;0;1;"})}),r.push(a),r.push({tag:"path",attributes:Be(Be({},i),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:n?[]:[{tag:"animate",attributes:Be(Be({},s),{},{values:"1;0;0;0;0;1;"})}]}),n||r.push({tag:"path",attributes:Be(Be({},i),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:Be(Be({},s),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:r}}}},yee={hooks:function(){return{parseNodeAttributes:function(n,r){var i=r.getAttribute("data-fa-symbol"),o=i===null?!1:i===""?!0:i;return n.symbol=o,n}}}},_ee=[vJ,iee,oee,see,aee,dee,hee,pee,gee,vee,yee];NJ(_ee,{mixoutsTo:$r});$r.noAuto;$r.config;$r.library;$r.dom;var xw=$r.parse;$r.findIconDefinition;$r.toHtml;var bee=$r.icon;$r.layer;$r.text;$r.counter;var MI={exports:{}},wee="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",xee=wee,See=xee;function RI(){}function NI(){}NI.resetWarningCache=RI;var Cee=function(){function e(r,i,o,s,a,l){if(l!==See){var c=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 c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:NI,resetWarningCache:RI};return n.PropTypes=n,n};MI.exports=Cee();var Eee=MI.exports;const C=ri(Eee);function WM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function vs(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function Oee(e,t){if(e==null)return{};var n=Tee(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Sw(e){return Pee(e)||kee(e)||Mee(e)||Ree()}function Pee(e){if(Array.isArray(e))return Cw(e)}function kee(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Mee(e,t){if(e){if(typeof e=="string")return Cw(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Cw(e,t)}}function Cw(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&arguments[2]!==void 0?arguments[2]:{};if(typeof t=="string")return t;var r=(t.children||[]).map(function(l){return DI(e,l)}),i=Object.keys(t.attributes||{}).reduce(function(l,c){var f=t.attributes[c];switch(c){case"class":l.attrs.className=f,delete t.attributes.class;break;case"style":l.attrs.style=jee(f);break;default:c.indexOf("aria-")===0||c.indexOf("data-")===0?l.attrs[c.toLowerCase()]=f:l.attrs[LI(c)]=f}return l},{attrs:{}}),o=n.style,s=o===void 0?{}:o,a=Oee(n,Dee);return i.attrs.style=vs(vs({},i.attrs.style),s),e.apply(void 0,[t.tag,vs(vs({},i.attrs),a)].concat(Sw(r)))}var AI=!1;try{AI=!0}catch{}function Iee(){if(!AI&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function YM(e){if(e&&tv(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(xw.icon)return xw.icon(e);if(e===null)return null;if(e&&tv(e)==="object"&&e.prefix&&e.iconName)return e;if(Array.isArray(e)&&e.length===2)return{prefix:e[0],iconName:e[1]};if(typeof e=="string")return{prefix:"fas",iconName:e}}function u1(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?ec({},e,t):{}}var je=U.forwardRef(function(e,t){var n=e.icon,r=e.mask,i=e.symbol,o=e.className,s=e.title,a=e.titleId,l=e.maskId,c=YM(n),f=u1("classes",[].concat(Sw(Nee(e)),Sw(o.split(" ")))),h=u1("transform",typeof e.transform=="string"?xw.transform(e.transform):e.transform),p=u1("mask",YM(r)),m=bee(c,vs(vs(vs(vs({},f),h),p),{},{symbol:i,title:s,titleId:a,maskId:l}));if(!m)return Iee("Could not find icon",c),null;var v=m.abstract,y={ref:t};return Object.keys(e).forEach(function(x){je.defaultProps.hasOwnProperty(x)||(y[x]=e[x])}),Fee(v[0],y)});je.displayName="FontAwesomeIcon";je.propTypes={beat:C.bool,border:C.bool,beatFade:C.bool,bounce:C.bool,className:C.string,fade:C.bool,flash:C.bool,mask:C.oneOfType([C.object,C.array,C.string]),maskId:C.string,fixedWidth:C.bool,inverse:C.bool,flip:C.oneOf([!0,!1,"horizontal","vertical","both"]),icon:C.oneOfType([C.object,C.array,C.string]),listItem:C.bool,pull:C.oneOf(["right","left"]),pulse:C.bool,rotation:C.oneOf([0,90,180,270]),shake:C.bool,size:C.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:C.bool,spinPulse:C.bool,spinReverse:C.bool,symbol:C.oneOfType([C.bool,C.string]),title:C.string,titleId:C.string,transform:C.oneOfType([C.string,C.object]),swapOpacity:C.bool};je.defaultProps={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1};var Fee=DI.bind(null,U.createElement),jI=V.createContext(),II=V.createContext();function qM(e){var t=e.children,n=V.useState(null),r=n[0],i=n[1],o=V.useRef(!1);V.useEffect(function(){return function(){o.current=!0}},[]);var s=V.useCallback(function(a){o.current||i(a)},[]);return V.createElement(jI.Provider,{value:r},V.createElement(II.Provider,{value:s},t))}var FI=function(t){return Array.isArray(t)?t[0]:t},$I=function(t){if(typeof t=="function"){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i"u")return!1;var t=oi(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Xee(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},o=t.elements[n];!Kr(o)||!to(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(s){var a=i[s];a===!1?o.removeAttribute(s):o.setAttribute(s,a===!0?"":a)}))})}function Qee(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],o=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=s.reduce(function(l,c){return l[c]="",l},{});!Kr(i)||!to(i)||(Object.assign(i.style,a),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}const Jee={name:"applyStyles",enabled:!0,phase:"write",fn:Xee,effect:Qee,requires:["computeStyles"]};function Xi(e){return e.split("-")[0]}var za=Math.max,nv=Math.min,Lc=Math.round;function Tw(){var e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function UI(){return!/^((?!chrome|android).)*safari/i.test(Tw())}function Dc(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&Kr(e)&&(i=e.offsetWidth>0&&Lc(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Lc(r.height)/e.offsetHeight||1);var s=Ja(e)?oi(e):window,a=s.visualViewport,l=!UI()&&n,c=(r.left+(l&&a?a.offsetLeft:0))/i,f=(r.top+(l&&a?a.offsetTop:0))/o,h=r.width/i,p=r.height/o;return{width:h,height:p,top:f,right:c+h,bottom:f+p,left:c,x:c,y:f}}function PC(e){var t=Dc(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function VI(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&OC(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function No(e){return oi(e).getComputedStyle(e)}function ete(e){return["table","td","th"].indexOf(to(e))>=0}function ea(e){return((Ja(e)?e.ownerDocument:e.document)||window.document).documentElement}function l_(e){return to(e)==="html"?e:e.assignedSlot||e.parentNode||(OC(e)?e.host:null)||ea(e)}function XM(e){return!Kr(e)||No(e).position==="fixed"?null:e.offsetParent}function tte(e){var t=/firefox/i.test(Tw()),n=/Trident/i.test(Tw());if(n&&Kr(e)){var r=No(e);if(r.position==="fixed")return null}var i=l_(e);for(OC(i)&&(i=i.host);Kr(i)&&["html","body"].indexOf(to(i))<0;){var o=No(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function Gd(e){for(var t=oi(e),n=XM(e);n&&ete(n)&&No(n).position==="static";)n=XM(n);return n&&(to(n)==="html"||to(n)==="body"&&No(n).position==="static")?t:n||tte(e)||t}function kC(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Sf(e,t,n){return za(e,nv(t,n))}function nte(e,t,n){var r=Sf(e,t,n);return r>n?n:r}function HI(){return{top:0,right:0,bottom:0,left:0}}function WI(e){return Object.assign({},HI(),e)}function YI(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var rte=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,WI(typeof t!="number"?t:YI(t,qd))};function ite(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,s=n.modifiersData.popperOffsets,a=Xi(n.placement),l=kC(a),c=[xr,ni].indexOf(a)>=0,f=c?"height":"width";if(!(!o||!s)){var h=rte(i.padding,n),p=PC(o),m=l==="y"?wr:xr,v=l==="y"?ti:ni,y=n.rects.reference[f]+n.rects.reference[l]-s[l]-n.rects.popper[f],x=s[l]-n.rects.reference[l],_=Gd(o),w=_?l==="y"?_.clientHeight||0:_.clientWidth||0:0,S=y/2-x/2,T=h[m],P=w-p[f]-h[v],k=w/2-p[f]/2+S,N=Sf(T,k,P),D=l;n.modifiersData[r]=(t={},t[D]=N,t.centerOffset=N-k,t)}}function ote(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||VI(t.elements.popper,i)&&(t.elements.arrow=i))}const ste={name:"arrow",enabled:!0,phase:"main",fn:ite,effect:ote,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ac(e){return e.split("-")[1]}var ate={top:"auto",right:"auto",bottom:"auto",left:"auto"};function lte(e){var t=e.x,n=e.y,r=window,i=r.devicePixelRatio||1;return{x:Lc(t*i)/i||0,y:Lc(n*i)/i||0}}function QM(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,s=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,f=e.roundOffsets,h=e.isFixed,p=s.x,m=p===void 0?0:p,v=s.y,y=v===void 0?0:v,x=typeof f=="function"?f({x:m,y}):{x:m,y};m=x.x,y=x.y;var _=s.hasOwnProperty("x"),w=s.hasOwnProperty("y"),S=xr,T=wr,P=window;if(c){var k=Gd(n),N="clientHeight",D="clientWidth";if(k===oi(n)&&(k=ea(n),No(k).position!=="static"&&a==="absolute"&&(N="scrollHeight",D="scrollWidth")),k=k,i===wr||(i===xr||i===ni)&&o===md){T=ti;var z=h&&k===P&&P.visualViewport?P.visualViewport.height:k[N];y-=z-r.height,y*=l?1:-1}if(i===xr||(i===wr||i===ti)&&o===md){S=ni;var A=h&&k===P&&P.visualViewport?P.visualViewport.width:k[D];m-=A-r.width,m*=l?1:-1}}var W=Object.assign({position:a},c&&ate),Y=f===!0?lte({x:m,y}):{x:m,y};if(m=Y.x,y=Y.y,l){var J;return Object.assign({},W,(J={},J[T]=w?"0":"",J[S]=_?"0":"",J.transform=(P.devicePixelRatio||1)<=1?"translate("+m+"px, "+y+"px)":"translate3d("+m+"px, "+y+"px, 0)",J))}return Object.assign({},W,(t={},t[T]=w?y+"px":"",t[S]=_?m+"px":"",t.transform="",t))}function cte(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,s=o===void 0?!0:o,a=n.roundOffsets,l=a===void 0?!0:a,c={placement:Xi(t.placement),variation:Ac(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,QM(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,QM(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const ute={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:cte,data:{}};var Tp={passive:!0};function fte(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,s=r.resize,a=s===void 0?!0:s,l=oi(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(f){f.addEventListener("scroll",n.update,Tp)}),a&&l.addEventListener("resize",n.update,Tp),function(){o&&c.forEach(function(f){f.removeEventListener("scroll",n.update,Tp)}),a&&l.removeEventListener("resize",n.update,Tp)}}const dte={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:fte,data:{}};var hte={left:"right",right:"left",bottom:"top",top:"bottom"};function fm(e){return e.replace(/left|right|bottom|top/g,function(t){return hte[t]})}var pte={start:"end",end:"start"};function JM(e){return e.replace(/start|end/g,function(t){return pte[t]})}function MC(e){var t=oi(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function RC(e){return Dc(ea(e)).left+MC(e).scrollLeft}function mte(e,t){var n=oi(e),r=ea(e),i=n.visualViewport,o=r.clientWidth,s=r.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;var c=UI();(c||!c&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:o,height:s,x:a+RC(e),y:l}}function gte(e){var t,n=ea(e),r=MC(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=za(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=za(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-r.scrollLeft+RC(e),l=-r.scrollTop;return No(i||n).direction==="rtl"&&(a+=za(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:s,x:a,y:l}}function NC(e){var t=No(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function qI(e){return["html","body","#document"].indexOf(to(e))>=0?e.ownerDocument.body:Kr(e)&&NC(e)?e:qI(l_(e))}function Cf(e,t){var n;t===void 0&&(t=[]);var r=qI(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=oi(r),s=i?[o].concat(o.visualViewport||[],NC(r)?r:[]):r,a=t.concat(s);return i?a:a.concat(Cf(l_(s)))}function Ow(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function vte(e,t){var n=Dc(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function e3(e,t,n){return t===BI?Ow(mte(e,n)):Ja(t)?vte(t,n):Ow(gte(ea(e)))}function yte(e){var t=Cf(l_(e)),n=["absolute","fixed"].indexOf(No(e).position)>=0,r=n&&Kr(e)?Gd(e):e;return Ja(r)?t.filter(function(i){return Ja(i)&&VI(i,r)&&to(i)!=="body"}):[]}function _te(e,t,n,r){var i=t==="clippingParents"?yte(e):[].concat(t),o=[].concat(i,[n]),s=o[0],a=o.reduce(function(l,c){var f=e3(e,c,r);return l.top=za(f.top,l.top),l.right=nv(f.right,l.right),l.bottom=nv(f.bottom,l.bottom),l.left=za(f.left,l.left),l},e3(e,s,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function GI(e){var t=e.reference,n=e.element,r=e.placement,i=r?Xi(r):null,o=r?Ac(r):null,s=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(i){case wr:l={x:s,y:t.y-n.height};break;case ti:l={x:s,y:t.y+t.height};break;case ni:l={x:t.x+t.width,y:a};break;case xr:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var c=i?kC(i):null;if(c!=null){var f=c==="y"?"height":"width";switch(o){case Nc:l[c]=l[c]-(t[f]/2-n[f]/2);break;case md:l[c]=l[c]+(t[f]/2-n[f]/2);break}}return l}function gd(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.strategy,s=o===void 0?e.strategy:o,a=n.boundary,l=a===void 0?$ee:a,c=n.rootBoundary,f=c===void 0?BI:c,h=n.elementContext,p=h===void 0?Au:h,m=n.altBoundary,v=m===void 0?!1:m,y=n.padding,x=y===void 0?0:y,_=WI(typeof x!="number"?x:YI(x,qd)),w=p===Au?Bee:Au,S=e.rects.popper,T=e.elements[v?w:p],P=_te(Ja(T)?T:T.contextElement||ea(e.elements.popper),l,f,s),k=Dc(e.elements.reference),N=GI({reference:k,element:S,strategy:"absolute",placement:i}),D=Ow(Object.assign({},S,N)),z=p===Au?D:k,A={top:P.top-z.top+_.top,bottom:z.bottom-P.bottom+_.bottom,left:P.left-z.left+_.left,right:z.right-P.right+_.right},W=e.modifiersData.offset;if(p===Au&&W){var Y=W[i];Object.keys(A).forEach(function(J){var Z=[ni,ti].indexOf(J)>=0?1:-1,ee=[wr,ti].indexOf(J)>=0?"y":"x";A[J]+=Y[ee]*Z})}return A}function bte(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?zI:l,f=Ac(r),h=f?a?KM:KM.filter(function(v){return Ac(v)===f}):qd,p=h.filter(function(v){return c.indexOf(v)>=0});p.length===0&&(p=h);var m=p.reduce(function(v,y){return v[y]=gd(e,{placement:y,boundary:i,rootBoundary:o,padding:s})[Xi(y)],v},{});return Object.keys(m).sort(function(v,y){return m[v]-m[y]})}function wte(e){if(Xi(e)===TC)return[];var t=fm(e);return[JM(e),t,JM(t)]}function xte(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,s=n.altAxis,a=s===void 0?!0:s,l=n.fallbackPlacements,c=n.padding,f=n.boundary,h=n.rootBoundary,p=n.altBoundary,m=n.flipVariations,v=m===void 0?!0:m,y=n.allowedAutoPlacements,x=t.options.placement,_=Xi(x),w=_===x,S=l||(w||!v?[fm(x)]:wte(x)),T=[x].concat(S).reduce(function(q,te){return q.concat(Xi(te)===TC?bte(t,{placement:te,boundary:f,rootBoundary:h,padding:c,flipVariations:v,allowedAutoPlacements:y}):te)},[]),P=t.rects.reference,k=t.rects.popper,N=new Map,D=!0,z=T[0],A=0;A=0,ee=Z?"width":"height",ie=gd(t,{placement:W,boundary:f,rootBoundary:h,altBoundary:p,padding:c}),oe=Z?J?ni:xr:J?ti:wr;P[ee]>k[ee]&&(oe=fm(oe));var G=fm(oe),F=[];if(o&&F.push(ie[Y]<=0),a&&F.push(ie[oe]<=0,ie[G]<=0),F.every(function(q){return q})){z=W,D=!1;break}N.set(W,F)}if(D)for(var j=v?3:1,B=function(te){var se=T.find(function(pe){var O=N.get(pe);if(O)return O.slice(0,te).every(function(R){return R})});if(se)return z=se,"break"},ne=j;ne>0;ne--){var H=B(ne);if(H==="break")break}t.placement!==z&&(t.modifiersData[r]._skip=!0,t.placement=z,t.reset=!0)}}const Ste={name:"flip",enabled:!0,phase:"main",fn:xte,requiresIfExists:["offset"],data:{_skip:!1}};function t3(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function n3(e){return[wr,ni,ti,xr].some(function(t){return e[t]>=0})}function Cte(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,s=gd(t,{elementContext:"reference"}),a=gd(t,{altBoundary:!0}),l=t3(s,r),c=t3(a,i,o),f=n3(l),h=n3(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:f,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":h})}const Ete={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Cte};function Tte(e,t,n){var r=Xi(e),i=[xr,wr].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=o[0],a=o[1];return s=s||0,a=(a||0)*i,[xr,ni].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}function Ote(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,s=zI.reduce(function(f,h){return f[h]=Tte(h,t.rects,o),f},{}),a=s[t.placement],l=a.x,c=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=s}const Pte={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Ote};function kte(e){var t=e.state,n=e.name;t.modifiersData[n]=GI({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Mte={name:"popperOffsets",enabled:!0,phase:"read",fn:kte,data:{}};function Rte(e){return e==="x"?"y":"x"}function Nte(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,s=n.altAxis,a=s===void 0?!1:s,l=n.boundary,c=n.rootBoundary,f=n.altBoundary,h=n.padding,p=n.tether,m=p===void 0?!0:p,v=n.tetherOffset,y=v===void 0?0:v,x=gd(t,{boundary:l,rootBoundary:c,padding:h,altBoundary:f}),_=Xi(t.placement),w=Ac(t.placement),S=!w,T=kC(_),P=Rte(T),k=t.modifiersData.popperOffsets,N=t.rects.reference,D=t.rects.popper,z=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,A=typeof z=="number"?{mainAxis:z,altAxis:z}:Object.assign({mainAxis:0,altAxis:0},z),W=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,Y={x:0,y:0};if(k){if(o){var J,Z=T==="y"?wr:xr,ee=T==="y"?ti:ni,ie=T==="y"?"height":"width",oe=k[T],G=oe+x[Z],F=oe-x[ee],j=m?-D[ie]/2:0,B=w===Nc?N[ie]:D[ie],ne=w===Nc?-D[ie]:-N[ie],H=t.elements.arrow,q=m&&H?PC(H):{width:0,height:0},te=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:HI(),se=te[Z],pe=te[ee],O=Sf(0,N[ie],q[ie]),R=S?N[ie]/2-j-O-se-A.mainAxis:B-O-se-A.mainAxis,I=S?-N[ie]/2+j+O+pe+A.mainAxis:ne+O+pe+A.mainAxis,X=t.elements.arrow&&Gd(t.elements.arrow),K=X?T==="y"?X.clientTop||0:X.clientLeft||0:0,ae=(J=W==null?void 0:W[T])!=null?J:0,ge=oe+R-ae-K,Le=oe+I-ae,ue=Sf(m?nv(G,ge):G,oe,m?za(F,Le):F);k[T]=ue,Y[T]=ue-oe}if(a){var ve,_e=T==="x"?wr:xr,Te=T==="x"?ti:ni,De=k[P],Re=P==="y"?"height":"width",Ne=De+x[_e],ce=De-x[Te],de=[wr,xr].indexOf(_)!==-1,be=(ve=W==null?void 0:W[P])!=null?ve:0,ye=de?Ne:De-N[Re]-D[Re]-be+A.altAxis,Ce=de?De+N[Re]+D[Re]-be-A.altAxis:ce,ke=m&&de?nte(ye,De,Ce):Sf(m?ye:Ne,De,m?Ce:ce);k[P]=ke,Y[P]=ke-De}t.modifiersData[r]=Y}}const Lte={name:"preventOverflow",enabled:!0,phase:"main",fn:Nte,requiresIfExists:["offset"]};function Dte(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Ate(e){return e===oi(e)||!Kr(e)?MC(e):Dte(e)}function jte(e){var t=e.getBoundingClientRect(),n=Lc(t.width)/e.offsetWidth||1,r=Lc(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Ite(e,t,n){n===void 0&&(n=!1);var r=Kr(t),i=Kr(t)&&jte(t),o=ea(t),s=Dc(e,i,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((to(t)!=="body"||NC(o))&&(a=Ate(t)),Kr(t)?(l=Dc(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=RC(o))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function Fte(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function i(o){n.add(o.name);var s=[].concat(o.requires||[],o.requiresIfExists||[]);s.forEach(function(a){if(!n.has(a)){var l=t.get(a);l&&i(l)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function $te(e){var t=Fte(e);return Kee.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function Bte(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function zte(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var r3={placement:"bottom",modifiers:[],strategy:"absolute"};function i3(){for(var e=arguments.length,t=new Array(e),n=0;n=0)&&(n[i]=e[i]);return n}function qe(e,t){if(e==null)return{};var n=one(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function sne(){let e=document.createElement("div");e.style.position="absolute",e.style.top="-9999px",e.style.width="50px",e.style.height="50px",e.style.overflow="scroll",document.body.appendChild(e);const t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}function LC(e){document.body.style.paddingRight=e>0?`${e}px`:null}function ane(){return document.body.clientWidtht[n]||n).join(" "):e}function Cr(e,t){const n={};return Object.keys(e).forEach(r=>{t.indexOf(r)===-1&&(n[r]=e[r])}),n}function n6(e,t){const n=Array.isArray(t)?t:[t];let{length:r}=n,i;const o={};for(;r>0;)r-=1,i=n[r],o[i]=e[i];return o}let a3={};function Mw(e){a3[e]||(typeof console<"u"&&console.error(e),a3[e]=!0)}function r6(e,t){return function(r,i,o,...s){return r[i]!==null&&typeof r[i]<"u"&&Mw(`"${i}" property of "${o}" has been deprecated. -${t}`),e(r,i,o,...s)}}const cne=typeof window=="object"&&window.Element||function(){};function DC(e,t,n){if(!(e[t]instanceof cne))return new Error("Invalid prop `"+t+"` supplied to `"+n+"`. Expected prop to be an instance of Element. Validation failed.")}const Us=C.oneOfType([C.string,C.func,DC,C.shape({current:C.any})]),Pe=C.oneOfType([C.func,C.string,C.shape({$$typeof:C.symbol,render:C.func}),C.arrayOf(C.oneOfType([C.func,C.string,C.shape({$$typeof:C.symbol,render:C.func})]))]),el={Fade:150,Collapse:350,Modal:300,Carousel:600,Offcanvas:300},rv=["in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","onEnter","onEntering","onEntered","onExit","onExiting","onExited"],vo={ENTERING:"entering",ENTERED:"entered",EXITING:"exiting",EXITED:"exited"},mt={esc:27,space:32,enter:13,tab:9,up:38,down:40,home:36,end:35,n:78,p:80},une=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],AC=!!(typeof window<"u"&&window.document&&window.document.createElement);function fne(e){return e&&typeof e=="object"?"current"in e:!1}function i6(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}function iv(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")}function l3(e){const t=typeof e,n=0/0;if(t==="number")return e;if(t==="symbol"||t==="object"&&i6(e)==="[object Symbol]")return n;if(iv(e)){const i=typeof e.valueOf=="function"?e.valueOf():e;e=iv(i)?`${i}`:i}if(t!=="string")return e===0?e:+e;e=e.replace(/^\s+|\s+$/g,"");const r=/^0b[01]+$/i.test(e);return r||/^0o[0-7]+$/i.test(e)?parseInt(e.slice(2),r?2:8):/^[-+]0x[0-9a-f]+$/i.test(e)?n:+e}function dne(e){if(!iv(e))return!1;const t=i6(e);return t==="[object Function]"||t==="[object AsyncFunction]"||t==="[object GeneratorFunction]"||t==="[object Proxy]"}function o6(e){if(fne(e))return e.current;if(dne(e))return e();if(typeof e=="string"&&AC){let t=document.querySelectorAll(e);if(t.length||(t=document.querySelectorAll(`#${e}`)),!t.length)throw new Error(`The target '${e}' could not be identified in the dom, tip: check spelling`);return t}return e}function ov(e){return e===null?!1:Array.isArray(e)||AC&&typeof e.length=="number"}function jc(e,t){const n=o6(e);return t?ov(n)?n:n===null?[]:[n]:ov(n)?n[0]:n}const hne=["touchstart","click"];function pne(e,t,n,r){let i=e;ov(i)||(i=[i]);let o=n;if(typeof o=="string"&&(o=o.split(/\s+/)),!ov(i)||typeof t!="function"||!Array.isArray(o))throw new Error(` - The first argument of this function must be DOM node or an array on DOM nodes or NodeList. - The second must be a function. - The third is a string or an array of strings that represents DOM events - `);return Array.prototype.forEach.call(o,s=>{Array.prototype.forEach.call(i,a=>{a.addEventListener(s,t,r)})}),function(){Array.prototype.forEach.call(o,a=>{Array.prototype.forEach.call(i,l=>{l.removeEventListener(a,t,r)})})}}const s6=["a[href]","area[href]","input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","object","embed","[tabindex]:not(.modal):not(.offcanvas)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'];C.oneOfType([C.bool,C.string]),C.string,C.object;const mne=["className","cssModule","noGutters","tag","widths"],gne=["xs","sm","md","lg","xl","xxl"],kl=C.oneOfType([C.number,C.string]),vne={tag:Pe,noGutters:r6(C.bool,"Please use Bootstrap 5 gutter utility classes. https://getbootstrap.com/docs/5.0/layout/gutters/"),className:C.string,cssModule:C.object,xs:kl,sm:kl,md:kl,lg:kl,xl:kl,xxl:kl,widths:C.array},yne={tag:"div",widths:gne};function Qn(e){const{className:t,cssModule:n,noGutters:r,tag:i,widths:o}=e,s=qe(e,mne),a=[];o.forEach((c,f)=>{let h=e[c];if(delete s[c],!h)return;const p=!f;a.push(p?`row-cols-${h}`:`row-cols-${c}-${h}`)});const l=Fe(me(t,r?"gx-0":null,"row",a),n);return U.createElement(i,$e({},s,{className:l}))}Qn.propTypes=vne;Qn.defaultProps=yne;const _ne=["className","cssModule","widths","tag"],a6=["xs","sm","md","lg","xl","xxl"],c3=C.oneOfType([C.number,C.string]),Ml=C.oneOfType([C.bool,C.number,C.string,C.shape({size:C.oneOfType([C.bool,C.number,C.string]),order:c3,offset:c3})]),bne={tag:Pe,xs:Ml,sm:Ml,md:Ml,lg:Ml,xl:Ml,xxl:Ml,className:C.string,cssModule:C.object,widths:C.array},wne={tag:"div",widths:a6},u3=(e,t,n)=>n===!0||n===""?e?"col":`col-${t}`:n==="auto"?e?"col-auto":`col-${t}-auto`:e?`col-${n}`:`col-${t}-${n}`,xne=(e,t,n=a6)=>{const r=e,i=[];return n.forEach((o,s)=>{let a=r[o];if(delete r[o],!a&&a!=="")return;const l=!s;if(iv(a)){const c=l?"-":`-${o}-`,f=u3(l,o,a.size);i.push(Fe(me({[f]:a.size||a.size==="",[`order${c}${a.order}`]:a.order||a.order===0,[`offset${c}${a.offset}`]:a.offset||a.offset===0}),t))}else{const c=u3(l,o,a);i.push(c)}}),{colClasses:i,modifiedAttributes:r}};function jC(e){const{className:t,cssModule:n,widths:r,tag:i}=e,o=qe(e,_ne);let{modifiedAttributes:s,colClasses:a}=xne(o,n,r);a.length||a.push("col");const l=Fe(me(t,a),n);return U.createElement(i,$e({},s,{className:l}))}jC.propTypes=bne;jC.defaultProps=wne;const Sne=["expand","className","cssModule","light","dark","fixed","sticky","color","container","tag","children"],Cne={children:C.node,className:C.string,color:C.string,container:C.oneOfType([C.bool,C.string]),cssModule:C.object,dark:C.bool,expand:C.oneOfType([C.bool,C.string]),fixed:C.string,full:C.bool,light:C.bool,role:C.string,sticky:C.string,tag:Pe},Ene={tag:"nav",expand:!1,container:"fluid"},Tne=e=>e===!1?!1:e===!0||e==="xs"?"navbar-expand":`navbar-expand-${e}`;function IC(e){const{expand:t,className:n,cssModule:r,light:i,dark:o,fixed:s,sticky:a,color:l,container:c,tag:f,children:h}=e,p=qe(e,Sne),m=Fe(me(n,"navbar",Tne(t),{"navbar-light":i,"navbar-dark":o,[`bg-${l}`]:l,[`fixed-${s}`]:s,[`sticky-${a}`]:a}),r),v=c&&c===!0?"container":`container-${c}`;return U.createElement(f,$e({},p,{className:m}),c?U.createElement("div",{className:v},h):h)}IC.propTypes=Cne;IC.defaultProps=Ene;const One=["className","cssModule","tag"],Pne={className:C.string,cssModule:C.object,tag:Pe},kne={tag:"a"};function FC(e){const{className:t,cssModule:n,tag:r}=e,i=qe(e,One),o=Fe(me(t,"navbar-brand"),n);return U.createElement(r,$e({},i,{className:o}))}FC.propTypes=Pne;FC.defaultProps=kne;C.string,C.object,C.bool;const Mne=["className","cssModule","children","tag"],Rne={className:C.string,cssModule:C.object,tag:Pe,type:C.string,children:C.node},Nne={tag:"button",type:"button"};function $C(e){const{className:t,cssModule:n,children:r,tag:i}=e,o=qe(e,Mne),s=Fe(me(t,"navbar-toggler"),n);return U.createElement(i,$e({"aria-label":"Toggle navigation"},o,{className:s}),r||U.createElement("span",{className:Fe("navbar-toggler-icon",n)}))}$C.propTypes=Rne;$C.defaultProps=Nne;const Lne=["className","cssModule","tabs","pills","vertical","horizontal","justified","fill","navbar","card","tag"],Dne={card:C.bool,className:C.string,cssModule:C.object,fill:C.bool,horizontal:C.oneOf(["center","end"]),justified:C.bool,navbar:C.bool,pills:C.bool,tabs:C.bool,tag:Pe,vertical:C.oneOfType([C.bool,C.string])},Ane={tag:"ul",vertical:!1},jne=e=>e===!1?!1:e===!0||e==="xs"?"flex-column":`flex-${e}-column`;function c_(e){const{className:t,cssModule:n,tabs:r,pills:i,vertical:o,horizontal:s,justified:a,fill:l,navbar:c,card:f,tag:h}=e,p=qe(e,Lne),m=Fe(me(t,c?"navbar-nav":"nav",s?`justify-content-${s}`:!1,jne(o),{"nav-tabs":r,"card-header-tabs":f&&r,"nav-pills":i,"card-header-pills":f&&i,"nav-justified":a,"nav-fill":l}),n);return U.createElement(h,$e({},p,{className:m}))}c_.propTypes=Dne;c_.defaultProps=Ane;const Ine=["className","cssModule","active","tag"],Fne={active:C.bool,className:C.string,cssModule:C.object,tag:Pe},$ne={tag:"li"};function BC(e){const{className:t,cssModule:n,active:r,tag:i}=e,o=qe(e,Ine),s=Fe(me(t,"nav-item",r?"active":!1),n);return U.createElement(i,$e({},o,{className:s}))}BC.propTypes=Fne;BC.defaultProps=$ne;const Bne=["className","cssModule","active","tag","innerRef"],zne={active:C.bool,className:C.string,cssModule:C.object,disabled:C.bool,href:C.any,innerRef:C.oneOfType([C.object,C.func,C.string]),onClick:C.func,tag:Pe},Une={tag:"a"};class zC extends U.Component{constructor(t){super(t),this.onClick=this.onClick.bind(this)}onClick(t){if(this.props.disabled){t.preventDefault();return}this.props.href==="#"&&t.preventDefault(),this.props.onClick&&this.props.onClick(t)}render(){let t=this.props,{className:n,cssModule:r,active:i,tag:o,innerRef:s}=t,a=qe(t,Bne);const l=Fe(me(n,"nav-link",{disabled:a.disabled,active:i}),r);return U.createElement(o,$e({},a,{ref:s,onClick:this.onClick,className:l}))}}zC.propTypes=zne;zC.defaultProps=Une;var l6=zC;C.string,C.node,C.string,C.object,C.string;C.bool,C.string,C.object;const Vne=["className","cssModule","variant","innerRef"],Hne={active:C.bool,"aria-label":C.string,onClick:C.func,variant:C.oneOf(["white"]),className:C.string,cssModule:C.object,innerRef:C.oneOfType([C.object,C.string,C.func])},Wne={"aria-label":"close"};function UC(e){const{className:t,cssModule:n,variant:r,innerRef:i}=e,o=qe(e,Vne),s=Fe(me(t,"btn-close",r&&`btn-close-${r}`));return U.createElement("button",$e({ref:i,type:"button",className:s},o))}UC.propTypes=Hne;UC.defaultProps=Wne;const Yne=["active","aria-label","block","className","close","cssModule","color","outline","size","tag","innerRef"],qne={active:C.bool,"aria-label":C.string,block:C.bool,children:C.node,className:C.string,cssModule:C.object,close:C.bool,color:C.string,disabled:C.bool,innerRef:C.oneOfType([C.object,C.func,C.string]),onClick:C.func,outline:C.bool,size:C.string,tag:Pe},Gne={color:"secondary",tag:"button"};function ht(e){const t=V.useCallback(x=>{if(e.disabled){x.preventDefault();return}if(e.onClick)return e.onClick(x)},[e.onClick,e.disabled]);let{active:n,"aria-label":r,block:i,className:o,close:s,cssModule:a,color:l,outline:c,size:f,tag:h,innerRef:p}=e,m=qe(e,Yne);if(s)return U.createElement(UC,m);const v=`btn${c?"-outline":""}-${l}`,y=Fe(me(o,"btn",v,f?`btn-${f}`:!1,i?"d-block w-100":!1,{active:n,disabled:e.disabled}),a);return m.href&&h==="button"&&(h="a"),U.createElement(h,$e({type:h==="button"&&m.onClick?"button":void 0},m,{className:y,ref:p,onClick:t,"aria-label":r}))}ht.propTypes=qne;ht.defaultProps=Gne;C.func,C.func,C.func,C.bool,C.string,C.object;const vd=U.createContext({}),c6=U.createContext({}),Zne=["className","cssModule","direction","isOpen","group","size","nav","setActiveFromChild","active","tag","menuRole"],Kne={a11y:C.bool,disabled:C.bool,direction:C.oneOf(["up","down","start","end","left","right"]),group:C.bool,isOpen:C.bool,nav:C.bool,active:C.bool,size:C.string,tag:Pe,toggle:C.func,children:C.node,className:C.string,cssModule:C.object,dropup:C.bool,inNavbar:C.bool,setActiveFromChild:C.bool,menuRole:C.oneOf(["listbox","menu"])},Xne={a11y:!0,isOpen:!1,direction:"down",nav:!1,active:!1,inNavbar:!1,setActiveFromChild:!1},Qne=[mt.space,mt.enter,mt.up,mt.down,mt.end,mt.home];class u_ extends U.Component{constructor(t){super(t),this.addEvents=this.addEvents.bind(this),this.handleDocumentClick=this.handleDocumentClick.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.removeEvents=this.removeEvents.bind(this),this.toggle=this.toggle.bind(this),this.handleMenuRef=this.handleMenuRef.bind(this),this.handleToggleRef=this.handleToggleRef.bind(this),this.containerRef=U.createRef(),this.menuRef=U.createRef(),this.toggleRef=U.createRef()}componentDidMount(){this.handleProps()}componentDidUpdate(t){this.props.isOpen!==t.isOpen&&this.handleProps()}componentWillUnmount(){this.removeEvents()}handleMenuRef(t){this.menuRef.current=t}handleToggleRef(t){this.toggleRef.current=t}handleDocumentClick(t){if(t&&(t.which===3||t.type==="keyup"&&t.which!==mt.tab))return;const n=this.getContainer(),r=this.getMenu(),i=this.getToggle(),o=t.target===i,s=r&&r.contains(t.target)&&r!==t.target;let a=!1;n&&(a=n.classList.contains("input-group")&&n.classList.contains("dropdown")&&t.target.tagName==="INPUT"),!((o&&!a||s)&&(t.type!=="keyup"||t.which===mt.tab))&&this.toggle(t)}handleKeyDown(t){const n=t.target.getAttribute("role")==="menuitem"||t.target.getAttribute("role")==="option",r=this.getMenuCtrl()===t.target,i=mt.tab===t.which;if(!(/input|textarea/i.test(t.target.tagName)||i&&!this.props.a11y||i&&!(n||r))&&((Qne.indexOf(t.which)!==-1||t.which>=48&&t.which<=90)&&t.preventDefault(),!this.props.disabled&&(r&&([mt.space,mt.enter,mt.up,mt.down].indexOf(t.which)>-1?(this.props.isOpen||this.toggle(t),setTimeout(()=>this.getMenuItems()[0].focus())):this.props.isOpen&&i?(t.preventDefault(),this.getMenuItems()[0].focus()):this.props.isOpen&&t.which===mt.esc&&this.toggle(t)),this.props.isOpen&&n))){if([mt.tab,mt.esc].indexOf(t.which)>-1)this.toggle(t),this.getMenuCtrl().focus();else if([mt.space,mt.enter].indexOf(t.which)>-1)t.target.click(),this.getMenuCtrl().focus();else if([mt.down,mt.up].indexOf(t.which)>-1||[mt.n,mt.p].indexOf(t.which)>-1&&t.ctrlKey){const o=this.getMenuItems();let s=o.indexOf(t.target);mt.up===t.which||mt.p===t.which&&t.ctrlKey?s=s!==0?s-1:o.length-1:(mt.down===t.which||mt.n===t.which&&t.ctrlKey)&&(s=s===o.length-1?0:s+1),o[s].focus()}else if(mt.end===t.which){const o=this.getMenuItems();o[o.length-1].focus()}else if(mt.home===t.which)this.getMenuItems()[0].focus();else if(t.which>=48&&t.which<=90){const o=this.getMenuItems(),s=String.fromCharCode(t.which).toLowerCase();for(let a=0;adocument.addEventListener(t,this.handleDocumentClick,!0))}removeEvents(){["click","touchstart","keyup"].forEach(t=>document.removeEventListener(t,this.handleDocumentClick,!0))}toggle(t){return this.props.disabled?t&&t.preventDefault():this.props.toggle(t)}render(){const t=Cr(this.props,["toggle","disabled","inNavbar","a11y"]),{className:n,cssModule:r,direction:i,isOpen:o,group:s,size:a,nav:l,setActiveFromChild:c,active:f,tag:h,menuRole:p}=t,m=qe(t,Zne),v=h||(l?"li":"div");let y=!1;c&&U.Children.map(this.props.children[1].props.children,_=>{_&&_.props.active&&(y=!0)});const x=Fe(me(n,l&&f?"active":!1,c&&y?"active":!1,{"btn-group":s,[`btn-group-${a}`]:!!a,dropdown:!s,dropup:i==="up",dropstart:i==="start"||i==="left",dropend:i==="end"||i==="right",show:o,"nav-item":l}),r);return this.context.insideInputGroup?U.createElement(vd.Provider,{value:this.getContextValue()},U.createElement(qM,null,U.Children.map(this.props.children,_=>U.cloneElement(_,{onKeyDown:this.handleKeyDown})))):U.createElement(vd.Provider,{value:this.getContextValue()},U.createElement(qM,null,U.createElement(v,$e({},m,{[typeof v=="string"?"ref":"innerRef"]:this.containerRef,onKeyDown:this.handleKeyDown,className:x}))))}}u_.propTypes=Kne;u_.defaultProps=Xne;u_.contextType=c6;var Jc=u_;const Jne={children:C.node};function VC(e){return U.createElement(Jc,$e({group:!0},e))}VC.propTypes=Jne;C.string,C.string,C.object,C.string,C.string,C.bool;C.string,C.string,C.object,C.string;const ere=["className","cssModule","divider","tag","header","active","text"],tre={children:C.node,active:C.bool,disabled:C.bool,divider:C.bool,tag:Pe,header:C.bool,onClick:C.func,className:C.string,cssModule:C.object,toggle:C.bool,text:C.bool},nre={tag:"button",toggle:!0};class f_ extends U.Component{constructor(t){super(t),this.onClick=this.onClick.bind(this),this.getTabIndex=this.getTabIndex.bind(this)}onClick(t){const{disabled:n,header:r,divider:i,text:o}=this.props;if(n||r||i||o){t.preventDefault();return}this.props.onClick&&this.props.onClick(t),this.props.toggle&&this.context.toggle(t)}getRole(){return this.context.menuRole==="listbox"?"option":"menuitem"}getTabIndex(){const{disabled:t,header:n,divider:r,text:i}=this.props;return t||n||r||i?"-1":"0"}render(){const t=this.getTabIndex(),n=t>-1?this.getRole():void 0;let r=Cr(this.props,["toggle"]),{className:i,cssModule:o,divider:s,tag:a,header:l,active:c,text:f}=r,h=qe(r,ere);const p=Fe(me(i,{disabled:h.disabled,"dropdown-item":!s&&!l&&!f,active:c,"dropdown-header":l,"dropdown-divider":s,"dropdown-item-text":f}),o);return a==="button"&&(l?a="h6":s?a="div":h.href?a="a":f&&(a="span")),U.createElement(a,$e({type:a==="button"&&(h.onClick||this.props.toggle)?"button":void 0},h,{tabIndex:t,role:n,className:p,onClick:this.onClick}))}}f_.propTypes=tre;f_.defaultProps=nre;f_.contextType=vd;var Ue=f_;const rre=["className","cssModule","dark","end","right","tag","flip","modifiers","persist","strategy","container","updateOnSelect"],ire={tag:Pe,children:C.node.isRequired,dark:C.bool,end:C.bool,flip:C.bool,modifiers:C.array,className:C.string,cssModule:C.object,style:C.object,persist:C.bool,strategy:C.string,container:Us,updateOnSelect:C.bool,right:r6(C.bool,'Please use "end" instead.')},ore={tag:"div",flip:!0,modifiers:[]},sre={up:"top",left:"left",right:"right",start:"left",end:"right",down:"bottom"};class d_ extends U.Component{getRole(){return this.context.menuRole==="listbox"?"listbox":"menu"}render(){const t=this.props,{className:n,cssModule:r,dark:i,end:o,right:s,tag:a,flip:l,modifiers:c,persist:f,strategy:h,container:p,updateOnSelect:m}=t,v=qe(t,rre),y=Fe(me(n,"dropdown-menu",{"dropdown-menu-dark":i,"dropdown-menu-end":o||s,show:this.context.isOpen}),r),x=a;if(f||this.context.isOpen&&!this.context.inNavbar){const T=`${sre[this.context.direction]||"bottom"}-${o||s?"end":"start"}`,P=[...c,{name:"flip",enabled:!!l}],k=U.createElement(XI,{placement:T,modifiers:P,strategy:h},({ref:N,style:D,placement:z,update:A})=>{let W=We(We({},this.props.style),D);const Y=J=>{N(J);const{onMenuRef:Z}=this.context;Z&&Z(J)};return U.createElement(x,$e({tabIndex:"-1",role:this.getRole(),ref:Y},v,{style:W,"aria-hidden":!this.context.isOpen,className:y,"data-popper-placement":z,onClick:()=>m&&A()}))});return p?$a.createPortal(k,jc(p)):k}const{onMenuRef:_}=this.context;return U.createElement(x,$e({tabIndex:"-1",role:this.getRole()},v,{ref:_,"aria-hidden":!this.context.isOpen,className:y,"data-popper-placement":v.placement}))}}d_.propTypes=ire;d_.defaultProps=ore;d_.contextType=vd;var eu=d_;const are=["className","color","cssModule","caret","split","nav","tag","innerRef"],lre={caret:C.bool,color:C.string,children:C.node,className:C.string,cssModule:C.object,disabled:C.bool,onClick:C.func,"aria-haspopup":C.bool,split:C.bool,tag:Pe,nav:C.bool,innerRef:C.oneOfType([C.object,C.string,C.func])},cre={color:"secondary","aria-haspopup":!0};class h_ extends U.Component{constructor(t){super(t),this.onClick=this.onClick.bind(this)}onClick(t){if(this.props.disabled||this.context.disabled){t.preventDefault();return}this.props.nav&&!this.props.tag&&t.preventDefault(),this.props.onClick&&this.props.onClick(t),this.context.toggle(t)}getRole(){return this.context.menuRole||this.props["aria-haspopup"]}render(){const t=this.props,{className:n,color:r,cssModule:i,caret:o,split:s,nav:a,tag:l,innerRef:c}=t,f=qe(t,are),h=f["aria-label"]||"Toggle Dropdown",p=Fe(me(n,{"dropdown-toggle":o||s,"dropdown-toggle-split":s,"nav-link":a}),i),m=typeof f.children<"u"?f.children:U.createElement("span",{className:"visually-hidden"},h);let v;return a&&!l?(v="a",f.href="#"):l?v=l:(v=ht,f.color=r,f.cssModule=i),this.context.inNavbar?U.createElement(v,$e({},f,{className:p,onClick:this.onClick,ref:this.context.onToggleRef,"aria-expanded":this.context.isOpen,"aria-haspopup":this.getRole(),children:m})):U.createElement(nne,{innerRef:c},({ref:y})=>{const x=_=>{y(_);const{onToggleRef:w}=this.context;w&&w(_)};return U.createElement(v,$e({},f,{[typeof v=="string"?"ref":"innerRef"]:x,className:p,onClick:this.onClick,"aria-expanded":this.context.isOpen,"aria-haspopup":this.getRole(),children:m}))})}}h_.propTypes=lre;h_.defaultProps=cre;h_.contextType=vd;var Zd=h_;const ure=["tag","baseClass","baseClassActive","className","cssModule","children","innerRef"],fre=We(We({},Uo.propTypes),{},{children:C.oneOfType([C.arrayOf(C.node),C.node]),tag:Pe,baseClass:C.string,baseClassActive:C.string,className:C.string,cssModule:C.object,innerRef:C.oneOfType([C.object,C.string,C.func])}),dre=We(We({},Uo.defaultProps),{},{tag:"div",baseClass:"fade",baseClassActive:"show",timeout:el.Fade,appear:!0,enter:!0,exit:!0,in:!0});function Zt(e){const{tag:t,baseClass:n,baseClassActive:r,className:i,cssModule:o,children:s,innerRef:a}=e,l=qe(e,ure),c=n6(l,rv),f=Cr(l,rv);return U.createElement(Uo,c,h=>{const m=Fe(me(i,n,h==="entered"&&r),o);return U.createElement(t,$e({className:m},f,{ref:a}),s)})}Zt.propTypes=fre;Zt.defaultProps=dre;U.createContext({});C.node,C.string,C.object,C.bool,C.oneOfType([C.object,C.string,C.func]),C.oneOfType([C.array,C.string]).isRequired,C.func.isRequired;C.string,C.object,C.oneOfType([C.object,C.string,C.func]),C.node,C.oneOfType([C.array,C.string]),C.bool;C.node,C.string,C.object,C.oneOfType([C.object,C.string,C.func]),C.string.isRequired;C.node,C.string,C.object,C.oneOfType([C.object,C.string,C.func]);const hre=["tag","horizontal","isOpen","className","navbar","cssModule","children","innerRef"],pre=We(We({},Uo.propTypes),{},{horizontal:C.bool,isOpen:C.bool,children:C.oneOfType([C.arrayOf(C.node),C.node]),tag:Pe,className:C.node,navbar:C.bool,cssModule:C.object,innerRef:C.shape({current:C.object})}),mre=We(We({},Uo.defaultProps),{},{horizontal:!1,isOpen:!1,appear:!1,enter:!0,exit:!0,tag:"div",timeout:el.Collapse}),gre={[vo.ENTERING]:"collapsing",[vo.ENTERED]:"collapse show",[vo.EXITING]:"collapsing",[vo.EXITED]:"collapse"};function vre(e){return gre[e]||"collapse"}class HC extends V.Component{constructor(t){super(t),this.state={dimension:null},this.nodeRef=t.innerRef||U.createRef(),["onEntering","onEntered","onExit","onExiting","onExited"].forEach(n=>{this[n]=this[n].bind(this)})}onEntering(t,n){const r=this.getNode();this.setState({dimension:this.getDimension(r)}),this.props.onEntering(r,n)}onEntered(t,n){const r=this.getNode();this.setState({dimension:null}),this.props.onEntered(r,n)}onExit(){const t=this.getNode();this.setState({dimension:this.getDimension(t)}),this.props.onExit(t)}onExiting(){const t=this.getNode();this.getDimension(t),this.setState({dimension:0}),this.props.onExiting(t)}onExited(){const t=this.getNode();this.setState({dimension:null}),this.props.onExited(t)}getNode(){return this.nodeRef.current}getDimension(t){return this.props.horizontal?t.scrollWidth:t.scrollHeight}render(){const t=this.props,{tag:n,horizontal:r,isOpen:i,className:o,navbar:s,cssModule:a,children:l,innerRef:c}=t,f=qe(t,hre),{dimension:h}=this.state,p=n6(f,rv),m=Cr(f,rv);return U.createElement(Uo,$e({},p,{in:i,nodeRef:this.nodeRef,onEntering:this.onEntering,onEntered:this.onEntered,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}),v=>{let y=vre(v);const x=Fe(me(o,r&&"collapse-horizontal",y,s&&"navbar-collapse"),a),_=h===null?null:{[r?"width":"height"]:h};return U.createElement(n,$e({},m,{style:We(We({},m.style),_),className:x,ref:this.nodeRef}),l)})}}HC.propTypes=pre;HC.defaultProps=mre;var u6=HC;C.string.isRequired,C.string,C.node,C.object,C.oneOfType([C.object,C.string,C.func]);C.node,C.string,C.string,C.object,C.oneOfType([C.object,C.func,C.string]),C.bool;const yre=["className","cssModule","color","body","inverse","outline","tag","innerRef"],_re={body:C.bool,className:C.string,color:C.string,cssModule:C.object,innerRef:C.oneOfType([C.object,C.string,C.func]),inverse:C.bool,outline:C.bool,tag:Pe},bre={tag:"div"};function Sr(e){const{className:t,cssModule:n,color:r,body:i,inverse:o,outline:s,tag:a,innerRef:l}=e,c=qe(e,yre),f=Fe(me(t,"card",o?"text-white":!1,i?"card-body":!1,r?`${s?"border":"bg"}-${r}`:!1),n);return U.createElement(a,$e({},c,{className:f,ref:l}))}Sr.propTypes=_re;Sr.defaultProps=bre;C.string,C.object;C.string,C.object;C.string,C.object;const wre=["className","cssModule","innerRef","tag"],xre={className:C.string,cssModule:C.object,innerRef:C.oneOfType([C.object,C.string,C.func]),tag:Pe},Sre={tag:"div"};function tl(e){const{className:t,cssModule:n,innerRef:r,tag:i}=e,o=qe(e,wre),s=Fe(me(t,"card-body"),n);return U.createElement(i,$e({},o,{className:s,ref:r}))}tl.propTypes=xre;tl.defaultProps=Sre;C.oneOfType([C.object,C.func,C.string]),C.string,C.object;const Cre=["className","cssModule","tag"],Ere={className:C.string,cssModule:C.object,tag:Pe},Tre={tag:"div"};function WC(e){const{className:t,cssModule:n,tag:r}=e,i=qe(e,Cre),o=Fe(me(t,"card-footer"),n);return U.createElement(r,$e({},i,{className:o}))}WC.propTypes=Ere;WC.defaultProps=Tre;const Ore=["className","cssModule","tag"],Pre={className:C.string,cssModule:C.object,tag:Pe},kre={tag:"div"};function nl(e){const{className:t,cssModule:n,tag:r}=e,i=qe(e,Ore),o=Fe(me(t,"card-header"),n);return U.createElement(r,$e({},i,{className:o}))}nl.propTypes=Pre;nl.defaultProps=kre;C.bool,C.string,C.object,C.bool;C.string,C.object;const hm=U.createContext({}),Mre=["in","children","cssModule","slide","tag","className"];class p_ extends U.Component{constructor(t){super(t),this.state={startAnimation:!1},this.onEnter=this.onEnter.bind(this),this.onEntering=this.onEntering.bind(this),this.onExit=this.onExit.bind(this),this.onExiting=this.onExiting.bind(this),this.onExited=this.onExited.bind(this)}onEnter(t,n){this.setState({startAnimation:!1}),this.props.onEnter(t,n)}onEntering(t,n){const{offsetHeight:r}=t;return this.setState({startAnimation:!0}),this.props.onEntering(t,n),r}onExit(t){this.setState({startAnimation:!1}),this.props.onExit(t)}onExiting(t){this.setState({startAnimation:!0}),t.dispatchEvent(new CustomEvent("slide.bs.carousel")),this.props.onExiting(t)}onExited(t){t.dispatchEvent(new CustomEvent("slid.bs.carousel")),this.props.onExited(t)}render(){const t=this.props,{in:n,children:r,cssModule:i,slide:o,tag:s,className:a}=t,l=qe(t,Mre);return U.createElement(Uo,$e({},l,{enter:o,exit:o,in:n,onEnter:this.onEnter,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}),c=>{const{direction:f}=this.context,h=c===vo.ENTERED||c===vo.EXITING,p=(c===vo.ENTERING||c===vo.EXITING)&&this.state.startAnimation&&(f==="end"?"carousel-item-start":"carousel-item-end"),m=c===vo.ENTERING&&(f==="end"?"carousel-item-next":"carousel-item-prev"),v=Fe(me(a,"carousel-item",h&&"active",p,m),i);return U.createElement(s,{className:v},r)})}}p_.propTypes=We(We({},Uo.propTypes),{},{tag:Pe,in:C.bool,cssModule:C.object,children:C.node,slide:C.bool,className:C.string});p_.defaultProps=We(We({},Uo.defaultProps),{},{tag:"div",timeout:el.Carousel,slide:!0});p_.contextType=hm;var f6=p_;const Rre=40,d6={activeIndex:C.number,next:C.func.isRequired,previous:C.func.isRequired,keyboard:C.bool,pause:C.oneOf(["hover",!1]),ride:C.oneOf(["carousel"]),interval:C.oneOfType([C.number,C.string,C.bool]),children:C.array,mouseEnter:C.func,mouseLeave:C.func,slide:C.bool,dark:C.bool,fade:C.bool,cssModule:C.object,className:C.string,enableTouch:C.bool},Nre=Object.keys(d6),Lre={interval:5e3,pause:"hover",keyboard:!0,slide:!0,enableTouch:!0,fade:!1};class YC extends U.Component{constructor(t){super(t),this.handleKeyPress=this.handleKeyPress.bind(this),this.renderItems=this.renderItems.bind(this),this.hoverStart=this.hoverStart.bind(this),this.hoverEnd=this.hoverEnd.bind(this),this.handleTouchStart=this.handleTouchStart.bind(this),this.handleTouchEnd=this.handleTouchEnd.bind(this),this.touchStartX=0,this.touchStartY=0,this.state={activeIndex:this.props.activeIndex,direction:"end",indicatorClicked:!1}}componentDidMount(){this.props.ride==="carousel"&&this.setInterval(),document.addEventListener("keyup",this.handleKeyPress)}static getDerivedStateFromProps(t,n){let r=null,{activeIndex:i,direction:o,indicatorClicked:s}=n;return t.activeIndex!==i&&(t.activeIndex===i+1?o="end":t.activeIndex===i-1?o="start":t.activeIndex{this.props.next()},parseInt(this.props.interval,10)))}clearInterval(){clearInterval(this.cycleInterval)}hoverStart(...t){this.props.pause==="hover"&&this.clearInterval(),this.props.mouseEnter&&this.props.mouseEnter(...t)}hoverEnd(...t){this.props.pause==="hover"&&this.setInterval(),this.props.mouseLeave&&this.props.mouseLeave(...t)}renderItems(t,n){const{slide:r}=this.props;return U.createElement("div",{className:n},t.map((i,o)=>{const s=o===this.state.activeIndex;return U.cloneElement(i,{in:s,slide:r})}))}render(){const{cssModule:t,slide:n,className:r,dark:i,fade:o}=this.props,s=Cr(this.props,Nre),a=Fe(me(r,"carousel",o&&"carousel-fade",n&&"slide",i&&"carousel-dark"),t),l=Fe(me("carousel-inner"),t),c=this.props.children.filter(_=>_!=null&&typeof _!="boolean");if(c.every(_=>_.type===f6))return U.createElement("div",$e({},s,{className:a,onMouseEnter:this.hoverStart,onMouseLeave:this.hoverEnd}),U.createElement(hm.Provider,{value:this.getContextValue()},this.renderItems(c,l)));if(c[0]instanceof Array){const _=c[0],w=c[1],S=c[2];return U.createElement("div",$e({},s,{className:a,onMouseEnter:this.hoverStart,onMouseLeave:this.hoverEnd}),U.createElement(hm.Provider,{value:this.getContextValue()},this.renderItems(_,l),w,S))}const h=c[0],p=_=>{typeof h.props.onClickHandler=="function"&&this.setState({indicatorClicked:!0},()=>h.props.onClickHandler(_))},m=U.cloneElement(h,{onClickHandler:p}),v=c[1],y=c[2],x=c[3];return U.createElement("div",$e({},s,{className:a,onMouseEnter:this.hoverStart,onMouseLeave:this.hoverEnd,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd}),U.createElement(hm.Provider,{value:this.getContextValue()},m,this.renderItems(v,l),y,x))}}YC.propTypes=d6;YC.defaultProps=Lre;var Dre=YC;const Are=["direction","onClickHandler","cssModule","directionText","className"];function Rw(e){const{direction:t,onClickHandler:n,cssModule:r,directionText:i,className:o}=e,s=qe(e,Are),a=Fe(me(o,`carousel-control-${t}`),r),l=Fe(me(`carousel-control-${t}-icon`),r),c=Fe(me("visually-hidden"),r);return U.createElement("a",$e({},s,{className:a,style:{cursor:"pointer"},role:"button",tabIndex:"0",onClick:f=>{f.preventDefault(),n()}}),U.createElement("span",{className:l,"aria-hidden":"true"}),U.createElement("span",{className:c},i||t))}Rw.propTypes={direction:C.oneOf(["prev","next"]).isRequired,onClickHandler:C.func.isRequired,cssModule:C.object,directionText:C.string,className:C.string};const jre=["items","activeIndex","cssModule","onClickHandler","className"];function h6(e){const{items:t,activeIndex:n,cssModule:r,onClickHandler:i,className:o}=e,s=qe(e,jre),a=Fe(me(o,"carousel-indicators"),r),l=t.map((c,f)=>{const h=Fe(me({active:n===f}),r);return U.createElement("button",{"aria-label":c.caption,"data-bs-target":!0,type:"button",key:`${c.key||Object.values(c).join("")}`,onClick:p=>{p.preventDefault(),i(f)},className:h})});return U.createElement("div",$e({className:a},s),l)}h6.propTypes={activeIndex:C.number.isRequired,className:C.string,cssModule:C.object,items:C.array.isRequired,onClickHandler:C.func.isRequired};function p6(e){const{captionHeader:t,captionText:n,cssModule:r,className:i}=e,o=Fe(me(i,"carousel-caption","d-none","d-md-block"),r);return U.createElement("div",{className:o},U.createElement("h3",null,t),U.createElement("p",null,n))}p6.propTypes={captionHeader:C.node,captionText:C.node.isRequired,className:C.string,cssModule:C.object};const Ire=["defaultActiveIndex","autoPlay","indicators","controls","items","goToIndex"],Fre={items:C.array.isRequired,indicators:C.bool,controls:C.bool,autoPlay:C.bool,defaultActiveIndex:C.number,activeIndex:C.number,next:C.func,previous:C.func,goToIndex:C.func};class m6 extends V.Component{constructor(t){super(t),this.animating=!1,this.state={activeIndex:t.defaultActiveIndex||0},this.next=this.next.bind(this),this.previous=this.previous.bind(this),this.goToIndex=this.goToIndex.bind(this),this.onExiting=this.onExiting.bind(this),this.onExited=this.onExited.bind(this)}onExiting(){this.animating=!0}onExited(){this.animating=!1}next(){this.animating||this.setState(t=>({activeIndex:t.activeIndex===this.props.items.length-1?0:t.activeIndex+1}))}previous(){this.animating||this.setState(t=>({activeIndex:t.activeIndex===0?this.props.items.length-1:t.activeIndex-1}))}goToIndex(t){this.animating||this.setState({activeIndex:t})}render(){const t=this.props,{defaultActiveIndex:n,autoPlay:r,indicators:i,controls:o,items:s,goToIndex:a}=t,l=qe(t,Ire),{activeIndex:c}=this.state,f=s.map(h=>{const p=h.key||h.src;return U.createElement(f6,{onExiting:this.onExiting,onExited:this.onExited,key:p},U.createElement("img",{className:"d-block w-100",src:h.src,alt:h.altText}),U.createElement(p6,{captionText:h.caption,captionHeader:h.header||h.caption}))});return U.createElement(Dre,$e({activeIndex:c,next:this.next,previous:this.previous,ride:r?"carousel":void 0},l),i&&U.createElement(h6,{items:s,activeIndex:l.activeIndex||c,onClickHandler:a||this.goToIndex}),f,o&&U.createElement(Rw,{direction:"prev",directionText:"Previous",onClickHandler:l.previous||this.previous}),o&&U.createElement(Rw,{direction:"next",directionText:"Next",onClickHandler:l.next||this.next}))}}m6.propTypes=Fre;m6.defaultProps={controls:!0,indicators:!0,autoPlay:!0};C.string,C.object;const $re=["className","cssModule","tag"],Bre={className:C.string,cssModule:C.object,tag:Pe},zre={tag:"p"};function qC(e){const{className:t,cssModule:n,tag:r}=e,i=qe(e,$re),o=Fe(me(t,"card-text"),n);return U.createElement(r,$e({},i,{className:o}))}qC.propTypes=Bre;qC.defaultProps=zre;const Ure=["className","cssModule","tag"],Vre={className:C.string,cssModule:C.object,tag:Pe},Hre={tag:"div"};function GC(e){const{className:t,cssModule:n,tag:r}=e,i=qe(e,Ure),o=Fe(me(t,"card-title"),n);return U.createElement(r,$e({},i,{className:o}))}GC.propTypes=Vre;GC.defaultProps=Hre;const Wre=["cssModule","children","isOpen","flip","target","offset","fallbackPlacements","placementPrefix","arrowClassName","hideArrow","popperClassName","tag","container","modifiers","strategy","boundariesElement","onClosed","fade","transition","placement"];function Yre(){}const qre={children:C.oneOfType([C.node,C.func]).isRequired,popperClassName:C.string,placement:C.string,placementPrefix:C.string,arrowClassName:C.string,hideArrow:C.bool,tag:Pe,isOpen:C.bool,cssModule:C.object,offset:C.arrayOf(C.number),fallbackPlacements:C.array,flip:C.bool,container:Us,target:Us.isRequired,modifiers:C.array,strategy:C.string,boundariesElement:C.oneOfType([C.string,DC]),onClosed:C.func,fade:C.bool,transition:C.shape(Zt.propTypes)},Gre={boundariesElement:"scrollParent",placement:"auto",hideArrow:!1,isOpen:!1,offset:[0,0],flip:!0,container:"body",modifiers:[],onClosed:Yre,fade:!0,transition:We({},Zt.defaultProps)};class ZC extends U.Component{constructor(t){super(t),this.setTargetNode=this.setTargetNode.bind(this),this.getTargetNode=this.getTargetNode.bind(this),this.getRef=this.getRef.bind(this),this.onClosed=this.onClosed.bind(this),this.state={isOpen:t.isOpen}}static getDerivedStateFromProps(t,n){return t.isOpen&&!n.isOpen?{isOpen:t.isOpen}:null}componentDidUpdate(){this._element&&this._element.childNodes&&this._element.childNodes[0]&&this._element.childNodes[0].focus&&this._element.childNodes[0].focus()}onClosed(){this.props.onClosed(),this.setState({isOpen:!1})}getTargetNode(){return this.targetNode}getContainerNode(){return jc(this.props.container)}getRef(t){this._element=t}setTargetNode(t){this.targetNode=typeof t=="string"?jc(t):t}renderChildren(){const t=this.props,{cssModule:n,children:r,isOpen:i,flip:o,target:s,offset:a,fallbackPlacements:l,placementPrefix:c,arrowClassName:f,hideArrow:h,popperClassName:p,tag:m,container:v,modifiers:y,strategy:x,boundariesElement:_,onClosed:w,fade:S,transition:T,placement:P}=t,k=qe(t,Wre),N=Fe(me("arrow",f),n),D=Fe(me(p,c?`${c}-auto`:""),this.props.cssModule),z=y.map(J=>J.name),W=[...[{name:"offset",options:{offset:a}},{name:"flip",enabled:o,options:{fallbackPlacements:l}},{name:"preventOverflow",options:{boundary:_}}].filter(J=>!z.includes(J.name)),...y],Y=We(We(We({},Zt.defaultProps),T),{},{baseClass:S?T.baseClass:"",timeout:S?T.timeout:0});return U.createElement(Zt,$e({},Y,k,{in:i,onExited:this.onClosed,tag:m}),U.createElement(XI,{referenceElement:this.targetNode,modifiers:W,placement:P,strategy:x},({ref:J,style:Z,placement:ee,isReferenceHidden:ie,arrowProps:oe,update:G})=>U.createElement("div",{ref:J,style:Z,className:D,"data-popper-placement":ee,"data-popper-reference-hidden":ie?"true":void 0},typeof r=="function"?r({update:G}):r,!h&&U.createElement("span",{ref:oe.ref,className:N,style:oe.style}))))}render(){return this.setTargetNode(this.props.target),this.state.isOpen?this.props.container==="inline"?this.renderChildren():$a.createPortal(U.createElement("div",{ref:this.getRef},this.renderChildren()),this.getContainerNode()):null}}ZC.propTypes=qre;ZC.defaultProps=Gre;var Zre=ZC;C.object.isRequired;Us.isRequired;const m_={children:C.oneOfType([C.node,C.func]),placement:C.oneOf(une),target:Us.isRequired,container:Us,isOpen:C.bool,disabled:C.bool,hideArrow:C.bool,boundariesElement:C.oneOfType([C.string,DC]),className:C.string,innerClassName:C.string,arrowClassName:C.string,popperClassName:C.string,cssModule:C.object,toggle:C.func,autohide:C.bool,placementPrefix:C.string,delay:C.oneOfType([C.shape({show:C.number,hide:C.number}),C.number]),modifiers:C.array,strategy:C.string,offset:C.arrayOf(C.number),innerRef:C.oneOfType([C.func,C.string,C.object]),trigger:C.string,fade:C.bool,flip:C.bool},g6={show:0,hide:50},Kre={isOpen:!1,hideArrow:!1,autohide:!1,delay:g6,toggle:function(){},trigger:"click",fade:!0};function v6(e,t){return t&&(e===t||t.contains(e))}function f3(e,t=[]){return t&&t.length&&t.filter(n=>v6(e,n))[0]}class KC extends U.Component{constructor(t){super(t),this._targets=[],this.currentTargetElement=null,this.addTargetEvents=this.addTargetEvents.bind(this),this.handleDocumentClick=this.handleDocumentClick.bind(this),this.removeTargetEvents=this.removeTargetEvents.bind(this),this.toggle=this.toggle.bind(this),this.showWithDelay=this.showWithDelay.bind(this),this.hideWithDelay=this.hideWithDelay.bind(this),this.onMouseOverTooltipContent=this.onMouseOverTooltipContent.bind(this),this.onMouseLeaveTooltipContent=this.onMouseLeaveTooltipContent.bind(this),this.show=this.show.bind(this),this.hide=this.hide.bind(this),this.onEscKeyDown=this.onEscKeyDown.bind(this),this.getRef=this.getRef.bind(this),this.state={isOpen:t.isOpen},this._isMounted=!1}componentDidMount(){this._isMounted=!0,this.updateTarget()}componentWillUnmount(){this._isMounted=!1,this.removeTargetEvents(),this._targets=null,this.clearShowTimeout(),this.clearHideTimeout()}static getDerivedStateFromProps(t,n){return t.isOpen&&!n.isOpen?{isOpen:t.isOpen}:null}handleDocumentClick(t){const n=this.props.trigger.split(" ");n.indexOf("legacy")>-1&&(this.props.isOpen||f3(t.target,this._targets))?(this._hideTimeout&&this.clearHideTimeout(),this.props.isOpen&&!v6(t.target,this._popover)?this.hideWithDelay(t):this.props.isOpen||this.showWithDelay(t)):n.indexOf("click")>-1&&f3(t.target,this._targets)&&(this._hideTimeout&&this.clearHideTimeout(),this.props.isOpen?this.hideWithDelay(t):this.showWithDelay(t))}onMouseOverTooltipContent(){this.props.trigger.indexOf("hover")>-1&&!this.props.autohide&&(this._hideTimeout&&this.clearHideTimeout(),this.state.isOpen&&!this.props.isOpen&&this.toggle())}onMouseLeaveTooltipContent(t){this.props.trigger.indexOf("hover")>-1&&!this.props.autohide&&(this._showTimeout&&this.clearShowTimeout(),t.persist(),this._hideTimeout=setTimeout(this.hide.bind(this,t),this.getDelay("hide")))}onEscKeyDown(t){t.key==="Escape"&&this.hide(t)}getRef(t){const{innerRef:n}=this.props;n&&(typeof n=="function"?n(t):typeof n=="object"&&(n.current=t)),this._popover=t}getDelay(t){const{delay:n}=this.props;return typeof n=="object"?isNaN(n[t])?g6[t]:n[t]:n}getCurrentTarget(t){if(!t)return null;const n=this._targets.indexOf(t);return n>=0?this._targets[n]:this.getCurrentTarget(t.parentElement)}show(t){if(!this.props.isOpen){if(this.clearShowTimeout(),this.currentTargetElement=t?t.currentTarget||this.getCurrentTarget(t.target):null,t&&t.composedPath&&typeof t.composedPath=="function"){const n=t.composedPath();this.currentTargetElement=n&&n[0]||this.currentTargetElement}this.toggle(t)}}showWithDelay(t){this._hideTimeout&&this.clearHideTimeout(),this._showTimeout=setTimeout(this.show.bind(this,t),this.getDelay("show"))}hide(t){this.props.isOpen&&(this.clearHideTimeout(),this.currentTargetElement=null,this.toggle(t))}hideWithDelay(t){this._showTimeout&&this.clearShowTimeout(),this._hideTimeout=setTimeout(this.hide.bind(this,t),this.getDelay("hide"))}clearShowTimeout(){clearTimeout(this._showTimeout),this._showTimeout=void 0}clearHideTimeout(){clearTimeout(this._hideTimeout),this._hideTimeout=void 0}addEventOnTargets(t,n,r){this._targets.forEach(i=>{i.addEventListener(t,n,r)})}removeEventOnTargets(t,n,r){this._targets.forEach(i=>{i.removeEventListener(t,n,r)})}addTargetEvents(){if(this.props.trigger){let t=this.props.trigger.split(" ");t.indexOf("manual")===-1&&((t.indexOf("click")>-1||t.indexOf("legacy")>-1)&&document.addEventListener("click",this.handleDocumentClick,!0),this._targets&&this._targets.length&&(t.indexOf("hover")>-1&&(this.addEventOnTargets("mouseover",this.showWithDelay,!0),this.addEventOnTargets("mouseout",this.hideWithDelay,!0)),t.indexOf("focus")>-1&&(this.addEventOnTargets("focusin",this.show,!0),this.addEventOnTargets("focusout",this.hide,!0)),this.addEventOnTargets("keydown",this.onEscKeyDown,!0)))}}removeTargetEvents(){this._targets&&(this.removeEventOnTargets("mouseover",this.showWithDelay,!0),this.removeEventOnTargets("mouseout",this.hideWithDelay,!0),this.removeEventOnTargets("keydown",this.onEscKeyDown,!0),this.removeEventOnTargets("focusin",this.show,!0),this.removeEventOnTargets("focusout",this.hide,!0)),document.removeEventListener("click",this.handleDocumentClick,!0)}updateTarget(){const t=jc(this.props.target,!0);t!==this._targets&&(this.removeTargetEvents(),this._targets=t?Array.from(t):[],this.currentTargetElement=this.currentTargetElement||this._targets[0],this.addTargetEvents())}toggle(t){return this.props.disabled||!this._isMounted?t&&t.preventDefault():this.props.toggle(t)}render(){this.props.isOpen&&this.updateTarget();const t=this.currentTargetElement||this._targets[0];if(!t)return null;const{className:n,cssModule:r,innerClassName:i,isOpen:o,hideArrow:s,boundariesElement:a,placement:l,placementPrefix:c,arrowClassName:f,popperClassName:h,container:p,modifiers:m,strategy:v,offset:y,fade:x,flip:_,children:w}=this.props,S=Cr(this.props,Object.keys(m_)),T=Fe(h,r),P=Fe(i,r);return U.createElement(Zre,{className:n,target:t,isOpen:o,hideArrow:s,boundariesElement:a,placement:l,placementPrefix:c,arrowClassName:f,popperClassName:T,container:p,modifiers:m,strategy:v,offset:y,cssModule:r,fade:x,flip:_},({update:k})=>U.createElement("div",$e({},S,{ref:this.getRef,className:P,role:"tooltip",onMouseOver:this.onMouseOverTooltipContent,onMouseLeave:this.onMouseLeaveTooltipContent,onKeyDown:this.onEscKeyDown}),typeof w=="function"?w({update:k}):w))}}KC.propTypes=m_;KC.defaultProps=Kre;var y6=KC;const Xre={placement:"right",placementPrefix:"bs-popover",trigger:"click",offset:[0,8]};function Kd(e){const t=me("popover","show",e.popperClassName),n=me("popover-inner",e.innerClassName);return U.createElement(y6,$e({},e,{arrowClassName:"popover-arrow",popperClassName:t,innerClassName:n}))}Kd.propTypes=m_;Kd.defaultProps=Xre;const Qre=["defaultOpen"];class Jre extends V.Component{constructor(t){super(t),this.state={isOpen:t.defaultOpen||!1},this.toggle=this.toggle.bind(this)}toggle(){this.setState(t=>({isOpen:!t.isOpen}))}render(){return U.createElement(Kd,$e({isOpen:this.state.isOpen,toggle:this.toggle},Cr(this.props,Qre)))}}Jre.propTypes=We({defaultOpen:C.bool},Kd.propTypes);C.string,C.object;C.string,C.object;const eie=["children","className","barClassName","cssModule","value","min","max","animated","striped","color","bar","multi","tag","style","barStyle","barAriaValueText","barAriaLabelledBy"],tie={animated:C.bool,bar:C.bool,barAriaLabelledBy:C.string,barAriaValueText:C.string,barClassName:C.string,barStyle:C.object,children:C.node,className:C.string,cssModule:C.object,color:C.string,max:C.oneOfType([C.string,C.number]),min:C.oneOfType([C.string,C.number]),multi:C.bool,striped:C.bool,style:C.object,tag:Pe,value:C.oneOfType([C.string,C.number])},nie={tag:"div",value:0,min:0,max:100,style:{},barStyle:{}};function XC(e){const{children:t,className:n,barClassName:r,cssModule:i,value:o,min:s,max:a,animated:l,striped:c,color:f,bar:h,multi:p,tag:m,style:v,barStyle:y,barAriaValueText:x,barAriaLabelledBy:_}=e,w=qe(e,eie),S=l3(o)/l3(a)*100,T=Fe(me(n,"progress"),i),k={className:Fe(me("progress-bar",h&&n||r,l?"progress-bar-animated":null,f?`bg-${f}`:null,c||l?"progress-bar-striped":null),i),style:We(We(We({},h?v:{}),y),{},{width:`${S}%`}),role:"progressbar","aria-valuenow":o,"aria-valuemin":s,"aria-valuemax":a,"aria-valuetext":x,"aria-labelledby":_,children:t};return h?U.createElement(m,$e({},w,k)):U.createElement(m,$e({},w,{style:v,className:T}),p?t:U.createElement("div",k))}XC.propTypes=tie;XC.defaultProps=nie;const rie={children:C.node.isRequired,node:C.any};class _6 extends U.Component{componentWillUnmount(){this.defaultNode&&document.body.removeChild(this.defaultNode),this.defaultNode=null}render(){return AC?(!this.props.node&&!this.defaultNode&&(this.defaultNode=document.createElement("div"),document.body.appendChild(this.defaultNode)),$a.createPortal(this.props.children,this.props.node||this.defaultNode)):null}}_6.propTypes=rie;var b6=_6;function sv(){}const d3=C.shape(Zt.propTypes),w6={autoFocus:C.bool,backdrop:C.oneOfType([C.bool,C.oneOf(["static"])]),backdropClassName:C.string,backdropTransition:d3,centered:C.bool,children:C.node,contentClassName:C.string,className:C.string,container:Us,cssModule:C.object,external:C.node,fade:C.bool,fullscreen:C.oneOfType([C.bool,C.oneOf(["sm","md","lg","xl"])]),innerRef:C.oneOfType([C.object,C.string,C.func]),isOpen:C.bool,keyboard:C.bool,labelledBy:C.string,modalClassName:C.string,modalTransition:d3,onClosed:C.func,onEnter:C.func,onExit:C.func,onOpened:C.func,returnFocusAfterClose:C.bool,role:C.string,scrollable:C.bool,size:C.string,toggle:C.func,trapFocus:C.bool,unmountOnClose:C.bool,wrapClassName:C.string,zIndex:C.oneOfType([C.number,C.string])},iie=Object.keys(w6),oie={isOpen:!1,autoFocus:!0,centered:!1,scrollable:!1,role:"dialog",backdrop:!0,keyboard:!0,zIndex:1050,fade:!0,onOpened:sv,onClosed:sv,modalTransition:{timeout:el.Modal},backdropTransition:{mountOnEnter:!0,timeout:el.Fade},unmountOnClose:!0,returnFocusAfterClose:!0,container:"body",trapFocus:!1};class zn extends U.Component{constructor(t){super(t),this._element=null,this._originalBodyPadding=null,this.getFocusableChildren=this.getFocusableChildren.bind(this),this.handleBackdropClick=this.handleBackdropClick.bind(this),this.handleBackdropMouseDown=this.handleBackdropMouseDown.bind(this),this.handleEscape=this.handleEscape.bind(this),this.handleStaticBackdropAnimation=this.handleStaticBackdropAnimation.bind(this),this.handleTab=this.handleTab.bind(this),this.onOpened=this.onOpened.bind(this),this.onClosed=this.onClosed.bind(this),this.manageFocusAfterClose=this.manageFocusAfterClose.bind(this),this.clearBackdropAnimationTimeout=this.clearBackdropAnimationTimeout.bind(this),this.trapFocus=this.trapFocus.bind(this),this.state={isOpen:!1,showStaticBackdropAnimation:!1}}componentDidMount(){const{isOpen:t,autoFocus:n,onEnter:r}=this.props;t&&(this.init(),this.setState({isOpen:!0}),n&&this.setFocus()),r&&r(),document.addEventListener("focus",this.trapFocus,!0),this._isMounted=!0}componentDidUpdate(t,n){if(this.props.isOpen&&!t.isOpen){this.init(),this.setState({isOpen:!0});return}this.props.autoFocus&&this.state.isOpen&&!n.isOpen&&this.setFocus(),this._element&&t.zIndex!==this.props.zIndex&&(this._element.style.zIndex=this.props.zIndex)}componentWillUnmount(){this.clearBackdropAnimationTimeout(),this.props.onExit&&this.props.onExit(),this._element&&(this.destroy(),(this.props.isOpen||this.state.isOpen)&&this.close()),document.removeEventListener("focus",this.trapFocus,!0),this._isMounted=!1}handleBackdropClick(t){if(t.target===this._mouseDownElement){t.stopPropagation();const n=this._dialog?this._dialog.parentNode:null;if(n&&t.target===n&&this.props.backdrop==="static"&&this.handleStaticBackdropAnimation(),!this.props.isOpen||this.props.backdrop!==!0)return;n&&t.target===n&&this.props.toggle&&this.props.toggle(t)}}handleTab(t){if(t.which!==9||this.modalIndex{this.setState({showStaticBackdropAnimation:!1})},100)}onOpened(t,n){this.props.onOpened(),(this.props.modalTransition.onEntered||sv)(t,n)}onClosed(t){const{unmountOnClose:n}=this.props;this.props.onClosed(),(this.props.modalTransition.onExited||sv)(t),n&&this.destroy(),this.close(),this._isMounted&&this.setState({isOpen:!1})}setFocus(){this._dialog&&this._dialog.parentNode&&typeof this._dialog.parentNode.focus=="function"&&this._dialog.parentNode.focus()}getFocusableChildren(){return this._element.querySelectorAll(s6.join(", "))}getFocusedChild(){let t;const n=this.getFocusableChildren();try{t=document.activeElement}catch{t=n[0]}return t}trapFocus(t){if(!this.props.trapFocus||!this._element||this._dialog&&this._dialog.parentNode===t.target||this.modalIndex0&&(t.preventDefault(),t.stopPropagation(),n[0].focus())}init(){try{this._triggeringElement=document.activeElement}catch{this._triggeringElement=null}this._element||(this._element=document.createElement("div"),this._element.setAttribute("tabindex","-1"),this._element.style.position="relative",this._element.style.zIndex=this.props.zIndex,this._mountContainer=jc(this.props.container),this._mountContainer.appendChild(this._element)),this._originalBodyPadding=e6(),zn.openCount<1&&(zn.originalBodyOverflow=window.getComputedStyle(document.body).overflow),t6(),zn.openCount===0&&(document.body.className=me(document.body.className,Fe("modal-open",this.props.cssModule)),document.body.style.overflow="hidden"),this.modalIndex=zn.openCount,zn.openCount+=1}destroy(){this._element&&(this._mountContainer.removeChild(this._element),this._element=null),this.manageFocusAfterClose()}manageFocusAfterClose(){if(this._triggeringElement){const{returnFocusAfterClose:t}=this.props;this._triggeringElement.focus&&t&&this._triggeringElement.focus(),this._triggeringElement=null}}close(){if(zn.openCount<=1){const t=Fe("modal-open",this.props.cssModule),n=new RegExp(`(^| )${t}( |$)`);document.body.className=document.body.className.replace(n," ").trim(),document.body.style.overflow=zn.originalBodyOverflow}this.manageFocusAfterClose(),zn.openCount=Math.max(0,zn.openCount-1),LC(this._originalBodyPadding)}clearBackdropAnimationTimeout(){this._backdropAnimationTimeout&&(clearTimeout(this._backdropAnimationTimeout),this._backdropAnimationTimeout=void 0)}renderModalDialog(){const t=Cr(this.props,iie),n="modal-dialog";return U.createElement("div",$e({},t,{className:Fe(me(n,this.props.className,{[`modal-${this.props.size}`]:this.props.size,[`${n}-centered`]:this.props.centered,[`${n}-scrollable`]:this.props.scrollable,"modal-fullscreen":this.props.fullscreen===!0,[`modal-fullscreen-${this.props.fullscreen}-down`]:typeof this.props.fullscreen=="string"}),this.props.cssModule),role:"document",ref:r=>{this._dialog=r}}),U.createElement("div",{className:Fe(me("modal-content",this.props.contentClassName),this.props.cssModule)},this.props.children))}render(){const{unmountOnClose:t}=this.props;if(this._element&&(this.state.isOpen||!t)){const n=!!this._element&&!this.state.isOpen&&!t;this._element.style.display=n?"none":"block";const{wrapClassName:r,modalClassName:i,backdropClassName:o,cssModule:s,isOpen:a,backdrop:l,role:c,labelledBy:f,external:h,innerRef:p}=this.props,m={onClick:this.handleBackdropClick,onMouseDown:this.handleBackdropMouseDown,onKeyUp:this.handleEscape,onKeyDown:this.handleTab,style:{display:"block"},"aria-labelledby":f,role:c,tabIndex:"-1"},v=this.props.fade,y=We(We(We({},Zt.defaultProps),this.props.modalTransition),{},{baseClass:v?this.props.modalTransition.baseClass:"",timeout:v?this.props.modalTransition.timeout:0}),x=We(We(We({},Zt.defaultProps),this.props.backdropTransition),{},{baseClass:v?this.props.backdropTransition.baseClass:"",timeout:v?this.props.backdropTransition.timeout:0}),_=l&&(v?U.createElement(Zt,$e({},x,{in:a&&!!l,cssModule:s,className:Fe(me("modal-backdrop",o),s)})):U.createElement("div",{className:Fe(me("modal-backdrop","show",o),s)}));return U.createElement(b6,{node:this._element},U.createElement("div",{className:Fe(r)},U.createElement(Zt,$e({},m,y,{in:a,onEntered:this.onOpened,onExited:this.onClosed,cssModule:s,className:Fe(me("modal",i,this.state.showStaticBackdropAnimation&&"modal-static"),s),innerRef:p}),h,this.renderModalDialog()),_))}return null}}zn.propTypes=w6;zn.defaultProps=oie;zn.openCount=0;zn.originalBodyOverflow=null;var Vo=zn;const sie=["className","cssModule","children","toggle","tag","wrapTag","closeAriaLabel","close"],aie={children:C.node,className:C.string,close:C.object,closeAriaLabel:C.string,cssModule:C.object,tag:Pe,toggle:C.func,wrapTag:Pe},lie={tag:"h5",wrapTag:"div",closeAriaLabel:"Close"};function io(e){let t;const{className:n,cssModule:r,children:i,toggle:o,tag:s,wrapTag:a,closeAriaLabel:l,close:c}=e,f=qe(e,sie),h=Fe(me(n,"modal-header"),r);return!c&&o&&(t=U.createElement("button",{type:"button",onClick:o,className:Fe("btn-close",r),"aria-label":l})),U.createElement(a,$e({},f,{className:h}),U.createElement(s,{className:Fe("modal-title",r)},i),c||t)}io.propTypes=aie;io.defaultProps=lie;const cie=["className","cssModule","tag"],uie={className:C.string,cssModule:C.object,tag:Pe},fie={tag:"div"};function Mi(e){const{className:t,cssModule:n,tag:r}=e,i=qe(e,cie),o=Fe(me(t,"modal-body"),n);return U.createElement(r,$e({},i,{className:o}))}Mi.propTypes=uie;Mi.defaultProps=fie;const die=["className","cssModule","tag"],hie={className:C.string,cssModule:C.object,tag:Pe},pie={tag:"div"};function ta(e){const{className:t,cssModule:n,tag:r}=e,i=qe(e,die),o=Fe(me(t,"modal-footer"),n);return U.createElement(r,$e({},i,{className:o}))}ta.propTypes=hie;ta.defaultProps=pie;const mie={placement:"top",autohide:!0,placementPrefix:"bs-tooltip",trigger:"hover focus"};function Xd(e){const t=me("tooltip","show",e.popperClassName),n=me("tooltip-inner",e.innerClassName);return U.createElement(y6,$e({},e,{arrowClassName:"tooltip-arrow",popperClassName:t,innerClassName:n}))}Xd.propTypes=m_;Xd.defaultProps=mie;C.bool,C.bool,C.string,C.object,C.bool,C.bool,C.oneOfType([C.func,C.string,C.object]),C.oneOfType([C.bool,C.string]),C.string,C.bool;const gie=["className","cssModule","tag","flush","horizontal","numbered"],vie={className:C.string,cssModule:C.object,flush:C.bool,horizontal:C.oneOfType([C.bool,C.string]),numbered:C.bool,tag:Pe},yie={tag:"ul",horizontal:!1,numbered:!1},_ie=e=>e===!1?!1:e===!0||e==="xs"?"list-group-horizontal":`list-group-horizontal-${e}`;function QC(e){const{className:t,cssModule:n,tag:r,flush:i,horizontal:o,numbered:s}=e,a=qe(e,gie),l=Fe(me(t,"list-group",i?"list-group-flush":_ie(o),{"list-group-numbered":s}),n);return U.createElement(r,$e({},a,{className:l}))}QC.propTypes=vie;QC.defaultProps=yie;const bie=["className","cssModule","tag","innerRef"],wie={children:C.node,tag:Pe,innerRef:C.oneOfType([C.object,C.func,C.string]),className:C.string,cssModule:C.object},xie={tag:"form"};class x6 extends V.Component{constructor(t){super(t),this.getRef=this.getRef.bind(this),this.submit=this.submit.bind(this)}getRef(t){this.props.innerRef&&this.props.innerRef(t),this.ref=t}submit(){this.ref&&this.ref.submit()}render(){const t=this.props,{className:n,cssModule:r,tag:i,innerRef:o}=t,s=qe(t,bie),a=Fe(n,r);return U.createElement(i,$e({},s,{ref:o,className:a}))}}x6.propTypes=wie;x6.defaultProps=xie;C.node,C.string,C.object,C.bool,C.bool;const Sie=["className","cssModule","row","disabled","check","inline","floating","tag","switch"],Cie={children:C.node,row:C.bool,check:C.bool,switch:C.bool,inline:C.bool,floating:C.bool,disabled:C.bool,tag:Pe,className:C.string,cssModule:C.object},Eie={tag:"div"};function vr(e){const{className:t,cssModule:n,row:r,disabled:i,check:o,inline:s,floating:a,tag:l,switch:c}=e,f=qe(e,Sie),h=o||c,p=Fe(me(t,r?"row":!1,h?"form-check":"mb-3",c?"form-switch":!1,h&&s?"form-check-inline":!1,h&&i?"disabled":!1,a&&"form-floating"),n);return l==="fieldset"&&(f.disabled=i),U.createElement(l,$e({},f,{className:p}))}vr.propTypes=Cie;vr.defaultProps=Eie;C.node,C.bool,C.string,C.string,C.object;const Tie=["className","cssModule","type","bsSize","valid","invalid","tag","addon","plaintext","innerRef"],Oie={children:C.node,type:C.string,size:C.oneOfType([C.number,C.string]),bsSize:C.string,valid:C.bool,invalid:C.bool,tag:Pe,innerRef:C.oneOfType([C.object,C.func,C.string]),plaintext:C.bool,addon:C.bool,className:C.string,cssModule:C.object},Pie={type:"text"};let JC=class extends U.Component{constructor(t){super(t),this.getRef=this.getRef.bind(this),this.focus=this.focus.bind(this)}getRef(t){this.props.innerRef&&this.props.innerRef(t),this.ref=t}focus(){this.ref&&this.ref.focus()}render(){let t=this.props,{className:n,cssModule:r,type:i,bsSize:o,valid:s,invalid:a,tag:l,addon:c,plaintext:f,innerRef:h}=t,p=qe(t,Tie);const m=["switch","radio","checkbox"].indexOf(i)>-1,v=/\D/g,y=i==="textarea",x=i==="select",_=i==="range";let w=l||(x||y?i:"input"),S="form-control";f?(S=`${S}-plaintext`,w=l||"input"):_?S="form-range":x?S="form-select":m&&(c?S=null:S="form-check-input"),p.size&&v.test(p.size)&&(Mw(`Please use the prop "bsSize" instead of the "size" to bootstrap's input sizing.`),o=p.size,delete p.size);const T=Fe(me(n,a&&"is-invalid",s&&"is-valid",o?x?`form-select-${o}`:`form-control-${o}`:!1,S),r);return(w==="input"||l&&typeof l=="function")&&(p.type=i==="switch"?"checkbox":i),p.children&&!(f||i==="select"||typeof w!="string"||w==="select")&&(Mw(`Input with a type of "${i}" cannot have children. Please use "value"/"defaultValue" instead.`),delete p.children),U.createElement(w,$e({},p,{ref:h,className:T,"aria-invalid":a}))}};JC.propTypes=Oie;JC.defaultProps=Pie;var Ic=JC;const kie=["className","cssModule","tag","type","size"],Mie={className:C.string,cssModule:C.object,size:C.string,tag:Pe,type:C.string},Rie={tag:"div"};function Qd(e){const{className:t,cssModule:n,tag:r,type:i,size:o}=e,s=qe(e,kie),a=Fe(me(t,"input-group",o?`input-group-${o}`:null),n);return e.type==="dropdown"?U.createElement(Jc,$e({},s,{className:a})):U.createElement(c6.Provider,{value:{insideInputGroup:!0}},U.createElement(r,$e({},s,{className:a})))}Qd.propTypes=Mie;Qd.defaultProps=Rie;C.string,C.object;const f1=C.oneOfType([C.number,C.string]),Rl=C.oneOfType([C.bool,C.string,C.number,C.shape({size:f1,order:f1,offset:f1})]);C.node,C.bool,C.bool,C.string,C.string,C.string,C.object,C.array;C.bool,C.bool,C.node,C.string,C.object,C.bool,C.bool,C.bool,C.bool,C.bool,C.bool,C.bool;function av(){}const h3=C.shape(Zt.propTypes),S6={autoFocus:C.bool,backdrop:C.bool,backdropClassName:C.string,backdropTransition:h3,children:C.node,className:C.string,container:Us,cssModule:C.object,direction:C.oneOf(["start","end","bottom","top"]),fade:C.bool,innerRef:C.oneOfType([C.object,C.string,C.func]),isOpen:C.bool,keyboard:C.bool,labelledBy:C.string,offcanvasTransition:h3,onClosed:C.func,onEnter:C.func,onExit:C.func,style:C.object,onOpened:C.func,returnFocusAfterClose:C.bool,role:C.string,scrollable:C.bool,toggle:C.func,trapFocus:C.bool,unmountOnClose:C.bool,zIndex:C.oneOfType([C.number,C.string])},Nie=Object.keys(S6),Lie={isOpen:!1,autoFocus:!0,direction:"start",scrollable:!1,role:"dialog",backdrop:!0,keyboard:!0,zIndex:1050,fade:!0,onOpened:av,onClosed:av,offcanvasTransition:{timeout:el.Offcanvas},backdropTransition:{mountOnEnter:!0,timeout:el.Fade},unmountOnClose:!0,returnFocusAfterClose:!0,container:"body",trapFocus:!1};class pi extends U.Component{constructor(t){super(t),this._element=null,this._originalBodyPadding=null,this.getFocusableChildren=this.getFocusableChildren.bind(this),this.handleBackdropClick=this.handleBackdropClick.bind(this),this.handleBackdropMouseDown=this.handleBackdropMouseDown.bind(this),this.handleEscape=this.handleEscape.bind(this),this.handleTab=this.handleTab.bind(this),this.onOpened=this.onOpened.bind(this),this.onClosed=this.onClosed.bind(this),this.manageFocusAfterClose=this.manageFocusAfterClose.bind(this),this.clearBackdropAnimationTimeout=this.clearBackdropAnimationTimeout.bind(this),this.trapFocus=this.trapFocus.bind(this),this.state={isOpen:!1}}componentDidMount(){const{isOpen:t,autoFocus:n,onEnter:r}=this.props;t&&(this.init(),this.setState({isOpen:!0}),n&&this.setFocus()),r&&r(),document.addEventListener("focus",this.trapFocus,!0),this._isMounted=!0}componentDidUpdate(t,n){if(this.props.isOpen&&!t.isOpen){this.init(),this.setState({isOpen:!0});return}this.props.autoFocus&&this.state.isOpen&&!n.isOpen&&this.setFocus(),this._element&&t.zIndex!==this.props.zIndex&&(this._element.style.zIndex=this.props.zIndex)}componentWillUnmount(){this.clearBackdropAnimationTimeout(),this.props.onExit&&this.props.onExit(),this._element&&(this.destroy(),(this.props.isOpen||this.state.isOpen)&&this.close()),document.removeEventListener("focus",this.trapFocus,!0),this._isMounted=!1}handleBackdropClick(t){if(t.target===this._mouseDownElement){t.stopPropagation();const n=this._backdrop;if(!this.props.isOpen||this.props.backdrop!==!0)return;n&&t.target===n&&this.props.toggle&&this.props.toggle(t)}}handleTab(t){if(t.which!==9||this.offcanvasIndex0&&(t.preventDefault(),t.stopPropagation(),n[0].focus())}init(){try{this._triggeringElement=document.activeElement}catch{this._triggeringElement=null}this._element||(this._element=document.createElement("div"),this._element.setAttribute("tabindex","-1"),this._element.style.position="relative",this._element.style.zIndex=this.props.zIndex,this._mountContainer=jc(this.props.container),this._mountContainer.appendChild(this._element)),this._originalBodyPadding=e6(),t6(),pi.openCount===0&&this.props.backdrop&&!this.props.scrollable&&(document.body.style.overflow="hidden"),this.offcanvasIndex=pi.openCount,pi.openCount+=1}destroy(){this._element&&(this._mountContainer.removeChild(this._element),this._element=null),this.manageFocusAfterClose()}manageFocusAfterClose(){if(this._triggeringElement){const{returnFocusAfterClose:t}=this.props;this._triggeringElement.focus&&t&&this._triggeringElement.focus(),this._triggeringElement=null}}close(){this.manageFocusAfterClose(),pi.openCount=Math.max(0,pi.openCount-1),document.body.style.overflow=null,LC(this._originalBodyPadding)}clearBackdropAnimationTimeout(){this._backdropAnimationTimeout&&(clearTimeout(this._backdropAnimationTimeout),this._backdropAnimationTimeout=void 0)}render(){const{direction:t,unmountOnClose:n}=this.props;if(this._element&&(this.state.isOpen||!n)){const r=!!this._element&&!this.state.isOpen&&!n;this._element.style.display=r?"none":"block";const{className:i,backdropClassName:o,cssModule:s,isOpen:a,backdrop:l,role:c,labelledBy:f,style:h}=this.props,p={onKeyUp:this.handleEscape,onKeyDown:this.handleTab,"aria-labelledby":f,role:c,tabIndex:"-1"},m=this.props.fade,v=We(We(We({},Zt.defaultProps),this.props.offcanvasTransition),{},{baseClass:m?this.props.offcanvasTransition.baseClass:"",timeout:m?this.props.offcanvasTransition.timeout:0}),y=We(We(We({},Zt.defaultProps),this.props.backdropTransition),{},{baseClass:m?this.props.backdropTransition.baseClass:"",timeout:m?this.props.backdropTransition.timeout:0}),x=l&&(m?U.createElement(Zt,$e({},y,{in:a&&!!l,innerRef:w=>{this._backdrop=w},cssModule:s,className:Fe(me("offcanvas-backdrop",o),s),onClick:this.handleBackdropClick,onMouseDown:this.handleBackdropMouseDown})):U.createElement("div",{className:Fe(me("offcanvas-backdrop","show",o),s),onClick:this.handleBackdropClick,onMouseDown:this.handleBackdropMouseDown})),_=Cr(this.props,Nie);return U.createElement(b6,{node:this._element},U.createElement(Zt,$e({},_,p,v,{in:a,onEntered:this.onOpened,onExited:this.onClosed,cssModule:s,className:Fe(me("offcanvas",i,`offcanvas-${t}`),s),innerRef:w=>{this._dialog=w},style:We(We({},h),{},{visibility:a?"visible":"hidden"})}),this.props.children),x)}return null}}pi.propTypes=S6;pi.defaultProps=Lie;pi.openCount=0;C.string,C.object;C.node,C.string,C.object,C.string,C.object,C.func;const Die=["className","listClassName","cssModule","size","tag","listTag","aria-label"],Aie={children:C.node,className:C.string,listClassName:C.string,cssModule:C.object,size:C.string,tag:Pe,listTag:Pe,"aria-label":C.string},jie={tag:"nav",listTag:"ul","aria-label":"pagination"};function g_(e){const{className:t,listClassName:n,cssModule:r,size:i,tag:o,listTag:s,"aria-label":a}=e,l=qe(e,Die),c=Fe(me(t),r),f=Fe(me(n,"pagination",{[`pagination-${i}`]:!!i}),r);return U.createElement(o,{className:c,"aria-label":a},U.createElement(s,$e({},l,{className:f})))}g_.propTypes=Aie;g_.defaultProps=jie;const Iie=["active","className","cssModule","disabled","tag"],Fie={active:C.bool,children:C.node,className:C.string,cssModule:C.object,disabled:C.bool,tag:Pe},$ie={tag:"li"};function Rs(e){const{active:t,className:n,cssModule:r,disabled:i,tag:o}=e,s=qe(e,Iie),a=Fe(me(n,"page-item",{active:t,disabled:i}),r);return U.createElement(o,$e({},s,{className:a}))}Rs.propTypes=Fie;Rs.defaultProps=$ie;const Bie=["className","cssModule","next","previous","first","last","tag"],zie={"aria-label":C.string,children:C.node,className:C.string,cssModule:C.object,next:C.bool,previous:C.bool,first:C.bool,last:C.bool,tag:Pe},Uie={tag:"a"};function Ns(e){let{className:t,cssModule:n,next:r,previous:i,first:o,last:s,tag:a}=e,l=qe(e,Bie);const c=Fe(me(t,"page-link"),n);let f;i?f="Previous":r?f="Next":o?f="First":s&&(f="Last");const h=e["aria-label"]||f;let p;i?p="‹":r?p="›":o?p="«":s&&(p="»");let{children:m}=e;return m&&Array.isArray(m)&&m.length===0&&(m=null),!l.href&&a==="a"&&(a="button"),(i||r||o||s)&&(m=[U.createElement("span",{"aria-hidden":"true",key:"caret"},m||p),U.createElement("span",{className:"visually-hidden",key:"ariaLabel"},h)]),U.createElement(a,$e({},l,{className:c,"aria-label":h}),m)}Ns.propTypes=zie;Ns.defaultProps=Uie;const Vie=U.createContext({}),C6={tag:Pe,activeTab:C.any,className:C.string,cssModule:C.object},Hie={tag:"div"};class E6 extends V.Component{static getDerivedStateFromProps(t,n){return n.activeTab!==t.activeTab?{activeTab:t.activeTab}:null}constructor(t){super(t),this.state={activeTab:this.props.activeTab}}render(){const{className:t,cssModule:n,tag:r}=this.props,i=Cr(this.props,Object.keys(C6)),o=Fe(me("tab-content",t),n);return U.createElement(Vie.Provider,{value:{activeTabId:this.state.activeTab}},U.createElement(r,$e({},i,{className:o})))}}E6.propTypes=C6;E6.defaultProps=Hie;C.string,C.object,C.any;const Wie=["className","closeClassName","closeAriaLabel","cssModule","tag","color","isOpen","toggle","children","transition","fade","innerRef"],Yie={children:C.node,className:C.string,closeClassName:C.string,closeAriaLabel:C.string,color:C.string,cssModule:C.object,fade:C.bool,innerRef:C.oneOfType([C.object,C.string,C.func]),isOpen:C.bool,tag:Pe,toggle:C.func,transition:C.shape(Zt.propTypes)},qie={color:"success",isOpen:!0,tag:"div",closeAriaLabel:"Close",fade:!0,transition:We(We({},Zt.defaultProps),{},{unmountOnExit:!0})};function eE(e){const{className:t,closeClassName:n,closeAriaLabel:r,cssModule:i,tag:o,color:s,isOpen:a,toggle:l,children:c,transition:f,fade:h,innerRef:p}=e,m=qe(e,Wie),v=Fe(me(t,"alert",`alert-${s}`,{"alert-dismissible":l}),i),y=Fe(me("btn-close",n),i),x=We(We(We({},Zt.defaultProps),f),{},{baseClass:h?f.baseClass:"",timeout:h?f.timeout:0});return U.createElement(Zt,$e({},m,x,{tag:o,className:v,in:a,role:"alert",innerRef:p}),l?U.createElement("button",{type:"button",className:y,"aria-label":r,onClick:l}):null,c)}eE.propTypes=Yie;eE.defaultProps=qie;C.node,C.string,C.object,C.bool,C.bool,C.shape(Zt.propTypes),C.oneOfType([C.object,C.string,C.func]);We(We({},Zt.defaultProps),{},{unmountOnExit:!0});C.string,C.object,C.oneOfType([C.object,C.string,C.func]);C.oneOfType([C.string,C.node]),C.func,C.string,C.object,C.node,C.string,C.oneOfType([C.string,C.number]),C.object,C.string;const Gie=["className","cssModule","tag","active","disabled","action","color"],Zie={action:C.bool,active:C.bool,className:C.string,cssModule:C.object,color:C.string,disabled:C.bool,tag:Pe},Kie={tag:"li"},Xie=e=>{e.preventDefault()};function tE(e){const{className:t,cssModule:n,tag:r,active:i,disabled:o,action:s,color:a}=e,l=qe(e,Gie),c=Fe(me(t,i?"active":!1,o?"disabled":!1,s?"list-group-item-action":!1,a?`list-group-item-${a}`:!1,"list-group-item"),n);return o&&(l.onClick=Xie),U.createElement(r,$e({},l,{className:c}))}tE.propTypes=Zie;tE.defaultProps=Kie;C.string,C.object;C.string,C.object;const Qie=["className","cssModule","tag","type"],Jie={className:C.string,cssModule:C.object,tag:Pe,type:C.string},eoe={tag:"ul"},nE=V.forwardRef((e,t)=>{const{className:n,cssModule:r,tag:i,type:o}=e,s=qe(e,Qie),a=Fe(me(n,o?`list-${o}`:!1),r);return U.createElement(i,$e({},s,{className:a,ref:t}))});nE.name="List";nE.propTypes=Jie;nE.defaultProps=eoe;const toe=["className","cssModule","tag"],noe={className:C.string,cssModule:C.object,tag:Pe},roe={tag:"li"},rE=V.forwardRef((e,t)=>{const{className:n,cssModule:r,tag:i}=e,o=qe(e,toe),s=Fe(me(n,"list-inline-item"),r);return U.createElement(i,$e({},o,{className:s,ref:t}))});rE.name="ListInlineItem";rE.propTypes=noe;rE.defaultProps=roe;const ioe=["defaultOpen"];class ooe extends V.Component{constructor(t){super(t),this.state={isOpen:t.defaultOpen||!1},this.toggle=this.toggle.bind(this)}toggle(){this.setState(t=>({isOpen:!t.isOpen}))}render(){return U.createElement(VC,$e({isOpen:this.state.isOpen,toggle:this.toggle},Cr(this.props,ioe)))}}ooe.propTypes=We({defaultOpen:C.bool},VC.propTypes);const soe=["toggleEvents","defaultOpen"],aoe={defaultOpen:C.bool,toggler:C.string.isRequired,toggleEvents:C.arrayOf(C.string)},loe={toggleEvents:hne};class T6 extends V.Component{constructor(t){super(t),this.togglers=null,this.removeEventListeners=null,this.toggle=this.toggle.bind(this),this.state={isOpen:t.defaultOpen||!1}}componentDidMount(){this.togglers=o6(this.props.toggler),this.togglers.length&&(this.removeEventListeners=pne(this.togglers,this.toggle,this.props.toggleEvents))}componentWillUnmount(){this.togglers.length&&this.removeEventListeners&&this.removeEventListeners()}toggle(t){this.setState(({isOpen:n})=>({isOpen:!n})),t.preventDefault()}render(){return U.createElement(u6,$e({isOpen:this.state.isOpen},Cr(this.props,soe)))}}T6.propTypes=aoe;T6.defaultProps=loe;const coe=["defaultOpen"];class Jd extends V.Component{constructor(t){super(t),this.state={isOpen:t.defaultOpen||!1},this.toggle=this.toggle.bind(this)}toggle(t){this.setState(n=>({isOpen:!n.isOpen}),()=>{this.props.onToggle&&this.props.onToggle(t,this.state.isOpen)})}render(){return U.createElement(Jc,$e({isOpen:this.state.isOpen,toggle:this.toggle},Cr(this.props,coe)))}}Jd.propTypes=We({defaultOpen:C.bool,onToggle:C.func},Jc.propTypes);const uoe=["defaultOpen"];class Er extends V.Component{constructor(t){super(t),this.state={isOpen:t.defaultOpen||!1},this.toggle=this.toggle.bind(this)}toggle(){this.setState(t=>({isOpen:!t.isOpen}))}render(){return U.createElement(Xd,$e({isOpen:this.state.isOpen,toggle:this.toggle},Cr(this.props,uoe)))}}Er.propTypes=We({defaultOpen:C.bool},Xd.propTypes);C.oneOf(["border","grow"]),C.oneOf(["sm"]),C.oneOf(["primary","secondary","success","danger","warning","info","light","dark"]),C.string,C.object,C.string;We(We({},jC.propTypes),{},{color:C.string,tag:Pe,animation:C.oneOf(["glow","wave"]),innerRef:C.oneOfType([C.object,C.func,C.string]),size:C.oneOf(["lg","sm","xs"])});C.string,C.string,C.bool,C.string,C.object;(()=>{if(typeof window!="object"||typeof window.CustomEvent=="function")return;const e=(t,n)=>{n=n||{bubbles:!1,cancelable:!1,detail:null};let r=document.createEvent("CustomEvent");return r.initCustomEvent(t,n.bubbles,n.cancelable,n.detail),r};window.CustomEvent=e})();(()=>{if(typeof Object.values=="function")return;Object.values=t=>Object.keys(t).map(n=>t[n])})();const foe="Left",doe="Right",hoe="Up",poe="Down",tc={delta:10,preventScrollOnSwipe:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0,swipeDuration:1/0,touchEventOptions:{passive:!0}},Nw={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},p3="mousemove",m3="mouseup",moe="touchend",goe="touchmove",voe="touchstart";function yoe(e,t,n,r){return e>t?n>0?doe:foe:r>0?poe:hoe}function g3(e,t){if(t===0)return e;const n=Math.PI/180*t,r=e[0]*Math.cos(n)+e[1]*Math.sin(n),i=e[1]*Math.cos(n)-e[0]*Math.sin(n);return[r,i]}function _oe(e,t){const n=f=>{const h="touches"in f;h&&f.touches.length>1||e((p,m)=>{m.trackMouse&&!h&&(document.addEventListener(p3,r),document.addEventListener(m3,s));const{clientX:v,clientY:y}=h?f.touches[0]:f,x=g3([v,y],m.rotationAngle);return m.onTouchStartOrOnMouseDown&&m.onTouchStartOrOnMouseDown({event:f}),Object.assign(Object.assign(Object.assign({},p),Nw),{initial:x.slice(),xy:x,start:f.timeStamp||0})})},r=f=>{e((h,p)=>{const m="touches"in f;if(m&&f.touches.length>1)return h;if(f.timeStamp-h.start>p.swipeDuration)return h.swiping?Object.assign(Object.assign({},h),{swiping:!1}):h;const{clientX:v,clientY:y}=m?f.touches[0]:f,[x,_]=g3([v,y],p.rotationAngle),w=x-h.xy[0],S=_-h.xy[1],T=Math.abs(w),P=Math.abs(S),k=(f.timeStamp||0)-h.start,N=Math.sqrt(T*T+P*P)/(k||1),D=[w/(k||1),S/(k||1)],z=yoe(T,P,w,S),A=typeof p.delta=="number"?p.delta:p.delta[z.toLowerCase()]||tc.delta;if(T{e((h,p)=>{let m;if(h.swiping&&h.eventData){if(f.timeStamp-h.start{document.removeEventListener(p3,r),document.removeEventListener(m3,s)},s=f=>{o(),i(f)},a=(f,h)=>{let p=()=>{};if(f&&f.addEventListener){const m=Object.assign(Object.assign({},tc.touchEventOptions),h.touchEventOptions),v=[[voe,n,m],[goe,r,Object.assign(Object.assign({},m),h.preventScrollOnSwipe?{passive:!1}:{})],[moe,i,m]];v.forEach(([y,x,_])=>f.addEventListener(y,x,_)),p=()=>v.forEach(([y,x])=>f.removeEventListener(y,x))}return p},c={ref:f=>{f!==null&&e((h,p)=>{if(h.el===f)return h;const m={};return h.el&&h.el!==f&&h.cleanUpTouch&&(h.cleanUpTouch(),m.cleanUpTouch=void 0),p.trackTouch&&f&&(m.cleanUpTouch=a(f,p)),Object.assign(Object.assign(Object.assign({},h),{el:f}),m)})}};return t.trackMouse&&(c.onMouseDown=n),[c,a]}function boe(e,t,n,r){return!t.trackTouch||!e.el?(e.cleanUpTouch&&e.cleanUpTouch(),Object.assign(Object.assign({},e),{cleanUpTouch:void 0})):e.cleanUpTouch?t.preventScrollOnSwipe!==n.preventScrollOnSwipe||t.touchEventOptions.passive!==n.touchEventOptions.passive?(e.cleanUpTouch(),Object.assign(Object.assign({},e),{cleanUpTouch:r(e.el,t)})):e:Object.assign(Object.assign({},e),{cleanUpTouch:r(e.el,t)})}function woe(e){const{trackMouse:t}=e,n=V.useRef(Object.assign({},Nw)),r=V.useRef(Object.assign({},tc)),i=V.useRef(Object.assign({},r.current));i.current=Object.assign({},r.current),r.current=Object.assign(Object.assign({},tc),e);let o;for(o in tc)r.current[o]===void 0&&(r.current[o]=tc[o]);const[s,a]=V.useMemo(()=>_oe(l=>n.current=l(n.current,r.current),{trackMouse:t}),[t]);return n.current=boe(n.current,r.current,i.current,a),s}var Op,xoe=new Uint8Array(16);function Soe(){if(!Op&&(Op=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!Op))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Op(xoe)}const Coe=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Eoe(e){return typeof e=="string"&&Coe.test(e)}var Fn=[];for(var d1=0;d1<256;++d1)Fn.push((d1+256).toString(16).substr(1));function Toe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=(Fn[e[t+0]]+Fn[e[t+1]]+Fn[e[t+2]]+Fn[e[t+3]]+"-"+Fn[e[t+4]]+Fn[e[t+5]]+"-"+Fn[e[t+6]]+Fn[e[t+7]]+"-"+Fn[e[t+8]]+Fn[e[t+9]]+"-"+Fn[e[t+10]]+Fn[e[t+11]]+Fn[e[t+12]]+Fn[e[t+13]]+Fn[e[t+14]]+Fn[e[t+15]]).toLowerCase();if(!Eoe(n))throw TypeError("Stringified UUID is invalid");return n}function iE(e,t,n){e=e||{};var r=e.random||(e.rng||Soe)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return Toe(r)}const Ooe=2e3,Poe=(e,t)=>(n=!1,r=Ooe)=>{const[i,o]=V.useState(n),s=V.useRef(void 0);return[i,()=>{o(!n),s.current&&t(s.current),s.current=e(()=>o(n),r)}]},hn=(e=!1)=>{const[t,n]=V.useState(e);return[t,()=>n(!t),()=>n(!0),()=>n(!1)]},koe=(e,t)=>{const n=r=>i=>{i.event.composedPath().some(({classList:s})=>s==null?void 0:s.contains("visits-table"))||document.querySelector(".modal")||r()};return woe({delta:40,onSwipedLeft:n(t),onSwipedRight:n(e)})},Moe=(e,t)=>{const[n,r]=V.useState(t);return[n,o=>{const{location:s,history:a}=window,l=fl(s.search);l[e]=o,a.pushState(null,"",`${s.pathname}?${Vd(l)}`),r(o)}]},Roe=(e,t)=>{const n=V.useRef(!0);V.useEffect(()=>{!n.current&&e(),n.current=!1},t)},na=()=>{const e=Fo();return()=>e(-1)},Noe=()=>{const{search:e}=Pn();return fl(e)},v_=()=>{const{current:e}=V.useRef(`dom-${iE()}`);return e},dl=()=>V.useRef(null),cn=({title:e,children:t,bodyClassName:n,...r})=>g.jsxs(Sr,{...r,children:[e&&g.jsx(nl,{role:"heading",children:e}),g.jsx(tl,{className:n,children:t})]});const Loe=({isOpen:e,toggle:t,forceUpdate:n})=>{const[r,,i]=hn(),o=()=>{i(),n()};return g.jsxs(eE,{className:"app-update-banner",isOpen:e,toggle:t,tag:cn,color:"secondary",children:[g.jsx("h4",{className:"mb-4",children:"This app has just been updated!"}),g.jsxs("p",{className:"mb-0",children:["Restart it to enjoy the new features.",g.jsxs(ht,{role:"button",disabled:r,className:"ms-2",color:"secondary",size:"sm",onClick:o,children:[!r&&g.jsxs(g.Fragment,{children:["Restart now ",g.jsx(je,{icon:AQ,className:"ms-1"})]}),r&&g.jsx(g.Fragment,{children:"Restarting..."})]})]})]})},O6=({to:e="/",children:t="Home"})=>g.jsx("div",{className:"home",children:g.jsxs(cn,{className:"p-4",children:[g.jsx("h2",{children:"Oops! We could not find requested route."}),g.jsx("p",{children:"Use your browser's back button to navigate to the page you have previously come from, or just press this button."}),g.jsx("br",{}),g.jsx(Lt,{to:e,className:"btn btn-outline-primary btn-lg",children:t})]})}),Doe=async()=>{var t;(await((t=navigator.serviceWorker)==null?void 0:t.getRegistrations())??[]).forEach(({waiting:n})=>{n==null||n.addEventListener("statechange",r=>{var i;((i=r.target)==null?void 0:i.state)==="activated"&&window.location.reload()}),n==null||n.postMessage({type:"SKIP_WAITING"})})},oE="#4696e5",Aoe="rgba(70, 150, 229, 0.4)",P6="#f77f28",joe="rgba(247, 127, 40, 0.4)",Ioe="white",Foe="#161b22",k6=e=>{var t,n;return(n=(t=document.getElementsByTagName("html"))==null?void 0:t[0])==null?void 0:n.setAttribute("data-theme",e)},$oe=()=>{var e,t;return((t=(e=document.getElementsByTagName("html"))==null?void 0:e[0])==null?void 0:t.getAttribute("data-theme"))==="dark"};const Boe=(e,t,n,r,i,o,s,a)=>({fetchServers:l,servers:c,settings:f,appUpdated:h,resetAppUpdate:p})=>{const v=Pn().pathname==="/";return V.useEffect(()=>{var y;Object.keys(c).length===0&&l(),k6(((y=f.ui)==null?void 0:y.theme)??"light")},[]),g.jsxs("div",{className:"container-fluid app-container",children:[g.jsx(e,{}),g.jsxs("div",{className:"app",children:[g.jsx("div",{className:me("shlink-wrapper",{"d-flex d-md-block align-items-center":v}),children:g.jsxs(Zy,{children:[g.jsx(gt,{index:!0,element:g.jsx(t,{})}),g.jsx(gt,{path:"/settings/*",element:g.jsx(o,{})}),g.jsx(gt,{path:"/manage-servers",element:g.jsx(s,{})}),g.jsx(gt,{path:"/server/create",element:g.jsx(r,{})}),g.jsx(gt,{path:"/server/:serverId/edit",element:g.jsx(i,{})}),g.jsx(gt,{path:"/server/:serverId/*",element:g.jsx(n,{})}),g.jsx(gt,{path:"*",element:g.jsx(O6,{})})]})}),g.jsx("div",{className:"shlink-footer",children:g.jsx(a,{})})]}),g.jsx(Loe,{isOpen:h,toggle:p,forceUpdate:Doe})]})};function gi(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r3?t.i-4:t.i:Array.isArray(e)?1:sE(e)?2:aE(e)?3:0}function hc(e,t){return tu(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function zoe(e,t){return tu(e)===2?e.get(t):e[t]}function M6(e,t,n){var r=tu(e);r===2?e.set(t,n):r===3?(e.delete(t),e.add(n)):e[t]=n}function R6(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function sE(e){return qoe&&e instanceof Map}function aE(e){return Goe&&e instanceof Set}function Ta(e){return e.o||e.t}function lE(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=L6(e);delete t[At];for(var n=pc(t),r=0;r1&&(e.set=e.add=e.clear=e.delete=Uoe),Object.freeze(e),t&&rl(e,function(n,r){return cE(r,!0)},!0)),e}function Uoe(){gi(2)}function uE(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Qi(e){var t=jw[e];return t||gi(18,e),t}function Voe(e,t){jw[e]||(jw[e]=t)}function Lw(){return yd}function h1(e,t){t&&(Qi("Patches"),e.u=[],e.s=[],e.v=t)}function lv(e){Dw(e),e.p.forEach(Hoe),e.p=null}function Dw(e){e===yd&&(yd=e.l)}function v3(e){return yd={p:[],l:yd,h:e,m:!0,_:0}}function Hoe(e){var t=e[At];t.i===0||t.i===1?t.j():t.O=!0}function p1(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.g||Qi("ES5").S(t,e,r),r?(n[At].P&&(lv(t),gi(4)),Lo(e)&&(e=cv(t,e),t.l||uv(t,e)),t.u&&Qi("Patches").M(n[At].t,e,t.u,t.s)):e=cv(t,n,[]),lv(t),t.u&&t.v(t.u,t.s),e!==N6?e:void 0}function cv(e,t,n){if(uE(t))return t;var r=t[At];if(!r)return rl(t,function(o,s){return y3(e,r,t,o,s,n)},!0),t;if(r.A!==e)return t;if(!r.P)return uv(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=r.i===4||r.i===5?r.o=lE(r.k):r.o;rl(r.i===3?new Set(i):i,function(o,s){return y3(e,r,i,o,s,n)}),uv(e,i,!1),n&&e.u&&Qi("Patches").R(r,n,e.u,e.s)}return r.o}function y3(e,t,n,r,i,o){if(Vs(i)){var s=cv(e,i,o&&t&&t.i!==3&&!hc(t.D,r)?o.concat(r):void 0);if(M6(n,r,s),!Vs(s))return;e.m=!1}if(Lo(i)&&!uE(i)){if(!e.h.F&&e._<1)return;cv(e,i),t&&t.A.l||uv(e,i)}}function uv(e,t,n){n===void 0&&(n=!1),e.h.F&&e.m&&cE(t,n)}function m1(e,t){var n=e[At];return(n?Ta(n):e)[t]}function _3(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function as(e){e.P||(e.P=!0,e.l&&as(e.l))}function g1(e){e.o||(e.o=lE(e.t))}function Aw(e,t,n){var r=sE(t)?Qi("MapSet").N(t,n):aE(t)?Qi("MapSet").T(t,n):e.g?function(i,o){var s=Array.isArray(i),a={i:s?1:0,A:o?o.A:Lw(),P:!1,I:!1,D:{},l:o,t:i,k:null,o:null,j:null,C:!1},l=a,c=_d;s&&(l=[a],c=Xu);var f=Proxy.revocable(l,c),h=f.revoke,p=f.proxy;return a.k=p,a.j=h,p}(t,n):Qi("ES5").J(t,n);return(n?n.A:Lw()).p.push(r),r}function Woe(e){return Vs(e)||gi(22,e),function t(n){if(!Lo(n))return n;var r,i=n[At],o=tu(n);if(i){if(!i.P&&(i.i<4||!Qi("ES5").K(i)))return i.t;i.I=!0,r=b3(n,o),i.I=!1}else r=b3(n,o);return rl(r,function(s,a){i&&zoe(i.t,s)===a||M6(r,s,t(a))}),o===3?new Set(r):r}(e)}function b3(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return lE(e)}function Yoe(){function e(o,s){var a=i[o];return a?a.enumerable=s:i[o]=a={configurable:!0,enumerable:s,get:function(){var l=this[At];return _d.get(l,o)},set:function(l){var c=this[At];_d.set(c,o,l)}},a}function t(o){for(var s=o.length-1;s>=0;s--){var a=o[s][At];if(!a.P)switch(a.i){case 5:r(a)&&as(a);break;case 4:n(a)&&as(a)}}}function n(o){for(var s=o.t,a=o.k,l=pc(a),c=l.length-1;c>=0;c--){var f=l[c];if(f!==At){var h=s[f];if(h===void 0&&!hc(s,f))return!0;var p=a[f],m=p&&p[At];if(m?m.t!==h:!R6(p,h))return!0}}var v=!!s[At];return l.length!==pc(s).length+(v?0:1)}function r(o){var s=o.k;if(s.length!==o.t.length)return!0;var a=Object.getOwnPropertyDescriptor(s,s.length-1);if(a&&!a.get)return!0;for(var l=0;l1?_-1:0),S=1;S<_;S++)w[S-1]=arguments[S];return l.produce(y,function(T){var P;return(P=o).call.apply(P,[x,T].concat(w))})}}var c;if(typeof o!="function"&&gi(6),s!==void 0&&typeof s!="function"&&gi(7),Lo(i)){var f=v3(r),h=Aw(r,i,void 0),p=!0;try{c=o(h),p=!1}finally{p?lv(f):Dw(f)}return typeof Promise<"u"&&c instanceof Promise?c.then(function(y){return h1(f,s),p1(y,f)},function(y){throw lv(f),y}):(h1(f,s),p1(c,f))}if(!i||typeof i!="object"){if((c=o(i))===void 0&&(c=i),c===N6&&(c=void 0),r.F&&cE(c,!0),s){var m=[],v=[];Qi("Patches").M(i,c,m,v),s(m,v)}return c}gi(21,i)},this.produceWithPatches=function(i,o){if(typeof i=="function")return function(c){for(var f=arguments.length,h=Array(f>1?f-1:0),p=1;p=0;i--){var o=r[i];if(o.path.length===0&&o.op==="replace"){n=o.value;break}}i>-1&&(r=r.slice(i+1));var s=Qi("Patches").$;return Vs(n)?s(n,r):this.produce(n,function(a){return s(a,r)})},e}(),Ar=new Koe,D6=Ar.produce;Ar.produceWithPatches.bind(Ar);Ar.setAutoFreeze.bind(Ar);Ar.setUseProxies.bind(Ar);Ar.applyPatches.bind(Ar);Ar.createDraft.bind(Ar);Ar.finishDraft.bind(Ar);function Xoe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function E3(e){for(var t=1;t"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Zn(1));return n(A6)(e,t)}if(typeof e!="function")throw new Error(Zn(2));var i=e,o=t,s=[],a=s,l=!1;function c(){a===s&&(a=s.slice())}function f(){if(l)throw new Error(Zn(3));return o}function h(y){if(typeof y!="function")throw new Error(Zn(4));if(l)throw new Error(Zn(5));var x=!0;return c(),a.push(y),function(){if(x){if(l)throw new Error(Zn(6));x=!1,c();var w=a.indexOf(y);a.splice(w,1),s=null}}}function p(y){if(!Qoe(y))throw new Error(Zn(7));if(typeof y.type>"u")throw new Error(Zn(8));if(l)throw new Error(Zn(9));try{l=!0,o=i(o,y)}finally{l=!1}for(var x=s=a,_=0;_"u")throw new Error(Zn(12));if(typeof n(void 0,{type:fv.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Zn(13))})}function j6(e){for(var t=Object.keys(e),n={},r=0;r"u")throw c&&c.type,new Error(Zn(14));h[m]=x,f=f||x!==y}return f=f||o.length!==Object.keys(l).length,f?h:l}}function dv(){for(var e=arguments.length,t=new Array(e),n=0;n0&&o[o.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]0)for(var S=m.getState(),T=Array.from(n.values()),P=0,k=T;P!0,resetAppUpdate:()=>!1}}),{appUpdateAvailable:Use,resetAppUpdate:Vse}=Bse,Hse=zse,Wse=(e,t)=>{e.serviceFactory("App",Boe,"MainHeader","Home","MenuLayout","CreateServer","EditServer","Settings","ManageServers","ShlinkVersionsContainer"),e.decorator("App",t(["servers","settings","appUpdated"],["fetchServers","resetAppUpdate"])),e.serviceFactory("appUpdateAvailable",()=>Use),e.serviceFactory("resetAppUpdate",()=>Vse)};function pv(e){return t=>{const{resetSelectedServer:n}=t;return V.useEffect(()=>{n()},[]),g.jsx(e,{...t})}}const Nl=({children:e,to:t,className:n,...r})=>g.jsx(oj,{className:({isActive:i})=>me("aside-menu__item",n,{"aside-menu__item--selected":i}),to:t,...r,children:e}),Yse=e=>({selectedServer:t,showOnMobile:n=!1})=>{const r=Ms(t),i=r?t.id:"",{pathname:o}=Pn(),s=me("aside-menu",{"aside-menu--hidden":!n}),a=l=>`/server/${i}${l}`;return g.jsx("aside",{className:s,children:g.jsxs("nav",{className:"nav flex-column aside-menu__nav",children:[g.jsxs(Nl,{to:a("/overview"),children:[g.jsx(je,{fixedWidth:!0,icon:SQ}),g.jsx("span",{className:"aside-menu__item-text",children:"Overview"})]}),g.jsxs(Nl,{to:a("/list-short-urls/1"),className:me({"aside-menu__item--selected":o.match("/list-short-urls")!==null}),children:[g.jsx(je,{fixedWidth:!0,icon:Qj}),g.jsx("span",{className:"aside-menu__item-text",children:"List short URLs"})]}),g.jsxs(Nl,{to:a("/create-short-url"),children:[g.jsx(je,{fixedWidth:!0,icon:PQ,flip:"horizontal"}),g.jsx("span",{className:"aside-menu__item-text",children:"Create short URL"})]}),g.jsxs(Nl,{to:a("/manage-tags"),children:[g.jsx(je,{fixedWidth:!0,icon:eI}),g.jsx("span",{className:"aside-menu__item-text",children:"Manage tags"})]}),g.jsxs(Nl,{to:a("/manage-domains"),children:[g.jsx(je,{fixedWidth:!0,icon:nQ}),g.jsx("span",{className:"aside-menu__item-text",children:"Manage domains"})]}),g.jsxs(Nl,{to:a("/edit"),className:"aside-menu__item--push",children:[g.jsx(je,{fixedWidth:!0,icon:fQ}),g.jsx("span",{className:"aside-menu__item-text",children:"Edit this server"})]}),r&&g.jsx(e,{className:"aside-menu__item aside-menu__item--danger",textClassName:"aside-menu__item-text",server:t})]})})},qse=({location:e},{error:t})=>class extends V.Component{constructor(n){super(n),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(n){t(n)}render(){const{hasError:n}=this.state;if(n)return g.jsx("div",{className:"home",children:g.jsxs(cn,{className:"p-4",children:[g.jsx("h1",{children:"Oops! This is awkward :S"}),g.jsx("p",{children:"It seems that something went wrong. Try refreshing the page or just click this button."}),g.jsx("br",{}),g.jsx(ht,{outline:!0,color:"primary",onClick:()=>e.reload(),children:"Take me back"})]})});const{children:r}=this.props;return r}},Ci=({href:e,children:t,rel:n,...r})=>g.jsx("a",{target:"_blank",rel:`noopener noreferrer${n?` ${n}`:""}`,href:e,...r,children:t??e});const Gse=({id:e,name:t})=>g.jsxs(tE,{tag:Lt,to:`/server/${e}`,className:"servers-list__server-item",children:[t,g.jsx(je,{icon:LQ,className:"servers-list__server-item-icon"})]}),G6=({servers:e,children:t,embedded:n=!1})=>g.jsxs(g.Fragment,{children:[t&&g.jsx("h5",{className:"mb-md-3",children:t}),e.length>0&&g.jsx(QC,{className:me("servers-list__list-group",{"servers-list__list-group--embedded":n}),children:e.map(({id:r,name:i})=>g.jsx(Gse,{id:r,name:i},r))})]}),Z6=({color:e=oE,className:t})=>g.jsx("svg",{className:t,viewBox:"0 0 512 512",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:g.jsxs("g",{fill:e,children:[g.jsx("path",{d:" M 23.71 85.08 C 17.22 49.81 49.44 14.86 85.08 18.12 C 118.83 19.21 145.72 53.33 139.45 86.37 C 155.64 102.30 171.32 118.83 187.87 134.36 C 198.32 111.73 208.84 89.12 219.57 66.62 C 226.05 53.84 243.47 48.74 255.73 56.27 C 263.76 62.10 270.34 69.69 277.25 76.75 C 286.28 86.61 285.72 102.89 276.31 112.31 C 223.38 165.37 170.38 218.37 117.35 271.34 C 107.72 280.99 91.01 281.25 81.11 271.86 C 74.39 264.94 66.82 258.69 61.24 250.77 C 53.72 238.52 58.85 221.07 71.64 214.62 C 94.11 203.87 116.72 193.38 139.33 182.91 C 123.81 166.36 107.30 150.68 91.37 134.49 C 60.20 140.28 27.37 116.78 23.71 85.08 Z"}),g.jsx("path",{d:" M 205.21 201.23 C 225.32 181.36 260.88 181.11 281.14 200.86 C 299.25 218.75 317.37 236.65 335.10 254.93 C 356.73 278.01 352.01 318.70 326.03 336.56 C 320.07 330.47 313.73 324.65 308.12 318.28 C 323.86 309.39 328.76 286.18 316.63 272.39 C 301.73 256.95 286.30 242.03 271.24 226.75 C 264.49 219.65 256.80 212.00 246.37 211.52 C 224.65 208.64 205.52 233.36 214.49 253.58 C 221.09 266.81 234.22 275.12 243.62 286.24 C 240.43 295.96 238.09 306.13 238.29 316.46 C 225.55 304.29 213.16 291.73 200.89 279.09 C 180.97 257.57 183.10 220.45 205.21 201.23 Z"}),g.jsx("path",{d:" M 273.90 352.07 C 252.28 328.99 256.98 288.31 282.96 270.46 C 288.93 276.54 295.26 282.36 300.88 288.72 C 285.14 297.62 280.23 320.82 292.38 334.61 C 307.27 350.05 322.70 364.96 337.75 380.25 C 344.51 387.35 352.20 395.00 362.64 395.48 C 384.35 398.37 403.49 373.64 394.51 353.42 C 387.92 340.18 374.78 331.88 365.38 320.76 C 368.56 311.04 370.91 300.86 370.71 290.54 C 383.45 302.70 395.84 315.27 408.11 327.91 C 428.03 349.43 425.90 386.55 403.78 405.77 C 383.68 425.64 348.13 425.89 327.86 406.14 C 309.75 388.25 291.60 370.37 273.90 352.07 Z"}),g.jsx("path",{d:" M 422.11 403.83 C 431.96 394.07 441.60 384.06 451.66 374.51 C 460.90 383.74 471.89 392.70 474.89 406.11 C 480.16 429.97 484.08 454.13 488.76 478.12 C 490.00 483.41 484.47 488.29 479.35 486.63 C 454.66 481.52 429.55 478.12 405.14 471.84 C 393.17 467.97 385.20 457.75 376.55 449.27 C 386.39 439.49 396.13 429.60 406.06 419.91 C 416.37 433.45 435.74 414.00 422.11 403.83 Z"})]})});const Zse=({servers:e})=>{const t=Fo(),n=Kc(e),r=!Wn(n);return V.useEffect(()=>{const i=n.find(({autoConnect:o})=>o);i&&t(`/server/${i.id}`)},[]),g.jsx("div",{className:"home",children:g.jsx(Sr,{className:"home__main-card",children:g.jsxs(Qn,{className:"g-0",children:[g.jsx("div",{className:"col-md-5 d-none d-md-block",children:g.jsx("div",{className:"home__logo-wrapper",children:g.jsx("div",{className:"home__logo",children:g.jsx(Z6,{})})})}),g.jsxs("div",{className:"col-md-7 home__servers-container",children:[g.jsx("div",{className:"home__title-wrapper",children:g.jsx("h1",{className:"home__title",children:"Welcome!"})}),g.jsx(G6,{embedded:!0,servers:n,children:!r&&g.jsxs("div",{className:"p-4 text-center",children:[g.jsx("p",{className:"mb-5",children:"This application will help you manage your Shlink servers."}),g.jsx("p",{children:g.jsxs(Lt,{to:"/server/create",className:"btn btn-outline-primary btn-lg me-2",children:[g.jsx(je,{icon:dC})," ",g.jsx("span",{className:"ms-1",children:"Add a server"})]})}),g.jsx("p",{className:"mb-0 mt-5",children:g.jsx(Ci,{href:"https://shlink.io/documentation",children:g.jsxs("small",{children:[g.jsx("span",{className:"me-1",children:"Learn more about Shlink"})," ",g.jsx(je,{icon:pQ})]})})})]})})]})]})})})};const Kse=e=>()=>{const[t,n,,r]=hn(),i=Pn(),{pathname:o}=i;V.useEffect(r,[i]);const s="/settings",a=me("main-header__toggle-icon",{"main-header__toggle-icon--opened":t});return g.jsxs(IC,{color:"primary",dark:!0,fixed:"top",className:"main-header",expand:"md",children:[g.jsxs(FC,{tag:Lt,to:"/",children:[g.jsx(Z6,{className:"main-header__brand-logo",color:"white"})," Shlink"]}),g.jsx($C,{onClick:n,children:g.jsx(je,{icon:RQ,className:a})}),g.jsx(u6,{navbar:!0,isOpen:t,children:g.jsxs(c_,{navbar:!0,className:"ms-auto",children:[g.jsx(BC,{children:g.jsxs(l6,{tag:Lt,to:s,active:o.startsWith(s),children:[g.jsx(je,{icon:IQ}),"  Settings"]})}),g.jsx(e,{})]})})]})};const nu=({children:e})=>g.jsx("div",{className:"no-menu-wrapper container-xl",children:e}),Xse=e=>({error:"border-danger",default:""})[e],Qse=e=>({error:"text-danger",default:"text-muted"})[e],Co=({className:e,children:t,loading:n=!1,type:r="default",fullWidth:i=!1})=>{const o=me({"col-md-12":i,"col-md-10 offset-md-1":!i});return g.jsx(Qn,{className:me("g-0",e),children:g.jsx("div",{className:o,children:g.jsx(Sr,{className:Xse(r),body:!0,children:g.jsxs("h3",{className:me("text-center mb-0",Qse(r)),children:[n&&g.jsx(je,{icon:Xj,spin:!0}),n&&g.jsx("span",{className:"ms-2",children:t??"Loading..."}),!n&&t]})})})})};function K6(e,t){return n=>{const r=Xs(),{selectServer:i,selectedServer:o}=n;return V.useEffect(()=>{r.serverId&&i(r.serverId)},[r.serverId]),o?AZ(o)?g.jsx(t,{}):g.jsx(e,{...n}):g.jsx(nu,{children:g.jsx(Co,{loading:!0})})}}const rr=(e,t)=>wse(e,t,{serializeError:GS}),Jse=(e,t)=>{const n=D3(e),r=D3(t),i=n.pop(),o=r.pop(),s=I3(n,r);return s!==0?s:i&&o?I3(i.split("."),o.split(".")):i||o?i?-1:1:0},$w=(e,t,n)=>{rae(n);const r=Jse(e,t);return X6[n].includes(r)},eae=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,D3=e=>{if(typeof e!="string")throw new TypeError("Invalid argument expected string");const t=e.match(eae);if(!t)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return t.shift(),t},A3=e=>e==="*"||e==="x"||e==="X",j3=e=>{const t=parseInt(e,10);return isNaN(t)?e:t},tae=(e,t)=>typeof e!=typeof t?[String(e),String(t)]:[e,t],nae=(e,t)=>{if(A3(e)||A3(t))return 0;const[n,r]=tae(j3(e),j3(t));return n>r?1:n{for(let n=0;n":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1]},F3=Object.keys(X6),rae=e=>{if(typeof e!="string")throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);if(F3.indexOf(e)===-1)throw new Error(`Invalid operator, expected one of ${F3.join("|")}`)},mE=(e,t,n=1)=>QS(n,e+1).map(t),vi=e=>!$o(e)&&!Wn(e),rh=e=>Dt(t=>t.preventDefault(),e),b1=e=>Wn(e)?null:e,ga=e=>t=>e===t,Q6=e=>e?"true":"false",w1=e=>e===void 0?void 0:Q6(e),iae=(e,{maxVersion:t,minVersion:n})=>{if(!vi(e))return!1;const r=!n||$w(e,n,">=");return(!t||$w(e,t,"<="))&&r},J6=Oj(GS,e=>{try{return $w(e,e,"=")}catch{return!1}}),e5=e=>J6(e)?`v${e}`:e,t5=(e="latest")=>t=>J6(t)?t:e,gE="shlink/selectedServer",oae="1.0.0",sae="999.999.999",aae="latest",lae=Dt(e=>e===aae?sae:e,t5(oae)),cae=Oj(e=>`${e.id}_${e.url}_${e.apiKey}`,async(e,t)=>t().then(({version:n})=>({version:lae(n),printableVersion:e5(n)}))),$3=null,vE=yn(`${gE}/resetSelectedServer`),n5=e=>rr(`${gE}/selectServer`,async(t,{dispatch:n,getState:r})=>{n(vE());const{servers:i}=r(),o=i[t];if(!o)return{serverNotFound:!0};try{const{health:s}=e(o),{version:a,printableVersion:l}=await cae(o,s);return{...o,version:a,printableVersion:l}}catch{return{...o,serverNotReachable:!0}}}),uae=(e,t)=>{const n=$se();return n.startListening({actionCreator:e.fulfilled,effect:({payload:r},{dispatch:i})=>{Jy(r)&&i(t())}}),n},fae=e=>Yn({name:gE,initialState:$3,reducers:{},extraReducers:t=>{t.addCase(vE,()=>$3),t.addCase(e.fulfilled,(n,{payload:r})=>r)}}),Fi=e=>t=>Jy(t)&&iae(t.version,{minVersion:e}),yE={forwardQuery:Fi("2.9.0"),nonRestCors:Fi("2.9.0"),defaultDomainRedirectsEdition:Fi("2.10.0"),nonOrphanVisits:Fi("3.0.0"),allTagsFiltering:Fi("3.0.0"),tagsStats:Fi("3.0.0"),domainVisits:Fi("3.1.0"),excludeBotsOnShortUrls:Fi("3.4.0"),filterDisabledUrls:Fi("3.4.0"),deviceLongUrls:Fi("3.5.0")};Object.freeze(yE);const ki=(e,t)=>V.useMemo(()=>yE[e](t),[e,n5]);const dae=(e,t,n,r,i,o,s,a,l,c,f,h,p)=>K6(({selectedServer:m,sidebarNotPresent:v,sidebarPresent:y})=>{const x=Pn(),[_,w,S,T]=hn(),P=Jy(m);if(V.useEffect(()=>T(),[x]),V.useEffect(()=>(P&&y(),()=>v()),[]),!P)return g.jsx(c,{});const k=ki("nonOrphanVisits",m),N=ki("domainVisits",m),D=me("menu-layout__burger-icon",{"menu-layout__burger-icon--active":_}),z=koe(S,T);return g.jsxs(g.Fragment,{children:[g.jsx(je,{icon:XX,className:D,onClick:w}),g.jsx("div",{...z,className:"menu-layout__swipeable",children:g.jsxs("div",{className:"menu-layout__swipeable-inner",children:[g.jsx(n,{selectedServer:m,showOnMobile:_}),g.jsx("div",{className:"menu-layout__container",onClick:()=>T(),children:g.jsx("div",{className:"container-xl",children:g.jsxs(Zy,{children:[g.jsx(gt,{index:!0,element:g.jsx(BS,{replace:!0,to:"overview"})}),g.jsx(gt,{path:"/overview",element:g.jsx(f,{})}),g.jsx(gt,{path:"/list-short-urls/:page",element:g.jsx(t,{})}),g.jsx(gt,{path:"/create-short-url",element:g.jsx(r,{})}),g.jsx(gt,{path:"/short-code/:shortCode/visits/*",element:g.jsx(i,{})}),g.jsx(gt,{path:"/short-code/:shortCode/edit",element:g.jsx(h,{})}),g.jsx(gt,{path:"/tag/:tag/visits/*",element:g.jsx(o,{})}),N&&g.jsx(gt,{path:"/domain/:domain/visits/*",element:g.jsx(s,{})}),g.jsx(gt,{path:"/orphan-visits/*",element:g.jsx(a,{})}),k&&g.jsx(gt,{path:"/non-orphan-visits/*",element:g.jsx(l,{})}),g.jsx(gt,{path:"/manage-tags",element:g.jsx(e,{})}),g.jsx(gt,{path:"/manage-domains",element:g.jsx(p,{})}),g.jsx(gt,{path:"*",element:g.jsx(O6,{to:`/server/${m.id}/list-short-urls/1`,children:"List short URLs"})})]})})})]})})]})},c),hae={sidebarPresent:!1},{actions:pae,reducer:mae}=Yn({name:"shlink/sidebar",initialState:hae,reducers:{sidebarPresent:()=>({sidebarPresent:!0}),sidebarNotPresent:()=>({sidebarPresent:!1})}}),{sidebarPresent:gae,sidebarNotPresent:vae}=pae,yae=mae,_ae=({children:e})=>{const t=Pn();return V.useEffect(()=>{scrollTo(0,0)},[t]),g.jsx(g.Fragment,{children:e})},bae="%_VERSION_%",wae=Dt(t5(),e5),B3=({project:e,version:t})=>g.jsx(Ci,{href:`https://github.com/shlinkio/${e}/releases/${t}`,className:"text-muted",children:g.jsx("b",{children:t})}),xae=({selectedServer:e,clientVersion:t=bae})=>{const n=wae(t);return g.jsxs("small",{className:"text-muted",children:[Jy(e)&&g.jsxs(g.Fragment,{children:["Server: ",g.jsx(B3,{project:"shlink",version:e.printableVersion})," - "]}),"Client: ",g.jsx(B3,{project:"shlink-web-client",version:n})]})};const Sae=({selectedServer:e,sidebar:t})=>{const n=me("text-center",{"shlink-versions-container--with-sidebar":t.sidebarPresent});return g.jsx("div",{className:n,children:g.jsx(xae,{selectedServer:e})})},z3={"Content-Type":"application/json"},U3=e=>e!=null&&e.body?e?{...e,headers:{...e.headers??{},...z3}}:{headers:z3}:e;class Cae{constructor(t){xe(this,"fetchJson",(t,n)=>this.fetch(t,U3(n)).then(async r=>{const i=await r.json();if(!r.ok)throw i;return i}));xe(this,"fetchEmpty",(t,n)=>this.fetch(t,U3(n)).then(async r=>{if(!r.ok)throw await r.json()}));xe(this,"fetchBlob",t=>this.fetch(t).then(n=>n.blob()));this.fetch=t}}const r5=({document:e},t,n)=>{const r=e.createElement("a");r.setAttribute("href",t),r.setAttribute("download",n),r.style.visibility="hidden",e.body.appendChild(r),r.click(),e.body.removeChild(r)},i5=(e,t,n)=>{const r=new Blob([t],{type:"text/csv;charset=utf-8;"}),i=URL.createObjectURL(r);r5(e,i,n)};class Eae{constructor(t,n){this.httpClient=t,this.window=n}async saveImage(t,n){const r=await this.httpClient.fetchBlob(t),i=URL.createObjectURL(r);r5(this.window,i,n)}}class Tae{constructor(t,n){xe(this,"exportVisits",(t,n)=>{n.length&&this.exportCsv(t,n)});xe(this,"exportShortUrls",t=>{t.length&&this.exportCsv("short_urls.csv",t)});xe(this,"exportCsv",(t,n)=>{const r=this.jsonToCsv(n);i5(this.window,r,t)});this.window=t,this.jsonToCsv=n}}const Oae=(e,t)=>{e.constant("window",window),e.constant("console",console),e.constant("fetch",window.fetch.bind(window)),e.service("HttpClient",Cae,"fetch"),e.service("ImageDownloader",Eae,"HttpClient","window"),e.service("ReportExporter",Tae,"window","jsonToCsv"),e.serviceFactory("ScrollToTop",()=>_ae),e.serviceFactory("MainHeader",Kse,"ServersDropdown"),e.serviceFactory("Home",()=>Zse),e.decorator("Home",pv),e.decorator("Home",t(["servers"],["resetSelectedServer"])),e.serviceFactory("MenuLayout",dae,"TagsList","ShortUrlsList","AsideMenu","CreateShortUrl","ShortUrlVisits","TagVisits","DomainVisits","OrphanVisits","NonOrphanVisits","ServerError","Overview","EditShortUrl","ManageDomains"),e.decorator("MenuLayout",t(["selectedServer"],["selectServer","sidebarPresent","sidebarNotPresent"])),e.serviceFactory("AsideMenu",Yse,"DeleteServerButton"),e.serviceFactory("ShlinkVersionsContainer",()=>Sae),e.decorator("ShlinkVersionsContainer",t(["selectedServer","sidebar"])),e.serviceFactory("ErrorHandler",qse,"window","console"),e.serviceFactory("sidebarPresent",()=>gae),e.serviceFactory("sidebarNotPresent",()=>vae)};const Ho=({text:e,disabled:t=!1,className:n,children:r,dropdownClassName:i,noCaret:o,end:s=!1,minWidth:a,inline:l,size:c})=>{const[f,h]=hn(),p=me("dropdown-btn__toggle",n,{"btn-block":!l,"dropdown-btn__toggle--with-caret":!o}),m={minWidth:a&&`${a}px`};return g.jsxs(Jc,{isOpen:f,toggle:h,disabled:t,className:i,children:[g.jsx(Zd,{size:c,caret:!o,className:p,color:"primary",children:e}),g.jsx(eu,{className:"w-100",end:s,style:m,children:r})]})};const Pae=({listDomains:e,value:t,domainsList:n,onChange:r})=>{const[i,,o,s]=hn(),{domains:a}=n,l=Wn(t),c=()=>r("");return V.useEffect(()=>{e()},[]),i?g.jsxs(Qd,{children:[g.jsx(Ic,{value:t??"",placeholder:"Domain",onChange:f=>r(f.target.value)}),g.jsx(ht,{id:"backToDropdown",outline:!0,type:"button",className:"domains-dropdown__back-btn","aria-label":"Back to domains list",onClick:Dt(c,s),children:g.jsx(je,{icon:yQ})}),g.jsx(Er,{target:"backToDropdown",placement:"left",trigger:"hover",children:"Existing domains"})]}):g.jsxs(Ho,{text:l?"Domain":`Domain: ${t}`,className:l?"domains-dropdown__toggle-btn":"domains-dropdown__toggle-btn--active",children:[a.map(({domain:f,isDefault:h})=>g.jsxs(Ue,{active:(t===f||h)&&l,onClick:()=>r(f),children:[f,h&&g.jsx("span",{className:"float-end text-muted",children:"default"})]},f)),g.jsx(Ue,{divider:!0}),g.jsx(Ue,{onClick:Dt(c,o),children:g.jsx("i",{children:"New domain"})})]})},Do=({errorData:e,fallbackMessage:t})=>g.jsxs(g.Fragment,{children:[(e==null?void 0:e.detail)??t,LX(e)&&g.jsxs("p",{className:"mb-0",children:["Invalid elements: [",e.invalidElements.join(", "),"]"]})]}),Nr=({children:e,type:t,className:n,small:r=!1})=>g.jsx(Qn,{className:n,children:g.jsx("div",{className:me({"col-md-10 offset-md-1":!r,"col-12":r}),children:g.jsx(cn,{role:"document",className:me("text-center",{"bg-main":t==="success","bg-danger":t==="error","bg-warning":t==="warning","text-white":t!=="warning"}),bodyClassName:me({"p-2":r}),children:e})})});const kae=500;let Pp;const ih=({onChange:e,className:t,large:n=!0,noBorder:r=!1,initialValue:i=""})=>{const[o,s]=V.useState(i),a=()=>{Pp&&clearTimeout(Pp),Pp=null},l=(c,f=kae)=>{s(c),a(),Pp=setTimeout(()=>{e(c),a()},f)};return g.jsxs("div",{className:me("search-field",t),children:[g.jsx("input",{type:"text",className:me("form-control search-field__input",{"form-control-lg":n,"search-field__input--no-border":r}),placeholder:"Search...",value:o,onChange:c=>l(c.target.value)}),g.jsx(je,{icon:MQ,className:"search-field__icon"}),g.jsx("div",{className:"close search-field__close btn-close",hidden:o==="",id:"search-field__close",onClick:()=>l("",0)})]})},__=({children:e,minWidth:t})=>g.jsx(Ho,{text:g.jsx(je,{className:"px-1",icon:wQ}),size:"sm",minWidth:t,end:!0,noCaret:!0,inline:!0,children:e}),Ef=(e,t,n)=>$o(n)?e.shortCode===t&&!e.domain:e.shortCode===t&&e.domain===n,Mae=(e,t)=>!e.domain&&t===N5?!0:e.domain===t,Rae=(e,t)=>{const n=(t==null?void 0:t.validateUrls)??!1;return e?{longUrl:e.longUrl,tags:e.tags,title:e.title??void 0,domain:e.domain??void 0,validSince:e.meta.validSince??void 0,validUntil:e.meta.validUntil??void 0,maxVisits:e.meta.maxVisits??void 0,crawlable:e.crawlable,forwardQuery:e.forwardQuery,deviceLongUrls:e.deviceLongUrls,validateUrl:n}:{longUrl:"",validateUrl:n}},o5="__",Nae=e=>e.replaceAll("/",o5),pm=e=>e.replaceAll(o5,"/");function Qe(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function Oe(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}function mm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?mm=function(n){return typeof n}:mm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},mm(e)}function Me(e){Oe(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||mm(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function hl(e,t){Oe(2,arguments);var n=Me(e),r=Qe(t);return isNaN(r)?new Date(NaN):(r&&n.setDate(n.getDate()+r),n)}function no(e,t){Oe(2,arguments);var n=Me(e),r=Qe(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var i=n.getDate(),o=new Date(n.getTime());o.setMonth(n.getMonth()+r+1,0);var s=o.getDate();return i>=s?o:(n.setFullYear(o.getFullYear(),o.getMonth(),i),n)}function gm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?gm=function(n){return typeof n}:gm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},gm(e)}function Lae(e,t){if(Oe(2,arguments),!t||gm(t)!=="object")return new Date(NaN);var n=t.years?Qe(t.years):0,r=t.months?Qe(t.months):0,i=t.weeks?Qe(t.weeks):0,o=t.days?Qe(t.days):0,s=t.hours?Qe(t.hours):0,a=t.minutes?Qe(t.minutes):0,l=t.seconds?Qe(t.seconds):0,c=Me(e),f=r||n?no(c,r+n*12):c,h=o||i?hl(f,o+i*7):f,p=a+s*60,m=l+p*60,v=m*1e3,y=new Date(h.getTime()+v);return y}function _E(e,t){Oe(2,arguments);var n=Me(e).getTime(),r=Qe(t);return new Date(n+r)}var Dae=36e5;function Aae(e,t){Oe(2,arguments);var n=Qe(t);return _E(e,n*Dae)}var jae={};function Wo(){return jae}function s5(e,t){var n,r,i,o,s,a,l,c;Oe(1,arguments);var f=Wo(),h=Qe((n=(r=(i=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(s=t.locale)===null||s===void 0||(a=s.options)===null||a===void 0?void 0:a.weekStartsOn)!==null&&i!==void 0?i:f.weekStartsOn)!==null&&r!==void 0?r:(l=f.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&n!==void 0?n:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=Me(e),m=p.getDay(),v=(m=i.getTime()?n+1:t.getTime()>=s.getTime()?n:n-1}function Fae(e){Oe(1,arguments);var t=Iae(e),n=new Date(0);n.setFullYear(t,0,4),n.setHours(0,0,0,0);var r=wd(n);return r}function Fc(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function Lr(e){Oe(1,arguments);var t=Me(e);return t.setHours(0,0,0,0),t}var $ae=864e5;function xd(e,t){Oe(2,arguments);var n=Lr(e),r=Lr(t),i=n.getTime()-Fc(n),o=r.getTime()-Fc(r);return Math.round((i-o)/$ae)}var Bae=6e4;function Bw(e,t){Oe(2,arguments);var n=Qe(t);return _E(e,n*Bae)}function bE(e,t){Oe(2,arguments);var n=Qe(t),r=n*7;return hl(e,r)}function $c(e,t){Oe(2,arguments);var n=Qe(t);return no(e,n*12)}function vm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?vm=function(n){return typeof n}:vm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},vm(e)}function V3(e){Oe(1,arguments);var t;if(e&&typeof e.forEach=="function")t=e;else if(vm(e)==="object"&&e!==null)t=Array.prototype.slice.call(e);else return new Date(NaN);var n;return t.forEach(function(r){var i=Me(r);(n===void 0||ni||isNaN(i.getDate()))&&(n=i)}),n||new Date(NaN)}function _m(e,t){Oe(2,arguments);var n=Me(e),r=Me(t),i=n.getTime()-r.getTime();return i<0?-1:i>0?1:i}var wE=6e4,b_=36e5,zae=1e3;function Uae(e,t){Oe(2,arguments);var n=Lr(e),r=Lr(t);return n.getTime()===r.getTime()}function bm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?bm=function(n){return typeof n}:bm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},bm(e)}function xE(e){return Oe(1,arguments),e instanceof Date||bm(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function a5(e){if(Oe(1,arguments),!xE(e)&&typeof e!="number")return!1;var t=Me(e);return!isNaN(Number(t))}function Sd(e,t){Oe(2,arguments);var n=Me(e),r=Me(t),i=n.getFullYear()-r.getFullYear(),o=n.getMonth()-r.getMonth();return i*12+o}function zw(e){Oe(1,arguments);var t=Me(e),n=Math.floor(t.getMonth()/3)+1;return n}function mv(e,t){Oe(2,arguments);var n=Me(e),r=Me(t);return n.getFullYear()-r.getFullYear()}function W3(e,t){var n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function SE(e,t){Oe(2,arguments);var n=Me(e),r=Me(t),i=W3(n,r),o=Math.abs(xd(n,r));n.setDate(n.getDate()-i*o);var s=+(W3(n,r)===-i),a=i*(o-s);return a===0?0:a}function l5(e,t){return Oe(2,arguments),Me(e).getTime()-Me(t).getTime()}var Y3={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},Vae="trunc";function CE(e){return e?Y3[e]:Y3[Vae]}function Hae(e,t,n){Oe(2,arguments);var r=l5(e,t)/b_;return CE(n==null?void 0:n.roundingMethod)(r)}function il(e){Oe(1,arguments);var t=Me(e);return t.setHours(23,59,59,999),t}function Wae(e){Oe(1,arguments);var t=Me(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function Yae(e){Oe(1,arguments);var t=Me(e);return il(t).getTime()===Wae(t).getTime()}function gv(e,t){Oe(2,arguments);var n=Me(e),r=Me(t),i=_m(n,r),o=Math.abs(Sd(n,r)),s;if(o<1)s=0;else{n.getMonth()===1&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-i*o);var a=_m(n,r)===-i;Yae(Me(e))&&o===1&&_m(e,r)===1&&(a=!1),s=i*(o-Number(a))}return s===0?0:s}function qae(e,t,n){Oe(2,arguments);var r=l5(e,t)/1e3;return CE(n==null?void 0:n.roundingMethod)(r)}function Gae(e,t,n){Oe(2,arguments);var r=SE(e,t)/7;return CE(n==null?void 0:n.roundingMethod)(r)}function Uw(e){Oe(1,arguments);var t=Me(e),n=t.getMonth(),r=n-n%3;return t.setMonth(r,1),t.setHours(0,0,0,0),t}function Zae(e){Oe(1,arguments);var t=Me(e);return t.setDate(1),t.setHours(0,0,0,0),t}function Kae(e){Oe(1,arguments);var t=Me(e),n=new Date(0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function Xae(e,t){var n,r,i,o,s,a,l,c;Oe(1,arguments);var f=Wo(),h=Qe((n=(r=(i=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(s=t.locale)===null||s===void 0||(a=s.options)===null||a===void 0?void 0:a.weekStartsOn)!==null&&i!==void 0?i:f.weekStartsOn)!==null&&r!==void 0?r:(l=f.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&n!==void 0?n:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=Me(e),m=p.getDay(),v=(m=i.getTime()?n+1:t.getTime()>=s.getTime()?n:n-1}function tle(e){Oe(1,arguments);var t=u5(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=Bc(n);return r}var nle=6048e5;function f5(e){Oe(1,arguments);var t=Me(e),n=Bc(t).getTime()-tle(t).getTime();return Math.round(n/nle)+1}function ol(e,t){var n,r,i,o,s,a,l,c;Oe(1,arguments);var f=Wo(),h=Qe((n=(r=(i=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(s=t.locale)===null||s===void 0||(a=s.options)===null||a===void 0?void 0:a.weekStartsOn)!==null&&i!==void 0?i:f.weekStartsOn)!==null&&r!==void 0?r:(l=f.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&n!==void 0?n:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=Me(e),m=p.getUTCDay(),v=(m=1&&m<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var v=new Date(0);v.setUTCFullYear(h+1,0,m),v.setUTCHours(0,0,0,0);var y=ol(v,t),x=new Date(0);x.setUTCFullYear(h,0,m),x.setUTCHours(0,0,0,0);var _=ol(x,t);return f.getTime()>=y.getTime()?h+1:f.getTime()>=_.getTime()?h:h-1}function rle(e,t){var n,r,i,o,s,a,l,c;Oe(1,arguments);var f=Wo(),h=Qe((n=(r=(i=(o=t==null?void 0:t.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(s=t.locale)===null||s===void 0||(a=s.options)===null||a===void 0?void 0:a.firstWeekContainsDate)!==null&&i!==void 0?i:f.firstWeekContainsDate)!==null&&r!==void 0?r:(l=f.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&n!==void 0?n:1),p=EE(e,t),m=new Date(0);m.setUTCFullYear(p,0,h),m.setUTCHours(0,0,0,0);var v=ol(m,t);return v}var ile=6048e5;function d5(e,t){Oe(1,arguments);var n=Me(e),r=ol(n,t).getTime()-rle(n,t).getTime();return Math.round(r/ile)+1}function tt(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length0?r:1-r;return tt(n==="yy"?i%100:i,n.length)},M:function(t,n){var r=t.getUTCMonth();return n==="M"?String(r+1):tt(r+1,2)},d:function(t,n){return tt(t.getUTCDate(),n.length)},a:function(t,n){var r=t.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(t,n){return tt(t.getUTCHours()%12||12,n.length)},H:function(t,n){return tt(t.getUTCHours(),n.length)},m:function(t,n){return tt(t.getUTCMinutes(),n.length)},s:function(t,n){return tt(t.getUTCSeconds(),n.length)},S:function(t,n){var r=n.length,i=t.getUTCMilliseconds(),o=Math.floor(i*Math.pow(10,r-3));return tt(o,n.length)}};const Xo=ole;var Ll={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},sle={G:function(t,n,r){var i=t.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return r.era(i,{width:"abbreviated"});case"GGGGG":return r.era(i,{width:"narrow"});case"GGGG":default:return r.era(i,{width:"wide"})}},y:function(t,n,r){if(n==="yo"){var i=t.getUTCFullYear(),o=i>0?i:1-i;return r.ordinalNumber(o,{unit:"year"})}return Xo.y(t,n)},Y:function(t,n,r,i){var o=EE(t,i),s=o>0?o:1-o;if(n==="YY"){var a=s%100;return tt(a,2)}return n==="Yo"?r.ordinalNumber(s,{unit:"year"}):tt(s,n.length)},R:function(t,n){var r=u5(t);return tt(r,n.length)},u:function(t,n){var r=t.getUTCFullYear();return tt(r,n.length)},Q:function(t,n,r){var i=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"Q":return String(i);case"QQ":return tt(i,2);case"Qo":return r.ordinalNumber(i,{unit:"quarter"});case"QQQ":return r.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(i,{width:"wide",context:"formatting"})}},q:function(t,n,r){var i=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"q":return String(i);case"qq":return tt(i,2);case"qo":return r.ordinalNumber(i,{unit:"quarter"});case"qqq":return r.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(i,{width:"wide",context:"standalone"})}},M:function(t,n,r){var i=t.getUTCMonth();switch(n){case"M":case"MM":return Xo.M(t,n);case"Mo":return r.ordinalNumber(i+1,{unit:"month"});case"MMM":return r.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(i,{width:"wide",context:"formatting"})}},L:function(t,n,r){var i=t.getUTCMonth();switch(n){case"L":return String(i+1);case"LL":return tt(i+1,2);case"Lo":return r.ordinalNumber(i+1,{unit:"month"});case"LLL":return r.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(i,{width:"wide",context:"standalone"})}},w:function(t,n,r,i){var o=d5(t,i);return n==="wo"?r.ordinalNumber(o,{unit:"week"}):tt(o,n.length)},I:function(t,n,r){var i=f5(t);return n==="Io"?r.ordinalNumber(i,{unit:"week"}):tt(i,n.length)},d:function(t,n,r){return n==="do"?r.ordinalNumber(t.getUTCDate(),{unit:"date"}):Xo.d(t,n)},D:function(t,n,r){var i=ele(t);return n==="Do"?r.ordinalNumber(i,{unit:"dayOfYear"}):tt(i,n.length)},E:function(t,n,r){var i=t.getUTCDay();switch(n){case"E":case"EE":case"EEE":return r.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(i,{width:"short",context:"formatting"});case"EEEE":default:return r.day(i,{width:"wide",context:"formatting"})}},e:function(t,n,r,i){var o=t.getUTCDay(),s=(o-i.weekStartsOn+8)%7||7;switch(n){case"e":return String(s);case"ee":return tt(s,2);case"eo":return r.ordinalNumber(s,{unit:"day"});case"eee":return r.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(o,{width:"short",context:"formatting"});case"eeee":default:return r.day(o,{width:"wide",context:"formatting"})}},c:function(t,n,r,i){var o=t.getUTCDay(),s=(o-i.weekStartsOn+8)%7||7;switch(n){case"c":return String(s);case"cc":return tt(s,n.length);case"co":return r.ordinalNumber(s,{unit:"day"});case"ccc":return r.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(o,{width:"narrow",context:"standalone"});case"cccccc":return r.day(o,{width:"short",context:"standalone"});case"cccc":default:return r.day(o,{width:"wide",context:"standalone"})}},i:function(t,n,r){var i=t.getUTCDay(),o=i===0?7:i;switch(n){case"i":return String(o);case"ii":return tt(o,n.length);case"io":return r.ordinalNumber(o,{unit:"day"});case"iii":return r.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(i,{width:"short",context:"formatting"});case"iiii":default:return r.day(i,{width:"wide",context:"formatting"})}},a:function(t,n,r){var i=t.getUTCHours(),o=i/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(t,n,r){var i=t.getUTCHours(),o;switch(i===12?o=Ll.noon:i===0?o=Ll.midnight:o=i/12>=1?"pm":"am",n){case"b":case"bb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(t,n,r){var i=t.getUTCHours(),o;switch(i>=17?o=Ll.evening:i>=12?o=Ll.afternoon:i>=4?o=Ll.morning:o=Ll.night,n){case"B":case"BB":case"BBB":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(t,n,r){if(n==="ho"){var i=t.getUTCHours()%12;return i===0&&(i=12),r.ordinalNumber(i,{unit:"hour"})}return Xo.h(t,n)},H:function(t,n,r){return n==="Ho"?r.ordinalNumber(t.getUTCHours(),{unit:"hour"}):Xo.H(t,n)},K:function(t,n,r){var i=t.getUTCHours()%12;return n==="Ko"?r.ordinalNumber(i,{unit:"hour"}):tt(i,n.length)},k:function(t,n,r){var i=t.getUTCHours();return i===0&&(i=24),n==="ko"?r.ordinalNumber(i,{unit:"hour"}):tt(i,n.length)},m:function(t,n,r){return n==="mo"?r.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):Xo.m(t,n)},s:function(t,n,r){return n==="so"?r.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):Xo.s(t,n)},S:function(t,n){return Xo.S(t,n)},X:function(t,n,r,i){var o=i._originalDate||t,s=o.getTimezoneOffset();if(s===0)return"Z";switch(n){case"X":return G3(s);case"XXXX":case"XX":return Oa(s);case"XXXXX":case"XXX":default:return Oa(s,":")}},x:function(t,n,r,i){var o=i._originalDate||t,s=o.getTimezoneOffset();switch(n){case"x":return G3(s);case"xxxx":case"xx":return Oa(s);case"xxxxx":case"xxx":default:return Oa(s,":")}},O:function(t,n,r,i){var o=i._originalDate||t,s=o.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+q3(s,":");case"OOOO":default:return"GMT"+Oa(s,":")}},z:function(t,n,r,i){var o=i._originalDate||t,s=o.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+q3(s,":");case"zzzz":default:return"GMT"+Oa(s,":")}},t:function(t,n,r,i){var o=i._originalDate||t,s=Math.floor(o.getTime()/1e3);return tt(s,n.length)},T:function(t,n,r,i){var o=i._originalDate||t,s=o.getTime();return tt(s,n.length)}};function q3(e,t){var n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),o=r%60;if(o===0)return n+String(i);var s=t||"";return n+String(i)+s+tt(o,2)}function G3(e,t){if(e%60===0){var n=e>0?"-":"+";return n+tt(Math.abs(e)/60,2)}return Oa(e,t)}function Oa(e,t){var n=t||"",r=e>0?"-":"+",i=Math.abs(e),o=tt(Math.floor(i/60),2),s=tt(i%60,2);return r+o+n+s}const ale=sle;var Z3=function(t,n){switch(t){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},h5=function(t,n){switch(t){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},lle=function(t,n){var r=t.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return Z3(t,n);var s;switch(i){case"P":s=n.dateTime({width:"short"});break;case"PP":s=n.dateTime({width:"medium"});break;case"PPP":s=n.dateTime({width:"long"});break;case"PPPP":default:s=n.dateTime({width:"full"});break}return s.replace("{{date}}",Z3(i,n)).replace("{{time}}",h5(o,n))},cle={p:h5,P:lle};const Vw=cle;var ule=["D","DD"],fle=["YY","YYYY"];function p5(e){return ule.indexOf(e)!==-1}function m5(e){return fle.indexOf(e)!==-1}function vv(e,t,n){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var dle={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},hle=function(t,n,r){var i,o=dle[t];return typeof o=="string"?i=o:n===1?i=o.one:i=o.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+i:i+" ago":i};const ple=hle;function x1(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}var mle={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},gle={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},vle={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},yle={date:x1({formats:mle,defaultWidth:"full"}),time:x1({formats:gle,defaultWidth:"full"}),dateTime:x1({formats:vle,defaultWidth:"full"})};const _le=yle;var ble={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},wle=function(t,n,r,i){return ble[t]};const xle=wle;function ju(e){return function(t,n){var r=n!=null&&n.context?String(n.context):"standalone",i;if(r==="formatting"&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,s=n!=null&&n.width?String(n.width):o;i=e.formattingValues[s]||e.formattingValues[o]}else{var a=e.defaultWidth,l=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[l]||e.values[a]}var c=e.argumentCallback?e.argumentCallback(t):t;return i[c]}}var Sle={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Cle={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Ele={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Tle={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Ole={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Ple={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},kle=function(t,n){var r=Number(t),i=r%100;if(i>20||i<10)switch(i%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},Mle={ordinalNumber:kle,era:ju({values:Sle,defaultWidth:"wide"}),quarter:ju({values:Cle,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:ju({values:Ele,defaultWidth:"wide"}),day:ju({values:Tle,defaultWidth:"wide"}),dayPeriod:ju({values:Ole,defaultWidth:"wide",formattingValues:Ple,defaultFormattingWidth:"wide"})};const Rle=Mle;function Iu(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;var s=o[0],a=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(a)?Lle(a,function(h){return h.test(s)}):Nle(a,function(h){return h.test(s)}),c;c=e.valueCallback?e.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;var f=t.slice(s.length);return{value:c,rest:f}}}function Nle(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function Lle(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],o=t.match(e.parsePattern);if(!o)return null;var s=e.valueCallback?e.valueCallback(o[0]):o[0];s=n.valueCallback?n.valueCallback(s):s;var a=t.slice(i.length);return{value:s,rest:a}}}var Ale=/^(\d+)(th|st|nd|rd)?/i,jle=/\d+/i,Ile={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Fle={any:[/^b/i,/^(a|c)/i]},$le={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Ble={any:[/1/i,/2/i,/3/i,/4/i]},zle={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Ule={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Vle={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Hle={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Wle={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Yle={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},qle={ordinalNumber:Dle({matchPattern:Ale,parsePattern:jle,valueCallback:function(t){return parseInt(t,10)}}),era:Iu({matchPatterns:Ile,defaultMatchWidth:"wide",parsePatterns:Fle,defaultParseWidth:"any"}),quarter:Iu({matchPatterns:$le,defaultMatchWidth:"wide",parsePatterns:Ble,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Iu({matchPatterns:zle,defaultMatchWidth:"wide",parsePatterns:Ule,defaultParseWidth:"any"}),day:Iu({matchPatterns:Vle,defaultMatchWidth:"wide",parsePatterns:Hle,defaultParseWidth:"any"}),dayPeriod:Iu({matchPatterns:Wle,defaultMatchWidth:"any",parsePatterns:Yle,defaultParseWidth:"any"})};const Gle=qle;var Zle={code:"en-US",formatDistance:ple,formatLong:_le,formatRelative:xle,localize:Rle,match:Gle,options:{weekStartsOn:0,firstWeekContainsDate:1}};const TE=Zle;var Kle=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Xle=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Qle=/^'([^]*?)'?$/,Jle=/''/g,ece=/[a-zA-Z]/;function yo(e,t,n){var r,i,o,s,a,l,c,f,h,p,m,v,y,x,_,w,S,T;Oe(2,arguments);var P=String(t),k=Wo(),N=(r=(i=n==null?void 0:n.locale)!==null&&i!==void 0?i:k.locale)!==null&&r!==void 0?r:TE,D=Qe((o=(s=(a=(l=n==null?void 0:n.firstWeekContainsDate)!==null&&l!==void 0?l:n==null||(c=n.locale)===null||c===void 0||(f=c.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&a!==void 0?a:k.firstWeekContainsDate)!==null&&s!==void 0?s:(h=k.locale)===null||h===void 0||(p=h.options)===null||p===void 0?void 0:p.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(D>=1&&D<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var z=Qe((m=(v=(y=(x=n==null?void 0:n.weekStartsOn)!==null&&x!==void 0?x:n==null||(_=n.locale)===null||_===void 0||(w=_.options)===null||w===void 0?void 0:w.weekStartsOn)!==null&&y!==void 0?y:k.weekStartsOn)!==null&&v!==void 0?v:(S=k.locale)===null||S===void 0||(T=S.options)===null||T===void 0?void 0:T.weekStartsOn)!==null&&m!==void 0?m:0);if(!(z>=0&&z<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!N.localize)throw new RangeError("locale must contain localize property");if(!N.formatLong)throw new RangeError("locale must contain formatLong property");var A=Me(e);if(!a5(A))throw new RangeError("Invalid time value");var W=Fc(A),Y=c5(A,W),J={firstWeekContainsDate:D,weekStartsOn:z,locale:N,_originalDate:A},Z=P.match(Xle).map(function(ee){var ie=ee[0];if(ie==="p"||ie==="P"){var oe=Vw[ie];return oe(ee,N.formatLong)}return ee}).join("").match(Kle).map(function(ee){if(ee==="''")return"'";var ie=ee[0];if(ie==="'")return tce(ee);var oe=ale[ie];if(oe)return!(n!=null&&n.useAdditionalWeekYearTokens)&&m5(ee)&&vv(ee,t,String(e)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&p5(ee)&&vv(ee,t,String(e)),oe(Y,ee,N.localize,J);if(ie.match(ece))throw new RangeError("Format string contains an unescaped latin alphabet character `"+ie+"`");return ee}).join("");return Z}function tce(e){var t=e.match(Qle);return t?t[1].replace(Jle,"'"):e}function OE(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function nce(e){return OE({},e)}var K3=1440,rce=2520,S1=43200,ice=86400;function oce(e,t,n){var r,i;Oe(2,arguments);var o=Wo(),s=(r=(i=n==null?void 0:n.locale)!==null&&i!==void 0?i:o.locale)!==null&&r!==void 0?r:TE;if(!s.formatDistance)throw new RangeError("locale must contain formatDistance property");var a=_m(e,t);if(isNaN(a))throw new RangeError("Invalid time value");var l=OE(nce(n),{addSuffix:!!(n!=null&&n.addSuffix),comparison:a}),c,f;a>0?(c=Me(t),f=Me(e)):(c=Me(e),f=Me(t));var h=qae(f,c),p=(Fc(f)-Fc(c))/1e3,m=Math.round((h-p)/60),v;if(m<2)return n!=null&&n.includeSeconds?h<5?s.formatDistance("lessThanXSeconds",5,l):h<10?s.formatDistance("lessThanXSeconds",10,l):h<20?s.formatDistance("lessThanXSeconds",20,l):h<40?s.formatDistance("halfAMinute",0,l):h<60?s.formatDistance("lessThanXMinutes",1,l):s.formatDistance("xMinutes",1,l):m===0?s.formatDistance("lessThanXMinutes",1,l):s.formatDistance("xMinutes",m,l);if(m<45)return s.formatDistance("xMinutes",m,l);if(m<90)return s.formatDistance("aboutXHours",1,l);if(mr.getTime()}function Gr(e,t){Oe(2,arguments);var n=Me(e),r=Me(t);return n.getTime()"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _v(e){return _v=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},_v(e)}function PE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Q3(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function bv(e){return bv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},bv(e)}function tR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Tce=function(e){xce(n,e);var t=Sce(n);function n(){var r;bce(this,n);for(var i=arguments.length,o=new Array(i),s=0;s0,r=n?t:1-t,i;if(r<=50)i=e||100;else{var o=r+50,s=Math.floor(o/100)*100,a=e>=o%100;i=e+s-(a?100:0)}return n?i:1-i}function x5(e){return e%400===0||e%4===0&&e%100!==0}function Sm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Sm=function(n){return typeof n}:Sm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Sm(e)}function Oce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nR(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function xv(e){return xv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},xv(e)}function rR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Lce=function(e){kce(n,e);var t=Mce(n);function n(){var r;Oce(this,n);for(var i=arguments.length,o=new Array(i),s=0;s0}},{key:"set",value:function(i,o,s){var a=i.getUTCFullYear();if(s.isTwoDigitYear){var l=w5(s.year,a);return i.setUTCFullYear(l,0,1),i.setUTCHours(0,0,0,0),i}var c=!("era"in o)||o.era===1?s.year:1-s.year;return i.setUTCFullYear(c,0,1),i.setUTCHours(0,0,0,0),i}}]),n}(pt);function Cm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Cm=function(n){return typeof n}:Cm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Cm(e)}function Dce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function iR(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Sv(e){return Sv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Sv(e)}function oR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Bce=function(e){jce(n,e);var t=Ice(n);function n(){var r;Dce(this,n);for(var i=arguments.length,o=new Array(i),s=0;s0}},{key:"set",value:function(i,o,s,a){var l=EE(i,a);if(s.isTwoDigitYear){var c=w5(s.year,l);return i.setUTCFullYear(c,0,a.firstWeekContainsDate),i.setUTCHours(0,0,0,0),ol(i,a)}var f=!("era"in o)||o.era===1?s.year:1-s.year;return i.setUTCFullYear(f,0,a.firstWeekContainsDate),i.setUTCHours(0,0,0,0),ol(i,a)}}]),n}(pt);function Em(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Em=function(n){return typeof n}:Em=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Em(e)}function zce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sR(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Cv(e){return Cv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Cv(e)}function aR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var qce=function(e){Vce(n,e);var t=Hce(n);function n(){var r;zce(this,n);for(var i=arguments.length,o=new Array(i),s=0;s"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ev(e){return Ev=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Ev(e)}function cR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var eue=function(e){Kce(n,e);var t=Xce(n);function n(){var r;Gce(this,n);for(var i=arguments.length,o=new Array(i),s=0;s"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Tv(e){return Tv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Tv(e)}function fR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var aue=function(e){rue(n,e);var t=iue(n);function n(){var r;tue(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=1&&o<=4}},{key:"set",value:function(i,o,s){return i.setUTCMonth((s-1)*3,1),i.setUTCHours(0,0,0,0),i}}]),n}(pt);function Pm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Pm=function(n){return typeof n}:Pm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Pm(e)}function lue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dR(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ov(e){return Ov=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Ov(e)}function hR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var pue=function(e){uue(n,e);var t=fue(n);function n(){var r;lue(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=1&&o<=4}},{key:"set",value:function(i,o,s){return i.setUTCMonth((s-1)*3,1),i.setUTCHours(0,0,0,0),i}}]),n}(pt);function km(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?km=function(n){return typeof n}:km=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},km(e)}function mue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pR(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Pv(e){return Pv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Pv(e)}function mR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var wue=function(e){vue(n,e);var t=yue(n);function n(){var r;mue(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=0&&o<=11}},{key:"set",value:function(i,o,s){return i.setUTCMonth(s,1),i.setUTCHours(0,0,0,0),i}}]),n}(pt);function Mm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Mm=function(n){return typeof n}:Mm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Mm(e)}function xue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gR(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function kv(e){return kv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},kv(e)}function vR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Pue=function(e){Cue(n,e);var t=Eue(n);function n(){var r;xue(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=0&&o<=11}},{key:"set",value:function(i,o,s){return i.setUTCMonth(s,1),i.setUTCHours(0,0,0,0),i}}]),n}(pt);function kue(e,t,n){Oe(2,arguments);var r=Me(e),i=Qe(t),o=d5(r,n)-i;return r.setUTCDate(r.getUTCDate()-o*7),r}function Rm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Rm=function(n){return typeof n}:Rm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Rm(e)}function Mue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yR(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Mv(e){return Mv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Mv(e)}function _R(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var jue=function(e){Nue(n,e);var t=Lue(n);function n(){var r;Mue(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=1&&o<=53}},{key:"set",value:function(i,o,s,a){return ol(kue(i,s,a),a)}}]),n}(pt);function Iue(e,t){Oe(2,arguments);var n=Me(e),r=Qe(t),i=f5(n)-r;return n.setUTCDate(n.getUTCDate()-i*7),n}function Nm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Nm=function(n){return typeof n}:Nm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Nm(e)}function Fue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bR(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Rv(e){return Rv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Rv(e)}function wR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Hue=function(e){Bue(n,e);var t=zue(n);function n(){var r;Fue(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=1&&o<=53}},{key:"set",value:function(i,o,s){return Bc(Iue(i,s))}}]),n}(pt);function Lm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Lm=function(n){return typeof n}:Lm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Lm(e)}function Wue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xR(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Nv(e){return Nv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Nv(e)}function C1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Xue=[31,28,31,30,31,30,31,31,30,31,30,31],Que=[31,29,31,30,31,30,31,31,30,31,30,31],Jue=function(e){que(n,e);var t=Gue(n);function n(){var r;Wue(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=1&&o<=Que[l]:o>=1&&o<=Xue[l]}},{key:"set",value:function(i,o,s){return i.setUTCDate(s),i.setUTCHours(0,0,0,0),i}}]),n}(pt);function Am(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Am=function(n){return typeof n}:Am=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Am(e)}function efe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function SR(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Lv(e){return Lv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Lv(e)}function E1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var sfe=function(e){nfe(n,e);var t=rfe(n);function n(){var r;efe(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=1&&o<=366:o>=1&&o<=365}},{key:"set",value:function(i,o,s){return i.setUTCMonth(0,s),i.setUTCHours(0,0,0,0),i}}]),n}(pt);function RE(e,t,n){var r,i,o,s,a,l,c,f;Oe(2,arguments);var h=Wo(),p=Qe((r=(i=(o=(s=n==null?void 0:n.weekStartsOn)!==null&&s!==void 0?s:n==null||(a=n.locale)===null||a===void 0||(l=a.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&o!==void 0?o:h.weekStartsOn)!==null&&i!==void 0?i:(c=h.locale)===null||c===void 0||(f=c.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&r!==void 0?r:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=Me(e),v=Qe(t),y=m.getUTCDay(),x=v%7,_=(x+7)%7,w=(_"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Dv(e){return Dv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Dv(e)}function ER(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var hfe=function(e){cfe(n,e);var t=ufe(n);function n(){var r;afe(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=0&&o<=6}},{key:"set",value:function(i,o,s,a){return i=RE(i,s,a),i.setUTCHours(0,0,0,0),i}}]),n}(pt);function Fm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Fm=function(n){return typeof n}:Fm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Fm(e)}function pfe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function TR(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Av(e){return Av=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Av(e)}function OR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var bfe=function(e){gfe(n,e);var t=vfe(n);function n(){var r;pfe(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=0&&o<=6}},{key:"set",value:function(i,o,s,a){return i=RE(i,s,a),i.setUTCHours(0,0,0,0),i}}]),n}(pt);function $m(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?$m=function(n){return typeof n}:$m=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},$m(e)}function wfe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function PR(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function jv(e){return jv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},jv(e)}function kR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ofe=function(e){Sfe(n,e);var t=Cfe(n);function n(){var r;wfe(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=0&&o<=6}},{key:"set",value:function(i,o,s,a){return i=RE(i,s,a),i.setUTCHours(0,0,0,0),i}}]),n}(pt);function Pfe(e,t){Oe(2,arguments);var n=Qe(t);n%7===0&&(n=n-7);var r=1,i=Me(e),o=i.getUTCDay(),s=n%7,a=(s+7)%7,l=(a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Iv(e){return Iv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Iv(e)}function RR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Afe=function(e){Rfe(n,e);var t=Nfe(n);function n(){var r;kfe(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=1&&o<=7}},{key:"set",value:function(i,o,s){return i=Pfe(i,s),i.setUTCHours(0,0,0,0),i}}]),n}(pt);function zm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?zm=function(n){return typeof n}:zm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},zm(e)}function jfe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function NR(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Fv(e){return Fv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Fv(e)}function LR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ufe=function(e){Ffe(n,e);var t=$fe(n);function n(){var r;jfe(this,n);for(var i=arguments.length,o=new Array(i),s=0;s"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function $v(e){return $v=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},$v(e)}function AR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Zfe=function(e){Wfe(n,e);var t=Yfe(n);function n(){var r;Vfe(this,n);for(var i=arguments.length,o=new Array(i),s=0;s"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Bv(e){return Bv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Bv(e)}function IR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var nde=function(e){Qfe(n,e);var t=Jfe(n);function n(){var r;Kfe(this,n);for(var i=arguments.length,o=new Array(i),s=0;s"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function zv(e){return zv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},zv(e)}function $R(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var cde=function(e){ode(n,e);var t=sde(n);function n(){var r;rde(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=1&&o<=12}},{key:"set",value:function(i,o,s){var a=i.getUTCHours()>=12;return a&&s<12?i.setUTCHours(s+12,0,0,0):!a&&s===12?i.setUTCHours(0,0,0,0):i.setUTCHours(s,0,0,0),i}}]),n}(pt);function Wm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Wm=function(n){return typeof n}:Wm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Wm(e)}function ude(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function BR(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Uv(e){return Uv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Uv(e)}function zR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var gde=function(e){dde(n,e);var t=hde(n);function n(){var r;ude(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=0&&o<=23}},{key:"set",value:function(i,o,s){return i.setUTCHours(s,0,0,0),i}}]),n}(pt);function Ym(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ym=function(n){return typeof n}:Ym=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ym(e)}function vde(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function UR(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Vv(e){return Vv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Vv(e)}function VR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Sde=function(e){_de(n,e);var t=bde(n);function n(){var r;vde(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=0&&o<=11}},{key:"set",value:function(i,o,s){var a=i.getUTCHours()>=12;return a&&s<12?i.setUTCHours(s+12,0,0,0):i.setUTCHours(s,0,0,0),i}}]),n}(pt);function qm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?qm=function(n){return typeof n}:qm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},qm(e)}function Cde(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function HR(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Hv(e){return Hv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Hv(e)}function WR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Mde=function(e){Tde(n,e);var t=Ode(n);function n(){var r;Cde(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=1&&o<=24}},{key:"set",value:function(i,o,s){var a=s<=24?s%24:s;return i.setUTCHours(a,0,0,0),i}}]),n}(pt);function Gm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Gm=function(n){return typeof n}:Gm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Gm(e)}function Rde(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function YR(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Wv(e){return Wv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Wv(e)}function qR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ide=function(e){Lde(n,e);var t=Dde(n);function n(){var r;Rde(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=0&&o<=59}},{key:"set",value:function(i,o,s){return i.setUTCMinutes(s,0,0),i}}]),n}(pt);function Zm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Zm=function(n){return typeof n}:Zm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Zm(e)}function Fde(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function GR(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Yv(e){return Yv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Yv(e)}function ZR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Hde=function(e){Bde(n,e);var t=zde(n);function n(){var r;Fde(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=0&&o<=59}},{key:"set",value:function(i,o,s){return i.setUTCSeconds(s,0),i}}]),n}(pt);function Km(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Km=function(n){return typeof n}:Km=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Km(e)}function Wde(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function KR(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function qv(e){return qv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},qv(e)}function XR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Xde=function(e){qde(n,e);var t=Gde(n);function n(){var r;Wde(this,n);for(var i=arguments.length,o=new Array(i),s=0;s"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Gv(e){return Gv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Gv(e)}function JR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ihe=function(e){ehe(n,e);var t=the(n);function n(){var r;Qde(this,n);for(var i=arguments.length,o=new Array(i),s=0;s"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Zv(e){return Zv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Zv(e)}function tN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var fhe=function(e){ahe(n,e);var t=lhe(n);function n(){var r;ohe(this,n);for(var i=arguments.length,o=new Array(i),s=0;s"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Kv(e){return Kv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Kv(e)}function rN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var yhe=function(e){phe(n,e);var t=mhe(n);function n(){var r;dhe(this,n);for(var i=arguments.length,o=new Array(i),s=0;s"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Xv(e){return Xv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Xv(e)}function oN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ehe=function(e){whe(n,e);var t=xhe(n);function n(){var r;_he(this,n);for(var i=arguments.length,o=new Array(i),s=0;s"u"||e[Symbol.iterator]==null){if(Array.isArray(e)||(n=Ohe(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,s=!1,a;return{s:function(){n=e[Symbol.iterator]()},n:function(){var c=n.next();return o=c.done,c},e:function(c){s=!0,a=c},f:function(){try{!o&&n.return!=null&&n.return()}finally{if(s)throw a}}}}function Ohe(e,t){if(e){if(typeof e=="string")return aN(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return aN(e,t)}}function aN(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=1&&A<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var W=Qe((v=(y=(x=(_=r==null?void 0:r.weekStartsOn)!==null&&_!==void 0?_:r==null||(w=r.locale)===null||w===void 0||(S=w.options)===null||S===void 0?void 0:S.weekStartsOn)!==null&&x!==void 0?x:D.weekStartsOn)!==null&&y!==void 0?y:(T=D.locale)===null||T===void 0||(P=T.options)===null||P===void 0?void 0:P.weekStartsOn)!==null&&v!==void 0?v:0);if(!(W>=0&&W<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(N==="")return k===""?Me(n):new Date(NaN);var Y={firstWeekContainsDate:A,weekStartsOn:W,locale:z},J=[new vce],Z=N.match(khe).map(function(O){var R=O[0];if(R in Vw){var I=Vw[R];return I(O,z.formatLong)}return O}).join("").match(Phe),ee=[],ie=sN(Z),oe;try{var G=function(){var R=oe.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&m5(R)&&vv(R,N,e),!(r!=null&&r.useAdditionalDayOfYearTokens)&&p5(R)&&vv(R,N,e);var I=R[0],X=The[I];if(X){var K=X.incompatibleTokens;if(Array.isArray(K)){var ae=ee.find(function(Le){return K.includes(Le.token)||Le.token===I});if(ae)throw new RangeError("The format string mustn't contain `".concat(ae.fullToken,"` and `").concat(R,"` at the same time"))}else if(X.incompatibleTokens==="*"&&ee.length>0)throw new RangeError("The format string mustn't contain `".concat(R,"` and any other token at the same time"));ee.push({token:I,fullToken:R});var ge=X.run(k,R,z.match,Y);if(!ge)return{v:new Date(NaN)};J.push(ge.setter),k=ge.rest}else{if(I.match(Lhe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+I+"`");if(R==="''"?R="'":I==="'"&&(R=Dhe(R)),k.indexOf(R)===0)k=k.slice(R.length);else return{v:new Date(NaN)}}};for(ie.s();!(oe=ie.n()).done;){var F=G();if(tg(F)==="object")return F.v}}catch(O){ie.e(O)}finally{ie.f()}if(k.length>0&&Nhe.test(k))return new Date(NaN);var j=J.map(function(O){return O.priority}).sort(function(O,R){return R-O}).filter(function(O,R,I){return I.indexOf(O)===R}).map(function(O){return J.filter(function(R){return R.priority===O}).sort(function(R,I){return I.subPriority-R.subPriority})}).map(function(O){return O[0]}),B=Me(n);if(isNaN(B.getTime()))return new Date(NaN);var ne=c5(B,Fc(B)),H={},q=sN(j),te;try{for(q.s();!(te=q.n()).done;){var se=te.value;if(!se.validate(ne,Y))return new Date(NaN);var pe=se.set(ne,H,Y);Array.isArray(pe)?(ne=pe[0],OE(H,pe[1])):ne=pe}}catch(O){q.e(O)}finally{q.f()}return ne}function Dhe(e){return e.match(Mhe)[1].replace(Rhe,"'")}function Ahe(e,t){Oe(2,arguments);var n=Me(e),r=Me(t);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()}function jhe(e,t){Oe(2,arguments);var n=Uw(e),r=Uw(t);return n.getTime()===r.getTime()}function Ihe(e,t){Oe(2,arguments);var n=Me(e),r=Me(t);return n.getFullYear()===r.getFullYear()}function zc(e,t){Oe(2,arguments);var n=Me(e).getTime(),r=Me(t.start).getTime(),i=Me(t.end).getTime();if(!(r<=i))throw new RangeError("Invalid interval");return n>=r&&n<=i}function NE(e,t){Oe(2,arguments);var n=Qe(t);return hl(e,-n)}function Ao(e,t){var n;Oe(1,arguments);var r=Qe((n=t==null?void 0:t.additionalDigits)!==null&&n!==void 0?n:2);if(r!==2&&r!==1&&r!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof e=="string"||Object.prototype.toString.call(e)==="[object String]"))return new Date(NaN);var i=zhe(e),o;if(i.date){var s=Uhe(i.date,r);o=Vhe(s.restDateString,s.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);var a=o.getTime(),l=0,c;if(i.time&&(l=Hhe(i.time),isNaN(l)))return new Date(NaN);if(i.timezone){if(c=Whe(i.timezone),isNaN(c))return new Date(NaN)}else{var f=new Date(a+l),h=new Date(0);return h.setFullYear(f.getUTCFullYear(),f.getUTCMonth(),f.getUTCDate()),h.setHours(f.getUTCHours(),f.getUTCMinutes(),f.getUTCSeconds(),f.getUTCMilliseconds()),h}return new Date(a+l+c)}var kp={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Fhe=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,$he=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Bhe=/^([+-])(\d{2})(?::?(\d{2}))?$/;function zhe(e){var t={},n=e.split(kp.dateTimeDelimiter),r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],kp.timeZoneDelimiter.test(t.date)&&(t.date=e.split(kp.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){var i=kp.timezone.exec(r);i?(t.time=r.replace(i[1],""),t.timezone=i[1]):t.time=r}return t}function Uhe(e,t){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};var i=r[1]?parseInt(r[1]):null,o=r[2]?parseInt(r[2]):null;return{year:o===null?i:o*100,restDateString:e.slice((r[1]||r[2]).length)}}function Vhe(e,t){if(t===null)return new Date(NaN);var n=e.match(Fhe);if(!n)return new Date(NaN);var r=!!n[4],i=Fu(n[1]),o=Fu(n[2])-1,s=Fu(n[3]),a=Fu(n[4]),l=Fu(n[5])-1;if(r)return Khe(t,a,l)?Yhe(t,a,l):new Date(NaN);var c=new Date(0);return!Ghe(t,o,s)||!Zhe(t,i)?new Date(NaN):(c.setUTCFullYear(t,o,Math.max(i,s)),c)}function Fu(e){return e?parseInt(e):1}function Hhe(e){var t=e.match($he);if(!t)return NaN;var n=O1(t[1]),r=O1(t[2]),i=O1(t[3]);return Xhe(n,r,i)?n*b_+r*wE+i*1e3:NaN}function O1(e){return e&&parseFloat(e.replace(",","."))||0}function Whe(e){if(e==="Z")return 0;var t=e.match(Bhe);if(!t)return 0;var n=t[1]==="+"?-1:1,r=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return Qhe(r,i)?n*(r*b_+i*wE):NaN}function Yhe(e,t,n){var r=new Date(0);r.setUTCFullYear(e,0,4);var i=r.getUTCDay()||7,o=(t-1)*7+n+1-i;return r.setUTCDate(r.getUTCDate()+o),r}var qhe=[31,null,31,30,31,30,31,31,30,31,30,31];function S5(e){return e%400===0||e%4===0&&e%100!==0}function Ghe(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(qhe[t]||(S5(e)?29:28))}function Zhe(e,t){return t>=1&&t<=(S5(e)?366:365)}function Khe(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function Xhe(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function Qhe(e,t){return t>=0&&t<=59}function Yi(e,t){Oe(2,arguments);var n=Me(e),r=Qe(t),i=n.getFullYear(),o=n.getDate(),s=new Date(0);s.setFullYear(i,r,15),s.setHours(0,0,0,0);var a=lce(s);return n.setMonth(r,Math.min(o,a)),n}function Tf(e,t){Oe(2,arguments);var n=Me(e),r=Qe(t);return n.setHours(r),n}function Of(e,t){Oe(2,arguments);var n=Me(e),r=Qe(t);return n.setMinutes(r),n}function Qu(e,t){Oe(2,arguments);var n=Me(e),r=Qe(t),i=Math.floor(n.getMonth()/3)+1,o=r-i;return Yi(n,n.getMonth()+o*3)}function Jhe(e,t){Oe(2,arguments);var n=Me(e),r=Qe(t);return n.setSeconds(r),n}function Qv(e,t){Oe(2,arguments);var n=Me(e),r=Qe(t);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(r),n)}function Cd(e,t){Oe(2,arguments);var n=Qe(t);return no(e,-n)}function epe(e,t){Oe(2,arguments);var n=Qe(t);return bE(e,-n)}function Ed(e,t){Oe(2,arguments);var n=Qe(t);return $c(e,-n)}const Pf="yyyy-MM-dd",LE="yyyy-MM-dd HH:mm",Ws=()=>new Date,DE=e=>typeof e!="string",C5=(e,t)=>!e||!DE(e)?e:t?yo(e,t):sce(e),E5=(e=Pf)=>t=>C5(t,e),Ys=e=>C5(e,void 0),Mp=E5(),Jv=E5(LE),bi=e=>DE(e)?e:Ao(e),lN=e=>e?bi(e):null,oh=(e,t,n)=>{try{return zc(bi(e),{start:bi(t??e),end:bi(n??e)})}catch{return!1}},va=(e,t)=>g5(e,t)||Gr(e,t),sh="all",T5={today:"Today",yesterday:"Yesterday",last7Days:"Last 7 days",last30Days:"Last 30 days",last90Days:"Last 90 days",last180Days:"Last 180 days",last365Days:"Last 365 days",[sh]:void 0},O5=Object.keys(T5),P5=e=>e===void 0||Wn(Sj(Boolean,e)),ey=e=>typeof e=="string"&&O5.includes(e),tpe=O5.filter(e=>e!==sh),k5=(e,t)=>({startDate:lN(e),endDate:lN(t)}),npe=e=>{if(!(!e||P5(e)))return e.startDate&&!e.endDate?`Since ${Mp(e.startDate)}`:!e.startDate&&e.endDate?`Until ${Mp(e.endDate)}`:`${Mp(e.startDate)} - ${Mp(e.endDate)}`},AE=e=>{if(!(!e||e===sh))return ey(e)?T5[e]:npe(e)},Yr=e=>Lr(NE(Ws(),e)),Dl=e=>({startDate:e,endDate:il(Ws())}),M5=XS([[ga("today"),()=>Dl(Lr(Ws()))],[ga("yesterday"),()=>({startDate:Yr(1),endDate:il(NE(Ws(),1))})],[ga("last7Days"),()=>Dl(Yr(7))],[ga("last30Days"),()=>Dl(Yr(30))],[ga("last90Days"),()=>Dl(Yr(90))],[ga("last180Days"),()=>Dl(Yr(180))],[ga("last365Days"),()=>Dl(Yr(365))],[gj,()=>({})]]),rpe=e=>{const t=bi(e);return XS([[()=>va(Lr(Ws()),t),()=>"today"],[()=>va(Yr(1),t),()=>"yesterday"],[()=>va(Yr(7),t),()=>"last7Days"],[()=>va(Yr(30),t),()=>"last30Days"],[()=>va(Yr(90),t),()=>"last90Days"],[()=>va(Yr(180),t),()=>"last180Days"],[()=>va(Yr(365),t),()=>"last365Days"],[gj,()=>sh]])()},ipe=e=>ey(e)?M5(e):e,ah=yn("shlink/visitCreation/createNewVisits",e=>({payload:{createdVisits:e}})),cN=5e3,uN=4,fN=2,ope=({currentPage:e,pagesCount:t})=>e>=t,spe=(e,t)=>t*100/e,lh=({typePrefix:e,createLoaders:t,getExtraFulfilledPayload:n,shouldCancel:r})=>{const i=yn(`${e}/progressChanged`),o=yn(`${e}/large`),s=yn(`${e}/fallbackToInterval`),a=rr(e,async(l,{getState:c,dispatch:f})=>{var w;const[h,p]=t(l,c),m=async S=>Promise.all(S.map(async T=>h(T,cN).then(at("data")))).then(nZ),v=async(S,T=0)=>{if(r(c))return[];const P=await m(S[T]);return f(i(spe(S.length,T+fN))),T{const{pagination:T,data:P}=await h(S,cN);if(!T||ope(T))return P;const k=QS(fN,T.pagesCount+1),N=ad(uN,k);return T.pagesCount-1>uN&&f(o()),P.concat(await v(N))},[x,_]=await Promise.all([y(),p((w=l.query)==null?void 0:w.excludeBots)]);return!x.length&&_&&f(s(rpe(_.date))),{...n(l),visits:x}});return Object.assign(a,{progressChanged:i,large:o,fallbackToInterval:s})},ch=(e,t)=>async n=>e?t({page:1,itemsPerPage:1,excludeBots:n}).then(({data:r})=>r[0]):Promise.resolve(void 0),uh=({name:e,asyncThunkCreator:t,initialState:n,filterCreatedVisits:r})=>{const{pending:i,rejected:o,fulfilled:s,large:a,progressChanged:l,fallbackToInterval:c}=t,{reducer:f,actions:h}=Yn({name:e,initialState:n,reducers:{cancelGetVisits:m=>({...m,cancelLoad:!0})},extraReducers:m=>{m.addCase(i,()=>({...n,loading:!0})),m.addCase(o,(v,{error:y})=>({...n,error:!0,errorData:ro(y)})),m.addCase(s,(v,{payload:y})=>({...v,...y,loading:!1,loadingLarge:!1,error:!1})),m.addCase(a,v=>({...v,loadingLarge:!0})),m.addCase(l,(v,{payload:y})=>({...v,progress:y})),m.addCase(c,(v,{payload:y})=>({...v,fallbackInterval:y})),m.addCase(ah,(v,{payload:y})=>{const{visits:x}=v,_=r(v,y.createdVisits).map(({visit:w})=>w);return _.length?{...v,visits:[..._,...x]}:v})}}),{cancelGetVisits:p}=h;return{reducer:f,cancelGetVisits:p}},R5="shlink/domainVisits",N5="DEFAULT",ape={visits:[],domain:"",loading:!1,loadingLarge:!1,error:!1,cancelLoad:!1,progress:0},lpe=e=>lh({typePrefix:`${R5}/getDomainVisits`,createLoaders:({domain:t,query:n={},doIntervalFallback:r=!1},i)=>{const{getDomainVisits:o}=e(i),s=async(l,c)=>o(t,{...n,page:l,itemsPerPage:c}),a=ch(r,async l=>o(t,l));return[s,a]},getExtraFulfilledPayload:({domain:t,query:n={}})=>({domain:t,query:n}),shouldCancel:t=>t().domainVisits.cancelLoad}),cpe=e=>uh({name:R5,initialState:ape,asyncThunkCreator:e,filterCreatedVisits:({domain:t,query:n={}},r)=>{const{startDate:i,endDate:o}=n;return r.filter(({shortUrl:s,visit:a})=>s&&Mae(s,t)&&oh(a.date,i,o))}}),ru=({children:e,label:t,className:n="",labelClassName:r="",noMargin:i=!1,id:o})=>g.jsxs("div",{className:`${n} ${i?"":"mb-3"}`,children:[g.jsx("label",{className:`form-label ${r}`,htmlFor:o,children:t}),e]}),ng=({children:e,value:t,onChange:n,type:r,required:i,placeholder:o,className:s,labelClassName:a})=>{const l=v_();return g.jsx(ru,{label:g.jsxs(g.Fragment,{children:[e,":"]}),className:s??"",labelClassName:a,id:l,children:g.jsx("input",{id:l,className:"form-control",type:r??"text",value:t,required:i??!0,placeholder:o,onChange:c=>n(c.target.value)})})},rg=({className:e="",placement:t,children:n})=>{const r=dl();return g.jsxs(g.Fragment,{children:[g.jsx("span",{className:e,ref:r,children:g.jsx(je,{icon:fC})}),g.jsx(Er,{target:r,placement:t,children:n})]})},P1=({isLast:e,...t})=>g.jsx(ng,{...t,required:!1,type:"url",placeholder:"No redirect",className:e?"mb-0":""}),upe=({isOpen:e,toggle:t,domain:n,editDomainRedirects:r})=>{var h,p,m;const[i,o]=V.useState(((h=n.redirects)==null?void 0:h.baseUrlRedirect)??""),[s,a]=V.useState(((p=n.redirects)==null?void 0:p.regular404Redirect)??""),[l,c]=V.useState(((m=n.redirects)==null?void 0:m.invalidShortUrlRedirect)??""),f=rh(async()=>r({domain:n.domain,redirects:{baseUrlRedirect:b1(i),regular404Redirect:b1(s),invalidShortUrlRedirect:b1(l)}}).then(t));return g.jsx(Vo,{isOpen:e,toggle:t,centered:!0,children:g.jsxs("form",{name:"domainRedirectsModal",onSubmit:f,children:[g.jsxs(io,{toggle:t,children:["Edit redirects for ",g.jsx("b",{children:n.domain})]}),g.jsxs(Mi,{children:[g.jsxs(P1,{value:i,onChange:o,children:[g.jsxs(rg,{className:"me-2",placement:"bottom",children:["Visitors accessing the base url, as in ",g.jsxs("b",{children:["https://",n.domain,"/"]}),", will be redirected to this URL."]}),"Base URL"]}),g.jsxs(P1,{value:s,onChange:a,children:[g.jsxs(rg,{className:"me-2",placement:"bottom",children:["Visitors accessing a url not matching a short URL pattern, as in ",g.jsxs("b",{children:["https://",n.domain,"/???/[...]"]}),", will be redirected to this URL."]}),"Regular 404"]}),g.jsxs(P1,{value:l,isLast:!0,onChange:c,children:[g.jsx(rg,{className:"me-2",placement:"bottom",children:"Visitors accessing a url matching a short URL pattern, but not matching an existing short code, will be redirected to this URL."}),"Invalid short URL"]})]}),g.jsxs(ta,{children:[g.jsx(ht,{color:"link",type:"button",onClick:t,children:"Cancel"}),g.jsx(ht,{color:"primary",children:"Save"})]})]})})},fpe=({domain:e,editDomainRedirects:t,selectedServer:n})=>{const[r,i]=hn(),{isDefault:o}=e,s=!o||ki("defaultDomainRedirectsEdition",n),a=ki("domainVisits",n),l=Ud(n);return g.jsxs(__,{children:[a&&g.jsxs(Ue,{tag:Lt,to:`/server/${l}/domain/${e.domain}${e.isDefault?`_${N5}`:""}/visits`,children:[g.jsx(je,{icon:uC,fixedWidth:!0})," Visit stats"]}),g.jsxs(Ue,{disabled:!s,onClick:s?i:void 0,children:[g.jsx(je,{fixedWidth:!0,icon:cC})," Edit redirects"]}),g.jsx(upe,{domain:e,isOpen:r,toggle:i,editDomainRedirects:t})]})},dpe=({status:e,matchMedia:t=window.matchMedia})=>{const n=dl(),r=()=>t("(max-width: 991px)").matches,[i,o]=V.useState(r());return V.useEffect(()=>{const s=()=>o(r());return window.addEventListener("resize",s),()=>window.removeEventListener("resize",s)},[]),e==="validating"?g.jsx(je,{fixedWidth:!0,icon:Xj,spin:!0}):g.jsxs(g.Fragment,{children:[g.jsx("span",{ref:n,children:e==="valid"?g.jsx(je,{fixedWidth:!0,icon:cd,className:"text-muted"}):g.jsx(je,{fixedWidth:!0,icon:uw,className:"text-danger"})}),g.jsx(Er,{target:n,placement:i?"top-start":"left",autohide:e==="valid",children:e==="valid"?"Congratulations! This domain is properly configured.":g.jsxs("span",{children:["Oops! There is some missing configuration, and short URLs shared with this domain will not work.",g.jsx("br",{}),"Check the ",g.jsx(Ci,{href:"https://slnk.to/multi-domain-docs",children:"documentation"})," in order to find out what is missing."]})})]})},k1=({fallback:e})=>g.jsxs("span",{className:"text-muted",children:[!e&&g.jsx("small",{children:"No redirect"}),e&&g.jsxs(g.Fragment,{children:[e," ",g.jsx("small",{children:"(as fallback)"})]})]}),hpe=()=>g.jsxs(g.Fragment,{children:[g.jsx(je,{fixedWidth:!0,icon:JX,className:"text-primary",id:"defaultDomainIcon"}),g.jsx(Er,{target:"defaultDomainIcon",placement:"right",children:"Default domain"})]}),ppe=({domain:e,editDomainRedirects:t,checkDomainHealth:n,defaultRedirects:r,selectedServer:i})=>{const{domain:o,isDefault:s,redirects:a,status:l}=e;return V.useEffect(()=>{n(e.domain)},[]),g.jsxs("tr",{className:"responsive-table__row",children:[g.jsx("td",{className:"responsive-table__cell","data-th":"Is default domain",children:s&&g.jsx(hpe,{})}),g.jsx("th",{className:"responsive-table__cell","data-th":"Domain",children:o}),g.jsx("td",{className:"responsive-table__cell","data-th":"Base path redirect",children:(a==null?void 0:a.baseUrlRedirect)??g.jsx(k1,{fallback:r==null?void 0:r.baseUrlRedirect})}),g.jsx("td",{className:"responsive-table__cell","data-th":"Regular 404 redirect",children:(a==null?void 0:a.regular404Redirect)??g.jsx(k1,{fallback:r==null?void 0:r.regular404Redirect})}),g.jsx("td",{className:"responsive-table__cell","data-th":"Invalid short URL redirect",children:(a==null?void 0:a.invalidShortUrlRedirect)??g.jsx(k1,{fallback:r==null?void 0:r.invalidShortUrlRedirect})}),g.jsx("td",{className:"responsive-table__cell text-lg-center","data-th":"Status",children:g.jsx(dpe,{status:l})}),g.jsx("td",{className:"responsive-table__cell text-end",children:g.jsx(fpe,{domain:e,editDomainRedirects:t,selectedServer:i})})]})},dN=["","Domain","Base path redirect","Regular 404 redirect","Invalid short URL redirect","",""],mpe=({listDomains:e,domainsList:t,filterDomains:n,editDomainRedirects:r,checkDomainHealth:i,selectedServer:o})=>{var m;const{filteredDomains:s,defaultRedirects:a,loading:l,error:c,errorData:f}=t,h=a??((m=s.find(({isDefault:v})=>v))==null?void 0:m.redirects);if(V.useEffect(()=>{e()},[]),l)return g.jsx(Co,{loading:!0});const p=()=>c?g.jsx(Nr,{type:"error",children:g.jsx(Do,{errorData:f,fallbackMessage:"Error loading domains :("})}):g.jsx(cn,{children:g.jsxs("table",{className:"table table-hover responsive-table mb-0",children:[g.jsx("thead",{className:"responsive-table__header",children:g.jsx("tr",{children:dN.map((v,y)=>g.jsx("th",{children:v},y))})}),g.jsxs("tbody",{children:[s.length<1&&g.jsx("tr",{children:g.jsx("td",{colSpan:dN.length,className:"text-center",children:"No results found"})}),s.map(v=>g.jsx(ppe,{domain:v,editDomainRedirects:r,checkDomainHealth:i,defaultRedirects:h,selectedServer:o},v.domain))]})]})});return g.jsxs(g.Fragment,{children:[g.jsx(ih,{className:"mb-3",onChange:n}),p()]})},gpe="shlink/domainRedirects/EDIT_DOMAIN_REDIRECTS",vpe=e=>rr(gpe,async({domain:t,redirects:n},{getState:r})=>{const{editDomainRedirects:i}=e(r),o=await i({domain:t,...n});return{domain:t,redirects:o}}),ype=(e,t)=>{const[n,r]=e.split("://"),[,...i]=r.split("/"),o=i.length?`/${i.join("/")}`:"";return`${n}://${t}${o}`},Rp="shlink/domainsList",Np={domains:[],filteredDomains:[],loading:!1,error:!1},hN=({domain:e,redirects:t})=>n=>n.domain!==e?n:{...n,redirects:t},pN=(e,t)=>n=>n.domain!==e?n:{...n,status:t},_pe=(e,t)=>{const n=rr(`${Rp}/listDomains`,async(s,{getState:a})=>{const{listDomains:l}=e(a),{data:c,defaultRedirects:f}=await l();return{domains:c.map(h=>({...h,status:"validating"})),defaultRedirects:f}}),r=rr(`${Rp}/checkDomainHealth`,async(s,{getState:a})=>{const{selectedServer:l}=a();if(!JS(l))return{domain:s,status:"invalid"};try{const{url:c,...f}=l,{health:h}=e({...f,url:ype(c,s)}),{status:p}=await h();return{domain:s,status:p==="pass"?"valid":"invalid"}}catch{return{domain:s,status:"invalid"}}}),i=yn(`${Rp}/filterDomains`),{reducer:o}=Yn({name:Rp,initialState:Np,reducers:{},extraReducers:s=>{s.addCase(n.pending,()=>({...Np,loading:!0})),s.addCase(n.rejected,(a,{error:l})=>({...Np,error:!0,errorData:ro(l)})),s.addCase(n.fulfilled,(a,{payload:l})=>({...Np,...l,filteredDomains:l.domains})),s.addCase(r.fulfilled,({domains:a,filteredDomains:l,...c},{payload:f})=>({...c,domains:a.map(pN(f.domain,f.status)),filteredDomains:l.map(pN(f.domain,f.status))})),s.addCase(i,(a,{payload:l})=>({...a,filteredDomains:a.domains.filter(({domain:c})=>c.toLowerCase().match(l.toLowerCase()))})),s.addCase(t.fulfilled,(a,{payload:l})=>({...a,domains:a.domains.map(hN(l)),filteredDomains:a.filteredDomains.map(hN(l))}))}});return{reducer:o,listDomains:n,checkDomainHealth:r,filterDomains:i}},bpe=(e,t)=>{e.serviceFactory("DomainSelector",()=>Pae),e.decorator("DomainSelector",t(["domainsList"],["listDomains"])),e.serviceFactory("ManageDomains",()=>mpe),e.decorator("ManageDomains",t(["domainsList","selectedServer"],["listDomains","filterDomains","editDomainRedirects","checkDomainHealth"])),e.serviceFactory("domainsListReducerCreator",_pe,"buildShlinkApiClient","editDomainRedirects"),e.serviceFactory("domainsListReducer",at("reducer"),"domainsListReducerCreator"),e.serviceFactory("listDomains",at("listDomains"),"domainsListReducerCreator"),e.serviceFactory("filterDomains",at("filterDomains"),"domainsListReducerCreator"),e.serviceFactory("editDomainRedirects",vpe,"buildShlinkApiClient"),e.serviceFactory("checkDomainHealth",at("checkDomainHealth"),"domainsListReducerCreator")},mN="shlink/mercure",wpe={loading:!0,error:!1},xpe=e=>{const t=rr(`${mN}/loadMercureInfo`,(r,{getState:i})=>{const{settings:o}=i();if(!o.realTimeUpdates.enabled)throw new Error("Real time updates not enabled");return e(i).mercureInfo()}),{reducer:n}=Yn({name:mN,initialState:wpe,reducers:{},extraReducers:r=>{r.addCase(t.pending,i=>({...i,loading:!0,error:!1})),r.addCase(t.rejected,i=>({...i,loading:!1,error:!0})),r.addCase(t.fulfilled,(i,{payload:o})=>({...o,loading:!1,error:!1}))}});return{loadMercureInfo:t,reducer:n}},Spe=e=>{e.serviceFactory("mercureInfoReducerCreator",xpe,"buildShlinkApiClient"),e.serviceFactory("mercureInfoReducer",at("reducer"),"mercureInfoReducerCreator"),e.serviceFactory("loadMercureInfo",at("loadMercureInfo"),"mercureInfoReducerCreator")},L5=({isOpen:e,duplicatedServers:t,onDiscard:n,onSave:r})=>{const i=t.length>1;return g.jsxs(Vo,{centered:!0,isOpen:e,children:[g.jsxs(io,{children:["Duplicated server",i&&"s"]}),g.jsxs(Mi,{children:[g.jsx("p",{children:i?"The next servers already exist:":"There is already a server with:"}),g.jsx("ul",{children:t.map(({url:o,apiKey:s},a)=>i?g.jsxs("li",{children:[g.jsx("b",{children:o})," - ",g.jsx("b",{children:s})]},a):g.jsxs(V.Fragment,{children:[g.jsxs("li",{children:["URL: ",g.jsx("b",{children:o})]}),g.jsxs("li",{children:["API key: ",g.jsx("b",{children:s})]})]},a))}),g.jsxs("span",{children:[i?"Do you want to ignore duplicated servers":"Do you want to save this server anyway","?"]})]}),g.jsxs(ta,{children:[g.jsx(ht,{color:"link",onClick:n,children:i?"Ignore duplicated":"Discard"}),g.jsx(ht,{color:"primary",onClick:r,children:"Save anyway"})]})]})},D5=({onSubmit:e,initialValues:t,children:n,title:r})=>{const[i,o]=V.useState(""),[s,a]=V.useState(""),[l,c]=V.useState(""),f=rh(()=>e({name:i,url:s,apiKey:l}));return V.useEffect(()=>{t&&o(t.name),t&&a(t.url),t&&c(t.apiKey)},[t]),g.jsxs("form",{className:"server-form",name:"serverForm",onSubmit:f,children:[g.jsxs(cn,{className:"mb-3",title:r,children:[g.jsx(ng,{value:i,onChange:o,children:"Name"}),g.jsx(ng,{type:"url",value:s,onChange:a,children:"URL"}),g.jsx(ng,{value:l,onChange:c,children:"API key"})]}),g.jsx("div",{className:"text-end",children:n})]})},gN=4e3,vN=({type:e})=>g.jsx("div",{className:"mt-3",children:g.jsxs(Nr,{type:e,children:[e==="success"&&"Servers properly imported. You can now select one from the list :)",e==="error"&&"The servers could not be imported. Make sure the format is correct."]})}),Cpe=(e,t)=>({servers:n,createServers:r})=>{const i=Fo(),o=na(),s=!!Object.keys(n).length,[a,l]=t(!1,gN),[c,f]=t(!1,gN),[h,p]=hn(),[m,v]=V.useState(),y=()=>{if(!m)return;const x=iE();r([{...m,id:x}]),i(`/server/${x}`)};return V.useEffect(()=>{Object.values(n).some(({url:_,apiKey:w})=>(m==null?void 0:m.url)===_&&(m==null?void 0:m.apiKey)===w)?p():y()},[m]),g.jsxs(nu,{children:[g.jsxs(D5,{title:g.jsx("h5",{className:"mb-0",children:"Add new server"}),onSubmit:v,children:[!s&&g.jsx(e,{tooltipPlacement:"top",onImport:l,onImportError:f}),s&&g.jsx(ht,{outline:!0,onClick:o,children:"Cancel"}),g.jsx(ht,{outline:!0,color:"primary",className:"ms-2",children:"Create server"})]}),a&&g.jsx(vN,{type:"success"}),c&&g.jsx(vN,{type:"error"}),g.jsx(L5,{isOpen:h,duplicatedServers:m?[m]:[],onDiscard:o,onSave:y})]})},Epe=e=>({server:t,className:n,children:r,textClassName:i})=>{const[o,,s,a]=hn();return g.jsxs(g.Fragment,{children:[g.jsxs("span",{className:n,onClick:s,children:[!r&&g.jsx(je,{fixedWidth:!0,icon:lC}),g.jsx("span",{className:i,children:r??"Remove this server"})]}),g.jsx(e,{server:t,isOpen:o,toggle:a})]})},Tpe=({server:e,toggle:t,isOpen:n,deleteServer:r,redirectHome:i=!0})=>{const o=Fo(),s=V.useRef(!1),a=()=>{s.current=!0,t()},l=()=>{s.current&&(r(e),i&&o("/"))};return g.jsxs(Vo,{isOpen:n,toggle:t,centered:!0,onClosed:l,children:[g.jsx(io,{toggle:t,className:"text-danger",children:"Remove server"}),g.jsxs(Mi,{children:[g.jsxs("p",{children:["Are you sure you want to remove ",g.jsx("b",{children:e?e.name:""}),"?"]}),g.jsx("p",{children:g.jsx("i",{children:"No data will be deleted, only the access to this server will be removed from this device. You can create it again at any moment."})})]}),g.jsxs(ta,{children:[g.jsx(ht,{color:"link",onClick:t,children:"Cancel"}),g.jsx(ht,{color:"danger",onClick:a,children:"Delete"})]})]})},Ope=e=>K6(({editServer:t,selectedServer:n,selectServer:r})=>{const i=na(),{reconnect:o}=Noe();if(!Ms(n))return null;const s=a=>{t(n.id,a),o==="true"&&r(n.id),i()};return g.jsx(nu,{children:g.jsxs(D5,{title:g.jsxs("h5",{className:"mb-0",children:['Edit "',n.name,'"']}),initialValues:n,onSubmit:s,children:[g.jsx(ht,{outline:!0,className:"me-2",onClick:i,children:"Cancel"}),g.jsx(ht,{outline:!0,color:"primary",children:"Save"})]})})},e);const yN=e=>({url:t,apiKey:n})=>e.some(r=>r.url===t&&r.apiKey===n),Ppe=({importServersFromFile:e})=>({createServers:t,servers:n,children:r,onImport:i=()=>{},onImportError:o=()=>{},tooltipPlacement:s="bottom",className:a=""})=>{const l=dl(),[c,f]=V.useState(),[h,p]=V.useState([]),[m,,v,y]=hn(),x=Dt(t,i),_=Dt(()=>x(c??[]),y),w=Dt(()=>x((c??[]).filter(_G(yN(h)))),y),S=async({target:T})=>{var P;return e((P=T.files)==null?void 0:P[0]).then(f).then(()=>{T.value=null}).catch(o)};return V.useEffect(()=>{if(!c)return;const T=Object.values(n),P=c.filter(yN(T)),k=!!P.length;k?p(P):x(c),k&&v()},[c]),g.jsxs(g.Fragment,{children:[g.jsxs(ht,{outline:!0,id:"importBtn",className:a,onClick:()=>{var T;return(T=l.current)==null?void 0:T.click()},children:[g.jsx(je,{icon:oQ,fixedWidth:!0})," ",r??"Import from file"]}),g.jsxs(Er,{placement:s,target:"importBtn",children:["You can create servers by importing a CSV file with columns ",g.jsx("b",{children:"name"}),", ",g.jsx("b",{children:"apiKey"})," and ",g.jsx("b",{children:"url"}),"."]}),g.jsx("input",{type:"file",accept:"text/csv",className:"import-servers-btn__csv-select",ref:l,onChange:S}),g.jsx(L5,{isOpen:m,duplicatedServers:h,onDiscard:w,onSave:_})]})};const kpe=e=>({servers:t,selectedServer:n})=>g.jsx(nu,{children:g.jsxs("div",{className:"server-error__container flex-column",children:[g.jsxs(Co,{className:"w-100 mb-3 mb-md-5",type:"error",fullWidth:!0,children:[!Ms(n)&&"Could not find this Shlink server.",Ms(n)&&g.jsxs(g.Fragment,{children:[g.jsx("p",{children:"Oops! Could not connect to this Shlink server."}),"Make sure you have internet connection, and the server is properly configured and on-line."]})]}),g.jsxs(G6,{servers:Object.values(t),children:["These are the Shlink servers currently configured. Choose one of them or ",g.jsx(Lt,{to:"/server/create",children:"add a new one"}),"."]}),Ms(n)&&g.jsx("div",{className:"container mt-3 mt-md-5",children:g.jsxs("h5",{children:["Alternatively, if you think you may have miss-configured this server, you can ",g.jsx(e,{server:n,className:"server-error__delete-btn",children:"remove it"})," or ",g.jsx(Lt,{to:`/server/${n.id}/edit?reconnect=true`,children:"edit it"}),"."]})})]})}),Mpe=4e3,Rpe=(e,t,n,r)=>({servers:i})=>{const o=Object.values(i),[s,a]=V.useState(o),l=p=>a(o.filter(({name:m,url:v})=>`${m} ${v}`.toLowerCase().match(p.toLowerCase()))),c=s.some(({autoConnect:p})=>!!p),[f,h]=n(!1,Mpe);return V.useEffect(()=>{a(Object.values(i))},[i]),g.jsxs(nu,{children:[g.jsx(ih,{className:"mb-3",onChange:l}),g.jsxs(Qn,{className:"mb-3",children:[g.jsxs("div",{className:"col-md-6 d-flex d-md-block mb-2 mb-md-0",children:[g.jsx(t,{className:"flex-fill",onImportError:h,children:"Import servers"}),o.length>0&&g.jsxs(ht,{outline:!0,className:"ms-2 flex-fill",onClick:async()=>e.exportServers(),children:[g.jsx(je,{icon:nI,fixedWidth:!0})," Export servers"]})]}),g.jsx("div",{className:"col-md-6 text-md-end d-flex d-md-block",children:g.jsxs(ht,{outline:!0,color:"primary",className:"flex-fill",tag:Lt,to:"/server/create",children:[g.jsx(je,{icon:dC,fixedWidth:!0})," Add a server"]})})]}),g.jsx(cn,{children:g.jsxs("table",{className:"table table-hover responsive-table mb-0",children:[g.jsx("thead",{className:"responsive-table__header",children:g.jsxs("tr",{children:[c&&g.jsx("th",{"aria-label":"Auto-connect",style:{width:"50px"}}),g.jsx("th",{children:"Name"}),g.jsx("th",{children:"Base URL"}),g.jsx("th",{"aria-label":"Options"})]})}),g.jsxs("tbody",{children:[!s.length&&g.jsx("tr",{className:"text-center",children:g.jsx("td",{colSpan:4,children:"No servers found."})}),s.map(p=>g.jsx(r,{server:p,hasAutoConnect:c},p.id))]})]})}),f&&g.jsx("div",{className:"mt-3",children:g.jsx(Nr,{type:"error",children:"The servers could not be imported. Make sure the format is correct."})})]})},Npe=e=>({server:t,hasAutoConnect:n})=>g.jsxs("tr",{className:"responsive-table__row",children:[n&&g.jsx("td",{className:"responsive-table__cell","data-th":"Auto-connect",children:t.autoConnect&&g.jsxs(g.Fragment,{children:[g.jsx(je,{icon:cd,className:"text-primary",id:"autoConnectIcon"}),g.jsx(Er,{target:"autoConnectIcon",placement:"right",children:"Auto-connect to this server"})]})}),g.jsx("th",{className:"responsive-table__cell","data-th":"Name",children:g.jsx(Lt,{to:`/server/${t.id}`,children:t.name})}),g.jsx("td",{className:"responsive-table__cell","data-th":"Base URL",children:t.url}),g.jsx("td",{className:"responsive-table__cell text-end",children:g.jsx(e,{server:t})})]});var Lpe={prefix:"far",iconName:"calendar-days",icon:[448,512,["calendar-alt"],"f073","M152 24c0-13.3-10.7-24-24-24s-24 10.7-24 24V64H64C28.7 64 0 92.7 0 128v16 48V448c0 35.3 28.7 64 64 64H384c35.3 0 64-28.7 64-64V192 144 128c0-35.3-28.7-64-64-64H344V24c0-13.3-10.7-24-24-24s-24 10.7-24 24V64H152V24zM48 192h80v56H48V192zm0 104h80v64H48V296zm128 0h96v64H176V296zm144 0h80v64H320V296zm80-48H320V192h80v56zm0 160v40c0 8.8-7.2 16-16 16H320V408h80zm-128 0v56H176V408h96zm-144 0v56H64c-8.8 0-16-7.2-16-16V408h80zM272 248H176V192h96v56z"]},Dpe=Lpe,Ape={prefix:"far",iconName:"circle-right",icon:[512,512,[61838,"arrow-alt-circle-right"],"f35a","M464 256A208 208 0 1 1 48 256a208 208 0 1 1 416 0zM0 256a256 256 0 1 0 512 0A256 256 0 1 0 0 256zM294.6 135.1c-4.2-4.5-10.1-7.1-16.3-7.1C266 128 256 138 256 150.3V208H160c-17.7 0-32 14.3-32 32v32c0 17.7 14.3 32 32 32h96v57.7c0 12.3 10 22.3 22.3 22.3c6.2 0 12.1-2.6 16.3-7.1l99.9-107.1c3.5-3.8 5.5-8.7 5.5-13.8s-2-10.1-5.5-13.8L294.6 135.1z"]},jpe=Ape,Ipe={prefix:"far",iconName:"circle",icon:[512,512,[128308,128309,128992,128993,128994,128995,128996,9679,9898,9899,11044,61708,61915],"f111","M512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256zM256 48C141.1 48 48 141.1 48 256C48 370.9 141.1 464 256 464C370.9 464 464 370.9 464 256C464 141.1 370.9 48 256 48z"]},A5={prefix:"far",iconName:"clone",icon:[512,512,[],"f24d","M64 464H288c8.8 0 16-7.2 16-16V384h48v64c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V224c0-35.3 28.7-64 64-64h64v48H64c-8.8 0-16 7.2-16 16V448c0 8.8 7.2 16 16 16zM224 304H448c8.8 0 16-7.2 16-16V64c0-8.8-7.2-16-16-16H224c-8.8 0-16 7.2-16 16V288c0 8.8 7.2 16 16 16zm-64-16V64c0-35.3 28.7-64 64-64H448c35.3 0 64 28.7 64 64V288c0 35.3-28.7 64-64 64H224c-35.3 0-64-28.7-64-64z"]};const Fpe=e=>({server:t,setAutoConnect:n})=>{const[r,,i,o]=hn(),s=`/server/${t.id}`,{autoConnect:a}=t,l=a?rQ:Ipe;return g.jsxs(__,{minWidth:170,children:[g.jsxs(Ue,{tag:Lt,to:s,children:[g.jsx(je,{icon:tQ,fixedWidth:!0})," Connect"]}),g.jsxs(Ue,{tag:Lt,to:`${s}/edit`,children:[g.jsx(je,{icon:cC,fixedWidth:!0})," Edit server"]}),g.jsxs(Ue,{onClick:()=>n(t,!a),children:[g.jsx(je,{icon:l,fixedWidth:!0})," ",a?"Do not a":"A","uto-connect"]}),g.jsx(Ue,{divider:!0}),g.jsxs(Ue,{className:"dropdown-item--danger",onClick:i,children:[g.jsx(je,{icon:lC,fixedWidth:!0})," Remove server"]}),g.jsx(e,{redirectHome:!1,server:t,isOpen:r,toggle:o})]})};var Jx={exports:{}};/** @license - * eventsource.js - * Available under MIT License (MIT) - * https://github.com/Yaffle/EventSource/ - */(function(e,t){(function(n){var r=n.setTimeout,i=n.clearTimeout,o=n.XMLHttpRequest,s=n.XDomainRequest,a=n.ActiveXObject,l=n.EventSource,c=n.document,f=n.Promise,h=n.fetch,p=n.Response,m=n.TextDecoder,v=n.TextEncoder,y=n.AbortController;if(typeof window<"u"&&typeof c<"u"&&!("readyState"in c)&&c.body==null&&(c.readyState="loading",window.addEventListener("load",function(ue){c.readyState="complete"},!1)),o==null&&a!=null&&(o=function(){return new a("Microsoft.XMLHTTP")}),Object.create==null&&(Object.create=function(ue){function ve(){}return ve.prototype=ue,new ve}),Date.now||(Date.now=function(){return new Date().getTime()}),y==null){var x=h;h=function(ue,ve){var _e=ve.signal;return x(ue,{headers:ve.headers,credentials:ve.credentials,cache:ve.cache}).then(function(Te){var De=Te.body.getReader();return _e._reader=De,_e._aborted&&_e._reader.cancel(),{status:Te.status,statusText:Te.statusText,headers:Te.headers,body:{getReader:function(){return De}}}})},y=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){this.signal._reader!=null&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function _(){this.bitsNeeded=0,this.codePoint=0}_.prototype.decode=function(ue){function ve(be,ye,Ce){if(Ce===1)return be>=128>>ye&&be<=2048>>ye&&be<=57344>>ye&&be<=65536>>ye&&be<>6>15?3:ye>31?2:1;if(be===6*2)return ye>15?3:2;if(be===6*3)return 3;throw new Error}for(var Te=65533,De="",Re=this.bitsNeeded,Ne=this.codePoint,ce=0;ce191||!ve(Ne<<6|de&63,Re-6,_e(Re,Ne)))&&(Re=0,Ne=Te,De+=String.fromCharCode(Ne)),Re===0?(de>=0&&de<=127?(Re=0,Ne=de):de>=192&&de<=223?(Re=6*1,Ne=de&31):de>=224&&de<=239?(Re=6*2,Ne=de&15):de>=240&&de<=247?(Re=6*3,Ne=de&7):(Re=0,Ne=Te),Re!==0&&!ve(Ne,Re,_e(Re,Ne))&&(Re=0,Ne=Te)):(Re-=6,Ne=Ne<<6|de&63),Re===0&&(Ne<=65535?De+=String.fromCharCode(Ne):(De+=String.fromCharCode(55296+(Ne-65535-1>>10)),De+=String.fromCharCode(56320+(Ne-65535-1&1023))))}return this.bitsNeeded=Re,this.codePoint=Ne,De};var w=function(){try{return new m().decode(new v().encode("test"),{stream:!0})==="test"}catch(ue){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+ue)}return!1};(m==null||v==null||!w())&&(m=_);var S=function(){};function T(ue){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=S,this.onload=S,this.onerror=S,this.onreadystatechange=S,this._contentType="",this._xhr=ue,this._sendTimeout=0,this._abort=S}T.prototype.open=function(ue,ve){this._abort(!0);var _e=this,Te=this._xhr,De=1,Re=0;this._abort=function(Ce){_e._sendTimeout!==0&&(i(_e._sendTimeout),_e._sendTimeout=0),(De===1||De===2||De===3)&&(De=4,Te.onload=S,Te.onerror=S,Te.onabort=S,Te.onprogress=S,Te.onreadystatechange=S,Te.abort(),Re!==0&&(i(Re),Re=0),Ce||(_e.readyState=4,_e.onabort(null),_e.onreadystatechange())),De=0};var Ne=function(){if(De===1){var Ce=0,ke="",Ie=void 0;if("contentType"in Te)Ce=200,ke="OK",Ie=Te.contentType;else try{Ce=Te.status,ke=Te.statusText,Ie=Te.getResponseHeader("Content-Type")}catch{Ce=0,ke="",Ie=void 0}Ce!==0&&(De=2,_e.readyState=2,_e.status=Ce,_e.statusText=ke,_e._contentType=Ie,_e.onreadystatechange())}},ce=function(){if(Ne(),De===2||De===3){De=3;var Ce="";try{Ce=Te.responseText}catch{}_e.readyState=3,_e.responseText=Ce,_e.onprogress()}},de=function(Ce,ke){if((ke==null||ke.preventDefault==null)&&(ke={preventDefault:S}),ce(),De===1||De===2||De===3){if(De=4,Re!==0&&(i(Re),Re=0),_e.readyState=4,Ce==="load")_e.onload(ke);else if(Ce==="error")_e.onerror(ke);else if(Ce==="abort")_e.onabort(ke);else throw new TypeError;_e.onreadystatechange()}},be=function(Ce){Te!=null&&(Te.readyState===4?(!("onload"in Te)||!("onerror"in Te)||!("onabort"in Te))&&de(Te.responseText===""?"error":"load",Ce):Te.readyState===3?"onprogress"in Te||ce():Te.readyState===2&&Ne())},ye=function(){Re=r(function(){ye()},500),Te.readyState===3&&ce()};"onload"in Te&&(Te.onload=function(Ce){de("load",Ce)}),"onerror"in Te&&(Te.onerror=function(Ce){de("error",Ce)}),"onabort"in Te&&(Te.onabort=function(Ce){de("abort",Ce)}),"onprogress"in Te&&(Te.onprogress=ce),"onreadystatechange"in Te&&(Te.onreadystatechange=function(Ce){be(Ce)}),("contentType"in Te||!("ontimeout"in o.prototype))&&(ve+=(ve.indexOf("?")===-1?"?":"&")+"padding=true"),Te.open(ue,ve,!0),"readyState"in Te&&(Re=r(function(){ye()},0))},T.prototype.abort=function(){this._abort(!1)},T.prototype.getResponseHeader=function(ue){return this._contentType},T.prototype.setRequestHeader=function(ue,ve){var _e=this._xhr;"setRequestHeader"in _e&&_e.setRequestHeader(ue,ve)},T.prototype.getAllResponseHeaders=function(){return this._xhr.getAllResponseHeaders!=null&&this._xhr.getAllResponseHeaders()||""},T.prototype.send=function(){if((!("ontimeout"in o.prototype)||!("sendAsBinary"in o.prototype)&&!("mozAnon"in o.prototype))&&c!=null&&c.readyState!=null&&c.readyState!=="complete"){var ue=this;ue._sendTimeout=r(function(){ue._sendTimeout=0,ue.send()},4);return}var ve=this._xhr;"withCredentials"in ve&&(ve.withCredentials=this.withCredentials);try{ve.send(void 0)}catch(_e){throw _e}};function P(ue){return ue.replace(/[A-Z]/g,function(ve){return String.fromCharCode(ve.charCodeAt(0)+32)})}function k(ue){for(var ve=Object.create(null),_e=ue.split(`\r -`),Te=0;Te<_e.length;Te+=1){var De=_e[Te],Re=De.split(": "),Ne=Re.shift(),ce=Re.join(": ");ve[P(Ne)]=ce}this._map=ve}k.prototype.get=function(ue){return this._map[P(ue)]},o!=null&&o.HEADERS_RECEIVED==null&&(o.HEADERS_RECEIVED=2);function N(){}N.prototype.open=function(ue,ve,_e,Te,De,Re,Ne){ue.open("GET",De);var ce=0;ue.onprogress=function(){var be=ue.responseText,ye=be.slice(ce);ce+=ye.length,_e(ye)},ue.onerror=function(be){be.preventDefault(),Te(new Error("NetworkError"))},ue.onload=function(){Te(null)},ue.onabort=function(){Te(null)},ue.onreadystatechange=function(){if(ue.readyState===o.HEADERS_RECEIVED){var be=ue.status,ye=ue.statusText,Ce=ue.getResponseHeader("Content-Type"),ke=ue.getAllResponseHeaders();ve(be,ye,Ce,new k(ke))}},ue.withCredentials=Re;for(var de in Ne)Object.prototype.hasOwnProperty.call(Ne,de)&&ue.setRequestHeader(de,Ne[de]);return ue.send(),ue};function D(ue){this._headers=ue}D.prototype.get=function(ue){return this._headers.get(ue)};function z(){}z.prototype.open=function(ue,ve,_e,Te,De,Re,Ne){var ce=null,de=new y,be=de.signal,ye=new m;return h(De,{headers:Ne,credentials:Re?"include":"same-origin",signal:be,cache:"no-store"}).then(function(Ce){return ce=Ce.body.getReader(),ve(Ce.status,Ce.statusText,Ce.headers.get("Content-Type"),new D(Ce.headers)),new f(function(ke,Ie){var Je=function(){ce.read().then(function(et){if(et.done)ke(void 0);else{var Ge=ye.decode(et.value,{stream:!0});_e(Ge),Je()}}).catch(function(et){Ie(et)})};Je()})}).catch(function(Ce){if(Ce.name!=="AbortError")return Ce}).then(function(Ce){Te(Ce)}),{abort:function(){ce!=null&&ce.cancel(),de.abort()}}};function A(){this._listeners=Object.create(null)}function W(ue){r(function(){throw ue},0)}A.prototype.dispatchEvent=function(ue){ue.target=this;var ve=this._listeners[ue.type];if(ve!=null)for(var _e=ve.length,Te=0;Te<_e;Te+=1){var De=ve[Te];try{typeof De.handleEvent=="function"?De.handleEvent(ue):De.call(this,ue)}catch(Re){W(Re)}}},A.prototype.addEventListener=function(ue,ve){ue=String(ue);var _e=this._listeners,Te=_e[ue];Te==null&&(Te=[],_e[ue]=Te);for(var De=!1,Re=0;Re"u"?typeof window<"u"?window:typeof self<"u"?self:$l:globalThis)})(Jx,Jx.exports);var $pe=Jx.exports;const Bpe=(e,t,n,r)=>{const{mercureHubUrl:i,token:o,loading:s,error:a}=e;if(s||a||!i)return;const l=({data:h})=>n(JSON.parse(h)),c=({status:h})=>h===401&&r(),f=t.map(h=>{const p=new URL(i);p.searchParams.append("topic",h);const m=new $pe.EventSourcePolyfill(p,{headers:{Authorization:`Bearer ${o}`}});return m.onmessage=l,m.onerror=c,m});return()=>f.forEach(h=>h.close())};function ra(e,t){const n=new Set;return r=>{const{createNewVisits:i,loadMercureInfo:o,mercureInfo:s}=r,{interval:a}=s,l=Xs();return V.useEffect(()=>{const c=m=>a?n.add(m):i([m]),f=t(r,l),h=Bpe(s,f,c,o);if(!a)return h;const p=setInterval(()=>{i([...n]),n.clear()},a*1e3*60);return Dt(()=>clearInterval(p),()=>h==null?void 0:h())},[s]),g.jsx(e,{...r})}}class Xr{}xe(Xr,"visits","https://shlink.io/new-visit"),xe(Xr,"orphanVisits","https://shlink.io/new-orphan-visit"),xe(Xr,"shortUrlVisits",t=>`https://shlink.io/new-visit/${t}`);const jE="shlink/shortUrlDeletion",_N={shortCode:"",loading:!1,deleted:!1,error:!1},zpe=e=>rr(`${jE}/deleteShortUrl`,async({shortCode:t,domain:n},{getState:r})=>{const{deleteShortUrl:i}=e(r);return await i(t,n),{shortCode:t,domain:n}}),j5=yn(`${jE}/shortUrlDeleted`),Upe=e=>{const{actions:t,reducer:n}=Yn({name:jE,initialState:_N,reducers:{resetDeleteShortUrl:()=>_N},extraReducers:i=>{i.addCase(e.pending,o=>({...o,loading:!0,error:!1,deleted:!1})),i.addCase(e.rejected,(o,{error:s})=>({...o,errorData:ro(s),loading:!1,error:!0,deleted:!1})),i.addCase(e.fulfilled,(o,{payload:s})=>({...o,shortCode:s.shortCode,loading:!1,error:!1,deleted:!0}))}}),{resetDeleteShortUrl:r}=t;return{reducer:n,resetDeleteShortUrl:r}},I5="shlink/shortUrlsList",F5=5,Vpe={loading:!0,error:!1},Hpe=e=>rr(`${I5}/listShortUrls`,(t,{getState:n})=>{const{listShortUrls:r}=e(n);return r(t??{})}),Wpe=(e,t,n)=>Yn({name:I5,initialState:Vpe,reducers:{},extraReducers:r=>{r.addCase(e.pending,i=>({...i,loading:!0,error:!1})),r.addCase(e.rejected,()=>({loading:!1,error:!0})),r.addCase(e.fulfilled,(i,{payload:o})=>({loading:!1,error:!1,shortUrls:o})),r.addCase(n.fulfilled,Dt((i,{payload:o})=>i.shortUrls?Tl(["shortUrls","data"],[o,...i.shortUrls.data.slice(0,F5-1)],i):i,i=>i.shortUrls?Tl(["shortUrls","pagination","totalItems"],i.shortUrls.pagination.totalItems+1,i):i)),r.addCase(t.fulfilled,(i,{payload:o})=>i.shortUrls?Tl(["shortUrls","data"],i.shortUrls.data.map(s=>{const{shortCode:a,domain:l}=o;return Ef(s,a,l)?o:s}),i):i),r.addCase(j5,Dt((i,{payload:o})=>i.shortUrls?Tl(["shortUrls","data"],zd(s=>Ef(s,o.shortCode,o.domain),i.shortUrls.data),i):i,i=>i.shortUrls?Tl(["shortUrls","pagination","totalItems"],i.shortUrls.pagination.totalItems-1,i):i)),r.addCase(ah,(i,{payload:o})=>{var s,a;return Tl(["shortUrls","data"],(a=(s=i.shortUrls)==null?void 0:s.data)==null?void 0:a.map(l=>{var c;return((c=QG(o.createdVisits.filter(({shortUrl:f})=>f&&Ef(l,f.shortCode,f.domain))))==null?void 0:c.shortUrl)??l}),i)})}}),bN=10,{ceil:Ype}=Math,qpe=new Intl.NumberFormat("en-US"),_n=e=>qpe.format(Number(e)),Gpe=e=>Ype(e/bN)*bN;const Zpe=e=>e?{tag:Lt,to:e}:{},e2=({children:e,title:t,link:n,tooltip:r})=>{const i=dl();return g.jsxs(g.Fragment,{children:[g.jsxs(Sr,{innerRef:i,className:"highlight-card",body:!0,...Zpe(n),children:[n&&g.jsx(je,{size:"3x",className:"highlight-card__link-icon",icon:jpe}),g.jsx(GC,{tag:"h5",className:"highlight-card__title",children:t}),g.jsx(qC,{tag:"h2",children:e})]}),r&&g.jsx(Er,{target:i,placement:"bottom",children:r})]})},wN=({loading:e,excludeBots:t,visitsSummary:n,...r})=>g.jsx(e2,{tooltip:n.bots!==void 0?g.jsxs(g.Fragment,{children:[t?"Plus":"Including"," ",g.jsx("b",{children:_n(n.bots)})," potential bot visits"]}):void 0,...r,children:e?"Loading...":_n(t&&n.nonBots?n.nonBots:n.total)}),Kpe=(e,t)=>ra(({shortUrlsList:n,listShortUrls:r,listTags:i,tagsList:o,selectedServer:s,loadVisitsOverview:a,visitsOverview:l,settings:{visits:c}})=>{const{loading:f,shortUrls:h}=n,{loading:p}=o,{loading:m,nonOrphanVisits:v,orphanVisits:y}=l,x=Ud(s),_=ki("nonOrphanVisits",s),w=Fo();return V.useEffect(()=>{r({itemsPerPage:F5,orderBy:{field:"dateCreated",dir:"DESC"}}),i(),a()},[]),g.jsxs(g.Fragment,{children:[g.jsxs(Qn,{children:[g.jsx("div",{className:"col-lg-6 col-xl-3 mb-3",children:g.jsx(wN,{title:"Visits",link:_?`/server/${x}/non-orphan-visits`:void 0,excludeBots:(c==null?void 0:c.excludeBots)??!1,loading:m,visitsSummary:v})}),g.jsx("div",{className:"col-lg-6 col-xl-3 mb-3",children:g.jsx(wN,{title:"Orphan visits",link:`/server/${x}/orphan-visits`,excludeBots:(c==null?void 0:c.excludeBots)??!1,loading:m,visitsSummary:y})}),g.jsx("div",{className:"col-lg-6 col-xl-3 mb-3",children:g.jsx(e2,{title:"Short URLs",link:`/server/${x}/list-short-urls/1`,children:f?"Loading...":_n((h==null?void 0:h.pagination.totalItems)??0)})}),g.jsx("div",{className:"col-lg-6 col-xl-3 mb-3",children:g.jsx(e2,{title:"Tags",link:`/server/${x}/manage-tags`,children:p?"Loading...":_n(o.tags.length)})})]}),g.jsxs(Sr,{className:"mb-3",children:[g.jsxs(nl,{children:[g.jsx("span",{className:"d-sm-none",children:"Create a short URL"}),g.jsx("h5",{className:"d-none d-sm-inline",children:"Create a short URL"}),g.jsx(Lt,{className:"float-end",to:`/server/${x}/create-short-url`,children:"Advanced options »"})]}),g.jsx(tl,{children:g.jsx(t,{basicMode:!0})})]}),g.jsxs(Sr,{children:[g.jsxs(nl,{children:[g.jsx("span",{className:"d-sm-none",children:"Recently created URLs"}),g.jsx("h5",{className:"d-none d-sm-inline",children:"Recently created URLs"}),g.jsx(Lt,{className:"float-end",to:`/server/${x}/list-short-urls/1`,children:"See all »"})]}),g.jsx(tl,{children:g.jsx(e,{shortUrlsList:n,selectedServer:s,className:"mb-0",onTagClick:S=>w(`/server/${x}/list-short-urls/1?tags=${encodeURIComponent(S)}`)})})]})]})},()=>[Xr.visits,Xr.orphanVisits]),Xpe={},Qpe=e=>e.id?e:sd("id",iE(),e),Jpe=YS((e,t)=>sd(t.id,t,e),{}),{actions:eme,reducer:tme}=Yn({name:"shlink/servers",initialState:Xpe,reducers:{editServer:{prepare:(e,t)=>({payload:{serverId:e,serverData:t}}),reducer:(e,{payload:t})=>{const{serverId:n,serverData:r}=t;return e[n]?sd(n,{...e[n],...r},e):e}},deleteServer:(e,{payload:t})=>KG(t.id,e),setAutoConnect:{prepare:({id:e},t)=>({payload:{serverId:e,autoConnect:t}}),reducer:(e,{payload:t})=>{const{serverId:n,autoConnect:r}=t;return e[n]?r?Gu(qg(e).map(([i,o])=>[i,{...o,autoConnect:i===n}])):sd(n,{...e[n],autoConnect:r},e):e}},createServers:{prepare:Dt(Bd(Qpe),Jpe,e=>({payload:e})),reducer:(e,{payload:t})=>({...e,...t})}}}),{editServer:nme,deleteServer:rme,setAutoConnect:ime,createServers:$5}=eme,ome=tme,sme=e=>Array.isArray(e)?e.filter(JS):[],ame=e=>rr("shlink/remoteServers/fetchServers",async(t,{dispatch:n})=>{const r=await e.fetchJson(`${Ug.homepage}/servers.json`),i=sme(r);n($5(i))}),lme=({servers:e,selectedServer:t})=>{const n=Kc(e),r=()=>Wn(n)?g.jsxs(Ue,{tag:Lt,to:"/server/create",children:[g.jsx(je,{icon:dC})," ",g.jsx("span",{className:"ms-1",children:"Add a server"})]}):g.jsxs(g.Fragment,{children:[n.map(({name:i,id:o})=>g.jsx(Ue,{tag:Lt,to:`/server/${o}`,active:Ud(t)===o,children:i},o)),g.jsx(Ue,{divider:!0}),g.jsxs(Ue,{tag:Lt,to:"/manage-servers",children:[g.jsx(je,{icon:vM})," ",g.jsx("span",{className:"ms-1",children:"Manage servers"})]})]});return g.jsxs(Jd,{nav:!0,inNavbar:!0,children:[g.jsxs(Zd,{nav:!0,caret:!0,children:[g.jsx(je,{icon:vM})," ",g.jsx("span",{className:"ms-1",children:"Servers"})]}),g.jsx(eu,{end:!0,style:{right:0},children:r()})]})},cme="shlink-servers.csv";class ume{constructor(t,n,r){xe(this,"exportServers",async()=>{const t=Kc(this.storage.get("servers")??{}).map(jZ);try{const n=this.jsonToCsv(t);i5(this.window,n,cme)}catch(n){console.error(n)}});this.storage=t,this.window=n,this.jsonToCsv=r}}const fme=e=>typeof e.url=="string"&&typeof e.apiKey=="string"&&typeof e.name=="string",dme=e=>Array.isArray(e)&&e.every(fme);class hme{constructor(t,n){xe(this,"importServersFromFile",async t=>{if(!t)throw new Error("No file provided");const n=this.fileReaderFactory();return new Promise((r,i)=>{n.addEventListener("loadend",async o=>{var s,a;try{const l=((a=(s=o.target)==null?void 0:s.result)==null?void 0:a.toString())??"",c=await this.csvToJson(l);if(!dme(c))throw new Error("Provided file does not have the right format.");r(c)}catch(l){i(l)}}),n.readAsText(t)})});this.csvToJson=t,this.fileReaderFactory=n}}const pme=(e,t)=>{e.serviceFactory("ManageServers",Rpe,"ServersExporter","ImportServersBtn","useTimeoutToggle","ManageServersRow"),e.decorator("ManageServers",pv),e.decorator("ManageServers",t(["selectedServer","servers"],["resetSelectedServer"])),e.serviceFactory("ManageServersRow",Npe,"ManageServersRowDropdown"),e.serviceFactory("ManageServersRowDropdown",Fpe,"DeleteServerModal"),e.decorator("ManageServersRowDropdown",t(null,["setAutoConnect"])),e.serviceFactory("CreateServer",Cpe,"ImportServersBtn","useTimeoutToggle"),e.decorator("CreateServer",pv),e.decorator("CreateServer",t(["selectedServer","servers"],["createServers","resetSelectedServer"])),e.serviceFactory("EditServer",Ope,"ServerError"),e.decorator("EditServer",t(["selectedServer"],["editServer","selectServer","resetSelectedServer"])),e.serviceFactory("ServersDropdown",()=>lme),e.decorator("ServersDropdown",t(["servers","selectedServer"])),e.serviceFactory("DeleteServerModal",()=>Tpe),e.decorator("DeleteServerModal",t(null,["deleteServer"])),e.serviceFactory("DeleteServerButton",Epe,"DeleteServerModal"),e.serviceFactory("ImportServersBtn",Ppe,"ServersImporter"),e.decorator("ImportServersBtn",t(["servers"],["createServers"])),e.serviceFactory("ServerError",kpe,"DeleteServerButton"),e.decorator("ServerError",t(["servers","selectedServer"])),e.serviceFactory("Overview",Kpe,"ShortUrlsTable","CreateShortUrl"),e.decorator("Overview",t(["shortUrlsList","tagsList","selectedServer","mercureInfo","visitsOverview","settings"],["listShortUrls","listTags","createNewVisits","loadMercureInfo","loadVisitsOverview"])),e.constant("fileReaderFactory",()=>new FileReader),e.service("ServersImporter",hme,"csvToJson","fileReaderFactory"),e.service("ServersExporter",ume,"Storage","window","jsonToCsv"),e.serviceFactory("selectServer",n5,"buildShlinkApiClient","loadMercureInfo"),e.serviceFactory("createServers",()=>$5),e.serviceFactory("deleteServer",()=>rme),e.serviceFactory("editServer",()=>nme),e.serviceFactory("setAutoConnect",()=>ime),e.serviceFactory("fetchServers",ame,"HttpClient"),e.serviceFactory("resetSelectedServer",()=>vE),e.serviceFactory("selectServerListener",uae,"selectServer","loadMercureInfo"),e.serviceFactory("selectedServerReducerCreator",fae,"selectServer"),e.serviceFactory("selectedServerReducer",at("reducer"),"selectedServerReducerCreator")},vc=({children:e})=>g.jsx("small",{className:"form-text text-muted d-block",children:e}),B5=({checked:e=!1,onChange:t=GS,className:n,children:r,type:i,inline:o=!1})=>{const s=v_(),a=f=>t(f.target.checked,f),l={"form-switch":i==="switch","form-checkbox":i==="checkbox"},c=o?{display:"inline-block"}:{};return g.jsxs("span",{className:me("form-check",l,n),style:c,children:[g.jsx("input",{type:"checkbox",className:"form-check-input",id:s,checked:e,onChange:a}),g.jsx("label",{className:"form-check-label",htmlFor:s,children:r})]})},Uc=e=>g.jsx(B5,{type:"switch",...e}),mme=e=>e?`${e}`:"",gme=({settings:{realTimeUpdates:e},toggleRealTimeUpdates:t,setRealTimeUpdatesInterval:n})=>{const r=v_();return g.jsxs(cn,{title:"Real-time updates",className:"h-100",children:[g.jsx(vr,{children:g.jsxs(Uc,{checked:e.enabled,onChange:t,children:["Enable or disable real-time updates.",g.jsxs(vc,{children:["Real-time updates are currently being ",g.jsx("b",{children:e.enabled?"processed":"ignored"}),"."]})]})}),g.jsxs(ru,{noMargin:!0,label:"Real-time updates frequency (in minutes):",labelClassName:me("form-label",{"text-muted":!e.enabled}),id:r,children:[g.jsx(Ic,{type:"number",min:0,placeholder:"Immediate",disabled:!e.enabled,value:mme(e.interval),id:r,onChange:({target:i})=>n(Number(i.value))}),e.enabled&&g.jsxs(vc,{children:[e.interval!==void 0&&e.interval>0&&g.jsxs("span",{children:["Updates will be reflected in the UI every ",g.jsx("b",{children:e.interval})," minute",e.interval>1&&"s","."]}),!e.interval&&"Updates will be reflected in the UI as soon as they happen."]})]})]})},IE={field:"dateCreated",dir:"DESC"},vme={realTimeUpdates:{enabled:!0},shortUrlCreation:{validateUrls:!1},ui:{theme:"light"},visits:{defaultInterval:"last30Days"},shortUrlsList:{defaultOrdering:IE}},yme=(e,{payload:t})=>Pj(e,t),ya=e=>({reducer:yme,prepare:e}),_a=e=>({payload:e}),{reducer:_me,actions:bme}=Yn({name:"shlink/settings",initialState:vme,reducers:{toggleRealTimeUpdates:ya(e=>_a({realTimeUpdates:{enabled:e}})),setRealTimeUpdatesInterval:ya(e=>_a({realTimeUpdates:{interval:e}})),setShortUrlCreationSettings:ya(e=>_a({shortUrlCreation:e})),setShortUrlsListSettings:ya(e=>_a({shortUrlsList:e})),setUiSettings:ya(e=>_a({ui:e})),setVisitsSettings:ya(e=>_a({visits:e})),setTagsSettings:ya(e=>_a({tags:e}))}}),{toggleRealTimeUpdates:wme,setRealTimeUpdatesInterval:xme,setShortUrlCreationSettings:Sme,setShortUrlsListSettings:Cme,setUiSettings:Eme,setVisitsSettings:Tme,setTagsSettings:Ome}=bme,Pme=_me;const kf=({children:e,...t})=>g.jsx(l6,{className:"nav-pills__nav-link",tag:oj,...t,children:e}),z5=({children:e,fill:t=!1,className:n=""})=>g.jsx(Sr,{className:`nav-pills__nav p-0 overflow-hidden ${n}`,body:!0,children:g.jsx(c_,{pills:!0,fill:t,children:V.Children.map(e,r=>{if(!V.isValidElement(r)||r.type!==kf)throw new Error("Only NavPillItem children are allowed inside NavPills.");return r})})}),M1=({items:e})=>g.jsx(g.Fragment,{children:e.map((t,n)=>g.jsx("div",{className:"mb-3",children:t},n))}),kme=(e,t,n,r,i,o)=>()=>g.jsxs(nu,{children:[g.jsxs(z5,{className:"mb-3",children:[g.jsx(kf,{to:"general",children:"General"}),g.jsx(kf,{to:"short-urls",children:"Short URLs"}),g.jsx(kf,{to:"other-items",children:"Other items"})]}),g.jsxs(Zy,{children:[g.jsx(gt,{path:"general",element:g.jsx(M1,{items:[g.jsx(r,{}),g.jsx(e,{})]})}),g.jsx(gt,{path:"short-urls",element:g.jsx(M1,{items:[g.jsx(t,{}),g.jsx(n,{})]})}),g.jsx(gt,{path:"other-items",element:g.jsx(M1,{items:[g.jsx(o,{}),g.jsx(i,{})]})}),g.jsx(gt,{path:"*",element:g.jsx(BS,{replace:!0,to:"general"})})]})]}),R1=e=>e==="includes"?"Suggest tags including input":"Suggest tags starting with input",Mme=e=>e==="includes"?g.jsxs(g.Fragment,{children:["The list of suggested tags will contain those ",g.jsx("b",{children:"including"})," provided input."]}):g.jsxs(g.Fragment,{children:["The list of suggested tags will contain those ",g.jsx("b",{children:"starting with"})," provided input."]}),Rme=({settings:e,setShortUrlCreationSettings:t})=>{const n=e.shortUrlCreation??{validateUrls:!1},r=i=>()=>t({...n??{validateUrls:!1},tagFilteringMode:i});return g.jsxs(cn,{title:"Short URLs form",className:"h-100",children:[g.jsx(vr,{children:g.jsxs(Uc,{checked:n.validateUrls??!1,onChange:i=>t({...n,validateUrls:i}),children:["Request validation on long URLs when creating new short URLs.",g.jsxs(vc,{children:["The initial state of the ",g.jsx("b",{children:"Validate URL"})," checkbox will be ",g.jsx("b",{children:n.validateUrls?"checked":"unchecked"}),"."]})]})}),g.jsx(vr,{children:g.jsxs(Uc,{checked:n.forwardQuery??!0,onChange:i=>t({...n,forwardQuery:i}),children:["Make all new short URLs forward their query params to the long URL.",g.jsxs(vc,{children:["The initial state of the ",g.jsx("b",{children:"Forward query params on redirect"})," checkbox will be ",g.jsx("b",{children:n.forwardQuery??!0?"checked":"unchecked"}),"."]})]})}),g.jsxs(ru,{noMargin:!0,label:"Tag suggestions search mode:",children:[g.jsxs(Ho,{text:R1(n.tagFilteringMode),children:[g.jsx(Ue,{active:!n.tagFilteringMode||n.tagFilteringMode==="startsWith",onClick:r("startsWith"),children:R1("startsWith")}),g.jsx(Ue,{active:n.tagFilteringMode==="includes",onClick:r("includes"),children:R1("includes")})]}),g.jsx(vc,{children:Mme(n.tagFilteringMode)})]})]})},U5={dateCreated:"Created at",shortCode:"Short URL",longUrl:"Long URL",title:"Title",visits:"Visits"};function fh({items:e,order:t,onChange:n,isButton:r=!0,right:i=!1,prefixed:o=!0}){const s=a=>()=>{const l=e_(a,t.field,t.dir);n(l?a:void 0,l)};return g.jsxs(Jd,{children:[g.jsxs(Zd,{caret:!0,color:r?"primary":"link",className:me({"dropdown-btn__toggle btn-block pe-4 overflow-hidden":r,"btn-sm p-0":!r}),children:[!r&&g.jsx(g.Fragment,{children:"Order by"}),r&&!t.field&&g.jsx("i",{children:"Order by..."}),r&&t.field&&g.jsxs(g.Fragment,{children:[o&&"Order by: ",e[t.field]," - ",g.jsx("small",{children:t.dir??"DESC"})]})]}),g.jsxs(eu,{end:i,className:me("w-100",{"ordering-dropdown__menu--link":!r}),children:[qg(e).map(([a,l])=>g.jsxs(Ue,{active:t.field===a,onClick:s(a),children:[l,t.field===a&&g.jsx(je,{icon:t.dir==="ASC"?EQ:uQ,className:"ordering-dropdown__sort-icon"})]},a)),g.jsx(Ue,{divider:!0}),g.jsx(Ue,{disabled:!t.field,onClick:()=>n(),children:g.jsx("i",{children:"Clear selection"})})]})]})}const Nme=({settings:{shortUrlsList:e},setShortUrlsListSettings:t})=>g.jsx(cn,{title:"Short URLs list",className:"h-100",children:g.jsx(ru,{noMargin:!0,label:"Default ordering for short URLs list:",children:g.jsx(fh,{items:U5,order:(e==null?void 0:e.defaultOrdering)??IE,onChange:(n,r)=>t({defaultOrdering:{field:n,dir:r}})})})}),V5={tag:"Tag",shortUrls:"Short URLs",visits:"Visits"},Lme=({settings:{tags:e},setTagsSettings:t})=>g.jsx(cn,{title:"Tags",className:"h-100",children:g.jsx(ru,{noMargin:!0,label:"Default ordering for tags list:",children:g.jsx(fh,{items:V5,order:(e==null?void 0:e.defaultOrdering)??{},onChange:(n,r)=>t({...e,defaultOrdering:{field:n,dir:r}})})})});const Dme=({settings:{ui:e},setUiSettings:t})=>g.jsxs(cn,{title:"User interface",className:"h-100",children:[g.jsx(je,{icon:(e==null?void 0:e.theme)==="dark"?$Q:OQ,className:"user-interface__theme-icon"}),g.jsx(Uc,{checked:(e==null?void 0:e.theme)==="dark",onChange:n=>{const r=n?"dark":"light";t({...e,theme:r}),k6(r)},children:"Use dark theme."})]}),H5=({active:e,allText:t,onChange:n})=>g.jsxs(g.Fragment,{children:[g.jsx(Ue,{active:e==="all",onClick:()=>n("all"),children:t}),g.jsx(Ue,{divider:!0}),tpe.map(r=>g.jsx(Ue,{active:e===r,onClick:()=>n(r),children:AE(r)},r))]}),Ame=({onChange:e,active:t,allText:n})=>g.jsx(Ho,{text:AE(t)??n,children:g.jsx(H5,{allText:n,active:t,onChange:e})}),xN=e=>{var t;return((t=e.visits)==null?void 0:t.defaultInterval)??"last30Days"},jme=({settings:e,setVisitsSettings:t})=>{var n,r;return g.jsxs(cn,{title:"Visits",className:"h-100",children:[g.jsx(vr,{children:g.jsxs(Uc,{checked:!!((n=e.visits)!=null&&n.excludeBots),onChange:i=>t({defaultInterval:xN(e),excludeBots:i}),children:["Exclude bots wherever possible (this option‘s effect might depend on Shlink server‘s version).",g.jsxs(vc,{children:["The visits coming from potential bots will be ",g.jsx("b",{children:(r=e.visits)!=null&&r.excludeBots?"excluded":"included"}),"."]})]})}),g.jsx(ru,{noMargin:!0,label:"Default interval to load on visits sections:",children:g.jsx(Ame,{allText:"All visits",active:xN(e),onChange:i=>t({defaultInterval:i})})})]})},Ime=(e,t)=>{e.serviceFactory("Settings",kme,"RealTimeUpdatesSettings","ShortUrlCreationSettings","ShortUrlsListSettings","UserInterfaceSettings","VisitsSettings","TagsSettings"),e.decorator("Settings",pv),e.decorator("Settings",t(null,["resetSelectedServer"])),e.serviceFactory("RealTimeUpdatesSettings",()=>gme),e.decorator("RealTimeUpdatesSettings",t(["settings"],["toggleRealTimeUpdates","setRealTimeUpdatesInterval"])),e.serviceFactory("ShortUrlCreationSettings",()=>Rme),e.decorator("ShortUrlCreationSettings",t(["settings"],["setShortUrlCreationSettings"])),e.serviceFactory("UserInterfaceSettings",()=>Dme),e.decorator("UserInterfaceSettings",t(["settings"],["setUiSettings"])),e.serviceFactory("VisitsSettings",()=>jme),e.decorator("VisitsSettings",t(["settings"],["setVisitsSettings"])),e.serviceFactory("TagsSettings",()=>Lme),e.decorator("TagsSettings",t(["settings"],["setTagsSettings"])),e.serviceFactory("ShortUrlsListSettings",()=>Nme),e.decorator("ShortUrlsListSettings",t(["settings"],["setShortUrlsListSettings"])),e.serviceFactory("toggleRealTimeUpdates",()=>wme),e.serviceFactory("setRealTimeUpdatesInterval",()=>xme),e.serviceFactory("setShortUrlCreationSettings",()=>Sme),e.serviceFactory("setShortUrlsListSettings",()=>Cme),e.serviceFactory("setUiSettings",()=>Eme),e.serviceFactory("setVisitsSettings",()=>Tme),e.serviceFactory("setTagsSettings",()=>Ome)},Fme=e=>({longUrl:"",tags:[],customSlug:"",title:void 0,shortCodeLength:void 0,domain:"",validSince:void 0,validUntil:void 0,maxVisits:void 0,findIfExists:!1,validateUrl:(e==null?void 0:e.validateUrls)??!1,forwardQuery:(e==null?void 0:e.forwardQuery)??!0}),$me=(e,t)=>({createShortUrl:n,shortUrlCreation:r,resetCreateShortUrl:i,selectedServer:o,basicMode:s=!1,settings:{shortUrlCreation:a}})=>{const l=V.useMemo(()=>Fme(a),[a]);return g.jsxs(g.Fragment,{children:[g.jsx(e,{initialState:l,saving:r.saving,selectedServer:o,mode:s?"create-basic":"create",onSave:async c=>(i(),n(c))}),g.jsx(t,{creation:r,resetCreateShortUrl:i,canBeClosed:s})]})},Bme=e=>({settings:{shortUrlCreation:t},selectedServer:n,shortUrlDetail:r,getShortUrlDetail:i,shortUrlEdition:o,editShortUrl:s})=>{const{search:a}=Pn(),l=Xs(),c=na(),{loading:f,error:h,errorData:p,shortUrl:m}=r,{saving:v,saved:y,error:x,errorData:_}=o,{domain:w}=fl(a),S=V.useMemo(()=>Rae(m,t),[m,t]);return V.useEffect(()=>{l.shortCode&&i({shortCode:pm(l.shortCode),domain:w})},[]),f?g.jsx(Co,{loading:!0}):h?g.jsx(Nr,{type:"error",children:g.jsx(Do,{errorData:p,fallbackMessage:"An error occurred while loading short URL detail :("})}):g.jsxs(g.Fragment,{children:[g.jsx("header",{className:"mb-3",children:g.jsx(Sr,{body:!0,children:g.jsxs("h2",{className:"d-sm-flex justify-content-between align-items-center mb-0",children:[g.jsx(ht,{color:"link",size:"lg",className:"p-0 me-3",onClick:c,children:g.jsx(je,{icon:tI})}),g.jsx("span",{className:"text-center",children:g.jsxs("small",{children:["Edit ",g.jsx(Ci,{href:(m==null?void 0:m.shortUrl)??""})]})}),g.jsx("span",{})]})})}),g.jsx(e,{initialState:S,saving:v,selectedServer:n,mode:"edit",onSave:async T=>{m&&s({...m,data:T})}}),y&&x&&g.jsx(Nr,{type:"error",className:"mt-3",children:g.jsx(Do,{errorData:_,fallbackMessage:"An error occurred while updating short URL :("})}),y&&!x&&g.jsx(Nr,{type:"success",className:"mt-3",children:"Short URL properly edited."})]})};var w_={},zme=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r"u"){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var h=SN[t.format]||SN.default;window.clipboardData.setData(h,e)}else f.clipboardData.clearData(),f.clipboardData.setData(t.format,e);t.onCopy&&(f.preventDefault(),t.onCopy(f.clipboardData))}),document.body.appendChild(a),o.selectNodeContents(a),s.addRange(o);var c=document.execCommand("copy");if(!c)throw new Error("copy command was unsuccessful");l=!0}catch(f){n&&console.error("unable to copy using execCommand: ",f),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),l=!0}catch(h){n&&console.error("unable to copy using clipboardData: ",h),n&&console.error("falling back to prompt"),r=Hme("message"in t?t.message:Vme),window.prompt(r,e)}}finally{s&&(typeof s.removeRange=="function"?s.removeRange(o):s.removeAllRanges()),a&&document.body.removeChild(a),i()}return l}var Yme=Wme;function t2(e){return t2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t2(e)}Object.defineProperty(w_,"__esModule",{value:!0});w_.CopyToClipboard=void 0;var Lp=W5(V),qme=W5(Yme),Gme=["text","onCopy","options","children"];function W5(e){return e&&e.__esModule?e:{default:e}}function CN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function EN(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Kme(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}function Xme(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function TN(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ty(e){return ty=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},ty(e)}function FE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var q5=function(e){Jme(n,e);var t=ege(n);function n(){var r;Xme(this,n);for(var i=arguments.length,o=new Array(i),s=0;s({creation:t,resetCreateShortUrl:n,canBeClosed:r=!1})=>{const[i,o]=e(),{error:s,saved:a}=t;if(V.useEffect(()=>{n()},[]),s)return g.jsxs(Nr,{type:"error",className:"mt-3",children:[r&&g.jsx(je,{icon:uw,className:"float-end pointer",onClick:n}),g.jsx(Do,{errorData:t.errorData,fallbackMessage:"An error occurred while creating the URL :("})]});if(!a)return null;const{shortUrl:l}=t.result;return g.jsxs(Nr,{type:"success",className:"mt-3",children:[r&&g.jsx(je,{icon:uw,className:"float-end pointer",onClick:n}),g.jsxs("span",{children:[g.jsx("b",{children:"Great!"})," The short URL is ",g.jsx("b",{children:l})]}),g.jsx(G5,{text:l,onCopy:o,children:g.jsxs("button",{className:"btn btn-light btn-sm create-short-url-result__copy-btn",id:"copyBtn",type:"button",children:[g.jsx(je,{icon:A5})," Copy"]})}),g.jsx(Xd,{placement:"left",isOpen:i,target:"copyBtn",children:"Copied!"})]})},N1="delete",sge=({shortUrl:e,toggle:t,isOpen:n,shortUrlDeletion:r,resetDeleteShortUrl:i,deleteShortUrl:o,shortUrlDeleted:s})=>{const[a,l]=V.useState("");V.useEffect(()=>i,[]);const{loading:c,error:f,deleted:h,errorData:p}=r,m=Dt(i,t),v=rh(()=>o(e).then(t));return g.jsx(Vo,{isOpen:n,toggle:m,centered:!0,onClosed:()=>h&&s(e),children:g.jsxs("form",{onSubmit:v,children:[g.jsx(io,{toggle:m,children:g.jsx("span",{className:"text-danger",children:"Delete short URL"})}),g.jsxs(Mi,{children:[g.jsxs("p",{children:[g.jsx("b",{className:"text-danger",children:"Caution!"})," You are about to delete a short URL."]}),g.jsx("p",{children:"This action cannot be undone. Once you have deleted it, all the visits stats will be lost."}),g.jsxs("p",{children:["Write ",g.jsx("b",{children:N1})," to confirm deletion."]}),g.jsx("input",{type:"text",className:"form-control",placeholder:`Insert ${N1}`,value:a,onChange:y=>l(y.target.value)}),f&&g.jsx(Nr,{type:DX(p)?"warning":"error",small:!0,className:"mt-2",children:g.jsx(Do,{errorData:p,fallbackMessage:"Something went wrong while deleting the URL :("})})]}),g.jsxs(ta,{children:[g.jsx("button",{type:"button",className:"btn btn-link",onClick:m,children:"Cancel"}),g.jsx("button",{type:"submit",className:"btn btn-danger",disabled:a!==N1||c,children:c?"Deleting...":"Delete"})]})]})})},Z5=({amount:e=0,loading:t=!1,...n})=>g.jsxs(ht,{...n,outline:!0,color:"primary",disabled:t,children:[g.jsx(je,{icon:GX})," ",t?"Exporting...":g.jsxs(g.Fragment,{children:["Export (",_n(e),")"]})]}),x_=()=>{const e=Fo(),{search:t}=Pn(),{serverId:n=""}=Xs(),r=V.useMemo(Dt(()=>fl(t),({orderBy:o,tags:s,excludeBots:a,excludeMaxVisitsReached:l,excludePastValidUntil:c,...f})=>{const h=o?IZ(o):void 0,p=(s==null?void 0:s.split(","))??[];return{...f,orderBy:h,tags:p,excludeBots:a!==void 0?a==="true":void 0,excludeMaxVisitsReached:l!==void 0?l==="true":void 0,excludePastValidUntil:c!==void 0?c==="true":void 0}}),[t]);return[r,o=>{const s={...r,...o},{orderBy:a,tags:l,excludeBots:c,excludeMaxVisitsReached:f,excludePastValidUntil:h,...p}=s,m={...p,orderBy:a&&Lj(a),tags:l.length>0?l.join(","):void 0,excludeBots:w1(c),excludeMaxVisitsReached:w1(f),excludePastValidUntil:w1(h)},v=Vd(m),y=Wn(v)?"":`?${v}`;e(`/server/${n}/list-short-urls/1${y}`)}]},ON=20,age=(e,{exportShortUrls:t})=>({amount:n=0,selectedServer:r})=>{const[{tags:i,search:o,startDate:s,endDate:a,orderBy:l,tagsMode:c}]=x_(),[f,,h,p]=hn(),m=V.useCallback(async()=>{if(!Ms(r))return;const v=n/ON,{listShortUrls:y}=e(r),x=async(w=1)=>{const{data:S}=await y({page:`${w}`,tags:i,searchTerm:o,startDate:s,endDate:a,orderBy:l,tagsMode:c,itemsPerPage:ON});return w>=v?S:S.concat(await x(w+1))};h();const _=await x();t(_.map(w=>{var k;const{hostname:S,pathname:T}=new URL(w.shortUrl),P=T.substring(1);return{createdAt:w.dateCreated,domain:S,shortCode:P,shortUrl:w.shortUrl,longUrl:w.longUrl,title:w.title??"",tags:w.tags.join("|"),visits:((k=w==null?void 0:w.visitsSummary)==null?void 0:k.total)??w.visitsCount}})),p()},[r]);return g.jsx(Z5,{loading:f,className:"btn-md-block",amount:n,onClick:m})};const K5=({text:e,onCopy:t})=>g.jsx(G5,{text:e,onCopy:t,children:g.jsx(je,{icon:A5,className:"ms-2 copy-to-clipboard-icon"})}),lge=(e,{margin:t,...n})=>{const r=`${e}/qr-code`,i=Vd({...n,margin:t>0?t:void 0});return`${r}${Wn(i)?"":`?${i}`}`},cge=({errorCorrection:e,setErrorCorrection:t})=>g.jsxs(Ho,{text:`Error correction (${e})`,children:[g.jsxs(Ue,{active:e==="L",onClick:()=>t("L"),children:[g.jsx("b",{children:"L"}),"ow"]}),g.jsxs(Ue,{active:e==="M",onClick:()=>t("M"),children:[g.jsx("b",{children:"M"}),"edium"]}),g.jsxs(Ue,{active:e==="Q",onClick:()=>t("Q"),children:[g.jsx("b",{children:"Q"}),"uartile"]}),g.jsxs(Ue,{active:e==="H",onClick:()=>t("H"),children:[g.jsx("b",{children:"H"}),"igh"]})]}),uge=({format:e,setFormat:t})=>g.jsxs(Ho,{text:`Format (${e})`,children:[g.jsx(Ue,{active:e==="png",onClick:()=>t("png"),children:"PNG"}),g.jsx(Ue,{active:e==="svg",onClick:()=>t("svg"),children:"SVG"})]});const fge=e=>({shortUrl:{shortUrl:t,shortCode:n},toggle:r,isOpen:i,selectedServer:o})=>{const[s,a]=V.useState(300),[l,c]=V.useState(0),[f,h]=V.useState("png"),[p,m]=V.useState("L"),v=ki("nonRestCors",o),y=V.useMemo(()=>lge(t,{size:s,format:f,margin:l,errorCorrection:p}),[t,s,f,l,p]),x=V.useMemo(()=>s+l,[s,l]),_=V.useMemo(()=>{if(!(x<500))return x<800?"lg":"xl"},[x]);return g.jsxs(Vo,{isOpen:i,toggle:r,centered:!0,size:_,children:[g.jsxs(io,{toggle:r,children:["QR code for ",g.jsx(Ci,{href:t,children:t})]}),g.jsxs(Mi,{children:[g.jsxs(Qn,{children:[g.jsxs(vr,{className:"d-grid col-md-4",children:[g.jsxs("label",{children:["Size: ",s,"px"]}),g.jsx("input",{type:"range",className:"form-control-range",value:s,step:10,min:50,max:1e3,onChange:w=>a(Number(w.target.value))})]}),g.jsxs(vr,{className:"d-grid col-md-4",children:[g.jsxs("label",{htmlFor:"marginControl",children:["Margin: ",l,"px"]}),g.jsx("input",{id:"marginControl",type:"range",className:"form-control-range",value:l,step:1,min:0,max:100,onChange:w=>c(Number(w.target.value))})]}),g.jsx(vr,{className:"d-grid col-md-4",children:g.jsx(uge,{format:f,setFormat:h})}),g.jsx(vr,{className:"col-md-6",children:g.jsx(cge,{errorCorrection:p,setErrorCorrection:m})})]}),g.jsxs("div",{className:"text-center",children:[g.jsxs("div",{className:"mb-3",children:[g.jsx(Ci,{href:y}),g.jsx(K5,{text:y})]}),g.jsx("img",{src:y,className:"qr-code-modal__img",alt:"QR code"}),v&&g.jsx("div",{className:"mt-3",children:g.jsxs(ht,{block:!0,color:"primary",onClick:()=>{e.saveImage(y,`${n}-qr-code.${f}`).catch(()=>{})},children:["Download ",g.jsx(je,{icon:nI,className:"ms-1"})]})})]})]})]})},ny=({date:e,format:t=LE,relative:n=!1})=>{const r=DE(e)?e:Ao(e);return g.jsx("time",{dateTime:`${dce(r)}000`,children:n?`${oce(Ws(),r)} ago`:yo(r,t)})},dge=e=>{const{meta:t,visitsCount:n,visitsSummary:r}=e,{maxVisits:i,validSince:o,validUntil:s}=t,a=(r==null?void 0:r.total)??n;return i&&a>=i?{icon:BQ,className:"text-danger",description:g.jsxs(g.Fragment,{children:["This short URL cannot be currently visited because it has reached the maximum amount of ",g.jsx("b",{children:i})," visit",i>1?"s":"","."]})}:s&&Gr(bi(s),Ws())?{icon:yM,className:"text-danger",description:g.jsxs(g.Fragment,{children:["This short URL cannot be visited since ",g.jsx("b",{className:"indivisible",children:Jv(bi(s))}),"."]})}:o&&Gr(Ws(),bi(o))?{icon:yM,className:"text-warning",description:g.jsxs(g.Fragment,{children:["This short URL will start working on ",g.jsx("b",{className:"indivisible",children:Jv(bi(o))}),"."]})}:{icon:cd,className:"text-primary",description:"This short URL can be visited normally."}},hge=({shortUrl:e})=>{const t=dl(),{icon:n,className:r,description:i}=dge(e);return g.jsxs(g.Fragment,{children:[g.jsx("span",{style:{cursor:i?"help":void 0},ref:t,children:g.jsx(je,{icon:n,className:r})}),g.jsx(Er,{target:t,placement:"bottom",children:i})]})},pge=({id:e},{shortCode:t,domain:n},r)=>{const i=n?`?domain=${n}`:"";return`/server/${e}/short-code/${Nae(t)}/${r}${i}`},i2=({selectedServer:e,shortUrl:t,suffix:n,children:r,...i})=>!e||!Ms(e)||!t?g.jsx("span",{...i,children:r}):g.jsx(Lt,{to:pge(e,t,n),...i,children:r});const X5=({visitsCount:e,shortUrl:t,selectedServer:n,active:r=!1})=>{const{maxVisits:i,validSince:o,validUntil:s}=(t==null?void 0:t.meta)??{},a=!!i||!!o||!!s,l=g.jsx(i2,{selectedServer:n,shortUrl:t,suffix:"visits",children:g.jsx("strong",{className:me("short-url-visits-count__amount",{"short-url-visits-count__amount--big":r}),children:_n(e)})});if(!a)return l;const c=dl();return g.jsxs(g.Fragment,{children:[g.jsxs("span",{className:"indivisible",children:[l,g.jsxs("small",{className:"short-urls-visits-count__max-visits-control",ref:c,children:[i&&g.jsxs(g.Fragment,{children:[" / ",_n(i)]}),g.jsx("sup",{className:"ms-1",children:g.jsx(je,{icon:fC})})]})]}),g.jsx(Er,{target:c,placement:"bottom",children:g.jsxs("ul",{className:"list-unstyled mb-0",children:[i&&g.jsxs("li",{className:"short-url-visits-count__tooltip-list-item",children:["This short URL will not accept more than ",g.jsx("b",{children:_n(i)})," visit",i===1?"":"s","."]}),o&&g.jsxs("li",{className:"short-url-visits-count__tooltip-list-item",children:["This short URL will not accept visits before ",g.jsx("b",{className:"indivisible",children:Jv(bi(o))}),"."]}),s&&g.jsxs("li",{className:"short-url-visits-count__tooltip-list-item",children:["This short URL will not accept visits after ",g.jsx("b",{className:"indivisible",children:Jv(bi(s))}),"."]})]})})]})};const $E=({text:e,children:t,clearable:n,className:r="",colorGenerator:i,onClick:o,onClose:s})=>g.jsxs("span",{className:me("badge tag",r,{"tag--light-bg":i.isColorLightForKey(e)}),style:{backgroundColor:i.getColorForKey(e),cursor:n||!o?"auto":"pointer"},onClick:o,children:[t??e,n&&g.jsx("span",{"aria-label":`Remove ${e}`,className:"close tag__close-selected-tag",onClick:s,children:"×"})]}),mge=({tags:e,onTagClick:t,colorGenerator:n})=>Wn(e)?g.jsx("i",{className:"indivisible",children:g.jsx("small",{children:"No tags"})}):g.jsx(g.Fragment,{children:e.map(r=>g.jsx($E,{text:r,colorGenerator:n,onClick:()=>t==null?void 0:t(r)},r))});const gge=(e,t,n)=>({shortUrl:r,selectedServer:i,onTagClick:o,settings:s})=>{var y,x,_,w;const[a,l]=n(),[c,f]=n(!1,500),h=V.useRef(!0),[{excludeBots:p}]=x_(),{visits:m}=s,v=p??(m==null?void 0:m.excludeBots);return V.useEffect(()=>{!h.current&&f(),h.current=!1},[(y=r.visitsSummary)==null?void 0:y.total,(x=r.visitsSummary)==null?void 0:x.nonBots,r.visitsCount]),g.jsxs("tr",{className:"responsive-table__row",children:[g.jsx("td",{className:"indivisible short-urls-row__cell responsive-table__cell","data-th":"Created at",children:g.jsx(ny,{date:r.dateCreated})}),g.jsx("td",{className:"responsive-table__cell short-urls-row__cell","data-th":"Short URL",children:g.jsxs("span",{className:"position-relative short-urls-row__cell--indivisible",children:[g.jsx("span",{className:"short-urls-row__short-url-wrapper",children:g.jsx(Ci,{href:r.shortUrl})}),g.jsx(K5,{text:r.shortUrl,onCopy:l}),g.jsx("span",{className:"badge bg-warning text-black short-urls-row__copy-hint",hidden:!a,children:"Copied short URL!"})]})}),g.jsx("td",{className:"responsive-table__cell short-urls-row__cell short-urls-row__cell--break","data-th":`${r.title?"Title":"Long URL"}`,children:g.jsx(Ci,{href:r.longUrl,children:r.title??r.longUrl})}),r.title&&g.jsx("td",{className:"short-urls-row__cell responsive-table__cell short-urls-row__cell--break d-lg-none","data-th":"Long URL",children:g.jsx(Ci,{href:r.longUrl})}),g.jsx("td",{className:"responsive-table__cell short-urls-row__cell","data-th":"Tags",children:g.jsx(mge,{tags:r.tags,colorGenerator:t,onTagClick:o})}),g.jsx("td",{className:"responsive-table__cell short-urls-row__cell text-lg-end","data-th":"Visits",children:g.jsx(X5,{visitsCount:(v?(_=r.visitsSummary)==null?void 0:_.nonBots:(w=r.visitsSummary)==null?void 0:w.total)??r.visitsCount,shortUrl:r,selectedServer:i,active:c})}),g.jsx("td",{className:"responsive-table__cell short-urls-row__cell","data-th":"Status",children:g.jsx(hge,{shortUrl:r})}),g.jsx("td",{className:"responsive-table__cell short-urls-row__cell text-end",children:g.jsx(e,{selectedServer:i,shortUrl:r})})]})},vge=(e,t)=>({shortUrl:n,selectedServer:r})=>{const[i,,o,s]=hn(),[a,,l,c]=hn();return g.jsxs(__,{minWidth:190,children:[g.jsxs(Ue,{tag:i2,selectedServer:r,shortUrl:n,suffix:"visits",children:[g.jsx(je,{icon:uC,fixedWidth:!0})," Visit stats"]}),g.jsxs(Ue,{tag:i2,selectedServer:r,shortUrl:n,suffix:"edit",children:[g.jsx(je,{icon:cC,fixedWidth:!0})," Edit short URL"]}),g.jsxs(Ue,{onClick:o,children:[g.jsx(je,{icon:FQ,fixedWidth:!0})," QR code"]}),g.jsx(t,{shortUrl:n,isOpen:i,toggle:s}),g.jsx(Ue,{divider:!0}),g.jsxs(Ue,{className:"dropdown-item--danger",onClick:l,children:[g.jsx(je,{icon:lC,fixedWidth:!0})," Delete short URL"]}),g.jsx(e,{shortUrl:n,isOpen:a,toggle:c})]})},Q5="shlink/shortUrlCreation",PN={saving:!1,saved:!1,error:!1},yge=e=>rr(`${Q5}/createShortUrl`,(t,{getState:n})=>e(n).createShortUrl(t)),_ge=e=>{const{reducer:t,actions:n}=Yn({name:Q5,initialState:PN,reducers:{resetCreateShortUrl:()=>PN},extraReducers:i=>{i.addCase(e.pending,()=>({saving:!0,saved:!1,error:!1})),i.addCase(e.rejected,(o,{error:s})=>({saving:!1,saved:!1,error:!0,errorData:ro(s)})),i.addCase(e.fulfilled,(o,{payload:s})=>({result:s,saving:!1,saved:!0,error:!1}))}}),{resetCreateShortUrl:r}=n;return{reducer:t,resetCreateShortUrl:r}},kN="shlink/shortUrlDetail",MN={loading:!1,error:!1},bge=e=>{const t=rr(`${kN}/getShortUrlDetail`,async({shortCode:r,domain:i},{getState:o})=>{var l;const{shortUrlsList:s}=o();return((l=s==null?void 0:s.shortUrls)==null?void 0:l.data.find(c=>Ef(c,r,i)))??await e(o).getShortUrl(r,i)}),{reducer:n}=Yn({name:kN,initialState:MN,reducers:{},extraReducers:r=>{r.addCase(t.pending,()=>({loading:!0,error:!1})),r.addCase(t.rejected,(i,{error:o})=>({loading:!1,error:!0,errorData:ro(o)})),r.addCase(t.fulfilled,(i,{payload:o})=>({...MN,shortUrl:o}))}});return{reducer:n,getShortUrlDetail:t}},J5="shlink/shortUrlEdition",wge={saving:!1,saved:!1,error:!1},xge=e=>rr(`${J5}/editShortUrl`,({shortCode:t,domain:n,data:r},{getState:i})=>{const{updateShortUrl:o}=e(i);return o(t,n,r)}),Sge=e=>Yn({name:J5,initialState:wge,reducers:{},extraReducers:t=>{t.addCase(e.pending,n=>({...n,saving:!0,error:!1,saved:!1})),t.addCase(e.rejected,(n,{error:r})=>({...n,saving:!1,error:!0,saved:!1,errorData:ro(r)})),t.addCase(e.fulfilled,(n,{payload:r})=>({shortUrl:r,saving:!1,error:!1,saved:!0}))}});var Cge={prefix:"fab",iconName:"apple",icon:[384,512,[],"f179","M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z"]},Ege={prefix:"fab",iconName:"android",icon:[576,512,[],"f17b","M420.55,301.93a24,24,0,1,1,24-24,24,24,0,0,1-24,24m-265.1,0a24,24,0,1,1,24-24,24,24,0,0,1-24,24m273.7-144.48,47.94-83a10,10,0,1,0-17.27-10h0l-48.54,84.07a301.25,301.25,0,0,0-246.56,0L116.18,64.45a10,10,0,1,0-17.27,10h0l47.94,83C64.53,202.22,8.24,285.55,0,384H576c-8.24-98.45-64.54-181.78-146.85-226.55"]};const e8=e=>g.jsx(B5,{type:"checkbox",...e});function Tge(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,o2(e,t)}function o2(e,t){return o2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},o2(e,t)}function Oge(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}function RN(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Pge(e,t,n){return e===t?!0:e.correspondingElement?e.correspondingElement.classList.contains(n):e.classList.contains(n)}function kge(e,t,n){if(e===t)return!0;for(;e.parentNode||e.host;){if(e.parentNode&&Pge(e,t,n))return!0;e=e.parentNode||e.host}return e}function Mge(e){return document.documentElement.clientWidth<=e.clientX||document.documentElement.clientHeight<=e.clientY}var Rge=function(){if(!(typeof window>"u"||typeof window.addEventListener!="function")){var t=!1,n=Object.defineProperty({},"passive",{get:function(){t=!0}}),r=function(){};return window.addEventListener("testPassiveEventSupport",r,n),window.removeEventListener("testPassiveEventSupport",r,n),t}};function Nge(e){return e===void 0&&(e=0),function(){return++e}}var Lge=Nge(),s2,Dp={},L1={},Dge=["touchstart","touchmove"],Age="ignore-react-onclickoutside";function NN(e,t){var n=null,r=Dge.indexOf(t)!==-1;return r&&s2&&(n={passive:!e.props.preventDefault}),n}function S_(e,t){var n,r,i=e.displayName||e.name||"Component";return r=n=function(o){Tge(s,o);function s(l){var c;return c=o.call(this,l)||this,c.__outsideClickHandler=function(f){if(typeof c.__clickOutsideHandlerProp=="function"){c.__clickOutsideHandlerProp(f);return}var h=c.getInstance();if(typeof h.props.handleClickOutside=="function"){h.props.handleClickOutside(f);return}if(typeof h.handleClickOutside=="function"){h.handleClickOutside(f);return}throw new Error("WrappedComponent: "+i+" lacks a handleClickOutside(event) function for processing outside click events.")},c.__getComponentNode=function(){var f=c.getInstance();return t&&typeof t.setClickOutsideRef=="function"?t.setClickOutsideRef()(f):typeof f.setClickOutsideRef=="function"?f.setClickOutsideRef():Id.findDOMNode(f)},c.enableOnClickOutside=function(){if(!(typeof document>"u"||L1[c._uid])){typeof s2>"u"&&(s2=Rge()),L1[c._uid]=!0;var f=c.props.eventTypes;f.forEach||(f=[f]),Dp[c._uid]=function(h){if(c.componentNode!==null&&(c.props.preventDefault&&h.preventDefault(),c.props.stopPropagation&&h.stopPropagation(),!(c.props.excludeScrollbar&&Mge(h)))){var p=h.composed&&h.composedPath&&h.composedPath().shift()||h.target;kge(p,c.componentNode,c.props.outsideClickIgnoreClass)===document&&c.__outsideClickHandler(h)}},f.forEach(function(h){document.addEventListener(h,Dp[c._uid],NN(RN(c),h))})}},c.disableOnClickOutside=function(){delete L1[c._uid];var f=Dp[c._uid];if(f&&typeof document<"u"){var h=c.props.eventTypes;h.forEach||(h=[h]),h.forEach(function(p){return document.removeEventListener(p,f,NN(RN(c),p))}),delete Dp[c._uid]}},c.getRef=function(f){return c.instanceRef=f},c._uid=Lge(),c}var a=s.prototype;return a.getInstance=function(){if(e.prototype&&!e.prototype.isReactComponent)return this;var c=this.instanceRef;return c.getInstance?c.getInstance():c},a.componentDidMount=function(){if(!(typeof document>"u"||!document.createElement)){var c=this.getInstance();if(t&&typeof t.handleClickOutside=="function"&&(this.__clickOutsideHandlerProp=t.handleClickOutside(c),typeof this.__clickOutsideHandlerProp!="function"))throw new Error("WrappedComponent: "+i+" lacks a function for processing outside click events specified by the handleClickOutside config option.");this.componentNode=this.__getComponentNode(),!this.props.disableOnClickOutside&&this.enableOnClickOutside()}},a.componentDidUpdate=function(){this.componentNode=this.__getComponentNode()},a.componentWillUnmount=function(){this.disableOnClickOutside()},a.render=function(){var c=this.props;c.excludeScrollbar;var f=Oge(c,["excludeScrollbar"]);return e.prototype&&e.prototype.isReactComponent?f.ref=this.getRef:f.wrappedRef=this.getRef,f.disableOnClickOutside=this.disableOnClickOutside,f.enableOnClickOutside=this.enableOnClickOutside,V.createElement(e,f)},s}(V.Component),n.displayName="OnClickOutside("+i+")",n.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:t&&t.excludeScrollbar||!1,outsideClickIgnoreClass:Age,preventDefault:!1,stopPropagation:!1},n.getClass=function(){return e.getClass?e.getClass():e},r}var t8=V.createContext(),n8=V.createContext();function jge(e){var t=e.children,n=V.useState(null),r=n[0],i=n[1],o=V.useRef(!1);V.useEffect(function(){return function(){o.current=!0}},[]);var s=V.useCallback(function(a){o.current||i(a)},[]);return V.createElement(t8.Provider,{value:r},V.createElement(n8.Provider,{value:s},t))}var r8=function(t){return Array.isArray(t)?t[0]:t},i8=function(t){if(typeof t=="function"){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var n,r=l2(e);if(t){var i=l2(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Hge(this,n)}}function a8(e){return function(t){if(Array.isArray(t))return D1(t)}(e)||function(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}(e)||function(t,n){if(t){if(typeof t=="string")return D1(t,n);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return D1(t,n)}}(e)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function D1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&(o=T1(e,t.slice(0,e.length),new Date)),is(o)||(o=new Date(e))),is(o)&&a?o:null)}function is(e,t){return t=t||new Date("1/1/1000"),a5(e)&&!Gr(e,t)}function on(e,t,n){if(n==="en")return yo(e,t,{awareOfUnicodeTokens:!0});var r=Ds(n);return n&&!r&&console.warn('A locale object was not found for the provided string ["'.concat(n,'"].')),!r&&Va()&&Ds(Va())&&(r=Ds(Va())),yo(e,t,{locale:r||null,awareOfUnicodeTokens:!0})}function A1(e,t){var n=t.dateFormat,r=t.locale;return e&&on(e,Array.isArray(n)?n[0]:n,r)||""}function BN(e,t){var n=t.hour,r=n===void 0?0:n,i=t.minute,o=i===void 0?0:i,s=t.second;return Tf(Of(Jhe(e,s===void 0?0:s),o),r)}function Gge(e,t){var n=t&&Ds(t)||Va()&&Ds(Va());return uce(e,n?{locale:n}:null)}function Zge(e,t){return on(e,"ddd",t)}function Kge(e){return Lr(e)}function BE(e,t,n){var r=Ds(t||Va());return s5(e,{locale:r,weekStartsOn:n})}function Ua(e){return Zae(e)}function Ju(e){return Kae(e)}function Xge(e){return Uw(e)}function l8(e,t){return e&&t?Ihe(e,t):!e&&!t}function ys(e,t){return e&&t?Ahe(e,t):!e&&!t}function ry(e,t){return e&&t?jhe(e,t):!e&&!t}function pr(e,t){return e&&t?Uae(e,t):!e&&!t}function _s(e,t){return e&&t?g5(e,t):!e&&!t}function ig(e,t,n){var r,i=Lr(t),o=il(n);try{r=zc(e,{start:i,end:o})}catch{r=!1}return r}function Va(){return(typeof window<"u"?window:globalThis).__localeId__}function Ds(e){if(typeof e=="string"){var t=typeof window<"u"?window:globalThis;return t.__localeData__?t.__localeData__[e]:null}return e}function c8(e,t){return on(Yi(dn(),e),"LLLL",t)}function u8(e,t){return on(Yi(dn(),e),"LLL",t)}function Qge(e,t){return on(Qu(dn(),e),"QQQ",t)}function E_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.maxDate,i=t.excludeDates,o=t.excludeDateIntervals,s=t.includeDates,a=t.includeDateIntervals,l=t.filterDate;return T_(e,{minDate:n,maxDate:r})||i&&i.some(function(c){return pr(e,c)})||o&&o.some(function(c){var f=c.start,h=c.end;return zc(e,{start:f,end:h})})||s&&!s.some(function(c){return pr(e,c)})||a&&!a.some(function(c){var f=c.start,h=c.end;return zc(e,{start:f,end:h})})||l&&!l(dn(e))||!1}function zE(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.excludeDates,r=t.excludeDateIntervals;return r&&r.length>0?r.some(function(i){var o=i.start,s=i.end;return zc(e,{start:o,end:s})}):n&&n.some(function(i){return pr(e,i)})||!1}function Jge(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.maxDate,i=t.excludeDates,o=t.includeDates,s=t.filterDate;return T_(e,{minDate:n,maxDate:r})||i&&i.some(function(a){return ys(e,a)})||o&&!o.some(function(a){return ys(e,a)})||s&&!s(dn(e))||!1}function eve(e,t,n,r){var i=dt(e),o=lr(e),s=dt(t),a=lr(t),l=dt(r);return i===s&&i===l?o<=n&&n<=a:i=n||li:void 0}function tve(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.maxDate,i=t.excludeDates,o=t.includeDates,s=t.filterDate;return T_(e,{minDate:n,maxDate:r})||i&&i.some(function(a){return ry(e,a)})||o&&!o.some(function(a){return ry(e,a)})||s&&!s(dn(e))||!1}function nve(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.maxDate,i=new Date(e,0,1);return T_(i,{minDate:n,maxDate:r})||!1}function rve(e,t,n,r){var i=dt(e),o=zw(e),s=dt(t),a=zw(t),l=dt(r);return i===s&&i===l?o<=n&&n<=a:i=n||li:void 0}function T_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.maxDate;return n&&xd(e,n)<0||r&&xd(e,r)>0}function zN(e,t){return t.some(function(n){return Ei(n)===Ei(e)&&Ti(n)===Ti(e)})}function UN(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.excludeTimes,r=t.includeTimes,i=t.filterTime;return n&&zN(e,n)||r&&!zN(e,r)||i&&!i(e)||!1}function VN(e,t){var n=t.minTime,r=t.maxTime;if(!n||!r)throw new Error("Both minTime and maxTime props required");var i,o=dn(),s=Tf(Of(o,Ti(e)),Ei(e)),a=Tf(Of(o,Ti(n)),Ei(n)),l=Tf(Of(o,Ti(r)),Ei(r));try{i=!zc(s,{start:a,end:l})}catch{i=!1}return i}function HN(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.includeDates,i=Cd(e,1);return n&&Sd(n,i)>0||r&&r.every(function(o){return Sd(o,i)>0})||!1}function WN(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.maxDate,r=t.includeDates,i=no(e,1);return n&&Sd(i,n)>0||r&&r.every(function(o){return Sd(i,o)>0})||!1}function YN(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.includeDates,i=Ed(e,1);return n&&mv(n,i)>0||r&&r.every(function(o){return mv(o,i)>0})||!1}function qN(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.maxDate,r=t.includeDates,i=$c(e,1);return n&&mv(i,n)>0||r&&r.every(function(o){return mv(i,o)>0})||!1}function f8(e){var t=e.minDate,n=e.includeDates;if(n&&t){var r=n.filter(function(i){return xd(i,t)>=0});return H3(r)}return n?H3(n):t}function d8(e){var t=e.maxDate,n=e.includeDates;if(n&&t){var r=n.filter(function(i){return xd(i,t)<=0});return V3(r)}return n?V3(n):t}function GN(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"react-datepicker__day--highlighted",n=new Map,r=0,i=e.length;r1&&arguments[1]!==void 0?arguments[1]:12,n=Math.ceil(dt(e)/t)*t,r=n-(t-1);return{startPeriod:r,endPeriod:n}}function ove(e,t,n,r){for(var i=[],o=0;o<2*t+1;o++){var s=e+t-o,a=!0;n&&(a=dt(n)<=s),r&&a&&(a=dt(r)>=s),a&&i.push(s)}return i}var sve=S_(function(e){Rn(n,U.Component);var t=Nn(n);function n(r){var i;kn(this,n),re(le(i=t.call(this,r)),"renderOptions",function(){var l=i.props.year,c=i.state.yearsList.map(function(p){return U.createElement("div",{className:l===p?"react-datepicker__year-option react-datepicker__year-option--selected_year":"react-datepicker__year-option",key:p,onClick:i.onChange.bind(le(i),p),"aria-selected":l===p?"true":void 0},l===p?U.createElement("span",{className:"react-datepicker__year-option--selected"},"✓"):"",p)}),f=i.props.minDate?dt(i.props.minDate):null,h=i.props.maxDate?dt(i.props.maxDate):null;return h&&i.state.yearsList.find(function(p){return p===h})||c.unshift(U.createElement("div",{className:"react-datepicker__year-option",key:"upcoming",onClick:i.incrementYears},U.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-upcoming"}))),f&&i.state.yearsList.find(function(p){return p===f})||c.push(U.createElement("div",{className:"react-datepicker__year-option",key:"previous",onClick:i.decrementYears},U.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-previous"}))),c}),re(le(i),"onChange",function(l){i.props.onChange(l)}),re(le(i),"handleClickOutside",function(){i.props.onCancel()}),re(le(i),"shiftYears",function(l){var c=i.state.yearsList.map(function(f){return f+l});i.setState({yearsList:c})}),re(le(i),"incrementYears",function(){return i.shiftYears(1)}),re(le(i),"decrementYears",function(){return i.shiftYears(-1)});var o=r.yearDropdownItemNumber,s=r.scrollableYearDropdown,a=o||(s?10:5);return i.state={yearsList:ove(i.props.year,a,i.props.minDate,i.props.maxDate)},i.dropdownRef=V.createRef(),i}return Mn(n,[{key:"componentDidMount",value:function(){var r=this.dropdownRef.current;r&&(r.scrollTop=r.scrollHeight/2-r.clientHeight/2)}},{key:"render",value:function(){var r=me({"react-datepicker__year-dropdown":!0,"react-datepicker__year-dropdown--scrollable":this.props.scrollableYearDropdown});return U.createElement("div",{className:r,ref:this.dropdownRef},this.renderOptions())}}]),n}()),ave=function(e){Rn(n,U.Component);var t=Nn(n);function n(){var r;kn(this,n);for(var i=arguments.length,o=new Array(i),s=0;s0&&arguments[0]!==void 0?arguments[0]:{},l=!1;r.getTabIndex()===0&&!a.isInputFocused&&r.isSameDay(r.props.preSelection)&&(document.activeElement&&document.activeElement!==document.body||(l=!0),r.props.inline&&!r.props.shouldFocusDayInline&&(l=!1),r.props.containerRef&&r.props.containerRef.current&&r.props.containerRef.current.contains(document.activeElement)&&document.activeElement.classList.contains("react-datepicker__day")&&(l=!0)),l&&r.dayEl.current.focus({preventScroll:!0})}),re(le(r),"renderDayContents",function(){return r.props.monthShowsDuplicateDaysEnd&&r.isAfterMonth()||r.props.monthShowsDuplicateDaysStart&&r.isBeforeMonth()?null:r.props.renderDayContents?r.props.renderDayContents(X3(r.props.day),r.props.day):X3(r.props.day)}),re(le(r),"render",function(){return U.createElement("div",{ref:r.dayEl,className:r.getClassNames(r.props.day),onKeyDown:r.handleOnKeyDown,onClick:r.handleClick,onMouseEnter:r.handleMouseEnter,tabIndex:r.getTabIndex(),"aria-label":r.getAriaLabel(),role:"option","aria-disabled":r.isDisabled(),"aria-current":r.isCurrentDay()?"date":void 0,"aria-selected":r.isSelected()},r.renderDayContents())}),r}return Mn(n,[{key:"componentDidMount",value:function(){this.handleFocusDay()}},{key:"componentDidUpdate",value:function(r){this.handleFocusDay(r)}}]),n}(),pve=function(e){Rn(n,U.Component);var t=Nn(n);function n(){var r;kn(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=6,m=!l&&!r.isWeekInMonth(h);if(p||m){if(!r.props.peekNextMonth)break;f=!0}}return a}),re(le(r),"onMonthClick",function(a,l){r.handleDayClick(Ua(Yi(r.props.day,l)),a)}),re(le(r),"handleMonthNavigation",function(a,l){r.isDisabled(l)||r.isExcluded(l)||(r.props.setPreSelection(l),r.MONTH_REFS[a].current&&r.MONTH_REFS[a].current.focus())}),re(le(r),"onMonthKeyDown",function(a,l){var c=a.key;if(!r.props.disabledKeyboardNavigation)switch(c){case"Enter":r.onMonthClick(a,l),r.props.setPreSelection(r.props.selected);break;case"ArrowRight":r.handleMonthNavigation(l===11?0:l+1,no(r.props.preSelection,1));break;case"ArrowLeft":r.handleMonthNavigation(l===0?11:l-1,Cd(r.props.preSelection,1))}}),re(le(r),"onQuarterClick",function(a,l){r.handleDayClick(Xge(Qu(r.props.day,l)),a)}),re(le(r),"getMonthClassNames",function(a){var l=r.props,c=l.day,f=l.startDate,h=l.endDate,p=l.selected,m=l.minDate,v=l.maxDate,y=l.preSelection,x=l.monthClassName,_=x?x(c):void 0;return me("react-datepicker__month-text","react-datepicker__month-".concat(a),_,{"react-datepicker__month--disabled":(m||v)&&Jge(Yi(c,a),r.props),"react-datepicker__month--selected":r.isSelectedMonth(c,a,p),"react-datepicker__month-text--keyboard-selected":lr(y)===a,"react-datepicker__month--in-range":eve(f,h,a,c),"react-datepicker__month--range-start":r.isRangeStartMonth(a),"react-datepicker__month--range-end":r.isRangeEndMonth(a),"react-datepicker__month-text--today":r.isCurrentMonth(c,a)})}),re(le(r),"getTabIndex",function(a){var l=lr(r.props.preSelection);return r.props.disabledKeyboardNavigation||a!==l?"-1":"0"}),re(le(r),"getAriaLabel",function(a){var l=r.props,c=l.chooseDayAriaLabelPrefix,f=c===void 0?"Choose":c,h=l.disabledDayAriaLabelPrefix,p=h===void 0?"Not available":h,m=l.day,v=Yi(m,a),y=r.isDisabled(v)||r.isExcluded(v)?p:f;return"".concat(y," ").concat(on(v,"MMMM yyyy"))}),re(le(r),"getQuarterClassNames",function(a){var l=r.props,c=l.day,f=l.startDate,h=l.endDate,p=l.selected,m=l.minDate,v=l.maxDate;return me("react-datepicker__quarter-text","react-datepicker__quarter-".concat(a),{"react-datepicker__quarter--disabled":(m||v)&&tve(Qu(c,a),r.props),"react-datepicker__quarter--selected":r.isSelectedQuarter(c,a,p),"react-datepicker__quarter--in-range":rve(f,h,a,c),"react-datepicker__quarter--range-start":r.isRangeStartQuarter(a),"react-datepicker__quarter--range-end":r.isRangeEndQuarter(a)})}),re(le(r),"renderMonths",function(){var a=r.props,l=a.showFullMonthYearPicker,c=a.showTwoColumnMonthYearPicker,f=a.showFourColumnMonthYearPicker,h=a.locale,p=a.day,m=a.selected;return(f?[[0,1,2,3],[4,5,6,7],[8,9,10,11]]:c?[[0,1],[2,3],[4,5],[6,7],[8,9],[10,11]]:[[0,1,2],[3,4,5],[6,7,8],[9,10,11]]).map(function(v,y){return U.createElement("div",{className:"react-datepicker__month-wrapper",key:y},v.map(function(x,_){return U.createElement("div",{ref:r.MONTH_REFS[x],key:_,onClick:function(w){r.onMonthClick(w,x)},onKeyDown:function(w){r.onMonthKeyDown(w,x)},tabIndex:r.getTabIndex(x),className:r.getMonthClassNames(x),role:"option","aria-label":r.getAriaLabel(x),"aria-current":r.isCurrentMonth(p,x)?"date":void 0,"aria-selected":r.isSelectedMonth(p,x,m)},l?c8(x,h):u8(x,h))}))})}),re(le(r),"renderQuarters",function(){var a=r.props,l=a.day,c=a.selected;return U.createElement("div",{className:"react-datepicker__quarter-wrapper"},[1,2,3,4].map(function(f,h){return U.createElement("div",{key:h,role:"option",onClick:function(p){r.onQuarterClick(p,f)},className:r.getQuarterClassNames(f),"aria-selected":r.isSelectedQuarter(l,f,c)},Qge(f,r.props.locale))}))}),re(le(r),"getClassNames",function(){var a=r.props;a.day;var l=a.selectingDate,c=a.selectsStart,f=a.selectsEnd,h=a.showMonthYearPicker,p=a.showQuarterYearPicker;return me("react-datepicker__month",{"react-datepicker__month--selecting-range":l&&(c||f)},{"react-datepicker__monthPicker":h},{"react-datepicker__quarterPicker":p})}),r}return Mn(n,[{key:"render",value:function(){var r=this.props,i=r.showMonthYearPicker,o=r.showQuarterYearPicker,s=r.day,a=r.ariaLabelPrefix,l=a===void 0?"month ":a;return U.createElement("div",{className:this.getClassNames(),onMouseLeave:this.handleMouseLeave,"aria-label":"".concat(l," ").concat(on(s,"yyyy-MM")),role:"listbox"},i?this.renderMonths():o?this.renderQuarters():this.renderWeeks())}}]),n}(),h8=function(e){Rn(n,U.Component);var t=Nn(n);function n(){var r;kn(this,n);for(var i=arguments.length,o=new Array(i),s=0;s0&&arguments[0]!==void 0?arguments[0]:{}).className||"").split(/\s+/);return bve.some(function(a){return s.indexOf(a)>=0})})(o.target)&&i.props.onDropdownFocus()}),re(le(i),"getDateInView",function(){var o=i.props,s=o.preSelection,a=o.selected,l=o.openToDate,c=f8(i.props),f=d8(i.props),h=dn(),p=l||a||s;return p||(c&&Gr(h,c)?c:f&&Hs(h,f)?f:h)}),re(le(i),"increaseMonth",function(){i.setState(function(o){var s=o.date;return{date:no(s,1)}},function(){return i.handleMonthChange(i.state.date)})}),re(le(i),"decreaseMonth",function(){i.setState(function(o){var s=o.date;return{date:Cd(s,1)}},function(){return i.handleMonthChange(i.state.date)})}),re(le(i),"handleDayClick",function(o,s,a){i.props.onSelect(o,s,a),i.props.setPreSelection&&i.props.setPreSelection(o)}),re(le(i),"handleDayMouseEnter",function(o){i.setState({selectingDate:o}),i.props.onDayMouseEnter&&i.props.onDayMouseEnter(o)}),re(le(i),"handleMonthMouseLeave",function(){i.setState({selectingDate:null}),i.props.onMonthMouseLeave&&i.props.onMonthMouseLeave()}),re(le(i),"handleYearChange",function(o){i.props.onYearChange&&i.props.onYearChange(o),i.props.adjustDateOnChange&&(i.props.onSelect&&i.props.onSelect(o),i.props.setOpen&&i.props.setOpen(!0)),i.props.setPreSelection&&i.props.setPreSelection(o)}),re(le(i),"handleMonthChange",function(o){i.props.onMonthChange&&i.props.onMonthChange(o),i.props.adjustDateOnChange&&(i.props.onSelect&&i.props.onSelect(o),i.props.setOpen&&i.props.setOpen(!0)),i.props.setPreSelection&&i.props.setPreSelection(o)}),re(le(i),"handleMonthYearChange",function(o){i.handleYearChange(o),i.handleMonthChange(o)}),re(le(i),"changeYear",function(o){i.setState(function(s){var a=s.date;return{date:Qv(a,o)}},function(){return i.handleYearChange(i.state.date)})}),re(le(i),"changeMonth",function(o){i.setState(function(s){var a=s.date;return{date:Yi(a,o)}},function(){return i.handleMonthChange(i.state.date)})}),re(le(i),"changeMonthYear",function(o){i.setState(function(s){var a=s.date;return{date:Qv(Yi(a,lr(o)),dt(o))}},function(){return i.handleMonthYearChange(i.state.date)})}),re(le(i),"header",function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:i.state.date,s=BE(o,i.props.locale,i.props.calendarStartDay),a=[];return i.props.showWeekNumbers&&a.push(U.createElement("div",{key:"W",className:"react-datepicker__day-name"},i.props.weekLabel||"#")),a.concat([0,1,2,3,4,5,6].map(function(l){var c=hl(s,l),f=i.formatWeekday(c,i.props.locale),h=i.props.weekDayClassName?i.props.weekDayClassName(c):void 0;return U.createElement("div",{key:l,className:me("react-datepicker__day-name",h)},f)}))}),re(le(i),"formatWeekday",function(o,s){return i.props.formatWeekDay?function(a,l,c){return l(on(a,"EEEE",c))}(o,i.props.formatWeekDay,s):i.props.useWeekdaysShort?function(a,l){return on(a,"EEE",l)}(o,s):function(a,l){return on(a,"EEEEEE",l)}(o,s)}),re(le(i),"decreaseYear",function(){i.setState(function(o){var s=o.date;return{date:Ed(s,i.props.showYearPicker?i.props.yearItemNumber:1)}},function(){return i.handleYearChange(i.state.date)})}),re(le(i),"renderPreviousButton",function(){if(!i.props.renderCustomHeader){var o;switch(!0){case i.props.showMonthYearPicker:o=YN(i.state.date,i.props);break;case i.props.showYearPicker:o=function(_){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},S=w.minDate,T=w.yearItemNumber,P=T===void 0?12:T,k=Mf(Ju(Ed(_,P)),P).endPeriod,N=S&&dt(S);return N&&N>k||!1}(i.state.date,i.props);break;default:o=HN(i.state.date,i.props)}if((i.props.forceShowMonthNavigation||i.props.showDisabledMonthNavigation||!o)&&!i.props.showTimeSelectOnly){var s=["react-datepicker__navigation","react-datepicker__navigation--previous"],a=i.decreaseMonth;(i.props.showMonthYearPicker||i.props.showQuarterYearPicker||i.props.showYearPicker)&&(a=i.decreaseYear),o&&i.props.showDisabledMonthNavigation&&(s.push("react-datepicker__navigation--previous--disabled"),a=null);var l=i.props.showMonthYearPicker||i.props.showQuarterYearPicker||i.props.showYearPicker,c=i.props,f=c.previousMonthButtonLabel,h=c.previousYearButtonLabel,p=i.props,m=p.previousMonthAriaLabel,v=m===void 0?typeof f=="string"?f:"Previous Month":m,y=p.previousYearAriaLabel,x=y===void 0?typeof h=="string"?h:"Previous Year":y;return U.createElement("button",{type:"button",className:s.join(" "),onClick:a,onKeyDown:i.props.handleOnKeyDown,"aria-label":l?x:v},U.createElement("span",{className:["react-datepicker__navigation-icon","react-datepicker__navigation-icon--previous"].join(" ")},l?i.props.previousYearButtonLabel:i.props.previousMonthButtonLabel))}}}),re(le(i),"increaseYear",function(){i.setState(function(o){var s=o.date;return{date:$c(s,i.props.showYearPicker?i.props.yearItemNumber:1)}},function(){return i.handleYearChange(i.state.date)})}),re(le(i),"renderNextButton",function(){if(!i.props.renderCustomHeader){var o;switch(!0){case i.props.showMonthYearPicker:o=qN(i.state.date,i.props);break;case i.props.showYearPicker:o=function(_){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},S=w.maxDate,T=w.yearItemNumber,P=T===void 0?12:T,k=Mf($c(_,P),P).startPeriod,N=S&&dt(S);return N&&N0&&arguments[0]!==void 0?arguments[0]:i.state.date,s=["react-datepicker__current-month"];return i.props.showYearDropdown&&s.push("react-datepicker__current-month--hasYearDropdown"),i.props.showMonthDropdown&&s.push("react-datepicker__current-month--hasMonthDropdown"),i.props.showMonthYearDropdown&&s.push("react-datepicker__current-month--hasMonthYearDropdown"),U.createElement("div",{className:s.join(" ")},on(o,i.props.dateFormat,i.props.locale))}),re(le(i),"renderYearDropdown",function(){var o=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(i.props.showYearDropdown&&!o)return U.createElement(ave,{adjustDateOnChange:i.props.adjustDateOnChange,date:i.state.date,onSelect:i.props.onSelect,setOpen:i.props.setOpen,dropdownMode:i.props.dropdownMode,onChange:i.changeYear,minDate:i.props.minDate,maxDate:i.props.maxDate,year:dt(i.state.date),scrollableYearDropdown:i.props.scrollableYearDropdown,yearDropdownItemNumber:i.props.yearDropdownItemNumber})}),re(le(i),"renderMonthDropdown",function(){var o=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(i.props.showMonthDropdown&&!o)return U.createElement(cve,{dropdownMode:i.props.dropdownMode,locale:i.props.locale,onChange:i.changeMonth,month:lr(i.state.date),useShortMonthInDropdown:i.props.useShortMonthInDropdown})}),re(le(i),"renderMonthYearDropdown",function(){var o=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(i.props.showMonthYearDropdown&&!o)return U.createElement(dve,{dropdownMode:i.props.dropdownMode,locale:i.props.locale,dateFormat:i.props.dateFormat,onChange:i.changeMonthYear,minDate:i.props.minDate,maxDate:i.props.maxDate,date:i.state.date,scrollableMonthYearDropdown:i.props.scrollableMonthYearDropdown})}),re(le(i),"renderTodayButton",function(){if(i.props.todayButton&&!i.props.showTimeSelectOnly)return U.createElement("div",{className:"react-datepicker__today-button",onClick:function(o){return i.props.onSelect(Lr(dn()),o)}},i.props.todayButton)}),re(le(i),"renderDefaultHeader",function(o){var s=o.monthDate,a=o.i;return U.createElement("div",{className:"react-datepicker__header ".concat(i.props.showTimeSelect?"react-datepicker__header--has-time-select":"")},i.renderCurrentMonth(s),U.createElement("div",{className:"react-datepicker__header__dropdown react-datepicker__header__dropdown--".concat(i.props.dropdownMode),onFocus:i.handleDropdownFocus},i.renderMonthDropdown(a!==0),i.renderMonthYearDropdown(a!==0),i.renderYearDropdown(a!==0)),U.createElement("div",{className:"react-datepicker__day-names"},i.header(s)))}),re(le(i),"renderCustomHeader",function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=o.monthDate,a=o.i;if(i.props.showTimeSelect&&!i.state.monthContainer||i.props.showTimeSelectOnly)return null;var l=HN(i.state.date,i.props),c=WN(i.state.date,i.props),f=YN(i.state.date,i.props),h=qN(i.state.date,i.props),p=!i.props.showMonthYearPicker&&!i.props.showQuarterYearPicker&&!i.props.showYearPicker;return U.createElement("div",{className:"react-datepicker__header react-datepicker__header--custom",onFocus:i.props.onDropdownFocus},i.props.renderCustomHeader(jN(jN({},i.state),{},{customHeaderCount:a,monthDate:s,changeMonth:i.changeMonth,changeYear:i.changeYear,decreaseMonth:i.decreaseMonth,increaseMonth:i.increaseMonth,decreaseYear:i.decreaseYear,increaseYear:i.increaseYear,prevMonthButtonDisabled:l,nextMonthButtonDisabled:c,prevYearButtonDisabled:f,nextYearButtonDisabled:h})),p&&U.createElement("div",{className:"react-datepicker__day-names"},i.header(s)))}),re(le(i),"renderYearHeader",function(){var o=i.state.date,s=i.props,a=s.showYearPicker,l=Mf(o,s.yearItemNumber),c=l.startPeriod,f=l.endPeriod;return U.createElement("div",{className:"react-datepicker__header react-datepicker-year-header"},a?"".concat(c," - ").concat(f):dt(o))}),re(le(i),"renderHeader",function(o){switch(!0){case i.props.renderCustomHeader!==void 0:return i.renderCustomHeader(o);case(i.props.showMonthYearPicker||i.props.showQuarterYearPicker||i.props.showYearPicker):return i.renderYearHeader(o);default:return i.renderDefaultHeader(o)}}),re(le(i),"renderMonths",function(){if(!i.props.showTimeSelectOnly&&!i.props.showYearPicker){for(var o=[],s=i.props.showPreviousMonths?i.props.monthsShown-1:0,a=Cd(i.state.date,s),l=0;l0;o.push(U.createElement("div",{key:h,ref:function(v){i.monthContainer=v},className:"react-datepicker__month-container"},i.renderHeader({monthDate:f,i:l}),U.createElement(gve,{chooseDayAriaLabelPrefix:i.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:i.props.disabledDayAriaLabelPrefix,weekAriaLabelPrefix:i.props.weekAriaLabelPrefix,ariaLabelPrefix:i.props.monthAriaLabelPrefix,onChange:i.changeMonthYear,day:f,dayClassName:i.props.dayClassName,calendarStartDay:i.props.calendarStartDay,monthClassName:i.props.monthClassName,onDayClick:i.handleDayClick,handleOnKeyDown:i.props.handleOnDayKeyDown,onDayMouseEnter:i.handleDayMouseEnter,onMouseLeave:i.handleMonthMouseLeave,onWeekSelect:i.props.onWeekSelect,orderInDisplay:l,formatWeekNumber:i.props.formatWeekNumber,locale:i.props.locale,minDate:i.props.minDate,maxDate:i.props.maxDate,excludeDates:i.props.excludeDates,excludeDateIntervals:i.props.excludeDateIntervals,highlightDates:i.props.highlightDates,selectingDate:i.state.selectingDate,includeDates:i.props.includeDates,includeDateIntervals:i.props.includeDateIntervals,inline:i.props.inline,shouldFocusDayInline:i.props.shouldFocusDayInline,fixedHeight:i.props.fixedHeight,filterDate:i.props.filterDate,preSelection:i.props.preSelection,setPreSelection:i.props.setPreSelection,selected:i.props.selected,selectsStart:i.props.selectsStart,selectsEnd:i.props.selectsEnd,selectsRange:i.props.selectsRange,selectsDisabledDaysInRange:i.props.selectsDisabledDaysInRange,showWeekNumbers:i.props.showWeekNumbers,startDate:i.props.startDate,endDate:i.props.endDate,peekNextMonth:i.props.peekNextMonth,setOpen:i.props.setOpen,shouldCloseOnSelect:i.props.shouldCloseOnSelect,renderDayContents:i.props.renderDayContents,disabledKeyboardNavigation:i.props.disabledKeyboardNavigation,showMonthYearPicker:i.props.showMonthYearPicker,showFullMonthYearPicker:i.props.showFullMonthYearPicker,showTwoColumnMonthYearPicker:i.props.showTwoColumnMonthYearPicker,showFourColumnMonthYearPicker:i.props.showFourColumnMonthYearPicker,showYearPicker:i.props.showYearPicker,showQuarterYearPicker:i.props.showQuarterYearPicker,isInputFocused:i.props.isInputFocused,containerRef:i.containerRef,monthShowsDuplicateDaysEnd:p,monthShowsDuplicateDaysStart:m})))}return o}}),re(le(i),"renderYears",function(){if(!i.props.showTimeSelectOnly)return i.props.showYearPicker?U.createElement("div",{className:"react-datepicker__year--container"},i.renderHeader(),U.createElement(vve,C_({onDayClick:i.handleDayClick,date:i.state.date},i.props))):void 0}),re(le(i),"renderTimeSection",function(){if(i.props.showTimeSelect&&(i.state.monthContainer||i.props.showTimeSelectOnly))return U.createElement(h8,{selected:i.props.selected,openToDate:i.props.openToDate,onChange:i.props.onTimeChange,timeClassName:i.props.timeClassName,format:i.props.timeFormat,includeTimes:i.props.includeTimes,intervals:i.props.timeIntervals,minTime:i.props.minTime,maxTime:i.props.maxTime,excludeTimes:i.props.excludeTimes,filterTime:i.props.filterTime,timeCaption:i.props.timeCaption,todayButton:i.props.todayButton,showMonthDropdown:i.props.showMonthDropdown,showMonthYearDropdown:i.props.showMonthYearDropdown,showYearDropdown:i.props.showYearDropdown,withPortal:i.props.withPortal,monthRef:i.state.monthContainer,injectTimes:i.props.injectTimes,locale:i.props.locale,handleOnKeyDown:i.props.handleOnKeyDown,showTimeSelectOnly:i.props.showTimeSelectOnly})}),re(le(i),"renderInputTimeSection",function(){var o=new Date(i.props.selected),s=is(o)&&i.props.selected?"".concat(ZN(o.getHours()),":").concat(ZN(o.getMinutes())):"";if(i.props.showTimeInput)return U.createElement(yve,{date:o,timeString:s,timeInputLabel:i.props.timeInputLabel,onChange:i.props.onTimeChange,customTimeInput:i.props.customTimeInput})}),i.containerRef=U.createRef(),i.state={date:i.getDateInView(),selectingDate:null,monthContainer:null},i}return Mn(n,[{key:"componentDidMount",value:function(){var r=this;this.props.showTimeSelect&&(this.assignMonthContainer=void r.setState({monthContainer:r.monthContainer}))}},{key:"componentDidUpdate",value:function(r){this.props.preSelection&&!pr(this.props.preSelection,r.preSelection)?this.setState({date:this.props.preSelection}):this.props.openToDate&&!pr(this.props.openToDate,r.openToDate)&&this.setState({date:this.props.openToDate})}},{key:"render",value:function(){var r=this.props.container||_ve;return U.createElement("div",{ref:this.containerRef},U.createElement(r,{className:me("react-datepicker",this.props.className,{"react-datepicker--time-only":this.props.showTimeSelectOnly}),showPopperArrow:this.props.showPopperArrow,arrowProps:this.props.arrowProps},this.renderPreviousButton(),this.renderNextButton(),this.renderMonths(),this.renderYears(),this.renderTodayButton(),this.renderTimeSection(),this.renderInputTimeSection(),this.props.children))}}],[{key:"defaultProps",get:function(){return{onDropdownFocus:function(){},monthsShown:1,monthSelectedIn:0,forceShowMonthNavigation:!1,timeCaption:"Time",previousYearButtonLabel:"Previous Year",nextYearButtonLabel:"Next Year",previousMonthButtonLabel:"Previous Month",nextMonthButtonLabel:"Next Month",customTimeInput:null,yearItemNumber:12}}}]),n}(),p8=function(e){Rn(n,U.Component);var t=Nn(n);function n(r){var i;return kn(this,n),(i=t.call(this,r)).el=document.createElement("div"),i}return Mn(n,[{key:"componentDidMount",value:function(){this.portalRoot=(this.props.portalHost||document).getElementById(this.props.portalId),this.portalRoot||(this.portalRoot=document.createElement("div"),this.portalRoot.setAttribute("id",this.props.portalId),(this.props.portalHost||document.body).appendChild(this.portalRoot)),this.portalRoot.appendChild(this.el)}},{key:"componentWillUnmount",value:function(){this.portalRoot.removeChild(this.el)}},{key:"render",value:function(){return $a.createPortal(this.props.children,this.el)}}]),n}(),xve=function(e){return!e.disabled&&e.tabIndex!==-1},Sve=function(e){Rn(n,U.Component);var t=Nn(n);function n(r){var i;return kn(this,n),re(le(i=t.call(this,r)),"getTabChildren",function(){return Array.prototype.slice.call(i.tabLoopRef.current.querySelectorAll("[tabindex], a, button, input, select, textarea"),1,-1).filter(xve)}),re(le(i),"handleFocusStart",function(o){var s=i.getTabChildren();s&&s.length>1&&s[s.length-1].focus()}),re(le(i),"handleFocusEnd",function(o){var s=i.getTabChildren();s&&s.length>1&&s[0].focus()}),i.tabLoopRef=U.createRef(),i}return Mn(n,[{key:"render",value:function(){return this.props.enableTabLoop?U.createElement("div",{className:"react-datepicker__tab-loop",ref:this.tabLoopRef},U.createElement("div",{className:"react-datepicker__tab-loop__start",tabIndex:"0",onFocus:this.handleFocusStart}),this.props.children,U.createElement("div",{className:"react-datepicker__tab-loop__end",tabIndex:"0",onFocus:this.handleFocusEnd})):this.props.children}}],[{key:"defaultProps",get:function(){return{enableTabLoop:!0}}}]),n}(),Cve=function(e){Rn(n,U.Component);var t=Nn(n);function n(){return kn(this,n),t.apply(this,arguments)}return Mn(n,[{key:"render",value:function(){var r,i=this.props,o=i.className,s=i.wrapperClassName,a=i.hidePopper,l=i.popperComponent,c=i.popperModifiers,f=i.popperPlacement,h=i.popperProps,p=i.targetComponent,m=i.enableTabLoop,v=i.popperOnKeyDown,y=i.portalId,x=i.portalHost;if(!a){var _=me("react-datepicker-popper",o);r=U.createElement(Uge,C_({modifiers:c,placement:f},h),function(S){var T=S.ref,P=S.style,k=S.placement,N=S.arrowProps;return U.createElement(Sve,{enableTabLoop:m},U.createElement("div",{ref:T,style:P,className:_,"data-placement":k,onKeyDown:v},U.cloneElement(l,{arrowProps:N})))})}this.props.popperContainer&&(r=U.createElement(this.props.popperContainer,{},r)),y&&!a&&(r=U.createElement(p8,{portalId:y,portalHost:x},r));var w=me("react-datepicker-wrapper",s);return U.createElement(jge,{className:"react-datepicker-manager"},U.createElement(Vge,null,function(S){var T=S.ref;return U.createElement("div",{ref:T,className:w},p)}),r)}}],[{key:"defaultProps",get:function(){return{hidePopper:!0,popperModifiers:[],popperProps:{},popperPlacement:"bottom-start"}}}]),n}(),Eve=S_(wve),Tve=function(e){Rn(n,U.Component);var t=Nn(n);function n(r){var i;return kn(this,n),re(le(i=t.call(this,r)),"getPreSelection",function(){return i.props.openToDate?i.props.openToDate:i.props.selectsEnd&&i.props.startDate?i.props.startDate:i.props.selectsStart&&i.props.endDate?i.props.endDate:dn()}),re(le(i),"calcInitialState",function(){var o,s=i.getPreSelection(),a=f8(i.props),l=d8(i.props),c=a&&Gr(s,Lr(a))?a:l&&Hs(s,il(l))?l:s;return{open:i.props.startOpen||!1,preventFocus:!1,preSelection:(o=i.props.selectsRange?i.props.startDate:i.props.selected)!==null&&o!==void 0?o:c,highlightDates:GN(i.props.highlightDates),focused:!1,shouldFocusDayInline:!1}}),re(le(i),"clearPreventFocusTimeout",function(){i.preventFocusTimeout&&clearTimeout(i.preventFocusTimeout)}),re(le(i),"setFocus",function(){i.input&&i.input.focus&&i.input.focus({preventScroll:!0})}),re(le(i),"setBlur",function(){i.input&&i.input.blur&&i.input.blur(),i.cancelFocusInput()}),re(le(i),"setOpen",function(o){var s=arguments.length>1&&arguments[1]!==void 0&&arguments[1];i.setState({open:o,preSelection:o&&i.state.open?i.state.preSelection:i.calcInitialState().preSelection,lastPreSelectChange:j1},function(){o||i.setState(function(a){return{focused:!!s&&a.focused}},function(){!s&&i.setBlur(),i.setState({inputValue:null})})})}),re(le(i),"inputOk",function(){return xE(i.state.preSelection)}),re(le(i),"isCalendarOpen",function(){return i.props.open===void 0?i.state.open&&!i.props.disabled&&!i.props.readOnly:i.props.open}),re(le(i),"handleFocus",function(o){i.state.preventFocus||(i.props.onFocus(o),i.props.preventOpenOnFocus||i.props.readOnly||i.setOpen(!0)),i.setState({focused:!0})}),re(le(i),"cancelFocusInput",function(){clearTimeout(i.inputFocusTimeout),i.inputFocusTimeout=null}),re(le(i),"deferFocusInput",function(){i.cancelFocusInput(),i.inputFocusTimeout=setTimeout(function(){return i.setFocus()},1)}),re(le(i),"handleDropdownFocus",function(){i.cancelFocusInput()}),re(le(i),"handleBlur",function(o){(!i.state.open||i.props.withPortal||i.props.showTimeInput)&&i.props.onBlur(o),i.setState({focused:!1})}),re(le(i),"handleCalendarClickOutside",function(o){i.props.inline||i.setOpen(!1),i.props.onClickOutside(o),i.props.withPortal&&o.preventDefault()}),re(le(i),"handleChange",function(){for(var o=arguments.length,s=new Array(o),a=0;a{const{className:t,isClearable:n,selected:r,dateFormat:i}=e,o=!n||$o(r),s=V.useRef();return g.jsxs("div",{className:"icon-input-container",children:[g.jsx(Tve,{...e,popperModifiers:[{name:"arrow",options:{padding:24}}],dateFormat:i??Pf,className:me("icon-input-container__input form-control",t),ref:s}),o&&g.jsx(je,{icon:Dpe,className:"icon-input-container__icon",onClick:()=>{var a;return(a=s.current)==null?void 0:a.input.focus()}})]})},Pve=e=>g.jsx(c2,{...e,dateFormat:LE,showTimeSelect:!0,timeIntervals:10});const kve=({icon:e,className:t,...n})=>{const r=dl(),i=me("icon-input-container__input",t);return g.jsxs("div",{className:"icon-input-container",children:[g.jsx(Ic,{className:i,innerRef:r,...n}),g.jsx(je,{icon:e,fixedWidth:!0,className:"icon-input-container__icon",onClick:()=>{var o;return(o=r.current)==null?void 0:o.focus()}})]})},I1=({children:e,infoTooltip:t,checked:n,onChange:r})=>g.jsxs("p",{children:[g.jsx(e8,{inline:!0,checked:n,className:t?"me-2":"",onChange:r,children:e}),t&&g.jsx(rg,{placement:"right",children:t})]});const Mve=({isOpen:e,toggle:t})=>g.jsxs(Vo,{isOpen:e,toggle:t,centered:!0,size:"lg",children:[g.jsx(io,{toggle:t,children:"Info"}),g.jsxs(Mi,{children:[g.jsxs("p",{children:["When the ",g.jsx("b",{children:g.jsx("i",{children:'"Use existing URL if found"'})})," checkbox is checked, the server will return an existing short URL if it matches provided params."]}),g.jsx("p",{children:"These are the checks performed by Shlink in order to determine if an existing short URL should be returned:"}),g.jsxs("ul",{children:[g.jsx("li",{children:"When only the long URL is provided: The most recent match will be returned, or a new short URL will be created if none is found."}),g.jsxs("li",{children:["When long URL and custom slug and/or domain are provided: Same as in previous case, but it will try to match the short URL using both the long URL and the slug, the long URL and the domain, or the three of them.",g.jsx("br",{}),"If the slug is being used by another long URL, an error will be returned."]}),g.jsx("li",{children:"When other params are provided: Same as in previous cases, but it will try to match existing short URLs with all provided data. If any of them does not match, a new short URL will be created"})]})]})]}),Rve=()=>{const[e,t]=hn();return g.jsxs(g.Fragment,{children:[g.jsx("span",{title:"What does this mean?",children:g.jsx(je,{icon:fC,style:{cursor:"pointer"},onClick:t})}),g.jsx(Mve,{isOpen:e,toggle:t})]})};const Nve=Dt(LZ,SZ(/ /g,"-")),F1=e=>typeof e=="string"?Ao(e):e,Lve=(e,t)=>({mode:n,saving:r,onSave:i,initialState:o,selectedServer:s})=>{const[a,l]=V.useState(o),c=()=>l(o),f=ki("deviceLongUrls",s),h=n==="edit",p=n==="create-basic",m=P=>l({...a,tags:P.map(Nve)}),v=(P,k)=>vi(P)?P:vi(k)?null:void 0,y=rh(async()=>i({...a,validSince:Ys(a.validSince)??null,validUntil:Ys(a.validUntil)??null,maxVisits:vi(a.maxVisits)?Number(a.maxVisits):null}).then(()=>!h&&c()).catch(()=>{}));V.useEffect(()=>{l(o)},[o]);const x=(P,k,N="text",D={},z={})=>g.jsx(vr,{...z,children:g.jsx(Ic,{id:P,type:N,placeholder:k,value:a[P]??"",onChange:D.onChange??(A=>l({...a,[P]:A.target.value})),...D})}),_=(P,k,N)=>{var D;return g.jsx(kve,{icon:N,id:P,type:"url",placeholder:k,value:((D=a.deviceLongUrls)==null?void 0:D[P])??"",onChange:z=>{var A;return l({...a,deviceLongUrls:{...a.deviceLongUrls??{},[P]:v(z.target.value,(A=o.deviceLongUrls)==null?void 0:A[P])}})}})},w=(P,k,N={})=>g.jsx(Pve,{selected:a[P]?F1(a[P]):null,placeholderText:k,isClearable:!0,onChange:D=>l({...a,[P]:D}),...N}),S=g.jsxs(g.Fragment,{children:[g.jsx(vr,{children:g.jsx(Ic,{bsSize:"lg",type:"url",placeholder:"URL to be shortened",required:!0,value:a.longUrl,onChange:P=>l({...a,longUrl:P.target.value})})}),g.jsxs(Qn,{children:[p&&x("customSlug","Custom slug","text",{bsSize:"lg"},{className:"col-lg-6"}),g.jsx("div",{className:p?"col-lg-6 mb-3":"col-12",children:g.jsx(e,{selectedTags:a.tags??[],onChange:m})})]})]}),T=ki("forwardQuery",s);return g.jsxs("form",{name:"shortUrlForm",className:"short-url-form",onSubmit:y,children:[p&&S,!p&&g.jsxs(g.Fragment,{children:[g.jsxs(Qn,{children:[g.jsx("div",{className:me("mb-3",{"col-sm-6":f,"col-12":!f}),children:g.jsx(cn,{title:"Main options",className:"mb-3",children:S})}),f&&g.jsx("div",{className:"col-sm-6 mb-3",children:g.jsxs(cn,{title:"Device-specific long URLs",children:[g.jsx(vr,{children:_("android","Android-specific redirection",Ege)}),g.jsx(vr,{children:_("ios","iOS-specific redirection",Cge)}),_("desktop","Desktop-specific redirection",zQ)]})})]}),g.jsxs(Qn,{children:[g.jsx("div",{className:"col-sm-6 mb-3",children:g.jsxs(cn,{title:"Customize the short URL",children:[x("title","Title","text",{onChange:({target:P})=>l({...a,title:v(P.value,o.title)})}),!h&&g.jsxs(g.Fragment,{children:[g.jsxs(Qn,{children:[g.jsx("div",{className:"col-lg-6",children:x("customSlug","Custom slug","text",{disabled:vi(a.shortCodeLength)})}),g.jsx("div",{className:"col-lg-6",children:x("shortCodeLength","Short code length","number",{min:4,disabled:vi(a.customSlug)})})]}),g.jsx(t,{value:a.domain,onChange:P=>l({...a,domain:P})})]})]})}),g.jsx("div",{className:"col-sm-6 mb-3",children:g.jsxs(cn,{title:"Limit access to the short URL",children:[x("maxVisits","Maximum number of visits allowed","number",{min:1}),g.jsx("div",{className:"mb-3",children:w("validSince","Enabled since...",{maxDate:a.validUntil?F1(a.validUntil):void 0})}),w("validUntil","Enabled until...",{minDate:a.validSince?F1(a.validSince):void 0})]})})]}),g.jsxs(Qn,{children:[g.jsx("div",{className:"col-sm-6 mb-3",children:g.jsxs(cn,{title:"Extra checks",children:[g.jsx(I1,{infoTooltip:"If checked, Shlink will try to reach the long URL, failing in case it's not publicly accessible.",checked:a.validateUrl,onChange:P=>l({...a,validateUrl:P}),children:"Validate URL"}),!h&&g.jsxs("p",{children:[g.jsx(e8,{inline:!0,className:"me-2",checked:a.findIfExists,onChange:P=>l({...a,findIfExists:P}),children:"Use existing URL if found"}),g.jsx(Rve,{})]})]})}),g.jsx("div",{className:"col-sm-6 mb-3",children:g.jsxs(cn,{title:"Configure behavior",children:[g.jsx(I1,{infoTooltip:"This short URL will be included in the robots.txt for your Shlink instance, allowing web crawlers (like Google) to index it.",checked:a.crawlable,onChange:P=>l({...a,crawlable:P}),children:"Make it crawlable"}),T&&g.jsx(I1,{infoTooltip:"When this short URL is visited, any query params appended to it will be forwarded to the long URL.",checked:a.forwardQuery,onChange:P=>l({...a,forwardQuery:P}),children:"Forward query params on redirect"})]})})]})]}),g.jsx("div",{className:"text-center",children:g.jsx(ht,{outline:!0,color:"primary",disabled:r||Wn(a.longUrl),className:"btn-xs-block",children:r?"Saving...":"Save"})})]})},Dve=({startDate:e=null,endDate:t=null,disabled:n=!1,onStartDateChange:r,onEndDateChange:i})=>g.jsxs("div",{className:"row",children:[g.jsx("div",{className:"col-md-6",children:g.jsx(c2,{selected:e,placeholderText:"Since...",isClearable:!0,maxDate:t??void 0,disabled:n,onChange:r})}),g.jsx("div",{className:"col-md-6",children:g.jsx(c2,{className:"mt-2 mt-md-0",selected:t,placeholderText:"Until...",isClearable:!0,minDate:e??void 0,disabled:n,onChange:o=>i(o&&il(o))})})]}),m8=({onDatesChange:e,initialDateRange:t,defaultText:n,disabled:r,updatable:i=!1})=>{const o=ey(t),[s,a]=V.useState(o?t:void 0),[l,c]=V.useState(o?void 0:t),f=p=>{a(P5(p)?sh:void 0),c(p),e(p)},h=p=>{a(p),c(void 0),e(M5(p))};return i&&Roe(()=>{const p=ey(t);p&&h(t),t&&!p&&f(t)},[t]),g.jsxs(Ho,{disabled:r,text:AE(s??l)??n,children:[g.jsx(H5,{allText:n,active:s,onChange:h}),g.jsx(Ue,{divider:!0}),g.jsx(Ue,{header:!0,children:"Custom:"}),g.jsx(Ue,{text:!0,children:g.jsx(Dve,{...l,onStartDateChange:p=>f({...l,startDate:p}),onEndDateChange:p=>f({...l,endDate:p})})})]})},Ave=({onChange:e,selected:t={},className:n,supportsDisabledFiltering:r})=>{const{excludeBots:i=!1,excludeMaxVisitsReached:o=!1,excludePastValidUntil:s=!1}=t,a=l=>()=>e({...t,[l]:!(t!=null&&t[l])});return g.jsxs(Ho,{text:"Filters",dropdownClassName:n,inline:!0,end:!0,minWidth:250,children:[g.jsx(Ue,{header:!0,children:"Visits:"}),g.jsx(Ue,{active:i,onClick:a("excludeBots"),children:"Ignore visits from bots"}),r&&g.jsxs(g.Fragment,{children:[g.jsx(Ue,{divider:!0}),g.jsx(Ue,{header:!0,children:"Short URLs:"}),g.jsx(Ue,{active:o,onClick:a("excludeMaxVisitsReached"),children:"Exclude with visits reached"}),g.jsx(Ue,{active:s,onClick:a("excludePastValidUntil"),children:"Exclude enabled in the past"})]}),g.jsx(Ue,{divider:!0}),g.jsx(Ue,{disabled:!vi(t),onClick:()=>e({excludeBots:!1,excludeMaxVisitsReached:!1,excludePastValidUntil:!1}),children:g.jsx("i",{children:"Clear filters"})})]})};const jve=(e,t)=>({selectedServer:n,className:r,shortUrlsAmount:i,order:o,handleOrderBy:s,settings:a})=>{var D;const[l,c]=x_(),{search:f,tags:h,startDate:p,endDate:m,excludeBots:v,excludeMaxVisitsReached:y,excludePastValidUntil:x,tagsMode:_="any"}=l,w=ki("filterDisabledUrls",n),S=Dt(({startDate:z,endDate:A})=>({startDate:Ys(z)??void 0,endDate:Ys(A)??void 0}),c),T=Dt(z=>Wn(z)?void 0:z,z=>c({search:z})),P=z=>c({tags:z}),k=ki("allTagsFiltering",n),N=Dt(()=>_==="any"?"all":"any",z=>c({tagsMode:z}));return g.jsxs("div",{className:me("short-urls-filtering-bar-container",r),children:[g.jsx(ih,{initialValue:f,onChange:T}),g.jsxs(Qd,{className:"mt-3",children:[g.jsx(t,{allowNew:!1,placeholder:"With tags...",selectedTags:h,onChange:P}),k&&h.length>1&&g.jsxs(g.Fragment,{children:[g.jsx(ht,{outline:!0,color:"secondary",onClick:N,id:"tagsModeBtn","aria-label":"Change tags mode",children:g.jsx(je,{className:"short-urls-filtering-bar__tags-icon",icon:_==="all"?eI:mQ})}),g.jsx(Er,{target:"tagsModeBtn",placement:"left",children:_==="all"?"With all the tags.":"With any of the tags."})]})]}),g.jsxs(Qn,{className:"flex-lg-row-reverse",children:[g.jsx("div",{className:"col-lg-8 col-xl-6 mt-3",children:g.jsxs("div",{className:"d-md-flex",children:[g.jsx("div",{className:"flex-fill",children:g.jsx(m8,{defaultText:"All short URLs",initialDateRange:k5(p,m),onDatesChange:S})}),g.jsx(Ave,{className:"ms-0 ms-md-2 mt-3 mt-md-0",selected:{excludeBots:v??((D=a.visits)==null?void 0:D.excludeBots),excludeMaxVisitsReached:y,excludePastValidUntil:x},onChange:c,supportsDisabledFiltering:w})]})}),g.jsx("div",{className:"col-6 col-lg-4 col-xl-6 mt-3",children:g.jsx(e,{amount:i})}),g.jsx("div",{className:"col-6 d-lg-none mt-3",children:g.jsx(fh,{prefixed:!1,items:U5,order:o,onChange:s})})]})]})};function Rf({currentOrder:e,field:t,className:n="ms-1"}){return!e.dir||e.field!==t?null:g.jsx(je,{icon:e.dir==="ASC"?aQ:_Q,className:n})}const Al=2,u2="...",g8=(e,t)=>{const n=QS(vj(Al,e-Al),kj(t-1,e+Al)+1);return e-Al>Al&&n.unshift(u2),e+Ale===u2,v8=e=>Td(e)?e:_n(e),y8=(e,t)=>Td(e)?`${e}_${t}`:`${e}`,Ive=({paginator:e,serverId:t,currentQueryString:n=""})=>{const{currentPage:r=0,pagesCount:i=0}=e??{},o=a=>`/server/${t}/list-short-urls/${a}${n}`;if(i<=1)return g.jsx("div",{className:"pb-3"});const s=()=>g8(r,i).map((a,l)=>g.jsx(Rs,{disabled:Td(a),active:r===a,children:g.jsx(Ns,{tag:Lt,to:o(a),children:v8(a)})},y8(a,l)));return g.jsxs(g_,{className:"sticky-card-paginator py-3",listClassName:"flex-wrap justify-content-center mb-0",children:[g.jsx(Rs,{disabled:r===1,children:g.jsx(Ns,{previous:!0,tag:Lt,to:o(r-1)})}),s(),g.jsx(Rs,{disabled:r>=i,children:g.jsx(Ns,{next:!0,tag:Lt,to:o(r+1)})})]})},Fve=(e,t)=>ra(({listShortUrls:n,shortUrlsList:r,selectedServer:i,settings:o})=>{var Z,ee,ie;const s=Ud(i),{page:a}=Xs(),l=Pn(),[c,f]=x_(),{tags:h,search:p,startDate:m,endDate:v,orderBy:y,tagsMode:x,excludeBots:_,excludePastValidUntil:w,excludeMaxVisitsReached:S}=c,[T,P]=V.useState(y??((Z=o.shortUrlsList)==null?void 0:Z.defaultOrdering)??IE),{pagination:k}=(r==null?void 0:r.shortUrls)??{},N=_??((ee=o.visits)==null?void 0:ee.excludeBots),D=ki("excludeBotsOnShortUrls",i),z=(oe,G)=>{f({orderBy:{field:oe,dir:G}}),P({field:oe,dir:G})},A=oe=>()=>z(oe,e_(oe,T.field,T.dir)),W=oe=>g.jsx(Rf,{currentOrder:T,field:oe}),Y=Dt(oe=>[...new Set([...h,oe])],oe=>f({tags:oe})),J=({field:oe,dir:G})=>D&&N&&oe==="visits"?{field:"nonBotVisits",dir:G}:{field:oe,dir:G};return V.useEffect(()=>{n({page:a,searchTerm:p,tags:h,startDate:m,endDate:v,orderBy:J(T),tagsMode:x,excludePastValidUntil:w,excludeMaxVisitsReached:S})},[a,p,h,m,v,T.field,T.dir,x,w,S]),g.jsxs(g.Fragment,{children:[g.jsx(t,{selectedServer:i,shortUrlsAmount:(ie=r.shortUrls)==null?void 0:ie.pagination.totalItems,order:T,handleOrderBy:z,settings:o,className:"mb-3"}),g.jsxs(Sr,{body:!0,className:"pb-0",children:[g.jsx(e,{selectedServer:i,shortUrlsList:r,orderByColumn:A,renderOrderIcon:W,onTagClick:Y}),g.jsx(Ive,{paginator:k,serverId:s,currentQueryString:l.search})]})]})},()=>[Xr.visits]);const $ve=e=>({orderByColumn:t,renderOrderIcon:n,shortUrlsList:r,onTagClick:i,selectedServer:o,className:s})=>{const{error:a,loading:l,shortUrls:c}=r,f=me({"short-urls-table__header-cell--with-action":!!t}),h=me("short-urls-table__header-cell",f),p=me("table table-hover responsive-table short-urls-table",s),m=()=>a?g.jsx("tr",{children:g.jsx("td",{colSpan:6,className:"text-center table-danger text-dark",children:"Something went wrong while loading short URLs :("})}):l?g.jsx("tr",{children:g.jsx("td",{colSpan:6,className:"text-center",children:"Loading..."})}):!l&&Wn(c==null?void 0:c.data)?g.jsx("tr",{children:g.jsx("td",{colSpan:6,className:"text-center",children:"No results found"})}):c==null?void 0:c.data.map(v=>g.jsx(e,{shortUrl:v,selectedServer:o,onTagClick:i},v.shortUrl));return g.jsxs("table",{className:p,children:[g.jsx("thead",{className:"responsive-table__header short-urls-table__header",children:g.jsxs("tr",{children:[g.jsxs("th",{className:h,onClick:t==null?void 0:t("dateCreated"),children:["Created at ",n==null?void 0:n("dateCreated")]}),g.jsxs("th",{className:h,onClick:t==null?void 0:t("shortCode"),children:["Short URL ",n==null?void 0:n("shortCode")]}),g.jsxs("th",{className:"short-urls-table__header-cell",children:[g.jsxs("span",{className:f,onClick:t==null?void 0:t("title"),children:["Title ",n==null?void 0:n("title")]}),"  /  ",g.jsxs("span",{className:f,onClick:t==null?void 0:t("longUrl"),children:[g.jsx("span",{className:"indivisible",children:"Long URL"})," ",n==null?void 0:n("longUrl")]})]}),g.jsx("th",{className:"short-urls-table__header-cell",children:"Tags"}),g.jsx("th",{className:h,onClick:t==null?void 0:t("visits"),children:g.jsxs("span",{className:"indivisible",children:["Visits ",n==null?void 0:n("visits")]})}),g.jsx("th",{className:"short-urls-table__header-cell",colSpan:2})]})}),g.jsx("tbody",{children:m()})]})},Bve=(e,t)=>{e.serviceFactory("ShortUrlsList",Fve,"ShortUrlsTable","ShortUrlsFilteringBar"),e.decorator("ShortUrlsList",t(["selectedServer","mercureInfo","shortUrlsList","settings"],["listShortUrls","createNewVisits","loadMercureInfo"])),e.serviceFactory("ShortUrlsTable",$ve,"ShortUrlsRow"),e.serviceFactory("ShortUrlsRow",gge,"ShortUrlsRowMenu","ColorGenerator","useTimeoutToggle"),e.decorator("ShortUrlsRow",t(["settings"])),e.serviceFactory("ShortUrlsRowMenu",vge,"DeleteShortUrlModal","QrCodeModal"),e.serviceFactory("CreateShortUrlResult",oge,"useTimeoutToggle"),e.serviceFactory("ShortUrlForm",Lve,"TagsSelector","DomainSelector"),e.serviceFactory("CreateShortUrl",$me,"ShortUrlForm","CreateShortUrlResult"),e.decorator("CreateShortUrl",t(["shortUrlCreation","selectedServer","settings"],["createShortUrl","resetCreateShortUrl"])),e.serviceFactory("EditShortUrl",Bme,"ShortUrlForm"),e.decorator("EditShortUrl",t(["shortUrlDetail","shortUrlEdition","selectedServer","settings"],["getShortUrlDetail","editShortUrl"])),e.serviceFactory("DeleteShortUrlModal",()=>sge),e.decorator("DeleteShortUrlModal",t(["shortUrlDeletion"],["deleteShortUrl","shortUrlDeleted","resetDeleteShortUrl"])),e.serviceFactory("QrCodeModal",fge,"ImageDownloader"),e.decorator("QrCodeModal",t(["selectedServer"])),e.serviceFactory("ShortUrlsFilteringBar",jve,"ExportShortUrlsBtn","TagsSelector"),e.serviceFactory("ExportShortUrlsBtn",age,"buildShlinkApiClient","ReportExporter"),e.decorator("ExportShortUrlsBtn",t(["selectedServer"])),e.serviceFactory("shortUrlsListReducerCreator",Wpe,"listShortUrls","editShortUrl","createShortUrl"),e.serviceFactory("shortUrlsListReducer",at("reducer"),"shortUrlsListReducerCreator"),e.serviceFactory("shortUrlCreationReducerCreator",_ge,"createShortUrl"),e.serviceFactory("shortUrlCreationReducer",at("reducer"),"shortUrlCreationReducerCreator"),e.serviceFactory("shortUrlEditionReducerCreator",Sge,"editShortUrl"),e.serviceFactory("shortUrlEditionReducer",at("reducer"),"shortUrlEditionReducerCreator"),e.serviceFactory("shortUrlDeletionReducerCreator",Upe,"deleteShortUrl"),e.serviceFactory("shortUrlDeletionReducer",at("reducer"),"shortUrlDeletionReducerCreator"),e.serviceFactory("shortUrlDetailReducerCreator",bge,"buildShlinkApiClient"),e.serviceFactory("shortUrlDetailReducer",at("reducer"),"shortUrlDetailReducerCreator"),e.serviceFactory("listShortUrls",Hpe,"buildShlinkApiClient"),e.serviceFactory("createShortUrl",yge,"buildShlinkApiClient"),e.serviceFactory("resetCreateShortUrl",at("resetCreateShortUrl"),"shortUrlCreationReducerCreator"),e.serviceFactory("deleteShortUrl",zpe,"buildShlinkApiClient"),e.serviceFactory("resetDeleteShortUrl",at("resetDeleteShortUrl"),"shortUrlDeletionReducerCreator"),e.serviceFactory("shortUrlDeleted",()=>j5),e.serviceFactory("getShortUrlDetail",at("getShortUrlDetail"),"shortUrlDetailReducerCreator"),e.serviceFactory("editShortUrl",xge,"buildShlinkApiClient")},zve=({tag:e,toggle:t,isOpen:n,deleteTag:r,tagDelete:i,tagDeleted:o})=>{const{deleting:s,error:a,deleted:l,errorData:c}=i,f=async()=>{await r(e),t()};return g.jsxs(Vo,{toggle:t,isOpen:n,centered:!0,onClosed:()=>l&&o(e),children:[g.jsx(io,{toggle:t,className:"text-danger",children:"Delete tag"}),g.jsxs(Mi,{children:["Are you sure you want to delete tag ",g.jsx("b",{children:e}),"?",a&&g.jsx(Nr,{type:"error",small:!0,className:"mt-2",children:g.jsx(Do,{errorData:c,fallbackMessage:"Something went wrong while deleting the tag :("})})]}),g.jsxs(ta,{children:[g.jsx(ht,{color:"link",onClick:t,children:"Cancel"}),g.jsx(ht,{color:"danger",disabled:s,onClick:f,children:s?"Deleting tag...":"Delete tag"})]})]})};function O_(){return(O_=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function f2(e){var t=V.useRef(e),n=V.useRef(function(r){t.current&&t.current(r)});return t.current=e,n.current}var Od=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e0:x.buttons>0)&&i.current?o(KN(i.current,x,a.current)):y(!1)},v=function(){return y(!1)};function y(x){var _=l.current,w=d2(i.current),S=x?w.addEventListener:w.removeEventListener;S(_?"touchmove":"mousemove",m),S(_?"touchend":"mouseup",v)}return[function(x){var _=x.nativeEvent,w=i.current;if(w&&(XN(_),!function(T,P){return P&&!Nf(T)}(_,l.current)&&w)){if(Nf(_)){l.current=!0;var S=_.changedTouches||[];S.length&&(a.current=S[0].identifier)}w.focus(),o(KN(w,_,a.current)),y(!0)}},function(x){var _=x.which||x.keyCode;_<37||_>40||(x.preventDefault(),s({left:_===39?.05:_===37?-.05:0,top:_===40?.05:_===38?-.05:0}))},y]},[s,o]),f=c[0],h=c[1],p=c[2];return V.useEffect(function(){return p},[p]),U.createElement("div",O_({},r,{onTouchStart:f,onMouseDown:f,className:"react-colorful__interactive",ref:i,onKeyDown:h,tabIndex:0,role:"slider"}))}),UE=function(e){return e.filter(Boolean).join(" ")},w8=function(e){var t=e.color,n=e.left,r=e.top,i=r===void 0?.5:r,o=UE(["react-colorful__pointer",e.className]);return U.createElement("div",{className:o,style:{top:100*i+"%",left:100*n+"%"}},U.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},Un=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n},Uve=function(e){return qve(h2(e))},h2=function(e){return e[0]==="#"&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?Un(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:e.length===8?Un(parseInt(e.substring(6,8),16)/255,2):1}},Vve=function(e){return Yve(Wve(e))},Hve=function(e){var t=e.s,n=e.v,r=e.a,i=(200-t)*n/100;return{h:Un(e.h),s:Un(i>0&&i<200?t*n/100/(i<=100?i:200-i)*100:0),l:Un(i/2),a:Un(r,2)}},p2=function(e){var t=Hve(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},Wve=function(e){var t=e.h,n=e.s,r=e.v,i=e.a;t=t/360*6,n/=100,r/=100;var o=Math.floor(t),s=r*(1-n),a=r*(1-(t-o)*n),l=r*(1-(1-t+o)*n),c=o%6;return{r:Un(255*[r,a,s,s,l,r][c]),g:Un(255*[l,r,r,a,s,s][c]),b:Un(255*[s,s,l,r,r,a][c]),a:Un(i,2)}},Ap=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Yve=function(e){var t=e.r,n=e.g,r=e.b,i=e.a,o=i<1?Ap(Un(255*i)):"";return"#"+Ap(t)+Ap(n)+Ap(r)+o},qve=function(e){var t=e.r,n=e.g,r=e.b,i=e.a,o=Math.max(t,n,r),s=o-Math.min(t,n,r),a=s?o===t?(n-r)/s:o===n?2+(r-t)/s:4+(t-n)/s:0;return{h:Un(60*(a<0?a+6:a)),s:Un(o?s/o*100:0),v:Un(o/255*100),a:i}},Gve=U.memo(function(e){var t=e.hue,n=e.onChange,r=UE(["react-colorful__hue",e.className]);return U.createElement("div",{className:r},U.createElement(b8,{onMove:function(i){n({h:360*i.left})},onKey:function(i){n({h:Od(t+360*i.left,0,360)})},"aria-label":"Hue","aria-valuenow":Un(t),"aria-valuemax":"360","aria-valuemin":"0"},U.createElement(w8,{className:"react-colorful__hue-pointer",left:t/360,color:p2({h:t,s:100,v:100,a:1})})))}),Zve=U.memo(function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:p2({h:t.h,s:100,v:100,a:1})};return U.createElement("div",{className:"react-colorful__saturation",style:r},U.createElement(b8,{onMove:function(i){n({s:100*i.left,v:100-100*i.top})},onKey:function(i){n({s:Od(t.s+100*i.left,0,100),v:Od(t.v-100*i.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+Un(t.s)+"%, Brightness "+Un(t.v)+"%"},U.createElement(w8,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:p2(t)})))}),x8=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0},Kve=function(e,t){return e.toLowerCase()===t.toLowerCase()||x8(h2(e),h2(t))};function Xve(e,t,n){var r=f2(n),i=V.useState(function(){return e.toHsva(t)}),o=i[0],s=i[1],a=V.useRef({color:t,hsva:o});V.useEffect(function(){if(!e.equal(t,a.current.color)){var c=e.toHsva(t);a.current={hsva:c,color:t},s(c)}},[t,e]),V.useEffect(function(){var c;x8(o,a.current.hsva)||e.equal(c=e.fromHsva(o),a.current.color)||(a.current={hsva:o,color:c},r(c))},[o,e,r]);var l=V.useCallback(function(c){s(function(f){return Object.assign({},f,c)})},[]);return[o,l]}var Qve=typeof window<"u"?V.useLayoutEffect:V.useEffect,Jve=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},QN=new Map,eye=function(e){Qve(function(){var t=e.current?e.current.ownerDocument:document;if(t!==void 0&&!QN.has(t)){var n=t.createElement("style");n.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,QN.set(t,n);var r=Jve();r&&n.setAttribute("nonce",r),t.head.appendChild(n)}},[])},tye=function(e){var t=e.className,n=e.colorModel,r=e.color,i=r===void 0?n.defaultColor:r,o=e.onChange,s=_8(e,["className","colorModel","color","onChange"]),a=V.useRef(null);eye(a);var l=Xve(n,i,o),c=l[0],f=l[1],h=UE(["react-colorful",t]);return U.createElement("div",O_({},s,{ref:a,className:h}),U.createElement(Zve,{hsva:c,onChange:f}),U.createElement(Gve,{hue:c.h,onChange:f,className:"react-colorful__last-control"}))},nye={defaultColor:"000",toHsva:Uve,fromHsva:function(e){return Vve({h:e.h,s:e.s,v:e.v,a:1})},equal:Kve},rye=function(e){return U.createElement(tye,O_({},e,{colorModel:nye}))};const iye=({getColorForKey:e})=>({tag:t,editTag:n,toggle:r,tagEdited:i,isOpen:o,tagEdit:s})=>{const[a,l]=V.useState(t),[c,f]=V.useState(e(t)),[h,p,,m]=hn(),{editing:v,error:y,edited:x,errorData:_}=s,w=rh(async()=>{await n({oldName:t,newName:a,color:c}),r()}),S=Dt(m,()=>x&&i({oldName:t,newName:a,color:c}));return g.jsx(Vo,{isOpen:o,toggle:r,centered:!0,onClosed:S,children:g.jsxs("form",{name:"editTag",onSubmit:w,children:[g.jsx(io,{toggle:r,children:"Edit tag"}),g.jsxs(Mi,{children:[g.jsxs(Qd,{children:[g.jsx("div",{id:"colorPickerBtn",className:"input-group-text edit-tag-modal__color-picker-toggle",style:{backgroundColor:c,borderColor:c},onClick:p,children:g.jsx(je,{icon:lQ,className:"edit-tag-modal__color-icon"})}),g.jsx(Kd,{isOpen:h,toggle:p,target:"colorPickerBtn",placement:"right",hideArrow:!0,popperClassName:"edit-tag-modal__popover",children:g.jsx(rye,{color:c,onChange:f})}),g.jsx(Ic,{value:a,placeholder:"Tag",required:!0,onChange:({target:T})=>l(T.value)})]}),y&&g.jsx(Nr,{type:"error",small:!0,className:"mt-2",children:g.jsx(Do,{errorData:_,fallbackMessage:"Something went wrong while editing the tag :("})})]}),g.jsxs(ta,{children:[g.jsx(ht,{type:"button",color:"link",onClick:r,children:"Cancel"}),g.jsx(ht,{color:"primary",disabled:v,children:v?"Saving...":"Save"})]})]})})};function oye(e){return U.createElement("button",{type:"button",className:e.classNames.selectedTag,title:e.removeButtonText,onClick:e.onDelete},U.createElement("span",{className:e.classNames.selectedTagName},e.tag.name))}const sye={position:"absolute",width:0,height:0,visibility:"hidden",overflow:"scroll",whiteSpace:"pre"},aye=["fontSize","fontFamily","fontWeight","fontStyle","letterSpacing","textTransform"];class lye extends U.Component{constructor(t){super(t),this.state={inputWidth:null},this.input=U.createRef(),this.sizer=U.createRef()}componentDidMount(){this.props.autoresize&&(this.copyInputStyles(),this.updateInputWidth())}componentDidUpdate({query:t,placeholderText:n}){(t!==this.props.query||n!==this.props.placeholderText)&&this.updateInputWidth()}copyInputStyles(){const t=window.getComputedStyle(this.input.current);aye.forEach(n=>{this.sizer.current.style[n]=t[n]})}updateInputWidth(){let t;this.props.autoresize&&(t=Math.ceil(this.sizer.current.scrollWidth)+2),t!==this.state.inputWidth&&this.setState({inputWidth:t})}render(){const{id:t,query:n,ariaLabelText:r,placeholderText:i,expanded:o,classNames:s,inputAttributes:a,inputEventHandlers:l,index:c}=this.props;return U.createElement("div",{className:s.searchWrapper},U.createElement("input",Object.assign({},a,l,{ref:this.input,value:n,placeholder:i,className:s.searchInput,role:"combobox","aria-autocomplete":"list","aria-label":r||i,"aria-owns":t,"aria-activedescendant":c>-1?`${t}-${c}`:null,"aria-expanded":o,style:{width:this.state.inputWidth}})),U.createElement("div",{ref:this.sizer,style:sye},n||i))}}function VE(e){return e.replace(/[-\\^$*+?.()|[\]{}]/g,"\\$&")}function cye(e){return new RegExp(VE(e),"gi")}function uye(e){return new RegExp(`(?:^|\\s)${VE(e)}`,"i")}function fye(e){return new RegExp(`^${VE(e)}$`,"i")}function dye(e,t){const n=cye(t);return e.replace(n,"$&")}function hye({item:e,query:t}){return U.createElement("span",{dangerouslySetInnerHTML:{__html:dye(e.name,t)}})}function pye(e){const t=e.suggestionComponent||hye,n=e.options.map((r,i)=>{const o=`${e.id}-${i}`,s=[];return e.index===i&&s.push(e.classNames.suggestionActive),r.disabled&&s.push(e.classNames.suggestionDisabled),U.createElement("li",{id:o,key:o,role:"option",className:s.join(" "),"aria-disabled":!!r.disabled,onMouseDown:a=>a.preventDefault(),onClick:()=>e.addTag(r)},r.prefix?U.createElement("span",{className:e.classNames.suggestionPrefix},r.prefix," "):null,r.disableMarkIt?r.name:U.createElement(t,{item:r,query:e.query}))});return U.createElement("div",{className:e.classNames.suggestions},U.createElement("ul",{role:"listbox",id:e.id},n))}function mye(e,t){const n=e.querySelectorAll("a,button,input"),r=Array.prototype.findIndex.call(n,o=>o===t),i=n[r-1]||n[r+1];i&&i.focus()}const ka={ENTER:"Enter",TAB:"Tab",BACKSPACE:"Backspace",UP_ARROW:"ArrowUp",UP_ARROW_COMPAT:"Up",DOWN_ARROW:"ArrowDown",DOWN_ARROW_COMPAT:"Down"},S8={root:"react-tags",rootFocused:"is-focused",selected:"react-tags__selected",selectedTag:"react-tags__selected-tag",selectedTagName:"react-tags__selected-tag-name",search:"react-tags__search",searchWrapper:"react-tags__search-wrapper",searchInput:"react-tags__search-input",suggestions:"react-tags__suggestions",suggestionActive:"is-active",suggestionDisabled:"is-disabled",suggestionPrefix:"react-tags__suggestion-prefix"};function C8(e,t){return e.findIndex(n=>fye(t).test(n.name))}function $1(){if(this.state.query.length>=this.props.minQueryLength){const e=C8(this.state.options,this.state.query),t=this.state.index===-1?e:this.state.index,n=t>-1?this.state.options[t]:null;n?this.addTag(n):this.props.allowNew&&this.addTag({name:this.state.query})}}function gye(e){e.preventDefault();const t=this.state.options.length-1;this.setState({index:this.state.index<=0?t:this.state.index-1})}function vye(e){e.preventDefault();const t=this.state.options.length-1;this.setState({index:this.state.index>=t?0:this.state.index+1})}function yye(){this.state.query.length||this.deleteTag(this.props.tags.length-1)}function _ye(e,t){return uye(t).test(e.name)}function bye(e,t){let n;return e.suggestionsTransform?n=e.suggestionsTransform(t.query,e.suggestions):n=e.suggestions.filter(r=>e.suggestionsFilter(r,t.query)),n=n.slice(0,e.maxSuggestionsLength),e.allowNew&&e.newTagText&&C8(n,t.query)===-1?n.push({id:0,name:t.query,prefix:e.newTagText,disableMarkIt:!0}):e.noSuggestionsText&&n.length===0&&n.push({id:0,name:e.noSuggestionsText,disabled:!0,disableMarkIt:!0}),n}class HE extends U.Component{constructor(t){super(t),this.state={query:"",focused:!1,index:-1},this.inputEventHandlers={onChange:()=>{},onBlur:this.onBlur.bind(this),onFocus:this.onFocus.bind(this),onInput:this.onInput.bind(this),onKeyDown:this.onKeyDown.bind(this)},this.container=U.createRef(),this.input=U.createRef()}onInput(t){const n=t.target.value;this.props.onInput&&this.props.onInput(n),n.length===this.state.query.length+1&&this.props.delimiters.indexOf(n.slice(-1))>-1?$1.call(this):n!==this.state.query&&this.setState({query:n})}onKeyDown(t){this.props.delimiters.indexOf(t.key)>-1&&((this.state.query||this.state.index>-1)&&t.preventDefault(),$1.call(this)),t.key===ka.BACKSPACE&&this.props.allowBackspace&&yye.call(this,t),(t.key===ka.UP_ARROW||t.key===ka.UP_ARROW_COMPAT)&&gye.call(this,t),(t.key===ka.DOWN_ARROW||t.key===ka.DOWN_ARROW_COMPAT)&&vye.call(this,t)}onClick(t){document.activeElement!==t.target&&this.focusInput()}onBlur(){this.setState({focused:!1,index:-1}),this.props.onBlur&&this.props.onBlur(),this.props.addOnBlur&&$1.call(this)}onFocus(){this.setState({focused:!0}),this.props.onFocus&&this.props.onFocus()}onDeleteTag(t,n){this.container.current&&mye(this.container.current,n.currentTarget),this.deleteTag(t)}addTag(t){t.disabled||typeof this.props.onValidate=="function"&&!this.props.onValidate(t)||(this.props.onAddition({id:t.id,name:t.name}),this.clearInput())}deleteTag(t){this.props.onDelete(t)}clearInput(){this.setState({query:"",index:-1})}clearSelectedIndex(){this.setState({index:-1})}focusInput(){this.input.current&&this.input.current.input.current&&this.input.current.input.current.focus()}render(){const t=this.props.tagComponent||oye,n=this.state.focused&&this.state.query.length>=this.props.minQueryLength,r=Object.assign({},S8,this.props.classNames),i=[r.root];return this.state.focused&&i.push(r.rootFocused),U.createElement("div",{ref:this.container,className:i.join(" "),onClick:this.onClick.bind(this)},U.createElement("div",{className:r.selected,"aria-relevant":"additions removals","aria-live":"polite"},this.props.tags.map((o,s)=>U.createElement(t,{key:s,tag:o,removeButtonText:this.props.removeButtonText,classNames:r,onDelete:this.onDeleteTag.bind(this,s)}))),U.createElement("div",{className:r.search},U.createElement(lye,Object.assign({},this.state,{id:this.props.id,ref:this.input,classNames:r,inputAttributes:this.props.inputAttributes,inputEventHandlers:this.inputEventHandlers,autoresize:this.props.autoresize,expanded:n,placeholderText:this.props.placeholderText,ariaLabelText:this.props.ariaLabelText})),n&&this.state.options.length?U.createElement(pye,Object.assign({},this.state,{id:this.props.id,classNames:r,expanded:n,addTag:this.addTag.bind(this),suggestionComponent:this.props.suggestionComponent})):null))}static getDerivedStateFromProps(t,n){return n.prevQuery!==n.query||n.prevSuggestions!==t.suggestions?{prevQuery:n.query,prevSuggestions:t.suggestions,options:bye(t,n)}:null}}HE.defaultProps={id:"ReactTags",tags:[],placeholderText:"Add new tag",removeButtonText:"Click to remove tag",noSuggestionsText:null,newTagText:null,suggestions:[],suggestionsFilter:_ye,suggestionsTransform:null,autoresize:!0,classNames:S8,delimiters:[ka.TAB,ka.ENTER],minQueryLength:2,maxSuggestionsLength:6,allowNew:!1,allowBackspace:!0,addOnBlur:!1,tagComponent:null,suggestionComponent:null,inputAttributes:{}};HE.propTypes={id:C.string,tags:C.arrayOf(C.object),placeholderText:C.string,ariaLabelText:C.string,removeButtonText:C.string,noSuggestionsText:C.string,newTagText:C.string,suggestions:C.arrayOf(C.object),suggestionsFilter:C.func,suggestionsTransform:C.func,autoresize:C.bool,delimiters:C.arrayOf(C.string),onDelete:C.func.isRequired,onAddition:C.func.isRequired,onInput:C.func,onFocus:C.func,onBlur:C.func,onValidate:C.func,minQueryLength:C.number,maxSuggestionsLength:C.number,classNames:C.object,allowNew:C.bool,allowBackspace:C.bool,addOnBlur:C.bool,tagComponent:C.oneOfType([C.func,C.element]),suggestionComponent:C.oneOfType([C.func,C.element]),inputAttributes:C.object};const E8=({tag:e,colorGenerator:t})=>g.jsx("div",{style:{backgroundColor:t.getColorForKey(e)},className:"tag-bullet"}),JN=e=>({id:e,name:e}),wye=e=>({selectedTags:t,onChange:n,placeholder:r,listTags:i,tagsList:o,settings:s,allowNew:a=!0})=>{var h;V.useEffect(()=>{i()},[]);const l=((h=s.shortUrlCreation)==null?void 0:h.tagFilteringMode)??"startsWith",c=({tag:p,onDelete:m})=>g.jsx($E,{colorGenerator:e,text:p.name,clearable:!0,className:"react-tags__tag",onClose:m}),f=({item:p})=>g.jsxs(g.Fragment,{children:[g.jsx(E8,{tag:`${p.name}`,colorGenerator:e}),p.name]});return g.jsx(HE,{tags:t.map(JN),tagComponent:c,suggestions:o.tags.filter(p=>!t.includes(p)).map(JN),suggestionComponent:f,allowNew:a,addOnBlur:!0,placeholderText:r??"Add tags to the URL",minQueryLength:1,delimiters:["Enter","Tab",","],suggestionsTransform:l==="includes"?(p,m)=>m.filter(({name:v})=>v.includes(p)):void 0,onDelete:p=>{const m=[...t];m.splice(p,1),n(m)},onAddition:({name:p})=>n([...new Set([...t,...p.toLowerCase().split(",")])])})},m2="shlink/tagDelete",xye={deleting:!1,deleted:!1,error:!1},T8=yn(`${m2}/tagDeleted`),Sye=e=>{const t=rr(`${m2}/deleteTag`,async(r,{getState:i})=>{const{deleteTags:o}=e(i);await o([r])}),{reducer:n}=Yn({name:m2,initialState:xye,reducers:{},extraReducers:r=>{r.addCase(t.pending,()=>({deleting:!0,deleted:!1,error:!1})),r.addCase(t.rejected,(i,{error:o})=>({deleting:!1,deleted:!1,error:!0,errorData:ro(o)})),r.addCase(t.fulfilled,()=>({deleting:!1,deleted:!0,error:!1}))}});return{reducer:n,deleteTag:t}},WE="shlink/tagEdit",Cye={editing:!1,edited:!1,error:!1},O8=yn(`${WE}/tagEdited`),Eye=(e,t)=>rr(`${WE}/editTag`,async({oldName:n,newName:r,color:i},{getState:o})=>(await e(o).editTag(n,r),t.setColorForKey(r,i),{oldName:n,newName:r,color:i})),Tye=e=>Yn({name:WE,initialState:Cye,reducers:{},extraReducers:t=>{t.addCase(e.pending,()=>({editing:!0,edited:!1,error:!1})),t.addCase(e.rejected,(n,{error:r})=>({editing:!1,edited:!1,error:!0,errorData:ro(r)})),t.addCase(e.fulfilled,(n,{payload:r})=>({...Mj(["oldName","newName"],r),editing:!1,edited:!0,error:!1}))}}),YE="shlink/tagsList",B1={tags:[],filteredTags:[],stats:{},loading:!1,error:!1},eL=(e,t)=>n=>n===e?t:n,tL=(e,t)=>zd(n=>n===t,e),Oye=(e,t)=>e.reduce((n,[r,i])=>{if(!n[r])return n;const{bots:o,nonBots:s}=i,a=n[r];return{...n,[r]:{...a,visitsSummary:a.visitsSummary&&{total:a.visitsSummary.total+o+s,bots:a.visitsSummary.bots+o,nonBots:a.visitsSummary.nonBots+s},visitsCount:a.visitsCount+o+s}}},{...t}),Pye=e=>Object.entries(e.reduce((t,{shortUrl:n,visit:r})=>(n==null||n.tags.forEach(i=>{t[i]||(t[i]={bots:0,nonBots:0}),r.potentialBot?t[i].bots+=1:t[i].nonBots+=1}),t),{})),kye=(e,t=!0)=>rr(`${YE}/listTags`,async(n,{getState:r})=>{const{tagsList:i,selectedServer:o}=r();if(!t&&!Wn(i.tags))return i;const{listTags:s,tagsStats:a}=e(r),{tags:l,stats:c}=await(yE.tagsStats(o)?a():s()),f=c.reduce((h,{tag:p,...m})=>(h[p]=m,h),{});return{tags:l,stats:f}}),P8=yn(`${YE}/filterTags`),Mye=(e,t)=>Yn({name:YE,initialState:B1,reducers:{},extraReducers:n=>{n.addCase(P8,(r,{payload:i})=>({...r,filteredTags:r.tags.filter(o=>o.toLowerCase().match(i.toLowerCase()))})),n.addCase(e.pending,r=>({...r,loading:!0,error:!1})),n.addCase(e.rejected,(r,{error:i})=>({...B1,error:!0,errorData:ro(i)})),n.addCase(e.fulfilled,(r,{payload:i})=>({...B1,stats:i.stats,tags:i.tags,filteredTags:i.tags})),n.addCase(T8,({tags:r,filteredTags:i,...o},{payload:s})=>({...o,tags:tL(r,s),filteredTags:tL(i,s)})),n.addCase(O8,({tags:r,filteredTags:i,stats:o,...s},{payload:a})=>({...s,stats:{...o,[a.newName]:o[a.oldName]},tags:r.map(eL(a.oldName,a.newName)).sort(),filteredTags:i.map(eL(a.oldName,a.newName)).sort()})),n.addCase(ah,(r,{payload:i})=>({...r,stats:Oye(Pye(i.createdVisits),r.stats)})),n.addCase(t.fulfilled,({tags:r,...i},{payload:o})=>({...i,tags:r.concat(o.tags.filter(s=>!r.includes(s)))}))}}),Rye=e=>ra(({filterTags:t,forceListTags:n,tagsList:r,selectedServer:i,settings:o})=>{var h;const[s,a]=V.useState(((h=o.tags)==null?void 0:h.defaultOrdering)??{}),l=Dt(()=>r.filteredTags.map(p=>{var y,x,_;const m=r.stats[p],v=((y=o.visits)!=null&&y.excludeBots?(x=m==null?void 0:m.visitsSummary)==null?void 0:x.nonBots:(_=m==null?void 0:m.visitsSummary)==null?void 0:_.total)??(m==null?void 0:m.visitsCount)??0;return{tag:p,visits:v,shortUrls:(m==null?void 0:m.shortUrlsCount)??0}}),p=>Nj(p,s));if(V.useEffect(()=>{n()},[]),r.loading)return g.jsx(Co,{loading:!0});if(r.error)return g.jsx(Nr,{type:"error",children:g.jsx(Do,{errorData:r.errorData,fallbackMessage:"Error loading tags :("})});const c=p=>()=>{const m=e_(p,s.field,s.dir);a({field:m?p:void 0,dir:m})},f=()=>{if(r.filteredTags.length<1)return g.jsx(Co,{children:"No tags found"});const p=l();return g.jsx(e,{sortedTags:p,selectedServer:i,currentOrder:s,orderByColumn:c})};return g.jsxs(g.Fragment,{children:[g.jsx(ih,{className:"mb-3",onChange:t}),g.jsx(Qn,{className:"mb-3",children:g.jsx("div",{className:"col-lg-6 offset-lg-6",children:g.jsx(fh,{items:V5,order:s,onChange:(p,m)=>a({field:p,dir:m})})})}),f()]})},()=>[Xr.visits]);const qE=({pagesCount:e,currentPage:t,setCurrentPage:n,centered:r=!0})=>{if(e<2)return null;const i=o=>()=>!Td(o)&&n(o);return g.jsxs(g_,{listClassName:me("flex-wrap mb-0 simple-paginator",{"justify-content-center":r}),children:[g.jsx(Rs,{disabled:t<=1,children:g.jsx(Ns,{previous:!0,tag:"span",onClick:i(t-1)})}),g8(t,e).map((o,s)=>g.jsx(Rs,{disabled:Td(o),active:t===o,children:g.jsx(Ns,{role:"link",tag:"span",onClick:i(o),children:v8(o)})},y8(o,s))),g.jsx(Rs,{disabled:t>=e,children:g.jsx(Ns,{next:!0,tag:"span",onClick:i(t+1)})})]})};const Nye=20,Lye=e=>({sortedTags:t,selectedServer:n,orderByColumn:r,currentOrder:i})=>{const o=V.useRef(!0),{search:s}=Pn(),{page:a=1}=fl(s),[l,c]=Moe("page",Number(a)),f=ad(Nye,t),h=f.length>1,p=f[l-1]??[];return V.useEffect(()=>{!o.current&&c(1),o.current=!1},[t]),V.useEffect(()=>{scrollTo(0,0)},[l]),g.jsxs(cn,{bodyClassName:h?"pb-1":"",children:[g.jsxs("table",{className:"table table-hover responsive-table mb-0",children:[g.jsxs("thead",{className:"responsive-table__header",children:[g.jsxs("tr",{children:[g.jsxs("th",{className:"tags-table__header-cell",onClick:r("tag"),children:["Tag ",g.jsx(Rf,{currentOrder:i,field:"tag"})]}),g.jsxs("th",{className:"tags-table__header-cell text-lg-end",onClick:r("shortUrls"),children:["Short URLs ",g.jsx(Rf,{currentOrder:i,field:"shortUrls"})]}),g.jsxs("th",{className:"tags-table__header-cell text-lg-end",onClick:r("visits"),children:["Visits ",g.jsx(Rf,{currentOrder:i,field:"visits"})]}),g.jsx("th",{"aria-label":"Options",className:"tags-table__header-cell"})]}),g.jsx("tr",{children:g.jsx("th",{"aria-label":"Separator",colSpan:4,className:"p-0 border-top-0"})})]}),g.jsxs("tbody",{children:[p.length===0&&g.jsx("tr",{children:g.jsx("td",{colSpan:4,className:"text-center",children:"No results found"})}),p.map(m=>g.jsx(e,{tag:m,selectedServer:n},m.tag))]})]}),h&&g.jsx("div",{className:"sticky-card-paginator",children:g.jsx(qE,{pagesCount:f.length,currentPage:l,setCurrentPage:c})})]},l)},Dye=(e,t,n)=>({tag:r,selectedServer:i})=>{const[o,s]=hn(),[a,l]=hn(),c=Ud(i);return g.jsxs("tr",{className:"responsive-table__row",children:[g.jsxs("th",{className:"responsive-table__cell","data-th":"Tag",children:[g.jsx(E8,{tag:r.tag,colorGenerator:n})," ",r.tag]}),g.jsx("td",{className:"responsive-table__cell text-lg-end","data-th":"Short URLs",children:g.jsx(Lt,{to:`/server/${c}/list-short-urls/1?tags=${encodeURIComponent(r.tag)}`,children:_n(r.shortUrls)})}),g.jsx("td",{className:"responsive-table__cell text-lg-end","data-th":"Visits",children:g.jsx(Lt,{to:`/server/${c}/tag/${r.tag}/visits`,children:_n(r.visits)})}),g.jsx("td",{className:"responsive-table__cell text-lg-end",children:g.jsxs(__,{children:[g.jsxs(Ue,{onClick:l,children:[g.jsx(je,{icon:KX,fixedWidth:!0,className:"me-1"})," Edit"]}),g.jsxs(Ue,{onClick:s,children:[g.jsx(je,{icon:dQ,fixedWidth:!0,className:"me-1"})," Delete"]})]})}),g.jsx(t,{tag:r.tag,toggle:l,isOpen:a}),g.jsx(e,{tag:r.tag,toggle:s,isOpen:o})]})},Aye=(e,t)=>{e.serviceFactory("TagsSelector",wye,"ColorGenerator"),e.decorator("TagsSelector",t(["tagsList","settings"],["listTags"])),e.serviceFactory("DeleteTagConfirmModal",()=>zve),e.decorator("DeleteTagConfirmModal",t(["tagDelete"],["deleteTag","tagDeleted"])),e.serviceFactory("EditTagModal",iye,"ColorGenerator"),e.decorator("EditTagModal",t(["tagEdit"],["editTag","tagEdited"])),e.serviceFactory("TagsTableRow",Dye,"DeleteTagConfirmModal","EditTagModal","ColorGenerator"),e.decorator("TagsTableRow",t(["settings"])),e.serviceFactory("TagsTable",Lye,"TagsTableRow"),e.serviceFactory("TagsList",Rye,"TagsTable"),e.decorator("TagsList",t(["tagsList","selectedServer","mercureInfo","settings"],["forceListTags","filterTags","createNewVisits","loadMercureInfo"])),e.serviceFactory("tagEditReducerCreator",Tye,"editTag"),e.serviceFactory("tagEditReducer",at("reducer"),"tagEditReducerCreator"),e.serviceFactory("tagDeleteReducerCreator",Sye,"buildShlinkApiClient"),e.serviceFactory("tagDeleteReducer",at("reducer"),"tagDeleteReducerCreator"),e.serviceFactory("tagsListReducerCreator",Mye,"listTags","createShortUrl"),e.serviceFactory("tagsListReducer",at("reducer"),"tagsListReducerCreator");const n=r=>({buildShlinkApiClient:i})=>kye(i,r);e.factory("listTags",n(!1)),e.factory("forceListTags",n(!0)),e.serviceFactory("filterTags",()=>P8),e.serviceFactory("deleteTag",at("deleteTag"),"tagDeleteReducerCreator"),e.serviceFactory("tagDeleted",()=>T8),e.serviceFactory("editTag",Eye,"buildShlinkApiClient","ColorGenerator"),e.serviceFactory("tagEdited",()=>O8)};var jye="Expected a function",k8="__lodash_hash_undefined__",M8=1/0,Iye="[object Function]",Fye="[object GeneratorFunction]",$ye="[object Symbol]",Bye=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,zye=/^\w*$/,Uye=/^\./,Vye=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Hye=/[\\^$.*+?()[\]{}|]/g,Wye=/\\(\\)?/g,Yye=/^\[object .+?Constructor\]$/,qye=typeof $l=="object"&&$l&&$l.Object===Object&&$l,Gye=typeof self=="object"&&self&&self.Object===Object&&self,GE=qye||Gye||Function("return this")();function Zye(e,t){return e==null?void 0:e[t]}function Kye(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}var Xye=Array.prototype,Qye=Function.prototype,R8=Object.prototype,z1=GE["__core-js_shared__"],nL=function(){var e=/[^.]+$/.exec(z1&&z1.keys&&z1.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),N8=Qye.toString,ZE=R8.hasOwnProperty,L8=R8.toString,Jye=RegExp("^"+N8.call(ZE).replace(Hye,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),rL=GE.Symbol,e_e=Xye.splice,t_e=D8(GE,"Map"),Pd=D8(Object,"create"),iL=rL?rL.prototype:void 0,oL=iL?iL.toString:void 0;function sl(e){var t=-1,n=e?e.length:0;for(this.clear();++t-1}function f_e(e,t){var n=this.__data__,r=P_(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}iu.prototype.clear=a_e;iu.prototype.delete=l_e;iu.prototype.get=c_e;iu.prototype.has=u_e;iu.prototype.set=f_e;function pl(e){var t=-1,n=e?e.length:0;for(this.clear();++tt.toFixed(e.decimals).replace(".",e.separator):t=>`${t}`.replace(".",e.separator):e.decimals?t=>t.toFixed(e.decimals):t=>`${t}`}function QE(e={}){const t=typeof e.quote=="string"?e.quote:'"',n=typeof e.escapedQuote=="string"?e.escapedQuote:`${t}${t}`;return!t||t===n?r=>r:r=>(r.includes(t)&&(r=r.replace(new RegExp(t,"g"),n)),`${t}${r}${t}`)}function D_e(e={stringFormatter:QE()}){return t=>e.stringFormatter(t.toString().slice(7,-1))}function A_e(e={stringFormatter:QE()}){return t=>t===null||(t=JSON.stringify(t),t===void 0)?"":(t[0]==='"'&&(t=t.replace(/^"(.+)"$/,"$1")),e.stringFormatter(t))}function aL(e,t,n){const r=e[t];return r===void 0?n:r}function I8(e,t){try{return Array.isArray(t)?e.push(...t):e.push(t),e}catch{return e.concat(t)}}function g2(e,t){let n=!0;return e.reduce((r,i)=>(i==null&&(i=""),n?(n=!1,`${i}`):`${r}${t}${i}`),"")}class j_e{constructor(t){this.opts=this.preprocessOpts(t)}preprocessOpts(t){const n=Object.assign({},t);n.fields&&(n.fields=this.preprocessFieldsInfo(n.fields,n.defaultValue)),n.transforms=n.transforms||[];const r=n.formatters&&n.formatters.string||QE(),i=A_e({stringFormatter:r}),o={header:r,undefined:U1,boolean:U1,number:L_e(),bigint:U1,string:r,symbol:D_e({stringFormatter:r}),function:i,object:i};return n.formatters={...o,...n.formatters},n.delimiter=n.delimiter||",",n.eol=n.eol||` -`,n.header=n.header!==!1,n.includeEmptyRows=n.includeEmptyRows||!1,n.withBOM=n.withBOM||!1,n}preprocessFieldsInfo(t,n){return t.map(r=>{if(typeof r=="string")return{label:r,value:r.includes(".")||r.includes("[")?i=>sL(i,r,n):i=>aL(i,r,n)};if(typeof r=="object"){const i="default"in r?r.default:n;if(typeof r.value=="string")return{label:r.label||r.value,value:r.value.includes(".")||r.value.includes("[")?o=>sL(o,r.value,i):o=>aL(o,r.value,i)};if(typeof r.value=="function"){const o=r.label||r.value.name||"",s={label:o,default:i};return{label:o,value(a){const l=r.value(a,s);return l??i}}}}throw new Error("Invalid field info option. "+JSON.stringify(r))})}getHeader(){return g2(this.opts.fields.map(t=>this.opts.formatters.header(t.label)),this.opts.delimiter)}preprocessRow(t){return this.opts.transforms.reduce((n,r)=>n.map(i=>r(i)).reduce(I8,[]),[t])}processRow(t){if(!t)return;const n=this.opts.fields.map(r=>this.processCell(t,r));if(!(!this.opts.includeEmptyRows&&n.every(r=>r==="")))return g2(n,this.opts.delimiter)}processCell(t,n){return this.processValue(n.value(t))}processValue(t){return this.opts.formatters[typeof t](t)}}class I_e extends j_e{constructor(t){super(t)}parse(t){const n=this.preprocessData(t);this.opts.fields=this.opts.fields||this.preprocessFieldsInfo(n.reduce((s,a)=>(Object.keys(a).forEach(l=>{s.includes(l)||s.push(l)}),s),[]));const r=this.opts.header?this.getHeader():"",i=this.processData(n);return(this.opts.withBOM?"\uFEFF":"")+r+(r&&i?this.opts.eol:"")+i}preprocessData(t){const n=Array.isArray(t)?t:[t];if(!this.opts.fields&&(n.length===0||typeof n[0]!="object"))throw new Error('Data should not be empty or the "fields" option should be included');return this.opts.transforms.length===0?n:n.map(r=>this.preprocessRow(r)).reduce(I8,[])}processData(t){return g2(t.map(n=>this.processRow(n)).filter(n=>n),this.opts.eol)}}var xn;(function(e){e[e.BACKSPACE=8]="BACKSPACE",e[e.FORM_FEED=12]="FORM_FEED",e[e.NEWLINE=10]="NEWLINE",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.TAB=9]="TAB",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.NUMBER_SIGN=35]="NUMBER_SIGN",e[e.DOLLAR_SIGN=36]="DOLLAR_SIGN",e[e.PERCENT_SIGN=37]="PERCENT_SIGN",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.LEFT_PARENTHESIS=40]="LEFT_PARENTHESIS",e[e.RIGHT_PARENTHESIS=41]="RIGHT_PARENTHESIS",e[e.ASTERISK=42]="ASTERISK",e[e.PLUS_SIGN=43]="PLUS_SIGN",e[e.COMMA=44]="COMMA",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.FULL_STOP=46]="FULL_STOP",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_ZERO=48]="DIGIT_ZERO",e[e.DIGIT_ONE=49]="DIGIT_ONE",e[e.DIGIT_TWO=50]="DIGIT_TWO",e[e.DIGIT_THREE=51]="DIGIT_THREE",e[e.DIGIT_FOUR=52]="DIGIT_FOUR",e[e.DIGIT_FIVE=53]="DIGIT_FIVE",e[e.DIGIT_SIX=54]="DIGIT_SIX",e[e.DIGIT_SEVEN=55]="DIGIT_SEVEN",e[e.DIGIT_EIGHT=56]="DIGIT_EIGHT",e[e.DIGIT_NINE=57]="DIGIT_NINE",e[e.COLON=58]="COLON",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.COMMERCIAL_AT=64]="COMMERCIAL_AT",e[e.LATIN_CAPITAL_LETTER_A=65]="LATIN_CAPITAL_LETTER_A",e[e.LATIN_CAPITAL_LETTER_B=66]="LATIN_CAPITAL_LETTER_B",e[e.LATIN_CAPITAL_LETTER_C=67]="LATIN_CAPITAL_LETTER_C",e[e.LATIN_CAPITAL_LETTER_D=68]="LATIN_CAPITAL_LETTER_D",e[e.LATIN_CAPITAL_LETTER_E=69]="LATIN_CAPITAL_LETTER_E",e[e.LATIN_CAPITAL_LETTER_F=70]="LATIN_CAPITAL_LETTER_F",e[e.LATIN_CAPITAL_LETTER_G=71]="LATIN_CAPITAL_LETTER_G",e[e.LATIN_CAPITAL_LETTER_H=72]="LATIN_CAPITAL_LETTER_H",e[e.LATIN_CAPITAL_LETTER_I=73]="LATIN_CAPITAL_LETTER_I",e[e.LATIN_CAPITAL_LETTER_J=74]="LATIN_CAPITAL_LETTER_J",e[e.LATIN_CAPITAL_LETTER_K=75]="LATIN_CAPITAL_LETTER_K",e[e.LATIN_CAPITAL_LETTER_L=76]="LATIN_CAPITAL_LETTER_L",e[e.LATIN_CAPITAL_LETTER_M=77]="LATIN_CAPITAL_LETTER_M",e[e.LATIN_CAPITAL_LETTER_N=78]="LATIN_CAPITAL_LETTER_N",e[e.LATIN_CAPITAL_LETTER_O=79]="LATIN_CAPITAL_LETTER_O",e[e.LATIN_CAPITAL_LETTER_P=80]="LATIN_CAPITAL_LETTER_P",e[e.LATIN_CAPITAL_LETTER_Q=81]="LATIN_CAPITAL_LETTER_Q",e[e.LATIN_CAPITAL_LETTER_R=82]="LATIN_CAPITAL_LETTER_R",e[e.LATIN_CAPITAL_LETTER_S=83]="LATIN_CAPITAL_LETTER_S",e[e.LATIN_CAPITAL_LETTER_T=84]="LATIN_CAPITAL_LETTER_T",e[e.LATIN_CAPITAL_LETTER_U=85]="LATIN_CAPITAL_LETTER_U",e[e.LATIN_CAPITAL_LETTER_V=86]="LATIN_CAPITAL_LETTER_V",e[e.LATIN_CAPITAL_LETTER_W=87]="LATIN_CAPITAL_LETTER_W",e[e.LATIN_CAPITAL_LETTER_X=88]="LATIN_CAPITAL_LETTER_X",e[e.LATIN_CAPITAL_LETTER_Y=89]="LATIN_CAPITAL_LETTER_Y",e[e.LATIN_CAPITAL_LETTER_Z=90]="LATIN_CAPITAL_LETTER_Z",e[e.LEFT_SQUARE_BRACKET=91]="LEFT_SQUARE_BRACKET",e[e.REVERSE_SOLIDUS=92]="REVERSE_SOLIDUS",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.CIRCUMFLEX_ACCENT=94]="CIRCUMFLEX_ACCENT",e[e.LOW_LINE=95]="LOW_LINE",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_LETTER_A=97]="LATIN_SMALL_LETTER_A",e[e.LATIN_SMALL_LETTER_B=98]="LATIN_SMALL_LETTER_B",e[e.LATIN_SMALL_LETTER_C=99]="LATIN_SMALL_LETTER_C",e[e.LATIN_SMALL_LETTER_D=100]="LATIN_SMALL_LETTER_D",e[e.LATIN_SMALL_LETTER_E=101]="LATIN_SMALL_LETTER_E",e[e.LATIN_SMALL_LETTER_F=102]="LATIN_SMALL_LETTER_F",e[e.LATIN_SMALL_LETTER_G=103]="LATIN_SMALL_LETTER_G",e[e.LATIN_SMALL_LETTER_H=104]="LATIN_SMALL_LETTER_H",e[e.LATIN_SMALL_LETTER_I=105]="LATIN_SMALL_LETTER_I",e[e.LATIN_SMALL_LETTER_J=106]="LATIN_SMALL_LETTER_J",e[e.LATIN_SMALL_LETTER_K=107]="LATIN_SMALL_LETTER_K",e[e.LATIN_SMALL_LETTER_L=108]="LATIN_SMALL_LETTER_L",e[e.LATIN_SMALL_LETTER_M=109]="LATIN_SMALL_LETTER_M",e[e.LATIN_SMALL_LETTER_N=110]="LATIN_SMALL_LETTER_N",e[e.LATIN_SMALL_LETTER_O=111]="LATIN_SMALL_LETTER_O",e[e.LATIN_SMALL_LETTER_P=112]="LATIN_SMALL_LETTER_P",e[e.LATIN_SMALL_LETTER_Q=113]="LATIN_SMALL_LETTER_Q",e[e.LATIN_SMALL_LETTER_R=114]="LATIN_SMALL_LETTER_R",e[e.LATIN_SMALL_LETTER_S=115]="LATIN_SMALL_LETTER_S",e[e.LATIN_SMALL_LETTER_T=116]="LATIN_SMALL_LETTER_T",e[e.LATIN_SMALL_LETTER_U=117]="LATIN_SMALL_LETTER_U",e[e.LATIN_SMALL_LETTER_V=118]="LATIN_SMALL_LETTER_V",e[e.LATIN_SMALL_LETTER_W=119]="LATIN_SMALL_LETTER_W",e[e.LATIN_SMALL_LETTER_X=120]="LATIN_SMALL_LETTER_X",e[e.LATIN_SMALL_LETTER_Y=121]="LATIN_SMALL_LETTER_Y",e[e.LATIN_SMALL_LETTER_Z=122]="LATIN_SMALL_LETTER_Z",e[e.LEFT_CURLY_BRACKET=123]="LEFT_CURLY_BRACKET",e[e.VERTICAL_LINE=124]="VERTICAL_LINE",e[e.RIGHT_CURLY_BRACKET=125]="RIGHT_CURLY_BRACKET",e[e.TILDE=126]="TILDE"})(xn||(xn={}));xn.QUOTATION_MARK+"",xn.QUOTATION_MARK,xn.REVERSE_SOLIDUS+"",xn.REVERSE_SOLIDUS,xn.SOLIDUS+"",xn.SOLIDUS,xn.LATIN_SMALL_LETTER_B+"",xn.BACKSPACE,xn.LATIN_SMALL_LETTER_F+"",xn.FORM_FEED,xn.LATIN_SMALL_LETTER_N+"",xn.NEWLINE,xn.LATIN_SMALL_LETTER_R+"",xn.CARRIAGE_RETURN,xn.LATIN_SMALL_LETTER_T+"",xn.TAB;var lL;(function(e){e[e.LEFT_BRACE=1]="LEFT_BRACE",e[e.RIGHT_BRACE=2]="RIGHT_BRACE",e[e.LEFT_BRACKET=3]="LEFT_BRACKET",e[e.RIGHT_BRACKET=4]="RIGHT_BRACKET",e[e.COLON=5]="COLON",e[e.COMMA=6]="COMMA",e[e.TRUE=7]="TRUE",e[e.FALSE=8]="FALSE",e[e.NULL=9]="NULL",e[e.STRING=10]="STRING",e[e.NUMBER=11]="NUMBER",e[e.SEPARATOR=12]="SEPARATOR"})(lL||(lL={}));var cL;(function(e){e[e.START=0]="START",e[e.ENDED=1]="ENDED",e[e.ERROR=2]="ERROR",e[e.TRUE1=3]="TRUE1",e[e.TRUE2=4]="TRUE2",e[e.TRUE3=5]="TRUE3",e[e.FALSE1=6]="FALSE1",e[e.FALSE2=7]="FALSE2",e[e.FALSE3=8]="FALSE3",e[e.FALSE4=9]="FALSE4",e[e.NULL1=10]="NULL1",e[e.NULL2=11]="NULL2",e[e.NULL3=12]="NULL3",e[e.STRING_DEFAULT=13]="STRING_DEFAULT",e[e.STRING_AFTER_BACKSLASH=14]="STRING_AFTER_BACKSLASH",e[e.STRING_UNICODE_DIGIT_1=15]="STRING_UNICODE_DIGIT_1",e[e.STRING_UNICODE_DIGIT_2=16]="STRING_UNICODE_DIGIT_2",e[e.STRING_UNICODE_DIGIT_3=17]="STRING_UNICODE_DIGIT_3",e[e.STRING_UNICODE_DIGIT_4=18]="STRING_UNICODE_DIGIT_4",e[e.STRING_INCOMPLETE_CHAR=19]="STRING_INCOMPLETE_CHAR",e[e.NUMBER_AFTER_INITIAL_MINUS=20]="NUMBER_AFTER_INITIAL_MINUS",e[e.NUMBER_AFTER_INITIAL_ZERO=21]="NUMBER_AFTER_INITIAL_ZERO",e[e.NUMBER_AFTER_INITIAL_NON_ZERO=22]="NUMBER_AFTER_INITIAL_NON_ZERO",e[e.NUMBER_AFTER_FULL_STOP=23]="NUMBER_AFTER_FULL_STOP",e[e.NUMBER_AFTER_DECIMAL=24]="NUMBER_AFTER_DECIMAL",e[e.NUMBER_AFTER_E=25]="NUMBER_AFTER_E",e[e.NUMBER_AFTER_E_AND_SIGN=26]="NUMBER_AFTER_E_AND_SIGN",e[e.NUMBER_AFTER_E_AND_DIGIT=27]="NUMBER_AFTER_E_AND_DIGIT",e[e.SEPARATOR=28]="SEPARATOR"})(cL||(cL={}));var uL;(function(e){e[e.VALUE=0]="VALUE",e[e.KEY=1]="KEY",e[e.COLON=2]="COLON",e[e.COMMA=3]="COMMA",e[e.ENDED=4]="ENDED",e[e.ERROR=5]="ERROR",e[e.SEPARATOR=6]="SEPARATOR"})(uL||(uL={}));var fL;(function(e){e[e.OBJECT=0]="OBJECT",e[e.ARRAY=1]="ARRAY"})(fL||(fL={}));var F_e=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(r,i,o){n.o(r,i)||Object.defineProperty(r,i,{enumerable:!0,get:o})},n.r=function(r){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},n.t=function(r,i){if(1&i&&(r=n(r)),8&i||4&i&&typeof r=="object"&&r&&r.__esModule)return r;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:r}),2&i&&typeof r!="string")for(var s in r)n.d(o,s,function(a){return r[a]}.bind(null,s));return o},n.n=function(r){var i=r&&r.__esModule?function(){return r.default}:function(){return r};return n.d(i,"a",i),i},n.o=function(r,i){return Object.prototype.hasOwnProperty.call(r,i)},n.p="",n(n.s=32)}([function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch{typeof window=="object"&&(n=window)}e.exports=n},function(e,t,n){var r=n(6),i=Object.keys||function(v){var y=[];for(var x in v)y.push(x);return y};e.exports=h;var o=n(5);o.inherits=n(2);var s=n(23),a=n(14);o.inherits(h,s);for(var l=i(a.prototype),c=0;c - * @license MIT - */var i=n(38),o=n(39),s=n(40);function a(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(O,R){if(a()=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|O}function y(O,R){if(c.isBuffer(O))return O.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(O)||O instanceof ArrayBuffer))return O.byteLength;typeof O!="string"&&(O=""+O);var I=O.length;if(I===0)return 0;for(var X=!1;;)switch(R){case"ascii":case"latin1":case"binary":return I;case"utf8":case"utf-8":case void 0:return te(O).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*I;case"hex":return I>>>1;case"base64":return se(O).length;default:if(X)return te(O).length;R=(""+R).toLowerCase(),X=!0}}function x(O,R,I){var X=O[R];O[R]=O[I],O[I]=X}function _(O,R,I,X,K){if(O.length===0)return-1;if(typeof I=="string"?(X=I,I=0):I>2147483647?I=2147483647:I<-2147483648&&(I=-2147483648),I=+I,isNaN(I)&&(I=K?0:O.length-1),I<0&&(I=O.length+I),I>=O.length){if(K)return-1;I=O.length-1}else if(I<0){if(!K)return-1;I=0}if(typeof R=="string"&&(R=c.from(R,X)),c.isBuffer(R))return R.length===0?-1:w(O,R,I,X,K);if(typeof R=="number")return R&=255,c.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?K?Uint8Array.prototype.indexOf.call(O,R,I):Uint8Array.prototype.lastIndexOf.call(O,R,I):w(O,[R],I,X,K);throw new TypeError("val must be string, number or Buffer")}function w(O,R,I,X,K){var ae,ge=1,Le=O.length,ue=R.length;if(X!==void 0&&((X=String(X).toLowerCase())==="ucs2"||X==="ucs-2"||X==="utf16le"||X==="utf-16le")){if(O.length<2||R.length<2)return-1;ge=2,Le/=2,ue/=2,I/=2}function ve(Re,Ne){return ge===1?Re[Ne]:Re.readUInt16BE(Ne*ge)}if(K){var _e=-1;for(ae=I;aeLe&&(I=Le-ue),ae=I;ae>=0;ae--){for(var Te=!0,De=0;DeK&&(X=K):X=K;var ae=R.length;if(ae%2!=0)throw new TypeError("Invalid hex string");X>ae/2&&(X=ae/2);for(var ge=0;ge>8,ue=ge%256,ve.push(ue),ve.push(Le);return ve}(R,O.length-I),O,I,X)}function z(O,R,I){return R===0&&I===O.length?i.fromByteArray(O):i.fromByteArray(O.slice(R,I))}function A(O,R,I){I=Math.min(O.length,I);for(var X=[],K=R;K239?4:ve>223?3:ve>191?2:1;if(K+Te<=I)switch(Te){case 1:ve<128&&(_e=ve);break;case 2:(192&(ae=O[K+1]))==128&&(ue=(31&ve)<<6|63&ae)>127&&(_e=ue);break;case 3:ae=O[K+1],ge=O[K+2],(192&ae)==128&&(192&ge)==128&&(ue=(15&ve)<<12|(63&ae)<<6|63&ge)>2047&&(ue<55296||ue>57343)&&(_e=ue);break;case 4:ae=O[K+1],ge=O[K+2],Le=O[K+3],(192&ae)==128&&(192&ge)==128&&(192&Le)==128&&(ue=(15&ve)<<18|(63&ae)<<12|(63&ge)<<6|63&Le)>65535&&ue<1114112&&(_e=ue)}_e===null?(_e=65533,Te=1):_e>65535&&(_e-=65536,X.push(_e>>>10&1023|55296),_e=56320|1023&_e),X.push(_e),K+=Te}return function(De){var Re=De.length;if(Re<=W)return String.fromCharCode.apply(String,De);for(var Ne="",ce=0;cethis.length||((X===void 0||X>this.length)&&(X=this.length),X<=0)||(X>>>=0)<=(I>>>=0))return"";for(R||(R="utf8");;)switch(R){case"hex":return Z(this,I,X);case"utf8":case"utf-8":return A(this,I,X);case"ascii":return Y(this,I,X);case"latin1":case"binary":return J(this,I,X);case"base64":return z(this,I,X);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ee(this,I,X);default:if(K)throw new TypeError("Unknown encoding: "+R);R=(R+"").toLowerCase(),K=!0}}.apply(this,arguments)},c.prototype.equals=function(O){if(!c.isBuffer(O))throw new TypeError("Argument must be a Buffer");return this===O||c.compare(this,O)===0},c.prototype.inspect=function(){var O="",R=t.INSPECT_MAX_BYTES;return this.length>0&&(O=this.toString("hex",0,R).match(/.{2}/g).join(" "),this.length>R&&(O+=" ... ")),""},c.prototype.compare=function(O,R,I,X,K){if(!c.isBuffer(O))throw new TypeError("Argument must be a Buffer");if(R===void 0&&(R=0),I===void 0&&(I=O?O.length:0),X===void 0&&(X=0),K===void 0&&(K=this.length),R<0||I>O.length||X<0||K>this.length)throw new RangeError("out of range index");if(X>=K&&R>=I)return 0;if(X>=K)return-1;if(R>=I)return 1;if(R>>>=0,I>>>=0,X>>>=0,K>>>=0,this===O)return 0;for(var ae=K-X,ge=I-R,Le=Math.min(ae,ge),ue=this.slice(X,K),ve=O.slice(R,I),_e=0;_eK)&&(I=K),O.length>0&&(I<0||R<0)||R>this.length)throw new RangeError("Attempt to write outside buffer bounds");X||(X="utf8");for(var ae=!1;;)switch(X){case"hex":return S(this,O,R,I);case"utf8":case"utf-8":return T(this,O,R,I);case"ascii":return P(this,O,R,I);case"latin1":case"binary":return k(this,O,R,I);case"base64":return N(this,O,R,I);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,O,R,I);default:if(ae)throw new TypeError("Unknown encoding: "+X);X=(""+X).toLowerCase(),ae=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var W=4096;function Y(O,R,I){var X="";I=Math.min(O.length,I);for(var K=R;KX)&&(I=X);for(var K="",ae=R;aeI)throw new RangeError("Trying to access beyond buffer length")}function oe(O,R,I,X,K,ae){if(!c.isBuffer(O))throw new TypeError('"buffer" argument must be a Buffer instance');if(R>K||RO.length)throw new RangeError("Index out of range")}function G(O,R,I,X){R<0&&(R=65535+R+1);for(var K=0,ae=Math.min(O.length-I,2);K>>8*(X?K:1-K)}function F(O,R,I,X){R<0&&(R=4294967295+R+1);for(var K=0,ae=Math.min(O.length-I,4);K>>8*(X?K:3-K)&255}function j(O,R,I,X,K,ae){if(I+X>O.length)throw new RangeError("Index out of range");if(I<0)throw new RangeError("Index out of range")}function B(O,R,I,X,K){return K||j(O,0,I,4),o.write(O,R,I,X,23,4),I+4}function ne(O,R,I,X,K){return K||j(O,0,I,8),o.write(O,R,I,X,52,8),I+8}c.prototype.slice=function(O,R){var I,X=this.length;if(O=~~O,R=R===void 0?X:~~R,O<0?(O+=X)<0&&(O=0):O>X&&(O=X),R<0?(R+=X)<0&&(R=0):R>X&&(R=X),R0&&(K*=256);)X+=this[O+--R]*K;return X},c.prototype.readUInt8=function(O,R){return R||ie(O,1,this.length),this[O]},c.prototype.readUInt16LE=function(O,R){return R||ie(O,2,this.length),this[O]|this[O+1]<<8},c.prototype.readUInt16BE=function(O,R){return R||ie(O,2,this.length),this[O]<<8|this[O+1]},c.prototype.readUInt32LE=function(O,R){return R||ie(O,4,this.length),(this[O]|this[O+1]<<8|this[O+2]<<16)+16777216*this[O+3]},c.prototype.readUInt32BE=function(O,R){return R||ie(O,4,this.length),16777216*this[O]+(this[O+1]<<16|this[O+2]<<8|this[O+3])},c.prototype.readIntLE=function(O,R,I){O|=0,R|=0,I||ie(O,R,this.length);for(var X=this[O],K=1,ae=0;++ae=(K*=128)&&(X-=Math.pow(2,8*R)),X},c.prototype.readIntBE=function(O,R,I){O|=0,R|=0,I||ie(O,R,this.length);for(var X=R,K=1,ae=this[O+--X];X>0&&(K*=256);)ae+=this[O+--X]*K;return ae>=(K*=128)&&(ae-=Math.pow(2,8*R)),ae},c.prototype.readInt8=function(O,R){return R||ie(O,1,this.length),128&this[O]?-1*(255-this[O]+1):this[O]},c.prototype.readInt16LE=function(O,R){R||ie(O,2,this.length);var I=this[O]|this[O+1]<<8;return 32768&I?4294901760|I:I},c.prototype.readInt16BE=function(O,R){R||ie(O,2,this.length);var I=this[O+1]|this[O]<<8;return 32768&I?4294901760|I:I},c.prototype.readInt32LE=function(O,R){return R||ie(O,4,this.length),this[O]|this[O+1]<<8|this[O+2]<<16|this[O+3]<<24},c.prototype.readInt32BE=function(O,R){return R||ie(O,4,this.length),this[O]<<24|this[O+1]<<16|this[O+2]<<8|this[O+3]},c.prototype.readFloatLE=function(O,R){return R||ie(O,4,this.length),o.read(this,O,!0,23,4)},c.prototype.readFloatBE=function(O,R){return R||ie(O,4,this.length),o.read(this,O,!1,23,4)},c.prototype.readDoubleLE=function(O,R){return R||ie(O,8,this.length),o.read(this,O,!0,52,8)},c.prototype.readDoubleBE=function(O,R){return R||ie(O,8,this.length),o.read(this,O,!1,52,8)},c.prototype.writeUIntLE=function(O,R,I,X){O=+O,R|=0,I|=0,X||oe(this,O,R,I,Math.pow(2,8*I)-1,0);var K=1,ae=0;for(this[R]=255&O;++ae=0&&(ae*=256);)this[R+K]=O/ae&255;return R+I},c.prototype.writeUInt8=function(O,R,I){return O=+O,R|=0,I||oe(this,O,R,1,255,0),c.TYPED_ARRAY_SUPPORT||(O=Math.floor(O)),this[R]=255&O,R+1},c.prototype.writeUInt16LE=function(O,R,I){return O=+O,R|=0,I||oe(this,O,R,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[R]=255&O,this[R+1]=O>>>8):G(this,O,R,!0),R+2},c.prototype.writeUInt16BE=function(O,R,I){return O=+O,R|=0,I||oe(this,O,R,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[R]=O>>>8,this[R+1]=255&O):G(this,O,R,!1),R+2},c.prototype.writeUInt32LE=function(O,R,I){return O=+O,R|=0,I||oe(this,O,R,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[R+3]=O>>>24,this[R+2]=O>>>16,this[R+1]=O>>>8,this[R]=255&O):F(this,O,R,!0),R+4},c.prototype.writeUInt32BE=function(O,R,I){return O=+O,R|=0,I||oe(this,O,R,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[R]=O>>>24,this[R+1]=O>>>16,this[R+2]=O>>>8,this[R+3]=255&O):F(this,O,R,!1),R+4},c.prototype.writeIntLE=function(O,R,I,X){if(O=+O,R|=0,!X){var K=Math.pow(2,8*I-1);oe(this,O,R,I,K-1,-K)}var ae=0,ge=1,Le=0;for(this[R]=255&O;++ae>0)-Le&255;return R+I},c.prototype.writeIntBE=function(O,R,I,X){if(O=+O,R|=0,!X){var K=Math.pow(2,8*I-1);oe(this,O,R,I,K-1,-K)}var ae=I-1,ge=1,Le=0;for(this[R+ae]=255&O;--ae>=0&&(ge*=256);)O<0&&Le===0&&this[R+ae+1]!==0&&(Le=1),this[R+ae]=(O/ge>>0)-Le&255;return R+I},c.prototype.writeInt8=function(O,R,I){return O=+O,R|=0,I||oe(this,O,R,1,127,-128),c.TYPED_ARRAY_SUPPORT||(O=Math.floor(O)),O<0&&(O=255+O+1),this[R]=255&O,R+1},c.prototype.writeInt16LE=function(O,R,I){return O=+O,R|=0,I||oe(this,O,R,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[R]=255&O,this[R+1]=O>>>8):G(this,O,R,!0),R+2},c.prototype.writeInt16BE=function(O,R,I){return O=+O,R|=0,I||oe(this,O,R,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[R]=O>>>8,this[R+1]=255&O):G(this,O,R,!1),R+2},c.prototype.writeInt32LE=function(O,R,I){return O=+O,R|=0,I||oe(this,O,R,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[R]=255&O,this[R+1]=O>>>8,this[R+2]=O>>>16,this[R+3]=O>>>24):F(this,O,R,!0),R+4},c.prototype.writeInt32BE=function(O,R,I){return O=+O,R|=0,I||oe(this,O,R,4,2147483647,-2147483648),O<0&&(O=4294967295+O+1),c.TYPED_ARRAY_SUPPORT?(this[R]=O>>>24,this[R+1]=O>>>16,this[R+2]=O>>>8,this[R+3]=255&O):F(this,O,R,!1),R+4},c.prototype.writeFloatLE=function(O,R,I){return B(this,O,R,!0,I)},c.prototype.writeFloatBE=function(O,R,I){return B(this,O,R,!1,I)},c.prototype.writeDoubleLE=function(O,R,I){return ne(this,O,R,!0,I)},c.prototype.writeDoubleBE=function(O,R,I){return ne(this,O,R,!1,I)},c.prototype.copy=function(O,R,I,X){if(I||(I=0),X||X===0||(X=this.length),R>=O.length&&(R=O.length),R||(R=0),X>0&&X=this.length)throw new RangeError("sourceStart out of bounds");if(X<0)throw new RangeError("sourceEnd out of bounds");X>this.length&&(X=this.length),O.length-R=0;--K)O[K+R]=this[K+I];else if(ae<1e3||!c.TYPED_ARRAY_SUPPORT)for(K=0;K>>=0,I=I===void 0?this.length:I>>>0,O||(O=0),typeof O=="number")for(ae=R;ae55295&&I<57344){if(!K){if(I>56319){(R-=3)>-1&&ae.push(239,191,189);continue}if(ge+1===X){(R-=3)>-1&&ae.push(239,191,189);continue}K=I;continue}if(I<56320){(R-=3)>-1&&ae.push(239,191,189),K=I;continue}I=65536+(K-55296<<10|I-56320)}else K&&(R-=3)>-1&&ae.push(239,191,189);if(K=null,I<128){if((R-=1)<0)break;ae.push(I)}else if(I<2048){if((R-=2)<0)break;ae.push(I>>6|192,63&I|128)}else if(I<65536){if((R-=3)<0)break;ae.push(I>>12|224,I>>6&63|128,63&I|128)}else{if(!(I<1114112))throw new Error("Invalid code point");if((R-=4)<0)break;ae.push(I>>18|240,I>>12&63|128,I>>6&63|128,63&I|128)}}return ae}function se(O){return i.toByteArray(function(R){if((R=function(I){return I.trim?I.trim():I.replace(/^\s+|\s+$/g,"")}(R).replace(H,"")).length<2)return"";for(;R.length%4!=0;)R+="=";return R}(O))}function pe(O,R,I,X){for(var K=0;K=R.length||K>=O.length);++K)R[K+I]=O[K];return K}}).call(this,n(0))},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(x){if(n===setTimeout)return setTimeout(x,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(x,0);try{return n(x,0)}catch{try{return n.call(null,x,0)}catch{return n.call(this,x,0)}}}(function(){try{n=typeof setTimeout=="function"?setTimeout:o}catch{n=o}try{r=typeof clearTimeout=="function"?clearTimeout:s}catch{r=s}})();var l,c=[],f=!1,h=-1;function p(){f&&l&&(f=!1,l.length?c=l.concat(c):h=-1,c.length&&m())}function m(){if(!f){var x=a(p);f=!0;for(var _=c.length;_;){for(l=c,c=[];++h<_;)l&&l[h].run();h=-1,_=c.length}l=null,f=!1,function(w){if(r===clearTimeout)return clearTimeout(w);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(w);try{r(w)}catch{try{return r.call(null,w)}catch{return r.call(this,w)}}}(x)}}function v(x,_){this.fun=x,this.array=_}function y(){}i.nextTick=function(x){var _=new Array(arguments.length-1);if(arguments.length>1)for(var w=1;w=0&&(a._idleTimeoutId=setTimeout(function(){a._onTimeout&&a._onTimeout()},l))},n(35),t.setImmediate=typeof self<"u"&&self.setImmediate||r!==void 0&&r.setImmediate||this&&this.setImmediate,t.clearImmediate=typeof self<"u"&&self.clearImmediate||r!==void 0&&r.clearImmediate||this&&this.clearImmediate}).call(this,n(0))},function(e,t){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(s){return typeof s=="function"}function i(s){return typeof s=="object"&&s!==null}function o(s){return s===void 0}e.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(s){if(!function(a){return typeof a=="number"}(s)||s<0||isNaN(s))throw TypeError("n must be a positive number");return this._maxListeners=s,this},n.prototype.emit=function(s){var a,l,c,f,h,p;if(this._events||(this._events={}),s==="error"&&(!this._events.error||i(this._events.error)&&!this._events.error.length)){if((a=arguments[1])instanceof Error)throw a;var m=new Error('Uncaught, unspecified "error" event. ('+a+")");throw m.context=a,m}if(o(l=this._events[s]))return!1;if(r(l))switch(arguments.length){case 1:l.call(this);break;case 2:l.call(this,arguments[1]);break;case 3:l.call(this,arguments[1],arguments[2]);break;default:f=Array.prototype.slice.call(arguments,1),l.apply(this,f)}else if(i(l))for(f=Array.prototype.slice.call(arguments,1),c=(p=l.slice()).length,h=0;h0&&this._events[s].length>l&&(this._events[s].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[s].length),typeof console.trace=="function"&&console.trace()),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(s,a){if(!r(a))throw TypeError("listener must be a function");var l=!1;function c(){this.removeListener(s,c),l||(l=!0,a.apply(this,arguments))}return c.listener=a,this.on(s,c),this},n.prototype.removeListener=function(s,a){var l,c,f,h;if(!r(a))throw TypeError("listener must be a function");if(!this._events||!this._events[s])return this;if(f=(l=this._events[s]).length,c=-1,l===a||r(l.listener)&&l.listener===a)delete this._events[s],this._events.removeListener&&this.emit("removeListener",s,a);else if(i(l)){for(h=f;h-- >0;)if(l[h]===a||l[h].listener&&l[h].listener===a){c=h;break}if(c<0)return this;l.length===1?(l.length=0,delete this._events[s]):l.splice(c,1),this._events.removeListener&&this.emit("removeListener",s,a)}return this},n.prototype.removeAllListeners=function(s){var a,l;if(!this._events)return this;if(!this._events.removeListener)return arguments.length===0?this._events={}:this._events[s]&&delete this._events[s],this;if(arguments.length===0){for(a in this._events)a!=="removeListener"&&this.removeAllListeners(a);return this.removeAllListeners("removeListener"),this._events={},this}if(r(l=this._events[s]))this.removeListener(s,l);else if(l)for(;l.length;)this.removeListener(s,l[l.length-1]);return delete this._events[s],this},n.prototype.listeners=function(s){return this._events&&this._events[s]?r(this._events[s])?[this._events[s]]:this._events[s].slice():[]},n.prototype.listenerCount=function(s){if(this._events){var a=this._events[s];if(r(a))return 1;if(a)return a.length}return 0},n.listenerCount=function(s,a){return s.listenerCount(a)}},function(e,t,n){(t=e.exports=n(23)).Stream=t,t.Readable=t,t.Writable=n(14),t.Duplex=n(1),t.Transform=n(27),t.PassThrough=n(45)},function(e,t,n){(function(r,i,o){var s=n(6);function a(A){var W=this;this.next=null,this.entry=null,this.finish=function(){(function(Y,J,Z){var ee=Y.entry;for(Y.entry=null;ee;){var ie=ee.callback;J.pendingcb--,ie(void 0),ee=ee.next}J.corkedRequestsFree?J.corkedRequestsFree.next=Y:J.corkedRequestsFree=Y})(W,A)}}e.exports=S;var l,c=!r.browser&&["v0.10","v0.9."].indexOf(r.version.slice(0,5))>-1?i:s.nextTick;S.WritableState=w;var f=n(5);f.inherits=n(2);var h,p={deprecate:n(44)},m=n(24),v=n(7).Buffer,y=o.Uint8Array||function(){},x=n(25);function _(){}function w(A,W){l=l||n(1),A=A||{};var Y=W instanceof l;this.objectMode=!!A.objectMode,Y&&(this.objectMode=this.objectMode||!!A.writableObjectMode);var J=A.highWaterMark,Z=A.writableHighWaterMark,ee=this.objectMode?16:16384;this.highWaterMark=J||J===0?J:Y&&(Z||Z===0)?Z:ee,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var ie=A.decodeStrings===!1;this.decodeStrings=!ie,this.defaultEncoding=A.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(oe){(function(G,F){var j=G._writableState,B=j.sync,ne=j.writecb;if(function(q){q.writing=!1,q.writecb=null,q.length-=q.writelen,q.writelen=0}(j),F)(function(q,te,se,pe,O){--te.pendingcb,se?(s.nextTick(O,pe),s.nextTick(z,q,te),q._writableState.errorEmitted=!0,q.emit("error",pe)):(O(pe),q._writableState.errorEmitted=!0,q.emit("error",pe),z(q,te))})(G,j,B,F,ne);else{var H=N(j);H||j.corked||j.bufferProcessing||!j.bufferedRequest||k(G,j),B?c(P,G,j,H,ne):P(G,j,H,ne)}})(W,oe)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function S(A){if(l=l||n(1),!(h.call(S,this)||this instanceof l))return new S(A);this._writableState=new w(A,this),this.writable=!0,A&&(typeof A.write=="function"&&(this._write=A.write),typeof A.writev=="function"&&(this._writev=A.writev),typeof A.destroy=="function"&&(this._destroy=A.destroy),typeof A.final=="function"&&(this._final=A.final)),m.call(this)}function T(A,W,Y,J,Z,ee,ie){W.writelen=J,W.writecb=ie,W.writing=!0,W.sync=!0,Y?A._writev(Z,W.onwrite):A._write(Z,ee,W.onwrite),W.sync=!1}function P(A,W,Y,J){Y||function(Z,ee){ee.length===0&&ee.needDrain&&(ee.needDrain=!1,Z.emit("drain"))}(A,W),W.pendingcb--,J(),z(A,W)}function k(A,W){W.bufferProcessing=!0;var Y=W.bufferedRequest;if(A._writev&&Y&&Y.next){var J=W.bufferedRequestCount,Z=new Array(J),ee=W.corkedRequestsFree;ee.entry=Y;for(var ie=0,oe=!0;Y;)Z[ie]=Y,Y.isBuf||(oe=!1),Y=Y.next,ie+=1;Z.allBuffers=oe,T(A,W,!0,W.length,Z,"",ee.finish),W.pendingcb++,W.lastBufferedRequest=null,ee.next?(W.corkedRequestsFree=ee.next,ee.next=null):W.corkedRequestsFree=new a(W),W.bufferedRequestCount=0}else{for(;Y;){var G=Y.chunk,F=Y.encoding,j=Y.callback;if(T(A,W,!1,W.objectMode?1:G.length,G,F,j),Y=Y.next,W.bufferedRequestCount--,W.writing)break}Y===null&&(W.lastBufferedRequest=null)}W.bufferedRequest=Y,W.bufferProcessing=!1}function N(A){return A.ending&&A.length===0&&A.bufferedRequest===null&&!A.finished&&!A.writing}function D(A,W){A._final(function(Y){W.pendingcb--,Y&&A.emit("error",Y),W.prefinished=!0,A.emit("prefinish"),z(A,W)})}function z(A,W){var Y=N(W);return Y&&(function(J,Z){Z.prefinished||Z.finalCalled||(typeof J._final=="function"?(Z.pendingcb++,Z.finalCalled=!0,s.nextTick(D,J,Z)):(Z.prefinished=!0,J.emit("prefinish")))}(A,W),W.pendingcb===0&&(W.finished=!0,A.emit("finish"))),Y}f.inherits(S,m),w.prototype.getBuffer=function(){for(var A=this.bufferedRequest,W=[];A;)W.push(A),A=A.next;return W},function(){try{Object.defineProperty(w.prototype,"buffer",{get:p.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}(),typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(h=Function.prototype[Symbol.hasInstance],Object.defineProperty(S,Symbol.hasInstance,{value:function(A){return!!h.call(this,A)||this===S&&A&&A._writableState instanceof w}})):h=function(A){return A instanceof this},S.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},S.prototype.write=function(A,W,Y){var J=this._writableState,Z=!1,ee=!J.objectMode&&function(ie){return v.isBuffer(ie)||ie instanceof y}(A);return ee&&!v.isBuffer(A)&&(A=function(ie){return v.from(ie)}(A)),typeof W=="function"&&(Y=W,W=null),ee?W="buffer":W||(W=J.defaultEncoding),typeof Y!="function"&&(Y=_),J.ended?function(ie,oe){var G=new Error("write after end");ie.emit("error",G),s.nextTick(oe,G)}(this,Y):(ee||function(ie,oe,G,F){var j=!0,B=!1;return G===null?B=new TypeError("May not write null values to stream"):typeof G=="string"||G===void 0||oe.objectMode||(B=new TypeError("Invalid non-string/buffer chunk")),B&&(ie.emit("error",B),s.nextTick(F,B),j=!1),j}(this,J,A,Y))&&(J.pendingcb++,Z=function(ie,oe,G,F,j,B){if(!G){var ne=function(se,pe,O){return se.objectMode||se.decodeStrings===!1||typeof pe!="string"||(pe=v.from(pe,O)),pe}(oe,F,j);F!==ne&&(G=!0,j="buffer",F=ne)}var H=oe.objectMode?1:F.length;oe.length+=H;var q=oe.length-1))throw new TypeError("Unknown encoding: "+A);return this._writableState.defaultEncoding=A,this},Object.defineProperty(S.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),S.prototype._write=function(A,W,Y){Y(new Error("_write() is not implemented"))},S.prototype._writev=null,S.prototype.end=function(A,W,Y){var J=this._writableState;typeof A=="function"?(Y=A,A=null,W=null):typeof W=="function"&&(Y=W,W=null),A!=null&&this.write(A,W),J.corked&&(J.corked=1,this.uncork()),J.ending||J.finished||function(Z,ee,ie){ee.ending=!0,z(Z,ee),ie&&(ee.finished?s.nextTick(ie):Z.once("finish",ie)),ee.ended=!0,Z.writable=!1}(this,J,Y)},Object.defineProperty(S.prototype,"destroyed",{get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(A){this._writableState&&(this._writableState.destroyed=A)}}),S.prototype.destroy=x.destroy,S.prototype._undestroy=x.undestroy,S.prototype._destroy=function(A,W){this.end(),W(A)}}).call(this,n(4),n(11).setImmediate,n(0))},function(e,t,n){(function(r,i,o){e.exports=function s(a,l,c){function f(m,v){if(!l[m]){if(!a[m]){var y=typeof _dereq_=="function"&&_dereq_;if(!v&&y)return y(m,!0);if(h)return h(m,!0);var x=new Error("Cannot find module '"+m+"'");throw x.code="MODULE_NOT_FOUND",x}var _=l[m]={exports:{}};a[m][0].call(_.exports,function(w){return f(a[m][1][w]||w)},_,_.exports,s,a,l,c)}return l[m].exports}for(var h=typeof _dereq_=="function"&&_dereq_,p=0;p0;){var w=_.shift();if(typeof w=="function"){var S=_.shift(),T=_.shift();w.call(S,T)}else w._settlePromises()}},m.prototype._drainQueues=function(){this._drainQueue(this._normalQueue),this._reset(),this._haveDrainedQueues=!0,this._drainQueue(this._lateQueue)},m.prototype._queueTick=function(){this._isTickUsed||(this._isTickUsed=!0,this._schedule(this.drainQueues))},m.prototype._reset=function(){this._isTickUsed=!1},a.exports=m,a.exports.firstLineError=c},{"./queue":26,"./schedule":29,"./util":36}],3:[function(s,a,l){a.exports=function(c,f,h,p){var m=!1,v=function(w,S){this._reject(S)},y=function(w,S){S.promiseRejectionQueued=!0,S.bindingPromise._then(v,v,null,this,w)},x=function(w,S){!(50397184&this._bitField)&&this._resolveCallback(S.target)},_=function(w,S){S.promiseRejectionQueued||this._reject(w)};c.prototype.bind=function(w){m||(m=!0,c.prototype._propagateFrom=p.propagateFromFunction(),c.prototype._boundValue=p.boundValueFunction());var S=h(w),T=new c(f);T._propagateFrom(this,1);var P=this._target();if(T._setBoundTo(S),S instanceof c){var k={promiseRejectionQueued:!1,promise:T,target:P,bindingPromise:S};P._then(f,y,void 0,T,k),S._then(x,_,void 0,T,k),T._setOnCancel(S)}else T._resolveCallback(P);return T},c.prototype._setBoundTo=function(w){w!==void 0?(this._bitField=2097152|this._bitField,this._boundTo=w):this._bitField=-2097153&this._bitField},c.prototype._isBound=function(){return(2097152&this._bitField)==2097152},c.bind=function(w,S){return c.resolve(S).bind(w)}}},{}],4:[function(s,a,l){var c;typeof Promise<"u"&&(c=Promise);var f=s("./promise")();f.noConflict=function(){try{Promise===f&&(Promise=c)}catch{}return f},a.exports=f},{"./promise":22}],5:[function(s,a,l){var c=Object.create;if(c){var f=c(null),h=c(null);f[" size"]=h[" size"]=0}a.exports=function(p){var m=s("./util"),v=m.canEvaluate;function y(w){return function(S,T){var P;if(S!=null&&(P=S[T]),typeof P!="function"){var k="Object "+m.classString(S)+" has no method '"+m.toString(T)+"'";throw new p.TypeError(k)}return P}(w,this.pop()).apply(w,this)}function x(w){return w[this]}function _(w){var S=+this;return S<0&&(S=Math.max(0,S+w.length)),w[S]}m.isIdentifier,p.prototype.call=function(w){var S=[].slice.call(arguments,1);return S.push(w),this._then(y,void 0,void 0,S,void 0)},p.prototype.get=function(w){var S;if(typeof w=="number")S=_;else if(v){var T=(void 0)(w);S=T!==null?T:x}else S=x;return this._then(S,void 0,void 0,w,void 0)}}},{"./util":36}],6:[function(s,a,l){a.exports=function(c,f,h,p){var m=s("./util"),v=m.tryCatch,y=m.errorObj,x=c._async;c.prototype.break=c.prototype.cancel=function(){if(!p.cancellation())return this._warn("cancellation is disabled");for(var _=this,w=_;_._isCancellable();){if(!_._cancelBy(w)){w._isFollowing()?w._followee().cancel():w._cancelBranched();break}var S=_._cancellationParent;if(S==null||!S._isCancellable()){_._isFollowing()?_._followee().cancel():_._cancelBranched();break}_._isFollowing()&&_._followee().cancel(),_._setWillBeCancelled(),w=_,_=S}},c.prototype._branchHasCancelled=function(){this._branchesRemainingToCancel--},c.prototype._enoughBranchesHaveCancelled=function(){return this._branchesRemainingToCancel===void 0||this._branchesRemainingToCancel<=0},c.prototype._cancelBy=function(_){return _===this?(this._branchesRemainingToCancel=0,this._invokeOnCancel(),!0):(this._branchHasCancelled(),!!this._enoughBranchesHaveCancelled()&&(this._invokeOnCancel(),!0))},c.prototype._cancelBranched=function(){this._enoughBranchesHaveCancelled()&&this._cancel()},c.prototype._cancel=function(){this._isCancellable()&&(this._setCancelled(),x.invoke(this._cancelPromises,this,void 0))},c.prototype._cancelPromises=function(){this._length()>0&&this._settlePromises()},c.prototype._unsetOnCancel=function(){this._onCancelField=void 0},c.prototype._isCancellable=function(){return this.isPending()&&!this._isCancelled()},c.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()},c.prototype._doInvokeOnCancel=function(_,w){if(m.isArray(_))for(var S=0;S<_.length;++S)this._doInvokeOnCancel(_[S],w);else if(_!==void 0)if(typeof _=="function"){if(!w){var T=v(_).call(this._boundValue());T===y&&(this._attachExtraTrace(T.e),x.throwLater(T.e))}}else _._resultCancelled(this)},c.prototype._invokeOnCancel=function(){var _=this._onCancel();this._unsetOnCancel(),x.invoke(this._doInvokeOnCancel,this,_)},c.prototype._invokeInternalOnCancel=function(){this._isCancellable()&&(this._doInvokeOnCancel(this._onCancel(),!0),this._unsetOnCancel())},c.prototype._resultCancelled=function(){this.cancel()}}},{"./util":36}],7:[function(s,a,l){a.exports=function(c){var f=s("./util"),h=s("./es5").keys,p=f.tryCatch,m=f.errorObj;return function(v,y,x){return function(_){var w=x._boundValue();e:for(var S=0;S=0)return h[v]}return c.prototype._promiseCreated=function(){},c.prototype._pushContext=function(){},c.prototype._popContext=function(){return null},c._peekContext=c.prototype._peekContext=function(){},p.prototype._pushContext=function(){this._trace!==void 0&&(this._trace._promiseCreated=null,h.push(this._trace))},p.prototype._popContext=function(){if(this._trace!==void 0){var v=h.pop(),y=v._promiseCreated;return v._promiseCreated=null,y}return null},p.CapturedTrace=null,p.create=function(){if(f)return new p},p.deactivateLongStackTraces=function(){},p.activateLongStackTraces=function(){var v=c.prototype._pushContext,y=c.prototype._popContext,x=c._peekContext,_=c.prototype._peekContext,w=c.prototype._promiseCreated;p.deactivateLongStackTraces=function(){c.prototype._pushContext=v,c.prototype._popContext=y,c._peekContext=x,c.prototype._peekContext=_,c.prototype._promiseCreated=w,f=!1},f=!0,c.prototype._pushContext=p.prototype._pushContext,c.prototype._popContext=p.prototype._popContext,c._peekContext=c.prototype._peekContext=m,c.prototype._promiseCreated=function(){var S=this._peekContext();S&&S._promiseCreated==null&&(S._promiseCreated=this)}},p}},{}],9:[function(s,a,l){a.exports=function(c,f){var h,p,m,v=c._getDomain,y=c._async,x=s("./errors").Warning,_=s("./util"),w=_.canAttachTrace,S=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,T=/\((?:timers\.js):\d+:\d+\)/,P=/[\/<\(](.+?):(\d+):(\d+)\)?\s*$/,k=null,N=null,D=!1,z=_.env("BLUEBIRD_DEBUG")!=0,A=!(_.env("BLUEBIRD_WARNINGS")==0||!z&&!_.env("BLUEBIRD_WARNINGS")),W=!(_.env("BLUEBIRD_LONG_STACK_TRACES")==0||!z&&!_.env("BLUEBIRD_LONG_STACK_TRACES")),Y=_.env("BLUEBIRD_W_FORGOTTEN_RETURN")!=0&&(A||!!_.env("BLUEBIRD_W_FORGOTTEN_RETURN"));c.prototype.suppressUnhandledRejections=function(){var ce=this._target();ce._bitField=-1048577&ce._bitField|524288},c.prototype._ensurePossibleRejectionHandled=function(){if(!(524288&this._bitField)){this._setRejectionIsUnhandled();var ce=this;setTimeout(function(){ce._notifyUnhandledRejection()},1)}},c.prototype._notifyUnhandledRejectionIsHandled=function(){ge("rejectionHandled",h,void 0,this)},c.prototype._setReturnedNonUndefined=function(){this._bitField=268435456|this._bitField},c.prototype._returnedNonUndefined=function(){return(268435456&this._bitField)!=0},c.prototype._notifyUnhandledRejection=function(){if(this._isRejectionUnhandled()){var ce=this._settledValue();this._setUnhandledRejectionIsNotified(),ge("unhandledRejection",p,ce,this)}},c.prototype._setUnhandledRejectionIsNotified=function(){this._bitField=262144|this._bitField},c.prototype._unsetUnhandledRejectionIsNotified=function(){this._bitField=-262145&this._bitField},c.prototype._isUnhandledRejectionNotified=function(){return(262144&this._bitField)>0},c.prototype._setRejectionIsUnhandled=function(){this._bitField=1048576|this._bitField},c.prototype._unsetRejectionIsUnhandled=function(){this._bitField=-1048577&this._bitField,this._isUnhandledRejectionNotified()&&(this._unsetUnhandledRejectionIsNotified(),this._notifyUnhandledRejectionIsHandled())},c.prototype._isRejectionUnhandled=function(){return(1048576&this._bitField)>0},c.prototype._warn=function(ce,de,be){return I(ce,de,be||this)},c.onPossiblyUnhandledRejection=function(ce){var de=v();p=typeof ce=="function"?de===null?ce:_.domainBind(de,ce):void 0},c.onUnhandledRejectionHandled=function(ce){var de=v();h=typeof ce=="function"?de===null?ce:_.domainBind(de,ce):void 0};var J=function(){};c.longStackTraces=function(){if(y.haveItemsQueued()&&!Ne.longStackTraces)throw new Error(`cannot enable long stack traces after promises have been created - - See http://goo.gl/MqrFmX -`);if(!Ne.longStackTraces&&ue()){var ce=c.prototype._captureStackTrace,de=c.prototype._attachExtraTrace;Ne.longStackTraces=!0,J=function(){if(y.haveItemsQueued()&&!Ne.longStackTraces)throw new Error(`cannot enable long stack traces after promises have been created - - See http://goo.gl/MqrFmX -`);c.prototype._captureStackTrace=ce,c.prototype._attachExtraTrace=de,f.deactivateLongStackTraces(),y.enableTrampoline(),Ne.longStackTraces=!1},c.prototype._captureStackTrace=O,c.prototype._attachExtraTrace=R,f.activateLongStackTraces(),y.disableTrampolineIfNecessary()}},c.hasLongStackTraces=function(){return Ne.longStackTraces&&ue()};var Z=function(){try{if(typeof CustomEvent=="function"){var ce=new CustomEvent("CustomEvent");return _.global.dispatchEvent(ce),function(de,be){var ye=new CustomEvent(de.toLowerCase(),{detail:be,cancelable:!0});return!_.global.dispatchEvent(ye)}}return typeof Event=="function"?(ce=new Event("CustomEvent"),_.global.dispatchEvent(ce),function(de,be){var ye=new Event(de.toLowerCase(),{cancelable:!0});return ye.detail=be,!_.global.dispatchEvent(ye)}):((ce=document.createEvent("CustomEvent")).initCustomEvent("testingtheevent",!1,!0,{}),_.global.dispatchEvent(ce),function(de,be){var ye=document.createEvent("CustomEvent");return ye.initCustomEvent(de.toLowerCase(),!1,!0,be),!_.global.dispatchEvent(ye)})}catch{}return function(){return!1}}(),ee=_.isNode?function(){return r.emit.apply(r,arguments)}:_.global?function(ce){var de="on"+ce.toLowerCase(),be=_.global[de];return!!be&&(be.apply(_.global,[].slice.call(arguments,1)),!0)}:function(){return!1};function ie(ce,de){return{promise:de}}var oe={promiseCreated:ie,promiseFulfilled:ie,promiseRejected:ie,promiseResolved:ie,promiseCancelled:ie,promiseChained:function(ce,de,be){return{promise:de,child:be}},warning:function(ce,de){return{warning:de}},unhandledRejection:function(ce,de,be){return{reason:de,promise:be}},rejectionHandled:ie},G=function(ce){var de=!1;try{de=ee.apply(null,arguments)}catch(ye){y.throwLater(ye),de=!0}var be=!1;try{be=Z(ce,oe[ce].apply(null,arguments))}catch(ye){y.throwLater(ye),be=!0}return be||de};function F(){return!1}function j(ce,de,be){var ye=this;try{ce(de,be,function(Ce){if(typeof Ce!="function")throw new TypeError("onCancel must be a function, got: "+_.toString(Ce));ye._attachCancellationCallback(Ce)})}catch(Ce){return Ce}}function B(ce){if(!this._isCancellable())return this;var de=this._onCancel();de!==void 0?_.isArray(de)?de.push(ce):this._setOnCancel([de,ce]):this._setOnCancel(ce)}function ne(){return this._onCancelField}function H(ce){this._onCancelField=ce}function q(){this._cancellationParent=void 0,this._onCancelField=void 0}function te(ce,de){if(1&de){this._cancellationParent=ce;var be=ce._branchesRemainingToCancel;be===void 0&&(be=0),ce._branchesRemainingToCancel=be+1}2&de&&ce._isBound()&&this._setBoundTo(ce._boundTo)}c.config=function(ce){if("longStackTraces"in(ce=Object(ce))&&(ce.longStackTraces?c.longStackTraces():!ce.longStackTraces&&c.hasLongStackTraces()&&J()),"warnings"in ce){var de=ce.warnings;Ne.warnings=!!de,Y=Ne.warnings,_.isObject(de)&&"wForgottenReturn"in de&&(Y=!!de.wForgottenReturn)}if("cancellation"in ce&&ce.cancellation&&!Ne.cancellation){if(y.haveItemsQueued())throw new Error("cannot enable cancellation after promises are in use");c.prototype._clearCancellationData=q,c.prototype._propagateFrom=te,c.prototype._onCancel=ne,c.prototype._setOnCancel=H,c.prototype._attachCancellationCallback=B,c.prototype._execute=j,se=te,Ne.cancellation=!0}return"monitoring"in ce&&(ce.monitoring&&!Ne.monitoring?(Ne.monitoring=!0,c.prototype._fireEvent=G):!ce.monitoring&&Ne.monitoring&&(Ne.monitoring=!1,c.prototype._fireEvent=F)),c},c.prototype._fireEvent=F,c.prototype._execute=function(ce,de,be){try{ce(de,be)}catch(ye){return ye}},c.prototype._onCancel=function(){},c.prototype._setOnCancel=function(ce){},c.prototype._attachCancellationCallback=function(ce){},c.prototype._captureStackTrace=function(){},c.prototype._attachExtraTrace=function(){},c.prototype._clearCancellationData=function(){},c.prototype._propagateFrom=function(ce,de){};var se=function(ce,de){2&de&&ce._isBound()&&this._setBoundTo(ce._boundTo)};function pe(){var ce=this._boundTo;return ce!==void 0&&ce instanceof c?ce.isFulfilled()?ce.value():void 0:ce}function O(){this._trace=new De(this._peekContext())}function R(ce,de){if(w(ce)){var be=this._trace;if(be!==void 0&&de&&(be=be._parent),be!==void 0)be.attachExtraTrace(ce);else if(!ce.__stackCleaned__){var ye=K(ce);_.notEnumerableProp(ce,"stack",ye.message+` -`+ye.stack.join(` -`)),_.notEnumerableProp(ce,"__stackCleaned__",!0)}}}function I(ce,de,be){if(Ne.warnings){var ye,Ce=new x(ce);if(de)be._attachExtraTrace(Ce);else if(Ne.longStackTraces&&(ye=c._peekContext()))ye.attachExtraTrace(Ce);else{var ke=K(Ce);Ce.stack=ke.message+` -`+ke.stack.join(` -`)}G("warning",Ce)||ae(Ce,"",!0)}}function X(ce){for(var de=[],be=0;be0?function(ye){for(var Ce=ye.stack.replace(/\s+$/g,"").split(` -`),ke=0;ke0&&ye.name!="SyntaxError"&&(Ce=Ce.slice(ke)),Ce}(ce):[" (No stack trace)"],{message:be,stack:ce.name=="SyntaxError"?de:X(de)}}function ae(ce,de,be){if(typeof console<"u"){var ye;if(_.isObject(ce)){var Ce=ce.stack;ye=de+N(Ce,ce)}else ye=de+String(ce);typeof m=="function"?m(ye,be):typeof console.log!="function"&&typeof console.log!="object"||console.log(ye)}}function ge(ce,de,be,ye){var Ce=!1;try{typeof de=="function"&&(Ce=!0,ce==="rejectionHandled"?de(ye):de(be,ye))}catch(ke){y.throwLater(ke)}ce==="unhandledRejection"?G(ce,be,ye)||Ce||ae(be,"Unhandled rejection "):G(ce,ye)}function Le(ce){var de;if(typeof ce=="function")de="[function "+(ce.name||"anonymous")+"]";else{if(de=ce&&typeof ce.toString=="function"?ce.toString():_.toString(ce),/\[object [a-zA-Z0-9$_]+\]/.test(de))try{de=JSON.stringify(ce)}catch{}de.length===0&&(de="(empty array)")}return"(<"+function(be){return be.length<41?be:be.substr(0,38)+"..."}(de)+">, no stack trace)"}function ue(){return typeof Re=="function"}var ve=function(){return!1},_e=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;function Te(ce){var de=ce.match(_e);if(de)return{fileName:de[1],line:parseInt(de[2],10)}}function De(ce){this._parent=ce,this._promisesCreated=0;var de=this._length=1+(ce===void 0?0:ce._length);Re(this,De),de>32&&this.uncycle()}_.inherits(De,Error),f.CapturedTrace=De,De.prototype.uncycle=function(){var ce=this._length;if(!(ce<2)){for(var de=[],be={},ye=0,Ce=this;Ce!==void 0;++ye)de.push(Ce),Ce=Ce._parent;for(ye=(ce=this._length=ye)-1;ye>=0;--ye){var ke=de[ye].stack;be[ke]===void 0&&(be[ke]=ye)}for(ye=0;ye0&&(de[Ie-1]._parent=void 0,de[Ie-1]._length=1),de[ye]._parent=void 0,de[ye]._length=1;var Je=ye>0?de[ye-1]:this;Ie=0;--Ge)de[Ge]._length=et,et++;return}}}},De.prototype.attachExtraTrace=function(ce){if(!ce.__stackCleaned__){this.uncycle();for(var de=K(ce),be=de.message,ye=[de.stack],Ce=this;Ce!==void 0;)ye.push(X(Ce.stack.split(` -`))),Ce=Ce._parent;(function(ke){for(var Ie=ke[0],Je=1;Je=0;--wn)if(et[wn]===Ht){Ft=wn;break}for(wn=Ft;wn>=0;--wn){var ir=et[wn];if(Ie[Ge]!==ir)break;Ie.pop(),Ge--}Ie=et}})(ye),function(ke){for(var Ie=0;Ie=0)return k=/@/,N=de,D=!0,function(ke){ke.stack=new Error().stack};try{throw new Error}catch(ke){ye="stack"in ke}return"stack"in Ce||!ye||typeof Error.stackTraceLimit!="number"?(N=function(ke,Ie){return typeof ke=="string"?ke:typeof Ie!="object"&&typeof Ie!="function"||Ie.name===void 0||Ie.message===void 0?Le(Ie):Ie.toString()},null):(k=ce,N=de,function(ke){Error.stackTraceLimit+=6;try{throw new Error}catch(Ie){ke.stack=Ie.stack}Error.stackTraceLimit-=6})}();typeof console<"u"&&console.warn!==void 0&&(m=function(ce){console.warn(ce)},_.isNode&&r.stderr.isTTY?m=function(ce,de){var be=de?"\x1B[33m":"\x1B[31m";console.warn(be+ce+`\x1B[0m -`)}:_.isNode||typeof new Error().stack!="string"||(m=function(ce,de){console.warn("%c"+ce,de?"color: darkorange":"color: red")}));var Ne={warnings:A,longStackTraces:!1,cancellation:!1,monitoring:!1};return W&&c.longStackTraces(),{longStackTraces:function(){return Ne.longStackTraces},warnings:function(){return Ne.warnings},cancellation:function(){return Ne.cancellation},monitoring:function(){return Ne.monitoring},propagateFromFunction:function(){return se},boundValueFunction:function(){return pe},checkForgottenReturns:function(ce,de,be,ye,Ce){if(ce===void 0&&de!==null&&Y){if(Ce!==void 0&&Ce._returnedNonUndefined()||!(65535&ye._bitField))return;be&&(be+=" ");var ke="",Ie="";if(de._trace){for(var Je=de._trace.stack.split(` -`),et=X(Je),Ge=et.length-1;Ge>=0;--Ge){var Ht=et[Ge];if(!T.test(Ht)){var Ft=Ht.match(P);Ft&&(ke="at "+Ft[1]+":"+Ft[2]+":"+Ft[3]+" ");break}}if(et.length>0){var wn=et[0];for(Ge=0;Ge0&&(Ie=` -`+Je[Ge-1]);break}}}var ir="a promise was created in a "+be+"handler "+ke+"but was not returned from it, see http://goo.gl/rRqMUw"+Ie;ye._warn(ir,!0,de)}},setBounds:function(ce,de){if(ue()){for(var be,ye,Ce=ce.stack.split(` -`),ke=de.stack.split(` -`),Ie=-1,Je=-1,et=0;et=Je||(ve=function(Ht){if(S.test(Ht))return!0;var Ft=Te(Ht);return!!(Ft&&Ft.fileName===be&&Ie<=Ft.line&&Ft.line<=Je)})}},warn:I,deprecated:function(ce,de){var be=ce+" is deprecated and will be removed in a future version.";return de&&(be+=" Use "+de+" instead."),I(be)},CapturedTrace:De,fireDomEvent:Z,fireGlobalEvent:ee}}},{"./errors":12,"./util":36}],10:[function(s,a,l){a.exports=function(c){function f(){return this.value}function h(){throw this.reason}c.prototype.return=c.prototype.thenReturn=function(p){return p instanceof c&&p.suppressUnhandledRejections(),this._then(f,void 0,void 0,{value:p},void 0)},c.prototype.throw=c.prototype.thenThrow=function(p){return this._then(h,void 0,void 0,{reason:p},void 0)},c.prototype.catchThrow=function(p){if(arguments.length<=1)return this._then(void 0,h,void 0,{reason:p},void 0);var m=arguments[1];return this.caught(p,function(){throw m})},c.prototype.catchReturn=function(p){if(arguments.length<=1)return p instanceof c&&p.suppressUnhandledRejections(),this._then(void 0,f,void 0,{value:p},void 0);var m=arguments[1];return m instanceof c&&m.suppressUnhandledRejections(),this.caught(p,function(){return m})}}},{}],11:[function(s,a,l){a.exports=function(c,f){var h=c.reduce,p=c.all;function m(){return p(this)}c.prototype.each=function(v){return h(this,v,f,0)._then(m,void 0,void 0,this,void 0)},c.prototype.mapSeries=function(v){return h(this,v,f,f)},c.each=function(v,y){return h(v,y,f,0)._then(m,void 0,void 0,v,void 0)},c.mapSeries=function(v,y){return h(v,y,f,f)}}},{}],12:[function(s,a,l){var c,f,h=s("./es5"),p=h.freeze,m=s("./util"),v=m.inherits,y=m.notEnumerableProp;function x(A,W){function Y(J){if(!(this instanceof Y))return new Y(J);y(this,"message",typeof J=="string"?J:W),y(this,"name",A),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):Error.call(this)}return v(Y,Error),Y}var _=x("Warning","warning"),w=x("CancellationError","cancellation error"),S=x("TimeoutError","timeout error"),T=x("AggregateError","aggregate error");try{c=TypeError,f=RangeError}catch{c=x("TypeError","type error"),f=x("RangeError","range error")}for(var P="join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(" "),k=0;k1?k.cancelPromise._reject(N):k.cancelPromise._cancel(),k.cancelPromise=null,!0)}function S(){return P.call(this,this.promise._target()._settledValue())}function T(k){if(!w(this,k))return v.e=k,v}function P(k){var N=this.promise,D=this.handler;if(!this.called){this.called=!0;var z=this.isFinallyHandler()?D.call(N._boundValue()):D.call(N._boundValue(),k);if(z===h)return z;if(z!==void 0){N._setReturnedNonUndefined();var A=f(z,N);if(A instanceof c){if(this.cancelPromise!=null){if(A._isCancelled()){var W=new m("late cancellation observer");return N._attachExtraTrace(W),v.e=W,v}A.isPending()&&A._attachCancellationCallback(new _(this))}return A._then(S,T,void 0,this,void 0)}}}return N.isRejected()?(w(this),v.e=k,v):(w(this),k)}return x.prototype.isFinallyHandler=function(){return this.type===0},_.prototype._resultCancelled=function(){w(this.finallyHandler)},c.prototype._passThrough=function(k,N,D,z){return typeof k!="function"?this.then():this._then(D,z,void 0,new x(this,N,k),void 0)},c.prototype.lastly=c.prototype.finally=function(k){return this._passThrough(k,0,P,P)},c.prototype.tap=function(k){return this._passThrough(k,1,P)},c.prototype.tapCatch=function(k){var N=arguments.length;if(N===1)return this._passThrough(k,1,void 0,P);var D,z=new Array(N-1),A=0;for(D=0;D0&&typeof arguments[_]=="function"&&(x=arguments[_]);var w=[].slice.call(arguments);x&&w.pop();var S=new f(w).promise();return x!==void 0?S.spread(x):S}}},{"./util":36}],18:[function(s,a,l){a.exports=function(c,f,h,p,m,v){var y=c._getDomain,x=s("./util"),_=x.tryCatch,w=x.errorObj,S=c._async;function T(k,N,D,z){this.constructor$(k),this._promise._captureStackTrace();var A=y();this._callback=A===null?N:x.domainBind(A,N),this._preservedValues=z===m?new Array(this.length()):null,this._limit=D,this._inFlight=0,this._queue=[],S.invoke(this._asyncInit,this,void 0)}function P(k,N,D,z){if(typeof N!="function")return h("expecting a function but got "+x.classString(N));var A=0;if(D!==void 0){if(typeof D!="object"||D===null)return c.reject(new TypeError("options argument must be an object but it is "+x.classString(D)));if(typeof D.concurrency!="number")return c.reject(new TypeError("'concurrency' must be a number but it is "+x.classString(D.concurrency)));A=D.concurrency}return new T(k,N,A=typeof A=="number"&&isFinite(A)&&A>=1?A:0,z).promise()}x.inherits(T,f),T.prototype._asyncInit=function(){this._init$(void 0,-2)},T.prototype._init=function(){},T.prototype._promiseFulfilled=function(k,N){var D=this._values,z=this.length(),A=this._preservedValues,W=this._limit;if(N<0){if(D[N=-1*N-1]=k,W>=1&&(this._inFlight--,this._drainQueue(),this._isResolved()))return!0}else{if(W>=1&&this._inFlight>=W)return D[N]=k,this._queue.push(N),!1;A!==null&&(A[N]=k);var Y=this._promise,J=this._callback,Z=Y._boundValue();Y._pushContext();var ee=_(J).call(Z,k,N,z),ie=Y._popContext();if(v.checkForgottenReturns(ee,ie,A!==null?"Promise.filter":"Promise.map",Y),ee===w)return this._reject(ee.e),!0;var oe=p(ee,this._promise);if(oe instanceof c){var G=(oe=oe._target())._bitField;if(!(50397184&G))return W>=1&&this._inFlight++,D[N]=oe,oe._proxy(this,-1*(N+1)),!1;if(!(33554432&G))return 16777216&G?(this._reject(oe._reason()),!0):(this._cancel(),!0);ee=oe._value()}D[N]=ee}return++this._totalResolved>=z&&(A!==null?this._filter(D,A):this._resolve(D),!0)},T.prototype._drainQueue=function(){for(var k=this._queue,N=this._limit,D=this._values;k.length>0&&this._inFlight1){m.deprecated("calling Promise.try with more than 1 argument");var S=arguments[1],T=arguments[2];_=v.isArray(S)?y(x).apply(T,S):y(x).call(T,S)}else _=y(x)();var P=w._popContext();return m.checkForgottenReturns(_,P,"Promise.try",w),w._resolveFromSyncValue(_),w},c.prototype._resolveFromSyncValue=function(x){x===v.errorObj?this._rejectCallback(x.e,!1):this._resolveCallback(x,!0)}}},{"./util":36}],20:[function(s,a,l){var c=s("./util"),f=c.maybeWrapAsError,h=s("./errors").OperationalError,p=s("./es5"),m=/^(?:name|message|stack|cause)$/;function v(y){var x;if(function(T){return T instanceof Error&&p.getPrototypeOf(T)===Error.prototype}(y)){(x=new h(y)).name=y.name,x.message=y.message,x.stack=y.stack;for(var _=p.keys(y),w=0;w<_.length;++w){var S=_[w];m.test(S)||(x[S]=y[S])}return x}return c.markAsOriginatingFromRejection(y),y}a.exports=function(y,x){return function(_,w){if(y!==null){if(_){var S=v(f(_));y._attachExtraTrace(S),y._reject(S)}else if(x){var T=[].slice.call(arguments,1);y._fulfill(T)}else y._fulfill(w);y=null}}}},{"./errors":12,"./es5":13,"./util":36}],21:[function(s,a,l){a.exports=function(c){var f=s("./util"),h=c._async,p=f.tryCatch,m=f.errorObj;function v(_,w){if(!f.isArray(_))return y.call(this,_,w);var S=p(w).apply(this._boundValue(),[null].concat(_));S===m&&h.throwLater(S.e)}function y(_,w){var S=this._boundValue(),T=_===void 0?p(w).call(S,null):p(w).call(S,null,_);T===m&&h.throwLater(T.e)}function x(_,w){if(!_){var S=new Error(_+"");S.cause=_,_=S}var T=p(w).call(this._boundValue(),_);T===m&&h.throwLater(T.e)}c.prototype.asCallback=c.prototype.nodeify=function(_,w){if(typeof _=="function"){var S=y;w!==void 0&&Object(w).spread&&(S=v),this._then(S,x,void 0,this,_)}return this}}},{"./util":36}],22:[function(s,a,l){a.exports=function(){var c=function(){return new T(`circular promise resolution chain - - See http://goo.gl/MqrFmX -`)},f=function(){return new F.PromiseInspection(this._target())},h=function(H){return F.reject(new T(H))};function p(){}var m,v={},y=s("./util");m=y.isNode?function(){var H=r.domain;return H===void 0&&(H=null),H}:function(){return null},y.notEnumerableProp(F,"_getDomain",m);var x=s("./es5"),_=s("./async"),w=new _;x.defineProperty(F,"_async",{value:w});var S=s("./errors"),T=F.TypeError=S.TypeError;F.RangeError=S.RangeError;var P=F.CancellationError=S.CancellationError;F.TimeoutError=S.TimeoutError,F.OperationalError=S.OperationalError,F.RejectionError=S.OperationalError,F.AggregateError=S.AggregateError;var k=function(){},N={},D={},z=s("./thenables")(F,k),A=s("./promise_array")(F,k,z,h,p),W=s("./context")(F),Y=W.create,J=s("./debuggability")(F,W),Z=(J.CapturedTrace,s("./finally")(F,z,D)),ee=s("./catch_filter")(D),ie=s("./nodeback"),oe=y.errorObj,G=y.tryCatch;function F(H){H!==k&&function(q,te){if(q==null||q.constructor!==F)throw new T(`the promise constructor cannot be invoked directly - - See http://goo.gl/MqrFmX -`);if(typeof te!="function")throw new T("expecting a function but got "+y.classString(te))}(this,H),this._bitField=0,this._fulfillmentHandler0=void 0,this._rejectionHandler0=void 0,this._promise0=void 0,this._receiver0=void 0,this._resolveFromExecutor(H),this._promiseCreated(),this._fireEvent("promiseCreated",this)}function j(H){this.promise._resolveCallback(H)}function B(H){this.promise._rejectCallback(H,!1)}function ne(H){var q=new F(k);q._fulfillmentHandler0=H,q._rejectionHandler0=H,q._promise0=H,q._receiver0=H}return F.prototype.toString=function(){return"[object Promise]"},F.prototype.caught=F.prototype.catch=function(H){var q=arguments.length;if(q>1){var te,se=new Array(q-1),pe=0;for(te=0;te0&&typeof H!="function"&&typeof q!="function"){var te=".then() only accepts functions but was passed: "+y.classString(H);arguments.length>1&&(te+=", "+y.classString(q)),this._warn(te)}return this._then(H,q,void 0,void 0,void 0)},F.prototype.done=function(H,q){this._then(H,q,void 0,void 0,void 0)._setIsFinal()},F.prototype.spread=function(H){return typeof H!="function"?h("expecting a function but got "+y.classString(H)):this.all()._then(H,void 0,void 0,N,void 0)},F.prototype.toJSON=function(){var H={isFulfilled:!1,isRejected:!1,fulfillmentValue:void 0,rejectionReason:void 0};return this.isFulfilled()?(H.fulfillmentValue=this.value(),H.isFulfilled=!0):this.isRejected()&&(H.rejectionReason=this.reason(),H.isRejected=!0),H},F.prototype.all=function(){return arguments.length>0&&this._warn(".all() was passed arguments but it does not take any"),new A(this).promise()},F.prototype.error=function(H){return this.caught(y.originatesFromRejection,H)},F.getNewLibraryCopy=a.exports,F.is=function(H){return H instanceof F},F.fromNode=F.fromCallback=function(H){var q=new F(k);q._captureStackTrace();var te=arguments.length>1&&!!Object(arguments[1]).multiArgs,se=G(H)(ie(q,te));return se===oe&&q._rejectCallback(se.e,!0),q._isFateSealed()||q._setAsyncGuaranteed(),q},F.all=function(H){return new A(H).promise()},F.cast=function(H){var q=z(H);return q instanceof F||((q=new F(k))._captureStackTrace(),q._setFulfilled(),q._rejectionHandler0=H),q},F.resolve=F.fulfilled=F.cast,F.reject=F.rejected=function(H){var q=new F(k);return q._captureStackTrace(),q._rejectCallback(H,!0),q},F.setScheduler=function(H){if(typeof H!="function")throw new T("expecting a function but got "+y.classString(H));return w.setScheduler(H)},F.prototype._then=function(H,q,te,se,pe){var O=pe!==void 0,R=O?pe:new F(k),I=this._target(),X=I._bitField;O||(R._propagateFrom(this,3),R._captureStackTrace(),se===void 0&&2097152&this._bitField&&(se=50397184&X?this._boundValue():I===this?void 0:this._boundTo),this._fireEvent("promiseChained",this,R));var K=m();if(50397184&X){var ae,ge,Le=I._settlePromiseCtx;33554432&X?(ge=I._rejectionHandler0,ae=H):16777216&X?(ge=I._fulfillmentHandler0,ae=q,I._unsetRejectionIsUnhandled()):(Le=I._settlePromiseLateCancellationObserver,ge=new P("late cancellation observer"),I._attachExtraTrace(ge),ae=q),w.invoke(Le,I,{handler:K===null?ae:typeof ae=="function"&&y.domainBind(K,ae),promise:R,receiver:se,value:ge})}else I._addCallbacks(H,q,R,se,K);return R},F.prototype._length=function(){return 65535&this._bitField},F.prototype._isFateSealed=function(){return(117506048&this._bitField)!=0},F.prototype._isFollowing=function(){return(67108864&this._bitField)==67108864},F.prototype._setLength=function(H){this._bitField=-65536&this._bitField|65535&H},F.prototype._setFulfilled=function(){this._bitField=33554432|this._bitField,this._fireEvent("promiseFulfilled",this)},F.prototype._setRejected=function(){this._bitField=16777216|this._bitField,this._fireEvent("promiseRejected",this)},F.prototype._setFollowing=function(){this._bitField=67108864|this._bitField,this._fireEvent("promiseResolved",this)},F.prototype._setIsFinal=function(){this._bitField=4194304|this._bitField},F.prototype._isFinal=function(){return(4194304&this._bitField)>0},F.prototype._unsetCancelled=function(){this._bitField=-65537&this._bitField},F.prototype._setCancelled=function(){this._bitField=65536|this._bitField,this._fireEvent("promiseCancelled",this)},F.prototype._setWillBeCancelled=function(){this._bitField=8388608|this._bitField},F.prototype._setAsyncGuaranteed=function(){w.hasCustomScheduler()||(this._bitField=134217728|this._bitField)},F.prototype._receiverAt=function(H){var q=H===0?this._receiver0:this[4*H-4+3];if(q!==v)return q===void 0&&this._isBound()?this._boundValue():q},F.prototype._promiseAt=function(H){return this[4*H-4+2]},F.prototype._fulfillmentHandlerAt=function(H){return this[4*H-4+0]},F.prototype._rejectionHandlerAt=function(H){return this[4*H-4+1]},F.prototype._boundValue=function(){},F.prototype._migrateCallback0=function(H){H._bitField;var q=H._fulfillmentHandler0,te=H._rejectionHandler0,se=H._promise0,pe=H._receiverAt(0);pe===void 0&&(pe=v),this._addCallbacks(q,te,se,pe,null)},F.prototype._migrateCallbackAt=function(H,q){var te=H._fulfillmentHandlerAt(q),se=H._rejectionHandlerAt(q),pe=H._promiseAt(q),O=H._receiverAt(q);O===void 0&&(O=v),this._addCallbacks(te,se,pe,O,null)},F.prototype._addCallbacks=function(H,q,te,se,pe){var O=this._length();if(O>=65531&&(O=0,this._setLength(0)),O===0)this._promise0=te,this._receiver0=se,typeof H=="function"&&(this._fulfillmentHandler0=pe===null?H:y.domainBind(pe,H)),typeof q=="function"&&(this._rejectionHandler0=pe===null?q:y.domainBind(pe,q));else{var R=4*O-4;this[R+2]=te,this[R+3]=se,typeof H=="function"&&(this[R+0]=pe===null?H:y.domainBind(pe,H)),typeof q=="function"&&(this[R+1]=pe===null?q:y.domainBind(pe,q))}return this._setLength(O+1),O},F.prototype._proxy=function(H,q){this._addCallbacks(void 0,void 0,q,H,null)},F.prototype._resolveCallback=function(H,q){if(!(117506048&this._bitField)){if(H===this)return this._rejectCallback(c(),!1);var te=z(H,this);if(!(te instanceof F))return this._fulfill(H);q&&this._propagateFrom(te,2);var se=te._target();if(se!==this){var pe=se._bitField;if(50397184&pe)if(33554432&pe)this._fulfill(se._value());else if(16777216&pe)this._reject(se._reason());else{var I=new P("late cancellation observer");se._attachExtraTrace(I),this._reject(I)}else{var O=this._length();O>0&&se._migrateCallback0(this);for(var R=1;R>>16)){if(H===this){var te=c();return this._attachExtraTrace(te),this._reject(te)}this._setFulfilled(),this._rejectionHandler0=H,(65535&q)>0&&(134217728&q?this._settlePromises():w.settlePromises(this))}},F.prototype._reject=function(H){var q=this._bitField;if(!((117506048&q)>>>16)){if(this._setRejected(),this._fulfillmentHandler0=H,this._isFinal())return w.fatalError(H,y.isNode);(65535&q)>0?w.settlePromises(this):this._ensurePossibleRejectionHandled()}},F.prototype._fulfillPromises=function(H,q){for(var te=1;te0){if(16842752&H){var te=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,te,H),this._rejectPromises(q,te)}else{var se=this._rejectionHandler0;this._settlePromise0(this._fulfillmentHandler0,se,H),this._fulfillPromises(q,se)}this._setLength(0)}this._clearCancellationData()},F.prototype._settledValue=function(){var H=this._bitField;return 33554432&H?this._rejectionHandler0:16777216&H?this._fulfillmentHandler0:void 0},F.defer=F.pending=function(){return J.deprecated("Promise.defer","new Promise"),{promise:new F(k),resolve:j,reject:B}},y.notEnumerableProp(F,"_makeSelfResolutionError",c),s("./method")(F,k,z,h,J),s("./bind")(F,k,z,J),s("./cancel")(F,A,h,J),s("./direct_resolve")(F),s("./synchronous_inspection")(F),s("./join")(F,A,z,k,w,m),F.Promise=F,F.version="3.5.1",s("./map.js")(F,A,h,z,k,J),s("./call_get.js")(F),s("./using.js")(F,h,z,Y,k,J),s("./timers.js")(F,k,J),s("./generators.js")(F,h,k,z,p,J),s("./nodeify.js")(F),s("./promisify.js")(F,k),s("./props.js")(F,A,z,h),s("./race.js")(F,k,z,h),s("./reduce.js")(F,A,h,z,k,J),s("./settle.js")(F,A,J),s("./some.js")(F,A,h),s("./filter.js")(F,k),s("./each.js")(F,k),s("./any.js")(F),y.toFastProperties(F),y.toFastProperties(F.prototype),ne({a:1}),ne({b:2}),ne({c:3}),ne(1),ne(function(){}),ne(void 0),ne(!1),ne(new F(k)),J.setBounds(_.firstLineError,y.lastLineError),F}},{"./any.js":1,"./async":2,"./bind":3,"./call_get.js":5,"./cancel":6,"./catch_filter":7,"./context":8,"./debuggability":9,"./direct_resolve":10,"./each.js":11,"./errors":12,"./es5":13,"./filter.js":14,"./finally":15,"./generators.js":16,"./join":17,"./map.js":18,"./method":19,"./nodeback":20,"./nodeify.js":21,"./promise_array":23,"./promisify.js":24,"./props.js":25,"./race.js":27,"./reduce.js":28,"./settle.js":30,"./some.js":31,"./synchronous_inspection":32,"./thenables":33,"./timers.js":34,"./using.js":35,"./util":36}],23:[function(s,a,l){a.exports=function(c,f,h,p,m){var v=s("./util");function y(x){var _=this._promise=new c(f);x instanceof c&&_._propagateFrom(x,3),_._setOnCancel(this),this._values=x,this._length=0,this._totalResolved=0,this._init(void 0,-2)}return v.isArray,v.inherits(y,m),y.prototype.length=function(){return this._length},y.prototype.promise=function(){return this._promise},y.prototype._init=function x(_,w){var S=h(this._values,this._promise);if(S instanceof c){var T=(S=S._target())._bitField;if(this._values=S,(50397184&T)==0)return this._promise._setAsyncGuaranteed(),S._then(x,this._reject,void 0,this,w);if(!(33554432&T))return 16777216&T?this._reject(S._reason()):this._cancel();S=S._value()}if((S=v.asArray(S))!==null)S.length!==0?this._iterate(S):w===-5?this._resolveEmptyArray():this._resolve(function(k){switch(w){case-2:return[];case-3:return{};case-6:return new Map}}());else{var P=p("expecting an array or an iterable object but got "+v.classString(S)).reason();this._promise._rejectCallback(P,!1)}},y.prototype._iterate=function(x){var _=this.getActualLength(x.length);this._length=_,this._values=this.shouldCopyValues()?new Array(_):this._values;for(var w=this._promise,S=!1,T=null,P=0;P<_;++P){var k=h(x[P],w);T=k instanceof c?(k=k._target())._bitField:null,S?T!==null&&k.suppressUnhandledRejections():T!==null?50397184&T?S=33554432&T?this._promiseFulfilled(k._value(),P):16777216&T?this._promiseRejected(k._reason(),P):this._promiseCancelled(P):(k._proxy(this,P),this._values[P]=k):S=this._promiseFulfilled(k,P)}S||w._setAsyncGuaranteed()},y.prototype._isResolved=function(){return this._values===null},y.prototype._resolve=function(x){this._values=null,this._promise._fulfill(x)},y.prototype._cancel=function(){!this._isResolved()&&this._promise._isCancellable()&&(this._values=null,this._promise._cancel())},y.prototype._reject=function(x){this._values=null,this._promise._rejectCallback(x,!1)},y.prototype._promiseFulfilled=function(x,_){return this._values[_]=x,++this._totalResolved>=this._length&&(this._resolve(this._values),!0)},y.prototype._promiseCancelled=function(){return this._cancel(),!0},y.prototype._promiseRejected=function(x){return this._totalResolved++,this._reject(x),!0},y.prototype._resultCancelled=function(){if(!this._isResolved()){var x=this._values;if(this._cancel(),x instanceof c)x.cancel();else for(var _=0;_=this._length){var k;if(this._isMap)k=function(A){for(var W=new m,Y=A.length/2|0,J=0;J>1},c.prototype.props=function(){return S(this)},c.props=function(T){return S(T)}}},{"./es5":13,"./util":36}],26:[function(s,a,l){function c(f){this._capacity=f,this._length=0,this._front=0}c.prototype._willBeOverCapacity=function(f){return this._capacity"u"){var p=i.setImmediate,m=r.nextTick;c=f.isRecentNode?function(y){p.call(i,y)}:function(y){m.call(r,y)}}else if(typeof h=="function"&&typeof h.resolve=="function"){var v=h.resolve();c=function(y){v.then(y)}}else c=typeof MutationObserver>"u"||typeof window<"u"&&window.navigator&&(window.navigator.standalone||window.cordova)?o!==void 0?function(y){o(y)}:typeof setTimeout<"u"?function(y){setTimeout(y,0)}:function(){throw new Error(`No async scheduler available - - See http://goo.gl/MqrFmX -`)}:function(){var y=document.createElement("div"),x={attributes:!0},_=!1,w=document.createElement("div");return new MutationObserver(function(){y.classList.toggle("foo"),_=!1}).observe(w,x),function(S){var T=new MutationObserver(function(){T.disconnect(),S()});T.observe(y,x),_||(_=!0,w.classList.toggle("foo"))}}();a.exports=c},{"./util":36}],30:[function(s,a,l){a.exports=function(c,f,h){var p=c.PromiseInspection;function m(v){this.constructor$(v)}s("./util").inherits(m,f),m.prototype._promiseResolved=function(v,y){return this._values[v]=y,++this._totalResolved>=this._length&&(this._resolve(this._values),!0)},m.prototype._promiseFulfilled=function(v,y){var x=new p;return x._bitField=33554432,x._settledValueField=v,this._promiseResolved(y,x)},m.prototype._promiseRejected=function(v,y){var x=new p;return x._bitField=16777216,x._settledValueField=v,this._promiseResolved(y,x)},c.settle=function(v){return h.deprecated(".settle()",".reflect()"),new m(v).promise()},c.prototype.settle=function(){return c.settle(this)}}},{"./util":36}],31:[function(s,a,l){a.exports=function(c,f,h){var p=s("./util"),m=s("./errors").RangeError,v=s("./errors").AggregateError,y=p.isArray,x={};function _(S){this.constructor$(S),this._howMany=0,this._unwrap=!1,this._initialized=!1}function w(S,T){if((0|T)!==T||T<0)return h(`expecting a positive integer - - See http://goo.gl/MqrFmX -`);var P=new _(S),k=P.promise();return P.setHowMany(T),P.init(),k}p.inherits(_,f),_.prototype._init=function(){if(this._initialized)if(this._howMany!==0){this._init$(void 0,-5);var S=y(this._values);!this._isResolved()&&S&&this._howMany>this._canPossiblyFulfill()&&this._reject(this._getRangeError(this.length()))}else this._resolve([])},_.prototype.init=function(){this._initialized=!0,this._init()},_.prototype.setUnwrap=function(){this._unwrap=!0},_.prototype.howMany=function(){return this._howMany},_.prototype.setHowMany=function(S){this._howMany=S},_.prototype._promiseFulfilled=function(S){return this._addFulfilled(S),this._fulfilled()===this.howMany()&&(this._values.length=this.howMany(),this.howMany()===1&&this._unwrap?this._resolve(this._values[0]):this._resolve(this._values),!0)},_.prototype._promiseRejected=function(S){return this._addRejected(S),this._checkOutcome()},_.prototype._promiseCancelled=function(){return this._values instanceof c||this._values==null?this._cancel():(this._addRejected(x),this._checkOutcome())},_.prototype._checkOutcome=function(){if(this.howMany()>this._canPossiblyFulfill()){for(var S=new v,T=this.length();T0?this._reject(S):this._cancel(),!0}return!1},_.prototype._fulfilled=function(){return this._totalResolved},_.prototype._rejected=function(){return this._values.length-this.length()},_.prototype._addRejected=function(S){this._values.push(S)},_.prototype._addFulfilled=function(S){this._values[this._totalResolved++]=S},_.prototype._canPossiblyFulfill=function(){return this.length()-this._rejected()},_.prototype._getRangeError=function(S){var T="Input array must contain at least "+this._howMany+" items but contains only "+S+" items";return new m(T)},_.prototype._resolveEmptyArray=function(){this._reject(this._getRangeError(0))},c.some=function(S,T){return w(S,T)},c.prototype.some=function(S){return w(this,S)},c._SomePromiseArray=_}},{"./errors":12,"./util":36}],32:[function(s,a,l){a.exports=function(c){function f(_){_!==void 0?(_=_._target(),this._bitField=_._bitField,this._settledValueField=_._isFateSealed()?_._settledValue():void 0):(this._bitField=0,this._settledValueField=void 0)}f.prototype._settledValue=function(){return this._settledValueField};var h=f.prototype.value=function(){if(!this.isFulfilled())throw new TypeError(`cannot get fulfillment value of a non-fulfilled promise - - See http://goo.gl/MqrFmX -`);return this._settledValue()},p=f.prototype.error=f.prototype.reason=function(){if(!this.isRejected())throw new TypeError(`cannot get rejection reason of a non-rejected promise - - See http://goo.gl/MqrFmX -`);return this._settledValue()},m=f.prototype.isFulfilled=function(){return(33554432&this._bitField)!=0},v=f.prototype.isRejected=function(){return(16777216&this._bitField)!=0},y=f.prototype.isPending=function(){return(50397184&this._bitField)==0},x=f.prototype.isResolved=function(){return(50331648&this._bitField)!=0};f.prototype.isCancelled=function(){return(8454144&this._bitField)!=0},c.prototype.__isCancelled=function(){return(65536&this._bitField)==65536},c.prototype._isCancelled=function(){return this._target().__isCancelled()},c.prototype.isCancelled=function(){return(8454144&this._target()._bitField)!=0},c.prototype.isPending=function(){return y.call(this._target())},c.prototype.isRejected=function(){return v.call(this._target())},c.prototype.isFulfilled=function(){return m.call(this._target())},c.prototype.isResolved=function(){return x.call(this._target())},c.prototype.value=function(){return h.call(this._target())},c.prototype.reason=function(){var _=this._target();return _._unsetRejectionIsUnhandled(),p.call(_)},c.prototype._value=function(){return this._settledValue()},c.prototype._reason=function(){return this._unsetRejectionIsUnhandled(),this._settledValue()},c.PromiseInspection=f}},{}],33:[function(s,a,l){a.exports=function(c,f){var h=s("./util"),p=h.errorObj,m=h.isObject,v={}.hasOwnProperty;return function(y,x){if(m(y)){if(y instanceof c)return y;var _=function(S){try{return function(T){return T.then}(S)}catch(T){return p.e=T,p}}(y);if(_===p){x&&x._pushContext();var w=c.reject(_.e);return x&&x._popContext(),w}if(typeof _=="function")return function(S){try{return v.call(S,"_promise0")}catch{return!1}}(y)?(w=new c(f),y._then(w._fulfill,w._reject,void 0,w,null),w):function(S,T,P){var k=new c(f),N=k;P&&P._pushContext(),k._captureStackTrace(),P&&P._popContext();var D=!0,z=h.tryCatch(T).call(S,function(A){k&&(k._resolveCallback(A),k=null)},function(A){k&&(k._rejectCallback(A,D,!0),k=null)});return D=!1,k&&z===p&&(k._rejectCallback(z.e,!0,!0),k=null),N}(y,_,x)}return y}}},{"./util":36}],34:[function(s,a,l){a.exports=function(c,f,h){var p=s("./util"),m=c.TimeoutError;function v(S){this.handle=S}v.prototype._resultCancelled=function(){clearTimeout(this.handle)};var y=function(S){return x(+this).thenReturn(S)},x=c.delay=function(S,T){var P,k;return T!==void 0?(P=c.resolve(T)._then(y,null,null,S,void 0),h.cancellation()&&T instanceof c&&P._setOnCancel(T)):(P=new c(f),k=setTimeout(function(){P._fulfill()},+S),h.cancellation()&&P._setOnCancel(new v(k)),P._captureStackTrace()),P._setAsyncGuaranteed(),P};function _(S){return clearTimeout(this.handle),S}function w(S){throw clearTimeout(this.handle),S}c.prototype.delay=function(S){return x(S,this)},c.prototype.timeout=function(S,T){var P,k;S=+S;var N=new v(setTimeout(function(){P.isPending()&&function(D,z,A){var W;W=typeof z!="string"?z instanceof Error?z:new m("operation timed out"):new m(z),p.markAsOriginatingFromRejection(W),D._attachExtraTrace(W),D._reject(W),A!=null&&A.cancel()}(P,T,k)},S));return h.cancellation()?(k=this.then(),(P=k._then(_,w,void 0,N,void 0))._setOnCancel(N)):P=this._then(_,w,void 0,N,void 0),P}}},{"./util":36}],35:[function(s,a,l){a.exports=function(c,f,h,p,m,v){var y=s("./util"),x=s("./errors").TypeError,_=s("./util").inherits,w=y.errorObj,S=y.tryCatch,T={};function P(W){setTimeout(function(){throw W},0)}function k(W,Y){var J=0,Z=W.length,ee=new c(m);return function ie(){if(J>=Z)return ee._fulfill();var oe=function(G){var F=h(G);return F!==G&&typeof G._isDisposable=="function"&&typeof G._getDisposer=="function"&&G._isDisposable()&&F._setDisposable(G._getDisposer()),F}(W[J++]);if(oe instanceof c&&oe._isDisposable()){try{oe=h(oe._getDisposer().tryDispose(Y),W.promise)}catch(G){return P(G)}if(oe instanceof c)return oe._then(ie,P,null,null,null)}ie()}(),ee}function N(W,Y,J){this._data=W,this._promise=Y,this._context=J}function D(W,Y,J){this.constructor$(W,Y,J)}function z(W){return N.isDisposer(W)?(this.resources[this.index]._setDisposable(W),W.promise()):W}function A(W){this.length=W,this.promise=null,this[W-1]=null}N.prototype.data=function(){return this._data},N.prototype.promise=function(){return this._promise},N.prototype.resource=function(){return this.promise().isFulfilled()?this.promise().value():T},N.prototype.tryDispose=function(W){var Y=this.resource(),J=this._context;J!==void 0&&J._pushContext();var Z=Y!==T?this.doDispose(Y,W):null;return J!==void 0&&J._popContext(),this._promise._unsetDisposable(),this._data=null,Z},N.isDisposer=function(W){return W!=null&&typeof W.resource=="function"&&typeof W.tryDispose=="function"},_(D,N),D.prototype.doDispose=function(W,Y){return this.data().call(W,W,Y)},A.prototype._resultCancelled=function(){for(var W=this.length,Y=0;Y0},c.prototype._getDisposer=function(){return this._disposer},c.prototype._unsetDisposable=function(){this._bitField=-131073&this._bitField,this._disposer=void 0},c.prototype.disposer=function(W){if(typeof W=="function")return new D(W,this,p());throw new x}}},{"./errors":12,"./util":36}],36:[function(s,a,l){var c,f=s("./es5"),h=typeof navigator>"u",p={e:{}},m=typeof self<"u"?self:typeof window<"u"?window:i!==void 0?i:this!==void 0?this:null;function v(){try{var Z=c;return c=null,Z.apply(this,arguments)}catch(ee){return p.e=ee,p}}function y(Z){return Z==null||Z===!0||Z===!1||typeof Z=="string"||typeof Z=="number"}function x(Z,ee,ie){if(y(Z))return Z;var oe={value:ie,configurable:!0,enumerable:!1,writable:!0};return f.defineProperty(Z,ee,oe),Z}var _=function(){var Z=[Array.prototype,Object.prototype,Function.prototype],ee=function(G){for(var F=0;F1,oe=ee.length>0&&!(ee.length===1&&ee[0]==="constructor"),G=w.test(Z+"")&&f.names(Z).length>0;if(ie||oe||G)return!0}return!1}catch{return!1}},isIdentifier:function(Z){return S.test(Z)},inheritedDataKeys:_,getDataPropertyOrDefault:function(Z,ee,ie){if(!f.isES5)return{}.hasOwnProperty.call(Z,ee)?Z[ee]:void 0;var oe=Object.getOwnPropertyDescriptor(Z,ee);return oe!=null?oe.get==null&&oe.set==null?oe.value:ie:void 0},thrower:function(Z){throw Z},isArray:f.isArray,asArray:z,notEnumerableProp:x,isPrimitive:y,isObject:function(Z){return typeof Z=="function"||typeof Z=="object"&&Z!==null},isError:P,canEvaluate:h,errorObj:p,tryCatch:function(Z){return c=Z,v},inherits:function(Z,ee){var ie={}.hasOwnProperty;function oe(){for(var G in this.constructor=Z,this.constructor$=ee,ee.prototype)ie.call(ee.prototype,G)&&G.charAt(G.length-1)!=="$"&&(this[G+"$"]=ee.prototype[G])}return oe.prototype=ee.prototype,Z.prototype=new oe,Z.prototype},withAppended:function(Z,ee){var ie,oe=Z.length,G=new Array(oe+1);for(ie=0;ie10||Z[0]>0}(),J.isNode&&J.toFastProperties(r);try{throw new Error}catch(Z){J.lastLineError=Z}a.exports=J},{"./es5":13}]},{},[4])(4),typeof window<"u"&&window!==null?window.P=window.Promise:typeof self<"u"&&self!==null&&(self.P=self.Promise)}).call(this,n(4),n(0),n(11).setImmediate)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(r,i){if(!i.eol&&r){for(var o=0,s=r.length;o0?(typeof B=="string"||se.objectMode||Object.getPrototypeOf(B)===f.prototype||(B=function(pe){return f.from(pe)}(B)),H?se.endEmitted?j.emit("error",new Error("stream.unshift() after end event")):k(j,se,B,!0):se.ended?j.emit("error",new Error("stream.push() after EOF")):(se.reading=!1,se.decoder&&!ne?(B=se.decoder.write(B),se.objectMode||B.length!==0?k(j,se,B,!1):W(j,se)):k(j,se,B,!1))):H||(se.reading=!1)),function(pe){return!pe.ended&&(pe.needReadable||pe.lengthB.highWaterMark&&(B.highWaterMark=function(ne){return ne>=N?ne=N:(ne--,ne|=ne>>>1,ne|=ne>>>2,ne|=ne>>>4,ne|=ne>>>8,ne|=ne>>>16,ne++),ne}(j)),j<=B.length?j:B.ended?B.length:(B.needReadable=!0,0))}function z(j){var B=j._readableState;B.needReadable=!1,B.emittedReadable||(v("emitReadable",B.flowing),B.emittedReadable=!0,B.sync?o.nextTick(A,j):A(j))}function A(j){v("emit readable"),j.emit("readable"),ee(j)}function W(j,B){B.readingMore||(B.readingMore=!0,o.nextTick(Y,j,B))}function Y(j,B){for(var ne=B.length;!B.reading&&!B.flowing&&!B.ended&&B.length=B.length?(ne=B.decoder?B.buffer.join(""):B.buffer.length===1?B.buffer.head.data:B.buffer.concat(B.length),B.buffer.clear()):ne=function(H,q,te){var se;return HK.length?K.length:pe;if(ae===K.length?X+=K:X+=K.slice(0,pe),(pe-=ae)==0){ae===K.length?(++I,R.next?O.head=R.next:O.head=O.tail=null):(O.head=R,R.data=K.slice(ae));break}++I}return O.length-=I,X}(H,q):function(pe,O){var R=f.allocUnsafe(pe),I=O.head,X=1;for(I.data.copy(R),pe-=I.data.length;I=I.next;){var K=I.data,ae=pe>K.length?K.length:pe;if(K.copy(R,R.length-pe,0,ae),(pe-=ae)==0){ae===K.length?(++X,I.next?O.head=I.next:O.head=O.tail=null):(O.head=I,I.data=K.slice(ae));break}++X}return O.length-=X,R}(H,q),se}(j,B.buffer,B.decoder),ne);var ne}function oe(j){var B=j._readableState;if(B.length>0)throw new Error('"endReadable()" called on non-empty stream');B.endEmitted||(B.ended=!0,o.nextTick(G,B,j))}function G(j,B){j.endEmitted||j.length!==0||(j.endEmitted=!0,B.readable=!1,B.emit("end"))}function F(j,B){for(var ne=0,H=j.length;ne=B.highWaterMark||B.ended))return v("read: emitReadable",B.length,B.ended),B.length===0&&B.ended?oe(this):z(this),null;if((j=D(j,B))===0&&B.ended)return B.length===0&&oe(this),null;var H,q=B.needReadable;return v("need readable",q),(B.length===0||B.length-j0?ie(j,B):null)===null?(B.needReadable=!0,j=0):B.length-=j,B.length===0&&(B.ended||(B.needReadable=!0),ne!==j&&B.ended&&oe(this)),H!==null&&this.emit("data",H),H},T.prototype._read=function(j){this.emit("error",new Error("_read() is not implemented"))},T.prototype.pipe=function(j,B){var ne=this,H=this._readableState;switch(H.pipesCount){case 0:H.pipes=j;break;case 1:H.pipes=[H.pipes,j];break;default:H.pipes.push(j)}H.pipesCount+=1,v("pipe count=%d opts=%j",H.pipesCount,B);var q=B&&B.end===!1||j===i.stdout||j===i.stderr?ae:te;function te(){v("onend"),j.end()}H.endEmitted?o.nextTick(q):ne.once("end",q),j.on("unpipe",function ge(Le,ue){v("onunpipe"),Le===ne&&ue&&ue.hasUnpiped===!1&&(ue.hasUnpiped=!0,v("cleanup"),j.removeListener("close",X),j.removeListener("finish",K),j.removeListener("drain",se),j.removeListener("error",I),j.removeListener("unpipe",ge),ne.removeListener("end",te),ne.removeListener("end",ae),ne.removeListener("data",R),pe=!0,!H.awaitDrain||j._writableState&&!j._writableState.needDrain||se())});var se=function(ge){return function(){var Le=ge._readableState;v("pipeOnDrain",Le.awaitDrain),Le.awaitDrain&&Le.awaitDrain--,Le.awaitDrain===0&&l(ge,"data")&&(Le.flowing=!0,ee(ge))}}(ne);j.on("drain",se);var pe=!1,O=!1;function R(ge){v("ondata"),O=!1,j.write(ge)!==!1||O||((H.pipesCount===1&&H.pipes===j||H.pipesCount>1&&F(H.pipes,j)!==-1)&&!pe&&(v("false write response, pause",ne._readableState.awaitDrain),ne._readableState.awaitDrain++,O=!0),ne.pause())}function I(ge){v("onerror",ge),ae(),j.removeListener("error",I),l(j,"error")===0&&j.emit("error",ge)}function X(){j.removeListener("finish",K),ae()}function K(){v("onfinish"),j.removeListener("close",X),ae()}function ae(){v("unpipe"),ne.unpipe(j)}return ne.on("data",R),function(ge,Le,ue){if(typeof ge.prependListener=="function")return ge.prependListener(Le,ue);ge._events&&ge._events[Le]?a(ge._events[Le])?ge._events[Le].unshift(ue):ge._events[Le]=[ue,ge._events[Le]]:ge.on(Le,ue)}(j,"error",I),j.once("close",X),j.once("finish",K),j.emit("pipe",ne),H.flowing||(v("pipe resume"),ne.resume()),j},T.prototype.unpipe=function(j){var B=this._readableState,ne={hasUnpiped:!1};if(B.pipesCount===0)return this;if(B.pipesCount===1)return j&&j!==B.pipes?this:(j||(j=B.pipes),B.pipes=null,B.pipesCount=0,B.flowing=!1,j&&j.emit("unpipe",this,ne),this);if(!j){var H=B.pipes,q=B.pipesCount;B.pipes=null,B.pipesCount=0,B.flowing=!1;for(var te=0;te>5==6?2:v>>4==14?3:v>>3==30?4:v>>6==2?-1:-2}function a(v){var y=this.lastTotal-this.lastNeed,x=function(_,w,S){if((192&w[0])!=128)return _.lastNeed=0,"�";if(_.lastNeed>1&&w.length>1){if((192&w[1])!=128)return _.lastNeed=1,"�";if(_.lastNeed>2&&w.length>2&&(192&w[2])!=128)return _.lastNeed=2,"�"}}(this,v);return x!==void 0?x:this.lastNeed<=v.length?(v.copy(this.lastChar,y,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(v.copy(this.lastChar,y,0,v.length),void(this.lastNeed-=v.length))}function l(v,y){if((v.length-y)%2==0){var x=v.toString("utf16le",y);if(x){var _=x.charCodeAt(x.length-1);if(_>=55296&&_<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=v[v.length-2],this.lastChar[1]=v[v.length-1],x.slice(0,-1)}return x}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=v[v.length-1],v.toString("utf16le",y,v.length-1)}function c(v){var y=v&&v.length?this.write(v):"";if(this.lastNeed){var x=this.lastTotal-this.lastNeed;return y+this.lastChar.toString("utf16le",0,x)}return y}function f(v,y){var x=(v.length-y)%3;return x===0?v.toString("base64",y):(this.lastNeed=3-x,this.lastTotal=3,x===1?this.lastChar[0]=v[v.length-1]:(this.lastChar[0]=v[v.length-2],this.lastChar[1]=v[v.length-1]),v.toString("base64",y,v.length-x))}function h(v){var y=v&&v.length?this.write(v):"";return this.lastNeed?y+this.lastChar.toString("base64",0,3-this.lastNeed):y}function p(v){return v.toString(this.encoding)}function m(v){return v&&v.length?this.write(v):""}t.StringDecoder=o,o.prototype.write=function(v){if(v.length===0)return"";var y,x;if(this.lastNeed){if((y=this.fillLast(v))===void 0)return"";x=this.lastNeed,this.lastNeed=0}else x=0;return x=0?(k>0&&(w.lastNeed=k-1),k):--P=0?(k>0&&(w.lastNeed=k-2),k):--P=0?(k>0&&(k===2?k=0:w.lastNeed=k-3),k):0}(this,v,y);if(!this.lastNeed)return v.toString("utf8",y);this.lastTotal=x;var _=v.length-(x-this.lastNeed);return v.copy(this.lastChar,0,_),v.toString("utf8",y,_)},o.prototype.fillLast=function(v){if(this.lastNeed<=v.length)return v.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);v.copy(this.lastChar,this.lastTotal-this.lastNeed,0,v.length),this.lastNeed-=v.length}},function(e,t,n){e.exports=o;var r=n(1),i=n(5);function o(l){if(!(this instanceof o))return new o(l);r.call(this,l),this._transformState={afterTransform:function(c,f){var h=this._transformState;h.transforming=!1;var p=h.writecb;if(!p)return this.emit("error",new Error("write callback called multiple times"));h.writechunk=null,h.writecb=null,f!=null&&this.push(f),p(c);var m=this._readableState;m.reading=!1,(m.needReadable||m.length-1&&s.push(i[a]);return s},t.trimLeft=String.prototype.trimLeft?function(i){return i.trimLeft()}:function(i){return i.replace(/^\s+/,"")},t.trimRight=String.prototype.trimRight?function(i){return i.trimRight()}:function(i){return i.replace(/\s+$/,"")}}).call(this,n(3).Buffer)},function(e,t,n){var r=this&&this.__extends||function(){var o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,a){s.__proto__=a}||function(s,a){for(var l in a)a.hasOwnProperty(l)&&(s[l]=a[l])};return function(s,a){function l(){this.constructor=s}o(s,a),s.prototype=a===null?Object.create(a):(l.prototype=a.prototype,new l)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=function(o){function s(a,l,c){var f=o.call(this,"Error: "+a+". JSON Line number: "+l+(c?" near: "+c:""))||this;return f.err=a,f.line=l,f.extra=c,f.name="CSV Parse Error",f}return r(s,o),s.column_mismatched=function(a,l){return new s("column_mismatched",a,l)},s.unclosed_quote=function(a,l){return new s("unclosed_quote",a,l)},s.fromJSON=function(a){return new s(a.err,a.line,a.extra)},s.prototype.toJSON=function(){return{err:this.err,line:this.line,extra:this.extra}},s}(Error);t.default=i},function(e,t,n){var r=n(18),i=n(68),o=n(69),s=r?r.toStringTag:void 0;e.exports=function(a){return a==null?a===void 0?"[object Undefined]":"[object Null]":s&&s in Object(a)?i(a):o(a)}},function(e,t){e.exports=function(n,r){return n===r||n!=n&&r!=r}},function(e,t,n){e.exports=n(33)},function(e,t,n){var r=n(34),i=function(o,s){return new r.Converter(o,s)};i.csv=i,i.Converter=r.Converter,e.exports=i},function(e,t,n){(function(r){var i=this&&this.__extends||function(){var m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,y){v.__proto__=y}||function(v,y){for(var x in y)y.hasOwnProperty(x)&&(v[x]=y[x])};return function(v,y){function x(){this.constructor=v}m(v,y),v.prototype=y===null?Object.create(y):(x.prototype=y.prototype,new x)}}(),o=this&&this.__importDefault||function(m){return m&&m.__esModule?m:{default:m}};Object.defineProperty(t,"__esModule",{value:!0});var s=n(36),a=n(50),l=n(51),c=o(n(15)),f=n(52),h=n(105),p=function(m){function v(y,x){x===void 0&&(x={});var _=m.call(this,x)||this;return _.options=x,_.params=a.mergeParams(y),_.runtime=l.initParseRuntime(_),_.result=new h.Result(_),_.processor=new f.ProcessorLocal(_),_.once("error",function(w){r(function(){_.result.processError(w),_.emit("done",w)})}),_.once("done",function(){_.processor.destroy()}),_}return i(v,m),v.prototype.preRawData=function(y){return this.runtime.preRawDataHook=y,this},v.prototype.preFileLine=function(y){return this.runtime.preFileLineHook=y,this},v.prototype.subscribe=function(y,x,_){return this.parseRuntime.subscribe={onNext:y,onError:x,onCompleted:_},this},v.prototype.fromFile=function(y,x){var _=this,w=n(!function(){var S=new Error("Cannot find module 'fs'");throw S.code="MODULE_NOT_FOUND",S}());return w.exists(y,function(S){S?w.createReadStream(y,x).pipe(_):_.emit("error",new Error("File does not exist. Check to make sure the file path to your csv is correct."))}),this},v.prototype.fromStream=function(y){return y.pipe(this),this},v.prototype.fromString=function(y){y.toString();var x=new s.Readable,_=0;return x._read=function(w){if(_>=y.length)this.push(null);else{var S=y.substr(_,w);this.push(S),_+=w}},this.fromStream(x)},v.prototype.then=function(y,x){var _=this;return new c.default(function(w,S){_.parseRuntime.then={onfulfilled:function(T){w(y?y(T):T)},onrejected:function(T){x?w(x(T)):S(T)}}})},Object.defineProperty(v.prototype,"parseParam",{get:function(){return this.params},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"parseRuntime",{get:function(){return this.runtime},enumerable:!0,configurable:!0}),v.prototype._transform=function(y,x,_){var w=this;this.processor.process(y).then(function(S){if(S.length>0)return w.runtime.started=!0,w.result.processResult(S)}).then(function(){w.emit("drained"),_()},function(S){w.runtime.hasError=!0,w.runtime.error=S,w.emit("error",S),_()})},v.prototype._flush=function(y){var x=this;this.processor.flush().then(function(_){if(_.length>0)return x.result.processResult(_)}).then(function(){x.processEnd(y)},function(_){x.emit("error",_),y()})},v.prototype.processEnd=function(y){this.result.endProcess(),this.emit("done"),y()},Object.defineProperty(v.prototype,"parsedLineNumber",{get:function(){return this.runtime.parsedLineNumber},enumerable:!0,configurable:!0}),v}(s.Transform);t.Converter=p}).call(this,n(11).setImmediate)},function(e,t,n){(function(r,i){(function(o,s){if(!o.setImmediate){var a,l=1,c={},f=!1,h=o.document,p=Object.getPrototypeOf&&Object.getPrototypeOf(o);p=p&&p.setTimeout?p:o,{}.toString.call(o.process)==="[object process]"?a=function(y){i.nextTick(function(){v(y)})}:function(){if(o.postMessage&&!o.importScripts){var y=!0,x=o.onmessage;return o.onmessage=function(){y=!1},o.postMessage("","*"),o.onmessage=x,y}}()?function(){var y="setImmediate$"+Math.random()+"$",x=function(_){_.source===o&&typeof _.data=="string"&&_.data.indexOf(y)===0&&v(+_.data.slice(y.length))};o.addEventListener?o.addEventListener("message",x,!1):o.attachEvent("onmessage",x),a=function(_){o.postMessage(y+_,"*")}}():o.MessageChannel?function(){var y=new MessageChannel;y.port1.onmessage=function(x){v(x.data)},a=function(x){y.port2.postMessage(x)}}():h&&"onreadystatechange"in h.createElement("script")?function(){var y=h.documentElement;a=function(x){var _=h.createElement("script");_.onreadystatechange=function(){v(x),_.onreadystatechange=null,y.removeChild(_),_=null},y.appendChild(_)}}():a=function(y){setTimeout(v,0,y)},p.setImmediate=function(y){typeof y!="function"&&(y=new Function(""+y));for(var x=new Array(arguments.length-1),_=0;_"u"?r===void 0?this:r:self)}).call(this,n(0),n(4))},function(e,t,n){e.exports=i;var r=n(12).EventEmitter;function i(){r.call(this)}n(2)(i,r),i.Readable=n(13),i.Writable=n(46),i.Duplex=n(47),i.Transform=n(48),i.PassThrough=n(49),i.Stream=i,i.prototype.pipe=function(o,s){var a=this;function l(y){o.writable&&o.write(y)===!1&&a.pause&&a.pause()}function c(){a.readable&&a.resume&&a.resume()}a.on("data",l),o.on("drain",c),o._isStdio||s&&s.end===!1||(a.on("end",h),a.on("close",p));var f=!1;function h(){f||(f=!0,o.end())}function p(){f||(f=!0,typeof o.destroy=="function"&&o.destroy())}function m(y){if(v(),r.listenerCount(this,"error")===0)throw y}function v(){a.removeListener("data",l),o.removeListener("drain",c),a.removeListener("end",h),a.removeListener("close",p),a.removeListener("error",m),o.removeListener("error",m),a.removeListener("end",v),a.removeListener("close",v),o.removeListener("close",v)}return a.on("error",m),o.on("error",m),a.on("end",v),a.on("close",v),o.on("close",v),o.emit("pipe",a),o}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(r){return n.call(r)=="[object Array]"}},function(e,t,n){t.byteLength=function(p){var m=c(p),v=m[0],y=m[1];return 3*(v+y)/4-y},t.toByteArray=function(p){for(var m,v=c(p),y=v[0],x=v[1],_=new o(3*(y+x)/4-x),w=0,S=x>0?y-4:y,T=0;T>16&255,_[w++]=m>>8&255,_[w++]=255&m;return x===2&&(m=i[p.charCodeAt(T)]<<2|i[p.charCodeAt(T+1)]>>4,_[w++]=255&m),x===1&&(m=i[p.charCodeAt(T)]<<10|i[p.charCodeAt(T+1)]<<4|i[p.charCodeAt(T+2)]>>2,_[w++]=m>>8&255,_[w++]=255&m),_},t.fromByteArray=function(p){for(var m,v=p.length,y=v%3,x=[],_=0,w=v-y;_w?w:_+16383));return y===1?(m=p[v-1],x.push(r[m>>2]+r[m<<4&63]+"==")):y===2&&(m=(p[v-2]<<8)+p[v-1],x.push(r[m>>10]+r[m>>4&63]+r[m<<2&63]+"=")),x.join("")};for(var r=[],i=[],o=typeof Uint8Array<"u"?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,l=s.length;a0)throw new Error("Invalid string. Length must be a multiple of 4");var v=p.indexOf("=");return v===-1&&(v=m),[v,v===m?0:4-v%4]}function f(p){return r[p>>18&63]+r[p>>12&63]+r[p>>6&63]+r[63&p]}function h(p,m,v){for(var y,x=[],_=m;_>1,p=-7,m=i?s-1:0,v=i?-1:1,y=n[r+m];for(m+=v,a=y&(1<<-p)-1,y>>=-p,p+=c;p>0;a=256*a+n[r+m],m+=v,p-=8);for(l=a&(1<<-p)-1,a>>=-p,p+=o;p>0;l=256*l+n[r+m],m+=v,p-=8);if(a===0)a=1-h;else{if(a===f)return l?NaN:1/0*(y?-1:1);l+=Math.pow(2,o),a-=h}return(y?-1:1)*l*Math.pow(2,a-o)},t.write=function(n,r,i,o,s,a){var l,c,f,h=8*a-s-1,p=(1<>1,v=s===23?Math.pow(2,-24)-Math.pow(2,-77):0,y=o?0:a-1,x=o?1:-1,_=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(c=isNaN(r)?1:0,l=p):(l=Math.floor(Math.log(r)/Math.LN2),r*(f=Math.pow(2,-l))<1&&(l--,f*=2),(r+=l+m>=1?v/f:v*Math.pow(2,1-m))*f>=2&&(l++,f/=2),l+m>=p?(c=0,l=p):l+m>=1?(c=(r*f-1)*Math.pow(2,s),l+=m):(c=r*Math.pow(2,m-1)*Math.pow(2,s),l=0));s>=8;n[i+y]=255&c,y+=x,c/=256,s-=8);for(l=l<0;n[i+y]=255&l,y+=x,l/=256,h-=8);n[i+y-x]|=128*_}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(r){return n.call(r)=="[object Array]"}},function(e,t){},function(e,t,n){var r=n(7).Buffer,i=n(43);function o(s,a,l){s.copy(a,l)}e.exports=function(){function s(){(function(a,l){if(!(a instanceof l))throw new TypeError("Cannot call a class as a function")})(this,s),this.head=null,this.tail=null,this.length=0}return s.prototype.push=function(a){var l={data:a,next:null};this.length>0?this.tail.next=l:this.head=l,this.tail=l,++this.length},s.prototype.unshift=function(a){var l={data:a,next:this.head};this.length===0&&(this.tail=l),this.head=l,++this.length},s.prototype.shift=function(){if(this.length!==0){var a=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,a}},s.prototype.clear=function(){this.head=this.tail=null,this.length=0},s.prototype.join=function(a){if(this.length===0)return"";for(var l=this.head,c=""+l.data;l=l.next;)c+=a+l.data;return c},s.prototype.concat=function(a){if(this.length===0)return r.alloc(0);if(this.length===1)return this.head.data;for(var l=r.allocUnsafe(a>>>0),c=this.head,f=0;c;)o(c.data,l,f),f+=c.data.length,c=c.next;return l},s}(),i&&i.inspect&&i.inspect.custom&&(e.exports.prototype[i.inspect.custom]=function(){var s=i.inspect({length:this.length});return this.constructor.name+" "+s})},function(e,t){},function(e,t,n){(function(r){function i(o){try{if(!r.localStorage)return!1}catch{return!1}var s=r.localStorage[o];return s!=null&&String(s).toLowerCase()==="true"}e.exports=function(o,s){if(i("noDeprecation"))return o;var a=!1;return function(){if(!a){if(i("throwDeprecation"))throw new Error(s);i("traceDeprecation")?console.trace(s):console.warn(s),a=!0}return o.apply(this,arguments)}}}).call(this,n(0))},function(e,t,n){e.exports=o;var r=n(27),i=n(5);function o(s){if(!(this instanceof o))return new o(s);r.call(this,s)}i.inherits=n(2),i.inherits(o,r),o.prototype._transform=function(s,a,l){l(null,s)}},function(e,t,n){e.exports=n(14)},function(e,t,n){e.exports=n(1)},function(e,t,n){e.exports=n(13).Transform},function(e,t,n){e.exports=n(13).PassThrough},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.mergeParams=function(r){var i={delimiter:",",ignoreColumns:void 0,includeColumns:void 0,quote:'"',trim:!0,checkType:!1,ignoreEmpty:!1,noheader:!1,headers:void 0,flatKeys:!1,maxRowLength:0,checkColumn:!1,escape:'"',colParser:{},eol:void 0,alwaysSplitAtEOL:!1,output:"json",nullObject:!1,downstreamFormat:"line",needEmitAll:!0};for(var o in r||(r={}),r)r.hasOwnProperty(o)&&(Array.isArray(r[o])?i[o]=[].concat(r[o]):i[o]=r[o]);return i}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.initParseRuntime=function(r){var i=r.parseParam,o={needProcessIgnoreColumn:!1,needProcessIncludeColumn:!1,selectedColumns:void 0,ended:!1,hasError:!1,error:void 0,delimiter:r.parseParam.delimiter,eol:r.parseParam.eol,columnConv:[],headerType:[],headerTitle:[],headerFlag:[],headers:void 0,started:!1,parsedLineNumber:0,columnValueSetter:[]};return i.ignoreColumns&&(o.needProcessIgnoreColumn=!0),i.includeColumns&&(o.needProcessIncludeColumn=!0),o}},function(e,t,n){(function(r){var i=this&&this.__extends||function(){var x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,w){_.__proto__=w}||function(_,w){for(var S in w)w.hasOwnProperty(S)&&(_[S]=w[S])};return function(_,w){function S(){this.constructor=_}x(_,w),_.prototype=w===null?Object.create(w):(S.prototype=w.prototype,new S)}}(),o=this&&this.__importDefault||function(x){return x&&x.__esModule?x:{default:x}};Object.defineProperty(t,"__esModule",{value:!0});var s=n(53),a=o(n(15)),l=n(54),c=o(n(16)),f=n(57),h=n(28),p=n(58),m=o(n(59)),v=o(n(29)),y=function(x){function _(){var w=x!==null&&x.apply(this,arguments)||this;return w.rowSplit=new p.RowSplit(w.converter),w.eolEmitted=!1,w._needEmitEol=void 0,w.headEmitted=!1,w._needEmitHead=void 0,w}return i(_,x),_.prototype.flush=function(){var w=this;if(this.runtime.csvLineBuffer&&this.runtime.csvLineBuffer.length>0){var S=this.runtime.csvLineBuffer;return this.runtime.csvLineBuffer=void 0,this.process(S,!0).then(function(T){return w.runtime.csvLineBuffer&&w.runtime.csvLineBuffer.length>0?a.default.reject(v.default.unclosed_quote(w.runtime.parsedLineNumber,w.runtime.csvLineBuffer.toString())):a.default.resolve(T)})}return a.default.resolve([])},_.prototype.destroy=function(){return a.default.resolve()},Object.defineProperty(_.prototype,"needEmitEol",{get:function(){return this._needEmitEol===void 0&&(this._needEmitEol=this.converter.listeners("eol").length>0),this._needEmitEol},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"needEmitHead",{get:function(){return this._needEmitHead===void 0&&(this._needEmitHead=this.converter.listeners("header").length>0),this._needEmitHead},enumerable:!0,configurable:!0}),_.prototype.process=function(w,S){var T,P=this;return S===void 0&&(S=!1),T=S?w.toString():l.prepareData(w,this.converter.parseRuntime),a.default.resolve().then(function(){return P.runtime.preRawDataHook?P.runtime.preRawDataHook(T):T}).then(function(k){return k&&k.length>0?P.processCSV(k,S):a.default.resolve([])})},_.prototype.processCSV=function(w,S){var T=this,P=this.params,k=this.runtime;k.eol||c.default(w,k),this.needEmitEol&&!this.eolEmitted&&k.eol&&(this.converter.emit("eol",k.eol),this.eolEmitted=!0),P.ignoreEmpty&&!k.started&&(w=h.trimLeft(w));var N=f.stringToLines(w,k);return S?(N.lines.push(N.partial),N.partial=""):this.prependLeftBuf(h.bufFromString(N.partial)),N.lines.length>0?(k.preFileLineHook?this.runPreLineHook(N.lines):a.default.resolve(N.lines)).then(function(D){return k.started||T.runtime.headers?T.processCSVBody(D):T.processDataWithHead(D)}):a.default.resolve([])},_.prototype.processDataWithHead=function(w){if(this.params.noheader)this.params.headers?this.runtime.headers=this.params.headers:this.runtime.headers=[];else{for(var S="",T=[];w.length;){var P=S+w.shift(),k=this.rowSplit.parse(P);if(k.closed){T=k.cells,S="";break}S=P+c.default(P,this.runtime)}if(this.prependLeftBuf(h.bufFromString(S)),T.length===0)return[];this.params.headers?this.runtime.headers=this.params.headers:this.runtime.headers=T}return(this.runtime.needProcessIgnoreColumn||this.runtime.needProcessIncludeColumn)&&this.filterHeader(),this.needEmitHead&&!this.headEmitted&&(this.converter.emit("header",this.runtime.headers),this.headEmitted=!0),this.processCSVBody(w)},_.prototype.filterHeader=function(){if(this.runtime.selectedColumns=[],this.runtime.headers){for(var w=this.runtime.headers,S=0;S=N.length)A();else if(D.preFileLineHook){var W=N[z],Y=D.preFileLineHook(W,D.parsedLineNumber+z);if(z++,Y&&Y.then)Y.then(function(J){N[z-1]=J,k(N,D,z,A)});else{for(N[z-1]=Y;z0?r.concat([h.csvLineBuffer,f]):f}(s,a);a.csvLineBuffer=void 0;var c=function(f,h){var p=f.length-1;if(128&f[p]){for(;(192&f[p])==128;)p--;p--}return p!=f.length-1?(h.csvLineBuffer=f.slice(p+1),f.slice(0,p+1)):f}(l,a).toString("utf8");return a.started===!1?o.default(c):c}}).call(this,n(3).Buffer)},function(e,t,n){(function(r){var i=n(56);e.exports=function(o){return typeof o=="string"&&o.charCodeAt(0)===65279?o.slice(1):r.isBuffer(o)&&i(o)&&o[0]===239&&o[1]===187&&o[2]===191?o.slice(3):o}}).call(this,n(3).Buffer)},function(e,t){e.exports=function(n){for(var r=0;r0),this._needEmitDelimiter},enumerable:!0,configurable:!0}),l.prototype.parse=function(c){if(c.length===0||this.conv.parseParam.ignoreEmpty&&c.trim().length===0)return{cells:[],closed:!0};var f=this.quote,h=this.trim;this.escape,(this.conv.parseRuntime.delimiter instanceof Array||this.conv.parseRuntime.delimiter.toLowerCase()==="auto")&&(this.conv.parseRuntime.delimiter=this.getDelimiter(c)),this.needEmitDelimiter&&!this.delimiterEmitted&&(this.conv.emit("delimiter",this.conv.parseRuntime.delimiter),this.delimiterEmitted=!0);var p=this.conv.parseRuntime.delimiter,m=c.split(p);if(f==="off"){if(h)for(var v=0;vh&&(p=m,h=v)}),p},l.prototype.isQuoteOpen=function(c){var f=this.quote,h=this.escape;return c[0]===f&&(c[1]!==f||c[1]===h&&(c[2]===f||c.length===2))},l.prototype.isQuoteClose=function(c){var f=this.quote,h=this.escape;this.conv.parseParam.trim&&(c=o.trimRight(c));for(var p=0,m=c.length-1;c[m]===f||c[m]===h;)m--,p++;return p%2!=0},l.prototype.escapeQuote=function(c){var f="es|"+this.quote+"|"+this.escape;this.cachedRegExp[f]===void 0&&(this.cachedRegExp[f]=new RegExp("\\"+this.escape+"\\"+this.quote,"g"));var h=this.cachedRegExp[f];return c.replace(h,this.quote)},l.prototype.parseMultiLines=function(c){for(var f=[],h="";c.length;){var p=h+c.shift(),m=this.parse(p);m.cells.length===0&&this.conv.parseParam.ignoreEmpty||(m.closed||this.conv.parseParam.alwaysSplitAtEOL?(this.conv.parseRuntime.selectedColumns?f.push(o.filterArray(m.cells,this.conv.parseRuntime.selectedColumns)):f.push(m.cells),h=""):h=p+(i.default(p,this.conv.parseRuntime)||` -`))}return{rowsCells:f,partial:h}},l}();t.RowSplit=a},function(e,t,n){var r=this&&this.__importDefault||function(_){return _&&_.__esModule?_:{default:_}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(29)),o=r(n(60)),s=/^[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?$/;function a(_,w,S){if(w.parseParam.checkColumn&&w.parseRuntime.headers&&_.length!==w.parseRuntime.headers.length)throw i.default.column_mismatched(w.parseRuntime.parsedLineNumber+S);return function(T,P,k){for(var N=!1,D={},z=0,A=T.length;z-1){for(var k=w.split("."),N=!0;k.length>0;)if(k.shift().length===0){N=!1;break}!N||T.parseParam.colParser[w]&&T.parseParam.colParser[w].flat?T.parseRuntime.columnValueSetter[P]=h:T.parseRuntime.columnValueSetter[P]=p}else T.parseRuntime.columnValueSetter[P]=h;T.parseParam.nullObject===!0&&S==="null"&&(S=null),T.parseRuntime.columnValueSetter[P](_,w,S)}function h(_,w,S){_[w]=S}function p(_,w,S){o.default(_,w,S)}function m(_,w,S,T){return T.parseRuntime.headerType[S]?T.parseRuntime.headerType[S]:w.indexOf("number#!")>-1?T.parseRuntime.headerType[S]=v:w.indexOf("string#!")>-1?T.parseRuntime.headerType[S]=y:T.parseParam.checkType?T.parseRuntime.headerType[S]=x:T.parseRuntime.headerType[S]=y}function v(_){var w=parseFloat(_);return isNaN(w)?_:w}function y(_){return _.toString()}function x(_){var w=_.trim();return w===""?y(_):s.test(w)?v(_):w.length===5&&w.toLowerCase()==="false"||w.length===4&&w.toLowerCase()==="true"?function(S){var T=S.trim();return T.length!==5||T.toLowerCase()!=="false"}(_):w[0]==="{"&&w[w.length-1]==="}"||w[0]==="["&&w[w.length-1]==="]"?function(S){try{return JSON.parse(S)}catch{return S}}(_):y(_)}},function(e,t,n){var r=n(61);e.exports=function(i,o,s){return i==null?i:r(i,o,s)}},function(e,t,n){var r=n(62),i=n(74),o=n(103),s=n(20),a=n(104);e.exports=function(l,c,f,h){if(!s(l))return l;for(var p=-1,m=(c=i(c,l)).length,v=m-1,y=l;y!=null&&++p-1}},function(e,t,n){var r=n(9);e.exports=function(i,o){var s=this.__data__,a=r(s,i);return a<0?(++this.size,s.push([i,o])):s[a][1]=o,this}},function(e,t,n){var r=n(17)(n(19),"Map");e.exports=r},function(e,t,n){var r=n(10);e.exports=function(i){var o=r(this,i).delete(i);return this.size-=o?1:0,o}},function(e,t){e.exports=function(n){var r=typeof n;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?n!=="__proto__":n===null}},function(e,t,n){var r=n(10);e.exports=function(i){return r(this,i).get(i)}},function(e,t,n){var r=n(10);e.exports=function(i){return r(this,i).has(i)}},function(e,t,n){var r=n(10);e.exports=function(i,o){var s=r(this,i),a=s.size;return s.set(i,o),this.size+=s.size==a?0:1,this}},function(e,t,n){var r=n(101);e.exports=function(i){return i==null?"":r(i)}},function(e,t,n){var r=n(18),i=n(102),o=n(21),s=n(22),a=r?r.prototype:void 0,l=a?a.toString:void 0;e.exports=function c(f){if(typeof f=="string")return f;if(o(f))return i(f,c)+"";if(s(f))return l?l.call(f):"";var h=f+"";return h=="0"&&1/f==-1/0?"-0":h}},function(e,t){e.exports=function(n,r){for(var i=-1,o=n==null?0:n.length,s=Array(o);++i-1&&r%1==0&&r0||this.converter.listeners("readable").length>0),this._needPushDownstream},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"needEmitAll",{get:function(){return!!this.converter.parseRuntime.then&&this.converter.parseParam.needEmitAll},enumerable:!0,configurable:!0}),l.prototype.processResult=function(c){var f=this,h=this.converter.parseRuntime.parsedLineNumber;return this.needPushDownstream&&this.converter.parseParam.downstreamFormat==="array"&&h===0&&a(this.converter,"["+o.EOL),new i.default(function(p,m){f.needEmitLine?function v(y,x,_,w,S){if(_>=y.length)S();else if(x.parseRuntime.subscribe&&x.parseRuntime.subscribe.onNext){var T=x.parseRuntime.subscribe.onNext,P=y[_],k=T(P,x.parseRuntime.parsedLineNumber+_);if(_++,k&&k.then)k.then(function(){(function(D,z,A,W,Y,J,Z){Y&&a(A,Z),v(D,A,W,Y,J)})(y,0,x,_,w,S,P)},S);else{for(w&&a(x,P);_new Promise(t=>{$_e().fromString(e).then(t)}),z_e=new I_e,U_e=e=>z_e.parse(e),V_e=6,dL="0123456789ABCDEF",H_e=128,{floor:W_e,random:Y_e,sqrt:q_e,round:G_e}=Math,Z_e=()=>`#${mE(V_e,()=>dL[W_e(Y_e()*dL.length)]).join("")}`,hL=e=>e.toLowerCase().trim(),K_e=e=>(e.match(/../g)??[]).map(t=>parseInt(t,16)||0),X_e=(e=0,t=0,n=0)=>G_e(q_e(.299*e**2+.587*t**2+.114*n**2));class Q_e{constructor(t){xe(this,"colors");xe(this,"lights");xe(this,"getColorForKey",t=>{const n=hL(t),r=this.colors[n];return r||this.setColorForKey(n,Z_e())});xe(this,"setColorForKey",(t,n)=>{const r=hL(t);return this.colors[r]=n,this.storage.set("colors",this.colors),n});xe(this,"isColorLightForKey",t=>{const n=this.getColorForKey(t).substring(1);if($o(this.lights[n])){const r=K_e(n);this.lights[n]=X_e(...r)>=H_e}return this.lights[n]});this.storage=t,this.colors=this.storage.get("colors")??{},this.lights={}}}const J_e="shlink",pL=e=>`${J_e}.${e}`;class e0e{constructor(t){xe(this,"get",t=>{const n=this.localStorage.getItem(pL(t));return n?JSON.parse(n):void 0});xe(this,"set",(t,n)=>this.localStorage.setItem(pL(t),JSON.stringify(n)));this.localStorage=t}}const t0e=e=>{e.constant("localStorage",window.localStorage),e.service("Storage",e0e,"localStorage"),e.service("ColorGenerator",Q_e,"Storage"),e.constant("csvToJson",B_e),e.constant("jsonToCsv",U_e),e.constant("setTimeout",window.setTimeout),e.constant("clearTimeout",window.clearTimeout),e.serviceFactory("useTimeoutToggle",Poe,"setTimeout","clearTimeout")},JE=e=>e.visitedUrl!==void 0,n0e=e=>e.visitedUrl!==void 0,r0e=Dt(oZ(e=>JE(e.visit)?"orphanVisits":"nonOrphanVisits"),e=>({orphanVisits:[],nonOrphanVisits:[],...e})),jp=(e,t)=>Tj(at(t),e),dh=({page:e,itemsPerPage:t,filter:n,dateRange:r})=>{const i=((r==null?void 0:r.startDate)&&Ys(r==null?void 0:r.startDate))??void 0,o=((r==null?void 0:r.endDate)&&Ys(r==null?void 0:r.endDate))??void 0,s=(n==null?void 0:n.excludeBots)||void 0;return{page:e,itemsPerPage:t,startDate:i,endDate:o,excludeBots:s}},hh=({visits:e,goBack:t,shortUrl:n,children:r,title:i})=>g.jsx("header",{children:g.jsxs(Sr,{body:!0,children:[g.jsxs("h2",{className:"d-flex justify-content-between align-items-center mb-0",children:[g.jsx(ht,{color:"link",size:"lg",className:"p-0 me-3",onClick:t,children:g.jsx(je,{icon:tI})}),g.jsx("span",{className:"text-center d-none d-sm-block",children:g.jsx("small",{children:i})}),g.jsxs("span",{className:"badge badge-main ms-3",children:["Visits:"," ",g.jsx(X5,{visitsCount:e.length,shortUrl:n})]})]}),g.jsx("h3",{className:"text-center d-block d-sm-none mb-0 mt-3",children:g.jsx("small",{children:i})}),r&&g.jsx("div",{className:"mt-md-2",children:r})]})});const F8=({title:e,footer:t,children:n})=>g.jsxs(Sr,{role:"document",children:[g.jsx(nl,{className:"chart-card__header",children:typeof e=="function"?e():e}),g.jsx(tl,{children:n}),t&&g.jsx(WC,{className:"chart-card__footer--sticky",children:t})]}),$8="label";function mL(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function i0e(e,t){const n=e.options;n&&t&&Object.assign(n,t)}function B8(e,t){e.labels=t}function z8(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:$8;const r=[];e.datasets=t.map(i=>{const o=e.datasets.find(s=>s[n]===i[n]);return!o||!i.data||r.includes(o)?{...i}:(r.push(o),Object.assign(o,i),o)})}function o0e(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$8;const n={labels:[],datasets:[]};return B8(n,e.labels),z8(n,e.datasets,t),n}function U8(e,t){return e.getElementsAtEventForMode(t.nativeEvent,"nearest",{intersect:!0},!1)}function s0e(e,t){const{height:n=150,width:r=300,redraw:i=!1,datasetIdKey:o,type:s,data:a,options:l,plugins:c=[],fallbackContent:f,updateMode:h,...p}=e,m=V.useRef(null),v=V.useRef(),y=()=>{m.current&&(v.current=new cy(m.current,{type:s,data:o0e(a,o),options:l&&{...l},plugins:c}),mL(t,v.current))},x=()=>{mL(t,null),v.current&&(v.current.destroy(),v.current=null)};return V.useEffect(()=>{!i&&v.current&&l&&i0e(v.current,l)},[i,l]),V.useEffect(()=>{!i&&v.current&&B8(v.current.config.data,a.labels)},[i,a.labels]),V.useEffect(()=>{!i&&v.current&&a.datasets&&z8(v.current.config.data,a.datasets,o)},[i,a.datasets]),V.useEffect(()=>{v.current&&(i?(x(),setTimeout(y)):v.current.update(h))},[i,l,a.labels,a.datasets,h]),V.useEffect(()=>{v.current&&(x(),setTimeout(y))},[s]),V.useEffect(()=>(y(),()=>x()),[]),U.createElement("canvas",Object.assign({ref:m,role:"img",height:n,width:r},p),f)}const a0e=V.forwardRef(s0e);function eT(e,t){return cy.register(t),V.forwardRef((n,r)=>U.createElement(a0e,Object.assign({},n,{ref:r,type:e})))}const l0e=eT("line",af),c0e=eT("bar",sf),u0e=eT("doughnut",us),V8=({native:e},[t])=>{if(!(e!=null&&e.target))return;const n=e.target;n.style.cursor=t?"pointer":"default"},H8=({dataset:e,raw:t})=>`${e.label}: ${_n(`${t}`)}`,f0e=({label:e,raw:t})=>`${e}: ${_n(`${t}`)}`;const d0e=({chart:e})=>{const{config:t}=e,{labels:n=[],datasets:r=[]}=t.data??{},[{backgroundColor:i}]=r,{defaultColor:o}=t.options??{};return g.jsx("ul",{className:"doughnut-chart-legend",children:n.map((s,a)=>g.jsxs("li",{className:"doughnut-chart-legend__item d-flex",children:[g.jsx("div",{className:"doughnut-chart-legend__item-color",style:{backgroundColor:i[a]??o}}),g.jsx("small",{className:"doughnut-chart-legend__item-text flex-fill",children:s})]},s))})},h0e=e=>[{data:e,backgroundColor:["#97BBCD","#F7464A","#46BFBD","#FDB45C","#949FB1","#57A773","#414066","#08B2E3","#B6C454","#DCDCDC","#463730"],borderColor:$oe()?Foe:Ioe,borderWidth:2}],p0e=(e,t)=>({labels:e,datasets:h0e(t)}),m0e=V.memo(({stats:e})=>{const[t,n]=V.useState(),r=eo(e),i=Kc(e),o={plugins:{legend:{display:!1},tooltip:{intersect:!0,callbacks:{label:f0e}}}},s=p0e(r,i);return g.jsxs("div",{className:"row",children:[g.jsx("div",{className:"col-sm-12 col-md-7",children:g.jsx(u0e,{height:300,data:s,options:o,ref:a=>{n(a??void 0)}})}),g.jsx("div",{className:"col-sm-12 col-md-5",children:t&&g.jsx(d0e,{chart:t})})]})}),gL=({title:e,stats:t})=>g.jsx(F8,{title:e,children:g.jsx(m0e,{stats:t})}),g0e={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},W8={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},Jt={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},sr={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},Jo={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"};class we{static getFirstMatch(t,n){const r=n.match(t);return r&&r.length>0&&r[1]||""}static getSecondMatch(t,n){const r=n.match(t);return r&&r.length>1&&r[2]||""}static matchAndReturnConst(t,n,r){if(t.test(n))return r}static getWindowsVersionName(t){switch(t){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}static getMacOSVersionName(t){const n=t.split(".").splice(0,2).map(r=>parseInt(r,10)||0);if(n.push(0),n[0]===10)switch(n[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}}static getAndroidVersionName(t){const n=t.split(".").splice(0,2).map(r=>parseInt(r,10)||0);if(n.push(0),!(n[0]===1&&n[1]<5)){if(n[0]===1&&n[1]<6)return"Cupcake";if(n[0]===1&&n[1]>=6)return"Donut";if(n[0]===2&&n[1]<2)return"Eclair";if(n[0]===2&&n[1]===2)return"Froyo";if(n[0]===2&&n[1]>2)return"Gingerbread";if(n[0]===3)return"Honeycomb";if(n[0]===4&&n[1]<1)return"Ice Cream Sandwich";if(n[0]===4&&n[1]<4)return"Jelly Bean";if(n[0]===4&&n[1]>=4)return"KitKat";if(n[0]===5)return"Lollipop";if(n[0]===6)return"Marshmallow";if(n[0]===7)return"Nougat";if(n[0]===8)return"Oreo";if(n[0]===9)return"Pie"}}static getVersionPrecision(t){return t.split(".").length}static compareVersions(t,n,r=!1){const i=we.getVersionPrecision(t),o=we.getVersionPrecision(n);let s=Math.max(i,o),a=0;const l=we.map([t,n],c=>{const f=s-we.getVersionPrecision(c),h=c+new Array(f+1).join(".0");return we.map(h.split("."),p=>new Array(20-p.length).join("0")+p).reverse()});for(r&&(a=s-Math.min(i,o)),s-=1;s>=a;){if(l[0][s]>l[1][s])return 1;if(l[0][s]===l[1][s]){if(s===a)return 0;s-=1}else if(l[0][s]{r[l]=s[l]})}return t}static getBrowserAlias(t){return g0e[t]}static getBrowserTypeByAlias(t){return W8[t]||""}}const xt=/version\/(\d+(\.?_?\d+)+)/i,v0e=[{test:[/googlebot/i],describe(e){const t={name:"Googlebot"},n=we.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||we.getFirstMatch(xt,e);return n&&(t.version=n),t}},{test:[/opera/i],describe(e){const t={name:"Opera"},n=we.getFirstMatch(xt,e)||we.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe(e){const t={name:"Opera"},n=we.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||we.getFirstMatch(xt,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe(e){const t={name:"Samsung Internet for Android"},n=we.getFirstMatch(xt,e)||we.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe(e){const t={name:"NAVER Whale Browser"},n=we.getFirstMatch(xt,e)||we.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe(e){const t={name:"MZ Browser"},n=we.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||we.getFirstMatch(xt,e);return n&&(t.version=n),t}},{test:[/focus/i],describe(e){const t={name:"Focus"},n=we.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||we.getFirstMatch(xt,e);return n&&(t.version=n),t}},{test:[/swing/i],describe(e){const t={name:"Swing"},n=we.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||we.getFirstMatch(xt,e);return n&&(t.version=n),t}},{test:[/coast/i],describe(e){const t={name:"Opera Coast"},n=we.getFirstMatch(xt,e)||we.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(e){const t={name:"Opera Touch"},n=we.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||we.getFirstMatch(xt,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe(e){const t={name:"Yandex Browser"},n=we.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||we.getFirstMatch(xt,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe(e){const t={name:"UC Browser"},n=we.getFirstMatch(xt,e)||we.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe(e){const t={name:"Maxthon"},n=we.getFirstMatch(xt,e)||we.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe(e){const t={name:"Epiphany"},n=we.getFirstMatch(xt,e)||we.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe(e){const t={name:"Puffin"},n=we.getFirstMatch(xt,e)||we.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe(e){const t={name:"Sleipnir"},n=we.getFirstMatch(xt,e)||we.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe(e){const t={name:"K-Meleon"},n=we.getFirstMatch(xt,e)||we.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe(e){const t={name:"WeChat"},n=we.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||we.getFirstMatch(xt,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe(e){const t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=we.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||we.getFirstMatch(xt,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe(e){const t={name:"Internet Explorer"},n=we.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe(e){const t={name:"Microsoft Edge"},n=we.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe(e){const t={name:"Microsoft Edge"},n=we.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe(e){const t={name:"Vivaldi"},n=we.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe(e){const t={name:"SeaMonkey"},n=we.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe(e){const t={name:"Sailfish"},n=we.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe(e){const t={name:"Amazon Silk"},n=we.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe(e){const t={name:"PhantomJS"},n=we.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe(e){const t={name:"SlimerJS"},n=we.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){const t={name:"BlackBerry"},n=we.getFirstMatch(xt,e)||we.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe(e){const t={name:"WebOS Browser"},n=we.getFirstMatch(xt,e)||we.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe(e){const t={name:"Bada"},n=we.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe(e){const t={name:"Tizen"},n=we.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||we.getFirstMatch(xt,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe(e){const t={name:"QupZilla"},n=we.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||we.getFirstMatch(xt,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe(e){const t={name:"Firefox"},n=we.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe(e){const t={name:"Electron"},n=we.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe(e){const t={name:"Miui"},n=we.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe(e){const t={name:"Chromium"},n=we.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||we.getFirstMatch(xt,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe(e){const t={name:"Chrome"},n=we.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe(e){const t={name:"Google Search"},n=we.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){const t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){const t={name:"Android Browser"},n=we.getFirstMatch(xt,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe(e){const t={name:"PlayStation 4"},n=we.getFirstMatch(xt,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe(e){const t={name:"Safari"},n=we.getFirstMatch(xt,e);return n&&(t.version=n),t}},{test:[/.*/i],describe(e){const t=/^(.*)\/(.*) /,n=/^(.*)\/(.*)[ \t]\((.*)/,i=e.search("\\(")!==-1?n:t;return{name:we.getFirstMatch(i,e),version:we.getSecondMatch(i,e)}}}],y0e=[{test:[/Roku\/DVP/],describe(e){const t=we.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:sr.Roku,version:t}}},{test:[/windows phone/i],describe(e){const t=we.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:sr.WindowsPhone,version:t}}},{test:[/windows /i],describe(e){const t=we.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=we.getWindowsVersionName(t);return{name:sr.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){const t={name:sr.iOS},n=we.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe(e){const t=we.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=we.getMacOSVersionName(t),r={name:sr.MacOS,version:t};return n&&(r.versionName=n),r}},{test:[/(ipod|iphone|ipad)/i],describe(e){const t=we.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:sr.iOS,version:t}}},{test(e){const t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){const t=we.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=we.getAndroidVersionName(t),r={name:sr.Android,version:t};return n&&(r.versionName=n),r}},{test:[/(web|hpw)[o0]s/i],describe(e){const t=we.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:sr.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){const t=we.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||we.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||we.getFirstMatch(/\bbb(\d+)/i,e);return{name:sr.BlackBerry,version:t}}},{test:[/bada/i],describe(e){const t=we.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:sr.Bada,version:t}}},{test:[/tizen/i],describe(e){const t=we.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:sr.Tizen,version:t}}},{test:[/linux/i],describe(){return{name:sr.Linux}}},{test:[/CrOS/],describe(){return{name:sr.ChromeOS}}},{test:[/PlayStation 4/],describe(e){const t=we.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:sr.PlayStation4,version:t}}}],_0e=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(e){const t=we.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:Jt.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:Jt.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:Jt.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:Jt.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:Jt.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:Jt.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:Jt.tablet}}},{test(e){const t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe(e){const t=we.getFirstMatch(/(ipod|iphone)/i,e);return{type:Jt.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:Jt.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:Jt.mobile}}},{test(e){return e.getBrowserName(!0)==="blackberry"},describe(){return{type:Jt.mobile,vendor:"BlackBerry"}}},{test(e){return e.getBrowserName(!0)==="bada"},describe(){return{type:Jt.mobile}}},{test(e){return e.getBrowserName()==="windows phone"},describe(){return{type:Jt.mobile,vendor:"Microsoft"}}},{test(e){const t=Number(String(e.getOSVersion()).split(".")[0]);return e.getOSName(!0)==="android"&&t>=3},describe(){return{type:Jt.tablet}}},{test(e){return e.getOSName(!0)==="android"},describe(){return{type:Jt.mobile}}},{test(e){return e.getOSName(!0)==="macos"},describe(){return{type:Jt.desktop,vendor:"Apple"}}},{test(e){return e.getOSName(!0)==="windows"},describe(){return{type:Jt.desktop}}},{test(e){return e.getOSName(!0)==="linux"},describe(){return{type:Jt.desktop}}},{test(e){return e.getOSName(!0)==="playstation 4"},describe(){return{type:Jt.tv}}},{test(e){return e.getOSName(!0)==="roku"},describe(){return{type:Jt.tv}}}],b0e=[{test(e){return e.getBrowserName(!0)==="microsoft edge"},describe(e){if(/\sedg\//i.test(e))return{name:Jo.Blink};const n=we.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:Jo.EdgeHTML,version:n}}},{test:[/trident/i],describe(e){const t={name:Jo.Trident},n=we.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){return e.test(/presto/i)},describe(e){const t={name:Jo.Presto},n=we.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){const t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe(e){const t={name:Jo.Gecko},n=we.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:Jo.Blink}}},{test:[/(apple)?webkit/i],describe(e){const t={name:Jo.WebKit},n=we.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}];class vL{constructor(t,n=!1){if(t==null||t==="")throw new Error("UserAgent parameter can't be empty");this._ua=t,this.parsedResult={},n!==!0&&this.parse()}getUA(){return this._ua}test(t){return t.test(this._ua)}parseBrowser(){this.parsedResult.browser={};const t=we.find(v0e,n=>{if(typeof n.test=="function")return n.test(this);if(n.test instanceof Array)return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.browser=t.describe(this.getUA())),this.parsedResult.browser}getBrowser(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}getBrowserName(t){return t?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""}getBrowserVersion(){return this.getBrowser().version}getOS(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()}parseOS(){this.parsedResult.os={};const t=we.find(y0e,n=>{if(typeof n.test=="function")return n.test(this);if(n.test instanceof Array)return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.os=t.describe(this.getUA())),this.parsedResult.os}getOSName(t){const{name:n}=this.getOS();return t?String(n).toLowerCase()||"":n||""}getOSVersion(){return this.getOS().version}getPlatform(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}getPlatformType(t=!1){const{type:n}=this.getPlatform();return t?String(n).toLowerCase()||"":n||""}parsePlatform(){this.parsedResult.platform={};const t=we.find(_0e,n=>{if(typeof n.test=="function")return n.test(this);if(n.test instanceof Array)return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.platform=t.describe(this.getUA())),this.parsedResult.platform}getEngine(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}getEngineName(t){return t?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}parseEngine(){this.parsedResult.engine={};const t=we.find(b0e,n=>{if(typeof n.test=="function")return n.test(this);if(n.test instanceof Array)return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.engine=t.describe(this.getUA())),this.parsedResult.engine}parse(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}getResult(){return we.assign({},this.parsedResult)}satisfies(t){const n={};let r=0;const i={};let o=0;if(Object.keys(t).forEach(a=>{const l=t[a];typeof l=="string"?(i[a]=l,o+=1):typeof l=="object"&&(n[a]=l,r+=1)}),r>0){const a=Object.keys(n),l=we.find(a,f=>this.isOS(f));if(l){const f=this.satisfies(n[l]);if(f!==void 0)return f}const c=we.find(a,f=>this.isPlatform(f));if(c){const f=this.satisfies(n[c]);if(f!==void 0)return f}}if(o>0){const a=Object.keys(i),l=we.find(a,c=>this.isBrowser(c,!0));if(l!==void 0)return this.compareVersion(i[l])}}isBrowser(t,n=!1){const r=this.getBrowserName().toLowerCase();let i=t.toLowerCase();const o=we.getBrowserTypeByAlias(i);return n&&o&&(i=o.toLowerCase()),i===r}compareVersion(t){let n=[0],r=t,i=!1;const o=this.getBrowserVersion();if(typeof o=="string")return t[0]===">"||t[0]==="<"?(r=t.substr(1),t[1]==="="?(i=!0,r=t.substr(2)):n=[],t[0]===">"?n.push(1):n.push(-1)):t[0]==="="?r=t.substr(1):t[0]==="~"&&(i=!0,r=t.substr(1)),n.indexOf(we.compareVersions(o,r,i))>-1}isOS(t){return this.getOSName(!0)===String(t).toLowerCase()}isPlatform(t){return this.getPlatformType(!0)===String(t).toLowerCase()}isEngine(t){return this.getEngineName(!0)===String(t).toLowerCase()}is(t,n=!1){return this.isBrowser(t,n)||this.isOS(t)||this.isPlatform(t)}some(t=[]){return t.some(n=>this.is(n))}}/*! - * Bowser - a browser detector - * https://github.com/lancedikson/bowser - * MIT License | (c) Dustin Diaz 2012-2015 - * MIT License | (c) Denis Demchenko 2015-2019 - */class w0e{static getParser(t,n=!1){if(typeof t!="string")throw new Error("UserAgent should be a string");return new vL(t,n)}static parse(t){return new vL(t).getResult()}static get BROWSER_MAP(){return W8}static get ENGINE_MAP(){return Jo}static get OS_MAP(){return sr}static get PLATFORMS_MAP(){return Jt}}const Ip="Others",x0e=["Android Browser","Chrome","Chromium","Firefox","Internet Explorer","Microsoft Edge","Opera","Safari","Samsung Internet for Android","Vivaldi","WeChat"],S0e=e=>{if(!vi(e))return{browser:Ip,os:Ip};const{browser:{name:t},os:{name:n}}=w0e.parse(e);return{os:n??Ip,browser:t&&x0e.includes(t)?t:Ip}},C0e=e=>{var t;return vi(e)?((t=e.split("/")[e.includes("://")?2:0])==null?void 0:t.split(":")[0])??"":"Direct"},tT=(e,t)=>Object.values({...Rj(t,t.map(()=>0)),...e});const yL={monthly:"Month",weekly:"Week",daily:"Day",hourly:"Hour"},E0e={hourly:e=>({hours:e}),daily:e=>({days:e}),weekly:e=>({weeks:e}),monthly:e=>({months:e})},T0e={hourly:Hae,daily:SE,weekly:Gae,monthly:gv},nT={hourly:e=>yo(e,"yyyy-MM-dd HH:00"),daily:e=>yo(e,Pf),weekly(e){const t=yo(wd(e),Pf),n=yo(Qae(e),Pf);return`${t} - ${n}`},monthly:e=>yo(e,"yyyy-MM")},O0e=e=>{const t=new Date,n=Ao(e);return XS([[()=>SE(t,n)<=2,H0("hourly")],[()=>gv(t,n)<=1,H0("daily")],[()=>gv(t,n)<=6,H0("weekly")]])()??"monthly"},_L=(e,t)=>Tj(n=>nT[e](Ao(n.date)),t),P0e=(e,t)=>t.reduce((n,r)=>{const i=nT[e](Ao(r.date));return n[i]=n[i]??[],n[i].push(r),n},{}),k0e=(e,t)=>{const n=T0e[e],r=nT[e],i=Ao(t[0].date),o=Ao(t[t.length-1].date),s=n(i,o),a=E0e[e];return[r(o),...mE(s,l=>r(Lae(o,a(l))))]},M0e=(e,t,n,r)=>{if(r)return[Object.keys(t),Object.values(t)];const i=k0e(n,e);return[i,tT(t,i)]},bL=(e,t,n)=>({label:t,data:e,fill:!1,tension:.2,borderColor:n,backgroundColor:n});let V1=null;const R0e=(e,t,[n],r)=>{if(!r||!n)return;const{index:i}=n;V1===e[i]?(r([]),V1=null):(r(e[i]&&t[e[i]]?t[e[i]]:[]),V1=e[i]??null)},N0e=({title:e,visits:t,highlightedVisits:n,highlightedLabel:r="Selected",setSelectedVisits:i})=>{const[o,s]=V.useState(t.length>0?O0e(t[t.length-1].date):"monthly"),[a,l]=hn(!0),c=V.useRef(null),f=V.useRef(null),h=V.useMemo(()=>P0e(o,t),[o,t]),p=V.useMemo(()=>_L(o,rw(t)),[o,t]),[m,v]=V.useMemo(()=>M0e(t,p,o,a),[t,o,a]),y=V.useMemo(()=>tT(_L(o,rw(n)),m),[n,o,m]),x=()=>{const T=bL(v,"Visits",oE);if(n.length===0)return[T];const P=bL(y,r,P6);return[T,P]},_=()=>({labels:m,datasets:x()}),w={maintainAspectRatio:!1,plugins:{legend:{display:!1},tooltip:{intersect:!1,axis:"x",callbacks:{label:H8}}},scales:{y:{beginAtZero:!0,ticks:{precision:0,callback:_n}},x:{title:{display:!0,text:yL[o]}}},onHover:V8},S=T=>g.jsx(l0e,{ref:T,data:_(),options:w,onClick:P=>R0e(m,h,U8(T.current,P),i)});return g.jsxs(Sr,{children:[g.jsxs(nl,{role:"heading",children:[e,g.jsx("div",{className:"float-end",children:g.jsxs(Jd,{children:[g.jsx(Zd,{caret:!0,color:"link",className:"btn-sm p-0",children:"Group by"}),g.jsx(eu,{end:!0,children:Object.entries(yL).map(([T,P])=>g.jsx(Ue,{active:o===T,onClick:()=>s(T),children:P},T))})]})}),g.jsx("div",{className:"float-end me-2",children:g.jsx(Uc,{checked:a,onChange:l,children:g.jsx("small",{children:"Skip dates with no visits"})})})]}),g.jsxs(tl,{className:"line-chart-card__body",children:[n.length>0&&S(c),n.length===0&&S(f)]})]})},L0e=({toggleClassName:e,ranges:t,value:n,setValue:r})=>g.jsxs(Jd,{children:[g.jsx(Zd,{caret:!0,color:"link",className:e,children:"Paginate"}),g.jsxs(eu,{end:!0,children:[t.map(i=>g.jsxs(Ue,{active:i===n,onClick:()=>r(i),children:[g.jsx("b",{children:i})," items per page"]},i)),g.jsx(Ue,{divider:!0}),g.jsx(Ue,{disabled:n===1/0,onClick:()=>r(1/0),children:g.jsx("i",{children:"Clear pagination"})})]})]}),D0e=e=>e.startsWith("hidden")?"":e,A0e=e=>!!e&&Object.keys(e).length>0,j0e=e=>e.length>20?e.length*10:void 0,I0e=(e,t,n)=>{const r={data:e,label:n?"Non-selected":"Visits",backgroundColor:Aoe,borderColor:oE,borderWidth:2};return t.every(o=>o===0)?[r]:[r,{label:n??"Selected",data:t,backgroundColor:joe,borderColor:P6,borderWidth:2}]},F0e=(e,t,n,r)=>({labels:e,datasets:I0e(t,n,r)}),$0e=(e,[t],n)=>{!n||!t||n(e[t.index])},B0e=({stats:e,highlightedStats:t,highlightedLabel:n,onClick:r,max:i})=>{const o=eo(e).map(D0e),s=Kc(A0e(t)?eo(t).reduce((v,y)=>(v[y]&&(v[y]-=t[y]),v),{...e}):e),a=tT(t??{},o),l=V.useRef(null),c=V.useRef(null),f={plugins:{legend:{display:!1},tooltip:{mode:"y",filter:({label:v})=>v!=="",callbacks:{label:H8}}},scales:{x:{beginAtZero:!0,stacked:!0,max:i,ticks:{precision:0,callback:_n}},y:{stacked:!0}},onHover:V8,indexAxis:"y"},h=F0e(o,s,a,n),p=j0e(o),m=(v,y)=>g.jsx(c0e,{ref:y,data:h,options:f,height:p,onClick:x=>$0e(o,U8(y.current,x),r)},`${p}_${v}`);return g.jsxs(g.Fragment,{children:[t!==void 0&&m("with_stats",l),t===void 0&&m("without_stats",c)]})},z0e=e=>Wg(e)==="String"?PZ(e):e,wL=([e])=>e,xL=([,e])=>e,Fp=({stats:e,highlightedStats:t,title:n,sortingItems:r,extraHeaderContent:i,withPagination:o=!0,...s})=>{const[a,l]=V.useState({}),[c,f]=V.useState(1),[h,p]=V.useState(50),m=(N,D)=>{const z=qg(N),A=a.field?EZ(Dt(a.field===Object.keys(D)[0]?wL:xL,z0e),z):z;return!a.dir||a.dir==="ASC"?A:rw(A)},v=N=>{const D=N[c-1];if(c[`hidden_${A}`,0])]},y=N=>g.jsx(qE,{currentPage:c,pagesCount:N,setCurrentPage:f}),x=(N,D,z)=>{const A=m(N,D),W=A.map(wL),Y=z&&qg({...Rj(W,W.map(()=>0)),...z});if(A.length<=h)return{currentPageStats:Gu(A),currentPageHighlightedStats:Y&&Gu(Y)};const J=ad(h,A),Z=Y&&ad(h,Y);return{currentPageStats:Gu(v(J)),currentPageHighlightedStats:Z&&Gu(v(Z)),pagination:y(J.length),max:Gpe(Math.max(...A.map(xL)))}},{currentPageStats:_,currentPageHighlightedStats:w,pagination:S,max:T}=x(e,r,t&&Object.keys(t).length>0?t:void 0),P=Object.keys(_),k=()=>g.jsxs(g.Fragment,{children:[n,g.jsx("div",{className:"float-end",children:g.jsx(fh,{isButton:!1,right:!0,items:r,order:a,onChange:(N,D)=>{l({field:N,dir:D}),f(1)}})}),o&&Object.keys(e).length>50&&g.jsx("div",{className:"float-end",children:g.jsx(L0e,{toggleClassName:"btn-sm p-0 me-3",ranges:[50,100,200,500],value:h,setValue:N=>{p(N),f(1)}})}),i&&g.jsx("div",{className:"float-end",children:i(S?P:void 0)})]});return g.jsx(F8,{title:k,footer:S,children:g.jsx(B0e,{stats:_,highlightedStats:w,max:T,...s})})},U0e=()=>{const e=Fo(),{search:t}=Pn(),{filtering:n,domain:r}=V.useMemo(Dt(()=>fl(t),({startDate:o,endDate:s,orphanVisitsType:a,excludeBots:l,domain:c})=>({domain:c,filtering:{dateRange:o!=null||s!=null?k5(o,s):void 0,visitsFilter:{orphanVisitsType:a,excludeBots:$o(l)?void 0:l==="true"}}})),[t]);return[n,o=>{const{dateRange:s,visitsFilter:a}=Pj(n,o),{excludeBots:l,orphanVisitsType:c}=a,f={startDate:(s==null?void 0:s.startDate)&&Ys(s.startDate)||"",endDate:(s==null?void 0:s.endDate)&&Ys(s.endDate)||"",excludeBots:l===void 0?void 0:Q6(l),orphanVisitsType:c,domain:r},h=Vd(f),p=Wn(h)?"":`?${h}`;e(p,{replace:!0,relative:"route"})}]};function Y8(e,t){const n=V.useRef(t);V.useEffect(function(){t!==n.current&&e.attributionControl!=null&&(n.current!=null&&e.attributionControl.removeAttribution(n.current),t!=null&&e.attributionControl.addAttribution(t)),n.current=t},[e,t])}const V0e=1;function H0e(e){return Object.freeze({__version:V0e,map:e})}function W0e(e,t){return Object.freeze({...e,...t})}const q8=V.createContext(null),G8=q8.Provider;function Z8(){const e=V.useContext(q8);if(e==null)throw new Error("No context provided: useLeafletContext() can only be used in a descendant of ");return e}function Y0e(e){function t(n,r){const{instance:i,context:o}=e(n).current;return V.useImperativeHandle(r,()=>i),n.children==null?null:U.createElement(G8,{value:o},n.children)}return V.forwardRef(t)}function q0e(e){function t(n,r){const[i,o]=V.useState(!1),{instance:s}=e(n,o).current;V.useImperativeHandle(r,()=>s),V.useEffect(function(){i&&s.update()},[s,i,n.children]);const a=s._contentNode;return a?Id.createPortal(n.children,a):null}return V.forwardRef(t)}function G0e(e){function t(n,r){const{instance:i}=e(n).current;return V.useImperativeHandle(r,()=>i),null}return V.forwardRef(t)}function K8(e,t){const n=V.useRef();V.useEffect(function(){return t!=null&&e.instance.on(t),n.current=t,function(){n.current!=null&&e.instance.off(n.current),n.current=null}},[e,t])}function rT(e,t){const n=e.pane??t.pane;return n?{...e,pane:n}:e}function Z0e(e,t){return function(r,i){const o=Z8(),s=e(rT(r,o),o);return Y8(o.map,r.attribution),K8(s.current,r.eventHandlers),t(s.current,o,r,i),s}}var v2={exports:{}};/* @preserve - * Leaflet 1.9.3, a JS library for interactive maps. https://leafletjs.com - * (c) 2010-2022 Vladimir Agafonkin, (c) 2010-2011 CloudMade - */(function(e,t){(function(n,r){r(t)})($l,function(n){var r="1.9.3";function i(u){var d,b,E,M;for(b=1,E=arguments.length;b"u"||!L||!L.Mixin)){u=S(u)?u:[u];for(var d=0;d0?Math.floor(u):Math.ceil(u)};G.prototype={clone:function(){return new G(this.x,this.y)},add:function(u){return this.clone()._add(j(u))},_add:function(u){return this.x+=u.x,this.y+=u.y,this},subtract:function(u){return this.clone()._subtract(j(u))},_subtract:function(u){return this.x-=u.x,this.y-=u.y,this},divideBy:function(u){return this.clone()._divideBy(u)},_divideBy:function(u){return this.x/=u,this.y/=u,this},multiplyBy:function(u){return this.clone()._multiplyBy(u)},_multiplyBy:function(u){return this.x*=u,this.y*=u,this},scaleBy:function(u){return new G(this.x*u.x,this.y*u.y)},unscaleBy:function(u){return new G(this.x/u.x,this.y/u.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=F(this.x),this.y=F(this.y),this},distanceTo:function(u){u=j(u);var d=u.x-this.x,b=u.y-this.y;return Math.sqrt(d*d+b*b)},equals:function(u){return u=j(u),u.x===this.x&&u.y===this.y},contains:function(u){return u=j(u),Math.abs(u.x)<=Math.abs(this.x)&&Math.abs(u.y)<=Math.abs(this.y)},toString:function(){return"Point("+p(this.x)+", "+p(this.y)+")"}};function j(u,d,b){return u instanceof G?u:S(u)?new G(u[0],u[1]):u==null?u:typeof u=="object"&&"x"in u&&"y"in u?new G(u.x,u.y):new G(u,d,b)}function B(u,d){if(u)for(var b=d?[u,d]:u,E=0,M=b.length;E=this.min.x&&b.x<=this.max.x&&d.y>=this.min.y&&b.y<=this.max.y},intersects:function(u){u=ne(u);var d=this.min,b=this.max,E=u.min,M=u.max,$=M.x>=d.x&&E.x<=b.x,Q=M.y>=d.y&&E.y<=b.y;return $&&Q},overlaps:function(u){u=ne(u);var d=this.min,b=this.max,E=u.min,M=u.max,$=M.x>d.x&&E.xd.y&&E.y=d.lat&&M.lat<=b.lat&&E.lng>=d.lng&&M.lng<=b.lng},intersects:function(u){u=q(u);var d=this._southWest,b=this._northEast,E=u.getSouthWest(),M=u.getNorthEast(),$=M.lat>=d.lat&&E.lat<=b.lat,Q=M.lng>=d.lng&&E.lng<=b.lng;return $&&Q},overlaps:function(u){u=q(u);var d=this._southWest,b=this._northEast,E=u.getSouthWest(),M=u.getNorthEast(),$=M.lat>d.lat&&E.latd.lng&&E.lng1,Xt=function(){var u=!1;try{var d=Object.defineProperty({},"passive",{get:function(){u=!0}});window.addEventListener("testPassiveEventSupport",h,d),window.removeEventListener("testPassiveEventSupport",h,d)}catch{}return u}(),or=function(){return!!document.createElement("canvas").getContext}(),Dn=!!(document.createElementNS&&Le("svg").createSVGRect),An=!!Dn&&function(){var u=document.createElement("div");return u.innerHTML="",(u.firstChild&&u.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),pn=!Dn&&function(){try{var u=document.createElement("div");u.innerHTML='';var d=u.firstChild;return d.style.behavior="url(#default#VML)",d&&typeof d.adj=="object"}catch{return!1}}(),ai=navigator.platform.indexOf("Mac")===0,li=navigator.platform.indexOf("Linux")===0;function jn(u){return navigator.userAgent.toLowerCase().indexOf(u)>=0}var He={ie:_e,ielt9:Te,edge:De,webkit:Re,android:Ne,android23:ce,androidStock:be,opera:ye,chrome:Ce,gecko:ke,safari:Ie,phantom:Je,opera12:et,win:Ge,ie3d:Ht,webkit3d:Ft,gecko3d:wn,any3d:ir,mobile:Ri,mobileWebkit:Ln,mobileWebkit3d:ou,msPointer:Ni,pointer:gh,touch:yh,touchNative:vh,mobileOpera:su,mobileGecko:oa,retina:sn,passiveEvents:Xt,canvas:or,svg:Dn,vml:pn,inlineSvg:An,mac:ai,linux:li},lT=He.msPointer?"MSPointerDown":"pointerdown",cT=He.msPointer?"MSPointerMove":"pointermove",uT=He.msPointer?"MSPointerUp":"pointerup",fT=He.msPointer?"MSPointerCancel":"pointercancel",M_={touchstart:lT,touchmove:cT,touchend:uT,touchcancel:fT},dT={touchstart:gF,touchmove:_h,touchend:_h,touchcancel:_h},ml={},hT=!1;function fF(u,d,b){return d==="touchstart"&&mF(),dT[d]?(b=dT[d].bind(this,b),u.addEventListener(M_[d],b,!1),b):(console.warn("wrong event specified:",d),h)}function dF(u,d,b){if(!M_[d]){console.warn("wrong event specified:",d);return}u.removeEventListener(M_[d],b,!1)}function hF(u){ml[u.pointerId]=u}function pF(u){ml[u.pointerId]&&(ml[u.pointerId]=u)}function pT(u){delete ml[u.pointerId]}function mF(){hT||(document.addEventListener(lT,hF,!0),document.addEventListener(cT,pF,!0),document.addEventListener(uT,pT,!0),document.addEventListener(fT,pT,!0),hT=!0)}function _h(u,d){if(d.pointerType!==(d.MSPOINTER_TYPE_MOUSE||"mouse")){d.touches=[];for(var b in ml)d.touches.push(ml[b]);d.changedTouches=[d],u(d)}}function gF(u,d){d.MSPOINTER_TYPE_TOUCH&&d.pointerType===d.MSPOINTER_TYPE_TOUCH&&In(d),_h(u,d)}function vF(u){var d={},b,E;for(E in u)b=u[E],d[E]=b&&b.bind?b.bind(u):b;return u=d,d.type="dblclick",d.detail=2,d.isTrusted=!1,d._simulated=!0,d}var yF=200;function _F(u,d){u.addEventListener("dblclick",d);var b=0,E;function M($){if($.detail!==1){E=$.detail;return}if(!($.pointerType==="mouse"||$.sourceCapabilities&&!$.sourceCapabilities.firesTouchEvents)){var Q=_T($);if(!(Q.some(function(he){return he instanceof HTMLLabelElement&&he.attributes.for})&&!Q.some(function(he){return he instanceof HTMLInputElement||he instanceof HTMLSelectElement}))){var fe=Date.now();fe-b<=yF?(E++,E===2&&d(vF($))):E=1,b=fe}}}return u.addEventListener("click",M),{dblclick:d,simDblclick:M}}function bF(u,d){u.removeEventListener("dblclick",d.dblclick),u.removeEventListener("click",d.simDblclick)}var R_=xh(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),au=xh(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),mT=au==="webkitTransition"||au==="OTransition"?au+"End":"transitionend";function gT(u){return typeof u=="string"?document.getElementById(u):u}function lu(u,d){var b=u.style[d]||u.currentStyle&&u.currentStyle[d];if((!b||b==="auto")&&document.defaultView){var E=document.defaultView.getComputedStyle(u,null);b=E?E[d]:null}return b==="auto"?null:b}function ft(u,d,b){var E=document.createElement(u);return E.className=d||"",b&&b.appendChild(E),E}function $t(u){var d=u.parentNode;d&&d.removeChild(u)}function bh(u){for(;u.firstChild;)u.removeChild(u.firstChild)}function gl(u){var d=u.parentNode;d&&d.lastChild!==u&&d.appendChild(u)}function vl(u){var d=u.parentNode;d&&d.firstChild!==u&&d.insertBefore(u,d.firstChild)}function N_(u,d){if(u.classList!==void 0)return u.classList.contains(d);var b=wh(u);return b.length>0&&new RegExp("(^|\\s)"+d+"(\\s|$)").test(b)}function Xe(u,d){if(u.classList!==void 0)for(var b=v(d),E=0,M=b.length;E0?2*window.devicePixelRatio:1;function wT(u){return He.edge?u.wheelDeltaY/2:u.deltaY&&u.deltaMode===0?-u.deltaY/SF:u.deltaY&&u.deltaMode===1?-u.deltaY*20:u.deltaY&&u.deltaMode===2?-u.deltaY*60:u.deltaX||u.deltaZ?0:u.wheelDelta?(u.wheelDeltaY||u.wheelDelta)/2:u.detail&&Math.abs(u.detail)<32765?-u.detail*20:u.detail?u.detail/-32765*60:0}function H_(u,d){var b=d.relatedTarget;if(!b)return!0;try{for(;b&&b!==u;)b=b.parentNode}catch{return!1}return b!==u}var CF={__proto__:null,on:Ze,off:St,stopPropagation:la,disableScrollPropagation:V_,disableClickPropagation:du,preventDefault:In,stop:ca,getPropagationPath:_T,getMousePosition:bT,getWheelDelta:wT,isExternalTarget:H_,addListener:Ze,removeListener:St},xT=oe.extend({run:function(u,d,b,E){this.stop(),this._el=u,this._inProgress=!0,this._duration=b||.25,this._easeOutPower=1/Math.max(E||.5,.2),this._startPos=aa(u),this._offset=d.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=W(this._animate,this),this._step()},_step:function(u){var d=+new Date-this._startTime,b=this._duration*1e3;dthis.options.maxZoom)?this.setZoom(u):this},panInsideBounds:function(u,d){this._enforcingBounds=!0;var b=this.getCenter(),E=this._limitCenter(b,this._zoom,q(u));return b.equals(E)||this.panTo(E,d),this._enforcingBounds=!1,this},panInside:function(u,d){d=d||{};var b=j(d.paddingTopLeft||d.padding||[0,0]),E=j(d.paddingBottomRight||d.padding||[0,0]),M=this.project(this.getCenter()),$=this.project(u),Q=this.getPixelBounds(),fe=ne([Q.min.add(b),Q.max.subtract(E)]),he=fe.getSize();if(!fe.contains($)){this._enforcingBounds=!0;var Se=$.subtract(fe.getCenter()),Ae=fe.extend($).getSize().subtract(he);M.x+=Se.x<0?-Ae.x:Ae.x,M.y+=Se.y<0?-Ae.y:Ae.y,this.panTo(this.unproject(M),d),this._enforcingBounds=!1}return this},invalidateSize:function(u){if(!this._loaded)return this;u=i({animate:!1,pan:!0},u===!0?{animate:!0}:u);var d=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var b=this.getSize(),E=d.divideBy(2).round(),M=b.divideBy(2).round(),$=E.subtract(M);return!$.x&&!$.y?this:(u.animate&&u.pan?this.panBy($):(u.pan&&this._rawPanBy($),this.fire("move"),u.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(s(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:d,newSize:b}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(u){if(u=this._locateOptions=i({timeout:1e4,watch:!1},u),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var d=s(this._handleGeolocationResponse,this),b=s(this._handleGeolocationError,this);return u.watch?this._locationWatchId=navigator.geolocation.watchPosition(d,b,u):navigator.geolocation.getCurrentPosition(d,b,u),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(u){if(this._container._leaflet_id){var d=u.code,b=u.message||(d===1?"permission denied":d===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:d,message:"Geolocation error: "+b+"."})}},_handleGeolocationResponse:function(u){if(this._container._leaflet_id){var d=u.coords.latitude,b=u.coords.longitude,E=new te(d,b),M=E.toBounds(u.coords.accuracy*2),$=this._locateOptions;if($.setView){var Q=this.getBoundsZoom(M);this.setView(E,$.maxZoom?Math.min(Q,$.maxZoom):Q)}var fe={latlng:E,bounds:M,timestamp:u.timestamp};for(var he in u.coords)typeof u.coords[he]=="number"&&(fe[he]=u.coords[he]);this.fire("locationfound",fe)}},addHandler:function(u,d){if(!d)return this;var b=this[u]=new d(this);return this._handlers.push(b),this.options[u]&&b.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch{this._container._leaflet_id=void 0,this._containerId=void 0}this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),$t(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(Y(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var u;for(u in this._layers)this._layers[u].remove();for(u in this._panes)$t(this._panes[u]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(u,d){var b="leaflet-pane"+(u?" leaflet-"+u.replace("Pane","")+"-pane":""),E=ft("div",b,d||this._mapPane);return u&&(this._panes[u]=E),E},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var u=this.getPixelBounds(),d=this.unproject(u.getBottomLeft()),b=this.unproject(u.getTopRight());return new H(d,b)},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZoom===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(u,d,b){u=q(u),b=j(b||[0,0]);var E=this.getZoom()||0,M=this.getMinZoom(),$=this.getMaxZoom(),Q=u.getNorthWest(),fe=u.getSouthEast(),he=this.getSize().subtract(b),Se=ne(this.project(fe,E),this.project(Q,E)).getSize(),Ae=He.any3d?this.options.zoomSnap:1,Ye=he.x/Se.x,nt=he.y/Se.y,Ur=d?Math.max(Ye,nt):Math.min(Ye,nt);return E=this.getScaleZoom(Ur,E),Ae&&(E=Math.round(E/(Ae/100))*(Ae/100),E=d?Math.ceil(E/Ae)*Ae:Math.floor(E/Ae)*Ae),Math.max(M,Math.min($,E))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new G(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(u,d){var b=this._getTopLeftPoint(u,d);return new B(b,b.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(u){return this.options.crs.getProjectedBounds(u===void 0?this.getZoom():u)},getPane:function(u){return typeof u=="string"?this._panes[u]:u},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(u,d){var b=this.options.crs;return d=d===void 0?this._zoom:d,b.scale(u)/b.scale(d)},getScaleZoom:function(u,d){var b=this.options.crs;d=d===void 0?this._zoom:d;var E=b.zoom(u*b.scale(d));return isNaN(E)?1/0:E},project:function(u,d){return d=d===void 0?this._zoom:d,this.options.crs.latLngToPoint(se(u),d)},unproject:function(u,d){return d=d===void 0?this._zoom:d,this.options.crs.pointToLatLng(j(u),d)},layerPointToLatLng:function(u){var d=j(u).add(this.getPixelOrigin());return this.unproject(d)},latLngToLayerPoint:function(u){var d=this.project(se(u))._round();return d._subtract(this.getPixelOrigin())},wrapLatLng:function(u){return this.options.crs.wrapLatLng(se(u))},wrapLatLngBounds:function(u){return this.options.crs.wrapLatLngBounds(q(u))},distance:function(u,d){return this.options.crs.distance(se(u),se(d))},containerPointToLayerPoint:function(u){return j(u).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(u){return j(u).add(this._getMapPanePos())},containerPointToLatLng:function(u){var d=this.containerPointToLayerPoint(j(u));return this.layerPointToLatLng(d)},latLngToContainerPoint:function(u){return this.layerPointToContainerPoint(this.latLngToLayerPoint(se(u)))},mouseEventToContainerPoint:function(u){return bT(u,this._container)},mouseEventToLayerPoint:function(u){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(u))},mouseEventToLatLng:function(u){return this.layerPointToLatLng(this.mouseEventToLayerPoint(u))},_initContainer:function(u){var d=this._container=gT(u);if(d){if(d._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");Ze(d,"scroll",this._onScroll,this),this._containerId=l(d)},_initLayout:function(){var u=this._container;this._fadeAnimated=this.options.fadeAnimation&&He.any3d,Xe(u,"leaflet-container"+(He.touch?" leaflet-touch":"")+(He.retina?" leaflet-retina":"")+(He.ielt9?" leaflet-oldie":"")+(He.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var d=lu(u,"position");d!=="absolute"&&d!=="relative"&&d!=="fixed"&&d!=="sticky"&&(u.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var u=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),an(this._mapPane,new G(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(Xe(u.markerPane,"leaflet-zoom-hide"),Xe(u.shadowPane,"leaflet-zoom-hide"))},_resetView:function(u,d,b){an(this._mapPane,new G(0,0));var E=!this._loaded;this._loaded=!0,d=this._limitZoom(d),this.fire("viewprereset");var M=this._zoom!==d;this._moveStart(M,b)._move(u,d)._moveEnd(M),this.fire("viewreset"),E&&this.fire("load")},_moveStart:function(u,d){return u&&this.fire("zoomstart"),d||this.fire("movestart"),this},_move:function(u,d,b,E){d===void 0&&(d=this._zoom);var M=this._zoom!==d;return this._zoom=d,this._lastCenter=u,this._pixelOrigin=this._getNewPixelOrigin(u),E?b&&b.pinch&&this.fire("zoom",b):((M||b&&b.pinch)&&this.fire("zoom",b),this.fire("move",b)),this},_moveEnd:function(u){return u&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return Y(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(u){an(this._mapPane,this._getMapPanePos().subtract(u))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(u){this._targets={},this._targets[l(this._container)]=this;var d=u?St:Ze;d(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&d(window,"resize",this._onResize,this),He.any3d&&this.options.transform3DLimit&&(u?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){Y(this._resizeRequest),this._resizeRequest=W(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var u=this._getMapPanePos();Math.max(Math.abs(u.x),Math.abs(u.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(u,d){for(var b=[],E,M=d==="mouseout"||d==="mouseover",$=u.target||u.srcElement,Q=!1;$;){if(E=this._targets[l($)],E&&(d==="click"||d==="preclick")&&this._draggableMoved(E)){Q=!0;break}if(E&&E.listens(d,!0)&&(M&&!H_($,u)||(b.push(E),M))||$===this._container)break;$=$.parentNode}return!b.length&&!Q&&!M&&this.listens(d,!0)&&(b=[this]),b},_isClickDisabled:function(u){for(;u&&u!==this._container;){if(u._leaflet_disable_click)return!0;u=u.parentNode}},_handleDOMEvent:function(u){var d=u.target||u.srcElement;if(!(!this._loaded||d._leaflet_disable_events||u.type==="click"&&this._isClickDisabled(d))){var b=u.type;b==="mousedown"&&F_(d),this._fireDOMEvent(u,b)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(u,d,b){if(u.type==="click"){var E=i({},u);E.type="preclick",this._fireDOMEvent(E,E.type,b)}var M=this._findEventTargets(u,d);if(b){for(var $=[],Q=0;Q0?Math.round(u-d)/2:Math.max(0,Math.ceil(u))-Math.max(0,Math.floor(d))},_limitZoom:function(u){var d=this.getMinZoom(),b=this.getMaxZoom(),E=He.any3d?this.options.zoomSnap:1;return E&&(u=Math.round(u/E)*E),Math.max(d,Math.min(b,u))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){Qt(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(u,d){var b=this._getCenterOffset(u)._trunc();return(d&&d.animate)!==!0&&!this.getSize().contains(b)?!1:(this.panBy(b,d),!0)},_createAnimProxy:function(){var u=this._proxy=ft("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(u),this.on("zoomanim",function(d){var b=R_,E=this._proxy.style[b];sa(this._proxy,this.project(d.center,d.zoom),this.getZoomScale(d.zoom,1)),E===this._proxy.style[b]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){$t(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var u=this.getCenter(),d=this.getZoom();sa(this._proxy,this.project(u,d),this.getZoomScale(d,1))},_catchTransitionEnd:function(u){this._animatingZoom&&u.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(u,d,b){if(this._animatingZoom)return!0;if(b=b||{},!this._zoomAnimated||b.animate===!1||this._nothingToAnimate()||Math.abs(d-this._zoom)>this.options.zoomAnimationThreshold)return!1;var E=this.getZoomScale(d),M=this._getCenterOffset(u)._divideBy(1-1/E);return b.animate!==!0&&!this.getSize().contains(M)?!1:(W(function(){this._moveStart(!0,!1)._animateZoom(u,d,!0)},this),!0)},_animateZoom:function(u,d,b,E){this._mapPane&&(b&&(this._animatingZoom=!0,this._animateToCenter=u,this._animateToZoom=d,Xe(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:u,zoom:d,noUpdate:E}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(s(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&Qt(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function EF(u,d){return new ot(u,d)}var ci=Z.extend({options:{position:"topright"},initialize:function(u){y(this,u)},getPosition:function(){return this.options.position},setPosition:function(u){var d=this._map;return d&&d.removeControl(this),this.options.position=u,d&&d.addControl(this),this},getContainer:function(){return this._container},addTo:function(u){this.remove(),this._map=u;var d=this._container=this.onAdd(u),b=this.getPosition(),E=u._controlCorners[b];return Xe(d,"leaflet-control"),b.indexOf("bottom")!==-1?E.insertBefore(d,E.firstChild):E.appendChild(d),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?($t(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(u){this._map&&u&&u.screenX>0&&u.screenY>0&&this._map.getContainer().focus()}}),hu=function(u){return new ci(u)};ot.include({addControl:function(u){return u.addTo(this),this},removeControl:function(u){return u.remove(),this},_initControlPos:function(){var u=this._controlCorners={},d="leaflet-",b=this._controlContainer=ft("div",d+"control-container",this._container);function E(M,$){var Q=d+M+" "+d+$;u[M+$]=ft("div",Q,b)}E("top","left"),E("top","right"),E("bottom","left"),E("bottom","right")},_clearControlPos:function(){for(var u in this._controlCorners)$t(this._controlCorners[u]);$t(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var ST=ci.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(u,d,b,E){return b1,this._baseLayersList.style.display=u?"":"none"),this._separator.style.display=d&&u?"":"none",this},_onLayerChange:function(u){this._handlingClick||this._update();var d=this._getLayer(l(u.target)),b=d.overlay?u.type==="add"?"overlayadd":"overlayremove":u.type==="add"?"baselayerchange":null;b&&this._map.fire(b,d)},_createRadioElement:function(u,d){var b='",E=document.createElement("div");return E.innerHTML=b,E.firstChild},_addItem:function(u){var d=document.createElement("label"),b=this._map.hasLayer(u.layer),E;u.overlay?(E=document.createElement("input"),E.type="checkbox",E.className="leaflet-control-layers-selector",E.defaultChecked=b):E=this._createRadioElement("leaflet-base-layers_"+l(this),b),this._layerControlInputs.push(E),E.layerId=l(u.layer),Ze(E,"click",this._onInputClick,this);var M=document.createElement("span");M.innerHTML=" "+u.name;var $=document.createElement("span");d.appendChild($),$.appendChild(E),$.appendChild(M);var Q=u.overlay?this._overlaysList:this._baseLayersList;return Q.appendChild(d),this._checkDisabledLayers(),d},_onInputClick:function(){var u=this._layerControlInputs,d,b,E=[],M=[];this._handlingClick=!0;for(var $=u.length-1;$>=0;$--)d=u[$],b=this._getLayer(d.layerId).layer,d.checked?E.push(b):d.checked||M.push(b);for($=0;$=0;M--)d=u[M],b=this._getLayer(d.layerId).layer,d.disabled=b.options.minZoom!==void 0&&Eb.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var u=this._section;Ze(u,"click",In),this.expand(),setTimeout(function(){St(u,"click",In)})}}),TF=function(u,d,b){return new ST(u,d,b)},W_=ci.extend({options:{position:"topleft",zoomInText:'',zoomInTitle:"Zoom in",zoomOutText:'',zoomOutTitle:"Zoom out"},onAdd:function(u){var d="leaflet-control-zoom",b=ft("div",d+" leaflet-bar"),E=this.options;return this._zoomInButton=this._createButton(E.zoomInText,E.zoomInTitle,d+"-in",b,this._zoomIn),this._zoomOutButton=this._createButton(E.zoomOutText,E.zoomOutTitle,d+"-out",b,this._zoomOut),this._updateDisabled(),u.on("zoomend zoomlevelschange",this._updateDisabled,this),b},onRemove:function(u){u.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(u){!this._disabled&&this._map._zoomthis._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(u.shiftKey?3:1))},_createButton:function(u,d,b,E,M){var $=ft("a",b,E);return $.innerHTML=u,$.href="#",$.title=d,$.setAttribute("role","button"),$.setAttribute("aria-label",d),du($),Ze($,"click",ca),Ze($,"click",M,this),Ze($,"click",this._refocusOnMap,this),$},_updateDisabled:function(){var u=this._map,d="leaflet-disabled";Qt(this._zoomInButton,d),Qt(this._zoomOutButton,d),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||u._zoom===u.getMinZoom())&&(Xe(this._zoomOutButton,d),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||u._zoom===u.getMaxZoom())&&(Xe(this._zoomInButton,d),this._zoomInButton.setAttribute("aria-disabled","true"))}});ot.mergeOptions({zoomControl:!0}),ot.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new W_,this.addControl(this.zoomControl))});var OF=function(u){return new W_(u)},CT=ci.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(u){var d="leaflet-control-scale",b=ft("div",d),E=this.options;return this._addScales(E,d+"-line",b),u.on(E.updateWhenIdle?"moveend":"move",this._update,this),u.whenReady(this._update,this),b},onRemove:function(u){u.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(u,d,b){u.metric&&(this._mScale=ft("div",d,b)),u.imperial&&(this._iScale=ft("div",d,b))},_update:function(){var u=this._map,d=u.getSize().y/2,b=u.distance(u.containerPointToLatLng([0,d]),u.containerPointToLatLng([this.options.maxWidth,d]));this._updateScales(b)},_updateScales:function(u){this.options.metric&&u&&this._updateMetric(u),this.options.imperial&&u&&this._updateImperial(u)},_updateMetric:function(u){var d=this._getRoundNum(u),b=d<1e3?d+" m":d/1e3+" km";this._updateScale(this._mScale,b,d/u)},_updateImperial:function(u){var d=u*3.2808399,b,E,M;d>5280?(b=d/5280,E=this._getRoundNum(b),this._updateScale(this._iScale,E+" mi",E/b)):(M=this._getRoundNum(d),this._updateScale(this._iScale,M+" ft",M/d))},_updateScale:function(u,d,b){u.style.width=Math.round(this.options.maxWidth*b)+"px",u.innerHTML=d},_getRoundNum:function(u){var d=Math.pow(10,(Math.floor(u)+"").length-1),b=u/d;return b=b>=10?10:b>=5?5:b>=3?3:b>=2?2:1,d*b}}),PF=function(u){return new CT(u)},kF='',Y_=ci.extend({options:{position:"bottomright",prefix:''+(He.inlineSvg?kF+" ":"")+"Leaflet"},initialize:function(u){y(this,u),this._attributions={}},onAdd:function(u){u.attributionControl=this,this._container=ft("div","leaflet-control-attribution"),du(this._container);for(var d in u._layers)u._layers[d].getAttribution&&this.addAttribution(u._layers[d].getAttribution());return this._update(),u.on("layeradd",this._addAttribution,this),this._container},onRemove:function(u){u.off("layeradd",this._addAttribution,this)},_addAttribution:function(u){u.layer.getAttribution&&(this.addAttribution(u.layer.getAttribution()),u.layer.once("remove",function(){this.removeAttribution(u.layer.getAttribution())},this))},setPrefix:function(u){return this.options.prefix=u,this._update(),this},addAttribution:function(u){return u?(this._attributions[u]||(this._attributions[u]=0),this._attributions[u]++,this._update(),this):this},removeAttribution:function(u){return u?(this._attributions[u]&&(this._attributions[u]--,this._update()),this):this},_update:function(){if(this._map){var u=[];for(var d in this._attributions)this._attributions[d]&&u.push(d);var b=[];this.options.prefix&&b.push(this.options.prefix),u.length&&b.push(u.join(", ")),this._container.innerHTML=b.join(' ')}}});ot.mergeOptions({attributionControl:!0}),ot.addInitHook(function(){this.options.attributionControl&&new Y_().addTo(this)});var MF=function(u){return new Y_(u)};ci.Layers=ST,ci.Zoom=W_,ci.Scale=CT,ci.Attribution=Y_,hu.layers=TF,hu.zoom=OF,hu.scale=PF,hu.attribution=MF;var Di=Z.extend({initialize:function(u){this._map=u},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});Di.addTo=function(u,d){return u.addHandler(d,this),this};var RF={Events:ie},ET=He.touch?"touchstart mousedown":"mousedown",Yo=oe.extend({options:{clickTolerance:3},initialize:function(u,d,b,E){y(this,E),this._element=u,this._dragStartTarget=d||u,this._preventOutline=b},enable:function(){this._enabled||(Ze(this._dragStartTarget,ET,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(Yo._dragging===this&&this.finishDrag(!0),St(this._dragStartTarget,ET,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(u){if(this._enabled&&(this._moved=!1,!N_(this._element,"leaflet-zoom-anim"))){if(u.touches&&u.touches.length!==1){Yo._dragging===this&&this.finishDrag();return}if(!(Yo._dragging||u.shiftKey||u.which!==1&&u.button!==1&&!u.touches)&&(Yo._dragging=this,this._preventOutline&&F_(this._element),A_(),cu(),!this._moving)){this.fire("down");var d=u.touches?u.touches[0]:u,b=vT(this._element);this._startPoint=new G(d.clientX,d.clientY),this._startPos=aa(this._element),this._parentScale=$_(b);var E=u.type==="mousedown";Ze(document,E?"mousemove":"touchmove",this._onMove,this),Ze(document,E?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(u){if(this._enabled){if(u.touches&&u.touches.length>1){this._moved=!0;return}var d=u.touches&&u.touches.length===1?u.touches[0]:u,b=new G(d.clientX,d.clientY)._subtract(this._startPoint);!b.x&&!b.y||Math.abs(b.x)+Math.abs(b.y)$&&(Q=fe,$=he);$>b&&(d[Q]=1,q_(u,d,b,E,Q),q_(u,d,b,Q,M))}function DF(u,d){for(var b=[u[0]],E=1,M=0,$=u.length;E<$;E++)AF(u[E],u[M])>d&&(b.push(u[E]),M=E);return M<$-1&&b.push(u[$-1]),b}var PT;function kT(u,d,b,E,M){var $=E?PT:ua(u,b),Q=ua(d,b),fe,he,Se;for(PT=Q;;){if(!($|Q))return[u,d];if($&Q)return!1;fe=$||Q,he=Eh(u,d,fe,b,M),Se=ua(he,b),fe===$?(u=he,$=Se):(d=he,Q=Se)}}function Eh(u,d,b,E,M){var $=d.x-u.x,Q=d.y-u.y,fe=E.min,he=E.max,Se,Ae;return b&8?(Se=u.x+$*(he.y-u.y)/Q,Ae=he.y):b&4?(Se=u.x+$*(fe.y-u.y)/Q,Ae=fe.y):b&2?(Se=he.x,Ae=u.y+Q*(he.x-u.x)/$):b&1&&(Se=fe.x,Ae=u.y+Q*(fe.x-u.x)/$),new G(Se,Ae,M)}function ua(u,d){var b=0;return u.xd.max.x&&(b|=2),u.yd.max.y&&(b|=8),b}function AF(u,d){var b=d.x-u.x,E=d.y-u.y;return b*b+E*E}function pu(u,d,b,E){var M=d.x,$=d.y,Q=b.x-M,fe=b.y-$,he=Q*Q+fe*fe,Se;return he>0&&(Se=((u.x-M)*Q+(u.y-$)*fe)/he,Se>1?(M=b.x,$=b.y):Se>0&&(M+=Q*Se,$+=fe*Se)),Q=u.x-M,fe=u.y-$,E?Q*Q+fe*fe:new G(M,$)}function zr(u){return!S(u[0])||typeof u[0][0]!="object"&&typeof u[0][0]<"u"}function MT(u){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),zr(u)}function RT(u,d){var b,E,M,$,Q,fe,he,Se;if(!u||u.length===0)throw new Error("latlngs not passed");zr(u)||(console.warn("latlngs are not flat! Only the first ring will be used"),u=u[0]);var Ae=[];for(var Ye in u)Ae.push(d.project(se(u[Ye])));var nt=Ae.length;for(b=0,E=0;bE){he=($-E)/M,Se=[fe.x-he*(fe.x-Q.x),fe.y-he*(fe.y-Q.y)];break}return d.unproject(j(Se))}var jF={__proto__:null,simplify:TT,pointToSegmentDistance:OT,closestPointOnSegment:NF,clipSegment:kT,_getEdgeIntersection:Eh,_getBitCode:ua,_sqClosestPointOnSegment:pu,isFlat:zr,_flat:MT,polylineCenter:RT};function NT(u,d,b){var E,M=[1,4,2,8],$,Q,fe,he,Se,Ae,Ye,nt;for($=0,Ae=u.length;$1e-7;fe++)Se=M*Math.sin(Q),Se=Math.pow((1-Se)/(1+Se),M/2),he=Math.PI/2-2*Math.atan($*Se)-Q,Q+=he;return new te(Q*d,u.x*d/b)}},FF={__proto__:null,LonLat:G_,Mercator:Z_,SphericalMercator:I},$F=i({},O,{code:"EPSG:3395",projection:Z_,transformation:function(){var u=.5/(Math.PI*Z_.R);return K(u,.5,-u,.5)}()}),DT=i({},O,{code:"EPSG:4326",projection:G_,transformation:K(1/180,1,-1/180,.5)}),BF=i({},pe,{projection:G_,transformation:K(1,0,-1,0),scale:function(u){return Math.pow(2,u)},zoom:function(u){return Math.log(u)/Math.LN2},distance:function(u,d){var b=d.lng-u.lng,E=d.lat-u.lat;return Math.sqrt(b*b+E*E)},infinite:!0});pe.Earth=O,pe.EPSG3395=$F,pe.EPSG3857=ae,pe.EPSG900913=ge,pe.EPSG4326=DT,pe.Simple=BF;var ui=oe.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(u){return u.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(u){return u&&u.removeLayer(this),this},getPane:function(u){return this._map.getPane(u?this.options[u]||u:this.options.pane)},addInteractiveTarget:function(u){return this._map._targets[l(u)]=this,this},removeInteractiveTarget:function(u){return delete this._map._targets[l(u)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(u){var d=u.target;if(d.hasLayer(this)){if(this._map=d,this._zoomAnimated=d._zoomAnimated,this.getEvents){var b=this.getEvents();d.on(b,this),this.once("remove",function(){d.off(b,this)},this)}this.onAdd(d),this.fire("add"),d.fire("layeradd",{layer:this})}}});ot.include({addLayer:function(u){if(!u._layerAdd)throw new Error("The provided object is not a Layer.");var d=l(u);return this._layers[d]?this:(this._layers[d]=u,u._mapToAdd=this,u.beforeAdd&&u.beforeAdd(this),this.whenReady(u._layerAdd,u),this)},removeLayer:function(u){var d=l(u);return this._layers[d]?(this._loaded&&u.onRemove(this),delete this._layers[d],this._loaded&&(this.fire("layerremove",{layer:u}),u.fire("remove")),u._map=u._mapToAdd=null,this):this},hasLayer:function(u){return l(u)in this._layers},eachLayer:function(u,d){for(var b in this._layers)u.call(d,this._layers[b]);return this},_addLayers:function(u){u=u?S(u)?u:[u]:[];for(var d=0,b=u.length;dthis._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()=2&&d[0]instanceof te&&d[0].equals(d[b-1])&&d.pop(),d},_setLatLngs:function(u){so.prototype._setLatLngs.call(this,u),zr(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return zr(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var u=this._renderer._bounds,d=this.options.weight,b=new G(d,d);if(u=new B(u.min.subtract(b),u.max.add(b)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(u))){if(this.options.noClip){this._parts=this._rings;return}for(var E=0,M=this._rings.length,$;Eu.y!=M.y>u.y&&u.x<(M.x-E.x)*(u.y-E.y)/(M.y-E.y)+E.x&&(d=!d);return d||so.prototype._containsPoint.call(this,u,!0)}});function GF(u,d){return new bl(u,d)}var ao=oo.extend({initialize:function(u,d){y(this,d),this._layers={},u&&this.addData(u)},addData:function(u){var d=S(u)?u:u.features,b,E,M;if(d){for(b=0,E=d.length;b0?E:[d.src];return}S(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(d.style,"objectFit")&&(d.style.objectFit="fill"),d.autoplay=!!this.options.autoplay,d.loop=!!this.options.loop,d.muted=!!this.options.muted,d.playsInline=!!this.options.playsInline;for(var $=0;$M?(d.height=M+"px",Xe(u,$)):Qt(u,$),this._containerWidth=this._container.offsetWidth},_animateZoom:function(u){var d=this._map._latLngToNewLayerPoint(this._latlng,u.zoom,u.center),b=this._getAnchor();an(this._container,d.add(b))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var u=this._map,d=parseInt(lu(this._container,"marginBottom"),10)||0,b=this._container.offsetHeight+d,E=this._containerWidth,M=new G(this._containerLeft,-b-this._containerBottom);M._add(aa(this._container));var $=u.layerPointToContainerPoint(M),Q=j(this.options.autoPanPadding),fe=j(this.options.autoPanPaddingTopLeft||Q),he=j(this.options.autoPanPaddingBottomRight||Q),Se=u.getSize(),Ae=0,Ye=0;$.x+E+he.x>Se.x&&(Ae=$.x+E-Se.x+he.x),$.x-Ae-fe.x<0&&(Ae=$.x-fe.x),$.y+b+he.y>Se.y&&(Ye=$.y+b-Se.y+he.y),$.y-Ye-fe.y<0&&(Ye=$.y-fe.y),(Ae||Ye)&&(this.options.keepInView&&(this._autopanning=!0),u.fire("autopanstart").panBy([Ae,Ye]))}},_getAnchor:function(){return j(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),JF=function(u,d){return new Lh(u,d)};ot.mergeOptions({closePopupOnClick:!0}),ot.include({openPopup:function(u,d,b){return this._initOverlay(Lh,u,d,b).openOn(this),this},closePopup:function(u){return u=arguments.length?u:this._popup,u&&u.close(),this}}),ui.include({bindPopup:function(u,d){return this._popup=this._initOverlay(Lh,this._popup,u,d),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(u){return this._popup&&(this instanceof oo||(this._popup._source=this),this._popup._prepareOpen(u||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return this._popup?this._popup.isOpen():!1},setPopupContent:function(u){return this._popup&&this._popup.setContent(u),this},getPopup:function(){return this._popup},_openPopup:function(u){if(!(!this._popup||!this._map)){ca(u);var d=u.layer||u.target;if(this._popup._source===d&&!(d instanceof qo)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(u.latlng);return}this._popup._source=d,this.openPopup(u.latlng)}},_movePopup:function(u){this._popup.setLatLng(u.latlng)},_onKeyPress:function(u){u.originalEvent.keyCode===13&&this._openPopup(u)}});var Dh=Ai.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(u){Ai.prototype.onAdd.call(this,u),this.setOpacity(this.options.opacity),u.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(u){Ai.prototype.onRemove.call(this,u),u.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var u=Ai.prototype.getEvents.call(this);return this.options.permanent||(u.preclick=this.close),u},_initLayout:function(){var u="leaflet-tooltip",d=u+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=ft("div",d),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+l(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(u){var d,b,E=this._map,M=this._container,$=E.latLngToContainerPoint(E.getCenter()),Q=E.layerPointToContainerPoint(u),fe=this.options.direction,he=M.offsetWidth,Se=M.offsetHeight,Ae=j(this.options.offset),Ye=this._getAnchor();fe==="top"?(d=he/2,b=Se):fe==="bottom"?(d=he/2,b=0):fe==="center"?(d=he/2,b=Se/2):fe==="right"?(d=0,b=Se/2):fe==="left"?(d=he,b=Se/2):Q.x<$.x?(fe="right",d=0,b=Se/2):(fe="left",d=he+(Ae.x+Ye.x)*2,b=Se/2),u=u.subtract(j(d,b,!0)).add(Ae).add(Ye),Qt(M,"leaflet-tooltip-right"),Qt(M,"leaflet-tooltip-left"),Qt(M,"leaflet-tooltip-top"),Qt(M,"leaflet-tooltip-bottom"),Xe(M,"leaflet-tooltip-"+fe),an(M,u)},_updatePosition:function(){var u=this._map.latLngToLayerPoint(this._latlng);this._setPosition(u)},setOpacity:function(u){this.options.opacity=u,this._container&&Br(this._container,u)},_animateZoom:function(u){var d=this._map._latLngToNewLayerPoint(this._latlng,u.zoom,u.center);this._setPosition(d)},_getAnchor:function(){return j(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),e$=function(u,d){return new Dh(u,d)};ot.include({openTooltip:function(u,d,b){return this._initOverlay(Dh,u,d,b).openOn(this),this},closeTooltip:function(u){return u.close(),this}}),ui.include({bindTooltip:function(u,d){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(Dh,this._tooltip,u,d),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(u){if(!(!u&&this._tooltipHandlersAdded)){var d=u?"off":"on",b={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?b.add=this._openTooltip:(b.mouseover=this._openTooltip,b.mouseout=this.closeTooltip,b.click=this._openTooltip,this._map?this._addFocusListeners():b.add=this._addFocusListeners),this._tooltip.options.sticky&&(b.mousemove=this._moveTooltip),this[d](b),this._tooltipHandlersAdded=!u}},openTooltip:function(u){return this._tooltip&&(this instanceof oo||(this._tooltip._source=this),this._tooltip._prepareOpen(u)&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this))),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(u){return this._tooltip&&this._tooltip.setContent(u),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(u){var d=u.getElement();d&&(Ze(d,"focus",function(){this._tooltip._source=u,this.openTooltip()},this),Ze(d,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(u){var d=u.getElement();d&&d.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(u){!this._tooltip||!this._map||this._map.dragging&&this._map.dragging.moving()||(this._tooltip._source=u.layer||u.target,this.openTooltip(this._tooltip.options.sticky?u.latlng:void 0))},_moveTooltip:function(u){var d=u.latlng,b,E;this._tooltip.options.sticky&&u.originalEvent&&(b=this._map.mouseEventToContainerPoint(u.originalEvent),E=this._map.containerPointToLayerPoint(b),d=this._map.layerPointToLatLng(E)),this._tooltip.setLatLng(d)}});var BT=_l.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(u){var d=u&&u.tagName==="DIV"?u:document.createElement("div"),b=this.options;if(b.html instanceof Element?(bh(d),d.appendChild(b.html)):d.innerHTML=b.html!==!1?b.html:"",b.bgPos){var E=j(b.bgPos);d.style.backgroundPosition=-E.x+"px "+-E.y+"px"}return this._setIconStyles(d,"icon"),d},createShadow:function(){return null}});function t$(u){return new BT(u)}_l.Default=mu;var gu=ui.extend({options:{tileSize:256,opacity:1,updateWhenIdle:He.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(u){y(this,u)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(u){u._addZoomLimit(this)},onRemove:function(u){this._removeAllTiles(),$t(this._container),u._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(gl(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(vl(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(u){return this.options.opacity=u,this._updateOpacity(),this},setZIndex:function(u){return this.options.zIndex=u,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var u=this._clampZoom(this._map.getZoom());u!==this._tileZoom&&(this._tileZoom=u,this._updateLevels()),this._update()}return this},getEvents:function(){var u={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=c(this._onMoveEnd,this.options.updateInterval,this)),u.move=this._onMove),this._zoomAnimated&&(u.zoomanim=this._animateZoom),u},createTile:function(){return document.createElement("div")},getTileSize:function(){var u=this.options.tileSize;return u instanceof G?u:new G(u,u)},_updateZIndex:function(){this._container&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(u){for(var d=this.getPane().children,b=-u(-1/0,1/0),E=0,M=d.length,$;Ethis.options.maxZoom||bE?this._retainParent(M,$,Q,E):!1)},_retainChildren:function(u,d,b,E){for(var M=2*u;M<2*u+2;M++)for(var $=2*d;$<2*d+2;$++){var Q=new G(M,$);Q.z=b+1;var fe=this._tileCoordsToKey(Q),he=this._tiles[fe];if(he&&he.active){he.retain=!0;continue}else he&&he.loaded&&(he.retain=!0);b+1this.options.maxZoom||this.options.minZoom!==void 0&&M1){this._setView(u,b);return}for(var Ye=M.min.y;Ye<=M.max.y;Ye++)for(var nt=M.min.x;nt<=M.max.x;nt++){var Ur=new G(nt,Ye);if(Ur.z=this._tileZoom,!!this._isValidTile(Ur)){var fa=this._tiles[this._tileCoordsToKey(Ur)];fa?fa.current=!0:Q.push(Ur)}}if(Q.sort(function(Go,e0){return Go.distanceTo($)-e0.distanceTo($)}),Q.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var jh=document.createDocumentFragment();for(nt=0;ntb.max.x)||!d.wrapLat&&(u.yb.max.y))return!1}if(!this.options.bounds)return!0;var E=this._tileCoordsToBounds(u);return q(this.options.bounds).overlaps(E)},_keyToBounds:function(u){return this._tileCoordsToBounds(this._keyToTileCoords(u))},_tileCoordsToNwSe:function(u){var d=this._map,b=this.getTileSize(),E=u.scaleBy(b),M=E.add(b),$=d.unproject(E,u.z),Q=d.unproject(M,u.z);return[$,Q]},_tileCoordsToBounds:function(u){var d=this._tileCoordsToNwSe(u),b=new H(d[0],d[1]);return this.options.noWrap||(b=this._map.wrapLatLngBounds(b)),b},_tileCoordsToKey:function(u){return u.x+":"+u.y+":"+u.z},_keyToTileCoords:function(u){var d=u.split(":"),b=new G(+d[0],+d[1]);return b.z=+d[2],b},_removeTile:function(u){var d=this._tiles[u];d&&($t(d.el),delete this._tiles[u],this.fire("tileunload",{tile:d.el,coords:this._keyToTileCoords(u)}))},_initTile:function(u){Xe(u,"leaflet-tile");var d=this.getTileSize();u.style.width=d.x+"px",u.style.height=d.y+"px",u.onselectstart=h,u.onmousemove=h,He.ielt9&&this.options.opacity<1&&Br(u,this.options.opacity)},_addTile:function(u,d){var b=this._getTilePos(u),E=this._tileCoordsToKey(u),M=this.createTile(this._wrapCoords(u),s(this._tileReady,this,u));this._initTile(M),this.createTile.length<2&&W(s(this._tileReady,this,u,null,M)),an(M,b),this._tiles[E]={el:M,coords:u,current:!0},d.appendChild(M),this.fire("tileloadstart",{tile:M,coords:u})},_tileReady:function(u,d,b){d&&this.fire("tileerror",{error:d,tile:b,coords:u});var E=this._tileCoordsToKey(u);b=this._tiles[E],b&&(b.loaded=+new Date,this._map._fadeAnimated?(Br(b.el,0),Y(this._fadeFrame),this._fadeFrame=W(this._updateOpacity,this)):(b.active=!0,this._pruneTiles()),d||(Xe(b.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:b.el,coords:u})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),He.ielt9||!this._map._fadeAnimated?W(this._pruneTiles,this):setTimeout(s(this._pruneTiles,this),250)))},_getTilePos:function(u){return u.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(u){var d=new G(this._wrapX?f(u.x,this._wrapX):u.x,this._wrapY?f(u.y,this._wrapY):u.y);return d.z=u.z,d},_pxBoundsToTileRange:function(u){var d=this.getTileSize();return new B(u.min.unscaleBy(d).floor(),u.max.unscaleBy(d).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var u in this._tiles)if(!this._tiles[u].loaded)return!1;return!0}});function n$(u){return new gu(u)}var xl=gu.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(u,d){this._url=u,d=y(this,d),d.detectRetina&&He.retina&&d.maxZoom>0?(d.tileSize=Math.floor(d.tileSize/2),d.zoomReverse?(d.zoomOffset--,d.minZoom=Math.min(d.maxZoom,d.minZoom+1)):(d.zoomOffset++,d.maxZoom=Math.max(d.minZoom,d.maxZoom-1)),d.minZoom=Math.max(0,d.minZoom)):d.zoomReverse?d.minZoom=Math.min(d.maxZoom,d.minZoom):d.maxZoom=Math.max(d.minZoom,d.maxZoom),typeof d.subdomains=="string"&&(d.subdomains=d.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(u,d){return this._url===u&&d===void 0&&(d=!0),this._url=u,d||this.redraw(),this},createTile:function(u,d){var b=document.createElement("img");return Ze(b,"load",s(this._tileOnLoad,this,d,b)),Ze(b,"error",s(this._tileOnError,this,d,b)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(b.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(b.referrerPolicy=this.options.referrerPolicy),b.alt="",b.src=this.getTileUrl(u),b},getTileUrl:function(u){var d={r:He.retina?"@2x":"",s:this._getSubdomain(u),x:u.x,y:u.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var b=this._globalTileRange.max.y-u.y;this.options.tms&&(d.y=b),d["-y"]=b}return w(this._url,i(d,this.options))},_tileOnLoad:function(u,d){He.ielt9?setTimeout(s(u,this,null,d),0):u(null,d)},_tileOnError:function(u,d,b){var E=this.options.errorTileUrl;E&&d.getAttribute("src")!==E&&(d.src=E),u(b,d)},_onTileRemove:function(u){u.tile.onload=null},_getZoomForUrl:function(){var u=this._tileZoom,d=this.options.maxZoom,b=this.options.zoomReverse,E=this.options.zoomOffset;return b&&(u=d-u),u+E},_getSubdomain:function(u){var d=Math.abs(u.x+u.y)%this.options.subdomains.length;return this.options.subdomains[d]},_abortLoading:function(){var u,d;for(u in this._tiles)if(this._tiles[u].coords.z!==this._tileZoom&&(d=this._tiles[u].el,d.onload=h,d.onerror=h,!d.complete)){d.src=P;var b=this._tiles[u].coords;$t(d),delete this._tiles[u],this.fire("tileabort",{tile:d,coords:b})}},_removeTile:function(u){var d=this._tiles[u];if(d)return d.el.setAttribute("src",P),gu.prototype._removeTile.call(this,u)},_tileReady:function(u,d,b){if(!(!this._map||b&&b.getAttribute("src")===P))return gu.prototype._tileReady.call(this,u,d,b)}});function zT(u,d){return new xl(u,d)}var UT=xl.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(u,d){this._url=u;var b=i({},this.defaultWmsParams);for(var E in d)E in this.options||(b[E]=d[E]);d=y(this,d);var M=d.detectRetina&&He.retina?2:1,$=this.getTileSize();b.width=$.x*M,b.height=$.y*M,this.wmsParams=b},onAdd:function(u){this._crs=this.options.crs||u.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var d=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[d]=this._crs.code,xl.prototype.onAdd.call(this,u)},getTileUrl:function(u){var d=this._tileCoordsToNwSe(u),b=this._crs,E=ne(b.project(d[0]),b.project(d[1])),M=E.min,$=E.max,Q=(this._wmsVersion>=1.3&&this._crs===DT?[M.y,M.x,$.y,$.x]:[M.x,M.y,$.x,$.y]).join(","),fe=xl.prototype.getTileUrl.call(this,u);return fe+x(this.wmsParams,fe,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+Q},setParams:function(u,d){return i(this.wmsParams,u),d||this.redraw(),this}});function r$(u,d){return new UT(u,d)}xl.WMS=UT,zT.wms=r$;var lo=ui.extend({options:{padding:.1},initialize:function(u){y(this,u),l(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),this._zoomAnimated&&Xe(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var u={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(u.zoomanim=this._onAnimZoom),u},_onAnimZoom:function(u){this._updateTransform(u.center,u.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(u,d){var b=this._map.getZoomScale(d,this._zoom),E=this._map.getSize().multiplyBy(.5+this.options.padding),M=this._map.project(this._center,d),$=E.multiplyBy(-b).add(M).subtract(this._map._getNewPixelOrigin(u,d));He.any3d?sa(this._container,$,b):an(this._container,$)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var u in this._layers)this._layers[u]._reset()},_onZoomEnd:function(){for(var u in this._layers)this._layers[u]._project()},_updatePaths:function(){for(var u in this._layers)this._layers[u]._update()},_update:function(){var u=this.options.padding,d=this._map.getSize(),b=this._map.containerPointToLayerPoint(d.multiplyBy(-u)).round();this._bounds=new B(b,b.add(d.multiplyBy(1+u*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),VT=lo.extend({options:{tolerance:0},getEvents:function(){var u=lo.prototype.getEvents.call(this);return u.viewprereset=this._onViewPreReset,u},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){lo.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var u=this._container=document.createElement("canvas");Ze(u,"mousemove",this._onMouseMove,this),Ze(u,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Ze(u,"mouseout",this._handleMouseOut,this),u._leaflet_disable_events=!0,this._ctx=u.getContext("2d")},_destroyContainer:function(){Y(this._redrawRequest),delete this._ctx,$t(this._container),St(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var u;this._redrawBounds=null;for(var d in this._layers)u=this._layers[d],u._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){lo.prototype._update.call(this);var u=this._bounds,d=this._container,b=u.getSize(),E=He.retina?2:1;an(d,u.min),d.width=E*b.x,d.height=E*b.y,d.style.width=b.x+"px",d.style.height=b.y+"px",He.retina&&this._ctx.scale(2,2),this._ctx.translate(-u.min.x,-u.min.y),this.fire("update")}},_reset:function(){lo.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(u){this._updateDashArray(u),this._layers[l(u)]=u;var d=u._order={layer:u,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=d),this._drawLast=d,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(u){this._requestRedraw(u)},_removePath:function(u){var d=u._order,b=d.next,E=d.prev;b?b.prev=E:this._drawLast=E,E?E.next=b:this._drawFirst=b,delete u._order,delete this._layers[l(u)],this._requestRedraw(u)},_updatePath:function(u){this._extendRedrawBounds(u),u._project(),u._update(),this._requestRedraw(u)},_updateStyle:function(u){this._updateDashArray(u),this._requestRedraw(u)},_updateDashArray:function(u){if(typeof u.options.dashArray=="string"){var d=u.options.dashArray.split(/[, ]+/),b=[],E,M;for(M=0;M')}}catch{}return function(u){return document.createElement("<"+u+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),i$={_initContainer:function(){this._container=ft("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(lo.prototype._update.call(this),this.fire("update"))},_initPath:function(u){var d=u._container=vu("shape");Xe(d,"leaflet-vml-shape "+(this.options.className||"")),d.coordsize="1 1",u._path=vu("path"),d.appendChild(u._path),this._updateStyle(u),this._layers[l(u)]=u},_addPath:function(u){var d=u._container;this._container.appendChild(d),u.options.interactive&&u.addInteractiveTarget(d)},_removePath:function(u){var d=u._container;$t(d),u.removeInteractiveTarget(d),delete this._layers[l(u)]},_updateStyle:function(u){var d=u._stroke,b=u._fill,E=u.options,M=u._container;M.stroked=!!E.stroke,M.filled=!!E.fill,E.stroke?(d||(d=u._stroke=vu("stroke")),M.appendChild(d),d.weight=E.weight+"px",d.color=E.color,d.opacity=E.opacity,E.dashArray?d.dashStyle=S(E.dashArray)?E.dashArray.join(" "):E.dashArray.replace(/( *, *)/g," "):d.dashStyle="",d.endcap=E.lineCap.replace("butt","flat"),d.joinstyle=E.lineJoin):d&&(M.removeChild(d),u._stroke=null),E.fill?(b||(b=u._fill=vu("fill")),M.appendChild(b),b.color=E.fillColor||E.color,b.opacity=E.fillOpacity):b&&(M.removeChild(b),u._fill=null)},_updateCircle:function(u){var d=u._point.round(),b=Math.round(u._radius),E=Math.round(u._radiusY||b);this._setPath(u,u._empty()?"M0 0":"AL "+d.x+","+d.y+" "+b+","+E+" 0,"+65535*360)},_setPath:function(u,d){u._path.v=d},_bringToFront:function(u){gl(u._container)},_bringToBack:function(u){vl(u._container)}},Ah=He.vml?vu:Le,yu=lo.extend({_initContainer:function(){this._container=Ah("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Ah("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){$t(this._container),St(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){lo.prototype._update.call(this);var u=this._bounds,d=u.getSize(),b=this._container;(!this._svgSize||!this._svgSize.equals(d))&&(this._svgSize=d,b.setAttribute("width",d.x),b.setAttribute("height",d.y)),an(b,u.min),b.setAttribute("viewBox",[u.min.x,u.min.y,d.x,d.y].join(" ")),this.fire("update")}},_initPath:function(u){var d=u._path=Ah("path");u.options.className&&Xe(d,u.options.className),u.options.interactive&&Xe(d,"leaflet-interactive"),this._updateStyle(u),this._layers[l(u)]=u},_addPath:function(u){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(u._path),u.addInteractiveTarget(u._path)},_removePath:function(u){$t(u._path),u.removeInteractiveTarget(u._path),delete this._layers[l(u)]},_updatePath:function(u){u._project(),u._update()},_updateStyle:function(u){var d=u._path,b=u.options;d&&(b.stroke?(d.setAttribute("stroke",b.color),d.setAttribute("stroke-opacity",b.opacity),d.setAttribute("stroke-width",b.weight),d.setAttribute("stroke-linecap",b.lineCap),d.setAttribute("stroke-linejoin",b.lineJoin),b.dashArray?d.setAttribute("stroke-dasharray",b.dashArray):d.removeAttribute("stroke-dasharray"),b.dashOffset?d.setAttribute("stroke-dashoffset",b.dashOffset):d.removeAttribute("stroke-dashoffset")):d.setAttribute("stroke","none"),b.fill?(d.setAttribute("fill",b.fillColor||b.color),d.setAttribute("fill-opacity",b.fillOpacity),d.setAttribute("fill-rule",b.fillRule||"evenodd")):d.setAttribute("fill","none"))},_updatePoly:function(u,d){this._setPath(u,ue(u._parts,d))},_updateCircle:function(u){var d=u._point,b=Math.max(Math.round(u._radius),1),E=Math.max(Math.round(u._radiusY),1)||b,M="a"+b+","+E+" 0 1,0 ",$=u._empty()?"M0 0":"M"+(d.x-b)+","+d.y+M+b*2+",0 "+M+-b*2+",0 ";this._setPath(u,$)},_setPath:function(u,d){u._path.setAttribute("d",d)},_bringToFront:function(u){gl(u._path)},_bringToBack:function(u){vl(u._path)}});He.vml&&yu.include(i$);function WT(u){return He.svg||He.vml?new yu(u):null}ot.include({getRenderer:function(u){var d=u.options.renderer||this._getPaneRenderer(u.options.pane)||this.options.renderer||this._renderer;return d||(d=this._renderer=this._createRenderer()),this.hasLayer(d)||this.addLayer(d),d},_getPaneRenderer:function(u){if(u==="overlayPane"||u===void 0)return!1;var d=this._paneRenderers[u];return d===void 0&&(d=this._createRenderer({pane:u}),this._paneRenderers[u]=d),d},_createRenderer:function(u){return this.options.preferCanvas&&HT(u)||WT(u)}});var YT=bl.extend({initialize:function(u,d){bl.prototype.initialize.call(this,this._boundsToLatLngs(u),d)},setBounds:function(u){return this.setLatLngs(this._boundsToLatLngs(u))},_boundsToLatLngs:function(u){return u=q(u),[u.getSouthWest(),u.getNorthWest(),u.getNorthEast(),u.getSouthEast()]}});function o$(u,d){return new YT(u,d)}yu.create=Ah,yu.pointsToPath=ue,ao.geometryToLayer=Ph,ao.coordsToLatLng=X_,ao.coordsToLatLngs=kh,ao.latLngToCoords=Q_,ao.latLngsToCoords=Mh,ao.getFeature=wl,ao.asFeature=Rh,ot.mergeOptions({boxZoom:!0});var qT=Di.extend({initialize:function(u){this._map=u,this._container=u._container,this._pane=u._panes.overlayPane,this._resetStateTimeout=0,u.on("unload",this._destroy,this)},addHooks:function(){Ze(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){St(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){$t(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){this._resetStateTimeout!==0&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(u){if(!u.shiftKey||u.which!==1&&u.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),cu(),A_(),this._startPoint=this._map.mouseEventToContainerPoint(u),Ze(document,{contextmenu:ca,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(u){this._moved||(this._moved=!0,this._box=ft("div","leaflet-zoom-box",this._container),Xe(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(u);var d=new B(this._point,this._startPoint),b=d.getSize();an(this._box,d.min),this._box.style.width=b.x+"px",this._box.style.height=b.y+"px"},_finish:function(){this._moved&&($t(this._box),Qt(this._container,"leaflet-crosshair")),uu(),j_(),St(document,{contextmenu:ca,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(u){if(!(u.which!==1&&u.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(s(this._resetState,this),0);var d=new H(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(d).fire("boxzoomend",{boxZoomBounds:d})}},_onKeyDown:function(u){u.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});ot.addInitHook("addHandler","boxZoom",qT),ot.mergeOptions({doubleClickZoom:!0});var GT=Di.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(u){var d=this._map,b=d.getZoom(),E=d.options.zoomDelta,M=u.originalEvent.shiftKey?b-E:b+E;d.options.doubleClickZoom==="center"?d.setZoom(M):d.setZoomAround(u.containerPoint,M)}});ot.addInitHook("addHandler","doubleClickZoom",GT),ot.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var ZT=Di.extend({addHooks:function(){if(!this._draggable){var u=this._map;this._draggable=new Yo(u._mapPane,u._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),u.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),u.on("zoomend",this._onZoomEnd,this),u.whenReady(this._onZoomEnd,this))}Xe(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){Qt(this._map._container,"leaflet-grab"),Qt(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var u=this._map;if(u._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var d=q(this._map.options.maxBounds);this._offsetLimit=ne(this._map.latLngToContainerPoint(d.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(d.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;u.fire("movestart").fire("dragstart"),u.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(u){if(this._map.options.inertia){var d=this._lastTime=+new Date,b=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(b),this._times.push(d),this._prunePositions(d)}this._map.fire("move",u).fire("drag",u)},_prunePositions:function(u){for(;this._positions.length>1&&u-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var u=this._map.getSize().divideBy(2),d=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=d.subtract(u).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(u,d){return u-(u-d)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var u=this._draggable._newPos.subtract(this._draggable._startPos),d=this._offsetLimit;u.xd.max.x&&(u.x=this._viscousLimit(u.x,d.max.x)),u.y>d.max.y&&(u.y=this._viscousLimit(u.y,d.max.y)),this._draggable._newPos=this._draggable._startPos.add(u)}},_onPreDragWrap:function(){var u=this._worldWidth,d=Math.round(u/2),b=this._initialWorldOffset,E=this._draggable._newPos.x,M=(E-d+b)%u+d-b,$=(E+d+b)%u-d-b,Q=Math.abs(M+b)0?$:-$))-d;this._delta=0,this._startTime=null,Q&&(u.options.scrollWheelZoom==="center"?u.setZoom(d+Q):u.setZoomAround(this._lastMousePos,d+Q))}});ot.addInitHook("addHandler","scrollWheelZoom",XT);var s$=600;ot.mergeOptions({tapHold:He.touchNative&&He.safari&&He.mobile,tapTolerance:15});var QT=Di.extend({addHooks:function(){Ze(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){St(this._map._container,"touchstart",this._onDown,this)},_onDown:function(u){if(clearTimeout(this._holdTimeout),u.touches.length===1){var d=u.touches[0];this._startPos=this._newPos=new G(d.clientX,d.clientY),this._holdTimeout=setTimeout(s(function(){this._cancel(),this._isTapValid()&&(Ze(document,"touchend",In),Ze(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",d))},this),s$),Ze(document,"touchend touchcancel contextmenu",this._cancel,this),Ze(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function u(){St(document,"touchend",In),St(document,"touchend touchcancel",u)},_cancel:function(){clearTimeout(this._holdTimeout),St(document,"touchend touchcancel contextmenu",this._cancel,this),St(document,"touchmove",this._onMove,this)},_onMove:function(u){var d=u.touches[0];this._newPos=new G(d.clientX,d.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(u,d){var b=new MouseEvent(u,{bubbles:!0,cancelable:!0,view:window,screenX:d.screenX,screenY:d.screenY,clientX:d.clientX,clientY:d.clientY});b._simulated=!0,d.target.dispatchEvent(b)}});ot.addInitHook("addHandler","tapHold",QT),ot.mergeOptions({touchZoom:He.touch,bounceAtZoomLimits:!0});var JT=Di.extend({addHooks:function(){Xe(this._map._container,"leaflet-touch-zoom"),Ze(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){Qt(this._map._container,"leaflet-touch-zoom"),St(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(u){var d=this._map;if(!(!u.touches||u.touches.length!==2||d._animatingZoom||this._zooming)){var b=d.mouseEventToContainerPoint(u.touches[0]),E=d.mouseEventToContainerPoint(u.touches[1]);this._centerPoint=d.getSize()._divideBy(2),this._startLatLng=d.containerPointToLatLng(this._centerPoint),d.options.touchZoom!=="center"&&(this._pinchStartLatLng=d.containerPointToLatLng(b.add(E)._divideBy(2))),this._startDist=b.distanceTo(E),this._startZoom=d.getZoom(),this._moved=!1,this._zooming=!0,d._stop(),Ze(document,"touchmove",this._onTouchMove,this),Ze(document,"touchend touchcancel",this._onTouchEnd,this),In(u)}},_onTouchMove:function(u){if(!(!u.touches||u.touches.length!==2||!this._zooming)){var d=this._map,b=d.mouseEventToContainerPoint(u.touches[0]),E=d.mouseEventToContainerPoint(u.touches[1]),M=b.distanceTo(E)/this._startDist;if(this._zoom=d.getScaleZoom(M,this._startZoom),!d.options.bounceAtZoomLimits&&(this._zoomd.getMaxZoom()&&M>1)&&(this._zoom=d._limitZoom(this._zoom)),d.options.touchZoom==="center"){if(this._center=this._startLatLng,M===1)return}else{var $=b._add(E)._divideBy(2)._subtract(this._centerPoint);if(M===1&&$.x===0&&$.y===0)return;this._center=d.unproject(d.project(this._pinchStartLatLng,this._zoom).subtract($),this._zoom)}this._moved||(d._moveStart(!0,!1),this._moved=!0),Y(this._animRequest);var Q=s(d._move,d,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=W(Q,this,!0),In(u)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,Y(this._animRequest),St(document,"touchmove",this._onTouchMove,this),St(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))}});ot.addInitHook("addHandler","touchZoom",JT),ot.BoxZoom=qT,ot.DoubleClickZoom=GT,ot.Drag=ZT,ot.Keyboard=KT,ot.ScrollWheelZoom=XT,ot.TapHold=QT,ot.TouchZoom=JT,n.Bounds=B,n.Browser=He,n.CRS=pe,n.Canvas=VT,n.Circle=K_,n.CircleMarker=Oh,n.Class=Z,n.Control=ci,n.DivIcon=BT,n.DivOverlay=Ai,n.DomEvent=CF,n.DomUtil=xF,n.Draggable=Yo,n.Evented=oe,n.FeatureGroup=oo,n.GeoJSON=ao,n.GridLayer=gu,n.Handler=Di,n.Icon=_l,n.ImageOverlay=Nh,n.LatLng=te,n.LatLngBounds=H,n.Layer=ui,n.LayerGroup=yl,n.LineUtil=jF,n.Map=ot,n.Marker=Th,n.Mixin=RF,n.Path=qo,n.Point=G,n.PolyUtil=IF,n.Polygon=bl,n.Polyline=so,n.Popup=Lh,n.PosAnimation=xT,n.Projection=FF,n.Rectangle=YT,n.Renderer=lo,n.SVG=yu,n.SVGOverlay=$T,n.TileLayer=xl,n.Tooltip=Dh,n.Transformation=X,n.Util=J,n.VideoOverlay=FT,n.bind=s,n.bounds=ne,n.canvas=HT,n.circle=YF,n.circleMarker=WF,n.control=hu,n.divIcon=t$,n.extend=i,n.featureGroup=UF,n.geoJSON=IT,n.geoJson=ZF,n.gridLayer=n$,n.icon=VF,n.imageOverlay=KF,n.latLng=se,n.latLngBounds=q,n.layerGroup=zF,n.map=EF,n.marker=HF,n.point=j,n.polygon=GF,n.polyline=qF,n.popup=JF,n.rectangle=o$,n.setOptions=y,n.stamp=l,n.svg=WT,n.svgOverlay=QF,n.tileLayer=zT,n.tooltip=e$,n.transformation=K,n.version=r,n.videoOverlay=XF;var a$=window.L;n.noConflict=function(){return window.L=a$,this},window.L=n})})(v2,v2.exports);var ph=v2.exports;const SL=ri(ph);function iT(e,t,n){return Object.freeze({instance:e,context:t,container:n})}function oT(e,t){return t==null?function(r,i){const o=V.useRef();return o.current||(o.current=e(r,i)),o}:function(r,i){const o=V.useRef();o.current||(o.current=e(r,i));const s=V.useRef(r),{instance:a}=o.current;return V.useEffect(function(){s.current!==r&&(t(a,r,s.current),s.current=r)},[a,r,i]),o}}function K0e(e,t){V.useEffect(function(){return(t.layerContainer??t.map).addLayer(e.instance),function(){var o;(o=t.layerContainer)==null||o.removeLayer(e.instance),t.map.removeLayer(e.instance)}},[t,e])}function X8(e){return function(n){const r=Z8(),i=e(rT(n,r),r);return Y8(r.map,n.attribution),K8(i.current,n.eventHandlers),K0e(i.current,r),i}}function X0e(e,t){const n=oT(e,t),r=X8(n);return Y0e(r)}function Q0e(e,t){const n=oT(e),r=Z0e(n,t);return q0e(r)}function J0e(e,t){const n=oT(e,t),r=X8(n);return G0e(r)}function e1e(e,t,n){const{opacity:r,zIndex:i}=t;r!=null&&r!==n.opacity&&e.setOpacity(r),i!=null&&i!==n.zIndex&&e.setZIndex(i)}function y2(){return y2=Object.assign||function(e){for(var t=1;t(m==null?void 0:m.map)??null,[m]);const y=V.useCallback(_=>{if(_!==null&&m===null){const w=new ph.Map(_,f);n!=null&&c!=null?w.setView(n,c):e!=null&&w.fitBounds(e,t),l!=null&&w.whenReady(l),v(H0e(w))}},[]);V.useEffect(()=>()=>{m==null||m.map.remove()},[m]);const x=m?U.createElement(G8,{value:m},r):s??null;return U.createElement("div",y2({},p,{ref:y}),x)}const n1e=V.forwardRef(t1e),r1e=X0e(function({position:t,...n},r){const i=new ph.Marker(t,n);return iT(i,W0e(r,{overlayContainer:i}))},function(t,n,r){n.position!==r.position&&t.setLatLng(n.position),n.icon!=null&&n.icon!==r.icon&&t.setIcon(n.icon),n.zIndexOffset!=null&&n.zIndexOffset!==r.zIndexOffset&&t.setZIndexOffset(n.zIndexOffset),n.opacity!=null&&n.opacity!==r.opacity&&t.setOpacity(n.opacity),t.dragging!=null&&n.draggable!==r.draggable&&(n.draggable===!0?t.dragging.enable():t.dragging.disable())}),i1e=Q0e(function(t,n){const r=new ph.Popup(t,n.overlayContainer);return iT(r,n)},function(t,n,{position:r},i){V.useEffect(function(){const{instance:s}=t;function a(c){c.popup===s&&(s.update(),i(!0))}function l(c){c.popup===s&&i(!1)}return n.map.on({popupopen:a,popupclose:l}),n.overlayContainer==null?(r!=null&&s.setLatLng(r),s.openOn(n.map)):n.overlayContainer.bindPopup(s),function(){var f;n.map.off({popupopen:a,popupclose:l}),(f=n.overlayContainer)==null||f.unbindPopup(),n.map.removeLayer(s)}},[t,n,i,r])}),o1e=J0e(function({url:t,...n},r){const i=new ph.TileLayer(t,rT(n,r));return iT(i,r)},function(t,n,r){e1e(t,n,r);const{url:i}=n;i!=null&&i!==r.url&&t.setUrl(i)});const s1e=()=>g.jsx(o1e,{attribution:'© OpenStreetMap contributors',url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"}),a1e=e=>{if(e.length===0)return{};if(e.length>1)return{bounds:e.map(at("latLong"))};const[{latLong:t}]=e;return{zoom:10,center:t}},Q8=({toggle:e,isOpen:t,title:n,locations:r=[]})=>g.jsx(Vo,{toggle:e,isOpen:t,className:"map-modal__modal",contentClassName:"map-modal__modal-content",children:g.jsxs(Mi,{className:"map-modal__modal-body",children:[g.jsxs("h3",{className:"map-modal__modal-title",children:[n,g.jsx("button",{type:"button",className:"btn-close float-end","aria-label":"Close",onClick:e})]}),g.jsxs(n1e,{...a1e(r),children:[g.jsx(s1e,{}),r.map(({cityName:i,latLong:o,count:s},a)=>g.jsx(r1e,{position:o,children:g.jsxs(i1e,{children:[g.jsx("b",{children:s})," visit",s>1?"s":""," from ",g.jsx("b",{children:i})]})},a))]})]})});const l1e=({modalTitle:e,activeCities:t,locations:n=[]})=>{const[r,,i,o]=hn(),[s,a,l]=hn(),[c,f]=V.useState([]),h=v_(),p=y=>t?y.filter(({cityName:x})=>t==null?void 0:t.includes(x)):y,m=()=>{if(!t){f(n),i();return}l()},v=y=>()=>{f(y?p(n):n),i()};return g.jsxs(g.Fragment,{children:[g.jsx(ht,{color:"link",className:"open-map-modal-btn__btn",id:h,onClick:m,children:g.jsx(je,{icon:Jj})}),g.jsx(Er,{placement:"left",target:h,children:"Show in map"}),g.jsx(Jc,{isOpen:s,toggle:a,inNavbar:!0,children:g.jsxs(eu,{end:!0,children:[g.jsx(Ue,{onClick:v(!1),children:"Show all locations"}),g.jsx(Ue,{onClick:v(!0),children:"Show locations in current page"})]})}),g.jsx(Q8,{toggle:o,isOpen:r,title:e,locations:c})]})},c1e=({onChange:e,selected:t={},className:n,isOrphanVisits:r})=>{const{orphanVisitsType:i,excludeBots:o=!1}=t,s=l=>({active:i===l,onClick:()=>e({...t,orphanVisitsType:l===(t==null?void 0:t.orphanVisitsType)?void 0:l})}),a=()=>e({...t,excludeBots:!(t!=null&&t.excludeBots)});return g.jsxs(Ho,{text:"Filters",dropdownClassName:n,inline:!0,end:!0,minWidth:250,children:[g.jsx(Ue,{header:!0,children:"Bots:"}),g.jsx(Ue,{active:o,onClick:a,children:"Exclude potential bots"}),r&&g.jsxs(g.Fragment,{children:[g.jsx(Ue,{divider:!0}),g.jsx(Ue,{header:!0,children:"Orphan visits type:"}),g.jsx(Ue,{...s("base_url"),children:"Base URL"}),g.jsx(Ue,{...s("invalid_short_url"),children:"Invalid short URL"}),g.jsx(Ue,{...s("regular_404"),children:"Regular 404"})]}),g.jsx(Ue,{divider:!0}),g.jsx(Ue,{disabled:!vi(t),onClick:()=>e({excludeBots:!1,orphanVisitsType:void 0}),children:g.jsx("i",{children:"Clear filters"})})]})},J8=(e,t)=>!$o(e)&&vi(e[t]),CL=e=>typeof e=="number"?e:e?parseFloat(e):0,u1e=(e,{os:t})=>{e[t]=(e[t]||0)+1},f1e=(e,{browser:t})=>{e[t]=(e[t]||0)+1},d1e=(e,{referer:t})=>{e[t]=(e[t]||0)+1},eF=e=>(t,n)=>{const i=J8(n,e)?n[e]:"Unknown";t[i]=(t[i]||0)+1},h1e=eF("country"),p1e=eF("city"),m1e=(e,t)=>{if(!J8(t,"city")||t.city==="Unknown")return;const{city:n,latitude:r,longitude:i}=t,o=e[n]||{cityName:n,count:0,latLong:[CL(r),CL(i)]};o.count+=1,e[n]=o},g1e=(e,t)=>{if(!n0e(t))return;const{visitedUrl:n}=t;e[n]=(e[n]||0)+1},tF=e=>e.reduce((t,n)=>(u1e(t.os,n),f1e(t.browsers,n),d1e(t.referrers,n),h1e(t.countries,n),p1e(t.cities,n),m1e(t.citiesForMap,n),g1e(t.visitedUrls,n),t),{os:{},browsers:{},referrers:{},countries:{},cities:{},citiesForMap:{},visitedUrls:{}}),nF=Bd(e=>{const{userAgent:t,date:n,referer:r,visitLocation:i,potentialBot:o}=e,s={date:n,potentialBot:o,...S0e(t),referer:C0e(r),country:(i==null?void 0:i.countryName)||"Unknown",city:(i==null?void 0:i.cityName)||"Unknown",latitude:i==null?void 0:i.latitude,longitude:i==null?void 0:i.longitude};return JE(e)?{...s,type:e.type,visitedUrl:e.visitedUrl}:s}),v1e=Object.freeze(Object.defineProperty({__proto__:null,normalizeVisits:nF,processStatsFromVisits:tF},Symbol.toStringTag,{value:"Module"}));const ef=20,y1e=({browser:e,os:t,referer:n,country:r,city:i,...o},s)=>`${e} ${t} ${n} ${r} ${i} ${o.visitedUrl}`.toLowerCase().includes(s.toLowerCase()),_1e=(e,t)=>t.filter(n=>y1e(n,e)),b1e=(e,t)=>Nj(t,e),w1e=(e,t,n)=>{const r=t?_1e(t,e):[...e],i=b1e(n,r),o=i.length;return{visitsGroups:ad(ef,i),total:o}},x1e=({visits:e,selectedVisits:t=[],setSelectedVisits:n,matchMedia:r=window.matchMedia,isOrphanVisits:i=!1})=>{var k,N;const o="visits-table__header-cell visits-table__sticky",s=()=>r("(max-width: 767px)").matches,[a,l]=V.useState(s()),[c,f]=V.useState(void 0),[h,p]=V.useState({}),m=V.useMemo(()=>w1e(e,c,h),[c,h]),v=V.useRef(!0),[y,x]=V.useState(1),_=y*ef,w=_-ef,S=8+Number(i),T=D=>()=>p({field:D,dir:e_(D,h.field,h.dir)}),P=D=>g.jsx(Rf,{currentOrder:h,field:D,className:"visits-table__header-icon"});return V.useEffect(()=>{const D=()=>l(s());return window.addEventListener("resize",D),()=>window.removeEventListener("resize",D)},[]),V.useEffect(()=>{x(1),!v.current&&n([]),v.current=!1},[c]),g.jsx("div",{className:"table-responsive-md",children:g.jsxs("table",{className:"table table-bordered table-hover table-sm visits-table",children:[g.jsxs("thead",{className:"visits-table__header",children:[g.jsxs("tr",{children:[g.jsx("th",{className:`${o} text-center`,onClick:()=>n(t.length0})})}),g.jsxs("th",{className:`${o} text-center`,onClick:T("potentialBot"),children:[g.jsx(je,{icon:_M}),P("potentialBot")]}),g.jsxs("th",{className:o,onClick:T("date"),children:["Date",P("date")]}),g.jsxs("th",{className:o,onClick:T("country"),children:["Country",P("country")]}),g.jsxs("th",{className:o,onClick:T("city"),children:["City",P("city")]}),g.jsxs("th",{className:o,onClick:T("browser"),children:["Browser",P("browser")]}),g.jsxs("th",{className:o,onClick:T("os"),children:["OS",P("os")]}),g.jsxs("th",{className:o,onClick:T("referer"),children:["Referrer",P("referer")]}),i&&g.jsxs("th",{className:o,onClick:T("visitedUrl"),children:["Visited URL",P("visitedUrl")]})]}),g.jsx("tr",{children:g.jsx("td",{colSpan:S,className:"p-0",children:g.jsx(ih,{noBorder:!0,large:!1,onChange:f})})})]}),g.jsxs("tbody",{children:[!((k=m.visitsGroups[y-1])!=null&&k.length)&&g.jsx("tr",{children:g.jsx("td",{colSpan:S,className:"text-center",children:"No visits found with current filtering"})}),(N=m.visitsGroups[y-1])==null?void 0:N.map((D,z)=>{const A=t.includes(D);return g.jsxs("tr",{style:{cursor:"pointer"},className:me({"table-active":A}),onClick:()=>n(A?t.filter(W=>W!==D):[...t,D]),children:[g.jsx("td",{className:"text-center",children:A&&g.jsx(je,{icon:cd,className:"text-primary"})}),g.jsx("td",{className:"text-center",children:D.potentialBot&&g.jsxs(g.Fragment,{children:[g.jsx(je,{icon:_M,id:`botIcon${z}`}),g.jsx(Er,{placement:"right",target:`botIcon${z}`,children:"Potentially a visit from a bot or crawler"})]})}),g.jsx("td",{children:g.jsx(ny,{date:D.date})}),g.jsx("td",{children:D.country}),g.jsx("td",{children:D.city}),g.jsx("td",{children:D.browser}),g.jsx("td",{children:D.os}),g.jsx("td",{children:D.referer}),i&&g.jsx("td",{children:D.visitedUrl})]},z)})]}),m.total>ef&&g.jsx("tfoot",{children:g.jsx("tr",{children:g.jsx("td",{colSpan:S,className:"visits-table__footer-cell visits-table__sticky",children:g.jsxs("div",{className:"row",children:[g.jsx("div",{className:"col-md-6",children:g.jsx(qE,{pagesCount:Math.ceil(m.total/ef),currentPage:y,setCurrentPage:x,centered:a})}),g.jsx("div",{className:me("col-md-6",{"d-flex align-items-center flex-row-reverse":!a,"text-center mt-3":a}),children:g.jsxs("div",{children:["Visits ",g.jsx("b",{children:_n(w+1)})," to"," ",g.jsx("b",{children:_n(kj(_,m.total))})," of"," ",g.jsx("b",{children:_n(m.total)})]})})]})})})})]})})},jl={byTime:{title:"By time",subPath:"by-time",icon:YX},byContext:{title:"By context",subPath:"by-context",icon:uC},byLocation:{title:"By location",subPath:"by-location",icon:Jj},list:{title:"List",subPath:"list",icon:Qj}};let $p;const mh=({children:e,visitsInfo:t,getVisits:n,cancelGetVisits:r,settings:i,exportCsv:o,isOrphanVisits:s=!1})=>{var H;const{visits:a,loading:l,loadingLarge:c,error:f,errorData:h,progress:p,fallbackInterval:m}=t,[{dateRange:v,visitsFilter:y},x]=U0e(),_=Dt(({startDate:q,endDate:te})=>({dateRange:{startDate:q??void 0,endDate:te??void 0}}),x),w=V.useRef(v??m??((H=i.visits)==null?void 0:H.defaultInterval)??"last30Days"),[S,T]=V.useState([]),[P,k]=V.useState(),N=V.useRef(!0),{search:D}=Pn(),z=q=>q?`${q}${D}`:D,A=V.useMemo(()=>nF(a),[a]),{os:W,browsers:Y,referrers:J,countries:Z,cities:ee,citiesForMap:ie,visitedUrls:oe}=V.useMemo(()=>tF(A),[A]),G=V.useMemo(()=>{var q;return{...y,excludeBots:y.excludeBots??((q=i.visits)==null?void 0:q.excludeBots)}},[y]),F=Kc(ie),j=q=>{$p=void 0,T(q)},B=q=>te=>{const se=`${q}_${te}`;$p===se?(T([]),k(void 0),$p=void 0):(T(A.filter(bZ(q,te))),k(te),$p=se)};V.useEffect(()=>r,[]),V.useEffect(()=>{const q=N.current?v??ipe(w.current):v;n({dateRange:q,filter:G},N.current),N.current=!1},[v,y]),V.useEffect(()=>{var q;m&&w.current===(((q=i.visits)==null?void 0:q.defaultInterval)??"last30Days")&&(w.current=m)},[m]);const ne=()=>c?g.jsxs(Co,{loading:!0,children:["This is going to take a while... :S",g.jsx(XC,{value:p,striped:p===100,className:"mt-3"})]}):l?g.jsx(Co,{loading:!0}):f?g.jsx(Nr,{type:"error",children:g.jsx(Do,{errorData:h,fallbackMessage:"An error occurred while loading visits :("})}):Wn(a)?g.jsx(Co,{children:"There are no visits matching current filter"}):g.jsxs(g.Fragment,{children:[g.jsx(z5,{fill:!0,children:Object.values(jl).map(({title:q,icon:te,subPath:se},pe)=>g.jsxs(kf,{to:z(se),replace:!0,children:[g.jsx(je,{icon:te}),g.jsx("span",{className:"ms-2 d-none d-sm-inline",children:q})]},pe))}),g.jsx(Qn,{children:g.jsxs(Zy,{children:[g.jsx(gt,{path:jl.byTime.subPath,element:g.jsx("div",{className:"col-12 mt-3",children:g.jsx(N0e,{title:"Visits during time",visits:A,highlightedVisits:S,highlightedLabel:P,setSelectedVisits:j})})}),g.jsx(gt,{path:jl.byContext.subPath,element:g.jsxs(g.Fragment,{children:[g.jsx("div",{className:me("mt-3 col-lg-6",{"col-xl-4":!s}),children:g.jsx(gL,{title:"Operating systems",stats:W})}),g.jsx("div",{className:me("mt-3 col-lg-6",{"col-xl-4":!s}),children:g.jsx(gL,{title:"Browsers",stats:Y})}),g.jsx("div",{className:me("mt-3",{"col-xl-4":!s,"col-lg-6":s}),children:g.jsx(Fp,{title:"Referrers",stats:J,withPagination:!1,highlightedStats:jp(S,"referer"),highlightedLabel:P,sortingItems:{name:"Referrer name",amount:"Visits amount"},onClick:B("referer")})}),s&&g.jsx("div",{className:"mt-3 col-lg-6",children:g.jsx(Fp,{title:"Visited URLs",stats:oe,highlightedLabel:P,highlightedStats:jp(S,"visitedUrl"),sortingItems:{visitedUrl:"Visited URL",amount:"Visits amount"},onClick:B("visitedUrl")})})]})}),g.jsx(gt,{path:jl.byLocation.subPath,element:g.jsxs(g.Fragment,{children:[g.jsx("div",{className:"col-lg-6 mt-3",children:g.jsx(Fp,{title:"Countries",stats:Z,highlightedStats:jp(S,"country"),highlightedLabel:P,sortingItems:{name:"Country name",amount:"Visits amount"},onClick:B("country")})}),g.jsx("div",{className:"col-lg-6 mt-3",children:g.jsx(Fp,{title:"Cities",stats:ee,highlightedStats:jp(S,"city"),highlightedLabel:P,extraHeaderContent:q=>F.length>0&&g.jsx(l1e,{modalTitle:"Cities",locations:F,activeCities:q}),sortingItems:{name:"City name",amount:"Visits amount"},onClick:B("city")})})]})}),g.jsx(gt,{path:jl.list.subPath,element:g.jsx("div",{className:"col-12",children:g.jsx(x1e,{visits:A,selectedVisits:S,setSelectedVisits:j,isOrphanVisits:s})})}),g.jsx(gt,{path:"*",element:g.jsx(BS,{replace:!0,to:z(jl.byTime.subPath)})})]})})]});return g.jsxs(g.Fragment,{children:[e,g.jsx("section",{className:"mt-3",children:g.jsxs("div",{className:"row flex-md-row-reverse",children:[g.jsx("div",{className:"col-lg-7 col-xl-6",children:g.jsxs("div",{className:"d-md-flex",children:[g.jsx("div",{className:"flex-fill",children:g.jsx(m8,{updatable:!0,disabled:l,initialDateRange:w.current,defaultText:"All visits",onDatesChange:_})}),g.jsx(c1e,{className:"ms-0 ms-md-2 mt-3 mt-md-0",isOrphanVisits:s,selected:G,onChange:q=>x({visitsFilter:q})})]})}),a.length>0&&g.jsx("div",{className:"col-lg-5 col-xl-6 mt-3 mt-lg-0",children:g.jsxs("div",{className:"d-flex",children:[g.jsx(Z5,{className:"btn-md-block",amount:A.length,onClick:()=>o(A)}),g.jsxs(ht,{outline:!0,disabled:S.length===0,className:"btn-md-block ms-2",onClick:()=>j([]),children:["Clear selection ",S.length>0&&g.jsxs(g.Fragment,{children:["(",_n(S.length),")"]})]})]})})]})}),g.jsx("section",{className:"mt-3",children:ne()})]})},S1e=({exportVisits:e})=>ra(({getDomainVisits:t,domainVisits:n,cancelGetDomainVisits:r,settings:i})=>{const o=na(),{domain:s=""}=Xs(),[a,l=a]=s.split("_"),c=(h,p)=>t({domain:l,query:dh(h),doIntervalFallback:p}),f=h=>e(`domain_${a}_visits.csv`,h);return g.jsx(mh,{getVisits:c,cancelGetVisits:r,visitsInfo:n,settings:i,exportCsv:f,children:g.jsx(hh,{goBack:o,visits:n.visits,title:`"${a}" visits`})})},()=>[Xr.visits]),C1e=({exportVisits:e})=>ra(({getNonOrphanVisits:t,nonOrphanVisits:n,cancelGetNonOrphanVisits:r,settings:i})=>{const o=na(),s=l=>e("non_orphan_visits.csv",l),a=(l,c)=>t({query:dh(l),doIntervalFallback:c});return g.jsx(mh,{getVisits:a,cancelGetVisits:r,visitsInfo:n,settings:i,exportCsv:s,children:g.jsx(hh,{title:"Non-orphan visits",goBack:o,visits:n.visits})})},()=>[Xr.visits]),E1e=({exportVisits:e})=>ra(({getOrphanVisits:t,orphanVisits:n,cancelGetOrphanVisits:r,settings:i})=>{const o=na(),s=l=>e("orphan_visits.csv",l),a=(l,c)=>{var f;return t({query:dh(l),orphanVisitsType:(f=l.filter)==null?void 0:f.orphanVisitsType,doIntervalFallback:c})};return g.jsx(mh,{getVisits:a,cancelGetVisits:r,visitsInfo:n,settings:i,exportCsv:s,isOrphanVisits:!0,children:g.jsx(hh,{title:"Orphan visits",goBack:o,visits:n.visits})})},()=>[Xr.orphanVisits]),rF="shlink/orphanVisits",T1e={visits:[],loading:!1,loadingLarge:!1,error:!1,cancelLoad:!1,progress:0},O1e=e=>lh({typePrefix:`${rF}/getNonOrphanVisits`,createLoaders:({query:t={},doIntervalFallback:n=!1},r)=>{const{getNonOrphanVisits:i}=e(r),o=async(a,l)=>i({...t,page:a,itemsPerPage:l}),s=ch(n,i);return[o,s]},getExtraFulfilledPayload:({query:t={}})=>({query:t}),shouldCancel:t=>t().orphanVisits.cancelLoad}),P1e=e=>uh({name:rF,initialState:T1e,asyncThunkCreator:e,filterCreatedVisits:({query:t={}},n)=>{const{startDate:r,endDate:i}=t;return n.filter(({visit:o})=>oh(o.date,r,i))}}),iF="shlink/orphanVisits",k1e={visits:[],loading:!1,loadingLarge:!1,error:!1,cancelLoad:!1,progress:0},M1e=(e,t)=>!t||t===e.type,R1e=e=>lh({typePrefix:`${iF}/getOrphanVisits`,createLoaders:({orphanVisitsType:t,query:n={},doIntervalFallback:r=!1},i)=>{const{getOrphanVisits:o}=e(i),s=async(l,c)=>o({...n,page:l,itemsPerPage:c}).then(f=>{const h=f.data.filter(p=>JE(p)&&M1e(p,t));return{...f,data:h}}),a=ch(r,o);return[s,a]},getExtraFulfilledPayload:({query:t={}})=>({query:t}),shouldCancel:t=>t().orphanVisits.cancelLoad}),N1e=e=>uh({name:iF,initialState:k1e,asyncThunkCreator:e,filterCreatedVisits:({query:t={}},n)=>{const{startDate:r,endDate:i}=t;return n.filter(({visit:o,shortUrl:s})=>!s&&oh(o.date,r,i))}}),oF="shlink/shortUrlVisits",L1e={visits:[],shortCode:"",domain:void 0,loading:!1,loadingLarge:!1,error:!1,cancelLoad:!1,progress:0},D1e=e=>lh({typePrefix:`${oF}/getShortUrlVisits`,createLoaders:({shortCode:t,query:n={},doIntervalFallback:r=!1},i)=>{const{getShortUrlVisits:o}=e(i),s=async(l,c)=>o(t,{...n,page:l,itemsPerPage:c}),a=ch(r,async l=>o(t,{...l,domain:n.domain}));return[s,a]},getExtraFulfilledPayload:({shortCode:t,query:n={}})=>({shortCode:t,query:n,domain:n.domain}),shouldCancel:t=>t().shortUrlVisits.cancelLoad}),A1e=e=>uh({name:oF,initialState:L1e,asyncThunkCreator:e,filterCreatedVisits:({shortCode:t,domain:n,query:r={}},i)=>{const{startDate:o,endDate:s}=r;return i.filter(({shortUrl:a,visit:l})=>a&&Ef(a,t,n)&&oh(l.date,o,s))}}),sF="shlink/tagVisits",j1e={visits:[],tag:"",loading:!1,loadingLarge:!1,error:!1,cancelLoad:!1,progress:0},I1e=e=>lh({typePrefix:`${sF}/getTagVisits`,createLoaders:({tag:t,query:n={},doIntervalFallback:r=!1},i)=>{const{getTagVisits:o}=e(i),s=async(l,c)=>o(t,{...n,page:l,itemsPerPage:c}),a=ch(r,async l=>o(t,l));return[s,a]},getExtraFulfilledPayload:({tag:t,query:n={}})=>({tag:t,query:n}),shouldCancel:t=>t().tagVisits.cancelLoad}),F1e=e=>uh({name:sF,initialState:j1e,asyncThunkCreator:e,filterCreatedVisits:({tag:t,query:n={}},r)=>{const{startDate:i,endDate:o}=n;return r.filter(({shortUrl:s,visit:a})=>(s==null?void 0:s.tags.includes(t))&&oh(a.date,i,o))}}),aF="shlink/visitsOverview",Bp={nonOrphanVisits:{total:0},orphanVisits:{total:0},loading:!1,error:!1},EL=e=>e.filter(({visit:t})=>t.potentialBot).length,$1e=e=>rr(`${aF}/loadVisitsOverview`,(t,{getState:n})=>e(n).getVisitsOverview().then(r=>{var i,o,s,a,l,c;return{nonOrphanVisits:{total:((i=r.nonOrphanVisits)==null?void 0:i.total)??r.visitsCount,nonBots:(o=r.nonOrphanVisits)==null?void 0:o.nonBots,bots:(s=r.nonOrphanVisits)==null?void 0:s.bots},orphanVisits:{total:((a=r.orphanVisits)==null?void 0:a.total)??r.orphanVisitsCount,nonBots:(l=r.orphanVisits)==null?void 0:l.nonBots,bots:(c=r.orphanVisits)==null?void 0:c.bots}}})),B1e=e=>Yn({name:aF,initialState:Bp,reducers:{},extraReducers:t=>{t.addCase(e.pending,()=>({...Bp,loading:!0})),t.addCase(e.rejected,()=>({...Bp,error:!0})),t.addCase(e.fulfilled,(n,{payload:r})=>({...Bp,...r})),t.addCase(ah,({nonOrphanVisits:n,orphanVisits:r,...i},{payload:o})=>{const{nonOrphanVisits:s,orphanVisits:a}=r0e(o.createdVisits),l=s.length,c=EL(s),f=l-c,h=a.length,p=EL(a),m=h-p;return{...i,nonOrphanVisits:{total:n.total+l,bots:n.bots&&n.bots+c,nonBots:n.nonBots&&n.nonBots+f},orphanVisits:{total:r.total+h,bots:r.bots&&r.bots+p,nonBots:r.nonBots&&r.nonBots+m}}})}});const z1e=({shortUrlDetail:e,shortUrlVisits:t,goBack:n})=>{const{shortUrl:r,loading:i}=e,{visits:o}=t,s=(r==null?void 0:r.shortUrl)??"",a=(r==null?void 0:r.longUrl)??"",l=r==null?void 0:r.title,c=()=>r?g.jsxs("span",{children:[g.jsx("b",{id:"created",className:"short-url-visits-header__created-at",children:g.jsx(ny,{date:r.dateCreated,relative:!0})}),g.jsx(Er,{placement:"bottom",target:"created",children:g.jsx(ny,{date:r.dateCreated})})]}):g.jsx("small",{children:"Loading..."}),f=g.jsxs(g.Fragment,{children:["Visits for ",g.jsx(Ci,{href:s})]});return g.jsxs(hh,{title:f,goBack:n,visits:o,shortUrl:r,children:[g.jsx("hr",{}),g.jsxs("div",{children:["Created: ",c()]}),g.jsxs("div",{className:"long-url-container",children:[`${l?"Title":"Long URL"}: `,i&&g.jsx("small",{children:"Loading..."}),!i&&g.jsx(Ci,{href:a,children:l??a})]})]})},U1e=({exportVisits:e})=>ra(({shortUrlVisits:t,shortUrlDetail:n,getShortUrlVisits:r,getShortUrlDetail:i,cancelGetShortUrlVisits:o,settings:s})=>{const{shortCode:a=""}=Xs(),{search:l}=Pn(),c=na(),{domain:f}=fl(l),h=(m,v)=>r({shortCode:pm(a),query:{...dh(m),domain:f},doIntervalFallback:v}),p=m=>{var v;return e(`short-url_${(v=n.shortUrl)==null?void 0:v.shortUrl.replace(/https?:\/\//g,"")}_visits.csv`,m)};return V.useEffect(()=>{i({shortCode:pm(a),domain:f})},[]),g.jsx(mh,{getVisits:h,cancelGetVisits:o,visitsInfo:t,settings:s,exportCsv:p,children:g.jsx(z1e,{shortUrlDetail:n,shortUrlVisits:t,goBack:c})})},(t,n)=>n.shortCode?[Xr.shortUrlVisits(pm(n.shortCode))]:[]),V1e=({tagVisits:e,goBack:t,colorGenerator:n})=>{const{visits:r,tag:i}=e,o=g.jsxs("span",{className:"d-flex align-items-center justify-content-center",children:[g.jsx("span",{className:"me-2",children:"Visits for"}),g.jsx($E,{text:i,colorGenerator:n})]});return g.jsx(hh,{title:o,goBack:t,visits:r})},H1e=(e,{exportVisits:t})=>ra(({getTagVisits:n,tagVisits:r,cancelGetTagVisits:i,settings:o})=>{const s=na(),{tag:a=""}=Xs(),l=(f,h)=>n({tag:a,query:dh(f),doIntervalFallback:h}),c=f=>t(`tag_${a}_visits.csv`,f);return g.jsx(mh,{getVisits:l,cancelGetVisits:i,visitsInfo:r,settings:o,exportCsv:c,children:g.jsx(V1e,{tagVisits:r,goBack:s,colorGenerator:e})})},()=>[Xr.visits]),W1e=(e,t)=>{e.serviceFactory("MapModal",()=>Q8),e.serviceFactory("ShortUrlVisits",U1e,"ReportExporter"),e.decorator("ShortUrlVisits",t(["shortUrlVisits","shortUrlDetail","mercureInfo","settings"],["getShortUrlVisits","getShortUrlDetail","cancelGetShortUrlVisits","createNewVisits","loadMercureInfo"])),e.serviceFactory("TagVisits",H1e,"ColorGenerator","ReportExporter"),e.decorator("TagVisits",t(["tagVisits","mercureInfo","settings"],["getTagVisits","cancelGetTagVisits","createNewVisits","loadMercureInfo"])),e.serviceFactory("DomainVisits",S1e,"ReportExporter"),e.decorator("DomainVisits",t(["domainVisits","mercureInfo","settings"],["getDomainVisits","cancelGetDomainVisits","createNewVisits","loadMercureInfo"])),e.serviceFactory("OrphanVisits",E1e,"ReportExporter"),e.decorator("OrphanVisits",t(["orphanVisits","mercureInfo","settings"],["getOrphanVisits","cancelGetOrphanVisits","createNewVisits","loadMercureInfo"])),e.serviceFactory("NonOrphanVisits",C1e,"ReportExporter"),e.decorator("NonOrphanVisits",t(["nonOrphanVisits","mercureInfo","settings"],["getNonOrphanVisits","cancelGetNonOrphanVisits","createNewVisits","loadMercureInfo"])),e.serviceFactory("VisitsParser",()=>v1e),e.serviceFactory("getShortUrlVisits",D1e,"buildShlinkApiClient"),e.serviceFactory("cancelGetShortUrlVisits",at("cancelGetVisits"),"shortUrlVisitsReducerCreator"),e.serviceFactory("getTagVisits",I1e,"buildShlinkApiClient"),e.serviceFactory("cancelGetTagVisits",at("cancelGetVisits"),"tagVisitsReducerCreator"),e.serviceFactory("getDomainVisits",lpe,"buildShlinkApiClient"),e.serviceFactory("cancelGetDomainVisits",at("cancelGetVisits"),"domainVisitsReducerCreator"),e.serviceFactory("getOrphanVisits",R1e,"buildShlinkApiClient"),e.serviceFactory("cancelGetOrphanVisits",at("cancelGetVisits"),"orphanVisitsReducerCreator"),e.serviceFactory("getNonOrphanVisits",O1e,"buildShlinkApiClient"),e.serviceFactory("cancelGetNonOrphanVisits",at("cancelGetVisits"),"nonOrphanVisitsReducerCreator"),e.serviceFactory("createNewVisits",()=>ah),e.serviceFactory("loadVisitsOverview",$1e,"buildShlinkApiClient"),e.serviceFactory("visitsOverviewReducerCreator",B1e,"loadVisitsOverview"),e.serviceFactory("visitsOverviewReducer",at("reducer"),"visitsOverviewReducerCreator"),e.serviceFactory("domainVisitsReducerCreator",cpe,"getDomainVisits"),e.serviceFactory("domainVisitsReducer",at("reducer"),"domainVisitsReducerCreator"),e.serviceFactory("nonOrphanVisitsReducerCreator",P1e,"getNonOrphanVisits"),e.serviceFactory("nonOrphanVisitsReducer",at("reducer"),"nonOrphanVisitsReducerCreator"),e.serviceFactory("orphanVisitsReducerCreator",N1e,"getOrphanVisits"),e.serviceFactory("orphanVisitsReducer",at("reducer"),"orphanVisitsReducerCreator"),e.serviceFactory("shortUrlVisitsReducerCreator",A1e,"getShortUrlVisits"),e.serviceFactory("shortUrlVisitsReducer",at("reducer"),"shortUrlVisitsReducerCreator"),e.serviceFactory("tagVisitsReducerCreator",F1e,"getTagVisits"),e.serviceFactory("tagVisitsReducer",at("reducer"),"tagVisitsReducerCreator")},si=new Pq,{container:sT}=si,Y1e=(e,t)=>(...n)=>e[t](...n),q1e=(e,t)=>({...e,[t]:Y1e(sT,t)}),ia=(e,t=[])=>ZW(e?Mj(e):null,t.reduce(q1e,{}));Wse(si,ia);Oae(si,ia);VX(si);Bve(si,ia);pme(si,ia);Aye(si,ia);W1e(si,ia);t0e(si);Spe(si);Ime(si,ia);bpe(si,ia);var aT={},_2={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.isPlainObject=t.clone=t.recursive=t.merge=t.main=void 0,e.exports=t=n,t.default=n;function n(){for(var c=[],f=0;fF.length)&&(j=F.length);for(var B=0,ne=Array(j);Bj6({servers:ome,selectedServer:e.selectedServerReducer,shortUrlsList:e.shortUrlsListReducer,shortUrlCreation:e.shortUrlCreationReducer,shortUrlDeletion:e.shortUrlDeletionReducer,shortUrlEdition:e.shortUrlEditionReducer,shortUrlDetail:e.shortUrlDetailReducer,shortUrlVisits:e.shortUrlVisitsReducer,tagVisits:e.tagVisitsReducer,domainVisits:e.domainVisitsReducer,orphanVisits:e.orphanVisitsReducer,nonOrphanVisits:e.nonOrphanVisitsReducer,tagsList:e.tagsListReducer,tagDelete:e.tagDeleteReducer,tagEdit:e.tagEditReducer,mercureInfo:e.mercureInfoReducer,settings:Pme,domainsList:e.domainsListReducer,visitsOverview:e.visitsOverviewReducer,appUpdated:Hse,sidebar:yae}),K1e=e=>{var t;return e.settings&&((t=e.settings.visits)==null?void 0:t.defaultInterval)==="last180days"&&e.settings.visits&&(e.settings.visits.defaultInterval="last180Days"),e},X1e=!0,lF={states:["settings","servers"],namespace:"shlink",namespaceSeparator:".",debounce:300},Q1e=K1e(aT.load(lF)),J1e=e=>pse({devTools:!X1e,reducer:Z1e(e),preloadedState:Q1e,middleware:t=>t({immutableCheck:!1,serializableCheck:!1}).prepend(e.selectServerListener.middleware).concat(aT.save(lF))}),ebe=!!(window.location.hostname==="localhost"||window.location.hostname==="[::1]"||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/));function tbe(e){if("serviceWorker"in navigator){if(new URL(Ug.homepage,window.location.href).origin!==window.location.origin)return;window.addEventListener("load",()=>{const n=`${Ug.homepage}/service-worker.js`;ebe?(nbe(n,e),navigator.serviceWorker.ready.then(()=>{console.log("This web app is being served cache-first by a service worker. To learn more, visit https://cra.link/PWA")})):cF(n,e)})}}function cF(e,t){navigator.serviceWorker.register(e).then(n=>{n.onupdatefound=()=>{const r=n.installing;r!=null&&(r.onstatechange=()=>{r.state==="installed"&&(navigator.serviceWorker.controller?(console.log("New content is available and will be used when all tabs for this page are closed. See https://cra.link/PWA."),t&&t.onUpdate&&t.onUpdate(n)):(console.log("Content is cached for offline use."),t&&t.onSuccess&&t.onSuccess(n)))})}}).catch(n=>{console.error("Error during service worker registration:",n)})}function nbe(e,t){fetch(e,{headers:{"Service-Worker":"script"}}).then(n=>{const r=n.headers.get("content-type");n.status===404||r!=null&&r.indexOf("javascript")===-1?navigator.serviceWorker.ready.then(i=>{i.unregister().then(()=>{window.location.reload()})}):cF(e,t)}).catch(()=>{console.log("No internet connection found. App is running in offline mode.")})}const rbe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=",ibe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAABSCAMAAAAhFXfZAAAC91BMVEVMaXEzeak2f7I4g7g3g7cua5gzeKg8hJo3grY4g7c3grU0gLI2frE0daAubJc2gbQwd6QzeKk2gLMtd5sxdKIua5g1frA2f7IydaM0e6w2fq41fK01eqo3grgubJgta5cxdKI1f7AydaQydaMxc6EubJgvbJkwcZ4ubZkwcJwubZgubJcydqUydKIxapgubJctbJcubZcubJcvbJYubJcvbZkubJctbJctbZcubJg2f7AubJcrbZcubJcubJcua5g3grY0fq8ubJcubJdEkdEwhsw6i88vhswuhcsuhMtBjMgthMsrg8srgss6is8qgcs8i9A9iMYtg8spgcoogMo7hcMngMonf8olfso4gr8kfck5iM8jfMk4iM8he8k1fro7itAgesk2hs8eecgzfLcofssdeMg0hc4cd8g2hcsxeLQbdsgZdcgxeLImfcszhM0vda4xgckzhM4xg84wf8Yxgs4udKsvfcQucqhUndROmdM1fK0wcZ8vb5w0eqpQm9MzeKhXoNVcpdYydKNWn9VZotVKltJFjsIwcJ1Rms9OlslLmtH///8+kc9epdYzd6dbo9VHkMM2f7FHmNBClM8ydqVcpNY9hro3gLM9hLczealQmcw3fa46f7A8gLMxc6I3eagyc6FIldJMl9JSnNRSntNNl9JPnNJFi75UnM9ZodVKksg8kM45jc09e6ZHltFBk883gbRBh7pDk9EwcaBzn784g7dKkcY2i81Om9M7j85Llc81is09g7Q4grY/j9A0eqxKmdFFltBEjcXf6fFImdBCiLxJl9FGlNFBi78yiMxVndEvbpo6js74+vx+psPP3+o/ks5HkcpGmNCjwdZCkNDM3ehYoNJEls+lxNkxh8xHks0+jdC1zd5Lg6r+/v/H2ufz9/o3jM3t8/edvdM/k89Th61OiLBSjbZklbaTt9BfptdjmL1AicBHj8hGk9FAgK1dkLNTjLRekrdClc/k7fM0icy0y9tgp9c4jc2NtM9Dlc8zicxeXZn3AAAAQ3RSTlMAHDdTb4yPA+LtnEQmC4L2EmHqB7XA0d0sr478x4/Yd5i1zOfyPkf1sLVq4Nh3FvjxopQ2/STNuFzUwFIwxKaejILpIBEV9wAABhVJREFUeF6s1NdyFEcYBeBeoQIhRAkLlRDGrhIgY3BJL8CVeKzuyXFzzjkn5ZxzzuScg3PO8cKzu70JkO0LfxdTU//pM9vTu7Xgf6KqOVTb9X7toRrVEfBf1HTVjZccrT/2by1VV928Yty9ZbVuucdz90frG8DBjl9pVApbOstvmMuvVgaNXSfAAd6pGxpy6yxf5ph43pS/4f3uoaGm2rdu72S9xzOvMymkZFq/ptDrk90mhW7e4zl7HLzhxGWPR20xmSxJ/VqldG5m9XhaVOA1DadsNh3Pu5L2N6QtPO/32JpqQBVVk20oy/Pi2s23WEvyfHbe1thadVQttvm7Llf65gGmXK67XtupyoM7HQhmXdLS8oGWJNeOJ3C5fG5XCEJnkez3/oFdsvgJ4l2ANZwhrJKk/7OSXa+3Vw2WJMlKnGkobouYk6T0TyX30klOUnTD9HJ5qpckL3EW/w4XF3Xd0FGywXUrstrclVsqz5Pd/sXFYyDnPdrLcQODmGOK47IZb4CmibmMn+MYRzFZ5jg33ZL/EJrWcszHmANy3ARBK/IXtciJy8VsitPSdE3uuHxzougojcUdr8/32atnz/ev3f/K5wtpxUTpcaI45zusVDpYtZi+jg0oU9b3x74h7+n9ABvYEZeKaVq0sh0AtLKsFtqNBdeT0MrSzwwlq9+x6xAO4tgOtSzbCjrNQQiNvQUbUEubvzBUeGw26yDCsRHCoLkTHDa7IdOLIThs/gHvChszh2CimE8peRs47cxANI0lYNB5y1DljpOF0IhzBDPOZnDOqYYbeGKECbPzWnXludPphw5c2YBq5zlwXphIbO4VDCZ0gnPfUO1TwZoYwAs2ExPCedAu9DAjfQUjzITQb3jNj0KG2Sgt6BHaQUdYzWz+XmBktOHwanXjaSTcwwziBcuMOtwBmqPrTOxFQR/DRKKPqyur0aiW6cULYsx6tBm0jXpR/AUWR6HRq9WVW6MRhIq5jLyjbaCTDCijyYJNpCajdyobP/eTw0iexBAKkJ3gA5KcQb2zBXsIBckn+xVv8jkZSaEFHE+jFEleAEfayRU0MouNoBmB/L50Ai/HSLIHxcrpCvnhSQAuakKp2C/YbCylJjXRVy/z3+Kv/RrNcCo+WUzlVEhzKffnTQnxeN9fWF88fiNCUdSTsaufaChKWInHeysygfpIqagoakW+vV20J8uyl6TyNKEZWV4oRSPyCkWpgOLSbkCObT8o2r6tlG58HQquf6O0v50tB7JM7F4EORd2dx/K0w/KHsVkLPaoYrwgP/y7krr3SSMA4zj+OBgmjYkxcdIJQyQRKgg2viX9Hddi9UBb29LrKR7CVVEEEXWojUkXNyfTNDE14W9gbHJNuhjDettN3ZvbOvdOqCD3Jp/9l+/wJE+9PkYGjx/fqkys3S2rMozM/o2106rfMUINo6hVqz+eu/hd1c4xTg0TAfy5kV+4UG6+IthHTU9woWmxuKNbTfuCSfovBCxq7EtHqvYL4Sm6F8GVxsSXHMQ07TOi1DKtZxjWaaIyi4CXWjxPccUw8WVbMYY5wxC1mzEyXMJWkllpRloi+Kkoq69sxBTlElF6aAxYUbjXNlhlDZilDnM4U5SlN5biRsRHnbx3mbeWjEh4mEyiuJDl5XcWVmX5GvNkFgLWZM5qwsop4/AWfLhU1cR7k1VVvcYCWRkOI6Xy5gmnphCYIkvzuNYzHzosq2oNk2RtSs8khfUOfHIDgR6ysYBaMpl4uEgk2U/oJTs9AaTSwma7dT69geAE2ZpEjUsn2ieJNHeKfrI3EcAGJ2ZaNgVuC8EBctCLc57P5u5led6IOBkIYkuQMrmmjChs4VkfOerHqSBkPzZlhe06RslZ3zMjk2sscqKwY0RcjKK+LWbzd7KiHhkncs/siFJ+V5eXxD34B8nVuJEpGJNmxN2gH3vSvp7J70tF+D1Ej8qUJD1TkErAND2GZwTFg/LubvmgiBG3SOvdlsqFQrkEzJCL1rstlnVFROixZoDDSuXQFHESwVGlcuQcMb/b42NgjLowh5MTDFE3vNB5qStRIErdCQEh6pLPR92anSUb/wAIhldAaDMpGgAAAABJRU5ErkJggg==",obe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACkAAAApCAQAAAACach9AAACMUlEQVR4Ae3ShY7jQBAE0Aoz/f9/HTMzhg1zrdKUrJbdx+Kd2nD8VNudfsL/Th///dyQN2TH6f3y/BGpC379rV+S+qqetBOxImNQXL8JCAr2V4iMQXHGNJxeCfZXhSRBcQMfvkOWUdtfzlLgAENmZDcmo2TVmt8OSM2eXxBp3DjHSMFutqS7SbmemzBiR+xpKCNUIRkdkkYxhAkyGoBvyQFEJEefwSmmvBfJuJ6aKqKWnAkvGZOaZXTUgFqYULWNSHUckZuR1HIIimUExutRxwzOLROIG4vKmCKQt364mIlhSyzAf1m9lHZHJZrlAOMMztRRiKimp/rpdJDc9Awry5xTZCte7FHtuS8wJgeYGrex28xNTd086Dik7vUMscQOa8y4DoGtCCSkAKlNwpgNtphjrC6MIHUkR6YWxxs6Sc5xqn222mmCRFzIt8lEdKx+ikCtg91qS2WpwVfBelJCiQJwvzixfI9cxZQWgiSJelKnwBElKYtDOb2MFbhmUigbReQBV0Cg4+qMXSxXSyGUn4UbF8l+7qdSGnTC0XLCmahIgUHLhLOhpVCtw4CzYXvLQWQbJNmxoCsOKAxSgBJno75avolkRw8iIAFcsdc02e9iyCd8tHwmeSSoKTowIgvscSGZUOA7PuCN5b2BX9mQM7S0wYhMNU74zgsPBj3HU7wguAfnxxjFQGBE6pwN+GjME9zHY7zGp8wVxMShYX9NXvEWD3HbwJf4giO4CFIQxXScH1/TM+04kkBiAAAAAElFTkSuQmCC",sbe=()=>{delete SL.Icon.Default.prototype._getIconUrl,SL.Icon.Default.mergeOptions({iconRetinaUrl:ibe,iconUrl:rbe,shadowUrl:obe})};sbe();const uF=J1e(sT),{App:abe,ScrollToTop:lbe,ErrorHandler:cbe,appUpdateAvailable:ube}=sT;I4(document.getElementById("root")).render(g.jsx(KW,{store:uF,children:g.jsx(QY,{basename:Ug.homepage,children:g.jsx(cbe,{children:g.jsx(lbe,{children:g.jsx(abe,{})})})})}));tbe({onUpdate(){uF.dispatch(ube())}}); diff --git a/develop/index.html b/develop/index.html index 13fa8660..05933092 100644 --- a/develop/index.html +++ b/develop/index.html @@ -79,14 +79,13 @@ Shlink — The URL shortener - - + +
- diff --git a/develop/service-worker.js b/develop/service-worker.js index e0e252ae..c1cbccb8 100644 --- a/develop/service-worker.js +++ b/develop/service-worker.js @@ -1,2 +1,1821 @@ -try{self["workbox:core:6.5.3"]&&_()}catch{}const z=(s,...e)=>{let t=s;return e.length>0&&(t+=` :: ${JSON.stringify(e)}`),t},G=z;class h extends Error{constructor(e,t){const n=G(e,t);super(n),this.name=e,this.details=t}}const B=new Set;function Q(s){B.add(s)}const d={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"workbox",runtime:"runtime",suffix:typeof registration<"u"?registration.scope:""},E=s=>[d.prefix,s,d.suffix].filter(e=>e&&e.length>0).join("-"),J=s=>{for(const e of Object.keys(d))s(e)},x={updateDetails:s=>{J(e=>{typeof s[e]=="string"&&(d[e]=s[e])})},getGoogleAnalyticsName:s=>s||E(d.googleAnalytics),getPrecacheName:s=>s||E(d.precache),getPrefix:()=>d.prefix,getRuntimeName:s=>s||E(d.runtime),getSuffix:()=>d.suffix};function K(s,e){const t=new URL(s);for(const n of e)t.searchParams.delete(n);return t.href}async function X(s,e,t,n){const r=K(e.url,t);if(e.url===r)return s.match(e,n);const a=Object.assign(Object.assign({},n),{ignoreSearch:!0}),i=await s.keys(e,a);for(const c of i){const o=K(c.url,t);if(r===o)return s.match(c,n)}}let m;function Y(){if(m===void 0){const s=new Response("");if("body"in s)try{new Response(s.body),m=!0}catch{m=!1}m=!1}return m}function q(s){s.then(()=>{})}class Z{constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}}async function ee(){for(const s of B)await s()}const te=s=>new URL(String(s),location.href).href.replace(new RegExp(`^${location.origin}`),"");function se(s){return new Promise(e=>setTimeout(e,s))}function A(s,e){const t=e();return s.waitUntil(t),t}async function ne(s,e){let t=null;if(s.url&&(t=new URL(s.url).origin),t!==self.location.origin)throw new h("cross-origin-copy-response",{origin:t});const n=s.clone(),r={headers:new Headers(n.headers),status:n.status,statusText:n.statusText},a=e?e(r):r,i=Y()?n.body:await n.blob();return new Response(i,a)}function re(){self.addEventListener("activate",()=>self.clients.claim())}const ae=(s,e)=>e.some(t=>s instanceof t);let j,O;function ie(){return j||(j=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function ce(){return O||(O=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const F=new WeakMap,U=new WeakMap,H=new WeakMap,k=new WeakMap,P=new WeakMap;function oe(s){const e=new Promise((t,n)=>{const r=()=>{s.removeEventListener("success",a),s.removeEventListener("error",i)},a=()=>{t(f(s.result)),r()},i=()=>{n(s.error),r()};s.addEventListener("success",a),s.addEventListener("error",i)});return e.then(t=>{t instanceof IDBCursor&&F.set(t,s)}).catch(()=>{}),P.set(e,s),e}function le(s){if(U.has(s))return;const e=new Promise((t,n)=>{const r=()=>{s.removeEventListener("complete",a),s.removeEventListener("error",i),s.removeEventListener("abort",i)},a=()=>{t(),r()},i=()=>{n(s.error||new DOMException("AbortError","AbortError")),r()};s.addEventListener("complete",a),s.addEventListener("error",i),s.addEventListener("abort",i)});U.set(s,e)}let T={get(s,e,t){if(s instanceof IDBTransaction){if(e==="done")return U.get(s);if(e==="objectStoreNames")return s.objectStoreNames||H.get(s);if(e==="store")return t.objectStoreNames[1]?void 0:t.objectStore(t.objectStoreNames[0])}return f(s[e])},set(s,e,t){return s[e]=t,!0},has(s,e){return s instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in s}};function he(s){T=s(T)}function ue(s){return s===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...t){const n=s.call(D(this),e,...t);return H.set(n,e.sort?e.sort():[e]),f(n)}:ce().includes(s)?function(...e){return s.apply(D(this),e),f(F.get(this))}:function(...e){return f(s.apply(D(this),e))}}function de(s){return typeof s=="function"?ue(s):(s instanceof IDBTransaction&&le(s),ae(s,ie())?new Proxy(s,T):s)}function f(s){if(s instanceof IDBRequest)return oe(s);if(k.has(s))return k.get(s);const e=de(s);return e!==s&&(k.set(s,e),P.set(e,s)),e}const D=s=>P.get(s);function fe(s,e,{blocked:t,upgrade:n,blocking:r,terminated:a}={}){const i=indexedDB.open(s,e),c=f(i);return n&&i.addEventListener("upgradeneeded",o=>{n(f(i.result),o.oldVersion,o.newVersion,f(i.transaction),o)}),t&&i.addEventListener("blocked",o=>t(o.oldVersion,o.newVersion,o)),c.then(o=>{a&&o.addEventListener("close",()=>a()),r&&o.addEventListener("versionchange",l=>r(l.oldVersion,l.newVersion,l))}).catch(()=>{}),c}function pe(s,{blocked:e}={}){const t=indexedDB.deleteDatabase(s);return e&&t.addEventListener("blocked",n=>e(n.oldVersion,n)),f(t).then(()=>{})}const ge=["get","getKey","getAll","getAllKeys","count"],me=["put","add","delete","clear"],v=new Map;function S(s,e){if(!(s instanceof IDBDatabase&&!(e in s)&&typeof e=="string"))return;if(v.get(e))return v.get(e);const t=e.replace(/FromIndex$/,""),n=e!==t,r=me.includes(t);if(!(t in(n?IDBIndex:IDBObjectStore).prototype)||!(r||ge.includes(t)))return;const a=async function(i,...c){const o=this.transaction(i,r?"readwrite":"readonly");let l=o.store;return n&&(l=l.index(c.shift())),(await Promise.all([l[t](...c),r&&o.done]))[0]};return v.set(e,a),a}he(s=>({...s,get:(e,t,n)=>S(e,t)||s.get(e,t,n),has:(e,t)=>!!S(e,t)||s.has(e,t)}));try{self["workbox:expiration:6.5.3"]&&_()}catch{}const ye="workbox-expiration",y="cache-entries",W=s=>{const e=new URL(s,location.href);return e.hash="",e.href};class we{constructor(e){this._db=null,this._cacheName=e}_upgradeDb(e){const t=e.createObjectStore(y,{keyPath:"id"});t.createIndex("cacheName","cacheName",{unique:!1}),t.createIndex("timestamp","timestamp",{unique:!1})}_upgradeDbAndDeleteOldDbs(e){this._upgradeDb(e),this._cacheName&&pe(this._cacheName)}async setTimestamp(e,t){e=W(e);const n={url:e,timestamp:t,cacheName:this._cacheName,id:this._getId(e)},a=(await this.getDb()).transaction(y,"readwrite",{durability:"relaxed"});await a.store.put(n),await a.done}async getTimestamp(e){const n=await(await this.getDb()).get(y,this._getId(e));return n==null?void 0:n.timestamp}async expireEntries(e,t){const n=await this.getDb();let r=await n.transaction(y).store.index("timestamp").openCursor(null,"prev");const a=[];let i=0;for(;r;){const o=r.value;o.cacheName===this._cacheName&&(e&&o.timestamp=t?a.push(r.value):i++),r=await r.continue()}const c=[];for(const o of a)await n.delete(y,o.id),c.push(o.url);return c}_getId(e){return this._cacheName+"|"+W(e)}async getDb(){return this._db||(this._db=await fe(ye,1,{upgrade:this._upgradeDbAndDeleteOldDbs.bind(this)})),this._db}}class be{constructor(e,t={}){this._isRunning=!1,this._rerunRequested=!1,this._maxEntries=t.maxEntries,this._maxAgeSeconds=t.maxAgeSeconds,this._matchOptions=t.matchOptions,this._cacheName=e,this._timestampModel=new we(e)}async expireEntries(){if(this._isRunning){this._rerunRequested=!0;return}this._isRunning=!0;const e=this._maxAgeSeconds?Date.now()-this._maxAgeSeconds*1e3:0,t=await this._timestampModel.expireEntries(e,this._maxEntries),n=await self.caches.open(this._cacheName);for(const r of t)await n.delete(r,this._matchOptions);this._isRunning=!1,this._rerunRequested&&(this._rerunRequested=!1,q(this.expireEntries()))}async updateTimestamp(e){await this._timestampModel.setTimestamp(e,Date.now())}async isURLExpired(e){if(this._maxAgeSeconds){const t=await this._timestampModel.getTimestamp(e),n=Date.now()-this._maxAgeSeconds*1e3;return t!==void 0?t{if(!a)return null;const i=this._isResponseDateFresh(a),c=this._getCacheExpiration(r);q(c.expireEntries());const o=c.updateTimestamp(n.url);if(t)try{t.waitUntil(o)}catch{}return i?a:null},this.cacheDidUpdate=async({cacheName:t,request:n})=>{const r=this._getCacheExpiration(t);await r.updateTimestamp(n.url),await r.expireEntries()},this._config=e,this._maxAgeSeconds=e.maxAgeSeconds,this._cacheExpirations=new Map,e.purgeOnQuotaError&&Q(()=>this.deleteCacheAndMetadata())}_getCacheExpiration(e){if(e===x.getRuntimeName())throw new h("expire-custom-caches-only");let t=this._cacheExpirations.get(e);return t||(t=new be(e,this._config),this._cacheExpirations.set(e,t)),t}_isResponseDateFresh(e){if(!this._maxAgeSeconds)return!0;const t=this._getDateHeaderTimestamp(e);if(t===null)return!0;const n=Date.now();return t>=n-this._maxAgeSeconds*1e3}_getDateHeaderTimestamp(e){if(!e.headers.has("date"))return null;const t=e.headers.get("date"),r=new Date(t).getTime();return isNaN(r)?null:r}async deleteCacheAndMetadata(){for(const[e,t]of this._cacheExpirations)await self.caches.delete(e),await t.delete();this._cacheExpirations=new Map}}try{self["workbox:precaching:6.5.3"]&&_()}catch{}const Re="__WB_REVISION__";function Ce(s){if(!s)throw new h("add-to-cache-list-unexpected-type",{entry:s});if(typeof s=="string"){const a=new URL(s,location.href);return{cacheKey:a.href,url:a.href}}const{revision:e,url:t}=s;if(!t)throw new h("add-to-cache-list-unexpected-type",{entry:s});if(!e){const a=new URL(t,location.href);return{cacheKey:a.href,url:a.href}}const n=new URL(t,location.href),r=new URL(t,location.href);return n.searchParams.set(Re,e),{cacheKey:n.href,url:r.href}}class xe{constructor(){this.updatedURLs=[],this.notUpdatedURLs=[],this.handlerWillStart=async({request:e,state:t})=>{t&&(t.originalRequest=e)},this.cachedResponseWillBeUsed=async({event:e,state:t,cachedResponse:n})=>{if(e.type==="install"&&t&&t.originalRequest&&t.originalRequest instanceof Request){const r=t.originalRequest.url;n?this.notUpdatedURLs.push(r):this.updatedURLs.push(r)}return n}}}class Ee{constructor({precacheController:e}){this.cacheKeyWillBeUsed=async({request:t,params:n})=>{const r=(n==null?void 0:n.cacheKey)||this._precacheController.getCacheKeyForURL(t.url);return r?new Request(r,{headers:t.headers}):t},this._precacheController=e}}try{self["workbox:strategies:6.5.3"]&&_()}catch{}function R(s){return typeof s=="string"?new Request(s):s}class ke{constructor(e,t){this._cacheKeys={},Object.assign(this,t),this.event=t.event,this._strategy=e,this._handlerDeferred=new Z,this._extendLifetimePromises=[],this._plugins=[...e.plugins],this._pluginStateMap=new Map;for(const n of this._plugins)this._pluginStateMap.set(n,{});this.event.waitUntil(this._handlerDeferred.promise)}async fetch(e){const{event:t}=this;let n=R(e);if(n.mode==="navigate"&&t instanceof FetchEvent&&t.preloadResponse){const i=await t.preloadResponse;if(i)return i}const r=this.hasCallback("fetchDidFail")?n.clone():null;try{for(const i of this.iterateCallbacks("requestWillFetch"))n=await i({request:n.clone(),event:t})}catch(i){if(i instanceof Error)throw new h("plugin-error-request-will-fetch",{thrownErrorMessage:i.message})}const a=n.clone();try{let i;i=await fetch(n,n.mode==="navigate"?void 0:this._strategy.fetchOptions);for(const c of this.iterateCallbacks("fetchDidSucceed"))i=await c({event:t,request:a,response:i});return i}catch(i){throw r&&await this.runCallbacks("fetchDidFail",{error:i,event:t,originalRequest:r.clone(),request:a.clone()}),i}}async fetchAndCachePut(e){const t=await this.fetch(e),n=t.clone();return this.waitUntil(this.cachePut(e,n)),t}async cacheMatch(e){const t=R(e);let n;const{cacheName:r,matchOptions:a}=this._strategy,i=await this.getCacheKey(t,"read"),c=Object.assign(Object.assign({},a),{cacheName:r});n=await caches.match(i,c);for(const o of this.iterateCallbacks("cachedResponseWillBeUsed"))n=await o({cacheName:r,matchOptions:a,cachedResponse:n,request:i,event:this.event})||void 0;return n}async cachePut(e,t){const n=R(e);await se(0);const r=await this.getCacheKey(n,"write");if(!t)throw new h("cache-put-with-no-response",{url:te(r.url)});const a=await this._ensureResponseSafeToCache(t);if(!a)return!1;const{cacheName:i,matchOptions:c}=this._strategy,o=await self.caches.open(i),l=this.hasCallback("cacheDidUpdate"),g=l?await X(o,r.clone(),["__WB_REVISION__"],c):null;try{await o.put(r,l?a.clone():a)}catch(u){if(u instanceof Error)throw u.name==="QuotaExceededError"&&await ee(),u}for(const u of this.iterateCallbacks("cacheDidUpdate"))await u({cacheName:i,oldResponse:g,newResponse:a.clone(),request:r,event:this.event});return!0}async getCacheKey(e,t){const n=`${e.url} | ${t}`;if(!this._cacheKeys[n]){let r=e;for(const a of this.iterateCallbacks("cacheKeyWillBeUsed"))r=R(await a({mode:t,request:r,event:this.event,params:this.params}));this._cacheKeys[n]=r}return this._cacheKeys[n]}hasCallback(e){for(const t of this._strategy.plugins)if(e in t)return!0;return!1}async runCallbacks(e,t){for(const n of this.iterateCallbacks(e))await n(t)}*iterateCallbacks(e){for(const t of this._strategy.plugins)if(typeof t[e]=="function"){const n=this._pluginStateMap.get(t);yield a=>{const i=Object.assign(Object.assign({},a),{state:n});return t[e](i)}}}waitUntil(e){return this._extendLifetimePromises.push(e),e}async doneWaiting(){let e;for(;e=this._extendLifetimePromises.shift();)await e}destroy(){this._handlerDeferred.resolve(null)}async _ensureResponseSafeToCache(e){let t=e,n=!1;for(const r of this.iterateCallbacks("cacheWillUpdate"))if(t=await r({request:this.request,response:t,event:this.event})||void 0,n=!0,!t)break;return n||t&&t.status!==200&&(t=void 0),t}}class V{constructor(e={}){this.cacheName=x.getRuntimeName(e.cacheName),this.plugins=e.plugins||[],this.fetchOptions=e.fetchOptions,this.matchOptions=e.matchOptions}handle(e){const[t]=this.handleAll(e);return t}handleAll(e){e instanceof FetchEvent&&(e={event:e,request:e.request});const t=e.event,n=typeof e.request=="string"?new Request(e.request):e.request,r="params"in e?e.params:void 0,a=new ke(this,{event:t,request:n,params:r}),i=this._getResponse(a,n,t),c=this._awaitComplete(i,a,n,t);return[i,c]}async _getResponse(e,t,n){await e.runCallbacks("handlerWillStart",{event:n,request:t});let r;try{if(r=await this._handle(t,e),!r||r.type==="error")throw new h("no-response",{url:t.url})}catch(a){if(a instanceof Error){for(const i of e.iterateCallbacks("handlerDidError"))if(r=await i({error:a,event:n,request:t}),r)break}if(!r)throw a}for(const a of e.iterateCallbacks("handlerWillRespond"))r=await a({event:n,request:t,response:r});return r}async _awaitComplete(e,t,n,r){let a,i;try{a=await e}catch{}try{await t.runCallbacks("handlerDidRespond",{event:r,request:n,response:a}),await t.doneWaiting()}catch(c){c instanceof Error&&(i=c)}if(await t.runCallbacks("handlerDidComplete",{event:r,request:n,response:a,error:i}),t.destroy(),i)throw i}}class p extends V{constructor(e={}){e.cacheName=x.getPrecacheName(e.cacheName),super(e),this._fallbackToNetwork=e.fallbackToNetwork!==!1,this.plugins.push(p.copyRedirectedCacheableResponsesPlugin)}async _handle(e,t){const n=await t.cacheMatch(e);return n||(t.event&&t.event.type==="install"?await this._handleInstall(e,t):await this._handleFetch(e,t))}async _handleFetch(e,t){let n;const r=t.params||{};if(this._fallbackToNetwork){const a=r.integrity,i=e.integrity,c=!i||i===a;n=await t.fetch(new Request(e,{integrity:e.mode!=="no-cors"?i||a:void 0})),a&&c&&e.mode!=="no-cors"&&(this._useDefaultCacheabilityPluginIfNeeded(),await t.cachePut(e,n.clone()))}else throw new h("missing-precache-entry",{cacheName:this.cacheName,url:e.url});return n}async _handleInstall(e,t){this._useDefaultCacheabilityPluginIfNeeded();const n=await t.fetch(e);if(!await t.cachePut(e,n.clone()))throw new h("bad-precaching-response",{url:e.url,status:n.status});return n}_useDefaultCacheabilityPluginIfNeeded(){let e=null,t=0;for(const[n,r]of this.plugins.entries())r!==p.copyRedirectedCacheableResponsesPlugin&&(r===p.defaultPrecacheCacheabilityPlugin&&(e=n),r.cacheWillUpdate&&t++);t===0?this.plugins.push(p.defaultPrecacheCacheabilityPlugin):t>1&&e!==null&&this.plugins.splice(e,1)}}p.defaultPrecacheCacheabilityPlugin={async cacheWillUpdate({response:s}){return!s||s.status>=400?null:s}};p.copyRedirectedCacheableResponsesPlugin={async cacheWillUpdate({response:s}){return s.redirected?await ne(s):s}};class De{constructor({cacheName:e,plugins:t=[],fallbackToNetwork:n=!0}={}){this._urlsToCacheKeys=new Map,this._urlsToCacheModes=new Map,this._cacheKeysToIntegrities=new Map,this._strategy=new p({cacheName:x.getPrecacheName(e),plugins:[...t,new Ee({precacheController:this})],fallbackToNetwork:n}),this.install=this.install.bind(this),this.activate=this.activate.bind(this)}get strategy(){return this._strategy}precache(e){this.addToCacheList(e),this._installAndActiveListenersAdded||(self.addEventListener("install",this.install),self.addEventListener("activate",this.activate),this._installAndActiveListenersAdded=!0)}addToCacheList(e){const t=[];for(const n of e){typeof n=="string"?t.push(n):n&&n.revision===void 0&&t.push(n.url);const{cacheKey:r,url:a}=Ce(n),i=typeof n!="string"&&n.revision?"reload":"default";if(this._urlsToCacheKeys.has(a)&&this._urlsToCacheKeys.get(a)!==r)throw new h("add-to-cache-list-conflicting-entries",{firstEntry:this._urlsToCacheKeys.get(a),secondEntry:r});if(typeof n!="string"&&n.integrity){if(this._cacheKeysToIntegrities.has(r)&&this._cacheKeysToIntegrities.get(r)!==n.integrity)throw new h("add-to-cache-list-conflicting-integrities",{url:a});this._cacheKeysToIntegrities.set(r,n.integrity)}if(this._urlsToCacheKeys.set(a,r),this._urlsToCacheModes.set(a,i),t.length>0){const c=`Workbox is precaching URLs without revision info: ${t.join(", ")} -This is generally NOT safe. Learn more at https://bit.ly/wb-precache`;console.warn(c)}}}install(e){return A(e,async()=>{const t=new xe;this.strategy.plugins.push(t);for(const[a,i]of this._urlsToCacheKeys){const c=this._cacheKeysToIntegrities.get(i),o=this._urlsToCacheModes.get(a),l=new Request(a,{integrity:c,cache:o,credentials:"same-origin"});await Promise.all(this.strategy.handleAll({params:{cacheKey:i},request:l,event:e}))}const{updatedURLs:n,notUpdatedURLs:r}=t;return{updatedURLs:n,notUpdatedURLs:r}})}activate(e){return A(e,async()=>{const t=await self.caches.open(this.strategy.cacheName),n=await t.keys(),r=new Set(this._urlsToCacheKeys.values()),a=[];for(const i of n)r.has(i.url)||(await t.delete(i),a.push(i.url));return{deletedURLs:a}})}getURLsToCacheKeys(){return this._urlsToCacheKeys}getCachedURLs(){return[...this._urlsToCacheKeys.keys()]}getCacheKeyForURL(e){const t=new URL(e,location.href);return this._urlsToCacheKeys.get(t.href)}getIntegrityForCacheKey(e){return this._cacheKeysToIntegrities.get(e)}async matchPrecache(e){const t=e instanceof Request?e.url:e,n=this.getCacheKeyForURL(t);if(n)return(await self.caches.open(this.strategy.cacheName)).match(n)}createHandlerBoundToURL(e){const t=this.getCacheKeyForURL(e);if(!t)throw new h("non-precached-url",{url:e});return n=>(n.request=new Request(e),n.params=Object.assign({cacheKey:t},n.params),this.strategy.handle(n))}}let L;const I=()=>(L||(L=new De),L);try{self["workbox:routing:6.5.3"]&&_()}catch{}const $="GET",C=s=>s&&typeof s=="object"?s:{handle:s};class b{constructor(e,t,n=$){this.handler=C(t),this.match=e,this.method=n}setCatchHandler(e){this.catchHandler=C(e)}}class ve extends b{constructor(e,t,n){const r=({url:a})=>{const i=e.exec(a.href);if(i&&!(a.origin!==location.origin&&i.index!==0))return i.slice(1)};super(r,t,n)}}class Le{constructor(){this._routes=new Map,this._defaultHandlerMap=new Map}get routes(){return this._routes}addFetchListener(){self.addEventListener("fetch",e=>{const{request:t}=e,n=this.handleRequest({request:t,event:e});n&&e.respondWith(n)})}addCacheListener(){self.addEventListener("message",e=>{if(e.data&&e.data.type==="CACHE_URLS"){const{payload:t}=e.data,n=Promise.all(t.urlsToCache.map(r=>{typeof r=="string"&&(r=[r]);const a=new Request(...r);return this.handleRequest({request:a,event:e})}));e.waitUntil(n),e.ports&&e.ports[0]&&n.then(()=>e.ports[0].postMessage(!0))}})}handleRequest({request:e,event:t}){const n=new URL(e.url,location.href);if(!n.protocol.startsWith("http"))return;const r=n.origin===location.origin,{params:a,route:i}=this.findMatchingRoute({event:t,request:e,sameOrigin:r,url:n});let c=i&&i.handler;const o=e.method;if(!c&&this._defaultHandlerMap.has(o)&&(c=this._defaultHandlerMap.get(o)),!c)return;let l;try{l=c.handle({url:n,request:e,event:t,params:a})}catch(u){l=Promise.reject(u)}const g=i&&i.catchHandler;return l instanceof Promise&&(this._catchHandler||g)&&(l=l.catch(async u=>{if(g)try{return await g.handle({url:n,request:e,event:t,params:a})}catch(N){N instanceof Error&&(u=N)}if(this._catchHandler)return this._catchHandler.handle({url:n,request:e,event:t});throw u})),l}findMatchingRoute({url:e,sameOrigin:t,request:n,event:r}){const a=this._routes.get(n.method)||[];for(const i of a){let c;const o=i.match({url:e,sameOrigin:t,request:n,event:r});if(o)return c=o,(Array.isArray(c)&&c.length===0||o.constructor===Object&&Object.keys(o).length===0||typeof o=="boolean")&&(c=void 0),{route:i,params:c}}return{}}setDefaultHandler(e,t=$){this._defaultHandlerMap.set(t,C(e))}setCatchHandler(e){this._catchHandler=C(e)}registerRoute(e){this._routes.has(e.method)||this._routes.set(e.method,[]),this._routes.get(e.method).push(e)}unregisterRoute(e){if(!this._routes.has(e.method))throw new h("unregister-route-but-not-found-with-method",{method:e.method});const t=this._routes.get(e.method).indexOf(e);if(t>-1)this._routes.get(e.method).splice(t,1);else throw new h("unregister-route-route-not-registered")}}let w;const Ue=()=>(w||(w=new Le,w.addFetchListener(),w.addCacheListener()),w);function M(s,e,t){let n;if(typeof s=="string"){const a=new URL(s,location.href),i=({url:c})=>c.href===a.href;n=new b(i,e,t)}else if(s instanceof RegExp)n=new ve(s,e,t);else if(typeof s=="function")n=new b(s,e,t);else if(s instanceof b)n=s;else throw new h("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});return Ue().registerRoute(n),n}function Te(s,e=[]){for(const t of[...s.searchParams.keys()])e.some(n=>n.test(t))&&s.searchParams.delete(t);return s}function*Pe(s,{ignoreURLParametersMatching:e=[/^utm_/,/^fbclid$/],directoryIndex:t="index.html",cleanURLs:n=!0,urlManipulation:r}={}){const a=new URL(s,location.href);a.hash="",yield a.href;const i=Te(a,e);if(yield i.href,t&&i.pathname.endsWith("/")){const c=new URL(i.href);c.pathname+=t,yield c.href}if(n){const c=new URL(i.href);c.pathname+=".html",yield c.href}if(r){const c=r({url:a});for(const o of c)yield o.href}}class Ie extends b{constructor(e,t){const n=({request:r})=>{const a=e.getURLsToCacheKeys();for(const i of Pe(r.url,t)){const c=a.get(i);if(c){const o=e.getIntegrityForCacheKey(c);return{cacheKey:c,integrity:o}}}};super(n,e.strategy)}}function Me(s){const e=I(),t=new Ie(e,s);M(t)}function Ne(s){return I().createHandlerBoundToURL(s)}function Ke(s){I().precache(s)}function Ae(s,e){Ke(s),Me(e)}const je={cacheWillUpdate:async({response:s})=>s.status===200||s.status===0?s:null};class Oe extends V{constructor(e={}){super(e),this.plugins.some(t=>"cacheWillUpdate"in t)||this.plugins.unshift(je)}async _handle(e,t){const n=t.fetchAndCachePut(e).catch(()=>{});t.waitUntil(n);let r=await t.cacheMatch(e),a;if(!r)try{r=await n}catch(i){i instanceof Error&&(a=i)}if(!r)throw new h("no-response",{url:e.url,error:a});return r}}const Se="shlink-web-client",We="A React-based progressive web application for shlink",Be="/shlink-web-client/develop",qe="https://github.com/shlinkio/shlink-web-client",Fe="MIT",He={lint:"npm run lint:css && npm run lint:js","lint:css":"stylelint src/*.scss src/**/*.scss","lint:js":"eslint --ext .js,.ts,.tsx src test","lint:fix":"npm run lint:css:fix && npm run lint:js:fix","lint:css:fix":"npm run lint:css -- --fix","lint:js:fix":"npm run lint:js -- --fix",types:"tsc",start:"vite serve --host=0.0.0.0",preview:"vite preview --host=0.0.0.0",build:"npm run types && vite build && node scripts/replace-version.mjs","build:dist":"npm run build && node scripts/create-dist-file.mjs",test:"vitest run --run","test:watch":"vitest --watch","test:ci":"npm run test -- --coverage","test:verbose":"npm run test -- --verbose"},Ve={"@fortawesome/fontawesome-free":"^6.3.0","@fortawesome/fontawesome-svg-core":"^6.3.0","@fortawesome/free-brands-svg-icons":"^6.3.0","@fortawesome/free-regular-svg-icons":"^6.3.0","@fortawesome/free-solid-svg-icons":"^6.3.0","@fortawesome/react-fontawesome":"^0.2.0","@json2csv/plainjs":"^6.1.2","@reduxjs/toolkit":"^1.9.1",bootstrap:"^5.2.3",bottlejs:"^2.0.1",bowser:"^2.11.0","chart.js":"^4.1.1",classnames:"^2.3.2","compare-versions":"^5.0.3",csvtojson:"^2.0.10","date-fns":"^2.29.3","event-source-polyfill":"^1.0.31",history:"^5.3.0",leaflet:"^1.9.3",qs:"^6.11.0",ramda:"^0.27.2",react:"^18.2.0","react-chartjs-2":"^5.1.0","react-colorful":"^5.6.1","react-copy-to-clipboard":"^5.1.0","react-datepicker":"^4.8.0","react-dom":"^18.2.0","react-external-link":"^2.2.0","react-leaflet":"^4.2.0","react-redux":"^8.0.5","react-router-dom":"^6.6.1","react-swipeable":"^7.0.0","react-tag-autocomplete":"^6.3.0",reactstrap:"^9.1.5","redux-localstorage-simple":"^2.5.1",uuid:"^8.3.2","workbox-core":"^6.5.4","workbox-expiration":"^6.5.4","workbox-precaching":"^6.5.4","workbox-routing":"^6.5.4","workbox-strategies":"^6.5.4"},$e={"@shlinkio/eslint-config-js-coding-standard":"~2.1.0","@shlinkio/stylelint-config-css-coding-standard":"~1.0.1","@testing-library/jest-dom":"^5.16.5","@testing-library/react":"^14.0.0","@testing-library/user-event":"^14.4.3","@total-typescript/shoehorn":"^0.1.0","@types/json2csv":"^5.0.3","@types/leaflet":"^1.9.0","@types/qs":"^6.9.7","@types/ramda":"^0.28.15","@types/react":"^18.0.26","@types/react-color":"^3.0.6","@types/react-copy-to-clipboard":"^5.0.4","@types/react-datepicker":"^4.8.0","@types/react-dom":"^18.0.10","@types/react-tag-autocomplete":"^6.3.0","@types/uuid":"^8.3.4","@vitejs/plugin-react":"^4.0.0","@vitest/coverage-v8":"^0.32.0","adm-zip":"^0.5.10",chalk:"^5.2.0",eslint:"^8.30.0",jsdom:"^22.0.0","resize-observer-polyfill":"^1.5.1",sass:"^1.57.1",stylelint:"^15.10.1",typescript:"^5.0.2",vite:"^4.3.9","vite-plugin-pwa":"^0.14.4",vitest:"^0.32.0","vitest-canvas-mock":"^0.2.2"},ze=[">0.2%","not dead","not ie <= 11","not op_mini all"];var Ge={name:Se,description:We,private:!1,homepage:Be,repository:qe,license:Fe,scripts:He,dependencies:Ve,devDependencies:$e,browserslist:ze};re();Ae([{"revision":null,"url":"assets/index-14f07603.css"},{"revision":null,"url":"assets/index-cd38f146.js"},{"revision":"4bfb71cf3978ff3fb503abf2e45e48d3","url":"index.html"},{"revision":"3e8169a112865ef0d76bba4e2dfd3a89","url":"./icons/icon-16x16.png"},{"revision":"20f0b51945ae3c973420e31d6b4d43c1","url":"./icons/icon-24x24.png"},{"revision":"4c9695cfb4cea403c1b66bbb7b4f7420","url":"./icons/icon-32x32.png"},{"revision":"f74edb9cc54ac938c1589876f8da9f21","url":"./icons/icon-40x40.png"},{"revision":"52933970fac8498311687de13549b014","url":"./icons/icon-48x48.png"},{"revision":"40209a194f29b21882571c77bd2bd906","url":"./icons/icon-60x60.png"},{"revision":"c8ba5a8c1da76d74c7bb21827fcf975c","url":"./icons/icon-64x64.png"},{"revision":"ae3435baceb494f9c966e2c2c736ea35","url":"./icons/icon-72x72.png"},{"revision":"850aa5b026fd1452af6c1ddd9d71850f","url":"./icons/icon-76x76.png"},{"revision":"8c62535e6b7a498ece1f6c6ae62ede59","url":"./icons/icon-96x96.png"},{"revision":"2dff586aaefa4c8d17f4c0bcbdef8b53","url":"./icons/icon-114x114.png"},{"revision":"8e28257a68ef1c55bc68bfff80e1a310","url":"./icons/icon-120x120.png"},{"revision":"0059b6f0c97fa871a5c29643b2857585","url":"./icons/icon-128x128.png"},{"revision":"41478c2456281f61e54d714718743ecc","url":"./icons/icon-144x144.png"},{"revision":"625251910295f33a578ae6d8117711c9","url":"./icons/icon-150x150.png"},{"revision":"19b71508b1d05defe32cf16a7d453001","url":"./icons/icon-152x152.png"},{"revision":"9d029a32a54ba3084c67acd5d74f8ac4","url":"./icons/icon-160x160.png"},{"revision":"6ec104aeaf745f003ecdaef2edddce97","url":"./icons/icon-167x167.png"},{"revision":"871d67907434ed0ddf5d2a6c220e09af","url":"./icons/icon-180x180.png"},{"revision":"cee2529402074d73b2135e2ddee25f6b","url":"./icons/icon-192x192.png"},{"revision":"85055b452284c0193142936dee7d2cd1","url":"./icons/icon-196x196.png"},{"revision":"f471155dd70b99924422dd9dd87ea94d","url":"./icons/icon-228x228.png"},{"revision":"4d896c5c7025582605de31fb74f0316b","url":"./icons/icon-256x256.png"},{"revision":"d99b49e5bcad41968313c3e132e7c661","url":"./icons/icon-310x310.png"},{"revision":"f9597636bef677327c3abc0fd1a743c4","url":"./icons/icon-384x384.png"},{"revision":"de22c0eb9e08d3576df5cedb568ca56b","url":"./icons/icon-512x512.png"},{"revision":"583b223ad8e20f05aaa64923d7db2e46","url":"./icons/icon-1024x1024.png"},{"revision":"9f283394af4feaec045a458f6cd5e4e8","url":"manifest.json"}]);const Qe=new RegExp("/[^/?]+\\.[^/]+$");M(({request:s,url:e})=>!(s.mode!=="navigate"||e.pathname.startsWith("/_")||e.pathname.match(Qe)),Ne(`${Ge.homepage}/index.html`));M(({url:s})=>s.origin===self.location.origin&&s.pathname.endsWith(".png"),new Oe({cacheName:"images",plugins:[new _e({maxEntries:50})]}));self.addEventListener("message",s=>{s.data&&s.data.type==="SKIP_WAITING"&&self.skipWaiting()}); +try { + self["workbox:core:7.0.0"] && _(); +} catch { +} +const G = (s, ...e) => { + let t = s; + return e.length > 0 && (t += ` :: ${JSON.stringify(e)}`), t; +}, Q = G; +class h extends Error { + /** + * + * @param {string} errorCode The error code that + * identifies this particular error. + * @param {Object=} details Any relevant arguments + * that will help developers identify issues should + * be added as a key on the context object. + */ + constructor(e, t) { + const n = Q(e, t); + super(n), this.name = e, this.details = t; + } +} +const B = /* @__PURE__ */ new Set(); +function z(s) { + B.add(s); +} +const d = { + googleAnalytics: "googleAnalytics", + precache: "precache-v2", + prefix: "workbox", + runtime: "runtime", + suffix: typeof registration < "u" ? registration.scope : "" +}, k = (s) => [d.prefix, s, d.suffix].filter((e) => e && e.length > 0).join("-"), J = (s) => { + for (const e of Object.keys(d)) + s(e); +}, x = { + updateDetails: (s) => { + J((e) => { + typeof s[e] == "string" && (d[e] = s[e]); + }); + }, + getGoogleAnalyticsName: (s) => s || k(d.googleAnalytics), + getPrecacheName: (s) => s || k(d.precache), + getPrefix: () => d.prefix, + getRuntimeName: (s) => s || k(d.runtime), + getSuffix: () => d.suffix +}; +function K(s, e) { + const t = new URL(s); + for (const n of e) + t.searchParams.delete(n); + return t.href; +} +async function X(s, e, t, n) { + const a = K(e.url, t); + if (e.url === a) + return s.match(e, n); + const r = Object.assign(Object.assign({}, n), { ignoreSearch: !0 }), i = await s.keys(e, r); + for (const c of i) { + const o = K(c.url, t); + if (a === o) + return s.match(c, n); + } +} +let m; +function Y() { + if (m === void 0) { + const s = new Response(""); + if ("body" in s) + try { + new Response(s.body), m = !0; + } catch { + m = !1; + } + m = !1; + } + return m; +} +function q(s) { + s.then(() => { + }); +} +class Z { + /** + * Creates a promise and exposes its resolve and reject functions as methods. + */ + constructor() { + this.promise = new Promise((e, t) => { + this.resolve = e, this.reject = t; + }); + } +} +async function ee() { + for (const s of B) + await s(); +} +const te = (s) => new URL(String(s), location.href).href.replace(new RegExp(`^${location.origin}`), ""); +function se(s) { + return new Promise((e) => setTimeout(e, s)); +} +function A(s, e) { + const t = e(); + return s.waitUntil(t), t; +} +async function ne(s, e) { + let t = null; + if (s.url && (t = new URL(s.url).origin), t !== self.location.origin) + throw new h("cross-origin-copy-response", { origin: t }); + const n = s.clone(), a = { + headers: new Headers(n.headers), + status: n.status, + statusText: n.statusText + }, r = e ? e(a) : a, i = Y() ? n.body : await n.blob(); + return new Response(i, r); +} +function ae() { + self.addEventListener("activate", () => self.clients.claim()); +} +const re = (s, e) => e.some((t) => s instanceof t); +let j, O; +function ie() { + return j || (j = [ + IDBDatabase, + IDBObjectStore, + IDBIndex, + IDBCursor, + IDBTransaction + ]); +} +function ce() { + return O || (O = [ + IDBCursor.prototype.advance, + IDBCursor.prototype.continue, + IDBCursor.prototype.continuePrimaryKey + ]); +} +const F = /* @__PURE__ */ new WeakMap(), U = /* @__PURE__ */ new WeakMap(), H = /* @__PURE__ */ new WeakMap(), v = /* @__PURE__ */ new WeakMap(), P = /* @__PURE__ */ new WeakMap(); +function oe(s) { + const e = new Promise((t, n) => { + const a = () => { + s.removeEventListener("success", r), s.removeEventListener("error", i); + }, r = () => { + t(f(s.result)), a(); + }, i = () => { + n(s.error), a(); + }; + s.addEventListener("success", r), s.addEventListener("error", i); + }); + return e.then((t) => { + t instanceof IDBCursor && F.set(t, s); + }).catch(() => { + }), P.set(e, s), e; +} +function le(s) { + if (U.has(s)) + return; + const e = new Promise((t, n) => { + const a = () => { + s.removeEventListener("complete", r), s.removeEventListener("error", i), s.removeEventListener("abort", i); + }, r = () => { + t(), a(); + }, i = () => { + n(s.error || new DOMException("AbortError", "AbortError")), a(); + }; + s.addEventListener("complete", r), s.addEventListener("error", i), s.addEventListener("abort", i); + }); + U.set(s, e); +} +let T = { + get(s, e, t) { + if (s instanceof IDBTransaction) { + if (e === "done") + return U.get(s); + if (e === "objectStoreNames") + return s.objectStoreNames || H.get(s); + if (e === "store") + return t.objectStoreNames[1] ? void 0 : t.objectStore(t.objectStoreNames[0]); + } + return f(s[e]); + }, + set(s, e, t) { + return s[e] = t, !0; + }, + has(s, e) { + return s instanceof IDBTransaction && (e === "done" || e === "store") ? !0 : e in s; + } +}; +function he(s) { + T = s(T); +} +function ue(s) { + return s === IDBDatabase.prototype.transaction && !("objectStoreNames" in IDBTransaction.prototype) ? function(e, ...t) { + const n = s.call(E(this), e, ...t); + return H.set(n, e.sort ? e.sort() : [e]), f(n); + } : ce().includes(s) ? function(...e) { + return s.apply(E(this), e), f(F.get(this)); + } : function(...e) { + return f(s.apply(E(this), e)); + }; +} +function de(s) { + return typeof s == "function" ? ue(s) : (s instanceof IDBTransaction && le(s), re(s, ie()) ? new Proxy(s, T) : s); +} +function f(s) { + if (s instanceof IDBRequest) + return oe(s); + if (v.has(s)) + return v.get(s); + const e = de(s); + return e !== s && (v.set(s, e), P.set(e, s)), e; +} +const E = (s) => P.get(s); +function fe(s, e, { blocked: t, upgrade: n, blocking: a, terminated: r } = {}) { + const i = indexedDB.open(s, e), c = f(i); + return n && i.addEventListener("upgradeneeded", (o) => { + n(f(i.result), o.oldVersion, o.newVersion, f(i.transaction), o); + }), t && i.addEventListener("blocked", (o) => t( + // Casting due to https://github.com/microsoft/TypeScript-DOM-lib-generator/pull/1405 + o.oldVersion, + o.newVersion, + o + )), c.then((o) => { + r && o.addEventListener("close", () => r()), a && o.addEventListener("versionchange", (l) => a(l.oldVersion, l.newVersion, l)); + }).catch(() => { + }), c; +} +function pe(s, { blocked: e } = {}) { + const t = indexedDB.deleteDatabase(s); + return e && t.addEventListener("blocked", (n) => e( + // Casting due to https://github.com/microsoft/TypeScript-DOM-lib-generator/pull/1405 + n.oldVersion, + n + )), f(t).then(() => { + }); +} +const ge = ["get", "getKey", "getAll", "getAllKeys", "count"], me = ["put", "add", "delete", "clear"], D = /* @__PURE__ */ new Map(); +function S(s, e) { + if (!(s instanceof IDBDatabase && !(e in s) && typeof e == "string")) + return; + if (D.get(e)) + return D.get(e); + const t = e.replace(/FromIndex$/, ""), n = e !== t, a = me.includes(t); + if ( + // Bail if the target doesn't exist on the target. Eg, getAll isn't in Edge. + !(t in (n ? IDBIndex : IDBObjectStore).prototype) || !(a || ge.includes(t)) + ) + return; + const r = async function(i, ...c) { + const o = this.transaction(i, a ? "readwrite" : "readonly"); + let l = o.store; + return n && (l = l.index(c.shift())), (await Promise.all([ + l[t](...c), + a && o.done + ]))[0]; + }; + return D.set(e, r), r; +} +he((s) => ({ + ...s, + get: (e, t, n) => S(e, t) || s.get(e, t, n), + has: (e, t) => !!S(e, t) || s.has(e, t) +})); +try { + self["workbox:expiration:7.0.0"] && _(); +} catch { +} +const we = "workbox-expiration", w = "cache-entries", W = (s) => { + const e = new URL(s, location.href); + return e.hash = "", e.href; +}; +class ye { + /** + * + * @param {string} cacheName + * + * @private + */ + constructor(e) { + this._db = null, this._cacheName = e; + } + /** + * Performs an upgrade of indexedDB. + * + * @param {IDBPDatabase} db + * + * @private + */ + _upgradeDb(e) { + const t = e.createObjectStore(w, { keyPath: "id" }); + t.createIndex("cacheName", "cacheName", { unique: !1 }), t.createIndex("timestamp", "timestamp", { unique: !1 }); + } + /** + * Performs an upgrade of indexedDB and deletes deprecated DBs. + * + * @param {IDBPDatabase} db + * + * @private + */ + _upgradeDbAndDeleteOldDbs(e) { + this._upgradeDb(e), this._cacheName && pe(this._cacheName); + } + /** + * @param {string} url + * @param {number} timestamp + * + * @private + */ + async setTimestamp(e, t) { + e = W(e); + const n = { + url: e, + timestamp: t, + cacheName: this._cacheName, + // Creating an ID from the URL and cache name won't be necessary once + // Edge switches to Chromium and all browsers we support work with + // array keyPaths. + id: this._getId(e) + }, r = (await this.getDb()).transaction(w, "readwrite", { + durability: "relaxed" + }); + await r.store.put(n), await r.done; + } + /** + * Returns the timestamp stored for a given URL. + * + * @param {string} url + * @return {number | undefined} + * + * @private + */ + async getTimestamp(e) { + const n = await (await this.getDb()).get(w, this._getId(e)); + return n == null ? void 0 : n.timestamp; + } + /** + * Iterates through all the entries in the object store (from newest to + * oldest) and removes entries once either `maxCount` is reached or the + * entry's timestamp is less than `minTimestamp`. + * + * @param {number} minTimestamp + * @param {number} maxCount + * @return {Array} + * + * @private + */ + async expireEntries(e, t) { + const n = await this.getDb(); + let a = await n.transaction(w).store.index("timestamp").openCursor(null, "prev"); + const r = []; + let i = 0; + for (; a; ) { + const o = a.value; + o.cacheName === this._cacheName && (e && o.timestamp < e || t && i >= t ? r.push(a.value) : i++), a = await a.continue(); + } + const c = []; + for (const o of r) + await n.delete(w, o.id), c.push(o.url); + return c; + } + /** + * Takes a URL and returns an ID that will be unique in the object store. + * + * @param {string} url + * @return {string} + * + * @private + */ + _getId(e) { + return this._cacheName + "|" + W(e); + } + /** + * Returns an open connection to the database. + * + * @private + */ + async getDb() { + return this._db || (this._db = await fe(we, 1, { + upgrade: this._upgradeDbAndDeleteOldDbs.bind(this) + })), this._db; + } +} +class _e { + /** + * To construct a new CacheExpiration instance you must provide at least + * one of the `config` properties. + * + * @param {string} cacheName Name of the cache to apply restrictions to. + * @param {Object} config + * @param {number} [config.maxEntries] The maximum number of entries to cache. + * Entries used the least will be removed as the maximum is reached. + * @param {number} [config.maxAgeSeconds] The maximum age of an entry before + * it's treated as stale and removed. + * @param {Object} [config.matchOptions] The [`CacheQueryOptions`](https://developer.mozilla.org/en-US/docs/Web/API/Cache/delete#Parameters) + * that will be used when calling `delete()` on the cache. + */ + constructor(e, t = {}) { + this._isRunning = !1, this._rerunRequested = !1, this._maxEntries = t.maxEntries, this._maxAgeSeconds = t.maxAgeSeconds, this._matchOptions = t.matchOptions, this._cacheName = e, this._timestampModel = new ye(e); + } + /** + * Expires entries for the given cache and given criteria. + */ + async expireEntries() { + if (this._isRunning) { + this._rerunRequested = !0; + return; + } + this._isRunning = !0; + const e = this._maxAgeSeconds ? Date.now() - this._maxAgeSeconds * 1e3 : 0, t = await this._timestampModel.expireEntries(e, this._maxEntries), n = await self.caches.open(this._cacheName); + for (const a of t) + await n.delete(a, this._matchOptions); + this._isRunning = !1, this._rerunRequested && (this._rerunRequested = !1, q(this.expireEntries())); + } + /** + * Update the timestamp for the given URL. This ensures the when + * removing entries based on maximum entries, most recently used + * is accurate or when expiring, the timestamp is up-to-date. + * + * @param {string} url + */ + async updateTimestamp(e) { + await this._timestampModel.setTimestamp(e, Date.now()); + } + /** + * Can be used to check if a URL has expired or not before it's used. + * + * This requires a look up from IndexedDB, so can be slow. + * + * Note: This method will not remove the cached entry, call + * `expireEntries()` to remove indexedDB and Cache entries. + * + * @param {string} url + * @return {boolean} + */ + async isURLExpired(e) { + if (this._maxAgeSeconds) { + const t = await this._timestampModel.getTimestamp(e), n = Date.now() - this._maxAgeSeconds * 1e3; + return t !== void 0 ? t < n : !0; + } else + return !1; + } + /** + * Removes the IndexedDB object store used to keep track of cache expiration + * metadata. + */ + async delete() { + this._rerunRequested = !1, await this._timestampModel.expireEntries(1 / 0); + } +} +class be { + /** + * @param {ExpirationPluginOptions} config + * @param {number} [config.maxEntries] The maximum number of entries to cache. + * Entries used the least will be removed as the maximum is reached. + * @param {number} [config.maxAgeSeconds] The maximum age of an entry before + * it's treated as stale and removed. + * @param {Object} [config.matchOptions] The [`CacheQueryOptions`](https://developer.mozilla.org/en-US/docs/Web/API/Cache/delete#Parameters) + * that will be used when calling `delete()` on the cache. + * @param {boolean} [config.purgeOnQuotaError] Whether to opt this cache in to + * automatic deletion if the available storage quota has been exceeded. + */ + constructor(e = {}) { + this.cachedResponseWillBeUsed = async ({ event: t, request: n, cacheName: a, cachedResponse: r }) => { + if (!r) + return null; + const i = this._isResponseDateFresh(r), c = this._getCacheExpiration(a); + q(c.expireEntries()); + const o = c.updateTimestamp(n.url); + if (t) + try { + t.waitUntil(o); + } catch { + } + return i ? r : null; + }, this.cacheDidUpdate = async ({ cacheName: t, request: n }) => { + const a = this._getCacheExpiration(t); + await a.updateTimestamp(n.url), await a.expireEntries(); + }, this._config = e, this._maxAgeSeconds = e.maxAgeSeconds, this._cacheExpirations = /* @__PURE__ */ new Map(), e.purgeOnQuotaError && z(() => this.deleteCacheAndMetadata()); + } + /** + * A simple helper method to return a CacheExpiration instance for a given + * cache name. + * + * @param {string} cacheName + * @return {CacheExpiration} + * + * @private + */ + _getCacheExpiration(e) { + if (e === x.getRuntimeName()) + throw new h("expire-custom-caches-only"); + let t = this._cacheExpirations.get(e); + return t || (t = new _e(e, this._config), this._cacheExpirations.set(e, t)), t; + } + /** + * @param {Response} cachedResponse + * @return {boolean} + * + * @private + */ + _isResponseDateFresh(e) { + if (!this._maxAgeSeconds) + return !0; + const t = this._getDateHeaderTimestamp(e); + if (t === null) + return !0; + const n = Date.now(); + return t >= n - this._maxAgeSeconds * 1e3; + } + /** + * This method will extract the data header and parse it into a useful + * value. + * + * @param {Response} cachedResponse + * @return {number|null} + * + * @private + */ + _getDateHeaderTimestamp(e) { + if (!e.headers.has("date")) + return null; + const t = e.headers.get("date"), a = new Date(t).getTime(); + return isNaN(a) ? null : a; + } + /** + * This is a helper method that performs two operations: + * + * - Deletes *all* the underlying Cache instances associated with this plugin + * instance, by calling caches.delete() on your behalf. + * - Deletes the metadata from IndexedDB used to keep track of expiration + * details for each Cache instance. + * + * When using cache expiration, calling this method is preferable to calling + * `caches.delete()` directly, since this will ensure that the IndexedDB + * metadata is also cleanly removed and open IndexedDB instances are deleted. + * + * Note that if you're *not* using cache expiration for a given cache, calling + * `caches.delete()` and passing in the cache's name should be sufficient. + * There is no Workbox-specific method needed for cleanup in that case. + */ + async deleteCacheAndMetadata() { + for (const [e, t] of this._cacheExpirations) + await self.caches.delete(e), await t.delete(); + this._cacheExpirations = /* @__PURE__ */ new Map(); + } +} +try { + self["workbox:precaching:7.0.0"] && _(); +} catch { +} +const Re = "__WB_REVISION__"; +function Ce(s) { + if (!s) + throw new h("add-to-cache-list-unexpected-type", { entry: s }); + if (typeof s == "string") { + const r = new URL(s, location.href); + return { + cacheKey: r.href, + url: r.href + }; + } + const { revision: e, url: t } = s; + if (!t) + throw new h("add-to-cache-list-unexpected-type", { entry: s }); + if (!e) { + const r = new URL(t, location.href); + return { + cacheKey: r.href, + url: r.href + }; + } + const n = new URL(t, location.href), a = new URL(t, location.href); + return n.searchParams.set(Re, e), { + cacheKey: n.href, + url: a.href + }; +} +class xe { + constructor() { + this.updatedURLs = [], this.notUpdatedURLs = [], this.handlerWillStart = async ({ request: e, state: t }) => { + t && (t.originalRequest = e); + }, this.cachedResponseWillBeUsed = async ({ event: e, state: t, cachedResponse: n }) => { + if (e.type === "install" && t && t.originalRequest && t.originalRequest instanceof Request) { + const a = t.originalRequest.url; + n ? this.notUpdatedURLs.push(a) : this.updatedURLs.push(a); + } + return n; + }; + } +} +class ke { + constructor({ precacheController: e }) { + this.cacheKeyWillBeUsed = async ({ request: t, params: n }) => { + const a = (n == null ? void 0 : n.cacheKey) || this._precacheController.getCacheKeyForURL(t.url); + return a ? new Request(a, { headers: t.headers }) : t; + }, this._precacheController = e; + } +} +try { + self["workbox:strategies:7.0.0"] && _(); +} catch { +} +function R(s) { + return typeof s == "string" ? new Request(s) : s; +} +class ve { + /** + * Creates a new instance associated with the passed strategy and event + * that's handling the request. + * + * The constructor also initializes the state that will be passed to each of + * the plugins handling this request. + * + * @param {workbox-strategies.Strategy} strategy + * @param {Object} options + * @param {Request|string} options.request A request to run this strategy for. + * @param {ExtendableEvent} options.event The event associated with the + * request. + * @param {URL} [options.url] + * @param {*} [options.params] The return value from the + * {@link workbox-routing~matchCallback} (if applicable). + */ + constructor(e, t) { + this._cacheKeys = {}, Object.assign(this, t), this.event = t.event, this._strategy = e, this._handlerDeferred = new Z(), this._extendLifetimePromises = [], this._plugins = [...e.plugins], this._pluginStateMap = /* @__PURE__ */ new Map(); + for (const n of this._plugins) + this._pluginStateMap.set(n, {}); + this.event.waitUntil(this._handlerDeferred.promise); + } + /** + * Fetches a given request (and invokes any applicable plugin callback + * methods) using the `fetchOptions` (for non-navigation requests) and + * `plugins` defined on the `Strategy` object. + * + * The following plugin lifecycle methods are invoked when using this method: + * - `requestWillFetch()` + * - `fetchDidSucceed()` + * - `fetchDidFail()` + * + * @param {Request|string} input The URL or request to fetch. + * @return {Promise} + */ + async fetch(e) { + const { event: t } = this; + let n = R(e); + if (n.mode === "navigate" && t instanceof FetchEvent && t.preloadResponse) { + const i = await t.preloadResponse; + if (i) + return i; + } + const a = this.hasCallback("fetchDidFail") ? n.clone() : null; + try { + for (const i of this.iterateCallbacks("requestWillFetch")) + n = await i({ request: n.clone(), event: t }); + } catch (i) { + if (i instanceof Error) + throw new h("plugin-error-request-will-fetch", { + thrownErrorMessage: i.message + }); + } + const r = n.clone(); + try { + let i; + i = await fetch(n, n.mode === "navigate" ? void 0 : this._strategy.fetchOptions); + for (const c of this.iterateCallbacks("fetchDidSucceed")) + i = await c({ + event: t, + request: r, + response: i + }); + return i; + } catch (i) { + throw a && await this.runCallbacks("fetchDidFail", { + error: i, + event: t, + originalRequest: a.clone(), + request: r.clone() + }), i; + } + } + /** + * Calls `this.fetch()` and (in the background) runs `this.cachePut()` on + * the response generated by `this.fetch()`. + * + * The call to `this.cachePut()` automatically invokes `this.waitUntil()`, + * so you do not have to manually call `waitUntil()` on the event. + * + * @param {Request|string} input The request or URL to fetch and cache. + * @return {Promise} + */ + async fetchAndCachePut(e) { + const t = await this.fetch(e), n = t.clone(); + return this.waitUntil(this.cachePut(e, n)), t; + } + /** + * Matches a request from the cache (and invokes any applicable plugin + * callback methods) using the `cacheName`, `matchOptions`, and `plugins` + * defined on the strategy object. + * + * The following plugin lifecycle methods are invoked when using this method: + * - cacheKeyWillByUsed() + * - cachedResponseWillByUsed() + * + * @param {Request|string} key The Request or URL to use as the cache key. + * @return {Promise} A matching response, if found. + */ + async cacheMatch(e) { + const t = R(e); + let n; + const { cacheName: a, matchOptions: r } = this._strategy, i = await this.getCacheKey(t, "read"), c = Object.assign(Object.assign({}, r), { cacheName: a }); + n = await caches.match(i, c); + for (const o of this.iterateCallbacks("cachedResponseWillBeUsed")) + n = await o({ + cacheName: a, + matchOptions: r, + cachedResponse: n, + request: i, + event: this.event + }) || void 0; + return n; + } + /** + * Puts a request/response pair in the cache (and invokes any applicable + * plugin callback methods) using the `cacheName` and `plugins` defined on + * the strategy object. + * + * The following plugin lifecycle methods are invoked when using this method: + * - cacheKeyWillByUsed() + * - cacheWillUpdate() + * - cacheDidUpdate() + * + * @param {Request|string} key The request or URL to use as the cache key. + * @param {Response} response The response to cache. + * @return {Promise} `false` if a cacheWillUpdate caused the response + * not be cached, and `true` otherwise. + */ + async cachePut(e, t) { + const n = R(e); + await se(0); + const a = await this.getCacheKey(n, "write"); + if (!t) + throw new h("cache-put-with-no-response", { + url: te(a.url) + }); + const r = await this._ensureResponseSafeToCache(t); + if (!r) + return !1; + const { cacheName: i, matchOptions: c } = this._strategy, o = await self.caches.open(i), l = this.hasCallback("cacheDidUpdate"), g = l ? await X( + // TODO(philipwalton): the `__WB_REVISION__` param is a precaching + // feature. Consider into ways to only add this behavior if using + // precaching. + o, + a.clone(), + ["__WB_REVISION__"], + c + ) : null; + try { + await o.put(a, l ? r.clone() : r); + } catch (u) { + if (u instanceof Error) + throw u.name === "QuotaExceededError" && await ee(), u; + } + for (const u of this.iterateCallbacks("cacheDidUpdate")) + await u({ + cacheName: i, + oldResponse: g, + newResponse: r.clone(), + request: a, + event: this.event + }); + return !0; + } + /** + * Checks the list of plugins for the `cacheKeyWillBeUsed` callback, and + * executes any of those callbacks found in sequence. The final `Request` + * object returned by the last plugin is treated as the cache key for cache + * reads and/or writes. If no `cacheKeyWillBeUsed` plugin callbacks have + * been registered, the passed request is returned unmodified + * + * @param {Request} request + * @param {string} mode + * @return {Promise} + */ + async getCacheKey(e, t) { + const n = `${e.url} | ${t}`; + if (!this._cacheKeys[n]) { + let a = e; + for (const r of this.iterateCallbacks("cacheKeyWillBeUsed")) + a = R(await r({ + mode: t, + request: a, + event: this.event, + // params has a type any can't change right now. + params: this.params + // eslint-disable-line + })); + this._cacheKeys[n] = a; + } + return this._cacheKeys[n]; + } + /** + * Returns true if the strategy has at least one plugin with the given + * callback. + * + * @param {string} name The name of the callback to check for. + * @return {boolean} + */ + hasCallback(e) { + for (const t of this._strategy.plugins) + if (e in t) + return !0; + return !1; + } + /** + * Runs all plugin callbacks matching the given name, in order, passing the + * given param object (merged ith the current plugin state) as the only + * argument. + * + * Note: since this method runs all plugins, it's not suitable for cases + * where the return value of a callback needs to be applied prior to calling + * the next callback. See + * {@link workbox-strategies.StrategyHandler#iterateCallbacks} + * below for how to handle that case. + * + * @param {string} name The name of the callback to run within each plugin. + * @param {Object} param The object to pass as the first (and only) param + * when executing each callback. This object will be merged with the + * current plugin state prior to callback execution. + */ + async runCallbacks(e, t) { + for (const n of this.iterateCallbacks(e)) + await n(t); + } + /** + * Accepts a callback and returns an iterable of matching plugin callbacks, + * where each callback is wrapped with the current handler state (i.e. when + * you call each callback, whatever object parameter you pass it will + * be merged with the plugin's current state). + * + * @param {string} name The name fo the callback to run + * @return {Array} + */ + *iterateCallbacks(e) { + for (const t of this._strategy.plugins) + if (typeof t[e] == "function") { + const n = this._pluginStateMap.get(t); + yield (r) => { + const i = Object.assign(Object.assign({}, r), { state: n }); + return t[e](i); + }; + } + } + /** + * Adds a promise to the + * [extend lifetime promises]{@link https://w3c.github.io/ServiceWorker/#extendableevent-extend-lifetime-promises} + * of the event event associated with the request being handled (usually a + * `FetchEvent`). + * + * Note: you can await + * {@link workbox-strategies.StrategyHandler~doneWaiting} + * to know when all added promises have settled. + * + * @param {Promise} promise A promise to add to the extend lifetime promises + * of the event that triggered the request. + */ + waitUntil(e) { + return this._extendLifetimePromises.push(e), e; + } + /** + * Returns a promise that resolves once all promises passed to + * {@link workbox-strategies.StrategyHandler~waitUntil} + * have settled. + * + * Note: any work done after `doneWaiting()` settles should be manually + * passed to an event's `waitUntil()` method (not this handler's + * `waitUntil()` method), otherwise the service worker thread my be killed + * prior to your work completing. + */ + async doneWaiting() { + let e; + for (; e = this._extendLifetimePromises.shift(); ) + await e; + } + /** + * Stops running the strategy and immediately resolves any pending + * `waitUntil()` promises. + */ + destroy() { + this._handlerDeferred.resolve(null); + } + /** + * This method will call cacheWillUpdate on the available plugins (or use + * status === 200) to determine if the Response is safe and valid to cache. + * + * @param {Request} options.request + * @param {Response} options.response + * @return {Promise} + * + * @private + */ + async _ensureResponseSafeToCache(e) { + let t = e, n = !1; + for (const a of this.iterateCallbacks("cacheWillUpdate")) + if (t = await a({ + request: this.request, + response: t, + event: this.event + }) || void 0, n = !0, !t) + break; + return n || t && t.status !== 200 && (t = void 0), t; + } +} +class V { + /** + * Creates a new instance of the strategy and sets all documented option + * properties as public instance properties. + * + * Note: if a custom strategy class extends the base Strategy class and does + * not need more than these properties, it does not need to define its own + * constructor. + * + * @param {Object} [options] + * @param {string} [options.cacheName] Cache name to store and retrieve + * requests. Defaults to the cache names provided by + * {@link workbox-core.cacheNames}. + * @param {Array} [options.plugins] [Plugins]{@link https://developers.google.com/web/tools/workbox/guides/using-plugins} + * to use in conjunction with this caching strategy. + * @param {Object} [options.fetchOptions] Values passed along to the + * [`init`](https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/fetch#Parameters) + * of [non-navigation](https://github.com/GoogleChrome/workbox/issues/1796) + * `fetch()` requests made by this strategy. + * @param {Object} [options.matchOptions] The + * [`CacheQueryOptions`]{@link https://w3c.github.io/ServiceWorker/#dictdef-cachequeryoptions} + * for any `cache.match()` or `cache.put()` calls made by this strategy. + */ + constructor(e = {}) { + this.cacheName = x.getRuntimeName(e.cacheName), this.plugins = e.plugins || [], this.fetchOptions = e.fetchOptions, this.matchOptions = e.matchOptions; + } + /** + * Perform a request strategy and returns a `Promise` that will resolve with + * a `Response`, invoking all relevant plugin callbacks. + * + * When a strategy instance is registered with a Workbox + * {@link workbox-routing.Route}, this method is automatically + * called when the route matches. + * + * Alternatively, this method can be used in a standalone `FetchEvent` + * listener by passing it to `event.respondWith()`. + * + * @param {FetchEvent|Object} options A `FetchEvent` or an object with the + * properties listed below. + * @param {Request|string} options.request A request to run this strategy for. + * @param {ExtendableEvent} options.event The event associated with the + * request. + * @param {URL} [options.url] + * @param {*} [options.params] + */ + handle(e) { + const [t] = this.handleAll(e); + return t; + } + /** + * Similar to {@link workbox-strategies.Strategy~handle}, but + * instead of just returning a `Promise` that resolves to a `Response` it + * it will return an tuple of `[response, done]` promises, where the former + * (`response`) is equivalent to what `handle()` returns, and the latter is a + * Promise that will resolve once any promises that were added to + * `event.waitUntil()` as part of performing the strategy have completed. + * + * You can await the `done` promise to ensure any extra work performed by + * the strategy (usually caching responses) completes successfully. + * + * @param {FetchEvent|Object} options A `FetchEvent` or an object with the + * properties listed below. + * @param {Request|string} options.request A request to run this strategy for. + * @param {ExtendableEvent} options.event The event associated with the + * request. + * @param {URL} [options.url] + * @param {*} [options.params] + * @return {Array} A tuple of [response, done] + * promises that can be used to determine when the response resolves as + * well as when the handler has completed all its work. + */ + handleAll(e) { + e instanceof FetchEvent && (e = { + event: e, + request: e.request + }); + const t = e.event, n = typeof e.request == "string" ? new Request(e.request) : e.request, a = "params" in e ? e.params : void 0, r = new ve(this, { event: t, request: n, params: a }), i = this._getResponse(r, n, t), c = this._awaitComplete(i, r, n, t); + return [i, c]; + } + async _getResponse(e, t, n) { + await e.runCallbacks("handlerWillStart", { event: n, request: t }); + let a; + try { + if (a = await this._handle(t, e), !a || a.type === "error") + throw new h("no-response", { url: t.url }); + } catch (r) { + if (r instanceof Error) { + for (const i of e.iterateCallbacks("handlerDidError")) + if (a = await i({ error: r, event: n, request: t }), a) + break; + } + if (!a) + throw r; + } + for (const r of e.iterateCallbacks("handlerWillRespond")) + a = await r({ event: n, request: t, response: a }); + return a; + } + async _awaitComplete(e, t, n, a) { + let r, i; + try { + r = await e; + } catch { + } + try { + await t.runCallbacks("handlerDidRespond", { + event: a, + request: n, + response: r + }), await t.doneWaiting(); + } catch (c) { + c instanceof Error && (i = c); + } + if (await t.runCallbacks("handlerDidComplete", { + event: a, + request: n, + response: r, + error: i + }), t.destroy(), i) + throw i; + } +} +class p extends V { + /** + * + * @param {Object} [options] + * @param {string} [options.cacheName] Cache name to store and retrieve + * requests. Defaults to the cache names provided by + * {@link workbox-core.cacheNames}. + * @param {Array} [options.plugins] {@link https://developers.google.com/web/tools/workbox/guides/using-plugins|Plugins} + * to use in conjunction with this caching strategy. + * @param {Object} [options.fetchOptions] Values passed along to the + * {@link https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/fetch#Parameters|init} + * of all fetch() requests made by this strategy. + * @param {Object} [options.matchOptions] The + * {@link https://w3c.github.io/ServiceWorker/#dictdef-cachequeryoptions|CacheQueryOptions} + * for any `cache.match()` or `cache.put()` calls made by this strategy. + * @param {boolean} [options.fallbackToNetwork=true] Whether to attempt to + * get the response from the network if there's a precache miss. + */ + constructor(e = {}) { + e.cacheName = x.getPrecacheName(e.cacheName), super(e), this._fallbackToNetwork = e.fallbackToNetwork !== !1, this.plugins.push(p.copyRedirectedCacheableResponsesPlugin); + } + /** + * @private + * @param {Request|string} request A request to run this strategy for. + * @param {workbox-strategies.StrategyHandler} handler The event that + * triggered the request. + * @return {Promise} + */ + async _handle(e, t) { + const n = await t.cacheMatch(e); + return n || (t.event && t.event.type === "install" ? await this._handleInstall(e, t) : await this._handleFetch(e, t)); + } + async _handleFetch(e, t) { + let n; + const a = t.params || {}; + if (this._fallbackToNetwork) { + const r = a.integrity, i = e.integrity, c = !i || i === r; + n = await t.fetch(new Request(e, { + integrity: e.mode !== "no-cors" ? i || r : void 0 + })), r && c && e.mode !== "no-cors" && (this._useDefaultCacheabilityPluginIfNeeded(), await t.cachePut(e, n.clone())); + } else + throw new h("missing-precache-entry", { + cacheName: this.cacheName, + url: e.url + }); + return n; + } + async _handleInstall(e, t) { + this._useDefaultCacheabilityPluginIfNeeded(); + const n = await t.fetch(e); + if (!await t.cachePut(e, n.clone())) + throw new h("bad-precaching-response", { + url: e.url, + status: n.status + }); + return n; + } + /** + * This method is complex, as there a number of things to account for: + * + * The `plugins` array can be set at construction, and/or it might be added to + * to at any time before the strategy is used. + * + * At the time the strategy is used (i.e. during an `install` event), there + * needs to be at least one plugin that implements `cacheWillUpdate` in the + * array, other than `copyRedirectedCacheableResponsesPlugin`. + * + * - If this method is called and there are no suitable `cacheWillUpdate` + * plugins, we need to add `defaultPrecacheCacheabilityPlugin`. + * + * - If this method is called and there is exactly one `cacheWillUpdate`, then + * we don't have to do anything (this might be a previously added + * `defaultPrecacheCacheabilityPlugin`, or it might be a custom plugin). + * + * - If this method is called and there is more than one `cacheWillUpdate`, + * then we need to check if one is `defaultPrecacheCacheabilityPlugin`. If so, + * we need to remove it. (This situation is unlikely, but it could happen if + * the strategy is used multiple times, the first without a `cacheWillUpdate`, + * and then later on after manually adding a custom `cacheWillUpdate`.) + * + * See https://github.com/GoogleChrome/workbox/issues/2737 for more context. + * + * @private + */ + _useDefaultCacheabilityPluginIfNeeded() { + let e = null, t = 0; + for (const [n, a] of this.plugins.entries()) + a !== p.copyRedirectedCacheableResponsesPlugin && (a === p.defaultPrecacheCacheabilityPlugin && (e = n), a.cacheWillUpdate && t++); + t === 0 ? this.plugins.push(p.defaultPrecacheCacheabilityPlugin) : t > 1 && e !== null && this.plugins.splice(e, 1); + } +} +p.defaultPrecacheCacheabilityPlugin = { + async cacheWillUpdate({ response: s }) { + return !s || s.status >= 400 ? null : s; + } +}; +p.copyRedirectedCacheableResponsesPlugin = { + async cacheWillUpdate({ response: s }) { + return s.redirected ? await ne(s) : s; + } +}; +class Ee { + /** + * Create a new PrecacheController. + * + * @param {Object} [options] + * @param {string} [options.cacheName] The cache to use for precaching. + * @param {string} [options.plugins] Plugins to use when precaching as well + * as responding to fetch events for precached assets. + * @param {boolean} [options.fallbackToNetwork=true] Whether to attempt to + * get the response from the network if there's a precache miss. + */ + constructor({ cacheName: e, plugins: t = [], fallbackToNetwork: n = !0 } = {}) { + this._urlsToCacheKeys = /* @__PURE__ */ new Map(), this._urlsToCacheModes = /* @__PURE__ */ new Map(), this._cacheKeysToIntegrities = /* @__PURE__ */ new Map(), this._strategy = new p({ + cacheName: x.getPrecacheName(e), + plugins: [ + ...t, + new ke({ precacheController: this }) + ], + fallbackToNetwork: n + }), this.install = this.install.bind(this), this.activate = this.activate.bind(this); + } + /** + * @type {workbox-precaching.PrecacheStrategy} The strategy created by this controller and + * used to cache assets and respond to fetch events. + */ + get strategy() { + return this._strategy; + } + /** + * Adds items to the precache list, removing any duplicates and + * stores the files in the + * {@link workbox-core.cacheNames|"precache cache"} when the service + * worker installs. + * + * This method can be called multiple times. + * + * @param {Array} [entries=[]] Array of entries to precache. + */ + precache(e) { + this.addToCacheList(e), this._installAndActiveListenersAdded || (self.addEventListener("install", this.install), self.addEventListener("activate", this.activate), this._installAndActiveListenersAdded = !0); + } + /** + * This method will add items to the precache list, removing duplicates + * and ensuring the information is valid. + * + * @param {Array} entries + * Array of entries to precache. + */ + addToCacheList(e) { + const t = []; + for (const n of e) { + typeof n == "string" ? t.push(n) : n && n.revision === void 0 && t.push(n.url); + const { cacheKey: a, url: r } = Ce(n), i = typeof n != "string" && n.revision ? "reload" : "default"; + if (this._urlsToCacheKeys.has(r) && this._urlsToCacheKeys.get(r) !== a) + throw new h("add-to-cache-list-conflicting-entries", { + firstEntry: this._urlsToCacheKeys.get(r), + secondEntry: a + }); + if (typeof n != "string" && n.integrity) { + if (this._cacheKeysToIntegrities.has(a) && this._cacheKeysToIntegrities.get(a) !== n.integrity) + throw new h("add-to-cache-list-conflicting-integrities", { + url: r + }); + this._cacheKeysToIntegrities.set(a, n.integrity); + } + if (this._urlsToCacheKeys.set(r, a), this._urlsToCacheModes.set(r, i), t.length > 0) { + const c = `Workbox is precaching URLs without revision info: ${t.join(", ")} +This is generally NOT safe. Learn more at https://bit.ly/wb-precache`; + console.warn(c); + } + } + } + /** + * Precaches new and updated assets. Call this method from the service worker + * install event. + * + * Note: this method calls `event.waitUntil()` for you, so you do not need + * to call it yourself in your event handlers. + * + * @param {ExtendableEvent} event + * @return {Promise} + */ + install(e) { + return A(e, async () => { + const t = new xe(); + this.strategy.plugins.push(t); + for (const [r, i] of this._urlsToCacheKeys) { + const c = this._cacheKeysToIntegrities.get(i), o = this._urlsToCacheModes.get(r), l = new Request(r, { + integrity: c, + cache: o, + credentials: "same-origin" + }); + await Promise.all(this.strategy.handleAll({ + params: { cacheKey: i }, + request: l, + event: e + })); + } + const { updatedURLs: n, notUpdatedURLs: a } = t; + return { updatedURLs: n, notUpdatedURLs: a }; + }); + } + /** + * Deletes assets that are no longer present in the current precache manifest. + * Call this method from the service worker activate event. + * + * Note: this method calls `event.waitUntil()` for you, so you do not need + * to call it yourself in your event handlers. + * + * @param {ExtendableEvent} event + * @return {Promise} + */ + activate(e) { + return A(e, async () => { + const t = await self.caches.open(this.strategy.cacheName), n = await t.keys(), a = new Set(this._urlsToCacheKeys.values()), r = []; + for (const i of n) + a.has(i.url) || (await t.delete(i), r.push(i.url)); + return { deletedURLs: r }; + }); + } + /** + * Returns a mapping of a precached URL to the corresponding cache key, taking + * into account the revision information for the URL. + * + * @return {Map} A URL to cache key mapping. + */ + getURLsToCacheKeys() { + return this._urlsToCacheKeys; + } + /** + * Returns a list of all the URLs that have been precached by the current + * service worker. + * + * @return {Array} The precached URLs. + */ + getCachedURLs() { + return [...this._urlsToCacheKeys.keys()]; + } + /** + * Returns the cache key used for storing a given URL. If that URL is + * unversioned, like `/index.html', then the cache key will be the original + * URL with a search parameter appended to it. + * + * @param {string} url A URL whose cache key you want to look up. + * @return {string} The versioned URL that corresponds to a cache key + * for the original URL, or undefined if that URL isn't precached. + */ + getCacheKeyForURL(e) { + const t = new URL(e, location.href); + return this._urlsToCacheKeys.get(t.href); + } + /** + * @param {string} url A cache key whose SRI you want to look up. + * @return {string} The subresource integrity associated with the cache key, + * or undefined if it's not set. + */ + getIntegrityForCacheKey(e) { + return this._cacheKeysToIntegrities.get(e); + } + /** + * This acts as a drop-in replacement for + * [`cache.match()`](https://developer.mozilla.org/en-US/docs/Web/API/Cache/match) + * with the following differences: + * + * - It knows what the name of the precache is, and only checks in that cache. + * - It allows you to pass in an "original" URL without versioning parameters, + * and it will automatically look up the correct cache key for the currently + * active revision of that URL. + * + * E.g., `matchPrecache('index.html')` will find the correct precached + * response for the currently active service worker, even if the actual cache + * key is `'/index.html?__WB_REVISION__=1234abcd'`. + * + * @param {string|Request} request The key (without revisioning parameters) + * to look up in the precache. + * @return {Promise} + */ + async matchPrecache(e) { + const t = e instanceof Request ? e.url : e, n = this.getCacheKeyForURL(t); + if (n) + return (await self.caches.open(this.strategy.cacheName)).match(n); + } + /** + * Returns a function that looks up `url` in the precache (taking into + * account revision information), and returns the corresponding `Response`. + * + * @param {string} url The precached URL which will be used to lookup the + * `Response`. + * @return {workbox-routing~handlerCallback} + */ + createHandlerBoundToURL(e) { + const t = this.getCacheKeyForURL(e); + if (!t) + throw new h("non-precached-url", { url: e }); + return (n) => (n.request = new Request(e), n.params = Object.assign({ cacheKey: t }, n.params), this.strategy.handle(n)); + } +} +let L; +const I = () => (L || (L = new Ee()), L); +try { + self["workbox:routing:7.0.0"] && _(); +} catch { +} +const $ = "GET", C = (s) => s && typeof s == "object" ? s : { handle: s }; +class b { + /** + * Constructor for Route class. + * + * @param {workbox-routing~matchCallback} match + * A callback function that determines whether the route matches a given + * `fetch` event by returning a non-falsy value. + * @param {workbox-routing~handlerCallback} handler A callback + * function that returns a Promise resolving to a Response. + * @param {string} [method='GET'] The HTTP method to match the Route + * against. + */ + constructor(e, t, n = $) { + this.handler = C(t), this.match = e, this.method = n; + } + /** + * + * @param {workbox-routing-handlerCallback} handler A callback + * function that returns a Promise resolving to a Response + */ + setCatchHandler(e) { + this.catchHandler = C(e); + } +} +class De extends b { + /** + * If the regular expression contains + * [capture groups]{@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp#grouping-back-references}, + * the captured values will be passed to the + * {@link workbox-routing~handlerCallback} `params` + * argument. + * + * @param {RegExp} regExp The regular expression to match against URLs. + * @param {workbox-routing~handlerCallback} handler A callback + * function that returns a Promise resulting in a Response. + * @param {string} [method='GET'] The HTTP method to match the Route + * against. + */ + constructor(e, t, n) { + const a = ({ url: r }) => { + const i = e.exec(r.href); + if (i && !(r.origin !== location.origin && i.index !== 0)) + return i.slice(1); + }; + super(a, t, n); + } +} +class Le { + /** + * Initializes a new Router. + */ + constructor() { + this._routes = /* @__PURE__ */ new Map(), this._defaultHandlerMap = /* @__PURE__ */ new Map(); + } + /** + * @return {Map>} routes A `Map` of HTTP + * method name ('GET', etc.) to an array of all the corresponding `Route` + * instances that are registered. + */ + get routes() { + return this._routes; + } + /** + * Adds a fetch event listener to respond to events when a route matches + * the event's request. + */ + addFetchListener() { + self.addEventListener("fetch", (e) => { + const { request: t } = e, n = this.handleRequest({ request: t, event: e }); + n && e.respondWith(n); + }); + } + /** + * Adds a message event listener for URLs to cache from the window. + * This is useful to cache resources loaded on the page prior to when the + * service worker started controlling it. + * + * The format of the message data sent from the window should be as follows. + * Where the `urlsToCache` array may consist of URL strings or an array of + * URL string + `requestInit` object (the same as you'd pass to `fetch()`). + * + * ``` + * { + * type: 'CACHE_URLS', + * payload: { + * urlsToCache: [ + * './script1.js', + * './script2.js', + * ['./script3.js', {mode: 'no-cors'}], + * ], + * }, + * } + * ``` + */ + addCacheListener() { + self.addEventListener("message", (e) => { + if (e.data && e.data.type === "CACHE_URLS") { + const { payload: t } = e.data, n = Promise.all(t.urlsToCache.map((a) => { + typeof a == "string" && (a = [a]); + const r = new Request(...a); + return this.handleRequest({ request: r, event: e }); + })); + e.waitUntil(n), e.ports && e.ports[0] && n.then(() => e.ports[0].postMessage(!0)); + } + }); + } + /** + * Apply the routing rules to a FetchEvent object to get a Response from an + * appropriate Route's handler. + * + * @param {Object} options + * @param {Request} options.request The request to handle. + * @param {ExtendableEvent} options.event The event that triggered the + * request. + * @return {Promise|undefined} A promise is returned if a + * registered route can handle the request. If there is no matching + * route and there's no `defaultHandler`, `undefined` is returned. + */ + handleRequest({ request: e, event: t }) { + const n = new URL(e.url, location.href); + if (!n.protocol.startsWith("http")) + return; + const a = n.origin === location.origin, { params: r, route: i } = this.findMatchingRoute({ + event: t, + request: e, + sameOrigin: a, + url: n + }); + let c = i && i.handler; + const o = e.method; + if (!c && this._defaultHandlerMap.has(o) && (c = this._defaultHandlerMap.get(o)), !c) + return; + let l; + try { + l = c.handle({ url: n, request: e, event: t, params: r }); + } catch (u) { + l = Promise.reject(u); + } + const g = i && i.catchHandler; + return l instanceof Promise && (this._catchHandler || g) && (l = l.catch(async (u) => { + if (g) + try { + return await g.handle({ url: n, request: e, event: t, params: r }); + } catch (N) { + N instanceof Error && (u = N); + } + if (this._catchHandler) + return this._catchHandler.handle({ url: n, request: e, event: t }); + throw u; + })), l; + } + /** + * Checks a request and URL (and optionally an event) against the list of + * registered routes, and if there's a match, returns the corresponding + * route along with any params generated by the match. + * + * @param {Object} options + * @param {URL} options.url + * @param {boolean} options.sameOrigin The result of comparing `url.origin` + * against the current origin. + * @param {Request} options.request The request to match. + * @param {Event} options.event The corresponding event. + * @return {Object} An object with `route` and `params` properties. + * They are populated if a matching route was found or `undefined` + * otherwise. + */ + findMatchingRoute({ url: e, sameOrigin: t, request: n, event: a }) { + const r = this._routes.get(n.method) || []; + for (const i of r) { + let c; + const o = i.match({ url: e, sameOrigin: t, request: n, event: a }); + if (o) + return c = o, (Array.isArray(c) && c.length === 0 || o.constructor === Object && // eslint-disable-line + Object.keys(o).length === 0 || typeof o == "boolean") && (c = void 0), { route: i, params: c }; + } + return {}; + } + /** + * Define a default `handler` that's called when no routes explicitly + * match the incoming request. + * + * Each HTTP method ('GET', 'POST', etc.) gets its own default handler. + * + * Without a default handler, unmatched requests will go against the + * network as if there were no service worker present. + * + * @param {workbox-routing~handlerCallback} handler A callback + * function that returns a Promise resulting in a Response. + * @param {string} [method='GET'] The HTTP method to associate with this + * default handler. Each method has its own default. + */ + setDefaultHandler(e, t = $) { + this._defaultHandlerMap.set(t, C(e)); + } + /** + * If a Route throws an error while handling a request, this `handler` + * will be called and given a chance to provide a response. + * + * @param {workbox-routing~handlerCallback} handler A callback + * function that returns a Promise resulting in a Response. + */ + setCatchHandler(e) { + this._catchHandler = C(e); + } + /** + * Registers a route with the router. + * + * @param {workbox-routing.Route} route The route to register. + */ + registerRoute(e) { + this._routes.has(e.method) || this._routes.set(e.method, []), this._routes.get(e.method).push(e); + } + /** + * Unregisters a route with the router. + * + * @param {workbox-routing.Route} route The route to unregister. + */ + unregisterRoute(e) { + if (!this._routes.has(e.method)) + throw new h("unregister-route-but-not-found-with-method", { + method: e.method + }); + const t = this._routes.get(e.method).indexOf(e); + if (t > -1) + this._routes.get(e.method).splice(t, 1); + else + throw new h("unregister-route-route-not-registered"); + } +} +let y; +const Ue = () => (y || (y = new Le(), y.addFetchListener(), y.addCacheListener()), y); +function M(s, e, t) { + let n; + if (typeof s == "string") { + const r = new URL(s, location.href), i = ({ url: c }) => c.href === r.href; + n = new b(i, e, t); + } else if (s instanceof RegExp) + n = new De(s, e, t); + else if (typeof s == "function") + n = new b(s, e, t); + else if (s instanceof b) + n = s; + else + throw new h("unsupported-route-type", { + moduleName: "workbox-routing", + funcName: "registerRoute", + paramName: "capture" + }); + return Ue().registerRoute(n), n; +} +function Te(s, e = []) { + for (const t of [...s.searchParams.keys()]) + e.some((n) => n.test(t)) && s.searchParams.delete(t); + return s; +} +function* Pe(s, { ignoreURLParametersMatching: e = [/^utm_/, /^fbclid$/], directoryIndex: t = "index.html", cleanURLs: n = !0, urlManipulation: a } = {}) { + const r = new URL(s, location.href); + r.hash = "", yield r.href; + const i = Te(r, e); + if (yield i.href, t && i.pathname.endsWith("/")) { + const c = new URL(i.href); + c.pathname += t, yield c.href; + } + if (n) { + const c = new URL(i.href); + c.pathname += ".html", yield c.href; + } + if (a) { + const c = a({ url: r }); + for (const o of c) + yield o.href; + } +} +class Ie extends b { + /** + * @param {PrecacheController} precacheController A `PrecacheController` + * instance used to both match requests and respond to fetch events. + * @param {Object} [options] Options to control how requests are matched + * against the list of precached URLs. + * @param {string} [options.directoryIndex=index.html] The `directoryIndex` will + * check cache entries for a URLs ending with '/' to see if there is a hit when + * appending the `directoryIndex` value. + * @param {Array} [options.ignoreURLParametersMatching=[/^utm_/, /^fbclid$/]] An + * array of regex's to remove search params when looking for a cache match. + * @param {boolean} [options.cleanURLs=true] The `cleanURLs` option will + * check the cache for the URL with a `.html` added to the end of the end. + * @param {workbox-precaching~urlManipulation} [options.urlManipulation] + * This is a function that should take a URL and return an array of + * alternative URLs that should be checked for precache matches. + */ + constructor(e, t) { + const n = ({ request: a }) => { + const r = e.getURLsToCacheKeys(); + for (const i of Pe(a.url, t)) { + const c = r.get(i); + if (c) { + const o = e.getIntegrityForCacheKey(c); + return { cacheKey: c, integrity: o }; + } + } + }; + super(n, e.strategy); + } +} +function Me(s) { + const e = I(), t = new Ie(e, s); + M(t); +} +function Ne(s) { + return I().createHandlerBoundToURL(s); +} +function Ke(s) { + I().precache(s); +} +function Ae(s, e) { + Ke(s), Me(e); +} +const je = { + /** + * Returns a valid response (to allow caching) if the status is 200 (OK) or + * 0 (opaque). + * + * @param {Object} options + * @param {Response} options.response + * @return {Response|null} + * + * @private + */ + cacheWillUpdate: async ({ response: s }) => s.status === 200 || s.status === 0 ? s : null +}; +class Oe extends V { + /** + * @param {Object} [options] + * @param {string} [options.cacheName] Cache name to store and retrieve + * requests. Defaults to cache names provided by + * {@link workbox-core.cacheNames}. + * @param {Array} [options.plugins] [Plugins]{@link https://developers.google.com/web/tools/workbox/guides/using-plugins} + * to use in conjunction with this caching strategy. + * @param {Object} [options.fetchOptions] Values passed along to the + * [`init`](https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/fetch#Parameters) + * of [non-navigation](https://github.com/GoogleChrome/workbox/issues/1796) + * `fetch()` requests made by this strategy. + * @param {Object} [options.matchOptions] [`CacheQueryOptions`](https://w3c.github.io/ServiceWorker/#dictdef-cachequeryoptions) + */ + constructor(e = {}) { + super(e), this.plugins.some((t) => "cacheWillUpdate" in t) || this.plugins.unshift(je); + } + /** + * @private + * @param {Request|string} request A request to run this strategy for. + * @param {workbox-strategies.StrategyHandler} handler The event that + * triggered the request. + * @return {Promise} + */ + async _handle(e, t) { + const n = t.fetchAndCachePut(e).catch(() => { + }); + t.waitUntil(n); + let a = await t.cacheMatch(e), r; + if (!a) + try { + a = await n; + } catch (i) { + i instanceof Error && (r = i); + } + if (!a) + throw new h("no-response", { url: e.url, error: r }); + return a; + } +} +const Se = "shlink-web-client", We = "A React-based progressive web application for shlink", Be = "/shlink-web-client/develop", qe = "https://github.com/shlinkio/shlink-web-client", Fe = "MIT", He = "module", Ve = { + lint: "npm run lint:css && npm run lint:js", + "lint:css": "stylelint src/*.scss src/**/*.scss", + "lint:js": "eslint --ext .js,.ts,.tsx src test", + "lint:fix": "npm run lint:css:fix && npm run lint:js:fix", + "lint:css:fix": "npm run lint:css -- --fix", + "lint:js:fix": "npm run lint:js -- --fix", + types: "tsc", + start: "vite serve --host=0.0.0.0", + preview: "vite preview --host=0.0.0.0", + build: "npm run types && vite build && node scripts/replace-version.mjs", + "build:dist": "npm run build && node scripts/create-dist-file.mjs", + test: "vitest run --run", + "test:watch": "vitest --watch", + "test:ci": "npm run test -- --coverage", + "test:verbose": "npm run test -- --verbose" +}, $e = { + "@fortawesome/fontawesome-free": "^6.5.1", + "@fortawesome/fontawesome-svg-core": "^6.5.1", + "@fortawesome/free-brands-svg-icons": "^6.5.1", + "@fortawesome/free-regular-svg-icons": "^6.5.1", + "@fortawesome/free-solid-svg-icons": "^6.5.1", + "@fortawesome/react-fontawesome": "^0.2.0", + "@json2csv/plainjs": "^7.0.5", + "@reduxjs/toolkit": "^2.1.0", + "@shlinkio/data-manipulation": "^1.0.3", + "@shlinkio/shlink-frontend-kit": "^0.4.2", + "@shlinkio/shlink-js-sdk": "^0.2.2", + "@shlinkio/shlink-web-component": "^0.5.0", + bootstrap: "5.2.3", + bottlejs: "^2.0.1", + clsx: "^2.1.0", + "compare-versions": "^6.1.0", + csvtojson: "^2.0.10", + "date-fns": "^3.3.1", + react: "^18.2.0", + "react-dom": "^18.2.0", + "react-external-link": "^2.2.0", + "react-redux": "^9.1.0", + "react-router-dom": "^6.21.3", + reactstrap: "^9.2.2", + "redux-localstorage-simple": "^2.5.1", + uuid: "^9.0.1", + "workbox-core": "^7.0.0", + "workbox-expiration": "^7.0.0", + "workbox-precaching": "^7.0.0", + "workbox-routing": "^7.0.0", + "workbox-strategies": "^7.0.0" +}, Ge = { + "@shlinkio/eslint-config-js-coding-standard": "~2.3.0", + "@shlinkio/stylelint-config-css-coding-standard": "~1.1.1", + "@testing-library/jest-dom": "^6.3.0", + "@testing-library/react": "^14.1.2", + "@testing-library/user-event": "^14.5.2", + "@total-typescript/shoehorn": "^0.1.1", + "@types/react": "^18.2.48", + "@types/react-dom": "^18.2.18", + "@types/uuid": "^9.0.8", + "@vitejs/plugin-react": "^4.2.1", + "@vitest/coverage-v8": "^1.2.2", + "adm-zip": "^0.5.10", + "axe-core": "^4.8.3", + chalk: "^5.3.0", + eslint: "^8.56.0", + history: "^5.3.0", + jsdom: "^24.0.0", + sass: "^1.70.0", + stylelint: "^15.11.0", + typescript: "^5.3.3", + vite: "^5.0.12", + "vite-plugin-pwa": "^0.17.5", + vitest: "^1.2.2" +}, Qe = [ + ">0.2%", + "not dead", + "not ie <= 11", + "not op_mini all" +], ze = { + name: Se, + description: We, + private: !1, + homepage: Be, + repository: qe, + license: Fe, + type: He, + scripts: Ve, + dependencies: $e, + devDependencies: Ge, + browserslist: Qe +}; +ae(); +Ae([{"revision":null,"url":"assets/index-CQj-G6Vv.css"},{"revision":null,"url":"assets/index-Ot_bbhNG.js"},{"revision":"d148822bfd814c9bce203eed296451df","url":"index.html"},{"revision":"3e8169a112865ef0d76bba4e2dfd3a89","url":"./icons/icon-16x16.png"},{"revision":"20f0b51945ae3c973420e31d6b4d43c1","url":"./icons/icon-24x24.png"},{"revision":"4c9695cfb4cea403c1b66bbb7b4f7420","url":"./icons/icon-32x32.png"},{"revision":"f74edb9cc54ac938c1589876f8da9f21","url":"./icons/icon-40x40.png"},{"revision":"52933970fac8498311687de13549b014","url":"./icons/icon-48x48.png"},{"revision":"40209a194f29b21882571c77bd2bd906","url":"./icons/icon-60x60.png"},{"revision":"c8ba5a8c1da76d74c7bb21827fcf975c","url":"./icons/icon-64x64.png"},{"revision":"ae3435baceb494f9c966e2c2c736ea35","url":"./icons/icon-72x72.png"},{"revision":"850aa5b026fd1452af6c1ddd9d71850f","url":"./icons/icon-76x76.png"},{"revision":"8c62535e6b7a498ece1f6c6ae62ede59","url":"./icons/icon-96x96.png"},{"revision":"2dff586aaefa4c8d17f4c0bcbdef8b53","url":"./icons/icon-114x114.png"},{"revision":"8e28257a68ef1c55bc68bfff80e1a310","url":"./icons/icon-120x120.png"},{"revision":"0059b6f0c97fa871a5c29643b2857585","url":"./icons/icon-128x128.png"},{"revision":"41478c2456281f61e54d714718743ecc","url":"./icons/icon-144x144.png"},{"revision":"625251910295f33a578ae6d8117711c9","url":"./icons/icon-150x150.png"},{"revision":"19b71508b1d05defe32cf16a7d453001","url":"./icons/icon-152x152.png"},{"revision":"9d029a32a54ba3084c67acd5d74f8ac4","url":"./icons/icon-160x160.png"},{"revision":"6ec104aeaf745f003ecdaef2edddce97","url":"./icons/icon-167x167.png"},{"revision":"871d67907434ed0ddf5d2a6c220e09af","url":"./icons/icon-180x180.png"},{"revision":"cee2529402074d73b2135e2ddee25f6b","url":"./icons/icon-192x192.png"},{"revision":"85055b452284c0193142936dee7d2cd1","url":"./icons/icon-196x196.png"},{"revision":"f471155dd70b99924422dd9dd87ea94d","url":"./icons/icon-228x228.png"},{"revision":"4d896c5c7025582605de31fb74f0316b","url":"./icons/icon-256x256.png"},{"revision":"d99b49e5bcad41968313c3e132e7c661","url":"./icons/icon-310x310.png"},{"revision":"f9597636bef677327c3abc0fd1a743c4","url":"./icons/icon-384x384.png"},{"revision":"de22c0eb9e08d3576df5cedb568ca56b","url":"./icons/icon-512x512.png"},{"revision":"583b223ad8e20f05aaa64923d7db2e46","url":"./icons/icon-1024x1024.png"},{"revision":"9f283394af4feaec045a458f6cd5e4e8","url":"manifest.json"}]); +const Je = new RegExp("/[^/?]+\\.[^/]+$"); +M( + // Return false to exempt requests from being fulfilled by index.html. + ({ request: s, url: e }) => !(s.mode !== "navigate" || e.pathname.startsWith("/_") || e.pathname.match(Je)), + Ne(`${ze.homepage}/index.html`) +); +M( + // Add in any other file extensions or routing criteria as needed. + ({ url: s }) => s.origin === self.location.origin && s.pathname.endsWith(".png"), + // Customize this strategy as needed, e.g., by changing to CacheFirst. + new Oe({ + cacheName: "images", + plugins: [ + // Ensure that once this runtime cache reaches a maximum size the + // least-recently used images are removed. + new be({ maxEntries: 50 }) + ] + }) +); +self.addEventListener("message", (s) => { + s.data && s.data.type === "SKIP_WAITING" && self.skipWaiting(); +});