@geniusdynamics/ns8-ui-lib 1.0.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/README.md +167 -0
- package/dist/index.d.ts +14 -0
- package/dist/ns8-ui-lib.es.js +4278 -0
- package/dist/ns8-ui-lib.es.js.map +1 -0
- package/dist/ns8-ui-lib.umd.js +7 -0
- package/dist/ns8-ui-lib.umd.js.map +1 -0
- package/dist/src/App.vue.d.ts +2 -0
- package/dist/src/components/HelloWorld.vue.d.ts +5 -0
- package/dist/src/components/NS/cards/NSBackupCard.vue.d.ts +51 -0
- package/dist/src/components/NS/cards/NSSystemInfoCard.vue.d.ts +58 -0
- package/dist/src/components/NS/cards/NSSystemdServiceCard.vue.d.ts +47 -0
- package/dist/src/components/NS/cards/index.d.ts +3 -0
- package/dist/src/components/NS/checkbox/NSCheckbox.vue.d.ts +37 -0
- package/dist/src/components/NS/checkbox/index.d.ts +1 -0
- package/dist/src/components/NS/data-table/NSDataTable.vue.d.ts +98 -0
- package/dist/src/components/NS/data-table/index.d.ts +1 -0
- package/dist/src/components/NS/empty-state/NSEmptyState.vue.d.ts +45 -0
- package/dist/src/components/NS/empty-state/index.d.ts +1 -0
- package/dist/src/components/NS/index.d.ts +35 -0
- package/dist/src/components/NS/inline-notification/NSInlineNotification.vue.d.ts +44 -0
- package/dist/src/components/NS/inline-notification/index.d.ts +1 -0
- package/dist/src/components/NS/lottie-animation/NSLottieAnimation.vue.d.ts +75 -0
- package/dist/src/components/NS/lottie-animation/index.d.ts +1 -0
- package/dist/src/components/NS/modal/NSModal.vue.d.ts +56 -0
- package/dist/src/components/NS/modal/NSModalTrigger.vue.d.ts +64 -0
- package/dist/src/components/NS/modal/index.d.ts +2 -0
- package/dist/src/components/NS/pagination/NSPagination.vue.d.ts +36 -0
- package/dist/src/components/NS/pagination/index.d.ts +1 -0
- package/dist/src/components/NS/progress/NSProgress.vue.d.ts +37 -0
- package/dist/src/components/NS/progress/NSProgressBar.vue.d.ts +39 -0
- package/dist/src/components/NS/progress/index.d.ts +2 -0
- package/dist/src/components/NS/slider/NSByteSlider.vue.d.ts +50 -0
- package/dist/src/components/NS/slider/NSSlider.vue.d.ts +49 -0
- package/dist/src/components/NS/slider/index.d.ts +2 -0
- package/dist/src/components/NS/tag/NSTag.vue.d.ts +41 -0
- package/dist/src/components/NS/tag/index.d.ts +1 -0
- package/dist/src/components/NS/text-input/NSTextInput.vue.d.ts +67 -0
- package/dist/src/components/NS/text-input/index.d.ts +1 -0
- package/dist/src/components/NS/toast-notification/NSToastNotification.vue.d.ts +44 -0
- package/dist/src/components/NS/toast-notification/index.d.ts +1 -0
- package/dist/src/components/NS/toggle/NSToggle.vue.d.ts +51 -0
- package/dist/src/components/NS/toggle/index.d.ts +1 -0
- package/dist/src/components/NS/wizard/NSWizard.vue.d.ts +86 -0
- package/dist/src/components/NS/wizard/index.d.ts +1 -0
- package/dist/src/components/ui/button/Button.vue.d.ts +27 -0
- package/dist/src/components/ui/button/index.d.ts +7 -0
- package/dist/src/components/ui/card/Card.vue.d.ts +21 -0
- package/dist/src/components/ui/card/CardAction.vue.d.ts +21 -0
- package/dist/src/components/ui/card/CardContent.vue.d.ts +21 -0
- package/dist/src/components/ui/card/CardDescription.vue.d.ts +21 -0
- package/dist/src/components/ui/card/CardFooter.vue.d.ts +21 -0
- package/dist/src/components/ui/card/CardHeader.vue.d.ts +21 -0
- package/dist/src/components/ui/card/CardTitle.vue.d.ts +21 -0
- package/dist/src/components/ui/card/index.d.ts +7 -0
- package/dist/src/components/ui/checkbox/NsCheckbox.vue.d.ts +49 -0
- package/dist/src/components/ui/checkbox/index.d.ts +11 -0
- package/dist/src/components/ui/dialog/Dialog.vue.d.ts +28 -0
- package/dist/src/components/ui/dialog/index.d.ts +1 -0
- package/dist/src/components/ui/empty-state/NsEmptyState.vue.d.ts +45 -0
- package/dist/src/components/ui/empty-state/index.d.ts +11 -0
- package/dist/src/components/ui/inline-notification/NsInlineNotification.vue.d.ts +45 -0
- package/dist/src/components/ui/inline-notification/index.d.ts +6 -0
- package/dist/src/components/ui/input/Input.vue.d.ts +12 -0
- package/dist/src/components/ui/input/index.d.ts +1 -0
- package/dist/src/components/ui/input-group/InputGroup.vue.d.ts +21 -0
- package/dist/src/components/ui/input-group/InputGroupAddon.vue.d.ts +25 -0
- package/dist/src/components/ui/input-group/InputGroupButton.vue.d.ts +22 -0
- package/dist/src/components/ui/input-group/InputGroupInput.vue.d.ts +6 -0
- package/dist/src/components/ui/input-group/InputGroupText.vue.d.ts +21 -0
- package/dist/src/components/ui/input-group/InputGroupTextarea.vue.d.ts +6 -0
- package/dist/src/components/ui/input-group/index.d.ts +22 -0
- package/dist/src/components/ui/item/Item.vue.d.ts +27 -0
- package/dist/src/components/ui/item/ItemActions.vue.d.ts +21 -0
- package/dist/src/components/ui/item/ItemContent.vue.d.ts +21 -0
- package/dist/src/components/ui/item/ItemDescription.vue.d.ts +21 -0
- package/dist/src/components/ui/item/ItemFooter.vue.d.ts +21 -0
- package/dist/src/components/ui/item/ItemGroup.vue.d.ts +21 -0
- package/dist/src/components/ui/item/ItemHeader.vue.d.ts +21 -0
- package/dist/src/components/ui/item/ItemMedia.vue.d.ts +23 -0
- package/dist/src/components/ui/item/ItemSeparator.vue.d.ts +7 -0
- package/dist/src/components/ui/item/ItemTitle.vue.d.ts +21 -0
- package/dist/src/components/ui/item/index.d.ts +20 -0
- package/dist/src/components/ui/label/Label.vue.d.ts +22 -0
- package/dist/src/components/ui/label/index.d.ts +1 -0
- package/dist/src/components/ui/scroll-area/ScrollArea.vue.d.ts +22 -0
- package/dist/src/components/ui/scroll-area/ScrollBar.vue.d.ts +9 -0
- package/dist/src/components/ui/scroll-area/index.d.ts +2 -0
- package/dist/src/components/ui/select/Select.vue.d.ts +28 -0
- package/dist/src/components/ui/select/SelectContent.vue.d.ts +32 -0
- package/dist/src/components/ui/select/SelectGroup.vue.d.ts +18 -0
- package/dist/src/components/ui/select/SelectItem.vue.d.ts +23 -0
- package/dist/src/components/ui/select/SelectItemText.vue.d.ts +18 -0
- package/dist/src/components/ui/select/SelectLabel.vue.d.ts +22 -0
- package/dist/src/components/ui/select/SelectScrollDownButton.vue.d.ts +22 -0
- package/dist/src/components/ui/select/SelectScrollUpButton.vue.d.ts +22 -0
- package/dist/src/components/ui/select/SelectSeparator.vue.d.ts +7 -0
- package/dist/src/components/ui/select/SelectTrigger.vue.d.ts +25 -0
- package/dist/src/components/ui/select/SelectValue.vue.d.ts +18 -0
- package/dist/src/components/ui/select/index.d.ts +11 -0
- package/dist/src/components/ui/separator/Separator.vue.d.ts +10 -0
- package/dist/src/components/ui/separator/index.d.ts +1 -0
- package/dist/src/components/ui/sheet/Sheet.vue.d.ts +25 -0
- package/dist/src/components/ui/sheet/SheetClose.vue.d.ts +18 -0
- package/dist/src/components/ui/sheet/SheetContent.vue.d.ts +39 -0
- package/dist/src/components/ui/sheet/SheetDescription.vue.d.ts +22 -0
- package/dist/src/components/ui/sheet/SheetFooter.vue.d.ts +21 -0
- package/dist/src/components/ui/sheet/SheetHeader.vue.d.ts +21 -0
- package/dist/src/components/ui/sheet/SheetOverlay.vue.d.ts +22 -0
- package/dist/src/components/ui/sheet/SheetTitle.vue.d.ts +22 -0
- package/dist/src/components/ui/sheet/SheetTrigger.vue.d.ts +18 -0
- package/dist/src/components/ui/sheet/index.d.ts +8 -0
- package/dist/src/components/ui/sidebar/Sidebar.vue.d.ts +24 -0
- package/dist/src/components/ui/sidebar/SidebarContent.vue.d.ts +21 -0
- package/dist/src/components/ui/sidebar/SidebarFooter.vue.d.ts +21 -0
- package/dist/src/components/ui/sidebar/SidebarGroup.vue.d.ts +21 -0
- package/dist/src/components/ui/sidebar/SidebarGroupAction.vue.d.ts +22 -0
- package/dist/src/components/ui/sidebar/SidebarGroupContent.vue.d.ts +21 -0
- package/dist/src/components/ui/sidebar/SidebarGroupLabel.vue.d.ts +22 -0
- package/dist/src/components/ui/sidebar/SidebarHeader.vue.d.ts +21 -0
- package/dist/src/components/ui/sidebar/SidebarInput.vue.d.ts +21 -0
- package/dist/src/components/ui/sidebar/SidebarInset.vue.d.ts +21 -0
- package/dist/src/components/ui/sidebar/SidebarMenu.vue.d.ts +21 -0
- package/dist/src/components/ui/sidebar/SidebarMenuAction.vue.d.ts +25 -0
- package/dist/src/components/ui/sidebar/SidebarMenuBadge.vue.d.ts +21 -0
- package/dist/src/components/ui/sidebar/SidebarMenuButton.vue.d.ts +27 -0
- package/dist/src/components/ui/sidebar/SidebarMenuButtonChild.vue.d.ts +30 -0
- package/dist/src/components/ui/sidebar/SidebarMenuItem.vue.d.ts +21 -0
- package/dist/src/components/ui/sidebar/SidebarMenuSkeleton.vue.d.ts +7 -0
- package/dist/src/components/ui/sidebar/SidebarMenuSub.vue.d.ts +21 -0
- package/dist/src/components/ui/sidebar/SidebarMenuSubButton.vue.d.ts +27 -0
- package/dist/src/components/ui/sidebar/SidebarMenuSubItem.vue.d.ts +21 -0
- package/dist/src/components/ui/sidebar/SidebarProvider.vue.d.ts +30 -0
- package/dist/src/components/ui/sidebar/SidebarRail.vue.d.ts +21 -0
- package/dist/src/components/ui/sidebar/SidebarSeparator.vue.d.ts +21 -0
- package/dist/src/components/ui/sidebar/SidebarTrigger.vue.d.ts +6 -0
- package/dist/src/components/ui/sidebar/index.d.ts +37 -0
- package/dist/src/components/ui/sidebar/utils.d.ts +56 -0
- package/dist/src/components/ui/skeleton/Skeleton.vue.d.ts +6 -0
- package/dist/src/components/ui/skeleton/index.d.ts +1 -0
- package/dist/src/components/ui/sonner/Sonner.vue.d.ts +3 -0
- package/dist/src/components/ui/sonner/index.d.ts +1 -0
- package/dist/src/components/ui/switch/Switch.vue.d.ts +28 -0
- package/dist/src/components/ui/switch/index.d.ts +1 -0
- package/dist/src/components/ui/table/Table.vue.d.ts +21 -0
- package/dist/src/components/ui/table/TableBody.vue.d.ts +21 -0
- package/dist/src/components/ui/table/TableCaption.vue.d.ts +21 -0
- package/dist/src/components/ui/table/TableCell.vue.d.ts +21 -0
- package/dist/src/components/ui/table/TableEmpty.vue.d.ts +24 -0
- package/dist/src/components/ui/table/TableFooter.vue.d.ts +21 -0
- package/dist/src/components/ui/table/TableHead.vue.d.ts +21 -0
- package/dist/src/components/ui/table/TableHeader.vue.d.ts +21 -0
- package/dist/src/components/ui/table/TableRow.vue.d.ts +21 -0
- package/dist/src/components/ui/table/index.d.ts +9 -0
- package/dist/src/components/ui/table/utils.d.ts +3 -0
- package/dist/src/components/ui/tabs/Tabs.vue.d.ts +28 -0
- package/dist/src/components/ui/tabs/TabsContent.vue.d.ts +22 -0
- package/dist/src/components/ui/tabs/TabsList.vue.d.ts +22 -0
- package/dist/src/components/ui/tabs/TabsTrigger.vue.d.ts +22 -0
- package/dist/src/components/ui/tabs/index.d.ts +4 -0
- package/dist/src/components/ui/tag/NsTag.vue.d.ts +42 -0
- package/dist/src/components/ui/tag/index.d.ts +8 -0
- package/dist/src/components/ui/text-input/NsTextInput.vue.d.ts +79 -0
- package/dist/src/components/ui/text-input/index.d.ts +15 -0
- package/dist/src/components/ui/textarea/Textarea.vue.d.ts +12 -0
- package/dist/src/components/ui/textarea/index.d.ts +1 -0
- package/dist/src/components/ui/toggle/NsToggle.vue.d.ts +54 -0
- package/dist/src/components/ui/toggle/index.d.ts +15 -0
- package/dist/src/components/ui/tooltip/Tooltip.vue.d.ts +24 -0
- package/dist/src/components/ui/tooltip/TooltipContent.vue.d.ts +30 -0
- package/dist/src/components/ui/tooltip/TooltipProvider.vue.d.ts +20 -0
- package/dist/src/components/ui/tooltip/TooltipTrigger.vue.d.ts +18 -0
- package/dist/src/components/ui/tooltip/index.d.ts +4 -0
- package/dist/src/composables/index.d.ts +8 -0
- package/dist/src/composables/useDateTimeService.d.ts +10 -0
- package/dist/src/composables/useFilterService.d.ts +8 -0
- package/dist/src/composables/useIconService.d.ts +153 -0
- package/dist/src/composables/usePageTitleService.d.ts +3 -0
- package/dist/src/composables/useQueryParamService.d.ts +13 -0
- package/dist/src/composables/useStorageService.d.ts +5 -0
- package/dist/src/composables/useTaskService.d.ts +18 -0
- package/dist/src/composables/useUtilService.d.ts +27 -0
- package/dist/src/lib/utils.d.ts +2 -0
- package/dist/src/main.d.ts +0 -0
- package/dist/vite.svg +1 -0
- package/package.json +80 -0
- package/src/App.vue +30 -0
- package/src/components/HelloWorld.vue +41 -0
- package/src/components/NS/CompleteDemo.vue +475 -0
- package/src/components/NS/Demo.vue +191 -0
- package/src/components/NS/cards/NSBackupCard.vue +272 -0
- package/src/components/NS/cards/NSSystemInfoCard.vue +252 -0
- package/src/components/NS/cards/NSSystemdServiceCard.vue +250 -0
- package/src/components/NS/checkbox/NSCheckbox.vue +104 -0
- package/src/components/NS/data-table/NSDataTable.vue +434 -0
- package/src/components/NS/empty-state/NSEmptyState.vue +188 -0
- package/src/components/NS/inline-notification/NSInlineNotification.vue +162 -0
- package/src/components/NS/lottie-animation/NSLottieAnimation.vue +255 -0
- package/src/components/NS/modal/NSModal.vue +193 -0
- package/src/components/NS/modal/NSModalTrigger.vue +109 -0
- package/src/components/NS/pagination/NSPagination.vue +247 -0
- package/src/components/NS/progress/NSProgress.vue +115 -0
- package/src/components/NS/progress/NSProgressBar.vue +137 -0
- package/src/components/NS/slider/NSByteSlider.vue +144 -0
- package/src/components/NS/slider/NSSlider.vue +142 -0
- package/src/components/NS/tag/NSTag.vue +139 -0
- package/src/components/NS/text-input/NSTextInput.vue +242 -0
- package/src/components/NS/toast-notification/NSToastNotification.vue +163 -0
- package/src/components/NS/toggle/NSToggle.vue +156 -0
- package/src/components/NS/wizard/NSWizard.vue +399 -0
- package/src/components/ui/button/Button.vue +29 -0
- package/src/components/ui/card/Card.vue +22 -0
- package/src/components/ui/card/CardAction.vue +17 -0
- package/src/components/ui/card/CardContent.vue +17 -0
- package/src/components/ui/card/CardDescription.vue +17 -0
- package/src/components/ui/card/CardFooter.vue +17 -0
- package/src/components/ui/card/CardHeader.vue +17 -0
- package/src/components/ui/card/CardTitle.vue +17 -0
- package/src/components/ui/checkbox/NsCheckbox.vue +123 -0
- package/src/components/ui/dialog/Dialog.vue +68 -0
- package/src/components/ui/empty-state/NsEmptyState.vue +149 -0
- package/src/components/ui/inline-notification/NsInlineNotification.vue +163 -0
- package/src/components/ui/input/Input.vue +33 -0
- package/src/components/ui/input-group/InputGroup.vue +35 -0
- package/src/components/ui/input-group/InputGroupAddon.vue +36 -0
- package/src/components/ui/input-group/InputGroupButton.vue +21 -0
- package/src/components/ui/input-group/InputGroupInput.vue +19 -0
- package/src/components/ui/input-group/InputGroupText.vue +19 -0
- package/src/components/ui/input-group/InputGroupTextarea.vue +19 -0
- package/src/components/ui/item/Item.vue +27 -0
- package/src/components/ui/item/ItemActions.vue +17 -0
- package/src/components/ui/item/ItemContent.vue +17 -0
- package/src/components/ui/item/ItemDescription.vue +21 -0
- package/src/components/ui/item/ItemFooter.vue +17 -0
- package/src/components/ui/item/ItemGroup.vue +18 -0
- package/src/components/ui/item/ItemHeader.vue +17 -0
- package/src/components/ui/item/ItemMedia.vue +21 -0
- package/src/components/ui/item/ItemSeparator.vue +18 -0
- package/src/components/ui/item/ItemTitle.vue +17 -0
- package/src/components/ui/label/Label.vue +26 -0
- package/src/components/ui/scroll-area/ScrollArea.vue +33 -0
- package/src/components/ui/scroll-area/ScrollBar.vue +32 -0
- package/src/components/ui/select/Select.vue +19 -0
- package/src/components/ui/select/SelectContent.vue +51 -0
- package/src/components/ui/select/SelectGroup.vue +15 -0
- package/src/components/ui/select/SelectItem.vue +44 -0
- package/src/components/ui/select/SelectItemText.vue +15 -0
- package/src/components/ui/select/SelectLabel.vue +17 -0
- package/src/components/ui/select/SelectScrollDownButton.vue +26 -0
- package/src/components/ui/select/SelectScrollUpButton.vue +26 -0
- package/src/components/ui/select/SelectSeparator.vue +19 -0
- package/src/components/ui/select/SelectTrigger.vue +33 -0
- package/src/components/ui/select/SelectValue.vue +15 -0
- package/src/components/ui/separator/Separator.vue +29 -0
- package/src/components/ui/sheet/Sheet.vue +19 -0
- package/src/components/ui/sheet/SheetClose.vue +15 -0
- package/src/components/ui/sheet/SheetContent.vue +62 -0
- package/src/components/ui/sheet/SheetDescription.vue +21 -0
- package/src/components/ui/sheet/SheetFooter.vue +16 -0
- package/src/components/ui/sheet/SheetHeader.vue +15 -0
- package/src/components/ui/sheet/SheetOverlay.vue +21 -0
- package/src/components/ui/sheet/SheetTitle.vue +21 -0
- package/src/components/ui/sheet/SheetTrigger.vue +15 -0
- package/src/components/ui/sidebar/Sidebar.vue +96 -0
- package/src/components/ui/sidebar/SidebarContent.vue +18 -0
- package/src/components/ui/sidebar/SidebarFooter.vue +18 -0
- package/src/components/ui/sidebar/SidebarGroup.vue +18 -0
- package/src/components/ui/sidebar/SidebarGroupAction.vue +27 -0
- package/src/components/ui/sidebar/SidebarGroupContent.vue +18 -0
- package/src/components/ui/sidebar/SidebarGroupLabel.vue +25 -0
- package/src/components/ui/sidebar/SidebarHeader.vue +18 -0
- package/src/components/ui/sidebar/SidebarInput.vue +22 -0
- package/src/components/ui/sidebar/SidebarInset.vue +21 -0
- package/src/components/ui/sidebar/SidebarMenu.vue +18 -0
- package/src/components/ui/sidebar/SidebarMenuAction.vue +35 -0
- package/src/components/ui/sidebar/SidebarMenuBadge.vue +26 -0
- package/src/components/ui/sidebar/SidebarMenuButton.vue +48 -0
- package/src/components/ui/sidebar/SidebarMenuButtonChild.vue +36 -0
- package/src/components/ui/sidebar/SidebarMenuItem.vue +18 -0
- package/src/components/ui/sidebar/SidebarMenuSkeleton.vue +35 -0
- package/src/components/ui/sidebar/SidebarMenuSub.vue +22 -0
- package/src/components/ui/sidebar/SidebarMenuSubButton.vue +36 -0
- package/src/components/ui/sidebar/SidebarMenuSubItem.vue +18 -0
- package/src/components/ui/sidebar/SidebarProvider.vue +82 -0
- package/src/components/ui/sidebar/SidebarRail.vue +33 -0
- package/src/components/ui/sidebar/SidebarSeparator.vue +19 -0
- package/src/components/ui/sidebar/SidebarTrigger.vue +27 -0
- package/src/components/ui/skeleton/Skeleton.vue +17 -0
- package/src/components/ui/sonner/Sonner.vue +42 -0
- package/src/components/ui/switch/Switch.vue +38 -0
- package/src/components/ui/table/Table.vue +16 -0
- package/src/components/ui/table/TableBody.vue +17 -0
- package/src/components/ui/table/TableCaption.vue +17 -0
- package/src/components/ui/table/TableCell.vue +22 -0
- package/src/components/ui/table/TableEmpty.vue +34 -0
- package/src/components/ui/table/TableFooter.vue +17 -0
- package/src/components/ui/table/TableHead.vue +17 -0
- package/src/components/ui/table/TableHeader.vue +17 -0
- package/src/components/ui/table/TableRow.vue +17 -0
- package/src/components/ui/tabs/Tabs.vue +24 -0
- package/src/components/ui/tabs/TabsContent.vue +21 -0
- package/src/components/ui/tabs/TabsList.vue +24 -0
- package/src/components/ui/tabs/TabsTrigger.vue +26 -0
- package/src/components/ui/tag/NsTag.vue +114 -0
- package/src/components/ui/text-input/NsTextInput.vue +269 -0
- package/src/components/ui/textarea/Textarea.vue +28 -0
- package/src/components/ui/toggle/NsToggle.vue +126 -0
- package/src/components/ui/tooltip/Tooltip.vue +19 -0
- package/src/components/ui/tooltip/TooltipContent.vue +34 -0
- package/src/components/ui/tooltip/TooltipProvider.vue +14 -0
- package/src/components/ui/tooltip/TooltipTrigger.vue +15 -0
|
@@ -0,0 +1,4278 @@
|
|
|
1
|
+
import { nextTick as yr, onMounted as br, watch as Tr } from "vue";
|
|
2
|
+
import { CloudUpload as Be, Inbox as Ye, FolderOpen as He, Award as We, XCircle as qe, Filter as je, Ruler as ze, UserCheck as Sr, Box as Q, Asterisk as Xe, Folder as Je, Lock as Ve, Mail as Ze, HelpCircle as Ge, User as ae, AtSign as Mt, BookOpen as Qe, Shield as xt, ServerCog as Ct, ShieldCheck as Pt, Router as At, Users as Dr, Library as Rt, Columns as Or, Rows as Er, Eraser as Ft, Trash2 as Ut, RotateCw as It, MoreVertical as _t, FileText as $t, Power as Ke, AlertTriangle as ee, CircleX as De, CheckCircle as Oe, Hourglass as vt, Clock as Lt, ArrowDown as Bt, HardDrive as Yt, Database as Ht, Network as Wt, Wrench as qt, Link as ye, Calendar as et, ZoomIn as Nr, Check as kr, Star as Mr, Key as xr, Edit as Cr, Server as jt, Copy as Pr, Save as zt, Cpu as Xt, Rocket as Jt, Plus as Ar, Package as Vt, Info as Ee, ChevronRight as Rr, ChevronLeft as Fr, ChevronUp as Ur, ChevronDown as Ir, Settings as tt, TrendingUp as Zt, ExternalLink as _r, Download as $r, RotateCcw as Gt, Minimize2 as vr, Expand as Lr, Search as Br, Bell as Yr, ArrowRight as Qt, X as Hr } from "lucide-vue-next";
|
|
3
|
+
import "vue-router";
|
|
4
|
+
const A = [];
|
|
5
|
+
for (let e = 0; e < 256; ++e)
|
|
6
|
+
A.push((e + 256).toString(16).slice(1));
|
|
7
|
+
function Wr(e, t = 0) {
|
|
8
|
+
return (A[e[t + 0]] + A[e[t + 1]] + A[e[t + 2]] + A[e[t + 3]] + "-" + A[e[t + 4]] + A[e[t + 5]] + "-" + A[e[t + 6]] + A[e[t + 7]] + "-" + A[e[t + 8]] + A[e[t + 9]] + "-" + A[e[t + 10]] + A[e[t + 11]] + A[e[t + 12]] + A[e[t + 13]] + A[e[t + 14]] + A[e[t + 15]]).toLowerCase();
|
|
9
|
+
}
|
|
10
|
+
let nt;
|
|
11
|
+
const qr = new Uint8Array(16);
|
|
12
|
+
function jr() {
|
|
13
|
+
if (!nt) {
|
|
14
|
+
if (typeof crypto > "u" || !crypto.getRandomValues)
|
|
15
|
+
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
16
|
+
nt = crypto.getRandomValues.bind(crypto);
|
|
17
|
+
}
|
|
18
|
+
return nt(qr);
|
|
19
|
+
}
|
|
20
|
+
const zr = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Kt = { randomUUID: zr };
|
|
21
|
+
function Xr(e, t, n) {
|
|
22
|
+
e = e || {};
|
|
23
|
+
const r = e.random ?? e.rng?.() ?? jr();
|
|
24
|
+
if (r.length < 16)
|
|
25
|
+
throw new Error("Random bytes length must be >= 16");
|
|
26
|
+
return r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, Wr(r);
|
|
27
|
+
}
|
|
28
|
+
function Jr(e, t, n) {
|
|
29
|
+
return Kt.randomUUID && !e ? Kt.randomUUID() : Xr(e);
|
|
30
|
+
}
|
|
31
|
+
const _i = () => {
|
|
32
|
+
const t = /([01]\d|2[0-3]):?([0-5]\d)/, n = "([01]\\d|2[0-3]):?([0-5]\\d)", r = "hh:mm";
|
|
33
|
+
let o = "";
|
|
34
|
+
const s = /^((25[0-5]|(2[0-4]|1\d|[1-9]|)\d)\.?\b){4}$/, a = /^((25[0-5]|(2[0-4]|1\d|[1-9]|)\d)\.?\b){4}\/(\d){1,2}$/, i = (m, b) => {
|
|
35
|
+
if (m.message === "Network Error")
|
|
36
|
+
return b ? b("error.network_error") : "Network error";
|
|
37
|
+
if (/^timeout of .+ exceeded$/.test(m.message))
|
|
38
|
+
return b ? b("error.network_timeout") : "Network timeout";
|
|
39
|
+
if (m.response)
|
|
40
|
+
switch (m.response.status) {
|
|
41
|
+
case 401:
|
|
42
|
+
return b ? b("error.401") : "Unauthorized";
|
|
43
|
+
case 403:
|
|
44
|
+
return b ? b("error.403") : "Forbidden";
|
|
45
|
+
case 404:
|
|
46
|
+
return b ? b("error.404") : "Not found";
|
|
47
|
+
}
|
|
48
|
+
return b ? b("error.generic_error") : "Generic error";
|
|
49
|
+
}, l = (m) => {
|
|
50
|
+
u(m);
|
|
51
|
+
}, u = (m) => {
|
|
52
|
+
for (const b of Object.keys(m))
|
|
53
|
+
typeof m[b] == "string" ? m[b] = "" : typeof m[b] == "boolean" ? m[b] = !1 : typeof m[b] == "object" ? u(m[b]) : console.error("unexpected object type:", typeof m[b]);
|
|
54
|
+
};
|
|
55
|
+
return {
|
|
56
|
+
DELETE_DELAY: 7e3,
|
|
57
|
+
time24HourPattern: t,
|
|
58
|
+
time24HourPatternString: n,
|
|
59
|
+
time24HourPlaceholder: r,
|
|
60
|
+
highlightAnchor: o,
|
|
61
|
+
ipAddressPattern: s,
|
|
62
|
+
cidrPattern: a,
|
|
63
|
+
getErrorMessage: i,
|
|
64
|
+
clearErrors: l,
|
|
65
|
+
clearStrings: u,
|
|
66
|
+
sortByProperty: (m) => function(b, P) {
|
|
67
|
+
return b[m] < P[m] ? -1 : b[m] > P[m] ? 1 : 0;
|
|
68
|
+
},
|
|
69
|
+
sortModuleInstances: () => function(m, b) {
|
|
70
|
+
const P = m.id.split(/[0-9]+/)[0], C = parseInt(
|
|
71
|
+
m.id.substring(P.length)
|
|
72
|
+
), I = b.id.split(/[0-9]+/)[0], L = parseInt(
|
|
73
|
+
b.id.substring(I.length)
|
|
74
|
+
);
|
|
75
|
+
return P < I ? -1 : P > I ? 1 : C < L ? -1 : C > L ? 1 : 0;
|
|
76
|
+
},
|
|
77
|
+
isJson: (m) => {
|
|
78
|
+
try {
|
|
79
|
+
return JSON.parse(m), !0;
|
|
80
|
+
} catch {
|
|
81
|
+
return !1;
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
tryParseJson: (m) => {
|
|
85
|
+
try {
|
|
86
|
+
return JSON.parse(m);
|
|
87
|
+
} catch {
|
|
88
|
+
return m;
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
focusElement: (m) => {
|
|
92
|
+
yr(() => {
|
|
93
|
+
const b = m.value || m;
|
|
94
|
+
b && b.focus && b.focus();
|
|
95
|
+
});
|
|
96
|
+
},
|
|
97
|
+
scrollToElement: (m) => {
|
|
98
|
+
m && m.scrollIntoView({ behavior: "smooth" });
|
|
99
|
+
},
|
|
100
|
+
getAppDescription: (m, b, P) => {
|
|
101
|
+
let C = m.description[P];
|
|
102
|
+
return C || (C = m.description.en), C;
|
|
103
|
+
},
|
|
104
|
+
getAppCategories: (m, b) => {
|
|
105
|
+
let P = [];
|
|
106
|
+
for (const C of m.categories) {
|
|
107
|
+
if (C === "unknown")
|
|
108
|
+
return "";
|
|
109
|
+
P.push(
|
|
110
|
+
b("software_center.app_categories." + C)
|
|
111
|
+
);
|
|
112
|
+
}
|
|
113
|
+
return P.join(", ");
|
|
114
|
+
},
|
|
115
|
+
getBackupScheduleDescription: (m, b) => {
|
|
116
|
+
if (!m)
|
|
117
|
+
return "-";
|
|
118
|
+
switch (m.interval) {
|
|
119
|
+
case "hourly":
|
|
120
|
+
return m.minute == 0 ? b("backup.every_hour") : b("backup.minutes_past_the_hour", { minutes: m.minute });
|
|
121
|
+
case "daily":
|
|
122
|
+
return t.test(m.time) ? b("backup.every_day_at", { time: m.time }) : "-";
|
|
123
|
+
case "weekly":
|
|
124
|
+
return t.test(m.time) ? b("backup.every_weekday_at_hour", {
|
|
125
|
+
weekDay: b("calendar." + m.weekDay),
|
|
126
|
+
time: m.time
|
|
127
|
+
}) : "-";
|
|
128
|
+
case "monthly":
|
|
129
|
+
return t.test(m.time) ? b("backup.every_month_at_time", {
|
|
130
|
+
dayNum: m.monthDay,
|
|
131
|
+
time: m.time
|
|
132
|
+
}) : "-";
|
|
133
|
+
default:
|
|
134
|
+
return "-";
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
fileToBase64: (m) => new Promise((b, P) => {
|
|
138
|
+
const C = new FileReader();
|
|
139
|
+
C.readAsDataURL(m), C.onload = () => b(C.result), C.onerror = (I) => P(I);
|
|
140
|
+
}),
|
|
141
|
+
getUuid: () => Jr(),
|
|
142
|
+
getNodeLabel: (m, b) => m.ui_name ? m.ui_name + " (" + b("common.node") + " " + m.id + ")" : b("common.node") + " " + m.id,
|
|
143
|
+
getShortNodeLabel: (m, b) => m.ui_name ? m.ui_name : b("common.node") + " " + m.id,
|
|
144
|
+
decodeJwtPayload: (m) => {
|
|
145
|
+
const P = m.split(".")[1].replace(/-/g, "+").replace(/_/g, "/"), C = decodeURIComponent(
|
|
146
|
+
window.atob(P).split("").map(function(I) {
|
|
147
|
+
return "%" + ("00" + I.charCodeAt(0).toString(16)).slice(-2);
|
|
148
|
+
}).join("")
|
|
149
|
+
);
|
|
150
|
+
return JSON.parse(C);
|
|
151
|
+
},
|
|
152
|
+
getSha256: async (m) => {
|
|
153
|
+
const b = new TextEncoder().encode(m), P = await crypto.subtle.digest("SHA-256", b);
|
|
154
|
+
return Array.from(new Uint8Array(P)).map((L) => L.toString(16).padStart(2, "0")).join("");
|
|
155
|
+
}
|
|
156
|
+
};
|
|
157
|
+
}, _n = 6048e5, Vr = 864e5, $n = 6e4, vn = 36e5, be = 43200, en = 1440, tn = /* @__PURE__ */ Symbol.for("constructDateFrom");
|
|
158
|
+
function W(e, t) {
|
|
159
|
+
return typeof e == "function" ? e(t) : e && typeof e == "object" && tn in e ? e[tn](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
|
|
160
|
+
}
|
|
161
|
+
function M(e, t) {
|
|
162
|
+
return W(t || e, e);
|
|
163
|
+
}
|
|
164
|
+
function Zr(e, t, n) {
|
|
165
|
+
const r = M(e, n?.in);
|
|
166
|
+
return isNaN(t) ? W(n?.in || e, NaN) : (t && r.setDate(r.getDate() + t), r);
|
|
167
|
+
}
|
|
168
|
+
let Gr = {};
|
|
169
|
+
function re() {
|
|
170
|
+
return Gr;
|
|
171
|
+
}
|
|
172
|
+
function fe(e, t) {
|
|
173
|
+
const n = re(), r = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, o = M(e, t?.in), s = o.getDay(), a = (s < r ? 7 : 0) + s - r;
|
|
174
|
+
return o.setDate(o.getDate() - a), o.setHours(0, 0, 0, 0), o;
|
|
175
|
+
}
|
|
176
|
+
function Ce(e, t) {
|
|
177
|
+
return fe(e, { ...t, weekStartsOn: 1 });
|
|
178
|
+
}
|
|
179
|
+
function Ln(e, t) {
|
|
180
|
+
const n = M(e, t?.in), r = n.getFullYear(), o = W(n, 0);
|
|
181
|
+
o.setFullYear(r + 1, 0, 4), o.setHours(0, 0, 0, 0);
|
|
182
|
+
const s = Ce(o), a = W(n, 0);
|
|
183
|
+
a.setFullYear(r, 0, 4), a.setHours(0, 0, 0, 0);
|
|
184
|
+
const i = Ce(a);
|
|
185
|
+
return n.getTime() >= s.getTime() ? r + 1 : n.getTime() >= i.getTime() ? r : r - 1;
|
|
186
|
+
}
|
|
187
|
+
function Pe(e) {
|
|
188
|
+
const t = M(e), n = new Date(
|
|
189
|
+
Date.UTC(
|
|
190
|
+
t.getFullYear(),
|
|
191
|
+
t.getMonth(),
|
|
192
|
+
t.getDate(),
|
|
193
|
+
t.getHours(),
|
|
194
|
+
t.getMinutes(),
|
|
195
|
+
t.getSeconds(),
|
|
196
|
+
t.getMilliseconds()
|
|
197
|
+
)
|
|
198
|
+
);
|
|
199
|
+
return n.setUTCFullYear(t.getFullYear()), +e - +n;
|
|
200
|
+
}
|
|
201
|
+
function Fe(e, ...t) {
|
|
202
|
+
const n = W.bind(
|
|
203
|
+
null,
|
|
204
|
+
e || t.find((r) => typeof r == "object")
|
|
205
|
+
);
|
|
206
|
+
return t.map(n);
|
|
207
|
+
}
|
|
208
|
+
function nn(e, t) {
|
|
209
|
+
const n = M(e, t?.in);
|
|
210
|
+
return n.setHours(0, 0, 0, 0), n;
|
|
211
|
+
}
|
|
212
|
+
function Qr(e, t, n) {
|
|
213
|
+
const [r, o] = Fe(
|
|
214
|
+
n?.in,
|
|
215
|
+
e,
|
|
216
|
+
t
|
|
217
|
+
), s = nn(r), a = nn(o), i = +s - Pe(s), l = +a - Pe(a);
|
|
218
|
+
return Math.round((i - l) / Vr);
|
|
219
|
+
}
|
|
220
|
+
function Kr(e, t) {
|
|
221
|
+
const n = Ln(e, t), r = W(e, 0);
|
|
222
|
+
return r.setFullYear(n, 0, 4), r.setHours(0, 0, 0, 0), Ce(r);
|
|
223
|
+
}
|
|
224
|
+
function Ne(e, t) {
|
|
225
|
+
const n = +M(e) - +M(t);
|
|
226
|
+
return n < 0 ? -1 : n > 0 ? 1 : n;
|
|
227
|
+
}
|
|
228
|
+
function eo(e) {
|
|
229
|
+
return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
|
|
230
|
+
}
|
|
231
|
+
function to(e) {
|
|
232
|
+
return !(!eo(e) && typeof e != "number" || isNaN(+M(e)));
|
|
233
|
+
}
|
|
234
|
+
function no(e, t, n) {
|
|
235
|
+
const [r, o] = Fe(
|
|
236
|
+
n?.in,
|
|
237
|
+
e,
|
|
238
|
+
t
|
|
239
|
+
), s = r.getFullYear() - o.getFullYear(), a = r.getMonth() - o.getMonth();
|
|
240
|
+
return s * 12 + a;
|
|
241
|
+
}
|
|
242
|
+
function ro(e) {
|
|
243
|
+
return (t) => {
|
|
244
|
+
const r = (e ? Math[e] : Math.trunc)(t);
|
|
245
|
+
return r === 0 ? 0 : r;
|
|
246
|
+
};
|
|
247
|
+
}
|
|
248
|
+
function oo(e, t) {
|
|
249
|
+
return +M(e) - +M(t);
|
|
250
|
+
}
|
|
251
|
+
function so(e, t) {
|
|
252
|
+
const n = M(e, t?.in);
|
|
253
|
+
return n.setHours(23, 59, 59, 999), n;
|
|
254
|
+
}
|
|
255
|
+
function ao(e, t) {
|
|
256
|
+
const n = M(e, t?.in), r = n.getMonth();
|
|
257
|
+
return n.setFullYear(n.getFullYear(), r + 1, 0), n.setHours(23, 59, 59, 999), n;
|
|
258
|
+
}
|
|
259
|
+
function io(e, t) {
|
|
260
|
+
const n = M(e, t?.in);
|
|
261
|
+
return +so(n, t) == +ao(n, t);
|
|
262
|
+
}
|
|
263
|
+
function co(e, t, n) {
|
|
264
|
+
const [r, o, s] = Fe(
|
|
265
|
+
n?.in,
|
|
266
|
+
e,
|
|
267
|
+
e,
|
|
268
|
+
t
|
|
269
|
+
), a = Ne(o, s), i = Math.abs(
|
|
270
|
+
no(o, s)
|
|
271
|
+
);
|
|
272
|
+
if (i < 1) return 0;
|
|
273
|
+
o.getMonth() === 1 && o.getDate() > 27 && o.setDate(30), o.setMonth(o.getMonth() - a * i);
|
|
274
|
+
let l = Ne(o, s) === -a;
|
|
275
|
+
io(r) && i === 1 && Ne(r, s) === 1 && (l = !1);
|
|
276
|
+
const u = a * (i - +l);
|
|
277
|
+
return u === 0 ? 0 : u;
|
|
278
|
+
}
|
|
279
|
+
function uo(e, t, n) {
|
|
280
|
+
const r = oo(e, t) / 1e3;
|
|
281
|
+
return ro(n?.roundingMethod)(r);
|
|
282
|
+
}
|
|
283
|
+
function lo(e, t) {
|
|
284
|
+
const n = M(e, t?.in);
|
|
285
|
+
return n.setFullYear(n.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
|
|
286
|
+
}
|
|
287
|
+
const fo = {
|
|
288
|
+
lessThanXSeconds: {
|
|
289
|
+
one: "less than a second",
|
|
290
|
+
other: "less than {{count}} seconds"
|
|
291
|
+
},
|
|
292
|
+
xSeconds: {
|
|
293
|
+
one: "1 second",
|
|
294
|
+
other: "{{count}} seconds"
|
|
295
|
+
},
|
|
296
|
+
halfAMinute: "half a minute",
|
|
297
|
+
lessThanXMinutes: {
|
|
298
|
+
one: "less than a minute",
|
|
299
|
+
other: "less than {{count}} minutes"
|
|
300
|
+
},
|
|
301
|
+
xMinutes: {
|
|
302
|
+
one: "1 minute",
|
|
303
|
+
other: "{{count}} minutes"
|
|
304
|
+
},
|
|
305
|
+
aboutXHours: {
|
|
306
|
+
one: "about 1 hour",
|
|
307
|
+
other: "about {{count}} hours"
|
|
308
|
+
},
|
|
309
|
+
xHours: {
|
|
310
|
+
one: "1 hour",
|
|
311
|
+
other: "{{count}} hours"
|
|
312
|
+
},
|
|
313
|
+
xDays: {
|
|
314
|
+
one: "1 day",
|
|
315
|
+
other: "{{count}} days"
|
|
316
|
+
},
|
|
317
|
+
aboutXWeeks: {
|
|
318
|
+
one: "about 1 week",
|
|
319
|
+
other: "about {{count}} weeks"
|
|
320
|
+
},
|
|
321
|
+
xWeeks: {
|
|
322
|
+
one: "1 week",
|
|
323
|
+
other: "{{count}} weeks"
|
|
324
|
+
},
|
|
325
|
+
aboutXMonths: {
|
|
326
|
+
one: "about 1 month",
|
|
327
|
+
other: "about {{count}} months"
|
|
328
|
+
},
|
|
329
|
+
xMonths: {
|
|
330
|
+
one: "1 month",
|
|
331
|
+
other: "{{count}} months"
|
|
332
|
+
},
|
|
333
|
+
aboutXYears: {
|
|
334
|
+
one: "about 1 year",
|
|
335
|
+
other: "about {{count}} years"
|
|
336
|
+
},
|
|
337
|
+
xYears: {
|
|
338
|
+
one: "1 year",
|
|
339
|
+
other: "{{count}} years"
|
|
340
|
+
},
|
|
341
|
+
overXYears: {
|
|
342
|
+
one: "over 1 year",
|
|
343
|
+
other: "over {{count}} years"
|
|
344
|
+
},
|
|
345
|
+
almostXYears: {
|
|
346
|
+
one: "almost 1 year",
|
|
347
|
+
other: "almost {{count}} years"
|
|
348
|
+
}
|
|
349
|
+
}, ho = (e, t, n) => {
|
|
350
|
+
let r;
|
|
351
|
+
const o = fo[e];
|
|
352
|
+
return typeof o == "string" ? r = o : t === 1 ? r = o.one : r = o.other.replace("{{count}}", t.toString()), n?.addSuffix ? n.comparison && n.comparison > 0 ? "in " + r : r + " ago" : r;
|
|
353
|
+
};
|
|
354
|
+
function rt(e) {
|
|
355
|
+
return (t = {}) => {
|
|
356
|
+
const n = t.width ? String(t.width) : e.defaultWidth;
|
|
357
|
+
return e.formats[n] || e.formats[e.defaultWidth];
|
|
358
|
+
};
|
|
359
|
+
}
|
|
360
|
+
const mo = {
|
|
361
|
+
full: "EEEE, MMMM do, y",
|
|
362
|
+
long: "MMMM do, y",
|
|
363
|
+
medium: "MMM d, y",
|
|
364
|
+
short: "MM/dd/yyyy"
|
|
365
|
+
}, po = {
|
|
366
|
+
full: "h:mm:ss a zzzz",
|
|
367
|
+
long: "h:mm:ss a z",
|
|
368
|
+
medium: "h:mm:ss a",
|
|
369
|
+
short: "h:mm a"
|
|
370
|
+
}, go = {
|
|
371
|
+
full: "{{date}} 'at' {{time}}",
|
|
372
|
+
long: "{{date}} 'at' {{time}}",
|
|
373
|
+
medium: "{{date}}, {{time}}",
|
|
374
|
+
short: "{{date}}, {{time}}"
|
|
375
|
+
}, wo = {
|
|
376
|
+
date: rt({
|
|
377
|
+
formats: mo,
|
|
378
|
+
defaultWidth: "full"
|
|
379
|
+
}),
|
|
380
|
+
time: rt({
|
|
381
|
+
formats: po,
|
|
382
|
+
defaultWidth: "full"
|
|
383
|
+
}),
|
|
384
|
+
dateTime: rt({
|
|
385
|
+
formats: go,
|
|
386
|
+
defaultWidth: "full"
|
|
387
|
+
})
|
|
388
|
+
}, yo = {
|
|
389
|
+
lastWeek: "'last' eeee 'at' p",
|
|
390
|
+
yesterday: "'yesterday at' p",
|
|
391
|
+
today: "'today at' p",
|
|
392
|
+
tomorrow: "'tomorrow at' p",
|
|
393
|
+
nextWeek: "eeee 'at' p",
|
|
394
|
+
other: "P"
|
|
395
|
+
}, bo = (e, t, n, r) => yo[e];
|
|
396
|
+
function ie(e) {
|
|
397
|
+
return (t, n) => {
|
|
398
|
+
const r = n?.context ? String(n.context) : "standalone";
|
|
399
|
+
let o;
|
|
400
|
+
if (r === "formatting" && e.formattingValues) {
|
|
401
|
+
const a = e.defaultFormattingWidth || e.defaultWidth, i = n?.width ? String(n.width) : a;
|
|
402
|
+
o = e.formattingValues[i] || e.formattingValues[a];
|
|
403
|
+
} else {
|
|
404
|
+
const a = e.defaultWidth, i = n?.width ? String(n.width) : e.defaultWidth;
|
|
405
|
+
o = e.values[i] || e.values[a];
|
|
406
|
+
}
|
|
407
|
+
const s = e.argumentCallback ? e.argumentCallback(t) : t;
|
|
408
|
+
return o[s];
|
|
409
|
+
};
|
|
410
|
+
}
|
|
411
|
+
const To = {
|
|
412
|
+
narrow: ["B", "A"],
|
|
413
|
+
abbreviated: ["BC", "AD"],
|
|
414
|
+
wide: ["Before Christ", "Anno Domini"]
|
|
415
|
+
}, So = {
|
|
416
|
+
narrow: ["1", "2", "3", "4"],
|
|
417
|
+
abbreviated: ["Q1", "Q2", "Q3", "Q4"],
|
|
418
|
+
wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
|
|
419
|
+
}, Do = {
|
|
420
|
+
narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
|
|
421
|
+
abbreviated: [
|
|
422
|
+
"Jan",
|
|
423
|
+
"Feb",
|
|
424
|
+
"Mar",
|
|
425
|
+
"Apr",
|
|
426
|
+
"May",
|
|
427
|
+
"Jun",
|
|
428
|
+
"Jul",
|
|
429
|
+
"Aug",
|
|
430
|
+
"Sep",
|
|
431
|
+
"Oct",
|
|
432
|
+
"Nov",
|
|
433
|
+
"Dec"
|
|
434
|
+
],
|
|
435
|
+
wide: [
|
|
436
|
+
"January",
|
|
437
|
+
"February",
|
|
438
|
+
"March",
|
|
439
|
+
"April",
|
|
440
|
+
"May",
|
|
441
|
+
"June",
|
|
442
|
+
"July",
|
|
443
|
+
"August",
|
|
444
|
+
"September",
|
|
445
|
+
"October",
|
|
446
|
+
"November",
|
|
447
|
+
"December"
|
|
448
|
+
]
|
|
449
|
+
}, Oo = {
|
|
450
|
+
narrow: ["S", "M", "T", "W", "T", "F", "S"],
|
|
451
|
+
short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
|
|
452
|
+
abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
|
453
|
+
wide: [
|
|
454
|
+
"Sunday",
|
|
455
|
+
"Monday",
|
|
456
|
+
"Tuesday",
|
|
457
|
+
"Wednesday",
|
|
458
|
+
"Thursday",
|
|
459
|
+
"Friday",
|
|
460
|
+
"Saturday"
|
|
461
|
+
]
|
|
462
|
+
}, Eo = {
|
|
463
|
+
narrow: {
|
|
464
|
+
am: "a",
|
|
465
|
+
pm: "p",
|
|
466
|
+
midnight: "mi",
|
|
467
|
+
noon: "n",
|
|
468
|
+
morning: "morning",
|
|
469
|
+
afternoon: "afternoon",
|
|
470
|
+
evening: "evening",
|
|
471
|
+
night: "night"
|
|
472
|
+
},
|
|
473
|
+
abbreviated: {
|
|
474
|
+
am: "AM",
|
|
475
|
+
pm: "PM",
|
|
476
|
+
midnight: "midnight",
|
|
477
|
+
noon: "noon",
|
|
478
|
+
morning: "morning",
|
|
479
|
+
afternoon: "afternoon",
|
|
480
|
+
evening: "evening",
|
|
481
|
+
night: "night"
|
|
482
|
+
},
|
|
483
|
+
wide: {
|
|
484
|
+
am: "a.m.",
|
|
485
|
+
pm: "p.m.",
|
|
486
|
+
midnight: "midnight",
|
|
487
|
+
noon: "noon",
|
|
488
|
+
morning: "morning",
|
|
489
|
+
afternoon: "afternoon",
|
|
490
|
+
evening: "evening",
|
|
491
|
+
night: "night"
|
|
492
|
+
}
|
|
493
|
+
}, No = {
|
|
494
|
+
narrow: {
|
|
495
|
+
am: "a",
|
|
496
|
+
pm: "p",
|
|
497
|
+
midnight: "mi",
|
|
498
|
+
noon: "n",
|
|
499
|
+
morning: "in the morning",
|
|
500
|
+
afternoon: "in the afternoon",
|
|
501
|
+
evening: "in the evening",
|
|
502
|
+
night: "at night"
|
|
503
|
+
},
|
|
504
|
+
abbreviated: {
|
|
505
|
+
am: "AM",
|
|
506
|
+
pm: "PM",
|
|
507
|
+
midnight: "midnight",
|
|
508
|
+
noon: "noon",
|
|
509
|
+
morning: "in the morning",
|
|
510
|
+
afternoon: "in the afternoon",
|
|
511
|
+
evening: "in the evening",
|
|
512
|
+
night: "at night"
|
|
513
|
+
},
|
|
514
|
+
wide: {
|
|
515
|
+
am: "a.m.",
|
|
516
|
+
pm: "p.m.",
|
|
517
|
+
midnight: "midnight",
|
|
518
|
+
noon: "noon",
|
|
519
|
+
morning: "in the morning",
|
|
520
|
+
afternoon: "in the afternoon",
|
|
521
|
+
evening: "in the evening",
|
|
522
|
+
night: "at night"
|
|
523
|
+
}
|
|
524
|
+
}, ko = (e, t) => {
|
|
525
|
+
const n = Number(e), r = n % 100;
|
|
526
|
+
if (r > 20 || r < 10)
|
|
527
|
+
switch (r % 10) {
|
|
528
|
+
case 1:
|
|
529
|
+
return n + "st";
|
|
530
|
+
case 2:
|
|
531
|
+
return n + "nd";
|
|
532
|
+
case 3:
|
|
533
|
+
return n + "rd";
|
|
534
|
+
}
|
|
535
|
+
return n + "th";
|
|
536
|
+
}, Mo = {
|
|
537
|
+
ordinalNumber: ko,
|
|
538
|
+
era: ie({
|
|
539
|
+
values: To,
|
|
540
|
+
defaultWidth: "wide"
|
|
541
|
+
}),
|
|
542
|
+
quarter: ie({
|
|
543
|
+
values: So,
|
|
544
|
+
defaultWidth: "wide",
|
|
545
|
+
argumentCallback: (e) => e - 1
|
|
546
|
+
}),
|
|
547
|
+
month: ie({
|
|
548
|
+
values: Do,
|
|
549
|
+
defaultWidth: "wide"
|
|
550
|
+
}),
|
|
551
|
+
day: ie({
|
|
552
|
+
values: Oo,
|
|
553
|
+
defaultWidth: "wide"
|
|
554
|
+
}),
|
|
555
|
+
dayPeriod: ie({
|
|
556
|
+
values: Eo,
|
|
557
|
+
defaultWidth: "wide",
|
|
558
|
+
formattingValues: No,
|
|
559
|
+
defaultFormattingWidth: "wide"
|
|
560
|
+
})
|
|
561
|
+
};
|
|
562
|
+
function ce(e) {
|
|
563
|
+
return (t, n = {}) => {
|
|
564
|
+
const r = n.width, o = r && e.matchPatterns[r] || e.matchPatterns[e.defaultMatchWidth], s = t.match(o);
|
|
565
|
+
if (!s)
|
|
566
|
+
return null;
|
|
567
|
+
const a = s[0], i = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], l = Array.isArray(i) ? Co(i, (h) => h.test(a)) : (
|
|
568
|
+
// [TODO] -- I challenge you to fix the type
|
|
569
|
+
xo(i, (h) => h.test(a))
|
|
570
|
+
);
|
|
571
|
+
let u;
|
|
572
|
+
u = e.valueCallback ? e.valueCallback(l) : l, u = n.valueCallback ? (
|
|
573
|
+
// [TODO] -- I challenge you to fix the type
|
|
574
|
+
n.valueCallback(u)
|
|
575
|
+
) : u;
|
|
576
|
+
const f = t.slice(a.length);
|
|
577
|
+
return { value: u, rest: f };
|
|
578
|
+
};
|
|
579
|
+
}
|
|
580
|
+
function xo(e, t) {
|
|
581
|
+
for (const n in e)
|
|
582
|
+
if (Object.prototype.hasOwnProperty.call(e, n) && t(e[n]))
|
|
583
|
+
return n;
|
|
584
|
+
}
|
|
585
|
+
function Co(e, t) {
|
|
586
|
+
for (let n = 0; n < e.length; n++)
|
|
587
|
+
if (t(e[n]))
|
|
588
|
+
return n;
|
|
589
|
+
}
|
|
590
|
+
function Po(e) {
|
|
591
|
+
return (t, n = {}) => {
|
|
592
|
+
const r = t.match(e.matchPattern);
|
|
593
|
+
if (!r) return null;
|
|
594
|
+
const o = r[0], s = t.match(e.parsePattern);
|
|
595
|
+
if (!s) return null;
|
|
596
|
+
let a = e.valueCallback ? e.valueCallback(s[0]) : s[0];
|
|
597
|
+
a = n.valueCallback ? n.valueCallback(a) : a;
|
|
598
|
+
const i = t.slice(o.length);
|
|
599
|
+
return { value: a, rest: i };
|
|
600
|
+
};
|
|
601
|
+
}
|
|
602
|
+
const Ao = /^(\d+)(th|st|nd|rd)?/i, Ro = /\d+/i, Fo = {
|
|
603
|
+
narrow: /^(b|a)/i,
|
|
604
|
+
abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
|
|
605
|
+
wide: /^(before christ|before common era|anno domini|common era)/i
|
|
606
|
+
}, Uo = {
|
|
607
|
+
any: [/^b/i, /^(a|c)/i]
|
|
608
|
+
}, Io = {
|
|
609
|
+
narrow: /^[1234]/i,
|
|
610
|
+
abbreviated: /^q[1234]/i,
|
|
611
|
+
wide: /^[1234](th|st|nd|rd)? quarter/i
|
|
612
|
+
}, _o = {
|
|
613
|
+
any: [/1/i, /2/i, /3/i, /4/i]
|
|
614
|
+
}, $o = {
|
|
615
|
+
narrow: /^[jfmasond]/i,
|
|
616
|
+
abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
|
|
617
|
+
wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
|
|
618
|
+
}, vo = {
|
|
619
|
+
narrow: [
|
|
620
|
+
/^j/i,
|
|
621
|
+
/^f/i,
|
|
622
|
+
/^m/i,
|
|
623
|
+
/^a/i,
|
|
624
|
+
/^m/i,
|
|
625
|
+
/^j/i,
|
|
626
|
+
/^j/i,
|
|
627
|
+
/^a/i,
|
|
628
|
+
/^s/i,
|
|
629
|
+
/^o/i,
|
|
630
|
+
/^n/i,
|
|
631
|
+
/^d/i
|
|
632
|
+
],
|
|
633
|
+
any: [
|
|
634
|
+
/^ja/i,
|
|
635
|
+
/^f/i,
|
|
636
|
+
/^mar/i,
|
|
637
|
+
/^ap/i,
|
|
638
|
+
/^may/i,
|
|
639
|
+
/^jun/i,
|
|
640
|
+
/^jul/i,
|
|
641
|
+
/^au/i,
|
|
642
|
+
/^s/i,
|
|
643
|
+
/^o/i,
|
|
644
|
+
/^n/i,
|
|
645
|
+
/^d/i
|
|
646
|
+
]
|
|
647
|
+
}, Lo = {
|
|
648
|
+
narrow: /^[smtwf]/i,
|
|
649
|
+
short: /^(su|mo|tu|we|th|fr|sa)/i,
|
|
650
|
+
abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
|
|
651
|
+
wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
|
|
652
|
+
}, Bo = {
|
|
653
|
+
narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
|
|
654
|
+
any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
|
|
655
|
+
}, Yo = {
|
|
656
|
+
narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
|
|
657
|
+
any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
|
|
658
|
+
}, Ho = {
|
|
659
|
+
any: {
|
|
660
|
+
am: /^a/i,
|
|
661
|
+
pm: /^p/i,
|
|
662
|
+
midnight: /^mi/i,
|
|
663
|
+
noon: /^no/i,
|
|
664
|
+
morning: /morning/i,
|
|
665
|
+
afternoon: /afternoon/i,
|
|
666
|
+
evening: /evening/i,
|
|
667
|
+
night: /night/i
|
|
668
|
+
}
|
|
669
|
+
}, Wo = {
|
|
670
|
+
ordinalNumber: Po({
|
|
671
|
+
matchPattern: Ao,
|
|
672
|
+
parsePattern: Ro,
|
|
673
|
+
valueCallback: (e) => parseInt(e, 10)
|
|
674
|
+
}),
|
|
675
|
+
era: ce({
|
|
676
|
+
matchPatterns: Fo,
|
|
677
|
+
defaultMatchWidth: "wide",
|
|
678
|
+
parsePatterns: Uo,
|
|
679
|
+
defaultParseWidth: "any"
|
|
680
|
+
}),
|
|
681
|
+
quarter: ce({
|
|
682
|
+
matchPatterns: Io,
|
|
683
|
+
defaultMatchWidth: "wide",
|
|
684
|
+
parsePatterns: _o,
|
|
685
|
+
defaultParseWidth: "any",
|
|
686
|
+
valueCallback: (e) => e + 1
|
|
687
|
+
}),
|
|
688
|
+
month: ce({
|
|
689
|
+
matchPatterns: $o,
|
|
690
|
+
defaultMatchWidth: "wide",
|
|
691
|
+
parsePatterns: vo,
|
|
692
|
+
defaultParseWidth: "any"
|
|
693
|
+
}),
|
|
694
|
+
day: ce({
|
|
695
|
+
matchPatterns: Lo,
|
|
696
|
+
defaultMatchWidth: "wide",
|
|
697
|
+
parsePatterns: Bo,
|
|
698
|
+
defaultParseWidth: "any"
|
|
699
|
+
}),
|
|
700
|
+
dayPeriod: ce({
|
|
701
|
+
matchPatterns: Yo,
|
|
702
|
+
defaultMatchWidth: "any",
|
|
703
|
+
parsePatterns: Ho,
|
|
704
|
+
defaultParseWidth: "any"
|
|
705
|
+
})
|
|
706
|
+
}, Bn = {
|
|
707
|
+
code: "en-US",
|
|
708
|
+
formatDistance: ho,
|
|
709
|
+
formatLong: wo,
|
|
710
|
+
formatRelative: bo,
|
|
711
|
+
localize: Mo,
|
|
712
|
+
match: Wo,
|
|
713
|
+
options: {
|
|
714
|
+
weekStartsOn: 0,
|
|
715
|
+
firstWeekContainsDate: 1
|
|
716
|
+
}
|
|
717
|
+
};
|
|
718
|
+
function qo(e, t) {
|
|
719
|
+
const n = M(e, t?.in);
|
|
720
|
+
return Qr(n, lo(n)) + 1;
|
|
721
|
+
}
|
|
722
|
+
function jo(e, t) {
|
|
723
|
+
const n = M(e, t?.in), r = +Ce(n) - +Kr(n);
|
|
724
|
+
return Math.round(r / _n) + 1;
|
|
725
|
+
}
|
|
726
|
+
function Yn(e, t) {
|
|
727
|
+
const n = M(e, t?.in), r = n.getFullYear(), o = re(), s = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? o.firstWeekContainsDate ?? o.locale?.options?.firstWeekContainsDate ?? 1, a = W(t?.in || e, 0);
|
|
728
|
+
a.setFullYear(r + 1, 0, s), a.setHours(0, 0, 0, 0);
|
|
729
|
+
const i = fe(a, t), l = W(t?.in || e, 0);
|
|
730
|
+
l.setFullYear(r, 0, s), l.setHours(0, 0, 0, 0);
|
|
731
|
+
const u = fe(l, t);
|
|
732
|
+
return +n >= +i ? r + 1 : +n >= +u ? r : r - 1;
|
|
733
|
+
}
|
|
734
|
+
function zo(e, t) {
|
|
735
|
+
const n = re(), r = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? n.firstWeekContainsDate ?? n.locale?.options?.firstWeekContainsDate ?? 1, o = Yn(e, t), s = W(t?.in || e, 0);
|
|
736
|
+
return s.setFullYear(o, 0, r), s.setHours(0, 0, 0, 0), fe(s, t);
|
|
737
|
+
}
|
|
738
|
+
function Xo(e, t) {
|
|
739
|
+
const n = M(e, t?.in), r = +fe(n, t) - +zo(n, t);
|
|
740
|
+
return Math.round(r / _n) + 1;
|
|
741
|
+
}
|
|
742
|
+
function E(e, t) {
|
|
743
|
+
const n = e < 0 ? "-" : "", r = Math.abs(e).toString().padStart(t, "0");
|
|
744
|
+
return n + r;
|
|
745
|
+
}
|
|
746
|
+
const z = {
|
|
747
|
+
// Year
|
|
748
|
+
y(e, t) {
|
|
749
|
+
const n = e.getFullYear(), r = n > 0 ? n : 1 - n;
|
|
750
|
+
return E(t === "yy" ? r % 100 : r, t.length);
|
|
751
|
+
},
|
|
752
|
+
// Month
|
|
753
|
+
M(e, t) {
|
|
754
|
+
const n = e.getMonth();
|
|
755
|
+
return t === "M" ? String(n + 1) : E(n + 1, 2);
|
|
756
|
+
},
|
|
757
|
+
// Day of the month
|
|
758
|
+
d(e, t) {
|
|
759
|
+
return E(e.getDate(), t.length);
|
|
760
|
+
},
|
|
761
|
+
// AM or PM
|
|
762
|
+
a(e, t) {
|
|
763
|
+
const n = e.getHours() / 12 >= 1 ? "pm" : "am";
|
|
764
|
+
switch (t) {
|
|
765
|
+
case "a":
|
|
766
|
+
case "aa":
|
|
767
|
+
return n.toUpperCase();
|
|
768
|
+
case "aaa":
|
|
769
|
+
return n;
|
|
770
|
+
case "aaaaa":
|
|
771
|
+
return n[0];
|
|
772
|
+
default:
|
|
773
|
+
return n === "am" ? "a.m." : "p.m.";
|
|
774
|
+
}
|
|
775
|
+
},
|
|
776
|
+
// Hour [1-12]
|
|
777
|
+
h(e, t) {
|
|
778
|
+
return E(e.getHours() % 12 || 12, t.length);
|
|
779
|
+
},
|
|
780
|
+
// Hour [0-23]
|
|
781
|
+
H(e, t) {
|
|
782
|
+
return E(e.getHours(), t.length);
|
|
783
|
+
},
|
|
784
|
+
// Minute
|
|
785
|
+
m(e, t) {
|
|
786
|
+
return E(e.getMinutes(), t.length);
|
|
787
|
+
},
|
|
788
|
+
// Second
|
|
789
|
+
s(e, t) {
|
|
790
|
+
return E(e.getSeconds(), t.length);
|
|
791
|
+
},
|
|
792
|
+
// Fraction of second
|
|
793
|
+
S(e, t) {
|
|
794
|
+
const n = t.length, r = e.getMilliseconds(), o = Math.trunc(
|
|
795
|
+
r * Math.pow(10, n - 3)
|
|
796
|
+
);
|
|
797
|
+
return E(o, t.length);
|
|
798
|
+
}
|
|
799
|
+
}, K = {
|
|
800
|
+
midnight: "midnight",
|
|
801
|
+
noon: "noon",
|
|
802
|
+
morning: "morning",
|
|
803
|
+
afternoon: "afternoon",
|
|
804
|
+
evening: "evening",
|
|
805
|
+
night: "night"
|
|
806
|
+
}, rn = {
|
|
807
|
+
// Era
|
|
808
|
+
G: function(e, t, n) {
|
|
809
|
+
const r = e.getFullYear() > 0 ? 1 : 0;
|
|
810
|
+
switch (t) {
|
|
811
|
+
// AD, BC
|
|
812
|
+
case "G":
|
|
813
|
+
case "GG":
|
|
814
|
+
case "GGG":
|
|
815
|
+
return n.era(r, { width: "abbreviated" });
|
|
816
|
+
// A, B
|
|
817
|
+
case "GGGGG":
|
|
818
|
+
return n.era(r, { width: "narrow" });
|
|
819
|
+
default:
|
|
820
|
+
return n.era(r, { width: "wide" });
|
|
821
|
+
}
|
|
822
|
+
},
|
|
823
|
+
// Year
|
|
824
|
+
y: function(e, t, n) {
|
|
825
|
+
if (t === "yo") {
|
|
826
|
+
const r = e.getFullYear(), o = r > 0 ? r : 1 - r;
|
|
827
|
+
return n.ordinalNumber(o, { unit: "year" });
|
|
828
|
+
}
|
|
829
|
+
return z.y(e, t);
|
|
830
|
+
},
|
|
831
|
+
// Local week-numbering year
|
|
832
|
+
Y: function(e, t, n, r) {
|
|
833
|
+
const o = Yn(e, r), s = o > 0 ? o : 1 - o;
|
|
834
|
+
if (t === "YY") {
|
|
835
|
+
const a = s % 100;
|
|
836
|
+
return E(a, 2);
|
|
837
|
+
}
|
|
838
|
+
return t === "Yo" ? n.ordinalNumber(s, { unit: "year" }) : E(s, t.length);
|
|
839
|
+
},
|
|
840
|
+
// ISO week-numbering year
|
|
841
|
+
R: function(e, t) {
|
|
842
|
+
const n = Ln(e);
|
|
843
|
+
return E(n, t.length);
|
|
844
|
+
},
|
|
845
|
+
// Extended year. This is a single number designating the year of this calendar system.
|
|
846
|
+
// The main difference between `y` and `u` localizers are B.C. years:
|
|
847
|
+
// | Year | `y` | `u` |
|
|
848
|
+
// |------|-----|-----|
|
|
849
|
+
// | AC 1 | 1 | 1 |
|
|
850
|
+
// | BC 1 | 1 | 0 |
|
|
851
|
+
// | BC 2 | 2 | -1 |
|
|
852
|
+
// Also `yy` always returns the last two digits of a year,
|
|
853
|
+
// while `uu` pads single digit years to 2 characters and returns other years unchanged.
|
|
854
|
+
u: function(e, t) {
|
|
855
|
+
const n = e.getFullYear();
|
|
856
|
+
return E(n, t.length);
|
|
857
|
+
},
|
|
858
|
+
// Quarter
|
|
859
|
+
Q: function(e, t, n) {
|
|
860
|
+
const r = Math.ceil((e.getMonth() + 1) / 3);
|
|
861
|
+
switch (t) {
|
|
862
|
+
// 1, 2, 3, 4
|
|
863
|
+
case "Q":
|
|
864
|
+
return String(r);
|
|
865
|
+
// 01, 02, 03, 04
|
|
866
|
+
case "QQ":
|
|
867
|
+
return E(r, 2);
|
|
868
|
+
// 1st, 2nd, 3rd, 4th
|
|
869
|
+
case "Qo":
|
|
870
|
+
return n.ordinalNumber(r, { unit: "quarter" });
|
|
871
|
+
// Q1, Q2, Q3, Q4
|
|
872
|
+
case "QQQ":
|
|
873
|
+
return n.quarter(r, {
|
|
874
|
+
width: "abbreviated",
|
|
875
|
+
context: "formatting"
|
|
876
|
+
});
|
|
877
|
+
// 1, 2, 3, 4 (narrow quarter; could be not numerical)
|
|
878
|
+
case "QQQQQ":
|
|
879
|
+
return n.quarter(r, {
|
|
880
|
+
width: "narrow",
|
|
881
|
+
context: "formatting"
|
|
882
|
+
});
|
|
883
|
+
default:
|
|
884
|
+
return n.quarter(r, {
|
|
885
|
+
width: "wide",
|
|
886
|
+
context: "formatting"
|
|
887
|
+
});
|
|
888
|
+
}
|
|
889
|
+
},
|
|
890
|
+
// Stand-alone quarter
|
|
891
|
+
q: function(e, t, n) {
|
|
892
|
+
const r = Math.ceil((e.getMonth() + 1) / 3);
|
|
893
|
+
switch (t) {
|
|
894
|
+
// 1, 2, 3, 4
|
|
895
|
+
case "q":
|
|
896
|
+
return String(r);
|
|
897
|
+
// 01, 02, 03, 04
|
|
898
|
+
case "qq":
|
|
899
|
+
return E(r, 2);
|
|
900
|
+
// 1st, 2nd, 3rd, 4th
|
|
901
|
+
case "qo":
|
|
902
|
+
return n.ordinalNumber(r, { unit: "quarter" });
|
|
903
|
+
// Q1, Q2, Q3, Q4
|
|
904
|
+
case "qqq":
|
|
905
|
+
return n.quarter(r, {
|
|
906
|
+
width: "abbreviated",
|
|
907
|
+
context: "standalone"
|
|
908
|
+
});
|
|
909
|
+
// 1, 2, 3, 4 (narrow quarter; could be not numerical)
|
|
910
|
+
case "qqqqq":
|
|
911
|
+
return n.quarter(r, {
|
|
912
|
+
width: "narrow",
|
|
913
|
+
context: "standalone"
|
|
914
|
+
});
|
|
915
|
+
default:
|
|
916
|
+
return n.quarter(r, {
|
|
917
|
+
width: "wide",
|
|
918
|
+
context: "standalone"
|
|
919
|
+
});
|
|
920
|
+
}
|
|
921
|
+
},
|
|
922
|
+
// Month
|
|
923
|
+
M: function(e, t, n) {
|
|
924
|
+
const r = e.getMonth();
|
|
925
|
+
switch (t) {
|
|
926
|
+
case "M":
|
|
927
|
+
case "MM":
|
|
928
|
+
return z.M(e, t);
|
|
929
|
+
// 1st, 2nd, ..., 12th
|
|
930
|
+
case "Mo":
|
|
931
|
+
return n.ordinalNumber(r + 1, { unit: "month" });
|
|
932
|
+
// Jan, Feb, ..., Dec
|
|
933
|
+
case "MMM":
|
|
934
|
+
return n.month(r, {
|
|
935
|
+
width: "abbreviated",
|
|
936
|
+
context: "formatting"
|
|
937
|
+
});
|
|
938
|
+
// J, F, ..., D
|
|
939
|
+
case "MMMMM":
|
|
940
|
+
return n.month(r, {
|
|
941
|
+
width: "narrow",
|
|
942
|
+
context: "formatting"
|
|
943
|
+
});
|
|
944
|
+
default:
|
|
945
|
+
return n.month(r, { width: "wide", context: "formatting" });
|
|
946
|
+
}
|
|
947
|
+
},
|
|
948
|
+
// Stand-alone month
|
|
949
|
+
L: function(e, t, n) {
|
|
950
|
+
const r = e.getMonth();
|
|
951
|
+
switch (t) {
|
|
952
|
+
// 1, 2, ..., 12
|
|
953
|
+
case "L":
|
|
954
|
+
return String(r + 1);
|
|
955
|
+
// 01, 02, ..., 12
|
|
956
|
+
case "LL":
|
|
957
|
+
return E(r + 1, 2);
|
|
958
|
+
// 1st, 2nd, ..., 12th
|
|
959
|
+
case "Lo":
|
|
960
|
+
return n.ordinalNumber(r + 1, { unit: "month" });
|
|
961
|
+
// Jan, Feb, ..., Dec
|
|
962
|
+
case "LLL":
|
|
963
|
+
return n.month(r, {
|
|
964
|
+
width: "abbreviated",
|
|
965
|
+
context: "standalone"
|
|
966
|
+
});
|
|
967
|
+
// J, F, ..., D
|
|
968
|
+
case "LLLLL":
|
|
969
|
+
return n.month(r, {
|
|
970
|
+
width: "narrow",
|
|
971
|
+
context: "standalone"
|
|
972
|
+
});
|
|
973
|
+
default:
|
|
974
|
+
return n.month(r, { width: "wide", context: "standalone" });
|
|
975
|
+
}
|
|
976
|
+
},
|
|
977
|
+
// Local week of year
|
|
978
|
+
w: function(e, t, n, r) {
|
|
979
|
+
const o = Xo(e, r);
|
|
980
|
+
return t === "wo" ? n.ordinalNumber(o, { unit: "week" }) : E(o, t.length);
|
|
981
|
+
},
|
|
982
|
+
// ISO week of year
|
|
983
|
+
I: function(e, t, n) {
|
|
984
|
+
const r = jo(e);
|
|
985
|
+
return t === "Io" ? n.ordinalNumber(r, { unit: "week" }) : E(r, t.length);
|
|
986
|
+
},
|
|
987
|
+
// Day of the month
|
|
988
|
+
d: function(e, t, n) {
|
|
989
|
+
return t === "do" ? n.ordinalNumber(e.getDate(), { unit: "date" }) : z.d(e, t);
|
|
990
|
+
},
|
|
991
|
+
// Day of year
|
|
992
|
+
D: function(e, t, n) {
|
|
993
|
+
const r = qo(e);
|
|
994
|
+
return t === "Do" ? n.ordinalNumber(r, { unit: "dayOfYear" }) : E(r, t.length);
|
|
995
|
+
},
|
|
996
|
+
// Day of week
|
|
997
|
+
E: function(e, t, n) {
|
|
998
|
+
const r = e.getDay();
|
|
999
|
+
switch (t) {
|
|
1000
|
+
// Tue
|
|
1001
|
+
case "E":
|
|
1002
|
+
case "EE":
|
|
1003
|
+
case "EEE":
|
|
1004
|
+
return n.day(r, {
|
|
1005
|
+
width: "abbreviated",
|
|
1006
|
+
context: "formatting"
|
|
1007
|
+
});
|
|
1008
|
+
// T
|
|
1009
|
+
case "EEEEE":
|
|
1010
|
+
return n.day(r, {
|
|
1011
|
+
width: "narrow",
|
|
1012
|
+
context: "formatting"
|
|
1013
|
+
});
|
|
1014
|
+
// Tu
|
|
1015
|
+
case "EEEEEE":
|
|
1016
|
+
return n.day(r, {
|
|
1017
|
+
width: "short",
|
|
1018
|
+
context: "formatting"
|
|
1019
|
+
});
|
|
1020
|
+
default:
|
|
1021
|
+
return n.day(r, {
|
|
1022
|
+
width: "wide",
|
|
1023
|
+
context: "formatting"
|
|
1024
|
+
});
|
|
1025
|
+
}
|
|
1026
|
+
},
|
|
1027
|
+
// Local day of week
|
|
1028
|
+
e: function(e, t, n, r) {
|
|
1029
|
+
const o = e.getDay(), s = (o - r.weekStartsOn + 8) % 7 || 7;
|
|
1030
|
+
switch (t) {
|
|
1031
|
+
// Numerical value (Nth day of week with current locale or weekStartsOn)
|
|
1032
|
+
case "e":
|
|
1033
|
+
return String(s);
|
|
1034
|
+
// Padded numerical value
|
|
1035
|
+
case "ee":
|
|
1036
|
+
return E(s, 2);
|
|
1037
|
+
// 1st, 2nd, ..., 7th
|
|
1038
|
+
case "eo":
|
|
1039
|
+
return n.ordinalNumber(s, { unit: "day" });
|
|
1040
|
+
case "eee":
|
|
1041
|
+
return n.day(o, {
|
|
1042
|
+
width: "abbreviated",
|
|
1043
|
+
context: "formatting"
|
|
1044
|
+
});
|
|
1045
|
+
// T
|
|
1046
|
+
case "eeeee":
|
|
1047
|
+
return n.day(o, {
|
|
1048
|
+
width: "narrow",
|
|
1049
|
+
context: "formatting"
|
|
1050
|
+
});
|
|
1051
|
+
// Tu
|
|
1052
|
+
case "eeeeee":
|
|
1053
|
+
return n.day(o, {
|
|
1054
|
+
width: "short",
|
|
1055
|
+
context: "formatting"
|
|
1056
|
+
});
|
|
1057
|
+
default:
|
|
1058
|
+
return n.day(o, {
|
|
1059
|
+
width: "wide",
|
|
1060
|
+
context: "formatting"
|
|
1061
|
+
});
|
|
1062
|
+
}
|
|
1063
|
+
},
|
|
1064
|
+
// Stand-alone local day of week
|
|
1065
|
+
c: function(e, t, n, r) {
|
|
1066
|
+
const o = e.getDay(), s = (o - r.weekStartsOn + 8) % 7 || 7;
|
|
1067
|
+
switch (t) {
|
|
1068
|
+
// Numerical value (same as in `e`)
|
|
1069
|
+
case "c":
|
|
1070
|
+
return String(s);
|
|
1071
|
+
// Padded numerical value
|
|
1072
|
+
case "cc":
|
|
1073
|
+
return E(s, t.length);
|
|
1074
|
+
// 1st, 2nd, ..., 7th
|
|
1075
|
+
case "co":
|
|
1076
|
+
return n.ordinalNumber(s, { unit: "day" });
|
|
1077
|
+
case "ccc":
|
|
1078
|
+
return n.day(o, {
|
|
1079
|
+
width: "abbreviated",
|
|
1080
|
+
context: "standalone"
|
|
1081
|
+
});
|
|
1082
|
+
// T
|
|
1083
|
+
case "ccccc":
|
|
1084
|
+
return n.day(o, {
|
|
1085
|
+
width: "narrow",
|
|
1086
|
+
context: "standalone"
|
|
1087
|
+
});
|
|
1088
|
+
// Tu
|
|
1089
|
+
case "cccccc":
|
|
1090
|
+
return n.day(o, {
|
|
1091
|
+
width: "short",
|
|
1092
|
+
context: "standalone"
|
|
1093
|
+
});
|
|
1094
|
+
default:
|
|
1095
|
+
return n.day(o, {
|
|
1096
|
+
width: "wide",
|
|
1097
|
+
context: "standalone"
|
|
1098
|
+
});
|
|
1099
|
+
}
|
|
1100
|
+
},
|
|
1101
|
+
// ISO day of week
|
|
1102
|
+
i: function(e, t, n) {
|
|
1103
|
+
const r = e.getDay(), o = r === 0 ? 7 : r;
|
|
1104
|
+
switch (t) {
|
|
1105
|
+
// 2
|
|
1106
|
+
case "i":
|
|
1107
|
+
return String(o);
|
|
1108
|
+
// 02
|
|
1109
|
+
case "ii":
|
|
1110
|
+
return E(o, t.length);
|
|
1111
|
+
// 2nd
|
|
1112
|
+
case "io":
|
|
1113
|
+
return n.ordinalNumber(o, { unit: "day" });
|
|
1114
|
+
// Tue
|
|
1115
|
+
case "iii":
|
|
1116
|
+
return n.day(r, {
|
|
1117
|
+
width: "abbreviated",
|
|
1118
|
+
context: "formatting"
|
|
1119
|
+
});
|
|
1120
|
+
// T
|
|
1121
|
+
case "iiiii":
|
|
1122
|
+
return n.day(r, {
|
|
1123
|
+
width: "narrow",
|
|
1124
|
+
context: "formatting"
|
|
1125
|
+
});
|
|
1126
|
+
// Tu
|
|
1127
|
+
case "iiiiii":
|
|
1128
|
+
return n.day(r, {
|
|
1129
|
+
width: "short",
|
|
1130
|
+
context: "formatting"
|
|
1131
|
+
});
|
|
1132
|
+
default:
|
|
1133
|
+
return n.day(r, {
|
|
1134
|
+
width: "wide",
|
|
1135
|
+
context: "formatting"
|
|
1136
|
+
});
|
|
1137
|
+
}
|
|
1138
|
+
},
|
|
1139
|
+
// AM or PM
|
|
1140
|
+
a: function(e, t, n) {
|
|
1141
|
+
const o = e.getHours() / 12 >= 1 ? "pm" : "am";
|
|
1142
|
+
switch (t) {
|
|
1143
|
+
case "a":
|
|
1144
|
+
case "aa":
|
|
1145
|
+
return n.dayPeriod(o, {
|
|
1146
|
+
width: "abbreviated",
|
|
1147
|
+
context: "formatting"
|
|
1148
|
+
});
|
|
1149
|
+
case "aaa":
|
|
1150
|
+
return n.dayPeriod(o, {
|
|
1151
|
+
width: "abbreviated",
|
|
1152
|
+
context: "formatting"
|
|
1153
|
+
}).toLowerCase();
|
|
1154
|
+
case "aaaaa":
|
|
1155
|
+
return n.dayPeriod(o, {
|
|
1156
|
+
width: "narrow",
|
|
1157
|
+
context: "formatting"
|
|
1158
|
+
});
|
|
1159
|
+
default:
|
|
1160
|
+
return n.dayPeriod(o, {
|
|
1161
|
+
width: "wide",
|
|
1162
|
+
context: "formatting"
|
|
1163
|
+
});
|
|
1164
|
+
}
|
|
1165
|
+
},
|
|
1166
|
+
// AM, PM, midnight, noon
|
|
1167
|
+
b: function(e, t, n) {
|
|
1168
|
+
const r = e.getHours();
|
|
1169
|
+
let o;
|
|
1170
|
+
switch (r === 12 ? o = K.noon : r === 0 ? o = K.midnight : o = r / 12 >= 1 ? "pm" : "am", t) {
|
|
1171
|
+
case "b":
|
|
1172
|
+
case "bb":
|
|
1173
|
+
return n.dayPeriod(o, {
|
|
1174
|
+
width: "abbreviated",
|
|
1175
|
+
context: "formatting"
|
|
1176
|
+
});
|
|
1177
|
+
case "bbb":
|
|
1178
|
+
return n.dayPeriod(o, {
|
|
1179
|
+
width: "abbreviated",
|
|
1180
|
+
context: "formatting"
|
|
1181
|
+
}).toLowerCase();
|
|
1182
|
+
case "bbbbb":
|
|
1183
|
+
return n.dayPeriod(o, {
|
|
1184
|
+
width: "narrow",
|
|
1185
|
+
context: "formatting"
|
|
1186
|
+
});
|
|
1187
|
+
default:
|
|
1188
|
+
return n.dayPeriod(o, {
|
|
1189
|
+
width: "wide",
|
|
1190
|
+
context: "formatting"
|
|
1191
|
+
});
|
|
1192
|
+
}
|
|
1193
|
+
},
|
|
1194
|
+
// in the morning, in the afternoon, in the evening, at night
|
|
1195
|
+
B: function(e, t, n) {
|
|
1196
|
+
const r = e.getHours();
|
|
1197
|
+
let o;
|
|
1198
|
+
switch (r >= 17 ? o = K.evening : r >= 12 ? o = K.afternoon : r >= 4 ? o = K.morning : o = K.night, t) {
|
|
1199
|
+
case "B":
|
|
1200
|
+
case "BB":
|
|
1201
|
+
case "BBB":
|
|
1202
|
+
return n.dayPeriod(o, {
|
|
1203
|
+
width: "abbreviated",
|
|
1204
|
+
context: "formatting"
|
|
1205
|
+
});
|
|
1206
|
+
case "BBBBB":
|
|
1207
|
+
return n.dayPeriod(o, {
|
|
1208
|
+
width: "narrow",
|
|
1209
|
+
context: "formatting"
|
|
1210
|
+
});
|
|
1211
|
+
default:
|
|
1212
|
+
return n.dayPeriod(o, {
|
|
1213
|
+
width: "wide",
|
|
1214
|
+
context: "formatting"
|
|
1215
|
+
});
|
|
1216
|
+
}
|
|
1217
|
+
},
|
|
1218
|
+
// Hour [1-12]
|
|
1219
|
+
h: function(e, t, n) {
|
|
1220
|
+
if (t === "ho") {
|
|
1221
|
+
let r = e.getHours() % 12;
|
|
1222
|
+
return r === 0 && (r = 12), n.ordinalNumber(r, { unit: "hour" });
|
|
1223
|
+
}
|
|
1224
|
+
return z.h(e, t);
|
|
1225
|
+
},
|
|
1226
|
+
// Hour [0-23]
|
|
1227
|
+
H: function(e, t, n) {
|
|
1228
|
+
return t === "Ho" ? n.ordinalNumber(e.getHours(), { unit: "hour" }) : z.H(e, t);
|
|
1229
|
+
},
|
|
1230
|
+
// Hour [0-11]
|
|
1231
|
+
K: function(e, t, n) {
|
|
1232
|
+
const r = e.getHours() % 12;
|
|
1233
|
+
return t === "Ko" ? n.ordinalNumber(r, { unit: "hour" }) : E(r, t.length);
|
|
1234
|
+
},
|
|
1235
|
+
// Hour [1-24]
|
|
1236
|
+
k: function(e, t, n) {
|
|
1237
|
+
let r = e.getHours();
|
|
1238
|
+
return r === 0 && (r = 24), t === "ko" ? n.ordinalNumber(r, { unit: "hour" }) : E(r, t.length);
|
|
1239
|
+
},
|
|
1240
|
+
// Minute
|
|
1241
|
+
m: function(e, t, n) {
|
|
1242
|
+
return t === "mo" ? n.ordinalNumber(e.getMinutes(), { unit: "minute" }) : z.m(e, t);
|
|
1243
|
+
},
|
|
1244
|
+
// Second
|
|
1245
|
+
s: function(e, t, n) {
|
|
1246
|
+
return t === "so" ? n.ordinalNumber(e.getSeconds(), { unit: "second" }) : z.s(e, t);
|
|
1247
|
+
},
|
|
1248
|
+
// Fraction of second
|
|
1249
|
+
S: function(e, t) {
|
|
1250
|
+
return z.S(e, t);
|
|
1251
|
+
},
|
|
1252
|
+
// Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
|
|
1253
|
+
X: function(e, t, n) {
|
|
1254
|
+
const r = e.getTimezoneOffset();
|
|
1255
|
+
if (r === 0)
|
|
1256
|
+
return "Z";
|
|
1257
|
+
switch (t) {
|
|
1258
|
+
// Hours and optional minutes
|
|
1259
|
+
case "X":
|
|
1260
|
+
return sn(r);
|
|
1261
|
+
// Hours, minutes and optional seconds without `:` delimiter
|
|
1262
|
+
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
1263
|
+
// so this token always has the same output as `XX`
|
|
1264
|
+
case "XXXX":
|
|
1265
|
+
case "XX":
|
|
1266
|
+
return X(r);
|
|
1267
|
+
// Hours and minutes with `:` delimiter
|
|
1268
|
+
default:
|
|
1269
|
+
return X(r, ":");
|
|
1270
|
+
}
|
|
1271
|
+
},
|
|
1272
|
+
// Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
|
|
1273
|
+
x: function(e, t, n) {
|
|
1274
|
+
const r = e.getTimezoneOffset();
|
|
1275
|
+
switch (t) {
|
|
1276
|
+
// Hours and optional minutes
|
|
1277
|
+
case "x":
|
|
1278
|
+
return sn(r);
|
|
1279
|
+
// Hours, minutes and optional seconds without `:` delimiter
|
|
1280
|
+
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
1281
|
+
// so this token always has the same output as `xx`
|
|
1282
|
+
case "xxxx":
|
|
1283
|
+
case "xx":
|
|
1284
|
+
return X(r);
|
|
1285
|
+
// Hours and minutes with `:` delimiter
|
|
1286
|
+
default:
|
|
1287
|
+
return X(r, ":");
|
|
1288
|
+
}
|
|
1289
|
+
},
|
|
1290
|
+
// Timezone (GMT)
|
|
1291
|
+
O: function(e, t, n) {
|
|
1292
|
+
const r = e.getTimezoneOffset();
|
|
1293
|
+
switch (t) {
|
|
1294
|
+
// Short
|
|
1295
|
+
case "O":
|
|
1296
|
+
case "OO":
|
|
1297
|
+
case "OOO":
|
|
1298
|
+
return "GMT" + on(r, ":");
|
|
1299
|
+
default:
|
|
1300
|
+
return "GMT" + X(r, ":");
|
|
1301
|
+
}
|
|
1302
|
+
},
|
|
1303
|
+
// Timezone (specific non-location)
|
|
1304
|
+
z: function(e, t, n) {
|
|
1305
|
+
const r = e.getTimezoneOffset();
|
|
1306
|
+
switch (t) {
|
|
1307
|
+
// Short
|
|
1308
|
+
case "z":
|
|
1309
|
+
case "zz":
|
|
1310
|
+
case "zzz":
|
|
1311
|
+
return "GMT" + on(r, ":");
|
|
1312
|
+
default:
|
|
1313
|
+
return "GMT" + X(r, ":");
|
|
1314
|
+
}
|
|
1315
|
+
},
|
|
1316
|
+
// Seconds timestamp
|
|
1317
|
+
t: function(e, t, n) {
|
|
1318
|
+
const r = Math.trunc(+e / 1e3);
|
|
1319
|
+
return E(r, t.length);
|
|
1320
|
+
},
|
|
1321
|
+
// Milliseconds timestamp
|
|
1322
|
+
T: function(e, t, n) {
|
|
1323
|
+
return E(+e, t.length);
|
|
1324
|
+
}
|
|
1325
|
+
};
|
|
1326
|
+
function on(e, t = "") {
|
|
1327
|
+
const n = e > 0 ? "-" : "+", r = Math.abs(e), o = Math.trunc(r / 60), s = r % 60;
|
|
1328
|
+
return s === 0 ? n + String(o) : n + String(o) + t + E(s, 2);
|
|
1329
|
+
}
|
|
1330
|
+
function sn(e, t) {
|
|
1331
|
+
return e % 60 === 0 ? (e > 0 ? "-" : "+") + E(Math.abs(e) / 60, 2) : X(e, t);
|
|
1332
|
+
}
|
|
1333
|
+
function X(e, t = "") {
|
|
1334
|
+
const n = e > 0 ? "-" : "+", r = Math.abs(e), o = E(Math.trunc(r / 60), 2), s = E(r % 60, 2);
|
|
1335
|
+
return n + o + t + s;
|
|
1336
|
+
}
|
|
1337
|
+
const an = (e, t) => {
|
|
1338
|
+
switch (e) {
|
|
1339
|
+
case "P":
|
|
1340
|
+
return t.date({ width: "short" });
|
|
1341
|
+
case "PP":
|
|
1342
|
+
return t.date({ width: "medium" });
|
|
1343
|
+
case "PPP":
|
|
1344
|
+
return t.date({ width: "long" });
|
|
1345
|
+
default:
|
|
1346
|
+
return t.date({ width: "full" });
|
|
1347
|
+
}
|
|
1348
|
+
}, Hn = (e, t) => {
|
|
1349
|
+
switch (e) {
|
|
1350
|
+
case "p":
|
|
1351
|
+
return t.time({ width: "short" });
|
|
1352
|
+
case "pp":
|
|
1353
|
+
return t.time({ width: "medium" });
|
|
1354
|
+
case "ppp":
|
|
1355
|
+
return t.time({ width: "long" });
|
|
1356
|
+
default:
|
|
1357
|
+
return t.time({ width: "full" });
|
|
1358
|
+
}
|
|
1359
|
+
}, Jo = (e, t) => {
|
|
1360
|
+
const n = e.match(/(P+)(p+)?/) || [], r = n[1], o = n[2];
|
|
1361
|
+
if (!o)
|
|
1362
|
+
return an(e, t);
|
|
1363
|
+
let s;
|
|
1364
|
+
switch (r) {
|
|
1365
|
+
case "P":
|
|
1366
|
+
s = t.dateTime({ width: "short" });
|
|
1367
|
+
break;
|
|
1368
|
+
case "PP":
|
|
1369
|
+
s = t.dateTime({ width: "medium" });
|
|
1370
|
+
break;
|
|
1371
|
+
case "PPP":
|
|
1372
|
+
s = t.dateTime({ width: "long" });
|
|
1373
|
+
break;
|
|
1374
|
+
default:
|
|
1375
|
+
s = t.dateTime({ width: "full" });
|
|
1376
|
+
break;
|
|
1377
|
+
}
|
|
1378
|
+
return s.replace("{{date}}", an(r, t)).replace("{{time}}", Hn(o, t));
|
|
1379
|
+
}, Vo = {
|
|
1380
|
+
p: Hn,
|
|
1381
|
+
P: Jo
|
|
1382
|
+
}, Zo = /^D+$/, Go = /^Y+$/, Qo = ["D", "DD", "YY", "YYYY"];
|
|
1383
|
+
function Ko(e) {
|
|
1384
|
+
return Zo.test(e);
|
|
1385
|
+
}
|
|
1386
|
+
function es(e) {
|
|
1387
|
+
return Go.test(e);
|
|
1388
|
+
}
|
|
1389
|
+
function ts(e, t, n) {
|
|
1390
|
+
const r = ns(e, t, n);
|
|
1391
|
+
if (console.warn(r), Qo.includes(e)) throw new RangeError(r);
|
|
1392
|
+
}
|
|
1393
|
+
function ns(e, t, n) {
|
|
1394
|
+
const r = e[0] === "Y" ? "years" : "days of the month";
|
|
1395
|
+
return `Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
|
|
1396
|
+
}
|
|
1397
|
+
const rs = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, os = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, ss = /^'([^]*?)'?$/, as = /''/g, is = /[a-zA-Z]/;
|
|
1398
|
+
function cs(e, t, n) {
|
|
1399
|
+
const r = re(), o = n?.locale ?? r.locale ?? Bn, s = n?.firstWeekContainsDate ?? n?.locale?.options?.firstWeekContainsDate ?? r.firstWeekContainsDate ?? r.locale?.options?.firstWeekContainsDate ?? 1, a = n?.weekStartsOn ?? n?.locale?.options?.weekStartsOn ?? r.weekStartsOn ?? r.locale?.options?.weekStartsOn ?? 0, i = M(e, n?.in);
|
|
1400
|
+
if (!to(i))
|
|
1401
|
+
throw new RangeError("Invalid time value");
|
|
1402
|
+
let l = t.match(os).map((f) => {
|
|
1403
|
+
const h = f[0];
|
|
1404
|
+
if (h === "p" || h === "P") {
|
|
1405
|
+
const w = Vo[h];
|
|
1406
|
+
return w(f, o.formatLong);
|
|
1407
|
+
}
|
|
1408
|
+
return f;
|
|
1409
|
+
}).join("").match(rs).map((f) => {
|
|
1410
|
+
if (f === "''")
|
|
1411
|
+
return { isToken: !1, value: "'" };
|
|
1412
|
+
const h = f[0];
|
|
1413
|
+
if (h === "'")
|
|
1414
|
+
return { isToken: !1, value: us(f) };
|
|
1415
|
+
if (rn[h])
|
|
1416
|
+
return { isToken: !0, value: f };
|
|
1417
|
+
if (h.match(is))
|
|
1418
|
+
throw new RangeError(
|
|
1419
|
+
"Format string contains an unescaped latin alphabet character `" + h + "`"
|
|
1420
|
+
);
|
|
1421
|
+
return { isToken: !1, value: f };
|
|
1422
|
+
});
|
|
1423
|
+
o.localize.preprocessor && (l = o.localize.preprocessor(i, l));
|
|
1424
|
+
const u = {
|
|
1425
|
+
firstWeekContainsDate: s,
|
|
1426
|
+
weekStartsOn: a,
|
|
1427
|
+
locale: o
|
|
1428
|
+
};
|
|
1429
|
+
return l.map((f) => {
|
|
1430
|
+
if (!f.isToken) return f.value;
|
|
1431
|
+
const h = f.value;
|
|
1432
|
+
(!n?.useAdditionalWeekYearTokens && es(h) || !n?.useAdditionalDayOfYearTokens && Ko(h)) && ts(h, t, String(e));
|
|
1433
|
+
const w = rn[h[0]];
|
|
1434
|
+
return w(i, h, o.localize, u);
|
|
1435
|
+
}).join("");
|
|
1436
|
+
}
|
|
1437
|
+
function us(e) {
|
|
1438
|
+
const t = e.match(ss);
|
|
1439
|
+
return t ? t[1].replace(as, "'") : e;
|
|
1440
|
+
}
|
|
1441
|
+
function ls(e, t, n) {
|
|
1442
|
+
const r = re(), o = n?.locale ?? r.locale ?? Bn, s = 2520, a = Ne(e, t);
|
|
1443
|
+
if (isNaN(a)) throw new RangeError("Invalid time value");
|
|
1444
|
+
const i = Object.assign({}, n, {
|
|
1445
|
+
addSuffix: n?.addSuffix,
|
|
1446
|
+
comparison: a
|
|
1447
|
+
}), [l, u] = Fe(
|
|
1448
|
+
n?.in,
|
|
1449
|
+
...a > 0 ? [t, e] : [e, t]
|
|
1450
|
+
), f = uo(u, l), h = (Pe(u) - Pe(l)) / 1e3, w = Math.round((f - h) / 60);
|
|
1451
|
+
let O;
|
|
1452
|
+
if (w < 2)
|
|
1453
|
+
return n?.includeSeconds ? f < 5 ? o.formatDistance("lessThanXSeconds", 5, i) : f < 10 ? o.formatDistance("lessThanXSeconds", 10, i) : f < 20 ? o.formatDistance("lessThanXSeconds", 20, i) : f < 40 ? o.formatDistance("halfAMinute", 0, i) : f < 60 ? o.formatDistance("lessThanXMinutes", 1, i) : o.formatDistance("xMinutes", 1, i) : w === 0 ? o.formatDistance("lessThanXMinutes", 1, i) : o.formatDistance("xMinutes", w, i);
|
|
1454
|
+
if (w < 45)
|
|
1455
|
+
return o.formatDistance("xMinutes", w, i);
|
|
1456
|
+
if (w < 90)
|
|
1457
|
+
return o.formatDistance("aboutXHours", 1, i);
|
|
1458
|
+
if (w < en) {
|
|
1459
|
+
const d = Math.round(w / 60);
|
|
1460
|
+
return o.formatDistance("aboutXHours", d, i);
|
|
1461
|
+
} else {
|
|
1462
|
+
if (w < s)
|
|
1463
|
+
return o.formatDistance("xDays", 1, i);
|
|
1464
|
+
if (w < be) {
|
|
1465
|
+
const d = Math.round(w / en);
|
|
1466
|
+
return o.formatDistance("xDays", d, i);
|
|
1467
|
+
} else if (w < be * 2)
|
|
1468
|
+
return O = Math.round(w / be), o.formatDistance("aboutXMonths", O, i);
|
|
1469
|
+
}
|
|
1470
|
+
if (O = co(u, l), O < 12) {
|
|
1471
|
+
const d = Math.round(w / be);
|
|
1472
|
+
return o.formatDistance("xMonths", d, i);
|
|
1473
|
+
} else {
|
|
1474
|
+
const d = O % 12, y = Math.trunc(O / 12);
|
|
1475
|
+
return d < 3 ? o.formatDistance("aboutXYears", y, i) : d < 9 ? o.formatDistance("overXYears", y, i) : o.formatDistance("almostXYears", y + 1, i);
|
|
1476
|
+
}
|
|
1477
|
+
}
|
|
1478
|
+
function fs() {
|
|
1479
|
+
return Object.assign({}, re());
|
|
1480
|
+
}
|
|
1481
|
+
function ds(e, t) {
|
|
1482
|
+
return +M(e) < +M(t);
|
|
1483
|
+
}
|
|
1484
|
+
function hs(e, t, n) {
|
|
1485
|
+
return Zr(e, -t, n);
|
|
1486
|
+
}
|
|
1487
|
+
function ms(e, t) {
|
|
1488
|
+
const n = () => W(t?.in, NaN), r = t?.additionalDigits ?? 2, o = ys(e);
|
|
1489
|
+
let s;
|
|
1490
|
+
if (o.date) {
|
|
1491
|
+
const u = bs(o.date, r);
|
|
1492
|
+
s = Ts(u.restDateString, u.year);
|
|
1493
|
+
}
|
|
1494
|
+
if (!s || isNaN(+s)) return n();
|
|
1495
|
+
const a = +s;
|
|
1496
|
+
let i = 0, l;
|
|
1497
|
+
if (o.time && (i = Ss(o.time), isNaN(i)))
|
|
1498
|
+
return n();
|
|
1499
|
+
if (o.timezone) {
|
|
1500
|
+
if (l = Ds(o.timezone), isNaN(l)) return n();
|
|
1501
|
+
} else {
|
|
1502
|
+
const u = new Date(a + i), f = M(0, t?.in);
|
|
1503
|
+
return f.setFullYear(
|
|
1504
|
+
u.getUTCFullYear(),
|
|
1505
|
+
u.getUTCMonth(),
|
|
1506
|
+
u.getUTCDate()
|
|
1507
|
+
), f.setHours(
|
|
1508
|
+
u.getUTCHours(),
|
|
1509
|
+
u.getUTCMinutes(),
|
|
1510
|
+
u.getUTCSeconds(),
|
|
1511
|
+
u.getUTCMilliseconds()
|
|
1512
|
+
), f;
|
|
1513
|
+
}
|
|
1514
|
+
return M(a + i + l, t?.in);
|
|
1515
|
+
}
|
|
1516
|
+
const Te = {
|
|
1517
|
+
dateTimeDelimiter: /[T ]/,
|
|
1518
|
+
timeZoneDelimiter: /[Z ]/i,
|
|
1519
|
+
timezone: /([Z+-].*)$/
|
|
1520
|
+
}, ps = /^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/, gs = /^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/, ws = /^([+-])(\d{2})(?::?(\d{2}))?$/;
|
|
1521
|
+
function ys(e) {
|
|
1522
|
+
const t = {}, n = e.split(Te.dateTimeDelimiter);
|
|
1523
|
+
let r;
|
|
1524
|
+
if (n.length > 2)
|
|
1525
|
+
return t;
|
|
1526
|
+
if (/:/.test(n[0]) ? r = n[0] : (t.date = n[0], r = n[1], Te.timeZoneDelimiter.test(t.date) && (t.date = e.split(Te.timeZoneDelimiter)[0], r = e.substr(
|
|
1527
|
+
t.date.length,
|
|
1528
|
+
e.length
|
|
1529
|
+
))), r) {
|
|
1530
|
+
const o = Te.timezone.exec(r);
|
|
1531
|
+
o ? (t.time = r.replace(o[1], ""), t.timezone = o[1]) : t.time = r;
|
|
1532
|
+
}
|
|
1533
|
+
return t;
|
|
1534
|
+
}
|
|
1535
|
+
function bs(e, t) {
|
|
1536
|
+
const n = new RegExp(
|
|
1537
|
+
"^(?:(\\d{4}|[+-]\\d{" + (4 + t) + "})|(\\d{2}|[+-]\\d{" + (2 + t) + "})$)"
|
|
1538
|
+
), r = e.match(n);
|
|
1539
|
+
if (!r) return { year: NaN, restDateString: "" };
|
|
1540
|
+
const o = r[1] ? parseInt(r[1]) : null, s = r[2] ? parseInt(r[2]) : null;
|
|
1541
|
+
return {
|
|
1542
|
+
year: s === null ? o : s * 100,
|
|
1543
|
+
restDateString: e.slice((r[1] || r[2]).length)
|
|
1544
|
+
};
|
|
1545
|
+
}
|
|
1546
|
+
function Ts(e, t) {
|
|
1547
|
+
if (t === null) return /* @__PURE__ */ new Date(NaN);
|
|
1548
|
+
const n = e.match(ps);
|
|
1549
|
+
if (!n) return /* @__PURE__ */ new Date(NaN);
|
|
1550
|
+
const r = !!n[4], o = ue(n[1]), s = ue(n[2]) - 1, a = ue(n[3]), i = ue(n[4]), l = ue(n[5]) - 1;
|
|
1551
|
+
if (r)
|
|
1552
|
+
return Ms(t, i, l) ? Os(t, i, l) : /* @__PURE__ */ new Date(NaN);
|
|
1553
|
+
{
|
|
1554
|
+
const u = /* @__PURE__ */ new Date(0);
|
|
1555
|
+
return !Ns(t, s, a) || !ks(t, o) ? /* @__PURE__ */ new Date(NaN) : (u.setUTCFullYear(t, s, Math.max(o, a)), u);
|
|
1556
|
+
}
|
|
1557
|
+
}
|
|
1558
|
+
function ue(e) {
|
|
1559
|
+
return e ? parseInt(e) : 1;
|
|
1560
|
+
}
|
|
1561
|
+
function Ss(e) {
|
|
1562
|
+
const t = e.match(gs);
|
|
1563
|
+
if (!t) return NaN;
|
|
1564
|
+
const n = ot(t[1]), r = ot(t[2]), o = ot(t[3]);
|
|
1565
|
+
return xs(n, r, o) ? n * vn + r * $n + o * 1e3 : NaN;
|
|
1566
|
+
}
|
|
1567
|
+
function ot(e) {
|
|
1568
|
+
return e && parseFloat(e.replace(",", ".")) || 0;
|
|
1569
|
+
}
|
|
1570
|
+
function Ds(e) {
|
|
1571
|
+
if (e === "Z") return 0;
|
|
1572
|
+
const t = e.match(ws);
|
|
1573
|
+
if (!t) return 0;
|
|
1574
|
+
const n = t[1] === "+" ? -1 : 1, r = parseInt(t[2]), o = t[3] && parseInt(t[3]) || 0;
|
|
1575
|
+
return Cs(r, o) ? n * (r * vn + o * $n) : NaN;
|
|
1576
|
+
}
|
|
1577
|
+
function Os(e, t, n) {
|
|
1578
|
+
const r = /* @__PURE__ */ new Date(0);
|
|
1579
|
+
r.setUTCFullYear(e, 0, 4);
|
|
1580
|
+
const o = r.getUTCDay() || 7, s = (t - 1) * 7 + n + 1 - o;
|
|
1581
|
+
return r.setUTCDate(r.getUTCDate() + s), r;
|
|
1582
|
+
}
|
|
1583
|
+
const Es = [31, null, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
1584
|
+
function Wn(e) {
|
|
1585
|
+
return e % 400 === 0 || e % 4 === 0 && e % 100 !== 0;
|
|
1586
|
+
}
|
|
1587
|
+
function Ns(e, t, n) {
|
|
1588
|
+
return t >= 0 && t <= 11 && n >= 1 && n <= (Es[t] || (Wn(e) ? 29 : 28));
|
|
1589
|
+
}
|
|
1590
|
+
function ks(e, t) {
|
|
1591
|
+
return t >= 1 && t <= (Wn(e) ? 366 : 365);
|
|
1592
|
+
}
|
|
1593
|
+
function Ms(e, t, n) {
|
|
1594
|
+
return t >= 1 && t <= 53 && n >= 0 && n <= 6;
|
|
1595
|
+
}
|
|
1596
|
+
function xs(e, t, n) {
|
|
1597
|
+
return e === 24 ? t === 0 && n === 0 : n >= 0 && n < 60 && t >= 0 && t < 60 && e >= 0 && e < 25;
|
|
1598
|
+
}
|
|
1599
|
+
function Cs(e, t) {
|
|
1600
|
+
return t >= 0 && t <= 59;
|
|
1601
|
+
}
|
|
1602
|
+
function cn(e, t, n) {
|
|
1603
|
+
const r = fs(), o = Rs(e, n.timeZone, n.locale ?? r.locale);
|
|
1604
|
+
return "formatToParts" in o ? Ps(o, t) : As(o, t);
|
|
1605
|
+
}
|
|
1606
|
+
function Ps(e, t) {
|
|
1607
|
+
const n = e.formatToParts(t);
|
|
1608
|
+
for (let r = n.length - 1; r >= 0; --r)
|
|
1609
|
+
if (n[r].type === "timeZoneName")
|
|
1610
|
+
return n[r].value;
|
|
1611
|
+
}
|
|
1612
|
+
function As(e, t) {
|
|
1613
|
+
const n = e.format(t).replace(/\u200E/g, ""), r = / [\w-+ ]+$/.exec(n);
|
|
1614
|
+
return r ? r[0].substr(1) : "";
|
|
1615
|
+
}
|
|
1616
|
+
function Rs(e, t, n) {
|
|
1617
|
+
return new Intl.DateTimeFormat(n ? [n.code, "en-US"] : void 0, {
|
|
1618
|
+
timeZone: t,
|
|
1619
|
+
timeZoneName: e
|
|
1620
|
+
});
|
|
1621
|
+
}
|
|
1622
|
+
function Fs(e, t) {
|
|
1623
|
+
const n = vs(t);
|
|
1624
|
+
return "formatToParts" in n ? Is(n, e) : _s(n, e);
|
|
1625
|
+
}
|
|
1626
|
+
const Us = {
|
|
1627
|
+
year: 0,
|
|
1628
|
+
month: 1,
|
|
1629
|
+
day: 2,
|
|
1630
|
+
hour: 3,
|
|
1631
|
+
minute: 4,
|
|
1632
|
+
second: 5
|
|
1633
|
+
};
|
|
1634
|
+
function Is(e, t) {
|
|
1635
|
+
try {
|
|
1636
|
+
const n = e.formatToParts(t), r = [];
|
|
1637
|
+
for (let o = 0; o < n.length; o++) {
|
|
1638
|
+
const s = Us[n[o].type];
|
|
1639
|
+
s !== void 0 && (r[s] = parseInt(n[o].value, 10));
|
|
1640
|
+
}
|
|
1641
|
+
return r;
|
|
1642
|
+
} catch (n) {
|
|
1643
|
+
if (n instanceof RangeError)
|
|
1644
|
+
return [NaN];
|
|
1645
|
+
throw n;
|
|
1646
|
+
}
|
|
1647
|
+
}
|
|
1648
|
+
function _s(e, t) {
|
|
1649
|
+
const n = e.format(t), r = /(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);
|
|
1650
|
+
return [
|
|
1651
|
+
parseInt(r[3], 10),
|
|
1652
|
+
parseInt(r[1], 10),
|
|
1653
|
+
parseInt(r[2], 10),
|
|
1654
|
+
parseInt(r[4], 10),
|
|
1655
|
+
parseInt(r[5], 10),
|
|
1656
|
+
parseInt(r[6], 10)
|
|
1657
|
+
];
|
|
1658
|
+
}
|
|
1659
|
+
const st = {}, un = new Intl.DateTimeFormat("en-US", {
|
|
1660
|
+
hourCycle: "h23",
|
|
1661
|
+
timeZone: "America/New_York",
|
|
1662
|
+
year: "numeric",
|
|
1663
|
+
month: "2-digit",
|
|
1664
|
+
day: "2-digit",
|
|
1665
|
+
hour: "2-digit",
|
|
1666
|
+
minute: "2-digit",
|
|
1667
|
+
second: "2-digit"
|
|
1668
|
+
}).format(/* @__PURE__ */ new Date("2014-06-25T04:00:00.123Z")), $s = un === "06/25/2014, 00:00:00" || un === "06/25/2014 00:00:00";
|
|
1669
|
+
function vs(e) {
|
|
1670
|
+
return st[e] || (st[e] = $s ? new Intl.DateTimeFormat("en-US", {
|
|
1671
|
+
hourCycle: "h23",
|
|
1672
|
+
timeZone: e,
|
|
1673
|
+
year: "numeric",
|
|
1674
|
+
month: "numeric",
|
|
1675
|
+
day: "2-digit",
|
|
1676
|
+
hour: "2-digit",
|
|
1677
|
+
minute: "2-digit",
|
|
1678
|
+
second: "2-digit"
|
|
1679
|
+
}) : new Intl.DateTimeFormat("en-US", {
|
|
1680
|
+
hour12: !1,
|
|
1681
|
+
timeZone: e,
|
|
1682
|
+
year: "numeric",
|
|
1683
|
+
month: "numeric",
|
|
1684
|
+
day: "2-digit",
|
|
1685
|
+
hour: "2-digit",
|
|
1686
|
+
minute: "2-digit",
|
|
1687
|
+
second: "2-digit"
|
|
1688
|
+
})), st[e];
|
|
1689
|
+
}
|
|
1690
|
+
function qn(e, t, n, r, o, s, a) {
|
|
1691
|
+
const i = /* @__PURE__ */ new Date(0);
|
|
1692
|
+
return i.setUTCFullYear(e, t, n), i.setUTCHours(r, o, s, a), i;
|
|
1693
|
+
}
|
|
1694
|
+
const ln = 36e5, Ls = 6e4, at = {
|
|
1695
|
+
timezoneZ: /^(Z)$/,
|
|
1696
|
+
timezoneHH: /^([+-]\d{2})$/,
|
|
1697
|
+
timezoneHHMM: /^([+-])(\d{2}):?(\d{2})$/
|
|
1698
|
+
};
|
|
1699
|
+
function yt(e, t, n) {
|
|
1700
|
+
if (!e)
|
|
1701
|
+
return 0;
|
|
1702
|
+
let r = at.timezoneZ.exec(e);
|
|
1703
|
+
if (r)
|
|
1704
|
+
return 0;
|
|
1705
|
+
let o, s;
|
|
1706
|
+
if (r = at.timezoneHH.exec(e), r)
|
|
1707
|
+
return o = parseInt(r[1], 10), fn(o) ? -(o * ln) : NaN;
|
|
1708
|
+
if (r = at.timezoneHHMM.exec(e), r) {
|
|
1709
|
+
o = parseInt(r[2], 10);
|
|
1710
|
+
const a = parseInt(r[3], 10);
|
|
1711
|
+
return fn(o, a) ? (s = Math.abs(o) * ln + a * Ls, r[1] === "+" ? -s : s) : NaN;
|
|
1712
|
+
}
|
|
1713
|
+
if (Hs(e)) {
|
|
1714
|
+
t = new Date(t || Date.now());
|
|
1715
|
+
const a = n ? t : Bs(t), i = ht(a, e);
|
|
1716
|
+
return -(n ? i : Ys(t, i, e));
|
|
1717
|
+
}
|
|
1718
|
+
return NaN;
|
|
1719
|
+
}
|
|
1720
|
+
function Bs(e) {
|
|
1721
|
+
return qn(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds());
|
|
1722
|
+
}
|
|
1723
|
+
function ht(e, t) {
|
|
1724
|
+
const n = Fs(e, t), r = qn(n[0], n[1] - 1, n[2], n[3] % 24, n[4], n[5], 0).getTime();
|
|
1725
|
+
let o = e.getTime();
|
|
1726
|
+
const s = o % 1e3;
|
|
1727
|
+
return o -= s >= 0 ? s : 1e3 + s, r - o;
|
|
1728
|
+
}
|
|
1729
|
+
function Ys(e, t, n) {
|
|
1730
|
+
let o = e.getTime() - t;
|
|
1731
|
+
const s = ht(new Date(o), n);
|
|
1732
|
+
if (t === s)
|
|
1733
|
+
return t;
|
|
1734
|
+
o -= s - t;
|
|
1735
|
+
const a = ht(new Date(o), n);
|
|
1736
|
+
return s === a ? s : Math.max(s, a);
|
|
1737
|
+
}
|
|
1738
|
+
function fn(e, t) {
|
|
1739
|
+
return -23 <= e && e <= 23 && (t == null || 0 <= t && t <= 59);
|
|
1740
|
+
}
|
|
1741
|
+
const dn = {};
|
|
1742
|
+
function Hs(e) {
|
|
1743
|
+
if (dn[e])
|
|
1744
|
+
return !0;
|
|
1745
|
+
try {
|
|
1746
|
+
return new Intl.DateTimeFormat(void 0, { timeZone: e }), dn[e] = !0, !0;
|
|
1747
|
+
} catch {
|
|
1748
|
+
return !1;
|
|
1749
|
+
}
|
|
1750
|
+
}
|
|
1751
|
+
const Ws = 60 * 1e3, qs = {
|
|
1752
|
+
// Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
|
|
1753
|
+
X: function(e, t, n) {
|
|
1754
|
+
const r = it(n.timeZone, e);
|
|
1755
|
+
if (r === 0)
|
|
1756
|
+
return "Z";
|
|
1757
|
+
switch (t) {
|
|
1758
|
+
// Hours and optional minutes
|
|
1759
|
+
case "X":
|
|
1760
|
+
return hn(r);
|
|
1761
|
+
// Hours, minutes and optional seconds without `:` delimeter
|
|
1762
|
+
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
1763
|
+
// so this token always has the same output as `XX`
|
|
1764
|
+
case "XXXX":
|
|
1765
|
+
case "XX":
|
|
1766
|
+
return te(r);
|
|
1767
|
+
// Hours and minutes with `:` delimeter
|
|
1768
|
+
default:
|
|
1769
|
+
return te(r, ":");
|
|
1770
|
+
}
|
|
1771
|
+
},
|
|
1772
|
+
// Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
|
|
1773
|
+
x: function(e, t, n) {
|
|
1774
|
+
const r = it(n.timeZone, e);
|
|
1775
|
+
switch (t) {
|
|
1776
|
+
// Hours and optional minutes
|
|
1777
|
+
case "x":
|
|
1778
|
+
return hn(r);
|
|
1779
|
+
// Hours, minutes and optional seconds without `:` delimeter
|
|
1780
|
+
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
1781
|
+
// so this token always has the same output as `xx`
|
|
1782
|
+
case "xxxx":
|
|
1783
|
+
case "xx":
|
|
1784
|
+
return te(r);
|
|
1785
|
+
// Hours and minutes with `:` delimeter
|
|
1786
|
+
default:
|
|
1787
|
+
return te(r, ":");
|
|
1788
|
+
}
|
|
1789
|
+
},
|
|
1790
|
+
// Timezone (GMT)
|
|
1791
|
+
O: function(e, t, n) {
|
|
1792
|
+
const r = it(n.timeZone, e);
|
|
1793
|
+
switch (t) {
|
|
1794
|
+
// Short
|
|
1795
|
+
case "O":
|
|
1796
|
+
case "OO":
|
|
1797
|
+
case "OOO":
|
|
1798
|
+
return "GMT" + js(r, ":");
|
|
1799
|
+
default:
|
|
1800
|
+
return "GMT" + te(r, ":");
|
|
1801
|
+
}
|
|
1802
|
+
},
|
|
1803
|
+
// Timezone (specific non-location)
|
|
1804
|
+
z: function(e, t, n) {
|
|
1805
|
+
switch (t) {
|
|
1806
|
+
// Short
|
|
1807
|
+
case "z":
|
|
1808
|
+
case "zz":
|
|
1809
|
+
case "zzz":
|
|
1810
|
+
return cn("short", e, n);
|
|
1811
|
+
default:
|
|
1812
|
+
return cn("long", e, n);
|
|
1813
|
+
}
|
|
1814
|
+
}
|
|
1815
|
+
};
|
|
1816
|
+
function it(e, t) {
|
|
1817
|
+
const n = e ? yt(e, t, !0) / Ws : t?.getTimezoneOffset() ?? 0;
|
|
1818
|
+
if (Number.isNaN(n))
|
|
1819
|
+
throw new RangeError("Invalid time zone specified: " + e);
|
|
1820
|
+
return n;
|
|
1821
|
+
}
|
|
1822
|
+
function Ae(e, t) {
|
|
1823
|
+
const n = e < 0 ? "-" : "";
|
|
1824
|
+
let r = Math.abs(e).toString();
|
|
1825
|
+
for (; r.length < t; )
|
|
1826
|
+
r = "0" + r;
|
|
1827
|
+
return n + r;
|
|
1828
|
+
}
|
|
1829
|
+
function te(e, t = "") {
|
|
1830
|
+
const n = e > 0 ? "-" : "+", r = Math.abs(e), o = Ae(Math.floor(r / 60), 2), s = Ae(Math.floor(r % 60), 2);
|
|
1831
|
+
return n + o + t + s;
|
|
1832
|
+
}
|
|
1833
|
+
function hn(e, t) {
|
|
1834
|
+
return e % 60 === 0 ? (e > 0 ? "-" : "+") + Ae(Math.abs(e) / 60, 2) : te(e, t);
|
|
1835
|
+
}
|
|
1836
|
+
function js(e, t = "") {
|
|
1837
|
+
const n = e > 0 ? "-" : "+", r = Math.abs(e), o = Math.floor(r / 60), s = r % 60;
|
|
1838
|
+
return s === 0 ? n + String(o) : n + String(o) + t + Ae(s, 2);
|
|
1839
|
+
}
|
|
1840
|
+
function mn(e) {
|
|
1841
|
+
const t = new Date(Date.UTC(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds()));
|
|
1842
|
+
return t.setUTCFullYear(e.getFullYear()), +e - +t;
|
|
1843
|
+
}
|
|
1844
|
+
const zs = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/, ct = 36e5, pn = 6e4, Xs = 2, F = {
|
|
1845
|
+
dateTimePattern: /^([0-9W+-]+)(T| )(.*)/,
|
|
1846
|
+
datePattern: /^([0-9W+-]+)(.*)/,
|
|
1847
|
+
// year tokens
|
|
1848
|
+
YY: /^(\d{2})$/,
|
|
1849
|
+
YYY: [
|
|
1850
|
+
/^([+-]\d{2})$/,
|
|
1851
|
+
// 0 additional digits
|
|
1852
|
+
/^([+-]\d{3})$/,
|
|
1853
|
+
// 1 additional digit
|
|
1854
|
+
/^([+-]\d{4})$/
|
|
1855
|
+
// 2 additional digits
|
|
1856
|
+
],
|
|
1857
|
+
YYYY: /^(\d{4})/,
|
|
1858
|
+
YYYYY: [
|
|
1859
|
+
/^([+-]\d{4})/,
|
|
1860
|
+
// 0 additional digits
|
|
1861
|
+
/^([+-]\d{5})/,
|
|
1862
|
+
// 1 additional digit
|
|
1863
|
+
/^([+-]\d{6})/
|
|
1864
|
+
// 2 additional digits
|
|
1865
|
+
],
|
|
1866
|
+
// date tokens
|
|
1867
|
+
MM: /^-(\d{2})$/,
|
|
1868
|
+
DDD: /^-?(\d{3})$/,
|
|
1869
|
+
MMDD: /^-?(\d{2})-?(\d{2})$/,
|
|
1870
|
+
Www: /^-?W(\d{2})$/,
|
|
1871
|
+
WwwD: /^-?W(\d{2})-?(\d{1})$/,
|
|
1872
|
+
HH: /^(\d{2}([.,]\d*)?)$/,
|
|
1873
|
+
HHMM: /^(\d{2}):?(\d{2}([.,]\d*)?)$/,
|
|
1874
|
+
HHMMSS: /^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,
|
|
1875
|
+
// time zone tokens (to identify the presence of a tz)
|
|
1876
|
+
timeZone: zs
|
|
1877
|
+
};
|
|
1878
|
+
function jn(e, t = {}) {
|
|
1879
|
+
if (arguments.length < 1)
|
|
1880
|
+
throw new TypeError("1 argument required, but only " + arguments.length + " present");
|
|
1881
|
+
if (e === null)
|
|
1882
|
+
return /* @__PURE__ */ new Date(NaN);
|
|
1883
|
+
const n = t.additionalDigits == null ? Xs : Number(t.additionalDigits);
|
|
1884
|
+
if (n !== 2 && n !== 1 && n !== 0)
|
|
1885
|
+
throw new RangeError("additionalDigits must be 0, 1 or 2");
|
|
1886
|
+
if (e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]")
|
|
1887
|
+
return new Date(e.getTime());
|
|
1888
|
+
if (typeof e == "number" || Object.prototype.toString.call(e) === "[object Number]")
|
|
1889
|
+
return new Date(e);
|
|
1890
|
+
if (Object.prototype.toString.call(e) !== "[object String]")
|
|
1891
|
+
return /* @__PURE__ */ new Date(NaN);
|
|
1892
|
+
const r = Js(e), { year: o, restDateString: s } = Vs(r.date, n), a = Zs(s, o);
|
|
1893
|
+
if (a === null || isNaN(a.getTime()))
|
|
1894
|
+
return /* @__PURE__ */ new Date(NaN);
|
|
1895
|
+
if (a) {
|
|
1896
|
+
const i = a.getTime();
|
|
1897
|
+
let l = 0, u;
|
|
1898
|
+
if (r.time && (l = Gs(r.time), l === null || isNaN(l)))
|
|
1899
|
+
return /* @__PURE__ */ new Date(NaN);
|
|
1900
|
+
if (r.timeZone || t.timeZone) {
|
|
1901
|
+
if (u = yt(r.timeZone || t.timeZone, new Date(i + l)), isNaN(u))
|
|
1902
|
+
return /* @__PURE__ */ new Date(NaN);
|
|
1903
|
+
} else
|
|
1904
|
+
u = mn(new Date(i + l)), u = mn(new Date(i + l + u));
|
|
1905
|
+
return new Date(i + l + u);
|
|
1906
|
+
} else
|
|
1907
|
+
return /* @__PURE__ */ new Date(NaN);
|
|
1908
|
+
}
|
|
1909
|
+
function Js(e) {
|
|
1910
|
+
const t = {};
|
|
1911
|
+
let n = F.dateTimePattern.exec(e), r;
|
|
1912
|
+
if (n ? (t.date = n[1], r = n[3]) : (n = F.datePattern.exec(e), n ? (t.date = n[1], r = n[2]) : (t.date = null, r = e)), r) {
|
|
1913
|
+
const o = F.timeZone.exec(r);
|
|
1914
|
+
o ? (t.time = r.replace(o[1], ""), t.timeZone = o[1].trim()) : t.time = r;
|
|
1915
|
+
}
|
|
1916
|
+
return t;
|
|
1917
|
+
}
|
|
1918
|
+
function Vs(e, t) {
|
|
1919
|
+
if (e) {
|
|
1920
|
+
const n = F.YYY[t], r = F.YYYYY[t];
|
|
1921
|
+
let o = F.YYYY.exec(e) || r.exec(e);
|
|
1922
|
+
if (o) {
|
|
1923
|
+
const s = o[1];
|
|
1924
|
+
return {
|
|
1925
|
+
year: parseInt(s, 10),
|
|
1926
|
+
restDateString: e.slice(s.length)
|
|
1927
|
+
};
|
|
1928
|
+
}
|
|
1929
|
+
if (o = F.YY.exec(e) || n.exec(e), o) {
|
|
1930
|
+
const s = o[1];
|
|
1931
|
+
return {
|
|
1932
|
+
year: parseInt(s, 10) * 100,
|
|
1933
|
+
restDateString: e.slice(s.length)
|
|
1934
|
+
};
|
|
1935
|
+
}
|
|
1936
|
+
}
|
|
1937
|
+
return {
|
|
1938
|
+
year: null
|
|
1939
|
+
};
|
|
1940
|
+
}
|
|
1941
|
+
function Zs(e, t) {
|
|
1942
|
+
if (t === null)
|
|
1943
|
+
return null;
|
|
1944
|
+
let n, r, o;
|
|
1945
|
+
if (!e || !e.length)
|
|
1946
|
+
return n = /* @__PURE__ */ new Date(0), n.setUTCFullYear(t), n;
|
|
1947
|
+
let s = F.MM.exec(e);
|
|
1948
|
+
if (s)
|
|
1949
|
+
return n = /* @__PURE__ */ new Date(0), r = parseInt(s[1], 10) - 1, wn(t, r) ? (n.setUTCFullYear(t, r), n) : /* @__PURE__ */ new Date(NaN);
|
|
1950
|
+
if (s = F.DDD.exec(e), s) {
|
|
1951
|
+
n = /* @__PURE__ */ new Date(0);
|
|
1952
|
+
const a = parseInt(s[1], 10);
|
|
1953
|
+
return ea(t, a) ? (n.setUTCFullYear(t, 0, a), n) : /* @__PURE__ */ new Date(NaN);
|
|
1954
|
+
}
|
|
1955
|
+
if (s = F.MMDD.exec(e), s) {
|
|
1956
|
+
n = /* @__PURE__ */ new Date(0), r = parseInt(s[1], 10) - 1;
|
|
1957
|
+
const a = parseInt(s[2], 10);
|
|
1958
|
+
return wn(t, r, a) ? (n.setUTCFullYear(t, r, a), n) : /* @__PURE__ */ new Date(NaN);
|
|
1959
|
+
}
|
|
1960
|
+
if (s = F.Www.exec(e), s)
|
|
1961
|
+
return o = parseInt(s[1], 10) - 1, yn(o) ? gn(t, o) : /* @__PURE__ */ new Date(NaN);
|
|
1962
|
+
if (s = F.WwwD.exec(e), s) {
|
|
1963
|
+
o = parseInt(s[1], 10) - 1;
|
|
1964
|
+
const a = parseInt(s[2], 10) - 1;
|
|
1965
|
+
return yn(o, a) ? gn(t, o, a) : /* @__PURE__ */ new Date(NaN);
|
|
1966
|
+
}
|
|
1967
|
+
return null;
|
|
1968
|
+
}
|
|
1969
|
+
function Gs(e) {
|
|
1970
|
+
let t, n, r = F.HH.exec(e);
|
|
1971
|
+
if (r)
|
|
1972
|
+
return t = parseFloat(r[1].replace(",", ".")), ut(t) ? t % 24 * ct : NaN;
|
|
1973
|
+
if (r = F.HHMM.exec(e), r)
|
|
1974
|
+
return t = parseInt(r[1], 10), n = parseFloat(r[2].replace(",", ".")), ut(t, n) ? t % 24 * ct + n * pn : NaN;
|
|
1975
|
+
if (r = F.HHMMSS.exec(e), r) {
|
|
1976
|
+
t = parseInt(r[1], 10), n = parseInt(r[2], 10);
|
|
1977
|
+
const o = parseFloat(r[3].replace(",", "."));
|
|
1978
|
+
return ut(t, n, o) ? t % 24 * ct + n * pn + o * 1e3 : NaN;
|
|
1979
|
+
}
|
|
1980
|
+
return null;
|
|
1981
|
+
}
|
|
1982
|
+
function gn(e, t, n) {
|
|
1983
|
+
t = t || 0, n = n || 0;
|
|
1984
|
+
const r = /* @__PURE__ */ new Date(0);
|
|
1985
|
+
r.setUTCFullYear(e, 0, 4);
|
|
1986
|
+
const o = r.getUTCDay() || 7, s = t * 7 + n + 1 - o;
|
|
1987
|
+
return r.setUTCDate(r.getUTCDate() + s), r;
|
|
1988
|
+
}
|
|
1989
|
+
const Qs = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Ks = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
1990
|
+
function zn(e) {
|
|
1991
|
+
return e % 400 === 0 || e % 4 === 0 && e % 100 !== 0;
|
|
1992
|
+
}
|
|
1993
|
+
function wn(e, t, n) {
|
|
1994
|
+
if (t < 0 || t > 11)
|
|
1995
|
+
return !1;
|
|
1996
|
+
if (n != null) {
|
|
1997
|
+
if (n < 1)
|
|
1998
|
+
return !1;
|
|
1999
|
+
const r = zn(e);
|
|
2000
|
+
if (r && n > Ks[t] || !r && n > Qs[t])
|
|
2001
|
+
return !1;
|
|
2002
|
+
}
|
|
2003
|
+
return !0;
|
|
2004
|
+
}
|
|
2005
|
+
function ea(e, t) {
|
|
2006
|
+
if (t < 1)
|
|
2007
|
+
return !1;
|
|
2008
|
+
const n = zn(e);
|
|
2009
|
+
return !(n && t > 366 || !n && t > 365);
|
|
2010
|
+
}
|
|
2011
|
+
function yn(e, t) {
|
|
2012
|
+
return !(e < 0 || e > 52 || t != null && (t < 0 || t > 6));
|
|
2013
|
+
}
|
|
2014
|
+
function ut(e, t, n) {
|
|
2015
|
+
return !(e < 0 || e >= 25 || t != null && (t < 0 || t >= 60) || n != null && (n < 0 || n >= 60));
|
|
2016
|
+
}
|
|
2017
|
+
const ta = /([xXOz]+)|''|'(''|[^'])+('|$)/g;
|
|
2018
|
+
function bn(e, t, n = {}) {
|
|
2019
|
+
t = String(t);
|
|
2020
|
+
const r = t.match(ta);
|
|
2021
|
+
if (r) {
|
|
2022
|
+
const o = jn(n.originalDate || e, n);
|
|
2023
|
+
t = r.reduce(function(s, a) {
|
|
2024
|
+
if (a[0] === "'")
|
|
2025
|
+
return s;
|
|
2026
|
+
const i = s.indexOf(a), l = s[i - 1] === "'", u = s.replace(a, "'" + qs[a[0]](o, a, n) + "'");
|
|
2027
|
+
return l ? u.substring(0, i - 1) + u.substring(i + 1) : u;
|
|
2028
|
+
}, t);
|
|
2029
|
+
}
|
|
2030
|
+
return cs(e, t, n);
|
|
2031
|
+
}
|
|
2032
|
+
function na(e, t, n) {
|
|
2033
|
+
e = jn(e, n);
|
|
2034
|
+
const r = yt(t, e, !0), o = new Date(e.getTime() - r), s = /* @__PURE__ */ new Date(0);
|
|
2035
|
+
return s.setFullYear(o.getUTCFullYear(), o.getUTCMonth(), o.getUTCDate()), s.setHours(o.getUTCHours(), o.getUTCMinutes(), o.getUTCSeconds(), o.getUTCMilliseconds()), s;
|
|
2036
|
+
}
|
|
2037
|
+
const $i = () => ({
|
|
2038
|
+
formatDate: bn,
|
|
2039
|
+
formatDateDistance: ls,
|
|
2040
|
+
subDays: hs,
|
|
2041
|
+
parseIsoDate: ms,
|
|
2042
|
+
dateIsBefore: ds,
|
|
2043
|
+
formatInTimeZone: (a, i, l) => bn(na(a, l), i, { timeZone: l })
|
|
2044
|
+
}), vi = () => ({
|
|
2045
|
+
Close20: Hr,
|
|
2046
|
+
ArrowRight20: Qt,
|
|
2047
|
+
ArrowRight32: Qt,
|
|
2048
|
+
Notification20: Yr,
|
|
2049
|
+
UserAvatar20: ae,
|
|
2050
|
+
UserAvatar32: ae,
|
|
2051
|
+
Search20: Br,
|
|
2052
|
+
RowExpand20: Lr,
|
|
2053
|
+
RowCollapse20: vr,
|
|
2054
|
+
Reset20: Gt,
|
|
2055
|
+
Reset32: Gt,
|
|
2056
|
+
Download20: $r,
|
|
2057
|
+
Launch20: _r,
|
|
2058
|
+
Upgrade20: Zt,
|
|
2059
|
+
Upgrade32: Zt,
|
|
2060
|
+
Settings16: tt,
|
|
2061
|
+
Settings20: tt,
|
|
2062
|
+
Settings32: tt,
|
|
2063
|
+
ChevronDown20: Ir,
|
|
2064
|
+
ChevronUp20: Ur,
|
|
2065
|
+
ChevronLeft20: Fr,
|
|
2066
|
+
ChevronRight20: Rr,
|
|
2067
|
+
Information16: Ee,
|
|
2068
|
+
Information20: Ee,
|
|
2069
|
+
InformationFilled16: Ee,
|
|
2070
|
+
Application20: Vt,
|
|
2071
|
+
Application32: Vt,
|
|
2072
|
+
Add20: Ar,
|
|
2073
|
+
Rocket20: Jt,
|
|
2074
|
+
Rocket32: Jt,
|
|
2075
|
+
Chip20: Xt,
|
|
2076
|
+
Chip32: Xt,
|
|
2077
|
+
Save20: zt,
|
|
2078
|
+
Save32: zt,
|
|
2079
|
+
Copy20: Pr,
|
|
2080
|
+
EdgeNode20: jt,
|
|
2081
|
+
EdgeNode32: jt,
|
|
2082
|
+
Cube32: Q,
|
|
2083
|
+
EdgeCluster20: Q,
|
|
2084
|
+
EdgeCluster32: Q,
|
|
2085
|
+
Connect32: ye,
|
|
2086
|
+
Connect20: ye,
|
|
2087
|
+
Edit20: Cr,
|
|
2088
|
+
Password20: xr,
|
|
2089
|
+
Star20: Mr,
|
|
2090
|
+
Checkmark20: kr,
|
|
2091
|
+
ZoomIn20: Nr,
|
|
2092
|
+
Events32: et,
|
|
2093
|
+
Events20: et,
|
|
2094
|
+
Events16: et,
|
|
2095
|
+
Link20: ye,
|
|
2096
|
+
Link32: ye,
|
|
2097
|
+
WarningAlt20: ee,
|
|
2098
|
+
WarningAlt32: ee,
|
|
2099
|
+
Tools20: qt,
|
|
2100
|
+
Tools32: qt,
|
|
2101
|
+
Network_220: Wt,
|
|
2102
|
+
Network_232: Wt,
|
|
2103
|
+
DataBase20: Ht,
|
|
2104
|
+
DataBase32: Ht,
|
|
2105
|
+
DataBackup20: Yt,
|
|
2106
|
+
DataBackup32: Yt,
|
|
2107
|
+
ArrowDown20: Bt,
|
|
2108
|
+
ArrowDown32: Bt,
|
|
2109
|
+
Time20: Lt,
|
|
2110
|
+
Time32: Lt,
|
|
2111
|
+
Hourglass20: vt,
|
|
2112
|
+
Hourglass32: vt,
|
|
2113
|
+
CheckmarkFilled16: Oe,
|
|
2114
|
+
CheckmarkFilled20: Oe,
|
|
2115
|
+
CheckmarkFilled32: Oe,
|
|
2116
|
+
ErrorFilled16: De,
|
|
2117
|
+
ErrorFilled20: De,
|
|
2118
|
+
ErrorFilled32: De,
|
|
2119
|
+
Warning16: ee,
|
|
2120
|
+
Warning20: ee,
|
|
2121
|
+
Warning32: ee,
|
|
2122
|
+
Power16: Ke,
|
|
2123
|
+
Power20: Ke,
|
|
2124
|
+
Power32: Ke,
|
|
2125
|
+
Document20: $t,
|
|
2126
|
+
Document32: $t,
|
|
2127
|
+
OverflowMenuVertical20: _t,
|
|
2128
|
+
OverflowMenuVertical32: _t,
|
|
2129
|
+
Restart20: It,
|
|
2130
|
+
Restart32: It,
|
|
2131
|
+
TrashCan20: Ut,
|
|
2132
|
+
TrashCan32: Ut,
|
|
2133
|
+
Erase20: Ft,
|
|
2134
|
+
Erase32: Ft,
|
|
2135
|
+
Row20: Er,
|
|
2136
|
+
Column20: Or,
|
|
2137
|
+
Catalog20: Rt,
|
|
2138
|
+
Catalog32: Rt,
|
|
2139
|
+
Group20: Dr,
|
|
2140
|
+
Router32: At,
|
|
2141
|
+
Router20: At,
|
|
2142
|
+
Certificate32: Pt,
|
|
2143
|
+
Certificate20: Pt,
|
|
2144
|
+
BareMetalServer20: Ct,
|
|
2145
|
+
BareMetalServer32: Ct,
|
|
2146
|
+
Firewall20: xt,
|
|
2147
|
+
Firewall32: xt,
|
|
2148
|
+
Wikis32: Qe,
|
|
2149
|
+
Wikis20: Qe,
|
|
2150
|
+
Wikis16: Qe,
|
|
2151
|
+
At32: Mt,
|
|
2152
|
+
At20: Mt,
|
|
2153
|
+
User16: ae,
|
|
2154
|
+
User20: ae,
|
|
2155
|
+
User32: ae,
|
|
2156
|
+
Unknown16: Ge,
|
|
2157
|
+
Unknown20: Ge,
|
|
2158
|
+
Unknown32: Ge,
|
|
2159
|
+
Email16: Ze,
|
|
2160
|
+
Email20: Ze,
|
|
2161
|
+
Email32: Ze,
|
|
2162
|
+
Locked16: Ve,
|
|
2163
|
+
Locked20: Ve,
|
|
2164
|
+
Locked32: Ve,
|
|
2165
|
+
Folder16: Je,
|
|
2166
|
+
Folder20: Je,
|
|
2167
|
+
Folder32: Je,
|
|
2168
|
+
Asterisk16: Xe,
|
|
2169
|
+
Asterisk20: Xe,
|
|
2170
|
+
Asterisk32: Xe,
|
|
2171
|
+
Box16: Q,
|
|
2172
|
+
Box20: Q,
|
|
2173
|
+
Box32: Q,
|
|
2174
|
+
UserMilitary32: Sr,
|
|
2175
|
+
Rule16: ze,
|
|
2176
|
+
Rule20: ze,
|
|
2177
|
+
Rule32: ze,
|
|
2178
|
+
Filter16: je,
|
|
2179
|
+
Filter20: je,
|
|
2180
|
+
Filter32: je,
|
|
2181
|
+
CloseFilled16: qe,
|
|
2182
|
+
CloseFilled20: qe,
|
|
2183
|
+
CloseFilled32: qe,
|
|
2184
|
+
Badge16: We,
|
|
2185
|
+
Badge20: We,
|
|
2186
|
+
Badge32: We,
|
|
2187
|
+
FolderShared16: He,
|
|
2188
|
+
FolderShared20: He,
|
|
2189
|
+
FolderShared32: He,
|
|
2190
|
+
MailAll16: Ye,
|
|
2191
|
+
MailAll20: Ye,
|
|
2192
|
+
MailAll32: Ye,
|
|
2193
|
+
CloudUpload16: Be,
|
|
2194
|
+
CloudUpload20: Be,
|
|
2195
|
+
CloudUpload32: Be
|
|
2196
|
+
}), Li = () => {
|
|
2197
|
+
const e = (t) => {
|
|
2198
|
+
if (t) {
|
|
2199
|
+
const n = typeof t == "function" ? t() : t;
|
|
2200
|
+
if (n.includes(".title")) {
|
|
2201
|
+
const r = window.parent?.CONFIG?.PRODUCT_NAME || "";
|
|
2202
|
+
document.title = r, window.parent?.document && (window.parent.document.title = r);
|
|
2203
|
+
} else
|
|
2204
|
+
document.title = n, window.parent?.document && (window.parent.document.title = n);
|
|
2205
|
+
}
|
|
2206
|
+
};
|
|
2207
|
+
return br(() => {
|
|
2208
|
+
const t = document.querySelector('meta[name="vue-page-title"]');
|
|
2209
|
+
t && e(t.content);
|
|
2210
|
+
}), {
|
|
2211
|
+
setPageTitle: e
|
|
2212
|
+
};
|
|
2213
|
+
}, Bi = () => {
|
|
2214
|
+
const e = (h) => h === "true" ? !0 : h === "false" ? !1 : h, t = (h = window.location.hash) => {
|
|
2215
|
+
if (!h.includes("?") || h.split("?").length < 2)
|
|
2216
|
+
return {};
|
|
2217
|
+
const w = new URLSearchParams(h.split("?").pop() || ""), O = {};
|
|
2218
|
+
return w.forEach((d, y) => {
|
|
2219
|
+
y && (O[y] = d);
|
|
2220
|
+
}), O;
|
|
2221
|
+
}, n = () => t(window.location.hash), r = () => t(window.parent?.location?.hash || ""), o = (h, w) => {
|
|
2222
|
+
h.value && Object.keys(h.value).forEach((O) => {
|
|
2223
|
+
typeof w[O] < "u" && (h.value[O] = e(w[O]));
|
|
2224
|
+
});
|
|
2225
|
+
}, s = (h, w, O) => {
|
|
2226
|
+
const d = [];
|
|
2227
|
+
for (const [p, g] of Object.entries(h.value))
|
|
2228
|
+
d.push(`${p}=${encodeURIComponent(String(g))}`);
|
|
2229
|
+
const y = w.path + "?" + d.join("&");
|
|
2230
|
+
w.fullPath !== y && O.replace(y);
|
|
2231
|
+
}, a = (h, w, O) => {
|
|
2232
|
+
h.value && Object.keys(h.value).forEach((d) => {
|
|
2233
|
+
Tr(
|
|
2234
|
+
() => h.value[d],
|
|
2235
|
+
() => {
|
|
2236
|
+
s(h, w, O);
|
|
2237
|
+
}
|
|
2238
|
+
);
|
|
2239
|
+
});
|
|
2240
|
+
};
|
|
2241
|
+
let i = null;
|
|
2242
|
+
return {
|
|
2243
|
+
getTypedValue: e,
|
|
2244
|
+
getQueryParams: n,
|
|
2245
|
+
getQueryParamsForApp: r,
|
|
2246
|
+
queryParamsToData: o,
|
|
2247
|
+
dataToQueryParams: s,
|
|
2248
|
+
watchQueryData: a,
|
|
2249
|
+
initUrlBindingForApp: (h, w, O) => {
|
|
2250
|
+
let d = window.parent?.location?.href || "";
|
|
2251
|
+
const y = () => {
|
|
2252
|
+
const S = r();
|
|
2253
|
+
o(h, S), s(h, { path: "", fullPath: "" }, {
|
|
2254
|
+
replace: () => {
|
|
2255
|
+
}
|
|
2256
|
+
});
|
|
2257
|
+
}, p = () => {
|
|
2258
|
+
const S = window.parent?.location?.href || "";
|
|
2259
|
+
if (S !== d) {
|
|
2260
|
+
d = S;
|
|
2261
|
+
const x = r().page || "status";
|
|
2262
|
+
O && O(x), x !== w ? window.dispatchEvent(
|
|
2263
|
+
new CustomEvent("changeRoute", { detail: x })
|
|
2264
|
+
) : y();
|
|
2265
|
+
}
|
|
2266
|
+
d = window.parent?.location?.href || "";
|
|
2267
|
+
};
|
|
2268
|
+
return (r().page || "status") !== w ? null : (y(), i = window.setInterval(p, 500), i);
|
|
2269
|
+
},
|
|
2270
|
+
cleanupUrlBinding: () => {
|
|
2271
|
+
i !== null && (clearInterval(i), i = null);
|
|
2272
|
+
},
|
|
2273
|
+
getPage: () => n().page || "status"
|
|
2274
|
+
};
|
|
2275
|
+
}, ra = () => ({
|
|
2276
|
+
getFromStorage: (r) => {
|
|
2277
|
+
try {
|
|
2278
|
+
const o = localStorage.getItem(r);
|
|
2279
|
+
return o ? JSON.parse(o) : null;
|
|
2280
|
+
} catch (o) {
|
|
2281
|
+
return console.error(`Error reading from storage for key "${r}":`, o), null;
|
|
2282
|
+
}
|
|
2283
|
+
},
|
|
2284
|
+
saveToStorage: (r, o) => {
|
|
2285
|
+
try {
|
|
2286
|
+
localStorage.setItem(r, JSON.stringify(o));
|
|
2287
|
+
} catch (s) {
|
|
2288
|
+
console.error(`Error saving to storage for key "${r}":`, s);
|
|
2289
|
+
}
|
|
2290
|
+
},
|
|
2291
|
+
deleteFromStorage: (r) => {
|
|
2292
|
+
try {
|
|
2293
|
+
localStorage.removeItem(r);
|
|
2294
|
+
} catch (o) {
|
|
2295
|
+
console.error(`Error deleting from storage for key "${r}":`, o);
|
|
2296
|
+
}
|
|
2297
|
+
}
|
|
2298
|
+
});
|
|
2299
|
+
function Xn(e, t) {
|
|
2300
|
+
return function() {
|
|
2301
|
+
return e.apply(t, arguments);
|
|
2302
|
+
};
|
|
2303
|
+
}
|
|
2304
|
+
const { toString: oa } = Object.prototype, { getPrototypeOf: bt } = Object, { iterator: Ue, toStringTag: Jn } = Symbol, Ie = /* @__PURE__ */ ((e) => (t) => {
|
|
2305
|
+
const n = oa.call(t);
|
|
2306
|
+
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
2307
|
+
})(/* @__PURE__ */ Object.create(null)), B = (e) => (e = e.toLowerCase(), (t) => Ie(t) === e), _e = (e) => (t) => typeof t === e, { isArray: oe } = Array, ne = _e("undefined");
|
|
2308
|
+
function de(e) {
|
|
2309
|
+
return e !== null && !ne(e) && e.constructor !== null && !ne(e.constructor) && _(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
2310
|
+
}
|
|
2311
|
+
const Vn = B("ArrayBuffer");
|
|
2312
|
+
function sa(e) {
|
|
2313
|
+
let t;
|
|
2314
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Vn(e.buffer), t;
|
|
2315
|
+
}
|
|
2316
|
+
const aa = _e("string"), _ = _e("function"), Zn = _e("number"), he = (e) => e !== null && typeof e == "object", ia = (e) => e === !0 || e === !1, ke = (e) => {
|
|
2317
|
+
if (Ie(e) !== "object")
|
|
2318
|
+
return !1;
|
|
2319
|
+
const t = bt(e);
|
|
2320
|
+
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Jn in e) && !(Ue in e);
|
|
2321
|
+
}, ca = (e) => {
|
|
2322
|
+
if (!he(e) || de(e))
|
|
2323
|
+
return !1;
|
|
2324
|
+
try {
|
|
2325
|
+
return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
|
|
2326
|
+
} catch {
|
|
2327
|
+
return !1;
|
|
2328
|
+
}
|
|
2329
|
+
}, ua = B("Date"), la = B("File"), fa = B("Blob"), da = B("FileList"), ha = (e) => he(e) && _(e.pipe), ma = (e) => {
|
|
2330
|
+
let t;
|
|
2331
|
+
return e && (typeof FormData == "function" && e instanceof FormData || _(e.append) && ((t = Ie(e)) === "formdata" || // detect form-data instance
|
|
2332
|
+
t === "object" && _(e.toString) && e.toString() === "[object FormData]"));
|
|
2333
|
+
}, pa = B("URLSearchParams"), [ga, wa, ya, ba] = ["ReadableStream", "Request", "Response", "Headers"].map(B), Ta = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
2334
|
+
function me(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
2335
|
+
if (e === null || typeof e > "u")
|
|
2336
|
+
return;
|
|
2337
|
+
let r, o;
|
|
2338
|
+
if (typeof e != "object" && (e = [e]), oe(e))
|
|
2339
|
+
for (r = 0, o = e.length; r < o; r++)
|
|
2340
|
+
t.call(null, e[r], r, e);
|
|
2341
|
+
else {
|
|
2342
|
+
if (de(e))
|
|
2343
|
+
return;
|
|
2344
|
+
const s = n ? Object.getOwnPropertyNames(e) : Object.keys(e), a = s.length;
|
|
2345
|
+
let i;
|
|
2346
|
+
for (r = 0; r < a; r++)
|
|
2347
|
+
i = s[r], t.call(null, e[i], i, e);
|
|
2348
|
+
}
|
|
2349
|
+
}
|
|
2350
|
+
function Gn(e, t) {
|
|
2351
|
+
if (de(e))
|
|
2352
|
+
return null;
|
|
2353
|
+
t = t.toLowerCase();
|
|
2354
|
+
const n = Object.keys(e);
|
|
2355
|
+
let r = n.length, o;
|
|
2356
|
+
for (; r-- > 0; )
|
|
2357
|
+
if (o = n[r], t === o.toLowerCase())
|
|
2358
|
+
return o;
|
|
2359
|
+
return null;
|
|
2360
|
+
}
|
|
2361
|
+
const J = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Qn = (e) => !ne(e) && e !== J;
|
|
2362
|
+
function mt() {
|
|
2363
|
+
const { caseless: e, skipUndefined: t } = Qn(this) && this || {}, n = {}, r = (o, s) => {
|
|
2364
|
+
const a = e && Gn(n, s) || s;
|
|
2365
|
+
ke(n[a]) && ke(o) ? n[a] = mt(n[a], o) : ke(o) ? n[a] = mt({}, o) : oe(o) ? n[a] = o.slice() : (!t || !ne(o)) && (n[a] = o);
|
|
2366
|
+
};
|
|
2367
|
+
for (let o = 0, s = arguments.length; o < s; o++)
|
|
2368
|
+
arguments[o] && me(arguments[o], r);
|
|
2369
|
+
return n;
|
|
2370
|
+
}
|
|
2371
|
+
const Sa = (e, t, n, { allOwnKeys: r } = {}) => (me(t, (o, s) => {
|
|
2372
|
+
n && _(o) ? e[s] = Xn(o, n) : e[s] = o;
|
|
2373
|
+
}, { allOwnKeys: r }), e), Da = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Oa = (e, t, n, r) => {
|
|
2374
|
+
e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
2375
|
+
value: t.prototype
|
|
2376
|
+
}), n && Object.assign(e.prototype, n);
|
|
2377
|
+
}, Ea = (e, t, n, r) => {
|
|
2378
|
+
let o, s, a;
|
|
2379
|
+
const i = {};
|
|
2380
|
+
if (t = t || {}, e == null) return t;
|
|
2381
|
+
do {
|
|
2382
|
+
for (o = Object.getOwnPropertyNames(e), s = o.length; s-- > 0; )
|
|
2383
|
+
a = o[s], (!r || r(a, e, t)) && !i[a] && (t[a] = e[a], i[a] = !0);
|
|
2384
|
+
e = n !== !1 && bt(e);
|
|
2385
|
+
} while (e && (!n || n(e, t)) && e !== Object.prototype);
|
|
2386
|
+
return t;
|
|
2387
|
+
}, Na = (e, t, n) => {
|
|
2388
|
+
e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
|
|
2389
|
+
const r = e.indexOf(t, n);
|
|
2390
|
+
return r !== -1 && r === n;
|
|
2391
|
+
}, ka = (e) => {
|
|
2392
|
+
if (!e) return null;
|
|
2393
|
+
if (oe(e)) return e;
|
|
2394
|
+
let t = e.length;
|
|
2395
|
+
if (!Zn(t)) return null;
|
|
2396
|
+
const n = new Array(t);
|
|
2397
|
+
for (; t-- > 0; )
|
|
2398
|
+
n[t] = e[t];
|
|
2399
|
+
return n;
|
|
2400
|
+
}, Ma = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && bt(Uint8Array)), xa = (e, t) => {
|
|
2401
|
+
const r = (e && e[Ue]).call(e);
|
|
2402
|
+
let o;
|
|
2403
|
+
for (; (o = r.next()) && !o.done; ) {
|
|
2404
|
+
const s = o.value;
|
|
2405
|
+
t.call(e, s[0], s[1]);
|
|
2406
|
+
}
|
|
2407
|
+
}, Ca = (e, t) => {
|
|
2408
|
+
let n;
|
|
2409
|
+
const r = [];
|
|
2410
|
+
for (; (n = e.exec(t)) !== null; )
|
|
2411
|
+
r.push(n);
|
|
2412
|
+
return r;
|
|
2413
|
+
}, Pa = B("HTMLFormElement"), Aa = (e) => e.toLowerCase().replace(
|
|
2414
|
+
/[-_\s]([a-z\d])(\w*)/g,
|
|
2415
|
+
function(n, r, o) {
|
|
2416
|
+
return r.toUpperCase() + o;
|
|
2417
|
+
}
|
|
2418
|
+
), Tn = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Ra = B("RegExp"), Kn = (e, t) => {
|
|
2419
|
+
const n = Object.getOwnPropertyDescriptors(e), r = {};
|
|
2420
|
+
me(n, (o, s) => {
|
|
2421
|
+
let a;
|
|
2422
|
+
(a = t(o, s, e)) !== !1 && (r[s] = a || o);
|
|
2423
|
+
}), Object.defineProperties(e, r);
|
|
2424
|
+
}, Fa = (e) => {
|
|
2425
|
+
Kn(e, (t, n) => {
|
|
2426
|
+
if (_(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
2427
|
+
return !1;
|
|
2428
|
+
const r = e[n];
|
|
2429
|
+
if (_(r)) {
|
|
2430
|
+
if (t.enumerable = !1, "writable" in t) {
|
|
2431
|
+
t.writable = !1;
|
|
2432
|
+
return;
|
|
2433
|
+
}
|
|
2434
|
+
t.set || (t.set = () => {
|
|
2435
|
+
throw Error("Can not rewrite read-only method '" + n + "'");
|
|
2436
|
+
});
|
|
2437
|
+
}
|
|
2438
|
+
});
|
|
2439
|
+
}, Ua = (e, t) => {
|
|
2440
|
+
const n = {}, r = (o) => {
|
|
2441
|
+
o.forEach((s) => {
|
|
2442
|
+
n[s] = !0;
|
|
2443
|
+
});
|
|
2444
|
+
};
|
|
2445
|
+
return oe(e) ? r(e) : r(String(e).split(t)), n;
|
|
2446
|
+
}, Ia = () => {
|
|
2447
|
+
}, _a = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
2448
|
+
function $a(e) {
|
|
2449
|
+
return !!(e && _(e.append) && e[Jn] === "FormData" && e[Ue]);
|
|
2450
|
+
}
|
|
2451
|
+
const va = (e) => {
|
|
2452
|
+
const t = new Array(10), n = (r, o) => {
|
|
2453
|
+
if (he(r)) {
|
|
2454
|
+
if (t.indexOf(r) >= 0)
|
|
2455
|
+
return;
|
|
2456
|
+
if (de(r))
|
|
2457
|
+
return r;
|
|
2458
|
+
if (!("toJSON" in r)) {
|
|
2459
|
+
t[o] = r;
|
|
2460
|
+
const s = oe(r) ? [] : {};
|
|
2461
|
+
return me(r, (a, i) => {
|
|
2462
|
+
const l = n(a, o + 1);
|
|
2463
|
+
!ne(l) && (s[i] = l);
|
|
2464
|
+
}), t[o] = void 0, s;
|
|
2465
|
+
}
|
|
2466
|
+
}
|
|
2467
|
+
return r;
|
|
2468
|
+
};
|
|
2469
|
+
return n(e, 0);
|
|
2470
|
+
}, La = B("AsyncFunction"), Ba = (e) => e && (he(e) || _(e)) && _(e.then) && _(e.catch), er = ((e, t) => e ? setImmediate : t ? ((n, r) => (J.addEventListener("message", ({ source: o, data: s }) => {
|
|
2471
|
+
o === J && s === n && r.length && r.shift()();
|
|
2472
|
+
}, !1), (o) => {
|
|
2473
|
+
r.push(o), J.postMessage(n, "*");
|
|
2474
|
+
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
2475
|
+
typeof setImmediate == "function",
|
|
2476
|
+
_(J.postMessage)
|
|
2477
|
+
), Ya = typeof queueMicrotask < "u" ? queueMicrotask.bind(J) : typeof process < "u" && process.nextTick || er, Ha = (e) => e != null && _(e[Ue]), c = {
|
|
2478
|
+
isArray: oe,
|
|
2479
|
+
isArrayBuffer: Vn,
|
|
2480
|
+
isBuffer: de,
|
|
2481
|
+
isFormData: ma,
|
|
2482
|
+
isArrayBufferView: sa,
|
|
2483
|
+
isString: aa,
|
|
2484
|
+
isNumber: Zn,
|
|
2485
|
+
isBoolean: ia,
|
|
2486
|
+
isObject: he,
|
|
2487
|
+
isPlainObject: ke,
|
|
2488
|
+
isEmptyObject: ca,
|
|
2489
|
+
isReadableStream: ga,
|
|
2490
|
+
isRequest: wa,
|
|
2491
|
+
isResponse: ya,
|
|
2492
|
+
isHeaders: ba,
|
|
2493
|
+
isUndefined: ne,
|
|
2494
|
+
isDate: ua,
|
|
2495
|
+
isFile: la,
|
|
2496
|
+
isBlob: fa,
|
|
2497
|
+
isRegExp: Ra,
|
|
2498
|
+
isFunction: _,
|
|
2499
|
+
isStream: ha,
|
|
2500
|
+
isURLSearchParams: pa,
|
|
2501
|
+
isTypedArray: Ma,
|
|
2502
|
+
isFileList: da,
|
|
2503
|
+
forEach: me,
|
|
2504
|
+
merge: mt,
|
|
2505
|
+
extend: Sa,
|
|
2506
|
+
trim: Ta,
|
|
2507
|
+
stripBOM: Da,
|
|
2508
|
+
inherits: Oa,
|
|
2509
|
+
toFlatObject: Ea,
|
|
2510
|
+
kindOf: Ie,
|
|
2511
|
+
kindOfTest: B,
|
|
2512
|
+
endsWith: Na,
|
|
2513
|
+
toArray: ka,
|
|
2514
|
+
forEachEntry: xa,
|
|
2515
|
+
matchAll: Ca,
|
|
2516
|
+
isHTMLForm: Pa,
|
|
2517
|
+
hasOwnProperty: Tn,
|
|
2518
|
+
hasOwnProp: Tn,
|
|
2519
|
+
// an alias to avoid ESLint no-prototype-builtins detection
|
|
2520
|
+
reduceDescriptors: Kn,
|
|
2521
|
+
freezeMethods: Fa,
|
|
2522
|
+
toObjectSet: Ua,
|
|
2523
|
+
toCamelCase: Aa,
|
|
2524
|
+
noop: Ia,
|
|
2525
|
+
toFiniteNumber: _a,
|
|
2526
|
+
findKey: Gn,
|
|
2527
|
+
global: J,
|
|
2528
|
+
isContextDefined: Qn,
|
|
2529
|
+
isSpecCompliantForm: $a,
|
|
2530
|
+
toJSONObject: va,
|
|
2531
|
+
isAsyncFn: La,
|
|
2532
|
+
isThenable: Ba,
|
|
2533
|
+
setImmediate: er,
|
|
2534
|
+
asap: Ya,
|
|
2535
|
+
isIterable: Ha
|
|
2536
|
+
};
|
|
2537
|
+
function D(e, t, n, r, o) {
|
|
2538
|
+
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), n && (this.config = n), r && (this.request = r), o && (this.response = o, this.status = o.status ? o.status : null);
|
|
2539
|
+
}
|
|
2540
|
+
c.inherits(D, Error, {
|
|
2541
|
+
toJSON: function() {
|
|
2542
|
+
return {
|
|
2543
|
+
// Standard
|
|
2544
|
+
message: this.message,
|
|
2545
|
+
name: this.name,
|
|
2546
|
+
// Microsoft
|
|
2547
|
+
description: this.description,
|
|
2548
|
+
number: this.number,
|
|
2549
|
+
// Mozilla
|
|
2550
|
+
fileName: this.fileName,
|
|
2551
|
+
lineNumber: this.lineNumber,
|
|
2552
|
+
columnNumber: this.columnNumber,
|
|
2553
|
+
stack: this.stack,
|
|
2554
|
+
// Axios
|
|
2555
|
+
config: c.toJSONObject(this.config),
|
|
2556
|
+
code: this.code,
|
|
2557
|
+
status: this.status
|
|
2558
|
+
};
|
|
2559
|
+
}
|
|
2560
|
+
});
|
|
2561
|
+
const tr = D.prototype, nr = {};
|
|
2562
|
+
[
|
|
2563
|
+
"ERR_BAD_OPTION_VALUE",
|
|
2564
|
+
"ERR_BAD_OPTION",
|
|
2565
|
+
"ECONNABORTED",
|
|
2566
|
+
"ETIMEDOUT",
|
|
2567
|
+
"ERR_NETWORK",
|
|
2568
|
+
"ERR_FR_TOO_MANY_REDIRECTS",
|
|
2569
|
+
"ERR_DEPRECATED",
|
|
2570
|
+
"ERR_BAD_RESPONSE",
|
|
2571
|
+
"ERR_BAD_REQUEST",
|
|
2572
|
+
"ERR_CANCELED",
|
|
2573
|
+
"ERR_NOT_SUPPORT",
|
|
2574
|
+
"ERR_INVALID_URL"
|
|
2575
|
+
// eslint-disable-next-line func-names
|
|
2576
|
+
].forEach((e) => {
|
|
2577
|
+
nr[e] = { value: e };
|
|
2578
|
+
});
|
|
2579
|
+
Object.defineProperties(D, nr);
|
|
2580
|
+
Object.defineProperty(tr, "isAxiosError", { value: !0 });
|
|
2581
|
+
D.from = (e, t, n, r, o, s) => {
|
|
2582
|
+
const a = Object.create(tr);
|
|
2583
|
+
c.toFlatObject(e, a, function(f) {
|
|
2584
|
+
return f !== Error.prototype;
|
|
2585
|
+
}, (u) => u !== "isAxiosError");
|
|
2586
|
+
const i = e && e.message ? e.message : "Error", l = t == null && e ? e.code : t;
|
|
2587
|
+
return D.call(a, i, l, n, r, o), e && a.cause == null && Object.defineProperty(a, "cause", { value: e, configurable: !0 }), a.name = e && e.name || "Error", s && Object.assign(a, s), a;
|
|
2588
|
+
};
|
|
2589
|
+
const Wa = null;
|
|
2590
|
+
function pt(e) {
|
|
2591
|
+
return c.isPlainObject(e) || c.isArray(e);
|
|
2592
|
+
}
|
|
2593
|
+
function rr(e) {
|
|
2594
|
+
return c.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
2595
|
+
}
|
|
2596
|
+
function Sn(e, t, n) {
|
|
2597
|
+
return e ? e.concat(t).map(function(o, s) {
|
|
2598
|
+
return o = rr(o), !n && s ? "[" + o + "]" : o;
|
|
2599
|
+
}).join(n ? "." : "") : t;
|
|
2600
|
+
}
|
|
2601
|
+
function qa(e) {
|
|
2602
|
+
return c.isArray(e) && !e.some(pt);
|
|
2603
|
+
}
|
|
2604
|
+
const ja = c.toFlatObject(c, {}, null, function(t) {
|
|
2605
|
+
return /^is[A-Z]/.test(t);
|
|
2606
|
+
});
|
|
2607
|
+
function $e(e, t, n) {
|
|
2608
|
+
if (!c.isObject(e))
|
|
2609
|
+
throw new TypeError("target must be an object");
|
|
2610
|
+
t = t || new FormData(), n = c.toFlatObject(n, {
|
|
2611
|
+
metaTokens: !0,
|
|
2612
|
+
dots: !1,
|
|
2613
|
+
indexes: !1
|
|
2614
|
+
}, !1, function(y, p) {
|
|
2615
|
+
return !c.isUndefined(p[y]);
|
|
2616
|
+
});
|
|
2617
|
+
const r = n.metaTokens, o = n.visitor || f, s = n.dots, a = n.indexes, l = (n.Blob || typeof Blob < "u" && Blob) && c.isSpecCompliantForm(t);
|
|
2618
|
+
if (!c.isFunction(o))
|
|
2619
|
+
throw new TypeError("visitor must be a function");
|
|
2620
|
+
function u(d) {
|
|
2621
|
+
if (d === null) return "";
|
|
2622
|
+
if (c.isDate(d))
|
|
2623
|
+
return d.toISOString();
|
|
2624
|
+
if (c.isBoolean(d))
|
|
2625
|
+
return d.toString();
|
|
2626
|
+
if (!l && c.isBlob(d))
|
|
2627
|
+
throw new D("Blob is not supported. Use a Buffer instead.");
|
|
2628
|
+
return c.isArrayBuffer(d) || c.isTypedArray(d) ? l && typeof Blob == "function" ? new Blob([d]) : Buffer.from(d) : d;
|
|
2629
|
+
}
|
|
2630
|
+
function f(d, y, p) {
|
|
2631
|
+
let g = d;
|
|
2632
|
+
if (d && !p && typeof d == "object") {
|
|
2633
|
+
if (c.endsWith(y, "{}"))
|
|
2634
|
+
y = r ? y : y.slice(0, -2), d = JSON.stringify(d);
|
|
2635
|
+
else if (c.isArray(d) && qa(d) || (c.isFileList(d) || c.endsWith(y, "[]")) && (g = c.toArray(d)))
|
|
2636
|
+
return y = rr(y), g.forEach(function(S, k) {
|
|
2637
|
+
!(c.isUndefined(S) || S === null) && t.append(
|
|
2638
|
+
// eslint-disable-next-line no-nested-ternary
|
|
2639
|
+
a === !0 ? Sn([y], k, s) : a === null ? y : y + "[]",
|
|
2640
|
+
u(S)
|
|
2641
|
+
);
|
|
2642
|
+
}), !1;
|
|
2643
|
+
}
|
|
2644
|
+
return pt(d) ? !0 : (t.append(Sn(p, y, s), u(d)), !1);
|
|
2645
|
+
}
|
|
2646
|
+
const h = [], w = Object.assign(ja, {
|
|
2647
|
+
defaultVisitor: f,
|
|
2648
|
+
convertValue: u,
|
|
2649
|
+
isVisitable: pt
|
|
2650
|
+
});
|
|
2651
|
+
function O(d, y) {
|
|
2652
|
+
if (!c.isUndefined(d)) {
|
|
2653
|
+
if (h.indexOf(d) !== -1)
|
|
2654
|
+
throw Error("Circular reference detected in " + y.join("."));
|
|
2655
|
+
h.push(d), c.forEach(d, function(g, T) {
|
|
2656
|
+
(!(c.isUndefined(g) || g === null) && o.call(
|
|
2657
|
+
t,
|
|
2658
|
+
g,
|
|
2659
|
+
c.isString(T) ? T.trim() : T,
|
|
2660
|
+
y,
|
|
2661
|
+
w
|
|
2662
|
+
)) === !0 && O(g, y ? y.concat(T) : [T]);
|
|
2663
|
+
}), h.pop();
|
|
2664
|
+
}
|
|
2665
|
+
}
|
|
2666
|
+
if (!c.isObject(e))
|
|
2667
|
+
throw new TypeError("data must be an object");
|
|
2668
|
+
return O(e), t;
|
|
2669
|
+
}
|
|
2670
|
+
function Dn(e) {
|
|
2671
|
+
const t = {
|
|
2672
|
+
"!": "%21",
|
|
2673
|
+
"'": "%27",
|
|
2674
|
+
"(": "%28",
|
|
2675
|
+
")": "%29",
|
|
2676
|
+
"~": "%7E",
|
|
2677
|
+
"%20": "+",
|
|
2678
|
+
"%00": "\0"
|
|
2679
|
+
};
|
|
2680
|
+
return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g, function(r) {
|
|
2681
|
+
return t[r];
|
|
2682
|
+
});
|
|
2683
|
+
}
|
|
2684
|
+
function Tt(e, t) {
|
|
2685
|
+
this._pairs = [], e && $e(e, this, t);
|
|
2686
|
+
}
|
|
2687
|
+
const or = Tt.prototype;
|
|
2688
|
+
or.append = function(t, n) {
|
|
2689
|
+
this._pairs.push([t, n]);
|
|
2690
|
+
};
|
|
2691
|
+
or.toString = function(t) {
|
|
2692
|
+
const n = t ? function(r) {
|
|
2693
|
+
return t.call(this, r, Dn);
|
|
2694
|
+
} : Dn;
|
|
2695
|
+
return this._pairs.map(function(o) {
|
|
2696
|
+
return n(o[0]) + "=" + n(o[1]);
|
|
2697
|
+
}, "").join("&");
|
|
2698
|
+
};
|
|
2699
|
+
function za(e) {
|
|
2700
|
+
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
|
|
2701
|
+
}
|
|
2702
|
+
function sr(e, t, n) {
|
|
2703
|
+
if (!t)
|
|
2704
|
+
return e;
|
|
2705
|
+
const r = n && n.encode || za;
|
|
2706
|
+
c.isFunction(n) && (n = {
|
|
2707
|
+
serialize: n
|
|
2708
|
+
});
|
|
2709
|
+
const o = n && n.serialize;
|
|
2710
|
+
let s;
|
|
2711
|
+
if (o ? s = o(t, n) : s = c.isURLSearchParams(t) ? t.toString() : new Tt(t, n).toString(r), s) {
|
|
2712
|
+
const a = e.indexOf("#");
|
|
2713
|
+
a !== -1 && (e = e.slice(0, a)), e += (e.indexOf("?") === -1 ? "?" : "&") + s;
|
|
2714
|
+
}
|
|
2715
|
+
return e;
|
|
2716
|
+
}
|
|
2717
|
+
class On {
|
|
2718
|
+
constructor() {
|
|
2719
|
+
this.handlers = [];
|
|
2720
|
+
}
|
|
2721
|
+
/**
|
|
2722
|
+
* Add a new interceptor to the stack
|
|
2723
|
+
*
|
|
2724
|
+
* @param {Function} fulfilled The function to handle `then` for a `Promise`
|
|
2725
|
+
* @param {Function} rejected The function to handle `reject` for a `Promise`
|
|
2726
|
+
*
|
|
2727
|
+
* @return {Number} An ID used to remove interceptor later
|
|
2728
|
+
*/
|
|
2729
|
+
use(t, n, r) {
|
|
2730
|
+
return this.handlers.push({
|
|
2731
|
+
fulfilled: t,
|
|
2732
|
+
rejected: n,
|
|
2733
|
+
synchronous: r ? r.synchronous : !1,
|
|
2734
|
+
runWhen: r ? r.runWhen : null
|
|
2735
|
+
}), this.handlers.length - 1;
|
|
2736
|
+
}
|
|
2737
|
+
/**
|
|
2738
|
+
* Remove an interceptor from the stack
|
|
2739
|
+
*
|
|
2740
|
+
* @param {Number} id The ID that was returned by `use`
|
|
2741
|
+
*
|
|
2742
|
+
* @returns {void}
|
|
2743
|
+
*/
|
|
2744
|
+
eject(t) {
|
|
2745
|
+
this.handlers[t] && (this.handlers[t] = null);
|
|
2746
|
+
}
|
|
2747
|
+
/**
|
|
2748
|
+
* Clear all interceptors from the stack
|
|
2749
|
+
*
|
|
2750
|
+
* @returns {void}
|
|
2751
|
+
*/
|
|
2752
|
+
clear() {
|
|
2753
|
+
this.handlers && (this.handlers = []);
|
|
2754
|
+
}
|
|
2755
|
+
/**
|
|
2756
|
+
* Iterate over all the registered interceptors
|
|
2757
|
+
*
|
|
2758
|
+
* This method is particularly useful for skipping over any
|
|
2759
|
+
* interceptors that may have become `null` calling `eject`.
|
|
2760
|
+
*
|
|
2761
|
+
* @param {Function} fn The function to call for each interceptor
|
|
2762
|
+
*
|
|
2763
|
+
* @returns {void}
|
|
2764
|
+
*/
|
|
2765
|
+
forEach(t) {
|
|
2766
|
+
c.forEach(this.handlers, function(r) {
|
|
2767
|
+
r !== null && t(r);
|
|
2768
|
+
});
|
|
2769
|
+
}
|
|
2770
|
+
}
|
|
2771
|
+
const ar = {
|
|
2772
|
+
silentJSONParsing: !0,
|
|
2773
|
+
forcedJSONParsing: !0,
|
|
2774
|
+
clarifyTimeoutError: !1
|
|
2775
|
+
}, Xa = typeof URLSearchParams < "u" ? URLSearchParams : Tt, Ja = typeof FormData < "u" ? FormData : null, Va = typeof Blob < "u" ? Blob : null, Za = {
|
|
2776
|
+
isBrowser: !0,
|
|
2777
|
+
classes: {
|
|
2778
|
+
URLSearchParams: Xa,
|
|
2779
|
+
FormData: Ja,
|
|
2780
|
+
Blob: Va
|
|
2781
|
+
},
|
|
2782
|
+
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
2783
|
+
}, St = typeof window < "u" && typeof document < "u", gt = typeof navigator == "object" && navigator || void 0, Ga = St && (!gt || ["ReactNative", "NativeScript", "NS"].indexOf(gt.product) < 0), Qa = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
2784
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Ka = St && window.location.href || "http://localhost", ei = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2785
|
+
__proto__: null,
|
|
2786
|
+
hasBrowserEnv: St,
|
|
2787
|
+
hasStandardBrowserEnv: Ga,
|
|
2788
|
+
hasStandardBrowserWebWorkerEnv: Qa,
|
|
2789
|
+
navigator: gt,
|
|
2790
|
+
origin: Ka
|
|
2791
|
+
}, Symbol.toStringTag, { value: "Module" })), R = {
|
|
2792
|
+
...ei,
|
|
2793
|
+
...Za
|
|
2794
|
+
};
|
|
2795
|
+
function ti(e, t) {
|
|
2796
|
+
return $e(e, new R.classes.URLSearchParams(), {
|
|
2797
|
+
visitor: function(n, r, o, s) {
|
|
2798
|
+
return R.isNode && c.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : s.defaultVisitor.apply(this, arguments);
|
|
2799
|
+
},
|
|
2800
|
+
...t
|
|
2801
|
+
});
|
|
2802
|
+
}
|
|
2803
|
+
function ni(e) {
|
|
2804
|
+
return c.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
|
|
2805
|
+
}
|
|
2806
|
+
function ri(e) {
|
|
2807
|
+
const t = {}, n = Object.keys(e);
|
|
2808
|
+
let r;
|
|
2809
|
+
const o = n.length;
|
|
2810
|
+
let s;
|
|
2811
|
+
for (r = 0; r < o; r++)
|
|
2812
|
+
s = n[r], t[s] = e[s];
|
|
2813
|
+
return t;
|
|
2814
|
+
}
|
|
2815
|
+
function ir(e) {
|
|
2816
|
+
function t(n, r, o, s) {
|
|
2817
|
+
let a = n[s++];
|
|
2818
|
+
if (a === "__proto__") return !0;
|
|
2819
|
+
const i = Number.isFinite(+a), l = s >= n.length;
|
|
2820
|
+
return a = !a && c.isArray(o) ? o.length : a, l ? (c.hasOwnProp(o, a) ? o[a] = [o[a], r] : o[a] = r, !i) : ((!o[a] || !c.isObject(o[a])) && (o[a] = []), t(n, r, o[a], s) && c.isArray(o[a]) && (o[a] = ri(o[a])), !i);
|
|
2821
|
+
}
|
|
2822
|
+
if (c.isFormData(e) && c.isFunction(e.entries)) {
|
|
2823
|
+
const n = {};
|
|
2824
|
+
return c.forEachEntry(e, (r, o) => {
|
|
2825
|
+
t(ni(r), o, n, 0);
|
|
2826
|
+
}), n;
|
|
2827
|
+
}
|
|
2828
|
+
return null;
|
|
2829
|
+
}
|
|
2830
|
+
function oi(e, t, n) {
|
|
2831
|
+
if (c.isString(e))
|
|
2832
|
+
try {
|
|
2833
|
+
return (t || JSON.parse)(e), c.trim(e);
|
|
2834
|
+
} catch (r) {
|
|
2835
|
+
if (r.name !== "SyntaxError")
|
|
2836
|
+
throw r;
|
|
2837
|
+
}
|
|
2838
|
+
return (n || JSON.stringify)(e);
|
|
2839
|
+
}
|
|
2840
|
+
const pe = {
|
|
2841
|
+
transitional: ar,
|
|
2842
|
+
adapter: ["xhr", "http", "fetch"],
|
|
2843
|
+
transformRequest: [function(t, n) {
|
|
2844
|
+
const r = n.getContentType() || "", o = r.indexOf("application/json") > -1, s = c.isObject(t);
|
|
2845
|
+
if (s && c.isHTMLForm(t) && (t = new FormData(t)), c.isFormData(t))
|
|
2846
|
+
return o ? JSON.stringify(ir(t)) : t;
|
|
2847
|
+
if (c.isArrayBuffer(t) || c.isBuffer(t) || c.isStream(t) || c.isFile(t) || c.isBlob(t) || c.isReadableStream(t))
|
|
2848
|
+
return t;
|
|
2849
|
+
if (c.isArrayBufferView(t))
|
|
2850
|
+
return t.buffer;
|
|
2851
|
+
if (c.isURLSearchParams(t))
|
|
2852
|
+
return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
|
|
2853
|
+
let i;
|
|
2854
|
+
if (s) {
|
|
2855
|
+
if (r.indexOf("application/x-www-form-urlencoded") > -1)
|
|
2856
|
+
return ti(t, this.formSerializer).toString();
|
|
2857
|
+
if ((i = c.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
|
|
2858
|
+
const l = this.env && this.env.FormData;
|
|
2859
|
+
return $e(
|
|
2860
|
+
i ? { "files[]": t } : t,
|
|
2861
|
+
l && new l(),
|
|
2862
|
+
this.formSerializer
|
|
2863
|
+
);
|
|
2864
|
+
}
|
|
2865
|
+
}
|
|
2866
|
+
return s || o ? (n.setContentType("application/json", !1), oi(t)) : t;
|
|
2867
|
+
}],
|
|
2868
|
+
transformResponse: [function(t) {
|
|
2869
|
+
const n = this.transitional || pe.transitional, r = n && n.forcedJSONParsing, o = this.responseType === "json";
|
|
2870
|
+
if (c.isResponse(t) || c.isReadableStream(t))
|
|
2871
|
+
return t;
|
|
2872
|
+
if (t && c.isString(t) && (r && !this.responseType || o)) {
|
|
2873
|
+
const a = !(n && n.silentJSONParsing) && o;
|
|
2874
|
+
try {
|
|
2875
|
+
return JSON.parse(t, this.parseReviver);
|
|
2876
|
+
} catch (i) {
|
|
2877
|
+
if (a)
|
|
2878
|
+
throw i.name === "SyntaxError" ? D.from(i, D.ERR_BAD_RESPONSE, this, null, this.response) : i;
|
|
2879
|
+
}
|
|
2880
|
+
}
|
|
2881
|
+
return t;
|
|
2882
|
+
}],
|
|
2883
|
+
/**
|
|
2884
|
+
* A timeout in milliseconds to abort a request. If set to 0 (default) a
|
|
2885
|
+
* timeout is not created.
|
|
2886
|
+
*/
|
|
2887
|
+
timeout: 0,
|
|
2888
|
+
xsrfCookieName: "XSRF-TOKEN",
|
|
2889
|
+
xsrfHeaderName: "X-XSRF-TOKEN",
|
|
2890
|
+
maxContentLength: -1,
|
|
2891
|
+
maxBodyLength: -1,
|
|
2892
|
+
env: {
|
|
2893
|
+
FormData: R.classes.FormData,
|
|
2894
|
+
Blob: R.classes.Blob
|
|
2895
|
+
},
|
|
2896
|
+
validateStatus: function(t) {
|
|
2897
|
+
return t >= 200 && t < 300;
|
|
2898
|
+
},
|
|
2899
|
+
headers: {
|
|
2900
|
+
common: {
|
|
2901
|
+
Accept: "application/json, text/plain, */*",
|
|
2902
|
+
"Content-Type": void 0
|
|
2903
|
+
}
|
|
2904
|
+
}
|
|
2905
|
+
};
|
|
2906
|
+
c.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
|
|
2907
|
+
pe.headers[e] = {};
|
|
2908
|
+
});
|
|
2909
|
+
const si = c.toObjectSet([
|
|
2910
|
+
"age",
|
|
2911
|
+
"authorization",
|
|
2912
|
+
"content-length",
|
|
2913
|
+
"content-type",
|
|
2914
|
+
"etag",
|
|
2915
|
+
"expires",
|
|
2916
|
+
"from",
|
|
2917
|
+
"host",
|
|
2918
|
+
"if-modified-since",
|
|
2919
|
+
"if-unmodified-since",
|
|
2920
|
+
"last-modified",
|
|
2921
|
+
"location",
|
|
2922
|
+
"max-forwards",
|
|
2923
|
+
"proxy-authorization",
|
|
2924
|
+
"referer",
|
|
2925
|
+
"retry-after",
|
|
2926
|
+
"user-agent"
|
|
2927
|
+
]), ai = (e) => {
|
|
2928
|
+
const t = {};
|
|
2929
|
+
let n, r, o;
|
|
2930
|
+
return e && e.split(`
|
|
2931
|
+
`).forEach(function(a) {
|
|
2932
|
+
o = a.indexOf(":"), n = a.substring(0, o).trim().toLowerCase(), r = a.substring(o + 1).trim(), !(!n || t[n] && si[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
|
|
2933
|
+
}), t;
|
|
2934
|
+
}, En = /* @__PURE__ */ Symbol("internals");
|
|
2935
|
+
function le(e) {
|
|
2936
|
+
return e && String(e).trim().toLowerCase();
|
|
2937
|
+
}
|
|
2938
|
+
function Me(e) {
|
|
2939
|
+
return e === !1 || e == null ? e : c.isArray(e) ? e.map(Me) : String(e);
|
|
2940
|
+
}
|
|
2941
|
+
function ii(e) {
|
|
2942
|
+
const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
2943
|
+
let r;
|
|
2944
|
+
for (; r = n.exec(e); )
|
|
2945
|
+
t[r[1]] = r[2];
|
|
2946
|
+
return t;
|
|
2947
|
+
}
|
|
2948
|
+
const ci = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
2949
|
+
function lt(e, t, n, r, o) {
|
|
2950
|
+
if (c.isFunction(r))
|
|
2951
|
+
return r.call(this, t, n);
|
|
2952
|
+
if (o && (t = n), !!c.isString(t)) {
|
|
2953
|
+
if (c.isString(r))
|
|
2954
|
+
return t.indexOf(r) !== -1;
|
|
2955
|
+
if (c.isRegExp(r))
|
|
2956
|
+
return r.test(t);
|
|
2957
|
+
}
|
|
2958
|
+
}
|
|
2959
|
+
function ui(e) {
|
|
2960
|
+
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
|
|
2961
|
+
}
|
|
2962
|
+
function li(e, t) {
|
|
2963
|
+
const n = c.toCamelCase(" " + t);
|
|
2964
|
+
["get", "set", "has"].forEach((r) => {
|
|
2965
|
+
Object.defineProperty(e, r + n, {
|
|
2966
|
+
value: function(o, s, a) {
|
|
2967
|
+
return this[r].call(this, t, o, s, a);
|
|
2968
|
+
},
|
|
2969
|
+
configurable: !0
|
|
2970
|
+
});
|
|
2971
|
+
});
|
|
2972
|
+
}
|
|
2973
|
+
let $ = class {
|
|
2974
|
+
constructor(t) {
|
|
2975
|
+
t && this.set(t);
|
|
2976
|
+
}
|
|
2977
|
+
set(t, n, r) {
|
|
2978
|
+
const o = this;
|
|
2979
|
+
function s(i, l, u) {
|
|
2980
|
+
const f = le(l);
|
|
2981
|
+
if (!f)
|
|
2982
|
+
throw new Error("header name must be a non-empty string");
|
|
2983
|
+
const h = c.findKey(o, f);
|
|
2984
|
+
(!h || o[h] === void 0 || u === !0 || u === void 0 && o[h] !== !1) && (o[h || l] = Me(i));
|
|
2985
|
+
}
|
|
2986
|
+
const a = (i, l) => c.forEach(i, (u, f) => s(u, f, l));
|
|
2987
|
+
if (c.isPlainObject(t) || t instanceof this.constructor)
|
|
2988
|
+
a(t, n);
|
|
2989
|
+
else if (c.isString(t) && (t = t.trim()) && !ci(t))
|
|
2990
|
+
a(ai(t), n);
|
|
2991
|
+
else if (c.isObject(t) && c.isIterable(t)) {
|
|
2992
|
+
let i = {}, l, u;
|
|
2993
|
+
for (const f of t) {
|
|
2994
|
+
if (!c.isArray(f))
|
|
2995
|
+
throw TypeError("Object iterator must return a key-value pair");
|
|
2996
|
+
i[u = f[0]] = (l = i[u]) ? c.isArray(l) ? [...l, f[1]] : [l, f[1]] : f[1];
|
|
2997
|
+
}
|
|
2998
|
+
a(i, n);
|
|
2999
|
+
} else
|
|
3000
|
+
t != null && s(n, t, r);
|
|
3001
|
+
return this;
|
|
3002
|
+
}
|
|
3003
|
+
get(t, n) {
|
|
3004
|
+
if (t = le(t), t) {
|
|
3005
|
+
const r = c.findKey(this, t);
|
|
3006
|
+
if (r) {
|
|
3007
|
+
const o = this[r];
|
|
3008
|
+
if (!n)
|
|
3009
|
+
return o;
|
|
3010
|
+
if (n === !0)
|
|
3011
|
+
return ii(o);
|
|
3012
|
+
if (c.isFunction(n))
|
|
3013
|
+
return n.call(this, o, r);
|
|
3014
|
+
if (c.isRegExp(n))
|
|
3015
|
+
return n.exec(o);
|
|
3016
|
+
throw new TypeError("parser must be boolean|regexp|function");
|
|
3017
|
+
}
|
|
3018
|
+
}
|
|
3019
|
+
}
|
|
3020
|
+
has(t, n) {
|
|
3021
|
+
if (t = le(t), t) {
|
|
3022
|
+
const r = c.findKey(this, t);
|
|
3023
|
+
return !!(r && this[r] !== void 0 && (!n || lt(this, this[r], r, n)));
|
|
3024
|
+
}
|
|
3025
|
+
return !1;
|
|
3026
|
+
}
|
|
3027
|
+
delete(t, n) {
|
|
3028
|
+
const r = this;
|
|
3029
|
+
let o = !1;
|
|
3030
|
+
function s(a) {
|
|
3031
|
+
if (a = le(a), a) {
|
|
3032
|
+
const i = c.findKey(r, a);
|
|
3033
|
+
i && (!n || lt(r, r[i], i, n)) && (delete r[i], o = !0);
|
|
3034
|
+
}
|
|
3035
|
+
}
|
|
3036
|
+
return c.isArray(t) ? t.forEach(s) : s(t), o;
|
|
3037
|
+
}
|
|
3038
|
+
clear(t) {
|
|
3039
|
+
const n = Object.keys(this);
|
|
3040
|
+
let r = n.length, o = !1;
|
|
3041
|
+
for (; r--; ) {
|
|
3042
|
+
const s = n[r];
|
|
3043
|
+
(!t || lt(this, this[s], s, t, !0)) && (delete this[s], o = !0);
|
|
3044
|
+
}
|
|
3045
|
+
return o;
|
|
3046
|
+
}
|
|
3047
|
+
normalize(t) {
|
|
3048
|
+
const n = this, r = {};
|
|
3049
|
+
return c.forEach(this, (o, s) => {
|
|
3050
|
+
const a = c.findKey(r, s);
|
|
3051
|
+
if (a) {
|
|
3052
|
+
n[a] = Me(o), delete n[s];
|
|
3053
|
+
return;
|
|
3054
|
+
}
|
|
3055
|
+
const i = t ? ui(s) : String(s).trim();
|
|
3056
|
+
i !== s && delete n[s], n[i] = Me(o), r[i] = !0;
|
|
3057
|
+
}), this;
|
|
3058
|
+
}
|
|
3059
|
+
concat(...t) {
|
|
3060
|
+
return this.constructor.concat(this, ...t);
|
|
3061
|
+
}
|
|
3062
|
+
toJSON(t) {
|
|
3063
|
+
const n = /* @__PURE__ */ Object.create(null);
|
|
3064
|
+
return c.forEach(this, (r, o) => {
|
|
3065
|
+
r != null && r !== !1 && (n[o] = t && c.isArray(r) ? r.join(", ") : r);
|
|
3066
|
+
}), n;
|
|
3067
|
+
}
|
|
3068
|
+
[Symbol.iterator]() {
|
|
3069
|
+
return Object.entries(this.toJSON())[Symbol.iterator]();
|
|
3070
|
+
}
|
|
3071
|
+
toString() {
|
|
3072
|
+
return Object.entries(this.toJSON()).map(([t, n]) => t + ": " + n).join(`
|
|
3073
|
+
`);
|
|
3074
|
+
}
|
|
3075
|
+
getSetCookie() {
|
|
3076
|
+
return this.get("set-cookie") || [];
|
|
3077
|
+
}
|
|
3078
|
+
get [Symbol.toStringTag]() {
|
|
3079
|
+
return "AxiosHeaders";
|
|
3080
|
+
}
|
|
3081
|
+
static from(t) {
|
|
3082
|
+
return t instanceof this ? t : new this(t);
|
|
3083
|
+
}
|
|
3084
|
+
static concat(t, ...n) {
|
|
3085
|
+
const r = new this(t);
|
|
3086
|
+
return n.forEach((o) => r.set(o)), r;
|
|
3087
|
+
}
|
|
3088
|
+
static accessor(t) {
|
|
3089
|
+
const r = (this[En] = this[En] = {
|
|
3090
|
+
accessors: {}
|
|
3091
|
+
}).accessors, o = this.prototype;
|
|
3092
|
+
function s(a) {
|
|
3093
|
+
const i = le(a);
|
|
3094
|
+
r[i] || (li(o, a), r[i] = !0);
|
|
3095
|
+
}
|
|
3096
|
+
return c.isArray(t) ? t.forEach(s) : s(t), this;
|
|
3097
|
+
}
|
|
3098
|
+
};
|
|
3099
|
+
$.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
3100
|
+
c.reduceDescriptors($.prototype, ({ value: e }, t) => {
|
|
3101
|
+
let n = t[0].toUpperCase() + t.slice(1);
|
|
3102
|
+
return {
|
|
3103
|
+
get: () => e,
|
|
3104
|
+
set(r) {
|
|
3105
|
+
this[n] = r;
|
|
3106
|
+
}
|
|
3107
|
+
};
|
|
3108
|
+
});
|
|
3109
|
+
c.freezeMethods($);
|
|
3110
|
+
function ft(e, t) {
|
|
3111
|
+
const n = this || pe, r = t || n, o = $.from(r.headers);
|
|
3112
|
+
let s = r.data;
|
|
3113
|
+
return c.forEach(e, function(i) {
|
|
3114
|
+
s = i.call(n, s, o.normalize(), t ? t.status : void 0);
|
|
3115
|
+
}), o.normalize(), s;
|
|
3116
|
+
}
|
|
3117
|
+
function cr(e) {
|
|
3118
|
+
return !!(e && e.__CANCEL__);
|
|
3119
|
+
}
|
|
3120
|
+
function se(e, t, n) {
|
|
3121
|
+
D.call(this, e ?? "canceled", D.ERR_CANCELED, t, n), this.name = "CanceledError";
|
|
3122
|
+
}
|
|
3123
|
+
c.inherits(se, D, {
|
|
3124
|
+
__CANCEL__: !0
|
|
3125
|
+
});
|
|
3126
|
+
function ur(e, t, n) {
|
|
3127
|
+
const r = n.config.validateStatus;
|
|
3128
|
+
!n.status || !r || r(n.status) ? e(n) : t(new D(
|
|
3129
|
+
"Request failed with status code " + n.status,
|
|
3130
|
+
[D.ERR_BAD_REQUEST, D.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
|
|
3131
|
+
n.config,
|
|
3132
|
+
n.request,
|
|
3133
|
+
n
|
|
3134
|
+
));
|
|
3135
|
+
}
|
|
3136
|
+
function fi(e) {
|
|
3137
|
+
const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
|
|
3138
|
+
return t && t[1] || "";
|
|
3139
|
+
}
|
|
3140
|
+
function di(e, t) {
|
|
3141
|
+
e = e || 10;
|
|
3142
|
+
const n = new Array(e), r = new Array(e);
|
|
3143
|
+
let o = 0, s = 0, a;
|
|
3144
|
+
return t = t !== void 0 ? t : 1e3, function(l) {
|
|
3145
|
+
const u = Date.now(), f = r[s];
|
|
3146
|
+
a || (a = u), n[o] = l, r[o] = u;
|
|
3147
|
+
let h = s, w = 0;
|
|
3148
|
+
for (; h !== o; )
|
|
3149
|
+
w += n[h++], h = h % e;
|
|
3150
|
+
if (o = (o + 1) % e, o === s && (s = (s + 1) % e), u - a < t)
|
|
3151
|
+
return;
|
|
3152
|
+
const O = f && u - f;
|
|
3153
|
+
return O ? Math.round(w * 1e3 / O) : void 0;
|
|
3154
|
+
};
|
|
3155
|
+
}
|
|
3156
|
+
function hi(e, t) {
|
|
3157
|
+
let n = 0, r = 1e3 / t, o, s;
|
|
3158
|
+
const a = (u, f = Date.now()) => {
|
|
3159
|
+
n = f, o = null, s && (clearTimeout(s), s = null), e(...u);
|
|
3160
|
+
};
|
|
3161
|
+
return [(...u) => {
|
|
3162
|
+
const f = Date.now(), h = f - n;
|
|
3163
|
+
h >= r ? a(u, f) : (o = u, s || (s = setTimeout(() => {
|
|
3164
|
+
s = null, a(o);
|
|
3165
|
+
}, r - h)));
|
|
3166
|
+
}, () => o && a(o)];
|
|
3167
|
+
}
|
|
3168
|
+
const Re = (e, t, n = 3) => {
|
|
3169
|
+
let r = 0;
|
|
3170
|
+
const o = di(50, 250);
|
|
3171
|
+
return hi((s) => {
|
|
3172
|
+
const a = s.loaded, i = s.lengthComputable ? s.total : void 0, l = a - r, u = o(l), f = a <= i;
|
|
3173
|
+
r = a;
|
|
3174
|
+
const h = {
|
|
3175
|
+
loaded: a,
|
|
3176
|
+
total: i,
|
|
3177
|
+
progress: i ? a / i : void 0,
|
|
3178
|
+
bytes: l,
|
|
3179
|
+
rate: u || void 0,
|
|
3180
|
+
estimated: u && i && f ? (i - a) / u : void 0,
|
|
3181
|
+
event: s,
|
|
3182
|
+
lengthComputable: i != null,
|
|
3183
|
+
[t ? "download" : "upload"]: !0
|
|
3184
|
+
};
|
|
3185
|
+
e(h);
|
|
3186
|
+
}, n);
|
|
3187
|
+
}, Nn = (e, t) => {
|
|
3188
|
+
const n = e != null;
|
|
3189
|
+
return [(r) => t[0]({
|
|
3190
|
+
lengthComputable: n,
|
|
3191
|
+
total: e,
|
|
3192
|
+
loaded: r
|
|
3193
|
+
}), t[1]];
|
|
3194
|
+
}, kn = (e) => (...t) => c.asap(() => e(...t)), mi = R.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, R.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
|
|
3195
|
+
new URL(R.origin),
|
|
3196
|
+
R.navigator && /(msie|trident)/i.test(R.navigator.userAgent)
|
|
3197
|
+
) : () => !0, pi = R.hasStandardBrowserEnv ? (
|
|
3198
|
+
// Standard browser envs support document.cookie
|
|
3199
|
+
{
|
|
3200
|
+
write(e, t, n, r, o, s, a) {
|
|
3201
|
+
if (typeof document > "u") return;
|
|
3202
|
+
const i = [`${e}=${encodeURIComponent(t)}`];
|
|
3203
|
+
c.isNumber(n) && i.push(`expires=${new Date(n).toUTCString()}`), c.isString(r) && i.push(`path=${r}`), c.isString(o) && i.push(`domain=${o}`), s === !0 && i.push("secure"), c.isString(a) && i.push(`SameSite=${a}`), document.cookie = i.join("; ");
|
|
3204
|
+
},
|
|
3205
|
+
read(e) {
|
|
3206
|
+
if (typeof document > "u") return null;
|
|
3207
|
+
const t = document.cookie.match(new RegExp("(?:^|; )" + e + "=([^;]*)"));
|
|
3208
|
+
return t ? decodeURIComponent(t[1]) : null;
|
|
3209
|
+
},
|
|
3210
|
+
remove(e) {
|
|
3211
|
+
this.write(e, "", Date.now() - 864e5, "/");
|
|
3212
|
+
}
|
|
3213
|
+
}
|
|
3214
|
+
) : (
|
|
3215
|
+
// Non-standard browser env (web workers, react-native) lack needed support.
|
|
3216
|
+
{
|
|
3217
|
+
write() {
|
|
3218
|
+
},
|
|
3219
|
+
read() {
|
|
3220
|
+
return null;
|
|
3221
|
+
},
|
|
3222
|
+
remove() {
|
|
3223
|
+
}
|
|
3224
|
+
}
|
|
3225
|
+
);
|
|
3226
|
+
function gi(e) {
|
|
3227
|
+
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
|
|
3228
|
+
}
|
|
3229
|
+
function wi(e, t) {
|
|
3230
|
+
return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
|
3231
|
+
}
|
|
3232
|
+
function lr(e, t, n) {
|
|
3233
|
+
let r = !gi(t);
|
|
3234
|
+
return e && (r || n == !1) ? wi(e, t) : t;
|
|
3235
|
+
}
|
|
3236
|
+
const Mn = (e) => e instanceof $ ? { ...e } : e;
|
|
3237
|
+
function Z(e, t) {
|
|
3238
|
+
t = t || {};
|
|
3239
|
+
const n = {};
|
|
3240
|
+
function r(u, f, h, w) {
|
|
3241
|
+
return c.isPlainObject(u) && c.isPlainObject(f) ? c.merge.call({ caseless: w }, u, f) : c.isPlainObject(f) ? c.merge({}, f) : c.isArray(f) ? f.slice() : f;
|
|
3242
|
+
}
|
|
3243
|
+
function o(u, f, h, w) {
|
|
3244
|
+
if (c.isUndefined(f)) {
|
|
3245
|
+
if (!c.isUndefined(u))
|
|
3246
|
+
return r(void 0, u, h, w);
|
|
3247
|
+
} else return r(u, f, h, w);
|
|
3248
|
+
}
|
|
3249
|
+
function s(u, f) {
|
|
3250
|
+
if (!c.isUndefined(f))
|
|
3251
|
+
return r(void 0, f);
|
|
3252
|
+
}
|
|
3253
|
+
function a(u, f) {
|
|
3254
|
+
if (c.isUndefined(f)) {
|
|
3255
|
+
if (!c.isUndefined(u))
|
|
3256
|
+
return r(void 0, u);
|
|
3257
|
+
} else return r(void 0, f);
|
|
3258
|
+
}
|
|
3259
|
+
function i(u, f, h) {
|
|
3260
|
+
if (h in t)
|
|
3261
|
+
return r(u, f);
|
|
3262
|
+
if (h in e)
|
|
3263
|
+
return r(void 0, u);
|
|
3264
|
+
}
|
|
3265
|
+
const l = {
|
|
3266
|
+
url: s,
|
|
3267
|
+
method: s,
|
|
3268
|
+
data: s,
|
|
3269
|
+
baseURL: a,
|
|
3270
|
+
transformRequest: a,
|
|
3271
|
+
transformResponse: a,
|
|
3272
|
+
paramsSerializer: a,
|
|
3273
|
+
timeout: a,
|
|
3274
|
+
timeoutMessage: a,
|
|
3275
|
+
withCredentials: a,
|
|
3276
|
+
withXSRFToken: a,
|
|
3277
|
+
adapter: a,
|
|
3278
|
+
responseType: a,
|
|
3279
|
+
xsrfCookieName: a,
|
|
3280
|
+
xsrfHeaderName: a,
|
|
3281
|
+
onUploadProgress: a,
|
|
3282
|
+
onDownloadProgress: a,
|
|
3283
|
+
decompress: a,
|
|
3284
|
+
maxContentLength: a,
|
|
3285
|
+
maxBodyLength: a,
|
|
3286
|
+
beforeRedirect: a,
|
|
3287
|
+
transport: a,
|
|
3288
|
+
httpAgent: a,
|
|
3289
|
+
httpsAgent: a,
|
|
3290
|
+
cancelToken: a,
|
|
3291
|
+
socketPath: a,
|
|
3292
|
+
responseEncoding: a,
|
|
3293
|
+
validateStatus: i,
|
|
3294
|
+
headers: (u, f, h) => o(Mn(u), Mn(f), h, !0)
|
|
3295
|
+
};
|
|
3296
|
+
return c.forEach(Object.keys({ ...e, ...t }), function(f) {
|
|
3297
|
+
const h = l[f] || o, w = h(e[f], t[f], f);
|
|
3298
|
+
c.isUndefined(w) && h !== i || (n[f] = w);
|
|
3299
|
+
}), n;
|
|
3300
|
+
}
|
|
3301
|
+
const fr = (e) => {
|
|
3302
|
+
const t = Z({}, e);
|
|
3303
|
+
let { data: n, withXSRFToken: r, xsrfHeaderName: o, xsrfCookieName: s, headers: a, auth: i } = t;
|
|
3304
|
+
if (t.headers = a = $.from(a), t.url = sr(lr(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), i && a.set(
|
|
3305
|
+
"Authorization",
|
|
3306
|
+
"Basic " + btoa((i.username || "") + ":" + (i.password ? unescape(encodeURIComponent(i.password)) : ""))
|
|
3307
|
+
), c.isFormData(n)) {
|
|
3308
|
+
if (R.hasStandardBrowserEnv || R.hasStandardBrowserWebWorkerEnv)
|
|
3309
|
+
a.setContentType(void 0);
|
|
3310
|
+
else if (c.isFunction(n.getHeaders)) {
|
|
3311
|
+
const l = n.getHeaders(), u = ["content-type", "content-length"];
|
|
3312
|
+
Object.entries(l).forEach(([f, h]) => {
|
|
3313
|
+
u.includes(f.toLowerCase()) && a.set(f, h);
|
|
3314
|
+
});
|
|
3315
|
+
}
|
|
3316
|
+
}
|
|
3317
|
+
if (R.hasStandardBrowserEnv && (r && c.isFunction(r) && (r = r(t)), r || r !== !1 && mi(t.url))) {
|
|
3318
|
+
const l = o && s && pi.read(s);
|
|
3319
|
+
l && a.set(o, l);
|
|
3320
|
+
}
|
|
3321
|
+
return t;
|
|
3322
|
+
}, yi = typeof XMLHttpRequest < "u", bi = yi && function(e) {
|
|
3323
|
+
return new Promise(function(n, r) {
|
|
3324
|
+
const o = fr(e);
|
|
3325
|
+
let s = o.data;
|
|
3326
|
+
const a = $.from(o.headers).normalize();
|
|
3327
|
+
let { responseType: i, onUploadProgress: l, onDownloadProgress: u } = o, f, h, w, O, d;
|
|
3328
|
+
function y() {
|
|
3329
|
+
O && O(), d && d(), o.cancelToken && o.cancelToken.unsubscribe(f), o.signal && o.signal.removeEventListener("abort", f);
|
|
3330
|
+
}
|
|
3331
|
+
let p = new XMLHttpRequest();
|
|
3332
|
+
p.open(o.method.toUpperCase(), o.url, !0), p.timeout = o.timeout;
|
|
3333
|
+
function g() {
|
|
3334
|
+
if (!p)
|
|
3335
|
+
return;
|
|
3336
|
+
const S = $.from(
|
|
3337
|
+
"getAllResponseHeaders" in p && p.getAllResponseHeaders()
|
|
3338
|
+
), x = {
|
|
3339
|
+
data: !i || i === "text" || i === "json" ? p.responseText : p.response,
|
|
3340
|
+
status: p.status,
|
|
3341
|
+
statusText: p.statusText,
|
|
3342
|
+
headers: S,
|
|
3343
|
+
config: e,
|
|
3344
|
+
request: p
|
|
3345
|
+
};
|
|
3346
|
+
ur(function(v) {
|
|
3347
|
+
n(v), y();
|
|
3348
|
+
}, function(v) {
|
|
3349
|
+
r(v), y();
|
|
3350
|
+
}, x), p = null;
|
|
3351
|
+
}
|
|
3352
|
+
"onloadend" in p ? p.onloadend = g : p.onreadystatechange = function() {
|
|
3353
|
+
!p || p.readyState !== 4 || p.status === 0 && !(p.responseURL && p.responseURL.indexOf("file:") === 0) || setTimeout(g);
|
|
3354
|
+
}, p.onabort = function() {
|
|
3355
|
+
p && (r(new D("Request aborted", D.ECONNABORTED, e, p)), p = null);
|
|
3356
|
+
}, p.onerror = function(k) {
|
|
3357
|
+
const x = k && k.message ? k.message : "Network Error", U = new D(x, D.ERR_NETWORK, e, p);
|
|
3358
|
+
U.event = k || null, r(U), p = null;
|
|
3359
|
+
}, p.ontimeout = function() {
|
|
3360
|
+
let k = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
|
|
3361
|
+
const x = o.transitional || ar;
|
|
3362
|
+
o.timeoutErrorMessage && (k = o.timeoutErrorMessage), r(new D(
|
|
3363
|
+
k,
|
|
3364
|
+
x.clarifyTimeoutError ? D.ETIMEDOUT : D.ECONNABORTED,
|
|
3365
|
+
e,
|
|
3366
|
+
p
|
|
3367
|
+
)), p = null;
|
|
3368
|
+
}, s === void 0 && a.setContentType(null), "setRequestHeader" in p && c.forEach(a.toJSON(), function(k, x) {
|
|
3369
|
+
p.setRequestHeader(x, k);
|
|
3370
|
+
}), c.isUndefined(o.withCredentials) || (p.withCredentials = !!o.withCredentials), i && i !== "json" && (p.responseType = o.responseType), u && ([w, d] = Re(u, !0), p.addEventListener("progress", w)), l && p.upload && ([h, O] = Re(l), p.upload.addEventListener("progress", h), p.upload.addEventListener("loadend", O)), (o.cancelToken || o.signal) && (f = (S) => {
|
|
3371
|
+
p && (r(!S || S.type ? new se(null, e, p) : S), p.abort(), p = null);
|
|
3372
|
+
}, o.cancelToken && o.cancelToken.subscribe(f), o.signal && (o.signal.aborted ? f() : o.signal.addEventListener("abort", f)));
|
|
3373
|
+
const T = fi(o.url);
|
|
3374
|
+
if (T && R.protocols.indexOf(T) === -1) {
|
|
3375
|
+
r(new D("Unsupported protocol " + T + ":", D.ERR_BAD_REQUEST, e));
|
|
3376
|
+
return;
|
|
3377
|
+
}
|
|
3378
|
+
p.send(s || null);
|
|
3379
|
+
});
|
|
3380
|
+
}, Ti = (e, t) => {
|
|
3381
|
+
const { length: n } = e = e ? e.filter(Boolean) : [];
|
|
3382
|
+
if (t || n) {
|
|
3383
|
+
let r = new AbortController(), o;
|
|
3384
|
+
const s = function(u) {
|
|
3385
|
+
if (!o) {
|
|
3386
|
+
o = !0, i();
|
|
3387
|
+
const f = u instanceof Error ? u : this.reason;
|
|
3388
|
+
r.abort(f instanceof D ? f : new se(f instanceof Error ? f.message : f));
|
|
3389
|
+
}
|
|
3390
|
+
};
|
|
3391
|
+
let a = t && setTimeout(() => {
|
|
3392
|
+
a = null, s(new D(`timeout ${t} of ms exceeded`, D.ETIMEDOUT));
|
|
3393
|
+
}, t);
|
|
3394
|
+
const i = () => {
|
|
3395
|
+
e && (a && clearTimeout(a), a = null, e.forEach((u) => {
|
|
3396
|
+
u.unsubscribe ? u.unsubscribe(s) : u.removeEventListener("abort", s);
|
|
3397
|
+
}), e = null);
|
|
3398
|
+
};
|
|
3399
|
+
e.forEach((u) => u.addEventListener("abort", s));
|
|
3400
|
+
const { signal: l } = r;
|
|
3401
|
+
return l.unsubscribe = () => c.asap(i), l;
|
|
3402
|
+
}
|
|
3403
|
+
}, Si = function* (e, t) {
|
|
3404
|
+
let n = e.byteLength;
|
|
3405
|
+
if (n < t) {
|
|
3406
|
+
yield e;
|
|
3407
|
+
return;
|
|
3408
|
+
}
|
|
3409
|
+
let r = 0, o;
|
|
3410
|
+
for (; r < n; )
|
|
3411
|
+
o = r + t, yield e.slice(r, o), r = o;
|
|
3412
|
+
}, Di = async function* (e, t) {
|
|
3413
|
+
for await (const n of Oi(e))
|
|
3414
|
+
yield* Si(n, t);
|
|
3415
|
+
}, Oi = async function* (e) {
|
|
3416
|
+
if (e[Symbol.asyncIterator]) {
|
|
3417
|
+
yield* e;
|
|
3418
|
+
return;
|
|
3419
|
+
}
|
|
3420
|
+
const t = e.getReader();
|
|
3421
|
+
try {
|
|
3422
|
+
for (; ; ) {
|
|
3423
|
+
const { done: n, value: r } = await t.read();
|
|
3424
|
+
if (n)
|
|
3425
|
+
break;
|
|
3426
|
+
yield r;
|
|
3427
|
+
}
|
|
3428
|
+
} finally {
|
|
3429
|
+
await t.cancel();
|
|
3430
|
+
}
|
|
3431
|
+
}, xn = (e, t, n, r) => {
|
|
3432
|
+
const o = Di(e, t);
|
|
3433
|
+
let s = 0, a, i = (l) => {
|
|
3434
|
+
a || (a = !0, r && r(l));
|
|
3435
|
+
};
|
|
3436
|
+
return new ReadableStream({
|
|
3437
|
+
async pull(l) {
|
|
3438
|
+
try {
|
|
3439
|
+
const { done: u, value: f } = await o.next();
|
|
3440
|
+
if (u) {
|
|
3441
|
+
i(), l.close();
|
|
3442
|
+
return;
|
|
3443
|
+
}
|
|
3444
|
+
let h = f.byteLength;
|
|
3445
|
+
if (n) {
|
|
3446
|
+
let w = s += h;
|
|
3447
|
+
n(w);
|
|
3448
|
+
}
|
|
3449
|
+
l.enqueue(new Uint8Array(f));
|
|
3450
|
+
} catch (u) {
|
|
3451
|
+
throw i(u), u;
|
|
3452
|
+
}
|
|
3453
|
+
},
|
|
3454
|
+
cancel(l) {
|
|
3455
|
+
return i(l), o.return();
|
|
3456
|
+
}
|
|
3457
|
+
}, {
|
|
3458
|
+
highWaterMark: 2
|
|
3459
|
+
});
|
|
3460
|
+
}, Cn = 64 * 1024, { isFunction: Se } = c, Ei = (({ Request: e, Response: t }) => ({
|
|
3461
|
+
Request: e,
|
|
3462
|
+
Response: t
|
|
3463
|
+
}))(c.global), {
|
|
3464
|
+
ReadableStream: Pn,
|
|
3465
|
+
TextEncoder: An
|
|
3466
|
+
} = c.global, Rn = (e, ...t) => {
|
|
3467
|
+
try {
|
|
3468
|
+
return !!e(...t);
|
|
3469
|
+
} catch {
|
|
3470
|
+
return !1;
|
|
3471
|
+
}
|
|
3472
|
+
}, Ni = (e) => {
|
|
3473
|
+
e = c.merge.call({
|
|
3474
|
+
skipUndefined: !0
|
|
3475
|
+
}, Ei, e);
|
|
3476
|
+
const { fetch: t, Request: n, Response: r } = e, o = t ? Se(t) : typeof fetch == "function", s = Se(n), a = Se(r);
|
|
3477
|
+
if (!o)
|
|
3478
|
+
return !1;
|
|
3479
|
+
const i = o && Se(Pn), l = o && (typeof An == "function" ? /* @__PURE__ */ ((d) => (y) => d.encode(y))(new An()) : async (d) => new Uint8Array(await new n(d).arrayBuffer())), u = s && i && Rn(() => {
|
|
3480
|
+
let d = !1;
|
|
3481
|
+
const y = new n(R.origin, {
|
|
3482
|
+
body: new Pn(),
|
|
3483
|
+
method: "POST",
|
|
3484
|
+
get duplex() {
|
|
3485
|
+
return d = !0, "half";
|
|
3486
|
+
}
|
|
3487
|
+
}).headers.has("Content-Type");
|
|
3488
|
+
return d && !y;
|
|
3489
|
+
}), f = a && i && Rn(() => c.isReadableStream(new r("").body)), h = {
|
|
3490
|
+
stream: f && ((d) => d.body)
|
|
3491
|
+
};
|
|
3492
|
+
o && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((d) => {
|
|
3493
|
+
!h[d] && (h[d] = (y, p) => {
|
|
3494
|
+
let g = y && y[d];
|
|
3495
|
+
if (g)
|
|
3496
|
+
return g.call(y);
|
|
3497
|
+
throw new D(`Response type '${d}' is not supported`, D.ERR_NOT_SUPPORT, p);
|
|
3498
|
+
});
|
|
3499
|
+
});
|
|
3500
|
+
const w = async (d) => {
|
|
3501
|
+
if (d == null)
|
|
3502
|
+
return 0;
|
|
3503
|
+
if (c.isBlob(d))
|
|
3504
|
+
return d.size;
|
|
3505
|
+
if (c.isSpecCompliantForm(d))
|
|
3506
|
+
return (await new n(R.origin, {
|
|
3507
|
+
method: "POST",
|
|
3508
|
+
body: d
|
|
3509
|
+
}).arrayBuffer()).byteLength;
|
|
3510
|
+
if (c.isArrayBufferView(d) || c.isArrayBuffer(d))
|
|
3511
|
+
return d.byteLength;
|
|
3512
|
+
if (c.isURLSearchParams(d) && (d = d + ""), c.isString(d))
|
|
3513
|
+
return (await l(d)).byteLength;
|
|
3514
|
+
}, O = async (d, y) => {
|
|
3515
|
+
const p = c.toFiniteNumber(d.getContentLength());
|
|
3516
|
+
return p ?? w(y);
|
|
3517
|
+
};
|
|
3518
|
+
return async (d) => {
|
|
3519
|
+
let {
|
|
3520
|
+
url: y,
|
|
3521
|
+
method: p,
|
|
3522
|
+
data: g,
|
|
3523
|
+
signal: T,
|
|
3524
|
+
cancelToken: S,
|
|
3525
|
+
timeout: k,
|
|
3526
|
+
onDownloadProgress: x,
|
|
3527
|
+
onUploadProgress: U,
|
|
3528
|
+
responseType: v,
|
|
3529
|
+
headers: ge,
|
|
3530
|
+
withCredentials: m = "same-origin",
|
|
3531
|
+
fetchOptions: b
|
|
3532
|
+
} = fr(d), P = t || fetch;
|
|
3533
|
+
v = v ? (v + "").toLowerCase() : "text";
|
|
3534
|
+
let C = Ti([T, S && S.toAbortSignal()], k), I = null;
|
|
3535
|
+
const L = C && C.unsubscribe && (() => {
|
|
3536
|
+
C.unsubscribe();
|
|
3537
|
+
});
|
|
3538
|
+
let Ot;
|
|
3539
|
+
try {
|
|
3540
|
+
if (U && u && p !== "get" && p !== "head" && (Ot = await O(ge, g)) !== 0) {
|
|
3541
|
+
let j = new n(y, {
|
|
3542
|
+
method: "POST",
|
|
3543
|
+
body: g,
|
|
3544
|
+
duplex: "half"
|
|
3545
|
+
}), G;
|
|
3546
|
+
if (c.isFormData(g) && (G = j.headers.get("content-type")) && ge.setContentType(G), j.body) {
|
|
3547
|
+
const [Le, we] = Nn(
|
|
3548
|
+
Ot,
|
|
3549
|
+
Re(kn(U))
|
|
3550
|
+
);
|
|
3551
|
+
g = xn(j.body, Cn, Le, we);
|
|
3552
|
+
}
|
|
3553
|
+
}
|
|
3554
|
+
c.isString(m) || (m = m ? "include" : "omit");
|
|
3555
|
+
const Y = s && "credentials" in n.prototype, Et = {
|
|
3556
|
+
...b,
|
|
3557
|
+
signal: C,
|
|
3558
|
+
method: p.toUpperCase(),
|
|
3559
|
+
headers: ge.normalize().toJSON(),
|
|
3560
|
+
body: g,
|
|
3561
|
+
duplex: "half",
|
|
3562
|
+
credentials: Y ? m : void 0
|
|
3563
|
+
};
|
|
3564
|
+
I = s && new n(y, Et);
|
|
3565
|
+
let q = await (s ? P(I, b) : P(y, Et));
|
|
3566
|
+
const Nt = f && (v === "stream" || v === "response");
|
|
3567
|
+
if (f && (x || Nt && L)) {
|
|
3568
|
+
const j = {};
|
|
3569
|
+
["status", "statusText", "headers"].forEach((kt) => {
|
|
3570
|
+
j[kt] = q[kt];
|
|
3571
|
+
});
|
|
3572
|
+
const G = c.toFiniteNumber(q.headers.get("content-length")), [Le, we] = x && Nn(
|
|
3573
|
+
G,
|
|
3574
|
+
Re(kn(x), !0)
|
|
3575
|
+
) || [];
|
|
3576
|
+
q = new r(
|
|
3577
|
+
xn(q.body, Cn, Le, () => {
|
|
3578
|
+
we && we(), L && L();
|
|
3579
|
+
}),
|
|
3580
|
+
j
|
|
3581
|
+
);
|
|
3582
|
+
}
|
|
3583
|
+
v = v || "text";
|
|
3584
|
+
let wr = await h[c.findKey(h, v) || "text"](q, d);
|
|
3585
|
+
return !Nt && L && L(), await new Promise((j, G) => {
|
|
3586
|
+
ur(j, G, {
|
|
3587
|
+
data: wr,
|
|
3588
|
+
headers: $.from(q.headers),
|
|
3589
|
+
status: q.status,
|
|
3590
|
+
statusText: q.statusText,
|
|
3591
|
+
config: d,
|
|
3592
|
+
request: I
|
|
3593
|
+
});
|
|
3594
|
+
});
|
|
3595
|
+
} catch (Y) {
|
|
3596
|
+
throw L && L(), Y && Y.name === "TypeError" && /Load failed|fetch/i.test(Y.message) ? Object.assign(
|
|
3597
|
+
new D("Network Error", D.ERR_NETWORK, d, I),
|
|
3598
|
+
{
|
|
3599
|
+
cause: Y.cause || Y
|
|
3600
|
+
}
|
|
3601
|
+
) : D.from(Y, Y && Y.code, d, I);
|
|
3602
|
+
}
|
|
3603
|
+
};
|
|
3604
|
+
}, ki = /* @__PURE__ */ new Map(), dr = (e) => {
|
|
3605
|
+
let t = e && e.env || {};
|
|
3606
|
+
const { fetch: n, Request: r, Response: o } = t, s = [
|
|
3607
|
+
r,
|
|
3608
|
+
o,
|
|
3609
|
+
n
|
|
3610
|
+
];
|
|
3611
|
+
let a = s.length, i = a, l, u, f = ki;
|
|
3612
|
+
for (; i--; )
|
|
3613
|
+
l = s[i], u = f.get(l), u === void 0 && f.set(l, u = i ? /* @__PURE__ */ new Map() : Ni(t)), f = u;
|
|
3614
|
+
return u;
|
|
3615
|
+
};
|
|
3616
|
+
dr();
|
|
3617
|
+
const Dt = {
|
|
3618
|
+
http: Wa,
|
|
3619
|
+
xhr: bi,
|
|
3620
|
+
fetch: {
|
|
3621
|
+
get: dr
|
|
3622
|
+
}
|
|
3623
|
+
};
|
|
3624
|
+
c.forEach(Dt, (e, t) => {
|
|
3625
|
+
if (e) {
|
|
3626
|
+
try {
|
|
3627
|
+
Object.defineProperty(e, "name", { value: t });
|
|
3628
|
+
} catch {
|
|
3629
|
+
}
|
|
3630
|
+
Object.defineProperty(e, "adapterName", { value: t });
|
|
3631
|
+
}
|
|
3632
|
+
});
|
|
3633
|
+
const Fn = (e) => `- ${e}`, Mi = (e) => c.isFunction(e) || e === null || e === !1;
|
|
3634
|
+
function xi(e, t) {
|
|
3635
|
+
e = c.isArray(e) ? e : [e];
|
|
3636
|
+
const { length: n } = e;
|
|
3637
|
+
let r, o;
|
|
3638
|
+
const s = {};
|
|
3639
|
+
for (let a = 0; a < n; a++) {
|
|
3640
|
+
r = e[a];
|
|
3641
|
+
let i;
|
|
3642
|
+
if (o = r, !Mi(r) && (o = Dt[(i = String(r)).toLowerCase()], o === void 0))
|
|
3643
|
+
throw new D(`Unknown adapter '${i}'`);
|
|
3644
|
+
if (o && (c.isFunction(o) || (o = o.get(t))))
|
|
3645
|
+
break;
|
|
3646
|
+
s[i || "#" + a] = o;
|
|
3647
|
+
}
|
|
3648
|
+
if (!o) {
|
|
3649
|
+
const a = Object.entries(s).map(
|
|
3650
|
+
([l, u]) => `adapter ${l} ` + (u === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
3651
|
+
);
|
|
3652
|
+
let i = n ? a.length > 1 ? `since :
|
|
3653
|
+
` + a.map(Fn).join(`
|
|
3654
|
+
`) : " " + Fn(a[0]) : "as no adapter specified";
|
|
3655
|
+
throw new D(
|
|
3656
|
+
"There is no suitable adapter to dispatch the request " + i,
|
|
3657
|
+
"ERR_NOT_SUPPORT"
|
|
3658
|
+
);
|
|
3659
|
+
}
|
|
3660
|
+
return o;
|
|
3661
|
+
}
|
|
3662
|
+
const hr = {
|
|
3663
|
+
/**
|
|
3664
|
+
* Resolve an adapter from a list of adapter names or functions.
|
|
3665
|
+
* @type {Function}
|
|
3666
|
+
*/
|
|
3667
|
+
getAdapter: xi,
|
|
3668
|
+
/**
|
|
3669
|
+
* Exposes all known adapters
|
|
3670
|
+
* @type {Object<string, Function|Object>}
|
|
3671
|
+
*/
|
|
3672
|
+
adapters: Dt
|
|
3673
|
+
};
|
|
3674
|
+
function dt(e) {
|
|
3675
|
+
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
3676
|
+
throw new se(null, e);
|
|
3677
|
+
}
|
|
3678
|
+
function Un(e) {
|
|
3679
|
+
return dt(e), e.headers = $.from(e.headers), e.data = ft.call(
|
|
3680
|
+
e,
|
|
3681
|
+
e.transformRequest
|
|
3682
|
+
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), hr.getAdapter(e.adapter || pe.adapter, e)(e).then(function(r) {
|
|
3683
|
+
return dt(e), r.data = ft.call(
|
|
3684
|
+
e,
|
|
3685
|
+
e.transformResponse,
|
|
3686
|
+
r
|
|
3687
|
+
), r.headers = $.from(r.headers), r;
|
|
3688
|
+
}, function(r) {
|
|
3689
|
+
return cr(r) || (dt(e), r && r.response && (r.response.data = ft.call(
|
|
3690
|
+
e,
|
|
3691
|
+
e.transformResponse,
|
|
3692
|
+
r.response
|
|
3693
|
+
), r.response.headers = $.from(r.response.headers))), Promise.reject(r);
|
|
3694
|
+
});
|
|
3695
|
+
}
|
|
3696
|
+
const mr = "1.13.2", ve = {};
|
|
3697
|
+
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
|
|
3698
|
+
ve[e] = function(r) {
|
|
3699
|
+
return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
3700
|
+
};
|
|
3701
|
+
});
|
|
3702
|
+
const In = {};
|
|
3703
|
+
ve.transitional = function(t, n, r) {
|
|
3704
|
+
function o(s, a) {
|
|
3705
|
+
return "[Axios v" + mr + "] Transitional option '" + s + "'" + a + (r ? ". " + r : "");
|
|
3706
|
+
}
|
|
3707
|
+
return (s, a, i) => {
|
|
3708
|
+
if (t === !1)
|
|
3709
|
+
throw new D(
|
|
3710
|
+
o(a, " has been removed" + (n ? " in " + n : "")),
|
|
3711
|
+
D.ERR_DEPRECATED
|
|
3712
|
+
);
|
|
3713
|
+
return n && !In[a] && (In[a] = !0, console.warn(
|
|
3714
|
+
o(
|
|
3715
|
+
a,
|
|
3716
|
+
" has been deprecated since v" + n + " and will be removed in the near future"
|
|
3717
|
+
)
|
|
3718
|
+
)), t ? t(s, a, i) : !0;
|
|
3719
|
+
};
|
|
3720
|
+
};
|
|
3721
|
+
ve.spelling = function(t) {
|
|
3722
|
+
return (n, r) => (console.warn(`${r} is likely a misspelling of ${t}`), !0);
|
|
3723
|
+
};
|
|
3724
|
+
function Ci(e, t, n) {
|
|
3725
|
+
if (typeof e != "object")
|
|
3726
|
+
throw new D("options must be an object", D.ERR_BAD_OPTION_VALUE);
|
|
3727
|
+
const r = Object.keys(e);
|
|
3728
|
+
let o = r.length;
|
|
3729
|
+
for (; o-- > 0; ) {
|
|
3730
|
+
const s = r[o], a = t[s];
|
|
3731
|
+
if (a) {
|
|
3732
|
+
const i = e[s], l = i === void 0 || a(i, s, e);
|
|
3733
|
+
if (l !== !0)
|
|
3734
|
+
throw new D("option " + s + " must be " + l, D.ERR_BAD_OPTION_VALUE);
|
|
3735
|
+
continue;
|
|
3736
|
+
}
|
|
3737
|
+
if (n !== !0)
|
|
3738
|
+
throw new D("Unknown option " + s, D.ERR_BAD_OPTION);
|
|
3739
|
+
}
|
|
3740
|
+
}
|
|
3741
|
+
const xe = {
|
|
3742
|
+
assertOptions: Ci,
|
|
3743
|
+
validators: ve
|
|
3744
|
+
}, H = xe.validators;
|
|
3745
|
+
let V = class {
|
|
3746
|
+
constructor(t) {
|
|
3747
|
+
this.defaults = t || {}, this.interceptors = {
|
|
3748
|
+
request: new On(),
|
|
3749
|
+
response: new On()
|
|
3750
|
+
};
|
|
3751
|
+
}
|
|
3752
|
+
/**
|
|
3753
|
+
* Dispatch a request
|
|
3754
|
+
*
|
|
3755
|
+
* @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
|
|
3756
|
+
* @param {?Object} config
|
|
3757
|
+
*
|
|
3758
|
+
* @returns {Promise} The Promise to be fulfilled
|
|
3759
|
+
*/
|
|
3760
|
+
async request(t, n) {
|
|
3761
|
+
try {
|
|
3762
|
+
return await this._request(t, n);
|
|
3763
|
+
} catch (r) {
|
|
3764
|
+
if (r instanceof Error) {
|
|
3765
|
+
let o = {};
|
|
3766
|
+
Error.captureStackTrace ? Error.captureStackTrace(o) : o = new Error();
|
|
3767
|
+
const s = o.stack ? o.stack.replace(/^.+\n/, "") : "";
|
|
3768
|
+
try {
|
|
3769
|
+
r.stack ? s && !String(r.stack).endsWith(s.replace(/^.+\n.+\n/, "")) && (r.stack += `
|
|
3770
|
+
` + s) : r.stack = s;
|
|
3771
|
+
} catch {
|
|
3772
|
+
}
|
|
3773
|
+
}
|
|
3774
|
+
throw r;
|
|
3775
|
+
}
|
|
3776
|
+
}
|
|
3777
|
+
_request(t, n) {
|
|
3778
|
+
typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = Z(this.defaults, n);
|
|
3779
|
+
const { transitional: r, paramsSerializer: o, headers: s } = n;
|
|
3780
|
+
r !== void 0 && xe.assertOptions(r, {
|
|
3781
|
+
silentJSONParsing: H.transitional(H.boolean),
|
|
3782
|
+
forcedJSONParsing: H.transitional(H.boolean),
|
|
3783
|
+
clarifyTimeoutError: H.transitional(H.boolean)
|
|
3784
|
+
}, !1), o != null && (c.isFunction(o) ? n.paramsSerializer = {
|
|
3785
|
+
serialize: o
|
|
3786
|
+
} : xe.assertOptions(o, {
|
|
3787
|
+
encode: H.function,
|
|
3788
|
+
serialize: H.function
|
|
3789
|
+
}, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), xe.assertOptions(n, {
|
|
3790
|
+
baseUrl: H.spelling("baseURL"),
|
|
3791
|
+
withXsrfToken: H.spelling("withXSRFToken")
|
|
3792
|
+
}, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
3793
|
+
let a = s && c.merge(
|
|
3794
|
+
s.common,
|
|
3795
|
+
s[n.method]
|
|
3796
|
+
);
|
|
3797
|
+
s && c.forEach(
|
|
3798
|
+
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
3799
|
+
(d) => {
|
|
3800
|
+
delete s[d];
|
|
3801
|
+
}
|
|
3802
|
+
), n.headers = $.concat(a, s);
|
|
3803
|
+
const i = [];
|
|
3804
|
+
let l = !0;
|
|
3805
|
+
this.interceptors.request.forEach(function(y) {
|
|
3806
|
+
typeof y.runWhen == "function" && y.runWhen(n) === !1 || (l = l && y.synchronous, i.unshift(y.fulfilled, y.rejected));
|
|
3807
|
+
});
|
|
3808
|
+
const u = [];
|
|
3809
|
+
this.interceptors.response.forEach(function(y) {
|
|
3810
|
+
u.push(y.fulfilled, y.rejected);
|
|
3811
|
+
});
|
|
3812
|
+
let f, h = 0, w;
|
|
3813
|
+
if (!l) {
|
|
3814
|
+
const d = [Un.bind(this), void 0];
|
|
3815
|
+
for (d.unshift(...i), d.push(...u), w = d.length, f = Promise.resolve(n); h < w; )
|
|
3816
|
+
f = f.then(d[h++], d[h++]);
|
|
3817
|
+
return f;
|
|
3818
|
+
}
|
|
3819
|
+
w = i.length;
|
|
3820
|
+
let O = n;
|
|
3821
|
+
for (; h < w; ) {
|
|
3822
|
+
const d = i[h++], y = i[h++];
|
|
3823
|
+
try {
|
|
3824
|
+
O = d(O);
|
|
3825
|
+
} catch (p) {
|
|
3826
|
+
y.call(this, p);
|
|
3827
|
+
break;
|
|
3828
|
+
}
|
|
3829
|
+
}
|
|
3830
|
+
try {
|
|
3831
|
+
f = Un.call(this, O);
|
|
3832
|
+
} catch (d) {
|
|
3833
|
+
return Promise.reject(d);
|
|
3834
|
+
}
|
|
3835
|
+
for (h = 0, w = u.length; h < w; )
|
|
3836
|
+
f = f.then(u[h++], u[h++]);
|
|
3837
|
+
return f;
|
|
3838
|
+
}
|
|
3839
|
+
getUri(t) {
|
|
3840
|
+
t = Z(this.defaults, t);
|
|
3841
|
+
const n = lr(t.baseURL, t.url, t.allowAbsoluteUrls);
|
|
3842
|
+
return sr(n, t.params, t.paramsSerializer);
|
|
3843
|
+
}
|
|
3844
|
+
};
|
|
3845
|
+
c.forEach(["delete", "get", "head", "options"], function(t) {
|
|
3846
|
+
V.prototype[t] = function(n, r) {
|
|
3847
|
+
return this.request(Z(r || {}, {
|
|
3848
|
+
method: t,
|
|
3849
|
+
url: n,
|
|
3850
|
+
data: (r || {}).data
|
|
3851
|
+
}));
|
|
3852
|
+
};
|
|
3853
|
+
});
|
|
3854
|
+
c.forEach(["post", "put", "patch"], function(t) {
|
|
3855
|
+
function n(r) {
|
|
3856
|
+
return function(s, a, i) {
|
|
3857
|
+
return this.request(Z(i || {}, {
|
|
3858
|
+
method: t,
|
|
3859
|
+
headers: r ? {
|
|
3860
|
+
"Content-Type": "multipart/form-data"
|
|
3861
|
+
} : {},
|
|
3862
|
+
url: s,
|
|
3863
|
+
data: a
|
|
3864
|
+
}));
|
|
3865
|
+
};
|
|
3866
|
+
}
|
|
3867
|
+
V.prototype[t] = n(), V.prototype[t + "Form"] = n(!0);
|
|
3868
|
+
});
|
|
3869
|
+
let Pi = class pr {
|
|
3870
|
+
constructor(t) {
|
|
3871
|
+
if (typeof t != "function")
|
|
3872
|
+
throw new TypeError("executor must be a function.");
|
|
3873
|
+
let n;
|
|
3874
|
+
this.promise = new Promise(function(s) {
|
|
3875
|
+
n = s;
|
|
3876
|
+
});
|
|
3877
|
+
const r = this;
|
|
3878
|
+
this.promise.then((o) => {
|
|
3879
|
+
if (!r._listeners) return;
|
|
3880
|
+
let s = r._listeners.length;
|
|
3881
|
+
for (; s-- > 0; )
|
|
3882
|
+
r._listeners[s](o);
|
|
3883
|
+
r._listeners = null;
|
|
3884
|
+
}), this.promise.then = (o) => {
|
|
3885
|
+
let s;
|
|
3886
|
+
const a = new Promise((i) => {
|
|
3887
|
+
r.subscribe(i), s = i;
|
|
3888
|
+
}).then(o);
|
|
3889
|
+
return a.cancel = function() {
|
|
3890
|
+
r.unsubscribe(s);
|
|
3891
|
+
}, a;
|
|
3892
|
+
}, t(function(s, a, i) {
|
|
3893
|
+
r.reason || (r.reason = new se(s, a, i), n(r.reason));
|
|
3894
|
+
});
|
|
3895
|
+
}
|
|
3896
|
+
/**
|
|
3897
|
+
* Throws a `CanceledError` if cancellation has been requested.
|
|
3898
|
+
*/
|
|
3899
|
+
throwIfRequested() {
|
|
3900
|
+
if (this.reason)
|
|
3901
|
+
throw this.reason;
|
|
3902
|
+
}
|
|
3903
|
+
/**
|
|
3904
|
+
* Subscribe to the cancel signal
|
|
3905
|
+
*/
|
|
3906
|
+
subscribe(t) {
|
|
3907
|
+
if (this.reason) {
|
|
3908
|
+
t(this.reason);
|
|
3909
|
+
return;
|
|
3910
|
+
}
|
|
3911
|
+
this._listeners ? this._listeners.push(t) : this._listeners = [t];
|
|
3912
|
+
}
|
|
3913
|
+
/**
|
|
3914
|
+
* Unsubscribe from the cancel signal
|
|
3915
|
+
*/
|
|
3916
|
+
unsubscribe(t) {
|
|
3917
|
+
if (!this._listeners)
|
|
3918
|
+
return;
|
|
3919
|
+
const n = this._listeners.indexOf(t);
|
|
3920
|
+
n !== -1 && this._listeners.splice(n, 1);
|
|
3921
|
+
}
|
|
3922
|
+
toAbortSignal() {
|
|
3923
|
+
const t = new AbortController(), n = (r) => {
|
|
3924
|
+
t.abort(r);
|
|
3925
|
+
};
|
|
3926
|
+
return this.subscribe(n), t.signal.unsubscribe = () => this.unsubscribe(n), t.signal;
|
|
3927
|
+
}
|
|
3928
|
+
/**
|
|
3929
|
+
* Returns an object that contains a new `CancelToken` and a function that, when called,
|
|
3930
|
+
* cancels the `CancelToken`.
|
|
3931
|
+
*/
|
|
3932
|
+
static source() {
|
|
3933
|
+
let t;
|
|
3934
|
+
return {
|
|
3935
|
+
token: new pr(function(o) {
|
|
3936
|
+
t = o;
|
|
3937
|
+
}),
|
|
3938
|
+
cancel: t
|
|
3939
|
+
};
|
|
3940
|
+
}
|
|
3941
|
+
};
|
|
3942
|
+
function Ai(e) {
|
|
3943
|
+
return function(n) {
|
|
3944
|
+
return e.apply(null, n);
|
|
3945
|
+
};
|
|
3946
|
+
}
|
|
3947
|
+
function Ri(e) {
|
|
3948
|
+
return c.isObject(e) && e.isAxiosError === !0;
|
|
3949
|
+
}
|
|
3950
|
+
const wt = {
|
|
3951
|
+
Continue: 100,
|
|
3952
|
+
SwitchingProtocols: 101,
|
|
3953
|
+
Processing: 102,
|
|
3954
|
+
EarlyHints: 103,
|
|
3955
|
+
Ok: 200,
|
|
3956
|
+
Created: 201,
|
|
3957
|
+
Accepted: 202,
|
|
3958
|
+
NonAuthoritativeInformation: 203,
|
|
3959
|
+
NoContent: 204,
|
|
3960
|
+
ResetContent: 205,
|
|
3961
|
+
PartialContent: 206,
|
|
3962
|
+
MultiStatus: 207,
|
|
3963
|
+
AlreadyReported: 208,
|
|
3964
|
+
ImUsed: 226,
|
|
3965
|
+
MultipleChoices: 300,
|
|
3966
|
+
MovedPermanently: 301,
|
|
3967
|
+
Found: 302,
|
|
3968
|
+
SeeOther: 303,
|
|
3969
|
+
NotModified: 304,
|
|
3970
|
+
UseProxy: 305,
|
|
3971
|
+
Unused: 306,
|
|
3972
|
+
TemporaryRedirect: 307,
|
|
3973
|
+
PermanentRedirect: 308,
|
|
3974
|
+
BadRequest: 400,
|
|
3975
|
+
Unauthorized: 401,
|
|
3976
|
+
PaymentRequired: 402,
|
|
3977
|
+
Forbidden: 403,
|
|
3978
|
+
NotFound: 404,
|
|
3979
|
+
MethodNotAllowed: 405,
|
|
3980
|
+
NotAcceptable: 406,
|
|
3981
|
+
ProxyAuthenticationRequired: 407,
|
|
3982
|
+
RequestTimeout: 408,
|
|
3983
|
+
Conflict: 409,
|
|
3984
|
+
Gone: 410,
|
|
3985
|
+
LengthRequired: 411,
|
|
3986
|
+
PreconditionFailed: 412,
|
|
3987
|
+
PayloadTooLarge: 413,
|
|
3988
|
+
UriTooLong: 414,
|
|
3989
|
+
UnsupportedMediaType: 415,
|
|
3990
|
+
RangeNotSatisfiable: 416,
|
|
3991
|
+
ExpectationFailed: 417,
|
|
3992
|
+
ImATeapot: 418,
|
|
3993
|
+
MisdirectedRequest: 421,
|
|
3994
|
+
UnprocessableEntity: 422,
|
|
3995
|
+
Locked: 423,
|
|
3996
|
+
FailedDependency: 424,
|
|
3997
|
+
TooEarly: 425,
|
|
3998
|
+
UpgradeRequired: 426,
|
|
3999
|
+
PreconditionRequired: 428,
|
|
4000
|
+
TooManyRequests: 429,
|
|
4001
|
+
RequestHeaderFieldsTooLarge: 431,
|
|
4002
|
+
UnavailableForLegalReasons: 451,
|
|
4003
|
+
InternalServerError: 500,
|
|
4004
|
+
NotImplemented: 501,
|
|
4005
|
+
BadGateway: 502,
|
|
4006
|
+
ServiceUnavailable: 503,
|
|
4007
|
+
GatewayTimeout: 504,
|
|
4008
|
+
HttpVersionNotSupported: 505,
|
|
4009
|
+
VariantAlsoNegotiates: 506,
|
|
4010
|
+
InsufficientStorage: 507,
|
|
4011
|
+
LoopDetected: 508,
|
|
4012
|
+
NotExtended: 510,
|
|
4013
|
+
NetworkAuthenticationRequired: 511,
|
|
4014
|
+
WebServerIsDown: 521,
|
|
4015
|
+
ConnectionTimedOut: 522,
|
|
4016
|
+
OriginIsUnreachable: 523,
|
|
4017
|
+
TimeoutOccurred: 524,
|
|
4018
|
+
SslHandshakeFailed: 525,
|
|
4019
|
+
InvalidSslCertificate: 526
|
|
4020
|
+
};
|
|
4021
|
+
Object.entries(wt).forEach(([e, t]) => {
|
|
4022
|
+
wt[t] = e;
|
|
4023
|
+
});
|
|
4024
|
+
function gr(e) {
|
|
4025
|
+
const t = new V(e), n = Xn(V.prototype.request, t);
|
|
4026
|
+
return c.extend(n, V.prototype, t, { allOwnKeys: !0 }), c.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(o) {
|
|
4027
|
+
return gr(Z(e, o));
|
|
4028
|
+
}, n;
|
|
4029
|
+
}
|
|
4030
|
+
const N = gr(pe);
|
|
4031
|
+
N.Axios = V;
|
|
4032
|
+
N.CanceledError = se;
|
|
4033
|
+
N.CancelToken = Pi;
|
|
4034
|
+
N.isCancel = cr;
|
|
4035
|
+
N.VERSION = mr;
|
|
4036
|
+
N.toFormData = $e;
|
|
4037
|
+
N.AxiosError = D;
|
|
4038
|
+
N.Cancel = N.CanceledError;
|
|
4039
|
+
N.all = function(t) {
|
|
4040
|
+
return Promise.all(t);
|
|
4041
|
+
};
|
|
4042
|
+
N.spread = Ai;
|
|
4043
|
+
N.isAxiosError = Ri;
|
|
4044
|
+
N.mergeConfig = Z;
|
|
4045
|
+
N.AxiosHeaders = $;
|
|
4046
|
+
N.formToJSON = (e) => ir(c.isHTMLForm(e) ? new FormData(e) : e);
|
|
4047
|
+
N.getAdapter = hr.getAdapter;
|
|
4048
|
+
N.HttpStatusCode = wt;
|
|
4049
|
+
N.default = N;
|
|
4050
|
+
const {
|
|
4051
|
+
Axios: Wi,
|
|
4052
|
+
AxiosError: qi,
|
|
4053
|
+
CanceledError: ji,
|
|
4054
|
+
isCancel: zi,
|
|
4055
|
+
CancelToken: Xi,
|
|
4056
|
+
VERSION: Ji,
|
|
4057
|
+
all: Vi,
|
|
4058
|
+
Cancel: Zi,
|
|
4059
|
+
isAxiosError: Gi,
|
|
4060
|
+
spread: Qi,
|
|
4061
|
+
toFormData: Ki,
|
|
4062
|
+
AxiosHeaders: ec,
|
|
4063
|
+
HttpStatusCode: tc,
|
|
4064
|
+
formToJSON: nc,
|
|
4065
|
+
getAdapter: rc,
|
|
4066
|
+
mergeConfig: oc
|
|
4067
|
+
} = N, sc = () => {
|
|
4068
|
+
const { getFromStorage: e } = ra();
|
|
4069
|
+
return {
|
|
4070
|
+
getTaskContext: (g, T) => {
|
|
4071
|
+
const S = e("loginInfo")?.token || "";
|
|
4072
|
+
return N.get(`${T}/${g}/context`, {
|
|
4073
|
+
headers: {
|
|
4074
|
+
Authorization: `Bearer ${S}`
|
|
4075
|
+
}
|
|
4076
|
+
});
|
|
4077
|
+
},
|
|
4078
|
+
getTaskStatus: (g, T) => {
|
|
4079
|
+
const S = e("loginInfo")?.token || "";
|
|
4080
|
+
return N.get(`${T}/${g}/status`, {
|
|
4081
|
+
headers: {
|
|
4082
|
+
Authorization: `Bearer ${S}`
|
|
4083
|
+
}
|
|
4084
|
+
});
|
|
4085
|
+
},
|
|
4086
|
+
getClusterTasks: (g) => {
|
|
4087
|
+
const T = e("loginInfo")?.token || "";
|
|
4088
|
+
return N.get(`${g}/cluster/tasks`, {
|
|
4089
|
+
headers: {
|
|
4090
|
+
Authorization: `Bearer ${T}`
|
|
4091
|
+
}
|
|
4092
|
+
});
|
|
4093
|
+
},
|
|
4094
|
+
createClusterTask: (g, T) => {
|
|
4095
|
+
const S = e("loginInfo")?.token || "";
|
|
4096
|
+
return N.post(`${T}/cluster/tasks`, g, {
|
|
4097
|
+
headers: {
|
|
4098
|
+
Authorization: `Bearer ${S}`
|
|
4099
|
+
}
|
|
4100
|
+
});
|
|
4101
|
+
},
|
|
4102
|
+
createClusterTaskForApp: (g) => {
|
|
4103
|
+
const T = e("loginInfo")?.token || "", S = window.parent?.core?.$root?.apiUrl;
|
|
4104
|
+
return N.post(`${S}/cluster/tasks`, g, {
|
|
4105
|
+
headers: {
|
|
4106
|
+
Authorization: `Bearer ${T}`
|
|
4107
|
+
}
|
|
4108
|
+
});
|
|
4109
|
+
},
|
|
4110
|
+
createModuleTaskForApp: (g, T) => {
|
|
4111
|
+
const S = e("loginInfo")?.token || "", k = window.parent?.core?.$root?.apiUrl;
|
|
4112
|
+
return N.post(`${k}/module/${g}/tasks`, T, {
|
|
4113
|
+
headers: {
|
|
4114
|
+
Authorization: `Bearer ${S}`
|
|
4115
|
+
}
|
|
4116
|
+
});
|
|
4117
|
+
},
|
|
4118
|
+
createNodeTask: (g, T, S) => {
|
|
4119
|
+
const k = e("loginInfo")?.token || "";
|
|
4120
|
+
return N.post(`${S}/node/${g}/tasks`, T, {
|
|
4121
|
+
headers: {
|
|
4122
|
+
Authorization: `Bearer ${k}`
|
|
4123
|
+
}
|
|
4124
|
+
});
|
|
4125
|
+
},
|
|
4126
|
+
createNodeTaskForApp: (g, T) => {
|
|
4127
|
+
const S = e("loginInfo")?.token || "", k = window.parent?.core?.$root?.apiUrl;
|
|
4128
|
+
return N.post(`${k}/node/${g}/tasks`, T, {
|
|
4129
|
+
headers: {
|
|
4130
|
+
Authorization: `Bearer ${S}`
|
|
4131
|
+
}
|
|
4132
|
+
});
|
|
4133
|
+
},
|
|
4134
|
+
getTaskTitle: (g) => g && g.context && g.context.extra && g.context.extra.title ? g.context.extra.title : "",
|
|
4135
|
+
getTaskKind: (g) => {
|
|
4136
|
+
switch (g.status) {
|
|
4137
|
+
case "aborted":
|
|
4138
|
+
case "validation-failed":
|
|
4139
|
+
return "error";
|
|
4140
|
+
case "completed":
|
|
4141
|
+
return "success";
|
|
4142
|
+
case "pending":
|
|
4143
|
+
return "warning";
|
|
4144
|
+
default:
|
|
4145
|
+
return "info";
|
|
4146
|
+
}
|
|
4147
|
+
},
|
|
4148
|
+
getTaskIcon: (g) => {
|
|
4149
|
+
switch (g.status) {
|
|
4150
|
+
case "aborted":
|
|
4151
|
+
case "validation-failed":
|
|
4152
|
+
return De;
|
|
4153
|
+
case "completed":
|
|
4154
|
+
return Oe;
|
|
4155
|
+
case "pending":
|
|
4156
|
+
return ee;
|
|
4157
|
+
default:
|
|
4158
|
+
return Ee;
|
|
4159
|
+
}
|
|
4160
|
+
},
|
|
4161
|
+
getTaskStatusDescription: (g, T, S = !0) => {
|
|
4162
|
+
const x = `${g.context?.queue ? g.context.queue.split("/tasks")[0] : "cluster"}/${g.context?.action}`, U = S ? "task" : "subtask";
|
|
4163
|
+
switch (g.status) {
|
|
4164
|
+
case "aborted":
|
|
4165
|
+
return T(`task.${U}_failed`, { task: x });
|
|
4166
|
+
case "validation-failed":
|
|
4167
|
+
return T(`task.${U}_failed_validation`, { task: x });
|
|
4168
|
+
case "completed":
|
|
4169
|
+
return T(`task.${U}_completed`, { task: x });
|
|
4170
|
+
case "pending":
|
|
4171
|
+
return T(`task.${U}_pending`, { task: x });
|
|
4172
|
+
case "running":
|
|
4173
|
+
return T(`task.${U}_running`, { task: x });
|
|
4174
|
+
default:
|
|
4175
|
+
return "";
|
|
4176
|
+
}
|
|
4177
|
+
},
|
|
4178
|
+
createErrorNotification: (g, T, S) => {
|
|
4179
|
+
console.error(g), S("createErrorNotification", g, T);
|
|
4180
|
+
},
|
|
4181
|
+
createErrorNotificationForApp: (g, T) => {
|
|
4182
|
+
console.error(g);
|
|
4183
|
+
const S = window.parent?.core;
|
|
4184
|
+
S?.$root && S.$root.$emit("createErrorNotification", g, T);
|
|
4185
|
+
},
|
|
4186
|
+
createNotificationForApp: (g) => {
|
|
4187
|
+
const T = window.parent?.core;
|
|
4188
|
+
T?.$root && T.$root.$emit("createNotificationForApp", g);
|
|
4189
|
+
},
|
|
4190
|
+
deleteNotificationForApp: (g) => {
|
|
4191
|
+
const T = window.parent?.core;
|
|
4192
|
+
T?.$root && T.$root.$emit("deleteNotificationForApp", g);
|
|
4193
|
+
}
|
|
4194
|
+
};
|
|
4195
|
+
}, ac = () => ({
|
|
4196
|
+
byteFormat: (a) => {
|
|
4197
|
+
if (a === null || a === "" || isNaN(Number(a)))
|
|
4198
|
+
return "-";
|
|
4199
|
+
const i = Number(a);
|
|
4200
|
+
switch (!0) {
|
|
4201
|
+
case (i >= 0 && i < 1024):
|
|
4202
|
+
return `${i} B`;
|
|
4203
|
+
case (i >= 1024 && i < Math.pow(1024, 2)):
|
|
4204
|
+
return `${Math.round(i / 1024 * 100) / 100} KiB`;
|
|
4205
|
+
case (i >= Math.pow(1024, 2) && i < Math.pow(1024, 3)):
|
|
4206
|
+
return `${Math.round(i / Math.pow(1024, 2) * 100) / 100} MiB`;
|
|
4207
|
+
case (i >= Math.pow(1024, 3) && i < Math.pow(1024, 4)):
|
|
4208
|
+
return `${Math.round(i / Math.pow(1024, 3) * 100) / 100} GiB`;
|
|
4209
|
+
default:
|
|
4210
|
+
return `${Math.round(i / Math.pow(1024, 4) * 100) / 100} TiB`;
|
|
4211
|
+
}
|
|
4212
|
+
},
|
|
4213
|
+
humanFormat: (a, i = !1) => {
|
|
4214
|
+
if (a === null || a === "" || isNaN(Number(a)))
|
|
4215
|
+
return "-";
|
|
4216
|
+
const l = Number(a);
|
|
4217
|
+
switch (!0) {
|
|
4218
|
+
case (l >= 0 && l < 1e3):
|
|
4219
|
+
return `${l}`;
|
|
4220
|
+
case (l >= 1e3 && l < Math.pow(1e3, 2)):
|
|
4221
|
+
return i ? `${Math.round(l / 1e3 * 10) / 10} K` : `${Math.round(l / 1e3)} K`;
|
|
4222
|
+
case (l >= Math.pow(1e3, 2) && l < Math.pow(1e3, 3)):
|
|
4223
|
+
return i ? `${Math.round(l / Math.pow(1e3, 2) * 10) / 10} M` : `${Math.round(l / Math.pow(1e3, 2))} M`;
|
|
4224
|
+
case (l >= Math.pow(1e3, 3) && l < Math.pow(1e3, 4)):
|
|
4225
|
+
return i ? `${Math.round(l / Math.pow(1e3, 3) * 10) / 10} G` : `${Math.round(l / Math.pow(1e3, 3))} G`;
|
|
4226
|
+
default:
|
|
4227
|
+
return i ? `${Math.round(l / Math.pow(1e3, 4) * 10) / 10} T` : `${Math.round(l / Math.pow(1e3, 4))} T`;
|
|
4228
|
+
}
|
|
4229
|
+
},
|
|
4230
|
+
mibFormat: (a) => {
|
|
4231
|
+
if (a === null || a === "" || isNaN(Number(a)))
|
|
4232
|
+
return "-";
|
|
4233
|
+
const i = Number(a);
|
|
4234
|
+
switch (!0) {
|
|
4235
|
+
case (i >= 0 && i < 1024):
|
|
4236
|
+
return `${i} MiB`;
|
|
4237
|
+
case (i >= 1024 && i < Math.pow(1024, 2)):
|
|
4238
|
+
return `${Math.round(i / 1024 * 100) / 100} GiB`;
|
|
4239
|
+
default:
|
|
4240
|
+
return `${Math.round(i / Math.pow(1024, 2) * 100) / 100} TiB`;
|
|
4241
|
+
}
|
|
4242
|
+
},
|
|
4243
|
+
gibFormat: (a) => {
|
|
4244
|
+
if (a === null || a === "" || isNaN(Number(a)))
|
|
4245
|
+
return "-";
|
|
4246
|
+
const i = Number(a);
|
|
4247
|
+
return !0 === (i >= 0 && i < 1024) ? `${i} GiB` : `${Math.round(i / 1024 * 100) / 100} TiB`;
|
|
4248
|
+
},
|
|
4249
|
+
secondsFormat: (a) => {
|
|
4250
|
+
if (a < 0)
|
|
4251
|
+
return "-";
|
|
4252
|
+
const i = Math.floor(a / 3600), l = Math.floor((a - i * 3600) / 60), u = (a - (i * 3600 + l * 60)) % 60;
|
|
4253
|
+
let f = "";
|
|
4254
|
+
return i > 0 && (f += `${i}h `), l > 0 && (f += `${l}m `), u > 0 && (f += `${u}s`), f ? f.trim() : "0s";
|
|
4255
|
+
},
|
|
4256
|
+
secondsLongFormat: (a) => {
|
|
4257
|
+
if (a < 0)
|
|
4258
|
+
return "-";
|
|
4259
|
+
const i = Math.floor(a / 3600), l = Math.floor((a - i * 3600) / 60), u = (a - (i * 3600 + l * 60)) % 60, f = i > 9 ? i : `0${i}`, h = l > 9 ? l : `0${l}`, w = u > 9 ? u : `0${u}`;
|
|
4260
|
+
return `${f}h ${h}m ${w}s`;
|
|
4261
|
+
}
|
|
4262
|
+
}), ic = {
|
|
4263
|
+
install(e) {
|
|
4264
|
+
}
|
|
4265
|
+
}, cc = "1.0.0";
|
|
4266
|
+
export {
|
|
4267
|
+
$i as DateTimeService,
|
|
4268
|
+
ac as FilterService,
|
|
4269
|
+
vi as IconService,
|
|
4270
|
+
Li as PageTitleService,
|
|
4271
|
+
Bi as QueryParamService,
|
|
4272
|
+
ra as StorageService,
|
|
4273
|
+
sc as TaskService,
|
|
4274
|
+
_i as UtilService,
|
|
4275
|
+
ic as default,
|
|
4276
|
+
cc as version
|
|
4277
|
+
};
|
|
4278
|
+
//# sourceMappingURL=ns8-ui-lib.es.js.map
|