@epilot/zenith-react 0.1.0-next.0
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/ADOPTING.md +73 -0
- package/README.md +35 -0
- package/delivery.d.ts +2 -0
- package/delivery.js +2 -0
- package/dist/_virtual/index.js +6 -0
- package/dist/_virtual/index.js.map +1 -0
- package/dist/_virtual/index2.js +5 -0
- package/dist/_virtual/index2.js.map +1 -0
- package/dist/_virtual/use-sync-external-store-shim.development.js +5 -0
- package/dist/_virtual/use-sync-external-store-shim.development.js.map +1 -0
- package/dist/_virtual/use-sync-external-store-shim.production.js +5 -0
- package/dist/_virtual/use-sync-external-store-shim.production.js.map +1 -0
- package/dist/components/accordion/accordion.js +168 -0
- package/dist/components/accordion/accordion.js.map +1 -0
- package/dist/components/alert-dialog/alert-dialog.js +274 -0
- package/dist/components/alert-dialog/alert-dialog.js.map +1 -0
- package/dist/components/appearance-boundary/appearance-boundary.js +53 -0
- package/dist/components/appearance-boundary/appearance-boundary.js.map +1 -0
- package/dist/components/avatar/avatar-group.js +142 -0
- package/dist/components/avatar/avatar-group.js.map +1 -0
- package/dist/components/avatar/avatar.js +174 -0
- package/dist/components/avatar/avatar.js.map +1 -0
- package/dist/components/badge/badge.js +143 -0
- package/dist/components/badge/badge.js.map +1 -0
- package/dist/components/breadcrumb/breadcrumb.js +111 -0
- package/dist/components/breadcrumb/breadcrumb.js.map +1 -0
- package/dist/components/button/button.js +221 -0
- package/dist/components/button/button.js.map +1 -0
- package/dist/components/button-group/button-group.js +122 -0
- package/dist/components/button-group/button-group.js.map +1 -0
- package/dist/components/callout/callout.js +313 -0
- package/dist/components/callout/callout.js.map +1 -0
- package/dist/components/card/card.js +171 -0
- package/dist/components/card/card.js.map +1 -0
- package/dist/components/checkbox/checkbox.js +124 -0
- package/dist/components/checkbox/checkbox.js.map +1 -0
- package/dist/components/code-block/code-block.js +422 -0
- package/dist/components/code-block/code-block.js.map +1 -0
- package/dist/components/code-editor/code-editor.js +667 -0
- package/dist/components/code-editor/code-editor.js.map +1 -0
- package/dist/components/code-editor/indent.js +35 -0
- package/dist/components/code-editor/indent.js.map +1 -0
- package/dist/components/collapsible-sidebar/collapsible-sidebar.js +214 -0
- package/dist/components/collapsible-sidebar/collapsible-sidebar.js.map +1 -0
- package/dist/components/command/command.js +376 -0
- package/dist/components/command/command.js.map +1 -0
- package/dist/components/data-table/data-table-body.js +84 -0
- package/dist/components/data-table/data-table-body.js.map +1 -0
- package/dist/components/data-table/data-table-column-header.js +126 -0
- package/dist/components/data-table/data-table-column-header.js.map +1 -0
- package/dist/components/data-table/data-table-column-visibility.js +79 -0
- package/dist/components/data-table/data-table-column-visibility.js.map +1 -0
- package/dist/components/data-table/data-table-content.js +98 -0
- package/dist/components/data-table/data-table-content.js.map +1 -0
- package/dist/components/data-table/data-table-context.js +10 -0
- package/dist/components/data-table/data-table-context.js.map +1 -0
- package/dist/components/data-table/data-table-error.js +82 -0
- package/dist/components/data-table/data-table-error.js.map +1 -0
- package/dist/components/data-table/data-table-header.js +98 -0
- package/dist/components/data-table/data-table-header.js.map +1 -0
- package/dist/components/data-table/data-table-loading.js +37 -0
- package/dist/components/data-table/data-table-loading.js.map +1 -0
- package/dist/components/data-table/data-table-pagination.js +30 -0
- package/dist/components/data-table/data-table-pagination.js.map +1 -0
- package/dist/components/data-table/data-table-pinning-utils.js +25 -0
- package/dist/components/data-table/data-table-pinning-utils.js.map +1 -0
- package/dist/components/data-table/data-table-row.js +161 -0
- package/dist/components/data-table/data-table-row.js.map +1 -0
- package/dist/components/data-table/data-table-toolbar.js +33 -0
- package/dist/components/data-table/data-table-toolbar.js.map +1 -0
- package/dist/components/data-table/data-table.js +271 -0
- package/dist/components/data-table/data-table.js.map +1 -0
- package/dist/components/data-table/get-selected-row-data.js +8 -0
- package/dist/components/data-table/get-selected-row-data.js.map +1 -0
- package/dist/components/data-table/hooks/use-data-table-content.js +9 -0
- package/dist/components/data-table/hooks/use-data-table-content.js.map +1 -0
- package/dist/components/data-table/hooks/use-data-table.js +12 -0
- package/dist/components/data-table/hooks/use-data-table.js.map +1 -0
- package/dist/components/date-range-picker/date-range-picker.js +393 -0
- package/dist/components/date-range-picker/date-range-picker.js.map +1 -0
- package/dist/components/date-range-picker/range-calendar.js +141 -0
- package/dist/components/date-range-picker/range-calendar.js.map +1 -0
- package/dist/components/date-time-picker/calendar.js +636 -0
- package/dist/components/date-time-picker/calendar.js.map +1 -0
- package/dist/components/date-time-picker/date-time-picker-context.js +79 -0
- package/dist/components/date-time-picker/date-time-picker-context.js.map +1 -0
- package/dist/components/date-time-picker/date-time-picker-input.js +228 -0
- package/dist/components/date-time-picker/date-time-picker-input.js.map +1 -0
- package/dist/components/date-time-picker/date-time-picker-panel.js +280 -0
- package/dist/components/date-time-picker/date-time-picker-panel.js.map +1 -0
- package/dist/components/date-time-picker/date-time-picker-popover.js +26 -0
- package/dist/components/date-time-picker/date-time-picker-popover.js.map +1 -0
- package/dist/components/date-time-picker/date-time-picker-utils.js +103 -0
- package/dist/components/date-time-picker/date-time-picker-utils.js.map +1 -0
- package/dist/components/date-time-picker/date-time-picker.js +115 -0
- package/dist/components/date-time-picker/date-time-picker.js.map +1 -0
- package/dist/components/date-time-picker/time-picker.js +275 -0
- package/dist/components/date-time-picker/time-picker.js.map +1 -0
- package/dist/components/density-provider/density-provider.js +32 -0
- package/dist/components/density-provider/density-provider.js.map +1 -0
- package/dist/components/dialog/dialog.js +357 -0
- package/dist/components/dialog/dialog.js.map +1 -0
- package/dist/components/drawer/drawer.js +441 -0
- package/dist/components/drawer/drawer.js.map +1 -0
- package/dist/components/dropdown-menu/dropdown-menu.js +431 -0
- package/dist/components/dropdown-menu/dropdown-menu.js.map +1 -0
- package/dist/components/field/field-combobox.js +474 -0
- package/dist/components/field/field-combobox.js.map +1 -0
- package/dist/components/field/field-select.js +26 -0
- package/dist/components/field/field-select.js.map +1 -0
- package/dist/components/field/field.js +487 -0
- package/dist/components/field/field.js.map +1 -0
- package/dist/components/label/label.js +95 -0
- package/dist/components/label/label.js.map +1 -0
- package/dist/components/list/list.js +746 -0
- package/dist/components/list/list.js.map +1 -0
- package/dist/components/option-card/option-card.js +454 -0
- package/dist/components/option-card/option-card.js.map +1 -0
- package/dist/components/pill/pill.js +161 -0
- package/dist/components/pill/pill.js.map +1 -0
- package/dist/components/popover/popover.js +147 -0
- package/dist/components/popover/popover.js.map +1 -0
- package/dist/components/radio/radio.js +139 -0
- package/dist/components/radio/radio.js.map +1 -0
- package/dist/components/scroll-area/scroll-area.js +199 -0
- package/dist/components/scroll-area/scroll-area.js.map +1 -0
- package/dist/components/scroll-area/scrollbar-styles.js +21 -0
- package/dist/components/scroll-area/scrollbar-styles.js.map +1 -0
- package/dist/components/scroll-overflow/scroll-overflow.js +476 -0
- package/dist/components/scroll-overflow/scroll-overflow.js.map +1 -0
- package/dist/components/segmented-control/segmented-control.js +261 -0
- package/dist/components/segmented-control/segmented-control.js.map +1 -0
- package/dist/components/select/select.js +541 -0
- package/dist/components/select/select.js.map +1 -0
- package/dist/components/separator/separator.js +41 -0
- package/dist/components/separator/separator.js.map +1 -0
- package/dist/components/skeleton/skeleton.js +119 -0
- package/dist/components/skeleton/skeleton.js.map +1 -0
- package/dist/components/slot/compose-as-child.js +21 -0
- package/dist/components/slot/compose-as-child.js.map +1 -0
- package/dist/components/spinner/spinner.js +94 -0
- package/dist/components/spinner/spinner.js.map +1 -0
- package/dist/components/surface/surface.js +44 -0
- package/dist/components/surface/surface.js.map +1 -0
- package/dist/components/switch/switch.js +256 -0
- package/dist/components/switch/switch.js.map +1 -0
- package/dist/components/table/table-pagination.js +446 -0
- package/dist/components/table/table-pagination.js.map +1 -0
- package/dist/components/table/table.js +250 -0
- package/dist/components/table/table.js.map +1 -0
- package/dist/components/tabs/tabs.js +179 -0
- package/dist/components/tabs/tabs.js.map +1 -0
- package/dist/components/text/text.js +89 -0
- package/dist/components/text/text.js.map +1 -0
- package/dist/components/toast/toast.js +266 -0
- package/dist/components/toast/toast.js.map +1 -0
- package/dist/components/toggle/toggle-group.js +47 -0
- package/dist/components/toggle/toggle-group.js.map +1 -0
- package/dist/components/toggle/toggle.js +122 -0
- package/dist/components/toggle/toggle.js.map +1 -0
- package/dist/components/tooltip/tooltip.js +169 -0
- package/dist/components/tooltip/tooltip.js.map +1 -0
- package/dist/delivery/index.d.ts +56 -0
- package/dist/delivery/index.js +12 -0
- package/dist/delivery/index.js.map +1 -0
- package/dist/index.d.ts +9679 -0
- package/dist/index.js +308 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/clear-button.js +51 -0
- package/dist/lib/clear-button.js.map +1 -0
- package/dist/lib/code-highlight.js +113 -0
- package/dist/lib/code-highlight.js.map +1 -0
- package/dist/lib/code-lines.js +65 -0
- package/dist/lib/code-lines.js.map +1 -0
- package/dist/lib/code-tokens.js +126 -0
- package/dist/lib/code-tokens.js.map +1 -0
- package/dist/lib/icons.js +15 -0
- package/dist/lib/icons.js.map +1 -0
- package/dist/lib/pagination.js +46 -0
- package/dist/lib/pagination.js.map +1 -0
- package/dist/packages/tokens/dist/delivery/index.js +54 -0
- package/dist/packages/tokens/dist/delivery/index.js.map +1 -0
- package/dist/packages/tokens/dist/delivery/internal.js +181 -0
- package/dist/packages/tokens/dist/delivery/internal.js.map +1 -0
- package/dist/packages/tokens/dist/generated/core.meta.generated.js +10 -0
- package/dist/packages/tokens/dist/generated/core.meta.generated.js.map +1 -0
- package/dist/packages/tokens/dist/generated/palette.generated.js +8 -0
- package/dist/packages/tokens/dist/generated/palette.generated.js.map +1 -0
- package/dist/packages/tokens/dist/install.js +31 -0
- package/dist/packages/tokens/dist/install.js.map +1 -0
- package/dist/styles/document-context.js +12 -0
- package/dist/styles/document-context.js.map +1 -0
- package/dist/styles/make-styles.js +27 -0
- package/dist/styles/make-styles.js.map +1 -0
- package/dist/styles/text-box.js +7 -0
- package/dist/styles/text-box.js.map +1 -0
- package/dist/token-assets/core/5cd4072decf5df2a664f0b1d5f2ec250a3309101ded3056c1f87c8bbe3738d50.css +22 -0
- package/dist/tokens/core.meta.generated.js +5 -0
- package/dist/tokens/core.meta.generated.js.map +1 -0
- package/dist/tokens/index.d.ts +1107 -0
- package/dist/tokens/index.js +1109 -0
- package/dist/tokens/index.js.map +1 -0
- package/dist/tokens/palette.generated.js +5 -0
- package/dist/tokens/palette.generated.js.map +1 -0
- package/dist/tokens/use-palette-tokens.js +20 -0
- package/dist/tokens/use-palette-tokens.js.map +1 -0
- package/dist/tokens.json +2240 -0
- package/dist/vendor/.bun/@dnd-kit_accessibility@3.1.1_62547eec5a2188e3/vendor/@dnd-kit/accessibility/dist/accessibility.esm.js +57 -0
- package/dist/vendor/.bun/@dnd-kit_accessibility@3.1.1_62547eec5a2188e3/vendor/@dnd-kit/accessibility/dist/accessibility.esm.js.map +1 -0
- package/dist/vendor/.bun/@dnd-kit_core@6.3.1_6f4b9a1cfb20c0ae/vendor/@dnd-kit/core/dist/core.esm.js +2599 -0
- package/dist/vendor/.bun/@dnd-kit_core@6.3.1_6f4b9a1cfb20c0ae/vendor/@dnd-kit/core/dist/core.esm.js.map +1 -0
- package/dist/vendor/.bun/@dnd-kit_sortable@10.0.0_1d291640e1250bbe/vendor/@dnd-kit/sortable/dist/sortable.esm.js +368 -0
- package/dist/vendor/.bun/@dnd-kit_sortable@10.0.0_1d291640e1250bbe/vendor/@dnd-kit/sortable/dist/sortable.esm.js.map +1 -0
- package/dist/vendor/.bun/@dnd-kit_utilities@3.2.2_62547eec5a2188e3/vendor/@dnd-kit/utilities/dist/utilities.esm.js +236 -0
- package/dist/vendor/.bun/@dnd-kit_utilities@3.2.2_62547eec5a2188e3/vendor/@dnd-kit/utilities/dist/utilities.esm.js.map +1 -0
- package/dist/vendor/.bun/@floating-ui_core@1.8.0/vendor/@floating-ui/core/dist/floating-ui.core.js +512 -0
- package/dist/vendor/.bun/@floating-ui_core@1.8.0/vendor/@floating-ui/core/dist/floating-ui.core.js.map +1 -0
- package/dist/vendor/.bun/@floating-ui_dom@1.8.0/vendor/@floating-ui/dom/dist/floating-ui.dom.js +396 -0
- package/dist/vendor/.bun/@floating-ui_dom@1.8.0/vendor/@floating-ui/dom/dist/floating-ui.dom.js.map +1 -0
- package/dist/vendor/.bun/@floating-ui_react-dom@2.1.9_6f4b9a1cfb20c0ae/vendor/@floating-ui/react-dom/dist/floating-ui.react-dom.js +233 -0
- package/dist/vendor/.bun/@floating-ui_react-dom@2.1.9_6f4b9a1cfb20c0ae/vendor/@floating-ui/react-dom/dist/floating-ui.react-dom.js.map +1 -0
- package/dist/vendor/.bun/@floating-ui_utils@0.2.12/vendor/@floating-ui/utils/dist/floating-ui.utils.dom.js +137 -0
- package/dist/vendor/.bun/@floating-ui_utils@0.2.12/vendor/@floating-ui/utils/dist/floating-ui.utils.dom.js.map +1 -0
- package/dist/vendor/.bun/@floating-ui_utils@0.2.12/vendor/@floating-ui/utils/dist/floating-ui.utils.js +129 -0
- package/dist/vendor/.bun/@floating-ui_utils@0.2.12/vendor/@floating-ui/utils/dist/floating-ui.utils.js.map +1 -0
- package/dist/vendor/.bun/@radix-ui_number@1.1.1/vendor/@radix-ui/number/dist/index.js +7 -0
- package/dist/vendor/.bun/@radix-ui_number@1.1.1/vendor/@radix-ui/number/dist/index.js.map +1 -0
- package/dist/vendor/.bun/@radix-ui_primitive@1.1.3/vendor/@radix-ui/primitive/dist/index.js +10 -0
- package/dist/vendor/.bun/@radix-ui_primitive@1.1.3/vendor/@radix-ui/primitive/dist/index.js.map +1 -0
- package/dist/vendor/.bun/@radix-ui_react-accordion@1.2.12_2b23df507bdda662/vendor/@radix-ui/react-accordion/dist/index.js +240 -0
- package/dist/vendor/.bun/@radix-ui_react-accordion@1.2.12_2b23df507bdda662/vendor/@radix-ui/react-accordion/dist/index.js.map +1 -0
- package/dist/vendor/.bun/@radix-ui_react-alert-dialog@1.1.15_2b23df507bdda662/vendor/@radix-ui/react-alert-dialog/dist/index.js +128 -0
- package/dist/vendor/.bun/@radix-ui_react-alert-dialog@1.1.15_2b23df507bdda662/vendor/@radix-ui/react-alert-dialog/dist/index.js.map +1 -0
- package/dist/vendor/.bun/@radix-ui_react-arrow@1.1.7_2b23df507bdda662/vendor/@radix-ui/react-arrow/dist/index.js +25 -0
- package/dist/vendor/.bun/@radix-ui_react-arrow@1.1.7_2b23df507bdda662/vendor/@radix-ui/react-arrow/dist/index.js.map +1 -0
- package/dist/vendor/.bun/@radix-ui_react-avatar@1.1.10_2b23df507bdda662/vendor/@radix-ui/react-avatar/dist/index.js +76 -0
- package/dist/vendor/.bun/@radix-ui_react-avatar@1.1.10_2b23df507bdda662/vendor/@radix-ui/react-avatar/dist/index.js.map +1 -0
- package/dist/vendor/.bun/@radix-ui_react-checkbox@1.3.3_2b23df507bdda662/vendor/@radix-ui/react-checkbox/dist/index.js +252 -0
- package/dist/vendor/.bun/@radix-ui_react-checkbox@1.3.3_2b23df507bdda662/vendor/@radix-ui/react-checkbox/dist/index.js.map +1 -0
- package/dist/vendor/.bun/@radix-ui_react-collapsible@1.1.12_2b23df507bdda662/vendor/@radix-ui/react-collapsible/dist/index.js +121 -0
- package/dist/vendor/.bun/@radix-ui_react-collapsible@1.1.12_2b23df507bdda662/vendor/@radix-ui/react-collapsible/dist/index.js.map +1 -0
- package/dist/vendor/.bun/@radix-ui_react-collection@1.1.7_2b23df507bdda662/vendor/@radix-ui/react-collection/dist/index.js +49 -0
- package/dist/vendor/.bun/@radix-ui_react-collection@1.1.7_2b23df507bdda662/vendor/@radix-ui/react-collection/dist/index.js.map +1 -0
- package/dist/vendor/.bun/@radix-ui_react-compose-refs@1.1.2_0ac650c021fb1b59/vendor/@radix-ui/react-compose-refs/dist/index.js +30 -0
- package/dist/vendor/.bun/@radix-ui_react-compose-refs@1.1.2_0ac650c021fb1b59/vendor/@radix-ui/react-compose-refs/dist/index.js.map +1 -0
- package/dist/vendor/.bun/@radix-ui_react-context@1.1.2_0ac650c021fb1b59/vendor/@radix-ui/react-context/dist/index.js +71 -0
- package/dist/vendor/.bun/@radix-ui_react-context@1.1.2_0ac650c021fb1b59/vendor/@radix-ui/react-context/dist/index.js.map +1 -0
- package/dist/vendor/.bun/@radix-ui_react-dialog@1.1.15_2b23df507bdda662/vendor/@radix-ui/react-dialog/dist/index.js +263 -0
- package/dist/vendor/.bun/@radix-ui_react-dialog@1.1.15_2b23df507bdda662/vendor/@radix-ui/react-dialog/dist/index.js.map +1 -0
- package/dist/vendor/.bun/@radix-ui_react-direction@1.1.1_0ac650c021fb1b59/vendor/@radix-ui/react-direction/dist/index.js +11 -0
- package/dist/vendor/.bun/@radix-ui_react-direction@1.1.1_0ac650c021fb1b59/vendor/@radix-ui/react-direction/dist/index.js.map +1 -0
- package/dist/vendor/.bun/@radix-ui_react-dismissable-layer@1.1.11_2b23df507bdda662/vendor/@radix-ui/react-dismissable-layer/dist/index.js +128 -0
- package/dist/vendor/.bun/@radix-ui_react-dismissable-layer@1.1.11_2b23df507bdda662/vendor/@radix-ui/react-dismissable-layer/dist/index.js.map +1 -0
- package/dist/vendor/.bun/@radix-ui_react-dropdown-menu@2.1.16_2b23df507bdda662/vendor/@radix-ui/react-dropdown-menu/dist/index.js +228 -0
- package/dist/vendor/.bun/@radix-ui_react-dropdown-menu@2.1.16_2b23df507bdda662/vendor/@radix-ui/react-dropdown-menu/dist/index.js.map +1 -0
- package/dist/vendor/.bun/@radix-ui_react-focus-guards@1.1.3_0ac650c021fb1b59/vendor/@radix-ui/react-focus-guards/dist/index.js +18 -0
- package/dist/vendor/.bun/@radix-ui_react-focus-guards@1.1.3_0ac650c021fb1b59/vendor/@radix-ui/react-focus-guards/dist/index.js.map +1 -0
- package/dist/vendor/.bun/@radix-ui_react-focus-scope@1.1.7_2b23df507bdda662/vendor/@radix-ui/react-focus-scope/dist/index.js +138 -0
- package/dist/vendor/.bun/@radix-ui_react-focus-scope@1.1.7_2b23df507bdda662/vendor/@radix-ui/react-focus-scope/dist/index.js.map +1 -0
- package/dist/vendor/.bun/@radix-ui_react-id@1.1.1_0ac650c021fb1b59/vendor/@radix-ui/react-id/dist/index.js +14 -0
- package/dist/vendor/.bun/@radix-ui_react-id@1.1.1_0ac650c021fb1b59/vendor/@radix-ui/react-id/dist/index.js.map +1 -0
- package/dist/vendor/.bun/@radix-ui_react-menu@2.1.16_2b23df507bdda662/vendor/@radix-ui/react-menu/dist/index.js +653 -0
- package/dist/vendor/.bun/@radix-ui_react-menu@2.1.16_2b23df507bdda662/vendor/@radix-ui/react-menu/dist/index.js.map +1 -0
- package/dist/vendor/.bun/@radix-ui_react-popover@1.1.15_2b23df507bdda662/vendor/@radix-ui/react-popover/dist/index.js +244 -0
- package/dist/vendor/.bun/@radix-ui_react-popover@1.1.15_2b23df507bdda662/vendor/@radix-ui/react-popover/dist/index.js.map +1 -0
- package/dist/vendor/.bun/@radix-ui_react-popper@1.2.8_2b23df507bdda662/vendor/@radix-ui/react-popper/dist/index.js +222 -0
- package/dist/vendor/.bun/@radix-ui_react-popper@1.2.8_2b23df507bdda662/vendor/@radix-ui/react-popper/dist/index.js.map +1 -0
- package/dist/vendor/.bun/@radix-ui_react-portal@1.1.9_2b23df507bdda662/vendor/@radix-ui/react-portal/dist/index.js +17 -0
- package/dist/vendor/.bun/@radix-ui_react-portal@1.1.9_2b23df507bdda662/vendor/@radix-ui/react-portal/dist/index.js.map +1 -0
- package/dist/vendor/.bun/@radix-ui_react-presence@1.1.5_2b23df507bdda662/vendor/@radix-ui/react-presence/dist/index.js +72 -0
- package/dist/vendor/.bun/@radix-ui_react-presence@1.1.5_2b23df507bdda662/vendor/@radix-ui/react-presence/dist/index.js.map +1 -0
- package/dist/vendor/.bun/@radix-ui_react-primitive@2.1.3_2b23df507bdda662/vendor/@radix-ui/react-primitive/dist/index.js +37 -0
- package/dist/vendor/.bun/@radix-ui_react-primitive@2.1.3_2b23df507bdda662/vendor/@radix-ui/react-primitive/dist/index.js.map +1 -0
- package/dist/vendor/.bun/@radix-ui_react-radio-group@1.3.8_2b23df507bdda662/vendor/@radix-ui/react-radio-group/dist/index.js +239 -0
- package/dist/vendor/.bun/@radix-ui_react-radio-group@1.3.8_2b23df507bdda662/vendor/@radix-ui/react-radio-group/dist/index.js.map +1 -0
- package/dist/vendor/.bun/@radix-ui_react-roving-focus@1.1.11_2b23df507bdda662/vendor/@radix-ui/react-roving-focus/dist/index.js +184 -0
- package/dist/vendor/.bun/@radix-ui_react-roving-focus@1.1.11_2b23df507bdda662/vendor/@radix-ui/react-roving-focus/dist/index.js.map +1 -0
- package/dist/vendor/.bun/@radix-ui_react-scroll-area@1.2.10_2b23df507bdda662/vendor/@radix-ui/react-scroll-area/dist/index.js +535 -0
- package/dist/vendor/.bun/@radix-ui_react-scroll-area@1.2.10_2b23df507bdda662/vendor/@radix-ui/react-scroll-area/dist/index.js.map +1 -0
- package/dist/vendor/.bun/@radix-ui_react-select@2.2.6_2b23df507bdda662/vendor/@radix-ui/react-select/dist/index.js +863 -0
- package/dist/vendor/.bun/@radix-ui_react-select@2.2.6_2b23df507bdda662/vendor/@radix-ui/react-select/dist/index.js.map +1 -0
- package/dist/vendor/.bun/@radix-ui_react-slot@1.2.3_0ac650c021fb1b59/vendor/@radix-ui/react-slot/dist/index.js +57 -0
- package/dist/vendor/.bun/@radix-ui_react-slot@1.2.3_0ac650c021fb1b59/vendor/@radix-ui/react-slot/dist/index.js.map +1 -0
- package/dist/vendor/.bun/@radix-ui_react-slot@1.2.4_0ac650c021fb1b59/vendor/@radix-ui/react-slot/dist/index.js +63 -0
- package/dist/vendor/.bun/@radix-ui_react-slot@1.2.4_0ac650c021fb1b59/vendor/@radix-ui/react-slot/dist/index.js.map +1 -0
- package/dist/vendor/.bun/@radix-ui_react-switch@1.2.6_2b23df507bdda662/vendor/@radix-ui/react-switch/dist/index.js +133 -0
- package/dist/vendor/.bun/@radix-ui_react-switch@1.2.6_2b23df507bdda662/vendor/@radix-ui/react-switch/dist/index.js.map +1 -0
- package/dist/vendor/.bun/@radix-ui_react-tabs@1.1.13_2b23df507bdda662/vendor/@radix-ui/react-tabs/dist/index.js +164 -0
- package/dist/vendor/.bun/@radix-ui_react-tabs@1.1.13_2b23df507bdda662/vendor/@radix-ui/react-tabs/dist/index.js.map +1 -0
- package/dist/vendor/.bun/@radix-ui_react-toggle-group@1.1.11_2b23df507bdda662/vendor/@radix-ui/react-toggle-group/dist/index.js +138 -0
- package/dist/vendor/.bun/@radix-ui_react-toggle-group@1.1.11_2b23df507bdda662/vendor/@radix-ui/react-toggle-group/dist/index.js.map +1 -0
- package/dist/vendor/.bun/@radix-ui_react-toggle@1.1.10_2b23df507bdda662/vendor/@radix-ui/react-toggle/dist/index.js +34 -0
- package/dist/vendor/.bun/@radix-ui_react-toggle@1.1.10_2b23df507bdda662/vendor/@radix-ui/react-toggle/dist/index.js.map +1 -0
- package/dist/vendor/.bun/@radix-ui_react-tooltip@1.2.8_2b23df507bdda662/vendor/@radix-ui/react-tooltip/dist/index.js +340 -0
- package/dist/vendor/.bun/@radix-ui_react-tooltip@1.2.8_2b23df507bdda662/vendor/@radix-ui/react-tooltip/dist/index.js.map +1 -0
- package/dist/vendor/.bun/@radix-ui_react-use-callback-ref@1.1.1_0ac650c021fb1b59/vendor/@radix-ui/react-use-callback-ref/dist/index.js +14 -0
- package/dist/vendor/.bun/@radix-ui_react-use-callback-ref@1.1.1_0ac650c021fb1b59/vendor/@radix-ui/react-use-callback-ref/dist/index.js.map +1 -0
- package/dist/vendor/.bun/@radix-ui_react-use-controllable-state@1.2.2_0ac650c021fb1b59/vendor/@radix-ui/react-use-controllable-state/dist/index.js +55 -0
- package/dist/vendor/.bun/@radix-ui_react-use-controllable-state@1.2.2_0ac650c021fb1b59/vendor/@radix-ui/react-use-controllable-state/dist/index.js.map +1 -0
- package/dist/vendor/.bun/@radix-ui_react-use-escape-keydown@1.1.1_0ac650c021fb1b59/vendor/@radix-ui/react-use-escape-keydown/dist/index.js +15 -0
- package/dist/vendor/.bun/@radix-ui_react-use-escape-keydown@1.1.1_0ac650c021fb1b59/vendor/@radix-ui/react-use-escape-keydown/dist/index.js.map +1 -0
- package/dist/vendor/.bun/@radix-ui_react-use-is-hydrated@0.1.0_0ac650c021fb1b59/vendor/@radix-ui/react-use-is-hydrated/dist/index.js +16 -0
- package/dist/vendor/.bun/@radix-ui_react-use-is-hydrated@0.1.0_0ac650c021fb1b59/vendor/@radix-ui/react-use-is-hydrated/dist/index.js.map +1 -0
- package/dist/vendor/.bun/@radix-ui_react-use-layout-effect@1.1.1_0ac650c021fb1b59/vendor/@radix-ui/react-use-layout-effect/dist/index.js +7 -0
- package/dist/vendor/.bun/@radix-ui_react-use-layout-effect@1.1.1_0ac650c021fb1b59/vendor/@radix-ui/react-use-layout-effect/dist/index.js.map +1 -0
- package/dist/vendor/.bun/@radix-ui_react-use-previous@1.1.1_0ac650c021fb1b59/vendor/@radix-ui/react-use-previous/dist/index.js +9 -0
- package/dist/vendor/.bun/@radix-ui_react-use-previous@1.1.1_0ac650c021fb1b59/vendor/@radix-ui/react-use-previous/dist/index.js.map +1 -0
- package/dist/vendor/.bun/@radix-ui_react-use-size@1.1.1_0ac650c021fb1b59/vendor/@radix-ui/react-use-size/dist/index.js +28 -0
- package/dist/vendor/.bun/@radix-ui_react-use-size@1.1.1_0ac650c021fb1b59/vendor/@radix-ui/react-use-size/dist/index.js.map +1 -0
- package/dist/vendor/.bun/@radix-ui_react-visually-hidden@1.2.3_2b23df507bdda662/vendor/@radix-ui/react-visually-hidden/dist/index.js +33 -0
- package/dist/vendor/.bun/@radix-ui_react-visually-hidden@1.2.3_2b23df507bdda662/vendor/@radix-ui/react-visually-hidden/dist/index.js.map +1 -0
- package/dist/vendor/.bun/@tanstack_react-table@8.21.3_6f4b9a1cfb20c0ae/vendor/@tanstack/react-table/build/lib/index.js +103 -0
- package/dist/vendor/.bun/@tanstack_react-table@8.21.3_6f4b9a1cfb20c0ae/vendor/@tanstack/react-table/build/lib/index.js.map +1 -0
- package/dist/vendor/.bun/@tanstack_table-core@8.21.3/vendor/@tanstack/table-core/build/lib/index.js +1896 -0
- package/dist/vendor/.bun/@tanstack_table-core@8.21.3/vendor/@tanstack/table-core/build/lib/index.js.map +1 -0
- package/dist/vendor/.bun/aria-hidden@1.2.6/vendor/aria-hidden/dist/es2015/index.js +53 -0
- package/dist/vendor/.bun/aria-hidden@1.2.6/vendor/aria-hidden/dist/es2015/index.js.map +1 -0
- package/dist/vendor/.bun/character-entities-legacy@3.0.0/vendor/character-entities-legacy/index.js +112 -0
- package/dist/vendor/.bun/character-entities-legacy@3.0.0/vendor/character-entities-legacy/index.js.map +1 -0
- package/dist/vendor/.bun/character-entities@2.0.2/vendor/character-entities/index.js +2132 -0
- package/dist/vendor/.bun/character-entities@2.0.2/vendor/character-entities/index.js.map +1 -0
- package/dist/vendor/.bun/character-reference-invalid@2.0.1/vendor/character-reference-invalid/index.js +34 -0
- package/dist/vendor/.bun/character-reference-invalid@2.0.1/vendor/character-reference-invalid/index.js.map +1 -0
- package/dist/vendor/.bun/cmdk@1.1.1_2b23df507bdda662/vendor/cmdk/dist/chunk-NZJY6EH4.js +18 -0
- package/dist/vendor/.bun/cmdk@1.1.1_2b23df507bdda662/vendor/cmdk/dist/chunk-NZJY6EH4.js.map +1 -0
- package/dist/vendor/.bun/cmdk@1.1.1_2b23df507bdda662/vendor/cmdk/dist/index.js +313 -0
- package/dist/vendor/.bun/cmdk@1.1.1_2b23df507bdda662/vendor/cmdk/dist/index.js.map +1 -0
- package/dist/vendor/.bun/comma-separated-tokens@2.0.3/vendor/comma-separated-tokens/index.js +14 -0
- package/dist/vendor/.bun/comma-separated-tokens@2.0.3/vendor/comma-separated-tokens/index.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/_lib/addLeadingZeros.js +8 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/_lib/addLeadingZeros.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/_lib/defaultOptions.js +8 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/_lib/defaultOptions.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/_lib/format/formatters.js +584 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/_lib/format/formatters.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/_lib/format/lightFormatters.js +60 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/_lib/format/lightFormatters.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/_lib/format/longFormatters.js +53 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/_lib/format/longFormatters.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +19 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/_lib/getTimezoneOffsetInMilliseconds.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/_lib/normalizeDates.js +12 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/_lib/normalizeDates.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/_lib/normalizeInterval.js +9 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/_lib/normalizeInterval.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/_lib/protectedTokens.js +21 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/_lib/protectedTokens.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/addDays.js +10 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/addDays.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/addMonths.js +20 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/addMonths.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/constants.js +10 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/constants.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/constructFrom.js +8 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/constructFrom.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/constructNow.js +8 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/constructNow.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/differenceInCalendarDays.js +16 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/differenceInCalendarDays.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/eachDayOfInterval.js +17 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/eachDayOfInterval.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/endOfWeek.js +9 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/endOfWeek.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/format.js +59 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/format.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/getDayOfYear.js +11 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/getDayOfYear.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/getDefaultOptions.js +8 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/getDefaultOptions.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/getISODay.js +9 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/getISODay.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/getISOWeek.js +12 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/getISOWeek.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/getISOWeekYear.js +15 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/getISOWeekYear.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/getWeek.js +12 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/getWeek.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/getWeekYear.js +17 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/getWeekYear.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/isAfter.js +8 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/isAfter.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/isBefore.js +8 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/isBefore.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/isDate.js +7 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/isDate.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/isSameDay.js +14 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/isSameDay.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/isSameMonth.js +13 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/isSameMonth.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/isToday.js +13 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/isToday.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/isValid.js +9 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/isValid.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/locale/_lib/buildFormatLongFn.js +10 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/locale/_lib/buildFormatLongFn.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/locale/_lib/buildLocalizeFn.js +19 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/locale/_lib/buildLocalizeFn.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/locale/_lib/buildMatchFn.js +32 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/locale/_lib/buildMatchFn.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/locale/_lib/buildMatchPatternFn.js +16 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/locale/_lib/buildMatchPatternFn.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/locale/de/_lib/formatDistance.js +164 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/locale/de/_lib/formatDistance.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/locale/de/_lib/formatLong.js +38 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/locale/de/_lib/formatLong.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/locale/de/_lib/formatRelative.js +12 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/locale/de/_lib/formatRelative.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/locale/de/_lib/localize.js +162 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/locale/de/_lib/localize.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/locale/de/_lib/match.js +113 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/locale/de/_lib/match.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/locale/de.js +21 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/locale/de.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/locale/en-US/_lib/formatDistance.js +71 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/locale/en-US/_lib/formatDistance.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/locale/en-US/_lib/formatLong.js +34 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/locale/en-US/_lib/formatLong.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/locale/en-US/_lib/formatRelative.js +12 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/locale/en-US/_lib/formatRelative.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/locale/en-US/_lib/localize.js +156 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/locale/en-US/_lib/localize.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/locale/en-US/_lib/match.js +111 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/locale/en-US/_lib/match.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/locale/en-US.js +21 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/locale/en-US.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/locale/fr/_lib/formatDistance.js +71 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/locale/fr/_lib/formatDistance.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/locale/fr/_lib/formatLong.js +34 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/locale/fr/_lib/formatLong.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/locale/fr/_lib/formatRelative.js +12 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/locale/fr/_lib/formatRelative.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/locale/fr/_lib/localize.js +122 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/locale/fr/_lib/localize.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/locale/fr/_lib/match.js +111 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/locale/fr/_lib/match.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/locale/fr.js +21 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/locale/fr.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/parse/_lib/Parser.js +23 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/parse/_lib/Parser.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/parse/_lib/Setter.js +42 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/parse/_lib/Setter.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/parse/_lib/constants.js +50 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/parse/_lib/constants.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/parse/_lib/parsers/AMPMMidnightParser.js +50 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/parse/_lib/parsers/AMPMMidnightParser.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/parse/_lib/parsers/AMPMParser.js +50 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/parse/_lib/parsers/AMPMParser.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/parse/_lib/parsers/DateParser.js +62 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/parse/_lib/parsers/DateParser.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/parse/_lib/parsers/DayOfYearParser.js +52 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/parse/_lib/parsers/DayOfYearParser.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/parse/_lib/parsers/DayParser.js +50 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/parse/_lib/parsers/DayParser.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/parse/_lib/parsers/DayPeriodParser.js +50 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/parse/_lib/parsers/DayPeriodParser.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/parse/_lib/parsers/EraParser.js +34 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/parse/_lib/parsers/EraParser.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/parse/_lib/parsers/ExtendedYearParser.js +22 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/parse/_lib/parsers/ExtendedYearParser.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/parse/_lib/parsers/FractionOfSecondParser.js +23 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/parse/_lib/parsers/FractionOfSecondParser.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/parse/_lib/parsers/Hour0To11Parser.js +33 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/parse/_lib/parsers/Hour0To11Parser.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/parse/_lib/parsers/Hour0to23Parser.js +33 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/parse/_lib/parsers/Hour0to23Parser.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/parse/_lib/parsers/Hour1To24Parser.js +34 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/parse/_lib/parsers/Hour1To24Parser.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/parse/_lib/parsers/Hour1to12Parser.js +34 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/parse/_lib/parsers/Hour1to12Parser.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/parse/_lib/parsers/ISODayParser.js +106 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/parse/_lib/parsers/ISODayParser.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/parse/_lib/parsers/ISOTimezoneParser.js +49 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/parse/_lib/parsers/ISOTimezoneParser.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.js +49 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/parse/_lib/parsers/ISOWeekParser.js +50 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/parse/_lib/parsers/ISOWeekParser.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/parse/_lib/parsers/ISOWeekYearParser.js +41 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/parse/_lib/parsers/ISOWeekYearParser.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/parse/_lib/parsers/LocalDayParser.js +81 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/parse/_lib/parsers/LocalDayParser.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/parse/_lib/parsers/LocalWeekParser.js +49 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/parse/_lib/parsers/LocalWeekParser.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/parse/_lib/parsers/LocalWeekYearParser.js +70 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/parse/_lib/parsers/LocalWeekYearParser.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/parse/_lib/parsers/MinuteParser.js +33 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/parse/_lib/parsers/MinuteParser.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/parse/_lib/parsers/MonthParser.js +78 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/parse/_lib/parsers/MonthParser.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/parse/_lib/parsers/QuarterParser.js +76 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/parse/_lib/parsers/QuarterParser.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/parse/_lib/parsers/SecondParser.js +33 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/parse/_lib/parsers/SecondParser.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.js +81 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/parse/_lib/parsers/StandAloneMonthParser.js +78 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/parse/_lib/parsers/StandAloneMonthParser.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/parse/_lib/parsers/StandAloneQuarterParser.js +76 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/parse/_lib/parsers/StandAloneQuarterParser.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.js +23 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/parse/_lib/parsers/TimestampSecondsParser.js +23 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/parse/_lib/parsers/TimestampSecondsParser.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/parse/_lib/parsers/YearParser.js +50 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/parse/_lib/parsers/YearParser.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/parse/_lib/parsers.js +68 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/parse/_lib/parsers.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/parse/_lib/utils.js +104 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/parse/_lib/utils.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/parse.js +89 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/parse.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/setDay.js +12 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/setDay.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/setHours.js +9 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/setHours.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/setISODay.js +11 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/setISODay.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/setISOWeek.js +10 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/setISOWeek.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/setMinutes.js +9 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/setMinutes.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/setWeek.js +10 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/setWeek.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/startOfDay.js +9 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/startOfDay.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/startOfISOWeek.js +8 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/startOfISOWeek.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/startOfISOWeekYear.js +11 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/startOfISOWeekYear.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/startOfMonth.js +9 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/startOfMonth.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/startOfWeek.js +11 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/startOfWeek.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/startOfWeekYear.js +13 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/startOfWeekYear.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/startOfYear.js +9 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/startOfYear.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/subMonths.js +8 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/subMonths.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/toDate.js +8 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/toDate.js.map +1 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/transpose.js +18 -0
- package/dist/vendor/.bun/date-fns@4.1.0/vendor/date-fns/transpose.js.map +1 -0
- package/dist/vendor/.bun/decode-named-character-reference@1.3.0/vendor/decode-named-character-reference/index.js +9 -0
- package/dist/vendor/.bun/decode-named-character-reference@1.3.0/vendor/decode-named-character-reference/index.js.map +1 -0
- package/dist/vendor/.bun/get-nonce@1.0.1/vendor/get-nonce/dist/es2015/index.js +8 -0
- package/dist/vendor/.bun/get-nonce@1.0.1/vendor/get-nonce/dist/es2015/index.js.map +1 -0
- package/dist/vendor/.bun/hast-util-parse-selector@4.0.0/vendor/hast-util-parse-selector/lib/index.js +21 -0
- package/dist/vendor/.bun/hast-util-parse-selector@4.0.0/vendor/hast-util-parse-selector/lib/index.js.map +1 -0
- package/dist/vendor/.bun/hastscript@9.0.1/vendor/hastscript/lib/create-h.js +113 -0
- package/dist/vendor/.bun/hastscript@9.0.1/vendor/hastscript/lib/create-h.js.map +1 -0
- package/dist/vendor/.bun/hastscript@9.0.1/vendor/hastscript/lib/index.js +9 -0
- package/dist/vendor/.bun/hastscript@9.0.1/vendor/hastscript/lib/index.js.map +1 -0
- package/dist/vendor/.bun/hastscript@9.0.1/vendor/hastscript/lib/svg-case-sensitive-tag-names.js +45 -0
- package/dist/vendor/.bun/hastscript@9.0.1/vendor/hastscript/lib/svg-case-sensitive-tag-names.js.map +1 -0
- package/dist/vendor/.bun/is-alphabetical@2.0.1/vendor/is-alphabetical/index.js +8 -0
- package/dist/vendor/.bun/is-alphabetical@2.0.1/vendor/is-alphabetical/index.js.map +1 -0
- package/dist/vendor/.bun/is-alphanumerical@2.0.1/vendor/is-alphanumerical/index.js +9 -0
- package/dist/vendor/.bun/is-alphanumerical@2.0.1/vendor/is-alphanumerical/index.js.map +1 -0
- package/dist/vendor/.bun/is-decimal@2.0.1/vendor/is-decimal/index.js +8 -0
- package/dist/vendor/.bun/is-decimal@2.0.1/vendor/is-decimal/index.js.map +1 -0
- package/dist/vendor/.bun/is-hexadecimal@2.0.1/vendor/is-hexadecimal/index.js +8 -0
- package/dist/vendor/.bun/is-hexadecimal@2.0.1/vendor/is-hexadecimal/index.js.map +1 -0
- package/dist/vendor/.bun/parse-entities@4.0.2/vendor/parse-entities/lib/index.js +136 -0
- package/dist/vendor/.bun/parse-entities@4.0.2/vendor/parse-entities/lib/index.js.map +1 -0
- package/dist/vendor/.bun/property-information@7.2.0/vendor/property-information/index.js +13 -0
- package/dist/vendor/.bun/property-information@7.2.0/vendor/property-information/index.js.map +1 -0
- package/dist/vendor/.bun/property-information@7.2.0/vendor/property-information/lib/aria.js +62 -0
- package/dist/vendor/.bun/property-information@7.2.0/vendor/property-information/lib/aria.js.map +1 -0
- package/dist/vendor/.bun/property-information@7.2.0/vendor/property-information/lib/find.js +34 -0
- package/dist/vendor/.bun/property-information@7.2.0/vendor/property-information/lib/find.js.map +1 -0
- package/dist/vendor/.bun/property-information@7.2.0/vendor/property-information/lib/html.js +379 -0
- package/dist/vendor/.bun/property-information@7.2.0/vendor/property-information/lib/html.js.map +1 -0
- package/dist/vendor/.bun/property-information@7.2.0/vendor/property-information/lib/normalize.js +7 -0
- package/dist/vendor/.bun/property-information@7.2.0/vendor/property-information/lib/normalize.js.map +1 -0
- package/dist/vendor/.bun/property-information@7.2.0/vendor/property-information/lib/svg.js +569 -0
- package/dist/vendor/.bun/property-information@7.2.0/vendor/property-information/lib/svg.js.map +1 -0
- package/dist/vendor/.bun/property-information@7.2.0/vendor/property-information/lib/util/case-insensitive-transform.js +8 -0
- package/dist/vendor/.bun/property-information@7.2.0/vendor/property-information/lib/util/case-insensitive-transform.js.map +1 -0
- package/dist/vendor/.bun/property-information@7.2.0/vendor/property-information/lib/util/case-sensitive-transform.js +7 -0
- package/dist/vendor/.bun/property-information@7.2.0/vendor/property-information/lib/util/case-sensitive-transform.js.map +1 -0
- package/dist/vendor/.bun/property-information@7.2.0/vendor/property-information/lib/util/create.js +20 -0
- package/dist/vendor/.bun/property-information@7.2.0/vendor/property-information/lib/util/create.js.map +1 -0
- package/dist/vendor/.bun/property-information@7.2.0/vendor/property-information/lib/util/defined-info.js +37 -0
- package/dist/vendor/.bun/property-information@7.2.0/vendor/property-information/lib/util/defined-info.js.map +1 -0
- package/dist/vendor/.bun/property-information@7.2.0/vendor/property-information/lib/util/info.js +29 -0
- package/dist/vendor/.bun/property-information@7.2.0/vendor/property-information/lib/util/info.js.map +1 -0
- package/dist/vendor/.bun/property-information@7.2.0/vendor/property-information/lib/util/merge.js +11 -0
- package/dist/vendor/.bun/property-information@7.2.0/vendor/property-information/lib/util/merge.js.map +1 -0
- package/dist/vendor/.bun/property-information@7.2.0/vendor/property-information/lib/util/schema.js +22 -0
- package/dist/vendor/.bun/property-information@7.2.0/vendor/property-information/lib/util/schema.js.map +1 -0
- package/dist/vendor/.bun/property-information@7.2.0/vendor/property-information/lib/util/types.js +15 -0
- package/dist/vendor/.bun/property-information@7.2.0/vendor/property-information/lib/util/types.js.map +1 -0
- package/dist/vendor/.bun/property-information@7.2.0/vendor/property-information/lib/xlink.js +20 -0
- package/dist/vendor/.bun/property-information@7.2.0/vendor/property-information/lib/xlink.js.map +1 -0
- package/dist/vendor/.bun/property-information@7.2.0/vendor/property-information/lib/xml.js +12 -0
- package/dist/vendor/.bun/property-information@7.2.0/vendor/property-information/lib/xml.js.map +1 -0
- package/dist/vendor/.bun/property-information@7.2.0/vendor/property-information/lib/xmlns.js +12 -0
- package/dist/vendor/.bun/property-information@7.2.0/vendor/property-information/lib/xmlns.js.map +1 -0
- package/dist/vendor/.bun/react-remove-scroll-bar@2.3.8_0ac650c021fb1b59/vendor/react-remove-scroll-bar/dist/es2015/component.js +72 -0
- package/dist/vendor/.bun/react-remove-scroll-bar@2.3.8_0ac650c021fb1b59/vendor/react-remove-scroll-bar/dist/es2015/component.js.map +1 -0
- package/dist/vendor/.bun/react-remove-scroll-bar@2.3.8_0ac650c021fb1b59/vendor/react-remove-scroll-bar/dist/es2015/constants.js +8 -0
- package/dist/vendor/.bun/react-remove-scroll-bar@2.3.8_0ac650c021fb1b59/vendor/react-remove-scroll-bar/dist/es2015/constants.js.map +1 -0
- package/dist/vendor/.bun/react-remove-scroll-bar@2.3.8_0ac650c021fb1b59/vendor/react-remove-scroll-bar/dist/es2015/utils.js +26 -0
- package/dist/vendor/.bun/react-remove-scroll-bar@2.3.8_0ac650c021fb1b59/vendor/react-remove-scroll-bar/dist/es2015/utils.js.map +1 -0
- package/dist/vendor/.bun/react-remove-scroll@2.7.2_0ac650c021fb1b59/vendor/react-remove-scroll/dist/es2015/Combination.js +12 -0
- package/dist/vendor/.bun/react-remove-scroll@2.7.2_0ac650c021fb1b59/vendor/react-remove-scroll/dist/es2015/Combination.js.map +1 -0
- package/dist/vendor/.bun/react-remove-scroll@2.7.2_0ac650c021fb1b59/vendor/react-remove-scroll/dist/es2015/SideEffect.js +116 -0
- package/dist/vendor/.bun/react-remove-scroll@2.7.2_0ac650c021fb1b59/vendor/react-remove-scroll/dist/es2015/SideEffect.js.map +1 -0
- package/dist/vendor/.bun/react-remove-scroll@2.7.2_0ac650c021fb1b59/vendor/react-remove-scroll/dist/es2015/UI.js +32 -0
- package/dist/vendor/.bun/react-remove-scroll@2.7.2_0ac650c021fb1b59/vendor/react-remove-scroll/dist/es2015/UI.js.map +1 -0
- package/dist/vendor/.bun/react-remove-scroll@2.7.2_0ac650c021fb1b59/vendor/react-remove-scroll/dist/es2015/aggresiveCapture.js +17 -0
- package/dist/vendor/.bun/react-remove-scroll@2.7.2_0ac650c021fb1b59/vendor/react-remove-scroll/dist/es2015/aggresiveCapture.js.map +1 -0
- package/dist/vendor/.bun/react-remove-scroll@2.7.2_0ac650c021fb1b59/vendor/react-remove-scroll/dist/es2015/handleScroll.js +69 -0
- package/dist/vendor/.bun/react-remove-scroll@2.7.2_0ac650c021fb1b59/vendor/react-remove-scroll/dist/es2015/handleScroll.js.map +1 -0
- package/dist/vendor/.bun/react-remove-scroll@2.7.2_0ac650c021fb1b59/vendor/react-remove-scroll/dist/es2015/medium.js +6 -0
- package/dist/vendor/.bun/react-remove-scroll@2.7.2_0ac650c021fb1b59/vendor/react-remove-scroll/dist/es2015/medium.js.map +1 -0
- package/dist/vendor/.bun/react-remove-scroll@2.7.2_0ac650c021fb1b59/vendor/react-remove-scroll/dist/es2015/sidecar.js +8 -0
- package/dist/vendor/.bun/react-remove-scroll@2.7.2_0ac650c021fb1b59/vendor/react-remove-scroll/dist/es2015/sidecar.js.map +1 -0
- package/dist/vendor/.bun/react-style-singleton@2.2.3_0ac650c021fb1b59/vendor/react-style-singleton/dist/es2015/component.js +12 -0
- package/dist/vendor/.bun/react-style-singleton@2.2.3_0ac650c021fb1b59/vendor/react-style-singleton/dist/es2015/component.js.map +1 -0
- package/dist/vendor/.bun/react-style-singleton@2.2.3_0ac650c021fb1b59/vendor/react-style-singleton/dist/es2015/hook.js +16 -0
- package/dist/vendor/.bun/react-style-singleton@2.2.3_0ac650c021fb1b59/vendor/react-style-singleton/dist/es2015/hook.js.map +1 -0
- package/dist/vendor/.bun/react-style-singleton@2.2.3_0ac650c021fb1b59/vendor/react-style-singleton/dist/es2015/singleton.js +31 -0
- package/dist/vendor/.bun/react-style-singleton@2.2.3_0ac650c021fb1b59/vendor/react-style-singleton/dist/es2015/singleton.js.map +1 -0
- package/dist/vendor/.bun/refractor@5.0.0/vendor/refractor/lang/bash.js +227 -0
- package/dist/vendor/.bun/refractor@5.0.0/vendor/refractor/lang/bash.js.map +1 -0
- package/dist/vendor/.bun/refractor@5.0.0/vendor/refractor/lang/clike.js +39 -0
- package/dist/vendor/.bun/refractor@5.0.0/vendor/refractor/lang/clike.js.map +1 -0
- package/dist/vendor/.bun/refractor@5.0.0/vendor/refractor/lang/css.js +70 -0
- package/dist/vendor/.bun/refractor@5.0.0/vendor/refractor/lang/css.js.map +1 -0
- package/dist/vendor/.bun/refractor@5.0.0/vendor/refractor/lang/javascript.js +140 -0
- package/dist/vendor/.bun/refractor@5.0.0/vendor/refractor/lang/javascript.js.map +1 -0
- package/dist/vendor/.bun/refractor@5.0.0/vendor/refractor/lang/json.js +32 -0
- package/dist/vendor/.bun/refractor@5.0.0/vendor/refractor/lang/json.js.map +1 -0
- package/dist/vendor/.bun/refractor@5.0.0/vendor/refractor/lang/jsx.js +76 -0
- package/dist/vendor/.bun/refractor@5.0.0/vendor/refractor/lang/jsx.js.map +1 -0
- package/dist/vendor/.bun/refractor@5.0.0/vendor/refractor/lang/markdown.js +310 -0
- package/dist/vendor/.bun/refractor@5.0.0/vendor/refractor/lang/markdown.js.map +1 -0
- package/dist/vendor/.bun/refractor@5.0.0/vendor/refractor/lang/markup.js +175 -0
- package/dist/vendor/.bun/refractor@5.0.0/vendor/refractor/lang/markup.js.map +1 -0
- package/dist/vendor/.bun/refractor@5.0.0/vendor/refractor/lang/tsx.js +19 -0
- package/dist/vendor/.bun/refractor@5.0.0/vendor/refractor/lang/tsx.js.map +1 -0
- package/dist/vendor/.bun/refractor@5.0.0/vendor/refractor/lang/typescript.js +54 -0
- package/dist/vendor/.bun/refractor@5.0.0/vendor/refractor/lang/typescript.js.map +1 -0
- package/dist/vendor/.bun/refractor@5.0.0/vendor/refractor/lang/yaml.js +89 -0
- package/dist/vendor/.bun/refractor@5.0.0/vendor/refractor/lang/yaml.js.map +1 -0
- package/dist/vendor/.bun/refractor@5.0.0/vendor/refractor/lib/core.js +108 -0
- package/dist/vendor/.bun/refractor@5.0.0/vendor/refractor/lib/core.js.map +1 -0
- package/dist/vendor/.bun/refractor@5.0.0/vendor/refractor/lib/prism-core.js +431 -0
- package/dist/vendor/.bun/refractor@5.0.0/vendor/refractor/lib/prism-core.js.map +1 -0
- package/dist/vendor/.bun/rifm@0.12.1_62547eec5a2188e3/vendor/rifm/dist/rifm.esm.js +87 -0
- package/dist/vendor/.bun/rifm@0.12.1_62547eec5a2188e3/vendor/rifm/dist/rifm.esm.js.map +1 -0
- package/dist/vendor/.bun/sonner@2.0.7_6f4b9a1cfb20c0ae/vendor/sonner/dist/index.js +747 -0
- package/dist/vendor/.bun/sonner@2.0.7_6f4b9a1cfb20c0ae/vendor/sonner/dist/index.js.map +1 -0
- package/dist/vendor/.bun/space-separated-tokens@2.0.2/vendor/space-separated-tokens/index.js +8 -0
- package/dist/vendor/.bun/space-separated-tokens@2.0.2/vendor/space-separated-tokens/index.js.map +1 -0
- package/dist/vendor/.bun/tslib@2.8.1/vendor/tslib/tslib.es6.js +28 -0
- package/dist/vendor/.bun/tslib@2.8.1/vendor/tslib/tslib.es6.js.map +1 -0
- package/dist/vendor/.bun/use-callback-ref@1.3.3_0ac650c021fb1b59/vendor/use-callback-ref/dist/es2015/assignRef.js +7 -0
- package/dist/vendor/.bun/use-callback-ref@1.3.3_0ac650c021fb1b59/vendor/use-callback-ref/dist/es2015/assignRef.js.map +1 -0
- package/dist/vendor/.bun/use-callback-ref@1.3.3_0ac650c021fb1b59/vendor/use-callback-ref/dist/es2015/useMergeRef.js +27 -0
- package/dist/vendor/.bun/use-callback-ref@1.3.3_0ac650c021fb1b59/vendor/use-callback-ref/dist/es2015/useMergeRef.js.map +1 -0
- package/dist/vendor/.bun/use-callback-ref@1.3.3_0ac650c021fb1b59/vendor/use-callback-ref/dist/es2015/useRef.js +26 -0
- package/dist/vendor/.bun/use-callback-ref@1.3.3_0ac650c021fb1b59/vendor/use-callback-ref/dist/es2015/useRef.js.map +1 -0
- package/dist/vendor/.bun/use-sidecar@1.1.3_0ac650c021fb1b59/vendor/use-sidecar/dist/es2015/exports.js +19 -0
- package/dist/vendor/.bun/use-sidecar@1.1.3_0ac650c021fb1b59/vendor/use-sidecar/dist/es2015/exports.js.map +1 -0
- package/dist/vendor/.bun/use-sidecar@1.1.3_0ac650c021fb1b59/vendor/use-sidecar/dist/es2015/medium.js +68 -0
- package/dist/vendor/.bun/use-sidecar@1.1.3_0ac650c021fb1b59/vendor/use-sidecar/dist/es2015/medium.js.map +1 -0
- package/dist/vendor/.bun/use-sync-external-store@1.7.0_62547eec5a2188e3/vendor/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +68 -0
- package/dist/vendor/.bun/use-sync-external-store@1.7.0_62547eec5a2188e3/vendor/use-sync-external-store/cjs/use-sync-external-store-shim.development.js.map +1 -0
- package/dist/vendor/.bun/use-sync-external-store@1.7.0_62547eec5a2188e3/vendor/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +56 -0
- package/dist/vendor/.bun/use-sync-external-store@1.7.0_62547eec5a2188e3/vendor/use-sync-external-store/cjs/use-sync-external-store-shim.production.js.map +1 -0
- package/dist/vendor/.bun/use-sync-external-store@1.7.0_62547eec5a2188e3/vendor/use-sync-external-store/shim/index.js +11 -0
- package/dist/vendor/.bun/use-sync-external-store@1.7.0_62547eec5a2188e3/vendor/use-sync-external-store/shim/index.js.map +1 -0
- package/package.json +139 -0
- package/scripts/migration-diagnostics-core.mjs +991 -0
- package/scripts/migration-diagnostics.mjs +427 -0
- package/scripts/migration-sweep.mjs +205 -0
- package/testing/jest-preset.cjs +64 -0
- package/tokens.d.ts +3 -0
- package/tokens.js +13 -0
|
@@ -0,0 +1,431 @@
|
|
|
1
|
+
var R = 0, D = {}, v = {
|
|
2
|
+
/**
|
|
3
|
+
* A namespace for utility methods.
|
|
4
|
+
*
|
|
5
|
+
* All function in this namespace that are not explicitly marked as _public_ are for __internal use only__ and may
|
|
6
|
+
* change or disappear at any time.
|
|
7
|
+
*
|
|
8
|
+
* @namespace
|
|
9
|
+
* @memberof Prism
|
|
10
|
+
*/
|
|
11
|
+
util: {
|
|
12
|
+
/**
|
|
13
|
+
* Returns the name of the type of the given value.
|
|
14
|
+
*
|
|
15
|
+
* @param {any} o
|
|
16
|
+
* @returns {string}
|
|
17
|
+
* @example
|
|
18
|
+
* type(null) === 'Null'
|
|
19
|
+
* type(undefined) === 'Undefined'
|
|
20
|
+
* type(123) === 'Number'
|
|
21
|
+
* type('foo') === 'String'
|
|
22
|
+
* type(true) === 'Boolean'
|
|
23
|
+
* type([1, 2]) === 'Array'
|
|
24
|
+
* type({}) === 'Object'
|
|
25
|
+
* type(String) === 'Function'
|
|
26
|
+
* type(/abc+/) === 'RegExp'
|
|
27
|
+
*/
|
|
28
|
+
type: function(l) {
|
|
29
|
+
return Object.prototype.toString.call(l).slice(8, -1);
|
|
30
|
+
},
|
|
31
|
+
/**
|
|
32
|
+
* Returns a unique number for the given object. Later calls will still return the same number.
|
|
33
|
+
*
|
|
34
|
+
* @param {Object} obj
|
|
35
|
+
* @returns {number}
|
|
36
|
+
*/
|
|
37
|
+
objId: function(l) {
|
|
38
|
+
return l.__id || Object.defineProperty(l, "__id", { value: ++R }), l.__id;
|
|
39
|
+
},
|
|
40
|
+
/**
|
|
41
|
+
* Creates a deep clone of the given object.
|
|
42
|
+
*
|
|
43
|
+
* The main intended use of this function is to clone language definitions.
|
|
44
|
+
*
|
|
45
|
+
* @param {T} o
|
|
46
|
+
* @param {Record<number, any>} [visited]
|
|
47
|
+
* @returns {T}
|
|
48
|
+
* @template T
|
|
49
|
+
*/
|
|
50
|
+
clone: function l(n, a) {
|
|
51
|
+
a = a || {};
|
|
52
|
+
var r, u;
|
|
53
|
+
switch (v.util.type(n)) {
|
|
54
|
+
case "Object":
|
|
55
|
+
if (u = v.util.objId(n), a[u])
|
|
56
|
+
return a[u];
|
|
57
|
+
r = /** @type {Record<string, any>} */
|
|
58
|
+
{}, a[u] = r;
|
|
59
|
+
for (var i in n)
|
|
60
|
+
n.hasOwnProperty(i) && (r[i] = l(n[i], a));
|
|
61
|
+
return (
|
|
62
|
+
/** @type {any} */
|
|
63
|
+
r
|
|
64
|
+
);
|
|
65
|
+
case "Array":
|
|
66
|
+
return u = v.util.objId(n), a[u] ? a[u] : (r = [], a[u] = r, /** @type {any} */
|
|
67
|
+
n.forEach(
|
|
68
|
+
function(f, e) {
|
|
69
|
+
r[e] = l(f, a);
|
|
70
|
+
}
|
|
71
|
+
), /** @type {any} */
|
|
72
|
+
r);
|
|
73
|
+
default:
|
|
74
|
+
return n;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
/**
|
|
79
|
+
* This namespace contains all currently loaded languages and the some helper functions to create and modify languages.
|
|
80
|
+
*
|
|
81
|
+
* @namespace
|
|
82
|
+
* @memberof Prism
|
|
83
|
+
* @public
|
|
84
|
+
*/
|
|
85
|
+
languages: {
|
|
86
|
+
/**
|
|
87
|
+
* The grammar for plain, unformatted text.
|
|
88
|
+
*/
|
|
89
|
+
plain: D,
|
|
90
|
+
plaintext: D,
|
|
91
|
+
text: D,
|
|
92
|
+
txt: D,
|
|
93
|
+
/**
|
|
94
|
+
* Creates a deep copy of the language with the given id and appends the given tokens.
|
|
95
|
+
*
|
|
96
|
+
* If a token in `redef` also appears in the copied language, then the existing token in the copied language
|
|
97
|
+
* will be overwritten at its original position.
|
|
98
|
+
*
|
|
99
|
+
* ## Best practices
|
|
100
|
+
*
|
|
101
|
+
* Since the position of overwriting tokens (token in `redef` that overwrite tokens in the copied language)
|
|
102
|
+
* doesn't matter, they can technically be in any order. However, this can be confusing to others that trying to
|
|
103
|
+
* understand the language definition because, normally, the order of tokens matters in Prism grammars.
|
|
104
|
+
*
|
|
105
|
+
* Therefore, it is encouraged to order overwriting tokens according to the positions of the overwritten tokens.
|
|
106
|
+
* Furthermore, all non-overwriting tokens should be placed after the overwriting ones.
|
|
107
|
+
*
|
|
108
|
+
* @param {string} id The id of the language to extend. This has to be a key in `Prism.languages`.
|
|
109
|
+
* @param {Grammar} redef The new tokens to append.
|
|
110
|
+
* @returns {Grammar} The new language created.
|
|
111
|
+
* @public
|
|
112
|
+
* @example
|
|
113
|
+
* Prism.languages['css-with-colors'] = Prism.languages.extend('css', {
|
|
114
|
+
* // Prism.languages.css already has a 'comment' token, so this token will overwrite CSS' 'comment' token
|
|
115
|
+
* // at its original position
|
|
116
|
+
* 'comment': { ... },
|
|
117
|
+
* // CSS doesn't have a 'color' token, so this token will be appended
|
|
118
|
+
* 'color': /\b(?:red|green|blue)\b/
|
|
119
|
+
* });
|
|
120
|
+
*/
|
|
121
|
+
extend: function(l, n) {
|
|
122
|
+
var a = v.util.clone(v.languages[l]);
|
|
123
|
+
for (var r in n)
|
|
124
|
+
a[r] = n[r];
|
|
125
|
+
return a;
|
|
126
|
+
},
|
|
127
|
+
/**
|
|
128
|
+
* Inserts tokens _before_ another token in a language definition or any other grammar.
|
|
129
|
+
*
|
|
130
|
+
* ## Usage
|
|
131
|
+
*
|
|
132
|
+
* This helper method makes it easy to modify existing languages. For example, the CSS language definition
|
|
133
|
+
* not only defines CSS highlighting for CSS documents, but also needs to define highlighting for CSS embedded
|
|
134
|
+
* in HTML through `<style>` elements. To do this, it needs to modify `Prism.languages.markup` and add the
|
|
135
|
+
* appropriate tokens. However, `Prism.languages.markup` is a regular JavaScript object literal, so if you do
|
|
136
|
+
* this:
|
|
137
|
+
*
|
|
138
|
+
* ```js
|
|
139
|
+
* Prism.languages.markup.style = {
|
|
140
|
+
* // token
|
|
141
|
+
* };
|
|
142
|
+
* ```
|
|
143
|
+
*
|
|
144
|
+
* then the `style` token will be added (and processed) at the end. `insertBefore` allows you to insert tokens
|
|
145
|
+
* before existing tokens. For the CSS example above, you would use it like this:
|
|
146
|
+
*
|
|
147
|
+
* ```js
|
|
148
|
+
* Prism.languages.insertBefore('markup', 'cdata', {
|
|
149
|
+
* 'style': {
|
|
150
|
+
* // token
|
|
151
|
+
* }
|
|
152
|
+
* });
|
|
153
|
+
* ```
|
|
154
|
+
*
|
|
155
|
+
* ## Special cases
|
|
156
|
+
*
|
|
157
|
+
* If the grammars of `inside` and `insert` have tokens with the same name, the tokens in `inside`'s grammar
|
|
158
|
+
* will be ignored.
|
|
159
|
+
*
|
|
160
|
+
* This behavior can be used to insert tokens after `before`:
|
|
161
|
+
*
|
|
162
|
+
* ```js
|
|
163
|
+
* Prism.languages.insertBefore('markup', 'comment', {
|
|
164
|
+
* 'comment': Prism.languages.markup.comment,
|
|
165
|
+
* // tokens after 'comment'
|
|
166
|
+
* });
|
|
167
|
+
* ```
|
|
168
|
+
*
|
|
169
|
+
* ## Limitations
|
|
170
|
+
*
|
|
171
|
+
* The main problem `insertBefore` has to solve is iteration order. Since ES2015, the iteration order for object
|
|
172
|
+
* properties is guaranteed to be the insertion order (except for integer keys) but some browsers behave
|
|
173
|
+
* differently when keys are deleted and re-inserted. So `insertBefore` can't be implemented by temporarily
|
|
174
|
+
* deleting properties which is necessary to insert at arbitrary positions.
|
|
175
|
+
*
|
|
176
|
+
* To solve this problem, `insertBefore` doesn't actually insert the given tokens into the target object.
|
|
177
|
+
* Instead, it will create a new object and replace all references to the target object with the new one. This
|
|
178
|
+
* can be done without temporarily deleting properties, so the iteration order is well-defined.
|
|
179
|
+
*
|
|
180
|
+
* However, only references that can be reached from `Prism.languages` or `insert` will be replaced. I.e. if
|
|
181
|
+
* you hold the target object in a variable, then the value of the variable will not change.
|
|
182
|
+
*
|
|
183
|
+
* ```js
|
|
184
|
+
* var oldMarkup = Prism.languages.markup;
|
|
185
|
+
* var newMarkup = Prism.languages.insertBefore('markup', 'comment', { ... });
|
|
186
|
+
*
|
|
187
|
+
* assert(oldMarkup !== Prism.languages.markup);
|
|
188
|
+
* assert(newMarkup === Prism.languages.markup);
|
|
189
|
+
* ```
|
|
190
|
+
*
|
|
191
|
+
* @param {string} inside The property of `root` (e.g. a language id in `Prism.languages`) that contains the
|
|
192
|
+
* object to be modified.
|
|
193
|
+
* @param {string} before The key to insert before.
|
|
194
|
+
* @param {Grammar} insert An object containing the key-value pairs to be inserted.
|
|
195
|
+
* @param {Object<string, any>} [root] The object containing `inside`, i.e. the object that contains the
|
|
196
|
+
* object to be modified.
|
|
197
|
+
*
|
|
198
|
+
* Defaults to `Prism.languages`.
|
|
199
|
+
* @returns {Grammar} The new grammar object.
|
|
200
|
+
* @public
|
|
201
|
+
*/
|
|
202
|
+
insertBefore: function(l, n, a, r) {
|
|
203
|
+
r = r || /** @type {any} */
|
|
204
|
+
v.languages;
|
|
205
|
+
var u = r[l], i = {};
|
|
206
|
+
for (var f in u)
|
|
207
|
+
if (u.hasOwnProperty(f)) {
|
|
208
|
+
if (f == n)
|
|
209
|
+
for (var e in a)
|
|
210
|
+
a.hasOwnProperty(e) && (i[e] = a[e]);
|
|
211
|
+
a.hasOwnProperty(f) || (i[f] = u[f]);
|
|
212
|
+
}
|
|
213
|
+
var x = r[l];
|
|
214
|
+
return r[l] = i, v.languages.DFS(v.languages, function(h, o) {
|
|
215
|
+
o === x && h != l && (this[h] = i);
|
|
216
|
+
}), i;
|
|
217
|
+
},
|
|
218
|
+
// Traverse a language definition with Depth First Search
|
|
219
|
+
DFS: function l(n, a, r, u) {
|
|
220
|
+
u = u || {};
|
|
221
|
+
var i = v.util.objId;
|
|
222
|
+
for (var f in n)
|
|
223
|
+
if (n.hasOwnProperty(f)) {
|
|
224
|
+
a.call(n, f, n[f], r || f);
|
|
225
|
+
var e = n[f], x = v.util.type(e);
|
|
226
|
+
x === "Object" && !u[i(e)] ? (u[i(e)] = !0, l(e, a, null, u)) : x === "Array" && !u[i(e)] && (u[i(e)] = !0, l(e, a, f, u));
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
},
|
|
230
|
+
plugins: {},
|
|
231
|
+
/**
|
|
232
|
+
* Low-level function, only use if you know what you’re doing. It accepts a string of text as input
|
|
233
|
+
* and the language definitions to use, and returns a string with the HTML produced.
|
|
234
|
+
*
|
|
235
|
+
* The following hooks will be run:
|
|
236
|
+
* 1. `before-tokenize`
|
|
237
|
+
* 2. `after-tokenize`
|
|
238
|
+
* 3. `wrap`: On each {@link Token}.
|
|
239
|
+
*
|
|
240
|
+
* @param {string} text A string with the code to be highlighted.
|
|
241
|
+
* @param {Grammar} grammar An object containing the tokens to use.
|
|
242
|
+
*
|
|
243
|
+
* Usually a language definition like `Prism.languages.markup`.
|
|
244
|
+
* @param {string} language The name of the language definition passed to `grammar`.
|
|
245
|
+
* @returns {string} The highlighted HTML.
|
|
246
|
+
* @memberof Prism
|
|
247
|
+
* @public
|
|
248
|
+
* @example
|
|
249
|
+
* Prism.highlight('var foo = true;', Prism.languages.javascript, 'javascript');
|
|
250
|
+
*/
|
|
251
|
+
highlight: function(l, n, a) {
|
|
252
|
+
var r = {
|
|
253
|
+
code: l,
|
|
254
|
+
grammar: n,
|
|
255
|
+
language: a
|
|
256
|
+
};
|
|
257
|
+
if (v.hooks.run("before-tokenize", r), !r.grammar)
|
|
258
|
+
throw new Error('The language "' + r.language + '" has no grammar.');
|
|
259
|
+
return r.tokens = v.tokenize(r.code, r.grammar), v.hooks.run("after-tokenize", r), P.stringify(v.util.encode(r.tokens), r.language);
|
|
260
|
+
},
|
|
261
|
+
/**
|
|
262
|
+
* This is the heart of Prism, and the most low-level function you can use. It accepts a string of text as input
|
|
263
|
+
* and the language definitions to use, and returns an array with the tokenized code.
|
|
264
|
+
*
|
|
265
|
+
* When the language definition includes nested tokens, the function is called recursively on each of these tokens.
|
|
266
|
+
*
|
|
267
|
+
* This method could be useful in other contexts as well, as a very crude parser.
|
|
268
|
+
*
|
|
269
|
+
* @param {string} text A string with the code to be highlighted.
|
|
270
|
+
* @param {Grammar} grammar An object containing the tokens to use.
|
|
271
|
+
*
|
|
272
|
+
* Usually a language definition like `Prism.languages.markup`.
|
|
273
|
+
* @returns {TokenStream} An array of strings and tokens, a token stream.
|
|
274
|
+
* @memberof Prism
|
|
275
|
+
* @public
|
|
276
|
+
* @example
|
|
277
|
+
* let code = `var foo = 0;`;
|
|
278
|
+
* let tokens = Prism.tokenize(code, Prism.languages.javascript);
|
|
279
|
+
* tokens.forEach(token => {
|
|
280
|
+
* if (token instanceof Prism.Token && token.type === 'number') {
|
|
281
|
+
* console.log(`Found numeric literal: ${token.content}`);
|
|
282
|
+
* }
|
|
283
|
+
* });
|
|
284
|
+
*/
|
|
285
|
+
tokenize: function(l, n) {
|
|
286
|
+
var a = n.rest;
|
|
287
|
+
if (a) {
|
|
288
|
+
for (var r in a)
|
|
289
|
+
n[r] = a[r];
|
|
290
|
+
delete n.rest;
|
|
291
|
+
}
|
|
292
|
+
var u = new U();
|
|
293
|
+
return E(u, u.head, l), H(l, u, n, u.head, 0), W(u);
|
|
294
|
+
},
|
|
295
|
+
/**
|
|
296
|
+
* @namespace
|
|
297
|
+
* @memberof Prism
|
|
298
|
+
* @public
|
|
299
|
+
*/
|
|
300
|
+
hooks: {
|
|
301
|
+
all: {},
|
|
302
|
+
/**
|
|
303
|
+
* Adds the given callback to the list of callbacks for the given hook.
|
|
304
|
+
*
|
|
305
|
+
* The callback will be invoked when the hook it is registered for is run.
|
|
306
|
+
* Hooks are usually directly run by a highlight function but you can also run hooks yourself.
|
|
307
|
+
*
|
|
308
|
+
* One callback function can be registered to multiple hooks and the same hook multiple times.
|
|
309
|
+
*
|
|
310
|
+
* @param {string} name The name of the hook.
|
|
311
|
+
* @param {HookCallback} callback The callback function which is given environment variables.
|
|
312
|
+
* @public
|
|
313
|
+
*/
|
|
314
|
+
add: function(l, n) {
|
|
315
|
+
var a = v.hooks.all;
|
|
316
|
+
a[l] = a[l] || [], a[l].push(n);
|
|
317
|
+
},
|
|
318
|
+
/**
|
|
319
|
+
* Runs a hook invoking all registered callbacks with the given environment variables.
|
|
320
|
+
*
|
|
321
|
+
* Callbacks will be invoked synchronously and in the order in which they were registered.
|
|
322
|
+
*
|
|
323
|
+
* @param {string} name The name of the hook.
|
|
324
|
+
* @param {Object<string, any>} env The environment variables of the hook passed to all callbacks registered.
|
|
325
|
+
* @public
|
|
326
|
+
*/
|
|
327
|
+
run: function(l, n) {
|
|
328
|
+
var a = v.hooks.all[l];
|
|
329
|
+
if (!(!a || !a.length))
|
|
330
|
+
for (var r = 0, u; u = a[r++]; )
|
|
331
|
+
u(n);
|
|
332
|
+
}
|
|
333
|
+
},
|
|
334
|
+
Token: P
|
|
335
|
+
};
|
|
336
|
+
function P(l, n, a, r) {
|
|
337
|
+
this.type = l, this.content = n, this.alias = a, this.length = (r || "").length | 0;
|
|
338
|
+
}
|
|
339
|
+
function F(l, n, a, r) {
|
|
340
|
+
l.lastIndex = n;
|
|
341
|
+
var u = l.exec(a);
|
|
342
|
+
if (u && r && u[1]) {
|
|
343
|
+
var i = u[1].length;
|
|
344
|
+
u.index += i, u[0] = u[0].slice(i);
|
|
345
|
+
}
|
|
346
|
+
return u;
|
|
347
|
+
}
|
|
348
|
+
function H(l, n, a, r, u, i) {
|
|
349
|
+
for (var f in a)
|
|
350
|
+
if (!(!a.hasOwnProperty(f) || !a[f])) {
|
|
351
|
+
var e = a[f];
|
|
352
|
+
e = Array.isArray(e) ? e : [e];
|
|
353
|
+
for (var x = 0; x < e.length; ++x) {
|
|
354
|
+
if (i && i.cause == f + "," + x)
|
|
355
|
+
return;
|
|
356
|
+
var h = e[x], o = h.inside, B = !!h.lookbehind, O = !!h.greedy, J = h.alias;
|
|
357
|
+
if (O && !h.pattern.global) {
|
|
358
|
+
var K = h.pattern.toString().match(/[imsuy]*$/)[0];
|
|
359
|
+
h.pattern = RegExp(h.pattern.source, K + "g");
|
|
360
|
+
}
|
|
361
|
+
for (var T = h.pattern || h, g = r.next, c = u; g !== n.tail && !(i && c >= i.reach); c += g.value.length, g = g.next) {
|
|
362
|
+
var s = g.value;
|
|
363
|
+
if (n.length > l.length)
|
|
364
|
+
return;
|
|
365
|
+
if (!(s instanceof P)) {
|
|
366
|
+
var I = 1, t;
|
|
367
|
+
if (O) {
|
|
368
|
+
if (t = F(T, c, l, B), !t || t.index >= l.length)
|
|
369
|
+
break;
|
|
370
|
+
var _ = t.index, M = t.index + t[0].length, w = c;
|
|
371
|
+
for (w += g.value.length; _ >= w; )
|
|
372
|
+
g = g.next, w += g.value.length;
|
|
373
|
+
if (w -= g.value.length, c = w, g.value instanceof P)
|
|
374
|
+
continue;
|
|
375
|
+
for (var y = g; y !== n.tail && (w < M || typeof y.value == "string"); y = y.next)
|
|
376
|
+
I++, w += y.value.length;
|
|
377
|
+
I--, s = l.slice(c, w), t.index -= c;
|
|
378
|
+
} else if (t = F(T, 0, s, B), !t)
|
|
379
|
+
continue;
|
|
380
|
+
var _ = t.index, A = t[0], G = s.slice(0, _), $ = s.slice(_ + A.length), S = c + s.length;
|
|
381
|
+
i && S > i.reach && (i.reach = S);
|
|
382
|
+
var z = g.prev;
|
|
383
|
+
G && (z = E(n, z, G), c += G.length), V(n, z, I);
|
|
384
|
+
var Q = new P(
|
|
385
|
+
f,
|
|
386
|
+
o ? v.tokenize(A, o) : A,
|
|
387
|
+
J,
|
|
388
|
+
A
|
|
389
|
+
);
|
|
390
|
+
if (g = E(n, z, Q), $ && E(n, g, $), I > 1) {
|
|
391
|
+
var q = {
|
|
392
|
+
cause: f + "," + x,
|
|
393
|
+
reach: S
|
|
394
|
+
};
|
|
395
|
+
H(
|
|
396
|
+
l,
|
|
397
|
+
n,
|
|
398
|
+
a,
|
|
399
|
+
g.prev,
|
|
400
|
+
c,
|
|
401
|
+
q
|
|
402
|
+
), i && q.reach > i.reach && (i.reach = q.reach);
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
function U() {
|
|
410
|
+
var l = { value: null, prev: null, next: null }, n = { value: null, prev: l, next: null };
|
|
411
|
+
l.next = n, this.head = l, this.tail = n, this.length = 0;
|
|
412
|
+
}
|
|
413
|
+
function E(l, n, a) {
|
|
414
|
+
var r = n.next, u = { value: a, prev: n, next: r };
|
|
415
|
+
return n.next = u, r.prev = u, l.length++, u;
|
|
416
|
+
}
|
|
417
|
+
function V(l, n, a) {
|
|
418
|
+
for (var r = n.next, u = 0; u < a && r !== l.tail; u++)
|
|
419
|
+
r = r.next;
|
|
420
|
+
n.next = r, r.prev = n, l.length -= u;
|
|
421
|
+
}
|
|
422
|
+
function W(l) {
|
|
423
|
+
for (var n = [], a = l.head.next; a !== l.tail; )
|
|
424
|
+
n.push(a.value), a = a.next;
|
|
425
|
+
return n;
|
|
426
|
+
}
|
|
427
|
+
const X = v;
|
|
428
|
+
export {
|
|
429
|
+
X as Prism
|
|
430
|
+
};
|
|
431
|
+
//# sourceMappingURL=prism-core.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prism-core.js","sources":["../../../../../../../../../node_modules/.bun/refractor@5.0.0/node_modules/refractor/lib/prism-core.js"],"sourcesContent":["// @ts-nocheck\n\n// This is a slimmed down version of `prism-core.js`, to remove globals,\n// document, workers, `util.encode`, `Token.stringify`\n\n// Private helper vars\nvar lang = /(?:^|\\s)lang(?:uage)?-([\\w-]+)(?=\\s|$)/i\nvar uniqueId = 0\n\n// The grammar object for plaintext\nvar plainTextGrammar = {}\n\nvar _ = {\n /**\n * A namespace for utility methods.\n *\n * All function in this namespace that are not explicitly marked as _public_ are for __internal use only__ and may\n * change or disappear at any time.\n *\n * @namespace\n * @memberof Prism\n */\n util: {\n /**\n * Returns the name of the type of the given value.\n *\n * @param {any} o\n * @returns {string}\n * @example\n * type(null) === 'Null'\n * type(undefined) === 'Undefined'\n * type(123) === 'Number'\n * type('foo') === 'String'\n * type(true) === 'Boolean'\n * type([1, 2]) === 'Array'\n * type({}) === 'Object'\n * type(String) === 'Function'\n * type(/abc+/) === 'RegExp'\n */\n type: function (o) {\n return Object.prototype.toString.call(o).slice(8, -1)\n },\n\n /**\n * Returns a unique number for the given object. Later calls will still return the same number.\n *\n * @param {Object} obj\n * @returns {number}\n */\n objId: function (obj) {\n if (!obj['__id']) {\n Object.defineProperty(obj, '__id', {value: ++uniqueId})\n }\n return obj['__id']\n },\n\n /**\n * Creates a deep clone of the given object.\n *\n * The main intended use of this function is to clone language definitions.\n *\n * @param {T} o\n * @param {Record<number, any>} [visited]\n * @returns {T}\n * @template T\n */\n clone: function deepClone(o, visited) {\n visited = visited || {}\n\n var clone\n var id\n switch (_.util.type(o)) {\n case 'Object':\n id = _.util.objId(o)\n if (visited[id]) {\n return visited[id]\n }\n clone = /** @type {Record<string, any>} */ ({})\n visited[id] = clone\n\n for (var key in o) {\n if (o.hasOwnProperty(key)) {\n clone[key] = deepClone(o[key], visited)\n }\n }\n\n return /** @type {any} */ (clone)\n\n case 'Array':\n id = _.util.objId(o)\n if (visited[id]) {\n return visited[id]\n }\n clone = []\n visited[id] = clone\n\n ;/** @type {Array} */ (/** @type {any} */ (o)).forEach(\n function (v, i) {\n clone[i] = deepClone(v, visited)\n }\n )\n\n return /** @type {any} */ (clone)\n\n default:\n return o\n }\n }\n },\n\n /**\n * This namespace contains all currently loaded languages and the some helper functions to create and modify languages.\n *\n * @namespace\n * @memberof Prism\n * @public\n */\n languages: {\n /**\n * The grammar for plain, unformatted text.\n */\n plain: plainTextGrammar,\n plaintext: plainTextGrammar,\n text: plainTextGrammar,\n txt: plainTextGrammar,\n\n /**\n * Creates a deep copy of the language with the given id and appends the given tokens.\n *\n * If a token in `redef` also appears in the copied language, then the existing token in the copied language\n * will be overwritten at its original position.\n *\n * ## Best practices\n *\n * Since the position of overwriting tokens (token in `redef` that overwrite tokens in the copied language)\n * doesn't matter, they can technically be in any order. However, this can be confusing to others that trying to\n * understand the language definition because, normally, the order of tokens matters in Prism grammars.\n *\n * Therefore, it is encouraged to order overwriting tokens according to the positions of the overwritten tokens.\n * Furthermore, all non-overwriting tokens should be placed after the overwriting ones.\n *\n * @param {string} id The id of the language to extend. This has to be a key in `Prism.languages`.\n * @param {Grammar} redef The new tokens to append.\n * @returns {Grammar} The new language created.\n * @public\n * @example\n * Prism.languages['css-with-colors'] = Prism.languages.extend('css', {\n * // Prism.languages.css already has a 'comment' token, so this token will overwrite CSS' 'comment' token\n * // at its original position\n * 'comment': { ... },\n * // CSS doesn't have a 'color' token, so this token will be appended\n * 'color': /\\b(?:red|green|blue)\\b/\n * });\n */\n extend: function (id, redef) {\n var lang = _.util.clone(_.languages[id])\n\n for (var key in redef) {\n lang[key] = redef[key]\n }\n\n return lang\n },\n\n /**\n * Inserts tokens _before_ another token in a language definition or any other grammar.\n *\n * ## Usage\n *\n * This helper method makes it easy to modify existing languages. For example, the CSS language definition\n * not only defines CSS highlighting for CSS documents, but also needs to define highlighting for CSS embedded\n * in HTML through `<style>` elements. To do this, it needs to modify `Prism.languages.markup` and add the\n * appropriate tokens. However, `Prism.languages.markup` is a regular JavaScript object literal, so if you do\n * this:\n *\n * ```js\n * Prism.languages.markup.style = {\n * // token\n * };\n * ```\n *\n * then the `style` token will be added (and processed) at the end. `insertBefore` allows you to insert tokens\n * before existing tokens. For the CSS example above, you would use it like this:\n *\n * ```js\n * Prism.languages.insertBefore('markup', 'cdata', {\n * 'style': {\n * // token\n * }\n * });\n * ```\n *\n * ## Special cases\n *\n * If the grammars of `inside` and `insert` have tokens with the same name, the tokens in `inside`'s grammar\n * will be ignored.\n *\n * This behavior can be used to insert tokens after `before`:\n *\n * ```js\n * Prism.languages.insertBefore('markup', 'comment', {\n * 'comment': Prism.languages.markup.comment,\n * // tokens after 'comment'\n * });\n * ```\n *\n * ## Limitations\n *\n * The main problem `insertBefore` has to solve is iteration order. Since ES2015, the iteration order for object\n * properties is guaranteed to be the insertion order (except for integer keys) but some browsers behave\n * differently when keys are deleted and re-inserted. So `insertBefore` can't be implemented by temporarily\n * deleting properties which is necessary to insert at arbitrary positions.\n *\n * To solve this problem, `insertBefore` doesn't actually insert the given tokens into the target object.\n * Instead, it will create a new object and replace all references to the target object with the new one. This\n * can be done without temporarily deleting properties, so the iteration order is well-defined.\n *\n * However, only references that can be reached from `Prism.languages` or `insert` will be replaced. I.e. if\n * you hold the target object in a variable, then the value of the variable will not change.\n *\n * ```js\n * var oldMarkup = Prism.languages.markup;\n * var newMarkup = Prism.languages.insertBefore('markup', 'comment', { ... });\n *\n * assert(oldMarkup !== Prism.languages.markup);\n * assert(newMarkup === Prism.languages.markup);\n * ```\n *\n * @param {string} inside The property of `root` (e.g. a language id in `Prism.languages`) that contains the\n * object to be modified.\n * @param {string} before The key to insert before.\n * @param {Grammar} insert An object containing the key-value pairs to be inserted.\n * @param {Object<string, any>} [root] The object containing `inside`, i.e. the object that contains the\n * object to be modified.\n *\n * Defaults to `Prism.languages`.\n * @returns {Grammar} The new grammar object.\n * @public\n */\n insertBefore: function (inside, before, insert, root) {\n root = root || /** @type {any} */ (_.languages)\n var grammar = root[inside]\n /** @type {Grammar} */\n var ret = {}\n\n for (var token in grammar) {\n if (grammar.hasOwnProperty(token)) {\n if (token == before) {\n for (var newToken in insert) {\n if (insert.hasOwnProperty(newToken)) {\n ret[newToken] = insert[newToken]\n }\n }\n }\n\n // Do not insert token which also occur in insert. See #1525\n if (!insert.hasOwnProperty(token)) {\n ret[token] = grammar[token]\n }\n }\n }\n\n var old = root[inside]\n root[inside] = ret\n\n // Update references in other language definitions\n _.languages.DFS(_.languages, function (key, value) {\n if (value === old && key != inside) {\n this[key] = ret\n }\n })\n\n return ret\n },\n\n // Traverse a language definition with Depth First Search\n DFS: function DFS(o, callback, type, visited) {\n visited = visited || {}\n\n var objId = _.util.objId\n\n for (var i in o) {\n if (o.hasOwnProperty(i)) {\n callback.call(o, i, o[i], type || i)\n\n var property = o[i]\n var propertyType = _.util.type(property)\n\n if (propertyType === 'Object' && !visited[objId(property)]) {\n visited[objId(property)] = true\n DFS(property, callback, null, visited)\n } else if (propertyType === 'Array' && !visited[objId(property)]) {\n visited[objId(property)] = true\n DFS(property, callback, i, visited)\n }\n }\n }\n }\n },\n\n plugins: {},\n\n /**\n * Low-level function, only use if you know what you’re doing. It accepts a string of text as input\n * and the language definitions to use, and returns a string with the HTML produced.\n *\n * The following hooks will be run:\n * 1. `before-tokenize`\n * 2. `after-tokenize`\n * 3. `wrap`: On each {@link Token}.\n *\n * @param {string} text A string with the code to be highlighted.\n * @param {Grammar} grammar An object containing the tokens to use.\n *\n * Usually a language definition like `Prism.languages.markup`.\n * @param {string} language The name of the language definition passed to `grammar`.\n * @returns {string} The highlighted HTML.\n * @memberof Prism\n * @public\n * @example\n * Prism.highlight('var foo = true;', Prism.languages.javascript, 'javascript');\n */\n highlight: function (text, grammar, language) {\n var env = {\n code: text,\n grammar: grammar,\n language: language\n }\n _.hooks.run('before-tokenize', env)\n if (!env.grammar) {\n throw new Error('The language \"' + env.language + '\" has no grammar.')\n }\n env.tokens = _.tokenize(env.code, env.grammar)\n _.hooks.run('after-tokenize', env)\n return Token.stringify(_.util.encode(env.tokens), env.language)\n },\n\n /**\n * This is the heart of Prism, and the most low-level function you can use. It accepts a string of text as input\n * and the language definitions to use, and returns an array with the tokenized code.\n *\n * When the language definition includes nested tokens, the function is called recursively on each of these tokens.\n *\n * This method could be useful in other contexts as well, as a very crude parser.\n *\n * @param {string} text A string with the code to be highlighted.\n * @param {Grammar} grammar An object containing the tokens to use.\n *\n * Usually a language definition like `Prism.languages.markup`.\n * @returns {TokenStream} An array of strings and tokens, a token stream.\n * @memberof Prism\n * @public\n * @example\n * let code = `var foo = 0;`;\n * let tokens = Prism.tokenize(code, Prism.languages.javascript);\n * tokens.forEach(token => {\n * if (token instanceof Prism.Token && token.type === 'number') {\n * console.log(`Found numeric literal: ${token.content}`);\n * }\n * });\n */\n tokenize: function (text, grammar) {\n var rest = grammar.rest\n if (rest) {\n for (var token in rest) {\n grammar[token] = rest[token]\n }\n\n delete grammar.rest\n }\n\n var tokenList = new LinkedList()\n addAfter(tokenList, tokenList.head, text)\n\n matchGrammar(text, tokenList, grammar, tokenList.head, 0)\n\n return toArray(tokenList)\n },\n\n /**\n * @namespace\n * @memberof Prism\n * @public\n */\n hooks: {\n all: {},\n\n /**\n * Adds the given callback to the list of callbacks for the given hook.\n *\n * The callback will be invoked when the hook it is registered for is run.\n * Hooks are usually directly run by a highlight function but you can also run hooks yourself.\n *\n * One callback function can be registered to multiple hooks and the same hook multiple times.\n *\n * @param {string} name The name of the hook.\n * @param {HookCallback} callback The callback function which is given environment variables.\n * @public\n */\n add: function (name, callback) {\n var hooks = _.hooks.all\n\n hooks[name] = hooks[name] || []\n\n hooks[name].push(callback)\n },\n\n /**\n * Runs a hook invoking all registered callbacks with the given environment variables.\n *\n * Callbacks will be invoked synchronously and in the order in which they were registered.\n *\n * @param {string} name The name of the hook.\n * @param {Object<string, any>} env The environment variables of the hook passed to all callbacks registered.\n * @public\n */\n run: function (name, env) {\n var callbacks = _.hooks.all[name]\n\n if (!callbacks || !callbacks.length) {\n return\n }\n\n for (var i = 0, callback; (callback = callbacks[i++]); ) {\n callback(env)\n }\n }\n },\n\n Token: Token\n}\n\n// Typescript note:\n// The following can be used to import the Token type in JSDoc:\n//\n// @typedef {InstanceType<import(\"./prism-core\")[\"Token\"]>} Token\n\n/**\n * Creates a new token.\n *\n * @param {string} type See {@link Token#type type}\n * @param {string | TokenStream} content See {@link Token#content content}\n * @param {string|string[]} [alias] The alias(es) of the token.\n * @param {string} [matchedStr=\"\"] A copy of the full string this token was created from.\n * @class\n * @global\n * @public\n */\nfunction Token(type, content, alias, matchedStr) {\n /**\n * The type of the token.\n *\n * This is usually the key of a pattern in a {@link Grammar}.\n *\n * @type {string}\n * @see GrammarToken\n * @public\n */\n this.type = type\n /**\n * The strings or tokens contained by this token.\n *\n * This will be a token stream if the pattern matched also defined an `inside` grammar.\n *\n * @type {string | TokenStream}\n * @public\n */\n this.content = content\n /**\n * The alias(es) of the token.\n *\n * @type {string|string[]}\n * @see GrammarToken\n * @public\n */\n this.alias = alias\n // Copy of the full string this token was created from\n this.length = (matchedStr || '').length | 0\n}\n\n/**\n * A token stream is an array of strings and {@link Token Token} objects.\n *\n * Token streams have to fulfill a few properties that are assumed by most functions (mostly internal ones) that process\n * them.\n *\n * 1. No adjacent strings.\n * 2. No empty strings.\n *\n * The only exception here is the token stream that only contains the empty string and nothing else.\n *\n * @typedef {Array<string | Token>} TokenStream\n * @global\n * @public\n */\n\n/**\n * @param {RegExp} pattern\n * @param {number} pos\n * @param {string} text\n * @param {boolean} lookbehind\n * @returns {RegExpExecArray | null}\n */\nfunction matchPattern(pattern, pos, text, lookbehind) {\n pattern.lastIndex = pos\n var match = pattern.exec(text)\n if (match && lookbehind && match[1]) {\n // change the match to remove the text matched by the Prism lookbehind group\n var lookbehindLength = match[1].length\n match.index += lookbehindLength\n match[0] = match[0].slice(lookbehindLength)\n }\n return match\n}\n\n/**\n * @param {string} text\n * @param {LinkedList<string | Token>} tokenList\n * @param {any} grammar\n * @param {LinkedListNode<string | Token>} startNode\n * @param {number} startPos\n * @param {RematchOptions} [rematch]\n * @returns {void}\n * @private\n *\n * @typedef RematchOptions\n * @property {string} cause\n * @property {number} reach\n */\nfunction matchGrammar(text, tokenList, grammar, startNode, startPos, rematch) {\n for (var token in grammar) {\n if (!grammar.hasOwnProperty(token) || !grammar[token]) {\n continue\n }\n\n var patterns = grammar[token]\n patterns = Array.isArray(patterns) ? patterns : [patterns]\n\n for (var j = 0; j < patterns.length; ++j) {\n if (rematch && rematch.cause == token + ',' + j) {\n return\n }\n\n var patternObj = patterns[j]\n var inside = patternObj.inside\n var lookbehind = !!patternObj.lookbehind\n var greedy = !!patternObj.greedy\n var alias = patternObj.alias\n\n if (greedy && !patternObj.pattern.global) {\n // Without the global flag, lastIndex won't work\n var flags = patternObj.pattern.toString().match(/[imsuy]*$/)[0]\n patternObj.pattern = RegExp(patternObj.pattern.source, flags + 'g')\n }\n\n /** @type {RegExp} */\n var pattern = patternObj.pattern || patternObj\n\n for (\n // iterate the token list and keep track of the current token/string position\n var currentNode = startNode.next, pos = startPos;\n currentNode !== tokenList.tail;\n pos += currentNode.value.length, currentNode = currentNode.next\n ) {\n if (rematch && pos >= rematch.reach) {\n break\n }\n\n var str = currentNode.value\n\n if (tokenList.length > text.length) {\n // Something went terribly wrong, ABORT, ABORT!\n return\n }\n\n if (str instanceof Token) {\n continue\n }\n\n var removeCount = 1 // this is the to parameter of removeBetween\n var match\n\n if (greedy) {\n match = matchPattern(pattern, pos, text, lookbehind)\n if (!match || match.index >= text.length) {\n break\n }\n\n var from = match.index\n var to = match.index + match[0].length\n var p = pos\n\n // find the node that contains the match\n p += currentNode.value.length\n while (from >= p) {\n currentNode = currentNode.next\n p += currentNode.value.length\n }\n // adjust pos (and p)\n p -= currentNode.value.length\n pos = p\n\n // the current node is a Token, then the match starts inside another Token, which is invalid\n if (currentNode.value instanceof Token) {\n continue\n }\n\n // find the last node which is affected by this match\n for (\n var k = currentNode;\n k !== tokenList.tail && (p < to || typeof k.value === 'string');\n k = k.next\n ) {\n removeCount++\n p += k.value.length\n }\n removeCount--\n\n // replace with the new match\n str = text.slice(pos, p)\n match.index -= pos\n } else {\n match = matchPattern(pattern, 0, str, lookbehind)\n if (!match) {\n continue\n }\n }\n\n // eslint-disable-next-line no-redeclare\n var from = match.index\n var matchStr = match[0]\n var before = str.slice(0, from)\n var after = str.slice(from + matchStr.length)\n\n var reach = pos + str.length\n if (rematch && reach > rematch.reach) {\n rematch.reach = reach\n }\n\n var removeFrom = currentNode.prev\n\n if (before) {\n removeFrom = addAfter(tokenList, removeFrom, before)\n pos += before.length\n }\n\n removeRange(tokenList, removeFrom, removeCount)\n\n var wrapped = new Token(\n token,\n inside ? _.tokenize(matchStr, inside) : matchStr,\n alias,\n matchStr\n )\n currentNode = addAfter(tokenList, removeFrom, wrapped)\n\n if (after) {\n addAfter(tokenList, currentNode, after)\n }\n\n if (removeCount > 1) {\n // at least one Token object was removed, so we have to do some rematching\n // this can only happen if the current pattern is greedy\n\n /** @type {RematchOptions} */\n var nestedRematch = {\n cause: token + ',' + j,\n reach: reach\n }\n matchGrammar(\n text,\n tokenList,\n grammar,\n currentNode.prev,\n pos,\n nestedRematch\n )\n\n // the reach might have been extended because of the rematching\n if (rematch && nestedRematch.reach > rematch.reach) {\n rematch.reach = nestedRematch.reach\n }\n }\n }\n }\n }\n}\n\n/**\n * @typedef LinkedListNode\n * @property {T} value\n * @property {LinkedListNode<T> | null} prev The previous node.\n * @property {LinkedListNode<T> | null} next The next node.\n * @template T\n * @private\n */\n\n/**\n * @template T\n * @private\n */\nfunction LinkedList() {\n /** @type {LinkedListNode<T>} */\n var head = {value: null, prev: null, next: null}\n /** @type {LinkedListNode<T>} */\n var tail = {value: null, prev: head, next: null}\n head.next = tail\n\n /** @type {LinkedListNode<T>} */\n this.head = head\n /** @type {LinkedListNode<T>} */\n this.tail = tail\n this.length = 0\n}\n\n/**\n * Adds a new node with the given value to the list.\n *\n * @param {LinkedList<T>} list\n * @param {LinkedListNode<T>} node\n * @param {T} value\n * @returns {LinkedListNode<T>} The added node.\n * @template T\n */\nfunction addAfter(list, node, value) {\n // assumes that node != list.tail && values.length >= 0\n var next = node.next\n\n var newNode = {value: value, prev: node, next: next}\n node.next = newNode\n next.prev = newNode\n list.length++\n\n return newNode\n}\n/**\n * Removes `count` nodes after the given node. The given node will not be removed.\n *\n * @param {LinkedList<T>} list\n * @param {LinkedListNode<T>} node\n * @param {number} count\n * @template T\n */\nfunction removeRange(list, node, count) {\n var next = node.next\n for (var i = 0; i < count && next !== list.tail; i++) {\n next = next.next\n }\n node.next = next\n next.prev = node\n list.length -= i\n}\n/**\n * @param {LinkedList<T>} list\n * @returns {T[]}\n * @template T\n */\nfunction toArray(list) {\n var array = []\n var node = list.head.next\n while (node !== list.tail) {\n array.push(node.value)\n node = node.next\n }\n return array\n}\n\nexport const Prism = _\n"],"names":["uniqueId","plainTextGrammar","_","o","obj","deepClone","visited","clone","id","key","v","i","redef","lang","inside","before","insert","root","grammar","ret","token","newToken","old","value","DFS","callback","type","objId","property","propertyType","text","language","env","Token","rest","tokenList","LinkedList","addAfter","matchGrammar","toArray","name","hooks","callbacks","content","alias","matchedStr","matchPattern","pattern","pos","lookbehind","match","lookbehindLength","startNode","startPos","rematch","patterns","j","patternObj","greedy","flags","currentNode","str","removeCount","from","to","p","k","matchStr","after","reach","removeFrom","removeRange","wrapped","nestedRematch","head","tail","list","node","next","newNode","count","array","Prism"],"mappings":"AAOA,IAAIA,IAAW,GAGXC,IAAmB,CAAA,GAEnBC,IAAI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAA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M,MAAMD,GAAM,MAAM,KAAI;AAC/C,EAAAA,EAAK,OAAOC,GAGZ,KAAK,OAAOD,GAEZ,KAAK,OAAOC,GACZ,KAAK,SAAS;AAChB;AAWA,SAAStC,EAASuC,GAAMC,GAAMtD,GAAO;AAEnC,MAAIuD,IAAOD,EAAK,MAEZE,IAAU,EAAC,OAAOxD,GAAO,MAAMsD,GAAM,MAAMC,EAAI;AACnD,SAAAD,EAAK,OAAOE,GACZD,EAAK,OAAOC,GACZH,EAAK,UAEEG;AACT;AASA,SAASR,EAAYK,GAAMC,GAAMG,GAAO;AAEtC,WADIF,IAAOD,EAAK,MACPlE,IAAI,GAAGA,IAAIqE,KAASF,MAASF,EAAK,MAAMjE;AAC/C,IAAAmE,IAAOA,EAAK;AAEd,EAAAD,EAAK,OAAOC,GACZA,EAAK,OAAOD,GACZD,EAAK,UAAUjE;AACjB;AAMA,SAAS4B,EAAQqC,GAAM;AAGrB,WAFIK,IAAQ,CAAA,GACRJ,IAAOD,EAAK,KAAK,MACdC,MAASD,EAAK;AACnB,IAAAK,EAAM,KAAKJ,EAAK,KAAK,GACrBA,IAAOA,EAAK;AAEd,SAAOI;AACT;AAEY,MAACC,IAAQhF;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { useReducer as N, useRef as V, useLayoutEffect as x, useEffect as R } from "react";
|
|
2
|
+
const A = (r) => {
|
|
3
|
+
const [, E] = N((e) => e + 1, 0), l = V(null), {
|
|
4
|
+
replace: i,
|
|
5
|
+
append: g
|
|
6
|
+
} = r, f = i ? i(r.format(r.value)) : r.format(r.value), m = V(!1), k = (e) => {
|
|
7
|
+
if (process.env.NODE_ENV !== "production") {
|
|
8
|
+
if (e.target.type === "number") {
|
|
9
|
+
console.error("Rifm does not support input type=number, use type=tel instead.");
|
|
10
|
+
return;
|
|
11
|
+
}
|
|
12
|
+
if (e.target.type === "date") {
|
|
13
|
+
console.error("Rifm does not support input type=date.");
|
|
14
|
+
return;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
const t = e.target.value;
|
|
18
|
+
if (l.current = [
|
|
19
|
+
t,
|
|
20
|
+
// eventValue
|
|
21
|
+
e.target,
|
|
22
|
+
// input
|
|
23
|
+
t.length > f.length,
|
|
24
|
+
// isSizeIncreaseOperation
|
|
25
|
+
m.current,
|
|
26
|
+
// isDeleleteButtonDown
|
|
27
|
+
f === r.format(t)
|
|
28
|
+
// isNoOperation
|
|
29
|
+
], process.env.NODE_ENV !== "production") {
|
|
30
|
+
const o = r.format(t);
|
|
31
|
+
t !== o && t.toLowerCase() === o.toLowerCase() && console.warn("Case enforcement does not work with format. Please use replace={value => value.toLowerCase()} instead");
|
|
32
|
+
}
|
|
33
|
+
E();
|
|
34
|
+
};
|
|
35
|
+
return (process.env.NODE_ENV === "production" || typeof window < "u") && x(() => {
|
|
36
|
+
if (l.current == null) return;
|
|
37
|
+
let [
|
|
38
|
+
e,
|
|
39
|
+
t,
|
|
40
|
+
o,
|
|
41
|
+
y,
|
|
42
|
+
// No operation means that value itself hasn't been changed, BTW cursor, selection etc can be changed
|
|
43
|
+
v
|
|
44
|
+
] = l.current;
|
|
45
|
+
l.current = null;
|
|
46
|
+
const p = y && v, D = e.slice(t.selectionStart).search(r.accept || /\d/g), L = D !== -1 ? D : 0, c = (n) => (n.match(r.accept || /\d/g) || []).join(""), h = c(e.substr(0, t.selectionStart)), S = (n) => {
|
|
47
|
+
let s = 0, u = 0;
|
|
48
|
+
for (let d = 0; d !== h.length; ++d) {
|
|
49
|
+
let O = n.indexOf(h[d], s) + 1, w = c(n).indexOf(h[d], u) + 1;
|
|
50
|
+
w - u > 1 && (O = s, w = u), u = Math.max(w, u), s = Math.max(s, O);
|
|
51
|
+
}
|
|
52
|
+
return s;
|
|
53
|
+
};
|
|
54
|
+
if (r.mask === !0 && o && !v) {
|
|
55
|
+
let n = S(e);
|
|
56
|
+
const s = c(e.substr(n))[0];
|
|
57
|
+
n = e.indexOf(s, n), e = `${e.substr(0, n)}${e.substr(n + 1)}`;
|
|
58
|
+
}
|
|
59
|
+
let a = r.format(e);
|
|
60
|
+
g != null && // cursor at the end
|
|
61
|
+
t.selectionStart === e.length && !v && (o ? a = g(a) : c(a.slice(-1)) === "" && (a = a.slice(0, -1)));
|
|
62
|
+
const C = i ? i(a) : a;
|
|
63
|
+
return f === C ? E() : r.onChange(C), () => {
|
|
64
|
+
let n = S(a);
|
|
65
|
+
if (r.mask != null && (o || y && !p))
|
|
66
|
+
for (; a[n] && c(a[n]) === ""; )
|
|
67
|
+
n += 1;
|
|
68
|
+
t.selectionStart = t.selectionEnd = n + (p ? 1 + L : 0);
|
|
69
|
+
};
|
|
70
|
+
}), R(() => {
|
|
71
|
+
const e = (o) => {
|
|
72
|
+
o.code === "Delete" && (m.current = !0);
|
|
73
|
+
}, t = (o) => {
|
|
74
|
+
o.code === "Delete" && (m.current = !1);
|
|
75
|
+
};
|
|
76
|
+
return document.addEventListener("keydown", e), document.addEventListener("keyup", t), () => {
|
|
77
|
+
document.removeEventListener("keydown", e), document.removeEventListener("keyup", t);
|
|
78
|
+
};
|
|
79
|
+
}, []), {
|
|
80
|
+
value: l.current != null ? l.current[0] : f,
|
|
81
|
+
onChange: k
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
export {
|
|
85
|
+
A as useRifm
|
|
86
|
+
};
|
|
87
|
+
//# sourceMappingURL=rifm.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rifm.esm.js","sources":["../../../../../../../../../node_modules/.bun/rifm@0.12.1+62547eec5a2188e3/node_modules/rifm/dist/rifm.esm.js"],"sourcesContent":["import { useReducer, useRef, useLayoutEffect, useEffect } from 'react';\n\nconst useRifm = props => {\n const [, refresh] = useReducer(c => c + 1, 0);\n const valueRef = useRef(null);\n const {\n replace,\n append\n } = props;\n const userValue = replace ? replace(props.format(props.value)) : props.format(props.value); // state of delete button see comments below about inputType support\n\n const isDeleleteButtonDownRef = useRef(false);\n\n const onChange = evt => {\n if (process.env.NODE_ENV !== 'production') {\n if (evt.target.type === 'number') {\n console.error('Rifm does not support input type=number, use type=tel instead.');\n return;\n }\n\n if (evt.target.type === 'date') {\n console.error('Rifm does not support input type=date.');\n return;\n }\n }\n\n const eventValue = evt.target.value;\n valueRef.current = [eventValue, // eventValue\n evt.target, // input\n eventValue.length > userValue.length, // isSizeIncreaseOperation\n isDeleleteButtonDownRef.current, // isDeleleteButtonDown\n userValue === props.format(eventValue) // isNoOperation\n ];\n\n if (process.env.NODE_ENV !== 'production') {\n const formattedEventValue = props.format(eventValue);\n\n if (eventValue !== formattedEventValue && eventValue.toLowerCase() === formattedEventValue.toLowerCase()) {\n console.warn('Case enforcement does not work with format. Please use replace={value => value.toLowerCase()} instead');\n }\n } // The main trick is to update underlying input with non formatted value (= eventValue)\n // that allows us to calculate right cursor position after formatting (see getCursorPosition)\n // then we format new value and call props.onChange with masked/formatted value\n // and finally we are able to set cursor position into right place\n\n\n refresh();\n }; // React prints warn on server in non production mode about useLayoutEffect usage\n // in both cases it's noop\n\n\n if (process.env.NODE_ENV === 'production' || typeof window !== 'undefined') {\n useLayoutEffect(() => {\n if (valueRef.current == null) return;\n let [eventValue, input, isSizeIncreaseOperation, isDeleleteButtonDown, // No operation means that value itself hasn't been changed, BTW cursor, selection etc can be changed\n isNoOperation] = valueRef.current;\n valueRef.current = null; // this usually occurs on deleting special symbols like ' here 123'123.00\n // in case of isDeleleteButtonDown cursor should move differently vs backspace\n\n const deleteWasNoOp = isDeleleteButtonDown && isNoOperation;\n const valueAfterSelectionStart = eventValue.slice(input.selectionStart);\n const acceptedCharIndexAfterDelete = valueAfterSelectionStart.search(props.accept || /\\d/g);\n const charsToSkipAfterDelete = acceptedCharIndexAfterDelete !== -1 ? acceptedCharIndexAfterDelete : 0; // Create string from only accepted symbols\n\n const clean = str => (str.match(props.accept || /\\d/g) || []).join('');\n\n const valueBeforeSelectionStart = clean(eventValue.substr(0, input.selectionStart)); // trying to find cursor position in formatted value having knowledge about valueBeforeSelectionStart\n // This works because we assume that format doesn't change the order of accepted symbols.\n // Imagine we have formatter which adds ' symbol between numbers, and by default we refuse all non numeric symbols\n // for example we had input = 1'2|'4 (| means cursor position) then user entered '3' symbol\n // inputValue = 1'23'|4 so valueBeforeSelectionStart = 123 and formatted value = 1'2'3'4\n // calling getCursorPosition(\"1'2'3'4\") will give us position after 3, 1'2'3|'4\n // so for formatting just this function to determine cursor position after formatting is enough\n // with masking we need to do some additional checks see `mask` below\n\n const getCursorPosition = val => {\n let start = 0;\n let cleanPos = 0;\n\n for (let i = 0; i !== valueBeforeSelectionStart.length; ++i) {\n let newPos = val.indexOf(valueBeforeSelectionStart[i], start) + 1;\n let newCleanPos = clean(val).indexOf(valueBeforeSelectionStart[i], cleanPos) + 1; // this skips position change if accepted symbols order was broken\n // For example fixes edge case with fixed point numbers:\n // You have '0|.00', then press 1, it becomes 01|.00 and after format 1.00, this breaks our assumption\n // that order of accepted symbols is not changed after format,\n // so here we don't update start position if other accepted symbols was inbetween current and new position\n\n if (newCleanPos - cleanPos > 1) {\n newPos = start;\n newCleanPos = cleanPos;\n }\n\n cleanPos = Math.max(newCleanPos, cleanPos);\n start = Math.max(start, newPos);\n }\n\n return start;\n }; // Masking part, for masks if size of mask is above some value\n // we need to replace symbols instead of do nothing as like in format\n\n\n if (props.mask === true && isSizeIncreaseOperation && !isNoOperation) {\n let start = getCursorPosition(eventValue);\n const c = clean(eventValue.substr(start))[0];\n start = eventValue.indexOf(c, start);\n eventValue = `${eventValue.substr(0, start)}${eventValue.substr(start + 1)}`;\n }\n\n let formattedValue = props.format(eventValue);\n\n if (append != null && // cursor at the end\n input.selectionStart === eventValue.length && !isNoOperation) {\n if (isSizeIncreaseOperation) {\n formattedValue = append(formattedValue);\n } else {\n // If after delete last char is special character and we use append\n // delete it too\n // was: \"12-3|\" backspace pressed, then should be \"12|\"\n if (clean(formattedValue.slice(-1)) === '') {\n formattedValue = formattedValue.slice(0, -1);\n }\n }\n }\n\n const replacedValue = replace ? replace(formattedValue) : formattedValue;\n\n if (userValue === replacedValue) {\n // if nothing changed for formatted value, just refresh so userValue will be used at render\n refresh();\n } else {\n props.onChange(replacedValue);\n }\n\n return () => {\n let start = getCursorPosition(formattedValue); // Visually improves working with masked values,\n // like cursor jumping over refused symbols\n // as an example date mask: was \"5|1-24-3\" then user pressed \"6\"\n // it becomes \"56-|12-43\" with this code, and \"56|-12-43\" without\n\n if (props.mask != null && (isSizeIncreaseOperation || isDeleleteButtonDown && !deleteWasNoOp)) {\n while (formattedValue[start] && clean(formattedValue[start]) === '') {\n start += 1;\n }\n }\n\n input.selectionStart = input.selectionEnd = start + (deleteWasNoOp ? 1 + charsToSkipAfterDelete : 0);\n };\n });\n }\n\n useEffect(() => {\n // until https://developer.mozilla.org/en-US/docs/Web/API/InputEvent/inputType will be supported\n // by all major browsers (now supported by: +chrome, +safari, ?edge, !firefox)\n // there is no way I found to distinguish in onChange\n // backspace or delete was called in some situations\n // firefox track https://bugzilla.mozilla.org/show_bug.cgi?id=1447239\n const handleKeyDown = evt => {\n if (evt.code === 'Delete') {\n isDeleleteButtonDownRef.current = true;\n }\n };\n\n const handleKeyUp = evt => {\n if (evt.code === 'Delete') {\n isDeleleteButtonDownRef.current = false;\n }\n };\n\n document.addEventListener('keydown', handleKeyDown);\n document.addEventListener('keyup', handleKeyUp);\n return () => {\n document.removeEventListener('keydown', handleKeyDown);\n document.removeEventListener('keyup', handleKeyUp);\n };\n }, []);\n return {\n value: valueRef.current != null ? valueRef.current[0] : userValue,\n onChange\n };\n};\nconst Rifm = props => {\n const renderProps = useRifm(props);\n return props.children(renderProps);\n};\n\nexport { Rifm, useRifm };\n"],"names":["useRifm","props","refresh","useReducer","c","valueRef","useRef","replace","append","userValue","isDeleleteButtonDownRef","onChange","evt","eventValue","formattedEventValue","useLayoutEffect","input","isSizeIncreaseOperation","isDeleleteButtonDown","isNoOperation","deleteWasNoOp","acceptedCharIndexAfterDelete","charsToSkipAfterDelete","clean","str","valueBeforeSelectionStart","getCursorPosition","val","start","cleanPos","i","newPos","newCleanPos","formattedValue","replacedValue","useEffect","handleKeyDown","handleKeyUp"],"mappings":";AAEK,MAACA,IAAU,CAAAC,MAAS;AACvB,QAAM,CAAA,EAAGC,CAAO,IAAIC,EAAW,CAAAC,MAAKA,IAAI,GAAG,CAAC,GACtCC,IAAWC,EAAO,IAAI,GACtB;AAAA,IACJ,SAAAC;AAAA,IACA,QAAAC;AAAA,EACJ,IAAMP,GACEQ,IAAYF,IAAUA,EAAQN,EAAM,OAAOA,EAAM,KAAK,CAAC,IAAIA,EAAM,OAAOA,EAAM,KAAK,GAEnFS,IAA0BJ,EAAO,EAAK,GAEtCK,IAAW,CAAAC,MAAO;AACtB,QAAI,QAAQ,IAAI,aAAa,cAAc;AACzC,UAAIA,EAAI,OAAO,SAAS,UAAU;AAChC,gBAAQ,MAAM,gEAAgE;AAC9E;AAAA,MACF;AAEA,UAAIA,EAAI,OAAO,SAAS,QAAQ;AAC9B,gBAAQ,MAAM,wCAAwC;AACtD;AAAA,MACF;AAAA,IACF;AAEA,UAAMC,IAAaD,EAAI,OAAO;AAQ9B,QAPAP,EAAS,UAAU;AAAA,MAACQ;AAAA;AAAA,MACpBD,EAAI;AAAA;AAAA,MACJC,EAAW,SAASJ,EAAU;AAAA;AAAA,MAC9BC,EAAwB;AAAA;AAAA,MACxBD,MAAcR,EAAM,OAAOY,CAAU;AAAA;AAAA,IACzC,GAEQ,QAAQ,IAAI,aAAa,cAAc;AACzC,YAAMC,IAAsBb,EAAM,OAAOY,CAAU;AAEnD,MAAIA,MAAeC,KAAuBD,EAAW,YAAW,MAAOC,EAAoB,iBACzF,QAAQ,KAAK,uGAAuG;AAAA,IAExH;AAMA,IAAAZ,EAAO;AAAA,EACT;AAIA,UAAI,QAAQ,IAAI,aAAa,gBAAgB,OAAO,SAAW,QAC7Da,EAAgB,MAAM;AACpB,QAAIV,EAAS,WAAW,KAAM;AAC9B,QAAI;AAAA,MAAC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