zudoku 0.45.1 → 0.46.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/main.js +4 -23
- package/dist/app/main.js.map +1 -1
- package/dist/config/config.d.ts +2 -2
- package/dist/config/file-exists.d.ts +1 -0
- package/dist/config/file-exists.js +5 -0
- package/dist/config/file-exists.js.map +1 -0
- package/dist/config/loader.d.ts +19 -4
- package/dist/config/loader.js +94 -14
- package/dist/config/loader.js.map +1 -1
- package/dist/config/validators/validate.d.ts +3536 -743
- package/dist/config/validators/validate.js +396 -11
- package/dist/config/validators/validate.js.map +1 -1
- package/dist/index.d.ts +4 -2
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/lib/authentication/AuthenticationPlugin.d.ts +7 -2
- package/dist/lib/authentication/AuthenticationPlugin.js +13 -1
- package/dist/lib/authentication/AuthenticationPlugin.js.map +1 -1
- package/dist/lib/authentication/authentication.d.ts +2 -4
- package/dist/lib/authentication/providers/auth0.js.map +1 -1
- package/dist/lib/authentication/providers/clerk.js +62 -43
- package/dist/lib/authentication/providers/clerk.js.map +1 -1
- package/dist/lib/authentication/providers/openid.d.ts +7 -12
- package/dist/lib/authentication/providers/openid.js +11 -22
- package/dist/lib/authentication/providers/openid.js.map +1 -1
- package/dist/lib/authentication/providers/supabase.js +3 -5
- package/dist/lib/authentication/providers/supabase.js.map +1 -1
- package/dist/lib/components/Autocomplete.js +1 -1
- package/dist/lib/components/Banner.js +1 -1
- package/dist/lib/components/Banner.js.map +1 -1
- package/dist/lib/components/ErrorPage.js +1 -1
- package/dist/lib/components/Footer.js +3 -3
- package/dist/lib/components/Footer.js.map +1 -1
- package/dist/lib/components/Header.js +16 -8
- package/dist/lib/components/Header.js.map +1 -1
- package/dist/lib/components/Heading.js +6 -1
- package/dist/lib/components/Heading.js.map +1 -1
- package/dist/lib/components/InlineCode.js +1 -1
- package/dist/lib/components/InlineCode.js.map +1 -1
- package/dist/lib/components/Layout.js +2 -2
- package/dist/lib/components/Layout.js.map +1 -1
- package/dist/lib/components/Main.js +2 -2
- package/dist/lib/components/Main.js.map +1 -1
- package/dist/lib/components/Markdown.js +8 -3
- package/dist/lib/components/Markdown.js.map +1 -1
- package/dist/lib/components/MobileTopNavigation.js +3 -2
- package/dist/lib/components/MobileTopNavigation.js.map +1 -1
- package/dist/lib/components/NotFoundPage.js +1 -1
- package/dist/lib/components/Pagination.js +1 -1
- package/dist/lib/components/Pagination.js.map +1 -1
- package/dist/lib/components/Search.js +1 -1
- package/dist/lib/components/Search.js.map +1 -1
- package/dist/lib/components/Slot.d.ts +17 -0
- package/dist/lib/components/Slot.js +24 -0
- package/dist/lib/components/Slot.js.map +1 -0
- package/dist/lib/components/Slot.test.js +168 -0
- package/dist/lib/components/Slot.test.js.map +1 -0
- package/dist/lib/components/TopNavigation.d.ts +1 -4
- package/dist/lib/components/TopNavigation.js +3 -11
- package/dist/lib/components/TopNavigation.js.map +1 -1
- package/dist/lib/components/Zudoku.js +2 -2
- package/dist/lib/components/Zudoku.js.map +1 -1
- package/dist/lib/components/context/SlotProvider.d.ts +26 -0
- package/dist/lib/components/context/SlotProvider.js +83 -0
- package/dist/lib/components/context/SlotProvider.js.map +1 -0
- package/dist/lib/components/context/ZudokuContext.d.ts +1 -1
- package/dist/lib/components/context/ZudokuProvider.js +2 -1
- package/dist/lib/components/context/ZudokuProvider.js.map +1 -1
- package/dist/lib/components/index.d.ts +29 -23
- package/dist/lib/components/index.js +13 -7
- package/dist/lib/components/index.js.map +1 -1
- package/dist/lib/components/navigation/PoweredByZudoku.js +1 -1
- package/dist/lib/components/navigation/Sidebar.js +3 -3
- package/dist/lib/components/navigation/Sidebar.js.map +1 -1
- package/dist/lib/components/navigation/SidebarBadge.js +1 -1
- package/dist/lib/components/navigation/SidebarBadge.js.map +1 -1
- package/dist/lib/components/navigation/SidebarCategory.js +3 -3
- package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
- package/dist/lib/components/navigation/SidebarItem.d.ts +0 -5
- package/dist/lib/components/navigation/SidebarItem.js +19 -23
- package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
- package/dist/lib/components/navigation/SidebarWrapper.js +1 -1
- package/dist/lib/components/navigation/Toc.js +1 -1
- package/dist/lib/components/navigation/Toc.js.map +1 -1
- package/dist/lib/components/navigation/utils.d.ts +8 -0
- package/dist/lib/components/navigation/utils.js +34 -6
- package/dist/lib/components/navigation/utils.js.map +1 -1
- package/dist/lib/core/ZudokuContext.d.ts +12 -8
- package/dist/lib/core/ZudokuContext.js +6 -5
- package/dist/lib/core/ZudokuContext.js.map +1 -1
- package/dist/lib/core/plugins.d.ts +5 -2
- package/dist/lib/core/plugins.js +1 -0
- package/dist/lib/core/plugins.js.map +1 -1
- package/dist/lib/errors/ErrorAlert.js +1 -1
- package/dist/lib/hooks/index.d.ts +19 -0
- package/dist/lib/hooks/index.js +11 -0
- package/dist/lib/hooks/index.js.map +1 -1
- package/dist/lib/plugins/api-catalog/Catalog.js +1 -1
- package/dist/lib/plugins/api-keys/CreateApiKey.d.ts +3 -2
- package/dist/lib/plugins/api-keys/CreateApiKey.js +8 -4
- package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -1
- package/dist/lib/plugins/api-keys/SettingsApiKeys.d.ts +1 -1
- package/dist/lib/plugins/api-keys/SettingsApiKeys.js +54 -23
- package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
- package/dist/lib/plugins/api-keys/index.d.ts +18 -9
- package/dist/lib/plugins/api-keys/index.js +49 -34
- package/dist/lib/plugins/api-keys/index.js.map +1 -1
- package/dist/lib/plugins/custom-pages/index.d.ts +1 -1
- package/dist/lib/plugins/markdown/MdxPage.js +1 -1
- package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
- package/dist/lib/plugins/markdown/index.d.ts +1 -1
- package/dist/lib/plugins/markdown/resolver.d.ts +1 -1
- package/dist/lib/plugins/markdown/resolver.js.map +1 -1
- package/dist/lib/plugins/openapi/CollapsibleCode.js +1 -1
- package/dist/lib/plugins/openapi/ColorizedParam.js +1 -1
- package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationList.js +1 -1
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationListItem.js +2 -3
- package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js +5 -1
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -1
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.d.ts +2 -4
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +1 -4
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
- package/dist/lib/plugins/openapi/SchemaList.js +6 -5
- package/dist/lib/plugins/openapi/SchemaList.js.map +1 -1
- package/dist/lib/plugins/openapi/Sidecar.js +1 -1
- package/dist/lib/plugins/openapi/SidecarExamples.js +8 -0
- package/dist/lib/plugins/openapi/SidecarExamples.js.map +1 -1
- package/dist/lib/plugins/openapi/components/EnumValues.js +1 -1
- package/dist/lib/plugins/openapi/components/EnumValues.js.map +1 -1
- package/dist/lib/plugins/openapi/components/ResponseContent.d.ts +12 -0
- package/dist/lib/plugins/openapi/components/ResponseContent.js +21 -0
- package/dist/lib/plugins/openapi/components/ResponseContent.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/Playground.js +2 -0
- package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +1 -1
- package/dist/lib/plugins/openapi/playground/SubmitButton.js +7 -10
- package/dist/lib/plugins/openapi/playground/SubmitButton.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js +2 -2
- package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/SchemaView.d.ts +2 -1
- package/dist/lib/plugins/openapi/schema/SchemaView.js +3 -3
- package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
- package/dist/lib/plugins/redirect/index.d.ts +1 -1
- package/dist/lib/ui/Badge.d.ts +2 -2
- package/dist/lib/ui/Badge.js +1 -1
- package/dist/lib/ui/Badge.js.map +1 -1
- package/dist/lib/ui/Button.d.ts +2 -2
- package/dist/lib/ui/Button.js +8 -6
- package/dist/lib/ui/Button.js.map +1 -1
- package/dist/lib/ui/Callout.js +1 -1
- package/dist/lib/ui/Callout.js.map +1 -1
- package/dist/lib/ui/Card.js +1 -1
- package/dist/lib/ui/Checkbox.js +1 -1
- package/dist/lib/ui/Checkbox.js.map +1 -1
- package/dist/lib/ui/Command.d.ts +2 -2
- package/dist/lib/ui/Command.js +3 -3
- package/dist/lib/ui/Command.js.map +1 -1
- package/dist/lib/ui/Dialog.js +1 -1
- package/dist/lib/ui/Dialog.js.map +1 -1
- package/dist/lib/ui/DropdownMenu.js +4 -4
- package/dist/lib/ui/DropdownMenu.js.map +1 -1
- package/dist/lib/ui/HoverCard.js +1 -1
- package/dist/lib/ui/HoverCard.js.map +1 -1
- package/dist/lib/ui/Input.js +1 -1
- package/dist/lib/ui/Input.js.map +1 -1
- package/dist/lib/ui/Popover.js +1 -1
- package/dist/lib/ui/Popover.js.map +1 -1
- package/dist/lib/ui/RadioGroup.js +1 -1
- package/dist/lib/ui/RadioGroup.js.map +1 -1
- package/dist/lib/ui/Select.js +2 -2
- package/dist/lib/ui/Select.js.map +1 -1
- package/dist/lib/ui/Slider.js +1 -1
- package/dist/lib/ui/Slider.js.map +1 -1
- package/dist/lib/ui/Switch.js +1 -1
- package/dist/lib/ui/Switch.js.map +1 -1
- package/dist/lib/ui/Tabs.js +2 -2
- package/dist/lib/ui/Tabs.js.map +1 -1
- package/dist/lib/ui/Textarea.js +1 -1
- package/dist/lib/ui/Textarea.js.map +1 -1
- package/dist/lib/ui/Toggle.js +1 -1
- package/dist/lib/ui/Toggle.js.map +1 -1
- package/dist/lib/ui/Tooltip.d.ts +2 -1
- package/dist/lib/ui/Tooltip.js +2 -1
- package/dist/lib/ui/Tooltip.js.map +1 -1
- package/dist/lib/util/useExposedProps.d.ts +8 -1
- package/dist/lib/util/useExposedProps.js.map +1 -1
- package/dist/vite/api/SchemaManager.js +16 -1
- package/dist/vite/api/SchemaManager.js.map +1 -1
- package/dist/vite/build.js +44 -6
- package/dist/vite/build.js.map +1 -1
- package/dist/vite/config.d.ts +2 -9
- package/dist/vite/config.js +6 -95
- package/dist/vite/config.js.map +1 -1
- package/dist/vite/config.test.js +1 -1
- package/dist/vite/config.test.js.map +1 -1
- package/dist/vite/css/plugin.d.ts +1 -2
- package/dist/vite/css/plugin.js +3 -2
- package/dist/vite/css/plugin.js.map +1 -1
- package/dist/vite/dev-server.d.ts +0 -1
- package/dist/vite/dev-server.js +10 -12
- package/dist/vite/dev-server.js.map +1 -1
- package/dist/vite/html.d.ts +2 -2
- package/dist/vite/html.js +5 -2
- package/dist/vite/html.js.map +1 -1
- package/dist/vite/plugin-api-keys.d.ts +1 -2
- package/dist/vite/plugin-api-keys.js +9 -3
- package/dist/vite/plugin-api-keys.js.map +1 -1
- package/dist/vite/plugin-api.d.ts +1 -2
- package/dist/vite/plugin-api.js +5 -4
- package/dist/vite/plugin-api.js.map +1 -1
- package/dist/vite/plugin-auth.d.ts +1 -2
- package/dist/vite/plugin-auth.js +3 -2
- package/dist/vite/plugin-auth.js.map +1 -1
- package/dist/vite/plugin-component.d.ts +1 -2
- package/dist/vite/plugin-component.js +3 -2
- package/dist/vite/plugin-component.js.map +1 -1
- package/dist/vite/plugin-config-reload.d.ts +1 -2
- package/dist/vite/plugin-config-reload.js +21 -22
- package/dist/vite/plugin-config-reload.js.map +1 -1
- package/dist/vite/plugin-config.d.ts +1 -2
- package/dist/vite/plugin-config.js +4 -3
- package/dist/vite/plugin-config.js.map +1 -1
- package/dist/vite/plugin-configure-tailwind.d.ts +2 -0
- package/dist/vite/plugin-configure-tailwind.js +38 -0
- package/dist/vite/plugin-configure-tailwind.js.map +1 -0
- package/dist/vite/plugin-custom-pages.d.ts +1 -2
- package/dist/vite/plugin-custom-pages.js +3 -2
- package/dist/vite/plugin-custom-pages.js.map +1 -1
- package/dist/vite/plugin-docs.d.ts +1 -2
- package/dist/vite/plugin-docs.js +4 -3
- package/dist/vite/plugin-docs.js.map +1 -1
- package/dist/vite/plugin-frontmatter.d.ts +1 -2
- package/dist/vite/plugin-frontmatter.js +3 -2
- package/dist/vite/plugin-frontmatter.js.map +1 -1
- package/dist/vite/plugin-mdx.d.ts +1 -2
- package/dist/vite/plugin-mdx.js +3 -2
- package/dist/vite/plugin-mdx.js.map +1 -1
- package/dist/vite/plugin-redirect.d.ts +1 -2
- package/dist/vite/plugin-redirect.js +3 -2
- package/dist/vite/plugin-redirect.js.map +1 -1
- package/dist/vite/plugin-search.d.ts +1 -2
- package/dist/vite/plugin-search.js +3 -2
- package/dist/vite/plugin-search.js.map +1 -1
- package/dist/vite/plugin-shiki-register.d.ts +1 -2
- package/dist/vite/plugin-shiki-register.js +2 -1
- package/dist/vite/plugin-shiki-register.js.map +1 -1
- package/dist/vite/plugin-sidebar.d.ts +1 -2
- package/dist/vite/plugin-sidebar.js +3 -2
- package/dist/vite/plugin-sidebar.js.map +1 -1
- package/dist/vite/plugin-theme-css.d.ts +1 -2
- package/dist/vite/plugin-theme-css.js +20 -60
- package/dist/vite/plugin-theme-css.js.map +1 -1
- package/dist/vite/plugin.d.ts +1 -2
- package/dist/vite/plugin.js +22 -21
- package/dist/vite/plugin.js.map +1 -1
- package/dist/vite/sitemap.d.ts +1 -1
- package/dist/zuplo/with-zuplo.d.ts +2 -2
- package/dist/zuplo/with-zuplo.js.map +1 -1
- package/lib/Button-BE9IVkWV.js +51 -0
- package/lib/Button-BE9IVkWV.js.map +1 -0
- package/lib/{Callout-XadUe37J.js → Callout-BkgOUkoZ.js} +9 -8
- package/lib/Callout-BkgOUkoZ.js.map +1 -0
- package/lib/{Card-BlCYNw5W.js → Card-DPhGbYUM.js} +3 -3
- package/lib/{Card-BlCYNw5W.js.map → Card-DPhGbYUM.js.map} +1 -1
- package/lib/{CategoryHeading-DZi-Szor.js → CategoryHeading-Cu2RwgjC.js} +2 -2
- package/lib/{CategoryHeading-DZi-Szor.js.map → CategoryHeading-Cu2RwgjC.js.map} +1 -1
- package/lib/{Dialog-CNf2oWXG.js → Dialog-Du6WMcIA.js} +8 -7
- package/lib/Dialog-Du6WMcIA.js.map +1 -0
- package/lib/{Drawer-BPBxzel2.js → Drawer-BzkOKwgC.js} +2 -2
- package/lib/{Drawer-BPBxzel2.js.map → Drawer-BzkOKwgC.js.map} +1 -1
- package/lib/Markdown-BRAyzyUJ.js +15348 -0
- package/lib/Markdown-BRAyzyUJ.js.map +1 -0
- package/lib/{MdxPage-tTTaDsLc.js → MdxPage-B3v1BSKr.js} +11 -11
- package/lib/MdxPage-B3v1BSKr.js.map +1 -0
- package/lib/{OasProvider-DalHQixM.js → OasProvider-5jrFuhVk.js} +3 -3
- package/lib/{OasProvider-DalHQixM.js.map → OasProvider-5jrFuhVk.js.map} +1 -1
- package/lib/{OperationList-BB09ENaq.js → OperationList-BmoMLQPO.js} +1039 -1005
- package/lib/OperationList-BmoMLQPO.js.map +1 -0
- package/lib/Pagination-Cr0fWZS3.js +36 -0
- package/lib/Pagination-Cr0fWZS3.js.map +1 -0
- package/lib/RouteGuard-PrSVLbSr.js +55 -0
- package/lib/RouteGuard-PrSVLbSr.js.map +1 -0
- package/lib/{SchemaList-BH9bgMRw.js → SchemaList-B4riYLoP.js} +61 -47
- package/lib/SchemaList-B4riYLoP.js.map +1 -0
- package/lib/{SchemaView-BsB7EFRl.js → SchemaView-CPZ6RgsF.js} +100 -95
- package/lib/SchemaView-CPZ6RgsF.js.map +1 -0
- package/lib/{AuthenticationPlugin-BTJ37DKg.js → SignUp-CWaiH0tY.js} +23 -50
- package/lib/SignUp-CWaiH0tY.js.map +1 -0
- package/lib/Slot-Bo6K4tnb.js +160 -0
- package/lib/Slot-Bo6K4tnb.js.map +1 -0
- package/lib/{SyntaxHighlight-UxOF1xNb.js → SyntaxHighlight-DedRjJNr.js} +233 -212
- package/lib/{SyntaxHighlight-UxOF1xNb.js.map → SyntaxHighlight-DedRjJNr.js.map} +1 -1
- package/lib/{Toc-Ax54Pw8S.js → Toc-lL3fzNkl.js} +5 -5
- package/lib/Toc-lL3fzNkl.js.map +1 -0
- package/lib/{circular-CZaZtOBs.js → circular-oB4auIIg.js} +2 -2
- package/lib/{circular-CZaZtOBs.js.map → circular-oB4auIIg.js.map} +1 -1
- package/lib/clsx-OuTLNxxd.js +17 -0
- package/lib/clsx-OuTLNxxd.js.map +1 -0
- package/lib/{cn-CwJPJKOE.js → cn-wvCW-ho6.js} +1015 -562
- package/lib/cn-wvCW-ho6.js.map +1 -0
- package/lib/{createServer-DmqFeMgf.js → createServer-DCB82j2t.js} +81 -81
- package/lib/{createServer-DmqFeMgf.js.map → createServer-DCB82j2t.js.map} +1 -1
- package/lib/{hook-BwOB_iZo.js → hook-DawSLaZr.js} +323 -300
- package/lib/hook-DawSLaZr.js.map +1 -0
- package/lib/{index-sS7O9W-R.js → index-BXYvD5-7.js} +868 -758
- package/lib/index-BXYvD5-7.js.map +1 -0
- package/lib/{index-Z13x6tPX.js → index-DI5SPFK9.js} +2 -2
- package/lib/{index-Z13x6tPX.js.map → index-DI5SPFK9.js.map} +1 -1
- package/lib/index-QzXzw_ra.js +24 -0
- package/lib/index-QzXzw_ra.js.map +1 -0
- package/lib/{RouteGuard-lkdEJoDV.js → index.esm-BFcSKCe-.js} +232 -281
- package/lib/index.esm-BFcSKCe-.js.map +1 -0
- package/lib/{index.esm-D2ZUREQN.js → index.esm-DSfX_eMP.js} +3 -3
- package/lib/{index.esm-D2ZUREQN.js.map → index.esm-DSfX_eMP.js.map} +1 -1
- package/lib/joinPath-B7kNnUX4.js +8 -0
- package/lib/joinPath-B7kNnUX4.js.map +1 -0
- package/lib/{mutation-CL2MCRQL.js → mutation-oxMvODNQ.js} +2 -2
- package/lib/{mutation-CL2MCRQL.js.map → mutation-oxMvODNQ.js.map} +1 -1
- package/lib/ui/Accordion.js +1 -1
- package/lib/ui/ActionButton.js +2 -2
- package/lib/ui/Alert.js +2 -2
- package/lib/ui/AlertDialog.js +1 -1
- package/lib/ui/Badge.js +3 -3
- package/lib/ui/Badge.js.map +1 -1
- package/lib/ui/Breadcrumb.js +1 -1
- package/lib/ui/Button.js +20 -18
- package/lib/ui/Button.js.map +1 -1
- package/lib/ui/Callout.js +6 -5
- package/lib/ui/Callout.js.map +1 -1
- package/lib/ui/Card.js +8 -8
- package/lib/ui/Card.js.map +1 -1
- package/lib/ui/Carousel.js +1 -1
- package/lib/ui/Checkbox.js +7 -7
- package/lib/ui/Checkbox.js.map +1 -1
- package/lib/ui/CodeBlock.js +1 -1
- package/lib/ui/Command.js +43 -43
- package/lib/ui/Command.js.map +1 -1
- package/lib/ui/Dialog.js +2 -2
- package/lib/ui/Dialog.js.map +1 -1
- package/lib/ui/Drawer.js +2 -2
- package/lib/ui/DropdownMenu.js +34 -34
- package/lib/ui/DropdownMenu.js.map +1 -1
- package/lib/ui/Form.js +2 -2
- package/lib/ui/HoverCard.js +5 -5
- package/lib/ui/HoverCard.js.map +1 -1
- package/lib/ui/Input.js +2 -2
- package/lib/ui/Input.js.map +1 -1
- package/lib/ui/Label.js +2 -2
- package/lib/ui/Pagination.js +1 -1
- package/lib/ui/Popover.js +2 -2
- package/lib/ui/Popover.js.map +1 -1
- package/lib/ui/Progress.js +1 -1
- package/lib/ui/RadioGroup.js +10 -10
- package/lib/ui/RadioGroup.js.map +1 -1
- package/lib/ui/ScrollArea.js +1 -1
- package/lib/ui/Select.js +31 -31
- package/lib/ui/Select.js.map +1 -1
- package/lib/ui/Skeleton.js +1 -1
- package/lib/ui/Slider.js +5 -5
- package/lib/ui/Slider.js.map +1 -1
- package/lib/ui/Switch.js +5 -5
- package/lib/ui/Switch.js.map +1 -1
- package/lib/ui/SyntaxHighlight.js +2 -2
- package/lib/ui/Tabs.js +16 -16
- package/lib/ui/Tabs.js.map +1 -1
- package/lib/ui/Textarea.js +5 -5
- package/lib/ui/Textarea.js.map +1 -1
- package/lib/ui/Toggle.js +7 -7
- package/lib/ui/Toggle.js.map +1 -1
- package/lib/ui/ToggleGroup.js +1 -1
- package/lib/ui/Tooltip.js +15 -8
- package/lib/ui/Tooltip.js.map +1 -1
- package/lib/ui/util.js +1 -1
- package/lib/useExposedProps-DG8J6ewJ.js.map +1 -1
- package/lib/useMutation-C_j3dA_L.js +97 -0
- package/lib/useMutation-C_j3dA_L.js.map +1 -0
- package/lib/zudoku.auth-auth0.js +1 -1
- package/lib/zudoku.auth-auth0.js.map +1 -1
- package/lib/zudoku.auth-clerk.js +99 -82
- package/lib/zudoku.auth-clerk.js.map +1 -1
- package/lib/zudoku.auth-openid.js +246 -216
- package/lib/zudoku.auth-openid.js.map +1 -1
- package/lib/zudoku.components.js +4957 -33
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.hooks.js +21 -12
- package/lib/zudoku.hooks.js.map +1 -1
- package/lib/zudoku.plugin-api-catalog.js +8 -8
- package/lib/zudoku.plugin-api-catalog.js.map +1 -1
- package/lib/zudoku.plugin-api-keys.js +5022 -214
- package/lib/zudoku.plugin-api-keys.js.map +1 -1
- package/lib/zudoku.plugin-custom-pages.js +2 -2
- package/lib/zudoku.plugin-custom-pages.js.map +1 -1
- package/lib/zudoku.plugin-markdown.js +1 -1
- package/lib/zudoku.plugin-markdown.js.map +1 -1
- package/lib/zudoku.plugin-openapi.js +3 -3
- package/lib/zudoku.plugin-redirect.js.map +1 -1
- package/lib/zudoku.plugin-search-pagefind.js +5 -5
- package/lib/zudoku.plugins.js +7 -6
- package/lib/zudoku.plugins.js.map +1 -1
- package/package.json +15 -15
- package/src/app/defaultTheme.css +54 -0
- package/src/app/font.geist.css +73 -0
- package/src/app/main.css +114 -157
- package/src/app/main.tsx +4 -28
- package/src/lib/authentication/AuthenticationPlugin.tsx +18 -4
- package/src/lib/authentication/authentication.ts +2 -5
- package/src/lib/authentication/providers/auth0.tsx +8 -2
- package/src/lib/authentication/providers/clerk.tsx +72 -48
- package/src/lib/authentication/providers/openid.tsx +19 -26
- package/src/lib/authentication/providers/supabase.tsx +7 -7
- package/src/lib/components/Autocomplete.tsx +1 -1
- package/src/lib/components/Banner.tsx +1 -1
- package/src/lib/components/ErrorPage.tsx +1 -1
- package/src/lib/components/Footer.tsx +4 -4
- package/src/lib/components/Header.tsx +29 -29
- package/src/lib/components/Heading.tsx +9 -5
- package/src/lib/components/InlineCode.tsx +1 -1
- package/src/lib/components/Layout.tsx +3 -3
- package/src/lib/components/Main.tsx +4 -4
- package/src/lib/components/Markdown.tsx +14 -4
- package/src/lib/components/MobileTopNavigation.tsx +3 -2
- package/src/lib/components/NotFoundPage.tsx +1 -1
- package/src/lib/components/Pagination.tsx +3 -9
- package/src/lib/components/Search.tsx +1 -1
- package/src/lib/components/Slot.test.tsx +465 -0
- package/src/lib/components/Slot.tsx +64 -0
- package/src/lib/components/TopNavigation.tsx +5 -17
- package/src/lib/components/Zudoku.tsx +9 -9
- package/src/lib/components/context/SlotProvider.tsx +149 -0
- package/src/lib/components/context/ZudokuProvider.tsx +2 -1
- package/src/lib/components/index.ts +14 -10
- package/src/lib/components/navigation/PoweredByZudoku.tsx +1 -1
- package/src/lib/components/navigation/Sidebar.tsx +3 -3
- package/src/lib/components/navigation/SidebarBadge.tsx +1 -1
- package/src/lib/components/navigation/SidebarCategory.tsx +3 -3
- package/src/lib/components/navigation/SidebarItem.tsx +57 -30
- package/src/lib/components/navigation/SidebarWrapper.tsx +2 -2
- package/src/lib/components/navigation/Toc.tsx +2 -2
- package/src/lib/components/navigation/utils.ts +42 -6
- package/src/lib/core/ZudokuContext.ts +24 -12
- package/src/lib/core/plugins.ts +10 -2
- package/src/lib/errors/ErrorAlert.tsx +1 -1
- package/src/lib/hooks/index.ts +11 -0
- package/src/lib/plugins/api-catalog/Catalog.tsx +1 -1
- package/src/lib/plugins/api-keys/CreateApiKey.tsx +54 -42
- package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +292 -112
- package/src/lib/plugins/api-keys/index.tsx +101 -55
- package/src/lib/plugins/custom-pages/index.tsx +1 -1
- package/src/lib/plugins/markdown/MdxPage.tsx +2 -2
- package/src/lib/plugins/markdown/index.tsx +2 -2
- package/src/lib/plugins/markdown/resolver.ts +4 -2
- package/src/lib/plugins/openapi/CollapsibleCode.tsx +1 -1
- package/src/lib/plugins/openapi/ColorizedParam.tsx +2 -2
- package/src/lib/plugins/openapi/OperationList.tsx +2 -2
- package/src/lib/plugins/openapi/OperationListItem.tsx +6 -34
- package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +7 -1
- package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +5 -16
- package/src/lib/plugins/openapi/SchemaList.tsx +20 -8
- package/src/lib/plugins/openapi/Sidecar.tsx +1 -1
- package/src/lib/plugins/openapi/SidecarExamples.tsx +6 -0
- package/src/lib/plugins/openapi/components/EnumValues.tsx +1 -1
- package/src/lib/plugins/openapi/components/ResponseContent.tsx +104 -0
- package/src/lib/plugins/openapi/playground/Playground.tsx +7 -1
- package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +1 -1
- package/src/lib/plugins/openapi/playground/SubmitButton.tsx +24 -29
- package/src/lib/plugins/openapi/schema/SchemaExampleAndDefault.tsx +2 -2
- package/src/lib/plugins/openapi/schema/SchemaView.tsx +7 -3
- package/src/lib/plugins/redirect/index.tsx +1 -1
- package/src/lib/ui/Badge.tsx +2 -2
- package/src/lib/ui/Button.tsx +9 -6
- package/src/lib/ui/Callout.tsx +1 -0
- package/src/lib/ui/Card.tsx +1 -1
- package/src/lib/ui/Checkbox.tsx +1 -1
- package/src/lib/ui/Command.tsx +5 -5
- package/src/lib/ui/Dialog.tsx +1 -1
- package/src/lib/ui/DropdownMenu.tsx +4 -4
- package/src/lib/ui/HoverCard.tsx +1 -1
- package/src/lib/ui/Input.tsx +1 -1
- package/src/lib/ui/Popover.tsx +1 -1
- package/src/lib/ui/RadioGroup.tsx +1 -1
- package/src/lib/ui/Select.tsx +3 -3
- package/src/lib/ui/Slider.tsx +1 -1
- package/src/lib/ui/Switch.tsx +1 -1
- package/src/lib/ui/Tabs.tsx +2 -2
- package/src/lib/ui/Textarea.tsx +1 -1
- package/src/lib/ui/Toggle.tsx +1 -1
- package/src/lib/ui/Tooltip.tsx +16 -1
- package/src/lib/util/useExposedProps.tsx +12 -1
- package/dist/app/tailwind.d.ts +0 -4
- package/dist/app/tailwind.js +0 -97
- package/dist/app/tailwind.js.map +0 -1
- package/dist/config/common.d.ts +0 -10
- package/dist/config/common.js +0 -2
- package/dist/config/common.js.map +0 -1
- package/dist/config/validators/common.d.ts +0 -8001
- package/dist/config/validators/common.js +0 -414
- package/dist/config/validators/common.js.map +0 -1
- package/dist/lib/components/SlotletProvider.d.ts +0 -17
- package/dist/lib/components/SlotletProvider.js +0 -18
- package/dist/lib/components/SlotletProvider.js.map +0 -1
- package/dist/vite/plugin-docs.test.js +0 -22
- package/dist/vite/plugin-docs.test.js.map +0 -1
- package/lib/AuthenticationPlugin-BTJ37DKg.js.map +0 -1
- package/lib/Button-Bdk_Ij3U.js +0 -49
- package/lib/Button-Bdk_Ij3U.js.map +0 -1
- package/lib/Callout-XadUe37J.js.map +0 -1
- package/lib/Dialog-CNf2oWXG.js.map +0 -1
- package/lib/Markdown-D96AphCL.js +0 -7691
- package/lib/Markdown-D96AphCL.js.map +0 -1
- package/lib/MdxPage-tTTaDsLc.js.map +0 -1
- package/lib/OperationList-BB09ENaq.js.map +0 -1
- package/lib/Pagination-CtmnJOJi.js +0 -48
- package/lib/Pagination-CtmnJOJi.js.map +0 -1
- package/lib/RouteGuard-lkdEJoDV.js.map +0 -1
- package/lib/SchemaList-BH9bgMRw.js.map +0 -1
- package/lib/SchemaView-BsB7EFRl.js.map +0 -1
- package/lib/Select-HTio1oSE.js +0 -211
- package/lib/Select-HTio1oSE.js.map +0 -1
- package/lib/SlotletProvider-CTgIBRWg.js +0 -257
- package/lib/SlotletProvider-CTgIBRWg.js.map +0 -1
- package/lib/Toc-Ax54Pw8S.js.map +0 -1
- package/lib/cn-CwJPJKOE.js.map +0 -1
- package/lib/hook-BwOB_iZo.js.map +0 -1
- package/lib/index-BnT4-Efz.js +0 -4975
- package/lib/index-BnT4-Efz.js.map +0 -1
- package/lib/index-sS7O9W-R.js.map +0 -1
- package/src/app/tailwind.ts +0 -103
- package/src/lib/components/SlotletProvider.tsx +0 -55
- /package/dist/{vite/plugin-docs.test.d.ts → lib/components/Slot.test.d.ts} +0 -0
|
@@ -1,13 +1,23 @@
|
|
|
1
|
-
import { j as
|
|
1
|
+
import { j as Lt } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
2
|
import { Fragment as Ps, memo as Ts } from "react";
|
|
3
|
-
import { e as Ms } from "./hook-
|
|
4
|
-
import { c as Os } from "./cn-
|
|
3
|
+
import { e as Ms } from "./hook-DawSLaZr.js";
|
|
4
|
+
import { c as Os } from "./cn-wvCW-ho6.js";
|
|
5
5
|
import { g as Gs, i as Ds } from "./invariant-DAFpPywt.js";
|
|
6
6
|
import { CodeBlock as Fs } from "./ui/CodeBlock.js";
|
|
7
7
|
function _u() {
|
|
8
8
|
}
|
|
9
9
|
function Su() {
|
|
10
10
|
}
|
|
11
|
+
function ku(t) {
|
|
12
|
+
const e = [], n = String(t || "");
|
|
13
|
+
let r = n.indexOf(","), s = 0, o = !1;
|
|
14
|
+
for (; !o; ) {
|
|
15
|
+
r === -1 && (r = n.length, o = !0);
|
|
16
|
+
const i = n.slice(s, r).trim();
|
|
17
|
+
(i || !o) && e.push(i), s = r + 1, r = n.indexOf(",", s);
|
|
18
|
+
}
|
|
19
|
+
return e;
|
|
20
|
+
}
|
|
11
21
|
function pr(t, e) {
|
|
12
22
|
const n = e || {};
|
|
13
23
|
return (t[t.length - 1] === "" ? [...t, ""] : t).join(
|
|
@@ -1188,6 +1198,10 @@ function Zs(t) {
|
|
|
1188
1198
|
return t.charAt(1).toUpperCase();
|
|
1189
1199
|
}
|
|
1190
1200
|
const kr = dr([mr, Hs, wr, Cr, _r], "html"), Fe = dr([mr, qs, wr, Cr, _r], "svg");
|
|
1201
|
+
function xu(t) {
|
|
1202
|
+
const e = String(t || "").trim();
|
|
1203
|
+
return e ? e.split(/[ \t\n\r\f]+/g) : [];
|
|
1204
|
+
}
|
|
1191
1205
|
function xr(t) {
|
|
1192
1206
|
return t.join(" ").trim();
|
|
1193
1207
|
}
|
|
@@ -1348,7 +1362,7 @@ function Er(t) {
|
|
|
1348
1362
|
};
|
|
1349
1363
|
}
|
|
1350
1364
|
}
|
|
1351
|
-
function
|
|
1365
|
+
function vu(t) {
|
|
1352
1366
|
const e = vr(t), n = so(t);
|
|
1353
1367
|
if (e && n)
|
|
1354
1368
|
return { start: e, end: n };
|
|
@@ -1523,7 +1537,7 @@ function fo(t, e) {
|
|
|
1523
1537
|
return r.type, /** @type {Child | undefined} */
|
|
1524
1538
|
t.evaluater.evaluateExpression(r.expression);
|
|
1525
1539
|
}
|
|
1526
|
-
|
|
1540
|
+
Le(t, e.position);
|
|
1527
1541
|
}
|
|
1528
1542
|
function po(t, e) {
|
|
1529
1543
|
if (e.data && e.data.estree && t.evaluater)
|
|
@@ -1531,7 +1545,7 @@ function po(t, e) {
|
|
|
1531
1545
|
/** @type {Child | undefined} */
|
|
1532
1546
|
t.evaluater.evaluateProgram(e.data.estree)
|
|
1533
1547
|
);
|
|
1534
|
-
|
|
1548
|
+
Le(t, e.position);
|
|
1535
1549
|
}
|
|
1536
1550
|
function go(t, e, n) {
|
|
1537
1551
|
const r = t.schema;
|
|
@@ -1616,7 +1630,7 @@ function _o(t, e) {
|
|
|
1616
1630
|
t.evaluater.evaluateExpression(a.argument)
|
|
1617
1631
|
);
|
|
1618
1632
|
} else
|
|
1619
|
-
|
|
1633
|
+
Le(t, e.position);
|
|
1620
1634
|
else {
|
|
1621
1635
|
const s = r.name;
|
|
1622
1636
|
let o;
|
|
@@ -1625,7 +1639,7 @@ function _o(t, e) {
|
|
|
1625
1639
|
const a = r.value.data.estree.body[0];
|
|
1626
1640
|
a.type, o = t.evaluater.evaluateExpression(a.expression);
|
|
1627
1641
|
} else
|
|
1628
|
-
|
|
1642
|
+
Le(t, e.position);
|
|
1629
1643
|
else
|
|
1630
1644
|
o = r.value === null ? !0 : r.value;
|
|
1631
1645
|
n[s] = /** @type {Props[keyof Props]} */
|
|
@@ -1712,9 +1726,9 @@ function Nr(t, e, n) {
|
|
|
1712
1726
|
}
|
|
1713
1727
|
if (t.evaluater)
|
|
1714
1728
|
return t.evaluater.evaluateExpression(r);
|
|
1715
|
-
|
|
1729
|
+
Le(t);
|
|
1716
1730
|
}
|
|
1717
|
-
function
|
|
1731
|
+
function Le(t, e) {
|
|
1718
1732
|
const n = new B(
|
|
1719
1733
|
"Cannot handle MDX estrees without `createEvaluater`",
|
|
1720
1734
|
{
|
|
@@ -1740,7 +1754,7 @@ function vo(t) {
|
|
|
1740
1754
|
function Eo(t) {
|
|
1741
1755
|
return "-" + t.toLowerCase();
|
|
1742
1756
|
}
|
|
1743
|
-
const
|
|
1757
|
+
const $r = (
|
|
1744
1758
|
// Note: overloads in JSDoc can’t yet use different `@template`s.
|
|
1745
1759
|
/**
|
|
1746
1760
|
* @type {(
|
|
@@ -1771,7 +1785,7 @@ function Ao(t) {
|
|
|
1771
1785
|
const e = [];
|
|
1772
1786
|
let n = -1;
|
|
1773
1787
|
for (; ++n < t.length; )
|
|
1774
|
-
e[n] =
|
|
1788
|
+
e[n] = $r(t[n]);
|
|
1775
1789
|
return ht(r);
|
|
1776
1790
|
function r(...s) {
|
|
1777
1791
|
let o = -1;
|
|
@@ -1807,7 +1821,7 @@ function Ro(t) {
|
|
|
1807
1821
|
function ht(t) {
|
|
1808
1822
|
return e;
|
|
1809
1823
|
function e(n, r, s) {
|
|
1810
|
-
return !!(
|
|
1824
|
+
return !!($o(n) && t.call(
|
|
1811
1825
|
this,
|
|
1812
1826
|
n,
|
|
1813
1827
|
typeof r == "number" ? r : void 0,
|
|
@@ -1818,14 +1832,14 @@ function ht(t) {
|
|
|
1818
1832
|
function No() {
|
|
1819
1833
|
return !0;
|
|
1820
1834
|
}
|
|
1821
|
-
function
|
|
1835
|
+
function $o(t) {
|
|
1822
1836
|
return t !== null && typeof t == "object" && "type" in t;
|
|
1823
1837
|
}
|
|
1824
|
-
const
|
|
1838
|
+
const Lr = [], Lo = !0, xn = !1, Po = "skip";
|
|
1825
1839
|
function To(t, e, n, r) {
|
|
1826
1840
|
let s;
|
|
1827
1841
|
typeof e == "function" && typeof n != "function" ? (r = n, n = e) : s = e;
|
|
1828
|
-
const o =
|
|
1842
|
+
const o = $r(s), i = r ? -1 : 1;
|
|
1829
1843
|
a(t, void 0, [])();
|
|
1830
1844
|
function a(l, c, u) {
|
|
1831
1845
|
const h = (
|
|
@@ -1846,7 +1860,7 @@ function To(t, e, n, r) {
|
|
|
1846
1860
|
}
|
|
1847
1861
|
return d;
|
|
1848
1862
|
function d() {
|
|
1849
|
-
let p =
|
|
1863
|
+
let p = Lr, f, m, g;
|
|
1850
1864
|
if ((!e || o(l, c, u[u.length - 1] || void 0)) && (p = Mo(n(l, u)), p[0] === xn))
|
|
1851
1865
|
return p;
|
|
1852
1866
|
if ("children" in l && l.children) {
|
|
@@ -1867,7 +1881,7 @@ function To(t, e, n, r) {
|
|
|
1867
1881
|
}
|
|
1868
1882
|
}
|
|
1869
1883
|
function Mo(t) {
|
|
1870
|
-
return Array.isArray(t) ? t : typeof t == "number" ? [
|
|
1884
|
+
return Array.isArray(t) ? t : typeof t == "number" ? [Lo, t] : t == null ? Lr : [t];
|
|
1871
1885
|
}
|
|
1872
1886
|
function Pr(t, e, n, r) {
|
|
1873
1887
|
let s, o, i;
|
|
@@ -1877,43 +1891,65 @@ function Pr(t, e, n, r) {
|
|
|
1877
1891
|
return i(l, h, u);
|
|
1878
1892
|
}
|
|
1879
1893
|
}
|
|
1880
|
-
|
|
1881
|
-
const n = String(t);
|
|
1882
|
-
if (typeof e != "string")
|
|
1883
|
-
throw new TypeError("Expected character");
|
|
1884
|
-
let r = 0, s = n.indexOf(e);
|
|
1885
|
-
for (; s !== -1; )
|
|
1886
|
-
r++, s = n.indexOf(e, s + e.length);
|
|
1887
|
-
return r;
|
|
1888
|
-
}
|
|
1889
|
-
const En = {}.hasOwnProperty;
|
|
1894
|
+
const vn = {}.hasOwnProperty;
|
|
1890
1895
|
function Oo(t, e) {
|
|
1891
1896
|
const n = e || {};
|
|
1892
1897
|
function r(s, ...o) {
|
|
1893
1898
|
let i = r.invalid;
|
|
1894
1899
|
const a = r.handlers;
|
|
1895
|
-
if (s &&
|
|
1900
|
+
if (s && vn.call(s, t)) {
|
|
1896
1901
|
const l = String(s[t]);
|
|
1897
|
-
i =
|
|
1902
|
+
i = vn.call(a, l) ? a[l] : r.unknown;
|
|
1898
1903
|
}
|
|
1899
1904
|
if (i)
|
|
1900
1905
|
return i.call(this, s, ...o);
|
|
1901
1906
|
}
|
|
1902
1907
|
return r.handlers = n.handlers || {}, r.invalid = n.invalid, r.unknown = n.unknown, r;
|
|
1903
1908
|
}
|
|
1904
|
-
|
|
1909
|
+
const Go = [
|
|
1910
|
+
"area",
|
|
1911
|
+
"base",
|
|
1912
|
+
"basefont",
|
|
1913
|
+
"bgsound",
|
|
1914
|
+
"br",
|
|
1915
|
+
"col",
|
|
1916
|
+
"command",
|
|
1917
|
+
"embed",
|
|
1918
|
+
"frame",
|
|
1919
|
+
"hr",
|
|
1920
|
+
"image",
|
|
1921
|
+
"img",
|
|
1922
|
+
"input",
|
|
1923
|
+
"keygen",
|
|
1924
|
+
"link",
|
|
1925
|
+
"meta",
|
|
1926
|
+
"param",
|
|
1927
|
+
"source",
|
|
1928
|
+
"track",
|
|
1929
|
+
"wbr"
|
|
1930
|
+
];
|
|
1931
|
+
function En(t, e) {
|
|
1932
|
+
const n = String(t);
|
|
1933
|
+
if (typeof e != "string")
|
|
1934
|
+
throw new TypeError("Expected character");
|
|
1935
|
+
let r = 0, s = n.indexOf(e);
|
|
1936
|
+
for (; s !== -1; )
|
|
1937
|
+
r++, s = n.indexOf(e, s + e.length);
|
|
1938
|
+
return r;
|
|
1939
|
+
}
|
|
1940
|
+
function Do(t) {
|
|
1905
1941
|
return tn(t);
|
|
1906
1942
|
}
|
|
1907
1943
|
function tn(t) {
|
|
1908
|
-
return Array.isArray(t) ?
|
|
1944
|
+
return Array.isArray(t) ? Fo(t) : t instanceof RegExp ? t : typeof t == "object" ? Bo(t) : t;
|
|
1909
1945
|
}
|
|
1910
|
-
function
|
|
1946
|
+
function Fo(t) {
|
|
1911
1947
|
let e = [];
|
|
1912
1948
|
for (let n = 0, r = t.length; n < r; n++)
|
|
1913
1949
|
e[n] = tn(t[n]);
|
|
1914
1950
|
return e;
|
|
1915
1951
|
}
|
|
1916
|
-
function
|
|
1952
|
+
function Bo(t) {
|
|
1917
1953
|
let e = {};
|
|
1918
1954
|
for (let n in t)
|
|
1919
1955
|
e[n] = tn(t[n]);
|
|
@@ -1996,10 +2032,10 @@ var Fr = class {
|
|
|
1996
2032
|
this._colorMap = t, this._defaults = e, this._root = n;
|
|
1997
2033
|
}
|
|
1998
2034
|
static createFromRawTheme(t, e) {
|
|
1999
|
-
return this.createFromParsedTheme(
|
|
2035
|
+
return this.createFromParsedTheme(zo(t), e);
|
|
2000
2036
|
}
|
|
2001
2037
|
static createFromParsedTheme(t, e) {
|
|
2002
|
-
return
|
|
2038
|
+
return Ho(t, e);
|
|
2003
2039
|
}
|
|
2004
2040
|
_cachedMatchRoot = new Fr(
|
|
2005
2041
|
(t) => this._root.match(t)
|
|
@@ -2014,7 +2050,7 @@ var Fr = class {
|
|
|
2014
2050
|
if (t === null)
|
|
2015
2051
|
return this._defaults;
|
|
2016
2052
|
const e = t.scopeName, r = this._cachedMatchRoot.get(e).find(
|
|
2017
|
-
(s) =>
|
|
2053
|
+
(s) => jo(t.parent, s.parentScopes)
|
|
2018
2054
|
);
|
|
2019
2055
|
return r ? new Br(
|
|
2020
2056
|
r.fontStyle,
|
|
@@ -2061,7 +2097,7 @@ var Fr = class {
|
|
|
2061
2097
|
return r === e ? n.reverse() : void 0;
|
|
2062
2098
|
}
|
|
2063
2099
|
};
|
|
2064
|
-
function
|
|
2100
|
+
function jo(t, e) {
|
|
2065
2101
|
if (e.length === 0)
|
|
2066
2102
|
return !0;
|
|
2067
2103
|
for (let n = 0; n < e.length; n++) {
|
|
@@ -2071,7 +2107,7 @@ function Bo(t, e) {
|
|
|
2071
2107
|
return !1;
|
|
2072
2108
|
r = e[++n], s = !0;
|
|
2073
2109
|
}
|
|
2074
|
-
for (; t && !
|
|
2110
|
+
for (; t && !Uo(t.scopeName, r); ) {
|
|
2075
2111
|
if (s)
|
|
2076
2112
|
return !1;
|
|
2077
2113
|
t = t.parent;
|
|
@@ -2082,7 +2118,7 @@ function Bo(t, e) {
|
|
|
2082
2118
|
}
|
|
2083
2119
|
return !0;
|
|
2084
2120
|
}
|
|
2085
|
-
function
|
|
2121
|
+
function Uo(t, e) {
|
|
2086
2122
|
return e === t || t.startsWith(e) && t[e.length] === ".";
|
|
2087
2123
|
}
|
|
2088
2124
|
var Br = class {
|
|
@@ -2090,7 +2126,7 @@ var Br = class {
|
|
|
2090
2126
|
this.fontStyle = t, this.foregroundId = e, this.backgroundId = n;
|
|
2091
2127
|
}
|
|
2092
2128
|
};
|
|
2093
|
-
function
|
|
2129
|
+
function zo(t) {
|
|
2094
2130
|
if (!t)
|
|
2095
2131
|
return [];
|
|
2096
2132
|
if (!t.settings || !Array.isArray(t.settings))
|
|
@@ -2131,7 +2167,7 @@ function Uo(t) {
|
|
|
2131
2167
|
typeof i.settings.background == "string" && An(i.settings.background) && (u = i.settings.background);
|
|
2132
2168
|
for (let h = 0, d = a.length; h < d; h++) {
|
|
2133
2169
|
let f = a[h].trim().split(" "), m = f[f.length - 1], g = null;
|
|
2134
|
-
f.length > 1 && (g = f.slice(0, f.length - 1), g.reverse()), n[r++] = new
|
|
2170
|
+
f.length > 1 && (g = f.slice(0, f.length - 1), g.reverse()), n[r++] = new Wo(
|
|
2135
2171
|
m,
|
|
2136
2172
|
g,
|
|
2137
2173
|
s,
|
|
@@ -2143,12 +2179,12 @@ function Uo(t) {
|
|
|
2143
2179
|
}
|
|
2144
2180
|
return n;
|
|
2145
2181
|
}
|
|
2146
|
-
var
|
|
2182
|
+
var Wo = class {
|
|
2147
2183
|
constructor(t, e, n, r, s, o) {
|
|
2148
2184
|
this.scope = t, this.parentScopes = e, this.index = n, this.fontStyle = r, this.foreground = s, this.background = o;
|
|
2149
2185
|
}
|
|
2150
2186
|
}, F = /* @__PURE__ */ ((t) => (t[t.NotSet = -1] = "NotSet", t[t.None = 0] = "None", t[t.Italic = 1] = "Italic", t[t.Bold = 2] = "Bold", t[t.Underline = 4] = "Underline", t[t.Strikethrough = 8] = "Strikethrough", t))(F || {});
|
|
2151
|
-
function
|
|
2187
|
+
function Ho(t, e) {
|
|
2152
2188
|
t.sort((l, c) => {
|
|
2153
2189
|
let u = Or(l.scope, c.scope);
|
|
2154
2190
|
return u !== 0 || (u = Gr(l.parentScopes, c.parentScopes), u !== 0) ? u : l.index - c.index;
|
|
@@ -2158,14 +2194,14 @@ function Wo(t, e) {
|
|
|
2158
2194
|
let l = t.shift();
|
|
2159
2195
|
l.fontStyle !== -1 && (n = l.fontStyle), l.foreground !== null && (r = l.foreground), l.background !== null && (s = l.background);
|
|
2160
2196
|
}
|
|
2161
|
-
let o = new
|
|
2197
|
+
let o = new qo(e), i = new Br(n, o.getId(r), o.getId(s)), a = new Xo(new Ot(0, null, -1, 0, 0), []);
|
|
2162
2198
|
for (let l = 0, c = t.length; l < c; l++) {
|
|
2163
2199
|
let u = t[l];
|
|
2164
2200
|
a.insert(0, u.scope, u.parentScopes, u.fontStyle, o.getId(u.foreground), o.getId(u.background));
|
|
2165
2201
|
}
|
|
2166
2202
|
return new Ze(o, i, a);
|
|
2167
2203
|
}
|
|
2168
|
-
var
|
|
2204
|
+
var qo = class {
|
|
2169
2205
|
_isFrozen;
|
|
2170
2206
|
_lastColorId;
|
|
2171
2207
|
_id2color;
|
|
@@ -2192,14 +2228,14 @@ var Ho = class {
|
|
|
2192
2228
|
getColorMap() {
|
|
2193
2229
|
return this._id2color.slice(0);
|
|
2194
2230
|
}
|
|
2195
|
-
},
|
|
2231
|
+
}, Vo = Object.freeze([]), Ot = class jr {
|
|
2196
2232
|
scopeDepth;
|
|
2197
2233
|
parentScopes;
|
|
2198
2234
|
fontStyle;
|
|
2199
2235
|
foreground;
|
|
2200
2236
|
background;
|
|
2201
2237
|
constructor(e, n, r, s, o) {
|
|
2202
|
-
this.scopeDepth = e, this.parentScopes = n ||
|
|
2238
|
+
this.scopeDepth = e, this.parentScopes = n || Vo, this.fontStyle = r, this.foreground = s, this.background = o;
|
|
2203
2239
|
}
|
|
2204
2240
|
clone() {
|
|
2205
2241
|
return new jr(this.scopeDepth, this.parentScopes, this.fontStyle, this.foreground, this.background);
|
|
@@ -2213,7 +2249,7 @@ var Ho = class {
|
|
|
2213
2249
|
acceptOverwrite(e, n, r, s) {
|
|
2214
2250
|
this.scopeDepth > e ? console.log("how did this happen?") : this.scopeDepth = e, n !== -1 && (this.fontStyle = n), r !== 0 && (this.foreground = r), s !== 0 && (this.background = s);
|
|
2215
2251
|
}
|
|
2216
|
-
},
|
|
2252
|
+
}, Xo = class Gt {
|
|
2217
2253
|
constructor(e, n = [], r = {}) {
|
|
2218
2254
|
this._mainRule = e, this._children = r, this._rulesWithParentScopes = n;
|
|
2219
2255
|
}
|
|
@@ -2305,7 +2341,7 @@ var Ho = class {
|
|
|
2305
2341
|
}
|
|
2306
2342
|
};
|
|
2307
2343
|
function Ye(t, e) {
|
|
2308
|
-
const n = [], r =
|
|
2344
|
+
const n = [], r = Ko(t);
|
|
2309
2345
|
let s = r.next();
|
|
2310
2346
|
for (; s !== null; ) {
|
|
2311
2347
|
let l = 0;
|
|
@@ -2370,7 +2406,7 @@ function Ye(t, e) {
|
|
|
2370
2406
|
function In(t) {
|
|
2371
2407
|
return !!t && !!t.match(/[\w\.:]+/);
|
|
2372
2408
|
}
|
|
2373
|
-
function
|
|
2409
|
+
function Ko(t) {
|
|
2374
2410
|
let e = /([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g, n = e.exec(t);
|
|
2375
2411
|
return {
|
|
2376
2412
|
next: () => {
|
|
@@ -2391,14 +2427,14 @@ var Pe = class {
|
|
|
2391
2427
|
toKey() {
|
|
2392
2428
|
return this.scopeName;
|
|
2393
2429
|
}
|
|
2394
|
-
},
|
|
2430
|
+
}, Jo = class {
|
|
2395
2431
|
constructor(t, e) {
|
|
2396
2432
|
this.scopeName = t, this.ruleName = e;
|
|
2397
2433
|
}
|
|
2398
2434
|
toKey() {
|
|
2399
2435
|
return `${this.scopeName}#${this.ruleName}`;
|
|
2400
2436
|
}
|
|
2401
|
-
},
|
|
2437
|
+
}, Zo = class {
|
|
2402
2438
|
_references = [];
|
|
2403
2439
|
_seenReferenceKeys = /* @__PURE__ */ new Set();
|
|
2404
2440
|
get references() {
|
|
@@ -2409,7 +2445,7 @@ var Pe = class {
|
|
|
2409
2445
|
const e = t.toKey();
|
|
2410
2446
|
this._seenReferenceKeys.has(e) || (this._seenReferenceKeys.add(e), this._references.push(t));
|
|
2411
2447
|
}
|
|
2412
|
-
},
|
|
2448
|
+
}, Yo = class {
|
|
2413
2449
|
constructor(t, e) {
|
|
2414
2450
|
this.repo = t, this.initialScopeName = e, this.seenFullScopeRequests.add(this.initialScopeName), this.Q = [new Pe(this.initialScopeName)];
|
|
2415
2451
|
}
|
|
@@ -2419,9 +2455,9 @@ var Pe = class {
|
|
|
2419
2455
|
processQueue() {
|
|
2420
2456
|
const t = this.Q;
|
|
2421
2457
|
this.Q = [];
|
|
2422
|
-
const e = new
|
|
2458
|
+
const e = new Zo();
|
|
2423
2459
|
for (const n of t)
|
|
2424
|
-
|
|
2460
|
+
Qo(n, this.initialScopeName, this.repo, e);
|
|
2425
2461
|
for (const n of e.references)
|
|
2426
2462
|
if (n instanceof Pe) {
|
|
2427
2463
|
if (this.seenFullScopeRequests.has(n.scopeName))
|
|
@@ -2434,7 +2470,7 @@ var Pe = class {
|
|
|
2434
2470
|
}
|
|
2435
2471
|
}
|
|
2436
2472
|
};
|
|
2437
|
-
function
|
|
2473
|
+
function Qo(t, e, n, r) {
|
|
2438
2474
|
const s = n.lookup(t.scopeName);
|
|
2439
2475
|
if (!s) {
|
|
2440
2476
|
if (t.scopeName === e)
|
|
@@ -2497,26 +2533,26 @@ function Qe(t, e, n) {
|
|
|
2497
2533
|
const l = { baseGrammar: e.baseGrammar, selfGrammar: a, repository: s };
|
|
2498
2534
|
i.kind === 4 ? Dt(i.ruleName, l, n) : Ke(l, n);
|
|
2499
2535
|
} else
|
|
2500
|
-
i.kind === 4 ? n.add(new
|
|
2536
|
+
i.kind === 4 ? n.add(new Jo(i.scopeName, i.ruleName)) : n.add(new Pe(i.scopeName));
|
|
2501
2537
|
break;
|
|
2502
2538
|
}
|
|
2503
2539
|
}
|
|
2504
2540
|
}
|
|
2505
|
-
var
|
|
2541
|
+
var ei = class {
|
|
2506
2542
|
kind = 0;
|
|
2507
|
-
}, ei = class {
|
|
2508
|
-
kind = 1;
|
|
2509
2543
|
}, ti = class {
|
|
2544
|
+
kind = 1;
|
|
2545
|
+
}, ni = class {
|
|
2510
2546
|
constructor(t) {
|
|
2511
2547
|
this.ruleName = t;
|
|
2512
2548
|
}
|
|
2513
2549
|
kind = 2;
|
|
2514
|
-
},
|
|
2550
|
+
}, ri = class {
|
|
2515
2551
|
constructor(t) {
|
|
2516
2552
|
this.scopeName = t;
|
|
2517
2553
|
}
|
|
2518
2554
|
kind = 3;
|
|
2519
|
-
},
|
|
2555
|
+
}, si = class {
|
|
2520
2556
|
constructor(t, e) {
|
|
2521
2557
|
this.scopeName = t, this.ruleName = e;
|
|
2522
2558
|
}
|
|
@@ -2524,20 +2560,20 @@ var Qo = class {
|
|
|
2524
2560
|
};
|
|
2525
2561
|
function zr(t) {
|
|
2526
2562
|
if (t === "$base")
|
|
2527
|
-
return new Qo();
|
|
2528
|
-
if (t === "$self")
|
|
2529
2563
|
return new ei();
|
|
2564
|
+
if (t === "$self")
|
|
2565
|
+
return new ti();
|
|
2530
2566
|
const e = t.indexOf("#");
|
|
2531
2567
|
if (e === -1)
|
|
2532
|
-
return new
|
|
2568
|
+
return new ri(t);
|
|
2533
2569
|
if (e === 0)
|
|
2534
|
-
return new
|
|
2570
|
+
return new ni(t.substring(1));
|
|
2535
2571
|
{
|
|
2536
2572
|
const n = t.substring(0, e), r = t.substring(e + 1);
|
|
2537
|
-
return new
|
|
2573
|
+
return new si(n, r);
|
|
2538
2574
|
}
|
|
2539
2575
|
}
|
|
2540
|
-
var
|
|
2576
|
+
var oi = /\\(\d+)/, Rn = /\\(\d+)/g, ii = -1, Wr = -2;
|
|
2541
2577
|
var Be = class {
|
|
2542
2578
|
$location;
|
|
2543
2579
|
id;
|
|
@@ -2558,7 +2594,7 @@ var Be = class {
|
|
|
2558
2594
|
getContentName(t, e) {
|
|
2559
2595
|
return !this._contentNameIsCapturing || this._contentName === null ? this._contentName : Ue.replaceCaptures(this._contentName, t, e);
|
|
2560
2596
|
}
|
|
2561
|
-
},
|
|
2597
|
+
}, ai = class extends Be {
|
|
2562
2598
|
retokenizeCapturedWithRuleId;
|
|
2563
2599
|
constructor(t, e, n, r, s) {
|
|
2564
2600
|
super(t, e, n, r), this.retokenizeCapturedWithRuleId = s;
|
|
@@ -2574,7 +2610,7 @@ var Be = class {
|
|
|
2574
2610
|
compileAG(t, e, n, r) {
|
|
2575
2611
|
throw new Error("Not supported!");
|
|
2576
2612
|
}
|
|
2577
|
-
},
|
|
2613
|
+
}, li = class extends Be {
|
|
2578
2614
|
_match;
|
|
2579
2615
|
captures;
|
|
2580
2616
|
_cachedCompiledPatterns;
|
|
@@ -2718,12 +2754,12 @@ var Be = class {
|
|
|
2718
2754
|
}
|
|
2719
2755
|
}, Hr = class G {
|
|
2720
2756
|
static createCaptureRule(e, n, r, s, o) {
|
|
2721
|
-
return e.registerRule((i) => new
|
|
2757
|
+
return e.registerRule((i) => new ai(n, i, r, s, o));
|
|
2722
2758
|
}
|
|
2723
2759
|
static getCompiledRuleId(e, n, r) {
|
|
2724
2760
|
return e.id || n.registerRule((s) => {
|
|
2725
2761
|
if (e.id = s, e.match)
|
|
2726
|
-
return new
|
|
2762
|
+
return new li(
|
|
2727
2763
|
e.$vscodeTextmateLocation,
|
|
2728
2764
|
e.id,
|
|
2729
2765
|
e.name,
|
|
@@ -2848,7 +2884,7 @@ var Be = class {
|
|
|
2848
2884
|
this.hasAnchor = i, s === 0 ? this.source = e : (o.push(e.substring(s, r)), this.source = o.join(""));
|
|
2849
2885
|
} else
|
|
2850
2886
|
this.hasAnchor = !1, this.source = e;
|
|
2851
|
-
this.hasAnchor ? this._anchorCache = this._buildAnchorCache() : this._anchorCache = null, this.ruleId = n, typeof this.source == "string" ? this.hasBackReferences =
|
|
2887
|
+
this.hasAnchor ? this._anchorCache = this._buildAnchorCache() : this._anchorCache = null, this.ruleId = n, typeof this.source == "string" ? this.hasBackReferences = oi.test(this.source) : this.hasBackReferences = !1;
|
|
2852
2888
|
}
|
|
2853
2889
|
clone() {
|
|
2854
2890
|
return new qr(this.source, this.ruleId);
|
|
@@ -2912,7 +2948,7 @@ var Be = class {
|
|
|
2912
2948
|
compile(t) {
|
|
2913
2949
|
if (!this._cached) {
|
|
2914
2950
|
let e = this._items.map((n) => n.source);
|
|
2915
|
-
this._cached = new
|
|
2951
|
+
this._cached = new $n(t, e, this._items.map((n) => n.ruleId));
|
|
2916
2952
|
}
|
|
2917
2953
|
return this._cached;
|
|
2918
2954
|
}
|
|
@@ -2921,9 +2957,9 @@ var Be = class {
|
|
|
2921
2957
|
}
|
|
2922
2958
|
_resolveAnchors(t, e, n) {
|
|
2923
2959
|
let r = this._items.map((s) => s.resolveAnchors(e, n));
|
|
2924
|
-
return new
|
|
2960
|
+
return new $n(t, r, this._items.map((s) => s.ruleId));
|
|
2925
2961
|
}
|
|
2926
|
-
},
|
|
2962
|
+
}, $n = class {
|
|
2927
2963
|
constructor(t, e, n) {
|
|
2928
2964
|
this.regExps = e, this.rules = n, this.scanner = t.createOnigScanner(e);
|
|
2929
2965
|
}
|
|
@@ -2949,7 +2985,7 @@ var Be = class {
|
|
|
2949
2985
|
constructor(t, e) {
|
|
2950
2986
|
this.languageId = t, this.tokenType = e;
|
|
2951
2987
|
}
|
|
2952
|
-
},
|
|
2988
|
+
}, ci = class Bt {
|
|
2953
2989
|
_defaultAttributes;
|
|
2954
2990
|
_embeddedLanguagesMatcher;
|
|
2955
2991
|
constructor(e, n) {
|
|
@@ -2957,7 +2993,7 @@ var Be = class {
|
|
|
2957
2993
|
e,
|
|
2958
2994
|
8
|
|
2959
2995
|
/* NotSet */
|
|
2960
|
-
), this._embeddedLanguagesMatcher = new
|
|
2996
|
+
), this._embeddedLanguagesMatcher = new ui(Object.entries(n || {}));
|
|
2961
2997
|
}
|
|
2962
2998
|
getDefaultAttributes() {
|
|
2963
2999
|
return this._defaultAttributes;
|
|
@@ -2994,7 +3030,7 @@ var Be = class {
|
|
|
2994
3030
|
throw new Error("Unexpected match for standard token type!");
|
|
2995
3031
|
}
|
|
2996
3032
|
static STANDARD_TOKEN_TYPE_REGEXP = /\b(comment|string|regex|meta\.embedded)\b/;
|
|
2997
|
-
},
|
|
3033
|
+
}, ui = class {
|
|
2998
3034
|
values;
|
|
2999
3035
|
scopesRegExp;
|
|
3000
3036
|
constructor(t) {
|
|
@@ -3020,7 +3056,7 @@ var Be = class {
|
|
|
3020
3056
|
}
|
|
3021
3057
|
};
|
|
3022
3058
|
typeof process < "u" && process.env.VSCODE_TEXTMATE_DEBUG;
|
|
3023
|
-
var
|
|
3059
|
+
var Ln = class {
|
|
3024
3060
|
constructor(t, e) {
|
|
3025
3061
|
this.stack = t, this.stoppedEarly = e;
|
|
3026
3062
|
}
|
|
@@ -3029,7 +3065,7 @@ function Vr(t, e, n, r, s, o, i, a) {
|
|
|
3029
3065
|
const l = e.content.length;
|
|
3030
3066
|
let c = !1, u = -1;
|
|
3031
3067
|
if (i) {
|
|
3032
|
-
const p =
|
|
3068
|
+
const p = hi(
|
|
3033
3069
|
t,
|
|
3034
3070
|
e,
|
|
3035
3071
|
n,
|
|
@@ -3042,12 +3078,12 @@ function Vr(t, e, n, r, s, o, i, a) {
|
|
|
3042
3078
|
const h = Date.now();
|
|
3043
3079
|
for (; !c; ) {
|
|
3044
3080
|
if (a !== 0 && Date.now() - h > a)
|
|
3045
|
-
return new
|
|
3081
|
+
return new Ln(s, !0);
|
|
3046
3082
|
d();
|
|
3047
3083
|
}
|
|
3048
|
-
return new
|
|
3084
|
+
return new Ln(s, !1);
|
|
3049
3085
|
function d() {
|
|
3050
|
-
const p =
|
|
3086
|
+
const p = fi(
|
|
3051
3087
|
t,
|
|
3052
3088
|
e,
|
|
3053
3089
|
n,
|
|
@@ -3060,7 +3096,7 @@ function Vr(t, e, n, r, s, o, i, a) {
|
|
|
3060
3096
|
return;
|
|
3061
3097
|
}
|
|
3062
3098
|
const f = p.captureIndices, m = p.matchedRuleId, g = f && f.length > 0 ? f[0].end > r : !1;
|
|
3063
|
-
if (m ===
|
|
3099
|
+
if (m === ii) {
|
|
3064
3100
|
const w = s.getRule(t);
|
|
3065
3101
|
o.produce(s, f[0].start), s = s.withContentNameScopesList(s.nameScopesList), Re(
|
|
3066
3102
|
t,
|
|
@@ -3161,7 +3197,7 @@ function Vr(t, e, n, r, s, o, i, a) {
|
|
|
3161
3197
|
f[0].end > r && (r = f[0].end, n = !1);
|
|
3162
3198
|
}
|
|
3163
3199
|
}
|
|
3164
|
-
function
|
|
3200
|
+
function hi(t, e, n, r, s, o) {
|
|
3165
3201
|
let i = s.beginRuleCapturedEOL ? 0 : -1;
|
|
3166
3202
|
const a = [];
|
|
3167
3203
|
for (let l = s; l; l = l.pop()) {
|
|
@@ -3172,7 +3208,7 @@ function ui(t, e, n, r, s, o) {
|
|
|
3172
3208
|
});
|
|
3173
3209
|
}
|
|
3174
3210
|
for (let l = a.pop(); l; l = a.pop()) {
|
|
3175
|
-
const { ruleScanner: c, findOptions: u } =
|
|
3211
|
+
const { ruleScanner: c, findOptions: u } = gi(l.rule, t, l.stack.endRule, n, r === i), h = c.findNextMatchSync(e, r, u);
|
|
3176
3212
|
if (h) {
|
|
3177
3213
|
if (h.ruleId !== Wr) {
|
|
3178
3214
|
s = l.stack.pop();
|
|
@@ -3186,11 +3222,11 @@ function ui(t, e, n, r, s, o) {
|
|
|
3186
3222
|
}
|
|
3187
3223
|
return { stack: s, linePos: r, anchorPosition: i, isFirstLine: n };
|
|
3188
3224
|
}
|
|
3189
|
-
function
|
|
3190
|
-
const i =
|
|
3225
|
+
function fi(t, e, n, r, s, o) {
|
|
3226
|
+
const i = pi(t, e, n, r, s, o), a = t.getInjections();
|
|
3191
3227
|
if (a.length === 0)
|
|
3192
3228
|
return i;
|
|
3193
|
-
const l =
|
|
3229
|
+
const l = di(a, t, e, n, r, s, o);
|
|
3194
3230
|
if (!l)
|
|
3195
3231
|
return i;
|
|
3196
3232
|
if (!i)
|
|
@@ -3198,14 +3234,14 @@ function hi(t, e, n, r, s, o) {
|
|
|
3198
3234
|
const c = i.captureIndices[0].start, u = l.captureIndices[0].start;
|
|
3199
3235
|
return u < c || l.priorityMatch && u === c ? l : i;
|
|
3200
3236
|
}
|
|
3201
|
-
function
|
|
3237
|
+
function pi(t, e, n, r, s, o) {
|
|
3202
3238
|
const i = s.getRule(t), { ruleScanner: a, findOptions: l } = Xr(i, t, s.endRule, n, r === o), c = a.findNextMatchSync(e, r, l);
|
|
3203
3239
|
return c ? {
|
|
3204
3240
|
captureIndices: c.captureIndices,
|
|
3205
3241
|
matchedRuleId: c.ruleId
|
|
3206
3242
|
} : null;
|
|
3207
3243
|
}
|
|
3208
|
-
function
|
|
3244
|
+
function di(t, e, n, r, s, o, i) {
|
|
3209
3245
|
let a = Number.MAX_VALUE, l = null, c, u = 0;
|
|
3210
3246
|
const h = o.contentNameScopesList.getScopeNames();
|
|
3211
3247
|
for (let d = 0, p = t.length; d < p; d++) {
|
|
@@ -3232,7 +3268,7 @@ function Xr(t, e, n, r, s) {
|
|
|
3232
3268
|
/* None */
|
|
3233
3269
|
};
|
|
3234
3270
|
}
|
|
3235
|
-
function
|
|
3271
|
+
function gi(t, e, n, r, s) {
|
|
3236
3272
|
return {
|
|
3237
3273
|
ruleScanner: t.compileWhileAG(e, n, r, s),
|
|
3238
3274
|
findOptions: 0
|
|
@@ -3272,21 +3308,21 @@ function Re(t, e, n, r, s, o, i) {
|
|
|
3272
3308
|
const f = d.getName(a, i);
|
|
3273
3309
|
if (f !== null) {
|
|
3274
3310
|
const g = (c.length > 0 ? c[c.length - 1].scopes : r.contentNameScopesList).pushAttributed(f, t);
|
|
3275
|
-
c.push(new
|
|
3311
|
+
c.push(new mi(g, p.end));
|
|
3276
3312
|
}
|
|
3277
3313
|
}
|
|
3278
3314
|
for (; c.length > 0; )
|
|
3279
3315
|
s.produceFromScopes(c[c.length - 1].scopes, c[c.length - 1].endPos), c.pop();
|
|
3280
3316
|
}
|
|
3281
|
-
var
|
|
3317
|
+
var mi = class {
|
|
3282
3318
|
scopes;
|
|
3283
3319
|
endPos;
|
|
3284
3320
|
constructor(t, e) {
|
|
3285
3321
|
this.scopes = t, this.endPos = e;
|
|
3286
3322
|
}
|
|
3287
3323
|
};
|
|
3288
|
-
function
|
|
3289
|
-
return new
|
|
3324
|
+
function yi(t, e, n, r, s, o, i, a) {
|
|
3325
|
+
return new wi(
|
|
3290
3326
|
t,
|
|
3291
3327
|
e,
|
|
3292
3328
|
n,
|
|
@@ -3314,12 +3350,12 @@ function tt(t, e) {
|
|
|
3314
3350
|
let n = 0;
|
|
3315
3351
|
return t.every((r) => {
|
|
3316
3352
|
for (let s = n; s < e.length; s++)
|
|
3317
|
-
if (
|
|
3353
|
+
if (bi(e[s], r))
|
|
3318
3354
|
return n = s + 1, !0;
|
|
3319
3355
|
return !1;
|
|
3320
3356
|
});
|
|
3321
3357
|
}
|
|
3322
|
-
function
|
|
3358
|
+
function bi(t, e) {
|
|
3323
3359
|
if (!t)
|
|
3324
3360
|
return !1;
|
|
3325
3361
|
if (t === e)
|
|
@@ -3327,9 +3363,9 @@ function yi(t, e) {
|
|
|
3327
3363
|
const n = e.length;
|
|
3328
3364
|
return t.length > n && t.substr(0, n) === e && t[n] === ".";
|
|
3329
3365
|
}
|
|
3330
|
-
var
|
|
3366
|
+
var wi = class {
|
|
3331
3367
|
constructor(t, e, n, r, s, o, i, a) {
|
|
3332
|
-
if (this._rootScopeName = t, this.balancedBracketSelectors = o, this._onigLib = a, this._basicScopeAttributesProvider = new
|
|
3368
|
+
if (this._rootScopeName = t, this.balancedBracketSelectors = o, this._onigLib = a, this._basicScopeAttributesProvider = new ci(
|
|
3333
3369
|
n,
|
|
3334
3370
|
r
|
|
3335
3371
|
), this._rootId = -1, this._lastRuleId = 0, this._ruleId2desc = [null], this._includedGrammars = {}, this._grammarRepository = i, this._grammar = Tn(e, null), this._injections = null, this._tokenTypeMatchers = [], s)
|
|
@@ -3481,7 +3517,7 @@ var bi = class {
|
|
|
3481
3517
|
s = !1, e.reset();
|
|
3482
3518
|
t = t + `
|
|
3483
3519
|
`;
|
|
3484
|
-
const o = this.createOnigString(t), i = o.content.length, a = new
|
|
3520
|
+
const o = this.createOnigString(t), i = o.content.length, a = new _i(
|
|
3485
3521
|
n,
|
|
3486
3522
|
t,
|
|
3487
3523
|
this._tokenTypeMatchers,
|
|
@@ -3505,7 +3541,7 @@ var bi = class {
|
|
|
3505
3541
|
}
|
|
3506
3542
|
};
|
|
3507
3543
|
function Tn(t, e) {
|
|
3508
|
-
return t =
|
|
3544
|
+
return t = Do(t), t.repository = t.repository || {}, t.repository.$self = {
|
|
3509
3545
|
$vscodeTextmateLocation: t.$vscodeTextmateLocation,
|
|
3510
3546
|
patterns: t.patterns,
|
|
3511
3547
|
name: t.scopeName
|
|
@@ -3762,7 +3798,7 @@ var Ne = class J {
|
|
|
3762
3798
|
Ne.fromExtension(r, n.contentNameScopesList)
|
|
3763
3799
|
);
|
|
3764
3800
|
}
|
|
3765
|
-
},
|
|
3801
|
+
}, Ci = class {
|
|
3766
3802
|
balancedBracketScopes;
|
|
3767
3803
|
unbalancedBracketScopes;
|
|
3768
3804
|
allowAny = !1;
|
|
@@ -3788,7 +3824,7 @@ var Ne = class J {
|
|
|
3788
3824
|
return !0;
|
|
3789
3825
|
return this.allowAny;
|
|
3790
3826
|
}
|
|
3791
|
-
},
|
|
3827
|
+
}, _i = class {
|
|
3792
3828
|
constructor(t, e, n, r) {
|
|
3793
3829
|
this.balancedBracketSelectors = r, this._emitBinaryTokens = t, this._tokenTypeOverrides = n, this._lineText = null, this._tokens = [], this._binaryTokens = [], this._lastTokenEndIndex = 0;
|
|
3794
3830
|
}
|
|
@@ -3862,7 +3898,7 @@ var Ne = class J {
|
|
|
3862
3898
|
n[r] = this._binaryTokens[r];
|
|
3863
3899
|
return n;
|
|
3864
3900
|
}
|
|
3865
|
-
},
|
|
3901
|
+
}, Si = class {
|
|
3866
3902
|
constructor(t, e) {
|
|
3867
3903
|
this._onigLib = e, this._theme = t;
|
|
3868
3904
|
}
|
|
@@ -3918,7 +3954,7 @@ var Ne = class J {
|
|
|
3918
3954
|
let o = this._rawGrammars.get(t);
|
|
3919
3955
|
if (!o)
|
|
3920
3956
|
return null;
|
|
3921
|
-
this._grammars.set(t,
|
|
3957
|
+
this._grammars.set(t, yi(
|
|
3922
3958
|
t,
|
|
3923
3959
|
o,
|
|
3924
3960
|
e,
|
|
@@ -3931,12 +3967,12 @@ var Ne = class J {
|
|
|
3931
3967
|
}
|
|
3932
3968
|
return this._grammars.get(t);
|
|
3933
3969
|
}
|
|
3934
|
-
},
|
|
3970
|
+
}, ki = class {
|
|
3935
3971
|
_options;
|
|
3936
3972
|
_syncRegistry;
|
|
3937
3973
|
_ensureGrammarCache;
|
|
3938
3974
|
constructor(e) {
|
|
3939
|
-
this._options = e, this._syncRegistry = new
|
|
3975
|
+
this._options = e, this._syncRegistry = new Si(
|
|
3940
3976
|
Ze.createFromRawTheme(e.theme, e.colorMap),
|
|
3941
3977
|
e.onigLib
|
|
3942
3978
|
), this._ensureGrammarCache = /* @__PURE__ */ new Map();
|
|
@@ -3973,7 +4009,7 @@ var Ne = class J {
|
|
|
3973
4009
|
n,
|
|
3974
4010
|
r.embeddedLanguages,
|
|
3975
4011
|
r.tokenTypes,
|
|
3976
|
-
new
|
|
4012
|
+
new Ci(
|
|
3977
4013
|
r.balancedBracketSelectors || [],
|
|
3978
4014
|
r.unbalancedBracketSelectors || []
|
|
3979
4015
|
)
|
|
@@ -3986,7 +4022,7 @@ var Ne = class J {
|
|
|
3986
4022
|
return this._loadGrammar(e, 0, null, null, null);
|
|
3987
4023
|
}
|
|
3988
4024
|
_loadGrammar(e, n, r, s, o) {
|
|
3989
|
-
const i = new
|
|
4025
|
+
const i = new Yo(this._syncRegistry, e);
|
|
3990
4026
|
for (; i.Q.length > 0; )
|
|
3991
4027
|
i.Q.map((a) => this._loadSingleGrammar(a.scopeName)), i.processQueue();
|
|
3992
4028
|
return this._grammarForScopeName(
|
|
@@ -4026,28 +4062,7 @@ var Ne = class J {
|
|
|
4026
4062
|
);
|
|
4027
4063
|
}
|
|
4028
4064
|
}, Ut = jt.NULL;
|
|
4029
|
-
const
|
|
4030
|
-
"area",
|
|
4031
|
-
"base",
|
|
4032
|
-
"basefont",
|
|
4033
|
-
"bgsound",
|
|
4034
|
-
"br",
|
|
4035
|
-
"col",
|
|
4036
|
-
"command",
|
|
4037
|
-
"embed",
|
|
4038
|
-
"frame",
|
|
4039
|
-
"hr",
|
|
4040
|
-
"image",
|
|
4041
|
-
"img",
|
|
4042
|
-
"input",
|
|
4043
|
-
"keygen",
|
|
4044
|
-
"link",
|
|
4045
|
-
"meta",
|
|
4046
|
-
"param",
|
|
4047
|
-
"source",
|
|
4048
|
-
"track",
|
|
4049
|
-
"wbr"
|
|
4050
|
-
], xi = /["&'<>`]/g, vi = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g, Ei = (
|
|
4065
|
+
const xi = /["&'<>`]/g, vi = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g, Ei = (
|
|
4051
4066
|
// eslint-disable-next-line no-control-regex, unicorn/no-hex-escape
|
|
4052
4067
|
/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g
|
|
4053
4068
|
), Ai = /[|\\{}()[\]^$+*?.]/g, Mn = /* @__PURE__ */ new WeakMap();
|
|
@@ -4084,10 +4099,10 @@ function Ni(t) {
|
|
|
4084
4099
|
e.push(t[n].replace(Ai, "\\$&"));
|
|
4085
4100
|
return new RegExp("(?:" + e.join("|") + ")", "g");
|
|
4086
4101
|
}
|
|
4087
|
-
const
|
|
4088
|
-
function
|
|
4102
|
+
const $i = /[\dA-Fa-f]/;
|
|
4103
|
+
function Li(t, e, n) {
|
|
4089
4104
|
const r = "&#x" + t.toString(16).toUpperCase();
|
|
4090
|
-
return n && e &&
|
|
4105
|
+
return n && e && !$i.test(String.fromCharCode(e)) ? r : r + ";";
|
|
4091
4106
|
}
|
|
4092
4107
|
const Pi = /\d/;
|
|
4093
4108
|
function Ti(t, e, n) {
|
|
@@ -4477,7 +4492,7 @@ function Di(t, e, n, r) {
|
|
|
4477
4492
|
return "";
|
|
4478
4493
|
}
|
|
4479
4494
|
function Fi(t, e, n) {
|
|
4480
|
-
let r =
|
|
4495
|
+
let r = Li(t, e, n.omitOptionalSemicolons), s;
|
|
4481
4496
|
if ((n.useNamedReferences || n.useShortestReferences) && (s = Di(
|
|
4482
4497
|
t,
|
|
4483
4498
|
e,
|
|
@@ -4512,7 +4527,7 @@ function zi(t, e, n, r) {
|
|
|
4512
4527
|
function Wi(t, e, n, r) {
|
|
4513
4528
|
return "<!" + (r.settings.upperDoctype ? "DOCTYPE" : "doctype") + (r.settings.tightDoctype ? "" : " ") + "html>";
|
|
4514
4529
|
}
|
|
4515
|
-
const
|
|
4530
|
+
const L = Zr(1), Jr = Zr(-1), Hi = [];
|
|
4516
4531
|
function Zr(t) {
|
|
4517
4532
|
return e;
|
|
4518
4533
|
function e(n, r, s) {
|
|
@@ -4553,63 +4568,63 @@ const nn = Yr({
|
|
|
4553
4568
|
tr: sa
|
|
4554
4569
|
});
|
|
4555
4570
|
function kt(t, e, n) {
|
|
4556
|
-
const r =
|
|
4571
|
+
const r = L(n, e, !0);
|
|
4557
4572
|
return !r || r.type !== "comment" && !(r.type === "text" && ut(r.value.charAt(0)));
|
|
4558
4573
|
}
|
|
4559
4574
|
function Vi(t, e, n) {
|
|
4560
|
-
const r =
|
|
4575
|
+
const r = L(n, e);
|
|
4561
4576
|
return !r || r.type !== "comment";
|
|
4562
4577
|
}
|
|
4563
4578
|
function Xi(t, e, n) {
|
|
4564
|
-
const r =
|
|
4579
|
+
const r = L(n, e);
|
|
4565
4580
|
return !r || r.type !== "comment";
|
|
4566
4581
|
}
|
|
4567
4582
|
function Ki(t, e, n) {
|
|
4568
|
-
const r =
|
|
4583
|
+
const r = L(n, e);
|
|
4569
4584
|
return r ? r.type === "element" && (r.tagName === "address" || r.tagName === "article" || r.tagName === "aside" || r.tagName === "blockquote" || r.tagName === "details" || r.tagName === "div" || r.tagName === "dl" || r.tagName === "fieldset" || r.tagName === "figcaption" || r.tagName === "figure" || r.tagName === "footer" || r.tagName === "form" || r.tagName === "h1" || r.tagName === "h2" || r.tagName === "h3" || r.tagName === "h4" || r.tagName === "h5" || r.tagName === "h6" || r.tagName === "header" || r.tagName === "hgroup" || r.tagName === "hr" || r.tagName === "main" || r.tagName === "menu" || r.tagName === "nav" || r.tagName === "ol" || r.tagName === "p" || r.tagName === "pre" || r.tagName === "section" || r.tagName === "table" || r.tagName === "ul") : !n || // Confusing parent.
|
|
4570
4585
|
!(n.type === "element" && (n.tagName === "a" || n.tagName === "audio" || n.tagName === "del" || n.tagName === "ins" || n.tagName === "map" || n.tagName === "noscript" || n.tagName === "video"));
|
|
4571
4586
|
}
|
|
4572
4587
|
function Ji(t, e, n) {
|
|
4573
|
-
const r =
|
|
4588
|
+
const r = L(n, e);
|
|
4574
4589
|
return !r || r.type === "element" && r.tagName === "li";
|
|
4575
4590
|
}
|
|
4576
4591
|
function Zi(t, e, n) {
|
|
4577
|
-
const r =
|
|
4592
|
+
const r = L(n, e);
|
|
4578
4593
|
return !!(r && r.type === "element" && (r.tagName === "dt" || r.tagName === "dd"));
|
|
4579
4594
|
}
|
|
4580
4595
|
function Yi(t, e, n) {
|
|
4581
|
-
const r =
|
|
4596
|
+
const r = L(n, e);
|
|
4582
4597
|
return !r || r.type === "element" && (r.tagName === "dt" || r.tagName === "dd");
|
|
4583
4598
|
}
|
|
4584
4599
|
function On(t, e, n) {
|
|
4585
|
-
const r =
|
|
4600
|
+
const r = L(n, e);
|
|
4586
4601
|
return !r || r.type === "element" && (r.tagName === "rp" || r.tagName === "rt");
|
|
4587
4602
|
}
|
|
4588
4603
|
function Qi(t, e, n) {
|
|
4589
|
-
const r =
|
|
4604
|
+
const r = L(n, e);
|
|
4590
4605
|
return !r || r.type === "element" && r.tagName === "optgroup";
|
|
4591
4606
|
}
|
|
4592
4607
|
function ea(t, e, n) {
|
|
4593
|
-
const r =
|
|
4608
|
+
const r = L(n, e);
|
|
4594
4609
|
return !r || r.type === "element" && (r.tagName === "option" || r.tagName === "optgroup");
|
|
4595
4610
|
}
|
|
4596
4611
|
function ta(t, e, n) {
|
|
4597
|
-
const r =
|
|
4612
|
+
const r = L(n, e);
|
|
4598
4613
|
return !!(r && r.type === "element" && (r.tagName === "tbody" || r.tagName === "tfoot"));
|
|
4599
4614
|
}
|
|
4600
4615
|
function na(t, e, n) {
|
|
4601
|
-
const r =
|
|
4616
|
+
const r = L(n, e);
|
|
4602
4617
|
return !r || r.type === "element" && (r.tagName === "tbody" || r.tagName === "tfoot");
|
|
4603
4618
|
}
|
|
4604
4619
|
function ra(t, e, n) {
|
|
4605
|
-
return
|
|
4620
|
+
return !L(n, e);
|
|
4606
4621
|
}
|
|
4607
4622
|
function sa(t, e, n) {
|
|
4608
|
-
const r =
|
|
4623
|
+
const r = L(n, e);
|
|
4609
4624
|
return !r || r.type === "element" && r.tagName === "tr";
|
|
4610
4625
|
}
|
|
4611
4626
|
function Gn(t, e, n) {
|
|
4612
|
-
const r =
|
|
4627
|
+
const r = L(n, e);
|
|
4613
4628
|
return !r || r.type === "element" && (r.tagName === "td" || r.tagName === "th");
|
|
4614
4629
|
}
|
|
4615
4630
|
const oa = Yr({
|
|
@@ -4620,7 +4635,7 @@ const oa = Yr({
|
|
|
4620
4635
|
tbody: ua
|
|
4621
4636
|
});
|
|
4622
4637
|
function ia(t) {
|
|
4623
|
-
const e =
|
|
4638
|
+
const e = L(t, -1);
|
|
4624
4639
|
return !e || e.type !== "comment";
|
|
4625
4640
|
}
|
|
4626
4641
|
function aa(t) {
|
|
@@ -4634,15 +4649,15 @@ function aa(t) {
|
|
|
4634
4649
|
return !n || n.type === "element";
|
|
4635
4650
|
}
|
|
4636
4651
|
function la(t) {
|
|
4637
|
-
const e =
|
|
4652
|
+
const e = L(t, -1, !0);
|
|
4638
4653
|
return !e || e.type !== "comment" && !(e.type === "text" && ut(e.value.charAt(0))) && !(e.type === "element" && (e.tagName === "meta" || e.tagName === "link" || e.tagName === "script" || e.tagName === "style" || e.tagName === "template"));
|
|
4639
4654
|
}
|
|
4640
4655
|
function ca(t, e, n) {
|
|
4641
|
-
const r = Jr(n, e), s =
|
|
4656
|
+
const r = Jr(n, e), s = L(t, -1, !0);
|
|
4642
4657
|
return n && r && r.type === "element" && r.tagName === "colgroup" && nn(r, n.children.indexOf(r), n) ? !1 : !!(s && s.type === "element" && s.tagName === "col");
|
|
4643
4658
|
}
|
|
4644
4659
|
function ua(t, e, n) {
|
|
4645
|
-
const r = Jr(n, e), s =
|
|
4660
|
+
const r = Jr(n, e), s = L(t, -1);
|
|
4646
4661
|
return n && r && r.type === "element" && (r.tagName === "thead" || r.tagName === "tbody") && nn(r, n.children.indexOf(r), n) ? !1 : !!(s && s.type === "element" && s.tagName === "tr");
|
|
4647
4662
|
}
|
|
4648
4663
|
const We = {
|
|
@@ -4722,7 +4737,7 @@ function pa(t, e, n) {
|
|
|
4722
4737
|
attribute: !0,
|
|
4723
4738
|
subset: We.unquoted[s][o]
|
|
4724
4739
|
})
|
|
4725
|
-
)), a !== n && (t.settings.quoteSmart &&
|
|
4740
|
+
)), a !== n && (t.settings.quoteSmart && En(n, i) > En(n, t.alternative) && (i = t.alternative), a = i + be(
|
|
4726
4741
|
n,
|
|
4727
4742
|
Object.assign({}, t.settings.characterReferences, {
|
|
4728
4743
|
// Always encode without parse errors in non-HTML.
|
|
@@ -4783,7 +4798,7 @@ function ka(t, e) {
|
|
|
4783
4798
|
tightSelfClosing: n.tightSelfClosing || !1,
|
|
4784
4799
|
collapseEmptyAttributes: n.collapseEmptyAttributes || !1,
|
|
4785
4800
|
allowDangerousHtml: n.allowDangerousHtml || !1,
|
|
4786
|
-
voids: n.voids ||
|
|
4801
|
+
voids: n.voids || Go,
|
|
4787
4802
|
characterReferences: n.characterReferences || _a,
|
|
4788
4803
|
closeSelfClosing: n.closeSelfClosing || !1,
|
|
4789
4804
|
closeEmptyElements: n.closeEmptyElements || !1
|
|
@@ -4849,8 +4864,8 @@ const Ra = {
|
|
|
4849
4864
|
code: es(n),
|
|
4850
4865
|
meta: n.data?.meta ?? n.properties.metastring?.toString() ?? ""
|
|
4851
4866
|
};
|
|
4852
|
-
},
|
|
4853
|
-
function
|
|
4867
|
+
}, $a = "language-";
|
|
4868
|
+
function La(t, e) {
|
|
4854
4869
|
const {
|
|
4855
4870
|
addLanguageClass: n = !1,
|
|
4856
4871
|
parseMetaString: r,
|
|
@@ -4881,7 +4896,7 @@ function $a(t, e) {
|
|
|
4881
4896
|
{
|
|
4882
4897
|
name: "rehype-shiki:code-language-class",
|
|
4883
4898
|
code(_) {
|
|
4884
|
-
return this.addClassToHast(_, `${
|
|
4899
|
+
return this.addClassToHast(_, `${$a}${p}`), _;
|
|
4885
4900
|
}
|
|
4886
4901
|
}
|
|
4887
4902
|
]), l && f.endsWith(`
|
|
@@ -6153,7 +6168,7 @@ class me extends Error {
|
|
|
6153
6168
|
super(e), this.name = "ShikiError";
|
|
6154
6169
|
}
|
|
6155
6170
|
}
|
|
6156
|
-
class bl extends
|
|
6171
|
+
class bl extends ki {
|
|
6157
6172
|
constructor(e, n, r, s = {}) {
|
|
6158
6173
|
super(e), this._resolver = e, this._themes = n, this._langs = r, this._alias = s, this._themes.map((o) => this.loadTheme(o)), this.loadLanguages(this._langs);
|
|
6159
6174
|
}
|
|
@@ -6544,7 +6559,7 @@ function Il(t) {
|
|
|
6544
6559
|
if (!e || !ln.has(e.groups.name)) throw new Error(`Invalid POSIX class "${t}"`);
|
|
6545
6560
|
return le("posix", t, { value: e.groups.name, negate: !!e.groups.negate });
|
|
6546
6561
|
}
|
|
6547
|
-
return t === "-" ?
|
|
6562
|
+
return t === "-" ? $l(t) : t === "&&" ? Ll(t) : Q(ke(t), t);
|
|
6548
6563
|
}
|
|
6549
6564
|
function hs(t, { inCharClass: e }) {
|
|
6550
6565
|
const n = t[1];
|
|
@@ -6587,10 +6602,10 @@ function Q(t, e) {
|
|
|
6587
6602
|
function Nl(t) {
|
|
6588
6603
|
return { type: "CharacterClassClose", raw: t };
|
|
6589
6604
|
}
|
|
6590
|
-
function
|
|
6605
|
+
function $l(t) {
|
|
6591
6606
|
return { type: "CharacterClassHyphen", raw: t };
|
|
6592
6607
|
}
|
|
6593
|
-
function
|
|
6608
|
+
function Ll(t) {
|
|
6594
6609
|
return { type: "CharacterClassIntersector", raw: t };
|
|
6595
6610
|
}
|
|
6596
6611
|
function qn(t, e) {
|
|
@@ -7021,7 +7036,7 @@ function Qn(t) {
|
|
|
7021
7036
|
return xe(t, "Unclosed group");
|
|
7022
7037
|
}
|
|
7023
7038
|
const un = String.raw, er = un`(?:\p{Emoji}\uFE0F\u20E3?|\p{Emoji_Modifier_Base}\p{Emoji_Modifier}?|\p{Emoji_Presentation})`, tr = un`\u{E0061}-\u{E007A}`, pc = () => new RegExp(un`[\u{1F1E6}-\u{1F1FF}]{2}|\u{1F3F4}[${tr}]{2}[\u{E0030}-\u{E0039}${tr}]{1,3}\u{E007F}|${er}(?:\u200D${er})*`, "gu");
|
|
7024
|
-
function
|
|
7039
|
+
function $e(t, e, n = null) {
|
|
7025
7040
|
function r(o, i) {
|
|
7026
7041
|
for (let a = 0; a < o.length; a++) {
|
|
7027
7042
|
const l = s(o[a], i, a, o);
|
|
@@ -7460,7 +7475,7 @@ function ir(t, e, n, r, s, o) {
|
|
|
7460
7475
|
}
|
|
7461
7476
|
return t;
|
|
7462
7477
|
}
|
|
7463
|
-
var
|
|
7478
|
+
var $ = String.fromCodePoint, x = String.raw, Ce = {
|
|
7464
7479
|
flagGroups: (() => {
|
|
7465
7480
|
try {
|
|
7466
7481
|
new RegExp("(?i:)");
|
|
@@ -7566,9 +7581,9 @@ function ks(t = {}) {
|
|
|
7566
7581
|
return e.target === "auto" && (e.target = Ce.flagGroups ? "ES2025" : Ce.unicodeSets ? "ES2024" : "ES2018"), e;
|
|
7567
7582
|
}
|
|
7568
7583
|
var Ec = "[ -\r ]", Z = x`[\p{L}\p{M}\p{N}\p{Pc}]`, Ac = /* @__PURE__ */ new Set([
|
|
7569
|
-
|
|
7584
|
+
$(304),
|
|
7570
7585
|
// İ
|
|
7571
|
-
|
|
7586
|
+
$(305)
|
|
7572
7587
|
// ı
|
|
7573
7588
|
]);
|
|
7574
7589
|
function xs(t) {
|
|
@@ -7670,18 +7685,18 @@ White_Space space
|
|
|
7670
7685
|
XID_Continue XIDC
|
|
7671
7686
|
XID_Start XIDS`.split(/\s/).map((t) => [gt(t), t])
|
|
7672
7687
|
), Ic = /* @__PURE__ */ new Map([
|
|
7673
|
-
["s",
|
|
7688
|
+
["s", $(383)],
|
|
7674
7689
|
// s, ſ
|
|
7675
|
-
[
|
|
7690
|
+
[$(383), "s"]
|
|
7676
7691
|
// ſ, s
|
|
7677
7692
|
]), Rc = /* @__PURE__ */ new Map([
|
|
7678
|
-
[
|
|
7693
|
+
[$(223), $(7838)],
|
|
7679
7694
|
// ß, ẞ
|
|
7680
|
-
[
|
|
7695
|
+
[$(107), $(8490)],
|
|
7681
7696
|
// k, K (Kelvin)
|
|
7682
|
-
[
|
|
7697
|
+
[$(229), $(8491)],
|
|
7683
7698
|
// å, Å (Angstrom)
|
|
7684
|
-
[
|
|
7699
|
+
[$(969), $(8486)]
|
|
7685
7700
|
// ω, Ω (Ohm)
|
|
7686
7701
|
]), Nc = new Map([
|
|
7687
7702
|
ee(453),
|
|
@@ -7694,7 +7709,7 @@ XID_Start XIDS`.split(/\s/).map((t) => [gt(t), t])
|
|
|
7694
7709
|
ee(8124),
|
|
7695
7710
|
ee(8140),
|
|
7696
7711
|
ee(8188)
|
|
7697
|
-
]),
|
|
7712
|
+
]), $c = /* @__PURE__ */ new Map([
|
|
7698
7713
|
["alnum", x`[\p{Alpha}\p{Nd}]`],
|
|
7699
7714
|
["alpha", x`\p{Alpha}`],
|
|
7700
7715
|
["ascii", x`\p{ASCII}`],
|
|
@@ -7711,18 +7726,18 @@ XID_Start XIDS`.split(/\s/).map((t) => [gt(t), t])
|
|
|
7711
7726
|
["word", x`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],
|
|
7712
7727
|
["xdigit", x`\p{AHex}`]
|
|
7713
7728
|
]);
|
|
7714
|
-
function
|
|
7729
|
+
function Lc(t, e) {
|
|
7715
7730
|
const n = [];
|
|
7716
7731
|
for (let r = t; r <= e; r++)
|
|
7717
7732
|
n.push(r);
|
|
7718
7733
|
return n;
|
|
7719
7734
|
}
|
|
7720
7735
|
function ee(t) {
|
|
7721
|
-
const e =
|
|
7736
|
+
const e = $(t);
|
|
7722
7737
|
return [e.toLowerCase(), e];
|
|
7723
7738
|
}
|
|
7724
7739
|
function It(t, e) {
|
|
7725
|
-
return
|
|
7740
|
+
return Lc(t, e).map((n) => ee(n));
|
|
7726
7741
|
}
|
|
7727
7742
|
var vs = /* @__PURE__ */ new Set([
|
|
7728
7743
|
"Lower",
|
|
@@ -7771,7 +7786,7 @@ function Pc(t, e) {
|
|
|
7771
7786
|
spaceIsAscii: t.flags.spaceIsAscii,
|
|
7772
7787
|
wordIsAscii: t.flags.wordIsAscii
|
|
7773
7788
|
};
|
|
7774
|
-
|
|
7789
|
+
$e(t, Tc, r);
|
|
7775
7790
|
const s = {
|
|
7776
7791
|
dotAll: t.flags.dotAll,
|
|
7777
7792
|
ignoreCase: t.flags.ignoreCase
|
|
@@ -7786,14 +7801,14 @@ function Pc(t, e) {
|
|
|
7786
7801
|
reffedNodesByReferencer: /* @__PURE__ */ new Map(),
|
|
7787
7802
|
subroutineRefMap: r.subroutineRefMap
|
|
7788
7803
|
};
|
|
7789
|
-
|
|
7804
|
+
$e(t, Mc, o);
|
|
7790
7805
|
const i = {
|
|
7791
7806
|
groupsByName: o.groupsByName,
|
|
7792
7807
|
highestOrphanBackref: 0,
|
|
7793
7808
|
numCapturesToLeft: 0,
|
|
7794
7809
|
reffedNodesByReferencer: o.reffedNodesByReferencer
|
|
7795
7810
|
};
|
|
7796
|
-
return
|
|
7811
|
+
return $e(t, Oc, i), t._originMap = o.groupOriginByCopy, t._strategy = r.strategy, t;
|
|
7797
7812
|
}
|
|
7798
7813
|
var Tc = {
|
|
7799
7814
|
AbsenceFunction({ node: t, parent: e, replaceWith: n }) {
|
|
@@ -7886,7 +7901,7 @@ var Tc = {
|
|
|
7886
7901
|
return;
|
|
7887
7902
|
}
|
|
7888
7903
|
if (i && (l === "space" || u === "space")) {
|
|
7889
|
-
n(R(
|
|
7904
|
+
n(R($t(Y(Ec), c), e));
|
|
7890
7905
|
return;
|
|
7891
7906
|
}
|
|
7892
7907
|
if (a && (l === "word" || u === "word")) {
|
|
@@ -7917,15 +7932,15 @@ var Tc = {
|
|
|
7917
7932
|
graph: "!-~",
|
|
7918
7933
|
print: " -~"
|
|
7919
7934
|
}[u];
|
|
7920
|
-
c && (h = `\0-${
|
|
7935
|
+
c && (h = `\0-${$(h.codePointAt(0) - 1)}${$(h.codePointAt(2) + 1)}-`), n(R(Y(`[${h}]`), e));
|
|
7921
7936
|
} else
|
|
7922
|
-
n(R(
|
|
7937
|
+
n(R($t(Y($c.get(u)), c), e));
|
|
7923
7938
|
else if (l === "property")
|
|
7924
7939
|
fn.has(gt(u)) || (t.key = "sc");
|
|
7925
7940
|
else if (l === "space")
|
|
7926
7941
|
n(te(ge("space", { negate: c }), e));
|
|
7927
7942
|
else if (l === "word")
|
|
7928
|
-
n(R(
|
|
7943
|
+
n(R($t(Y(Z), c), e));
|
|
7929
7944
|
else
|
|
7930
7945
|
throw new Error(`Unexpected character set kind "${l}"`);
|
|
7931
7946
|
},
|
|
@@ -8164,7 +8179,7 @@ var Tc = {
|
|
|
8164
8179
|
}
|
|
8165
8180
|
};
|
|
8166
8181
|
function Es(t) {
|
|
8167
|
-
|
|
8182
|
+
$e(t, {
|
|
8168
8183
|
"*"({ node: e, parent: n }) {
|
|
8169
8184
|
e.parent = n;
|
|
8170
8185
|
}
|
|
@@ -8186,7 +8201,7 @@ function Dc(t, e) {
|
|
|
8186
8201
|
for (const s of r) {
|
|
8187
8202
|
if (s === n)
|
|
8188
8203
|
break;
|
|
8189
|
-
if (s === t ||
|
|
8204
|
+
if (s === t || $s(s, t))
|
|
8190
8205
|
return !0;
|
|
8191
8206
|
}
|
|
8192
8207
|
} while (n = n.parent);
|
|
@@ -8252,10 +8267,10 @@ function Ns(t) {
|
|
|
8252
8267
|
}
|
|
8253
8268
|
return null;
|
|
8254
8269
|
}
|
|
8255
|
-
function
|
|
8270
|
+
function $s(t, e) {
|
|
8256
8271
|
const n = Rs(t) ?? [];
|
|
8257
8272
|
for (const r of n)
|
|
8258
|
-
if (r === e ||
|
|
8273
|
+
if (r === e || $s(r, e))
|
|
8259
8274
|
return !0;
|
|
8260
8275
|
return !1;
|
|
8261
8276
|
}
|
|
@@ -8292,7 +8307,7 @@ function Y(t, e) {
|
|
|
8292
8307
|
}).body;
|
|
8293
8308
|
return r.length > 1 || r[0].body.length > 1 ? V({ body: r }) : r[0].body[0];
|
|
8294
8309
|
}
|
|
8295
|
-
function
|
|
8310
|
+
function $t(t, e) {
|
|
8296
8311
|
return t.negate = e, t;
|
|
8297
8312
|
}
|
|
8298
8313
|
function te(t, e) {
|
|
@@ -8308,7 +8323,7 @@ function Wc(t, e) {
|
|
|
8308
8323
|
let i = null, a = null;
|
|
8309
8324
|
if (!s) {
|
|
8310
8325
|
const p = [t.flags.ignoreCase];
|
|
8311
|
-
|
|
8326
|
+
$e(t, Hc, {
|
|
8312
8327
|
getCurrentModI: () => p.at(-1),
|
|
8313
8328
|
popModI() {
|
|
8314
8329
|
p.pop();
|
|
@@ -8378,10 +8393,10 @@ var Hc = {
|
|
|
8378
8393
|
e.setHasCasedChar();
|
|
8379
8394
|
},
|
|
8380
8395
|
Character({ node: t }, e) {
|
|
8381
|
-
pn(
|
|
8396
|
+
pn($(t.value)) && e.setHasCasedChar();
|
|
8382
8397
|
},
|
|
8383
8398
|
CharacterClassRange({ node: t, skip: e }, n) {
|
|
8384
|
-
e(),
|
|
8399
|
+
e(), Ls(t, { firstOnly: !0 }).length && n.setHasCasedChar();
|
|
8385
8400
|
},
|
|
8386
8401
|
CharacterSet({ node: t }, e) {
|
|
8387
8402
|
t.kind === "property" && vs.has(t.value) && e.setHasCasedChar();
|
|
@@ -8426,7 +8441,7 @@ var Hc = {
|
|
|
8426
8441
|
@param {CharacterNode} node
|
|
8427
8442
|
*/
|
|
8428
8443
|
Character({ value: t }, e) {
|
|
8429
|
-
const n =
|
|
8444
|
+
const n = $(t), r = pe(t, {
|
|
8430
8445
|
escDigit: e.lastNode.type === "Backreference",
|
|
8431
8446
|
inCharClass: e.inCharClass,
|
|
8432
8447
|
useFlagV: e.useFlagV
|
|
@@ -8491,7 +8506,7 @@ var Hc = {
|
|
|
8491
8506
|
useFlagV: e.useFlagV
|
|
8492
8507
|
}, o = pe(n, s), i = pe(r, s), a = /* @__PURE__ */ new Set();
|
|
8493
8508
|
if (e.useAppliedIgnoreCase && e.currentFlags.ignoreCase) {
|
|
8494
|
-
const l =
|
|
8509
|
+
const l = Ls(t);
|
|
8495
8510
|
Zc(l).forEach((u) => {
|
|
8496
8511
|
a.add(
|
|
8497
8512
|
Array.isArray(u) ? `${pe(u[0], s)}-${pe(u[1], s)}` : pe(u, s)
|
|
@@ -8639,12 +8654,12 @@ var Hc = {
|
|
|
8639
8654
|
function pn(t) {
|
|
8640
8655
|
return Jc.test(t);
|
|
8641
8656
|
}
|
|
8642
|
-
function
|
|
8657
|
+
function Ls(t, e) {
|
|
8643
8658
|
const n = !!e?.firstOnly, r = t.min.value, s = t.max.value, o = [];
|
|
8644
8659
|
if (r < 65 && (s === 65535 || s >= 131071) || r === 65536 && s >= 131071)
|
|
8645
8660
|
return o;
|
|
8646
8661
|
for (let i = r; i <= s; i++) {
|
|
8647
|
-
const a =
|
|
8662
|
+
const a = $(i);
|
|
8648
8663
|
if (!pn(a))
|
|
8649
8664
|
continue;
|
|
8650
8665
|
const l = xs(a).filter((c) => {
|
|
@@ -8666,7 +8681,7 @@ function pe(t, { escDigit: e, inCharClass: n, useFlagV: r }) {
|
|
|
8666
8681
|
e && eu(t)
|
|
8667
8682
|
)
|
|
8668
8683
|
return t > 255 ? `\\u{${t.toString(16).toUpperCase()}}` : `\\x${t.toString(16).toUpperCase().padStart(2, "0")}`;
|
|
8669
|
-
const s = n ? r ? Kc : Xc : Vc, o =
|
|
8684
|
+
const s = n ? r ? Kc : Xc : Vc, o = $(t);
|
|
8670
8685
|
return (s.has(o) ? "\\" : "") + o;
|
|
8671
8686
|
}
|
|
8672
8687
|
function Zc(t) {
|
|
@@ -9055,9 +9070,9 @@ const uu = cu({ forgiving: !0 }), hu = await Sl({
|
|
|
9055
9070
|
class: Os(e.properties.class, r.properties.class)
|
|
9056
9071
|
}, r.properties = {});
|
|
9057
9072
|
});
|
|
9058
|
-
},
|
|
9073
|
+
}, Iu = (t) => [
|
|
9059
9074
|
[
|
|
9060
|
-
|
|
9075
|
+
La,
|
|
9061
9076
|
hu,
|
|
9062
9077
|
{
|
|
9063
9078
|
...ct,
|
|
@@ -9071,7 +9086,7 @@ const uu = cu({ forgiving: !0 }), hu = await Sl({
|
|
|
9071
9086
|
...ct,
|
|
9072
9087
|
themes: r
|
|
9073
9088
|
});
|
|
9074
|
-
return uo(s, { Fragment: Ps, jsx:
|
|
9089
|
+
return uo(s, { Fragment: Ps, jsx: Lt.jsx, jsxs: Lt.jsxs });
|
|
9075
9090
|
}, du = Ts(
|
|
9076
9091
|
({ code: t, children: e, ...n }) => {
|
|
9077
9092
|
const { syntaxHighlighting: r } = Ms().options;
|
|
@@ -9082,7 +9097,7 @@ const uu = cu({ forgiving: !0 }), hu = await Sl({
|
|
|
9082
9097
|
n.language,
|
|
9083
9098
|
r.themes
|
|
9084
9099
|
);
|
|
9085
|
-
return /* @__PURE__ */
|
|
9100
|
+
return /* @__PURE__ */ Lt.jsx(Fs, { ...n, children: s });
|
|
9086
9101
|
}
|
|
9087
9102
|
);
|
|
9088
9103
|
du.displayName = "SyntaxHighlight";
|
|
@@ -9091,17 +9106,23 @@ export {
|
|
|
9091
9106
|
du as S,
|
|
9092
9107
|
B as V,
|
|
9093
9108
|
so as a,
|
|
9094
|
-
|
|
9095
|
-
|
|
9096
|
-
|
|
9097
|
-
|
|
9098
|
-
|
|
9109
|
+
vu as b,
|
|
9110
|
+
xu as c,
|
|
9111
|
+
ku as d,
|
|
9112
|
+
pr as e,
|
|
9113
|
+
xr as f,
|
|
9114
|
+
Go as g,
|
|
9099
9115
|
pu as h,
|
|
9116
|
+
$r as i,
|
|
9117
|
+
To as j,
|
|
9118
|
+
En as k,
|
|
9119
|
+
Iu as l,
|
|
9100
9120
|
_u as o,
|
|
9101
9121
|
vr as p,
|
|
9102
9122
|
oo as s,
|
|
9103
9123
|
uo as t,
|
|
9104
9124
|
Su as u,
|
|
9105
|
-
Pr as v
|
|
9125
|
+
Pr as v,
|
|
9126
|
+
Oo as z
|
|
9106
9127
|
};
|
|
9107
|
-
//# sourceMappingURL=SyntaxHighlight-
|
|
9128
|
+
//# sourceMappingURL=SyntaxHighlight-DedRjJNr.js.map
|