@nuxt/ui 2.18.4 → 3.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +19 -2
- package/cli/commands/init.mjs +83 -0
- package/cli/index.mjs +15 -0
- package/cli/node_modules/.ignored/citty/LICENSE +36 -0
- package/cli/node_modules/.ignored/citty/README.md +134 -0
- package/cli/node_modules/.ignored/citty/dist/index.cjs +475 -0
- package/cli/node_modules/.ignored/citty/dist/index.d.cts +80 -0
- package/cli/node_modules/.ignored/citty/dist/index.d.mts +80 -0
- package/cli/node_modules/.ignored/citty/dist/index.d.ts +80 -0
- package/cli/node_modules/.ignored/citty/dist/index.mjs +463 -0
- package/cli/node_modules/.ignored/citty/package.json +49 -0
- package/cli/node_modules/.ignored/consola/LICENSE +47 -0
- package/cli/node_modules/.ignored/consola/README.md +318 -0
- package/cli/node_modules/.ignored/consola/core.d.ts +1 -0
- package/cli/node_modules/.ignored/consola/dist/basic.cjs +32 -0
- package/cli/node_modules/.ignored/consola/dist/basic.d.ts +9 -0
- package/cli/node_modules/.ignored/consola/dist/basic.mjs +24 -0
- package/cli/node_modules/.ignored/consola/dist/browser.cjs +80 -0
- package/cli/node_modules/.ignored/consola/dist/browser.d.ts +7 -0
- package/cli/node_modules/.ignored/consola/dist/browser.mjs +72 -0
- package/cli/node_modules/.ignored/consola/dist/chunks/prompt.cjs +436 -0
- package/cli/node_modules/.ignored/consola/dist/chunks/prompt.mjs +429 -0
- package/cli/node_modules/.ignored/consola/dist/core.cjs +415 -0
- package/cli/node_modules/.ignored/consola/dist/core.d.ts +124 -0
- package/cli/node_modules/.ignored/consola/dist/core.mjs +410 -0
- package/cli/node_modules/.ignored/consola/dist/index.cjs +21 -0
- package/cli/node_modules/.ignored/consola/dist/index.d.ts +9 -0
- package/cli/node_modules/.ignored/consola/dist/index.mjs +8 -0
- package/cli/node_modules/.ignored/consola/dist/shared/consola.06ad8a64.mjs +62 -0
- package/cli/node_modules/.ignored/consola/dist/shared/consola.36c0034f.mjs +636 -0
- package/cli/node_modules/.ignored/consola/dist/shared/consola.4bbae468.cjs +645 -0
- package/cli/node_modules/.ignored/consola/dist/shared/consola.deac7d5a.cjs +65 -0
- package/cli/node_modules/.ignored/consola/dist/utils.cjs +308 -0
- package/cli/node_modules/.ignored/consola/dist/utils.d.ts +169 -0
- package/cli/node_modules/.ignored/consola/dist/utils.mjs +284 -0
- package/cli/node_modules/.ignored/consola/lib/index.cjs +9 -0
- package/cli/node_modules/.ignored/consola/package.json +101 -0
- package/cli/node_modules/.ignored/consola/utils.d.ts +1 -0
- package/cli/node_modules/.ignored/pathe/LICENSE +44 -0
- package/cli/node_modules/.ignored/pathe/README.md +69 -0
- package/cli/node_modules/.ignored/pathe/dist/index.cjs +23 -0
- package/cli/node_modules/.ignored/pathe/dist/index.d.cts +36 -0
- package/cli/node_modules/.ignored/pathe/dist/index.d.mts +36 -0
- package/cli/node_modules/.ignored/pathe/dist/index.d.ts +36 -0
- package/cli/node_modules/.ignored/pathe/dist/index.mjs +1 -0
- package/cli/node_modules/.ignored/pathe/dist/shared/pathe.1f0a373c.cjs +238 -0
- package/cli/node_modules/.ignored/pathe/dist/shared/pathe.ff20891b.mjs +221 -0
- package/cli/node_modules/.ignored/pathe/dist/utils.cjs +58 -0
- package/cli/node_modules/.ignored/pathe/dist/utils.d.cts +5 -0
- package/cli/node_modules/.ignored/pathe/dist/utils.d.mts +5 -0
- package/cli/node_modules/.ignored/pathe/dist/utils.d.ts +5 -0
- package/cli/node_modules/.ignored/pathe/dist/utils.mjs +54 -0
- package/cli/node_modules/.ignored/pathe/package.json +48 -0
- package/cli/node_modules/.ignored/pathe/utils.d.ts +1 -0
- package/cli/node_modules/.ignored/scule/LICENSE +21 -0
- package/cli/node_modules/.ignored/scule/README.md +149 -0
- package/cli/node_modules/.ignored/scule/dist/index.cjs +92 -0
- package/cli/node_modules/.ignored/scule/dist/index.d.cts +57 -0
- package/cli/node_modules/.ignored/scule/dist/index.d.mts +57 -0
- package/cli/node_modules/.ignored/scule/dist/index.d.ts +57 -0
- package/cli/node_modules/.ignored/scule/dist/index.mjs +80 -0
- package/cli/node_modules/.ignored/scule/package.json +43 -0
- package/cli/node_modules/.package-lock.json +33 -0
- package/cli/package.json +13 -0
- package/cli/templates.mjs +171 -0
- package/cli/utils.mjs +17 -0
- package/dist/module.d.mts +10 -26
- package/dist/module.d.ts +10 -26
- package/dist/module.json +4 -4
- package/dist/module.mjs +2574 -154
- package/dist/runtime/components/Accordion.vue +110 -0
- package/dist/runtime/components/Alert.vue +130 -0
- package/dist/runtime/components/App.vue +42 -0
- package/dist/runtime/components/Avatar.vue +69 -0
- package/dist/runtime/components/AvatarGroup.vue +98 -0
- package/dist/runtime/components/Badge.vue +46 -0
- package/dist/runtime/components/Breadcrumb.vue +98 -0
- package/dist/runtime/components/Button.vue +82 -0
- package/dist/runtime/components/ButtonGroup.vue +53 -0
- package/dist/runtime/components/Card.vue +52 -0
- package/dist/runtime/components/Checkbox.vue +128 -0
- package/dist/runtime/components/Chip.vue +76 -0
- package/dist/runtime/components/Collapsible.vue +54 -0
- package/dist/runtime/components/CommandPalette.vue +303 -0
- package/dist/runtime/components/Container.vue +36 -0
- package/dist/runtime/components/ContextMenu.vue +103 -0
- package/dist/runtime/components/ContextMenuContent.vue +122 -0
- package/dist/runtime/components/Drawer.vue +115 -0
- package/dist/runtime/components/DropdownMenu.vue +115 -0
- package/dist/runtime/components/DropdownMenuContent.vue +129 -0
- package/dist/runtime/components/Form.vue +227 -0
- package/dist/runtime/components/FormField.vue +107 -0
- package/dist/runtime/components/Icon.vue +26 -0
- package/dist/runtime/components/Input.vue +180 -0
- package/dist/runtime/components/InputMenu.vue +371 -0
- package/dist/runtime/components/Kbd.vue +49 -0
- package/dist/runtime/components/Link.vue +147 -0
- package/dist/runtime/components/LinkBase.vue +60 -0
- package/dist/runtime/components/Modal.vue +163 -0
- package/dist/runtime/components/ModalProvider.vue +12 -0
- package/dist/runtime/components/NavigationMenu.vue +195 -0
- package/dist/runtime/components/Pagination.vue +173 -0
- package/dist/runtime/components/Popover.vue +88 -0
- package/dist/runtime/components/Progress.vue +164 -0
- package/dist/runtime/components/RadioGroup.vue +159 -0
- package/dist/runtime/components/Select.vue +230 -0
- package/dist/runtime/components/SelectMenu.vue +306 -0
- package/dist/runtime/components/Separator.vue +82 -0
- package/dist/runtime/components/Skeleton.vue +31 -0
- package/dist/runtime/components/Slideover.vue +162 -0
- package/dist/runtime/components/SlideoverProvider.vue +12 -0
- package/dist/runtime/components/Slider.vue +113 -0
- package/dist/runtime/components/Switch.vue +124 -0
- package/dist/runtime/components/Tabs.vue +114 -0
- package/dist/runtime/components/Textarea.vue +189 -0
- package/dist/runtime/components/Toast.vue +161 -0
- package/dist/runtime/components/Toaster.vue +130 -0
- package/dist/runtime/components/Tooltip.vue +88 -0
- package/dist/runtime/composables/defineShortcuts.d.ts +7 -5
- package/dist/runtime/composables/defineShortcuts.js +94 -65
- package/dist/runtime/composables/useAvatarGroup.d.ts +10 -0
- package/dist/runtime/composables/useAvatarGroup.js +10 -0
- package/dist/runtime/composables/useButtonGroup.d.ts +12 -17
- package/dist/runtime/composables/useButtonGroup.js +6 -56
- package/dist/runtime/composables/useComponentIcons.d.ts +26 -0
- package/dist/runtime/composables/useComponentIcons.js +26 -0
- package/dist/runtime/composables/useFormField.d.ts +34 -0
- package/dist/runtime/composables/useFormField.js +54 -0
- package/dist/runtime/composables/useKbd.d.ts +28 -0
- package/dist/runtime/composables/useKbd.js +46 -0
- package/dist/runtime/composables/useModal.d.ts +8 -4
- package/dist/runtime/composables/useModal.js +1 -0
- package/dist/runtime/composables/useSlideover.d.ts +9 -5
- package/dist/runtime/composables/useSlideover.js +3 -2
- package/dist/runtime/composables/useToast.d.ts +9 -17
- package/dist/runtime/composables/useToast.js +27 -13
- package/dist/runtime/index.css +1 -0
- package/dist/runtime/plugins/colors.js +9 -17
- package/dist/runtime/plugins/{slideovers.js → slideover.js} +3 -3
- package/dist/runtime/types/app.config.d.ts +6 -0
- package/dist/runtime/types/component.d.ts +17 -14
- package/dist/runtime/types/component.js +0 -0
- package/dist/runtime/types/form.d.ts +62 -32
- package/dist/runtime/types/form.js +12 -0
- package/dist/runtime/types/index.d.ts +41 -30
- package/dist/runtime/types/index.js +42 -31
- package/dist/runtime/types/utils.d.ts +13 -32
- package/dist/runtime/types/utils.js +0 -0
- package/dist/runtime/utils/form.d.ts +15 -0
- package/dist/runtime/utils/form.js +66 -0
- package/dist/runtime/utils/fuse.d.ts +4 -0
- package/dist/runtime/utils/fuse.js +63 -0
- package/dist/runtime/utils/index.d.ts +4 -10
- package/dist/runtime/utils/index.js +40 -60
- package/dist/runtime/utils/link.d.ts +26 -71
- package/dist/runtime/utils/link.js +4 -124
- package/package.json +50 -49
- package/dist/runtime/components/data/Table.vue +0 -355
- package/dist/runtime/components/data/Table.vue.d.ts +0 -439
- package/dist/runtime/components/elements/Accordion.vue +0 -185
- package/dist/runtime/components/elements/Accordion.vue.d.ts +0 -223
- package/dist/runtime/components/elements/Alert.vue +0 -139
- package/dist/runtime/components/elements/Alert.vue.d.ts +0 -194
- package/dist/runtime/components/elements/Avatar.vue +0 -160
- package/dist/runtime/components/elements/Avatar.vue.d.ts +0 -255
- package/dist/runtime/components/elements/AvatarGroup.d.ts +0 -56
- package/dist/runtime/components/elements/AvatarGroup.js +0 -58
- package/dist/runtime/components/elements/Badge.vue +0 -75
- package/dist/runtime/components/elements/Badge.vue.d.ts +0 -109
- package/dist/runtime/components/elements/Button.vue +0 -193
- package/dist/runtime/components/elements/Button.vue.d.ts +0 -504
- package/dist/runtime/components/elements/ButtonGroup.d.ts +0 -153
- package/dist/runtime/components/elements/ButtonGroup.js +0 -51
- package/dist/runtime/components/elements/Carousel.vue +0 -165
- package/dist/runtime/components/elements/Carousel.vue.d.ts +0 -159
- package/dist/runtime/components/elements/Chip.vue +0 -85
- package/dist/runtime/components/elements/Chip.vue.d.ts +0 -162
- package/dist/runtime/components/elements/Dropdown.vue +0 -254
- package/dist/runtime/components/elements/Dropdown.vue.d.ts +0 -254
- package/dist/runtime/components/elements/Icon.vue +0 -30
- package/dist/runtime/components/elements/Icon.vue.d.ts +0 -47
- package/dist/runtime/components/elements/Kbd.vue +0 -59
- package/dist/runtime/components/elements/Kbd.vue.d.ts +0 -86
- package/dist/runtime/components/elements/Link.vue +0 -95
- package/dist/runtime/components/elements/Link.vue.d.ts +0 -225
- package/dist/runtime/components/elements/Meter.vue +0 -170
- package/dist/runtime/components/elements/Meter.vue.d.ts +0 -279
- package/dist/runtime/components/elements/MeterGroup.d.ts +0 -135
- package/dist/runtime/components/elements/MeterGroup.js +0 -159
- package/dist/runtime/components/elements/Progress.vue +0 -203
- package/dist/runtime/components/elements/Progress.vue.d.ts +0 -280
- package/dist/runtime/components/forms/Checkbox.vue +0 -143
- package/dist/runtime/components/forms/Checkbox.vue.d.ts +0 -179
- package/dist/runtime/components/forms/Form.vue +0 -219
- package/dist/runtime/components/forms/Form.vue.d.ts +0 -53
- package/dist/runtime/components/forms/FormGroup.vue +0 -128
- package/dist/runtime/components/forms/FormGroup.vue.d.ts +0 -169
- package/dist/runtime/components/forms/Input.vue +0 -300
- package/dist/runtime/components/forms/Input.vue.d.ts +0 -482
- package/dist/runtime/components/forms/InputMenu.vue +0 -439
- package/dist/runtime/components/forms/InputMenu.vue.d.ts +0 -700
- package/dist/runtime/components/forms/Radio.vue +0 -140
- package/dist/runtime/components/forms/Radio.vue.d.ts +0 -168
- package/dist/runtime/components/forms/RadioGroup.vue +0 -145
- package/dist/runtime/components/forms/RadioGroup.vue.d.ts +0 -176
- package/dist/runtime/components/forms/Range.vue +0 -173
- package/dist/runtime/components/forms/Range.vue.d.ts +0 -268
- package/dist/runtime/components/forms/Select.vue +0 -322
- package/dist/runtime/components/forms/Select.vue.d.ts +0 -471
- package/dist/runtime/components/forms/SelectMenu.vue +0 -546
- package/dist/runtime/components/forms/SelectMenu.vue.d.ts +0 -754
- package/dist/runtime/components/forms/Textarea.vue +0 -231
- package/dist/runtime/components/forms/Textarea.vue.d.ts +0 -436
- package/dist/runtime/components/forms/Toggle.vue +0 -171
- package/dist/runtime/components/forms/Toggle.vue.d.ts +0 -262
- package/dist/runtime/components/layout/Card.vue +0 -63
- package/dist/runtime/components/layout/Card.vue.d.ts +0 -89
- package/dist/runtime/components/layout/Container.vue +0 -48
- package/dist/runtime/components/layout/Container.vue.d.ts +0 -53
- package/dist/runtime/components/layout/Divider.vue +0 -108
- package/dist/runtime/components/layout/Divider.vue.d.ts +0 -198
- package/dist/runtime/components/layout/Skeleton.vue +0 -46
- package/dist/runtime/components/layout/Skeleton.vue.d.ts +0 -53
- package/dist/runtime/components/navigation/Breadcrumb.vue +0 -82
- package/dist/runtime/components/navigation/Breadcrumb.vue.d.ts +0 -95
- package/dist/runtime/components/navigation/CommandPalette.vue +0 -345
- package/dist/runtime/components/navigation/CommandPalette.vue.d.ts +0 -390
- package/dist/runtime/components/navigation/CommandPaletteGroup.vue +0 -152
- package/dist/runtime/components/navigation/CommandPaletteGroup.vue.d.ts +0 -60
- package/dist/runtime/components/navigation/HorizontalNavigation.vue +0 -102
- package/dist/runtime/components/navigation/HorizontalNavigation.vue.d.ts +0 -99
- package/dist/runtime/components/navigation/Pagination.vue +0 -270
- package/dist/runtime/components/navigation/Pagination.vue.d.ts +0 -260
- package/dist/runtime/components/navigation/Tabs.vue +0 -163
- package/dist/runtime/components/navigation/Tabs.vue.d.ts +0 -165
- package/dist/runtime/components/navigation/VerticalNavigation.vue +0 -105
- package/dist/runtime/components/navigation/VerticalNavigation.vue.d.ts +0 -113
- package/dist/runtime/components/overlays/ContextMenu.vue +0 -85
- package/dist/runtime/components/overlays/ContextMenu.vue.d.ts +0 -126
- package/dist/runtime/components/overlays/Modal.vue +0 -122
- package/dist/runtime/components/overlays/Modal.vue.d.ts +0 -166
- package/dist/runtime/components/overlays/Modals.client.vue +0 -18
- package/dist/runtime/components/overlays/Notification.vue +0 -212
- package/dist/runtime/components/overlays/Notification.vue.d.ts +0 -235
- package/dist/runtime/components/overlays/Notifications.vue +0 -69
- package/dist/runtime/components/overlays/Notifications.vue.d.ts +0 -66
- package/dist/runtime/components/overlays/Popover.vue +0 -213
- package/dist/runtime/components/overlays/Popover.vue.d.ts +0 -220
- package/dist/runtime/components/overlays/Slideover.vue +0 -152
- package/dist/runtime/components/overlays/Slideover.vue.d.ts +0 -167
- package/dist/runtime/components/overlays/Slideovers.client.vue +0 -18
- package/dist/runtime/components/overlays/Tooltip.vue +0 -127
- package/dist/runtime/components/overlays/Tooltip.vue.d.ts +0 -165
- package/dist/runtime/composables/useCarouselScroll.d.ts +0 -2
- package/dist/runtime/composables/useCarouselScroll.js +0 -37
- package/dist/runtime/composables/useCopyToClipboard.d.ts +0 -10
- package/dist/runtime/composables/useCopyToClipboard.js +0 -26
- package/dist/runtime/composables/useFormGroup.d.ts +0 -18
- package/dist/runtime/composables/useFormGroup.js +0 -45
- package/dist/runtime/composables/usePopper.d.ts +0 -268
- package/dist/runtime/composables/usePopper.js +0 -94
- package/dist/runtime/composables/useShortcuts.d.ts +0 -12
- package/dist/runtime/composables/useShortcuts.js +0 -26
- package/dist/runtime/composables/useTimer.d.ts +0 -8
- package/dist/runtime/composables/useTimer.js +0 -51
- package/dist/runtime/composables/useUI.d.ts +0 -10
- package/dist/runtime/composables/useUI.js +0 -24
- package/dist/runtime/types/accordion.d.ts +0 -9
- package/dist/runtime/types/alert.d.ts +0 -12
- package/dist/runtime/types/avatar.d.ts +0 -17
- package/dist/runtime/types/badge.d.ts +0 -15
- package/dist/runtime/types/breadcrumb.d.ts +0 -10
- package/dist/runtime/types/button.d.ts +0 -31
- package/dist/runtime/types/chip.d.ts +0 -15
- package/dist/runtime/types/clipboard.d.ts +0 -3
- package/dist/runtime/types/command-palette.d.ts +0 -29
- package/dist/runtime/types/divider.d.ts +0 -3
- package/dist/runtime/types/dropdown.d.ts +0 -15
- package/dist/runtime/types/form-group.d.ts +0 -5
- package/dist/runtime/types/horizontal-navigation.d.ts +0 -13
- package/dist/runtime/types/input.d.ts +0 -8
- package/dist/runtime/types/kbd.d.ts +0 -5
- package/dist/runtime/types/link.d.ts +0 -12
- package/dist/runtime/types/meter.d.ts +0 -5
- package/dist/runtime/types/modal.d.ts +0 -18
- package/dist/runtime/types/notification.d.ts +0 -24
- package/dist/runtime/types/popper.d.ts +0 -17
- package/dist/runtime/types/progress.d.ts +0 -6
- package/dist/runtime/types/range.d.ts +0 -7
- package/dist/runtime/types/select.d.ts +0 -8
- package/dist/runtime/types/slideover.d.ts +0 -16
- package/dist/runtime/types/tabs.d.ts +0 -8
- package/dist/runtime/types/textarea.d.ts +0 -8
- package/dist/runtime/types/toggle.d.ts +0 -7
- package/dist/runtime/types/tooltip.d.ts +0 -7
- package/dist/runtime/types/vertical-navigation.d.ts +0 -13
- package/dist/runtime/ui.config/data/table.d.ts +0 -81
- package/dist/runtime/ui.config/data/table.js +0 -80
- package/dist/runtime/ui.config/elements/accordion.d.ts +0 -23
- package/dist/runtime/ui.config/elements/accordion.js +0 -22
- package/dist/runtime/ui.config/elements/alert.d.ts +0 -41
- package/dist/runtime/ui.config/elements/alert.js +0 -40
- package/dist/runtime/ui.config/elements/avatar.d.ts +0 -60
- package/dist/runtime/ui.config/elements/avatar.js +0 -59
- package/dist/runtime/ui.config/elements/avatarGroup.d.ts +0 -6
- package/dist/runtime/ui.config/elements/avatarGroup.js +0 -5
- package/dist/runtime/ui.config/elements/badge.d.ts +0 -34
- package/dist/runtime/ui.config/elements/badge.js +0 -33
- package/dist/runtime/ui.config/elements/button.d.ts +0 -81
- package/dist/runtime/ui.config/elements/button.js +0 -80
- package/dist/runtime/ui.config/elements/buttonGroup.d.ts +0 -101
- package/dist/runtime/ui.config/elements/buttonGroup.js +0 -19
- package/dist/runtime/ui.config/elements/carousel.d.ts +0 -27
- package/dist/runtime/ui.config/elements/carousel.js +0 -26
- package/dist/runtime/ui.config/elements/chip.d.ts +0 -35
- package/dist/runtime/ui.config/elements/chip.js +0 -34
- package/dist/runtime/ui.config/elements/dropdown.d.ts +0 -59
- package/dist/runtime/ui.config/elements/dropdown.js +0 -57
- package/dist/runtime/ui.config/elements/kbd.d.ts +0 -17
- package/dist/runtime/ui.config/elements/kbd.js +0 -16
- package/dist/runtime/ui.config/elements/meter.d.ts +0 -77
- package/dist/runtime/ui.config/elements/meter.js +0 -76
- package/dist/runtime/ui.config/elements/meterGroup.d.ts +0 -52
- package/dist/runtime/ui.config/elements/meterGroup.js +0 -24
- package/dist/runtime/ui.config/elements/progress.d.ts +0 -75
- package/dist/runtime/ui.config/elements/progress.js +0 -74
- package/dist/runtime/ui.config/forms/checkbox.d.ts +0 -19
- package/dist/runtime/ui.config/forms/checkbox.js +0 -18
- package/dist/runtime/ui.config/forms/formGroup.d.ts +0 -26
- package/dist/runtime/ui.config/forms/formGroup.js +0 -26
- package/dist/runtime/ui.config/forms/input.d.ts +0 -110
- package/dist/runtime/ui.config/forms/input.js +0 -109
- package/dist/runtime/ui.config/forms/inputMenu.d.ts +0 -64
- package/dist/runtime/ui.config/forms/inputMenu.js +0 -62
- package/dist/runtime/ui.config/forms/radio.d.ts +0 -18
- package/dist/runtime/ui.config/forms/radio.js +0 -17
- package/dist/runtime/ui.config/forms/radioGroup.d.ts +0 -9
- package/dist/runtime/ui.config/forms/radioGroup.js +0 -8
- package/dist/runtime/ui.config/forms/range.d.ts +0 -64
- package/dist/runtime/ui.config/forms/range.js +0 -63
- package/dist/runtime/ui.config/forms/select.d.ts +0 -111
- package/dist/runtime/ui.config/forms/select.js +0 -13
- package/dist/runtime/ui.config/forms/selectMenu.d.ts +0 -70
- package/dist/runtime/ui.config/forms/selectMenu.js +0 -32
- package/dist/runtime/ui.config/forms/textarea.d.ts +0 -109
- package/dist/runtime/ui.config/forms/textarea.js +0 -10
- package/dist/runtime/ui.config/forms/toggle.d.ts +0 -63
- package/dist/runtime/ui.config/forms/toggle.js +0 -62
- package/dist/runtime/ui.config/index.d.ts +0 -43
- package/dist/runtime/ui.config/index.js +0 -43
- package/dist/runtime/ui.config/layout/card.d.ts +0 -24
- package/dist/runtime/ui.config/layout/card.js +0 -23
- package/dist/runtime/ui.config/layout/container.d.ts +0 -6
- package/dist/runtime/ui.config/layout/container.js +0 -5
- package/dist/runtime/ui.config/layout/divider.d.ts +0 -52
- package/dist/runtime/ui.config/layout/divider.js +0 -51
- package/dist/runtime/ui.config/layout/skeleton.d.ts +0 -6
- package/dist/runtime/ui.config/layout/skeleton.js +0 -5
- package/dist/runtime/ui.config/navigation/breadcrumb.d.ts +0 -21
- package/dist/runtime/ui.config/navigation/breadcrumb.js +0 -20
- package/dist/runtime/ui.config/navigation/commandPalette.d.ts +0 -72
- package/dist/runtime/ui.config/navigation/commandPalette.js +0 -71
- package/dist/runtime/ui.config/navigation/horizontalNavigation.d.ts +0 -27
- package/dist/runtime/ui.config/navigation/horizontalNavigation.js +0 -26
- package/dist/runtime/ui.config/navigation/pagination.d.ts +0 -35
- package/dist/runtime/ui.config/navigation/pagination.js +0 -34
- package/dist/runtime/ui.config/navigation/tabs.d.ts +0 -35
- package/dist/runtime/ui.config/navigation/tabs.js +0 -34
- package/dist/runtime/ui.config/navigation/verticalNavigation.d.ts +0 -34
- package/dist/runtime/ui.config/navigation/verticalNavigation.js +0 -33
- package/dist/runtime/ui.config/overlays/contextMenu.d.ts +0 -31
- package/dist/runtime/ui.config/overlays/contextMenu.js +0 -25
- package/dist/runtime/ui.config/overlays/modal.d.ts +0 -36
- package/dist/runtime/ui.config/overlays/modal.js +0 -37
- package/dist/runtime/ui.config/overlays/notification.d.ts +0 -50
- package/dist/runtime/ui.config/overlays/notification.js +0 -50
- package/dist/runtime/ui.config/overlays/notifications.d.ts +0 -7
- package/dist/runtime/ui.config/overlays/notifications.js +0 -6
- package/dist/runtime/ui.config/overlays/popover.d.ts +0 -47
- package/dist/runtime/ui.config/overlays/popover.js +0 -41
- package/dist/runtime/ui.config/overlays/slideover.d.ts +0 -35
- package/dist/runtime/ui.config/overlays/slideover.js +0 -36
- package/dist/runtime/ui.config/overlays/tooltip.d.ts +0 -37
- package/dist/runtime/ui.config/overlays/tooltip.js +0 -34
- package/dist/runtime/ui.config/popper.d.ts +0 -8
- package/dist/runtime/ui.config/popper.js +0 -9
- package/dist/runtime/ui.css +0 -1
- package/dist/runtime/utils/colors.d.ts +0 -11
- package/dist/runtime/utils/colors.js +0 -307
- package/dist/runtime/utils/lodash.d.ts +0 -2
- package/dist/runtime/utils/lodash.js +0 -23
- package/dist/runtime/plugins/{modals.d.ts → modal.d.ts} +0 -0
- package/dist/runtime/plugins/{modals.js → modal.js} +1 -1
- /package/dist/runtime/plugins/{slideovers.d.ts → slideover.d.ts} +0 -0
|
@@ -0,0 +1,645 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const core = require('../core.cjs');
|
|
4
|
+
const basic = require('./consola.deac7d5a.cjs');
|
|
5
|
+
const process$1 = require('node:process');
|
|
6
|
+
const utils = require('../utils.cjs');
|
|
7
|
+
|
|
8
|
+
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e.default : e; }
|
|
9
|
+
|
|
10
|
+
const process__default = /*#__PURE__*/_interopDefaultCompat(process$1);
|
|
11
|
+
|
|
12
|
+
const providers = [
|
|
13
|
+
["APPVEYOR"],
|
|
14
|
+
["AZURE_PIPELINES", "SYSTEM_TEAMFOUNDATIONCOLLECTIONURI"],
|
|
15
|
+
["AZURE_STATIC", "INPUT_AZURE_STATIC_WEB_APPS_API_TOKEN"],
|
|
16
|
+
["APPCIRCLE", "AC_APPCIRCLE"],
|
|
17
|
+
["BAMBOO", "bamboo_planKey"],
|
|
18
|
+
["BITBUCKET", "BITBUCKET_COMMIT"],
|
|
19
|
+
["BITRISE", "BITRISE_IO"],
|
|
20
|
+
["BUDDY", "BUDDY_WORKSPACE_ID"],
|
|
21
|
+
["BUILDKITE"],
|
|
22
|
+
["CIRCLE", "CIRCLECI"],
|
|
23
|
+
["CIRRUS", "CIRRUS_CI"],
|
|
24
|
+
["CLOUDFLARE_PAGES", "CF_PAGES", { ci: true }],
|
|
25
|
+
["CODEBUILD", "CODEBUILD_BUILD_ARN"],
|
|
26
|
+
["CODEFRESH", "CF_BUILD_ID"],
|
|
27
|
+
["DRONE"],
|
|
28
|
+
["DRONE", "DRONE_BUILD_EVENT"],
|
|
29
|
+
["DSARI"],
|
|
30
|
+
["GITHUB_ACTIONS"],
|
|
31
|
+
["GITLAB", "GITLAB_CI"],
|
|
32
|
+
["GITLAB", "CI_MERGE_REQUEST_ID"],
|
|
33
|
+
["GOCD", "GO_PIPELINE_LABEL"],
|
|
34
|
+
["LAYERCI"],
|
|
35
|
+
["HUDSON", "HUDSON_URL"],
|
|
36
|
+
["JENKINS", "JENKINS_URL"],
|
|
37
|
+
["MAGNUM"],
|
|
38
|
+
["NETLIFY"],
|
|
39
|
+
["NETLIFY", "NETLIFY_LOCAL", { ci: false }],
|
|
40
|
+
["NEVERCODE"],
|
|
41
|
+
["RENDER"],
|
|
42
|
+
["SAIL", "SAILCI"],
|
|
43
|
+
["SEMAPHORE"],
|
|
44
|
+
["SCREWDRIVER"],
|
|
45
|
+
["SHIPPABLE"],
|
|
46
|
+
["SOLANO", "TDDIUM"],
|
|
47
|
+
["STRIDER"],
|
|
48
|
+
["TEAMCITY", "TEAMCITY_VERSION"],
|
|
49
|
+
["TRAVIS"],
|
|
50
|
+
["VERCEL", "NOW_BUILDER"],
|
|
51
|
+
["APPCENTER", "APPCENTER_BUILD_ID"],
|
|
52
|
+
["CODESANDBOX", "CODESANDBOX_SSE", { ci: false }],
|
|
53
|
+
["STACKBLITZ"],
|
|
54
|
+
["STORMKIT"],
|
|
55
|
+
["CLEAVR"]
|
|
56
|
+
];
|
|
57
|
+
function detectProvider(env) {
|
|
58
|
+
for (const provider of providers) {
|
|
59
|
+
const envName = provider[1] || provider[0];
|
|
60
|
+
if (env[envName]) {
|
|
61
|
+
return {
|
|
62
|
+
name: provider[0].toLowerCase(),
|
|
63
|
+
...provider[2]
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
if (env.SHELL && env.SHELL === "/bin/jsh") {
|
|
68
|
+
return {
|
|
69
|
+
name: "stackblitz",
|
|
70
|
+
ci: false
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
return {
|
|
74
|
+
name: "",
|
|
75
|
+
ci: false
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
const processShim = typeof process !== "undefined" ? process : {};
|
|
80
|
+
const envShim = processShim.env || {};
|
|
81
|
+
const providerInfo = detectProvider(envShim);
|
|
82
|
+
const nodeENV = typeof process !== "undefined" && process.env && process.env.NODE_ENV || "";
|
|
83
|
+
processShim.platform;
|
|
84
|
+
providerInfo.name;
|
|
85
|
+
const isCI = toBoolean(envShim.CI) || providerInfo.ci !== false;
|
|
86
|
+
const hasTTY = toBoolean(processShim.stdout && processShim.stdout.isTTY);
|
|
87
|
+
const isDebug = toBoolean(envShim.DEBUG);
|
|
88
|
+
const isTest = nodeENV === "test" || toBoolean(envShim.TEST);
|
|
89
|
+
toBoolean(envShim.MINIMAL) || isCI || isTest || !hasTTY;
|
|
90
|
+
function toBoolean(val) {
|
|
91
|
+
return val ? val !== "false" : false;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
function ansiRegex({onlyFirst = false} = {}) {
|
|
95
|
+
const pattern = [
|
|
96
|
+
'[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)',
|
|
97
|
+
'(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))'
|
|
98
|
+
].join('|');
|
|
99
|
+
|
|
100
|
+
return new RegExp(pattern, onlyFirst ? undefined : 'g');
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
const regex = ansiRegex();
|
|
104
|
+
|
|
105
|
+
function stripAnsi(string) {
|
|
106
|
+
if (typeof string !== 'string') {
|
|
107
|
+
throw new TypeError(`Expected a \`string\`, got \`${typeof string}\``);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
// Even though the regex is global, we don't need to reset the `.lastIndex`
|
|
111
|
+
// because unlike `.exec()` and `.test()`, `.replace()` does it automatically
|
|
112
|
+
// and doing it manually has a performance penalty.
|
|
113
|
+
return string.replace(regex, '');
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
function getDefaultExportFromCjs (x) {
|
|
117
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
var eastasianwidth = {exports: {}};
|
|
121
|
+
|
|
122
|
+
(function (module) {
|
|
123
|
+
var eaw = {};
|
|
124
|
+
|
|
125
|
+
{
|
|
126
|
+
module.exports = eaw;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
eaw.eastAsianWidth = function(character) {
|
|
130
|
+
var x = character.charCodeAt(0);
|
|
131
|
+
var y = (character.length == 2) ? character.charCodeAt(1) : 0;
|
|
132
|
+
var codePoint = x;
|
|
133
|
+
if ((0xD800 <= x && x <= 0xDBFF) && (0xDC00 <= y && y <= 0xDFFF)) {
|
|
134
|
+
x &= 0x3FF;
|
|
135
|
+
y &= 0x3FF;
|
|
136
|
+
codePoint = (x << 10) | y;
|
|
137
|
+
codePoint += 0x10000;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
if ((0x3000 == codePoint) ||
|
|
141
|
+
(0xFF01 <= codePoint && codePoint <= 0xFF60) ||
|
|
142
|
+
(0xFFE0 <= codePoint && codePoint <= 0xFFE6)) {
|
|
143
|
+
return 'F';
|
|
144
|
+
}
|
|
145
|
+
if ((0x20A9 == codePoint) ||
|
|
146
|
+
(0xFF61 <= codePoint && codePoint <= 0xFFBE) ||
|
|
147
|
+
(0xFFC2 <= codePoint && codePoint <= 0xFFC7) ||
|
|
148
|
+
(0xFFCA <= codePoint && codePoint <= 0xFFCF) ||
|
|
149
|
+
(0xFFD2 <= codePoint && codePoint <= 0xFFD7) ||
|
|
150
|
+
(0xFFDA <= codePoint && codePoint <= 0xFFDC) ||
|
|
151
|
+
(0xFFE8 <= codePoint && codePoint <= 0xFFEE)) {
|
|
152
|
+
return 'H';
|
|
153
|
+
}
|
|
154
|
+
if ((0x1100 <= codePoint && codePoint <= 0x115F) ||
|
|
155
|
+
(0x11A3 <= codePoint && codePoint <= 0x11A7) ||
|
|
156
|
+
(0x11FA <= codePoint && codePoint <= 0x11FF) ||
|
|
157
|
+
(0x2329 <= codePoint && codePoint <= 0x232A) ||
|
|
158
|
+
(0x2E80 <= codePoint && codePoint <= 0x2E99) ||
|
|
159
|
+
(0x2E9B <= codePoint && codePoint <= 0x2EF3) ||
|
|
160
|
+
(0x2F00 <= codePoint && codePoint <= 0x2FD5) ||
|
|
161
|
+
(0x2FF0 <= codePoint && codePoint <= 0x2FFB) ||
|
|
162
|
+
(0x3001 <= codePoint && codePoint <= 0x303E) ||
|
|
163
|
+
(0x3041 <= codePoint && codePoint <= 0x3096) ||
|
|
164
|
+
(0x3099 <= codePoint && codePoint <= 0x30FF) ||
|
|
165
|
+
(0x3105 <= codePoint && codePoint <= 0x312D) ||
|
|
166
|
+
(0x3131 <= codePoint && codePoint <= 0x318E) ||
|
|
167
|
+
(0x3190 <= codePoint && codePoint <= 0x31BA) ||
|
|
168
|
+
(0x31C0 <= codePoint && codePoint <= 0x31E3) ||
|
|
169
|
+
(0x31F0 <= codePoint && codePoint <= 0x321E) ||
|
|
170
|
+
(0x3220 <= codePoint && codePoint <= 0x3247) ||
|
|
171
|
+
(0x3250 <= codePoint && codePoint <= 0x32FE) ||
|
|
172
|
+
(0x3300 <= codePoint && codePoint <= 0x4DBF) ||
|
|
173
|
+
(0x4E00 <= codePoint && codePoint <= 0xA48C) ||
|
|
174
|
+
(0xA490 <= codePoint && codePoint <= 0xA4C6) ||
|
|
175
|
+
(0xA960 <= codePoint && codePoint <= 0xA97C) ||
|
|
176
|
+
(0xAC00 <= codePoint && codePoint <= 0xD7A3) ||
|
|
177
|
+
(0xD7B0 <= codePoint && codePoint <= 0xD7C6) ||
|
|
178
|
+
(0xD7CB <= codePoint && codePoint <= 0xD7FB) ||
|
|
179
|
+
(0xF900 <= codePoint && codePoint <= 0xFAFF) ||
|
|
180
|
+
(0xFE10 <= codePoint && codePoint <= 0xFE19) ||
|
|
181
|
+
(0xFE30 <= codePoint && codePoint <= 0xFE52) ||
|
|
182
|
+
(0xFE54 <= codePoint && codePoint <= 0xFE66) ||
|
|
183
|
+
(0xFE68 <= codePoint && codePoint <= 0xFE6B) ||
|
|
184
|
+
(0x1B000 <= codePoint && codePoint <= 0x1B001) ||
|
|
185
|
+
(0x1F200 <= codePoint && codePoint <= 0x1F202) ||
|
|
186
|
+
(0x1F210 <= codePoint && codePoint <= 0x1F23A) ||
|
|
187
|
+
(0x1F240 <= codePoint && codePoint <= 0x1F248) ||
|
|
188
|
+
(0x1F250 <= codePoint && codePoint <= 0x1F251) ||
|
|
189
|
+
(0x20000 <= codePoint && codePoint <= 0x2F73F) ||
|
|
190
|
+
(0x2B740 <= codePoint && codePoint <= 0x2FFFD) ||
|
|
191
|
+
(0x30000 <= codePoint && codePoint <= 0x3FFFD)) {
|
|
192
|
+
return 'W';
|
|
193
|
+
}
|
|
194
|
+
if ((0x0020 <= codePoint && codePoint <= 0x007E) ||
|
|
195
|
+
(0x00A2 <= codePoint && codePoint <= 0x00A3) ||
|
|
196
|
+
(0x00A5 <= codePoint && codePoint <= 0x00A6) ||
|
|
197
|
+
(0x00AC == codePoint) ||
|
|
198
|
+
(0x00AF == codePoint) ||
|
|
199
|
+
(0x27E6 <= codePoint && codePoint <= 0x27ED) ||
|
|
200
|
+
(0x2985 <= codePoint && codePoint <= 0x2986)) {
|
|
201
|
+
return 'Na';
|
|
202
|
+
}
|
|
203
|
+
if ((0x00A1 == codePoint) ||
|
|
204
|
+
(0x00A4 == codePoint) ||
|
|
205
|
+
(0x00A7 <= codePoint && codePoint <= 0x00A8) ||
|
|
206
|
+
(0x00AA == codePoint) ||
|
|
207
|
+
(0x00AD <= codePoint && codePoint <= 0x00AE) ||
|
|
208
|
+
(0x00B0 <= codePoint && codePoint <= 0x00B4) ||
|
|
209
|
+
(0x00B6 <= codePoint && codePoint <= 0x00BA) ||
|
|
210
|
+
(0x00BC <= codePoint && codePoint <= 0x00BF) ||
|
|
211
|
+
(0x00C6 == codePoint) ||
|
|
212
|
+
(0x00D0 == codePoint) ||
|
|
213
|
+
(0x00D7 <= codePoint && codePoint <= 0x00D8) ||
|
|
214
|
+
(0x00DE <= codePoint && codePoint <= 0x00E1) ||
|
|
215
|
+
(0x00E6 == codePoint) ||
|
|
216
|
+
(0x00E8 <= codePoint && codePoint <= 0x00EA) ||
|
|
217
|
+
(0x00EC <= codePoint && codePoint <= 0x00ED) ||
|
|
218
|
+
(0x00F0 == codePoint) ||
|
|
219
|
+
(0x00F2 <= codePoint && codePoint <= 0x00F3) ||
|
|
220
|
+
(0x00F7 <= codePoint && codePoint <= 0x00FA) ||
|
|
221
|
+
(0x00FC == codePoint) ||
|
|
222
|
+
(0x00FE == codePoint) ||
|
|
223
|
+
(0x0101 == codePoint) ||
|
|
224
|
+
(0x0111 == codePoint) ||
|
|
225
|
+
(0x0113 == codePoint) ||
|
|
226
|
+
(0x011B == codePoint) ||
|
|
227
|
+
(0x0126 <= codePoint && codePoint <= 0x0127) ||
|
|
228
|
+
(0x012B == codePoint) ||
|
|
229
|
+
(0x0131 <= codePoint && codePoint <= 0x0133) ||
|
|
230
|
+
(0x0138 == codePoint) ||
|
|
231
|
+
(0x013F <= codePoint && codePoint <= 0x0142) ||
|
|
232
|
+
(0x0144 == codePoint) ||
|
|
233
|
+
(0x0148 <= codePoint && codePoint <= 0x014B) ||
|
|
234
|
+
(0x014D == codePoint) ||
|
|
235
|
+
(0x0152 <= codePoint && codePoint <= 0x0153) ||
|
|
236
|
+
(0x0166 <= codePoint && codePoint <= 0x0167) ||
|
|
237
|
+
(0x016B == codePoint) ||
|
|
238
|
+
(0x01CE == codePoint) ||
|
|
239
|
+
(0x01D0 == codePoint) ||
|
|
240
|
+
(0x01D2 == codePoint) ||
|
|
241
|
+
(0x01D4 == codePoint) ||
|
|
242
|
+
(0x01D6 == codePoint) ||
|
|
243
|
+
(0x01D8 == codePoint) ||
|
|
244
|
+
(0x01DA == codePoint) ||
|
|
245
|
+
(0x01DC == codePoint) ||
|
|
246
|
+
(0x0251 == codePoint) ||
|
|
247
|
+
(0x0261 == codePoint) ||
|
|
248
|
+
(0x02C4 == codePoint) ||
|
|
249
|
+
(0x02C7 == codePoint) ||
|
|
250
|
+
(0x02C9 <= codePoint && codePoint <= 0x02CB) ||
|
|
251
|
+
(0x02CD == codePoint) ||
|
|
252
|
+
(0x02D0 == codePoint) ||
|
|
253
|
+
(0x02D8 <= codePoint && codePoint <= 0x02DB) ||
|
|
254
|
+
(0x02DD == codePoint) ||
|
|
255
|
+
(0x02DF == codePoint) ||
|
|
256
|
+
(0x0300 <= codePoint && codePoint <= 0x036F) ||
|
|
257
|
+
(0x0391 <= codePoint && codePoint <= 0x03A1) ||
|
|
258
|
+
(0x03A3 <= codePoint && codePoint <= 0x03A9) ||
|
|
259
|
+
(0x03B1 <= codePoint && codePoint <= 0x03C1) ||
|
|
260
|
+
(0x03C3 <= codePoint && codePoint <= 0x03C9) ||
|
|
261
|
+
(0x0401 == codePoint) ||
|
|
262
|
+
(0x0410 <= codePoint && codePoint <= 0x044F) ||
|
|
263
|
+
(0x0451 == codePoint) ||
|
|
264
|
+
(0x2010 == codePoint) ||
|
|
265
|
+
(0x2013 <= codePoint && codePoint <= 0x2016) ||
|
|
266
|
+
(0x2018 <= codePoint && codePoint <= 0x2019) ||
|
|
267
|
+
(0x201C <= codePoint && codePoint <= 0x201D) ||
|
|
268
|
+
(0x2020 <= codePoint && codePoint <= 0x2022) ||
|
|
269
|
+
(0x2024 <= codePoint && codePoint <= 0x2027) ||
|
|
270
|
+
(0x2030 == codePoint) ||
|
|
271
|
+
(0x2032 <= codePoint && codePoint <= 0x2033) ||
|
|
272
|
+
(0x2035 == codePoint) ||
|
|
273
|
+
(0x203B == codePoint) ||
|
|
274
|
+
(0x203E == codePoint) ||
|
|
275
|
+
(0x2074 == codePoint) ||
|
|
276
|
+
(0x207F == codePoint) ||
|
|
277
|
+
(0x2081 <= codePoint && codePoint <= 0x2084) ||
|
|
278
|
+
(0x20AC == codePoint) ||
|
|
279
|
+
(0x2103 == codePoint) ||
|
|
280
|
+
(0x2105 == codePoint) ||
|
|
281
|
+
(0x2109 == codePoint) ||
|
|
282
|
+
(0x2113 == codePoint) ||
|
|
283
|
+
(0x2116 == codePoint) ||
|
|
284
|
+
(0x2121 <= codePoint && codePoint <= 0x2122) ||
|
|
285
|
+
(0x2126 == codePoint) ||
|
|
286
|
+
(0x212B == codePoint) ||
|
|
287
|
+
(0x2153 <= codePoint && codePoint <= 0x2154) ||
|
|
288
|
+
(0x215B <= codePoint && codePoint <= 0x215E) ||
|
|
289
|
+
(0x2160 <= codePoint && codePoint <= 0x216B) ||
|
|
290
|
+
(0x2170 <= codePoint && codePoint <= 0x2179) ||
|
|
291
|
+
(0x2189 == codePoint) ||
|
|
292
|
+
(0x2190 <= codePoint && codePoint <= 0x2199) ||
|
|
293
|
+
(0x21B8 <= codePoint && codePoint <= 0x21B9) ||
|
|
294
|
+
(0x21D2 == codePoint) ||
|
|
295
|
+
(0x21D4 == codePoint) ||
|
|
296
|
+
(0x21E7 == codePoint) ||
|
|
297
|
+
(0x2200 == codePoint) ||
|
|
298
|
+
(0x2202 <= codePoint && codePoint <= 0x2203) ||
|
|
299
|
+
(0x2207 <= codePoint && codePoint <= 0x2208) ||
|
|
300
|
+
(0x220B == codePoint) ||
|
|
301
|
+
(0x220F == codePoint) ||
|
|
302
|
+
(0x2211 == codePoint) ||
|
|
303
|
+
(0x2215 == codePoint) ||
|
|
304
|
+
(0x221A == codePoint) ||
|
|
305
|
+
(0x221D <= codePoint && codePoint <= 0x2220) ||
|
|
306
|
+
(0x2223 == codePoint) ||
|
|
307
|
+
(0x2225 == codePoint) ||
|
|
308
|
+
(0x2227 <= codePoint && codePoint <= 0x222C) ||
|
|
309
|
+
(0x222E == codePoint) ||
|
|
310
|
+
(0x2234 <= codePoint && codePoint <= 0x2237) ||
|
|
311
|
+
(0x223C <= codePoint && codePoint <= 0x223D) ||
|
|
312
|
+
(0x2248 == codePoint) ||
|
|
313
|
+
(0x224C == codePoint) ||
|
|
314
|
+
(0x2252 == codePoint) ||
|
|
315
|
+
(0x2260 <= codePoint && codePoint <= 0x2261) ||
|
|
316
|
+
(0x2264 <= codePoint && codePoint <= 0x2267) ||
|
|
317
|
+
(0x226A <= codePoint && codePoint <= 0x226B) ||
|
|
318
|
+
(0x226E <= codePoint && codePoint <= 0x226F) ||
|
|
319
|
+
(0x2282 <= codePoint && codePoint <= 0x2283) ||
|
|
320
|
+
(0x2286 <= codePoint && codePoint <= 0x2287) ||
|
|
321
|
+
(0x2295 == codePoint) ||
|
|
322
|
+
(0x2299 == codePoint) ||
|
|
323
|
+
(0x22A5 == codePoint) ||
|
|
324
|
+
(0x22BF == codePoint) ||
|
|
325
|
+
(0x2312 == codePoint) ||
|
|
326
|
+
(0x2460 <= codePoint && codePoint <= 0x24E9) ||
|
|
327
|
+
(0x24EB <= codePoint && codePoint <= 0x254B) ||
|
|
328
|
+
(0x2550 <= codePoint && codePoint <= 0x2573) ||
|
|
329
|
+
(0x2580 <= codePoint && codePoint <= 0x258F) ||
|
|
330
|
+
(0x2592 <= codePoint && codePoint <= 0x2595) ||
|
|
331
|
+
(0x25A0 <= codePoint && codePoint <= 0x25A1) ||
|
|
332
|
+
(0x25A3 <= codePoint && codePoint <= 0x25A9) ||
|
|
333
|
+
(0x25B2 <= codePoint && codePoint <= 0x25B3) ||
|
|
334
|
+
(0x25B6 <= codePoint && codePoint <= 0x25B7) ||
|
|
335
|
+
(0x25BC <= codePoint && codePoint <= 0x25BD) ||
|
|
336
|
+
(0x25C0 <= codePoint && codePoint <= 0x25C1) ||
|
|
337
|
+
(0x25C6 <= codePoint && codePoint <= 0x25C8) ||
|
|
338
|
+
(0x25CB == codePoint) ||
|
|
339
|
+
(0x25CE <= codePoint && codePoint <= 0x25D1) ||
|
|
340
|
+
(0x25E2 <= codePoint && codePoint <= 0x25E5) ||
|
|
341
|
+
(0x25EF == codePoint) ||
|
|
342
|
+
(0x2605 <= codePoint && codePoint <= 0x2606) ||
|
|
343
|
+
(0x2609 == codePoint) ||
|
|
344
|
+
(0x260E <= codePoint && codePoint <= 0x260F) ||
|
|
345
|
+
(0x2614 <= codePoint && codePoint <= 0x2615) ||
|
|
346
|
+
(0x261C == codePoint) ||
|
|
347
|
+
(0x261E == codePoint) ||
|
|
348
|
+
(0x2640 == codePoint) ||
|
|
349
|
+
(0x2642 == codePoint) ||
|
|
350
|
+
(0x2660 <= codePoint && codePoint <= 0x2661) ||
|
|
351
|
+
(0x2663 <= codePoint && codePoint <= 0x2665) ||
|
|
352
|
+
(0x2667 <= codePoint && codePoint <= 0x266A) ||
|
|
353
|
+
(0x266C <= codePoint && codePoint <= 0x266D) ||
|
|
354
|
+
(0x266F == codePoint) ||
|
|
355
|
+
(0x269E <= codePoint && codePoint <= 0x269F) ||
|
|
356
|
+
(0x26BE <= codePoint && codePoint <= 0x26BF) ||
|
|
357
|
+
(0x26C4 <= codePoint && codePoint <= 0x26CD) ||
|
|
358
|
+
(0x26CF <= codePoint && codePoint <= 0x26E1) ||
|
|
359
|
+
(0x26E3 == codePoint) ||
|
|
360
|
+
(0x26E8 <= codePoint && codePoint <= 0x26FF) ||
|
|
361
|
+
(0x273D == codePoint) ||
|
|
362
|
+
(0x2757 == codePoint) ||
|
|
363
|
+
(0x2776 <= codePoint && codePoint <= 0x277F) ||
|
|
364
|
+
(0x2B55 <= codePoint && codePoint <= 0x2B59) ||
|
|
365
|
+
(0x3248 <= codePoint && codePoint <= 0x324F) ||
|
|
366
|
+
(0xE000 <= codePoint && codePoint <= 0xF8FF) ||
|
|
367
|
+
(0xFE00 <= codePoint && codePoint <= 0xFE0F) ||
|
|
368
|
+
(0xFFFD == codePoint) ||
|
|
369
|
+
(0x1F100 <= codePoint && codePoint <= 0x1F10A) ||
|
|
370
|
+
(0x1F110 <= codePoint && codePoint <= 0x1F12D) ||
|
|
371
|
+
(0x1F130 <= codePoint && codePoint <= 0x1F169) ||
|
|
372
|
+
(0x1F170 <= codePoint && codePoint <= 0x1F19A) ||
|
|
373
|
+
(0xE0100 <= codePoint && codePoint <= 0xE01EF) ||
|
|
374
|
+
(0xF0000 <= codePoint && codePoint <= 0xFFFFD) ||
|
|
375
|
+
(0x100000 <= codePoint && codePoint <= 0x10FFFD)) {
|
|
376
|
+
return 'A';
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
return 'N';
|
|
380
|
+
};
|
|
381
|
+
|
|
382
|
+
eaw.characterLength = function(character) {
|
|
383
|
+
var code = this.eastAsianWidth(character);
|
|
384
|
+
if (code == 'F' || code == 'W' || code == 'A') {
|
|
385
|
+
return 2;
|
|
386
|
+
} else {
|
|
387
|
+
return 1;
|
|
388
|
+
}
|
|
389
|
+
};
|
|
390
|
+
|
|
391
|
+
// Split a string considering surrogate-pairs.
|
|
392
|
+
function stringToArray(string) {
|
|
393
|
+
return string.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g) || [];
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
eaw.length = function(string) {
|
|
397
|
+
var characters = stringToArray(string);
|
|
398
|
+
var len = 0;
|
|
399
|
+
for (var i = 0; i < characters.length; i++) {
|
|
400
|
+
len = len + this.characterLength(characters[i]);
|
|
401
|
+
}
|
|
402
|
+
return len;
|
|
403
|
+
};
|
|
404
|
+
|
|
405
|
+
eaw.slice = function(text, start, end) {
|
|
406
|
+
textLen = eaw.length(text);
|
|
407
|
+
start = start ? start : 0;
|
|
408
|
+
end = end ? end : 1;
|
|
409
|
+
if (start < 0) {
|
|
410
|
+
start = textLen + start;
|
|
411
|
+
}
|
|
412
|
+
if (end < 0) {
|
|
413
|
+
end = textLen + end;
|
|
414
|
+
}
|
|
415
|
+
var result = '';
|
|
416
|
+
var eawLen = 0;
|
|
417
|
+
var chars = stringToArray(text);
|
|
418
|
+
for (var i = 0; i < chars.length; i++) {
|
|
419
|
+
var char = chars[i];
|
|
420
|
+
var charLen = eaw.length(char);
|
|
421
|
+
if (eawLen >= start - (charLen == 2 ? 1 : 0)) {
|
|
422
|
+
if (eawLen + charLen <= end) {
|
|
423
|
+
result += char;
|
|
424
|
+
} else {
|
|
425
|
+
break;
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
eawLen += charLen;
|
|
429
|
+
}
|
|
430
|
+
return result;
|
|
431
|
+
};
|
|
432
|
+
} (eastasianwidth));
|
|
433
|
+
|
|
434
|
+
var eastasianwidthExports = eastasianwidth.exports;
|
|
435
|
+
const eastAsianWidth = /*@__PURE__*/getDefaultExportFromCjs(eastasianwidthExports);
|
|
436
|
+
|
|
437
|
+
const emojiRegex = () => {
|
|
438
|
+
// https://mths.be/emoji
|
|
439
|
+
return /[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC3\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC08\uDC26](?:\u200D\u2B1B)?|[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;
|
|
440
|
+
};
|
|
441
|
+
|
|
442
|
+
function stringWidth$1(string, options) {
|
|
443
|
+
if (typeof string !== 'string' || string.length === 0) {
|
|
444
|
+
return 0;
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
options = {
|
|
448
|
+
ambiguousIsNarrow: true,
|
|
449
|
+
countAnsiEscapeCodes: false,
|
|
450
|
+
...options,
|
|
451
|
+
};
|
|
452
|
+
|
|
453
|
+
if (!options.countAnsiEscapeCodes) {
|
|
454
|
+
string = stripAnsi(string);
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
if (string.length === 0) {
|
|
458
|
+
return 0;
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
const ambiguousCharacterWidth = options.ambiguousIsNarrow ? 1 : 2;
|
|
462
|
+
let width = 0;
|
|
463
|
+
|
|
464
|
+
for (const {segment: character} of new Intl.Segmenter().segment(string)) {
|
|
465
|
+
const codePoint = character.codePointAt(0);
|
|
466
|
+
|
|
467
|
+
// Ignore control characters
|
|
468
|
+
if (codePoint <= 0x1F || (codePoint >= 0x7F && codePoint <= 0x9F)) {
|
|
469
|
+
continue;
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
// Ignore combining characters
|
|
473
|
+
if (codePoint >= 0x3_00 && codePoint <= 0x3_6F) {
|
|
474
|
+
continue;
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
if (emojiRegex().test(character)) {
|
|
478
|
+
width += 2;
|
|
479
|
+
continue;
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
const code = eastAsianWidth.eastAsianWidth(character);
|
|
483
|
+
switch (code) {
|
|
484
|
+
case 'F':
|
|
485
|
+
case 'W': {
|
|
486
|
+
width += 2;
|
|
487
|
+
break;
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
case 'A': {
|
|
491
|
+
width += ambiguousCharacterWidth;
|
|
492
|
+
break;
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
default: {
|
|
496
|
+
width += 1;
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
return width;
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
function isUnicodeSupported() {
|
|
505
|
+
if (process__default.platform !== 'win32') {
|
|
506
|
+
return process__default.env.TERM !== 'linux'; // Linux console (kernel)
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
return Boolean(process__default.env.CI)
|
|
510
|
+
|| Boolean(process__default.env.WT_SESSION) // Windows Terminal
|
|
511
|
+
|| Boolean(process__default.env.TERMINUS_SUBLIME) // Terminus (<0.2.27)
|
|
512
|
+
|| process__default.env.ConEmuTask === '{cmd::Cmder}' // ConEmu and cmder
|
|
513
|
+
|| process__default.env.TERM_PROGRAM === 'Terminus-Sublime'
|
|
514
|
+
|| process__default.env.TERM_PROGRAM === 'vscode'
|
|
515
|
+
|| process__default.env.TERM === 'xterm-256color'
|
|
516
|
+
|| process__default.env.TERM === 'alacritty'
|
|
517
|
+
|| process__default.env.TERMINAL_EMULATOR === 'JetBrains-JediTerm';
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
const TYPE_COLOR_MAP = {
|
|
521
|
+
info: "cyan",
|
|
522
|
+
fail: "red",
|
|
523
|
+
success: "green",
|
|
524
|
+
ready: "green",
|
|
525
|
+
start: "magenta"
|
|
526
|
+
};
|
|
527
|
+
const LEVEL_COLOR_MAP = {
|
|
528
|
+
0: "red",
|
|
529
|
+
1: "yellow"
|
|
530
|
+
};
|
|
531
|
+
const unicode = isUnicodeSupported();
|
|
532
|
+
const s = (c, fallback) => unicode ? c : fallback;
|
|
533
|
+
const TYPE_ICONS = {
|
|
534
|
+
error: s("\u2716", "\xD7"),
|
|
535
|
+
fatal: s("\u2716", "\xD7"),
|
|
536
|
+
ready: s("\u2714", "\u221A"),
|
|
537
|
+
warn: s("\u26A0", "\u203C"),
|
|
538
|
+
info: s("\u2139", "i"),
|
|
539
|
+
success: s("\u2714", "\u221A"),
|
|
540
|
+
debug: s("\u2699", "D"),
|
|
541
|
+
trace: s("\u2192", "\u2192"),
|
|
542
|
+
fail: s("\u2716", "\xD7"),
|
|
543
|
+
start: s("\u25D0", "o"),
|
|
544
|
+
log: ""
|
|
545
|
+
};
|
|
546
|
+
function stringWidth(str) {
|
|
547
|
+
if (!Intl.Segmenter) {
|
|
548
|
+
return utils.stripAnsi(str).length;
|
|
549
|
+
}
|
|
550
|
+
return stringWidth$1(str);
|
|
551
|
+
}
|
|
552
|
+
class FancyReporter extends basic.BasicReporter {
|
|
553
|
+
formatStack(stack) {
|
|
554
|
+
return "\n" + basic.parseStack(stack).map(
|
|
555
|
+
(line) => " " + line.replace(/^at +/, (m) => utils.colors.gray(m)).replace(/\((.+)\)/, (_, m) => `(${utils.colors.cyan(m)})`)
|
|
556
|
+
).join("\n");
|
|
557
|
+
}
|
|
558
|
+
formatType(logObj, isBadge, opts) {
|
|
559
|
+
const typeColor = TYPE_COLOR_MAP[logObj.type] || LEVEL_COLOR_MAP[logObj.level] || "gray";
|
|
560
|
+
if (isBadge) {
|
|
561
|
+
return getBgColor(typeColor)(
|
|
562
|
+
utils.colors.black(` ${logObj.type.toUpperCase()} `)
|
|
563
|
+
);
|
|
564
|
+
}
|
|
565
|
+
const _type = typeof TYPE_ICONS[logObj.type] === "string" ? TYPE_ICONS[logObj.type] : logObj.icon || logObj.type;
|
|
566
|
+
return _type ? getColor(typeColor)(_type) : "";
|
|
567
|
+
}
|
|
568
|
+
formatLogObj(logObj, opts) {
|
|
569
|
+
const [message, ...additional] = this.formatArgs(logObj.args, opts).split(
|
|
570
|
+
"\n"
|
|
571
|
+
);
|
|
572
|
+
if (logObj.type === "box") {
|
|
573
|
+
return utils.box(
|
|
574
|
+
characterFormat(
|
|
575
|
+
message + (additional.length > 0 ? "\n" + additional.join("\n") : "")
|
|
576
|
+
),
|
|
577
|
+
{
|
|
578
|
+
title: logObj.title ? characterFormat(logObj.title) : void 0,
|
|
579
|
+
style: logObj.style
|
|
580
|
+
}
|
|
581
|
+
);
|
|
582
|
+
}
|
|
583
|
+
const date = this.formatDate(logObj.date, opts);
|
|
584
|
+
const coloredDate = date && utils.colors.gray(date);
|
|
585
|
+
const isBadge = logObj.badge ?? logObj.level < 2;
|
|
586
|
+
const type = this.formatType(logObj, isBadge, opts);
|
|
587
|
+
const tag = logObj.tag ? utils.colors.gray(logObj.tag) : "";
|
|
588
|
+
let line;
|
|
589
|
+
const left = this.filterAndJoin([type, characterFormat(message)]);
|
|
590
|
+
const right = this.filterAndJoin(opts.columns ? [tag, coloredDate] : [tag]);
|
|
591
|
+
const space = (opts.columns || 0) - stringWidth(left) - stringWidth(right) - 2;
|
|
592
|
+
line = space > 0 && (opts.columns || 0) >= 80 ? left + " ".repeat(space) + right : (right ? `${utils.colors.gray(`[${right}]`)} ` : "") + left;
|
|
593
|
+
line += characterFormat(
|
|
594
|
+
additional.length > 0 ? "\n" + additional.join("\n") : ""
|
|
595
|
+
);
|
|
596
|
+
if (logObj.type === "trace") {
|
|
597
|
+
const _err = new Error("Trace: " + logObj.message);
|
|
598
|
+
line += this.formatStack(_err.stack || "");
|
|
599
|
+
}
|
|
600
|
+
return isBadge ? "\n" + line + "\n" : line;
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
function characterFormat(str) {
|
|
604
|
+
return str.replace(/`([^`]+)`/gm, (_, m) => utils.colors.cyan(m)).replace(/\s+_([^_]+)_\s+/gm, (_, m) => ` ${utils.colors.underline(m)} `);
|
|
605
|
+
}
|
|
606
|
+
function getColor(color = "white") {
|
|
607
|
+
return utils.colors[color] || utils.colors.white;
|
|
608
|
+
}
|
|
609
|
+
function getBgColor(color = "bgWhite") {
|
|
610
|
+
return utils.colors[`bg${color[0].toUpperCase()}${color.slice(1)}`] || utils.colors.bgWhite;
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
function createConsola(options = {}) {
|
|
614
|
+
let level = _getDefaultLogLevel();
|
|
615
|
+
if (process.env.CONSOLA_LEVEL) {
|
|
616
|
+
level = Number.parseInt(process.env.CONSOLA_LEVEL) ?? level;
|
|
617
|
+
}
|
|
618
|
+
const consola2 = core.createConsola({
|
|
619
|
+
level,
|
|
620
|
+
defaults: { level },
|
|
621
|
+
stdout: process.stdout,
|
|
622
|
+
stderr: process.stderr,
|
|
623
|
+
prompt: (...args) => import('../chunks/prompt.cjs').then((m) => m.prompt(...args)),
|
|
624
|
+
reporters: options.reporters || [
|
|
625
|
+
options.fancy ?? !(isCI || isTest) ? new FancyReporter() : new basic.BasicReporter()
|
|
626
|
+
],
|
|
627
|
+
...options
|
|
628
|
+
});
|
|
629
|
+
return consola2;
|
|
630
|
+
}
|
|
631
|
+
function _getDefaultLogLevel() {
|
|
632
|
+
if (isDebug) {
|
|
633
|
+
return core.LogLevels.debug;
|
|
634
|
+
}
|
|
635
|
+
if (isTest) {
|
|
636
|
+
return core.LogLevels.warn;
|
|
637
|
+
}
|
|
638
|
+
return core.LogLevels.info;
|
|
639
|
+
}
|
|
640
|
+
const consola = createConsola();
|
|
641
|
+
|
|
642
|
+
exports.consola = consola;
|
|
643
|
+
exports.createConsola = createConsola;
|
|
644
|
+
exports.getDefaultExportFromCjs = getDefaultExportFromCjs;
|
|
645
|
+
exports.isUnicodeSupported = isUnicodeSupported;
|