commit 4423badefd78baceebb2fc9c5525572684cdcb5a Author: admin Date: Thu Jul 24 20:14:43 2025 +0300 first commit diff --git a/api/static/icons/ozon.png b/api/static/icons/ozon.png new file mode 100644 index 0000000..1effefc Binary files /dev/null and b/api/static/icons/ozon.png differ diff --git a/api/static/icons/wb.svg b/api/static/icons/wb.svg new file mode 100644 index 0000000..3fc2817 --- /dev/null +++ b/api/static/icons/wb.svg @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + diff --git a/api/static/icons/ym.png b/api/static/icons/ym.png new file mode 100644 index 0000000..a19c517 Binary files /dev/null and b/api/static/icons/ym.png differ diff --git a/assets/IconPlayerPause-CiILB2ws.js b/assets/IconPlayerPause-CiILB2ws.js new file mode 100644 index 0000000..d83fbdb --- /dev/null +++ b/assets/IconPlayerPause-CiILB2ws.js @@ -0,0 +1,74 @@ +import {r as l, ad as i} from "./index-CdMy-Rhi.js"; +function M(p=[]) { + const [r,n] = l.useState(p); + return [r, { + setState: n, + append: (...e) => n(t => [...t, ...e]), + prepend: (...e) => n(t => [...e, ...t]), + insert: (e, ...t) => n(o => [...o.slice(0, e), ...t, ...o.slice(e)]), + pop: () => n(e => { + const t = [...e]; + return t.pop(), + t + } + ), + shift: () => n(e => { + const t = [...e]; + return t.shift(), + t + } + ), + apply: e => n(t => t.map( (o, s) => e(o, s))), + applyWhere: (e, t) => n(o => o.map( (s, c) => e(s, c) ? t(s, c) : s)), + remove: (...e) => n(t => t.filter( (o, s) => !e.includes(s))), + reorder: ({from: e, to: t}) => n(o => { + const s = [...o] + , c = o[e]; + return s.splice(e, 1), + s.splice(t, 0, c), + s + } + ), + swap: ({from: e, to: t}) => n(o => { + const s = [...o] + , c = s[e] + , a = s[t]; + return s.splice(t, 1, c), + s.splice(e, 1, a), + s + } + ), + setItem: (e, t) => n(o => { + const s = [...o]; + return s[e] = t, + s + } + ), + setItemProp: (e, t, o) => n(s => { + const c = [...s]; + return c[e] = { + ...c[e], + [t]: o + }, + c + } + ), + filter: e => { + n(t => t.filter(e)) + } + }] +} +/** + * @license @tabler/icons-react v3.21.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */ +var W = i("outline", "player-pause", "IconPlayerPause", [["path", { + d: "M6 5m0 1a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v12a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1z", + key: "svg-0" +}], ["path", { + d: "M14 5m0 1a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v12a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1z", + key: "svg-1" +}]]); +export {W as I, M as u}; diff --git a/assets/List-Xt0hH74q.js b/assets/List-Xt0hH74q.js new file mode 100644 index 0000000..ba5e174 --- /dev/null +++ b/assets/List-Xt0hH74q.js @@ -0,0 +1,98 @@ +import {aO as N, h as f, a as v, j as n, B as b, b as _, d as w, aP as R, aQ as B, aR as C} from "./index-CdMy-Rhi.js"; +const [W,z] = N("List component was not found in tree"); +var h = { + root: "m_abbac491", + item: "m_abb6bec2", + itemWrapper: "m_75cd9f71", + itemIcon: "m_60f83e5b" +}; +const A = {} + , u = f( (a, e) => { + const t = v("ListItem", A, a) + , {classNames: c, className: r, style: l, styles: m, vars: L, icon: p, children: d, mod: y, ...g} = t + , s = z() + , i = p || s.icon + , o = { + classNames: c, + styles: m + }; + return n.jsx(b, { + ...s.getStyles("item", { + ...o, + className: r, + style: l + }), + component: "li", + mod: [{ + "with-icon": !!i, + centered: s.center + }, y], + ref: e, + ...g, + children: n.jsxs("div", { + ...s.getStyles("itemWrapper", o), + children: [i && n.jsx("span", { + ...s.getStyles("itemIcon", o), + children: i + }), n.jsx("span", { + ...s.getStyles("itemLabel", o), + children: d + })] + }) + }) +} +); +u.classes = h; +u.displayName = "@mantine/core/ListItem"; +const E = { + type: "unordered" +} + , F = w( (a, {size: e, spacing: t}) => ({ + root: { + "--list-fz": R(e), + "--list-lh": B(e), + "--list-spacing": C(t) + } +})) + , x = f( (a, e) => { + const t = v("List", E, a) + , {classNames: c, className: r, style: l, styles: m, unstyled: L, vars: p, children: d, type: y, withPadding: g, icon: s, spacing: i, center: o, listStyleType: j, mod: P, ...I} = t + , S = _({ + name: "List", + classes: h, + props: t, + className: r, + style: l, + classNames: c, + styles: m, + unstyled: L, + vars: p, + varsResolver: F + }); + return n.jsx(W, { + value: { + center: o, + icon: s, + getStyles: S + }, + children: n.jsx(b, { + ...S("root", { + style: { + listStyleType: j + } + }), + component: y === "unordered" ? "ul" : "ol", + mod: [{ + "with-padding": g + }, P], + ref: e, + ...I, + children: d + }) + }) +} +); +x.classes = h; +x.displayName = "@mantine/core/List"; +x.Item = u; +export {x as L}; diff --git a/assets/ProductsPage-Xx-4xNd6.css b/assets/ProductsPage-Xx-4xNd6.css new file mode 100644 index 0000000..f172354 --- /dev/null +++ b/assets/ProductsPage-Xx-4xNd6.css @@ -0,0 +1,23 @@ +._container_1gmcu_1 { + display: flex; + flex-direction: column; + flex: 1 1 0%; + gap: calc(.625rem * var(--mantine-scale)); +} + +._top-panel_1gmcu_11 { + padding: calc(.3125rem * var(--mantine-scale)); + gap: calc(.625rem * var(--mantine-scale)); + display: flex; + justify-content: space-between; +} + +._table-container_1gmcu_18 { + display: flex; + gap: calc(.625rem * var(--mantine-scale)); + flex-direction: column; +} + +._table-pagination_1gmcu_24 { + align-self: flex-end; +} diff --git a/assets/ProductsPage.module-BjEXBNuV.js b/assets/ProductsPage.module-BjEXBNuV.js new file mode 100644 index 0000000..4a660b1 --- /dev/null +++ b/assets/ProductsPage.module-BjEXBNuV.js @@ -0,0 +1,9 @@ +const n = "_container_1gmcu_1" + , t = { + container: n, + "body-container": "_body-container_1gmcu_8", + "top-panel": "_top-panel_1gmcu_11", + "table-container": "_table-container_1gmcu_18", + "table-pagination": "_table-pagination_1gmcu_24" +}; +export {t as s}; diff --git a/assets/ServicesPage-B6wf48AH.css b/assets/ServicesPage-B6wf48AH.css new file mode 100644 index 0000000..9e5d858 --- /dev/null +++ b/assets/ServicesPage-B6wf48AH.css @@ -0,0 +1,16 @@ +._container_b84hd_1 { + display: flex; + flex-direction: column; + flex: 1 1 0%; + gap: calc(.625rem * var(--mantine-scale)); +} + +._top-panel_b84hd_8 { + padding: calc(.3125rem * var(--mantine-scale)); + gap: calc(.625rem * var(--mantine-scale)); + display: flex; +} + +._top-panel-last-item_b84hd_14 { + margin-left: auto; +} diff --git a/assets/ServicesPage.module-BAnCpO1K.js b/assets/ServicesPage.module-BAnCpO1K.js new file mode 100644 index 0000000..1a1fdeb --- /dev/null +++ b/assets/ServicesPage.module-BAnCpO1K.js @@ -0,0 +1,7 @@ +const t = "_container_b84hd_1" + , n = { + container: t, + "top-panel": "_top-panel_b84hd_8", + "top-panel-last-item": "_top-panel-last-item_b84hd_14" +}; +export {n as s}; diff --git a/assets/admin-CjeWXnXD.css b/assets/admin-CjeWXnXD.css new file mode 100644 index 0000000..99090f0 --- /dev/null +++ b/assets/admin-CjeWXnXD.css @@ -0,0 +1,789 @@ +._container_1t4rs_1 { + display: flex; + flex-direction: column; + flex: 1 1 0%; +} + +._icon_1t3nk_1 { + width: calc(.8125rem * var(--mantine-scale)); + height: auto; + vertical-align: calc(-.0625rem * var(--mantine-scale)); + margin-right: calc(.5rem * var(--mantine-scale)); +} + +._expandIcon_1t3nk_8 { + transition: transform 0.2s; +} + +._expandIconRotated_1t3nk_12 { + transform: rotate(90deg); +} + +._usersTableBorder_1t3nk_16 { + border-bottom: solid 1px var(--mantine-color-dark-5); +} + +.mantine-datatable-nowrap { + white-space: nowrap; +} + +.mantine-datatable-ellipsis { + overflow: hidden; + text-overflow: ellipsis; +} + +.mantine-datatable-pointer-cursor { + cursor: pointer; +} + +.mantine-datatable-context-menu-cursor { + cursor: context-menu; +} + +.mantine-datatable-text-selection-disabled { + user-select: none; +} + +.mantine-datatable-text-align-left { + text-align: left; +} + +.mantine-datatable-text-align-center { + text-align: center; +} + +.mantine-datatable-text-align-right { + text-align: right; +} + +.mantine-datatable { + --mantine-datatable-color: var( --mantine-datatable-color-light,var(--mantine-color-text) ); +} + +[data-mantine-color-scheme="dark"] .mantine-datatable { + --mantine-datatable-color: var( --mantine-datatable-color-dark,var(--mantine-color-text) ); +} + +.mantine-datatable { + --mantine-datatable-background-color: var( --mantine-datatable-background-color-light,var(--mantine-color-body) ); +} + +[data-mantine-color-scheme="dark"] .mantine-datatable { + --mantine-datatable-background-color: var( --mantine-datatable-background-color-dark,var(--mantine-color-body) ); +} + +.mantine-datatable { + --mantine-datatable-border-color: var( --mantine-datatable-border-color-light,var(--mantine-color-gray-3) ); +} + +[data-mantine-color-scheme="dark"] .mantine-datatable { + --mantine-datatable-border-color: var( --mantine-datatable-border-color-dark,var(--mantine-color-dark-4) ); +} + +.mantine-datatable { + --mantine-datatable-row-border-color: var( --mantine-datatable-row-border-color-light,var(--mantine-datatable-border-color) ); +} + +[data-mantine-color-scheme="dark"] .mantine-datatable { + --mantine-datatable-row-border-color: var( --mantine-datatable-row-border-color-dark,var(--mantine-datatable-border-color) ); +} + +.mantine-datatable { + --mantine-datatable-striped-color: var( --mantine-datatable-striped-color-light,var(--mantine-color-gray-0) ); +} + +[data-mantine-color-scheme="dark"] .mantine-datatable { + --mantine-datatable-striped-color: var( --mantine-datatable-striped-color-dark,var(--mantine-color-dark-6) ); +} + +.mantine-datatable { + --mantine-datatable-highlight-on-hover-color: var( --mantine-datatable-highlight-on-hover-color-light,var(--mantine-color-gray-1) ); +} + +[data-mantine-color-scheme="dark"] .mantine-datatable { + --mantine-datatable-highlight-on-hover-color: var( --mantine-datatable-highlight-on-hover-color-dark,var(--mantine-color-dark-5) ); +} + +.mantine-datatable { + --mantine-datatable-shadow-background-top: linear-gradient(rgba(0,0,0,.05),transparent),linear-gradient(rgba(0,0,0,.05) 30%,transparent); +} + +[data-mantine-color-scheme="dark"] .mantine-datatable { + --mantine-datatable-shadow-background-top: linear-gradient(rgba(0,0,0,.25),transparent),linear-gradient(rgba(0,0,0,.25) 30%,transparent); +} + +.mantine-datatable { + --mantine-datatable-shadow-background-right: linear-gradient(270deg,rgba(0,0,0,.05),transparent),linear-gradient(270deg,rgba(0,0,0,.05),transparent 30%); +} + +[data-mantine-color-scheme="dark"] .mantine-datatable { + --mantine-datatable-shadow-background-right: linear-gradient(270deg,rgba(0,0,0,.25),transparent),linear-gradient(270deg,rgba(0,0,0,.25),transparent 30%); +} + +.mantine-datatable { + --mantine-datatable-shadow-background-bottom: linear-gradient(transparent,rgba(0,0,0,.05)),linear-gradient(transparent 30%,rgba(0,0,0,.05)); +} + +[data-mantine-color-scheme="dark"] .mantine-datatable { + --mantine-datatable-shadow-background-bottom: linear-gradient(transparent,rgba(0,0,0,.25)),linear-gradient(transparent 30%,rgba(0,0,0,.25)); +} + +.mantine-datatable { + --mantine-datatable-shadow-background-left: linear-gradient(90deg,rgba(0,0,0,.05),transparent),linear-gradient(90deg,rgba(0,0,0,.05),transparent 30%); +} + +[data-mantine-color-scheme="dark"] .mantine-datatable { + --mantine-datatable-shadow-background-left: linear-gradient(90deg,rgba(0,0,0,.25),transparent),linear-gradient(90deg,rgba(0,0,0,.25),transparent 30%); +} + +.mantine-datatable { + background: var(--mantine-datatable-background-color); + color: var(--mantine-datatable-color); + display: flex; + flex-direction: column; + overflow: hidden; + position: relative; +} + +.mantine-datatable-with-border { + border: calc(.0625rem*var(--mantine-scale)) solid var(--mantine-datatable-border-color); +} + +.mantine-datatable-table { + background: var(--mantine-datatable-background-color); + border-collapse: separate; + border-spacing: 0px; + color: inherit; +} + +.mantine-datatable-table td, .mantine-datatable-table th { + border-color: var(--mantine-datatable-row-border-color); +} + +.mantine-datatable-table tbody, .mantine-datatable-table td, .mantine-datatable-table tfoot, .mantine-datatable-table tfoot tr, .mantine-datatable-table th, .mantine-datatable-table thead, .mantine-datatable-table thead tr { + background: inherit; +} + +.mantine-datatable-table[data-striped] tbody tr:nth-of-type(2n+1) { + background: var(--mantine-datatable-striped-color); +} + +.mantine-datatable-table[data-highlight-on-hover] tbody tr:hover { + background: var(--mantine-datatable-highlight-on-hover-color); +} + +.mantine-datatable-table tbody tr:last-of-type { + border-bottom: 0px; +} + +.mantine-datatable-vertical-align-top td { + vertical-align: top; +} + +.mantine-datatable-vertical-align-bottom td { + vertical-align: bottom; +} + +.mantine-datatable-last-row-border-bottom-visible tr:last-of-type:not(.mantine-datatable-empty-row) td { + border-bottom: calc(.0625rem*var(--mantine-scale)) solid var(--mantine-datatable-row-border-color); +} + +.mantine-datatable-pin-last-column td:not(.mantine-datatable-row-expansion-cell):last-of-type, .mantine-datatable-pin-last-column th:last-of-type { + position: sticky; + right: calc(-.025rem*var(--mantine-scale)); + z-index: 1; +} + +.mantine-datatable-pin-last-column td:not(.mantine-datatable-row-expansion-cell):last-of-type::after, .mantine-datatable-pin-last-column th:last-of-type::after { + background: var(--mantine-datatable-shadow-background-right); + border-right: 1px solid var(--mantine-datatable-row-border-color); + bottom: 0px; + content: ""; + left: calc(var(--mantine-spacing-xs)*-1); + opacity: 0; + pointer-events: none; + position: absolute; + top: 0px; + transition: opacity 0.2s; + width: var(--mantine-spacing-xs); +} + +.mantine-datatable-pin-last-column th:last-of-type::after, .mantine-datatable-pin-last-column tr[data-with-row-border]:not(:last-of-type) td:not(.mantine-datatable-row-expansion-cell):last-of-type::after { + bottom: calc(-.0625rem*var(--mantine-scale)); + top: calc(-.0625rem*var(--mantine-scale)); +} + +.mantine-datatable-pin-last-column tfoot th:last-of-type::after { + top: calc(-.0625rem*var(--mantine-scale)); +} + +.mantine-datatable-pin-last-column tr[data-selected] td:not(.mantine-datatable-row-expansion-cell):last-of-type { + background: inherit; +} + +.mantine-datatable-pin-last-column tr[data-selected] td:not(.mantine-datatable-row-expansion-cell):last-of-type::before { + background: var(--mantine-primary-color-light); + inset: 0px; + content: ""; + position: absolute; +} + +.mantine-datatable-pin-last-column-scrolled td:not(.mantine-datatable-row-expansion-cell):last-of-type::after, .mantine-datatable-pin-last-column-scrolled th:last-of-type::after { + opacity: 1; +} + +.mantine-datatable-pin-first-column.mantine-datatable-selection-column-visible td:not(.mantine-datatable-row-expansion-cell):nth-of-type(2), .mantine-datatable-pin-first-column.mantine-datatable-selection-column-visible th.mantine-datatable-column-group-header-cell:nth-of-type(2), .mantine-datatable-pin-first-column.mantine-datatable-selection-column-visible th:first-of-type, .mantine-datatable-pin-first-column:not(.mantine-datatable-selection-column-visible) td:not(.mantine-datatable-row-expansion-cell):first-of-type, .mantine-datatable-pin-first-column:not(.mantine-datatable-selection-column-visible) th:first-of-type { + left: var(--mantine-datatable-selection-column-width); + position: sticky; + z-index: 1; +} + +.mantine-datatable-pin-first-column.mantine-datatable-selection-column-visible td:not(.mantine-datatable-row-expansion-cell):nth-of-type(2)::after, .mantine-datatable-pin-first-column.mantine-datatable-selection-column-visible th.mantine-datatable-column-group-header-cell:nth-of-type(2)::after, .mantine-datatable-pin-first-column.mantine-datatable-selection-column-visible th:first-of-type::after, .mantine-datatable-pin-first-column:not(.mantine-datatable-selection-column-visible) td:not(.mantine-datatable-row-expansion-cell):first-of-type::after, .mantine-datatable-pin-first-column:not(.mantine-datatable-selection-column-visible) th:first-of-type::after { + background: var(--mantine-datatable-shadow-background-left); + border-left: 1px solid var(--mantine-datatable-row-border-color); + bottom: 0px; + content: ""; + opacity: 0; + pointer-events: none; + position: absolute; + right: calc(var(--mantine-spacing-xs)*-1); + top: 0px; + transition: opacity 0.2s; + width: var(--mantine-spacing-xs); +} + +.mantine-datatable-pin-first-column.mantine-datatable-selection-column-visible th.mantine-datatable-header-selector-cell { + left: 0px; +} + +.mantine-datatable-pin-first-column.mantine-datatable-selection-column-visible th.mantine-datatable-column-group-header-cell:nth-of-type(2)::after, .mantine-datatable-pin-first-column.mantine-datatable-selection-column-visible tr[data-with-row-border]:not(:last-of-type) td:not(.mantine-datatable-row-expansion-cell):nth-of-type(2)::after, .mantine-datatable-pin-first-column:not(.mantine-datatable-selection-column-visible) th:first-of-type::after, .mantine-datatable-pin-first-column:not(.mantine-datatable-selection-column-visible) tr[data-with-row-border]:not(:last-of-type) td:not(.mantine-datatable-row-expansion-cell):first-of-type::after { + bottom: calc(-.0625rem*var(--mantine-scale)); + top: calc(-.0625rem*var(--mantine-scale)); +} + +.mantine-datatable-pin-first-column.mantine-datatable-selection-column-visible tfoot th:nth-of-type(2)::after, .mantine-datatable-pin-first-column:not(.mantine-datatable-selection-column-visible) tfoot th:first-of-type::after { + top: calc(-.0625rem*var(--mantine-scale)); +} + +.mantine-datatable-pin-first-column.mantine-datatable-selection-column-visible tr[data-selected] td:not(.mantine-datatable-row-expansion-cell):nth-of-type(2), .mantine-datatable-pin-first-column:not(.mantine-datatable-selection-column-visible) tr[data-selected] td:not(.mantine-datatable-row-expansion-cell):first-of-type { + background: inherit; +} + +.mantine-datatable-pin-first-column.mantine-datatable-selection-column-visible tr[data-selected] td:not(.mantine-datatable-row-expansion-cell):nth-of-type(2)::before, .mantine-datatable-pin-first-column:not(.mantine-datatable-selection-column-visible) tr[data-selected] td:not(.mantine-datatable-row-expansion-cell):first-of-type::before { + background: var(--mantine-primary-color-light); + inset: 0px; + content: ""; + position: absolute; +} + +.mantine-datatable-pin-first-column-scrolled.mantine-datatable-selection-column-visible td:not(.mantine-datatable-row-expansion-cell):nth-of-type(2)::after, .mantine-datatable-pin-first-column-scrolled.mantine-datatable-selection-column-visible th.mantine-datatable-column-group-header-cell:nth-of-type(2)::after, .mantine-datatable-pin-first-column-scrolled.mantine-datatable-selection-column-visible th:first-of-type::after, .mantine-datatable-pin-first-column-scrolled:not(.mantine-datatable-selection-column-visible) td:not(.mantine-datatable-row-expansion-cell):first-of-type::after, .mantine-datatable-pin-first-column-scrolled:not(.mantine-datatable-selection-column-visible) th:first-of-type::after { + opacity: 1; +} + +.mantine-datatable-empty-row, .mantine-datatable-table[data-highlight-on-hover] tbody .mantine-datatable-empty-row:hover { + background: transparent; +} + +.mantine-datatable-empty-state { + inset: 0px; + color: var(--mantine-color-gray-6); + flex-direction: column; + pointer-events: none; + position: absolute; +} + +[data-mantine-color-scheme="dark"] .mantine-datatable-empty-state { + color: var(--mantine-color-dark-3); +} + +.mantine-datatable-empty-state { + opacity: 0; + transition: opacity 0.2s; +} + +.mantine-datatable-empty-state[data-active] { + opacity: 1; +} + +.mantine-datatable-empty-state-icon { + background: var(--mantine-color-gray-2); + border-radius: 50%; + font-size: 0px; + padding: var(--mantine-spacing-xs); +} + +[data-mantine-color-scheme="dark"] .mantine-datatable-empty-state-icon { + background: var(--mantine-color-dark-5); +} + +.mantine-datatable-empty-state-icon { + margin-bottom: calc(var(--mantine-spacing-xs)/2); +} + +.mantine-datatable-footer { + z-index: 2; +} + +.mantine-datatable-footer th { + border-top: calc(.0625rem*var(--mantine-scale)) solid var(--mantine-datatable-border-color); +} + +.mantine-datatable-footer-selector-placeholder-cell { + left: 0px; + position: sticky; + width: 0px; +} + +.mantine-datatable-footer-selector-placeholder-cell::after { + background: var(--mantine-datatable-shadow-background-left); + border-left: 1px solid var(--mantine-datatable-row-border-color); + bottom: calc(-.0625rem*var(--mantine-scale)); + content: ""; + opacity: 0; + pointer-events: none; + position: absolute; + right: calc(var(--mantine-spacing-xs)*-1); + top: 0px; + transition: opacity 0.2s; + width: var(--mantine-spacing-xs); +} + +.mantine-datatable-footer-selector-placeholder-cell[data-shadow-visible]::after { + opacity: 1; +} + +.mantine-datatable-header { + position: sticky; + top: 0px; + z-index: 2; +} + +.mantine-datatable-header th { + border-bottom: calc(.0625rem*var(--mantine-scale)) solid var(--mantine-datatable-border-color); +} + +.mantine-datatable-header-column-toggle-checkbox-label { + user-select: none; +} + +.mantine-datatable-header-cell-sortable { + cursor: pointer; + transition: background 0.2s; +} + +.mantine-datatable-header-cell-sortable:hover:not(:has(button:hover)) { + background: var(--mantine-color-gray-0); +} + +[data-mantine-color-scheme="dark"] .mantine-datatable-header-cell-sortable:hover:not(:has(button:hover)) { + background: var(--mantine-color-dark-6); +} + +.mantine-datatable-header-cell-draggable { + border-radius: calc(.375rem*var(--mantine-scale)); + cursor: grab; + transition: 0.2s; +} + +.mantine-datatable-header-cell-draggable:active { + cursor: grabbing; +} + +.mantine-datatable-header-cell-draggable:hover:not(:has(button:hover)) { + background: var(--mantine-color-gray-2); +} + +[data-mantine-color-scheme="dark"] .mantine-datatable-header-cell-draggable:hover:not(:has(button:hover)) { + background: var(--mantine-color-dark-6); +} + +.mantine-datatable-header-cell-draggable-action-icon { + cursor: inherit; + margin: calc(-.125rem*var(--mantine-scale)) calc(.125rem*var(--mantine-scale)) 0; +} + +.mantine-datatable-header-cell-drag-over { + background: var(--mantine-color-gray-3); +} + +[data-mantine-color-scheme="dark"] .mantine-datatable-header-cell-drag-over { + background: var(--mantine-color-dark-6); +} + +.mantine-datatable-header-cell-toggleable-icon { + opacity: 0.1; + transition: opacity 0.2s; +} + +.mantine-datatable-header-cell-toggleable:hover .mantine-datatable-header-cell-toggleable-icon { + opacity: 1; +} + +.mantine-datatable-header-cell-resizable { + position: relative; +} + +.mantine-datatable-header-resizable-handle { + background: inherit; + bottom: 0px; + cursor: col-resize; + opacity: 0; + position: absolute; + top: 0px; + transform: translate(50%); + transition: opacity 0.2s; + width: calc(.5rem*var(--mantine-scale)); + z-index: 1; +} + +.mantine-datatable-header-resizable-handle::after { + border-right: calc(.25rem*var(--mantine-scale)) dotted var(--mantine-color-gray-3); + bottom: calc(.0625rem*var(--mantine-scale)); + content: ""; + left: calc(.125rem*var(--mantine-scale)); + position: absolute; + top: calc(.0625rem*var(--mantine-scale)); +} + +[data-mantine-color-scheme="dark"] .mantine-datatable-header-resizable-handle::after { + border-right: calc(.25rem*var(--mantine-scale)) dotted var(--mantine-color-dark-4); +} + +.mantine-datatable-header-resizable-handle:hover::after { + border-color: var(--mantine-primary-color-6); +} + +tr:hover .mantine-datatable-header-resizable-handle { + opacity: 1; +} + +.mantine-datatable-header-cell-sortable-group { + gap: 0.25em; +} + +.mantine-datatable-header-cell-sortable-text { + flex-grow: 1; + min-width: 0px; +} + +.mantine-datatable-header-cell-sortable-icon { + transition: transform 0.2s; +} + +.mantine-datatable-header-cell-sortable-icon-reversed { + transform: scaleY(-1); +} + +.mantine-datatable-header-cell-sortable-unsorted-icon { + color: var(--mantine-color-gray-5); +} + +[data-mantine-color-scheme="dark"] .mantine-datatable-header-cell-sortable-unsorted-icon { + color: var(--mantine-color-dark-3); +} + +.mantine-datatable-header-cell-sortable-unsorted-icon { + transition: color 0.2s; +} + +th:hover .mantine-datatable-header-cell-sortable-unsorted-icon { + color: var(--mantine-color-gray-6); +} + +[data-mantine-color-scheme="dark"] th:hover .mantine-datatable-header-cell-sortable-unsorted-icon { + color: var(--mantine-color-dark-2); +} + +.mantine-datatable-header-cell-filter-action-icon { + border: 0px; + color: var(--mantine-color-gray-5); +} + +[data-mantine-color-scheme="dark"] .mantine-datatable-header-cell-filter-action-icon { + color: var(--mantine-color-dark-3); +} + +.mantine-datatable-header-cell-filter-action-icon[data-active] { + color: var(--mantine-color-text); +} + +.mantine-datatable-header-selector-cell { + left: 0px; + position: sticky; + width: 0px; +} + +.mantine-datatable-header-selector-cell::after { + background: var(--mantine-datatable-shadow-background-left); + border-left: 1px solid var(--mantine-datatable-row-border-color); + bottom: calc(-.0625rem*var(--mantine-scale)); + content: ""; + opacity: 0; + pointer-events: none; + position: absolute; + right: calc(var(--mantine-spacing-xs)*-1); + top: 0px; + transition: opacity 0.2s; + width: var(--mantine-spacing-xs); +} + +.mantine-datatable-header-selector-cell[data-shadow-visible]::after { + opacity: 1; +} + +.mantine-datatable-loader { + background: color-mix(in srgb,var(--mantine-datatable-background-color),transparent 25%); + inset: 0px; + opacity: 0; + pointer-events: none; + position: absolute; + transition: opacity 0.2s; + z-index: 3; +} + +.mantine-datatable-loader-fetching { + opacity: 1; + pointer-events: all; +} + +.mantine-datatable-page-size-selector-button-icon { + margin: 0 calc(-.25rem*var(--mantine-scale)) 0 calc(.125rem*var(--mantine-scale)); +} + +.mantine-datatable-page-size-selector-menu-arrow { + z-index: -1; +} + +.mantine-datatable-page-size-selector-active { + --mantine-datatable-pagination-active-text-color: var( --mantine-datatable-pagination-active-text-color-light,var(--mantine-color-white) ); +} + +[data-mantine-color-scheme="dark"] .mantine-datatable-page-size-selector-active { + --mantine-datatable-pagination-active-text-color: var( --mantine-datatable-pagination-active-text-color-dark,var(--mantine-color-white) ); +} + +.mantine-datatable-page-size-selector-active { + --mantine-datatable-pagination-active-background-color: var( --mantine-datatable-pagination-active-background-color-light,var(--mantine-primary-color-filled) ); +} + +[data-mantine-color-scheme="dark"] .mantine-datatable-page-size-selector-active { + --mantine-datatable-pagination-active-background-color: var( --mantine-datatable-pagination-active-background-color-dark,var(--mantine-primary-color-filled) ); +} + +.mantine-datatable-page-size-selector-active { + background: var(--mantine-datatable-pagination-active-background-color); + color: var(--mantine-datatable-pagination-active-text-color); + opacity: 1; +} + +.mantine-datatable-pagination { + align-items: center; + background: inherit; + border-top: calc(.0625rem*var(--mantine-scale)) solid var(--mantine-datatable-border-color); + display: flex; + gap: var(--mantine-spacing-xs); + justify-content: space-between; +} + +.mantine-datatable-pagination-text { + flex: 1 1 auto; +} + +.mantine-datatable-pagination-pages { + --mantine-datatable-pagination-active-text-color: var( --mantine-datatable-pagination-active-text-color-light,var(--mantine-color-white) ); +} + +[data-mantine-color-scheme="dark"] .mantine-datatable-pagination-pages { + --mantine-datatable-pagination-active-text-color: var( --mantine-datatable-pagination-active-text-color-dark,var(--mantine-color-white) ); +} + +.mantine-datatable-pagination-pages { + --mantine-datatable-pagination-active-background-color: var( --mantine-datatable-pagination-active-background-color-light,var(--mantine-primary-color-filled) ); +} + +[data-mantine-color-scheme="dark"] .mantine-datatable-pagination-pages { + --mantine-datatable-pagination-active-background-color: var( --mantine-datatable-pagination-active-background-color-dark,var(--mantine-primary-color-filled) ); +} + +.mantine-datatable-pagination-pages { + opacity: 1; + transition: opacity 0.2s; +} + +.mantine-datatable-pagination-pages-fetching { + opacity: 0; +} + +.mantine-datatable-pagination-pages-control { + border-color: var(--mantine-datatable-border-color); + color: var(--mantine-datatable-color); +} + +.mantine-datatable-pagination-pages-control[data-active] { + background: var(--mantine-datatable-pagination-active-background-color); + border-color: transparent; + color: var(--mantine-datatable-pagination-active-text-color); +} + +.mantine-datatable-row { + --mantine-datatable-row-color: var( --mantine-datatable-row-color-light ); +} + +[data-mantine-color-scheme="dark"] .mantine-datatable-row { + --mantine-datatable-row-color: var( --mantine-datatable-row-color-dark ); +} + +.mantine-datatable-row { + --mantine-datatable-row-background-color: var( --mantine-datatable-row-background-color-light ); +} + +[data-mantine-color-scheme="dark"] .mantine-datatable-row { + --mantine-datatable-row-background-color: var( --mantine-datatable-row-background-color-dark ); +} + +.mantine-datatable-row { + background: var(--mantine-datatable-row-background-color,inherit); + color: var(--mantine-datatable-row-color,inherit); +} + +.mantine-datatable-row[data-with-row-border]:not(:last-of-type) td { + border-bottom: calc(.0625rem*var(--mantine-scale)) solid var(--mantine-datatable-row-border-color); +} + +.mantine-datatable-row[data-selected] td { + background: var(--mantine-primary-color-light); +} + +.mantine-datatable-row-expansion-cell { + padding: 0px; +} + +tr:not(:last-of-type) .mantine-datatable-row-expansion-cell-content { + border-bottom: calc(.0625rem*var(--mantine-scale)) solid var(--mantine-datatable-row-border-color); +} + +.mantine-datatable-row-expansion-cell-content { + border-top: calc(.0625rem*var(--mantine-scale)) solid var(--mantine-datatable-row-border-color); +} + +[data-with-row-border] .mantine-datatable-row-expansion-cell-content { + border-top: 0px; +} + +.mantine-datatable-row-selector-cell { + left: 0px; + position: sticky; + width: 0px; + z-index: 1; +} + +tr[data-selected] .mantine-datatable-row-selector-cell { + background: inherit; +} + +tr[data-selected] .mantine-datatable-row-selector-cell::before { + background: var(--mantine-primary-color-light); + inset: 0px; + content: ""; + position: absolute; +} + +.mantine-datatable-row-selector-cell::after { + background: var(--mantine-datatable-shadow-background-left); + border-left: 1px solid var(--mantine-datatable-row-border-color); + bottom: 0px; + content: ""; + opacity: 0; + pointer-events: none; + position: absolute; + right: calc(var(--mantine-spacing-xs)*-1); + top: 0px; + transition: opacity 0.2s; + width: var(--mantine-spacing-xs); +} + +tr[data-with-row-border] .mantine-datatable-row-selector-cell::after { + bottom: calc(-.0625rem*var(--mantine-scale)); + top: calc(-.0625rem*var(--mantine-scale)); +} + +tr:last-of-type .mantine-datatable-row-selector-cell::after { + bottom: 0px; +} + +.mantine-datatable-row-selector-cell[data-shadow-visible]::after { + opacity: 1; +} + +.mantine-datatable-row-selector-cell-checkbox { + cursor: pointer; +} + +.mantine-datatable-scroll-area { + flex: 1 1 100%; +} + +.mantine-datatable-scroll-area-corner { + background: transparent; +} + +.mantine-datatable-scroll-area-thumb { + z-index: 3; +} + +.mantine-datatable-scroll-area-scrollbar[data-state="visible"] { + background: transparent; +} + +.mantine-datatable-scroll-area-scrollbar div::before { + pointer-events: none; +} + +.mantine-datatable-scroll-area-shadow { + opacity: 0; + pointer-events: none; + position: absolute; + transition: opacity 0.2s; +} + +.mantine-datatable-scroll-area-top-shadow { + background: var(--mantine-datatable-shadow-background-top); + height: calc(var(--mantine-spacing-xs)/2); + left: 0px; + right: 0px; + z-index: 2; +} + +.mantine-datatable-scroll-area-left-shadow { + background: var(--mantine-datatable-shadow-background-left); + bottom: 0px; + left: 0px; + top: 0px; + width: var(--mantine-spacing-xs); + z-index: 3; +} + +.mantine-datatable-scroll-area-right-shadow { + background: var(--mantine-datatable-shadow-background-right); + bottom: 0px; + right: 0px; + top: 0px; + width: calc(var(--mantine-spacing-xs)/2); + z-index: 3; +} + +.mantine-datatable-scroll-area-shadow-behind { + z-index: 0; +} + +.mantine-datatable-scroll-area-bottom-shadow { + background: var(--mantine-datatable-shadow-background-bottom); + height: calc(var(--mantine-spacing-xs)/2); + left: 0px; + right: 0px; + z-index: 2; +} + +.mantine-datatable-scroll-area-shadow-visible { + opacity: 1; +} diff --git a/assets/admin.lazy-CNFu-WM3.js b/assets/admin.lazy-CNFu-WM3.js new file mode 100644 index 0000000..9c8e53b --- /dev/null +++ b/assets/admin.lazy-CNFu-WM3.js @@ -0,0 +1,4577 @@ +import {r as f, u as Gt, ad as X, f as K, O as _, j as e, aD as lt, aF as Mt, b3 as Et, b4 as Zt, ac as D, a1 as he, a2 as E, e as N, X as Z, a3 as q, a4 as $, a5 as ut, a6 as ge, as as cn, a7 as U, t as Q, b5 as dn, b6 as Ee, b7 as rt, b8 as un, ai as ue, x as ye, b9 as st, aM as ht, ba as W, bb as _e, bc as za, bd as Re, be as hn, B as Y, bf as gn, bg as La, bh as Ua, bi as Dt, I as mn, bj as Oa, bk as pn, bl as It, bm as $a, S as fn, G as De, z as qe, D as Va, y as Ha, F as Rt, w as ke, bn as Fa, bo as en, aa as xn, bp as de, aO as Ka, bq as _a, n as A, br as we, bs as Qe, V as At, bt as qa, aj as bn, bu as Cn, bv as vn, bw as Nt, i as jn, bx as Qa, C as Ne, by as Xa, bz as Ja, bA as Ya, bB as Ga, W as Za, bC as eo, bD as to, bE as no, bF as ao, bG as oo, bH as so, av as ro, bI as Bt, bJ as io, bK as tn, bL as Wt, ay as lo, $ as co, s as uo, bM as ho, bN as go, c as mo} from "./index-CdMy-Rhi.js"; +import {u as it, I as po} from "./IconPlayerPause-CiILB2ws.js"; +function fo(t, n="use-local-storage") { + try { + return JSON.stringify(t) + } catch { + throw new Error(`@mantine/hooks ${n}: Failed to serialize the value`) + } +} +function xo(t) { + try { + return t && JSON.parse(t) + } catch { + return t + } +} +function bo(t) { + return { + getItem: r => { + try { + return window[t].getItem(r) + } catch { + return console.warn("use-local-storage: Failed to get value from storage, localStorage is blocked"), + null + } + } + , + setItem: (r, l) => { + try { + window[t].setItem(r, l) + } catch { + console.warn("use-local-storage: Failed to set value to storage, localStorage is blocked") + } + } + , + removeItem: r => { + try { + window[t].removeItem(r) + } catch { + console.warn("use-local-storage: Failed to remove value from storage, localStorage is blocked") + } + } + } +} +function Co(t, n) { + const a = "mantine-local-storage" + , {getItem: o, setItem: r, removeItem: l} = bo(t); + return function({key: s, defaultValue: d, getInitialValueInEffect: g=!0, deserialize: c=xo, serialize: u=h => fo(h, n)}) { + const h = f.useCallback(p => { + let v; + try { + v = typeof window > "u" || !(t in window) || window[t] === null || !!p + } catch { + v = !0 + } + if (v) + return d; + const k = o(s); + return k !== null ? c(k) : d + } + , [s, d]) + , [m,b] = f.useState(h(g)) + , P = f.useCallback(p => { + p instanceof Function ? b(v => { + const k = p(v); + return r(s, u(k)), + window.dispatchEvent(new CustomEvent(a,{ + detail: { + key: s, + value: p(v) + } + })), + k + } + ) : (r(s, u(p)), + window.dispatchEvent(new CustomEvent(a,{ + detail: { + key: s, + value: p + } + })), + b(p)) + } + , [s]) + , T = f.useCallback( () => { + l(s), + window.dispatchEvent(new CustomEvent(a,{ + detail: { + key: s, + value: d + } + })) + } + , []); + return Gt("storage", p => { + p.storageArea === window[t] && p.key === s && b(c(p.newValue ?? void 0)) + } + ), + Gt(a, p => { + p.detail.key === s && b(p.detail.value) + } + ), + f.useEffect( () => { + d !== void 0 && m === void 0 && P(d) + } + , [d, m, P]), + f.useEffect( () => { + const p = h(); + p !== void 0 && P(p) + } + , []), + [m === void 0 ? d : m, P, T] + } +} +function Pt(t) { + return Co("localStorage", "use-local-storage")(t) +} +/** + * @license @tabler/icons-react v3.21.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */ +var vo = X("outline", "briefcase", "IconBriefcase", [["path", { + d: "M3 7m0 2a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v9a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2z", + key: "svg-0" +}], ["path", { + d: "M8 7v-2a2 2 0 0 1 2 -2h4a2 2 0 0 1 2 2v2", + key: "svg-1" +}], ["path", { + d: "M12 12l0 .01", + key: "svg-2" +}], ["path", { + d: "M3 13a20 20 0 0 0 18 0", + key: "svg-3" +}]]); +/** + * @license @tabler/icons-react v3.21.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */ +var jo = X("outline", "building", "IconBuilding", [["path", { + d: "M3 21l18 0", + key: "svg-0" +}], ["path", { + d: "M9 8l1 0", + key: "svg-1" +}], ["path", { + d: "M9 12l1 0", + key: "svg-2" +}], ["path", { + d: "M9 16l1 0", + key: "svg-3" +}], ["path", { + d: "M14 8l1 0", + key: "svg-4" +}], ["path", { + d: "M14 12l1 0", + key: "svg-5" +}], ["path", { + d: "M14 16l1 0", + key: "svg-6" +}], ["path", { + d: "M5 21v-16a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v16", + key: "svg-7" +}]]); +/** + * @license @tabler/icons-react v3.21.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */ +var ko = X("outline", "buildings", "IconBuildings", [["path", { + d: "M4 21v-15c0 -1 1 -2 2 -2h5c1 0 2 1 2 2v15", + key: "svg-0" +}], ["path", { + d: "M16 8h2c1 0 2 1 2 2v11", + key: "svg-1" +}], ["path", { + d: "M3 21h18", + key: "svg-2" +}], ["path", { + d: "M10 12v0", + key: "svg-3" +}], ["path", { + d: "M10 16v0", + key: "svg-4" +}], ["path", { + d: "M10 8v0", + key: "svg-5" +}], ["path", { + d: "M7 12v0", + key: "svg-6" +}], ["path", { + d: "M7 16v0", + key: "svg-7" +}], ["path", { + d: "M7 8v0", + key: "svg-8" +}], ["path", { + d: "M17 12v0", + key: "svg-9" +}], ["path", { + d: "M17 16v0", + key: "svg-10" +}]]); +/** + * @license @tabler/icons-react v3.21.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */ +var yo = X("outline", "businessplan", "IconBusinessplan", [["path", { + d: "M16 6m-5 0a5 3 0 1 0 10 0a5 3 0 1 0 -10 0", + key: "svg-0" +}], ["path", { + d: "M11 6v4c0 1.657 2.239 3 5 3s5 -1.343 5 -3v-4", + key: "svg-1" +}], ["path", { + d: "M11 10v4c0 1.657 2.239 3 5 3s5 -1.343 5 -3v-4", + key: "svg-2" +}], ["path", { + d: "M11 14v4c0 1.657 2.239 3 5 3s5 -1.343 5 -3v-4", + key: "svg-3" +}], ["path", { + d: "M7 9h-2.5a1.5 1.5 0 0 0 0 3h1a1.5 1.5 0 0 1 0 3h-2.5", + key: "svg-4" +}], ["path", { + d: "M5 15v1m0 -8v1", + key: "svg-5" +}]]); +/** + * @license @tabler/icons-react v3.21.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */ +var wo = X("outline", "calendar-event", "IconCalendarEvent", [["path", { + d: "M4 5m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z", + key: "svg-0" +}], ["path", { + d: "M16 3l0 4", + key: "svg-1" +}], ["path", { + d: "M8 3l0 4", + key: "svg-2" +}], ["path", { + d: "M4 11l16 0", + key: "svg-3" +}], ["path", { + d: "M8 15h2v2h-2z", + key: "svg-4" +}]]); +/** + * @license @tabler/icons-react v3.21.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */ +var So = X("outline", "coins", "IconCoins", [["path", { + d: "M9 14c0 1.657 2.686 3 6 3s6 -1.343 6 -3s-2.686 -3 -6 -3s-6 1.343 -6 3z", + key: "svg-0" +}], ["path", { + d: "M9 14v4c0 1.656 2.686 3 6 3s6 -1.344 6 -3v-4", + key: "svg-1" +}], ["path", { + d: "M3 6c0 1.072 1.144 2.062 3 2.598s4.144 .536 6 0c1.856 -.536 3 -1.526 3 -2.598c0 -1.072 -1.144 -2.062 -3 -2.598s-4.144 -.536 -6 0c-1.856 .536 -3 1.526 -3 2.598z", + key: "svg-2" +}], ["path", { + d: "M3 6v10c0 .888 .772 1.45 2 2", + key: "svg-3" +}], ["path", { + d: "M3 11c0 .888 .772 1.45 2 2", + key: "svg-4" +}]]); +/** + * @license @tabler/icons-react v3.21.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */ +var Po = X("outline", "currency-dollar", "IconCurrencyDollar", [["path", { + d: "M16.7 8a3 3 0 0 0 -2.7 -2h-4a3 3 0 0 0 0 6h4a3 3 0 0 1 0 6h-4a3 3 0 0 1 -2.7 -2", + key: "svg-0" +}], ["path", { + d: "M12 3v3m0 12v3", + key: "svg-1" +}]]); +/** + * @license @tabler/icons-react v3.21.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */ +var To = X("outline", "history", "IconHistory", [["path", { + d: "M12 8l0 4l2 2", + key: "svg-0" +}], ["path", { + d: "M3.05 11a9 9 0 1 1 .5 4m-.5 5v-5h5", + key: "svg-1" +}]]); +/** + * @license @tabler/icons-react v3.21.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */ +var Mo = X("outline", "player-play", "IconPlayerPlay", [["path", { + d: "M7 4v16l13 -8z", + key: "svg-0" +}]]); +/** + * @license @tabler/icons-react v3.21.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */ +var Io = X("outline", "playlist-add", "IconPlaylistAdd", [["path", { + d: "M19 8h-14", + key: "svg-0" +}], ["path", { + d: "M5 12h9", + key: "svg-1" +}], ["path", { + d: "M11 16h-6", + key: "svg-2" +}], ["path", { + d: "M15 16h6", + key: "svg-3" +}], ["path", { + d: "M18 13v6", + key: "svg-4" +}]]); +/** + * @license @tabler/icons-react v3.21.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */ +var Ro = X("outline", "sitemap", "IconSitemap", [["path", { + d: "M3 15m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v2a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z", + key: "svg-0" +}], ["path", { + d: "M15 15m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v2a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z", + key: "svg-1" +}], ["path", { + d: "M9 3m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v2a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z", + key: "svg-2" +}], ["path", { + d: "M6 15v-1a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v1", + key: "svg-3" +}], ["path", { + d: "M12 9l0 3", + key: "svg-4" +}]]); +/** + * @license @tabler/icons-react v3.21.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */ +var No = X("outline", "topology-star-3", "IconTopologyStar3", [["path", { + d: "M10 19a2 2 0 1 0 -4 0a2 2 0 0 0 4 0z", + key: "svg-0" +}], ["path", { + d: "M18 5a2 2 0 1 0 -4 0a2 2 0 0 0 4 0z", + key: "svg-1" +}], ["path", { + d: "M10 5a2 2 0 1 0 -4 0a2 2 0 0 0 4 0z", + key: "svg-2" +}], ["path", { + d: "M6 12a2 2 0 1 0 -4 0a2 2 0 0 0 4 0z", + key: "svg-3" +}], ["path", { + d: "M18 19a2 2 0 1 0 -4 0a2 2 0 0 0 4 0z", + key: "svg-4" +}], ["path", { + d: "M14 12a2 2 0 1 0 -4 0a2 2 0 0 0 4 0z", + key: "svg-5" +}], ["path", { + d: "M22 12a2 2 0 1 0 -4 0a2 2 0 0 0 4 0z", + key: "svg-6" +}], ["path", { + d: "M6 12h4", + key: "svg-7" +}], ["path", { + d: "M14 12h4", + key: "svg-8" +}], ["path", { + d: "M15 7l-2 3", + key: "svg-9" +}], ["path", { + d: "M9 7l2 3", + key: "svg-10" +}], ["path", { + d: "M11 14l-2 3", + key: "svg-11" +}], ["path", { + d: "M13 14l2 3", + key: "svg-12" +}]]); +/** + * @license @tabler/icons-react v3.21.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */ +var Eo = X("outline", "user-plus", "IconUserPlus", [["path", { + d: "M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0", + key: "svg-0" +}], ["path", { + d: "M16 19h6", + key: "svg-1" +}], ["path", { + d: "M19 16v6", + key: "svg-2" +}], ["path", { + d: "M6 21v-2a4 4 0 0 1 4 -4h4", + key: "svg-3" +}]]); +/** + * @license @tabler/icons-react v3.21.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */ +var Do = X("outline", "users", "IconUsers", [["path", { + d: "M9 7m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0", + key: "svg-0" +}], ["path", { + d: "M3 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2", + key: "svg-1" +}], ["path", { + d: "M16 3.13a4 4 0 0 1 0 7.75", + key: "svg-2" +}], ["path", { + d: "M21 21v-2a4 4 0 0 0 -3 -3.85", + key: "svg-3" +}]]); +class kn { + static getTimeTrackingRecords({requestBody: n}) { + return K(_, { + method: "POST", + url: "/time-tracking/get-records", + body: n, + mediaType: "application/json", + errors: { + 422: "Validation Error" + } + }) + } + static updateTimeTrackingRecord({requestBody: n}) { + return K(_, { + method: "POST", + url: "/time-tracking/update-record", + body: n, + mediaType: "application/json", + errors: { + 422: "Validation Error" + } + }) + } +} +class ie { + static generateQrCode({userId: n}) { + return K(_, { + method: "GET", + url: "/work-shifts/generate-qr-code/{user_id}", + path: { + user_id: n + }, + errors: { + 422: "Validation Error" + } + }) + } + static startShift({userId: n}) { + return K(_, { + method: "POST", + url: "/work-shifts/start-shift/{user_id}", + path: { + user_id: n + }, + errors: { + 422: "Validation Error" + } + }) + } + static finishShift({userId: n}) { + return K(_, { + method: "POST", + url: "/work-shifts/finish-shift/{user_id}", + path: { + user_id: n + }, + errors: { + 422: "Validation Error" + } + }) + } + static finishWorkShiftById({shiftId: n}) { + return K(_, { + method: "POST", + url: "/work-shifts/finish-shift-by-id/{shift_id}", + path: { + shift_id: n + }, + errors: { + 422: "Validation Error" + } + }) + } + static getShifts({isActive: n, page: a, itemsPerPage: o}) { + return K(_, { + method: "GET", + url: "/work-shifts/get-shifts/{is_active}", + path: { + is_active: n + }, + query: { + page: a, + items_per_page: o + }, + errors: { + 422: "Validation Error" + } + }) + } + static deleteWorkShift({shiftId: n}) { + return K(_, { + method: "DELETE", + url: "/work-shifts/delete-shift/{shift_id}", + path: { + shift_id: n + }, + errors: { + 422: "Validation Error" + } + }) + } + static startPauseByShiftId({shiftId: n}) { + return K(_, { + method: "POST", + url: "/work-shifts/pause/start/{shift_id}", + path: { + shift_id: n + }, + errors: { + 422: "Validation Error" + } + }) + } + static startPauseByUserId({userId: n}) { + return K(_, { + method: "POST", + url: "/work-shifts/pause/start/for-user/{user_id}", + path: { + user_id: n + }, + errors: { + 422: "Validation Error" + } + }) + } + static finishPauseByShiftId({shiftId: n}) { + return K(_, { + method: "POST", + url: "/work-shifts/pause/finish/{shift_id}", + path: { + shift_id: n + }, + errors: { + 422: "Validation Error" + } + }) + } + static finishPauseByUserId({userId: n}) { + return K(_, { + method: "POST", + url: "/work-shifts/pause/finish/for-user/{shift_id}", + query: { + user_id: n + }, + errors: { + 422: "Validation Error" + } + }) + } +} +class nn { + static getWorkShifts({requestBody: n}) { + return K(_, { + method: "POST", + url: "/work-shifts-planning/", + body: n, + mediaType: "application/json", + errors: { + 422: "Validation Error" + } + }) + } + static updateWorkShift({requestBody: n}) { + return K(_, { + method: "POST", + url: "/work-shifts-planning/update", + body: n, + mediaType: "application/json", + errors: { + 422: "Validation Error" + } + }) + } +} +const Ao = "_container_1t4rs_1" + , Bo = { + container: Ao +} + , Wo = () => f.useMemo( () => [{ + header: "ФИО", + Cell: ({row: t}) => `${t.original.secondName} ${t.original.firstName} ${t.original.patronymic}` +}, { + accessorKey: "phoneNumber", + header: "Номер телефона" +}, { + accessorKey: "passportData", + header: "Серия и номер паспорта" +}, { + accessorKey: "role.name", + header: "Роль" +}, { + accessorKey: "position.name", + header: "Должность" +}, { + accessorKey: "payRate.name", + header: "Тариф" +}, { + accessorKey: "comment", + header: "Дополнительная информация" +}, { + accessorKey: "isAdmin", + header: "Администратор", + Cell: ({row: t}) => t.original.isAdmin ? e.jsx(lt, {}) : e.jsx(Mt, {}), + size: 10 +}, { + accessorKey: "isBlocked", + header: "Заблокирован", + Cell: ({row: t}) => t.original.isBlocked ? e.jsx(lt, {}) : e.jsx(Mt, {}), + size: 10 +}], []) + , yn = f.createContext(void 0) + , zo = () => { + const {objects: t, refetch: n} = Et() + , a = i => { + var s; + Zt.updateUser({ + requestBody: { + data: { + ...i, + positionKey: (s = i.position) == null ? void 0 : s.key, + roleKey: i.role.key + } + } + }).then(async ({ok: d, message: g}) => { + D.guess(d, { + message: g + }), + d && await n() + } + ) + } + ; + return { + usersCrud: { + items: t, + onCreate: i => { + Zt.createUser({ + requestBody: { + data: { + ...i, + telegramId: -1 + } + } + }).then(async ({ok: s, message: d}) => { + D.guess(s, { + message: d + }), + s && await n() + } + ) + } + , + onDelete: async i => { + a({ + ...i, + isDeleted: !0 + }) + } + , + onChange: a + }, + refetch: n + } +} + , Lo = ({children: t}) => { + const n = zo(); + return e.jsx(yn.Provider, { + value: n, + children: t + }) +} + , Uo = () => { + const t = f.useContext(yn); + if (!t) + throw new Error("useUsersTabContext must be used within a UsersTabContextProvider"); + return t +} + , Oo = () => { + const t = Wo() + , {usersCrud: {items: n, onChange: a, onCreate: o, onDelete: r}, refetch: l} = Uo() + , i = c => { + a && (console.log(c), + U.openContextModal({ + modal: "userFormModal", + title: "Редактирование пользователя", + withCloseButton: !1, + innerProps: { + onChange: a, + element: c, + refetch: l + }, + size: "md" + })) + } + , s = c => { + r && U.openConfirmModal({ + title: "Удаление пользователя", + children: e.jsxs(Q, { + size: "sm", + children: ["Вы уверены что хотите удалить пользователя ", c.firstName, " ", c.secondName] + }), + labels: { + confirm: "Да", + cancel: "Нет" + }, + confirmProps: { + color: "red" + }, + onConfirm: () => r(c) + }) + } + , d = () => { + o && U.openContextModal({ + modal: "userFormModal", + title: "Редактирование пользователя", + withCloseButton: !1, + innerProps: { + onCreate: o, + refetch: l + }, + size: "md" + }) + } + , g = c => { + const u = window.open(`/api/v1/work-shifts/generate-qr-code/${c.id}`); + u && u.print() + } + ; + return e.jsx(he, { + data: n, + columns: t, + restProps: { + enableSorting: !1, + enableColumnActions: !1, + enableTopToolbar: !0, + renderTopToolbar: e.jsx(E, { + p: N(10), + children: e.jsx(Z, { + variant: "default", + onClick: () => d(), + children: "Создать пользователя" + }) + }), + enableRowActions: !0, + renderRowActions: ({row: c}) => e.jsxs(E, { + gap: "md", + children: [e.jsx(q, { + onClick: () => { + i(c.original) + } + , + label: "Редактировать", + children: e.jsx($, { + variant: "default", + children: e.jsx(ut, {}) + }) + }), e.jsx(q, { + onClick: () => { + s(c.original) + } + , + label: "Удалить", + children: e.jsx($, { + variant: "default", + children: e.jsx(ge, {}) + }) + }), e.jsx(q, { + onClick: () => { + g(c.original) + } + , + label: "QR-код", + children: e.jsx($, { + variant: "default", + children: e.jsx(cn, {}) + }) + })] + }) + } + }) +} + , $o = () => e.jsx(Lo, { + children: e.jsx(Oo, {}) +}) + , Vo = () => f.useMemo( () => [{ + accessorKey: "name", + header: "Название тарифа" +}, { + accessorKey: "payrollScheme.name", + header: "Система оплаты" +}, { + accessorKey: "baseRate", + header: "Базовая ставка", + Cell: ({row: t}) => `${t.original.baseRate.toLocaleString("ru")}₽` +}, { + accessorKey: "overtimeThreshold", + header: "Порог сверхурочных" +}, { + accessorKey: "overtimeRate", + header: "Сверхурочная ставка", + Cell: ({row: t}) => t.original.overtimeRate && `${t.original.overtimeRate.toLocaleString("ru")}₽` +}], []) + , Ho = ({items: t, onCreate: n, onChange: a, onDelete: o}) => { + const r = Vo() + , l = () => { + n && U.openContextModal({ + modal: "payRateForm", + withCloseButton: !1, + innerProps: { + onCreate: n + } + }) + } + , i = d => { + a && U.openContextModal({ + modal: "payRateForm", + withCloseButton: !1, + innerProps: { + onChange: g => a({ + ...g, + id: d.id + }), + element: d + } + }) + } + , s = d => { + o && U.openConfirmModal({ + title: "Удаление тарифа", + children: e.jsxs(Q, { + size: "sm", + children: ["Вы уверены что хотите удалить тариф ", d.name] + }), + labels: { + confirm: "Да", + cancel: "Нет" + }, + confirmProps: { + color: "red" + }, + onConfirm: () => o(d) + }) + } + ; + return e.jsx(he, { + data: t, + columns: r, + restProps: { + enableSorting: !1, + enableColumnActions: !1, + enableTopToolbar: !0, + renderTopToolbar: e.jsx(E, { + p: N(10), + children: e.jsx(Z, { + variant: "default", + onClick: () => l(), + children: "Создать тариф" + }) + }), + enableRowActions: !0, + renderRowActions: ({row: d}) => e.jsxs(E, { + gap: "md", + children: [e.jsx(q, { + label: "Редактировать", + children: e.jsx($, { + onClick: () => i(d.original), + variant: "default", + children: e.jsx(ut, {}) + }) + }), e.jsx(q, { + label: "Удалить", + children: e.jsx($, { + onClick: () => s(d.original), + variant: "default", + children: e.jsx(ge, {}) + }) + })] + }) + } + }) +} + , Fo = t => dn({ + queryFn: () => Ee.getPaymentRecords(t), + queryKey: "getPaymentRecords", + getObjectsFn: n => n.paymentRecords, + pagination: t +}) + , Ko = () => { + const t = s => st(s, "месяц", "месяца", "месяцев") + , n = s => st(s, "день", "дня", "дней") + , a = s => st(s, "час", "часа", "часов") + , o = s => st(s, "минута", "минуты", "минут") + , r = s => { + const d = s.payrollScheme; + return d.key === rt.DAILY ? n(s.workUnits) : d.key === rt.MONTHLY ? t(s.workUnits) : "" + } + , l = s => { + if (s.payrollScheme.key === rt.HOURLY) { + const [g,c] = un(s.workUnits) + , u = a(g); + if (c === 0) + return `${g} ${u}`; + const h = o(c); + return `${g} ${u} ${c} ${h}` + } + return `${s.workUnits} ${r(s)}` + } + , i = s => s.endDate && !ue.isEqual(s.startDate, s.endDate) ? `${ye(s.startDate)} - ${ye(s.endDate)}` : `${ye(s.startDate)}`; + return f.useMemo( () => [{ + header: "Дата начисления", + Cell: ({row: s}) => new Date(s.original.createdAt).toLocaleString("ru-RU") + }, { + header: "Получил начисление", + Cell: ({row: s}) => `${s.original.user.firstName} ${s.original.user.secondName}` + }, { + header: "Создал начисление", + Cell: ({row: s}) => `${s.original.createdByUser.firstName} ${s.original.createdByUser.secondName}` + }, { + header: "Количество", + Cell: ({row: s}) => l(s.original) + }, { + header: "Сумма начисления", + Cell: ({row: s}) => Math.round(s.original.amount).toLocaleString("ru-RU") + }, { + header: "Временной промежуток", + Cell: ({row: s}) => i(s.original) + }], []) +} + , _o = () => { + const [t,n] = f.useState(10) + , [a,o] = f.useState(1) + , {pagination: r, objects: l, refetch: i} = Fo({ + page: a, + itemsPerPage: 10 + }); + f.useEffect( () => { + r && n(r.totalPages) + } + , [r]); + const s = h => { + Ee.createPaymentRecord({ + requestBody: { + data: h + } + }).then(async ({ok: m, message: b}) => { + D.guess(m, { + message: b + }), + m && await i() + } + ) + } + , d = () => { + U.openContextModal({ + modal: "createPaymentRecord", + title: "Создание начисления", + innerProps: { + onCreate: s + } + }) + } + , g = h => { + Ee.deletePaymentRecord({ + requestBody: { + paymentRecordId: h.id + } + }).then(async ({ok: m, message: b}) => { + D.guess(m, { + message: b + }), + m && await i() + } + ) + } + , c = h => { + U.openConfirmModal({ + title: "Удаление начисления", + children: e.jsxs(Q, { + size: "sm", + children: ["Вы уверены что хотите удалить начисление пользователю", " ", h.user.firstName, " ", h.user.secondName, " от", " ", ye(h.createdAt)] + }), + labels: { + confirm: "Да", + cancel: "Нет" + }, + confirmProps: { + color: "red" + }, + onConfirm: () => g(h) + }) + } + , u = Ko(); + return e.jsxs(E, { + direction: "column", + h: "100%", + gap: N(10), + children: [e.jsx(he, { + data: l, + columns: u, + restProps: { + enableSorting: !1, + enableColumnActions: !1, + enableTopToolbar: !0, + renderTopToolbar: e.jsx(E, { + p: N(10), + children: e.jsx(Z, { + variant: "default", + onClick: () => d(), + children: "Создать начисление" + }) + }), + enableRowActions: !0, + renderRowActions: ({row: h}) => e.jsx(E, { + gap: "md", + children: e.jsx(q, { + label: "Удалить", + children: e.jsx($, { + onClick: () => c(h.original), + variant: "default", + children: e.jsx(ge, {}) + }) + }) + }) + } + }), t > 1 && e.jsx(ht, { + style: { + alignSelf: "flex-end" + }, + withEdges: !0, + onChange: h => o(h), + value: a, + total: t + })] + }) +} + , qo = () => { + const {objects: t, refetch: n} = za(); + return { + items: t, + onCreate: l => { + Ee.createPayRate({ + requestBody: { + data: l + } + }).then(async ({ok: i, message: s}) => { + D.guess(i, { + message: s + }), + i && await n() + } + ) + } + , + onChange: l => { + Ee.updatePayRate({ + requestBody: { + data: l + } + }).then(async ({ok: i, message: s}) => { + D.guess(i, { + message: s + }), + i && await n() + } + ) + } + , + onDelete: l => { + Ee.deletePayRate({ + requestBody: { + payRateId: l.id + } + }).then(async ({ok: i, message: s}) => { + D.guess(i, { + message: s + }), + i && await n() + } + ) + } + } +} + , Qo = () => { + const t = qo(); + return e.jsx(e.Fragment, { + children: e.jsxs(W, { + keepMounted: !1, + defaultValue: "paymentRecords", + color: "gray.6", + children: [e.jsxs(W.List, { + justify: "center", + grow: !0, + children: [e.jsx(W.Tab, { + value: "paymentRecords", + leftSection: e.jsx(To, {}), + children: "Начисления" + }), e.jsx(W.Tab, { + value: "tariffs", + leftSection: e.jsx(yo, {}), + children: "Тарифы" + })] + }), e.jsx(W.Panel, { + value: "tariffs", + children: e.jsx(_e.div, { + initial: { + opacity: 0 + }, + animate: { + opacity: 1 + }, + transition: { + duration: .2 + }, + children: e.jsx(Ho, { + ...t + }) + }) + }), e.jsx(W.Panel, { + value: "paymentRecords", + children: e.jsx(_e.div, { + initial: { + opacity: 0 + }, + animate: { + opacity: 1 + }, + transition: { + duration: .2 + }, + children: e.jsx(_o, {}) + }) + })] + }) + }) +} + , an = t => { + var n; + return [Re(t)[0].toDate(), (n = ue.last(Re(t))) == null ? void 0 : n.toDate()] +} + , Xo = () => { + const [t,n] = f.useState(new Date(new Date().getFullYear(),new Date().getMonth(),1)) + , [a,o] = f.useState([]) + , [r,l] = f.useState(an(t)) + , i = async () => kn.getTimeTrackingRecords({ + requestBody: { + date: hn(t), + userIds: [] + } + }).then(s => o(s.records)); + return f.useEffect( () => { + i().then(s => { + l(an(t)) + } + ) + } + , [t]), + { + month: t, + setMonth: n, + refetch: i, + trackingRecords: a, + dateBoundaries: r + } +} +; +function on(t) { + const [n,a] = t.split("_").map(Number); + return { + row: n, + col: a + } +} +function Jo(t) { + return `${t.row}_${t.col}` +} +function Yo(t) { + const n = []; + for (let a = 0; a < t.length - 1; a++) { + const o = t[a] + , r = t[a + 1]; + if (n.push(o), + o.row === r.row) + for (let l = o.col + 1; l < r.col; l++) + n.push({ + row: o.row, + col: l + }) + } + return n.push(t[t.length - 1]), + n +} +function Go(t, n) { + const a = on(n); + let o = Yo([...t, n].map(on).sort( (s, d) => s.col - d.col)); + const r = ue.maxBy(o, s => s.col) + , l = ue.minBy(o, s => s.col) + , i = o.findIndex(s => s.col === a.col && s.row === a.row); + return l && r && a.col > l.col && a.col < r.col && (i >= o.length / 2 ? o = o.slice(0, i) : o = o.slice(i)), + o.map(Jo) +} +const Zo = ({month: t, onUpdate: n, data: a, selectedCells: o, setSelectedCells: r, selectedBoundaries: l, range: i}) => { + const s = f.useMemo( () => a.reduce( (c, u) => { + if (u.data) { + const h = u.data.reduce( (m, b) => m + b.amount, 0); + return c + h + } + return c + } + , 0), [a, t, o, l]) + , d = c => o.length <= 1 ? {} : o[0] === c ? { + borderTopLeftRadius: N(20), + borderBottomLeftRadius: N(20) + } : ue.last(o) === c ? { + borderTopRightRadius: N(20), + borderBottomRightRadius: N(20) + } : {} + , g = c => { + const [u,h] = un(c) + , m = String(u).padStart(2, "0") + , b = String(h).padStart(2, "0"); + return `${m}:${b}` + } + ; + return f.useMemo( () => [{ + accessorKey: "name", + header: "ФИО", + Cell: ({row: c}) => e.jsxs(E, { + direction: "column", + children: [e.jsx(Q, { + size: "sm", + children: c.original.name + }), e.jsx(Q, { + size: "xs", + children: c.original.comment + })] + }) + }, ...i.map(c => ({ + size: 100, + accessorKey: c.date().toString(), + header: c.date().toString(), + enableSorting: !1, + enableColumnActions: !1, + Header: e.jsxs(E, { + align: "center", + direction: "column", + children: [e.jsx(Y, { + children: c.date() + }), e.jsx(Y, { + children: gn(c.day()) + })] + }), + mantineTableBodyCellProps: ({cell: u}) => ({ + style: o.includes(u.id) ? { + backgroundColor: "var(--mantine-primary-color-filled)", + ...d(u.id) + } : {}, + onClick: () => { + const h = Go(o, u.id); + r(h) + } + }), + Cell: ({cell: u, row: h}) => e.jsx(E, { + direction: "column", + children: e.jsx(La, { + component: Ua, + mask: "00:00", + onChange: m => /^\d\d:\d\d$/.test(m.currentTarget.value) && n(c.toDate(), h.original.userId, m.currentTarget.value), + styles: { + input: { + textAlign: "center" + } + }, + value: g(u.renderValue()) + }) + }) + })), { + header: "Всего времени", + Cell: ({row: c}) => g(Object.entries(c.original).reduce( (u, [h,m]) => (isNaN(parseInt(h)) || !ue.isNumber(m) || (u += m), + u), 0)) + }, { + accessorKey: "totalAmount", + header: "Итоговая сумма заработка", + Cell: ({row: c}) => Math.floor((c.original.data || []).reduce( (u, h) => (u += h.amount, + u), 0)), + Footer: e.jsxs(E, { + children: ["Всего: ", Math.floor(s).toLocaleString("ru-RU")] + }) + }], [t, o, l, s]) +} + , es = () => { + const [t,n] = f.useState([]) + , {dateBoundaries: a, month: o, setMonth: r, trackingRecords: l, refetch: i} = Xo() + , [s,d] = it([]) + , [g,c] = f.useState([null, null]) + , u = Et().objects.filter(p => { + var v; + return ((v = p.payRate) == null ? void 0 : v.payrollScheme.key) === rt.HOURLY + } + ) + , m = ( () => { + const p = g[0] + , v = g[1]; + return p && v ? It(p, v) : Re(o) + } + )() + , b = p => { + if (!o) + return []; + const v = m.map(w => w.date()); + p = p.map(w => ({ + ...w, + data: w.data.filter(M => v.includes(new Date(M.date).getDate())) + })); + const k = p.map(w => w.user.id) + , j = p.map(w => ({ + name: `${w.user.firstName} ${w.user.secondName}`, + comment: w.user.comment, + userId: w.user.id, + totalAmount: w.totalAmount, + data: w.data, + ...Object.fromEntries(Re(o).reduce( (M, B) => M.set(B.date().toString(), 0), new Map)), + ...Object.fromEntries(w.data.reduce( (M, B) => M.set(new Date(B.date).getDate().toString(), B.hours), new Map)) + })) + , x = u.filter(w => !k.includes(w.id)).map(w => ({ + name: `${w.firstName} ${w.secondName}`, + userId: w.id, + comment: w.comment, + totalAmount: 0, + ...Object.fromEntries(Re(o).reduce( (M, B) => M.set(B.date().toString(), 0), new Map)) + })) + , y = s.map(w => w.id) + , C = j.concat(x).filter(w => y.includes(w.userId)) + , S = g[0] + , I = g[1]; + if (S && I) { + const w = Re(o).map(O => O.date().toString()) + , M = It(S, I).map(O => O.date().toString()) + , B = ue.difference(w, M); + return C.map(O => ue.omit(O, B)) + } + return C.sort( (w, M) => w.userId - M.userId) + } + , T = Zo({ + month: o, + selectedBoundaries: g, + data: t, + onUpdate: (p, v, k) => { + const j = u.find(y => y.id === v); + if (!j) + return; + console.log(k); + const x = $a(k); + console.log(x), + x !== -1 && (n(y => y.map(C => (C.userId !== v || (C[p.getDate()] = k), + C))), + kn.updateTimeTrackingRecord({ + requestBody: { + date: hn(p), + hours: x, + userId: j.id + } + }).then(async ({ok: y, message: C}) => { + y || D.guess(y, { + message: C + }), + await i() + } + )) + } + , + selectedCells: [], + setSelectedCells: () => {} + , + range: m + }); + return f.useEffect( () => { + n(b(l)) + } + , [l, s, g]), + f.useEffect( () => { + c([null, null]) + } + , [o]), + e.jsxs(E, { + direction: "column", + p: N(10), + gap: N(10), + children: [e.jsxs(E, { + align: "center", + justify: "space-between", + gap: N(10), + children: [e.jsx(Dt, { + data: u.map(p => ({ + label: `${p.firstName} ${p.secondName}`, + value: p.id.toString() + })), + onChange: p => d.setState(u.filter(v => p.includes(v.id.toString()))), + value: s.map(p => p.id.toString()), + placeholder: s.length > 0 ? "" : "Показанные пользователи", + searchable: !0 + }), e.jsxs(E, { + gap: N(10), + children: [e.jsx(mn, { + styles: { + input: { + textAlign: "center" + } + }, + miw: N(80), + valueFormat: "DD", + type: "range", + minDate: a[0], + maxDate: a[1], + value: g, + onChange: c, + placeholder: "Даты" + }), e.jsx(Oa, { + allowDeselect: !1, + onChange: p => p && r(p), + value: o, + placeholder: "Выберите месяц" + })] + })] + }), e.jsx(E, { + children: e.jsx(he, { + data: t, + columns: T, + restProps: { + enableColumnActions: !1, + enableSorting: !1, + enableRowActions: !0, + renderRowActions: ({row: p}) => e.jsx(E, { + gap: "md", + children: e.jsx(q, { + label: "Скрыть", + children: e.jsx($, { + onClick: () => { + d.filter(v => v.id !== p.original.userId) + } + , + variant: "default", + children: e.jsx(pn, {}) + }) + }) + }) + } + }) + })] + }) +} + , ts = ({isActiveShiftsTable: t}) => { + const n = o => { + const r = Math.floor(o / 3600) + , l = Math.floor(o % 3600 / 60); + return r === 0 ? `${l} мин.` : `${r} ч. ${l} мин.` + } + , a = () => t ? [] : [{ + header: "Конец смены", + accessorKey: "workShift.finishedAt", + Cell: ({row: o}) => o.original.workShift.finishedAt && new Date(o.original.workShift.finishedAt).toLocaleString("ru-RU") + }, { + header: "Длительность смены", + accessorKey: "totalHours", + Cell: ({row: o}) => n(o.original.totalHours ?? 0) + }, { + header: "Перерывы", + accessorKey: "pauseHours", + Cell: ({row: o}) => n(o.original.pauseHours ?? 0) + }, { + header: "Отработано", + Cell: ({row: o}) => n((o.original.totalHours ?? 0) - (o.original.pauseHours ?? 0)) + }]; + return f.useMemo( () => [{ + header: "ФИО", + Cell: ({row: o}) => `${o.original.workShift.user.firstName} ${o.original.workShift.user.secondName}` + }, { + header: "Роль", + accessorKey: "workShift.user.role.name" + }, { + header: "Должность", + accessorKey: "workShift.user.position.name" + }, { + header: "Начало смены", + accessorKey: "workShift.startedAt", + Cell: ({row: o}) => new Date(o.original.workShift.startedAt).toLocaleString("ru-RU") + }, ...a()], [t]) +} +; +var ct = (t => (t[t.ACTIVE = 0] = "ACTIVE", +t[t.HISTORY = 1] = "HISTORY", +t))(ct || {}); +const ns = [{ + label: "Активные смены", + value: "0" +}, { + label: "Завершенные смены", + value: "1" +}] + , as = t => e.jsx(fn, { + data: ns, + ...t +}) + , os = ({shifts: t, fetchShifts: n, shiftsTableType: a}) => { + const o = a === ct.ACTIVE + , r = ts({ + isActiveShiftsTable: o + }) + , l = m => { + ie.deleteWorkShift({ + shiftId: m.workShift.id + }).then( ({ok: b, message: P}) => { + D.guess(b, { + message: P + }), + n() + } + ).catch(b => console.log(b)) + } + , i = m => { + U.openConfirmModal({ + title: "Удаление смены", + children: e.jsxs(Q, { + size: "sm", + children: ["Вы уверены что хотите удалить смену работника", " ", m.workShift.user.firstName, " ", m.workShift.user.secondName, " от", " ", ye(m.workShift.startedAt)] + }), + labels: { + confirm: "Да", + cancel: "Нет" + }, + confirmProps: { + color: "red" + }, + onConfirm: () => l(m) + }) + } + , s = m => { + ie.finishWorkShiftById({ + shiftId: m.workShift.id + }).then( ({ok: b, message: P}) => { + D.guess(b, { + message: P + }), + n() + } + ).catch(b => console.log(b)) + } + , d = m => { + U.openConfirmModal({ + title: "Завершение смены", + children: e.jsxs(Q, { + size: "sm", + children: ["Вы уверены что хотите завершить смену работника", " ", m.workShift.user.firstName, " ", m.workShift.user.secondName, " от", " ", ye(m.workShift.startedAt)] + }), + labels: { + confirm: "Да", + cancel: "Нет" + }, + confirmProps: { + color: "red" + }, + onConfirm: () => s(m) + }) + } + , g = m => { + ie.startPauseByShiftId({ + shiftId: m.workShift.id + }).then( ({ok: b, message: P}) => { + D.guess(b, { + message: P + }), + n() + } + ).catch(b => console.log(b)) + } + , c = m => { + ie.finishPauseByShiftId({ + shiftId: m.workShift.id + }).then( ({ok: b, message: P}) => { + D.guess(b, { + message: P + }), + n() + } + ).catch(b => console.log(b)) + } + , u = (m, b, P) => e.jsx(q, { + label: m, + children: e.jsx($, { + onClick: b, + variant: "default", + children: P + }) + }) + , h = m => { + const b = [u("Удалить", () => i(m.original), e.jsx(ge, {}))]; + return o && (b.push(u("Завершить смену", () => d(m.original), e.jsx(lt, {}))), + m.original.workShift.isPaused ? b.push(u("Продолжить смену", () => c(m.original), e.jsx(Mo, {}))) : b.push(u("Поставить смену на паузу", () => g(m.original), e.jsx(po, {})))), + b + } + ; + return e.jsx(he, { + data: t, + columns: r, + restProps: { + enableRowActions: !0, + enableSorting: !1, + enableColumnActions: !1, + renderRowActions: ({row: m}) => e.jsxs(E, { + gap: "md", + children: [...h(m)] + }) + } + }) +} + , ss = () => { + const [t,n] = f.useState(1) + , [a,o] = f.useState(1) + , [r,l] = f.useState([]) + , [i,s] = f.useState(ct.ACTIVE) + , [d,g] = f.useState(!1) + , c = () => { + g(!0), + ie.getShifts({ + isActive: i === ct.ACTIVE, + page: a, + itemsPerPage: 10 + }).then(u => { + l(u.shifts), + n(u.paginationInfo.totalPages) + } + ).catch(u => console.log(u)).finally( () => g(!1)) + } + ; + return f.useEffect( () => { + c() + } + , [i, a]), + { + shifts: r, + shiftsTableType: i, + setShiftsTableType: s, + totalPages: t, + page: a, + setPage: o, + fetchShifts: c, + isLoading: d + } +} + , rs = ({fetchShifts: t}) => { + let n = 0; + const a = { + 0: ie.startShift, + 1: ie.finishShift, + 2: ie.finishPauseByUserId, + 3: ie.startPauseByUserId + } + , o = g => { + const c = parseInt(g); + if (isNaN(c)) { + D.error({ + message: "Ошибка, некорректные данные в QR-коде" + }); + return + } + a[n]({ + userId: c + }).then(async ({ok: u, message: h}) => { + D.guess(u, { + message: h + }), + t() + } + ).catch(u => console.log(u)) + } + , r = () => { + U.openContextModal({ + modal: "scanningModal", + innerProps: { + label: "Отсканируйте QR-код", + onScan: o, + closeOnScan: !0 + }, + withCloseButton: !1 + }) + } + ; + return { + onShiftStart: () => { + n = 0, + r() + } + , + onShiftFinish: () => { + n = 1, + r() + } + , + onShiftResume: () => { + n = 2, + r() + } + , + onShiftPause: () => { + n = 3, + r() + } + } +} + , is = ({fetchShifts: t}) => { + const {onShiftStart: n, onShiftFinish: a, onShiftResume: o, onShiftPause: r} = rs({ + fetchShifts: t + }); + return e.jsxs(De, { + ml: "xs", + my: "xs", + children: [e.jsx(Z, { + variant: "default", + onClick: n, + children: "Начать смену" + }), e.jsx(Z, { + variant: "default", + onClick: a, + children: "Закончить смену" + }), e.jsx(Z, { + variant: "default", + onClick: r, + children: "Начать перерыв" + }), e.jsx(Z, { + variant: "default", + onClick: o, + children: "Закончить перерыв" + })] + }) +} + , ls = () => { + const {shifts: t, shiftsTableType: n, setShiftsTableType: a, totalPages: o, page: r, setPage: l, fetchShifts: i, isLoading: s} = ss(); + return e.jsxs(qe, { + gap: 0, + children: [e.jsx(is, { + fetchShifts: i + }), e.jsx(Va, {}), e.jsx(as, { + value: n.toString(), + onChange: d => { + l(1), + a(parseInt(d)) + } + }), e.jsx(Ha, { + visible: s, + children: e.jsxs(E, { + gap: N(10), + direction: "column", + children: [e.jsx(os, { + shiftsTableType: n, + shifts: t, + fetchShifts: i + }), o > 1 && e.jsx(ht, { + style: { + alignSelf: "flex-end" + }, + withEdges: !0, + onChange: d => l(d), + value: r, + total: o + })] + }) + })] + }) +} + , cs = t => dn({ + queryFn: () => Rt.getAllTransactions({ + requestBody: { + isIncome: t.isIncome + }, + ...t + }), + queryKey: "getTransactions", + getObjectsFn: n => n.transactions, + pagination: t +}) + , ds = () => f.useMemo( () => [{ + accessorKey: "spentDate", + header: "Дата", + Cell: ({row: t}) => ye(t.original.spentDate) +}, { + accessorKey: "name", + header: "Наименование" +}, { + accessorKey: "comment", + header: "Комментарий" +}, { + accessorKey: "amount", + header: "Сумма" +}, { + accessorKey: "tags", + header: "Теги", + Cell: ({row: t}) => t.original.tags.map(n => n.name).join(", ") +}, { + accessorKey: "createdByUser", + header: "Создал запись", + Cell: ({row: t}) => `${t.original.createdByUser.firstName} ${t.original.createdByUser.secondName}` +}], []); +var Ke = (t => (t[t.EXPENSE = 0] = "EXPENSE", +t[t.INCOME = 1] = "INCOME", +t))(Ke || {}); +const us = [{ + label: "Расходы", + value: "0" +}, { + label: "Доходы", + value: "1" +}] + , hs = t => e.jsx(fn, { + data: us, + ...t +}) + , gs = () => { + const [t,n] = f.useState(Ke.EXPENSE) + , a = t === Ke.INCOME + , [o,r] = f.useState(10) + , [l,i] = f.useState(1) + , {pagination: s, objects: d, refetch: g} = cs({ + page: l, + itemsPerPage: 10, + isIncome: a + }) + , c = ds(); + f.useEffect( () => { + s && (s.totalPages ? r(s.totalPages) : r(0)) + } + , [s]); + const u = j => { + Rt.updateTransaction({ + requestBody: { + transaction: { + ...j, + spentDate: ke(new Date(j.spentDate)) ?? "", + isIncome: a + } + } + }).then(async ({ok: x, message: y}) => { + D.guess(x, { + message: y + }), + await g() + } + ).catch(x => console.log(x)) + } + , h = a ? "доходах" : "расходах" + , m = () => { + U.openContextModal({ + modal: "transactionFormModal", + title: `Создание записи о ${h}`, + withCloseButton: !1, + innerProps: { + onCreate: u, + isIncome: a + } + }) + } + , b = j => { + const x = { + ...j, + tags: j.tags.map(y => y.name) + }; + U.openContextModal({ + modal: "transactionFormModal", + title: `Редактирование записи о ${h}`, + withCloseButton: !1, + innerProps: { + onChange: u, + element: x, + isIncome: a + } + }) + } + , P = j => { + Rt.deleteTransaction({ + transactionId: j.id + }).then(async ({ok: x, message: y}) => { + D.guess(x, { + message: y + }), + await g() + } + ).catch(x => console.log(x)) + } + , T = async () => { + await g() + } + , p = () => { + U.openContextModal({ + modal: "transactionTagsModal", + title: "Редактирование тегов", + withCloseButton: !1, + innerProps: { + onChange: T, + isIncome: a + } + }) + } + , v = () => t === Ke.EXPENSE ? "Создать запись о расходах" : "Создать запись о доходах" + , k = () => t === Ke.EXPENSE ? "Редактировать теги для расходов" : "Редактировать теги для доходов"; + return e.jsxs(E, { + direction: "column", + h: "100%", + gap: 0, + children: [e.jsx(hs, { + value: t.toString(), + onChange: j => { + i(1), + n(parseInt(j)) + } + }), e.jsx(he, { + data: d, + columns: c, + restProps: { + enableTopToolbar: !0, + enableRowActions: !0, + enableSorting: !1, + enableColumnActions: !1, + renderTopToolbar: e.jsxs(E, { + p: N(10), + gap: N(10), + children: [e.jsx(Z, { + variant: "default", + onClick: () => m(), + children: v() + }), e.jsx(Z, { + variant: "default", + onClick: () => p(), + children: k() + })] + }), + renderRowActions: ({row: j}) => e.jsxs(E, { + gap: "md", + children: [e.jsx(q, { + label: "Редактировать", + children: e.jsx($, { + onClick: () => b(j.original), + variant: "default", + children: e.jsx(ut, {}) + }) + }), e.jsx(q, { + label: "Удалить", + children: e.jsx($, { + onClick: () => P(j.original), + variant: "default", + children: e.jsx(ge, {}) + }) + })] + }) + } + }), o > 1 && e.jsx(ht, { + style: { + alignSelf: "flex-end" + }, + withEdges: !0, + onChange: j => i(j), + value: l, + total: o + })] + }) +} + , ms = () => f.useMemo( () => [{ + accessorKey: "name", + header: "Название должности" +}, { + accessorKey: "key", + header: "Ключ" +}], []) + , ps = ({items: t, onCreate: n, onDelete: a}) => { + const o = ms() + , r = () => { + n && U.openContextModal({ + modal: "positionForm", + withCloseButton: !1, + innerProps: { + onCreate: n + } + }) + } + , l = i => { + a && U.openConfirmModal({ + title: "Удаление должности", + children: e.jsxs(Q, { + size: "sm", + children: ["Вы уверены что хотите удалить должность ", i.name] + }), + labels: { + confirm: "Да", + cancel: "Нет" + }, + confirmProps: { + color: "red" + }, + onConfirm: () => a(i) + }) + } + ; + return e.jsx(he, { + data: t, + columns: o, + restProps: { + enableTopToolbar: !0, + enableSorting: !1, + enableColumnActions: !1, + enableRowActions: !0, + renderTopToolbar: e.jsx(E, { + p: N(10), + children: e.jsx(Z, { + variant: "default", + onClick: () => r(), + children: "Создать должность" + }) + }), + renderRowActions: ({row: i}) => e.jsx(E, { + gap: "md", + children: e.jsx(q, { + label: "Удалить", + children: e.jsx($, { + onClick: () => l(i.original), + variant: "default", + children: e.jsx(ge, {}) + }) + }) + }) + } + }) +} + , fs = () => { + const {objects: t, refetch: n} = Fa() + , a = r => { + en.createPosition({ + requestBody: { + data: r + } + }).then(async ({ok: l, message: i}) => { + D.guess(l, { + message: i + }), + l && await n() + } + ) + } + , o = r => { + en.deletePosition({ + requestBody: { + positionKey: r.key + } + }).then(async ({ok: l, message: i}) => { + D.guess(l, { + message: i + }), + l && await n() + } + ) + } + ; + return e.jsx(ps, { + items: t, + onCreate: a, + onDelete: o + }) +} + , xs = ({fetchDepartments: t}) => xn({ + onChange: n => { + de.updateDepartment({ + requestBody: { + department: n + } + }).then( ({ok: a, message: o}) => { + D.guess(a, { + message: o + }), + t() + } + ).catch(a => console.log(a)) + } + , + onCreate: n => { + de.createDepartment({ + requestBody: { + department: n + } + }).then( ({ok: a, message: o}) => { + D.guess(a, { + message: o + }), + t() + } + ).catch(a => console.log(a)) + } + , + onDelete: n => { + de.deleteDepartment({ + departmentId: n.id + }).then( ({ok: a, message: o}) => { + D.guess(a, { + message: o + }), + t() + } + ).catch(a => console.log(a)) + } +}) + , bs = ({fetchDepartments: t}) => xn({ + onChange: n => { + de.updateSection({ + requestBody: { + section: n + } + }).then( ({ok: a, message: o}) => { + D.guess(a, { + message: o + }), + t() + } + ).catch(a => console.log(a)) + } + , + onCreate: n => { + de.createSection({ + requestBody: { + section: n + } + }).then( ({ok: a, message: o}) => { + D.guess(a, { + message: o + }), + t() + } + ).catch(a => console.log(a)) + } + , + onDelete: n => { + de.deleteSection({ + sectionId: n.id + }).then( ({ok: a, message: o}) => { + D.guess(a, { + message: o + }), + t() + } + ).catch(a => console.log(a)) + } +}) + , wn = f.createContext(void 0) + , Cs = () => { + const [t,n] = f.useState([]) + , a = () => { + de.getDepartments().then(c => { + n(c.departments) + } + ).catch(c => console.log(c)) + } + , o = xs({ + fetchDepartments: a + }) + , r = bs({ + fetchDepartments: a + }); + f.useEffect( () => { + a() + } + , []); + const l = (c, u, h) => { + U.openContextModal({ + modal: "departmentModal", + title: c, + withCloseButton: !1, + innerProps: { + departmentsCrud: o, + departmentSectionsCrud: r, + isDepartmentSection: u, + element: h, + allDepartments: t + } + }) + } + ; + return { + departments: t, + fetchDepartments: a, + onCreateDepartmentClick: (c, u) => { + l(c ? "Создание отдела" : "Создание департамента", c, u) + } + , + onUpdateDepartmentClick: (c, u) => { + l(u ? "Редактирование отдела" : "Редактирование департамента", u, c) + } + , + onDeleteDepartmentClick: (c, u) => { + U.openConfirmModal({ + title: "Удаление " + (u ? "отдела" : "департамента"), + children: e.jsxs(Q, { + size: "sm", + children: ["Вы уверены что хотите удалить ", u ? "отдел" : "департамент", " ", c.name, "?"] + }), + labels: { + confirm: "Да", + cancel: "Нет" + }, + confirmProps: { + color: "red" + }, + onConfirm: () => { + u ? r.onDelete(c) : o.onDelete(c) + } + }) + } + , + onAddUserClick: c => { + U.openContextModal({ + modal: "addUserToDepartmentModal", + title: `Добавление пользователя в отдел ${c.name}`, + withCloseButton: !1, + innerProps: { + departmentSection: c, + fetchDepartments: a + } + }) + } + } +} + , vs = ({children: t}) => { + const n = Cs(); + return e.jsx(wn.Provider, { + value: n, + children: t + }) +} + , gt = () => { + const t = f.useContext(wn); + if (!t) + throw new Error("useDepartmentContext must be used within a DepartmentContextProvider"); + return t +} +; +var [js,zt] = Ka("useDataTableColumnsContext must be used within DataTableColumnProvider") + , sn = t => { + let {children: n, columnsOrder: a, setColumnsOrder: o, columnsToggle: r, setColumnsToggle: l, resetColumnsOrder: i, resetColumnsToggle: s, setColumnWidth: d, resetColumnsWidth: g} = t + , [c,u] = f.useState("") + , [h,m] = f.useState(""); + return e.jsx(js, { + value: { + sourceColumn: c, + setSourceColumn: u, + targetColumn: h, + setTargetColumn: m, + columnsToggle: r, + setColumnsToggle: l, + swapColumns: () => { + if (!a || !o || !c || !h) + return; + let b = a.indexOf(c) + , P = a.indexOf(h); + if (b !== -1 && P !== -1) { + let T = a.splice(b, 1)[0]; + a.splice(P, 0, T), + o([...a]) + } + } + , + resetColumnsOrder: i, + resetColumnsToggle: s, + setColumnWidth: d, + resetColumnsWidth: g + }, + children: n + }) +} +; +function ks() { + return e.jsx("tr", { + className: "mantine-datatable-empty-row", + children: e.jsx("td", {}) + }) +} +function ys() { + return e.jsxs("svg", { + width: "24", + height: "24", + viewBox: "0 0 24 24", + strokeWidth: "2", + stroke: "currentColor", + fill: "none", + strokeLinecap: "round", + strokeLinejoin: "round", + children: [e.jsx("path", { + stroke: "none", + d: "M0 0h24v24H0z", + fill: "none" + }), e.jsx("path", { + d: "M12.983 8.978c3.955 -.182 7.017 -1.446 7.017 -2.978c0 -1.657 -3.582 -3 -8 -3c-1.661 0 -3.204 .19 -4.483 .515m-2.783 1.228c-.471 .382 -.734 .808 -.734 1.257c0 1.22 1.944 2.271 4.734 2.74" + }), e.jsx("path", { + d: "M4 6v6c0 1.657 3.582 3 8 3c.986 0 1.93 -.067 2.802 -.19m3.187 -.82c1.251 -.53 2.011 -1.228 2.011 -1.99v-6" + }), e.jsx("path", { + d: "M4 12v6c0 1.657 3.582 3 8 3c3.217 0 5.991 -.712 7.261 -1.74m.739 -3.26v-4" + }), e.jsx("path", { + d: "M3 3l18 18" + })] + }) +} +function ws({icon: t, text: n, pt: a, pb: o, active: r, children: l}) { + return e.jsx(Ne, { + pt: a, + pb: o, + className: "mantine-datatable-empty-state", + "data-active": r || void 0, + children: l || e.jsxs(e.Fragment, { + children: [t || e.jsx("div", { + className: "mantine-datatable-empty-state-icon", + children: e.jsx(ys, {}) + }), e.jsx(Q, { + component: "div", + size: "sm", + c: "dimmed", + children: n + })] + }) + }) +} +var Ss = ({key: t, columns: n=[], getInitialValueInEffect: a=!0}) => { + function o(x, y) { + let C = []; + return x.forEach(S => { + y.find(I => I.accessor === S) && C.push(S) + } + ), + y.forEach(S => { + C.includes(S.accessor) || C.push(S.accessor) + } + ), + C + } + function r(x, y) { + let C = []; + return x.forEach(S => { + y.find(I => I.accessor === S.accessor) && C.push(S) + } + ), + y.forEach(S => { + C.find(I => I.accessor === S.accessor) || C.push({ + accessor: S.accessor, + defaultToggle: S.defaultToggle || !0, + toggleable: S.toggleable, + toggled: S.defaultToggle === void 0 ? !0 : S.defaultToggle + }) + } + ), + C + } + function l(x, y) { + let C = []; + return x.forEach(S => { + let I = Object.keys(S)[0]; + y.find(w => w.accessor === I) && C.push(S) + } + ), + y.forEach(S => { + let I = S.accessor; + if (!C.find(w => Object.keys(w)[0] === I)) { + let w = {}; + w[I] = "", + C.push(w) + } + } + ), + C + } + function i() { + let[x,y] = Pt({ + key: t ? `${t}-columns-order` : "", + defaultValue: t ? g : void 0, + getInitialValueInEffect: a + }); + function C(w) { + t && y(w) + } + if (!t) + return [x, C]; + let S = o(x, n) + , I = JSON.stringify(x); + return JSON.stringify(S) !== I && C(S), + [S, C] + } + function s() { + let[x,y] = Pt({ + key: t ? `${t}-columns-toggle` : "", + defaultValue: t ? u : void 0, + getInitialValueInEffect: a + }); + function C(w) { + t && y(w) + } + if (!t) + return [x, C]; + let S = r(x, n) + , I = JSON.stringify(x); + return JSON.stringify(S) !== I && C(S), + [r(x, n), C] + } + function d() { + let[x,y] = Pt({ + key: t ? `${t}-columns-width` : "", + defaultValue: t ? c : void 0, + getInitialValueInEffect: a + }); + function C(w) { + t && y(w) + } + if (!t) + return [x, C]; + let S = l(x, n) + , I = JSON.stringify(x); + return JSON.stringify(S) !== I && C(S), + [l(x, n), C] + } + let g = n && n.map(x => x.accessor) || [] + , c = n && n.map(x => ({ + [x.accessor]: x.width ?? "initial" + })) || [] + , u = n && n.map(x => ({ + accessor: x.accessor, + defaultToggle: x.defaultToggle || !0, + toggleable: x.toggleable, + toggled: x.defaultToggle === void 0 ? !0 : x.defaultToggle + })) + , [h,m] = i() + , [b,P] = s() + , [T,p] = d() + , v = () => m(g) + , k = () => { + P(u) + } + , j = () => p(c); + return { + effectiveColumns: f.useMemo( () => h ? h.map(x => n.find(y => y.accessor === x)).map(x => { + var y; + return { + ...x, + hidden: (x == null ? void 0 : x.hidden) || !((y = b.find(C => C.accessor === (x == null ? void 0 : x.accessor))) != null && y.toggled) + } + } + ).map(x => { + var y; + return { + ...x, + width: (y = T.find(C => C[x == null ? void 0 : x.accessor])) == null ? void 0 : y[x == null ? void 0 : x.accessor] + } + } + ) : n, [n, h, b, T]), + setColumnsOrder: m, + columnsOrder: h, + resetColumnsOrder: v, + columnsToggle: b, + setColumnsToggle: P, + resetColumnsToggle: k, + columnsWidth: T, + setColumnsWidth: p, + setColumnWidth: (x, y) => { + let C = T.map(S => S[x] ? { + [x]: y + } : S); + p(C) + } + , + resetColumnsWidth: j + } +} +; +function Ie() { + var o; + let[t] = oo() + , {width: n, height: a} = ((o = t.current) == null ? void 0 : o.getBoundingClientRect()) || { + width: 0, + height: 0 + }; + return { + ref: t, + width: n, + height: a + } +} +var Ps = typeof window < "u" ? f.useLayoutEffect : f.useEffect; +function Ts(t) { + let[n,a] = f.useState(null) + , o = (t == null ? void 0 : t.join(":")) || ""; + return f.useEffect( () => { + a(null) + } + , [o]), + { + lastSelectionChangeIndex: n, + setLastSelectionChangeIndex: a + } +} +function Ms(t, n) { + let a = () => { + n(t.map(r => r.matches)) + } + , o = t.map(r => { + try { + return r.addEventListener("change", a), + () => r.removeEventListener("change", a) + } catch { + return r.addListener(a), + () => r.removeListener(a) + } + } + ); + return () => { + o.forEach(r => r()) + } +} +function Is(t, n) { + return n || (typeof window < "u" && "matchMedia"in window ? t.map(a => window.matchMedia(a).matches) : t.map( () => !1)) +} +function Rs(t, n, {getInitialValueInEffect: a}={ + getInitialValueInEffect: !0 +}) { + let[o,r] = f.useState(a ? n : Is(t, n)) + , l = f.useRef(null); + return f.useEffect( () => { + if ("matchMedia"in window) + return l.current = t.map(i => window.matchMedia(i)), + r(l.current.map(i => i.matches)), + Ms(l.current, i => { + r(i) + } + ) + } + , [t]), + o +} +function Ns(t) { + let n = jn() + , a = f.useMemo( () => t.map(r => (typeof r == "function" ? r(n) : r) ?? ""), [t, n]) + , o = f.useMemo( () => t.map( () => !0), [t]); + return Rs(a, o) +} +function mt(t) { + let n = jn() + , a = typeof t == "function" ? t(n) : t; + return Qa(a || "", !0) +} +function Lt(t) { + let n = t.replace(/([a-z\d])([A-Z]+)/g, "$1 $2").replace(/\W|_/g, " ").trim().toLowerCase(); + return `${n.charAt(0).toUpperCase()}${n.slice(1)}` +} +function Es(t, n, a) { + return t.filter(o => !n.map(a).includes(a(o))) +} +function Tt(t, n) { + return t.filter( (a, o, r) => o === r.findIndex(l => n(a) === n(l))) +} +function Sn(t, n) { + return n ? n.match(/([^[.\]])+/g).reduce( (a, o) => a && a[o], t) : void 0 +} +function F(t, n) { + return typeof n == "string" ? Sn(t, n) : n(t) +} +function Ds({rowExpansion: t, records: n, idAccessor: a}) { + let o = []; + if (t && n) { + let {trigger: s, allowMultiple: d, initiallyExpanded: g} = t; + n && s === "always" ? o = n.map(c => F(c, a)) : g && (o = n.filter( (c, u) => g({ + record: c, + index: u + })).map(c => F(c, a)), + d || (o = [o[0]])) + } + let r, l, i = f.useState(o); + if (t) { + let {expandable: s, trigger: d, allowMultiple: g, collapseProps: c, content: u} = t; + t.expanded ? {recordIds: r, onRecordIdsChange: l} = t.expanded : [r,l] = i; + let h = m => l == null ? void 0 : l(r.filter(b => b !== F(m, a))); + return { + expandOnClick: d !== "always" && d !== "never", + isRowExpanded: m => d === "always" ? !0 : r.includes(F(m, a)), + isExpandable: ({record: m, index: b}) => s ? s({ + record: m, + index: b + }) : !0, + expandRow: m => { + let b = F(m, a); + l == null || l(g ? [...r, b] : [b]) + } + , + collapseRow: h, + collapseProps: c, + content: ({record: m, index: b}) => () => u({ + record: m, + index: b, + collapse: () => h(m) + }) + } + } +} +function As(t, n) { + let[a,o] = f.useState(t) + , [r,l] = f.useState(t) + , i = tn( () => o(!0), 0) + , s = tn( () => l(!1), n || 200); + return f.useEffect( () => { + t ? (s.clear(), + l(!0), + i.start()) : (i.clear(), + o(!1), + s.start()) + } + , [i, s, t]), + { + expanded: a, + visible: r + } +} +var Ut = "mantine-datatable-nowrap" + , Ot = "mantine-datatable-ellipsis" + , Ae = "mantine-datatable-pointer-cursor" + , Pn = "mantine-datatable-context-menu-cursor" + , Bs = "mantine-datatable-text-selection-disabled" + , pt = "mantine-datatable-text-align-left" + , ft = "mantine-datatable-text-align-center" + , xt = "mantine-datatable-text-align-right"; +function Ws({className: t, style: n, visibleMediaQuery: a, title: o, noWrap: r, ellipsis: l, textAlign: i, width: s}) { + return mt(a) ? e.jsx(Qe, { + className: A({ + [Ut]: r || l, + [Ot]: l, + [pt]: i === "left", + [ft]: i === "center", + [xt]: i === "right" + }, t), + style: [{ + width: s, + minWidth: s, + maxWidth: s + }, n], + children: o + }) : null +} +function zs({shadowVisible: t}) { + return e.jsx(Qe, { + className: "mantine-datatable-footer-selector-placeholder-cell", + "data-shadow-visible": t || void 0 + }) +} +var Ls = f.forwardRef(function({className: t, style: n, columns: a, defaultColumnProps: o, selectionVisible: r, selectorCellShadowVisible: l, scrollDiff: i}, s) { + let d = i < 0; + return e.jsx(_a, { + ref: s, + className: A("mantine-datatable-footer", t), + style: [{ + position: d ? "relative" : "sticky", + bottom: N(d ? i : 0) + }, n], + children: e.jsxs(we, { + children: [r && e.jsx(zs, { + shadowVisible: l + }), a.map( ({hidden: g, ...c}) => { + if (g) + return null; + let {accessor: u, visibleMediaQuery: h, textAlign: m, width: b, footer: P, footerClassName: T, footerStyle: p, noWrap: v, ellipsis: k} = { + ...o, + ...c + }; + return e.jsx(Ws, { + className: T, + style: p, + visibleMediaQuery: h, + textAlign: m, + width: b, + title: P, + noWrap: v, + ellipsis: k + }, u) + } + )] + }) + }) +}); +function Us({group: {id: t, columns: n, title: a, textAlign: o, className: r, style: l}}) { + let i = f.useMemo( () => n.map( ({visibleMediaQuery: g}) => g), [n]) + , s = Ns(i) + , d = f.useMemo( () => n.filter( ({hidden: g}, c) => !g && (s == null ? void 0 : s[c])).length, [n, s]); + return d > 0 ? e.jsx(Qe, { + colSpan: d, + className: A("mantine-datatable-column-group-header-cell", { + [pt]: o === "left", + [ft]: o === "center", + [xt]: o === "right" + }, r), + style: l, + children: a ?? Lt(t) + }) : null +} +function Os() { + return e.jsxs("svg", { + width: "14", + height: "14", + viewBox: "0 0 24 24", + strokeWidth: "2", + stroke: "currentColor", + fill: "none", + strokeLinecap: "round", + strokeLinejoin: "round", + children: [e.jsx("path", { + stroke: "none", + d: "M0 0h24v24H0z", + fill: "none" + }), e.jsx("path", { + d: "M4 4h16v2.172a2 2 0 0 1 -.586 1.414l-4.414 4.414v7l-6 2v-8.5l-4.48 -4.928a2 2 0 0 1 -.52 -1.345v-2.227z" + })] + }) +} +function $s() { + return e.jsxs("svg", { + width: "14", + height: "14", + viewBox: "0 0 24 24", + strokeWidth: "2", + stroke: "currentColor", + fill: "none", + strokeLinecap: "round", + strokeLinejoin: "round", + children: [e.jsx("path", { + stroke: "none", + d: "M0 0h24v24H0z", + fill: "none" + }), e.jsx("path", { + d: "M20 3h-16a1 1 0 0 0 -1 1v2.227l.008 .223a3 3 0 0 0 .772 1.795l4.22 4.641v8.114a1 1 0 0 0 1.316 .949l6 -2l.108 -.043a1 1 0 0 0 .576 -.906v-6.586l4.121 -4.12a3 3 0 0 0 .879 -2.123v-2.171a1 1 0 0 0 -1 -1z", + strokeWidth: "0", + fill: "currentColor" + })] + }) +} +function Vs({children: t, isActive: n, filterPopoverProps: a}) { + let[o,{close: r, toggle: l}] = Za(!1) + , i = n ? $s : Os + , s = eo(r); + return e.jsxs(bn, { + withArrow: !0, + shadow: "md", + opened: o, + onClose: r, + trapFocus: !0, + ...a, + children: [e.jsx(Cn, { + children: e.jsx($, { + className: "mantine-datatable-header-cell-filter-action-icon", + "data-active": n || void 0, + size: "sm", + variant: "default", + onClick: d => { + d.preventDefault(), + l() + } + , + onKeyDown: d => d.stopPropagation(), + children: e.jsx(i, {}) + }) + }), e.jsx(vn, { + ref: s, + onClick: d => d.stopPropagation(), + onKeyDown: d => d.stopPropagation(), + children: typeof t == "function" ? t({ + close: r + }) : t + })] + }) +} +var Hs = t => { + let {accessor: n, columnRef: a} = t + , o = f.useRef(null) + , [r,l] = f.useState(0) + , {setColumnWidth: i} = zt() + , s = c => { + c.preventDefault(), + c.stopPropagation(), + document.addEventListener("mousemove", d), + document.addEventListener("mouseup", g), + document.body.style.cursor = "col-resize" + } + , d = c => { + if (!a.current) + return; + let u = c.clientX - a.current.getBoundingClientRect().right + , h = `${a.current.getBoundingClientRect().width + u}px`; + a.current.style.width = h, + i(n, a.current.style.width), + l(-u) + } + , g = () => { + a.current && (document.removeEventListener("mousemove", d), + document.removeEventListener("mouseup", g), + document.body.style.cursor = "initial", + i(n, a.current.style.width), + l(0)) + } + ; + return e.jsx("div", { + ref: o, + onClick: c => c.stopPropagation(), + onMouseDown: s, + onDoubleClick: () => { + a.current && (a.current.style.maxWidth = "initial", + a.current.style.minWidth = "initial", + a.current.style.width = "initial", + i(n, "initial")) + } + , + className: "mantine-datatable-header-resizable-handle", + style: { + right: N(r) + } + }) +} +; +function Fs() { + return e.jsxs("svg", { + width: "14", + height: "14", + viewBox: "0 0 24 24", + strokeWidth: "2", + stroke: "currentColor", + fill: "none", + strokeLinecap: "round", + strokeLinejoin: "round", + children: [e.jsx("path", { + stroke: "none", + d: "M0 0h24v24H0z", + fill: "none" + }), e.jsx("path", { + d: "M12 5l0 14" + }), e.jsx("path", { + d: "M16 9l-4 -4" + }), e.jsx("path", { + d: "M8 9l4 -4" + })] + }) +} +function Ks() { + return e.jsxs("svg", { + width: "14", + height: "14", + viewBox: "0 0 24 24", + strokeWidth: "2", + stroke: "currentColor", + fill: "none", + strokeLinecap: "round", + strokeLinejoin: "round", + children: [e.jsx("path", { + stroke: "none", + d: "M0 0h24v24H0z", + fill: "none" + }), e.jsx("path", { + d: "M8 7l4 -4l4 4" + }), e.jsx("path", { + d: "M8 17l4 4l4 -4" + }), e.jsx("path", { + d: "M12 3l0 18" + })] + }) +} +function _s() { + return e.jsxs("svg", { + width: "14", + height: "14", + viewBox: "0 0 24 24", + strokeWidth: "2", + stroke: "currentColor", + fill: "none", + strokeLinecap: "round", + strokeLinejoin: "round", + children: [e.jsx("path", { + stroke: "none", + d: "M0 0h24v24H0z", + fill: "none" + }), e.jsx("path", { + d: "M9 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" + }), e.jsx("path", { + d: "M9 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" + }), e.jsx("path", { + d: "M9 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" + }), e.jsx("path", { + d: "M15 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" + }), e.jsx("path", { + d: "M15 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" + }), e.jsx("path", { + d: "M15 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" + })] + }) +} +function qs() { + return e.jsxs("svg", { + width: "14", + height: "14", + viewBox: "0 0 24 24", + strokeWidth: "2", + stroke: "currentColor", + fill: "none", + strokeLinecap: "round", + strokeLinejoin: "round", + children: [e.jsx("path", { + stroke: "none", + d: "M0 0h24v24H0z", + fill: "none" + }), e.jsx("path", { + d: "M18 6l-12 12" + }), e.jsx("path", { + d: "M6 6l12 12" + })] + }) +} +function Qs({className: t, style: n, accessor: a, visibleMediaQuery: o, title: r, sortable: l, draggable: i, toggleable: s, resizable: d, sortIcons: g, textAlign: c, width: u, sortStatus: h, onSortStatusChange: m, filter: b, filterPopoverProps: P, filtering: T, sortKey: p}) { + let {setSourceColumn: v, setTargetColumn: k, swapColumns: j, setColumnsToggle: x} = zt() + , [y,C] = f.useState(!1) + , S = f.useRef(null); + if (!mt(o)) + return null; + let I = r ?? Lt(a) + , w = typeof I == "string" ? I : void 0 + , M = l && m ? z => { + z != null && z.defaultPrevented || m({ + sortKey: p, + columnAccessor: a, + direction: (h == null ? void 0 : h.columnAccessor) === a ? h.direction === "asc" ? "desc" : "asc" : (h == null ? void 0 : h.direction) ?? "asc" + }) + } + : void 0 + , B = z => { + z.stopPropagation(), + v(a), + C(!1) + } + , O = z => { + z.preventDefault(), + k(a), + C(!0) + } + , te = () => { + k(a), + C(!1), + j() + } + , ne = () => { + C(!0) + } + , le = () => { + C(!1) + } + , ae = z => { + z.stopPropagation(), + x(ce => ce.map(se => se.accessor === a ? { + ...se, + toggled: !1 + } : se)) + } + ; + return e.jsxs(Qe, { + className: A({ + "mantine-datatable-header-cell-sortable": l, + "mantine-datatable-header-cell-toggleable": s, + "mantine-datatable-header-cell-resizable": d + }, t), + style: [{ + width: u, + ...d ? { + minWidth: "1px" + } : { + minWidth: u, + maxWidth: u + } + }, n], + role: l ? "button" : void 0, + tabIndex: l ? 0 : void 0, + onClick: M, + onKeyDown: z => z.key === "Enter" && (M == null ? void 0 : M()), + ref: S, + children: [e.jsxs(De, { + className: "mantine-datatable-header-cell-sortable-group", + justify: "space-between", + wrap: "nowrap", + children: [e.jsxs(E, { + align: "center", + w: "100%", + className: A({ + "mantine-datatable-header-cell-draggable": i, + "mantine-datatable-header-cell-drag-over": y + }), + draggable: i, + onDragStart: i ? B : void 0, + onDragEnter: i ? ne : void 0, + onDragOver: i ? O : void 0, + onDrop: i ? te : void 0, + onDragLeave: i ? le : void 0, + children: [i ? e.jsx(Ne, { + role: "img", + "aria-label": "Drag column", + children: e.jsx($, { + className: "mantine-datatable-header-cell-draggable-action-icon", + variant: "subtle", + size: "xs", + onClick: z => { + z.stopPropagation() + } + , + children: e.jsx(_s, {}) + }) + }) : null, e.jsx(Y, { + className: A("mantine-datatable-header-cell-sortable-text", { + [pt]: c === "left", + [ft]: c === "center", + [xt]: c === "right" + }, Ut, Ot), + title: w, + children: I + })] + }), s ? e.jsx(Ne, { + className: "mantine-datatable-header-cell-toggleable-icon", + role: "img", + "aria-label": "Toggle column", + children: e.jsx($, { + size: "xs", + variant: "light", + onClick: ae, + children: e.jsx(qs, {}) + }) + }) : null, l || (h == null ? void 0 : h.columnAccessor) === a ? e.jsx(e.Fragment, { + children: (h == null ? void 0 : h.columnAccessor) === a ? e.jsx(Ne, { + className: A("mantine-datatable-header-cell-sortable-icon", { + "mantine-datatable-header-cell-sortable-icon-reversed": h.direction === "desc" + }), + role: "img", + "aria-label": `Sorted ${h.direction === "desc" ? "descending" : "ascending"}`, + children: (g == null ? void 0 : g.sorted) || e.jsx(Fs, {}) + }) : e.jsx(Ne, { + className: "mantine-datatable-header-cell-sortable-unsorted-icon", + role: "img", + "aria-label": "Not sorted", + children: (g == null ? void 0 : g.unsorted) || e.jsx(Ks, {}) + }) + }) : null, b ? e.jsx(Vs, { + filterPopoverProps: P, + isActive: !!T, + children: b + }) : null] + }), d ? e.jsx(Hs, { + accessor: a, + columnRef: S + }) : null] + }) +} +var Xs = f.forwardRef(function({className: t, style: n, trigger: a, shadowVisible: o, checked: r, indeterminate: l, checkboxProps: i, onChange: s, rowSpan: d}, g) { + let c = !i.disabled; + return e.jsx(Qe, { + ref: g, + className: A("mantine-datatable-header-selector-cell", { + [Ae]: a === "cell" && c + }, t), + style: n, + rowSpan: d, + "data-shadow-visible": o || void 0, + onClick: a === "cell" && c ? s : void 0, + children: e.jsx(At, { + classNames: c ? { + input: Ae + } : void 0, + checked: r, + indeterminate: l, + onChange: s, + ...i, + disabled: !(s || i.onChange) || i.disabled + }) + }) +}) + , Js = f.forwardRef(function({selectionColumnHeaderRef: t, className: n, style: a, sortStatus: o, sortIcons: r, onSortStatusChange: l, columns: i, defaultColumnProps: s, groups: d, selectionTrigger: g, selectionVisible: c, selectionChecked: u, selectionIndeterminate: h, onSelectionChange: m, selectionCheckboxProps: b, selectorCellShadowVisible: P, selectionColumnClassName: T, selectionColumnStyle: p}, v) { + let k = c ? e.jsx(Xs, { + ref: t, + className: T, + style: p, + trigger: g, + shadowVisible: P, + checked: u, + indeterminate: h, + checkboxProps: b, + onChange: m, + rowSpan: d ? 2 : void 0 + }) : null + , {columnsToggle: j, setColumnsToggle: x} = zt() + , [y,C] = f.useState(!1) + , S = i.some(M => M.toggleable) + , I = S ? Object.fromEntries(i.map( ({accessor: M, title: B}) => [M, B ?? Lt(String(M))])) : void 0 + , w = e.jsxs(qa, { + className: A("mantine-datatable-header", n), + style: a, + ref: v, + onContextMenu: S ? M => { + M.preventDefault(), + C(B => !B) + } + : void 0, + children: [d && e.jsxs(we, { + children: [k, d.map(M => e.jsx(Us, { + group: M + }, M.id))] + }), e.jsxs(we, { + children: [!d && k, i.map( ({hidden: M, ...B}, O) => { + if (M) + return null; + let {accessor: te, visibleMediaQuery: ne, textAlign: le, width: ae, title: z, sortable: ce, draggable: se, toggleable: Be, resizable: We, titleClassName: ze, titleStyle: Le, filter: Ue, filterPopoverProps: me, filtering: pe, sortKey: Oe} = { + ...s, + ...B + }; + return e.jsx(Qs, { + accessor: te, + className: ze, + style: Le, + visibleMediaQuery: ne, + textAlign: le, + width: ae, + title: z, + sortable: ce, + draggable: se, + toggleable: Be, + resizable: We && O < i.length - 1, + sortStatus: o, + sortIcons: r, + sortKey: Oe, + onSortStatusChange: l, + filter: Ue, + filterPopoverProps: me, + filtering: pe + }, te) + } + )] + })] + }); + return S ? e.jsxs(bn, { + position: "bottom", + withArrow: !0, + shadow: "md", + opened: y, + onChange: C, + children: [e.jsx(Cn, { + children: w + }), e.jsx(vn, { + children: e.jsx(qe, { + children: j.filter(M => M.toggleable).map(M => e.jsx(De, { + children: e.jsx(At, { + classNames: { + label: "mantine-datatable-header-column-toggle-checkbox-label" + }, + size: "xs", + label: I[M.accessor], + checked: M.toggled, + onChange: B => { + x(j.map(O => O.accessor === M.accessor ? { + ...O, + toggled: B.currentTarget.checked + } : O)) + } + }) + }, M.accessor)) + }) + })] + }) : w +}); +function Ys({pt: t, pb: n, fetching: a, customContent: o, backgroundBlur: r, size: l, type: i, color: s}) { + return e.jsx(Ne, { + pt: t, + pb: n, + className: A("mantine-datatable-loader", { + "mantine-datatable-loader-fetching": a + }), + style: [{ + backdropFilter: r ? `blur(${r}px)` : void 0 + }], + children: a && (o || e.jsx(so, { + size: l, + type: i, + color: s + })) + }) +} +function L(t, n, a) { + return t ? to({ + color: typeof t == "object" ? t[a] : t, + theme: n + }).value : void 0 +} +function Gs({theme: t, c: n, backgroundColor: a, borderColor: o, rowBorderColor: r, stripedColor: l, highlightOnHoverColor: i}) { + return { + "--mantine-datatable-color-light": L(n, t, "light"), + "--mantine-datatable-color-dark": L(n, t, "dark"), + "--mantine-datatable-background-color-light": L(a, t, "light"), + "--mantine-datatable-background-color-dark": L(a, t, "dark"), + "--mantine-datatable-border-color-light": L(o, t, "light"), + "--mantine-datatable-border-color-dark": L(o, t, "dark"), + "--mantine-datatable-row-border-color-light": L(r, t, "light"), + "--mantine-datatable-row-border-color-dark": L(r, t, "dark"), + "--mantine-datatable-striped-color-light": L(l, t, "light"), + "--mantine-datatable-striped-color-dark": L(l, t, "dark"), + "--mantine-datatable-highlight-on-hover-color-light": L(i, t, "light"), + "--mantine-datatable-highlight-on-hover-color-dark": L(i, t, "dark") + } +} +function Tn({theme: t, paginationActiveTextColor: n, paginationActiveBackgroundColor: a}) { + return { + "--mantine-datatable-pagination-active-text-color-light": L(n, t, "light"), + "--mantine-datatable-pagination-active-text-color-dark": L(n, t, "dark"), + "--mantine-datatable-pagination-active-background-color-light": L(a, t, "light"), + "--mantine-datatable-pagination-active-background-color-dark": L(a, t, "dark") + } +} +function Zs({theme: t, color: n, backgroundColor: a}) { + return { + "--mantine-datatable-row-color-light": L(n, t, "light"), + "--mantine-datatable-row-color-dark": L(n, t, "dark"), + "--mantine-datatable-row-background-color-light": L(a, t, "light"), + "--mantine-datatable-row-background-color-dark": L(a, t, "dark") + } +} +function er() { + return e.jsxs("svg", { + width: "14", + height: "14", + viewBox: "0 0 24 24", + strokeWidth: "2", + stroke: "currentColor", + fill: "none", + strokeLinecap: "round", + strokeLinejoin: "round", + children: [e.jsx("path", { + stroke: "none", + d: "M0 0h24v24H0z", + fill: "none" + }), e.jsx("path", { + d: "M8 9l4 -4l4 4" + }), e.jsx("path", { + d: "M16 15l-4 4l-4 -4" + })] + }) +} +var rn = { + xs: N(22), + sm: N(26), + md: N(32), + lg: N(38), + xl: N(44) +}; +function tr({size: t, label: n, values: a, value: o, activeTextColor: r, activeBackgroundColor: l, onChange: i}) { + return e.jsxs(De, { + gap: "xs", + children: [e.jsx(Q, { + component: "div", + size: t, + children: n + }), e.jsxs(Xa, { + withinPortal: !0, + withArrow: !0, + classNames: { + arrow: "mantine-datatable-page-size-selector-menu-arrow" + }, + children: [e.jsx(Ja, { + children: e.jsx(Z, { + size: t, + variant: "default", + classNames: { + section: "mantine-datatable-page-size-selector-button-icon" + }, + rightSection: e.jsx(er, {}), + style: [{ + fontWeight: "normal" + }, s => ({ + height: rn[t], + paddingLeft: s.spacing[t], + paddingRight: s.spacing[t] + })], + children: o + }) + }), e.jsx(Ya, { + children: a.map(s => { + let d = s === o; + return e.jsx(Ga, { + className: A({ + "mantine-datatable-page-size-selector-active": d + }), + style: [{ + height: rn[t] + }, d && (r || l) ? g => Tn({ + theme: g, + paginationActiveTextColor: r, + paginationActiveBackgroundColor: l + }) : void 0], + disabled: d, + onClick: () => i(s), + children: e.jsx(Q, { + component: "div", + size: t, + children: s + }) + }, s) + } + ) + })] + })] + }) +} +var nr = f.forwardRef(function({className: t, style: n, fetching: a, page: o, onPageChange: r, paginationWithEdges: l, paginationWithControls: i, paginationActiveTextColor: s, paginationActiveBackgroundColor: d, paginationSize: g, loadingText: c, noRecordsText: u, paginationText: h, totalRecords: m, recordsPerPage: b, onRecordsPerPageChange: P, recordsPerPageLabel: T, recordsPerPageOptions: p, recordsLength: v, horizontalSpacing: k, paginationWrapBreakpoint: j, getPaginationControlProps: x}, y) { + let C; + if (m) { + let I = (o - 1) * b + 1 + , w = I + (v || 0) - 1; + C = h({ + from: I, + to: w, + totalRecords: m + }) + } else + C = a ? c : u; + let S = mt( ({breakpoints: I}) => `(min-width: ${typeof j == "number" ? `${N(j)}rem` : I[j] || j})`); + return e.jsxs(Y, { + ref: y, + px: k ?? "xs", + py: "xs", + className: A("mantine-datatable-pagination", t), + style: [{ + flexDirection: S ? "row" : "column" + }, n], + children: [e.jsx(Q, { + component: "div", + className: "mantine-datatable-pagination-text", + size: g, + children: C + }), p && e.jsx(tr, { + activeTextColor: s, + activeBackgroundColor: d, + size: g, + label: T, + values: p, + value: b, + onChange: P + }), e.jsx(ht, { + classNames: { + root: A("mantine-datatable-pagination-pages", { + "mantine-datatable-pagination-pages-fetching": a || !v + }), + control: "mantine-datatable-pagination-pages-control" + }, + style: s || d ? I => Tn({ + theme: I, + paginationActiveTextColor: s, + paginationActiveBackgroundColor: d + }) : void 0, + withEdges: l, + withControls: i, + value: o, + onChange: r, + size: g, + total: Math.ceil(m / b), + getControlProps: x + })] + }) +}); +function ar({className: t, style: n, visibleMediaQuery: a, record: o, index: r, onClick: l, onDoubleClick: i, onContextMenu: s, noWrap: d, ellipsis: g, textAlign: c, width: u, accessor: h, render: m, defaultRender: b, customCellAttributes: P}) { + return mt(a) ? e.jsx(Bt, { + className: A({ + [Ut]: d || g, + [Ot]: g, + [Ae]: l || i, + [Pn]: s, + [pt]: c === "left", + [ft]: c === "center", + [xt]: c === "right" + }, t), + style: [{ + width: u, + minWidth: u, + maxWidth: u + }, n], + onClick: l, + onDoubleClick: i, + onContextMenu: s, + ...P == null ? void 0 : P(o, r), + children: m ? m(o, r) : b ? b(o, r, h) : Sn(o, h) + }) : null +} +function or({open: t, colSpan: n, content: a, collapseProps: o}) { + let {expanded: r, visible: l} = As(t, o == null ? void 0 : o.transitionDuration); + return l ? e.jsxs(e.Fragment, { + children: [e.jsx(we, {}), e.jsx(we, { + children: e.jsx(Bt, { + className: "mantine-datatable-row-expansion-cell", + colSpan: n, + children: e.jsx(io, { + in: r, + ...o, + children: e.jsx("div", { + className: "mantine-datatable-row-expansion-cell-content", + children: a() + }) + }) + }) + })] + }) : null +} +function sr({className: t, style: n, record: a, index: o, trigger: r, onChange: l, withRightShadow: i, checkboxProps: s, getCheckboxProps: d, ...g}) { + let c = { + ...s, + ...d(a, o) + } + , u = !g.disabled && !c.disabled + , h = m => { + m.stopPropagation(), + r === "cell" && u && (l == null || l(m)) + } + ; + return e.jsx(Bt, { + className: A("mantine-datatable-row-selector-cell", { + [Ae]: r === "cell" && u + }, t), + style: n, + "data-shadow-visible": i || void 0, + onClick: h, + children: e.jsx(At, { + classNames: u ? { + input: Ae + } : void 0, + onChange: l, + ...g, + ...c + }) + }) +} +function rr({record: t, index: n, columns: a, defaultColumnProps: o, defaultColumnRender: r, selectionTrigger: l, selectionVisible: i, selectionChecked: s, onSelectionChange: d, isRecordSelectable: g, selectionCheckboxProps: c, getSelectionCheckboxProps: u, onClick: h, onDoubleClick: m, onContextMenu: b, onCellClick: P, onCellDoubleClick: T, onCellContextMenu: p, expansion: v, customAttributes: k, color: j, backgroundColor: x, className: y, style: C, selectorCellShadowVisible: S, selectionColumnClassName: I, selectionColumnStyle: w, rowFactory: M}) { + let B = e.jsxs(e.Fragment, { + children: [i && e.jsx(sr, { + className: I, + style: w, + record: t, + index: n, + trigger: l, + withRightShadow: S, + checked: s, + disabled: !d || (g ? !g(t, n) : !1), + onChange: d, + checkboxProps: c, + getCheckboxProps: u + }), a.map( ({hidden: ne, hiddenContent: le, ...ae}, z) => { + if (ne || le) + return null; + let {accessor: ce, visibleMediaQuery: se, textAlign: Be, noWrap: We, ellipsis: ze, width: Le, render: Ue, cellsClassName: me, cellsStyle: pe, customCellAttributes: Oe} = { + ...o, + ...ae + }; + return e.jsx(ar, { + className: typeof me == "function" ? me(t, n) : me, + style: pe == null ? void 0 : pe(t, n), + visibleMediaQuery: se, + record: t, + index: n, + onClick: P ? fe => P({ + event: fe, + record: t, + index: n, + column: ae, + columnIndex: z + }) : void 0, + onDoubleClick: T ? fe => T({ + event: fe, + record: t, + index: n, + column: ae, + columnIndex: z + }) : void 0, + onContextMenu: p ? fe => p({ + event: fe, + record: t, + index: n, + column: ae, + columnIndex: z + }) : void 0, + accessor: ce, + textAlign: Be, + noWrap: We, + ellipsis: ze, + width: Le, + render: Ue, + defaultRender: r, + customCellAttributes: Oe + }, ce) + } + )] + }) + , O = v && e.jsx(or, { + colSpan: a.filter( ({hidden: ne}) => !ne).length + (i ? 1 : 0), + open: v.isRowExpanded(t), + content: v.content({ + record: t, + index: n + }), + collapseProps: v.collapseProps + }) + , te = ir({ + record: t, + index: n, + selectionChecked: s, + onClick: h, + onDoubleClick: m, + onContextMenu: b, + expansion: v, + customAttributes: k, + color: j, + backgroundColor: x, + className: y, + style: C + }); + return M ? M({ + record: t, + index: n, + rowProps: te, + children: B, + expandedElement: O + }) : e.jsxs(e.Fragment, { + children: [e.jsx(we, { + ...te, + children: B + }), O] + }) +} +function ir({record: t, index: n, selectionChecked: a, onClick: o, onDoubleClick: r, onContextMenu: l, expansion: i, customAttributes: s, color: d, backgroundColor: g, className: c, style: u}) { + return { + className: A("mantine-datatable-row", { + [Ae]: o || r || (i == null ? void 0 : i.isExpandable({ + record: t, + index: n + })) && (i == null ? void 0 : i.expandOnClick) + }, { + [Pn]: l + }, typeof c == "function" ? c(t, n) : c), + "data-selected": a || void 0, + onClick: h => { + if (i) { + let {isExpandable: m, isRowExpanded: b, expandOnClick: P, expandRow: T, collapseRow: p} = i; + m({ + record: t, + index: n + }) && P && (b(t) ? p(t) : T(t)) + } + o == null || o({ + event: h, + record: t, + index: n + }) + } + , + onDoubleClick: r ? h => r({ + event: h, + record: t, + index: n + }) : void 0, + onContextMenu: l ? h => l({ + event: h, + record: t, + index: n + }) : void 0, + style: [d || g ? h => { + let m = d == null ? void 0 : d(t, n) + , b = g == null ? void 0 : g(t, n); + return Zs({ + theme: h, + color: m, + backgroundColor: b + }) + } + : void 0, u == null ? void 0 : u(t, n)], + ...(s == null ? void 0 : s(t, n)) ?? {} + } +} +function lr({topShadowVisible: t, leftShadowVisible: n, leftShadowBehind: a, rightShadowVisible: o, rightShadowBehind: r, bottomShadowVisible: l, headerHeight: i, footerHeight: s, onScrollPositionChange: d, children: g, viewportRef: c, scrollAreaProps: u}) { + return e.jsxs(ro, { + ...u, + viewportRef: c, + classNames: { + root: "mantine-datatable-scroll-area", + scrollbar: "mantine-datatable-scroll-area-scrollbar", + thumb: "mantine-datatable-scroll-area-thumb", + corner: "mantine-datatable-scroll-area-corner" + }, + onScrollPositionChange: d, + children: [g, e.jsx(Y, { + className: A("mantine-datatable-scroll-area-shadow", "mantine-datatable-scroll-area-top-shadow", { + "mantine-datatable-scroll-area-shadow-visible": t + }), + style: { + top: i ? N(i) : 0 + } + }), e.jsx("div", { + className: A("mantine-datatable-scroll-area-shadow", "mantine-datatable-scroll-area-left-shadow", { + "mantine-datatable-scroll-area-shadow-visible": n, + "mantine-datatable-scroll-area-shadow-behind": a + }) + }), e.jsx("div", { + className: A("mantine-datatable-scroll-area-shadow", "mantine-datatable-scroll-area-right-shadow", { + "mantine-datatable-scroll-area-shadow-visible": o, + "mantine-datatable-scroll-area-shadow-behind": r + }) + }), e.jsx(Y, { + className: A("mantine-datatable-scroll-area-shadow", "mantine-datatable-scroll-area-bottom-shadow", { + "mantine-datatable-scroll-area-shadow-visible": l + }), + style: { + bottom: s ? N(s + 1) : 0 + } + })] + }) +} +function dt({withTableBorder: t, borderRadius: n, textSelectionDisabled: a, height: o="100%", minHeight: r, maxHeight: l, shadow: i, verticalAlign: s="center", fetching: d, columns: g, storeColumnsKey: c, groups: u, pinFirstColumn: h, pinLastColumn: m, defaultColumnProps: b, defaultColumnRender: P, idAccessor: T="id", records: p, selectionTrigger: v="checkbox", selectedRecords: k, onSelectedRecordsChange: j, selectionColumnClassName: x, selectionColumnStyle: y, isRecordSelectable: C, selectionCheckboxProps: S, allRecordsSelectionCheckboxProps: I={ + "aria-label": "Select all records" +}, getRecordSelectionCheckboxProps: w= (G, xe) => ({ + "aria-label": `Select record ${xe + 1}` +}), sortStatus: M, sortIcons: B, onSortStatusChange: O, horizontalSpacing: te, page: ne, onPageChange: le, totalRecords: ae, recordsPerPage: z, onRecordsPerPageChange: ce, recordsPerPageOptions: se, recordsPerPageLabel: Be="Records per page", paginationWithEdges: We, paginationWithControls: ze, paginationActiveTextColor: Le, paginationActiveBackgroundColor: Ue, paginationSize: me="sm", paginationText: pe= ({from: G, to: xe, totalRecords: be}) => `${G} - ${xe} / ${be}`, paginationWrapBreakpoint: Oe="sm", getPaginationControlProps: fe=G => G === "previous" ? { + "aria-label": "Previous page" +} : G === "next" ? { + "aria-label": "Next page" +} : {}, loaderBackgroundBlur: Nn, customLoader: En, loaderSize: Dn, loaderType: An, loaderColor: Bn, loadingText: Wn="...", emptyState: zn, noRecordsText: $t="No records", noRecordsIcon: Ln, highlightOnHover: Un, striped: On, noHeader: $n, onRowClick: Vn, onRowDoubleClick: Hn, onRowContextMenu: Fn, onCellClick: Kn, onCellDoubleClick: _n, onCellContextMenu: qn, onScroll: Xe, onScrollToTop: Je, onScrollToBottom: Ye, onScrollToLeft: Ge, onScrollToRight: Ze, c: Qn, backgroundColor: Xn, borderColor: Jn, rowBorderColor: Yn, stripedColor: Gn, highlightOnHoverColor: Zn, rowColor: ea, rowBackgroundColor: ta, rowExpansion: na, rowClassName: aa, rowStyle: oa, customRowAttributes: sa, scrollViewportRef: ra, scrollAreaProps: ia, tableRef: la, bodyRef: ca, m: da, my: ua, mx: ha, mt: ga, mb: ma, ml: pa, mr: fa, className: xa, classNames: V, style: ba, styles: H, rowFactory: Ca, tableWrapper: Ct, ...Vt}) { + let {ref: G, width: xe, height: be} = Ie() + , $e = f.useMemo( () => (u == null ? void 0 : u.flatMap(R => R.columns)) ?? g, [g, u]) + , Ht = Ss({ + key: c, + columns: $e + }) + , {ref: va, height: vt} = Ie() + , {ref: ja, width: jt, height: Ve} = Ie() + , {ref: ka, height: ya} = Ie() + , {ref: wa, height: Ft} = Ie() + , {ref: Sa, width: Pa} = Ie() + , Ta = Nt(ja, la) + , Ma = Nt(G, ra) + , [kt,Kt] = f.useState(!0) + , [yt,_t] = f.useState(!0) + , [He,qt] = f.useState(!0) + , [et,Qt] = f.useState(!0) + , Ia = Ds({ + rowExpansion: na, + records: p, + idAccessor: T + }) + , wt = f.useCallback( () => { + var Pe, Te; + let R = ((Pe = G.current) == null ? void 0 : Pe.scrollTop) ?? 0 + , ee = ((Te = G.current) == null ? void 0 : Te.scrollLeft) ?? 0; + if (d || Ve <= be) + Kt(!0), + _t(!0); + else { + let oe = R === 0 + , re = Ve - R - be < 1; + Kt(oe), + _t(re), + oe && oe !== kt && (Je == null || Je()), + re && re !== yt && (Ye == null || Ye()) + } + if (d || jt === xe) + qt(!0), + Qt(!0); + else { + let oe = ee === 0 + , re = jt - ee - xe < 1; + qt(oe), + Qt(re), + oe && oe !== He && (Ge == null || Ge()), + re && re !== et && (Ze == null || Ze()) + } + } + , [d, Ye, Ge, Ze, Je, be, G, xe, yt, He, et, kt, Ve, jt]); + Ps(wt, [wt]); + let Xt = no(wt, 50) + , Ra = f.useCallback(R => { + Xe == null || Xe(R), + Xt() + } + , [Xt, Xe]) + , Na = f.useCallback(R => { + var ee; + (ee = G.current) == null || ee.scrollTo({ + top: 0, + left: 0 + }), + le(R) + } + , [le, G]) + , tt = p == null ? void 0 : p.length + , Jt = p == null ? void 0 : p.map(R => F(R, T)) + , Se = !!k + , Ce = k == null ? void 0 : k.map(R => F(R, T)) + , Yt = Jt !== void 0 && Ce !== void 0 && Ce.length > 0 + , Fe = C ? p == null ? void 0 : p.filter(C) : p + , nt = Fe == null ? void 0 : Fe.map(R => F(R, T)) + , at = Yt && nt.every(R => Ce.includes(R)) + , Ea = Yt && nt.some(R => Ce.includes(R)) + , Da = f.useCallback( () => { + k && j && j(at ? k.filter(R => !nt.includes(F(R, T))) : Tt([...k, ...Fe], R => F(R, T))) + } + , [at, T, j, nt, Fe, k]) + , {lastSelectionChangeIndex: ot, setLastSelectionChangeIndex: Aa} = Ts(Jt) + , St = Se && !He && !h + , Ba = { + m: da, + my: ua, + mx: ha, + mt: ga, + mb: ma, + ml: pa, + mr: fa + } + , Wa = f.useCallback( ({children: R}) => Ct ? Ct({ + children: R + }) : R, [Ct]); + return e.jsx(sn, { + ...Ht, + children: e.jsxs(Y, { + ...Ba, + className: A("mantine-datatable", { + "mantine-datatable-with-border": t + }, xa, V == null ? void 0 : V.root), + style: [R => ({ + ...Gs({ + theme: R, + c: Qn, + backgroundColor: Xn, + borderColor: Jn, + rowBorderColor: Yn, + stripedColor: Gn, + highlightOnHoverColor: Zn + }), + borderRadius: R.radius[n] || n, + boxShadow: R.shadows[i] || i, + height: o, + minHeight: r, + maxHeight: l + }), ba, H == null ? void 0 : H.root, { + position: "relative" + }], + children: [e.jsx(lr, { + viewportRef: Ma, + topShadowVisible: !kt, + leftShadowVisible: !He, + leftShadowBehind: Se || !!h, + rightShadowVisible: !et, + rightShadowBehind: m, + bottomShadowVisible: !yt, + headerHeight: vt, + footerHeight: ya, + onScrollPositionChange: Ra, + scrollAreaProps: ia, + children: e.jsx(Wa, { + children: e.jsxs(ao, { + ref: Ta, + horizontalSpacing: te, + className: A("mantine-datatable-table", { + [Bs]: a, + "mantine-datatable-vertical-align-top": s === "top", + "mantine-datatable-vertical-align-bottom": s === "bottom", + "mantine-datatable-last-row-border-bottom-visible": Vt.withRowBorders && Ve < be, + "mantine-datatable-pin-last-column": m, + "mantine-datatable-pin-last-column-scrolled": !et && m, + "mantine-datatable-selection-column-visible": Se, + "mantine-datatable-pin-first-column": h, + "mantine-datatable-pin-first-column-scrolled": !He && h + }, V == null ? void 0 : V.table), + style: { + ...H == null ? void 0 : H.table, + "--mantine-datatable-selection-column-width": `${Pa}px` + }, + "data-striped": tt && On || void 0, + "data-highlight-on-hover": Un || void 0, + ...Vt, + children: [$n ? null : e.jsx(sn, { + ...Ht, + children: e.jsx(Js, { + ref: va, + selectionColumnHeaderRef: Sa, + className: V == null ? void 0 : V.header, + style: H == null ? void 0 : H.header, + columns: $e, + defaultColumnProps: b, + groups: u, + sortStatus: M, + sortIcons: B, + onSortStatusChange: O, + selectionTrigger: v, + selectionVisible: Se, + selectionChecked: at, + selectionIndeterminate: Ea && !at, + onSelectionChange: Da, + selectionCheckboxProps: { + ...S, + ...I + }, + selectorCellShadowVisible: St, + selectionColumnClassName: x, + selectionColumnStyle: y + }) + }), e.jsx("tbody", { + ref: ca, + children: tt ? p.map( (R, ee) => { + let Pe = F(R, T), Te = (Ce == null ? void 0 : Ce.includes(Pe)) || !1, oe; + return j && k && (oe = re => { + if (re.nativeEvent.shiftKey && ot !== null) { + let Me = p.filter(ee > ot ? (ve, je) => je >= ot && je <= ee && (C ? C(ve, je) : !0) : (ve, je) => je >= ee && je <= ot && (C ? C(ve, je) : !0)); + j(Te ? Es(k, Me, ve => F(ve, T)) : Tt([...k, ...Me], ve => F(ve, T))) + } else + j(Te ? k.filter(Me => F(Me, T) !== Pe) : Tt([...k, R], Me => F(Me, T))); + Aa(ee) + } + ), + e.jsx(rr, { + record: R, + index: ee, + columns: $e, + defaultColumnProps: b, + defaultColumnRender: P, + selectionTrigger: v, + selectionVisible: Se, + selectionChecked: Te, + onSelectionChange: oe, + isRecordSelectable: C, + selectionCheckboxProps: S, + getSelectionCheckboxProps: w, + onClick: Vn, + onDoubleClick: Hn, + onCellClick: Kn, + onCellDoubleClick: _n, + onContextMenu: Fn, + onCellContextMenu: qn, + expansion: Ia, + color: ea, + backgroundColor: ta, + className: aa, + style: oa, + customAttributes: sa, + selectorCellShadowVisible: St, + selectionColumnClassName: x, + selectionColumnStyle: y, + idAccessor: T, + rowFactory: Ca + }, Pe) + } + ) : e.jsx(ks, {}) + }), $e.some( ({footer: R}) => R) && e.jsx(Ls, { + ref: ka, + className: V == null ? void 0 : V.footer, + style: H == null ? void 0 : H.footer, + columns: $e, + defaultColumnProps: b, + selectionVisible: Se, + selectorCellShadowVisible: St, + scrollDiff: Ve - be + })] + }) + }) + }), ne && e.jsx(nr, { + ref: wa, + className: V == null ? void 0 : V.pagination, + style: H == null ? void 0 : H.pagination, + horizontalSpacing: te, + fetching: d, + page: ne, + onPageChange: Na, + totalRecords: ae, + recordsPerPage: z, + onRecordsPerPageChange: ce, + recordsPerPageOptions: se, + recordsPerPageLabel: Be, + paginationWithEdges: We, + paginationWithControls: ze, + paginationActiveTextColor: Le, + paginationActiveBackgroundColor: Ue, + paginationSize: me, + paginationText: pe, + paginationWrapBreakpoint: Oe, + getPaginationControlProps: fe, + noRecordsText: $t, + loadingText: Wn, + recordsLength: tt + }), e.jsx(Ys, { + pt: vt, + pb: Ft, + fetching: d, + backgroundBlur: Nn, + customContent: En, + size: Dn, + type: An, + color: Bn + }), e.jsx(ws, { + pt: vt, + pb: Ft, + icon: Ln, + text: $t, + active: !d && !tt, + children: zn + })] + }) + }) +} +var cr = f.forwardRef(function({children: t, isDragging: n, ...a}, o) { + let r = f.useRef(null) + , l = Nt(r, o); + return f.useEffect( () => { + if (!r.current || !n) + return; + let i = r.current.parentElement.parentElement.children[0].children[0]; + for (let s = 0; s < i.children.length; s++) { + let d = i.children[s].getBoundingClientRect() + , g = r.current.children[s]; + g.style.height = d.height + "px", + g.style.width = d.width + "px", + g.style.minWidth = d.width + "px", + g.style.maxWidth = d.width + "px" + } + } + , [n, t]), + e.jsx(we, { + "data-is-dragging": n, + ref: l, + ...a, + children: t + }) +}); +cr.displayName = "DataTableDraggableRow"; +const dr = "_icon_1t3nk_1" + , ur = "_expandIcon_1t3nk_8" + , hr = "_expandIconRotated_1t3nk_12" + , gr = "_usersTableBorder_1t3nk_16" + , J = { + icon: dr, + expandIcon: ur, + expandIconRotated: hr, + usersTableBorder: gr +} + , Mn = ({element: t, isSection: n, level: a=1}) => { + const {onCreateDepartmentClick: o, onUpdateDepartmentClick: r, onDeleteDepartmentClick: l, onAddUserClick: i} = gt() + , s = (g, c, u) => e.jsx(q, { + label: g, + children: e.jsx($, { + variant: "default", + onClick: h => { + h.stopPropagation(), + c() + } + , + children: u + }) + }, g) + , d = [n && s("Добавить пользователя в отдел", () => i(t), e.jsx(Eo, {})), a < 9 && s("Добавить отдел", () => o(!0, { + departmentId: n ? null : t.id, + parentDepartmentSectionId: n ? t.id : null, + name: "" + }), e.jsx(Io, {})), s("Редактировать", () => r(t, n), e.jsx(ut, {})), s("Удалить", () => l(t, n), e.jsx(ge, {}))]; + return e.jsxs(E, { + gap: "md", + mx: "md", + direction: "row", + children: [...d] + }) +} + , mr = ({sectionId: t}) => { + const {fetchDepartments: n} = gt() + , a = o => { + de.deleteUser({ + requestBody: { + sectionId: t, + userId: o + } + }).then( ({ok: r, message: l}) => { + n(), + !r && D.error({ + message: l + }) + } + ).catch(r => console.log(r)) + } + ; + return [{ + title: "ФИО", + accessor: "user.secondName", + render: o => e.jsx(Y, { + component: "span", + children: e.jsxs("span", { + children: [o.user.secondName, " ", o.user.firstName, " ", o.user.patronymic] + }) + }) + }, { + accessor: "user.role.name", + title: "Роль" + }, { + accessor: "user.position.name", + title: "Должность" + }, { + accessor: "user.comment", + title: "Доп. информация" + }, { + accessor: "isChief", + title: "Является руководителем", + render: o => o.isChief ? e.jsx(lt, {}) : e.jsx(Mt, {}) + }, { + accessor: "actions", + title: "", + width: "0%", + render: o => e.jsx(E, { + gap: "md", + mx: "md", + children: e.jsx(q, { + label: "Удалить", + children: e.jsx($, { + onClick: () => a(o.user.id), + variant: "default", + children: e.jsx(ge, {}) + }) + }) + }) + }] +} + , pr = ({users: t, sectionId: n, level: a}) => { + const o = mr({ + sectionId: n + }) + , [r,l] = f.useState([1]) + , i = [{ + id: 1, + title: "Пользователи" + }]; + return e.jsx(dt, { + noHeader: !0, + withColumnBorders: !0, + className: A(J.usersTableBorder), + columns: [{ + accessor: "title", + noWrap: !0, + render: ({id: s, title: d}) => e.jsxs(Y, { + component: "span", + ml: 20 * a, + children: [e.jsx(Wt, { + className: A(J.icon, J.expandIcon, { + [J.expandIconRotated]: r.includes(s) + }) + }), e.jsx(Do, { + className: J.icon + }), e.jsx("span", { + children: d + })] + }) + }], + records: i, + rowExpansion: { + allowMultiple: !0, + expanded: { + recordIds: r, + onRecordIdsChange: l + }, + content: () => e.jsx(Y, { + pl: 20 * (a + 2.5), + children: e.jsx(dt, { + withTableBorder: !0, + withColumnBorders: !0, + columns: o, + records: t + }) + }) + } + }) +} + , In = ({parentItem: t, level: n}) => { + var r, l; + const [a,o] = f.useState(((r = t.sections) == null ? void 0 : r.map(i => i.id)) ?? []); + return e.jsx(dt, { + noHeader: !0, + columns: [{ + accessor: "name", + noWrap: !0, + render: ({id: i, name: s}) => e.jsxs(Y, { + component: "span", + ml: 20 * n, + children: [e.jsx(Wt, { + className: A(J.icon, J.expandIcon, { + [J.expandIconRotated]: a.includes(i) + }) + }), e.jsx(jo, { + className: J.icon + }), e.jsx("span", { + children: s + })] + }) + }, { + accessor: "actions", + title: "", + width: "0%", + render: i => e.jsx(Mn, { + element: i, + isSection: !0, + level: n + }) + }], + records: (l = t.sections) == null ? void 0 : l.sort( (i, s) => i.id - s.id), + rowExpansion: { + allowMultiple: !0, + expanded: { + recordIds: a, + onRecordIdsChange: o + }, + content: ({record: i}) => e.jsxs(qe, { + gap: 0, + children: [i.users && i.users.length > 0 && e.jsx(pr, { + sectionId: i.id, + users: i.users, + level: n + 1 + }, `1 ${i.id}`), i.sections && i.sections.length > 0 && e.jsx(In, { + parentItem: i, + level: n + 1 + }, `2 ${i.id}`)] + }) + } + }) +} + , fr = () => { + const {departments: t} = gt() + , [n,a] = f.useState([]); + let o = !0; + return f.useEffect( () => { + o && t && (o = !1, + a(t.map(r => r.id))) + } + , [t]), + e.jsx(dt, { + noHeader: !0, + withTableBorder: !0, + columns: [{ + accessor: "name", + title: "Департамент", + noWrap: !0, + render: ({id: r, name: l}) => e.jsxs(e.Fragment, { + children: [e.jsx(Wt, { + className: A(J.icon, J.expandIcon, { + [J.expandIconRotated]: n == null ? void 0 : n.includes(r) + }) + }), e.jsx(ko, { + className: J.icon + }), e.jsx("span", { + children: l + })] + }) + }, { + accessor: "actions", + title: "", + width: "0%", + render: r => e.jsx(Mn, { + element: r, + isSection: !1 + }) + }], + records: t.sort( (r, l) => r.id - l.id), + rowExpansion: { + allowMultiple: !0, + expanded: { + recordIds: n, + onRecordIdsChange: a + }, + content: ({record: r}) => e.jsx(In, { + parentItem: r, + level: 1 + }) + } + }) +} + , xr = () => { + const {onCreateDepartmentClick: t} = gt(); + return e.jsx(De, { + gap: "md", + children: e.jsx(Z, { + variant: "default", + onClick: () => t(!1), + children: e.jsxs(De, { + gap: N(10), + children: [e.jsx(lo, {}), "Добавить департамент"] + }) + }) + }) +} + , br = () => e.jsx(vs, { + children: e.jsxs(qe, { + mt: "md", + children: [e.jsx(xr, {}), e.jsx(fr, {})] + }) +}) + , Cr = () => e.jsxs(W, { + keepMounted: !1, + defaultValue: "departments", + color: "gray.6", + children: [e.jsxs(W.List, { + justify: "center", + grow: !0, + children: [e.jsx(W.Tab, { + value: "departments", + leftSection: e.jsx(Ro, {}), + children: "Департаменты и отделы" + }), e.jsx(W.Tab, { + value: "positions", + leftSection: e.jsx(vo, {}), + children: "Должности" + })] + }), e.jsx(W.Panel, { + value: "departments", + children: e.jsx(_e.div, { + initial: { + opacity: 0 + }, + animate: { + opacity: 1 + }, + transition: { + duration: .2 + }, + children: e.jsx(br, {}) + }) + }), e.jsx(W.Panel, { + value: "positions", + children: e.jsx(_e.div, { + initial: { + opacity: 0 + }, + animate: { + opacity: 1 + }, + transition: { + duration: .2 + }, + children: e.jsx(fs, {}) + }) + })] +}) + , vr = 14 + , ln = t => { + const n = t ?? new Date; + return n.setDate(n.getDate() + vr), + n +} + , Rn = f.createContext(void 0) + , jr = () => { + const [t,n] = it([]) + , [a,o] = it([]) + , [r,l] = f.useState([new Date, ln()]) + , {objects: i} = Et() + , [s,d] = it([]) + , g = new Map(i.map(p => [p.id, p.position ? [p.position] : []])) + , c = (p, v) => { + d.setState(p), + v || (v = t), + o.setState(v.filter(k => p.findIndex(j => j.id === k.user.id) !== -1)) + } + , u = p => { + c(p) + } + , h = p => { + const v = []; + p.forEach(j => { + const x = { + user: j.user, + ...Object.fromEntries(j.shifts.reduce( (y, C) => y.set(ke(new Date(C.shiftDate)) ?? "", C.positions), new Map)) + }; + v.push(x) + } + ), + n.setState(v); + let k = s; + k.length === 0 && (k = v.map(j => j.user)), + i.forEach(j => { + v.findIndex(x => x.user.id === j.id) === -1 && v.push({ + user: j + }) + } + ), + v.sort( (j, x) => j.user.id - x.user.id), + c(k, v) + } + , m = () => { + const p = ke(r[0]) + , v = ke(r[1]); + p && v && nn.getWorkShifts({ + requestBody: { + dateFrom: p, + dateTo: v + } + }).then(k => { + h(k.shifts) + } + ).catch(k => console.log(k)) + } + , b = (p, v, k) => { + const j = ke(v); + j && nn.updateWorkShift({ + requestBody: { + userId: p, + shiftDate: j, + positionKeys: k + } + }).then( ({ok: x, message: y}) => { + x || D.error({ + message: y + }), + m() + } + ).catch(x => console.log(x)) + } + ; + f.useEffect( () => { + m() + } + , [r]); + const T = ( () => { + const p = r[0]; + if (!p) + return []; + const v = r[1] ?? ln(new Date(p)); + return It(p, v).map(j => j.toDate()) + } + )(); + return { + dateRange: r, + setDateRange: l, + tableRows: a, + onUpdate: b, + users: i, + shownUsers: s, + setShownUsers: u, + userPositions: g, + range: T + } +} + , kr = ({children: t}) => { + const n = jr(); + return e.jsx(Rn.Provider, { + value: n, + children: t + }) +} + , bt = () => { + const t = f.useContext(Rn); + if (!t) + throw new Error("useWorkShiftsPlanningContext must be used within a WorkShiftsPlanningContextProvider"); + return t +} + , yr = ({date: t, positions: n, user: a}) => { + var l; + const {onUpdate: o, userPositions: r} = bt(); + return e.jsx(Dt, { + data: (l = r.get(a.id)) == null ? void 0 : l.map(i => ({ + value: i.key, + label: i.name + })), + onChange: i => { + o(a.id, t, i) + } + , + value: (n == null ? void 0 : n.map(i => i.key)) ?? [], + miw: N(140) + }) +} + , wr = () => { + const {range: t} = bt(); + return f.useMemo( () => [{ + accessorKey: "name", + header: "ФИО", + Cell: ({row: n}) => e.jsx(E, { + direction: "column", + children: e.jsxs(Q, { + size: "sm", + children: [n.original.user.firstName, " ", n.original.user.secondName] + }) + }) + }, ...t.map(n => ({ + size: 100, + accessorKey: ke(n) ?? "", + header: ke(n) ?? "", + enableSorting: !1, + enableColumnActions: !1, + Header: e.jsxs(E, { + direction: "column", + children: [e.jsx(Y, { + children: n.toLocaleString("ru").substring(0, 10) + }), e.jsx(Y, { + children: gn(n.getDay()) + })] + }), + Cell: ({cell: a}) => e.jsx(E, { + direction: "column", + children: e.jsx(yr, { + date: n, + positions: a.getValue(), + user: a.row.original.user + }) + }) + }))], [t]) +} + , Sr = () => { + const {tableRows: t, shownUsers: n, setShownUsers: a} = bt() + , o = wr(); + return e.jsx(he, { + data: t, + columns: o, + restProps: { + enableColumnActions: !1, + enableSorting: !1, + enableRowActions: !0, + renderRowActions: ({row: r}) => e.jsx(E, { + gap: "md", + children: e.jsx(q, { + label: "Скрыть", + children: e.jsx($, { + onClick: () => { + a(n.filter(l => l.id !== r.original.user.id)) + } + , + variant: "default", + children: e.jsx(pn, {}) + }) + }) + }) + } + }) +} + , Pr = ({shownUsers: t, setShownUsers: n, users: a}) => e.jsx(Dt, { + data: a.map(o => ({ + label: `${o.firstName} ${o.secondName}`, + value: o.id.toString() + })), + onChange: o => n(a.filter(r => o.includes(r.id.toString()))), + value: t.map(o => o.id.toString()), + placeholder: t.length > 0 ? "" : "Показанные пользователи", + searchable: !0 +}) + , Tr = () => { + const {dateRange: t, setDateRange: n, users: a, shownUsers: o, setShownUsers: r} = bt(); + return e.jsxs(E, { + align: "center", + justify: "space-between", + gap: N(10), + children: [e.jsx(Pr, { + shownUsers: o, + setShownUsers: r, + users: a + }), e.jsx(mn, { + placeholder: "Выберите временной промежуток", + type: "range", + value: t, + onChange: l => { + n(l) + } + })] + }) +} + , Mr = () => e.jsx(kr, { + children: e.jsxs(qe, { + p: N(10), + gap: N(10), + children: [e.jsx(Tr, {}), e.jsx(Sr, {})] + }) +}) + , Ir = () => { + const n = co(o => { + console.log(o); + return o.auth.role + }) === "admin" + , a = (o, r) => e.jsx(W.Panel, { + value: o, + children: e.jsx(_e.div, { + initial: { + opacity: 0 + }, + animate: { + opacity: 1 + }, + transition: { + duration: .2 + }, + children: r + }) + }); + return e.jsx("div", { + className: Bo.container, + children: e.jsx(uo, { + fullHeight: !0, + children: e.jsxs(W, { + variant: "outline", + keepMounted: !1, + defaultValue: "users", + children: [e.jsxs(W.List, { + children: [e.jsx(W.Tab, { + value: "users", + leftSection: e.jsx(ho, {}), + children: "Пользователи" + }), n && e.jsx(W.Tab, { + value: "finances", + leftSection: e.jsx(Po, {}), + children: "Финансы" + }), e.jsx(W.Tab, { + value: "rolesAndPositions", + leftSection: e.jsx(No, {}), + children: "Организационная структура" + }), n && e.jsx(W.Tab, { + value: "workTimeTable", + leftSection: e.jsx(go, {}), + children: "Рабочее время" + }), e.jsx(W.Tab, { + value: "workShiftsPlanning", + leftSection: e.jsx(wo, {}), + children: "Планирование смен" + }), e.jsx(W.Tab, { + value: "workShifts", + leftSection: e.jsx(cn, {}), + children: "Смены" + }), n && e.jsx(W.Tab, { + value: "transactions", + leftSection: e.jsx(So, {}), + children: "Доходы и расходы" + })] + }), a("users", e.jsx($o, {})), a("rolesAndPositions", e.jsx(Cr, {})), a("finances", e.jsx(Qo, {})), a("workTimeTable", e.jsx(es, {})), a("workShiftsPlanning", e.jsx(Mr, {})), a("workShifts", e.jsx(ls, {})), a("transactions", e.jsx(gs, {}))] + }) + }) + }) +} + , Er = mo("/admin")({ + component: Ir +}); +export {Er as Route}; diff --git a/assets/barcode.lazy-BeafWjtL.js b/assets/barcode.lazy-BeafWjtL.js new file mode 100644 index 0000000..3542cc7 --- /dev/null +++ b/assets/barcode.lazy-BeafWjtL.js @@ -0,0 +1,148 @@ +import {r as j, j as e, aD as C, aF as f, a1 as B, a2 as T, a3 as m, a4 as p, a5 as g, a6 as y, a7 as b, b1 as F, s as x, X as I, b2 as d, ac as u, c as k} from "./index-CdMy-Rhi.js"; +const v = "_container_kxb8n_1" + , h = { + container: v, + "top-panel": "_top-panel_kxb8n_8" +} + , w = () => j.useMemo( () => [{ + accessorKey: "name", + header: "Название" +}, { + accessorKey: "attributes", + header: "Атрибуты", + Cell: ({row: n}) => e.jsx(e.Fragment, { + children: n.original.attributes.map(s => s.name).join(", ") + }) +}, { + accessorKey: "size.name", + header: "Размер" +}, { + accessorKey: "isDefault", + header: "По умолчанию", + Cell: ({row: n}) => n.original.isDefault ? e.jsx(C, {}) : e.jsx(f, {}) +}], []) + , _ = ({items: n, onDelete: s, onChange: c}) => { + const i = w() + , l = o => { + c && b.openContextModal({ + modal: "barcodeTemplateFormModal", + title: "Создание шаблона", + withCloseButton: !1, + innerProps: { + onChange: t => c(t), + element: o + } + }) + } + ; + return e.jsx(e.Fragment, { + children: e.jsx(B, { + striped: !0, + data: n, + columns: i, + restProps: { + enableColumnActions: !1, + enableRowActions: !0, + renderRowActions: ({row: o}) => e.jsxs(T, { + gap: "md", + children: [e.jsx(m, { + label: "Редактировать", + children: e.jsx(p, { + onClick: () => l(o.original), + variant: "default", + children: e.jsx(g, {}) + }) + }), e.jsx(m, { + label: "Удалить", + children: e.jsx(p, { + onClick: () => { + s && s(o.original) + } + , + variant: "default", + children: e.jsx(y, {}) + }) + })] + }) + } + }) + }) +} + , A = () => { + const {barcodeTemplates: n, refetch: s} = F() + , c = t => { + d.createBarcodeTemplate({ + requestBody: { + ...t, + attributeIds: t.attributes.map(a => a.id) + } + }).then(async ({ok: a, message: r}) => { + u.guess(a, { + message: r + }), + a && await s() + } + ) + } + , i = t => { + d.updateBarcodeTemplate({ + requestBody: { + ...t, + attributeIds: t.attributes.map(a => a.id) + } + }).then(async ({ok: a, message: r}) => { + u.guess(a, { + message: r + }), + a && await s() + } + ) + } + , l = t => { + d.deleteBarcodeTemplate({ + requestBody: { + id: t.id + } + }).then(async ({ok: a, message: r}) => { + u.guess(a, { + message: r + }), + a && await s() + } + ) + } + , o = () => { + b.openContextModal({ + modal: "barcodeTemplateFormModal", + title: "Создание шаблона", + withCloseButton: !1, + innerProps: { + onCreate: c + } + }) + } + ; + return e.jsxs("div", { + className: h.container, + children: [e.jsx(x, { + children: e.jsx("div", { + className: h["top-panel"], + children: e.jsx(I, { + onClick: () => o(), + variant: "default", + children: "Создать шаблон" + }) + }) + }), e.jsx(x, { + children: e.jsx(_, { + items: n, + onChange: i, + onDelete: l + }) + })] + }) +} + , P = k("/barcode")({ + component: A +}); +export {P as Route}; diff --git a/assets/clients-Cj_krpTe.css b/assets/clients-Cj_krpTe.css new file mode 100644 index 0000000..8fbb9ba --- /dev/null +++ b/assets/clients-Cj_krpTe.css @@ -0,0 +1,12 @@ +._container_kxb8n_1 { + display: flex; + flex-direction: column; + flex: 1 1 0%; + gap: calc(.625rem * var(--mantine-scale)); +} + +._top-panel_kxb8n_8 { + padding: calc(.3125rem * var(--mantine-scale)); + gap: calc(.625rem * var(--mantine-scale)); + display: flex; +} diff --git a/assets/clients.lazy-D13QvUjN.js b/assets/clients.lazy-D13QvUjN.js new file mode 100644 index 0000000..b58ad47 --- /dev/null +++ b/assets/clients.lazy-D13QvUjN.js @@ -0,0 +1,150 @@ +import {r as j, j as e, a1 as y, a2 as f, a3 as m, a4 as h, a5 as b, a6 as g, a7 as C, b0 as B, s as p, X as K, aq as d, ac as u, c as v} from "./index-CdMy-Rhi.js"; +const A = () => j.useMemo( () => [{ + accessorKey: "name", + header: "Имя" +}, { + accessorKey: "details.telegram", + header: "Телеграм" +}, { + accessorKey: "details.email", + header: "EMAIL" +}, { + accessorKey: "details.phoneNumber", + header: "Телефон" +}, { + accessorKey: "details.inn", + header: "ИНН" +}, { + accessorKey: "companyName", + header: "Название компании" +}, { + accessorKey: "barcodeTemplate.name", + header: "Шаблон штрихкодов" +}], []) + , M = ({items: i, onDelete: t, onChange: c}) => { + const r = A() + , l = n => { + c && C.openContextModal({ + modal: "productFormModal", + title: "Создание клиента", + withCloseButton: !1, + innerProps: { + onChange: s => c(s), + element: n + } + }) + } + ; + return e.jsx(e.Fragment, { + children: e.jsx(y, { + striped: !0, + data: i, + columns: r, + restProps: { + enableColumnActions: !1, + enableRowActions: !0, + renderRowActions: ({row: n}) => e.jsxs(f, { + gap: "md", + children: [e.jsx(m, { + label: "Редактировать", + children: e.jsx(h, { + onClick: () => l(n.original), + variant: "default", + children: e.jsx(b, {}) + }) + }), e.jsx(m, { + label: "Удалить", + children: e.jsx(h, { + onClick: () => { + t && t(n.original) + } + , + variant: "default", + children: e.jsx(g, {}) + }) + })] + }) + } + }) + }) +} + , T = "_container_kxb8n_1" + , x = { + container: T, + "top-panel": "_top-panel_kxb8n_8" +} + , _ = () => { + const {clients: i, refetch: t} = B() + , c = s => { + d.createClientApi({ + requestBody: { + data: s + } + }).then(async ({ok: a, message: o}) => { + u.guess(a, { + message: o + }), + a && await t() + } + ) + } + , r = s => { + d.updateClient({ + requestBody: { + data: s + } + }).then(async ({ok: a, message: o}) => { + u.guess(a, { + message: o + }), + a && await t() + } + ) + } + , l = s => { + d.deleteClient({ + requestBody: { + clientId: s.id + } + }).then(async ({ok: a, message: o}) => { + u.guess(a, { + message: o + }), + a && await t() + } + ) + } + , n = () => { + C.openContextModal({ + modal: "productFormModal", + title: "Создание клиента", + innerProps: { + onCreate: c + } + }) + } + ; + return e.jsxs("div", { + className: x.container, + children: [e.jsx(p, { + children: e.jsx("div", { + className: x["top-panel"], + children: e.jsx(K, { + onClick: n, + variant: "default", + children: "Создать клиента" + }) + }) + }), e.jsx(p, { + children: e.jsx(M, { + onChange: r, + onDelete: l, + items: i + }) + })] + }) +} + , w = v("/clients")({ + component: _ +}); +export {w as Route}; diff --git a/assets/index-CdMy-Rhi.js b/assets/index-CdMy-Rhi.js new file mode 100644 index 0000000..ac3f189 --- /dev/null +++ b/assets/index-CdMy-Rhi.js @@ -0,0 +1,90703 @@ +const __vite__mapDeps = (i, m=__vite__mapDeps, d=(m.f || (m.f = ["assets/statistics.lazy-C8ZDxiXo.js", "assets/statistics-DGvz6U5F.css", "assets/shipping_warehouses.lazy-DRkkDcKk.js", "assets/ServicesPage.module-BAnCpO1K.js", "assets/ServicesPage-B6wf48AH.css", "assets/services.lazy-GhTe1DYV.js", "assets/List-Xt0hH74q.js", "assets/residues.lazy-DRKAbwTh.js", "assets/ProductsPage.module-BjEXBNuV.js", "assets/ProductsPage-Xx-4xNd6.css", "assets/receipt.lazy-k9tX7m7E.js", "assets/IconPlayerPause-CiILB2ws.js", "assets/products.lazy-C9XxC34w.js", "assets/marketplaces.lazy-Ci7Q3pIV.js", "assets/login.lazy-CNWwm0Pr.js", "assets/login-77-0C2J2.css", "assets/clients.lazy-D13QvUjN.js", "assets/clients-Cj_krpTe.css", "assets/barcode.lazy-BeafWjtL.js", "assets/admin.lazy-CNFu-WM3.js", "assets/admin-CjeWXnXD.css"]))) => i.map(i => d[i]); +var xte = Object.defineProperty; +var Rj = e => { + throw TypeError(e) +} +; +var wte = (e, t, n) => t in e ? xte(e, t, { + enumerable: !0, + configurable: !0, + writable: !0, + value: n +}) : e[t] = n; +var Id = (e, t, n) => wte(e, typeof t != "symbol" ? t + "" : t, n) + , tS = (e, t, n) => t.has(e) || Rj("Cannot " + n); +var X = (e, t, n) => (tS(e, t, "read from private field"), +n ? n.call(e) : t.get(e)) + , st = (e, t, n) => t.has(e) ? Rj("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n) + , Ge = (e, t, n, r) => (tS(e, t, "write to private field"), +r ? r.call(e, n) : t.set(e, n), +n) + , Ot = (e, t, n) => (tS(e, t, "access private method"), +n); +var my = (e, t, n, r) => ({ + set _(o) { + Ge(e, t, o, n) + }, + get _() { + return X(e, t, r) + } +}); +function Ste(e, t) { + for (var n = 0; n < t.length; n++) { + const r = t[n]; + if (typeof r != "string" && !Array.isArray(r)) { + for (const o in r) + if (o !== "default" && !(o in e)) { + const i = Object.getOwnPropertyDescriptor(r, o); + i && Object.defineProperty(e, o, i.get ? i : { + enumerable: !0, + get: () => r[o] + }) + } + } + } + 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 o of document.querySelectorAll('link[rel="modulepreload"]')) + r(o); + new MutationObserver(o => { + for (const i of o) + if (i.type === "childList") + for (const s of i.addedNodes) + s.tagName === "LINK" && s.rel === "modulepreload" && r(s) + } + ).observe(document, { + childList: !0, + subtree: !0 + }); + function n(o) { + const i = {}; + return o.integrity && (i.integrity = o.integrity), + o.referrerPolicy && (i.referrerPolicy = o.referrerPolicy), + o.crossOrigin === "use-credentials" ? i.credentials = "include" : o.crossOrigin === "anonymous" ? i.credentials = "omit" : i.credentials = "same-origin", + i + } + function r(o) { + if (o.ep) + return; + o.ep = !0; + const i = n(o); + fetch(o.href, i) + } +} +)(); +var sr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}; +function qi(e) { + return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e +} +var x4 = { + exports: {} +} + , m1 = {} + , w4 = { + exports: {} +} + , kt = {}; +/** + * @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 Ag = Symbol.for("react.element") + , Cte = Symbol.for("react.portal") + , Ete = Symbol.for("react.fragment") + , Rte = Symbol.for("react.strict_mode") + , Pte = Symbol.for("react.profiler") + , Tte = Symbol.for("react.provider") + , Dte = Symbol.for("react.context") + , Ate = Symbol.for("react.forward_ref") + , kte = Symbol.for("react.suspense") + , Ite = Symbol.for("react.memo") + , Mte = Symbol.for("react.lazy") + , Pj = Symbol.iterator; +function Ote(e) { + return e === null || typeof e != "object" ? null : (e = Pj && e[Pj] || e["@@iterator"], + typeof e == "function" ? e : null) +} +var S4 = { + isMounted: function() { + return !1 + }, + enqueueForceUpdate: function() {}, + enqueueReplaceState: function() {}, + enqueueSetState: function() {} +} + , C4 = Object.assign + , E4 = {}; +function Ph(e, t, n) { + this.props = e, + this.context = t, + this.refs = E4, + this.updater = n || S4 +} +Ph.prototype.isReactComponent = {}; +Ph.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") +} +; +Ph.prototype.forceUpdate = function(e) { + this.updater.enqueueForceUpdate(this, e, "forceUpdate") +} +; +function R4() {} +R4.prototype = Ph.prototype; +function pT(e, t, n) { + this.props = e, + this.context = t, + this.refs = E4, + this.updater = n || S4 +} +var mT = pT.prototype = new R4; +mT.constructor = pT; +C4(mT, Ph.prototype); +mT.isPureReactComponent = !0; +var Tj = Array.isArray + , P4 = Object.prototype.hasOwnProperty + , gT = { + current: null +} + , T4 = { + key: !0, + ref: !0, + __self: !0, + __source: !0 +}; +function D4(e, t, n) { + var r, o = {}, i = null, s = null; + if (t != null) + for (r in t.ref !== void 0 && (s = t.ref), + t.key !== void 0 && (i = "" + t.key), + t) + P4.call(t, r) && !T4.hasOwnProperty(r) && (o[r] = t[r]); + var a = arguments.length - 2; + if (a === 1) + o.children = n; + else if (1 < a) { + for (var l = Array(a), c = 0; c < a; c++) + l[c] = arguments[c + 2]; + o.children = l + } + if (e && e.defaultProps) + for (r in a = e.defaultProps, + a) + o[r] === void 0 && (o[r] = a[r]); + return { + $$typeof: Ag, + type: e, + key: i, + ref: s, + props: o, + _owner: gT.current + } +} +function jte(e, t) { + return { + $$typeof: Ag, + type: e.type, + key: t, + ref: e.ref, + props: e.props, + _owner: e._owner + } +} +function vT(e) { + return typeof e == "object" && e !== null && e.$$typeof === Ag +} +function Fte(e) { + var t = { + "=": "=0", + ":": "=2" + }; + return "$" + e.replace(/[=:]/g, function(n) { + return t[n] + }) +} +var Dj = /\/+/g; +function nS(e, t) { + return typeof e == "object" && e !== null && e.key != null ? Fte("" + e.key) : t.toString(36) +} +function m0(e, t, n, r, o) { + var i = typeof e; + (i === "undefined" || i === "boolean") && (e = null); + var s = !1; + if (e === null) + s = !0; + else + switch (i) { + case "string": + case "number": + s = !0; + break; + case "object": + switch (e.$$typeof) { + case Ag: + case Cte: + s = !0 + } + } + if (s) + return s = e, + o = o(s), + e = r === "" ? "." + nS(s, 0) : r, + Tj(o) ? (n = "", + e != null && (n = e.replace(Dj, "$&/") + "/"), + m0(o, t, n, "", function(c) { + return c + })) : o != null && (vT(o) && (o = jte(o, n + (!o.key || s && s.key === o.key ? "" : ("" + o.key).replace(Dj, "$&/") + "/") + e)), + t.push(o)), + 1; + if (s = 0, + r = r === "" ? "." : r + ":", + Tj(e)) + for (var a = 0; a < e.length; a++) { + i = e[a]; + var l = r + nS(i, a); + s += m0(i, t, n, l, o) + } + else if (l = Ote(e), + typeof l == "function") + for (e = l.call(e), + a = 0; !(i = e.next()).done; ) + i = i.value, + l = r + nS(i, a++), + s += m0(i, t, n, l, o); + else if (i === "object") + throw t = String(e), + Error("Objects are not valid as a React child (found: " + (t === "[object Object]" ? "object with keys {" + Object.keys(e).join(", ") + "}" : t) + "). If you meant to render a collection of children, use an array instead."); + return s +} +function gy(e, t, n) { + if (e == null) + return e; + var r = [] + , o = 0; + return m0(e, r, "", "", function(i) { + return t.call(n, i, o++) + }), + r +} +function Nte(e) { + if (e._status === -1) { + var t = e._result; + t = t(), + t.then(function(n) { + (e._status === 0 || e._status === -1) && (e._status = 1, + e._result = n) + }, function(n) { + (e._status === 0 || e._status === -1) && (e._status = 2, + e._result = n) + }), + e._status === -1 && (e._status = 0, + e._result = t) + } + if (e._status === 1) + return e._result.default; + throw e._result +} +var uo = { + current: null +} + , g0 = { + transition: null +} + , Lte = { + ReactCurrentDispatcher: uo, + ReactCurrentBatchConfig: g0, + ReactCurrentOwner: gT +}; +function A4() { + throw Error("act(...) is not supported in production builds of React.") +} +kt.Children = { + map: gy, + forEach: function(e, t, n) { + gy(e, function() { + t.apply(this, arguments) + }, n) + }, + count: function(e) { + var t = 0; + return gy(e, function() { + t++ + }), + t + }, + toArray: function(e) { + return gy(e, function(t) { + return t + }) || [] + }, + only: function(e) { + if (!vT(e)) + throw Error("React.Children.only expected to receive a single React element child."); + return e + } +}; +kt.Component = Ph; +kt.Fragment = Ete; +kt.Profiler = Pte; +kt.PureComponent = pT; +kt.StrictMode = Rte; +kt.Suspense = kte; +kt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Lte; +kt.act = A4; +kt.cloneElement = function(e, t, n) { + if (e == null) + throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + e + "."); + var r = C4({}, e.props) + , o = e.key + , i = e.ref + , s = e._owner; + if (t != null) { + if (t.ref !== void 0 && (i = t.ref, + s = gT.current), + t.key !== void 0 && (o = "" + t.key), + e.type && e.type.defaultProps) + var a = e.type.defaultProps; + for (l in t) + P4.call(t, l) && !T4.hasOwnProperty(l) && (r[l] = t[l] === void 0 && a !== void 0 ? a[l] : t[l]) + } + var l = arguments.length - 2; + if (l === 1) + r.children = n; + else if (1 < l) { + a = Array(l); + for (var c = 0; c < l; c++) + a[c] = arguments[c + 2]; + r.children = a + } + return { + $$typeof: Ag, + type: e.type, + key: o, + ref: i, + props: r, + _owner: s + } +} +; +kt.createContext = function(e) { + return e = { + $$typeof: Dte, + _currentValue: e, + _currentValue2: e, + _threadCount: 0, + Provider: null, + Consumer: null, + _defaultValue: null, + _globalName: null + }, + e.Provider = { + $$typeof: Tte, + _context: e + }, + e.Consumer = e +} +; +kt.createElement = D4; +kt.createFactory = function(e) { + var t = D4.bind(null, e); + return t.type = e, + t +} +; +kt.createRef = function() { + return { + current: null + } +} +; +kt.forwardRef = function(e) { + return { + $$typeof: Ate, + render: e + } +} +; +kt.isValidElement = vT; +kt.lazy = function(e) { + return { + $$typeof: Mte, + _payload: { + _status: -1, + _result: e + }, + _init: Nte + } +} +; +kt.memo = function(e, t) { + return { + $$typeof: Ite, + type: e, + compare: t === void 0 ? null : t + } +} +; +kt.startTransition = function(e) { + var t = g0.transition; + g0.transition = {}; + try { + e() + } finally { + g0.transition = t + } +} +; +kt.unstable_act = A4; +kt.useCallback = function(e, t) { + return uo.current.useCallback(e, t) +} +; +kt.useContext = function(e) { + return uo.current.useContext(e) +} +; +kt.useDebugValue = function() {} +; +kt.useDeferredValue = function(e) { + return uo.current.useDeferredValue(e) +} +; +kt.useEffect = function(e, t) { + return uo.current.useEffect(e, t) +} +; +kt.useId = function() { + return uo.current.useId() +} +; +kt.useImperativeHandle = function(e, t, n) { + return uo.current.useImperativeHandle(e, t, n) +} +; +kt.useInsertionEffect = function(e, t) { + return uo.current.useInsertionEffect(e, t) +} +; +kt.useLayoutEffect = function(e, t) { + return uo.current.useLayoutEffect(e, t) +} +; +kt.useMemo = function(e, t) { + return uo.current.useMemo(e, t) +} +; +kt.useReducer = function(e, t, n) { + return uo.current.useReducer(e, t, n) +} +; +kt.useRef = function(e) { + return uo.current.useRef(e) +} +; +kt.useState = function(e) { + return uo.current.useState(e) +} +; +kt.useSyncExternalStore = function(e, t, n) { + return uo.current.useSyncExternalStore(e, t, n) +} +; +kt.useTransition = function() { + return uo.current.useTransition() +} +; +kt.version = "18.3.1"; +w4.exports = kt; +var S = w4.exports; +const ht = qi(S) + , K0 = Ste({ + __proto__: null, + default: ht +}, [S]); +/** + * @license React + * react-jsx-runtime.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 $te = S + , Bte = Symbol.for("react.element") + , Vte = Symbol.for("react.fragment") + , zte = Object.prototype.hasOwnProperty + , Hte = $te.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner + , Ute = { + key: !0, + ref: !0, + __self: !0, + __source: !0 +}; +function k4(e, t, n) { + var r, o = {}, i = null, s = null; + n !== void 0 && (i = "" + n), + t.key !== void 0 && (i = "" + t.key), + t.ref !== void 0 && (s = t.ref); + for (r in t) + zte.call(t, r) && !Ute.hasOwnProperty(r) && (o[r] = t[r]); + if (e && e.defaultProps) + for (r in t = e.defaultProps, + t) + o[r] === void 0 && (o[r] = t[r]); + return { + $$typeof: Bte, + type: e, + key: i, + ref: s, + props: o, + _owner: Hte.current + } +} +m1.Fragment = Vte; +m1.jsx = k4; +m1.jsxs = k4; +x4.exports = m1; +var f = x4.exports + , gE = {} + , I4 = { + exports: {} +} + , yi = {} + , M4 = { + exports: {} +} + , O4 = {}; +/** + * @license React + * scheduler.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. + */ +(function(e) { + function t(M, L) { + var H = M.length; + M.push(L); + e: for (; 0 < H; ) { + var V = H - 1 >>> 1 + , q = M[V]; + if (0 < o(q, L)) + M[V] = L, + M[H] = q, + H = V; + else + break e + } + } + function n(M) { + return M.length === 0 ? null : M[0] + } + function r(M) { + if (M.length === 0) + return null; + var L = M[0] + , H = M.pop(); + if (H !== L) { + M[0] = H; + e: for (var V = 0, q = M.length, Z = q >>> 1; V < Z; ) { + var ne = 2 * (V + 1) - 1 + , re = M[ne] + , he = ne + 1 + , ce = M[he]; + if (0 > o(re, H)) + he < q && 0 > o(ce, re) ? (M[V] = ce, + M[he] = H, + V = he) : (M[V] = re, + M[ne] = H, + V = ne); + else if (he < q && 0 > o(ce, H)) + M[V] = ce, + M[he] = H, + V = he; + else + break e + } + } + return L + } + function o(M, L) { + var H = M.sortIndex - L.sortIndex; + return H !== 0 ? H : M.id - L.id + } + if (typeof performance == "object" && typeof performance.now == "function") { + var i = performance; + e.unstable_now = function() { + return i.now() + } + } else { + var s = Date + , a = s.now(); + e.unstable_now = function() { + return s.now() - a + } + } + var l = [] + , c = [] + , u = 1 + , d = null + , h = 3 + , m = !1 + , v = !1 + , y = !1 + , b = typeof setTimeout == "function" ? setTimeout : null + , _ = typeof clearTimeout == "function" ? clearTimeout : null + , x = 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(M) { + for (var L = n(c); L !== null; ) { + if (L.callback === null) + r(c); + else if (L.startTime <= M) + r(c), + L.sortIndex = L.expirationTime, + t(l, L); + else + break; + L = n(c) + } + } + function E(M) { + if (y = !1, + w(M), + !v) + if (n(l) !== null) + v = !0, + O(R); + else { + var L = n(c); + L !== null && k(E, L.startTime - M) + } + } + function R(M, L) { + v = !1, + y && (y = !1, + _(T), + T = -1), + m = !0; + var H = h; + try { + for (w(L), + d = n(l); d !== null && (!(d.expirationTime > L) || M && !N()); ) { + var V = d.callback; + if (typeof V == "function") { + d.callback = null, + h = d.priorityLevel; + var q = V(d.expirationTime <= L); + L = e.unstable_now(), + typeof q == "function" ? d.callback = q : d === n(l) && r(l), + w(L) + } else + r(l); + d = n(l) + } + if (d !== null) + var Z = !0; + else { + var ne = n(c); + ne !== null && k(E, ne.startTime - L), + Z = !1 + } + return Z + } finally { + d = null, + h = H, + m = !1 + } + } + var P = !1 + , D = null + , T = -1 + , I = 5 + , j = -1; + function N() { + return !(e.unstable_now() - j < I) + } + function U() { + if (D !== null) { + var M = e.unstable_now(); + j = M; + var L = !0; + try { + L = D(!0, M) + } finally { + L ? K() : (P = !1, + D = null) + } + } else + P = !1 + } + var K; + if (typeof x == "function") + K = function() { + x(U) + } + ; + else if (typeof MessageChannel < "u") { + var W = new MessageChannel + , $ = W.port2; + W.port1.onmessage = U, + K = function() { + $.postMessage(null) + } + } else + K = function() { + b(U, 0) + } + ; + function O(M) { + D = M, + P || (P = !0, + K()) + } + function k(M, L) { + T = b(function() { + M(e.unstable_now()) + }, L) + } + e.unstable_IdlePriority = 5, + e.unstable_ImmediatePriority = 1, + e.unstable_LowPriority = 4, + e.unstable_NormalPriority = 3, + e.unstable_Profiling = null, + e.unstable_UserBlockingPriority = 2, + e.unstable_cancelCallback = function(M) { + M.callback = null + } + , + e.unstable_continueExecution = function() { + v || m || (v = !0, + O(R)) + } + , + e.unstable_forceFrameRate = function(M) { + 0 > M || 125 < M ? console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported") : I = 0 < M ? Math.floor(1e3 / M) : 5 + } + , + e.unstable_getCurrentPriorityLevel = function() { + return h + } + , + e.unstable_getFirstCallbackNode = function() { + return n(l) + } + , + e.unstable_next = function(M) { + switch (h) { + case 1: + case 2: + case 3: + var L = 3; + break; + default: + L = h + } + var H = h; + h = L; + try { + return M() + } finally { + h = H + } + } + , + e.unstable_pauseExecution = function() {} + , + e.unstable_requestPaint = function() {} + , + e.unstable_runWithPriority = function(M, L) { + switch (M) { + case 1: + case 2: + case 3: + case 4: + case 5: + break; + default: + M = 3 + } + var H = h; + h = M; + try { + return L() + } finally { + h = H + } + } + , + e.unstable_scheduleCallback = function(M, L, H) { + var V = e.unstable_now(); + switch (typeof H == "object" && H !== null ? (H = H.delay, + H = typeof H == "number" && 0 < H ? V + H : V) : H = V, + M) { + case 1: + var q = -1; + break; + case 2: + q = 250; + break; + case 5: + q = 1073741823; + break; + case 4: + q = 1e4; + break; + default: + q = 5e3 + } + return q = H + q, + M = { + id: u++, + callback: L, + priorityLevel: M, + startTime: H, + expirationTime: q, + sortIndex: -1 + }, + H > V ? (M.sortIndex = H, + t(c, M), + n(l) === null && M === n(c) && (y ? (_(T), + T = -1) : y = !0, + k(E, H - V))) : (M.sortIndex = q, + t(l, M), + v || m || (v = !0, + O(R))), + M + } + , + e.unstable_shouldYield = N, + e.unstable_wrapCallback = function(M) { + var L = h; + return function() { + var H = h; + h = L; + try { + return M.apply(this, arguments) + } finally { + h = H + } + } + } +} +)(O4); +M4.exports = O4; +var Gte = M4.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 Wte = S + , ci = Gte; +function Oe(e) { + for (var t = "https://reactjs.org/docs/error-decoder.html?invariant=" + e, n = 1; n < arguments.length; n++) + t += "&args[]=" + encodeURIComponent(arguments[n]); + return "Minified React error #" + e + "; visit " + t + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings." +} +var j4 = new Set + , Om = {}; +function od(e, t) { + Kf(e, t), + Kf(e + "Capture", t) +} +function Kf(e, t) { + for (Om[e] = t, + e = 0; e < t.length; e++) + j4.add(t[e]) +} +var Ha = !(typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u") + , vE = Object.prototype.hasOwnProperty + , qte = /^[: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]*$/ + , Aj = {} + , kj = {}; +function Kte(e) { + return vE.call(kj, e) ? !0 : vE.call(Aj, e) ? !1 : qte.test(e) ? kj[e] = !0 : (Aj[e] = !0, + !1) +} +function Yte(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 Xte(e, t, n, r) { + if (t === null || typeof t > "u" || Yte(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 fo(e, t, n, r, o, i, s) { + this.acceptsBooleans = t === 2 || t === 3 || t === 4, + this.attributeName = r, + this.attributeNamespace = o, + this.mustUseProperty = n, + this.propertyName = e, + this.type = t, + this.sanitizeURL = i, + this.removeEmptyString = s +} +var Cr = {}; +"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e) { + Cr[e] = new fo(e,0,!1,e,null,!1,!1) +}); +[["acceptCharset", "accept-charset"], ["className", "class"], ["htmlFor", "for"], ["httpEquiv", "http-equiv"]].forEach(function(e) { + var t = e[0]; + Cr[t] = new fo(t,1,!1,e[1],null,!1,!1) +}); +["contentEditable", "draggable", "spellCheck", "value"].forEach(function(e) { + Cr[e] = new fo(e,2,!1,e.toLowerCase(),null,!1,!1) +}); +["autoReverse", "externalResourcesRequired", "focusable", "preserveAlpha"].forEach(function(e) { + Cr[e] = new fo(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) { + Cr[e] = new fo(e,3,!1,e.toLowerCase(),null,!1,!1) +}); +["checked", "multiple", "muted", "selected"].forEach(function(e) { + Cr[e] = new fo(e,3,!0,e,null,!1,!1) +}); +["capture", "download"].forEach(function(e) { + Cr[e] = new fo(e,4,!1,e,null,!1,!1) +}); +["cols", "rows", "size", "span"].forEach(function(e) { + Cr[e] = new fo(e,6,!1,e,null,!1,!1) +}); +["rowSpan", "start"].forEach(function(e) { + Cr[e] = new fo(e,5,!1,e.toLowerCase(),null,!1,!1) +}); +var yT = /[\-:]([a-z])/g; +function bT(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(yT, bT); + Cr[t] = new fo(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(yT, bT); + Cr[t] = new fo(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(yT, bT); + Cr[t] = new fo(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1) +}); +["tabIndex", "crossOrigin"].forEach(function(e) { + Cr[e] = new fo(e,1,!1,e.toLowerCase(),null,!1,!1) +}); +Cr.xlinkHref = new fo("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1); +["src", "href", "action", "formAction"].forEach(function(e) { + Cr[e] = new fo(e,1,!1,e.toLowerCase(),null,!0,!0) +}); +function _T(e, t, n, r) { + var o = Cr.hasOwnProperty(t) ? Cr[t] : null; + (o !== null ? o.type !== 0 : r || !(2 < t.length) || t[0] !== "o" && t[0] !== "O" || t[1] !== "n" && t[1] !== "N") && (Xte(t, n, o, r) && (n = null), + r || o === null ? Kte(t) && (n === null ? e.removeAttribute(t) : e.setAttribute(t, "" + n)) : o.mustUseProperty ? e[o.propertyName] = n === null ? o.type === 3 ? !1 : "" : n : (t = o.attributeName, + r = o.attributeNamespace, + n === null ? e.removeAttribute(t) : (o = o.type, + n = o === 3 || o === 4 && n === !0 ? "" : "" + n, + r ? e.setAttributeNS(r, t, n) : e.setAttribute(t, n)))) +} +var el = Wte.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED + , vy = Symbol.for("react.element") + , Zd = Symbol.for("react.portal") + , Jd = Symbol.for("react.fragment") + , xT = Symbol.for("react.strict_mode") + , yE = Symbol.for("react.profiler") + , F4 = Symbol.for("react.provider") + , N4 = Symbol.for("react.context") + , wT = Symbol.for("react.forward_ref") + , bE = Symbol.for("react.suspense") + , _E = Symbol.for("react.suspense_list") + , ST = Symbol.for("react.memo") + , Tl = Symbol.for("react.lazy") + , L4 = Symbol.for("react.offscreen") + , Ij = Symbol.iterator; +function bp(e) { + return e === null || typeof e != "object" ? null : (e = Ij && e[Ij] || e["@@iterator"], + typeof e == "function" ? e : null) +} +var Dn = Object.assign, rS; +function Yp(e) { + if (rS === void 0) + try { + throw Error() + } catch (n) { + var t = n.stack.trim().match(/\n( *(at )?)/); + rS = t && t[1] || "" + } + return ` +` + rS + e +} +var oS = !1; +function iS(e, t) { + if (!e || oS) + return ""; + oS = !0; + var n = Error.prepareStackTrace; + Error.prepareStackTrace = void 0; + try { + if (t) + if (t = function() { + throw Error() + } + , + Object.defineProperty(t.prototype, "props", { + set: function() { + throw Error() + } + }), + typeof Reflect == "object" && Reflect.construct) { + try { + Reflect.construct(t, []) + } catch (c) { + var r = c + } + Reflect.construct(e, [], t) + } else { + try { + t.call() + } catch (c) { + r = c + } + e.call(t.prototype) + } + else { + try { + throw Error() + } catch (c) { + r = c + } + e() + } + } catch (c) { + if (c && r && typeof c.stack == "string") { + for (var o = c.stack.split(` +`), i = r.stack.split(` +`), s = o.length - 1, a = i.length - 1; 1 <= s && 0 <= a && o[s] !== i[a]; ) + a--; + for (; 1 <= s && 0 <= a; s--, + a--) + if (o[s] !== i[a]) { + if (s !== 1 || a !== 1) + do + if (s--, + a--, + 0 > a || o[s] !== i[a]) { + var l = ` +` + o[s].replace(" at new ", " at "); + return e.displayName && l.includes("") && (l = l.replace("", e.displayName)), + l + } + while (1 <= s && 0 <= a); + break + } + } + } finally { + oS = !1, + Error.prepareStackTrace = n + } + return (e = e ? e.displayName || e.name : "") ? Yp(e) : "" +} +function Qte(e) { + switch (e.tag) { + case 5: + return Yp(e.type); + case 16: + return Yp("Lazy"); + case 13: + return Yp("Suspense"); + case 19: + return Yp("SuspenseList"); + case 0: + case 2: + case 15: + return e = iS(e.type, !1), + e; + case 11: + return e = iS(e.type.render, !1), + e; + case 1: + return e = iS(e.type, !0), + e; + default: + return "" + } +} +function xE(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 Jd: + return "Fragment"; + case Zd: + return "Portal"; + case yE: + return "Profiler"; + case xT: + return "StrictMode"; + case bE: + return "Suspense"; + case _E: + return "SuspenseList" + } + if (typeof e == "object") + switch (e.$$typeof) { + case N4: + return (e.displayName || "Context") + ".Consumer"; + case F4: + return (e._context.displayName || "Context") + ".Provider"; + case wT: + var t = e.render; + return e = e.displayName, + e || (e = t.displayName || t.name || "", + e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), + e; + case ST: + return t = e.displayName || null, + t !== null ? t : xE(e.type) || "Memo"; + case Tl: + t = e._payload, + e = e._init; + try { + return xE(e(t)) + } catch {} + } + return null +} +function Zte(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 xE(t); + case 8: + return t === xT ? "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 ac(e) { + switch (typeof e) { + case "boolean": + case "number": + case "string": + case "undefined": + return e; + case "object": + return e; + default: + return "" + } +} +function $4(e) { + var t = e.type; + return (e = e.nodeName) && e.toLowerCase() === "input" && (t === "checkbox" || t === "radio") +} +function Jte(e) { + var t = $4(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 o = n.get + , i = n.set; + return Object.defineProperty(e, t, { + configurable: !0, + get: function() { + return o.call(this) + }, + set: function(s) { + r = "" + s, + i.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 yy(e) { + e._valueTracker || (e._valueTracker = Jte(e)) +} +function B4(e) { + if (!e) + return !1; + var t = e._valueTracker; + if (!t) + return !0; + var n = t.getValue() + , r = ""; + return e && (r = $4(e) ? e.checked ? "true" : "false" : e.value), + e = r, + e !== n ? (t.setValue(e), + !0) : !1 +} +function Y0(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 wE(e, t) { + var n = t.checked; + return Dn({}, t, { + defaultChecked: void 0, + defaultValue: void 0, + value: void 0, + checked: n ?? e._wrapperState.initialChecked + }) +} +function Mj(e, t) { + var n = t.defaultValue == null ? "" : t.defaultValue + , r = t.checked != null ? t.checked : t.defaultChecked; + n = ac(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 V4(e, t) { + t = t.checked, + t != null && _T(e, "checked", t, !1) +} +function SE(e, t) { + V4(e, t); + var n = ac(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") ? CE(e, t.type, n) : t.hasOwnProperty("defaultValue") && CE(e, t.type, ac(t.defaultValue)), + t.checked == null && t.defaultChecked != null && (e.defaultChecked = !!t.defaultChecked) +} +function Oj(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 CE(e, t, n) { + (t !== "number" || Y0(e.ownerDocument) !== e) && (n == null ? e.defaultValue = "" + e._wrapperState.initialValue : e.defaultValue !== "" + n && (e.defaultValue = "" + n)) +} +var Xp = Array.isArray; +function xf(e, t, n, r) { + if (e = e.options, + t) { + t = {}; + for (var o = 0; o < n.length; o++) + t["$" + n[o]] = !0; + for (n = 0; n < e.length; n++) + o = t.hasOwnProperty("$" + e[n].value), + e[n].selected !== o && (e[n].selected = o), + o && r && (e[n].defaultSelected = !0) + } else { + for (n = "" + ac(n), + t = null, + o = 0; o < e.length; o++) { + if (e[o].value === n) { + e[o].selected = !0, + r && (e[o].defaultSelected = !0); + return + } + t !== null || e[o].disabled || (t = e[o]) + } + t !== null && (t.selected = !0) + } +} +function EE(e, t) { + if (t.dangerouslySetInnerHTML != null) + throw Error(Oe(91)); + return Dn({}, t, { + value: void 0, + defaultValue: void 0, + children: "" + e._wrapperState.initialValue + }) +} +function jj(e, t) { + var n = t.value; + if (n == null) { + if (n = t.children, + t = t.defaultValue, + n != null) { + if (t != null) + throw Error(Oe(92)); + if (Xp(n)) { + if (1 < n.length) + throw Error(Oe(93)); + n = n[0] + } + t = n + } + t == null && (t = ""), + n = t + } + e._wrapperState = { + initialValue: ac(n) + } +} +function z4(e, t) { + var n = ac(t.value) + , r = ac(t.defaultValue); + n != null && (n = "" + n, + n !== e.value && (e.value = n), + t.defaultValue == null && e.defaultValue !== n && (e.defaultValue = n)), + r != null && (e.defaultValue = "" + r) +} +function Fj(e) { + var t = e.textContent; + t === e._wrapperState.initialValue && t !== "" && t !== null && (e.value = t) +} +function H4(e) { + switch (e) { + case "svg": + return "http://www.w3.org/2000/svg"; + case "math": + return "http://www.w3.org/1998/Math/MathML"; + default: + return "http://www.w3.org/1999/xhtml" + } +} +function RE(e, t) { + return e == null || e === "http://www.w3.org/1999/xhtml" ? H4(t) : e === "http://www.w3.org/2000/svg" && t === "foreignObject" ? "http://www.w3.org/1999/xhtml" : e +} +var by, U4 = function(e) { + return typeof MSApp < "u" && MSApp.execUnsafeLocalFunction ? function(t, n, r, o) { + MSApp.execUnsafeLocalFunction(function() { + return e(t, n, r, o) + }) + } + : e +}(function(e, t) { + if (e.namespaceURI !== "http://www.w3.org/2000/svg" || "innerHTML"in e) + e.innerHTML = t; + else { + for (by = by || document.createElement("div"), + by.innerHTML = "" + t.valueOf().toString() + "", + t = by.firstChild; e.firstChild; ) + e.removeChild(e.firstChild); + for (; t.firstChild; ) + e.appendChild(t.firstChild) + } +}); +function jm(e, t) { + if (t) { + var n = e.firstChild; + if (n && n === e.lastChild && n.nodeType === 3) { + n.nodeValue = t; + return + } + } + e.textContent = t +} +var um = { + 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 +} + , ene = ["Webkit", "ms", "Moz", "O"]; +Object.keys(um).forEach(function(e) { + ene.forEach(function(t) { + t = t + e.charAt(0).toUpperCase() + e.substring(1), + um[t] = um[e] + }) +}); +function G4(e, t, n) { + return t == null || typeof t == "boolean" || t === "" ? "" : n || typeof t != "number" || t === 0 || um.hasOwnProperty(e) && um[e] ? ("" + t).trim() : t + "px" +} +function W4(e, t) { + e = e.style; + for (var n in t) + if (t.hasOwnProperty(n)) { + var r = n.indexOf("--") === 0 + , o = G4(n, t[n], r); + n === "float" && (n = "cssFloat"), + r ? e.setProperty(n, o) : e[n] = o + } +} +var tne = Dn({ + 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 PE(e, t) { + if (t) { + if (tne[e] && (t.children != null || t.dangerouslySetInnerHTML != null)) + throw Error(Oe(137, e)); + if (t.dangerouslySetInnerHTML != null) { + if (t.children != null) + throw Error(Oe(60)); + if (typeof t.dangerouslySetInnerHTML != "object" || !("__html"in t.dangerouslySetInnerHTML)) + throw Error(Oe(61)) + } + if (t.style != null && typeof t.style != "object") + throw Error(Oe(62)) + } +} +function TE(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 DE = null; +function CT(e) { + return e = e.target || e.srcElement || window, + e.correspondingUseElement && (e = e.correspondingUseElement), + e.nodeType === 3 ? e.parentNode : e +} +var AE = null + , wf = null + , Sf = null; +function Nj(e) { + if (e = Mg(e)) { + if (typeof AE != "function") + throw Error(Oe(280)); + var t = e.stateNode; + t && (t = _1(t), + AE(e.stateNode, e.type, t)) + } +} +function q4(e) { + wf ? Sf ? Sf.push(e) : Sf = [e] : wf = e +} +function K4() { + if (wf) { + var e = wf + , t = Sf; + if (Sf = wf = null, + Nj(e), + t) + for (e = 0; e < t.length; e++) + Nj(t[e]) + } +} +function Y4(e, t) { + return e(t) +} +function X4() {} +var sS = !1; +function Q4(e, t, n) { + if (sS) + return e(t, n); + sS = !0; + try { + return Y4(e, t, n) + } finally { + sS = !1, + (wf !== null || Sf !== null) && (X4(), + K4()) + } +} +function Fm(e, t) { + var n = e.stateNode; + if (n === null) + return null; + var r = _1(n); + if (r === null) + return null; + n = r[t]; + e: switch (t) { + case "onClick": + case "onClickCapture": + case "onDoubleClick": + case "onDoubleClickCapture": + case "onMouseDown": + case "onMouseDownCapture": + case "onMouseMove": + case "onMouseMoveCapture": + case "onMouseUp": + case "onMouseUpCapture": + case "onMouseEnter": + (r = !r.disabled) || (e = e.type, + r = !(e === "button" || e === "input" || e === "select" || e === "textarea")), + e = !r; + break e; + default: + e = !1 + } + if (e) + return null; + if (n && typeof n != "function") + throw Error(Oe(231, t, typeof n)); + return n +} +var kE = !1; +if (Ha) + try { + var _p = {}; + Object.defineProperty(_p, "passive", { + get: function() { + kE = !0 + } + }), + window.addEventListener("test", _p, _p), + window.removeEventListener("test", _p, _p) + } catch { + kE = !1 + } +function nne(e, t, n, r, o, i, s, a, l) { + var c = Array.prototype.slice.call(arguments, 3); + try { + t.apply(n, c) + } catch (u) { + this.onError(u) + } +} +var dm = !1 + , X0 = null + , Q0 = !1 + , IE = null + , rne = { + onError: function(e) { + dm = !0, + X0 = e + } +}; +function one(e, t, n, r, o, i, s, a, l) { + dm = !1, + X0 = null, + nne.apply(rne, arguments) +} +function ine(e, t, n, r, o, i, s, a, l) { + if (one.apply(this, arguments), + dm) { + if (dm) { + var c = X0; + dm = !1, + X0 = null + } else + throw Error(Oe(198)); + Q0 || (Q0 = !0, + IE = c) + } +} +function id(e) { + var t = e + , n = e; + if (e.alternate) + for (; t.return; ) + t = t.return; + else { + e = t; + do + t = e, + t.flags & 4098 && (n = t.return), + e = t.return; + while (e) + } + return t.tag === 3 ? n : null +} +function Z4(e) { + if (e.tag === 13) { + var t = e.memoizedState; + if (t === null && (e = e.alternate, + e !== null && (t = e.memoizedState)), + t !== null) + return t.dehydrated + } + return null +} +function Lj(e) { + if (id(e) !== e) + throw Error(Oe(188)) +} +function sne(e) { + var t = e.alternate; + if (!t) { + if (t = id(e), + t === null) + throw Error(Oe(188)); + return t !== e ? null : e + } + for (var n = e, r = t; ; ) { + var o = n.return; + if (o === null) + break; + var i = o.alternate; + if (i === null) { + if (r = o.return, + r !== null) { + n = r; + continue + } + break + } + if (o.child === i.child) { + for (i = o.child; i; ) { + if (i === n) + return Lj(o), + e; + if (i === r) + return Lj(o), + t; + i = i.sibling + } + throw Error(Oe(188)) + } + if (n.return !== r.return) + n = o, + r = i; + else { + for (var s = !1, a = o.child; a; ) { + if (a === n) { + s = !0, + n = o, + r = i; + break + } + if (a === r) { + s = !0, + r = o, + n = i; + break + } + a = a.sibling + } + if (!s) { + for (a = i.child; a; ) { + if (a === n) { + s = !0, + n = i, + r = o; + break + } + if (a === r) { + s = !0, + r = i, + n = o; + break + } + a = a.sibling + } + if (!s) + throw Error(Oe(189)) + } + } + if (n.alternate !== r) + throw Error(Oe(190)) + } + if (n.tag !== 3) + throw Error(Oe(188)); + return n.stateNode.current === n ? e : t +} +function J4(e) { + return e = sne(e), + e !== null ? e5(e) : null +} +function e5(e) { + if (e.tag === 5 || e.tag === 6) + return e; + for (e = e.child; e !== null; ) { + var t = e5(e); + if (t !== null) + return t; + e = e.sibling + } + return null +} +var t5 = ci.unstable_scheduleCallback + , $j = ci.unstable_cancelCallback + , ane = ci.unstable_shouldYield + , lne = ci.unstable_requestPaint + , zn = ci.unstable_now + , cne = ci.unstable_getCurrentPriorityLevel + , ET = ci.unstable_ImmediatePriority + , n5 = ci.unstable_UserBlockingPriority + , Z0 = ci.unstable_NormalPriority + , une = ci.unstable_LowPriority + , r5 = ci.unstable_IdlePriority + , g1 = null + , oa = null; +function dne(e) { + if (oa && typeof oa.onCommitFiberRoot == "function") + try { + oa.onCommitFiberRoot(g1, e, void 0, (e.current.flags & 128) === 128) + } catch {} +} +var Cs = Math.clz32 ? Math.clz32 : pne + , fne = Math.log + , hne = Math.LN2; +function pne(e) { + return e >>>= 0, + e === 0 ? 32 : 31 - (fne(e) / hne | 0) | 0 +} +var _y = 64 + , xy = 4194304; +function Qp(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 J0(e, t) { + var n = e.pendingLanes; + if (n === 0) + return 0; + var r = 0 + , o = e.suspendedLanes + , i = e.pingedLanes + , s = n & 268435455; + if (s !== 0) { + var a = s & ~o; + a !== 0 ? r = Qp(a) : (i &= s, + i !== 0 && (r = Qp(i))) + } else + s = n & ~o, + s !== 0 ? r = Qp(s) : i !== 0 && (r = Qp(i)); + if (r === 0) + return 0; + if (t !== 0 && t !== r && !(t & o) && (o = r & -r, + i = t & -t, + o >= i || o === 16 && (i & 4194240) !== 0)) + return t; + if (r & 4 && (r |= n & 16), + t = e.entangledLanes, + t !== 0) + for (e = e.entanglements, + t &= r; 0 < t; ) + n = 31 - Cs(t), + o = 1 << n, + r |= e[n], + t &= ~o; + return r +} +function mne(e, t) { + switch (e) { + case 1: + case 2: + case 4: + return t + 250; + case 8: + case 16: + case 32: + case 64: + case 128: + case 256: + case 512: + case 1024: + case 2048: + case 4096: + case 8192: + case 16384: + case 32768: + case 65536: + case 131072: + case 262144: + case 524288: + case 1048576: + case 2097152: + return t + 5e3; + case 4194304: + case 8388608: + case 16777216: + case 33554432: + case 67108864: + return -1; + case 134217728: + case 268435456: + case 536870912: + case 1073741824: + return -1; + default: + return -1 + } +} +function gne(e, t) { + for (var n = e.suspendedLanes, r = e.pingedLanes, o = e.expirationTimes, i = e.pendingLanes; 0 < i; ) { + var s = 31 - Cs(i) + , a = 1 << s + , l = o[s]; + l === -1 ? (!(a & n) || a & r) && (o[s] = mne(a, t)) : l <= t && (e.expiredLanes |= a), + i &= ~a + } +} +function ME(e) { + return e = e.pendingLanes & -1073741825, + e !== 0 ? e : e & 1073741824 ? 1073741824 : 0 +} +function o5() { + var e = _y; + return _y <<= 1, + !(_y & 4194240) && (_y = 64), + e +} +function aS(e) { + for (var t = [], n = 0; 31 > n; n++) + t.push(e); + return t +} +function kg(e, t, n) { + e.pendingLanes |= t, + t !== 536870912 && (e.suspendedLanes = 0, + e.pingedLanes = 0), + e = e.eventTimes, + t = 31 - Cs(t), + e[t] = n +} +function vne(e, t) { + var n = e.pendingLanes & ~t; + e.pendingLanes = t, + e.suspendedLanes = 0, + e.pingedLanes = 0, + e.expiredLanes &= t, + e.mutableReadLanes &= t, + e.entangledLanes &= t, + t = e.entanglements; + var r = e.eventTimes; + for (e = e.expirationTimes; 0 < n; ) { + var o = 31 - Cs(n) + , i = 1 << o; + t[o] = 0, + r[o] = -1, + e[o] = -1, + n &= ~i + } +} +function RT(e, t) { + var n = e.entangledLanes |= t; + for (e = e.entanglements; n; ) { + var r = 31 - Cs(n) + , o = 1 << r; + o & t | e[r] & t && (e[r] |= t), + n &= ~o + } +} +var Jt = 0; +function i5(e) { + return e &= -e, + 1 < e ? 4 < e ? e & 268435455 ? 16 : 536870912 : 4 : 1 +} +var s5, PT, a5, l5, c5, OE = !1, wy = [], Yl = null, Xl = null, Ql = null, Nm = new Map, Lm = new Map, Il = [], yne = "mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" "); +function Bj(e, t) { + switch (e) { + case "focusin": + case "focusout": + Yl = null; + break; + case "dragenter": + case "dragleave": + Xl = null; + break; + case "mouseover": + case "mouseout": + Ql = null; + break; + case "pointerover": + case "pointerout": + Nm.delete(t.pointerId); + break; + case "gotpointercapture": + case "lostpointercapture": + Lm.delete(t.pointerId) + } +} +function xp(e, t, n, r, o, i) { + return e === null || e.nativeEvent !== i ? (e = { + blockedOn: t, + domEventName: n, + eventSystemFlags: r, + nativeEvent: i, + targetContainers: [o] + }, + t !== null && (t = Mg(t), + t !== null && PT(t)), + e) : (e.eventSystemFlags |= r, + t = e.targetContainers, + o !== null && t.indexOf(o) === -1 && t.push(o), + e) +} +function bne(e, t, n, r, o) { + switch (t) { + case "focusin": + return Yl = xp(Yl, e, t, n, r, o), + !0; + case "dragenter": + return Xl = xp(Xl, e, t, n, r, o), + !0; + case "mouseover": + return Ql = xp(Ql, e, t, n, r, o), + !0; + case "pointerover": + var i = o.pointerId; + return Nm.set(i, xp(Nm.get(i) || null, e, t, n, r, o)), + !0; + case "gotpointercapture": + return i = o.pointerId, + Lm.set(i, xp(Lm.get(i) || null, e, t, n, r, o)), + !0 + } + return !1 +} +function u5(e) { + var t = pu(e.target); + if (t !== null) { + var n = id(t); + if (n !== null) { + if (t = n.tag, + t === 13) { + if (t = Z4(n), + t !== null) { + e.blockedOn = t, + c5(e.priority, function() { + a5(n) + }); + return + } + } else if (t === 3 && n.stateNode.current.memoizedState.isDehydrated) { + e.blockedOn = n.tag === 3 ? n.stateNode.containerInfo : null; + return + } + } + } + e.blockedOn = null +} +function v0(e) { + if (e.blockedOn !== null) + return !1; + for (var t = e.targetContainers; 0 < t.length; ) { + var n = jE(e.domEventName, e.eventSystemFlags, t[0], e.nativeEvent); + if (n === null) { + n = e.nativeEvent; + var r = new n.constructor(n.type,n); + DE = r, + n.target.dispatchEvent(r), + DE = null + } else + return t = Mg(n), + t !== null && PT(t), + e.blockedOn = n, + !1; + t.shift() + } + return !0 +} +function Vj(e, t, n) { + v0(e) && n.delete(t) +} +function _ne() { + OE = !1, + Yl !== null && v0(Yl) && (Yl = null), + Xl !== null && v0(Xl) && (Xl = null), + Ql !== null && v0(Ql) && (Ql = null), + Nm.forEach(Vj), + Lm.forEach(Vj) +} +function wp(e, t) { + e.blockedOn === t && (e.blockedOn = null, + OE || (OE = !0, + ci.unstable_scheduleCallback(ci.unstable_NormalPriority, _ne))) +} +function $m(e) { + function t(o) { + return wp(o, e) + } + if (0 < wy.length) { + wp(wy[0], e); + for (var n = 1; n < wy.length; n++) { + var r = wy[n]; + r.blockedOn === e && (r.blockedOn = null) + } + } + for (Yl !== null && wp(Yl, e), + Xl !== null && wp(Xl, e), + Ql !== null && wp(Ql, e), + Nm.forEach(t), + Lm.forEach(t), + n = 0; n < Il.length; n++) + r = Il[n], + r.blockedOn === e && (r.blockedOn = null); + for (; 0 < Il.length && (n = Il[0], + n.blockedOn === null); ) + u5(n), + n.blockedOn === null && Il.shift() +} +var Cf = el.ReactCurrentBatchConfig + , eb = !0; +function xne(e, t, n, r) { + var o = Jt + , i = Cf.transition; + Cf.transition = null; + try { + Jt = 1, + TT(e, t, n, r) + } finally { + Jt = o, + Cf.transition = i + } +} +function wne(e, t, n, r) { + var o = Jt + , i = Cf.transition; + Cf.transition = null; + try { + Jt = 4, + TT(e, t, n, r) + } finally { + Jt = o, + Cf.transition = i + } +} +function TT(e, t, n, r) { + if (eb) { + var o = jE(e, t, n, r); + if (o === null) + vS(e, t, r, tb, n), + Bj(e, r); + else if (bne(o, e, t, n, r)) + r.stopPropagation(); + else if (Bj(e, r), + t & 4 && -1 < yne.indexOf(e)) { + for (; o !== null; ) { + var i = Mg(o); + if (i !== null && s5(i), + i = jE(e, t, n, r), + i === null && vS(e, t, r, tb, n), + i === o) + break; + o = i + } + o !== null && r.stopPropagation() + } else + vS(e, t, r, null, n) + } +} +var tb = null; +function jE(e, t, n, r) { + if (tb = null, + e = CT(r), + e = pu(e), + e !== null) + if (t = id(e), + t === null) + e = null; + else if (n = t.tag, + n === 13) { + if (e = Z4(t), + e !== null) + return e; + e = null + } else if (n === 3) { + if (t.stateNode.current.memoizedState.isDehydrated) + return t.tag === 3 ? t.stateNode.containerInfo : null; + e = null + } else + t !== e && (e = null); + return tb = e, + null +} +function d5(e) { + switch (e) { + case "cancel": + case "click": + case "close": + case "contextmenu": + case "copy": + case "cut": + case "auxclick": + case "dblclick": + case "dragend": + case "dragstart": + case "drop": + case "focusin": + case "focusout": + case "input": + case "invalid": + case "keydown": + case "keypress": + case "keyup": + case "mousedown": + case "mouseup": + case "paste": + case "pause": + case "play": + case "pointercancel": + case "pointerdown": + case "pointerup": + case "ratechange": + case "reset": + case "resize": + case "seeked": + case "submit": + case "touchcancel": + case "touchend": + case "touchstart": + case "volumechange": + case "change": + case "selectionchange": + case "textInput": + case "compositionstart": + case "compositionend": + case "compositionupdate": + case "beforeblur": + case "afterblur": + case "beforeinput": + case "blur": + case "fullscreenchange": + case "focus": + case "hashchange": + case "popstate": + case "select": + case "selectstart": + return 1; + case "drag": + case "dragenter": + case "dragexit": + case "dragleave": + case "dragover": + case "mousemove": + case "mouseout": + case "mouseover": + case "pointermove": + case "pointerout": + case "pointerover": + case "scroll": + case "toggle": + case "touchmove": + case "wheel": + case "mouseenter": + case "mouseleave": + case "pointerenter": + case "pointerleave": + return 4; + case "message": + switch (cne()) { + case ET: + return 1; + case n5: + return 4; + case Z0: + case une: + return 16; + case r5: + return 536870912; + default: + return 16 + } + default: + return 16 + } +} +var Ul = null + , DT = null + , y0 = null; +function f5() { + if (y0) + return y0; + var e, t = DT, n = t.length, r, o = "value"in Ul ? Ul.value : Ul.textContent, i = o.length; + for (e = 0; e < n && t[e] === o[e]; e++) + ; + var s = n - e; + for (r = 1; r <= s && t[n - r] === o[i - r]; r++) + ; + return y0 = o.slice(e, 1 < r ? 1 - r : void 0) +} +function b0(e) { + var t = e.keyCode; + return "charCode"in e ? (e = e.charCode, + e === 0 && t === 13 && (e = 13)) : e = t, + e === 10 && (e = 13), + 32 <= e || e === 13 ? e : 0 +} +function Sy() { + return !0 +} +function zj() { + return !1 +} +function bi(e) { + function t(n, r, o, i, s) { + this._reactName = n, + this._targetInst = o, + this.type = r, + this.nativeEvent = i, + this.target = s, + this.currentTarget = null; + for (var a in e) + e.hasOwnProperty(a) && (n = e[a], + this[a] = n ? n(i) : i[a]); + return this.isDefaultPrevented = (i.defaultPrevented != null ? i.defaultPrevented : i.returnValue === !1) ? Sy : zj, + this.isPropagationStopped = zj, + this + } + return Dn(t.prototype, { + preventDefault: function() { + this.defaultPrevented = !0; + var n = this.nativeEvent; + n && (n.preventDefault ? n.preventDefault() : typeof n.returnValue != "unknown" && (n.returnValue = !1), + this.isDefaultPrevented = Sy) + }, + stopPropagation: function() { + var n = this.nativeEvent; + n && (n.stopPropagation ? n.stopPropagation() : typeof n.cancelBubble != "unknown" && (n.cancelBubble = !0), + this.isPropagationStopped = Sy) + }, + persist: function() {}, + isPersistent: Sy + }), + t +} +var Th = { + eventPhase: 0, + bubbles: 0, + cancelable: 0, + timeStamp: function(e) { + return e.timeStamp || Date.now() + }, + defaultPrevented: 0, + isTrusted: 0 +}, AT = bi(Th), Ig = Dn({}, Th, { + view: 0, + detail: 0 +}), Sne = bi(Ig), lS, cS, Sp, v1 = Dn({}, Ig, { + screenX: 0, + screenY: 0, + clientX: 0, + clientY: 0, + pageX: 0, + pageY: 0, + ctrlKey: 0, + shiftKey: 0, + altKey: 0, + metaKey: 0, + getModifierState: kT, + button: 0, + buttons: 0, + relatedTarget: function(e) { + return e.relatedTarget === void 0 ? e.fromElement === e.srcElement ? e.toElement : e.fromElement : e.relatedTarget + }, + movementX: function(e) { + return "movementX"in e ? e.movementX : (e !== Sp && (Sp && e.type === "mousemove" ? (lS = e.screenX - Sp.screenX, + cS = e.screenY - Sp.screenY) : cS = lS = 0, + Sp = e), + lS) + }, + movementY: function(e) { + return "movementY"in e ? e.movementY : cS + } +}), Hj = bi(v1), Cne = Dn({}, v1, { + dataTransfer: 0 +}), Ene = bi(Cne), Rne = Dn({}, Ig, { + relatedTarget: 0 +}), uS = bi(Rne), Pne = Dn({}, Th, { + animationName: 0, + elapsedTime: 0, + pseudoElement: 0 +}), Tne = bi(Pne), Dne = Dn({}, Th, { + clipboardData: function(e) { + return "clipboardData"in e ? e.clipboardData : window.clipboardData + } +}), Ane = bi(Dne), kne = Dn({}, Th, { + data: 0 +}), Uj = bi(kne), Ine = { + Esc: "Escape", + Spacebar: " ", + Left: "ArrowLeft", + Up: "ArrowUp", + Right: "ArrowRight", + Down: "ArrowDown", + Del: "Delete", + Win: "OS", + Menu: "ContextMenu", + Apps: "ContextMenu", + Scroll: "ScrollLock", + MozPrintableKey: "Unidentified" +}, Mne = { + 8: "Backspace", + 9: "Tab", + 12: "Clear", + 13: "Enter", + 16: "Shift", + 17: "Control", + 18: "Alt", + 19: "Pause", + 20: "CapsLock", + 27: "Escape", + 32: " ", + 33: "PageUp", + 34: "PageDown", + 35: "End", + 36: "Home", + 37: "ArrowLeft", + 38: "ArrowUp", + 39: "ArrowRight", + 40: "ArrowDown", + 45: "Insert", + 46: "Delete", + 112: "F1", + 113: "F2", + 114: "F3", + 115: "F4", + 116: "F5", + 117: "F6", + 118: "F7", + 119: "F8", + 120: "F9", + 121: "F10", + 122: "F11", + 123: "F12", + 144: "NumLock", + 145: "ScrollLock", + 224: "Meta" +}, One = { + Alt: "altKey", + Control: "ctrlKey", + Meta: "metaKey", + Shift: "shiftKey" +}; +function jne(e) { + var t = this.nativeEvent; + return t.getModifierState ? t.getModifierState(e) : (e = One[e]) ? !!t[e] : !1 +} +function kT() { + return jne +} +var Fne = Dn({}, Ig, { + key: function(e) { + if (e.key) { + var t = Ine[e.key] || e.key; + if (t !== "Unidentified") + return t + } + return e.type === "keypress" ? (e = b0(e), + e === 13 ? "Enter" : String.fromCharCode(e)) : e.type === "keydown" || e.type === "keyup" ? Mne[e.keyCode] || "Unidentified" : "" + }, + code: 0, + location: 0, + ctrlKey: 0, + shiftKey: 0, + altKey: 0, + metaKey: 0, + repeat: 0, + locale: 0, + getModifierState: kT, + charCode: function(e) { + return e.type === "keypress" ? b0(e) : 0 + }, + keyCode: function(e) { + return e.type === "keydown" || e.type === "keyup" ? e.keyCode : 0 + }, + which: function(e) { + return e.type === "keypress" ? b0(e) : e.type === "keydown" || e.type === "keyup" ? e.keyCode : 0 + } +}) + , Nne = bi(Fne) + , Lne = Dn({}, v1, { + pointerId: 0, + width: 0, + height: 0, + pressure: 0, + tangentialPressure: 0, + tiltX: 0, + tiltY: 0, + twist: 0, + pointerType: 0, + isPrimary: 0 +}) + , Gj = bi(Lne) + , $ne = Dn({}, Ig, { + touches: 0, + targetTouches: 0, + changedTouches: 0, + altKey: 0, + metaKey: 0, + ctrlKey: 0, + shiftKey: 0, + getModifierState: kT +}) + , Bne = bi($ne) + , Vne = Dn({}, Th, { + propertyName: 0, + elapsedTime: 0, + pseudoElement: 0 +}) + , zne = bi(Vne) + , Hne = Dn({}, v1, { + deltaX: function(e) { + return "deltaX"in e ? e.deltaX : "wheelDeltaX"in e ? -e.wheelDeltaX : 0 + }, + deltaY: function(e) { + return "deltaY"in e ? e.deltaY : "wheelDeltaY"in e ? -e.wheelDeltaY : "wheelDelta"in e ? -e.wheelDelta : 0 + }, + deltaZ: 0, + deltaMode: 0 +}) + , Une = bi(Hne) + , Gne = [9, 13, 27, 32] + , IT = Ha && "CompositionEvent"in window + , fm = null; +Ha && "documentMode"in document && (fm = document.documentMode); +var Wne = Ha && "TextEvent"in window && !fm + , h5 = Ha && (!IT || fm && 8 < fm && 11 >= fm) + , Wj = " " + , qj = !1; +function p5(e, t) { + switch (e) { + case "keyup": + return Gne.indexOf(t.keyCode) !== -1; + case "keydown": + return t.keyCode !== 229; + case "keypress": + case "mousedown": + case "focusout": + return !0; + default: + return !1 + } +} +function m5(e) { + return e = e.detail, + typeof e == "object" && "data"in e ? e.data : null +} +var ef = !1; +function qne(e, t) { + switch (e) { + case "compositionend": + return m5(t); + case "keypress": + return t.which !== 32 ? null : (qj = !0, + Wj); + case "textInput": + return e = t.data, + e === Wj && qj ? null : e; + default: + return null + } +} +function Kne(e, t) { + if (ef) + return e === "compositionend" || !IT && p5(e, t) ? (e = f5(), + y0 = DT = Ul = null, + ef = !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.char.length) + return t.char; + if (t.which) + return String.fromCharCode(t.which) + } + return null; + case "compositionend": + return h5 && t.locale !== "ko" ? null : t.data; + default: + return null + } +} +var Yne = { + color: !0, + date: !0, + datetime: !0, + "datetime-local": !0, + email: !0, + month: !0, + number: !0, + password: !0, + range: !0, + search: !0, + tel: !0, + text: !0, + time: !0, + url: !0, + week: !0 +}; +function Kj(e) { + var t = e && e.nodeName && e.nodeName.toLowerCase(); + return t === "input" ? !!Yne[e.type] : t === "textarea" +} +function g5(e, t, n, r) { + q4(r), + t = nb(t, "onChange"), + 0 < t.length && (n = new AT("onChange","change",null,n,r), + e.push({ + event: n, + listeners: t + })) +} +var hm = null + , Bm = null; +function Xne(e) { + P5(e, 0) +} +function y1(e) { + var t = rf(e); + if (B4(t)) + return e +} +function Qne(e, t) { + if (e === "change") + return t +} +var v5 = !1; +if (Ha) { + var dS; + if (Ha) { + var fS = "oninput"in document; + if (!fS) { + var Yj = document.createElement("div"); + Yj.setAttribute("oninput", "return;"), + fS = typeof Yj.oninput == "function" + } + dS = fS + } else + dS = !1; + v5 = dS && (!document.documentMode || 9 < document.documentMode) +} +function Xj() { + hm && (hm.detachEvent("onpropertychange", y5), + Bm = hm = null) +} +function y5(e) { + if (e.propertyName === "value" && y1(Bm)) { + var t = []; + g5(t, Bm, e, CT(e)), + Q4(Xne, t) + } +} +function Zne(e, t, n) { + e === "focusin" ? (Xj(), + hm = t, + Bm = n, + hm.attachEvent("onpropertychange", y5)) : e === "focusout" && Xj() +} +function Jne(e) { + if (e === "selectionchange" || e === "keyup" || e === "keydown") + return y1(Bm) +} +function ere(e, t) { + if (e === "click") + return y1(t) +} +function tre(e, t) { + if (e === "input" || e === "change") + return y1(t) +} +function nre(e, t) { + return e === t && (e !== 0 || 1 / e === 1 / t) || e !== e && t !== t +} +var Ts = typeof Object.is == "function" ? Object.is : nre; +function Vm(e, t) { + if (Ts(e, t)) + return !0; + if (typeof e != "object" || e === null || typeof t != "object" || t === null) + return !1; + var n = Object.keys(e) + , r = Object.keys(t); + if (n.length !== r.length) + return !1; + for (r = 0; r < n.length; r++) { + var o = n[r]; + if (!vE.call(t, o) || !Ts(e[o], t[o])) + return !1 + } + return !0 +} +function Qj(e) { + for (; e && e.firstChild; ) + e = e.firstChild; + return e +} +function Zj(e, t) { + var n = Qj(e); + e = 0; + for (var r; n; ) { + if (n.nodeType === 3) { + if (r = e + n.textContent.length, + e <= t && r >= 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 = Qj(n) + } +} +function b5(e, t) { + return e && t ? e === t ? !0 : e && e.nodeType === 3 ? !1 : t && t.nodeType === 3 ? b5(e, t.parentNode) : "contains"in e ? e.contains(t) : e.compareDocumentPosition ? !!(e.compareDocumentPosition(t) & 16) : !1 : !1 +} +function _5() { + for (var e = window, t = Y0(); t instanceof e.HTMLIFrameElement; ) { + try { + var n = typeof t.contentWindow.location.href == "string" + } catch { + n = !1 + } + if (n) + e = t.contentWindow; + else + break; + t = Y0(e.document) + } + return t +} +function MT(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 rre(e) { + var t = _5() + , n = e.focusedElem + , r = e.selectionRange; + if (t !== n && n && n.ownerDocument && b5(n.ownerDocument.documentElement, n)) { + if (r !== null && MT(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 o = n.textContent.length + , i = Math.min(r.start, o); + r = r.end === void 0 ? i : Math.min(r.end, o), + !e.extend && i > r && (o = r, + r = i, + i = o), + o = Zj(n, i); + var s = Zj(n, r); + o && s && (e.rangeCount !== 1 || e.anchorNode !== o.node || e.anchorOffset !== o.offset || e.focusNode !== s.node || e.focusOffset !== s.offset) && (t = t.createRange(), + t.setStart(o.node, o.offset), + e.removeAllRanges(), + i > 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 < t.length; n++) + e = t[n], + e.element.scrollLeft = e.left, + e.element.scrollTop = e.top + } +} +var ore = Ha && "documentMode"in document && 11 >= document.documentMode + , tf = null + , FE = null + , pm = null + , NE = !1; +function Jj(e, t, n) { + var r = n.window === n ? n.document : n.nodeType === 9 ? n : n.ownerDocument; + NE || tf == null || tf !== Y0(r) || (r = tf, + "selectionStart"in r && MT(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 + }), + pm && Vm(pm, r) || (pm = r, + r = nb(FE, "onSelect"), + 0 < r.length && (t = new AT("onSelect","select",null,t,n), + e.push({ + event: t, + listeners: r + }), + t.target = tf))) +} +function Cy(e, t) { + var n = {}; + return n[e.toLowerCase()] = t.toLowerCase(), + n["Webkit" + e] = "webkit" + t, + n["Moz" + e] = "moz" + t, + n +} +var nf = { + animationend: Cy("Animation", "AnimationEnd"), + animationiteration: Cy("Animation", "AnimationIteration"), + animationstart: Cy("Animation", "AnimationStart"), + transitionend: Cy("Transition", "TransitionEnd") +} + , hS = {} + , x5 = {}; +Ha && (x5 = document.createElement("div").style, +"AnimationEvent"in window || (delete nf.animationend.animation, +delete nf.animationiteration.animation, +delete nf.animationstart.animation), +"TransitionEvent"in window || delete nf.transitionend.transition); +function b1(e) { + if (hS[e]) + return hS[e]; + if (!nf[e]) + return e; + var t = nf[e], n; + for (n in t) + if (t.hasOwnProperty(n) && n in x5) + return hS[e] = t[n]; + return e +} +var w5 = b1("animationend") + , S5 = b1("animationiteration") + , C5 = b1("animationstart") + , E5 = b1("transitionend") + , R5 = new Map + , eF = "abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" "); +function _c(e, t) { + R5.set(e, t), + od(t, [e]) +} +for (var pS = 0; pS < eF.length; pS++) { + var mS = eF[pS] + , ire = mS.toLowerCase() + , sre = mS[0].toUpperCase() + mS.slice(1); + _c(ire, "on" + sre) +} +_c(w5, "onAnimationEnd"); +_c(S5, "onAnimationIteration"); +_c(C5, "onAnimationStart"); +_c("dblclick", "onDoubleClick"); +_c("focusin", "onFocus"); +_c("focusout", "onBlur"); +_c(E5, "onTransitionEnd"); +Kf("onMouseEnter", ["mouseout", "mouseover"]); +Kf("onMouseLeave", ["mouseout", "mouseover"]); +Kf("onPointerEnter", ["pointerout", "pointerover"]); +Kf("onPointerLeave", ["pointerout", "pointerover"]); +od("onChange", "change click focusin focusout input keydown keyup selectionchange".split(" ")); +od("onSelect", "focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")); +od("onBeforeInput", ["compositionend", "keypress", "textInput", "paste"]); +od("onCompositionEnd", "compositionend focusout keydown keypress keyup mousedown".split(" ")); +od("onCompositionStart", "compositionstart focusout keydown keypress keyup mousedown".split(" ")); +od("onCompositionUpdate", "compositionupdate focusout keydown keypress keyup mousedown".split(" ")); +var Zp = "abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" ") + , are = new Set("cancel close invalid load scroll toggle".split(" ").concat(Zp)); +function tF(e, t, n) { + var r = e.type || "unknown-event"; + e.currentTarget = n, + ine(r, t, void 0, e), + e.currentTarget = null +} +function P5(e, t) { + t = (t & 4) !== 0; + for (var n = 0; n < e.length; n++) { + var r = e[n] + , o = r.event; + r = r.listeners; + e: { + var i = void 0; + if (t) + for (var s = r.length - 1; 0 <= s; s--) { + var a = r[s] + , l = a.instance + , c = a.currentTarget; + if (a = a.listener, + l !== i && o.isPropagationStopped()) + break e; + tF(o, a, c), + i = l + } + else + for (s = 0; s < r.length; s++) { + if (a = r[s], + l = a.instance, + c = a.currentTarget, + a = a.listener, + l !== i && o.isPropagationStopped()) + break e; + tF(o, a, c), + i = l + } + } + } + if (Q0) + throw e = IE, + Q0 = !1, + IE = null, + e +} +function fn(e, t) { + var n = t[zE]; + n === void 0 && (n = t[zE] = new Set); + var r = e + "__bubble"; + n.has(r) || (T5(t, e, 2, !1), + n.add(r)) +} +function gS(e, t, n) { + var r = 0; + t && (r |= 4), + T5(n, e, r, t) +} +var Ey = "_reactListening" + Math.random().toString(36).slice(2); +function zm(e) { + if (!e[Ey]) { + e[Ey] = !0, + j4.forEach(function(n) { + n !== "selectionchange" && (are.has(n) || gS(n, !1, e), + gS(n, !0, e)) + }); + var t = e.nodeType === 9 ? e : e.ownerDocument; + t === null || t[Ey] || (t[Ey] = !0, + gS("selectionchange", !1, t)) + } +} +function T5(e, t, n, r) { + switch (d5(t)) { + case 1: + var o = xne; + break; + case 4: + o = wne; + break; + default: + o = TT + } + n = o.bind(null, t, n, e), + o = void 0, + !kE || t !== "touchstart" && t !== "touchmove" && t !== "wheel" || (o = !0), + r ? o !== void 0 ? e.addEventListener(t, n, { + capture: !0, + passive: o + }) : e.addEventListener(t, n, !0) : o !== void 0 ? e.addEventListener(t, n, { + passive: o + }) : e.addEventListener(t, n, !1) +} +function vS(e, t, n, r, o) { + var i = r; + if (!(t & 1) && !(t & 2) && r !== null) + e: for (; ; ) { + if (r === null) + return; + var s = r.tag; + if (s === 3 || s === 4) { + var a = r.stateNode.containerInfo; + if (a === o || a.nodeType === 8 && a.parentNode === o) + break; + if (s === 4) + for (s = r.return; s !== null; ) { + var l = s.tag; + if ((l === 3 || l === 4) && (l = s.stateNode.containerInfo, + l === o || l.nodeType === 8 && l.parentNode === o)) + return; + s = s.return + } + for (; a !== null; ) { + if (s = pu(a), + s === null) + return; + if (l = s.tag, + l === 5 || l === 6) { + r = i = s; + continue e + } + a = a.parentNode + } + } + r = r.return + } + Q4(function() { + var c = i + , u = CT(n) + , d = []; + e: { + var h = R5.get(e); + if (h !== void 0) { + var m = AT + , v = e; + switch (e) { + case "keypress": + if (b0(n) === 0) + break e; + case "keydown": + case "keyup": + m = Nne; + break; + case "focusin": + v = "focus", + m = uS; + break; + case "focusout": + v = "blur", + m = uS; + break; + case "beforeblur": + case "afterblur": + m = uS; + break; + case "click": + if (n.button === 2) + break e; + case "auxclick": + case "dblclick": + case "mousedown": + case "mousemove": + case "mouseup": + case "mouseout": + case "mouseover": + case "contextmenu": + m = Hj; + break; + case "drag": + case "dragend": + case "dragenter": + case "dragexit": + case "dragleave": + case "dragover": + case "dragstart": + case "drop": + m = Ene; + break; + case "touchcancel": + case "touchend": + case "touchmove": + case "touchstart": + m = Bne; + break; + case w5: + case S5: + case C5: + m = Tne; + break; + case E5: + m = zne; + break; + case "scroll": + m = Sne; + break; + case "wheel": + m = Une; + break; + case "copy": + case "cut": + case "paste": + m = Ane; + break; + case "gotpointercapture": + case "lostpointercapture": + case "pointercancel": + case "pointerdown": + case "pointermove": + case "pointerout": + case "pointerover": + case "pointerup": + m = Gj + } + var y = (t & 4) !== 0 + , b = !y && e === "scroll" + , _ = y ? h !== null ? h + "Capture" : null : h; + y = []; + for (var x = c, w; x !== null; ) { + w = x; + var E = w.stateNode; + if (w.tag === 5 && E !== null && (w = E, + _ !== null && (E = Fm(x, _), + E != null && y.push(Hm(x, E, w)))), + b) + break; + x = x.return + } + 0 < y.length && (h = new m(h,v,null,n,u), + d.push({ + event: h, + listeners: y + })) + } + } + if (!(t & 7)) { + e: { + if (h = e === "mouseover" || e === "pointerover", + m = e === "mouseout" || e === "pointerout", + h && n !== DE && (v = n.relatedTarget || n.fromElement) && (pu(v) || v[Ua])) + break e; + if ((m || h) && (h = u.window === u ? u : (h = u.ownerDocument) ? h.defaultView || h.parentWindow : window, + m ? (v = n.relatedTarget || n.toElement, + m = c, + v = v ? pu(v) : null, + v !== null && (b = id(v), + v !== b || v.tag !== 5 && v.tag !== 6) && (v = null)) : (m = null, + v = c), + m !== v)) { + if (y = Hj, + E = "onMouseLeave", + _ = "onMouseEnter", + x = "mouse", + (e === "pointerout" || e === "pointerover") && (y = Gj, + E = "onPointerLeave", + _ = "onPointerEnter", + x = "pointer"), + b = m == null ? h : rf(m), + w = v == null ? h : rf(v), + h = new y(E,x + "leave",m,n,u), + h.target = b, + h.relatedTarget = w, + E = null, + pu(u) === c && (y = new y(_,x + "enter",v,n,u), + y.target = w, + y.relatedTarget = b, + E = y), + b = E, + m && v) + t: { + for (y = m, + _ = v, + x = 0, + w = y; w; w = Md(w)) + x++; + for (w = 0, + E = _; E; E = Md(E)) + w++; + for (; 0 < x - w; ) + y = Md(y), + x--; + for (; 0 < w - x; ) + _ = Md(_), + w--; + for (; x--; ) { + if (y === _ || _ !== null && y === _.alternate) + break t; + y = Md(y), + _ = Md(_) + } + y = null + } + else + y = null; + m !== null && nF(d, h, m, y, !1), + v !== null && b !== null && nF(d, b, v, y, !0) + } + } + e: { + if (h = c ? rf(c) : window, + m = h.nodeName && h.nodeName.toLowerCase(), + m === "select" || m === "input" && h.type === "file") + var R = Qne; + else if (Kj(h)) + if (v5) + R = tre; + else { + R = Jne; + var P = Zne + } + else + (m = h.nodeName) && m.toLowerCase() === "input" && (h.type === "checkbox" || h.type === "radio") && (R = ere); + if (R && (R = R(e, c))) { + g5(d, R, n, u); + break e + } + P && P(e, h, c), + e === "focusout" && (P = h._wrapperState) && P.controlled && h.type === "number" && CE(h, "number", h.value) + } + switch (P = c ? rf(c) : window, + e) { + case "focusin": + (Kj(P) || P.contentEditable === "true") && (tf = P, + FE = c, + pm = null); + break; + case "focusout": + pm = FE = tf = null; + break; + case "mousedown": + NE = !0; + break; + case "contextmenu": + case "mouseup": + case "dragend": + NE = !1, + Jj(d, n, u); + break; + case "selectionchange": + if (ore) + break; + case "keydown": + case "keyup": + Jj(d, n, u) + } + var D; + if (IT) + e: { + switch (e) { + case "compositionstart": + var T = "onCompositionStart"; + break e; + case "compositionend": + T = "onCompositionEnd"; + break e; + case "compositionupdate": + T = "onCompositionUpdate"; + break e + } + T = void 0 + } + else + ef ? p5(e, n) && (T = "onCompositionEnd") : e === "keydown" && n.keyCode === 229 && (T = "onCompositionStart"); + T && (h5 && n.locale !== "ko" && (ef || T !== "onCompositionStart" ? T === "onCompositionEnd" && ef && (D = f5()) : (Ul = u, + DT = "value"in Ul ? Ul.value : Ul.textContent, + ef = !0)), + P = nb(c, T), + 0 < P.length && (T = new Uj(T,e,null,n,u), + d.push({ + event: T, + listeners: P + }), + D ? T.data = D : (D = m5(n), + D !== null && (T.data = D)))), + (D = Wne ? qne(e, n) : Kne(e, n)) && (c = nb(c, "onBeforeInput"), + 0 < c.length && (u = new Uj("onBeforeInput","beforeinput",null,n,u), + d.push({ + event: u, + listeners: c + }), + u.data = D)) + } + P5(d, t) + }) +} +function Hm(e, t, n) { + return { + instance: e, + listener: t, + currentTarget: n + } +} +function nb(e, t) { + for (var n = t + "Capture", r = []; e !== null; ) { + var o = e + , i = o.stateNode; + o.tag === 5 && i !== null && (o = i, + i = Fm(e, n), + i != null && r.unshift(Hm(e, i, o)), + i = Fm(e, t), + i != null && r.push(Hm(e, i, o))), + e = e.return + } + return r +} +function Md(e) { + if (e === null) + return null; + do + e = e.return; + while (e && e.tag !== 5); + return e || null +} +function nF(e, t, n, r, o) { + for (var i = t._reactName, s = []; n !== null && n !== r; ) { + var a = n + , l = a.alternate + , c = a.stateNode; + if (l !== null && l === r) + break; + a.tag === 5 && c !== null && (a = c, + o ? (l = Fm(n, i), + l != null && s.unshift(Hm(n, l, a))) : o || (l = Fm(n, i), + l != null && s.push(Hm(n, l, a)))), + n = n.return + } + s.length !== 0 && e.push({ + event: t, + listeners: s + }) +} +var lre = /\r\n?/g + , cre = /\u0000|\uFFFD/g; +function rF(e) { + return (typeof e == "string" ? e : "" + e).replace(lre, ` +`).replace(cre, "") +} +function Ry(e, t, n) { + if (t = rF(t), + rF(e) !== t && n) + throw Error(Oe(425)) +} +function rb() {} +var LE = null + , $E = null; +function BE(e, t) { + return e === "textarea" || e === "noscript" || typeof t.children == "string" || typeof t.children == "number" || typeof t.dangerouslySetInnerHTML == "object" && t.dangerouslySetInnerHTML !== null && t.dangerouslySetInnerHTML.__html != null +} +var VE = typeof setTimeout == "function" ? setTimeout : void 0 + , ure = typeof clearTimeout == "function" ? clearTimeout : void 0 + , oF = typeof Promise == "function" ? Promise : void 0 + , dre = typeof queueMicrotask == "function" ? queueMicrotask : typeof oF < "u" ? function(e) { + return oF.resolve(null).then(e).catch(fre) +} +: VE; +function fre(e) { + setTimeout(function() { + throw e + }) +} +function yS(e, t) { + var n = t + , r = 0; + do { + var o = n.nextSibling; + if (e.removeChild(n), + o && o.nodeType === 8) + if (n = o.data, + n === "/$") { + if (r === 0) { + e.removeChild(o), + $m(t); + return + } + r-- + } else + n !== "$" && n !== "$?" && n !== "$!" || r++; + n = o + } while (n); + $m(t) +} +function Zl(e) { + for (; e != null; e = e.nextSibling) { + var t = e.nodeType; + if (t === 1 || t === 3) + break; + if (t === 8) { + if (t = e.data, + t === "$" || t === "$!" || t === "$?") + break; + if (t === "/$") + return null + } + } + return e +} +function iF(e) { + e = e.previousSibling; + for (var t = 0; e; ) { + if (e.nodeType === 8) { + var n = e.data; + if (n === "$" || n === "$!" || n === "$?") { + if (t === 0) + return e; + t-- + } else + n === "/$" && t++ + } + e = e.previousSibling + } + return null +} +var Dh = Math.random().toString(36).slice(2) + , Zs = "__reactFiber$" + Dh + , Um = "__reactProps$" + Dh + , Ua = "__reactContainer$" + Dh + , zE = "__reactEvents$" + Dh + , hre = "__reactListeners$" + Dh + , pre = "__reactHandles$" + Dh; +function pu(e) { + var t = e[Zs]; + if (t) + return t; + for (var n = e.parentNode; n; ) { + if (t = n[Ua] || n[Zs]) { + if (n = t.alternate, + t.child !== null || n !== null && n.child !== null) + for (e = iF(e); e !== null; ) { + if (n = e[Zs]) + return n; + e = iF(e) + } + return t + } + e = n, + n = e.parentNode + } + return null +} +function Mg(e) { + return e = e[Zs] || e[Ua], + !e || e.tag !== 5 && e.tag !== 6 && e.tag !== 13 && e.tag !== 3 ? null : e +} +function rf(e) { + if (e.tag === 5 || e.tag === 6) + return e.stateNode; + throw Error(Oe(33)) +} +function _1(e) { + return e[Um] || null +} +var HE = [] + , of = -1; +function xc(e) { + return { + current: e + } +} +function hn(e) { + 0 > of || (e.current = HE[of], + HE[of] = null, + of--) +} +function cn(e, t) { + of++, + HE[of] = e.current, + e.current = t +} +var lc = {} + , Ur = xc(lc) + , To = xc(!1) + , Vu = lc; +function Yf(e, t) { + var n = e.type.contextTypes; + if (!n) + return lc; + var r = e.stateNode; + if (r && r.__reactInternalMemoizedUnmaskedChildContext === t) + return r.__reactInternalMemoizedMaskedChildContext; + var o = {}, i; + for (i in n) + o[i] = t[i]; + return r && (e = e.stateNode, + e.__reactInternalMemoizedUnmaskedChildContext = t, + e.__reactInternalMemoizedMaskedChildContext = o), + o +} +function Do(e) { + return e = e.childContextTypes, + e != null +} +function ob() { + hn(To), + hn(Ur) +} +function sF(e, t, n) { + if (Ur.current !== lc) + throw Error(Oe(168)); + cn(Ur, t), + cn(To, n) +} +function D5(e, t, n) { + var r = e.stateNode; + if (t = t.childContextTypes, + typeof r.getChildContext != "function") + return n; + r = r.getChildContext(); + for (var o in r) + if (!(o in t)) + throw Error(Oe(108, Zte(e) || "Unknown", o)); + return Dn({}, n, r) +} +function ib(e) { + return e = (e = e.stateNode) && e.__reactInternalMemoizedMergedChildContext || lc, + Vu = Ur.current, + cn(Ur, e), + cn(To, To.current), + !0 +} +function aF(e, t, n) { + var r = e.stateNode; + if (!r) + throw Error(Oe(169)); + n ? (e = D5(e, t, Vu), + r.__reactInternalMemoizedMergedChildContext = e, + hn(To), + hn(Ur), + cn(Ur, e)) : hn(To), + cn(To, n) +} +var Ra = null + , x1 = !1 + , bS = !1; +function A5(e) { + Ra === null ? Ra = [e] : Ra.push(e) +} +function mre(e) { + x1 = !0, + A5(e) +} +function wc() { + if (!bS && Ra !== null) { + bS = !0; + var e = 0 + , t = Jt; + try { + var n = Ra; + for (Jt = 1; e < n.length; e++) { + var r = n[e]; + do + r = r(!0); + while (r !== null) + } + Ra = null, + x1 = !1 + } catch (o) { + throw Ra !== null && (Ra = Ra.slice(e + 1)), + t5(ET, wc), + o + } finally { + Jt = t, + bS = !1 + } + } + return null +} +var sf = [] + , af = 0 + , sb = null + , ab = 0 + , Fi = [] + , Ni = 0 + , zu = null + , Da = 1 + , Aa = ""; +function Jc(e, t) { + sf[af++] = ab, + sf[af++] = sb, + sb = e, + ab = t +} +function k5(e, t, n) { + Fi[Ni++] = Da, + Fi[Ni++] = Aa, + Fi[Ni++] = zu, + zu = e; + var r = Da; + e = Aa; + var o = 32 - Cs(r) - 1; + r &= ~(1 << o), + n += 1; + var i = 32 - Cs(t) + o; + if (30 < i) { + var s = o - o % 5; + i = (r & (1 << s) - 1).toString(32), + r >>= s, + o -= s, + Da = 1 << 32 - Cs(t) + o | n << o | r, + Aa = i + e + } else + Da = 1 << i | n << o | r, + Aa = e +} +function OT(e) { + e.return !== null && (Jc(e, 1), + k5(e, 1, 0)) +} +function jT(e) { + for (; e === sb; ) + sb = sf[--af], + sf[af] = null, + ab = sf[--af], + sf[af] = null; + for (; e === zu; ) + zu = Fi[--Ni], + Fi[Ni] = null, + Aa = Fi[--Ni], + Fi[Ni] = null, + Da = Fi[--Ni], + Fi[Ni] = null +} +var ri = null + , ti = null + , bn = !1 + , ys = null; +function I5(e, t) { + var n = $i(5, null, null, 0); + n.elementType = "DELETED", + n.stateNode = t, + n.return = e, + t = e.deletions, + t === null ? (e.deletions = [n], + e.flags |= 16) : t.push(n) +} +function lF(e, t) { + switch (e.tag) { + case 5: + var n = e.type; + return t = t.nodeType !== 1 || n.toLowerCase() !== t.nodeName.toLowerCase() ? null : t, + t !== null ? (e.stateNode = t, + ri = e, + ti = Zl(t.firstChild), + !0) : !1; + case 6: + return t = e.pendingProps === "" || t.nodeType !== 3 ? null : t, + t !== null ? (e.stateNode = t, + ri = e, + ti = null, + !0) : !1; + case 13: + return t = t.nodeType !== 8 ? null : t, + t !== null ? (n = zu !== null ? { + id: Da, + overflow: Aa + } : null, + e.memoizedState = { + dehydrated: t, + treeContext: n, + retryLane: 1073741824 + }, + n = $i(18, null, null, 0), + n.stateNode = t, + n.return = e, + e.child = n, + ri = e, + ti = null, + !0) : !1; + default: + return !1 + } +} +function UE(e) { + return (e.mode & 1) !== 0 && (e.flags & 128) === 0 +} +function GE(e) { + if (bn) { + var t = ti; + if (t) { + var n = t; + if (!lF(e, t)) { + if (UE(e)) + throw Error(Oe(418)); + t = Zl(n.nextSibling); + var r = ri; + t && lF(e, t) ? I5(r, n) : (e.flags = e.flags & -4097 | 2, + bn = !1, + ri = e) + } + } else { + if (UE(e)) + throw Error(Oe(418)); + e.flags = e.flags & -4097 | 2, + bn = !1, + ri = e + } + } +} +function cF(e) { + for (e = e.return; e !== null && e.tag !== 5 && e.tag !== 3 && e.tag !== 13; ) + e = e.return; + ri = e +} +function Py(e) { + if (e !== ri) + return !1; + if (!bn) + return cF(e), + bn = !0, + !1; + var t; + if ((t = e.tag !== 3) && !(t = e.tag !== 5) && (t = e.type, + t = t !== "head" && t !== "body" && !BE(e.type, e.memoizedProps)), + t && (t = ti)) { + if (UE(e)) + throw M5(), + Error(Oe(418)); + for (; t; ) + I5(e, t), + t = Zl(t.nextSibling) + } + if (cF(e), + e.tag === 13) { + if (e = e.memoizedState, + e = e !== null ? e.dehydrated : null, + !e) + throw Error(Oe(317)); + e: { + for (e = e.nextSibling, + t = 0; e; ) { + if (e.nodeType === 8) { + var n = e.data; + if (n === "/$") { + if (t === 0) { + ti = Zl(e.nextSibling); + break e + } + t-- + } else + n !== "$" && n !== "$!" && n !== "$?" || t++ + } + e = e.nextSibling + } + ti = null + } + } else + ti = ri ? Zl(e.stateNode.nextSibling) : null; + return !0 +} +function M5() { + for (var e = ti; e; ) + e = Zl(e.nextSibling) +} +function Xf() { + ti = ri = null, + bn = !1 +} +function FT(e) { + ys === null ? ys = [e] : ys.push(e) +} +var gre = el.ReactCurrentBatchConfig; +function Cp(e, t, n) { + if (e = n.ref, + e !== null && typeof e != "function" && typeof e != "object") { + if (n._owner) { + if (n = n._owner, + n) { + if (n.tag !== 1) + throw Error(Oe(309)); + var r = n.stateNode + } + if (!r) + throw Error(Oe(147, e)); + var o = r + , i = "" + e; + return t !== null && t.ref !== null && typeof t.ref == "function" && t.ref._stringRef === i ? t.ref : (t = function(s) { + var a = o.refs; + s === null ? delete a[i] : a[i] = s + } + , + t._stringRef = i, + t) + } + if (typeof e != "string") + throw Error(Oe(284)); + if (!n._owner) + throw Error(Oe(290, e)) + } + return e +} +function Ty(e, t) { + throw e = Object.prototype.toString.call(t), + Error(Oe(31, e === "[object Object]" ? "object with keys {" + Object.keys(t).join(", ") + "}" : e)) +} +function uF(e) { + var t = e._init; + return t(e._payload) +} +function O5(e) { + function t(_, x) { + if (e) { + var w = _.deletions; + w === null ? (_.deletions = [x], + _.flags |= 16) : w.push(x) + } + } + function n(_, x) { + if (!e) + return null; + for (; x !== null; ) + t(_, x), + x = x.sibling; + return null + } + function r(_, x) { + for (_ = new Map; x !== null; ) + x.key !== null ? _.set(x.key, x) : _.set(x.index, x), + x = x.sibling; + return _ + } + function o(_, x) { + return _ = nc(_, x), + _.index = 0, + _.sibling = null, + _ + } + function i(_, x, w) { + return _.index = w, + e ? (w = _.alternate, + w !== null ? (w = w.index, + w < x ? (_.flags |= 2, + x) : w) : (_.flags |= 2, + x)) : (_.flags |= 1048576, + x) + } + function s(_) { + return e && _.alternate === null && (_.flags |= 2), + _ + } + function a(_, x, w, E) { + return x === null || x.tag !== 6 ? (x = RS(w, _.mode, E), + x.return = _, + x) : (x = o(x, w), + x.return = _, + x) + } + function l(_, x, w, E) { + var R = w.type; + return R === Jd ? u(_, x, w.props.children, E, w.key) : x !== null && (x.elementType === R || typeof R == "object" && R !== null && R.$$typeof === Tl && uF(R) === x.type) ? (E = o(x, w.props), + E.ref = Cp(_, x, w), + E.return = _, + E) : (E = R0(w.type, w.key, w.props, null, _.mode, E), + E.ref = Cp(_, x, w), + E.return = _, + E) + } + function c(_, x, w, E) { + return x === null || x.tag !== 4 || x.stateNode.containerInfo !== w.containerInfo || x.stateNode.implementation !== w.implementation ? (x = PS(w, _.mode, E), + x.return = _, + x) : (x = o(x, w.children || []), + x.return = _, + x) + } + function u(_, x, w, E, R) { + return x === null || x.tag !== 7 ? (x = Mu(w, _.mode, E, R), + x.return = _, + x) : (x = o(x, w), + x.return = _, + x) + } + function d(_, x, w) { + if (typeof x == "string" && x !== "" || typeof x == "number") + return x = RS("" + x, _.mode, w), + x.return = _, + x; + if (typeof x == "object" && x !== null) { + switch (x.$$typeof) { + case vy: + return w = R0(x.type, x.key, x.props, null, _.mode, w), + w.ref = Cp(_, null, x), + w.return = _, + w; + case Zd: + return x = PS(x, _.mode, w), + x.return = _, + x; + case Tl: + var E = x._init; + return d(_, E(x._payload), w) + } + if (Xp(x) || bp(x)) + return x = Mu(x, _.mode, w, null), + x.return = _, + x; + Ty(_, x) + } + return null + } + function h(_, x, w, E) { + var R = x !== null ? x.key : null; + if (typeof w == "string" && w !== "" || typeof w == "number") + return R !== null ? null : a(_, x, "" + w, E); + if (typeof w == "object" && w !== null) { + switch (w.$$typeof) { + case vy: + return w.key === R ? l(_, x, w, E) : null; + case Zd: + return w.key === R ? c(_, x, w, E) : null; + case Tl: + return R = w._init, + h(_, x, R(w._payload), E) + } + if (Xp(w) || bp(w)) + return R !== null ? null : u(_, x, w, E, null); + Ty(_, w) + } + return null + } + function m(_, x, w, E, R) { + if (typeof E == "string" && E !== "" || typeof E == "number") + return _ = _.get(w) || null, + a(x, _, "" + E, R); + if (typeof E == "object" && E !== null) { + switch (E.$$typeof) { + case vy: + return _ = _.get(E.key === null ? w : E.key) || null, + l(x, _, E, R); + case Zd: + return _ = _.get(E.key === null ? w : E.key) || null, + c(x, _, E, R); + case Tl: + var P = E._init; + return m(_, x, w, P(E._payload), R) + } + if (Xp(E) || bp(E)) + return _ = _.get(w) || null, + u(x, _, E, R, null); + Ty(x, E) + } + return null + } + function v(_, x, w, E) { + for (var R = null, P = null, D = x, T = x = 0, I = null; D !== null && T < w.length; T++) { + D.index > T ? (I = D, + D = null) : I = D.sibling; + var j = h(_, D, w[T], E); + if (j === null) { + D === null && (D = I); + break + } + e && D && j.alternate === null && t(_, D), + x = i(j, x, T), + P === null ? R = j : P.sibling = j, + P = j, + D = I + } + if (T === w.length) + return n(_, D), + bn && Jc(_, T), + R; + if (D === null) { + for (; T < w.length; T++) + D = d(_, w[T], E), + D !== null && (x = i(D, x, T), + P === null ? R = D : P.sibling = D, + P = D); + return bn && Jc(_, T), + R + } + for (D = r(_, D); T < w.length; T++) + I = m(D, _, T, w[T], E), + I !== null && (e && I.alternate !== null && D.delete(I.key === null ? T : I.key), + x = i(I, x, T), + P === null ? R = I : P.sibling = I, + P = I); + return e && D.forEach(function(N) { + return t(_, N) + }), + bn && Jc(_, T), + R + } + function y(_, x, w, E) { + var R = bp(w); + if (typeof R != "function") + throw Error(Oe(150)); + if (w = R.call(w), + w == null) + throw Error(Oe(151)); + for (var P = R = null, D = x, T = x = 0, I = null, j = w.next(); D !== null && !j.done; T++, + j = w.next()) { + D.index > T ? (I = D, + D = null) : I = D.sibling; + var N = h(_, D, j.value, E); + if (N === null) { + D === null && (D = I); + break + } + e && D && N.alternate === null && t(_, D), + x = i(N, x, T), + P === null ? R = N : P.sibling = N, + P = N, + D = I + } + if (j.done) + return n(_, D), + bn && Jc(_, T), + R; + if (D === null) { + for (; !j.done; T++, + j = w.next()) + j = d(_, j.value, E), + j !== null && (x = i(j, x, T), + P === null ? R = j : P.sibling = j, + P = j); + return bn && Jc(_, T), + R + } + for (D = r(_, D); !j.done; T++, + j = w.next()) + j = m(D, _, T, j.value, E), + j !== null && (e && j.alternate !== null && D.delete(j.key === null ? T : j.key), + x = i(j, x, T), + P === null ? R = j : P.sibling = j, + P = j); + return e && D.forEach(function(U) { + return t(_, U) + }), + bn && Jc(_, T), + R + } + function b(_, x, w, E) { + if (typeof w == "object" && w !== null && w.type === Jd && w.key === null && (w = w.props.children), + typeof w == "object" && w !== null) { + switch (w.$$typeof) { + case vy: + e: { + for (var R = w.key, P = x; P !== null; ) { + if (P.key === R) { + if (R = w.type, + R === Jd) { + if (P.tag === 7) { + n(_, P.sibling), + x = o(P, w.props.children), + x.return = _, + _ = x; + break e + } + } else if (P.elementType === R || typeof R == "object" && R !== null && R.$$typeof === Tl && uF(R) === P.type) { + n(_, P.sibling), + x = o(P, w.props), + x.ref = Cp(_, P, w), + x.return = _, + _ = x; + break e + } + n(_, P); + break + } else + t(_, P); + P = P.sibling + } + w.type === Jd ? (x = Mu(w.props.children, _.mode, E, w.key), + x.return = _, + _ = x) : (E = R0(w.type, w.key, w.props, null, _.mode, E), + E.ref = Cp(_, x, w), + E.return = _, + _ = E) + } + return s(_); + case Zd: + e: { + for (P = w.key; x !== null; ) { + if (x.key === P) + if (x.tag === 4 && x.stateNode.containerInfo === w.containerInfo && x.stateNode.implementation === w.implementation) { + n(_, x.sibling), + x = o(x, w.children || []), + x.return = _, + _ = x; + break e + } else { + n(_, x); + break + } + else + t(_, x); + x = x.sibling + } + x = PS(w, _.mode, E), + x.return = _, + _ = x + } + return s(_); + case Tl: + return P = w._init, + b(_, x, P(w._payload), E) + } + if (Xp(w)) + return v(_, x, w, E); + if (bp(w)) + return y(_, x, w, E); + Ty(_, w) + } + return typeof w == "string" && w !== "" || typeof w == "number" ? (w = "" + w, + x !== null && x.tag === 6 ? (n(_, x.sibling), + x = o(x, w), + x.return = _, + _ = x) : (n(_, x), + x = RS(w, _.mode, E), + x.return = _, + _ = x), + s(_)) : n(_, x) + } + return b +} +var Qf = O5(!0) + , j5 = O5(!1) + , lb = xc(null) + , cb = null + , lf = null + , NT = null; +function LT() { + NT = lf = cb = null +} +function $T(e) { + var t = lb.current; + hn(lb), + e._currentValue = t +} +function WE(e, t, n) { + for (; e !== null; ) { + var r = e.alternate; + if ((e.childLanes & t) !== t ? (e.childLanes |= t, + r !== null && (r.childLanes |= t)) : r !== null && (r.childLanes & t) !== t && (r.childLanes |= t), + e === n) + break; + e = e.return + } +} +function Ef(e, t) { + cb = e, + NT = lf = null, + e = e.dependencies, + e !== null && e.firstContext !== null && (e.lanes & t && (Ro = !0), + e.firstContext = null) +} +function Gi(e) { + var t = e._currentValue; + if (NT !== e) + if (e = { + context: e, + memoizedValue: t, + next: null + }, + lf === null) { + if (cb === null) + throw Error(Oe(308)); + lf = e, + cb.dependencies = { + lanes: 0, + firstContext: e + } + } else + lf = lf.next = e; + return t +} +var mu = null; +function BT(e) { + mu === null ? mu = [e] : mu.push(e) +} +function F5(e, t, n, r) { + var o = t.interleaved; + return o === null ? (n.next = n, + BT(t)) : (n.next = o.next, + o.next = n), + t.interleaved = n, + Ga(e, r) +} +function Ga(e, t) { + e.lanes |= t; + var n = e.alternate; + for (n !== null && (n.lanes |= t), + n = e, + e = e.return; e !== null; ) + e.childLanes |= t, + n = e.alternate, + n !== null && (n.childLanes |= t), + n = e, + e = e.return; + return n.tag === 3 ? n.stateNode : null +} +var Dl = !1; +function VT(e) { + e.updateQueue = { + baseState: e.memoizedState, + firstBaseUpdate: null, + lastBaseUpdate: null, + shared: { + pending: null, + interleaved: null, + lanes: 0 + }, + effects: null + } +} +function N5(e, t) { + e = e.updateQueue, + t.updateQueue === e && (t.updateQueue = { + baseState: e.baseState, + firstBaseUpdate: e.firstBaseUpdate, + lastBaseUpdate: e.lastBaseUpdate, + shared: e.shared, + effects: e.effects + }) +} +function Ma(e, t) { + return { + eventTime: e, + lane: t, + tag: 0, + payload: null, + callback: null, + next: null + } +} +function Jl(e, t, n) { + var r = e.updateQueue; + if (r === null) + return null; + if (r = r.shared, + Vt & 2) { + var o = r.pending; + return o === null ? t.next = t : (t.next = o.next, + o.next = t), + r.pending = t, + Ga(e, n) + } + return o = r.interleaved, + o === null ? (t.next = t, + BT(r)) : (t.next = o.next, + o.next = t), + r.interleaved = t, + Ga(e, n) +} +function _0(e, t, n) { + if (t = t.updateQueue, + t !== null && (t = t.shared, + (n & 4194240) !== 0)) { + var r = t.lanes; + r &= e.pendingLanes, + n |= r, + t.lanes = n, + RT(e, n) + } +} +function dF(e, t) { + var n = e.updateQueue + , r = e.alternate; + if (r !== null && (r = r.updateQueue, + n === r)) { + var o = null + , i = null; + if (n = n.firstBaseUpdate, + n !== null) { + do { + var s = { + eventTime: n.eventTime, + lane: n.lane, + tag: n.tag, + payload: n.payload, + callback: n.callback, + next: null + }; + i === null ? o = i = s : i = i.next = s, + n = n.next + } while (n !== null); + i === null ? o = i = t : i = i.next = t + } else + o = i = t; + n = { + baseState: r.baseState, + firstBaseUpdate: o, + lastBaseUpdate: i, + shared: r.shared, + effects: r.effects + }, + e.updateQueue = n; + return + } + e = n.lastBaseUpdate, + e === null ? n.firstBaseUpdate = t : e.next = t, + n.lastBaseUpdate = t +} +function ub(e, t, n, r) { + var o = e.updateQueue; + Dl = !1; + var i = o.firstBaseUpdate + , s = o.lastBaseUpdate + , a = o.shared.pending; + if (a !== null) { + o.shared.pending = null; + var l = a + , c = l.next; + l.next = null, + s === null ? i = c : s.next = c, + s = l; + var u = e.alternate; + u !== null && (u = u.updateQueue, + a = u.lastBaseUpdate, + a !== s && (a === null ? u.firstBaseUpdate = c : a.next = c, + u.lastBaseUpdate = l)) + } + if (i !== null) { + var d = o.baseState; + s = 0, + u = c = l = null, + a = i; + do { + var h = a.lane + , m = a.eventTime; + if ((r & h) === h) { + u !== null && (u = u.next = { + eventTime: m, + lane: 0, + tag: a.tag, + payload: a.payload, + callback: a.callback, + next: null + }); + e: { + var v = e + , y = a; + switch (h = t, + m = n, + y.tag) { + case 1: + if (v = y.payload, + typeof v == "function") { + d = v.call(m, d, h); + break e + } + d = v; + break e; + case 3: + v.flags = v.flags & -65537 | 128; + case 0: + if (v = y.payload, + h = typeof v == "function" ? v.call(m, d, h) : v, + h == null) + break e; + d = Dn({}, d, h); + break e; + case 2: + Dl = !0 + } + } + a.callback !== null && a.lane !== 0 && (e.flags |= 64, + h = o.effects, + h === null ? o.effects = [a] : h.push(a)) + } else + m = { + eventTime: m, + lane: h, + tag: a.tag, + payload: a.payload, + callback: a.callback, + next: null + }, + u === null ? (c = u = m, + l = d) : u = u.next = m, + s |= h; + if (a = a.next, + a === null) { + if (a = o.shared.pending, + a === null) + break; + h = a, + a = h.next, + h.next = null, + o.lastBaseUpdate = h, + o.shared.pending = null + } + } while (!0); + if (u === null && (l = d), + o.baseState = l, + o.firstBaseUpdate = c, + o.lastBaseUpdate = u, + t = o.shared.interleaved, + t !== null) { + o = t; + do + s |= o.lane, + o = o.next; + while (o !== t) + } else + i === null && (o.shared.lanes = 0); + Uu |= s, + e.lanes = s, + e.memoizedState = d + } +} +function fF(e, t, n) { + if (e = t.effects, + t.effects = null, + e !== null) + for (t = 0; t < e.length; t++) { + var r = e[t] + , o = r.callback; + if (o !== null) { + if (r.callback = null, + r = n, + typeof o != "function") + throw Error(Oe(191, o)); + o.call(r) + } + } +} +var Og = {} + , ia = xc(Og) + , Gm = xc(Og) + , Wm = xc(Og); +function gu(e) { + if (e === Og) + throw Error(Oe(174)); + return e +} +function zT(e, t) { + switch (cn(Wm, t), + cn(Gm, e), + cn(ia, Og), + e = t.nodeType, + e) { + case 9: + case 11: + t = (t = t.documentElement) ? t.namespaceURI : RE(null, ""); + break; + default: + e = e === 8 ? t.parentNode : t, + t = e.namespaceURI || null, + e = e.tagName, + t = RE(t, e) + } + hn(ia), + cn(ia, t) +} +function Zf() { + hn(ia), + hn(Gm), + hn(Wm) +} +function L5(e) { + gu(Wm.current); + var t = gu(ia.current) + , n = RE(t, e.type); + t !== n && (cn(Gm, e), + cn(ia, n)) +} +function HT(e) { + Gm.current === e && (hn(ia), + hn(Gm)) +} +var wn = xc(0); +function db(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 _S = []; +function UT() { + for (var e = 0; e < _S.length; e++) + _S[e]._workInProgressVersionPrimary = null; + _S.length = 0 +} +var x0 = el.ReactCurrentDispatcher + , xS = el.ReactCurrentBatchConfig + , Hu = 0 + , Rn = null + , Qn = null + , or = null + , fb = !1 + , mm = !1 + , qm = 0 + , vre = 0; +function kr() { + throw Error(Oe(321)) +} +function GT(e, t) { + if (t === null) + return !1; + for (var n = 0; n < t.length && n < e.length; n++) + if (!Ts(e[n], t[n])) + return !1; + return !0 +} +function WT(e, t, n, r, o, i) { + if (Hu = i, + Rn = t, + t.memoizedState = null, + t.updateQueue = null, + t.lanes = 0, + x0.current = e === null || e.memoizedState === null ? xre : wre, + e = n(r, o), + mm) { + i = 0; + do { + if (mm = !1, + qm = 0, + 25 <= i) + throw Error(Oe(301)); + i += 1, + or = Qn = null, + t.updateQueue = null, + x0.current = Sre, + e = n(r, o) + } while (mm) + } + if (x0.current = hb, + t = Qn !== null && Qn.next !== null, + Hu = 0, + or = Qn = Rn = null, + fb = !1, + t) + throw Error(Oe(300)); + return e +} +function qT() { + var e = qm !== 0; + return qm = 0, + e +} +function Hs() { + var e = { + memoizedState: null, + baseState: null, + baseQueue: null, + queue: null, + next: null + }; + return or === null ? Rn.memoizedState = or = e : or = or.next = e, + or +} +function Wi() { + if (Qn === null) { + var e = Rn.alternate; + e = e !== null ? e.memoizedState : null + } else + e = Qn.next; + var t = or === null ? Rn.memoizedState : or.next; + if (t !== null) + or = t, + Qn = e; + else { + if (e === null) + throw Error(Oe(310)); + Qn = e, + e = { + memoizedState: Qn.memoizedState, + baseState: Qn.baseState, + baseQueue: Qn.baseQueue, + queue: Qn.queue, + next: null + }, + or === null ? Rn.memoizedState = or = e : or = or.next = e + } + return or +} +function Km(e, t) { + return typeof t == "function" ? t(e) : t +} +function wS(e) { + var t = Wi() + , n = t.queue; + if (n === null) + throw Error(Oe(311)); + n.lastRenderedReducer = e; + var r = Qn + , o = r.baseQueue + , i = n.pending; + if (i !== null) { + if (o !== null) { + var s = o.next; + o.next = i.next, + i.next = s + } + r.baseQueue = o = i, + n.pending = null + } + if (o !== null) { + i = o.next, + r = r.baseState; + var a = s = null + , l = null + , c = i; + do { + var u = c.lane; + if ((Hu & u) === u) + l !== null && (l = l.next = { + lane: 0, + action: c.action, + hasEagerState: c.hasEagerState, + eagerState: c.eagerState, + next: null + }), + r = c.hasEagerState ? c.eagerState : e(r, c.action); + else { + var d = { + lane: u, + action: c.action, + hasEagerState: c.hasEagerState, + eagerState: c.eagerState, + next: null + }; + l === null ? (a = l = d, + s = r) : l = l.next = d, + Rn.lanes |= u, + Uu |= u + } + c = c.next + } while (c !== null && c !== i); + l === null ? s = r : l.next = a, + Ts(r, t.memoizedState) || (Ro = !0), + t.memoizedState = r, + t.baseState = s, + t.baseQueue = l, + n.lastRenderedState = r + } + if (e = n.interleaved, + e !== null) { + o = e; + do + i = o.lane, + Rn.lanes |= i, + Uu |= i, + o = o.next; + while (o !== e) + } else + o === null && (n.lanes = 0); + return [t.memoizedState, n.dispatch] +} +function SS(e) { + var t = Wi() + , n = t.queue; + if (n === null) + throw Error(Oe(311)); + n.lastRenderedReducer = e; + var r = n.dispatch + , o = n.pending + , i = t.memoizedState; + if (o !== null) { + n.pending = null; + var s = o = o.next; + do + i = e(i, s.action), + s = s.next; + while (s !== o); + Ts(i, t.memoizedState) || (Ro = !0), + t.memoizedState = i, + t.baseQueue === null && (t.baseState = i), + n.lastRenderedState = i + } + return [i, r] +} +function $5() {} +function B5(e, t) { + var n = Rn + , r = Wi() + , o = t() + , i = !Ts(r.memoizedState, o); + if (i && (r.memoizedState = o, + Ro = !0), + r = r.queue, + KT(H5.bind(null, n, r, e), [e]), + r.getSnapshot !== t || i || or !== null && or.memoizedState.tag & 1) { + if (n.flags |= 2048, + Ym(9, z5.bind(null, n, r, o, t), void 0, null), + ar === null) + throw Error(Oe(349)); + Hu & 30 || V5(n, t, o) + } + return o +} +function V5(e, t, n) { + e.flags |= 16384, + e = { + getSnapshot: t, + value: n + }, + t = Rn.updateQueue, + t === null ? (t = { + lastEffect: null, + stores: null + }, + Rn.updateQueue = t, + t.stores = [e]) : (n = t.stores, + n === null ? t.stores = [e] : n.push(e)) +} +function z5(e, t, n, r) { + t.value = n, + t.getSnapshot = r, + U5(t) && G5(e) +} +function H5(e, t, n) { + return n(function() { + U5(t) && G5(e) + }) +} +function U5(e) { + var t = e.getSnapshot; + e = e.value; + try { + var n = t(); + return !Ts(e, n) + } catch { + return !0 + } +} +function G5(e) { + var t = Ga(e, 1); + t !== null && Es(t, e, 1, -1) +} +function hF(e) { + var t = Hs(); + return typeof e == "function" && (e = e()), + t.memoizedState = t.baseState = e, + e = { + pending: null, + interleaved: null, + lanes: 0, + dispatch: null, + lastRenderedReducer: Km, + lastRenderedState: e + }, + t.queue = e, + e = e.dispatch = _re.bind(null, Rn, e), + [t.memoizedState, e] +} +function Ym(e, t, n, r) { + return e = { + tag: e, + create: t, + destroy: n, + deps: r, + next: null + }, + t = Rn.updateQueue, + t === null ? (t = { + lastEffect: null, + stores: null + }, + Rn.updateQueue = t, + t.lastEffect = e.next = e) : (n = t.lastEffect, + n === null ? t.lastEffect = e.next = e : (r = n.next, + n.next = e, + e.next = r, + t.lastEffect = e)), + e +} +function W5() { + return Wi().memoizedState +} +function w0(e, t, n, r) { + var o = Hs(); + Rn.flags |= e, + o.memoizedState = Ym(1 | t, n, void 0, r === void 0 ? null : r) +} +function w1(e, t, n, r) { + var o = Wi(); + r = r === void 0 ? null : r; + var i = void 0; + if (Qn !== null) { + var s = Qn.memoizedState; + if (i = s.destroy, + r !== null && GT(r, s.deps)) { + o.memoizedState = Ym(t, n, i, r); + return + } + } + Rn.flags |= e, + o.memoizedState = Ym(1 | t, n, i, r) +} +function pF(e, t) { + return w0(8390656, 8, e, t) +} +function KT(e, t) { + return w1(2048, 8, e, t) +} +function q5(e, t) { + return w1(4, 2, e, t) +} +function K5(e, t) { + return w1(4, 4, e, t) +} +function Y5(e, t) { + if (typeof t == "function") + return e = e(), + t(e), + function() { + t(null) + } + ; + if (t != null) + return e = e(), + t.current = e, + function() { + t.current = null + } +} +function X5(e, t, n) { + return n = n != null ? n.concat([e]) : null, + w1(4, 4, Y5.bind(null, t, e), n) +} +function YT() {} +function Q5(e, t) { + var n = Wi(); + t = t === void 0 ? null : t; + var r = n.memoizedState; + return r !== null && t !== null && GT(t, r[1]) ? r[0] : (n.memoizedState = [e, t], + e) +} +function Z5(e, t) { + var n = Wi(); + t = t === void 0 ? null : t; + var r = n.memoizedState; + return r !== null && t !== null && GT(t, r[1]) ? r[0] : (e = e(), + n.memoizedState = [e, t], + e) +} +function J5(e, t, n) { + return Hu & 21 ? (Ts(n, t) || (n = o5(), + Rn.lanes |= n, + Uu |= n, + e.baseState = !0), + t) : (e.baseState && (e.baseState = !1, + Ro = !0), + e.memoizedState = n) +} +function yre(e, t) { + var n = Jt; + Jt = n !== 0 && 4 > n ? n : 4, + e(!0); + var r = xS.transition; + xS.transition = {}; + try { + e(!1), + t() + } finally { + Jt = n, + xS.transition = r + } +} +function eV() { + return Wi().memoizedState +} +function bre(e, t, n) { + var r = tc(e); + if (n = { + lane: r, + action: n, + hasEagerState: !1, + eagerState: null, + next: null + }, + tV(e)) + nV(t, n); + else if (n = F5(e, t, n, r), + n !== null) { + var o = co(); + Es(n, e, r, o), + rV(n, t, r) + } +} +function _re(e, t, n) { + var r = tc(e) + , o = { + lane: r, + action: n, + hasEagerState: !1, + eagerState: null, + next: null + }; + if (tV(e)) + nV(t, o); + else { + var i = e.alternate; + if (e.lanes === 0 && (i === null || i.lanes === 0) && (i = t.lastRenderedReducer, + i !== null)) + try { + var s = t.lastRenderedState + , a = i(s, n); + if (o.hasEagerState = !0, + o.eagerState = a, + Ts(a, s)) { + var l = t.interleaved; + l === null ? (o.next = o, + BT(t)) : (o.next = l.next, + l.next = o), + t.interleaved = o; + return + } + } catch {} finally {} + n = F5(e, t, o, r), + n !== null && (o = co(), + Es(n, e, r, o), + rV(n, t, r)) + } +} +function tV(e) { + var t = e.alternate; + return e === Rn || t !== null && t === Rn +} +function nV(e, t) { + mm = fb = !0; + var n = e.pending; + n === null ? t.next = t : (t.next = n.next, + n.next = t), + e.pending = t +} +function rV(e, t, n) { + if (n & 4194240) { + var r = t.lanes; + r &= e.pendingLanes, + n |= r, + t.lanes = n, + RT(e, n) + } +} +var hb = { + readContext: Gi, + useCallback: kr, + useContext: kr, + useEffect: kr, + useImperativeHandle: kr, + useInsertionEffect: kr, + useLayoutEffect: kr, + useMemo: kr, + useReducer: kr, + useRef: kr, + useState: kr, + useDebugValue: kr, + useDeferredValue: kr, + useTransition: kr, + useMutableSource: kr, + useSyncExternalStore: kr, + useId: kr, + unstable_isNewReconciler: !1 +} + , xre = { + readContext: Gi, + useCallback: function(e, t) { + return Hs().memoizedState = [e, t === void 0 ? null : t], + e + }, + useContext: Gi, + useEffect: pF, + useImperativeHandle: function(e, t, n) { + return n = n != null ? n.concat([e]) : null, + w0(4194308, 4, Y5.bind(null, t, e), n) + }, + useLayoutEffect: function(e, t) { + return w0(4194308, 4, e, t) + }, + useInsertionEffect: function(e, t) { + return w0(4, 2, e, t) + }, + useMemo: function(e, t) { + var n = Hs(); + return t = t === void 0 ? null : t, + e = e(), + n.memoizedState = [e, t], + e + }, + useReducer: function(e, t, n) { + var r = Hs(); + 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 = bre.bind(null, Rn, e), + [r.memoizedState, e] + }, + useRef: function(e) { + var t = Hs(); + return e = { + current: e + }, + t.memoizedState = e + }, + useState: hF, + useDebugValue: YT, + useDeferredValue: function(e) { + return Hs().memoizedState = e + }, + useTransition: function() { + var e = hF(!1) + , t = e[0]; + return e = yre.bind(null, e[1]), + Hs().memoizedState = e, + [t, e] + }, + useMutableSource: function() {}, + useSyncExternalStore: function(e, t, n) { + var r = Rn + , o = Hs(); + if (bn) { + if (n === void 0) + throw Error(Oe(407)); + n = n() + } else { + if (n = t(), + ar === null) + throw Error(Oe(349)); + Hu & 30 || V5(r, t, n) + } + o.memoizedState = n; + var i = { + value: n, + getSnapshot: t + }; + return o.queue = i, + pF(H5.bind(null, r, i, e), [e]), + r.flags |= 2048, + Ym(9, z5.bind(null, r, i, n, t), void 0, null), + n + }, + useId: function() { + var e = Hs() + , t = ar.identifierPrefix; + if (bn) { + var n = Aa + , r = Da; + n = (r & ~(1 << 32 - Cs(r) - 1)).toString(32) + n, + t = ":" + t + "R" + n, + n = qm++, + 0 < n && (t += "H" + n.toString(32)), + t += ":" + } else + n = vre++, + t = ":" + t + "r" + n.toString(32) + ":"; + return e.memoizedState = t + }, + unstable_isNewReconciler: !1 +} + , wre = { + readContext: Gi, + useCallback: Q5, + useContext: Gi, + useEffect: KT, + useImperativeHandle: X5, + useInsertionEffect: q5, + useLayoutEffect: K5, + useMemo: Z5, + useReducer: wS, + useRef: W5, + useState: function() { + return wS(Km) + }, + useDebugValue: YT, + useDeferredValue: function(e) { + var t = Wi(); + return J5(t, Qn.memoizedState, e) + }, + useTransition: function() { + var e = wS(Km)[0] + , t = Wi().memoizedState; + return [e, t] + }, + useMutableSource: $5, + useSyncExternalStore: B5, + useId: eV, + unstable_isNewReconciler: !1 +} + , Sre = { + readContext: Gi, + useCallback: Q5, + useContext: Gi, + useEffect: KT, + useImperativeHandle: X5, + useInsertionEffect: q5, + useLayoutEffect: K5, + useMemo: Z5, + useReducer: SS, + useRef: W5, + useState: function() { + return SS(Km) + }, + useDebugValue: YT, + useDeferredValue: function(e) { + var t = Wi(); + return Qn === null ? t.memoizedState = e : J5(t, Qn.memoizedState, e) + }, + useTransition: function() { + var e = SS(Km)[0] + , t = Wi().memoizedState; + return [e, t] + }, + useMutableSource: $5, + useSyncExternalStore: B5, + useId: eV, + unstable_isNewReconciler: !1 +}; +function hs(e, t) { + if (e && e.defaultProps) { + t = Dn({}, t), + e = e.defaultProps; + for (var n in e) + t[n] === void 0 && (t[n] = e[n]); + return t + } + return t +} +function qE(e, t, n, r) { + t = e.memoizedState, + n = n(r, t), + n = n == null ? t : Dn({}, t, n), + e.memoizedState = n, + e.lanes === 0 && (e.updateQueue.baseState = n) +} +var S1 = { + isMounted: function(e) { + return (e = e._reactInternals) ? id(e) === e : !1 + }, + enqueueSetState: function(e, t, n) { + e = e._reactInternals; + var r = co() + , o = tc(e) + , i = Ma(r, o); + i.payload = t, + n != null && (i.callback = n), + t = Jl(e, i, o), + t !== null && (Es(t, e, o, r), + _0(t, e, o)) + }, + enqueueReplaceState: function(e, t, n) { + e = e._reactInternals; + var r = co() + , o = tc(e) + , i = Ma(r, o); + i.tag = 1, + i.payload = t, + n != null && (i.callback = n), + t = Jl(e, i, o), + t !== null && (Es(t, e, o, r), + _0(t, e, o)) + }, + enqueueForceUpdate: function(e, t) { + e = e._reactInternals; + var n = co() + , r = tc(e) + , o = Ma(n, r); + o.tag = 2, + t != null && (o.callback = t), + t = Jl(e, o, r), + t !== null && (Es(t, e, r, n), + _0(t, e, r)) + } +}; +function mF(e, t, n, r, o, i, s) { + return e = e.stateNode, + typeof e.shouldComponentUpdate == "function" ? e.shouldComponentUpdate(r, i, s) : t.prototype && t.prototype.isPureReactComponent ? !Vm(n, r) || !Vm(o, i) : !0 +} +function oV(e, t, n) { + var r = !1 + , o = lc + , i = t.contextType; + return typeof i == "object" && i !== null ? i = Gi(i) : (o = Do(t) ? Vu : Ur.current, + r = t.contextTypes, + i = (r = r != null) ? Yf(e, o) : lc), + t = new t(n,i), + e.memoizedState = t.state !== null && t.state !== void 0 ? t.state : null, + t.updater = S1, + e.stateNode = t, + t._reactInternals = e, + r && (e = e.stateNode, + e.__reactInternalMemoizedUnmaskedChildContext = o, + e.__reactInternalMemoizedMaskedChildContext = i), + t +} +function gF(e, t, n, r) { + e = t.state, + typeof t.componentWillReceiveProps == "function" && t.componentWillReceiveProps(n, r), + typeof t.UNSAFE_componentWillReceiveProps == "function" && t.UNSAFE_componentWillReceiveProps(n, r), + t.state !== e && S1.enqueueReplaceState(t, t.state, null) +} +function KE(e, t, n, r) { + var o = e.stateNode; + o.props = n, + o.state = e.memoizedState, + o.refs = {}, + VT(e); + var i = t.contextType; + typeof i == "object" && i !== null ? o.context = Gi(i) : (i = Do(t) ? Vu : Ur.current, + o.context = Yf(e, i)), + o.state = e.memoizedState, + i = t.getDerivedStateFromProps, + typeof i == "function" && (qE(e, t, i, n), + o.state = e.memoizedState), + typeof t.getDerivedStateFromProps == "function" || typeof o.getSnapshotBeforeUpdate == "function" || typeof o.UNSAFE_componentWillMount != "function" && typeof o.componentWillMount != "function" || (t = o.state, + typeof o.componentWillMount == "function" && o.componentWillMount(), + typeof o.UNSAFE_componentWillMount == "function" && o.UNSAFE_componentWillMount(), + t !== o.state && S1.enqueueReplaceState(o, o.state, null), + ub(e, n, o, r), + o.state = e.memoizedState), + typeof o.componentDidMount == "function" && (e.flags |= 4194308) +} +function Jf(e, t) { + try { + var n = "" + , r = t; + do + n += Qte(r), + r = r.return; + while (r); + var o = n + } catch (i) { + o = ` +Error generating stack: ` + i.message + ` +` + i.stack + } + return { + value: e, + source: t, + stack: o, + digest: null + } +} +function CS(e, t, n) { + return { + value: e, + source: null, + stack: n ?? null, + digest: t ?? null + } +} +function YE(e, t) { + try { + console.error(t.value) + } catch (n) { + setTimeout(function() { + throw n + }) + } +} +var Cre = typeof WeakMap == "function" ? WeakMap : Map; +function iV(e, t, n) { + n = Ma(-1, n), + n.tag = 3, + n.payload = { + element: null + }; + var r = t.value; + return n.callback = function() { + mb || (mb = !0, + iR = r), + YE(e, t) + } + , + n +} +function sV(e, t, n) { + n = Ma(-1, n), + n.tag = 3; + var r = e.type.getDerivedStateFromError; + if (typeof r == "function") { + var o = t.value; + n.payload = function() { + return r(o) + } + , + n.callback = function() { + YE(e, t) + } + } + var i = e.stateNode; + return i !== null && typeof i.componentDidCatch == "function" && (n.callback = function() { + YE(e, t), + typeof r != "function" && (ec === null ? ec = new Set([this]) : ec.add(this)); + var s = t.stack; + this.componentDidCatch(t.value, { + componentStack: s !== null ? s : "" + }) + } + ), + n +} +function vF(e, t, n) { + var r = e.pingCache; + if (r === null) { + r = e.pingCache = new Cre; + var o = new Set; + r.set(t, o) + } else + o = r.get(t), + o === void 0 && (o = new Set, + r.set(t, o)); + o.has(n) || (o.add(n), + e = Lre.bind(null, e, t, n), + t.then(e, e)) +} +function yF(e) { + do { + var t; + if ((t = e.tag === 13) && (t = e.memoizedState, + t = t !== null ? t.dehydrated !== null : !0), + t) + return e; + e = e.return + } while (e !== null); + return null +} +function bF(e, t, n, r, o) { + return e.mode & 1 ? (e.flags |= 65536, + e.lanes = o, + e) : (e === t ? e.flags |= 65536 : (e.flags |= 128, + n.flags |= 131072, + n.flags &= -52805, + n.tag === 1 && (n.alternate === null ? n.tag = 17 : (t = Ma(-1, 1), + t.tag = 2, + Jl(n, t, 1))), + n.lanes |= 1), + e) +} +var Ere = el.ReactCurrentOwner + , Ro = !1; +function io(e, t, n, r) { + t.child = e === null ? j5(t, null, n, r) : Qf(t, e.child, n, r) +} +function _F(e, t, n, r, o) { + n = n.render; + var i = t.ref; + return Ef(t, o), + r = WT(e, t, n, r, i, o), + n = qT(), + e !== null && !Ro ? (t.updateQueue = e.updateQueue, + t.flags &= -2053, + e.lanes &= ~o, + Wa(e, t, o)) : (bn && n && OT(t), + t.flags |= 1, + io(e, t, r, o), + t.child) +} +function xF(e, t, n, r, o) { + if (e === null) { + var i = n.type; + return typeof i == "function" && !r2(i) && i.defaultProps === void 0 && n.compare === null && n.defaultProps === void 0 ? (t.tag = 15, + t.type = i, + aV(e, t, i, r, o)) : (e = R0(n.type, null, r, t, t.mode, o), + e.ref = t.ref, + e.return = t, + t.child = e) + } + if (i = e.child, + !(e.lanes & o)) { + var s = i.memoizedProps; + if (n = n.compare, + n = n !== null ? n : Vm, + n(s, r) && e.ref === t.ref) + return Wa(e, t, o) + } + return t.flags |= 1, + e = nc(i, r), + e.ref = t.ref, + e.return = t, + t.child = e +} +function aV(e, t, n, r, o) { + if (e !== null) { + var i = e.memoizedProps; + if (Vm(i, r) && e.ref === t.ref) + if (Ro = !1, + t.pendingProps = r = i, + (e.lanes & o) !== 0) + e.flags & 131072 && (Ro = !0); + else + return t.lanes = e.lanes, + Wa(e, t, o) + } + return XE(e, t, n, r, o) +} +function lV(e, t, n) { + var r = t.pendingProps + , o = r.children + , i = e !== null ? e.memoizedState : null; + if (r.mode === "hidden") + if (!(t.mode & 1)) + t.memoizedState = { + baseLanes: 0, + cachePool: null, + transitions: null + }, + cn(uf, Qo), + Qo |= n; + else { + if (!(n & 1073741824)) + return e = i !== null ? i.baseLanes | n : n, + t.lanes = t.childLanes = 1073741824, + t.memoizedState = { + baseLanes: e, + cachePool: null, + transitions: null + }, + t.updateQueue = null, + cn(uf, Qo), + Qo |= e, + null; + t.memoizedState = { + baseLanes: 0, + cachePool: null, + transitions: null + }, + r = i !== null ? i.baseLanes : n, + cn(uf, Qo), + Qo |= r + } + else + i !== null ? (r = i.baseLanes | n, + t.memoizedState = null) : r = n, + cn(uf, Qo), + Qo |= r; + return io(e, t, o, n), + t.child +} +function cV(e, t) { + var n = t.ref; + (e === null && n !== null || e !== null && e.ref !== n) && (t.flags |= 512, + t.flags |= 2097152) +} +function XE(e, t, n, r, o) { + var i = Do(n) ? Vu : Ur.current; + return i = Yf(t, i), + Ef(t, o), + n = WT(e, t, n, r, i, o), + r = qT(), + e !== null && !Ro ? (t.updateQueue = e.updateQueue, + t.flags &= -2053, + e.lanes &= ~o, + Wa(e, t, o)) : (bn && r && OT(t), + t.flags |= 1, + io(e, t, n, o), + t.child) +} +function wF(e, t, n, r, o) { + if (Do(n)) { + var i = !0; + ib(t) + } else + i = !1; + if (Ef(t, o), + t.stateNode === null) + S0(e, t), + oV(t, n, r), + KE(t, n, r, o), + r = !0; + else if (e === null) { + var s = t.stateNode + , a = t.memoizedProps; + s.props = a; + var l = s.context + , c = n.contextType; + typeof c == "object" && c !== null ? c = Gi(c) : (c = Do(n) ? Vu : Ur.current, + c = Yf(t, c)); + var u = n.getDerivedStateFromProps + , d = typeof u == "function" || typeof s.getSnapshotBeforeUpdate == "function"; + d || typeof s.UNSAFE_componentWillReceiveProps != "function" && typeof s.componentWillReceiveProps != "function" || (a !== r || l !== c) && gF(t, s, r, c), + Dl = !1; + var h = t.memoizedState; + s.state = h, + ub(t, r, s, o), + l = t.memoizedState, + a !== r || h !== l || To.current || Dl ? (typeof u == "function" && (qE(t, n, u, r), + l = t.memoizedState), + (a = Dl || mF(t, n, a, r, h, l, c)) ? (d || typeof s.UNSAFE_componentWillMount != "function" && typeof s.componentWillMount != "function" || (typeof s.componentWillMount == "function" && s.componentWillMount(), + typeof s.UNSAFE_componentWillMount == "function" && s.UNSAFE_componentWillMount()), + typeof s.componentDidMount == "function" && (t.flags |= 4194308)) : (typeof s.componentDidMount == "function" && (t.flags |= 4194308), + t.memoizedProps = r, + t.memoizedState = l), + s.props = r, + s.state = l, + s.context = c, + r = a) : (typeof s.componentDidMount == "function" && (t.flags |= 4194308), + r = !1) + } else { + s = t.stateNode, + N5(e, t), + a = t.memoizedProps, + c = t.type === t.elementType ? a : hs(t.type, a), + s.props = c, + d = t.pendingProps, + h = s.context, + l = n.contextType, + typeof l == "object" && l !== null ? l = Gi(l) : (l = Do(n) ? Vu : Ur.current, + l = Yf(t, l)); + var m = n.getDerivedStateFromProps; + (u = typeof m == "function" || typeof s.getSnapshotBeforeUpdate == "function") || typeof s.UNSAFE_componentWillReceiveProps != "function" && typeof s.componentWillReceiveProps != "function" || (a !== d || h !== l) && gF(t, s, r, l), + Dl = !1, + h = t.memoizedState, + s.state = h, + ub(t, r, s, o); + var v = t.memoizedState; + a !== d || h !== v || To.current || Dl ? (typeof m == "function" && (qE(t, n, m, r), + v = t.memoizedState), + (c = Dl || mF(t, n, c, r, h, v, l) || !1) ? (u || typeof s.UNSAFE_componentWillUpdate != "function" && typeof s.componentWillUpdate != "function" || (typeof s.componentWillUpdate == "function" && s.componentWillUpdate(r, v, l), + typeof s.UNSAFE_componentWillUpdate == "function" && s.UNSAFE_componentWillUpdate(r, v, l)), + typeof s.componentDidUpdate == "function" && (t.flags |= 4), + typeof s.getSnapshotBeforeUpdate == "function" && (t.flags |= 1024)) : (typeof s.componentDidUpdate != "function" || a === e.memoizedProps && h === e.memoizedState || (t.flags |= 4), + typeof s.getSnapshotBeforeUpdate != "function" || a === e.memoizedProps && h === e.memoizedState || (t.flags |= 1024), + t.memoizedProps = r, + t.memoizedState = v), + s.props = r, + s.state = v, + s.context = l, + r = c) : (typeof s.componentDidUpdate != "function" || a === e.memoizedProps && h === e.memoizedState || (t.flags |= 4), + typeof s.getSnapshotBeforeUpdate != "function" || a === e.memoizedProps && h === e.memoizedState || (t.flags |= 1024), + r = !1) + } + return QE(e, t, n, r, i, o) +} +function QE(e, t, n, r, o, i) { + cV(e, t); + var s = (t.flags & 128) !== 0; + if (!r && !s) + return o && aF(t, n, !1), + Wa(e, t, i); + r = t.stateNode, + Ere.current = t; + var a = s && typeof n.getDerivedStateFromError != "function" ? null : r.render(); + return t.flags |= 1, + e !== null && s ? (t.child = Qf(t, e.child, null, i), + t.child = Qf(t, null, a, i)) : io(e, t, a, i), + t.memoizedState = r.state, + o && aF(t, n, !0), + t.child +} +function uV(e) { + var t = e.stateNode; + t.pendingContext ? sF(e, t.pendingContext, t.pendingContext !== t.context) : t.context && sF(e, t.context, !1), + zT(e, t.containerInfo) +} +function SF(e, t, n, r, o) { + return Xf(), + FT(o), + t.flags |= 256, + io(e, t, n, r), + t.child +} +var ZE = { + dehydrated: null, + treeContext: null, + retryLane: 0 +}; +function JE(e) { + return { + baseLanes: e, + cachePool: null, + transitions: null + } +} +function dV(e, t, n) { + var r = t.pendingProps, o = wn.current, i = !1, s = (t.flags & 128) !== 0, a; + if ((a = s) || (a = e !== null && e.memoizedState === null ? !1 : (o & 2) !== 0), + a ? (i = !0, + t.flags &= -129) : (e === null || e.memoizedState !== null) && (o |= 1), + cn(wn, o & 1), + e === null) + return GE(t), + e = t.memoizedState, + e !== null && (e = e.dehydrated, + e !== null) ? (t.mode & 1 ? e.data === "$!" ? t.lanes = 8 : t.lanes = 1073741824 : t.lanes = 1, + null) : (s = r.children, + e = r.fallback, + i ? (r = t.mode, + i = t.child, + s = { + mode: "hidden", + children: s + }, + !(r & 1) && i !== null ? (i.childLanes = 0, + i.pendingProps = s) : i = R1(s, r, 0, null), + e = Mu(e, r, n, null), + i.return = t, + e.return = t, + i.sibling = e, + t.child = i, + t.child.memoizedState = JE(n), + t.memoizedState = ZE, + e) : XT(t, s)); + if (o = e.memoizedState, + o !== null && (a = o.dehydrated, + a !== null)) + return Rre(e, t, s, r, a, o, n); + if (i) { + i = r.fallback, + s = t.mode, + o = e.child, + a = o.sibling; + var l = { + mode: "hidden", + children: r.children + }; + return !(s & 1) && t.child !== o ? (r = t.child, + r.childLanes = 0, + r.pendingProps = l, + t.deletions = null) : (r = nc(o, l), + r.subtreeFlags = o.subtreeFlags & 14680064), + a !== null ? i = nc(a, i) : (i = Mu(i, s, n, null), + i.flags |= 2), + i.return = t, + r.return = t, + r.sibling = i, + t.child = r, + r = i, + i = t.child, + s = e.child.memoizedState, + s = s === null ? JE(n) : { + baseLanes: s.baseLanes | n, + cachePool: null, + transitions: s.transitions + }, + i.memoizedState = s, + i.childLanes = e.childLanes & ~n, + t.memoizedState = ZE, + r + } + return i = e.child, + e = i.sibling, + r = nc(i, { + mode: "visible", + children: r.children + }), + !(t.mode & 1) && (r.lanes = n), + r.return = t, + r.sibling = null, + e !== null && (n = t.deletions, + n === null ? (t.deletions = [e], + t.flags |= 16) : n.push(e)), + t.child = r, + t.memoizedState = null, + r +} +function XT(e, t) { + return t = R1({ + mode: "visible", + children: t + }, e.mode, 0, null), + t.return = e, + e.child = t +} +function Dy(e, t, n, r) { + return r !== null && FT(r), + Qf(t, e.child, null, n), + e = XT(t, t.pendingProps.children), + e.flags |= 2, + t.memoizedState = null, + e +} +function Rre(e, t, n, r, o, i, s) { + if (n) + return t.flags & 256 ? (t.flags &= -257, + r = CS(Error(Oe(422))), + Dy(e, t, s, r)) : t.memoizedState !== null ? (t.child = e.child, + t.flags |= 128, + null) : (i = r.fallback, + o = t.mode, + r = R1({ + mode: "visible", + children: r.children + }, o, 0, null), + i = Mu(i, o, s, null), + i.flags |= 2, + r.return = t, + i.return = t, + r.sibling = i, + t.child = r, + t.mode & 1 && Qf(t, e.child, null, s), + t.child.memoizedState = JE(s), + t.memoizedState = ZE, + i); + if (!(t.mode & 1)) + return Dy(e, t, s, null); + if (o.data === "$!") { + if (r = o.nextSibling && o.nextSibling.dataset, + r) + var a = r.dgst; + return r = a, + i = Error(Oe(419)), + r = CS(i, r, void 0), + Dy(e, t, s, r) + } + if (a = (s & e.childLanes) !== 0, + Ro || a) { + if (r = ar, + r !== null) { + switch (s & -s) { + case 4: + o = 2; + break; + case 16: + o = 8; + break; + case 64: + case 128: + case 256: + case 512: + case 1024: + case 2048: + case 4096: + case 8192: + case 16384: + case 32768: + case 65536: + case 131072: + case 262144: + case 524288: + case 1048576: + case 2097152: + case 4194304: + case 8388608: + case 16777216: + case 33554432: + case 67108864: + o = 32; + break; + case 536870912: + o = 268435456; + break; + default: + o = 0 + } + o = o & (r.suspendedLanes | s) ? 0 : o, + o !== 0 && o !== i.retryLane && (i.retryLane = o, + Ga(e, o), + Es(r, e, o, -1)) + } + return n2(), + r = CS(Error(Oe(421))), + Dy(e, t, s, r) + } + return o.data === "$?" ? (t.flags |= 128, + t.child = e.child, + t = $re.bind(null, e), + o._reactRetry = t, + null) : (e = i.treeContext, + ti = Zl(o.nextSibling), + ri = t, + bn = !0, + ys = null, + e !== null && (Fi[Ni++] = Da, + Fi[Ni++] = Aa, + Fi[Ni++] = zu, + Da = e.id, + Aa = e.overflow, + zu = t), + t = XT(t, r.children), + t.flags |= 4096, + t) +} +function CF(e, t, n) { + e.lanes |= t; + var r = e.alternate; + r !== null && (r.lanes |= t), + WE(e.return, t, n) +} +function ES(e, t, n, r, o) { + var i = e.memoizedState; + i === null ? e.memoizedState = { + isBackwards: t, + rendering: null, + renderingStartTime: 0, + last: r, + tail: n, + tailMode: o + } : (i.isBackwards = t, + i.rendering = null, + i.renderingStartTime = 0, + i.last = r, + i.tail = n, + i.tailMode = o) +} +function fV(e, t, n) { + var r = t.pendingProps + , o = r.revealOrder + , i = r.tail; + if (io(e, t, r.children, n), + r = wn.current, + r & 2) + r = r & 1 | 2, + t.flags |= 128; + else { + if (e !== null && e.flags & 128) + e: for (e = t.child; e !== null; ) { + if (e.tag === 13) + e.memoizedState !== null && CF(e, n, t); + else if (e.tag === 19) + CF(e, n, t); + else if (e.child !== null) { + e.child.return = e, + e = e.child; + continue + } + if (e === t) + break e; + for (; e.sibling === null; ) { + if (e.return === null || e.return === t) + break e; + e = e.return + } + e.sibling.return = e.return, + e = e.sibling + } + r &= 1 + } + if (cn(wn, r), + !(t.mode & 1)) + t.memoizedState = null; + else + switch (o) { + case "forwards": + for (n = t.child, + o = null; n !== null; ) + e = n.alternate, + e !== null && db(e) === null && (o = n), + n = n.sibling; + n = o, + n === null ? (o = t.child, + t.child = null) : (o = n.sibling, + n.sibling = null), + ES(t, !1, o, n, i); + break; + case "backwards": + for (n = null, + o = t.child, + t.child = null; o !== null; ) { + if (e = o.alternate, + e !== null && db(e) === null) { + t.child = o; + break + } + e = o.sibling, + o.sibling = n, + n = o, + o = e + } + ES(t, !0, n, null, i); + break; + case "together": + ES(t, !1, null, null, void 0); + break; + default: + t.memoizedState = null + } + return t.child +} +function S0(e, t) { + !(t.mode & 1) && e !== null && (e.alternate = null, + t.alternate = null, + t.flags |= 2) +} +function Wa(e, t, n) { + if (e !== null && (t.dependencies = e.dependencies), + Uu |= t.lanes, + !(n & t.childLanes)) + return null; + if (e !== null && t.child !== e.child) + throw Error(Oe(153)); + if (t.child !== null) { + for (e = t.child, + n = nc(e, e.pendingProps), + t.child = n, + n.return = t; e.sibling !== null; ) + e = e.sibling, + n = n.sibling = nc(e, e.pendingProps), + n.return = t; + n.sibling = null + } + return t.child +} +function Pre(e, t, n) { + switch (t.tag) { + case 3: + uV(t), + Xf(); + break; + case 5: + L5(t); + break; + case 1: + Do(t.type) && ib(t); + break; + case 4: + zT(t, t.stateNode.containerInfo); + break; + case 10: + var r = t.type._context + , o = t.memoizedProps.value; + cn(lb, r._currentValue), + r._currentValue = o; + break; + case 13: + if (r = t.memoizedState, + r !== null) + return r.dehydrated !== null ? (cn(wn, wn.current & 1), + t.flags |= 128, + null) : n & t.child.childLanes ? dV(e, t, n) : (cn(wn, wn.current & 1), + e = Wa(e, t, n), + e !== null ? e.sibling : null); + cn(wn, wn.current & 1); + break; + case 19: + if (r = (n & t.childLanes) !== 0, + e.flags & 128) { + if (r) + return fV(e, t, n); + t.flags |= 128 + } + if (o = t.memoizedState, + o !== null && (o.rendering = null, + o.tail = null, + o.lastEffect = null), + cn(wn, wn.current), + r) + break; + return null; + case 22: + case 23: + return t.lanes = 0, + lV(e, t, n) + } + return Wa(e, t, n) +} +var hV, eR, pV, mV; +hV = function(e, t) { + for (var n = t.child; n !== null; ) { + if (n.tag === 5 || n.tag === 6) + e.appendChild(n.stateNode); + else if (n.tag !== 4 && n.child !== null) { + n.child.return = n, + n = n.child; + continue + } + if (n === t) + break; + for (; n.sibling === null; ) { + if (n.return === null || n.return === t) + return; + n = n.return + } + n.sibling.return = n.return, + n = n.sibling + } +} +; +eR = function() {} +; +pV = function(e, t, n, r) { + var o = e.memoizedProps; + if (o !== r) { + e = t.stateNode, + gu(ia.current); + var i = null; + switch (n) { + case "input": + o = wE(e, o), + r = wE(e, r), + i = []; + break; + case "select": + o = Dn({}, o, { + value: void 0 + }), + r = Dn({}, r, { + value: void 0 + }), + i = []; + break; + case "textarea": + o = EE(e, o), + r = EE(e, r), + i = []; + break; + default: + typeof o.onClick != "function" && typeof r.onClick == "function" && (e.onclick = rb) + } + PE(n, r); + var s; + n = null; + for (c in o) + if (!r.hasOwnProperty(c) && o.hasOwnProperty(c) && o[c] != null) + if (c === "style") { + var a = o[c]; + for (s in a) + a.hasOwnProperty(s) && (n || (n = {}), + n[s] = "") + } else + c !== "dangerouslySetInnerHTML" && c !== "children" && c !== "suppressContentEditableWarning" && c !== "suppressHydrationWarning" && c !== "autoFocus" && (Om.hasOwnProperty(c) ? i || (i = []) : (i = i || []).push(c, null)); + for (c in r) { + var l = r[c]; + if (a = o != null ? o[c] : void 0, + r.hasOwnProperty(c) && l !== a && (l != null || a != null)) + if (c === "style") + if (a) { + for (s in a) + !a.hasOwnProperty(s) || l && l.hasOwnProperty(s) || (n || (n = {}), + n[s] = ""); + for (s in l) + l.hasOwnProperty(s) && a[s] !== l[s] && (n || (n = {}), + n[s] = l[s]) + } else + n || (i || (i = []), + i.push(c, n)), + n = l; + else + c === "dangerouslySetInnerHTML" ? (l = l ? l.__html : void 0, + a = a ? a.__html : void 0, + l != null && a !== l && (i = i || []).push(c, l)) : c === "children" ? typeof l != "string" && typeof l != "number" || (i = i || []).push(c, "" + l) : c !== "suppressContentEditableWarning" && c !== "suppressHydrationWarning" && (Om.hasOwnProperty(c) ? (l != null && c === "onScroll" && fn("scroll", e), + i || a === l || (i = [])) : (i = i || []).push(c, l)) + } + n && (i = i || []).push("style", n); + var c = i; + (t.updateQueue = c) && (t.flags |= 4) + } +} +; +mV = function(e, t, n, r) { + n !== r && (t.flags |= 4) +} +; +function Ep(e, t) { + if (!bn) + switch (e.tailMode) { + case "hidden": + t = e.tail; + for (var n = null; t !== null; ) + t.alternate !== null && (n = t), + t = t.sibling; + n === null ? e.tail = null : n.sibling = null; + break; + case "collapsed": + n = e.tail; + for (var r = null; n !== null; ) + n.alternate !== null && (r = n), + n = n.sibling; + r === null ? t || e.tail === null ? e.tail = null : e.tail.sibling = null : r.sibling = null + } +} +function Ir(e) { + var t = e.alternate !== null && e.alternate.child === e.child + , n = 0 + , r = 0; + if (t) + for (var o = e.child; o !== null; ) + n |= o.lanes | o.childLanes, + r |= o.subtreeFlags & 14680064, + r |= o.flags & 14680064, + o.return = e, + o = o.sibling; + else + for (o = e.child; o !== null; ) + n |= o.lanes | o.childLanes, + r |= o.subtreeFlags, + r |= o.flags, + o.return = e, + o = o.sibling; + return e.subtreeFlags |= r, + e.childLanes = n, + t +} +function Tre(e, t, n) { + var r = t.pendingProps; + switch (jT(t), + t.tag) { + case 2: + case 16: + case 15: + case 0: + case 11: + case 7: + case 8: + case 12: + case 9: + case 14: + return Ir(t), + null; + case 1: + return Do(t.type) && ob(), + Ir(t), + null; + case 3: + return r = t.stateNode, + Zf(), + hn(To), + hn(Ur), + UT(), + r.pendingContext && (r.context = r.pendingContext, + r.pendingContext = null), + (e === null || e.child === null) && (Py(t) ? t.flags |= 4 : e === null || e.memoizedState.isDehydrated && !(t.flags & 256) || (t.flags |= 1024, + ys !== null && (lR(ys), + ys = null))), + eR(e, t), + Ir(t), + null; + case 5: + HT(t); + var o = gu(Wm.current); + if (n = t.type, + e !== null && t.stateNode != null) + pV(e, t, n, r, o), + e.ref !== t.ref && (t.flags |= 512, + t.flags |= 2097152); + else { + if (!r) { + if (t.stateNode === null) + throw Error(Oe(166)); + return Ir(t), + null + } + if (e = gu(ia.current), + Py(t)) { + r = t.stateNode, + n = t.type; + var i = t.memoizedProps; + switch (r[Zs] = t, + r[Um] = i, + e = (t.mode & 1) !== 0, + n) { + case "dialog": + fn("cancel", r), + fn("close", r); + break; + case "iframe": + case "object": + case "embed": + fn("load", r); + break; + case "video": + case "audio": + for (o = 0; o < Zp.length; o++) + fn(Zp[o], r); + break; + case "source": + fn("error", r); + break; + case "img": + case "image": + case "link": + fn("error", r), + fn("load", r); + break; + case "details": + fn("toggle", r); + break; + case "input": + Mj(r, i), + fn("invalid", r); + break; + case "select": + r._wrapperState = { + wasMultiple: !!i.multiple + }, + fn("invalid", r); + break; + case "textarea": + jj(r, i), + fn("invalid", r) + } + PE(n, i), + o = null; + for (var s in i) + if (i.hasOwnProperty(s)) { + var a = i[s]; + s === "children" ? typeof a == "string" ? r.textContent !== a && (i.suppressHydrationWarning !== !0 && Ry(r.textContent, a, e), + o = ["children", a]) : typeof a == "number" && r.textContent !== "" + a && (i.suppressHydrationWarning !== !0 && Ry(r.textContent, a, e), + o = ["children", "" + a]) : Om.hasOwnProperty(s) && a != null && s === "onScroll" && fn("scroll", r) + } + switch (n) { + case "input": + yy(r), + Oj(r, i, !0); + break; + case "textarea": + yy(r), + Fj(r); + break; + case "select": + case "option": + break; + default: + typeof i.onClick == "function" && (r.onclick = rb) + } + r = o, + t.updateQueue = r, + r !== null && (t.flags |= 4) + } else { + s = o.nodeType === 9 ? o : o.ownerDocument, + e === "http://www.w3.org/1999/xhtml" && (e = H4(n)), + e === "http://www.w3.org/1999/xhtml" ? n === "script" ? (e = s.createElement("div"), + e.innerHTML = " + + + + +
+ +