diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 042abd6..304519e 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -5,8 +5,7 @@ "extended": true, "version": "0.124.1" }, - "ghcr.io/devcontainers/features/node:1": {}, - "ghcr.io/meaningful-ooo/devcontainer-features/homebrew:2": {} + "ghcr.io/devcontainers/features/node:1": {} }, "customizations": { "vscode": { diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index df9d55a..b5796ff 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -31,21 +31,24 @@ jobs: build: runs-on: ubuntu-latest env: - HUGO_VERSION: 0.117.0 + HUGO_VERSION: 0.124.1 steps: - name: Checkout uses: actions/checkout@v4 with: - fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod + fetch-depth: 0 # fetch all history for .GitInfo and .Lastmod + submodules: recursive - name: Setup Go - uses: actions/setup-go@v4 + uses: actions/setup-go@v5 with: - go-version: '1.20' + go-version: '1.22' + - name: Setup Pages + id: pages + uses: actions/configure-pages@v4 - name: Setup Hugo - uses: peaceiris/actions-hugo@v2 - with: - hugo-version: ${{ env.HUGO_VERSION }} - extended: true + run: | + wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \ + && sudo dpkg -i ${{ runner.temp }}/hugo.deb - name: Build with Hugo env: # For maximum backward compatibility with Hugo modules @@ -55,9 +58,9 @@ jobs: hugo \ --minify \ --themesDir=../.. --source=exampleSite \ - --baseURL "https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}/" + --baseURL "${{ steps.pages.outputs.base_url }}/" - name: Upload artifact - uses: actions/upload-pages-artifact@v2 + uses: actions/upload-pages-artifact@v3 with: path: ./exampleSite/public @@ -71,4 +74,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v2 + uses: actions/deploy-pages@v4 diff --git a/README.fa.md b/README.fa.md index d37f779..0ec4a88 100644 --- a/README.fa.md +++ b/README.fa.md @@ -1,5 +1,6 @@
تم هیوگو مدرن، پاسخگو و دارای امکانات کامل برای ایجاد وبسایتهای استاتیک زیبا.
نسخهی نمایشی → [imfing.github.io/hextra](https://imfing.github.io/hextra/fa) diff --git a/README.md b/README.md index 3ec439c..2b2f98c 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,6 @@Modern, responsive, batteries-included Hugo theme for creating beautiful static websites.
Demo → [imfing.github.io/hextra](https://imfing.github.io/hextra/) diff --git a/README.zh-cn.md b/README.zh-cn.md index b845ffa..63b1c69 100644 --- a/README.zh-cn.md +++ b/README.zh-cn.md @@ -1,5 +1,6 @@用于创建美观的静态站点的现代化, 响应式, 功能强大的 Hugo 主题.
演示 → [imfing.github.io/hextra](https://imfing.github.io/hextra/) diff --git a/assets/css/compiled/main.css b/assets/css/compiled/main.css index 6b36289..00e5263 100644 --- a/assets/css/compiled/main.css +++ b/assets/css/compiled/main.css @@ -1,5 +1,5 @@ /* -! tailwindcss v3.3.3 | MIT License | https://tailwindcss.com +! tailwindcss v3.4.3 | MIT License | https://tailwindcss.com *//* 1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4) 2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116) @@ -26,17 +26,20 @@ 4. Use the user's configured `sans` font-family by default. 5. Use the user's configured `sans` font-feature-settings by default. 6. Use the user's configured `sans` font-variation-settings by default. +7. Disable tap highlights on iOS */ -html { +html, +:host { line-height: 1.5; /* 1 */ -webkit-text-size-adjust: 100%; /* 2 */ -moz-tab-size: 4; /* 3 */ -o-tab-size: 4; tab-size: 4; /* 3 */ - font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; /* 4 */ + font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; /* 4 */ font-feature-settings: normal; /* 5 */ font-variation-settings: normal; /* 6 */ + -webkit-tap-highlight-color: transparent; /* 7 */ } /* @@ -103,8 +106,10 @@ strong { } /* -1. Use the user's configured `mono` font family by default. -2. Correct the odd `em` font sizing in all browsers. +1. Use the user's configured `mono` font-family by default. +2. Use the user's configured `mono` font-feature-settings by default. +3. Use the user's configured `mono` font-variation-settings by default. +4. Correct the odd `em` font sizing in all browsers. */ code, @@ -112,7 +117,9 @@ kbd, samp, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; /* 1 */ - font-size: 1em; /* 2 */ + font-feature-settings: normal; /* 2 */ + font-variation-settings: normal; /* 3 */ + font-size: 1em; /* 4 */ } /* @@ -172,6 +179,7 @@ textarea { font-size: 100%; /* 1 */ font-weight: inherit; /* 1 */ line-height: inherit; /* 1 */ + letter-spacing: inherit; /* 1 */ color: inherit; /* 1 */ margin: 0; /* 2 */ padding: 0; /* 3 */ @@ -192,9 +200,9 @@ select { */ button, -[type='button'], -[type='reset'], -[type='submit'] { +input:where([type='button']), +input:where([type='reset']), +input:where([type='submit']) { -webkit-appearance: button; /* 1 */ background-color: transparent; /* 2 */ background-image: none; /* 2 */ @@ -434,6 +442,10 @@ video { --tw-backdrop-opacity: ; --tw-backdrop-saturate: ; --tw-backdrop-sepia: ; + --tw-contain-size: ; + --tw-contain-layout: ; + --tw-contain-paint: ; + --tw-contain-style: ; } ::backdrop { @@ -484,6 +496,10 @@ video { --tw-backdrop-opacity: ; --tw-backdrop-saturate: ; --tw-backdrop-sepia: ; + --tw-contain-size: ; + --tw-contain-layout: ; + --tw-contain-paint: ; + --tw-contain-style: ; } .hx-sr-only { position: absolute; @@ -1421,7 +1437,7 @@ video { --tw-text-opacity: 1; color: rgb(15 23 42 / var(--tw-text-opacity)); } -:is(html[class~="dark"] .content :where(h1):not(:where([class~=not-prose],[class~=not-prose] *))) { +.content :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)):is(html[class~="dark"] *) { --tw-text-opacity: 1; color: rgb(241 245 249 / var(--tw-text-opacity)); } @@ -1443,14 +1459,14 @@ video { border-color: rgb(163 163 163 / var(--tw-border-opacity)); } } -:is(html[class~="dark"] .content :where(h2):not(:where([class~=not-prose],[class~=not-prose] *))) { +.content :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)):is(html[class~="dark"] *) { border-color: hsl(var(--primary-hue) var(--primary-saturation) 94% / 0.1); --tw-text-opacity: 1; color: rgb(241 245 249 / var(--tw-text-opacity)); } @media (prefers-contrast: more) { - :is(html[class~="dark"] .content :where(h2):not(:where([class~=not-prose],[class~=not-prose] *))) { + .content :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)):is(html[class~="dark"] *) { --tw-border-opacity: 1; border-color: rgb(163 163 163 / var(--tw-border-opacity)); } @@ -1463,7 +1479,7 @@ video { --tw-text-opacity: 1; color: rgb(15 23 42 / var(--tw-text-opacity)); } -:is(html[class~="dark"] .content :where(h3):not(:where([class~=not-prose],[class~=not-prose] *))) { +.content :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)):is(html[class~="dark"] *) { --tw-text-opacity: 1; color: rgb(241 245 249 / var(--tw-text-opacity)); } @@ -1475,7 +1491,7 @@ video { --tw-text-opacity: 1; color: rgb(15 23 42 / var(--tw-text-opacity)); } -:is(html[class~="dark"] .content :where(h4):not(:where([class~=not-prose],[class~=not-prose] *))) { +.content :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)):is(html[class~="dark"] *) { --tw-text-opacity: 1; color: rgb(241 245 249 / var(--tw-text-opacity)); } @@ -1487,7 +1503,7 @@ video { --tw-text-opacity: 1; color: rgb(15 23 42 / var(--tw-text-opacity)); } -:is(html[class~="dark"] .content :where(h5):not(:where([class~=not-prose],[class~=not-prose] *))) { +.content :where(h5):not(:where([class~=not-prose],[class~=not-prose] *)):is(html[class~="dark"] *) { --tw-text-opacity: 1; color: rgb(241 245 249 / var(--tw-text-opacity)); } @@ -1499,7 +1515,7 @@ video { --tw-text-opacity: 1; color: rgb(15 23 42 / var(--tw-text-opacity)); } -:is(html[class~="dark"] .content :where(h6):not(:where([class~=not-prose],[class~=not-prose] *))) { +.content :where(h6):not(:where([class~=not-prose],[class~=not-prose] *)):is(html[class~="dark"] *) { --tw-text-opacity: 1; color: rgb(241 245 249 / var(--tw-text-opacity)); } @@ -1528,20 +1544,20 @@ video { .content :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)):first-child { margin-top: 0px; } -:is([dir="ltr"] .content :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *))) { - border-left-width: 2px; - padding-left: 1.5rem; -} -:is([dir="rtl"] .content :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *))) { - border-right-width: 2px; - padding-right: 1.5rem; -} -:is(html[class~="dark"] .content :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *))) { +.content :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)):is(html[class~="dark"] *) { --tw-border-opacity: 1; border-color: rgb(55 65 81 / var(--tw-border-opacity)); --tw-text-opacity: 1; color: rgb(156 163 175 / var(--tw-text-opacity)); } +.content :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)):where([dir="ltr"], [dir="ltr"] *) { + border-left-width: 2px; + padding-left: 1.5rem; +} +.content :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)):where([dir="rtl"], [dir="rtl"] *) { + border-right-width: 2px; + padding-right: 1.5rem; +} .content :where(pre):not(:where(.hextra-code-block pre, [class~=not-prose],[class~=not-prose] *)) { margin-bottom: 1rem; overflow-x: auto; @@ -1563,12 +1579,12 @@ video { filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow); } } -:is(html[class~="dark"] .content :where(pre):not(:where(.hextra-code-block pre, [class~=not-prose],[class~=not-prose] *))) { +.content :where(pre):not(:where(.hextra-code-block pre, [class~=not-prose],[class~=not-prose] *)):is(html[class~="dark"] *) { background-color: hsl(var(--primary-hue) var(--primary-saturation) 77% / 0.1); } @media (prefers-contrast: more) { - :is(html[class~="dark"] .content :where(pre):not(:where(.hextra-code-block pre, [class~=not-prose],[class~=not-prose] *))) { + .content :where(pre):not(:where(.hextra-code-block pre, [class~=not-prose],[class~=not-prose] *)):is(html[class~="dark"] *) { border-color: hsl(var(--primary-hue) var(--primary-saturation) 94% / 0.4); } } @@ -1586,7 +1602,7 @@ video { padding-right: .25em; font-size: .9em; } -:is(html[class~="dark"] .content :where(code):not(:where(.hextra-code-block code, [class~=not-prose],[class~=not-prose] *))) { +.content :where(code):not(:where(.hextra-code-block code, [class~=not-prose],[class~=not-prose] *)):is(html[class~="dark"] *) { border-color: rgb(255 255 255 / 0.1); background-color: rgb(255 255 255 / 0.1); } @@ -1610,11 +1626,11 @@ video { --tw-bg-opacity: 1; background-color: rgb(243 244 246 / var(--tw-bg-opacity)); } -:is(html[class~="dark"] .content :where(table):not(:where(.hextra-code-block table, [class~=not-prose],[class~=not-prose] *)) tr) { +.content :where(table):not(:where(.hextra-code-block table, [class~=not-prose],[class~=not-prose] *)) tr:is(html[class~="dark"] *) { --tw-border-opacity: 1; border-color: rgb(75 85 99 / var(--tw-border-opacity)); } -:is(html[class~="dark"] .content :where(table):not(:where(.hextra-code-block table, [class~=not-prose],[class~=not-prose] *)) tr):nth-child(even) { +.content :where(table):not(:where(.hextra-code-block table, [class~=not-prose],[class~=not-prose] *)) tr:is(html[class~="dark"] *):nth-child(even) { background-color: rgb(75 85 99 / 0.2); } .content :where(table):not(:where(.hextra-code-block table, [class~=not-prose],[class~=not-prose] *)) th { @@ -1628,7 +1644,7 @@ video { padding-bottom: 0.5rem; font-weight: 600; } -:is(html[class~="dark"] .content :where(table):not(:where(.hextra-code-block table, [class~=not-prose],[class~=not-prose] *)) th) { +.content :where(table):not(:where(.hextra-code-block table, [class~=not-prose],[class~=not-prose] *)) th:is(html[class~="dark"] *) { --tw-border-opacity: 1; border-color: rgb(75 85 99 / var(--tw-border-opacity)); } @@ -1642,7 +1658,7 @@ video { padding-top: 0.5rem; padding-bottom: 0.5rem; } -:is(html[class~="dark"] .content :where(table):not(:where(.hextra-code-block table, [class~=not-prose],[class~=not-prose] *)) td) { +.content :where(table):not(:where(.hextra-code-block table, [class~=not-prose],[class~=not-prose] *)) td:is(html[class~="dark"] *) { --tw-border-opacity: 1; border-color: rgb(75 85 99 / var(--tw-border-opacity)); } @@ -1653,10 +1669,10 @@ video { .content :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)):first-child { margin-top: 0px; } -:is([dir="ltr"] .content :where(ol):not(:where([class~=not-prose],[class~=not-prose] *))) { +.content :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)):where([dir="ltr"], [dir="ltr"] *) { margin-left: 1.5rem; } -:is([dir="rtl"] .content :where(ol):not(:where([class~=not-prose],[class~=not-prose] *))) { +.content :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)):where([dir="rtl"], [dir="rtl"] *) { margin-right: 1.5rem; } .content :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)) li { @@ -1670,10 +1686,10 @@ video { .content :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)):first-child { margin-top: 0px; } -:is([dir="ltr"] .content :where(ul):not(:where([class~=not-prose],[class~=not-prose] *))) { +.content :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)):where([dir="ltr"], [dir="ltr"] *) { margin-left: 1.5rem; } -:is([dir="rtl"] .content :where(ul):not(:where([class~=not-prose],[class~=not-prose] *))) { +.content :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)):where([dir="rtl"], [dir="rtl"] *) { margin-right: 1.5rem; } .content :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)) li { @@ -1700,7 +1716,7 @@ video { padding-right: .25em; font-size: .9em; } -:is(html[class~="dark"] .content :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *))) { +.content :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)):is(html[class~="dark"] *) { border-color: rgb(255 255 255 / 0.1); background-color: rgb(255 255 255 / 0.1); } @@ -1708,7 +1724,7 @@ video { border-radius: 0px; background-color: transparent; } -:is(html[class~="dark"] .content :where(pre.mermaid):not(:where(.hextra-code-block pre, [class~=not-prose],[class~=not-prose] *))) { +.content :where(pre.mermaid):not(:where(.hextra-code-block pre, [class~=not-prose],[class~=not-prose] *)):is(html[class~="dark"] *) { background-color: transparent; } .content :where(img):not(:where([class~=not-prose],[class~=not-prose] *)) { @@ -1726,7 +1742,7 @@ video { --tw-text-opacity: 1; color: rgb(107 114 128 / var(--tw-text-opacity)); } -:is(html[class~="dark"] .content :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)) figcaption) { +.content :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)) figcaption:is(html[class~="dark"] *) { --tw-text-opacity: 1; color: rgb(156 163 175 / var(--tw-text-opacity)); } @@ -1750,10 +1766,10 @@ video { transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; } -:is([dir="ltr"] .subheading-anchor) { +.subheading-anchor:where([dir="ltr"], [dir="ltr"] *) { margin-left: 0.25rem; } -:is([dir="rtl"] .subheading-anchor) { +.subheading-anchor:where([dir="rtl"], [dir="rtl"] *) { margin-right: 0.25rem; } span:target + .subheading-anchor, @@ -1773,7 +1789,7 @@ span + .subheading-anchor, --tw-text-opacity: 1; color: rgb(209 213 219 / var(--tw-text-opacity)); } -:is(html[class~="dark"] .subheading-anchor):after { +.subheading-anchor:is(html[class~="dark"] *):after { --tw-text-opacity: 1; color: rgb(64 64 64 / var(--tw-text-opacity)); } @@ -1781,7 +1797,7 @@ span:target + .subheading-anchor:after { --tw-text-opacity: 1; color: rgb(156 163 175 / var(--tw-text-opacity)); } -:is(html[class~="dark"] span:target + .subheading-anchor):after { +span:target + .subheading-anchor:is(html[class~="dark"] *):after { --tw-text-opacity: 1; color: rgb(115 115 115 / var(--tw-text-opacity)); } @@ -2145,12 +2161,12 @@ article details > summary::before { filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow); } } -:is(html[class~="dark"] .hextra-code-block pre) { +.hextra-code-block pre:is(html[class~="dark"] *) { background-color: hsl(var(--primary-hue) var(--primary-saturation) 77% / 0.1); } @media (prefers-contrast: more) { - :is(html[class~="dark"] .hextra-code-block pre) { + .hextra-code-block pre:is(html[class~="dark"] *) { border-color: hsl(var(--primary-hue) var(--primary-saturation) 94% / 0.4); } } @@ -2173,7 +2189,7 @@ article details > summary::before { --tw-text-opacity: 1; color: rgb(55 65 81 / var(--tw-text-opacity)); } -:is(html[class~="dark"] .hextra-code-block .filename) { +.hextra-code-block .filename:is(html[class~="dark"] *) { background-color: hsl(var(--primary-hue) var(--primary-saturation) 77% / 0.1); --tw-text-opacity: 1; color: rgb(229 231 235 / var(--tw-text-opacity)); @@ -2214,9 +2230,9 @@ article details > summary::before { --tw-text-opacity: 1; color: rgb(82 82 82 / var(--tw-text-opacity)); } -:is(html[class~="dark"] .chroma .ln),:is(html[class~="dark"] - .chroma .lnt:not(.hl > .lnt)),:is(html[class~="dark"] - .chroma .hl:not(.line)) { +.chroma .ln:is(html[class~="dark"] *), + .chroma .lnt:not(.hl > .lnt):is(html[class~="dark"] *), + .chroma .hl:not(.line):is(html[class~="dark"] *) { --tw-text-opacity: 1; color: rgb(212 212 212 / var(--tw-text-opacity)); } @@ -2271,7 +2287,7 @@ article details > summary::before { --tw-bg-opacity: 1; background-color: rgb(243 244 246 / var(--tw-bg-opacity)); } -:is(html[class~="dark"] .steps h3):before { +.steps h3:is(html[class~="dark"] *):before { --tw-border-opacity: 1; border-color: rgb(17 17 17 / var(--tw-border-opacity)); --tw-bg-opacity: 1; @@ -2287,10 +2303,10 @@ article details > summary::before { color: rgb(163 163 163 / var(--tw-text-opacity)); margin-top: 3px; } -:is([dir="ltr"] .steps h3):before { +.steps h3:where([dir="ltr"], [dir="ltr"] *):before { margin-left: -41px; } -:is([dir="rtl"] .steps h3):before { +.steps h3:where([dir="rtl"], [dir="rtl"] *):before { margin-right: -44px; } .steps h3:before { @@ -2314,7 +2330,7 @@ article details > summary::before { border-color: transparent; } } -:is(html[class~="dark"] .search-wrapper li) { +.search-wrapper li:is(html[class~="dark"] *) { --tw-text-opacity: 1; color: rgb(209 213 219 / var(--tw-text-opacity)); } @@ -2384,14 +2400,14 @@ article details > summary::before { color: rgb(17 24 39 / var(--tw-text-opacity)); } } -:is(html[class~="dark"] .search-wrapper .prefix) { +.search-wrapper .prefix:is(html[class~="dark"] *) { border-color: rgb(255 255 255 / 0.2); --tw-text-opacity: 1; color: rgb(209 213 219 / var(--tw-text-opacity)); } @media (prefers-contrast: more) { - :is(html[class~="dark"] .search-wrapper .prefix) { + .search-wrapper .prefix:is(html[class~="dark"] *) { --tw-border-opacity: 1; border-color: rgb(249 250 251 / var(--tw-border-opacity)); --tw-text-opacity: 1; @@ -2407,13 +2423,13 @@ article details > summary::before { --tw-text-opacity: 1; color: rgb(75 85 99 / var(--tw-text-opacity)); } -:is(html[class~="dark"] .search-wrapper .excerpt) { +.search-wrapper .excerpt:is(html[class~="dark"] *) { --tw-text-opacity: 1; color: rgb(156 163 175 / var(--tw-text-opacity)); } @media (prefers-contrast: more) { - :is(html[class~="dark"] .search-wrapper .excerpt) { + .search-wrapper .excerpt:is(html[class~="dark"] *) { --tw-text-opacity: 1; color: rgb(249 250 251 / var(--tw-text-opacity)); } @@ -2440,7 +2456,7 @@ article details > summary::before { background-color: rgb(255 255 255 / var(--tw-bg-opacity)); padding-top: calc(var(--navbar-height)); } - :is(html[class~="dark"] .sidebar-container) { + .sidebar-container:is(html[class~="dark"] *) { --tw-bg-opacity: 1; background-color: rgb(17 17 17 / var(--tw-bg-opacity)); } @@ -2480,7 +2496,7 @@ nav .search-wrapper { -webkit-backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia); backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia); } - :is(html[class~="dark"] .nav-container-blur) { + .nav-container-blur:is(html[class~="dark"] *) { background-color: rgb(17 17 17 / 0.8) !important; } } @@ -2555,7 +2571,7 @@ nav .search-wrapper { -webkit-backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia); backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia); } - :is(html[class~="dark"] .hextra-code-copy-btn) { + .hextra-code-copy-btn:is(html[class~="dark"] *) { --tw-bg-opacity: 0.8; } } @@ -2576,7 +2592,7 @@ body { --tw-bg-opacity: 1; background-color: rgb(255 255 255 / var(--tw-bg-opacity)); } -:is(html[class~="dark"] body) { +body:is(html[class~="dark"] *) { --tw-bg-opacity: 1; background-color: rgb(17 17 17 / var(--tw-bg-opacity)); --tw-text-opacity: 1; @@ -2805,150 +2821,6 @@ body { .hx-group[data-theme=light] .group-data-\[theme\=light\]\:hx-hidden { display: none; } -:is([dir="ltr"] .ltr\:hx-right-1) { - right: 0.25rem; -} -:is([dir="ltr"] .ltr\:hx-right-1\.5) { - right: 0.375rem; -} -:is([dir="ltr"] .ltr\:hx-right-3) { - right: 0.75rem; -} -:is([dir="ltr"] .ltr\:hx--mr-4) { - margin-right: -1rem; -} -:is([dir="ltr"] .ltr\:hx-ml-1) { - margin-left: 0.25rem; -} -:is([dir="ltr"] .ltr\:hx-ml-3) { - margin-left: 0.75rem; -} -:is([dir="ltr"] .ltr\:hx-ml-auto) { - margin-left: auto; -} -:is([dir="ltr"] .ltr\:hx-mr-auto) { - margin-right: auto; -} -:is([dir="ltr"] .ltr\:hx-rotate-180) { - --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)); -} -:is([dir="ltr"] .ltr\:hx-border-l) { - border-left-width: 1px; -} -:is([dir="ltr"] .ltr\:hx-pl-12) { - padding-left: 3rem; -} -:is([dir="ltr"] .ltr\:hx-pl-16) { - padding-left: 4rem; -} -:is([dir="ltr"] .ltr\:hx-pl-3) { - padding-left: 0.75rem; -} -:is([dir="ltr"] .ltr\:hx-pl-4) { - padding-left: 1rem; -} -:is([dir="ltr"] .ltr\:hx-pl-5) { - padding-left: 1.25rem; -} -:is([dir="ltr"] .ltr\:hx-pl-6) { - padding-left: 1.5rem; -} -:is([dir="ltr"] .ltr\:hx-pl-8) { - padding-left: 2rem; -} -:is([dir="ltr"] .ltr\:hx-pr-0) { - padding-right: 0px; -} -:is([dir="ltr"] .ltr\:hx-pr-2) { - padding-right: 0.5rem; -} -:is([dir="ltr"] .ltr\:hx-pr-4) { - padding-right: 1rem; -} -:is([dir="ltr"] .ltr\:hx-pr-9) { - padding-right: 2.25rem; -} -:is([dir="ltr"] .ltr\:hx-text-right) { - text-align: right; -} -:is([dir="ltr"] .ltr\:before\:hx-left-0)::before { - content: var(--tw-content); - left: 0px; -} -:is([dir="rtl"] .rtl\:hx-left-1) { - left: 0.25rem; -} -:is([dir="rtl"] .rtl\:hx-left-1\.5) { - left: 0.375rem; -} -:is([dir="rtl"] .rtl\:hx-left-3) { - left: 0.75rem; -} -:is([dir="rtl"] .rtl\:hx--ml-4) { - margin-left: -1rem; -} -:is([dir="rtl"] .rtl\:hx-ml-auto) { - margin-left: auto; -} -:is([dir="rtl"] .rtl\:hx-mr-1) { - margin-right: 0.25rem; -} -:is([dir="rtl"] .rtl\:hx-mr-3) { - margin-right: 0.75rem; -} -:is([dir="rtl"] .rtl\:hx-mr-auto) { - margin-right: auto; -} -:is([dir="rtl"] .rtl\:-hx-rotate-180) { - --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)); -} -:is([dir="rtl"] .rtl\:hx-border-r) { - border-right-width: 1px; -} -:is([dir="rtl"] .rtl\:hx-pl-2) { - padding-left: 0.5rem; -} -:is([dir="rtl"] .rtl\:hx-pl-4) { - padding-left: 1rem; -} -:is([dir="rtl"] .rtl\:hx-pl-9) { - padding-left: 2.25rem; -} -:is([dir="rtl"] .rtl\:hx-pr-12) { - padding-right: 3rem; -} -:is([dir="rtl"] .rtl\:hx-pr-16) { - padding-right: 4rem; -} -:is([dir="rtl"] .rtl\:hx-pr-3) { - padding-right: 0.75rem; -} -:is([dir="rtl"] .rtl\:hx-pr-4) { - padding-right: 1rem; -} -:is([dir="rtl"] .rtl\:hx-pr-5) { - padding-right: 1.25rem; -} -:is([dir="rtl"] .rtl\:hx-pr-6) { - padding-right: 1.5rem; -} -:is([dir="rtl"] .rtl\:hx-pr-8) { - padding-right: 2rem; -} -:is([dir="rtl"] .rtl\:hx-text-left) { - text-align: left; -} -:is([dir="rtl"] .rtl\:before\:hx-right-0)::before { - content: var(--tw-content); - right: 0px; -} -:is([dir="rtl"] .rtl\:before\:hx-rotate-180)::before { - content: var(--tw-content); - --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)); -} @media (prefers-contrast: more) { .contrast-more\:hx-border { @@ -3031,342 +2903,332 @@ body { border-color: rgb(17 24 39 / var(--tw-border-opacity)); } } -:is(html[class~="dark"] .dark\:hx-block) { +.dark\:hx-block:is(html[class~="dark"] *) { display: block; } -:is(html[class~="dark"] .dark\:hx-hidden) { +.dark\:hx-hidden:is(html[class~="dark"] *) { display: none; } -:is(html[class~="dark"] .dark\:hx-border-blue-200\/30) { +.dark\:hx-border-blue-200\/30:is(html[class~="dark"] *) { border-color: rgb(191 219 254 / 0.3); } -:is(html[class~="dark"] .dark\:hx-border-gray-100\/20) { +.dark\:hx-border-gray-100\/20:is(html[class~="dark"] *) { border-color: rgb(243 244 246 / 0.2); } -:is(html[class~="dark"] .dark\:hx-border-gray-400) { +.dark\:hx-border-gray-400:is(html[class~="dark"] *) { --tw-border-opacity: 1; border-color: rgb(156 163 175 / var(--tw-border-opacity)); } -:is(html[class~="dark"] .dark\:hx-border-neutral-700) { +.dark\:hx-border-neutral-700:is(html[class~="dark"] *) { --tw-border-opacity: 1; border-color: rgb(64 64 64 / var(--tw-border-opacity)); } -:is(html[class~="dark"] .dark\:hx-border-neutral-800) { +.dark\:hx-border-neutral-800:is(html[class~="dark"] *) { --tw-border-opacity: 1; border-color: rgb(38 38 38 / var(--tw-border-opacity)); } -:is(html[class~="dark"] .dark\:hx-border-orange-400\/30) { +.dark\:hx-border-orange-400\/30:is(html[class~="dark"] *) { border-color: rgb(251 146 60 / 0.3); } -:is(html[class~="dark"] .dark\:hx-border-red-200\/30) { +.dark\:hx-border-red-200\/30:is(html[class~="dark"] *) { border-color: rgb(254 202 202 / 0.3); } -:is(html[class~="dark"] .dark\:hx-border-white\/10) { +.dark\:hx-border-white\/10:is(html[class~="dark"] *) { border-color: rgb(255 255 255 / 0.1); } -:is(html[class~="dark"] .dark\:hx-border-yellow-200\/30) { +.dark\:hx-border-yellow-200\/30:is(html[class~="dark"] *) { border-color: rgb(254 240 138 / 0.3); } -:is(html[class~="dark"] .dark\:hx-bg-black\/60) { +.dark\:hx-bg-black\/60:is(html[class~="dark"] *) { background-color: rgb(0 0 0 / 0.6); } -:is(html[class~="dark"] .dark\:hx-bg-blue-900\/30) { +.dark\:hx-bg-blue-900\/30:is(html[class~="dark"] *) { background-color: rgb(30 58 138 / 0.3); } -:is(html[class~="dark"] .dark\:hx-bg-dark) { +.dark\:hx-bg-dark:is(html[class~="dark"] *) { --tw-bg-opacity: 1; background-color: rgb(17 17 17 / var(--tw-bg-opacity)); } -:is(html[class~="dark"] .dark\:hx-bg-dark\/50) { +.dark\:hx-bg-dark\/50:is(html[class~="dark"] *) { background-color: rgb(17 17 17 / 0.5); } -:is(html[class~="dark"] .dark\:hx-bg-gray-50\/10) { +.dark\:hx-bg-gray-50\/10:is(html[class~="dark"] *) { background-color: rgb(249 250 251 / 0.1); } -:is(html[class~="dark"] .dark\:hx-bg-neutral-800) { +.dark\:hx-bg-neutral-800:is(html[class~="dark"] *) { --tw-bg-opacity: 1; background-color: rgb(38 38 38 / var(--tw-bg-opacity)); } -:is(html[class~="dark"] .dark\:hx-bg-neutral-900) { +.dark\:hx-bg-neutral-900:is(html[class~="dark"] *) { --tw-bg-opacity: 1; background-color: rgb(23 23 23 / var(--tw-bg-opacity)); } -:is(html[class~="dark"] .dark\:hx-bg-orange-400\/20) { +.dark\:hx-bg-orange-400\/20:is(html[class~="dark"] *) { background-color: rgb(251 146 60 / 0.2); } -:is(html[class~="dark"] .dark\:hx-bg-primary-300\/10) { +.dark\:hx-bg-primary-300\/10:is(html[class~="dark"] *) { background-color: hsl(var(--primary-hue) var(--primary-saturation) 77% / 0.1); } -:is(html[class~="dark"] .dark\:hx-bg-primary-400\/10) { +.dark\:hx-bg-primary-400\/10:is(html[class~="dark"] *) { background-color: hsl(var(--primary-hue) var(--primary-saturation) 66% / 0.1); } -:is(html[class~="dark"] .dark\:hx-bg-primary-600) { +.dark\:hx-bg-primary-600:is(html[class~="dark"] *) { --tw-bg-opacity: 1; background-color: hsl(var(--primary-hue) var(--primary-saturation) 45% / var(--tw-bg-opacity)); } -:is(html[class~="dark"] .dark\:hx-bg-red-900\/30) { +.dark\:hx-bg-red-900\/30:is(html[class~="dark"] *) { background-color: rgb(127 29 29 / 0.3); } -:is(html[class~="dark"] .dark\:hx-bg-yellow-700\/30) { +.dark\:hx-bg-yellow-700\/30:is(html[class~="dark"] *) { background-color: rgb(161 98 7 / 0.3); } -:is(html[class~="dark"] .dark\:hx-from-gray-100) { +.dark\:hx-from-gray-100:is(html[class~="dark"] *) { --tw-gradient-from: #f3f4f6 var(--tw-gradient-from-position); --tw-gradient-to: rgb(243 244 246 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); } -:is(html[class~="dark"] .dark\:hx-to-gray-400) { +.dark\:hx-to-gray-400:is(html[class~="dark"] *) { --tw-gradient-to: #9ca3af var(--tw-gradient-to-position); } -:is(html[class~="dark"] .dark\:hx-text-blue-200) { +.dark\:hx-text-blue-200:is(html[class~="dark"] *) { --tw-text-opacity: 1; color: rgb(191 219 254 / var(--tw-text-opacity)); } -:is(html[class~="dark"] .dark\:hx-text-gray-100) { +.dark\:hx-text-gray-100:is(html[class~="dark"] *) { --tw-text-opacity: 1; color: rgb(243 244 246 / var(--tw-text-opacity)); } -:is(html[class~="dark"] .dark\:hx-text-gray-200) { +.dark\:hx-text-gray-200:is(html[class~="dark"] *) { --tw-text-opacity: 1; color: rgb(229 231 235 / var(--tw-text-opacity)); } -:is(html[class~="dark"] .dark\:hx-text-gray-300) { +.dark\:hx-text-gray-300:is(html[class~="dark"] *) { --tw-text-opacity: 1; color: rgb(209 213 219 / var(--tw-text-opacity)); } -:is(html[class~="dark"] .dark\:hx-text-gray-400) { +.dark\:hx-text-gray-400:is(html[class~="dark"] *) { --tw-text-opacity: 1; color: rgb(156 163 175 / var(--tw-text-opacity)); } -:is(html[class~="dark"] .dark\:hx-text-gray-50) { +.dark\:hx-text-gray-50:is(html[class~="dark"] *) { --tw-text-opacity: 1; color: rgb(249 250 251 / var(--tw-text-opacity)); } -:is(html[class~="dark"] .dark\:hx-text-neutral-200) { +.dark\:hx-text-neutral-200:is(html[class~="dark"] *) { --tw-text-opacity: 1; color: rgb(229 229 229 / var(--tw-text-opacity)); } -:is(html[class~="dark"] .dark\:hx-text-neutral-400) { +.dark\:hx-text-neutral-400:is(html[class~="dark"] *) { --tw-text-opacity: 1; color: rgb(163 163 163 / var(--tw-text-opacity)); } -:is(html[class~="dark"] .dark\:hx-text-orange-300) { +.dark\:hx-text-orange-300:is(html[class~="dark"] *) { --tw-text-opacity: 1; color: rgb(253 186 116 / var(--tw-text-opacity)); } -:is(html[class~="dark"] .dark\:hx-text-primary-600) { +.dark\:hx-text-primary-600:is(html[class~="dark"] *) { --tw-text-opacity: 1; color: hsl(var(--primary-hue) var(--primary-saturation) 45% / var(--tw-text-opacity)); } -:is(html[class~="dark"] .dark\:hx-text-red-200) { +.dark\:hx-text-red-200:is(html[class~="dark"] *) { --tw-text-opacity: 1; color: rgb(254 202 202 / var(--tw-text-opacity)); } -:is(html[class~="dark"] .dark\:hx-text-slate-100) { +.dark\:hx-text-slate-100:is(html[class~="dark"] *) { --tw-text-opacity: 1; color: rgb(241 245 249 / var(--tw-text-opacity)); } -:is(html[class~="dark"] .dark\:hx-text-yellow-200) { +.dark\:hx-text-yellow-200:is(html[class~="dark"] *) { --tw-text-opacity: 1; color: rgb(254 240 138 / var(--tw-text-opacity)); } -:is(html[class~="dark"] .dark\:hx-opacity-80) { +.dark\:hx-opacity-80:is(html[class~="dark"] *) { opacity: 0.8; } -:is(html[class~="dark"] .dark\:hx-shadow-\[0_-12px_16px_\#111\]) { +.dark\:hx-shadow-\[0_-12px_16px_\#111\]:is(html[class~="dark"] *) { --tw-shadow: 0 -12px 16px #111; --tw-shadow-colored: 0 -12px 16px var(--tw-shadow-color); box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); } -:is(html[class~="dark"] .dark\:hx-shadow-\[0_-1px_0_rgba\(255\2c 255\2c 255\2c \.1\)_inset\]) { +.dark\:hx-shadow-\[0_-1px_0_rgba\(255\2c 255\2c 255\2c \.1\)_inset\]:is(html[class~="dark"] *) { --tw-shadow: 0 -1px 0 rgba(255,255,255,.1) inset; --tw-shadow-colored: inset 0 -1px 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); } -:is(html[class~="dark"] .dark\:hx-shadow-none) { +.dark\:hx-shadow-none:is(html[class~="dark"] *) { --tw-shadow: 0 0 #0000; --tw-shadow-colored: 0 0 #0000; box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); } -:is(html[class~="dark"] .dark\:hx-ring-white\/20) { +.dark\:hx-ring-white\/20:is(html[class~="dark"] *) { --tw-ring-color: rgb(255 255 255 / 0.2); } -:is(html[class~="dark"] .dark\:placeholder\:hx-text-gray-400)::-moz-placeholder { +.dark\:placeholder\:hx-text-gray-400:is(html[class~="dark"] *)::-moz-placeholder { --tw-text-opacity: 1; color: rgb(156 163 175 / var(--tw-text-opacity)); } -:is(html[class~="dark"] .dark\:placeholder\:hx-text-gray-400)::placeholder { +.dark\:placeholder\:hx-text-gray-400:is(html[class~="dark"] *)::placeholder { --tw-text-opacity: 1; color: rgb(156 163 175 / var(--tw-text-opacity)); } -:is(html[class~="dark"] .dark\:before\:hx-bg-neutral-800)::before { +.dark\:before\:hx-bg-neutral-800:is(html[class~="dark"] *)::before { content: var(--tw-content); --tw-bg-opacity: 1; background-color: rgb(38 38 38 / var(--tw-bg-opacity)); } -:is(html[class~="dark"] .dark\:before\:hx-invert)::before { +.dark\:before\:hx-invert:is(html[class~="dark"] *)::before { content: var(--tw-content); --tw-invert: invert(100%); filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow); } -:is(html[class~="dark"] .dark\:hover\:hx-border-gray-100:hover) { +.dark\:hover\:hx-border-gray-100:hover:is(html[class~="dark"] *) { --tw-border-opacity: 1; border-color: rgb(243 244 246 / var(--tw-border-opacity)); } -:is(html[class~="dark"] .dark\:hover\:hx-border-gray-600:hover) { +.dark\:hover\:hx-border-gray-600:hover:is(html[class~="dark"] *) { --tw-border-opacity: 1; border-color: rgb(75 85 99 / var(--tw-border-opacity)); } -:is(html[class~="dark"] .dark\:hover\:hx-border-neutral-500:hover) { +.dark\:hover\:hx-border-neutral-500:hover:is(html[class~="dark"] *) { --tw-border-opacity: 1; border-color: rgb(115 115 115 / var(--tw-border-opacity)); } -:is(html[class~="dark"] .dark\:hover\:hx-border-neutral-700:hover) { +.dark\:hover\:hx-border-neutral-700:hover:is(html[class~="dark"] *) { --tw-border-opacity: 1; border-color: rgb(64 64 64 / var(--tw-border-opacity)); } -:is(html[class~="dark"] .dark\:hover\:hx-border-neutral-800:hover) { +.dark\:hover\:hx-border-neutral-800:hover:is(html[class~="dark"] *) { --tw-border-opacity: 1; border-color: rgb(38 38 38 / var(--tw-border-opacity)); } -:is(html[class~="dark"] .dark\:hover\:hx-bg-gray-100\/5:hover) { +.dark\:hover\:hx-bg-gray-100\/5:hover:is(html[class~="dark"] *) { background-color: rgb(243 244 246 / 0.05); } -:is(html[class~="dark"] .dark\:hover\:hx-bg-neutral-700:hover) { +.dark\:hover\:hx-bg-neutral-700:hover:is(html[class~="dark"] *) { --tw-bg-opacity: 1; background-color: rgb(64 64 64 / var(--tw-bg-opacity)); } -:is(html[class~="dark"] .dark\:hover\:hx-bg-neutral-800:hover) { +.dark\:hover\:hx-bg-neutral-800:hover:is(html[class~="dark"] *) { --tw-bg-opacity: 1; background-color: rgb(38 38 38 / var(--tw-bg-opacity)); } -:is(html[class~="dark"] .dark\:hover\:hx-bg-neutral-900:hover) { +.dark\:hover\:hx-bg-neutral-900:hover:is(html[class~="dark"] *) { --tw-bg-opacity: 1; background-color: rgb(23 23 23 / var(--tw-bg-opacity)); } -:is(html[class~="dark"] .dark\:hover\:hx-bg-primary-100\/5:hover) { +.dark\:hover\:hx-bg-primary-100\/5:hover:is(html[class~="dark"] *) { background-color: hsl(var(--primary-hue) var(--primary-saturation) 94% / 0.05); } -:is(html[class~="dark"] .dark\:hover\:hx-bg-primary-700:hover) { +.dark\:hover\:hx-bg-primary-700:hover:is(html[class~="dark"] *) { --tw-bg-opacity: 1; background-color: hsl(var(--primary-hue) var(--primary-saturation) 39% / var(--tw-bg-opacity)); } -:is(html[class~="dark"] .hover\:dark\:hx-bg-primary-500\/10):hover { +.hover\:dark\:hx-bg-primary-500\/10:is(html[class~="dark"] *):hover { background-color: hsl(var(--primary-hue) var(--primary-saturation) 50% / 0.1); } -:is(html[class~="dark"] .dark\:hover\:hx-text-gray-100:hover) { +.dark\:hover\:hx-text-gray-100:hover:is(html[class~="dark"] *) { --tw-text-opacity: 1; color: rgb(243 244 246 / var(--tw-text-opacity)); } -:is(html[class~="dark"] .dark\:hover\:hx-text-gray-200:hover) { +.dark\:hover\:hx-text-gray-200:hover:is(html[class~="dark"] *) { --tw-text-opacity: 1; color: rgb(229 231 235 / var(--tw-text-opacity)); } -:is(html[class~="dark"] .dark\:hover\:hx-text-gray-300:hover) { +.dark\:hover\:hx-text-gray-300:hover:is(html[class~="dark"] *) { --tw-text-opacity: 1; color: rgb(209 213 219 / var(--tw-text-opacity)); } -:is(html[class~="dark"] .dark\:hover\:hx-text-gray-50:hover) { +.dark\:hover\:hx-text-gray-50:hover:is(html[class~="dark"] *) { --tw-text-opacity: 1; color: rgb(249 250 251 / var(--tw-text-opacity)); } -:is(html[class~="dark"] .dark\:hover\:hx-text-neutral-50:hover) { +.dark\:hover\:hx-text-neutral-50:hover:is(html[class~="dark"] *) { --tw-text-opacity: 1; color: rgb(250 250 250 / var(--tw-text-opacity)); } -:is(html[class~="dark"] .dark\:hover\:hx-text-white:hover) { +.dark\:hover\:hx-text-white:hover:is(html[class~="dark"] *) { --tw-text-opacity: 1; color: rgb(255 255 255 / var(--tw-text-opacity)); } -:is(html[class~="dark"] .hover\:dark\:hx-text-primary-600):hover { +.hover\:dark\:hx-text-primary-600:is(html[class~="dark"] *):hover { --tw-text-opacity: 1; color: hsl(var(--primary-hue) var(--primary-saturation) 45% / var(--tw-text-opacity)); } -:is(html[class~="dark"] .dark\:hover\:hx-shadow-none:hover) { +.dark\:hover\:hx-shadow-none:hover:is(html[class~="dark"] *) { --tw-shadow: 0 0 #0000; --tw-shadow-colored: 0 0 #0000; box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); } -:is(html[class~="dark"] .dark\:focus\:hx-bg-dark:focus) { +.dark\:focus\:hx-bg-dark:focus:is(html[class~="dark"] *) { --tw-bg-opacity: 1; background-color: rgb(17 17 17 / var(--tw-bg-opacity)); } -:is(html[class~="dark"] .dark\:focus\:hx-ring-primary-800:focus) { +.dark\:focus\:hx-ring-primary-800:focus:is(html[class~="dark"] *) { --tw-ring-opacity: 1; --tw-ring-color: hsl(var(--primary-hue) var(--primary-saturation) 32% / var(--tw-ring-opacity)); } @media (prefers-contrast: more) { - :is(html[class~="dark"] .contrast-more\:dark\:hx-border-current) { + .contrast-more\:dark\:hx-border-current:is(html[class~="dark"] *) { border-color: currentColor; } - :is(html[class~="dark"] .contrast-more\:dark\:hx-border-gray-50) { + .contrast-more\:dark\:hx-border-gray-50:is(html[class~="dark"] *) { --tw-border-opacity: 1; border-color: rgb(249 250 251 / var(--tw-border-opacity)); } - :is(html[class~="dark"] .contrast-more\:dark\:hx-border-neutral-400) { + .contrast-more\:dark\:hx-border-neutral-400:is(html[class~="dark"] *) { --tw-border-opacity: 1; border-color: rgb(163 163 163 / var(--tw-border-opacity)); } - :is(html[class~="dark"] .contrast-more\:dark\:hx-border-primary-500) { + .contrast-more\:dark\:hx-border-primary-500:is(html[class~="dark"] *) { --tw-border-opacity: 1; border-color: hsl(var(--primary-hue) var(--primary-saturation) 50% / var(--tw-border-opacity)); } - :is(html[class~="dark"] .dark\:contrast-more\:hx-border-neutral-400) { + .dark\:contrast-more\:hx-border-neutral-400:is(html[class~="dark"] *) { --tw-border-opacity: 1; border-color: rgb(163 163 163 / var(--tw-border-opacity)); } - :is(html[class~="dark"] .contrast-more\:dark\:hx-text-current) { + .contrast-more\:dark\:hx-text-current:is(html[class~="dark"] *) { color: currentColor; } - :is(html[class~="dark"] .contrast-more\:dark\:hx-text-gray-100) { + .contrast-more\:dark\:hx-text-gray-100:is(html[class~="dark"] *) { --tw-text-opacity: 1; color: rgb(243 244 246 / var(--tw-text-opacity)); } - :is(html[class~="dark"] .contrast-more\:dark\:hx-text-gray-300) { + .contrast-more\:dark\:hx-text-gray-300:is(html[class~="dark"] *) { --tw-text-opacity: 1; color: rgb(209 213 219 / var(--tw-text-opacity)); } - :is(html[class~="dark"] .contrast-more\:dark\:hx-text-gray-50) { + .contrast-more\:dark\:hx-text-gray-50:is(html[class~="dark"] *) { --tw-text-opacity: 1; color: rgb(249 250 251 / var(--tw-text-opacity)); } - :is(html[class~="dark"] .contrast-more\:dark\:hx-shadow-\[0_0_0_1px_\#fff\]) { + .contrast-more\:dark\:hx-shadow-\[0_0_0_1px_\#fff\]:is(html[class~="dark"] *) { --tw-shadow: 0 0 0 1px #fff; --tw-shadow-colored: 0 0 0 1px var(--tw-shadow-color); box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); } - :is(html[class~="dark"] .contrast-more\:dark\:hx-shadow-none) { + .contrast-more\:dark\:hx-shadow-none:is(html[class~="dark"] *) { --tw-shadow: 0 0 #0000; --tw-shadow-colored: 0 0 #0000; box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); } - :is(html[class~="dark"] .contrast-more\:dark\:hover\:hx-border-gray-50:hover) { + .contrast-more\:dark\:hover\:hx-border-gray-50:hover:is(html[class~="dark"] *) { --tw-border-opacity: 1; border-color: rgb(249 250 251 / var(--tw-border-opacity)); } } -@media print { - - .print\:hx-hidden { - display: none; - } - - .print\:hx-bg-transparent { - background-color: transparent; - } -} @media not all and (min-width: 1280px) { .max-xl\:hx-hidden { @@ -3494,14 +3356,6 @@ body { .md\:hx-text-sm { font-size: .875rem; } - - :is([dir="ltr"] .ltr\:md\:hx-left-auto) { - left: auto; - } - - :is([dir="rtl"] .rtl\:md\:hx-right-auto) { - right: auto; - } } @media (min-width: 1280px) { @@ -3509,3 +3363,169 @@ body { display: block; } } +.ltr\:hx-right-1:where([dir="ltr"], [dir="ltr"] *) { + right: 0.25rem; +} +.ltr\:hx-right-1\.5:where([dir="ltr"], [dir="ltr"] *) { + right: 0.375rem; +} +.ltr\:hx-right-3:where([dir="ltr"], [dir="ltr"] *) { + right: 0.75rem; +} +.ltr\:hx--mr-4:where([dir="ltr"], [dir="ltr"] *) { + margin-right: -1rem; +} +.ltr\:hx-ml-1:where([dir="ltr"], [dir="ltr"] *) { + margin-left: 0.25rem; +} +.ltr\:hx-ml-3:where([dir="ltr"], [dir="ltr"] *) { + margin-left: 0.75rem; +} +.ltr\:hx-ml-auto:where([dir="ltr"], [dir="ltr"] *) { + margin-left: auto; +} +.ltr\:hx-mr-auto:where([dir="ltr"], [dir="ltr"] *) { + margin-right: auto; +} +.ltr\:hx-rotate-180:where([dir="ltr"], [dir="ltr"] *) { + --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)); +} +.ltr\:hx-border-l:where([dir="ltr"], [dir="ltr"] *) { + border-left-width: 1px; +} +.ltr\:hx-pl-12:where([dir="ltr"], [dir="ltr"] *) { + padding-left: 3rem; +} +.ltr\:hx-pl-16:where([dir="ltr"], [dir="ltr"] *) { + padding-left: 4rem; +} +.ltr\:hx-pl-3:where([dir="ltr"], [dir="ltr"] *) { + padding-left: 0.75rem; +} +.ltr\:hx-pl-4:where([dir="ltr"], [dir="ltr"] *) { + padding-left: 1rem; +} +.ltr\:hx-pl-5:where([dir="ltr"], [dir="ltr"] *) { + padding-left: 1.25rem; +} +.ltr\:hx-pl-6:where([dir="ltr"], [dir="ltr"] *) { + padding-left: 1.5rem; +} +.ltr\:hx-pl-8:where([dir="ltr"], [dir="ltr"] *) { + padding-left: 2rem; +} +.ltr\:hx-pr-0:where([dir="ltr"], [dir="ltr"] *) { + padding-right: 0px; +} +.ltr\:hx-pr-2:where([dir="ltr"], [dir="ltr"] *) { + padding-right: 0.5rem; +} +.ltr\:hx-pr-4:where([dir="ltr"], [dir="ltr"] *) { + padding-right: 1rem; +} +.ltr\:hx-pr-9:where([dir="ltr"], [dir="ltr"] *) { + padding-right: 2.25rem; +} +.ltr\:hx-text-right:where([dir="ltr"], [dir="ltr"] *) { + text-align: right; +} +.ltr\:before\:hx-left-0:where([dir="ltr"], [dir="ltr"] *)::before { + content: var(--tw-content); + left: 0px; +} +@media (min-width: 768px) { + + .ltr\:md\:hx-left-auto:where([dir="ltr"], [dir="ltr"] *) { + left: auto; + } +} +.rtl\:hx-left-1:where([dir="rtl"], [dir="rtl"] *) { + left: 0.25rem; +} +.rtl\:hx-left-1\.5:where([dir="rtl"], [dir="rtl"] *) { + left: 0.375rem; +} +.rtl\:hx-left-3:where([dir="rtl"], [dir="rtl"] *) { + left: 0.75rem; +} +.rtl\:hx--ml-4:where([dir="rtl"], [dir="rtl"] *) { + margin-left: -1rem; +} +.rtl\:hx-ml-auto:where([dir="rtl"], [dir="rtl"] *) { + margin-left: auto; +} +.rtl\:hx-mr-1:where([dir="rtl"], [dir="rtl"] *) { + margin-right: 0.25rem; +} +.rtl\:hx-mr-3:where([dir="rtl"], [dir="rtl"] *) { + margin-right: 0.75rem; +} +.rtl\:hx-mr-auto:where([dir="rtl"], [dir="rtl"] *) { + margin-right: auto; +} +.rtl\:-hx-rotate-180:where([dir="rtl"], [dir="rtl"] *) { + --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)); +} +.rtl\:hx-border-r:where([dir="rtl"], [dir="rtl"] *) { + border-right-width: 1px; +} +.rtl\:hx-pl-2:where([dir="rtl"], [dir="rtl"] *) { + padding-left: 0.5rem; +} +.rtl\:hx-pl-4:where([dir="rtl"], [dir="rtl"] *) { + padding-left: 1rem; +} +.rtl\:hx-pl-9:where([dir="rtl"], [dir="rtl"] *) { + padding-left: 2.25rem; +} +.rtl\:hx-pr-12:where([dir="rtl"], [dir="rtl"] *) { + padding-right: 3rem; +} +.rtl\:hx-pr-16:where([dir="rtl"], [dir="rtl"] *) { + padding-right: 4rem; +} +.rtl\:hx-pr-3:where([dir="rtl"], [dir="rtl"] *) { + padding-right: 0.75rem; +} +.rtl\:hx-pr-4:where([dir="rtl"], [dir="rtl"] *) { + padding-right: 1rem; +} +.rtl\:hx-pr-5:where([dir="rtl"], [dir="rtl"] *) { + padding-right: 1.25rem; +} +.rtl\:hx-pr-6:where([dir="rtl"], [dir="rtl"] *) { + padding-right: 1.5rem; +} +.rtl\:hx-pr-8:where([dir="rtl"], [dir="rtl"] *) { + padding-right: 2rem; +} +.rtl\:hx-text-left:where([dir="rtl"], [dir="rtl"] *) { + text-align: left; +} +.rtl\:before\:hx-right-0:where([dir="rtl"], [dir="rtl"] *)::before { + content: var(--tw-content); + right: 0px; +} +.rtl\:before\:hx-rotate-180:where([dir="rtl"], [dir="rtl"] *)::before { + content: var(--tw-content); + --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)); +} +@media (min-width: 768px) { + + .rtl\:md\:hx-right-auto:where([dir="rtl"], [dir="rtl"] *) { + right: auto; + } +} +@media print { + + .print\:hx-hidden { + display: none; + } + + .print\:hx-bg-transparent { + background-color: transparent; + } +} diff --git a/assets/lib/katex/auto-render.min.js b/assets/lib/katex/auto-render.min.js index 74f07c2..46d62af 100644 --- a/assets/lib/katex/auto-render.min.js +++ b/assets/lib/katex/auto-render.min.js @@ -1 +1 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("katex")):"function"==typeof define&&define.amd?define(["katex"],t):"object"==typeof exports?exports.renderMathInElement=t(require("katex")):e.renderMathInElement=t(e.katex)}("undefined"!=typeof self?self:this,(function(e){return function(){"use strict";var t={771:function(t){t.exports=e}},r={};function n(e){var i=r[e];if(void 0!==i)return i.exports;var a=r[e]={exports:{}};return t[e](a,a.exports,n),a.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};var i={};return function(){n.d(i,{default:function(){return s}});var e=n(771),t=n.n(e),r=function(e,t,r){for(var n=r,i=0,a=e.length;n0&&(t="."===(t=e)?null:t),t};ot({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler:function(e,t){var r,n=e.parser,a=t[4],i=t[5],o=lt(t[0]),s="atom"===o.type&&"open"===o.family?sn(o.text):null,l=lt(t[1]),h="atom"===l.type&&"close"===l.family?sn(l.text):null,c=Ut(t[2],"size"),m=null;r=!!c.isBlank||(m=c.value).number>0;var u="auto",p=t[3];if("ordgroup"===p.type){if(p.body.length>0){var d=Ut(p.body[0],"textord");u=on[Number(d.text)]}}else p=Ut(p,"textord"),u=on[Number(p.text)];return{type:"genfrac",mode:n.mode,numer:a,denom:i,continued:!1,hasBarLine:r,barSize:m,leftDelim:s,rightDelim:h,size:u}},htmlBuilder:nn,mathmlBuilder:an}),ot({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler:function(e,t){var r=e.parser,n=(e.funcName,e.token);return{type:"infix",mode:r.mode,replaceWith:"\\\\abovefrac",size:Ut(t[0],"size").value,token:n}}}),ot({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:function(e,t){var r=e.parser,n=(e.funcName,t[0]),a=function(e){if(!e)throw new Error("Expected non-null, but got "+String(e));return e}(Ut(t[1],"infix").size),i=t[2],o=a.number>0;return{type:"genfrac",mode:r.mode,numer:n,denom:i,continued:!1,hasBarLine:o,barSize:a,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:nn,mathmlBuilder:an});var ln=function(e,t){var r,n,a=t.style;"supsub"===e.type?(r=e.sup?wt(e.sup,t.havingStyle(a.sup()),t):wt(e.sub,t.havingStyle(a.sub()),t),n=Ut(e.base,"horizBrace")):n=Ut(e,"horizBrace");var i,o=wt(n.base,t.havingBaseStyle(x.DISPLAY)),s=Gt(n,t);if(n.isOver?(i=Ke.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:o},{type:"kern",size:.1},{type:"elem",elem:s}]},t)).children[0].children[0].children[1].classes.push("svg-align"):(i=Ke.makeVList({positionType:"bottom",positionData:o.depth+.1+s.height,children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:o}]},t)).children[0].children[0].children[0].classes.push("svg-align"),r){var l=Ke.makeSpan(["mord",n.isOver?"mover":"munder"],[i],t);i=n.isOver?Ke.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:.2},{type:"elem",elem:r}]},t):Ke.makeVList({positionType:"bottom",positionData:l.depth+.2+r.height+r.depth,children:[{type:"elem",elem:r},{type:"kern",size:.2},{type:"elem",elem:l}]},t)}return Ke.makeSpan(["mord",n.isOver?"mover":"munder"],[i],t)};ot({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler:function(e,t){var r=e.parser,n=e.funcName;return{type:"horizBrace",mode:r.mode,label:n,isOver:/^\\over/.test(n),base:t[0]}},htmlBuilder:ln,mathmlBuilder:function(e,t){var r=Ft(e.label);return new Tt.MathNode(e.isOver?"mover":"munder",[Rt(e.base,t),r])}}),ot({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:function(e,t){var r=e.parser,n=t[1],a=Ut(t[0],"url").url;return r.settings.isTrusted({command:"\\href",url:a})?{type:"href",mode:r.mode,href:a,body:ht(n)}:r.formatUnsupportedCmd("\\href")},htmlBuilder:function(e,t){var r=ft(e.body,t,!1);return Ke.makeAnchor(e.href,[],r,t)},mathmlBuilder:function(e,t){var r=It(e.body,t);return r instanceof zt||(r=new zt("mrow",[r])),r.setAttribute("href",e.href),r}}),ot({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:function(e,t){var r=e.parser,n=Ut(t[0],"url").url;if(!r.settings.isTrusted({command:"\\url",url:n}))return r.formatUnsupportedCmd("\\url");for(var a=[],i=0;i e)))for(r=0;r {let r=new gt.MathNode("mfrac",[vt(e.numer,t),vt(e.denom,t)]);if(e.hasBarLine){if(e.barSize){const n=P(e.barSize,t);r.setAttribute("linethickness",F(n))}}else r.setAttribute("linethickness","0px");const n=Yr(e.size,t.style);if(n.size!==t.style.size){r=new gt.MathNode("mstyle",[r]);const e=n.size===w.DISPLAY.size?"true":"false";r.setAttribute("displaystyle",e),r.setAttribute("scriptlevel","0")}if(null!=e.leftDelim||null!=e.rightDelim){const t=[];if(null!=e.leftDelim){const r=new gt.MathNode("mo",[new gt.TextNode(e.leftDelim.replace("\\",""))]);r.setAttribute("fence","true"),t.push(r)}if(t.push(r),null!=e.rightDelim){const r=new gt.MathNode("mo",[new gt.TextNode(e.rightDelim.replace("\\",""))]);r.setAttribute("fence","true"),t.push(r)}return bt(t)}return r};je({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{let{parser:r,funcName:n}=e;const o=t[0],s=t[1];let i,a=null,l=null,h="auto";switch(n){case"\\dfrac":case"\\frac":case"\\tfrac":i=!0;break;case"\\\\atopfrac":i=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":i=!1,a="(",l=")";break;case"\\\\bracefrac":i=!1,a="\\{",l="\\}";break;case"\\\\brackfrac":i=!1,a="[",l="]";break;default:throw new Error("Unrecognized genfrac command")}switch(n){case"\\dfrac":case"\\dbinom":h="display";break;case"\\tfrac":case"\\tbinom":h="text"}return{type:"genfrac",mode:r.mode,continued:!1,numer:o,denom:s,hasBarLine:i,leftDelim:a,rightDelim:l,size:h,barSize:null}},htmlBuilder:Xr,mathmlBuilder:Wr}),je({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(e,t)=>{let{parser:r,funcName:n}=e;const o=t[0],s=t[1];return{type:"genfrac",mode:r.mode,continued:!0,numer:o,denom:s,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}}),je({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){let t,{parser:r,funcName:n,token:o}=e;switch(n){case"\\over":t="\\frac";break;case"\\choose":t="\\binom";break;case"\\atop":t="\\\\atopfrac";break;case"\\brace":t="\\\\bracefrac";break;case"\\brack":t="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:r.mode,replaceWith:t,token:o}}});const _r=["display","text","script","scriptscript"],jr=function(e){let t=null;return e.length>0&&(t=e,t="."===t?null:t),t};je({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){let{parser:r}=e;const n=t[4],o=t[5],s=Ze(t[0]),i="atom"===s.type&&"open"===s.family?jr(s.text):null,a=Ze(t[1]),l="atom"===a.type&&"close"===a.family?jr(a.text):null,h=qt(t[2],"size");let c,m=null;h.isBlank?c=!0:(m=h.value,c=m.number>0);let p="auto",u=t[3];if("ordgroup"===u.type){if(u.body.length>0){const e=qt(u.body[0],"textord");p=_r[Number(e.text)]}}else u=qt(u,"textord"),p=_r[Number(u.text)];return{type:"genfrac",mode:r.mode,numer:n,denom:o,continued:!1,hasBarLine:c,barSize:m,leftDelim:i,rightDelim:l,size:p}},htmlBuilder:Xr,mathmlBuilder:Wr}),je({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){let{parser:r,funcName:n,token:o}=e;return{type:"infix",mode:r.mode,replaceWith:"\\\\abovefrac",size:qt(t[0],"size").value,token:o}}}),je({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{let{parser:r,funcName:n}=e;const o=t[0],s=function(e){if(!e)throw new Error("Expected non-null, but got "+String(e));return e}(qt(t[1],"infix").size),i=t[2],a=s.number>0;return{type:"genfrac",mode:r.mode,numer:o,denom:i,continued:!1,hasBarLine:a,barSize:s,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:Xr,mathmlBuilder:Wr});const $r=(e,t)=>{const r=t.style;let n,o;"supsub"===e.type?(n=e.sup?ht(e.sup,t.havingStyle(r.sup()),t):ht(e.sub,t.havingStyle(r.sub()),t),o=qt(e.base,"horizBrace")):o=qt(e,"horizBrace");const s=ht(o.base,t.havingBaseStyle(w.DISPLAY)),i=Nt(o,t);let a;if(o.isOver?(a=Ve.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:i}]},t),a.children[0].children[0].children[1].classes.push("svg-align")):(a=Ve.makeVList({positionType:"bottom",positionData:s.depth+.1+i.height,children:[{type:"elem",elem:i},{type:"kern",size:.1},{type:"elem",elem:s}]},t),a.children[0].children[0].children[0].classes.push("svg-align")),n){const e=Ve.makeSpan(["mord",o.isOver?"mover":"munder"],[a],t);a=o.isOver?Ve.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:e},{type:"kern",size:.2},{type:"elem",elem:n}]},t):Ve.makeVList({positionType:"bottom",positionData:e.depth+.2+n.height+n.depth,children:[{type:"elem",elem:n},{type:"kern",size:.2},{type:"elem",elem:e}]},t)}return Ve.makeSpan(["mord",o.isOver?"mover":"munder"],[a],t)};je({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(e,t){let{parser:r,funcName:n}=e;return{type:"horizBrace",mode:r.mode,label:n,isOver:/^\\over/.test(n),base:t[0]}},htmlBuilder:$r,mathmlBuilder:(e,t)=>{const r=Ct(e.label);return new gt.MathNode(e.isOver?"mover":"munder",[vt(e.base,t),r])}}),je({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{let{parser:r}=e;const n=t[1],o=qt(t[0],"url").url;return r.settings.isTrusted({command:"\\href",url:o})?{type:"href",mode:r.mode,href:o,body:Ke(n)}:r.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{const r=nt(e.body,t,!1);return Ve.makeAnchor(e.href,[],r,t)},mathmlBuilder:(e,t)=>{let r=wt(e.body,t);return r instanceof ut||(r=new ut("mrow",[r])),r.setAttribute("href",e.href),r}}),je({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{let{parser:r}=e;const n=qt(t[0],"url").url;if(!r.settings.isTrusted({command:"\\url",url:n}))return r.formatUnsupportedCmd("\\url");const o=[];for(let e=0;e >>1;f(E[F],C)<0?A=F+1:P=F}while(A >>1;f(E[F],C)<=0?A=F+1:P=F}while(A A&&p(E[F-1],C)>-p(E[F],C)?F-1:F}return{left:v,center:b,right:m}}function Z5e(){return 0}function J5e(i){return i===null?NaN:+i}const t6e=qft(gU).right;qft(J5e).center;const e6e=t6e;class MLt extends Map{constructor(a,f=i6e){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:f}}),a!=null)for(const[p,v]of a)this.set(p,v)}get(a){return super.get(DLt(this,a))}has(a){return super.has(DLt(this,a))}set(a,f){return super.set(n6e(this,a),f)}delete(a){return super.delete(r6e(this,a))}}function DLt({_intern:i,_key:a},f){const p=a(f);return i.has(p)?i.get(p):f}function n6e({_intern:i,_key:a},f){const p=a(f);return i.has(p)?i.get(p):(i.set(p,f),f)}function r6e({_intern:i,_key:a},f){const p=a(f);return i.has(p)&&(f=i.get(p),i.delete(p)),f}function i6e(i){return i!==null&&typeof i=="object"?i.valueOf():i}var Hft=Math.sqrt(50),Vft=Math.sqrt(10),Gft=Math.sqrt(2);function s6e(i,a,f){var p,v=-1,m,b,E;if(a=+a,i=+i,f=+f,i===a&&f>0)return[i];if((p=a0){let C=Math.round(i/E),A=Math.round(a/E);for(C*Ea&&--A,b=new Array(m=A-C+1);++v a?1:i>=a?0:NaN}function K6e(){var i=arguments[0];return arguments[0]=this,i.apply(null,arguments),this}function Y6e(){return Array.from(this)}function X6e(){for(var i=this._groups,a=0,f=i.length;a 0&&C<1?0:b,new Ww(b,E,C,i.opacity)}function ake(i,a,f,p){return arguments.length===1?sMt(i):new Ww(i,a,f,p??1)}function Ww(i,a,f,p){this.h=+i,this.s=+a,this.l=+f,this.opacity=+p}TN(Ww,ake,yU(RE,{brighter(i){return i=i==null?xU:Math.pow(xU,i),new Ww(this.h,this.s,this.l*i,this.opacity)},darker(i){return i=i==null?_N:Math.pow(_N,i),new Ww(this.h,this.s,this.l*i,this.opacity)},rgb(){var i=this.h%360+(this.h<0)*360,a=isNaN(i)||isNaN(this.s)?0:this.s,f=this.l,p=f+(f<.5?f:1-f)*a,v=2*f-p;return new g0(t1t(i>=240?i-240:i+120,v,p),t1t(i,v,p),t1t(i<120?i+240:i-120,v,p),this.opacity)},clamp(){return new Ww(aMt(this.h),TU(this.s),TU(this.l),EU(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const i=EU(this.opacity);return`${i===1?"hsl(":"hsla("}${aMt(this.h)}, ${TU(this.s)*100}%, ${TU(this.l)*100}%${i===1?")":`, ${i})`}`}}));function aMt(i){return i=(i||0)%360,i<0?i+360:i}function TU(i){return Math.max(0,Math.min(1,i||0))}function t1t(i,a,f){return(i<60?a+(f-a)*i/60:i<180?f:i<240?a+(f-a)*(240-i)/60:a)*255}const oke=Math.PI/180,cke=180/Math.PI,_U=18,oMt=.96422,cMt=1,uMt=.82521,lMt=4/29,EA=6/29,hMt=3*EA*EA,uke=EA*EA*EA;function fMt(i){if(i instanceof a3)return new a3(i.l,i.a,i.b,i.opacity);if(i instanceof b5)return dMt(i);i instanceof g0||(i=eMt(i));var a=i1t(i.r),f=i1t(i.g),p=i1t(i.b),v=e1t((.2225045*a+.7168786*f+.0606169*p)/cMt),m,b;return a===f&&f===p?m=b=v:(m=e1t((.4360747*a+.3850649*f+.1430804*p)/oMt),b=e1t((.0139322*a+.0971045*f+.7141733*p)/uMt)),new a3(116*v-16,500*(m-v),200*(v-b),i.opacity)}function lke(i,a,f,p){return arguments.length===1?fMt(i):new a3(i,a,f,p??1)}function a3(i,a,f,p){this.l=+i,this.a=+a,this.b=+f,this.opacity=+p}TN(a3,lke,yU(RE,{brighter(i){return new a3(this.l+_U*(i??1),this.a,this.b,this.opacity)},darker(i){return new a3(this.l-_U*(i??1),this.a,this.b,this.opacity)},rgb(){var i=(this.l+16)/116,a=isNaN(this.a)?i:i+this.a/500,f=isNaN(this.b)?i:i-this.b/200;return a=oMt*n1t(a),i=cMt*n1t(i),f=uMt*n1t(f),new g0(r1t(3.1338561*a-1.6168667*i-.4906146*f),r1t(-.9787684*a+1.9161415*i+.033454*f),r1t(.0719453*a-.2289914*i+1.4052427*f),this.opacity)}}));function e1t(i){return i>uke?Math.pow(i,1/3):i/hMt+lMt}function n1t(i){return i>EA?i*i*i:hMt*(i-lMt)}function r1t(i){return 255*(i<=.0031308?12.92*i:1.055*Math.pow(i,1/2.4)-.055)}function i1t(i){return(i/=255)<=.04045?i/12.92:Math.pow((i+.055)/1.055,2.4)}function hke(i){if(i instanceof b5)return new b5(i.h,i.c,i.l,i.opacity);if(i instanceof a3||(i=fMt(i)),i.a===0&&i.b===0)return new b5(NaN,0 2?o7e:a7e,C=A=null,F}function F(j){return j==null||isNaN(j=+j)?m:(C||(C=E(i.map(p),a,f)))(p(b(j)))}return F.invert=function(j){return b(v((A||(A=E(a,i.map(p),Kw)))(j)))},F.domain=function(j){return arguments.length?(i=Array.from(j,i7e),P()):i.slice()},F.range=function(j){return arguments.length?(a=Array.from(j),P()):a.slice()},F.rangeRound=function(j){return a=Array.from(j),f=kke,P()},F.clamp=function(j){return arguments.length?(b=j?!0:CA,P()):b!==CA},F.interpolate=function(j){return arguments.length?(f=j,P()):f},F.unknown=function(j){return arguments.length?(m=j,F):m},function(j,R){return p=j,v=R,P()}}function zMt(){return c7e()(CA,CA)}function u7e(i,a,f,p){var v=Uft(i,a,f),m;switch(p=BU(p??",f"),p.type){case"s":{var b=Math.max(Math.abs(i),Math.abs(a));return p.precision==null&&!isNaN(m=e7e(v,b))&&(p.precision=m),BMt(p,b)}case"":case"e":case"g":case"p":case"r":{p.precision==null&&!isNaN(m=n7e(v,Math.max(Math.abs(i),Math.abs(a))))&&(p.precision=m-(p.type==="e"));break}case"f":case"%":{p.precision==null&&!isNaN(m=t7e(v))&&(p.precision=m-(p.type==="%")*2);break}}return FMt(p)}function l7e(i){var a=i.domain;return i.ticks=function(f){var p=a();return s6e(p[0],p[p.length-1],f??10)},i.tickFormat=function(f,p){var v=a();return u7e(v[0],v[v.length-1],f??10,p)},i.nice=function(f){f==null&&(f=10);var p=a(),v=0,m=p.length-1,b=p[v],E=p[m],C,A,P=10;for(E0;){if(A=ILt(b,E,f),A===C)return p[v]=b,p[m]=E,a(p);if(A>0)b=Math.floor(b/A)*A,E=Math.ceil(E/A)*A;else if(A<0)b=Math.ceil(b*A)/A,E=Math.floor(E*A)/A;else break;C=A}return i},i}function jU(){var i=zMt();return i.copy=function(){return $Mt(i,jU())},x1t.apply(i,arguments),l7e(i)}function h7e(i,a){i=i.slice();var f=0,p=i.length-1,v=i[f],m=i[p],b;return m E&&(m=" ... ",a=p-E+m.length),f-p>E&&(b=" ...",f=p+E-b.length),{str:m+i.slice(a,f).replace(/\t/g,"→")+b,pos:p-a+m.length}}function U1t(i,a){return og.repeat(" ",a-i.length)+i}function sTe(i,a){if(a=Object.create(a||null),!i.buffer)return null;a.maxLength||(a.maxLength=79),typeof a.indent!="number"&&(a.indent=1),typeof a.linesBefore!="number"&&(a.linesBefore=3),typeof a.linesAfter!="number"&&(a.linesAfter=2);for(var f=/\r?\n|\r|\0/g,p=[0],v=[],m,b=-1;m=f.exec(i.buffer);)v.push(m.index),p.push(m.index+m[0].length),i.position<=m.index&&b<0&&(b=p.length-2);b<0&&(b=p.length-1);var E="",C,A,P=Math.min(i.line+a.linesAfter,v.length).toString().length,F=a.maxLength-(a.indent+P+3);for(C=1;C<=a.linesBefore&&!(b-C<0);C++)A=G1t(i.buffer,p[b-C],v[b-C],i.position-(p[b]-p[b-C]),F),E=og.repeat(" ",a.indent)+U1t((i.line-C+1).toString(),P)+" | "+A.str+`
-`+E;for(A=G1t(i.buffer,p[b],v[b],i.position,F),E+=og.repeat(" ",a.indent)+U1t((i.line+1).toString(),P)+" | "+A.str+`
-`,E+=og.repeat("-",a.indent+P+3+A.pos)+`^
-`,C=1;C<=a.linesAfter&&!(b+C>=v.length);C++)A=G1t(i.buffer,p[b+C],v[b+C],i.position-(p[b]-p[b+C]),F),E+=og.repeat(" ",a.indent)+U1t((i.line+C+1).toString(),P)+" | "+A.str+`
-`;return E.replace(/\n$/,"")}var aTe=sTe,oTe=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],cTe=["scalar","sequence","mapping"];function uTe(i){var a={};return i!==null&&Object.keys(i).forEach(function(f){i[f].forEach(function(p){a[String(p)]=f})}),a}function lTe(i,a){if(a=a||{},Object.keys(a).forEach(function(f){if(oTe.indexOf(f)===-1)throw new x5('Unknown option "'+f+'" is met in definition of "'+i+'" YAML type.')}),this.options=a,this.tag=i,this.kind=a.kind||null,this.resolve=a.resolve||function(){return!0},this.construct=a.construct||function(f){return f},this.instanceOf=a.instanceOf||null,this.predicate=a.predicate||null,this.represent=a.represent||null,this.representName=a.representName||null,this.defaultStyle=a.defaultStyle||null,this.multi=a.multi||!1,this.styleAliases=uTe(a.styleAliases||null),cTe.indexOf(this.kind)===-1)throw new x5('Unknown kind "'+this.kind+'" is specified for "'+i+'" YAML type.')}var w0=lTe;function sIt(i,a){var f=[];return i[a].forEach(function(p){var v=f.length;f.forEach(function(m,b){m.tag===p.tag&&m.kind===p.kind&&m.multi===p.multi&&(v=b)}),f[v]=p}),f}function hTe(){var i={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},a,f;function p(v){v.multi?(i.multi[v.kind].push(v),i.multi.fallback.push(v)):i[v.kind][v.tag]=i.fallback[v.tag]=v}for(a=0,f=arguments.length;a >10)+55296,(i-65536&1023)+56320)}for(var bIt=new Array(256),vIt=new Array(256),FA=0;FA<256;FA++)bIt[FA]=pIt(FA)?1:0,vIt[FA]=pIt(FA);function m_e(i,a){this.input=i,this.filename=a.filename||null,this.schema=a.schema||l_e,this.onWarning=a.onWarning||null,this.legacy=a.legacy||!1,this.json=a.json||!1,this.listener=a.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=i.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function wIt(i,a){var f={name:i.filename,buffer:i.input.slice(0,-1),position:i.position,line:i.line,column:i.position-i.lineStart};return f.snippet=aTe(f),new x5(a,f)}function Fs(i,a){throw wIt(i,a)}function pW(i,a){i.onWarning&&i.onWarning.call(null,wIt(i,a))}var mIt={YAML:function(a,f,p){var v,m,b;a.version!==null&&Fs(a,"duplication of %YAML directive"),p.length!==1&&Fs(a,"YAML directive accepts exactly one argument"),v=/^([0-9]+)\.([0-9]+)$/.exec(p[0]),v===null&&Fs(a,"ill-formed argument of the YAML directive"),m=parseInt(v[1],10),b=parseInt(v[2],10),m!==1&&Fs(a,"unacceptable YAML version of the document"),a.version=p[0],a.checkLineBreaks=b<2,b!==1&&b!==2&&pW(a,"unsupported YAML version of the document")},TAG:function(a,f,p){var v,m;p.length!==2&&Fs(a,"TAG directive accepts exactly two arguments"),v=p[0],m=p[1],fIt.test(v)||Fs(a,"ill-formed tag handle (first argument) of the TAG directive"),nk.call(a.tagMap,v)&&Fs(a,'there is a previously declared suffix for "'+v+'" tag handle'),dIt.test(m)||Fs(a,"ill-formed tag prefix (second argument) of the TAG directive");try{m=decodeURIComponent(m)}catch{Fs(a,"tag prefix is malformed: "+m)}a.tagMap[v]=m}};function rk(i,a,f,p){var v,m,b,E;if(a =p)&&(u=p)}return u}function WAt(i,s){let u;if(s===void 0)for(const d of i)d!=null&&(u>d||u===void 0&&d>=d)&&(u=d);else{let d=-1;for(let p of i)(p=s(p,++d,i))!=null&&(u>p||u===void 0&&p>=p)&&(u=p)}return u}function YAt(i,s,u){i=+i,s=+s,u=(p=arguments.length)<2?(s=i,i=0,1):p<3?1:+u;for(var d=-1,p=Math.max(0,Math.ceil((s-i)/u))|0,v=new Array(p);++d +i(s)}function eLt(i,s){return s=Math.max(0,i.bandwidth()-s*2)/2,i.round()&&(s=Math.round(s)),u=>+i(u)+s}function tLt(){return!this.__axis}function hBe(i,s){var u=[],d=null,p=null,v=6,b=6,y=3,T=typeof window<"u"&&window.devicePixelRatio>1?0:.5,_=i===OY||i===NY?-1:1,A=i===NY||i===bpe?"x":"y",P=i===OY||i===mpe?QAt:JAt;function R(F){var j=d??(s.ticks?s.ticks.apply(s,u):s.domain()),K=p??(s.tickFormat?s.tickFormat.apply(s,u):XAt),ee=Math.max(v,0)+y,ie=s.range(),oe=+ie[0]+T,pe=+ie[ie.length-1]+T,be=(s.bandwidth?eLt:ZAt)(s.copy(),T),ae=F.selection?F.selection():F,ne=ae.selectAll(".domain").data([null]),se=ae.selectAll(".tick").data(j,s).order(),de=se.exit(),X=se.enter().append("g").attr("class","tick"),ge=se.select("line"),W=se.select("text");ne=ne.merge(ne.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),se=se.merge(X),ge=ge.merge(X.append("line").attr("stroke","currentColor").attr(A+"2",_*v)),W=W.merge(X.append("text").attr("fill","currentColor").attr(A,_*ee).attr("dy",i===OY?"0em":i===mpe?"0.71em":"0.32em")),F!==ae&&(ne=ne.transition(F),se=se.transition(F),ge=ge.transition(F),W=W.transition(F),de=de.transition(F).attr("opacity",lBe).attr("transform",function(xe){return isFinite(xe=be(xe))?P(xe+T):this.getAttribute("transform")}),X.attr("opacity",lBe).attr("transform",function(xe){var U=this.parentNode.__axis;return P((U&&isFinite(U=U(xe))?U:be(xe))+T)})),de.remove(),ne.attr("d",i===NY||i===bpe?b?"M"+_*b+","+oe+"H"+T+"V"+pe+"H"+_*b:"M"+T+","+oe+"V"+pe:b?"M"+oe+","+_*b+"V"+T+"H"+pe+"V"+_*b:"M"+oe+","+T+"H"+pe),se.attr("opacity",1).attr("transform",function(xe){return P(be(xe)+T)}),ge.attr(A+"2",_*v),W.attr(A,_*ee).text(K),ae.filter(tLt).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",i===bpe?"start":i===NY?"end":"middle"),ae.each(function(){this.__axis=be})}return R.scale=function(F){return arguments.length?(s=F,R):s},R.ticks=function(){return u=Array.from(arguments),R},R.tickArguments=function(F){return arguments.length?(u=F==null?[]:Array.from(F),R):u.slice()},R.tickValues=function(F){return arguments.length?(d=F==null?null:Array.from(F),R):d&&d.slice()},R.tickFormat=function(F){return arguments.length?(p=F,R):p},R.tickSize=function(F){return arguments.length?(v=b=+F,R):v},R.tickSizeInner=function(F){return arguments.length?(v=+F,R):v},R.tickSizeOuter=function(F){return arguments.length?(b=+F,R):b},R.tickPadding=function(F){return arguments.length?(y=+F,R):y},R.offset=function(F){return arguments.length?(T=+F,R):T},R}function nLt(i){return hBe(OY,i)}function rLt(i){return hBe(mpe,i)}var iLt={value:()=>{}};function fBe(){for(var i=0,s=arguments.length,u={},d;i =0&&(s=i.slice(0,u))!=="xmlns"&&(i=i.slice(u+1)),gBe.hasOwnProperty(s)?{space:gBe[s],local:i}:i}function oLt(i){return function(){var s=this.ownerDocument,u=this.namespaceURI;return u===vpe&&s.documentElement.namespaceURI===vpe?s.createElement(i):s.createElementNS(u,i)}}function cLt(i){return function(){return this.ownerDocument.createElementNS(i.space,i.local)}}function pBe(i){var s=BY(i);return(s.local?cLt:oLt)(s)}function uLt(){}function wpe(i){return i==null?uLt:function(){return this.querySelector(i)}}function lLt(i){typeof i!="function"&&(i=wpe(i));for(var s=this._groups,u=s.length,d=new Array(u),p=0;p=pe&&(pe=oe+1);!(ae=ee[pe])&&++pe =0&&(u=s.slice(d+1),s=s.slice(0,d)),{type:s,name:u}})}function MMt(i){return function(){var s=this.__on;if(s){for(var u=0,d=-1,p=s.length,v;u >8&15|s>>4&240,s>>4&15|s&240,(s&15)<<4|s&15,1):u===8?$Y(s>>24&255,s>>16&255,s>>8&255,(s&255)/255):u===4?$Y(s>>12&15|s>>8&240,s>>8&15|s>>4&240,s>>4&15|s&240,((s&15)<<4|s&15)/255):null):(s=jMt.exec(i))?new Mg(s[1],s[2],s[3],1):(s=$Mt.exec(i))?new Mg(s[1]*255/100,s[2]*255/100,s[3]*255/100,1):(s=zMt.exec(i))?$Y(s[1],s[2],s[3],s[4]):(s=qMt.exec(i))?$Y(s[1]*255/100,s[2]*255/100,s[3]*255/100,s[4]):(s=HMt.exec(i))?PBe(s[1],s[2]/100,s[3]/100,1):(s=VMt.exec(i))?PBe(s[1],s[2]/100,s[3]/100,s[4]):ABe.hasOwnProperty(i)?DBe(ABe[i]):i==="transparent"?new Mg(NaN,NaN,NaN,0):null}function DBe(i){return new Mg(i>>16&255,i>>8&255,i&255,1)}function $Y(i,s,u,d){return d<=0&&(i=s=u=NaN),new Mg(i,s,u,d)}function IBe(i){return i instanceof fC||(i=dC(i)),i?(i=i.rgb(),new Mg(i.r,i.g,i.b,i.opacity)):new Mg}function kpe(i,s,u,d){return arguments.length===1?IBe(i):new Mg(i,s,u,d??1)}function Mg(i,s,u,d){this.r=+i,this.g=+s,this.b=+u,this.opacity=+d}wF(Mg,kpe,RY(fC,{brighter(i){return i=i==null?jY:Math.pow(jY,i),new Mg(this.r*i,this.g*i,this.b*i,this.opacity)},darker(i){return i=i==null?yF:Math.pow(yF,i),new Mg(this.r*i,this.g*i,this.b*i,this.opacity)},rgb(){return this},clamp(){return new Mg(gC(this.r),gC(this.g),gC(this.b),zY(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:OBe,formatHex:OBe,formatHex8:KMt,formatRgb:NBe,toString:NBe}));function OBe(){return`#${pC(this.r)}${pC(this.g)}${pC(this.b)}`}function KMt(){return`#${pC(this.r)}${pC(this.g)}${pC(this.b)}${pC((isNaN(this.opacity)?1:this.opacity)*255)}`}function NBe(){const i=zY(this.opacity);return`${i===1?"rgb(":"rgba("}${gC(this.r)}, ${gC(this.g)}, ${gC(this.b)}${i===1?")":`, ${i})`}`}function zY(i){return isNaN(i)?1:Math.max(0,Math.min(1,i))}function gC(i){return Math.max(0,Math.min(255,Math.round(i)||0))}function pC(i){return i=gC(i),(i<16?"0":"")+i.toString(16)}function PBe(i,s,u,d){return d<=0?i=s=u=NaN:u<=0||u>=1?i=s=NaN:s<=0&&(i=NaN),new A3(i,s,u,d)}function BBe(i){if(i instanceof A3)return new A3(i.h,i.s,i.l,i.opacity);if(i instanceof fC||(i=dC(i)),!i)return new A3;if(i instanceof A3)return i;i=i.rgb();var s=i.r/255,u=i.g/255,d=i.b/255,p=Math.min(s,u,d),v=Math.max(s,u,d),b=NaN,y=v-p,T=(v+p)/2;return y?(s===v?b=(u-d)/y+(u =0))throw new Error(`invalid digits: ${i}`);if(s>15)return oFe;const u=10**s;return function(d){this._+=d[0];for(let p=1,v=d.length;p (i(v=new Date(+v)),v),p.ceil=v=>(i(v=new Date(v-1)),s(v,1),i(v),v),p.round=v=>{const b=p(v),y=p.ceil(v);return v-b y.args);SX(b),d=id(d,[...b])}else d=u.args;if(!d)return;let p=_X(i,s);const v="config";return d[v]!==void 0&&(p==="flowchart-v2"&&(p="flowchart"),d[p]=d[v],delete d[v]),d},fje=function(i,s=null){try{const u=new RegExp(`[%]{2}(?![{]${mRt.source})(?=[}][%]{2}).*
+`,"ig");i=i.trim().replace(u,"").replace(/'/gm,'"'),Xe.debug(`Detecting diagram directive${s!==null?" type:"+s:""} based on the text:${i}`);let d;const p=[];for(;(d=UF.exec(i))!==null;)if(d.index===UF.lastIndex&&UF.lastIndex++,d&&!s||s&&d[1]&&d[1].match(s)||s&&d[2]&&d[2].match(s)){const v=d[1]?d[1]:d[2],b=d[3]?d[3].trim():d[4]?JSON.parse(d[4].trim()):null;p.push({type:v,args:b})}return p.length===0?{type:i,args:null}:p.length===1?p[0]:p}catch(u){return Xe.error(`ERROR: ${u.message} - Unable to parse directive type: '${s}' based on the text: '${i}'`),{type:void 0,args:null}}},wRt=function(i){return i.replace(UF,"")},yRt=function(i,s){for(const[u,d]of s.entries())if(d.match(i))return u;return-1};function Ov(i,s){if(!i)return s;const u=`curve${i.charAt(0).toUpperCase()+i.slice(1)}`;return bRt[u]??s}function xRt(i,s){const u=i.trim();if(u)return s.securityLevel!=="loose"?p9.sanitizeUrl(u):u}const kRt=(i,...s)=>{const u=i.split("."),d=u.length-1,p=u[d];let v=window;for(let b=0;b {f+=CW(m,a),a=m});let p=f/2,v;return a=void 0,i.forEach(m=>{if(a&&!v){const b=CW(m,a);if(b =1&&(v={x:m.x,y:m.y}),E>0&&E<1&&(v={x:(1-E)*a.x+E*m.x,y:(1-E)*a.y+E*m.y})}}a=m}),v}function gSe(i){return i.length===1?i[0]:dSe(i)}const pSe=(i,a,f)=>{let p;Gt.info(`our points ${JSON.stringify(a)}`),a[0]!==f&&(a=a.reverse());let m=25,b;p=void 0,a.forEach(P=>{if(p&&!b){const F=CW(P,p);if(F 0?j[J]+" "+it:udt(it,/&\f/g,j[J])))&&(C[rt++]=ht);return ldt(i,a,f,v===0?KIt:E,C,A,P)}function BSe(i,a,f){return ldt(i,a,f,WIt,cdt(ASe()),ZN(i,2,-2),0)}function tOt(i,a,f,p){return ldt(i,a,f,YIt,ZN(i,0,p),ZN(i,p+1,-1),p)}function gdt(i,a){for(var f="",p=QIt(i),v=0;v /^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(i),loader:async()=>{const{diagram:i}=await Promise.resolve().then(()=>FMe);return{id:nOt,diagram:i}}},rOt="flowchart",$Se={id:rOt,detector:(i,a)=>{var f,p;return((f=a==null?void 0:a.flowchart)==null?void 0:f.defaultRenderer)==="dagre-wrapper"||((p=a==null?void 0:a.flowchart)==null?void 0:p.defaultRenderer)==="elk"?!1:/^\s*graph/.test(i)},loader:async()=>{const{diagram:i}=await Promise.resolve().then(()=>A$e);return{id:rOt,diagram:i}}},iOt="flowchart-v2",zSe={id:iOt,detector:(i,a)=>{var f,p,v;return((f=a==null?void 0:a.flowchart)==null?void 0:f.defaultRenderer)==="dagre-d3"||((p=a==null?void 0:a.flowchart)==null?void 0:p.defaultRenderer)==="elk"?!1:/^\s*graph/.test(i)&&((v=a==null?void 0:a.flowchart)==null?void 0:v.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(i)},loader:async()=>{const{diagram:i}=await Promise.resolve().then(()=>L$e);return{id:iOt,diagram:i}}},sOt="er",qSe={id:sOt,detector:i=>/^\s*erDiagram/.test(i),loader:async()=>{const{diagram:i}=await Promise.resolve().then(()=>nze);return{id:sOt,diagram:i}}},aOt="gitGraph",HSe={id:aOt,detector:i=>/^\s*gitGraph/.test(i),loader:async()=>{const{diagram:i}=await Promise.resolve().then(()=>Aze);return{id:aOt,diagram:i}}},oOt="gantt",VSe={id:oOt,detector:i=>/^\s*gantt/.test(i),loader:async()=>{const{diagram:i}=await Promise.resolve().then(()=>wqe);return{id:oOt,diagram:i}}},cOt="info",GSe={id:cOt,detector:i=>/^\s*info/.test(i),loader:async()=>{const{diagram:i}=await Promise.resolve().then(()=>yqe);return{id:cOt,diagram:i}}},uOt="pie",USe={id:uOt,detector:i=>/^\s*pie/.test(i),loader:async()=>{const{diagram:i}=await Promise.resolve().then(()=>Tqe);return{id:uOt,diagram:i}}},lOt="quadrantChart",WSe={id:lOt,detector:i=>/^\s*quadrantChart/.test(i),loader:async()=>{const{diagram:i}=await Promise.resolve().then(()=>$qe);return{id:lOt,diagram:i}}},hOt="requirement",KSe={id:hOt,detector:i=>/^\s*requirement(Diagram)?/.test(i),loader:async()=>{const{diagram:i}=await Promise.resolve().then(()=>Xqe);return{id:hOt,diagram:i}}},fOt="sequence",YSe={id:fOt,detector:i=>/^\s*sequenceDiagram/.test(i),loader:async()=>{const{diagram:i}=await Promise.resolve().then(()=>rVe);return{id:fOt,diagram:i}}},dOt="class",XSe={id:dOt,detector:(i,a)=>{var f;return((f=a==null?void 0:a.class)==null?void 0:f.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(i)},loader:async()=>{const{diagram:i}=await Promise.resolve().then(()=>_Ve);return{id:dOt,diagram:i}}},gOt="classDiagram",QSe={id:gOt,detector:(i,a)=>{var f;return/^\s*classDiagram/.test(i)&&((f=a==null?void 0:a.class)==null?void 0:f.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(i)},loader:async()=>{const{diagram:i}=await Promise.resolve().then(()=>DVe);return{id:gOt,diagram:i}}},pOt="state",ZSe={id:pOt,detector:(i,a)=>{var f;return((f=a==null?void 0:a.state)==null?void 0:f.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(i)},loader:async()=>{const{diagram:i}=await Promise.resolve().then(()=>mGe);return{id:pOt,diagram:i}}},bOt="stateDiagram",JSe={id:bOt,detector:(i,a)=>{var f;return!!(/^\s*stateDiagram-v2/.test(i)||/^\s*stateDiagram/.test(i)&&((f=a==null?void 0:a.state)==null?void 0:f.defaultRenderer)==="dagre-wrapper")},loader:async()=>{const{diagram:i}=await Promise.resolve().then(()=>RGe);return{id:bOt,diagram:i}}},vOt="journey",tAe={id:vOt,detector:i=>/^\s*journey/.test(i),loader:async()=>{const{diagram:i}=await Promise.resolve().then(()=>iUe);return{id:vOt,diagram:i}}},wOt=i=>{var v;const{securityLevel:a}=Me();let f=fr("body");if(a==="sandbox"){const b=((v=fr(`#i${i}`).node())==null?void 0:v.contentDocument)??document;f=fr(b.body)}return f.select(`#${i}`)},mOt={draw:(i,a,f)=>{Gt.debug(`renering svg for syntax error
-`);const p=wOt(a);p.attr("viewBox","0 0 2412 512"),cg(p,100,512,!0);const v=p.append("g");v.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),v.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),v.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),v.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),v.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),v.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),v.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),v.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${f}`)}},eAe=mOt,nAe={db:{},renderer:mOt,parser:{parser:{yy:{}},parse:()=>{}}},yOt="flowchart-elk",rAe={id:yOt,detector:(i,a)=>{var f;return!!(/^\s*flowchart-elk/.test(i)||/^\s*flowchart|graph/.test(i)&&((f=a==null?void 0:a.flowchart)==null?void 0:f.defaultRenderer)==="elk")},loader:async()=>{const{diagram:i}=await Promise.resolve().then(()=>yUe);return{id:yOt,diagram:i}}},xOt="timeline",iAe={id:xOt,detector:i=>/^\s*timeline/.test(i),loader:async()=>{const{diagram:i}=await Promise.resolve().then(()=>jUe);return{id:xOt,diagram:i}}},kOt="mindmap",sAe={id:kOt,detector:i=>/^\s*mindmap/.test(i),loader:async()=>{const{diagram:i}=await Promise.resolve().then(()=>pWe);return{id:kOt,diagram:i}}},EOt="sankey",aAe={id:EOt,detector:i=>/^\s*sankey-beta/.test(i),loader:async()=>{const{diagram:i}=await Promise.resolve().then(()=>GWe);return{id:EOt,diagram:i}}};let TOt=!1;const pdt=()=>{TOt||(TOt=!0,kW("error",nAe,i=>i.toLowerCase().trim()==="error"),kW("---",{db:{clear:()=>{}},styles:{},renderer:{},parser:{parser:{yy:{}},parse:()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")}},init:()=>null},i=>i.toLowerCase().trimStart().startsWith("---")),NIt(jSe,QSe,XSe,qSe,VSe,GSe,USe,KSe,YSe,rAe,zSe,$Se,sAe,iAe,HSe,JSe,ZSe,tAe,WSe,aAe))},oAe=i=>i.trimStart().replace(/^\s*%%(?!{)[^\n]+\n?/gm,"");class _Ot{constructor(a){this.text=a,this.type="graph",this.text+=`
-`;const f=Me();try{this.type=EW(a,f)}catch(m){this.type="error",this.detectError=m}const p=rdt(this.type);Gt.debug("Type "+this.type),this.db=p.db,this.renderer=p.renderer,this.parser=p.parser;const v=this.parser.parse.bind(this.parser);this.parser.parse=m=>v(oAe(B_e(m,this.db))),this.parser.parser.yy=this.db,this.init=p.init,this.parse()}parse(){var a,f,p;if(this.detectError)throw this.detectError;(f=(a=this.db).clear)==null||f.call(a),(p=this.init)==null||p.call(this,Me()),this.parser.parse(this.text)}async render(a,f){await this.renderer.draw(this.text,a,f,this)}getParser(){return this.parser}getType(){return this.type}}const bdt=async i=>{const a=EW(i,Me());try{rdt(a)}catch{const p=iCe(a);if(!p)throw new OIt(`Diagram ${a} not found.`);const{id:v,diagram:m}=await p();kW(v,m)}return new _Ot(i)};let vdt=[];const cAe=i=>{vdt.push(i)},uAe=()=>{vdt.forEach(i=>{i()}),vdt=[]};var lAe=Object.prototype;function NW(i){var a=i&&i.constructor,f=typeof a=="function"&&a.prototype||lAe;return i===f}function COt(i,a){return function(f){return i(a(f))}}var hAe=COt(Object.keys,Object);const fAe=hAe;var dAe=Object.prototype,gAe=dAe.hasOwnProperty;function SOt(i){if(!NW(i))return fAe(i);var a=[];for(var f in Object(i))gAe.call(i,f)&&f!="constructor"&&a.push(f);return a}var pAe=s9(Jw,"DataView");const wdt=pAe;var bAe=s9(Jw,"Promise");const mdt=bAe;var vAe=s9(Jw,"Set");const KA=vAe;var wAe=s9(Jw,"WeakMap");const ydt=wAe;var AOt="[object Map]",mAe="[object Object]",LOt="[object Promise]",MOt="[object Set]",DOt="[object WeakMap]",IOt="[object DataView]",yAe=i9(wdt),xAe=i9(XN),kAe=i9(mdt),EAe=i9(KA),TAe=i9(ydt),c9=r9;(wdt&&c9(new wdt(new ArrayBuffer(1)))!=IOt||XN&&c9(new XN)!=AOt||mdt&&c9(mdt.resolve())!=LOt||KA&&c9(new KA)!=MOt||ydt&&c9(new ydt)!=DOt)&&(c9=function(i){var a=r9(i),f=a==mAe?i.constructor:void 0,p=f?i9(f):"";if(p)switch(p){case yAe:return IOt;case xAe:return AOt;case kAe:return LOt;case EAe:return MOt;case TAe:return DOt}return a});const YA=c9;function f3(i){return i!=null&&typeof i=="object"}var _Ae="[object Arguments]";function OOt(i){return f3(i)&&r9(i)==_Ae}var NOt=Object.prototype,CAe=NOt.hasOwnProperty,SAe=NOt.propertyIsEnumerable,AAe=OOt(function(){return arguments}())?OOt:function(i){return f3(i)&&CAe.call(i,"callee")&&!SAe.call(i,"callee")};const XA=AAe;var LAe=Array.isArray;const Nf=LAe;var MAe=9007199254740991;function xdt(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=MAe}function sk(i){return i!=null&&xdt(i.length)&&!zA(i)}function DAe(){return!1}var POt=typeof exports=="object"&&exports&&!exports.nodeType&&exports,FOt=POt&&typeof module=="object"&&module&&!module.nodeType&&module,IAe=FOt&&FOt.exports===POt,BOt=IAe?Jw.Buffer:void 0,OAe=BOt?BOt.isBuffer:void 0,NAe=OAe||DAe;const QA=NAe;var PAe="[object Arguments]",FAe="[object Array]",BAe="[object Boolean]",RAe="[object Date]",jAe="[object Error]",$Ae="[object Function]",zAe="[object Map]",qAe="[object Number]",HAe="[object Object]",VAe="[object RegExp]",GAe="[object Set]",UAe="[object String]",WAe="[object WeakMap]",KAe="[object ArrayBuffer]",YAe="[object DataView]",XAe="[object Float32Array]",QAe="[object Float64Array]",ZAe="[object Int8Array]",JAe="[object Int16Array]",tLe="[object Int32Array]",eLe="[object Uint8Array]",nLe="[object Uint8ClampedArray]",rLe="[object Uint16Array]",iLe="[object Uint32Array]",kl={};kl[XAe]=kl[QAe]=kl[ZAe]=kl[JAe]=kl[tLe]=kl[eLe]=kl[nLe]=kl[rLe]=kl[iLe]=!0,kl[PAe]=kl[FAe]=kl[KAe]=kl[BAe]=kl[YAe]=kl[RAe]=kl[jAe]=kl[$Ae]=kl[zAe]=kl[qAe]=kl[HAe]=kl[VAe]=kl[GAe]=kl[UAe]=kl[WAe]=!1;function sLe(i){return f3(i)&&xdt(i.length)&&!!kl[r9(i)]}function PW(i){return function(a){return i(a)}}var ROt=typeof exports=="object"&&exports&&!exports.nodeType&&exports,JN=ROt&&typeof module=="object"&&module&&!module.nodeType&&module,aLe=JN&&JN.exports===ROt,kdt=aLe&&FIt.process,oLe=function(){try{var i=JN&&JN.require&&JN.require("util").types;return i||kdt&&kdt.binding&&kdt.binding("util")}catch{}}();const ZA=oLe;var jOt=ZA&&ZA.isTypedArray,cLe=jOt?PW(jOt):sLe;const FW=cLe;var uLe="[object Map]",lLe="[object Set]",hLe=Object.prototype,fLe=hLe.hasOwnProperty;function tP(i){if(i==null)return!0;if(sk(i)&&(Nf(i)||typeof i=="string"||typeof i.splice=="function"||QA(i)||FW(i)||XA(i)))return!i.length;var a=YA(i);if(a==uLe||a==lLe)return!i.size;if(NW(i))return!SOt(i).length;for(var f in i)if(fLe.call(i,f))return!1;return!0}const dLe="graphics-document document";function gLe(i,a){i.attr("role",dLe),a!==""&&i.attr("aria-roledescription",a)}function pLe(i,a,f,p){if(i.insert!==void 0){if(f){const v=`chart-desc-${p}`;i.attr("aria-describedby",v),i.insert("desc",":first-child").attr("id",v).text(f)}if(a){const v=`chart-title-${p}`;i.attr("aria-labelledby",v),i.insert("title",":first-child").attr("id",v).text(a)}}}const $Ot=["graph","flowchart","flowchart-v2","flowchart-elk","stateDiagram","stateDiagram-v2"],bLe=5e4,vLe="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",wLe="sandbox",mLe="loose",yLe="http://www.w3.org/2000/svg",xLe="http://www.w3.org/1999/xlink",kLe="http://www.w3.org/1999/xhtml",ELe="100%",TLe="100%",_Le="border:0;margin:0;",CLe="margin:0",SLe="allow-top-navigation-by-user-activation allow-popups",ALe='The "iframe" tag is not supported by your browser.',LLe=["foreignobject"],MLe=["dominant-baseline"];async function DLe(i,a){pdt();try{await bdt(i)}catch(f){if(a!=null&&a.suppressErrors)return!1;throw f}return!0}const ILe=function(i){let a=i;return a=a.replace(/style.*:\S*#.*;/g,function(f){return f.substring(0,f.length-1)}),a=a.replace(/classDef.*:\S*#.*;/g,function(f){return f.substring(0,f.length-1)}),a=a.replace(/#\w+;/g,function(f){const p=f.substring(1,f.length-1);return/^\+?\d+$/.test(p)?"fl°°"+p+"¶ß":"fl°"+p+"¶ß"}),a},eP=function(i){return i.replace(/fl°°/g,"").replace(/fl°/g,"&").replace(/¶ß/g,";")},zOt=(i,a,f=[])=>`
-.${i} ${a} { ${f.join(" !important; ")} !important; }`,OLe=(i,a,f={})=>{var v;let p="";if(i.themeCSS!==void 0&&(p+=`
-${i.themeCSS}`),i.fontFamily!==void 0&&(p+=`
-:root { --mermaid-font-family: ${i.fontFamily}}`),i.altFontFamily!==void 0&&(p+=`
-:root { --mermaid-alt-font-family: ${i.altFontFamily}}`),!tP(f)&&$Ot.includes(a)){const C=i.htmlLabels||((v=i.flowchart)==null?void 0:v.htmlLabels)?["> *","span"]:["rect","polygon","ellipse","circle","path"];for(const A in f){const P=f[A];tP(P.styles)||C.forEach(F=>{p+=zOt(P.id,F,P.styles)}),tP(P.textStyles)||(p+=zOt(P.id,"tspan",P.textStyles))}}return p},NLe=(i,a,f,p)=>{const v=OLe(i,a,f),m=W_e(a,v,i.themeVariables);return gdt(FSe(`${p}{${m}}`),RSe)},PLe=(i="",a,f)=>{let p=i;return!f&&!a&&(p=p.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),p=eP(p),p=p.replace(/ 64)){if(s<0)return!1;d+=6}return d%8===0}function ozt(i){var s,u,d=i.replace(/[\r\n=]/g,""),p=d.length,v=H2e,b=0,y=[];for(s=0;s >16&255),y.push(b>>8&255),y.push(b&255)),b=b<<6|v.indexOf(d.charAt(s));return u=p%4*6,u===0?(y.push(b>>16&255),y.push(b>>8&255),y.push(b&255)):u===18?(y.push(b>>10&255),y.push(b>>2&255)):u===12&&y.push(b>>4&255),new Uint8Array(y)}function czt(i){var s="",u=0,d,p,v=i.length,b=H2e;for(d=0;d0&&(u+=M,p-=M)}var z=[{type:"elem",elem:a,shift:p,marginRight:y,marginLeft:w},{type:"elem",elem:n,shift:-u,marginRight:y}];v=Ke.makeVList({positionType:"individualShift",children:z},t)}else if(a){p=Math.max(p,m.sub1,a.height-.8*m.xHeight);var A=[{type:"elem",elem:a,marginLeft:w,marginRight:y}];v=Ke.makeVList({positionType:"shift",positionData:p,children:A},t)}else{if(!n)throw new Error("supsub must have either sup or sub.");u=Math.max(u,i,n.depth+.25*m.xHeight),v=Ke.makeVList({positionType:"shift",positionData:-u,children:[{type:"elem",elem:n,marginRight:y}]},t)}var T=yt(c,"right")||"mord";return Ke.makeSpan([T],[c,Ke.makeSpan(["msupsub"],[v])],t)},mathmlBuilder:function(e,t){var r,n=!1;e.base&&"horizBrace"===e.base.type&&!!e.sup===e.base.isOver&&(n=!0,r=e.base.isOver),!e.base||"op"!==e.base.type&&"operatorname"!==e.base.type||(e.base.parentIsSupSub=!0);var a,i=[Rt(e.base,t)];if(e.sub&&i.push(Rt(e.sub,t)),e.sup&&i.push(Rt(e.sup,t)),n)a=r?"mover":"munder";else if(e.sub)if(e.sup){var o=e.base;a=o&&"op"===o.type&&o.limits&&t.style===x.DISPLAY||o&&"operatorname"===o.type&&o.alwaysHandleSupSub&&(t.style===x.DISPLAY||o.limits)?"munderover":"msubsup"}else{var s=e.base;a=s&&"op"===s.type&&s.limits&&(t.style===x.DISPLAY||s.alwaysHandleSupSub)||s&&"operatorname"===s.type&&s.alwaysHandleSupSub&&(s.limits||t.style===x.DISPLAY)?"munder":"msub"}else{var l=e.base;a=l&&"op"===l.type&&l.limits&&(t.style===x.DISPLAY||l.alwaysHandleSupSub)||l&&"operatorname"===l.type&&l.alwaysHandleSupSub&&(l.limits||t.style===x.DISPLAY)?"mover":"msup"}return new Tt.MathNode(a,i)}}),st({type:"atom",htmlBuilder:function(e,t){return Ke.mathsym(e.text,e.mode,t,["m"+e.family])},mathmlBuilder:function(e,t){var r=new Tt.MathNode("mo",[Bt(e.text,e.mode)]);if("bin"===e.family){var n=Nt(e,t);"bold-italic"===n&&r.setAttribute("mathvariant",n)}else"punct"===e.family?r.setAttribute("separator","true"):"open"!==e.family&&"close"!==e.family||r.setAttribute("stretchy","false");return r}});var kn={mi:"italic",mn:"normal",mtext:"normal"};st({type:"mathord",htmlBuilder:function(e,t){return Ke.makeOrd(e,t,"mathord")},mathmlBuilder:function(e,t){var r=new Tt.MathNode("mi",[Bt(e.text,e.mode,t)]),n=Nt(e,t)||"italic";return n!==kn[r.type]&&r.setAttribute("mathvariant",n),r}}),st({type:"textord",htmlBuilder:function(e,t){return Ke.makeOrd(e,t,"textord")},mathmlBuilder:function(e,t){var r,n=Bt(e.text,e.mode,t),a=Nt(e,t)||"normal";return r="text"===e.mode?new Tt.MathNode("mtext",[n]):/[0-9]/.test(e.text)?new Tt.MathNode("mn",[n]):"\\prime"===e.text?new Tt.MathNode("mo",[n]):new Tt.MathNode("mi",[n]),a!==kn[r.type]&&r.setAttribute("mathvariant",a),r}});var Sn={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},Mn={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};st({type:"spacing",htmlBuilder:function(e,t){if(Mn.hasOwnProperty(e.text)){var r=Mn[e.text].className||"";if("text"===e.mode){var a=Ke.makeOrd(e,t,"textord");return a.classes.push(r),a}return Ke.makeSpan(["mspace",r],[Ke.mathsym(e.text,e.mode,t)],t)}if(Sn.hasOwnProperty(e.text))return Ke.makeSpan(["mspace",Sn[e.text]],[],t);throw new n('Unknown type of space "'+e.text+'"')},mathmlBuilder:function(e,t){if(!Mn.hasOwnProperty(e.text)){if(Sn.hasOwnProperty(e.text))return new Tt.MathNode("mspace");throw new n('Unknown type of space "'+e.text+'"')}return new Tt.MathNode("mtext",[new Tt.TextNode("\xa0")])}});var zn=function(){var e=new Tt.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};st({type:"tag",mathmlBuilder:function(e,t){var r=new Tt.MathNode("mtable",[new Tt.MathNode("mtr",[zn(),new Tt.MathNode("mtd",[It(e.body,t)]),zn(),new Tt.MathNode("mtd",[It(e.tag,t)])])]);return r.setAttribute("width","100%"),r}});var An={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Tn={"\\textbf":"textbf","\\textmd":"textmd"},Bn={"\\textit":"textit","\\textup":"textup"},Cn=function(e,t){var r=e.font;return r?An[r]?t.withTextFontFamily(An[r]):Tn[r]?t.withTextFontWeight(Tn[r]):t.withTextFontShape(Bn[r]):t};ot({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler:function(e,t){var r=e.parser,n=e.funcName,a=t[0];return{type:"text",mode:r.mode,body:ht(a),font:n}},htmlBuilder:function(e,t){var r=Cn(e,t),n=ft(e.body,r,!0);return Ke.makeSpan(["mord","text"],n,r)},mathmlBuilder:function(e,t){var r=Cn(e,t);return It(e.body,r)}}),ot({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){return{type:"underline",mode:e.parser.mode,body:t[0]}},htmlBuilder:function(e,t){var r=wt(e.body,t),n=Ke.makeLineSpan("underline-line",t),a=t.fontMetrics().defaultRuleThickness,i=Ke.makeVList({positionType:"top",positionData:r.height,children:[{type:"kern",size:a},{type:"elem",elem:n},{type:"kern",size:3*a},{type:"elem",elem:r}]},t);return Ke.makeSpan(["mord","underline"],[i],t)},mathmlBuilder:function(e,t){var r=new Tt.MathNode("mo",[new Tt.TextNode("\u203e")]);r.setAttribute("stretchy","true");var n=new Tt.MathNode("munder",[Rt(e.body,t),r]);return n.setAttribute("accentunder","true"),n}}),ot({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler:function(e,t){return{type:"vcenter",mode:e.parser.mode,body:t[0]}},htmlBuilder:function(e,t){var r=wt(e.body,t),n=t.fontMetrics().axisHeight,a=.5*(r.height-n-(r.depth+n));return Ke.makeVList({positionType:"shift",positionData:a,children:[{type:"elem",elem:r}]},t)},mathmlBuilder:function(e,t){return new Tt.MathNode("mpadded",[Rt(e.body,t)],["vcenter"])}}),ot({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler:function(e,t,r){throw new n("\\verb ended by end of line instead of matching delimiter")},htmlBuilder:function(e,t){for(var r=Nn(e),n=[],a=t.havingStyle(t.style.text()),i=0;i",e}}const $={"\xee":"\u0131\u0302","\xef":"\u0131\u0308","\xed":"\u0131\u0301","\xec":"\u0131\u0300"};class Z{constructor(e,t,r,n,o,s,i,a){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=e,this.height=t||0,this.depth=r||0,this.italic=n||0,this.skew=o||0,this.width=s||0,this.classes=i||[],this.style=a||{},this.maxFontSize=0;const l=function(e){for(let t=0;t
=a)continue;(o>0||e.hskipBeforeAndAfter)&&(i=l.deflt(c.pregap,u),0!==i&&(z=Ve.makeSpan(["arraycolsep"],[]),z.style.width=F(i),M.push(z)));let d=[];for(r=0;r0){const e=Ve.makeLineSpan("hline",t,m),r=Ve.makeLineSpan("hdashline",t,m),n=[{type:"elem",elem:h,shift:0}];for(;c.length>0;){const t=c.pop(),o=t.pos-k;t.isDashed?n.push({type:"elem",elem:r,shift:o}):n.push({type:"elem",elem:e,shift:o})}h=Ve.makeVList({positionType:"individualShift",children:n},t)}if(0===T.length)return Ve.makeSpan(["mord"],[h],t);{let e=Ve.makeVList({positionType:"individualShift",children:T},t);return e=Ve.makeSpan(["tag"],[e],t),Ve.makeFragment([h,e])}},Lr={c:"center ",l:"left ",r:"right "},Dr=function(e,t){const r=[],n=new gt.MathNode("mtd",[],["mtr-glue"]),o=new gt.MathNode("mtd",[],["mml-eqn-num"]);for(let s=0;s
/gi,E9e=i=>i?KDt(i).replace(/\\n/g,"#br#").split("#br#"):[""],UDt=i=>rW.sanitize(i),WDt=(i,a)=>{var f;if(((f=a.flowchart)==null?void 0:f.htmlLabels)!==!1){const p=a.securityLevel;p==="antiscript"||p==="strict"?i=UDt(i):p!=="loose"&&(i=KDt(i),i=i.replace(//g,">"),i=i.replace(/=/g,"="),i=S9e(i))}return i},sg=(i,a)=>i&&(a.dompurifyConfig?i=rW.sanitize(WDt(i,a),a.dompurifyConfig).toString():i=rW.sanitize(WDt(i,a),{FORBID_TAGS:["style"]}).toString(),i),T9e=(i,a)=>typeof i=="string"?sg(i,a):i.flat().map(f=>sg(f,a)),_9e=i=>iW.test(i),C9e=i=>i.split(iW),S9e=i=>i.replace(/#br#/g,"
"),KDt=i=>i.replace(iW,"#br#"),A9e=i=>{let a="";return i&&(a=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,a=a.replaceAll(/\(/g,"\\("),a=a.replaceAll(/\)/g,"\\)")),a},c1=i=>!(i===!1||["false","null","0"].includes(String(i).trim().toLowerCase())),L9e=function(...i){const a=i.filter(f=>!isNaN(f));return Math.max(...a)},M9e=function(...i){const a=i.filter(f=>!isNaN(f));return Math.min(...a)},HN=function(i){let a=i;if(i.split("~").length-1>=2){let f=a;do a=f,f=a.replace(/~([^\s,:;]+)~/,"<$1>");while(f!=a);return HN(f)}else return a},oi={getRows:E9e,sanitizeText:sg,sanitizeTextOrArray:T9e,hasBreaks:_9e,splitBreaks:C9e,lineBreakRegex:iW,removeScript:UDt,getUrl:A9e,evaluate:c1,getMax:L9e,getMin:M9e},sW={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:i=>i>=255?255:i<0?0:i,g:i=>i>=255?255:i<0?0:i,b:i=>i>=255?255:i<0?0:i,h:i=>i%360,s:i=>i>=100?100:i<0?0:i,l:i=>i>=100?100:i<0?0:i,a:i=>i>=1?1:i<0?0:i},toLinear:i=>{const a=i/255;return i>.03928?Math.pow((a+.055)/1.055,2.4):a/12.92},hue2rgb:(i,a,f)=>(f<0&&(f+=1),f>1&&(f-=1),f<1/6?i+(a-i)*6*f:f<1/2?a:f<2/3?i+(a-i)*(2/3-f)*6:i),hsl2rgb:({h:i,s:a,l:f},p)=>{if(!a)return f*2.55;i/=360,a/=100,f/=100;const v=f<.5?f*(1+a):f+a-f*a,m=2*f-v;switch(p){case"r":return sW.hue2rgb(m,v,i+1/3)*255;case"g":return sW.hue2rgb(m,v,i)*255;case"b":return sW.hue2rgb(m,v,i-1/3)*255}},rgb2hsl:({r:i,g:a,b:f},p)=>{i/=255,a/=255,f/=255;const v=Math.max(i,a,f),m=Math.min(i,a,f),b=(v+m)/2;if(p==="l")return b*100;if(v===m)return 0;const E=v-m,C=b>.5?E/(2-v-m):E/(v+m);if(p==="s")return C*100;switch(v){case i:return((a-f)/E+(as?1:i>=s?0:NaN}function PAt(i,s){return i==null||s==null?NaN:si?1:s>=i?0:NaN}function dpe(i){let s,u,d;i.length!==2?(s=DY,u=(y,T)=>DY(i(y),T),d=(y,T)=>i(y)-T):(s=i===DY||i===PAt?i:BAt,u=i,d=i);function p(y,T,_=0,A=y.length){if(_>>1;u(y[P],T)<0?_=P+1:A=P}while(_>>1;u(y[P],T)<=0?_=P+1:A=P}while(__&&d(y[P-1],T)>-d(y[P],T)?P-1:P}return{left:p,center:b,right:v}}function BAt(){return 0}function FAt(i){return i===null?NaN:+i}const RAt=dpe(DY).right;dpe(FAt).center;const jAt=RAt;class cBe extends Map{constructor(s,u=qAt){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:u}}),s!=null)for(const[d,p]of s)this.set(d,p)}get(s){return super.get(uBe(this,s))}has(s){return super.has(uBe(this,s))}set(s,u){return super.set($At(this,s),u)}delete(s){return super.delete(zAt(this,s))}}function uBe({_intern:i,_key:s},u){const d=s(u);return i.has(d)?i.get(d):u}function $At({_intern:i,_key:s},u){const d=s(u);return i.has(d)?i.get(d):(i.set(d,u),u)}function zAt({_intern:i,_key:s},u){const d=s(u);return i.has(d)&&(u=i.get(d),i.delete(d)),u}function qAt(i){return i!==null&&typeof i=="object"?i.valueOf():i}const HAt=Math.sqrt(50),VAt=Math.sqrt(10),UAt=Math.sqrt(2);function IY(i,s,u){const d=(s-i)/Math.max(0,u),p=Math.floor(Math.log10(d)),v=d/Math.pow(10,p),b=v>=HAt?10:v>=VAt?5:v>=UAt?2:1;let y,T,_;return p<0?(_=Math.pow(10,-p)/b,y=Math.round(i*_),T=Math.round(s*_),y/_s&&--T,_=-_):(_=Math.pow(10,p)*b,y=Math.round(i/_),T=Math.round(s/_),y*_s&&--T),T=0&&(d=u.slice(p+1),u=u.slice(0,p)),u&&!s.hasOwnProperty(u))throw new Error("unknown type: "+u);return{type:u,name:d}})}PY.prototype=fBe.prototype={constructor:PY,on:function(i,s){var u=this._,d=sLt(i+"",u),p,v=-1,b=d.length;if(arguments.length<2){for(;++v0)for(var u=new Array(p),d=0,p,v;dPpe&&d.state0&&(d=0);break}return d>0?i.slice(0,d)+i.slice(p+1):i}var cFe;function zIt(i,s){var u=eX(i,s);if(!u)return i+"";var d=u[0],p=u[1],v=p-(cFe=Math.max(-8,Math.min(8,Math.floor(p/3)))*3)+1,b=d.length;return v===b?d:v>b?d+new Array(v-b+1).join("0"):v>0?d.slice(0,v)+"."+d.slice(v):"0."+new Array(1-v).join("0")+eX(i,Math.max(0,s+v-1))[0]}function uFe(i,s){var u=eX(i,s);if(!u)return i+"";var d=u[0],p=u[1];return p<0?"0."+new Array(-p).join("0")+d:d.length>p+1?d.slice(0,p+1)+"."+d.slice(p+1):d+new Array(p-d.length+2).join("0")}const lFe={"%":(i,s)=>(i*100).toFixed(s),b:i=>Math.round(i).toString(2),c:i=>i+"",d:BIt,e:(i,s)=>i.toExponential(s),f:(i,s)=>i.toFixed(s),g:(i,s)=>i.toPrecision(s),o:i=>Math.round(i).toString(8),p:(i,s)=>uFe(i*100,s),r:uFe,s:zIt,X:i=>Math.round(i).toString(16).toUpperCase(),x:i=>Math.round(i).toString(16)};function hFe(i){return i}var fFe=Array.prototype.map,dFe=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function qIt(i){var s=i.grouping===void 0||i.thousands===void 0?hFe:FIt(fFe.call(i.grouping,Number),i.thousands+""),u=i.currency===void 0?"":i.currency[0]+"",d=i.currency===void 0?"":i.currency[1]+"",p=i.decimal===void 0?".":i.decimal+"",v=i.numerals===void 0?hFe:RIt(fFe.call(i.numerals,String)),b=i.percent===void 0?"%":i.percent+"",y=i.minus===void 0?"−":i.minus+"",T=i.nan===void 0?"NaN":i.nan+"";function _(P){P=tX(P);var R=P.fill,F=P.align,j=P.sign,K=P.symbol,ee=P.zero,ie=P.width,oe=P.comma,pe=P.precision,be=P.trim,ae=P.type;ae==="n"?(oe=!0,ae="g"):lFe[ae]||(pe===void 0&&(pe=12),be=!0,ae="g"),(ee||R==="0"&&F==="=")&&(ee=!0,R="0",F="=");var ne=K==="$"?u:K==="#"&&/[boxX]/.test(ae)?"0"+ae.toLowerCase():"",se=K==="$"?d:/[%p]/.test(ae)?b:"",de=lFe[ae],X=/[defgprs%]/.test(ae);pe=pe===void 0?6:/[gprs]/.test(ae)?Math.max(1,Math.min(21,pe)):Math.max(0,Math.min(20,pe));function ge(W){var xe=ne,U=se,Fe,Pe,je;if(ae==="c")U=de(W)+U,W="";else{W=+W;var Ie=W<0||1/W<0;if(W=isNaN(W)?T:de(Math.abs(W),pe),be&&(W=$It(W)),Ie&&+W==0&&j!=="+"&&(Ie=!1),xe=(Ie?j==="("?j:y:j==="-"||j==="("?"":j)+xe,U=(ae==="s"?dFe[8+cFe/3]:"")+U+(Ie&&j==="("?")":""),X){for(Fe=-1,Pe=W.length;++Fe
/gi,lPt=i=>i?kRe(i).replace(/\\n/g,"#br#").split("#br#"):[""],hPt=(()=>{let i=!1;return()=>{i||(fPt(),i=!0)}})();function fPt(){const i="data-temp-href-target";hD.addHook("beforeSanitizeAttributes",s=>{s.tagName==="A"&&s.hasAttribute("target")&&s.setAttribute(i,s.getAttribute("target")||"")}),hD.addHook("afterSanitizeAttributes",s=>{s.tagName==="A"&&s.hasAttribute(i)&&(s.setAttribute("target",s.getAttribute(i)||""),s.removeAttribute(i),s.getAttribute("target")==="_blank"&&s.setAttribute("rel","noopener"))})}const yRe=i=>(hPt(),hD.sanitize(i)),xRe=(i,s)=>{var u;if(((u=s.flowchart)==null?void 0:u.htmlLabels)!==!1){const d=s.securityLevel;d==="antiscript"||d==="strict"?i=yRe(i):d!=="loose"&&(i=kRe(i),i=i.replace(//g,">"),i=i.replace(/=/g,"="),i=bPt(i))}return i},Yf=(i,s)=>i&&(s.dompurifyConfig?i=hD.sanitize(xRe(i,s),s.dompurifyConfig).toString():i=hD.sanitize(xRe(i,s),{FORBID_TAGS:["style"]}).toString(),i),dPt=(i,s)=>typeof i=="string"?Yf(i,s):i.flat().map(u=>Yf(u,s)),gPt=i=>fD.test(i),pPt=i=>i.split(fD),bPt=i=>i.replace(/#br#/g,"
"),kRe=i=>i.replace(fD,"#br#"),mPt=i=>{let s="";return i&&(s=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,s=s.replaceAll(/\(/g,"\\("),s=s.replaceAll(/\)/g,"\\)")),s},f1=i=>!(i===!1||["false","null","0"].includes(String(i).trim().toLowerCase())),vPt=function(...i){const s=i.filter(u=>!isNaN(u));return Math.max(...s)},wPt=function(...i){const s=i.filter(u=>!isNaN(u));return Math.min(...s)},qF=function(i){const s=i.split(/(,)/),u=[];for(let d=0;d0){if(++s>=uRt)return arguments[0]}else s=0;return i.apply(void 0,arguments)}}var dRt=fRt(cRt);const lje=dRt;function RX(i,s){return lje(uje(i,s,OC),i+"")}function QF(i,s,u){if(!am(u))return!1;var d=typeof s;return(d=="number"?w9(u)&&FX(s,u.length):d=="string"&&s in u)?pD(u[s],i):!1}function gRt(i){return RX(function(s,u){var d=-1,p=u.length,v=p>1?u[p-1]:void 0,b=p>2?u[2]:void 0;for(v=i.length>3&&typeof v=="function"?(p--,v):void 0,b&&QF(u[0],u[1],b)&&(v=p<3?void 0:v,p=1),s=Object(s);++d
"},u),li.lineBreakRegex.test(i)))return i;const d=i.split(" "),p=[];let v="";return d.forEach((b,y)=>{const T=H4(`${b} `,u),_=H4(v,u);if(T>s){const{hyphenatedStrings:R,remainingWord:F}=MRt(b,s,"-",u);p.push(v,...R),v=F}else _+T>=s?(p.push(v),v=b):v=[v,b].filter(Boolean).join(" ");y+1===d.length&&p.push(v)}),p.filter(b=>b!=="").join(u.joinWith)},(i,s,u)=>`${i}${s}${u.fontSize}${u.fontWeight}${u.fontFamily}${u.joinWith}`),MRt=bD((i,s,u="-",d)=>{d=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},d);const p=[...i],v=[];let b="";return p.forEach((y,T)=>{const _=`${b}${y}`;if(H4(_,d)>=s){const P=T+1,R=p.length===P,F=`${_}${u}`;v.push(R?_:F),b=""}else b=_}),{hyphenatedStrings:v,remainingWord:b}},(i,s,u="-",d)=>`${i}${s}${u}${d.fontSize}${d.fontWeight}${d.fontFamily}`);function E2e(i,s){return T2e(i,s).height}function H4(i,s){return T2e(i,s).width}const T2e=bD((i,s)=>{const{fontSize:u=12,fontFamily:d="Arial",fontWeight:p=400}=s;if(!i)return{width:0,height:0};const[,v]=NC(u),b=["sans-serif",d],y=i.split(li.lineBreakRegex),T=[],_=Ir("body");if(!_.remove)return{width:0,height:0,lineHeight:0};const A=_.append("svg");for(const R of b){let F=0;const j={width:0,height:0,lineHeight:0};for(const K of y){const ee=ARt();ee.text=K||hje;const ie=LRt(A,ee).style("font-size",v).style("font-weight",p).style("font-family",R),oe=(ie._groups||ie)[0][0].getBBox();if(oe.width===0&&oe.height===0)throw new Error("svg element not in render tree");j.width=Math.round(Math.max(j.width,oe.width)),F=Math.round(oe.height),j.height+=F,j.lineHeight=Math.round(Math.max(j.lineHeight,F))}T.push(j)}A.remove();const P=isNaN(T[1].height)||isNaN(T[1].width)||isNaN(T[1].lineHeight)||T[0].height>T[1].height&&T[0].width>T[1].width&&T[0].lineHeight>T[1].lineHeight?0:1;return T[P]},(i,s)=>`${i}${s.fontSize}${s.fontWeight}${s.fontFamily}`);class DRt{constructor(s=!1,u){this.count=0,this.count=u?u.length:0,this.next=s?()=>this.count++:()=>Date.now()}}let $X;const IRt=function(i){return $X=$X||document.createElement("div"),i=escape(i).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),$X.innerHTML=i,unescape($X.textContent)};function wje(i){return"str"in i}const ORt=(i,s,u,d)=>{var v;if(!d)return;const p=(v=i.node())==null?void 0:v.getBBox();p&&i.append("text").text(d).attr("x",p.x+p.width/2).attr("y",-u).attr("class",s)},NC=i=>{if(typeof i=="number")return[i,i+"px"];const s=parseInt(i??"",10);return Number.isNaN(s)?[void 0,void 0]:i===String(s)?[s,i+"px"]:[s,i]};function JF(i,s){return jX({},i,s)}const Ao={assignWithDepth:id,wrapLabel:vje,calculateTextHeight:E2e,calculateTextWidth:H4,calculateTextDimensions:T2e,cleanAndMerge:JF,detectInit:vRt,detectDirective:fje,isSubstringInArray:yRt,interpolateToCurve:Ov,calcLabelPosition:TRt,calcCardinalityPosition:CRt,calcTerminalLabelPosition:SRt,formatUrl:xRt,getStylesFromArray:om,generateId:bje,random:mje,runFunc:kRt,entityDecode:IRt,insertTitle:ORt,parseFontSize:NC,InitIDGenerator:DRt},NRt=function(i){let s=i;return s=s.replace(/style.*:\S*#.*;/g,function(u){return u.substring(0,u.length-1)}),s=s.replace(/classDef.*:\S*#.*;/g,function(u){return u.substring(0,u.length-1)}),s=s.replace(/#\w+;/g,function(u){const d=u.substring(1,u.length-1);return/^\+?\d+$/.test(d)?"fl°°"+d+"¶ß":"fl°"+d+"¶ß"}),s},ZF=function(i){return i.replace(/fl°°/g,"").replace(/fl°/g,"&").replace(/¶ß/g,";")};var yje="comm",xje="rule",kje="decl",PRt="@import",BRt="@keyframes",FRt="@layer",Eje=Math.abs,C2e=String.fromCharCode;function Tje(i){return i.trim()}function zX(i,s,u){return i.replace(s,u)}function RRt(i,s,u){return i.indexOf(s,u)}function eR(i,s){return i.charCodeAt(s)|0}function tR(i,s,u){return i.slice(s,u)}function _7(i){return i.length}function jRt(i){return i.length}function qX(i,s){return s.push(i),i}var HX=1,xD=1,Cje=0,Nv=0,I0=0,kD="";function S2e(i,s,u,d,p,v,b,y){return{value:i,root:s,parent:u,type:d,props:p,children:v,line:HX,column:xD,length:b,return:"",siblings:y}}function $Rt(){return I0}function zRt(){return I0=Nv>0?eR(kD,--Nv):0,xD--,I0===10&&(xD=1,HX--),I0}function B3(){return I0=Nv
"},f),oi.lineBreakRegex.test(i)))return i;const p=i.split(" "),v=[];let m="";return p.forEach((b,E)=>{const C=h3(`${b} `,f),A=h3(m,f);if(C>a){const{hyphenatedStrings:j,remainingWord:R}=ySe(b,a,"-",f);v.push(m,...j),m=R}else A+C>=a?(v.push(m),m=b):m=[m,b].filter(Boolean).join(" ");E+1===p.length&&v.push(m)}),v.filter(b=>b!=="").join(f.joinWith)},(i,a,f)=>`${i}${a}${f.fontSize}${f.fontWeight}${f.fontFamily}${f.joinWith}`),ySe=HA((i,a,f="-",p)=>{p=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},p);const v=[...i],m=[];let b="";return v.forEach((E,C)=>{const A=`${b}${E}`;if(h3(A,p)>=a){const F=C+1,j=v.length===F,R=`${A}${f}`;m.push(j?A:R),b=""}else b=A}),{hyphenatedStrings:m,remainingWord:b}},(i,a,f="-",p)=>`${i}${a}${f}${p.fontSize}${p.fontWeight}${p.fontFamily}`);function adt(i,a){return a=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:15},a),odt(i,a).height}function h3(i,a){return a=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},a),odt(i,a).width}const odt=HA((i,a)=>{a=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},a);const{fontSize:f,fontFamily:p,fontWeight:v}=a;if(!i)return{width:0,height:0};const[,m]=GA(f),b=["sans-serif",p],E=i.split(oi.lineBreakRegex),C=[],A=fr("body");if(!A.remove)return{width:0,height:0,lineHeight:0};const P=A.append("svg");for(const j of b){let R=0;const H={width:0,height:0,lineHeight:0};for(const Y of E){const rt=wSe();rt.text=Y||$It;const J=mSe(P,rt).style("font-size",m).style("font-weight",v).style("font-family",j),it=(J._groups||J)[0][0].getBBox();if(it.width===0&&it.height===0)throw new Error("svg element not in render tree");H.width=Math.round(Math.max(H.width,it.width)),R=Math.round(it.height),H.height+=R,H.lineHeight=Math.round(Math.max(H.lineHeight,R))}C.push(H)}P.remove();const F=isNaN(C[1].height)||isNaN(C[1].width)||isNaN(C[1].lineHeight)||C[0].height>C[1].height&&C[0].width>C[1].width&&C[0].lineHeight>C[1].lineHeight?0:1;return C[F]},(i,a)=>`${i}${a.fontSize}${a.fontWeight}${a.fontFamily}`),xSe=class{constructor(a,f){this.deterministic=a,this.seed=f,this.count=f?f.length:0}next(){return this.deterministic?this.count++:Date.now()}};let SW;const kSe=function(i){return SW=SW||document.createElement("div"),i=escape(i).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),SW.innerHTML=i,unescape(SW.textContent)},VA=i=>{if(Gt.debug("directiveSanitizer called with",i),typeof i=="object"&&(i.length?i.forEach(a=>VA(a)):Object.keys(i).forEach(a=>{Gt.debug("Checking key",a),a.startsWith("__")&&(Gt.debug("sanitize deleting __ option",a),delete i[a]),a.includes("proto")&&(Gt.debug("sanitize deleting proto option",a),delete i[a]),a.includes("constr")&&(Gt.debug("sanitize deleting constr option",a),delete i[a]),a.includes("themeCSS")&&(Gt.debug("sanitizing themeCss option"),i[a]=AW(i[a])),a.includes("fontFamily")&&(Gt.debug("sanitizing fontFamily option"),i[a]=AW(i[a])),a.includes("altFontFamily")&&(Gt.debug("sanitizing altFontFamily option"),i[a]=AW(i[a])),W9e.includes(a)?typeof i[a]=="object"&&(Gt.debug("sanitize deleting object",a),VA(i[a])):(Gt.debug("sanitize deleting option",a),delete i[a])})),i.themeVariables){const a=Object.keys(i.themeVariables);for(const f of a){const p=i.themeVariables[f];p&&p.match&&!p.match(/^[\d "#%(),.;A-Za-z]+$/)&&(i.themeVariables[f]="")}}Gt.debug("After sanitization",i)},AW=i=>{let a=0,f=0;for(const p of i){if(a
/g,"
"),p},FLe=(i="",a)=>{var v,m;const f=(m=(v=a==null?void 0:a.viewBox)==null?void 0:v.baseVal)!=null&&m.height?a.viewBox.baseVal.height+"px":TLe,p=btoa('
/gi,"
");const P=to.detectInit(b);P&&Gt.debug("Detected early reinit: ",P);try{const{svg:F,bindFunctions:j}=await KOt(A,b,C);C.innerHTML=F,i&&await i(A),j&&j(C)}catch(F){zLe(F,E,Pb.parseError)}}if(E.length>0)throw E[0]},GOt=function(i){l1.initialize(i)},HLe=async function(i,a,f){Gt.warn("mermaid.init is deprecated. Please use run instead."),i&&GOt(i);const p={postRenderCallback:f,querySelector:".mermaid"};typeof a=="string"?p.querySelector=a:a&&(a instanceof HTMLElement?p.nodes=[a]:p.nodes=a),await VOt(p)},VLe=async(i,{lazyLoad:a=!0}={})=>{NIt(...i),a===!1&&await rCe()},UOt=function(){if(Pb.startOnLoad){const{startOnLoad:i}=l1.getConfig();i&&Pb.run().catch(a=>Gt.error("Mermaid failed to initialize",a))}};if(typeof document<"u"){/*!
+ ${s}
+`},Ejt=(i,s)=>{s!==void 0&&(YX[i]=s)},Tjt=kjt;let D2e="",I2e="",O2e="";const N2e=i=>Yf(i,Vh()),Pg=()=>{D2e="",O2e="",I2e=""},Bg=i=>{D2e=N2e(i).replace(/^\s+/g,"")},Cp=()=>D2e,Sp=i=>{O2e=N2e(i).replace(/\n\s+/g,`
+`)},_p=()=>O2e,cm=i=>{I2e=N2e(i)},Ap=()=>I2e,Jje=Object.freeze(Object.defineProperty({__proto__:null,clear:Pg,getAccDescription:_p,getAccTitle:Cp,getDiagramTitle:Ap,setAccDescription:Sp,setAccTitle:Bg,setDiagramTitle:cm},Symbol.toStringTag,{value:"Module"})),Cjt=Xe,Sjt=fpe,qt=Vh,_jt=Dje,Zje=ED,Ajt=i=>Yf(i,qt()),e$e=y9,Ljt=()=>Jje,XX={},QX=(i,s,u)=>{var d;if(XX[i])throw new Error(`Diagram ${i} already registered.`);XX[i]=s,u&&PRe(i,u),Ejt(i,s.styles),(d=s.injectUtils)==null||d.call(s,Cjt,Sjt,qt,Ajt,e$e,Ljt(),()=>{})},P2e=i=>{if(i in XX)return XX[i];throw new Mjt(i)};class Mjt extends Error{constructor(s){super(`Diagram ${s} not found.`)}}const rR=i=>{var p;const{securityLevel:s}=qt();let u=Ir("body");if(s==="sandbox"){const b=((p=Ir(`#i${i}`).node())==null?void 0:p.contentDocument)??document;u=Ir(b.body)}return u.select(`#${i}`)},t$e={draw:(i,s,u)=>{Xe.debug(`rendering svg for syntax error
+`);const d=rR(s),p=d.append("g");d.attr("viewBox","0 0 2412 512"),Ng(d,100,512,!0),p.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),p.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),p.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),p.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),p.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),p.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),p.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),p.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${u}`)}},Djt=t$e,Ijt={db:{},renderer:t$e,parser:{parser:{yy:{}},parse:()=>{}}},n$e="flowchart-elk",Ojt={id:n$e,detector:(i,s)=>{var u;return!!(/^\s*flowchart-elk/.test(i)||/^\s*flowchart|graph/.test(i)&&((u=s==null?void 0:s.flowchart)==null?void 0:u.defaultRenderer)==="elk")},loader:async()=>{const{diagram:i}=await Promise.resolve().then(()=>jan);return{id:n$e,diagram:i}}},r$e="timeline",Njt={id:r$e,detector:i=>/^\s*timeline/.test(i),loader:async()=>{const{diagram:i}=await Promise.resolve().then(()=>ion);return{id:r$e,diagram:i}}},i$e="mindmap",Pjt={id:i$e,detector:i=>/^\s*mindmap/.test(i),loader:async()=>{const{diagram:i}=await Promise.resolve().then(()=>Ion);return{id:i$e,diagram:i}}},s$e="sankey",Bjt={id:s$e,detector:i=>/^\s*sankey-beta/.test(i),loader:async()=>{const{diagram:i}=await Promise.resolve().then(()=>ccn);return{id:s$e,diagram:i}}},a$e="block",Fjt={id:a$e,detector:i=>/^\s*block-beta/.test(i),loader:async()=>{const{diagram:i}=await Promise.resolve().then(()=>Acn);return{id:a$e,diagram:i}}};let o$e=!1;const B2e=()=>{o$e||(o$e=!0,QX("error",Ijt,i=>i.toLowerCase().trim()==="error"),QX("---",{db:{clear:()=>{}},styles:{},renderer:{draw:()=>{}},parser:{parser:{yy:{}},parse:()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")}},init:()=>null},i=>i.toLowerCase().trimStart().startsWith("---")),NRe(rjt,bjt,pjt,ajt,cjt,ujt,ljt,djt,gjt,Ojt,sjt,ijt,Pjt,Njt,ojt,vjt,mjt,wjt,hjt,Bjt,fjt,Fjt))};class c$e{constructor(s,u={}){this.text=s,this.metadata=u,this.type="graph",this.text=NRt(s),this.text+=`
+`;const d=Vh();try{this.type=_X(s,d)}catch(v){this.type="error",this.detectError=v}const p=P2e(this.type);Xe.debug("Type "+this.type),this.db=p.db,this.renderer=p.renderer,this.parser=p.parser,this.parser.parser.yy=this.db,this.init=p.init,this.parse()}parse(){var u,d,p,v,b;if(this.detectError)throw this.detectError;(d=(u=this.db).clear)==null||d.call(u);const s=Vh();(p=this.init)==null||p.call(this,s),this.metadata.title&&((b=(v=this.db).setDiagramTitle)==null||b.call(v,this.metadata.title)),this.parser.parse(this.text)}async render(s,u){await this.renderer.draw(this.text,s,u,this)}getParser(){return this.parser}getType(){return this.type}}const Rjt=async(i,s={})=>{const u=_X(i,Vh());try{P2e(u)}catch{const p=$Pt(u);if(!p)throw new ORe(`Diagram ${u} not found.`);const{id:v,diagram:b}=await p();QX(v,b)}return new c$e(i,s)};let u$e=[];const jjt=()=>{u$e.forEach(i=>{i()}),u$e=[]};var $jt=WRe(Object.keys,Object);const zjt=$jt;var qjt=Object.prototype,Hjt=qjt.hasOwnProperty;function l$e(i){if(!OX(i))return zjt(i);var s=[];for(var u in Object(i))Hjt.call(i,u)&&u!="constructor"&&s.push(u);return s}var Vjt=MC(N3,"DataView");const F2e=Vjt;var Ujt=MC(N3,"Promise");const R2e=Ujt;var Gjt=MC(N3,"Set");const CD=Gjt;var Kjt=MC(N3,"WeakMap");const j2e=Kjt;var h$e="[object Map]",Wjt="[object Object]",f$e="[object Promise]",d$e="[object Set]",g$e="[object WeakMap]",p$e="[object DataView]",Yjt=LC(F2e),Xjt=LC(WF),Qjt=LC(R2e),Jjt=LC(CD),Zjt=LC(j2e),BC=AC;(F2e&&BC(new F2e(new ArrayBuffer(1)))!=p$e||WF&&BC(new WF)!=h$e||R2e&&BC(R2e.resolve())!=f$e||CD&&BC(new CD)!=d$e||j2e&&BC(new j2e)!=g$e)&&(BC=function(i){var s=AC(i),u=s==Wjt?i.constructor:void 0,d=u?LC(u):"";if(d)switch(d){case Yjt:return p$e;case Xjt:return h$e;case Qjt:return f$e;case Jjt:return d$e;case Zjt:return g$e}return s});const SD=BC;var e$t="[object Map]",t$t="[object Set]",n$t=Object.prototype,r$t=n$t.hasOwnProperty;function iR(i){if(i==null)return!0;if(w9(i)&&(D0(i)||typeof i=="string"||typeof i.splice=="function"||vD(i)||PX(i)||mD(i)))return!i.length;var s=SD(i);if(s==e$t||s==t$t)return!i.size;if(OX(i))return!l$e(i).length;for(var u in i)if(r$t.call(i,u))return!1;return!0}const i$t="graphics-document document";function s$t(i,s){i.attr("role",i$t),s!==""&&i.attr("aria-roledescription",s)}function a$t(i,s,u,d){if(i.insert!==void 0){if(u){const p=`chart-desc-${d}`;i.attr("aria-describedby",p),i.insert("desc",":first-child").attr("id",p).text(u)}if(s){const p=`chart-title-${d}`;i.attr("aria-labelledby",p),i.insert("title",":first-child").attr("id",p).text(s)}}}const o$t=i=>i.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart();/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function b$e(i){return typeof i>"u"||i===null}function c$t(i){return typeof i=="object"&&i!==null}function u$t(i){return Array.isArray(i)?i:b$e(i)?[]:[i]}function l$t(i,s){var u,d,p,v;if(s)for(v=Object.keys(s),u=0,d=v.length;u