diff --git a/assets/css/compiled/main.css b/assets/css/compiled/main.css index 4b9cc57c..86810e12 100644 --- a/assets/css/compiled/main.css +++ b/assets/css/compiled/main.css @@ -480,6 +480,11 @@ input::placeholder,textarea::placeholder { ::-webkit-date-and-time-value { min-height: 1.5em; + text-align: inherit; +} + +::-webkit-datetime-edit { + display: inline-flex; } ::-webkit-datetime-edit,::-webkit-datetime-edit-year-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-meridiem-field { @@ -739,12 +744,12 @@ select { max-width: 65ch; } -.prose :where(p):not(:where([class~="not-prose"] *)) { +.prose :where(p):not(:where([class~="not-prose"],[class~="not-prose"] *)) { margin-top: 1.25em; margin-bottom: 1.25em; } -.prose :where([class~="lead"]):not(:where([class~="not-prose"] *)) { +.prose :where([class~="lead"]):not(:where([class~="not-prose"],[class~="not-prose"] *)) { color: var(--tw-prose-lead); font-size: 1.25em; line-height: 1.6; @@ -752,103 +757,109 @@ select { margin-bottom: 1.2em; } -.prose :where(a):not(:where([class~="not-prose"] *)) { +.prose :where(a):not(:where([class~="not-prose"],[class~="not-prose"] *)) { color: var(--tw-prose-links); text-decoration: none; font-weight: 500; text-decoration-color: rgba(var(--color-primary-300), 1); } -.prose :where(a):not(:where([class~="not-prose"] *)):hover { +.prose :where(a):not(:where([class~="not-prose"],[class~="not-prose"] *)):hover { color: rgba(var(--color-primary-600), 1); text-decoration: none; border-radius: 0.09rem; } -.prose :where(strong):not(:where([class~="not-prose"] *)) { +.prose :where(strong):not(:where([class~="not-prose"],[class~="not-prose"] *)) { color: var(--tw-prose-bold); font-weight: 600; } -.prose :where(a strong):not(:where([class~="not-prose"] *)) { +.prose :where(a strong):not(:where([class~="not-prose"],[class~="not-prose"] *)) { color: inherit; } -.prose :where(blockquote strong):not(:where([class~="not-prose"] *)) { +.prose :where(blockquote strong):not(:where([class~="not-prose"],[class~="not-prose"] *)) { color: inherit; } -.prose :where(thead th strong):not(:where([class~="not-prose"] *)) { +.prose :where(thead th strong):not(:where([class~="not-prose"],[class~="not-prose"] *)) { color: inherit; } -.prose :where(ol):not(:where([class~="not-prose"] *)) { +.prose :where(ol):not(:where([class~="not-prose"],[class~="not-prose"] *)) { list-style-type: decimal; margin-top: 1.25em; margin-bottom: 1.25em; padding-left: 1.625em; } -.prose :where(ol[type="A"]):not(:where([class~="not-prose"] *)) { +.prose :where(ol[type="A"]):not(:where([class~="not-prose"],[class~="not-prose"] *)) { list-style-type: upper-alpha; } -.prose :where(ol[type="a"]):not(:where([class~="not-prose"] *)) { +.prose :where(ol[type="a"]):not(:where([class~="not-prose"],[class~="not-prose"] *)) { list-style-type: lower-alpha; } -.prose :where(ol[type="A" s]):not(:where([class~="not-prose"] *)) { +.prose :where(ol[type="A" s]):not(:where([class~="not-prose"],[class~="not-prose"] *)) { list-style-type: upper-alpha; } -.prose :where(ol[type="a" s]):not(:where([class~="not-prose"] *)) { +.prose :where(ol[type="a" s]):not(:where([class~="not-prose"],[class~="not-prose"] *)) { list-style-type: lower-alpha; } -.prose :where(ol[type="I"]):not(:where([class~="not-prose"] *)) { +.prose :where(ol[type="I"]):not(:where([class~="not-prose"],[class~="not-prose"] *)) { list-style-type: upper-roman; } -.prose :where(ol[type="i"]):not(:where([class~="not-prose"] *)) { +.prose :where(ol[type="i"]):not(:where([class~="not-prose"],[class~="not-prose"] *)) { list-style-type: lower-roman; } -.prose :where(ol[type="I" s]):not(:where([class~="not-prose"] *)) { +.prose :where(ol[type="I" s]):not(:where([class~="not-prose"],[class~="not-prose"] *)) { list-style-type: upper-roman; } -.prose :where(ol[type="i" s]):not(:where([class~="not-prose"] *)) { +.prose :where(ol[type="i" s]):not(:where([class~="not-prose"],[class~="not-prose"] *)) { list-style-type: lower-roman; } -.prose :where(ol[type="1"]):not(:where([class~="not-prose"] *)) { +.prose :where(ol[type="1"]):not(:where([class~="not-prose"],[class~="not-prose"] *)) { list-style-type: decimal; } -.prose :where(ul):not(:where([class~="not-prose"] *)) { +.prose :where(ul):not(:where([class~="not-prose"],[class~="not-prose"] *)) { list-style-type: disc; margin-top: 1.25em; margin-bottom: 1.25em; padding-left: 1.625em; } -.prose :where(ol > li):not(:where([class~="not-prose"] *))::marker { +.prose :where(ol > li):not(:where([class~="not-prose"],[class~="not-prose"] *))::marker { font-weight: 400; color: var(--tw-prose-counters); } -.prose :where(ul > li):not(:where([class~="not-prose"] *))::marker { +.prose :where(ul > li):not(:where([class~="not-prose"],[class~="not-prose"] *))::marker { color: var(--tw-prose-bullets); } -.prose :where(hr):not(:where([class~="not-prose"] *)) { +.prose :where(dt):not(:where([class~="not-prose"],[class~="not-prose"] *)) { + color: var(--tw-prose-headings); + font-weight: 600; + margin-top: 1.25em; +} + +.prose :where(hr):not(:where([class~="not-prose"],[class~="not-prose"] *)) { border-color: var(--tw-prose-hr); border-top-width: 1px; margin-top: 3em; margin-bottom: 3em; } -.prose :where(blockquote):not(:where([class~="not-prose"] *)) { +.prose :where(blockquote):not(:where([class~="not-prose"],[class~="not-prose"] *)) { font-weight: 500; font-style: italic; color: var(--tw-prose-quotes); @@ -860,15 +871,15 @@ select { padding-left: 1em; } -.prose :where(blockquote p:first-of-type):not(:where([class~="not-prose"] *))::before { +.prose :where(blockquote p:first-of-type):not(:where([class~="not-prose"],[class~="not-prose"] *))::before { content: open-quote; } -.prose :where(blockquote p:last-of-type):not(:where([class~="not-prose"] *))::after { +.prose :where(blockquote p:last-of-type):not(:where([class~="not-prose"],[class~="not-prose"] *))::after { content: close-quote; } -.prose :where(h1):not(:where([class~="not-prose"] *)) { +.prose :where(h1):not(:where([class~="not-prose"],[class~="not-prose"] *)) { color: var(--tw-prose-headings); font-weight: 800; font-size: 2.25em; @@ -877,12 +888,12 @@ select { line-height: 1.1111111; } -.prose :where(h1 strong):not(:where([class~="not-prose"] *)) { +.prose :where(h1 strong):not(:where([class~="not-prose"],[class~="not-prose"] *)) { font-weight: 900; color: inherit; } -.prose :where(h2):not(:where([class~="not-prose"] *)) { +.prose :where(h2):not(:where([class~="not-prose"],[class~="not-prose"] *)) { color: var(--tw-prose-headings); font-weight: 700; font-size: 1.5em; @@ -891,12 +902,12 @@ select { line-height: 1.3333333; } -.prose :where(h2 strong):not(:where([class~="not-prose"] *)) { +.prose :where(h2 strong):not(:where([class~="not-prose"],[class~="not-prose"] *)) { font-weight: 800; color: inherit; } -.prose :where(h3):not(:where([class~="not-prose"] *)) { +.prose :where(h3):not(:where([class~="not-prose"],[class~="not-prose"] *)) { color: var(--tw-prose-headings); font-weight: 600; font-size: 1.25em; @@ -905,12 +916,12 @@ select { line-height: 1.6; } -.prose :where(h3 strong):not(:where([class~="not-prose"] *)) { +.prose :where(h3 strong):not(:where([class~="not-prose"],[class~="not-prose"] *)) { font-weight: 700; color: inherit; } -.prose :where(h4):not(:where([class~="not-prose"] *)) { +.prose :where(h4):not(:where([class~="not-prose"],[class~="not-prose"] *)) { color: var(--tw-prose-headings); font-weight: 600; margin-top: 1.5em; @@ -918,29 +929,38 @@ select { line-height: 1.5; } -.prose :where(h4 strong):not(:where([class~="not-prose"] *)) { +.prose :where(h4 strong):not(:where([class~="not-prose"],[class~="not-prose"] *)) { font-weight: 700; color: inherit; } -.prose :where(img):not(:where([class~="not-prose"] *)) { +.prose :where(img):not(:where([class~="not-prose"],[class~="not-prose"] *)) { margin-top: 2em; margin-bottom: 2em; } -.prose :where(figure > *):not(:where([class~="not-prose"] *)) { - margin-top: 0; - margin-bottom: 0; +.prose :where(picture):not(:where([class~="not-prose"],[class~="not-prose"] *)) { + display: block; + margin-top: 2em; + margin-bottom: 2em; } -.prose :where(figcaption):not(:where([class~="not-prose"] *)) { - color: var(--tw-prose-captions); - font-size: 0.875em; - line-height: 1.4285714; - margin-top: 0.8571429em; +.prose :where(kbd):not(:where([class~="not-prose"],[class~="not-prose"] *)) { + font-weight: 600; + font-family: inherit; + color: var(--tw-prose-kbd); + box-shadow: 0 0 0 1px rgb(var(--tw-prose-kbd-shadows) / 10%), 0 3px 0 rgb(var(--tw-prose-kbd-shadows) / 10%); + font-size: 0.9rem; + border-radius: 0.25rem; + padding-top: 0.1875em; + padding-right: 0.375em; + padding-bottom: 0.1875em; + padding-left: 0.375em; + background-color: rgba(var(--color-neutral-200), 1); + padding: 0.1rem 0.4rem; } -.prose :where(code):not(:where([class~="not-prose"] *)) { +.prose :where(code):not(:where([class~="not-prose"],[class~="not-prose"] *)) { color: var(--tw-prose-code); font-weight: 600; font-size: 0.875em; @@ -952,47 +972,47 @@ select { border-radius: 0.25rem; } -.prose :where(code):not(:where([class~="not-prose"] *))::before { +.prose :where(code):not(:where([class~="not-prose"],[class~="not-prose"] *))::before { content: "`"; display: none; } -.prose :where(code):not(:where([class~="not-prose"] *))::after { +.prose :where(code):not(:where([class~="not-prose"],[class~="not-prose"] *))::after { content: "`"; display: none; } -.prose :where(a code):not(:where([class~="not-prose"] *)) { +.prose :where(a code):not(:where([class~="not-prose"],[class~="not-prose"] *)) { color: var(--tw-prose-code); } -.prose :where(h1 code):not(:where([class~="not-prose"] *)) { +.prose :where(h1 code):not(:where([class~="not-prose"],[class~="not-prose"] *)) { color: inherit; } -.prose :where(h2 code):not(:where([class~="not-prose"] *)) { +.prose :where(h2 code):not(:where([class~="not-prose"],[class~="not-prose"] *)) { color: inherit; font-size: 0.875em; } -.prose :where(h3 code):not(:where([class~="not-prose"] *)) { +.prose :where(h3 code):not(:where([class~="not-prose"],[class~="not-prose"] *)) { color: inherit; font-size: 0.9em; } -.prose :where(h4 code):not(:where([class~="not-prose"] *)) { +.prose :where(h4 code):not(:where([class~="not-prose"],[class~="not-prose"] *)) { color: inherit; } -.prose :where(blockquote code):not(:where([class~="not-prose"] *)) { +.prose :where(blockquote code):not(:where([class~="not-prose"],[class~="not-prose"] *)) { color: inherit; } -.prose :where(thead th code):not(:where([class~="not-prose"] *)) { +.prose :where(thead th code):not(:where([class~="not-prose"],[class~="not-prose"] *)) { color: inherit; } -.prose :where(pre):not(:where([class~="not-prose"] *)) { +.prose :where(pre):not(:where([class~="not-prose"],[class~="not-prose"] *)) { color: var(--tw-prose-pre-code); background-color: var(--tw-prose-pre-bg); overflow-x: auto; @@ -1008,7 +1028,7 @@ select { padding-left: 1.1428571em; } -.prose :where(pre code):not(:where([class~="not-prose"] *)) { +.prose :where(pre code):not(:where([class~="not-prose"],[class~="not-prose"] *)) { background-color: transparent; border-width: 0; border-radius: 0; @@ -1020,15 +1040,15 @@ select { line-height: inherit; } -.prose :where(pre code):not(:where([class~="not-prose"] *))::before { +.prose :where(pre code):not(:where([class~="not-prose"],[class~="not-prose"] *))::before { content: none; } -.prose :where(pre code):not(:where([class~="not-prose"] *))::after { +.prose :where(pre code):not(:where([class~="not-prose"],[class~="not-prose"] *))::after { content: none; } -.prose :where(table):not(:where([class~="not-prose"] *)) { +.prose :where(table):not(:where([class~="not-prose"],[class~="not-prose"] *)) { width: 100%; table-layout: auto; text-align: left; @@ -1038,12 +1058,12 @@ select { line-height: 1.7142857; } -.prose :where(thead):not(:where([class~="not-prose"] *)) { +.prose :where(thead):not(:where([class~="not-prose"],[class~="not-prose"] *)) { border-bottom-width: 1px; border-bottom-color: var(--tw-prose-th-borders); } -.prose :where(thead th):not(:where([class~="not-prose"] *)) { +.prose :where(thead th):not(:where([class~="not-prose"],[class~="not-prose"] *)) { color: var(--tw-prose-headings); font-weight: 600; vertical-align: bottom; @@ -1052,28 +1072,40 @@ select { padding-left: 0.5714286em; } -.prose :where(tbody tr):not(:where([class~="not-prose"] *)) { +.prose :where(tbody tr):not(:where([class~="not-prose"],[class~="not-prose"] *)) { border-bottom-width: 1px; border-bottom-color: var(--tw-prose-td-borders); } -.prose :where(tbody tr:last-child):not(:where([class~="not-prose"] *)) { +.prose :where(tbody tr:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) { border-bottom-width: 0; } -.prose :where(tbody td):not(:where([class~="not-prose"] *)) { +.prose :where(tbody td):not(:where([class~="not-prose"],[class~="not-prose"] *)) { vertical-align: baseline; } -.prose :where(tfoot):not(:where([class~="not-prose"] *)) { +.prose :where(tfoot):not(:where([class~="not-prose"],[class~="not-prose"] *)) { border-top-width: 1px; border-top-color: var(--tw-prose-th-borders); } -.prose :where(tfoot td):not(:where([class~="not-prose"] *)) { +.prose :where(tfoot td):not(:where([class~="not-prose"],[class~="not-prose"] *)) { vertical-align: top; } +.prose :where(figure > *):not(:where([class~="not-prose"],[class~="not-prose"] *)) { + margin-top: 0; + margin-bottom: 0; +} + +.prose :where(figcaption):not(:where([class~="not-prose"],[class~="not-prose"] *)) { + color: var(--tw-prose-captions); + font-size: 0.875em; + line-height: 1.4285714; + margin-top: 0.8571429em; +} + .prose { --tw-prose-body: rgba(var(--color-neutral-700), 1); --tw-prose-headings: rgba(var(--color-neutral-800), 1); @@ -1086,6 +1118,8 @@ select { --tw-prose-quotes: rgba(var(--color-neutral-700), 1); --tw-prose-quote-borders: rgba(var(--color-primary-200), 1); --tw-prose-captions: rgba(var(--color-neutral-500), 1); + --tw-prose-kbd: #111827; + --tw-prose-kbd-shadows: 17 24 39; --tw-prose-code: rgba(var(--color-secondary-700), 1); --tw-prose-pre-code: rgba(var(--color-neutral-700), 1); --tw-prose-pre-bg: rgba(var(--color-neutral-50), 1); @@ -1102,6 +1136,8 @@ select { --tw-prose-invert-quotes: rgba(var(--color-neutral-200), 1); --tw-prose-invert-quote-borders: rgba(var(--color-primary-900), 1); --tw-prose-invert-captions: rgba(var(--color-neutral-400), 1); + --tw-prose-invert-kbd: #fff; + --tw-prose-invert-kbd-shadows: 255 255 255; --tw-prose-invert-code: rgba(var(--color-secondary-400), 1); --tw-prose-invert-pre-code: rgba(var(--color-neutral-200), 1); --tw-prose-invert-pre-bg: rgba(var(--color-neutral-700), 1); @@ -1111,138 +1147,145 @@ select { line-height: 1.75; } -.prose :where(video):not(:where([class~="not-prose"] *)) { +.prose :where(picture > img):not(:where([class~="not-prose"],[class~="not-prose"] *)) { + margin-top: 0; + margin-bottom: 0; +} + +.prose :where(video):not(:where([class~="not-prose"],[class~="not-prose"] *)) { margin-top: 2em; margin-bottom: 2em; } -.prose :where(figure):not(:where([class~="not-prose"] *)) { - margin-top: 2em; - margin-bottom: 2em; -} - -.prose :where(li):not(:where([class~="not-prose"] *)) { +.prose :where(li):not(:where([class~="not-prose"],[class~="not-prose"] *)) { margin-top: 0.5em; margin-bottom: 0.5em; } -.prose :where(ol > li):not(:where([class~="not-prose"] *)) { +.prose :where(ol > li):not(:where([class~="not-prose"],[class~="not-prose"] *)) { padding-left: 0.375em; } -.prose :where(ul > li):not(:where([class~="not-prose"] *)) { +.prose :where(ul > li):not(:where([class~="not-prose"],[class~="not-prose"] *)) { padding-left: 0.375em; } -.prose :where(.prose > ul > li p):not(:where([class~="not-prose"] *)) { +.prose :where(.prose > ul > li p):not(:where([class~="not-prose"],[class~="not-prose"] *)) { margin-top: 0.75em; margin-bottom: 0.75em; } -.prose :where(.prose > ul > li > *:first-child):not(:where([class~="not-prose"] *)) { +.prose :where(.prose > ul > li > *:first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) { margin-top: 1.25em; } -.prose :where(.prose > ul > li > *:last-child):not(:where([class~="not-prose"] *)) { +.prose :where(.prose > ul > li > *:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) { margin-bottom: 1.25em; } -.prose :where(.prose > ol > li > *:first-child):not(:where([class~="not-prose"] *)) { +.prose :where(.prose > ol > li > *:first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) { margin-top: 1.25em; } -.prose :where(.prose > ol > li > *:last-child):not(:where([class~="not-prose"] *)) { +.prose :where(.prose > ol > li > *:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) { margin-bottom: 1.25em; } -.prose :where(ul ul, ul ol, ol ul, ol ol):not(:where([class~="not-prose"] *)) { +.prose :where(ul ul, ul ol, ol ul, ol ol):not(:where([class~="not-prose"],[class~="not-prose"] *)) { margin-top: 0.75em; margin-bottom: 0.75em; } -.prose :where(hr + *):not(:where([class~="not-prose"] *)) { +.prose :where(dl):not(:where([class~="not-prose"],[class~="not-prose"] *)) { + margin-top: 1.25em; + margin-bottom: 1.25em; +} + +.prose :where(dd):not(:where([class~="not-prose"],[class~="not-prose"] *)) { + margin-top: 0.5em; + padding-left: 1.625em; +} + +.prose :where(hr + *):not(:where([class~="not-prose"],[class~="not-prose"] *)) { margin-top: 0; } -.prose :where(h2 + *):not(:where([class~="not-prose"] *)) { +.prose :where(h2 + *):not(:where([class~="not-prose"],[class~="not-prose"] *)) { margin-top: 0; } -.prose :where(h3 + *):not(:where([class~="not-prose"] *)) { +.prose :where(h3 + *):not(:where([class~="not-prose"],[class~="not-prose"] *)) { margin-top: 0; } -.prose :where(h4 + *):not(:where([class~="not-prose"] *)) { +.prose :where(h4 + *):not(:where([class~="not-prose"],[class~="not-prose"] *)) { margin-top: 0; } -.prose :where(thead th:first-child):not(:where([class~="not-prose"] *)) { +.prose :where(thead th:first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) { padding-left: 0; } -.prose :where(thead th:last-child):not(:where([class~="not-prose"] *)) { +.prose :where(thead th:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) { padding-right: 0; } -.prose :where(tbody td, tfoot td):not(:where([class~="not-prose"] *)) { +.prose :where(tbody td, tfoot td):not(:where([class~="not-prose"],[class~="not-prose"] *)) { padding-top: 0.5714286em; padding-right: 0.5714286em; padding-bottom: 0.5714286em; padding-left: 0.5714286em; } -.prose :where(tbody td:first-child, tfoot td:first-child):not(:where([class~="not-prose"] *)) { +.prose :where(tbody td:first-child, tfoot td:first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) { padding-left: 0; } -.prose :where(tbody td:last-child, tfoot td:last-child):not(:where([class~="not-prose"] *)) { +.prose :where(tbody td:last-child, tfoot td:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) { padding-right: 0; } -.prose :where(.prose > :first-child):not(:where([class~="not-prose"] *)) { +.prose :where(figure):not(:where([class~="not-prose"],[class~="not-prose"] *)) { + margin-top: 2em; + margin-bottom: 2em; +} + +.prose :where(.prose > :first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) { margin-top: 0; } -.prose :where(.prose > :last-child):not(:where([class~="not-prose"] *)) { +.prose :where(.prose > :last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) { margin-bottom: 0; } -.prose :where(kbd):not(:where([class~="not-prose"] *)) { - background-color: rgba(var(--color-neutral-200), 1); - padding: 0.1rem 0.4rem; - border-radius: 0.25rem; - font-size: 0.9rem; - font-weight: 600; -} - -.prose :where(mark):not(:where([class~="not-prose"] *)) { +.prose :where(mark):not(:where([class~="not-prose"],[class~="not-prose"] *)) { color: rgba(var(--color-neutral-800), 1); background-color: rgba(var(--color-primary-600), 1); padding: 0.1rem 0.2rem; border-radius: 0.25rem; } -.prose :where(p):not(:where([class~="not-prose"] *))::before { +.prose :where(p):not(:where([class~="not-prose"],[class~="not-prose"] *))::before { display: none; } -.prose :where(p):not(:where([class~="not-prose"] *))::after { +.prose :where(p):not(:where([class~="not-prose"],[class~="not-prose"] *))::after { display: none; } -.prose :where(a.active):not(:where([class~="not-prose"] *)) { +.prose :where(a.active):not(:where([class~="not-prose"],[class~="not-prose"] *)) { text-decoration-color: rgba(var(--color-primary-600), 1); } -.prose :where(p.active):not(:where([class~="not-prose"] *)) { +.prose :where(p.active):not(:where([class~="not-prose"],[class~="not-prose"] *)) { text-decoration-color: rgba(var(--color-primary-600), 1); } -.prose-invert :where(a.active):not(:where([class~="not-prose"] *)) { +.prose-invert :where(a.active):not(:where([class~="not-prose"],[class~="not-prose"] *)) { text-decoration-color: rgba(var(--color-primary-400), 1); } -.prose-invert :where(p.active):not(:where([class~="not-prose"] *)) { +.prose-invert :where(p.active):not(:where([class~="not-prose"],[class~="not-prose"] *)) { text-decoration-color: rgba(var(--color-primary-400), 1); } @@ -1286,6 +1329,10 @@ select { position: static; } +.\!fixed { + position: fixed !important; +} + .fixed { position: fixed; } @@ -1323,6 +1370,10 @@ select { left: -15px; } +.-left-\[9999px\] { + left: -9999px; +} + .-top-\[21px\] { top: -21px; } @@ -1355,6 +1406,10 @@ select { left: 0.75rem; } +.left-\[50\%\] { + left: 50%; +} + .left-\[50px\] { left: 50px; } @@ -1419,6 +1474,10 @@ select { top: 13px; } +.top-\[50\%\] { + top: 50%; +} + .top-\[50px\] { top: 50px; } @@ -1427,6 +1486,10 @@ select { top: calc(100vh - 5.5rem); } +.top-full { + top: 100%; +} + .\!z-40 { z-index: 40 !important; } @@ -1443,6 +1506,10 @@ select { z-index: 30; } +.z-40 { + z-index: 40; +} + .z-50 { z-index: 50; } @@ -1675,6 +1742,10 @@ select { margin-bottom: 1.5rem; } +.mb-8 { + margin-bottom: 2rem; +} + .mb-\[0\.125rem\] { margin-bottom: 0.125rem; } @@ -2067,6 +2138,10 @@ select { min-height: 325px; } +.min-h-\[40px\] { + min-height: 40px; +} + .min-h-\[auto\] { min-height: auto; } @@ -2091,6 +2166,10 @@ select { width: 0.375rem; } +.w-1\/2 { + width: 50%; +} + .w-10 { width: 2.5rem; } @@ -2382,6 +2461,11 @@ select { transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); } +.-translate-x-\[50\%\] { + --tw-translate-x: -50%; + transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); +} + .-translate-x-full { --tw-translate-x: -100%; transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); @@ -2397,6 +2481,11 @@ select { transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); } +.-translate-y-\[50\%\] { + --tw-translate-y: -50%; + transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); +} + .translate-x-\[150\%\] { --tw-translate-x: 150%; transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); @@ -2868,16 +2957,36 @@ select { border-style: none; } +.\!border-\[\#14a44d\] { + --tw-border-opacity: 1 !important; + border-color: rgb(20 164 77 / var(--tw-border-opacity)) !important; +} + .\!border-\[\#b2b3b4\] { --tw-border-opacity: 1 !important; border-color: rgb(178 179 180 / var(--tw-border-opacity)) !important; } +.\!border-\[\#dc4c64\] { + --tw-border-opacity: 1 !important; + border-color: rgb(220 76 100 / var(--tw-border-opacity)) !important; +} + +.border-\[\#14a44d\] { + --tw-border-opacity: 1; + border-color: rgb(20 164 77 / var(--tw-border-opacity)); +} + .border-\[\#3b71ca\] { --tw-border-opacity: 1; border-color: rgb(59 113 202 / var(--tw-border-opacity)); } +.border-\[\#dc4c64\] { + --tw-border-opacity: 1; + border-color: rgb(220 76 100 / var(--tw-border-opacity)); +} + .border-neutral-100 { --tw-border-opacity: 1; border-color: rgba(var(--color-neutral-100), var(--tw-border-opacity)); @@ -2958,6 +3067,10 @@ select { background-color: rgb(236 239 241 / var(--tw-bg-opacity)); } +.bg-\[rgba\(0\2c 0\2c 0\2c 0\.4\)\] { + background-color: rgba(0,0,0,0.4); +} + .bg-neutral { --tw-bg-opacity: 1; background-color: rgba(var(--color-neutral), var(--tw-bg-opacity)); @@ -2981,6 +3094,11 @@ select { background-color: rgba(var(--color-neutral-500), 0.5); } +.bg-neutral-600 { + --tw-bg-opacity: 1; + background-color: rgba(var(--color-neutral-600), var(--tw-bg-opacity)); +} + .bg-neutral-700 { --tw-bg-opacity: 1; background-color: rgba(var(--color-neutral-700), var(--tw-bg-opacity)); @@ -3159,6 +3277,11 @@ select { padding-right: 0.25rem; } +.px-1\.5 { + padding-left: 0.375rem; + padding-right: 0.375rem; +} + .px-2 { padding-left: 0.5rem; padding-right: 0.5rem; @@ -3622,6 +3745,16 @@ select { letter-spacing: 0em; } +.\!text-\[\#14a44d\] { + --tw-text-opacity: 1 !important; + color: rgb(20 164 77 / var(--tw-text-opacity)) !important; +} + +.\!text-\[\#dc4c64\] { + --tw-text-opacity: 1 !important; + color: rgb(220 76 100 / var(--tw-text-opacity)) !important; +} + .\!text-neutral { --tw-text-opacity: 1 !important; color: rgba(var(--color-neutral), var(--tw-text-opacity)) !important; @@ -3632,6 +3765,11 @@ select { color: rgba(var(--color-primary-700), var(--tw-text-opacity)) !important; } +.text-\[\#14a44d\] { + --tw-text-opacity: 1; + color: rgb(20 164 77 / var(--tw-text-opacity)); +} + .text-\[\#212529\] { --tw-text-opacity: 1; color: rgb(33 37 41 / var(--tw-text-opacity)); @@ -3657,6 +3795,11 @@ select { color: rgb(179 179 179 / var(--tw-text-opacity)); } +.text-\[\#dc4c64\] { + --tw-text-opacity: 1; + color: rgb(220 76 100 / var(--tw-text-opacity)); +} + .text-\[\#ffffff8a\] { color: #ffffff8a; } @@ -5640,6 +5783,8 @@ body:has(#menu-controller:checked) { --tw-prose-quotes: var(--tw-prose-invert-quotes); --tw-prose-quote-borders: var(--tw-prose-invert-quote-borders); --tw-prose-captions: var(--tw-prose-invert-captions); + --tw-prose-kbd: var(--tw-prose-invert-kbd); + --tw-prose-kbd-shadows: var(--tw-prose-invert-kbd-shadows); --tw-prose-code: var(--tw-prose-invert-code); --tw-prose-pre-code: var(--tw-prose-invert-pre-code); --tw-prose-pre-bg: var(--tw-prose-invert-pre-bg); @@ -5647,32 +5792,32 @@ body:has(#menu-controller:checked) { --tw-prose-td-borders: var(--tw-prose-invert-td-borders); } -:is(.dark .dark\:prose-invert) :where(a):not(:where([class~="not-prose"] *)) { +:is(.dark .dark\:prose-invert) :where(a):not(:where([class~="not-prose"],[class~="not-prose"] *)) { text-decoration-color: rgba(var(--color-neutral-600), 1); } -:is(.dark .dark\:prose-invert) :where(a):not(:where([class~="not-prose"] *)):hover { +:is(.dark .dark\:prose-invert) :where(a):not(:where([class~="not-prose"],[class~="not-prose"] *)):hover { color: rgba(var(--color-primary-400), 1); } -:is(.dark .dark\:prose-invert) :where(kbd):not(:where([class~="not-prose"] *)) { +:is(.dark .dark\:prose-invert) :where(kbd):not(:where([class~="not-prose"],[class~="not-prose"] *)) { color: rgba(var(--color-neutral-200), 1); background-color: rgba(var(--color-neutral-700), 1); } -:is(.dark .dark\:prose-invert) :where(mark):not(:where([class~="not-prose"] *)) { +:is(.dark .dark\:prose-invert) :where(mark):not(:where([class~="not-prose"],[class~="not-prose"] *)) { background-color: rgba(var(--color-primary-400), 1); } -:is(.dark .dark\:prose-invert) :where(code):not(:where([class~="not-prose"] *)) { +:is(.dark .dark\:prose-invert) :where(code):not(:where([class~="not-prose"],[class~="not-prose"] *)) { background-color: rgba(var(--color-neutral-700), 1); } -:is(.dark .dark\:prose-invert) :where(a.active):not(:where([class~="not-prose"] *)) { +:is(.dark .dark\:prose-invert) :where(a.active):not(:where([class~="not-prose"],[class~="not-prose"] *)) { text-decoration-color: rgba(var(--color-primary-400), 1); } -:is(.dark .dark\:prose-invert) :where(p.active):not(:where([class~="not-prose"] *)) { +:is(.dark .dark\:prose-invert) :where(p.active):not(:where([class~="not-prose"],[class~="not-prose"] *)) { text-decoration-color: rgba(var(--color-primary-400), 1); } @@ -5765,6 +5910,26 @@ body:has(#menu-controller:checked) { margin-top: 2rem; } +.checked\:\!border-\[\#14a44d\]:checked { + --tw-border-opacity: 1 !important; + border-color: rgb(20 164 77 / var(--tw-border-opacity)) !important; +} + +.checked\:\!border-\[\#dc4c64\]:checked { + --tw-border-opacity: 1 !important; + border-color: rgb(220 76 100 / var(--tw-border-opacity)) !important; +} + +.checked\:\!bg-\[\#14a44d\]:checked { + --tw-bg-opacity: 1 !important; + background-color: rgb(20 164 77 / var(--tw-bg-opacity)) !important; +} + +.checked\:\!bg-\[\#dc4c64\]:checked { + --tw-bg-opacity: 1 !important; + background-color: rgb(220 76 100 / var(--tw-bg-opacity)) !important; +} + .checked\:before\:opacity-\[0\.16\]:checked::before { content: var(--tw-content); opacity: 0.16; @@ -5826,6 +5991,18 @@ body:has(#menu-controller:checked) { border-style: solid; } +.checked\:after\:\!bg-\[\#14a44d\]:checked::after { + content: var(--tw-content); + --tw-bg-opacity: 1 !important; + background-color: rgb(20 164 77 / var(--tw-bg-opacity)) !important; +} + +.checked\:after\:\!bg-\[\#dc4c64\]:checked::after { + content: var(--tw-content); + --tw-bg-opacity: 1 !important; + background-color: rgb(220 76 100 / var(--tw-bg-opacity)) !important; +} + .checked\:after\:bg-transparent:checked::after { content: var(--tw-content); background-color: transparent; @@ -6012,6 +6189,16 @@ body:has(#menu-controller:checked) { border-radius: 50%; } +.focus\:\!border-\[\#14a44d\]:focus { + --tw-border-opacity: 1 !important; + border-color: rgb(20 164 77 / var(--tw-border-opacity)) !important; +} + +.focus\:\!border-\[\#dc4c64\]:focus { + --tw-border-opacity: 1 !important; + border-color: rgb(220 76 100 / var(--tw-border-opacity)) !important; +} + .focus\:\!bg-\[\#eee\]:focus { --tw-bg-opacity: 1 !important; background-color: rgb(238 238 238 / var(--tw-bg-opacity)) !important; @@ -6062,6 +6249,18 @@ body:has(#menu-controller:checked) { opacity: 0.9; } +.focus\:\!shadow-\[inset_0_0_0_1px_\#14a44d\]:focus { + --tw-shadow: inset 0 0 0 1px #14a44d !important; + --tw-shadow-colored: inset 0 0 0 1px var(--tw-shadow-color) !important; + box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow) !important; +} + +.focus\:\!shadow-\[inset_0_0_0_1px_\#dc4c64\]:focus { + --tw-shadow: inset 0 0 0 1px #dc4c64 !important; + --tw-shadow-colored: inset 0 0 0 1px var(--tw-shadow-color) !important; + box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow) !important; +} + .focus\:shadow-\[0_8px_9px_-4px_rgba\(59\2c 113\2c 202\2c 0\.3\)\2c 0_4px_18px_0_rgba\(59\2c 113\2c 202\2c 0\.2\)\]:focus { --tw-shadow: 0 8px 9px -4px rgba(59,113,202,0.3),0 4px 18px 0 rgba(59,113,202,0.2); --tw-shadow-colored: 0 8px 9px -4px var(--tw-shadow-color), 0 4px 18px 0 var(--tw-shadow-color); @@ -6580,6 +6779,16 @@ body:has(#menu-controller:checked) { border-style: solid; } +.group[data-te-input-focused] .group-data-\[te-input-focused\]\:border-\[\#14a44d\] { + --tw-border-opacity: 1; + border-color: rgb(20 164 77 / var(--tw-border-opacity)); +} + +.group[data-te-input-focused] .group-data-\[te-input-focused\]\:border-\[\#dc4c64\] { + --tw-border-opacity: 1; + border-color: rgb(220 76 100 / var(--tw-border-opacity)); +} + .group[data-te-input-focused] .group-data-\[te-input-focused\]\:border-t-transparent { border-top-color: transparent; } @@ -6592,36 +6801,72 @@ body:has(#menu-controller:checked) { padding-left: 1.75rem; } +.group[data-te-input-focused] .group-data-\[te-input-focused\]\:shadow-\[-1px_0_0_\#14a44d\2c _0_1px_0_0_\#14a44d\2c _0_-1px_0_0_\#14a44d\] { + --tw-shadow: -1px 0 0 #14a44d, 0 1px 0 0 #14a44d, 0 -1px 0 0 #14a44d; + --tw-shadow-colored: -1px 0 0 var(--tw-shadow-color), 0 1px 0 0 var(--tw-shadow-color), 0 -1px 0 0 var(--tw-shadow-color); + box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); +} + .group[data-te-input-focused] .group-data-\[te-input-focused\]\:shadow-\[-1px_0_0_\#3b71ca\2c _0_1px_0_0_\#3b71ca\2c _0_-1px_0_0_\#3b71ca\] { --tw-shadow: -1px 0 0 #3b71ca, 0 1px 0 0 #3b71ca, 0 -1px 0 0 #3b71ca; --tw-shadow-colored: -1px 0 0 var(--tw-shadow-color), 0 1px 0 0 var(--tw-shadow-color), 0 -1px 0 0 var(--tw-shadow-color); box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); } +.group[data-te-input-focused] .group-data-\[te-input-focused\]\:shadow-\[-1px_0_0_\#dc4c64\2c _0_1px_0_0_\#dc4c64\2c _0_-1px_0_0_\#dc4c64\] { + --tw-shadow: -1px 0 0 #dc4c64, 0 1px 0 0 #dc4c64, 0 -1px 0 0 #dc4c64; + --tw-shadow-colored: -1px 0 0 var(--tw-shadow-color), 0 1px 0 0 var(--tw-shadow-color), 0 -1px 0 0 var(--tw-shadow-color); + box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); +} + .group[data-te-input-focused] .group-data-\[te-input-focused\]\:shadow-\[-1px_0_0_\#ffffff\2c _0_1px_0_0_\#ffffff\2c _0_-1px_0_0_\#ffffff\] { --tw-shadow: -1px 0 0 #ffffff, 0 1px 0 0 #ffffff, 0 -1px 0 0 #ffffff; --tw-shadow-colored: -1px 0 0 var(--tw-shadow-color), 0 1px 0 0 var(--tw-shadow-color), 0 -1px 0 0 var(--tw-shadow-color); box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); } +.group[data-te-input-focused] .group-data-\[te-input-focused\]\:shadow-\[0_1px_0_0_\#14a44d\] { + --tw-shadow: 0 1px 0 0 #14a44d; + --tw-shadow-colored: 0 1px 0 0 var(--tw-shadow-color); + box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); +} + .group[data-te-input-focused] .group-data-\[te-input-focused\]\:shadow-\[0_1px_0_0_\#3b71ca\] { --tw-shadow: 0 1px 0 0 #3b71ca; --tw-shadow-colored: 0 1px 0 0 var(--tw-shadow-color); box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); } +.group[data-te-input-focused] .group-data-\[te-input-focused\]\:shadow-\[0_1px_0_0_\#dc4c64\] { + --tw-shadow: 0 1px 0 0 #dc4c64; + --tw-shadow-colored: 0 1px 0 0 var(--tw-shadow-color); + box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); +} + .group[data-te-input-focused] .group-data-\[te-input-focused\]\:shadow-\[0_1px_0_0_\#ffffff\] { --tw-shadow: 0 1px 0 0 #ffffff; --tw-shadow-colored: 0 1px 0 0 var(--tw-shadow-color); box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); } +.group[data-te-input-focused] .group-data-\[te-input-focused\]\:shadow-\[1px_0_0_\#14a44d\2c _0_-1px_0_0_\#14a44d\2c _0_1px_0_0_\#14a44d\] { + --tw-shadow: 1px 0 0 #14a44d, 0 -1px 0 0 #14a44d, 0 1px 0 0 #14a44d; + --tw-shadow-colored: 1px 0 0 var(--tw-shadow-color), 0 -1px 0 0 var(--tw-shadow-color), 0 1px 0 0 var(--tw-shadow-color); + box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); +} + .group[data-te-input-focused] .group-data-\[te-input-focused\]\:shadow-\[1px_0_0_\#3b71ca\2c _0_-1px_0_0_\#3b71ca\2c _0_1px_0_0_\#3b71ca\] { --tw-shadow: 1px 0 0 #3b71ca, 0 -1px 0 0 #3b71ca, 0 1px 0 0 #3b71ca; --tw-shadow-colored: 1px 0 0 var(--tw-shadow-color), 0 -1px 0 0 var(--tw-shadow-color), 0 1px 0 0 var(--tw-shadow-color); box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); } +.group[data-te-input-focused] .group-data-\[te-input-focused\]\:shadow-\[1px_0_0_\#dc4c64\2c _0_-1px_0_0_\#dc4c64\2c _0_1px_0_0_\#dc4c64\] { + --tw-shadow: 1px 0 0 #dc4c64, 0 -1px 0 0 #dc4c64, 0 1px 0 0 #dc4c64; + --tw-shadow-colored: 1px 0 0 var(--tw-shadow-color), 0 -1px 0 0 var(--tw-shadow-color), 0 1px 0 0 var(--tw-shadow-color); + box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); +} + .group[data-te-input-focused] .group-data-\[te-input-focused\]\:shadow-\[1px_0_0_\#ffffff\2c _0_-1px_0_0_\#ffffff\2c _0_1px_0_0_\#ffffff\] { --tw-shadow: 1px 0 0 #ffffff, 0 -1px 0 0 #ffffff, 0 1px 0 0 #ffffff; --tw-shadow-colored: 1px 0 0 var(--tw-shadow-color), 0 -1px 0 0 var(--tw-shadow-color), 0 1px 0 0 var(--tw-shadow-color); @@ -6816,6 +7061,16 @@ body:has(#menu-controller:checked) { border-width: 0px; } +:is(.dark .dark\:border-\[\#14a44d\]) { + --tw-border-opacity: 1; + border-color: rgb(20 164 77 / var(--tw-border-opacity)); +} + +:is(.dark .dark\:border-\[\#dc4c64\]) { + --tw-border-opacity: 1; + border-color: rgb(220 76 100 / var(--tw-border-opacity)); +} + :is(.dark .dark\:border-neutral-400) { --tw-border-opacity: 1; border-color: rgba(var(--color-neutral-400), var(--tw-border-opacity)); @@ -7008,6 +7263,11 @@ body:has(#menu-controller:checked) { background-color: rgba(var(--color-neutral-500), var(--tw-bg-opacity)); } +:is(.dark .dark\:hover\:bg-neutral-600:hover) { + --tw-bg-opacity: 1; + background-color: rgba(var(--color-neutral-600), var(--tw-bg-opacity)); +} + :is(.dark .dark\:hover\:bg-neutral-700:hover) { --tw-bg-opacity: 1; background-color: rgba(var(--color-neutral-700), var(--tw-bg-opacity)); @@ -7588,6 +7848,10 @@ body:has(#menu-controller:checked) { background-color: rgba(var(--color-neutral-700), var(--tw-bg-opacity)); } +.\[\&\>svg\]\:pointer-events-none>svg { + pointer-events: none; +} + .\[\&\>svg\]\:mx-auto>svg { margin-left: auto; margin-right: auto; @@ -7601,6 +7865,10 @@ body:has(#menu-controller:checked) { height: 1.25rem; } +.\[\&\>svg\]\:h-6>svg { + height: 1.5rem; +} + .\[\&\>svg\]\:w-4>svg { width: 1rem; } @@ -7609,6 +7877,10 @@ body:has(#menu-controller:checked) { width: 1.25rem; } +.\[\&\>svg\]\:w-6>svg { + width: 1.5rem; +} + .\[\&\>svg\]\:rotate-180>svg { --tw-rotate: 180deg; transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); diff --git a/assets/lib/jquery/jquery.slim.min.js b/assets/lib/jquery/jquery.slim.min.js index c443b2fc..35906b92 100644 --- a/assets/lib/jquery/jquery.slim.min.js +++ b/assets/lib/jquery/jquery.slim.min.js @@ -1,2 +1,2 @@ -/*! jQuery v3.7.0 -ajax,-ajax/jsonp,-ajax/load,-ajax/script,-ajax/var/location,-ajax/var/nonce,-ajax/var/rquery,-ajax/xhr,-manipulation/_evalUrl,-deprecated/ajax-event-alias,-effects,-effects/animatedSelector,-effects/Tween | (c) OpenJS Foundation and other contributors | jquery.org/license */ -!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(ie,e){"use strict";var oe=[],r=Object.getPrototypeOf,ae=oe.slice,g=oe.flat?function(e){return oe.flat.call(e)}:function(e){return oe.concat.apply([],e)},s=oe.push,se=oe.indexOf,n={},i=n.toString,ue=n.hasOwnProperty,o=ue.toString,a=o.call(Object),le={},v=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},y=function(e){return null!=e&&e===e.window},m=ie.document,u={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,n){var r,i,o=(n=n||m).createElement("script");if(o.text=e,t)for(r in u)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function x(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[i.call(e)]||"object":typeof e}var t="3.7.0 -ajax,-ajax/jsonp,-ajax/load,-ajax/script,-ajax/var/location,-ajax/var/nonce,-ajax/var/rquery,-ajax/xhr,-manipulation/_evalUrl,-deprecated/ajax-event-alias,-effects,-effects/animatedSelector,-effects/Tween",l=/HTML$/i,ce=function(e,t){return new ce.fn.init(e,t)};function c(e){var t=!!e&&"length"in e&&e.length,n=x(e);return!v(e)&&!y(e)&&("array"===n||0===t||"number"==typeof t&&0+~]|"+ge+")"+ge+"*"),b=new RegExp(ge+"|>"),A=new RegExp(g),D=new RegExp("^"+t+"$"),N={ID:new RegExp("^#("+t+")"),CLASS:new RegExp("^\\.("+t+")"),TAG:new RegExp("^("+t+"|[*])"),ATTR:new RegExp("^"+d),PSEUDO:new RegExp("^"+g),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ge+"*(even|odd|(([+-]|)(\\d*)n|)"+ge+"*(?:([+-]|)"+ge+"*(\\d+)|))"+ge+"*\\)|)","i"),bool:new RegExp("^(?:"+f+")$","i"),needsContext:new RegExp("^"+ge+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ge+"*((?:-\\d)?\\d*)"+ge+"*\\)|)(?=[^-]|$)","i")},L=/^(?:input|select|textarea|button)$/i,j=/^h\d$/i,O=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,P=/[+~]/,H=new RegExp("\\\\[\\da-fA-F]{1,6}"+ge+"?|\\\\([^\\r\\n\\f])","g"),q=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},R=function(){V()},M=K(function(e){return!0===e.disabled&&fe(e,"fieldset")},{dir:"parentNode",next:"legend"});try{E.apply(oe=ae.call(ye.childNodes),ye.childNodes),oe[ye.childNodes.length].nodeType}catch(e){E={apply:function(e,t){me.apply(e,ae.call(t))},call:function(e){me.apply(e,ae.call(arguments,1))}}}function I(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerDocument,d=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==d&&9!==d&&11!==d)return n;if(!r&&(V(e),e=e||T,C)){if(11!==d&&(u=O.exec(t)))if(i=u[1]){if(9===d){if(!(a=e.getElementById(i)))return n;if(a.id===i)return E.call(n,a),n}else if(f&&(a=f.getElementById(i))&&I.contains(e,a)&&a.id===i)return E.call(n,a),n}else{if(u[2])return E.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&e.getElementsByClassName)return E.apply(n,e.getElementsByClassName(i)),n}if(!(h[t+" "]||p&&p.test(t))){if(c=t,f=e,1===d&&(b.test(t)||m.test(t))){(f=P.test(t)&&X(e.parentNode)||e)==e&&le.scope||((s=e.getAttribute("id"))?s=ce.escapeSelector(s):e.setAttribute("id",s=k)),o=(l=Y(t)).length;while(o--)l[o]=(s?"#"+s:":scope")+" "+G(l[o]);c=l.join(",")}try{return E.apply(n,f.querySelectorAll(c)),n}catch(e){h(t,!0)}finally{s===k&&e.removeAttribute("id")}}}return re(t.replace(ve,"$1"),e,n,r)}function W(){var r=[];return function e(t,n){return r.push(t+" ")>x.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function B(e){return e[k]=!0,e}function F(e){var t=T.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function $(t){return function(e){return fe(e,"input")&&e.type===t}}function _(t){return function(e){return(fe(e,"input")||fe(e,"button"))&&e.type===t}}function z(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&M(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function U(a){return B(function(o){return o=+o,B(function(e,t){var n,r=a([],e.length,o),i=r.length;while(i--)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function X(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function V(e){var t,n=e?e.ownerDocument||e:ye;return n!=T&&9===n.nodeType&&n.documentElement&&(r=(T=n).documentElement,C=!ce.isXMLDoc(T),i=r.matches||r.webkitMatchesSelector||r.msMatchesSelector,ye!=T&&(t=T.defaultView)&&t.top!==t&&t.addEventListener("unload",R),le.getById=F(function(e){return r.appendChild(e).id=ce.expando,!T.getElementsByName||!T.getElementsByName(ce.expando).length}),le.disconnectedMatch=F(function(e){return i.call(e,"*")}),le.scope=F(function(){return T.querySelectorAll(":scope")}),le.cssHas=F(function(){try{return T.querySelector(":has(*,:jqfake)"),!1}catch(e){return!0}}),le.getById?(x.filter.ID=function(e){var t=e.replace(H,q);return function(e){return e.getAttribute("id")===t}},x.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&C){var n=t.getElementById(e);return n?[n]:[]}}):(x.filter.ID=function(e){var n=e.replace(H,q);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},x.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&C){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),x.find.TAG=function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},x.find.CLASS=function(e,t){if("undefined"!=typeof t.getElementsByClassName&&C)return t.getElementsByClassName(e)},p=[],F(function(e){var t;r.appendChild(e).innerHTML="",e.querySelectorAll("[selected]").length||p.push("\\["+ge+"*(?:value|"+f+")"),e.querySelectorAll("[id~="+k+"-]").length||p.push("~="),e.querySelectorAll("a#"+k+"+*").length||p.push(".#.+[+~]"),e.querySelectorAll(":checked").length||p.push(":checked"),(t=T.createElement("input")).setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),r.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&p.push(":enabled",":disabled"),(t=T.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||p.push("\\["+ge+"*name"+ge+"*="+ge+"*(?:''|\"\")")}),le.cssHas||p.push(":has"),p=p.length&&new RegExp(p.join("|")),l=function(e,t){if(e===t)return a=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!le.sortDetached&&t.compareDocumentPosition(e)===n?e===T||e.ownerDocument==ye&&I.contains(ye,e)?-1:t===T||t.ownerDocument==ye&&I.contains(ye,t)?1:o?se.call(o,e)-se.call(o,t):0:4&n?-1:1)}),T}for(e in I.matches=function(e,t){return I(e,null,null,t)},I.matchesSelector=function(e,t){if(V(e),C&&!h[t+" "]&&(!p||!p.test(t)))try{var n=i.call(e,t);if(n||le.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){h(t,!0)}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(H,q),e[3]=(e[3]||e[4]||e[5]||"").replace(H,q),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||I.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&I.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return N.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&A.test(n)&&(t=Y(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(H,q).toLowerCase();return"*"===e?function(){return!0}:function(e){return fe(e,t)}},CLASS:function(e){var t=s[e+" "];return t||(t=new RegExp("(^|"+ge+")"+e+"("+ge+"|$)"))&&s(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=I.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function C(e,n,r){return v(n)?ce.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?ce.grep(e,function(e){return e===n!==r}):"string"!=typeof n?ce.grep(e,function(e){return-1)[^>]*|#([\w-]+))$/;(ce.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||E,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:k.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof ce?t[0]:t,ce.merge(this,ce.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:m,!0)),T.test(r[1])&&ce.isPlainObject(t))for(r in t)v(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=m.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):v(e)?void 0!==n.ready?n.ready(e):e(ce):ce.makeArray(e,this)}).prototype=ce.fn,E=ce(m);var S=/^(?:parents|prev(?:Until|All))/,A={children:!0,contents:!0,next:!0,prev:!0};function D(e,t){while((e=e[t])&&1!==e.nodeType);return e}ce.fn.extend({has:function(e){var t=ce(e,this),n=t.length;return this.filter(function(){for(var e=0;e\x20\t\r\n\f]*)/i,Te=/^$|^module$|\/(?:java|ecma)script/i;re=m.createDocumentFragment().appendChild(m.createElement("div")),(be=m.createElement("input")).setAttribute("type","radio"),be.setAttribute("checked","checked"),be.setAttribute("name","t"),re.appendChild(be),le.checkClone=re.cloneNode(!0).cloneNode(!0).lastChild.checked,re.innerHTML="",le.noCloneChecked=!!re.cloneNode(!0).lastChild.defaultValue,re.innerHTML="",le.option=!!re.lastChild;var Ce={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function Ee(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&fe(e,t)?ce.merge([e],n):n}function ke(e,t){for(var n=0,r=e.length;n",""]);var Se=/<|&#?\w+;/;function Ae(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createDocumentFragment(),d=[],p=0,h=e.length;p\s*$/g;function Re(e,t){return fe(e,"table")&&fe(11!==t.nodeType?t:t.firstChild,"tr")&&ce(e).children("tbody")[0]||e}function Me(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Ie(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function We(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(_.hasData(e)&&(s=_.get(e).events))for(i in _.remove(t,"handle events"),s)for(n=0,r=s[i].length;n
",2===yt.childNodes.length),ce.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(le.createHTMLDocument?((r=(t=m.implementation.createHTMLDocument("")).createElement("base")).href=m.location.href,t.head.appendChild(r)):t=m),o=!n&&[],(i=T.exec(e))?[t.createElement(i[1])]:(i=Ae([e],t,o),o&&o.length&&ce(o).remove(),ce.merge([],i.childNodes)));var r,i,o},ce.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=ce.css(e,"position"),c=ce(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=ce.css(e,"top"),u=ce.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),v(t)&&(t=t.call(e,n,ce.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},ce.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){ce.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===ce.css(r,"position"))t=r.getBoundingClientRect();else{t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&"static"===ce.css(e,"position"))e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=ce(e).offset()).top+=ce.css(e,"borderTopWidth",!0),i.left+=ce.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-ce.css(r,"marginTop",!0),left:t.left-i.left-ce.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&"static"===ce.css(e,"position"))e=e.offsetParent;return e||K})}}),ce.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;ce.fn[t]=function(e){return R(this,function(e,t,n){var r;if(y(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),ce.each(["top","left"],function(e,n){ce.cssHooks[n]=Qe(le.pixelPosition,function(e,t){if(t)return t=Ve(e,n),$e.test(t)?ce(e).position()[n]+"px":t})}),ce.each({Height:"height",Width:"width"},function(a,s){ce.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){ce.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return R(this,function(e,t,n){var r;return y(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?ce.css(e,t,i):ce.style(e,t,n,i)},s,n?e:void 0,n)}})}),ce.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),ce.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){ce.fn[n]=function(e,t){return 0+~]|"+ge+")"+ge+"*"),b=new RegExp(ge+"|>"),A=new RegExp(g),D=new RegExp("^"+t+"$"),N={ID:new RegExp("^#("+t+")"),CLASS:new RegExp("^\\.("+t+")"),TAG:new RegExp("^("+t+"|[*])"),ATTR:new RegExp("^"+d),PSEUDO:new RegExp("^"+g),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ge+"*(even|odd|(([+-]|)(\\d*)n|)"+ge+"*(?:([+-]|)"+ge+"*(\\d+)|))"+ge+"*\\)|)","i"),bool:new RegExp("^(?:"+f+")$","i"),needsContext:new RegExp("^"+ge+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ge+"*((?:-\\d)?\\d*)"+ge+"*\\)|)(?=[^-]|$)","i")},L=/^(?:input|select|textarea|button)$/i,j=/^h\d$/i,O=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,P=/[+~]/,H=new RegExp("\\\\[\\da-fA-F]{1,6}"+ge+"?|\\\\([^\\r\\n\\f])","g"),q=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},R=function(){V()},M=K(function(e){return!0===e.disabled&&fe(e,"fieldset")},{dir:"parentNode",next:"legend"});try{E.apply(oe=ae.call(ye.childNodes),ye.childNodes),oe[ye.childNodes.length].nodeType}catch(e){E={apply:function(e,t){me.apply(e,ae.call(t))},call:function(e){me.apply(e,ae.call(arguments,1))}}}function I(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerDocument,d=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==d&&9!==d&&11!==d)return n;if(!r&&(V(e),e=e||C,T)){if(11!==d&&(u=O.exec(t)))if(i=u[1]){if(9===d){if(!(a=e.getElementById(i)))return n;if(a.id===i)return E.call(n,a),n}else if(f&&(a=f.getElementById(i))&&I.contains(e,a)&&a.id===i)return E.call(n,a),n}else{if(u[2])return E.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&e.getElementsByClassName)return E.apply(n,e.getElementsByClassName(i)),n}if(!(h[t+" "]||p&&p.test(t))){if(c=t,f=e,1===d&&(b.test(t)||m.test(t))){(f=P.test(t)&&X(e.parentNode)||e)==e&&le.scope||((s=e.getAttribute("id"))?s=ce.escapeSelector(s):e.setAttribute("id",s=k)),o=(l=Y(t)).length;while(o--)l[o]=(s?"#"+s:":scope")+" "+G(l[o]);c=l.join(",")}try{return E.apply(n,f.querySelectorAll(c)),n}catch(e){h(t,!0)}finally{s===k&&e.removeAttribute("id")}}}return re(t.replace(ve,"$1"),e,n,r)}function W(){var r=[];return function e(t,n){return r.push(t+" ")>x.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function B(e){return e[k]=!0,e}function F(e){var t=C.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function $(t){return function(e){return fe(e,"input")&&e.type===t}}function _(t){return function(e){return(fe(e,"input")||fe(e,"button"))&&e.type===t}}function z(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&M(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function U(a){return B(function(o){return o=+o,B(function(e,t){var n,r=a([],e.length,o),i=r.length;while(i--)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function X(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function V(e){var t,n=e?e.ownerDocument||e:ye;return n!=C&&9===n.nodeType&&n.documentElement&&(r=(C=n).documentElement,T=!ce.isXMLDoc(C),i=r.matches||r.webkitMatchesSelector||r.msMatchesSelector,r.msMatchesSelector&&ye!=C&&(t=C.defaultView)&&t.top!==t&&t.addEventListener("unload",R),le.getById=F(function(e){return r.appendChild(e).id=ce.expando,!C.getElementsByName||!C.getElementsByName(ce.expando).length}),le.disconnectedMatch=F(function(e){return i.call(e,"*")}),le.scope=F(function(){return C.querySelectorAll(":scope")}),le.cssHas=F(function(){try{return C.querySelector(":has(*,:jqfake)"),!1}catch(e){return!0}}),le.getById?(x.filter.ID=function(e){var t=e.replace(H,q);return function(e){return e.getAttribute("id")===t}},x.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&T){var n=t.getElementById(e);return n?[n]:[]}}):(x.filter.ID=function(e){var n=e.replace(H,q);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},x.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&T){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),x.find.TAG=function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},x.find.CLASS=function(e,t){if("undefined"!=typeof t.getElementsByClassName&&T)return t.getElementsByClassName(e)},p=[],F(function(e){var t;r.appendChild(e).innerHTML="",e.querySelectorAll("[selected]").length||p.push("\\["+ge+"*(?:value|"+f+")"),e.querySelectorAll("[id~="+k+"-]").length||p.push("~="),e.querySelectorAll("a#"+k+"+*").length||p.push(".#.+[+~]"),e.querySelectorAll(":checked").length||p.push(":checked"),(t=C.createElement("input")).setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),r.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&p.push(":enabled",":disabled"),(t=C.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||p.push("\\["+ge+"*name"+ge+"*="+ge+"*(?:''|\"\")")}),le.cssHas||p.push(":has"),p=p.length&&new RegExp(p.join("|")),l=function(e,t){if(e===t)return a=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!le.sortDetached&&t.compareDocumentPosition(e)===n?e===C||e.ownerDocument==ye&&I.contains(ye,e)?-1:t===C||t.ownerDocument==ye&&I.contains(ye,t)?1:o?se.call(o,e)-se.call(o,t):0:4&n?-1:1)}),C}for(e in I.matches=function(e,t){return I(e,null,null,t)},I.matchesSelector=function(e,t){if(V(e),T&&!h[t+" "]&&(!p||!p.test(t)))try{var n=i.call(e,t);if(n||le.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){h(t,!0)}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(H,q),e[3]=(e[3]||e[4]||e[5]||"").replace(H,q),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||I.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&I.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return N.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&A.test(n)&&(t=Y(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(H,q).toLowerCase();return"*"===e?function(){return!0}:function(e){return fe(e,t)}},CLASS:function(e){var t=s[e+" "];return t||(t=new RegExp("(^|"+ge+")"+e+"("+ge+"|$)"))&&s(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=I.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function T(e,n,r){return v(n)?ce.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?ce.grep(e,function(e){return e===n!==r}):"string"!=typeof n?ce.grep(e,function(e){return-1)[^>]*|#([\w-]+))$/;(ce.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||E,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:k.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof ce?t[0]:t,ce.merge(this,ce.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:m,!0)),C.test(r[1])&&ce.isPlainObject(t))for(r in t)v(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=m.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):v(e)?void 0!==n.ready?n.ready(e):e(ce):ce.makeArray(e,this)}).prototype=ce.fn,E=ce(m);var S=/^(?:parents|prev(?:Until|All))/,A={children:!0,contents:!0,next:!0,prev:!0};function D(e,t){while((e=e[t])&&1!==e.nodeType);return e}ce.fn.extend({has:function(e){var t=ce(e,this),n=t.length;return this.filter(function(){for(var e=0;e\x20\t\r\n\f]*)/i,Ce=/^$|^module$|\/(?:java|ecma)script/i;re=m.createDocumentFragment().appendChild(m.createElement("div")),(be=m.createElement("input")).setAttribute("type","radio"),be.setAttribute("checked","checked"),be.setAttribute("name","t"),re.appendChild(be),le.checkClone=re.cloneNode(!0).cloneNode(!0).lastChild.checked,re.innerHTML="",le.noCloneChecked=!!re.cloneNode(!0).lastChild.defaultValue,re.innerHTML="",le.option=!!re.lastChild;var Te={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function Ee(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&fe(e,t)?ce.merge([e],n):n}function ke(e,t){for(var n=0,r=e.length;n",""]);var Se=/<|&#?\w+;/;function Ae(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createDocumentFragment(),d=[],p=0,h=e.length;p\s*$/g;function Re(e,t){return fe(e,"table")&&fe(11!==t.nodeType?t:t.firstChild,"tr")&&ce(e).children("tbody")[0]||e}function Me(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Ie(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function We(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(_.hasData(e)&&(s=_.get(e).events))for(i in _.remove(t,"handle events"),s)for(n=0,r=s[i].length;n
",2===yt.childNodes.length),ce.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(le.createHTMLDocument?((r=(t=m.implementation.createHTMLDocument("")).createElement("base")).href=m.location.href,t.head.appendChild(r)):t=m),o=!n&&[],(i=C.exec(e))?[t.createElement(i[1])]:(i=Ae([e],t,o),o&&o.length&&ce(o).remove(),ce.merge([],i.childNodes)));var r,i,o},ce.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=ce.css(e,"position"),c=ce(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=ce.css(e,"top"),u=ce.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),v(t)&&(t=t.call(e,n,ce.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},ce.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){ce.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===ce.css(r,"position"))t=r.getBoundingClientRect();else{t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&"static"===ce.css(e,"position"))e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=ce(e).offset()).top+=ce.css(e,"borderTopWidth",!0),i.left+=ce.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-ce.css(r,"marginTop",!0),left:t.left-i.left-ce.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&"static"===ce.css(e,"position"))e=e.offsetParent;return e||K})}}),ce.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;ce.fn[t]=function(e){return R(this,function(e,t,n){var r;if(y(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),ce.each(["top","left"],function(e,n){ce.cssHooks[n]=Qe(le.pixelPosition,function(e,t){if(t)return t=Ve(e,n),$e.test(t)?ce(e).position()[n]+"px":t})}),ce.each({Height:"height",Width:"width"},function(a,s){ce.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){ce.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return R(this,function(e,t,n){var r;return y(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?ce.css(e,t,i):ce.style(e,t,n,i)},s,n?e:void 0,n)}})}),ce.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)}}),ce.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){ce.fn[n]=function(e,t){return 0_t in B?ED(B,_t,{enumerable:!0,configurable:!0,writable:!0,value:M}):B[_t]=M;var we=(B,_t,M)=>(CD(B,typeof _t!="symbol"?_t+"":_t,M),M);const _t=(()=>{const i={};let t=1;return{set(e,s,n){typeof e[s]>"u"&&(e[s]={key:s,id:t},t++),i[e[s].id]=n},get(e,s){if(!e||typeof e[s]>"u")return null;const n=e[s];return n.key===s?i[n.id]:null},delete(e,s){if(typeof e[s]>"u")return;const n=e[s];n.key===s&&(delete i[n.id],delete e[s])}}})(),M={setData(i,t,e){_t.set(i,t,e)},getData(i,t){return _t.get(i,t)},removeData(i,t){_t.delete(i,t)}},L_=1e6,$_=1e3,Rr="transitionend",R_=i=>i==null?`${i}`:{}.toString.call(i).match(/\s([a-z]+)/i)[1].toLowerCase(),Gt=i=>{do i+=Math.floor(Math.random()*L_);while(document.getElementById(i));return i},oc=i=>{let t=i.getAttribute("data-te-target");if(!t||t==="#"){let e=i.getAttribute("href");if(!e||!e.includes("#")&&!e.startsWith("."))return null;e.includes("#")&&!e.startsWith("#")&&(e=`#${e.split("#")[1]}`),t=e&&e!=="#"?e.trim():null}return t},Pr=i=>{const t=oc(i);return t&&document.querySelector(t)?t:null},Pe=i=>{const t=oc(i);return t?document.querySelector(t):null},P_=i=>{if(!i)return 0;let{transitionDuration:t,transitionDelay:e}=window.getComputedStyle(i);const s=Number.parseFloat(t),n=Number.parseFloat(e);return!s&&!n?0:(t=t.split(",")[0],e=e.split(",")[0],(Number.parseFloat(t)+Number.parseFloat(e))*$_)},rc=i=>{i.dispatchEvent(new Event(Rr))},Ni=i=>!i||typeof i!="object"?!1:(typeof i.jquery<"u"&&(i=i[0]),typeof i.nodeType<"u"),Ne=i=>Ni(i)?i.jquery?i[0]:i:typeof i=="string"&&i.length>0?document.querySelector(i):null,P=(i,t,e)=>{Object.keys(e).forEach(s=>{const n=e[s],o=t[s],r=o&&Ni(o)?"element":R_(o);if(!new RegExp(n).test(r))throw new Error(`${i.toUpperCase()}: Option "${s}" provided type "${r}" but expected type "${n}".`)})},oe=i=>{if(!i||i.getClientRects().length===0)return!1;if(i.style&&i.parentNode&&i.parentNode.style){const t=getComputedStyle(i),e=getComputedStyle(i.parentNode);return getComputedStyle(i).getPropertyValue("visibility")==="visible"||t.display!=="none"&&e.display!=="none"&&t.visibility!=="hidden"}return!1},ri=i=>!i||i.nodeType!==Node.ELEMENT_NODE||i.classList.contains("disabled")?!0:typeof i.disabled<"u"?i.disabled:i.hasAttribute("disabled")&&i.getAttribute("disabled")!=="false",ac=i=>{if(!document.documentElement.attachShadow)return null;if(typeof i.getRootNode=="function"){const t=i.getRootNode();return t instanceof ShadowRoot?t:null}return i instanceof ShadowRoot?i:i.parentNode?ac(i.parentNode):null},Fn=()=>function(){},Bi=i=>{i.offsetHeight},lc=()=>{const{jQuery:i}=window;return i&&!document.body.hasAttribute("data-te-no-jquery")?i:null},Nr=[],cc=i=>{document.readyState==="loading"?(Nr.length||document.addEventListener("DOMContentLoaded",()=>{Nr.forEach(t=>t())}),Nr.push(i)):i()},st=()=>document.documentElement.dir==="rtl",N_=i=>Array.from(i),L=i=>document.createElement(i),ai=i=>{typeof i=="function"&&i()},hc=(i,t,e=!0)=>{if(!e){ai(i);return}const s=5,n=P_(t)+s;let o=!1;const r=({target:a})=>{a===t&&(o=!0,t.removeEventListener(Rr,r),ai(i))};t.addEventListener(Rr,r),setTimeout(()=>{o||rc(t)},n)},dc=(i,t,e,s)=>{let n=i.indexOf(t);if(n===-1)return i[!e&&s?i.length-1:0];const o=i.length;return n+=e?1:-1,s&&(n=(n+o)%o),i[Math.max(0,Math.min(n,o-1))]},B_=/[^.]*(?=\..*)\.|.*/,H_=/\..*/,F_=/::\d+$/,Br={};let uc=1;const W_={mouseenter:"mouseover",mouseleave:"mouseout"},V_=/^(mouseenter|mouseleave)/i,pc=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function fc(i,t){return t&&`${t}::${uc++}`||i.uidEvent||uc++}function _c(i){const t=fc(i);return i.uidEvent=t,Br[t]=Br[t]||{},Br[t]}function z_(i,t){return function e(s){return s.delegateTarget=i,e.oneOff&&g.off(i,s.type,t),t.apply(i,[s])}}function Y_(i,t,e){return function s(n){const o=i.querySelectorAll(t);for(let{target:r}=n;r&&r!==this;r=r.parentNode)for(let a=o.length;a--;"")if(o[a]===r)return n.delegateTarget=r,s.oneOff&&g.off(i,n.type,e),e.apply(r,[n]);return null}}function gc(i,t,e=null){const s=Object.keys(i);for(let n=0,o=s.length;nfunction(b){if(!b.relatedTarget||b.relatedTarget!==b.delegateTarget&&!b.delegateTarget.contains(b.relatedTarget))return f.call(this,b)};s?s=p(s):e=p(e)}const[o,r,a]=mc(t,e,s),l=_c(i),c=l[a]||(l[a]={}),h=gc(c,r,o?e:null);if(h){h.oneOff=h.oneOff&&n;return}const d=fc(r,t.replace(B_,"")),u=o?Y_(i,e,s):z_(i,e);u.delegationSelector=o?e:null,u.originalHandler=r,u.oneOff=n,u.uidEvent=d,c[d]=u,i.addEventListener(a,u,o)}function Hr(i,t,e,s,n){const o=gc(t[e],s,n);o&&(i.removeEventListener(e,o,!!n),delete t[e][o.uidEvent])}function j_(i,t,e,s){const n=t[e]||{};Object.keys(n).forEach(o=>{if(o.includes(s)){const r=n[o];Hr(i,t,e,r.originalHandler,r.delegationSelector)}})}function vc(i){return i=i.replace(H_,""),W_[i]||i}const g={on(i,t,e,s){bc(i,t,e,s,!1)},one(i,t,e,s){bc(i,t,e,s,!0)},off(i,t,e,s){if(typeof t!="string"||!i)return;const[n,o,r]=mc(t,e,s),a=r!==t,l=_c(i),c=t.startsWith(".");if(typeof o<"u"){if(!l||!l[r])return;Hr(i,l,r,o,n?e:null);return}c&&Object.keys(l).forEach(d=>{j_(i,l,d,t.slice(1))});const h=l[r]||{};Object.keys(h).forEach(d=>{const u=d.replace(F_,"");if(!a||t.includes(u)){const p=h[d];Hr(i,l,r,p.originalHandler,p.delegationSelector)}})},trigger(i,t,e){if(typeof t!="string"||!i)return null;const s=lc(),n=vc(t),o=t!==n,r=pc.has(n);let a,l=!0,c=!0,h=!1,d=null;return o&&s&&(a=s.Event(t,e),s(i).trigger(a),l=!a.isPropagationStopped(),c=!a.isImmediatePropagationStopped(),h=a.isDefaultPrevented()),r?(d=document.createEvent("HTMLEvents"),d.initEvent(n,l,!0)):d=new CustomEvent(t,{bubbles:l,cancelable:!0}),typeof e<"u"&&Object.keys(e).forEach(u=>{Object.defineProperty(d,u,{get(){return e[u]}})}),h&&d.preventDefault(),c&&i.dispatchEvent(d),d.defaultPrevented&&typeof a<"u"&&a.preventDefault(),d}},li={on(i,t,e,s){const n=t.split(" ");for(let o=0;o{this[t]=null})}_queueCallback(t,e,s=!0){hc(t,e,s)}static getInstance(t){return M.getData(Ne(t),this.DATA_KEY)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,typeof e=="object"?e:null)}static get VERSION(){return K_}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}static get DATA_KEY(){return`te.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}}const U_="button",X_="active";class Wn extends qt{static get NAME(){return U_}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(X_))}static jQueryInterface(t){return this.each(function(){const e=Wn.getOrCreateInstance(this);t==="toggle"&&e[t]()})}}var gt="top",Ot="bottom",Dt="right",mt="left",ws="auto",Hi=[gt,Ot,Dt,mt],ci="start",Fi="end",yc="clippingParents",Fr="viewport",Wi="popper",xc="reference",Wr=Hi.reduce(function(i,t){return i.concat([t+"-"+ci,t+"-"+Fi])},[]),Vr=[].concat(Hi,[ws]).reduce(function(i,t){return i.concat([t,t+"-"+ci,t+"-"+Fi])},[]),Tc="beforeRead",Ec="read",Cc="afterRead",Ac="beforeMain",wc="main",kc="afterMain",Sc="beforeWrite",Oc="write",Dc="afterWrite",Vn=[Tc,Ec,Cc,Ac,wc,kc,Sc,Oc,Dc];function re(i){return i?(i.nodeName||"").toLowerCase():null}function It(i){if(i==null)return window;if(i.toString()!=="[object Window]"){var t=i.ownerDocument;return t&&t.defaultView||window}return i}function hi(i){var t=It(i).Element;return i instanceof t||i instanceof Element}function Mt(i){var t=It(i).HTMLElement;return i instanceof t||i instanceof HTMLElement}function zr(i){if(typeof ShadowRoot>"u")return!1;var t=It(i).ShadowRoot;return i instanceof t||i instanceof ShadowRoot}function G_(i){var t=i.state;Object.keys(t.elements).forEach(function(e){var s=t.styles[e]||{},n=t.attributes[e]||{},o=t.elements[e];!Mt(o)||!re(o)||(Object.assign(o.style,s),Object.keys(n).forEach(function(r){var a=n[r];a===!1?o.removeAttribute(r):o.setAttribute(r,a===!0?"":a)}))})}function q_(i){var t=i.state,e={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,e.popper),t.styles=e,t.elements.arrow&&Object.assign(t.elements.arrow.style,e.arrow),function(){Object.keys(t.elements).forEach(function(s){var n=t.elements[s],o=t.attributes[s]||{},r=Object.keys(t.styles.hasOwnProperty(s)?t.styles[s]:e[s]),a=r.reduce(function(l,c){return l[c]="",l},{});!Mt(n)||!re(n)||(Object.assign(n.style,a),Object.keys(o).forEach(function(l){n.removeAttribute(l)}))})}}const Yr={name:"applyStyles",enabled:!0,phase:"write",fn:G_,effect:q_,requires:["computeStyles"]};function Zt(i){return i.split("-")[0]}var di=Math.max,zn=Math.min,Vi=Math.round;function jr(){var i=navigator.userAgentData;return i!=null&&i.brands&&Array.isArray(i.brands)?i.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Ic(){return!/^((?!chrome|android).)*safari/i.test(jr())}function zi(i,t,e){t===void 0&&(t=!1),e===void 0&&(e=!1);var s=i.getBoundingClientRect(),n=1,o=1;t&&Mt(i)&&(n=i.offsetWidth>0&&Vi(s.width)/i.offsetWidth||1,o=i.offsetHeight>0&&Vi(s.height)/i.offsetHeight||1);var r=hi(i)?It(i):window,a=r.visualViewport,l=!Ic()&&e,c=(s.left+(l&&a?a.offsetLeft:0))/n,h=(s.top+(l&&a?a.offsetTop:0))/o,d=s.width/n,u=s.height/o;return{width:d,height:u,top:h,right:c+d,bottom:h+u,left:c,x:c,y:h}}function Kr(i){var t=zi(i),e=i.offsetWidth,s=i.offsetHeight;return Math.abs(t.width-e)<=1&&(e=t.width),Math.abs(t.height-s)<=1&&(s=t.height),{x:i.offsetLeft,y:i.offsetTop,width:e,height:s}}function Mc(i,t){var e=t.getRootNode&&t.getRootNode();if(i.contains(t))return!0;if(e&&zr(e)){var s=t;do{if(s&&i.isSameNode(s))return!0;s=s.parentNode||s.host}while(s)}return!1}function Qt(i){return It(i).getComputedStyle(i)}function Z_(i){return["table","td","th"].indexOf(re(i))>=0}function Be(i){return((hi(i)?i.ownerDocument:i.document)||window.document).documentElement}function Yn(i){return re(i)==="html"?i:i.assignedSlot||i.parentNode||(zr(i)?i.host:null)||Be(i)}function Lc(i){return!Mt(i)||Qt(i).position==="fixed"?null:i.offsetParent}function Q_(i){var t=/firefox/i.test(jr()),e=/Trident/i.test(jr());if(e&&Mt(i)){var s=Qt(i);if(s.position==="fixed")return null}var n=Yn(i);for(zr(n)&&(n=n.host);Mt(n)&&["html","body"].indexOf(re(n))<0;){var o=Qt(n);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return n;n=n.parentNode}return null}function ks(i){for(var t=It(i),e=Lc(i);e&&Z_(e)&&Qt(e).position==="static";)e=Lc(e);return e&&(re(e)==="html"||re(e)==="body"&&Qt(e).position==="static")?t:e||Q_(i)||t}function Ur(i){return["top","bottom"].indexOf(i)>=0?"x":"y"}function Ss(i,t,e){return di(i,zn(t,e))}function J_(i,t,e){var s=Ss(i,t,e);return s>e?e:s}function $c(){return{top:0,right:0,bottom:0,left:0}}function Rc(i){return Object.assign({},$c(),i)}function Pc(i,t){return t.reduce(function(e,s){return e[s]=i,e},{})}var tg=function(t,e){return t=typeof t=="function"?t(Object.assign({},e.rects,{placement:e.placement})):t,Rc(typeof t!="number"?t:Pc(t,Hi))};function eg(i){var t,e=i.state,s=i.name,n=i.options,o=e.elements.arrow,r=e.modifiersData.popperOffsets,a=Zt(e.placement),l=Ur(a),c=[mt,Dt].indexOf(a)>=0,h=c?"height":"width";if(!(!o||!r)){var d=tg(n.padding,e),u=Kr(o),p=l==="y"?gt:mt,f=l==="y"?Ot:Dt,b=e.rects.reference[h]+e.rects.reference[l]-r[l]-e.rects.popper[h],v=r[l]-e.rects.reference[l],y=ks(o),x=y?l==="y"?y.clientHeight||0:y.clientWidth||0:0,E=b/2-v/2,T=d[p],C=x-u[h]-d[f],A=x/2-u[h]/2+E,w=Ss(T,A,C),S=l;e.modifiersData[s]=(t={},t[S]=w,t.centerOffset=w-A,t)}}function ig(i){var t=i.state,e=i.options,s=e.element,n=s===void 0?"[data-popper-arrow]":s;if(n!=null&&!(typeof n=="string"&&(n=t.elements.popper.querySelector(n),!n))){if({}.NODE_ENV!=="production"&&(Mt(n)||console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).',"To use an SVG arrow, wrap it in an HTMLElement that will be used as","the arrow."].join(" "))),!Mc(t.elements.popper,n)){({}).NODE_ENV!=="production"&&console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" "));return}t.elements.arrow=n}}const Nc={name:"arrow",enabled:!0,phase:"main",fn:eg,effect:ig,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Yi(i){return i.split("-")[1]}var sg={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ng(i,t){var e=i.x,s=i.y,n=t.devicePixelRatio||1;return{x:Vi(e*n)/n||0,y:Vi(s*n)/n||0}}function Bc(i){var t,e=i.popper,s=i.popperRect,n=i.placement,o=i.variation,r=i.offsets,a=i.position,l=i.gpuAcceleration,c=i.adaptive,h=i.roundOffsets,d=i.isFixed,u=r.x,p=u===void 0?0:u,f=r.y,b=f===void 0?0:f,v=typeof h=="function"?h({x:p,y:b}):{x:p,y:b};p=v.x,b=v.y;var y=r.hasOwnProperty("x"),x=r.hasOwnProperty("y"),E=mt,T=gt,C=window;if(c){var A=ks(e),w="clientHeight",S="clientWidth";if(A===It(e)&&(A=Be(e),Qt(A).position!=="static"&&a==="absolute"&&(w="scrollHeight",S="scrollWidth")),A=A,n===gt||(n===mt||n===Dt)&&o===Fi){T=Ot;var k=d&&A===C&&C.visualViewport?C.visualViewport.height:A[w];b-=k-s.height,b*=l?1:-1}if(n===mt||(n===gt||n===Ot)&&o===Fi){E=Dt;var D=d&&A===C&&C.visualViewport?C.visualViewport.width:A[S];p-=D-s.width,p*=l?1:-1}}var O=Object.assign({position:a},c&&sg),I=h===!0?ng({x:p,y:b},It(e)):{x:p,y:b};if(p=I.x,b=I.y,l){var R;return Object.assign({},O,(R={},R[T]=x?"0":"",R[E]=y?"0":"",R.transform=(C.devicePixelRatio||1)<=1?"translate("+p+"px, "+b+"px)":"translate3d("+p+"px, "+b+"px, 0)",R))}return Object.assign({},O,(t={},t[T]=x?b+"px":"",t[E]=y?p+"px":"",t.transform="",t))}function og(i){var t=i.state,e=i.options,s=e.gpuAcceleration,n=s===void 0?!0:s,o=e.adaptive,r=o===void 0?!0:o,a=e.roundOffsets,l=a===void 0?!0:a;if({}.NODE_ENV!=="production"){var c=Qt(t.elements.popper).transitionProperty||"";r&&["transform","top","right","bottom","left"].some(function(d){return c.indexOf(d)>=0})&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',` +(function(N,_t){typeof exports=="object"&&typeof module<"u"?_t(exports):typeof define=="function"&&define.amd?define(["exports"],_t):(N=typeof globalThis<"u"?globalThis:N||self,_t(N.te={}))})(this,function(N){"use strict";var AM=Object.defineProperty;var wM=(N,_t,D)=>_t in N?AM(N,_t,{enumerable:!0,configurable:!0,writable:!0,value:D}):N[_t]=D;var we=(N,_t,D)=>(wM(N,typeof _t!="symbol"?_t+"":_t,D),D);const _t=(()=>{const s={};let t=1;return{set(e,i,n){typeof e[i]>"u"&&(e[i]={key:i,id:t},t++),s[e[i].id]=n},get(e,i){if(!e||typeof e[i]>"u")return null;const n=e[i];return n.key===i?s[n.id]:null},delete(e,i){if(typeof e[i]>"u")return;const n=e[i];n.key===i&&(delete s[n.id],delete e[i])}}})(),D={setData(s,t,e){_t.set(s,t,e)},getData(s,t){return _t.get(s,t)},removeData(s,t){_t.delete(s,t)}},Ng=1e6,Bg=1e3,da="transitionend",Hg=s=>s==null?`${s}`:{}.toString.call(s).match(/\s([a-z]+)/i)[1].toLowerCase(),Et=s=>{do s+=Math.floor(Math.random()*Ng);while(document.getElementById(s));return s},Gc=s=>{let t=s.getAttribute("data-te-target");if(!t||t==="#"){let e=s.getAttribute("href");if(!e||!e.includes("#")&&!e.startsWith("."))return null;e.includes("#")&&!e.startsWith("#")&&(e=`#${e.split("#")[1]}`),t=e&&e!=="#"?e.trim():null}return t},ua=s=>{const t=Gc(s);return t&&document.querySelector(t)?t:null},Re=s=>{const t=Gc(s);return t?document.querySelector(t):null},Vg=s=>{if(!s)return 0;let{transitionDuration:t,transitionDelay:e}=window.getComputedStyle(s);const i=Number.parseFloat(t),n=Number.parseFloat(e);return!i&&!n?0:(t=t.split(",")[0],e=e.split(",")[0],(Number.parseFloat(t)+Number.parseFloat(e))*Bg)},qc=s=>{s.dispatchEvent(new Event(da))},Bi=s=>!s||typeof s!="object"?!1:(typeof s.jquery<"u"&&(s=s[0]),typeof s.nodeType<"u"),Ne=s=>Bi(s)?s.jquery?s[0]:s:typeof s=="string"&&s.length>0?document.querySelector(s):null,L=(s,t,e)=>{Object.keys(e).forEach(i=>{const n=e[i],o=t[i],r=o&&Bi(o)?"element":Hg(o);if(!new RegExp(n).test(r))throw new Error(`${s.toUpperCase()}: Option "${i}" provided type "${r}" but expected type "${n}".`)})},re=s=>{if(!s||s.getClientRects().length===0)return!1;if(s.style&&s.parentNode&&s.parentNode.style){const t=getComputedStyle(s),e=getComputedStyle(s.parentNode);return getComputedStyle(s).getPropertyValue("visibility")==="visible"||t.display!=="none"&&e.display!=="none"&&t.visibility!=="hidden"}return!1},ai=s=>!s||s.nodeType!==Node.ELEMENT_NODE||s.classList.contains("disabled")?!0:typeof s.disabled<"u"?s.disabled:s.hasAttribute("disabled")&&s.getAttribute("disabled")!=="false",Zc=s=>{if(!document.documentElement.attachShadow)return null;if(typeof s.getRootNode=="function"){const t=s.getRootNode();return t instanceof ShadowRoot?t:null}return s instanceof ShadowRoot?s:s.parentNode?Zc(s.parentNode):null},eo=()=>function(){},Hi=s=>{s.offsetHeight},Qc=()=>{const{jQuery:s}=window;return s&&!document.body.hasAttribute("data-te-no-jquery")?s:null},pa=[],Jc=s=>{document.readyState==="loading"?(pa.length||document.addEventListener("DOMContentLoaded",()=>{pa.forEach(t=>t())}),pa.push(s)):s()},st=()=>document.documentElement.dir==="rtl",Fg=s=>Array.from(s),$=s=>document.createElement(s),li=s=>{typeof s=="function"&&s()},th=(s,t,e=!0)=>{if(!e){li(s);return}const i=5,n=Vg(t)+i;let o=!1;const r=({target:a})=>{a===t&&(o=!0,t.removeEventListener(da,r),li(s))};t.addEventListener(da,r),setTimeout(()=>{o||qc(t)},n)},eh=(s,t,e,i)=>{let n=s.indexOf(t);if(n===-1)return s[!e&&i?s.length-1:0];const o=s.length;return n+=e?1:-1,i&&(n=(n+o)%o),s[Math.max(0,Math.min(n,o-1))]},Wg=/[^.]*(?=\..*)\.|.*/,zg=/\..*/,jg=/::\d+$/,fa={};let ih=1;const Yg={mouseenter:"mouseover",mouseleave:"mouseout"},Kg=/^(mouseenter|mouseleave)/i,sh=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function nh(s,t){return t&&`${t}::${ih++}`||s.uidEvent||ih++}function oh(s){const t=nh(s);return s.uidEvent=t,fa[t]=fa[t]||{},fa[t]}function Ug(s,t){return function e(i){return i.delegateTarget=s,e.oneOff&&_.off(s,i.type,t),t.apply(s,[i])}}function Xg(s,t,e){return function i(n){const o=s.querySelectorAll(t);for(let{target:r}=n;r&&r!==this;r=r.parentNode)for(let a=o.length;a--;"")if(o[a]===r)return n.delegateTarget=r,i.oneOff&&_.off(s,n.type,e),e.apply(r,[n]);return null}}function rh(s,t,e=null){const i=Object.keys(s);for(let n=0,o=i.length;nfunction(b){if(!b.relatedTarget||b.relatedTarget!==b.delegateTarget&&!b.delegateTarget.contains(b.relatedTarget))return f.call(this,b)};i?i=p(i):e=p(e)}const[o,r,a]=ah(t,e,i),l=oh(s),c=l[a]||(l[a]={}),h=rh(c,r,o?e:null);if(h){h.oneOff=h.oneOff&&n;return}const d=nh(r,t.replace(Wg,"")),u=o?Xg(s,e,i):Ug(s,e);u.delegationSelector=o?e:null,u.originalHandler=r,u.oneOff=n,u.uidEvent=d,c[d]=u,s.addEventListener(a,u,o)}function _a(s,t,e,i,n){const o=rh(t[e],i,n);o&&(s.removeEventListener(e,o,!!n),delete t[e][o.uidEvent])}function Gg(s,t,e,i){const n=t[e]||{};Object.keys(n).forEach(o=>{if(o.includes(i)){const r=n[o];_a(s,t,e,r.originalHandler,r.delegationSelector)}})}function ch(s){return s=s.replace(zg,""),Yg[s]||s}const _={on(s,t,e,i){lh(s,t,e,i,!1)},one(s,t,e,i){lh(s,t,e,i,!0)},off(s,t,e,i){if(typeof t!="string"||!s)return;const[n,o,r]=ah(t,e,i),a=r!==t,l=oh(s),c=t.startsWith(".");if(typeof o<"u"){if(!l||!l[r])return;_a(s,l,r,o,n?e:null);return}c&&Object.keys(l).forEach(d=>{Gg(s,l,d,t.slice(1))});const h=l[r]||{};Object.keys(h).forEach(d=>{const u=d.replace(jg,"");if(!a||t.includes(u)){const p=h[d];_a(s,l,r,p.originalHandler,p.delegationSelector)}})},trigger(s,t,e){if(typeof t!="string"||!s)return null;const i=Qc(),n=ch(t),o=t!==n,r=sh.has(n);let a,l=!0,c=!0,h=!1,d=null;return o&&i&&(a=i.Event(t,e),i(s).trigger(a),l=!a.isPropagationStopped(),c=!a.isImmediatePropagationStopped(),h=a.isDefaultPrevented()),r?(d=document.createEvent("HTMLEvents"),d.initEvent(n,l,!0)):d=new CustomEvent(t,{bubbles:l,cancelable:!0}),typeof e<"u"&&Object.keys(e).forEach(u=>{Object.defineProperty(d,u,{get(){return e[u]}})}),h&&d.preventDefault(),c&&s.dispatchEvent(d),d.defaultPrevented&&typeof a<"u"&&a.preventDefault(),d}},ci={on(s,t,e,i){const n=t.split(" ");for(let o=0;o{this[t]=null})}_queueCallback(t,e,i=!0){th(t,e,i)}static getInstance(t){return D.getData(Ne(t),this.DATA_KEY)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,typeof e=="object"?e:null)}static get VERSION(){return qg}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}static get DATA_KEY(){return`te.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}}const Zg="button",Qg="active";class io extends Ht{static get NAME(){return Zg}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(Qg))}static jQueryInterface(t){return this.each(function(){const e=io.getOrCreateInstance(this);t==="toggle"&&e[t]()})}}var gt="top",Dt="bottom",It="right",mt="left",Is="auto",Vi=[gt,Dt,It,mt],hi="start",Fi="end",hh="clippingParents",ga="viewport",Wi="popper",dh="reference",ma=Vi.reduce(function(s,t){return s.concat([t+"-"+hi,t+"-"+Fi])},[]),ba=[].concat(Vi,[Is]).reduce(function(s,t){return s.concat([t,t+"-"+hi,t+"-"+Fi])},[]),uh="beforeRead",ph="read",fh="afterRead",_h="beforeMain",gh="main",mh="afterMain",bh="beforeWrite",vh="write",yh="afterWrite",so=[uh,ph,fh,_h,gh,mh,bh,vh,yh];function ae(s){return s?(s.nodeName||"").toLowerCase():null}function Mt(s){if(s==null)return window;if(s.toString()!=="[object Window]"){var t=s.ownerDocument;return t&&t.defaultView||window}return s}function di(s){var t=Mt(s).Element;return s instanceof t||s instanceof Element}function Lt(s){var t=Mt(s).HTMLElement;return s instanceof t||s instanceof HTMLElement}function va(s){if(typeof ShadowRoot>"u")return!1;var t=Mt(s).ShadowRoot;return s instanceof t||s instanceof ShadowRoot}function Jg(s){var t=s.state;Object.keys(t.elements).forEach(function(e){var i=t.styles[e]||{},n=t.attributes[e]||{},o=t.elements[e];!Lt(o)||!ae(o)||(Object.assign(o.style,i),Object.keys(n).forEach(function(r){var a=n[r];a===!1?o.removeAttribute(r):o.setAttribute(r,a===!0?"":a)}))})}function tm(s){var t=s.state,e={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,e.popper),t.styles=e,t.elements.arrow&&Object.assign(t.elements.arrow.style,e.arrow),function(){Object.keys(t.elements).forEach(function(i){var n=t.elements[i],o=t.attributes[i]||{},r=Object.keys(t.styles.hasOwnProperty(i)?t.styles[i]:e[i]),a=r.reduce(function(l,c){return l[c]="",l},{});!Lt(n)||!ae(n)||(Object.assign(n.style,a),Object.keys(o).forEach(function(l){n.removeAttribute(l)}))})}}const ya={name:"applyStyles",enabled:!0,phase:"write",fn:Jg,effect:tm,requires:["computeStyles"]};function Zt(s){return s.split("-")[0]}var ui=Math.max,no=Math.min,zi=Math.round;function Ta(){var s=navigator.userAgentData;return s!=null&&s.brands&&Array.isArray(s.brands)?s.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Th(){return!/^((?!chrome|android).)*safari/i.test(Ta())}function ji(s,t,e){t===void 0&&(t=!1),e===void 0&&(e=!1);var i=s.getBoundingClientRect(),n=1,o=1;t&&Lt(s)&&(n=s.offsetWidth>0&&zi(i.width)/s.offsetWidth||1,o=s.offsetHeight>0&&zi(i.height)/s.offsetHeight||1);var r=di(s)?Mt(s):window,a=r.visualViewport,l=!Th()&&e,c=(i.left+(l&&a?a.offsetLeft:0))/n,h=(i.top+(l&&a?a.offsetTop:0))/o,d=i.width/n,u=i.height/o;return{width:d,height:u,top:h,right:c+d,bottom:h+u,left:c,x:c,y:h}}function Ea(s){var t=ji(s),e=s.offsetWidth,i=s.offsetHeight;return Math.abs(t.width-e)<=1&&(e=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:s.offsetLeft,y:s.offsetTop,width:e,height:i}}function Eh(s,t){var e=t.getRootNode&&t.getRootNode();if(s.contains(t))return!0;if(e&&va(e)){var i=t;do{if(i&&s.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Qt(s){return Mt(s).getComputedStyle(s)}function em(s){return["table","td","th"].indexOf(ae(s))>=0}function Be(s){return((di(s)?s.ownerDocument:s.document)||window.document).documentElement}function oo(s){return ae(s)==="html"?s:s.assignedSlot||s.parentNode||(va(s)?s.host:null)||Be(s)}function xh(s){return!Lt(s)||Qt(s).position==="fixed"?null:s.offsetParent}function im(s){var t=/firefox/i.test(Ta()),e=/Trident/i.test(Ta());if(e&&Lt(s)){var i=Qt(s);if(i.position==="fixed")return null}var n=oo(s);for(va(n)&&(n=n.host);Lt(n)&&["html","body"].indexOf(ae(n))<0;){var o=Qt(n);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return n;n=n.parentNode}return null}function Ms(s){for(var t=Mt(s),e=xh(s);e&&em(e)&&Qt(e).position==="static";)e=xh(e);return e&&(ae(e)==="html"||ae(e)==="body"&&Qt(e).position==="static")?t:e||im(s)||t}function xa(s){return["top","bottom"].indexOf(s)>=0?"x":"y"}function Ls(s,t,e){return ui(s,no(t,e))}function sm(s,t,e){var i=Ls(s,t,e);return i>e?e:i}function Ch(){return{top:0,right:0,bottom:0,left:0}}function Ah(s){return Object.assign({},Ch(),s)}function wh(s,t){return t.reduce(function(e,i){return e[i]=s,e},{})}var nm=function(t,e){return t=typeof t=="function"?t(Object.assign({},e.rects,{placement:e.placement})):t,Ah(typeof t!="number"?t:wh(t,Vi))};function om(s){var t,e=s.state,i=s.name,n=s.options,o=e.elements.arrow,r=e.modifiersData.popperOffsets,a=Zt(e.placement),l=xa(a),c=[mt,It].indexOf(a)>=0,h=c?"height":"width";if(!(!o||!r)){var d=nm(n.padding,e),u=Ea(o),p=l==="y"?gt:mt,f=l==="y"?Dt:It,b=e.rects.reference[h]+e.rects.reference[l]-r[l]-e.rects.popper[h],v=r[l]-e.rects.reference[l],y=Ms(o),T=y?l==="y"?y.clientHeight||0:y.clientWidth||0:0,x=b/2-v/2,E=d[p],C=T-u[h]-d[f],A=T/2-u[h]/2+x,w=Ls(E,A,C),S=l;e.modifiersData[i]=(t={},t[S]=w,t.centerOffset=w-A,t)}}function rm(s){var t=s.state,e=s.options,i=e.element,n=i===void 0?"[data-popper-arrow]":i;if(n!=null&&!(typeof n=="string"&&(n=t.elements.popper.querySelector(n),!n))){if({}.NODE_ENV!=="production"&&(Lt(n)||console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).',"To use an SVG arrow, wrap it in an HTMLElement that will be used as","the arrow."].join(" "))),!Eh(t.elements.popper,n)){({}).NODE_ENV!=="production"&&console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" "));return}t.elements.arrow=n}}const kh={name:"arrow",enabled:!0,phase:"main",fn:om,effect:rm,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Yi(s){return s.split("-")[1]}var am={top:"auto",right:"auto",bottom:"auto",left:"auto"};function lm(s,t){var e=s.x,i=s.y,n=t.devicePixelRatio||1;return{x:zi(e*n)/n||0,y:zi(i*n)/n||0}}function Sh(s){var t,e=s.popper,i=s.popperRect,n=s.placement,o=s.variation,r=s.offsets,a=s.position,l=s.gpuAcceleration,c=s.adaptive,h=s.roundOffsets,d=s.isFixed,u=r.x,p=u===void 0?0:u,f=r.y,b=f===void 0?0:f,v=typeof h=="function"?h({x:p,y:b}):{x:p,y:b};p=v.x,b=v.y;var y=r.hasOwnProperty("x"),T=r.hasOwnProperty("y"),x=mt,E=gt,C=window;if(c){var A=Ms(e),w="clientHeight",S="clientWidth";if(A===Mt(e)&&(A=Be(e),Qt(A).position!=="static"&&a==="absolute"&&(w="scrollHeight",S="scrollWidth")),A=A,n===gt||(n===mt||n===It)&&o===Fi){E=Dt;var k=d&&A===C&&C.visualViewport?C.visualViewport.height:A[w];b-=k-i.height,b*=l?1:-1}if(n===mt||(n===gt||n===Dt)&&o===Fi){x=It;var I=d&&A===C&&C.visualViewport?C.visualViewport.width:A[S];p-=I-i.width,p*=l?1:-1}}var O=Object.assign({position:a},c&&am),M=h===!0?lm({x:p,y:b},Mt(e)):{x:p,y:b};if(p=M.x,b=M.y,l){var R;return Object.assign({},O,(R={},R[E]=T?"0":"",R[x]=y?"0":"",R.transform=(C.devicePixelRatio||1)<=1?"translate("+p+"px, "+b+"px)":"translate3d("+p+"px, "+b+"px, 0)",R))}return Object.assign({},O,(t={},t[E]=T?b+"px":"",t[x]=y?p+"px":"",t.transform="",t))}function cm(s){var t=s.state,e=s.options,i=e.gpuAcceleration,n=i===void 0?!0:i,o=e.adaptive,r=o===void 0?!0:o,a=e.roundOffsets,l=a===void 0?!0:a;if({}.NODE_ENV!=="production"){var c=Qt(t.elements.popper).transitionProperty||"";r&&["transform","top","right","bottom","left"].some(function(d){return c.indexOf(d)>=0})&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',` `,'Disable the "computeStyles" modifier\'s `adaptive` option to allow',"for smooth transitions, or remove these properties from the CSS","transition declaration on the popper element if only transitioning","opacity or background-color for example.",` -`,"We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var h={placement:Zt(t.placement),variation:Yi(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:n,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Bc(Object.assign({},h,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:r,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Bc(Object.assign({},h,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Xr={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:og,data:{}};var jn={passive:!0};function rg(i){var t=i.state,e=i.instance,s=i.options,n=s.scroll,o=n===void 0?!0:n,r=s.resize,a=r===void 0?!0:r,l=It(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(h){h.addEventListener("scroll",e.update,jn)}),a&&l.addEventListener("resize",e.update,jn),function(){o&&c.forEach(function(h){h.removeEventListener("scroll",e.update,jn)}),a&&l.removeEventListener("resize",e.update,jn)}}const Gr={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:rg,data:{}};var ag={left:"right",right:"left",bottom:"top",top:"bottom"};function Kn(i){return i.replace(/left|right|bottom|top/g,function(t){return ag[t]})}var lg={start:"end",end:"start"};function Hc(i){return i.replace(/start|end/g,function(t){return lg[t]})}function qr(i){var t=It(i),e=t.pageXOffset,s=t.pageYOffset;return{scrollLeft:e,scrollTop:s}}function Zr(i){return zi(Be(i)).left+qr(i).scrollLeft}function cg(i,t){var e=It(i),s=Be(i),n=e.visualViewport,o=s.clientWidth,r=s.clientHeight,a=0,l=0;if(n){o=n.width,r=n.height;var c=Ic();(c||!c&&t==="fixed")&&(a=n.offsetLeft,l=n.offsetTop)}return{width:o,height:r,x:a+Zr(i),y:l}}function hg(i){var t,e=Be(i),s=qr(i),n=(t=i.ownerDocument)==null?void 0:t.body,o=di(e.scrollWidth,e.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),r=di(e.scrollHeight,e.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),a=-s.scrollLeft+Zr(i),l=-s.scrollTop;return Qt(n||e).direction==="rtl"&&(a+=di(e.clientWidth,n?n.clientWidth:0)-o),{width:o,height:r,x:a,y:l}}function Qr(i){var t=Qt(i),e=t.overflow,s=t.overflowX,n=t.overflowY;return/auto|scroll|overlay|hidden/.test(e+n+s)}function Fc(i){return["html","body","#document"].indexOf(re(i))>=0?i.ownerDocument.body:Mt(i)&&Qr(i)?i:Fc(Yn(i))}function Os(i,t){var e;t===void 0&&(t=[]);var s=Fc(i),n=s===((e=i.ownerDocument)==null?void 0:e.body),o=It(s),r=n?[o].concat(o.visualViewport||[],Qr(s)?s:[]):s,a=t.concat(r);return n?a:a.concat(Os(Yn(r)))}function Jr(i){return Object.assign({},i,{left:i.x,top:i.y,right:i.x+i.width,bottom:i.y+i.height})}function dg(i,t){var e=zi(i,!1,t==="fixed");return e.top=e.top+i.clientTop,e.left=e.left+i.clientLeft,e.bottom=e.top+i.clientHeight,e.right=e.left+i.clientWidth,e.width=i.clientWidth,e.height=i.clientHeight,e.x=e.left,e.y=e.top,e}function Wc(i,t,e){return t===Fr?Jr(cg(i,e)):hi(t)?dg(t,e):Jr(hg(Be(i)))}function ug(i){var t=Os(Yn(i)),e=["absolute","fixed"].indexOf(Qt(i).position)>=0,s=e&&Mt(i)?ks(i):i;return hi(s)?t.filter(function(n){return hi(n)&&Mc(n,s)&&re(n)!=="body"}):[]}function pg(i,t,e,s){var n=t==="clippingParents"?ug(i):[].concat(t),o=[].concat(n,[e]),r=o[0],a=o.reduce(function(l,c){var h=Wc(i,c,s);return l.top=di(h.top,l.top),l.right=zn(h.right,l.right),l.bottom=zn(h.bottom,l.bottom),l.left=di(h.left,l.left),l},Wc(i,r,s));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Vc(i){var t=i.reference,e=i.element,s=i.placement,n=s?Zt(s):null,o=s?Yi(s):null,r=t.x+t.width/2-e.width/2,a=t.y+t.height/2-e.height/2,l;switch(n){case gt:l={x:r,y:t.y-e.height};break;case Ot:l={x:r,y:t.y+t.height};break;case Dt:l={x:t.x+t.width,y:a};break;case mt:l={x:t.x-e.width,y:a};break;default:l={x:t.x,y:t.y}}var c=n?Ur(n):null;if(c!=null){var h=c==="y"?"height":"width";switch(o){case ci:l[c]=l[c]-(t[h]/2-e[h]/2);break;case Fi:l[c]=l[c]+(t[h]/2-e[h]/2);break}}return l}function ji(i,t){t===void 0&&(t={});var e=t,s=e.placement,n=s===void 0?i.placement:s,o=e.strategy,r=o===void 0?i.strategy:o,a=e.boundary,l=a===void 0?yc:a,c=e.rootBoundary,h=c===void 0?Fr:c,d=e.elementContext,u=d===void 0?Wi:d,p=e.altBoundary,f=p===void 0?!1:p,b=e.padding,v=b===void 0?0:b,y=Rc(typeof v!="number"?v:Pc(v,Hi)),x=u===Wi?xc:Wi,E=i.rects.popper,T=i.elements[f?x:u],C=pg(hi(T)?T:T.contextElement||Be(i.elements.popper),l,h,r),A=zi(i.elements.reference),w=Vc({reference:A,element:E,strategy:"absolute",placement:n}),S=Jr(Object.assign({},E,w)),k=u===Wi?S:A,D={top:C.top-k.top+y.top,bottom:k.bottom-C.bottom+y.bottom,left:C.left-k.left+y.left,right:k.right-C.right+y.right},O=i.modifiersData.offset;if(u===Wi&&O){var I=O[n];Object.keys(D).forEach(function(R){var X=[Dt,Ot].indexOf(R)>=0?1:-1,$=[gt,Ot].indexOf(R)>=0?"y":"x";D[R]+=I[$]*X})}return D}function fg(i,t){t===void 0&&(t={});var e=t,s=e.placement,n=e.boundary,o=e.rootBoundary,r=e.padding,a=e.flipVariations,l=e.allowedAutoPlacements,c=l===void 0?Vr:l,h=Yi(s),d=h?a?Wr:Wr.filter(function(f){return Yi(f)===h}):Hi,u=d.filter(function(f){return c.indexOf(f)>=0});u.length===0&&(u=d,{}.NODE_ENV!=="production"&&console.error(["Popper: The `allowedAutoPlacements` option did not allow any","placements. Ensure the `placement` option matches the variation","of the allowed placements.",'For example, "auto" cannot be used to allow "bottom-start".','Use "auto-start" instead.'].join(" ")));var p=u.reduce(function(f,b){return f[b]=ji(i,{placement:b,boundary:n,rootBoundary:o,padding:r})[Zt(b)],f},{});return Object.keys(p).sort(function(f,b){return p[f]-p[b]})}function _g(i){if(Zt(i)===ws)return[];var t=Kn(i);return[Hc(i),t,Hc(t)]}function gg(i){var t=i.state,e=i.options,s=i.name;if(!t.modifiersData[s]._skip){for(var n=e.mainAxis,o=n===void 0?!0:n,r=e.altAxis,a=r===void 0?!0:r,l=e.fallbackPlacements,c=e.padding,h=e.boundary,d=e.rootBoundary,u=e.altBoundary,p=e.flipVariations,f=p===void 0?!0:p,b=e.allowedAutoPlacements,v=t.options.placement,y=Zt(v),x=y===v,E=l||(x||!f?[Kn(v)]:_g(v)),T=[v].concat(E).reduce(function(Ae,Xt){return Ae.concat(Zt(Xt)===ws?fg(t,{placement:Xt,boundary:h,rootBoundary:d,padding:c,flipVariations:f,allowedAutoPlacements:b}):Xt)},[]),C=t.rects.reference,A=t.rects.popper,w=new Map,S=!0,k=T[0],D=0;D=0,$=X?"width":"height",z=ji(t,{placement:O,boundary:h,rootBoundary:d,altBoundary:u,padding:c}),j=X?R?Dt:mt:R?Ot:gt;C[$]>A[$]&&(j=Kn(j));var Kt=Kn(j),se=[];if(o&&se.push(z[I]<=0),a&&se.push(z[j]<=0,z[Kt]<=0),se.every(function(Ae){return Ae})){k=O,S=!1;break}w.set(O,se)}if(S)for(var ne=f?3:1,oi=function(Xt){var Re=T.find(function(Lr){var Ri=w.get(Lr);if(Ri)return Ri.slice(0,Xt).every(function(ic){return ic})});if(Re)return k=Re,"break"},Ut=ne;Ut>0;Ut--){var Ce=oi(Ut);if(Ce==="break")break}t.placement!==k&&(t.modifiersData[s]._skip=!0,t.placement=k,t.reset=!0)}}const zc={name:"flip",enabled:!0,phase:"main",fn:gg,requiresIfExists:["offset"],data:{_skip:!1}};function Yc(i,t,e){return e===void 0&&(e={x:0,y:0}),{top:i.top-t.height-e.y,right:i.right-t.width+e.x,bottom:i.bottom-t.height+e.y,left:i.left-t.width-e.x}}function jc(i){return[gt,Dt,Ot,mt].some(function(t){return i[t]>=0})}function mg(i){var t=i.state,e=i.name,s=t.rects.reference,n=t.rects.popper,o=t.modifiersData.preventOverflow,r=ji(t,{elementContext:"reference"}),a=ji(t,{altBoundary:!0}),l=Yc(r,s),c=Yc(a,n,o),h=jc(l),d=jc(c);t.modifiersData[e]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:h,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":d})}const Kc={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:mg};function bg(i,t,e){var s=Zt(i),n=[mt,gt].indexOf(s)>=0?-1:1,o=typeof e=="function"?e(Object.assign({},t,{placement:i})):e,r=o[0],a=o[1];return r=r||0,a=(a||0)*n,[mt,Dt].indexOf(s)>=0?{x:a,y:r}:{x:r,y:a}}function vg(i){var t=i.state,e=i.options,s=i.name,n=e.offset,o=n===void 0?[0,0]:n,r=Vr.reduce(function(h,d){return h[d]=bg(d,t.rects,o),h},{}),a=r[t.placement],l=a.x,c=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[s]=r}const Uc={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:vg};function yg(i){var t=i.state,e=i.name;t.modifiersData[e]=Vc({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const ta={name:"popperOffsets",enabled:!0,phase:"read",fn:yg,data:{}};function xg(i){return i==="x"?"y":"x"}function Tg(i){var t=i.state,e=i.options,s=i.name,n=e.mainAxis,o=n===void 0?!0:n,r=e.altAxis,a=r===void 0?!1:r,l=e.boundary,c=e.rootBoundary,h=e.altBoundary,d=e.padding,u=e.tether,p=u===void 0?!0:u,f=e.tetherOffset,b=f===void 0?0:f,v=ji(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:h}),y=Zt(t.placement),x=Yi(t.placement),E=!x,T=Ur(y),C=xg(T),A=t.modifiersData.popperOffsets,w=t.rects.reference,S=t.rects.popper,k=typeof b=="function"?b(Object.assign({},t.rects,{placement:t.placement})):b,D=typeof k=="number"?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),O=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,I={x:0,y:0};if(A){if(o){var R,X=T==="y"?gt:mt,$=T==="y"?Ot:Dt,z=T==="y"?"height":"width",j=A[T],Kt=j+v[X],se=j-v[$],ne=p?-S[z]/2:0,oi=x===ci?w[z]:S[z],Ut=x===ci?-S[z]:-w[z],Ce=t.elements.arrow,Ae=p&&Ce?Kr(Ce):{width:0,height:0},Xt=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:$c(),Re=Xt[X],Lr=Xt[$],Ri=Ss(0,w[z],Ae[z]),ic=E?w[z]/2-ne-Ri-Re-D.mainAxis:oi-Ri-Re-D.mainAxis,mD=E?-w[z]/2+ne+Ri+Lr+D.mainAxis:Ut+Ri+Lr+D.mainAxis,sc=t.elements.arrow&&ks(t.elements.arrow),bD=sc?T==="y"?sc.clientTop||0:sc.clientLeft||0:0,T_=(R=O==null?void 0:O[T])!=null?R:0,vD=j+ic-T_-bD,yD=j+mD-T_,E_=Ss(p?zn(Kt,vD):Kt,j,p?di(se,yD):se);A[T]=E_,I[T]=E_-j}if(a){var C_,xD=T==="x"?gt:mt,TD=T==="x"?Ot:Dt,Pi=A[C],$r=C==="y"?"height":"width",A_=Pi+v[xD],w_=Pi-v[TD],nc=[gt,mt].indexOf(y)!==-1,k_=(C_=O==null?void 0:O[C])!=null?C_:0,S_=nc?A_:Pi-w[$r]-S[$r]-k_+D.altAxis,O_=nc?Pi+w[$r]+S[$r]-k_-D.altAxis:w_,D_=p&&nc?J_(S_,Pi,O_):Ss(p?S_:A_,Pi,p?O_:w_);A[C]=D_,I[C]=D_-Pi}t.modifiersData[s]=I}}const Xc={name:"preventOverflow",enabled:!0,phase:"main",fn:Tg,requiresIfExists:["offset"]};function Eg(i){return{scrollLeft:i.scrollLeft,scrollTop:i.scrollTop}}function Cg(i){return i===It(i)||!Mt(i)?qr(i):Eg(i)}function Ag(i){var t=i.getBoundingClientRect(),e=Vi(t.width)/i.offsetWidth||1,s=Vi(t.height)/i.offsetHeight||1;return e!==1||s!==1}function wg(i,t,e){e===void 0&&(e=!1);var s=Mt(t),n=Mt(t)&&Ag(t),o=Be(t),r=zi(i,n,e),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(s||!s&&!e)&&((re(t)!=="body"||Qr(o))&&(a=Cg(t)),Mt(t)?(l=zi(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=Zr(o))),{x:r.left+a.scrollLeft-l.x,y:r.top+a.scrollTop-l.y,width:r.width,height:r.height}}function kg(i){var t=new Map,e=new Set,s=[];i.forEach(function(o){t.set(o.name,o)});function n(o){e.add(o.name);var r=[].concat(o.requires||[],o.requiresIfExists||[]);r.forEach(function(a){if(!e.has(a)){var l=t.get(a);l&&n(l)}}),s.push(o)}return i.forEach(function(o){e.has(o.name)||n(o)}),s}function Sg(i){var t=kg(i);return Vn.reduce(function(e,s){return e.concat(t.filter(function(n){return n.phase===s}))},[])}function Og(i){var t;return function(){return t||(t=new Promise(function(e){Promise.resolve().then(function(){t=void 0,e(i())})})),t}}function He(i){for(var t=arguments.length,e=new Array(t>1?t-1:0),s=1;s100)){console.error($g);break}if(h.reset===!0){h.reset=!1,C=-1;continue}var A=h.orderedModifiers[C],w=A.fn,S=A.options,k=S===void 0?{}:S,D=A.name;typeof w=="function"&&(h=w({state:h,options:k,name:D,instance:p})||h)}}},update:Og(function(){return new Promise(function(v){p.forceUpdate(),v(h)})}),destroy:function(){b(),u=!0}};if(!Qc(a,l))return{}.NODE_ENV!=="production"&&console.error(qc),p;p.setOptions(c).then(function(v){!u&&c.onFirstUpdate&&c.onFirstUpdate(v)});function f(){h.orderedModifiers.forEach(function(v){var y=v.name,x=v.options,E=x===void 0?{}:x,T=v.effect;if(typeof T=="function"){var C=T({state:h,name:y,instance:p,options:E}),A=function(){};d.push(C||A)}})}function b(){d.forEach(function(v){return v()}),d=[]}return p}}var Rg=Un(),Pg=[Gr,ta,Xr,Yr],Ng=Un({defaultModifiers:Pg}),Bg=[Gr,ta,Xr,Yr,Uc,zc,Xc,Nc,Kc],pi=Un({defaultModifiers:Bg});const Jc=Object.freeze(Object.defineProperty({__proto__:null,afterMain:kc,afterRead:Cc,afterWrite:Dc,applyStyles:Yr,arrow:Nc,auto:ws,basePlacements:Hi,beforeMain:Ac,beforeRead:Tc,beforeWrite:Sc,bottom:Ot,clippingParents:yc,computeStyles:Xr,createPopper:pi,createPopperBase:Rg,createPopperLite:Ng,detectOverflow:ji,end:Fi,eventListeners:Gr,flip:zc,hide:Kc,left:mt,main:wc,modifierPhases:Vn,offset:Uc,placements:Vr,popper:Wi,popperGenerator:Un,popperOffsets:ta,preventOverflow:Xc,read:Ec,reference:xc,right:Dt,start:ci,top:gt,variationPlacements:Wr,viewport:Fr,write:Oc},Symbol.toStringTag,{value:"Module"}));function ea(i){return i==="true"?!0:i==="false"?!1:i===Number(i).toString()?Number(i):i===""||i==="null"?null:i}function ia(i){return i.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}const _={setDataAttribute(i,t,e){i.setAttribute(`data-te-${ia(t)}`,e)},removeDataAttribute(i,t){i.removeAttribute(`data-te-${ia(t)}`)},getDataAttributes(i){if(!i)return{};const t={};return Object.keys(i.dataset).filter(e=>e.startsWith("te")).forEach(e=>{if(e.startsWith("teClass"))return;let s=e.replace(/^te/,"");s=s.charAt(0).toLowerCase()+s.slice(1,s.length),t[s]=ea(i.dataset[e])}),t},getDataClassAttributes(i){if(!i)return{};const t={...i.dataset};return Object.keys(t).filter(e=>e.startsWith("teClass")).forEach(e=>{let s=e.replace(/^teClass/,"");s=s.charAt(0).toLowerCase()+s.slice(1,s.length),t[s]=ea(t[e])}),t},getDataAttribute(i,t){return ea(i.getAttribute(`data-te-${ia(t)}`))},offset(i){const t=i.getBoundingClientRect();return{top:t.top+document.body.scrollTop,left:t.left+document.body.scrollLeft}},position(i){return{top:i.offsetTop,left:i.offsetLeft}},style(i,t){Object.assign(i.style,t)},toggleClass(i,t){i&&sa(t).forEach(e=>{i.classList.contains(e)?i.classList.remove(e):i.classList.add(e)})},addClass(i,t){sa(t).forEach(e=>!i.classList.contains(e)&&i.classList.add(e))},addStyle(i,t){Object.keys(t).forEach(e=>{i.style[e]=t[e]})},removeClass(i,t){sa(t).forEach(e=>i.classList.contains(e)&&i.classList.remove(e))},hasClass(i,t){return i.classList.contains(t)},maxOffset(i){const t=i.getBoundingClientRect();return{top:t.top+Math.max(document.body.scrollTop,document.documentElement.scrollTop,window.scrollY),left:t.left+Math.max(document.body.scrollLeft,document.documentElement.scrollLeft,window.scrollX)}}};function sa(i){return typeof i=="string"?i.split(" "):Array.isArray(i)?i:!1}const Hg=3,m={closest(i,t){return i.closest(t)},matches(i,t){return i.matches(t)},find(i,t=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(t,i))},findOne(i,t=document.documentElement){return Element.prototype.querySelector.call(t,i)},children(i,t){return[].concat(...i.children).filter(s=>s.matches(t))},parents(i,t){const e=[];let s=i.parentNode;for(;s&&s.nodeType===Node.ELEMENT_NODE&&s.nodeType!==Hg;)this.matches(s,t)&&e.push(s),s=s.parentNode;return e},prev(i,t){let e=i.previousElementSibling;for(;e;){if(e.matches(t))return[e];e=e.previousElementSibling}return[]},next(i,t){let e=i.nextElementSibling;for(;e;){if(this.matches(e,t))return[e];e=e.nextElementSibling}return[]},focusableChildren(i){const t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(e=>`${e}:not([tabindex^="-"])`).join(", ");return this.find(t,i).filter(e=>!ri(e)&&oe(e))}},na="dropdown",fi=".te.dropdown",oa=".data-api",Xn="Escape",th="Space",eh="Tab",ra="ArrowUp",Gn="ArrowDown",Fg=2,Wg=new RegExp(`${ra}|${Gn}|${Xn}`),Vg=`hide${fi}`,zg=`hidden${fi}`,Yg=`show${fi}`,jg=`shown${fi}`,Kg=`click${fi}${oa}`,ih=`keydown${fi}${oa}`,Ug=`keyup${fi}${oa}`,Fe="show",Xg="dropup",Gg="dropend",qg="dropstart",Zg="[data-te-navbar-ref]",qn="[data-te-dropdown-toggle-ref]",aa="[data-te-dropdown-menu-ref]",Qg="[data-te-navbar-nav-ref]",Jg="[data-te-dropdown-menu-ref] [data-te-dropdown-item-ref]:not(.disabled):not(:disabled)",tm=st()?"top-end":"top-start",em=st()?"top-start":"top-end",im=st()?"bottom-end":"bottom-start",sm=st()?"bottom-start":"bottom-end",nm=st()?"left-start":"right-start",om=st()?"right-start":"left-start",rm=[{opacity:"0"},{opacity:"1"}],am=[{opacity:"1"},{opacity:"0"}],Zn={duration:550,iterations:1,easing:"ease",fill:"both"},lm={offset:[0,2],boundary:"clippingParents",reference:"toggle",display:"dynamic",popperConfig:null,autoClose:!0,dropdownAnimation:"on"},cm={offset:"(array|string|function)",boundary:"(string|element)",reference:"(string|element|object)",display:"string",popperConfig:"(null|object|function)",autoClose:"(boolean|string)",dropdownAnimation:"string"};class Bt extends qt{constructor(t,e){super(t),this._popper=null,this._config=this._getConfig(e),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._fadeOutAnimate=null;const s=window.matchMedia("(prefers-reduced-motion: reduce)").matches;this._animationCanPlay=this._config.dropdownAnimation==="on"&&!s,this._didInit=!1,this._init()}static get Default(){return lm}static get DefaultType(){return cm}static get NAME(){return na}toggle(){return this._isShown()?this.hide():this.show()}show(){if(ri(this._element)||this._isShown(this._menu))return;const t={relatedTarget:this._element};if(g.trigger(this._element,Yg,t).defaultPrevented)return;const s=Bt.getParentFromElement(this._element);this._inNavbar?_.setDataAttribute(this._menu,"popper","none"):this._createPopper(s),"ontouchstart"in document.documentElement&&!s.closest(Qg)&&[].concat(...document.body.children).forEach(n=>g.on(n,"mouseover",Fn)),this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.setAttribute(`data-te-dropdown-${Fe}`,""),this._animationCanPlay&&this._menu.animate(rm,Zn),this._element.setAttribute(`data-te-dropdown-${Fe}`,""),setTimeout(()=>{g.trigger(this._element,jg,t)},this._animationCanPlay?Zn.duration:0)}hide(){if(ri(this._element)||!this._isShown(this._menu))return;const t={relatedTarget:this._element};this._completeHide(t)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_init(){this._didInit||(g.on(document,ih,qn,Bt.dataApiKeydownHandler),g.on(document,ih,aa,Bt.dataApiKeydownHandler),g.on(document,Kg,Bt.clearMenus),g.on(document,Ug,Bt.clearMenus),this._didInit=!0)}_completeHide(t){this._fadeOutAnimate&&this._fadeOutAnimate.playState==="running"||g.trigger(this._element,Vg,t).defaultPrevented||("ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach(s=>g.off(s,"mouseover",Fn)),this._animationCanPlay&&(this._fadeOutAnimate=this._menu.animate(am,Zn)),setTimeout(()=>{this._popper&&this._popper.destroy(),this._menu.removeAttribute(`data-te-dropdown-${Fe}`),this._element.removeAttribute(`data-te-dropdown-${Fe}`),this._element.setAttribute("aria-expanded","false"),_.removeDataAttribute(this._menu,"popper"),g.trigger(this._element,zg,t)},this._animationCanPlay?Zn.duration:0))}_getConfig(t){if(t={...this.constructor.Default,..._.getDataAttributes(this._element),...t},P(na,t,this.constructor.DefaultType),typeof t.reference=="object"&&!Ni(t.reference)&&typeof t.reference.getBoundingClientRect!="function")throw new TypeError(`${na.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(t){if(typeof Jc>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let e=this._element;this._config.reference==="parent"?e=t:Ni(this._config.reference)?e=Ne(this._config.reference):typeof this._config.reference=="object"&&(e=this._config.reference);const s=this._getPopperConfig(),n=s.modifiers.find(o=>o.name==="applyStyles"&&o.enabled===!1);this._popper=pi(e,this._menu,s),n&&_.setDataAttribute(this._menu,"popper","static")}_isShown(t=this._element){return t.dataset[`teDropdown${Fe.charAt(0).toUpperCase()+Fe.slice(1)}`]===""}_getMenuElement(){return m.next(this._element,aa)[0]}_getPlacement(){const t=this._element.parentNode;if(t.dataset.teDropdownPosition===Gg)return nm;if(t.dataset.teDropdownPosition===qg)return om;const e=getComputedStyle(this._menu).getPropertyValue("--te-position").trim()==="end";return t.dataset.teDropdownPosition===Xg?e?em:tm:e?sm:im}_detectNavbar(){return this._element.closest(Zg)!==null}_getOffset(){const{offset:t}=this._config;return typeof t=="string"?t.split(",").map(e=>Number.parseInt(e,10)):typeof t=="function"?e=>t(e,this._element):t}_getPopperConfig(){const t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return this._config.display==="static"&&(t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,...typeof this._config.popperConfig=="function"?this._config.popperConfig(t):this._config.popperConfig}}_selectMenuItem({key:t,target:e}){const s=m.find(Jg,this._menu).filter(oe);s.length&&dc(s,e,t===Gn,!s.includes(e)).focus()}static jQueryInterface(t){return this.each(function(){const e=Bt.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]>"u")throw new TypeError(`No method named "${t}"`);e[t]()}})}static clearMenus(t){if(t&&(t.button===Fg||t.type==="keyup"&&t.key!==eh))return;const e=m.find(qn);for(let s=0,n=e.length;sh===this._element);l!==null&&c.length&&(this._selector=l,this._triggerArray.push(a))}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return nh}static get NAME(){return la}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[],e;if(this._config.parent){const h=m.find(rh,this._config.parent);t=m.find(bm,this._config.parent).filter(d=>!h.includes(d))}const s=m.findOne(this._selector);if(t.length){const h=t.find(d=>s!==d);if(e=h?ae.getInstance(h):null,e&&e._isTransitioning)return}if(g.trigger(this._element,dm).defaultPrevented)return;t.forEach(h=>{s!==h&&ae.getOrCreateInstance(h,{toggle:!1}).hide(),e||M.setData(h,sh,null)});const o=this._getDimension(),r=o==="height"?this._classes.collapsing:this._classes.collapsingHorizontal;_.removeClass(this._element,this._classes.visible),_.removeClass(this._element,this._classes.hidden),_.addClass(this._element,r),this._element.removeAttribute(Ki),this._element.setAttribute(Jn,""),this._element.style[o]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const a=()=>{this._isTransitioning=!1,_.removeClass(this._element,this._classes.hidden),_.removeClass(this._element,r),_.addClass(this._element,this._classes.visible),this._element.removeAttribute(Jn),this._element.setAttribute(Ki,""),this._element.setAttribute(ca,""),this._element.style[o]="",g.trigger(this._element,um)},c=`scroll${o[0].toUpperCase()+o.slice(1)}`;this._queueCallback(a,this._element,!0),this._element.style[o]=`${this._element[c]}px`}hide(){if(this._isTransitioning||!this._isShown()||g.trigger(this._element,pm).defaultPrevented)return;const e=this._getDimension(),s=e==="height"?this._classes.collapsing:this._classes.collapsingHorizontal;this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,Bi(this._element),_.addClass(this._element,s),_.removeClass(this._element,this._classes.visible),_.removeClass(this._element,this._classes.hidden),this._element.setAttribute(Jn,""),this._element.removeAttribute(Ki),this._element.removeAttribute(ca);const n=this._triggerArray.length;for(let r=0;r{this._isTransitioning=!1,_.removeClass(this._element,s),_.addClass(this._element,this._classes.visible),_.addClass(this._element,this._classes.hidden),this._element.removeAttribute(Jn),this._element.setAttribute(Ki,""),g.trigger(this._element,fm)};this._element.style[e]="",this._queueCallback(o,this._element,!0)}_isShown(t=this._element){return t.hasAttribute(ca)}_getConfig(t){return t={...nh,..._.getDataAttributes(this._element),...t},t.toggle=!!t.toggle,t.parent=Ne(t.parent),P(la,t,hm),t}_getClasses(t){const e=_.getDataClassAttributes(this._element);return t={...vm,...e,...t},P(la,t,ym),t}_getDimension(){return this._element.hasAttribute(_m)?gm:mm}_initializeChildren(){if(!this._config.parent)return;const t=m.find(rh,this._config.parent);m.find(ah,this._config.parent).filter(e=>!t.includes(e)).forEach(e=>{const s=Pe(e);s&&this._addAriaAndCollapsedClass([e],this._isShown(s))})}_addAriaAndCollapsedClass(t,e){t.length&&t.forEach(s=>{e?s.removeAttribute(oh):s.setAttribute(`${oh}`,""),s.setAttribute("aria-expanded",e)})}static jQueryInterface(t){return this.each(function(){const e={};typeof t=="string"&&/show|hide/.test(t)&&(e.toggle=!1);const s=ae.getOrCreateInstance(this,e);if(typeof t=="string"){if(typeof s[t]>"u")throw new TypeError(`No method named "${t}"`);s[t]()}})}}const lh=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",ch=".sticky-top";class Ds{constructor(){this._element=document.body}getWidth(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}hide(){const t=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,"paddingRight",e=>e+t),this._setElementAttributes(lh,"paddingRight",e=>e+t),this._setElementAttributes(ch,"marginRight",e=>e-t)}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,e,s){const n=this.getWidth(),o=r=>{if(r!==this._element&&window.innerWidth>r.clientWidth+n)return;this._saveInitialAttribute(r,e);const a=window.getComputedStyle(r)[e];r.style[e]=`${s(Number.parseFloat(a))}px`};this._applyManipulationCallback(t,o)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,"paddingRight"),this._resetElementAttributes(lh,"paddingRight"),this._resetElementAttributes(ch,"marginRight")}_saveInitialAttribute(t,e){const s=t.style[e];s&&_.setDataAttribute(t,e,s)}_resetElementAttributes(t,e){const s=n=>{const o=_.getDataAttribute(n,e);typeof o>"u"?n.style.removeProperty(e):(_.removeDataAttribute(n,e),n.style[e]=o)};this._applyManipulationCallback(t,s)}_applyManipulationCallback(t,e){Ni(t)?e(t):m.find(t,this._element).forEach(e)}isOverflowing(){return this.getWidth()>0}}const xm={isVisible:!0,isAnimated:!1,rootElement:"body",clickCallback:null,backdropClasses:null},Tm={isVisible:"boolean",isAnimated:"boolean",rootElement:"(element|string)",clickCallback:"(function|null)",backdropClasses:"(array|null)"},hh="backdrop",dh=`mousedown.te.${hh}`;class ha{constructor(t){this._config=this._getConfig(t),this._isAppended=!1,this._element=null}show(t){if(!this._config.isVisible){ai(t);return}this._append(),this._config.isAnimated&&Bi(this._getElement());const e=this._config.backdropClasses||["opacity-50","transition-all","duration-300","ease-in-out","fixed","top-0","left-0","z-[1040]","bg-black","w-screen","h-screen"];_.removeClass(this._getElement(),"opacity-0"),_.addClass(this._getElement(),e),this._element.setAttribute("data-te-backdrop-show",""),this._emulateAnimation(()=>{ai(t)})}hide(t){if(!this._config.isVisible){ai(t);return}this._element.removeAttribute("data-te-backdrop-show"),this._getElement().classList.add("opacity-0"),this._getElement().classList.remove("opacity-50"),this._emulateAnimation(()=>{this.dispose(),ai(t)})}_getElement(){if(!this._element){const t=document.createElement("div");t.className=this._config.className,this._config.isAnimated&&t.classList.add("opacity-50"),this._element=t}return this._element}_getConfig(t){return t={...xm,...typeof t=="object"?t:{}},t.rootElement=Ne(t.rootElement),P(hh,t,Tm),t}_append(){this._isAppended||(this._config.rootElement.append(this._getElement()),g.on(this._getElement(),dh,()=>{ai(this._config.clickCallback)}),this._isAppended=!0)}dispose(){this._isAppended&&(g.off(this._element,dh),this._element.remove(),this._isAppended=!1)}_emulateAnimation(t){hc(t,this._getElement(),this._config.isAnimated)}}class Is{constructor(t,e={},s){this._element=t,this._toggler=s,this._event=e.event||"blur",this._condition=e.condition||(()=>!0),this._selector=e.selector||'button, a, input, select, textarea, [tabindex]:not([tabindex="-1"])',this._onlyVisible=e.onlyVisible||!1,this._focusableElements=[],this._firstElement=null,this._lastElement=null,this.handler=n=>{this._condition(n)&&!n.shiftKey&&n.target===this._lastElement?(n.preventDefault(),this._firstElement.focus()):this._condition(n)&&n.shiftKey&&n.target===this._firstElement&&(n.preventDefault(),this._lastElement.focus())}}trap(){this._setElements(),this._init(),this._setFocusTrap()}disable(){this._focusableElements.forEach(t=>{t.removeEventListener(this._event,this.handler)}),this._toggler&&this._toggler.focus()}update(){this._setElements(),this._setFocusTrap()}_init(){const t=e=>{!this._firstElement||e.key!=="Tab"||this._focusableElements.includes(e.target)||(e.preventDefault(),this._firstElement.focus(),window.removeEventListener("keydown",t))};window.addEventListener("keydown",t)}_filterVisible(t){return t.filter(e=>{if(!oe(e))return!1;const s=m.parents(e,"*");for(let n=0;n{e===this._focusableElements.length-1||e===0?t.addEventListener(this._event,this.handler):t.removeEventListener(this._event,this.handler)})}}const uh="offcanvas",Ui=".te.offcanvas",Em=`load${Ui}.data-api`,Cm="Escape",ph={backdrop:!0,keyboard:!0,scroll:!1},Am={backdrop:"boolean",keyboard:"boolean",scroll:"boolean"},fh="show",wm="[data-te-offcanvas-init][data-te-offcanvas-show]",km=`show${Ui}`,Sm=`shown${Ui}`,Om=`hide${Ui}`,Dm=`hidden${Ui}`,Im=`keydown.dismiss${Ui}`;class Ms extends qt{constructor(t,e){super(t),this._config=this._getConfig(e),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners(),this._didInit=!1,this._init()}static get NAME(){return uh}static get Default(){return ph}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown||g.trigger(this._element,km,{relatedTarget:t}).defaultPrevented)return;this._isShown=!0,this._element.style.visibility="visible",this._backdrop.show(),this._config.scroll||new Ds().hide(),this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.setAttribute(`data-te-offcanvas-${fh}`,"");const s=()=>{this._config.scroll||this._focustrap.trap(),g.trigger(this._element,Sm,{relatedTarget:t})};this._queueCallback(s,this._element,!0)}hide(){if(!this._isShown||g.trigger(this._element,Om).defaultPrevented)return;this._focustrap.disable(),this._element.blur(),this._isShown=!1,this._element.removeAttribute(`data-te-offcanvas-${fh}`),this._backdrop.hide();const e=()=>{this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._element.style.visibility="hidden",this._config.scroll||new Ds().reset(),g.trigger(this._element,Dm)};this._queueCallback(e,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.disable(),super.dispose()}_init(){this._didInit||(g.on(window,Em,()=>m.find(wm).forEach(t=>Ms.getOrCreateInstance(t).show())),this._didInit=!0)}_getConfig(t){return t={...ph,..._.getDataAttributes(this._element),...typeof t=="object"?t:{}},P(uh,t,Am),t}_initializeBackDrop(){return new ha({isVisible:this._config.backdrop,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:()=>this.hide()})}_initializeFocusTrap(){return new Is(this._element,{event:"keydown",condition:t=>t.key==="Tab"})}_addEventListeners(){g.on(this._element,Im,t=>{this._config.keyboard&&t.key===Cm&&this.hide()})}static jQueryInterface(t){return this.each(function(){const e=Ms.getOrCreateInstance(this,t);if(typeof t=="string"){if(e[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);e[t](this)}})}}const da="alert",_h=".te.alert",Mm=`close${_h}`,Lm=`closed${_h}`,Ls="data-te-alert-show",$m={animation:"boolean",autohide:"boolean",delay:"number"},gh={animation:!0,autohide:!0,delay:1e3},Rm={fadeIn:"animate-[fade-in_0.3s_both] p-[auto] motion-reduce:transition-none motion-reduce:animate-none",fadeOut:"animate-[fade-out_0.3s_both] p-[auto] motion-reduce:transition-none motion-reduce:animate-none"},Pm={fadeIn:"string",fadeOut:"string"};class to extends qt{constructor(t,e,s){super(t),this._element=t,this._config=this._getConfig(e),this._classes=this._getClasses(s)}static get DefaultType(){return $m}static get Default(){return gh}static get NAME(){return da}close(){if(g.trigger(this._element,Mm).defaultPrevented)return;let e=0;this._config.animation&&(e=300,_.addClass(this._element,this._classes.fadeOut)),this._element.removeAttribute(Ls),setTimeout(()=>{this._queueCallback(()=>this._destroyElement(),this._element,this._config.animation)},e)}show(){if(this._element){if(this._config.autohide&&this._setupAutohide(),!this._element.hasAttribute(Ls)&&(_.removeClass(this._element,"hidden"),_.addClass(this._element,"block"),oe(this._element))){const t=e=>{_.removeClass(this._element,"hidden"),_.addClass(this._element,"block"),g.off(e.target,"animationend",t)};this._element.setAttribute(Ls,""),g.on(this._element,"animationend",t)}this._config.animation&&(_.removeClass(this._element,this._classes.fadeOut),_.addClass(this._element,this._classes.fadeIn))}}hide(){if(this._element&&this._element.hasAttribute(Ls)){this._element.removeAttribute(Ls);const t=e=>{_.addClass(this._element,"hidden"),_.removeClass(this._element,"block"),this._timeout!==null&&(clearTimeout(this._timeout),this._timeout=null),g.off(e.target,"animationend",t)};g.on(this._element,"animationend",t),_.removeClass(this._element,this._classes.fadeIn),_.addClass(this._element,this._classes.fadeOut)}}_getConfig(t){return t={...gh,..._.getDataAttributes(this._element),...typeof t=="object"&&t?t:{}},P(da,t,this.constructor.DefaultType),t}_getClasses(t){const e=_.getDataClassAttributes(this._element);return t={...Rm,...e,...t},P(da,t,Pm),t}_setupAutohide(){this._timeout=setTimeout(()=>{this.hide()},this._config.delay)}_destroyElement(){this._element.remove(),g.trigger(this._element,Lm),this.dispose()}static jQueryInterface(t){return this.each(function(){const e=to.getOrCreateInstance(this);if(typeof t=="string"){if(e[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);e[t](this)}})}}const ua="carousel",Lt=".te.carousel",mh=".data-api",Nm="ArrowLeft",Bm="ArrowRight",Hm=500,Fm=40,bh={interval:5e3,keyboard:!0,ride:!1,pause:"hover",wrap:!0,touch:!0},Wm={interval:"(number|boolean)",keyboard:"boolean",ride:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},Vm={pointer:"touch-pan-y",block:"!block",visible:"data-[te-carousel-fade]:opacity-100 data-[te-carousel-fade]:z-[1]",invisible:"data-[te-carousel-fade]:z-0 data-[te-carousel-fade]:opacity-0 data-[te-carousel-fade]:duration-[600ms] data-[te-carousel-fade]:delay-600",slideRight:"translate-x-full",slideLeft:"-translate-x-full"},zm={pointer:"string",block:"string",visible:"string",invisible:"string",slideRight:"string",slideLeft:"string"},_i="next",gi="prev",mi="left",$s="right",Ym={[Nm]:$s,[Bm]:mi},jm=`slide${Lt}`,pa=`slid${Lt}`,Km=`keydown${Lt}`,Um=`mouseenter${Lt}`,Xm=`mouseleave${Lt}`,Gm=`touchstart${Lt}`,qm=`touchmove${Lt}`,Zm=`touchend${Lt}`,Qm=`pointerdown${Lt}`,Jm=`pointerup${Lt}`,tb=`dragstart${Lt}`,eb=`load${Lt}${mh}`,ib=`click${Lt}${mh}`,vh="data-te-carousel-init",bi="data-te-carousel-active",sb="data-te-carousel-item-end",fa="data-te-carousel-item-start",nb="data-te-carousel-item-next",ob="data-te-carousel-item-prev",rb="data-te-carousel-pointer-event",ab="[data-te-carousel-init]",yh="[data-te-carousel-active]",_a="[data-te-carousel-item]",Xi=`${yh}${_a}`,lb=`${_a} img`,cb="[data-te-carousel-item-next], [data-te-carousel-item-prev]",hb="[data-te-carousel-indicators]",db="[data-te-target]",ub="[data-te-slide], [data-te-slide-to]",pb="touch",fb="pen";class le extends qt{constructor(t,e,s){super(t),this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this.touchStartX=0,this.touchDeltaX=0,this._config=this._getConfig(e),this._classes=this._getClasses(s),this._indicatorsElement=m.findOne(hb,this._element),this._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,this._pointerEvent=!!window.PointerEvent,this._setActiveElementClass(),this._addEventListeners(),this._didInit=!1,this._init(),this._config.ride==="carousel"&&this.cycle()}static get Default(){return bh}static get NAME(){return ua}next(){this._slide(_i)}nextWhenVisible(){!document.hidden&&oe(this._element)&&this.next()}prev(){this._slide(gi)}pause(t){t||(this._isPaused=!0),m.findOne(cb,this._element)&&(rc(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null}cycle(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config&&this._config.interval&&!this._isPaused&&(this._updateInterval(),this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))}to(t){this._activeElement=m.findOne(Xi,this._element);const e=this._getItemIndex(this._activeElement);if(t>this._items.length-1||t<0)return;if(this._isSliding){g.one(this._element,pa,()=>this.to(t));return}if(e===t){this.pause(),this.cycle();return}const s=t>e?_i:gi;this._slide(s,this._items[t])}_init(){this._didInit||(g.on(document,ib,ub,le.dataApiClickHandler),g.on(window,eb,()=>{const t=m.find(ab);for(let e=0,s=t.length;ethis.cycle());return}this.cycle()}}_applyInitialClasses(){const t=m.findOne(Xi,this._element);t.classList.add(this._classes.block,...this._classes.visible.split(" ")),this._setActiveIndicatorElement(t)}_handleSwipe(){const t=Math.abs(this.touchDeltaX);if(t<=Fm)return;const e=t/this.touchDeltaX;this.touchDeltaX=0,e&&this._slide(e>0?$s:mi)}_setActiveElementClass(){this._activeElement=m.findOne(Xi,this._element),_.addClass(this._activeElement,"hidden")}_addEventListeners(){this._config.keyboard&&g.on(this._element,Km,t=>this._keydown(t)),this._config.pause==="hover"&&(g.on(this._element,Um,t=>this.pause(t)),g.on(this._element,Xm,t=>this._enableCycle(t))),this._config.touch&&this._touchSupported&&this._addTouchEventListeners(),this._applyInitialClasses()}_addTouchEventListeners(){const t=o=>this._pointerEvent&&(o.pointerType===fb||o.pointerType===pb),e=o=>{t(o)?this.touchStartX=o.clientX:this._pointerEvent||(this.touchStartX=o.touches[0].clientX)},s=o=>{this.touchDeltaX=o.touches&&o.touches.length>1?0:o.touches[0].clientX-this.touchStartX},n=o=>{t(o)&&(this.touchDeltaX=o.clientX-this.touchStartX),this._handleSwipe(),this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(r=>this._enableCycle(r),Hm+this._config.interval))};m.find(lb,this._element).forEach(o=>{g.on(o,tb,r=>r.preventDefault())}),this._pointerEvent?(g.on(this._element,Qm,o=>e(o)),g.on(this._element,Jm,o=>n(o)),this._element.classList.add(this._classes.pointer),this._element.setAttribute(`${rb}`,"")):(g.on(this._element,Gm,o=>e(o)),g.on(this._element,qm,o=>s(o)),g.on(this._element,Zm,o=>n(o)))}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const e=Ym[t.key];e&&(t.preventDefault(),this._slide(e))}_getItemIndex(t){return this._items=t&&t.parentNode?m.find(_a,t.parentNode):[],this._items.indexOf(t)}_getItemByOrder(t,e){const s=t===_i;return dc(this._items,e,s,this._config.wrap)}_triggerSlideEvent(t,e){const s=this._getItemIndex(t),n=this._getItemIndex(m.findOne(Xi,this._element));return g.trigger(this._element,jm,{relatedTarget:t,direction:e,from:n,to:s})}_setActiveIndicatorElement(t){if(this._indicatorsElement){const e=m.findOne(yh,this._indicatorsElement);e.removeAttribute(bi),e.removeAttribute("aria-current"),e.classList.remove("!opacity-100");const s=m.find(db,this._indicatorsElement);for(let n=0;n{g.trigger(this._element,pa,{relatedTarget:r,direction:u,from:o,to:a})};if(this._element.hasAttribute(vh)){r.setAttribute(`${d}`,""),r.classList.add(this._classes.block,f),Bi(r),n.setAttribute(`${h}`,""),n.classList.add(p,...this._classes.invisible.split(" ")),n.classList.remove(...this._classes.visible.split(" ")),r.setAttribute(`${h}`,""),r.classList.add(...this._classes.visible.split(" ")),r.classList.remove(this._classes.slideRight,this._classes.slideLeft);const y=()=>{r.removeAttribute(h),r.removeAttribute(d),r.setAttribute(`${bi}`,""),n.removeAttribute(bi),n.classList.remove(p,...this._classes.invisible.split(" "),this._classes.block),n.removeAttribute(d),n.removeAttribute(h),this._isSliding=!1,setTimeout(v,0)};this._queueCallback(y,n,!0)}else n.removeAttribute(bi),n.classList.remove(this._classes.block),r.setAttribute(`${bi}`,""),r.classList.add(this._classes.block),this._isSliding=!1,v();l&&this.cycle()}_directionToOrder(t){return[$s,mi].includes(t)?st()?t===mi?gi:_i:t===mi?_i:gi:t}_orderToDirection(t){return[_i,gi].includes(t)?st()?t===gi?mi:$s:t===gi?$s:mi:t}static carouselInterface(t,e){const s=le.getOrCreateInstance(t,e);let{_config:n}=s;typeof e=="object"&&(n={...n,...e});const o=typeof e=="string"?e:e.slide;if(typeof e=="number"){s.to(e);return}if(typeof o=="string"){if(typeof s[o]>"u")throw new TypeError(`No method named "${o}"`);s[o]()}else n.interval&&n.ride===!0&&s.pause()}static jQueryInterface(t){return this.each(function(){le.carouselInterface(this,t)})}static dataApiClickHandler(t){const e=Pe(this);if(!e||!e.hasAttribute(vh))return;const s={..._.getDataAttributes(e),..._.getDataAttributes(this)},n=this.getAttribute("data-te-slide-to");n&&(s.interval=!1),le.carouselInterface(e,s),n&&le.getInstance(e).to(n),t.preventDefault()}}const ga="modal",Jt=".te.modal",xh="Escape",Th={backdrop:!0,keyboard:!0,focus:!0},_b={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean"},gb={show:"transform-none",static:"scale-[1.02]",staticProperties:"transition-scale duration-300 ease-in-out"},mb={show:"string",static:"string",staticProperties:"string"},bb=`hide${Jt}`,vb=`hidePrevented${Jt}`,yb=`hidden${Jt}`,xb=`show${Jt}`,Tb=`shown${Jt}`,Eh=`resize${Jt}`,Ch=`click.dismiss${Jt}`,Ah=`keydown.dismiss${Jt}`,Eb=`mouseup.dismiss${Jt}`,wh=`mousedown.dismiss${Jt}`,kh="data-te-modal-open",Sh="data-te-open",Rs="[data-te-modal-dialog-ref]",Cb="[data-te-modal-body-ref]";class eo extends qt{constructor(t,e,s){super(t),this._config=this._getConfig(e),this._classes=this._getClasses(s),this._dialog=m.findOne(Rs,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollBar=new Ds}static get Default(){return Th}static get NAME(){return ga}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||this._isTransitioning||g.trigger(this._element,xb,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isAnimated()&&(this._isTransitioning=!0),this._scrollBar.hide(),document.body.setAttribute(kh,"true"),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),g.on(this._dialog,wh,()=>{g.one(this._element,Eb,s=>{s.target===this._element&&(this._ignoreBackdropClick=!0)})}),this._showElement(t),this._showBackdrop())}hide(){if(!this._isShown||this._isTransitioning||g.trigger(this._element,bb).defaultPrevented)return;this._isShown=!1;const e=this._isAnimated();e&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),this._focustrap.disable(),m.findOne(Rs,this._element).classList.remove(this._classes.show),g.off(this._element,Ch),g.off(this._dialog,wh),this._queueCallback(()=>this._hideModal(),this._element,e),this._element.removeAttribute(Sh)}dispose(){[window,this._dialog].forEach(t=>g.off(t,Jt)),this._backdrop.dispose(),this._focustrap.disable(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new ha({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Is(this._element,{event:"keydown",condition:t=>t.key==="Tab"})}_getConfig(t){return t={...Th,..._.getDataAttributes(this._element),...typeof t=="object"?t:{}},P(ga,t,_b),t}_getClasses(t){const e=_.getDataClassAttributes(this._element);return t={...gb,...e,...t},P(ga,t,mb),t}_showElement(t){const e=this._isAnimated(),s=m.findOne(Cb,this._dialog);(!this._element.parentNode||this._element.parentNode.nodeType!==Node.ELEMENT_NODE)&&document.body.append(this._element),this._element.style.display="block",this._element.classList.remove("hidden"),this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.setAttribute(`${Sh}`,"true"),this._element.scrollTop=0;const n=m.findOne(Rs,this._element);n.classList.add(this._classes.show),n.classList.remove("opacity-0"),n.classList.add("opacity-100"),s&&(s.scrollTop=0),e&&Bi(this._element);const o=()=>{this._config.focus&&this._focustrap.trap(),this._isTransitioning=!1,g.trigger(this._element,Tb,{relatedTarget:t})};this._queueCallback(o,this._dialog,e)}_setEscapeEvent(){this._isShown?g.on(document,Ah,t=>{this._config.keyboard&&t.key===xh?(t.preventDefault(),this.hide()):!this._config.keyboard&&t.key===xh&&this._triggerBackdropTransition()}):g.off(this._element,Ah)}_setResizeEvent(){this._isShown?g.on(window,Eh,()=>this._adjustDialog()):g.off(window,Eh)}_hideModal(){const t=m.findOne(Rs,this._element);t.classList.remove(this._classes.show),t.classList.remove("opacity-100"),t.classList.add("opacity-0"),setTimeout(()=>{this._element.style.display="none"},300),this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.removeAttribute(kh),this._resetAdjustments(),this._scrollBar.reset(),g.trigger(this._element,yb)})}_showBackdrop(t){g.on(this._element,Ch,e=>{if(this._ignoreBackdropClick){this._ignoreBackdropClick=!1;return}e.target===e.currentTarget&&(this._config.backdrop===!0?this.hide():this._config.backdrop==="static"&&this._triggerBackdropTransition())}),this._backdrop.show(t)}_isAnimated(){return!!m.findOne(Rs,this._element)}_triggerBackdropTransition(){if(g.trigger(this._element,vb).defaultPrevented)return;const{classList:e,scrollHeight:s,style:n}=this._element,o=s>document.documentElement.clientHeight;!o&&n.overflowY==="hidden"||e.contains(this._classes.static)||(o||(n.overflowY="hidden"),e.add(...this._classes.static.split(" ")),e.add(...this._classes.staticProperties.split(" ")),this._queueCallback(()=>{e.remove(this._classes.static),setTimeout(()=>{e.remove(...this._classes.staticProperties.split(" "))},300),o||this._queueCallback(()=>{n.overflowY=""},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._scrollBar.getWidth(),s=e>0;(!s&&t&&!st()||s&&!t&&st())&&(this._element.style.paddingLeft=`${e}px`),(s&&!t&&!st()||!s&&t&&st())&&(this._element.style.paddingRight=`${e}px`)}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,e){return this.each(function(){const s=eo.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof s[t]>"u")throw new TypeError(`No method named "${t}"`);s[t](e)}})}}const Ab=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),wb=/^aria-[\w-]*$/i,kb=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i,Sb=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i,Ob=(i,t)=>{const e=i.nodeName.toLowerCase();if(t.includes(e))return Ab.has(e)?!!(kb.test(i.nodeValue)||Sb.test(i.nodeValue)):!0;const s=t.filter(n=>n instanceof RegExp);for(let n=0,o=s.length;n{Ob(u,d)||l.removeAttribute(u.nodeName)})}return n.body.innerHTML}const Dh="tooltip",ce=".te.tooltip",Ib="te-tooltip",Mb=new Set(["sanitize","allowList","sanitizeFn"]),Lb={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(array|string|function)",container:"(string|element|boolean)",fallbackPlacements:"array",boundary:"(string|element)",customClass:"(string|function)",sanitize:"boolean",sanitizeFn:"(null|function)",allowList:"object",popperConfig:"(null|object|function)"},$b={AUTO:"auto",TOP:"top",RIGHT:st()?"left":"right",BOTTOM:"bottom",LEFT:st()?"right":"left"},Rb={animation:!0,template:'',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:[0,0],container:!1,fallbackPlacements:["top","right","bottom","left"],boundary:"clippingParents",customClass:"",sanitize:!0,sanitizeFn:null,allowList:Db,popperConfig:{hide:!0}},Pb={HIDE:`hide${ce}`,HIDDEN:`hidden${ce}`,SHOW:`show${ce}`,SHOWN:`shown${ce}`,INSERTED:`inserted${ce}`,CLICK:`click${ce}`,FOCUSIN:`focusin${ce}`,FOCUSOUT:`focusout${ce}`,MOUSEENTER:`mouseenter${ce}`,MOUSELEAVE:`mouseleave${ce}`},Nb="fade",Bb="modal",ma="show",Ps="show",ba="out",Ih=".tooltip-inner",Mh=`.${Bb}`,Lh="hide.te.modal",Ns="hover",va="focus",Hb="click",Fb="manual";let Gi=class I_ extends qt{constructor(t,e){if(typeof Jc>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(t),this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this._config=this._getConfig(e),this.tip=null,this._setListeners()}static get Default(){return Rb}static get NAME(){return Dh}static get Event(){return Pb}static get DefaultType(){return Lb}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(t){if(this._isEnabled)if(t){const e=this._initializeOnDelegatedTarget(t);e._activeTrigger.click=!e._activeTrigger.click,e._isWithActiveTrigger()?e._enter(null,e):e._leave(null,e)}else{if(this.getTipElement().classList.contains(ma)){this._leave(null,this);return}this._enter(null,this)}}dispose(){clearTimeout(this._timeout),g.off(this._element.closest(Mh),Lh,this._hideModalHandler),this.tip&&this.tip.remove(),this._disposePopper(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!(this.isWithContent()&&this._isEnabled))return;const t=g.trigger(this._element,this.constructor.Event.SHOW),e=ac(this._element),s=e===null?this._element.ownerDocument.documentElement.contains(this._element):e.contains(this._element);if(t.defaultPrevented||!s)return;this.constructor.NAME==="tooltip"&&this.tip&&this.getTitle()!==this.tip.querySelector(Ih).innerHTML&&(this._disposePopper(),this.tip.remove(),this.tip=null);const n=this.getTipElement(),o=Gt(this.constructor.NAME);n.setAttribute("id",o),this._element.setAttribute("aria-describedby",o),this._config.animation&&setTimeout(()=>{this.tip.classList.add("opacity-100"),this.tip.classList.remove("opacity-0")},100);const r=typeof this._config.placement=="function"?this._config.placement.call(this,n,this._element):this._config.placement,a=this._getAttachment(r);this._addAttachmentClass(a);const{container:l}=this._config;if(M.setData(n,this.constructor.DATA_KEY,this),this._element.ownerDocument.documentElement.contains(this.tip)||(l.append(n),g.trigger(this._element,this.constructor.Event.INSERTED)),this._popper?this._popper.update():this._popper=pi(this._element,n,this._getPopperConfig(a)),n.getAttribute("id").includes("tooltip"))switch(r){case"bottom":n.classList.add("py-[0.4rem]");break;case"left":n.classList.add("px-[0.4rem]");break;case"right":n.classList.add("px-[0.4rem]");break;default:n.classList.add("py-[0.4rem]");break}const h=this._resolvePossibleFunction(this._config.customClass);h&&n.classList.add(...h.split(" ")),"ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach(p=>{g.on(p,"mouseover",Fn)});const d=()=>{const p=this._hoverState;this._hoverState=null,g.trigger(this._element,this.constructor.Event.SHOWN),p===ba&&this._leave(null,this)},u=this.tip.classList.contains("transition-opacity");this._queueCallback(d,this.tip,u)}hide(){if(!this._popper)return;const t=this.getTipElement(),e=()=>{this._isWithActiveTrigger()||(this._hoverState!==Ps&&t.remove(),this._cleanTipClass(),this._element.removeAttribute("aria-describedby"),g.trigger(this._element,this.constructor.Event.HIDDEN),this._disposePopper())};if(g.trigger(this._element,this.constructor.Event.HIDE).defaultPrevented)return;t.classList.add("opacity-0"),t.classList.remove("opacity-100"),"ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach(o=>g.off(o,"mouseover",Fn)),this._activeTrigger[Hb]=!1,this._activeTrigger[va]=!1,this._activeTrigger[Ns]=!1;const n=this.tip.classList.contains("opacity-0");this._queueCallback(e,this.tip,n),this._hoverState=""}update(){this._popper!==null&&this._popper.update()}isWithContent(){return!!this.getTitle()}getTipElement(){if(this.tip)return this.tip;const t=document.createElement("div");t.innerHTML=this._config.template;const e=t.children[0];return this.setContent(e),e.classList.remove(Nb,ma),this.tip=e,this.tip}setContent(t){this._sanitizeAndSetContent(t,this.getTitle(),Ih)}_sanitizeAndSetContent(t,e,s){const n=m.findOne(s,t);if(!e&&n){n.remove();return}this.setElementContent(n,e)}setElementContent(t,e){if(t!==null){if(Ni(e)){e=Ne(e),this._config.html?e.parentNode!==t&&(t.innerHTML="",t.append(e)):t.textContent=e.textContent;return}this._config.html?(this._config.sanitize&&(e=Oh(e,this._config.allowList,this._config.sanitizeFn)),t.innerHTML=e):t.textContent=e}}getTitle(){const t=this._element.getAttribute("data-te-original-title")||this._config.title;return this._resolvePossibleFunction(t)}updateAttachment(t){return t==="right"?"end":t==="left"?"start":t}_initializeOnDelegatedTarget(t,e){return e||this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig())}_getOffset(){const{offset:t}=this._config;return typeof t=="string"?t.split(",").map(e=>Number.parseInt(e,10)):typeof t=="function"?e=>t(e,this._element):t}_resolvePossibleFunction(t){return typeof t=="function"?t.call(this._element):t}_getPopperConfig(t){const e={placement:t,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"onChange",enabled:!0,phase:"afterWrite",fn:s=>this._handlePopperPlacementChange(s)}],onFirstUpdate:s=>{s.options.placement!==s.placement&&this._handlePopperPlacementChange(s)}};return{...e,...typeof this._config.popperConfig=="function"?this._config.popperConfig(e):this._config.popperConfig}}_addAttachmentClass(t){this.getTipElement().classList.add(`${this._getBasicClassPrefix()}-${this.updateAttachment(t)}`)}_getAttachment(t){return $b[t.toUpperCase()]}_setListeners(){this._config.trigger.split(" ").forEach(e=>{if(e==="click")g.on(this._element,this.constructor.Event.CLICK,this._config.selector,s=>this.toggle(s));else if(e!==Fb){const s=e===Ns?this.constructor.Event.MOUSEENTER:this.constructor.Event.FOCUSIN,n=e===Ns?this.constructor.Event.MOUSELEAVE:this.constructor.Event.FOCUSOUT;g.on(this._element,s,this._config.selector,o=>this._enter(o)),g.on(this._element,n,this._config.selector,o=>this._leave(o))}}),this._hideModalHandler=()=>{this._element&&this.hide()},g.on(this._element.closest(Mh),Lh,this._hideModalHandler),this._config.selector?this._config={...this._config,trigger:"manual",selector:""}:this._fixTitle()}_fixTitle(){const t=this._element.getAttribute("title"),e=typeof this._element.getAttribute("data-te-original-title");(t||e!=="string")&&(this._element.setAttribute("data-te-original-title",t||""),t&&!this._element.getAttribute("aria-label")&&!this._element.textContent&&this._element.setAttribute("aria-label",t),this._element.setAttribute("title",""))}_enter(t,e){if(e=this._initializeOnDelegatedTarget(t,e),t&&(e._activeTrigger[t.type==="focusin"?va:Ns]=!0),e.getTipElement().classList.contains(ma)||e._hoverState===Ps){e._hoverState=Ps;return}if(clearTimeout(e._timeout),e._hoverState=Ps,!e._config.delay||!e._config.delay.show){e.show();return}e._timeout=setTimeout(()=>{e._hoverState===Ps&&e.show()},e._config.delay.show)}_leave(t,e){if(e=this._initializeOnDelegatedTarget(t,e),t&&(e._activeTrigger[t.type==="focusout"?va:Ns]=e._element.contains(t.relatedTarget)),!e._isWithActiveTrigger()){if(clearTimeout(e._timeout),e._hoverState=ba,!e._config.delay||!e._config.delay.hide){e.hide();return}e._timeout=setTimeout(()=>{e._hoverState===ba&&e.hide()},e._config.delay.hide)}}_isWithActiveTrigger(){for(const t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1}_getConfig(t){const e=_.getDataAttributes(this._element);return Object.keys(e).forEach(s=>{Mb.has(s)&&delete e[s]}),t={...this.constructor.Default,...e,...typeof t=="object"&&t?t:{}},t.container=t.container===!1?document.body:Ne(t.container),typeof t.delay=="number"&&(t.delay={show:t.delay,hide:t.delay}),typeof t.title=="number"&&(t.title=t.title.toString()),typeof t.content=="number"&&(t.content=t.content.toString()),P(Dh,t,this.constructor.DefaultType),t.sanitize&&(t.template=Oh(t.template,t.allowList,t.sanitizeFn)),t}_getDelegateConfig(){const t={};for(const e in this._config)this.constructor.Default[e]!==this._config[e]&&(t[e]=this._config[e]);return t}_cleanTipClass(){const t=this.getTipElement(),e=new RegExp(`(^|\\s)${this._getBasicClassPrefix()}\\S+`,"g"),s=t.getAttribute("class").match(e);s!==null&&s.length>0&&s.map(n=>n.trim()).forEach(n=>t.classList.remove(n))}_getBasicClassPrefix(){return Ib}_handlePopperPlacementChange(t){const{state:e}=t;e&&(this.tip=e.elements.popper,this._cleanTipClass(),this._addAttachmentClass(this._getAttachment(e.placement)))}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null)}static jQueryInterface(t){return this.each(function(){const e=I_.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]>"u")throw new TypeError(`No method named "${t}"`);e[t]()}})}};const Wb="popover",he=".te.popover",Vb="te-popover",zb={...Gi.Default,placement:"right",offset:[0,8],trigger:"click",content:"",template:''},Yb={...Gi.DefaultType,content:"(string|element|function)"},jb={HIDE:`hide${he}`,HIDDEN:`hidden${he}`,SHOW:`show${he}`,SHOWN:`shown${he}`,INSERTED:`inserted${he}`,CLICK:`click${he}`,FOCUSIN:`focusin${he}`,FOCUSOUT:`focusout${he}`,MOUSEENTER:`mouseenter${he}`,MOUSELEAVE:`mouseleave${he}`},Kb=".popover-header",Ub=".popover-body";class io extends Gi{static get Default(){return zb}static get NAME(){return Wb}static get Event(){return jb}static get DefaultType(){return Yb}isWithContent(){return this.getTitle()||this._getContent()}setContent(t){this._sanitizeAndSetContent(t,this.getTitle(),Kb),this._sanitizeAndSetContent(t,this._getContent(),Ub)}_getContent(){return this._resolvePossibleFunction(this._config.content)}_getBasicClassPrefix(){return Vb}static jQueryInterface(t){return this.each(function(){const e=io.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]>"u")throw new TypeError(`No method named "${t}"`);e[t]()}})}}const ya="scrollspy",xa=".te.scrollspy",$h={offset:10,method:"auto",target:""},Xb={offset:"number",method:"string",target:"(string|element)"},Gb={active:"!text-primary dark:!text-primary-400 font-semibold border-l-[0.125rem] border-solid border-primary dark:border-primary-400"},qb={active:"string"},Zb=`activate${xa}`,Qb=`scroll${xa}`,Ta="data-te-nav-link-active",Rh="[data-te-dropdown-item-ref]",Jb="[data-te-nav-list-ref]",Ea="[data-te-nav-link-ref]",tv="[data-te-nav-item-ref]",Ph="[data-te-list-group-item-ref]",Ca=`${Ea}, ${Ph}, ${Rh}`,ev="[data-te-dropdown-ref]",iv="[data-te-dropdown-toggle-ref]",sv="maxOffset",Nh="position";class so extends qt{constructor(t,e,s){super(t),this._scrollElement=this._element.tagName==="BODY"?window:this._element,this._config=this._getConfig(e),this._classes=this._getClasses(s),this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,g.on(this._scrollElement,Qb,()=>this._process()),this.refresh(),this._process()}static get Default(){return $h}static get NAME(){return ya}refresh(){const t=this._scrollElement===this._scrollElement.window?sv:Nh,e=this._config.method==="auto"?t:this._config.method,s=e===Nh?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),m.find(Ca,this._config.target).map(o=>{const r=Pr(o),a=r?m.findOne(r):null;if(a){const l=a.getBoundingClientRect();if(l.width||l.height)return[_[e](a).top+s,r]}return null}).filter(o=>o).sort((o,r)=>o[0]-r[0]).forEach(o=>{this._offsets.push(o[0]),this._targets.push(o[1])})}dispose(){g.off(this._scrollElement,xa),super.dispose()}_getConfig(t){return t={...$h,..._.getDataAttributes(this._element),...typeof t=="object"&&t?t:{}},t.target=Ne(t.target)||document.documentElement,P(ya,t,Xb),t}_getClasses(t){const e=_.getDataClassAttributes(this._element);return t={...Gb,...e,...t},P(ya,t,qb),t}_getScrollTop(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop}_getScrollHeight(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}_getOffsetHeight(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height}_process(){const t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),s=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),t>=s){const n=this._targets[this._targets.length-1];this._activeTarget!==n&&this._activate(n);return}if(this._activeTarget&&t0){this._activeTarget=null,this._clear();return}for(let n=this._offsets.length;n--;)this._activeTarget!==this._targets[n]&&t>=this._offsets[n]&&(typeof this._offsets[n+1]>"u"||t`${n}[data-te-target="${t}"],${n}[href="${t}"]`),s=m.findOne(e.join(","),this._config.target);s.classList.add(...this._classes.active.split(" ")),s.setAttribute(Ta,""),s.getAttribute(Rh)?m.findOne(iv,s.closest(ev)).classList.add(...this._classes.active.split(" ")):m.parents(s,Jb).forEach(n=>{m.prev(n,`${Ea}, ${Ph}`).forEach(o=>{o.classList.add(...this._classes.active.split(" ")),o.setAttribute(Ta,"")}),m.prev(n,tv).forEach(o=>{m.children(o,Ea).forEach(r=>r.classList.add(...this._classes.active.split(" ")))})}),g.trigger(this._scrollElement,Zb,{relatedTarget:t})}_clear(){m.find(Ca,this._config.target).filter(t=>t.classList.contains(...this._classes.active.split(" "))).forEach(t=>{t.classList.remove(...this._classes.active.split(" ")),t.removeAttribute(Ta)})}static jQueryInterface(t){return this.each(function(){const e=so.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]>"u")throw new TypeError(`No method named "${t}"`);e[t]()}})}}const Bh="tab",no=".te.tab",nv=`hide${no}`,ov=`hidden${no}`,rv=`show${no}`,av=`shown${no}`,lv="data-te-dropdown-menu-ref",qi="data-te-tab-active",oo="data-te-nav-active",cv="[data-te-dropdown-ref]",hv="[data-te-nav-ref]",Hh=`[${qi}]`,dv=`[${oo}]`,Fh=":scope > li > .active",uv="[data-te-dropdown-toggle-ref]",pv=":scope > [data-te-dropdown-menu-ref] [data-te-dropdown-show]",fv={show:"opacity-100",hide:"opacity-0"},_v={show:"string",hide:"string"};class ro extends qt{constructor(t,e){super(t),this._classes=this._getClasses(e)}static get NAME(){return Bh}show(){if(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&this._element.getAttribute(oo)==="")return;let t;const e=Pe(this._element),s=this._element.closest(hv),n=m.findOne(dv,s);if(s){const l=s.nodeName==="UL"||s.nodeName==="OL"?Fh:Hh;t=m.find(l,s),t=t[t.length-1]}const o=t?g.trigger(t,nv,{relatedTarget:this._element}):null;if(g.trigger(this._element,rv,{relatedTarget:t}).defaultPrevented||o!==null&&o.defaultPrevented)return;this._activate(this._element,s,null,n,this._element);const a=()=>{g.trigger(t,ov,{relatedTarget:this._element}),g.trigger(this._element,av,{relatedTarget:t})};e?this._activate(e,e.parentNode,a,n,this._element):a()}_getClasses(t){const e=_.getDataClassAttributes(this._element);return t={...fv,...e,...t},P(Bh,t,_v),t}_activate(t,e,s,n,o){const a=(e&&(e.nodeName==="UL"||e.nodeName==="OL")?m.find(Fh,e):m.children(e,Hh))[0],l=s&&a&&a.hasAttribute(qi),c=()=>this._transitionComplete(t,a,s,n,o);a&&l?(_.removeClass(a,this._classes.show),_.addClass(a,this._classes.hide),this._queueCallback(c,t,!0)):c()}_transitionComplete(t,e,s,n,o){if(e&&n){e.removeAttribute(qi),n.removeAttribute(oo);const a=m.findOne(pv,e.parentNode);a&&a.removeAttribute(qi),e.getAttribute("role")==="tab"&&e.setAttribute("aria-selected",!1)}t.setAttribute(qi,""),o.setAttribute(oo,""),t.getAttribute("role")==="tab"&&t.setAttribute("aria-selected",!0),Bi(t),t.classList.contains(this._classes.hide)&&(_.removeClass(t,this._classes.hide),_.addClass(t,this._classes.show));let r=t.parentNode;if(r&&r.nodeName==="LI"&&(r=r.parentNode),r&&r.hasAttribute(lv)){const a=t.closest(cv);a&&m.find(uv,a).forEach(l=>l.setAttribute(qi,"")),t.setAttribute("aria-expanded",!0)}s&&s()}static jQueryInterface(t){return this.each(function(){const e=ro.getOrCreateInstance(this);if(typeof t=="string"){if(typeof e[t]>"u")throw new TypeError(`No method named "${t}"`);e[t]()}})}}const Aa="toast",We=".te.toast",gv=`mouseover${We}`,mv=`mouseout${We}`,bv=`focusin${We}`,vv=`focusout${We}`,yv=`hide${We}`,xv=`hidden${We}`,Tv=`show${We}`,Ev=`shown${We}`,Wh="data-te-toast-hide",wa="data-te-toast-show",ao="data-te-toast-showing",Cv={animation:"boolean",autohide:"boolean",delay:"number"},Vh={animation:!0,autohide:!0,delay:5e3},Av={fadeIn:"animate-[fade-in_0.3s_both] p-[auto] motion-reduce:transition-none motion-reduce:animate-none",fadeOut:"animate-[fade-out_0.3s_both] p-[auto] motion-reduce:transition-none motion-reduce:animate-none"},wv={fadeIn:"string",fadeOut:"string"};class lo extends qt{constructor(t,e,s){super(t),this._config=this._getConfig(e),this._classes=this._getClasses(s),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get DefaultType(){return Cv}static get Default(){return Vh}static get NAME(){return Aa}show(){if(g.trigger(this._element,Tv).defaultPrevented)return;this._clearTimeout(),this._config.animation&&(_.removeClass(this._element,this._classes.fadeOut),_.addClass(this._element,this._classes.fadeIn));const e=()=>{this._element.removeAttribute(ao),g.trigger(this._element,Ev),this._maybeScheduleHide()};this._element.removeAttribute(Wh),Bi(this._element),this._element.setAttribute(wa,""),this._element.setAttribute(ao,""),this._queueCallback(e,this._element,this._config.animation)}hide(){if(!this._element||this._element.dataset.teToastShow===void 0||g.trigger(this._element,yv).defaultPrevented)return;const e=()=>{let s=0;this._config.animation&&(s=300,_.removeClass(this._element,this._classes.fadeIn),_.addClass(this._element,this._classes.fadeOut)),setTimeout(()=>{this._element.setAttribute(Wh,""),this._element.removeAttribute(ao),this._element.removeAttribute(wa),g.trigger(this._element,xv)},s)};this._element.setAttribute(ao,""),this._queueCallback(e,this._element,this._config.animation)}dispose(){this._clearTimeout(),this._element.dataset.teToastShow!==void 0&&this._element.removeAttribute(wa),super.dispose()}_getConfig(t){return t={...Vh,..._.getDataAttributes(this._element),...typeof t=="object"&&t?t:{}},P(Aa,t,this.constructor.DefaultType),t}_getClasses(t){const e=_.getDataClassAttributes(this._element);return t={...Av,...e,...t},P(Aa,t,wv),t}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(t,e){switch(t.type){case"mouseover":case"mouseout":this._hasMouseInteraction=e;break;case"focusin":case"focusout":this._hasKeyboardInteraction=e;break}if(e){this._clearTimeout();return}const s=t.relatedTarget;this._element===s||this._element.contains(s)||this._maybeScheduleHide()}_setListeners(){g.on(this._element,gv,t=>this._onInteraction(t,!0)),g.on(this._element,mv,t=>this._onInteraction(t,!1)),g.on(this._element,bv,t=>this._onInteraction(t,!0)),g.on(this._element,vv,t=>this._onInteraction(t,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each(function(){const e=lo.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]>"u")throw new TypeError(`No method named "${t}"`);e[t](this)}})}}(()=>{var i={454:(s,n,o)=>{o.d(n,{Z:()=>l});var r=o(645),a=o.n(r)()(function(c){return c[1]});a.push([s.id,"INPUT:-webkit-autofill,SELECT:-webkit-autofill,TEXTAREA:-webkit-autofill{animation-name:onautofillstart}INPUT:not(:-webkit-autofill),SELECT:not(:-webkit-autofill),TEXTAREA:not(:-webkit-autofill){animation-name:onautofillcancel}@keyframes onautofillstart{}@keyframes onautofillcancel{}",""]);const l=a},645:s=>{s.exports=function(n){var o=[];return o.toString=function(){return this.map(function(r){var a=n(r);return r[2]?"@media ".concat(r[2]," {").concat(a,"}"):a}).join("")},o.i=function(r,a,l){typeof r=="string"&&(r=[[null,r,""]]);var c={};if(l)for(var h=0;h{(function(){if(typeof window<"u")try{var s=new window.CustomEvent("test",{cancelable:!0});if(s.preventDefault(),s.defaultPrevented!==!0)throw new Error("Could not prevent default")}catch{var n=function(r,a){var l,c;return(a=a||{}).bubbles=!!a.bubbles,a.cancelable=!!a.cancelable,(l=document.createEvent("CustomEvent")).initCustomEvent(r,a.bubbles,a.cancelable,a.detail),c=l.preventDefault,l.preventDefault=function(){c.call(this);try{Object.defineProperty(this,"defaultPrevented",{get:function(){return!0}})}catch{this.defaultPrevented=!0}},l};n.prototype=window.Event.prototype,window.CustomEvent=n}})()},379:(s,n,o)=>{var r,a=function(){var E={};return function(T){if(E[T]===void 0){var C=document.querySelector(T);if(window.HTMLIFrameElement&&C instanceof window.HTMLIFrameElement)try{C=C.contentDocument.head}catch{C=null}E[T]=C}return E[T]}}(),l=[];function c(E){for(var T=-1,C=0;C{var n=s&&s.__esModule?()=>s.default:()=>s;return e.d(n,{a:n}),n},e.d=(s,n)=>{for(var o in n)e.o(n,o)&&!e.o(s,o)&&Object.defineProperty(s,o,{enumerable:!0,get:n[o]})},e.o=(s,n)=>Object.prototype.hasOwnProperty.call(s,n),(()=>{var s=e(379),n=e.n(s),o=e(454);function r(l){if(!l.hasAttribute("autocompleted")){l.setAttribute("autocompleted","");var c=new window.CustomEvent("onautocomplete",{bubbles:!0,cancelable:!0,detail:null});l.dispatchEvent(c)||(l.value="")}}function a(l){l.hasAttribute("autocompleted")&&(l.removeAttribute("autocompleted"),l.dispatchEvent(new window.CustomEvent("onautocomplete",{bubbles:!0,cancelable:!1,detail:null})))}n()(o.Z,{insert:"head",singleton:!1}),o.Z.locals,e(810),document.addEventListener("animationstart",function(l){l.animationName==="onautofillstart"?r(l.target):a(l.target)},!0),document.addEventListener("input",function(l){l.inputType!=="insertReplacementText"&&"data"in l?a(l.target):r(l.target)},!0)})()})();const ka="input",co="te.input",zh="data-te-input-wrapper-init",Yh="data-te-input-notch-ref",jh="data-te-input-notch-leading-ref",Kh="data-te-input-notch-middle-ref",kv="data-te-input-notch-trailing-ref",Sv="data-te-input-helper-ref",Ov="data-te-input-placeholder-active",Ve="data-te-input-state-active",Uh="data-te-input-focused",Xh="data-te-input-form-counter",vi=`[${zh}] input`,yi=`[${zh}] textarea`,Zi=`[${Yh}]`,Gh=`[${jh}]`,qh=`[${Kh}]`,Dv=`[${Sv}]`,Iv={inputFormWhite:!1},Mv={inputFormWhite:"(boolean)"},Lv={notch:"group flex absolute left-0 top-0 w-full max-w-full h-full text-left pointer-events-none",notchLeading:"pointer-events-none border border-solid box-border bg-transparent transition-all duration-200 ease-linear motion-reduce:transition-none left-0 top-0 h-full w-2 border-r-0 rounded-l-[0.25rem] group-data-[te-input-focused]:border-r-0 group-data-[te-input-state-active]:border-r-0",notchLeadingNormal:"border-neutral-300 dark:border-neutral-600 group-data-[te-input-focused]:shadow-[-1px_0_0_#3b71ca,_0_1px_0_0_#3b71ca,_0_-1px_0_0_#3b71ca] group-data-[te-input-focused]:border-primary",notchLeadingWhite:"border-neutral-200 group-data-[te-input-focused]:shadow-[-1px_0_0_#ffffff,_0_1px_0_0_#ffffff,_0_-1px_0_0_#ffffff] group-data-[te-input-focused]:border-white",notchMiddle:"pointer-events-none border border-solid box-border bg-transparent transition-all duration-200 ease-linear motion-reduce:transition-none grow-0 shrink-0 basis-auto w-auto max-w-[calc(100%-1rem)] h-full border-r-0 border-l-0 group-data-[te-input-focused]:border-x-0 group-data-[te-input-state-active]:border-x-0 group-data-[te-input-focused]:border-t group-data-[te-input-state-active]:border-t group-data-[te-input-focused]:border-solid group-data-[te-input-state-active]:border-solid group-data-[te-input-focused]:border-t-transparent group-data-[te-input-state-active]:border-t-transparent",notchMiddleNormal:"border-neutral-300 dark:border-neutral-600 group-data-[te-input-focused]:shadow-[0_1px_0_0_#3b71ca] group-data-[te-input-focused]:border-primary",notchMiddleWhite:"border-neutral-200 group-data-[te-input-focused]:shadow-[0_1px_0_0_#ffffff] group-data-[te-input-focused]:border-white",notchTrailing:"pointer-events-none border border-solid box-border bg-transparent transition-all duration-200 ease-linear motion-reduce:transition-none grow h-full border-l-0 rounded-r-[0.25rem] group-data-[te-input-focused]:border-l-0 group-data-[te-input-state-active]:border-l-0",notchTrailingNormal:"border-neutral-300 dark:border-neutral-600 group-data-[te-input-focused]:shadow-[1px_0_0_#3b71ca,_0_-1px_0_0_#3b71ca,_0_1px_0_0_#3b71ca] group-data-[te-input-focused]:border-primary",notchTrailingWhite:"border-neutral-200 group-data-[te-input-focused]:shadow-[1px_0_0_#ffffff,_0_-1px_0_0_#ffffff,_0_1px_0_0_#ffffff] group-data-[te-input-focused]:border-white",counter:"text-right leading-[1.6]"},$v={notch:"string",notchLeading:"string",notchLeadingNormal:"string",notchLeadingWhite:"string",notchMiddle:"string",notchMiddleNormal:"string",notchMiddleWhite:"string",notchTrailing:"string",notchTrailingNormal:"string",notchTrailingWhite:"string",counter:"string"};class Z{constructor(t,e,s){this._config=this._getConfig(e,t),this._element=t,this._classes=this._getClasses(s),this._label=null,this._labelWidth=0,this._labelMarginLeft=0,this._notchLeading=null,this._notchMiddle=null,this._notchTrailing=null,this._initiated=!1,this._helper=null,this._counter=!1,this._counterElement=null,this._maxLength=0,this._leadingIcon=null,this._element&&(M.setData(t,co,this),this.init())}static get NAME(){return ka}get input(){return m.findOne("input",this._element)||m.findOne("textarea",this._element)}init(){this._initiated||(this._getLabelData(),this._applyDivs(),this._applyNotch(),this._activate(),this._getHelper(),this._getCounter(),this._getEvents(),this._initiated=!0)}update(){this._getLabelData(),this._getNotchData(),this._applyNotch(),this._activate(),this._getHelper(),this._getCounter()}forceActive(){this.input.setAttribute(Ve,""),m.findOne(Zi,this.input.parentNode).setAttribute(Ve,"")}forceInactive(){this.input.removeAttribute(Ve),m.findOne(Zi,this.input.parentNode).removeAttribute(Ve)}dispose(){this._removeBorder(),M.removeData(this._element,co),this._element=null}_getConfig(t,e){return t={...Iv,..._.getDataAttributes(e),...typeof t=="object"?t:{}},P(ka,t,Mv),t}_getClasses(t){const e=_.getDataClassAttributes(this._element);return t={...Lv,...e,...t},P(ka,t,$v),t}_getLabelData(){this._label=m.findOne("label",this._element),this._label===null?this._showPlaceholder():(this._getLabelWidth(),this._getLabelPositionInInputGroup(),this._toggleDefaultDatePlaceholder())}_getHelper(){this._helper=m.findOne(Dv,this._element)}_getCounter(){this._counter=_.getDataAttribute(this.input,"inputShowcounter"),this._counter&&(this._maxLength=this.input.maxLength,this._showCounter())}_getEvents(){g.on(document,"focus",vi,Z.activate(new Z)),g.on(document,"input",vi,Z.activate(new Z)),g.on(document,"blur",vi,Z.deactivate(new Z)),g.on(document,"focus",yi,Z.activate(new Z)),g.on(document,"input",yi,Z.activate(new Z)),g.on(document,"blur",yi,Z.deactivate(new Z)),g.on(window,"shown.te.modal",t=>{m.find(vi,t.target).forEach(e=>{const s=Z.getInstance(e.parentNode);s&&s.update()}),m.find(yi,t.target).forEach(e=>{const s=Z.getInstance(e.parentNode);s&&s.update()})}),g.on(window,"shown.te.dropdown",t=>{const e=t.target.parentNode.querySelector("[data-te-dropdown-menu-ref]");e&&(m.find(vi,e).forEach(s=>{const n=Z.getInstance(s.parentNode);n&&n.update()}),m.find(yi,e).forEach(s=>{const n=Z.getInstance(s.parentNode);n&&n.update()}))}),g.on(window,"shown.te.tab",t=>{let e;t.target.href?e=t.target.href.split("#")[1]:e=_.getDataAttribute(t.target,"target").split("#")[1];const s=m.findOne(`#${e}`);m.find(vi,s).forEach(n=>{const o=Z.getInstance(n.parentNode);o&&o.update()}),m.find(yi,s).forEach(n=>{const o=Z.getInstance(n.parentNode);o&&o.update()})}),g.on(window,"reset",t=>{m.find(vi,t.target).forEach(e=>{const s=Z.getInstance(e.parentNode);s&&s.forceInactive()}),m.find(yi,t.target).forEach(e=>{const s=Z.getInstance(e.parentNode);s&&s.forceInactive()})}),g.on(window,"onautocomplete",t=>{const e=Z.getInstance(t.target.parentNode);!e||!t.cancelable||e.forceActive()})}_showCounter(){if(m.find(`[${Xh}]`,this._element).length>0)return;this._counterElement=document.createElement("div"),_.addClass(this._counterElement,this._classes.counter),this._counterElement.setAttribute(Xh,"");const e=this.input.value.length;this._counterElement.innerHTML=`${e} / ${this._maxLength}`,this._helper.appendChild(this._counterElement),this._bindCounter()}_bindCounter(){g.on(this.input,"input",()=>{const t=this.input.value.length;this._counterElement.innerHTML=`${t} / ${this._maxLength}`})}_toggleDefaultDatePlaceholder(t=this.input){if(!(t.getAttribute("type")==="date"))return;!(document.activeElement===t)&&!t.value?t.style.opacity=0:t.style.opacity=1}_showPlaceholder(){this.input.setAttribute(Ov,"")}_getNotchData(){this._notchMiddle=m.findOne(qh,this._element),this._notchLeading=m.findOne(Gh,this._element)}_getLabelWidth(){this._labelWidth=this._label.clientWidth*.8+8}_getLabelPositionInInputGroup(){if(this._labelMarginLeft=0,!this._element.hasAttribute("data-te-input-group-ref"))return;const t=this.input,e=m.prev(t,"[data-te-input-group-text-ref]")[0];e===void 0?this._labelMarginLeft=0:this._labelMarginLeft=e.offsetWidth-1}_applyDivs(){const t=this._config.inputFormWhite?this._classes.notchLeadingWhite:this._classes.notchLeadingNormal,e=this._config.inputFormWhite?this._classes.notchMiddleWhite:this._classes.notchMiddleNormal,s=this._config.inputFormWhite?this._classes.notchTrailingWhite:this._classes.notchTrailingNormal,n=m.find(Zi,this._element),o=L("div");_.addClass(o,this._classes.notch),o.setAttribute(Yh,""),this._notchLeading=L("div"),_.addClass(this._notchLeading,`${this._classes.notchLeading} ${t}`),this._notchLeading.setAttribute(jh,""),this._notchMiddle=L("div"),_.addClass(this._notchMiddle,`${this._classes.notchMiddle} ${e}`),this._notchMiddle.setAttribute(Kh,""),this._notchTrailing=L("div"),_.addClass(this._notchTrailing,`${this._classes.notchTrailing} ${s}`),this._notchTrailing.setAttribute(kv,""),!(n.length>=1)&&(o.append(this._notchLeading),o.append(this._notchMiddle),o.append(this._notchTrailing),this._element.append(o))}_applyNotch(){this._notchMiddle.style.width=`${this._labelWidth}px`,this._notchLeading.style.width=`${this._labelMarginLeft+9}px`,this._label!==null&&(this._label.style.marginLeft=`${this._labelMarginLeft}px`)}_removeBorder(){const t=m.findOne(Zi,this._element);t&&t.remove()}_activate(t){cc(()=>{this._getElements(t);const e=t?t.target:this.input,s=m.findOne(Zi,this._element);t&&t.type==="focus"&&s.setAttribute(Uh,""),e.value!==""&&(e.setAttribute(Ve,""),s.setAttribute(Ve,"")),this._toggleDefaultDatePlaceholder(e)})}_getElements(t){if(t&&(this._element=t.target.parentNode,this._label=m.findOne("label",this._element)),t&&this._label){const e=this._labelWidth;this._getLabelData(),e!==this._labelWidth&&(this._notchMiddle=m.findOne(qh,t.target.parentNode),this._notchLeading=m.findOne(Gh,t.target.parentNode),this._applyNotch())}}_deactivate(t){const e=t?t.target:this.input,s=m.findOne(Zi,e.parentNode);s.removeAttribute(Uh),e.value===""&&(e.removeAttribute(Ve),s.removeAttribute(Ve)),this._toggleDefaultDatePlaceholder(e)}static activate(t){return function(e){t._activate(e)}}static deactivate(t){return function(e){t._deactivate(e)}}static jQueryInterface(t,e){return this.each(function(){let s=M.getData(this,co);const n=typeof t=="object"&&t;if(!(!s&&/dispose/.test(t))&&(s||(s=new Z(this,n)),typeof t=="string")){if(typeof s[t]>"u")throw new TypeError(`No method named "${t}"`);s[t](e)}})}static getInstance(t){return M.getData(t,co)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,typeof e=="object"?e:null)}}const Zh="animation",Sa="te.animation",Rv={animation:"string",animationStart:"string",animationShowOnLoad:"boolean",onStart:"(null|function)",onEnd:"(null|function)",onHide:"(null|function)",onShow:"(null|function)",animationOnScroll:"(string)",animationWindowHeight:"number",animationOffset:"(number|string)",animationDelay:"(number|string)",animationReverse:"boolean",animationInterval:"(number|string)",animationRepeat:"(number|boolean)",animationReset:"boolean"},Pv={animation:"fade",animationStart:"onClick",animationShowOnLoad:!0,onStart:null,onEnd:null,onHide:null,onShow:null,animationOnScroll:"once",animationWindowHeight:0,animationOffset:0,animationDelay:0,animationReverse:!1,animationInterval:0,animationRepeat:!1,animationReset:!1};class ho{constructor(t,e){this._element=t,this._animateElement=this._getAnimateElement(),this._isFirstScroll=!0,this._repeatAnimateOnScroll=!0,this._options=this._getConfig(e),this._element&&(M.setData(t,Sa,this),this._init())}static get NAME(){return Zh}init(){this._init()}startAnimation(){this._startAnimation()}stopAnimation(){this._clearAnimationClass()}changeAnimationType(t){this._options.animation=t}dispose(){g.off(this._element,"mousedown"),g.off(this._animateElement,"animationend"),g.off(window,"scroll"),g.off(this._element,"mouseover"),M.removeData(this._element,Sa),this._element=null,this._animateElement=null,this._isFirstScroll=null,this._repeatAnimateOnScroll=null,this._options=null}_init(){switch(this._options.animationStart){case"onHover":this._bindHoverEvents();break;case"onLoad":this._startAnimation();break;case"onScroll":this._bindScrollEvents();break;case"onClick":this._bindClickEvents();break}this._bindTriggerOnEndCallback(),this._options.animationReset&&this._bindResetAnimationAfterFinish()}_getAnimateElement(){const t=_.getDataAttribute(this._element,"animation-target");return t?m.find(t)[0]:this._element}_getConfig(t){const e=_.getDataAttributes(this._animateElement);return t={...Pv,...e,...t},P(Zh,t,Rv),t}_animateOnScroll(){const t=_.offset(this._animateElement).top,e=this._animateElement.offsetHeight,s=window.innerHeight,n=t+this._options.animationOffset<=s&&t+this._options.animationOffset+e>=0,o=this._animateElement.style.visibility==="visible";switch(!0){case(n&&this._isFirstScroll):this._isFirstScroll=!1,this._startAnimation();break;case(!n&&this._isFirstScroll):this._isFirstScroll=!1,this._hideAnimateElement();break;case(n&&!o&&this._repeatAnimateOnScroll):this._options.animationOnScroll!=="repeat"&&(this._repeatAnimateOnScroll=!1),this._callback(this._options.onShow),this._showAnimateElement(),this._startAnimation();break;case(!n&&o&&this._repeatAnimateOnScroll):this._hideAnimateElement(),this._clearAnimationClass(),this._callback(this._options.onHide);break}}_addAnimatedClass(){_.addClass(this._animateElement,`animate-${this._options.animation}`)}_clearAnimationClass(){this._animateElement.classList.remove(`animate-${this._options.animation}`)}_startAnimation(){this._callback(this._options.onStart),this._addAnimatedClass(),this._options.animationRepeat&&!this._options.animationInterval&&this._setAnimationRepeat(),this._options.animationReverse&&this._setAnimationReverse(),this._options.animationDelay&&this._setAnimationDelay(),this._options.animationDuration&&this._setAnimationDuration(),this._options.animationInterval&&this._setAnimationInterval()}_setAnimationReverse(){_.style(this._animateElement,{animationIterationCount:this._options.animationRepeat===!0?"infinite":"2",animationDirection:"alternate"})}_setAnimationDuration(){_.style(this._animateElement,{animationDuration:`${this._options.animationDuration}ms`})}_setAnimationDelay(){_.style(this._animateElement,{animationDelay:`${this._options.animationDelay}ms`})}_setAnimationRepeat(){_.style(this._animateElement,{animationIterationCount:this._options.animationRepeat===!0?"infinite":this._options.animationRepeat})}_setAnimationInterval(){g.on(this._animateElement,"click",()=>{this._clearAnimationClass(),setTimeout(()=>{this._addAnimatedClass()},this._options.animationInterval)})}_hideAnimateElement(){_.style(this._animateElement,{visibility:"hidden"})}_showAnimateElement(){_.style(this._animateElement,{visibility:"visible"})}_bindResetAnimationAfterFinish(){g.on(this._animateElement,"animationend",()=>{this._clearAnimationClass()})}_bindTriggerOnEndCallback(){g.on(this._animateElement,"animationend",()=>{this._callback(this._options.onEnd)})}_bindScrollEvents(){this._options.animationShowOnLoad||this._animateOnScroll(),g.on(window,"scroll",()=>{this._animateOnScroll()})}_bindClickEvents(){g.on(this._element,"mousedown",()=>{this._startAnimation()})}_bindHoverEvents(){g.one(this._element,"mouseover",()=>{this._startAnimation()}),g.one(this._animateElement,"animationend",()=>{setTimeout(()=>{this._bindHoverEvents()},100)})}_callback(t){t instanceof Function&&t()}static autoInit(t){t._init()}static jQueryInterface(t){new ho(this[0],t).init()}static getInstance(t){return M.getData(t,Sa)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,typeof e=="object"?e:null)}}const Oa="ripple",uo="te.ripple",Nv="rgba({{color}}, 0.2) 0, rgba({{color}}, 0.3) 40%, rgba({{color}}, 0.4) 50%, rgba({{color}}, 0.5) 60%, rgba({{color}}, 0) 70%",Bv=["[data-te-ripple-init]"],po=[0,0,0],Hv=[{name:"primary",gradientColor:"#3B71CA"},{name:"secondary",gradientColor:"#9FA6B2"},{name:"success",gradientColor:"#14A44D"},{name:"danger",gradientColor:"#DC4C64"},{name:"warning",gradientColor:"#E4A11B"},{name:"info",gradientColor:"#54B4D3"},{name:"light",gradientColor:"#fbfbfb"},{name:"dark",gradientColor:"#262626"}],Qh=.5,Fv={rippleCentered:!1,rippleColor:"",rippleColorDark:"",rippleDuration:"500ms",rippleRadius:0,rippleUnbound:!1},Wv={rippleCentered:"boolean",rippleColor:"string",rippleColorDark:"string",rippleDuration:"string",rippleRadius:"number",rippleUnbound:"boolean"},Vv={ripple:"relative overflow-hidden inline-block align-bottom",rippleWave:"rounded-[50%] opacity-50 pointer-events-none absolute touch-none scale-0 transition-[transform,_opacity] ease-[cubic-bezier(0,0,0.15,1),_cubic-bezier(0,0,0.15,1)] z-[999]",unbound:"overflow-visible"},zv={ripple:"string",rippleWave:"string",unbound:"string"};class ze{constructor(t,e,s){this._element=t,this._options=this._getConfig(e),this._classes=this._getClasses(s),this._element&&(M.setData(t,uo,this),_.addClass(this._element,this._classes.ripple)),this._clickHandler=this._createRipple.bind(this),this._rippleTimer=null,this._isMinWidthSet=!1,this._initialClasses=null,this.init()}static get NAME(){return Oa}init(){this._addClickEvent(this._element)}dispose(){M.removeData(this._element,uo),g.off(this._element,"click",this._clickHandler),this._element=null,this._options=null}_autoInit(t){Bv.forEach(e=>{m.closest(t.target,e)&&(this._element=m.closest(t.target,e))}),this._element.style.minWidth||(_.style(this._element,{"min-width":getComputedStyle(this._element).width}),this._isMinWidthSet=!0),this._options=this._getConfig(),this._classes=this._getClasses(),this._initialClasses=[...this._element.classList],_.addClass(this._element,this._classes.ripple),this._createRipple(t)}_addClickEvent(t){g.on(t,"mousedown",this._clickHandler)}_createRipple(t){this._element.className.indexOf(this._classes.ripple)<0&&_.addClass(this._element,this._classes.ripple);const{layerX:e,layerY:s}=t,n=t.offsetX||e,o=t.offsetY||s,r=this._element.offsetHeight,a=this._element.offsetWidth,l=this._durationToMsNumber(this._options.rippleDuration),c={offsetX:this._options.rippleCentered?r/2:n,offsetY:this._options.rippleCentered?a/2:o,height:r,width:a},h=this._getDiameter(c),d=this._options.rippleRadius||h/2,u={delay:l*Qh,duration:l-l*Qh},p={left:this._options.rippleCentered?`${a/2-d}px`:`${n-d}px`,top:this._options.rippleCentered?`${r/2-d}px`:`${o-d}px`,height:`${this._options.rippleRadius*2||h}px`,width:`${this._options.rippleRadius*2||h}px`,transitionDelay:`0s, ${u.delay}ms`,transitionDuration:`${l}ms, ${u.duration}ms`},f=L("div");this._createHTMLRipple({wrapper:this._element,ripple:f,styles:p}),this._removeHTMLRipple({ripple:f,duration:l})}_createHTMLRipple({wrapper:t,ripple:e,styles:s}){Object.keys(s).forEach(n=>e.style[n]=s[n]),_.addClass(e,this._classes.rippleWave),e.setAttribute("data-te-ripple-ref",""),this._addColor(e,t),this._toggleUnbound(t),this._appendRipple(e,t)}_removeHTMLRipple({ripple:t,duration:e}){this._rippleTimer&&(clearTimeout(this._rippleTimer),this._rippleTimer=null),t&&setTimeout(()=>{t.classList.add("!opacity-0")},10),this._rippleTimer=setTimeout(()=>{if(t&&(t.remove(),this._element)){m.find("[data-te-ripple-ref]",this._element).forEach(n=>{n.remove()}),this._isMinWidthSet&&(_.style(this._element,{"min-width":""}),this._isMinWidthSet=!1);const s=this._initialClasses?this._addedNewRippleClasses(this._classes.ripple,this._initialClasses):this._classes.ripple.split(" ");_.removeClass(this._element,s)}},e)}_addedNewRippleClasses(t,e){return t.split(" ").filter(s=>e.findIndex(n=>s===n)===-1)}_durationToMsNumber(t){return Number(t.replace("ms","").replace("s","000"))}_getConfig(t={}){const e=_.getDataAttributes(this._element);return t={...Fv,...e,...t},P(Oa,t,Wv),t}_getClasses(t={}){const e=_.getDataClassAttributes(this._element);return t={...Vv,...e,...t},P(Oa,t,zv),t}_getDiameter({offsetX:t,offsetY:e,height:s,width:n}){const o=e<=s/2,r=t<=n/2,a=(u,p)=>Math.sqrt(u**2+p**2),l=e===s/2&&t===n/2,c={first:o===!0&&r===!1,second:o===!0&&r===!0,third:o===!1&&r===!0,fourth:o===!1&&r===!1},h={topLeft:a(t,e),topRight:a(n-t,e),bottomLeft:a(t,s-e),bottomRight:a(n-t,s-e)};let d=0;return l||c.fourth?d=h.topLeft:c.third?d=h.topRight:c.second?d=h.bottomRight:c.first&&(d=h.bottomLeft),d*2}_appendRipple(t,e){e.appendChild(t),setTimeout(()=>{_.addClass(t,"opacity-0 scale-100")},50)}_toggleUnbound(t){this._options.rippleUnbound===!0?_.addClass(t,this._classes.unbound):_.removeClass(t,this._classes.unbound)}_addColor(t){let e=this._options.rippleColor||"rgb(0,0,0)";(localStorage.theme==="dark"||!("theme"in localStorage)&&window.matchMedia("(prefers-color-scheme: dark)").matches)&&(e=this._options.rippleColorDark||this._options.rippleColor);const s=Hv.find(r=>r.name===e.toLowerCase()),n=s?this._colorToRGB(s.gradientColor).join(","):this._colorToRGB(e).join(","),o=Nv.split("{{color}}").join(`${n}`);t.style.backgroundImage=`radial-gradient(circle, ${o})`}_colorToRGB(t){function e(o){return o.length<7&&(o=`#${o[1]}${o[1]}${o[2]}${o[2]}${o[3]}${o[3]}`),[parseInt(o.substr(1,2),16),parseInt(o.substr(3,2),16),parseInt(o.substr(5,2),16)]}function s(o){const r=document.body.appendChild(document.createElement("fictum")),a="rgb(1, 2, 3)";return r.style.color=a,r.style.color!==a||(r.style.color=o,r.style.color===a||r.style.color==="")?po:(o=getComputedStyle(r).color,document.body.removeChild(r),o)}function n(o){return o=o.match(/[.\d]+/g).map(r=>+Number(r)),o.length=3,o}return t.toLowerCase()==="transparent"?po:t[0]==="#"?e(t):(t.indexOf("rgb")===-1&&(t=s(t)),t.indexOf("rgb")===0?n(t):po)}static autoInitial(t){return function(e){t._autoInit(e)}}static jQueryInterface(t){return this.each(function(){return M.getData(this,uo)?null:new ze(this,t)})}static getInstance(t){return M.getData(t,uo)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,typeof e=="object"?e:null)}}function bt(i){return i.getDate()}function fo(i){return i.getDay()}function ot(i){return i.getMonth()}function K(i){return i.getFullYear()}function Yv(i,t,e){const s=e.startDay,n=s>0?7-s:0,r=new Date(i,t).getDay()+n;return r>=7?r-7:r}function Da(i){return jv(i).getDate()}function jv(i){return de(i.getFullYear(),i.getMonth()+1,0)}function Qi(){return new Date}function Tt(i,t){return Et(i,t*12)}function Et(i,t){const e=de(i.getFullYear(),i.getMonth()+t,i.getDate()),s=bt(i),n=bt(e);return s!==n&&e.setDate(0),e}function Ji(i,t){return de(i.getFullYear(),i.getMonth(),i.getDate()+t)}function de(i,t,e){const s=new Date(i,t,e);return i>=0&&i<100&&s.setFullYear(s.getFullYear()-1900),s}function Jh(i){const t=i.split("-"),e=t[0],s=t[1],n=t[2];return de(e,s,n)}function Kv(i){return!Number.isNaN(i.getTime())}function ts(i,t){return K(i)-K(t)||ot(i)-ot(t)||bt(i)-bt(t)}function xi(i,t){return i.setHours(0,0,0,0),t.setHours(0,0,0,0),i.getTime()===t.getTime()}function _o(i,t){const s=K(i)-Xv();return Uv(s,t)}function Uv(i,t){return(i%t+t)%t}function Xv(i,t,e){let s=0;return e?s=K(e)-i+1:t&&(s=K(t)),s}function go(i,t,e,s,n,o){const r=new Date;r.setHours(0,0,0,0);const a=t&&ts(i,t)<=-1,l=e&&ts(i,e)>=1,c=n&&ts(i,r)<=-1,h=o&&ts(i,r)>=1,d=s&&s(i)===!1;return a||l||d||c||h}function td(i,t,e,s,n,o){const r=new Date,a=s&&K(s),l=s&&ot(s),c=e&&K(e),h=e&&ot(e),d=K(r),u=ot(r),p=l&&a&&(t>a||t===a&&i>l),f=h&&c&&(td||t===d&&i>u);return p||f||b||v}function Ia(i,t,e,s,n){const o=t&&K(t),r=e&&K(e),a=K(new Date),l=r&&i>r,c=o&&ia;return l||c||h||d}function Gv(i,t,e,s,n,o,r,a){const l=new Date;return l.setHours(0,0,0,0),(i&&o&&ts(o,l)<0||i)&&(o=l),o&&Bs(t,o,e,s,n,o,r,a)}function qv(i,t,e,s,n,o,r,a){const l=new Date;return l.setHours(0,0,0,0),(i&&n&&ts(n,l)<0||i)&&(n=l),n&&Bs(t,n,e,s,n,o,r,a)}function Bs(i,t,e,s,n,o,r,a){return e==="days"?K(i)===K(t)&&ot(i)===ot(t):e==="months"?K(i)===K(t):e==="years"?K(t)>=a&&K(t)<=r:!1}const Zv="data-te-datepicker-modal-container-ref",Qv="data-te-datepicker-dropdown-container-ref",Jv="data-te-dropdown-backdrop-ref",t0="data-te-datepicker-date-text-ref",ed="data-te-datepicker-view-ref",e0="data-te-datepicker-previous-button-ref",i0="data-te-datepicker-next-button-ref",s0="data-te-datepicker-ok-button-ref",n0="data-te-datepicker-cancel-button-ref",o0="data-te-datepicker-clear-button-ref",r0="data-te-datepicker-view-change-button-ref";function a0(i,t,e,s,n,o,r,a,l,c){const h=ot(i),d=K(i),u=bt(i),p=fo(i),f=L("div"),b=` - ${id(i,h,d,t,e,s,n,o,r,a,c)} +`,"We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var h={placement:Zt(t.placement),variation:Yi(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:n,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Sh(Object.assign({},h,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:r,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Sh(Object.assign({},h,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Ca={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:cm,data:{}};var ro={passive:!0};function hm(s){var t=s.state,e=s.instance,i=s.options,n=i.scroll,o=n===void 0?!0:n,r=i.resize,a=r===void 0?!0:r,l=Mt(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(h){h.addEventListener("scroll",e.update,ro)}),a&&l.addEventListener("resize",e.update,ro),function(){o&&c.forEach(function(h){h.removeEventListener("scroll",e.update,ro)}),a&&l.removeEventListener("resize",e.update,ro)}}const Aa={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:hm,data:{}};var dm={left:"right",right:"left",bottom:"top",top:"bottom"};function ao(s){return s.replace(/left|right|bottom|top/g,function(t){return dm[t]})}var um={start:"end",end:"start"};function Oh(s){return s.replace(/start|end/g,function(t){return um[t]})}function wa(s){var t=Mt(s),e=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:e,scrollTop:i}}function ka(s){return ji(Be(s)).left+wa(s).scrollLeft}function pm(s,t){var e=Mt(s),i=Be(s),n=e.visualViewport,o=i.clientWidth,r=i.clientHeight,a=0,l=0;if(n){o=n.width,r=n.height;var c=Th();(c||!c&&t==="fixed")&&(a=n.offsetLeft,l=n.offsetTop)}return{width:o,height:r,x:a+ka(s),y:l}}function fm(s){var t,e=Be(s),i=wa(s),n=(t=s.ownerDocument)==null?void 0:t.body,o=ui(e.scrollWidth,e.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),r=ui(e.scrollHeight,e.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),a=-i.scrollLeft+ka(s),l=-i.scrollTop;return Qt(n||e).direction==="rtl"&&(a+=ui(e.clientWidth,n?n.clientWidth:0)-o),{width:o,height:r,x:a,y:l}}function Sa(s){var t=Qt(s),e=t.overflow,i=t.overflowX,n=t.overflowY;return/auto|scroll|overlay|hidden/.test(e+n+i)}function Dh(s){return["html","body","#document"].indexOf(ae(s))>=0?s.ownerDocument.body:Lt(s)&&Sa(s)?s:Dh(oo(s))}function $s(s,t){var e;t===void 0&&(t=[]);var i=Dh(s),n=i===((e=s.ownerDocument)==null?void 0:e.body),o=Mt(i),r=n?[o].concat(o.visualViewport||[],Sa(i)?i:[]):i,a=t.concat(r);return n?a:a.concat($s(oo(r)))}function Oa(s){return Object.assign({},s,{left:s.x,top:s.y,right:s.x+s.width,bottom:s.y+s.height})}function _m(s,t){var e=ji(s,!1,t==="fixed");return e.top=e.top+s.clientTop,e.left=e.left+s.clientLeft,e.bottom=e.top+s.clientHeight,e.right=e.left+s.clientWidth,e.width=s.clientWidth,e.height=s.clientHeight,e.x=e.left,e.y=e.top,e}function Ih(s,t,e){return t===ga?Oa(pm(s,e)):di(t)?_m(t,e):Oa(fm(Be(s)))}function gm(s){var t=$s(oo(s)),e=["absolute","fixed"].indexOf(Qt(s).position)>=0,i=e&&Lt(s)?Ms(s):s;return di(i)?t.filter(function(n){return di(n)&&Eh(n,i)&&ae(n)!=="body"}):[]}function mm(s,t,e,i){var n=t==="clippingParents"?gm(s):[].concat(t),o=[].concat(n,[e]),r=o[0],a=o.reduce(function(l,c){var h=Ih(s,c,i);return l.top=ui(h.top,l.top),l.right=no(h.right,l.right),l.bottom=no(h.bottom,l.bottom),l.left=ui(h.left,l.left),l},Ih(s,r,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Mh(s){var t=s.reference,e=s.element,i=s.placement,n=i?Zt(i):null,o=i?Yi(i):null,r=t.x+t.width/2-e.width/2,a=t.y+t.height/2-e.height/2,l;switch(n){case gt:l={x:r,y:t.y-e.height};break;case Dt:l={x:r,y:t.y+t.height};break;case It:l={x:t.x+t.width,y:a};break;case mt:l={x:t.x-e.width,y:a};break;default:l={x:t.x,y:t.y}}var c=n?xa(n):null;if(c!=null){var h=c==="y"?"height":"width";switch(o){case hi:l[c]=l[c]-(t[h]/2-e[h]/2);break;case Fi:l[c]=l[c]+(t[h]/2-e[h]/2);break}}return l}function Ki(s,t){t===void 0&&(t={});var e=t,i=e.placement,n=i===void 0?s.placement:i,o=e.strategy,r=o===void 0?s.strategy:o,a=e.boundary,l=a===void 0?hh:a,c=e.rootBoundary,h=c===void 0?ga:c,d=e.elementContext,u=d===void 0?Wi:d,p=e.altBoundary,f=p===void 0?!1:p,b=e.padding,v=b===void 0?0:b,y=Ah(typeof v!="number"?v:wh(v,Vi)),T=u===Wi?dh:Wi,x=s.rects.popper,E=s.elements[f?T:u],C=mm(di(E)?E:E.contextElement||Be(s.elements.popper),l,h,r),A=ji(s.elements.reference),w=Mh({reference:A,element:x,strategy:"absolute",placement:n}),S=Oa(Object.assign({},x,w)),k=u===Wi?S:A,I={top:C.top-k.top+y.top,bottom:k.bottom-C.bottom+y.bottom,left:C.left-k.left+y.left,right:k.right-C.right+y.right},O=s.modifiersData.offset;if(u===Wi&&O){var M=O[n];Object.keys(I).forEach(function(R){var X=[It,Dt].indexOf(R)>=0?1:-1,P=[gt,Dt].indexOf(R)>=0?"y":"x";I[R]+=M[P]*X})}return I}function bm(s,t){t===void 0&&(t={});var e=t,i=e.placement,n=e.boundary,o=e.rootBoundary,r=e.padding,a=e.flipVariations,l=e.allowedAutoPlacements,c=l===void 0?ba:l,h=Yi(i),d=h?a?ma:ma.filter(function(f){return Yi(f)===h}):Vi,u=d.filter(function(f){return c.indexOf(f)>=0});u.length===0&&(u=d,{}.NODE_ENV!=="production"&&console.error(["Popper: The `allowedAutoPlacements` option did not allow any","placements. Ensure the `placement` option matches the variation","of the allowed placements.",'For example, "auto" cannot be used to allow "bottom-start".','Use "auto-start" instead.'].join(" ")));var p=u.reduce(function(f,b){return f[b]=Ki(s,{placement:b,boundary:n,rootBoundary:o,padding:r})[Zt(b)],f},{});return Object.keys(p).sort(function(f,b){return p[f]-p[b]})}function vm(s){if(Zt(s)===Is)return[];var t=ao(s);return[Oh(s),t,Oh(t)]}function ym(s){var t=s.state,e=s.options,i=s.name;if(!t.modifiersData[i]._skip){for(var n=e.mainAxis,o=n===void 0?!0:n,r=e.altAxis,a=r===void 0?!0:r,l=e.fallbackPlacements,c=e.padding,h=e.boundary,d=e.rootBoundary,u=e.altBoundary,p=e.flipVariations,f=p===void 0?!0:p,b=e.allowedAutoPlacements,v=t.options.placement,y=Zt(v),T=y===v,x=l||(T||!f?[ao(v)]:vm(v)),E=[v].concat(x).reduce(function(Ae,qt){return Ae.concat(Zt(qt)===Is?bm(t,{placement:qt,boundary:h,rootBoundary:d,padding:c,flipVariations:f,allowedAutoPlacements:b}):qt)},[]),C=t.rects.reference,A=t.rects.popper,w=new Map,S=!0,k=E[0],I=0;I=0,P=X?"width":"height",z=Ki(t,{placement:O,boundary:h,rootBoundary:d,altBoundary:u,padding:c}),Y=X?R?It:mt:R?Dt:gt;C[P]>A[P]&&(Y=ao(Y));var Xt=ao(Y),ne=[];if(o&&ne.push(z[M]<=0),a&&ne.push(z[Y]<=0,z[Xt]<=0),ne.every(function(Ae){return Ae})){k=O,S=!1;break}w.set(O,ne)}if(S)for(var oe=f?3:1,ri=function(qt){var Pe=E.find(function(ca){var Ri=w.get(ca);if(Ri)return Ri.slice(0,qt).every(function(Kc){return Kc})});if(Pe)return k=Pe,"break"},Gt=oe;Gt>0;Gt--){var Ce=ri(Gt);if(Ce==="break")break}t.placement!==k&&(t.modifiersData[i]._skip=!0,t.placement=k,t.reset=!0)}}const Lh={name:"flip",enabled:!0,phase:"main",fn:ym,requiresIfExists:["offset"],data:{_skip:!1}};function $h(s,t,e){return e===void 0&&(e={x:0,y:0}),{top:s.top-t.height-e.y,right:s.right-t.width+e.x,bottom:s.bottom-t.height+e.y,left:s.left-t.width-e.x}}function Ph(s){return[gt,It,Dt,mt].some(function(t){return s[t]>=0})}function Tm(s){var t=s.state,e=s.name,i=t.rects.reference,n=t.rects.popper,o=t.modifiersData.preventOverflow,r=Ki(t,{elementContext:"reference"}),a=Ki(t,{altBoundary:!0}),l=$h(r,i),c=$h(a,n,o),h=Ph(l),d=Ph(c);t.modifiersData[e]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:h,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":d})}const Rh={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Tm};function Em(s,t,e){var i=Zt(s),n=[mt,gt].indexOf(i)>=0?-1:1,o=typeof e=="function"?e(Object.assign({},t,{placement:s})):e,r=o[0],a=o[1];return r=r||0,a=(a||0)*n,[mt,It].indexOf(i)>=0?{x:a,y:r}:{x:r,y:a}}function xm(s){var t=s.state,e=s.options,i=s.name,n=e.offset,o=n===void 0?[0,0]:n,r=ba.reduce(function(h,d){return h[d]=Em(d,t.rects,o),h},{}),a=r[t.placement],l=a.x,c=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[i]=r}const Nh={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:xm};function Cm(s){var t=s.state,e=s.name;t.modifiersData[e]=Mh({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Da={name:"popperOffsets",enabled:!0,phase:"read",fn:Cm,data:{}};function Am(s){return s==="x"?"y":"x"}function wm(s){var t=s.state,e=s.options,i=s.name,n=e.mainAxis,o=n===void 0?!0:n,r=e.altAxis,a=r===void 0?!1:r,l=e.boundary,c=e.rootBoundary,h=e.altBoundary,d=e.padding,u=e.tether,p=u===void 0?!0:u,f=e.tetherOffset,b=f===void 0?0:f,v=Ki(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:h}),y=Zt(t.placement),T=Yi(t.placement),x=!T,E=xa(y),C=Am(E),A=t.modifiersData.popperOffsets,w=t.rects.reference,S=t.rects.popper,k=typeof b=="function"?b(Object.assign({},t.rects,{placement:t.placement})):b,I=typeof k=="number"?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),O=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if(A){if(o){var R,X=E==="y"?gt:mt,P=E==="y"?Dt:It,z=E==="y"?"height":"width",Y=A[E],Xt=Y+v[X],ne=Y-v[P],oe=p?-S[z]/2:0,ri=T===hi?w[z]:S[z],Gt=T===hi?-S[z]:-w[z],Ce=t.elements.arrow,Ae=p&&Ce?Ea(Ce):{width:0,height:0},qt=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Ch(),Pe=qt[X],ca=qt[P],Ri=Ls(0,w[z],Ae[z]),Kc=x?w[z]/2-oe-Ri-Pe-I.mainAxis:ri-Ri-Pe-I.mainAxis,vM=x?-w[z]/2+oe+Ri+ca+I.mainAxis:Gt+Ri+ca+I.mainAxis,Uc=t.elements.arrow&&Ms(t.elements.arrow),yM=Uc?E==="y"?Uc.clientTop||0:Uc.clientLeft||0:0,wg=(R=O==null?void 0:O[E])!=null?R:0,TM=Y+Kc-wg-yM,EM=Y+vM-wg,kg=Ls(p?no(Xt,TM):Xt,Y,p?ui(ne,EM):ne);A[E]=kg,M[E]=kg-Y}if(a){var Sg,xM=E==="x"?gt:mt,CM=E==="x"?Dt:It,Ni=A[C],ha=C==="y"?"height":"width",Og=Ni+v[xM],Dg=Ni-v[CM],Xc=[gt,mt].indexOf(y)!==-1,Ig=(Sg=O==null?void 0:O[C])!=null?Sg:0,Mg=Xc?Og:Ni-w[ha]-S[ha]-Ig+I.altAxis,Lg=Xc?Ni+w[ha]+S[ha]-Ig-I.altAxis:Dg,$g=p&&Xc?sm(Mg,Ni,Lg):Ls(p?Mg:Og,Ni,p?Lg:Dg);A[C]=$g,M[C]=$g-Ni}t.modifiersData[i]=M}}const Bh={name:"preventOverflow",enabled:!0,phase:"main",fn:wm,requiresIfExists:["offset"]};function km(s){return{scrollLeft:s.scrollLeft,scrollTop:s.scrollTop}}function Sm(s){return s===Mt(s)||!Lt(s)?wa(s):km(s)}function Om(s){var t=s.getBoundingClientRect(),e=zi(t.width)/s.offsetWidth||1,i=zi(t.height)/s.offsetHeight||1;return e!==1||i!==1}function Dm(s,t,e){e===void 0&&(e=!1);var i=Lt(t),n=Lt(t)&&Om(t),o=Be(t),r=ji(s,n,e),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!e)&&((ae(t)!=="body"||Sa(o))&&(a=Sm(t)),Lt(t)?(l=ji(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=ka(o))),{x:r.left+a.scrollLeft-l.x,y:r.top+a.scrollTop-l.y,width:r.width,height:r.height}}function Im(s){var t=new Map,e=new Set,i=[];s.forEach(function(o){t.set(o.name,o)});function n(o){e.add(o.name);var r=[].concat(o.requires||[],o.requiresIfExists||[]);r.forEach(function(a){if(!e.has(a)){var l=t.get(a);l&&n(l)}}),i.push(o)}return s.forEach(function(o){e.has(o.name)||n(o)}),i}function Mm(s){var t=Im(s);return so.reduce(function(e,i){return e.concat(t.filter(function(n){return n.phase===i}))},[])}function Lm(s){var t;return function(){return t||(t=new Promise(function(e){Promise.resolve().then(function(){t=void 0,e(s())})})),t}}function He(s){for(var t=arguments.length,e=new Array(t>1?t-1:0),i=1;i100)){console.error(Bm);break}if(h.reset===!0){h.reset=!1,C=-1;continue}var A=h.orderedModifiers[C],w=A.fn,S=A.options,k=S===void 0?{}:S,I=A.name;typeof w=="function"&&(h=w({state:h,options:k,name:I,instance:p})||h)}}},update:Lm(function(){return new Promise(function(v){p.forceUpdate(),v(h)})}),destroy:function(){b(),u=!0}};if(!Wh(a,l))return{}.NODE_ENV!=="production"&&console.error(Vh),p;p.setOptions(c).then(function(v){!u&&c.onFirstUpdate&&c.onFirstUpdate(v)});function f(){h.orderedModifiers.forEach(function(v){var y=v.name,T=v.options,x=T===void 0?{}:T,E=v.effect;if(typeof E=="function"){var C=E({state:h,name:y,instance:p,options:x}),A=function(){};d.push(C||A)}})}function b(){d.forEach(function(v){return v()}),d=[]}return p}}var Hm=lo(),Vm=[Aa,Da,Ca,ya],Fm=lo({defaultModifiers:Vm}),Wm=[Aa,Da,Ca,ya,Nh,Lh,Bh,kh,Rh],fi=lo({defaultModifiers:Wm});const zh=Object.freeze(Object.defineProperty({__proto__:null,afterMain:mh,afterRead:fh,afterWrite:yh,applyStyles:ya,arrow:kh,auto:Is,basePlacements:Vi,beforeMain:_h,beforeRead:uh,beforeWrite:bh,bottom:Dt,clippingParents:hh,computeStyles:Ca,createPopper:fi,createPopperBase:Hm,createPopperLite:Fm,detectOverflow:Ki,end:Fi,eventListeners:Aa,flip:Lh,hide:Rh,left:mt,main:gh,modifierPhases:so,offset:Nh,placements:ba,popper:Wi,popperGenerator:lo,popperOffsets:Da,preventOverflow:Bh,read:ph,reference:dh,right:It,start:hi,top:gt,variationPlacements:ma,viewport:ga,write:vh},Symbol.toStringTag,{value:"Module"}));function Ia(s){return s==="true"?!0:s==="false"?!1:s===Number(s).toString()?Number(s):s===""||s==="null"?null:s}function Ma(s){return s.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}const g={setDataAttribute(s,t,e){s.setAttribute(`data-te-${Ma(t)}`,e)},removeDataAttribute(s,t){s.removeAttribute(`data-te-${Ma(t)}`)},getDataAttributes(s){if(!s)return{};const t={};return Object.keys(s.dataset).filter(e=>e.startsWith("te")).forEach(e=>{if(e.startsWith("teClass"))return;let i=e.replace(/^te/,"");i=i.charAt(0).toLowerCase()+i.slice(1,i.length),t[i]=Ia(s.dataset[e])}),t},getDataClassAttributes(s){if(!s)return{};const t={...s.dataset};return Object.keys(t).filter(e=>e.startsWith("teClass")).forEach(e=>{let i=e.replace(/^teClass/,"");i=i.charAt(0).toLowerCase()+i.slice(1,i.length),t[i]=Ia(t[e])}),t},getDataAttribute(s,t){return Ia(s.getAttribute(`data-te-${Ma(t)}`))},offset(s){const t=s.getBoundingClientRect();return{top:t.top+document.body.scrollTop,left:t.left+document.body.scrollLeft}},position(s){return{top:s.offsetTop,left:s.offsetLeft}},style(s,t){Object.assign(s.style,t)},toggleClass(s,t){s&&La(t).forEach(e=>{s.classList.contains(e)?s.classList.remove(e):s.classList.add(e)})},addClass(s,t){La(t).forEach(e=>!s.classList.contains(e)&&s.classList.add(e))},addStyle(s,t){Object.keys(t).forEach(e=>{s.style[e]=t[e]})},removeClass(s,t){La(t).forEach(e=>s.classList.contains(e)&&s.classList.remove(e))},hasClass(s,t){return s.classList.contains(t)},maxOffset(s){const t=s.getBoundingClientRect();return{top:t.top+Math.max(document.body.scrollTop,document.documentElement.scrollTop,window.scrollY),left:t.left+Math.max(document.body.scrollLeft,document.documentElement.scrollLeft,window.scrollX)}}};function La(s){return typeof s=="string"?s.split(" "):Array.isArray(s)?s:!1}const zm=3,m={closest(s,t){return s.closest(t)},matches(s,t){return s.matches(t)},find(s,t=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(t,s))},findOne(s,t=document.documentElement){return Element.prototype.querySelector.call(t,s)},children(s,t){return[].concat(...s.children).filter(i=>i.matches(t))},parents(s,t){const e=[];let i=s.parentNode;for(;i&&i.nodeType===Node.ELEMENT_NODE&&i.nodeType!==zm;)this.matches(i,t)&&e.push(i),i=i.parentNode;return e},prev(s,t){let e=s.previousElementSibling;for(;e;){if(e.matches(t))return[e];e=e.previousElementSibling}return[]},next(s,t){let e=s.nextElementSibling;for(;e;){if(this.matches(e,t))return[e];e=e.nextElementSibling}return[]},focusableChildren(s){const t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(e=>`${e}:not([tabindex^="-"])`).join(", ");return this.find(t,s).filter(e=>!ai(e)&&re(e))}},$a="dropdown",_i=".te.dropdown",Pa=".data-api",co="Escape",jh="Space",Yh="Tab",Ra="ArrowUp",ho="ArrowDown",jm=2,Ym=new RegExp(`${Ra}|${ho}|${co}`),Km=`hide${_i}`,Um=`hidden${_i}`,Xm=`show${_i}`,Gm=`shown${_i}`,qm=`click${_i}${Pa}`,Kh=`keydown${_i}${Pa}`,Zm=`keyup${_i}${Pa}`,Ve="show",Qm="dropup",Jm="dropend",tb="dropstart",eb="[data-te-navbar-ref]",uo="[data-te-dropdown-toggle-ref]",Na="[data-te-dropdown-menu-ref]",ib="[data-te-navbar-nav-ref]",sb="[data-te-dropdown-menu-ref] [data-te-dropdown-item-ref]:not(.disabled):not(:disabled)",nb=st()?"top-end":"top-start",ob=st()?"top-start":"top-end",rb=st()?"bottom-end":"bottom-start",ab=st()?"bottom-start":"bottom-end",lb=st()?"left-start":"right-start",cb=st()?"right-start":"left-start",hb=[{opacity:"0"},{opacity:"1"}],db=[{opacity:"1"},{opacity:"0"}],po={duration:550,iterations:1,easing:"ease",fill:"both"},ub={offset:[0,2],boundary:"clippingParents",reference:"toggle",display:"dynamic",popperConfig:null,autoClose:!0,dropdownAnimation:"on"},pb={offset:"(array|string|function)",boundary:"(string|element)",reference:"(string|element|object)",display:"string",popperConfig:"(null|object|function)",autoClose:"(boolean|string)",dropdownAnimation:"string"};class Vt extends Ht{constructor(t,e){super(t),this._popper=null,this._config=this._getConfig(e),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._fadeOutAnimate=null;const i=window.matchMedia("(prefers-reduced-motion: reduce)").matches;this._animationCanPlay=this._config.dropdownAnimation==="on"&&!i,this._didInit=!1,this._init()}static get Default(){return ub}static get DefaultType(){return pb}static get NAME(){return $a}toggle(){return this._isShown()?this.hide():this.show()}show(){if(ai(this._element)||this._isShown(this._menu))return;const t={relatedTarget:this._element};if(_.trigger(this._element,Xm,t).defaultPrevented)return;const i=Vt.getParentFromElement(this._element);this._inNavbar?g.setDataAttribute(this._menu,"popper","none"):this._createPopper(i),"ontouchstart"in document.documentElement&&!i.closest(ib)&&[].concat(...document.body.children).forEach(n=>_.on(n,"mouseover",eo)),this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.setAttribute(`data-te-dropdown-${Ve}`,""),this._animationCanPlay&&this._menu.animate(hb,po),this._element.setAttribute(`data-te-dropdown-${Ve}`,""),setTimeout(()=>{_.trigger(this._element,Gm,t)},this._animationCanPlay?po.duration:0)}hide(){if(ai(this._element)||!this._isShown(this._menu))return;const t={relatedTarget:this._element};this._completeHide(t)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_init(){this._didInit||(_.on(document,Kh,uo,Vt.dataApiKeydownHandler),_.on(document,Kh,Na,Vt.dataApiKeydownHandler),_.on(document,qm,Vt.clearMenus),_.on(document,Zm,Vt.clearMenus),this._didInit=!0)}_completeHide(t){this._fadeOutAnimate&&this._fadeOutAnimate.playState==="running"||_.trigger(this._element,Km,t).defaultPrevented||("ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach(i=>_.off(i,"mouseover",eo)),this._animationCanPlay&&(this._fadeOutAnimate=this._menu.animate(db,po)),setTimeout(()=>{this._popper&&this._popper.destroy(),this._menu.removeAttribute(`data-te-dropdown-${Ve}`),this._element.removeAttribute(`data-te-dropdown-${Ve}`),this._element.setAttribute("aria-expanded","false"),g.removeDataAttribute(this._menu,"popper"),_.trigger(this._element,Um,t)},this._animationCanPlay?po.duration:0))}_getConfig(t){if(t={...this.constructor.Default,...g.getDataAttributes(this._element),...t},L($a,t,this.constructor.DefaultType),typeof t.reference=="object"&&!Bi(t.reference)&&typeof t.reference.getBoundingClientRect!="function")throw new TypeError(`${$a.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(t){if(typeof zh>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let e=this._element;this._config.reference==="parent"?e=t:Bi(this._config.reference)?e=Ne(this._config.reference):typeof this._config.reference=="object"&&(e=this._config.reference);const i=this._getPopperConfig(),n=i.modifiers.find(o=>o.name==="applyStyles"&&o.enabled===!1);this._popper=fi(e,this._menu,i),n&&g.setDataAttribute(this._menu,"popper","static")}_isShown(t=this._element){return t.dataset[`teDropdown${Ve.charAt(0).toUpperCase()+Ve.slice(1)}`]===""}_getMenuElement(){return m.next(this._element,Na)[0]}_getPlacement(){const t=this._element.parentNode;if(t.dataset.teDropdownPosition===Jm)return lb;if(t.dataset.teDropdownPosition===tb)return cb;const e=t.dataset.teDropdownAlignment==="end";return t.dataset.teDropdownPosition===Qm?e?ob:nb:e?ab:rb}_detectNavbar(){return this._element.closest(eb)!==null}_getOffset(){const{offset:t}=this._config;return typeof t=="string"?t.split(",").map(e=>Number.parseInt(e,10)):typeof t=="function"?e=>t(e,this._element):t}_getPopperConfig(){const t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return this._config.display==="static"&&(t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,...typeof this._config.popperConfig=="function"?this._config.popperConfig(t):this._config.popperConfig}}_selectMenuItem({key:t,target:e}){const i=m.find(sb,this._menu).filter(re);i.length&&eh(i,e,t===ho,!i.includes(e)).focus()}static jQueryInterface(t){return this.each(function(){const e=Vt.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]>"u")throw new TypeError(`No method named "${t}"`);e[t]()}})}static clearMenus(t){if(t&&(t.button===jm||t.type==="keyup"&&t.key!==Yh))return;const e=m.find(uo);for(let i=0,n=e.length;ih===this._element);l!==null&&c.length&&(this._selector=l,this._triggerArray.push(a))}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return Xh}static get NAME(){return Ba}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[],e;if(this._config.parent){const h=m.find(qh,this._config.parent);t=m.find(Eb,this._config.parent).filter(d=>!h.includes(d))}const i=m.findOne(this._selector);if(t.length){const h=t.find(d=>i!==d);if(e=h?le.getInstance(h):null,e&&e._isTransitioning)return}if(_.trigger(this._element,_b).defaultPrevented)return;t.forEach(h=>{i!==h&&le.getOrCreateInstance(h,{toggle:!1}).hide(),e||D.setData(h,Uh,null)});const o=this._getDimension(),r=o==="height"?this._classes.collapsing:this._classes.collapsingHorizontal;g.removeClass(this._element,this._classes.visible),g.removeClass(this._element,this._classes.hidden),g.addClass(this._element,r),this._element.removeAttribute(Ui),this._element.setAttribute(_o,""),this._element.style[o]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const a=()=>{this._isTransitioning=!1,g.removeClass(this._element,this._classes.hidden),g.removeClass(this._element,r),g.addClass(this._element,this._classes.visible),this._element.removeAttribute(_o),this._element.setAttribute(Ui,""),this._element.setAttribute(Ha,""),this._element.style[o]="",_.trigger(this._element,gb)},c=`scroll${o[0].toUpperCase()+o.slice(1)}`;this._queueCallback(a,this._element,!0),this._element.style[o]=`${this._element[c]}px`}hide(){if(this._isTransitioning||!this._isShown()||_.trigger(this._element,mb).defaultPrevented)return;const e=this._getDimension(),i=e==="height"?this._classes.collapsing:this._classes.collapsingHorizontal;this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,Hi(this._element),g.addClass(this._element,i),g.removeClass(this._element,this._classes.visible),g.removeClass(this._element,this._classes.hidden),this._element.setAttribute(_o,""),this._element.removeAttribute(Ui),this._element.removeAttribute(Ha);const n=this._triggerArray.length;for(let r=0;r{this._isTransitioning=!1,g.removeClass(this._element,i),g.addClass(this._element,this._classes.visible),g.addClass(this._element,this._classes.hidden),this._element.removeAttribute(_o),this._element.setAttribute(Ui,""),_.trigger(this._element,bb)};this._element.style[e]="",this._queueCallback(o,this._element,!0)}_isShown(t=this._element){return t.hasAttribute(Ha)}_getConfig(t){return t={...Xh,...g.getDataAttributes(this._element),...t},t.toggle=!!t.toggle,t.parent=Ne(t.parent),L(Ba,t,fb),t}_getClasses(t){const e=g.getDataClassAttributes(this._element);return t={...xb,...e,...t},L(Ba,t,Cb),t}_getDimension(){return this._element.hasAttribute(vb)?yb:Tb}_initializeChildren(){if(!this._config.parent)return;const t=m.find(qh,this._config.parent);m.find(Zh,this._config.parent).filter(e=>!t.includes(e)).forEach(e=>{const i=Re(e);i&&this._addAriaAndCollapsedClass([e],this._isShown(i))})}_addAriaAndCollapsedClass(t,e){t.length&&t.forEach(i=>{e?i.removeAttribute(Gh):i.setAttribute(`${Gh}`,""),i.setAttribute("aria-expanded",e)})}static jQueryInterface(t){return this.each(function(){const e={};typeof t=="string"&&/show|hide/.test(t)&&(e.toggle=!1);const i=le.getOrCreateInstance(this,e);if(typeof t=="string"){if(typeof i[t]>"u")throw new TypeError(`No method named "${t}"`);i[t]()}})}}const Qh=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Jh=".sticky-top";class Xi{constructor(){this._element=document.body}getWidth(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}hide(){const t=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,"paddingRight",e=>e+t),this._setElementAttributes(Qh,"paddingRight",e=>e+t),this._setElementAttributes(Jh,"marginRight",e=>e-t)}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,e,i){const n=this.getWidth(),o=r=>{if(r!==this._element&&window.innerWidth>r.clientWidth+n)return;this._saveInitialAttribute(r,e);const a=window.getComputedStyle(r)[e];r.style[e]=`${i(Number.parseFloat(a))}px`};this._applyManipulationCallback(t,o)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,"paddingRight"),this._resetElementAttributes(Qh,"paddingRight"),this._resetElementAttributes(Jh,"marginRight")}_saveInitialAttribute(t,e){const i=t.style[e];i&&g.setDataAttribute(t,e,i)}_resetElementAttributes(t,e){const i=n=>{const o=g.getDataAttribute(n,e);typeof o>"u"?n.style.removeProperty(e):(g.removeDataAttribute(n,e),n.style[e]=o)};this._applyManipulationCallback(t,i)}_applyManipulationCallback(t,e){Bi(t)?e(t):m.find(t,this._element).forEach(e)}isOverflowing(){return this.getWidth()>0}}const Ab={isVisible:!0,isAnimated:!1,rootElement:"body",clickCallback:null,backdropClasses:null},wb={isVisible:"boolean",isAnimated:"boolean",rootElement:"(element|string)",clickCallback:"(function|null)",backdropClasses:"(array|null)"},td="backdrop",ed=`mousedown.te.${td}`;class Va{constructor(t){this._config=this._getConfig(t),this._isAppended=!1,this._element=null}show(t){if(!this._config.isVisible){li(t);return}this._append(),this._config.isAnimated&&Hi(this._getElement());const e=this._config.backdropClasses||["opacity-50","transition-all","duration-300","ease-in-out","fixed","top-0","left-0","z-[1040]","bg-black","w-screen","h-screen"];g.removeClass(this._getElement(),"opacity-0"),g.addClass(this._getElement(),e),this._element.setAttribute("data-te-backdrop-show",""),this._emulateAnimation(()=>{li(t)})}hide(t){if(!this._config.isVisible){li(t);return}this._element.removeAttribute("data-te-backdrop-show"),this._getElement().classList.add("opacity-0"),this._getElement().classList.remove("opacity-50"),this._emulateAnimation(()=>{this.dispose(),li(t)})}_getElement(){if(!this._element){const t=document.createElement("div");t.className=this._config.className,this._config.isAnimated&&t.classList.add("opacity-50"),this._element=t}return this._element}_getConfig(t){return t={...Ab,...typeof t=="object"?t:{}},t.rootElement=Ne(t.rootElement),L(td,t,wb),t}_append(){this._isAppended||(this._config.rootElement.append(this._getElement()),_.on(this._getElement(),ed,()=>{li(this._config.clickCallback)}),this._isAppended=!0)}dispose(){this._isAppended&&(_.off(this._element,ed),this._element.remove(),this._isAppended=!1)}_emulateAnimation(t){th(t,this._getElement(),this._config.isAnimated)}}class Ps{constructor(t,e={},i){this._element=t,this._toggler=i,this._event=e.event||"blur",this._condition=e.condition||(()=>!0),this._selector=e.selector||'button, a, input, select, textarea, [tabindex]:not([tabindex="-1"])',this._onlyVisible=e.onlyVisible||!1,this._focusableElements=[],this._firstElement=null,this._lastElement=null,this.handler=n=>{this._condition(n)&&!n.shiftKey&&n.target===this._lastElement?(n.preventDefault(),this._firstElement.focus()):this._condition(n)&&n.shiftKey&&n.target===this._firstElement&&(n.preventDefault(),this._lastElement.focus())}}trap(){this._setElements(),this._init(),this._setFocusTrap()}disable(){this._focusableElements.forEach(t=>{t.removeEventListener(this._event,this.handler)}),this._toggler&&this._toggler.focus()}update(){this._setElements(),this._setFocusTrap()}_init(){const t=e=>{!this._firstElement||e.key!=="Tab"||this._focusableElements.includes(e.target)||(e.preventDefault(),this._firstElement.focus(),window.removeEventListener("keydown",t))};window.addEventListener("keydown",t)}_filterVisible(t){return t.filter(e=>{if(!re(e))return!1;const i=m.parents(e,"*");for(let n=0;n{e===this._focusableElements.length-1||e===0?t.addEventListener(this._event,this.handler):t.removeEventListener(this._event,this.handler)})}}let id=[];const go=(s,t="hide")=>{const e=`click.dismiss${s.EVENT_KEY}`,i=s.NAME;id.includes(i)||(id.push(i),_.on(document,e,`[data-te-${i}-dismiss]`,function(n){if(["A","AREA"].includes(this.tagName)&&n.preventDefault(),ai(this))return;const o=Re(this)||this.closest(`.${i}`)||this.closest(`[data-te-${i}-init]`);if(!o)return;s.getOrCreateInstance(o)[t]()}))},sd="offcanvas",Gi=".te.offcanvas",kb=`load${Gi}.data-api`,Sb="Escape",nd={backdrop:!0,keyboard:!0,scroll:!1},Ob={backdrop:"boolean",keyboard:"boolean",scroll:"boolean"},od="show",Db="[data-te-offcanvas-init][data-te-offcanvas-show]",Ib=`show${Gi}`,Mb=`shown${Gi}`,Lb=`hide${Gi}`,$b=`hidden${Gi}`,Pb=`keydown.dismiss${Gi}`;class qi extends Ht{constructor(t,e){super(t),this._config=this._getConfig(e),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners(),this._didInit=!1,this._init()}static get NAME(){return sd}static get Default(){return nd}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown||_.trigger(this._element,Ib,{relatedTarget:t}).defaultPrevented)return;this._isShown=!0,this._element.style.visibility="visible",this._backdrop.show(),this._config.scroll||new Xi().hide(),this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.setAttribute(`data-te-offcanvas-${od}`,"");const i=()=>{this._config.scroll||this._focustrap.trap(),_.trigger(this._element,Mb,{relatedTarget:t})};this._queueCallback(i,this._element,!0)}hide(){if(!this._isShown||_.trigger(this._element,Lb).defaultPrevented)return;this._focustrap.disable(),this._element.blur(),this._isShown=!1,this._element.removeAttribute(`data-te-offcanvas-${od}`),this._backdrop.hide();const e=()=>{this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._element.style.visibility="hidden",this._config.scroll||new Xi().reset(),_.trigger(this._element,$b)};this._queueCallback(e,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.disable(),super.dispose()}_init(){this._didInit||(_.on(window,kb,()=>m.find(Db).forEach(t=>qi.getOrCreateInstance(t).show())),this._didInit=!0,go(qi))}_getConfig(t){return t={...nd,...g.getDataAttributes(this._element),...typeof t=="object"?t:{}},L(sd,t,Ob),t}_initializeBackDrop(){return new Va({isVisible:this._config.backdrop,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:()=>this.hide()})}_initializeFocusTrap(){return new Ps(this._element,{event:"keydown",condition:t=>t.key==="Tab"})}_addEventListeners(){_.on(this._element,Pb,t=>{this._config.keyboard&&t.key===Sb&&this.hide()})}static jQueryInterface(t){return this.each(function(){const e=qi.getOrCreateInstance(this,t);if(typeof t=="string"){if(e[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);e[t](this)}})}}const Fa="alert",rd=".te.alert",Rb=`close${rd}`,Nb=`closed${rd}`,Rs="data-te-alert-show",Bb={animation:"boolean",autohide:"boolean",delay:"number"},ad={animation:!0,autohide:!0,delay:1e3},Hb={fadeIn:"animate-[fade-in_0.3s_both] p-[auto] motion-reduce:transition-none motion-reduce:animate-none",fadeOut:"animate-[fade-out_0.3s_both] p-[auto] motion-reduce:transition-none motion-reduce:animate-none"},Vb={fadeIn:"string",fadeOut:"string"};class Ns extends Ht{constructor(t,e,i){super(t),this._element=t,this._config=this._getConfig(e),this._classes=this._getClasses(i),this._didInit=!1,this._init()}static get DefaultType(){return Bb}static get Default(){return ad}static get NAME(){return Fa}close(){if(_.trigger(this._element,Rb).defaultPrevented)return;let e=0;this._config.animation&&(e=300,g.addClass(this._element,this._classes.fadeOut)),this._element.removeAttribute(Rs),setTimeout(()=>{this._queueCallback(()=>this._destroyElement(),this._element,this._config.animation)},e)}show(){if(this._element){if(this._config.autohide&&this._setupAutohide(),!this._element.hasAttribute(Rs)&&(g.removeClass(this._element,"hidden"),g.addClass(this._element,"block"),re(this._element))){const t=e=>{g.removeClass(this._element,"hidden"),g.addClass(this._element,"block"),_.off(e.target,"animationend",t)};this._element.setAttribute(Rs,""),_.on(this._element,"animationend",t)}this._config.animation&&(g.removeClass(this._element,this._classes.fadeOut),g.addClass(this._element,this._classes.fadeIn))}}hide(){if(this._element&&this._element.hasAttribute(Rs)){this._element.removeAttribute(Rs);const t=e=>{g.addClass(this._element,"hidden"),g.removeClass(this._element,"block"),this._timeout!==null&&(clearTimeout(this._timeout),this._timeout=null),_.off(e.target,"animationend",t)};_.on(this._element,"animationend",t),g.removeClass(this._element,this._classes.fadeIn),g.addClass(this._element,this._classes.fadeOut)}}_init(){this._didInit||(go(Ns,"close"),this._didInit=!0)}_getConfig(t){return t={...ad,...g.getDataAttributes(this._element),...typeof t=="object"&&t?t:{}},L(Fa,t,this.constructor.DefaultType),t}_getClasses(t){const e=g.getDataClassAttributes(this._element);return t={...Hb,...e,...t},L(Fa,t,Vb),t}_setupAutohide(){this._timeout=setTimeout(()=>{this.hide()},this._config.delay)}_destroyElement(){this._element.remove(),_.trigger(this._element,Nb),this.dispose()}static jQueryInterface(t){return this.each(function(){const e=Ns.getOrCreateInstance(this);if(typeof t=="string"){if(e[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);e[t](this)}})}}const Wa="carousel",$t=".te.carousel",ld=".data-api",Fb="ArrowLeft",Wb="ArrowRight",zb=500,jb=40,cd={interval:5e3,keyboard:!0,ride:!1,pause:"hover",wrap:!0,touch:!0},Yb={interval:"(number|boolean)",keyboard:"boolean",ride:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},Kb={pointer:"touch-pan-y",block:"!block",visible:"data-[te-carousel-fade]:opacity-100 data-[te-carousel-fade]:z-[1]",invisible:"data-[te-carousel-fade]:z-0 data-[te-carousel-fade]:opacity-0 data-[te-carousel-fade]:duration-[600ms] data-[te-carousel-fade]:delay-600",slideRight:"translate-x-full",slideLeft:"-translate-x-full"},Ub={pointer:"string",block:"string",visible:"string",invisible:"string",slideRight:"string",slideLeft:"string"},gi="next",mi="prev",bi="left",Bs="right",Xb={[Fb]:Bs,[Wb]:bi},Gb=`slide${$t}`,za=`slid${$t}`,qb=`keydown${$t}`,Zb=`mouseenter${$t}`,Qb=`mouseleave${$t}`,Jb=`touchstart${$t}`,tv=`touchmove${$t}`,ev=`touchend${$t}`,iv=`pointerdown${$t}`,sv=`pointerup${$t}`,nv=`dragstart${$t}`,ov=`load${$t}${ld}`,rv=`click${$t}${ld}`,hd="data-te-carousel-init",vi="data-te-carousel-active",av="data-te-carousel-item-end",ja="data-te-carousel-item-start",lv="data-te-carousel-item-next",cv="data-te-carousel-item-prev",hv="data-te-carousel-pointer-event",dv="[data-te-carousel-init]",dd="[data-te-carousel-active]",Ya="[data-te-carousel-item]",Zi=`${dd}${Ya}`,uv=`${Ya} img`,pv="[data-te-carousel-item-next], [data-te-carousel-item-prev]",fv="[data-te-carousel-indicators]",_v="[data-te-target]",gv="[data-te-slide], [data-te-slide-to]",mv="touch",bv="pen";class ce extends Ht{constructor(t,e,i){super(t),this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this.touchStartX=0,this.touchDeltaX=0,this._config=this._getConfig(e),this._classes=this._getClasses(i),this._indicatorsElement=m.findOne(fv,this._element),this._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,this._pointerEvent=!!window.PointerEvent,this._setActiveElementClass(),this._addEventListeners(),this._didInit=!1,this._init(),this._config.ride==="carousel"&&this.cycle()}static get Default(){return cd}static get NAME(){return Wa}next(){this._slide(gi)}nextWhenVisible(){!document.hidden&&re(this._element)&&this.next()}prev(){this._slide(mi)}pause(t){t||(this._isPaused=!0),m.findOne(pv,this._element)&&(qc(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null}cycle(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config&&this._config.interval&&!this._isPaused&&(this._updateInterval(),this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))}to(t){this._activeElement=m.findOne(Zi,this._element);const e=this._getItemIndex(this._activeElement);if(t>this._items.length-1||t<0)return;if(this._isSliding){_.one(this._element,za,()=>this.to(t));return}if(e===t){this.pause(),this.cycle();return}const i=t>e?gi:mi;this._slide(i,this._items[t])}_init(){this._didInit||(_.on(document,rv,gv,ce.dataApiClickHandler),_.on(window,ov,()=>{const t=m.find(dv);for(let e=0,i=t.length;ethis.cycle());return}this.cycle()}}_applyInitialClasses(){const t=m.findOne(Zi,this._element);t.classList.add(this._classes.block,...this._classes.visible.split(" ")),this._setActiveIndicatorElement(t)}_handleSwipe(){const t=Math.abs(this.touchDeltaX);if(t<=jb)return;const e=t/this.touchDeltaX;this.touchDeltaX=0,e&&this._slide(e>0?Bs:bi)}_setActiveElementClass(){this._activeElement=m.findOne(Zi,this._element),g.addClass(this._activeElement,"hidden")}_addEventListeners(){this._config.keyboard&&_.on(this._element,qb,t=>this._keydown(t)),this._config.pause==="hover"&&(_.on(this._element,Zb,t=>this.pause(t)),_.on(this._element,Qb,t=>this._enableCycle(t))),this._config.touch&&this._touchSupported&&this._addTouchEventListeners(),this._applyInitialClasses()}_addTouchEventListeners(){const t=o=>this._pointerEvent&&(o.pointerType===bv||o.pointerType===mv),e=o=>{t(o)?this.touchStartX=o.clientX:this._pointerEvent||(this.touchStartX=o.touches[0].clientX)},i=o=>{this.touchDeltaX=o.touches&&o.touches.length>1?0:o.touches[0].clientX-this.touchStartX},n=o=>{t(o)&&(this.touchDeltaX=o.clientX-this.touchStartX),this._handleSwipe(),this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(r=>this._enableCycle(r),zb+this._config.interval))};m.find(uv,this._element).forEach(o=>{_.on(o,nv,r=>r.preventDefault())}),this._pointerEvent?(_.on(this._element,iv,o=>e(o)),_.on(this._element,sv,o=>n(o)),this._element.classList.add(this._classes.pointer),this._element.setAttribute(`${hv}`,"")):(_.on(this._element,Jb,o=>e(o)),_.on(this._element,tv,o=>i(o)),_.on(this._element,ev,o=>n(o)))}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const e=Xb[t.key];e&&(t.preventDefault(),this._slide(e))}_getItemIndex(t){return this._items=t&&t.parentNode?m.find(Ya,t.parentNode):[],this._items.indexOf(t)}_getItemByOrder(t,e){const i=t===gi;return eh(this._items,e,i,this._config.wrap)}_triggerSlideEvent(t,e){const i=this._getItemIndex(t),n=this._getItemIndex(m.findOne(Zi,this._element));return _.trigger(this._element,Gb,{relatedTarget:t,direction:e,from:n,to:i})}_setActiveIndicatorElement(t){if(this._indicatorsElement){const e=m.findOne(dd,this._indicatorsElement);e.removeAttribute(vi),e.removeAttribute("aria-current"),e.classList.remove("!opacity-100");const i=m.find(_v,this._indicatorsElement);for(let n=0;n{_.trigger(this._element,za,{relatedTarget:r,direction:u,from:o,to:a})};if(this._element.hasAttribute(hd)){r.setAttribute(`${d}`,""),r.classList.add(this._classes.block,f),Hi(r),n.setAttribute(`${h}`,""),n.classList.add(p,...this._classes.invisible.split(" ")),n.classList.remove(...this._classes.visible.split(" ")),r.setAttribute(`${h}`,""),r.classList.add(...this._classes.visible.split(" ")),r.classList.remove(this._classes.slideRight,this._classes.slideLeft);const y=()=>{r.removeAttribute(h),r.removeAttribute(d),r.setAttribute(`${vi}`,""),n.removeAttribute(vi),n.classList.remove(p,...this._classes.invisible.split(" "),this._classes.block),n.removeAttribute(d),n.removeAttribute(h),this._isSliding=!1,setTimeout(v,0)};this._queueCallback(y,n,!0)}else n.removeAttribute(vi),n.classList.remove(this._classes.block),r.setAttribute(`${vi}`,""),r.classList.add(this._classes.block),this._isSliding=!1,v();l&&this.cycle()}_directionToOrder(t){return[Bs,bi].includes(t)?st()?t===bi?mi:gi:t===bi?gi:mi:t}_orderToDirection(t){return[gi,mi].includes(t)?st()?t===mi?bi:Bs:t===mi?Bs:bi:t}static carouselInterface(t,e){const i=ce.getOrCreateInstance(t,e);let{_config:n}=i;typeof e=="object"&&(n={...n,...e});const o=typeof e=="string"?e:e.slide;if(typeof e=="number"){i.to(e);return}if(typeof o=="string"){if(typeof i[o]>"u")throw new TypeError(`No method named "${o}"`);i[o]()}else n.interval&&n.ride===!0&&i.pause()}static jQueryInterface(t){return this.each(function(){ce.carouselInterface(this,t)})}static dataApiClickHandler(t){const e=Re(this);if(!e||!e.hasAttribute(hd))return;const i={...g.getDataAttributes(e),...g.getDataAttributes(this)},n=this.getAttribute("data-te-slide-to");n&&(i.interval=!1),ce.carouselInterface(e,i),n&&ce.getInstance(e).to(n),t.preventDefault()}}const Ka="modal",Jt=".te.modal",ud="Escape",pd={backdrop:!0,keyboard:!0,focus:!0,modalNonInvasive:!1},vv={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",modalNonInvasive:"boolean"},yv={show:"transform-none",static:"scale-[1.02]",staticProperties:"transition-scale duration-300 ease-in-out"},Tv={show:"string",static:"string",staticProperties:"string"},Ev=`hide${Jt}`,xv=`hidePrevented${Jt}`,Cv=`hidden${Jt}`,Av=`show${Jt}`,wv=`shown${Jt}`,fd=`resize${Jt}`,_d=`click.dismiss${Jt}`,gd=`keydown.dismiss${Jt}`,kv=`mouseup.dismiss${Jt}`,md=`mousedown.dismiss${Jt}`,bd="data-te-modal-open",vd="data-te-open",Hs="[data-te-modal-dialog-ref]",Sv="[data-te-modal-body-ref]";class Vs extends Ht{constructor(t,e,i){super(t),this._config=this._getConfig(e),this._classes=this._getClasses(i),this._dialog=m.findOne(Hs,this._element),this._backdrop=this._config.modalNonInvasive?null:this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollBar=new Xi,this._didInit=!1,this._init()}static get Default(){return pd}static get NAME(){return Ka}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||this._isTransitioning||_.trigger(this._element,Av,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isAnimated()&&(this._isTransitioning=!0),!this._config.modalNonInvasive&&this._scrollBar.hide(),document.body.setAttribute(bd,"true"),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),_.on(this._dialog,md,()=>{_.one(this._element,kv,i=>{i.target===this._element&&(this._ignoreBackdropClick=!0)})}),this._showElement(t),!this._config.modalNonInvasive&&this._showBackdrop())}hide(){if(!this._isShown||this._isTransitioning||_.trigger(this._element,Ev).defaultPrevented)return;this._isShown=!1;const e=this._isAnimated();e&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),this._focustrap.disable(),m.findOne(Hs,this._element).classList.remove(this._classes.show),_.off(this._element,_d),_.off(this._dialog,md),this._queueCallback(()=>this._hideModal(),this._element,e),this._element.removeAttribute(vd)}dispose(){[window,this._dialog].forEach(t=>_.off(t,Jt)),this._backdrop&&this._backdrop.dispose(),this._focustrap.disable(),super.dispose()}handleUpdate(){this._adjustDialog()}_init(){this._didInit||(go(Vs),this._didInit=!0)}_initializeBackDrop(){return new Va({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Ps(this._element,{event:"keydown",condition:t=>t.key==="Tab"})}_getConfig(t){return t={...pd,...g.getDataAttributes(this._element),...typeof t=="object"?t:{}},L(Ka,t,vv),t}_getClasses(t){const e=g.getDataClassAttributes(this._element);return t={...yv,...e,...t},L(Ka,t,Tv),t}_showElement(t){const e=this._isAnimated(),i=m.findOne(Sv,this._dialog);(!this._element.parentNode||this._element.parentNode.nodeType!==Node.ELEMENT_NODE)&&document.body.append(this._element),this._element.style.display="block",this._element.classList.remove("hidden"),this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.setAttribute(`${vd}`,"true"),this._element.scrollTop=0;const n=m.findOne(Hs,this._element);n.classList.add(this._classes.show),n.classList.remove("opacity-0"),n.classList.add("opacity-100"),i&&(i.scrollTop=0),e&&Hi(this._element);const o=()=>{this._config.focus&&this._focustrap.trap(),this._isTransitioning=!1,_.trigger(this._element,wv,{relatedTarget:t})};this._queueCallback(o,this._dialog,e)}_setEscapeEvent(){this._isShown?_.on(document,gd,t=>{this._config.keyboard&&t.key===ud?(t.preventDefault(),this.hide()):!this._config.keyboard&&t.key===ud&&this._triggerBackdropTransition()}):_.off(this._element,gd)}_setResizeEvent(){this._isShown?_.on(window,fd,()=>this._adjustDialog()):_.off(window,fd)}_hideModal(){const t=m.findOne(Hs,this._element);t.classList.remove(this._classes.show),t.classList.remove("opacity-100"),t.classList.add("opacity-0"),setTimeout(()=>{this._element.style.display="none"},300),this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop&&this._backdrop.hide(()=>{document.body.removeAttribute(bd),this._resetAdjustments(),!this._config.modalNonInvasive&&this._scrollBar.reset(),_.trigger(this._element,Cv)})}_showBackdrop(t){_.on(this._element,_d,e=>{if(this._ignoreBackdropClick){this._ignoreBackdropClick=!1;return}e.target===e.currentTarget&&(this._config.backdrop===!0?this.hide():this._config.backdrop==="static"&&this._triggerBackdropTransition())}),this._backdrop&&this._backdrop.show(t)}_isAnimated(){return!!m.findOne(Hs,this._element)}_triggerBackdropTransition(){if(_.trigger(this._element,xv).defaultPrevented)return;const{classList:e,scrollHeight:i,style:n}=this._element,o=i>document.documentElement.clientHeight;!o&&n.overflowY==="hidden"||e.contains(this._classes.static)||(o||(n.overflowY="hidden"),e.add(...this._classes.static.split(" ")),e.add(...this._classes.staticProperties.split(" ")),this._queueCallback(()=>{e.remove(this._classes.static),setTimeout(()=>{e.remove(...this._classes.staticProperties.split(" "))},300),o||this._queueCallback(()=>{n.overflowY=""},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._scrollBar.getWidth(),i=e>0;(!i&&t&&!st()||i&&!t&&st())&&(this._element.style.paddingLeft=`${e}px`),(i&&!t&&!st()||!i&&t&&st())&&(this._element.style.paddingRight=`${e}px`)}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,e){return this.each(function(){const i=Vs.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof i[t]>"u")throw new TypeError(`No method named "${t}"`);i[t](e)}})}}const Ov=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Dv=/^aria-[\w-]*$/i,Iv=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i,Mv=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i,Lv=(s,t)=>{const e=s.nodeName.toLowerCase();if(t.includes(e))return Ov.has(e)?!!(Iv.test(s.nodeValue)||Mv.test(s.nodeValue)):!0;const i=t.filter(n=>n instanceof RegExp);for(let n=0,o=i.length;n{Lv(u,d)||l.removeAttribute(u.nodeName)})}return n.body.innerHTML}const Td="tooltip",he=".te.tooltip",Pv="te-tooltip",Rv=new Set(["sanitize","allowList","sanitizeFn"]),Nv={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(array|string|function)",container:"(string|element|boolean)",fallbackPlacements:"array",boundary:"(string|element)",customClass:"(string|function)",sanitize:"boolean",sanitizeFn:"(null|function)",allowList:"object",popperConfig:"(null|object|function)"},Bv={AUTO:"auto",TOP:"top",RIGHT:st()?"left":"right",BOTTOM:"bottom",LEFT:st()?"right":"left"},Hv={animation:!0,template:'',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:[0,0],container:!1,fallbackPlacements:["top","right","bottom","left"],boundary:"clippingParents",customClass:"",sanitize:!0,sanitizeFn:null,allowList:$v,popperConfig:{hide:!0}},Vv={HIDE:`hide${he}`,HIDDEN:`hidden${he}`,SHOW:`show${he}`,SHOWN:`shown${he}`,INSERTED:`inserted${he}`,CLICK:`click${he}`,FOCUSIN:`focusin${he}`,FOCUSOUT:`focusout${he}`,MOUSEENTER:`mouseenter${he}`,MOUSELEAVE:`mouseleave${he}`},Fv="fade",Wv="modal",Ua="show",Fs="show",Xa="out",Ed=".tooltip-inner",xd=`.${Wv}`,Cd="hide.te.modal",Ws="hover",Ga="focus",zv="click",jv="manual";let Qi=class Pg extends Ht{constructor(t,e){if(typeof zh>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(t),this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this._config=this._getConfig(e),this.tip=null,this._setListeners()}static get Default(){return Hv}static get NAME(){return Td}static get Event(){return Vv}static get DefaultType(){return Nv}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(t){if(this._isEnabled)if(t){const e=this._initializeOnDelegatedTarget(t);e._activeTrigger.click=!e._activeTrigger.click,e._isWithActiveTrigger()?e._enter(null,e):e._leave(null,e)}else{if(this.getTipElement().classList.contains(Ua)){this._leave(null,this);return}this._enter(null,this)}}dispose(){clearTimeout(this._timeout),_.off(this._element.closest(xd),Cd,this._hideModalHandler),this.tip&&this.tip.remove(),this._disposePopper(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!(this.isWithContent()&&this._isEnabled))return;const t=_.trigger(this._element,this.constructor.Event.SHOW),e=Zc(this._element),i=e===null?this._element.ownerDocument.documentElement.contains(this._element):e.contains(this._element);if(t.defaultPrevented||!i)return;this.constructor.NAME==="tooltip"&&this.tip&&this.getTitle()!==this.tip.querySelector(Ed).innerHTML&&(this._disposePopper(),this.tip.remove(),this.tip=null);const n=this.getTipElement(),o=Et(this.constructor.NAME);n.setAttribute("id",o),this._element.setAttribute("aria-describedby",o),this._config.animation&&setTimeout(()=>{this.tip.classList.add("opacity-100"),this.tip.classList.remove("opacity-0")},100);const r=typeof this._config.placement=="function"?this._config.placement.call(this,n,this._element):this._config.placement,a=this._getAttachment(r);this._addAttachmentClass(a);const{container:l}=this._config;if(D.setData(n,this.constructor.DATA_KEY,this),this._element.ownerDocument.documentElement.contains(this.tip)||(l.append(n),_.trigger(this._element,this.constructor.Event.INSERTED)),this._popper?this._popper.update():this._popper=fi(this._element,n,this._getPopperConfig(a)),n.getAttribute("id").includes("tooltip"))switch(r){case"bottom":n.classList.add("py-[0.4rem]");break;case"left":n.classList.add("px-[0.4rem]");break;case"right":n.classList.add("px-[0.4rem]");break;default:n.classList.add("py-[0.4rem]");break}const h=this._resolvePossibleFunction(this._config.customClass);h&&n.classList.add(...h.split(" ")),"ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach(p=>{_.on(p,"mouseover",eo)});const d=()=>{const p=this._hoverState;this._hoverState=null,_.trigger(this._element,this.constructor.Event.SHOWN),p===Xa&&this._leave(null,this)},u=this.tip.classList.contains("transition-opacity");this._queueCallback(d,this.tip,u)}hide(){if(!this._popper)return;const t=this.getTipElement(),e=()=>{this._isWithActiveTrigger()||(this._hoverState!==Fs&&t.remove(),this._cleanTipClass(),this._element.removeAttribute("aria-describedby"),_.trigger(this._element,this.constructor.Event.HIDDEN),this._disposePopper())};if(_.trigger(this._element,this.constructor.Event.HIDE).defaultPrevented)return;t.classList.add("opacity-0"),t.classList.remove("opacity-100"),"ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach(o=>_.off(o,"mouseover",eo)),this._activeTrigger[zv]=!1,this._activeTrigger[Ga]=!1,this._activeTrigger[Ws]=!1;const n=this.tip.classList.contains("opacity-0");this._queueCallback(e,this.tip,n),this._hoverState=""}update(){this._popper!==null&&this._popper.update()}isWithContent(){return!!this.getTitle()}getTipElement(){if(this.tip)return this.tip;const t=document.createElement("div");t.innerHTML=this._config.template;const e=t.children[0];return this.setContent(e),e.classList.remove(Fv,Ua),this.tip=e,this.tip}setContent(t){this._sanitizeAndSetContent(t,this.getTitle(),Ed)}_sanitizeAndSetContent(t,e,i){const n=m.findOne(i,t);if(!e&&n){n.remove();return}this.setElementContent(n,e)}setElementContent(t,e){if(t!==null){if(Bi(e)){e=Ne(e),this._config.html?e.parentNode!==t&&(t.innerHTML="",t.append(e)):t.textContent=e.textContent;return}this._config.html?(this._config.sanitize&&(e=yd(e,this._config.allowList,this._config.sanitizeFn)),t.innerHTML=e):t.textContent=e}}getTitle(){const t=this._element.getAttribute("data-te-original-title")||this._config.title;return this._resolvePossibleFunction(t)}updateAttachment(t){return t==="right"?"end":t==="left"?"start":t}_initializeOnDelegatedTarget(t,e){return e||this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig())}_getOffset(){const{offset:t}=this._config;return typeof t=="string"?t.split(",").map(e=>Number.parseInt(e,10)):typeof t=="function"?e=>t(e,this._element):t}_resolvePossibleFunction(t){return typeof t=="function"?t.call(this._element):t}_getPopperConfig(t){const e={placement:t,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"onChange",enabled:!0,phase:"afterWrite",fn:i=>this._handlePopperPlacementChange(i)}],onFirstUpdate:i=>{i.options.placement!==i.placement&&this._handlePopperPlacementChange(i)}};return{...e,...typeof this._config.popperConfig=="function"?this._config.popperConfig(e):this._config.popperConfig}}_addAttachmentClass(t){this.getTipElement().classList.add(`${this._getBasicClassPrefix()}-${this.updateAttachment(t)}`)}_getAttachment(t){return Bv[t.toUpperCase()]}_setListeners(){this._config.trigger.split(" ").forEach(e=>{if(e==="click")_.on(this._element,this.constructor.Event.CLICK,this._config.selector,i=>this.toggle(i));else if(e!==jv){const i=e===Ws?this.constructor.Event.MOUSEENTER:this.constructor.Event.FOCUSIN,n=e===Ws?this.constructor.Event.MOUSELEAVE:this.constructor.Event.FOCUSOUT;_.on(this._element,i,this._config.selector,o=>this._enter(o)),_.on(this._element,n,this._config.selector,o=>this._leave(o))}}),this._hideModalHandler=()=>{this._element&&this.hide()},_.on(this._element.closest(xd),Cd,this._hideModalHandler),this._config.selector?this._config={...this._config,trigger:"manual",selector:""}:this._fixTitle()}_fixTitle(){const t=this._element.getAttribute("title"),e=typeof this._element.getAttribute("data-te-original-title");(t||e!=="string")&&(this._element.setAttribute("data-te-original-title",t||""),t&&!this._element.getAttribute("aria-label")&&!this._element.textContent&&this._element.setAttribute("aria-label",t),this._element.setAttribute("title",""))}_enter(t,e){if(e=this._initializeOnDelegatedTarget(t,e),t&&(e._activeTrigger[t.type==="focusin"?Ga:Ws]=!0),e.getTipElement().classList.contains(Ua)||e._hoverState===Fs){e._hoverState=Fs;return}if(clearTimeout(e._timeout),e._hoverState=Fs,!e._config.delay||!e._config.delay.show){e.show();return}e._timeout=setTimeout(()=>{e._hoverState===Fs&&e.show()},e._config.delay.show)}_leave(t,e){if(e=this._initializeOnDelegatedTarget(t,e),t&&(e._activeTrigger[t.type==="focusout"?Ga:Ws]=e._element.contains(t.relatedTarget)),!e._isWithActiveTrigger()){if(clearTimeout(e._timeout),e._hoverState=Xa,!e._config.delay||!e._config.delay.hide){e.hide();return}e._timeout=setTimeout(()=>{e._hoverState===Xa&&e.hide()},e._config.delay.hide)}}_isWithActiveTrigger(){for(const t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1}_getConfig(t){const e=g.getDataAttributes(this._element);return Object.keys(e).forEach(i=>{Rv.has(i)&&delete e[i]}),t={...this.constructor.Default,...e,...typeof t=="object"&&t?t:{}},t.container=t.container===!1?document.body:Ne(t.container),typeof t.delay=="number"&&(t.delay={show:t.delay,hide:t.delay}),typeof t.title=="number"&&(t.title=t.title.toString()),typeof t.content=="number"&&(t.content=t.content.toString()),L(Td,t,this.constructor.DefaultType),t.sanitize&&(t.template=yd(t.template,t.allowList,t.sanitizeFn)),t}_getDelegateConfig(){const t={};for(const e in this._config)this.constructor.Default[e]!==this._config[e]&&(t[e]=this._config[e]);return t}_cleanTipClass(){const t=this.getTipElement(),e=new RegExp(`(^|\\s)${this._getBasicClassPrefix()}\\S+`,"g"),i=t.getAttribute("class").match(e);i!==null&&i.length>0&&i.map(n=>n.trim()).forEach(n=>t.classList.remove(n))}_getBasicClassPrefix(){return Pv}_handlePopperPlacementChange(t){const{state:e}=t;e&&(this.tip=e.elements.popper,this._cleanTipClass(),this._addAttachmentClass(this._getAttachment(e.placement)))}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null)}static jQueryInterface(t){return this.each(function(){const e=Pg.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]>"u")throw new TypeError(`No method named "${t}"`);e[t]()}})}};const Yv="popover",de=".te.popover",Kv="te-popover",Uv={...Qi.Default,placement:"right",offset:[0,8],trigger:"click",content:"",template:''},Xv={...Qi.DefaultType,content:"(string|element|function)"},Gv={HIDE:`hide${de}`,HIDDEN:`hidden${de}`,SHOW:`show${de}`,SHOWN:`shown${de}`,INSERTED:`inserted${de}`,CLICK:`click${de}`,FOCUSIN:`focusin${de}`,FOCUSOUT:`focusout${de}`,MOUSEENTER:`mouseenter${de}`,MOUSELEAVE:`mouseleave${de}`},qv=".popover-header",Zv=".popover-body";class mo extends Qi{static get Default(){return Uv}static get NAME(){return Yv}static get Event(){return Gv}static get DefaultType(){return Xv}isWithContent(){return this.getTitle()||this._getContent()}setContent(t){this._sanitizeAndSetContent(t,this.getTitle(),qv),this._sanitizeAndSetContent(t,this._getContent(),Zv)}_getContent(){return this._resolvePossibleFunction(this._config.content)}_getBasicClassPrefix(){return Kv}static jQueryInterface(t){return this.each(function(){const e=mo.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]>"u")throw new TypeError(`No method named "${t}"`);e[t]()}})}}const qa="scrollspy",Za=".te.scrollspy",Ad={offset:10,method:"auto",target:""},Qv={offset:"number",method:"string",target:"(string|element)"},Jv={active:"!text-primary dark:!text-primary-400 font-semibold border-l-[0.125rem] border-solid border-primary dark:border-primary-400"},t0={active:"string"},e0=`activate${Za}`,i0=`scroll${Za}`,Qa="data-te-nav-link-active",wd="[data-te-dropdown-item-ref]",s0="[data-te-nav-list-ref]",Ja="[data-te-nav-link-ref]",n0="[data-te-nav-item-ref]",kd="[data-te-list-group-item-ref]",tl=`${Ja}, ${kd}, ${wd}`,o0="[data-te-dropdown-ref]",r0="[data-te-dropdown-toggle-ref]",a0="maxOffset",Sd="position";class bo extends Ht{constructor(t,e,i){super(t),this._scrollElement=this._element.tagName==="BODY"?window:this._element,this._config=this._getConfig(e),this._classes=this._getClasses(i),this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,_.on(this._scrollElement,i0,()=>this._process()),this.refresh(),this._process()}static get Default(){return Ad}static get NAME(){return qa}refresh(){const t=this._scrollElement===this._scrollElement.window?a0:Sd,e=this._config.method==="auto"?t:this._config.method,i=e===Sd?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),m.find(tl,this._config.target).map(o=>{const r=ua(o),a=r?m.findOne(r):null;if(a){const l=a.getBoundingClientRect();if(l.width||l.height)return[g[e](a).top+i,r]}return null}).filter(o=>o).sort((o,r)=>o[0]-r[0]).forEach(o=>{this._offsets.push(o[0]),this._targets.push(o[1])})}dispose(){_.off(this._scrollElement,Za),super.dispose()}_getConfig(t){return t={...Ad,...g.getDataAttributes(this._element),...typeof t=="object"&&t?t:{}},t.target=Ne(t.target)||document.documentElement,L(qa,t,Qv),t}_getClasses(t){const e=g.getDataClassAttributes(this._element);return t={...Jv,...e,...t},L(qa,t,t0),t}_getScrollTop(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop}_getScrollHeight(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}_getOffsetHeight(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height}_process(){const t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),i=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),t>=i){const n=this._targets[this._targets.length-1];this._activeTarget!==n&&this._activate(n);return}if(this._activeTarget&&t0){this._activeTarget=null,this._clear();return}for(let n=this._offsets.length;n--;)this._activeTarget!==this._targets[n]&&t>=this._offsets[n]&&(typeof this._offsets[n+1]>"u"||t`${n}[data-te-target="${t}"],${n}[href="${t}"]`),i=m.findOne(e.join(","),this._config.target);i.classList.add(...this._classes.active.split(" ")),i.setAttribute(Qa,""),i.getAttribute(wd)?m.findOne(r0,i.closest(o0)).classList.add(...this._classes.active.split(" ")):m.parents(i,s0).forEach(n=>{m.prev(n,`${Ja}, ${kd}`).forEach(o=>{o.classList.add(...this._classes.active.split(" ")),o.setAttribute(Qa,"")}),m.prev(n,n0).forEach(o=>{m.children(o,Ja).forEach(r=>r.classList.add(...this._classes.active.split(" ")))})}),_.trigger(this._scrollElement,e0,{relatedTarget:t})}_clear(){m.find(tl,this._config.target).filter(t=>t.classList.contains(...this._classes.active.split(" "))).forEach(t=>{t.classList.remove(...this._classes.active.split(" ")),t.removeAttribute(Qa)})}static jQueryInterface(t){return this.each(function(){const e=bo.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]>"u")throw new TypeError(`No method named "${t}"`);e[t]()}})}}const Od="tab",vo=".te.tab",l0=`hide${vo}`,c0=`hidden${vo}`,h0=`show${vo}`,d0=`shown${vo}`,u0="data-te-dropdown-menu-ref",Ji="data-te-tab-active",yo="data-te-nav-active",p0="[data-te-dropdown-ref]",f0="[data-te-nav-ref]",Dd=`[${Ji}]`,_0=`[${yo}]`,Id=":scope > li > .active",g0="[data-te-dropdown-toggle-ref]",m0=":scope > [data-te-dropdown-menu-ref] [data-te-dropdown-show]",b0={show:"opacity-100",hide:"opacity-0"},v0={show:"string",hide:"string"};class To extends Ht{constructor(t,e){super(t),this._classes=this._getClasses(e)}static get NAME(){return Od}show(){if(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&this._element.getAttribute(yo)==="")return;let t;const e=Re(this._element),i=this._element.closest(f0),n=m.findOne(_0,i);if(i){const l=i.nodeName==="UL"||i.nodeName==="OL"?Id:Dd;t=m.find(l,i),t=t[t.length-1]}const o=t?_.trigger(t,l0,{relatedTarget:this._element}):null;if(_.trigger(this._element,h0,{relatedTarget:t}).defaultPrevented||o!==null&&o.defaultPrevented)return;this._activate(this._element,i,null,n,this._element);const a=()=>{_.trigger(t,c0,{relatedTarget:this._element}),_.trigger(this._element,d0,{relatedTarget:t})};e?this._activate(e,e.parentNode,a,n,this._element):a()}_getClasses(t){const e=g.getDataClassAttributes(this._element);return t={...b0,...e,...t},L(Od,t,v0),t}_activate(t,e,i,n,o){const a=(e&&(e.nodeName==="UL"||e.nodeName==="OL")?m.find(Id,e):m.children(e,Dd))[0],l=i&&a&&a.hasAttribute(Ji),c=()=>this._transitionComplete(t,a,i,n,o);a&&l?(g.removeClass(a,this._classes.show),g.addClass(a,this._classes.hide),this._queueCallback(c,t,!0)):c()}_transitionComplete(t,e,i,n,o){if(e&&n){e.removeAttribute(Ji),n.removeAttribute(yo);const a=m.findOne(m0,e.parentNode);a&&a.removeAttribute(Ji),e.getAttribute("role")==="tab"&&e.setAttribute("aria-selected",!1)}t.setAttribute(Ji,""),o.setAttribute(yo,""),t.getAttribute("role")==="tab"&&t.setAttribute("aria-selected",!0),Hi(t),t.classList.contains(this._classes.hide)&&(g.removeClass(t,this._classes.hide),g.addClass(t,this._classes.show));let r=t.parentNode;if(r&&r.nodeName==="LI"&&(r=r.parentNode),r&&r.hasAttribute(u0)){const a=t.closest(p0);a&&m.find(g0,a).forEach(l=>l.setAttribute(Ji,"")),t.setAttribute("aria-expanded",!0)}i&&i()}static jQueryInterface(t){return this.each(function(){const e=To.getOrCreateInstance(this);if(typeof t=="string"){if(typeof e[t]>"u")throw new TypeError(`No method named "${t}"`);e[t]()}})}}const el="toast",Fe=".te.toast",y0=`mouseover${Fe}`,T0=`mouseout${Fe}`,E0=`focusin${Fe}`,x0=`focusout${Fe}`,C0=`hide${Fe}`,A0=`hidden${Fe}`,w0=`show${Fe}`,k0=`shown${Fe}`,Md="data-te-toast-hide",il="data-te-toast-show",Eo="data-te-toast-showing",S0={animation:"boolean",autohide:"boolean",delay:"number"},Ld={animation:!0,autohide:!0,delay:5e3},O0={fadeIn:"animate-[fade-in_0.3s_both] p-[auto] motion-reduce:transition-none motion-reduce:animate-none",fadeOut:"animate-[fade-out_0.3s_both] p-[auto] motion-reduce:transition-none motion-reduce:animate-none"},D0={fadeIn:"string",fadeOut:"string"};class zs extends Ht{constructor(t,e,i){super(t),this._config=this._getConfig(e),this._classes=this._getClasses(i),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners(),this._didInit=!1,this._init()}static get DefaultType(){return S0}static get Default(){return Ld}static get NAME(){return el}show(){if(_.trigger(this._element,w0).defaultPrevented)return;this._clearTimeout(),this._config.animation&&(g.removeClass(this._element,this._classes.fadeOut),g.addClass(this._element,this._classes.fadeIn));const e=()=>{this._element.removeAttribute(Eo),_.trigger(this._element,k0),this._maybeScheduleHide()};this._element.removeAttribute(Md),Hi(this._element),this._element.setAttribute(il,""),this._element.setAttribute(Eo,""),this._queueCallback(e,this._element,this._config.animation)}hide(){if(!this._element||this._element.dataset.teToastShow===void 0||_.trigger(this._element,C0).defaultPrevented)return;const e=()=>{let i=0;this._config.animation&&(i=300,g.removeClass(this._element,this._classes.fadeIn),g.addClass(this._element,this._classes.fadeOut)),setTimeout(()=>{this._element.setAttribute(Md,""),this._element.removeAttribute(Eo),this._element.removeAttribute(il),_.trigger(this._element,A0)},i)};this._element.setAttribute(Eo,""),this._queueCallback(e,this._element,this._config.animation)}dispose(){this._clearTimeout(),this._element.dataset.teToastShow!==void 0&&this._element.removeAttribute(il),super.dispose()}_init(){this._didInit||(go(zs),this._didInit=!0)}_getConfig(t){return t={...Ld,...g.getDataAttributes(this._element),...typeof t=="object"&&t?t:{}},L(el,t,this.constructor.DefaultType),t}_getClasses(t){const e=g.getDataClassAttributes(this._element);return t={...O0,...e,...t},L(el,t,D0),t}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(t,e){switch(t.type){case"mouseover":case"mouseout":this._hasMouseInteraction=e;break;case"focusin":case"focusout":this._hasKeyboardInteraction=e;break}if(e){this._clearTimeout();return}const i=t.relatedTarget;this._element===i||this._element.contains(i)||this._maybeScheduleHide()}_setListeners(){_.on(this._element,y0,t=>this._onInteraction(t,!0)),_.on(this._element,T0,t=>this._onInteraction(t,!1)),_.on(this._element,E0,t=>this._onInteraction(t,!0)),_.on(this._element,x0,t=>this._onInteraction(t,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each(function(){const e=zs.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]>"u")throw new TypeError(`No method named "${t}"`);e[t](this)}})}}(()=>{var s={454:(i,n,o)=>{o.d(n,{Z:()=>l});var r=o(645),a=o.n(r)()(function(c){return c[1]});a.push([i.id,"INPUT:-webkit-autofill,SELECT:-webkit-autofill,TEXTAREA:-webkit-autofill{animation-name:onautofillstart}INPUT:not(:-webkit-autofill),SELECT:not(:-webkit-autofill),TEXTAREA:not(:-webkit-autofill){animation-name:onautofillcancel}@keyframes onautofillstart{}@keyframes onautofillcancel{}",""]);const l=a},645:i=>{i.exports=function(n){var o=[];return o.toString=function(){return this.map(function(r){var a=n(r);return r[2]?"@media ".concat(r[2]," {").concat(a,"}"):a}).join("")},o.i=function(r,a,l){typeof r=="string"&&(r=[[null,r,""]]);var c={};if(l)for(var h=0;h{(function(){if(typeof window<"u")try{var i=new window.CustomEvent("test",{cancelable:!0});if(i.preventDefault(),i.defaultPrevented!==!0)throw new Error("Could not prevent default")}catch{var n=function(r,a){var l,c;return(a=a||{}).bubbles=!!a.bubbles,a.cancelable=!!a.cancelable,(l=document.createEvent("CustomEvent")).initCustomEvent(r,a.bubbles,a.cancelable,a.detail),c=l.preventDefault,l.preventDefault=function(){c.call(this);try{Object.defineProperty(this,"defaultPrevented",{get:function(){return!0}})}catch{this.defaultPrevented=!0}},l};n.prototype=window.Event.prototype,window.CustomEvent=n}})()},379:(i,n,o)=>{var r,a=function(){var x={};return function(E){if(x[E]===void 0){var C=document.querySelector(E);if(window.HTMLIFrameElement&&C instanceof window.HTMLIFrameElement)try{C=C.contentDocument.head}catch{C=null}x[E]=C}return x[E]}}(),l=[];function c(x){for(var E=-1,C=0;C{var n=i&&i.__esModule?()=>i.default:()=>i;return e.d(n,{a:n}),n},e.d=(i,n)=>{for(var o in n)e.o(n,o)&&!e.o(i,o)&&Object.defineProperty(i,o,{enumerable:!0,get:n[o]})},e.o=(i,n)=>Object.prototype.hasOwnProperty.call(i,n),(()=>{var i=e(379),n=e.n(i),o=e(454);function r(l){if(!l.hasAttribute("autocompleted")){l.setAttribute("autocompleted","");var c=new window.CustomEvent("onautocomplete",{bubbles:!0,cancelable:!0,detail:null});l.dispatchEvent(c)||(l.value="")}}function a(l){l.hasAttribute("autocompleted")&&(l.removeAttribute("autocompleted"),l.dispatchEvent(new window.CustomEvent("onautocomplete",{bubbles:!0,cancelable:!1,detail:null})))}n()(o.Z,{insert:"head",singleton:!1}),o.Z.locals,e(810),document.addEventListener("animationstart",function(l){l.animationName==="onautofillstart"?r(l.target):a(l.target)},!0),document.addEventListener("input",function(l){l.inputType!=="insertReplacementText"&&"data"in l?a(l.target):r(l.target)},!0)})()})();const sl="input",xo="te.input",$d="data-te-input-wrapper-init",Pd="data-te-input-notch-ref",Rd="data-te-input-notch-leading-ref",Nd="data-te-input-notch-middle-ref",I0="data-te-input-notch-trailing-ref",M0="data-te-input-helper-ref",L0="data-te-input-placeholder-active",We="data-te-input-state-active",Bd="data-te-input-focused",Hd="data-te-input-form-counter",yi=`[${$d}] input`,Ti=`[${$d}] textarea`,ts=`[${Pd}]`,Vd=`[${Rd}]`,Fd=`[${Nd}]`,$0=`[${M0}]`,P0={inputFormWhite:!1},R0={inputFormWhite:"(boolean)"},Wd={notch:"group flex absolute left-0 top-0 w-full max-w-full h-full text-left pointer-events-none",notchLeading:"pointer-events-none border border-solid box-border bg-transparent transition-all duration-200 ease-linear motion-reduce:transition-none left-0 top-0 h-full w-2 border-r-0 rounded-l-[0.25rem] group-data-[te-input-focused]:border-r-0 group-data-[te-input-state-active]:border-r-0",notchLeadingNormal:"border-neutral-300 dark:border-neutral-600 group-data-[te-input-focused]:shadow-[-1px_0_0_#3b71ca,_0_1px_0_0_#3b71ca,_0_-1px_0_0_#3b71ca] group-data-[te-input-focused]:border-primary",notchLeadingWhite:"border-neutral-200 group-data-[te-input-focused]:shadow-[-1px_0_0_#ffffff,_0_1px_0_0_#ffffff,_0_-1px_0_0_#ffffff] group-data-[te-input-focused]:border-white",notchMiddle:"pointer-events-none border border-solid box-border bg-transparent transition-all duration-200 ease-linear motion-reduce:transition-none grow-0 shrink-0 basis-auto w-auto max-w-[calc(100%-1rem)] h-full border-r-0 border-l-0 group-data-[te-input-focused]:border-x-0 group-data-[te-input-state-active]:border-x-0 group-data-[te-input-focused]:border-t group-data-[te-input-state-active]:border-t group-data-[te-input-focused]:border-solid group-data-[te-input-state-active]:border-solid group-data-[te-input-focused]:border-t-transparent group-data-[te-input-state-active]:border-t-transparent",notchMiddleNormal:"border-neutral-300 dark:border-neutral-600 group-data-[te-input-focused]:shadow-[0_1px_0_0_#3b71ca] group-data-[te-input-focused]:border-primary",notchMiddleWhite:"border-neutral-200 group-data-[te-input-focused]:shadow-[0_1px_0_0_#ffffff] group-data-[te-input-focused]:border-white",notchTrailing:"pointer-events-none border border-solid box-border bg-transparent transition-all duration-200 ease-linear motion-reduce:transition-none grow h-full border-l-0 rounded-r-[0.25rem] group-data-[te-input-focused]:border-l-0 group-data-[te-input-state-active]:border-l-0",notchTrailingNormal:"border-neutral-300 dark:border-neutral-600 group-data-[te-input-focused]:shadow-[1px_0_0_#3b71ca,_0_-1px_0_0_#3b71ca,_0_1px_0_0_#3b71ca] group-data-[te-input-focused]:border-primary",notchTrailingWhite:"border-neutral-200 group-data-[te-input-focused]:shadow-[1px_0_0_#ffffff,_0_-1px_0_0_#ffffff,_0_1px_0_0_#ffffff] group-data-[te-input-focused]:border-white",counter:"text-right leading-[1.6]"},N0={notch:"string",notchLeading:"string",notchLeadingNormal:"string",notchLeadingWhite:"string",notchMiddle:"string",notchMiddleNormal:"string",notchMiddleWhite:"string",notchTrailing:"string",notchTrailingNormal:"string",notchTrailingWhite:"string",counter:"string"};class Z{constructor(t,e,i){this._config=this._getConfig(e,t),this._element=t,this._classes=this._getClasses(i),this._label=null,this._labelWidth=0,this._labelMarginLeft=0,this._notchLeading=null,this._notchMiddle=null,this._notchTrailing=null,this._initiated=!1,this._helper=null,this._counter=!1,this._counterElement=null,this._maxLength=0,this._leadingIcon=null,this._element&&(D.setData(t,xo,this),this.init())}static get NAME(){return sl}get input(){return m.findOne("input",this._element)||m.findOne("textarea",this._element)}init(){this._initiated||(this._getLabelData(),this._applyDivs(),this._applyNotch(),this._activate(),this._getHelper(),this._getCounter(),this._getEvents(),this._initiated=!0)}update(){this._getLabelData(),this._getNotchData(),this._applyNotch(),this._activate(),this._getHelper(),this._getCounter()}forceActive(){this.input.setAttribute(We,""),m.findOne(ts,this.input.parentNode).setAttribute(We,"")}forceInactive(){this.input.removeAttribute(We),m.findOne(ts,this.input.parentNode).removeAttribute(We)}dispose(){this._removeBorder(),D.removeData(this._element,xo),this._element=null}_getConfig(t,e){return t={...P0,...g.getDataAttributes(e),...typeof t=="object"?t:{}},L(sl,t,R0),t}_getClasses(t){const e=g.getDataClassAttributes(this._element);return t={...Wd,...e,...t},L(sl,t,N0),t}_getLabelData(){this._label=m.findOne("label",this._element),this._label===null?this._showPlaceholder():(this._getLabelWidth(),this._getLabelPositionInInputGroup(),this._toggleDefaultDatePlaceholder())}_getHelper(){this._helper=m.findOne($0,this._element)}_getCounter(){this._counter=g.getDataAttribute(this.input,"inputShowcounter"),this._counter&&(this._maxLength=this.input.maxLength,this._showCounter())}_getEvents(){_.on(document,"focus",yi,Z.activate(new Z)),_.on(document,"input",yi,Z.activate(new Z)),_.on(document,"blur",yi,Z.deactivate(new Z)),_.on(document,"focus",Ti,Z.activate(new Z)),_.on(document,"input",Ti,Z.activate(new Z)),_.on(document,"blur",Ti,Z.deactivate(new Z)),_.on(window,"shown.te.modal",t=>{m.find(yi,t.target).forEach(e=>{const i=Z.getInstance(e.parentNode);i&&i.update()}),m.find(Ti,t.target).forEach(e=>{const i=Z.getInstance(e.parentNode);i&&i.update()})}),_.on(window,"shown.te.dropdown",t=>{const e=t.target.parentNode.querySelector("[data-te-dropdown-menu-ref]");e&&(m.find(yi,e).forEach(i=>{const n=Z.getInstance(i.parentNode);n&&n.update()}),m.find(Ti,e).forEach(i=>{const n=Z.getInstance(i.parentNode);n&&n.update()}))}),_.on(window,"shown.te.tab",t=>{let e;t.target.href?e=t.target.href.split("#")[1]:e=g.getDataAttribute(t.target,"target").split("#")[1];const i=m.findOne(`#${e}`);m.find(yi,i).forEach(n=>{const o=Z.getInstance(n.parentNode);o&&o.update()}),m.find(Ti,i).forEach(n=>{const o=Z.getInstance(n.parentNode);o&&o.update()})}),_.on(window,"reset",t=>{m.find(yi,t.target).forEach(e=>{const i=Z.getInstance(e.parentNode);i&&i.forceInactive()}),m.find(Ti,t.target).forEach(e=>{const i=Z.getInstance(e.parentNode);i&&i.forceInactive()})}),_.on(window,"onautocomplete",t=>{const e=Z.getInstance(t.target.parentNode);!e||!t.cancelable||e.forceActive()})}_showCounter(){if(m.find(`[${Hd}]`,this._element).length>0)return;this._counterElement=document.createElement("div"),g.addClass(this._counterElement,this._classes.counter),this._counterElement.setAttribute(Hd,"");const e=this.input.value.length;this._counterElement.innerHTML=`${e} / ${this._maxLength}`,this._helper.appendChild(this._counterElement),this._bindCounter()}_bindCounter(){_.on(this.input,"input",()=>{const t=this.input.value.length;this._counterElement.innerHTML=`${t} / ${this._maxLength}`})}_toggleDefaultDatePlaceholder(t=this.input){if(!(t.getAttribute("type")==="date"))return;!(document.activeElement===t)&&!t.value?t.style.opacity=0:t.style.opacity=1}_showPlaceholder(){this.input.setAttribute(L0,"")}_getNotchData(){this._notchMiddle=m.findOne(Fd,this._element),this._notchLeading=m.findOne(Vd,this._element)}_getLabelWidth(){this._labelWidth=this._label.clientWidth*.8+8}_getLabelPositionInInputGroup(){if(this._labelMarginLeft=0,!this._element.hasAttribute("data-te-input-group-ref"))return;const t=this.input,e=m.prev(t,"[data-te-input-group-text-ref]")[0];e===void 0?this._labelMarginLeft=0:this._labelMarginLeft=e.offsetWidth-1}_applyDivs(){const t=this._config.inputFormWhite?this._classes.notchLeadingWhite:this._classes.notchLeadingNormal,e=this._config.inputFormWhite?this._classes.notchMiddleWhite:this._classes.notchMiddleNormal,i=this._config.inputFormWhite?this._classes.notchTrailingWhite:this._classes.notchTrailingNormal,n=m.find(ts,this._element),o=$("div");g.addClass(o,this._classes.notch),o.setAttribute(Pd,""),this._notchLeading=$("div"),g.addClass(this._notchLeading,`${this._classes.notchLeading} ${t}`),this._notchLeading.setAttribute(Rd,""),this._notchMiddle=$("div"),g.addClass(this._notchMiddle,`${this._classes.notchMiddle} ${e}`),this._notchMiddle.setAttribute(Nd,""),this._notchTrailing=$("div"),g.addClass(this._notchTrailing,`${this._classes.notchTrailing} ${i}`),this._notchTrailing.setAttribute(I0,""),!(n.length>=1)&&(o.append(this._notchLeading),o.append(this._notchMiddle),o.append(this._notchTrailing),this._element.append(o))}_applyNotch(){this._notchMiddle.style.width=`${this._labelWidth}px`,this._notchLeading.style.width=`${this._labelMarginLeft+9}px`,this._label!==null&&(this._label.style.marginLeft=`${this._labelMarginLeft}px`)}_removeBorder(){const t=m.findOne(ts,this._element);t&&t.remove()}_activate(t){Jc(()=>{this._getElements(t);const e=t?t.target:this.input,i=m.findOne(ts,this._element);t&&t.type==="focus"&&i&&i.setAttribute(Bd,""),e.value!==""&&(e.setAttribute(We,""),i&&i.setAttribute(We,"")),this._toggleDefaultDatePlaceholder(e)})}_getElements(t){if(t&&(this._element=t.target.parentNode,this._label=m.findOne("label",this._element)),t&&this._label){const e=this._labelWidth;this._getLabelData(),e!==this._labelWidth&&(this._notchMiddle=m.findOne(Fd,t.target.parentNode),this._notchLeading=m.findOne(Vd,t.target.parentNode),this._applyNotch())}}_deactivate(t){const e=t?t.target:this.input,i=m.findOne(ts,e.parentNode);i.removeAttribute(Bd),e.value===""&&(e.removeAttribute(We),i.removeAttribute(We)),this._toggleDefaultDatePlaceholder(e)}static activate(t){return function(e){t._activate(e)}}static deactivate(t){return function(e){t._deactivate(e)}}static jQueryInterface(t,e){return this.each(function(){let i=D.getData(this,xo);const n=typeof t=="object"&&t;if(!(!i&&/dispose/.test(t))&&(i||(i=new Z(this,n)),typeof t=="string")){if(typeof i[t]>"u")throw new TypeError(`No method named "${t}"`);i[t](e)}})}static getInstance(t){return D.getData(t,xo)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,typeof e=="object"?e:null)}}const zd="animation",nl="te.animation",B0={animation:"string",animationStart:"string",animationShowOnLoad:"boolean",onStart:"(null|function)",onEnd:"(null|function)",onHide:"(null|function)",onShow:"(null|function)",animationOnScroll:"(string)",animationWindowHeight:"number",animationOffset:"(number|string)",animationDelay:"(number|string)",animationReverse:"boolean",animationInterval:"(number|string)",animationRepeat:"(number|boolean)",animationReset:"boolean"},H0={animation:"fade",animationStart:"onClick",animationShowOnLoad:!0,onStart:null,onEnd:null,onHide:null,onShow:null,animationOnScroll:"once",animationWindowHeight:0,animationOffset:0,animationDelay:0,animationReverse:!1,animationInterval:0,animationRepeat:!1,animationReset:!1};class js{constructor(t,e){this._element=t,this._animateElement=this._getAnimateElement(),this._isFirstScroll=!0,this._repeatAnimateOnScroll=!0,this._options=this._getConfig(e),this._element&&(D.setData(t,nl,this),this._init())}static get NAME(){return zd}init(){this._init()}startAnimation(){this._startAnimation()}stopAnimation(){this._clearAnimationClass()}changeAnimationType(t){this._options.animation=t}dispose(){_.off(this._element,"mousedown"),_.off(this._animateElement,"animationend"),_.off(window,"scroll"),_.off(this._element,"mouseover"),D.removeData(this._element,nl),this._element=null,this._animateElement=null,this._isFirstScroll=null,this._repeatAnimateOnScroll=null,this._options=null}_init(){switch(this._options.animationStart){case"onHover":this._bindHoverEvents();break;case"onLoad":this._startAnimation();break;case"onScroll":this._bindScrollEvents();break;case"onClick":this._bindClickEvents();break}this._bindTriggerOnEndCallback(),this._options.animationReset&&this._bindResetAnimationAfterFinish()}_getAnimateElement(){const t=g.getDataAttribute(this._element,"animation-target");return t?m.find(t)[0]:this._element}_getConfig(t){const e=g.getDataAttributes(this._animateElement);return t={...H0,...e,...t},L(zd,t,B0),t}_animateOnScroll(){const t=g.offset(this._animateElement).top,e=this._animateElement.offsetHeight,i=window.innerHeight,n=t+this._options.animationOffset<=i&&t+this._options.animationOffset+e>=0,o=this._animateElement.style.visibility==="visible";switch(!0){case(n&&this._isFirstScroll):this._isFirstScroll=!1,this._startAnimation();break;case(!n&&this._isFirstScroll):this._isFirstScroll=!1,this._hideAnimateElement();break;case(n&&!o&&this._repeatAnimateOnScroll):this._options.animationOnScroll!=="repeat"&&(this._repeatAnimateOnScroll=!1),this._callback(this._options.onShow),this._showAnimateElement(),this._startAnimation();break;case(!n&&o&&this._repeatAnimateOnScroll):this._hideAnimateElement(),this._clearAnimationClass(),this._callback(this._options.onHide);break}}_addAnimatedClass(){g.addClass(this._animateElement,`animate-${this._options.animation}`)}_clearAnimationClass(){this._animateElement.classList.remove(`animate-${this._options.animation}`)}_startAnimation(){this._callback(this._options.onStart),this._addAnimatedClass(),this._options.animationRepeat&&!this._options.animationInterval&&this._setAnimationRepeat(),this._options.animationReverse&&this._setAnimationReverse(),this._options.animationDelay&&this._setAnimationDelay(),this._options.animationDuration&&this._setAnimationDuration(),this._options.animationInterval&&this._setAnimationInterval()}_setAnimationReverse(){g.style(this._animateElement,{animationIterationCount:this._options.animationRepeat===!0?"infinite":"2",animationDirection:"alternate"})}_setAnimationDuration(){g.style(this._animateElement,{animationDuration:`${this._options.animationDuration}ms`})}_setAnimationDelay(){g.style(this._animateElement,{animationDelay:`${this._options.animationDelay}ms`})}_setAnimationRepeat(){g.style(this._animateElement,{animationIterationCount:this._options.animationRepeat===!0?"infinite":this._options.animationRepeat})}_setAnimationInterval(){_.on(this._animateElement,"click",()=>{this._clearAnimationClass(),setTimeout(()=>{this._addAnimatedClass()},this._options.animationInterval)})}_hideAnimateElement(){g.style(this._animateElement,{visibility:"hidden"})}_showAnimateElement(){g.style(this._animateElement,{visibility:"visible"})}_bindResetAnimationAfterFinish(){_.on(this._animateElement,"animationend",()=>{this._clearAnimationClass()})}_bindTriggerOnEndCallback(){_.on(this._animateElement,"animationend",()=>{this._callback(this._options.onEnd)})}_bindScrollEvents(){this._options.animationShowOnLoad||this._animateOnScroll(),_.on(window,"scroll",()=>{this._animateOnScroll()})}_bindClickEvents(){_.on(this._element,"mousedown",()=>{this._startAnimation()})}_bindHoverEvents(){_.one(this._element,"mouseover",()=>{this._startAnimation()}),_.one(this._animateElement,"animationend",()=>{setTimeout(()=>{this._bindHoverEvents()},100)})}_callback(t){t instanceof Function&&t()}static autoInit(t){t._init()}static jQueryInterface(t){new js(this[0],t).init()}static getInstance(t){return D.getData(t,nl)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,typeof e=="object"?e:null)}}const ol="ripple",Co="te.ripple",V0="rgba({{color}}, 0.2) 0, rgba({{color}}, 0.3) 40%, rgba({{color}}, 0.4) 50%, rgba({{color}}, 0.5) 60%, rgba({{color}}, 0) 70%",F0=["[data-te-ripple-init]"],Ao=[0,0,0],W0=[{name:"primary",gradientColor:"#3B71CA"},{name:"secondary",gradientColor:"#9FA6B2"},{name:"success",gradientColor:"#14A44D"},{name:"danger",gradientColor:"#DC4C64"},{name:"warning",gradientColor:"#E4A11B"},{name:"info",gradientColor:"#54B4D3"},{name:"light",gradientColor:"#fbfbfb"},{name:"dark",gradientColor:"#262626"}],jd=.5,z0={rippleCentered:!1,rippleColor:"",rippleColorDark:"",rippleDuration:"500ms",rippleRadius:0,rippleUnbound:!1},j0={rippleCentered:"boolean",rippleColor:"string",rippleColorDark:"string",rippleDuration:"string",rippleRadius:"number",rippleUnbound:"boolean"},Y0={ripple:"relative overflow-hidden inline-block align-bottom",rippleWave:"rounded-[50%] opacity-50 pointer-events-none absolute touch-none scale-0 transition-[transform,_opacity] ease-[cubic-bezier(0,0,0.15,1),_cubic-bezier(0,0,0.15,1)] z-[999]",unbound:"overflow-visible"},K0={ripple:"string",rippleWave:"string",unbound:"string"};class ze{constructor(t,e,i){this._element=t,this._options=this._getConfig(e),this._classes=this._getClasses(i),this._element&&(D.setData(t,Co,this),g.addClass(this._element,this._classes.ripple)),this._clickHandler=this._createRipple.bind(this),this._rippleTimer=null,this._isMinWidthSet=!1,this._initialClasses=null,this.init()}static get NAME(){return ol}init(){this._addClickEvent(this._element)}dispose(){D.removeData(this._element,Co),_.off(this._element,"click",this._clickHandler),this._element=null,this._options=null}_autoInit(t){F0.forEach(e=>{m.closest(t.target,e)&&(this._element=m.closest(t.target,e))}),this._element.style.minWidth||(g.style(this._element,{"min-width":getComputedStyle(this._element).width}),this._isMinWidthSet=!0),this._options=this._getConfig(),this._classes=this._getClasses(),this._initialClasses=[...this._element.classList],g.addClass(this._element,this._classes.ripple),this._createRipple(t)}_addClickEvent(t){_.on(t,"mousedown",this._clickHandler)}_createRipple(t){this._element.className.indexOf(this._classes.ripple)<0&&g.addClass(this._element,this._classes.ripple);const{layerX:e,layerY:i}=t,n=t.offsetX||e,o=t.offsetY||i,r=this._element.offsetHeight,a=this._element.offsetWidth,l=this._durationToMsNumber(this._options.rippleDuration),c={offsetX:this._options.rippleCentered?r/2:n,offsetY:this._options.rippleCentered?a/2:o,height:r,width:a},h=this._getDiameter(c),d=this._options.rippleRadius||h/2,u={delay:l*jd,duration:l-l*jd},p={left:this._options.rippleCentered?`${a/2-d}px`:`${n-d}px`,top:this._options.rippleCentered?`${r/2-d}px`:`${o-d}px`,height:`${this._options.rippleRadius*2||h}px`,width:`${this._options.rippleRadius*2||h}px`,transitionDelay:`0s, ${u.delay}ms`,transitionDuration:`${l}ms, ${u.duration}ms`},f=$("div");this._createHTMLRipple({wrapper:this._element,ripple:f,styles:p}),this._removeHTMLRipple({ripple:f,duration:l})}_createHTMLRipple({wrapper:t,ripple:e,styles:i}){Object.keys(i).forEach(n=>e.style[n]=i[n]),g.addClass(e,this._classes.rippleWave),e.setAttribute("data-te-ripple-ref",""),this._addColor(e,t),this._toggleUnbound(t),this._appendRipple(e,t)}_removeHTMLRipple({ripple:t,duration:e}){this._rippleTimer&&(clearTimeout(this._rippleTimer),this._rippleTimer=null),t&&setTimeout(()=>{t.classList.add("!opacity-0")},10),this._rippleTimer=setTimeout(()=>{if(t&&(t.remove(),this._element)){m.find("[data-te-ripple-ref]",this._element).forEach(n=>{n.remove()}),this._isMinWidthSet&&(g.style(this._element,{"min-width":""}),this._isMinWidthSet=!1);const i=this._initialClasses?this._addedNewRippleClasses(this._classes.ripple,this._initialClasses):this._classes.ripple.split(" ");g.removeClass(this._element,i)}},e)}_addedNewRippleClasses(t,e){return t.split(" ").filter(i=>e.findIndex(n=>i===n)===-1)}_durationToMsNumber(t){return Number(t.replace("ms","").replace("s","000"))}_getConfig(t={}){const e=g.getDataAttributes(this._element);return t={...z0,...e,...t},L(ol,t,j0),t}_getClasses(t={}){const e=g.getDataClassAttributes(this._element);return t={...Y0,...e,...t},L(ol,t,K0),t}_getDiameter({offsetX:t,offsetY:e,height:i,width:n}){const o=e<=i/2,r=t<=n/2,a=(u,p)=>Math.sqrt(u**2+p**2),l=e===i/2&&t===n/2,c={first:o===!0&&r===!1,second:o===!0&&r===!0,third:o===!1&&r===!0,fourth:o===!1&&r===!1},h={topLeft:a(t,e),topRight:a(n-t,e),bottomLeft:a(t,i-e),bottomRight:a(n-t,i-e)};let d=0;return l||c.fourth?d=h.topLeft:c.third?d=h.topRight:c.second?d=h.bottomRight:c.first&&(d=h.bottomLeft),d*2}_appendRipple(t,e){e.appendChild(t),setTimeout(()=>{g.addClass(t,"opacity-0 scale-100")},50)}_toggleUnbound(t){this._options.rippleUnbound===!0?g.addClass(t,this._classes.unbound):g.removeClass(t,this._classes.unbound)}_addColor(t){let e=this._options.rippleColor||"rgb(0,0,0)";(localStorage.theme==="dark"||!("theme"in localStorage)&&window.matchMedia("(prefers-color-scheme: dark)").matches)&&(e=this._options.rippleColorDark||this._options.rippleColor);const i=W0.find(r=>r.name===e.toLowerCase()),n=i?this._colorToRGB(i.gradientColor).join(","):this._colorToRGB(e).join(","),o=V0.split("{{color}}").join(`${n}`);t.style.backgroundImage=`radial-gradient(circle, ${o})`}_colorToRGB(t){function e(o){return o.length<7&&(o=`#${o[1]}${o[1]}${o[2]}${o[2]}${o[3]}${o[3]}`),[parseInt(o.substr(1,2),16),parseInt(o.substr(3,2),16),parseInt(o.substr(5,2),16)]}function i(o){const r=document.body.appendChild(document.createElement("fictum")),a="rgb(1, 2, 3)";return r.style.color=a,r.style.color!==a||(r.style.color=o,r.style.color===a||r.style.color==="")?Ao:(o=getComputedStyle(r).color,document.body.removeChild(r),o)}function n(o){return o=o.match(/[.\d]+/g).map(r=>+Number(r)),o.length=3,o}return t.toLowerCase()==="transparent"?Ao:t[0]==="#"?e(t):(t.indexOf("rgb")===-1&&(t=i(t)),t.indexOf("rgb")===0?n(t):Ao)}static autoInitial(t){return function(e){t._autoInit(e)}}static jQueryInterface(t){return this.each(function(){return D.getData(this,Co)?null:new ze(this,t)})}static getInstance(t){return D.getData(t,Co)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,typeof e=="object"?e:null)}}function bt(s){return s.getDate()}function wo(s){return s.getDay()}function ot(s){return s.getMonth()}function K(s){return s.getFullYear()}function U0(s,t,e){const i=e.startDay,n=i>0?7-i:0,r=new Date(s,t).getDay()+n;return r>=7?r-7:r}function rl(s){return X0(s).getDate()}function X0(s){return te(s.getFullYear(),s.getMonth()+1,0)}function es(){return new Date}function xt(s,t){return Ct(s,t*12)}function Ct(s,t){const e=te(s.getFullYear(),s.getMonth()+t,s.getDate()),i=bt(s),n=bt(e);return i!==n&&e.setDate(0),e}function is(s,t){return te(s.getFullYear(),s.getMonth(),s.getDate()+t)}function te(s,t,e){const i=new Date(s,t,e);return s>=0&&s<100&&i.setFullYear(i.getFullYear()-1900),i}function Yd(s){const t=s.split("-"),e=t[0],i=t[1],n=t[2];return te(e,i,n)}function G0(s){return!Number.isNaN(s.getTime())}function ss(s,t){return K(s)-K(t)||ot(s)-ot(t)||bt(s)-bt(t)}function Ei(s,t){return s.setHours(0,0,0,0),t.setHours(0,0,0,0),s.getTime()===t.getTime()}function ko(s,t){const i=K(s)-Z0();return q0(i,t)}function q0(s,t){return(s%t+t)%t}function Z0(s,t,e){let i=0;return e?i=K(e)-s+1:t&&(i=K(t)),i}function So(s,t,e,i,n,o){const r=new Date;r.setHours(0,0,0,0);const a=t&&ss(s,t)<=-1,l=e&&ss(s,e)>=1,c=n&&ss(s,r)<=-1,h=o&&ss(s,r)>=1,d=i&&i(s)===!1;return a||l||d||c||h}function Kd(s,t,e,i,n,o){const r=new Date,a=i&&K(i),l=i&&ot(i),c=e&&K(e),h=e&&ot(e),d=K(r),u=ot(r),p=l&&a&&(t>a||t===a&&s>l),f=h&&c&&(td||t===d&&s>u);return p||f||b||v}function al(s,t,e,i,n){const o=t&&K(t),r=e&&K(e),a=K(new Date),l=r&&s>r,c=o&&sa;return l||c||h||d}function Q0(s,t,e,i,n,o,r,a){const l=new Date;return l.setHours(0,0,0,0),(s&&o&&ss(o,l)<0||s)&&(o=l),o&&Ys(t,o,e,i,n,o,r,a)}function J0(s,t,e,i,n,o,r,a){const l=new Date;return l.setHours(0,0,0,0),(s&&n&&ss(n,l)<0||s)&&(n=l),n&&Ys(t,n,e,i,n,o,r,a)}function Ys(s,t,e,i,n,o,r,a){return e==="days"?K(s)===K(t)&&ot(s)===ot(t):e==="months"?K(s)===K(t):e==="years"?K(t)>=a&&K(t)<=r:!1}const ty="data-te-datepicker-modal-container-ref",ey="data-te-datepicker-dropdown-container-ref",iy="data-te-dropdown-backdrop-ref",sy="data-te-datepicker-date-text-ref",Ud="data-te-datepicker-view-ref",ny="data-te-datepicker-previous-button-ref",oy="data-te-datepicker-next-button-ref",ry="data-te-datepicker-ok-button-ref",ay="data-te-datepicker-cancel-button-ref",ly="data-te-datepicker-clear-button-ref",cy="data-te-datepicker-view-change-button-ref";function hy(s,t,e,i,n,o,r,a,l,c){const h=ot(s),d=K(s),u=bt(s),p=wo(s),f=$("div"),b=` + ${Xd(s,h,d,t,e,i,n,o,r,a,c)} `,v=` - ${c0(u,p,h,n,c)} - ${id(i,h,d,t,e,s,n,o,r,a,c)} - `;return n.inline?(_.addClass(f,c.datepickerDropdownContainer),f.setAttribute(Qv,l),f.innerHTML=b):(_.addClass(f,c.modalContainer),f.setAttribute(Zv,l),f.innerHTML=v),f}function l0(i){const t=L("div");return _.addClass(t,i),t.setAttribute(Jv,""),t}function c0(i,t,e,s,n){return` -
+ ${uy(u,p,h,n,c)} + ${Xd(s,h,d,t,e,i,n,o,r,a,c)} + `;return n.inline?(g.addClass(f,c.datepickerDropdownContainer),f.setAttribute(ey,l),f.innerHTML=b):(g.addClass(f,c.modalContainer),f.setAttribute(ty,l),f.innerHTML=v),f}function dy(s){const t=$("div");return g.addClass(t,s),t.setAttribute(iy,""),t}function uy(s,t,e,i,n){return` +
- ${s.title} + ${i.title}
- ${s.weekdaysShort[t]}, ${s.monthsShort[e]} ${i} + ${i.weekdaysShort[t]}, ${i.monthsShort[e]} ${s}
- `}function id(i,t,e,s,n,o,r,a,l,c,h){let d;return r.inline?d=` + `}function Xd(s,t,e,i,n,o,r,a,l,c,h){let d;return r.inline?d=`
- ${nd(t,e,r,h)} -
- ${sd(i,e,s,n,o,r,a,l,c,h)} + ${qd(t,e,r,h)} +
+ ${Gd(s,e,i,n,o,r,a,l,c,h)}
`:d=`
- ${nd(t,e,r,h)} -
- ${sd(i,e,s,n,o,r,a,l,c,h)} + ${qd(t,e,r,h)} +
+ ${Gd(s,e,i,n,o,r,a,l,c,h)}
- ${h0(r,h)} + ${py(r,h)}
- `,d}function sd(i,t,e,s,n,o,r,a,l,c){let h;return o.view==="days"?h=mo(i,e,o,c):o.view==="months"?h=bo(t,s,n,o,r,c):h=vo(i,s,o,a,l,c),h}function nd(i,t,e,s){return` -
- -
- - +
+ +
- `}function ue(i,t){return` + `}function ue(s,t){return` - ${i.viewChangeIconTemplate} + ${s.viewChangeIconTemplate} - `}function h0(i,t){const e=``,s=``,n=``;return` + `}function py(s,t){const e=``,i=``,n=``;return`
- ${i.removeClearBtn?"":n} - ${i.removeCancelBtn?"":s} - ${i.removeOkBtn?"":e} + ${s.removeClearBtn?"":n} + ${s.removeCancelBtn?"":i} + ${s.removeOkBtn?"":e}
- `}function mo(i,t,e,s){const n=d0(i,t,e),r=` + `}function Oo(s,t,e,i){const n=fy(s,t,e),r=` - ${e.weekdaysNarrow.map((l,c)=>`${l}`).join("")} + ${e.weekdaysNarrow.map((l,c)=>`${l}`).join("")} `,a=n.map(l=>` ${l.map(c=>`
${c.dayNumber} @@ -91,7 +91,7 @@ `).join("")} `).join("");return` - +
${r} @@ -99,16 +99,16 @@ ${a}
- `}function d0(i,t,e){const s=[],n=ot(i),o=ot(Et(i,-1)),r=ot(Et(i,1)),a=K(i),l=Yv(a,n,e),c=Da(i),h=Da(Et(i,-1)),d=7;let u=1,p=!1;for(let f=1;fc&&(u=1,p=!1);const y=de(a,p?n:r,u);b.push({date:y,currentMonth:p,isSelected:t&&xi(y,t),isToday:xi(y,Qi()),dayNumber:bt(y),disabled:go(y,e.min,e.max,e.filter,e.disablePast,e.disableFuture)}),u++}s.push(b)}return s}function bo(i,t,e,s,n,o){const r=u0(s,n),a=ot(Qi()),l=K(Qi()),c=` + `}function fy(s,t,e){const i=[],n=ot(s),o=ot(Ct(s,-1)),r=ot(Ct(s,1)),a=K(s),l=U0(a,n,e),c=rl(s),h=rl(Ct(s,-1)),d=7;let u=1,p=!1;for(let f=1;fc&&(u=1,p=!1);const y=te(a,p?n:r,u);b.push({date:y,currentMonth:p,isSelected:t&&Ei(y,t),isToday:Ei(y,es()),dayNumber:bt(y),disabled:So(y,e.min,e.max,e.filter,e.disablePast,e.disableFuture)}),u++}i.push(b)}return i}function Do(s,t,e,i,n,o){const r=_y(i,n),a=ot(es()),l=K(es()),c=` ${r.map(h=>` - ${h.map(d=>{const u=s.monthsShort.indexOf(d);return` + ${h.map(d=>{const u=i.monthsShort.indexOf(d);return` + data-te-month="${u}" data-te-year="${s}" aria-label="${d}, ${s}" + ${u===e&&s===t?"data-te-datepicker-cell-selected":""} + ${u===a&&s===l?"data-te-datepicker-cell-current":""}" data-te-month="${u}" data-te-year="${s}" aria-label="${d}, ${s}">
${d}
`}).join("")} @@ -120,12 +120,12 @@ ${c} - `}function u0(i,t){const e=[];let s=[];for(let n=0;n` ${c.map(h=>` @@ -140,22 +140,22 @@ ${l} - `}function p0(i,t,e){const s=[],n=K(i),o=_o(i,t),r=n-o;let a=[];for(let l=0;l + `}function gy(s,t,e){const i=[],n=K(s),o=ko(s,t),r=n-o;let a=[];for(let l=0;l - `}const es=37,Ct=38,is=39,ut=40,ss=36,ns=35,Ma=33,La=34,$t=13,yo=32,Hs=27,Fs=9,_0=8,g0=46,te=24,xo=4,To=4,$a="datepicker",Eo="te.datepicker",Co=`.${Eo}`,m0=".data-api",b0=`close${Co}`,v0=`open${Co}`,y0=`dateChange${Co}`,Ao=`click${Co}${m0}`,od="data-te-datepicker-modal-container-ref",rd="data-te-datepicker-dropdown-container-ref",wo="[data-te-datepicker-toggle-ref]",x0=`[${od}]`,T0=`[${rd}]`,E0="[data-te-datepicker-view-change-button-ref]",C0="[data-te-datepicker-previous-button-ref]",A0="[data-te-datepicker-next-button-ref]",w0="[data-te-datepicker-ok-button-ref]",k0="[data-te-datepicker-cancel-button-ref]",S0="[data-te-datepicker-clear-button-ref]",O0="[data-te-datepicker-view-ref]",D0="[data-te-datepicker-toggle-button-ref]",I0="[data-te-datepicker-date-text-ref]",M0="[data-te-dropdown-backdrop-ref]",L0="animate-[fade-in_0.3s_both] px-[auto] motion-reduce:transition-none motion-reduce:animate-none",$0="animate-[fade-out_0.3s_both] px-[auto] motion-reduce:transition-none motion-reduce:animate-none",R0="animate-[fade-in_0.15s_both] px-[auto] motion-reduce:transition-none motion-reduce:animate-none",P0="animate-[fade-out_0.15s_both] px-[auto] motion-reduce:transition-none motion-reduce:animate-none",N0="flex flex-col fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[328px] h-[512px] bg-white rounded-[0.6rem] shadow-lg z-[1066] xs:max-md:landscape:w-[475px] xs:max-md:landscape:h-[360px] xs:max-md:landscape:flex-row dark:bg-zinc-700",B0="w-full h-full fixed top-0 right-0 left-0 bottom-0 bg-black/40 z-[1065]",H0="relative h-full",F0="xs:max-md:landscape:h-full h-[120px] px-6 bg-primary flex flex-col rounded-t-lg dark:bg-zinc-800",W0="h-8 flex flex-col justify-end",V0="text-[10px] font-normal uppercase tracking-[1.7px] text-white",z0="xs:max-md:landscape:mt-24 h-[72px] flex flex-col justify-end",Y0="text-[34px] font-normal text-white",j0="outline-none px-3",K0="px-3 pt-2.5 pb-0 flex justify-between text-black/[64]",U0="flex items-center outline-none p-2.5 text-neutral-500 font-medium text-[0.9rem] rounded-xl shadow-none bg-transparent m-0 border-none hover:bg-neutral-200 focus:bg-neutral-200 dark:text-white dark:hover:bg-white/10 dark:focus:bg-white/10",X0="mt-2.5",G0="p-0 w-10 h-10 leading-10 border-none outline-none m-0 text-gray-600 bg-transparent mr-6 hover:bg-neutral-200 hover:rounded-[50%] focus:bg-neutral-200 focus:rounded-[50%] dark:text-white dark:hover:bg-white/10 dark:focus:bg-white/10 [&>svg]:w-4 [&>svg]:h-4 [&>svg]:mx-auto",q0="p-0 w-10 h-10 leading-10 border-none outline-none m-0 text-gray-600 bg-transparent hover:bg-neutral-200 hover:rounded-[50%] focus:bg-neutral-200 focus:rounded-[50%] dark:text-white dark:hover:bg-white/10 dark:focus:bg-white/10 [&>svg]:w-4 [&>svg]:h-4 [&>svg]:rotate-180 [&>svg]:mx-auto",Z0="h-14 flex absolute w-full bottom-0 justify-end items-center px-3",Q0="outline-none bg-white text-primary border-none cursor-pointer py-0 px-2.5 uppercase text-[0.8rem] leading-10 font-medium h-10 tracking-[.1rem] rounded-[10px] mb-2.5 hover:bg-neutral-200 focus:bg-neutral-200 dark:bg-transparent dark:text-white dark:hover:bg-white/10 dark:focus:bg-white/10",J0="mr-auto",ty="w-10 h-10 text-center text-[12px] font-normal dark:text-white",ey="text-center data-[te-datepicker-cell-disabled]:text-neutral-300 data-[te-datepicker-cell-disabled]:cursor-default data-[te-datepicker-cell-disabled]:pointer-events-none data-[te-datepicker-cell-disabled]:hover:cursor-default hover:cursor-pointer group",iy="w-10 h-10 xs:max-md:landscape:w-8 xs:max-md:landscape:h-8",sy="w-[76px] h-[42px]",ny="mx-auto group-[:not([data-te-datepicker-cell-disabled]):not([data-te-datepicker-cell-selected]):hover]:bg-neutral-300 group-[[data-te-datepicker-cell-selected]]:bg-primary group-[[data-te-datepicker-cell-selected]]:text-white group-[:not([data-te-datepicker-cell-selected])[data-te-datepicker-cell-focused]]:bg-neutral-100 group-[[data-te-datepicker-cell-focused]]:data-[te-datepicker-cell-selected]:bg-primary group-[[data-te-datepicker-cell-current]]:border-solid group-[[data-te-datepicker-cell-current]]:border-black group-[[data-te-datepicker-cell-current]]:border dark:group-[:not([data-te-datepicker-cell-disabled]):not([data-te-datepicker-cell-selected]):hover]:bg-white/10 dark:group-[[data-te-datepicker-cell-current]]:border-white dark:text-white dark:group-[:not([data-te-datepicker-cell-selected])[data-te-datepicker-cell-focused]]:bg-white/10 dark:group-[[data-te-datepicker-cell-disabled]]:text-neutral-500",oy="w-9 h-9 leading-9 rounded-[50%] text-[13px]",ry="w-[72px] h-10 leading-10 py-[1px] px-0.5 rounded-[999px]",ay="mx-auto w-[304px]",ly="flex items-center justify-content-center [&>svg]:w-5 [&>svg]:h-5 absolute outline-none border-none bg-transparent right-0.5 top-1/2 -translate-x-1/2 -translate-y-1/2 hover:text-primary focus:text-primary dark:hover:text-primary-400 dark:focus:text-primary-400 dark:text-neutral-200",cy="inline-block pointer-events-none ml-[3px] [&>svg]:w-4 [&>svg]:h-4 [&>svg]:fill-neutral-500 dark:[&>svg]:fill-white",hy="w-[328px] h-[380px] bg-white rounded-lg shadow-[0px_2px_15px_-3px_rgba(0,0,0,.07),_0px_10px_20px_-2px_rgba(0,0,0,.04)] z-[1066] dark:bg-zinc-700",dy={title:"Select date",container:"body",disablePast:!1,disableFuture:!1,monthsFull:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdaysFull:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],weekdaysNarrow:["S","M","T","W","T","F","S"],okBtnText:"Ok",clearBtnText:"Clear",cancelBtnText:"Cancel",okBtnLabel:"Confirm selection",clearBtnLabel:"Clear selection",cancelBtnLabel:"Cancel selection",nextMonthLabel:"Next month",prevMonthLabel:"Previous month",nextYearLabel:"Next year",prevYearLabel:"Previous year",changeMonthIconTemplate:` + `}const ns=37,At=38,os=39,ut=40,rs=36,as=35,ll=33,cl=34,Pt=13,Mo=32,Ks=27,Us=9,by=8,vy=46,ee=24,Lo=4,$o=4,hl="datepicker",Po="te.datepicker",Ro=`.${Po}`,yy=".data-api",Ty=`close${Ro}`,Ey=`open${Ro}`,xy=`dateChange${Ro}`,No=`click${Ro}${yy}`,Zd="data-te-datepicker-modal-container-ref",Qd="data-te-datepicker-dropdown-container-ref",Bo="[data-te-datepicker-toggle-ref]",Cy=`[${Zd}]`,Ay=`[${Qd}]`,wy="[data-te-datepicker-view-change-button-ref]",ky="[data-te-datepicker-previous-button-ref]",Sy="[data-te-datepicker-next-button-ref]",Oy="[data-te-datepicker-ok-button-ref]",Dy="[data-te-datepicker-cancel-button-ref]",Iy="[data-te-datepicker-clear-button-ref]",My="[data-te-datepicker-view-ref]",Ly="[data-te-datepicker-toggle-button-ref]",$y="[data-te-datepicker-date-text-ref]",Py="[data-te-dropdown-backdrop-ref]",Ry="animate-[fade-in_0.3s_both] px-[auto] motion-reduce:transition-none motion-reduce:animate-none",Ny="animate-[fade-out_0.3s_both] px-[auto] motion-reduce:transition-none motion-reduce:animate-none",By="animate-[fade-in_0.15s_both] px-[auto] motion-reduce:transition-none motion-reduce:animate-none",Hy="animate-[fade-out_0.15s_both] px-[auto] motion-reduce:transition-none motion-reduce:animate-none",Vy="flex flex-col fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[328px] h-[512px] bg-white rounded-[0.6rem] shadow-lg z-[1066] xs:max-md:landscape:w-[475px] xs:max-md:landscape:h-[360px] xs:max-md:landscape:flex-row dark:bg-zinc-700",Fy="w-full h-full fixed top-0 right-0 left-0 bottom-0 bg-black/40 z-[1065]",Wy="relative h-full",zy="xs:max-md:landscape:h-full h-[120px] px-6 bg-primary flex flex-col rounded-t-lg dark:bg-zinc-800",jy="h-8 flex flex-col justify-end",Yy="text-[10px] font-normal uppercase tracking-[1.7px] text-white",Ky="xs:max-md:landscape:mt-24 h-[72px] flex flex-col justify-end",Uy="text-[34px] font-normal text-white",Xy="outline-none px-3",Gy="px-3 pt-2.5 pb-0 flex justify-between text-black/[64]",qy="flex items-center outline-none p-2.5 text-neutral-500 font-medium text-[0.9rem] rounded-xl shadow-none bg-transparent m-0 border-none hover:bg-neutral-200 focus:bg-neutral-200 dark:text-white dark:hover:bg-white/10 dark:focus:bg-white/10",Zy="mt-2.5",Qy="p-0 w-10 h-10 leading-10 border-none outline-none m-0 text-gray-600 bg-transparent mr-6 hover:bg-neutral-200 hover:rounded-[50%] focus:bg-neutral-200 focus:rounded-[50%] dark:text-white dark:hover:bg-white/10 dark:focus:bg-white/10 [&>svg]:w-4 [&>svg]:h-4 [&>svg]:mx-auto",Jy="p-0 w-10 h-10 leading-10 border-none outline-none m-0 text-gray-600 bg-transparent hover:bg-neutral-200 hover:rounded-[50%] focus:bg-neutral-200 focus:rounded-[50%] dark:text-white dark:hover:bg-white/10 dark:focus:bg-white/10 [&>svg]:w-4 [&>svg]:h-4 [&>svg]:rotate-180 [&>svg]:mx-auto",tT="h-14 flex absolute w-full bottom-0 justify-end items-center px-3",eT="outline-none bg-white text-primary border-none cursor-pointer py-0 px-2.5 uppercase text-[0.8rem] leading-10 font-medium h-10 tracking-[.1rem] rounded-[10px] mb-2.5 hover:bg-neutral-200 focus:bg-neutral-200 dark:bg-transparent dark:text-white dark:hover:bg-white/10 dark:focus:bg-white/10",iT="mr-auto",sT="w-10 h-10 text-center text-[12px] font-normal dark:text-white",nT="text-center data-[te-datepicker-cell-disabled]:text-neutral-300 data-[te-datepicker-cell-disabled]:cursor-default data-[te-datepicker-cell-disabled]:pointer-events-none data-[te-datepicker-cell-disabled]:hover:cursor-default hover:cursor-pointer group",oT="w-10 h-10 xs:max-md:landscape:w-8 xs:max-md:landscape:h-8",rT="w-[76px] h-[42px]",aT="mx-auto group-[:not([data-te-datepicker-cell-disabled]):not([data-te-datepicker-cell-selected]):hover]:bg-neutral-300 group-[[data-te-datepicker-cell-selected]]:bg-primary group-[[data-te-datepicker-cell-selected]]:text-white group-[:not([data-te-datepicker-cell-selected])[data-te-datepicker-cell-focused]]:bg-neutral-100 group-[[data-te-datepicker-cell-focused]]:data-[te-datepicker-cell-selected]:bg-primary group-[[data-te-datepicker-cell-current]]:border-solid group-[[data-te-datepicker-cell-current]]:border-black group-[[data-te-datepicker-cell-current]]:border dark:group-[:not([data-te-datepicker-cell-disabled]):not([data-te-datepicker-cell-selected]):hover]:bg-white/10 dark:group-[[data-te-datepicker-cell-current]]:border-white dark:text-white dark:group-[:not([data-te-datepicker-cell-selected])[data-te-datepicker-cell-focused]]:bg-white/10 dark:group-[[data-te-datepicker-cell-disabled]]:text-neutral-500",lT="w-9 h-9 leading-9 rounded-[50%] text-[13px]",cT="w-[72px] h-10 leading-10 py-[1px] px-0.5 rounded-[999px]",hT="mx-auto w-[304px]",dT="flex items-center justify-content-center [&>svg]:w-5 [&>svg]:h-5 absolute outline-none border-none bg-transparent right-0.5 top-1/2 -translate-x-1/2 -translate-y-1/2 hover:text-primary focus:text-primary dark:hover:text-primary-400 dark:focus:text-primary-400 dark:text-neutral-200",uT="inline-block pointer-events-none ml-[3px] [&>svg]:w-4 [&>svg]:h-4 [&>svg]:fill-neutral-500 dark:[&>svg]:fill-white",pT="w-[328px] h-[380px] bg-white rounded-lg shadow-[0px_2px_15px_-3px_rgba(0,0,0,.07),_0px_10px_20px_-2px_rgba(0,0,0,.04)] z-[1066] dark:bg-zinc-700",fT={title:"Select date",container:"body",disablePast:!1,disableFuture:!1,monthsFull:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdaysFull:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],weekdaysNarrow:["S","M","T","W","T","F","S"],okBtnText:"Ok",clearBtnText:"Clear",cancelBtnText:"Cancel",okBtnLabel:"Confirm selection",clearBtnLabel:"Clear selection",cancelBtnLabel:"Cancel selection",nextMonthLabel:"Next month",prevMonthLabel:"Previous month",nextYearLabel:"Next year",prevYearLabel:"Previous year",changeMonthIconTemplate:` `,nextMultiYearLabel:"Next 24 years",prevMultiYearLabel:"Previous 24 years",switchToMultiYearViewLabel:"Choose year and month",switchToMonthViewLabel:"Choose date",switchToDayViewLabel:"Choose date",startDate:null,startDay:0,format:"dd/mm/yyyy",view:"days",viewChangeIconTemplate:` - `,min:null,max:null,filter:null,inline:!1,toggleButton:!0,disableToggleButton:!1,disableInput:!1,animations:!0,confirmDateOnSelect:!1,removeOkBtn:!1,removeCancelBtn:!1,removeClearBtn:!1},uy={title:"string",container:"string",disablePast:"boolean",disableFuture:"boolean",monthsFull:"array",monthsShort:"array",weekdaysFull:"array",weekdaysShort:"array",weekdaysNarrow:"array",okBtnText:"string",clearBtnText:"string",cancelBtnText:"string",okBtnLabel:"string",clearBtnLabel:"string",cancelBtnLabel:"string",nextMonthLabel:"string",prevMonthLabel:"string",nextYearLabel:"string",prevYearLabel:"string",nextMultiYearLabel:"string",prevMultiYearLabel:"string",changeMonthIconTemplate:"string",switchToMultiYearViewLabel:"string",switchToMonthViewLabel:"string",switchToDayViewLabel:"string",startDate:"(null|string|date)",startDay:"number",format:"string",view:"string",viewChangeIconTemplate:"string",min:"(null|string|date)",max:"(null|string|date)",filter:"(null|function)",inline:"boolean",toggleButton:"boolean",disableToggleButton:"boolean",disableInput:"boolean",animations:"boolean",confirmDateOnSelect:"boolean",removeOkBtn:"boolean",removeCancelBtn:"boolean",removeClearBtn:"boolean"},py={fadeIn:L0,fadeOut:$0,fadeInShort:R0,fadeOutShort:P0,modalContainer:N0,datepickerBackdrop:B0,datepickerMain:H0,datepickerHeader:F0,datepickerTitle:W0,datepickerTitleText:V0,datepickerDate:z0,datepickerDateText:Y0,datepickerView:j0,datepickerDateControls:K0,datepickerViewChangeButton:U0,datepickerViewChangeIcon:cy,datepickerArrowControls:X0,datepickerPreviousButton:G0,datepickerNextButton:q0,datepickerFooter:Z0,datepickerFooterBtn:Q0,datepickerClearBtn:J0,datepickerDayHeading:ty,datepickerCell:ey,datepickerCellSmall:iy,datepickerCellLarge:sy,datepickerCellContent:ny,datepickerCellContentSmall:oy,datepickerCellContentLarge:ry,datepickerTable:ay,datepickerToggleButton:ly,datepickerDropdownContainer:hy},fy={fadeIn:"string",fadeOut:"string",fadeInShort:"string",fadeOutShort:"string",modalContainer:"string",datepickerBackdrop:"string",datepickerMain:"string",datepickerHeader:"string",datepickerTitle:"string",datepickerTitleText:"string",datepickerDate:"string",datepickerDateText:"string",datepickerView:"string",datepickerDateControls:"string",datepickerViewChangeButton:"string",datepickerArrowControls:"string",datepickerPreviousButton:"string",datepickerNextButton:"string",datepickerFooter:"string",datepickerFooterBtn:"string",datepickerClearBtn:"string",datepickerDayHeading:"string",datepickerCell:"string",datepickerCellSmall:"string",datepickerCellLarge:"string",datepickerCellContent:"string",datepickerCellContentSmall:"string",datepickerCellContentLarge:"string",datepickerTable:"string",datepickerToggleButton:"string",datepickerDropdownContainer:"string"};class ad{constructor(t,e,s){this._element=t,this._input=m.findOne("input",this._element),this._options=this._getConfig(e),this._classes=this._getClasses(s),this._activeDate=new Date,this._selectedDate=null,this._selectedYear=null,this._selectedMonth=null,this._headerDate=null,this._headerYear=null,this._headerMonth=null,this._view=this._options.view,this._popper=null,this._focusTrap=null,this._isOpen=!1,this._toggleButtonId=Gt("datepicker-toggle-"),this._animations=!window.matchMedia("(prefers-reduced-motion: reduce)").matches&&this._options.animations,this._scrollBar=new Ds,this._element&&M.setData(t,Eo,this),this._init(),this.toggleButton&&this._options.disableToggle&&(this.toggleButton.disabled="true"),this._options.disableInput&&(this._input.disabled="true")}static get NAME(){return $a}get container(){return m.findOne(`[${od}='${this._toggleButtonId}']`)||m.findOne(`[${rd}='${this._toggleButtonId}']`)}get options(){return this._options}get activeCell(){let t;return this._view==="days"&&(t=this._getActiveDayCell()),this._view==="months"&&(t=this._getActiveMonthCell()),this._view==="years"&&(t=this._getActiveYearCell()),t}get activeDay(){return bt(this._activeDate)}get activeMonth(){return ot(this._activeDate)}get activeYear(){return K(this._activeDate)}get firstYearInView(){return this.activeYear-_o(this._activeDate,te)}get lastYearInView(){return this.firstYearInView+te-1}get viewChangeButton(){return m.findOne(E0,this.container)}get previousButton(){return m.findOne(C0,this.container)}get nextButton(){return m.findOne(A0,this.container)}get okButton(){return m.findOne(w0,this.container)}get cancelButton(){return m.findOne(k0,this.container)}get clearButton(){return m.findOne(S0,this.container)}get datesContainer(){return m.findOne(O0,this.container)}get toggleButton(){return m.findOne(D0,this._element)}update(t={}){this._options=this._getConfig({...this._options,...t})}_getConfig(t){const e=_.getDataAttributes(this._element);if(t={...dy,...e,...t},P($a,t,uy),t.max&&typeof t.max=="string"&&(t.max=new Date(t.max)),t.min&&typeof t.min=="string"&&(t.min=new Date(t.min)),t.startDay&&t.startDay!==0){const s=this._getNewDaysOrderArray(t);t.weekdaysNarrow=s}return t}_getClasses(t){const e=_.getDataClassAttributes(this._element);return t={...py,...e,...t},P($a,t,fy),t}_getContainer(){return m.findOne(this._options.container)}_getNewDaysOrderArray(t){const e=t.startDay,s=t.weekdaysNarrow;return s.slice(e).concat(s.slice(0,e))}_init(){!this.toggleButton&&this._options.toggleButton&&(this._appendToggleButton(),(this._input.readOnly||this._input.disabled)&&(this.toggleButton.style.pointerEvents="none")),this._listenToUserInput(),this._listenToToggleClick(),this._listenToToggleKeydown()}_appendToggleButton(){const t=f0(this._toggleButtonId,this._classes.datepickerToggleButton);this._element.insertAdjacentHTML("beforeend",t)}open(){if(this._input.readOnly||this._input.disabled)return;const t=g.trigger(this._element,v0);if(this._isOpen||t.defaultPrevented)return;this._setInitialDate();const e=l0(this._classes.datepickerBackdrop),s=a0(this._activeDate,this._selectedDate,this._selectedYear,this._selectedMonth,this._options,To,te,xo,this._toggleButtonId,this._classes);this._options.inline?this._openDropdown(s):(this._openModal(e,s),this._scrollBar.hide()),this._animations&&(_.addClass(this.container,this._classes.fadeIn),_.addClass(e,this._classes.fadeInShort)),this._setFocusTrap(this.container),this._listenToDateSelection(),this._addControlsListeners(),this._updateControlsDisabledState(),this._listenToEscapeClick(),this._listenToKeyboardNavigation(),this._listenToDatesContainerFocus(),this._listenToDatesContainerBlur(),this._asyncFocusDatesContainer(),this._updateViewControlsAndAttributes(this._view),this._isOpen=!0,setTimeout(()=>{this._listenToOutsideClick()},0)}_openDropdown(t){this._popper=pi(this._input,t,{placement:"bottom-start"}),this._getContainer().appendChild(t)}_openModal(t,e){const s=this._getContainer();s.appendChild(t),s.appendChild(e)}_setFocusTrap(t){this._focusTrap=new Is(t,{event:"keydown",condition:e=>e.key==="Tab"}),this._focusTrap.trap()}_listenToUserInput(){g.on(this._input,"input",t=>{this._handleUserInput(t.target.value)})}_listenToToggleClick(){g.on(this._element,Ao,wo,t=>{t.preventDefault(),this.open()})}_listenToToggleKeydown(){g.on(this._element,"keydown",wo,t=>{t.keyCode===$t&&!this._isOpen&&this.open()})}_listenToDateSelection(){g.on(this.datesContainer,"click",t=>{this._handleDateSelection(t)})}_handleDateSelection(t){const e=t.target.nodeName==="DIV"?t.target.parentNode.dataset:t.target.dataset,s=t.target.nodeName==="DIV"?t.target.parentNode:t.target;if(e.teDate&&this._pickDay(e.teDate,s),e.teMonth&&e.teYear){const n=parseInt(e.teMonth,10),o=parseInt(e.teYear,10);this._pickMonth(n,o)}if(e.teYear&&!e.teMonth){const n=parseInt(e.teYear,10);this._pickYear(n)}this._options.inline||this._updateHeaderDate(this._activeDate,this._options.monthsShort,this._options.weekdaysShort)}_updateHeaderDate(t,e,s){const n=m.findOne(I0,this.container),o=ot(t),r=bt(t),a=fo(t);n.innerHTML=`${s[a]}, ${e[o]} ${r}`}_addControlsListeners(){g.on(this.nextButton,"click",()=>{this._view==="days"?this.nextMonth():this._view==="years"?this.nextYears():this.nextYear(),this._updateControlsDisabledState()}),g.on(this.previousButton,"click",()=>{this._view==="days"?this.previousMonth():this._view==="years"?this.previousYears():this.previousYear(),this._updateControlsDisabledState()}),g.on(this.viewChangeButton,"click",()=>{this._view==="days"?this._changeView("years"):(this._view==="years"||this._view==="months")&&this._changeView("days")}),this._options.inline||this._listenToFooterButtonsClick()}_listenToFooterButtonsClick(){g.on(this.okButton,"click",()=>this.handleOk()),g.on(this.cancelButton,"click",()=>this.handleCancel()),g.on(this.clearButton,"click",()=>this.handleClear())}_listenToOutsideClick(){g.on(document,Ao,t=>{const e=t.target===this.container,s=this.container&&this.container.contains(t.target);!e&&!s&&this.close()})}_listenToEscapeClick(){g.on(document,"keydown",t=>{t.keyCode===Hs&&this._isOpen&&this.close()})}_listenToKeyboardNavigation(){g.on(this.datesContainer,"keydown",t=>{this._handleKeydown(t)})}_listenToDatesContainerFocus(){g.on(this.datesContainer,"focus",()=>{this._focusActiveCell(this.activeCell)})}_listenToDatesContainerBlur(){g.on(this.datesContainer,"blur",()=>{this._removeCurrentFocusStyles()})}_handleKeydown(t){this._view==="days"&&this._handleDaysViewKeydown(t),this._view==="months"&&this._handleMonthsViewKeydown(t),this._view==="years"&&this._handleYearsViewKeydown(t)}_handleDaysViewKeydown(t){const e=this._activeDate,s=this.activeCell;switch(t.keyCode){case es:this._activeDate=Ji(this._activeDate,st()?1:-1);break;case is:this._activeDate=Ji(this._activeDate,st()?-1:1);break;case Ct:this._activeDate=Ji(this._activeDate,-7);break;case ut:this._activeDate=Ji(this._activeDate,7);break;case ss:this._activeDate=Ji(this._activeDate,1-bt(this._activeDate));break;case ns:this._activeDate=Ji(this._activeDate,Da(this._activeDate)-bt(this._activeDate));break;case Ma:this._activeDate=Et(this._activeDate,-1);break;case La:this._activeDate=Et(this._activeDate,1);break;case $t:case yo:this._selectDate(this._activeDate),this._handleDateSelection(t),t.preventDefault();return;default:return}Bs(e,this._activeDate,this._view,te,this._options.min,this._options.max)||this._changeView("days"),this._removeHighlightFromCell(s),this._focusActiveCell(this.activeCell),t.preventDefault()}_asyncFocusDatesContainer(){setTimeout(()=>{this.datesContainer.focus()},0)}_focusActiveCell(t){t&&t.setAttribute("data-te-datepicker-cell-focused","")}_removeHighlightFromCell(t){t&&t.removeAttribute("data-te-datepicker-cell-focused")}_getActiveDayCell(){const t=m.find("td",this.datesContainer);return Array.from(t).find(s=>{const n=Jh(s.dataset.teDate);return xi(n,this._activeDate)})}_handleMonthsViewKeydown(t){const e=this._activeDate,s=this.activeCell;switch(t.keyCode){case es:this._activeDate=Et(this._activeDate,st()?1:-1);break;case is:this._activeDate=Et(this._activeDate,st()?-1:1);break;case Ct:this._activeDate=Et(this._activeDate,-4);break;case ut:this._activeDate=Et(this._activeDate,4);break;case ss:this._activeDate=Et(this._activeDate,-this.activeMonth);break;case ns:this._activeDate=Et(this._activeDate,11-this.activeMonth);break;case Ma:this._activeDate=Tt(this._activeDate,-1);break;case La:this._activeDate=Tt(this._activeDate,1);break;case $t:case yo:this._selectMonth(this.activeMonth);return;default:return}Bs(e,this._activeDate,this._view,te,this._options.min,this._options.max)||this._changeView("months"),this._removeHighlightFromCell(s),this._focusActiveCell(this.activeCell),t.preventDefault()}_getActiveMonthCell(){const t=m.find("td",this.datesContainer);return Array.from(t).find(s=>{const n=parseInt(s.dataset.teYear,10),o=parseInt(s.dataset.teMonth,10);return n===this.activeYear&&o===this.activeMonth})}_handleYearsViewKeydown(t){const e=this._activeDate,s=this.activeCell,n=4,o=24;switch(t.keyCode){case es:this._activeDate=Tt(this._activeDate,st()?1:-1);break;case is:this._activeDate=Tt(this._activeDate,st()?-1:1);break;case Ct:this._activeDate=Tt(this._activeDate,-n);break;case ut:this._activeDate=Tt(this._activeDate,n);break;case ss:this._activeDate=Tt(this._activeDate,-_o(this._activeDate,o));break;case ns:this._activeDate=Tt(this._activeDate,o-_o(this._activeDate,o)-1);break;case Ma:this._activeDate=Tt(this._activeDate,-o);break;case La:this._activeDate=Tt(this._activeDate,o);break;case $t:case yo:this._selectYear(this.activeYear);return;default:return}Bs(e,this._activeDate,this._view,te,this._options.min,this._options.max)||this._changeView("years"),this._removeHighlightFromCell(s),this._focusActiveCell(this.activeCell),t.preventDefault()}_getActiveYearCell(){const t=m.find("td",this.datesContainer);return Array.from(t).find(s=>parseInt(s.dataset.teYear,10)===this.activeYear)}_setInitialDate(){this._input.value?this._handleUserInput(this._input.value):this._options.startDate?this._activeDate=new Date(this._options.startDate):this._activeDate=new Date}close(){const t=g.trigger(this._element,b0);!this._isOpen||t.defaultPrevented||(this._removeDatepickerListeners(),this._animations&&_.addClass(this.container,this._classes.fadeOut),this._options.inline?this._closeDropdown():this._closeModal(),this._isOpen=!1,this._view=this._options.view,this.toggleButton?this.toggleButton.focus():this._input.focus())}_closeDropdown(){const t=m.findOne(T0),e=this._getContainer();window.matchMedia("(prefers-reduced-motion: reduce)").matches&&(t&&e.removeChild(t),this._popper&&this._popper.destroy()),t.addEventListener("animationend",()=>{t&&e.removeChild(t),this._popper&&this._popper.destroy()}),this._removeFocusTrap()}_closeModal(){const t=m.findOne(M0),e=m.findOne(x0);!e||!t||(this._animations?(_.addClass(t,this._classes.fadeOutShort),t.addEventListener("animationend",()=>{this._removePicker(t,e),this._scrollBar.reset()})):(this._removePicker(t,e),this._scrollBar.reset()))}_removePicker(t,e){const s=this._getContainer();s.removeChild(t),s.removeChild(e)}_removeFocusTrap(){this._focusTrap&&(this._focusTrap.disable(),this._focusTrap=null)}_removeDatepickerListeners(){g.off(this.nextButton,"click"),g.off(this.previousButton,"click"),g.off(this.viewChangeButton,"click"),g.off(this.okButton,"click"),g.off(this.cancelButton,"click"),g.off(this.clearButton,"click"),g.off(this.datesContainer,"click"),g.off(this.datesContainer,"keydown"),g.off(this.datesContainer,"focus"),g.off(this.datesContainer,"blur"),g.off(document,Ao)}dispose(){this._isOpen&&this.close(),this._removeInputAndToggleListeners();const t=m.findOne(`#${this._toggleButtonId}`);t&&this._element.removeChild(t),M.removeData(this._element,Eo),this._element=null,this._input=null,this._options=null,this._activeDate=null,this._selectedDate=null,this._selectedYear=null,this._selectedMonth=null,this._headerDate=null,this._headerYear=null,this._headerMonth=null,this._view=null,this._popper=null,this._focusTrap=null}_removeInputAndToggleListeners(){g.off(this._input,"input"),g.off(this._element,Ao,wo),g.off(this._element,"keydown",wo)}handleOk(){this._confirmSelection(this._headerDate),this.close()}_selectDate(t,e=this.activeCell){const{min:s,max:n,filter:o,disablePast:r,disableFuture:a}=this._options;go(t,s,n,o,r,a)||(this._removeCurrentSelectionStyles(),this._removeCurrentFocusStyles(),this._addSelectedStyles(e),this._selectedDate=t,this._selectedYear=K(t),this._selectedMonth=ot(t),this._headerDate=t,(this._options.inline||this.options.confirmDateOnSelect)&&(this._confirmSelection(t),this.close()))}_selectYear(t,e=this.activeCell){this._removeCurrentSelectionStyles(),this._removeCurrentFocusStyles(),this._addSelectedStyles(e),this._headerYear=t,this._asyncChangeView("months")}_selectMonth(t,e=this.activeCell){this._removeCurrentSelectionStyles(),this._removeCurrentFocusStyles(),this._addSelectedStyles(e),this._headerMonth=t,this._asyncChangeView("days")}_removeSelectedStyles(t){t&&t.removeAttribute("data-te-datepicker-cell-selected")}_addSelectedStyles(t){t&&t.setAttribute("data-te-datepicker-cell-selected","")}_confirmSelection(t){if(t){const e=this.formatDate(t);this._input.value=e,g.trigger(this._element,y0,{date:t}),g.trigger(this._input,"input")}}handleCancel(){this._selectedDate=null,this._selectedYear=null,this._selectedMonth=null,this.close()}handleClear(){this._selectedDate=null,this._selectedMonth=null,this._selectedYear=null,this._headerDate=null,this._headerMonth=null,this._headerYear=null,this._removeCurrentSelectionStyles(),this._input.value="",this._setInitialDate(),this._changeView("days"),this._updateHeaderDate(this._activeDate,this._options.monthsShort,this._options.weekdaysShort)}_removeCurrentSelectionStyles(){const t=m.findOne("[data-te-datepicker-cell-selected]",this.container);t&&t.removeAttribute("data-te-datepicker-cell-selected")}_removeCurrentFocusStyles(){const t=m.findOne("[data-te-datepicker-cell-focused]",this.container);t&&t.removeAttribute("data-te-datepicker-cell-focused")}formatDate(t){const e=bt(t),s=this._addLeadingZero(bt(t)),n=this._options.weekdaysShort[fo(t)],o=this._options.weekdaysFull[fo(t)],r=ot(t)+1,a=this._addLeadingZero(ot(t)+1),l=this._options.monthsShort[ot(t)],c=this._options.monthsFull[ot(t)],h=K(t).toString().length===2?K(t):K(t).toString().slice(2,4),d=K(t),u=this._options.format.split(/(d{1,4}|m{1,4}|y{4}|yy|!.)/g);let p="";return u.forEach(f=>{switch(f){case"dddd":f=f.replace(f,o);break;case"ddd":f=f.replace(f,n);break;case"dd":f=f.replace(f,s);break;case"d":f=f.replace(f,e);break;case"mmmm":f=f.replace(f,c);break;case"mmm":f=f.replace(f,l);break;case"mm":f=f.replace(f,a);break;case"m":f=f.replace(f,r);break;case"yyyy":f=f.replace(f,d);break;case"yy":f=f.replace(f,h);break}p+=f}),p}_addLeadingZero(t){return parseInt(t,10)<10?`0${t}`:t}_pickDay(t,e){const s=Jh(t),{min:n,max:o,filter:r,disablePast:a,disableFuture:l}=this._options;go(s,n,o,r,a,l)||(this._activeDate=s,this._selectDate(s,e))}_pickYear(t){const{min:e,max:s,disablePast:n,disableFuture:o}=this._options;if(Ia(t,e,s,n,o))return;const r=de(t,this.activeMonth,this.activeDay);this._activeDate=r,this._selectedDate=r,this._selectYear(t)}_pickMonth(t,e){const{min:s,max:n,disablePast:o,disableFuture:r}=this._options;if(td(t,e,s,n,o,r)||Ia(e,s,n,o,r))return;const a=de(e,t,this.activeDay);this._activeDate=a,this._selectMonth(t)}nextMonth(){const t=Et(this._activeDate,1),e=mo(t,this._headerDate,this._options,this._classes);this._activeDate=t,this.viewChangeButton.textContent=`${this._options.monthsFull[this.activeMonth]} ${this.activeYear}`,this.viewChangeButton.innerHTML+=ue(this._options,this._classes),this.datesContainer.innerHTML=e}previousMonth(){const t=Et(this._activeDate,-1);this._activeDate=t;const e=mo(t,this._headerDate,this._options,this._classes);this.viewChangeButton.textContent=`${this._options.monthsFull[this.activeMonth]} ${this.activeYear}`,this.viewChangeButton.innerHTML+=ue(this._options,this._classes),this.datesContainer.innerHTML=e}nextYear(){const t=Tt(this._activeDate,1);this._activeDate=t,this.viewChangeButton.textContent=`${this.activeYear}`,this.viewChangeButton.innerHTML+=ue(this._options,this._classes);const e=bo(this.activeYear,this._selectedYear,this._selectedMonth,this._options,To,this._classes);this.datesContainer.innerHTML=e}previousYear(){const t=Tt(this._activeDate,-1);this._activeDate=t,this.viewChangeButton.textContent=`${this.activeYear}`,this.viewChangeButton.innerHTML+=ue(this._options,this._classes);const e=bo(this.activeYear,this._selectedYear,this._selectedMonth,this._options,To,this._classes);this.datesContainer.innerHTML=e}nextYears(){const t=Tt(this._activeDate,24);this._activeDate=t;const e=vo(t,this._selectedYear,this._options,te,xo,this._classes);this.viewChangeButton.textContent=`${this.firstYearInView} - ${this.lastYearInView}`,this.viewChangeButton.innerHTML+=ue(this._options,this._classes),this.datesContainer.innerHTML=e}previousYears(){const t=Tt(this._activeDate,-24);this._activeDate=t;const e=vo(t,this._selectedYear,this._options,te,xo,this._classes);this.viewChangeButton.textContent=`${this.firstYearInView} - ${this.lastYearInView}`,this.viewChangeButton.innerHTML+=ue(this._options,this._classes),this.datesContainer.innerHTML=e}_asyncChangeView(t){setTimeout(()=>{this._changeView(t)},0)}_changeView(t){this._view=t,this.datesContainer.blur(),t==="days"&&(this.datesContainer.innerHTML=mo(this._activeDate,this._headerDate,this._options,this._classes)),t==="months"&&(this.datesContainer.innerHTML=bo(this.activeYear,this._selectedYear,this._selectedMonth,this._options,To,this._classes)),t==="years"&&(this.datesContainer.innerHTML=vo(this._activeDate,this._selectedYear,this._options,te,xo,this._classes)),this.datesContainer.focus(),this._updateViewControlsAndAttributes(t),this._updateControlsDisabledState()}_updateViewControlsAndAttributes(t){t==="days"&&(this.viewChangeButton.textContent=`${this._options.monthsFull[this.activeMonth]} ${this.activeYear}`,this.viewChangeButton.innerHTML+=ue(this._options,this._classes),this.viewChangeButton.setAttribute("aria-label",this._options.switchToMultiYearViewLabel),this.previousButton.setAttribute("aria-label",this._options.prevMonthLabel),this.nextButton.setAttribute("aria-label",this._options.nextMonthLabel)),t==="months"&&(this.viewChangeButton.textContent=`${this.activeYear}`,this.viewChangeButton.innerHTML+=ue(this._options,this._classes),this.viewChangeButton.setAttribute("aria-label",this._options.switchToDayViewLabel),this.previousButton.setAttribute("aria-label",this._options.prevYearLabel),this.nextButton.setAttribute("aria-label",this._options.nextYearLabel)),t==="years"&&(this.viewChangeButton.textContent=`${this.firstYearInView} - ${this.lastYearInView}`,this.viewChangeButton.innerHTML+=ue(this._options,this._classes),this.viewChangeButton.setAttribute("aria-label",this._options.switchToMonthViewLabel),this.previousButton.setAttribute("aria-label",this._options.prevMultiYearLabel),this.nextButton.setAttribute("aria-label",this._options.nextMultiYearLabel))}_updateControlsDisabledState(){Gv(this._options.disableFuture,this._activeDate,this._view,te,this._options.min,this._options.max,this.lastYearInView,this.firstYearInView)?this.nextButton.disabled=!0:this.nextButton.disabled=!1,qv(this._options.disablePast,this._activeDate,this._view,te,this._options.min,this._options.max,this.lastYearInView,this.firstYearInView)?this.previousButton.disabled=!0:this.previousButton.disabled=!1}_handleUserInput(t){const e=this._getDelimeters(this._options.format),s=this._parseDate(t,this._options.format,e);Kv(s)?(this._activeDate=s,this._selectedDate=s,this._selectedYear=K(s),this._selectedMonth=ot(s),this._headerDate=s):(this._activeDate=new Date,this._selectedDate=null,this._selectedMonth=null,this._selectedYear=null,this._headerDate=null,this._headerMonth=null,this._headerYear=null)}_getDelimeters(t){return t.match(/[^(dmy)]{1,}/g)}_parseDate(t,e,s){let n;s[0]!==s[1]?n=s[0]+s[1]:n=s[0];const o=new RegExp(`[${n}]`),r=t.split(o),a=e.split(o),l=e.indexOf("mmm")!==-1,c=[];for(let b=0;bs===t)}static getInstance(t){return M.getData(t,Eo)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,typeof e=="object"?e:null)}}const _y=({format24:i,okLabel:t,cancelLabel:e,headID:s,footerID:n,bodyID:o,pickerID:r,clearLabel:a,inline:l,showClearBtn:c,amLabel:h,pmLabel:d},u)=>{const p=`
+ `,min:null,max:null,filter:null,inline:!1,toggleButton:!0,disableToggleButton:!1,disableInput:!1,animations:!0,confirmDateOnSelect:!1,removeOkBtn:!1,removeCancelBtn:!1,removeClearBtn:!1},_T={title:"string",container:"string",disablePast:"boolean",disableFuture:"boolean",monthsFull:"array",monthsShort:"array",weekdaysFull:"array",weekdaysShort:"array",weekdaysNarrow:"array",okBtnText:"string",clearBtnText:"string",cancelBtnText:"string",okBtnLabel:"string",clearBtnLabel:"string",cancelBtnLabel:"string",nextMonthLabel:"string",prevMonthLabel:"string",nextYearLabel:"string",prevYearLabel:"string",nextMultiYearLabel:"string",prevMultiYearLabel:"string",changeMonthIconTemplate:"string",switchToMultiYearViewLabel:"string",switchToMonthViewLabel:"string",switchToDayViewLabel:"string",startDate:"(null|string|date)",startDay:"number",format:"string",view:"string",viewChangeIconTemplate:"string",min:"(null|string|date)",max:"(null|string|date)",filter:"(null|function)",inline:"boolean",toggleButton:"boolean",disableToggleButton:"boolean",disableInput:"boolean",animations:"boolean",confirmDateOnSelect:"boolean",removeOkBtn:"boolean",removeCancelBtn:"boolean",removeClearBtn:"boolean"},gT={fadeIn:Ry,fadeOut:Ny,fadeInShort:By,fadeOutShort:Hy,modalContainer:Vy,datepickerBackdrop:Fy,datepickerMain:Wy,datepickerHeader:zy,datepickerTitle:jy,datepickerTitleText:Yy,datepickerDate:Ky,datepickerDateText:Uy,datepickerView:Xy,datepickerDateControls:Gy,datepickerViewChangeButton:qy,datepickerViewChangeIcon:uT,datepickerArrowControls:Zy,datepickerPreviousButton:Qy,datepickerNextButton:Jy,datepickerFooter:tT,datepickerFooterBtn:eT,datepickerClearBtn:iT,datepickerDayHeading:sT,datepickerCell:nT,datepickerCellSmall:oT,datepickerCellLarge:rT,datepickerCellContent:aT,datepickerCellContentSmall:lT,datepickerCellContentLarge:cT,datepickerTable:hT,datepickerToggleButton:dT,datepickerDropdownContainer:pT},mT={fadeIn:"string",fadeOut:"string",fadeInShort:"string",fadeOutShort:"string",modalContainer:"string",datepickerBackdrop:"string",datepickerMain:"string",datepickerHeader:"string",datepickerTitle:"string",datepickerTitleText:"string",datepickerDate:"string",datepickerDateText:"string",datepickerView:"string",datepickerDateControls:"string",datepickerViewChangeButton:"string",datepickerArrowControls:"string",datepickerPreviousButton:"string",datepickerNextButton:"string",datepickerFooter:"string",datepickerFooterBtn:"string",datepickerClearBtn:"string",datepickerDayHeading:"string",datepickerCell:"string",datepickerCellSmall:"string",datepickerCellLarge:"string",datepickerCellContent:"string",datepickerCellContentSmall:"string",datepickerCellContentLarge:"string",datepickerTable:"string",datepickerToggleButton:"string",datepickerDropdownContainer:"string"};class dl{constructor(t,e,i){this._element=t,this._input=m.findOne("input",this._element),this._options=this._getConfig(e),this._classes=this._getClasses(i),this._activeDate=new Date,this._selectedDate=null,this._selectedYear=null,this._selectedMonth=null,this._headerDate=null,this._headerYear=null,this._headerMonth=null,this._view=this._options.view,this._popper=null,this._focusTrap=null,this._isOpen=!1,this._toggleButtonId=Et("datepicker-toggle-"),this._animations=!window.matchMedia("(prefers-reduced-motion: reduce)").matches&&this._options.animations,this._scrollBar=new Xi,this._element&&D.setData(t,Po,this),this._init(),this.toggleButton&&this._options.disableToggle&&(this.toggleButton.disabled="true"),this._options.disableInput&&(this._input.disabled="true")}static get NAME(){return hl}get container(){return m.findOne(`[${Zd}='${this._toggleButtonId}']`)||m.findOne(`[${Qd}='${this._toggleButtonId}']`)}get options(){return this._options}get activeCell(){let t;return this._view==="days"&&(t=this._getActiveDayCell()),this._view==="months"&&(t=this._getActiveMonthCell()),this._view==="years"&&(t=this._getActiveYearCell()),t}get activeDay(){return bt(this._activeDate)}get activeMonth(){return ot(this._activeDate)}get activeYear(){return K(this._activeDate)}get firstYearInView(){return this.activeYear-ko(this._activeDate,ee)}get lastYearInView(){return this.firstYearInView+ee-1}get viewChangeButton(){return m.findOne(wy,this.container)}get previousButton(){return m.findOne(ky,this.container)}get nextButton(){return m.findOne(Sy,this.container)}get okButton(){return m.findOne(Oy,this.container)}get cancelButton(){return m.findOne(Dy,this.container)}get clearButton(){return m.findOne(Iy,this.container)}get datesContainer(){return m.findOne(My,this.container)}get toggleButton(){return m.findOne(Ly,this._element)}update(t={}){this._options=this._getConfig({...this._options,...t})}_getConfig(t){const e=g.getDataAttributes(this._element);if(t={...fT,...e,...t},L(hl,t,_T),t.max&&typeof t.max=="string"&&(t.max=new Date(t.max)),t.min&&typeof t.min=="string"&&(t.min=new Date(t.min)),t.startDay&&t.startDay!==0){const i=this._getNewDaysOrderArray(t);t.weekdaysNarrow=i}return t}_getClasses(t){const e=g.getDataClassAttributes(this._element);return t={...gT,...e,...t},L(hl,t,mT),t}_getContainer(){return m.findOne(this._options.container)}_getNewDaysOrderArray(t){const e=t.startDay,i=t.weekdaysNarrow;return i.slice(e).concat(i.slice(0,e))}_init(){!this.toggleButton&&this._options.toggleButton&&(this._appendToggleButton(),(this._input.readOnly||this._input.disabled)&&(this.toggleButton.style.pointerEvents="none")),this._listenToUserInput(),this._listenToToggleClick(),this._listenToToggleKeydown()}_appendToggleButton(){const t=my(this._toggleButtonId,this._classes.datepickerToggleButton);this._element.insertAdjacentHTML("beforeend",t)}open(){if(this._input.readOnly||this._input.disabled)return;const t=_.trigger(this._element,Ey);if(this._isOpen||t.defaultPrevented)return;this._setInitialDate();const e=dy(this._classes.datepickerBackdrop),i=hy(this._activeDate,this._selectedDate,this._selectedYear,this._selectedMonth,this._options,$o,ee,Lo,this._toggleButtonId,this._classes);this._options.inline?this._openDropdown(i):(this._openModal(e,i),this._scrollBar.hide()),this._animations&&(g.addClass(this.container,this._classes.fadeIn),g.addClass(e,this._classes.fadeInShort)),this._setFocusTrap(this.container),this._listenToDateSelection(),this._addControlsListeners(),this._updateControlsDisabledState(),this._listenToEscapeClick(),this._listenToKeyboardNavigation(),this._listenToDatesContainerFocus(),this._listenToDatesContainerBlur(),this._asyncFocusDatesContainer(),this._updateViewControlsAndAttributes(this._view),this._isOpen=!0,setTimeout(()=>{this._listenToOutsideClick()},0)}_openDropdown(t){this._popper=fi(this._input,t,{placement:"bottom-start"}),this._getContainer().appendChild(t)}_openModal(t,e){const i=this._getContainer();i.appendChild(t),i.appendChild(e)}_setFocusTrap(t){this._focusTrap=new Ps(t,{event:"keydown",condition:e=>e.key==="Tab"}),this._focusTrap.trap()}_listenToUserInput(){_.on(this._input,"input",t=>{this._handleUserInput(t.target.value)})}_listenToToggleClick(){_.on(this._element,No,Bo,t=>{t.preventDefault(),this.open()})}_listenToToggleKeydown(){_.on(this._element,"keydown",Bo,t=>{t.keyCode===Pt&&!this._isOpen&&this.open()})}_listenToDateSelection(){_.on(this.datesContainer,"click",t=>{this._handleDateSelection(t)})}_handleDateSelection(t){const e=t.target.nodeName==="DIV"?t.target.parentNode.dataset:t.target.dataset,i=t.target.nodeName==="DIV"?t.target.parentNode:t.target;if(e.teDate&&this._pickDay(e.teDate,i),e.teMonth&&e.teYear){const n=parseInt(e.teMonth,10),o=parseInt(e.teYear,10);this._pickMonth(n,o)}if(e.teYear&&!e.teMonth){const n=parseInt(e.teYear,10);this._pickYear(n)}this._options.inline||this._updateHeaderDate(this._activeDate,this._options.monthsShort,this._options.weekdaysShort)}_updateHeaderDate(t,e,i){const n=m.findOne($y,this.container),o=ot(t),r=bt(t),a=wo(t);n.innerHTML=`${i[a]}, ${e[o]} ${r}`}_addControlsListeners(){_.on(this.nextButton,"click",()=>{this._view==="days"?this.nextMonth():this._view==="years"?this.nextYears():this.nextYear(),this._updateControlsDisabledState()}),_.on(this.previousButton,"click",()=>{this._view==="days"?this.previousMonth():this._view==="years"?this.previousYears():this.previousYear(),this._updateControlsDisabledState()}),_.on(this.viewChangeButton,"click",()=>{this._view==="days"?this._changeView("years"):(this._view==="years"||this._view==="months")&&this._changeView("days")}),this._options.inline||this._listenToFooterButtonsClick()}_listenToFooterButtonsClick(){_.on(this.okButton,"click",()=>this.handleOk()),_.on(this.cancelButton,"click",()=>this.handleCancel()),_.on(this.clearButton,"click",()=>this.handleClear())}_listenToOutsideClick(){_.on(document,No,t=>{const e=t.target===this.container,i=this.container&&this.container.contains(t.target);!e&&!i&&this.close()})}_listenToEscapeClick(){_.on(document,"keydown",t=>{t.keyCode===Ks&&this._isOpen&&this.close()})}_listenToKeyboardNavigation(){_.on(this.datesContainer,"keydown",t=>{this._handleKeydown(t)})}_listenToDatesContainerFocus(){_.on(this.datesContainer,"focus",()=>{this._focusActiveCell(this.activeCell)})}_listenToDatesContainerBlur(){_.on(this.datesContainer,"blur",()=>{this._removeCurrentFocusStyles()})}_handleKeydown(t){this._view==="days"&&this._handleDaysViewKeydown(t),this._view==="months"&&this._handleMonthsViewKeydown(t),this._view==="years"&&this._handleYearsViewKeydown(t)}_handleDaysViewKeydown(t){const e=this._activeDate,i=this.activeCell;switch(t.keyCode){case ns:this._activeDate=is(this._activeDate,st()?1:-1);break;case os:this._activeDate=is(this._activeDate,st()?-1:1);break;case At:this._activeDate=is(this._activeDate,-7);break;case ut:this._activeDate=is(this._activeDate,7);break;case rs:this._activeDate=is(this._activeDate,1-bt(this._activeDate));break;case as:this._activeDate=is(this._activeDate,rl(this._activeDate)-bt(this._activeDate));break;case ll:this._activeDate=Ct(this._activeDate,-1);break;case cl:this._activeDate=Ct(this._activeDate,1);break;case Pt:case Mo:this._selectDate(this._activeDate),this._handleDateSelection(t),t.preventDefault();return;default:return}Ys(e,this._activeDate,this._view,ee,this._options.min,this._options.max)||this._changeView("days"),this._removeHighlightFromCell(i),this._focusActiveCell(this.activeCell),t.preventDefault()}_asyncFocusDatesContainer(){setTimeout(()=>{this.datesContainer.focus()},0)}_focusActiveCell(t){t&&t.setAttribute("data-te-datepicker-cell-focused","")}_removeHighlightFromCell(t){t&&t.removeAttribute("data-te-datepicker-cell-focused")}_getActiveDayCell(){const t=m.find("td",this.datesContainer);return Array.from(t).find(i=>{const n=Yd(i.dataset.teDate);return Ei(n,this._activeDate)})}_handleMonthsViewKeydown(t){const e=this._activeDate,i=this.activeCell;switch(t.keyCode){case ns:this._activeDate=Ct(this._activeDate,st()?1:-1);break;case os:this._activeDate=Ct(this._activeDate,st()?-1:1);break;case At:this._activeDate=Ct(this._activeDate,-4);break;case ut:this._activeDate=Ct(this._activeDate,4);break;case rs:this._activeDate=Ct(this._activeDate,-this.activeMonth);break;case as:this._activeDate=Ct(this._activeDate,11-this.activeMonth);break;case ll:this._activeDate=xt(this._activeDate,-1);break;case cl:this._activeDate=xt(this._activeDate,1);break;case Pt:case Mo:this._selectMonth(this.activeMonth);return;default:return}Ys(e,this._activeDate,this._view,ee,this._options.min,this._options.max)||this._changeView("months"),this._removeHighlightFromCell(i),this._focusActiveCell(this.activeCell),t.preventDefault()}_getActiveMonthCell(){const t=m.find("td",this.datesContainer);return Array.from(t).find(i=>{const n=parseInt(i.dataset.teYear,10),o=parseInt(i.dataset.teMonth,10);return n===this.activeYear&&o===this.activeMonth})}_handleYearsViewKeydown(t){const e=this._activeDate,i=this.activeCell,n=4,o=24;switch(t.keyCode){case ns:this._activeDate=xt(this._activeDate,st()?1:-1);break;case os:this._activeDate=xt(this._activeDate,st()?-1:1);break;case At:this._activeDate=xt(this._activeDate,-n);break;case ut:this._activeDate=xt(this._activeDate,n);break;case rs:this._activeDate=xt(this._activeDate,-ko(this._activeDate,o));break;case as:this._activeDate=xt(this._activeDate,o-ko(this._activeDate,o)-1);break;case ll:this._activeDate=xt(this._activeDate,-o);break;case cl:this._activeDate=xt(this._activeDate,o);break;case Pt:case Mo:this._selectYear(this.activeYear);return;default:return}Ys(e,this._activeDate,this._view,ee,this._options.min,this._options.max)||this._changeView("years"),this._removeHighlightFromCell(i),this._focusActiveCell(this.activeCell),t.preventDefault()}_getActiveYearCell(){const t=m.find("td",this.datesContainer);return Array.from(t).find(i=>parseInt(i.dataset.teYear,10)===this.activeYear)}_setInitialDate(){this._input.value?this._handleUserInput(this._input.value):this._options.startDate?this._activeDate=new Date(this._options.startDate):this._activeDate=new Date}close(){const t=_.trigger(this._element,Ty);!this._isOpen||t.defaultPrevented||(this._removeDatepickerListeners(),this._animations&&g.addClass(this.container,this._classes.fadeOut),this._options.inline?this._closeDropdown():this._closeModal(),this._isOpen=!1,this._view=this._options.view,this.toggleButton?this.toggleButton.focus():this._input.focus())}_closeDropdown(){const t=m.findOne(Ay),e=this._getContainer();window.matchMedia("(prefers-reduced-motion: reduce)").matches&&(t&&e.removeChild(t),this._popper&&this._popper.destroy()),t.addEventListener("animationend",()=>{t&&e.removeChild(t),this._popper&&this._popper.destroy()}),this._removeFocusTrap()}_closeModal(){const t=m.findOne(Py),e=m.findOne(Cy);!e||!t||(this._animations?(g.addClass(t,this._classes.fadeOutShort),t.addEventListener("animationend",()=>{this._removePicker(t,e),this._scrollBar.reset()})):(this._removePicker(t,e),this._scrollBar.reset()))}_removePicker(t,e){const i=this._getContainer();i.removeChild(t),i.removeChild(e)}_removeFocusTrap(){this._focusTrap&&(this._focusTrap.disable(),this._focusTrap=null)}_removeDatepickerListeners(){_.off(this.nextButton,"click"),_.off(this.previousButton,"click"),_.off(this.viewChangeButton,"click"),_.off(this.okButton,"click"),_.off(this.cancelButton,"click"),_.off(this.clearButton,"click"),_.off(this.datesContainer,"click"),_.off(this.datesContainer,"keydown"),_.off(this.datesContainer,"focus"),_.off(this.datesContainer,"blur"),_.off(document,No)}dispose(){this._isOpen&&this.close(),this._removeInputAndToggleListeners();const t=m.findOne(`#${this._toggleButtonId}`);t&&this._element.removeChild(t),D.removeData(this._element,Po),this._element=null,this._input=null,this._options=null,this._activeDate=null,this._selectedDate=null,this._selectedYear=null,this._selectedMonth=null,this._headerDate=null,this._headerYear=null,this._headerMonth=null,this._view=null,this._popper=null,this._focusTrap=null}_removeInputAndToggleListeners(){_.off(this._input,"input"),_.off(this._element,No,Bo),_.off(this._element,"keydown",Bo)}handleOk(){this._confirmSelection(this._headerDate),this.close()}_selectDate(t,e=this.activeCell){const{min:i,max:n,filter:o,disablePast:r,disableFuture:a}=this._options;So(t,i,n,o,r,a)||(this._removeCurrentSelectionStyles(),this._removeCurrentFocusStyles(),this._addSelectedStyles(e),this._selectedDate=t,this._selectedYear=K(t),this._selectedMonth=ot(t),this._headerDate=t,(this._options.inline||this.options.confirmDateOnSelect)&&(this._confirmSelection(t),this.close()))}_selectYear(t,e=this.activeCell){this._removeCurrentSelectionStyles(),this._removeCurrentFocusStyles(),this._addSelectedStyles(e),this._headerYear=t,this._asyncChangeView("months")}_selectMonth(t,e=this.activeCell){this._removeCurrentSelectionStyles(),this._removeCurrentFocusStyles(),this._addSelectedStyles(e),this._headerMonth=t,this._asyncChangeView("days")}_removeSelectedStyles(t){t&&t.removeAttribute("data-te-datepicker-cell-selected")}_addSelectedStyles(t){t&&t.setAttribute("data-te-datepicker-cell-selected","")}_confirmSelection(t){if(t){const e=this.formatDate(t);this._input.value=e,_.trigger(this._element,xy,{date:t}),_.trigger(this._input,"input")}}handleCancel(){this._selectedDate=null,this._selectedYear=null,this._selectedMonth=null,this.close()}handleClear(){this._selectedDate=null,this._selectedMonth=null,this._selectedYear=null,this._headerDate=null,this._headerMonth=null,this._headerYear=null,this._removeCurrentSelectionStyles(),this._input.value="",this._setInitialDate(),this._changeView("days"),this._updateHeaderDate(this._activeDate,this._options.monthsShort,this._options.weekdaysShort)}_removeCurrentSelectionStyles(){const t=m.findOne("[data-te-datepicker-cell-selected]",this.container);t&&t.removeAttribute("data-te-datepicker-cell-selected")}_removeCurrentFocusStyles(){const t=m.findOne("[data-te-datepicker-cell-focused]",this.container);t&&t.removeAttribute("data-te-datepicker-cell-focused")}formatDate(t){const e=bt(t),i=this._addLeadingZero(bt(t)),n=this._options.weekdaysShort[wo(t)],o=this._options.weekdaysFull[wo(t)],r=ot(t)+1,a=this._addLeadingZero(ot(t)+1),l=this._options.monthsShort[ot(t)],c=this._options.monthsFull[ot(t)],h=K(t).toString().length===2?K(t):K(t).toString().slice(2,4),d=K(t),u=this._options.format.split(/(d{1,4}|m{1,4}|y{4}|yy|!.)/g);let p="";return u.forEach(f=>{switch(f){case"dddd":f=f.replace(f,o);break;case"ddd":f=f.replace(f,n);break;case"dd":f=f.replace(f,i);break;case"d":f=f.replace(f,e);break;case"mmmm":f=f.replace(f,c);break;case"mmm":f=f.replace(f,l);break;case"mm":f=f.replace(f,a);break;case"m":f=f.replace(f,r);break;case"yyyy":f=f.replace(f,d);break;case"yy":f=f.replace(f,h);break}p+=f}),p}_addLeadingZero(t){return parseInt(t,10)<10?`0${t}`:t}_pickDay(t,e){const i=Yd(t),{min:n,max:o,filter:r,disablePast:a,disableFuture:l}=this._options;So(i,n,o,r,a,l)||(this._activeDate=i,this._selectDate(i,e))}_pickYear(t){const{min:e,max:i,disablePast:n,disableFuture:o}=this._options;if(al(t,e,i,n,o))return;const r=te(t,this.activeMonth,this.activeDay);this._activeDate=r,this._selectedDate=r,this._selectYear(t)}_pickMonth(t,e){const{min:i,max:n,disablePast:o,disableFuture:r}=this._options;if(Kd(t,e,i,n,o,r)||al(e,i,n,o,r))return;const a=te(e,t,this.activeDay);this._activeDate=a,this._selectMonth(t)}nextMonth(){const t=Ct(this._activeDate,1),e=Oo(t,this._headerDate,this._options,this._classes);this._activeDate=t,this.viewChangeButton.textContent=`${this._options.monthsFull[this.activeMonth]} ${this.activeYear}`,this.viewChangeButton.innerHTML+=ue(this._options,this._classes),this.datesContainer.innerHTML=e}previousMonth(){const t=Ct(this._activeDate,-1);this._activeDate=t;const e=Oo(t,this._headerDate,this._options,this._classes);this.viewChangeButton.textContent=`${this._options.monthsFull[this.activeMonth]} ${this.activeYear}`,this.viewChangeButton.innerHTML+=ue(this._options,this._classes),this.datesContainer.innerHTML=e}nextYear(){const t=xt(this._activeDate,1);this._activeDate=t,this.viewChangeButton.textContent=`${this.activeYear}`,this.viewChangeButton.innerHTML+=ue(this._options,this._classes);const e=Do(this.activeYear,this._selectedYear,this._selectedMonth,this._options,$o,this._classes);this.datesContainer.innerHTML=e}previousYear(){const t=xt(this._activeDate,-1);this._activeDate=t,this.viewChangeButton.textContent=`${this.activeYear}`,this.viewChangeButton.innerHTML+=ue(this._options,this._classes);const e=Do(this.activeYear,this._selectedYear,this._selectedMonth,this._options,$o,this._classes);this.datesContainer.innerHTML=e}nextYears(){const t=xt(this._activeDate,24);this._activeDate=t;const e=Io(t,this._selectedYear,this._options,ee,Lo,this._classes);this.viewChangeButton.textContent=`${this.firstYearInView} - ${this.lastYearInView}`,this.viewChangeButton.innerHTML+=ue(this._options,this._classes),this.datesContainer.innerHTML=e}previousYears(){const t=xt(this._activeDate,-24);this._activeDate=t;const e=Io(t,this._selectedYear,this._options,ee,Lo,this._classes);this.viewChangeButton.textContent=`${this.firstYearInView} - ${this.lastYearInView}`,this.viewChangeButton.innerHTML+=ue(this._options,this._classes),this.datesContainer.innerHTML=e}_asyncChangeView(t){setTimeout(()=>{this._changeView(t)},0)}_changeView(t){this._view=t,this.datesContainer.blur(),t==="days"&&(this.datesContainer.innerHTML=Oo(this._activeDate,this._headerDate,this._options,this._classes)),t==="months"&&(this.datesContainer.innerHTML=Do(this.activeYear,this._selectedYear,this._selectedMonth,this._options,$o,this._classes)),t==="years"&&(this.datesContainer.innerHTML=Io(this._activeDate,this._selectedYear,this._options,ee,Lo,this._classes)),this.datesContainer.focus(),this._updateViewControlsAndAttributes(t),this._updateControlsDisabledState()}_updateViewControlsAndAttributes(t){t==="days"&&(this.viewChangeButton.textContent=`${this._options.monthsFull[this.activeMonth]} ${this.activeYear}`,this.viewChangeButton.innerHTML+=ue(this._options,this._classes),this.viewChangeButton.setAttribute("aria-label",this._options.switchToMultiYearViewLabel),this.previousButton.setAttribute("aria-label",this._options.prevMonthLabel),this.nextButton.setAttribute("aria-label",this._options.nextMonthLabel)),t==="months"&&(this.viewChangeButton.textContent=`${this.activeYear}`,this.viewChangeButton.innerHTML+=ue(this._options,this._classes),this.viewChangeButton.setAttribute("aria-label",this._options.switchToDayViewLabel),this.previousButton.setAttribute("aria-label",this._options.prevYearLabel),this.nextButton.setAttribute("aria-label",this._options.nextYearLabel)),t==="years"&&(this.viewChangeButton.textContent=`${this.firstYearInView} - ${this.lastYearInView}`,this.viewChangeButton.innerHTML+=ue(this._options,this._classes),this.viewChangeButton.setAttribute("aria-label",this._options.switchToMonthViewLabel),this.previousButton.setAttribute("aria-label",this._options.prevMultiYearLabel),this.nextButton.setAttribute("aria-label",this._options.nextMultiYearLabel))}_updateControlsDisabledState(){Q0(this._options.disableFuture,this._activeDate,this._view,ee,this._options.min,this._options.max,this.lastYearInView,this.firstYearInView)?this.nextButton.disabled=!0:this.nextButton.disabled=!1,J0(this._options.disablePast,this._activeDate,this._view,ee,this._options.min,this._options.max,this.lastYearInView,this.firstYearInView)?this.previousButton.disabled=!0:this.previousButton.disabled=!1}_handleUserInput(t){const e=this._getDelimeters(this._options.format),i=this._parseDate(t,this._options.format,e);G0(i)?(this._activeDate=i,this._selectedDate=i,this._selectedYear=K(i),this._selectedMonth=ot(i),this._headerDate=i):(this._activeDate=new Date,this._selectedDate=null,this._selectedMonth=null,this._selectedYear=null,this._headerDate=null,this._headerMonth=null,this._headerYear=null)}_getDelimeters(t){return t.match(/[^(dmy)]{1,}/g)}_parseDate(t,e,i){let n;i[0]!==i[1]?n=i[0]+i[1]:n=i[0];const o=new RegExp(`[${n}]`),r=t.split(o),a=e.split(o),l=e.indexOf("mmm")!==-1,c=[];for(let b=0;bi===t)}static getInstance(t){return D.getData(t,Po)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,typeof e=="object"?e:null)}}const bT=({format24:s,okLabel:t,cancelLabel:e,headID:i,footerID:n,bodyID:o,pickerID:r,clearLabel:a,inline:l,showClearBtn:c,amLabel:h,pmLabel:d},u)=>{const p=`
-
-
+
+
@@ -166,7 +166,7 @@
- ${i?"":`
+ ${s?"":`
`} @@ -178,7 +178,7 @@
- ${i?'
':""} + ${s?'
':""}
`}
@@ -192,8 +192,8 @@
`,f=`
-
-
+
@@ -233,105 +233,105 @@
- ${i?"":`
+ ${s?"":`
`} - ${i?``:""} + ${s?``:""}
-
`;return l?f:p},gy=(i,t,e)=>{const{iconSVG:s}=i;return` +
`;return l?f:p},vT=(s,t,e)=>{const{iconSVG:i}=s;return` -`},ko="data-te-timepicker-disabled",So="data-te-timepicker-active",Ti=i=>{if(i==="")return;let t,e,s,n;return ld(i)?(t=i.getHours(),n=t,e=i.getMinutes(),t%=12,n===0&&t===0&&(s="AM"),t=t||12,s===void 0&&(s=Number(n)>=12?"PM":"AM"),e=e<10?`0${e}`:e):([t,e,s]=Y(i,!1),n=t,t%=12,n===0&&t===0&&(s="AM"),t=t||12,s===void 0&&(s=Number(n)>=12?"PM":"AM")),{hours:t,minutes:e,amOrPm:s}},ld=i=>i&&Object.prototype.toString.call(i)==="[object Date]"&&!Number.isNaN(i),cd=i=>{if(i==="")return;let t,e;return ld(i)?(t=i.getHours(),e=i.getMinutes()):[t,e]=Y(i,!1),e=Number(e)<10?`0${Number(e)}`:e,{hours:t,minutes:e}},my=(i,t,e)=>g.on(document,i,t,({target:s})=>{if(s.hasAttribute(So))return;document.querySelectorAll(t).forEach(o=>{o.hasAttribute(So)&&(_.removeClass(o,e.opacity),o.removeAttribute(So))}),_.addClass(s,e.opacity),s.setAttribute(So,"")}),hd=({clientX:i,clientY:t,touches:e},s,n=!1)=>{const{left:o,top:r}=s.getBoundingClientRect();let a={};return!n||!e?a={x:i-o,y:t-r}:n&&Object.keys(e).length>0&&(a={x:e[0].clientX-o,y:e[0].clientY-r}),a},Oo=()=>navigator.maxTouchPoints&&navigator.maxTouchPoints>2&&/MacIntel/.test(navigator.platform)||/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),Y=(i,t=!0)=>t?i.value.replace(/:/gi," ").split(" "):i.replace(/:/gi," ").split(" "),dd=(i,t)=>{const[e,s,n]=Y(i,!1),[o,r,a]=Y(t,!1);return n==="PM"&&a==="AM"||n===a&&e>o||s>r},ud=()=>{const i=new Date,t=i.getHours(),e=i.getMinutes();return`${t}:${e<10?`0${e}`:e}`},Ye=(i,t,e)=>{if(!t)return i;let s=ud();return e&&(s=`${Ti(s).hours}:${Ti(s).minutes} ${Ti(s).amOrPm}`),(i!==""&&dd(s,i)||i==="")&&(i=s),i},je=(i,t,e)=>{if(!t)return i;let s=ud();return e&&(s=`${Ti(s).hours}:${Ti(s).minutes} ${Ti(s).amOrPm}`),(i!==""&&!dd(s,i)||i==="")&&(i=s),i},by=({format12:i,maxTime:t,minTime:e,disablePast:s,disableFuture:n},o,r)=>{const a=Y(o)[1];e=Ye(e,s,i),t=je(t,n,i);const[l,c,h]=Y(t,!1),[d,u,p]=Y(e,!1);if(h!==void 0||p!==void 0)return[r,a];if(!(l!==""&&d===""&&Number(r)>Number(l))&&!(l===""&&d!==""&&c===void 0&&u!==""&&Number(r){i.forEach(n=>{t=t==="12"&&s?"0":t,(n.textContent==="00"||Number(n.textContent==="12"&&s?"0":n.textContent)>t)&&(_.addClass(n,e.tipsDisabled),n.setAttribute(ko,""))})},fd=(i,t,e,s)=>{i.forEach(n=>{t=t==="12"&&s?"0":t,n.textContent!=="00"&&Number(n.textContent==="12"&&s?"0":n.textContent){if(t==="12"||t==="24")return;const n=e?12:24;return s==="max"?(Number(i)===n?0:Number(i))>Number(t):(Number(i)===n?0:Number(i)){i.forEach(r=>{(_d(s,e,o,"max")||Number(r.textContent)>t&&Number(s)===Number(e))&&(_.addClass(r,n.tipsDisabled),r.setAttribute(ko,""))})},yy=(i,t,e,s,n,o)=>{i.forEach(r=>{(_d(s,e,o,"min")||Number(r.textContent)i.startsWith("0")?Number(i.slice(1)):Number(i),Ws="timepicker",V=`data-te-${Ws}`,gd="[data-te-toggle]",Do=`te.${Ws}`,pe=`.${Do}`,fe=".data-api",md=`click${pe}${fe}`,Io=`keydown${pe}${fe}`,bd=`mousedown${pe}${fe}`,vd=`mouseup${pe}${fe}`,yd=`mousemove${pe}${fe}`,xd=`mouseleave${pe}${fe}`,Td=`mouseover${pe}${fe}`,Ed=`touchmove${pe}${fe}`,Cd=`touchend${pe}${fe}`,Ad=`touchstart${pe}${fe}`,Ty=`[${V}-am]`,Ey=`[${V}-pm]`,Cy=`[${V}-format24]`,Mo=`[${V}-current]`,Lo=`[${V}-hour-mode]`,Ay=`[${V}-toggle-button]`,Ra=`${V}-cancel`,wd=`${V}-clear`,Pa=`${V}-submit`,wy=`${V}-icon`,Na=`${V}-icon-up`,Ba=`${V}-icon-down`,ky=`${V}-icon-inline-hour`,Sy=`${V}-icon-inline-minute`,kd=`${V}-inline-hour-icons`,Oy=`${V}-current-inline`,Dy="readonly",Sd=`${V}-invalid-feedback`,Ha=`${V}-is-invalid`,Ke=`${V}-disabled`,J=`${V}-active`,Iy=`${V}-input`,Ei=`${V}-clock`,Vs=`${V}-clock-inner`,Fa=`${V}-wrapper`,Od=`${V}-clock-wrapper`,$o=`${V}-hour`,Wa=`${V}-minute`,Ro=`${V}-tips-element`,pt=`${V}-tips-hours`,vt=`${V}-tips-minutes`,Rt=`${V}-tips-inner`,Po=`${V}-tips-inner-element`,Dd=`${V}-middle-dot`,Va=`${V}-hand-pointer`,za=`${V}-circle`,Id=`${V}-modal`,My={appendValidationInfo:!0,bodyID:"",cancelLabel:"Cancel",clearLabel:"Clear",closeModalOnBackdropClick:!0,closeModalOnMinutesClick:!1,container:"body",defaultTime:"",disabled:!1,disablePast:!1,disableFuture:!1,enableValidation:!0,focusInputAfterApprove:!1,footerID:"",format12:!0,format24:!1,headID:"",increment:!1,inline:!1,invalidLabel:"Invalid Time Format",maxTime:"",minTime:"",modalID:"",okLabel:"Ok",overflowHidden:!0,pickerID:"",readOnly:!1,showClearBtn:!0,switchHoursToMinutesOnClick:!0,iconSVG:` +`},Ho="data-te-timepicker-disabled",Vo="data-te-timepicker-active",xi=s=>{if(s==="")return;let t,e,i,n;return Jd(s)?(t=s.getHours(),n=t,e=s.getMinutes(),t%=12,n===0&&t===0&&(i="AM"),t=t||12,i===void 0&&(i=Number(n)>=12?"PM":"AM"),e=e<10?`0${e}`:e):([t,e,i]=j(s,!1),n=t,t%=12,n===0&&t===0&&(i="AM"),t=t||12,i===void 0&&(i=Number(n)>=12?"PM":"AM")),{hours:t,minutes:e,amOrPm:i}},Jd=s=>s&&Object.prototype.toString.call(s)==="[object Date]"&&!Number.isNaN(s),tu=s=>{if(s==="")return;let t,e;return Jd(s)?(t=s.getHours(),e=s.getMinutes()):[t,e]=j(s,!1),e=Number(e)<10?`0${Number(e)}`:e,{hours:t,minutes:e}},yT=(s,t,e)=>_.on(document,s,t,({target:i})=>{if(i.hasAttribute(Vo))return;document.querySelectorAll(t).forEach(o=>{o.hasAttribute(Vo)&&(g.removeClass(o,e.opacity),o.removeAttribute(Vo))}),g.addClass(i,e.opacity),i.setAttribute(Vo,"")}),eu=({clientX:s,clientY:t,touches:e},i,n=!1)=>{const{left:o,top:r}=i.getBoundingClientRect();let a={};return!n||!e?a={x:s-o,y:t-r}:n&&Object.keys(e).length>0&&(a={x:e[0].clientX-o,y:e[0].clientY-r}),a},Fo=()=>navigator.maxTouchPoints&&navigator.maxTouchPoints>2&&/MacIntel/.test(navigator.platform)||/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),j=(s,t=!0)=>t?s.value.replace(/:/gi," ").split(" "):s.replace(/:/gi," ").split(" "),iu=(s,t)=>{const[e,i,n]=j(s,!1),[o,r,a]=j(t,!1);return n==="PM"&&a==="AM"||n===a&&e>o||i>r},su=()=>{const s=new Date,t=s.getHours(),e=s.getMinutes();return`${t}:${e<10?`0${e}`:e}`},je=(s,t,e)=>{if(!t)return s;let i=su();return e&&(i=`${xi(i).hours}:${xi(i).minutes} ${xi(i).amOrPm}`),(s!==""&&iu(i,s)||s==="")&&(s=i),s},Ye=(s,t,e)=>{if(!t)return s;let i=su();return e&&(i=`${xi(i).hours}:${xi(i).minutes} ${xi(i).amOrPm}`),(s!==""&&!iu(i,s)||s==="")&&(s=i),s},TT=({format12:s,maxTime:t,minTime:e,disablePast:i,disableFuture:n},o,r)=>{const a=j(o)[1];e=je(e,i,s),t=Ye(t,n,s);const[l,c,h]=j(t,!1),[d,u,p]=j(e,!1);if(h!==void 0||p!==void 0)return[r,a];if(!(l!==""&&d===""&&Number(r)>Number(l))&&!(l===""&&d!==""&&c===void 0&&u!==""&&Number(r){s.forEach(n=>{t=t==="12"&&i?"0":t,(n.textContent==="00"||Number(n.textContent==="12"&&i?"0":n.textContent)>t)&&(g.addClass(n,e.tipsDisabled),n.setAttribute(Ho,""))})},ou=(s,t,e,i)=>{s.forEach(n=>{t=t==="12"&&i?"0":t,n.textContent!=="00"&&Number(n.textContent==="12"&&i?"0":n.textContent){if(t==="12"||t==="24")return;const n=e?12:24;return i==="max"?(Number(s)===n?0:Number(s))>Number(t):(Number(s)===n?0:Number(s)){s.forEach(r=>{(ru(i,e,o,"max")||Number(r.textContent)>t&&Number(i)===Number(e))&&(g.addClass(r,n.tipsDisabled),r.setAttribute(Ho,""))})},xT=(s,t,e,i,n,o)=>{s.forEach(r=>{(ru(i,e,o,"min")||Number(r.textContent)s.startsWith("0")?Number(s.slice(1)):Number(s),Xs="timepicker",W=`data-te-${Xs}`,au="[data-te-toggle]",Wo=`te.${Xs}`,pe=`.${Wo}`,fe=".data-api",lu=`click${pe}${fe}`,zo=`keydown${pe}${fe}`,cu=`mousedown${pe}${fe}`,hu=`mouseup${pe}${fe}`,du=`mousemove${pe}${fe}`,uu=`mouseleave${pe}${fe}`,pu=`mouseover${pe}${fe}`,fu=`touchmove${pe}${fe}`,_u=`touchend${pe}${fe}`,gu=`touchstart${pe}${fe}`,AT=`[${W}-am]`,wT=`[${W}-pm]`,kT=`[${W}-format24]`,jo=`[${W}-current]`,Yo=`[${W}-hour-mode]`,ST=`[${W}-toggle-button]`,ul=`${W}-cancel`,mu=`${W}-clear`,pl=`${W}-submit`,OT=`${W}-icon`,fl=`${W}-icon-up`,_l=`${W}-icon-down`,DT=`${W}-icon-inline-hour`,IT=`${W}-icon-inline-minute`,bu=`${W}-inline-hour-icons`,MT=`${W}-current-inline`,LT="readonly",$T=`${W}-invalid-feedback`,gl=`${W}-is-invalid`,Ke=`${W}-disabled`,J=`${W}-active`,PT=`${W}-input`,Ci=`${W}-clock`,Gs=`${W}-clock-inner`,ml=`${W}-wrapper`,vu=`${W}-clock-wrapper`,Ko=`${W}-hour`,bl=`${W}-minute`,Uo=`${W}-tips-element`,pt=`${W}-tips-hours`,vt=`${W}-tips-minutes`,Rt=`${W}-tips-inner`,Xo=`${W}-tips-inner-element`,yu=`${W}-middle-dot`,vl=`${W}-hand-pointer`,yl=`${W}-circle`,Tu=`${W}-modal`,RT={appendValidationInfo:!0,bodyID:"",cancelLabel:"Cancel",clearLabel:"Clear",closeModalOnBackdropClick:!0,closeModalOnMinutesClick:!1,container:"body",defaultTime:"",disabled:!1,disablePast:!1,disableFuture:!1,enableValidation:!0,focusInputAfterApprove:!1,footerID:"",format12:!0,format24:!1,headID:"",increment:!1,inline:!1,invalidLabel:"Invalid Time Format",maxTime:"",minTime:"",modalID:"",okLabel:"Ok",overflowHidden:!0,pickerID:"",readOnly:!1,showClearBtn:!0,switchHoursToMinutesOnClick:!0,iconSVG:` -`,withIcon:!0,pmLabel:"PM",amLabel:"AM",animations:!0},Ly={appendValidationInfo:"boolean",bodyID:"string",cancelLabel:"string",clearLabel:"string",closeModalOnBackdropClick:"boolean",closeModalOnMinutesClick:"boolean",container:"string",disabled:"boolean",disablePast:"boolean",disableFuture:"boolean",enableValidation:"boolean",footerID:"string",format12:"boolean",format24:"boolean",headID:"string",increment:"boolean",inline:"boolean",invalidLabel:"string",modalID:"string",okLabel:"string",overflowHidden:"boolean",pickerID:"string",readOnly:"boolean",showClearBtn:"boolean",switchHoursToMinutesOnClick:"boolean",defaultTime:"(string|date|number)",iconSVG:"string",withIcon:"boolean",pmLabel:"string",amLabel:"string",animations:"boolean"},$y={tips:"absolute rounded-[100%] w-[32px] h-[32px] text-center cursor-pointer text-[1.1rem] rounded-[100%] bg-transparent flex justify-center items-center font-light focus:outline-none selection:bg-transparent",tipsActive:"text-white bg-[#3b71ca] font-normal",tipsDisabled:"text-[#b3afaf] pointer-events-none bg-transparent",transform:"transition-[transform,height] ease-in-out duration-[400ms]",modal:"z-[1065]",clockAnimation:"animate-[show-up-clock_350ms_linear]",opacity:"!opacity-100",timepickerWrapper:"touch-none opacity-100 z-[1065] inset-0 bg-[#00000066] h-full flex items-center justify-center flex-col fixed",timepickerContainer:"flex items-center justify-center flex-col max-h-[calc(100%-64px)] overflow-y-auto shadow-[0_10px_15px_-3px_rgba(0,0,0,0.07),0_4px_6px_-2px_rgba(0,0,0,0.05)] min-[320px]:max-[825px]:landscape:rounded-lg",timepickerElements:"flex flex-col min-w-[310px] min-h-[325px] bg-white rounded-t-[0.6rem] min-[320px]:max-[825px]:landscape:!flex-row min-[320px]:max-[825px]:landscape:min-w-[auto] min-[320px]:max-[825px]:landscape:min-h-[auto] min-[320px]:max-[825px]:landscape:overflow-y-auto justify-around",timepickerHead:"bg-[#3b71ca] dark:bg-zinc-700 h-[100px] rounded-t-lg pr-[24px] pl-[50px] py-[10px] min-[320px]:max-[825px]:landscape:rounded-tr-none min-[320px]:max-[825px]:landscape:rounded-bl-none min-[320px]:max-[825px]:landscape:p-[10px] min-[320px]:max-[825px]:landscape:pr-[10px] min-[320px]:max-[825px]:landscape:h-auto min-[320px]:max-[825px]:landscape:min-h-[305px] flex flex-row items-center justify-center",timepickerHeadContent:"min-[320px]:max-[825px]:landscape:flex-col flex w-full justify-evenly",timepickerCurrentWrapper:"[direction:ltr] rtl:[direction:rtl]",timepickerCurrentButtonWrapper:"relative h-full",timepickerCurrentButton:"text-[3.75rem] font-light leading-[1.2] tracking-[-0.00833em] text-white opacity-[.54] border-none bg-transparent p-0 min-[320px]:max-[825px]:landscape:text-5xl min-[320px]:max-[825px]:landscape:font-normal cursor-pointer hover:bg-[#00000026] hover:outline-none focus:bg-[#00000026] focus:outline-none ",timepickerDot:"font-light leading-[1.2] tracking-[-0.00833em] text-[3.75rem] opacity-[.54] border-none bg-transparent p-0 text-white min-[320px]:max-[825px]:landscape:text-[3rem] min-[320px]:max-[825px]:landscape:font-normal",timepickerModeWrapper:"flex flex-col justify-center text-[18px] text-[#ffffff8a] min-[320px]:max-[825px]:landscape:!justify-around min-[320px]:max-[825px]:landscape:!flex-row",timepickerModeAm:"p-0 bg-transparent border-none text-white opacity-[.54] cursor-pointer hover:bg-[#00000026] hover:outline-none focus:bg-[#00000026] focus:outline-none",timepickerModePm:"p-0 bg-transparent border-none text-white opacity-[.54] cursor-pointer hover:bg-[#00000026] hover:outline-none focus:bg-[#00000026] focus:outline-none",timepickerClockWrapper:"min-w-[310px] max-w-[325px] min-h-[305px] overflow-x-hidden h-full flex justify-center flex-col items-center dark:bg-zinc-500",timepickerClock:"relative rounded-[100%] w-[260px] h-[260px] cursor-default my-0 mx-auto bg-[#00000012] dark:bg-zinc-600/50",timepickerMiddleDot:"top-1/2 left-1/2 w-[6px] h-[6px] -translate-y-1/2 -translate-x-1/2 rounded-[50%] bg-[#3b71ca] absolute",timepickerHandPointer:"bg-[#3b71ca] bottom-1/2 h-2/5 left-[calc(50%-1px)] rtl:!left-auto origin-[center_bottom_0] rtl:!origin-[50%_50%_0] w-[2px] absolute",timepickerPointerCircle:"-top-[21px] -left-[15px] w-[4px] border-[14px] border-solid border-[#3b71ca] h-[4px] box-content rounded-[100%] absolute",timepickerClockInner:"absolute top-1/2 left-1/2 -translate-y-1/2 -translate-x-1/2 w-[160px] h-[160px] rounded-[100%]",timepickerFooterWrapper:"rounded-b-lg flex justify-between items-center w-full h-[56px] px-[12px] bg-white dark:bg-zinc-500",timepickerFooter:"w-full flex justify-between",timepickerFooterButton:"text-[0.8rem] min-w-[64px] box-border font-medium leading-[40px] rounded-[10px] tracking-[0.1rem] uppercase text-[#3b71ca] dark:text-white border-none bg-transparent transition-[background-color,box-shadow,border] duration-[250ms] ease-[cubic-bezier(0.4,0,0.2,1)] delay-[0ms] outline-none py-0 px-[10px] h-[40px] mb-[10px] hover:bg-[#00000014] focus:bg-[#00000014] focus:outline-none",timepickerInlineWrapper:"touch-none opacity-100 z-[1065] inset-0 bg-[#00000066] h-full flex items-center justify-center flex-col rounded-lg",timepickerInlineContainer:"flex items-center justify-center flex-col max-h-[calc(100%-64px)] overflow-y-auto shadow-[0_10px_15px_-3px_rgba(0,0,0,0.07),0_4px_6px_-2px_rgba(0,0,0,0.05)]",timepickerInlineElements:"flex flex-col min-h-[auto] min-w-[310px] bg-white rounded-[0.6rem] min-[320px]:max-[825px]:landscape:!flex-row min-[320px]:max-[825px]:landscape:rounded-bl-lg min-[320px]:max-[825px]:landscape:min-w-[auto] min-[320px]:max-[825px]:landscape::min-h-[auto] min-[320px]:max-[825px]:landscape:overflow-y-auto justify-around",timepickerInlineHead:"bg-[#3b71ca] dark:bg-zinc-700 h-[100px] rounded-t-lg min-[320px]:max-[825px]:landscape:rounded-tr-none min-[320px]:max-[825px]:landscape:rounded-bl-none min-[320px]:max-[825px]:landscape:p-[10px] min-[320px]:max-[825px]:landscape:pr-[10px] min-[320px]:max-[825px]:landscape:h-auto min-[320px]:max-[825px]:landscape:min-h-[305px] flex flex-row items-center justify-center p-0 rounded-b-lg",timepickerInlineHeadContent:"min-[320px]:max-[825px]:landscape:flex-col flex w-full justify-evenly items-center",timepickerInlineHourWrapper:"relative h-full !opacity-100",timepickerCurrentMinuteWrapper:"relative h-full",timepickerInlineIconUp:"absolute fill-white -top-[35px] opacity-0 hover:opacity-100 transition-all duration-200 ease-[ease] cursor-pointer -translate-x-1/2 -translate-y-1/2 left-1/2 w-[30px] h-[30px] flex justify-center items-center",timepickerInlineIconSvg:"h-4 w-4",timepickerInlineCurrentButton:"font-light leading-[1.2] tracking-[-0.00833em] text-white border-none bg-transparent p-0 min-[320px]:max-[825px]:landscape:text-5xl min-[320px]:max-[825px]:landscape:font-normal !opacity-100 cursor-pointer focus:bg-[#00000026] hover:outline-none focus:outline-none text-[2.5rem] hover:bg-[unset]",timepickerInlineIconDown:"absolute fill-white -bottom-[47px] opacity-0 hover:opacity-100 transition-all duration-200 ease-[ease] cursor-pointer -translate-x-1/2 -translate-y-1/2 left-1/2 w-[30px] h-[30px] flex justify-center items-center",timepickerInlineDot:"font-light leading-[1.2] tracking-[-0.00833em] opacity-[.54] border-none bg-transparent p-0 text-white min-[320px]:max-[825px]:landscape:text-[3rem] min-[320px]:max-[825px]:landscape:font-normal text-[2.5rem]",timepickerInlineModeWrapper:"flex justify-center text-[18px] text-[#ffffff8a] min-[320px]:max-[825px]:landscape:!justify-around min-[320px]:max-[825px]:landscape:!flex-row",timepickerInlineModeAm:"hover:bg-[#00000026] hover:outline-none focus:bg-[#00000026] focus:outline-none p-0 bg-transparent border-none text-white opacity-[.54] cursor-pointer mr-2 ml-6",timepickerInlineModePm:"hover:bg-[#00000026] hover:outline-none focus:bg-[#00000026] focus:outline-none p-0 bg-transparent border-none text-white opacity-[.54] cursor-pointer",timepickerInlineSubmitButton:"hover:bg-[#00000014] focus:bg-[#00000014] focus:outline-none text-[0.8rem] box-border font-medium leading-[40px] tracking-[.1rem] uppercase border-none bg-transparent [transition:background-color_250ms_cubic-bezier(0.4,0,0.2,1)_0ms,box-shadow_250ms_cubic-bezier(0.4,0,0.2,1)_0ms,border_250ms_cubic-bezier(0.4,0,0.2,1)_0ms] outline-none rounded-[100%] h-[48px] min-w-[48px] inline-block ml-[30px] text-white py-1 px-2 mb-0",timepickerToggleButton:"h-4 w-4 ml-auto absolute outline-none border-none bg-transparent right-1.5 top-1/2 -translate-x-1/2 -translate-y-1/2 transition-all duration-300 ease-[cubic-bezier(0.25,0.1,0.25,1)] cursor-pointer hover:text-[#3b71ca] focus:text-[#3b71ca] dark:hover:text-[#3b71ca] dark:focus:text-[#3b71ca] dark:text-white",invalidFeedback:"block absolute text-sm text-red-500 dark:text-red-300"},Ry={tips:"string",tipsActive:"string",tipsDisabled:"string",transform:"string",modal:"string",clockAnimation:"string",opacity:"string",timepickerWrapper:"string",timepickerContainer:"string",timepickerElements:"string",timepickerHead:"string",timepickerHeadContent:"string",timepickerCurrentWrapper:"string",timepickerCurrentButtonWrapper:"string",timepickerCurrentButton:"string",timepickerDot:"string",timepickerModeWrapper:"string",timepickerModeAm:"string",timepickerModePm:"string",timepickerClockWrapper:"string",timepickerClock:"string",timepickerMiddleDot:"string",timepickerHandPointer:"string",timepickerPointerCircle:"string",timepickerClockInner:"string",timepickerFooterWrapper:"string",timepickerFooterButton:"string",timepickerInlineWrapper:"string",timepickerInlineContainer:"string",timepickerInlineElements:"string",timepickerInlineHead:"string",timepickerInlineHeadContent:"string",timepickerInlineHourWrapper:"string",timepickerCurrentMinuteWrapper:"string",timepickerInlineIconUp:"string",timepickerInlineIconSvg:"string",timepickerInlineCurrentButton:"string",timepickerInlineIconDown:"string",timepickerInlineDot:"string",timepickerInlineModeWrapper:"string",timepickerInlineModeAm:"string",timepickerInlineModePm:"string",timepickerInlineSubmitButton:"string",timepickerToggleButton:"string",invalidFeedback:"string"};class Md{constructor(t,e={},s){we(this,"_toggleAmPm",t=>{t==="PM"?(this._isPmEnabled=!0,this._isAmEnabled=!1):t==="AM"&&(this._isPmEnabled=!1,this._isAmEnabled=!0)});we(this,"_toggleBackgroundColorCircle",t=>{if(this._modal.querySelector(`${t}[${J}]`)!==null){_.addStyle(this._circle,{backgroundColor:"#1976d2"});return}_.addStyle(this._circle,{backgroundColor:"transparent"})});we(this,"_toggleClassActive",(t,{textContent:e},s)=>{const n=[...t].find(o=>Number(o)===Number(e));return s.forEach(o=>{if(!o.hasAttribute(Ke)){if(o.textContent===n){_.addClass(o,this._classes.tipsActive),o.setAttribute(J,"");return}_.removeClass(o,this._classes.tipsActive),o.removeAttribute(J)}})});we(this,"_makeMinutesDegrees",(t,e)=>{const{increment:s}=this._options;return t<0?(e=Math.round(360+t/6)%60,t=360+Math.round(t/6)*6):(e=Math.round(t/6)%60,t=Math.round(t/6)*6),s&&(t=Math.round(t/30)*30,e=Math.round(t/6)*6/6,e===60&&(e="00")),t>=360&&(t=0),{degrees:t,minute:e,addDegrees:s?30:6}});we(this,"_makeHourDegrees",(t,e,s)=>{if(t)return this._hasTargetInnerClass(t)?e<0?(s=Math.round(360+e/30)%24,e=360+e):(s=Math.round(e/30)+12,s===12&&(s="00")):e<0?(s=Math.round(360+e/30)%12,e=360+e):(s=Math.round(e/30)%12,(s===0||s>12)&&(s=12)),e>=360&&(e=0),{degrees:e,hour:s,addDegrees:30}});we(this,"_makeInnerHoursDegrees",(t,e)=>(t<0?(e=Math.round(360+t/30)%24,t=360+t):(e=Math.round(t/30)+12,e===12&&(e="00")),{degrees:t,hour:e,addDegrees:30}));we(this,"_getAppendClock",(t=[],e=`[${Ei}]`,s)=>{let{minTime:n,maxTime:o}=this._options;const{inline:r,format12:a,disablePast:l,disableFuture:c}=this._options;n=Ye(n,l,a),o=je(o,c,a);const[h,d,u]=Y(o,!1),[p,f,b]=Y(n,!1);!r&&a&&this._isInvalidTimeFormat&&!this._AM.hasAttribute(J)&&(_.addClass(this._PM,this._classes.opacity),this._PM.setAttribute(J,""));const v=m.findOne(e),y=360/t.length;function x(A){return A*(Math.PI/180)}if(v===null)return;const E=(v.offsetWidth-32)/2,T=(v.offsetHeight-32)/2,C=E-4;setTimeout(()=>{let A;a&&(A=m.findOne(`${Lo}[${J}]`).textContent),this._handleDisablingTipsMinTime(A,b,f,p),this._handleDisablingTipsMaxTime(A,u,d,h)},0),[...t].forEach((A,w)=>{const S=x(w*y),k=L("span"),D=L("span");D.innerHTML=A,_.addClass(k,this._classes.tips),k.setAttribute(s,"");const O=k.offsetWidth,I=k.offsetHeight;return _.addStyle(k,{left:`${E+Math.sin(S)*C-O}px`,bottom:`${T+Math.cos(S)*C-I}px`}),t.includes("05")&&k.setAttribute(vt,""),t.includes("13")?D.setAttribute(Po,""):D.setAttribute(Ro,""),k.appendChild(D),v.appendChild(k)})});this._element=t,this._element&&M.setData(t,Do,this),this._document=document,this._options=this._getConfig(e),this._classes=this._getClasses(s),this._currentTime=null,this._toggleButtonId=Gt("timepicker-toggle-"),this.hoursArray=["12","1","2","3","4","5","6","7","8","9","10","11"],this.innerHours=["00","13","14","15","16","17","18","19","20","21","22","23"],this.minutesArray=["00","05","10","15","20","25","30","35","40","45","50","55"],this.input=m.findOne("input",this._element),this.dataWithIcon=t.dataset.withIcon,this.dataToggle=t.dataset.toggle,this.customIcon=m.findOne(Ay,this._element),this._checkToggleButton(),this.inputFormatShow=m.findOne(Cy,this._element),this.inputFormat=this.inputFormatShow===null?"":Object.values(this.inputFormatShow.dataset)[0],this.elementToggle=m.findOne(gd,this._element),this.toggleElement=Object.values(t.querySelector(gd).dataset)[0],this._hour=null,this._minutes=null,this._AM=null,this._PM=null,this._wrapper=null,this._modal=null,this._hand=null,this._circle=null,this._focusTrap=null,this._popper=null,this._interval=null,this._inputValue=this._options.defaultTime!==""?this._options.defaultTime:this.input.value,this._options.format24&&(this._options.format12=!1,this._currentTime=cd(this._inputValue)),this._options.format12&&(this._options.format24=!1,this._currentTime=Ti(this._inputValue)),this._options.readOnly&&this.input.setAttribute(Dy,!0),this.inputFormat==="true"&&this.inputFormat!==""&&(this._options.format12=!1,this._options.format24=!0,this._currentTime=cd(this._inputValue)),this._animations=!window.matchMedia("(prefers-reduced-motion: reduce)").matches&&this._options.animations,this.init(),this._isHours=!0,this._isMinutes=!1,this._isInvalidTimeFormat=!1,this._isMouseMove=!1,this._isInner=!1,this._isAmEnabled=!1,this._isPmEnabled=!1,this._options.format12&&!this._options.defaultTime&&(this._isPmEnabled=!0),this._objWithDataOnChange={degrees:null},this._scrollBar=new Ds}static get NAME(){return Ws}init(){const{format12:t,format24:e,enableValidation:s}=this._options;let n,o,r;if(this.input.setAttribute(Iy,""),this._currentTime!==void 0){const{hours:a,minutes:l,amOrPm:c}=this._currentTime;n=Number(a)<10?0:"",o=`${n}${Number(a)}:${l}`,r=c,t?this.input.value=`${o} ${r}`:e&&(this.input.value=`${o}`)}else n="",o="",r="",this.input.value="";this.input.value.length>0&&this.input.value!==""&&(this.input.setAttribute(J,""),g.trigger(this.input,"input")),!(this._options===null&&this._element===null)&&(s&&this._getValidate("keydown change blur focus"),this._handleOpen(),this._listenToToggleKeydown())}dispose(){this._removeModal(),this._element!==null&&M.removeData(this._element,Do),setTimeout(()=>{this._element=null,this._options=null,this.input=null,this._focusTrap=null},350),g.off(this._document,"click",`[data-te-toggle='${this.toggleElement}']`),g.off(this._element,"keydown",`[data-te-toggle='${this.toggleElement}']`)}update(t={}){this._options=this._getConfig({...this._options,...t})}_checkToggleButton(){this.customIcon===null&&(this.dataWithIcon!==void 0&&(this._options.withIcon=null,this.dataWithIcon==="true"&&this._appendToggleButton(this._options)),this._options.withIcon&&this._appendToggleButton(this._options))}_appendToggleButton(){const t=gy(this._options,this._toggleButtonId,this._classes);this.input.insertAdjacentHTML("afterend",t)}_getDomElements(){this._hour=m.findOne(`[${$o}]`),this._minutes=m.findOne(`[${Wa}]`),this._AM=m.findOne(Ty),this._PM=m.findOne(Ey),this._wrapper=m.findOne(`[${Fa}]`),this._modal=m.findOne(`[${Id}]`),this._hand=m.findOne(`[${Va}]`),this._circle=m.findOne(`[${za}]`),this._clock=m.findOne(`[${Ei}]`),this._clockInner=m.findOne(`[${Vs}]`)}_handlerMaxMinHoursOptions(t,e,s,n,o,r){if(!e&&!s)return!0;const{format24:a,format12:l,disablePast:c,disableFuture:h}=this._options,{_isAmEnabled:d,_isPmEnabled:u}=this,p=r.keyCode,f=r.target.hasAttribute(Vs)||r.target.hasAttribute(Rt)||r.target.hasAttribute(Po);s=Ye(s,c,l),e=je(e,h,l),typeof e!="number"&&(e=Y(e,!1)[0]);const b=e!==""?e*30:"",v=s!==""?s*30:"";t<0&&(t=360+t),t=t===360?0:t;const y=()=>{const w=document.querySelectorAll(`[${Ro}]`),S=document.querySelectorAll(`[${Po}]`),k=xy(this._hour.innerText);let D,O,I;return p===Ct?O=1:p===ut&&(O=-1),k===12&&p===Ct?I=1:k===0&&p===Ct?I=13:k===0&&p===ut?I=23:k===13&&p===ut?I=0:k===1&&p===ut?I=12:I=k+O,w.forEach(R=>{Number(R.textContent)===I&&(D=R)}),S.forEach(R=>{Number(R.textContent)===I&&(D=R)}),!D.parentElement.hasAttribute(Ke)},x=()=>{const w=s!==""&&s>12?(s-12)*30:"",S=e!==""&&e>12?(e-12)*30:"";if(!(w&&tS||e&&e<12))return!0};if(a&&r.type!=="keydown"&&f)return x();if(r.type==="keydown")return y();const E=!o||o==="PM"&&u||s!==""&&o==="AM"&&d,T=!n||n==="PM"&&u||e!==""&&n==="AM"&&d,C=()=>{const w=v===360&&l?0:v;if(s){if(o==="PM"&&d||E&&t{const w=b===360&&l?0:b;if(e){if(n==="AM"&&u||T&&t>w)return}else return!0;return!0};return C()&&A()}_handleKeyboard(){g.on(this._document,Io,"",t=>{let e,s,n;const{increment:o,maxTime:r,minTime:a,format12:l,disablePast:c,disableFuture:h}=this._options;let d=Y(a,!1)[0],u=Y(r,!1)[0];const p=Y(a,!1)[2],f=Y(r,!1)[2];d=Ye(d,c,l),u=je(u,h,l),typeof u!="number"&&(u=Y(u,!1)[0]);const b=m.findOne(`[${vt}]`)===null,v=m.findOne(`[${Rt}]`)!==null,y=Number(this._hand.style.transform.replace(/[^\d-]/g,"")),x=m.find(`[${vt}]`,this._modal),E=m.find(`[${pt}]`,this._modal),T=m.find(`[${Rt}]`,this._modal);let C=this._makeHourDegrees(t.target,y,e).hour;const{degrees:A,addDegrees:w}=this._makeHourDegrees(t.target,y,e);let{minute:S,degrees:k}=this._makeMinutesDegrees(y,s);const D=this._makeMinutesDegrees(y,s).addDegrees;let{hour:O}=this._makeInnerHoursDegrees(y,n);if(t.keyCode===Hs){const I=m.findOne(`[${Ra}]`,this._modal);g.trigger(I,"click")}else if(b){if(v&&(t.keyCode===is&&(this._isInner=!1,_.addStyle(this._hand,{height:"calc(40% + 1px)"}),this._hour.textContent=this._setHourOrMinute(C>12?1:C),this._toggleClassActive(this.hoursArray,this._hour,E),this._toggleClassActive(this.innerHours,this._hour,T)),t.keyCode===es&&(this._isInner=!0,_.addStyle(this._hand,{height:"21.5%"}),this._hour.textContent=this._setHourOrMinute(O>=24||O==="00"?0:O),this._toggleClassActive(this.innerHours,this._hour,T),this._toggleClassActive(this.hoursArray,this._hour-1,E))),t.keyCode===Ct){if(!this._handlerMaxMinHoursOptions(A+30,u,d,f,p,t))return;_.addStyle(this._hand,{transform:`rotateZ(${A+w}deg)`}),this._isInner?(O+=1,O===24?O=0:(O===25||O==="001")&&(O=13),this._hour.textContent=this._setHourOrMinute(O),this._toggleClassActive(this.innerHours,this._hour,T)):(C+=1,this._hour.textContent=this._setHourOrMinute(C>12?1:C),this._toggleClassActive(this.hoursArray,this._hour,E))}if(t.keyCode===ut){if(!this._handlerMaxMinHoursOptions(A-30,u,d,f,p,t))return;_.addStyle(this._hand,{transform:`rotateZ(${A-w}deg)`}),this._isInner?(O-=1,O===12?O=0:O===-1&&(O=23),this._hour.textContent=this._setHourOrMinute(O),this._toggleClassActive(this.innerHours,this._hour,T)):(C-=1,this._hour.textContent=this._setHourOrMinute(C===0?12:C),this._toggleClassActive(this.hoursArray,this._hour,E))}}else t.keyCode===Ct&&(k+=D,_.addStyle(this._hand,{transform:`rotateZ(${k}deg)`}),S+=1,o&&(S+=4,S==="0014"&&(S=5)),this._minutes.textContent=this._setHourOrMinute(S>59?0:S),this._toggleClassActive(this.minutesArray,this._minutes,x),this._toggleBackgroundColorCircle(`[${vt}]`)),t.keyCode===ut&&(k-=D,_.addStyle(this._hand,{transform:`rotateZ(${k}deg)`}),o?S-=5:S-=1,S===-1?S=59:S===-5&&(S=55),this._minutes.textContent=this._setHourOrMinute(S),this._toggleClassActive(this.minutesArray,this._minutes,x),this._toggleBackgroundColorCircle(`[${vt}]`))})}_setActiveClassToTipsOnOpen(t,...e){if(!this._isInvalidTimeFormat)if(this._options.format24){const s=m.find(`[${pt}]`,this._modal),n=m.find(`[${Rt}]`,this._modal);this._addActiveClassToTip(s,t),this._addActiveClassToTip(n,t)}else{[...e].filter(n=>(n==="PM"?(_.addClass(this._PM,this._classes.opacity),this._PM.setAttribute(J,"")):n==="AM"?(_.addClass(this._AM,this._classes.opacity),this._AM.setAttribute(J,"")):(_.removeClass(this._AM,this._classes.opacity),_.removeClass(this._PM,this._classes.opacity),this._AM.removeAttribute(J),this._PM.removeAttribute(J)),n));const s=m.find(`[${pt}]`,this._modal);this._addActiveClassToTip(s,t)}}_setTipsAndTimesDependOnInputValue(t,e){const{inline:s,format12:n}=this._options;if(this._isInvalidTimeFormat)this._hour.textContent="12",this._minutes.textContent="00",s||_.addStyle(this._hand,{transform:"rotateZ(0deg)"}),n&&(_.addClass(this._PM,this._classes.opacity),this._PM.setAttribute(J,""));else{const o=t>12?t*30-360:t*30;this._hour.textContent=t,this._minutes.textContent=e,s||(_.addStyle(this._hand,{transform:`rotateZ(${o}deg)`}),_.addStyle(this._circle,{backgroundColor:"#1976d2"}),(Number(t)>12||t==="00")&&_.addStyle(this._hand,{height:"21.5%"}))}}_listenToToggleKeydown(){g.on(this._element,"keydown",`[data-te-toggle='${this.toggleElement}']`,t=>{t.keyCode===$t&&(t.preventDefault(),g.trigger(this.elementToggle,"click"))})}_handleOpen(){const t=this._getContainer();li.on(this._element,"click",`[data-te-toggle='${this.toggleElement}']`,e=>{if(this._options===null)return;const s=_.getDataAttribute(this.input,"toggle")!==null?200:0;setTimeout(()=>{_.addStyle(this.elementToggle,{pointerEvents:"none"}),this.elementToggle.blur();let n;Y(this.input)[0]===""?n=["12","00","PM"]:n=Y(this.input);const{modalID:o,inline:r,format12:a}=this._options,[l,c,h]=n,d=L("div");if((Number(l)>12||l==="00")&&(this._isInner=!0),this.input.blur(),e.target.blur(),d.innerHTML=_y(this._options,this._classes),_.addClass(d,this._classes.modal),d.setAttribute(Id,""),d.setAttribute("role","dialog"),d.setAttribute("tabIndex","-1"),d.setAttribute("id",o),r?(this._popper=pi(this.input,d,{placement:"bottom-start"}),t.appendChild(d)):(t.appendChild(d),this._scrollBar.hide()),this._getDomElements(),this._animations?this._toggleBackdropAnimation():_.addClass(this._wrapper,this._classes.opacity),this._setActiveClassToTipsOnOpen(l,c,h),this._appendTimes(),this._setActiveClassToTipsOnOpen(l,c,h),this._setTipsAndTimesDependOnInputValue(l,c),this.input.value===""){const u=m.find(`[${pt}]`,this._modal);a&&(_.addClass(this._PM,this._classes.opacity),this._PM.setAttribute(J,"")),this._hour.textContent="12",this._minutes.textContent="00",this._addActiveClassToTip(u,Number(this._hour.textContent))}if(this._handleSwitchTimeMode(),this._handleOkButton(),this._handleClose(),r)this._handleHoverInlineBtn(),this._handleDocumentClickInline(),this._handleInlineClicks();else{this._handleSwitchHourMinute(),this._handleClockClick(),this._handleKeyboard();const u=document.querySelector(`${Mo}[${J}]`);_.addClass(u,this._classes.opacity),_.addStyle(this._hour,{pointerEvents:"none"}),_.addStyle(this._minutes,{pointerEvents:""})}this._focusTrap=new Is(this._wrapper,{event:"keydown",condition:({key:u})=>u==="Tab"}),this._focusTrap.trap()},s)})}_handleInlineClicks(){let t,e;const s=u=>{let p=u;return p>59?p=0:p<0&&(p=59),p},n=u=>{let p=u;return this._options.format24?(p>24?p=1:p<0&&(p=23),p>23&&(p=0)):(p>12?p=1:p<1&&(p=12),p>12&&(p=1)),p},o=u=>{const p=n(u);this._hour.textContent=this._setHourOrMinute(p)},r=u=>{const p=s(u);this._minutes.textContent=this._setHourOrMinute(p)},a=()=>{t+=1,o(t)},l=()=>{e+=1,r(e)},c=()=>{t-=1,o(t)},h=()=>{e-=1,r(e)},d=u=>{clearInterval(this._interval),this._interval=setInterval(u,100)};li.on(this._modal,"click mousedown mouseup touchstart touchend contextmenu",`[${Na}], [${Ba}]`,u=>{t=Number(this._hour.textContent),e=Number(this._minutes.textContent);const{target:p,type:f}=u,b=f==="mousedown"||f==="touchstart";p.closest(`[${Na}]`)?p.closest(`[${Na}]`).parentNode.hasAttribute(kd)?b?d(a):f==="mouseup"||f==="touchend"||f==="contextmenu"?clearInterval(this._interval):a():b?d(l):f==="mouseup"||f==="touchend"||f==="contextmenu"?clearInterval(this._interval):l():p.closest(`[${Ba}]`)&&(p.closest(`[${Ba}]`).parentNode.hasAttribute(kd)?b?d(c):f==="mouseup"||f==="touchend"?clearInterval(this._interval):c():b?d(h):f==="mouseup"||f==="touchend"?clearInterval(this._interval):h())}),g.on(window,Io,u=>{const p=u.code,f=document.activeElement.hasAttribute($o),b=document.activeElement.hasAttribute(Wa),v=document.activeElement===document.body;switch(t=Number(this._hour.textContent),e=Number(this._minutes.textContent),p){case"ArrowUp":u.preventDefault(),v||f?(this._hour.focus(),a()):b&&l();break;case"ArrowDown":u.preventDefault(),v||f?(this._hour.focus(),c()):b&&h();break}})}_handleClose(){g.on(this._modal,"click",`[${Fa}], [${Ra}], [${wd}]`,({target:t})=>{const{closeModalOnBackdropClick:e}=this._options,s=()=>{var n;_.addStyle(this.elementToggle,{pointerEvents:"auto"}),this._animations&&this._toggleBackdropAnimation(!0),this._removeModal(),(n=this._focusTrap)==null||n.disable(),this._focusTrap=null,this.elementToggle?this.elementToggle.focus():this.input&&this.input.focus()};if(t.hasAttribute(wd)){this._toggleAmPm("PM"),this.input.value="",this.input.removeAttribute(J);let n;Y(this.input)[0]===""?n=["12","00","PM"]:n=Y(this.input);const[o,r,a]=n;this._setTipsAndTimesDependOnInputValue("12","00"),this._setActiveClassToTipsOnOpen(o,r,a),this._hour.click()}else(t.hasAttribute(Ra)||t.hasAttribute(Pa)||t.hasAttribute(Fa)&&e)&&s()})}showValueInput(){return this.input.value}_handleOkButton(){li.on(this._modal,"click",`[${Pa}]`,()=>{let{maxTime:t,minTime:e}=this._options;const{format12:s,format24:n,readOnly:o,focusInputAfterApprove:r,disablePast:a,disableFuture:l}=this._options,c=this._document.querySelector(`${Lo}[${J}]`),h=`${this._hour.textContent}:${this._minutes.textContent}`,d=Number(this._hour.textContent),u=d===12&&s?0:d,p=Number(this._minutes.textContent);e=Ye(e,a,s),t=je(t,l,s);let[f,b,v]=Y(t,!1),[y,x,E]=Y(e,!1);y=y==="12"&&s?"00":y,f=f==="12"&&s?"00":f;const T=uNumber(f);let A=!0;c&&(A=v===c.textContent);let w=!0;c&&(w=E===c.textContent);const S=p>b&&u===Number(f),k=p{const s=m.find(`[${ky}]`,this._modal),n=m.find(`[${Sy}]`,this._modal),o=(l,c)=>l.forEach(h=>{if(c){_.addClass(h,this._classes.opacity),h.setAttribute(J,"");return}_.removeClass(h,this._classes.opacity),h.removeAttribute(J)}),a=e.hasAttribute($o)?s:n;o(a,t==="mouseover")})}_handleDocumentClickInline(){g.on(document,md,({target:t})=>{if(this._modal&&!this._modal.contains(t)&&!t.hasAttribute(wy)){if(clearInterval(this._interval),_.addStyle(this.elementToggle,{pointerEvents:"auto"}),this._removeModal(),!this._animations)return;this._toggleBackdropAnimation(!0)}})}_handleSwitchHourMinute(){my("click",Mo,this._classes),g.on(this._modal,"click",Mo,()=>{const{format24:t}=this._options,e=m.find(Mo,this._modal),s=m.find(`[${vt}]`,this._modal),n=m.find(`[${pt}]`,this._modal),o=m.find(`[${Rt}]`,this._modal),r=Number(this._hour.textContent),a=Number(this._minutes.textContent),l=(c,h)=>{n.forEach(u=>u.remove()),s.forEach(u=>u.remove()),_.addClass(this._hand,this._classes.transform),setTimeout(()=>{_.removeClass(this._hand,this._classes.transform)},401),this._getAppendClock(c,`[${Ei}]`,h);const d=()=>{const u=m.find(`[${pt}]`,this._modal),p=m.find(`[${vt}]`,this._modal);this._addActiveClassToTip(u,r),this._addActiveClassToTip(p,a)};if(!t)setTimeout(()=>{d()},401);else{const u=m.find(`[${Rt}]`,this._modal);setTimeout(()=>{this._addActiveClassToTip(u,r),d()},401)}};e.forEach(c=>{c.hasAttribute(J)&&(c.hasAttribute(Wa)?(_.addClass(this._hand,this._classes.transform),_.addStyle(this._hand,{transform:`rotateZ(${this._minutes.textContent*6}deg)`,height:"calc(40% + 1px)"}),t&&o.length>0&&o.forEach(h=>h.remove()),l(this.minutesArray,vt),this._hour.style.pointerEvents="",this._minutes.style.pointerEvents="none"):c.hasAttribute($o)&&(_.addStyle(this._hand,{transform:`rotateZ(${this._hour.textContent*30}deg)`}),Number(this._hour.textContent)>12?(_.addStyle(this._hand,{transform:`rotateZ(${this._hour.textContent*30-360}deg)`,height:"21.5%"}),Number(this._hour.textContent)>12&&_.addStyle(this._hand,{height:"21.5%"})):_.addStyle(this._hand,{height:"calc(40% + 1px)"}),t&&this._getAppendClock(this.innerHours,`[${Vs}]`,Rt),o.length>0&&o.forEach(h=>h.remove()),l(this.hoursArray,pt),_.addStyle(this._hour,{pointerEvents:"none"}),_.addStyle(this._minutes,{pointerEvents:""})))})})}_handleDisablingTipsMaxTime(t,e,s,n){if(!this._options.maxTime&&!this._options.disableFuture)return;const o=m.find(`[${pt}]`),r=m.find(`[${Rt}]`),a=m.find(`[${vt}]`);if(!e||e===t){pd(r,n,this._classes,this._options.format12),pd(o,n,this._classes,this._options.format12),vy(a,s,n,this._hour.textContent,this._classes,this._options.format12);return}e==="AM"&&t==="PM"&&(o.forEach(l=>{_.addClass(l,this._classes.tipsDisabled),l.setAttribute(Ke,"")}),a.forEach(l=>{_.addClass(l,this._classes.tipsDisabled),l.setAttribute(Ke,"")}))}_handleDisablingTipsMinTime(t,e,s,n){if(!this._options.minTime&&!this._options.disablePast)return;const o=m.find(`[${pt}]`),r=m.find(`[${Rt}]`),a=m.find(`[${vt}]`);!e||e===t?(fd(o,n,this._classes,this._options.format12),fd(r,n,this._classes,this._options.format12),yy(a,s,n,this._hour.textContent,this._classes,this._options.format12)):e==="PM"&&t==="AM"&&(o.forEach(l=>{_.addClass(l,this._classes.tipsDisabled),l.setAttribute(Ke,"")}),a.forEach(l=>{_.addClass(l,this._classes.tipsDisabled),l.setAttribute(Ke,"")}))}_handleSwitchTimeMode(){g.on(document,"click",Lo,({target:t})=>{let{maxTime:e,minTime:s}=this._options;const{disablePast:n,disableFuture:o,format12:r}=this._options;s=Ye(s,n,r),e=je(e,o,r);const[a,l,c]=Y(e,!1),[h,d,u]=Y(s,!1),p=m.find(`[${pt}]`),f=m.find(`[${vt}]`);(()=>{p.forEach(v=>{_.removeClass(v,this._classes.tipsDisabled),v.removeAttribute(Ke)}),f.forEach(v=>{_.removeClass(v,this._classes.tipsDisabled),v.removeAttribute(Ke)})})(),this._handleDisablingTipsMinTime(t.textContent,u,d,h),this._handleDisablingTipsMaxTime(t.textContent,c,l,a),this._toggleAmPm(t.textContent),t.hasAttribute(J)||(m.find(Lo).forEach(y=>{y.hasAttribute(J)&&(_.removeClass(y,this._classes.opacity),y.removeAttribute(J))}),_.addClass(t,this._classes.opacity),t.setAttribute(J,""))})}_handleClockClick(){let{maxTime:t,minTime:e}=this._options;const{disablePast:s,disableFuture:n,format12:o}=this._options;e=Ye(e,s,o),t=je(t,n,o);const r=Y(t,!1)[2],a=Y(e,!1)[2],l=Y(t,!1)[0],c=Y(e,!1)[0],h=m.findOne(`[${Od}]`);li.on(document,`${bd} ${vd} ${yd} ${xd} ${Td} ${Ad} ${Ed} ${Cd}`,"",d=>{Oo()||d.preventDefault();const{type:u,target:p}=d,{closeModalOnMinutesClick:f,switchHoursToMinutesOnClick:b}=this._options,v=m.findOne(`[${vt}]`,this._modal)!==null,y=m.findOne(`[${pt}]`,this._modal)!==null,x=m.findOne(`[${Rt}]`,this._modal)!==null,E=m.find(`[${vt}]`,this._modal),T=hd(d,h),C=h.offsetWidth/2;let A=Math.atan2(T.y-C,T.x-C);if(Oo()){const D=hd(d,h,!0);A=Math.atan2(D.y-C,D.x-C)}let w=null,S=null,k=null;if(u==="mousedown"||u==="mousemove"||u==="touchmove"||u==="touchstart")(u==="mousedown"||u==="touchstart"||u==="touchmove")&&(this._hasTargetInnerClass(p)||p.hasAttribute(Od)||p.hasAttribute(Ei)||p.hasAttribute(vt)||p.hasAttribute(pt)||p.hasAttribute(za)||p.hasAttribute(Va)||p.hasAttribute(Dd)||p.hasAttribute(Ro))&&(this._isMouseMove=!0,Oo()&&d.touches&&(w=d.touches[0].clientX,S=d.touches[0].clientY,k=document.elementFromPoint(w,S)));else if(u==="mouseup"||u==="touchend"){if(this._isMouseMove=!1,this._hasTargetInnerClass(p)||p.hasAttribute(Ei)||p.hasAttribute(pt)||p.hasAttribute(za)||p.hasAttribute(Va)||p.hasAttribute(Dd)||p.hasAttribute(Ro)){if((y||x)&&b){const D=Number(this._hour.textContent)>l||Number(this._hour.textContent)$>=10||$==="00"?$:`0${$}`;this._minutes.textContent=z(),this._toggleClassActive(this.minutesArray,this._minutes,E),this._toggleBackgroundColorCircle(`[${vt}]`),this._objWithDataOnChange.degreesMinutes=X,this._objWithDataOnChange.minutes=$}}if(y||x){let D,O=Math.trunc(A*180/Math.PI)+90;if(O=Math.round(O/30)*30,_.addStyle(this._circle,{backgroundColor:"#1976d2"}),this._makeHourDegrees(p,O,D)===void 0)return;const I=()=>{if(Oo()&&O&&k){const{degrees:R,hour:X}=this._makeHourDegrees(k,O,D);return this._handleMoveHand(k,X,R)}else{const{degrees:R,hour:X}=this._makeHourDegrees(p,O,D);return this._handleMoveHand(p,X,R)}};this._objWithDataOnChange.degreesHours=O,this._handlerMaxMinHoursOptions(O,l,c,r,a,d)&&I()}d.stopPropagation()})}_hasTargetInnerClass(t){return t.hasAttribute(Vs)||t.hasAttribute(Rt)||t.hasAttribute(Po)}_handleMoveHand(t,e,s){const n=m.find(`[${pt}]`,this._modal),o=m.find(`[${Rt}]`,this._modal);this._isMouseMove&&(this._hasTargetInnerClass(t)?_.addStyle(this._hand,{height:"21.5%"}):_.addStyle(this._hand,{height:"calc(40% + 1px)"}),_.addStyle(this._hand,{transform:`rotateZ(${s}deg)`}),this._hour.textContent=e>=10||e==="00"?e:`0${e}`,this._toggleClassActive(this.hoursArray,this._hour,n),this._toggleClassActive(this.innerHours,this._hour,o),this._objWithDataOnChange.hour=e>=10||e==="00"?e:`0${e}`)}_handlerMaxMinMinutesOptions(t,e){let{maxTime:s,minTime:n}=this._options;const{format12:o,increment:r,disablePast:a,disableFuture:l}=this._options;n=Ye(n,a,o),s=je(s,l,o);const c=Y(s,!1)[1],h=Y(n,!1)[1],d=Y(s,!1)[0],u=Y(n,!1)[0],p=u==="12"&&o?"0":u,f=d==="12"&&o?"0":d,b=Y(s,!1)[2],v=Y(n,!1)[2],y=c!==""?c*6:"",x=h!==""?h*6:"",E=Number(this._hour.textContent),T=E===12&&o?0:E;if(!b&&!v){if(s!==""&&n!==""){if(Number(f)===T&&t>y||Number(p)===T&&t=Number(f)&&t>=y+6)return t}else{if(n!==""){if(v==="PM"&&this._isAmEnabled)return;if(v==="PM"&&this._isPmEnabled){if(T=Number(f)&&t>=y+6)return t}else if(b==="AM"&&this._isAmEnabled&&T>=Number(f)&&t>=y+6)return t}}return r&&(t=Math.round(t/30)*30),t<0?t=360+t:t>=360&&(t=0),{degrees:t,minute:e}}_removeModal(){this._animations?setTimeout(()=>{this._removeModalElements(),this._scrollBar.reset()},300):(this._removeModalElements(),this._scrollBar.reset()),li.off(this._document,`${md} ${Io} ${bd} ${vd} ${yd} ${xd} ${Td} ${Ad} ${Ed} ${Cd}`),g.off(window,Io)}_removeModalElements(){this._modal&&this._modal.remove()}_toggleBackdropAnimation(t=!1){t?this._wrapper.classList.add("animate-[fade-out_350ms_ease-in-out]"):(this._wrapper.classList.add("animate-[fade-in_350ms_ease-in-out]"),this._options.inline||_.addClass(this._clock,this._classes.clockAnimation)),setTimeout(()=>{this._wrapper.classList.remove("animate-[fade-out_350ms_ease-in-out]","animate-[fade-in_350ms_ease-in-out]")},351)}_addActiveClassToTip(t,e){t.forEach(s=>{Number(s.textContent)===Number(e)&&(_.addClass(s,this._classes.tipsActive),s.setAttribute(J,""))})}_setHourOrMinute(t){return t<10?`0${t}`:t}_appendTimes(){const{format24:t}=this._options;if(t){this._getAppendClock(this.hoursArray,`[${Ei}]`,pt),this._getAppendClock(this.innerHours,`[${Vs}]`,Rt);return}this._getAppendClock(this.hoursArray,`[${Ei}]`,pt)}_getConfig(t){const e=_.getDataAttributes(this._element);return t={...My,...e,...t},P(Ws,t,Ly),t}_getClasses(t){const e=_.getDataClassAttributes(this._element);return t={...$y,...e,...t},P(Ws,t,Ry),t}_getContainer(){return m.findOne(this._options.container)}_getValidate(t){const{invalidLabel:e,format24:s,format12:n,appendValidationInfo:o}=this._options;let r;o&&(r=L("div"),r.setAttribute(Sd,""),_.addClass(r,this._classes.invalidFeedback),r.innerHTML=e),li.on(this.input,t,({target:a})=>{if(this._options===null||this.input.value==="")return;const l=/^(0?[1-9]|1[012])(:[0-5]\d) [APap][mM]$/,c=/^([01]\d|2[0-3])(:[0-5]\d)$/,h=l.test(a.value);if(c.test(a.value)!==!0&&s||h!==!0&&n){o&&(this.input.setAttribute(Ha,""),this.input.parentNode.insertBefore(r,this.input.nextSibling)),_.addStyle(a,{marginBottom:0}),_.addStyle(r,{bottom:"-23px"}),this._isInvalidTimeFormat=!0;return}this.input.removeAttribute(Ha),this._isInvalidTimeFormat=!1;const u=m.findOne(`[${Sd}]`);u!==null&&u.remove()})}static getInstance(t){return M.getData(t,Do)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,typeof e=="object"?e:null)}}const Py={threshold:10,direction:"all"};class Ny{constructor(t,e){this._element=t,this._startPosition=null,this._options={...Py,...e}}handleTouchStart(t){this._startPosition=this._getCoordinates(t)}handleTouchMove(t){if(!this._startPosition)return;const e=this._getCoordinates(t),s={x:e.x-this._startPosition.x,y:e.y-this._startPosition.y},n=this._getDirection(s);if(this._options.direction==="all"){if(n.y.valuen.x.value?n.y.direction:n.x.direction;g.trigger(this._element,`swipe${r}`),g.trigger(this._element,"swipe",{direction:r}),this._startPosition=null;return}const o=this._options.direction==="left"||this._options==="right"?"x":"y";n[o].direction===this._options.direction&&n[o].value>this._options.threshold&&(g.trigger(this._element,`swipe${n[o].direction}`),this._startPosition=null)}handleTouchEnd(){this._startPosition=null}_getCoordinates(t){const[e]=t.touches;return{x:e.clientX,y:e.clientY}}_getDirection(t){return{x:{direction:t.x<0?"left":"right",value:Math.abs(t.x)},y:{direction:t.y<0?"up":"down",value:Math.abs(t.y)}}}}class By{constructor(t,e="swipe",s={}){this._element=t,this._event=e,this.swipe=new Ny(t,s),this._touchStartHandler=this._handleTouchStart.bind(this),this._touchMoveHandler=this._handleTouchMove.bind(this),this._touchEndHandler=this._handleTouchEnd.bind(this)}dispose(){this._element.removeEventListener("touchstart",this._touchStartHandler),this._element.removeEventListener("touchmove",this._touchMoveHandler),window.removeEventListener("touchend",this._touchEndHandler)}init(){this._element.addEventListener("touchstart",t=>this._handleTouchStart(t)),this._element.addEventListener("touchmove",t=>this._handleTouchMove(t)),window.addEventListener("touchend",t=>this._handleTouchEnd(t))}_handleTouchStart(t){this[this._event].handleTouchStart(t)}_handleTouchMove(t){this[this._event].handleTouchMove(t)}_handleTouchEnd(t){this[this._event].handleTouchEnd(t)}}const Ya="stepper",No="te.stepper",Bo=`.${No}`,zs=`data-te-${Ya}`,Ys="horizontal",_e="vertical",Hy={stepperType:"string",stepperLinear:"boolean",stepperNoEditable:"boolean",stepperActive:"string",stepperCompleted:"string",stepperInvalid:"string",stepperDisabled:"string",stepperVerticalBreakpoint:"number",stepperMobileBreakpoint:"number",stepperMobileBarBreakpoint:"number"},Fy={stepperType:Ys,stepperLinear:!1,stepperNoEditable:!1,stepperActive:"",stepperCompleted:"",stepperInvalid:"",stepperDisabled:"",stepperVerticalBreakpoint:0,stepperMobileBreakpoint:0,stepperMobileBarBreakpoint:4},Ld=`mousedown${Bo}`,$d=`keydown${Bo}`,Wy=`keyup${Bo}`,Rd=`resize${Bo}`,Ue=`[${zs}-step-ref]`,yt=`[${zs}-head-ref]`,Pd=`[${zs}-head-text-ref]`,Ho=`[${zs}-head-icon-ref]`,At=`[${zs}-content-ref]`;class Nd{constructor(t,e){this._element=t,this._options=this._getConfig(e),this._elementHeight=0,this._steps=m.find(`${Ue}`,this._element),this._currentView="",this._activeStepIndex=0,this._verticalStepperStyles=[],this._element&&(M.setData(t,No,this),this._init())}static get NAME(){return Ya}get activeStep(){return this._steps[this._activeStepIndex]}get activeStepIndex(){return this._activeStepIndex}dispose(){this._steps.forEach(t=>{g.off(t,Ld),g.off(t,$d)}),g.off(window,Rd),M.removeData(this._element,No),this._element=null}changeStep(t){this._toggleStep(t)}nextStep(){this._toggleStep(this._activeStepIndex+1)}previousStep(){this._toggleStep(this._activeStepIndex-1)}_init(){const t=m.find(`${Ue}`,this._element)[this._activeStepIndex].setAttribute("data-te","active-step"),e=m.find(`${Pd}`,this._element),s=m.find(`${Ho}`,this._element);switch(t?(this._activeStepIndex=this._steps.indexOf(t),this._toggleStepClass(this._activeStepIndex,"add",this._options.stepperActive),e[this._activeStepIndex].classList.add("font-medium"),s[this._activeStepIndex].classList.add("!bg-primary-100"),s[this._activeStepIndex].classList.add("!text-primary-700")):(e[this._activeStepIndex].classList.add("font-medium"),s[this._activeStepIndex].classList.add("!bg-primary-100"),s[this._activeStepIndex].classList.add("!text-primary-700"),this._toggleStepClass(this._activeStepIndex,"add",this._options.stepperActive)),this._bindMouseDown(),this._bindKeysNavigation(),this._options.stepperType){case _e:this._toggleVertical();break;default:this._toggleHorizontal();break}(this._options.stepperVerticalBreakpoint||this._options.stepperMobileBreakpoint)&&this._toggleStepperView(),this._bindResize()}_getConfig(t){const e=_.getDataAttributes(this._element);return t={...Fy,...e,...t},P(Ya,t,Hy),t}_bindMouseDown(){this._steps.forEach(t=>{const e=m.findOne(`${yt}`,t);g.on(e,Ld,s=>{const n=m.parents(s.target,`${Ue}`)[0],o=this._steps.indexOf(n);s.preventDefault(),this._toggleStep(o)})})}_bindResize(){g.on(window,Rd,()=>{this._currentView===_e&&this._setSingleStepHeight(this.activeStep),this._currentView===Ys&&this._setHeight(this.activeStep),(this._options.stepperVerticalBreakpoint||this._options.stepperMobileBreakpoint)&&this._toggleStepperView()})}_toggleStepperView(){const t=this._options.stepperVerticalBreakpointwindow.innerWidth,s=this._options.stepperMobileBreakpoint>window.innerWidth;t&&this._currentView!==Ys&&this._toggleHorizontal(),e&&!s&&this._currentView!==_e&&(this._steps.forEach(n=>{const o=m.findOne(`${At}`,n);this._resetStepperHeight(),this._showElement(o)}),this._toggleVertical())}_toggleStep(t){this._activeStepIndex!==t&&(this._options.stepperNoEditable&&this._toggleDisabled(),this._showElement(m.findOne(`${At}`,this._steps[t])),this._toggleActive(t),t>this._activeStepIndex&&this._toggleCompleted(this._activeStepIndex),this._currentView===Ys?this._animateHorizontalStep(t):(this._animateVerticalStep(t),this._setSingleStepHeight(this._steps[t])),this._toggleStepTabIndex(m.findOne(`${yt}`,this.activeStep),m.findOne(`${yt}`,this._steps[t])),this._activeStepIndex=t,this._steps[this._activeStepIndex].setAttribute("data-te","active-step"),this._steps.forEach((e,s)=>{e[this._activeStepIndex]!==s&&e.removeAttribute("data-te")}))}_resetStepperHeight(){this._element.style.height=""}_setStepsHeight(){this._steps.forEach(t=>{const e=m.findOne(`${At}`,t),s=window.getComputedStyle(e);this._verticalStepperStyles.push({paddingTop:parseFloat(s.paddingTop),paddingBottom:parseFloat(s.paddingBottom)});const n=e.scrollHeight;e.style.height=`${n}px`})}_setSingleStepHeight(t){const e=m.findOne(`${At}`,t),s=this.activeStep===t,n=this._steps.indexOf(t);let o;s?(e.style.height="",o=e.scrollHeight):o=e.scrollHeight+this._verticalStepperStyles[n].paddingTop+this._verticalStepperStyles[n].paddingBottom,e.style.height=`${o}px`}_toggleVertical(){this._currentView=_e,this._setStepsHeight(),this._hideInactiveSteps()}_toggleHorizontal(){this._currentView=Ys,this._setHeight(this.activeStep),this._hideInactiveSteps()}_toggleStepperClass(){m.findOne("[data-te-stepper-type]",this._element)!==null&&this._steps.forEach(e=>{m.findOne(`${At}`,e).classList.remove("!my-0"),m.findOne(`${At}`,e).classList.remove("!py-0"),m.findOne(`${At}`,e).classList.remove("!h-0")})}_toggleStepClass(t,e,s){s&&this._steps[t].classList[e](s)}_bindKeysNavigation(){this._toggleStepTabIndex(!1,m.findOne(`${yt}`,this.activeStep)),this._steps.forEach(t=>{const e=m.findOne(`${yt}`,t);g.on(e,$d,s=>{const n=m.parents(s.currentTarget,`${Ue}`)[0],o=m.next(n,`${Ue}`)[0],r=m.prev(n,`${Ue}`)[0],a=m.findOne(`${yt}`,n),l=m.findOne(`${yt}`,this.activeStep);let c=null,h=null;if(o&&(c=m.findOne(`${yt}`,o)),r&&(h=m.findOne(`${yt}`,r)),s.keyCode===es&&this._currentView!==_e&&(h?(this._toggleStepTabIndex(a,h),this._toggleOutlineStyles(a,h),h.focus()):c&&(this._toggleStepTabIndex(a,c),this._toggleOutlineStyles(a,c),c.focus())),s.keyCode===is&&this._currentView!==_e&&(c?(this._toggleStepTabIndex(a,c),this._toggleOutlineStyles(a,c),c.focus()):h&&(this._toggleStepTabIndex(a,h),this._toggleOutlineStyles(a,h),h.focus())),s.keyCode===ut&&this._currentView===_e&&(s.preventDefault(),c&&(this._toggleStepTabIndex(a,c),this._toggleOutlineStyles(a,c),c.focus())),s.keyCode===Ct&&this._currentView===_e&&(s.preventDefault(),h&&(this._toggleStepTabIndex(a,h),this._toggleOutlineStyles(a,h),h.focus())),s.keyCode===ss){const d=m.findOne(`${yt}`,this._steps[0]);this._toggleStepTabIndex(a,d),this._toggleOutlineStyles(a,d),d.focus()}if(s.keyCode===ns){const d=this._steps[this._steps.length-1],u=m.findOne(`${yt}`,d);this._toggleStepTabIndex(a,u),this._toggleOutlineStyles(a,u),u.focus()}(s.keyCode===$t||s.keyCode===yo)&&(s.preventDefault(),this.changeStep(this._steps.indexOf(n))),s.keyCode===Fs&&(this._toggleStepTabIndex(a,l),this._toggleOutlineStyles(a,!1),l.focus())}),g.on(e,Wy,s=>{const n=m.parents(s.currentTarget,`${Ue}`)[0],o=m.findOne(`${yt}`,n),r=m.findOne(`${yt}`,this.activeStep);s.keyCode===Fs&&(this._toggleStepTabIndex(o,r),this._toggleOutlineStyles(!1,r),r.focus())})})}_toggleStepTabIndex(t,e){t&&t.setAttribute("tabIndex",-1),e&&e.setAttribute("tabIndex",0)}_toggleOutlineStyles(t,e){t&&(t.style.outline=""),e&&(e.style.outline="revert")}_toggleDisabled(){const t=m.find(`${yt}`,this._element),e=m.find(`${Ho}`,this._element);t[this._activeStepIndex].classList.add("color-[#858585]"),t[this._activeStepIndex].classList.add("cursor-default"),e[this._activeStepIndex].classList.add("!bg-[#858585]"),this._toggleStepClass(this._activeStepIndex,"add",this._options.stepperDisabled)}_toggleActive(t){const e=m.find(`${Pd}`,this._element),s=m.find(`${Ho}`,this._element);e[t].classList.add("font-medium"),s[t].classList.add("!bg-primary-100"),s[t].classList.add("!text-primary-700"),s[t].classList.remove("!bg-success-100"),s[t].classList.remove("!text-success-700"),e[this._activeStepIndex].classList.remove("font-medium"),s[this._activeStepIndex].classList.remove("!bg-primary-100"),s[this._activeStepIndex].classList.remove("!text-primary-700"),this._toggleStepClass(t,"add",this._options.stepperActive),this._toggleStepClass(this._activeStepIndex,"remove",this._options.stepperActive)}_toggleCompleted(t){const e=m.find(`${Ho}`,this._element);e[t].classList.add("!bg-success-100"),e[t].classList.add("!text-success-700"),e[t].classList.remove("!bg-danger-100"),e[t].classList.remove("!text-danger-700"),this._toggleStepClass(t,"add",this._options.stepperCompleted),this._toggleStepClass(t,"remove",this._options.stepperInvalid)}_hideInactiveSteps(){this._steps.forEach(t=>{t.getAttribute("data-te")||this._hideElement(m.findOne(`${At}`,t))})}_setHeight(t){const e=m.findOne(`${At}`,t),s=getComputedStyle(e),n=m.findOne(`${yt}`,t),o=getComputedStyle(n),r=e.offsetHeight+parseFloat(s.marginTop)+parseFloat(s.marginBottom),a=n.offsetHeight+parseFloat(o.marginTop)+parseFloat(o.marginBottom);this._element.style.height=`${a+r}px`}_hideElement(t){!m.parents(t,`${Ue}`)[0].getAttribute("data-te")&&this._currentView!==_e||(t.classList.add("!my-0"),t.classList.add("!py-0"),t.classList.add("!h-0"))}_showElement(t){this._currentView===_e?(t.classList.remove("!my-0"),t.classList.remove("!py-0"),t.classList.remove("!h-0")):t.style.display="block"}_animateHorizontalStep(t){const e=t>this._activeStepIndex,s=m.findOne(`${At}`,this._steps[t]),n=m.findOne(`${At}`,this.activeStep);let o,r;this._steps.forEach((h,d)=>{const u=m.findOne(`${At}`,h);d!==t&&d!==this._activeStepIndex&&this._hideElement(u)});const a="translate-x-[150%]",l="-translate-x-[150%]",c="translate-0";e?(r=l,o=c,s.classList.remove("translate-x-[150%]"),s.classList.remove("-translate-x-[150%]")):(r=a,o=c,s.classList.remove("-translate-x-[150%]"),s.classList.remove("translate-x-[150%]")),n.classList.add(r),s.classList.add(o),this._setHeight(this._steps[t])}_animateVerticalStep(t){const e=m.findOne(`${At}`,this._steps[t]),s=m.findOne(`${At}`,this.activeStep);this._hideElement(s),this._showElement(e)}static getInstance(t){return M.getData(t,No)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,typeof e=="object"?e:null)}}const Bd="data-te-input-state-active",Fo="data-te-input-selected",Hd="data-te-input-multiple-active",Fd="[data-te-form-check-input]";class Wd{constructor(t,e,s,n,o,r,a,l,c,h,d){this.id=t,this.nativeOption=e,this.multiple=s,this.value=n,this.label=o,this.selected=r,this.disabled=a,this.hidden=l,this.secondaryText=c,this.groupId=h,this.icon=d,this.node=null,this.active=!1}select(){this.multiple?this._selectMultiple():this._selectSingle()}_selectSingle(){this.selected||(this.node.setAttribute(Fo,""),this.node.setAttribute("aria-selected",!0),this.selected=!0,this.nativeOption&&(this.nativeOption.selected=!0))}_selectMultiple(){if(!this.selected){const t=m.findOne(Fd,this.node);t.checked=!0,this.node.setAttribute(Fo,""),this.node.setAttribute("aria-selected",!0),this.selected=!0,this.nativeOption&&(this.nativeOption.selected=!0)}}deselect(){this.multiple?this._deselectMultiple():this._deselectSingle()}_deselectSingle(){this.selected&&(this.node.removeAttribute(Fo),this.node.setAttribute("aria-selected",!1),this.selected=!1,this.nativeOption&&(this.nativeOption.selected=!1))}_deselectMultiple(){if(this.selected){const t=m.findOne(Fd,this.node);t.checked=!1,this.node.removeAttribute(Fo),this.node.setAttribute("aria-selected",!1),this.selected=!1,this.nativeOption&&(this.nativeOption.selected=!1)}}setNode(t){this.node=t}setActiveStyles(){if(!this.active){if(this.multiple){this.node.setAttribute(Hd,"");return}this.active=!0,this.node.setAttribute(Bd,"")}}removeActiveStyles(){this.active&&(this.active=!1,this.node.removeAttribute(Bd)),this.multiple&&this.node.removeAttribute(Hd)}}class Vy{constructor(t=!1){this._multiple=t,this._selections=[]}select(t){this._multiple?this._selections.push(t):this._selections=[t]}deselect(t){if(this._multiple){const e=this._selections.findIndex(s=>t===s);this._selections.splice(e,1)}else this._selections=[]}clear(){this._selections=[]}get selection(){return this._selections[0]}get selections(){return this._selections}get label(){return this._selections[0]&&this.selection.label}get labels(){return this._selections.map(t=>t.label).join(", ")}get value(){return this.selections[0]&&this.selection.value}get values(){return this._selections.map(t=>t.value)}}function ja(i){return i.filter(t=>!t.disabled).every(t=>t.selected)}const zy="data-te-select-form-outline-ref",Yy="data-te-select-wrapper-ref",jy="data-te-select-input-ref",Ky="data-te-select-clear-btn-ref",Uy="data-te-select-dropdown-container-ref",Xy="data-te-select-dropdown-ref",Gy="data-te-select-options-wrapper-ref",qy="data-te-select-options-list-ref",Zy="data-te-select-input-filter-ref",Vd="data-te-select-option-ref",Qy="data-te-select-option-all-ref",Jy="data-te-select-option-text-ref",tx="data-te-form-check-input",ex="data-te-select-option-group-ref",ix="data-te-select-option-group-label-ref",zd="data-te-select-selected",sx=` +`,withIcon:!0,pmLabel:"PM",amLabel:"AM",animations:!0},NT={appendValidationInfo:"boolean",bodyID:"string",cancelLabel:"string",clearLabel:"string",closeModalOnBackdropClick:"boolean",closeModalOnMinutesClick:"boolean",container:"string",disabled:"boolean",disablePast:"boolean",disableFuture:"boolean",enableValidation:"boolean",footerID:"string",format12:"boolean",format24:"boolean",headID:"string",increment:"boolean",inline:"boolean",invalidLabel:"string",modalID:"string",okLabel:"string",overflowHidden:"boolean",pickerID:"string",readOnly:"boolean",showClearBtn:"boolean",switchHoursToMinutesOnClick:"boolean",defaultTime:"(string|date|number)",iconSVG:"string",withIcon:"boolean",pmLabel:"string",amLabel:"string",animations:"boolean"},BT={tips:"absolute rounded-[100%] w-[32px] h-[32px] text-center cursor-pointer text-[1.1rem] rounded-[100%] bg-transparent flex justify-center items-center font-light focus:outline-none selection:bg-transparent",tipsActive:"text-white bg-[#3b71ca] font-normal",tipsDisabled:"text-[#b3afaf] pointer-events-none bg-transparent",transform:"transition-[transform,height] ease-in-out duration-[400ms]",modal:"z-[1065]",clockAnimation:"animate-[show-up-clock_350ms_linear]",opacity:"!opacity-100",timepickerWrapper:"touch-none opacity-100 z-[1065] inset-0 bg-[#00000066] h-full flex items-center justify-center flex-col fixed",timepickerContainer:"flex items-center justify-center flex-col max-h-[calc(100%-64px)] overflow-y-auto shadow-[0_10px_15px_-3px_rgba(0,0,0,0.07),0_4px_6px_-2px_rgba(0,0,0,0.05)] min-[320px]:max-[825px]:landscape:rounded-lg",timepickerElements:"flex flex-col min-w-[310px] min-h-[325px] bg-white rounded-t-[0.6rem] min-[320px]:max-[825px]:landscape:!flex-row min-[320px]:max-[825px]:landscape:min-w-[auto] min-[320px]:max-[825px]:landscape:min-h-[auto] min-[320px]:max-[825px]:landscape:overflow-y-auto justify-around",timepickerHead:"bg-[#3b71ca] dark:bg-zinc-700 h-[100px] rounded-t-lg pr-[24px] pl-[50px] py-[10px] min-[320px]:max-[825px]:landscape:rounded-tr-none min-[320px]:max-[825px]:landscape:rounded-bl-none min-[320px]:max-[825px]:landscape:p-[10px] min-[320px]:max-[825px]:landscape:pr-[10px] min-[320px]:max-[825px]:landscape:h-auto min-[320px]:max-[825px]:landscape:min-h-[305px] flex flex-row items-center justify-center",timepickerHeadContent:"min-[320px]:max-[825px]:landscape:flex-col flex w-full justify-evenly",timepickerCurrentWrapper:"[direction:ltr] rtl:[direction:rtl]",timepickerCurrentButtonWrapper:"relative h-full",timepickerCurrentButton:"text-[3.75rem] font-light leading-[1.2] tracking-[-0.00833em] text-white opacity-[.54] border-none bg-transparent p-0 min-[320px]:max-[825px]:landscape:text-5xl min-[320px]:max-[825px]:landscape:font-normal cursor-pointer hover:bg-[#00000026] hover:outline-none focus:bg-[#00000026] focus:outline-none ",timepickerDot:"font-light leading-[1.2] tracking-[-0.00833em] text-[3.75rem] opacity-[.54] border-none bg-transparent p-0 text-white min-[320px]:max-[825px]:landscape:text-[3rem] min-[320px]:max-[825px]:landscape:font-normal",timepickerModeWrapper:"flex flex-col justify-center text-[18px] text-[#ffffff8a] min-[320px]:max-[825px]:landscape:!justify-around min-[320px]:max-[825px]:landscape:!flex-row",timepickerModeAm:"p-0 bg-transparent border-none text-white opacity-[.54] cursor-pointer hover:bg-[#00000026] hover:outline-none focus:bg-[#00000026] focus:outline-none",timepickerModePm:"p-0 bg-transparent border-none text-white opacity-[.54] cursor-pointer hover:bg-[#00000026] hover:outline-none focus:bg-[#00000026] focus:outline-none",timepickerClockWrapper:"min-w-[310px] max-w-[325px] min-h-[305px] overflow-x-hidden h-full flex justify-center flex-col items-center dark:bg-zinc-500",timepickerClock:"relative rounded-[100%] w-[260px] h-[260px] cursor-default my-0 mx-auto bg-[#00000012] dark:bg-zinc-600/50",timepickerMiddleDot:"top-1/2 left-1/2 w-[6px] h-[6px] -translate-y-1/2 -translate-x-1/2 rounded-[50%] bg-[#3b71ca] absolute",timepickerHandPointer:"bg-[#3b71ca] bottom-1/2 h-2/5 left-[calc(50%-1px)] rtl:!left-auto origin-[center_bottom_0] rtl:!origin-[50%_50%_0] w-[2px] absolute",timepickerPointerCircle:"-top-[21px] -left-[15px] w-[4px] border-[14px] border-solid border-[#3b71ca] h-[4px] box-content rounded-[100%] absolute",timepickerClockInner:"absolute top-1/2 left-1/2 -translate-y-1/2 -translate-x-1/2 w-[160px] h-[160px] rounded-[100%]",timepickerFooterWrapper:"rounded-b-lg flex justify-between items-center w-full h-[56px] px-[12px] bg-white dark:bg-zinc-500",timepickerFooter:"w-full flex justify-between",timepickerFooterButton:"text-[0.8rem] min-w-[64px] box-border font-medium leading-[40px] rounded-[10px] tracking-[0.1rem] uppercase text-[#3b71ca] dark:text-white border-none bg-transparent transition-[background-color,box-shadow,border] duration-[250ms] ease-[cubic-bezier(0.4,0,0.2,1)] delay-[0ms] outline-none py-0 px-[10px] h-[40px] mb-[10px] hover:bg-[#00000014] focus:bg-[#00000014] focus:outline-none",timepickerInlineWrapper:"touch-none opacity-100 z-[1065] inset-0 bg-[#00000066] h-full flex items-center justify-center flex-col rounded-lg",timepickerInlineContainer:"flex items-center justify-center flex-col max-h-[calc(100%-64px)] overflow-y-auto shadow-[0_10px_15px_-3px_rgba(0,0,0,0.07),0_4px_6px_-2px_rgba(0,0,0,0.05)]",timepickerInlineElements:"flex flex-col min-h-[auto] min-w-[310px] bg-white rounded-[0.6rem] min-[320px]:max-[825px]:landscape:!flex-row min-[320px]:max-[825px]:landscape:rounded-bl-lg min-[320px]:max-[825px]:landscape:min-w-[auto] min-[320px]:max-[825px]:landscape::min-h-[auto] min-[320px]:max-[825px]:landscape:overflow-y-auto justify-around",timepickerInlineHead:"bg-[#3b71ca] dark:bg-zinc-700 h-[100px] rounded-t-lg min-[320px]:max-[825px]:landscape:rounded-tr-none min-[320px]:max-[825px]:landscape:rounded-bl-none min-[320px]:max-[825px]:landscape:p-[10px] min-[320px]:max-[825px]:landscape:pr-[10px] min-[320px]:max-[825px]:landscape:h-auto min-[320px]:max-[825px]:landscape:min-h-[305px] flex flex-row items-center justify-center p-0 rounded-b-lg",timepickerInlineHeadContent:"min-[320px]:max-[825px]:landscape:flex-col flex w-full justify-evenly items-center",timepickerInlineHourWrapper:"relative h-full !opacity-100",timepickerCurrentMinuteWrapper:"relative h-full",timepickerInlineIconUp:"absolute text-white -top-[35px] opacity-0 hover:opacity-100 transition-all duration-200 ease-[ease] cursor-pointer -translate-x-1/2 -translate-y-1/2 left-1/2 w-[30px] h-[30px] flex justify-center items-center",timepickerInlineIconSvg:"h-4 w-4",timepickerInlineCurrentButton:"font-light leading-[1.2] tracking-[-0.00833em] text-white border-none bg-transparent p-0 min-[320px]:max-[825px]:landscape:text-5xl min-[320px]:max-[825px]:landscape:font-normal !opacity-100 cursor-pointer focus:bg-[#00000026] hover:outline-none focus:outline-none text-[2.5rem] hover:bg-[unset]",timepickerInlineIconDown:"absolute text-white -bottom-[47px] opacity-0 hover:opacity-100 transition-all duration-200 ease-[ease] cursor-pointer -translate-x-1/2 -translate-y-1/2 left-1/2 w-[30px] h-[30px] flex justify-center items-center",timepickerInlineDot:"font-light leading-[1.2] tracking-[-0.00833em] opacity-[.54] border-none bg-transparent p-0 text-white min-[320px]:max-[825px]:landscape:text-[3rem] min-[320px]:max-[825px]:landscape:font-normal text-[2.5rem]",timepickerInlineModeWrapper:"flex justify-center text-[18px] text-[#ffffff8a] min-[320px]:max-[825px]:landscape:!justify-around min-[320px]:max-[825px]:landscape:!flex-row",timepickerInlineModeAm:"hover:bg-[#00000026] hover:outline-none focus:bg-[#00000026] focus:outline-none p-0 bg-transparent border-none text-white opacity-[.54] cursor-pointer mr-2 ml-6",timepickerInlineModePm:"hover:bg-[#00000026] hover:outline-none focus:bg-[#00000026] focus:outline-none p-0 bg-transparent border-none text-white opacity-[.54] cursor-pointer",timepickerInlineSubmitButton:"hover:bg-[#00000014] focus:bg-[#00000014] focus:outline-none text-[0.8rem] box-border font-medium leading-[40px] tracking-[.1rem] uppercase border-none bg-transparent [transition:background-color_250ms_cubic-bezier(0.4,0,0.2,1)_0ms,box-shadow_250ms_cubic-bezier(0.4,0,0.2,1)_0ms,border_250ms_cubic-bezier(0.4,0,0.2,1)_0ms] outline-none rounded-[100%] h-[48px] min-w-[48px] inline-block ml-[30px] text-white py-1 px-2 mb-0",timepickerToggleButton:"h-4 w-4 ml-auto absolute outline-none border-none bg-transparent right-1.5 top-1/2 -translate-x-1/2 -translate-y-1/2 transition-all duration-300 ease-[cubic-bezier(0.25,0.1,0.25,1)] cursor-pointer hover:text-[#3b71ca] focus:text-[#3b71ca] dark:hover:text-[#3b71ca] dark:focus:text-[#3b71ca] dark:text-white"},HT={tips:"string",tipsActive:"string",tipsDisabled:"string",transform:"string",modal:"string",clockAnimation:"string",opacity:"string",timepickerWrapper:"string",timepickerContainer:"string",timepickerElements:"string",timepickerHead:"string",timepickerHeadContent:"string",timepickerCurrentWrapper:"string",timepickerCurrentButtonWrapper:"string",timepickerCurrentButton:"string",timepickerDot:"string",timepickerModeWrapper:"string",timepickerModeAm:"string",timepickerModePm:"string",timepickerClockWrapper:"string",timepickerClock:"string",timepickerMiddleDot:"string",timepickerHandPointer:"string",timepickerPointerCircle:"string",timepickerClockInner:"string",timepickerFooterWrapper:"string",timepickerFooterButton:"string",timepickerInlineWrapper:"string",timepickerInlineContainer:"string",timepickerInlineElements:"string",timepickerInlineHead:"string",timepickerInlineHeadContent:"string",timepickerInlineHourWrapper:"string",timepickerCurrentMinuteWrapper:"string",timepickerInlineIconUp:"string",timepickerInlineIconSvg:"string",timepickerInlineCurrentButton:"string",timepickerInlineIconDown:"string",timepickerInlineDot:"string",timepickerInlineModeWrapper:"string",timepickerInlineModeAm:"string",timepickerInlineModePm:"string",timepickerInlineSubmitButton:"string",timepickerToggleButton:"string"};class Tl{constructor(t,e={},i){we(this,"_toggleAmPm",t=>{t==="PM"?(this._isPmEnabled=!0,this._isAmEnabled=!1):t==="AM"&&(this._isPmEnabled=!1,this._isAmEnabled=!0)});we(this,"_toggleBackgroundColorCircle",t=>{if(this._modal.querySelector(`${t}[${J}]`)!==null){g.addStyle(this._circle,{backgroundColor:"#1976d2"});return}g.addStyle(this._circle,{backgroundColor:"transparent"})});we(this,"_toggleClassActive",(t,{textContent:e},i)=>{const n=[...t].find(o=>Number(o)===Number(e));return i.forEach(o=>{if(!o.hasAttribute(Ke)){if(o.textContent===n){g.addClass(o,this._classes.tipsActive),o.setAttribute(J,"");return}g.removeClass(o,this._classes.tipsActive),o.removeAttribute(J)}})});we(this,"_makeMinutesDegrees",(t,e)=>{const{increment:i}=this._options;return t<0?(e=Math.round(360+t/6)%60,t=360+Math.round(t/6)*6):(e=Math.round(t/6)%60,t=Math.round(t/6)*6),i&&(t=Math.round(t/30)*30,e=Math.round(t/6)*6/6,e===60&&(e="00")),t>=360&&(t=0),{degrees:t,minute:e,addDegrees:i?30:6}});we(this,"_makeHourDegrees",(t,e,i)=>{if(t)return this._hasTargetInnerClass(t)?e<0?(i=Math.round(360+e/30)%24,e=360+e):(i=Math.round(e/30)+12,i===12&&(i="00")):e<0?(i=Math.round(360+e/30)%12,e=360+e):(i=Math.round(e/30)%12,(i===0||i>12)&&(i=12)),e>=360&&(e=0),{degrees:e,hour:i,addDegrees:30}});we(this,"_makeInnerHoursDegrees",(t,e)=>(t<0?(e=Math.round(360+t/30)%24,t=360+t):(e=Math.round(t/30)+12,e===12&&(e="00")),{degrees:t,hour:e,addDegrees:30}));we(this,"_getAppendClock",(t=[],e=`[${Ci}]`,i)=>{let{minTime:n,maxTime:o}=this._options;const{inline:r,format12:a,disablePast:l,disableFuture:c}=this._options;n=je(n,l,a),o=Ye(o,c,a);const[h,d,u]=j(o,!1),[p,f,b]=j(n,!1);!r&&a&&this._isInvalidTimeFormat&&!this._AM.hasAttribute(J)&&(g.addClass(this._PM,this._classes.opacity),this._PM.setAttribute(J,""));const v=m.findOne(e),y=360/t.length;function T(A){return A*(Math.PI/180)}if(v===null)return;const x=(v.offsetWidth-32)/2,E=(v.offsetHeight-32)/2,C=x-4;setTimeout(()=>{let A;a&&(A=m.findOne(`${Yo}[${J}]`).textContent),this._handleDisablingTipsMinTime(A,b,f,p),this._handleDisablingTipsMaxTime(A,u,d,h)},0),[...t].forEach((A,w)=>{const S=T(w*y),k=$("span"),I=$("span");I.innerHTML=A,g.addClass(k,this._classes.tips),k.setAttribute(i,"");const O=k.offsetWidth,M=k.offsetHeight;return g.addStyle(k,{left:`${x+Math.sin(S)*C-O}px`,bottom:`${E+Math.cos(S)*C-M}px`}),t.includes("05")&&k.setAttribute(vt,""),t.includes("13")?I.setAttribute(Xo,""):I.setAttribute(Uo,""),k.appendChild(I),v.appendChild(k)})});this._element=t,this._element&&D.setData(t,Wo,this),this._document=document,this._options=this._getConfig(e),this._classes=this._getClasses(i),this._currentTime=null,this._toggleButtonId=Et("timepicker-toggle-"),this.hoursArray=["12","1","2","3","4","5","6","7","8","9","10","11"],this.innerHours=["00","13","14","15","16","17","18","19","20","21","22","23"],this.minutesArray=["00","05","10","15","20","25","30","35","40","45","50","55"],this.input=m.findOne("input",this._element),this.dataWithIcon=t.dataset.withIcon,this.dataToggle=t.dataset.toggle,this.customIcon=m.findOne(ST,this._element),this._checkToggleButton(),this.inputFormatShow=m.findOne(kT,this._element),this.inputFormat=this.inputFormatShow===null?"":Object.values(this.inputFormatShow.dataset)[0],this.elementToggle=m.findOne(au,this._element),this.toggleElement=Object.values(t.querySelector(au).dataset)[0],this._hour=null,this._minutes=null,this._AM=null,this._PM=null,this._wrapper=null,this._modal=null,this._hand=null,this._circle=null,this._focusTrap=null,this._popper=null,this._interval=null,this._timeoutInterval=null,this._inputValue=this._options.defaultTime!==""?this._options.defaultTime:this.input.value,this._options.format24&&(this._options.format12=!1,this._currentTime=tu(this._inputValue)),this._options.format12&&(this._options.format24=!1,this._currentTime=xi(this._inputValue)),this._options.readOnly&&this.input.setAttribute(LT,!0),this.inputFormat==="true"&&this.inputFormat!==""&&(this._options.format12=!1,this._options.format24=!0,this._currentTime=tu(this._inputValue)),this._animations=!window.matchMedia("(prefers-reduced-motion: reduce)").matches&&this._options.animations,this.init(),this._isHours=!0,this._isMinutes=!1,this._isInvalidTimeFormat=!1,this._isMouseMove=!1,this._isInner=!1,this._isAmEnabled=!1,this._isPmEnabled=!1,this._options.format12&&!this._options.defaultTime&&(this._isPmEnabled=!0),this._objWithDataOnChange={degrees:null},this._scrollBar=new Xi}static get NAME(){return Xs}init(){const{format12:t,format24:e,enableValidation:i}=this._options;let n,o,r;if(this.input.setAttribute(PT,""),this._currentTime!==void 0){const{hours:a,minutes:l,amOrPm:c}=this._currentTime;n=Number(a)<10?0:"",o=`${n}${Number(a)}:${l}`,r=c,t?this.input.value=`${o} ${r}`:e&&(this.input.value=`${o}`)}else n="",o="",r="",this.input.value="";this.input.value.length>0&&this.input.value!==""&&(this.input.setAttribute(J,""),_.trigger(this.input,"input")),!(this._options===null&&this._element===null)&&(i&&this._getValidate("keydown change blur focus"),this._handleOpen(),this._listenToToggleKeydown())}dispose(){this._removeModal(),this._element!==null&&D.removeData(this._element,Wo),setTimeout(()=>{this._element=null,this._options=null,this.input=null,this._focusTrap=null},350),_.off(this._document,"click",`[data-te-toggle='${this.toggleElement}']`),_.off(this._element,"keydown",`[data-te-toggle='${this.toggleElement}']`)}update(t={}){this._options=this._getConfig({...this._options,...t})}_checkToggleButton(){this.customIcon===null&&(this.dataWithIcon!==void 0&&(this._options.withIcon=null,this.dataWithIcon==="true"&&this._appendToggleButton(this._options)),this._options.withIcon&&this._appendToggleButton(this._options))}_appendToggleButton(){const t=vT(this._options,this._toggleButtonId,this._classes);this.input.insertAdjacentHTML("afterend",t)}_getDomElements(){this._hour=m.findOne(`[${Ko}]`),this._minutes=m.findOne(`[${bl}]`),this._AM=m.findOne(AT),this._PM=m.findOne(wT),this._wrapper=m.findOne(`[${ml}]`),this._modal=m.findOne(`[${Tu}]`),this._hand=m.findOne(`[${vl}]`),this._circle=m.findOne(`[${yl}]`),this._clock=m.findOne(`[${Ci}]`),this._clockInner=m.findOne(`[${Gs}]`)}_handlerMaxMinHoursOptions(t,e,i,n,o,r){if(!e&&!i)return!0;const{format24:a,format12:l,disablePast:c,disableFuture:h}=this._options,{_isAmEnabled:d,_isPmEnabled:u}=this,p=r.keyCode,f=r.target.hasAttribute(Gs)||r.target.hasAttribute(Rt)||r.target.hasAttribute(Xo);i=je(i,c,l),e=Ye(e,h,l),typeof e!="number"&&(e=j(e,!1)[0]);const b=e!==""?e*30:"",v=i!==""?i*30:"";t<0&&(t=360+t),t=t===360?0:t;const y=()=>{const w=document.querySelectorAll(`[${Uo}]`),S=document.querySelectorAll(`[${Xo}]`),k=CT(this._hour.innerText);let I,O,M;return p===At?O=1:p===ut&&(O=-1),k===12&&p===At?M=1:k===0&&p===At?M=13:k===0&&p===ut?M=23:k===13&&p===ut?M=0:k===1&&p===ut?M=12:M=k+O,w.forEach(R=>{Number(R.textContent)===M&&(I=R)}),S.forEach(R=>{Number(R.textContent)===M&&(I=R)}),!I.parentElement.hasAttribute(Ke)},T=()=>{const w=i!==""&&i>12?(i-12)*30:"",S=e!==""&&e>12?(e-12)*30:"";if(!(w&&tS||e&&e<12))return!0};if(a&&r.type!=="keydown"&&f)return T();if(r.type==="keydown")return y();const x=!o||o==="PM"&&u||i!==""&&o==="AM"&&d,E=!n||n==="PM"&&u||e!==""&&n==="AM"&&d,C=()=>{const w=v===360&&l?0:v;if(i){if(o==="PM"&&d||x&&t{const w=b===360&&l?0:b;if(e){if(n==="AM"&&u||E&&t>w)return}else return!0;return!0};return C()&&A()}_handleKeyboard(){_.on(this._document,zo,"",t=>{let e,i,n;const{increment:o,maxTime:r,minTime:a,format12:l,disablePast:c,disableFuture:h}=this._options;let d=j(a,!1)[0],u=j(r,!1)[0];const p=j(a,!1)[2],f=j(r,!1)[2];d=je(d,c,l),u=Ye(u,h,l),typeof u!="number"&&(u=j(u,!1)[0]);const b=m.findOne(`[${vt}]`)===null,v=m.findOne(`[${Rt}]`)!==null,y=Number(this._hand.style.transform.replace(/[^\d-]/g,"")),T=m.find(`[${vt}]`,this._modal),x=m.find(`[${pt}]`,this._modal),E=m.find(`[${Rt}]`,this._modal);let C=this._makeHourDegrees(t.target,y,e).hour;const{degrees:A,addDegrees:w}=this._makeHourDegrees(t.target,y,e);let{minute:S,degrees:k}=this._makeMinutesDegrees(y,i);const I=this._makeMinutesDegrees(y,i).addDegrees;let{hour:O}=this._makeInnerHoursDegrees(y,n);if(t.keyCode===Ks){const M=m.findOne(`[${ul}]`,this._modal);_.trigger(M,"click")}else if(b){if(v&&(t.keyCode===os&&(this._isInner=!1,g.addStyle(this._hand,{height:"calc(40% + 1px)"}),this._hour.textContent=this._setHourOrMinute(C>12?1:C),this._toggleClassActive(this.hoursArray,this._hour,x),this._toggleClassActive(this.innerHours,this._hour,E)),t.keyCode===ns&&(this._isInner=!0,g.addStyle(this._hand,{height:"21.5%"}),this._hour.textContent=this._setHourOrMinute(O>=24||O==="00"?0:O),this._toggleClassActive(this.innerHours,this._hour,E),this._toggleClassActive(this.hoursArray,this._hour-1,x))),t.keyCode===At){if(!this._handlerMaxMinHoursOptions(A+30,u,d,f,p,t))return;g.addStyle(this._hand,{transform:`rotateZ(${A+w}deg)`}),this._isInner?(O+=1,O===24?O=0:(O===25||O==="001")&&(O=13),this._hour.textContent=this._setHourOrMinute(O),this._toggleClassActive(this.innerHours,this._hour,E)):(C+=1,this._hour.textContent=this._setHourOrMinute(C>12?1:C),this._toggleClassActive(this.hoursArray,this._hour,x))}if(t.keyCode===ut){if(!this._handlerMaxMinHoursOptions(A-30,u,d,f,p,t))return;g.addStyle(this._hand,{transform:`rotateZ(${A-w}deg)`}),this._isInner?(O-=1,O===12?O=0:O===-1&&(O=23),this._hour.textContent=this._setHourOrMinute(O),this._toggleClassActive(this.innerHours,this._hour,E)):(C-=1,this._hour.textContent=this._setHourOrMinute(C===0?12:C),this._toggleClassActive(this.hoursArray,this._hour,x))}}else t.keyCode===At&&(k+=I,g.addStyle(this._hand,{transform:`rotateZ(${k}deg)`}),S+=1,o&&(S+=4,S==="0014"&&(S=5)),this._minutes.textContent=this._setHourOrMinute(S>59?0:S),this._toggleClassActive(this.minutesArray,this._minutes,T),this._toggleBackgroundColorCircle(`[${vt}]`)),t.keyCode===ut&&(k-=I,g.addStyle(this._hand,{transform:`rotateZ(${k}deg)`}),o?S-=5:S-=1,S===-1?S=59:S===-5&&(S=55),this._minutes.textContent=this._setHourOrMinute(S),this._toggleClassActive(this.minutesArray,this._minutes,T),this._toggleBackgroundColorCircle(`[${vt}]`))})}_setActiveClassToTipsOnOpen(t,...e){if(!this._isInvalidTimeFormat)if(this._options.format24){const i=m.find(`[${pt}]`,this._modal),n=m.find(`[${Rt}]`,this._modal);this._addActiveClassToTip(i,t),this._addActiveClassToTip(n,t)}else{[...e].filter(n=>(n==="PM"?(g.addClass(this._PM,this._classes.opacity),this._PM.setAttribute(J,"")):n==="AM"?(g.addClass(this._AM,this._classes.opacity),this._AM.setAttribute(J,"")):(g.removeClass(this._AM,this._classes.opacity),g.removeClass(this._PM,this._classes.opacity),this._AM.removeAttribute(J),this._PM.removeAttribute(J)),n));const i=m.find(`[${pt}]`,this._modal);this._addActiveClassToTip(i,t)}}_setTipsAndTimesDependOnInputValue(t,e){const{inline:i,format12:n}=this._options;if(this._isInvalidTimeFormat)this._hour.textContent="12",this._minutes.textContent="00",i||g.addStyle(this._hand,{transform:"rotateZ(0deg)"}),n&&(g.addClass(this._PM,this._classes.opacity),this._PM.setAttribute(J,""));else{const o=t>12?t*30-360:t*30;this._hour.textContent=t,this._minutes.textContent=e,i||(g.addStyle(this._hand,{transform:`rotateZ(${o}deg)`}),g.addStyle(this._circle,{backgroundColor:"#1976d2"}),(Number(t)>12||t==="00")&&g.addStyle(this._hand,{height:"21.5%"}))}}_listenToToggleKeydown(){_.on(this._element,"keydown",`[data-te-toggle='${this.toggleElement}']`,t=>{t.keyCode===Pt&&(t.preventDefault(),_.trigger(this.elementToggle,"click"))})}_handleOpen(){const t=this._getContainer();ci.on(this._element,"click",`[data-te-toggle='${this.toggleElement}']`,e=>{if(this._options===null)return;const i=g.getDataAttribute(this.input,"toggle")!==null?200:0;setTimeout(()=>{g.addStyle(this.elementToggle,{pointerEvents:"none"}),this.elementToggle.blur();let n;j(this.input)[0]===""?n=["12","00","PM"]:n=j(this.input);const{modalID:o,inline:r,format12:a}=this._options,[l,c,h]=n,d=$("div");if((Number(l)>12||l==="00")&&(this._isInner=!0),this.input.blur(),e.target.blur(),d.innerHTML=bT(this._options,this._classes),g.addClass(d,this._classes.modal),d.setAttribute(Tu,""),d.setAttribute("role","dialog"),d.setAttribute("tabIndex","-1"),d.setAttribute("id",o),r?(this._popper=fi(this.input,d,{placement:"bottom-start"}),t.appendChild(d)):(t.appendChild(d),this._scrollBar.hide()),this._getDomElements(),this._animations?this._toggleBackdropAnimation():g.addClass(this._wrapper,this._classes.opacity),this._setActiveClassToTipsOnOpen(l,c,h),this._appendTimes(),this._setActiveClassToTipsOnOpen(l,c,h),this._setTipsAndTimesDependOnInputValue(l,c),this.input.value===""){const u=m.find(`[${pt}]`,this._modal);a&&(g.addClass(this._PM,this._classes.opacity),this._PM.setAttribute(J,"")),this._hour.textContent="12",this._minutes.textContent="00",this._addActiveClassToTip(u,Number(this._hour.textContent))}if(this._handleSwitchTimeMode(),this._handleOkButton(),this._handleClose(),r)this._handleHoverInlineBtn(),this._handleDocumentClickInline(),this._handleInlineClicks();else{this._handleSwitchHourMinute(),this._handleClockClick(),this._handleKeyboard();const u=document.querySelector(`${jo}[${J}]`);g.addClass(u,this._classes.opacity),g.addStyle(this._hour,{pointerEvents:"none"}),g.addStyle(this._minutes,{pointerEvents:""})}this._focusTrap=new Ps(this._wrapper,{event:"keydown",condition:({key:u})=>u==="Tab"}),this._focusTrap.trap()},i)})}_handleInlineClicks(){let t,e;const i=p=>{let f=p;return f>59?f=0:f<0&&(f=59),f},n=p=>{let f=p;return this._options.format24?(f>24?f=1:f<0&&(f=23),f>23&&(f=0)):(f>12?f=1:f<1&&(f=12),f>12&&(f=1)),f},o=p=>{const f=n(p);this._hour.textContent=this._setHourOrMinute(f)},r=p=>{const f=i(p);this._minutes.textContent=this._setHourOrMinute(f)},a=()=>{t=n(t)+1,o(t)},l=()=>{e=i(e)+1,r(e)},c=()=>{t=n(t)-1,o(t)},h=()=>{e=i(e)-1,r(e)},d=()=>{clearInterval(this._interval),clearTimeout(this._timeoutInterval)},u=p=>{d(),this._timeoutInterval=setTimeout(()=>{this._interval=setInterval(p,100)},500)};ci.on(this._modal,"click mousedown mouseup touchstart touchend contextmenu",`[${fl}], [${_l}]`,p=>{t=Number(this._hour.textContent),e=Number(this._minutes.textContent);const{target:f,type:b}=p,v=b==="mousedown"||b==="touchstart";f.closest(`[${fl}]`)?f.closest(`[${fl}]`).parentNode.hasAttribute(bu)?v?u(a):b==="mouseup"||b==="touchend"||b==="contextmenu"?d():a():v?u(l):b==="mouseup"||b==="touchend"||b==="contextmenu"?d():l():f.closest(`[${_l}]`)&&(f.closest(`[${_l}]`).parentNode.hasAttribute(bu)?v?u(c):b==="mouseup"||b==="touchend"?d():c():v?u(h):b==="mouseup"||b==="touchend"?d():h())}),_.on(window,zo,p=>{const f=p.code,b=document.activeElement.hasAttribute(Ko),v=document.activeElement.hasAttribute(bl),y=document.activeElement===document.body;switch(t=Number(this._hour.textContent),e=Number(this._minutes.textContent),f){case"ArrowUp":p.preventDefault(),y||b?(this._hour.focus(),a()):v&&l();break;case"ArrowDown":p.preventDefault(),y||b?(this._hour.focus(),c()):v&&h();break}})}_handleClose(){_.on(this._modal,"click",`[${ml}], [${ul}], [${mu}]`,({target:t})=>{const{closeModalOnBackdropClick:e}=this._options,i=()=>{var n;g.addStyle(this.elementToggle,{pointerEvents:"auto"}),this._animations&&this._toggleBackdropAnimation(!0),this._removeModal(),(n=this._focusTrap)==null||n.disable(),this._focusTrap=null,this.elementToggle?this.elementToggle.focus():this.input&&this.input.focus()};if(t.hasAttribute(mu)){this._toggleAmPm("PM"),this.input.value="",this.input.removeAttribute(J);let n;j(this.input)[0]===""?n=["12","00","PM"]:n=j(this.input);const[o,r,a]=n;this._setTipsAndTimesDependOnInputValue("12","00"),this._setActiveClassToTipsOnOpen(o,r,a),this._hour.click()}else(t.hasAttribute(ul)||t.hasAttribute(pl)||t.hasAttribute(ml)&&e)&&i()})}showValueInput(){return this.input.value}_handleOkButton(){ci.on(this._modal,"click",`[${pl}]`,()=>{let{maxTime:t,minTime:e}=this._options;const{format12:i,format24:n,readOnly:o,focusInputAfterApprove:r,disablePast:a,disableFuture:l}=this._options,c=this._document.querySelector(`${Yo}[${J}]`),h=`${this._hour.textContent}:${this._minutes.textContent}`,d=Number(this._hour.textContent),u=d===12&&i?0:d,p=Number(this._minutes.textContent);e=je(e,a,i),t=Ye(t,l,i);let[f,b,v]=j(t,!1),[y,T,x]=j(e,!1);y=y==="12"&&i?"00":y,f=f==="12"&&i?"00":f;const E=uNumber(f);let A=!0;c&&(A=v===c.textContent);let w=!0;c&&(w=x===c.textContent);const S=p>b&&u===Number(f),k=p{const i=m.find(`[${DT}]`,this._modal),n=m.find(`[${IT}]`,this._modal),o=(l,c)=>l.forEach(h=>{if(c){g.addClass(h,this._classes.opacity),h.setAttribute(J,"");return}g.removeClass(h,this._classes.opacity),h.removeAttribute(J)}),a=e.hasAttribute(Ko)?i:n;o(a,t==="mouseover")})}_handleDocumentClickInline(){_.on(document,lu,({target:t})=>{if(this._modal&&!this._modal.contains(t)&&!t.hasAttribute(OT)){if(clearInterval(this._interval),g.addStyle(this.elementToggle,{pointerEvents:"auto"}),this._removeModal(),!this._animations)return;this._toggleBackdropAnimation(!0)}})}_handleSwitchHourMinute(){yT("click",jo,this._classes),_.on(this._modal,"click",jo,()=>{const{format24:t}=this._options,e=m.find(jo,this._modal),i=m.find(`[${vt}]`,this._modal),n=m.find(`[${pt}]`,this._modal),o=m.find(`[${Rt}]`,this._modal),r=Number(this._hour.textContent),a=Number(this._minutes.textContent),l=(c,h)=>{n.forEach(u=>u.remove()),i.forEach(u=>u.remove()),g.addClass(this._hand,this._classes.transform),setTimeout(()=>{g.removeClass(this._hand,this._classes.transform)},401),this._getAppendClock(c,`[${Ci}]`,h);const d=()=>{const u=m.find(`[${pt}]`,this._modal),p=m.find(`[${vt}]`,this._modal);this._addActiveClassToTip(u,r),this._addActiveClassToTip(p,a)};if(!t)setTimeout(()=>{d()},401);else{const u=m.find(`[${Rt}]`,this._modal);setTimeout(()=>{this._addActiveClassToTip(u,r),d()},401)}};e.forEach(c=>{c.hasAttribute(J)&&(c.hasAttribute(bl)?(g.addClass(this._hand,this._classes.transform),g.addStyle(this._hand,{transform:`rotateZ(${this._minutes.textContent*6}deg)`,height:"calc(40% + 1px)"}),t&&o.length>0&&o.forEach(h=>h.remove()),l(this.minutesArray,vt),this._hour.style.pointerEvents="",this._minutes.style.pointerEvents="none"):c.hasAttribute(Ko)&&(g.addStyle(this._hand,{transform:`rotateZ(${this._hour.textContent*30}deg)`}),Number(this._hour.textContent)>12?(g.addStyle(this._hand,{transform:`rotateZ(${this._hour.textContent*30-360}deg)`,height:"21.5%"}),Number(this._hour.textContent)>12&&g.addStyle(this._hand,{height:"21.5%"})):g.addStyle(this._hand,{height:"calc(40% + 1px)"}),t&&this._getAppendClock(this.innerHours,`[${Gs}]`,Rt),o.length>0&&o.forEach(h=>h.remove()),l(this.hoursArray,pt),g.addStyle(this._hour,{pointerEvents:"none"}),g.addStyle(this._minutes,{pointerEvents:""})))})})}_handleDisablingTipsMaxTime(t,e,i,n){if(!this._options.maxTime&&!this._options.disableFuture)return;const o=m.find(`[${pt}]`),r=m.find(`[${Rt}]`),a=m.find(`[${vt}]`);if(!e||e===t){nu(r,n,this._classes,this._options.format12),nu(o,n,this._classes,this._options.format12),ET(a,i,n,this._hour.textContent,this._classes,this._options.format12);return}e==="AM"&&t==="PM"&&(o.forEach(l=>{g.addClass(l,this._classes.tipsDisabled),l.setAttribute(Ke,"")}),a.forEach(l=>{g.addClass(l,this._classes.tipsDisabled),l.setAttribute(Ke,"")}))}_handleDisablingTipsMinTime(t,e,i,n){if(!this._options.minTime&&!this._options.disablePast)return;const o=m.find(`[${pt}]`),r=m.find(`[${Rt}]`),a=m.find(`[${vt}]`);!e||e===t?(ou(o,n,this._classes,this._options.format12),ou(r,n,this._classes,this._options.format12),xT(a,i,n,this._hour.textContent,this._classes,this._options.format12)):e==="PM"&&t==="AM"&&(o.forEach(l=>{g.addClass(l,this._classes.tipsDisabled),l.setAttribute(Ke,"")}),a.forEach(l=>{g.addClass(l,this._classes.tipsDisabled),l.setAttribute(Ke,"")}))}_handleSwitchTimeMode(){_.on(document,"click",Yo,({target:t})=>{let{maxTime:e,minTime:i}=this._options;const{disablePast:n,disableFuture:o,format12:r}=this._options;i=je(i,n,r),e=Ye(e,o,r);const[a,l,c]=j(e,!1),[h,d,u]=j(i,!1),p=m.find(`[${pt}]`),f=m.find(`[${vt}]`);(()=>{p.forEach(v=>{g.removeClass(v,this._classes.tipsDisabled),v.removeAttribute(Ke)}),f.forEach(v=>{g.removeClass(v,this._classes.tipsDisabled),v.removeAttribute(Ke)})})(),this._handleDisablingTipsMinTime(t.textContent,u,d,h),this._handleDisablingTipsMaxTime(t.textContent,c,l,a),this._toggleAmPm(t.textContent),t.hasAttribute(J)||(m.find(Yo).forEach(y=>{y.hasAttribute(J)&&(g.removeClass(y,this._classes.opacity),y.removeAttribute(J))}),g.addClass(t,this._classes.opacity),t.setAttribute(J,""))})}_handleClockClick(){let{maxTime:t,minTime:e}=this._options;const{disablePast:i,disableFuture:n,format12:o}=this._options;e=je(e,i,o),t=Ye(t,n,o);const r=j(t,!1)[2],a=j(e,!1)[2],l=j(t,!1)[0],c=j(e,!1)[0],h=m.findOne(`[${vu}]`);ci.on(document,`${cu} ${hu} ${du} ${uu} ${pu} ${gu} ${fu} ${_u}`,"",d=>{Fo()||d.preventDefault();const{type:u,target:p}=d,{closeModalOnMinutesClick:f,switchHoursToMinutesOnClick:b}=this._options,v=m.findOne(`[${vt}]`,this._modal)!==null,y=m.findOne(`[${pt}]`,this._modal)!==null,T=m.findOne(`[${Rt}]`,this._modal)!==null,x=m.find(`[${vt}]`,this._modal),E=eu(d,h),C=h.offsetWidth/2;let A=Math.atan2(E.y-C,E.x-C);if(Fo()){const I=eu(d,h,!0);A=Math.atan2(I.y-C,I.x-C)}let w=null,S=null,k=null;if(u==="mousedown"||u==="mousemove"||u==="touchmove"||u==="touchstart")(u==="mousedown"||u==="touchstart"||u==="touchmove")&&(this._hasTargetInnerClass(p)||p.hasAttribute(vu)||p.hasAttribute(Ci)||p.hasAttribute(vt)||p.hasAttribute(pt)||p.hasAttribute(yl)||p.hasAttribute(vl)||p.hasAttribute(yu)||p.hasAttribute(Uo))&&(this._isMouseMove=!0,Fo()&&d.touches&&(w=d.touches[0].clientX,S=d.touches[0].clientY,k=document.elementFromPoint(w,S)));else if(u==="mouseup"||u==="touchend"){if(this._isMouseMove=!1,this._hasTargetInnerClass(p)||p.hasAttribute(Ci)||p.hasAttribute(pt)||p.hasAttribute(yl)||p.hasAttribute(vl)||p.hasAttribute(yu)||p.hasAttribute(Uo)){if((y||T)&&b){const I=Number(this._hour.textContent)>l||Number(this._hour.textContent)P>=10||P==="00"?P:`0${P}`;this._minutes.textContent=z(),this._toggleClassActive(this.minutesArray,this._minutes,x),this._toggleBackgroundColorCircle(`[${vt}]`),this._objWithDataOnChange.degreesMinutes=X,this._objWithDataOnChange.minutes=P}}if(y||T){let I,O=Math.trunc(A*180/Math.PI)+90;if(O=Math.round(O/30)*30,g.addStyle(this._circle,{backgroundColor:"#1976d2"}),this._makeHourDegrees(p,O,I)===void 0)return;const M=()=>{if(Fo()&&O&&k){const{degrees:R,hour:X}=this._makeHourDegrees(k,O,I);return this._handleMoveHand(k,X,R)}else{const{degrees:R,hour:X}=this._makeHourDegrees(p,O,I);return this._handleMoveHand(p,X,R)}};this._objWithDataOnChange.degreesHours=O,this._handlerMaxMinHoursOptions(O,l,c,r,a,d)&&M()}d.stopPropagation()})}_hasTargetInnerClass(t){return t.hasAttribute(Gs)||t.hasAttribute(Rt)||t.hasAttribute(Xo)}_handleMoveHand(t,e,i){const n=m.find(`[${pt}]`,this._modal),o=m.find(`[${Rt}]`,this._modal);this._isMouseMove&&(this._hasTargetInnerClass(t)?g.addStyle(this._hand,{height:"21.5%"}):g.addStyle(this._hand,{height:"calc(40% + 1px)"}),g.addStyle(this._hand,{transform:`rotateZ(${i}deg)`}),this._hour.textContent=e>=10||e==="00"?e:`0${e}`,this._toggleClassActive(this.hoursArray,this._hour,n),this._toggleClassActive(this.innerHours,this._hour,o),this._objWithDataOnChange.hour=e>=10||e==="00"?e:`0${e}`)}_handlerMaxMinMinutesOptions(t,e){let{maxTime:i,minTime:n}=this._options;const{format12:o,increment:r,disablePast:a,disableFuture:l}=this._options;n=je(n,a,o),i=Ye(i,l,o);const c=j(i,!1)[1],h=j(n,!1)[1],d=j(i,!1)[0],u=j(n,!1)[0],p=u==="12"&&o?"0":u,f=d==="12"&&o?"0":d,b=j(i,!1)[2],v=j(n,!1)[2],y=c!==""?c*6:"",T=h!==""?h*6:"",x=Number(this._hour.textContent),E=x===12&&o?0:x;if(!b&&!v){if(i!==""&&n!==""){if(Number(f)===E&&t>y||Number(p)===E&&t=Number(f)&&t>=y+6)return t}else{if(n!==""){if(v==="PM"&&this._isAmEnabled)return;if(v==="PM"&&this._isPmEnabled){if(E=Number(f)&&t>=y+6)return t}else if(b==="AM"&&this._isAmEnabled&&E>=Number(f)&&t>=y+6)return t}}return r&&(t=Math.round(t/30)*30),t<0?t=360+t:t>=360&&(t=0),{degrees:t,minute:e}}_removeModal(){this._animations?setTimeout(()=>{this._removeModalElements(),this._scrollBar.reset()},300):(this._removeModalElements(),this._scrollBar.reset()),ci.off(this._document,`${lu} ${zo} ${cu} ${hu} ${du} ${uu} ${pu} ${gu} ${fu} ${_u}`),_.off(window,zo)}_removeModalElements(){this._modal&&this._modal.remove()}_toggleBackdropAnimation(t=!1){t?this._wrapper.classList.add("animate-[fade-out_350ms_ease-in-out]"):(this._wrapper.classList.add("animate-[fade-in_350ms_ease-in-out]"),this._options.inline||g.addClass(this._clock,this._classes.clockAnimation)),setTimeout(()=>{this._wrapper.classList.remove("animate-[fade-out_350ms_ease-in-out]","animate-[fade-in_350ms_ease-in-out]")},351)}_addActiveClassToTip(t,e){t.forEach(i=>{Number(i.textContent)===Number(e)&&(g.addClass(i,this._classes.tipsActive),i.setAttribute(J,""))})}_setHourOrMinute(t){return t<10?`0${t}`:t}_appendTimes(){const{format24:t}=this._options;if(t){this._getAppendClock(this.hoursArray,`[${Ci}]`,pt),this._getAppendClock(this.innerHours,`[${Gs}]`,Rt);return}this._getAppendClock(this.hoursArray,`[${Ci}]`,pt)}_getConfig(t){const e=g.getDataAttributes(this._element);return t={...RT,...e,...t},L(Xs,t,NT),t}_getClasses(t){const e=g.getDataClassAttributes(this._element);return t={...BT,...e,...t},L(Xs,t,HT),t}_getContainer(){return m.findOne(this._options.container)}_getValidate(t){const{format24:e,format12:i,appendValidationInfo:n}=this._options;ci.on(this.input,t,({target:o})=>{if(this._options===null||this.input.value==="")return;const r=/^(0?[1-9]|1[012])(:[0-5]\d) [APap][mM]$/,a=/^([01]\d|2[0-3])(:[0-5]\d)$/,l=r.test(o.value);if(a.test(o.value)!==!0&&e||l!==!0&&i){n&&this.input.setAttribute(gl,""),g.addStyle(o,{marginBottom:0}),this._isInvalidTimeFormat=!0;return}this.input.removeAttribute(gl),this._isInvalidTimeFormat=!1;const h=m.findOne(`[${$T}]`);h!==null&&h.remove()})}static getInstance(t){return D.getData(t,Wo)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,typeof e=="object"?e:null)}}const VT={threshold:10,direction:"all"};let FT=class{constructor(t,e){this._element=t,this._startPosition=null,this._options={...VT,...e}}handleTouchStart(t){this._startPosition=this._getCoordinates(t)}handleTouchMove(t){if(!this._startPosition)return;const e=this._getCoordinates(t),i={x:e.x-this._startPosition.x,y:e.y-this._startPosition.y},n=this._getDirection(i);if(this._options.direction==="all"){if(n.y.valuen.x.value?n.y.direction:n.x.direction;_.trigger(this._element,`swipe${r}`),_.trigger(this._element,"swipe",{direction:r}),this._startPosition=null;return}const o=this._options.direction==="left"||this._options==="right"?"x":"y";n[o].direction===this._options.direction&&n[o].value>this._options.threshold&&(_.trigger(this._element,`swipe${n[o].direction}`),this._startPosition=null)}handleTouchEnd(){this._startPosition=null}_getCoordinates(t){const[e]=t.touches;return{x:e.clientX,y:e.clientY}}_getDirection(t){return{x:{direction:t.x<0?"left":"right",value:Math.abs(t.x)},y:{direction:t.y<0?"up":"down",value:Math.abs(t.y)}}}},WT=class{constructor(t,e="swipe",i={}){this._element=t,this._event=e,this.swipe=new FT(t,i),this._touchStartHandler=this._handleTouchStart.bind(this),this._touchMoveHandler=this._handleTouchMove.bind(this),this._touchEndHandler=this._handleTouchEnd.bind(this)}dispose(){this._element.removeEventListener("touchstart",this._touchStartHandler),this._element.removeEventListener("touchmove",this._touchMoveHandler),window.removeEventListener("touchend",this._touchEndHandler)}init(){this._element.addEventListener("touchstart",t=>this._handleTouchStart(t)),this._element.addEventListener("touchmove",t=>this._handleTouchMove(t)),window.addEventListener("touchend",t=>this._handleTouchEnd(t))}_handleTouchStart(t){this[this._event].handleTouchStart(t)}_handleTouchMove(t){this[this._event].handleTouchMove(t)}_handleTouchEnd(t){this[this._event].handleTouchEnd(t)}};const El="stepper",Go="te.stepper",qo=`.${Go}`,qs=`data-te-${El}`,Zs="horizontal",_e="vertical",zT={stepperType:"string",stepperLinear:"boolean",stepperNoEditable:"boolean",stepperActive:"string",stepperCompleted:"string",stepperInvalid:"string",stepperDisabled:"string",stepperVerticalBreakpoint:"number",stepperMobileBreakpoint:"number",stepperMobileBarBreakpoint:"number"},jT={stepperType:Zs,stepperLinear:!1,stepperNoEditable:!1,stepperActive:"",stepperCompleted:"",stepperInvalid:"",stepperDisabled:"",stepperVerticalBreakpoint:0,stepperMobileBreakpoint:0,stepperMobileBarBreakpoint:4},Eu=`mousedown${qo}`,xu=`keydown${qo}`,YT=`keyup${qo}`,Cu=`resize${qo}`,Ue=`[${qs}-step-ref]`,yt=`[${qs}-head-ref]`,Au=`[${qs}-head-text-ref]`,Zo=`[${qs}-head-icon-ref]`,wt=`[${qs}-content-ref]`;class wu{constructor(t,e){this._element=t,this._options=this._getConfig(e),this._elementHeight=0,this._steps=m.find(`${Ue}`,this._element),this._currentView="",this._activeStepIndex=0,this._verticalStepperStyles=[],this._element&&(D.setData(t,Go,this),this._init())}static get NAME(){return El}get activeStep(){return this._steps[this._activeStepIndex]}get activeStepIndex(){return this._activeStepIndex}dispose(){this._steps.forEach(t=>{_.off(t,Eu),_.off(t,xu)}),_.off(window,Cu),D.removeData(this._element,Go),this._element=null}changeStep(t){this._toggleStep(t)}nextStep(){this._toggleStep(this._activeStepIndex+1)}previousStep(){this._toggleStep(this._activeStepIndex-1)}_init(){const t=m.find(`${Ue}`,this._element)[this._activeStepIndex].setAttribute("data-te","active-step"),e=m.find(`${Au}`,this._element),i=m.find(`${Zo}`,this._element);switch(t?(this._activeStepIndex=this._steps.indexOf(t),this._toggleStepClass(this._activeStepIndex,"add",this._options.stepperActive),e[this._activeStepIndex].classList.add("font-medium"),i[this._activeStepIndex].classList.add("!bg-primary-100"),i[this._activeStepIndex].classList.add("!text-primary-700")):(e[this._activeStepIndex].classList.add("font-medium"),i[this._activeStepIndex].classList.add("!bg-primary-100"),i[this._activeStepIndex].classList.add("!text-primary-700"),this._toggleStepClass(this._activeStepIndex,"add",this._options.stepperActive)),this._bindMouseDown(),this._bindKeysNavigation(),this._options.stepperType){case _e:this._toggleVertical();break;default:this._toggleHorizontal();break}(this._options.stepperVerticalBreakpoint||this._options.stepperMobileBreakpoint)&&this._toggleStepperView(),this._bindResize()}_getConfig(t){const e=g.getDataAttributes(this._element);return t={...jT,...e,...t},L(El,t,zT),t}_bindMouseDown(){this._steps.forEach(t=>{const e=m.findOne(`${yt}`,t);_.on(e,Eu,i=>{const n=m.parents(i.target,`${Ue}`)[0],o=this._steps.indexOf(n);i.preventDefault(),this._toggleStep(o)})})}_bindResize(){_.on(window,Cu,()=>{this._currentView===_e&&this._setSingleStepHeight(this.activeStep),this._currentView===Zs&&this._setHeight(this.activeStep),(this._options.stepperVerticalBreakpoint||this._options.stepperMobileBreakpoint)&&this._toggleStepperView()})}_toggleStepperView(){const t=this._options.stepperVerticalBreakpointwindow.innerWidth,i=this._options.stepperMobileBreakpoint>window.innerWidth;t&&this._currentView!==Zs&&this._toggleHorizontal(),e&&!i&&this._currentView!==_e&&(this._steps.forEach(n=>{const o=m.findOne(`${wt}`,n);this._resetStepperHeight(),this._showElement(o)}),this._toggleVertical())}_toggleStep(t){this._activeStepIndex!==t&&(this._options.stepperNoEditable&&this._toggleDisabled(),this._showElement(m.findOne(`${wt}`,this._steps[t])),this._toggleActive(t),t>this._activeStepIndex&&this._toggleCompleted(this._activeStepIndex),this._currentView===Zs?this._animateHorizontalStep(t):(this._animateVerticalStep(t),this._setSingleStepHeight(this._steps[t])),this._toggleStepTabIndex(m.findOne(`${yt}`,this.activeStep),m.findOne(`${yt}`,this._steps[t])),this._activeStepIndex=t,this._steps[this._activeStepIndex].setAttribute("data-te","active-step"),this._steps.forEach((e,i)=>{e[this._activeStepIndex]!==i&&e.removeAttribute("data-te")}))}_resetStepperHeight(){this._element.style.height=""}_setStepsHeight(){this._steps.forEach(t=>{const e=m.findOne(`${wt}`,t),i=window.getComputedStyle(e);this._verticalStepperStyles.push({paddingTop:parseFloat(i.paddingTop),paddingBottom:parseFloat(i.paddingBottom)});const n=e.scrollHeight;e.style.height=`${n}px`})}_setSingleStepHeight(t){const e=m.findOne(`${wt}`,t),i=this.activeStep===t,n=this._steps.indexOf(t);let o;i?(e.style.height="",o=e.scrollHeight):o=e.scrollHeight+this._verticalStepperStyles[n].paddingTop+this._verticalStepperStyles[n].paddingBottom,e.style.height=`${o}px`}_toggleVertical(){this._currentView=_e,this._setStepsHeight(),this._hideInactiveSteps()}_toggleHorizontal(){this._currentView=Zs,this._setHeight(this.activeStep),this._hideInactiveSteps()}_toggleStepperClass(){m.findOne("[data-te-stepper-type]",this._element)!==null&&this._steps.forEach(e=>{m.findOne(`${wt}`,e).classList.remove("!my-0"),m.findOne(`${wt}`,e).classList.remove("!py-0"),m.findOne(`${wt}`,e).classList.remove("!h-0")})}_toggleStepClass(t,e,i){i&&this._steps[t].classList[e](i)}_bindKeysNavigation(){this._toggleStepTabIndex(!1,m.findOne(`${yt}`,this.activeStep)),this._steps.forEach(t=>{const e=m.findOne(`${yt}`,t);_.on(e,xu,i=>{const n=m.parents(i.currentTarget,`${Ue}`)[0],o=m.next(n,`${Ue}`)[0],r=m.prev(n,`${Ue}`)[0],a=m.findOne(`${yt}`,n),l=m.findOne(`${yt}`,this.activeStep);let c=null,h=null;if(o&&(c=m.findOne(`${yt}`,o)),r&&(h=m.findOne(`${yt}`,r)),i.keyCode===ns&&this._currentView!==_e&&(h?(this._toggleStepTabIndex(a,h),this._toggleOutlineStyles(a,h),h.focus()):c&&(this._toggleStepTabIndex(a,c),this._toggleOutlineStyles(a,c),c.focus())),i.keyCode===os&&this._currentView!==_e&&(c?(this._toggleStepTabIndex(a,c),this._toggleOutlineStyles(a,c),c.focus()):h&&(this._toggleStepTabIndex(a,h),this._toggleOutlineStyles(a,h),h.focus())),i.keyCode===ut&&this._currentView===_e&&(i.preventDefault(),c&&(this._toggleStepTabIndex(a,c),this._toggleOutlineStyles(a,c),c.focus())),i.keyCode===At&&this._currentView===_e&&(i.preventDefault(),h&&(this._toggleStepTabIndex(a,h),this._toggleOutlineStyles(a,h),h.focus())),i.keyCode===rs){const d=m.findOne(`${yt}`,this._steps[0]);this._toggleStepTabIndex(a,d),this._toggleOutlineStyles(a,d),d.focus()}if(i.keyCode===as){const d=this._steps[this._steps.length-1],u=m.findOne(`${yt}`,d);this._toggleStepTabIndex(a,u),this._toggleOutlineStyles(a,u),u.focus()}(i.keyCode===Pt||i.keyCode===Mo)&&(i.preventDefault(),this.changeStep(this._steps.indexOf(n))),i.keyCode===Us&&(this._toggleStepTabIndex(a,l),this._toggleOutlineStyles(a,!1),l.focus())}),_.on(e,YT,i=>{const n=m.parents(i.currentTarget,`${Ue}`)[0],o=m.findOne(`${yt}`,n),r=m.findOne(`${yt}`,this.activeStep);i.keyCode===Us&&(this._toggleStepTabIndex(o,r),this._toggleOutlineStyles(!1,r),r.focus())})})}_toggleStepTabIndex(t,e){t&&t.setAttribute("tabIndex",-1),e&&e.setAttribute("tabIndex",0)}_toggleOutlineStyles(t,e){t&&(t.style.outline=""),e&&(e.style.outline="revert")}_toggleDisabled(){const t=m.find(`${yt}`,this._element),e=m.find(`${Zo}`,this._element);t[this._activeStepIndex].classList.add("color-[#858585]"),t[this._activeStepIndex].classList.add("cursor-default"),e[this._activeStepIndex].classList.add("!bg-[#858585]"),this._toggleStepClass(this._activeStepIndex,"add",this._options.stepperDisabled)}_toggleActive(t){const e=m.find(`${Au}`,this._element),i=m.find(`${Zo}`,this._element);e[t].classList.add("font-medium"),i[t].classList.add("!bg-primary-100"),i[t].classList.add("!text-primary-700"),i[t].classList.remove("!bg-success-100"),i[t].classList.remove("!text-success-700"),e[this._activeStepIndex].classList.remove("font-medium"),i[this._activeStepIndex].classList.remove("!bg-primary-100"),i[this._activeStepIndex].classList.remove("!text-primary-700"),this._toggleStepClass(t,"add",this._options.stepperActive),this._toggleStepClass(this._activeStepIndex,"remove",this._options.stepperActive)}_toggleCompleted(t){const e=m.find(`${Zo}`,this._element);e[t].classList.add("!bg-success-100"),e[t].classList.add("!text-success-700"),e[t].classList.remove("!bg-danger-100"),e[t].classList.remove("!text-danger-700"),this._toggleStepClass(t,"add",this._options.stepperCompleted),this._toggleStepClass(t,"remove",this._options.stepperInvalid)}_hideInactiveSteps(){this._steps.forEach(t=>{t.getAttribute("data-te")||this._hideElement(m.findOne(`${wt}`,t))})}_setHeight(t){const e=m.findOne(`${wt}`,t),i=getComputedStyle(e),n=m.findOne(`${yt}`,t),o=getComputedStyle(n),r=e.offsetHeight+parseFloat(i.marginTop)+parseFloat(i.marginBottom),a=n.offsetHeight+parseFloat(o.marginTop)+parseFloat(o.marginBottom);this._element.style.height=`${a+r}px`}_hideElement(t){!m.parents(t,`${Ue}`)[0].getAttribute("data-te")&&this._currentView!==_e||(t.classList.add("!my-0"),t.classList.add("!py-0"),t.classList.add("!h-0"))}_showElement(t){this._currentView===_e?(t.classList.remove("!my-0"),t.classList.remove("!py-0"),t.classList.remove("!h-0")):t.style.display="block"}_animateHorizontalStep(t){const e=t>this._activeStepIndex,i=m.findOne(`${wt}`,this._steps[t]),n=m.findOne(`${wt}`,this.activeStep);let o,r;this._steps.forEach((h,d)=>{const u=m.findOne(`${wt}`,h);d!==t&&d!==this._activeStepIndex&&this._hideElement(u)});const a="translate-x-[150%]",l="-translate-x-[150%]",c="translate-0";e?(r=l,o=c,i.classList.remove("translate-x-[150%]"),i.classList.remove("-translate-x-[150%]")):(r=a,o=c,i.classList.remove("-translate-x-[150%]"),i.classList.remove("translate-x-[150%]")),n.classList.add(r),i.classList.add(o),this._setHeight(this._steps[t])}_animateVerticalStep(t){const e=m.findOne(`${wt}`,this._steps[t]),i=m.findOne(`${wt}`,this.activeStep);this._hideElement(i),this._showElement(e)}static getInstance(t){return D.getData(t,Go)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,typeof e=="object"?e:null)}}const ku="data-te-input-state-active",Qo="data-te-input-selected",Su="data-te-input-multiple-active",Ou="[data-te-form-check-input]";class Du{constructor(t,e,i,n,o,r,a,l,c,h,d){this.id=t,this.nativeOption=e,this.multiple=i,this.value=n,this.label=o,this.selected=r,this.disabled=a,this.hidden=l,this.secondaryText=c,this.groupId=h,this.icon=d,this.node=null,this.active=!1}select(){this.multiple?this._selectMultiple():this._selectSingle()}_selectSingle(){this.selected||(this.node.setAttribute(Qo,""),this.node.setAttribute("aria-selected",!0),this.selected=!0,this.nativeOption&&(this.nativeOption.selected=!0))}_selectMultiple(){if(!this.selected){const t=m.findOne(Ou,this.node);t.checked=!0,this.node.setAttribute(Qo,""),this.node.setAttribute("aria-selected",!0),this.selected=!0,this.nativeOption&&(this.nativeOption.selected=!0)}}deselect(){this.multiple?this._deselectMultiple():this._deselectSingle()}_deselectSingle(){this.selected&&(this.node.removeAttribute(Qo),this.node.setAttribute("aria-selected",!1),this.selected=!1,this.nativeOption&&(this.nativeOption.selected=!1))}_deselectMultiple(){if(this.selected){const t=m.findOne(Ou,this.node);t.checked=!1,this.node.removeAttribute(Qo),this.node.setAttribute("aria-selected",!1),this.selected=!1,this.nativeOption&&(this.nativeOption.selected=!1)}}setNode(t){this.node=t}setActiveStyles(){if(!this.active){if(this.multiple){this.node.setAttribute(Su,"");return}this.active=!0,this.node.setAttribute(ku,"")}}removeActiveStyles(){this.active&&(this.active=!1,this.node.removeAttribute(ku)),this.multiple&&this.node.removeAttribute(Su)}}class KT{constructor(t=!1){this._multiple=t,this._selections=[]}select(t){this._multiple?this._selections.push(t):this._selections=[t]}deselect(t){if(this._multiple){const e=this._selections.findIndex(i=>t===i);this._selections.splice(e,1)}else this._selections=[]}clear(){this._selections=[]}get selection(){return this._selections[0]}get selections(){return this._selections}get label(){return this._selections[0]&&this.selection.label}get labels(){return this._selections.map(t=>t.label).join(", ")}get value(){return this.selections[0]&&this.selection.value}get values(){return this._selections.map(t=>t.value)}}function xl(s){return s.filter(t=>!t.disabled).every(t=>t.selected)}const UT="data-te-select-form-outline-ref",XT="data-te-select-wrapper-ref",GT="data-te-select-input-ref",qT="data-te-select-clear-btn-ref",ZT="data-te-select-dropdown-container-ref",QT="data-te-select-dropdown-ref",JT="data-te-select-options-wrapper-ref",tE="data-te-select-options-list-ref",eE="data-te-select-input-filter-ref",Iu="data-te-select-option-ref",iE="data-te-select-option-all-ref",sE="data-te-select-option-text-ref",nE="data-te-form-check-input",oE="data-te-select-option-group-ref",rE="data-te-select-option-group-label-ref",Mu="data-te-select-selected",aE=` -`,nx=i=>{i.code==="Tab"||i.code==="Esc"||i.preventDefault()};function Wo(i,t,e,s,n){t.selectSize==="default"&&_.addClass(i,e),t.selectSize==="sm"&&_.addClass(i,s),t.selectSize==="lg"&&_.addClass(i,n)}function ox(i,t,e,s){const n=document.createElement("div");n.setAttribute("id",i),n.setAttribute(Yy,"");const o=L("div");o.setAttribute(zy,""),_.addClass(o,s.formOutline);const r=L("input"),a=t.selectFilter?"combobox":"listbox",l=t.multiple?"true":"false",c=t.disabled?"true":"false";r.setAttribute(jy,""),_.addClass(r,s.selectInput),Wo(r,t,s.selectInputSizeDefault,s.selectInputSizeSm,s.selectInputSizeLg),t.selectFormWhite&&_.addClass(r,s.selectInputWhite),r.setAttribute("type","text"),r.setAttribute("role",a),r.setAttribute("aria-multiselectable",l),r.setAttribute("aria-disabled",c),r.setAttribute("aria-haspopup","true"),r.setAttribute("aria-expanded",!1),t.tabIndex&&r.setAttribute("tabIndex",t.tabIndex),t.disabled&&r.setAttribute("disabled",""),t.selectPlaceholder!==""&&r.setAttribute("placeholder",t.selectPlaceholder),t.selectValidation?(_.addStyle(r,{"pointer-events":"none","caret-color":"transparent"}),_.addStyle(o,{cursor:"pointer"})):r.setAttribute("readonly","true"),t.selectValidation&&(r.setAttribute("required","true"),r.setAttribute("aria-required","true"),r.addEventListener("keydown",nx));const h=L("div");_.addClass(h,s.selectValidationValid);const d=document.createTextNode(`${t.selectValidFeedback}`);h.appendChild(d);const u=L("div");_.addClass(u,s.selectValidationInvalid);const p=document.createTextNode(`${t.selectInvalidFeedback}`);u.appendChild(p);const f=L("span");f.setAttribute(Ky,""),_.addClass(f,s.selectClearBtn),Wo(f,t,s.selectClearBtnDefault,s.selectClearBtnSm,s.selectClearBtnLg),t.selectFormWhite&&_.addClass(f,s.selectClearBtnWhite);const b=document.createTextNode("✕");f.appendChild(b),f.setAttribute("tabindex","0");const v=L("span");return _.addClass(v,s.selectArrow),Wo(v,t,s.selectArrowDefault,s.selectArrowSm,s.selectArrowLg),t.selectFormWhite&&_.addClass(v,s.selectArrowWhite),v.innerHTML=sx,o.appendChild(r),e&&(_.addClass(e,s.selectLabel),Wo(e,t,s.selectLabelSizeDefault,s.selectLabelSizeSm,s.selectLabelSizeLg),t.selectFormWhite&&_.addClass(e,s.selectLabelWhite),o.appendChild(e)),t.selectValidation&&(o.appendChild(h),o.appendChild(u)),t.selectClearButton&&o.appendChild(f),o.appendChild(v),n.appendChild(o),n}function Yd(i,t,e,s,n,o,r,a){const l=document.createElement("div");l.setAttribute(Uy,""),_.addClass(l,a.selectDropdownContainer),l.setAttribute("id",`${i}`),l.style.width=`${e}px`;const c=document.createElement("div");c.setAttribute("tabindex",0),c.setAttribute(Xy,""),_.addClass(c,a.dropdown);const h=L("div");h.setAttribute(Gy,""),_.addClass(h,a.optionsWrapper),_.addClass(h,a.optionsWrapperScrollbar),h.style.maxHeight=`${s}px`;const d=jd(o,n,t,a);return h.appendChild(d),t.selectFilter&&c.appendChild(rx(t.selectSearchPlaceholder,a)),c.appendChild(h),r&&c.appendChild(r),l.appendChild(c),l}function jd(i,t,e,s){const n=L("div");n.setAttribute(qy,""),_.addClass(n,s.optionsList);let o;return e.multiple?o=lx(i,t,e,s):o=ax(i,e,s),o.forEach(r=>{n.appendChild(r)}),n}function rx(i,t){const e=L("div");_.addClass(e,t.inputGroup);const s=L("input");return s.setAttribute(Zy,""),_.addClass(s,t.selectFilterInput),s.placeholder=i,s.setAttribute("role","searchbox"),s.setAttribute("type","text"),e.appendChild(s),e}function ax(i,t,e){return Kd(i,t,e)}function lx(i,t,e,s){let n=null;e.selectAll&&(n=cx(t,i,e,s));const o=Kd(i,e,s);return n?[n,...o]:o}function Kd(i,t,e){const s=[];return i.forEach(n=>{if(Object.prototype.hasOwnProperty.call(n,"options")){const r=px(n,t,e);s.push(r)}else s.push(Ud(n,t,e))}),s}function cx(i,t,e,s){const n=ja(t),o=L("div");return o.setAttribute(Vd,""),_.addClass(o,s.selectOption),o.setAttribute(Qy,""),_.addStyle(o,{height:`${e.selectOptionHeight}px`}),o.setAttribute("role","option"),o.setAttribute("aria-selected",n),n&&o.setAttribute(zd,""),o.appendChild(Xd(i,e,s)),i.setNode(o),o}function Ud(i,t,e){if(i.node)return i.node;const s=L("div");return s.setAttribute(Vd,""),_.addClass(s,e.selectOption),_.addStyle(s,{height:`${t.selectOptionHeight}px`}),_.setDataAttribute(s,"id",i.id),s.setAttribute("role","option"),s.setAttribute("aria-selected",i.selected),s.setAttribute("aria-disabled",i.disabled),i.selected&&s.setAttribute(zd,""),i.disabled&&s.setAttribute("data-te-select-option-disabled",!0),i.hidden&&_.addClass(s,"hidden"),s.appendChild(Xd(i,t,e)),i.icon&&s.appendChild(ux(i,e)),i.setNode(s),s}function Xd(i,t,e){const s=L("span");s.setAttribute(Jy,""),_.addClass(s,e.selectOptionText);const n=document.createTextNode(i.label);return t.multiple&&s.appendChild(dx(i,e)),s.appendChild(n),(i.secondaryText||typeof i.secondaryText=="number")&&s.appendChild(hx(i.secondaryText,e)),s}function hx(i,t){const e=L("span");_.addClass(e,t.selectOptionSecondaryText);const s=document.createTextNode(i);return e.appendChild(s),e}function dx(i,t){const e=L("input");e.setAttribute("type","checkbox"),_.addClass(e,t.formCheckInput),e.setAttribute(tx,"");const s=L("label");return i.selected&&e.setAttribute("checked",!0),i.disabled&&e.setAttribute("disabled",!0),e.appendChild(s),e}function ux(i,t){const e=L("span"),s=L("img");return _.addClass(s,t.selectOptionIcon),s.src=i.icon,e.appendChild(s),e}function px(i,t,e){const s=L("div");s.setAttribute(ex,""),_.addClass(s,e.selectOptionGroup),s.setAttribute("role","group"),s.setAttribute("id",i.id),i.hidden&&_.addClass(s,"hidden");const n=L("label");return n.setAttribute(ix,""),_.addClass(n,e.selectOptionGroupLabel),_.addStyle(n,{height:`${t.selectOptionHeight}px`}),n.setAttribute("for",i.id),n.textContent=i.label,s.appendChild(n),i.options.forEach(o=>{s.appendChild(Ud(o,t,e))}),s}function fx(i,t){const e=L("div");return e.innerHTML=i,_.addClass(e,t.selectLabel),_.addClass(e,t.selectFakeValue),e}const Ka="select",js="te.select",Ks=`.${js}`,_x=`close${Ks}`,gx=`open${Ks}`,Gd=`optionSelect${Ks}`,qd=`optionDeselect${Ks}`,mx=`valueChange${Ks}`,bx="change",Zd="data-te-select-init",Qd="data-te-select-no-results-ref",Jd="data-te-select-open",xt="data-te-input-state-active",Xe="data-te-input-focused",Ua="data-te-input-disabled",vx="data-te-select-option-group-label-ref",yx="data-te-select-option-all-ref",Us="data-te-select-selected",xx="[data-te-select-label-ref]",tu="[data-te-select-input-ref]",Tx="[data-te-select-input-filter-ref]",Ex="[data-te-select-dropdown-ref]",Cx="[data-te-select-options-wrapper-ref]",eu="[data-te-select-options-list-ref]",Ax="[data-te-select-option-ref]",wx="[data-te-select-clear-btn-ref]",kx="[data-te-select-custom-content-ref]",Sx=`[${Qd}]`,iu="[data-te-select-form-outline-ref]",Ox="[data-te-select-toggle]",Xa="[data-te-input-notch-ref]",Dx=200,Ix={selectAutoSelect:!1,selectContainer:"body",selectClearButton:!1,disabled:!1,selectDisplayedLabels:5,selectFormWhite:!1,multiple:!1,selectOptionsSelectedLabel:"options selected",selectOptionHeight:38,selectAll:!0,selectAllLabel:"Select all",selectSearchPlaceholder:"Search...",selectSize:"default",selectVisibleOptions:5,selectFilter:!1,selectFilterDebounce:300,selectNoResultText:"No results",selectValidation:!1,selectValidFeedback:"Valid",selectInvalidFeedback:"Invalid",selectPlaceholder:""},Mx={selectAutoSelect:"boolean",selectContainer:"string",selectClearButton:"boolean",disabled:"boolean",selectDisplayedLabels:"number",selectFormWhite:"boolean",multiple:"boolean",selectOptionsSelectedLabel:"string",selectOptionHeight:"number",selectAll:"boolean",selectAllLabel:"string",selectSearchPlaceholder:"string",selectSize:"string",selectVisibleOptions:"number",selectFilter:"boolean",selectFilterDebounce:"number",selectNoResultText:"string",selectValidation:"boolean",selectValidFeedback:"string",selectInvalidFeedback:"string",selectPlaceholder:"string"},Lx={dropdown:"relative outline-none min-w-[100px] m-0 scale-[0.8] opacity-0 bg-white shadow-[0_2px_5px_0_rgba(0,0,0,0.16),_0_2px_10px_0_rgba(0,0,0,0.12)] transition duration-200 motion-reduce:transition-none data-[te-select-open]:scale-100 data-[te-select-open]:opacity-100 dark:bg-zinc-700",formCheckInput:"relative float-left mt-[0.15rem] mr-[8px] h-[1.125rem] w-[1.125rem] appearance-none rounded-[0.25rem] border-[0.125rem] border-solid border-neutral-300 dark:border-neutral-600 outline-none before:pointer-events-none before:absolute before:h-[0.875rem] before:w-[0.875rem] before:scale-0 before:rounded-full before:bg-transparent before:opacity-0 before:shadow-[0px_0px_0px_13px_transparent] before:content-[''] checked:border-primary dark:checked:border-primary checked:bg-primary dark:checked:bg-primary checked:before:opacity-[0.16] checked:after:absolute checked:after:ml-[0.25rem] checked:after:-mt-px checked:after:block checked:after:h-[0.8125rem] checked:after:w-[0.375rem] checked:after:rotate-45 checked:after:border-[0.125rem] checked:after:border-t-0 checked:after:border-l-0 checked:after:border-solid checked:after:border-white checked:after:bg-transparent checked:after:content-[''] hover:cursor-pointer hover:before:opacity-[0.04] hover:before:shadow-[0px_0px_0px_13px_rgba(0,0,0,0.6)] focus:shadow-none focus:transition-[border-color_0.2s] focus:before:scale-100 focus:before:opacity-[0.12] focus:before:shadow-[0px_0px_0px_13px_rgba(0,0,0,0.6)] dark:focus:before:shadow-[0px_0px_0px_13px_rgba(255,255,255,0.4)] focus:before:transition-[box-shadow_0.2s,transform_0.2s] focus:after:absolute focus:after:z-[1] focus:after:block focus:after:h-[0.875rem] focus:after:w-[0.875rem] focus:after:rounded-[0.125rem] focus:after:content-[''] checked:focus:before:scale-100 checked:focus:before:shadow-[0px_0px_0px_13px_#3b71ca] dark:checked:focus:before:shadow-[0px_0px_0px_13px_#3b71ca] checked:focus:before:transition-[box-shadow_0.2s,transform_0.2s] checked:focus:after:ml-[0.25rem] checked:focus:after:-mt-px checked:focus:after:h-[0.8125rem] checked:focus:after:w-[0.375rem] checked:focus:after:rotate-45 checked:focus:after:rounded-none checked:focus:after:border-[0.125rem] checked:focus:after:border-t-0 checked:focus:after:border-l-0 checked:focus:after:border-solid checked:focus:after:border-white checked:focus:after:bg-transparent",formOutline:"relative",initialized:"hidden",inputGroup:"flex items-center whitespace-nowrap p-2.5 text-center text-base font-normal leading-[1.6] text-gray-700 dark:bg-zinc-800 dark:text-gray-200 dark:placeholder:text-gray-200",noResult:"flex items-center px-4",optionsList:"list-none m-0 p-0",optionsWrapper:"overflow-y-auto",optionsWrapperScrollbar:"[&::-webkit-scrollbar]:w-1 [&::-webkit-scrollbar]:h-1 [&::-webkit-scrollbar-button]:block [&::-webkit-scrollbar-button]:h-0 [&::-webkit-scrollbar-button]:bg-transparent [&::-webkit-scrollbar-track-piece]:bg-transparent [&::-webkit-scrollbar-track-piece]:rounded-none [&::-webkit-scrollbar-track-piece]: [&::-webkit-scrollbar-track-piece]:rounded-l [&::-webkit-scrollbar-thumb]:h-[50px] [&::-webkit-scrollbar-thumb]:bg-[#999] [&::-webkit-scrollbar-thumb]:rounded",selectArrow:"absolute right-3 text-[0.8rem] cursor-pointer peer-focus:text-primary peer-data-[te-input-focused]:text-primary group-data-[te-was-validated]/validation:peer-valid:text-green-600 group-data-[te-was-validated]/validation:peer-invalid:text-[rgb(220,76,100)] w-5 h-5",selectArrowWhite:"text-gray-50 peer-focus:!text-white peer-data-[te-input-focused]:!text-white",selectArrowDefault:"top-2",selectArrowLg:"top-[13px]",selectArrowSm:"top-1",selectClearBtn:"absolute top-2 right-9 text-black cursor-pointer focus:text-primary outline-none dark:text-gray-200",selectClearBtnWhite:"!text-gray-50",selectClearBtnDefault:"top-2 text-base",selectClearBtnLg:"top-[11px] text-base",selectClearBtnSm:"top-1 text-[0.8rem]",selectDropdownContainer:"z-[1070]",selectFakeValue:"transform-none hidden data-[te-input-state-active]:block",selectFilterInput:"relative m-0 block w-full min-w-0 flex-auto rounded border border-solid border-gray-300 bg-transparent bg-clip-padding px-3 py-1.5 text-base font-normal text-gray-700 transition duration-300 ease-in-out motion-reduce:transition-none focus:border-primary focus:text-gray-700 focus:shadow-te-primary focus:outline-none dark:text-gray-200 dark:placeholder:text-gray-200",selectInput:"peer block min-h-[auto] w-full rounded border-0 bg-transparent outline-none transition-all duration-200 ease-linear focus:placeholder:opacity-100 data-[te-input-state-active]:placeholder:opacity-100 motion-reduce:transition-none dark:text-gray-200 dark:placeholder:text-gray-200 [&:not([data-te-input-placeholder-active])]:placeholder:opacity-0 cursor-pointer data-[te-input-disabled]:bg-[#e9ecef] data-[te-input-disabled]:cursor-default group-data-[te-was-validated]/validation:mb-4 dark:data-[te-input-disabled]:bg-zinc-600",selectInputWhite:"!text-gray-50",selectInputSizeDefault:"py-[0.32rem] px-3 leading-[1.6]",selectInputSizeLg:"py-[0.32rem] px-3 leading-[2.15]",selectInputSizeSm:"py-[0.33rem] px-3 text-xs leading-[1.5]",selectLabel:"pointer-events-none absolute top-0 left-3 mb-0 max-w-[90%] origin-[0_0] truncate text-gray-500 transition-all duration-200 ease-out peer-focus:scale-[0.8] peer-focus:text-primary peer-data-[te-input-state-active]:scale-[0.8] motion-reduce:transition-none dark:text-gray-200 dark:peer-focus:text-gray-200 data-[te-input-state-active]:scale-[0.8] dark:peer-focus:text-primary",selectLabelWhite:"!text-gray-50",selectLabelSizeDefault:"pt-[0.37rem] leading-[1.6] peer-focus:-translate-y-[0.9rem] peer-data-[te-input-state-active]:-translate-y-[0.9rem] data-[te-input-state-active]:-translate-y-[0.9rem]",selectLabelSizeLg:"pt-[0.37rem] leading-[2.15] peer-focus:-translate-y-[1.15rem] peer-data-[te-input-state-active]:-translate-y-[1.15rem] data-[te-input-state-active]:-translate-y-[1.15rem]",selectLabelSizeSm:"pt-[0.37rem] text-xs leading-[1.5] peer-focus:-translate-y-[0.75rem] peer-data-[te-input-state-active]:-translate-y-[0.75rem] data-[te-input-state-active]:-translate-y-[0.75rem]",selectOption:"flex flex-row items-center justify-between w-full px-4 truncate text-gray-700 bg-transparent select-none cursor-pointer data-[te-input-multiple-active]:bg-black/5 hover:[&:not([data-te-select-option-disabled])]:bg-black/5 data-[te-input-state-active]:bg-black/5 data-[te-select-option-selected]:data-[te-input-state-active]:bg-black/5 data-[te-select-selected]:data-[te-select-option-disabled]:cursor-default data-[te-select-selected]:data-[te-select-option-disabled]:text-gray-400 data-[te-select-selected]:data-[te-select-option-disabled]:bg-transparent data-[te-select-option-selected]:bg-black/[0.02] data-[te-select-option-disabled]:text-gray-400 data-[te-select-option-disabled]:cursor-default group-data-[te-select-option-group-ref]/opt:pl-7 dark:text-gray-200 dark:hover:[&:not([data-te-select-option-disabled])]:bg-white/30 dark:data-[te-input-state-active]:bg-white/30 dark:data-[te-select-option-selected]:data-[te-input-state-active]:bg-white/30 dark:data-[te-select-option-disabled]:text-gray-400 dark:data-[te-input-multiple-active]:bg-white/30",selectOptionGroup:"group/opt",selectOptionGroupLabel:"flex flex-row items-center w-full px-4 truncate bg-transparent text-black/50 select-none dark:text-gray-300",selectOptionIcon:"w-7 h-7 rounded-full",selectOptionSecondaryText:"block text-[0.8rem] text-gray-500 dark:text-gray-300",selectOptionText:"group",selectValidationValid:"hidden absolute -mt-3 w-auto text-sm text-green-600 cursor-pointer group-data-[te-was-validated]/validation:peer-valid:block",selectValidationInvalid:"hidden absolute -mt-3 w-auto text-sm text-[rgb(220,76,100)] cursor-pointer group-data-[te-was-validated]/validation:peer-invalid:block"},$x={dropdown:"string",formCheckInput:"string",formOutline:"string",initialized:"string",inputGroup:"string",noResult:"string",optionsList:"string",optionsWrapper:"string",optionsWrapperScrollbar:"string",selectArrow:"string",selectArrowDefault:"string",selectArrowLg:"string",selectArrowSm:"string",selectClearBtn:"string",selectClearBtnDefault:"string",selectClearBtnLg:"string",selectClearBtnSm:"string",selectDropdownContainer:"string",selectFakeValue:"string",selectFilterInput:"string",selectInput:"string",selectInputSizeDefault:"string",selectInputSizeLg:"string",selectInputSizeSm:"string",selectLabel:"string",selectLabelSizeDefault:"string",selectLabelSizeLg:"string",selectLabelSizeSm:"string",selectOption:"string",selectOptionGroup:"string",selectOptionGroupLabel:"string",selectOptionIcon:"string",selectOptionSecondaryText:"string",selectOptionText:"string"};class Xs{constructor(t,e,s){this._element=t,this._config=this._getConfig(e),this._classes=this._getClasses(s),this._config.selectPlaceholder&&!this._config.multiple&&this._addPlaceholderOption(),this._optionsToRender=this._getOptionsToRender(t),this._plainOptions=this._getPlainOptions(this._optionsToRender),this._filteredOptionsList=null,this._selectionModel=new Vy(this.multiple),this._activeOptionIndex=-1,this._activeOption=null,this._wrapperId=Gt("select-wrapper-"),this._dropdownContainerId=Gt("select-dropdown-container-"),this._selectAllId=Gt("select-all-"),this._debounceTimeoutId=null,this._dropdownHeight=this._config.selectOptionHeight*this._config.selectVisibleOptions,this._popper=null,this._input=null,this._label=m.next(this._element,xx)[0],this._notch=null,this._fakeValue=null,this._isFakeValueActive=!1,this._customContent=m.next(t,kx)[0],this._toggleButton=null,this._elementToggle=null,this._wrapper=null,this._inputEl=null,this._dropdownContainer=null,this._container=null,this._selectAllOption=null,this._init(),this._mutationObserver=null,this._isOpen=!1,this._addMutationObserver(),this._element&&M.setData(t,js,this)}static get NAME(){return Ka}get filterInput(){return m.findOne(Tx,this._dropdownContainer)}get dropdown(){return m.findOne(Ex,this._dropdownContainer)}get optionsList(){return m.findOne(eu,this._dropdownContainer)}get optionsWrapper(){return m.findOne(Cx,this._dropdownContainer)}get clearButton(){return m.findOne(wx,this._wrapper)}get options(){return this._filteredOptionsList?this._filteredOptionsList:this._plainOptions}get value(){return this.multiple?this._selectionModel.values:this._selectionModel.value}get multiple(){return this._config.multiple}get hasSelectAll(){return this.multiple&&this._config.selectAll}get hasSelection(){return this._selectionModel.selection||this._selectionModel.selections.length>0}_getConfig(t){const e=_.getDataAttributes(this._element);return t={...Ix,...e,...t},this._element.hasAttribute("multiple")&&(t.multiple=!0),this._element.hasAttribute("disabled")&&(t.disabled=!0),this._element.tabIndex&&(t.tabIndex=this._element.getAttribute("tabIndex")),P(Ka,t,Mx),t}_getClasses(t){const e=_.getDataClassAttributes(this._element);return t={...Lx,...e,...t},P(Ka,t,$x),t}_addPlaceholderOption(){const t=new Option("","",!0,!0);t.hidden=!0,t.selected=!0,this._element.prepend(t)}_getOptionsToRender(t){const e=[];return t.childNodes.forEach(n=>{if(n.nodeName==="OPTGROUP"){const o={id:Gt("group-"),label:n.label,disabled:n.hasAttribute("disabled"),hidden:n.hasAttribute("hidden"),options:[]};n.childNodes.forEach(a=>{a.nodeName==="OPTION"&&o.options.push(this._createOptionObject(a,o))}),e.push(o)}else n.nodeName==="OPTION"&&e.push(this._createOptionObject(n))}),e}_getPlainOptions(t){if(!m.findOne("optgroup",this._element))return t;const s=[];return t.forEach(n=>{Object.prototype.hasOwnProperty.call(n,"options")?n.options.forEach(r=>{s.push(r)}):s.push(n)}),s}_createOptionObject(t,e={}){const s=Gt("option-"),n=e.id?e.id:null,o=e.disabled?e.disabled:!1,r=t.selected||t.hasAttribute(Us),a=t.hasAttribute("disabled")||o,l=t.hasAttribute("hidden")||e&&e.hidden,c=this.multiple,h=t.value,d=t.label,u=_.getDataAttribute(t,"selectSecondaryText"),p=_.getDataAttribute(t,"select-icon");return new Wd(s,t,c,h,d,r,a,l,u,n,p)}_getNavigationOptions(){const t=this.options.filter(e=>!e.hidden);return this.hasSelectAll?[this._selectAllOption,...t]:t}_init(){this._renderMaterialWrapper(),this._wrapper=m.findOne(`#${this._wrapperId}`),this._input=m.findOne(tu,this._wrapper),this._config.disabled&&this._input.setAttribute(Ua,"");const t=this._config.selectContainer;t==="body"?this._container=document.body:this._container=m.findOne(t),this._initOutlineInput(),this._setDefaultSelections(),this._updateInputValue(),this._appendFakeValue(),this._updateFakeLabelPosition(),this._updateLabelPosition(),this._updateClearButtonVisibility(),this._bindComponentEvents(),this.hasSelectAll&&(this._selectAllOption=this._createSelectAllOption()),this._dropdownContainer=Yd(this._dropdownContainerId,this._config,this._input.offsetWidth,this._dropdownHeight,this._selectAllOption,this._optionsToRender,this._customContent,this._classes),this._setFirstActiveOption(),this._listenToFocusChange()}_renderMaterialWrapper(){const t=ox(this._wrapperId,this._config,this._label,this._classes);this._element.parentNode.insertBefore(t,this._element),_.addClass(this._element,this._classes.initialized),t.appendChild(this._element)}_initOutlineInput(){const t=m.findOne(iu,this._wrapper);new Z(t,{inputFormWhite:this._config.selectFormWhite},this._classes).init(),this._notch=m.findOne(Xa,this._wrapper)}_bindComponentEvents(){this._listenToComponentKeydown(),this._listenToWrapperClick(),this._listenToClearBtnClick(),this._listenToClearBtnKeydown()}_setDefaultSelections(){this.options.forEach(t=>{t.selected&&this._selectionModel.select(t)})}_listenToComponentKeydown(){g.on(this._wrapper,"keydown",this._handleKeydown.bind(this))}_handleKeydown(t){this._isOpen&&!this._config.selectFilter?this._handleOpenKeydown(t):this._handleClosedKeydown(t)}_handleOpenKeydown(t){const e=t.keyCode,s=e===Hs||e===Ct&&t.altKey||e===Fs;if(e===Fs&&this._config.selectAutoSelect&&!this.multiple&&this._handleAutoSelection(this._activeOption),s){this.close(),this._input.focus();return}switch(e){case ut:this._setNextOptionActive(),this._scrollToOption(this._activeOption);break;case Ct:this._setPreviousOptionActive(),this._scrollToOption(this._activeOption);break;case ss:this._setFirstOptionActive(),this._scrollToOption(this._activeOption);break;case ns:this._setLastOptionActive(),this._scrollToOption(this._activeOption);break;case $t:t.preventDefault(),this._activeOption&&(this.hasSelectAll&&this._activeOptionIndex===0?this._handleSelectAll():this._handleSelection(this._activeOption));return;default:return}t.preventDefault()}_handleClosedKeydown(t){const e=t.keyCode;if(e===$t&&t.preventDefault(),(e===$t||e===ut&&t.altKey||e===ut&&this.multiple)&&this.open(),this.multiple)switch(e){case ut:this.open();break;case Ct:this.open();break;default:return}else switch(e){case ut:this._setNextOptionActive(),this._handleSelection(this._activeOption);break;case Ct:this._setPreviousOptionActive(),this._handleSelection(this._activeOption);break;case ss:this._setFirstOptionActive(),this._handleSelection(this._activeOption);break;case ns:this._setLastOptionActive(),this._handleSelection(this._activeOption);break;default:return}t.preventDefault()}_scrollToOption(t){if(!t)return;let e;const s=this.options.filter(h=>!h.hidden);this.hasSelectAll?e=s.indexOf(t)+1:e=s.indexOf(t);const n=this._getNumberOfGroupsBeforeOption(e),o=e+n,r=this.optionsWrapper,a=r.offsetHeight,l=this._config.selectOptionHeight,c=r.scrollTop;if(e>-1){const h=o*l,d=h+l>c+a;h!r.hidden),s=this._optionsToRender.filter(r=>!r.hidden),n=this.hasSelectAll?t-1:t;let o=0;for(let r=0;r<=n;r++)e[r].groupId&&s[o]&&s[o].id&&e[r].groupId===s[o].id&&o++;return o}_setNextOptionActive(){let t=this._activeOptionIndex+1;const e=this._getNavigationOptions();if(e[t]){for(;e[t].disabled;)if(t+=1,!e[t])return;this._updateActiveOption(e[t],t)}}_setPreviousOptionActive(){let t=this._activeOptionIndex-1;const e=this._getNavigationOptions();if(e[t]){for(;e[t].disabled;)if(t-=1,!e[t])return;this._updateActiveOption(e[t],t)}}_setFirstOptionActive(){const e=this._getNavigationOptions();this._updateActiveOption(e[0],0)}_setLastOptionActive(){const t=this._getNavigationOptions(),e=t.length-1;this._updateActiveOption(t[e],e)}_updateActiveOption(t,e){const s=this._activeOption;s&&s.removeActiveStyles(),t.setActiveStyles(),this._activeOptionIndex=e,this._activeOption=t}_listenToWrapperClick(){g.on(this._wrapper,"click",()=>{this.toggle()})}_listenToClearBtnClick(){g.on(this.clearButton,"click",t=>{t.preventDefault(),t.stopPropagation(),this._handleClear()})}_listenToClearBtnKeydown(){g.on(this.clearButton,"keydown",t=>{t.keyCode===$t&&(this._handleClear(),t.preventDefault(),t.stopPropagation())})}_handleClear(){if(this.multiple)this._selectionModel.clear(),this._deselectAllOptions(this.options),this.hasSelectAll&&this._updateSelectAllState();else{const t=this._selectionModel.selection;this._selectionModel.clear(),t.deselect()}this._fakeValue.innerHTML="",this._updateInputValue(),this._updateFakeLabelPosition(),this._updateLabelPosition(),this._updateClearButtonVisibility(),this._emitValueChangeEvent(null),this._emitNativeChangeEvent()}_listenToOptionsClick(){g.on(this.optionsWrapper,"click",t=>{if(t.target.hasAttribute(vx))return;const s=t.target.nodeName==="DIV"?t.target:m.closest(t.target,Ax);if(s.hasAttribute(yx)){this._handleSelectAll();return}const o=s.dataset.teId,r=this.options.find(a=>a.id===o);r&&!r.disabled&&this._handleSelection(r)})}_handleSelectAll(){this._selectAllOption.selected?(this._deselectAllOptions(this.options),this._selectAllOption.deselect()):(this._selectAllOptions(this.options),this._selectAllOption.select()),this._updateInputValue(),this._updateFakeLabelPosition(),this._updateLabelPosition(),this._updateClearButtonVisibility(),this._emitValueChangeEvent(this.value),this._emitNativeChangeEvent()}_selectAllOptions(t){t.forEach(e=>{!e.selected&&!e.disabled&&(this._selectionModel.select(e),e.select())})}_deselectAllOptions(t){t.forEach(e=>{e.selected&&!e.disabled&&(this._selectionModel.deselect(e),e.deselect())})}_handleSelection(t){this.multiple?(this._handleMultiSelection(t),this.hasSelectAll&&this._updateSelectAllState()):this._handleSingleSelection(t),this._updateInputValue(),this._updateFakeLabelPosition(),this._updateLabelPosition(),this._updateClearButtonVisibility()}_handleAutoSelection(t){this._singleOptionSelect(t),this._updateInputValue(),this._updateFakeLabelPosition(),this._updateLabelPosition(),this._updateClearButtonVisibility()}_handleSingleSelection(t){this._singleOptionSelect(t),this.close(),this._input.focus()}_singleOptionSelect(t){const e=this._selectionModel.selections[0];e&&e!==t&&(this._selectionModel.deselect(e),e.deselect(),e.node.setAttribute(Us,!1),g.trigger(this._element,qd,{value:e.value})),(!e||e&&t!==e)&&(this._selectionModel.select(t),t.select(),t.node.setAttribute(Us,!0),g.trigger(this._element,Gd,{value:t.value}),this._emitValueChangeEvent(this.value),this._emitNativeChangeEvent())}_handleMultiSelection(t){t.selected?(this._selectionModel.deselect(t),t.deselect(),t.node.setAttribute(Us,!1),g.trigger(this._element,qd,{value:t.value})):(this._selectionModel.select(t),t.select(),t.node.setAttribute(Us,!0),g.trigger(this._element,Gd,{value:t.value})),this._emitValueChangeEvent(this.value),this._emitNativeChangeEvent()}_emitValueChangeEvent(t){g.trigger(this._element,mx,{value:t})}_emitNativeChangeEvent(){g.trigger(this._element,bx)}_updateInputValue(){const t=this.multiple?this._selectionModel.labels:this._selectionModel.label;let e;this.multiple&&this._config.selectDisplayedLabels!==-1&&this._selectionModel.selections.length>this._config.selectDisplayedLabels?e=`${this._selectionModel.selections.length} ${this._config.selectOptionsSelectedLabel}`:e=t,!this.multiple&&!this._isSelectionValid(this._selectionModel.selection)?this._input.value="":this._isLabelEmpty(this._selectionModel.selection)?this._input.value=" ":e?this._input.value=e:this.multiple||!this._optionsToRender[0]?this._input.value="":this._input.value=this._optionsToRender[0].label}_isSelectionValid(t){return!(t&&(t.disabled||t.value===""))}_isLabelEmpty(t){return!!(t&&t.label==="")}_appendFakeValue(){if(!this._selectionModel.selection||this._selectionModel._multiple)return;const t=this._selectionModel.selection.label;this._fakeValue=fx(t,this._classes),m.findOne(iu,this._wrapper).appendChild(this._fakeValue)}_updateLabelPosition(){const t=this._element.hasAttribute(Zd),e=this._input.value!=="";this._label&&(t&&(e||this._isOpen||this._isFakeValueActive)?(this._label.setAttribute(xt,""),this._notch.setAttribute(xt,"")):(this._label.removeAttribute(xt),this._notch.removeAttribute(xt,"")))}_updateLabelPositionWhileClosing(){this._label&&(this._input.value!==""||this._isFakeValueActive?(this._label.setAttribute(xt,""),this._notch.setAttribute(xt,"")):(this._label.removeAttribute(xt),this._notch.removeAttribute(xt)))}_updateFakeLabelPosition(){this._fakeValue&&(this._input.value===""&&this._fakeValue.innerHTML!==""&&!this._config.selectPlaceholder?(this._isFakeValueActive=!0,this._fakeValue.setAttribute(xt,"")):(this._isFakeValueActive=!1,this._fakeValue.removeAttribute(xt)))}_updateClearButtonVisibility(){if(!this.clearButton)return;this._selectionModel.selection||this._selectionModel.selections.length>0?_.addStyle(this.clearButton,{display:"block"}):_.addStyle(this.clearButton,{display:"none"})}_updateSelectAllState(){const t=this._selectAllOption.selected,e=ja(this.options);!e&&t?this._selectAllOption.deselect():e&&!t&&this._selectAllOption.select()}toggle(){this._isOpen?this.close():this.open()}open(){const t=this._config.disabled,e=g.trigger(this._element,gx);this._isOpen||t||e.defaultPrevented||(this._openDropdown(),this._updateDropdownWidth(),this._setFirstActiveOption(),this._scrollToOption(this._activeOption),this._config.selectFilter&&(setTimeout(()=>{this.filterInput.focus()},0),this._listenToSelectSearch(),this._listenToDropdownKeydown()),this._listenToOptionsClick(),this._listenToOutsideClick(),this._listenToWindowResize(),this._isOpen=!0,this._updateLabelPosition(),this._setInputActiveStyles())}_openDropdown(){this._popper=pi(this._input,this._dropdownContainer,{placement:"bottom-start",modifiers:[{name:"offset",options:{offset:[0,1]}}]}),this._container.appendChild(this._dropdownContainer),setTimeout(()=>{this.dropdown.setAttribute(Jd,"")},0)}_updateDropdownWidth(){const t=this._input.offsetWidth;_.addStyle(this._dropdownContainer,{width:`${t}px`})}_setFirstActiveOption(){const t=this._getNavigationOptions(),e=this._activeOption;e&&e.removeActiveStyles();const s=this.multiple?this._selectionModel.selections[0]:this._selectionModel.selection;s?(this._activeOption=s,s.setActiveStyles(),this._activeOptionIndex=t.findIndex(n=>n===s)):(this._activeOption=null,this._activeOptionIndex=-1)}_setInputActiveStyles(){this._input.setAttribute(Xe,""),m.findOne(Xa,this._wrapper).setAttribute(Xe,"")}_listenToWindowResize(){g.on(window,"resize",this._handleWindowResize.bind(this))}_handleWindowResize(){this._dropdownContainer&&this._updateDropdownWidth()}_listenToSelectSearch(){this.filterInput.addEventListener("input",t=>{const e=t.target.value,s=this._config.selectFilterDebounce;this._debounceFilter(e,s)})}_debounceFilter(t,e){this._debounceTimeoutId&&clearTimeout(this._debounceTimeoutId),this._debounceTimeoutId=setTimeout(()=>{this._filterOptions(t)},e)}_filterOptions(t){const e=[];this._optionsToRender.forEach(o=>{const r=Object.prototype.hasOwnProperty.call(o,"options"),a=!r&&o.label.toLowerCase().includes(t.toLowerCase()),l={};r&&(l.label=o.label,l.options=this._filter(t,o.options),l.options.length>0&&e.push(l)),a&&e.push(o)});const s=this._config.selectNoResultText!=="",n=e.length!==0;if(n)this._updateOptionsListTemplate(e),this._popper.forceUpdate(),this._filteredOptionsList=this._getPlainOptions(e),this.hasSelectAll&&this._updateSelectAllState(),this._setFirstActiveOption();else if(!n&&s){const o=this._getNoResultTemplate();this.optionsWrapper.innerHTML=o}}_updateOptionsListTemplate(t){const e=m.findOne(eu,this._dropdownContainer)||m.findOne(Sx,this._dropdownContainer),s=jd(t,this._selectAllOption,this._config,this._classes);this.optionsWrapper.removeChild(e),this.optionsWrapper.appendChild(s)}_getNoResultTemplate(){return`
${this._config.selectNoResultText}
`}_filter(t,e){const s=t.toLowerCase();return e.filter(n=>n.label.toLowerCase().includes(s))}_listenToDropdownKeydown(){g.on(this.dropdown,"keydown",this._handleOpenKeydown.bind(this))}_listenToOutsideClick(){this._outsideClick=this._handleOutSideClick.bind(this),g.on(document,"click",this._outsideClick)}_listenToFocusChange(t=!0){if(t===!1){g.off(this._input,"focus",()=>this._notch.setAttribute(Xe,"")),g.off(this._input,"blur",()=>this._notch.removeAttribute(Xe));return}g.on(this._input,"focus",()=>this._notch.setAttribute(Xe,"")),g.on(this._input,"blur",()=>this._notch.removeAttribute(Xe))}_handleOutSideClick(t){const e=this._wrapper&&this._wrapper.contains(t.target),s=t.target===this._dropdownContainer,n=this._dropdownContainer&&this._dropdownContainer.contains(t.target);let o;this._toggleButton||(this._elementToggle=m.find(Ox)),this._elementToggle&&this._elementToggle.forEach(r=>{const a=_.getDataAttribute(r,"select-toggle");(a===this._element.id||this._element.classList.contains(a))&&(this._toggleButton=r,o=this._toggleButton.contains(t.target))}),!e&&!s&&!n&&!o&&this.close()}close(){const t=g.trigger(this._element,_x);!this._isOpen||t.defaultPrevented||(this._config.selectFilter&&this.hasSelectAll&&(this._resetFilterState(),this._updateOptionsListTemplate(this._optionsToRender),this._config.multiple&&this._updateSelectAllState()),this._removeDropdownEvents(),this.dropdown.removeAttribute(Jd),setTimeout(()=>{this._input.removeAttribute(Xe),this._input.blur(),m.findOne(Xa,this._wrapper).removeAttribute(Xe),this._label&&!this.hasSelection&&(this._label.removeAttribute(xt),this._notch.setAttribute(xt,""),this._input.removeAttribute(xt),this._notch.removeAttribute(xt)),this._updateLabelPositionWhileClosing()},0),setTimeout(()=>{this._container&&this._dropdownContainer.parentNode===this._container&&this._container.removeChild(this._dropdownContainer),this._popper.destroy(),this._isOpen=!1,g.off(this.dropdown,"transitionend")},Dx))}_resetFilterState(){this.filterInput.value="",this._filteredOptionsList=null}_removeDropdownEvents(){g.off(document,"click",this._outsideClick),this._config.selectFilter&&g.off(this.dropdown,"keydown"),g.off(this.optionsWrapper,"click")}_addMutationObserver(){this._mutationObserver=new MutationObserver(()=>{this._wrapper&&(this._updateSelections(),this._updateDisabledState())}),this._observeMutationObserver()}_updateSelections(){this._optionsToRender=this._getOptionsToRender(this._element),this._plainOptions=this._getPlainOptions(this._optionsToRender),this._selectionModel.clear(),this._setDefaultSelections(),this._updateInputValue(),this._updateFakeLabelPosition(),this._updateLabelPosition(),this._updateClearButtonVisibility(),this.hasSelectAll&&this._updateSelectAllState();const t=this._config.filter&&this.filterInput&&this.filterInput.value;this._isOpen&&!t?(this._updateOptionsListTemplate(this._optionsToRender),this._setFirstActiveOption()):this._isOpen&&t?(this._filterOptions(this.filterInput.value),this._setFirstActiveOption()):this._dropdownContainer=Yd(this._dropdownContainerId,this._config,this._input.offsetWidth,this._dropdownHeight,this._selectAllOption,this._optionsToRender,this._customContent,this._classes)}_updateDisabledState(){const t=m.findOne(tu,this._wrapper);this._element.hasAttribute("disabled")?(this._config.disabled=!0,t.setAttribute("disabled",""),t.setAttribute(Ua,"")):(this._config.disabled=!1,t.removeAttribute("disabled"),t.removeAttribute(Ua))}_observeMutationObserver(){this._mutationObserver&&this._mutationObserver.observe(this._element,{attributes:!0,childList:!0,characterData:!0,subtree:!0})}_disconnectMutationObserver(){this.mutationObserver&&(this._mutationObserver.disconnect(),this._mutationObserver=null)}_createSelectAllOption(){const t=this._selectAllId,e=null,s=!0,n="select-all",o=this._config.selectAllLabel,r=ja(this.options),a=!1,l=!1,c=null,h=null,d=null;return new Wd(t,e,s,n,o,r,a,l,c,h,d)}dispose(){this._removeComponentEvents(),this._destroyMaterialSelect(),this._listenToFocusChange(!1),M.removeData(this._element,js)}_removeComponentEvents(){g.off(this.input,"click"),g.off(this.wrapper,this._handleKeydown.bind(this)),g.off(this.clearButton,"click"),g.off(this.clearButton,"keydown"),g.off(window,"resize",this._handleWindowResize.bind(this))}_destroyMaterialSelect(){this._isOpen&&this.close(),this._destroyMaterialTemplate()}_destroyMaterialTemplate(){const t=this._wrapper.parentNode,e=m.find("label",this._wrapper);t.appendChild(this._element),e.forEach(s=>{t.appendChild(s)}),e.forEach(s=>{s.removeAttribute(xt)}),_.removeClass(this._element,this._classes.initialized),this._element.removeAttribute(Zd),t.removeChild(this._wrapper)}setValue(t){this.options.filter(s=>s.selected).forEach(s=>s.nativeOption.selected=!1),Array.isArray(t)?t.forEach(s=>{this._selectByValue(s)}):this._selectByValue(t),this._updateSelections()}_selectByValue(t){const e=this.options.find(s=>s.value===t);return e?(e.nativeOption.selected=!0,!0):!1}static jQueryInterface(t,e){return this.each(function(){let s=M.getData(this,js);const n=typeof t=="object"&&t;if(!(!s&&/dispose/.test(t))&&(s||(s=new Xs(this,n)),typeof t=="string")){if(typeof s[t]>"u")throw new TypeError(`No method named "${t}"`);s[t](e)}})}static getInstance(t){return M.getData(t,js)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,typeof e=="object"?e:null)}}const Rx=({inputID:i,labelText:t},e)=>`
+`,lE=s=>{s.code==="Tab"||s.code==="Esc"||s.preventDefault()};function Jo(s,t,e,i,n){t.selectSize==="default"&&g.addClass(s,e),t.selectSize==="sm"&&g.addClass(s,i),t.selectSize==="lg"&&g.addClass(s,n)}function cE(s,t,e,i,n){const o=document.createElement("div");o.setAttribute("id",s),o.setAttribute(XT,"");const r=$("div");r.setAttribute(UT,""),g.addClass(r,i.formOutline);const a=$("input"),l=t.selectFilter?"combobox":"listbox",c=t.multiple?"true":"false",h=t.disabled?"true":"false";a.setAttribute(GT,""),g.addClass(a,i.selectInput),Jo(a,t,i.selectInputSizeDefault,i.selectInputSizeSm,i.selectInputSizeLg),t.selectFormWhite&&g.addClass(a,i.selectInputWhite),a.setAttribute("type","text"),a.setAttribute("role",l),a.setAttribute("aria-multiselectable",c),a.setAttribute("aria-disabled",h),a.setAttribute("aria-haspopup","true"),a.setAttribute("aria-expanded",!1),a.name=n,t.tabIndex&&a.setAttribute("tabIndex",t.tabIndex),t.disabled&&a.setAttribute("disabled",""),t.selectPlaceholder!==""&&a.setAttribute("placeholder",t.selectPlaceholder),t.selectValidation?(g.addStyle(a,{"pointer-events":"none","caret-color":"transparent"}),g.addStyle(r,{cursor:"pointer"})):a.setAttribute("readonly","true"),t.selectValidation&&(a.setAttribute("required","true"),a.setAttribute("aria-required","true"),a.addEventListener("keydown",lE));const d=$("div");g.addClass(d,i.selectValidationValid);const u=document.createTextNode(`${t.selectValidFeedback}`);d.appendChild(u);const p=$("div");g.addClass(p,i.selectValidationInvalid);const f=document.createTextNode(`${t.selectInvalidFeedback}`);p.appendChild(f);const b=$("span");b.setAttribute(qT,""),g.addClass(b,i.selectClearBtn),Jo(b,t,i.selectClearBtnDefault,i.selectClearBtnSm,i.selectClearBtnLg),t.selectFormWhite&&g.addClass(b,i.selectClearBtnWhite);const v=document.createTextNode("✕");b.appendChild(v),b.setAttribute("tabindex","0");const y=$("span");return g.addClass(y,i.selectArrow),Jo(y,t,i.selectArrowDefault,i.selectArrowSm,i.selectArrowLg),t.selectFormWhite&&g.addClass(y,i.selectArrowWhite),y.innerHTML=aE,r.appendChild(a),e&&(g.addClass(e,i.selectLabel),Jo(e,t,i.selectLabelSizeDefault,i.selectLabelSizeSm,i.selectLabelSizeLg),t.selectFormWhite&&g.addClass(e,i.selectLabelWhite),r.appendChild(e)),t.selectValidation&&(r.appendChild(d),r.appendChild(p)),t.selectClearButton&&r.appendChild(b),r.appendChild(y),o.appendChild(r),o}function Lu(s,t,e,i,n,o,r,a){const l=document.createElement("div");l.setAttribute(ZT,""),g.addClass(l,a.selectDropdownContainer),l.setAttribute("id",`${s}`),l.style.width=`${e}px`;const c=document.createElement("div");c.setAttribute("tabindex",0),c.setAttribute(QT,""),g.addClass(c,a.dropdown);const h=$("div");h.setAttribute(JT,""),g.addClass(h,a.optionsWrapper),g.addClass(h,a.optionsWrapperScrollbar),h.style.maxHeight=`${i}px`;const d=$u(o,n,t,a);return h.appendChild(d),t.selectFilter&&c.appendChild(hE(t.selectSearchPlaceholder,a)),c.appendChild(h),r&&c.appendChild(r),l.appendChild(c),l}function $u(s,t,e,i){const n=$("div");n.setAttribute(tE,""),g.addClass(n,i.optionsList);let o;return e.multiple?o=uE(s,t,e,i):o=dE(s,e,i),o.forEach(r=>{n.appendChild(r)}),n}function hE(s,t){const e=$("div");g.addClass(e,t.inputGroup);const i=$("input");return i.setAttribute(eE,""),g.addClass(i,t.selectFilterInput),i.placeholder=s,i.setAttribute("role","searchbox"),i.setAttribute("type","text"),e.appendChild(i),e}function dE(s,t,e){return Pu(s,t,e)}function uE(s,t,e,i){let n=null;e.selectAll&&(n=pE(t,s,e,i));const o=Pu(s,e,i);return n?[n,...o]:o}function Pu(s,t,e){const i=[];return s.forEach(n=>{if(Object.prototype.hasOwnProperty.call(n,"options")){const r=mE(n,t,e);i.push(r)}else i.push(Ru(n,t,e))}),i}function pE(s,t,e,i){const n=xl(t),o=$("div");return o.setAttribute(Iu,""),g.addClass(o,i.selectOption),o.setAttribute(iE,""),g.addStyle(o,{height:`${e.selectOptionHeight}px`}),o.setAttribute("role","option"),o.setAttribute("aria-selected",n),n&&o.setAttribute(Mu,""),o.appendChild(Nu(s,e,i)),s.setNode(o),o}function Ru(s,t,e){if(s.node)return s.node;const i=$("div");return i.setAttribute(Iu,""),g.addClass(i,e.selectOption),g.addStyle(i,{height:`${t.selectOptionHeight}px`}),g.setDataAttribute(i,"id",s.id),i.setAttribute("role","option"),i.setAttribute("aria-selected",s.selected),i.setAttribute("aria-disabled",s.disabled),s.selected&&i.setAttribute(Mu,""),s.disabled&&i.setAttribute("data-te-select-option-disabled",!0),s.hidden&&g.addClass(i,"hidden"),i.appendChild(Nu(s,t,e)),s.icon&&i.appendChild(gE(s,e)),s.setNode(i),i}function Nu(s,t,e){const i=$("span");i.setAttribute(sE,""),g.addClass(i,e.selectOptionText);const n=document.createTextNode(s.label);return t.multiple&&i.appendChild(_E(s,e)),i.appendChild(n),(s.secondaryText||typeof s.secondaryText=="number")&&i.appendChild(fE(s.secondaryText,e)),i}function fE(s,t){const e=$("span");g.addClass(e,t.selectOptionSecondaryText);const i=document.createTextNode(s);return e.appendChild(i),e}function _E(s,t){const e=$("input");e.setAttribute("type","checkbox"),g.addClass(e,t.formCheckInput),e.setAttribute(nE,"");const i=$("label");return s.selected&&e.setAttribute("checked",!0),s.disabled&&e.setAttribute("disabled",!0),e.appendChild(i),e}function gE(s,t){const e=$("span"),i=$("img");return g.addClass(i,t.selectOptionIcon),i.src=s.icon,e.appendChild(i),e}function mE(s,t,e){const i=$("div");i.setAttribute(oE,""),g.addClass(i,e.selectOptionGroup),i.setAttribute("role","group"),i.setAttribute("id",s.id),s.hidden&&g.addClass(i,"hidden");const n=$("label");return n.setAttribute(rE,""),g.addClass(n,e.selectOptionGroupLabel),g.addStyle(n,{height:`${t.selectOptionHeight}px`}),n.setAttribute("for",s.id),n.textContent=s.label,i.appendChild(n),s.options.forEach(o=>{i.appendChild(Ru(o,t,e))}),i}function bE(s,t){const e=$("div");return e.innerHTML=s,g.addClass(e,t.selectLabel),g.addClass(e,t.selectFakeValue),e}const Cl="select",Qs="te.select",Js=`.${Qs}`,vE=`close${Js}`,yE=`open${Js}`,Bu=`optionSelect${Js}`,Hu=`optionDeselect${Js}`,TE=`valueChange${Js}`,EE="change",Vu="data-te-select-init",Fu="data-te-select-no-results-ref",Wu="data-te-select-open",Tt="data-te-input-state-active",Xe="data-te-input-focused",Al="data-te-input-disabled",xE="data-te-select-option-group-label-ref",CE="data-te-select-option-all-ref",tn="data-te-select-selected",AE="[data-te-select-label-ref]",zu="[data-te-select-input-ref]",wE="[data-te-select-input-filter-ref]",kE="[data-te-select-dropdown-ref]",SE="[data-te-select-options-wrapper-ref]",ju="[data-te-select-options-list-ref]",OE="[data-te-select-option-ref]",DE="[data-te-select-clear-btn-ref]",IE="[data-te-select-custom-content-ref]",ME=`[${Fu}]`,Yu="[data-te-select-form-outline-ref]",LE="[data-te-select-toggle]",wl="[data-te-input-notch-ref]",$E=200,PE={selectAutoSelect:!1,selectContainer:"body",selectClearButton:!1,disabled:!1,selectDisplayedLabels:5,selectFormWhite:!1,multiple:!1,selectOptionsSelectedLabel:"options selected",selectOptionHeight:38,selectAll:!0,selectAllLabel:"Select all",selectSearchPlaceholder:"Search...",selectSize:"default",selectVisibleOptions:5,selectFilter:!1,selectFilterDebounce:300,selectNoResultText:"No results",selectValidation:!1,selectValidFeedback:"Valid",selectInvalidFeedback:"Invalid",selectPlaceholder:""},RE={selectAutoSelect:"boolean",selectContainer:"string",selectClearButton:"boolean",disabled:"boolean",selectDisplayedLabels:"number",selectFormWhite:"boolean",multiple:"boolean",selectOptionsSelectedLabel:"string",selectOptionHeight:"number",selectAll:"boolean",selectAllLabel:"string",selectSearchPlaceholder:"string",selectSize:"string",selectVisibleOptions:"number",selectFilter:"boolean",selectFilterDebounce:"number",selectNoResultText:"string",selectValidation:"boolean",selectValidFeedback:"string",selectInvalidFeedback:"string",selectPlaceholder:"string"},NE={dropdown:"relative outline-none min-w-[100px] m-0 scale-[0.8] opacity-0 bg-white shadow-[0_2px_5px_0_rgba(0,0,0,0.16),_0_2px_10px_0_rgba(0,0,0,0.12)] transition duration-200 motion-reduce:transition-none data-[te-select-open]:scale-100 data-[te-select-open]:opacity-100 dark:bg-zinc-700",formCheckInput:"relative float-left mt-[0.15rem] mr-[8px] h-[1.125rem] w-[1.125rem] appearance-none rounded-[0.25rem] border-[0.125rem] border-solid border-neutral-300 dark:border-neutral-600 outline-none before:pointer-events-none before:absolute before:h-[0.875rem] before:w-[0.875rem] before:scale-0 before:rounded-full before:bg-transparent before:opacity-0 before:shadow-[0px_0px_0px_13px_transparent] before:content-[''] checked:border-primary dark:checked:border-primary checked:bg-primary dark:checked:bg-primary checked:before:opacity-[0.16] checked:after:absolute checked:after:ml-[0.25rem] checked:after:-mt-px checked:after:block checked:after:h-[0.8125rem] checked:after:w-[0.375rem] checked:after:rotate-45 checked:after:border-[0.125rem] checked:after:border-t-0 checked:after:border-l-0 checked:after:border-solid checked:after:border-white checked:after:bg-transparent checked:after:content-[''] hover:cursor-pointer hover:before:opacity-[0.04] hover:before:shadow-[0px_0px_0px_13px_rgba(0,0,0,0.6)] focus:shadow-none focus:transition-[border-color_0.2s] focus:before:scale-100 focus:before:opacity-[0.12] focus:before:shadow-[0px_0px_0px_13px_rgba(0,0,0,0.6)] dark:focus:before:shadow-[0px_0px_0px_13px_rgba(255,255,255,0.4)] focus:before:transition-[box-shadow_0.2s,transform_0.2s] focus:after:absolute focus:after:z-[1] focus:after:block focus:after:h-[0.875rem] focus:after:w-[0.875rem] focus:after:rounded-[0.125rem] focus:after:content-[''] checked:focus:before:scale-100 checked:focus:before:shadow-[0px_0px_0px_13px_#3b71ca] dark:checked:focus:before:shadow-[0px_0px_0px_13px_#3b71ca] checked:focus:before:transition-[box-shadow_0.2s,transform_0.2s] checked:focus:after:ml-[0.25rem] checked:focus:after:-mt-px checked:focus:after:h-[0.8125rem] checked:focus:after:w-[0.375rem] checked:focus:after:rotate-45 checked:focus:after:rounded-none checked:focus:after:border-[0.125rem] checked:focus:after:border-t-0 checked:focus:after:border-l-0 checked:focus:after:border-solid checked:focus:after:border-white checked:focus:after:bg-transparent",formOutline:"relative",initialized:"hidden",inputGroup:"flex items-center whitespace-nowrap p-2.5 text-center text-base font-normal leading-[1.6] text-gray-700 dark:bg-zinc-800 dark:text-gray-200 dark:placeholder:text-gray-200",noResult:"flex items-center px-4",optionsList:"list-none m-0 p-0",optionsWrapper:"overflow-y-auto",optionsWrapperScrollbar:"[&::-webkit-scrollbar]:w-1 [&::-webkit-scrollbar]:h-1 [&::-webkit-scrollbar-button]:block [&::-webkit-scrollbar-button]:h-0 [&::-webkit-scrollbar-button]:bg-transparent [&::-webkit-scrollbar-track-piece]:bg-transparent [&::-webkit-scrollbar-track-piece]:rounded-none [&::-webkit-scrollbar-track-piece]: [&::-webkit-scrollbar-track-piece]:rounded-l [&::-webkit-scrollbar-thumb]:h-[50px] [&::-webkit-scrollbar-thumb]:bg-[#999] [&::-webkit-scrollbar-thumb]:rounded",selectArrow:"absolute right-3 text-[0.8rem] cursor-pointer peer-focus:text-primary peer-data-[te-input-focused]:text-primary group-data-[te-was-validated]/validation:peer-valid:text-green-600 group-data-[te-was-validated]/validation:peer-invalid:text-[rgb(220,76,100)] w-5 h-5",selectArrowWhite:"text-gray-50 peer-focus:!text-white peer-data-[te-input-focused]:!text-white",selectArrowDefault:"top-2",selectArrowLg:"top-[13px]",selectArrowSm:"top-1",selectClearBtn:"absolute top-2 right-9 text-black cursor-pointer focus:text-primary outline-none dark:text-gray-200",selectClearBtnWhite:"!text-gray-50",selectClearBtnDefault:"top-2 text-base",selectClearBtnLg:"top-[11px] text-base",selectClearBtnSm:"top-1 text-[0.8rem]",selectDropdownContainer:"z-[1070]",selectFakeValue:"transform-none hidden data-[te-input-state-active]:block",selectFilterInput:"relative m-0 block w-full min-w-0 flex-auto rounded border border-solid border-gray-300 bg-transparent bg-clip-padding px-3 py-1.5 text-base font-normal text-gray-700 transition duration-300 ease-in-out motion-reduce:transition-none focus:border-primary focus:text-gray-700 focus:shadow-te-primary focus:outline-none dark:text-gray-200 dark:placeholder:text-gray-200",selectInput:"peer block min-h-[auto] w-full rounded border-0 bg-transparent outline-none transition-all duration-200 ease-linear focus:placeholder:opacity-100 data-[te-input-state-active]:placeholder:opacity-100 motion-reduce:transition-none dark:text-gray-200 dark:placeholder:text-gray-200 [&:not([data-te-input-placeholder-active])]:placeholder:opacity-0 cursor-pointer data-[te-input-disabled]:bg-[#e9ecef] data-[te-input-disabled]:cursor-default group-data-[te-was-validated]/validation:mb-4 dark:data-[te-input-disabled]:bg-zinc-600",selectInputWhite:"!text-gray-50",selectInputSizeDefault:"py-[0.32rem] px-3 leading-[1.6]",selectInputSizeLg:"py-[0.32rem] px-3 leading-[2.15]",selectInputSizeSm:"py-[0.33rem] px-3 text-xs leading-[1.5]",selectLabel:"pointer-events-none absolute top-0 left-3 mb-0 max-w-[90%] origin-[0_0] truncate text-gray-500 transition-all duration-200 ease-out peer-focus:scale-[0.8] peer-focus:text-primary peer-data-[te-input-state-active]:scale-[0.8] motion-reduce:transition-none dark:text-gray-200 dark:peer-focus:text-gray-200 data-[te-input-state-active]:scale-[0.8] dark:peer-focus:text-primary",selectLabelWhite:"!text-gray-50",selectLabelSizeDefault:"pt-[0.37rem] leading-[1.6] peer-focus:-translate-y-[0.9rem] peer-data-[te-input-state-active]:-translate-y-[0.9rem] data-[te-input-state-active]:-translate-y-[0.9rem]",selectLabelSizeLg:"pt-[0.37rem] leading-[2.15] peer-focus:-translate-y-[1.15rem] peer-data-[te-input-state-active]:-translate-y-[1.15rem] data-[te-input-state-active]:-translate-y-[1.15rem]",selectLabelSizeSm:"pt-[0.37rem] text-xs leading-[1.5] peer-focus:-translate-y-[0.75rem] peer-data-[te-input-state-active]:-translate-y-[0.75rem] data-[te-input-state-active]:-translate-y-[0.75rem]",selectOption:"flex flex-row items-center justify-between w-full px-4 truncate text-gray-700 bg-transparent select-none cursor-pointer data-[te-input-multiple-active]:bg-black/5 hover:[&:not([data-te-select-option-disabled])]:bg-black/5 data-[te-input-state-active]:bg-black/5 data-[te-select-option-selected]:data-[te-input-state-active]:bg-black/5 data-[te-select-selected]:data-[te-select-option-disabled]:cursor-default data-[te-select-selected]:data-[te-select-option-disabled]:text-gray-400 data-[te-select-selected]:data-[te-select-option-disabled]:bg-transparent data-[te-select-option-selected]:bg-black/[0.02] data-[te-select-option-disabled]:text-gray-400 data-[te-select-option-disabled]:cursor-default group-data-[te-select-option-group-ref]/opt:pl-7 dark:text-gray-200 dark:hover:[&:not([data-te-select-option-disabled])]:bg-white/30 dark:data-[te-input-state-active]:bg-white/30 dark:data-[te-select-option-selected]:data-[te-input-state-active]:bg-white/30 dark:data-[te-select-option-disabled]:text-gray-400 dark:data-[te-input-multiple-active]:bg-white/30",selectOptionGroup:"group/opt",selectOptionGroupLabel:"flex flex-row items-center w-full px-4 truncate bg-transparent text-black/50 select-none dark:text-gray-300",selectOptionIcon:"w-7 h-7 rounded-full",selectOptionSecondaryText:"block text-[0.8rem] text-gray-500 dark:text-gray-300",selectOptionText:"group",selectValidationValid:"hidden absolute -mt-3 w-auto text-sm text-green-600 cursor-pointer group-data-[te-was-validated]/validation:peer-valid:block",selectValidationInvalid:"hidden absolute -mt-3 w-auto text-sm text-[rgb(220,76,100)] cursor-pointer group-data-[te-was-validated]/validation:peer-invalid:block"},BE={dropdown:"string",formCheckInput:"string",formOutline:"string",initialized:"string",inputGroup:"string",noResult:"string",optionsList:"string",optionsWrapper:"string",optionsWrapperScrollbar:"string",selectArrow:"string",selectArrowDefault:"string",selectArrowLg:"string",selectArrowSm:"string",selectClearBtn:"string",selectClearBtnDefault:"string",selectClearBtnLg:"string",selectClearBtnSm:"string",selectDropdownContainer:"string",selectFakeValue:"string",selectFilterInput:"string",selectInput:"string",selectInputSizeDefault:"string",selectInputSizeLg:"string",selectInputSizeSm:"string",selectLabel:"string",selectLabelSizeDefault:"string",selectLabelSizeLg:"string",selectLabelSizeSm:"string",selectOption:"string",selectOptionGroup:"string",selectOptionGroupLabel:"string",selectOptionIcon:"string",selectOptionSecondaryText:"string",selectOptionText:"string"};class en{constructor(t,e,i){this._element=t,this._config=this._getConfig(e),this._classes=this._getClasses(i),this._config.selectPlaceholder&&!this._config.multiple&&this._addPlaceholderOption(),this._optionsToRender=this._getOptionsToRender(t),this._plainOptions=this._getPlainOptions(this._optionsToRender),this._filteredOptionsList=null,this._selectionModel=new KT(this.multiple),this._activeOptionIndex=-1,this._activeOption=null,this._wrapperId=Et("select-wrapper-"),this._dropdownContainerId=Et("select-dropdown-container-"),this._selectAllId=Et("select-all-"),this._debounceTimeoutId=null,this._dropdownHeight=this._config.selectOptionHeight*this._config.selectVisibleOptions,this._popper=null,this._input=null,this._label=m.next(this._element,AE)[0],this._notch=null,this._fakeValue=null,this._isFakeValueActive=!1,this._customContent=m.next(t,IE)[0],this._toggleButton=null,this._elementToggle=null,this._wrapper=null,this._inputEl=null,this._dropdownContainer=null,this._container=null,this._selectAllOption=null,this._init(),this._mutationObserver=null,this._isOpen=!1,this._addMutationObserver(),this._element&&D.setData(t,Qs,this)}static get NAME(){return Cl}get filterInput(){return m.findOne(wE,this._dropdownContainer)}get dropdown(){return m.findOne(kE,this._dropdownContainer)}get optionsList(){return m.findOne(ju,this._dropdownContainer)}get optionsWrapper(){return m.findOne(SE,this._dropdownContainer)}get clearButton(){return m.findOne(DE,this._wrapper)}get options(){return this._filteredOptionsList?this._filteredOptionsList:this._plainOptions}get value(){return this.multiple?this._selectionModel.values:this._selectionModel.value}get multiple(){return this._config.multiple}get hasSelectAll(){return this.multiple&&this._config.selectAll}get hasSelection(){return this._selectionModel.selection||this._selectionModel.selections.length>0}_getConfig(t){const e=g.getDataAttributes(this._element);return t={...PE,...e,...t},this._element.hasAttribute("multiple")&&(t.multiple=!0),this._element.hasAttribute("disabled")&&(t.disabled=!0),this._element.tabIndex&&(t.tabIndex=this._element.getAttribute("tabIndex")),L(Cl,t,RE),t}_getClasses(t){const e=g.getDataClassAttributes(this._element);return t={...NE,...e,...t},L(Cl,t,BE),t}_addPlaceholderOption(){const t=new Option("","",!0,!0);t.hidden=!0,t.selected=!0,this._element.prepend(t)}_getOptionsToRender(t){const e=[];return t.childNodes.forEach(n=>{if(n.nodeName==="OPTGROUP"){const o={id:Et("group-"),label:n.label,disabled:n.hasAttribute("disabled"),hidden:n.hasAttribute("hidden"),options:[]};n.childNodes.forEach(a=>{a.nodeName==="OPTION"&&o.options.push(this._createOptionObject(a,o))}),e.push(o)}else n.nodeName==="OPTION"&&e.push(this._createOptionObject(n))}),e}_getPlainOptions(t){if(!m.findOne("optgroup",this._element))return t;const i=[];return t.forEach(n=>{Object.prototype.hasOwnProperty.call(n,"options")?n.options.forEach(r=>{i.push(r)}):i.push(n)}),i}_createOptionObject(t,e={}){const i=Et("option-"),n=e.id?e.id:null,o=e.disabled?e.disabled:!1,r=t.selected||t.hasAttribute(tn),a=t.hasAttribute("disabled")||o,l=t.hasAttribute("hidden")||e&&e.hidden,c=this.multiple,h=t.value,d=t.label,u=g.getDataAttribute(t,"selectSecondaryText"),p=g.getDataAttribute(t,"select-icon");return new Du(i,t,c,h,d,r,a,l,u,n,p)}_getNavigationOptions(){const t=this.options.filter(e=>!e.hidden);return this.hasSelectAll?[this._selectAllOption,...t]:t}_init(){this._renderMaterialWrapper(),this._wrapper=m.findOne(`#${this._wrapperId}`),this._input=m.findOne(zu,this._wrapper),this._config.disabled&&this._input.setAttribute(Al,"");const t=this._config.selectContainer;t==="body"?this._container=document.body:this._container=m.findOne(t),this._initOutlineInput(),this._setDefaultSelections(),this._updateInputValue(),this._appendFakeValue(),this._updateFakeLabelPosition(),this._updateLabelPosition(),this._updateClearButtonVisibility(),this._bindComponentEvents(),this.hasSelectAll&&(this._selectAllOption=this._createSelectAllOption()),this._dropdownContainer=Lu(this._dropdownContainerId,this._config,this._input.offsetWidth,this._dropdownHeight,this._selectAllOption,this._optionsToRender,this._customContent,this._classes),this._setFirstActiveOption(),this._listenToFocusChange()}_renderMaterialWrapper(){const t=cE(this._wrapperId,this._config,this._label,this._classes,this._element.name);this._element.parentNode.insertBefore(t,this._element),g.addClass(this._element,this._classes.initialized),t.appendChild(this._element)}_initOutlineInput(){const t=m.findOne(Yu,this._wrapper);new Z(t,{inputFormWhite:this._config.selectFormWhite},this._classes).init(),this._notch=m.findOne(wl,this._wrapper)}_bindComponentEvents(){this._listenToComponentKeydown(),this._listenToWrapperClick(),this._listenToClearBtnClick(),this._listenToClearBtnKeydown()}_setDefaultSelections(){this.options.forEach(t=>{t.selected&&this._selectionModel.select(t)})}_listenToComponentKeydown(){_.on(this._wrapper,"keydown",this._handleKeydown.bind(this))}_handleKeydown(t){this._isOpen&&!this._config.selectFilter?this._handleOpenKeydown(t):this._handleClosedKeydown(t)}_handleOpenKeydown(t){const e=t.keyCode,i=e===Ks||e===At&&t.altKey||e===Us;if(e===Us&&this._config.selectAutoSelect&&!this.multiple&&this._handleAutoSelection(this._activeOption),i){this.close(),this._input.focus();return}switch(e){case ut:this._setNextOptionActive(),this._scrollToOption(this._activeOption);break;case At:this._setPreviousOptionActive(),this._scrollToOption(this._activeOption);break;case rs:this._setFirstOptionActive(),this._scrollToOption(this._activeOption);break;case as:this._setLastOptionActive(),this._scrollToOption(this._activeOption);break;case Pt:t.preventDefault(),this._activeOption&&(this.hasSelectAll&&this._activeOptionIndex===0?this._handleSelectAll():this._handleSelection(this._activeOption));return;default:return}t.preventDefault()}_handleClosedKeydown(t){const e=t.keyCode;if(e===Pt&&t.preventDefault(),(e===Pt||e===ut&&t.altKey||e===ut&&this.multiple)&&this.open(),this.multiple)switch(e){case ut:this.open();break;case At:this.open();break;default:return}else switch(e){case ut:this._setNextOptionActive(),this._handleSelection(this._activeOption);break;case At:this._setPreviousOptionActive(),this._handleSelection(this._activeOption);break;case rs:this._setFirstOptionActive(),this._handleSelection(this._activeOption);break;case as:this._setLastOptionActive(),this._handleSelection(this._activeOption);break;default:return}t.preventDefault()}_scrollToOption(t){if(!t)return;let e;const i=this.options.filter(h=>!h.hidden);this.hasSelectAll?e=i.indexOf(t)+1:e=i.indexOf(t);const n=this._getNumberOfGroupsBeforeOption(e),o=e+n,r=this.optionsWrapper,a=r.offsetHeight,l=this._config.selectOptionHeight,c=r.scrollTop;if(e>-1){const h=o*l,d=h+l>c+a;h!r.hidden),i=this._optionsToRender.filter(r=>!r.hidden),n=this.hasSelectAll?t-1:t;let o=0;for(let r=0;r<=n;r++)e[r].groupId&&i[o]&&i[o].id&&e[r].groupId===i[o].id&&o++;return o}_setNextOptionActive(){let t=this._activeOptionIndex+1;const e=this._getNavigationOptions();if(e[t]){for(;e[t].disabled;)if(t+=1,!e[t])return;this._updateActiveOption(e[t],t)}}_setPreviousOptionActive(){let t=this._activeOptionIndex-1;const e=this._getNavigationOptions();if(e[t]){for(;e[t].disabled;)if(t-=1,!e[t])return;this._updateActiveOption(e[t],t)}}_setFirstOptionActive(){const e=this._getNavigationOptions();this._updateActiveOption(e[0],0)}_setLastOptionActive(){const t=this._getNavigationOptions(),e=t.length-1;this._updateActiveOption(t[e],e)}_updateActiveOption(t,e){const i=this._activeOption;i&&i.removeActiveStyles(),t.setActiveStyles(),this._activeOptionIndex=e,this._activeOption=t}_listenToWrapperClick(){_.on(this._wrapper,"click",()=>{this.toggle()})}_listenToClearBtnClick(){_.on(this.clearButton,"click",t=>{t.preventDefault(),t.stopPropagation(),this._handleClear()})}_listenToClearBtnKeydown(){_.on(this.clearButton,"keydown",t=>{t.keyCode===Pt&&(this._handleClear(),t.preventDefault(),t.stopPropagation())})}_handleClear(){if(this.multiple)this._selectionModel.clear(),this._deselectAllOptions(this.options),this.hasSelectAll&&this._updateSelectAllState();else{const t=this._selectionModel.selection;this._selectionModel.clear(),t.deselect()}this._fakeValue.innerHTML="",this._updateInputValue(),this._updateFakeLabelPosition(),this._updateLabelPosition(),this._updateClearButtonVisibility(),this._emitValueChangeEvent(null),this._emitNativeChangeEvent()}_listenToOptionsClick(){_.on(this.optionsWrapper,"click",t=>{if(t.target.hasAttribute(xE))return;const i=t.target.nodeName==="DIV"?t.target:m.closest(t.target,OE);if(i.hasAttribute(CE)){this._handleSelectAll();return}const o=i.dataset.teId,r=this.options.find(a=>a.id===o);r&&!r.disabled&&this._handleSelection(r)})}_handleSelectAll(){this._selectAllOption.selected?(this._deselectAllOptions(this.options),this._selectAllOption.deselect()):(this._selectAllOptions(this.options),this._selectAllOption.select()),this._updateInputValue(),this._updateFakeLabelPosition(),this._updateLabelPosition(),this._updateClearButtonVisibility(),this._emitValueChangeEvent(this.value),this._emitNativeChangeEvent()}_selectAllOptions(t){t.forEach(e=>{!e.selected&&!e.disabled&&(this._selectionModel.select(e),e.select())})}_deselectAllOptions(t){t.forEach(e=>{e.selected&&!e.disabled&&(this._selectionModel.deselect(e),e.deselect())})}_handleSelection(t){this.multiple?(this._handleMultiSelection(t),this.hasSelectAll&&this._updateSelectAllState()):this._handleSingleSelection(t),this._updateInputValue(),this._updateFakeLabelPosition(),this._updateLabelPosition(),this._updateClearButtonVisibility()}_handleAutoSelection(t){this._singleOptionSelect(t),this._updateInputValue(),this._updateFakeLabelPosition(),this._updateLabelPosition(),this._updateClearButtonVisibility()}_handleSingleSelection(t){this._singleOptionSelect(t),this.close(),this._input.focus()}_singleOptionSelect(t){const e=this._selectionModel.selections[0];e&&e!==t&&(this._selectionModel.deselect(e),e.deselect(),e.node.setAttribute(tn,!1),_.trigger(this._element,Hu,{value:e.value})),(!e||e&&t!==e)&&(this._selectionModel.select(t),t.select(),t.node.setAttribute(tn,!0),_.trigger(this._element,Bu,{value:t.value}),this._emitValueChangeEvent(this.value),this._emitNativeChangeEvent())}_handleMultiSelection(t){t.selected?(this._selectionModel.deselect(t),t.deselect(),t.node.setAttribute(tn,!1),_.trigger(this._element,Hu,{value:t.value})):(this._selectionModel.select(t),t.select(),t.node.setAttribute(tn,!0),_.trigger(this._element,Bu,{value:t.value})),this._emitValueChangeEvent(this.value),this._emitNativeChangeEvent()}_emitValueChangeEvent(t){_.trigger(this._element,TE,{value:t})}_emitNativeChangeEvent(){_.trigger(this._element,EE)}_updateInputValue(){const t=this.multiple?this._selectionModel.labels:this._selectionModel.label;let e;this.multiple&&this._config.selectDisplayedLabels!==-1&&this._selectionModel.selections.length>this._config.selectDisplayedLabels?e=`${this._selectionModel.selections.length} ${this._config.selectOptionsSelectedLabel}`:e=t,!this.multiple&&!this._isSelectionValid(this._selectionModel.selection)?this._input.value="":this._isLabelEmpty(this._selectionModel.selection)?this._input.value=" ":e?this._input.value=e:this.multiple||!this._optionsToRender[0]?this._input.value="":this._input.value=this._optionsToRender[0].label}_isSelectionValid(t){return!(t&&(t.disabled||t.value===""))}_isLabelEmpty(t){return!!(t&&t.label==="")}_appendFakeValue(){if(!this._selectionModel.selection||this._selectionModel._multiple)return;const t=this._selectionModel.selection.label;this._fakeValue=bE(t,this._classes),m.findOne(Yu,this._wrapper).appendChild(this._fakeValue)}_updateLabelPosition(){const t=this._element.hasAttribute(Vu),e=this._input.value!=="";this._label&&(t&&(e||this._isOpen||this._isFakeValueActive)?(this._label.setAttribute(Tt,""),this._notch.setAttribute(Tt,"")):(this._label.removeAttribute(Tt),this._notch.removeAttribute(Tt,"")))}_updateLabelPositionWhileClosing(){this._label&&(this._input.value!==""||this._isFakeValueActive?(this._label.setAttribute(Tt,""),this._notch.setAttribute(Tt,"")):(this._label.removeAttribute(Tt),this._notch.removeAttribute(Tt)))}_updateFakeLabelPosition(){this._fakeValue&&(this._input.value===""&&this._fakeValue.innerHTML!==""&&!this._config.selectPlaceholder?(this._isFakeValueActive=!0,this._fakeValue.setAttribute(Tt,"")):(this._isFakeValueActive=!1,this._fakeValue.removeAttribute(Tt)))}_updateClearButtonVisibility(){if(!this.clearButton)return;this._selectionModel.selection||this._selectionModel.selections.length>0?g.addStyle(this.clearButton,{display:"block"}):g.addStyle(this.clearButton,{display:"none"})}_updateSelectAllState(){const t=this._selectAllOption.selected,e=xl(this.options);!e&&t?this._selectAllOption.deselect():e&&!t&&this._selectAllOption.select()}toggle(){this._isOpen?this.close():this.open()}open(){const t=this._config.disabled,e=_.trigger(this._element,yE);this._isOpen||t||e.defaultPrevented||(this._openDropdown(),this._updateDropdownWidth(),this._setFirstActiveOption(),this._scrollToOption(this._activeOption),this._config.selectFilter&&(setTimeout(()=>{this.filterInput.focus()},0),this._listenToSelectSearch(),this._listenToDropdownKeydown()),this._listenToOptionsClick(),this._listenToOutsideClick(),this._listenToWindowResize(),this._isOpen=!0,this._updateLabelPosition(),this._setInputActiveStyles())}_openDropdown(){this._popper=fi(this._input,this._dropdownContainer,{placement:"bottom-start",modifiers:[{name:"offset",options:{offset:[0,1]}}]}),this._container.appendChild(this._dropdownContainer),setTimeout(()=>{this.dropdown.setAttribute(Wu,"")},0)}_updateDropdownWidth(){const t=this._input.offsetWidth;g.addStyle(this._dropdownContainer,{width:`${t}px`})}_setFirstActiveOption(){const t=this._getNavigationOptions(),e=this._activeOption;e&&e.removeActiveStyles();const i=this.multiple?this._selectionModel.selections[0]:this._selectionModel.selection;i?(this._activeOption=i,i.setActiveStyles(),this._activeOptionIndex=t.findIndex(n=>n===i)):(this._activeOption=null,this._activeOptionIndex=-1)}_setInputActiveStyles(){this._input.setAttribute(Xe,""),m.findOne(wl,this._wrapper).setAttribute(Xe,"")}_listenToWindowResize(){_.on(window,"resize",this._handleWindowResize.bind(this))}_handleWindowResize(){this._dropdownContainer&&this._updateDropdownWidth()}_listenToSelectSearch(){this.filterInput.addEventListener("input",t=>{const e=t.target.value,i=this._config.selectFilterDebounce;this._debounceFilter(e,i)})}_debounceFilter(t,e){this._debounceTimeoutId&&clearTimeout(this._debounceTimeoutId),this._debounceTimeoutId=setTimeout(()=>{this._filterOptions(t)},e)}_filterOptions(t){const e=[];this._optionsToRender.forEach(o=>{const r=Object.prototype.hasOwnProperty.call(o,"options"),a=!r&&o.label.toLowerCase().includes(t.toLowerCase()),l={};r&&(l.label=o.label,l.options=this._filter(t,o.options),l.options.length>0&&e.push(l)),a&&e.push(o)});const i=this._config.selectNoResultText!=="",n=e.length!==0;if(n)this._updateOptionsListTemplate(e),this._popper.forceUpdate(),this._filteredOptionsList=this._getPlainOptions(e),this.hasSelectAll&&this._updateSelectAllState(),this._setFirstActiveOption();else if(!n&&i){const o=this._getNoResultTemplate();this.optionsWrapper.innerHTML=o}}_updateOptionsListTemplate(t){const e=m.findOne(ju,this._dropdownContainer)||m.findOne(ME,this._dropdownContainer),i=$u(t,this._selectAllOption,this._config,this._classes);this.optionsWrapper.removeChild(e),this.optionsWrapper.appendChild(i)}_getNoResultTemplate(){return`
${this._config.selectNoResultText}
`}_filter(t,e){const i=t.toLowerCase();return e.filter(n=>n.label.toLowerCase().includes(i))}_listenToDropdownKeydown(){_.on(this.dropdown,"keydown",this._handleOpenKeydown.bind(this))}_listenToOutsideClick(){this._outsideClick=this._handleOutSideClick.bind(this),_.on(document,"click",this._outsideClick)}_listenToFocusChange(t=!0){if(t===!1){_.off(this._input,"focus",()=>this._notch.setAttribute(Xe,"")),_.off(this._input,"blur",()=>this._notch.removeAttribute(Xe));return}_.on(this._input,"focus",()=>this._notch.setAttribute(Xe,"")),_.on(this._input,"blur",()=>this._notch.removeAttribute(Xe))}_handleOutSideClick(t){const e=this._wrapper&&this._wrapper.contains(t.target),i=t.target===this._dropdownContainer,n=this._dropdownContainer&&this._dropdownContainer.contains(t.target);let o;this._toggleButton||(this._elementToggle=m.find(LE)),this._elementToggle&&this._elementToggle.forEach(r=>{const a=g.getDataAttribute(r,"select-toggle");(a===this._element.id||this._element.classList.contains(a))&&(this._toggleButton=r,o=this._toggleButton.contains(t.target))}),!e&&!i&&!n&&!o&&this.close()}close(){const t=_.trigger(this._element,vE);!this._isOpen||t.defaultPrevented||(this._config.selectFilter&&this.hasSelectAll&&(this._resetFilterState(),this._updateOptionsListTemplate(this._optionsToRender),this._config.multiple&&this._updateSelectAllState()),this._removeDropdownEvents(),this.dropdown.removeAttribute(Wu),setTimeout(()=>{this._input.removeAttribute(Xe),this._input.blur(),m.findOne(wl,this._wrapper).removeAttribute(Xe),this._label&&!this.hasSelection&&(this._label.removeAttribute(Tt),this._notch.setAttribute(Tt,""),this._input.removeAttribute(Tt),this._notch.removeAttribute(Tt)),this._updateLabelPositionWhileClosing()},0),setTimeout(()=>{this._container&&this._dropdownContainer.parentNode===this._container&&this._container.removeChild(this._dropdownContainer),this._popper.destroy(),this._isOpen=!1,_.off(this.dropdown,"transitionend")},$E))}_resetFilterState(){this.filterInput.value="",this._filteredOptionsList=null}_removeDropdownEvents(){_.off(document,"click",this._outsideClick),this._config.selectFilter&&_.off(this.dropdown,"keydown"),_.off(this.optionsWrapper,"click")}_addMutationObserver(){this._mutationObserver=new MutationObserver(()=>{this._wrapper&&(this._updateSelections(),this._updateDisabledState())}),this._observeMutationObserver()}_updateSelections(){this._optionsToRender=this._getOptionsToRender(this._element),this._plainOptions=this._getPlainOptions(this._optionsToRender),this._selectionModel.clear(),this._setDefaultSelections(),this._updateInputValue(),this._updateFakeLabelPosition(),this._updateLabelPosition(),this._updateClearButtonVisibility(),this.hasSelectAll&&this._updateSelectAllState();const t=this._config.filter&&this.filterInput&&this.filterInput.value;this._isOpen&&!t?(this._updateOptionsListTemplate(this._optionsToRender),this._setFirstActiveOption()):this._isOpen&&t?(this._filterOptions(this.filterInput.value),this._setFirstActiveOption()):this._dropdownContainer=Lu(this._dropdownContainerId,this._config,this._input.offsetWidth,this._dropdownHeight,this._selectAllOption,this._optionsToRender,this._customContent,this._classes)}_updateDisabledState(){const t=m.findOne(zu,this._wrapper);this._element.hasAttribute("disabled")?(this._config.disabled=!0,t.setAttribute("disabled",""),t.setAttribute(Al,"")):(this._config.disabled=!1,t.removeAttribute("disabled"),t.removeAttribute(Al))}_observeMutationObserver(){this._mutationObserver&&this._mutationObserver.observe(this._element,{attributes:!0,childList:!0,characterData:!0,subtree:!0})}_disconnectMutationObserver(){this.mutationObserver&&(this._mutationObserver.disconnect(),this._mutationObserver=null)}_createSelectAllOption(){const t=this._selectAllId,e=null,i=!0,n="select-all",o=this._config.selectAllLabel,r=xl(this.options),a=!1,l=!1,c=null,h=null,d=null;return new Du(t,e,i,n,o,r,a,l,c,h,d)}dispose(){this._removeComponentEvents(),this._destroyMaterialSelect(),this._listenToFocusChange(!1),D.removeData(this._element,Qs)}_removeComponentEvents(){_.off(this.input,"click"),_.off(this.wrapper,this._handleKeydown.bind(this)),_.off(this.clearButton,"click"),_.off(this.clearButton,"keydown"),_.off(window,"resize",this._handleWindowResize.bind(this))}_destroyMaterialSelect(){this._isOpen&&this.close(),this._destroyMaterialTemplate()}_destroyMaterialTemplate(){const t=this._wrapper.parentNode,e=m.find("label",this._wrapper);t.appendChild(this._element),e.forEach(i=>{t.appendChild(i)}),e.forEach(i=>{i.removeAttribute(Tt)}),g.removeClass(this._element,this._classes.initialized),this._element.removeAttribute(Vu),t.removeChild(this._wrapper)}setValue(t){this.options.filter(i=>i.selected).forEach(i=>i.nativeOption.selected=!1),Array.isArray(t)?t.forEach(i=>{this._selectByValue(i)}):this._selectByValue(t),this._updateSelections()}_selectByValue(t){const e=this.options.find(i=>i.value===t);return e?(e.nativeOption.selected=!0,!0):!1}static jQueryInterface(t,e){return this.each(function(){let i=D.getData(this,Qs);const n=typeof t=="object"&&t;if(!(!i&&/dispose/.test(t))&&(i||(i=new en(this,n)),typeof t=="string")){if(typeof i[t]>"u")throw new TypeError(`No method named "${t}"`);i[t](e)}})}static getInstance(t){return D.getData(t,Qs)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,typeof e=="object"?e:null)}}const HE=({inputID:s,labelText:t},e)=>`
-
`,Px=({text:i,iconSVG:t},e)=>`
- ${i} +
`,VE=({text:s,iconSVG:t},e)=>`
+ ${s} ${t} -
`,Vo="chip",Nx=`te.${Vo}`,su="data-te-chip-close",Ga=`[${su}]`,Bx="delete.te.chips",Hx="select.te.chip",Fx=' ',Wx={text:"string",closeIcon:"boolean",img:"object",iconSVG:"string"},Vx={text:"",closeIcon:!1,img:{path:"",alt:""},iconSVG:Fx},zx={icon:"float-right pl-[8px] text-[16px] opacity-[.53] cursor-pointer fill-[#afafaf] hover:text-[#8b8b8b] transition-all duration-200 ease-in-out",chipElement:"flex justify-between items-center h-[32px] leading-loose py-[5px] px-[12px] mr-4 my-[5px] text-[13px] font-normal text-[#4f4f4f] cursor-pointer bg-[#eceff1] dark:text-white dark:bg-neutral-600 rounded-[16px] transition-[opacity] duration-300 ease-linear [word-wrap: break-word] shadow-none normal-case hover:!shadow-none active:bg-[#cacfd1] inline-block font-medium leading-normal text-[#4f4f4f] text-center no-underline align-middle cursor-pointer select-none border-[.125rem] border-solid border-transparent py-1.5 px-3 text-xs rounded",chipCloseIcon:"w-4 float-right pl-[8px] text-[16px] opacity-[.53] cursor-pointer fill-[#afafaf] hover:fill-[#8b8b8b] dark:fill-gray-400 dark:hover:fill-gray-100 transition-all duration-200 ease-in-out"},Yx={icon:"string",chipElement:"string",chipCloseIcon:"string"};class Ci{constructor(t,e={},s){this._element=t,this._options=this._getConfig(e),this._classes=this._getClasses(s)}static get NAME(){return Vo}init(){this._appendCloseIcon(),this._handleDelete(),this._handleTextChip(),this._handleClickOnChip()}dispose(){this._element=null,this._options=null,g.off(this._element,"click")}appendChip(){const{text:t,closeIcon:e,iconSVG:s}=this._options;return Px({text:t,closeIcon:e,iconSVG:s},this._classes)}_appendCloseIcon(t=this._element){if(!(m.find(Ga,this._element).length>0)&&this._options.closeIcon){const e=L("span");e.classList=this._classes.icon,e.setAttribute(su),e.innerHTML=this._options.iconSVG,t.insertAdjacentElement("beforeend",e)}}_handleClickOnChip(){g.on(this._element,"click",t=>{const{textContent:e}=t.target,s={};s.tag=e.trim(),g.trigger(Hx,{event:t,obj:s})})}_handleDelete(){m.find(Ga,this._element).length!==0&&g.on(this._element,"click",Ga,()=>{g.trigger(this._element,Bx),this._element.remove()})}_handleTextChip(){this._element.innerText===""&&(this._element.innerText=this._options.text)}_getConfig(t){const e={...Vx,..._.getDataAttributes(this._element),...t};return P(Vo,e,Wx),e}_getClasses(t){const e=_.getDataClassAttributes(this._element);return t={...zx,...e,...t},P(Vo,t,Yx),t}static getInstance(t){return M.getData(t,Nx)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,typeof e=="object"?e:null)}}const Gs="chips",qs=`data-te-${Gs}`,nu=`te.${Gs}`,jx=`${qs}-input-init`,Ht=`${qs}-active`,ou=`${qs}-initial`,ru=`${qs}-placeholder`,Kx=`${qs}-input-wrapper`,qa="data-te-chip-init",au="data-te-chip-close",lu="data-te-chip-text",Ux=`[${Ht}]`,Za=`[${qa}]`,Xx=`${Za}${Ux}`,Qa=`[${au}]`,Gx=`[${Kx}]`,qx=`[${lu}]`,Zx=`[${ru}]`,Qx="data-te-input-notch-leading-ref",Jx="data-te-input-notch-middle-ref",tT=`[${Qx}]`,eT=`[${Jx}]`,os="data-te-input-state-active",Ja="[data-te-input-notch-ref]",iT="add.te.chips",sT="arrowDown.te.chips",nT="arrowLeft.te.chips",oT="arrowRight.te.chips",rT="arrowUp.te.chips",cu="delete.te.chips",hu="select.te.chips",aT={inputID:"string",parentSelector:"string",initialValues:"array",editable:"boolean",labelText:"string",inputClasses:"object",inputOptions:"object"},lT={inputID:Gt("chips-input-"),parentSelector:"",initialValues:[{tag:"init1"},{tag:"init2"}],editable:!1,labelText:"Example label",inputClasses:{},inputOptions:{}},cT={opacity:"opacity-0",inputWrapperPadding:"p-[5px]",transition:"transition-all duration-300 ease-[cubic-bezier(0.25,0.1,0.25,1)]",contentEditable:"outline-none !border-[3px] !border-solid !border-[#b2b3b4]",chipsInputWrapper:"relative flex items-center flex-wrap transition-all duration-300 ease-[cubic-bezier(0.25,0.1,0.25,1)]",chipsInput:"peer block min-h-[auto] w-[150px] rounded border-0 bg-transparent py-[0.32rem] px-3 leading-[1.6] outline-none transition-all duration-200 ease-linear focus:placeholder:opacity-100 data-[te-input-state-active]:placeholder:opacity-100 motion-reduce:transition-none dark:text-gray-200 dark:placeholder:text-gray-200 [&:not([data-te-input-placeholder-active])]:placeholder:opacity-0",chipsLabel:"pointer-events-none absolute top-0 left-3 mb-0 max-w-[90%] origin-[0_0] truncate pt-[0.37rem] leading-[1.6] text-gray-500 transition-all duration-200 ease-out peer-focus:-translate-y-[0.9rem] peer-focus:scale-[0.8] peer-focus:text-primary peer-data-[te-input-state-active]:-translate-y-[0.9rem] peer-data-[te-input-state-active]:scale-[0.8] motion-reduce:transition-none dark:text-gray-200 dark:peer-focus:text-gray-200"},hT={opacity:"string",inputWrapperPadding:"string",transition:"string",contentEditable:"string",chipsInputWrapper:"string",chipsInput:"string",chipsLabel:"string"};class du extends Ci{constructor(e,s={},n){super(e,s);we(this,"_handleBlurInput",({target:e})=>{e.value.length>0&&this._handleCreateChip(e,e.value),this.allChips.length>0?(e.setAttribute(Ht,""),this.input.setAttribute(os,""),m.findOne(Ja,this.input.parentNode).setAttribute(os,""),this.chipsInputWrapper.classList.add(...this._classes.inputWrapperPadding.split(" "))):(e.removeAttribute(Ht),this.input.removeAttribute(os),m.findOne(Ja,this.input.parentNode).removeAttribute(os),this.chipsInputWrapper.classList.remove(...this._classes.inputWrapperPadding.split(" "))),this.allChips.forEach(s=>s.removeAttribute(Ht))});this._element=e,this._inputInstance=null,this._element&&M.setData(e,nu,this),this._options=this._getConfig(s),this._classes=this._getClasses(n),this.numberClicks=0,this.init()}static get NAME(){return Gs}get activeChip(){return m.findOne(Xx,this._element)}get input(){return m.findOne("input",this._element)}get allChips(){return m.find(Za,this._element)}get chipsInputWrapper(){return m.findOne(Gx,this._element)}init(){this._setChipsClass(),this._appendInputToElement(ru),this._handleInitialValue(),this._handleInputText(),this._handleKeyboard(),this._handleChipsOnSelect(),this._handleEditable(),this._handleChipsFocus(),this._handleClicksOnChips(),this._inputInstance._getLabelWidth(),this._inputInstance._applyNotch()}dispose(){this._element=null,this._options=null}_getNotchData(){this._notchMiddle=m.findOne(eT,this._element),this._notchLeading=m.findOne(tT,this._element)}_setChipsClass(){this._element.setAttribute(jx,"")}_handleDeleteEvents(e){const[s]=this.allChips.slice(-1);if(this.activeChip===null)s.remove(),this._handleEvents(e,cu);else{const n=this.allChips.findIndex(a=>a===this.activeChip),o=this._handleActiveChipAfterRemove(n),r=[];if(this.activeChip===null)return;this.activeChip.remove(),this._handleEvents(e,cu),this.numberClicks=n,o.setAttribute(Ht,""),this.allChips.forEach(a=>{a.hasAttribute(Ht)&&(r.push(a),r.length>1&&this.allChips.forEach(l=>l.remove()))})}}_handleUpEvents(e){this.numberClicks+=1,this.numberClicks===this.allChips.length+1&&(this.numberClicks=0),this._handleRightKeyboardArrow(this.numberClicks),this._handleEvents(e,oT),this._handleEvents(e,rT)}_handleDownEvents(e){this.numberClicks-=1,this.numberClicks<=0&&(this.numberClicks=this.allChips.length),this._handleLeftKeyboardArrow(this.numberClicks),this._handleEvents(e,nT),this._handleEvents(e,sT)}_keyboardEvents(e){const{target:s,keyCode:n,ctrlKey:o}=e;s.value.length>0||this.allChips.length===0||(n===_0||n===g0?this._handleDeleteEvents(e):n===is||n===Ct?this._handleUpEvents(e):n===es||n===ut?this._handleDownEvents(e):n===65&&o&&this._handleAddActiveClass())}_handleKeyboard(){g.on(this.input,"keydown",e=>this._keyboardEvents(e))}_handleEditable(){const{editable:e}=this._options;e&&this.allChips.forEach(s=>{g.on(s,"dblclick",n=>{const o=m.findOne(Qa,s);s.classList.add(...this._classes.contentEditable.split(" ")),s.contentEditable=!0,s.focus(),setTimeout(()=>{_.addStyle(o,{display:"none"})},200),o.classList.add(...this._classes.opacity.split(" ")),n.target.textContent,g.trigger(s,hu,{event:n,allChips:this.allChips})}),g.on(document,"click",({target:n})=>{const o=m.findOne(Qa,s),r=m.findOne(qx,s),a=n===s,l=s&&s.contains(n);!a&&!l&&(s.contentEditable=!1,s.classList.remove(...this._classes.contentEditable.split(" ")),r.textContent!==""&&setTimeout(()=>{_.addStyle(o,{display:"block"}),o.classList.remove(...this._classes.opacity.split(" "))},160)),r.textContent===""&&(setTimeout(()=>{s.classList.add(...this._classes.opacity.split(" "))},200),setTimeout(()=>{s.remove()},300))})})}_handleRemoveActiveClass(){this.allChips.forEach(e=>e.removeAttribute(Ht))}_handleAddActiveClass(){this.allChips.forEach(e=>e.setAttribute(Ht,""))}_handleRightKeyboardArrow(e){this._handleRemoveActiveClass(),e===0&&(e=1),this._handleAddActiveClassWithKebyboard(e)}_handleLeftKeyboardArrow(e){this._handleRemoveActiveClass(),this._handleAddActiveClassWithKebyboard(e)}_handleActiveChipAfterRemove(e){const s=e===0?1:e-1;return this.allChips[s]}_handleClicksOnChips(){g.on(this._element,"click",()=>{this.allChips.length===0&&(this.chipsInputWrapper.classList.remove(...this._classes.inputWrapperPadding.split(" ")),this.input.removeAttribute(Ht))})}_handleTextContent(){const e=[];return this.allChips.forEach(s=>e.push({tag:s.textContent.trim()})),e}_handleEvents(e,s){const n=this._handleTextContent(),o=this.allChips.filter(r=>r.hasAttribute(Ht)&&r);g.trigger(this._element,s,{event:e,allChips:this.allChips,arrOfObjects:n,active:o,activeObj:{tag:o.length<=0?"":o[0].textContent.trim()}})}_handleChipsFocus(){g.on(this._element,"click",({target:{attributes:e}})=>{const s=[...e];s.includes(qa)||s.includes(au)||s.includes(lu)||this.input.focus()})}_handleInitialValue(){if(this._appendInputToElement(ou),this._element.hasAttribute(ou)){const{initialValues:e}=this._options;e.forEach(({tag:s})=>this._handleCreateChip(this.input,s)),m.findOne(Ja,this.input.parentNode).setAttribute(os,""),this.input.setAttribute(Ht,""),this.input.setAttribute(os,"")}this.allChips.length>0&&(this.chipsInputWrapper.classList.add(...this._classes.inputWrapperPadding.split(" ")),this.chipsInputWrapper.classList.add(...this._classes.transition.split(" ")))}_handleKeysInputToElement(e){const{keyCode:s,target:n}=e;if(n.hasAttribute(qa)){const o=m.findOne(Qa,n);s===$t&&(n.contentEditable=!1,n.classList.remove(...this._classes.contentEditable.split(" ")),n.textContent!==""?setTimeout(()=>{_.addStyle(o,{display:"block"}),o.classList.remove(...this._classes.opacity.split(" "))},160):n.textContent===""&&(setTimeout(()=>{n.classList.add(...this._classes.opacity.split(" "))},200),setTimeout(()=>{n.remove()},300)));return}if(s===$t){if(n.value==="")return;this._handleCreateChip(n,n.value),this._handleRemoveActiveClass(),this.numberClicks=this.allChips.length+1,this._handleEvents(e,iT)}this.allChips.length>0?(this.chipsInputWrapper.classList.add(...this._classes.inputWrapperPadding.split(" ")),this.chipsInputWrapper.classList.add(...this._classes.transition.split(" "))):this.chipsInputWrapper.classList.remove(...this._classes.inputWrapperPadding.split(" "))}_handleInputText(){const e=m.findOne(Zx,this._element);g.on(this._element,"keyup",e,s=>this._handleKeysInputToElement(s)),g.on(this.input,"blur",s=>this._handleBlurInput(s))}_appendInputToElement(e){if(!this._element.hasAttribute(e))return;const s=Rx(this._options,this._classes);this._element.insertAdjacentHTML("beforeend",s);const n=m.findOne("[data-te-chips-input-wrapper]",this._element);this._inputInstance=new Z(n,this._options.inputOptions,this._options.inputClasses)}_handleCreateChip(e,s){const n=L("div"),o=Ci.getInstance(n),r=new Ci(o,{text:s},this._classes);this._options.parentSelector!==""?document.querySelector(this._options.parentSelector).insertAdjacentHTML("beforeend",r.appendChip()):e.insertAdjacentHTML("beforebegin",r.appendChip()),e.value="",m.find(Za).forEach(a=>{let l=Ci.getInstance(a);return l||(l=new Ci(a,{},this._classes)),l.init()}),this._handleEditable()}_handleChipsOnSelect(){this.allChips.forEach(e=>{g.on(this._element,"click",s=>{g.trigger(e,hu,{event:s,allChips:this.allChips})})})}_handleAddActiveClassWithKebyboard(e){let s;this.allChips[e-1]===void 0?s=this.allChips[e-2]:s=this.allChips[e-1],s.setAttribute(Ht)}_getConfig(e){const s={...lT,..._.getDataAttributes(this._element),...e};return P(Gs,s,aT),s}_getClasses(e){const s=_.getDataClassAttributes(this._element);return e={...cT,...s,...e},P(Gs,e,hT),e}static getInstance(e){return M.getData(e,nu)}static getOrCreateInstance(e,s={}){return this.getInstance(e)||new this(e,typeof s=="object"?s:null)}}const Ge={plugins:{legend:{labels:{color:"rgb(102,102,102)"}}}},Zs={line:{options:{...Ge,elements:{line:{backgroundColor:"rgba(59, 112, 202, 0.0)",borderColor:"rgb(59, 112, 202)",borderWidth:2,tension:0},point:{borderColor:"rgb(59, 112, 202)",backgroundColor:"rgb(59, 112, 202)"}},responsive:!0,legend:{display:!0},tooltips:{intersect:!1,mode:"index"},datasets:{borderColor:"red"},scales:{x:{stacked:!0,grid:{display:!1},ticks:{fontColor:"rgba(0,0,0, 0.5)"}},y:{stacked:!1,grid:{borderDash:[2],drawBorder:!1,zeroLineColor:"rgba(0,0,0,0)",zeroLineBorderDash:[2],zeroLineBorderDashOffset:[2]},ticks:{fontColor:"rgba(0,0,0, 0.5)"}}}}},bar:{options:{...Ge,backgroundColor:"rgb(59, 112, 202)",borderWidth:0,responsive:!0,legend:{display:!0},tooltips:{intersect:!1,mode:"index"},scales:{x:{stacked:!0,grid:{display:!1},ticks:{fontColor:"rgba(0,0,0, 0.5)"}},y:{stacked:!0,grid:{borderDash:[2],drawBorder:!1,zeroLineColor:"rgba(0,0,0,0)",zeroLineBorderDash:[2],zeroLineBorderDashOffset:[2]},ticks:{fontColor:"rgba(0,0,0, 0.5)"}}}}},pie:{options:{...Ge,elements:{arc:{backgroundColor:"rgb(59, 112, 202)"}},responsive:!0,legend:{display:!0}}},doughnut:{options:{...Ge,elements:{arc:{backgroundColor:"rgb(59, 112, 202)"}},responsive:!0,legend:{display:!0}}},polarArea:{options:{...Ge,elements:{arc:{backgroundColor:"rgba(59, 112, 202, 0.5)"}},responsive:!0,legend:{display:!0}}},radar:{options:{...Ge,elements:{line:{backgroundColor:"rgba(59, 112, 202, 0.5)",borderColor:"rgb(59, 112, 202)",borderWidth:2},point:{borderColor:"rgb(59, 112, 202)",backgroundColor:"rgb(59, 112, 202)"}},responsive:!0,legend:{display:!0}}},scatter:{options:{...Ge,elements:{line:{backgroundColor:"rgba(59, 112, 202, 0.5)",borderColor:"rgb(59, 112, 202)",borderWidth:2,tension:0},point:{borderColor:"rgb(59, 112, 202)",backgroundColor:"rgba(59, 112, 202, 0.5)"}},responsive:!0,legend:{display:!0},tooltips:{intersect:!1,mode:"index"},datasets:{borderColor:"red"},scales:{x:{stacked:!0,grid:{display:!1},ticks:{fontColor:"rgba(0,0,0, 0.5)"}},y:{stacked:!1,grid:{borderDash:[2],drawBorder:!1,zeroLineColor:"rgba(0,0,0,0)",zeroLineBorderDash:[2],zeroLineBorderDashOffset:[2]},ticks:{fontColor:"rgba(0,0,0, 0.5)"}}}}},bubble:{options:{...Ge,elements:{point:{borderColor:"rgb(59, 112, 202)",backgroundColor:"rgba(59, 112, 202, 0.5)"}},responsive:!0,legend:{display:!0},scales:{x:{grid:{display:!1},ticks:{fontColor:"rgba(0,0,0, 0.5)"}},y:{grid:{borderDash:[2],drawBorder:!1,zeroLineColor:"rgba(0,0,0,0)",zeroLineBorderDash:[2],zeroLineBorderDashOffset:[2]},ticks:{fontColor:"rgba(0,0,0, 0.5)"}}}}}};var dT=function(t){return uT(t)&&!pT(t)};function uT(i){return!!i&&typeof i=="object"}function pT(i){var t=Object.prototype.toString.call(i);return t==="[object RegExp]"||t==="[object Date]"||gT(i)}var fT=typeof Symbol=="function"&&Symbol.for,_T=fT?Symbol.for("react.element"):60103;function gT(i){return i.$$typeof===_T}function mT(i){return Array.isArray(i)?[]:{}}function Qs(i,t){return t.clone!==!1&&t.isMergeableObject(i)?rs(mT(i),i,t):i}function bT(i,t,e){return i.concat(t).map(function(s){return Qs(s,e)})}function vT(i,t){if(!t.customMerge)return rs;var e=t.customMerge(i);return typeof e=="function"?e:rs}function yT(i){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(i).filter(function(t){return Object.propertyIsEnumerable.call(i,t)}):[]}function uu(i){return Object.keys(i).concat(yT(i))}function pu(i,t){try{return t in i}catch{return!1}}function xT(i,t){return pu(i,t)&&!(Object.hasOwnProperty.call(i,t)&&Object.propertyIsEnumerable.call(i,t))}function TT(i,t,e){var s={};return e.isMergeableObject(i)&&uu(i).forEach(function(n){s[n]=Qs(i[n],e)}),uu(t).forEach(function(n){xT(i,n)||(pu(i,n)&&e.isMergeableObject(t[n])?s[n]=vT(n,e)(i[n],t[n],e):s[n]=Qs(t[n],e))}),s}function rs(i,t,e){e=e||{},e.arrayMerge=e.arrayMerge||bT,e.isMergeableObject=e.isMergeableObject||dT,e.cloneUnlessOtherwiseSpecified=Qs;var s=Array.isArray(t),n=Array.isArray(i),o=s===n;return o?s?e.arrayMerge(i,t,e):TT(i,t,e):Qs(t,e)}rs.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(s,n){return rs(s,n,e)},{})};var ET=rs,tl=ET;const fu="chart",zo="te.chart",CT="chart",el=(i,t,e)=>{const s=(n,o,r)=>{const a=n.slice();return o.forEach((l,c)=>{typeof a[c]>"u"?a[c]=r.cloneUnlessOtherwiseSpecified(l,r):r.isMergeableObject(l)?a[c]=tl(n[c],l,r):n.indexOf(l)===-1&&a.push(l)}),a};return tl(e[t],i,{arrayMerge:s})},AT={darkTicksColor:"#fff",darkLabelColor:"#fff",darkGridLinesColor:"#555",darkmodeOff:"undefined",darkMode:null,darkBgColor:"#262626",darkBgColorLight:"#fff",options:null},wT={darkTicksColor:"string",darkLabelColor:"string",darkGridLinesColor:"string",darkmodeOff:"(string|null)",darkMode:"(string|null)",darkBgColor:"string",darkBgColorLight:"string",options:"(object|null)"};let _u=class M_{constructor(t,e,s={},n={}){this._waitForCharts(t,e,s,n)}async _getChartjs(){const{Chart:t,ArcElement:e,LineElement:s,BarElement:n,PointElement:o,BarController:r,BubbleController:a,DoughnutController:l,LineController:c,PieController:h,PolarAreaController:d,RadarController:u,ScatterController:p,CategoryScale:f,LinearScale:b,LogarithmicScale:v,RadialLinearScale:y,TimeScale:x,TimeSeriesScale:E,Decimation:T,Filler:C,Legend:A,Title:w,Tooltip:S,SubTitle:k}=await Promise.resolve().then(()=>UO);return t.register(e,s,n,o,r,a,l,c,h,d,u,p,f,b,v,y,x,E,T,C,A,w,S,k),t}async _getChartDataLabels(){return await Promise.resolve().then(()=>gD)}async _waitForCharts(t,e,s={},n={}){if(this._Chartjs=await this._getChartjs(),this._ChartDataLabels=await this._getChartDataLabels(),this._element=t,this._data=e,this._options=s,this._type=e.type,this._canvas=null,this._chart=null,this._darkOptions=this._getDarkConfig(n),this._darkModeClassContainer=document.querySelector("html"),this._prevConfig=null,this._observer=null,this._element&&(M.setData(t,zo,this),_.addClass(this._element,CT),this._chartConstructor()),this._darkOptions.darkmodeOff!==null){const o=this._darkOptions.darkMode==="dark"?"dark":this._darkOptions.darkMode==="light"?"light":this.systemColorMode;this._handleMode(o),this._observer=new MutationObserver(this._observerCallback.bind(this)),this._observer.observe(this._darkModeClassContainer,{attributes:!0})}}static get NAME(){return fu}get systemColorMode(){return localStorage.theme||(this._darkModeClassContainer.classList.contains("dark")?"dark":"light")}dispose(){this._observer.disconnect(),M.removeData(this._element,zo),this._element=null}update(t,e){t&&(this._data={...this._data,...t},this._chart.data=this._data);const s=Object.prototype.hasOwnProperty.call(e,"options")?e:{options:{...e}};this._options=tl(this._options,s),this._chart.options=el(this._options,this._type,Zs).options,this._chart.update()}setTheme(t){t!=="dark"&&t!=="light"||!this._data||this._handleMode(t)}_getDarkConfig(t){let e={};const s=_.getDataAttributes(this._element);Object.keys(s).forEach(c=>c.startsWith("dark")&&(e[c]=s[c])),e={...AT,...e};const n={y:{ticks:{color:e.darkTicksColor},grid:{color:e.darkGridLinesColor}},x:{ticks:{color:e.darkTicksColor},grid:{color:e.darkGridLinesColor}}},o={r:{ticks:{color:e.darkTicksColor,backdropColor:e.darkBgColor},grid:{color:e.darkGridLinesColor},pointLabels:{color:e.darkTicksColor}}},l={scales:["pie","doughnut","polarArea","radar"].includes(this._type)?["polarArea","radar"].includes(this._type)?o:{}:n,plugins:{legend:{labels:{color:e.darkLabelColor}}}};return t={...e,options:{...l},...t},P(fu,t,wT),t}_chartConstructor(){if(this._data){this._createCanvas();const t=el(this._options,this._type,Zs),e=[];t.dataLabelsPlugin&&e.push(this._ChartDataLabels.default),this._prevConfig=t,this._chart=new this._Chartjs(this._canvas,{...this._data,...t,plugins:e})}}_createCanvas(){this._canvas||(this._element.nodeName==="CANVAS"?this._canvas=this._element:(this._canvas=L("canvas"),this._element.appendChild(this._canvas)))}_handleMode(t){t==="dark"?(this._changeDatasetBorderColor(),this.update(null,this._darkOptions.options)):(this._changeDatasetBorderColor(!1),this._prevConfig&&this.update(null,this._prevConfig))}_observerCallback(t){for(const e of t)e.type==="attributes"&&this._handleMode(this.systemColorMode)}_changeDatasetBorderColor(t=!0){[...this._data.data.datasets].forEach(e=>["pie","doughnut","polarArea"].includes(this._type)&&(e.borderColor=t?this._darkOptions.darkBgColor:this._darkOptions.darkBgColorLight))}static jQueryInterface(t,e,s){return this.each(function(){let n=M.getData(this,zo);if(!(!n&&/dispose/.test(t))){if(!n){const o=e?el(e,s,Zs):Zs[s];n=new M_(this,{...t,...o})}if(typeof t=="string"){if(typeof n[t]>"u")throw new TypeError(`No method named "${t}"`);n[t](e,s)}}})}static getInstance(t){return M.getData(t,zo)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,typeof e=="object"?e:null)}};/*! +
`,tr="chip",FE=`te.${tr}`,Ku="data-te-chip-close",kl=`[${Ku}]`,WE="delete.te.chips",zE="select.te.chip",jE=' ',YE={text:"string",closeIcon:"boolean",img:"object",iconSVG:"string"},KE={text:"",closeIcon:!1,img:{path:"",alt:""},iconSVG:jE},UE={icon:"float-right pl-[8px] text-[16px] opacity-[.53] cursor-pointer fill-[#afafaf] hover:text-[#8b8b8b] transition-all duration-200 ease-in-out",chipElement:"flex justify-between items-center h-[32px] leading-loose py-[5px] px-[12px] mr-4 my-[5px] text-[13px] font-normal text-[#4f4f4f] cursor-pointer bg-[#eceff1] dark:text-white dark:bg-neutral-600 rounded-[16px] transition-[opacity] duration-300 ease-linear [word-wrap: break-word] shadow-none normal-case hover:!shadow-none active:bg-[#cacfd1] inline-block font-medium leading-normal text-[#4f4f4f] text-center no-underline align-middle cursor-pointer select-none border-[.125rem] border-solid border-transparent py-1.5 px-3 text-xs rounded",chipCloseIcon:"w-4 float-right pl-[8px] text-[16px] opacity-[.53] cursor-pointer fill-[#afafaf] hover:fill-[#8b8b8b] dark:fill-gray-400 dark:hover:fill-gray-100 transition-all duration-200 ease-in-out"},XE={icon:"string",chipElement:"string",chipCloseIcon:"string"};class Ai{constructor(t,e={},i){this._element=t,this._options=this._getConfig(e),this._classes=this._getClasses(i)}static get NAME(){return tr}init(){this._appendCloseIcon(),this._handleDelete(),this._handleTextChip(),this._handleClickOnChip()}dispose(){this._element=null,this._options=null,_.off(this._element,"click")}appendChip(){const{text:t,closeIcon:e,iconSVG:i}=this._options;return VE({text:t,closeIcon:e,iconSVG:i},this._classes)}_appendCloseIcon(t=this._element){if(!(m.find(kl,this._element).length>0)&&this._options.closeIcon){const e=$("span");e.classList=this._classes.icon,e.setAttribute(Ku),e.innerHTML=this._options.iconSVG,t.insertAdjacentElement("beforeend",e)}}_handleClickOnChip(){_.on(this._element,"click",t=>{const{textContent:e}=t.target,i={};i.tag=e.trim(),_.trigger(zE,{event:t,obj:i})})}_handleDelete(){m.find(kl,this._element).length!==0&&_.on(this._element,"click",kl,()=>{_.trigger(this._element,WE),this._element.remove()})}_handleTextChip(){this._element.innerText===""&&(this._element.innerText=this._options.text)}_getConfig(t){const e={...KE,...g.getDataAttributes(this._element),...t};return L(tr,e,YE),e}_getClasses(t){const e=g.getDataClassAttributes(this._element);return t={...UE,...e,...t},L(tr,t,XE),t}static getInstance(t){return D.getData(t,FE)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,typeof e=="object"?e:null)}}const sn="chips",nn=`data-te-${sn}`,Uu=`te.${sn}`,GE=`${nn}-input-init`,Ft=`${nn}-active`,Xu=`${nn}-initial`,Gu=`${nn}-placeholder`,qE=`${nn}-input-wrapper`,Sl="data-te-chip-init",qu="data-te-chip-close",Zu="data-te-chip-text",ZE=`[${Ft}]`,Ol=`[${Sl}]`,QE=`${Ol}${ZE}`,Dl=`[${qu}]`,JE=`[${qE}]`,tx=`[${Zu}]`,ex=`[${Gu}]`,ix="data-te-input-notch-leading-ref",sx="data-te-input-notch-middle-ref",nx=`[${ix}]`,ox=`[${sx}]`,ls="data-te-input-state-active",Il="[data-te-input-notch-ref]",rx="add.te.chips",ax="arrowDown.te.chips",lx="arrowLeft.te.chips",cx="arrowRight.te.chips",hx="arrowUp.te.chips",Qu="delete.te.chips",Ju="select.te.chips",dx={inputID:"string",parentSelector:"string",initialValues:"array",editable:"boolean",labelText:"string",inputClasses:"object",inputOptions:"object"},ux={inputID:Et("chips-input-"),parentSelector:"",initialValues:[{tag:"init1"},{tag:"init2"}],editable:!1,labelText:"Example label",inputClasses:{},inputOptions:{}},px={opacity:"opacity-0",inputWrapperPadding:"p-[5px]",transition:"transition-all duration-300 ease-[cubic-bezier(0.25,0.1,0.25,1)]",contentEditable:"outline-none !border-[3px] !border-solid !border-[#b2b3b4]",chipsInputWrapper:"relative flex items-center flex-wrap transition-all duration-300 ease-[cubic-bezier(0.25,0.1,0.25,1)]",chipsInput:"peer block min-h-[auto] w-[150px] rounded border-0 bg-transparent py-[0.32rem] px-3 leading-[1.6] outline-none transition-all duration-200 ease-linear focus:placeholder:opacity-100 data-[te-input-state-active]:placeholder:opacity-100 motion-reduce:transition-none dark:text-gray-200 dark:placeholder:text-gray-200 [&:not([data-te-input-placeholder-active])]:placeholder:opacity-0",chipsLabel:"pointer-events-none absolute top-0 left-3 mb-0 max-w-[90%] origin-[0_0] truncate pt-[0.37rem] leading-[1.6] text-gray-500 transition-all duration-200 ease-out peer-focus:-translate-y-[0.9rem] peer-focus:scale-[0.8] peer-focus:text-primary peer-data-[te-input-state-active]:-translate-y-[0.9rem] peer-data-[te-input-state-active]:scale-[0.8] motion-reduce:transition-none dark:text-gray-200 dark:peer-focus:text-gray-200"},fx={opacity:"string",inputWrapperPadding:"string",transition:"string",contentEditable:"string",chipsInputWrapper:"string",chipsInput:"string",chipsLabel:"string"};class tp extends Ai{constructor(e,i={},n){super(e,i);we(this,"_handleBlurInput",({target:e})=>{e.value.length>0&&this._handleCreateChip(e,e.value),this.allChips.length>0?(e.setAttribute(Ft,""),this.input.setAttribute(ls,""),m.findOne(Il,this.input.parentNode).setAttribute(ls,""),this.chipsInputWrapper.classList.add(...this._classes.inputWrapperPadding.split(" "))):(e.removeAttribute(Ft),this.input.removeAttribute(ls),m.findOne(Il,this.input.parentNode).removeAttribute(ls),this.chipsInputWrapper.classList.remove(...this._classes.inputWrapperPadding.split(" "))),this.allChips.forEach(i=>i.removeAttribute(Ft))});this._element=e,this._inputInstance=null,this._element&&D.setData(e,Uu,this),this._options=this._getConfig(i),this._classes=this._getClasses(n),this.numberClicks=0,this.init()}static get NAME(){return sn}get activeChip(){return m.findOne(QE,this._element)}get input(){return m.findOne("input",this._element)}get allChips(){return m.find(Ol,this._element)}get chipsInputWrapper(){return m.findOne(JE,this._element)}init(){this._setChipsClass(),this._appendInputToElement(Gu),this._handleInitialValue(),this._handleInputText(),this._handleKeyboard(),this._handleChipsOnSelect(),this._handleEditable(),this._handleChipsFocus(),this._handleClicksOnChips(),this._inputInstance._getLabelWidth(),this._inputInstance._applyNotch()}dispose(){this._element=null,this._options=null}_getNotchData(){this._notchMiddle=m.findOne(ox,this._element),this._notchLeading=m.findOne(nx,this._element)}_setChipsClass(){this._element.setAttribute(GE,"")}_handleDeleteEvents(e){const[i]=this.allChips.slice(-1);if(this.activeChip===null)i.remove(),this._handleEvents(e,Qu);else{const n=this.allChips.findIndex(a=>a===this.activeChip),o=this._handleActiveChipAfterRemove(n),r=[];if(this.activeChip===null)return;this.activeChip.remove(),this._handleEvents(e,Qu),this.numberClicks=n,o.setAttribute(Ft,""),this.allChips.forEach(a=>{a.hasAttribute(Ft)&&(r.push(a),r.length>1&&this.allChips.forEach(l=>l.remove()))})}}_handleUpEvents(e){this.numberClicks+=1,this.numberClicks===this.allChips.length+1&&(this.numberClicks=0),this._handleRightKeyboardArrow(this.numberClicks),this._handleEvents(e,cx),this._handleEvents(e,hx)}_handleDownEvents(e){this.numberClicks-=1,this.numberClicks<=0&&(this.numberClicks=this.allChips.length),this._handleLeftKeyboardArrow(this.numberClicks),this._handleEvents(e,lx),this._handleEvents(e,ax)}_keyboardEvents(e){const{target:i,keyCode:n,ctrlKey:o}=e;i.value.length>0||this.allChips.length===0||(n===by||n===vy?this._handleDeleteEvents(e):n===os||n===At?this._handleUpEvents(e):n===ns||n===ut?this._handleDownEvents(e):n===65&&o&&this._handleAddActiveClass())}_handleKeyboard(){_.on(this.input,"keydown",e=>this._keyboardEvents(e))}_handleEditable(){const{editable:e}=this._options;e&&this.allChips.forEach(i=>{_.on(i,"dblclick",n=>{const o=m.findOne(Dl,i);i.classList.add(...this._classes.contentEditable.split(" ")),i.contentEditable=!0,i.focus(),setTimeout(()=>{g.addStyle(o,{display:"none"})},200),o.classList.add(...this._classes.opacity.split(" ")),n.target.textContent,_.trigger(i,Ju,{event:n,allChips:this.allChips})}),_.on(document,"click",({target:n})=>{const o=m.findOne(Dl,i),r=m.findOne(tx,i),a=n===i,l=i&&i.contains(n);!a&&!l&&(i.contentEditable=!1,i.classList.remove(...this._classes.contentEditable.split(" ")),r.textContent!==""&&setTimeout(()=>{g.addStyle(o,{display:"block"}),o.classList.remove(...this._classes.opacity.split(" "))},160)),r.textContent===""&&(setTimeout(()=>{i.classList.add(...this._classes.opacity.split(" "))},200),setTimeout(()=>{i.remove()},300))})})}_handleRemoveActiveClass(){this.allChips.forEach(e=>e.removeAttribute(Ft))}_handleAddActiveClass(){this.allChips.forEach(e=>e.setAttribute(Ft,""))}_handleRightKeyboardArrow(e){this._handleRemoveActiveClass(),e===0&&(e=1),this._handleAddActiveClassWithKebyboard(e)}_handleLeftKeyboardArrow(e){this._handleRemoveActiveClass(),this._handleAddActiveClassWithKebyboard(e)}_handleActiveChipAfterRemove(e){const i=e===0?1:e-1;return this.allChips[i]}_handleClicksOnChips(){_.on(this._element,"click",()=>{this.allChips.length===0&&(this.chipsInputWrapper.classList.remove(...this._classes.inputWrapperPadding.split(" ")),this.input.removeAttribute(Ft))})}_handleTextContent(){const e=[];return this.allChips.forEach(i=>e.push({tag:i.textContent.trim()})),e}_handleEvents(e,i){const n=this._handleTextContent(),o=this.allChips.filter(r=>r.hasAttribute(Ft)&&r);_.trigger(this._element,i,{event:e,allChips:this.allChips,arrOfObjects:n,active:o,activeObj:{tag:o.length<=0?"":o[0].textContent.trim()}})}_handleChipsFocus(){_.on(this._element,"click",({target:{attributes:e}})=>{const i=[...e];i.includes(Sl)||i.includes(qu)||i.includes(Zu)||this.input.focus()})}_handleInitialValue(){if(this._appendInputToElement(Xu),this._element.hasAttribute(Xu)){const{initialValues:e}=this._options;e.forEach(({tag:i})=>this._handleCreateChip(this.input,i)),m.findOne(Il,this.input.parentNode).setAttribute(ls,""),this.input.setAttribute(Ft,""),this.input.setAttribute(ls,"")}this.allChips.length>0&&(this.chipsInputWrapper.classList.add(...this._classes.inputWrapperPadding.split(" ")),this.chipsInputWrapper.classList.add(...this._classes.transition.split(" ")))}_handleKeysInputToElement(e){const{keyCode:i,target:n}=e;if(n.hasAttribute(Sl)){const o=m.findOne(Dl,n);i===Pt&&(n.contentEditable=!1,n.classList.remove(...this._classes.contentEditable.split(" ")),n.textContent!==""?setTimeout(()=>{g.addStyle(o,{display:"block"}),o.classList.remove(...this._classes.opacity.split(" "))},160):n.textContent===""&&(setTimeout(()=>{n.classList.add(...this._classes.opacity.split(" "))},200),setTimeout(()=>{n.remove()},300)));return}if(i===Pt){if(n.value==="")return;this._handleCreateChip(n,n.value),this._handleRemoveActiveClass(),this.numberClicks=this.allChips.length+1,this._handleEvents(e,rx)}this.allChips.length>0?(this.chipsInputWrapper.classList.add(...this._classes.inputWrapperPadding.split(" ")),this.chipsInputWrapper.classList.add(...this._classes.transition.split(" "))):this.chipsInputWrapper.classList.remove(...this._classes.inputWrapperPadding.split(" "))}_handleInputText(){const e=m.findOne(ex,this._element);_.on(this._element,"keyup",e,i=>this._handleKeysInputToElement(i)),_.on(this.input,"blur",i=>this._handleBlurInput(i))}_appendInputToElement(e){if(!this._element.hasAttribute(e))return;const i=HE(this._options,this._classes);this._element.insertAdjacentHTML("beforeend",i);const n=m.findOne("[data-te-chips-input-wrapper]",this._element);this._inputInstance=new Z(n,this._options.inputOptions,this._options.inputClasses)}_handleCreateChip(e,i){const n=$("div"),o=Ai.getInstance(n),r=new Ai(o,{text:i},this._classes);this._options.parentSelector!==""?document.querySelector(this._options.parentSelector).insertAdjacentHTML("beforeend",r.appendChip()):e.insertAdjacentHTML("beforebegin",r.appendChip()),e.value="",m.find(Ol).forEach(a=>{let l=Ai.getInstance(a);return l||(l=new Ai(a,{},this._classes)),l.init()}),this._handleEditable()}_handleChipsOnSelect(){this.allChips.forEach(e=>{_.on(this._element,"click",i=>{_.trigger(e,Ju,{event:i,allChips:this.allChips})})})}_handleAddActiveClassWithKebyboard(e){let i;this.allChips[e-1]===void 0?i=this.allChips[e-2]:i=this.allChips[e-1],i.setAttribute(Ft)}_getConfig(e){const i={...ux,...g.getDataAttributes(this._element),...e};return L(sn,i,dx),i}_getClasses(e){const i=g.getDataClassAttributes(this._element);return e={...px,...i,...e},L(sn,e,fx),e}static getInstance(e){return D.getData(e,Uu)}static getOrCreateInstance(e,i={}){return this.getInstance(e)||new this(e,typeof i=="object"?i:null)}}const Ge={plugins:{legend:{labels:{color:"rgb(102,102,102)"}}}},on={line:{options:{...Ge,elements:{line:{backgroundColor:"rgba(59, 112, 202, 0.0)",borderColor:"rgb(59, 112, 202)",borderWidth:2,tension:0},point:{borderColor:"rgb(59, 112, 202)",backgroundColor:"rgb(59, 112, 202)"}},responsive:!0,legend:{display:!0},tooltips:{intersect:!1,mode:"index"},datasets:{borderColor:"red"},scales:{x:{stacked:!0,grid:{display:!1},ticks:{fontColor:"rgba(0,0,0, 0.5)"}},y:{stacked:!1,grid:{borderDash:[2],drawBorder:!1,zeroLineColor:"rgba(0,0,0,0)",zeroLineBorderDash:[2],zeroLineBorderDashOffset:[2]},ticks:{fontColor:"rgba(0,0,0, 0.5)"}}}}},bar:{options:{...Ge,backgroundColor:"rgb(59, 112, 202)",borderWidth:0,responsive:!0,legend:{display:!0},tooltips:{intersect:!1,mode:"index"},scales:{x:{stacked:!0,grid:{display:!1},ticks:{fontColor:"rgba(0,0,0, 0.5)"}},y:{stacked:!0,grid:{borderDash:[2],drawBorder:!1,zeroLineColor:"rgba(0,0,0,0)",zeroLineBorderDash:[2],zeroLineBorderDashOffset:[2]},ticks:{fontColor:"rgba(0,0,0, 0.5)"}}}}},pie:{options:{...Ge,elements:{arc:{backgroundColor:"rgb(59, 112, 202)"}},responsive:!0,legend:{display:!0}}},doughnut:{options:{...Ge,elements:{arc:{backgroundColor:"rgb(59, 112, 202)"}},responsive:!0,legend:{display:!0}}},polarArea:{options:{...Ge,elements:{arc:{backgroundColor:"rgba(59, 112, 202, 0.5)"}},responsive:!0,legend:{display:!0}}},radar:{options:{...Ge,elements:{line:{backgroundColor:"rgba(59, 112, 202, 0.5)",borderColor:"rgb(59, 112, 202)",borderWidth:2},point:{borderColor:"rgb(59, 112, 202)",backgroundColor:"rgb(59, 112, 202)"}},responsive:!0,legend:{display:!0}}},scatter:{options:{...Ge,elements:{line:{backgroundColor:"rgba(59, 112, 202, 0.5)",borderColor:"rgb(59, 112, 202)",borderWidth:2,tension:0},point:{borderColor:"rgb(59, 112, 202)",backgroundColor:"rgba(59, 112, 202, 0.5)"}},responsive:!0,legend:{display:!0},tooltips:{intersect:!1,mode:"index"},datasets:{borderColor:"red"},scales:{x:{stacked:!0,grid:{display:!1},ticks:{fontColor:"rgba(0,0,0, 0.5)"}},y:{stacked:!1,grid:{borderDash:[2],drawBorder:!1,zeroLineColor:"rgba(0,0,0,0)",zeroLineBorderDash:[2],zeroLineBorderDashOffset:[2]},ticks:{fontColor:"rgba(0,0,0, 0.5)"}}}}},bubble:{options:{...Ge,elements:{point:{borderColor:"rgb(59, 112, 202)",backgroundColor:"rgba(59, 112, 202, 0.5)"}},responsive:!0,legend:{display:!0},scales:{x:{grid:{display:!1},ticks:{fontColor:"rgba(0,0,0, 0.5)"}},y:{grid:{borderDash:[2],drawBorder:!1,zeroLineColor:"rgba(0,0,0,0)",zeroLineBorderDash:[2],zeroLineBorderDashOffset:[2]},ticks:{fontColor:"rgba(0,0,0, 0.5)"}}}}}};var _x=function(t){return gx(t)&&!mx(t)};function gx(s){return!!s&&typeof s=="object"}function mx(s){var t=Object.prototype.toString.call(s);return t==="[object RegExp]"||t==="[object Date]"||yx(s)}var bx=typeof Symbol=="function"&&Symbol.for,vx=bx?Symbol.for("react.element"):60103;function yx(s){return s.$$typeof===vx}function Tx(s){return Array.isArray(s)?[]:{}}function rn(s,t){return t.clone!==!1&&t.isMergeableObject(s)?cs(Tx(s),s,t):s}function Ex(s,t,e){return s.concat(t).map(function(i){return rn(i,e)})}function xx(s,t){if(!t.customMerge)return cs;var e=t.customMerge(s);return typeof e=="function"?e:cs}function Cx(s){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(s).filter(function(t){return Object.propertyIsEnumerable.call(s,t)}):[]}function ep(s){return Object.keys(s).concat(Cx(s))}function ip(s,t){try{return t in s}catch{return!1}}function Ax(s,t){return ip(s,t)&&!(Object.hasOwnProperty.call(s,t)&&Object.propertyIsEnumerable.call(s,t))}function wx(s,t,e){var i={};return e.isMergeableObject(s)&&ep(s).forEach(function(n){i[n]=rn(s[n],e)}),ep(t).forEach(function(n){Ax(s,n)||(ip(s,n)&&e.isMergeableObject(t[n])?i[n]=xx(n,e)(s[n],t[n],e):i[n]=rn(t[n],e))}),i}function cs(s,t,e){e=e||{},e.arrayMerge=e.arrayMerge||Ex,e.isMergeableObject=e.isMergeableObject||_x,e.cloneUnlessOtherwiseSpecified=rn;var i=Array.isArray(t),n=Array.isArray(s),o=i===n;return o?i?e.arrayMerge(s,t,e):wx(s,t,e):rn(t,e)}cs.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(i,n){return cs(i,n,e)},{})};var kx=cs,Ml=kx;const sp="chart",er="te.chart",Sx="chart",Ll=(s,t,e)=>{const i=(n,o,r)=>{const a=n.slice();return o.forEach((l,c)=>{typeof a[c]>"u"?a[c]=r.cloneUnlessOtherwiseSpecified(l,r):r.isMergeableObject(l)?a[c]=Ml(n[c],l,r):n.indexOf(l)===-1&&a.push(l)}),a};return Ml(e[t],s,{arrayMerge:i})},Ox={darkTicksColor:"#fff",darkLabelColor:"#fff",darkGridLinesColor:"#555",darkmodeOff:"undefined",darkMode:null,darkBgColor:"#262626",darkBgColorLight:"#fff",options:null},Dx={darkTicksColor:"string",darkLabelColor:"string",darkGridLinesColor:"string",darkmodeOff:"(string|null)",darkMode:"(string|null)",darkBgColor:"string",darkBgColorLight:"string",options:"(object|null)"};let np=class Rg{constructor(t,e,i={},n={}){this._waitForCharts(t,e,i,n)}async _getChartjs(){const{Chart:t,ArcElement:e,LineElement:i,BarElement:n,PointElement:o,BarController:r,BubbleController:a,DoughnutController:l,LineController:c,PieController:h,PolarAreaController:d,RadarController:u,ScatterController:p,CategoryScale:f,LinearScale:b,LogarithmicScale:v,RadialLinearScale:y,TimeScale:T,TimeSeriesScale:x,Decimation:E,Filler:C,Legend:A,Title:w,Tooltip:S,SubTitle:k}=await Promise.resolve().then(()=>G1);return t.register(e,i,n,o,r,a,l,c,h,d,u,p,f,b,v,y,T,x,E,C,A,w,S,k),t}async _getChartDataLabels(){return await Promise.resolve().then(()=>bM)}async _waitForCharts(t,e,i={},n={}){if(this._Chartjs=await this._getChartjs(),this._ChartDataLabels=await this._getChartDataLabels(),this._element=t,this._data=e,this._options=i,this._type=e.type,this._canvas=null,this._chart=null,this._darkOptions=this._getDarkConfig(n),this._darkModeClassContainer=document.querySelector("html"),this._prevConfig=null,this._observer=null,this._element&&(D.setData(t,er,this),g.addClass(this._element,Sx),this._chartConstructor()),this._darkOptions.darkmodeOff!==null){const o=this._darkOptions.darkMode==="dark"?"dark":this._darkOptions.darkMode==="light"?"light":this.systemColorMode;this._handleMode(o),this._observer=new MutationObserver(this._observerCallback.bind(this)),this._observer.observe(this._darkModeClassContainer,{attributes:!0})}}static get NAME(){return sp}get systemColorMode(){return localStorage.theme||(this._darkModeClassContainer.classList.contains("dark")?"dark":"light")}dispose(){this._observer.disconnect(),D.removeData(this._element,er),this._element=null}update(t,e){t&&(this._data={...this._data,...t},this._chart.data=this._data);const i=Object.prototype.hasOwnProperty.call(e,"options")?e:{options:{...e}};this._options=Ml(this._options,i),this._chart.options=Ll(this._options,this._type,on).options,this._chart.update()}setTheme(t){t!=="dark"&&t!=="light"||!this._data||this._handleMode(t)}_getDarkConfig(t){let e={};const i=g.getDataAttributes(this._element);Object.keys(i).forEach(c=>c.startsWith("dark")&&(e[c]=i[c])),e={...Ox,...e};const n={y:{ticks:{color:e.darkTicksColor},grid:{color:e.darkGridLinesColor}},x:{ticks:{color:e.darkTicksColor},grid:{color:e.darkGridLinesColor}}},o={r:{ticks:{color:e.darkTicksColor,backdropColor:e.darkBgColor},grid:{color:e.darkGridLinesColor},pointLabels:{color:e.darkTicksColor}}},l={scales:["pie","doughnut","polarArea","radar"].includes(this._type)?["polarArea","radar"].includes(this._type)?o:{}:n,plugins:{legend:{labels:{color:e.darkLabelColor}}}};return t={...e,options:{...l},...t},L(sp,t,Dx),t}_chartConstructor(){if(this._data){this._createCanvas();const t=Ll(this._options,this._type,on),e=[];t.dataLabelsPlugin&&e.push(this._ChartDataLabels.default),this._prevConfig=t,this._chart=new this._Chartjs(this._canvas,{...this._data,...t,plugins:e})}}_createCanvas(){this._canvas||(this._element.nodeName==="CANVAS"?this._canvas=this._element:(this._canvas=$("canvas"),this._element.appendChild(this._canvas)))}_handleMode(t){t==="dark"?(this._changeDatasetBorderColor(),this.update(null,this._darkOptions.options)):(this._changeDatasetBorderColor(!1),this._prevConfig&&this.update(null,this._prevConfig))}_observerCallback(t){for(const e of t)e.type==="attributes"&&this._handleMode(this.systemColorMode)}_changeDatasetBorderColor(t=!0){[...this._data.data.datasets].forEach(e=>["pie","doughnut","polarArea"].includes(this._type)&&(e.borderColor=t?this._darkOptions.darkBgColor:this._darkOptions.darkBgColorLight))}static jQueryInterface(t,e,i){return this.each(function(){let n=D.getData(this,er);if(!(!n&&/dispose/.test(t))){if(!n){const o=e?Ll(e,i,on):on[i];n=new Rg(this,{...t,...o})}if(typeof t=="string"){if(typeof n[t]>"u")throw new TypeError(`No method named "${t}"`);n[t](e,i)}}})}static getInstance(t){return D.getData(t,er)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,typeof e=="object"?e:null)}};/*! * perfect-scrollbar v1.5.3 * Copyright 2021 Hyunje Jun, MDBootstrap and Contributors * Licensed under MIT - */function ge(i){return getComputedStyle(i)}function wt(i,t){for(var e in t){var s=t[e];typeof s=="number"&&(s=s+"px"),i.style[e]=s}return i}function Yo(i){var t=document.createElement("div");return t.className=i,t}var gu=typeof Element<"u"&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function qe(i,t){if(!gu)throw new Error("No element matching method supported");return gu.call(i,t)}function as(i){i.remove?i.remove():i.parentNode&&i.parentNode.removeChild(i)}function mu(i,t){return Array.prototype.filter.call(i.children,function(e){return qe(e,t)})}var at={main:"ps",rtl:"ps__rtl",element:{thumb:function(i){return"ps__thumb-"+i},rail:function(i){return"ps__rail-"+i},consuming:"ps__child--consume"},state:{focus:"ps--focus",clicking:"ps--clicking",active:function(i){return"ps--active-"+i},scrolling:function(i){return"ps--scrolling-"+i}}},bu={x:null,y:null};function vu(i,t){var e=i.element.classList,s=at.state.scrolling(t);e.contains(s)?clearTimeout(bu[t]):e.add(s)}function yu(i,t){bu[t]=setTimeout(function(){return i.isAlive&&i.element.classList.remove(at.state.scrolling(t))},i.settings.scrollingThreshold)}function kT(i,t){vu(i,t),yu(i,t)}var Js=function(t){this.element=t,this.handlers={}},xu={isEmpty:{configurable:!0}};Js.prototype.bind=function(t,e){typeof this.handlers[t]>"u"&&(this.handlers[t]=[]),this.handlers[t].push(e),this.element.addEventListener(t,e,!1)},Js.prototype.unbind=function(t,e){var s=this;this.handlers[t]=this.handlers[t].filter(function(n){return e&&n!==e?!0:(s.element.removeEventListener(t,n,!1),!1)})},Js.prototype.unbindAll=function(){for(var t in this.handlers)this.unbind(t)},xu.isEmpty.get=function(){var i=this;return Object.keys(this.handlers).every(function(t){return i.handlers[t].length===0})},Object.defineProperties(Js.prototype,xu);var ls=function(){this.eventElements=[]};ls.prototype.eventElement=function(t){var e=this.eventElements.filter(function(s){return s.element===t})[0];return e||(e=new Js(t),this.eventElements.push(e)),e},ls.prototype.bind=function(t,e,s){this.eventElement(t).bind(e,s)},ls.prototype.unbind=function(t,e,s){var n=this.eventElement(t);n.unbind(e,s),n.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(n),1)},ls.prototype.unbindAll=function(){this.eventElements.forEach(function(t){return t.unbindAll()}),this.eventElements=[]},ls.prototype.once=function(t,e,s){var n=this.eventElement(t),o=function(r){n.unbind(e,o),s(r)};n.bind(e,o)};function jo(i){if(typeof window.CustomEvent=="function")return new CustomEvent(i);var t=document.createEvent("CustomEvent");return t.initCustomEvent(i,!1,!1,void 0),t}function Ko(i,t,e,s,n){s===void 0&&(s=!0),n===void 0&&(n=!1);var o;if(t==="top")o=["contentHeight","containerHeight","scrollTop","y","up","down"];else if(t==="left")o=["contentWidth","containerWidth","scrollLeft","x","left","right"];else throw new Error("A proper axis should be provided");ST(i,e,o,s,n)}function ST(i,t,e,s,n){var o=e[0],r=e[1],a=e[2],l=e[3],c=e[4],h=e[5];s===void 0&&(s=!0),n===void 0&&(n=!1);var d=i.element;i.reach[l]=null,d[a]<1&&(i.reach[l]="start"),d[a]>i[o]-i[r]-1&&(i.reach[l]="end"),t&&(d.dispatchEvent(jo("ps-scroll-"+l)),t<0?d.dispatchEvent(jo("ps-scroll-"+c)):t>0&&d.dispatchEvent(jo("ps-scroll-"+h)),s&&kT(i,l)),i.reach[l]&&(t||n)&&d.dispatchEvent(jo("ps-"+l+"-reach-"+i.reach[l]))}function it(i){return parseInt(i,10)||0}function OT(i){return qe(i,"input,[contenteditable]")||qe(i,"select,[contenteditable]")||qe(i,"textarea,[contenteditable]")||qe(i,"button,[contenteditable]")}function DT(i){var t=ge(i);return it(t.width)+it(t.paddingLeft)+it(t.paddingRight)+it(t.borderLeftWidth)+it(t.borderRightWidth)}var cs={isWebKit:typeof document<"u"&&"WebkitAppearance"in document.documentElement.style,supportsTouch:typeof window<"u"&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&window.navigator.maxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:typeof navigator<"u"&&navigator.msMaxTouchPoints,isChrome:typeof navigator<"u"&&/Chrome/i.test(navigator&&navigator.userAgent)};function ke(i){var t=i.element,e=Math.floor(t.scrollTop),s=t.getBoundingClientRect();i.containerWidth=Math.round(s.width),i.containerHeight=Math.round(s.height),i.contentWidth=t.scrollWidth,i.contentHeight=t.scrollHeight,t.contains(i.scrollbarXRail)||(mu(t,at.element.rail("x")).forEach(function(n){return as(n)}),t.appendChild(i.scrollbarXRail)),t.contains(i.scrollbarYRail)||(mu(t,at.element.rail("y")).forEach(function(n){return as(n)}),t.appendChild(i.scrollbarYRail)),!i.settings.suppressScrollX&&i.containerWidth+i.settings.scrollXMarginOffset=i.railXWidth-i.scrollbarXWidth&&(i.scrollbarXLeft=i.railXWidth-i.scrollbarXWidth),i.scrollbarYTop>=i.railYHeight-i.scrollbarYHeight&&(i.scrollbarYTop=i.railYHeight-i.scrollbarYHeight),IT(t,i),i.scrollbarXActive?t.classList.add(at.state.active("x")):(t.classList.remove(at.state.active("x")),i.scrollbarXWidth=0,i.scrollbarXLeft=0,t.scrollLeft=i.isRtl===!0?i.contentWidth:0),i.scrollbarYActive?t.classList.add(at.state.active("y")):(t.classList.remove(at.state.active("y")),i.scrollbarYHeight=0,i.scrollbarYTop=0,t.scrollTop=0)}function Tu(i,t){return i.settings.minScrollbarLength&&(t=Math.max(t,i.settings.minScrollbarLength)),i.settings.maxScrollbarLength&&(t=Math.min(t,i.settings.maxScrollbarLength)),t}function IT(i,t){var e={width:t.railXWidth},s=Math.floor(i.scrollTop);t.isRtl?e.left=t.negativeScrollAdjustment+i.scrollLeft+t.containerWidth-t.contentWidth:e.left=i.scrollLeft,t.isScrollbarXUsingBottom?e.bottom=t.scrollbarXBottom-s:e.top=t.scrollbarXTop+s,wt(t.scrollbarXRail,e);var n={top:s,height:t.railYHeight};t.isScrollbarYUsingRight?t.isRtl?n.right=t.contentWidth-(t.negativeScrollAdjustment+i.scrollLeft)-t.scrollbarYRight-t.scrollbarYOuterWidth-9:n.right=t.scrollbarYRight-i.scrollLeft:t.isRtl?n.left=t.negativeScrollAdjustment+i.scrollLeft+t.containerWidth*2-t.contentWidth-t.scrollbarYLeft-t.scrollbarYOuterWidth:n.left=t.scrollbarYLeft+i.scrollLeft,wt(t.scrollbarYRail,n),wt(t.scrollbarX,{left:t.scrollbarXLeft,width:t.scrollbarXWidth-t.railBorderXWidth}),wt(t.scrollbarY,{top:t.scrollbarYTop,height:t.scrollbarYHeight-t.railBorderYWidth})}function MT(i){i.element,i.event.bind(i.scrollbarY,"mousedown",function(t){return t.stopPropagation()}),i.event.bind(i.scrollbarYRail,"mousedown",function(t){var e=t.pageY-window.pageYOffset-i.scrollbarYRail.getBoundingClientRect().top,s=e>i.scrollbarYTop?1:-1;i.element.scrollTop+=s*i.containerHeight,ke(i),t.stopPropagation()}),i.event.bind(i.scrollbarX,"mousedown",function(t){return t.stopPropagation()}),i.event.bind(i.scrollbarXRail,"mousedown",function(t){var e=t.pageX-window.pageXOffset-i.scrollbarXRail.getBoundingClientRect().left,s=e>i.scrollbarXLeft?1:-1;i.element.scrollLeft+=s*i.containerWidth,ke(i),t.stopPropagation()})}function LT(i){Eu(i,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),Eu(i,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])}function Eu(i,t){var e=t[0],s=t[1],n=t[2],o=t[3],r=t[4],a=t[5],l=t[6],c=t[7],h=t[8],d=i.element,u=null,p=null,f=null;function b(x){x.touches&&x.touches[0]&&(x[n]=x.touches[0].pageY),d[l]=u+f*(x[n]-p),vu(i,c),ke(i),x.stopPropagation(),x.type.startsWith("touch")&&x.changedTouches.length>1&&x.preventDefault()}function v(){yu(i,c),i[h].classList.remove(at.state.clicking),i.event.unbind(i.ownerDocument,"mousemove",b)}function y(x,E){u=d[l],E&&x.touches&&(x[n]=x.touches[0].pageY),p=x[n],f=(i[s]-i[e])/(i[o]-i[a]),E?i.event.bind(i.ownerDocument,"touchmove",b):(i.event.bind(i.ownerDocument,"mousemove",b),i.event.once(i.ownerDocument,"mouseup",v),x.preventDefault()),i[h].classList.add(at.state.clicking),x.stopPropagation()}i.event.bind(i[r],"mousedown",function(x){y(x)}),i.event.bind(i[r],"touchstart",function(x){y(x,!0)})}function $T(i){var t=i.element,e=function(){return qe(t,":hover")},s=function(){return qe(i.scrollbarX,":focus")||qe(i.scrollbarY,":focus")};function n(o,r){var a=Math.floor(t.scrollTop);if(o===0){if(!i.scrollbarYActive)return!1;if(a===0&&r>0||a>=i.contentHeight-i.containerHeight&&r<0)return!i.settings.wheelPropagation}var l=t.scrollLeft;if(r===0){if(!i.scrollbarXActive)return!1;if(l===0&&o<0||l>=i.contentWidth-i.containerWidth&&o>0)return!i.settings.wheelPropagation}return!0}i.event.bind(i.ownerDocument,"keydown",function(o){if(!(o.isDefaultPrevented&&o.isDefaultPrevented()||o.defaultPrevented)&&!(!e()&&!s())){var r=document.activeElement?document.activeElement:i.ownerDocument.activeElement;if(r){if(r.tagName==="IFRAME")r=r.contentDocument.activeElement;else for(;r.shadowRoot;)r=r.shadowRoot.activeElement;if(OT(r))return}var a=0,l=0;switch(o.which){case 37:o.metaKey?a=-i.contentWidth:o.altKey?a=-i.containerWidth:a=-30;break;case 38:o.metaKey?l=i.contentHeight:o.altKey?l=i.containerHeight:l=30;break;case 39:o.metaKey?a=i.contentWidth:o.altKey?a=i.containerWidth:a=30;break;case 40:o.metaKey?l=-i.contentHeight:o.altKey?l=-i.containerHeight:l=-30;break;case 32:o.shiftKey?l=i.containerHeight:l=-i.containerHeight;break;case 33:l=i.containerHeight;break;case 34:l=-i.containerHeight;break;case 36:l=i.contentHeight;break;case 35:l=-i.contentHeight;break;default:return}i.settings.suppressScrollX&&a!==0||i.settings.suppressScrollY&&l!==0||(t.scrollTop-=l,t.scrollLeft+=a,ke(i),n(a,l)&&o.preventDefault())}})}function RT(i){var t=i.element;function e(r,a){var l=Math.floor(t.scrollTop),c=t.scrollTop===0,h=l+t.offsetHeight===t.scrollHeight,d=t.scrollLeft===0,u=t.scrollLeft+t.offsetWidth===t.scrollWidth,p;return Math.abs(a)>Math.abs(r)?p=c||h:p=d||u,p?!i.settings.wheelPropagation:!0}function s(r){var a=r.deltaX,l=-1*r.deltaY;return(typeof a>"u"||typeof l>"u")&&(a=-1*r.wheelDeltaX/6,l=r.wheelDeltaY/6),r.deltaMode&&r.deltaMode===1&&(a*=10,l*=10),a!==a&&l!==l&&(a=0,l=r.wheelDelta),r.shiftKey?[-l,-a]:[a,l]}function n(r,a,l){if(!cs.isWebKit&&t.querySelector("select:focus"))return!0;if(!t.contains(r))return!1;for(var c=r;c&&c!==t;){if(c.classList.contains(at.element.consuming))return!0;var h=ge(c);if(l&&h.overflowY.match(/(scroll|auto)/)){var d=c.scrollHeight-c.clientHeight;if(d>0&&(c.scrollTop>0&&l<0||c.scrollTop0))return!0}if(a&&h.overflowX.match(/(scroll|auto)/)){var u=c.scrollWidth-c.clientWidth;if(u>0&&(c.scrollLeft>0&&a<0||c.scrollLeft0))return!0}c=c.parentNode}return!1}function o(r){var a=s(r),l=a[0],c=a[1];if(!n(r.target,l,c)){var h=!1;i.settings.useBothWheelAxes?i.scrollbarYActive&&!i.scrollbarXActive?(c?t.scrollTop-=c*i.settings.wheelSpeed:t.scrollTop+=l*i.settings.wheelSpeed,h=!0):i.scrollbarXActive&&!i.scrollbarYActive&&(l?t.scrollLeft+=l*i.settings.wheelSpeed:t.scrollLeft-=c*i.settings.wheelSpeed,h=!0):(t.scrollTop-=c*i.settings.wheelSpeed,t.scrollLeft+=l*i.settings.wheelSpeed),ke(i),h=h||e(l,c),h&&!r.ctrlKey&&(r.stopPropagation(),r.preventDefault())}}typeof window.onwheel<"u"?i.event.bind(t,"wheel",o):typeof window.onmousewheel<"u"&&i.event.bind(t,"mousewheel",o)}function PT(i){if(!cs.supportsTouch&&!cs.supportsIePointer)return;var t=i.element;function e(f,b){var v=Math.floor(t.scrollTop),y=t.scrollLeft,x=Math.abs(f),E=Math.abs(b);if(E>x){if(b<0&&v===i.contentHeight-i.containerHeight||b>0&&v===0)return window.scrollY===0&&b>0&&cs.isChrome}else if(x>E&&(f<0&&y===i.contentWidth-i.containerWidth||f>0&&y===0))return!0;return!0}function s(f,b){t.scrollTop-=b,t.scrollLeft-=f,ke(i)}var n={},o=0,r={},a=null;function l(f){return f.targetTouches?f.targetTouches[0]:f}function c(f){return f.pointerType&&f.pointerType==="pen"&&f.buttons===0?!1:!!(f.targetTouches&&f.targetTouches.length===1||f.pointerType&&f.pointerType!=="mouse"&&f.pointerType!==f.MSPOINTER_TYPE_MOUSE)}function h(f){if(c(f)){var b=l(f);n.pageX=b.pageX,n.pageY=b.pageY,o=new Date().getTime(),a!==null&&clearInterval(a)}}function d(f,b,v){if(!t.contains(f))return!1;for(var y=f;y&&y!==t;){if(y.classList.contains(at.element.consuming))return!0;var x=ge(y);if(v&&x.overflowY.match(/(scroll|auto)/)){var E=y.scrollHeight-y.clientHeight;if(E>0&&(y.scrollTop>0&&v<0||y.scrollTop0))return!0}if(b&&x.overflowX.match(/(scroll|auto)/)){var T=y.scrollWidth-y.clientWidth;if(T>0&&(y.scrollLeft>0&&b<0||y.scrollLeft0))return!0}y=y.parentNode}return!1}function u(f){if(c(f)){var b=l(f),v={pageX:b.pageX,pageY:b.pageY},y=v.pageX-n.pageX,x=v.pageY-n.pageY;if(d(f.target,y,x))return;s(y,x),n=v;var E=new Date().getTime(),T=E-o;T>0&&(r.x=y/T,r.y=x/T,o=E),e(y,x)&&f.preventDefault()}}function p(){i.settings.swipeEasing&&(clearInterval(a),a=setInterval(function(){if(i.isInitialized){clearInterval(a);return}if(!r.x&&!r.y){clearInterval(a);return}if(Math.abs(r.x)<.01&&Math.abs(r.y)<.01){clearInterval(a);return}if(!i.element){clearInterval(a);return}s(r.x*30,r.y*30),r.x*=.8,r.y*=.8},10))}cs.supportsTouch?(i.event.bind(t,"touchstart",h),i.event.bind(t,"touchmove",u),i.event.bind(t,"touchend",p)):cs.supportsIePointer&&(window.PointerEvent?(i.event.bind(t,"pointerdown",h),i.event.bind(t,"pointermove",u),i.event.bind(t,"pointerup",p)):window.MSPointerEvent&&(i.event.bind(t,"MSPointerDown",h),i.event.bind(t,"MSPointerMove",u),i.event.bind(t,"MSPointerUp",p)))}var NT=function(){return{handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1}},BT={"click-rail":MT,"drag-thumb":LT,keyboard:$T,wheel:RT,touch:PT},tn=function(t,e){var s=this;if(e===void 0&&(e={}),typeof t=="string"&&(t=document.querySelector(t)),!t||!t.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");this.element=t,t.classList.add(at.main),this.settings=NT();for(var n in e)this.settings[n]=e[n];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var o=function(){return t.classList.add(at.state.focus)},r=function(){return t.classList.remove(at.state.focus)};this.isRtl=ge(t).direction==="rtl",this.isRtl===!0&&t.classList.add(at.rtl),this.isNegativeScroll=function(){var c=t.scrollLeft,h=null;return t.scrollLeft=-1,h=t.scrollLeft<0,t.scrollLeft=c,h}(),this.negativeScrollAdjustment=this.isNegativeScroll?t.scrollWidth-t.clientWidth:0,this.event=new ls,this.ownerDocument=t.ownerDocument||document,this.scrollbarXRail=Yo(at.element.rail("x")),t.appendChild(this.scrollbarXRail),this.scrollbarX=Yo(at.element.thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",o),this.event.bind(this.scrollbarX,"blur",r),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var a=ge(this.scrollbarXRail);this.scrollbarXBottom=parseInt(a.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=it(a.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=it(a.borderLeftWidth)+it(a.borderRightWidth),wt(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=it(a.marginLeft)+it(a.marginRight),wt(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=Yo(at.element.rail("y")),t.appendChild(this.scrollbarYRail),this.scrollbarY=Yo(at.element.thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",o),this.event.bind(this.scrollbarY,"blur",r),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var l=ge(this.scrollbarYRail);this.scrollbarYRight=parseInt(l.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=it(l.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?DT(this.scrollbarY):null,this.railBorderYWidth=it(l.borderTopWidth)+it(l.borderBottomWidth),wt(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=it(l.marginTop)+it(l.marginBottom),wt(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:t.scrollLeft<=0?"start":t.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:t.scrollTop<=0?"start":t.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(c){return BT[c](s)}),this.lastScrollTop=Math.floor(t.scrollTop),this.lastScrollLeft=t.scrollLeft,this.event.bind(this.element,"scroll",function(c){return s.onScroll(c)}),ke(this)};tn.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,wt(this.scrollbarXRail,{display:"block"}),wt(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=it(ge(this.scrollbarXRail).marginLeft)+it(ge(this.scrollbarXRail).marginRight),this.railYMarginHeight=it(ge(this.scrollbarYRail).marginTop)+it(ge(this.scrollbarYRail).marginBottom),wt(this.scrollbarXRail,{display:"none"}),wt(this.scrollbarYRail,{display:"none"}),ke(this),Ko(this,"top",0,!1,!0),Ko(this,"left",0,!1,!0),wt(this.scrollbarXRail,{display:""}),wt(this.scrollbarYRail,{display:""}))},tn.prototype.onScroll=function(t){this.isAlive&&(ke(this),Ko(this,"top",this.element.scrollTop-this.lastScrollTop),Ko(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},tn.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),as(this.scrollbarX),as(this.scrollbarY),as(this.scrollbarXRail),as(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},tn.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(t){return!t.match(/^ps([-_].+|)$/)}).join(" ")};const il="perfectScrollbar",HT="perfect-scrollbar",Uo="te.perfectScrollbar",me="te",be="ps",sl=[{te:`scrollX.${me}.${be}`,ps:"ps-scroll-x"},{te:`scrollY.${me}.${be}`,ps:"ps-scroll-y"},{te:`scrollUp.${me}.${be}`,ps:"ps-scroll-up"},{te:`scrollDown.${me}.${be}`,ps:"ps-scroll-down"},{te:`scrollLeft.${me}.${be}`,ps:"ps-scroll-left"},{te:`scrollRight.${me}.${be}`,ps:"ps-scroll-right"},{te:`scrollXEnd.${me}.${be}`,ps:"ps-x-reach-end"},{te:`scrollYEnd.${me}.${be}`,ps:"ps-y-reach-end"},{te:`scrollXStart.${me}.${be}`,ps:"ps-x-reach-start"},{te:`scrollYStart.${me}.${be}`,ps:"ps-y-reach-start"}],FT={handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],wheelSpeed:1,wheelPropagation:!0,swipeEasing:!0,minScrollbarLength:null,maxScrollbarLength:null,scrollingThreshold:1e3,useBothWheelAxes:!1,suppressScrollX:!1,suppressScrollY:!1,scrollXMarginOffset:0,scrollYMarginOffset:0,positionRight:!0},WT={handlers:"(string|array)",wheelSpeed:"number",wheelPropagation:"boolean",swipeEasing:"boolean",minScrollbarLength:"(number|null)",maxScrollbarLength:"(number|null)",scrollingThreshold:"number",useBothWheelAxes:"boolean",suppressScrollX:"boolean",suppressScrollY:"boolean",scrollXMarginOffset:"number",scrollYMarginOffset:"number",positionRight:"boolean"},VT={ps:"group/ps overflow-hidden [overflow-anchor:none] touch-none",railX:"group/x absolute bottom-0 h-[0.9375rem] hidden opacity-0 transition-[background-color,_opacity] duration-200 ease-linear motion-reduce:transition-none z-[1035] group-[&.ps--active-x]/ps:block group-hover/ps:opacity-60 group-focus/ps:opacity-60 group-[&.ps--scrolling-x]/ps:opacity-60 hover:!opacity-90 focus:!opacity-90 [&.ps--clicking]:!opacity-90 outline-none",railXColors:"group-[&.ps--active-x]/ps:bg-transparent hover:!bg-[#eee] focus:!bg-[#eee] [&.ps--clicking]:!bg-[#eee] dark:hover:!bg-[#555] dark:focus:!bg-[#555] dark:[&.ps--clicking]:!bg-[#555]",railXThumb:"absolute bottom-0.5 rounded-md h-1.5 group-focus/ps:opacity-100 group-active/ps:opacity-100 [transition:background-color_.2s_linear,_height_.2s_ease-in-out] group-hover/x:h-[11px] group-focus/x:h-[0.6875rem] group-[&.ps--clicking]/x:bg-[#999] group-[&.ps--clicking]/x:h-[11px] outline-none",railXThumbColors:"bg-[#aaa] group-hover/x:bg-[#999] group-focus/x:bg-[#999]",railY:"group/y absolute right-0 w-[0.9375rem] hidden opacity-0 transition-[background-color,_opacity] duration-200 ease-linear motion-reduce:transition-none z-[1035] group-[&.ps--active-y]/ps:block group-hover/ps:opacity-60 group-focus/ps:opacity-60 group-[&.ps--scrolling-y]/ps:opacity-60 hover:!opacity-90 focus:!opacity-90 [&.ps--clicking]:!opacity-90 outline-none",railYColors:"group-[&.ps--active-y]/ps:bg-transparent hover:!bg-[#eee] focus:!bg-[#eee] [&.ps--clicking]:!bg-[#eee] dark:hover:!bg-[#555] dark:focus:!bg-[#555] dark:[&.ps--clicking]:!bg-[#555]",railYThumb:"absolute right-0.5 rounded-md w-1.5 group-focus/ps:opacity-100 group-active/ps:opacity-100 [transition:background-color_.2s_linear,_width_.2s_ease-in-out,_opacity] group-hover/y:w-[11px] group-focus/y:w-[0.6875rem] group-[&.ps--clicking]/y:w-[11px] outline-none",railYThumbColors:"bg-[#aaa] group-hover/y:bg-[#999] group-focus/y:bg-[#999] group-[&.ps--clicking]/y:bg-[#999]"},zT={ps:"string",railX:"string",railXColors:"string",railXThumb:"string",railXThumbColors:"string",railY:"string",railYColors:"string",railYThumb:"string",railYThumbColors:"string"};class hs{constructor(t,e={},s={}){this._element=t,this._options=this._getConfig(e),this._classes=this._getClasses(s),this.perfectScrollbar=null,this._observer=null,this._psClasses=[{ps:"ps__rail-x",te:this._classes.railX,teColor:this._classes.railXColors},{ps:"ps__rail-y",te:this._classes.railY,teColor:this._classes.railYColors},{ps:"ps__thumb-x",te:this._classes.railXThumb,teColor:this._classes.railXThumbColors},{ps:"ps__thumb-y",te:this._classes.railYThumb,teColor:this._classes.railYThumbColors}],this._element&&(M.setData(t,Uo,this),_.addClass(this._element,HT)),this.init()}static get NAME(){return il}get railX(){return m.findOne(".ps__rail-x",this._element)}get railY(){return m.findOne(".ps__rail-y",this._element)}_getConfig(t){const e=_.getDataAttributes(this._element);return e.handlers!==void 0&&(e.handlers=e.handlers.split(" ")),t={...FT,...e,...t},P(il,t,WT),t}_getClasses(t){const e=_.getDataClassAttributes(this._element);return t={...VT,...e,...t},P(il,t,zT),t}dispose(){this._options.positionRight&&this._observer.disconnect(),M.removeData(this._element,Uo),this._element=null,this._dataAttrOptions=null,this._options=null,this.perfectScrollbar.destroy(),this.removeEvent(sl),this.perfectScrollbar=null}init(){if(this.perfectScrollbar=new tn(this._element,this._options),this._addPerfectScrollbarStyles(),this._updateScrollPosition(),this.perfectScrollbar.update(),this._initEvents(sl),this._options.positionRight){this._observer=new ResizeObserver(()=>{setTimeout(()=>{this._updateScrollPosition()},100)});const t={attributes:!0,attributeFilter:["class","className"]};this._observer.observe(this._element,t)}}_updateScrollPosition(){const t=getComputedStyle(this._element).getPropertyValue("height"),e=getComputedStyle(this._element).getPropertyValue("width");this.railX&&(this.railX.style.transform=`translateY(calc(-100% + ${this._canTransform(t)?t:"0px"}))`),this.railY&&(this.railY.style.transform=`translateX(calc(-100% + ${this._canTransform(e)?e:"0px"}))`)}_canTransform(t){return t&&t.includes("px")}update(){return this.perfectScrollbar.update()}_initEvents(t=[]){t.forEach(({ps:e,te:s})=>g.on(this._element,e,n=>g.trigger(this._element,s,{e:n})))}_addPerfectScrollbarStyles(){this._psClasses.forEach(t=>{const e=m.findOne(`.${t.ps}`,this._element);_.addClass(e,t.te),_.addClass(e,t.teColor)}),_.addClass(this._element,this._classes.ps),_.removeClass(this._element,"ps")}removeEvent(t){let e=[];typeof t=="string"&&(e=sl.filter(({te:s})=>s===t)),e.forEach(({ps:s,te:n})=>{g.off(this._element,s),g.off(this._element,n)})}static jQueryInterface(t){return this.each(function(){let e=M.getData(this,Uo);const s=typeof t=="object"&&t;if(!(!e&&/dispose|hide/.test(t))&&(e||(e=new hs(this,s)),typeof t=="string")){if(typeof e[t]>"u")throw new TypeError(`No method named "${t}"`);e[t]()}})}static getInstance(t){return M.getData(t,Uo)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,typeof e=="object"?e:null)}}const YT="data-te-datatable-select-ref",jT="data-te-datatable-pagination-nav-ref",KT="data-te-datatable-pagination-right-ref",UT="data-te-datatable-pagination-left-ref",XT="data-te-datatable-pagination-start-ref",GT="data-te-datatable-pagination-end-ref",qT=({text:i,entries:t,entriesOptions:e,fullPagination:s,rowsText:n,allText:o,paginationStartIconTemplate:r,paginationLeftIconTemplate:a,paginationRightIconTemplate:l,paginationEndIconTemplate:c,classes:h},d,u)=>{const p=e.map(f=>f==="All"?``:``).join(` + */function ge(s){return getComputedStyle(s)}function kt(s,t){for(var e in t){var i=t[e];typeof i=="number"&&(i=i+"px"),s.style[e]=i}return s}function ir(s){var t=document.createElement("div");return t.className=s,t}var op=typeof Element<"u"&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function qe(s,t){if(!op)throw new Error("No element matching method supported");return op.call(s,t)}function hs(s){s.remove?s.remove():s.parentNode&&s.parentNode.removeChild(s)}function rp(s,t){return Array.prototype.filter.call(s.children,function(e){return qe(e,t)})}var at={main:"ps",rtl:"ps__rtl",element:{thumb:function(s){return"ps__thumb-"+s},rail:function(s){return"ps__rail-"+s},consuming:"ps__child--consume"},state:{focus:"ps--focus",clicking:"ps--clicking",active:function(s){return"ps--active-"+s},scrolling:function(s){return"ps--scrolling-"+s}}},ap={x:null,y:null};function lp(s,t){var e=s.element.classList,i=at.state.scrolling(t);e.contains(i)?clearTimeout(ap[t]):e.add(i)}function cp(s,t){ap[t]=setTimeout(function(){return s.isAlive&&s.element.classList.remove(at.state.scrolling(t))},s.settings.scrollingThreshold)}function Ix(s,t){lp(s,t),cp(s,t)}var an=function(t){this.element=t,this.handlers={}},hp={isEmpty:{configurable:!0}};an.prototype.bind=function(t,e){typeof this.handlers[t]>"u"&&(this.handlers[t]=[]),this.handlers[t].push(e),this.element.addEventListener(t,e,!1)},an.prototype.unbind=function(t,e){var i=this;this.handlers[t]=this.handlers[t].filter(function(n){return e&&n!==e?!0:(i.element.removeEventListener(t,n,!1),!1)})},an.prototype.unbindAll=function(){for(var t in this.handlers)this.unbind(t)},hp.isEmpty.get=function(){var s=this;return Object.keys(this.handlers).every(function(t){return s.handlers[t].length===0})},Object.defineProperties(an.prototype,hp);var ds=function(){this.eventElements=[]};ds.prototype.eventElement=function(t){var e=this.eventElements.filter(function(i){return i.element===t})[0];return e||(e=new an(t),this.eventElements.push(e)),e},ds.prototype.bind=function(t,e,i){this.eventElement(t).bind(e,i)},ds.prototype.unbind=function(t,e,i){var n=this.eventElement(t);n.unbind(e,i),n.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(n),1)},ds.prototype.unbindAll=function(){this.eventElements.forEach(function(t){return t.unbindAll()}),this.eventElements=[]},ds.prototype.once=function(t,e,i){var n=this.eventElement(t),o=function(r){n.unbind(e,o),i(r)};n.bind(e,o)};function sr(s){if(typeof window.CustomEvent=="function")return new CustomEvent(s);var t=document.createEvent("CustomEvent");return t.initCustomEvent(s,!1,!1,void 0),t}function nr(s,t,e,i,n){i===void 0&&(i=!0),n===void 0&&(n=!1);var o;if(t==="top")o=["contentHeight","containerHeight","scrollTop","y","up","down"];else if(t==="left")o=["contentWidth","containerWidth","scrollLeft","x","left","right"];else throw new Error("A proper axis should be provided");Mx(s,e,o,i,n)}function Mx(s,t,e,i,n){var o=e[0],r=e[1],a=e[2],l=e[3],c=e[4],h=e[5];i===void 0&&(i=!0),n===void 0&&(n=!1);var d=s.element;s.reach[l]=null,d[a]<1&&(s.reach[l]="start"),d[a]>s[o]-s[r]-1&&(s.reach[l]="end"),t&&(d.dispatchEvent(sr("ps-scroll-"+l)),t<0?d.dispatchEvent(sr("ps-scroll-"+c)):t>0&&d.dispatchEvent(sr("ps-scroll-"+h)),i&&Ix(s,l)),s.reach[l]&&(t||n)&&d.dispatchEvent(sr("ps-"+l+"-reach-"+s.reach[l]))}function it(s){return parseInt(s,10)||0}function Lx(s){return qe(s,"input,[contenteditable]")||qe(s,"select,[contenteditable]")||qe(s,"textarea,[contenteditable]")||qe(s,"button,[contenteditable]")}function $x(s){var t=ge(s);return it(t.width)+it(t.paddingLeft)+it(t.paddingRight)+it(t.borderLeftWidth)+it(t.borderRightWidth)}var us={isWebKit:typeof document<"u"&&"WebkitAppearance"in document.documentElement.style,supportsTouch:typeof window<"u"&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&window.navigator.maxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:typeof navigator<"u"&&navigator.msMaxTouchPoints,isChrome:typeof navigator<"u"&&/Chrome/i.test(navigator&&navigator.userAgent)};function ke(s){var t=s.element,e=Math.floor(t.scrollTop),i=t.getBoundingClientRect();s.containerWidth=Math.round(i.width),s.containerHeight=Math.round(i.height),s.contentWidth=t.scrollWidth,s.contentHeight=t.scrollHeight,t.contains(s.scrollbarXRail)||(rp(t,at.element.rail("x")).forEach(function(n){return hs(n)}),t.appendChild(s.scrollbarXRail)),t.contains(s.scrollbarYRail)||(rp(t,at.element.rail("y")).forEach(function(n){return hs(n)}),t.appendChild(s.scrollbarYRail)),!s.settings.suppressScrollX&&s.containerWidth+s.settings.scrollXMarginOffset=s.railXWidth-s.scrollbarXWidth&&(s.scrollbarXLeft=s.railXWidth-s.scrollbarXWidth),s.scrollbarYTop>=s.railYHeight-s.scrollbarYHeight&&(s.scrollbarYTop=s.railYHeight-s.scrollbarYHeight),Px(t,s),s.scrollbarXActive?t.classList.add(at.state.active("x")):(t.classList.remove(at.state.active("x")),s.scrollbarXWidth=0,s.scrollbarXLeft=0,t.scrollLeft=s.isRtl===!0?s.contentWidth:0),s.scrollbarYActive?t.classList.add(at.state.active("y")):(t.classList.remove(at.state.active("y")),s.scrollbarYHeight=0,s.scrollbarYTop=0,t.scrollTop=0)}function dp(s,t){return s.settings.minScrollbarLength&&(t=Math.max(t,s.settings.minScrollbarLength)),s.settings.maxScrollbarLength&&(t=Math.min(t,s.settings.maxScrollbarLength)),t}function Px(s,t){var e={width:t.railXWidth},i=Math.floor(s.scrollTop);t.isRtl?e.left=t.negativeScrollAdjustment+s.scrollLeft+t.containerWidth-t.contentWidth:e.left=s.scrollLeft,t.isScrollbarXUsingBottom?e.bottom=t.scrollbarXBottom-i:e.top=t.scrollbarXTop+i,kt(t.scrollbarXRail,e);var n={top:i,height:t.railYHeight};t.isScrollbarYUsingRight?t.isRtl?n.right=t.contentWidth-(t.negativeScrollAdjustment+s.scrollLeft)-t.scrollbarYRight-t.scrollbarYOuterWidth-9:n.right=t.scrollbarYRight-s.scrollLeft:t.isRtl?n.left=t.negativeScrollAdjustment+s.scrollLeft+t.containerWidth*2-t.contentWidth-t.scrollbarYLeft-t.scrollbarYOuterWidth:n.left=t.scrollbarYLeft+s.scrollLeft,kt(t.scrollbarYRail,n),kt(t.scrollbarX,{left:t.scrollbarXLeft,width:t.scrollbarXWidth-t.railBorderXWidth}),kt(t.scrollbarY,{top:t.scrollbarYTop,height:t.scrollbarYHeight-t.railBorderYWidth})}function Rx(s){s.element,s.event.bind(s.scrollbarY,"mousedown",function(t){return t.stopPropagation()}),s.event.bind(s.scrollbarYRail,"mousedown",function(t){var e=t.pageY-window.pageYOffset-s.scrollbarYRail.getBoundingClientRect().top,i=e>s.scrollbarYTop?1:-1;s.element.scrollTop+=i*s.containerHeight,ke(s),t.stopPropagation()}),s.event.bind(s.scrollbarX,"mousedown",function(t){return t.stopPropagation()}),s.event.bind(s.scrollbarXRail,"mousedown",function(t){var e=t.pageX-window.pageXOffset-s.scrollbarXRail.getBoundingClientRect().left,i=e>s.scrollbarXLeft?1:-1;s.element.scrollLeft+=i*s.containerWidth,ke(s),t.stopPropagation()})}function Nx(s){up(s,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),up(s,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])}function up(s,t){var e=t[0],i=t[1],n=t[2],o=t[3],r=t[4],a=t[5],l=t[6],c=t[7],h=t[8],d=s.element,u=null,p=null,f=null;function b(T){T.touches&&T.touches[0]&&(T[n]=T.touches[0].pageY),d[l]=u+f*(T[n]-p),lp(s,c),ke(s),T.stopPropagation(),T.type.startsWith("touch")&&T.changedTouches.length>1&&T.preventDefault()}function v(){cp(s,c),s[h].classList.remove(at.state.clicking),s.event.unbind(s.ownerDocument,"mousemove",b)}function y(T,x){u=d[l],x&&T.touches&&(T[n]=T.touches[0].pageY),p=T[n],f=(s[i]-s[e])/(s[o]-s[a]),x?s.event.bind(s.ownerDocument,"touchmove",b):(s.event.bind(s.ownerDocument,"mousemove",b),s.event.once(s.ownerDocument,"mouseup",v),T.preventDefault()),s[h].classList.add(at.state.clicking),T.stopPropagation()}s.event.bind(s[r],"mousedown",function(T){y(T)}),s.event.bind(s[r],"touchstart",function(T){y(T,!0)})}function Bx(s){var t=s.element,e=function(){return qe(t,":hover")},i=function(){return qe(s.scrollbarX,":focus")||qe(s.scrollbarY,":focus")};function n(o,r){var a=Math.floor(t.scrollTop);if(o===0){if(!s.scrollbarYActive)return!1;if(a===0&&r>0||a>=s.contentHeight-s.containerHeight&&r<0)return!s.settings.wheelPropagation}var l=t.scrollLeft;if(r===0){if(!s.scrollbarXActive)return!1;if(l===0&&o<0||l>=s.contentWidth-s.containerWidth&&o>0)return!s.settings.wheelPropagation}return!0}s.event.bind(s.ownerDocument,"keydown",function(o){if(!(o.isDefaultPrevented&&o.isDefaultPrevented()||o.defaultPrevented)&&!(!e()&&!i())){var r=document.activeElement?document.activeElement:s.ownerDocument.activeElement;if(r){if(r.tagName==="IFRAME")r=r.contentDocument.activeElement;else for(;r.shadowRoot;)r=r.shadowRoot.activeElement;if(Lx(r))return}var a=0,l=0;switch(o.which){case 37:o.metaKey?a=-s.contentWidth:o.altKey?a=-s.containerWidth:a=-30;break;case 38:o.metaKey?l=s.contentHeight:o.altKey?l=s.containerHeight:l=30;break;case 39:o.metaKey?a=s.contentWidth:o.altKey?a=s.containerWidth:a=30;break;case 40:o.metaKey?l=-s.contentHeight:o.altKey?l=-s.containerHeight:l=-30;break;case 32:o.shiftKey?l=s.containerHeight:l=-s.containerHeight;break;case 33:l=s.containerHeight;break;case 34:l=-s.containerHeight;break;case 36:l=s.contentHeight;break;case 35:l=-s.contentHeight;break;default:return}s.settings.suppressScrollX&&a!==0||s.settings.suppressScrollY&&l!==0||(t.scrollTop-=l,t.scrollLeft+=a,ke(s),n(a,l)&&o.preventDefault())}})}function Hx(s){var t=s.element;function e(r,a){var l=Math.floor(t.scrollTop),c=t.scrollTop===0,h=l+t.offsetHeight===t.scrollHeight,d=t.scrollLeft===0,u=t.scrollLeft+t.offsetWidth===t.scrollWidth,p;return Math.abs(a)>Math.abs(r)?p=c||h:p=d||u,p?!s.settings.wheelPropagation:!0}function i(r){var a=r.deltaX,l=-1*r.deltaY;return(typeof a>"u"||typeof l>"u")&&(a=-1*r.wheelDeltaX/6,l=r.wheelDeltaY/6),r.deltaMode&&r.deltaMode===1&&(a*=10,l*=10),a!==a&&l!==l&&(a=0,l=r.wheelDelta),r.shiftKey?[-l,-a]:[a,l]}function n(r,a,l){if(!us.isWebKit&&t.querySelector("select:focus"))return!0;if(!t.contains(r))return!1;for(var c=r;c&&c!==t;){if(c.classList.contains(at.element.consuming))return!0;var h=ge(c);if(l&&h.overflowY.match(/(scroll|auto)/)){var d=c.scrollHeight-c.clientHeight;if(d>0&&(c.scrollTop>0&&l<0||c.scrollTop0))return!0}if(a&&h.overflowX.match(/(scroll|auto)/)){var u=c.scrollWidth-c.clientWidth;if(u>0&&(c.scrollLeft>0&&a<0||c.scrollLeft0))return!0}c=c.parentNode}return!1}function o(r){var a=i(r),l=a[0],c=a[1];if(!n(r.target,l,c)){var h=!1;s.settings.useBothWheelAxes?s.scrollbarYActive&&!s.scrollbarXActive?(c?t.scrollTop-=c*s.settings.wheelSpeed:t.scrollTop+=l*s.settings.wheelSpeed,h=!0):s.scrollbarXActive&&!s.scrollbarYActive&&(l?t.scrollLeft+=l*s.settings.wheelSpeed:t.scrollLeft-=c*s.settings.wheelSpeed,h=!0):(t.scrollTop-=c*s.settings.wheelSpeed,t.scrollLeft+=l*s.settings.wheelSpeed),ke(s),h=h||e(l,c),h&&!r.ctrlKey&&(r.stopPropagation(),r.preventDefault())}}typeof window.onwheel<"u"?s.event.bind(t,"wheel",o):typeof window.onmousewheel<"u"&&s.event.bind(t,"mousewheel",o)}function Vx(s){if(!us.supportsTouch&&!us.supportsIePointer)return;var t=s.element;function e(f,b){var v=Math.floor(t.scrollTop),y=t.scrollLeft,T=Math.abs(f),x=Math.abs(b);if(x>T){if(b<0&&v===s.contentHeight-s.containerHeight||b>0&&v===0)return window.scrollY===0&&b>0&&us.isChrome}else if(T>x&&(f<0&&y===s.contentWidth-s.containerWidth||f>0&&y===0))return!0;return!0}function i(f,b){t.scrollTop-=b,t.scrollLeft-=f,ke(s)}var n={},o=0,r={},a=null;function l(f){return f.targetTouches?f.targetTouches[0]:f}function c(f){return f.pointerType&&f.pointerType==="pen"&&f.buttons===0?!1:!!(f.targetTouches&&f.targetTouches.length===1||f.pointerType&&f.pointerType!=="mouse"&&f.pointerType!==f.MSPOINTER_TYPE_MOUSE)}function h(f){if(c(f)){var b=l(f);n.pageX=b.pageX,n.pageY=b.pageY,o=new Date().getTime(),a!==null&&clearInterval(a)}}function d(f,b,v){if(!t.contains(f))return!1;for(var y=f;y&&y!==t;){if(y.classList.contains(at.element.consuming))return!0;var T=ge(y);if(v&&T.overflowY.match(/(scroll|auto)/)){var x=y.scrollHeight-y.clientHeight;if(x>0&&(y.scrollTop>0&&v<0||y.scrollTop0))return!0}if(b&&T.overflowX.match(/(scroll|auto)/)){var E=y.scrollWidth-y.clientWidth;if(E>0&&(y.scrollLeft>0&&b<0||y.scrollLeft0))return!0}y=y.parentNode}return!1}function u(f){if(c(f)){var b=l(f),v={pageX:b.pageX,pageY:b.pageY},y=v.pageX-n.pageX,T=v.pageY-n.pageY;if(d(f.target,y,T))return;i(y,T),n=v;var x=new Date().getTime(),E=x-o;E>0&&(r.x=y/E,r.y=T/E,o=x),e(y,T)&&f.preventDefault()}}function p(){s.settings.swipeEasing&&(clearInterval(a),a=setInterval(function(){if(s.isInitialized){clearInterval(a);return}if(!r.x&&!r.y){clearInterval(a);return}if(Math.abs(r.x)<.01&&Math.abs(r.y)<.01){clearInterval(a);return}if(!s.element){clearInterval(a);return}i(r.x*30,r.y*30),r.x*=.8,r.y*=.8},10))}us.supportsTouch?(s.event.bind(t,"touchstart",h),s.event.bind(t,"touchmove",u),s.event.bind(t,"touchend",p)):us.supportsIePointer&&(window.PointerEvent?(s.event.bind(t,"pointerdown",h),s.event.bind(t,"pointermove",u),s.event.bind(t,"pointerup",p)):window.MSPointerEvent&&(s.event.bind(t,"MSPointerDown",h),s.event.bind(t,"MSPointerMove",u),s.event.bind(t,"MSPointerUp",p)))}var Fx=function(){return{handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1}},Wx={"click-rail":Rx,"drag-thumb":Nx,keyboard:Bx,wheel:Hx,touch:Vx},ln=function(t,e){var i=this;if(e===void 0&&(e={}),typeof t=="string"&&(t=document.querySelector(t)),!t||!t.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");this.element=t,t.classList.add(at.main),this.settings=Fx();for(var n in e)this.settings[n]=e[n];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var o=function(){return t.classList.add(at.state.focus)},r=function(){return t.classList.remove(at.state.focus)};this.isRtl=ge(t).direction==="rtl",this.isRtl===!0&&t.classList.add(at.rtl),this.isNegativeScroll=function(){var c=t.scrollLeft,h=null;return t.scrollLeft=-1,h=t.scrollLeft<0,t.scrollLeft=c,h}(),this.negativeScrollAdjustment=this.isNegativeScroll?t.scrollWidth-t.clientWidth:0,this.event=new ds,this.ownerDocument=t.ownerDocument||document,this.scrollbarXRail=ir(at.element.rail("x")),t.appendChild(this.scrollbarXRail),this.scrollbarX=ir(at.element.thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",o),this.event.bind(this.scrollbarX,"blur",r),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var a=ge(this.scrollbarXRail);this.scrollbarXBottom=parseInt(a.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=it(a.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=it(a.borderLeftWidth)+it(a.borderRightWidth),kt(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=it(a.marginLeft)+it(a.marginRight),kt(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=ir(at.element.rail("y")),t.appendChild(this.scrollbarYRail),this.scrollbarY=ir(at.element.thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",o),this.event.bind(this.scrollbarY,"blur",r),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var l=ge(this.scrollbarYRail);this.scrollbarYRight=parseInt(l.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=it(l.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?$x(this.scrollbarY):null,this.railBorderYWidth=it(l.borderTopWidth)+it(l.borderBottomWidth),kt(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=it(l.marginTop)+it(l.marginBottom),kt(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:t.scrollLeft<=0?"start":t.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:t.scrollTop<=0?"start":t.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(c){return Wx[c](i)}),this.lastScrollTop=Math.floor(t.scrollTop),this.lastScrollLeft=t.scrollLeft,this.event.bind(this.element,"scroll",function(c){return i.onScroll(c)}),ke(this)};ln.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,kt(this.scrollbarXRail,{display:"block"}),kt(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=it(ge(this.scrollbarXRail).marginLeft)+it(ge(this.scrollbarXRail).marginRight),this.railYMarginHeight=it(ge(this.scrollbarYRail).marginTop)+it(ge(this.scrollbarYRail).marginBottom),kt(this.scrollbarXRail,{display:"none"}),kt(this.scrollbarYRail,{display:"none"}),ke(this),nr(this,"top",0,!1,!0),nr(this,"left",0,!1,!0),kt(this.scrollbarXRail,{display:""}),kt(this.scrollbarYRail,{display:""}))},ln.prototype.onScroll=function(t){this.isAlive&&(ke(this),nr(this,"top",this.element.scrollTop-this.lastScrollTop),nr(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},ln.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),hs(this.scrollbarX),hs(this.scrollbarY),hs(this.scrollbarXRail),hs(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},ln.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(t){return!t.match(/^ps([-_].+|)$/)}).join(" ")};const $l="perfectScrollbar",zx="perfect-scrollbar",or="te.perfectScrollbar",me="te",be="ps",Pl=[{te:`scrollX.${me}.${be}`,ps:"ps-scroll-x"},{te:`scrollY.${me}.${be}`,ps:"ps-scroll-y"},{te:`scrollUp.${me}.${be}`,ps:"ps-scroll-up"},{te:`scrollDown.${me}.${be}`,ps:"ps-scroll-down"},{te:`scrollLeft.${me}.${be}`,ps:"ps-scroll-left"},{te:`scrollRight.${me}.${be}`,ps:"ps-scroll-right"},{te:`scrollXEnd.${me}.${be}`,ps:"ps-x-reach-end"},{te:`scrollYEnd.${me}.${be}`,ps:"ps-y-reach-end"},{te:`scrollXStart.${me}.${be}`,ps:"ps-x-reach-start"},{te:`scrollYStart.${me}.${be}`,ps:"ps-y-reach-start"}],jx={handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],wheelSpeed:1,wheelPropagation:!0,swipeEasing:!0,minScrollbarLength:null,maxScrollbarLength:null,scrollingThreshold:1e3,useBothWheelAxes:!1,suppressScrollX:!1,suppressScrollY:!1,scrollXMarginOffset:0,scrollYMarginOffset:0,positionRight:!0},Yx={handlers:"(string|array)",wheelSpeed:"number",wheelPropagation:"boolean",swipeEasing:"boolean",minScrollbarLength:"(number|null)",maxScrollbarLength:"(number|null)",scrollingThreshold:"number",useBothWheelAxes:"boolean",suppressScrollX:"boolean",suppressScrollY:"boolean",scrollXMarginOffset:"number",scrollYMarginOffset:"number",positionRight:"boolean"},Kx={ps:"group/ps overflow-hidden [overflow-anchor:none] touch-none",railX:"group/x absolute bottom-0 h-[0.9375rem] hidden opacity-0 transition-[background-color,_opacity] duration-200 ease-linear motion-reduce:transition-none z-[1035] group-[&.ps--active-x]/ps:block group-hover/ps:opacity-60 group-focus/ps:opacity-60 group-[&.ps--scrolling-x]/ps:opacity-60 hover:!opacity-90 focus:!opacity-90 [&.ps--clicking]:!opacity-90 outline-none",railXColors:"group-[&.ps--active-x]/ps:bg-transparent hover:!bg-[#eee] focus:!bg-[#eee] [&.ps--clicking]:!bg-[#eee] dark:hover:!bg-[#555] dark:focus:!bg-[#555] dark:[&.ps--clicking]:!bg-[#555]",railXThumb:"absolute bottom-0.5 rounded-md h-1.5 group-focus/ps:opacity-100 group-active/ps:opacity-100 [transition:background-color_.2s_linear,_height_.2s_ease-in-out] group-hover/x:h-[11px] group-focus/x:h-[0.6875rem] group-[&.ps--clicking]/x:bg-[#999] group-[&.ps--clicking]/x:h-[11px] outline-none",railXThumbColors:"bg-[#aaa] group-hover/x:bg-[#999] group-focus/x:bg-[#999]",railY:"group/y absolute right-0 w-[0.9375rem] hidden opacity-0 transition-[background-color,_opacity] duration-200 ease-linear motion-reduce:transition-none z-[1035] group-[&.ps--active-y]/ps:block group-hover/ps:opacity-60 group-focus/ps:opacity-60 group-[&.ps--scrolling-y]/ps:opacity-60 hover:!opacity-90 focus:!opacity-90 [&.ps--clicking]:!opacity-90 outline-none",railYColors:"group-[&.ps--active-y]/ps:bg-transparent hover:!bg-[#eee] focus:!bg-[#eee] [&.ps--clicking]:!bg-[#eee] dark:hover:!bg-[#555] dark:focus:!bg-[#555] dark:[&.ps--clicking]:!bg-[#555]",railYThumb:"absolute right-0.5 rounded-md w-1.5 group-focus/ps:opacity-100 group-active/ps:opacity-100 [transition:background-color_.2s_linear,_width_.2s_ease-in-out,_opacity] group-hover/y:w-[11px] group-focus/y:w-[0.6875rem] group-[&.ps--clicking]/y:w-[11px] outline-none",railYThumbColors:"bg-[#aaa] group-hover/y:bg-[#999] group-focus/y:bg-[#999] group-[&.ps--clicking]/y:bg-[#999]"},Ux={ps:"string",railX:"string",railXColors:"string",railXThumb:"string",railXThumbColors:"string",railY:"string",railYColors:"string",railYThumb:"string",railYThumbColors:"string"};class ps{constructor(t,e={},i={}){this._element=t,this._options=this._getConfig(e),this._classes=this._getClasses(i),this.perfectScrollbar=null,this._observer=null,this._psClasses=[{ps:"ps__rail-x",te:this._classes.railX,teColor:this._classes.railXColors},{ps:"ps__rail-y",te:this._classes.railY,teColor:this._classes.railYColors},{ps:"ps__thumb-x",te:this._classes.railXThumb,teColor:this._classes.railXThumbColors},{ps:"ps__thumb-y",te:this._classes.railYThumb,teColor:this._classes.railYThumbColors}],this._element&&(D.setData(t,or,this),g.addClass(this._element,zx)),this.init()}static get NAME(){return $l}get railX(){return m.findOne(".ps__rail-x",this._element)}get railY(){return m.findOne(".ps__rail-y",this._element)}_getConfig(t){const e=g.getDataAttributes(this._element);return e.handlers!==void 0&&(e.handlers=e.handlers.split(" ")),t={...jx,...e,...t},L($l,t,Yx),t}_getClasses(t){const e=g.getDataClassAttributes(this._element);return t={...Kx,...e,...t},L($l,t,Ux),t}dispose(){this._options.positionRight&&this._observer.disconnect(),D.removeData(this._element,or),this._element=null,this._dataAttrOptions=null,this._options=null,this.perfectScrollbar.destroy(),this.removeEvent(Pl),this.perfectScrollbar=null}init(){if(this.perfectScrollbar=new ln(this._element,this._options),this._addPerfectScrollbarStyles(),this._updateScrollPosition(),this.perfectScrollbar.update(),this._initEvents(Pl),this._options.positionRight){this._observer=new ResizeObserver(()=>{setTimeout(()=>{this._updateScrollPosition()},100)});const t={attributes:!0,attributeFilter:["class","className"]};this._observer.observe(this._element,t)}}_updateScrollPosition(){const t=getComputedStyle(this._element).getPropertyValue("height"),e=getComputedStyle(this._element).getPropertyValue("width");this.railX&&(this.railX.style.transform=`translateY(calc(-100% + ${this._canTransform(t)?t:"0px"}))`),this.railY&&(this.railY.style.transform=`translateX(calc(-100% + ${this._canTransform(e)?e:"0px"}))`)}_canTransform(t){return t&&t.includes("px")}update(){return this.perfectScrollbar.update()}_initEvents(t=[]){t.forEach(({ps:e,te:i})=>_.on(this._element,e,n=>_.trigger(this._element,i,{e:n})))}_addPerfectScrollbarStyles(){this._psClasses.forEach(t=>{const e=m.findOne(`.${t.ps}`,this._element);g.addClass(e,t.te),g.addClass(e,t.teColor)}),g.addClass(this._element,this._classes.ps),g.removeClass(this._element,"ps")}removeEvent(t){let e=[];typeof t=="string"&&(e=Pl.filter(({te:i})=>i===t)),e.forEach(({ps:i,te:n})=>{_.off(this._element,i),_.off(this._element,n)})}static jQueryInterface(t){return this.each(function(){let e=D.getData(this,or);const i=typeof t=="object"&&t;if(!(!e&&/dispose|hide/.test(t))&&(e||(e=new ps(this,i)),typeof t=="string")){if(typeof e[t]>"u")throw new TypeError(`No method named "${t}"`);e[t]()}})}static getInstance(t){return D.getData(t,or)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,typeof e=="object"?e:null)}}const Xx="data-te-datatable-select-ref",Gx="data-te-datatable-pagination-nav-ref",qx="data-te-datatable-pagination-right-ref",Zx="data-te-datatable-pagination-left-ref",Qx="data-te-datatable-pagination-start-ref",Jx="data-te-datatable-pagination-end-ref",tC=({text:s,entries:t,entriesOptions:e,fullPagination:i,rowsText:n,allText:o,paginationStartIconTemplate:r,paginationLeftIconTemplate:a,paginationRightIconTemplate:l,paginationEndIconTemplate:c,classes:h},d,u)=>{const p=e.map(f=>f==="All"?``:``).join(` `);return`

${n}

-
- ${i} +
+ ${s}
- ${s?``:""} - - - ${s?``:""}
-`},ZT="data-te-datatable-sort-icon-ref",QT="data-te-datatable-header-checkbox-ref",JT=(i,t,e,s,n,o,r,a)=>{const l=e?` +`},eC="data-te-datatable-sort-icon-ref",iC="data-te-datatable-header-checkbox-ref",sC=(s,t,e,i,n,o,r,a)=>{const l=e?`
- `:'',c=i.map((h,d)=>{const u=h.fixed?i.filter((p,f)=>p.fixed===h.fixed&&fp+f.width,0):null;return`${h.sort?`
${r}`:""} ${h.label}
`});return[t?l:"",...c].join(` -`)},tE="data-te-datatable-row-ref",eE="data-te-datatable-row-checkbox-ref",iE="data-te-datatable-cell-ref",sE=({rows:i,columns:t,noFoundMessage:e,edit:s,selectable:n,loading:o,bordered:r,borderless:a,striped:l,hover:c,sm:h,classes:d})=>{const u=i.map(p=>{const f=` + `:'',c=s.map((h,d)=>{const u=h.fixed?s.filter((p,f)=>p.fixed===h.fixed&&fp+f.width,0):null;return`${h.sort?`
${r}`:""} ${h.label}
`});return[t?l:"",...c].join(` +`)},nC="data-te-datatable-row-ref",oC="data-te-datatable-row-checkbox-ref",rC="data-te-datatable-cell-ref",aC=({rows:s,columns:t,noFoundMessage:e,edit:i,selectable:n,loading:o,bordered:r,borderless:a,striped:l,hover:c,sm:h,classes:d})=>{const u=s.map(p=>{const f=`
+ data-te-row-index="${p.rowIndex}" ${oC}/>
- `,b=t.map((v,y)=>{const x={};if(v.width&&(x["min-width"]=`${v.width-1}px`,x["max-width"]=`${v.width}px`,x.width=`${v.width}px`),v.fixed){const T=t.filter((C,A)=>C.fixed===v.fixed&&AC+A.width,0);x[v.fixed==="right"?"right":"left"]=`${T}px`}return`${p[v.field]}`}).join("");return`${n?f:""}${b}`});return i.length>0||o?u.join(` -`):`${e}`},nE="data-te-datatable-inner-ref",oE="data-te-datatable-header-ref",Cu=({columns:i,rows:t,noFoundMessage:e,edit:s,multi:n,selectable:o,loading:r,loadingMessage:a,pagination:l,bordered:c,borderless:h,striped:d,hover:u,fixedHeader:p,sm:f,sortIconTemplate:b,classes:v})=>{const y=sE({rows:t,columns:i,noFoundMessage:e,edit:s,loading:r,selectable:o,bordered:c,borderless:h,striped:d,hover:u,sm:f,classes:v}),x=JT(i,o,n,c,f,r,b,v);return{table:` -
+ `,b=t.map((v,y)=>{const T={};if(v.width&&(T["min-width"]=`${v.width-1}px`,T["max-width"]=`${v.width}px`,T.width=`${v.width}px`),v.fixed){const E=t.filter((C,A)=>C.fixed===v.fixed&&AC+A.width,0);T[v.fixed==="right"?"right":"left"]=`${E}px`}return`${p[v.field]}`}).join("");return`${n?f:""}${b}`});return s.length>0||o?u.join(` +`):`${e}`},lC="data-te-datatable-inner-ref",cC="data-te-datatable-header-ref",pp=({columns:s,rows:t,noFoundMessage:e,edit:i,multi:n,selectable:o,loading:r,loadingMessage:a,pagination:l,bordered:c,borderless:h,striped:d,hover:u,fixedHeader:p,sm:f,sortIconTemplate:b,classes:v})=>{const y=aC({rows:t,columns:s,noFoundMessage:e,edit:i,loading:r,selectable:o,bordered:c,borderless:h,striped:d,hover:u,sm:f,classes:v}),T=sC(s,o,n,c,f,r,b,v);return{table:` +
- + - ${x} + ${T} @@ -347,18 +347,18 @@ ${r?`

${a}

`:""} -${l.enable?qT(l,r,c):""} - `,rows:y,column:x}},rE=({rows:i,field:t,order:e})=>i.sort((n,o)=>{let r=n[t],a=o[t];return typeof r=="string"&&(r=r.toLowerCase()),typeof a=="string"&&(a=a.toLowerCase()),ra?e==="desc"?-1:1:0}),aE=(i,t,e)=>{if(!t)return i;const s=n=>{const o=document.createElement("div");return o.innerHTML=n,n=o.textContent||o.innerText||"",n.toString().toLowerCase().match(t.toLowerCase())};return i.filter(n=>{if(e&&typeof e=="string")return s(n[e]);let o=Object.values(n);return e&&Array.isArray(e)&&(o=Object.keys(n).filter(r=>e.includes(r)).map(r=>n[r])),o.filter(r=>s(r)).length>0})},Au=({rows:i,entries:t,activePage:e})=>{const s=e*t;return i.slice(s,s+Number(t))},en="datatable",Pt=`data-te-${en}`,sn=`te.${en}`,Xo=`.${sn}`,lE=`[${Pt}-inner-ref]`,nl=`[${Pt}-cell-ref]`,cE=`[${Pt}-header-ref]`,hE=`[${Pt}-header-checkbox-ref]`,dE=`[${Pt}-pagination-right-ref]`,uE=`[${Pt}-pagination-left-ref]`,pE=`[${Pt}-pagination-start-ref]`,fE=`[${Pt}-pagination-end-ref]`,_E=`[${Pt}-pagination-nav-ref]`,gE=`[${Pt}-select-ref]`,ol=`[${Pt}-sort-icon-ref]`,nn=`[${Pt}-row-ref]`,rl=`[${Pt}-row-checkbox-ref]`,mE=`selectRows${Xo}`,wu=`render${Xo}`,bE=`rowClick${Xo}`,vE=`update${Xo}`,yE=` +${l.enable?tC(l,r,c):""} + `,rows:y,column:T}},hC=({rows:s,field:t,order:e})=>s.sort((n,o)=>{let r=n[t],a=o[t];return typeof r=="string"&&(r=r.toLowerCase()),typeof a=="string"&&(a=a.toLowerCase()),ra?e==="desc"?-1:1:0}),dC=(s,t,e)=>{if(!t)return s;const i=n=>{const o=document.createElement("div");return o.innerHTML=n,n=o.textContent||o.innerText||"",n.toString().toLowerCase().match(t.toLowerCase())};return s.filter(n=>{if(e&&typeof e=="string")return i(n[e]);let o=Object.values(n);return e&&Array.isArray(e)&&(o=Object.keys(n).filter(r=>e.includes(r)).map(r=>n[r])),o.filter(r=>i(r)).length>0})},fp=({rows:s,entries:t,activePage:e})=>{const i=e*t;return s.slice(i,i+Number(t))},cn="datatable",Nt=`data-te-${cn}`,hn=`te.${cn}`,rr=`.${hn}`,uC=`[${Nt}-inner-ref]`,Rl=`[${Nt}-cell-ref]`,pC=`[${Nt}-header-ref]`,fC=`[${Nt}-header-checkbox-ref]`,_C=`[${Nt}-pagination-right-ref]`,gC=`[${Nt}-pagination-left-ref]`,mC=`[${Nt}-pagination-start-ref]`,bC=`[${Nt}-pagination-end-ref]`,vC=`[${Nt}-pagination-nav-ref]`,yC=`[${Nt}-select-ref]`,Nl=`[${Nt}-sort-icon-ref]`,dn=`[${Nt}-row-ref]`,Bl=`[${Nt}-row-checkbox-ref]`,TC=`selectRows${rr}`,_p=`render${rr}`,EC=`rowClick${rr}`,xC=`update${rr}`,CC=` -`,xE=` +`,AC=` -`,TE=` +`,wC=` -`,EE=` +`,kC=` -`,CE=` +`,SC=` -`,AE="border-neutral-200 dark:border-neutral-500",wE="border-none",kE="relative float-left -ml-[1.5rem] mr-[6px] mt-[0.15rem] h-[1.125rem] w-[1.125rem] appearance-none rounded-[0.25rem] border-[0.125rem] border-solid border-neutral-300 outline-none before:pointer-events-none before:absolute before:h-[0.875rem] before:w-[0.875rem] before:scale-0 before:rounded-full before:bg-transparent before:opacity-0 before:shadow-[0px_0px_0px_13px_transparent] before:content-[''] checked:border-primary checked:bg-primary checked:before:opacity-[0.16] checked:after:absolute checked:after:-mt-px checked:after:ml-[0.25rem] checked:after:block checked:after:h-[0.8125rem] checked:after:w-[0.375rem] checked:after:rotate-45 checked:after:border-[0.125rem] checked:after:border-l-0 checked:after:border-t-0 checked:after:border-solid checked:after:border-white checked:after:bg-transparent checked:after:content-[''] hover:cursor-pointer hover:before:opacity-[0.04] hover:before:shadow-[0px_0px_0px_13px_rgba(0,0,0,0.6)] focus:shadow-none focus:transition-[border-color_0.2s] focus:before:scale-100 focus:before:opacity-[0.12] focus:before:shadow-[0px_0px_0px_13px_rgba(0,0,0,0.6)] focus:before:transition-[box-shadow_0.2s,transform_0.2s] focus:after:absolute focus:after:z-[1] focus:after:block focus:after:h-[0.875rem] focus:after:w-[0.875rem] focus:after:rounded-[0.125rem] focus:after:content-[''] checked:focus:before:scale-100 checked:focus:before:shadow-[0px_0px_0px_13px_#3b71ca] checked:focus:before:transition-[box-shadow_0.2s,transform_0.2s] checked:focus:after:-mt-px checked:focus:after:ml-[0.25rem] checked:focus:after:h-[0.8125rem] checked:focus:after:w-[0.375rem] checked:focus:after:rotate-45 checked:focus:after:rounded-none checked:focus:after:border-[0.125rem] checked:focus:after:border-l-0 checked:focus:after:border-t-0 checked:focus:after:border-solid checked:focus:after:border-white checked:focus:after:bg-transparent dark:border-neutral-600 dark:checked:border-primary dark:checked:bg-primary dark:focus:before:shadow-[0px_0px_0px_13px_rgba(255,255,255,0.4)] dark:checked:focus:before:shadow-[0px_0px_0px_13px_#3b71ca] dark:border-neutral-400",SE="mb-[0.125rem] min-h-[1.5rem] pl-[1.5rem] ml-3 flex items-center",OE="relative float-left -ml-[1.5rem] mr-[6px] mt-[0.15rem] h-[1.125rem] w-[1.125rem] appearance-none rounded-[0.25rem] border-[0.125rem] border-solid border-neutral-300 outline-none before:pointer-events-none before:absolute before:h-[0.875rem] before:w-[0.875rem] before:scale-0 before:rounded-full before:bg-transparent before:opacity-0 before:shadow-[0px_0px_0px_13px_transparent] before:content-[''] checked:border-primary checked:bg-primary checked:before:opacity-[0.16] checked:after:absolute checked:after:-mt-px checked:after:ml-[0.25rem] checked:after:block checked:after:h-[0.8125rem] checked:after:w-[0.375rem] checked:after:rotate-45 checked:after:border-[0.125rem] checked:after:border-l-0 checked:after:border-t-0 checked:after:border-solid checked:after:border-white checked:after:bg-transparent checked:after:content-[''] hover:cursor-pointer hover:before:opacity-[0.04] hover:before:shadow-[0px_0px_0px_13px_rgba(0,0,0,0.6)] focus:shadow-none focus:transition-[border-color_0.2s] focus:before:scale-100 focus:before:opacity-[0.12] focus:before:shadow-[0px_0px_0px_13px_rgba(0,0,0,0.6)] focus:before:transition-[box-shadow_0.2s,transform_0.2s] focus:after:absolute focus:after:z-[1] focus:after:block focus:after:h-[0.875rem] focus:after:w-[0.875rem] focus:after:rounded-[0.125rem] focus:after:content-[''] checked:focus:before:scale-100 checked:focus:before:shadow-[0px_0px_0px_13px_#3b71ca] checked:focus:before:transition-[box-shadow_0.2s,transform_0.2s] checked:focus:after:-mt-px checked:focus:after:ml-[0.25rem] checked:focus:after:h-[0.8125rem] checked:focus:after:w-[0.375rem] checked:focus:after:rotate-45 checked:focus:after:rounded-none checked:focus:after:border-[0.125rem] checked:focus:after:border-l-0 checked:focus:after:border-t-0 checked:focus:after:border-solid checked:focus:after:border-white checked:focus:after:bg-transparent dark:border-neutral-600 dark:checked:border-primary dark:checked:bg-primary dark:focus:before:shadow-[0px_0px_0px_13px_rgba(255,255,255,0.4)] dark:checked:focus:before:shadow-[0px_0px_0px_13px_#3b71ca] dark:border-neutral-400",DE="mb-[0.125rem] min-h-[1.5rem] pl-[1.5rem] ml-3 flex items-center",IE="bg-white dark:bg-neutral-800",ME="py-4 pl-1 text-clip overflow-hidden text-[#212529] dark:text-white",LE="focus:outline-none",$E="sticky top-0 z-30",RE="sticky z-10 bg-inherit",PE="hover:bg-neutral-100 dark:hover:bg-neutral-700",NE="pointer-events-none cursor-none text-neutral-400 dark:text-neutral-300",BE="h-[2px] relative w-full overflow-hidden",HE="text-center text-neutral-500 font-ligh text-sm my-4 dark:text-neutral-400",FE="text-neutral-500 dark:text-neutral-300",WE="text-neutral-500 dark:text-neutral-300",VE="pointer-events-none cursor-none",zE="h-full w-[45%] bg-primary-400 dark:bg-primary-600",YE="h-full animate-[progress_3s_ease-in-out_infinite]",jE="pl-2 py-3 font-light text-sm dark:text-neutral-300",KE="border-b",UE="flex md:flex-row justify-end items-center py-2 space-x-4 text-sm flex-col leading-[1.6]",XE="border border-t-0",GE="order-1 my-3 md:order-none md:my-0 md:pr-1",qE="inline-block rounded p-2.5 text-xs font-medium uppercase leading-normal transition duration-150 ease-in-out hover:bg-neutral-100 hover:text-primary-600 focus:text-primary-600 focus:outline-none focus:ring-0 active:text-primary-700 disabled:text-slate-300 disabled:hover:bg-transparent dark:hover:bg-neutral-500 dark:disabled:hover:bg-transparent dark:disabled:text-neutral-600",ZE="inline-block rounded p-2.5 font-medium uppercase leading-normal transition duration-150 ease-in-out hover:bg-neutral-100 hover:text-primary-600 focus:text-primary-600 focus:outline-none focus:ring-0 active:text-primary-700 disabled:text-slate-300 disabled:hover:bg-transparent dark:hover:bg-neutral-500 dark:disabled:hover:bg-transparent dark:disabled:text-neutral-600",QE="font-normal order-2 mb-3 md:order-none md:mb-0",JE="inline-block rounded p-2.5 font-medium uppercase leading-normal transition duration-150 ease-in-out hover:bg-neutral-100 hover:text-primary-600 focus:text-primary-600 focus:outline-none focus:ring-0 active:text-primary-700 disabled:text-slate-300 disabled:hover:bg-transparent dark:hover:bg-neutral-500 dark:disabled:hover:bg-transparent dark:disabled:text-neutral-600",tC="font-light",eC="inline-block rounded p-2.5 font-medium uppercase leading-normal transition duration-150 ease-in-out hover:bg-neutral-100 hover:text-primary-600 focus:text-primary-600 focus:outline-none focus:ring-0 active:text-primary-700 disabled:text-slate-300 disabled:hover:bg-transparent dark:hover:bg-neutral-500 dark:disabled:hover:bg-transparent dark:disabled:text-neutral-600",iC="border-b",sC="transition ease-in-out duration-300 motion-reduce:transition-none",nC="whitespace-nowrap text-clip overflow-hidden px-[1.4rem] py-4",oC="relative",rC="!bg-neutral-100 dark:!bg-neutral-600",aC="flex items-center space-x-4 order-3 md:order-none",lC="w-[70px]",cC="!py-2",hC="w-[15px] h-[10px] origin-bottom font-black mr-1 opacity-0 text-neutral-500 group-hover:opacity-100 transition hover:ease-in-out transform ease-linear duration-300 motion-reduce:transition-none dark:text-neutral-400",dC="flex flex-row group",uC="[&:nth-child(odd)]:bg-neutral-50 [&:nth-child(odd)]:dark:bg-neutral-700",pC="border",fC="border-b font-normal px-[1.4rem]",_C="text-left text-sm font-light w-full leading-[1.6]",gC={bordered:"boolean",borderless:"boolean",clickableRows:"boolean",defaultValue:"string",edit:"boolean",entries:"(number|string)",entriesOptions:"array",fullPagination:"boolean",hover:"boolean",loading:"boolean",loadingMessage:"string",maxWidth:"(null|number|string)",maxHeight:"(null|number|string)",multi:"boolean",noFoundMessage:"string",pagination:"boolean",selectable:"boolean",sm:"boolean",sortField:"(null|string)",sortOrder:"string",fixedHeader:"boolean",striped:"boolean",rowsText:"string",ofText:"string",allText:"string",forceSort:"boolean",sortIconTemplate:"string",paginationStartIconTemplate:"string",paginationEndIconTemplate:"string",paginationLeftIconTemplate:"string",paginationRightIconTemplate:"string"},mC={bordered:!1,borderless:!1,clickableRows:!1,defaultValue:"-",edit:!1,entries:10,entriesOptions:[10,25,50,200],fixedHeader:!1,fullPagination:!1,hover:!1,loading:!1,loadingMessage:"Loading results...",maxWidth:null,maxHeight:null,multi:!1,noFoundMessage:"No matching results found",pagination:!0,selectable:!1,sm:!1,sortField:null,sortOrder:"asc",striped:!1,rowsText:"Rows per page:",ofText:"of",allText:"All",forceSort:!1,sortIconTemplate:yE,paginationStartIconTemplate:xE,paginationEndIconTemplate:CE,paginationLeftIconTemplate:TE,paginationRightIconTemplate:EE},bC={label:"string",field:"string",fixed:"(boolean|string)",format:"(function|null)",width:"(number|null)",sort:"boolean",columnIndex:"number"},vC={label:"",field:"",fixed:!1,format:null,width:null,sort:!0,columnIndex:0},yC={table:_C,tableHeader:fC,column:ME,pagination:UE,selectWrapper:lC,scroll:oC,tableBordered:pC,paginationBordered:XE,borderless:wE,checkboxRowWrapper:DE,checkboxRow:OE,checkboxHeaderWrapper:SE,checkboxHeader:kE,row:iC,rowItem:nC,striped:uC,sortIconWrapper:dC,sortIcon:hC,paginationRowsText:tC,paginationNav:QE,paginationButtonsWrapper:GE,hoverRow:PE,borderColor:AE,color:IE,fixedHeader:$E,fixedHeaderBody:RE,selectableRow:rC,rowAnimation:sC,sm:cC,edit:LE,selectItemsWrapper:aC,paginationStartButton:eC,paginationLeftButton:ZE,paginationRightButton:JE,paginationEndButton:qE,loadingItemsWrapper:BE,loadingProgressBarWrapper:YE,loadingProgressBar:zE,loadingMessage:HE,loadingPaginationRowsText:WE,loadingPaginationSelectWrapper:VE,loadingPaginationNav:FE,loadingColumn:NE,noFoundMessageWrapper:KE,noFoundMessage:jE},xC={table:"string",tableHeader:"string",column:"string",pagination:"string",selectWrapper:"string",scroll:"string",tableBordered:"string",paginationBordered:"string",borderless:"string",checkboxRowWrapper:"string",checkboxRow:"string",checkboxHeaderWrapper:"string",checkboxHeader:"string",row:"string",rowItem:"string",striped:"string",sortIconWrapper:"string",sortIcon:"string",paginationRowsText:"string",paginationNav:"string",paginationButtonsWrapper:"string",hoverRow:"string",borderColor:"string",color:"string",fixedHeader:"string",fixedHeaderBody:"string",selectableRow:"string",rowAnimation:"string",sm:"string",edit:"string",selectItemsWrapper:"string",paginationStartButton:"string",paginationLeftButton:"string",paginationRightButton:"string",paginationEndButton:"string",loadingItemsWrapper:"string",loadingProgressBarWrapper:"string",loadingProgressBar:"string",loadingMessage:"string",loadingPaginationRowsText:"string",loadingPaginationSelectWrapper:"string",loadingPaginationNav:"string",loadingColumn:"string",noFoundMessageWrapper:"string",noFoundMessage:"string"};class Go{constructor(t,e={},s={},n={}){this._element=t,this._options=this._getOptions(s),this._classes=this._getClasses(n),this._sortReverse=!1,this._activePage=0,this._search="",this._searchColumn=null,this._paginationLeft=null,this._paginationRight=null,this._paginationStart=null,this._paginationEnd=null,this._select=null,this._selectInstance=null,this._selected=[],this._checkboxes=null,this._headerCheckbox=null,this._rows=this._getRows(e.rows),this._columns=this._getColumns(e.columns),this._element&&(M.setData(t,sn,this),this._perfectScrollbar=null,this._setup())}static get NAME(){return en}get columns(){return this._columns.map((t,e)=>{let s={...vC,field:`field_${e}`,columnIndex:e};return typeof t=="string"?s.label=t:typeof t=="object"&&(s={...s,...t}),P("column",s,bC),s})}get rows(){return this._rows.map((t,e)=>{const s={rowIndex:e};return Array.isArray(t)?this.columns.forEach((n,o)=>{t[o]===0?s[n.field]=t[o]:s[n.field]=t[o]||this._options.defaultValue}):typeof t=="object"&&this.columns.forEach(n=>{t[n.field]===0?s[n.field]=t[n.field]:s[n.field]=t[n.field]||this._options.defaultValue}),s})}get searchResult(){return aE(this.rows,this._search,this._searchColumn)}get computedRows(){let t=[...this.searchResult];return this._options.sortOrder&&(t=rE({rows:t,field:this._options.sortField,order:this._options.sortOrder})),this._options.pagination&&(this._options.entries==="All"?t=Au({rows:t,entries:t.length,activePage:this._activePage}):t=Au({rows:t,entries:this._options.entries,activePage:this._activePage})),t}get pages(){return this._options.entries==="All"?1:Math.ceil(this.searchResult.length/this._options.entries)}get navigationText(){const t=this._activePage*this._options.entries;return this.searchResult.length===0?`0 ${this._options.ofText} 0`:this._options.entries==="All"?`1 - ${this.searchResult.length} ${this._options.ofText} ${this.searchResult.length}`:`${t+1} - ${this.computedRows.length+t} ${this._options.ofText} ${this.searchResult.length}`}get tableOptions(){return{classes:this._classes,columns:this.columns,rows:this.computedRows,noFoundMessage:this._options.noFoundMessage,edit:this._options.edit,loading:this._options.loading,loaderClass:this._options.loaderClass,loadingMessage:this._options.loadingMessage,selectable:this._options.selectable,multi:this._options.multi,bordered:this._options.bordered,borderless:this._options.borderless,striped:this._options.striped,hover:this._options.hover,fixedHeader:this._options.fixedHeader,sm:this._options.sm,sortIconTemplate:this._options.sortIconTemplate,pagination:{enable:this._options.pagination,text:this.navigationText,entries:this._options.entries,entriesOptions:this._options.entriesOptions,fullPagination:this._options.fullPagination,rowsText:this._options.rowsText,ofText:this._options.ofText,allText:this._options.allText,paginationStartIconTemplate:this._options.paginationStartIconTemplate,paginationLeftIconTemplate:this._options.paginationLeftIconTemplate,paginationRightIconTemplate:this._options.paginationRightIconTemplate,paginationEndIconTemplate:this._options.paginationEndIconTemplate,classes:this._classes},forceSort:this._options.forceSort}}update(t,e={}){t&&t.rows&&(this._rows=t.rows),t&&t.columns&&(this._columns=t.columns),this._clearClassList(e),this._options=this._getOptions({...this._options,...e}),this._setup(),this._performSort()}dispose(){this._selectInstance&&this._selectInstance.dispose(),M.removeData(this._element,sn),this._removeEventListeners(),this._perfectScrollbar.destroy(),this._element=null}search(t,e){this._search=t,this._searchColumn=e,this._activePage=0,this._options.pagination&&this._toggleDisableState(),this._renderRows(),this._options.maxHeight&&(this._perfectScrollbar.element.scrollTop=0,this._perfectScrollbar.update())}sort(t,e="asc"){this._options.sortOrder=e,typeof t=="string"?this._options.sortField=this.columns.find(n=>n.label===t).field:this._options.sortField=t.field;const s=m.findOne(`[data-te-sort="${this._options.sortField}"]`,this._element);this._activePage=0,this._toggleDisableState(),this._renderRows(),this._setActiveSortIcon(s)}setActivePage(t){t{this._options[e]&&!t[e]&&_.removeDataAttribute(`data-te-${e}`)})}_emitSelectEvent(){g.trigger(this._element,mE,{selectedRows:this.rows.filter(t=>this._selected.indexOf(t.rowIndex)!==-1),selectedIndexes:this._selected,allSelected:this._selected.length===this.rows.length})}_getRows(t=[]){const e=m.findOne("tbody",this._element);return e?[...m.find("tr",e).map(n=>m.find("td",n).map(o=>o.innerHTML)),...t]:t}_getColumns(t=[]){const e=m.findOne("thead",this._element);if(!e)return t;const s=m.findOne("tr",e);return[...m.find("th",s).map(o=>({label:o.innerHTML,..._.getDataAttributes(o)})),...t]}_getCSSValue(t){return typeof t=="string"?t:`${t}px`}_getOptions(t){const e={...mC,..._.getDataAttributes(this._element),...t};return P(en,e,gC),e}_setActiveRows(){m.find(nn,this._element).forEach(t=>{this._selected.includes(_.getDataAttribute(t,"index"))?_.addClass(t,`active ${this._classes.selectableRow}`):_.removeClass(t,`active ${this._classes.selectableRow}`)})}_setEntries(t){this._options=this._getOptions({...this._options,entries:t.target.value}),this._activePage>this.pages-1&&(this._activePage=this.pages-1),this._toggleDisableState(),this._renderRows()}_setSelected(){m.find(rl,this._element).forEach(t=>{const e=_.getDataAttribute(t,"rowIndex");t.checked=this._selected.includes(e)}),this._setActiveRows()}_setActiveSortIcon(t){m.find(ol,this._element).forEach(e=>{const s=this._options.sortOrder==="desc"&&e===t?180:0;_.style(e,{transform:`rotate(${s}deg)`}),e===t&&this._options.sortOrder?_.addClass(e,"opacity-100"):_.removeClass(e,"opacity-100")})}_setup(){this._renderTable(),this._options.pagination&&this._setupPagination(),this._options.edit&&this._setupEditable(),this._options.clickableRows&&this._setupClickableRows(),this._options.selectable&&this._setupSelectable(),this._setupScroll(),this._setupSort()}_setupClickableRows(){m.find(nn,this._element).forEach(t=>{const e=_.getDataAttribute(t,"index");_.addClass(t,"cursor-pointer"),g.on(t,"click",s=>{m.matches(s.target,rl)||g.trigger(this._element,bE,{index:e,row:this.rows[e]})})})}_setupEditable(){m.find(nn,this._element).forEach(t=>{const e=_.getDataAttribute(t,"index");m.find(nl,t).forEach(s=>{g.on(s,"input",n=>this._updateRow(n,e))})})}_setupScroll(){const t=m.findOne(lE,this._element),e={};if(this._options.maxHeight&&(e.maxHeight=this._getCSSValue(this._options.maxHeight)),this._options.maxWidth){const s=this._getCSSValue(this._options.maxWidth);e.maxWidth=s,_.style(this._element,{maxWidth:s})}if(_.style(t,e),_.addClass(t,`${this._classes.scroll}`),this._options.fixedHeader){let s=m.find(cE,this._element);this._options.selectable&&(s=s.filter((n,o)=>(_.addClass(n,`${this._classes.fixedHeader} ${this._classes.color}`),o!==0))),s.forEach((n,o)=>{_.addClass(n,`${this._classes.fixedHeader} ${this._classes.color}`),this.columns[o].fixed&&_.addClass(n,"!z-40")})}this._perfectScrollbar=new hs(t)}_setupSort(){m.find(ol,this._element).forEach(t=>{const e=_.getDataAttribute(t,"sort"),[s]=m.parents(t,"th");if(this.columns.sort)_.addClass(s,"cursor-pointer");else return;e===this._options.sortField&&this._setActiveSortIcon(t),g.on(s,"click",()=>{this._options.sortField===e&&this._options.sortOrder==="asc"?this._options.sortOrder="desc":this._options.sortField===e&&this._options.sortOrder==="desc"?this._options.sortOrder=this._options.forceSort?"asc":null:this._options.sortOrder="asc",this._options.sortField=e,this._activePage=0,this._performSort(),this._setActiveSortIcon(t)})})}_performSort(){this._toggleDisableState(),this._renderRows()}_setupSelectable(){this._checkboxes=m.find(rl,this._element),this._headerCheckbox=m.findOne(hE,this._element),g.on(this._headerCheckbox,"input",t=>this._toggleSelectAll(t)),this._checkboxes.forEach(t=>{const e=_.getDataAttribute(t,"rowIndex");g.on(t,"input",s=>this._toggleSelectRow(s,e))})}_setupPagination(){this._paginationRight=m.findOne(dE,this._element),this._paginationLeft=m.findOne(uE,this._element),g.on(this._paginationRight,"click",()=>this._changeActivePage(this._activePage+1)),g.on(this._paginationLeft,"click",()=>this._changeActivePage(this._activePage-1)),this._options.fullPagination&&(this._paginationStart=m.findOne(pE,this._element),this._paginationEnd=m.findOne(fE,this._element),g.on(this._paginationStart,"click",()=>this._changeActivePage(0)),g.on(this._paginationEnd,"click",()=>this._changeActivePage(this.pages-1))),this._toggleDisableState(),this._setupPaginationSelect()}_setupPaginationSelect(){this._select=m.findOne(gE,this._element),this._selectInstance=new Xs(this._select),g.on(this._select,"valueChange.te.select",t=>this._setEntries(t))}_removeEventListeners(){this._options.pagination&&(g.off(this._paginationRight,"click"),g.off(this._paginationLeft,"click"),g.off(this._select,"valueChange.te.select"),this._options.fullPagination&&(g.off(this._paginationStart,"click"),g.off(this._paginationEnd,"click"))),this._options.edit&&m.find(nl,this._element).forEach(t=>{g.off(t,"input")}),this._options.clickableRows&&m.find(nn,this._element).forEach(t=>{g.off(t,"click")}),m.find(ol,this._element).forEach(t=>{const[e]=m.parents(t,"th");g.off(e,"click")}),this._options.selectable&&(g.off(this._headerCheckbox,"input"),this._checkboxes.forEach(t=>{g.off(t,"input")}))}_renderTable(){this._element.innerHTML=Cu(this.tableOptions).table,this._formatCells(),g.trigger(this._element,wu)}_renderRows(){const t=m.findOne("tbody",this._element);if(this._options.pagination){const e=m.findOne(_E,this._element);e.innerText=this.navigationText}t.innerHTML=Cu(this.tableOptions).rows,this._formatCells(),this._options.edit&&this._setupEditable(),this._options.selectable&&(this._setupSelectable(),this._setSelected()),this._options.clickableRows&&this._setupClickableRows(),g.trigger(this._element,wu)}_formatCells(){m.find(nn,this._element).forEach(e=>{const s=_.getDataAttribute(e,"index");m.find(nl,e).forEach(o=>{const r=_.getDataAttribute(o,"field"),a=this.columns.find(l=>l.field===r);a&&a.format!==null&&a.format(o,this.rows[s][r])})})}_toggleDisableState(){this._options.pagination!==!1&&(this._activePage===0||this._options.loading?(this._paginationLeft.setAttribute("disabled",""),this._options.fullPagination&&this._paginationStart.setAttribute("disabled","")):(this._paginationLeft.removeAttribute("disabled"),this._options.fullPagination&&this._paginationStart.removeAttribute("disabled")),this._activePage===this.pages-1||this._options.loading||this.pages===0?(this._paginationRight.setAttribute("disabled",""),this._options.fullPagination&&this._paginationEnd.setAttribute("disabled","")):(this._paginationRight.removeAttribute("disabled"),this._options.fullPagination&&this._paginationEnd.removeAttribute("disabled")))}_toggleSelectAll(t){t.target.checked?this._selected=this.rows.map(e=>e.rowIndex):this._selected=[],this._setSelected(),this._emitSelectEvent()}_toggleSelectRow(t,e){t.target.checked?this._options.multi&&!this._selected.includes(e)?this._selected=[...this._selected,e]:(this._selected=[e],this._checkboxes.forEach(s=>{s!==t.target&&(s.checked=!1)})):this._selected=this._selected.filter(s=>s!==e),this._options.multi&&!t.target.checked&&(this._headerCheckbox.checked=!1),this._setActiveRows(),this._emitSelectEvent()}_updateRow(t,e){const s=_.getDataAttribute(t.target,"field"),n=t.target.textContent,o=this._rows[e];if(Array.isArray(o)){const a=this.columns.find(l=>l.field===s).columnIndex;o[a]=n}else o[s]=n;g.trigger(this._element,vE,{rows:this._rows,columns:this._columns})}static jQueryInterface(t,e,s){return this.each(function(){let n=M.getData(this,sn);const o=typeof t=="object"&&t;if(!(!n&&/dispose/.test(t))&&(n||(n=new Go(this,o,e)),typeof t=="string")){if(typeof n[t]>"u")throw new TypeError(`No method named "${t}"`);n[t](e,s)}})}static getInstance(t){return M.getData(t,sn)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,typeof e=="object"?e:null)}}const ku="rating",qo="te.rating",TC="data-te-rating-init",EC="[data-te-rating-icon-ref]",ds=`.${qo}`,CC="ArrowLeft",AC="ArrowRight",wC={tooltip:"string",value:"(string|number)",readonly:"boolean",after:"string",before:"string",dynamic:"boolean",active:"string"},kC={tooltip:"top",value:"",readonly:!1,after:"",before:"",dynamic:!1,active:"fill-current"},Su=`onSelect${ds}`,SC=`onHover${ds}`,Ou=`keyup${ds}`,Du=`focusout${ds}`,Iu=`keydown${ds}`,Mu=`mousedown${ds}`;class Lu{constructor(t,e){this._element=t,this._icons=m.find(EC,this._element),this._options=this._getConfig(e),this._index=-1,this._savedIndex=null,this._originalClassList=[],this._originalIcons=[],this._fn={},this._tooltips=[],this._element&&(M.setData(t,qo,this),this._init())}static get NAME(){return ku}dispose(){M.removeData(this._element,qo),this._options.readonly||(g.off(this._element,Ou),g.off(this._element,Du),g.off(this._element,Iu),this._element.removeEventListener("mouseleave",this._fn.mouseleave),this._icons.forEach((t,e)=>{g.off(t,Mu),t.removeEventListener("mouseenter",this._fn.mouseenter[e]),_.removeClass(t,"cursor-pointer")}),this._tooltips.forEach(t=>{t._element.removeAttribute(TC),t.dispose()}),this._icons.removeAttribute("tabIndex")),this._element=null}_init(){this._options.readonly||(this._bindMouseEnter(),this._bindMouseLeave(),this._bindMouseDown(),this._bindKeyDown(),this._bindKeyUp(),this._bindFocusLost(),this._icons.forEach(t=>{_.addClass(t,"cursor-pointer")})),this._options.dynamic&&(this._saveOriginalClassList(),this._saveOriginalIcons()),this._setCustomText(),this._setToolTips(),this._options.value&&(this._index=this._options.value-1,this._updateRating(this._index))}_getConfig(t){const e=_.getDataAttributes(this._element);return t={...kC,...e,...t},P(ku,t,wC),t}_bindMouseEnter(){this._fn.mouseenter=[],this._icons.forEach((t,e)=>{t.addEventListener("mouseenter",this._fn.mouseenter[e]=s=>{this._index=this._icons.indexOf(s.target),this._updateRating(this._index),this._triggerEvents(t,SC)})})}_bindMouseLeave(){this._element.addEventListener("mouseleave",this._fn.mouseleave=()=>{this._savedIndex!==null?(this._updateRating(this._savedIndex),this._index=this._savedIndex):this._options.value?(this._updateRating(this._options.value-1),this._index=this._options.value-1):(this._index=-1,this._clearRating())})}_bindMouseDown(){this._icons.forEach(t=>{g.on(t,Mu,()=>{this._setElementOutline("none"),this._savedIndex=this._index,this._triggerEvents(t,Su)})})}_bindKeyDown(){this._element.tabIndex=0,g.on(this._element,Iu,t=>this._updateAfterKeyDown(t))}_bindKeyUp(){g.on(this._element,Ou,()=>this._setElementOutline("auto"))}_bindFocusLost(){g.on(this._element,Du,()=>this._setElementOutline("none"))}_setElementOutline(t){this._element.style.outline=t}_triggerEvents(t,e){g.trigger(t,e,{value:this._index+1})}_updateAfterKeyDown(t){const e=this._icons.length-1,s=this._index;t.key===AC&&this._index-1&&(this._index-=1),s!==this._index&&(this._savedIndex=this._index,this._updateRating(this._savedIndex),this._triggerEvents(this._icons[this._savedIndex],Su))}_updateRating(t){this._clearRating(),this._options.dynamic&&this._restoreOriginalIcon(t),this._icons.forEach((e,s)=>{s<=t&&_.addClass(e.querySelector("svg"),this._options.active)})}_clearRating(){this._icons.forEach((t,e)=>{const s=t.querySelector("svg");this._options.dynamic&&(t.classList=this._originalClassList[e],s.innerHTML=this._originalIcons[e]),_.removeClass(s,this._options.active)})}_setToolTips(){this._icons.forEach((t,e)=>{const s=_.getDataAttribute(t,"toggle");t.title&&!s&&(_.setDataAttribute(t,"toggle","tooltip"),this._tooltips[e]=new Gi(t,{placement:this._options.tooltip}))})}_setCustomText(){this._icons.forEach(t=>{const e=_.getDataAttribute(t,"after"),s=_.getDataAttribute(t,"before");e&&t.insertAdjacentHTML("afterEnd",e),s&&t.insertAdjacentHTML("beforeBegin",s)})}_saveOriginalClassList(){this._icons.forEach(t=>{const e=t.classList.value;this._originalClassList.push(e)})}_saveOriginalIcons(){this._icons.forEach(t=>{const e=t.querySelector("svg").innerHTML;this._originalIcons.push(e)})}_restoreOriginalIcon(t){const e=this._originalClassList[t],s=this._originalIcons[t];this._icons.forEach((n,o)=>{if(o<=t){const r=n.querySelector("svg");r.innerHTML=s,n.classList=e}})}static getInstance(t){return M.getData(t,qo)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,typeof e=="object"?e:null)}}const al="popconfirm",on="te.popconfirm",$u=`.${on}`,OC=`cancel${$u}`,DC=`confirm${$u}`,IC="[data-te-popconfirm-body]",ll="data-te-popconfirm-popover",MC="data-te-popconfirm-modal",Ru="data-te-popconfirm-backdrop",LC={popconfirmMode:"string",message:"string",cancelText:"(null|string)",okText:"(null|string)",popconfirmIconTemplate:"string",cancelLabel:"(null|string)",confirmLabel:"(null|string)",position:"(null|string)"},$C={popconfirmMode:"inline",message:"Are you sure?",cancelText:"Cancel",okText:"OK",popconfirmIconTemplate:"",cancelLabel:"Cancel",confirmLabel:"Confirm",position:"bottom"},RC={backdrop:"string",body:"string",btnCancel:"string",btnConfirm:"string",btnsContainer:"string",fade:"string",icon:"string",message:"string",messageText:"string",modal:"string",popover:"string"},PC={backdrop:"h-full w-full z-[1070] fixed top-0 left-0 bg-[#00000066] flex justify-center items-center",body:"p-[1rem] bg-white rounded-[0.5rem] opacity-0 dark:bg-neutral-700",btnCancel:"inline-block rounded bg-primary-100 px-4 pb-[5px] pt-[6px] text-xs font-medium uppercase leading-normal text-primary-700 transition duration-150 ease-in-out hover:bg-primary-accent-100 focus:bg-primary-accent-100 focus:outline-none focus:ring-0 active:bg-primary-accent-200",btnConfirm:"inline-block rounded bg-primary px-4 pb-[5px] pt-[6px] text-xs font-medium uppercase leading-normal text-white shadow-[0_4px_9px_-4px_#3b71ca] transition duration-150 ease-in-out hover:bg-primary-600 hover:shadow-[0_8px_9px_-4px_rgba(59,113,202,0.3),0_4px_18px_0_rgba(59,113,202,0.2)] focus:bg-primary-600 focus:shadow-[0_8px_9px_-4px_rgba(59,113,202,0.3),0_4px_18px_0_rgba(59,113,202,0.2)] focus:outline-none focus:ring-0 active:bg-primary-700 active:shadow-[0_8px_9px_-4px_rgba(59,113,202,0.3),0_4px_18px_0_rgba(59,113,202,0.2)] dark:shadow-[0_4px_9px_-4px_rgba(59,113,202,0.5)] dark:hover:shadow-[0_8px_9px_-4px_rgba(59,113,202,0.2),0_4px_18px_0_rgba(59,113,202,0.1)] dark:focus:shadow-[0_8px_9px_-4px_rgba(59,113,202,0.2),0_4px_18px_0_rgba(59,113,202,0.1)] dark:active:shadow-[0_8px_9px_-4px_rgba(59,113,202,0.2),0_4px_18px_0_rgba(59,113,202,0.1)]",btnsContainer:"flex justify-end space-x-2",fade:"transition-opacity duration-[150ms] ease-linear",icon:"pr-2",message:"flex mb-3",messageText:"text-neutral-600 dark:text-white",modal:"absolute w-[300px] z-[1080] shadow-sm rounded-[0.5rem]",popover:"w-[300px] border-0 rounded-[0.5rem] z-[1080] shadow-sm"};class Zo{constructor(t,e,s){this._element=t,this._options=this._getConfig(e),this._classes=this._getClasses(s),this._popper=null,this._cancelButton="",this._confirmButton="",this._isOpen=!1,this._uid=this._element.id?`popconfirm-${this._element.id}`:Gt("popconfirm-"),t&&M.setData(t,on,this),this._clickHandler=this.open.bind(this),g.on(this._element,"click",this._clickHandler)}static get NAME(){return al}get container(){return m.findOne(`#${this._uid}`)}get popconfirmBody(){return m.findOne(IC,this.container)}dispose(){(this._isOpen||this.container!==null)&&this.close(),M.removeData(this._element,on),g.off(this._element,"click",this._clickHandler),this._element=null}open(){this._isOpen||(this._options.popconfirmMode==="inline"?this._openPopover(this._getPopoverTemplate()):this._openModal(this._getModalTemplate()),this._handleCancelButtonClick(),this._handleConfirmButtonClick(),this._listenToEscapeKey(),this._listenToOutsideClick())}close(){if(this._isOpen){if(this._popper!==null||m.findOne(`[${ll}]`)!==null)g.on(this.popconfirmBody,"transitionend",this._handlePopconfirmTransitionEnd.bind(this)),_.removeClass(this.popconfirmBody,"opacity-100");else{const t=m.findOne(`[${Ru}]`);_.removeClass(this.popconfirmBody,"opacity-100"),document.body.removeChild(t),this._isOpen=!1}g.off(document,"click",this._handleOutsideClick.bind(this)),g.off(document,"keydown",this._handleEscapeKey.bind(this))}}_handlePopconfirmTransitionEnd(t){if(t.target!==this.popconfirmBody)return;const e=m.findOne(`[${ll}]`);g.off(this.popconfirmBody,"transitionend"),this._isOpen&&t&&t.propertyName==="opacity"&&(this._popper.destroy(),e&&document.body.removeChild(e),this._isOpen=!1)}_getPopoverTemplate(){const t=L("div"),e=this._getPopconfirmTemplate();return t.setAttribute(ll,""),_.addClass(t,this._classes.popover),t.id=this._uid,t.innerHTML=e,t}_getModalTemplate(){const t=L("div"),e=this._getPopconfirmTemplate();return t.setAttribute(MC,""),_.addClass(t,`${this._classes.modal}`),t.id=this._uid,t.innerHTML=e,t}_getPopconfirmTemplate(){return`
+`,OC="border-neutral-200 dark:border-neutral-500",DC="border-none",IC="relative float-left -ml-[1.5rem] mr-[6px] mt-[0.15rem] h-[1.125rem] w-[1.125rem] appearance-none rounded-[0.25rem] border-[0.125rem] border-solid border-neutral-300 outline-none before:pointer-events-none before:absolute before:h-[0.875rem] before:w-[0.875rem] before:scale-0 before:rounded-full before:bg-transparent before:opacity-0 before:shadow-[0px_0px_0px_13px_transparent] before:content-[''] checked:border-primary checked:bg-primary checked:before:opacity-[0.16] checked:after:absolute checked:after:-mt-px checked:after:ml-[0.25rem] checked:after:block checked:after:h-[0.8125rem] checked:after:w-[0.375rem] checked:after:rotate-45 checked:after:border-[0.125rem] checked:after:border-l-0 checked:after:border-t-0 checked:after:border-solid checked:after:border-white checked:after:bg-transparent checked:after:content-[''] hover:cursor-pointer hover:before:opacity-[0.04] hover:before:shadow-[0px_0px_0px_13px_rgba(0,0,0,0.6)] focus:shadow-none focus:transition-[border-color_0.2s] focus:before:scale-100 focus:before:opacity-[0.12] focus:before:shadow-[0px_0px_0px_13px_rgba(0,0,0,0.6)] focus:before:transition-[box-shadow_0.2s,transform_0.2s] focus:after:absolute focus:after:z-[1] focus:after:block focus:after:h-[0.875rem] focus:after:w-[0.875rem] focus:after:rounded-[0.125rem] focus:after:content-[''] checked:focus:before:scale-100 checked:focus:before:shadow-[0px_0px_0px_13px_#3b71ca] checked:focus:before:transition-[box-shadow_0.2s,transform_0.2s] checked:focus:after:-mt-px checked:focus:after:ml-[0.25rem] checked:focus:after:h-[0.8125rem] checked:focus:after:w-[0.375rem] checked:focus:after:rotate-45 checked:focus:after:rounded-none checked:focus:after:border-[0.125rem] checked:focus:after:border-l-0 checked:focus:after:border-t-0 checked:focus:after:border-solid checked:focus:after:border-white checked:focus:after:bg-transparent dark:border-neutral-600 dark:checked:border-primary dark:checked:bg-primary dark:focus:before:shadow-[0px_0px_0px_13px_rgba(255,255,255,0.4)] dark:checked:focus:before:shadow-[0px_0px_0px_13px_#3b71ca] dark:border-neutral-400",MC="mb-[0.125rem] min-h-[1.5rem] pl-[1.5rem] ml-3 flex items-center",LC="relative float-left -ml-[1.5rem] mr-[6px] mt-[0.15rem] h-[1.125rem] w-[1.125rem] appearance-none rounded-[0.25rem] border-[0.125rem] border-solid border-neutral-300 outline-none before:pointer-events-none before:absolute before:h-[0.875rem] before:w-[0.875rem] before:scale-0 before:rounded-full before:bg-transparent before:opacity-0 before:shadow-[0px_0px_0px_13px_transparent] before:content-[''] checked:border-primary checked:bg-primary checked:before:opacity-[0.16] checked:after:absolute checked:after:-mt-px checked:after:ml-[0.25rem] checked:after:block checked:after:h-[0.8125rem] checked:after:w-[0.375rem] checked:after:rotate-45 checked:after:border-[0.125rem] checked:after:border-l-0 checked:after:border-t-0 checked:after:border-solid checked:after:border-white checked:after:bg-transparent checked:after:content-[''] hover:cursor-pointer hover:before:opacity-[0.04] hover:before:shadow-[0px_0px_0px_13px_rgba(0,0,0,0.6)] focus:shadow-none focus:transition-[border-color_0.2s] focus:before:scale-100 focus:before:opacity-[0.12] focus:before:shadow-[0px_0px_0px_13px_rgba(0,0,0,0.6)] focus:before:transition-[box-shadow_0.2s,transform_0.2s] focus:after:absolute focus:after:z-[1] focus:after:block focus:after:h-[0.875rem] focus:after:w-[0.875rem] focus:after:rounded-[0.125rem] focus:after:content-[''] checked:focus:before:scale-100 checked:focus:before:shadow-[0px_0px_0px_13px_#3b71ca] checked:focus:before:transition-[box-shadow_0.2s,transform_0.2s] checked:focus:after:-mt-px checked:focus:after:ml-[0.25rem] checked:focus:after:h-[0.8125rem] checked:focus:after:w-[0.375rem] checked:focus:after:rotate-45 checked:focus:after:rounded-none checked:focus:after:border-[0.125rem] checked:focus:after:border-l-0 checked:focus:after:border-t-0 checked:focus:after:border-solid checked:focus:after:border-white checked:focus:after:bg-transparent dark:border-neutral-600 dark:checked:border-primary dark:checked:bg-primary dark:focus:before:shadow-[0px_0px_0px_13px_rgba(255,255,255,0.4)] dark:checked:focus:before:shadow-[0px_0px_0px_13px_#3b71ca] dark:border-neutral-400",$C="mb-[0.125rem] min-h-[1.5rem] pl-[1.5rem] ml-3 flex items-center",PC="bg-white dark:bg-neutral-800",RC="py-4 pl-1 text-clip overflow-hidden text-[#212529] dark:text-white",NC="focus:outline-none",BC="sticky top-0 z-30",HC="sticky z-10 bg-inherit",VC="hover:bg-neutral-100 dark:hover:bg-neutral-700",FC="pointer-events-none cursor-none text-neutral-400 dark:text-neutral-300",WC="h-[2px] relative w-full overflow-hidden",zC="text-center text-neutral-500 font-ligh text-sm my-4 dark:text-neutral-400",jC="text-neutral-500 dark:text-neutral-300",YC="text-neutral-500 dark:text-neutral-300",KC="pointer-events-none cursor-none",UC="h-full w-[45%] bg-primary-400 dark:bg-primary-600",XC="h-full animate-[progress_3s_ease-in-out_infinite]",GC="pl-2 py-3 font-light text-sm dark:text-neutral-300",qC="border-b",ZC="flex md:flex-row justify-end items-center py-2 space-x-4 text-sm flex-col leading-[1.6]",QC="border border-t-0",JC="order-1 my-3 md:order-none md:my-0 md:pr-1",tA="inline-block rounded p-2.5 text-xs font-medium uppercase leading-normal transition duration-150 ease-in-out hover:bg-neutral-100 hover:text-primary-600 focus:text-primary-600 focus:outline-none focus:ring-0 active:text-primary-700 disabled:text-slate-300 disabled:hover:bg-transparent dark:hover:bg-neutral-500 dark:disabled:hover:bg-transparent dark:disabled:text-neutral-600",eA="inline-block rounded p-2.5 font-medium uppercase leading-normal transition duration-150 ease-in-out hover:bg-neutral-100 hover:text-primary-600 focus:text-primary-600 focus:outline-none focus:ring-0 active:text-primary-700 disabled:text-slate-300 disabled:hover:bg-transparent dark:hover:bg-neutral-500 dark:disabled:hover:bg-transparent dark:disabled:text-neutral-600",iA="font-normal order-2 mb-3 md:order-none md:mb-0",sA="inline-block rounded p-2.5 font-medium uppercase leading-normal transition duration-150 ease-in-out hover:bg-neutral-100 hover:text-primary-600 focus:text-primary-600 focus:outline-none focus:ring-0 active:text-primary-700 disabled:text-slate-300 disabled:hover:bg-transparent dark:hover:bg-neutral-500 dark:disabled:hover:bg-transparent dark:disabled:text-neutral-600",nA="font-light",oA="inline-block rounded p-2.5 font-medium uppercase leading-normal transition duration-150 ease-in-out hover:bg-neutral-100 hover:text-primary-600 focus:text-primary-600 focus:outline-none focus:ring-0 active:text-primary-700 disabled:text-slate-300 disabled:hover:bg-transparent dark:hover:bg-neutral-500 dark:disabled:hover:bg-transparent dark:disabled:text-neutral-600",rA="border-b",aA="transition ease-in-out duration-300 motion-reduce:transition-none",lA="whitespace-nowrap text-clip overflow-hidden px-[1.4rem] py-4",cA="relative",hA="!bg-neutral-100 dark:!bg-neutral-600",dA="flex items-center space-x-4 order-3 md:order-none",uA="w-[70px]",pA="!py-2",fA="w-[15px] h-[10px] origin-bottom font-black mr-1 opacity-0 text-neutral-500 group-hover:opacity-100 transition hover:ease-in-out transform ease-linear duration-300 motion-reduce:transition-none dark:text-neutral-400",_A="flex flex-row group",gA="[&:nth-child(odd)]:bg-neutral-50 [&:nth-child(odd)]:dark:bg-neutral-700",mA="border",bA="border-b font-normal px-[1.4rem]",vA="text-left text-sm font-light w-full leading-[1.6]",yA={bordered:"boolean",borderless:"boolean",clickableRows:"boolean",defaultValue:"string",edit:"boolean",entries:"(number|string)",entriesOptions:"array",fullPagination:"boolean",hover:"boolean",loading:"boolean",loadingMessage:"string",maxWidth:"(null|number|string)",maxHeight:"(null|number|string)",multi:"boolean",noFoundMessage:"string",pagination:"boolean",selectable:"boolean",sm:"boolean",sortField:"(null|string)",sortOrder:"string",fixedHeader:"boolean",striped:"boolean",rowsText:"string",ofText:"string",allText:"string",forceSort:"boolean",sortIconTemplate:"string",paginationStartIconTemplate:"string",paginationEndIconTemplate:"string",paginationLeftIconTemplate:"string",paginationRightIconTemplate:"string"},TA={bordered:!1,borderless:!1,clickableRows:!1,defaultValue:"-",edit:!1,entries:10,entriesOptions:[10,25,50,200],fixedHeader:!1,fullPagination:!1,hover:!1,loading:!1,loadingMessage:"Loading results...",maxWidth:null,maxHeight:null,multi:!1,noFoundMessage:"No matching results found",pagination:!0,selectable:!1,sm:!1,sortField:null,sortOrder:"asc",striped:!1,rowsText:"Rows per page:",ofText:"of",allText:"All",forceSort:!1,sortIconTemplate:CC,paginationStartIconTemplate:AC,paginationEndIconTemplate:SC,paginationLeftIconTemplate:wC,paginationRightIconTemplate:kC},EA={label:"string",field:"string",fixed:"(boolean|string)",format:"(function|null)",width:"(number|null)",sort:"boolean",columnIndex:"number"},xA={label:"",field:"",fixed:!1,format:null,width:null,sort:!0,columnIndex:0},CA={table:vA,tableHeader:bA,column:RC,pagination:ZC,selectWrapper:uA,scroll:cA,tableBordered:mA,paginationBordered:QC,borderless:DC,checkboxRowWrapper:$C,checkboxRow:LC,checkboxHeaderWrapper:MC,checkboxHeader:IC,row:rA,rowItem:lA,striped:gA,sortIconWrapper:_A,sortIcon:fA,paginationRowsText:nA,paginationNav:iA,paginationButtonsWrapper:JC,hoverRow:VC,borderColor:OC,color:PC,fixedHeader:BC,fixedHeaderBody:HC,selectableRow:hA,rowAnimation:aA,sm:pA,edit:NC,selectItemsWrapper:dA,paginationStartButton:oA,paginationLeftButton:eA,paginationRightButton:sA,paginationEndButton:tA,loadingItemsWrapper:WC,loadingProgressBarWrapper:XC,loadingProgressBar:UC,loadingMessage:zC,loadingPaginationRowsText:YC,loadingPaginationSelectWrapper:KC,loadingPaginationNav:jC,loadingColumn:FC,noFoundMessageWrapper:qC,noFoundMessage:GC},AA={table:"string",tableHeader:"string",column:"string",pagination:"string",selectWrapper:"string",scroll:"string",tableBordered:"string",paginationBordered:"string",borderless:"string",checkboxRowWrapper:"string",checkboxRow:"string",checkboxHeaderWrapper:"string",checkboxHeader:"string",row:"string",rowItem:"string",striped:"string",sortIconWrapper:"string",sortIcon:"string",paginationRowsText:"string",paginationNav:"string",paginationButtonsWrapper:"string",hoverRow:"string",borderColor:"string",color:"string",fixedHeader:"string",fixedHeaderBody:"string",selectableRow:"string",rowAnimation:"string",sm:"string",edit:"string",selectItemsWrapper:"string",paginationStartButton:"string",paginationLeftButton:"string",paginationRightButton:"string",paginationEndButton:"string",loadingItemsWrapper:"string",loadingProgressBarWrapper:"string",loadingProgressBar:"string",loadingMessage:"string",loadingPaginationRowsText:"string",loadingPaginationSelectWrapper:"string",loadingPaginationNav:"string",loadingColumn:"string",noFoundMessageWrapper:"string",noFoundMessage:"string"};class ar{constructor(t,e={},i={},n={}){this._element=t,this._options=this._getOptions(i),this._classes=this._getClasses(n),this._sortReverse=!1,this._activePage=0,this._search="",this._searchColumn=null,this._paginationLeft=null,this._paginationRight=null,this._paginationStart=null,this._paginationEnd=null,this._select=null,this._selectInstance=null,this._selected=[],this._checkboxes=null,this._headerCheckbox=null,this._rows=this._getRows(e.rows),this._columns=this._getColumns(e.columns),this._element&&(D.setData(t,hn,this),this._perfectScrollbar=null,this._setup())}static get NAME(){return cn}get columns(){return this._columns.map((t,e)=>{let i={...xA,field:`field_${e}`,columnIndex:e};return typeof t=="string"?i.label=t:typeof t=="object"&&(i={...i,...t}),L("column",i,EA),i})}get rows(){return this._rows.map((t,e)=>{const i={rowIndex:e};return Array.isArray(t)?this.columns.forEach((n,o)=>{t[o]===0?i[n.field]=t[o]:i[n.field]=t[o]||this._options.defaultValue}):typeof t=="object"&&this.columns.forEach(n=>{t[n.field]===0?i[n.field]=t[n.field]:i[n.field]=t[n.field]||this._options.defaultValue}),i})}get searchResult(){return dC(this.rows,this._search,this._searchColumn)}get computedRows(){let t=[...this.searchResult];return this._options.sortOrder&&(t=hC({rows:t,field:this._options.sortField,order:this._options.sortOrder})),this._options.pagination&&(this._options.entries==="All"?t=fp({rows:t,entries:t.length,activePage:this._activePage}):t=fp({rows:t,entries:this._options.entries,activePage:this._activePage})),t}get pages(){return this._options.entries==="All"?1:Math.ceil(this.searchResult.length/this._options.entries)}get navigationText(){const t=this._activePage*this._options.entries;return this.searchResult.length===0?`0 ${this._options.ofText} 0`:this._options.entries==="All"?`1 - ${this.searchResult.length} ${this._options.ofText} ${this.searchResult.length}`:`${t+1} - ${this.computedRows.length+t} ${this._options.ofText} ${this.searchResult.length}`}get tableOptions(){return{classes:this._classes,columns:this.columns,rows:this.computedRows,noFoundMessage:this._options.noFoundMessage,edit:this._options.edit,loading:this._options.loading,loaderClass:this._options.loaderClass,loadingMessage:this._options.loadingMessage,selectable:this._options.selectable,multi:this._options.multi,bordered:this._options.bordered,borderless:this._options.borderless,striped:this._options.striped,hover:this._options.hover,fixedHeader:this._options.fixedHeader,sm:this._options.sm,sortIconTemplate:this._options.sortIconTemplate,pagination:{enable:this._options.pagination,text:this.navigationText,entries:this._options.entries,entriesOptions:this._options.entriesOptions,fullPagination:this._options.fullPagination,rowsText:this._options.rowsText,ofText:this._options.ofText,allText:this._options.allText,paginationStartIconTemplate:this._options.paginationStartIconTemplate,paginationLeftIconTemplate:this._options.paginationLeftIconTemplate,paginationRightIconTemplate:this._options.paginationRightIconTemplate,paginationEndIconTemplate:this._options.paginationEndIconTemplate,classes:this._classes},forceSort:this._options.forceSort}}update(t,e={}){t&&t.rows&&(this._rows=t.rows),t&&t.columns&&(this._columns=t.columns),this._clearClassList(e),this._options=this._getOptions({...this._options,...e}),this._setup(),this._performSort()}dispose(){this._selectInstance&&this._selectInstance.dispose(),D.removeData(this._element,hn),this._removeEventListeners(),this._perfectScrollbar.destroy(),this._element=null}search(t,e){this._search=t,this._searchColumn=e,this._activePage=0,this._options.pagination&&this._toggleDisableState(),this._renderRows(),this._options.maxHeight&&(this._perfectScrollbar.element.scrollTop=0,this._perfectScrollbar.update())}sort(t,e="asc"){this._options.sortOrder=e,typeof t=="string"?this._options.sortField=this.columns.find(n=>n.label===t).field:this._options.sortField=t.field;const i=m.findOne(`[data-te-sort="${this._options.sortField}"]`,this._element);this._activePage=0,this._toggleDisableState(),this._renderRows(),this._setActiveSortIcon(i)}setActivePage(t){t{this._options[e]&&!t[e]&&g.removeDataAttribute(`data-te-${e}`)})}_emitSelectEvent(){_.trigger(this._element,TC,{selectedRows:this.rows.filter(t=>this._selected.indexOf(t.rowIndex)!==-1),selectedIndexes:this._selected,allSelected:this._selected.length===this.rows.length})}_getRows(t=[]){const e=m.findOne("tbody",this._element);return e?[...m.find("tr",e).map(n=>m.find("td",n).map(o=>o.innerHTML)),...t]:t}_getColumns(t=[]){const e=m.findOne("thead",this._element);if(!e)return t;const i=m.findOne("tr",e);return[...m.find("th",i).map(o=>({label:o.innerHTML,...g.getDataAttributes(o)})),...t]}_getCSSValue(t){return typeof t=="string"?t:`${t}px`}_getOptions(t){const e={...TA,...g.getDataAttributes(this._element),...t};return L(cn,e,yA),e}_setActiveRows(){m.find(dn,this._element).forEach(t=>{this._selected.includes(g.getDataAttribute(t,"index"))?g.addClass(t,`active ${this._classes.selectableRow}`):g.removeClass(t,`active ${this._classes.selectableRow}`)})}_setEntries(t){this._options=this._getOptions({...this._options,entries:t.target.value}),this._activePage>this.pages-1&&(this._activePage=this.pages-1),this._toggleDisableState(),this._renderRows()}_setSelected(){m.find(Bl,this._element).forEach(t=>{const e=g.getDataAttribute(t,"rowIndex");t.checked=this._selected.includes(e)}),this._setActiveRows()}_setActiveSortIcon(t){m.find(Nl,this._element).forEach(e=>{const i=this._options.sortOrder==="desc"&&e===t?180:0;g.style(e,{transform:`rotate(${i}deg)`}),e===t&&this._options.sortOrder?g.addClass(e,"opacity-100"):g.removeClass(e,"opacity-100")})}_setup(){this._renderTable(),this._options.pagination&&this._setupPagination(),this._options.edit&&this._setupEditable(),this._options.clickableRows&&this._setupClickableRows(),this._options.selectable&&this._setupSelectable(),this._setupScroll(),this._setupSort()}_setupClickableRows(){m.find(dn,this._element).forEach(t=>{const e=g.getDataAttribute(t,"index");g.addClass(t,"cursor-pointer"),_.on(t,"click",i=>{m.matches(i.target,Bl)||_.trigger(this._element,EC,{index:e,row:this.rows[e]})})})}_setupEditable(){m.find(dn,this._element).forEach(t=>{const e=g.getDataAttribute(t,"index");m.find(Rl,t).forEach(i=>{_.on(i,"input",n=>this._updateRow(n,e))})})}_setupScroll(){const t=m.findOne(uC,this._element),e={};if(this._options.maxHeight&&(e.maxHeight=this._getCSSValue(this._options.maxHeight)),this._options.maxWidth){const i=this._getCSSValue(this._options.maxWidth);e.maxWidth=i,g.style(this._element,{maxWidth:i})}if(g.style(t,e),g.addClass(t,`${this._classes.scroll}`),this._options.fixedHeader){let i=m.find(pC,this._element);this._options.selectable&&(i=i.filter((n,o)=>(g.addClass(n,`${this._classes.fixedHeader} ${this._classes.color}`),o!==0))),i.forEach((n,o)=>{g.addClass(n,`${this._classes.fixedHeader} ${this._classes.color}`),this.columns[o].fixed&&g.addClass(n,"!z-40")})}this._perfectScrollbar=new ps(t)}_setupSort(){m.find(Nl,this._element).forEach(t=>{const e=g.getDataAttribute(t,"sort"),[i]=m.parents(t,"th");if(this.columns.sort)g.addClass(i,"cursor-pointer");else return;e===this._options.sortField&&this._setActiveSortIcon(t),_.on(i,"click",()=>{this._options.sortField===e&&this._options.sortOrder==="asc"?this._options.sortOrder="desc":this._options.sortField===e&&this._options.sortOrder==="desc"?this._options.sortOrder=this._options.forceSort?"asc":null:this._options.sortOrder="asc",this._options.sortField=e,this._activePage=0,this._performSort(),this._setActiveSortIcon(t)})})}_performSort(){this._toggleDisableState(),this._renderRows()}_setupSelectable(){this._checkboxes=m.find(Bl,this._element),this._headerCheckbox=m.findOne(fC,this._element),_.on(this._headerCheckbox,"input",t=>this._toggleSelectAll(t)),this._checkboxes.forEach(t=>{const e=g.getDataAttribute(t,"rowIndex");_.on(t,"input",i=>this._toggleSelectRow(i,e))})}_setupPagination(){this._paginationRight=m.findOne(_C,this._element),this._paginationLeft=m.findOne(gC,this._element),_.on(this._paginationRight,"click",()=>this._changeActivePage(this._activePage+1)),_.on(this._paginationLeft,"click",()=>this._changeActivePage(this._activePage-1)),this._options.fullPagination&&(this._paginationStart=m.findOne(mC,this._element),this._paginationEnd=m.findOne(bC,this._element),_.on(this._paginationStart,"click",()=>this._changeActivePage(0)),_.on(this._paginationEnd,"click",()=>this._changeActivePage(this.pages-1))),this._toggleDisableState(),this._setupPaginationSelect()}_setupPaginationSelect(){this._select=m.findOne(yC,this._element),this._selectInstance=new en(this._select),_.on(this._select,"valueChange.te.select",t=>this._setEntries(t))}_removeEventListeners(){this._options.pagination&&(_.off(this._paginationRight,"click"),_.off(this._paginationLeft,"click"),_.off(this._select,"valueChange.te.select"),this._options.fullPagination&&(_.off(this._paginationStart,"click"),_.off(this._paginationEnd,"click"))),this._options.edit&&m.find(Rl,this._element).forEach(t=>{_.off(t,"input")}),this._options.clickableRows&&m.find(dn,this._element).forEach(t=>{_.off(t,"click")}),m.find(Nl,this._element).forEach(t=>{const[e]=m.parents(t,"th");_.off(e,"click")}),this._options.selectable&&(_.off(this._headerCheckbox,"input"),this._checkboxes.forEach(t=>{_.off(t,"input")}))}_renderTable(){this._element.innerHTML=pp(this.tableOptions).table,this._formatCells(),_.trigger(this._element,_p)}_renderRows(){const t=m.findOne("tbody",this._element);if(this._options.pagination){const e=m.findOne(vC,this._element);e.innerText=this.navigationText}t.innerHTML=pp(this.tableOptions).rows,this._formatCells(),this._options.edit&&this._setupEditable(),this._options.selectable&&(this._setupSelectable(),this._setSelected()),this._options.clickableRows&&this._setupClickableRows(),_.trigger(this._element,_p)}_formatCells(){m.find(dn,this._element).forEach(e=>{const i=g.getDataAttribute(e,"index");m.find(Rl,e).forEach(o=>{const r=g.getDataAttribute(o,"field"),a=this.columns.find(l=>l.field===r);a&&a.format!==null&&a.format(o,this.rows[i][r])})})}_toggleDisableState(){this._options.pagination!==!1&&(this._activePage===0||this._options.loading?(this._paginationLeft.setAttribute("disabled",""),this._options.fullPagination&&this._paginationStart.setAttribute("disabled","")):(this._paginationLeft.removeAttribute("disabled"),this._options.fullPagination&&this._paginationStart.removeAttribute("disabled")),this._activePage===this.pages-1||this._options.loading||this.pages===0?(this._paginationRight.setAttribute("disabled",""),this._options.fullPagination&&this._paginationEnd.setAttribute("disabled","")):(this._paginationRight.removeAttribute("disabled"),this._options.fullPagination&&this._paginationEnd.removeAttribute("disabled")))}_toggleSelectAll(t){t.target.checked?this._selected=this.rows.map(e=>e.rowIndex):this._selected=[],this._setSelected(),this._emitSelectEvent()}_toggleSelectRow(t,e){t.target.checked?this._options.multi&&!this._selected.includes(e)?this._selected=[...this._selected,e]:(this._selected=[e],this._checkboxes.forEach(i=>{i!==t.target&&(i.checked=!1)})):this._selected=this._selected.filter(i=>i!==e),this._options.multi&&!t.target.checked&&(this._headerCheckbox.checked=!1),this._setActiveRows(),this._emitSelectEvent()}_updateRow(t,e){const i=g.getDataAttribute(t.target,"field"),n=t.target.textContent,o=this._rows[e];if(Array.isArray(o)){const a=this.columns.find(l=>l.field===i).columnIndex;o[a]=n}else o[i]=n;_.trigger(this._element,xC,{rows:this._rows,columns:this._columns})}static jQueryInterface(t,e,i){return this.each(function(){let n=D.getData(this,hn);const o=typeof t=="object"&&t;if(!(!n&&/dispose/.test(t))&&(n||(n=new ar(this,o,e)),typeof t=="string")){if(typeof n[t]>"u")throw new TypeError(`No method named "${t}"`);n[t](e,i)}})}static getInstance(t){return D.getData(t,hn)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,typeof e=="object"?e:null)}}const gp="rating",lr="te.rating",wA="data-te-rating-init",kA="[data-te-rating-icon-ref]",fs=`.${lr}`,SA="ArrowLeft",OA="ArrowRight",DA={tooltip:"string",value:"(string|number)",readonly:"boolean",after:"string",before:"string",dynamic:"boolean",active:"string"},IA={tooltip:"top",value:"",readonly:!1,after:"",before:"",dynamic:!1,active:"fill-current"},mp=`onSelect${fs}`,MA=`onHover${fs}`,bp=`keyup${fs}`,vp=`focusout${fs}`,yp=`keydown${fs}`,Tp=`mousedown${fs}`;class Ep{constructor(t,e){this._element=t,this._icons=m.find(kA,this._element),this._options=this._getConfig(e),this._index=-1,this._savedIndex=null,this._originalClassList=[],this._originalIcons=[],this._fn={},this._tooltips=[],this._element&&(D.setData(t,lr,this),this._init())}static get NAME(){return gp}dispose(){D.removeData(this._element,lr),this._options.readonly||(_.off(this._element,bp),_.off(this._element,vp),_.off(this._element,yp),this._element.removeEventListener("mouseleave",this._fn.mouseleave),this._icons.forEach((t,e)=>{_.off(t,Tp),t.removeEventListener("mouseenter",this._fn.mouseenter[e]),g.removeClass(t,"cursor-pointer")}),this._tooltips.forEach(t=>{t._element.removeAttribute(wA),t.dispose()}),this._icons.removeAttribute("tabIndex")),this._element=null}_init(){this._options.readonly||(this._bindMouseEnter(),this._bindMouseLeave(),this._bindMouseDown(),this._bindKeyDown(),this._bindKeyUp(),this._bindFocusLost(),this._icons.forEach(t=>{g.addClass(t,"cursor-pointer")})),this._options.dynamic&&(this._saveOriginalClassList(),this._saveOriginalIcons()),this._setCustomText(),this._setToolTips(),this._options.value&&(this._index=this._options.value-1,this._updateRating(this._index))}_getConfig(t){const e=g.getDataAttributes(this._element);return t={...IA,...e,...t},L(gp,t,DA),t}_bindMouseEnter(){this._fn.mouseenter=[],this._icons.forEach((t,e)=>{t.addEventListener("mouseenter",this._fn.mouseenter[e]=i=>{this._index=this._icons.indexOf(i.target),this._updateRating(this._index),this._triggerEvents(t,MA)})})}_bindMouseLeave(){this._element.addEventListener("mouseleave",this._fn.mouseleave=()=>{this._savedIndex!==null?(this._updateRating(this._savedIndex),this._index=this._savedIndex):this._options.value?(this._updateRating(this._options.value-1),this._index=this._options.value-1):(this._index=-1,this._clearRating())})}_bindMouseDown(){this._icons.forEach(t=>{_.on(t,Tp,()=>{this._setElementOutline("none"),this._savedIndex=this._index,this._triggerEvents(t,mp)})})}_bindKeyDown(){this._element.tabIndex=0,_.on(this._element,yp,t=>this._updateAfterKeyDown(t))}_bindKeyUp(){_.on(this._element,bp,()=>this._setElementOutline("auto"))}_bindFocusLost(){_.on(this._element,vp,()=>this._setElementOutline("none"))}_setElementOutline(t){this._element.style.outline=t}_triggerEvents(t,e){_.trigger(t,e,{value:this._index+1})}_updateAfterKeyDown(t){const e=this._icons.length-1,i=this._index;t.key===OA&&this._index-1&&(this._index-=1),i!==this._index&&(this._savedIndex=this._index,this._updateRating(this._savedIndex),this._triggerEvents(this._icons[this._savedIndex],mp))}_updateRating(t){this._clearRating(),this._options.dynamic&&this._restoreOriginalIcon(t),this._icons.forEach((e,i)=>{i<=t&&g.addClass(e.querySelector("svg"),this._options.active)})}_clearRating(){this._icons.forEach((t,e)=>{const i=t.querySelector("svg");this._options.dynamic&&(t.classList=this._originalClassList[e],i.innerHTML=this._originalIcons[e]),g.removeClass(i,this._options.active)})}_setToolTips(){this._icons.forEach((t,e)=>{const i=g.getDataAttribute(t,"toggle");t.title&&!i&&(g.setDataAttribute(t,"toggle","tooltip"),this._tooltips[e]=new Qi(t,{placement:this._options.tooltip}))})}_setCustomText(){this._icons.forEach(t=>{const e=g.getDataAttribute(t,"after"),i=g.getDataAttribute(t,"before");e&&t.insertAdjacentHTML("afterEnd",e),i&&t.insertAdjacentHTML("beforeBegin",i)})}_saveOriginalClassList(){this._icons.forEach(t=>{const e=t.classList.value;this._originalClassList.push(e)})}_saveOriginalIcons(){this._icons.forEach(t=>{const e=t.querySelector("svg").innerHTML;this._originalIcons.push(e)})}_restoreOriginalIcon(t){const e=this._originalClassList[t],i=this._originalIcons[t];this._icons.forEach((n,o)=>{if(o<=t){const r=n.querySelector("svg");r.innerHTML=i,n.classList=e}})}static getInstance(t){return D.getData(t,lr)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,typeof e=="object"?e:null)}}const Hl="popconfirm",un="te.popconfirm",xp=`.${un}`,LA=`cancel${xp}`,$A=`confirm${xp}`,PA="[data-te-popconfirm-body]",Vl="data-te-popconfirm-popover",RA="data-te-popconfirm-modal",Cp="data-te-popconfirm-backdrop",NA={popconfirmMode:"string",message:"string",cancelText:"(null|string)",okText:"(null|string)",popconfirmIconTemplate:"string",cancelLabel:"(null|string)",confirmLabel:"(null|string)",position:"(null|string)"},BA={popconfirmMode:"inline",message:"Are you sure?",cancelText:"Cancel",okText:"OK",popconfirmIconTemplate:"",cancelLabel:"Cancel",confirmLabel:"Confirm",position:"bottom"},HA={backdrop:"string",body:"string",btnCancel:"string",btnConfirm:"string",btnsContainer:"string",fade:"string",icon:"string",message:"string",messageText:"string",modal:"string",popover:"string"},VA={backdrop:"h-full w-full z-[1070] fixed top-0 left-0 bg-[#00000066] flex justify-center items-center",body:"p-[1rem] bg-white rounded-[0.5rem] opacity-0 dark:bg-neutral-700",btnCancel:"inline-block rounded bg-primary-100 px-4 pb-[5px] pt-[6px] text-xs font-medium uppercase leading-normal text-primary-700 transition duration-150 ease-in-out hover:bg-primary-accent-100 focus:bg-primary-accent-100 focus:outline-none focus:ring-0 active:bg-primary-accent-200",btnConfirm:"inline-block rounded bg-primary px-4 pb-[5px] pt-[6px] text-xs font-medium uppercase leading-normal text-white shadow-[0_4px_9px_-4px_#3b71ca] transition duration-150 ease-in-out hover:bg-primary-600 hover:shadow-[0_8px_9px_-4px_rgba(59,113,202,0.3),0_4px_18px_0_rgba(59,113,202,0.2)] focus:bg-primary-600 focus:shadow-[0_8px_9px_-4px_rgba(59,113,202,0.3),0_4px_18px_0_rgba(59,113,202,0.2)] focus:outline-none focus:ring-0 active:bg-primary-700 active:shadow-[0_8px_9px_-4px_rgba(59,113,202,0.3),0_4px_18px_0_rgba(59,113,202,0.2)] dark:shadow-[0_4px_9px_-4px_rgba(59,113,202,0.5)] dark:hover:shadow-[0_8px_9px_-4px_rgba(59,113,202,0.2),0_4px_18px_0_rgba(59,113,202,0.1)] dark:focus:shadow-[0_8px_9px_-4px_rgba(59,113,202,0.2),0_4px_18px_0_rgba(59,113,202,0.1)] dark:active:shadow-[0_8px_9px_-4px_rgba(59,113,202,0.2),0_4px_18px_0_rgba(59,113,202,0.1)]",btnsContainer:"flex justify-end space-x-2",fade:"transition-opacity duration-[150ms] ease-linear",icon:"pr-2",message:"flex mb-3",messageText:"text-neutral-600 dark:text-white",modal:"absolute w-[300px] z-[1080] shadow-sm rounded-[0.5rem]",popover:"w-[300px] border-0 rounded-[0.5rem] z-[1080] shadow-sm"};class cr{constructor(t,e,i){this._element=t,this._options=this._getConfig(e),this._classes=this._getClasses(i),this._popper=null,this._cancelButton="",this._confirmButton="",this._isOpen=!1,this._uid=this._element.id?`popconfirm-${this._element.id}`:Et("popconfirm-"),t&&D.setData(t,un,this),this._clickHandler=this.open.bind(this),_.on(this._element,"click",this._clickHandler)}static get NAME(){return Hl}get container(){return m.findOne(`#${this._uid}`)}get popconfirmBody(){return m.findOne(PA,this.container)}dispose(){(this._isOpen||this.container!==null)&&this.close(),D.removeData(this._element,un),_.off(this._element,"click",this._clickHandler),this._element=null}open(){this._isOpen||(this._options.popconfirmMode==="inline"?this._openPopover(this._getPopoverTemplate()):this._openModal(this._getModalTemplate()),this._handleCancelButtonClick(),this._handleConfirmButtonClick(),this._listenToEscapeKey(),this._listenToOutsideClick())}close(){if(this._isOpen){if(this._popper!==null||m.findOne(`[${Vl}]`)!==null)_.on(this.popconfirmBody,"transitionend",this._handlePopconfirmTransitionEnd.bind(this)),g.removeClass(this.popconfirmBody,"opacity-100");else{const t=m.findOne(`[${Cp}]`);g.removeClass(this.popconfirmBody,"opacity-100"),document.body.removeChild(t),this._isOpen=!1}_.off(document,"click",this._handleOutsideClick.bind(this)),_.off(document,"keydown",this._handleEscapeKey.bind(this))}}_handlePopconfirmTransitionEnd(t){if(t.target!==this.popconfirmBody)return;const e=m.findOne(`[${Vl}]`);_.off(this.popconfirmBody,"transitionend"),this._isOpen&&t&&t.propertyName==="opacity"&&(this._popper.destroy(),e&&document.body.removeChild(e),this._isOpen=!1)}_getPopoverTemplate(){const t=$("div"),e=this._getPopconfirmTemplate();return t.setAttribute(Vl,""),g.addClass(t,this._classes.popover),t.id=this._uid,t.innerHTML=e,t}_getModalTemplate(){const t=$("div"),e=this._getPopconfirmTemplate();return t.setAttribute(RA,""),g.addClass(t,`${this._classes.modal}`),t.id=this._uid,t.innerHTML=e,t}_getPopconfirmTemplate(){return`

${this._options.popconfirmIconTemplate?`${this._options.popconfirmIconTemplate}`:""} ${this._options.message} @@ -370,49 +370,66 @@ ${l.enable?qT(l,r,c):""} aria-label="${this._options.confirmLabel}" class="${this._classes.btnConfirm}">${this._options.okText?this._options.okText:"Ok"}

-
`}_getConfig(t){return t={...$C,..._.getDataAttributes(this._element),...t},P(al,t,LC),t}_getClasses(t){const e=_.getDataClassAttributes(this._element);return t={...PC,...e,...t},P(al,t,RC),t}_openPopover(t){this._popper=pi(this._element,t,{placement:this._translatePositionValue(),modifiers:[{name:"offset",options:{offset:[0,5]}}]}),document.body.appendChild(t),setTimeout(()=>{_.addClass(this.popconfirmBody,`${this._classes.fade} opacity-100`),this._isOpen=!0},0)}_openModal(t){const e=L("div");e.setAttribute(Ru,""),_.addClass(e,this._classes.backdrop),document.body.appendChild(e),e.appendChild(t),_.addClass(this.popconfirmBody,"opacity-100"),this._isOpen=!0}_handleCancelButtonClick(){const t=this.container;this._cancelButton=m.findOne("#popconfirm-button-cancel",t),ze.getOrCreateInstance(this._cancelButton,{rippleColor:"light"}),this._cancelButton!==null&&g.on(this._cancelButton,"click",()=>{this.close(),g.trigger(this._element,OC)})}_handleConfirmButtonClick(){const t=this.container;this._confirmButton=m.findOne("#popconfirm-button-confirm",t),ze.getOrCreateInstance(this._confirmButton,{rippleColor:"light"}),g.on(this._confirmButton,"click",()=>{this.close(),g.trigger(this._element,DC)})}_listenToEscapeKey(){g.on(document,"keydown",this._handleEscapeKey.bind(this))}_handleEscapeKey(t){t.keyCode===Hs&&this.close()}_listenToOutsideClick(){g.on(document,"click",this._handleOutsideClick.bind(this))}_handleOutsideClick(t){const e=this.container,s=t.target===e,n=e&&e.contains(t.target),o=t.target===this._element,r=this._element&&this._element.contains(t.target);!s&&!n&&!o&&!r&&this.close()}_translatePositionValue(){switch(this._options.position){case"top left":return"top-end";case"top":return"top";case"top right":return"top-start";case"bottom left":return"bottom-end";case"bottom":return"bottom";case"bottom right":return"bottom-start";case"left":return"left";case"left top":return"left-end";case"left bottom":return"left-start";case"right":return"right";case"right top":return"right-end";case"right bottom":return"right-start";case void 0:return"bottom";default:return"bottom"}}static jQueryInterface(t,e){return this.each(function(){const s=M.getData(this,on),n=typeof t=="object"&&t;if(!(!s&&/dispose/.test(t))){if(!s)return new Zo(this,n);if(typeof t=="string"){if(typeof s[t]>"u")throw new TypeError(`No method named "${t}"`);s[t](e)}}})}static getInstance(t){return M.getData(t,on)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,typeof e=="object"?e:null)}}const cl="lightbox",rn="te.lightbox",us=`click${`.${rn}`}.data-api`,Pu="[data-te-lightbox-init]",NC=`${Pu} img:not([data-te-lightbox-disabled])`,Nu="data-te-lightbox-caption",BC="data-te-lightbox-disabled",ve="data-te-lightbox-active",HC=` + `}_getConfig(t){return t={...BA,...g.getDataAttributes(this._element),...t},L(Hl,t,NA),t}_getClasses(t){const e=g.getDataClassAttributes(this._element);return t={...VA,...e,...t},L(Hl,t,HA),t}_openPopover(t){this._popper=fi(this._element,t,{placement:this._translatePositionValue(),modifiers:[{name:"offset",options:{offset:[0,5]}}]}),document.body.appendChild(t),setTimeout(()=>{g.addClass(this.popconfirmBody,`${this._classes.fade} opacity-100`),this._isOpen=!0},0)}_openModal(t){const e=$("div");e.setAttribute(Cp,""),g.addClass(e,this._classes.backdrop),document.body.appendChild(e),e.appendChild(t),g.addClass(this.popconfirmBody,"opacity-100"),this._isOpen=!0}_handleCancelButtonClick(){const t=this.container;this._cancelButton=m.findOne("#popconfirm-button-cancel",t),ze.getOrCreateInstance(this._cancelButton,{rippleColor:"light"}),this._cancelButton!==null&&_.on(this._cancelButton,"click",()=>{this.close(),_.trigger(this._element,LA)})}_handleConfirmButtonClick(){const t=this.container;this._confirmButton=m.findOne("#popconfirm-button-confirm",t),ze.getOrCreateInstance(this._confirmButton,{rippleColor:"light"}),_.on(this._confirmButton,"click",()=>{this.close(),_.trigger(this._element,$A)})}_listenToEscapeKey(){_.on(document,"keydown",this._handleEscapeKey.bind(this))}_handleEscapeKey(t){t.keyCode===Ks&&this.close()}_listenToOutsideClick(){_.on(document,"click",this._handleOutsideClick.bind(this))}_handleOutsideClick(t){const e=this.container,i=t.target===e,n=e&&e.contains(t.target),o=t.target===this._element,r=this._element&&this._element.contains(t.target);!i&&!n&&!o&&!r&&this.close()}_translatePositionValue(){switch(this._options.position){case"top left":return"top-end";case"top":return"top";case"top right":return"top-start";case"bottom left":return"bottom-end";case"bottom":return"bottom";case"bottom right":return"bottom-start";case"left":return"left";case"left top":return"left-end";case"left bottom":return"left-start";case"right":return"right";case"right top":return"right-end";case"right bottom":return"right-start";case void 0:return"bottom";default:return"bottom"}}static jQueryInterface(t,e){return this.each(function(){const i=D.getData(this,un),n=typeof t=="object"&&t;if(!(!i&&/dispose/.test(t))){if(!i)return new cr(this,n);if(typeof t=="string"){if(typeof i[t]>"u")throw new TypeError(`No method named "${t}"`);i[t](e)}}})}static getInstance(t){return D.getData(t,un)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,typeof e=="object"?e:null)}}const Fl="lightbox",pn="te.lightbox",_s=`click${`.${pn}`}.data-api`,Ap="[data-te-lightbox-init]",FA=`${Ap} img:not([data-te-lightbox-disabled])`,wp="data-te-lightbox-caption",WA="data-te-lightbox-disabled",ve="data-te-lightbox-active",zA=` -`,FC=` +`,jA=` -`,WC=` +`,YA=` -`,VC=` +`,KA=` -`,zC=` +`,UA=` -`,YC=` +`,XA=` -`,jC=` +`,GA=` -`,KC={container:"string",zoomLevel:"(number|string)",prevIconTemplate:"string",nextIconTemplate:"string",showFullscreenIconTemplate:"string",hideFullscreenIconTemplate:"string",zoomInIconTemplate:"string",closeIconTemplate:"string",zoomOutIconTemplate:"string",spinnerContent:"string"},UC={container:"body",zoomLevel:1,prevIconTemplate:HC,nextIconTemplate:FC,showFullscreenIconTemplate:WC,hideFullscreenIconTemplate:VC,zoomInIconTemplate:zC,zoomOutIconTemplate:YC,closeIconTemplate:jC,spinnerContent:"Loading..."},XC={caption:"text-white text-ellipsis overflow-hidden whitespace-nowrap mx-[10px] text-center",captionWrapper:"fixed left-0 bottom-0 w-full h-[50px] flex justify-center items-center",closeBtn:"border-none bg-transparent w-[50px] h-[50px] px-4 text-[#b3b3b3] transition-colors duration-200 ease-in-out hover:text-white focus:text-white motion-reduce:transition-none outline-none",fullscreenBtn:"border-none bg-transparent w-[50px] h-[50px] px-4 text-[#b3b3b3] transition-colors duration-200 ease-in-out hover:text-white focus:text-white motion-reduce:transition-none outline-none",gallery:"invisible fixed left-0 top-0 w-full h-full z-[1100] pointer-events-none opacity-0 bg-[#000000e6] transition-all duration-[400ms] motion-reduce:transition-none",galleryContent:"fixed top-[50px] left-[50px] w-[calc(100%-100px)] h-[calc(100%-100px)]",galleryCounter:"flex justify-center items-center px-[10px] mb-0 h-full text-[#b3b3b3]",img:"absolute left-0 top-0 w-full max-h-full h-auto cursor-pointer pointer-events-auto",imgWrapper:"absolute top-0 left-0 w-full h-full opacity-0 transform scale-[0.25] transition-all duration-[400ms] ease-out pointer-events-none motion-reduce:transition-none motion-reduce:transform-none",leftTools:"float-left h-full",loader:"fixed left-0 top-0 z-[2] w-full h-full text-neutral-50 opacity-1 flex justify-center items-center pointer-events-none transition-opacity duration-[1000ms] motion-reduce:transition-none",nextBtn:"border-none bg-transparent w-full h-[50px] flex justify-center items-center text-[#b3b3b3] transition-colors duration-200 ease-in-out hover:text-white focus:text-white motion-reduce:transition-none outline-none",nextBtnWrapper:"fixed right-0 top-0 w-[50px] h-full flex justify-center items-center transition-opacity duration-[400ms] motion-reduce:transition-none",prevBtn:"border-none bg-transparent w-full h-[50px] flex justify-center items-center text-[#b3b3b3] transition-colors duration-200 ease-in-out hover:text-white focus:text-white motion-reduce:transition-none outline-none",prevBtnWrapper:"fixed left-0 top-0 w-[50px] h-full flex justify-center items-center transition-opacity duration-[400ms] motion-reduce:transition-none",rightTools:"float-right",spinner:"inline-block h-8 w-8 animate-[spinner-grow_0.75s_linear_infinite] rounded-full bg-current align-[-0.125em] motion-reduce:animate-[spinner-grow_1.5s_linear_infinite]",spinnerContent:"!absolute !-m-px !h-px !w-px !overflow-hidden !whitespace-nowrap !border-0 !p-0 ![clip:rect(0,0,0,0)]",toolbar:"absolute top-0 left-0 w-full h-[50px] z-20 transition-opacity duration-[400ms] motion-reduce:transition-none",vertical:"h-full max-h-full w-auto",zoomBtn:"border-none bg-transparent w-[50px] h-[50px] px-4 text-[#b3b3b3] transition-colors duration-200 ease-in-out hover:text-white focus:text-white motion-reduce:transition-none outline-none"},GC={caption:"string",captionWrapper:"string",closeBtn:"string",fullscreenBtn:"string",gallery:"string",galleryContent:"string",galleryCounter:"string",img:"string",imgWrapper:"string",leftTools:"string",loader:"string",nextBtn:"string",nextBtnWrapper:"string",prevBtn:"string",prevBtnWrapper:"string",rightTools:"string",spinner:"string",spinnerContent:"string",toolbar:"string",vertical:"string",zoomBtn:"string"};class ps{constructor(t,e={},s){this._element=t,this._options=e,this._classes=this._getClasses(s),this._getContainer(),this._id=`lightbox-${Math.random().toString(36).substr(2,9)}`,this._activeImg=0,this._images=[],this._zoom=1,this._gallery=null,this._galleryToolbar=null,this._galleryContent=null,this._loader=null,this._imgCounter=null,this._animating=!1,this._fullscreen=!1,this._zoomBtn=null,this._fullscreenBtn=null,this._toolsToggleTimer=0,this._mousedown=!1,this._mousedownPositionX=0,this._mousedownPositionY=0,this._originalPositionX=0,this._originalPositionY=0,this._positionX=0,this._positionY=0,this._zoomTimer=0,this._tapCounter=0,this._tapTime=0,this._rightArrow=null,this._leftArrowWrapper=null,this._rightArrowWrapper=null,this._initiated=!1,this._multitouch=!1,this._touchZoomPosition=[],this._element&&(M.setData(t,rn,this),this.init())}static get NAME(){return cl}get activeImg(){return this._activeImg}get currentImg(){return m.findOne(`[${ve}]`,this._galleryContent)}get options(){const t={...UC,..._.getDataAttributes(this._element),...this._options};return P(cl,t,KC),t}init(){this._initiated||(this._appendTemplate(),this._initiated=!0)}open(t=0){this._getImages(),this._setActiveImg(t),this._sortImages(),this._triggerEvents("open","opened"),this._loadImages().then(e=>{this._resizeImages(e),this._toggleTemplate(),this._addEvents(),this._focusFullscreenBtn()})}close(){this.reset(),this._removeEvents(),this._toggleTemplate(),this._triggerEvents("close","closed")}slide(t="right"){this._animating===!0||this._images.length<=1||(this._triggerEvents("slide","slided"),this._beforeSlideEvents(),t==="right"&&this._slideHorizontally(t),t==="left"&&this._slideHorizontally(t),t==="first"&&this._slideToTarget(t),t==="last"&&this._slideToTarget(t),this._afterSlideEvents())}zoomIn(){this._zoom>=3||(this._triggerEvents("zoomIn","zoomedIn"),this._zoom+=parseFloat(this.options.zoomLevel),_.style(this.currentImg.parentNode,{transform:`scale(${this._zoom})`}),this._updateZoomBtn())}zoomOut(){this._zoom<=1||(this._triggerEvents("zoomOut","zoomedOut"),this._zoom-=parseFloat(this.options.zoomLevel),_.style(this.currentImg.parentNode,{transform:`scale(${this._zoom})`}),this._updateZoomBtn(),this._updateImgPosition())}toggleFullscreen(){this._fullscreen===!1?(this._fullscreenBtn.setAttribute(ve,""),this._fullscreenBtn.innerHTML=this.options.hideFullscreenIconTemplate,this._gallery.requestFullscreen&&this._gallery.requestFullscreen(),this._fullscreen=!0):(this._fullscreenBtn.removeAttribute(ve),document.exitFullscreen&&document.exitFullscreen(),this._fullscreen=!1)}reset(){this._restoreDefaultFullscreen(),this._restoreDefaultPosition(),this._restoreDefaultZoom(),clearTimeout(this._toolsToggleTimer),clearTimeout(this._doubleTapTimer)}dispose(){g.off(document,us,NC,this.toggle),this._galleryContent&&this._removeEvents(),this._gallery&&this._gallery.remove(),M.removeData(this._element,rn),this._element=null}_getClasses(t){const e=_.getDataClassAttributes(this._element);return t={...XC,...e,...t},P(cl,t,GC),t}_getImages(){const e=m.find("img",this._element).filter(s=>!s.hasAttribute(BC));this._images=e}_getContainer(){this._container=m.findOne(this.options.container)}_setActiveImg(t){this._activeImg=typeof t=="number"?t:this._images.indexOf(t.target)}_appendTemplate(){this._gallery=L("div"),_.addClass(this._gallery,`${this._classes.gallery}`),this._element.dataset.id=this._id,this._gallery.id=this._id,this._appendLoader(),this._appendToolbar(),this._appendContent(),this._appendArrows(),this._appendCaption(),this._container.append(this._gallery)}_appendToolbar(){this._galleryToolbar=L("div"),this._imgCounter=L("p"),this._fullscreenBtn=L("button"),this._zoomBtn=L("button");const t=L("button"),e=L("div"),s=L("div");_.addClass(this._galleryToolbar,`${this._classes.toolbar}`),_.addClass(this._imgCounter,`${this._classes.galleryCounter}`),_.addClass(this._fullscreenBtn,`${this._classes.fullscreenBtn}`),_.addClass(this._zoomBtn,`${this._classes.zoomInBtn}`),_.addClass(this._zoomBtn,this._classes.zoomBtn),_.addClass(e,`${this._classes.leftTools}`),_.addClass(s,`${this._classes.rightTools}`),_.addClass(t,`${this._classes.closeBtn}`),this._fullscreenBtn.innerHTML=this.options.showFullscreenIconTemplate,t.innerHTML=this.options.closeIconTemplate,this._zoomBtn.innerHTML=this.options.zoomInIconTemplate,this._fullscreenBtn.setAttribute("aria-label","Toggle fullscreen"),this._zoomBtn.setAttribute("aria-label","Zoom in"),t.setAttribute("aria-label","Close"),g.on(this._fullscreenBtn,us,()=>this.toggleFullscreen()),g.on(this._zoomBtn,us,()=>this._toggleZoom()),g.on(t,us,()=>this.close()),e.append(this._imgCounter),s.append(this._fullscreenBtn),s.append(this._zoomBtn),s.append(t),this._galleryToolbar.append(e),this._galleryToolbar.append(s),this._gallery.append(this._galleryToolbar)}_appendContent(){this._galleryContent=L("div"),_.addClass(this._galleryContent,`${this._classes.galleryContent}`),this._gallery.append(this._galleryContent)}_appendLoader(){this._loader=L("div");const t=L("div"),e=L("span");_.addClass(this._loader,`${this._classes.loader}`),_.addClass(t,`${this._classes.spinner}`),_.addClass(e,`${this._classes.spinnerContent}`),t.setAttribute("role","status"),e.innerHTML=this.options.spinnerContent,t.append(e),this._loader.append(t),this._gallery.append(this._loader)}_appendArrows(){this._leftArrowWrapper=L("div"),_.addClass(this._leftArrowWrapper,`${this._classes.prevBtnWrapper}`);const t=L("button");t.setAttribute("aria-label","Previous"),_.addClass(t,`${this._classes.prevBtn}`),g.on(t,us,()=>this.slide("left")),this._leftArrowWrapper.append(t),this._rightArrowWrapper=L("div"),_.addClass(this._rightArrowWrapper,`${this._classes.nextBtnWrapper}`),this._rightArrow=L("button"),this._rightArrow.setAttribute("aria-label","Next"),_.addClass(this._rightArrow,`${this._classes.nextBtn}`),g.on(this._rightArrow,us,()=>this.slide()),this._rightArrowWrapper.append(this._rightArrow),this._rightArrow.innerHTML=this.options.nextIconTemplate,t.innerHTML=this.options.prevIconTemplate,this._getImages(),!(this._images.length<=1)&&(this._gallery.append(this._leftArrowWrapper),this._gallery.append(this._rightArrowWrapper))}_appendCaption(){const t=L("div"),e=L("p");e.setAttribute(Nu,""),_.addClass(t,`${this._classes.captionWrapper}`),_.addClass(e,`${this._classes.caption}`),t.append(e),this._gallery.append(t)}_sortImages(){for(let t=0;t{t.push(new Promise(r=>{const a=new Image,l=L("div");_.addClass(l,`${this._classes.imgWrapper}`),_.addClass(a,`${this._classes.img}`),this._addImgStyles(a,l,s,o,n),l.append(a),this._galleryContent.append(l),a.onload=r,a.src=n.dataset.teImg||n.src,e.push(a),s+=100}))}),await Promise.all(t),e}_addImgStyles(t,e,s,n,o){t.alt=o.alt,t.draggable=!1,_.style(e,{position:"absolute",left:`${s}%`,top:0}),(o.dataset.teCaption||o.dataset.teCaption==="")&&(t.dataset.caption=o.dataset.teCaption),s===0?(o.width1&&_.style(e,{left:"-100%"})}_resizeImages(t){t.forEach(e=>{this._calculateImgSize(e)})}_calculateImgSize(t){t.width>=t.height?(t.style.width="100%",t.style.maxWidth="100%",t.style.height="auto",t.style.top=`${(t.parentNode.offsetHeight-t.height)/2}px`,t.style.left=0):(t.style.height="100%",t.style.maxHeight="100%",t.style.width="auto",t.style.left=`${(t.parentNode.offsetWidth-t.width)/2}px`,t.style.top=0),t.width>=t.parentNode.offsetWidth&&(t.style.width=`${t.parentNode.offsetWidth}px`,t.style.height="auto",t.style.left=0,t.style.top=`${(t.parentNode.offsetHeight-t.height)/2}px`),t.height>=t.parentNode.offsetHeight&&(t.style.height=`${t.parentNode.offsetHeight}px`,t.style.width="auto",t.style.top=0,t.style.left=`${(t.parentNode.offsetWidth-t.width)/2}px`),this._positionX=parseFloat(t.style.left)||0,this._positionY=parseFloat(t.style.top)||0}_onResize(){this._images=m.find("img",this._galleryContent),this._images.forEach(t=>{this._calculateImgSize(t)})}_onFullscreenChange(){(document.webkitIsFullScreen||document.mozFullScreen||document.msFullscreenElement)===void 0&&(this._fullscreen=!1,this._fullscreenBtn.innerHTML=this.options.showFullscreenIconTemplate,this._fullscreenBtn.removeAttribute(ve))}_beforeSlideEvents(){this._animationStart(),this._restoreDefaultZoom(),this._restoreDefaultPosition(),this._resetDoubleTap()}_slideHorizontally(t){this._images=m.find("img",this._galleryContent),this._images.forEach(e=>{let s;t==="right"?(s=parseInt(e.parentNode.style.left,10)-100,s<-100&&(s=(this._images.length-2)*100)):(s=parseInt(e.parentNode.style.left,10)+100,s===(this._images.length-1)*100&&(s=-100)),this._slideImg(e,s)}),this._updateActiveImg(t)}_slideImg(t,e){e===0?(t.setAttribute(ve,""),_.style(t.parentNode,{opacity:1,transform:"scale(1)"})):(t.removeAttribute(ve),_.style(t.parentNode,{opacity:0,transform:"scale(0.25)"})),t.parentNode.style.left=`${e}%`}_slideToTarget(t){t==="first"&&this._activeImg===0||t==="last"&&this._activeImg===this._images.length-1||(this.reset(),this._removeEvents(),this._showLoader(),this._getImages(),this._activeImg=t==="first"?0:this._images.length-1,this._sortImages(),_.style(this.currentImg.parentNode,{transform:"scale(0.25)",opacity:0}),setTimeout(()=>{this._loadImages().then(e=>{this._resizeImages(e),this._addEvents(),this._updateCaption(),this._hideLoader(),setTimeout(()=>{_.style(this.currentImg.parentNode,{transform:"scale(1)",opacity:1})},10)})},400))}_updateActiveImg(t){t==="right"&&(this._activeImg===this._images.length-1?this._activeImg=0:this._activeImg++),t==="left"&&(this._activeImg===0?this._activeImg=this._images.length-1:this._activeImg--)}_afterSlideEvents(){this._updateCounter(),this._updateCaption()}_updateCounter(){this._images.length<=1||setTimeout(()=>{this._imgCounter.innerHTML=`${this._activeImg+1} / ${this._images.length}`},200)}_updateCaption(){setTimeout(()=>{let t=this.currentImg.alt;(this.currentImg.dataset.caption||this.currentImg.dataset.caption==="")&&(t=this.currentImg.dataset.caption),m.findOne(`[${Nu}]`,this._gallery).innerHTML=t},200)}_toggleTemplate(){this._gallery.style.visibility==="visible"?(_.style(this.currentImg.parentNode,{transform:"scale(0.25)"}),setTimeout(()=>{this._hideGallery(),this._enableScroll(),this._showLoader()},100)):(this._showGallery(),this._disableScroll(),this._updateCounter(),this._updateCaption(),this._setToolsToggleTimout(),this._hideLoader())}_showLoader(){_.style(this._loader,{opacity:1})}_hideLoader(){_.style(this._loader,{opacity:0})}_hideGallery(){_.style(this._gallery,{opacity:0,pointerEvents:"none",visibility:"hidden"})}_showGallery(){_.style(this._gallery,{opacity:1,pointerEvents:"initial",visibility:"visible"}),setTimeout(()=>{_.style(this.currentImg.parentNode,{transform:"scale(1)"})},50)}_toggleZoom(){this._zoom!==1?this.zoomOut():this.zoomIn()}_updateZoomBtn(){this._zoom>1?(this._zoomBtn.setAttribute(ve,""),this._zoomBtn.setAttribute("aria-label","Zoom out"),this._zoomBtn.innerHTML=this.options.zoomOutIconTemplate):(this._zoomBtn.removeAttribute(ve),this._zoomBtn.setAttribute("aria-label","Zoom in"),this._zoomBtn.innerHTML=this.options.zoomInIconTemplate)}_updateImgPosition(){this._zoom===1&&this._restoreDefaultPosition()}_addEvents(){const t=m.find("img",this._galleryContent);this._onWindowTouchmove=this._onWindowTouchmove.bind(this),this._onWindowTouchstart=this._onWindowTouchstart.bind(this),this._onImgMousedown=this._onMousedown.bind(this),this._onImgMousemove=this._onMousemove.bind(this),this._onImgWheel=this._onZoom.bind(this),this._onImgMouseup=this._onMouseup.bind(this),this._onImgTouchend=this._onTouchend.bind(this),this._onImgDoubleClick=this._onDoubleClick.bind(this),this._onWindowResize=this._onResize.bind(this),this._onWindowFullscreenChange=this._onFullscreenChange.bind(this),this._onAnyImgAction=this._resetToolsToggler.bind(this),this._onGalleryClick=this._onBackdropClick.bind(this),this._onKeyupEvent=this._onKeyup.bind(this),this._onRightArrowKeydownEvent=this._onRightArrowKeydown.bind(this),this._onFullscreenBtnKeydownEvent=this._onFullscreenBtnKeydown.bind(this),t.forEach(e=>{g.on(e,"mousedown",this._onImgMousedown,{passive:!0}),g.on(e,"touchstart",this._onImgMousedown,{passive:!0}),g.on(e,"mousemove",this._onImgMousemove,{passive:!0}),g.on(e,"touchmove",this._onImgMousemove,{passive:!0}),g.on(e,"wheel",this._onImgWheel,{passive:!0}),g.on(e,"dblclick",this._onImgDoubleClick,{passive:!0})}),document.addEventListener("touchmove",this._onWindowTouchmove,{passive:!1}),g.on(window,"touchstart",this._onWindowTouchstart),g.on(window,"mouseup",this._onImgMouseup),g.on(window,"touchend",this._onImgTouchend),g.on(window,"resize",this._onWindowResize),g.on(window,"orientationchange",this._onWindowResize),g.on(window,"keyup",this._onKeyupEvent),g.on(window,"fullscreenchange",this._onWindowFullscreenChange),g.on(this._gallery,"mousemove",this._onAnyImgAction),g.on(this._gallery,"click",this._onGalleryClick),g.on(this._rightArrow,"keydown",this._onRightArrowKeydownEvent),g.on(this._fullscreenBtn,"keydown",this._onFullscreenBtnKeydownEvent)}_removeEvents(){m.find("img",this._galleryContent).forEach(e=>{g.off(e,"mousedown",this._onImgMousedown),g.off(e,"touchstart",this._onImgMousedown),g.off(e,"mousemove",this._onImgMousemove),g.off(e,"touchmove",this._onImgMousemove),g.off(e,"wheel",this._onImgWheel),g.off(e,"dblclick",this._onImgDoubleClick)}),document.removeEventListener("touchmove",this._onWindowTouchmove,{passive:!1}),g.off(window,"touchstart",this._onWindowTouchstart),g.off(window,"mouseup",this._onImgMouseup),g.off(window,"touchend",this._onImgTouchend),g.off(window,"resize",this._onWindowResize),g.off(window,"orientationchange",this._onWindowResize),g.off(window,"keyup",this._onKeyupEvent),g.off(window,"fullscreenchange",this._onWindowFullscreenChange),g.off(this._gallery,"mousemove",this._onAnyImgAction),g.off(this._gallery,"click",this._onGalleryClick),g.off(this._rightArrow,"keydown",this._onRightArrowKeydownEvent),g.off(this._fullscreenBtn,"keydown",this._onFullscreenBtnKeydownEvent)}_onMousedown(t){const e=t.touches,s=e?e[0].clientX:t.clientX,n=e?e[0].clientY:t.clientY;this._originalPositionX=parseFloat(this.currentImg.style.left)||0,this._originalPositionY=parseFloat(this.currentImg.style.top)||0,this._positionX=this._originalPositionX,this._positionY=this._originalPositionY,this._mousedownPositionX=s*(1/this._zoom)-this._positionX,this._mousedownPositionY=n*(1/this._zoom)-this._positionY,this._mousedown=!0,t.type==="touchstart"&&t.touches.length>1&&(this._multitouch=!0,this._touchZoomPosition=t.touches)}_onMousemove(t){if(!this._mousedown)return;const e=t.touches,s=e?e[0].clientX:t.clientX,n=e?e[0].clientY:t.clientY;if(e&&this._resetToolsToggler(),!this._multitouch)if(this._zoom!==1)this._positionX=s*(1/this._zoom)-this._mousedownPositionX,this._positionY=n*(1/this._zoom)-this._mousedownPositionY,_.style(this.currentImg,{left:`${this._positionX}px`,top:`${this._positionY}px`});else{if(this._images.length<=1)return;this._positionX=s*(1/this._zoom)-this._mousedownPositionX,_.style(this.currentImg,{left:`${this._positionX}px`})}}_onMouseup(t){this._mousedown=!1,this._moveImg(t.target)}_onTouchend(t){this._mousedown=!1,this._multitouch?t.targetTouches.length===0&&(this._multitouch=!1,this._touchZoomPosition=[]):this._multitouch||(this._checkDoubleTap(t),this._moveImg(t.target))}_calculateTouchZoom(t){const e=Math.hypot(this._touchZoomPosition[1].pageX-this._touchZoomPosition[0].pageX,this._touchZoomPosition[1].pageY-this._touchZoomPosition[0].pageY),s=Math.hypot(t.touches[1].pageX-t.touches[0].pageX,t.touches[1].pageY-t.touches[0].pageY),n=Math.abs(e-s),o=t.view.screen.width;n>o*.03&&(e<=s?this.zoomIn():this.zoomOut(),this._touchZoomPosition=t.touches)}_onWindowTouchstart(t){t.touches.length>1&&(this._multitouch=!0,this._touchZoomPosition=t.touches)}_onWindowTouchmove(t){t.preventDefault(),t.type==="touchmove"&&t.targetTouches.length>1&&this._calculateTouchZoom(t)}_onRightArrowKeydown(t){switch(t.keyCode){case 9:if(t.shiftKey)break;t.preventDefault(),this._focusFullscreenBtn();break}}_onFullscreenBtnKeydown(t){switch(t.keyCode){case 9:if(!t.shiftKey)break;t.preventDefault(),this._focusRightArrow();break}}_onKeyup(t){switch(this._resetToolsToggler(),t.keyCode){case 39:this.slide();break;case 37:this.slide("left");break;case 27:this.close();break;case 36:this.slide("first");break;case 35:this.slide("last");break;case 38:this.zoomIn();break;case 40:this.zoomOut();break}}_focusFullscreenBtn(){setTimeout(()=>{this._fullscreenBtn.focus()},100)}_focusRightArrow(){this._rightArrow.focus()}_moveImg(t){if(this._multitouch||this._zoom!==1||t!==this.currentImg||this._images.length<=1)return;const e=this._positionX-this._originalPositionX;e>0?this.slide("left"):e<0&&this.slide()}_checkDoubleTap(t){clearTimeout(this._doubleTapTimer);const s=new Date().getTime()-this._tapTime;this._tapCounter>0&&s<500?(this._onDoubleClick(t),this._doubleTapTimer=setTimeout(()=>{this._tapTime=new Date().getTime(),this._tapCounter=0},300)):(this._tapCounter++,this._tapTime=new Date().getTime())}_resetDoubleTap(){this._tapTime=0,this._tapCounter=0,clearTimeout(this._doubleTapTimer)}_onDoubleClick(t){this._multitouch||(t.touches||this._setNewPositionOnZoomIn(t),this._zoom!==1?this._restoreDefaultZoom():this.zoomIn())}_onZoom(t){if(t.deltaY>0)this.zoomOut();else{if(this._zoom>=3)return;this._setNewPositionOnZoomIn(t),this.zoomIn()}}_onBackdropClick(t){this._resetToolsToggler(),t.target.tagName==="DIV"&&this.close()}_setNewPositionOnZoomIn(t){clearTimeout(this._zoomTimer),this._positionX=window.innerWidth/2-t.offsetX-50,this._positionY=window.innerHeight/2-t.offsetY-50,this.currentImg.style.transition="all 0.5s ease-out",this.currentImg.style.left=`${this._positionX}px`,this.currentImg.style.top=`${this._positionY}px`,this._zoomTimer=setTimeout(()=>{this.currentImg.style.transition="none"},500)}_resetToolsToggler(){this._showTools(),clearTimeout(this._toolsToggleTimer),this._setToolsToggleTimout()}_setToolsToggleTimout(){this._toolsToggleTimer=setTimeout(()=>{this._hideTools(),clearTimeout(this._toolsToggleTimer)},4e3)}_hideTools(){_.style(this._galleryToolbar,{opacity:0}),_.style(this._leftArrowWrapper,{opacity:0}),_.style(this._rightArrowWrapper,{opacity:0})}_showTools(){_.style(this._galleryToolbar,{opacity:1}),_.style(this._leftArrowWrapper,{opacity:1}),_.style(this._rightArrowWrapper,{opacity:1})}_disableScroll(){_.addClass(document.body,"overflow-y-hidden relative"),document.documentElement.scrollHeight>document.documentElement.clientHeight&&_.addClass(document.body,"md:pr-[17px]")}_enableScroll(){setTimeout(()=>{_.removeClass(document.body,"overflow-y-hidden relative"),_.removeClass(document.body,"md:pr-[17px]")},300)}_animationStart(){this._animating=!0,setTimeout(()=>{this._animating=!1},400)}_restoreDefaultZoom(){this._zoom!==1&&(this._zoom=1,_.style(this.currentImg.parentNode,{transform:`scale(${this._zoom})`}),this._updateZoomBtn(),this._updateImgPosition())}_restoreDefaultFullscreen(){this._fullscreen&&this.toggleFullscreen()}_restoreDefaultPosition(){clearTimeout(this._zoomTimer);const t=this.currentImg;_.style(this.currentImg.parentNode,{left:0,top:0}),_.style(this.currentImg,{transition:"all 0.5s ease-out",left:0,top:0}),this._calculateImgSize(t),setTimeout(()=>{_.style(this.currentImg,{transition:"none"})},500)}async _triggerEvents(t,e){g.trigger(this._element,`${t}.te.lightbox`),e&&await setTimeout(()=>{g.trigger(this._element,`${e}.te.lightbox`)},505)}static getInstance(t){return M.getData(t,rn)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,typeof e=="object"?e:null)}static toggle(){return function(t){const e=m.closest(t.target,`${Pu}`);(ps.getInstance(e)||new ps(e)).open(t)}}static jQueryInterface(t,e){return this.each(function(){let s=M.getData(this,rn);const n=typeof t=="object"&&t;if(!(!s&&/dispose/.test(t))&&(s||(s=new ps(this,n)),typeof t=="string")){if(typeof s[t]>"u")throw new TypeError(`No method named "${t}"`);s[t](e)}})}}const qC=(i,t="hide")=>{const e=`click.dismiss${i.EVENT_KEY}`,s=i.NAME;g.on(document,e,`[data-te-${s}-dismiss]`,function(n){if(["A","AREA"].includes(this.tagName)&&n.preventDefault(),ri(this))return;const o=Pe(this)||this.closest(`.${s}`)||this.closest(`[data-te-${s}-init]`);if(!o)return;i.getOrCreateInstance(o)[t]()})},ZC=i=>{cc(()=>{const t=lc();if(t){const e=i.NAME,s=t.fn[e];t.fn[e]=i.jQueryInterface,t.fn[e].Constructor=i,t.fn[e].noConflict=()=>(t.fn[e]=s,i.jQueryInterface)}})},QC=(i,t)=>{g.on(document,`click.te.${i.NAME}`,t,function(e){e.preventDefault(),i.getOrCreateInstance(this).toggle()})},JC=(i,t)=>{g.on(document,`click.te.${i.NAME}.data-api`,t,function(e){if(["A","AREA"].includes(this.tagName)&&e.preventDefault(),ri(this))return;i.getOrCreateInstance(this).show()})},tA=(i,t)=>{g.on(document,`click.te.${i.NAME}.data-api`,t,function(e){const s=Pe(this);if(["A","AREA"].includes(this.tagName)&&e.preventDefault(),ri(this))return;g.one(s,i.EVENT_HIDDEN,()=>{oe(this)&&this.focus()});const n=m.findOne(i.OPEN_SELECTOR);n&&n!==s&&i.getInstance(n).hide(),i.getOrCreateInstance(s).toggle(this)})},eA=(i,t)=>{g.on(document,`click.te.${i.NAME}`,t,e=>{e.preventDefault();const s=e.target.closest(t);i.getOrCreateInstance(s).toggle()})},iA=(i,t)=>{g.on(document,`click.te.${i.NAME}`,t,function(e){const s=Pe(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),g.one(s,i.EVENT_SHOW,r=>{r.defaultPrevented||g.one(s,i.EVENT_HIDDEN,()=>{oe(this)&&this.focus()})});const n=m.findOne(`[${i.OPEN_SELECTOR}="true"]`);n&&i.getInstance(n).hide(),i.getOrCreateInstance(s).toggle(this)})},sA=(i,t)=>{g.one(document,"mousedown",t,i.autoInitial(new i))},nA=(i,t)=>{g.on(document,`click.te.${i.NAME}.data-api`,t,function(e){(e.target.tagName==="A"||e.delegateTarget&&e.delegateTarget.tagName==="A")&&e.preventDefault();const s=Pr(this);m.find(s).forEach(o=>{i.getOrCreateInstance(o,{toggle:!1}).toggle()})})},oA=(i,t)=>{[].slice.call(document.querySelectorAll(t)).map(function(s){return new i(s)})},rA=(i,t)=>{[].slice.call(document.querySelectorAll(t)).map(function(s){return new i(s)})},aA=(i,t)=>{m.find(t).forEach(e=>{new i(e)}),g.on(document,`click.te.${i.NAME}.data-api`,`${t} img:not([data-te-lightbox-disabled])`,i.toggle())},lA=(i,t)=>{const e=o=>o[0]==="{"&&o[o.length-1]==="}"||o[0]==="["&&o[o.length-1]==="]",s=o=>typeof o!="string"?o:e(o)?JSON.parse(o.replace(/'/g,'"')):o,n=o=>{const r={};return Object.keys(o).forEach(a=>{if(a.match(/dataset.*/)){const l=a.slice(7,8).toLowerCase().concat(a.slice(8));r[l]=s(o[a])}}),r};m.find(t).forEach(o=>{if(_.getDataAttribute(o,"chart")!=="bubble"&&_.getDataAttribute(o,"chart")!=="scatter"){const r=_.getDataAttributes(o),a={data:{datasets:[n(r)]}};return r.chart&&(a.type=r.chart),r.labels&&(a.data.labels=JSON.parse(r.labels.replace(/'/g,'"'))),new i(o,{...a,...Zs[a.type]})}return null})};class cA{constructor(){this.inits=[]}get initialized(){return this.inits}isInited(t){return this.inits.includes(t)}add(t){this.inits.push(t)}}const hl=new cA,an={alert:{name:"Alert",selector:"[data-te-alert-init]",isToggler:!1,dismissMethod:"close"},animation:{name:"Animate",selector:"[data-te-animation-init]",isToggler:!1},carousel:{name:"Carousel",selector:"[data-te-carousel-init]",isToggler:!1},chips:{name:"ChipsInput",selector:"[data-te-chips-input-init]",isToggler:!1},chip:{name:"Chip",selector:"[data-te-chip-init]",isToggler:!1,onInit:"init"},datepicker:{name:"Datepicker",selector:"[data-te-datepicker-init]",isToggler:!1},input:{name:"Input",selector:"[data-te-input-wrapper-init]",isToggler:!1},perfectScrollbar:{name:"PerfectScrollbar",selector:"[data-te-perfect-scrollbar-init]",isToggler:!1},rating:{name:"Rating",selector:"[data-te-rating-init]",isToggler:!1},scrollspy:{name:"ScrollSpy",selector:"[data-te-spy='scroll']",isToggler:!1},select:{name:"Select",selector:"[data-te-select-init]",isToggler:!1},sidenav:{name:"Sidenav",selector:"[data-te-sidenav-init]",isToggler:!1},stepper:{name:"Stepper",selector:"[data-te-stepper-init]",isToggler:!1},timepicker:{name:"Timepicker",selector:"[data-te-timepicker-init]",isToggler:!1},toast:{name:"Toast",selector:"[data-te-toast-init]",isToggler:!1,dismissMethod:"hide"},datatable:{name:"Datatable",selector:"[data-te-datatable-init]"},popconfirm:{name:"Popconfirm",selector:"[data-te-toggle='popconfirm']"},chart:{name:"Chart",selector:"[data-te-chart]",isToggler:!1,advanced:lA},button:{name:"Button",selector:"[data-te-toggle='button']",isToggler:!0,callback:eA},collapse:{name:"Collapse",selector:"[data-te-collapse-init]",isToggler:!0,callback:nA},dropdown:{name:"Dropdown",selector:"[data-te-dropdown-toggle-ref]",isToggler:!0,callback:QC},modal:{name:"Modal",selector:"[data-te-toggle='modal']",dismissMethod:"hide",isToggler:!0,callback:iA},ripple:{name:"Ripple",selector:"[data-te-ripple-init]",isToggler:!0,callback:sA},offcanvas:{name:"Offcanvas",selector:"[data-te-offcanvas-toggle]",dismissMethod:"hide",isToggler:!0,callback:tA},tab:{name:"Tab",selector:"[data-te-toggle='tab'], [data-te-toggle='pill'], [data-te-toggle='list']",isToggler:!0,callback:JC},tooltip:{name:"Tooltip",selector:"[data-te-toggle='tooltip']",isToggler:!1,callback:oA},popover:{name:"Popover",selector:"[data-te-toggle='popover']",isToggler:!0,callback:rA},lightbox:{name:"Lightbox",selector:"[data-te-lightbox-init]",isToggler:!0,callback:aA}},hA=i=>an[i.NAME]||null,dA=i=>{if(!i||hl.isInited(i.NAME))return;hl.add(i.NAME);const t=hA(i),e=(t==null?void 0:t.isToggler)||!1;if(ZC(i),t!=null&&t.dismissMethod&&qC(i,t.dismissMethod),t!=null&&t.advanced){t==null||t.advanced(i,t==null?void 0:t.selector);return}if(e){t==null||t.callback(i,t==null?void 0:t.selector);return}m.find(t==null?void 0:t.selector).forEach(s=>{let n=i.getInstance(s);n||(n=new i(s),t!=null&&t.onInit&&n[t.onInit]())})},uA=i=>{i.forEach(t=>dA(t))},Bu=(i,t=!1)=>{const e=Object.keys(an).map(s=>{if(!!document.querySelector(an[s].selector)){const o=i[an[s].name];return!o&&!hl.isInited(s)&&t&&console.warn(`Please import ${an[s].name} from "tw-elements" package and add it to a object parameter inside "initTE" function`),o}});uA(e)},Hu="sidenav",Qo="te.sidenav",pA="data-te-sidenav-rotate-icon-ref",dl="[data-te-sidenav-toggle-ref]",fA="[data-te-collapse-init]",_A='[data-te-sidenav-slim="true"]',gA='[data-te-sidenav-slim="false"]',mA="[data-te-sidenav-menu-ref]",fs="[data-te-sidenav-collapse-ref]",ln="[data-te-sidenav-link-ref]",bA=st()?100:-100,vA=st()?-100:100,yA={sidenavAccordion:"(boolean)",sidenavBackdrop:"(boolean)",sidenavBackdropClass:"(null|string)",sidenavCloseOnEsc:"(boolean)",sidenavColor:"(string)",sidenavContent:"(null|string)",sidenavExpandable:"(boolean)",sidenavExpandOnHover:"(boolean)",sidenavFocusTrap:"(boolean)",sidenavHidden:"(boolean)",sidenavMode:"(string)",sidenavModeBreakpointOver:"(null|string|number)",sidenavModeBreakpointSide:"(null|string|number)",sidenavModeBreakpointPush:"(null|string|number)",sidenavBreakpointSm:"(number)",sidenavBreakpointMd:"(number)",sidenavBreakpointLg:"(number)",sidenavBreakpointXl:"(number)",sidenavBreakpoint2xl:"(number)",sidenavScrollContainer:"(null|string)",sidenavSlim:"(boolean)",sidenavSlimCollapsed:"(boolean)",sidenavSlimWidth:"(number)",sidenavPosition:"(string)",sidenavRight:"(boolean)",sidenavTransitionDuration:"(number)",sidenavWidth:"(number)"},xA={sidenavAccordion:!1,sidenavBackdrop:!0,sidenavBackdropClass:null,sidenavCloseOnEsc:!0,sidenavColor:"primary",sidenavContent:null,sidenavExpandable:!0,sidenavExpandOnHover:!1,sidenavFocusTrap:!0,sidenavHidden:!0,sidenavMode:"over",sidenavModeBreakpointOver:null,sidenavModeBreakpointSide:null,sidenavModeBreakpointPush:null,sidenavBreakpointSm:640,sidenavBreakpointMd:768,sidenavBreakpointLg:1024,sidenavBreakpointXl:1280,sidenavBreakpoint2xl:1536,sidenavScrollContainer:null,sidenavSlim:!1,sidenavSlimCollapsed:!1,sidenavSlimWidth:77,sidenavPosition:"fixed",sidenavRight:!1,sidenavTransitionDuration:300,sidenavWidth:240};class Ai{constructor(t,e={}){we(this,"_addBackdropOnInit",()=>{this._options.sidenavHidden||(this._backdrop.show(),g.off(this._element,"transitionend",this._addBackdropOnInit))});this._element=t,this._options=e,this._ID=Gt(""),this._content=null,this._initialContentStyle=null,this._slimCollapsed=!1,this._activeNode=null,this._tempSlim=!1,this._backdrop=this._initializeBackDrop(),this._focusTrap=null,this._perfectScrollbar=null,this._touch=null,this._setModeFromBreakpoints(),this.escHandler=s=>{s.keyCode===Hs&&this.toggler&&oe(this.toggler)&&(this._update(!1),g.off(window,"keydown",this.escHandler))},this.hashHandler=()=>{this._setActiveElements()},t&&(M.setData(t,Qo,this),this._setup()),this.options.sidenavBackdrop&&!this.options.sidenavHidden&&this.options.sidenavMode==="over"&&g.on(this._element,"transitionend",this._addBackdropOnInit),this._didInit=!1,this._init()}static get NAME(){return Hu}get container(){if(this.options.sidenavPosition==="fixed")return m.findOne("body");const t=e=>!e.parentNode||e.parentNode===document?e:e.parentNode.style.position==="relative"||e.parentNode.classList.contains("relative")?e.parentNode:t(e.parentNode);return t(this._element)}get isVisible(){let t=0,e=window.innerWidth;if(this.options.sidenavPosition!=="fixed"){const n=this.container.getBoundingClientRect();t=n.x,e=n.x+n.width}const{x:s}=this._element.getBoundingClientRect();return this.options.sidenavRight?Math.abs(s-e)>10:Math.abs(s-t)<10}get links(){return m.find(ln,this._element)}get navigation(){return m.find(mA,this._element)}get options(){const t={...xA,..._.getDataAttributes(this._element),...this._options};return P(Hu,t,yA),t}get sidenavStyle(){return{width:`${this.width}px`,height:this.options.sidenavPosition==="fixed"?"100vh":"100%",position:this.options.sidenavPosition,transition:`all ${this.transitionDuration} linear`}}get toggler(){return m.find(dl).find(e=>{const s=_.getDataAttribute(e,"target");return m.findOne(s)===this._element})}get transitionDuration(){return`${this.options.sidenavTransitionDuration/1e3}s`}get translation(){return this.options.sidenavRight?vA:bA}get width(){return this._slimCollapsed?this.options.sidenavSlimWidth:this.options.sidenavWidth}get isBackdropVisible(){return!!this._backdrop._element}changeMode(t){this._setMode(t)}dispose(){g.off(window,"keydown",this.escHandler),this.options.sidenavBackdrop&&this._backdrop.dispose(),g.off(window,"hashchange",this.hashHandler),this._touch.dispose(),M.removeData(this._element,Qo),this._element=null}hide(){this._emitEvents(!1),this._update(!1),this._options.sidenavBackdrop&&this.isBackdropVisible&&this._backdrop.hide()}show(){this._emitEvents(!0),this._update(!0),this._options.sidenavBackdrop&&this._options.sidenavMode==="over"&&this._backdrop.show()}toggle(){this._emitEvents(!this.isVisible),this._update(!this.isVisible)}toggleSlim(){this._setSlim(!this._slimCollapsed)}update(t){this._options=t,this._setup()}getBreakpoint(t){return this._transformBreakpointValuesToObject()[t]}_init(){this._didInit||(g.on(document,"click",dl,Ai.toggleSidenav()),this._didInit=!0)}_transformBreakpointValuesToObject(){return{sm:this.options.sidenavBreakpointSm,md:this.options.sidenavBreakpointMd,lg:this.options.sidenavBreakpointLg,xl:this.options.sidenavBreakpointXl,"2xl":this.options.sidenavBreakpoint2xl}}_setModeFromBreakpoints(){const t=window.innerWidth,e=this._transformBreakpointValuesToObject();if(t===void 0||!e)return;const s=typeof this.options.sidenavModeBreakpointOver=="number"?t-this.options.sidenavModeBreakpointOver:t-e[this.options.sidenavModeBreakpointOver],n=typeof this.options.sidenavModeBreakpointSide=="number"?t-this.options.sidenavModeBreakpointSide:t-e[this.options.sidenavModeBreakpointSide],o=typeof this.options.sidenavModeBreakpointPush=="number"?t-this.options.sidenavModeBreakpointPush:t-e[this.options.sidenavModeBreakpointPush],r=(l,c)=>l-c<0?-1:c-l<0?1:0,a=[s,n,o].filter(l=>l!=null&&l>=0).sort(r)[0];s>0&&s===a?(this._options.sidenavMode="over",this._options.sidenavHidden=!0):n>0&&n===a?this._options.sidenavMode="side":o>0&&o===a&&(this._options.sidenavMode="push")}_collapseItems(){this.navigation.forEach(t=>{m.find(fs,t).forEach(s=>{ae.getInstance(s).hide()})})}_getOffsetValue(t,{index:e,property:s,offsets:n}){const o=this._getPxValue(this._initialContentStyle[e][n[s].property]),r=t?n[s].value:0;return o+r}_getProperty(...t){return t.map((e,s)=>s===0?e:e[0].toUpperCase().concat(e.slice(1))).join("")}_getPxValue(t){return t?parseFloat(t):0}_handleSwipe(t,e){e&&this._slimCollapsed&&this.options.sidenavSlim&&this.options.sidenavExpandable?this.toggleSlim():e||(this._slimCollapsed||!this.options.sidenavSlim||!this.options.sidenavExpandable?this.toggler&&oe(this.toggler)&&this.toggle():this.toggleSlim())}_isActive(t,e){return e?e===t:t.attributes.href?new URL(t,window.location.href).href===window.location.href:!1}_isAllToBeCollapsed(){return m.find(fA,this._element).filter(s=>s.getAttribute("aria-expanded")==="true").length===0}_isAllCollapsed(){return m.find(fs,this._element).filter(t=>oe(t)).length===0}_initializeBackDrop(){if(!this.options.sidenavBackdrop)return;const t=this.options.sidenavBackdropClass?this.options.sidenavBackdropClass.split(" "):this.options.sidenavPosition?["opacity-50","transition-all","duration-300","ease-in-out",this.options.sidenavPosition,"top-0","left-0","z-50","bg-black/10","dark:bg-black-60","w-full","h-full",this._element.id]:null;return new ha({isVisible:this.options.sidenavBackdrop,isAnimated:!0,rootElement:this._element.parentNode,backdropClasses:t,clickCallback:()=>this.hide()})}_updateBackdrop(t){if(this.options.sidenavMode==="over"){t?this._backdrop.show():this.isBackdropVisible&&this._backdrop.hide();return}this.isBackdropVisible&&this._backdrop.hide()}_setup(){this._setupTouch(),this.options.sidenavFocusTrap&&this._setupFocusTrap(),this._setupCollapse(),this.options.sidenavSlim&&this._setupSlim(),this._setupInitialStyling(),this._setupScrolling(),this.options.sidenavContent&&this._setupContent(),this._setupActiveState(),this._setupRippleEffect(),this.options.sidenavHidden||this._updateOffsets(!0,!0),this.options.sidenavMode==="over"&&this._setTabindex(!0)}_setupActiveState(){this._setActiveElements(),this.links.forEach(t=>{g.on(t,"click",()=>this._setActiveElements(t)),g.on(t,"keydown",e=>{e.keyCode===$t&&this._setActiveElements(t)})}),g.on(window,"hashchange",this.hashHandler)}_setupCollapse(){this.navigation.forEach((t,e)=>{m.find(fs,t).forEach((n,o)=>this._setupCollapseList({list:n,index:o,menu:t,menuIndex:e}))})}_generateCollpaseID(t,e){return`sidenav-collapse-${this._ID}-${e}-${t}`}_setupCollapseList({list:t,index:e,menu:s,menuIndex:n}){const o=this._generateCollpaseID(e,n);t.setAttribute("id",o),t.setAttribute("data-te-collapse-item","");const[r]=m.prev(t,ln);_.setDataAttribute(r,"collapse-init",""),r.setAttribute("href",`#${o}`),r.setAttribute("role","button");const a=ae.getInstance(t)||new ae(t,{toggle:!1,parent:this.options.sidenavAccordion?s:t});(t.dataset.teSidenavStateShow===""||t.dataset.teCollapseShow==="")&&this._rotateArrow(r,!1),g.on(r,"click",l=>{this._toggleCategory(l,a,t),this._tempSlim&&this._isAllToBeCollapsed()&&(this._setSlim(!0),this._tempSlim=!1),this.options.sidenavMode==="over"&&this._focusTrap&&this._focusTrap.update()}),g.on(t,"show.te.collapse",()=>this._rotateArrow(r,!1)),g.on(t,"hide.te.collapse",()=>this._rotateArrow(r,!0)),g.on(t,"shown.te.collapse",()=>{this.options.sidenavMode==="over"&&this._focusTrap&&this._focusTrap.update()}),g.on(t,"hidden.te.collapse",()=>{this._tempSlim&&this._isAllCollapsed()&&(this._setSlim(!0),this._tempSlim=!1),this.options.sidenavMode==="over"&&this._focusTrap&&this._focusTrap.update()})}_setupContent(){this._content=m.find(this.options.sidenavContent),this._content.forEach(t=>{const e=["!p","!m","!px","!pl","!pr","!mx","!ml","!mr","!-p","!-m","!-px","!-pl","!-pr","!-mx","!-ml","!-mr"];[...t.classList].filter(n=>e.findIndex(o=>n.includes(o))>=0).forEach(n=>t.classList.remove(n))}),this._initialContentStyle=this._content.map(t=>{const{paddingLeft:e,paddingRight:s,marginLeft:n,marginRight:o,transition:r}=window.getComputedStyle(t);return{paddingLeft:e,paddingRight:s,marginLeft:n,marginRight:o,transition:r}})}_setupFocusTrap(){this._focusTrap=new Is(this._element,{event:"keydown",condition:t=>t.keyCode===Fs,onlyVisible:!0},this.toggler)}_setupInitialStyling(){this._setColor(),_.style(this._element,this.sidenavStyle)}_setupScrolling(){let t=this._element;if(this.options.sidenavScrollContainer){t=m.findOne(this.options.sidenavScrollContainer,this._element);const s=N_(t.parentNode.children).filter(n=>n!==t).reduce((n,o)=>n+o.clientHeight,0);_.style(t,{maxHeight:`calc(100% - ${s}px)`,position:"relative"})}this._perfectScrollbar=new hs(t,{suppressScrollX:!0,handlers:["click-rail","drag-thumb","wheel","touch"]})}_setupSlim(){this._slimCollapsed=this.options.sidenavSlimCollapsed,this._toggleSlimDisplay(this._slimCollapsed),this.options.sidenavExpandOnHover&&(this._element.addEventListener("mouseenter",()=>{this._slimCollapsed&&this._setSlim(!1)}),this._element.addEventListener("mouseleave",()=>{this._slimCollapsed||this._setSlim(!0)}))}_setupRippleEffect(){this.links.forEach(t=>{let e=ze.getInstance(t),s=this.options.sidenavColor;if(e&&e._options.sidenavColor!==this.options.sidenavColor)e.dispose();else if(e)return;(localStorage.theme==="dark"||!("theme"in localStorage)&&window.matchMedia("(prefers-color-scheme: dark)").matches)&&(s="white"),e=new ze(t,{rippleColor:s})})}_setupTouch(){this._touch=new By(this._element,"swipe",{threshold:20}),this._touch.init(),g.on(this._element,"swipeleft",t=>this._handleSwipe(t,this.options.sidenavRight)),g.on(this._element,"swiperight",t=>this._handleSwipe(t,!this.options.sidenavRight))}_setActive(t,e){t.setAttribute("data-te-sidebar-state-active",""),this._activeNode&&t.removeAttribute("data-te-sidebar-state-active"),this._activeNode=t;const[s]=m.parents(this._activeNode,fs);if(!s){this._setActiveCategory();return}const[n]=m.prev(s,ln);this._setActiveCategory(n),!e&&!this._slimCollapsed&&ae.getInstance(s).show()}_setActiveCategory(t){this.navigation.forEach(e=>{m.find(fs,e).forEach(n=>{const[o]=m.prev(n,ln);o!==t?o.removeAttribute("data-te-sidenav-state-active"):o.setAttribute("data-te-sidenav-state-active","")})})}_setActiveElements(t){this.navigation.forEach(e=>{m.find(ln,e).filter(n=>m.next(n,fs).length===0).forEach(n=>{this._isActive(n,t)&&n!==this._activeNode&&this._setActive(n,t)})}),t&&this._updateFocus(this.isVisible)}_setColor(){const t=["primary","secondary","success","info","warning","danger","light","dark"],{sidenavColor:e}=this.options,s=t.includes(e)?e:"primary";t.forEach(n=>{this._element.classList.remove(`sidenav-${n}`)}),_.addClass(this._element,`sidenav-${s}`)}_setContentOffsets(t,e,s){this._content.forEach((n,o)=>{const r=this._getOffsetValue(t,{index:o,property:"padding",offsets:e}),a=this._getOffsetValue(t,{index:o,property:"margin",offsets:e}),l={};if(s||(l.transition=`all ${this.transitionDuration} linear`),l[e.padding.property]=`${r}px`,l[e.margin.property]=`${a}px`,_.style(n,l),!!t){if(s){_.style(n,{transition:this._initialContentStyle[o].transition});return}g.on(n,"transitionend",()=>{_.style(n,{transition:this._initialContentStyle[o].transition})})}})}_setMode(t){this.options.sidenavMode!==t&&(this._options.sidenavMode=t,this._update(this.isVisible))}_setSlim(t){const e=t?["collapse","collapsed"]:["expand","expanded"];this._triggerEvents(...e),t&&this._collapseItems(),this._slimCollapsed=t,this._toggleSlimDisplay(t),_.style(this._element,{width:`${this.width}px`}),this._updateOffsets(this.isVisible)}_setTabindex(t){this.links.forEach(e=>{e.tabIndex=t?0:-1})}_emitEvents(t){const e=t?["show","shown"]:["hide","hidden"];this._triggerEvents(...e)}_rotateArrow(t,e){const[s]=m.children(t,`[${pA}]`);s&&(e?_.removeClass(s,"rotate-180"):_.addClass(s,"rotate-180"))}_toggleCategory(t,e){t.preventDefault(),e.toggle(),this._slimCollapsed&&this.options.sidenavExpandable&&(this._tempSlim=!0,this._setSlim(!1))}_toggleSlimDisplay(t){const e=m.find(_A,this._element),s=m.find(gA,this._element),n=()=>{e.forEach(o=>{_.style(o,{display:this._slimCollapsed?"unset":"none"})}),s.forEach(o=>{_.style(o,{display:this._slimCollapsed?"none":"unset"})})};t?setTimeout(()=>n(),this.options.sidenavTransitionDuration):n()}async _triggerEvents(t,e){g.trigger(this._element,`${t}.te.sidenav`),e&&await setTimeout(()=>{g.trigger(this._element,`${e}.te.sidenav`)},this.options.sidenavTransitionDuration+5)}_isiPhone(){return/iPhone|iPod/i.test(navigator.userAgent)}_update(t){t&&this._isiPhone()&&_.addClass(this._element,"ps--scrolling-y"),this.toggler&&this._updateTogglerAria(t),this._updateDisplay(t),this.options.sidenavBackdrop&&this._updateBackdrop(t),this._updateOffsets(t),t&&this.options.sidenavCloseOnEsc&&this.options.sidenavMode!=="side"&&g.on(window,"keydown",this.escHandler),this.options.sidenavFocusTrap&&this._updateFocus(t)}_updateDisplay(t){const e=t?0:this.translation;_.style(this._element,{transform:`translateX(${e}%)`})}_updateFocus(t){if(this._setTabindex(t),this.options.sidenavMode==="over"&&this.options.sidenavFocusTrap){if(t){this._focusTrap.trap();return}this._focusTrap.disable()}this._focusTrap.disable()}_updateOffsets(t,e=!1){const[s,n]=this.options.sidenavRight?["right","left"]:["left","right"],o={property:this._getProperty("padding",s),value:this.options.sidenavMode==="over"?0:this.width},r={property:this._getProperty("margin",n),value:this.options.sidenavMode==="push"?-1*this.width:0};g.trigger(this._element,"update.te.sidenav",{margin:r,padding:o}),this._content&&(this._content.className="",this._setContentOffsets(t,{padding:o,margin:r},e))}_updateTogglerAria(t){this.toggler.setAttribute("aria-expanded",t)}static toggleSidenav(){return function(t){const e=m.closest(t.target,dl),s=_.getDataAttributes(e).target;m.find(s).forEach(n=>{(Ai.getInstance(n)||new Ai(n)).toggle()})}}static jQueryInterface(t,e){return this.each(function(){let s=M.getData(this,Qo);const n=typeof t=="object"&&t;if(!(!s&&/dispose/.test(t))&&(s||(s=new Ai(this,n)),typeof t=="string")){if(typeof s[t]>"u")throw new TypeError(`No method named "${t}"`);s[t](e)}})}static getInstance(t){return M.getData(t,Qo)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,typeof e=="object"?e:null)}}Bu({Animate:ho,Alert:to,Button:Wn,ChipsInput:du,Chip:Ci,Dropdown:Bt,Carousel:le,Collapse:ae,Offcanvas:Ms,Modal:eo,Popover:io,ScrollSpy:so,Select:Xs,Tab:ro,Toast:lo,Tooltip:Gi,Ripple:ze,Datepicker:ad,Timepicker:Md,Sidenav:Ai,Stepper:Nd,Input:Z,PerfectScrollbar:hs,Rating:Lu,Chart:_u,Datatable:Go,Popconfirm:Zo,Lightbox:ps});/*! +`,qA={container:"string",zoomLevel:"(number|string)",prevIconTemplate:"string",nextIconTemplate:"string",showFullscreenIconTemplate:"string",hideFullscreenIconTemplate:"string",zoomInIconTemplate:"string",closeIconTemplate:"string",zoomOutIconTemplate:"string",spinnerContent:"string"},ZA={container:"body",zoomLevel:1,prevIconTemplate:zA,nextIconTemplate:jA,showFullscreenIconTemplate:YA,hideFullscreenIconTemplate:KA,zoomInIconTemplate:UA,zoomOutIconTemplate:XA,closeIconTemplate:GA,spinnerContent:"Loading..."},QA={caption:"text-white text-ellipsis overflow-hidden whitespace-nowrap mx-[10px] text-center",captionWrapper:"fixed left-0 bottom-0 w-full h-[50px] flex justify-center items-center",closeBtn:"border-none bg-transparent w-[50px] h-[50px] px-4 text-[#b3b3b3] transition-colors duration-200 ease-in-out hover:text-white focus:text-white motion-reduce:transition-none outline-none",fullscreenBtn:"border-none bg-transparent w-[50px] h-[50px] px-4 text-[#b3b3b3] transition-colors duration-200 ease-in-out hover:text-white focus:text-white motion-reduce:transition-none outline-none",gallery:"invisible fixed left-0 top-0 w-full h-full z-[1100] pointer-events-none opacity-0 bg-[#000000e6] transition-all duration-[400ms] motion-reduce:transition-none",galleryContent:"fixed top-[50px] left-[50px] w-[calc(100%-100px)] h-[calc(100%-100px)]",galleryCounter:"flex justify-center items-center px-[10px] mb-0 h-full text-[#b3b3b3]",img:"absolute left-0 top-0 w-full max-h-full h-auto cursor-pointer pointer-events-auto",imgWrapper:"absolute top-0 left-0 w-full h-full opacity-0 transform scale-[0.25] transition-all duration-[400ms] ease-out pointer-events-none motion-reduce:transition-none motion-reduce:transform-none",leftTools:"float-left h-full",loader:"fixed left-0 top-0 z-[2] w-full h-full text-neutral-50 opacity-1 flex justify-center items-center pointer-events-none transition-opacity duration-[1000ms] motion-reduce:transition-none",nextBtn:"border-none bg-transparent w-full h-[50px] flex justify-center items-center text-[#b3b3b3] transition-colors duration-200 ease-in-out hover:text-white focus:text-white motion-reduce:transition-none outline-none",nextBtnWrapper:"fixed right-0 top-0 w-[50px] h-full flex justify-center items-center transition-opacity duration-[400ms] motion-reduce:transition-none",prevBtn:"border-none bg-transparent w-full h-[50px] flex justify-center items-center text-[#b3b3b3] transition-colors duration-200 ease-in-out hover:text-white focus:text-white motion-reduce:transition-none outline-none",prevBtnWrapper:"fixed left-0 top-0 w-[50px] h-full flex justify-center items-center transition-opacity duration-[400ms] motion-reduce:transition-none",rightTools:"float-right",spinner:"inline-block h-8 w-8 animate-[spinner-grow_0.75s_linear_infinite] rounded-full bg-current align-[-0.125em] motion-reduce:animate-[spinner-grow_1.5s_linear_infinite]",spinnerContent:"!absolute !-m-px !h-px !w-px !overflow-hidden !whitespace-nowrap !border-0 !p-0 ![clip:rect(0,0,0,0)]",toolbar:"absolute top-0 left-0 w-full h-[50px] z-20 transition-opacity duration-[400ms] motion-reduce:transition-none",vertical:"h-full max-h-full w-auto",zoomBtn:"border-none bg-transparent w-[50px] h-[50px] px-4 text-[#b3b3b3] transition-colors duration-200 ease-in-out hover:text-white focus:text-white motion-reduce:transition-none outline-none"},JA={caption:"string",captionWrapper:"string",closeBtn:"string",fullscreenBtn:"string",gallery:"string",galleryContent:"string",galleryCounter:"string",img:"string",imgWrapper:"string",leftTools:"string",loader:"string",nextBtn:"string",nextBtnWrapper:"string",prevBtn:"string",prevBtnWrapper:"string",rightTools:"string",spinner:"string",spinnerContent:"string",toolbar:"string",vertical:"string",zoomBtn:"string"};class gs{constructor(t,e={},i){this._element=t,this._options=e,this._classes=this._getClasses(i),this._getContainer(),this._id=`lightbox-${Math.random().toString(36).substr(2,9)}`,this._activeImg=0,this._images=[],this._zoom=1,this._gallery=null,this._galleryToolbar=null,this._galleryContent=null,this._loader=null,this._imgCounter=null,this._animating=!1,this._fullscreen=!1,this._zoomBtn=null,this._fullscreenBtn=null,this._toolsToggleTimer=0,this._mousedown=!1,this._mousedownPositionX=0,this._mousedownPositionY=0,this._originalPositionX=0,this._originalPositionY=0,this._positionX=0,this._positionY=0,this._zoomTimer=0,this._tapCounter=0,this._tapTime=0,this._rightArrow=null,this._leftArrowWrapper=null,this._rightArrowWrapper=null,this._initiated=!1,this._multitouch=!1,this._touchZoomPosition=[],this._element&&(D.setData(t,pn,this),this.init())}static get NAME(){return Fl}get activeImg(){return this._activeImg}get currentImg(){return m.findOne(`[${ve}]`,this._galleryContent)}get options(){const t={...ZA,...g.getDataAttributes(this._element),...this._options};return L(Fl,t,qA),t}init(){this._initiated||(this._appendTemplate(),this._initiated=!0)}open(t=0){this._getImages(),this._setActiveImg(t),this._sortImages(),this._triggerEvents("open","opened"),this._loadImages().then(e=>{this._resizeImages(e),this._toggleTemplate(),this._addEvents(),this._focusFullscreenBtn()})}close(){this.reset(),this._removeEvents(),this._toggleTemplate(),this._triggerEvents("close","closed")}slide(t="right"){this._animating===!0||this._images.length<=1||(this._triggerEvents("slide","slided"),this._beforeSlideEvents(),t==="right"&&this._slideHorizontally(t),t==="left"&&this._slideHorizontally(t),t==="first"&&this._slideToTarget(t),t==="last"&&this._slideToTarget(t),this._afterSlideEvents())}zoomIn(){this._zoom>=3||(this._triggerEvents("zoomIn","zoomedIn"),this._zoom+=parseFloat(this.options.zoomLevel),g.style(this.currentImg.parentNode,{transform:`scale(${this._zoom})`}),this._updateZoomBtn())}zoomOut(){this._zoom<=1||(this._triggerEvents("zoomOut","zoomedOut"),this._zoom-=parseFloat(this.options.zoomLevel),g.style(this.currentImg.parentNode,{transform:`scale(${this._zoom})`}),this._updateZoomBtn(),this._updateImgPosition())}toggleFullscreen(){this._fullscreen===!1?(this._fullscreenBtn.setAttribute(ve,""),this._fullscreenBtn.innerHTML=this.options.hideFullscreenIconTemplate,this._gallery.requestFullscreen&&this._gallery.requestFullscreen(),this._fullscreen=!0):(this._fullscreenBtn.removeAttribute(ve),document.exitFullscreen&&document.exitFullscreen(),this._fullscreen=!1)}reset(){this._restoreDefaultFullscreen(),this._restoreDefaultPosition(),this._restoreDefaultZoom(),clearTimeout(this._toolsToggleTimer),clearTimeout(this._doubleTapTimer)}dispose(){_.off(document,_s,FA,this.toggle),this._galleryContent&&this._removeEvents(),this._gallery&&this._gallery.remove(),D.removeData(this._element,pn),this._element=null}_getClasses(t){const e=g.getDataClassAttributes(this._element);return t={...QA,...e,...t},L(Fl,t,JA),t}_getImages(){const e=m.find("img",this._element).filter(i=>!i.hasAttribute(WA));this._images=e}_getContainer(){this._container=m.findOne(this.options.container)}_setActiveImg(t){this._activeImg=typeof t=="number"?t:this._images.indexOf(t.target)}_appendTemplate(){this._gallery=$("div"),g.addClass(this._gallery,`${this._classes.gallery}`),this._element.dataset.id=this._id,this._gallery.id=this._id,this._appendLoader(),this._appendToolbar(),this._appendContent(),this._appendArrows(),this._appendCaption(),this._container.append(this._gallery)}_appendToolbar(){this._galleryToolbar=$("div"),this._imgCounter=$("p"),this._fullscreenBtn=$("button"),this._zoomBtn=$("button");const t=$("button"),e=$("div"),i=$("div");g.addClass(this._galleryToolbar,`${this._classes.toolbar}`),g.addClass(this._imgCounter,`${this._classes.galleryCounter}`),g.addClass(this._fullscreenBtn,`${this._classes.fullscreenBtn}`),g.addClass(this._zoomBtn,`${this._classes.zoomInBtn}`),g.addClass(this._zoomBtn,this._classes.zoomBtn),g.addClass(e,`${this._classes.leftTools}`),g.addClass(i,`${this._classes.rightTools}`),g.addClass(t,`${this._classes.closeBtn}`),this._fullscreenBtn.innerHTML=this.options.showFullscreenIconTemplate,t.innerHTML=this.options.closeIconTemplate,this._zoomBtn.innerHTML=this.options.zoomInIconTemplate,this._fullscreenBtn.setAttribute("aria-label","Toggle fullscreen"),this._zoomBtn.setAttribute("aria-label","Zoom in"),t.setAttribute("aria-label","Close"),_.on(this._fullscreenBtn,_s,()=>this.toggleFullscreen()),_.on(this._zoomBtn,_s,()=>this._toggleZoom()),_.on(t,_s,()=>this.close()),e.append(this._imgCounter),i.append(this._fullscreenBtn),i.append(this._zoomBtn),i.append(t),this._galleryToolbar.append(e),this._galleryToolbar.append(i),this._gallery.append(this._galleryToolbar)}_appendContent(){this._galleryContent=$("div"),g.addClass(this._galleryContent,`${this._classes.galleryContent}`),this._gallery.append(this._galleryContent)}_appendLoader(){this._loader=$("div");const t=$("div"),e=$("span");g.addClass(this._loader,`${this._classes.loader}`),g.addClass(t,`${this._classes.spinner}`),g.addClass(e,`${this._classes.spinnerContent}`),t.setAttribute("role","status"),e.innerHTML=this.options.spinnerContent,t.append(e),this._loader.append(t),this._gallery.append(this._loader)}_appendArrows(){this._leftArrowWrapper=$("div"),g.addClass(this._leftArrowWrapper,`${this._classes.prevBtnWrapper}`);const t=$("button");t.setAttribute("aria-label","Previous"),g.addClass(t,`${this._classes.prevBtn}`),_.on(t,_s,()=>this.slide("left")),this._leftArrowWrapper.append(t),this._rightArrowWrapper=$("div"),g.addClass(this._rightArrowWrapper,`${this._classes.nextBtnWrapper}`),this._rightArrow=$("button"),this._rightArrow.setAttribute("aria-label","Next"),g.addClass(this._rightArrow,`${this._classes.nextBtn}`),_.on(this._rightArrow,_s,()=>this.slide()),this._rightArrowWrapper.append(this._rightArrow),this._rightArrow.innerHTML=this.options.nextIconTemplate,t.innerHTML=this.options.prevIconTemplate,this._getImages(),!(this._images.length<=1)&&(this._gallery.append(this._leftArrowWrapper),this._gallery.append(this._rightArrowWrapper))}_appendCaption(){const t=$("div"),e=$("p");e.setAttribute(wp,""),g.addClass(t,`${this._classes.captionWrapper}`),g.addClass(e,`${this._classes.caption}`),t.append(e),this._gallery.append(t)}_sortImages(){for(let t=0;t{t.push(new Promise(r=>{const a=new Image,l=$("div");g.addClass(l,`${this._classes.imgWrapper}`),g.addClass(a,`${this._classes.img}`),this._addImgStyles(a,l,i,o,n),l.append(a),this._galleryContent.append(l),a.onload=r,a.src=n.dataset.teImg||n.src,e.push(a),i+=100}))}),await Promise.all(t),e}_addImgStyles(t,e,i,n,o){t.alt=o.alt,t.draggable=!1,g.style(e,{position:"absolute",left:`${i}%`,top:0}),(o.dataset.teCaption||o.dataset.teCaption==="")&&(t.dataset.caption=o.dataset.teCaption),i===0?(o.width1&&g.style(e,{left:"-100%"})}_resizeImages(t){t.forEach(e=>{this._calculateImgSize(e)})}_calculateImgSize(t){t.width>=t.height?(t.style.width="100%",t.style.maxWidth="100%",t.style.height="auto",t.style.top=`${(t.parentNode.offsetHeight-t.height)/2}px`,t.style.left=0):(t.style.height="100%",t.style.maxHeight="100%",t.style.width="auto",t.style.left=`${(t.parentNode.offsetWidth-t.width)/2}px`,t.style.top=0),t.width>=t.parentNode.offsetWidth&&(t.style.width=`${t.parentNode.offsetWidth}px`,t.style.height="auto",t.style.left=0,t.style.top=`${(t.parentNode.offsetHeight-t.height)/2}px`),t.height>=t.parentNode.offsetHeight&&(t.style.height=`${t.parentNode.offsetHeight}px`,t.style.width="auto",t.style.top=0,t.style.left=`${(t.parentNode.offsetWidth-t.width)/2}px`),this._positionX=parseFloat(t.style.left)||0,this._positionY=parseFloat(t.style.top)||0}_onResize(){this._images=m.find("img",this._galleryContent),this._images.forEach(t=>{this._calculateImgSize(t)})}_onFullscreenChange(){(document.webkitIsFullScreen||document.mozFullScreen||document.msFullscreenElement)===void 0&&(this._fullscreen=!1,this._fullscreenBtn.innerHTML=this.options.showFullscreenIconTemplate,this._fullscreenBtn.removeAttribute(ve))}_beforeSlideEvents(){this._animationStart(),this._restoreDefaultZoom(),this._restoreDefaultPosition(),this._resetDoubleTap()}_slideHorizontally(t){this._images=m.find("img",this._galleryContent),this._images.forEach(e=>{let i;t==="right"?(i=parseInt(e.parentNode.style.left,10)-100,i<-100&&(i=(this._images.length-2)*100)):(i=parseInt(e.parentNode.style.left,10)+100,i===(this._images.length-1)*100&&(i=-100)),this._slideImg(e,i)}),this._updateActiveImg(t)}_slideImg(t,e){e===0?(t.setAttribute(ve,""),g.style(t.parentNode,{opacity:1,transform:"scale(1)"})):(t.removeAttribute(ve),g.style(t.parentNode,{opacity:0,transform:"scale(0.25)"})),t.parentNode.style.left=`${e}%`}_slideToTarget(t){t==="first"&&this._activeImg===0||t==="last"&&this._activeImg===this._images.length-1||(this.reset(),this._removeEvents(),this._showLoader(),this._getImages(),this._activeImg=t==="first"?0:this._images.length-1,this._sortImages(),g.style(this.currentImg.parentNode,{transform:"scale(0.25)",opacity:0}),setTimeout(()=>{this._loadImages().then(e=>{this._resizeImages(e),this._addEvents(),this._updateCaption(),this._hideLoader(),setTimeout(()=>{g.style(this.currentImg.parentNode,{transform:"scale(1)",opacity:1})},10)})},400))}_updateActiveImg(t){t==="right"&&(this._activeImg===this._images.length-1?this._activeImg=0:this._activeImg++),t==="left"&&(this._activeImg===0?this._activeImg=this._images.length-1:this._activeImg--)}_afterSlideEvents(){this._updateCounter(),this._updateCaption()}_updateCounter(){this._images.length<=1||setTimeout(()=>{this._imgCounter.innerHTML=`${this._activeImg+1} / ${this._images.length}`},200)}_updateCaption(){setTimeout(()=>{let t=this.currentImg.alt;(this.currentImg.dataset.caption||this.currentImg.dataset.caption==="")&&(t=this.currentImg.dataset.caption),m.findOne(`[${wp}]`,this._gallery).innerHTML=t},200)}_toggleTemplate(){this._gallery.style.visibility==="visible"?(g.style(this.currentImg.parentNode,{transform:"scale(0.25)"}),setTimeout(()=>{this._hideGallery(),this._enableScroll(),this._showLoader()},100)):(this._showGallery(),this._disableScroll(),this._updateCounter(),this._updateCaption(),this._setToolsToggleTimout(),this._hideLoader())}_showLoader(){g.style(this._loader,{opacity:1})}_hideLoader(){g.style(this._loader,{opacity:0})}_hideGallery(){g.style(this._gallery,{opacity:0,pointerEvents:"none",visibility:"hidden"})}_showGallery(){g.style(this._gallery,{opacity:1,pointerEvents:"initial",visibility:"visible"}),setTimeout(()=>{g.style(this.currentImg.parentNode,{transform:"scale(1)"})},50)}_toggleZoom(){this._zoom!==1?this.zoomOut():this.zoomIn()}_updateZoomBtn(){this._zoom>1?(this._zoomBtn.setAttribute(ve,""),this._zoomBtn.setAttribute("aria-label","Zoom out"),this._zoomBtn.innerHTML=this.options.zoomOutIconTemplate):(this._zoomBtn.removeAttribute(ve),this._zoomBtn.setAttribute("aria-label","Zoom in"),this._zoomBtn.innerHTML=this.options.zoomInIconTemplate)}_updateImgPosition(){this._zoom===1&&this._restoreDefaultPosition()}_addEvents(){const t=m.find("img",this._galleryContent);this._onWindowTouchmove=this._onWindowTouchmove.bind(this),this._onWindowTouchstart=this._onWindowTouchstart.bind(this),this._onImgMousedown=this._onMousedown.bind(this),this._onImgMousemove=this._onMousemove.bind(this),this._onImgWheel=this._onZoom.bind(this),this._onImgMouseup=this._onMouseup.bind(this),this._onImgTouchend=this._onTouchend.bind(this),this._onImgDoubleClick=this._onDoubleClick.bind(this),this._onWindowResize=this._onResize.bind(this),this._onWindowFullscreenChange=this._onFullscreenChange.bind(this),this._onAnyImgAction=this._resetToolsToggler.bind(this),this._onGalleryClick=this._onBackdropClick.bind(this),this._onKeyupEvent=this._onKeyup.bind(this),this._onRightArrowKeydownEvent=this._onRightArrowKeydown.bind(this),this._onFullscreenBtnKeydownEvent=this._onFullscreenBtnKeydown.bind(this),t.forEach(e=>{_.on(e,"mousedown",this._onImgMousedown,{passive:!0}),_.on(e,"touchstart",this._onImgMousedown,{passive:!0}),_.on(e,"mousemove",this._onImgMousemove,{passive:!0}),_.on(e,"touchmove",this._onImgMousemove,{passive:!0}),_.on(e,"wheel",this._onImgWheel,{passive:!0}),_.on(e,"dblclick",this._onImgDoubleClick,{passive:!0})}),document.addEventListener("touchmove",this._onWindowTouchmove,{passive:!1}),_.on(window,"touchstart",this._onWindowTouchstart),_.on(window,"mouseup",this._onImgMouseup),_.on(window,"touchend",this._onImgTouchend),_.on(window,"resize",this._onWindowResize),_.on(window,"orientationchange",this._onWindowResize),_.on(window,"keyup",this._onKeyupEvent),_.on(window,"fullscreenchange",this._onWindowFullscreenChange),_.on(this._gallery,"mousemove",this._onAnyImgAction),_.on(this._gallery,"click",this._onGalleryClick),_.on(this._rightArrow,"keydown",this._onRightArrowKeydownEvent),_.on(this._fullscreenBtn,"keydown",this._onFullscreenBtnKeydownEvent)}_removeEvents(){m.find("img",this._galleryContent).forEach(e=>{_.off(e,"mousedown",this._onImgMousedown),_.off(e,"touchstart",this._onImgMousedown),_.off(e,"mousemove",this._onImgMousemove),_.off(e,"touchmove",this._onImgMousemove),_.off(e,"wheel",this._onImgWheel),_.off(e,"dblclick",this._onImgDoubleClick)}),document.removeEventListener("touchmove",this._onWindowTouchmove,{passive:!1}),_.off(window,"touchstart",this._onWindowTouchstart),_.off(window,"mouseup",this._onImgMouseup),_.off(window,"touchend",this._onImgTouchend),_.off(window,"resize",this._onWindowResize),_.off(window,"orientationchange",this._onWindowResize),_.off(window,"keyup",this._onKeyupEvent),_.off(window,"fullscreenchange",this._onWindowFullscreenChange),_.off(this._gallery,"mousemove",this._onAnyImgAction),_.off(this._gallery,"click",this._onGalleryClick),_.off(this._rightArrow,"keydown",this._onRightArrowKeydownEvent),_.off(this._fullscreenBtn,"keydown",this._onFullscreenBtnKeydownEvent)}_onMousedown(t){const e=t.touches,i=e?e[0].clientX:t.clientX,n=e?e[0].clientY:t.clientY;this._originalPositionX=parseFloat(this.currentImg.style.left)||0,this._originalPositionY=parseFloat(this.currentImg.style.top)||0,this._positionX=this._originalPositionX,this._positionY=this._originalPositionY,this._mousedownPositionX=i*(1/this._zoom)-this._positionX,this._mousedownPositionY=n*(1/this._zoom)-this._positionY,this._mousedown=!0,t.type==="touchstart"&&t.touches.length>1&&(this._multitouch=!0,this._touchZoomPosition=t.touches)}_onMousemove(t){if(!this._mousedown)return;const e=t.touches,i=e?e[0].clientX:t.clientX,n=e?e[0].clientY:t.clientY;if(e&&this._resetToolsToggler(),!this._multitouch)if(this._zoom!==1)this._positionX=i*(1/this._zoom)-this._mousedownPositionX,this._positionY=n*(1/this._zoom)-this._mousedownPositionY,g.style(this.currentImg,{left:`${this._positionX}px`,top:`${this._positionY}px`});else{if(this._images.length<=1)return;this._positionX=i*(1/this._zoom)-this._mousedownPositionX,g.style(this.currentImg,{left:`${this._positionX}px`})}}_onMouseup(t){this._mousedown=!1,this._moveImg(t.target)}_onTouchend(t){this._mousedown=!1,this._multitouch?t.targetTouches.length===0&&(this._multitouch=!1,this._touchZoomPosition=[]):this._multitouch||(this._checkDoubleTap(t),this._moveImg(t.target))}_calculateTouchZoom(t){const e=Math.hypot(this._touchZoomPosition[1].pageX-this._touchZoomPosition[0].pageX,this._touchZoomPosition[1].pageY-this._touchZoomPosition[0].pageY),i=Math.hypot(t.touches[1].pageX-t.touches[0].pageX,t.touches[1].pageY-t.touches[0].pageY),n=Math.abs(e-i),o=t.view.screen.width;n>o*.03&&(e<=i?this.zoomIn():this.zoomOut(),this._touchZoomPosition=t.touches)}_onWindowTouchstart(t){t.touches.length>1&&(this._multitouch=!0,this._touchZoomPosition=t.touches)}_onWindowTouchmove(t){t.preventDefault(),t.type==="touchmove"&&t.targetTouches.length>1&&this._calculateTouchZoom(t)}_onRightArrowKeydown(t){switch(t.keyCode){case 9:if(t.shiftKey)break;t.preventDefault(),this._focusFullscreenBtn();break}}_onFullscreenBtnKeydown(t){switch(t.keyCode){case 9:if(!t.shiftKey)break;t.preventDefault(),this._focusRightArrow();break}}_onKeyup(t){switch(this._resetToolsToggler(),t.keyCode){case 39:this.slide();break;case 37:this.slide("left");break;case 27:this.close();break;case 36:this.slide("first");break;case 35:this.slide("last");break;case 38:this.zoomIn();break;case 40:this.zoomOut();break}}_focusFullscreenBtn(){setTimeout(()=>{this._fullscreenBtn.focus()},100)}_focusRightArrow(){this._rightArrow.focus()}_moveImg(t){if(this._multitouch||this._zoom!==1||t!==this.currentImg||this._images.length<=1)return;const e=this._positionX-this._originalPositionX;e>0?this.slide("left"):e<0&&this.slide()}_checkDoubleTap(t){clearTimeout(this._doubleTapTimer);const i=new Date().getTime()-this._tapTime;this._tapCounter>0&&i<500?(this._onDoubleClick(t),this._doubleTapTimer=setTimeout(()=>{this._tapTime=new Date().getTime(),this._tapCounter=0},300)):(this._tapCounter++,this._tapTime=new Date().getTime())}_resetDoubleTap(){this._tapTime=0,this._tapCounter=0,clearTimeout(this._doubleTapTimer)}_onDoubleClick(t){this._multitouch||(t.touches||this._setNewPositionOnZoomIn(t),this._zoom!==1?this._restoreDefaultZoom():this.zoomIn())}_onZoom(t){if(t.deltaY>0)this.zoomOut();else{if(this._zoom>=3)return;this._setNewPositionOnZoomIn(t),this.zoomIn()}}_onBackdropClick(t){this._resetToolsToggler(),t.target.tagName==="DIV"&&this.close()}_setNewPositionOnZoomIn(t){clearTimeout(this._zoomTimer),this._positionX=window.innerWidth/2-t.offsetX-50,this._positionY=window.innerHeight/2-t.offsetY-50,this.currentImg.style.transition="all 0.5s ease-out",this.currentImg.style.left=`${this._positionX}px`,this.currentImg.style.top=`${this._positionY}px`,this._zoomTimer=setTimeout(()=>{this.currentImg.style.transition="none"},500)}_resetToolsToggler(){this._showTools(),clearTimeout(this._toolsToggleTimer),this._setToolsToggleTimout()}_setToolsToggleTimout(){this._toolsToggleTimer=setTimeout(()=>{this._hideTools(),clearTimeout(this._toolsToggleTimer)},4e3)}_hideTools(){g.style(this._galleryToolbar,{opacity:0}),g.style(this._leftArrowWrapper,{opacity:0}),g.style(this._rightArrowWrapper,{opacity:0})}_showTools(){g.style(this._galleryToolbar,{opacity:1}),g.style(this._leftArrowWrapper,{opacity:1}),g.style(this._rightArrowWrapper,{opacity:1})}_disableScroll(){g.addClass(document.body,"overflow-y-hidden relative"),document.documentElement.scrollHeight>document.documentElement.clientHeight&&g.addClass(document.body,"md:pr-[17px]")}_enableScroll(){setTimeout(()=>{g.removeClass(document.body,"overflow-y-hidden relative"),g.removeClass(document.body,"md:pr-[17px]")},300)}_animationStart(){this._animating=!0,setTimeout(()=>{this._animating=!1},400)}_restoreDefaultZoom(){this._zoom!==1&&(this._zoom=1,g.style(this.currentImg.parentNode,{transform:`scale(${this._zoom})`}),this._updateZoomBtn(),this._updateImgPosition())}_restoreDefaultFullscreen(){this._fullscreen&&this.toggleFullscreen()}_restoreDefaultPosition(){clearTimeout(this._zoomTimer);const t=this.currentImg;g.style(this.currentImg.parentNode,{left:0,top:0}),g.style(this.currentImg,{transition:"all 0.5s ease-out",left:0,top:0}),this._calculateImgSize(t),setTimeout(()=>{g.style(this.currentImg,{transition:"none"})},500)}async _triggerEvents(t,e){_.trigger(this._element,`${t}.te.lightbox`),e&&await setTimeout(()=>{_.trigger(this._element,`${e}.te.lightbox`)},505)}static getInstance(t){return D.getData(t,pn)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,typeof e=="object"?e:null)}static toggle(){return function(t){const e=m.closest(t.target,`${Ap}`);(gs.getInstance(e)||new gs(e)).open(t)}}static jQueryInterface(t,e){return this.each(function(){let i=D.getData(this,pn);const n=typeof t=="object"&&t;if(!(!i&&/dispose/.test(t))&&(i||(i=new gs(this,n)),typeof t=="string")){if(typeof i[t]>"u")throw new TypeError(`No method named "${t}"`);i[t](e)}})}}const tw={isRequired:"This is required",isEmail:"Please enter a valid email address",isLongerThan:"This field must be longer than {length} characters",isShorterThan:"This field must be shorter than {length} characters",isChecked:"This is required",isPhone:"Please enter a valid phone number",isNumber:"Expected value with type Number",isString:"Expected value with type String",isBoolean:"Expected value with type Boolean",isDate:"Please enter a valid date",is12hFormat:"Please enter a valid time in 12h format",is24hFormat:"Please enter a valid time in 24h format"},ew={isRequired:(s,t)=>(s==null?void 0:s.trim())?!0:t,isEmail:(s,t)=>/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(s)?!0:t,isLongerThan:(s,t,e)=>s.length>e?!0:t.replace("{length}",e),isShorterThan:(s,t,e)=>s.lengths?!0:"This is required",isPhone:(s,t)=>s.length===9?!0:t,isNumber:(s,t)=>s&&!isNaN(Number(s))?!0:t,isString:(s,t)=>typeof s=="string"?!0:t,isBoolean:(s,t)=>typeof s=="boolean"?!0:t,isDate:(s,t)=>{const e=/^([0-9]{1,2})\/([0-9]{1,2})\/([0-9]{4})$/;return s.match(e)?!0:t},is12hFormat:(s,t)=>{const e=/^(0?[1-9]|1[0-2]):[0-5][0-9] [APap][mM]$/;return s.match(e)?!0:t},is24hFormat:(s,t)=>{const e=/^(?:[01]\d|2[0-3]):[0-5][0-9]$/;return s.match(e)?!0:t}},Wl="validation",zl="te.validation",hr=`.${zl}`,kp="data-te-validate",dr="data-te-validated",ur="data-te-validation-state",pr="data-te-validation-feedback",jl="data-te-valid-feedback",fr="data-te-invalid-feedback",Sp="data-te-validation-ruleset",iw="data-te-submit-btn-ref",sw=`[${kp}]`,nw="[data-te-input-notch-ref] div",ow=`[${iw}]`,rw=`validated${hr}`,aw=`valid${hr}`,lw=`invalid${hr}`,cw=`changed${hr}`,hw={validFeedback:"string",invalidFeedback:"string",disableFeedback:"boolean",customRules:"object",customErrorMessages:"object",activeValidation:"boolean",submitCallback:"(function|null)"},Op={validFeedback:"Looks good!",invalidFeedback:"Something is wrong!",disableFeedback:!1,customRules:{},customErrorMessages:{},activeValidation:!1,submitCallback:null},dw={notchLeadingValid:"border-[#14a44d] dark:border-[#14a44d] group-data-[te-input-focused]:shadow-[-1px_0_0_#14a44d,_0_1px_0_0_#14a44d,_0_-1px_0_0_#14a44d] group-data-[te-input-focused]:border-[#14a44d]",notchMiddleValid:"border-[#14a44d] dark:border-[#14a44d] group-data-[te-input-focused]:shadow-[0_1px_0_0_#14a44d] group-data-[te-input-focused]:border-[#14a44d]",notchTrailingValid:"border-[#14a44d] dark:border-[#14a44d] group-data-[te-input-focused]:shadow-[1px_0_0_#14a44d,_0_-1px_0_0_#14a44d,_0_1px_0_0_#14a44d] group-data-[te-input-focused]:border-[#14a44d]",notchLeadingInvalid:"border-[#dc4c64] dark:border-[#dc4c64] group-data-[te-input-focused]:shadow-[-1px_0_0_#dc4c64,_0_1px_0_0_#dc4c64,_0_-1px_0_0_#dc4c64] group-data-[te-input-focused]:border-[#dc4c64]",notchMiddleInvalid:"border-[#dc4c64] dark:border-[#dc4c64] group-data-[te-input-focused]:shadow-[0_1px_0_0_#dc4c64] group-data-[te-input-focused]:border-[#dc4c64]",notchTrailingInvalid:"border-[#dc4c64] dark:border-[#dc4c64] group-data-[te-input-focused]:shadow-[1px_0_0_#dc4c64,_0_-1px_0_0_#dc4c64,_0_1px_0_0_#dc4c64] group-data-[te-input-focused]:border-[#dc4c64]",basicInputValid:"!border-[#14a44d] focus:!border-[#14a44d] focus:!shadow-[inset_0_0_0_1px_#14a44d]",basicInputInvalid:"!border-[#dc4c64] focus:!border-[#dc4c64] focus:!shadow-[inset_0_0_0_1px_#dc4c64]",checkboxValid:"checked:!border-[#14a44d] checked:!bg-[#14a44d] checked:after:!bg-[#14a44d]",checkboxInvalid:"checked:!border-[#dc4c64] checked:!bg-[#dc4c64] checked:after:!bg-[#dc4c64]",radioValid:"checked:!border-[#14a44d] checked:after:!bg-[#14a44d]",radioInvalid:"checked:!border-[#dc4c64] checked:after:!bg-[#dc4c64]",labelValid:"!text-[#14a44d]",labelInvalid:"!text-[#dc4c64]",validFeedback:"absolute top-full left-0 m-1 w-auto text-sm text-[#14a44d] animate-[fade-in_0.3s_both]",invalidFeedback:"absolute top-full left-0 m-1 w-auto text-sm text-[#dc4c64] animate-[fade-in_0.3s_both]",elementValidated:"mb-8"},uw={notchLeadingValid:"string",notchMiddleValid:"string",notchTrailingValid:"string",notchLeadingInvalid:"string",notchMiddleInvalid:"string",notchTrailingInvalid:"string",basicInputValid:"string",basicInputInvalid:"string",checkboxValid:"string",checkboxInvalid:"string",radioValid:"string",radioInvalid:"string",labelValid:"string",labelInvalid:"string",validFeedback:"string",invalidFeedback:"string",elementValidated:"string"};class _r extends Ht{constructor(t,e,i){super(t),this._element=t,this._element&&D.setData(t,zl,this),this._config=this._getConfig(e),this._classes=this._getClasses(i),this._isValid=!0,this._shouldApplyInputEvents=!0,this._submitCallback=null,this._errorMessages={...tw,...this._config.customErrorMessages},this._validationElements=this._getValidationElements(),this._validationElements.forEach(({element:n,input:o})=>{this._createFeedbackWrapper(n,o)}),this._validationObserver=this._watchForValidationChanges(),this._validationObserver.observe(this._element,{attributes:!0}),this._submitButton=null,this._handleSubmitButton(),this._validationResult=[]}static get DefaultType(){return hw}static get Default(){return Op}static get NAME(){return Wl}dispose(){var t;(t=this._validationObserver)==null||t.disconnect(),this._validationObserver=null,this._submitCallback=null,this._element.removeAttribute(dr),this._removeValidationTraces(),this._validationResult=[],this._submitButton&&_.off(this._submitButton,"click"),this._config.activeValidation&&(this._validationElements.forEach(e=>{const{input:i}=e;_.off(i,"input")}),this._shouldApplyInputEvents=!0)}_removeValidationTraces(){this._removeFeedbackWrapper(),this._validationElements.forEach(({element:t,classes:e,initialHTML:i})=>{t.className=e,t.innerHTML=i,t.removeAttribute(ur),t.removeAttribute(fr),t.removeAttribute(jl)}),this._validationElements=[]}_getValidationElements(){return m.find(sw,this._element).map(e=>{const i=m.findOne("input",e)||m.findOne("textarea",e);return{id:i.name||i.id||Et("validation-"),element:e,type:e.getAttribute(kp),input:i,validFeedback:e.getAttribute(jl),invalidFeedback:e.getAttribute(fr),classes:e.className,initialHTML:e.innerHTML,ruleset:e.getAttribute(Sp)}})}_createFeedbackWrapper(t,e){if(t.querySelectorAll(`[${pr}]`).length>0)return;const i=document.createElement("span");i.setAttribute(pr,""),e.parentNode.appendChild(i)}_removeFeedbackWrapper(){m.find(`[${pr}]`,this._element).forEach(e=>{e.remove()})}_watchForValidationChanges(){return new MutationObserver(e=>{e.forEach(i=>{const{attributeName:n}=i;n===dr&&(this._handleValidation(),this._config.activeValidation&&this._shouldApplyInputEvents&&this._applyInputEvents())})})}_handleValidation(){this._element.getAttribute(dr)&&(this._validationResult=[],this._isValid=!0,this._validationElements.forEach(t=>this._validateSingleElement(t)),this._emitEvents(this._isValid),this._submitCallback&&this._submitCallback(this._isValid))}_validateSingleElement(t){var c;const{element:e,type:i,input:n,ruleset:o,id:r}=t;o&&this._validateByRuleset(t);const a=e.getAttribute(ur);if(a!=="valid"&&a!=="invalid")return;const l=a.replace(a.charAt(0),a.charAt(0).toUpperCase());i==="input"&&this._restyleNotches(e,l),i==="basic"&&this._restyleBasicInputs(n,l),(i==="checkbox"||i==="radio")&&this._restyleCheckboxes(n,l,i),this._restyleLabels(e,l),a==="invalid"&&(this._isValid=!1),this._config.disableFeedback||this._applyFeedback(e,a),_.trigger(this._element,cw,{value:{name:r,result:a,validation:(c=this._validationResult[r])==null?void 0:c.validation}})}_validateByRuleset({element:t,type:e,invalidFeedback:i,input:n,id:o}){const r=this._getRuleset(t);if(!r.length)return;const a=e==="checkbox"||e==="radio"?n.checked:n.value;let l="",c=[];for(const h of r){const d=h.callback(a,this._errorMessages[h.name]||this._config.invalidFeedback,h.parameter);c.push({result:d===!0,name:h.name,fullName:h.fullName}),typeof d=="string"&&!l&&(l=d)}if(this._validationResult[o]={element:t,validation:c},!l){t.setAttribute(ur,"valid");return}t.setAttribute(ur,"invalid"),i||t.setAttribute(fr,l)}_handleInputChange(t){this._validateSingleElement(t)}_getRuleset(t){const i=t.getAttribute(Sp).split("|");let n=[];const o={...ew,...this._config.customRules};return i.forEach(r=>{const a=this._getRuleData(r,o);a.callback?n.push(a):console.warn(`Rule ${r} does not exist`)}),n}_getRuleData(t,e){const i=t.split("(");return{callback:e[i[0]],parameter:i[1]?i[1].split(")")[0]:null,name:i[0],fullName:t}}_applyFeedback(t,e){const i=m.findOne(`[${pr}]`,t),n=t.getAttribute(jl)||this._config.validFeedback,o=t.getAttribute(fr)||this._config.invalidFeedback;g.addClass(t,this._classes.elementValidated),i.textContent=e==="valid"?n:o,i.className=this._classes[e==="valid"?"validFeedback":"invalidFeedback"]}_restyleCheckboxes(t,e,i){g.removeClass(t,this._classes.checkboxValid),g.removeClass(t,this._classes.checkboxInvalid),g.addClass(t,this._classes[`${i}${e}`])}_restyleBasicInputs(t,e){g.removeClass(t,this._classes.basicInputValid),g.removeClass(t,this._classes.basicInputInvalid),g.addClass(t,this._classes[`basicInput${e}`])}_restyleNotches(t,e){m.find(nw,t).forEach((n,o)=>{let r=o===0?"notchLeading":o===1?"notchMiddle":"notchTrailing";n.className="",g.addClass(n,Wd[r]),r+=e,g.addClass(n,this._classes[r])})}_restyleLabels(t,e){const i=m.find("label",t);i.length&&i.forEach(n=>{g.removeClass(n,this._classes.labelValid),g.removeClass(n,this._classes.labelInvalid),g.addClass(n,this._classes[`label${e}`])})}_emitEvents(t){if(_.trigger(this._element,rw),t){_.trigger(this._element,aw,{value:this._validationResult});return}_.trigger(this._element,lw,{value:this._validationResult})}_applyInputEvents(){this._validationElements.forEach(t=>{const{input:e}=t;_.on(e,"input",()=>this._handleInputChange(t))}),this._shouldApplyInputEvents=!1}_handleSubmitButton(){this._submitButton=m.findOne(ow,this._element),this._submitButton&&_.on(this._submitButton,"click",t=>this._handleSubmitButtonClick(t))}_handleSubmitButtonClick(t){if(this._element.setAttribute(dr,!0),this._config.submitCallback){this._submitCallback=e=>this._config.submitCallback(t,e);return}}_getConfig(t){return t={...Op,...g.getDataAttributes(this._element),...typeof t=="object"&&t?t:{}},L(Wl,t,this.constructor.DefaultType),t}_getClasses(t){const e=g.getDataClassAttributes(this._element);return t={...dw,...e,...t},L(Wl,t,uw),t}static getInstance(t){return D.getData(t,zl)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,typeof e=="object"?e:null)}static jQueryInterface(t){return this.each(function(){const e=_r.getOrCreateInstance(this);if(typeof t=="string"){if(e[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);e[t](this)}})}}class fn{_getCoordinates(t){const[e]=t.touches;return{x:e.clientX,y:e.clientY}}_getDirection({x:t,y:e}){return{x:{direction:t<0?"left":"right",value:Math.abs(t)},y:{direction:e<0?"up":"down",value:Math.abs(e)}}}_getOrigin({x:t,y:e},{x:i,y:n}){return{x:t-i,y:e-n}}_getDistanceBetweenTwoPoints(t,e,i,n){return Math.hypot(e-t,n-i)}_getMidPoint({x1:t,x2:e,y1:i,y2:n}){return{x:(t+e)/2,y:(i+n)/2}}_getVectorLength({x1:t,x2:e,y1:i,y2:n}){return Math.sqrt((e-t)**2+(n-i)**2)}_getRightMostTouch(t){let e=null;const i=Number.MIN_VALUE;return t.forEach(n=>{n.clientX>i&&(e=n)}),e}_getAngle(t,e,i,n){return Math.atan2(n-e,i-t)}_getAngularDistance(t,e){return e-t}_getCenterXY({x1:t,x2:e,y1:i,y2:n}){return{x:t+(e-t)/2,y:i+(n-i)/2}}_getPinchTouchOrigin(t){const[e,i]=t,n={x1:e.clientX,x2:i.clientX,y1:e.clientY,y2:i.clientY};return[this._getVectorLength(n),this._getCenterXY(n)]}_getPosition({x1:t,x2:e,y1:i,y2:n}){return{x1:t,x2:e,y1:i,y2:n}}}const Yl="press",pw="pressup",fw={time:"number",pointers:"number"},_w={time:250,pointers:1};class gw extends fn{constructor(t,e={}){super(),this._element=t,this._options=this._getConfig(e),this._timer=null}static get NAME(){return Yl}handleTouchStart(t){const{time:e,pointers:i}=this._options;t.touches.length===i&&(this._timer=setTimeout(()=>{_.trigger(this._element,Yl,{touch:t,time:e}),_.trigger(this._element,pw,{touch:t})},e))}handleTouchEnd(){clearTimeout(this._timer)}_getConfig(t){const e={..._w,...g.getDataAttributes(this._element),...t};return L(Yl,e,fw),e}}const mw="swipe",bw={threshold:"number",direction:"string"},vw={threshold:10,direction:"all"};class yw{constructor(t,e){this._element=t,this._startPosition=null,this._options=this._getConfig(e)}handleTouchStart(t){this._startPosition=this._getCoordinates(t)}handleTouchMove(t){if(!this._startPosition)return;const e=this._getCoordinates(t),i={x:e.x-this._startPosition.x,y:e.y-this._startPosition.y},n=this._getDirection(i);if(this._options.direction==="all"){if(n.y.valuen.x.value?n.y.direction:n.x.direction;_.trigger(this._element,`swipe${r}`,{touch:t}),_.trigger(this._element,"swipe",{touch:t,direction:r}),this._startPosition=null;return}const o=this._options.direction==="left"||this._options==="right"?"x":"y";n[o].direction===this._options.direction&&n[o].value>this._options.threshold&&(_.trigger(this._element,`swipe${n[o].direction}`,{touch:t}),this._startPosition=null)}handleTouchEnd(){this._startPosition=null}_getCoordinates(t){const[e]=t.touches;return{x:e.clientX,y:e.clientY}}_getDirection(t){return{x:{direction:t.x<0?"left":"right",value:Math.abs(t.x)},y:{direction:t.y<0?"up":"down",value:Math.abs(t.y)}}}_getConfig(t){const e={...vw,...g.getDataAttributes(this._element),...t};return L(mw,e,bw),e}}const Ze="pan",Tw=`${Ze}start`,Ew=`${Ze}end`,xw=`${Ze}move`,Cw="left",Aw="right",ww={threshold:"number",direction:"string",pointers:"number"},kw={threshold:20,direction:"all",pointers:1};class Sw extends fn{constructor(t,e={}){super(),this._element=t,this._options=this._getConfig(e),this._startTouch=null}static get NAME(){return Ze}handleTouchStart(t){this._startTouch=this._getCoordinates(t),this._movedTouch=t,_.trigger(this._element,Tw,{touch:t})}handleTouchMove(t){t.type==="touchmove"&&t.preventDefault();const{threshold:e,direction:i}=this._options,n=this._getCoordinates(t),o=this._getCoordinates(this._movedTouch),r=this._getOrigin(n,this._startTouch),a=this._getOrigin(n,o),l=this._getDirection(r),c=this._getDirection(a),{x:h,y:d}=l;if(i==="all"&&(d.value>e||h.value>e)){const p=d.value>h.value?d.direction:h.direction;_.trigger(this._element,`${Ze}${p}`,{touch:t}),_.trigger(this._element,Ze,{...a,touch:t})}const u=i===Cw||i===Aw?"x":"y";c[u].direction===i&&l[u].value>e&&_.trigger(this._element,`${Ze}${i}`,{touch:t,[u]:n[u]-o[u]}),this._movedTouch=t,_.trigger(this._element,xw,{touch:t})}handleTouchEnd(t){t.type==="touchend"&&t.preventDefault(),this._movedTouch=null,this._startTouch=null,_.trigger(this._element,Ew,{touch:t})}_getConfig(t){const e={...kw,...g.getDataAttributes(this._element),...t};return L(Ze,e,ww),e}}const ms="pinch",Ow=`${ms}end`,Dw=`${ms}start`,Iw=`${ms}move`,Mw={threshold:"number",pointers:"number"},Lw={threshold:10,pointers:2};class $w extends fn{constructor(t,e={}){super(),this._element=t,this._options=this._getConfig(e),this._startTouch=null,this._origin=null,this._touch=null,this._math=null,this._ratio=null}static get NAME(){return ms}get isNumber(){return typeof this._startTouch=="number"&&typeof this._touch=="number"&&!isNaN(this._startTouch)&&!isNaN(this._touch)}handleTouchStart(t){if(t.touches.length!==this._options.pointers)return;t.type==="touchstart"&&t.preventDefault();const[e,i]=this._getPinchTouchOrigin(t.touches);this._touch=e,this._origin=i,this._startTouch=this._touch,_.trigger(this._element,Dw,{touch:t,ratio:this._ratio,origin:this._origin})}handleTouchMove(t){const{threshold:e,pointers:i}=this._options;t.touches.length===i&&(t.type==="touchmove"&&t.preventDefault(),this._touch=this._getPinchTouchOrigin(t.touches)[0],this._ratio=this._touch/this._startTouch,this.isNumber&&(this._origin.x>e||this._origin.y>e)&&(this._startTouch=this._touch,_.trigger(this._element,ms,{touch:t,ratio:this._ratio,origin:this._origin}),_.trigger(this._element,Iw,{touch:t,ratio:this._ratio,origin:this._origin})))}handleTouchEnd(t){this.isNumber&&(this._startTouch=null,_.trigger(this._element,Ow,{touch:t,ratio:this._ratio,origin:this._origin}))}_getConfig(t){const e={...Lw,...g.getDataAttributes(this._element),...t};return L(ms,e,Mw),e}}const Kl="tap",Pw={interval:"number",time:"number",taps:"number",pointers:"number"},Rw={interval:500,time:250,taps:1,pointers:1};class Nw extends fn{constructor(t,e){super(),this._element=t,this._options=this._getConfig(e),this._timer=null,this._tapCount=0}static get NAME(){return Kl}handleTouchStart(t){const{x:e,y:i}=this._getCoordinates(t),{interval:n,taps:o,pointers:r}=this._options;return t.touches.length===r&&(this._tapCount+=1,this._tapCount===1&&(this._timer=setTimeout(()=>{this._tapCount=0},n)),this._tapCount===o&&(clearTimeout(this._timer),this._tapCount=0,_.trigger(this._element,Kl,{touch:t,origin:{x:e,y:i}}))),t}handleTouchEnd(){}handleTouchMove(){}_getConfig(t){const e={...Rw,...g.getDataAttributes(this._element),...t};return L(Kl,e,Pw),e}}const _n="rotate",Bw=`${_n}end`,Hw=`${_n}start`,Vw={angle:"number",pointers:"number"},Fw={angle:0,pointers:2};class Ww extends fn{constructor(t,e){super(),this._element=t,this._options=this._getConfig(e),this._origin={}}static get NAME(){return _n}handleTouchStart(t){t.type==="touchstart"&&t.preventDefault(),!(t.touches.length<2)&&(this._startTouch=t,this._origin={},_.trigger(this._element,Hw,{touch:t}))}handleTouchMove(t){t.type==="touchmove"&&t.preventDefault();let e,i;const n=t.touches;if(n.length===1&&this._options.pointers===1){const{left:o,top:r,width:a,height:l}=this._element.getBoundingClientRect();e={x:o+a/2,y:r+l/2},i=n[0]}else if(t.touches.length===2&&this._options.pointers===2){const[o,r]=t.touches,a={x1:r.clientX,x2:o.clientX,y1:r.clientY,y2:o.clientY};e=this._getMidPoint(a),i=this._getRightMostTouch(t.touches)}else return;this.currentAngle=this._getAngle(e.x,e.y,i.clientX,i.clientY),this._origin.initialAngle?(this._origin.change=this._getAngularDistance(this._origin.previousAngle,this.currentAngle),this._origin.distance+=this._origin.change):(this._origin.initialAngle=this._origin.previousAngle=this.currentAngle,this._origin.distance=this._origin.change=0),this._origin.previousAngle=this.currentAngle,this.rotate={currentAngle:this.currentAngle,distance:this._origin.distance,change:this._origin.change},_.trigger(this._element,_n,{...this.rotate,touch:t})}handleTouchEnd(t){t.type==="touchend"&&t.preventDefault(),this._origin={},_.trigger(this._element,Bw,{touch:t})}_getConfig(t){const e={...Fw,...g.getDataAttributes(this._element),...t};return L(_n,e,Vw),e}}const Ul="touch",Xl=`te.${Ul}`,zw={event:"string"},jw={event:"swipe"};class gr{constructor(t,e={}){this._element=t,this._options=this._getConfig(e),this._event=this._options.event,this.swipe=this._event==="swipe"?new yw(t,e):null,this.press=this._event==="press"?new gw(t,e):null,this.pan=this._event==="pan"?new Sw(t,e):null,this.pinch=this._event==="pinch"?new $w(t,e):null,this.tap=this._event==="tap"?new Nw(t,e):null,this.rotate=this._event==="rotate"?new Ww(t,e):null,this._touchStartHandler=i=>this._handleTouchStart(i),this._touchMoveHandler=i=>this._handleTouchMove(i),this._touchEndHandler=i=>this._handleTouchEnd(i),_.on(this._element,"touchstart",this._touchStartHandler),_.on(this._element,"touchmove",this._touchMoveHandler),_.on(this._element,"touchend",this._touchEndHandler),this._element&&D.setData(t,Xl,this)}static get NAME(){return Ul}dispose(){_.off(this._element,"touchstart",this._touchStartHandler),_.off(this._element,"touchmove",this._touchMoveHandler),_.off(this._element,"touchend",this._touchEndHandler),this.swipe=null,this.press=null,this.pan=null,this.pinch=null,this.tap=null,this.rotate=null}_getConfig(t){const e={...jw,...g.getDataAttributes(this._element),...t};return L(Ul,e,zw),e}_handleTouchStart(t){this[this._event].handleTouchStart(t)}_handleTouchMove(t){this[this._event].handleTouchMove&&this[this._event].handleTouchMove(t)}_handleTouchEnd(t){this[this._event].handleTouchEnd(t)}static jQueryInterface(t){return this.each(function(){let e=D.getData(this,Xl);const i=typeof t=="object"&&t;if(!(!e&&/dispose/.test(t))&&(e||(e=new gr(this,i)),typeof t=="string")){if(typeof e[t]>"u")throw new TypeError(`No method named "${t}"`);return e[t]}})}static getInstance(t){return D.getData(t,Xl)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,typeof e=="object"?e:null)}}const Gl="smoothScroll",gn=`te.${Gl}`,ql=`.${gn}`,Yw={container:"string",offset:"number",easing:"string",duration:"number"},Kw={container:"body",offset:0,easing:"linear",duration:500},Uw=`scrollStart${ql}`,Xw=`scrollEnd${ql}`,Gw=`scrollCancel${ql}`;class mr{constructor(t,e={}){this._element=t,this._options=this._getConfig(e),this._href=this._element.getAttribute("href"),this.isCancel=!1,this._element&&(D.setData(t,gn,this),this._setup())}static get NAME(){return Gl}get isWindow(){return this._options.container==="body"}get containerToScroll(){return this.isWindow?document.documentElement:m.findOne(this._options.container,document.documentElement)}get elFromHrefExist(){return!!m.findOne(this._href,this.containerToScroll)}get offsetFromEl(){const t=this.containerToScroll.scrollTop,e=m.findOne(this._href,this.containerToScroll);if(this.isWindow)return g.offset(e).top-this._options.offset+t;const i=e.getBoundingClientRect().y,n=this.containerToScroll.getBoundingClientRect().y;return i-n-this._options.offset+t}get easingFunction(){const t=this._options.easing,e=`_motion${t[0].toUpperCase()}${t.slice(1)}`;return this[e]?this[e]:this._motionLinear}dispose(){_.off(this._element,"click",this._handleClick),D.removeData(this._element,gn),this._element=null}cancelScroll(){this.isCancel=!0}_getConfig(t){const e={...Kw,...g.getDataAttributes(this._element),...t};return L(Gl,e,Yw),e}_inViewport(){if(this.isWindow)return!0;const t=this.containerToScroll.getBoundingClientRect();return t.top>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)}_setup(){const t=typeof this._href<"u",e=this._href.includes("#");t&&e&&this.elFromHrefExist&&(this._scrollOnClickEvent(),this._preventNativeScroll())}_scrollOnClickEvent(){_.on(this._element,"click",t=>{this._handleClick(t)})}_handleClick(t){t.preventDefault(),this.isCancel=!1,_.trigger(this._element,Uw);const e=this.containerToScroll,i=this.containerToScroll.scrollTop,n=this.offsetFromEl,o=0,r=1/this._options.duration,a=4.25,l=this.easingFunction;this._inViewport()?this._scrollOnNextTick(e,i,n,o,r,a,l):(this._scrollOnNextTick(document.documentElement,document.documentElement.scrollTop,this.containerToScroll.offsetTop,o,r,a,l),setTimeout(()=>{this._scrollOnNextTick(e,i,n,o,r,a,l),this.isCancel=!1},this._options.duration))}_scrollOnNextTick(t,e,i,n,o,r,a){const l=n<0,c=n>1,h=o<=0;if(l||c||h||this.isCancel){if(this.isCancel){this.isInViewport&&(this.isCancel=!1),_.trigger(this._element,Gw);return}_.trigger(this._element,Xw),t.scrollTop=i;return}t.scrollTo({top:e-(e-i)*a(n)}),n+=o*r,setTimeout(()=>{this._scrollOnNextTick(t,e,i,n,o,r,a)})}_preventDefault(t){t.preventDefault()}_preventNativeScroll(){let t=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>t=!0}))}catch(n){this._scrollError=n}const e=t?{passive:!1}:!1,i="onwheel"in $("div")?"wheel":"mousewheel";this.isWindow&&(this._deleteScrollOnStart(e,i),this._addScrollOnEnd(e,i),this._addScrollOnCancel(e,i))}_deleteScrollOnStart(t,e){_.on(this._element,"scrollStart.te.smoothScroll",()=>{window.addEventListener(e,this._preventDefault,t),window.addEventListener("touchmove",this._preventDefault,t)})}_addScrollOnEnd(t,e){_.on(this._element,"scrollEnd.te.smoothScroll",()=>{window.removeEventListener(e,this._preventDefault,t),window.removeEventListener("touchmove",this._preventDefault,t)})}_addScrollOnCancel(t,e){_.on(this._element,"scrollCancel.te.smoothScroll",()=>{window.removeEventListener(e,this._preventDefault,t),window.removeEventListener("touchmove",this._preventDefault,t)})}_motionLinear(t){return t}_motionEaseInQuad(t){return t*t}_motionEaseInCubic(t){return t*t*t}_motionEaseInQuart(t){return t*t*t*t}_motionEaseInQuint(t){return t*t*t*t*t}_motionEaseInOutQuad(t){return t<.5?2*t*t:-1+(4-2*t)*t}_motionEaseInOutCubic(t){return t/=.5,t<1?t*t*t/2:(t-=2,(t*t*t+2)/2)}_motionEaseInOutQuart(t){return t/=.5,t<1?.5*t*t*t*t:(t-=2,-(t*t*t*t-2)/2)}_motionEaseInOutQuint(t){return t/=.5,t<1?t*t*t*t*t/2:(t-=2,(t*t*t*t*t+2)/2)}_motionEaseOutQuad(t){return-t*(t-2)}_motionEaseOutCubic(t){return t--,t*t*t+1}_motionEaseOutQuart(t){return t--,-(t*t*t*t-1)}_motionEaseOutQuint(t){return t--,t*t*t*t*t+1}static getInstance(t){return D.getData(t,gn)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,typeof e=="object"?e:null)}static jQueryInterface(t){return this.each(function(){let e=D.getData(this,gn);const i=typeof t=="object"&&t;if(e||(e=new mr(this,i)),typeof t=="string"){if(typeof e[t]>"u")throw new TypeError(`No method named "${t}"`);e[t](this)}})}}const Dp="lazyLoad",br="te.lazyLoad",qw="[data-te-lazy-load-init]",Ip="data-te-lazy-load",Zw="onLoad.te.lazy",Qw="onError.te.lazy",Mp=["img","video"],Jw={lazySrc:"(string|null)",lazyDelay:"number",lazyAnimation:"string",lazyOffset:"number",lazyPlaceholder:"(string|undefined)",lazyError:"(string|undefined)"},tk={lazySrc:null,lazyDelay:500,lazyAnimation:"[fade-in_1s_ease-in-out]",lazyOffset:0};class mn{constructor(t,e){this._element=t,this._element&&D.setData(t,br,this),this._options=this._getConfig(e),this.scrollHandler=this._scrollHandler.bind(this),this.errorHandler=this._setElementError.bind(this),this._childrenInstances=null,this._init()}static get NAME(){return Dp}get offsetValues(){return this._element.getBoundingClientRect()}get inViewport(){if(this.parent){const t=this.parent.getBoundingClientRect();return t.y>0&&t.y=t.y&&this.offsetValues.y<=t.y+t.height&&this.offsetValues.y<=window.innerHeight}return this.offsetValues.top+this._options.lazyOffset<=window.innerHeight&&this.offsetValues.bottom>=0}get parent(){const[t]=m.parents(this._element,qw);return t}get node(){return this._element.nodeName}get isContainer(){return!m.matches(this._element,Mp)}dispose(){D.removeData(this._element,br),this._animation&&(this._animation.dispose(),this._animation=null),this._element=null,this._childrenInstances&&this._childrenInstances.forEach(t=>t.dispose())}_init(){if(this._element.setAttribute(Ip,""),this.isContainer){this._setupContainer();return}this._setupElement()}_setupElement(){_.one(this._element,"error",this.errorHandler),this._options.lazyPlaceholder&&this._setPlaceholder(),this._animation=new js(this._element,{animation:`${this._options.lazyAnimation}`,animationStart:"onLoad"}),_.one(this._element,"load",()=>this._scrollHandler()),this.parent&&_.on(this.parent,"scroll",this.scrollHandler),_.on(window,"scroll",this.scrollHandler)}_scrollHandler(){this.inViewport&&(this._timeout=setTimeout(()=>{this._setSrc(),this._element.removeAttribute(Ip),this._removeAttrs(),this._animation.init()},this._options.lazyDelay),this.parent&&_.off(this.parent,"scroll",this.scrollHandler),_.off(window,"scroll",this.scrollHandler))}_setElementError(){!this._options.lazyError||this._element.src===this._options.lazyError?this._element.alt="404 not found":this._element.setAttribute("src",this._options.lazyError),_.trigger(this._element,Qw)}_setSrc(){this._element.setAttribute("src",this._options.lazySrc),_.trigger(this._element,Zw)}_setPlaceholder(){this.node==="IMG"?this._element.setAttribute("src",this._options.lazyPlaceholder):this.node==="VIDEO"&&this._element.setAttribute("poster",this._options.lazyPlaceholder)}_removeAttrs(){["src","delay","animation","placeholder","offset","error"].forEach(t=>{g.removeDataAttribute(this._element,`lazy-${t}`)})}_setupContainer(){this._childrenInstances=m.children(this._element,Mp).map(t=>new mn(t,this._options))}_getConfig(t){const e={...tk,...t,...g.getDataAttributes(this._element)};return L(Dp,e,Jw),e}static getInstance(t){return D.getData(t,br)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,typeof e=="object"?e:null)}static jQueryInterface(t){return this.each(function(){let e=D.getData(this,br);const i=typeof t=="object"&&t;if(e||(e=new mn(this,i)),typeof t=="string"){if(typeof e[t]>"u")throw new TypeError(`No method named "${t}"`);e[t](this)}})}}const Lp="clipboard",bn="te.clipboard",ek=`.${bn}`,ik={clipboardTarget:null},sk={clipboardTarget:"null|string"},nk=`copy${ek}`;class vr{constructor(t,e={}){this._element=t,this._options=e,this._element&&(D.setData(t,bn,this),this._initCopy=this._initCopy.bind(this),this._setup())}static get NAME(){return Lp}get options(){const t={...ik,...g.getDataAttributes(this._element),...this._options};return L(Lp,t,sk),t}get clipboardTarget(){return m.findOne(this.options.clipboardTarget)}get copyText(){const t=this.clipboardTarget.hasAttribute("data-te-clipboard-text"),e=this.clipboardTarget.value,i=this.clipboardTarget.textContent;return t?this.clipboardTarget.getAttribute("data-te-clipboard-text"):e||i}dispose(){_.off(this._element,"click",this._initCopy),D.removeData(this._element,bn),this._element=null}_setup(){_.on(this._element,"click",this._initCopy)}_initCopy(){const t=this._createNewInput();document.body.appendChild(t),this._selectInput(t),_.trigger(this._element,nk,{copyText:this.copyText}),t.remove()}_createNewInput(){const t=this.clipboardTarget.tagName==="TEXTAREA"?"textarea":"input",e=$(t);return e.value=this.copyText,g.addClass(e,"-left-[9999px] absolute"),e}_selectInput(t){t.select(),t.focus(),t.setSelectionRange(0,99999),document.execCommand("copy")}static jQueryInterface(t){return this.each(function(){let e=D.getData(this,bn);const i=typeof t=="object"&&t;if(e||(e=new vr(this,i)),typeof t=="string"){if(typeof e[t]>"u")throw new TypeError(`No method named "${t}"`);e[t](this)}})}static getInstance(t){return D.getData(t,bn)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,typeof e=="object"?e:null)}}const Zl="infiniteScroll",yr=`te.${Zl}`,ok={infiniteDirection:"y"},rk={infiniteDirection:"string"};class Tr{constructor(t,e){this._element=t,this._element&&D.setData(t,yr,this),this._options=this._getConfig(e),this.scrollHandler=this._scrollHandler.bind(this),this._init()}static get NAME(){return Zl}get rect(){return this._element.getBoundingClientRect()}get condition(){return this._element===window?Math.abs(window.scrollY+window.innerHeight-document.documentElement.scrollHeight)<1:this._options.infiniteDirection==="x"?this.rect.width+this._element.scrollLeft+10>=this._element.scrollWidth:Math.ceil(this.rect.height+this._element.scrollTop)>=this._element.scrollHeight}dispose(){_.off(this._element,"scroll",this.scrollHandler),D.removeData(this._element,yr),this._element=null}_init(){_.on(this._element,"scroll",()=>this._scrollHandler())}_scrollHandler(){this.condition&&_.trigger(this._element,"complete.te.infiniteScroll"),_.off(this._element,"scroll",this.scrollHandler)}_getConfig(t){const e={...ok,...this._element!==window?g.getDataAttributes(this._element):{},...t};return L(Zl,e,rk),e}static getInstance(t){return D.getData(t,yr)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,typeof e=="object"?e:null)}static jQueryInterface(t){return this.each(function(){let e=D.getData(this,yr);const i=typeof t=="object"&&t;if(e||(e=new Tr(this,i)),typeof t=="string"){if(typeof e[t]>"u")throw new TypeError(`No method named "${t}"`);e[t](this)}})}}function ak({backdropID:s},t){const e=$("div");return g.addClass(e,`${t.backdrop} ${t.backdropColor}`),e.id=s,e}const vn="loadingManagement",Er=`te.${vn}`,lk="[data-te-loading-icon-ref]",ck="[data-te-loading-text-ref]",hk=`show.te.${vn}`,dk={backdrop:"(null|boolean)",backdropID:"(null|string|number)",delay:"(null|number)",loader:"(null|string|number)",parentSelector:"(null|string)",loadingIcon:"boolean",loadingText:"boolean",scroll:"boolean"},uk={backdrop:!0,backdropID:null,delay:0,loader:"",parentSelector:null,scroll:!0,loadingText:!0,loadingIcon:!0},pk={loadingSpinner:"absolute top-[50%] left-[50%] -translate-x-[50%] -translate-y-[50%] flex flex-col justify-center items-center z-40",spinnerColor:"text-primary dark:text-primary-400",backdrop:"w-full h-full fixed top-0 left-0 bottom-0 right-0 z-30",backdropColor:"bg-[rgba(0,0,0,0.4)]"},fk={loadingSpinner:"string",spinnerColor:"string",backdrop:"string",backdropColor:"string"};class xr{constructor(t,e={},i){this._element=t,this._options=this._getConfig(e),this._classes=this._getClasses(i),this._element&&D.setData(t,Er,this),this._backdropElement=null,this._parentElement=m.findOne(this._options.parentSelector),this._loadingIcon=m.findOne(lk,this._element),this._loadingText=m.findOne(ck,this._element),this.init()}static get NAME(){return vn}init(){const t=this._loadingIcon.cloneNode(!0),e=this._loadingText.cloneNode(!0);this._removeElementsOnStart(),setTimeout(()=>{g.addClass(this._element,`${this._classes.loadingSpinner} ${this._classes.spinnerColor}`),this._setBackdrop(),this._setLoadingIcon(t),this._setLoadingText(e),this._setScrollOption(),_.trigger(this._element,hk)},this._options.delay)}dispose(){D.removeData(this._element,Er),g.removeClass(this._element,`${this._classes.loadingSpinner} ${this._classes.spinnerColor}`);const t=this._options.delay;setTimeout(()=>{this._removeBackdrop(),this._backdropElement=null,this._element=null,this._options=null},t)}_setBackdrop(){const{backdrop:t}=this._options;t&&(this._backdropElement=ak(this._options,this._classes),this._parentElement!==null?(g.addClass(this._element,"absolute"),g.addClass(this._parentElement,"relative"),g.addClass(this._backdropElement,"absolute"),this._parentElement.appendChild(this._backdropElement)):(g.addClass(this._element,"!fixed"),document.body.appendChild(this._backdropElement),document.body.appendChild(this._element)))}_removeBackdrop(){const{backdrop:t}=this._options;t&&(this._parentElement!==null?(g.removeClass(this._element,"absolute"),g.removeClass(this._parentElement,"relative"),this._backdropElement.remove()):(this._backdropElement.remove(),this._element.remove()))}_setLoadingIcon(t){if(!this._options.loadingIcon){t.remove();return}this._element.appendChild(t),t.id=this._options.loader}_setLoadingText(t){if(!this._options.loadingText){t.remove();return}this._element.appendChild(t)}_removeElementsOnStart(){this._element!==null&&(this._loadingIcon.remove(),this._loadingText.remove())}_setScrollOption(){if(this._options.scroll){if(this._parentElement===null){g.addClass(document.body,"overflow-auto");return}g.addClass(this._parentElement,"overflow-auto")}else{if(this._parentElement===null){g.addClass(document.body,"overflow-hidden");return}g.addClass(this._parentElement,"overflow-hidden")}}_getConfig(t){const e={...uk,...g.getDataAttributes(this._element),...t};return L(vn,e,dk),e}_getClasses(t){const e=g.getDataClassAttributes(this._element);return t={...pk,...e,...t},L(vn,t,fk),t}static getInstance(t){return D.getData(t,Er)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,typeof e=="object"?e:null)}static jQueryInterface(t){return this.each(function(){let e=D.getData(this,Er);const i=typeof t=="object"&&t;if(e||(e=new xr(this,i)),typeof t=="string"){if(typeof e[t]>"u")throw new TypeError(`No method named "${t}"`);e[t](this)}})}}const _k=s=>{const t=/^(0?[1-9]|1[012])(:[0-5]\d) [APap][mM]$/,e=/^([0-9]|0[0-9]|1[0-9]|2[0-3]):[0-5][0-9](:[0-5][0-9])?$/;return s.match(t)||s.match(e)},gk=s=>s&&Object.prototype.toString.call(s)==="[object Date]"&&!isNaN(s),mk=s=>s.getMonth(),bk=s=>s.getFullYear(),vk=s=>s.match(/[^(dmy)]{1,}/g),yk=(s,t,e,i)=>{let n;e[0]!==e[1]?n=e[0]+e[1]:n=e[0];const o=new RegExp(`[${n}]`),r=s.split(o),a=t.split(o),l=t.indexOf("mmm")!==-1,c=[];for(let b=0;bt.findIndex(e=>e===s),Ek=(s,t,e)=>` + + +`,xk=(s,t)=>` + +`,Cr="datetimepicker",yn=`te.${Cr}`,Ql=`.${yn}`,$p="data-te-datepicker-init",Pp="data-te-timepicker-init",Ck="data-te-datepicker-header",Ak="data-te-datepicker-cancel-button-ref",wk="data-te-datepicker-ok-button-ref",Jl="data-te-timepicker-wrapper",Rp="data-te-timepicker-cancel",kk="data-te-timepicker-submit",Sk="data-te-timepicker-clear",Np="data-te-buttons-timepicker",Ok="data-te-date-timepicker-toggle-ref",Dk="data-te-datepicker-toggle-button-ref",Ik="data-te-timepicker-toggle-button-ref",Mk=`[${Pp}]`,Lk=`[${$p}]`,$k=`[${Ok}]`,Pk=`[${Ik}]`,Rk="[data-te-input-notch-ref]",Nk="[data-te-date-timepicker-toggle-ref]",Bk="[data-te-timepicker-elements-wrapper]",Hk="[data-te-timepicker-clock-wrapper]",Vk=`open${Ql}`,Fk=`close${Ql}`,Wk=`datetimeChange${Ql}`,Bp="close.te.datepicker",Hp="input.te.timepicker",bs=$("div"),Vp={inline:!1,toggleButton:!0,container:"body",disabled:!1,disablePast:!1,disableFuture:!1,defaultTime:"",defaultDate:"",timepicker:{},datepicker:{},showFormat:!1,dateTimepickerToggleIconTemplate:` + + `,datepickerToggleIconTemplate:` + + `,timepickerToggleIconTemplate:` + + `},zk={inline:"boolean",toggleButton:"boolean",container:"string",disabled:"boolean",disablePast:"boolean",disableFuture:"boolean",defaultTime:"(string|date|number)",defaultDate:"(string|date|number)",timepicker:"object",datepicker:"object",showFormat:"boolean",dateTimepickerToggleIconTemplate:"string",datepickerToggleIconTemplate:"string",timepickerToggleIconTemplate:"string"},jk={toggleButton:"flex items-center justify-content-center [&>svg]:w-5 [&>svg]:h-5 absolute outline-none border-none bg-transparent right-0.5 top-1/2 -translate-x-1/2 -translate-y-1/2 hover:text-primary focus:text-primary dark:hover:text-primary-400 dark:focus:text-primary-400 dark:text-neutral-200",pickerIcon:"[&>svg]:w-6 [&>svg]:h-6 [&>svg]:mx-auto [&>svg]:pointer-events-none w-1/2 px-1.5 py-[1px] rounded-[10px] min-h-[40px] cursor-pointer outline-none border-none text-white hover:bg-primary-600 dark:hover:bg-neutral-600",buttonsContainer:"flex justify-evenly items-end bg-primary dark:bg-zinc-800 dark:data-[te-buttons-timepicker]:bg-zinc-700",timepicker:{},datepicker:{}},Yk={toggleButton:"string",pickerIcon:"string",buttonsContainer:"string",timepicker:"object",datepicker:"object"};class Ar{constructor(t,e,i){this._element=t,this._input=m.findOne("input",this._element),this._options=this._getConfig(e),this._classes=this._getClasses(i),this._timepicker=null,this._datepicker=null,this._dateValue=this._options.defaultDate?this._options.defaultDate:"",this._timeValue=this._options.defaultTime?this._options.defaultTime:"",this._isInvalidTimeFormat=!1,this._format=this._options.datepicker.format?this._options.datepicker.format:"dd/mm/yyyy",this._cancel=!1,this._scrollBar=new Xi,this._element&&D.setData(t,yn,this),this._init()}static get NAME(){return Cr}get toggleButton(){return m.findOne($k,this._element)}get notch(){return m.findOne(Rk,this._element)}dispose(){_.off(this._element,"click",this._openDatePicker),_.off(this._input,"input",this._handleInput),_.off(this._element,"click"),D.removeData(this._element,yn),this._removeTimePicker(),this._removeDatepicker(),this.toggleButton.remove(),this._options=Vp,this._timepicker=null,this._datepicker=null,this._dateValue=null,this._timeValue=null,this._isInvalidTimeFormat=null}update(t={}){const e=this._getConfig({...this._options,...t});this.dispose(),this._options=e,this._init()}_init(){this._addDatepicker(),this._addTimePicker(),this._appendToggleButton(),this._listenToToggleClick(),this._listenToUserInput(),this._disableInput(),this._setInitialDefaultInput(),this._applyFormatPlaceholder(),this._options.disablePast&&this._handleTimepickerDisablePast(),this._options.disableFuture&&this._handleTimepickerDisableFuture()}_removeDatepicker(){const t=this._element.querySelector(Lk);t&&t.remove()}_addDatepicker(){const t=$("div");t.id=this._element.id?`datepicker-${this._element.id}`:Et("datepicker-");const e='i.height-s/2?"bottom":"center"}function EO(i,t,e,s){const{x:n,width:o}=s,r=e.caretSize+e.caretPadding;if(i==="left"&&n+o+r>t.width||i==="right"&&n-o-r<0)return!0}function CO(i,t,e,s){const{x:n,width:o}=e,{width:r,chartArea:{left:a,right:l}}=i;let c="center";return s==="center"?c=n<=(a+l)/2?"left":"right":n<=o/2?c="left":n>=r-o/2&&(c="right"),EO(c,i,t,e)&&(c="center"),c}function Zf(i,t,e){const s=e.yAlign||t.yAlign||TO(i,e);return{xAlign:e.xAlign||t.xAlign||CO(i,t,e,s),yAlign:s}}function AO(i,t){let{x:e,width:s}=i;return t==="right"?e-=s:t==="center"&&(e-=s/2),e}function wO(i,t,e){let{y:s,height:n}=i;return t==="top"?s+=e:t==="bottom"?s-=n+e:s-=n/2,s}function Qf(i,t,e,s){const{caretSize:n,caretPadding:o,cornerRadius:r}=i,{xAlign:a,yAlign:l}=e,c=n+o,{topLeft:h,topRight:d,bottomLeft:u,bottomRight:p}=Oi(r);let f=AO(t,a);const b=wO(t,l,c);return l==="center"?a==="left"?f+=c:a==="right"&&(f-=c):a==="left"?f-=Math.max(h,u)+n:a==="right"&&(f+=Math.max(d,p)+n),{x:ct(f,0,s.width-t.width),y:ct(b,0,s.height-t.height)}}function Tr(i,t,e){const s=ht(e.padding);return t==="center"?i.x+i.width/2:t==="right"?i.x+i.width-s.right:i.x+s.left}function Jf(i){return Ee([],Le(i))}function kO(i,t,e){return ei(i,{tooltip:t,tooltipItems:e,type:"tooltip"})}function t_(i,t){const e=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return e?i.override(e):i}class Ql extends jt{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart||t._chart,this._chart=this.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const e=this.chart,s=this.options.setContext(this.getContext()),n=s.enabled&&e.options.animation&&s.animations,o=new Ml(this.chart,n);return n._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=kO(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,e){const{callbacks:s}=e,n=s.beforeTitle.apply(this,[t]),o=s.title.apply(this,[t]),r=s.afterTitle.apply(this,[t]);let a=[];return a=Ee(a,Le(n)),a=Ee(a,Le(o)),a=Ee(a,Le(r)),a}getBeforeBody(t,e){return Jf(e.callbacks.beforeBody.apply(this,[t]))}getBody(t,e){const{callbacks:s}=e,n=[];return U(t,o=>{const r={before:[],lines:[],after:[]},a=t_(s,o);Ee(r.before,Le(a.beforeLabel.call(this,o))),Ee(r.lines,a.label.call(this,o)),Ee(r.after,Le(a.afterLabel.call(this,o))),n.push(r)}),n}getAfterBody(t,e){return Jf(e.callbacks.afterBody.apply(this,[t]))}getFooter(t,e){const{callbacks:s}=e,n=s.beforeFooter.apply(this,[t]),o=s.footer.apply(this,[t]),r=s.afterFooter.apply(this,[t]);let a=[];return a=Ee(a,Le(n)),a=Ee(a,Le(o)),a=Ee(a,Le(r)),a}_createItems(t){const e=this._active,s=this.chart.data,n=[],o=[],r=[];let a=[],l,c;for(l=0,c=e.length;lt.filter(h,d,u,s))),t.itemSort&&(a=a.sort((h,d)=>t.itemSort(h,d,s))),U(a,h=>{const d=t_(t.callbacks,h);n.push(d.labelColor.call(this,h)),o.push(d.labelPointStyle.call(this,h)),r.push(d.labelTextColor.call(this,h))}),this.labelColors=n,this.labelPointStyles=o,this.labelTextColors=r,this.dataPoints=a,a}update(t,e){const s=this.options.setContext(this.getContext()),n=this._active;let o,r=[];if(!n.length)this.opacity!==0&&(o={opacity:0});else{const a=Rn[s.position].call(this,n,this._eventPosition);r=this._createItems(s),this.title=this.getTitle(r,s),this.beforeBody=this.getBeforeBody(r,s),this.body=this.getBody(r,s),this.afterBody=this.getAfterBody(r,s),this.footer=this.getFooter(r,s);const l=this._size=qf(this,s),c=Object.assign({},a,l),h=Zf(this.chart,s,c),d=Qf(s,c,h,this.chart);this.xAlign=h.xAlign,this.yAlign=h.yAlign,o={opacity:1,x:d.x,y:d.y,width:l.width,height:l.height,caretX:a.x,caretY:a.y}}this._tooltipItems=r,this.$context=void 0,o&&this._resolveAnimations().update(this,o),t&&s.external&&s.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,s,n){const o=this.getCaretPosition(t,s,n);e.lineTo(o.x1,o.y1),e.lineTo(o.x2,o.y2),e.lineTo(o.x3,o.y3)}getCaretPosition(t,e,s){const{xAlign:n,yAlign:o}=this,{caretSize:r,cornerRadius:a}=s,{topLeft:l,topRight:c,bottomLeft:h,bottomRight:d}=Oi(a),{x:u,y:p}=t,{width:f,height:b}=e;let v,y,x,E,T,C;return o==="center"?(T=p+b/2,n==="left"?(v=u,y=v-r,E=T+r,C=T-r):(v=u+f,y=v+r,E=T-r,C=T+r),x=v):(n==="left"?y=u+Math.max(l,h)+r:n==="right"?y=u+f-Math.max(c,d)-r:y=this.caretX,o==="top"?(E=p,T=E-r,v=y-r,x=y+r):(E=p+b,T=E+r,v=y+r,x=y-r),C=E),{x1:v,x2:y,x3:x,y1:E,y2:T,y3:C}}drawTitle(t,e,s){const n=this.title,o=n.length;let r,a,l;if(o){const c=vs(s.rtl,this.x,this.width);for(t.x=Tr(this,s.titleAlign,s),e.textAlign=c.textAlign(s.titleAlign),e.textBaseline="middle",r=lt(s.titleFont),a=s.titleSpacing,e.fillStyle=s.titleColor,e.font=r.string,l=0;lE!==0)?(t.beginPath(),t.fillStyle=o.multiKeyBackground,bn(t,{x:v,y:b,w:c,h:l,radius:x}),t.fill(),t.stroke(),t.fillStyle=r.backgroundColor,t.beginPath(),bn(t,{x:y,y:b+1,w:c-2,h:l-2,radius:x}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(v,b,c,l),t.strokeRect(v,b,c,l),t.fillStyle=r.backgroundColor,t.fillRect(y,b+1,c-2,l-2))}t.fillStyle=this.labelTextColors[s]}drawBody(t,e,s){const{body:n}=this,{bodySpacing:o,bodyAlign:r,displayColors:a,boxHeight:l,boxWidth:c,boxPadding:h}=s,d=lt(s.bodyFont);let u=d.lineHeight,p=0;const f=vs(s.rtl,this.x,this.width),b=function(S){e.fillText(S,f.x(t.x+p),t.y+u/2),t.y+=u+o},v=f.textAlign(r);let y,x,E,T,C,A,w;for(e.textAlign=r,e.textBaseline="middle",e.font=d.string,t.x=Tr(this,v,s),e.fillStyle=s.bodyColor,U(this.beforeBody,b),p=a&&v!=="right"?r==="center"?c/2+h:c+2+h:0,T=0,A=n.length;T0&&e.stroke()}_updateAnimationTarget(t){const e=this.chart,s=this.$animations,n=s&&s.x,o=s&&s.y;if(n||o){const r=Rn[t.position].call(this,this._active,this._eventPosition);if(!r)return;const a=this._size=qf(this,t),l=Object.assign({},r,this._size),c=Zf(e,t,l),h=Qf(t,l,c,e);(n._to!==h.x||o._to!==h.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=a.width,this.height=a.height,this.caretX=r.x,this.caretY=r.y,this._resolveAnimations().update(this,h))}}_willRender(){return!!this.opacity}draw(t){const e=this.options.setContext(this.getContext());let s=this.opacity;if(!s)return;this._updateAnimationTarget(e);const n={width:this.width,height:this.height},o={x:this.x,y:this.y};s=Math.abs(s)<.001?0:s;const r=ht(e.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;e.enabled&&a&&(t.save(),t.globalAlpha=s,this.drawBackground(o,t,n,e),Op(t,e.textDirection),o.y+=r.top,this.drawTitle(o,t,e),this.drawBody(o,t,e),this.drawFooter(o,t,e),Dp(t,e.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){const s=this._active,n=t.map(({datasetIndex:a,index:l})=>{const c=this.chart.getDatasetMeta(a);if(!c)throw new Error("Cannot find a dataset at index "+a);return{datasetIndex:a,element:c.data[l],index:l}}),o=!Jo(s,n),r=this._positionChanged(n,e);(o||r)&&(this._active=n,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e,s=!0){if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const n=this.options,o=this._active||[],r=this._getActiveElements(t,o,e,s),a=this._positionChanged(r,t),l=e||!Jo(r,o)||a;return l&&(this._active=r,(n.enabled||n.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),l}_getActiveElements(t,e,s,n){const o=this.options;if(t.type==="mouseout")return[];if(!n)return e;const r=this.chart.getElementsAtEventForMode(t,o.mode,o,s);return o.reverse&&r.reverse(),r}_positionChanged(t,e){const{caretX:s,caretY:n,options:o}=this,r=Rn[o.position].call(this,t,e);return r!==!1&&(s!==r.x||n!==r.y)}}Ql.positioners=Rn;var e_={id:"tooltip",_element:Ql,positioners:Rn,afterInit(i,t,e){e&&(i.tooltip=new Ql({chart:i,options:e}))},beforeUpdate(i,t,e){i.tooltip&&i.tooltip.initialize(e)},reset(i,t,e){i.tooltip&&i.tooltip.initialize(e)},afterDraw(i){const t=i.tooltip;if(t&&t._willRender()){const e={tooltip:t};if(i.notifyPlugins("beforeTooltipDraw",e)===!1)return;t.draw(i.ctx),i.notifyPlugins("afterTooltipDraw",e)}},afterEvent(i,t){if(i.tooltip){const e=t.replay;i.tooltip.handleEvent(t.event,e,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(i,t)=>t.bodyFont.size,boxWidth:(i,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:{beforeTitle:Se,title(i){if(i.length>0){const t=i[0],e=t.chart.data.labels,s=e?e.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(s>0&&t.dataIndexi!=="filter"&&i!=="itemSort"&&i!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},i_=Object.freeze({__proto__:null,Decimation:Pf,Filler:Yf,Legend:Uf,SubTitle:Gf,Title:Xf,Tooltip:e_});const SO=(i,t,e,s)=>(typeof t=="string"?(e=i.push(t)-1,s.unshift({index:e,label:t})):isNaN(t)&&(e=null),e);function OO(i,t,e,s){const n=i.indexOf(t);if(n===-1)return SO(i,t,e,s);const o=i.lastIndexOf(t);return n!==o?e:n}const DO=(i,t)=>i===null?null:ct(Math.round(i),0,t);class Pn extends ii{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const e=this._addedLabels;if(e.length){const s=this.getLabels();for(const{index:n,label:o}of e)s[n]===o&&s.splice(n,1);this._addedLabels=[]}super.init(t)}parse(t,e){if(H(t))return null;const s=this.getLabels();return e=isFinite(e)&&s[e]===t?e:OO(s,t,N(e,t),this._addedLabels),DO(e,s.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let{min:s,max:n}=this.getMinMax(!0);this.options.bounds==="ticks"&&(t||(s=0),e||(n=this.getLabels().length-1)),this.min=s,this.max=n}buildTicks(){const t=this.min,e=this.max,s=this.options.offset,n=[];let o=this.getLabels();o=t===0&&e===o.length-1?o:o.slice(t,e+1),this._valueRange=Math.max(o.length-(s?0:1),1),this._startValue=this.min-(s?.5:0);for(let r=t;r<=e;r++)n.push({value:r});return n}getLabelForValue(t){const e=this.getLabels();return t>=0&&te.length-1?null:this.getPixelForValue(e[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}Pn.id="category",Pn.defaults={ticks:{callback:Pn.prototype.getLabelForValue}};function IO(i,t){const e=[],{bounds:n,step:o,min:r,max:a,precision:l,count:c,maxTicks:h,maxDigits:d,includeBounds:u}=i,p=o||1,f=h-1,{min:b,max:v}=t,y=!H(r),x=!H(a),E=!H(c),T=(v-b)/(d+1);let C=ju((v-b)/f/p)*p,A,w,S,k;if(C<1e-14&&!y&&!x)return[{value:b},{value:v}];k=Math.ceil(v/C)-Math.floor(b/C),k>f&&(C=ju(k*C/f/p)*p),H(l)||(A=Math.pow(10,l),C=Math.ceil(C*A)/A),n==="ticks"?(w=Math.floor(b/C)*C,S=Math.ceil(v/C)*C):(w=b,S=v),y&&x&&o&&MA((a-r)/o,C/1e3)?(k=Math.round(Math.min((a-r)/C,h)),C=(a-r)/k,w=r,S=a):E?(w=y?r:w,S=x?a:S,k=c-1,C=(S-w)/k):(k=(S-w)/C,dn(k,Math.round(k),C/1e3)?k=Math.round(k):k=Math.ceil(k));const D=Math.max(Uu(C),Uu(w));A=Math.pow(10,H(l)?D:l),w=Math.round(w*A)/A,S=Math.round(S*A)/A;let O=0;for(y&&(u&&w!==r?(e.push({value:r}),wn=e?n:l,a=l=>o=s?o:l;if(t){const l=xe(n),c=xe(o);l<0&&c<0?a(0):l>0&&c>0&&r(0)}if(n===o){let l=1;(o>=Number.MAX_SAFE_INTEGER||n<=Number.MIN_SAFE_INTEGER)&&(l=Math.abs(o*.05)),a(o+l),t||r(n-l)}this.min=n,this.max=o}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:e,stepSize:s}=t,n;return s?(n=Math.ceil(this.max/s)-Math.floor(this.min/s)+1,n>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${s} would result generating up to ${n} ticks. Limiting to 1000.`),n=1e3)):(n=this.computeTickLimit(),e=e||11),e&&(n=Math.min(e,n)),n}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,e=t.ticks;let s=this.getTickLimit();s=Math.max(2,s);const n={maxTicks:s,bounds:t.bounds,min:t.min,max:t.max,precision:e.precision,step:e.stepSize,count:e.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:e.minRotation||0,includeBounds:e.includeBounds!==!1},o=this._range||this,r=IO(n,o);return t.bounds==="ticks"&&Ku(r,this,"value"),t.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}configure(){const t=this.ticks;let e=this.min,s=this.max;if(super.configure(),this.options.offset&&t.length){const n=(s-e)/Math.max(t.length-1,1)/2;e-=n,s+=n}this._startValue=e,this._endValue=s,this._valueRange=s-e}getLabelForValue(t){return vn(t,this.chart.options.locale,this.options.ticks.format)}}class Cr extends Er{determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=rt(t)?t:0,this.max=rt(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),e=t?this.width:this.height,s=ee(this.options.ticks.minRotation),n=(t?Math.sin(s):Math.cos(s))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,o.lineHeight/n))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}Cr.id="linear",Cr.defaults={ticks:{callback:wn.formatters.numeric}};function n_(i){return i/Math.pow(10,Math.floor(Vt(i)))===1}function MO(i,t){const e=Math.floor(Vt(t.max)),s=Math.ceil(t.max/Math.pow(10,e)),n=[];let o=Ft(i.min,Math.pow(10,Math.floor(Vt(t.min)))),r=Math.floor(Vt(o)),a=Math.floor(o/Math.pow(10,r)),l=r<0?Math.pow(10,Math.abs(r)):1;do n.push({value:o,major:n_(o)}),++a,a===10&&(a=1,++r,l=r>=0?1:l),o=Math.round(a*Math.pow(10,r)*l)/l;while(r0?s:null}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=rt(t)?Math.max(0,t):null,this.max=rt(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let s=this.min,n=this.max;const o=l=>s=t?s:l,r=l=>n=e?n:l,a=(l,c)=>Math.pow(10,Math.floor(Vt(l))+c);s===n&&(s<=0?(o(1),r(10)):(o(a(s,-1)),r(a(n,1)))),s<=0&&o(a(n,-1)),n<=0&&r(a(s,1)),this._zero&&this.min!==this._suggestedMin&&s===a(this.min,0)&&o(a(s,-1)),this.min=s,this.max=n}buildTicks(){const t=this.options,e={min:this._userMin,max:this._userMax},s=MO(e,this);return t.bounds==="ticks"&&Ku(s,this,"value"),t.reverse?(s.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),s}getLabelForValue(t){return t===void 0?"0":vn(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=Vt(t),this._valueRange=Vt(this.max)-Vt(t)}getPixelForValue(t){return(t===void 0||t===0)&&(t=this.min),t===null||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(Vt(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const e=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+e*this._valueRange)}}Ar.id="logarithmic",Ar.defaults={ticks:{callback:wn.formatters.logarithmic,major:{enabled:!0}}};function Jl(i){const t=i.ticks;if(t.display&&i.display){const e=ht(t.backdropPadding);return N(t.font&&t.font.size,W.font.size)+e.height}return 0}function LO(i,t,e){return e=Q(e)?e:[e],{w:hw(i,t.string,e),h:e.length*t.lineHeight}}function o_(i,t,e,s,n){return i===s||i===n?{start:t-e/2,end:t+e/2}:in?{start:t-e,end:t}:{start:t,end:t+e}}function $O(i){const t={l:i.left+i._padding.left,r:i.right-i._padding.right,t:i.top+i._padding.top,b:i.bottom-i._padding.bottom},e=Object.assign({},t),s=[],n=[],o=i._pointLabels.length,r=i.options.pointLabels,a=r.centerPointLabels?et/o:0;for(let l=0;lt.r&&(a=(s.end-t.r)/o,i.r=Math.max(i.r,t.r+a)),n.startt.b&&(l=(n.end-t.b)/r,i.b=Math.max(i.b,t.b+l))}function PO(i,t,e){const s=[],n=i._pointLabels.length,o=i.options,r=Jl(o)/2,a=i.drawingArea,l=o.pointLabels.centerPointLabels?et/n:0;for(let c=0;c270||e<90)&&(i-=t),i}function FO(i,t){const{ctx:e,options:{pointLabels:s}}=i;for(let n=t-1;n>=0;n--){const o=s.setContext(i.getPointLabelContext(n)),r=lt(o.font),{x:a,y:l,textAlign:c,left:h,top:d,right:u,bottom:p}=i._pointLabelItems[n],{backdropColor:f}=o;if(!H(f)){const b=Oi(o.borderRadius),v=ht(o.backdropPadding);e.fillStyle=f;const y=h-v.left,x=d-v.top,E=u-h+v.width,T=p-d+v.height;Object.values(b).some(C=>C!==0)?(e.beginPath(),bn(e,{x:y,y:x,w:E,h:T,radius:b}),e.fill()):e.fillRect(y,x,E,T)}Si(e,i._pointLabels[n],a,l+r.lineHeight/2,r,{color:o.color,textAlign:c,textBaseline:"middle"})}}function r_(i,t,e,s){const{ctx:n}=i;if(e)n.arc(i.xCenter,i.yCenter,t,0,q);else{let o=i.getPointPosition(0,t);n.moveTo(o.x,o.y);for(let r=1;r{const n=G(this.options.pointLabels.callback,[e,s],this);return n||n===0?n:""}).filter((e,s)=>this.chart.getDataVisibility(s))}fit(){const t=this.options;t.display&&t.pointLabels.display?$O(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,e,s,n){this.xCenter+=Math.floor((t-e)/2),this.yCenter+=Math.floor((s-n)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,e,s,n))}getIndexAngle(t){const e=q/(this._pointLabels.length||1),s=this.options.startAngle||0;return Nt(t*e+ee(s))}getDistanceFromCenterForValue(t){if(H(t))return NaN;const e=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*e:(t-this.min)*e}getValueForDistanceFromCenter(t){if(H(t))return NaN;const e=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-e:this.min+e}getPointLabelContext(t){const e=this._pointLabels||[];if(t>=0&&t{if(h!==0){a=this.getDistanceFromCenterForValue(c.value);const d=n.setContext(this.getContext(h-1));WO(this,d,a,o)}}),s.display){for(t.save(),r=o-1;r>=0;r--){const c=s.setContext(this.getPointLabelContext(r)),{color:h,lineWidth:d}=c;!d||!h||(t.lineWidth=d,t.strokeStyle=h,t.setLineDash(c.borderDash),t.lineDashOffset=c.borderDashOffset,a=this.getDistanceFromCenterForValue(e.ticks.reverse?this.min:this.max),l=this.getPointPosition(r,a),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(l.x,l.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,e=this.options,s=e.ticks;if(!s.display)return;const n=this.getIndexAngle(0);let o,r;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(n),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((a,l)=>{if(l===0&&!e.reverse)return;const c=s.setContext(this.getContext(l)),h=lt(c.font);if(o=this.getDistanceFromCenterForValue(this.ticks[l].value),c.showLabelBackdrop){t.font=h.string,r=t.measureText(a.label).width,t.fillStyle=c.backdropColor;const d=ht(c.backdropPadding);t.fillRect(-r/2-d.left,-o-h.size/2-d.top,r+d.width,h.size+d.height)}Si(t,a.label,0,-o,h,{color:c.color})}),t.restore()}drawTitle(){}}Cs.id="radialLinear",Cs.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:wn.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(i){return i},padding:5,centerPointLabels:!1}},Cs.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"},Cs.descriptors={angleLines:{_fallback:"grid"}};const wr={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},kt=Object.keys(wr);function zO(i,t){return i-t}function a_(i,t){if(H(t))return null;const e=i._adapter,{parser:s,round:n,isoWeekday:o}=i._parseOpts;let r=t;return typeof s=="function"&&(r=s(r)),rt(r)||(r=typeof s=="string"?e.parse(r,s):e.parse(r)),r===null?null:(n&&(r=n==="week"&&(_s(o)||o===!0)?e.startOf(r,"isoWeek",o):e.startOf(r,n)),+r)}function l_(i,t,e,s){const n=kt.length;for(let o=kt.indexOf(i);o=kt.indexOf(e);o--){const r=kt[o];if(wr[r].common&&i._adapter.diff(n,s,r)>=t-1)return r}return kt[e?kt.indexOf(e):0]}function jO(i){for(let t=kt.indexOf(i)+1,e=kt.length;t=t?e[s]:e[n];i[o]=!0}}function KO(i,t,e,s){const n=i._adapter,o=+n.startOf(t[0].value,s),r=t[t.length-1].value;let a,l;for(a=o;a<=r;a=+n.add(a,1,s))l=e[a],l>=0&&(t[l].major=!0);return t}function h_(i,t,e){const s=[],n={},o=t.length;let r,a;for(r=0;r+t.value))}initOffsets(t){let e=0,s=0,n,o;this.options.offset&&t.length&&(n=this.getDecimalForValue(t[0]),t.length===1?e=1-n:e=(this.getDecimalForValue(t[1])-n)/2,o=this.getDecimalForValue(t[t.length-1]),t.length===1?s=o:s=(o-this.getDecimalForValue(t[t.length-2]))/2);const r=t.length<3?.5:.25;e=ct(e,0,r),s=ct(s,0,r),this._offsets={start:e,end:s,factor:1/(e+1+s)}}_generate(){const t=this._adapter,e=this.min,s=this.max,n=this.options,o=n.time,r=o.unit||l_(o.minUnit,e,s,this._getLabelCapacity(e)),a=N(o.stepSize,1),l=r==="week"?o.isoWeekday:!1,c=_s(l)||l===!0,h={};let d=e,u,p;if(c&&(d=+t.startOf(d,"isoWeek",l)),d=+t.startOf(d,c?"day":r),t.diff(s,e,r)>1e5*a)throw new Error(e+" and "+s+" are too far apart with stepSize of "+a+" "+r);const f=n.ticks.source==="data"&&this.getDataTimestamps();for(u=d,p=0;ub-v).map(b=>+b)}getLabelForValue(t){const e=this._adapter,s=this.options.time;return s.tooltipFormat?e.format(t,s.tooltipFormat):e.format(t,s.displayFormats.datetime)}_tickFormatFunction(t,e,s,n){const o=this.options,r=o.time.displayFormats,a=this._unit,l=this._majorUnit,c=a&&r[a],h=l&&r[l],d=s[e],u=l&&h&&d&&d.major,p=this._adapter.format(t,n||(u?h:c)),f=o.ticks.callback;return f?G(f,[p,e,s],this):p}generateTickLabels(t){let e,s,n;for(e=0,s=t.length;e0?a:1}getDataTimestamps(){let t=this._cache.data||[],e,s;if(t.length)return t;const n=this.getMatchingVisibleMetas();if(this._normalized&&n.length)return this._cache.data=n[0].controller.getAllParsedValues(this);for(e=0,s=n.length;e=i[s].pos&&t<=i[n].pos&&({lo:s,hi:n}=De(i,"pos",t)),{pos:o,time:a}=i[s],{pos:r,time:l}=i[n]):(t>=i[s].time&&t<=i[n].time&&({lo:s,hi:n}=De(i,"time",t)),{time:o,pos:a}=i[s],{time:r,pos:l}=i[n]);const c=r-o;return c?a+(l-a)*(t-o)/c:a}class Sr extends As{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(t);this._minPos=kr(e,this.min),this._tableRange=kr(e,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:e,max:s}=this,n=[],o=[];let r,a,l,c,h;for(r=0,a=t.length;r=e&&c<=s&&n.push(c);if(n.length<2)return[{time:e,pos:0},{time:s,pos:1}];for(r=0,a=n.length;ra({chart:t,initial:e.initial,numSteps:r,currentStep:Math.min(i-e.start,r)}))}_refresh(){this._request||(this._running=!0,this._request=sf.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let e=0;this._charts.forEach((i,n)=>{if(!i.running||!i.items.length)return;const o=i.items;let r=o.length-1,a=!1,l;for(;r>=0;--r)l=o[r],l._active?(l._total>i.duration&&(i.duration=l._total),l.tick(t),a=!0):(o[r]=o[o.length-1],o.pop());a&&(n.draw(),this._notify(n,i,t,"progress")),o.length||(i.running=!1,this._notify(n,i,t,"complete"),i.initial=!1),e+=o.length}),this._lastDate=t,e===0&&(this._running=!1)}_getAnims(t){const e=this._charts;let i=e.get(t);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,i)),i}listen(t,e,i){this._getAnims(t).listeners[e].push(i)}add(t,e){!e||!e.length||this._getAnims(t).items.push(...e)}has(t){return this._getAnims(t).items.length>0}start(t){const e=this._charts.get(t);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce((i,n)=>Math.max(i,n._duration),0),this._refresh())}running(t){if(!this._running)return!1;const e=this._charts.get(t);return!(!e||!e.running||!e.items.length)}stop(t){const e=this._charts.get(t);if(!e||!e.items.length)return;const i=e.items;let n=i.length-1;for(;n>=0;--n)i[n].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var Ee=new iD;const Wf="transparent",sD={boolean(s,t,e){return e>.5?t:s},color(s,t,e){const i=bf(s||Wf),n=i.valid&&bf(t||Wf);return n&&n.valid?n.mix(i,e).hexString():t},number(s,t,e){return s+(t-s)*e}};class zf{constructor(t,e,i,n){const o=e[i];n=tt([t.to,n,o,t.from]);const r=tt([t.from,o,n]);this._active=!0,this._fn=t.fn||sD[t.type||typeof r],this._easing=Sn[t.easing]||Sn.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=i,this._from=r,this._to=n,this._promises=void 0}active(){return this._active}update(t,e,i){if(this._active){this._notify(!1);const n=this._target[this._prop],o=i-this._start,r=this._duration-o;this._start=i,this._duration=Math.floor(Math.max(r,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=tt([t.to,e,n,t.from]),this._from=tt([t.from,n,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,i=this._duration,n=this._prop,o=this._from,r=this._loop,a=this._to;let l;if(this._active=o!==a&&(r||e1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[n]=this._fn(o,a,l)}wait(){const t=this._promises||(this._promises=[]);return new Promise((e,i)=>{t.push({res:e,rej:i})})}_notify(t){const e=t?"res":"rej",i=this._promises||[];for(let n=0;ns!=="onProgress"&&s!=="onComplete"&&s!=="fn"}),F.set("animations",{colors:{type:"color",properties:oD},numbers:{type:"number",properties:nD}}),F.describe("animations",{_fallback:"animation"}),F.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:s=>s|0}}}});class Ec{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!V(t))return;const e=this._properties;Object.getOwnPropertyNames(t).forEach(i=>{const n=t[i];if(!V(n))return;const o={};for(const r of rD)o[r]=n[r];(Q(n.properties)&&n.properties||[i]).forEach(r=>{(r===i||!e.has(r))&&e.set(r,o)})})}_animateOptions(t,e){const i=e.options,n=lD(t,i);if(!n)return[];const o=this._createAnimations(n,i);return i.$shared&&aD(t.options.$animations,i).then(()=>{t.options=i},()=>{}),o}_createAnimations(t,e){const i=this._properties,n=[],o=t.$animations||(t.$animations={}),r=Object.keys(e),a=Date.now();let l;for(l=r.length-1;l>=0;--l){const c=r[l];if(c.charAt(0)==="$")continue;if(c==="options"){n.push(...this._animateOptions(t,e));continue}const h=e[c];let d=o[c];const u=i.get(c);if(d)if(u&&d.active()){d.update(u,h,a);continue}else d.cancel();if(!u||!u.duration){t[c]=h;continue}o[c]=d=new zf(u,t,c,h),n.push(d)}return n}update(t,e){if(this._properties.size===0){Object.assign(t,e);return}const i=this._createAnimations(t,e);if(i.length)return Ee.add(this._chart,i),!0}}function aD(s,t){const e=[],i=Object.keys(t);for(let n=0;n0||!e&&o<0)return n.index}return null}function Gf(s,t){const{chart:e,_cachedMeta:i}=s,n=e._stacks||(e._stacks={}),{iScale:o,vScale:r,index:a}=i,l=o.axis,c=r.axis,h=uD(o,r,i),d=t.length;let u;for(let p=0;pe[i].axis===t).shift()}function _D(s,t){return ii(s,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function gD(s,t,e){return ii(s,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:e,index:t,mode:"default",type:"data"})}function Pn(s,t){const e=s.controller.index,i=s.vScale&&s.vScale.axis;if(i){t=t||s._parsed;for(const n of t){const o=n._stacks;if(!o||o[i]===void 0||o[i][e]===void 0)return;delete o[i][e]}}}const Cc=s=>s==="reset"||s==="none",qf=(s,t)=>t?s:Object.assign({},s),mD=(s,t,e)=>s&&!t.hidden&&t._stacked&&{keys:Yf(e,!0),values:null};class Kt{constructor(t,e){this.chart=t,this._ctx=t.ctx,this.index=e,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=Uf(t.vScale,t),this.addElements()}updateIndex(t){this.index!==t&&Pn(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,e=this._cachedMeta,i=this.getDataset(),n=(d,u,p,f)=>d==="x"?u:d==="r"?f:p,o=e.xAxisID=B(i.xAxisID,xc(t,"x")),r=e.yAxisID=B(i.yAxisID,xc(t,"y")),a=e.rAxisID=B(i.rAxisID,xc(t,"r")),l=e.indexAxis,c=e.iAxisID=n(l,o,r,a),h=e.vAxisID=n(l,r,o,a);e.xScale=this.getScaleForId(o),e.yScale=this.getScaleForId(r),e.rScale=this.getScaleForId(a),e.iScale=this.getScaleForId(c),e.vScale=this.getScaleForId(h)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const e=this._cachedMeta;return t===e.iScale?e.vScale:e.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&tf(this._data,this),t._stacked&&Pn(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),i=this._data;if(V(e))this._data=dD(e);else if(i!==e){if(i){tf(i,this);const n=this._cachedMeta;Pn(n),n._parsed=[]}e&&Object.isExtensible(e)&&HS(e,this),this._syncList=[],this._data=e}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const e=this._cachedMeta,i=this.getDataset();let n=!1;this._dataCheck();const o=e._stacked;e._stacked=Uf(e.vScale,e),e.stack!==i.stack&&(n=!0,Pn(e),e.stack=i.stack),this._resyncElements(t),(n||o!==e._stacked)&&Gf(this,e._parsed)}configure(){const t=this.chart.config,e=t.datasetScopeKeys(this._type),i=t.getOptionScopes(this.getDataset(),e,!0);this.options=t.createResolver(i,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,e){const{_cachedMeta:i,_data:n}=this,{iScale:o,_stacked:r}=i,a=o.axis;let l=t===0&&e===n.length?!0:i._sorted,c=t>0&&i._parsed[t-1],h,d,u;if(this._parsing===!1)i._parsed=n,i._sorted=!0,u=n;else{Q(n[t])?u=this.parseArrayData(i,n,t,e):V(n[t])?u=this.parseObjectData(i,n,t,e):u=this.parsePrimitiveData(i,n,t,e);const p=()=>d[a]===null||c&&d[a]b||d=0;--u)if(!f()){this.updateRangeFromParsed(c,t,p,l);break}}return c}getAllParsedValues(t){const e=this._cachedMeta._parsed,i=[];let n,o,r;for(n=0,o=e.length;n=0&&tthis.getContext(i,n),b=c.resolveNamedOptions(u,p,f,d);return b.$shared&&(b.$shared=l,o[r]=Object.freeze(qf(b,l))),b}_resolveAnimations(t,e,i){const n=this.chart,o=this._cachedDataOpts,r=`animation-${e}`,a=o[r];if(a)return a;let l;if(n.options.animation!==!1){const h=this.chart.config,d=h.datasetAnimationScopeKeys(this._type,e),u=h.getOptionScopes(this.getDataset(),d);l=h.createResolver(u,this.getContext(t,i,e))}const c=new Ec(n,l&&l.animations);return l&&l._cacheable&&(o[r]=Object.freeze(c)),c}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||Cc(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){const i=this.resolveDataElementOptions(t,e),n=this._sharedOptions,o=this.getSharedOptions(i),r=this.includeOptions(e,o)||o!==n;return this.updateSharedOptions(o,e,i),{sharedOptions:o,includeOptions:r}}updateElement(t,e,i,n){Cc(n)?Object.assign(t,i):this._resolveAnimations(e,n).update(t,i)}updateSharedOptions(t,e,i){t&&!Cc(e)&&this._resolveAnimations(void 0,e).update(t,i)}_setStyle(t,e,i,n){t.active=n;const o=this.getStyle(e,n);this._resolveAnimations(e,i,n).update(t,{options:!n&&this.getSharedOptions(o)||o})}removeHoverStyle(t,e,i){this._setStyle(t,i,"active",!1)}setHoverStyle(t,e,i){this._setStyle(t,i,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const e=this._data,i=this._cachedMeta.data;for(const[a,l,c]of this._syncList)this[a](l,c);this._syncList=[];const n=i.length,o=e.length,r=Math.min(o,n);r&&this.parse(0,r),o>n?this._insertElements(n,o-n,t):o{for(c.length+=e,a=c.length-1;a>=r;a--)c[a]=c[a-e]};for(l(o),a=t;an-o))}return s._cache.$bar}function vD(s){const t=s.iScale,e=bD(t,s.type);let i=t._length,n,o,r,a;const l=()=>{r===32767||r===-32768||(zt(a)&&(i=Math.min(i,Math.abs(r-a)||i)),a=r)};for(n=0,o=e.length;n0?n[s-1]:null,a=sMath.abs(a)&&(l=a,c=r),t[e.axis]=c,t._custom={barStart:l,barEnd:c,start:n,end:o,min:r,max:a}}function Zf(s,t,e,i){return Q(s)?ED(s,t,e,i):t[e.axis]=e.parse(s,i),t}function Qf(s,t,e,i){const n=s.iScale,o=s.vScale,r=n.getLabels(),a=n===o,l=[];let c,h,d,u;for(c=e,h=e+i;c=e?1:-1)}function CD(s){let t,e,i,n,o;return s.horizontal?(t=s.base>s.x,e="left",i="right"):(t=s.basel.controller.options.grouped),o=i.options.stacked,r=[],a=l=>{const c=l.controller.getParsed(e),h=c&&c[l.vScale.axis];if(H(h)||isNaN(h))return!0};for(const l of n)if(!(e!==void 0&&a(l))&&((o===!1||r.indexOf(l.stack)===-1||o===void 0&&l.stack===void 0)&&r.push(l.stack),l.index===t))break;return r.length||r.push(void 0),r}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,e,i){const n=this._getStacks(t,i),o=e!==void 0?n.indexOf(e):-1;return o===-1?n.length-1:o}_getRuler(){const t=this.options,e=this._cachedMeta,i=e.iScale,n=[];let o,r;for(o=0,r=e.data.length;o=0;--i)e=Math.max(e,t[i].size(this.resolveDataElementOptions(i))/2);return e>0&&e}getLabelAndValue(t){const e=this._cachedMeta,{xScale:i,yScale:n}=e,o=this.getParsed(t),r=i.getLabelForValue(o.x),a=n.getLabelForValue(o.y),l=o._custom;return{label:e.label,value:"("+r+", "+a+(l?", "+l:"")+")"}}update(t){const e=this._cachedMeta.data;this.updateElements(e,0,e.length,t)}updateElements(t,e,i,n){const o=n==="reset",{iScale:r,vScale:a}=this._cachedMeta,{sharedOptions:l,includeOptions:c}=this._getSharedOptions(e,n),h=r.axis,d=a.axis;for(let u=e;ukn(x,a,l,!0)?1:Math.max(E,E*e,C,C*e),f=(x,E,C)=>kn(x,a,l,!0)?-1:Math.min(E,E*e,C,C*e),b=p(0,c,d),v=p(nt,h,u),y=f(et,c,d),T=f(et+nt,h,u);i=(b-y)/2,n=(v-T)/2,o=-(b+y)/2,r=-(v+T)/2}return{ratioX:i,ratioY:n,offsetX:o,offsetY:r}}class $i extends Kt{constructor(t,e){super(t,e),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,e){const i=this.getDataset().data,n=this._cachedMeta;if(this._parsing===!1)n._parsed=i;else{let o=l=>+i[l];if(V(i[t])){const{key:l="value"}=this._parsing;o=c=>+Qe(i[c],l)}let r,a;for(r=t,a=t+e;r0&&!isNaN(t)?q*(Math.abs(t)/e):0}getLabelAndValue(t){const e=this._cachedMeta,i=this.chart,n=i.data.labels||[],o=$n(e._parsed[t],i.options.locale);return{label:n[t]||"",value:o}}getMaxBorderWidth(t){let e=0;const i=this.chart;let n,o,r,a,l;if(!t){for(n=0,o=i.data.datasets.length;ns!=="spacing",_indexable:s=>s!=="spacing"},$i.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(s){const t=s.data;if(t.labels.length&&t.datasets.length){const{labels:{pointStyle:e}}=s.legend.options;return t.labels.map((i,n)=>{const r=s.getDatasetMeta(0).controller.getStyle(n);return{text:i,fillStyle:r.backgroundColor,strokeStyle:r.borderColor,lineWidth:r.borderWidth,pointStyle:e,hidden:!s.getDataVisibility(n),index:n}})}return[]}},onClick(s,t,e){e.chart.toggleDataVisibility(t.index),e.chart.update()}},tooltip:{callbacks:{title(){return""},label(s){let t=s.label;const e=": "+s.formattedValue;return Q(t)?(t=t.slice(),t[0]+=e):t+=e,t}}}}};class Bn extends Kt{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const e=this._cachedMeta,{dataset:i,data:n=[],_dataset:o}=e,r=this.chart._animationsDisabled;let{start:a,count:l}=of(e,n,r);this._drawStart=a,this._drawCount=l,rf(e)&&(a=0,l=n.length),i._chart=this.chart,i._datasetIndex=this.index,i._decimated=!!o._decimated,i.points=n;const c=this.resolveDatasetElementOptions(t);this.options.showLine||(c.borderWidth=0),c.segment=this.options.segment,this.updateElement(i,void 0,{animated:!r,options:c},t),this.updateElements(n,a,l,t)}updateElements(t,e,i,n){const o=n==="reset",{iScale:r,vScale:a,_stacked:l,_dataset:c}=this._cachedMeta,{sharedOptions:h,includeOptions:d}=this._getSharedOptions(e,n),u=r.axis,p=a.axis,{spanGaps:f,segment:b}=this.options,v=ys(f)?f:Number.POSITIVE_INFINITY,y=this.chart._animationsDisabled||o||n==="none";let T=e>0&&this.getParsed(e-1);for(let x=e;x0&&Math.abs(C[u]-T[u])>v,b&&(A.parsed=C,A.raw=c.data[x]),d&&(A.options=h||this.resolveDataElementOptions(x,E.active?"active":n)),y||this.updateElement(E,x,A,n),T=C}}getMaxOverflow(){const t=this._cachedMeta,e=t.dataset,i=e.options&&e.options.borderWidth||0,n=t.data||[];if(!n.length)return i;const o=n[0].size(this.resolveDataElementOptions(0)),r=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(i,o,r)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}Bn.id="line",Bn.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1},Bn.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};class Hn extends Kt{constructor(t,e){super(t,e),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const e=this._cachedMeta,i=this.chart,n=i.data.labels||[],o=$n(e._parsed[t].r,i.options.locale);return{label:n[t]||"",value:o}}parseObjectData(t,e,i,n){return Sf.bind(this)(t,e,i,n)}update(t){const e=this._cachedMeta.data;this._updateRadius(),this.updateElements(e,0,e.length,t)}getMinMax(){const t=this._cachedMeta,e={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach((i,n)=>{const o=this.getParsed(n).r;!isNaN(o)&&this.chart.getDataVisibility(n)&&(oe.max&&(e.max=o))}),e}_updateRadius(){const t=this.chart,e=t.chartArea,i=t.options,n=Math.min(e.right-e.left,e.bottom-e.top),o=Math.max(n/2,0),r=Math.max(i.cutoutPercentage?o/100*i.cutoutPercentage:1,0),a=(o-r)/t.getVisibleDatasetCount();this.outerRadius=o-a*this.index,this.innerRadius=this.outerRadius-a}updateElements(t,e,i,n){const o=n==="reset",r=this.chart,l=r.options.animation,c=this._cachedMeta.rScale,h=c.xCenter,d=c.yCenter,u=c.getIndexAngle(0)-.5*et;let p=u,f;const b=360/this.countVisibleElements();for(f=0;f{!isNaN(this.getParsed(n).r)&&this.chart.getDataVisibility(n)&&e++}),e}_computeAngle(t,e,i){return this.chart.getDataVisibility(t)?ie(this.resolveDataElementOptions(t,e).angle||i):0}}Hn.id="polarArea",Hn.defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0},Hn.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(s){const t=s.data;if(t.labels.length&&t.datasets.length){const{labels:{pointStyle:e}}=s.legend.options;return t.labels.map((i,n)=>{const r=s.getDatasetMeta(0).controller.getStyle(n);return{text:i,fillStyle:r.backgroundColor,strokeStyle:r.borderColor,lineWidth:r.borderWidth,pointStyle:e,hidden:!s.getDataVisibility(n),index:n}})}return[]}},onClick(s,t,e){e.chart.toggleDataVisibility(t.index),e.chart.update()}},tooltip:{callbacks:{title(){return""},label(s){return s.chart.data.labels[s.dataIndex]+": "+s.formattedValue}}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};class zr extends $i{}zr.id="pie",zr.defaults={cutout:0,rotation:0,circumference:360,radius:"100%"};class Vn extends Kt{getLabelAndValue(t){const e=this._cachedMeta.vScale,i=this.getParsed(t);return{label:e.getLabels()[t],value:""+e.getLabelForValue(i[e.axis])}}parseObjectData(t,e,i,n){return Sf.bind(this)(t,e,i,n)}update(t){const e=this._cachedMeta,i=e.dataset,n=e.data||[],o=e.iScale.getLabels();if(i.points=n,t!=="resize"){const r=this.resolveDatasetElementOptions(t);this.options.showLine||(r.borderWidth=0);const a={_loop:!0,_fullLoop:o.length===n.length,options:r};this.updateElement(i,void 0,a,t)}this.updateElements(n,0,n.length,t)}updateElements(t,e,i,n){const o=this._cachedMeta.rScale,r=n==="reset";for(let a=e;a{n[o]=i[o]&&i[o].active()?i[o]._to:this[o]}),n}};Ut.defaults={},Ut.defaultRoutes=void 0;const e_={values(s){return Q(s)?s:""+s},numeric(s,t,e){if(s===0)return"0";const i=this.chart.options.locale;let n,o=s;if(e.length>1){const c=Math.max(Math.abs(e[0].value),Math.abs(e[e.length-1].value));(c<1e-4||c>1e15)&&(n="scientific"),o=OD(s,e)}const r=jt(Math.abs(o)),a=Math.max(Math.min(-1*Math.floor(r),20),0),l={notation:n,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),$n(s,i,l)},logarithmic(s,t,e){if(s===0)return"0";const i=s/Math.pow(10,Math.floor(jt(s)));return i===1||i===2||i===5?e_.numeric.call(this,s,t,e):""}};function OD(s,t){let e=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(e)>=1&&s!==Math.floor(s)&&(e=s-Math.floor(s)),e}var Fn={formatters:e_};F.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(s,t)=>t.lineWidth,tickColor:(s,t)=>t.color,offset:!1,borderDash:[],borderDashOffset:0,borderWidth:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Fn.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),F.route("scale.ticks","color","","color"),F.route("scale.grid","color","","borderColor"),F.route("scale.grid","borderColor","","borderColor"),F.route("scale.title","color","","color"),F.describe("scale",{_fallback:!1,_scriptable:s=>!s.startsWith("before")&&!s.startsWith("after")&&s!=="callback"&&s!=="parser",_indexable:s=>s!=="borderDash"&&s!=="tickBorderDash"}),F.describe("scales",{_fallback:"scale"}),F.describe("scale.ticks",{_scriptable:s=>s!=="backdropPadding"&&s!=="callback",_indexable:s=>s!=="backdropPadding"});function DD(s,t){const e=s.options.ticks,i=e.maxTicksLimit||ID(s),n=e.major.enabled?LD(t):[],o=n.length,r=n[0],a=n[o-1],l=[];if(o>i)return $D(t,l,n,o/i),l;const c=MD(n,t,i);if(o>0){let h,d;const u=o>1?Math.round((a-r)/(o-1)):null;for(jr(t,l,c,H(u)?0:r-u,r),h=0,d=o-1;hn)return l}return Math.max(n,1)}function LD(s){const t=[];let e,i;for(e=0,i=s.length;es==="left"?"right":s==="right"?"left":s,i_=(s,t,e)=>t==="top"||t==="left"?s[t]+e:s[t]-e;function s_(s,t){const e=[],i=s.length/t,n=s.length;let o=0;for(;or+a)))return l}function BD(s,t){U(s,e=>{const i=e.gc,n=i.length/2;let o;if(n>t){for(o=0;oi?i:e,i=n&&e>i?e:i,{min:Wt(e,Wt(i,e)),max:Wt(i,Wt(e,i))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){G(this.options.beforeUpdate,[this])}update(t,e,i){const{beginAtZero:n,grace:o,ticks:r}=this.options,a=r.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=i=Object.assign({left:0,right:0,top:0,bottom:0},i),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+i.left+i.right:this.height+i.top+i.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=TO(this,o,n),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=a=o||i<=1||!this.isHorizontal()){this.labelRotation=n;return}const h=this._getLabelSizes(),d=h.widest.width,u=h.highest.height,p=ct(this.chart.width-d,0,this.maxWidth);a=t.offset?this.maxWidth/i:p/(i-1),d+6>a&&(a=p/(i-(t.offset?.5:1)),l=this.maxHeight-Wn(t.grid)-e.padding-n_(t.title,this.chart.options.font),c=Math.sqrt(d*d+u*u),r=sc(Math.min(Math.asin(ct((h.highest.height+6)/a,-1,1)),Math.asin(ct(l/c,-1,1))-Math.asin(ct(u/c,-1,1)))),r=Math.max(n,Math.min(o,r))),this.labelRotation=r}afterCalculateLabelRotation(){G(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){G(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:i,title:n,grid:o}}=this,r=this._isVisible(),a=this.isHorizontal();if(r){const l=n_(n,e.options.font);if(a?(t.width=this.maxWidth,t.height=Wn(o)+l):(t.height=this.maxHeight,t.width=Wn(o)+l),i.display&&this.ticks.length){const{first:c,last:h,widest:d,highest:u}=this._getLabelSizes(),p=i.padding*2,f=ie(this.labelRotation),b=Math.cos(f),v=Math.sin(f);if(a){const y=i.mirror?0:v*d.width+b*u.height;t.height=Math.min(this.maxHeight,t.height+y+p)}else{const y=i.mirror?0:b*d.width+v*u.height;t.width=Math.min(this.maxWidth,t.width+y+p)}this._calculatePadding(c,h,v,b)}}this._handleMargins(),a?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,e,i,n){const{ticks:{align:o,padding:r},position:a}=this.options,l=this.labelRotation!==0,c=a!=="top"&&this.axis==="x";if(this.isHorizontal()){const h=this.getPixelForTick(0)-this.left,d=this.right-this.getPixelForTick(this.ticks.length-1);let u=0,p=0;l?c?(u=n*t.width,p=i*e.height):(u=i*t.height,p=n*e.width):o==="start"?p=e.width:o==="end"?u=t.width:o!=="inner"&&(u=t.width/2,p=e.width/2),this.paddingLeft=Math.max((u-h+r)*this.width/(this.width-h),0),this.paddingRight=Math.max((p-d+r)*this.width/(this.width-d),0)}else{let h=e.height/2,d=t.height/2;o==="start"?(h=0,d=t.height):o==="end"&&(h=e.height,d=0),this.paddingTop=h+r,this.paddingBottom=d+r}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){G(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:e}=this.options;return e==="top"||e==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let e,i;for(e=0,i=t.length;e({width:o[w]||0,height:r[w]||0});return{first:A(0),last:A(e-1),widest:A(E),highest:A(C),widths:o,heights:r}}getLabelForValue(t){return t}getPixelForValue(t,e){return NaN}getValueForPixel(t){}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const e=this._startPixel+t*this._length;return RS(this._alignToPixels?Si(this.chart,e,0):e)}getDecimalForPixel(t){const e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:e}=this;return t<0&&e<0?e:t>0&&e>0?t:0}getContext(t){const e=this.ticks||[];if(t>=0&&ta*n?a/i:l/n:l*n0}_computeGridLineItems(t){const e=this.axis,i=this.chart,n=this.options,{grid:o,position:r}=n,a=o.offset,l=this.isHorizontal(),h=this.ticks.length+(a?1:0),d=Wn(o),u=[],p=o.setContext(this.getContext()),f=p.drawBorder?p.borderWidth:0,b=f/2,v=function(P){return Si(i,P,f)};let y,T,x,E,C,A,w,S,k,I,O,M;if(r==="top")y=v(this.bottom),A=this.bottom-d,S=y-b,I=v(t.top)+b,M=t.bottom;else if(r==="bottom")y=v(this.top),I=t.top,M=v(t.bottom)-b,A=y+b,S=this.top+d;else if(r==="left")y=v(this.right),C=this.right-d,w=y-b,k=v(t.left)+b,O=t.right;else if(r==="right")y=v(this.left),k=t.left,O=v(t.right)-b,C=y+b,w=this.left+d;else if(e==="x"){if(r==="center")y=v((t.top+t.bottom)/2+.5);else if(V(r)){const P=Object.keys(r)[0],z=r[P];y=v(this.chart.scales[P].getPixelForValue(z))}I=t.top,M=t.bottom,A=y+b,S=A+d}else if(e==="y"){if(r==="center")y=v((t.left+t.right)/2);else if(V(r)){const P=Object.keys(r)[0],z=r[P];y=v(this.chart.scales[P].getPixelForValue(z))}C=y-b,w=C-d,k=t.left,O=t.right}const R=B(n.ticks.maxTicksLimit,h),X=Math.max(1,Math.ceil(h/R));for(T=0;To.value===t);return n>=0?e.setContext(this.getContext(n)).lineWidth:0}drawGrid(t){const e=this.options.grid,i=this.ctx,n=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let o,r;const a=(l,c,h)=>{!h.width||!h.color||(i.save(),i.lineWidth=h.width,i.strokeStyle=h.color,i.setLineDash(h.borderDash||[]),i.lineDashOffset=h.borderDashOffset,i.beginPath(),i.moveTo(l.x,l.y),i.lineTo(c.x,c.y),i.stroke(),i.restore())};if(e.display)for(o=0,r=n.length;o{this.draw(n)}}]:[{z:i,draw:n=>{this.drawBackground(),this.drawGrid(n),this.drawTitle()}},{z:i+1,draw:()=>{this.drawBorder()}},{z:e,draw:n=>{this.drawLabels(n)}}]}getMatchingVisibleMetas(t){const e=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+"AxisID",n=[];let o,r;for(o=0,r=e.length;o{const i=e.split("."),n=i.pop(),o=[s].concat(i).join("."),r=t[e].split("."),a=r.pop(),l=r.join(".");F.route(o,n,l,a)})}function YD(s){return"id"in s&&"defaults"in s}class KD{constructor(){this.controllers=new Yr(Kt,"datasets",!0),this.elements=new Yr(Ut,"elements"),this.plugins=new Yr(Object,"plugins"),this.scales=new Yr(si,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,e,i){[...e].forEach(n=>{const o=i||this._getRegistryForType(n);i||o.isForType(n)||o===this.plugins&&n.id?this._exec(t,o,n):U(n,r=>{const a=i||this._getRegistryForType(r);this._exec(t,a,r)})})}_exec(t,e,i){const n=ic(t);G(i["before"+n],[],i),e[t](i),G(i["after"+n],[],i)}_getRegistryForType(t){for(let e=0;e0&&this.getParsed(e-1);for(let E=e;E0&&Math.abs(A[p]-x[p])>y,v&&(w.parsed=A,w.raw=c.data[E]),u&&(w.options=d||this.resolveDataElementOptions(E,C.active?"active":n)),T||this.updateElement(C,E,w,n),x=A}this.updateSharedOptions(d,n,h)}getMaxOverflow(){const t=this._cachedMeta,e=t.data||[];if(!this.options.showLine){let a=0;for(let l=e.length-1;l>=0;--l)a=Math.max(a,e[l].size(this.resolveDataElementOptions(l))/2);return a>0&&a}const i=t.dataset,n=i.options&&i.options.borderWidth||0;if(!e.length)return n;const o=e[0].size(this.resolveDataElementOptions(0)),r=e[e.length-1].size(this.resolveDataElementOptions(e.length-1));return Math.max(n,o,r)/2}}zn.id="scatter",zn.defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1},zn.overrides={interaction:{mode:"point"},plugins:{tooltip:{callbacks:{title(){return""},label(s){return"("+s.label+", "+s.formattedValue+")"}}}},scales:{x:{type:"linear"},y:{type:"linear"}}};var o_=Object.freeze({__proto__:null,BarController:Rn,BubbleController:Nn,DoughnutController:$i,LineController:Bn,PolarAreaController:Hn,PieController:zr,RadarController:Vn,ScatterController:zn});function Pi(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class wc{constructor(t){this.options=t||{}}init(t){}formats(){return Pi()}parse(t,e){return Pi()}format(t,e){return Pi()}add(t,e,i){return Pi()}diff(t,e,i){return Pi()}startOf(t,e,i){return Pi()}endOf(t,e){return Pi()}}wc.override=function(s){Object.assign(wc.prototype,s)};var r_={_date:wc};function UD(s,t,e,i){const{controller:n,data:o,_sorted:r}=s,a=n._cachedMeta.iScale;if(a&&t===a.axis&&t!=="r"&&r&&o.length){const l=a._reversePixels?NS:De;if(i){if(n._sharedOptions){const c=o[0],h=typeof c.getRange=="function"&&c.getRange(t);if(h){const d=l(o,t,e-h),u=l(o,t,e+h);return{lo:d.lo,hi:u.hi}}}}else return l(o,t,e)}return{lo:0,hi:o.length-1}}function jn(s,t,e,i,n){const o=s.getSortedVisibleDatasetMetas(),r=e[t];for(let a=0,l=o.length;a{l[r](t[e],n)&&(o.push({element:l,datasetIndex:c,index:h}),a=a||l.inRange(t.x,t.y,n))}),i&&!a?[]:o}var l_={evaluateInteractionItems:jn,modes:{index(s,t,e,i){const n=Mi(t,s),o=e.axis||"x",r=e.includeInvisible||!1,a=e.intersect?kc(s,n,o,i,r):Sc(s,n,o,!1,i,r),l=[];return a.length?(s.getSortedVisibleDatasetMetas().forEach(c=>{const h=a[0].index,d=c.data[h];d&&!d.skip&&l.push({element:d,datasetIndex:c.index,index:h})}),l):[]},dataset(s,t,e,i){const n=Mi(t,s),o=e.axis||"xy",r=e.includeInvisible||!1;let a=e.intersect?kc(s,n,o,i,r):Sc(s,n,o,!1,i,r);if(a.length>0){const l=a[0].datasetIndex,c=s.getDatasetMeta(l).data;a=[];for(let h=0;he.pos===t)}function h_(s,t){return s.filter(e=>c_.indexOf(e.pos)===-1&&e.box.axis===t)}function Kn(s,t){return s.sort((e,i)=>{const n=t?i:e,o=t?e:i;return n.weight===o.weight?n.index-o.index:n.weight-o.weight})}function ZD(s){const t=[];let e,i,n,o,r,a;for(e=0,i=(s||[]).length;ec.box.fullSize),!0),i=Kn(Yn(t,"left"),!0),n=Kn(Yn(t,"right")),o=Kn(Yn(t,"top"),!0),r=Kn(Yn(t,"bottom")),a=h_(t,"x"),l=h_(t,"y");return{fullSize:e,leftAndTop:i.concat(o),rightAndBottom:n.concat(l).concat(r).concat(a),chartArea:Yn(t,"chartArea"),vertical:i.concat(n).concat(l),horizontal:o.concat(r).concat(a)}}function d_(s,t,e,i){return Math.max(s[e],t[e])+Math.max(s[i],t[i])}function u_(s,t){s.top=Math.max(s.top,t.top),s.left=Math.max(s.left,t.left),s.bottom=Math.max(s.bottom,t.bottom),s.right=Math.max(s.right,t.right)}function eI(s,t,e,i){const{pos:n,box:o}=e,r=s.maxPadding;if(!V(n)){e.size&&(s[n]-=e.size);const d=i[e.stack]||{size:0,count:1};d.size=Math.max(d.size,e.horizontal?o.height:o.width),e.size=d.size/d.count,s[n]+=e.size}o.getPadding&&u_(r,o.getPadding());const a=Math.max(0,t.outerWidth-d_(r,s,"left","right")),l=Math.max(0,t.outerHeight-d_(r,s,"top","bottom")),c=a!==s.w,h=l!==s.h;return s.w=a,s.h=l,e.horizontal?{same:c,other:h}:{same:h,other:c}}function iI(s){const t=s.maxPadding;function e(i){const n=Math.max(t[i]-s[i],0);return s[i]+=n,n}s.y+=e("top"),s.x+=e("left"),e("right"),e("bottom")}function sI(s,t){const e=t.maxPadding;function i(n){const o={left:0,top:0,right:0,bottom:0};return n.forEach(r=>{o[r]=Math.max(t[r],e[r])}),o}return i(s?["left","right"]:["top","bottom"])}function Un(s,t,e,i){const n=[];let o,r,a,l,c,h;for(o=0,r=s.length,c=0;o{typeof b.beforeLayout=="function"&&b.beforeLayout()});const h=l.reduce((b,v)=>v.box.options&&v.box.options.display===!1?b:b+1,0)||1,d=Object.freeze({outerWidth:t,outerHeight:e,padding:n,availableWidth:o,availableHeight:r,vBoxMaxWidth:o/2/h,hBoxMaxHeight:r/2}),u=Object.assign({},n);u_(u,ht(i));const p=Object.assign({maxPadding:u,w:o,h:r,x:n.left,y:n.top},n),f=JD(l.concat(c),d);Un(a.fullSize,p,d,f),Un(l,p,d,f),Un(c,p,d,f)&&Un(l,p,d,f),iI(p),p_(a.leftAndTop,p,d,f),p.x+=p.w,p.y+=p.h,p_(a.rightAndBottom,p,d,f),s.chartArea={left:p.left,top:p.top,right:p.left+p.w,bottom:p.top+p.h,height:p.h,width:p.w},U(a.chartArea,b=>{const v=b.box;Object.assign(v,s.chartArea),v.update(p.w,p.h,{left:0,top:0,right:0,bottom:0})})}};class Oc{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,i){}removeEventListener(t,e,i){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,i,n){return e=Math.max(0,e||t.width),i=i||t.height,{width:e,height:Math.max(0,n?Math.floor(e/n):i)}}isAttached(t){return!0}updateConfig(t){}}class f_ extends Oc{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const Ur="$chartjs",nI={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},__=s=>s===null||s==="";function oI(s,t){const e=s.style,i=s.getAttribute("height"),n=s.getAttribute("width");if(s[Ur]={initial:{height:i,width:n,style:{display:e.display,height:e.height,width:e.width}}},e.display=e.display||"block",e.boxSizing=e.boxSizing||"border-box",__(n)){const o=Mf(s,"width");o!==void 0&&(s.width=o)}if(__(i))if(s.style.height==="")s.height=s.width/(t||2);else{const o=Mf(s,"height");o!==void 0&&(s.height=o)}return s}const g_=jO?{passive:!0}:!1;function rI(s,t,e){s.addEventListener(t,e,g_)}function aI(s,t,e){s.canvas.removeEventListener(t,e,g_)}function lI(s,t){const e=nI[s.type]||s.type,{x:i,y:n}=Mi(s,t);return{type:e,chart:t,native:s,x:i!==void 0?i:null,y:n!==void 0?n:null}}function Xr(s,t){for(const e of s)if(e===t||e.contains(t))return!0}function cI(s,t,e){const i=s.canvas,n=new MutationObserver(o=>{let r=!1;for(const a of o)r=r||Xr(a.addedNodes,i),r=r&&!Xr(a.removedNodes,i);r&&e()});return n.observe(document,{childList:!0,subtree:!0}),n}function hI(s,t,e){const i=s.canvas,n=new MutationObserver(o=>{let r=!1;for(const a of o)r=r||Xr(a.removedNodes,i),r=r&&!Xr(a.addedNodes,i);r&&e()});return n.observe(document,{childList:!0,subtree:!0}),n}const Xn=new Map;let m_=0;function b_(){const s=window.devicePixelRatio;s!==m_&&(m_=s,Xn.forEach((t,e)=>{e.currentDevicePixelRatio!==s&&t()}))}function dI(s,t){Xn.size||window.addEventListener("resize",b_),Xn.set(s,t)}function uI(s){Xn.delete(s),Xn.size||window.removeEventListener("resize",b_)}function pI(s,t,e){const i=s.canvas,n=i&&yc(i);if(!n)return;const o=nf((a,l)=>{const c=n.clientWidth;e(a,l),c{const l=a[0],c=l.contentRect.width,h=l.contentRect.height;c===0&&h===0||o(c,h)});return r.observe(n),dI(s,o),r}function Dc(s,t,e){e&&e.disconnect(),t==="resize"&&uI(s)}function fI(s,t,e){const i=s.canvas,n=nf(o=>{s.ctx!==null&&e(lI(o,s))},s,o=>{const r=o[0];return[r,r.offsetX,r.offsetY]});return rI(i,t,n),n}class v_ extends Oc{acquireContext(t,e){const i=t&&t.getContext&&t.getContext("2d");return i&&i.canvas===t?(oI(t,e),i):null}releaseContext(t){const e=t.canvas;if(!e[Ur])return!1;const i=e[Ur].initial;["height","width"].forEach(o=>{const r=i[o];H(r)?e.removeAttribute(o):e.setAttribute(o,r)});const n=i.style||{};return Object.keys(n).forEach(o=>{e.style[o]=n[o]}),e.width=e.width,delete e[Ur],!0}addEventListener(t,e,i){this.removeEventListener(t,e);const n=t.$proxies||(t.$proxies={}),r={attach:cI,detach:hI,resize:pI}[e]||fI;n[e]=r(t,e,i)}removeEventListener(t,e){const i=t.$proxies||(t.$proxies={}),n=i[e];if(!n)return;({attach:Dc,detach:Dc,resize:Dc}[e]||aI)(t,e,n),i[e]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,i,n){return zO(t,e,i,n)}isAttached(t){const e=yc(t);return!!(e&&e.isConnected)}}function y_(s){return!Df()||typeof OffscreenCanvas<"u"&&s instanceof OffscreenCanvas?f_:v_}class _I{constructor(){this._init=[]}notify(t,e,i,n){e==="beforeInit"&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const o=n?this._descriptors(t).filter(n):this._descriptors(t),r=this._notify(o,t,e,i);return e==="afterDestroy"&&(this._notify(o,t,"stop"),this._notify(this._init,t,"uninstall")),r}_notify(t,e,i,n){n=n||{};for(const o of t){const r=o.plugin,a=r[i],l=[e,n,o.options];if(G(a,l,r)===!1&&n.cancelable)return!1}return!0}invalidate(){H(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const e=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),e}_createDescriptors(t,e){const i=t&&t.config,n=B(i.options&&i.options.plugins,{}),o=gI(i);return n===!1&&!e?[]:bI(t,o,n,e)}_notifyStateChanges(t){const e=this._oldCache||[],i=this._cache,n=(o,r)=>o.filter(a=>!r.some(l=>a.plugin.id===l.plugin.id));this._notify(n(e,i),t,"stop"),this._notify(n(i,e),t,"start")}}function gI(s){const t={},e=[],i=Object.keys(se.plugins.items);for(let o=0;o{const l=i[a];if(!V(l))return console.error(`Invalid scale configuration for scale: ${a}`);if(l._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${a}`);const c=Mc(a,l),h=TI(c,n),d=e.scales||{};o[c]=o[c]||a,r[a]=Cn(Object.create(null),[{axis:c},l,d[c],d[h]])}),s.data.datasets.forEach(a=>{const l=a.type||s.type,c=a.indexAxis||Ic(l,t),d=(ki[l]||{}).scales||{};Object.keys(d).forEach(u=>{const p=yI(u,c),f=a[p+"AxisID"]||o[p]||p;r[f]=r[f]||Object.create(null),Cn(r[f],[{axis:p},i[f],d[u]])})}),Object.keys(r).forEach(a=>{const l=r[a];Cn(l,[F.scales[l.type],F.scale])}),r}function T_(s){const t=s.options||(s.options={});t.plugins=B(t.plugins,{}),t.scales=xI(s,t)}function E_(s){return s=s||{},s.datasets=s.datasets||[],s.labels=s.labels||[],s}function CI(s){return s=s||{},s.data=E_(s.data),T_(s),s}const x_=new Map,C_=new Set;function Gr(s,t){let e=x_.get(s);return e||(e=t(),x_.set(s,e),C_.add(e)),e}const Gn=(s,t,e)=>{const i=Qe(t,e);i!==void 0&&s.add(i)};class AI{constructor(t){this._config=CI(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=E_(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),T_(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Gr(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,e){return Gr(`${t}.transition.${e}`,()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,e){return Gr(`${t}-${e}`,()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]])}pluginScopeKeys(t){const e=t.id,i=this.type;return Gr(`${i}-plugin-${e}`,()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,e){const i=this._scopeCache;let n=i.get(t);return(!n||e)&&(n=new Map,i.set(t,n)),n}getOptionScopes(t,e,i){const{options:n,type:o}=this,r=this._cachedScopes(t,i),a=r.get(e);if(a)return a;const l=new Set;e.forEach(h=>{t&&(l.add(t),h.forEach(d=>Gn(l,t,d))),h.forEach(d=>Gn(l,n,d)),h.forEach(d=>Gn(l,ki[o]||{},d)),h.forEach(d=>Gn(l,F,d)),h.forEach(d=>Gn(l,pc,d))});const c=Array.from(l);return c.length===0&&c.push(Object.create(null)),C_.has(e)&&r.set(e,c),c}chartOptionScopes(){const{options:t,type:e}=this;return[t,ki[e]||{},F.datasets[e]||{},{type:e},F,pc]}resolveNamedOptions(t,e,i,n=[""]){const o={$shared:!0},{resolver:r,subPrefixes:a}=A_(this._resolverCache,t,n);let l=r;if(kI(r,e)){o.$shared=!1,i=Je(i)?i():i;const c=this.createResolver(t,i,a);l=Es(r,i,c)}for(const c of e)o[c]=l[c];return o}createResolver(t,e,i=[""],n){const{resolver:o}=A_(this._resolverCache,t,i);return V(e)?Es(o,e,void 0,n):o}}function A_(s,t,e){let i=s.get(t);i||(i=new Map,s.set(t,i));const n=e.join();let o=i.get(n);return o||(o={resolver:mc(t,e),subPrefixes:e.filter(a=>!a.toLowerCase().includes("hover"))},i.set(n,o)),o}const wI=s=>V(s)&&Object.getOwnPropertyNames(s).reduce((t,e)=>t||Je(s[e]),!1);function kI(s,t){const{isScriptable:e,isIndexable:i}=Ef(s);for(const n of t){const o=e(n),r=i(n),a=(r||o)&&s[n];if(o&&(Je(a)||wI(a))||r&&Q(a))return!0}return!1}var SI="3.9.1";const OI=["top","bottom","left","right","chartArea"];function w_(s,t){return s==="top"||s==="bottom"||OI.indexOf(s)===-1&&t==="x"}function k_(s,t){return function(e,i){return e[s]===i[s]?e[t]-i[t]:e[s]-i[s]}}function S_(s){const t=s.chart,e=t.options.animation;t.notifyPlugins("afterRender"),G(e&&e.onComplete,[s],t)}function DI(s){const t=s.chart,e=t.options.animation;G(e&&e.onProgress,[s],t)}function O_(s){return Df()&&typeof s=="string"?s=document.getElementById(s):s&&s.length&&(s=s[0]),s&&s.canvas&&(s=s.canvas),s}const qr={},D_=s=>{const t=O_(s);return Object.values(qr).filter(e=>e.canvas===t).pop()};function II(s,t,e){const i=Object.keys(s);for(const n of i){const o=+n;if(o>=t){const r=s[n];delete s[n],(e>0||o>t)&&(s[o+e]=r)}}}function MI(s,t,e,i){return!e||s.type==="mouseout"?null:i?t:s}class Lc{constructor(t,e){const i=this.config=new AI(e),n=O_(t),o=D_(n);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");const r=i.createResolver(i.chartOptionScopes(),this.getContext());this.platform=new(i.platform||y_(n)),this.platform.updateConfig(i);const a=this.platform.acquireContext(n,r.aspectRatio),l=a&&a.canvas,c=l&&l.height,h=l&&l.width;if(this.id=CS(),this.ctx=a,this.canvas=l,this.width=h,this.height=c,this._options=r,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new _I,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=VS(d=>this.update(d),r.resizeDelay||0),this._dataChanges=[],qr[this.id]=this,!a||!l){console.error("Failed to create chart: can't acquire context from the given item");return}Ee.listen(this,"complete",S_),Ee.listen(this,"progress",DI),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:e},width:i,height:n,_aspectRatio:o}=this;return H(t)?e&&o?o:n?i/n:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():If(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return vf(this.canvas,this.ctx),this}stop(){return Ee.stop(this),this}resize(t,e){Ee.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const i=this.options,n=this.canvas,o=i.maintainAspectRatio&&this.aspectRatio,r=this.platform.getMaximumSize(n,t,e,o),a=i.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=r.width,this.height=r.height,this._aspectRatio=this.aspectRatio,If(this,a,!0)&&(this.notifyPlugins("resize",{size:r}),G(i.onResize,[this,r],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const e=this.options.scales||{};U(e,(i,n)=>{i.id=n})}buildOrUpdateScales(){const t=this.options,e=t.scales,i=this.scales,n=Object.keys(i).reduce((r,a)=>(r[a]=!1,r),{});let o=[];e&&(o=o.concat(Object.keys(e).map(r=>{const a=e[r],l=Mc(r,a),c=l==="r",h=l==="x";return{options:a,dposition:c?"chartArea":h?"bottom":"left",dtype:c?"radialLinear":h?"category":"linear"}}))),U(o,r=>{const a=r.options,l=a.id,c=Mc(l,a),h=B(a.type,r.dtype);(a.position===void 0||w_(a.position,c)!==w_(r.dposition))&&(a.position=r.dposition),n[l]=!0;let d=null;if(l in i&&i[l].type===h)d=i[l];else{const u=se.getScale(h);d=new u({id:l,type:h,ctx:this.ctx,chart:this}),i[d.id]=d}d.init(a,t)}),U(n,(r,a)=>{r||delete i[a]}),U(i,r=>{dt.configure(this,r,r.options),dt.addBox(this,r)})}_updateMetasets(){const t=this._metasets,e=this.data.datasets.length,i=t.length;if(t.sort((n,o)=>n.index-o.index),i>e){for(let n=e;ne.length&&delete this._stacks,t.forEach((i,n)=>{e.filter(o=>o===i._dataset).length===0&&this._destroyDatasetMeta(n)})}buildOrUpdateControllers(){const t=[],e=this.data.datasets;let i,n;for(this._removeUnreferencedMetasets(),i=0,n=e.length;i{this.getDatasetMeta(e).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const e=this.config;e.update();const i=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),n=this._animationsDisabled=!i.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let r=0;for(let c=0,h=this.data.datasets.length;c{c.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(k_("z","_idx"));const{_active:a,_lastEvent:l}=this;l?this._eventHandler(l,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){U(this.scales,t=>{dt.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),i=new Set(t.events);(!Up(e,i)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(const{method:i,start:n,count:o}of e){const r=i==="_removeElements"?-o:o;II(t,n,r)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const e=this.data.datasets.length,i=o=>new Set(t.filter(r=>r[0]===o).map((r,a)=>a+","+r.splice(1).join(","))),n=i(0);for(let o=1;oo.split(",")).map(o=>({method:o[1],start:+o[2],count:+o[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;dt.update(this,this.width,this.height,t);const e=this.chartArea,i=e.width<=0||e.height<=0;this._layers=[],U(this.boxes,n=>{i&&n.position==="chartArea"||(n.configure&&n.configure(),this._layers.push(...n._layers()))},this),this._layers.forEach((n,o)=>{n._idx=o}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let e=0,i=this.data.datasets.length;e=0;--e)this._drawDataset(t[e]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const e=this.ctx,i=t._clip,n=!i.disabled,o=this.chartArea,r={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",r)!==!1&&(n&&Br(e,{left:i.left===!1?0:o.left-i.left,right:i.right===!1?this.width:o.right+i.right,top:i.top===!1?0:o.top-i.top,bottom:i.bottom===!1?this.height:o.bottom+i.bottom}),t.controller.draw(),n&&Hr(e),r.cancelable=!1,this.notifyPlugins("afterDatasetDraw",r))}isPointInArea(t){return Mn(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,i,n){const o=l_.modes[e];return typeof o=="function"?o(this,t,i,n):[]}getDatasetMeta(t){const e=this.data.datasets[t],i=this._metasets;let n=i.filter(o=>o&&o._dataset===e).pop();return n||(n={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:t,_dataset:e,_parsed:[],_sorted:!1},i.push(n)),n}getContext(){return this.$context||(this.$context=ii(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const e=this.data.datasets[t];if(!e)return!1;const i=this.getDatasetMeta(t);return typeof i.hidden=="boolean"?!i.hidden:!e.hidden}setDatasetVisibility(t,e){const i=this.getDatasetMeta(t);i.hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,e,i){const n=i?"show":"hide",o=this.getDatasetMeta(t),r=o.controller._resolveAnimations(void 0,n);zt(e)?(o.data[e].hidden=!i,this.update()):(this.setDatasetVisibility(t,i),r.update(o,{visible:i}),this.update(a=>a.datasetIndex===t?n:void 0))}hide(t,e){this._updateVisibility(t,e,!1)}show(t,e){this._updateVisibility(t,e,!0)}_destroyDatasetMeta(t){const e=this._metasets[t];e&&e.controller&&e.controller._destroy(),delete this._metasets[t]}_stop(){let t,e;for(this.stop(),Ee.remove(this),t=0,e=this.data.datasets.length;t{e.addEventListener(this,o,r),t[o]=r},n=(o,r,a)=>{o.offsetX=r,o.offsetY=a,this._eventHandler(o)};U(this.options.events,o=>i(o,n))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,e=this.platform,i=(l,c)=>{e.addEventListener(this,l,c),t[l]=c},n=(l,c)=>{t[l]&&(e.removeEventListener(this,l,c),delete t[l])},o=(l,c)=>{this.canvas&&this.resize(l,c)};let r;const a=()=>{n("attach",a),this.attached=!0,this.resize(),i("resize",o),i("detach",r)};r=()=>{this.attached=!1,n("resize",o),this._stop(),this._resize(0,0),i("attach",a)},e.isAttached(this.canvas)?a():r()}unbindEvents(){U(this._listeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._listeners={},U(this._responsiveListeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,e,i){const n=i?"set":"remove";let o,r,a,l;for(e==="dataset"&&(o=this.getDatasetMeta(t[0].datasetIndex),o.controller["_"+n+"DatasetHoverStyle"]()),a=0,l=t.length;a{const a=this.getDatasetMeta(o);if(!a)throw new Error("No dataset found at index "+o);return{datasetIndex:o,element:a.data[r],index:r}});!Or(i,e)&&(this._active=i,this._lastEvent=null,this._updateHoverStyles(i,e))}notifyPlugins(t,e,i){return this._plugins.notify(this,t,e,i)}_updateHoverStyles(t,e,i){const n=this.options.hover,o=(l,c)=>l.filter(h=>!c.some(d=>h.datasetIndex===d.datasetIndex&&h.index===d.index)),r=o(e,t),a=i?t:o(t,e);r.length&&this.updateHoverStyle(r,n.mode,!1),a.length&&n.mode&&this.updateHoverStyle(a,n.mode,!0)}_eventHandler(t,e){const i={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},n=r=>(r.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",i,n)===!1)return;const o=this._handleEvent(t,e,i.inChartArea);return i.cancelable=!1,this.notifyPlugins("afterEvent",i,n),(o||i.changed)&&this.render(),this}_handleEvent(t,e,i){const{_active:n=[],options:o}=this,r=e,a=this._getActiveElements(t,n,i,r),l=DS(t),c=MI(t,this._lastEvent,i,l);i&&(this._lastEvent=null,G(o.onHover,[t,a,this],this),l&&G(o.onClick,[t,a,this],this));const h=!Or(a,n);return(h||e)&&(this._active=a,this._updateHoverStyles(a,n,e)),this._lastEvent=c,h}_getActiveElements(t,e,i,n){if(t.type==="mouseout")return[];if(!i)return e;const o=this.options.hover;return this.getElementsAtEventForMode(t,o.mode,o,n)}}const I_=()=>U(Lc.instances,s=>s._plugins.invalidate()),ni=!0;Object.defineProperties(Lc,{defaults:{enumerable:ni,value:F},instances:{enumerable:ni,value:qr},overrides:{enumerable:ni,value:ki},registry:{enumerable:ni,value:se},version:{enumerable:ni,value:SI},getChart:{enumerable:ni,value:D_},register:{enumerable:ni,value:(...s)=>{se.add(...s),I_()}},unregister:{enumerable:ni,value:(...s)=>{se.remove(...s),I_()}}});function M_(s,t,e){const{startAngle:i,pixelMargin:n,x:o,y:r,outerRadius:a,innerRadius:l}=t;let c=n/a;s.beginPath(),s.arc(o,r,a,i-c,e+c),l>n?(c=n/l,s.arc(o,r,l,e+c,i-c,!0)):s.arc(o,r,n,e+nt,i-nt),s.closePath(),s.clip()}function LI(s){return gc(s,["outerStart","outerEnd","innerStart","innerEnd"])}function $I(s,t,e,i){const n=LI(s.options.borderRadius),o=(e-t)/2,r=Math.min(o,i*t/2),a=l=>{const c=(e-Math.min(o,l))*i/2;return ct(l,0,Math.min(o,c))};return{outerStart:a(n.outerStart),outerEnd:a(n.outerEnd),innerStart:ct(n.innerStart,0,r),innerEnd:ct(n.innerEnd,0,r)}}function As(s,t,e,i){return{x:e+s*Math.cos(t),y:i+s*Math.sin(t)}}function $c(s,t,e,i,n,o){const{x:r,y:a,startAngle:l,pixelMargin:c,innerRadius:h}=t,d=Math.max(t.outerRadius+i+e-c,0),u=h>0?h+i+e+c:0;let p=0;const f=n-l;if(i){const P=h>0?h-i:0,z=d>0?d-i:0,Y=(P+z)/2,Xt=Y!==0?f*Y/(Y+i):f;p=(f-Xt)/2}const b=Math.max(.001,f*d-e/et)/d,v=(f-b)/2,y=l+v+p,T=n-v-p,{outerStart:x,outerEnd:E,innerStart:C,innerEnd:A}=$I(t,u,d,T-y),w=d-x,S=d-E,k=y+x/w,I=T-E/S,O=u+C,M=u+A,R=y+C/O,X=T-A/M;if(s.beginPath(),o){if(s.arc(r,a,d,k,I),E>0){const Y=As(S,I,r,a);s.arc(Y.x,Y.y,E,I,T+nt)}const P=As(M,T,r,a);if(s.lineTo(P.x,P.y),A>0){const Y=As(M,X,r,a);s.arc(Y.x,Y.y,A,T+nt,X+Math.PI)}if(s.arc(r,a,u,T-A/u,y+C/u,!0),C>0){const Y=As(O,R,r,a);s.arc(Y.x,Y.y,C,R+Math.PI,y-nt)}const z=As(w,y,r,a);if(s.lineTo(z.x,z.y),x>0){const Y=As(w,k,r,a);s.arc(Y.x,Y.y,x,y-nt,k)}}else{s.moveTo(r,a);const P=Math.cos(k)*d+r,z=Math.sin(k)*d+a;s.lineTo(P,z);const Y=Math.cos(I)*d+r,Xt=Math.sin(I)*d+a;s.lineTo(Y,Xt)}s.closePath()}function PI(s,t,e,i,n){const{fullCircles:o,startAngle:r,circumference:a}=t;let l=t.endAngle;if(o){$c(s,t,e,i,r+q,n);for(let c=0;c=q||kn(o,a,l),b=Oe(r,c+u,h+u);return f&&b}getCenterPoint(t){const{x:e,y:i,startAngle:n,endAngle:o,innerRadius:r,outerRadius:a}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],t),{offset:l,spacing:c}=this.options,h=(n+o)/2,d=(r+a+c+l)/2;return{x:e+Math.cos(h)*d,y:i+Math.sin(h)*d}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:e,circumference:i}=this,n=(e.offset||0)/2,o=(e.spacing||0)/2,r=e.circular;if(this.pixelMargin=e.borderAlign==="inner"?.33:0,this.fullCircles=i>q?Math.floor(i/q):0,i===0||this.innerRadius<0||this.outerRadius<0)return;t.save();let a=0;if(n){a=n/2;const c=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(c)*a,Math.sin(c)*a),this.circumference>=et&&(a=n)}t.fillStyle=e.backgroundColor,t.strokeStyle=e.borderColor;const l=PI(t,this,a,o,r);NI(t,this,a,o,l,r),t.restore()}}ws.id="arc",ws.defaults={borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0},ws.defaultRoutes={backgroundColor:"backgroundColor"};function L_(s,t,e=t){s.lineCap=B(e.borderCapStyle,t.borderCapStyle),s.setLineDash(B(e.borderDash,t.borderDash)),s.lineDashOffset=B(e.borderDashOffset,t.borderDashOffset),s.lineJoin=B(e.borderJoinStyle,t.borderJoinStyle),s.lineWidth=B(e.borderWidth,t.borderWidth),s.strokeStyle=B(e.borderColor,t.borderColor)}function BI(s,t,e){s.lineTo(e.x,e.y)}function HI(s){return s.stepped?pO:s.tension||s.cubicInterpolationMode==="monotone"?fO:BI}function $_(s,t,e={}){const i=s.length,{start:n=0,end:o=i-1}=e,{start:r,end:a}=t,l=Math.max(n,r),c=Math.min(o,a),h=na&&o>a;return{count:i,start:l,loop:t.loop,ilen:c(r+(c?a-E:E))%o,x=()=>{b!==v&&(s.lineTo(h,v),s.lineTo(h,b),s.lineTo(h,y))};for(l&&(p=n[T(0)],s.moveTo(p.x,p.y)),u=0;u<=a;++u){if(p=n[T(u)],p.skip)continue;const E=p.x,C=p.y,A=E|0;A===f?(Cv&&(v=C),h=(d*h+E)/++d):(x(),s.lineTo(E,C),f=A,d=0,b=v=C),y=C}x()}function Pc(s){const t=s.options,e=t.borderDash&&t.borderDash.length;return!s._decimated&&!s._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!e?FI:VI}function WI(s){return s.stepped?YO:s.tension||s.cubicInterpolationMode==="monotone"?KO:Li}function zI(s,t,e,i){let n=t._path;n||(n=t._path=new Path2D,t.path(n,e,i)&&n.closePath()),L_(s,t.options),s.stroke(n)}function jI(s,t,e,i){const{segments:n,options:o}=t,r=Pc(t);for(const a of n)L_(s,o,a.style),s.beginPath(),r(s,t,a,{start:e,end:e+i-1})&&s.closePath(),s.stroke()}const YI=typeof Path2D=="function";function KI(s,t,e,i){YI&&!t.options.segment?zI(s,t,e,i):jI(s,t,e,i)}class Me extends Ut{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,e){const i=this.options;if((i.tension||i.cubicInterpolationMode==="monotone")&&!i.stepped&&!this._pointsUpdated){const n=i.spanGaps?this._loop:this._fullLoop;NO(this._points,i,t,n,e),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=JO(this,this.options.segment))}first(){const t=this.segments,e=this.points;return t.length&&e[t[0].start]}last(){const t=this.segments,e=this.points,i=t.length;return i&&e[t[i-1].end]}interpolate(t,e){const i=this.options,n=t[e],o=this.points,r=Hf(this,{property:e,start:n,end:n});if(!r.length)return;const a=[],l=WI(i);let c,h;for(c=0,h=r.length;cs!=="borderDash"&&s!=="fill"};function P_(s,t,e,i){const n=s.options,{[e]:o}=s.getProps([e],i);return Math.abs(t-o)=e)return s.slice(t,t+e);const r=[],a=(e-2)/(o-2);let l=0;const c=t+e-1;let h=t,d,u,p,f,b;for(r[l++]=s[h],d=0;dp&&(p=f,u=s[T],b=T);r[l++]=u,h=b}return r[l++]=s[c],r}function JI(s,t,e,i){let n=0,o=0,r,a,l,c,h,d,u,p,f,b;const v=[],y=t+e-1,T=s[t].x,E=s[y].x-T;for(r=t;rb&&(b=c,u=r),n=(o*n+a.x)/++o;else{const A=r-1;if(!H(d)&&!H(u)){const w=Math.min(d,u),S=Math.max(d,u);w!==p&&w!==A&&v.push({...s[w],x:n}),S!==p&&S!==A&&v.push({...s[S],x:n})}r>0&&A!==p&&v.push(s[A]),v.push(a),h=C,o=0,f=b=c,d=u=p=r}}return v}function B_(s){if(s._decimated){const t=s._data;delete s._decimated,delete s._data,Object.defineProperty(s,"data",{value:t})}}function H_(s){s.data.datasets.forEach(t=>{B_(t)})}function t1(s,t){const e=t.length;let i=0,n;const{iScale:o}=s,{min:r,max:a,minDefined:l,maxDefined:c}=o.getUserBounds();return l&&(i=ct(De(t,o.axis,r).lo,0,e-1)),c?n=ct(De(t,o.axis,a).hi+1,i,e)-i:n=e-i,{start:i,count:n}}var V_={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(s,t,e)=>{if(!e.enabled){H_(s);return}const i=s.width;s.data.datasets.forEach((n,o)=>{const{_data:r,indexAxis:a}=n,l=s.getDatasetMeta(o),c=r||n.data;if(tt([a,s.options.indexAxis])==="y"||!l.controller.supportsDecimation)return;const h=s.scales[l.xAxisID];if(h.type!=="linear"&&h.type!=="time"||s.options.parsing)return;let{start:d,count:u}=t1(l,c);const p=e.threshold||4*i;if(u<=p){B_(n);return}H(r)&&(n._data=c,delete n.data,Object.defineProperty(n,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(b){this._data=b}}));let f;switch(e.algorithm){case"lttb":f=QI(c,d,u,i,e);break;case"min-max":f=JI(c,d,u,i);break;default:throw new Error(`Unsupported decimation algorithm '${e.algorithm}'`)}n._decimated=f})},destroy(s){H_(s)}};function e1(s,t,e){const i=s.segments,n=s.points,o=t.points,r=[];for(const a of i){let{start:l,end:c}=a;c=Hc(l,c,n);const h=Bc(e,n[l],n[c],a.loop);if(!t.segments){r.push({source:a,target:h,start:n[l],end:n[c]});continue}const d=Hf(t,h);for(const u of d){const p=Bc(e,o[u.start],o[u.end],u.loop),f=Bf(a,n,p);for(const b of f)r.push({source:b,target:u,start:{[e]:F_(h,p,"start",Math.max)},end:{[e]:F_(h,p,"end",Math.min)}})}}return r}function Bc(s,t,e,i){if(i)return;let n=t[s],o=e[s];return s==="angle"&&(n=Bt(n),o=Bt(o)),{property:s,start:n,end:o}}function i1(s,t){const{x:e=null,y:i=null}=s||{},n=t.points,o=[];return t.segments.forEach(({start:r,end:a})=>{a=Hc(r,a,n);const l=n[r],c=n[a];i!==null?(o.push({x:l.x,y:i}),o.push({x:c.x,y:i})):e!==null&&(o.push({x:e,y:l.y}),o.push({x:e,y:c.y}))}),o}function Hc(s,t,e){for(;t>s;t--){const i=e[t];if(!isNaN(i.x)&&!isNaN(i.y))break}return t}function F_(s,t,e,i){return s&&t?i(s[e],t[e]):s?s[e]:t?t[e]:0}function W_(s,t){let e=[],i=!1;return Q(s)?(i=!0,e=s):e=i1(s,t),e.length?new Me({points:e,options:{tension:0},_loop:i,_fullLoop:i}):null}function z_(s){return s&&s.fill!==!1}function s1(s,t,e){let n=s[t].fill;const o=[t];let r;if(!e)return n;for(;n!==!1&&o.indexOf(n)===-1;){if(!rt(n))return n;if(r=s[n],!r)return!1;if(r.visible)return n;o.push(n),n=r.fill}return!1}function n1(s,t,e){const i=l1(s);if(V(i))return isNaN(i.value)?!1:i;let n=parseFloat(i);return rt(n)&&Math.floor(n)===n?o1(i[0],t,n,e):["origin","start","end","stack","shape"].indexOf(i)>=0&&i}function o1(s,t,e,i){return(s==="-"||s==="+")&&(e=t+e),e===t||e<0||e>=i?!1:e}function r1(s,t){let e=null;return s==="start"?e=t.bottom:s==="end"?e=t.top:V(s)?e=t.getPixelForValue(s.value):t.getBasePixel&&(e=t.getBasePixel()),e}function a1(s,t,e){let i;return s==="start"?i=e:s==="end"?i=t.options.reverse?t.min:t.max:V(s)?i=s.value:i=t.getBaseValue(),i}function l1(s){const t=s.options,e=t.fill;let i=B(e&&e.target,e);return i===void 0&&(i=!!t.backgroundColor),i===!1||i===null?!1:i===!0?"origin":i}function c1(s){const{scale:t,index:e,line:i}=s,n=[],o=i.segments,r=i.points,a=h1(t,e);a.push(W_({x:null,y:t.bottom},i));for(let l=0;l=0;--r){const a=n[r].$filler;a&&(a.line.updateControlPoints(o,a.axis),i&&a.fill&&Vc(s.ctx,a,o))}},beforeDatasetsDraw(s,t,e){if(e.drawTime!=="beforeDatasetsDraw")return;const i=s.getSortedVisibleDatasetMetas();for(let n=i.length-1;n>=0;--n){const o=i[n].$filler;z_(o)&&Vc(s.ctx,o,s.chartArea)}},beforeDatasetDraw(s,t,e){const i=t.meta.$filler;!z_(i)||e.drawTime!=="beforeDatasetDraw"||Vc(s.ctx,i,s.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const G_=(s,t)=>{let{boxHeight:e=t,boxWidth:i=t}=s;return s.usePointStyle&&(e=Math.min(e,t),i=s.pointStyleWidth||Math.min(i,t)),{boxWidth:i,boxHeight:e,itemHeight:Math.max(t,e)}},y1=(s,t)=>s!==null&&t!==null&&s.datasetIndex===t.datasetIndex&&s.index===t.index;class q_ extends Ut{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e,i){this.maxWidth=t,this.maxHeight=e,this._margins=i,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let e=G(t.generateLabels,[this.chart],this)||[];t.filter&&(e=e.filter(i=>t.filter(i,this.chart.data))),t.sort&&(e=e.sort((i,n)=>t.sort(i,n,this.chart.data))),this.options.reverse&&e.reverse(),this.legendItems=e}fit(){const{options:t,ctx:e}=this;if(!t.display){this.width=this.height=0;return}const i=t.labels,n=lt(i.font),o=n.size,r=this._computeTitleHeight(),{boxWidth:a,itemHeight:l}=G_(i,o);let c,h;e.font=n.string,this.isHorizontal()?(c=this.maxWidth,h=this._fitRows(r,o,a,l)+10):(h=this.maxHeight,c=this._fitCols(r,o,a,l)+10),this.width=Math.min(c,t.maxWidth||this.maxWidth),this.height=Math.min(h,t.maxHeight||this.maxHeight)}_fitRows(t,e,i,n){const{ctx:o,maxWidth:r,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],h=n+a;let d=t;o.textAlign="left",o.textBaseline="middle";let u=-1,p=-h;return this.legendItems.forEach((f,b)=>{const v=i+e/2+o.measureText(f.text).width;(b===0||c[c.length-1]+v+2*a>r)&&(d+=h,c[c.length-(b>0?0:1)]=0,p+=h,u++),l[b]={left:0,top:p,row:u,width:v,height:n},c[c.length-1]+=v+a}),d}_fitCols(t,e,i,n){const{ctx:o,maxHeight:r,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],h=r-t;let d=a,u=0,p=0,f=0,b=0;return this.legendItems.forEach((v,y)=>{const T=i+e/2+o.measureText(v.text).width;y>0&&p+n+2*a>h&&(d+=u+a,c.push({width:u,height:p}),f+=u+a,b++,u=p=0),l[y]={left:f,top:p,col:b,width:T,height:n},u=Math.max(u,T),p+=n+a}),d+=u,c.push({width:u,height:p}),d}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:i,labels:{padding:n},rtl:o}}=this,r=Cs(o,this.left,this.width);if(this.isHorizontal()){let a=0,l=ft(i,this.left+n,this.right-this.lineWidths[a]);for(const c of e)a!==c.row&&(a=c.row,l=ft(i,this.left+n,this.right-this.lineWidths[a])),c.top+=this.top+t+n,c.left=r.leftForLtr(r.x(l),c.width),l+=c.width+n}else{let a=0,l=ft(i,this.top+t+n,this.bottom-this.columnSizes[a].height);for(const c of e)c.col!==a&&(a=c.col,l=ft(i,this.top+t+n,this.bottom-this.columnSizes[a].height)),c.top=l,c.left+=this.left+n,c.left=r.leftForLtr(r.x(c.left),c.width),l+=c.height+n}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;Br(t,this),this._draw(),Hr(t)}}_draw(){const{options:t,columnSizes:e,lineWidths:i,ctx:n}=this,{align:o,labels:r}=t,a=F.color,l=Cs(t.rtl,this.left,this.width),c=lt(r.font),{color:h,padding:d}=r,u=c.size,p=u/2;let f;this.drawTitle(),n.textAlign=l.textAlign("left"),n.textBaseline="middle",n.lineWidth=.5,n.font=c.string;const{boxWidth:b,boxHeight:v,itemHeight:y}=G_(r,u),T=function(w,S,k){if(isNaN(b)||b<=0||isNaN(v)||v<0)return;n.save();const I=B(k.lineWidth,1);if(n.fillStyle=B(k.fillStyle,a),n.lineCap=B(k.lineCap,"butt"),n.lineDashOffset=B(k.lineDashOffset,0),n.lineJoin=B(k.lineJoin,"miter"),n.lineWidth=I,n.strokeStyle=B(k.strokeStyle,a),n.setLineDash(B(k.lineDash,[])),r.usePointStyle){const O={radius:v*Math.SQRT2/2,pointStyle:k.pointStyle,rotation:k.rotation,borderWidth:I},M=l.xPlus(w,b/2),R=S+p;yf(n,O,M,R,r.pointStyleWidth&&b)}else{const O=S+Math.max((u-v)/2,0),M=l.leftForLtr(w,b),R=Di(k.borderRadius);n.beginPath(),Object.values(R).some(X=>X!==0)?Ln(n,{x:M,y:O,w:b,h:v,radius:R}):n.rect(M,O,b,v),n.fill(),I!==0&&n.stroke()}n.restore()},x=function(w,S,k){Oi(n,k.text,w,S+y/2,c,{strikethrough:k.hidden,textAlign:l.textAlign(k.textAlign)})},E=this.isHorizontal(),C=this._computeTitleHeight();E?f={x:ft(o,this.left+d,this.right-i[0]),y:this.top+d+C,line:0}:f={x:this.left+d,y:ft(o,this.top+C+d,this.bottom-e[0].height),line:0},$f(this.ctx,t.textDirection);const A=y+d;this.legendItems.forEach((w,S)=>{n.strokeStyle=w.fontColor||h,n.fillStyle=w.fontColor||h;const k=n.measureText(w.text).width,I=l.textAlign(w.textAlign||(w.textAlign=r.textAlign)),O=b+p+k;let M=f.x,R=f.y;l.setWidth(this.width),E?S>0&&M+O+d>this.right&&(R=f.y+=A,f.line++,M=f.x=ft(o,this.left+d,this.right-i[f.line])):S>0&&R+A>this.bottom&&(M=f.x=M+e[f.line].width+d,f.line++,R=f.y=ft(o,this.top+C+d,this.bottom-e[f.line].height));const X=l.x(M);T(X,R,w),M=FS(I,M+b+p,E?M+O:this.right,t.rtl),x(l.x(M),R,w),E?f.x+=O+d:f.y+=A}),Pf(this.ctx,t.textDirection)}drawTitle(){const t=this.options,e=t.title,i=lt(e.font),n=ht(e.padding);if(!e.display)return;const o=Cs(t.rtl,this.left,this.width),r=this.ctx,a=e.position,l=i.size/2,c=n.top+l;let h,d=this.left,u=this.width;if(this.isHorizontal())u=Math.max(...this.lineWidths),h=this.top+c,d=ft(t.align,d,this.right-u);else{const f=this.columnSizes.reduce((b,v)=>Math.max(b,v.height),0);h=c+ft(t.align,this.top,this.bottom-f-t.labels.padding-this._computeTitleHeight())}const p=ft(a,d,d+u);r.textAlign=o.textAlign(rc(a)),r.textBaseline="middle",r.strokeStyle=e.color,r.fillStyle=e.color,r.font=i.string,Oi(r,e.text,p,h,i)}_computeTitleHeight(){const t=this.options.title,e=lt(t.font),i=ht(t.padding);return t.display?e.lineHeight+i.height:0}_getLegendItemAt(t,e){let i,n,o;if(Oe(t,this.left,this.right)&&Oe(e,this.top,this.bottom)){for(o=this.legendHitBoxes,i=0;is.chart.options.color,boxWidth:40,padding:10,generateLabels(s){const t=s.data.datasets,{labels:{usePointStyle:e,pointStyle:i,textAlign:n,color:o}}=s.legend.options;return s._getSortedDatasetMetas().map(r=>{const a=r.controller.getStyle(e?0:void 0),l=ht(a.borderWidth);return{text:t[r.index].label,fillStyle:a.backgroundColor,fontColor:o,hidden:!r.visible,lineCap:a.borderCapStyle,lineDash:a.borderDash,lineDashOffset:a.borderDashOffset,lineJoin:a.borderJoinStyle,lineWidth:(l.width+l.height)/4,strokeStyle:a.borderColor,pointStyle:i||a.pointStyle,rotation:a.rotation,textAlign:n||a.textAlign,borderRadius:0,datasetIndex:r.index}},this)}},title:{color:s=>s.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:s=>!s.startsWith("on"),labels:{_scriptable:s=>!["generateLabels","filter","sort"].includes(s)}}};class Fc extends Ut{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e){const i=this.options;if(this.left=0,this.top=0,!i.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=e;const n=Q(i.text)?i.text.length:1;this._padding=ht(i.padding);const o=n*lt(i.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){const t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){const{top:e,left:i,bottom:n,right:o,options:r}=this,a=r.align;let l=0,c,h,d;return this.isHorizontal()?(h=ft(a,i,o),d=e+t,c=o-i):(r.position==="left"?(h=i+t,d=ft(a,n,e),l=et*-.5):(h=o-t,d=ft(a,e,n),l=et*.5),c=n-e),{titleX:h,titleY:d,maxWidth:c,rotation:l}}draw(){const t=this.ctx,e=this.options;if(!e.display)return;const i=lt(e.font),o=i.lineHeight/2+this._padding.top,{titleX:r,titleY:a,maxWidth:l,rotation:c}=this._drawArgs(o);Oi(t,e.text,0,0,i,{color:e.color,maxWidth:l,rotation:c,textAlign:rc(e.align),textBaseline:"middle",translation:[r,a]})}}function E1(s,t){const e=new Fc({ctx:s.ctx,options:t,chart:s});dt.configure(s,e,t),dt.addBox(s,e),s.titleBlock=e}var Q_={id:"title",_element:Fc,start(s,t,e){E1(s,e)},stop(s){const t=s.titleBlock;dt.removeBox(s,t),delete s.titleBlock},beforeUpdate(s,t,e){const i=s.titleBlock;dt.configure(s,i,e),i.options=e},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Zr=new WeakMap;var J_={id:"subtitle",start(s,t,e){const i=new Fc({ctx:s.ctx,options:e,chart:s});dt.configure(s,i,e),dt.addBox(s,i),Zr.set(s,i)},stop(s){dt.removeBox(s,Zr.get(s)),Zr.delete(s)},beforeUpdate(s,t,e){const i=Zr.get(s);dt.configure(s,i,e),i.options=e},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const qn={average(s){if(!s.length)return!1;let t,e,i=0,n=0,o=0;for(t=0,e=s.length;t-1?s.split(` +`):s}function x1(s,t){const{element:e,datasetIndex:i,index:n}=t,o=s.getDatasetMeta(i).controller,{label:r,value:a}=o.getLabelAndValue(n);return{chart:s,label:r,parsed:o.getParsed(n),raw:s.data.datasets[i].data[n],formattedValue:a,dataset:o.getDataset(),dataIndex:n,datasetIndex:i,element:e}}function tg(s,t){const e=s.chart.ctx,{body:i,footer:n,title:o}=s,{boxWidth:r,boxHeight:a}=t,l=lt(t.bodyFont),c=lt(t.titleFont),h=lt(t.footerFont),d=o.length,u=n.length,p=i.length,f=ht(t.padding);let b=f.height,v=0,y=i.reduce((E,C)=>E+C.before.length+C.lines.length+C.after.length,0);if(y+=s.beforeBody.length+s.afterBody.length,d&&(b+=d*c.lineHeight+(d-1)*t.titleSpacing+t.titleMarginBottom),y){const E=t.displayColors?Math.max(a,l.lineHeight):l.lineHeight;b+=p*E+(y-p)*l.lineHeight+(y-1)*t.bodySpacing}u&&(b+=t.footerMarginTop+u*h.lineHeight+(u-1)*t.footerSpacing);let T=0;const x=function(E){v=Math.max(v,e.measureText(E).width+T)};return e.save(),e.font=c.string,U(s.title,x),e.font=l.string,U(s.beforeBody.concat(s.afterBody),x),T=t.displayColors?r+2+t.boxPadding:0,U(i,E=>{U(E.before,x),U(E.lines,x),U(E.after,x)}),T=0,e.font=h.string,U(s.footer,x),e.restore(),v+=f.width,{width:v,height:b}}function C1(s,t){const{y:e,height:i}=t;return es.height-i/2?"bottom":"center"}function A1(s,t,e,i){const{x:n,width:o}=i,r=e.caretSize+e.caretPadding;if(s==="left"&&n+o+r>t.width||s==="right"&&n-o-r<0)return!0}function w1(s,t,e,i){const{x:n,width:o}=e,{width:r,chartArea:{left:a,right:l}}=s;let c="center";return i==="center"?c=n<=(a+l)/2?"left":"right":n<=o/2?c="left":n>=r-o/2&&(c="right"),A1(c,s,t,e)&&(c="center"),c}function eg(s,t,e){const i=e.yAlign||t.yAlign||C1(s,e);return{xAlign:e.xAlign||t.xAlign||w1(s,t,e,i),yAlign:i}}function k1(s,t){let{x:e,width:i}=s;return t==="right"?e-=i:t==="center"&&(e-=i/2),e}function S1(s,t,e){let{y:i,height:n}=s;return t==="top"?i+=e:t==="bottom"?i-=n+e:i-=n/2,i}function ig(s,t,e,i){const{caretSize:n,caretPadding:o,cornerRadius:r}=s,{xAlign:a,yAlign:l}=e,c=n+o,{topLeft:h,topRight:d,bottomLeft:u,bottomRight:p}=Di(r);let f=k1(t,a);const b=S1(t,l,c);return l==="center"?a==="left"?f+=c:a==="right"&&(f-=c):a==="left"?f-=Math.max(h,u)+n:a==="right"&&(f+=Math.max(d,p)+n),{x:ct(f,0,i.width-t.width),y:ct(b,0,i.height-t.height)}}function Qr(s,t,e){const i=ht(e.padding);return t==="center"?s.x+s.width/2:t==="right"?s.x+s.width-i.right:s.x+i.left}function sg(s){return xe([],Le(s))}function O1(s,t,e){return ii(s,{tooltip:t,tooltipItems:e,type:"tooltip"})}function ng(s,t){const e=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return e?s.override(e):s}class Wc extends Ut{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart||t._chart,this._chart=this.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const e=this.chart,i=this.options.setContext(this.getContext()),n=i.enabled&&e.options.animation&&i.animations,o=new Ec(this.chart,n);return n._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=O1(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,e){const{callbacks:i}=e,n=i.beforeTitle.apply(this,[t]),o=i.title.apply(this,[t]),r=i.afterTitle.apply(this,[t]);let a=[];return a=xe(a,Le(n)),a=xe(a,Le(o)),a=xe(a,Le(r)),a}getBeforeBody(t,e){return sg(e.callbacks.beforeBody.apply(this,[t]))}getBody(t,e){const{callbacks:i}=e,n=[];return U(t,o=>{const r={before:[],lines:[],after:[]},a=ng(i,o);xe(r.before,Le(a.beforeLabel.call(this,o))),xe(r.lines,a.label.call(this,o)),xe(r.after,Le(a.afterLabel.call(this,o))),n.push(r)}),n}getAfterBody(t,e){return sg(e.callbacks.afterBody.apply(this,[t]))}getFooter(t,e){const{callbacks:i}=e,n=i.beforeFooter.apply(this,[t]),o=i.footer.apply(this,[t]),r=i.afterFooter.apply(this,[t]);let a=[];return a=xe(a,Le(n)),a=xe(a,Le(o)),a=xe(a,Le(r)),a}_createItems(t){const e=this._active,i=this.chart.data,n=[],o=[],r=[];let a=[],l,c;for(l=0,c=e.length;lt.filter(h,d,u,i))),t.itemSort&&(a=a.sort((h,d)=>t.itemSort(h,d,i))),U(a,h=>{const d=ng(t.callbacks,h);n.push(d.labelColor.call(this,h)),o.push(d.labelPointStyle.call(this,h)),r.push(d.labelTextColor.call(this,h))}),this.labelColors=n,this.labelPointStyles=o,this.labelTextColors=r,this.dataPoints=a,a}update(t,e){const i=this.options.setContext(this.getContext()),n=this._active;let o,r=[];if(!n.length)this.opacity!==0&&(o={opacity:0});else{const a=qn[i.position].call(this,n,this._eventPosition);r=this._createItems(i),this.title=this.getTitle(r,i),this.beforeBody=this.getBeforeBody(r,i),this.body=this.getBody(r,i),this.afterBody=this.getAfterBody(r,i),this.footer=this.getFooter(r,i);const l=this._size=tg(this,i),c=Object.assign({},a,l),h=eg(this.chart,i,c),d=ig(i,c,h,this.chart);this.xAlign=h.xAlign,this.yAlign=h.yAlign,o={opacity:1,x:d.x,y:d.y,width:l.width,height:l.height,caretX:a.x,caretY:a.y}}this._tooltipItems=r,this.$context=void 0,o&&this._resolveAnimations().update(this,o),t&&i.external&&i.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,i,n){const o=this.getCaretPosition(t,i,n);e.lineTo(o.x1,o.y1),e.lineTo(o.x2,o.y2),e.lineTo(o.x3,o.y3)}getCaretPosition(t,e,i){const{xAlign:n,yAlign:o}=this,{caretSize:r,cornerRadius:a}=i,{topLeft:l,topRight:c,bottomLeft:h,bottomRight:d}=Di(a),{x:u,y:p}=t,{width:f,height:b}=e;let v,y,T,x,E,C;return o==="center"?(E=p+b/2,n==="left"?(v=u,y=v-r,x=E+r,C=E-r):(v=u+f,y=v+r,x=E-r,C=E+r),T=v):(n==="left"?y=u+Math.max(l,h)+r:n==="right"?y=u+f-Math.max(c,d)-r:y=this.caretX,o==="top"?(x=p,E=x-r,v=y-r,T=y+r):(x=p+b,E=x+r,v=y+r,T=y-r),C=x),{x1:v,x2:y,x3:T,y1:x,y2:E,y3:C}}drawTitle(t,e,i){const n=this.title,o=n.length;let r,a,l;if(o){const c=Cs(i.rtl,this.x,this.width);for(t.x=Qr(this,i.titleAlign,i),e.textAlign=c.textAlign(i.titleAlign),e.textBaseline="middle",r=lt(i.titleFont),a=i.titleSpacing,e.fillStyle=i.titleColor,e.font=r.string,l=0;lx!==0)?(t.beginPath(),t.fillStyle=o.multiKeyBackground,Ln(t,{x:v,y:b,w:c,h:l,radius:T}),t.fill(),t.stroke(),t.fillStyle=r.backgroundColor,t.beginPath(),Ln(t,{x:y,y:b+1,w:c-2,h:l-2,radius:T}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(v,b,c,l),t.strokeRect(v,b,c,l),t.fillStyle=r.backgroundColor,t.fillRect(y,b+1,c-2,l-2))}t.fillStyle=this.labelTextColors[i]}drawBody(t,e,i){const{body:n}=this,{bodySpacing:o,bodyAlign:r,displayColors:a,boxHeight:l,boxWidth:c,boxPadding:h}=i,d=lt(i.bodyFont);let u=d.lineHeight,p=0;const f=Cs(i.rtl,this.x,this.width),b=function(S){e.fillText(S,f.x(t.x+p),t.y+u/2),t.y+=u+o},v=f.textAlign(r);let y,T,x,E,C,A,w;for(e.textAlign=r,e.textBaseline="middle",e.font=d.string,t.x=Qr(this,v,i),e.fillStyle=i.bodyColor,U(this.beforeBody,b),p=a&&v!=="right"?r==="center"?c/2+h:c+2+h:0,E=0,A=n.length;E0&&e.stroke()}_updateAnimationTarget(t){const e=this.chart,i=this.$animations,n=i&&i.x,o=i&&i.y;if(n||o){const r=qn[t.position].call(this,this._active,this._eventPosition);if(!r)return;const a=this._size=tg(this,t),l=Object.assign({},r,this._size),c=eg(e,t,l),h=ig(t,l,c,e);(n._to!==h.x||o._to!==h.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=a.width,this.height=a.height,this.caretX=r.x,this.caretY=r.y,this._resolveAnimations().update(this,h))}}_willRender(){return!!this.opacity}draw(t){const e=this.options.setContext(this.getContext());let i=this.opacity;if(!i)return;this._updateAnimationTarget(e);const n={width:this.width,height:this.height},o={x:this.x,y:this.y};i=Math.abs(i)<.001?0:i;const r=ht(e.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;e.enabled&&a&&(t.save(),t.globalAlpha=i,this.drawBackground(o,t,n,e),$f(t,e.textDirection),o.y+=r.top,this.drawTitle(o,t,e),this.drawBody(o,t,e),this.drawFooter(o,t,e),Pf(t,e.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){const i=this._active,n=t.map(({datasetIndex:a,index:l})=>{const c=this.chart.getDatasetMeta(a);if(!c)throw new Error("Cannot find a dataset at index "+a);return{datasetIndex:a,element:c.data[l],index:l}}),o=!Or(i,n),r=this._positionChanged(n,e);(o||r)&&(this._active=n,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e,i=!0){if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const n=this.options,o=this._active||[],r=this._getActiveElements(t,o,e,i),a=this._positionChanged(r,t),l=e||!Or(r,o)||a;return l&&(this._active=r,(n.enabled||n.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),l}_getActiveElements(t,e,i,n){const o=this.options;if(t.type==="mouseout")return[];if(!n)return e;const r=this.chart.getElementsAtEventForMode(t,o.mode,o,i);return o.reverse&&r.reverse(),r}_positionChanged(t,e){const{caretX:i,caretY:n,options:o}=this,r=qn[o.position].call(this,t,e);return r!==!1&&(i!==r.x||n!==r.y)}}Wc.positioners=qn;var og={id:"tooltip",_element:Wc,positioners:qn,afterInit(s,t,e){e&&(s.tooltip=new Wc({chart:s,options:e}))},beforeUpdate(s,t,e){s.tooltip&&s.tooltip.initialize(e)},reset(s,t,e){s.tooltip&&s.tooltip.initialize(e)},afterDraw(s){const t=s.tooltip;if(t&&t._willRender()){const e={tooltip:t};if(s.notifyPlugins("beforeTooltipDraw",e)===!1)return;t.draw(s.ctx),s.notifyPlugins("afterTooltipDraw",e)}},afterEvent(s,t){if(s.tooltip){const e=t.replay;s.tooltip.handleEvent(t.event,e,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(s,t)=>t.bodyFont.size,boxWidth:(s,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:{beforeTitle:Se,title(s){if(s.length>0){const t=s[0],e=t.chart.data.labels,i=e?e.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(i>0&&t.dataIndexs!=="filter"&&s!=="itemSort"&&s!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},rg=Object.freeze({__proto__:null,Decimation:V_,Filler:X_,Legend:Z_,SubTitle:J_,Title:Q_,Tooltip:og});const D1=(s,t,e,i)=>(typeof t=="string"?(e=s.push(t)-1,i.unshift({index:e,label:t})):isNaN(t)&&(e=null),e);function I1(s,t,e,i){const n=s.indexOf(t);if(n===-1)return D1(s,t,e,i);const o=s.lastIndexOf(t);return n!==o?e:n}const M1=(s,t)=>s===null?null:ct(Math.round(s),0,t);class Zn extends si{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const e=this._addedLabels;if(e.length){const i=this.getLabels();for(const{index:n,label:o}of e)i[n]===o&&i.splice(n,1);this._addedLabels=[]}super.init(t)}parse(t,e){if(H(t))return null;const i=this.getLabels();return e=isFinite(e)&&i[e]===t?e:I1(i,t,B(e,t),this._addedLabels),M1(e,i.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let{min:i,max:n}=this.getMinMax(!0);this.options.bounds==="ticks"&&(t||(i=0),e||(n=this.getLabels().length-1)),this.min=i,this.max=n}buildTicks(){const t=this.min,e=this.max,i=this.options.offset,n=[];let o=this.getLabels();o=t===0&&e===o.length-1?o:o.slice(t,e+1),this._valueRange=Math.max(o.length-(i?0:1),1),this._startValue=this.min-(i?.5:0);for(let r=t;r<=e;r++)n.push({value:r});return n}getLabelForValue(t){const e=this.getLabels();return t>=0&&te.length-1?null:this.getPixelForValue(e[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}Zn.id="category",Zn.defaults={ticks:{callback:Zn.prototype.getLabelForValue}};function L1(s,t){const e=[],{bounds:n,step:o,min:r,max:a,precision:l,count:c,maxTicks:h,maxDigits:d,includeBounds:u}=s,p=o||1,f=h-1,{min:b,max:v}=t,y=!H(r),T=!H(a),x=!H(c),E=(v-b)/(d+1);let C=Gp((v-b)/f/p)*p,A,w,S,k;if(C<1e-14&&!y&&!T)return[{value:b},{value:v}];k=Math.ceil(v/C)-Math.floor(b/C),k>f&&(C=Gp(k*C/f/p)*p),H(l)||(A=Math.pow(10,l),C=Math.ceil(C*A)/A),n==="ticks"?(w=Math.floor(b/C)*C,S=Math.ceil(v/C)*C):(w=b,S=v),y&&T&&o&&$S((a-r)/o,C/1e3)?(k=Math.round(Math.min((a-r)/C,h)),C=(a-r)/k,w=r,S=a):x?(w=y?r:w,S=T?a:S,k=c-1,C=(S-w)/k):(k=(S-w)/C,wn(k,Math.round(k),C/1e3)?k=Math.round(k):k=Math.ceil(k));const I=Math.max(Zp(C),Zp(w));A=Math.pow(10,H(l)?I:l),w=Math.round(w*A)/A,S=Math.round(S*A)/A;let O=0;for(y&&(u&&w!==r?(e.push({value:r}),wn=e?n:l,a=l=>o=i?o:l;if(t){const l=Te(n),c=Te(o);l<0&&c<0?a(0):l>0&&c>0&&r(0)}if(n===o){let l=1;(o>=Number.MAX_SAFE_INTEGER||n<=Number.MIN_SAFE_INTEGER)&&(l=Math.abs(o*.05)),a(o+l),t||r(n-l)}this.min=n,this.max=o}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:e,stepSize:i}=t,n;return i?(n=Math.ceil(this.max/i)-Math.floor(this.min/i)+1,n>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${i} would result generating up to ${n} ticks. Limiting to 1000.`),n=1e3)):(n=this.computeTickLimit(),e=e||11),e&&(n=Math.min(e,n)),n}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,e=t.ticks;let i=this.getTickLimit();i=Math.max(2,i);const n={maxTicks:i,bounds:t.bounds,min:t.min,max:t.max,precision:e.precision,step:e.stepSize,count:e.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:e.minRotation||0,includeBounds:e.includeBounds!==!1},o=this._range||this,r=L1(n,o);return t.bounds==="ticks"&&qp(r,this,"value"),t.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}configure(){const t=this.ticks;let e=this.min,i=this.max;if(super.configure(),this.options.offset&&t.length){const n=(i-e)/Math.max(t.length-1,1)/2;e-=n,i+=n}this._startValue=e,this._endValue=i,this._valueRange=i-e}getLabelForValue(t){return $n(t,this.chart.options.locale,this.options.ticks.format)}}class ta extends Jr{determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=rt(t)?t:0,this.max=rt(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),e=t?this.width:this.height,i=ie(this.options.ticks.minRotation),n=(t?Math.sin(i):Math.cos(i))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,o.lineHeight/n))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}ta.id="linear",ta.defaults={ticks:{callback:Fn.formatters.numeric}};function lg(s){return s/Math.pow(10,Math.floor(jt(s)))===1}function $1(s,t){const e=Math.floor(jt(t.max)),i=Math.ceil(t.max/Math.pow(10,e)),n=[];let o=Wt(s.min,Math.pow(10,Math.floor(jt(t.min)))),r=Math.floor(jt(o)),a=Math.floor(o/Math.pow(10,r)),l=r<0?Math.pow(10,Math.abs(r)):1;do n.push({value:o,major:lg(o)}),++a,a===10&&(a=1,++r,l=r>=0?1:l),o=Math.round(a*Math.pow(10,r)*l)/l;while(r0?i:null}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=rt(t)?Math.max(0,t):null,this.max=rt(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let i=this.min,n=this.max;const o=l=>i=t?i:l,r=l=>n=e?n:l,a=(l,c)=>Math.pow(10,Math.floor(jt(l))+c);i===n&&(i<=0?(o(1),r(10)):(o(a(i,-1)),r(a(n,1)))),i<=0&&o(a(n,-1)),n<=0&&r(a(i,1)),this._zero&&this.min!==this._suggestedMin&&i===a(this.min,0)&&o(a(i,-1)),this.min=i,this.max=n}buildTicks(){const t=this.options,e={min:this._userMin,max:this._userMax},i=$1(e,this);return t.bounds==="ticks"&&qp(i,this,"value"),t.reverse?(i.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),i}getLabelForValue(t){return t===void 0?"0":$n(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=jt(t),this._valueRange=jt(this.max)-jt(t)}getPixelForValue(t){return(t===void 0||t===0)&&(t=this.min),t===null||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(jt(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const e=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+e*this._valueRange)}}ea.id="logarithmic",ea.defaults={ticks:{callback:Fn.formatters.logarithmic,major:{enabled:!0}}};function zc(s){const t=s.ticks;if(t.display&&s.display){const e=ht(t.backdropPadding);return B(t.font&&t.font.size,F.font.size)+e.height}return 0}function P1(s,t,e){return e=Q(e)?e:[e],{w:uO(s,t.string,e),h:e.length*t.lineHeight}}function cg(s,t,e,i,n){return s===i||s===n?{start:t-e/2,end:t+e/2}:sn?{start:t-e,end:t}:{start:t,end:t+e}}function R1(s){const t={l:s.left+s._padding.left,r:s.right-s._padding.right,t:s.top+s._padding.top,b:s.bottom-s._padding.bottom},e=Object.assign({},t),i=[],n=[],o=s._pointLabels.length,r=s.options.pointLabels,a=r.centerPointLabels?et/o:0;for(let l=0;lt.r&&(a=(i.end-t.r)/o,s.r=Math.max(s.r,t.r+a)),n.startt.b&&(l=(n.end-t.b)/r,s.b=Math.max(s.b,t.b+l))}function B1(s,t,e){const i=[],n=s._pointLabels.length,o=s.options,r=zc(o)/2,a=s.drawingArea,l=o.pointLabels.centerPointLabels?et/n:0;for(let c=0;c270||e<90)&&(s-=t),s}function W1(s,t){const{ctx:e,options:{pointLabels:i}}=s;for(let n=t-1;n>=0;n--){const o=i.setContext(s.getPointLabelContext(n)),r=lt(o.font),{x:a,y:l,textAlign:c,left:h,top:d,right:u,bottom:p}=s._pointLabelItems[n],{backdropColor:f}=o;if(!H(f)){const b=Di(o.borderRadius),v=ht(o.backdropPadding);e.fillStyle=f;const y=h-v.left,T=d-v.top,x=u-h+v.width,E=p-d+v.height;Object.values(b).some(C=>C!==0)?(e.beginPath(),Ln(e,{x:y,y:T,w:x,h:E,radius:b}),e.fill()):e.fillRect(y,T,x,E)}Oi(e,s._pointLabels[n],a,l+r.lineHeight/2,r,{color:o.color,textAlign:c,textBaseline:"middle"})}}function hg(s,t,e,i){const{ctx:n}=s;if(e)n.arc(s.xCenter,s.yCenter,t,0,q);else{let o=s.getPointPosition(0,t);n.moveTo(o.x,o.y);for(let r=1;r{const n=G(this.options.pointLabels.callback,[e,i],this);return n||n===0?n:""}).filter((e,i)=>this.chart.getDataVisibility(i))}fit(){const t=this.options;t.display&&t.pointLabels.display?R1(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,e,i,n){this.xCenter+=Math.floor((t-e)/2),this.yCenter+=Math.floor((i-n)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,e,i,n))}getIndexAngle(t){const e=q/(this._pointLabels.length||1),i=this.options.startAngle||0;return Bt(t*e+ie(i))}getDistanceFromCenterForValue(t){if(H(t))return NaN;const e=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*e:(t-this.min)*e}getValueForDistanceFromCenter(t){if(H(t))return NaN;const e=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-e:this.min+e}getPointLabelContext(t){const e=this._pointLabels||[];if(t>=0&&t{if(h!==0){a=this.getDistanceFromCenterForValue(c.value);const d=n.setContext(this.getContext(h-1));z1(this,d,a,o)}}),i.display){for(t.save(),r=o-1;r>=0;r--){const c=i.setContext(this.getPointLabelContext(r)),{color:h,lineWidth:d}=c;!d||!h||(t.lineWidth=d,t.strokeStyle=h,t.setLineDash(c.borderDash),t.lineDashOffset=c.borderDashOffset,a=this.getDistanceFromCenterForValue(e.ticks.reverse?this.min:this.max),l=this.getPointPosition(r,a),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(l.x,l.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,e=this.options,i=e.ticks;if(!i.display)return;const n=this.getIndexAngle(0);let o,r;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(n),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((a,l)=>{if(l===0&&!e.reverse)return;const c=i.setContext(this.getContext(l)),h=lt(c.font);if(o=this.getDistanceFromCenterForValue(this.ticks[l].value),c.showLabelBackdrop){t.font=h.string,r=t.measureText(a.label).width,t.fillStyle=c.backdropColor;const d=ht(c.backdropPadding);t.fillRect(-r/2-d.left,-o-h.size/2-d.top,r+d.width,h.size+d.height)}Oi(t,a.label,0,-o,h,{color:c.color})}),t.restore()}drawTitle(){}}Os.id="radialLinear",Os.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Fn.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(s){return s},padding:5,centerPointLabels:!1}},Os.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"},Os.descriptors={angleLines:{_fallback:"grid"}};const ia={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},St=Object.keys(ia);function Y1(s,t){return s-t}function dg(s,t){if(H(t))return null;const e=s._adapter,{parser:i,round:n,isoWeekday:o}=s._parseOpts;let r=t;return typeof i=="function"&&(r=i(r)),rt(r)||(r=typeof i=="string"?e.parse(r,i):e.parse(r)),r===null?null:(n&&(r=n==="week"&&(ys(o)||o===!0)?e.startOf(r,"isoWeek",o):e.startOf(r,n)),+r)}function ug(s,t,e,i){const n=St.length;for(let o=St.indexOf(s);o=St.indexOf(e);o--){const r=St[o];if(ia[r].common&&s._adapter.diff(n,i,r)>=t-1)return r}return St[e?St.indexOf(e):0]}function U1(s){for(let t=St.indexOf(s)+1,e=St.length;t=t?e[i]:e[n];s[o]=!0}}function X1(s,t,e,i){const n=s._adapter,o=+n.startOf(t[0].value,i),r=t[t.length-1].value;let a,l;for(a=o;a<=r;a=+n.add(a,1,i))l=e[a],l>=0&&(t[l].major=!0);return t}function fg(s,t,e){const i=[],n={},o=t.length;let r,a;for(r=0;r+t.value))}initOffsets(t){let e=0,i=0,n,o;this.options.offset&&t.length&&(n=this.getDecimalForValue(t[0]),t.length===1?e=1-n:e=(this.getDecimalForValue(t[1])-n)/2,o=this.getDecimalForValue(t[t.length-1]),t.length===1?i=o:i=(o-this.getDecimalForValue(t[t.length-2]))/2);const r=t.length<3?.5:.25;e=ct(e,0,r),i=ct(i,0,r),this._offsets={start:e,end:i,factor:1/(e+1+i)}}_generate(){const t=this._adapter,e=this.min,i=this.max,n=this.options,o=n.time,r=o.unit||ug(o.minUnit,e,i,this._getLabelCapacity(e)),a=B(o.stepSize,1),l=r==="week"?o.isoWeekday:!1,c=ys(l)||l===!0,h={};let d=e,u,p;if(c&&(d=+t.startOf(d,"isoWeek",l)),d=+t.startOf(d,c?"day":r),t.diff(i,e,r)>1e5*a)throw new Error(e+" and "+i+" are too far apart with stepSize of "+a+" "+r);const f=n.ticks.source==="data"&&this.getDataTimestamps();for(u=d,p=0;ub-v).map(b=>+b)}getLabelForValue(t){const e=this._adapter,i=this.options.time;return i.tooltipFormat?e.format(t,i.tooltipFormat):e.format(t,i.displayFormats.datetime)}_tickFormatFunction(t,e,i,n){const o=this.options,r=o.time.displayFormats,a=this._unit,l=this._majorUnit,c=a&&r[a],h=l&&r[l],d=i[e],u=l&&h&&d&&d.major,p=this._adapter.format(t,n||(u?h:c)),f=o.ticks.callback;return f?G(f,[p,e,i],this):p}generateTickLabels(t){let e,i,n;for(e=0,i=t.length;e0?a:1}getDataTimestamps(){let t=this._cache.data||[],e,i;if(t.length)return t;const n=this.getMatchingVisibleMetas();if(this._normalized&&n.length)return this._cache.data=n[0].controller.getAllParsedValues(this);for(e=0,i=n.length;e=s[i].pos&&t<=s[n].pos&&({lo:i,hi:n}=De(s,"pos",t)),{pos:o,time:a}=s[i],{pos:r,time:l}=s[n]):(t>=s[i].time&&t<=s[n].time&&({lo:i,hi:n}=De(s,"time",t)),{time:o,pos:a}=s[i],{time:r,pos:l}=s[n]);const c=r-o;return c?a+(l-a)*(t-o)/c:a}class na extends Ds{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(t);this._minPos=sa(e,this.min),this._tableRange=sa(e,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:e,max:i}=this,n=[],o=[];let r,a,l,c,h;for(r=0,a=t.length;r=e&&c<=i&&n.push(c);if(n.length<2)return[{time:e,pos:0},{time:i,pos:1}];for(r=0,a=n.length;re.right&&(s|=f_),te.bottom&&(s|=__),s}function qO(i,t){for(var e=i.x0,s=i.y0,n=i.x1,o=i.y1,r=Or(e,s,t),a=Or(n,o,t),l,c,h;!(!(r|a)||r&a);)l=r||a,l&g_?(c=e+(n-e)*(t.top-s)/(o-s),h=t.top):l&__?(c=e+(n-e)*(t.bottom-s)/(o-s),h=t.bottom):l&f_?(h=s+(o-s)*(t.right-e)/(n-e),c=t.right):l&p_&&(h=s+(o-s)*(t.left-e)/(n-e),c=t.left),l===r?(e=c,s=h,r=Or(e,s,t)):(n=c,o=h,a=Or(n,o,t));return{x0:e,x1:n,y0:s,y1:o}}function Dr(i,t){var e=t.anchor,s=i,n,o;return t.clamp&&(s=qO(s,t.area)),e==="start"?(n=s.x0,o=s.y0):e==="end"?(n=s.x1,o=s.y1):(n=(s.x0+s.x1)/2,o=(s.y0+s.y1)/2),XO(n,o,i.vx,i.vy,t.align)}var Ir={arc:function(i,t){var e=(i.startAngle+i.endAngle)/2,s=Math.cos(e),n=Math.sin(e),o=i.innerRadius,r=i.outerRadius;return Dr({x0:i.x+s*o,y0:i.y+n*o,x1:i.x+s*r,y1:i.y+n*r,vx:s,vy:n},t)},point:function(i,t){var e=tc(i,t.origin),s=e.x*i.options.radius,n=e.y*i.options.radius;return Dr({x0:i.x-s,y0:i.y-n,x1:i.x+s,y1:i.y+n,vx:e.x,vy:e.y},t)},bar:function(i,t){var e=tc(i,t.origin),s=i.x,n=i.y,o=0,r=0;return i.horizontal?(s=Math.min(i.x,i.base),o=Math.abs(i.base-i.x)):(n=Math.min(i.y,i.base),r=Math.abs(i.base-i.y)),Dr({x0:s,y0:n+r,x1:s+o,y1:n,vx:e.x,vy:e.y},t)},fallback:function(i,t){var e=tc(i,t.origin);return Dr({x0:i.x,y0:i.y,x1:i.x+(i.width||0),y1:i.y+(i.height||0),vx:e.x,vy:e.y},t)}},$e=Nn.rasterize;function ZO(i){var t=i.borderWidth||0,e=i.padding,s=i.size.height,n=i.size.width,o=-n/2,r=-s/2;return{frame:{x:o-e.left-t,y:r-e.top-t,w:n+e.width+t*2,h:s+e.height+t*2},text:{x:o,y:r,w:n,h:s}}}function QO(i,t){var e=t.chart.getDatasetMeta(t.datasetIndex).vScale;if(!e)return null;if(e.xCenter!==void 0&&e.yCenter!==void 0)return{x:e.xCenter,y:e.yCenter};var s=e.getBasePixel();return i.horizontal?{x:s,y:null}:{x:null,y:s}}function JO(i){return i instanceof xs?Ir.arc:i instanceof Ts?Ir.point:i instanceof Es?Ir.bar:Ir.fallback}function tD(i,t,e,s,n,o){var r=Math.PI/2;if(o){var a=Math.min(o,n/2,s/2),l=t+a,c=e+a,h=t+s-a,d=e+n-a;i.moveTo(t,c),ls.x+s.w+e*2||i.y>s.y+s.h+e*2)},intersects:function(i){var t=this._points(),e=i._points(),s=[Mr(t[0],t[1]),Mr(t[0],t[3])],n,o,r;for(this._rotation!==i._rotation&&s.push(Mr(e[0],e[1]),Mr(e[0],e[3])),n=0;n=0;--e)for(n=i[e].$layout,s=e-1;s>=0&&n._visible;--s)o=i[s].$layout,o._visible&&n._box.intersects(o._box)&&t(n,o);return i}function lD(i){var t,e,s,n,o,r,a;for(t=0,e=i.length;tl.getProps([c],!0)[c]}),o=s.geometry(),r=y_(a,s.model(),o),n._box.update(r,o,s.rotation()));return aD(i,function(l,c){var h=l._hidable,d=c._hidable;h&&d||d?c._visible=!1:h&&(l._visible=!1)})}var Hn={prepare:function(i){var t=[],e,s,n,o,r;for(e=0,n=i.length;e=0;--e)if(s=i[e].$layout,s&&s._visible&&s._box.contains(t))return i[e];return null},draw:function(i,t){var e,s,n,o,r,a;for(e=0,s=t.length;ee.right&&(i|=bg),te.bottom&&(i|=vg),i}function Q1(s,t){for(var e=s.x0,i=s.y0,n=s.x1,o=s.y1,r=oa(e,i,t),a=oa(n,o,t),l,c,h;!(!(r|a)||r&a);)l=r||a,l&yg?(c=e+(n-e)*(t.top-i)/(o-i),h=t.top):l&vg?(c=e+(n-e)*(t.bottom-i)/(o-i),h=t.bottom):l&bg?(h=i+(o-i)*(t.right-e)/(n-e),c=t.right):l&mg&&(h=i+(o-i)*(t.left-e)/(n-e),c=t.left),l===r?(e=c,i=h,r=oa(e,i,t)):(n=c,o=h,a=oa(n,o,t));return{x0:e,x1:n,y0:i,y1:o}}function ra(s,t){var e=t.anchor,i=s,n,o;return t.clamp&&(i=Q1(i,t.area)),e==="start"?(n=i.x0,o=i.y0):e==="end"?(n=i.x1,o=i.y1):(n=(i.x0+i.x1)/2,o=(i.y0+i.y1)/2),q1(n,o,s.vx,s.vy,t.align)}var aa={arc:function(s,t){var e=(s.startAngle+s.endAngle)/2,i=Math.cos(e),n=Math.sin(e),o=s.innerRadius,r=s.outerRadius;return ra({x0:s.x+i*o,y0:s.y+n*o,x1:s.x+i*r,y1:s.y+n*r,vx:i,vy:n},t)},point:function(s,t){var e=jc(s,t.origin),i=e.x*s.options.radius,n=e.y*s.options.radius;return ra({x0:s.x-i,y0:s.y-n,x1:s.x+i,y1:s.y+n,vx:e.x,vy:e.y},t)},bar:function(s,t){var e=jc(s,t.origin),i=s.x,n=s.y,o=0,r=0;return s.horizontal?(i=Math.min(s.x,s.base),o=Math.abs(s.base-s.x)):(n=Math.min(s.y,s.base),r=Math.abs(s.base-s.y)),ra({x0:i,y0:n+r,x1:i+o,y1:n,vx:e.x,vy:e.y},t)},fallback:function(s,t){var e=jc(s,t.origin);return ra({x0:s.x,y0:s.y,x1:s.x+(s.width||0),y1:s.y+(s.height||0),vx:e.x,vy:e.y},t)}},$e=Qn.rasterize;function J1(s){var t=s.borderWidth||0,e=s.padding,i=s.size.height,n=s.size.width,o=-n/2,r=-i/2;return{frame:{x:o-e.left-t,y:r-e.top-t,w:n+e.width+t*2,h:i+e.height+t*2},text:{x:o,y:r,w:n,h:i}}}function tM(s,t){var e=t.chart.getDatasetMeta(t.datasetIndex).vScale;if(!e)return null;if(e.xCenter!==void 0&&e.yCenter!==void 0)return{x:e.xCenter,y:e.yCenter};var i=e.getBasePixel();return s.horizontal?{x:i,y:null}:{x:null,y:i}}function eM(s){return s instanceof ws?aa.arc:s instanceof ks?aa.point:s instanceof Ss?aa.bar:aa.fallback}function iM(s,t,e,i,n,o){var r=Math.PI/2;if(o){var a=Math.min(o,n/2,i/2),l=t+a,c=e+a,h=t+i-a,d=e+n-a;s.moveTo(t,c),li.x+i.w+e*2||s.y>i.y+i.h+e*2)},intersects:function(s){var t=this._points(),e=s._points(),i=[la(t[0],t[1]),la(t[0],t[3])],n,o,r;for(this._rotation!==s._rotation&&i.push(la(e[0],e[1]),la(e[0],e[3])),n=0;n=0;--e)for(n=s[e].$layout,i=e-1;i>=0&&n._visible;--i)o=s[i].$layout,o._visible&&n._box.intersects(o._box)&&t(n,o);return s}function hM(s){var t,e,i,n,o,r,a;for(t=0,e=s.length;tl.getProps([c],!0)[c]}),o=i.geometry(),r=Cg(a,i.model(),o),n._box.update(r,o,i.rotation()));return cM(s,function(l,c){var h=l._hidable,d=c._hidable;h&&d||d?c._visible=!1:h&&(l._visible=!1)})}var to={prepare:function(s){var t=[],e,i,n,o,r;for(e=0,n=s.length;e=0;--e)if(i=s[e].$layout,i&&i._visible&&i._box.contains(t))return s[e];return null},draw:function(s,t){var e,i,n,o,r,a;for(e=0,i=t.length;e

+## LTR/RTL + +`ltr` and `rtl` allows you to mix your contents. Many RTL language users want to include parts of the content in LTR. Using this shortcode will let you do so, and by leveraging `%` as the outer-most dilemeter in the shortcode [Hugo shortcodes](https://gohugo.io/content-management/shortcodes/#shortcodes-with-markdown), any markdown inside will be rendered normally. + +**Example:** + +```md +- This is an markdown list. +- Its per default a LTR direction +{{%/* rtl */%}} +- هذه القائمة باللغة العربية +- من اليمين الى اليسار +{{%/* /rtl */%}} +``` + +- This is an markdown list. +- Its per default a LTR direction +{{% rtl %}} +- هذه القائمة باللغة العربية +- من اليمين الى اليسار +{{% /rtl %}} + +


+ ## Mermaid `mermaid` allows you to draw detailed diagrams and visualisations using text. It uses Mermaid under the hood and supports a wide variety of diagrams, charts and other output formats. diff --git a/exampleSite/content/examples/blowfish-tutorial/_index.md b/exampleSite/content/examples/blowfish-tutorial/_index.md new file mode 100755 index 00000000..2eed21b0 --- /dev/null +++ b/exampleSite/content/examples/blowfish-tutorial/_index.md @@ -0,0 +1,5 @@ +--- +title: "Blowfish Tutorial" +date: 2023-10-02 +externalUrl: "hhttps://blowfish-tutorial.web.app/" +--- \ No newline at end of file diff --git a/exampleSite/content/examples/blowfish-tutorial/featured.png b/exampleSite/content/examples/blowfish-tutorial/featured.png new file mode 100644 index 00000000..d33fa603 Binary files /dev/null and b/exampleSite/content/examples/blowfish-tutorial/featured.png differ diff --git a/exampleSite/content/examples/repo-blowfish-tutorial/_index.md b/exampleSite/content/examples/repo-blowfish-tutorial/_index.md new file mode 100755 index 00000000..d63db7d3 --- /dev/null +++ b/exampleSite/content/examples/repo-blowfish-tutorial/_index.md @@ -0,0 +1,5 @@ +--- +title: "Blowfish Tutorial - Repo" +date: 2023-10-01 +externalUrl: "https://github.com/nunocoracao/blowfish-tutorial" +--- \ No newline at end of file diff --git a/exampleSite/content/examples/repo-blowfish-tutorial/featured.png b/exampleSite/content/examples/repo-blowfish-tutorial/featured.png new file mode 100644 index 00000000..d33fa603 Binary files /dev/null and b/exampleSite/content/examples/repo-blowfish-tutorial/featured.png differ diff --git a/exampleSite/content/guides/202310-blowfish-tutorial/.Ulysses-Group.plist b/exampleSite/content/guides/202310-blowfish-tutorial/.Ulysses-Group.plist new file mode 100644 index 00000000..d56e8b31 Binary files /dev/null and b/exampleSite/content/guides/202310-blowfish-tutorial/.Ulysses-Group.plist differ diff --git a/exampleSite/content/guides/202310-blowfish-tutorial/.Ulysses-Settings.plist b/exampleSite/content/guides/202310-blowfish-tutorial/.Ulysses-Settings.plist new file mode 100644 index 00000000..de8ff91b --- /dev/null +++ b/exampleSite/content/guides/202310-blowfish-tutorial/.Ulysses-Settings.plist @@ -0,0 +1,14 @@ + + + + + defaultPathExtensions + md + enforceFencedCodeBlocks + + sheetFormat + foreign + useInlineLinks + + + diff --git a/exampleSite/content/guides/202310-blowfish-tutorial/background.png b/exampleSite/content/guides/202310-blowfish-tutorial/background.png new file mode 100644 index 00000000..55bc9bbd Binary files /dev/null and b/exampleSite/content/guides/202310-blowfish-tutorial/background.png differ diff --git a/exampleSite/content/guides/202310-blowfish-tutorial/featured.png b/exampleSite/content/guides/202310-blowfish-tutorial/featured.png new file mode 100644 index 00000000..1678bdf7 Binary files /dev/null and b/exampleSite/content/guides/202310-blowfish-tutorial/featured.png differ diff --git a/exampleSite/content/guides/202310-blowfish-tutorial/img/01.png b/exampleSite/content/guides/202310-blowfish-tutorial/img/01.png new file mode 100644 index 00000000..2455b815 Binary files /dev/null and b/exampleSite/content/guides/202310-blowfish-tutorial/img/01.png differ diff --git a/exampleSite/content/guides/202310-blowfish-tutorial/img/article.png b/exampleSite/content/guides/202310-blowfish-tutorial/img/article.png new file mode 100644 index 00000000..3e44d828 Binary files /dev/null and b/exampleSite/content/guides/202310-blowfish-tutorial/img/article.png differ diff --git a/exampleSite/content/guides/202310-blowfish-tutorial/img/background.jpg b/exampleSite/content/guides/202310-blowfish-tutorial/img/background.jpg new file mode 100644 index 00000000..ebf9f96d Binary files /dev/null and b/exampleSite/content/guides/202310-blowfish-tutorial/img/background.jpg differ diff --git a/exampleSite/content/guides/202310-blowfish-tutorial/img/blowfishempty.png b/exampleSite/content/guides/202310-blowfish-tutorial/img/blowfishempty.png new file mode 100644 index 00000000..80e6233d Binary files /dev/null and b/exampleSite/content/guides/202310-blowfish-tutorial/img/blowfishempty.png differ diff --git a/exampleSite/content/guides/202310-blowfish-tutorial/img/blowfishnoarticles.png b/exampleSite/content/guides/202310-blowfish-tutorial/img/blowfishnoarticles.png new file mode 100644 index 00000000..77f3bd73 Binary files /dev/null and b/exampleSite/content/guides/202310-blowfish-tutorial/img/blowfishnoarticles.png differ diff --git a/exampleSite/content/guides/202310-blowfish-tutorial/img/blowfishrecent.png b/exampleSite/content/guides/202310-blowfish-tutorial/img/blowfishrecent.png new file mode 100644 index 00000000..e3ac1c87 Binary files /dev/null and b/exampleSite/content/guides/202310-blowfish-tutorial/img/blowfishrecent.png differ diff --git a/exampleSite/content/guides/202310-blowfish-tutorial/img/firebasecli.png b/exampleSite/content/guides/202310-blowfish-tutorial/img/firebasecli.png new file mode 100644 index 00000000..5ac48990 Binary files /dev/null and b/exampleSite/content/guides/202310-blowfish-tutorial/img/firebasecli.png differ diff --git a/exampleSite/content/guides/202310-blowfish-tutorial/img/firebaseconsole.png b/exampleSite/content/guides/202310-blowfish-tutorial/img/firebaseconsole.png new file mode 100644 index 00000000..6097818b Binary files /dev/null and b/exampleSite/content/guides/202310-blowfish-tutorial/img/firebaseconsole.png differ diff --git a/exampleSite/content/guides/202310-blowfish-tutorial/img/firebaseoptions.png b/exampleSite/content/guides/202310-blowfish-tutorial/img/firebaseoptions.png new file mode 100644 index 00000000..99378ea1 Binary files /dev/null and b/exampleSite/content/guides/202310-blowfish-tutorial/img/firebaseoptions.png differ diff --git a/exampleSite/content/guides/202310-blowfish-tutorial/img/ghcreate.png b/exampleSite/content/guides/202310-blowfish-tutorial/img/ghcreate.png new file mode 100644 index 00000000..1b8f96aa Binary files /dev/null and b/exampleSite/content/guides/202310-blowfish-tutorial/img/ghcreate.png differ diff --git a/exampleSite/content/guides/202310-blowfish-tutorial/img/githubactions.png b/exampleSite/content/guides/202310-blowfish-tutorial/img/githubactions.png new file mode 100644 index 00000000..6cc58d86 Binary files /dev/null and b/exampleSite/content/guides/202310-blowfish-tutorial/img/githubactions.png differ diff --git a/exampleSite/content/guides/202310-blowfish-tutorial/img/profile.jpg b/exampleSite/content/guides/202310-blowfish-tutorial/img/profile.jpg new file mode 100644 index 00000000..b6c43585 Binary files /dev/null and b/exampleSite/content/guides/202310-blowfish-tutorial/img/profile.jpg differ diff --git a/exampleSite/content/guides/202310-blowfish-tutorial/img/search.png b/exampleSite/content/guides/202310-blowfish-tutorial/img/search.png new file mode 100644 index 00000000..7a5bc5c3 Binary files /dev/null and b/exampleSite/content/guides/202310-blowfish-tutorial/img/search.png differ diff --git a/exampleSite/content/guides/202310-blowfish-tutorial/img/tag.png b/exampleSite/content/guides/202310-blowfish-tutorial/img/tag.png new file mode 100644 index 00000000..1fe8f083 Binary files /dev/null and b/exampleSite/content/guides/202310-blowfish-tutorial/img/tag.png differ diff --git a/exampleSite/content/guides/202310-blowfish-tutorial/index.md b/exampleSite/content/guides/202310-blowfish-tutorial/index.md new file mode 100644 index 00000000..b58aa0ad --- /dev/null +++ b/exampleSite/content/guides/202310-blowfish-tutorial/index.md @@ -0,0 +1,410 @@ +--- +title: "Build your homepage using Blowfish and Hugo" +summary: "Just one year ago, I created Blowfish, a Hugo theme crafted to build my unique vision for my personal homepage. I also decided to make it an open-source project. Fast-forward to today, and Blowfish has transformed into a thriving open-source project with over 600 stars on GitHub and a user base of hundreds. In this tutorial, I’ll show you how to get started and have your website running in a couple of minutes." +description: "Just one year ago, I created Blowfish, a Hugo theme crafted to build my unique vision for my personal homepage. I also decided to make it an open-source project. Fast-forward to today, and Blowfish has transformed into a thriving open-source project with over 600 stars on GitHub and a user base of hundreds. In this tutorial, I’ll show you how to get started and have your website running in a couple of minutes." +categories: ["Open-Source", "Blowfish"] +tags: ["tutorial", "blowfish", "hugo"] +externalUrl: "https://nunocoracao.com/posts/202310-blowfish-tutorial/" +date: 2023-10-04 +draft: false +showauthor: false +authors: + - nunocoracao +--- + +Just one year ago, I created[Blowfish](https://blowfish.page/), a [Hugo](https://gohugo.io/) theme crafted to build my unique vision for my personal homepage. I also decided to make it an open-source project. Fast-forward to today, and Blowfish has transformed into a thriving open-source project with over 600 stars on GitHub and a user base of hundreds. In this tutorial, I’ll show you how to get started and have your website running in a couple of minutes. + +{{< github repo="nunocoracao/blowfish" >}} + +## TL;DR + +The goal of this guide is to walk a newcomer to Hugo on how to install, manage, and publish your own website. The final version of the code is available in this [repo](https://github.com/nunocoracao/blowfish-tutorial/tree/main) - for those that would like to jump to the end. + +![Tutorial example](img/01.png) + +The visual style is just one of the many possibilities available in Blowfish. Users are encouraged to check the [documentation page](https://blowfish.page/) and learn how to customize the theme to their needs. Additionally, there are already [great examples](https://blowfish.page/users/) of the theme from other users available for inspiration. Blowfish also offers several extra features in the form of `shortcodes` available out of the box in the theme - check them out [here](https://blowfish.page/docs/shortcodes/) and get inspired. + +## Setup your environment + +Let’s begin by installing all the tools you need. This guide will cover the steps for Mac so these instructions might not apply to your hardware and OS. If you are on Windows or Linux, please consult the guides on how to [install Hugo](https://gohugo.io/installation/), and [GitHub’s CLI](https://cli.github.com/) for your OS. + +Anyway, if you are using MacOS let’s install `brew` - a package manager for mac - as that will help installing and managing the other tools. + +```bash +/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" +``` + +Once `brew` is installed let’s install Git, Hugo and GitHub’s CLI. +```bash +brew install git +brew install hugo +brew install gh +``` + +Create a folder for your code and open a terminal session into it (I chose _blowfish-tutorial_ in the commands below, feel free to call the folder whatever you want). +```bash +mkdir blowfish-tutorial +cd blowfish-tutorial +``` + +Once inside the folder, the next step is to initialize your local `git` repo. +```bash +git init -b main +``` + +Now, let’s create and sync the local repo to a GitHub repo so that your code is stored remotely. +```bash +gh auth login +gh repo create +git push --set-upstream origin main +``` + +Check the image below for the options I selected for this guide, again feel free to change names and description to your use-case. + +![gh repo create example](img/ghcreate.png) + + +Finally, create a **.gitignore** file which allows you to exclude certain files from your repo automatically. I would start with something like the example below. + +```bash +#others +node_modules +.hugo_build.lock + +# OS generated files +.DS_Store +.DS_Store? +._* +.Spotlight-V100 +.Trashes + +# Hugo +public +``` + +The last step is to save all the changes to the repo. +```bash +git add . +git commit -m “initial commit” +git push +``` + + +## Create site and configure it + +With all the tools ready, creating and configuring your site will be easy. Still within the folder you created in the last section, let’s create an empty Hugo website (_with no theme_). + +```bash +hugo new site --force . +``` + +Once the scaffolding finishes, try the command below to run your page. Open a browser on _[https://localhost:1313](https://localhost:1313)_ to see your site… + +```bash +hugo server +``` + + Ups… Page not found – right? +This was expected, even though you created a website, Hugo doesn’t give any default experience – aka your site doesn’t have any page to show. + +Next step, let's install Blowfish using `git submodules` which will make it easier to manage and upgrade to new versions in the future. + +```bash +git submodule add -b main https://github.com/nunocoracao/blowfish.git themes/blowfish +``` + +Next, create the following folder structure at the root of your code directory - `config/_default/`. Now you will need to download [these files](https://minhaskamal.github.io/DownGit/#/home?url=https:%2F%2Fgithub.com%2Fnunocoracao%2Fblowfish%2Ftree%2Fmain%2Fconfig%2F%5C_default) and place them in _\_default_ folder you just created. The final structure should look something like this. + +```md +config/_default/ +├─ config.toml +├─ languages.en.toml +├─ markup.toml +├─ menus.en.toml +└─ params.toml +` +``` + + +Open the **config.toml** and uncomment the line **theme = "blowfish”** and you are ready to go. Try the running the site again and check the result at _[https://localhost:1313](https://localhost:1313)_ + +```bash +hugo server +``` + +You should see something like the image below. Not much yet as we didn’t add any content, but the main skeleton for Blowfish is already in place - just requires configuration. + +![blowfish empty site](img/blowfishempty.png) + +Now let’s configure the theme. + +{{< alert d>}} +**FYI** This guide will not cover in detail what each parameter available in Blowfish does – for everything available and how to use it, check [Blowfish documentation](https://blowfish.page/docs/configuration/#theme-parameters) for every option in every file. +{{< /alert >}} + +### menus.en.toml +This file defines your menu structure, for the top banner and the footer. For this guide, let’s create two menu sections: one for _Posts_ and one for _Tags_. +- **Posts** - will display the full list of entries +- **Tags** - automatically generated based on tags placed on each article + +To achieve this, make sure the following entries exist in the **menus.en.toml** file. Once the changes are done, you should see the menus appearing by re-running **hugo server**. + +```toml +[[main]] + name = "Posts" + pageRef = "posts" + weight = 10 + +[[main]] + name = "Tags" + pageRef = "tags" + weight = 30 +``` + + +### languages.en.toml + +This file will configure your main details as the author of the website. Change the section below to reflect your details. + +```bash +[author] + name = "Your name here" + image = "profile.jpg" + headline = "I'm only human" + bio = "A little bit about you" # appears in author card for each article +``` + +The images for the website should be placed in the _assets_ folder. For this step, please add a profile picture to that folder named _profile.jpg_ or change the configuration above to the filename you chose. If you don’t have a profile image available, you can use the one below for the tutorial. + +![profile](img/profile.jpg "assets/profile.jpg") + +The last step is configuring your links – social media, GitHub, etc. The file includes all the supported options, but they are commented. You are welcome to uncomment everything and delete the ones you would rather not use. Replace the right links on the ones you decided to keep. You can also change the order. + + + +### params.toml + +This is the main configuration file for Blowfish. Most of the visual options or customization available can be configured using it, and it covers several areas of the theme. For this tutorial, I decided to use a **background** layout - [check other layouts for Blowfish’s landing page](https://blowfish.page/) - with the **Neon** color scheme - you can pick a different color scheme if you want to - check [this list](https://blowfish.page/docs/getting-started/#colour-schemes) or [create your own](https://blowfish.page/docs/advanced-customisation/#colour-schemes). + +Add an **image.jpg** to the assets folder which will be the background for the site. You can also download the examples I am using in this tutorial. + +![background](img/background.jpg "assets/image.jpg") + +Now let’s jump into the _params.toml_ and start configuring the file. I will focus only on the values that need to be changed, don’t delete the rest of the file without reading the docs. Let’s begin by making sure that we have the right color scheme, that image optimization is on, and configure the default background image. + +```bash +colorScheme = "neon" +disableImageOptimization = false +defaultBackgroundImage = "image.jpg" # used as default for background images +``` + +Next, let's configure our homepage. We’re going with the _background_ layout, configuring the homepage image and recent items. Furthermore, we are using the **card view** for items in the recent category. Finally, let’s configure the header to be fixed. + +```bash +[homepage] + layout = "background" # valid options: page, profile, hero, card, background, custom + homepageImage = "image.jpg" # used in: hero, and card + showRecent = true + showRecentItems = 6 + showMoreLink = true + showMoreLinkDest = "/posts" + cardView = true + cardViewScreenWidth = false + layoutBackgroundBlur = true # only used when layout equals background + +[header] + layout = "fixed" +``` + +Now configure how the article and list pages will look. Here are the configurations for those. + +```bash +[article] + showHero = true + heroStyle = "background" + showSummary = true + showTableOfContents = true + showRelatedContent = true + relatedContentLimit = 3 + +[list] + showCards = true + groupByYear = false + cardView = true +``` + + +If you run **hugo server** again, you should see something like the image below. + + +![blowfish no articles](img/blowfishnoarticles.png) + + + +## Adding content to your site + +Create a folder to place your posts in `/content/posts`. This was also the directory configured in your menu to list all the articles. Within that folder, let’s create a new directory and give it the name **myfirstpost**. Within it create an **index.md** file – your article and place a featured.jpg or .png for in the same directory as the thumbnail for the article. Use the example below to get started. The first lines in the file are the Front Matter, which tell Hugo what the look and experience of the article will be – different themes support different params for this. Check the [docs](https://blowfish.page/docs/front-matter/) for more info. + +```md +--- +title: "My first post" +date: 2023-08-14 +draft: false +summary: "This is my first post on my site" +tags: ["space"] +--- + +## A sub-title + +Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi nibh nisl, vulputate eu lacus vitae, maximus molestie libero. Vestibulum laoreet, odio et sollicitudin sollicitudin, quam ligula tempus urna, sed sagittis eros eros ac felis. In tristique tortor vitae lacinia commodo. Mauris venenatis ultrices purus nec fermentum. Nunc sit amet aliquet metus. Morbi nisl felis, gravida ac consequat vitae, blandit eu libero. Curabitur porta est in dui elementum porttitor. Maecenas fermentum, tortor ac feugiat fringilla, orci sem sagittis massa, a congue risus ipsum vel massa. Aliquam sit amet nunc vulputate, facilisis neque in, faucibus nisl. +``` + +You can create additional articles to see what your site will look like once there is content in it. Your site should look like the images below. The main page shows the recent articles, each article is connected through others automatically via related section, you have tag aggregation, and full-text search. + +{{< gallery >}} + + + + +{{< /gallery >}} + + +## Ship it + +The only thing missing is to ship your site. I will be using [Firebase](https://firebase.google.com/) for hosting - it’s a free alternative and provides more advanced features if you are creating something more complex. Go to firebase and create a new project. Once that is done, let’s switch to the CLI as it will make it easier to configure everything. + +Let’s install firebase’s CLI - if not on Mac check [install instructions on Firebase](https://firebase.google.com/docs/cli). +```bash +brew install firebase +``` + +Now log in and init firebase hosting for the project. + +```bash +firebase login +firebase init +``` + +Select hosting and proceed. + +![firebase init](img/firebasecli.png) + +Follow the image below for the options I recommend. Make sure to set up the workflow files for GitHub actions. These will guarantee that your code will be deployed once there is a change to the repo. + +![firebase options](img/firebaseoptions.png) + +However, those files will not work out-of-box, as Hugo requires extra steps for the build to work. Please copy and paste the code blocks below to the respective files within the **.github** folder, but keep the original **projectId** in the files generated by firebase. + +### firebase-hosting-merge.yml +```yaml +# This file was auto-generated by the Firebase CLI +# https://github.com/firebase/firebase-tools + +name: Deploy to Firebase Hosting on merge +'on': + push: + branches: + - main +jobs: + build_and_deploy: + runs-on: ubuntu-latest + steps: + - name: Hugo setup + uses: peaceiris/actions-hugo@v2.6.0 + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' + + - name: Check out code into the Go module directory + uses: actions/checkout@v4 + with: + submodules: true # Fetch Hugo themes (true OR recursive) + fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod + + - name: Build with Hugo + env: + # For maximum backward compatibility with Hugo modules + HUGO_ENVIRONMENT: production + HUGO_ENV: production + run: hugo -E -F --minify -d public + + - name: Deploy Production + uses: FirebaseExtended/action-hosting-deploy@v0 + with: + repoToken: '${{ secrets.GITHUB_TOKEN }}' + firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_BLOWFISH_TUTORIAL }}' + channelId: live + projectId: blowfish-tutorial + +``` + + +### firebase-hosting-pull-request.yml +```yaml +# This file was auto-generated by the Firebase CLI +# https://github.com/firebase/firebase-tools + +name: Deploy to Firebase Hosting on PR +'on': pull_request +jobs: + build_and_preview: + if: '${{ github.event.pull_request.head.repo.full_name == github.repository }}' + runs-on: ubuntu-latest + steps: + - name: Hugo setup + uses: peaceiris/actions-hugo@v2.6.0 + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' + + - name: Check out code into the Go module directory + uses: actions/checkout@v4 + with: + submodules: true # Fetch Hugo themes (true OR recursive) + fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod + + - name: Build with Hugo + env: + # For maximum backward compatibility with Hugo modules + HUGO_ENVIRONMENT: production + HUGO_ENV: production + run: hugo -E -F --minify -d public + + - name: Deploy preview + uses: FirebaseExtended/action-hosting-deploy@v0 + with: + repoToken: '${{ secrets.GITHUB_TOKEN }}' + firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_BLOWFISH_TUTORIAL }}' + expires: 30d + channelId: preview-${{ github.event.number }} + projectId: blowfish-tutorial +``` + + +The last step is committing your code to GitHub and let the workflows you created take care of deploying your site. Since we configured GitHub actions, this will trigger a job that will configure and deploy your site automatically. + +```bash +git add . +git commit -m "add github actions workflows" +git push +``` + +If the actions tab for your repo, you should see something like this. + +![gh actions](img/githubactions.png) + +Once all the steps finish, your Firebase console should show something like the image below - including the links to see your app – I got a version of this tutorial running on [https://blowfish-tutorial.web.app/](https://blowfish-tutorial.web.app/). + +![firebase console](img/firebaseconsole.png) + + +## Conclusion and Next Steps + +Now you have your first version of your homepage. You can make changes locally and once you commit your code they will automatically be reflected online. What shall you do next? I’ll leave you with some useful links to get you inspired and learn more about Blowfish and Hugo. + +- https://blowfish.page/docs/ +- https://blowfish.page/docs/configuration/ +- https://blowfish.page/docs/shortcodes/ +- https://blowfish.page/examples/ +- https://blowfish.page/users/ +- https://gohugo.io/documentation/ + +![blowfish final](img/01.png) diff --git a/exampleSite/content/users/adilhyz.github.io/feature.jpg b/exampleSite/content/users/adilhyz.github.io/feature.jpg index cd7c550c..49cde07d 100644 Binary files a/exampleSite/content/users/adilhyz.github.io/feature.jpg and b/exampleSite/content/users/adilhyz.github.io/feature.jpg differ diff --git a/exampleSite/content/users/adir1.com/feature.jpg b/exampleSite/content/users/adir1.com/feature.jpg index 7cf1b5d7..085ba612 100644 Binary files a/exampleSite/content/users/adir1.com/feature.jpg and b/exampleSite/content/users/adir1.com/feature.jpg differ diff --git a/exampleSite/content/users/alejandro-ao.com/feature.jpg b/exampleSite/content/users/alejandro-ao.com/feature.jpg index 2724612d..95423e47 100644 Binary files a/exampleSite/content/users/alejandro-ao.com/feature.jpg and b/exampleSite/content/users/alejandro-ao.com/feature.jpg differ diff --git a/exampleSite/content/users/blog.enmanuelmoreira.com/feature.jpg b/exampleSite/content/users/blog.enmanuelmoreira.com/feature.jpg index 0ec2d308..d2cf1241 100644 Binary files a/exampleSite/content/users/blog.enmanuelmoreira.com/feature.jpg and b/exampleSite/content/users/blog.enmanuelmoreira.com/feature.jpg differ diff --git a/exampleSite/content/users/blog.muffn.io/feature.jpg b/exampleSite/content/users/blog.muffn.io/feature.jpg index 0219119c..f3dab3b1 100644 Binary files a/exampleSite/content/users/blog.muffn.io/feature.jpg and b/exampleSite/content/users/blog.muffn.io/feature.jpg differ diff --git a/exampleSite/content/users/brendanwallace.github.io/feature.jpg b/exampleSite/content/users/brendanwallace.github.io/feature.jpg index f58dad28..1684368f 100644 Binary files a/exampleSite/content/users/brendanwallace.github.io/feature.jpg and b/exampleSite/content/users/brendanwallace.github.io/feature.jpg differ diff --git a/exampleSite/content/users/clemsau.com/feature.jpg b/exampleSite/content/users/clemsau.com/feature.jpg index 472d172c..fd2b7c0d 100644 Binary files a/exampleSite/content/users/clemsau.com/feature.jpg and b/exampleSite/content/users/clemsau.com/feature.jpg differ diff --git a/exampleSite/content/users/code-chimp.com/feature.jpg b/exampleSite/content/users/code-chimp.com/feature.jpg index 93daed63..b96414c3 100644 Binary files a/exampleSite/content/users/code-chimp.com/feature.jpg and b/exampleSite/content/users/code-chimp.com/feature.jpg differ diff --git a/exampleSite/content/users/cuttontail.blog/feature.jpg b/exampleSite/content/users/cuttontail.blog/feature.jpg index e3447a18..c7ffa321 100644 Binary files a/exampleSite/content/users/cuttontail.blog/feature.jpg and b/exampleSite/content/users/cuttontail.blog/feature.jpg differ diff --git a/exampleSite/content/users/dizzytech.de/feature.jpg b/exampleSite/content/users/dizzytech.de/feature.jpg index febb4ad8..f75390f7 100644 Binary files a/exampleSite/content/users/dizzytech.de/feature.jpg and b/exampleSite/content/users/dizzytech.de/feature.jpg differ diff --git a/exampleSite/content/users/fugugames.com/feature.jpg b/exampleSite/content/users/fugugames.com/feature.jpg index 4c06168c..930ac916 100644 Binary files a/exampleSite/content/users/fugugames.com/feature.jpg and b/exampleSite/content/users/fugugames.com/feature.jpg differ diff --git a/exampleSite/content/users/gma.name/feature.jpg b/exampleSite/content/users/gma.name/feature.jpg index 488806c2..2ae41e29 100644 Binary files a/exampleSite/content/users/gma.name/feature.jpg and b/exampleSite/content/users/gma.name/feature.jpg differ diff --git a/exampleSite/content/users/hellstabber.github.io/feature.jpg b/exampleSite/content/users/hellstabber.github.io/feature.jpg index 2a47871a..2ec8b4bd 100644 Binary files a/exampleSite/content/users/hellstabber.github.io/feature.jpg and b/exampleSite/content/users/hellstabber.github.io/feature.jpg differ diff --git a/exampleSite/content/users/jahsehj.github.io/feature.jpg b/exampleSite/content/users/jahsehj.github.io/feature.jpg index 60b19d4f..955c001b 100644 Binary files a/exampleSite/content/users/jahsehj.github.io/feature.jpg and b/exampleSite/content/users/jahsehj.github.io/feature.jpg differ diff --git a/exampleSite/content/users/loisvelasco.is-a.dev/feature.jpg b/exampleSite/content/users/loisvelasco.is-a.dev/feature.jpg index 81bea4ba..3d7b2524 100644 Binary files a/exampleSite/content/users/loisvelasco.is-a.dev/feature.jpg and b/exampleSite/content/users/loisvelasco.is-a.dev/feature.jpg differ diff --git a/exampleSite/content/users/mariuskimmina.com/feature.jpg b/exampleSite/content/users/mariuskimmina.com/feature.jpg index 6af5b9c6..8b80207d 100644 Binary files a/exampleSite/content/users/mariuskimmina.com/feature.jpg and b/exampleSite/content/users/mariuskimmina.com/feature.jpg differ diff --git a/exampleSite/content/users/nikarashihatsu.github.io/feature.jpg b/exampleSite/content/users/nikarashihatsu.github.io/feature.jpg index 70ba2681..d53789e1 100644 Binary files a/exampleSite/content/users/nikarashihatsu.github.io/feature.jpg and b/exampleSite/content/users/nikarashihatsu.github.io/feature.jpg differ diff --git a/exampleSite/content/users/niklas-hartmann-dev.de/feature.jpg b/exampleSite/content/users/niklas-hartmann-dev.de/feature.jpg index fcda1d1d..11b642e8 100644 Binary files a/exampleSite/content/users/niklas-hartmann-dev.de/feature.jpg and b/exampleSite/content/users/niklas-hartmann-dev.de/feature.jpg differ diff --git a/exampleSite/content/users/nunocoracao.com/feature.jpg b/exampleSite/content/users/nunocoracao.com/feature.jpg index 53e10726..1dd502d1 100644 Binary files a/exampleSite/content/users/nunocoracao.com/feature.jpg and b/exampleSite/content/users/nunocoracao.com/feature.jpg differ diff --git a/exampleSite/content/users/ohdmire.github.io/feature.jpg b/exampleSite/content/users/ohdmire.github.io/feature.jpg index e7f3946f..e01f861d 100644 Binary files a/exampleSite/content/users/ohdmire.github.io/feature.jpg and b/exampleSite/content/users/ohdmire.github.io/feature.jpg differ diff --git a/exampleSite/content/users/pmnxis.github.io/feature.jpg b/exampleSite/content/users/pmnxis.github.io/feature.jpg index b1ed0359..93f1a788 100644 Binary files a/exampleSite/content/users/pmnxis.github.io/feature.jpg and b/exampleSite/content/users/pmnxis.github.io/feature.jpg differ diff --git a/exampleSite/content/users/priyakdey.com/feature.jpg b/exampleSite/content/users/priyakdey.com/feature.jpg index 43aa6c44..25cd2f1e 100644 Binary files a/exampleSite/content/users/priyakdey.com/feature.jpg and b/exampleSite/content/users/priyakdey.com/feature.jpg differ diff --git a/exampleSite/content/users/rdgo.dev/feature.jpg b/exampleSite/content/users/rdgo.dev/feature.jpg index f9760916..dd3b188b 100644 Binary files a/exampleSite/content/users/rdgo.dev/feature.jpg and b/exampleSite/content/users/rdgo.dev/feature.jpg differ diff --git a/exampleSite/content/users/ricklan.photography/feature.jpg b/exampleSite/content/users/ricklan.photography/feature.jpg new file mode 100644 index 00000000..69b1a597 Binary files /dev/null and b/exampleSite/content/users/ricklan.photography/feature.jpg differ diff --git a/exampleSite/content/users/ricklan.photography/index.md b/exampleSite/content/users/ricklan.photography/index.md new file mode 100644 index 00000000..c33394fc --- /dev/null +++ b/exampleSite/content/users/ricklan.photography/index.md @@ -0,0 +1,13 @@ +--- + title: "ricklan.photography" + tags: [Personal site] + externalUrl: "https://ricklan.photography" + date: 9934-08-08 + showDate: false + showAuthor: false + showReadingTime: false + showEdit: false + showLikes: false + showViews: false + layoutBackgroundHeaderSpace: false + --- diff --git a/exampleSite/content/users/seanomahoney.com/feature.jpg b/exampleSite/content/users/seanomahoney.com/feature.jpg index c62af3ce..da1ec671 100644 Binary files a/exampleSite/content/users/seanomahoney.com/feature.jpg and b/exampleSite/content/users/seanomahoney.com/feature.jpg differ diff --git a/exampleSite/content/users/shenshu.fun/feature.jpg b/exampleSite/content/users/shenshu.fun/feature.jpg index 04438a6c..b44de0ad 100644 Binary files a/exampleSite/content/users/shenshu.fun/feature.jpg and b/exampleSite/content/users/shenshu.fun/feature.jpg differ diff --git a/exampleSite/content/users/spelucin.me/feature.jpg b/exampleSite/content/users/spelucin.me/feature.jpg index 6363592b..373ccf09 100644 Binary files a/exampleSite/content/users/spelucin.me/feature.jpg and b/exampleSite/content/users/spelucin.me/feature.jpg differ diff --git a/exampleSite/content/users/talkdimsum.com/feature.jpg b/exampleSite/content/users/talkdimsum.com/feature.jpg index 610daa1b..3af82507 100644 Binary files a/exampleSite/content/users/talkdimsum.com/feature.jpg and b/exampleSite/content/users/talkdimsum.com/feature.jpg differ diff --git a/exampleSite/content/users/theindiecoder.cloud/feature.jpg b/exampleSite/content/users/theindiecoder.cloud/feature.jpg index d13d3e3e..a666d637 100644 Binary files a/exampleSite/content/users/theindiecoder.cloud/feature.jpg and b/exampleSite/content/users/theindiecoder.cloud/feature.jpg differ diff --git a/exampleSite/content/users/users.json b/exampleSite/content/users/users.json index 822d19af..e89f948d 100644 --- a/exampleSite/content/users/users.json +++ b/exampleSite/content/users/users.json @@ -454,5 +454,12 @@ "tags": [ "Personal site" ] + }, + { + "title": "ricklan.photography", + "url": "https://ricklan.photography", + "tags": [ + "Personal site" + ] } ] \ No newline at end of file diff --git a/exampleSite/content/users/vkmki001.github.io/feature.jpg b/exampleSite/content/users/vkmki001.github.io/feature.jpg index 519ca2bb..0105e9ee 100644 Binary files a/exampleSite/content/users/vkmki001.github.io/feature.jpg and b/exampleSite/content/users/vkmki001.github.io/feature.jpg differ diff --git a/exampleSite/content/users/weaxsey.org/feature.jpg b/exampleSite/content/users/weaxsey.org/feature.jpg index b59efa37..6b1eba8b 100644 Binary files a/exampleSite/content/users/weaxsey.org/feature.jpg and b/exampleSite/content/users/weaxsey.org/feature.jpg differ diff --git a/exampleSite/resources/_gen/images/examples/blowfish-tutorial/featured_hu415a5d71a0f42d5916d55c5373dc0a37_3099900_1200x0_resize_box_3.png b/exampleSite/resources/_gen/images/examples/blowfish-tutorial/featured_hu415a5d71a0f42d5916d55c5373dc0a37_3099900_1200x0_resize_box_3.png new file mode 100644 index 00000000..d165f578 Binary files /dev/null and b/exampleSite/resources/_gen/images/examples/blowfish-tutorial/featured_hu415a5d71a0f42d5916d55c5373dc0a37_3099900_1200x0_resize_box_3.png differ diff --git a/exampleSite/resources/_gen/images/examples/blowfish-tutorial/featured_hu415a5d71a0f42d5916d55c5373dc0a37_3099900_600x0_resize_box_3.png b/exampleSite/resources/_gen/images/examples/blowfish-tutorial/featured_hu415a5d71a0f42d5916d55c5373dc0a37_3099900_600x0_resize_box_3.png new file mode 100644 index 00000000..09b36e6b Binary files /dev/null and b/exampleSite/resources/_gen/images/examples/blowfish-tutorial/featured_hu415a5d71a0f42d5916d55c5373dc0a37_3099900_600x0_resize_box_3.png differ diff --git a/exampleSite/resources/_gen/images/examples/repo-blowfish-tutorial/featured_hu415a5d71a0f42d5916d55c5373dc0a37_3099900_1200x0_resize_box_3.png b/exampleSite/resources/_gen/images/examples/repo-blowfish-tutorial/featured_hu415a5d71a0f42d5916d55c5373dc0a37_3099900_1200x0_resize_box_3.png new file mode 100644 index 00000000..d165f578 Binary files /dev/null and b/exampleSite/resources/_gen/images/examples/repo-blowfish-tutorial/featured_hu415a5d71a0f42d5916d55c5373dc0a37_3099900_1200x0_resize_box_3.png differ diff --git a/exampleSite/resources/_gen/images/examples/repo-blowfish-tutorial/featured_hu415a5d71a0f42d5916d55c5373dc0a37_3099900_600x0_resize_box_3.png b/exampleSite/resources/_gen/images/examples/repo-blowfish-tutorial/featured_hu415a5d71a0f42d5916d55c5373dc0a37_3099900_600x0_resize_box_3.png new file mode 100644 index 00000000..09b36e6b Binary files /dev/null and b/exampleSite/resources/_gen/images/examples/repo-blowfish-tutorial/featured_hu415a5d71a0f42d5916d55c5373dc0a37_3099900_600x0_resize_box_3.png differ diff --git a/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/background_hu659108b0c4ae687bd894d071d708a68e_8074604_1200x0_resize_box_3.png b/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/background_hu659108b0c4ae687bd894d071d708a68e_8074604_1200x0_resize_box_3.png new file mode 100644 index 00000000..3a987920 Binary files /dev/null and b/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/background_hu659108b0c4ae687bd894d071d708a68e_8074604_1200x0_resize_box_3.png differ diff --git a/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/featured_huc7ae5554163da83f0a1b87ca0a8436fb_147497_600x0_resize_box_3.png b/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/featured_huc7ae5554163da83f0a1b87ca0a8436fb_147497_600x0_resize_box_3.png new file mode 100644 index 00000000..f5f1c898 Binary files /dev/null and b/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/featured_huc7ae5554163da83f0a1b87ca0a8436fb_147497_600x0_resize_box_3.png differ diff --git a/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/01_hu1ff1305ed263f60df822e46fd72388cb_2360966_1024x0_resize_box_3.png b/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/01_hu1ff1305ed263f60df822e46fd72388cb_2360966_1024x0_resize_box_3.png new file mode 100644 index 00000000..bebade51 Binary files /dev/null and b/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/01_hu1ff1305ed263f60df822e46fd72388cb_2360966_1024x0_resize_box_3.png differ diff --git a/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/01_hu1ff1305ed263f60df822e46fd72388cb_2360966_1320x0_resize_box_3.png b/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/01_hu1ff1305ed263f60df822e46fd72388cb_2360966_1320x0_resize_box_3.png new file mode 100644 index 00000000..ed3bfe4a Binary files /dev/null and b/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/01_hu1ff1305ed263f60df822e46fd72388cb_2360966_1320x0_resize_box_3.png differ diff --git a/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/01_hu1ff1305ed263f60df822e46fd72388cb_2360966_330x0_resize_box_3.png b/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/01_hu1ff1305ed263f60df822e46fd72388cb_2360966_330x0_resize_box_3.png new file mode 100644 index 00000000..5e7219d6 Binary files /dev/null and b/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/01_hu1ff1305ed263f60df822e46fd72388cb_2360966_330x0_resize_box_3.png differ diff --git a/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/01_hu1ff1305ed263f60df822e46fd72388cb_2360966_660x0_resize_box_3.png b/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/01_hu1ff1305ed263f60df822e46fd72388cb_2360966_660x0_resize_box_3.png new file mode 100644 index 00000000..32e74fdc Binary files /dev/null and b/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/01_hu1ff1305ed263f60df822e46fd72388cb_2360966_660x0_resize_box_3.png differ diff --git a/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/background_hu3d03a01dcc18bc5be0e67db3d8d209a6_1561197_1024x0_resize_q75_box.jpg b/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/background_hu3d03a01dcc18bc5be0e67db3d8d209a6_1561197_1024x0_resize_q75_box.jpg new file mode 100644 index 00000000..6eb3541a Binary files /dev/null and b/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/background_hu3d03a01dcc18bc5be0e67db3d8d209a6_1561197_1024x0_resize_q75_box.jpg differ diff --git a/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/background_hu3d03a01dcc18bc5be0e67db3d8d209a6_1561197_1320x0_resize_q75_box.jpg b/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/background_hu3d03a01dcc18bc5be0e67db3d8d209a6_1561197_1320x0_resize_q75_box.jpg new file mode 100644 index 00000000..12333bc1 Binary files /dev/null and b/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/background_hu3d03a01dcc18bc5be0e67db3d8d209a6_1561197_1320x0_resize_q75_box.jpg differ diff --git a/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/background_hu3d03a01dcc18bc5be0e67db3d8d209a6_1561197_330x0_resize_q75_box.jpg b/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/background_hu3d03a01dcc18bc5be0e67db3d8d209a6_1561197_330x0_resize_q75_box.jpg new file mode 100644 index 00000000..fad11c2f Binary files /dev/null and b/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/background_hu3d03a01dcc18bc5be0e67db3d8d209a6_1561197_330x0_resize_q75_box.jpg differ diff --git a/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/background_hu3d03a01dcc18bc5be0e67db3d8d209a6_1561197_660x0_resize_q75_box.jpg b/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/background_hu3d03a01dcc18bc5be0e67db3d8d209a6_1561197_660x0_resize_q75_box.jpg new file mode 100644 index 00000000..785ce0f5 Binary files /dev/null and b/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/background_hu3d03a01dcc18bc5be0e67db3d8d209a6_1561197_660x0_resize_q75_box.jpg differ diff --git a/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/blowfishempty_hu237097f6de5e4b3f72cdbe2cb891eca7_38549_1024x0_resize_box_3.png b/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/blowfishempty_hu237097f6de5e4b3f72cdbe2cb891eca7_38549_1024x0_resize_box_3.png new file mode 100644 index 00000000..171bc123 Binary files /dev/null and b/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/blowfishempty_hu237097f6de5e4b3f72cdbe2cb891eca7_38549_1024x0_resize_box_3.png differ diff --git a/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/blowfishempty_hu237097f6de5e4b3f72cdbe2cb891eca7_38549_1320x0_resize_box_3.png b/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/blowfishempty_hu237097f6de5e4b3f72cdbe2cb891eca7_38549_1320x0_resize_box_3.png new file mode 100644 index 00000000..27bbdba5 Binary files /dev/null and b/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/blowfishempty_hu237097f6de5e4b3f72cdbe2cb891eca7_38549_1320x0_resize_box_3.png differ diff --git a/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/blowfishempty_hu237097f6de5e4b3f72cdbe2cb891eca7_38549_330x0_resize_box_3.png b/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/blowfishempty_hu237097f6de5e4b3f72cdbe2cb891eca7_38549_330x0_resize_box_3.png new file mode 100644 index 00000000..d72d9694 Binary files /dev/null and b/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/blowfishempty_hu237097f6de5e4b3f72cdbe2cb891eca7_38549_330x0_resize_box_3.png differ diff --git a/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/blowfishempty_hu237097f6de5e4b3f72cdbe2cb891eca7_38549_660x0_resize_box_3.png b/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/blowfishempty_hu237097f6de5e4b3f72cdbe2cb891eca7_38549_660x0_resize_box_3.png new file mode 100644 index 00000000..fc16e507 Binary files /dev/null and b/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/blowfishempty_hu237097f6de5e4b3f72cdbe2cb891eca7_38549_660x0_resize_box_3.png differ diff --git a/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/blowfishnoarticles_hub81a60ebb9952d3429c3bc7b5aea3070_2249677_1024x0_resize_box_3.png b/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/blowfishnoarticles_hub81a60ebb9952d3429c3bc7b5aea3070_2249677_1024x0_resize_box_3.png new file mode 100644 index 00000000..1888144c Binary files /dev/null and b/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/blowfishnoarticles_hub81a60ebb9952d3429c3bc7b5aea3070_2249677_1024x0_resize_box_3.png differ diff --git a/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/blowfishnoarticles_hub81a60ebb9952d3429c3bc7b5aea3070_2249677_1320x0_resize_box_3.png b/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/blowfishnoarticles_hub81a60ebb9952d3429c3bc7b5aea3070_2249677_1320x0_resize_box_3.png new file mode 100644 index 00000000..d8211d72 Binary files /dev/null and b/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/blowfishnoarticles_hub81a60ebb9952d3429c3bc7b5aea3070_2249677_1320x0_resize_box_3.png differ diff --git a/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/blowfishnoarticles_hub81a60ebb9952d3429c3bc7b5aea3070_2249677_330x0_resize_box_3.png b/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/blowfishnoarticles_hub81a60ebb9952d3429c3bc7b5aea3070_2249677_330x0_resize_box_3.png new file mode 100644 index 00000000..df3dc883 Binary files /dev/null and b/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/blowfishnoarticles_hub81a60ebb9952d3429c3bc7b5aea3070_2249677_330x0_resize_box_3.png differ diff --git a/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/blowfishnoarticles_hub81a60ebb9952d3429c3bc7b5aea3070_2249677_660x0_resize_box_3.png b/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/blowfishnoarticles_hub81a60ebb9952d3429c3bc7b5aea3070_2249677_660x0_resize_box_3.png new file mode 100644 index 00000000..fd45c6b7 Binary files /dev/null and b/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/blowfishnoarticles_hub81a60ebb9952d3429c3bc7b5aea3070_2249677_660x0_resize_box_3.png differ diff --git a/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/firebasecli_hu1ba4e03434e3dec6dcd3276b9c5fe9fe_56627_1024x0_resize_box_3.png b/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/firebasecli_hu1ba4e03434e3dec6dcd3276b9c5fe9fe_56627_1024x0_resize_box_3.png new file mode 100644 index 00000000..16b5ab8d Binary files /dev/null and b/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/firebasecli_hu1ba4e03434e3dec6dcd3276b9c5fe9fe_56627_1024x0_resize_box_3.png differ diff --git a/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/firebasecli_hu1ba4e03434e3dec6dcd3276b9c5fe9fe_56627_1320x0_resize_box_3.png b/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/firebasecli_hu1ba4e03434e3dec6dcd3276b9c5fe9fe_56627_1320x0_resize_box_3.png new file mode 100644 index 00000000..b2e595d6 Binary files /dev/null and b/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/firebasecli_hu1ba4e03434e3dec6dcd3276b9c5fe9fe_56627_1320x0_resize_box_3.png differ diff --git a/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/firebasecli_hu1ba4e03434e3dec6dcd3276b9c5fe9fe_56627_330x0_resize_box_3.png b/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/firebasecli_hu1ba4e03434e3dec6dcd3276b9c5fe9fe_56627_330x0_resize_box_3.png new file mode 100644 index 00000000..57a99938 Binary files /dev/null and b/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/firebasecli_hu1ba4e03434e3dec6dcd3276b9c5fe9fe_56627_330x0_resize_box_3.png differ diff --git a/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/firebasecli_hu1ba4e03434e3dec6dcd3276b9c5fe9fe_56627_660x0_resize_box_3.png b/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/firebasecli_hu1ba4e03434e3dec6dcd3276b9c5fe9fe_56627_660x0_resize_box_3.png new file mode 100644 index 00000000..40640528 Binary files /dev/null and b/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/firebasecli_hu1ba4e03434e3dec6dcd3276b9c5fe9fe_56627_660x0_resize_box_3.png differ diff --git a/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/firebaseconsole_hu0bf81a74a4ce0d14f22f5528043d0f98_135497_1024x0_resize_box_3.png b/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/firebaseconsole_hu0bf81a74a4ce0d14f22f5528043d0f98_135497_1024x0_resize_box_3.png new file mode 100644 index 00000000..da09ca5b Binary files /dev/null and b/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/firebaseconsole_hu0bf81a74a4ce0d14f22f5528043d0f98_135497_1024x0_resize_box_3.png differ diff --git a/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/firebaseconsole_hu0bf81a74a4ce0d14f22f5528043d0f98_135497_1320x0_resize_box_3.png b/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/firebaseconsole_hu0bf81a74a4ce0d14f22f5528043d0f98_135497_1320x0_resize_box_3.png new file mode 100644 index 00000000..593ff39b Binary files /dev/null and b/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/firebaseconsole_hu0bf81a74a4ce0d14f22f5528043d0f98_135497_1320x0_resize_box_3.png differ diff --git a/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/firebaseconsole_hu0bf81a74a4ce0d14f22f5528043d0f98_135497_330x0_resize_box_3.png b/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/firebaseconsole_hu0bf81a74a4ce0d14f22f5528043d0f98_135497_330x0_resize_box_3.png new file mode 100644 index 00000000..9167df8a Binary files /dev/null and b/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/firebaseconsole_hu0bf81a74a4ce0d14f22f5528043d0f98_135497_330x0_resize_box_3.png differ diff --git a/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/firebaseconsole_hu0bf81a74a4ce0d14f22f5528043d0f98_135497_660x0_resize_box_3.png b/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/firebaseconsole_hu0bf81a74a4ce0d14f22f5528043d0f98_135497_660x0_resize_box_3.png new file mode 100644 index 00000000..a0f9878e Binary files /dev/null and b/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/firebaseconsole_hu0bf81a74a4ce0d14f22f5528043d0f98_135497_660x0_resize_box_3.png differ diff --git a/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/firebaseoptions_hu7c9274162fb7b771f558237803fc70a4_172751_1024x0_resize_box_3.png b/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/firebaseoptions_hu7c9274162fb7b771f558237803fc70a4_172751_1024x0_resize_box_3.png new file mode 100644 index 00000000..9d470c5a Binary files /dev/null and b/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/firebaseoptions_hu7c9274162fb7b771f558237803fc70a4_172751_1024x0_resize_box_3.png differ diff --git a/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/firebaseoptions_hu7c9274162fb7b771f558237803fc70a4_172751_1320x0_resize_box_3.png b/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/firebaseoptions_hu7c9274162fb7b771f558237803fc70a4_172751_1320x0_resize_box_3.png new file mode 100644 index 00000000..41876425 Binary files /dev/null and b/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/firebaseoptions_hu7c9274162fb7b771f558237803fc70a4_172751_1320x0_resize_box_3.png differ diff --git a/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/firebaseoptions_hu7c9274162fb7b771f558237803fc70a4_172751_330x0_resize_box_3.png b/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/firebaseoptions_hu7c9274162fb7b771f558237803fc70a4_172751_330x0_resize_box_3.png new file mode 100644 index 00000000..448748a6 Binary files /dev/null and b/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/firebaseoptions_hu7c9274162fb7b771f558237803fc70a4_172751_330x0_resize_box_3.png differ diff --git a/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/firebaseoptions_hu7c9274162fb7b771f558237803fc70a4_172751_660x0_resize_box_3.png b/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/firebaseoptions_hu7c9274162fb7b771f558237803fc70a4_172751_660x0_resize_box_3.png new file mode 100644 index 00000000..2d070ef9 Binary files /dev/null and b/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/firebaseoptions_hu7c9274162fb7b771f558237803fc70a4_172751_660x0_resize_box_3.png differ diff --git a/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/ghcreate_hu2b762f3971425227aa900c37d3dfaeb4_40504_1024x0_resize_box_3.png b/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/ghcreate_hu2b762f3971425227aa900c37d3dfaeb4_40504_1024x0_resize_box_3.png new file mode 100644 index 00000000..0e58e24f Binary files /dev/null and b/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/ghcreate_hu2b762f3971425227aa900c37d3dfaeb4_40504_1024x0_resize_box_3.png differ diff --git a/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/ghcreate_hu2b762f3971425227aa900c37d3dfaeb4_40504_1320x0_resize_box_3.png b/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/ghcreate_hu2b762f3971425227aa900c37d3dfaeb4_40504_1320x0_resize_box_3.png new file mode 100644 index 00000000..741b6c50 Binary files /dev/null and b/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/ghcreate_hu2b762f3971425227aa900c37d3dfaeb4_40504_1320x0_resize_box_3.png differ diff --git a/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/ghcreate_hu2b762f3971425227aa900c37d3dfaeb4_40504_330x0_resize_box_3.png b/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/ghcreate_hu2b762f3971425227aa900c37d3dfaeb4_40504_330x0_resize_box_3.png new file mode 100644 index 00000000..0a26bea4 Binary files /dev/null and b/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/ghcreate_hu2b762f3971425227aa900c37d3dfaeb4_40504_330x0_resize_box_3.png differ diff --git a/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/ghcreate_hu2b762f3971425227aa900c37d3dfaeb4_40504_660x0_resize_box_3.png b/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/ghcreate_hu2b762f3971425227aa900c37d3dfaeb4_40504_660x0_resize_box_3.png new file mode 100644 index 00000000..6ff7debf Binary files /dev/null and b/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/ghcreate_hu2b762f3971425227aa900c37d3dfaeb4_40504_660x0_resize_box_3.png differ diff --git a/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/githubactions_huad6af1ce3bfb4011e9487743ffb5a2b2_204073_1024x0_resize_box_3.png b/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/githubactions_huad6af1ce3bfb4011e9487743ffb5a2b2_204073_1024x0_resize_box_3.png new file mode 100644 index 00000000..d227d554 Binary files /dev/null and b/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/githubactions_huad6af1ce3bfb4011e9487743ffb5a2b2_204073_1024x0_resize_box_3.png differ diff --git a/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/githubactions_huad6af1ce3bfb4011e9487743ffb5a2b2_204073_1320x0_resize_box_3.png b/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/githubactions_huad6af1ce3bfb4011e9487743ffb5a2b2_204073_1320x0_resize_box_3.png new file mode 100644 index 00000000..e4206125 Binary files /dev/null and b/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/githubactions_huad6af1ce3bfb4011e9487743ffb5a2b2_204073_1320x0_resize_box_3.png differ diff --git a/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/githubactions_huad6af1ce3bfb4011e9487743ffb5a2b2_204073_330x0_resize_box_3.png b/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/githubactions_huad6af1ce3bfb4011e9487743ffb5a2b2_204073_330x0_resize_box_3.png new file mode 100644 index 00000000..962f5d07 Binary files /dev/null and b/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/githubactions_huad6af1ce3bfb4011e9487743ffb5a2b2_204073_330x0_resize_box_3.png differ diff --git a/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/githubactions_huad6af1ce3bfb4011e9487743ffb5a2b2_204073_660x0_resize_box_3.png b/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/githubactions_huad6af1ce3bfb4011e9487743ffb5a2b2_204073_660x0_resize_box_3.png new file mode 100644 index 00000000..a32158f8 Binary files /dev/null and b/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/githubactions_huad6af1ce3bfb4011e9487743ffb5a2b2_204073_660x0_resize_box_3.png differ diff --git a/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/profile_hu3d03a01dcc18bc5be0e67db3d8d209a6_870057_1024x0_resize_q75_box.jpg b/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/profile_hu3d03a01dcc18bc5be0e67db3d8d209a6_870057_1024x0_resize_q75_box.jpg new file mode 100644 index 00000000..47bc2f35 Binary files /dev/null and b/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/profile_hu3d03a01dcc18bc5be0e67db3d8d209a6_870057_1024x0_resize_q75_box.jpg differ diff --git a/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/profile_hu3d03a01dcc18bc5be0e67db3d8d209a6_870057_1320x0_resize_q75_box.jpg b/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/profile_hu3d03a01dcc18bc5be0e67db3d8d209a6_870057_1320x0_resize_q75_box.jpg new file mode 100644 index 00000000..97c304e8 Binary files /dev/null and b/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/profile_hu3d03a01dcc18bc5be0e67db3d8d209a6_870057_1320x0_resize_q75_box.jpg differ diff --git a/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/profile_hu3d03a01dcc18bc5be0e67db3d8d209a6_870057_330x0_resize_q75_box.jpg b/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/profile_hu3d03a01dcc18bc5be0e67db3d8d209a6_870057_330x0_resize_q75_box.jpg new file mode 100644 index 00000000..1ed6dea8 Binary files /dev/null and b/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/profile_hu3d03a01dcc18bc5be0e67db3d8d209a6_870057_330x0_resize_q75_box.jpg differ diff --git a/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/profile_hu3d03a01dcc18bc5be0e67db3d8d209a6_870057_660x0_resize_q75_box.jpg b/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/profile_hu3d03a01dcc18bc5be0e67db3d8d209a6_870057_660x0_resize_q75_box.jpg new file mode 100644 index 00000000..48209616 Binary files /dev/null and b/exampleSite/resources/_gen/images/guides/202310-blowfish-tutorial/img/profile_hu3d03a01dcc18bc5be0e67db3d8d209a6_870057_660x0_resize_q75_box.jpg differ diff --git a/exampleSite/resources/_gen/images/users/adilhyz.github.io/feature_hu512558905ba08fc3796943cfc8082295_40592_1200x0_resize_q75_box.jpg b/exampleSite/resources/_gen/images/users/adilhyz.github.io/feature_hu512558905ba08fc3796943cfc8082295_40592_1200x0_resize_q75_box.jpg new file mode 100644 index 00000000..110e7ba1 Binary files /dev/null and b/exampleSite/resources/_gen/images/users/adilhyz.github.io/feature_hu512558905ba08fc3796943cfc8082295_40592_1200x0_resize_q75_box.jpg differ diff --git a/exampleSite/resources/_gen/images/users/adilhyz.github.io/feature_hu512558905ba08fc3796943cfc8082295_40592_600x0_resize_q75_box.jpg b/exampleSite/resources/_gen/images/users/adilhyz.github.io/feature_hu512558905ba08fc3796943cfc8082295_40592_600x0_resize_q75_box.jpg new file mode 100644 index 00000000..099e1049 Binary files /dev/null and b/exampleSite/resources/_gen/images/users/adilhyz.github.io/feature_hu512558905ba08fc3796943cfc8082295_40592_600x0_resize_q75_box.jpg differ diff --git a/exampleSite/resources/_gen/images/users/adir1.com/feature_hue0500c5407188b57fd78ba7c9a8cfb37_74466_1200x0_resize_q75_box.jpg b/exampleSite/resources/_gen/images/users/adir1.com/feature_hue0500c5407188b57fd78ba7c9a8cfb37_74466_1200x0_resize_q75_box.jpg new file mode 100644 index 00000000..da8f9174 Binary files /dev/null and b/exampleSite/resources/_gen/images/users/adir1.com/feature_hue0500c5407188b57fd78ba7c9a8cfb37_74466_1200x0_resize_q75_box.jpg differ diff --git a/exampleSite/resources/_gen/images/users/adir1.com/feature_hue0500c5407188b57fd78ba7c9a8cfb37_74466_600x0_resize_q75_box.jpg b/exampleSite/resources/_gen/images/users/adir1.com/feature_hue0500c5407188b57fd78ba7c9a8cfb37_74466_600x0_resize_q75_box.jpg new file mode 100644 index 00000000..f0e3d325 Binary files /dev/null and b/exampleSite/resources/_gen/images/users/adir1.com/feature_hue0500c5407188b57fd78ba7c9a8cfb37_74466_600x0_resize_q75_box.jpg differ diff --git a/exampleSite/resources/_gen/images/users/alejandro-ao.com/feature_hu8624f8dbc0904effc5c6029f0856c713_82634_1200x0_resize_q75_box.jpg b/exampleSite/resources/_gen/images/users/alejandro-ao.com/feature_hu8624f8dbc0904effc5c6029f0856c713_82634_1200x0_resize_q75_box.jpg new file mode 100644 index 00000000..78c5a628 Binary files /dev/null and b/exampleSite/resources/_gen/images/users/alejandro-ao.com/feature_hu8624f8dbc0904effc5c6029f0856c713_82634_1200x0_resize_q75_box.jpg differ diff --git a/exampleSite/resources/_gen/images/users/alejandro-ao.com/feature_hu8624f8dbc0904effc5c6029f0856c713_82634_600x0_resize_q75_box.jpg b/exampleSite/resources/_gen/images/users/alejandro-ao.com/feature_hu8624f8dbc0904effc5c6029f0856c713_82634_600x0_resize_q75_box.jpg new file mode 100644 index 00000000..34ec302d Binary files /dev/null and b/exampleSite/resources/_gen/images/users/alejandro-ao.com/feature_hu8624f8dbc0904effc5c6029f0856c713_82634_600x0_resize_q75_box.jpg differ diff --git a/exampleSite/resources/_gen/images/users/blog.enmanuelmoreira.com/feature_hu057a4c8aa73a44bc30a8d299f7dbf7ce_89473_1200x0_resize_q75_box.jpg b/exampleSite/resources/_gen/images/users/blog.enmanuelmoreira.com/feature_hu057a4c8aa73a44bc30a8d299f7dbf7ce_89473_1200x0_resize_q75_box.jpg new file mode 100644 index 00000000..5a0d5eb0 Binary files /dev/null and b/exampleSite/resources/_gen/images/users/blog.enmanuelmoreira.com/feature_hu057a4c8aa73a44bc30a8d299f7dbf7ce_89473_1200x0_resize_q75_box.jpg differ diff --git a/exampleSite/resources/_gen/images/users/blog.enmanuelmoreira.com/feature_hu057a4c8aa73a44bc30a8d299f7dbf7ce_89473_600x0_resize_q75_box.jpg b/exampleSite/resources/_gen/images/users/blog.enmanuelmoreira.com/feature_hu057a4c8aa73a44bc30a8d299f7dbf7ce_89473_600x0_resize_q75_box.jpg new file mode 100644 index 00000000..754eb697 Binary files /dev/null and b/exampleSite/resources/_gen/images/users/blog.enmanuelmoreira.com/feature_hu057a4c8aa73a44bc30a8d299f7dbf7ce_89473_600x0_resize_q75_box.jpg differ diff --git a/exampleSite/resources/_gen/images/users/blog.muffn.io/feature_hue4b86fddaea74c0b6938ace48df8abd7_176463_1200x0_resize_q75_box.jpg b/exampleSite/resources/_gen/images/users/blog.muffn.io/feature_hue4b86fddaea74c0b6938ace48df8abd7_176463_1200x0_resize_q75_box.jpg new file mode 100644 index 00000000..ac4bb5cf Binary files /dev/null and b/exampleSite/resources/_gen/images/users/blog.muffn.io/feature_hue4b86fddaea74c0b6938ace48df8abd7_176463_1200x0_resize_q75_box.jpg differ diff --git a/exampleSite/resources/_gen/images/users/blog.muffn.io/feature_hue4b86fddaea74c0b6938ace48df8abd7_176463_600x0_resize_q75_box.jpg b/exampleSite/resources/_gen/images/users/blog.muffn.io/feature_hue4b86fddaea74c0b6938ace48df8abd7_176463_600x0_resize_q75_box.jpg new file mode 100644 index 00000000..a38a9092 Binary files /dev/null and b/exampleSite/resources/_gen/images/users/blog.muffn.io/feature_hue4b86fddaea74c0b6938ace48df8abd7_176463_600x0_resize_q75_box.jpg differ diff --git a/exampleSite/resources/_gen/images/users/clemsau.com/feature_hu83eca8750abb9eb241f44cea2a214fd1_69714_1200x0_resize_q75_box.jpg b/exampleSite/resources/_gen/images/users/clemsau.com/feature_hu83eca8750abb9eb241f44cea2a214fd1_69714_1200x0_resize_q75_box.jpg new file mode 100644 index 00000000..7011d97d Binary files /dev/null and b/exampleSite/resources/_gen/images/users/clemsau.com/feature_hu83eca8750abb9eb241f44cea2a214fd1_69714_1200x0_resize_q75_box.jpg differ diff --git a/exampleSite/resources/_gen/images/users/clemsau.com/feature_hu83eca8750abb9eb241f44cea2a214fd1_69714_600x0_resize_q75_box.jpg b/exampleSite/resources/_gen/images/users/clemsau.com/feature_hu83eca8750abb9eb241f44cea2a214fd1_69714_600x0_resize_q75_box.jpg new file mode 100644 index 00000000..84aca0e1 Binary files /dev/null and b/exampleSite/resources/_gen/images/users/clemsau.com/feature_hu83eca8750abb9eb241f44cea2a214fd1_69714_600x0_resize_q75_box.jpg differ diff --git a/exampleSite/resources/_gen/images/users/cuttontail.blog/feature_hu7cde50d2d1f0ca8181727c9cdac8eb60_66765_1200x0_resize_q75_box.jpg b/exampleSite/resources/_gen/images/users/cuttontail.blog/feature_hu7cde50d2d1f0ca8181727c9cdac8eb60_66765_1200x0_resize_q75_box.jpg new file mode 100644 index 00000000..a083bc0d Binary files /dev/null and b/exampleSite/resources/_gen/images/users/cuttontail.blog/feature_hu7cde50d2d1f0ca8181727c9cdac8eb60_66765_1200x0_resize_q75_box.jpg differ diff --git a/exampleSite/resources/_gen/images/users/cuttontail.blog/feature_hu7cde50d2d1f0ca8181727c9cdac8eb60_66765_600x0_resize_q75_box.jpg b/exampleSite/resources/_gen/images/users/cuttontail.blog/feature_hu7cde50d2d1f0ca8181727c9cdac8eb60_66765_600x0_resize_q75_box.jpg new file mode 100644 index 00000000..cd005740 Binary files /dev/null and b/exampleSite/resources/_gen/images/users/cuttontail.blog/feature_hu7cde50d2d1f0ca8181727c9cdac8eb60_66765_600x0_resize_q75_box.jpg differ diff --git a/exampleSite/resources/_gen/images/users/dizzytech.de/feature_hu1888feee532262eaafc29465c848504c_37343_1200x0_resize_q75_box.jpg b/exampleSite/resources/_gen/images/users/dizzytech.de/feature_hu1888feee532262eaafc29465c848504c_37343_1200x0_resize_q75_box.jpg new file mode 100644 index 00000000..2a070be6 Binary files /dev/null and b/exampleSite/resources/_gen/images/users/dizzytech.de/feature_hu1888feee532262eaafc29465c848504c_37343_1200x0_resize_q75_box.jpg differ diff --git a/exampleSite/resources/_gen/images/users/dizzytech.de/feature_hu1888feee532262eaafc29465c848504c_37343_600x0_resize_q75_box.jpg b/exampleSite/resources/_gen/images/users/dizzytech.de/feature_hu1888feee532262eaafc29465c848504c_37343_600x0_resize_q75_box.jpg new file mode 100644 index 00000000..57e41e4c Binary files /dev/null and b/exampleSite/resources/_gen/images/users/dizzytech.de/feature_hu1888feee532262eaafc29465c848504c_37343_600x0_resize_q75_box.jpg differ diff --git a/exampleSite/resources/_gen/images/users/hellstabber.github.io/feature_hu5f2705f4e3c9813f570ccaa1bb18c9bd_85736_1200x0_resize_q75_box.jpg b/exampleSite/resources/_gen/images/users/hellstabber.github.io/feature_hu5f2705f4e3c9813f570ccaa1bb18c9bd_85736_1200x0_resize_q75_box.jpg new file mode 100644 index 00000000..c14d223c Binary files /dev/null and b/exampleSite/resources/_gen/images/users/hellstabber.github.io/feature_hu5f2705f4e3c9813f570ccaa1bb18c9bd_85736_1200x0_resize_q75_box.jpg differ diff --git a/exampleSite/resources/_gen/images/users/hellstabber.github.io/feature_hu5f2705f4e3c9813f570ccaa1bb18c9bd_85736_600x0_resize_q75_box.jpg b/exampleSite/resources/_gen/images/users/hellstabber.github.io/feature_hu5f2705f4e3c9813f570ccaa1bb18c9bd_85736_600x0_resize_q75_box.jpg new file mode 100644 index 00000000..d29921aa Binary files /dev/null and b/exampleSite/resources/_gen/images/users/hellstabber.github.io/feature_hu5f2705f4e3c9813f570ccaa1bb18c9bd_85736_600x0_resize_q75_box.jpg differ diff --git a/exampleSite/resources/_gen/images/users/jahsehj.github.io/feature_hud8f97c21fe29102232240f580134dc9c_58829_1200x0_resize_q75_box.jpg b/exampleSite/resources/_gen/images/users/jahsehj.github.io/feature_hud8f97c21fe29102232240f580134dc9c_58829_1200x0_resize_q75_box.jpg new file mode 100644 index 00000000..928e9513 Binary files /dev/null and b/exampleSite/resources/_gen/images/users/jahsehj.github.io/feature_hud8f97c21fe29102232240f580134dc9c_58829_1200x0_resize_q75_box.jpg differ diff --git a/exampleSite/resources/_gen/images/users/jahsehj.github.io/feature_hud8f97c21fe29102232240f580134dc9c_58829_600x0_resize_q75_box.jpg b/exampleSite/resources/_gen/images/users/jahsehj.github.io/feature_hud8f97c21fe29102232240f580134dc9c_58829_600x0_resize_q75_box.jpg new file mode 100644 index 00000000..1b8873d2 Binary files /dev/null and b/exampleSite/resources/_gen/images/users/jahsehj.github.io/feature_hud8f97c21fe29102232240f580134dc9c_58829_600x0_resize_q75_box.jpg differ diff --git a/exampleSite/resources/_gen/images/users/loisvelasco.is-a.dev/feature_hu21d24ca0ce3f8d57b49e8750bb289547_46654_1200x0_resize_q75_box.jpg b/exampleSite/resources/_gen/images/users/loisvelasco.is-a.dev/feature_hu21d24ca0ce3f8d57b49e8750bb289547_46654_1200x0_resize_q75_box.jpg new file mode 100644 index 00000000..790efc4b Binary files /dev/null and b/exampleSite/resources/_gen/images/users/loisvelasco.is-a.dev/feature_hu21d24ca0ce3f8d57b49e8750bb289547_46654_1200x0_resize_q75_box.jpg differ diff --git a/exampleSite/resources/_gen/images/users/loisvelasco.is-a.dev/feature_hu21d24ca0ce3f8d57b49e8750bb289547_46654_600x0_resize_q75_box.jpg b/exampleSite/resources/_gen/images/users/loisvelasco.is-a.dev/feature_hu21d24ca0ce3f8d57b49e8750bb289547_46654_600x0_resize_q75_box.jpg new file mode 100644 index 00000000..029cd1cd Binary files /dev/null and b/exampleSite/resources/_gen/images/users/loisvelasco.is-a.dev/feature_hu21d24ca0ce3f8d57b49e8750bb289547_46654_600x0_resize_q75_box.jpg differ diff --git a/exampleSite/resources/_gen/images/users/mariuskimmina.com/feature_hu1ca85a3b81e21f39c4e6f2ebc98bb52c_34136_1200x0_resize_q75_box.jpg b/exampleSite/resources/_gen/images/users/mariuskimmina.com/feature_hu1ca85a3b81e21f39c4e6f2ebc98bb52c_34136_1200x0_resize_q75_box.jpg new file mode 100644 index 00000000..927a9936 Binary files /dev/null and b/exampleSite/resources/_gen/images/users/mariuskimmina.com/feature_hu1ca85a3b81e21f39c4e6f2ebc98bb52c_34136_1200x0_resize_q75_box.jpg differ diff --git a/exampleSite/resources/_gen/images/users/mariuskimmina.com/feature_hu1ca85a3b81e21f39c4e6f2ebc98bb52c_34136_600x0_resize_q75_box.jpg b/exampleSite/resources/_gen/images/users/mariuskimmina.com/feature_hu1ca85a3b81e21f39c4e6f2ebc98bb52c_34136_600x0_resize_q75_box.jpg new file mode 100644 index 00000000..4d16a1f4 Binary files /dev/null and b/exampleSite/resources/_gen/images/users/mariuskimmina.com/feature_hu1ca85a3b81e21f39c4e6f2ebc98bb52c_34136_600x0_resize_q75_box.jpg differ diff --git a/exampleSite/resources/_gen/images/users/nikarashihatsu.github.io/feature_hua1849a401fc8a2113f8ffdc8d605b03a_67183_1200x0_resize_q75_box.jpg b/exampleSite/resources/_gen/images/users/nikarashihatsu.github.io/feature_hua1849a401fc8a2113f8ffdc8d605b03a_67183_1200x0_resize_q75_box.jpg new file mode 100644 index 00000000..684398d9 Binary files /dev/null and b/exampleSite/resources/_gen/images/users/nikarashihatsu.github.io/feature_hua1849a401fc8a2113f8ffdc8d605b03a_67183_1200x0_resize_q75_box.jpg differ diff --git a/exampleSite/resources/_gen/images/users/nikarashihatsu.github.io/feature_hua1849a401fc8a2113f8ffdc8d605b03a_67183_600x0_resize_q75_box.jpg b/exampleSite/resources/_gen/images/users/nikarashihatsu.github.io/feature_hua1849a401fc8a2113f8ffdc8d605b03a_67183_600x0_resize_q75_box.jpg new file mode 100644 index 00000000..acc1394e Binary files /dev/null and b/exampleSite/resources/_gen/images/users/nikarashihatsu.github.io/feature_hua1849a401fc8a2113f8ffdc8d605b03a_67183_600x0_resize_q75_box.jpg differ diff --git a/exampleSite/resources/_gen/images/users/niklas-hartmann-dev.de/feature_huc72da498cacf41d3d0c5ae0e3df5cb7a_90525_1200x0_resize_q75_box.jpg b/exampleSite/resources/_gen/images/users/niklas-hartmann-dev.de/feature_huc72da498cacf41d3d0c5ae0e3df5cb7a_90525_1200x0_resize_q75_box.jpg new file mode 100644 index 00000000..e767869b Binary files /dev/null and b/exampleSite/resources/_gen/images/users/niklas-hartmann-dev.de/feature_huc72da498cacf41d3d0c5ae0e3df5cb7a_90525_1200x0_resize_q75_box.jpg differ diff --git a/exampleSite/resources/_gen/images/users/niklas-hartmann-dev.de/feature_huc72da498cacf41d3d0c5ae0e3df5cb7a_90525_600x0_resize_q75_box.jpg b/exampleSite/resources/_gen/images/users/niklas-hartmann-dev.de/feature_huc72da498cacf41d3d0c5ae0e3df5cb7a_90525_600x0_resize_q75_box.jpg new file mode 100644 index 00000000..b6eaa0f5 Binary files /dev/null and b/exampleSite/resources/_gen/images/users/niklas-hartmann-dev.de/feature_huc72da498cacf41d3d0c5ae0e3df5cb7a_90525_600x0_resize_q75_box.jpg differ diff --git a/exampleSite/resources/_gen/images/users/nunocoracao.com/feature_hu70b7c348d9de1954079d22029eb78e2d_78773_1200x0_resize_q75_box.jpg b/exampleSite/resources/_gen/images/users/nunocoracao.com/feature_hu70b7c348d9de1954079d22029eb78e2d_78773_1200x0_resize_q75_box.jpg new file mode 100644 index 00000000..d04e43d2 Binary files /dev/null and b/exampleSite/resources/_gen/images/users/nunocoracao.com/feature_hu70b7c348d9de1954079d22029eb78e2d_78773_1200x0_resize_q75_box.jpg differ diff --git a/exampleSite/resources/_gen/images/users/nunocoracao.com/feature_hu70b7c348d9de1954079d22029eb78e2d_78773_600x0_resize_q75_box.jpg b/exampleSite/resources/_gen/images/users/nunocoracao.com/feature_hu70b7c348d9de1954079d22029eb78e2d_78773_600x0_resize_q75_box.jpg new file mode 100644 index 00000000..f7c35234 Binary files /dev/null and b/exampleSite/resources/_gen/images/users/nunocoracao.com/feature_hu70b7c348d9de1954079d22029eb78e2d_78773_600x0_resize_q75_box.jpg differ diff --git a/exampleSite/resources/_gen/images/users/ohdmire.github.io/feature_hu9dd1db01db7ab2e865a117c8c2a32854_92175_1200x0_resize_q75_box.jpg b/exampleSite/resources/_gen/images/users/ohdmire.github.io/feature_hu9dd1db01db7ab2e865a117c8c2a32854_92175_1200x0_resize_q75_box.jpg new file mode 100644 index 00000000..58ce6092 Binary files /dev/null and b/exampleSite/resources/_gen/images/users/ohdmire.github.io/feature_hu9dd1db01db7ab2e865a117c8c2a32854_92175_1200x0_resize_q75_box.jpg differ diff --git a/exampleSite/resources/_gen/images/users/ohdmire.github.io/feature_hu9dd1db01db7ab2e865a117c8c2a32854_92175_600x0_resize_q75_box.jpg b/exampleSite/resources/_gen/images/users/ohdmire.github.io/feature_hu9dd1db01db7ab2e865a117c8c2a32854_92175_600x0_resize_q75_box.jpg new file mode 100644 index 00000000..290603a8 Binary files /dev/null and b/exampleSite/resources/_gen/images/users/ohdmire.github.io/feature_hu9dd1db01db7ab2e865a117c8c2a32854_92175_600x0_resize_q75_box.jpg differ diff --git a/exampleSite/resources/_gen/images/users/rdgo.dev/feature_hu7c581a0e256ea0c9443fbb3d436b43c7_27014_1200x0_resize_q75_box.jpg b/exampleSite/resources/_gen/images/users/rdgo.dev/feature_hu7c581a0e256ea0c9443fbb3d436b43c7_27014_1200x0_resize_q75_box.jpg new file mode 100644 index 00000000..3f088e33 Binary files /dev/null and b/exampleSite/resources/_gen/images/users/rdgo.dev/feature_hu7c581a0e256ea0c9443fbb3d436b43c7_27014_1200x0_resize_q75_box.jpg differ diff --git a/exampleSite/resources/_gen/images/users/rdgo.dev/feature_hu7c581a0e256ea0c9443fbb3d436b43c7_27014_600x0_resize_q75_box.jpg b/exampleSite/resources/_gen/images/users/rdgo.dev/feature_hu7c581a0e256ea0c9443fbb3d436b43c7_27014_600x0_resize_q75_box.jpg new file mode 100644 index 00000000..04d1b158 Binary files /dev/null and b/exampleSite/resources/_gen/images/users/rdgo.dev/feature_hu7c581a0e256ea0c9443fbb3d436b43c7_27014_600x0_resize_q75_box.jpg differ diff --git a/exampleSite/resources/_gen/images/users/ricklan.photography/feature_hu41b328fcfc1fdf9b69e7f1894fcb962f_58297_1200x0_resize_q75_box.jpg b/exampleSite/resources/_gen/images/users/ricklan.photography/feature_hu41b328fcfc1fdf9b69e7f1894fcb962f_58297_1200x0_resize_q75_box.jpg new file mode 100644 index 00000000..48f63382 Binary files /dev/null and b/exampleSite/resources/_gen/images/users/ricklan.photography/feature_hu41b328fcfc1fdf9b69e7f1894fcb962f_58297_1200x0_resize_q75_box.jpg differ diff --git a/exampleSite/resources/_gen/images/users/ricklan.photography/feature_hu41b328fcfc1fdf9b69e7f1894fcb962f_58297_600x0_resize_q75_box.jpg b/exampleSite/resources/_gen/images/users/ricklan.photography/feature_hu41b328fcfc1fdf9b69e7f1894fcb962f_58297_600x0_resize_q75_box.jpg new file mode 100644 index 00000000..429847c5 Binary files /dev/null and b/exampleSite/resources/_gen/images/users/ricklan.photography/feature_hu41b328fcfc1fdf9b69e7f1894fcb962f_58297_600x0_resize_q75_box.jpg differ diff --git a/exampleSite/resources/_gen/images/users/seanomahoney.com/feature_huf1d1b390b0752b0c59e8734773a3b8a1_100478_1200x0_resize_q75_box.jpg b/exampleSite/resources/_gen/images/users/seanomahoney.com/feature_huf1d1b390b0752b0c59e8734773a3b8a1_100478_1200x0_resize_q75_box.jpg new file mode 100644 index 00000000..cb8b2658 Binary files /dev/null and b/exampleSite/resources/_gen/images/users/seanomahoney.com/feature_huf1d1b390b0752b0c59e8734773a3b8a1_100478_1200x0_resize_q75_box.jpg differ diff --git a/exampleSite/resources/_gen/images/users/seanomahoney.com/feature_huf1d1b390b0752b0c59e8734773a3b8a1_100478_600x0_resize_q75_box.jpg b/exampleSite/resources/_gen/images/users/seanomahoney.com/feature_huf1d1b390b0752b0c59e8734773a3b8a1_100478_600x0_resize_q75_box.jpg new file mode 100644 index 00000000..b12af86a Binary files /dev/null and b/exampleSite/resources/_gen/images/users/seanomahoney.com/feature_huf1d1b390b0752b0c59e8734773a3b8a1_100478_600x0_resize_q75_box.jpg differ diff --git a/exampleSite/resources/_gen/images/users/shenshu.fun/feature_hu64ae12cb9b9ac1d5e7e8b38e349a8b5f_49500_1200x0_resize_q75_box.jpg b/exampleSite/resources/_gen/images/users/shenshu.fun/feature_hu64ae12cb9b9ac1d5e7e8b38e349a8b5f_49500_1200x0_resize_q75_box.jpg new file mode 100644 index 00000000..9293f3a5 Binary files /dev/null and b/exampleSite/resources/_gen/images/users/shenshu.fun/feature_hu64ae12cb9b9ac1d5e7e8b38e349a8b5f_49500_1200x0_resize_q75_box.jpg differ diff --git a/exampleSite/resources/_gen/images/users/shenshu.fun/feature_hu64ae12cb9b9ac1d5e7e8b38e349a8b5f_49500_600x0_resize_q75_box.jpg b/exampleSite/resources/_gen/images/users/shenshu.fun/feature_hu64ae12cb9b9ac1d5e7e8b38e349a8b5f_49500_600x0_resize_q75_box.jpg new file mode 100644 index 00000000..28942fb9 Binary files /dev/null and b/exampleSite/resources/_gen/images/users/shenshu.fun/feature_hu64ae12cb9b9ac1d5e7e8b38e349a8b5f_49500_600x0_resize_q75_box.jpg differ diff --git a/exampleSite/resources/_gen/images/users/spelucin.me/feature_hu38529982fd21582e51b6c1b48776dccc_42209_1200x0_resize_q75_box.jpg b/exampleSite/resources/_gen/images/users/spelucin.me/feature_hu38529982fd21582e51b6c1b48776dccc_42209_1200x0_resize_q75_box.jpg new file mode 100644 index 00000000..a7d5c961 Binary files /dev/null and b/exampleSite/resources/_gen/images/users/spelucin.me/feature_hu38529982fd21582e51b6c1b48776dccc_42209_1200x0_resize_q75_box.jpg differ diff --git a/exampleSite/resources/_gen/images/users/spelucin.me/feature_hu38529982fd21582e51b6c1b48776dccc_42209_600x0_resize_q75_box.jpg b/exampleSite/resources/_gen/images/users/spelucin.me/feature_hu38529982fd21582e51b6c1b48776dccc_42209_600x0_resize_q75_box.jpg new file mode 100644 index 00000000..e98d05ad Binary files /dev/null and b/exampleSite/resources/_gen/images/users/spelucin.me/feature_hu38529982fd21582e51b6c1b48776dccc_42209_600x0_resize_q75_box.jpg differ diff --git a/exampleSite/resources/_gen/images/users/talkdimsum.com/feature_hu01ef8d7856fc3dd333bca9a83988fdee_72055_1200x0_resize_q75_box.jpg b/exampleSite/resources/_gen/images/users/talkdimsum.com/feature_hu01ef8d7856fc3dd333bca9a83988fdee_72055_1200x0_resize_q75_box.jpg new file mode 100644 index 00000000..75d5863b Binary files /dev/null and b/exampleSite/resources/_gen/images/users/talkdimsum.com/feature_hu01ef8d7856fc3dd333bca9a83988fdee_72055_1200x0_resize_q75_box.jpg differ diff --git a/exampleSite/resources/_gen/images/users/talkdimsum.com/feature_hu01ef8d7856fc3dd333bca9a83988fdee_72055_600x0_resize_q75_box.jpg b/exampleSite/resources/_gen/images/users/talkdimsum.com/feature_hu01ef8d7856fc3dd333bca9a83988fdee_72055_600x0_resize_q75_box.jpg new file mode 100644 index 00000000..80208105 Binary files /dev/null and b/exampleSite/resources/_gen/images/users/talkdimsum.com/feature_hu01ef8d7856fc3dd333bca9a83988fdee_72055_600x0_resize_q75_box.jpg differ diff --git a/exampleSite/resources/_gen/images/users/theindiecoder.cloud/feature_hu04ec413fd38111c95b5fe45e3ce890bb_83812_1200x0_resize_q75_box.jpg b/exampleSite/resources/_gen/images/users/theindiecoder.cloud/feature_hu04ec413fd38111c95b5fe45e3ce890bb_83812_1200x0_resize_q75_box.jpg new file mode 100644 index 00000000..b78d5bef Binary files /dev/null and b/exampleSite/resources/_gen/images/users/theindiecoder.cloud/feature_hu04ec413fd38111c95b5fe45e3ce890bb_83812_1200x0_resize_q75_box.jpg differ diff --git a/exampleSite/resources/_gen/images/users/theindiecoder.cloud/feature_hu04ec413fd38111c95b5fe45e3ce890bb_83812_600x0_resize_q75_box.jpg b/exampleSite/resources/_gen/images/users/theindiecoder.cloud/feature_hu04ec413fd38111c95b5fe45e3ce890bb_83812_600x0_resize_q75_box.jpg new file mode 100644 index 00000000..bd74427b Binary files /dev/null and b/exampleSite/resources/_gen/images/users/theindiecoder.cloud/feature_hu04ec413fd38111c95b5fe45e3ce890bb_83812_600x0_resize_q75_box.jpg differ diff --git a/exampleSite/resources/_gen/images/users/vkmki001.github.io/feature_hu28d4c30374652596283b2df63b58985b_168194_1200x0_resize_q75_box.jpg b/exampleSite/resources/_gen/images/users/vkmki001.github.io/feature_hu28d4c30374652596283b2df63b58985b_168194_1200x0_resize_q75_box.jpg new file mode 100644 index 00000000..8faa6c47 Binary files /dev/null and b/exampleSite/resources/_gen/images/users/vkmki001.github.io/feature_hu28d4c30374652596283b2df63b58985b_168194_1200x0_resize_q75_box.jpg differ diff --git a/exampleSite/resources/_gen/images/users/vkmki001.github.io/feature_hu28d4c30374652596283b2df63b58985b_168194_600x0_resize_q75_box.jpg b/exampleSite/resources/_gen/images/users/vkmki001.github.io/feature_hu28d4c30374652596283b2df63b58985b_168194_600x0_resize_q75_box.jpg new file mode 100644 index 00000000..5f163680 Binary files /dev/null and b/exampleSite/resources/_gen/images/users/vkmki001.github.io/feature_hu28d4c30374652596283b2df63b58985b_168194_600x0_resize_q75_box.jpg differ diff --git a/exampleSite/resources/_gen/images/users/weaxsey.org/feature_huffbd1021426f9b2de67d4f505f936737_75211_1200x0_resize_q75_box.jpg b/exampleSite/resources/_gen/images/users/weaxsey.org/feature_huffbd1021426f9b2de67d4f505f936737_75211_1200x0_resize_q75_box.jpg new file mode 100644 index 00000000..29c6b307 Binary files /dev/null and b/exampleSite/resources/_gen/images/users/weaxsey.org/feature_huffbd1021426f9b2de67d4f505f936737_75211_1200x0_resize_q75_box.jpg differ diff --git a/exampleSite/resources/_gen/images/users/weaxsey.org/feature_huffbd1021426f9b2de67d4f505f936737_75211_600x0_resize_q75_box.jpg b/exampleSite/resources/_gen/images/users/weaxsey.org/feature_huffbd1021426f9b2de67d4f505f936737_75211_600x0_resize_q75_box.jpg new file mode 100644 index 00000000..729b1e27 Binary files /dev/null and b/exampleSite/resources/_gen/images/users/weaxsey.org/feature_huffbd1021426f9b2de67d4f505f936737_75211_600x0_resize_q75_box.jpg differ diff --git a/i18n/ar.yaml b/i18n/ar.yaml new file mode 100644 index 00000000..59c6cb1c --- /dev/null +++ b/i18n/ar.yaml @@ -0,0 +1,70 @@ +global: + language: "AR" + +article: + anchor_label: "رابط" + date: "{{ .Date }}" + date_updated: "Updated: {{ .Date }}" + draft: "مسودة" + edit_title: "تعديل المحتوى" + reading_time: + one: "{{ .Count }} دقيقة قراءة" + other: "{{ .Count }} دقيقة/دقائق قراءة" + reading_time_title: "مدة القراءة" + table_of_contents: "محتوى المقال" + word_count: + one: "{{ .Count }} كلمة" + other: "{{ .Count }} كلمة" + views: + one: "{{ .Count }} view" + other: "{{ .Count }} views" + likes: + one: "{{ .Count }} like" + other: "{{ .Count }} likes" + part_of_series: "هذا المقال جزء من سلسلة." + part: "جزء" + this_article: "هذه المقالة" + +author: + byline_title: "الناشر" + +code: + copy: "نسخ" + copied: "تم النسخ" + +error: + 404_title: "هذه الصفحة غير موجودة :confused:" + 404_error: "خطأ 404" + 404_description: "يبدو أن الصفحة التي طلبتها غير موجودة." + +footer: + dark_appearance: "التحويل الى المظهر الداكن" + light_appearance: "التحويل الى المظهر الفاتح" + powered_by: "Powered by {{ .Hugo }} & {{ .Theme }}" + +list: + externalurl_title: "ارتباط بموقع خارجي" + no_articles: "لا توجد مقالات لسردها هنا حتى الآن." + +nav: + scroll_to_top_title: "انتقل إلى أعلى" + skip_to_main: "التخطى الى المحتوى الأساسى" + +search: + open_button_title: "البحث (/)" + close_button_title: "إقفل (Esc)" + input_placeholder: "إبحث" + +sharing: + email: "إرسال عبر البريد الإلكترونى" + facebook: "النشر على فيسبوك" + linkedin: "النشر على لينكدان" + pinterest: "النشر على بينترست" + reddit: "النشر على ريديت" + twitter: "النشر على تويتر" + +shortcode: + recent_articles: "تم النشر مؤخرا" + +recent: + show_more: "قراءة المزيد" \ No newline at end of file diff --git a/layouts/shortcodes/ltr.html b/layouts/shortcodes/ltr.html new file mode 100644 index 00000000..d3c4a291 --- /dev/null +++ b/layouts/shortcodes/ltr.html @@ -0,0 +1,3 @@ +
+{{ .Inner }} +
\ No newline at end of file diff --git a/layouts/shortcodes/rtl.html b/layouts/shortcodes/rtl.html new file mode 100644 index 00000000..2947a9df --- /dev/null +++ b/layouts/shortcodes/rtl.html @@ -0,0 +1,3 @@ +
+ {{ .Inner }} +
\ No newline at end of file diff --git a/package-lock.json b/package-lock.json index f60ae66b..301e1e44 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,34 +1,34 @@ { "name": "hugo-blowfish-theme", - "version": "2.41.0", + "version": "2.41.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "hugo-blowfish-theme", - "version": "2.41.0", + "version": "2.41.1", "hasInstallScript": true, "license": "MIT", "dependencies": { - "@headlessui/react": "^1.7.16", + "@headlessui/react": "^1.7.17", "@heroicons/react": "^2.0.18", - "@tailwindcss/forms": "^0.5.4", + "@tailwindcss/forms": "^0.5.6", "commander": "^11.0.0" }, "devDependencies": { "@tailwindcss/typography": "^0.5.10", "chart.js": "^4.3.3", "fuse.js": "^6.6.2", - "jquery": "^3.7.0", + "jquery": "^3.7.1", "katex": "^0.16.8", "packery": "^2.1.2", "prettier": "^3.0.1", "prettier-plugin-go-template": "^0.0.15", "prettier-plugin-tailwindcss": "^0.5.2", "puppeteer": "^21.0.3", - "rimraf": "^5.0.1", + "rimraf": "^5.0.5", "tailwindcss": "^3.3.3", - "tw-elements": "1.0.0-beta3", + "tw-elements": "1.0.0", "typeit": "^8.7.1", "vendor-copy": "^3.0.1" } @@ -80,9 +80,9 @@ } }, "node_modules/@headlessui/react": { - "version": "1.7.16", - "resolved": "https://registry.npmjs.org/@headlessui/react/-/react-1.7.16.tgz", - "integrity": "sha512-2MphIAZdSUacZBT6EXk8AJkj+EuvaaJbtCyHTJrPsz8inhzCl7qeNPI1uk1AUvCgWylVtdN8cVVmnhUDPxPy3g==", + "version": "1.7.17", + "resolved": "https://registry.npmjs.org/@headlessui/react/-/react-1.7.17.tgz", + "integrity": "sha512-4am+tzvkqDSSgiwrsEpGWqgGo9dz8qU5M3znCkC4PgkpY4HcCZzEDEvozltGGGHIKl9jbXbZPSH5TWn4sWJdow==", "dependencies": { "client-only": "^0.0.1" }, @@ -247,9 +247,9 @@ } }, "node_modules/@tailwindcss/forms": { - "version": "0.5.4", - "resolved": "https://registry.npmjs.org/@tailwindcss/forms/-/forms-0.5.4.tgz", - "integrity": "sha512-YAm12D3R7/9Mh4jFbYSMnsd6jG++8KxogWgqs7hbdo/86aWjjlIEvL7+QYdVELmAI0InXTpZqFIg5e7aDVWI2Q==", + "version": "0.5.6", + "resolved": "https://registry.npmjs.org/@tailwindcss/forms/-/forms-0.5.6.tgz", + "integrity": "sha512-Fw+2BJ0tmAwK/w01tEFL5TiaJBX1NLT1/YbWgvm7ws3Qcn11kiXxzNTEQDMs5V3mQemhB56l3u0i9dwdzSQldA==", "dependencies": { "mini-svg-data-uri": "^1.2.3" }, @@ -1164,19 +1164,19 @@ } }, "node_modules/glob": { - "version": "10.2.5", - "resolved": "https://registry.npmjs.org/glob/-/glob-10.2.5.tgz", - "integrity": "sha512-Gj+dFYPZ5hc5dazjXzB0iHg2jKWJZYMjITXYPBRQ/xc2Buw7H0BINknRTwURJ6IC6MEFpYbLvtgVb3qD+DwyuA==", + "version": "10.3.10", + "resolved": "https://registry.npmjs.org/glob/-/glob-10.3.10.tgz", + "integrity": "sha512-fa46+tv1Ak0UPK1TOy/pZrIybNNt4HCv7SDzwyfiOZkvZLEbjsZkJBPtDHVshZjbecAoAGSC20MjLDG/qr679g==", "dev": true, "dependencies": { "foreground-child": "^3.1.0", - "jackspeak": "^2.0.3", - "minimatch": "^9.0.0", - "minipass": "^5.0.0 || ^6.0.2", - "path-scurry": "^1.7.0" + "jackspeak": "^2.3.5", + "minimatch": "^9.0.1", + "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0", + "path-scurry": "^1.10.1" }, "bin": { - "glob": "dist/cjs/src/bin.js" + "glob": "dist/esm/bin.mjs" }, "engines": { "node": ">=16 || 14 >=14.17" @@ -1375,9 +1375,9 @@ "dev": true }, "node_modules/jackspeak": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-2.2.0.tgz", - "integrity": "sha512-r5XBrqIJfwRIjRt/Xr5fv9Wh09qyhHfKnYddDlpM+ibRR20qrYActpCAgU6U+d53EOEjzkvxPMVHSlgR7leXrQ==", + "version": "2.3.6", + "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-2.3.6.tgz", + "integrity": "sha512-N3yCS/NegsOBokc8GAdM8UcmfsKiSS8cipheD/nivzr700H+nsMOxJjQnvwOcRYVuFkdH0wGUvW2WbXGmrZGbQ==", "dev": true, "dependencies": { "@isaacs/cliui": "^8.0.2" @@ -1401,9 +1401,9 @@ } }, "node_modules/jquery": { - "version": "3.7.0", - "resolved": "https://registry.npmjs.org/jquery/-/jquery-3.7.0.tgz", - "integrity": "sha512-umpJ0/k8X0MvD1ds0P9SfowREz2LenHsQaxSohMZ5OMNEU2r0tf8pdeEFTHMFxWVxKNyU9rTtK3CWzUCTKJUeQ==", + "version": "3.7.1", + "resolved": "https://registry.npmjs.org/jquery/-/jquery-3.7.1.tgz", + "integrity": "sha512-m4avr8yL8kmFN8psrbFFFmB/If14iN5o9nw/NgnnM+kybDJpRsAynV2BsfpTYrTRysYUdADVD7CkUUizgkpLfg==", "dev": true }, "node_modules/js-tokens": { @@ -1507,9 +1507,9 @@ } }, "node_modules/lru-cache": { - "version": "9.1.1", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-9.1.1.tgz", - "integrity": "sha512-65/Jky17UwSb0BuB9V+MyDpsOtXKmYwzhyl+cOa9XUiI4uV2Ouy/2voFP3+al0BjZbJgMBD8FojMpAf+Z+qn4A==", + "version": "10.0.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.0.1.tgz", + "integrity": "sha512-IJ4uwUTi2qCccrioU6g9g/5rvvVl13bsdczUUcqbciD9iLr095yj8DQKdObriEvuNSx325N1rV1O0sJFszx75g==", "dev": true, "engines": { "node": "14 || >=16.14" @@ -1544,9 +1544,9 @@ } }, "node_modules/minimatch": { - "version": "9.0.0", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.0.tgz", - "integrity": "sha512-0jJj8AvgKqWN05mrwuqi8QYKx1WmYSUoKSxu5Qhs9prezTz10sxAHGNZe9J9cqIJzta8DWsleh2KaVaLl6Ru2w==", + "version": "9.0.3", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.3.tgz", + "integrity": "sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==", "dev": true, "dependencies": { "brace-expansion": "^2.0.1" @@ -1559,9 +1559,9 @@ } }, "node_modules/minipass": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-6.0.2.tgz", - "integrity": "sha512-MzWSV5nYVT7mVyWCwn2o7JH13w2TBRmmSqSRCKzTw+lmft9X4z+3wjvs06Tzijo5z4W/kahUCDpRXTF+ZrmF/w==", + "version": "7.0.4", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.0.4.tgz", + "integrity": "sha512-jYofLM5Dam9279rdkWzqHozUo4ybjdZmCsDHePy5V/PbBcVMiSZR97gmAy45aqi8CK1lG2ECd356FU86avfwUQ==", "dev": true, "engines": { "node": ">=16 || 14 >=14.17" @@ -1789,13 +1789,13 @@ "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==" }, "node_modules/path-scurry": { - "version": "1.9.2", - "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.9.2.tgz", - "integrity": "sha512-qSDLy2aGFPm8i4rsbHd4MNyTcrzHFsLQykrtbuGRknZZCBBVXSv2tSCDN2Cg6Rt/GFRw8GoW9y9Ecw5rIPG1sg==", + "version": "1.10.1", + "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.10.1.tgz", + "integrity": "sha512-MkhCqzzBEpPvxxQ71Md0b1Kk51W01lrYvlMzSUaIzNsODdd7mqhiimSZlr+VegAz5Z6Vzt9Xg2ttE//XBhH3EQ==", "dev": true, "dependencies": { - "lru-cache": "^9.1.1", - "minipass": "^5.0.0 || ^6.0.2" + "lru-cache": "^9.1.1 || ^10.0.0", + "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" }, "engines": { "node": ">=16 || 14 >=14.17" @@ -2297,15 +2297,15 @@ } }, "node_modules/rimraf": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-5.0.1.tgz", - "integrity": "sha512-OfFZdwtd3lZ+XZzYP/6gTACubwFcHdLRqS9UX3UwpU2dnGQYkPFISRwvM3w9IiB2w7bW5qGo/uAwE4SmXXSKvg==", + "version": "5.0.5", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-5.0.5.tgz", + "integrity": "sha512-CqDakW+hMe/Bz202FPEymy68P+G50RfMQK+Qo5YUqc9SPipvbGjCGKd0RSKEelbsfQuw3g5NZDSrlZZAJurH1A==", "dev": true, "dependencies": { - "glob": "^10.2.5" + "glob": "^10.3.7" }, "bin": { - "rimraf": "dist/cjs/src/bin.js" + "rimraf": "dist/esm/bin.mjs" }, "engines": { "node": ">=14" @@ -2367,9 +2367,9 @@ } }, "node_modules/signal-exit": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.0.2.tgz", - "integrity": "sha512-MY2/qGx4enyjprQnFaZsHib3Yadh3IXyV2C321GY0pjGfVBu4un0uDJkwgdxqO+Rdx8JMT8IfJIRwbYVz3Ob3Q==", + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", + "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", "dev": true, "engines": { "node": ">=14" @@ -2510,9 +2510,9 @@ } }, "node_modules/strip-ansi": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.0.1.tgz", - "integrity": "sha512-cXNxvT8dFNRVfhVME3JAe98mkXDYN2O1l7jmcwMnOslDeESg1rF/OZMtK0nRAhiari1unG5cD4jG3rapUAkLbw==", + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", + "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", "dev": true, "dependencies": { "ansi-regex": "^6.0.1" @@ -2831,9 +2831,9 @@ "dev": true }, "node_modules/tw-elements": { - "version": "1.0.0-beta3", - "resolved": "https://registry.npmjs.org/tw-elements/-/tw-elements-1.0.0-beta3.tgz", - "integrity": "sha512-fz4zIsetP4KGDjMXWWpcUs8avteMnSu8ilGvo8LGgixeIlcwl2ZEOpK93HfVFYmTCO4N0YdpZ5quNNom67xxFw==", + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/tw-elements/-/tw-elements-1.0.0.tgz", + "integrity": "sha512-pD2bA1bTGzvigU79dz4pGvO207CCOpzhwlxzb7hswx40SMMkJISOkoDxU2ot3OQ7LTZM5GwuLDkZ+dquK0wdYQ==", "dev": true, "dependencies": { "@popperjs/core": "^2.6.0", diff --git a/package.json b/package.json index 1e8b34b2..8c11de02 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hugo-blowfish-theme", - "version": "2.41.1", + "version": "2.42.0", "description": "Blowfish theme for Hugo", "scripts": { "fullinstall": "npm run preinstall && npm install && npm run postinstall", @@ -37,16 +37,16 @@ "@tailwindcss/typography": "^0.5.10", "chart.js": "^4.3.3", "fuse.js": "^6.6.2", - "jquery": "^3.7.0", + "jquery": "^3.7.1", "katex": "^0.16.8", "packery": "^2.1.2", "prettier": "^3.0.1", "prettier-plugin-go-template": "^0.0.15", "prettier-plugin-tailwindcss": "^0.5.2", "puppeteer": "^21.0.3", - "rimraf": "^5.0.1", + "rimraf": "^5.0.5", "tailwindcss": "^3.3.3", - "tw-elements": "1.0.0-beta3", + "tw-elements": "1.0.0", "typeit": "^8.7.1", "vendor-copy": "^3.0.1" }, @@ -94,9 +94,9 @@ } ], "dependencies": { - "@headlessui/react": "^1.7.16", + "@headlessui/react": "^1.7.17", "@heroicons/react": "^2.0.18", - "@tailwindcss/forms": "^0.5.4", + "@tailwindcss/forms": "^0.5.6", "commander": "^11.0.0" } }