@lotte-innovate/ui-component-test 0.0.111 → 0.0.113
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/lib/_virtual/icons.mjs +2 -0
- package/dist/lib/_virtual/icons.mjs.map +1 -0
- package/dist/lib/_virtual/index.mjs +2 -0
- package/dist/lib/_virtual/index10.mjs +2 -0
- package/dist/lib/_virtual/index10.mjs.map +1 -0
- package/dist/lib/_virtual/index11.mjs +2 -0
- package/dist/lib/_virtual/index11.mjs.map +1 -0
- package/dist/lib/_virtual/index12.mjs +2 -0
- package/dist/lib/_virtual/index12.mjs.map +1 -0
- package/dist/lib/_virtual/index13.mjs +2 -0
- package/dist/lib/_virtual/index13.mjs.map +1 -0
- package/dist/lib/_virtual/index14.mjs +2 -0
- package/dist/lib/_virtual/index14.mjs.map +1 -0
- package/dist/lib/_virtual/index15.mjs +2 -0
- package/dist/lib/_virtual/index15.mjs.map +1 -0
- package/dist/lib/_virtual/index16.mjs +2 -0
- package/dist/lib/_virtual/index16.mjs.map +1 -0
- package/dist/lib/_virtual/index2.mjs +2 -0
- package/dist/lib/_virtual/index2.mjs.map +1 -0
- package/dist/lib/_virtual/index3.mjs +2 -0
- package/dist/lib/_virtual/index3.mjs.map +1 -0
- package/dist/lib/_virtual/index4.mjs +2 -0
- package/dist/lib/_virtual/index4.mjs.map +1 -0
- package/dist/lib/_virtual/index5.mjs +2 -0
- package/dist/lib/_virtual/index5.mjs.map +1 -0
- package/dist/lib/_virtual/index6.mjs +2 -0
- package/dist/lib/_virtual/index6.mjs.map +1 -0
- package/dist/lib/_virtual/index7.mjs +2 -0
- package/dist/lib/_virtual/index7.mjs.map +1 -0
- package/dist/lib/_virtual/index8.mjs +2 -0
- package/dist/lib/_virtual/index8.mjs.map +1 -0
- package/dist/lib/_virtual/index9.mjs +2 -0
- package/dist/lib/_virtual/index9.mjs.map +1 -0
- package/dist/lib/_virtual/model.mjs +2 -0
- package/dist/lib/_virtual/model.mjs.map +1 -0
- package/dist/lib/_virtual/plugin.mjs +2 -0
- package/dist/lib/_virtual/plugin.mjs.map +1 -0
- package/dist/lib/_virtual/plugin2.mjs +2 -0
- package/dist/lib/_virtual/plugin2.mjs.map +1 -0
- package/dist/lib/_virtual/plugin3.mjs +2 -0
- package/dist/lib/_virtual/plugin3.mjs.map +1 -0
- package/dist/lib/_virtual/plugin4.mjs +2 -0
- package/dist/lib/_virtual/plugin4.mjs.map +1 -0
- package/dist/lib/_virtual/plugin5.mjs +2 -0
- package/dist/lib/_virtual/plugin5.mjs.map +1 -0
- package/dist/lib/_virtual/theme.mjs +2 -0
- package/dist/lib/_virtual/theme.mjs.map +1 -0
- package/dist/lib/components/Editor/index.d.ts +11 -13
- package/dist/lib/components/Editor/index.js +12 -14
- package/dist/lib/lib/color/alpha.mjs.map +1 -0
- package/dist/lib/lib/color/constants.mjs.map +1 -0
- package/dist/lib/lib/color/light.mjs.map +1 -0
- package/dist/lib/lib/components/AlertDialog/index.mjs.map +1 -0
- package/dist/lib/lib/components/BarChart/index.mjs.map +1 -0
- package/dist/lib/lib/components/Breadcrumb/BreadcrumbEllipsis.mjs.map +1 -0
- package/dist/lib/lib/components/Breadcrumb/BreadcrumbItem.mjs.map +1 -0
- package/dist/lib/lib/components/Breadcrumb/BreadcrumbLink.mjs.map +1 -0
- package/dist/lib/lib/components/Breadcrumb/BreadcrumbList.mjs.map +1 -0
- package/dist/lib/lib/components/Breadcrumb/BreadcrumbPage.mjs.map +1 -0
- package/dist/lib/lib/components/Breadcrumb/BreadcrumbSeparator.mjs.map +1 -0
- package/dist/lib/lib/components/Breadcrumb/index.mjs.map +1 -0
- package/dist/lib/lib/components/BubbleChart/index.mjs.map +1 -0
- package/dist/lib/lib/components/Callout/index.mjs.map +1 -0
- package/dist/lib/lib/components/CheckboxGroup/index.mjs.map +1 -0
- package/dist/lib/lib/components/ContextMenu/ContextMenuGroup.mjs.map +1 -0
- package/dist/lib/lib/components/ContextMenu/ContextMenuSeparator.mjs.map +1 -0
- package/dist/lib/lib/components/ContextMenu/ContextMenuTrigger.mjs.map +1 -0
- package/dist/lib/lib/components/ContextMenu/index.mjs.map +1 -0
- package/dist/lib/lib/components/DataList/index.mjs.map +1 -0
- package/dist/lib/lib/components/Dialog/DialogTrigger.mjs.map +1 -0
- package/dist/lib/lib/components/Dialog/index.mjs.map +1 -0
- package/dist/lib/lib/components/DoughnutChart/index.mjs.map +1 -0
- package/dist/lib/lib/components/DropdownMenu/DropdonMenuRadioGroup.mjs.map +1 -0
- package/dist/lib/lib/components/DropdownMenu/DropdownMenuSeparator.mjs.map +1 -0
- package/dist/lib/lib/components/DropdownMenu/DropdownMenuSub.mjs.map +1 -0
- package/dist/lib/lib/components/DropdownMenu/index.mjs.map +1 -0
- package/dist/lib/lib/components/Editor/index.mjs +3 -0
- package/dist/lib/lib/components/Gnb/GnbLogo.mjs.map +1 -0
- package/dist/lib/lib/components/Gnb/index.mjs.map +1 -0
- package/dist/lib/lib/components/Grid/Pagination.mjs.map +1 -0
- package/dist/lib/lib/components/HoverCard/HoverCardTrigger.mjs.map +1 -0
- package/dist/lib/lib/components/HoverCard/index.mjs.map +1 -0
- package/dist/lib/lib/components/LineChart/index.mjs.map +1 -0
- package/dist/lib/lib/components/Menubar/MenubarMenu.mjs.map +1 -0
- package/dist/lib/lib/components/Menubar/MenubarSeparator.mjs.map +1 -0
- package/dist/lib/lib/components/Menubar/MenubarSub.mjs.map +1 -0
- package/dist/lib/lib/components/Menubar/index.mjs.map +1 -0
- package/dist/lib/lib/components/NavigationMenu/NavigationMenuIndicator.mjs.map +1 -0
- package/dist/lib/lib/components/NavigationMenu/NavigationMenuItem.mjs.map +1 -0
- package/dist/lib/lib/components/NavigationMenu/index.mjs.map +1 -0
- package/dist/lib/lib/components/PieChart/index.mjs.map +1 -0
- package/dist/lib/lib/components/Popover/PopoverTrigger.mjs.map +1 -0
- package/dist/lib/lib/components/Popover/index.mjs.map +1 -0
- package/dist/lib/lib/components/RadarChart/index.mjs.map +1 -0
- package/dist/lib/lib/components/RadioCards/index.mjs.map +1 -0
- package/dist/lib/lib/components/RadioGroup/index.mjs.map +1 -0
- package/dist/lib/lib/components/SegmentedControl/SegmentedControlItem.mjs.map +1 -0
- package/dist/lib/lib/components/SegmentedControl/index.mjs.map +1 -0
- package/dist/lib/lib/components/Toast/index.mjs.map +1 -0
- package/dist/lib/lib/components/ToggleGroup/index.mjs.map +1 -0
- package/dist/lib/lib/constants.mjs.map +1 -0
- package/dist/lib/lib/index.mjs.map +1 -0
- package/dist/lib/lib/utils/utils.mjs.map +1 -0
- package/dist/lib/public/tinymce/icons/default/icons.mjs +2 -0
- package/dist/lib/public/tinymce/icons/default/icons.mjs.map +1 -0
- package/dist/lib/public/tinymce/icons/default/index.mjs +2 -0
- package/dist/lib/public/tinymce/icons/default/index.mjs.map +1 -0
- package/dist/lib/public/tinymce/models/dom/index.mjs +2 -0
- package/dist/lib/public/tinymce/models/dom/index.mjs.map +1 -0
- package/dist/lib/public/tinymce/models/dom/model.mjs +2 -0
- package/dist/lib/public/tinymce/models/dom/model.mjs.map +1 -0
- package/dist/lib/public/tinymce/plugins/advlist/index.mjs +2 -0
- package/dist/lib/public/tinymce/plugins/advlist/index.mjs.map +1 -0
- package/dist/lib/public/tinymce/plugins/advlist/plugin.mjs +2 -0
- package/dist/lib/public/tinymce/plugins/advlist/plugin.mjs.map +1 -0
- package/dist/lib/public/tinymce/plugins/code/index.mjs +2 -0
- package/dist/lib/public/tinymce/plugins/code/index.mjs.map +1 -0
- package/dist/lib/public/tinymce/plugins/code/plugin.mjs +2 -0
- package/dist/lib/public/tinymce/plugins/code/plugin.mjs.map +1 -0
- package/dist/lib/public/tinymce/plugins/link/index.mjs +2 -0
- package/dist/lib/public/tinymce/plugins/link/index.mjs.map +1 -0
- package/dist/lib/public/tinymce/plugins/link/plugin.mjs +2 -0
- package/dist/lib/public/tinymce/plugins/link/plugin.mjs.map +1 -0
- package/dist/lib/public/tinymce/plugins/lists/index.mjs +2 -0
- package/dist/lib/public/tinymce/plugins/lists/index.mjs.map +1 -0
- package/dist/lib/public/tinymce/plugins/lists/plugin.mjs +2 -0
- package/dist/lib/public/tinymce/plugins/lists/plugin.mjs.map +1 -0
- package/dist/lib/public/tinymce/plugins/table/index.mjs +2 -0
- package/dist/lib/public/tinymce/plugins/table/index.mjs.map +1 -0
- package/dist/lib/public/tinymce/plugins/table/plugin.mjs +2 -0
- package/dist/lib/public/tinymce/plugins/table/plugin.mjs.map +1 -0
- package/dist/lib/public/tinymce/skins/content/default/content.mjs +3 -0
- package/dist/lib/public/tinymce/skins/content/default/content.mjs.map +1 -0
- package/dist/lib/public/tinymce/skins/ui/oxide/content.mjs +3 -0
- package/dist/lib/public/tinymce/skins/ui/oxide/content.mjs.map +1 -0
- package/dist/lib/public/tinymce/skins/ui/oxide/skin.mjs +3 -0
- package/dist/lib/public/tinymce/skins/ui/oxide/skin.mjs.map +1 -0
- package/dist/lib/public/tinymce/themes/silver/index.mjs +2 -0
- package/dist/lib/public/tinymce/themes/silver/index.mjs.map +1 -0
- package/dist/lib/public/tinymce/themes/silver/theme.mjs +2 -0
- package/dist/lib/public/tinymce/themes/silver/theme.mjs.map +1 -0
- package/dist/lib/tsconfig.tsbuildinfo +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/lib/_virtual/_commonjsHelpers.mjs +0 -2
- package/dist/lib/_virtual/_commonjsHelpers.mjs.map +0 -1
- package/dist/lib/_virtual/tinymce.mjs +0 -2
- package/dist/lib/_virtual/tinymce.mjs.map +0 -1
- package/dist/lib/_virtual/tinymce2.mjs +0 -2
- package/dist/lib/_virtual/tinymce2.mjs.map +0 -1
- package/dist/lib/dist/lib/color/alpha.mjs.map +0 -1
- package/dist/lib/dist/lib/color/constants.mjs.map +0 -1
- package/dist/lib/dist/lib/color/light.mjs.map +0 -1
- package/dist/lib/dist/lib/components/AlertDialog/index.mjs.map +0 -1
- package/dist/lib/dist/lib/components/BarChart/index.mjs.map +0 -1
- package/dist/lib/dist/lib/components/Breadcrumb/BreadcrumbEllipsis.mjs.map +0 -1
- package/dist/lib/dist/lib/components/Breadcrumb/BreadcrumbItem.mjs.map +0 -1
- package/dist/lib/dist/lib/components/Breadcrumb/BreadcrumbLink.mjs.map +0 -1
- package/dist/lib/dist/lib/components/Breadcrumb/BreadcrumbList.mjs.map +0 -1
- package/dist/lib/dist/lib/components/Breadcrumb/BreadcrumbPage.mjs.map +0 -1
- package/dist/lib/dist/lib/components/Breadcrumb/BreadcrumbSeparator.mjs.map +0 -1
- package/dist/lib/dist/lib/components/Breadcrumb/index.mjs.map +0 -1
- package/dist/lib/dist/lib/components/BubbleChart/index.mjs.map +0 -1
- package/dist/lib/dist/lib/components/Callout/index.mjs.map +0 -1
- package/dist/lib/dist/lib/components/CheckboxGroup/index.mjs.map +0 -1
- package/dist/lib/dist/lib/components/ContextMenu/ContextMenuGroup.mjs.map +0 -1
- package/dist/lib/dist/lib/components/ContextMenu/ContextMenuSeparator.mjs.map +0 -1
- package/dist/lib/dist/lib/components/ContextMenu/ContextMenuTrigger.mjs.map +0 -1
- package/dist/lib/dist/lib/components/ContextMenu/index.mjs.map +0 -1
- package/dist/lib/dist/lib/components/DataList/index.mjs.map +0 -1
- package/dist/lib/dist/lib/components/Dialog/DialogTrigger.mjs.map +0 -1
- package/dist/lib/dist/lib/components/Dialog/index.mjs.map +0 -1
- package/dist/lib/dist/lib/components/DoughnutChart/index.mjs.map +0 -1
- package/dist/lib/dist/lib/components/DropdownMenu/DropdonMenuRadioGroup.mjs.map +0 -1
- package/dist/lib/dist/lib/components/DropdownMenu/DropdownMenuSeparator.mjs.map +0 -1
- package/dist/lib/dist/lib/components/DropdownMenu/DropdownMenuSub.mjs.map +0 -1
- package/dist/lib/dist/lib/components/DropdownMenu/index.mjs.map +0 -1
- package/dist/lib/dist/lib/components/Editor/index.mjs +0 -3
- package/dist/lib/dist/lib/components/Gnb/GnbLogo.mjs.map +0 -1
- package/dist/lib/dist/lib/components/Gnb/index.mjs.map +0 -1
- package/dist/lib/dist/lib/components/Grid/Pagination.mjs.map +0 -1
- package/dist/lib/dist/lib/components/HoverCard/HoverCardTrigger.mjs.map +0 -1
- package/dist/lib/dist/lib/components/HoverCard/index.mjs.map +0 -1
- package/dist/lib/dist/lib/components/LineChart/index.mjs.map +0 -1
- package/dist/lib/dist/lib/components/Menubar/MenubarMenu.mjs.map +0 -1
- package/dist/lib/dist/lib/components/Menubar/MenubarSeparator.mjs.map +0 -1
- package/dist/lib/dist/lib/components/Menubar/MenubarSub.mjs.map +0 -1
- package/dist/lib/dist/lib/components/Menubar/index.mjs.map +0 -1
- package/dist/lib/dist/lib/components/NavigationMenu/NavigationMenuIndicator.mjs.map +0 -1
- package/dist/lib/dist/lib/components/NavigationMenu/NavigationMenuItem.mjs.map +0 -1
- package/dist/lib/dist/lib/components/NavigationMenu/index.mjs.map +0 -1
- package/dist/lib/dist/lib/components/PieChart/index.mjs.map +0 -1
- package/dist/lib/dist/lib/components/Popover/PopoverTrigger.mjs.map +0 -1
- package/dist/lib/dist/lib/components/Popover/index.mjs.map +0 -1
- package/dist/lib/dist/lib/components/RadarChart/index.mjs.map +0 -1
- package/dist/lib/dist/lib/components/RadioCards/index.mjs.map +0 -1
- package/dist/lib/dist/lib/components/RadioGroup/index.mjs.map +0 -1
- package/dist/lib/dist/lib/components/SegmentedControl/SegmentedControlItem.mjs.map +0 -1
- package/dist/lib/dist/lib/components/SegmentedControl/index.mjs.map +0 -1
- package/dist/lib/dist/lib/components/Toast/index.mjs.map +0 -1
- package/dist/lib/dist/lib/components/ToggleGroup/index.mjs.map +0 -1
- package/dist/lib/dist/lib/constants.mjs.map +0 -1
- package/dist/lib/dist/lib/utils/utils.mjs.map +0 -1
- package/dist/lib/public/tinymce/tinymce.mjs +0 -2
- package/dist/lib/public/tinymce/tinymce.mjs.map +0 -1
- /package/dist/lib/{dist/lib → _virtual}/index.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/Typography/Header/index.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/Typography/Header/index.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/Typography/Text/index.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/Typography/Text/index.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/color/alpha.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/color/constants.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/color/light.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Accordion/index.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Accordion/index.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/AlertDialog/AlertDialogAction.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/AlertDialog/AlertDialogAction.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/AlertDialog/AlertDialogCancel.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/AlertDialog/AlertDialogCancel.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/AlertDialog/AlertDialogContent.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/AlertDialog/AlertDialogContent.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/AlertDialog/AlertDialogDescription.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/AlertDialog/AlertDialogDescription.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/AlertDialog/AlertDialogRoot.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/AlertDialog/AlertDialogRoot.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/AlertDialog/AlertDialogTitle.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/AlertDialog/AlertDialogTitle.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/AlertDialog/AlertDialogTrigger.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/AlertDialog/AlertDialogTrigger.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/AlertDialog/index.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/AspectRatio/index.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/AspectRatio/index.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Avatar/index.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Avatar/index.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Badge/index.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Badge/index.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/BarChart/index.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Breadcrumb/BreadcrumbEllipsis.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Breadcrumb/BreadcrumbItem.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Breadcrumb/BreadcrumbLink.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Breadcrumb/BreadcrumbList.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Breadcrumb/BreadcrumbPage.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Breadcrumb/BreadcrumbRoot.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Breadcrumb/BreadcrumbRoot.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Breadcrumb/BreadcrumbSeparator.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Breadcrumb/index.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/BubbleChart/index.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Button/index.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Button/index.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Callout/CalloutIcon.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Callout/CalloutIcon.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Callout/CalloutRoot.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Callout/CalloutRoot.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Callout/CalloutText.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Callout/CalloutText.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Callout/index.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Card/index.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Card/index.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Checkbox/index.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Checkbox/index.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/CheckboxCard/index.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/CheckboxCard/index.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/CheckboxGroup/CheckboxGroupItem.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/CheckboxGroup/CheckboxGroupItem.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/CheckboxGroup/CheckboxGroupRoot.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/CheckboxGroup/CheckboxGroupRoot.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/CheckboxGroup/index.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Collapsible/index.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Collapsible/index.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/ContextMenu/ContextMenuCheckboxItem.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/ContextMenu/ContextMenuCheckboxItem.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/ContextMenu/ContextMenuContent.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/ContextMenu/ContextMenuContent.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/ContextMenu/ContextMenuGroup.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/ContextMenu/ContextMenuItem.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/ContextMenu/ContextMenuItem.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/ContextMenu/ContextMenuItemIndicator.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/ContextMenu/ContextMenuItemIndicator.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/ContextMenu/ContextMenuLabel.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/ContextMenu/ContextMenuLabel.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/ContextMenu/ContextMenuRadioGroup.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/ContextMenu/ContextMenuRadioGroup.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/ContextMenu/ContextMenuRadioItem.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/ContextMenu/ContextMenuRadioItem.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/ContextMenu/ContextMenuRoot.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/ContextMenu/ContextMenuRoot.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/ContextMenu/ContextMenuSeparator.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/ContextMenu/ContextMenuSubContent.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/ContextMenu/ContextMenuSubContent.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/ContextMenu/ContextMenuSubTrigger.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/ContextMenu/ContextMenuSubTrigger.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/ContextMenu/ContextMenuTrigger.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/ContextMenu/index.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/DataList/DataListItem.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/DataList/DataListItem.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/DataList/DataListLabel.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/DataList/DataListLabel.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/DataList/DataListRoot.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/DataList/DataListRoot.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/DataList/DataListValue.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/DataList/DataListValue.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/DataList/index.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Dialog/DialogAction.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Dialog/DialogAction.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Dialog/DialogCancel.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Dialog/DialogCancel.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Dialog/DialogContent.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Dialog/DialogContent.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Dialog/DialogDescription.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Dialog/DialogDescription.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Dialog/DialogRoot.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Dialog/DialogRoot.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Dialog/DialogSlot.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Dialog/DialogSlot.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Dialog/DialogTitle.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Dialog/DialogTitle.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Dialog/DialogTrigger.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Dialog/index.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/DoughnutChart/index.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/DropdownMenu/DropdonMenuRadioGroup.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/DropdownMenu/DropdonMenuSubContent.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/DropdownMenu/DropdonMenuSubContent.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/DropdownMenu/DropdownMenuCheckboxItem.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/DropdownMenu/DropdownMenuCheckboxItem.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/DropdownMenu/DropdownMenuContent.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/DropdownMenu/DropdownMenuContent.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/DropdownMenu/DropdownMenuItem.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/DropdownMenu/DropdownMenuItem.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/DropdownMenu/DropdownMenuItemIndicator.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/DropdownMenu/DropdownMenuItemIndicator.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/DropdownMenu/DropdownMenuLable.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/DropdownMenu/DropdownMenuLable.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/DropdownMenu/DropdownMenuRadioItem.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/DropdownMenu/DropdownMenuRadioItem.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/DropdownMenu/DropdownMenuRoot.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/DropdownMenu/DropdownMenuRoot.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/DropdownMenu/DropdownMenuSeparator.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/DropdownMenu/DropdownMenuSub.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/DropdownMenu/DropdownMenuSubTrigger.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/DropdownMenu/DropdownMenuSubTrigger.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/DropdownMenu/DropdownMenuTrigger.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/DropdownMenu/DropdownMenuTrigger.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/DropdownMenu/index.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Editor/index.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Footer/index.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Footer/index.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Gnb/GnbInfo.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Gnb/GnbInfo.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Gnb/GnbLogo.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Gnb/GnbMenu.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Gnb/GnbMenu.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Gnb/GnbRoot.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Gnb/GnbRoot.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Gnb/index.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Grid/Pagination.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Grid/index.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Grid/index.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Grid/useGrid.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Grid/useGrid.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/HoverCard/HoverCardContent.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/HoverCard/HoverCardContent.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/HoverCard/HoverCardRoot.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/HoverCard/HoverCardRoot.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/HoverCard/HoverCardTrigger.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/HoverCard/index.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/IconButton/index.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/IconButton/index.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Inset/index.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Inset/index.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Label/index.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Label/index.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/LineChart/index.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Menubar/MenubarCheckboxItem.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Menubar/MenubarCheckboxItem.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Menubar/MenubarContent.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Menubar/MenubarContent.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Menubar/MenubarItem.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Menubar/MenubarItem.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Menubar/MenubarItemIndicator.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Menubar/MenubarItemIndicator.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Menubar/MenubarMenu.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Menubar/MenubarRadioGroup.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Menubar/MenubarRadioGroup.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Menubar/MenubarRadioItem.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Menubar/MenubarRadioItem.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Menubar/MenubarRoot.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Menubar/MenubarRoot.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Menubar/MenubarSeparator.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Menubar/MenubarSub.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Menubar/MenubarSubContent.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Menubar/MenubarSubContent.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Menubar/MenubarSubTrigger.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Menubar/MenubarSubTrigger.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Menubar/MenubarTrigger.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Menubar/MenubarTrigger.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Menubar/index.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/NavigationMenu/NavigationMenuContent.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/NavigationMenu/NavigationMenuContent.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/NavigationMenu/NavigationMenuIndicator.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/NavigationMenu/NavigationMenuItem.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/NavigationMenu/NavigationMenuLink.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/NavigationMenu/NavigationMenuLink.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/NavigationMenu/NavigationMenuList.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/NavigationMenu/NavigationMenuList.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/NavigationMenu/NavigationMenuRoot.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/NavigationMenu/NavigationMenuRoot.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/NavigationMenu/NavigationMenuTrigger.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/NavigationMenu/NavigationMenuTrigger.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/NavigationMenu/NavigationMenuViewport.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/NavigationMenu/NavigationMenuViewport.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/NavigationMenu/index.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/PieChart/index.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Popover/PopoverClose.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Popover/PopoverClose.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Popover/PopoverContent.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Popover/PopoverContent.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Popover/PopoverRoot.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Popover/PopoverRoot.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Popover/PopoverTrigger.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Popover/index.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Progress/index.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Progress/index.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/RadarChart/index.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Radio/index.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Radio/index.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/RadioCards/RadioCardsItem.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/RadioCards/RadioCardsItem.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/RadioCards/RadioCardsRoot.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/RadioCards/RadioCardsRoot.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/RadioCards/index.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/RadioGroup/RadioGroupItem.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/RadioGroup/RadioGroupItem.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/RadioGroup/RadioGroupRoot.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/RadioGroup/RadioGroupRoot.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/RadioGroup/index.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/ScrollArea/index.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/ScrollArea/index.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/SegmentedControl/SegmentedControlItem.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/SegmentedControl/SegmentedControlRoot.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/SegmentedControl/SegmentedControlRoot.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/SegmentedControl/index.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Select/index.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Select/index.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Separator/index.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Separator/index.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Skeleton/index.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Skeleton/index.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Slider/index.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Slider/index.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Spinner/index.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Spinner/index.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/TabNav/index.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/TabNav/index.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Table/index.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Table/index.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Tabs/index.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Tabs/index.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/TextArea/index.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/TextArea/index.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/TextField/index.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/TextField/index.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Toast/ToastActionButton.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Toast/ToastActionButton.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Toast/ToastDescription.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Toast/ToastDescription.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Toast/ToastRoot.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Toast/ToastRoot.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Toast/ToastTitle.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Toast/ToastTitle.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Toast/index.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Toggle/ToggleWithText.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Toggle/ToggleWithText.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Toggle/index.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Toggle/index.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/ToggleGroup/ToggleGroupItem.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/ToggleGroup/ToggleGroupItem.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/ToggleGroup/ToggleGroupRoot.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/ToggleGroup/ToggleGroupRoot.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/ToggleGroup/index.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/ToggleSwitch/index.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/ToggleSwitch/index.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Tooltip/index.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/components/Tooltip/index.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/constants.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/index.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/theme/ThemeProvider.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/theme/ThemeProvider.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/utils/useDarkMode.mjs +0 -0
- /package/dist/lib/{dist/lib → lib}/utils/useDarkMode.mjs.map +0 -0
- /package/dist/lib/{dist/lib → lib}/utils/utils.mjs +0 -0
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"plugin.mjs","sources":["../../../../../public/tinymce/plugins/lists/plugin.js"],"sourcesContent":["\"use strict\";\n/**\n * TinyMCE version 6.8.5 (TBD)\n */\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\n(function () {\n 'use strict';\n var global$7 = tinymce.util.Tools.resolve('tinymce.PluginManager');\n var hasProto = function (v, constructor, predicate) {\n var _a;\n if (predicate(v, constructor.prototype)) {\n return true;\n }\n else {\n return ((_a = v.constructor) === null || _a === void 0 ? void 0 : _a.name) === constructor.name;\n }\n };\n var typeOf = function (x) {\n var t = typeof x;\n if (x === null) {\n return 'null';\n }\n else if (t === 'object' && Array.isArray(x)) {\n return 'array';\n }\n else if (t === 'object' && hasProto(x, String, function (o, proto) { return proto.isPrototypeOf(o); })) {\n return 'string';\n }\n else {\n return t;\n }\n };\n var isType$1 = function (type) { return function (value) { return typeOf(value) === type; }; };\n var isSimpleType = function (type) { return function (value) { return typeof value === type; }; };\n var isString = isType$1('string');\n var isObject = isType$1('object');\n var isArray = isType$1('array');\n var isBoolean = isSimpleType('boolean');\n var isNullable = function (a) { return a === null || a === undefined; };\n var isNonNullable = function (a) { return !isNullable(a); };\n var isFunction = isSimpleType('function');\n var isNumber = isSimpleType('number');\n var noop = function () {\n };\n var compose1 = function (fbc, fab) { return function (a) { return fbc(fab(a)); }; };\n var constant = function (value) {\n return function () {\n return value;\n };\n };\n var tripleEquals = function (a, b) {\n return a === b;\n };\n function curry(fn) {\n var initialArgs = [];\n for (var _i = 1; _i < arguments.length; _i++) {\n initialArgs[_i - 1] = arguments[_i];\n }\n return function () {\n var restArgs = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n restArgs[_i] = arguments[_i];\n }\n var all = initialArgs.concat(restArgs);\n return fn.apply(null, all);\n };\n }\n var not = function (f) { return function (t) { return !f(t); }; };\n var never = constant(false);\n var Optional = /** @class */ (function () {\n function Optional(tag, value) {\n this.tag = tag;\n this.value = value;\n }\n Optional.some = function (value) {\n return new Optional(true, value);\n };\n Optional.none = function () {\n return Optional.singletonNone;\n };\n Optional.prototype.fold = function (onNone, onSome) {\n if (this.tag) {\n return onSome(this.value);\n }\n else {\n return onNone();\n }\n };\n Optional.prototype.isSome = function () {\n return this.tag;\n };\n Optional.prototype.isNone = function () {\n return !this.tag;\n };\n Optional.prototype.map = function (mapper) {\n if (this.tag) {\n return Optional.some(mapper(this.value));\n }\n else {\n return Optional.none();\n }\n };\n Optional.prototype.bind = function (binder) {\n if (this.tag) {\n return binder(this.value);\n }\n else {\n return Optional.none();\n }\n };\n Optional.prototype.exists = function (predicate) {\n return this.tag && predicate(this.value);\n };\n Optional.prototype.forall = function (predicate) {\n return !this.tag || predicate(this.value);\n };\n Optional.prototype.filter = function (predicate) {\n if (!this.tag || predicate(this.value)) {\n return this;\n }\n else {\n return Optional.none();\n }\n };\n Optional.prototype.getOr = function (replacement) {\n return this.tag ? this.value : replacement;\n };\n Optional.prototype.or = function (replacement) {\n return this.tag ? this : replacement;\n };\n Optional.prototype.getOrThunk = function (thunk) {\n return this.tag ? this.value : thunk();\n };\n Optional.prototype.orThunk = function (thunk) {\n return this.tag ? this : thunk();\n };\n Optional.prototype.getOrDie = function (message) {\n if (!this.tag) {\n throw new Error(message !== null && message !== void 0 ? message : 'Called getOrDie on None');\n }\n else {\n return this.value;\n }\n };\n Optional.from = function (value) {\n return isNonNullable(value) ? Optional.some(value) : Optional.none();\n };\n Optional.prototype.getOrNull = function () {\n return this.tag ? this.value : null;\n };\n Optional.prototype.getOrUndefined = function () {\n return this.value;\n };\n Optional.prototype.each = function (worker) {\n if (this.tag) {\n worker(this.value);\n }\n };\n Optional.prototype.toArray = function () {\n return this.tag ? [this.value] : [];\n };\n Optional.prototype.toString = function () {\n return this.tag ? \"some(\".concat(this.value, \")\") : 'none()';\n };\n return Optional;\n }());\n Optional.singletonNone = new Optional(false);\n var nativeSlice = Array.prototype.slice;\n var nativeIndexOf = Array.prototype.indexOf;\n var nativePush = Array.prototype.push;\n var rawIndexOf = function (ts, t) { return nativeIndexOf.call(ts, t); };\n var contains$1 = function (xs, x) { return rawIndexOf(xs, x) > -1; };\n var exists = function (xs, pred) {\n for (var i = 0, len = xs.length; i < len; i++) {\n var x = xs[i];\n if (pred(x, i)) {\n return true;\n }\n }\n return false;\n };\n var map = function (xs, f) {\n var len = xs.length;\n var r = new Array(len);\n for (var i = 0; i < len; i++) {\n var x = xs[i];\n r[i] = f(x, i);\n }\n return r;\n };\n var each$1 = function (xs, f) {\n for (var i = 0, len = xs.length; i < len; i++) {\n var x = xs[i];\n f(x, i);\n }\n };\n var filter$1 = function (xs, pred) {\n var r = [];\n for (var i = 0, len = xs.length; i < len; i++) {\n var x = xs[i];\n if (pred(x, i)) {\n r.push(x);\n }\n }\n return r;\n };\n var groupBy = function (xs, f) {\n if (xs.length === 0) {\n return [];\n }\n else {\n var wasType = f(xs[0]);\n var r = [];\n var group = [];\n for (var i = 0, len = xs.length; i < len; i++) {\n var x = xs[i];\n var type_1 = f(x);\n if (type_1 !== wasType) {\n r.push(group);\n group = [];\n }\n wasType = type_1;\n group.push(x);\n }\n if (group.length !== 0) {\n r.push(group);\n }\n return r;\n }\n };\n var foldl = function (xs, f, acc) {\n each$1(xs, function (x, i) {\n acc = f(acc, x, i);\n });\n return acc;\n };\n var findUntil = function (xs, pred, until) {\n for (var i = 0, len = xs.length; i < len; i++) {\n var x = xs[i];\n if (pred(x, i)) {\n return Optional.some(x);\n }\n else if (until(x, i)) {\n break;\n }\n }\n return Optional.none();\n };\n var find = function (xs, pred) {\n return findUntil(xs, pred, never);\n };\n var flatten = function (xs) {\n var r = [];\n for (var i = 0, len = xs.length; i < len; ++i) {\n if (!isArray(xs[i])) {\n throw new Error('Arr.flatten item ' + i + ' was not an array, input: ' + xs);\n }\n nativePush.apply(r, xs[i]);\n }\n return r;\n };\n var bind = function (xs, f) { return flatten(map(xs, f)); };\n var reverse = function (xs) {\n var r = nativeSlice.call(xs, 0);\n r.reverse();\n return r;\n };\n var get$1 = function (xs, i) { return i >= 0 && i < xs.length ? Optional.some(xs[i]) : Optional.none(); };\n var head = function (xs) { return get$1(xs, 0); };\n var last = function (xs) { return get$1(xs, xs.length - 1); };\n var unique = function (xs, comparator) {\n var r = [];\n var isDuplicated = isFunction(comparator) ? function (x) { return exists(r, function (i) { return comparator(i, x); }); } : function (x) { return contains$1(r, x); };\n for (var i = 0, len = xs.length; i < len; i++) {\n var x = xs[i];\n if (!isDuplicated(x)) {\n r.push(x);\n }\n }\n return r;\n };\n var is$2 = function (lhs, rhs, comparator) {\n if (comparator === void 0) { comparator = tripleEquals; }\n return lhs.exists(function (left) { return comparator(left, rhs); });\n };\n var equals = function (lhs, rhs, comparator) {\n if (comparator === void 0) { comparator = tripleEquals; }\n return lift2(lhs, rhs, comparator).getOr(lhs.isNone() && rhs.isNone());\n };\n var lift2 = function (oa, ob, f) { return oa.isSome() && ob.isSome() ? Optional.some(f(oa.getOrDie(), ob.getOrDie())) : Optional.none(); };\n var COMMENT = 8;\n var DOCUMENT = 9;\n var DOCUMENT_FRAGMENT = 11;\n var ELEMENT = 1;\n var TEXT = 3;\n var fromHtml = function (html, scope) {\n var doc = scope || document;\n var div = doc.createElement('div');\n div.innerHTML = html;\n if (!div.hasChildNodes() || div.childNodes.length > 1) {\n var message = 'HTML does not have a single root node';\n console.error(message, html);\n throw new Error(message);\n }\n return fromDom$1(div.childNodes[0]);\n };\n var fromTag = function (tag, scope) {\n var doc = scope || document;\n var node = doc.createElement(tag);\n return fromDom$1(node);\n };\n var fromText = function (text, scope) {\n var doc = scope || document;\n var node = doc.createTextNode(text);\n return fromDom$1(node);\n };\n var fromDom$1 = function (node) {\n if (node === null || node === undefined) {\n throw new Error('Node cannot be null or undefined');\n }\n return { dom: node };\n };\n var fromPoint = function (docElm, x, y) { return Optional.from(docElm.dom.elementFromPoint(x, y)).map(fromDom$1); };\n var SugarElement = {\n fromHtml: fromHtml,\n fromTag: fromTag,\n fromText: fromText,\n fromDom: fromDom$1,\n fromPoint: fromPoint\n };\n var is$1 = function (element, selector) {\n var dom = element.dom;\n if (dom.nodeType !== ELEMENT) {\n return false;\n }\n else {\n var elem = dom;\n if (elem.matches !== undefined) {\n return elem.matches(selector);\n }\n else if (elem.msMatchesSelector !== undefined) {\n return elem.msMatchesSelector(selector);\n }\n else if (elem.webkitMatchesSelector !== undefined) {\n return elem.webkitMatchesSelector(selector);\n }\n else if (elem.mozMatchesSelector !== undefined) {\n return elem.mozMatchesSelector(selector);\n }\n else {\n throw new Error('Browser lacks native selectors');\n }\n }\n };\n var eq = function (e1, e2) { return e1.dom === e2.dom; };\n var contains = function (e1, e2) {\n var d1 = e1.dom;\n var d2 = e2.dom;\n return d1 === d2 ? false : d1.contains(d2);\n };\n var is = is$1;\n var Global = typeof window !== 'undefined' ? window : Function('return this;')();\n var path = function (parts, scope) {\n var o = scope !== undefined && scope !== null ? scope : Global;\n for (var i = 0; i < parts.length && o !== undefined && o !== null; ++i) {\n o = o[parts[i]];\n }\n return o;\n };\n var resolve = function (p, scope) {\n var parts = p.split('.');\n return path(parts, scope);\n };\n var unsafe = function (name, scope) {\n return resolve(name, scope);\n };\n var getOrDie = function (name, scope) {\n var actual = unsafe(name, scope);\n if (actual === undefined || actual === null) {\n throw new Error(name + ' not available on this browser');\n }\n return actual;\n };\n var getPrototypeOf = Object.getPrototypeOf;\n var sandHTMLElement = function (scope) {\n return getOrDie('HTMLElement', scope);\n };\n var isPrototypeOf = function (x) {\n var scope = resolve('ownerDocument.defaultView', x);\n return isObject(x) && (sandHTMLElement(scope).prototype.isPrototypeOf(x) || /^HTML\\w*Element$/.test(getPrototypeOf(x).constructor.name));\n };\n var name = function (element) {\n var r = element.dom.nodeName;\n return r.toLowerCase();\n };\n var type = function (element) { return element.dom.nodeType; };\n var isType = function (t) { return function (element) { return type(element) === t; }; };\n var isComment = function (element) { return type(element) === COMMENT || name(element) === '#comment'; };\n var isHTMLElement = function (element) { return isElement$1(element) && isPrototypeOf(element.dom); };\n var isElement$1 = isType(ELEMENT);\n var isText = isType(TEXT);\n var isDocument = isType(DOCUMENT);\n var isDocumentFragment = isType(DOCUMENT_FRAGMENT);\n var isTag = function (tag) { return function (e) { return isElement$1(e) && name(e) === tag; }; };\n var owner = function (element) { return SugarElement.fromDom(element.dom.ownerDocument); };\n var documentOrOwner = function (dos) { return isDocument(dos) ? dos : owner(dos); };\n var parent = function (element) { return Optional.from(element.dom.parentNode).map(SugarElement.fromDom); };\n var parentElement = function (element) { return Optional.from(element.dom.parentElement).map(SugarElement.fromDom); };\n var nextSibling = function (element) { return Optional.from(element.dom.nextSibling).map(SugarElement.fromDom); };\n var children = function (element) { return map(element.dom.childNodes, SugarElement.fromDom); };\n var child = function (element, index) {\n var cs = element.dom.childNodes;\n return Optional.from(cs[index]).map(SugarElement.fromDom);\n };\n var firstChild = function (element) { return child(element, 0); };\n var lastChild = function (element) { return child(element, element.dom.childNodes.length - 1); };\n var isShadowRoot = function (dos) { return isDocumentFragment(dos) && isNonNullable(dos.dom.host); };\n var supported = isFunction(Element.prototype.attachShadow) && isFunction(Node.prototype.getRootNode);\n var getRootNode = supported ? function (e) { return SugarElement.fromDom(e.dom.getRootNode()); } : documentOrOwner;\n var getShadowRoot = function (e) {\n var r = getRootNode(e);\n return isShadowRoot(r) ? Optional.some(r) : Optional.none();\n };\n var getShadowHost = function (e) { return SugarElement.fromDom(e.dom.host); };\n var inBody = function (element) {\n var dom = isText(element) ? element.dom.parentNode : element.dom;\n if (dom === undefined || dom === null || dom.ownerDocument === null) {\n return false;\n }\n var doc = dom.ownerDocument;\n return getShadowRoot(SugarElement.fromDom(dom)).fold(function () { return doc.body.contains(dom); }, compose1(inBody, getShadowHost));\n };\n var ClosestOrAncestor = function (is, ancestor, scope, a, isRoot) {\n if (is(scope, a)) {\n return Optional.some(scope);\n }\n else if (isFunction(isRoot) && isRoot(scope)) {\n return Optional.none();\n }\n else {\n return ancestor(scope, a, isRoot);\n }\n };\n var ancestor$3 = function (scope, predicate, isRoot) {\n var element = scope.dom;\n var stop = isFunction(isRoot) ? isRoot : never;\n while (element.parentNode) {\n element = element.parentNode;\n var el = SugarElement.fromDom(element);\n if (predicate(el)) {\n return Optional.some(el);\n }\n else if (stop(el)) {\n break;\n }\n }\n return Optional.none();\n };\n var closest$2 = function (scope, predicate, isRoot) {\n var is = function (s, test) { return test(s); };\n return ClosestOrAncestor(is, ancestor$3, scope, predicate, isRoot);\n };\n var ancestor$2 = function (scope, selector, isRoot) { return ancestor$3(scope, function (e) { return is$1(e, selector); }, isRoot); };\n var closest$1 = function (scope, selector, isRoot) {\n var is = function (element, selector) { return is$1(element, selector); };\n return ClosestOrAncestor(is, ancestor$2, scope, selector, isRoot);\n };\n var closest = function (target) { return closest$1(target, '[contenteditable]'); };\n var isEditable = function (element, assumeEditable) {\n if (assumeEditable === void 0) { assumeEditable = false; }\n if (inBody(element)) {\n return element.dom.isContentEditable;\n }\n else {\n return closest(element).fold(constant(assumeEditable), function (editable) { return getRaw(editable) === 'true'; });\n }\n };\n var getRaw = function (element) { return element.dom.contentEditable; };\n var before$1 = function (marker, element) {\n var parent$1 = parent(marker);\n parent$1.each(function (v) {\n v.dom.insertBefore(element.dom, marker.dom);\n });\n };\n var after = function (marker, element) {\n var sibling = nextSibling(marker);\n sibling.fold(function () {\n var parent$1 = parent(marker);\n parent$1.each(function (v) {\n append$1(v, element);\n });\n }, function (v) {\n before$1(v, element);\n });\n };\n var prepend = function (parent, element) {\n var firstChild$1 = firstChild(parent);\n firstChild$1.fold(function () {\n append$1(parent, element);\n }, function (v) {\n parent.dom.insertBefore(element.dom, v.dom);\n });\n };\n var append$1 = function (parent, element) {\n parent.dom.appendChild(element.dom);\n };\n var before = function (marker, elements) {\n each$1(elements, function (x) {\n before$1(marker, x);\n });\n };\n var append = function (parent, elements) {\n each$1(elements, function (x) {\n append$1(parent, x);\n });\n };\n var empty = function (element) {\n element.dom.textContent = '';\n each$1(children(element), function (rogue) {\n remove(rogue);\n });\n };\n var remove = function (element) {\n var dom = element.dom;\n if (dom.parentNode !== null) {\n dom.parentNode.removeChild(dom);\n }\n };\n var global$6 = tinymce.util.Tools.resolve('tinymce.dom.RangeUtils');\n var global$5 = tinymce.util.Tools.resolve('tinymce.dom.TreeWalker');\n var global$4 = tinymce.util.Tools.resolve('tinymce.util.VK');\n var fromDom = function (nodes) { return map(nodes, SugarElement.fromDom); };\n var keys = Object.keys;\n var each = function (obj, f) {\n var props = keys(obj);\n for (var k = 0, len = props.length; k < len; k++) {\n var i = props[k];\n var x = obj[i];\n f(x, i);\n }\n };\n var objAcc = function (r) { return function (x, i) {\n r[i] = x;\n }; };\n var internalFilter = function (obj, pred, onTrue, onFalse) {\n each(obj, function (x, i) {\n (pred(x, i) ? onTrue : onFalse)(x, i);\n });\n };\n var filter = function (obj, pred) {\n var t = {};\n internalFilter(obj, pred, objAcc(t), noop);\n return t;\n };\n var rawSet = function (dom, key, value) {\n if (isString(value) || isBoolean(value) || isNumber(value)) {\n dom.setAttribute(key, value + '');\n }\n else {\n console.error('Invalid call to Attribute.set. Key ', key, ':: Value ', value, ':: Element ', dom);\n throw new Error('Attribute value was not simple');\n }\n };\n var setAll = function (element, attrs) {\n var dom = element.dom;\n each(attrs, function (v, k) {\n rawSet(dom, k, v);\n });\n };\n var clone$1 = function (element) { return foldl(element.dom.attributes, function (acc, attr) {\n acc[attr.name] = attr.value;\n return acc;\n }, {}); };\n var clone = function (original, isDeep) { return SugarElement.fromDom(original.dom.cloneNode(isDeep)); };\n var deep = function (original) { return clone(original, true); };\n var shallowAs = function (original, tag) {\n var nu = SugarElement.fromTag(tag);\n var attributes = clone$1(original);\n setAll(nu, attributes);\n return nu;\n };\n var mutate = function (original, tag) {\n var nu = shallowAs(original, tag);\n after(original, nu);\n var children$1 = children(original);\n append(nu, children$1);\n remove(original);\n return nu;\n };\n var global$3 = tinymce.util.Tools.resolve('tinymce.dom.DOMUtils');\n var global$2 = tinymce.util.Tools.resolve('tinymce.util.Tools');\n var matchNodeName = function (name) { return function (node) { return isNonNullable(node) && node.nodeName.toLowerCase() === name; }; };\n var matchNodeNames = function (regex) { return function (node) { return isNonNullable(node) && regex.test(node.nodeName); }; };\n var isTextNode$1 = function (node) { return isNonNullable(node) && node.nodeType === 3; };\n var isElement = function (node) { return isNonNullable(node) && node.nodeType === 1; };\n var isListNode = matchNodeNames(/^(OL|UL|DL)$/);\n var isOlUlNode = matchNodeNames(/^(OL|UL)$/);\n var isOlNode = matchNodeName('ol');\n var isListItemNode = matchNodeNames(/^(LI|DT|DD)$/);\n var isDlItemNode = matchNodeNames(/^(DT|DD)$/);\n var isTableCellNode = matchNodeNames(/^(TH|TD)$/);\n var isBr = matchNodeName('br');\n var isFirstChild = function (node) {\n var _a;\n return ((_a = node.parentNode) === null || _a === void 0 ? void 0 : _a.firstChild) === node;\n };\n var isTextBlock = function (editor, node) { return isNonNullable(node) && node.nodeName in editor.schema.getTextBlockElements(); };\n var isBlock = function (node, blockElements) { return isNonNullable(node) && node.nodeName in blockElements; };\n var isVoid = function (editor, node) { return isNonNullable(node) && node.nodeName in editor.schema.getVoidElements(); };\n var isBogusBr = function (dom, node) {\n if (!isBr(node)) {\n return false;\n }\n return dom.isBlock(node.nextSibling) && !isBr(node.previousSibling);\n };\n var isEmpty$2 = function (dom, elm, keepBookmarks) {\n var empty = dom.isEmpty(elm);\n if (keepBookmarks && dom.select('span[data-mce-type=bookmark]', elm).length > 0) {\n return false;\n }\n return empty;\n };\n var isChildOfBody = function (dom, elm) { return dom.isChildOf(elm, dom.getRoot()); };\n var option = function (name) { return function (editor) { return editor.options.get(name); }; };\n var register$3 = function (editor) {\n var registerOption = editor.options.register;\n registerOption('lists_indent_on_tab', {\n processor: 'boolean',\n default: true\n });\n };\n var shouldIndentOnTab = option('lists_indent_on_tab');\n var getForcedRootBlock = option('forced_root_block');\n var getForcedRootBlockAttrs = option('forced_root_block_attrs');\n var createTextBlock = function (editor, contentNode) {\n var dom = editor.dom;\n var blockElements = editor.schema.getBlockElements();\n var fragment = dom.createFragment();\n var blockName = getForcedRootBlock(editor);\n var blockAttrs = getForcedRootBlockAttrs(editor);\n var node;\n var textBlock;\n var hasContentNode = false;\n textBlock = dom.create(blockName, blockAttrs);\n if (!isBlock(contentNode.firstChild, blockElements)) {\n fragment.appendChild(textBlock);\n }\n while (node = contentNode.firstChild) {\n var nodeName = node.nodeName;\n if (!hasContentNode && (nodeName !== 'SPAN' || node.getAttribute('data-mce-type') !== 'bookmark')) {\n hasContentNode = true;\n }\n if (isBlock(node, blockElements)) {\n fragment.appendChild(node);\n textBlock = null;\n }\n else {\n if (!textBlock) {\n textBlock = dom.create(blockName, blockAttrs);\n fragment.appendChild(textBlock);\n }\n textBlock.appendChild(node);\n }\n }\n if (!hasContentNode && textBlock) {\n textBlock.appendChild(dom.create('br', { 'data-mce-bogus': '1' }));\n }\n return fragment;\n };\n var DOM$2 = global$3.DOM;\n var splitList = function (editor, list, li) {\n var removeAndKeepBookmarks = function (targetNode) {\n var parent = targetNode.parentNode;\n if (parent) {\n global$2.each(bookmarks, function (node) {\n parent.insertBefore(node, li.parentNode);\n });\n }\n DOM$2.remove(targetNode);\n };\n var bookmarks = DOM$2.select('span[data-mce-type=\"bookmark\"]', list);\n var newBlock = createTextBlock(editor, li);\n var tmpRng = DOM$2.createRng();\n tmpRng.setStartAfter(li);\n tmpRng.setEndAfter(list);\n var fragment = tmpRng.extractContents();\n for (var node = fragment.firstChild; node; node = node.firstChild) {\n if (node.nodeName === 'LI' && editor.dom.isEmpty(node)) {\n DOM$2.remove(node);\n break;\n }\n }\n if (!editor.dom.isEmpty(fragment)) {\n DOM$2.insertAfter(fragment, list);\n }\n DOM$2.insertAfter(newBlock, list);\n var parent = li.parentElement;\n if (parent && isEmpty$2(editor.dom, parent)) {\n removeAndKeepBookmarks(parent);\n }\n DOM$2.remove(li);\n if (isEmpty$2(editor.dom, list)) {\n DOM$2.remove(list);\n }\n };\n var isDescriptionDetail = isTag('dd');\n var isDescriptionTerm = isTag('dt');\n var outdentDlItem = function (editor, item) {\n if (isDescriptionDetail(item)) {\n mutate(item, 'dt');\n }\n else if (isDescriptionTerm(item)) {\n parentElement(item).each(function (dl) { return splitList(editor, dl.dom, item.dom); });\n }\n };\n var indentDlItem = function (item) {\n if (isDescriptionTerm(item)) {\n mutate(item, 'dd');\n }\n };\n var dlIndentation = function (editor, indentation, dlItems) {\n if (indentation === 'Indent') {\n each$1(dlItems, indentDlItem);\n }\n else {\n each$1(dlItems, function (item) { return outdentDlItem(editor, item); });\n }\n };\n var getNormalizedPoint = function (container, offset) {\n if (isTextNode$1(container)) {\n return {\n container: container,\n offset: offset\n };\n }\n var node = global$6.getNode(container, offset);\n if (isTextNode$1(node)) {\n return {\n container: node,\n offset: offset >= container.childNodes.length ? node.data.length : 0\n };\n }\n else if (node.previousSibling && isTextNode$1(node.previousSibling)) {\n return {\n container: node.previousSibling,\n offset: node.previousSibling.data.length\n };\n }\n else if (node.nextSibling && isTextNode$1(node.nextSibling)) {\n return {\n container: node.nextSibling,\n offset: 0\n };\n }\n return {\n container: container,\n offset: offset\n };\n };\n var normalizeRange = function (rng) {\n var outRng = rng.cloneRange();\n var rangeStart = getNormalizedPoint(rng.startContainer, rng.startOffset);\n outRng.setStart(rangeStart.container, rangeStart.offset);\n var rangeEnd = getNormalizedPoint(rng.endContainer, rng.endOffset);\n outRng.setEnd(rangeEnd.container, rangeEnd.offset);\n return outRng;\n };\n var listNames = [\n 'OL',\n 'UL',\n 'DL'\n ];\n var listSelector = listNames.join(',');\n var getParentList = function (editor, node) {\n var selectionStart = node || editor.selection.getStart(true);\n return editor.dom.getParent(selectionStart, listSelector, getClosestListHost(editor, selectionStart));\n };\n var isParentListSelected = function (parentList, selectedBlocks) { return isNonNullable(parentList) && selectedBlocks.length === 1 && selectedBlocks[0] === parentList; };\n var findSubLists = function (parentList) { return filter$1(parentList.querySelectorAll(listSelector), isListNode); };\n var getSelectedSubLists = function (editor) {\n var parentList = getParentList(editor);\n var selectedBlocks = editor.selection.getSelectedBlocks();\n if (isParentListSelected(parentList, selectedBlocks)) {\n return findSubLists(parentList);\n }\n else {\n return filter$1(selectedBlocks, function (elm) {\n return isListNode(elm) && parentList !== elm;\n });\n }\n };\n var findParentListItemsNodes = function (editor, elms) {\n var listItemsElms = global$2.map(elms, function (elm) {\n var parentLi = editor.dom.getParent(elm, 'li,dd,dt', getClosestListHost(editor, elm));\n return parentLi ? parentLi : elm;\n });\n return unique(listItemsElms);\n };\n var getSelectedListItems = function (editor) {\n var selectedBlocks = editor.selection.getSelectedBlocks();\n return filter$1(findParentListItemsNodes(editor, selectedBlocks), isListItemNode);\n };\n var getSelectedDlItems = function (editor) { return filter$1(getSelectedListItems(editor), isDlItemNode); };\n var getClosestEditingHost = function (editor, elm) {\n var parentTableCell = editor.dom.getParents(elm, 'TD,TH');\n return parentTableCell.length > 0 ? parentTableCell[0] : editor.getBody();\n };\n var isListHost = function (schema, node) { return !isListNode(node) && !isListItemNode(node) && exists(listNames, function (listName) { return schema.isValidChild(node.nodeName, listName); }); };\n var getClosestListHost = function (editor, elm) {\n var parentBlocks = editor.dom.getParents(elm, editor.dom.isBlock);\n var parentBlock = find(parentBlocks, function (elm) { return isListHost(editor.schema, elm); });\n return parentBlock.getOr(editor.getBody());\n };\n var isListInsideAnLiWithFirstAndLastNotListElement = function (list) { return parent(list).exists(function (parent) { return isListItemNode(parent.dom) && firstChild(parent).exists(function (firstChild) { return !isListNode(firstChild.dom); }) && lastChild(parent).exists(function (lastChild) { return !isListNode(lastChild.dom); }); }); };\n var findLastParentListNode = function (editor, elm) {\n var parentLists = editor.dom.getParents(elm, 'ol,ul', getClosestListHost(editor, elm));\n return last(parentLists);\n };\n var getSelectedLists = function (editor) {\n var firstList = findLastParentListNode(editor, editor.selection.getStart());\n var subsequentLists = filter$1(editor.selection.getSelectedBlocks(), isOlUlNode);\n return firstList.toArray().concat(subsequentLists);\n };\n var getParentLists = function (editor) {\n var elm = editor.selection.getStart();\n return editor.dom.getParents(elm, 'ol,ul', getClosestListHost(editor, elm));\n };\n var getSelectedListRoots = function (editor) {\n var selectedLists = getSelectedLists(editor);\n var parentLists = getParentLists(editor);\n return find(parentLists, function (p) { return isListInsideAnLiWithFirstAndLastNotListElement(SugarElement.fromDom(p)); }).fold(function () { return getUniqueListRoots(editor, selectedLists); }, function (l) { return [l]; });\n };\n var getUniqueListRoots = function (editor, lists) {\n var listRoots = map(lists, function (list) { return findLastParentListNode(editor, list).getOr(list); });\n return unique(listRoots);\n };\n var isCustomList = function (list) { return /\\btox\\-/.test(list.className); };\n var inList = function (parents, listName) { return findUntil(parents, isListNode, isTableCellNode).exists(function (list) { return list.nodeName === listName && !isCustomList(list); }); };\n var isWithinNonEditable = function (editor, element) { return element !== null && !editor.dom.isEditable(element); };\n var selectionIsWithinNonEditableList = function (editor) {\n var parentList = getParentList(editor);\n return isWithinNonEditable(editor, parentList);\n };\n var isWithinNonEditableList = function (editor, element) {\n var parentList = editor.dom.getParent(element, 'ol,ul,dl');\n return isWithinNonEditable(editor, parentList);\n };\n var setNodeChangeHandler = function (editor, nodeChangeHandler) {\n var initialNode = editor.selection.getNode();\n nodeChangeHandler({\n parents: editor.dom.getParents(initialNode),\n element: initialNode\n });\n editor.on('NodeChange', nodeChangeHandler);\n return function () { return editor.off('NodeChange', nodeChangeHandler); };\n };\n var fromElements = function (elements, scope) {\n var doc = scope || document;\n var fragment = doc.createDocumentFragment();\n each$1(elements, function (element) {\n fragment.appendChild(element.dom);\n });\n return SugarElement.fromDom(fragment);\n };\n var fireListEvent = function (editor, action, element) { return editor.dispatch('ListMutation', {\n action: action,\n element: element\n }); };\n var blank = function (r) { return function (s) { return s.replace(r, ''); }; };\n var trim = blank(/^\\s+|\\s+$/g);\n var isNotEmpty = function (s) { return s.length > 0; };\n var isEmpty$1 = function (s) { return !isNotEmpty(s); };\n var isSupported = function (dom) { return dom.style !== undefined && isFunction(dom.style.getPropertyValue); };\n var internalSet = function (dom, property, value) {\n if (!isString(value)) {\n console.error('Invalid call to CSS.set. Property ', property, ':: Value ', value, ':: Element ', dom);\n throw new Error('CSS value must be a string: ' + value);\n }\n if (isSupported(dom)) {\n dom.style.setProperty(property, value);\n }\n };\n var set = function (element, property, value) {\n var dom = element.dom;\n internalSet(dom, property, value);\n };\n var isList = function (el) { return is(el, 'OL,UL'); };\n var isListItem = function (el) { return is(el, 'LI'); };\n var hasFirstChildList = function (el) { return firstChild(el).exists(isList); };\n var hasLastChildList = function (el) { return lastChild(el).exists(isList); };\n var isEntryList = function (entry) { return 'listAttributes' in entry; };\n var isEntryComment = function (entry) { return 'isComment' in entry; };\n var isEntryFragment = function (entry) { return 'isFragment' in entry; };\n var isIndented = function (entry) { return entry.depth > 0; };\n var isSelected = function (entry) { return entry.isSelected; };\n var cloneItemContent = function (li) {\n var children$1 = children(li);\n var content = hasLastChildList(li) ? children$1.slice(0, -1) : children$1;\n return map(content, deep);\n };\n var createEntry = function (li, depth, isSelected) { return parent(li).filter(isElement$1).map(function (list) { return ({\n depth: depth,\n dirty: false,\n isSelected: isSelected,\n content: cloneItemContent(li),\n itemAttributes: clone$1(li),\n listAttributes: clone$1(list),\n listType: name(list),\n isInPreviousLi: false\n }); }); };\n var joinSegment = function (parent, child) {\n append$1(parent.item, child.list);\n };\n var joinSegments = function (segments) {\n for (var i = 1; i < segments.length; i++) {\n joinSegment(segments[i - 1], segments[i]);\n }\n };\n var appendSegments = function (head$1, tail) {\n lift2(last(head$1), head(tail), joinSegment);\n };\n var createSegment = function (scope, listType) {\n var segment = {\n list: SugarElement.fromTag(listType, scope),\n item: SugarElement.fromTag('li', scope)\n };\n append$1(segment.list, segment.item);\n return segment;\n };\n var createSegments = function (scope, entry, size) {\n var segments = [];\n for (var i = 0; i < size; i++) {\n segments.push(createSegment(scope, isEntryList(entry) ? entry.listType : entry.parentListType));\n }\n return segments;\n };\n var populateSegments = function (segments, entry) {\n for (var i = 0; i < segments.length - 1; i++) {\n set(segments[i].item, 'list-style-type', 'none');\n }\n last(segments).each(function (segment) {\n if (isEntryList(entry)) {\n setAll(segment.list, entry.listAttributes);\n setAll(segment.item, entry.itemAttributes);\n }\n append(segment.item, entry.content);\n });\n };\n var normalizeSegment = function (segment, entry) {\n if (name(segment.list) !== entry.listType) {\n segment.list = mutate(segment.list, entry.listType);\n }\n setAll(segment.list, entry.listAttributes);\n };\n var createItem = function (scope, attr, content) {\n var item = SugarElement.fromTag('li', scope);\n setAll(item, attr);\n append(item, content);\n return item;\n };\n var appendItem = function (segment, item) {\n append$1(segment.list, item);\n segment.item = item;\n };\n var writeShallow = function (scope, cast, entry) {\n var newCast = cast.slice(0, entry.depth);\n last(newCast).each(function (segment) {\n if (isEntryList(entry)) {\n var item = createItem(scope, entry.itemAttributes, entry.content);\n appendItem(segment, item);\n normalizeSegment(segment, entry);\n }\n else if (isEntryFragment(entry)) {\n append(segment.item, entry.content);\n }\n else {\n var item = SugarElement.fromHtml(\"<!--\".concat(entry.content, \"-->\"));\n append$1(segment.list, item);\n }\n });\n return newCast;\n };\n var writeDeep = function (scope, cast, entry) {\n var segments = createSegments(scope, entry, entry.depth - cast.length);\n joinSegments(segments);\n populateSegments(segments, entry);\n appendSegments(cast, segments);\n return cast.concat(segments);\n };\n var composeList = function (scope, entries) {\n var firstCommentEntryOpt = Optional.none();\n var cast = foldl(entries, function (cast, entry, i) {\n if (!isEntryComment(entry)) {\n return entry.depth > cast.length ? writeDeep(scope, cast, entry) : writeShallow(scope, cast, entry);\n }\n else {\n if (i === 0) {\n firstCommentEntryOpt = Optional.some(entry);\n return cast;\n }\n return writeShallow(scope, cast, entry);\n }\n }, []);\n firstCommentEntryOpt.each(function (firstCommentEntry) {\n var item = SugarElement.fromHtml(\"<!--\".concat(firstCommentEntry.content, \"-->\"));\n head(cast).each(function (fistCast) {\n prepend(fistCast.list, item);\n });\n });\n return head(cast).map(function (segment) { return segment.list; });\n };\n var indentEntry = function (indentation, entry) {\n switch (indentation) {\n case 'Indent':\n entry.depth++;\n break;\n case 'Outdent':\n entry.depth--;\n break;\n case 'Flatten':\n entry.depth = 0;\n }\n entry.dirty = true;\n };\n var cloneListProperties = function (target, source) {\n if (isEntryList(target) && isEntryList(source)) {\n target.listType = source.listType;\n target.listAttributes = __assign({}, source.listAttributes);\n }\n };\n var cleanListProperties = function (entry) {\n entry.listAttributes = filter(entry.listAttributes, function (_value, key) { return key !== 'start'; });\n };\n var closestSiblingEntry = function (entries, start) {\n var depth = entries[start].depth;\n var matches = function (entry) { return entry.depth === depth && !entry.dirty; };\n var until = function (entry) { return entry.depth < depth; };\n return findUntil(reverse(entries.slice(0, start)), matches, until).orThunk(function () { return findUntil(entries.slice(start + 1), matches, until); });\n };\n var normalizeEntries = function (entries) {\n each$1(entries, function (entry, i) {\n closestSiblingEntry(entries, i).fold(function () {\n if (entry.dirty && isEntryList(entry)) {\n cleanListProperties(entry);\n }\n }, function (matchingEntry) { return cloneListProperties(entry, matchingEntry); });\n });\n return entries;\n };\n var Cell = function (initial) {\n var value = initial;\n var get = function () {\n return value;\n };\n var set = function (v) {\n value = v;\n };\n return {\n get: get,\n set: set\n };\n };\n var parseSingleItem = function (depth, itemSelection, selectionState, item) {\n var _a;\n if (isComment(item)) {\n return [{\n depth: depth + 1,\n content: (_a = item.dom.nodeValue) !== null && _a !== void 0 ? _a : '',\n dirty: false,\n isSelected: false,\n isComment: true\n }];\n }\n itemSelection.each(function (selection) {\n if (eq(selection.start, item)) {\n selectionState.set(true);\n }\n });\n var currentItemEntry = createEntry(item, depth, selectionState.get());\n itemSelection.each(function (selection) {\n if (eq(selection.end, item)) {\n selectionState.set(false);\n }\n });\n var childListEntries = lastChild(item).filter(isList).map(function (list) { return parseList(depth, itemSelection, selectionState, list); }).getOr([]);\n return currentItemEntry.toArray().concat(childListEntries);\n };\n var parseItem = function (depth, itemSelection, selectionState, item) { return firstChild(item).filter(isList).fold(function () { return parseSingleItem(depth, itemSelection, selectionState, item); }, function (list) {\n var parsedSiblings = foldl(children(item), function (acc, liChild, i) {\n if (i === 0) {\n return acc;\n }\n else {\n if (isListItem(liChild)) {\n return acc.concat(parseSingleItem(depth, itemSelection, selectionState, liChild));\n }\n else {\n var fragment = {\n isFragment: true,\n depth: depth,\n content: [liChild],\n isSelected: false,\n dirty: false,\n parentListType: name(list)\n };\n return acc.concat(fragment);\n }\n }\n }, []);\n return parseList(depth, itemSelection, selectionState, list).concat(parsedSiblings);\n }); };\n var parseList = function (depth, itemSelection, selectionState, list) { return bind(children(list), function (element) {\n var parser = isList(element) ? parseList : parseItem;\n var newDepth = depth + 1;\n return parser(newDepth, itemSelection, selectionState, element);\n }); };\n var parseLists = function (lists, itemSelection) {\n var selectionState = Cell(false);\n var initialDepth = 0;\n return map(lists, function (list) { return ({\n sourceList: list,\n entries: parseList(initialDepth, itemSelection, selectionState, list)\n }); });\n };\n var outdentedComposer = function (editor, entries) {\n var normalizedEntries = normalizeEntries(entries);\n return map(normalizedEntries, function (entry) {\n var content = !isEntryComment(entry) ? fromElements(entry.content) : fromElements([SugarElement.fromHtml(\"<!--\".concat(entry.content, \"-->\"))]);\n return SugarElement.fromDom(createTextBlock(editor, content.dom));\n });\n };\n var indentedComposer = function (editor, entries) {\n var normalizedEntries = normalizeEntries(entries);\n return composeList(editor.contentDocument, normalizedEntries).toArray();\n };\n var composeEntries = function (editor, entries) { return bind(groupBy(entries, isIndented), function (entries) {\n var groupIsIndented = head(entries).exists(isIndented);\n return groupIsIndented ? indentedComposer(editor, entries) : outdentedComposer(editor, entries);\n }); };\n var indentSelectedEntries = function (entries, indentation) {\n each$1(filter$1(entries, isSelected), function (entry) { return indentEntry(indentation, entry); });\n };\n var getItemSelection = function (editor) {\n var selectedListItems = map(getSelectedListItems(editor), SugarElement.fromDom);\n return lift2(find(selectedListItems, not(hasFirstChildList)), find(reverse(selectedListItems), not(hasFirstChildList)), function (start, end) { return ({\n start: start,\n end: end\n }); });\n };\n var listIndentation = function (editor, lists, indentation) {\n var entrySets = parseLists(lists, getItemSelection(editor));\n each$1(entrySets, function (entrySet) {\n indentSelectedEntries(entrySet.entries, indentation);\n var composedLists = composeEntries(editor, entrySet.entries);\n each$1(composedLists, function (composedList) {\n fireListEvent(editor, indentation === 'Indent' ? 'IndentList' : 'OutdentList', composedList.dom);\n });\n before(entrySet.sourceList, composedLists);\n remove(entrySet.sourceList);\n });\n };\n var selectionIndentation = function (editor, indentation) {\n var lists = fromDom(getSelectedListRoots(editor));\n var dlItems = fromDom(getSelectedDlItems(editor));\n var isHandled = false;\n if (lists.length || dlItems.length) {\n var bookmark = editor.selection.getBookmark();\n listIndentation(editor, lists, indentation);\n dlIndentation(editor, indentation, dlItems);\n editor.selection.moveToBookmark(bookmark);\n editor.selection.setRng(normalizeRange(editor.selection.getRng()));\n editor.nodeChanged();\n isHandled = true;\n }\n return isHandled;\n };\n var handleIndentation = function (editor, indentation) { return !selectionIsWithinNonEditableList(editor) && selectionIndentation(editor, indentation); };\n var indentListSelection = function (editor) { return handleIndentation(editor, 'Indent'); };\n var outdentListSelection = function (editor) { return handleIndentation(editor, 'Outdent'); };\n var flattenListSelection = function (editor) { return handleIndentation(editor, 'Flatten'); };\n var zeroWidth = '\\uFEFF';\n var isZwsp = function (char) { return char === zeroWidth; };\n var ancestor$1 = function (scope, predicate, isRoot) { return ancestor$3(scope, predicate, isRoot).isSome(); };\n var ancestor = function (element, target) { return ancestor$1(element, curry(eq, target)); };\n var global$1 = tinymce.util.Tools.resolve('tinymce.dom.BookmarkManager');\n var DOM$1 = global$3.DOM;\n var createBookmark = function (rng) {\n var bookmark = {};\n var setupEndPoint = function (start) {\n var container = rng[start ? 'startContainer' : 'endContainer'];\n var offset = rng[start ? 'startOffset' : 'endOffset'];\n if (isElement(container)) {\n var offsetNode = DOM$1.create('span', { 'data-mce-type': 'bookmark' });\n if (container.hasChildNodes()) {\n offset = Math.min(offset, container.childNodes.length - 1);\n if (start) {\n container.insertBefore(offsetNode, container.childNodes[offset]);\n }\n else {\n DOM$1.insertAfter(offsetNode, container.childNodes[offset]);\n }\n }\n else {\n container.appendChild(offsetNode);\n }\n container = offsetNode;\n offset = 0;\n }\n bookmark[start ? 'startContainer' : 'endContainer'] = container;\n bookmark[start ? 'startOffset' : 'endOffset'] = offset;\n };\n setupEndPoint(true);\n if (!rng.collapsed) {\n setupEndPoint();\n }\n return bookmark;\n };\n var resolveBookmark = function (bookmark) {\n var restoreEndPoint = function (start) {\n var nodeIndex = function (container) {\n var _a;\n var node = (_a = container.parentNode) === null || _a === void 0 ? void 0 : _a.firstChild;\n var idx = 0;\n while (node) {\n if (node === container) {\n return idx;\n }\n if (!isElement(node) || node.getAttribute('data-mce-type') !== 'bookmark') {\n idx++;\n }\n node = node.nextSibling;\n }\n return -1;\n };\n var container = bookmark[start ? 'startContainer' : 'endContainer'];\n var offset = bookmark[start ? 'startOffset' : 'endOffset'];\n if (!container) {\n return;\n }\n if (isElement(container) && container.parentNode) {\n var node = container;\n offset = nodeIndex(container);\n container = container.parentNode;\n DOM$1.remove(node);\n if (!container.hasChildNodes() && DOM$1.isBlock(container)) {\n container.appendChild(DOM$1.create('br'));\n }\n }\n bookmark[start ? 'startContainer' : 'endContainer'] = container;\n bookmark[start ? 'startOffset' : 'endOffset'] = offset;\n };\n restoreEndPoint(true);\n restoreEndPoint();\n var rng = DOM$1.createRng();\n rng.setStart(bookmark.startContainer, bookmark.startOffset);\n if (bookmark.endContainer) {\n rng.setEnd(bookmark.endContainer, bookmark.endOffset);\n }\n return normalizeRange(rng);\n };\n var listToggleActionFromListName = function (listName) {\n switch (listName) {\n case 'UL':\n return 'ToggleUlList';\n case 'OL':\n return 'ToggleOlList';\n case 'DL':\n return 'ToggleDLList';\n }\n };\n var updateListStyle = function (dom, el, detail) {\n var type = detail['list-style-type'] ? detail['list-style-type'] : null;\n dom.setStyle(el, 'list-style-type', type);\n };\n var setAttribs = function (elm, attrs) {\n global$2.each(attrs, function (value, key) {\n elm.setAttribute(key, value);\n });\n };\n var updateListAttrs = function (dom, el, detail) {\n setAttribs(el, detail['list-attributes']);\n global$2.each(dom.select('li', el), function (li) {\n setAttribs(li, detail['list-item-attributes']);\n });\n };\n var updateListWithDetails = function (dom, el, detail) {\n updateListStyle(dom, el, detail);\n updateListAttrs(dom, el, detail);\n };\n var removeStyles = function (dom, element, styles) {\n global$2.each(styles, function (style) { return dom.setStyle(element, style, ''); });\n };\n var isInline = function (editor, node) { return isNonNullable(node) && !isBlock(node, editor.schema.getBlockElements()); };\n var getEndPointNode = function (editor, rng, start, root) {\n var container = rng[start ? 'startContainer' : 'endContainer'];\n var offset = rng[start ? 'startOffset' : 'endOffset'];\n if (isElement(container)) {\n container = container.childNodes[Math.min(offset, container.childNodes.length - 1)] || container;\n }\n if (!start && isBr(container.nextSibling)) {\n container = container.nextSibling;\n }\n var findBlockAncestor = function (node) {\n while (!editor.dom.isBlock(node) && node.parentNode && root !== node) {\n node = node.parentNode;\n }\n return node;\n };\n var findBetterContainer = function (container, forward) {\n var _a;\n var walker = new global$5(container, findBlockAncestor(container));\n var dir = forward ? 'next' : 'prev';\n var node;\n while (node = walker[dir]()) {\n if (!(isVoid(editor, node) || isZwsp(node.textContent) || ((_a = node.textContent) === null || _a === void 0 ? void 0 : _a.length) === 0)) {\n return Optional.some(node);\n }\n }\n return Optional.none();\n };\n if (start && isTextNode$1(container)) {\n if (isZwsp(container.textContent)) {\n container = findBetterContainer(container, false).getOr(container);\n }\n else {\n if (container.parentNode !== null && isInline(editor, container.parentNode)) {\n container = container.parentNode;\n }\n while (container.previousSibling !== null && (isInline(editor, container.previousSibling) || isTextNode$1(container.previousSibling))) {\n container = container.previousSibling;\n }\n }\n }\n if (!start && isTextNode$1(container)) {\n if (isZwsp(container.textContent)) {\n container = findBetterContainer(container, true).getOr(container);\n }\n else {\n if (container.parentNode !== null && isInline(editor, container.parentNode)) {\n container = container.parentNode;\n }\n while (container.nextSibling !== null && (isInline(editor, container.nextSibling) || isTextNode$1(container.nextSibling))) {\n container = container.nextSibling;\n }\n }\n }\n while (container.parentNode !== root) {\n var parent_1 = container.parentNode;\n if (isTextBlock(editor, container)) {\n return container;\n }\n if (/^(TD|TH)$/.test(parent_1.nodeName)) {\n return container;\n }\n container = parent_1;\n }\n return container;\n };\n var getSelectedTextBlocks = function (editor, rng, root) {\n var textBlocks = [];\n var dom = editor.dom;\n var startNode = getEndPointNode(editor, rng, true, root);\n var endNode = getEndPointNode(editor, rng, false, root);\n var block;\n var siblings = [];\n for (var node = startNode; node; node = node.nextSibling) {\n siblings.push(node);\n if (node === endNode) {\n break;\n }\n }\n global$2.each(siblings, function (node) {\n var _a;\n if (isTextBlock(editor, node)) {\n textBlocks.push(node);\n block = null;\n return;\n }\n if (dom.isBlock(node) || isBr(node)) {\n if (isBr(node)) {\n dom.remove(node);\n }\n block = null;\n return;\n }\n var nextSibling = node.nextSibling;\n if (global$1.isBookmarkNode(node)) {\n if (isListNode(nextSibling) || isTextBlock(editor, nextSibling) || !nextSibling && node.parentNode === root) {\n block = null;\n return;\n }\n }\n if (!block) {\n block = dom.create('p');\n (_a = node.parentNode) === null || _a === void 0 ? void 0 : _a.insertBefore(block, node);\n textBlocks.push(block);\n }\n block.appendChild(node);\n });\n return textBlocks;\n };\n var hasCompatibleStyle = function (dom, sib, detail) {\n var sibStyle = dom.getStyle(sib, 'list-style-type');\n var detailStyle = detail ? detail['list-style-type'] : '';\n detailStyle = detailStyle === null ? '' : detailStyle;\n return sibStyle === detailStyle;\n };\n var getRootSearchStart = function (editor, range) {\n var start = editor.selection.getStart(true);\n var startPoint = getEndPointNode(editor, range, true, editor.getBody());\n if (ancestor(SugarElement.fromDom(startPoint), SugarElement.fromDom(range.commonAncestorContainer))) {\n return range.commonAncestorContainer;\n }\n else {\n return start;\n }\n };\n var applyList = function (editor, listName, detail) {\n var rng = editor.selection.getRng();\n var listItemName = 'LI';\n var root = getClosestListHost(editor, getRootSearchStart(editor, rng));\n var dom = editor.dom;\n if (dom.getContentEditable(editor.selection.getNode()) === 'false') {\n return;\n }\n listName = listName.toUpperCase();\n if (listName === 'DL') {\n listItemName = 'DT';\n }\n var bookmark = createBookmark(rng);\n var selectedTextBlocks = filter$1(getSelectedTextBlocks(editor, rng, root), editor.dom.isEditable);\n global$2.each(selectedTextBlocks, function (block) {\n var listBlock;\n var sibling = block.previousSibling;\n var parent = block.parentNode;\n if (!isListItemNode(parent)) {\n if (sibling && isListNode(sibling) && sibling.nodeName === listName && hasCompatibleStyle(dom, sibling, detail)) {\n listBlock = sibling;\n block = dom.rename(block, listItemName);\n sibling.appendChild(block);\n }\n else {\n listBlock = dom.create(listName);\n parent.insertBefore(listBlock, block);\n listBlock.appendChild(block);\n block = dom.rename(block, listItemName);\n }\n removeStyles(dom, block, [\n 'margin',\n 'margin-right',\n 'margin-bottom',\n 'margin-left',\n 'margin-top',\n 'padding',\n 'padding-right',\n 'padding-bottom',\n 'padding-left',\n 'padding-top'\n ]);\n updateListWithDetails(dom, listBlock, detail);\n mergeWithAdjacentLists(editor.dom, listBlock);\n }\n });\n editor.selection.setRng(resolveBookmark(bookmark));\n };\n var isValidLists = function (list1, list2) {\n return isListNode(list1) && list1.nodeName === (list2 === null || list2 === void 0 ? void 0 : list2.nodeName);\n };\n var hasSameListStyle = function (dom, list1, list2) {\n var targetStyle = dom.getStyle(list1, 'list-style-type', true);\n var style = dom.getStyle(list2, 'list-style-type', true);\n return targetStyle === style;\n };\n var hasSameClasses = function (elm1, elm2) {\n return elm1.className === elm2.className;\n };\n var shouldMerge = function (dom, list1, list2) {\n return isValidLists(list1, list2) && hasSameListStyle(dom, list1, list2) && hasSameClasses(list1, list2);\n };\n var mergeWithAdjacentLists = function (dom, listBlock) {\n var node;\n var sibling = listBlock.nextSibling;\n if (shouldMerge(dom, listBlock, sibling)) {\n var liSibling = sibling;\n while (node = liSibling.firstChild) {\n listBlock.appendChild(node);\n }\n dom.remove(liSibling);\n }\n sibling = listBlock.previousSibling;\n if (shouldMerge(dom, listBlock, sibling)) {\n var liSibling = sibling;\n while (node = liSibling.lastChild) {\n listBlock.insertBefore(node, listBlock.firstChild);\n }\n dom.remove(liSibling);\n }\n };\n var updateList$1 = function (editor, list, listName, detail) {\n if (list.nodeName !== listName) {\n var newList = editor.dom.rename(list, listName);\n updateListWithDetails(editor.dom, newList, detail);\n fireListEvent(editor, listToggleActionFromListName(listName), newList);\n }\n else {\n updateListWithDetails(editor.dom, list, detail);\n fireListEvent(editor, listToggleActionFromListName(listName), list);\n }\n };\n var updateCustomList = function (editor, list, listName, detail) {\n list.classList.forEach(function (cls, _, classList) {\n if (cls.startsWith('tox-')) {\n classList.remove(cls);\n if (classList.length === 0) {\n list.removeAttribute('class');\n }\n }\n });\n if (list.nodeName !== listName) {\n var newList = editor.dom.rename(list, listName);\n updateListWithDetails(editor.dom, newList, detail);\n fireListEvent(editor, listToggleActionFromListName(listName), newList);\n }\n else {\n updateListWithDetails(editor.dom, list, detail);\n fireListEvent(editor, listToggleActionFromListName(listName), list);\n }\n };\n var toggleMultipleLists = function (editor, parentList, lists, listName, detail) {\n var parentIsList = isListNode(parentList);\n if (parentIsList && parentList.nodeName === listName && !hasListStyleDetail(detail) && !isCustomList(parentList)) {\n flattenListSelection(editor);\n }\n else {\n applyList(editor, listName, detail);\n var bookmark = createBookmark(editor.selection.getRng());\n var allLists = parentIsList ? __spreadArray([\n parentList\n ], lists, true) : lists;\n var updateFunction_1 = parentIsList && isCustomList(parentList) ? updateCustomList : updateList$1;\n global$2.each(allLists, function (elm) {\n updateFunction_1(editor, elm, listName, detail);\n });\n editor.selection.setRng(resolveBookmark(bookmark));\n }\n };\n var hasListStyleDetail = function (detail) {\n return 'list-style-type' in detail;\n };\n var toggleSingleList = function (editor, parentList, listName, detail) {\n if (parentList === editor.getBody()) {\n return;\n }\n if (parentList) {\n if (parentList.nodeName === listName && !hasListStyleDetail(detail) && !isCustomList(parentList)) {\n flattenListSelection(editor);\n }\n else {\n var bookmark = createBookmark(editor.selection.getRng());\n if (isCustomList(parentList)) {\n parentList.classList.forEach(function (cls, _, classList) {\n if (cls.startsWith('tox-')) {\n classList.remove(cls);\n if (classList.length === 0) {\n parentList.removeAttribute('class');\n }\n }\n });\n }\n updateListWithDetails(editor.dom, parentList, detail);\n var newList = editor.dom.rename(parentList, listName);\n mergeWithAdjacentLists(editor.dom, newList);\n editor.selection.setRng(resolveBookmark(bookmark));\n applyList(editor, listName, detail);\n fireListEvent(editor, listToggleActionFromListName(listName), newList);\n }\n }\n else {\n applyList(editor, listName, detail);\n fireListEvent(editor, listToggleActionFromListName(listName), parentList);\n }\n };\n var toggleList = function (editor, listName, _detail) {\n var parentList = getParentList(editor);\n if (isWithinNonEditableList(editor, parentList)) {\n return;\n }\n var selectedSubLists = getSelectedSubLists(editor);\n var detail = isObject(_detail) ? _detail : {};\n if (selectedSubLists.length > 0) {\n toggleMultipleLists(editor, parentList, selectedSubLists, listName, detail);\n }\n else {\n toggleSingleList(editor, parentList, listName, detail);\n }\n };\n var DOM = global$3.DOM;\n var normalizeList = function (dom, list) {\n var parentNode = list.parentElement;\n if (parentNode && parentNode.nodeName === 'LI' && parentNode.firstChild === list) {\n var sibling = parentNode.previousSibling;\n if (sibling && sibling.nodeName === 'LI') {\n sibling.appendChild(list);\n if (isEmpty$2(dom, parentNode)) {\n DOM.remove(parentNode);\n }\n }\n else {\n DOM.setStyle(parentNode, 'listStyleType', 'none');\n }\n }\n if (isListNode(parentNode)) {\n var sibling = parentNode.previousSibling;\n if (sibling && sibling.nodeName === 'LI') {\n sibling.appendChild(list);\n }\n }\n };\n var normalizeLists = function (dom, element) {\n var lists = global$2.grep(dom.select('ol,ul', element));\n global$2.each(lists, function (list) {\n normalizeList(dom, list);\n });\n };\n var findNextCaretContainer = function (editor, rng, isForward, root) {\n var node = rng.startContainer;\n var offset = rng.startOffset;\n if (isTextNode$1(node) && (isForward ? offset < node.data.length : offset > 0)) {\n return node;\n }\n var nonEmptyBlocks = editor.schema.getNonEmptyElements();\n if (isElement(node)) {\n node = global$6.getNode(node, offset);\n }\n var walker = new global$5(node, root);\n if (isForward) {\n if (isBogusBr(editor.dom, node)) {\n walker.next();\n }\n }\n var walkFn = isForward ? walker.next.bind(walker) : walker.prev2.bind(walker);\n while (node = walkFn()) {\n if (node.nodeName === 'LI' && !node.hasChildNodes()) {\n return node;\n }\n if (nonEmptyBlocks[node.nodeName]) {\n return node;\n }\n if (isTextNode$1(node) && node.data.length > 0) {\n return node;\n }\n }\n return null;\n };\n var hasOnlyOneBlockChild = function (dom, elm) {\n var childNodes = elm.childNodes;\n return childNodes.length === 1 && !isListNode(childNodes[0]) && dom.isBlock(childNodes[0]);\n };\n var isUnwrappable = function (node) { return Optional.from(node).map(SugarElement.fromDom).filter(isHTMLElement).exists(function (el) { return isEditable(el) && !contains$1(['details'], name(el)); }); };\n var unwrapSingleBlockChild = function (dom, elm) {\n if (hasOnlyOneBlockChild(dom, elm) && isUnwrappable(elm.firstChild)) {\n dom.remove(elm.firstChild, true);\n }\n };\n var moveChildren = function (dom, fromElm, toElm) {\n var node;\n var targetElm = hasOnlyOneBlockChild(dom, toElm) ? toElm.firstChild : toElm;\n unwrapSingleBlockChild(dom, fromElm);\n if (!isEmpty$2(dom, fromElm, true)) {\n while (node = fromElm.firstChild) {\n targetElm.appendChild(node);\n }\n }\n };\n var mergeLiElements = function (dom, fromElm, toElm) {\n var listNode;\n var ul = fromElm.parentNode;\n if (!isChildOfBody(dom, fromElm) || !isChildOfBody(dom, toElm)) {\n return;\n }\n if (isListNode(toElm.lastChild)) {\n listNode = toElm.lastChild;\n }\n if (ul === toElm.lastChild) {\n if (isBr(ul.previousSibling)) {\n dom.remove(ul.previousSibling);\n }\n }\n var node = toElm.lastChild;\n if (node && isBr(node) && fromElm.hasChildNodes()) {\n dom.remove(node);\n }\n if (isEmpty$2(dom, toElm, true)) {\n empty(SugarElement.fromDom(toElm));\n }\n moveChildren(dom, fromElm, toElm);\n if (listNode) {\n toElm.appendChild(listNode);\n }\n var contains$1 = contains(SugarElement.fromDom(toElm), SugarElement.fromDom(fromElm));\n var nestedLists = contains$1 ? dom.getParents(fromElm, isListNode, toElm) : [];\n dom.remove(fromElm);\n each$1(nestedLists, function (list) {\n if (isEmpty$2(dom, list) && list !== dom.getRoot()) {\n dom.remove(list);\n }\n });\n };\n var mergeIntoEmptyLi = function (editor, fromLi, toLi) {\n empty(SugarElement.fromDom(toLi));\n mergeLiElements(editor.dom, fromLi, toLi);\n editor.selection.setCursorLocation(toLi, 0);\n };\n var mergeForward = function (editor, rng, fromLi, toLi) {\n var dom = editor.dom;\n if (dom.isEmpty(toLi)) {\n mergeIntoEmptyLi(editor, fromLi, toLi);\n }\n else {\n var bookmark = createBookmark(rng);\n mergeLiElements(dom, fromLi, toLi);\n editor.selection.setRng(resolveBookmark(bookmark));\n }\n };\n var mergeBackward = function (editor, rng, fromLi, toLi) {\n var bookmark = createBookmark(rng);\n mergeLiElements(editor.dom, fromLi, toLi);\n var resolvedBookmark = resolveBookmark(bookmark);\n editor.selection.setRng(resolvedBookmark);\n };\n var backspaceDeleteFromListToListCaret = function (editor, isForward) {\n var dom = editor.dom, selection = editor.selection;\n var selectionStartElm = selection.getStart();\n var root = getClosestEditingHost(editor, selectionStartElm);\n var li = dom.getParent(selection.getStart(), 'LI', root);\n if (li) {\n var ul = li.parentElement;\n if (ul === editor.getBody() && isEmpty$2(dom, ul)) {\n return true;\n }\n var rng_1 = normalizeRange(selection.getRng());\n var otherLi_1 = dom.getParent(findNextCaretContainer(editor, rng_1, isForward, root), 'LI', root);\n var willMergeParentIntoChild = otherLi_1 && (isForward ? dom.isChildOf(li, otherLi_1) : dom.isChildOf(otherLi_1, li));\n if (otherLi_1 && otherLi_1 !== li && !willMergeParentIntoChild) {\n editor.undoManager.transact(function () {\n if (isForward) {\n mergeForward(editor, rng_1, otherLi_1, li);\n }\n else {\n if (isFirstChild(li)) {\n outdentListSelection(editor);\n }\n else {\n mergeBackward(editor, rng_1, li, otherLi_1);\n }\n }\n });\n return true;\n }\n else if (willMergeParentIntoChild && !isForward && otherLi_1 !== li) {\n editor.undoManager.transact(function () {\n if (rng_1.commonAncestorContainer.parentElement) {\n var bookmark = createBookmark(rng_1);\n var oldParentElRef = rng_1.commonAncestorContainer.parentElement;\n moveChildren(dom, rng_1.commonAncestorContainer.parentElement, otherLi_1);\n oldParentElRef.remove();\n var resolvedBookmark = resolveBookmark(bookmark);\n editor.selection.setRng(resolvedBookmark);\n }\n });\n return true;\n }\n else if (!otherLi_1) {\n if (!isForward && rng_1.startOffset === 0 && rng_1.endOffset === 0) {\n editor.undoManager.transact(function () {\n flattenListSelection(editor);\n });\n return true;\n }\n }\n }\n return false;\n };\n var removeBlock = function (dom, block, root) {\n var parentBlock = dom.getParent(block.parentNode, dom.isBlock, root);\n dom.remove(block);\n if (parentBlock && dom.isEmpty(parentBlock)) {\n dom.remove(parentBlock);\n }\n };\n var backspaceDeleteIntoListCaret = function (editor, isForward) {\n var dom = editor.dom;\n var selectionStartElm = editor.selection.getStart();\n var root = getClosestEditingHost(editor, selectionStartElm);\n var block = dom.getParent(selectionStartElm, dom.isBlock, root);\n if (block && dom.isEmpty(block)) {\n var rng = normalizeRange(editor.selection.getRng());\n var otherLi_2 = dom.getParent(findNextCaretContainer(editor, rng, isForward, root), 'LI', root);\n if (otherLi_2) {\n var findValidElement = function (element) { return contains$1([\n 'td',\n 'th',\n 'caption'\n ], name(element)); };\n var findRoot = function (node) { return node.dom === root; };\n var otherLiCell = closest$2(SugarElement.fromDom(otherLi_2), findValidElement, findRoot);\n var caretCell = closest$2(SugarElement.fromDom(rng.startContainer), findValidElement, findRoot);\n if (!equals(otherLiCell, caretCell, eq)) {\n return false;\n }\n editor.undoManager.transact(function () {\n var parentNode = otherLi_2.parentNode;\n removeBlock(dom, block, root);\n mergeWithAdjacentLists(dom, parentNode);\n editor.selection.select(otherLi_2, true);\n editor.selection.collapse(isForward);\n });\n return true;\n }\n }\n return false;\n };\n var backspaceDeleteCaret = function (editor, isForward) {\n return backspaceDeleteFromListToListCaret(editor, isForward) || backspaceDeleteIntoListCaret(editor, isForward);\n };\n var hasListSelection = function (editor) {\n var selectionStartElm = editor.selection.getStart();\n var root = getClosestEditingHost(editor, selectionStartElm);\n var startListParent = editor.dom.getParent(selectionStartElm, 'LI,DT,DD', root);\n return startListParent || getSelectedListItems(editor).length > 0;\n };\n var backspaceDeleteRange = function (editor) {\n if (hasListSelection(editor)) {\n editor.undoManager.transact(function () {\n editor.execCommand('Delete');\n normalizeLists(editor.dom, editor.getBody());\n });\n return true;\n }\n return false;\n };\n var backspaceDelete = function (editor, isForward) {\n var selection = editor.selection;\n return !isWithinNonEditableList(editor, selection.getNode()) && (selection.isCollapsed() ? backspaceDeleteCaret(editor, isForward) : backspaceDeleteRange(editor));\n };\n var setup$2 = function (editor) {\n editor.on('ExecCommand', function (e) {\n var cmd = e.command.toLowerCase();\n if ((cmd === 'delete' || cmd === 'forwarddelete') && hasListSelection(editor)) {\n normalizeLists(editor.dom, editor.getBody());\n }\n });\n editor.on('keydown', function (e) {\n if (e.keyCode === global$4.BACKSPACE) {\n if (backspaceDelete(editor, false)) {\n e.preventDefault();\n }\n }\n else if (e.keyCode === global$4.DELETE) {\n if (backspaceDelete(editor, true)) {\n e.preventDefault();\n }\n }\n });\n };\n var get = function (editor) { return ({\n backspaceDelete: function (isForward) {\n backspaceDelete(editor, isForward);\n }\n }); };\n var updateList = function (editor, update) {\n var parentList = getParentList(editor);\n if (parentList === null || isWithinNonEditableList(editor, parentList)) {\n return;\n }\n editor.undoManager.transact(function () {\n if (isObject(update.styles)) {\n editor.dom.setStyles(parentList, update.styles);\n }\n if (isObject(update.attrs)) {\n each(update.attrs, function (v, k) { return editor.dom.setAttrib(parentList, k, v); });\n }\n });\n };\n var parseAlphabeticBase26 = function (str) {\n var chars = reverse(trim(str).split(''));\n var values = map(chars, function (char, i) {\n var charValue = char.toUpperCase().charCodeAt(0) - 'A'.charCodeAt(0) + 1;\n return Math.pow(26, i) * charValue;\n });\n return foldl(values, function (sum, v) { return sum + v; }, 0);\n };\n var composeAlphabeticBase26 = function (value) {\n value--;\n if (value < 0) {\n return '';\n }\n else {\n var remainder = value % 26;\n var quotient = Math.floor(value / 26);\n var rest = composeAlphabeticBase26(quotient);\n var char = String.fromCharCode('A'.charCodeAt(0) + remainder);\n return rest + char;\n }\n };\n var isUppercase = function (str) { return /^[A-Z]+$/.test(str); };\n var isLowercase = function (str) { return /^[a-z]+$/.test(str); };\n var isNumeric = function (str) { return /^[0-9]+$/.test(str); };\n var deduceListType = function (start) {\n if (isNumeric(start)) {\n return 2;\n }\n else if (isUppercase(start)) {\n return 0;\n }\n else if (isLowercase(start)) {\n return 1;\n }\n else if (isEmpty$1(start)) {\n return 3;\n }\n else {\n return 4;\n }\n };\n var parseStartValue = function (start) {\n switch (deduceListType(start)) {\n case 2:\n return Optional.some({\n listStyleType: Optional.none(),\n start: start\n });\n case 0:\n return Optional.some({\n listStyleType: Optional.some('upper-alpha'),\n start: parseAlphabeticBase26(start).toString()\n });\n case 1:\n return Optional.some({\n listStyleType: Optional.some('lower-alpha'),\n start: parseAlphabeticBase26(start).toString()\n });\n case 3:\n return Optional.some({\n listStyleType: Optional.none(),\n start: ''\n });\n case 4:\n return Optional.none();\n }\n };\n var parseDetail = function (detail) {\n var start = parseInt(detail.start, 10);\n if (is$2(detail.listStyleType, 'upper-alpha')) {\n return composeAlphabeticBase26(start);\n }\n else if (is$2(detail.listStyleType, 'lower-alpha')) {\n return composeAlphabeticBase26(start).toLowerCase();\n }\n else {\n return detail.start;\n }\n };\n var open = function (editor) {\n var currentList = getParentList(editor);\n if (!isOlNode(currentList) || isWithinNonEditableList(editor, currentList)) {\n return;\n }\n editor.windowManager.open({\n title: 'List Properties',\n body: {\n type: 'panel',\n items: [{\n type: 'input',\n name: 'start',\n label: 'Start list at number',\n inputMode: 'numeric'\n }]\n },\n initialData: {\n start: parseDetail({\n start: editor.dom.getAttrib(currentList, 'start', '1'),\n listStyleType: Optional.from(editor.dom.getStyle(currentList, 'list-style-type'))\n })\n },\n buttons: [\n {\n type: 'cancel',\n name: 'cancel',\n text: 'Cancel'\n },\n {\n type: 'submit',\n name: 'save',\n text: 'Save',\n primary: true\n }\n ],\n onSubmit: function (api) {\n var data = api.getData();\n parseStartValue(data.start).each(function (detail) {\n editor.execCommand('mceListUpdate', false, {\n attrs: { start: detail.start === '1' ? '' : detail.start },\n styles: { 'list-style-type': detail.listStyleType.getOr('') }\n });\n });\n api.close();\n }\n });\n };\n var queryListCommandState = function (editor, listName) { return function () {\n var parentList = getParentList(editor);\n return isNonNullable(parentList) && parentList.nodeName === listName;\n }; };\n var registerDialog = function (editor) {\n editor.addCommand('mceListProps', function () {\n open(editor);\n });\n };\n var register$2 = function (editor) {\n editor.on('BeforeExecCommand', function (e) {\n var cmd = e.command.toLowerCase();\n if (cmd === 'indent') {\n indentListSelection(editor);\n }\n else if (cmd === 'outdent') {\n outdentListSelection(editor);\n }\n });\n editor.addCommand('InsertUnorderedList', function (ui, detail) {\n toggleList(editor, 'UL', detail);\n });\n editor.addCommand('InsertOrderedList', function (ui, detail) {\n toggleList(editor, 'OL', detail);\n });\n editor.addCommand('InsertDefinitionList', function (ui, detail) {\n toggleList(editor, 'DL', detail);\n });\n editor.addCommand('RemoveList', function () {\n flattenListSelection(editor);\n });\n registerDialog(editor);\n editor.addCommand('mceListUpdate', function (ui, detail) {\n if (isObject(detail)) {\n updateList(editor, detail);\n }\n });\n editor.addQueryStateHandler('InsertUnorderedList', queryListCommandState(editor, 'UL'));\n editor.addQueryStateHandler('InsertOrderedList', queryListCommandState(editor, 'OL'));\n editor.addQueryStateHandler('InsertDefinitionList', queryListCommandState(editor, 'DL'));\n };\n var global = tinymce.util.Tools.resolve('tinymce.html.Node');\n var isTextNode = function (node) { return node.type === 3; };\n var isEmpty = function (nodeBuffer) { return nodeBuffer.length === 0; };\n var wrapInvalidChildren = function (list) {\n var insertListItem = function (buffer, refNode) {\n var li = global.create('li');\n each$1(buffer, function (node) { return li.append(node); });\n if (refNode) {\n list.insert(li, refNode, true);\n }\n else {\n list.append(li);\n }\n };\n var reducer = function (buffer, node) {\n if (isTextNode(node)) {\n return __spreadArray(__spreadArray([], buffer, true), [\n node\n ], false);\n }\n else if (!isEmpty(buffer) && !isTextNode(node)) {\n insertListItem(buffer, node);\n return [];\n }\n else {\n return buffer;\n }\n };\n var restBuffer = foldl(list.children(), reducer, []);\n if (!isEmpty(restBuffer)) {\n insertListItem(restBuffer);\n }\n };\n var setup$1 = function (editor) {\n editor.on('PreInit', function () {\n var parser = editor.parser;\n parser.addNodeFilter('ul,ol', function (nodes) { return each$1(nodes, wrapInvalidChildren); });\n });\n };\n var setupTabKey = function (editor) {\n editor.on('keydown', function (e) {\n if (e.keyCode !== global$4.TAB || global$4.metaKeyPressed(e)) {\n return;\n }\n editor.undoManager.transact(function () {\n if (e.shiftKey ? outdentListSelection(editor) : indentListSelection(editor)) {\n e.preventDefault();\n }\n });\n });\n };\n var setup = function (editor) {\n if (shouldIndentOnTab(editor)) {\n setupTabKey(editor);\n }\n setup$2(editor);\n };\n var setupToggleButtonHandler = function (editor, listName) { return function (api) {\n var toggleButtonHandler = function (e) {\n api.setActive(inList(e.parents, listName));\n api.setEnabled(!isWithinNonEditableList(editor, e.element) && editor.selection.isEditable());\n };\n api.setEnabled(editor.selection.isEditable());\n return setNodeChangeHandler(editor, toggleButtonHandler);\n }; };\n var register$1 = function (editor) {\n var exec = function (command) { return function () { return editor.execCommand(command); }; };\n if (!editor.hasPlugin('advlist')) {\n editor.ui.registry.addToggleButton('numlist', {\n icon: 'ordered-list',\n active: false,\n tooltip: 'Numbered list',\n onAction: exec('InsertOrderedList'),\n onSetup: setupToggleButtonHandler(editor, 'OL')\n });\n editor.ui.registry.addToggleButton('bullist', {\n icon: 'unordered-list',\n active: false,\n tooltip: 'Bullet list',\n onAction: exec('InsertUnorderedList'),\n onSetup: setupToggleButtonHandler(editor, 'UL')\n });\n }\n };\n var setupMenuButtonHandler = function (editor, listName) { return function (api) {\n var menuButtonHandler = function (e) { return api.setEnabled(inList(e.parents, listName) && !isWithinNonEditableList(editor, e.element)); };\n return setNodeChangeHandler(editor, menuButtonHandler);\n }; };\n var register = function (editor) {\n var listProperties = {\n text: 'List properties...',\n icon: 'ordered-list',\n onAction: function () { return editor.execCommand('mceListProps'); },\n onSetup: setupMenuButtonHandler(editor, 'OL')\n };\n editor.ui.registry.addMenuItem('listprops', listProperties);\n editor.ui.registry.addContextMenu('lists', {\n update: function (node) {\n var parentList = getParentList(editor, node);\n return isOlNode(parentList) ? ['listprops'] : [];\n }\n });\n };\n var Plugin = function () {\n global$7.add('lists', function (editor) {\n register$3(editor);\n setup$1(editor);\n if (!editor.hasPlugin('rtc', true)) {\n setup(editor);\n register$2(editor);\n }\n else {\n registerDialog(editor);\n }\n register$1(editor);\n register(editor);\n return get(editor);\n });\n };\n Plugin();\n})();\n"],"names":["__assign","this","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","__spreadArray","to","from","pack","ar","l","Array","slice","concat","global$7","tinymce","util","Tools","resolve","isType$1","type","value","x","isArray","o","v","constructor","String","isPrototypeOf","_a","name","isSimpleType","isString","isObject","isBoolean","isNonNullable","a","isNullable","isFunction","isNumber","noop","constant","tripleEquals","b","not","f","never","Optional","tag","some","none","singletonNone","fold","onNone","onSome","isSome","isNone","map","mapper","bind","binder","exists","predicate","forall","filter","getOr","replacement","or","getOrThunk","thunk","orThunk","getOrDie","message","Error","getOrNull","getOrUndefined","each","worker","toArray","toString","r","nativeSlice","nativeIndexOf","indexOf","nativePush","push","contains$1","xs","ts","pred","len","each$1","filter$1","foldl","acc","findUntil","until","find","flatten","reverse","get$1","head","last","unique","comparator","isDuplicated","is$2","lhs","rhs","left","lift2","oa","ob","fromDom$1","node","dom","SugarElement","fromHtml","html","scope","div","document","createElement","innerHTML","hasChildNodes","childNodes","console","error","fromTag","fromText","text","createTextNode","fromDom","fromPoint","docElm","y","elementFromPoint","is$1","element","selector","nodeType","elem","undefined","matches","msMatchesSelector","webkitMatchesSelector","mozMatchesSelector","eq","e1","e2","is","Global","window","Function","parts","path","split","actual","unsafe","getPrototypeOf","sandHTMLElement","test","nodeName","toLowerCase","isType","isHTMLElement","isElement$1","isText","isDocument","isDocumentFragment","isTag","e","parent","parentNode","children","child","index","cs","firstChild","lastChild","supported","Element","attachShadow","Node","getRootNode","dos","ownerDocument","getShadowRoot","host","getShadowHost","inBody","fbc","fab","doc","body","contains","ClosestOrAncestor","ancestor","isRoot","ancestor$3","stop","el","closest$2","ancestor$2","closest","target","getRaw","contentEditable","before$1","marker","insertBefore","after","sibling","nextSibling","append$1","appendChild","append","elements","empty","textContent","rogue","remove","removeChild","global$6","global$5","global$4","nodes","keys","obj","props","k","onTrue","onFalse","internalFilter","setAll","attrs","key","setAttribute","rawSet","clone$1","attributes","attr","deep","original","isDeep","cloneNode","clone","mutate","nu","shallowAs","children$1","global$3","global$2","matchNodeName","matchNodeNames","regex","isTextNode$1","isElement","isListNode","isOlUlNode","isOlNode","isListItemNode","isDlItemNode","isTableCellNode","isBr","isTextBlock","editor","schema","getTextBlockElements","isBlock","blockElements","isVoid","getVoidElements","isEmpty$2","elm","keepBookmarks","isEmpty","select","isChildOfBody","isChildOf","getRoot","option","options","get","shouldIndentOnTab","getForcedRootBlock","getForcedRootBlockAttrs","createTextBlock","contentNode","textBlock","getBlockElements","fragment","createFragment","blockName","blockAttrs","hasContentNode","create","getAttribute","DOM$2","DOM","isDescriptionDetail","isDescriptionTerm","outdentDlItem","item","parentElement","dl","list","li","bookmarks","newBlock","tmpRng","createRng","setStartAfter","setEndAfter","extractContents","insertAfter","targetNode","removeAndKeepBookmarks","splitList","indentDlItem","getNormalizedPoint","container","offset","getNode","data","previousSibling","normalizeRange","rng","outRng","cloneRange","rangeStart","startContainer","startOffset","setStart","rangeEnd","endContainer","endOffset","setEnd","listNames","listSelector","join","getParentList","selectionStart","selection","getStart","getParent","getClosestListHost","getSelectedSubLists","parentList","selectedBlocks","getSelectedBlocks","isParentListSelected","querySelectorAll","findSubLists","getSelectedListItems","elms","listItemsElms","findParentListItemsNodes","getClosestEditingHost","parentTableCell","getParents","getBody","parentBlocks","parentBlock","listName","isValidChild","findLastParentListNode","parentLists","getSelectedListRoots","selectedLists","firstList","subsequentLists","getSelectedLists","getParentLists","getUniqueListRoots","lists","listRoots","isCustomList","className","inList","parents","isWithinNonEditable","isEditable","isWithinNonEditableList","setNodeChangeHandler","nodeChangeHandler","initialNode","on","off","fromElements","createDocumentFragment","fireListEvent","action","dispatch","trim","replace","internalSet","property","style","getPropertyValue","isSupported","setProperty","isList","hasFirstChildList","isEntryList","entry","isEntryComment","isIndented","depth","isSelected","cloneItemContent","content","joinSegment","createSegment","listType","segment","writeShallow","cast","newCast","createItem","itemAttributes","appendItem","listAttributes","normalizeSegment","isEntryFragment","writeDeep","tail","segments","size","parentListType","createSegments","joinSegments","populateSegments","composeList","entries","firstCommentEntryOpt","firstCommentEntry","fistCast","prepend","normalizeEntries","start","dirty","closestSiblingEntry","_value","cleanListProperties","matchingEntry","source","parseSingleItem","itemSelection","selectionState","nodeValue","isComment","set","currentItemEntry","isInPreviousLi","createEntry","end","childListEntries","parseList","parseItem","parsedSiblings","liChild","isFragment","composeEntries","wasType","group","type_1","groupBy","normalizedEntries","contentDocument","indentedComposer","outdentedComposer","listIndentation","indentation","entrySets","sourceList","parseLists","selectedListItems","getItemSelection","entrySet","indentEntry","indentSelectedEntries","composedLists","composedList","selectionIndentation","dlItems","getSelectedDlItems","isHandled","bookmark","getBookmark","dlIndentation","moveToBookmark","setRng","getRng","nodeChanged","handleIndentation","selectionIsWithinNonEditableList","indentListSelection","outdentListSelection","flattenListSelection","isZwsp","char","fn","initialArgs","_i","restArgs","all","curry","global$1","DOM$1","createBookmark","setupEndPoint","offsetNode","Math","min","collapsed","resolveBookmark","restoreEndPoint","idx","nodeIndex","listToggleActionFromListName","setAttribs","updateListWithDetails","detail","setStyle","updateListStyle","updateListAttrs","isInline","getEndPointNode","root","findBetterContainer","forward","walker","findBlockAncestor","dir","parent_1","applyList","listItemName","range","startPoint","commonAncestorContainer","getRootSearchStart","getContentEditable","toUpperCase","selectedTextBlocks","block","textBlocks","startNode","endNode","siblings","isBookmarkNode","getSelectedTextBlocks","listBlock","sib","sibStyle","getStyle","detailStyle","hasCompatibleStyle","rename","styles","removeStyles","mergeWithAdjacentLists","shouldMerge","list1","list2","isValidLists","hasSameListStyle","elm2","liSibling","updateList$1","newList","updateCustomList","classList","forEach","cls","_","startsWith","removeAttribute","hasListStyleDetail","toggleList","_detail","selectedSubLists","parentIsList","allLists","updateFunction_1","toggleMultipleLists","toggleSingleList","normalizeLists","grep","normalizeList","findNextCaretContainer","isForward","nonEmptyBlocks","getNonEmptyElements","isBogusBr","next","walkFn","prev2","hasOnlyOneBlockChild","isUnwrappable","assumeEditable","isContentEditable","editable","moveChildren","fromElm","toElm","targetElm","unwrapSingleBlockChild","mergeLiElements","listNode","ul","d1","d2","nestedLists","mergeForward","fromLi","toLi","setCursorLocation","mergeIntoEmptyLi","backspaceDeleteFromListToListCaret","selectionStartElm","rng_1","otherLi_1","willMergeParentIntoChild","undoManager","transact","resolvedBookmark","mergeBackward","oldParentElRef","backspaceDeleteIntoListCaret","otherLi_2","findValidElement","findRoot","otherLiCell","caretCell","removeBlock","collapse","hasListSelection","backspaceDelete","isCollapsed","backspaceDeleteCaret","execCommand","backspaceDeleteRange","parseAlphabeticBase26","str","chars","values","charValue","charCodeAt","pow","sum","composeAlphabeticBase26","remainder","quotient","floor","fromCharCode","open","currentList","windowManager","title","items","label","inputMode","initialData","getAttrib","listStyleType","parseInt","buttons","primary","onSubmit","api","isLowercase","deduceListType","parseStartValue","getData","close","queryListCommandState","registerDialog","addCommand","register$2","cmd","command","ui","update","setStyles","setAttrib","updateList","addQueryStateHandler","global","isTextNode","nodeBuffer","wrapInvalidChildren","insertListItem","buffer","refNode","insert","restBuffer","setup","keyCode","TAB","metaKeyPressed","shiftKey","preventDefault","setupTabKey","BACKSPACE","DELETE","setup$2","setupToggleButtonHandler","setEnabled","setActive","setupMenuButtonHandler","add","registerOption","register","processor","default","register$3","parser","addNodeFilter","setup$1","hasPlugin","exec","registry","addToggleButton","icon","active","tooltip","onAction","onSetup","register$1","listProperties","addMenuItem","addContextMenu"],"mappings":"kGAIA,IAAIA,EAAYC,GAAQA,EAAKD,UAAa,WAStC,OARAA,EAAWE,OAAOC,QAAU,SAASC,GACjC,IAAK,IAAIC,EAAG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S/b,GA7SP,SAAUA,GAAU,MAAQ,CAClCoX,gBAAiB,SAAU/C,GACvB+C,GAAgBpX,EAAQqU,EACpC,GA2SmBpT,CAAIjB,EACvB,GAGC,CAtnED"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../../public/tinymce/plugins/table/index.js"],"sourcesContent":["\"use strict\";\n// Exports the \"table\" plugin for usage with module loaders\n// Usage:\n// CommonJS:\n// require('tinymce/plugins/table')\n// ES2015:\n// import 'tinymce/plugins/table'\nrequire('./plugin.js');\n"],"names":["require$$0"],"mappings":"wIAOsBA"}
|
@@ -0,0 +1,2 @@
|
|
1
|
+
import{__exports as e}from"../../../../_virtual/plugin4.mjs";var t;function n(){if(t)return e;t=1;var n=e&&e.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},n.apply(this,arguments)},o=e&&e.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var o,r=0,l=t.length;r<l;r++)!o&&r in t||(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))};return function(){var e,t=tinymce.util.Tools.resolve("tinymce.PluginManager"),r=function(e){return function(t){return u=typeof(n=t),(null===n?"null":"object"===u&&Array.isArray(n)?"array":"object"===u&&(a=o=n,(r=String).prototype.isPrototypeOf(a)||(null===(l=o.constructor)||void 0===l?void 0:l.name)===r.name)?"string":u)===e;var n,o,r,l,u,a}},l=function(e){return function(t){return typeof t===e}},u=r("string"),a=r("array"),i=l("boolean"),c=(e=void 0,function(t){return e===t}),s=function(e){return!function(e){return null==e}(e)},f=l("function"),m=l("number"),d=function(){},p=function(e){return function(){return e}},b=function(e){return e},g=function(e,t){return e===t};function h(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var r=t.concat(n);return e.apply(null,r)}}var v=function(e){e()},y=p(!1),w=p(!0),S=function(){function e(e,t){this.tag=e,this.value=t}return e.some=function(t){return new e(!0,t)},e.none=function(){return e.singletonNone},e.prototype.fold=function(e,t){return this.tag?t(this.value):e()},e.prototype.isSome=function(){return this.tag},e.prototype.isNone=function(){return!this.tag},e.prototype.map=function(t){return this.tag?e.some(t(this.value)):e.none()},e.prototype.bind=function(t){return this.tag?t(this.value):e.none()},e.prototype.exists=function(e){return this.tag&&e(this.value)},e.prototype.forall=function(e){return!this.tag||e(this.value)},e.prototype.filter=function(t){return!this.tag||t(this.value)?this:e.none()},e.prototype.getOr=function(e){return this.tag?this.value:e},e.prototype.or=function(e){return this.tag?this:e},e.prototype.getOrThunk=function(e){return this.tag?this.value:e()},e.prototype.orThunk=function(e){return this.tag?this:e()},e.prototype.getOrDie=function(e){if(this.tag)return this.value;throw new Error(null!=e?e:"Called getOrDie on None")},e.from=function(t){return s(t)?e.some(t):e.none()},e.prototype.getOrNull=function(){return this.tag?this.value:null},e.prototype.getOrUndefined=function(){return this.value},e.prototype.each=function(e){this.tag&&e(this.value)},e.prototype.toArray=function(){return this.tag?[this.value]:[]},e.prototype.toString=function(){return this.tag?"some(".concat(this.value,")"):"none()"},e}();S.singletonNone=new S(!1);var C=Object.keys,T=Object.hasOwnProperty,x=function(e,t){for(var n=C(e),o=0,r=n.length;o<r;o++){var l=n[o];t(e[l],l)}},A=function(e,t){var n,o={};return function(e,t,n,o){x(e,(function(e,r){(t(e,r)?n:o)(e,r)}))}(e,t,(n=o,function(e,t){n[t]=e}),d),o},R=function(e){return function(e,t){var n=[];return x(e,(function(e,o){n.push(t(e,o))})),n}(e,b)},_=function(e){return C(e).length},O=function(e,t){return D(e,t)?S.from(e[t]):S.none()},D=function(e,t){return T.call(e,t)},N=function(e,t){return D(e,t)&&void 0!==e[t]&&null!==e[t]},I=Array.prototype.indexOf,M=Array.prototype.push,P=function(e,t){return function(e,t){return I.call(e,t)}(e,t)>-1},k=function(e,t){for(var n=0,o=e.length;n<o;n++){if(t(e[n],n))return!0}return!1},E=function(e,t){for(var n=[],o=0;o<e;o++)n.push(t(o));return n},B=function(e,t){for(var n=e.length,o=new Array(n),r=0;r<n;r++){var l=e[r];o[r]=t(l,r)}return o},F=function(e,t){for(var n=0,o=e.length;n<o;n++){t(e[n],n)}},q=function(e,t){for(var n=[],o=0,r=e.length;o<r;o++){var l=e[o];t(l,o)&&n.push(l)}return n},j=function(e,t,n){return F(e,(function(e,o){n=t(n,e,o)})),n},L=function(e,t){return function(e,t,n){for(var o=0,r=e.length;o<r;o++){var l=e[o];if(t(l,o))return S.some(l);if(n(l,o))break}return S.none()}(e,t,y)},H=function(e,t){return function(e){for(var t=[],n=0,o=e.length;n<o;++n){if(!a(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);M.apply(t,e[n])}return t}(B(e,t))},V=function(e,t){for(var n=0,o=e.length;n<o;++n){if(!0!==t(e[n],n))return!1}return!0},W=function(e,t){return t>=0&&t<e.length?S.some(e[t]):S.none()},z=function(e,t){for(var n=0;n<e.length;n++){var o=t(e[n],n);if(o.isSome())return o}return S.none()},$=function(e){if(null==e)throw new Error("Node cannot be null or undefined");return{dom:e}},U={fromHtml:function(e,t){var n=(t||document).createElement("div");if(n.innerHTML=e,!n.hasChildNodes()||n.childNodes.length>1){var o="HTML does not have a single root node";throw console.error(o,e),new Error(o)}return $(n.childNodes[0])},fromTag:function(e,t){var n=(t||document).createElement(e);return $(n)},fromText:function(e,t){var n=(t||document).createTextNode(e);return $(n)},fromDom:$,fromPoint:function(e,t,n){return S.from(e.dom.elementFromPoint(t,n)).map($)}},G=function(e,t){var n=e.dom;if(1!==n.nodeType)return!1;var o=n;if(void 0!==o.matches)return o.matches(t);if(void 0!==o.msMatchesSelector)return o.msMatchesSelector(t);if(void 0!==o.webkitMatchesSelector)return o.webkitMatchesSelector(t);if(void 0!==o.mozMatchesSelector)return o.mozMatchesSelector(t);throw new Error("Browser lacks native selectors")},K=function(e){return 1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType||0===e.childElementCount},J=function(e,t){return e.dom===t.dom},Q=G;"undefined"!=typeof window?window:Function("return this;")();var X,Y=function(e){return e.dom.nodeName.toLowerCase()},Z=function(e){return e.dom.nodeType},ee=function(e){return function(t){return Z(t)===e}},te=function(e){return 8===Z(e)||"#comment"===Y(e)},ne=ee(1),oe=ee(3),re=ee(9),le=ee(11),ue=function(e){return function(t){return ne(t)&&Y(t)===e}},ae=function(e){return re(e)?e:(t=e,U.fromDom(t.dom.ownerDocument));var t},ie=function(e){return S.from(e.dom.parentNode).map(U.fromDom)},ce=function(e,t){for(var n=f(t)?t:y,o=e.dom,r=[];null!==o.parentNode&&void 0!==o.parentNode;){var l=o.parentNode,u=U.fromDom(l);if(r.push(u),!0===n(u))break;o=l}return r},se=function(e){return S.from(e.dom.previousSibling).map(U.fromDom)},fe=function(e){return S.from(e.dom.nextSibling).map(U.fromDom)},me=function(e){return B(e.dom.childNodes,U.fromDom)},de=function(e){return function(e,t){var n=e.dom.childNodes;return S.from(n[t]).map(U.fromDom)}(e,0)},pe=f(Element.prototype.attachShadow)&&f(Node.prototype.getRootNode),be=pe?function(e){return U.fromDom(e.dom.getRootNode())}:ae,ge=function(e){var t,n=be(e);return le(t=n)&&s(t.dom.host)?S.some(n):S.none()},he=function(e){return U.fromDom(e.dom.host)},ve=function(e){var t=oe(e)?e.dom.parentNode:e.dom;if(null==t||null===t.ownerDocument)return!1;var n,o,r=t.ownerDocument;return ge(U.fromDom(t)).fold((function(){return r.body.contains(t)}),(n=ve,o=he,function(e){return n(o(e))}))},ye=function(e,t,n,o,r){return e(n,o)?S.some(n):f(r)&&r(n)?S.none():t(n,o,r)},we=function(e,t,n){for(var o=e.dom,r=f(n)?n:y;o.parentNode;){o=o.parentNode;var l=U.fromDom(o);if(t(l))return S.some(l);if(r(l))break}return S.none()},Se=function(e,t,n){return we(e,(function(e){return G(e,t)}),n)},Ce=function(e,t){return function(e,t){return L(e.dom.childNodes,(function(e){return t(U.fromDom(e))})).map(U.fromDom)}(e,(function(e){return G(e,t)}))},Te=function(e,t){return function(e,t){var n=void 0===t?document:t.dom;return K(n)?S.none():S.from(n.querySelector(e)).map(U.fromDom)}(t,e)},xe=function(e,t,n){return ye((function(e,t){return G(e,t)}),Se,e,t,n)},Ae=function(e,t){return void 0===t&&(t=!1),ve(e)?e.dom.isContentEditable:(n=e,xe(n,"[contenteditable]")).fold(p(t),(function(e){return"true"===Re(e)}));var n},Re=function(e){return e.dom.contentEditable},_e=function(e){return function(t){return J(t,function(e){return U.fromDom(e.getBody())}(e))}},Oe=function(e){return/^\d+(\.\d+)?$/.test(e)?e+"px":e},De=function(e){return U.fromDom(e.selection.getStart())},Ne=function(e){return(t=e,n=ue("table"),ye((function(e,t){return t(e)}),we,t,n,o)).forall(Ae);var t,n,o},Ie=function(e,t){var n=[];return F(me(e),(function(e){t(e)&&(n=n.concat([e])),n=n.concat(Ie(e,t))})),n},Me=function(e,t){return function(e,t){return q(me(e),t)}(e,(function(e){return G(e,t)}))},Pe=function(e,t){return function(e,t){var n=void 0===t?document:t.dom;return K(n)?[]:B(n.querySelectorAll(e),U.fromDom)}(t,e)},ke=function(e,t,n){if(!(u(n)||i(n)||m(n)))throw console.error("Invalid call to Attribute.set. Key ",t,":: Value ",n,":: Element ",e),new Error("Attribute value was not simple");e.setAttribute(t,n+"")},Ee=function(e,t,n){ke(e.dom,t,n)},Be=function(e,t){var n=e.dom.getAttribute(t);return null===n?void 0:n},Fe=function(e,t){return S.from(Be(e,t))},qe=function(e,t){e.dom.removeAttribute(t)},je=function(e,t,n){return void 0===n&&(n=g),e.exists((function(e){return n(e,t)}))},Le=function(e,t,n){return e.isSome()&&t.isSome()?S.some(n(e.getOrDie(),t.getOrDie())):S.none()},He=function(e,t){return function(e,t,n){return""===t||e.length>=t.length&&e.substr(n,n+t.length)===t}(e,t,0)},Ve=(X=/^\s+|\s+$/g,function(e){return e.replace(X,"")}),We=function(e){return e.length>0},ze=function(e,t){void 0===t&&(t=10);var n=parseInt(e,t);return isNaN(n)?S.none():S.some(n)},$e=function(e){return void 0!==e.style&&f(e.style.getPropertyValue)},Ue=function(e,t,n){!function(e,t,n){if(!u(n))throw console.error("Invalid call to CSS.set. Property ",t,":: Value ",n,":: Element ",e),new Error("CSS value must be a string: "+n);$e(e)&&e.style.setProperty(t,n)}(e.dom,t,n)},Ge=function(e,t){var n=e.dom,o=window.getComputedStyle(n).getPropertyValue(t);return""!==o||ve(e)?o:Ke(n,t)},Ke=function(e,t){return $e(e)?e.style.getPropertyValue(t):""},Je=function(e,t){var n=e.dom,o=Ke(n,t);return S.from(o).filter((function(e){return e.length>0}))},Qe=function(e,t){!function(e,t){$e(e)&&e.style.removeProperty(t)}(e.dom,t),je(Fe(e,"style").map(Ve),"")&&qe(e,"style")},Xe=function(e,t,n){return void 0===n&&(n=0),Fe(e,t).map((function(e){return parseInt(e,10)})).getOr(n)},Ye=function(e,t){return Ze(e,t,w)},Ze=function(e,t,n){return H(me(e),(function(e){return G(e,t)?n(e)?[e]:[]:Ze(e,t,n)}))},et=["tfoot","thead","tbody","colgroup"],tt=function(e,t,n){return{element:e,rowspan:t,colspan:n}},nt=function(e,t,n){return{element:e,cells:t,section:n}},ot=function(e,t){return function(e,t,n){return void 0===n&&(n=y),n(t)?S.none():P(e,Y(t))?S.some(t):Se(t,e.join(","),(function(e){return G(e,"table")||n(e)}))}(["td","th"],e,t)},rt=function(e,t){return xe(e,"table",t)},lt=function(e){return Ye(e,"tr")},ut=function(e){return rt(e).fold(p([]),(function(e){return Me(e,"colgroup")}))},at=function(e,t){return B(e,(function(e){if("colgroup"===Y(e)){var n=B(function(e){return G(e,"colgroup")?Me(e,"col"):H(ut(e),(function(e){return Me(e,"col")}))}(e),(function(e){var t=Xe(e,"span",1);return tt(e,1,t)}));return nt(e,n,"colgroup")}var o=B(function(e){return Ye(e,"th,td")}(e),(function(e){var t=Xe(e,"rowspan",1),n=Xe(e,"colspan",1);return tt(e,t,n)}));return nt(e,o,t(e))}))},it=function(e){return ie(e).map((function(e){var t=Y(e);return function(e){return P(et,e)}(t)?t:"tbody"})).getOr("tbody")},ct=function(e){return Fe(e,"data-snooker-locked-cols").bind((function(e){return S.from(e.match(/\d+/g))})).map((function(e){return function(e,t){for(var n={},o=0,r=e.length;o<r;o++){var l=e[o];n[String(l)]=t(l,o)}return n}(e,w)}))},st=function(e,t){return e+","+t},ft=function(e,t){var n=H(e.all,(function(e){return e.cells}));return q(n,t)},mt=function(e){var t,n={},o=[],r=(t=e,W(t,0)).map((function(e){return e.element})).bind(rt).bind(ct).getOr({}),l=0,u=0,a=0,i=function(e,t){for(var n=[],o=[],r=0,l=e.length;r<l;r++){var u=e[r];(t(u,r)?n:o).push(u)}return{pass:n,fail:o}}(e,(function(e){return"colgroup"===e.section})),c=i.pass,s=i.fail;F(s,(function(e){var t=[];F(e.cells,(function(e){for(var o=0;void 0!==n[st(a,o)];)o++;for(var l=N(r,o.toString()),i=function(e,t,n,o,r,l){return{element:e,rowspan:t,colspan:n,row:o,column:r,isLocked:l}}(e.element,e.rowspan,e.colspan,a,o,l),c=0;c<e.colspan;c++)for(var s=0;s<e.rowspan;s++){var f=o+c,m=st(a+s,f);n[m]=i,u=Math.max(u,f+1)}t.push(i)})),l++,o.push(nt(e.element,t,e.section)),a++}));var f=function(e){return W(e,e.length-1)}(c).map((function(e){var t=function(e){var t={},n=0;return F(e.cells,(function(e){var o=e.colspan;E(o,(function(r){var l=n+r;t[l]=function(e,t,n){return{element:e,colspan:t,column:n}}(e.element,o,l)})),n+=o})),t}(e),n=function(e,t){return{element:e,columns:t}}(e.element,R(t));return{colgroups:[n],columns:t}})).getOrThunk((function(){return{colgroups:[],columns:{}}})),m=f.columns,d=f.colgroups,p=function(e,t){return{rows:e,columns:t}}(l,u);return{grid:p,access:n,all:o,columns:m,colgroups:d}},dt=function(e){var t=function(e){var t=lt(e),n=ut(e),r=o(o([],n,!0),t,!0);return at(r,it)}(e);return mt(t)},pt=function(e,t,n){return S.from(e.access[st(t,n)])},bt=function(e,t,n){var o=ft(e,(function(e){return n(t,e.element)}));return o.length>0?S.some(o[0]):S.none()},gt=function(e){return H(e.all,(function(e){return e.cells}))},ht=function(e,t){return S.from(e.columns[t])},vt=tinymce.util.Tools.resolve("tinymce.util.Tools"),yt=function(e,t,n){for(var o,r=e.select("td,th",t),l=0;l<r.length;l++){var u=e.getStyle(r[l],n);if(c(o)&&(o=u),o!==u)return""}return o},wt=function(e,t,n){vt.each("left center right".split(" "),(function(o){o!==n&&e.formatter.remove("align"+o,{},t)})),n&&e.formatter.apply("align"+n,{},t)},St=function(e,t,o){e.dispatch("TableModified",n(n({},o),{table:t}))},Ct=function(e,t){return(n=e,o=parseFloat(n),isNaN(o)?S.none():S.some(o)).getOr(t);var n,o},Tt=function(e,t,n){return Ct(Ge(e,t),n)},xt=function(e,t){var n=e.dom,o=n.getBoundingClientRect().width||n.offsetWidth;return"border-box"===t?o:function(e,t,n,o){return t-Tt(e,"padding-".concat(n),0)-Tt(e,"padding-".concat(o),0)-Tt(e,"border-".concat(n,"-width"),0)-Tt(e,"border-".concat(o,"-width"),0)}(e,o,"left","right")},At=function(e){return xt(e,"content-box")},Rt=tinymce.util.Tools.resolve("tinymce.Env"),_t=E(5,(function(e){var t="".concat(e+1,"px");return{title:t,value:t}})),Ot=B(["Solid","Dotted","Dashed","Double","Groove","Ridge","Inset","Outset","None","Hidden"],(function(e){return{title:e,value:e.toLowerCase()}})),Dt="100%",Nt=function(e){var t,n=e.dom,o=null!==(t=n.getParent(e.selection.getStart(),n.isBlock))&&void 0!==t?t:e.getBody();return At(U.fromDom(o))+"px"},It=function(e){return function(t){return t.options.get(e)}},Mt=It("table_sizing_mode"),Pt=It("table_border_widths"),kt=It("table_border_styles"),Et=It("table_cell_advtab"),Bt=It("table_row_advtab"),Ft=It("table_advtab"),qt=It("table_appearance_options"),jt=It("table_grid"),Lt=It("table_style_by_css"),Ht=It("table_cell_class_list"),Vt=It("table_row_class_list"),Wt=It("table_class_list"),zt=It("table_toolbar"),$t=It("table_background_color_map"),Ut=It("table_border_color_map"),Gt=function(e){return"fixed"===Mt(e)},Kt=function(e){return"responsive"===Mt(e)},Jt=function(e){var t=e.options,o=t.get("table_default_styles");return t.isSet("table_default_styles")?o:function(e,t){return Kt(e)||!Lt(e)?t:Gt(e)?n(n({},t),{width:Nt(e)}):n(n({},t),{width:Dt})}(e,o)},Qt=function(e){var t=e.options,o=t.get("table_default_attributes");return t.isSet("table_default_attributes")?o:function(e,t){return Kt(e)||Lt(e)?t:Gt(e)?n(n({},t),{width:Nt(e)}):n(n({},t),{width:Dt})}(e,o)},Xt=function(e,t){return t.column>=e.startCol&&t.column+t.colspan-1<=e.finishCol&&t.row>=e.startRow&&t.row+t.rowspan-1<=e.finishRow},Yt=function(e,t,n){var o=bt(e,t,J),r=bt(e,n,J);return o.bind((function(e){return r.map((function(t){return n=e,o=t,r=Math.min(n.row,o.row),l=Math.min(n.column,o.column),u=Math.max(n.row+n.rowspan-1,o.row+o.rowspan-1),a=Math.max(n.column+n.colspan-1,o.column+o.colspan-1),{startRow:r,startCol:l,finishRow:u,finishCol:a};var n,o,r,l,u,a}))}))},Zt=function(e,t,n){return Yt(e,t,n).bind((function(t){return function(e,t){for(var n=!0,o=h(Xt,t),r=t.startRow;r<=t.finishRow;r++)for(var l=t.startCol;l<=t.finishCol;l++)n=n&&pt(e,r,l).exists(o);return n?S.some(t):S.none()}(e,t)}))},en=dt,tn=function(e,t){ie(e).each((function(n){n.dom.insertBefore(t.dom,e.dom)}))},nn=function(e,t){fe(e).fold((function(){ie(e).each((function(e){rn(e,t)}))}),(function(e){tn(e,t)}))},on=function(e,t){de(e).fold((function(){rn(e,t)}),(function(n){e.dom.insertBefore(t.dom,n.dom)}))},rn=function(e,t){e.dom.appendChild(t.dom)},ln=function(e,t){tn(e,t),rn(t,e)},un=function(e,t){F(t,(function(n,o){var r=0===o?e:t[o-1];nn(r,n)}))},an=function(e,t){F(t,(function(t){rn(e,t)}))},cn=function(e){var t=e.dom;null!==t.parentNode&&t.parentNode.removeChild(t)},sn=function(e){var t=me(e);t.length>0&&un(e,t),cn(e)},fn=function(e,t){var n=function(t){return e(t)?S.from(t.dom.nodeValue):S.none()};return{get:function(o){if(!e(o))throw new Error("Can only get "+t+" value of a "+t+" node");return n(o).getOr("")},getOption:n,set:function(n,o){if(!e(n))throw new Error("Can only set raw "+t+" value of a "+t+" node");n.dom.nodeValue=o}}}(oe,"text"),mn=function(e){return fn.get(e)},dn=function(e,t){return fn.set(e,t)},pn=["body","p","div","article","aside","figcaption","figure","footer","header","nav","section","ol","ul","li","table","thead","tbody","tfoot","caption","tr","td","th","h1","h2","h3","h4","h5","h6","blockquote","pre","address"],bn=function(e,t,n,o){var r,l,u=t(e,n);return r=function(n,o){var r=t(e,o);return gn(e,n,r)},l=u,function(e,t){for(var n=e.length-1;n>=0;n--)t(e[n],n)}(o,(function(e,t){l=r(l,e,t)})),l},gn=function(e,t,n){return t.bind((function(t){return n.filter(h(e.eq,t))}))},hn=function(e,t,n){return n.length>0?function(e,t,n,o){return o(e,t,n[0],n.slice(1))}(e,t,n,bn):S.none()},vn={up:p({selector:Se,closest:xe,predicate:we,all:ce}),down:p({selector:Pe,predicate:Ie}),styles:p({get:Ge,getRaw:Je,set:Ue,remove:Qe}),attrs:p({get:Be,set:Ee,remove:qe,copyTo:function(e,t){!function(e,t){var n=e.dom;x(t,(function(e,t){ke(n,t,e)}))}(t,j(e.dom.attributes,(function(e,t){return e[t.name]=t.value,e}),{}))}}),insert:p({before:tn,after:nn,afterAll:un,append:rn,appendAll:an,prepend:on,wrap:ln}),remove:p({unwrap:sn,remove:cn}),create:p({nu:U.fromTag,clone:function(e){return U.fromDom(e.dom.cloneNode(!1))},text:U.fromText}),query:p({comparePosition:function(e,t){return e.dom.compareDocumentPosition(t.dom)},prevSibling:se,nextSibling:fe}),property:p({children:me,name:Y,parent:ie,document:function(e){return ae(e).dom},isText:oe,isComment:te,isElement:ne,isSpecial:function(e){var t=Y(e);return P(["script","noscript","iframe","noframes","noembed","title","style","textarea","xmp"],t)},getLanguage:function(e){return ne(e)?Fe(e,"lang"):S.none()},getText:mn,setText:dn,isBoundary:function(e){return!!ne(e)&&("body"===Y(e)||P(pn,Y(e)))},isEmptyTag:function(e){return!!ne(e)&&P(["br","img","hr","input"],Y(e))},isNonEditable:function(e){return ne(e)&&"false"===Be(e,"contenteditable")}}),eq:J,is:Q},yn=function(e){return Se(e,"table")},wn=function(e,t,n){return Te(e,t).bind((function(t){return Te(e,n).bind((function(e){return(n=yn,o=[t,e],hn(vn,(function(e,t){return n(t)}),o)).map((function(n){return{first:t,last:e,table:n}}));var n,o}))}))},Sn=function(e,t){return function(e,t){var n=Pe(e,t);return n.length>0?S.some(n):S.none()}(e,t)},Cn=function(e,t,n){return wn(e,t,n).bind((function(t){var n=function(t){return J(e,t)},o="thead,tfoot,tbody,table",r=Se(t.first,o,n),l=Se(t.last,o,n);return r.bind((function(e){return l.bind((function(n){return J(e,n)?function(e,t,n){var o=en(e);return Zt(o,t,n)}(t.table,t.first,t.last):S.none()}))}))}))},Tn=function(e){return B(e,U.fromDom)},xn="data-mce-selected",An="data-mce-first-selected",Rn="data-mce-last-selected",_n={selected:xn,selectedSelector:"td["+xn+"],th["+xn+"]",firstSelected:An,firstSelectedSelector:"td["+An+"],th["+An+"]",lastSelected:Rn,lastSelectedSelector:"td["+Rn+"],th["+Rn+"]"},On=function(e){return function(t,n){var o,r=Y(t),l="col"===r||"colgroup"===r?rt(o=t).bind((function(e){return Sn(e,_n.firstSelectedSelector)})).fold(p(o),(function(e){return e[0]})):t;return xe(l,e,n)}},Dn=On("th,td,caption"),Nn=On("th,td"),In=function(e){return Tn(e.model.table.getSelectedCells())},Mn=function(e,t){var n=Nn(e),o=n.bind((function(e){return rt(e)})).map((function(e){return lt(e)}));return Le(n,o,(function(e,n){return q(n,(function(n){return k(Tn(n.dom.cells),(function(n){return"1"===Be(n,t)||J(n,e)}))}))})).getOr([])},Pn=[{text:"None",value:""},{text:"Top",value:"top"},{text:"Middle",value:"middle"},{text:"Bottom",value:"bottom"}],kn=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,En=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,Bn=function(e){return(t=e,n="#",He(t,n)?function(e,t){return e.substring(t)}(t,n.length):t).toUpperCase();var t,n},Fn=function(e){return function(e){return kn.test(e)||En.test(e)}(e)?S.some({value:Bn(e)}):S.none()},qn=function(e){var t=e.toString(16);return(1===t.length?"0"+t:t).toUpperCase()},jn=function(e){return function(e){return{value:Bn(e)}}(qn(e.red)+qn(e.green)+qn(e.blue))},Ln=/^\s*rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)\s*$/i,Hn=/^\s*rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?(?:\.\d+)?)\s*\)\s*$/i,Vn=function(e,t,n,o){return{red:e,green:t,blue:n,alpha:o}},Wn=function(e,t,n,o){var r=parseInt(e,10),l=parseInt(t,10),u=parseInt(n,10),a=parseFloat(o);return Vn(r,l,u,a)},zn=function(e){if("transparent"===e)return S.some(Vn(0,0,0,0));var t=Ln.exec(e);if(null!==t)return S.some(Wn(t[1],t[2],t[3],"1"));var n=Hn.exec(e);return null!==n?S.some(Wn(n[1],n[2],n[3],n[4])):S.none()},$n=function(e){var t=e;return{get:function(){return t},set:function(e){t=e}}},Un=function(){return e=function(e){return e.unbind()},t=$n(S.none()),n=function(){return t.get().each(e)},{clear:function(){n(),t.set(S.none())},isSet:function(){return t.get().isSome()},get:function(){return t.get()},set:function(e){n(),t.set(S.some(e))}};var e,t,n},Gn=function(e,t,n){return function(o){var r=Un(),l=!We(n),u=function(){var u=In(e),a=function(o){return e.formatter.match(t,{value:n},o.dom,l)};l?(o.setActive(!k(u,a)),r.set(e.formatter.formatChanged(t,(function(e){return o.setActive(!e)}),!0))):(o.setActive(V(u,a)),r.set(e.formatter.formatChanged(t,o.setActive,!1,{value:n})))};return e.initialized?u():e.on("init",u),r.clear}},Kn=function(e){return N(e,"menu")},Jn=function(e){return B(e,(function(e){var t=e.text||e.title||"";return Kn(e)?{text:t,items:Jn(e.menu)}:{text:t,value:e.value}}))},Qn=function(e,t,n,o){return B(t,(function(t){var r=t.text||t.title;return Kn(t)?{type:"nestedmenuitem",text:r,getSubmenuItems:function(){return Qn(e,t.menu,n,o)}}:{text:r,type:"togglemenuitem",onAction:function(){return o(t.value)},onSetup:Gn(e,n,t.value)}}))},Xn=function(e,t){return function(n){var o;e.execCommand("mceTableApplyCellStyle",!1,((o={})[t]=n,o))}},Yn=function(e){return H(e,(function(e){return Kn(e)?[n(n({},e),{menu:Yn(e.menu)})]:We(e.value)?[e]:[]}))},Zn=function(e,t,n,o){return function(r){return r(Qn(e,t,n,o))}},eo=function(e,t,n){var o=B(t,(function(e){return{text:e.title,value:"#"+(t=e.value,Fn(t).orThunk((function(){return zn(t).map(jn)})).getOrThunk((function(){var e=document.createElement("canvas");e.height=1,e.width=1;var n=e.getContext("2d");n.clearRect(0,0,e.width,e.height),n.fillStyle="#FFFFFF",n.fillStyle=t,n.fillRect(0,0,1,1);var o=n.getImageData(0,0,1,1).data,r=o[0],l=o[1],u=o[2],a=o[3];return jn(Vn(r,l,u,a))}))).value,type:"choiceitem"};var t}));return[{type:"fancymenuitem",fancytype:"colorswatch",initData:{colors:o.length>0?o:void 0,allowCustomColors:!1},onAction:function(t){var o,r="remove"===t.value?"":t.value;e.execCommand("mceTableApplyCellStyle",!1,((o={})[n]=r,o))}}]},to=function(e){return function(){var t="header"===e.queryCommandValue("mceTableRowType")?"body":"header";e.execCommand("mceTableRowType",!1,{type:t})}},no=function(e){return function(){var t="th"===e.queryCommandValue("mceTableColType")?"td":"th";e.execCommand("mceTableColType",!1,{type:t})}},oo=[{name:"width",type:"input",label:"Width"},{name:"height",type:"input",label:"Height"},{name:"celltype",type:"listbox",label:"Cell type",items:[{text:"Cell",value:"td"},{text:"Header cell",value:"th"}]},{name:"scope",type:"listbox",label:"Scope",items:[{text:"None",value:""},{text:"Row",value:"row"},{text:"Column",value:"col"},{text:"Row group",value:"rowgroup"},{text:"Column group",value:"colgroup"}]},{name:"halign",type:"listbox",label:"Horizontal align",items:[{text:"None",value:""},{text:"Left",value:"left"},{text:"Center",value:"center"},{text:"Right",value:"right"}]},{name:"valign",type:"listbox",label:"Vertical align",items:Pn}],ro=function(e){return oo.concat(function(e){var t=Jn(Ht(e));return t.length>0?S.some({name:"class",type:"listbox",label:"Class",items:t}):S.none()}(e).toArray())},lo=function(e,t){var n=[{name:"borderstyle",type:"listbox",label:"Border style",items:[{text:"Select...",value:""}].concat(Jn(kt(e)))},{name:"bordercolor",type:"colorinput",label:"Border color"},{name:"backgroundcolor",type:"colorinput",label:"Background color"}];return{title:"Advanced",name:"advanced",items:"cell"===t?[{name:"borderwidth",type:"input",label:"Border width"}].concat(n):n}},uo=function(e,t){var n=e.dom;return{setAttrib:function(e,o){n.setAttrib(t,e,o)},setStyle:function(e,o){n.setStyle(t,e,o)},setFormat:function(n,o){""===o?e.formatter.remove(n,{value:null},t,!0):e.formatter.apply(n,{value:o},t)}}},ao=ue("th"),io=function(e,t){return e&&t?"sectionCells":e?"section":"cells"},co=function(e){var t=q(e,(function(e){return ao(e.element)}));return 0===t.length?S.some("td"):t.length===e.length?S.some("th"):S.none()},so=function(e){var t=B(e,(function(e){return function(e){var t="thead"===e.section,n=je(co(e.cells),"th");return"tfoot"===e.section?{type:"footer"}:t||n?{type:"header",subType:io(t,n)}:{type:"body"}}(e).type})),n=P(t,"header"),o=P(t,"footer");if(n||o){var r=P(t,"body");return!n||r||o?n||r||!o?S.none():S.some("footer"):S.some("header")}return S.some("body")},fo=function(e,t){return z(e.all,(function(e){return L(e.cells,(function(e){return J(t,e.element)}))}))},mo=function(e,t,n){var o,r,l=function(e){for(var t=[],n=function(e){t.push(e)},o=0;o<e.length;o++)e[o].each(n);return t}(B(t.selection,(function(t){return ot(t).bind((function(t){return fo(e,t)})).filter(n)})));return o=l.length>0,r=l,o?S.some(r):S.none()},po=function(e,t){return mo(e,t,w)},bo=function(e,t){return V(t,(function(t){return function(e,t){return fo(e,t).exists((function(e){return!e.isLocked}))}(e,t)}))},go=function(e,t){return function(e,t){return t.mergable}(0,t).filter((function(t){return bo(e,t.cells)}))},ho=function(e,t){return function(e,t){return t.unmergable}(0,t).filter((function(t){return bo(e,t)}))},vo=function(e){if(!a(e))throw new Error("cases must be an array");if(0===e.length)throw new Error("there must be at least one case");var t=[],n={};return F(e,(function(o,r){var l=C(o);if(1!==l.length)throw new Error("one and only one name per case");var u=l[0],i=o[u];if(void 0!==n[u])throw new Error("duplicate key detected:"+u);if("cata"===u)throw new Error("cannot have a case named cata (sorry)");if(!a(i))throw new Error("case arguments must be an array");t.push(u),n[u]=function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var l=n.length;if(l!==i.length)throw new Error("Wrong number of arguments to case "+u+". Expected "+i.length+" ("+i+"), got "+l);return{fold:function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];if(t.length!==e.length)throw new Error("Wrong number of arguments to fold. Expected "+e.length+", got "+t.length);return t[r].apply(null,n)},match:function(e){var o=C(e);if(t.length!==o.length)throw new Error("Wrong number of arguments to match. Expected: "+t.join(",")+"\nActual: "+o.join(","));if(!V(t,(function(e){return P(o,e)})))throw new Error("Not all branches were specified when using match. Specified: "+o.join(", ")+"\nRequired: "+t.join(", "));return e[u].apply(null,n)},log:function(e){console.log(e,{constructors:t,constructor:u,params:n})}}}})),n},yo=vo([{none:[]},{only:["index"]},{left:["index","next"]},{middle:["prev","index","next"]},{right:["prev","index"]}]);n({},yo);var wo=function(e,t){var n=dt(e);return po(n,t).bind((function(e){var t=e[e.length-1],o=e[0].row,r=t.row+t.rowspan,l=n.all.slice(o,r);return so(l)})).getOr("")},So=function(e){return He(e,"rgb")?zn(t=e).map(jn).map((function(e){return"#"+e.value})).getOr(t):e;var t},Co=function(e){var t=U.fromDom(e);return{borderwidth:Je(t,"border-width").getOr(""),borderstyle:Je(t,"border-style").getOr(""),bordercolor:Je(t,"border-color").map(So).getOr(""),backgroundcolor:Je(t,"background-color").map(So).getOr("")}},To=function(e){var t=e[0],n=e.slice(1);return F(n,(function(e){F(C(t),(function(n){x(e,(function(e,o){var r=t[n];""!==r&&n===o&&r!==e&&(t[n]="")}))}))})),t},xo=function(e,t,n,o){return L(e,(function(e){return!c(n.formatter.matchNode(o,t+e))})).getOr("")},Ao=h(xo,["left","center","right"],"align"),Ro=h(xo,["top","middle","bottom"],"valign"),_o=function(e){return rt(U.fromDom(e)).map((function(t){var n={selection:Tn(e.cells)};return wo(t,n)})).getOr("")},Oo=function(e,t){var n=dt(e),o=gt(n),r=q(o,(function(e){return k(t,(function(t){return J(e.element,t)}))}));return B(r,(function(e){return{element:e.element.dom,column:ht(n,e.column).map((function(e){return e.element.dom}))}}))},Do=function(e,t,n,o){var r=1===t.length;F(t,(function(t){var l=t.element,u=r?w:o,a=uo(e,l);!function(e,t,n,o){o("scope")&&e.setAttrib("scope",n.scope),o("class")&&e.setAttrib("class",n.class),o("height")&&e.setStyle("height",Oe(n.height)),o("width")&&t.setStyle("width",Oe(n.width))}(a,t.column.map((function(t){return uo(e,t)})).getOr(a),n,u),Et(e)&&function(e,t,n){n("backgroundcolor")&&e.setFormat("tablecellbackgroundcolor",t.backgroundcolor),n("bordercolor")&&e.setFormat("tablecellbordercolor",t.bordercolor),n("borderstyle")&&e.setFormat("tablecellborderstyle",t.borderstyle),n("borderwidth")&&e.setFormat("tablecellborderwidth",Oe(t.borderwidth))}(a,n,u),o("halign")&&wt(e,l,n.halign),o("valign")&&function(e,t,n){vt.each("top middle bottom".split(" "),(function(o){o!==n&&e.formatter.remove("valign"+o,{},t)})),n&&e.formatter.apply("valign"+n,{},t)}(e,l,n.valign)}))},No=function(e,t,n,o){var r=o.getData();o.close(),e.undoManager.transact((function(){!function(e,t,n,o){var r=A(o,(function(e,t){return n[t]!==e}));_(r)>0&&t.length>=1&&rt(t[0]).each((function(n){var l=Oo(n,t),u=_(A(r,(function(e,t){return"scope"!==t&&"celltype"!==t})))>0,a=D(r,"celltype");(u||D(r,"scope"))&&Do(e,l,o,h(D,r)),a&&function(e,t){e.execCommand("mceTableCellType",!1,{type:t.celltype,no_events:!0})}(e,o),St(e,n.dom,{structure:a,style:u})}))}(e,t,n,r),e.focus()}))},Io=function(e,t){var o=rt(t[0]).map((function(o){return B(Oo(o,t),(function(t){return function(e,t,o,r){var l,u=e.dom,a=r.getOr(t),i=function(e,t){return u.getStyle(e,t)||u.getAttrib(e,t)};return n({width:i(a,"width"),height:i(t,"height"),scope:u.getAttrib(t,"scope"),celltype:(l=t,l.nodeName.toLowerCase()),class:u.getAttrib(t,"class",""),halign:Ao(e,t),valign:Ro(e,t)},o?Co(t):{})}(e,t.element,Et(e),t.column)}))}));return To(o.getOrDie())},Mo=function(e){var t=In(e);if(0!==t.length){var n=Io(e,t),o={type:"tabpanel",tabs:[{title:"General",name:"general",items:ro(e)},lo(e,"cell")]},r={type:"panel",items:[{type:"grid",columns:2,items:ro(e)}]};e.windowManager.open({title:"Cell Properties",size:"normal",body:Et(e)?o:r,buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:n,onSubmit:h(No,e,t,n)})}},Po=[{type:"listbox",name:"type",label:"Row type",items:[{text:"Header",value:"header"},{text:"Body",value:"body"},{text:"Footer",value:"footer"}]},{type:"listbox",name:"align",label:"Alignment",items:[{text:"None",value:""},{text:"Left",value:"left"},{text:"Center",value:"center"},{text:"Right",value:"right"}]},{label:"Height",name:"height",type:"input"}],ko=function(e){return Po.concat(function(e){var t=Jn(Vt(e));return t.length>0?S.some({name:"class",type:"listbox",label:"Class",items:t}):S.none()}(e).toArray())},Eo=function(e,t,n,o){var r=1===t.length?w:o;F(t,(function(t){var l=uo(e,t);!function(e,t,n){n("class")&&e.setAttrib("class",t.class),n("height")&&e.setStyle("height",Oe(t.height))}(l,n,r),Bt(e)&&function(e,t,n){n("backgroundcolor")&&e.setStyle("background-color",t.backgroundcolor),n("bordercolor")&&e.setStyle("border-color",t.bordercolor),n("borderstyle")&&e.setStyle("border-style",t.borderstyle)}(l,n,r),o("align")&&wt(e,t,n.align)}))},Bo=function(e,t,n,o){var r=o.getData();o.close(),e.undoManager.transact((function(){!function(e,t,n,o){var r=A(o,(function(e,t){return n[t]!==e}));if(_(r)>0){var l=D(r,"type"),u=!l||_(r)>1;u&&Eo(e,t,o,h(D,r)),l&&function(e,t){e.execCommand("mceTableRowType",!1,{type:t.type,no_events:!0})}(e,o),rt(U.fromDom(t[0])).each((function(t){return St(e,t.dom,{structure:l,style:u})}))}}(e,t,n,r),e.focus()}))},Fo=function(e){var t=Mn(De(e),_n.selected);if(0!==t.length){var o=B(t,(function(t){return function(e,t,o){var r=e.dom;return n({height:r.getStyle(t,"height")||r.getAttrib(t,"height"),class:r.getAttrib(t,"class",""),type:_o(t),align:Ao(e,t)},o?Co(t):{})}(e,t.dom,Bt(e))})),r=To(o),l={type:"tabpanel",tabs:[{title:"General",name:"general",items:ko(e)},lo(e,"row")]},u={type:"panel",items:[{type:"grid",columns:2,items:ko(e)}]};e.windowManager.open({title:"Row Properties",size:"normal",body:Bt(e)?l:u,buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:r,onSubmit:h(Bo,e,B(t,(function(e){return e.dom})),r)})}},qo=function(e,t,n){var o=n?[{type:"input",name:"cols",label:"Cols",inputMode:"numeric"},{type:"input",name:"rows",label:"Rows",inputMode:"numeric"}]:[],r=qt(e)?[{type:"input",name:"cellspacing",label:"Cell spacing",inputMode:"numeric"},{type:"input",name:"cellpadding",label:"Cell padding",inputMode:"numeric"},{type:"input",name:"border",label:"Border width"},{type:"label",label:"Caption",items:[{type:"checkbox",name:"caption",label:"Show caption"}]}]:[],l=t.length>0?[{type:"listbox",name:"class",label:"Class",items:t}]:[];return o.concat([{type:"input",name:"width",label:"Width"},{type:"input",name:"height",label:"Height"}]).concat(r).concat([{type:"listbox",name:"align",label:"Alignment",items:[{text:"None",value:""},{text:"Left",value:"left"},{text:"Center",value:"center"},{text:"Right",value:"right"}]}]).concat(l)},jo=function(e,t,n,o){if("TD"===t.tagName||"TH"===t.tagName)u(n)&&s(o)?e.setStyle(t,n,o):e.setStyles(t,n);else if(t.children)for(var r=0;r<t.children.length;r++)jo(e,t.children[r],n,o)},Lo=function(e,t,o,r){var l=e.dom,u={},a={},i=Lt(e),s=Ft(e);if(c(o.class)||(u.class=o.class),a.height=Oe(o.height),i?a.width=Oe(o.width):l.getAttrib(t,"width")&&(u.width=function(e){return e?e.replace(/px$/,""):""}(o.width)),i?(a["border-width"]=Oe(o.border),a["border-spacing"]=Oe(o.cellspacing)):(u.border=o.border,u.cellpadding=o.cellpadding,u.cellspacing=o.cellspacing),i&&t.children){var f={};if(r.border&&(f["border-width"]=Oe(o.border)),r.cellpadding&&(f.padding=Oe(o.cellpadding)),s&&r.bordercolor&&(f["border-color"]=o.bordercolor),!function(e){for(var t in e)if(T.call(e,t))return!1;return!0}(f))for(var m=0;m<t.children.length;m++)jo(l,t.children[m],f)}if(s){var d=o;a["background-color"]=d.backgroundcolor,a["border-color"]=d.bordercolor,a["border-style"]=d.borderstyle}l.setStyles(t,n(n({},Jt(e)),a)),l.setAttribs(t,n(n({},Qt(e)),u))},Ho=function(e,t,n,o){var r=e.dom,l=o.getData(),u=A(l,(function(e,t){return n[t]!==e}));o.close(),""===l.class&&delete l.class,e.undoManager.transact((function(){if(!t){var n=ze(l.cols).getOr(1),o=ze(l.rows).getOr(1);e.execCommand("mceInsertTable",!1,{rows:o,columns:n}),t=Nn(De(e),_e(e)).bind((function(t){return rt(t,_e(e))})).map((function(e){return e.dom})).getOrDie()}if(_(u)>0){var a={border:D(u,"border"),bordercolor:D(u,"bordercolor"),cellpadding:D(u,"cellpadding")};Lo(e,t,l,a);var i=r.select("caption",t)[0];(i&&!l.caption||!i&&l.caption)&&e.execCommand("mceTableToggleCaption"),wt(e,t,l.align)}if(e.focus(),e.addVisual(),_(u)>0){var c=D(u,"caption"),s=!c||_(u)>1;St(e,t,{structure:c,style:s})}}))},Vo=function(e,t){var o,r=e.dom,l=function(e,t){var o,r,l,u=Jt(e),a=Qt(e),i=t?{borderstyle:O(u,"border-style").getOr(""),bordercolor:So(O(u,"border-color").getOr("")),backgroundcolor:So(O(u,"background-color").getOr(""))}:{};return n(n(n(n(n(n({},{height:"",width:"100%",cellspacing:"",cellpadding:"",caption:!1,class:"",align:"",border:""}),u),a),i),(l=u["border-width"],Lt(e)&&l?{border:l}:O(a,"border").fold((function(){return{}}),(function(e){return{border:e}})))),(o=O(u,"border-spacing").or(O(a,"cellspacing")).fold((function(){return{}}),(function(e){return{cellspacing:e}})),r=O(u,"border-padding").or(O(a,"cellpadding")).fold((function(){return{}}),(function(e){return{cellpadding:e}})),n(n({},o),r)))}(e,Ft(e));t?(l.cols="1",l.rows="1",Ft(e)&&(l.borderstyle="",l.bordercolor="",l.backgroundcolor="")):(o=r.getParent(e.selection.getStart(),"table",e.getBody()))?l=function(e,t,o){var r=e.dom,l=Lt(e)?r.getStyle(t,"border-spacing")||r.getAttrib(t,"cellspacing"):r.getAttrib(t,"cellspacing")||r.getStyle(t,"border-spacing"),u=Lt(e)?yt(r,t,"padding")||r.getAttrib(t,"cellpadding"):r.getAttrib(t,"cellpadding")||yt(r,t,"padding");return n({width:r.getStyle(t,"width")||r.getAttrib(t,"width"),height:r.getStyle(t,"height")||r.getAttrib(t,"height"),cellspacing:null!=l?l:"",cellpadding:null!=u?u:"",border:function(t,n){var o=Je(U.fromDom(n),"border-width");return Lt(e)&&o.isSome()?o.getOr(""):t.getAttrib(n,"border")||yt(e.dom,n,"border-width")||yt(e.dom,n,"border")||""}(r,t),caption:!!r.select("caption",t)[0],class:r.getAttrib(t,"class",""),align:Ao(e,t)},o?Co(t):{})}(e,o,Ft(e)):Ft(e)&&(l.borderstyle="",l.bordercolor="",l.backgroundcolor="");var u=Jn(Wt(e));u.length>0&&l.class&&(l.class=l.class.replace(/\s*mce\-item\-table\s*/g,""));var a={type:"grid",columns:2,items:qo(e,u,t)},i=Ft(e)?{type:"tabpanel",tabs:[{title:"General",name:"general",items:[a]},lo(e,"table")]}:{type:"panel",items:[a]};e.windowManager.open({title:"Table Properties",size:"normal",body:i,onSubmit:h(Ho,e,o,l),buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:l})},Wo=function(e){x({mceTableProps:h(Vo,e,!1),mceTableRowProps:h(Fo,e),mceTableCellProps:h(Mo,e),mceInsertTableDialog:h(Vo,e,!0)},(function(t,n){return e.addCommand(n,(function(){return n=t,void(Ne(De(e))&&n());var n}))}))},zo=b,$o=function(e){var t=function(e,t){return Fe(e,t).exists((function(e){return parseInt(e,10)>1}))};return e.length>0&&V(e,(function(e){return t(e,"rowspan")||t(e,"colspan")}))?S.some(e):S.none()},Uo=function(e,t,n){return t.length<=1?S.none():Cn(e,n.firstSelectedSelector,n.lastSelectedSelector).map((function(e){return{bounds:e,cells:t}}))},Go=function(e){var t=$n(S.none()),n=$n([]),o=S.none(),r=ue("caption"),l=function(e){return o.forall((function(t){return!t[e]}))},u=function(){return Dn(function(e){return U.fromDom(e.selection.getEnd())}(e),_e(e))},a=function(){return Dn(De(e),_e(e)).bind((function(t){return n=Le(rt(t),u().bind(rt),(function(n,o){return J(n,o)?r(t)?S.some(function(e){return{element:e,mergable:S.none(),unmergable:S.none(),selection:[e]}}(t)):S.some(function(e,t,n){return{element:n,mergable:Uo(t,e,_n),unmergable:$o(e),selection:zo(e)}}(In(e),n,t)):S.none()})),n.bind(b);var n}))},i=function(e){return rt(e.element).map((function(t){var n=dt(t),o=po(n,e).getOr([]),r=j(o,(function(e,t){return t.isLocked&&(e.onAny=!0,0===t.column?e.onFirst=!0:t.column+t.colspan>=n.grid.columns&&(e.onLast=!0)),e}),{onAny:!1,onFirst:!1,onLast:!1});return{mergeable:go(n,e).isSome(),unmergeable:ho(n,e).isSome(),locked:r}}))},c=function(){t.set(function(e){var t,n=!1;return function(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];return n||(n=!0,t=e.apply(null,o)),t}}(a)()),o=t.get().bind(i),F(n.get(),v)},s=function(e){return e(),n.set(n.get().concat([e])),function(){n.set(q(n.get(),(function(t){return t!==e})))}},f=function(n,o){return s((function(){return t.get().fold((function(){n.setEnabled(!1)}),(function(t){n.setEnabled(!o(t)&&e.selection.isEditable())}))}))},m=function(n,o,r){return s((function(){return t.get().fold((function(){n.setEnabled(!1),n.setActive(!1)}),(function(t){n.setEnabled(!o(t)&&e.selection.isEditable()),n.setActive(r(t))}))}))},d=function(e){return o.exists((function(t){return t.locked[e]}))},p=function(t,n){return function(o){return m(o,(function(e){return r(e.element)}),(function(){return e.queryCommandValue(t)===n}))}},g=p("mceTableRowType","header"),h=p("mceTableColType","th");return e.on("NodeChange ExecCommand TableSelectorChange",c),{onSetupTable:function(e){return f(e,(function(e){return!1}))},onSetupCellOrRow:function(e){return f(e,(function(e){return r(e.element)}))},onSetupColumn:function(e){return function(t){return f(t,(function(t){return r(t.element)||d(e)}))}},onSetupPasteable:function(e){return function(t){return f(t,(function(t){return r(t.element)||e().isNone()}))}},onSetupPasteableColumn:function(e,t){return function(n){return f(n,(function(n){return r(n.element)||e().isNone()||d(t)}))}},onSetupMergeable:function(e){return f(e,(function(e){return l("mergeable")}))},onSetupUnmergeable:function(e){return f(e,(function(e){return l("unmergeable")}))},resetTargets:c,onSetupTableWithCaption:function(t){return m(t,y,(function(t){return rt(t.element,_e(e)).exists((function(e){return Ce(e,"caption").isSome()}))}))},onSetupTableRowHeaders:g,onSetupTableColumnHeaders:h,targets:t.get}},Ko=tinymce.util.Tools.resolve("tinymce.FakeClipboard"),Jo="x-tinymce/dom-table-",Qo=Jo+"rows",Xo=Jo+"columns",Yo=function(e){var t,n=null!==(t=Ko.read())&&void 0!==t?t:[];return z(n,(function(t){return S.from(t.getType(e))}))},Zo=function(){return Yo(Qo)},er=function(){return Yo(Xo)},tr=function(e){return function(t){var n=function(){t.setEnabled(e.selection.isEditable())};return e.on("NodeChange",n),n(),function(){e.off("NodeChange",n)}}},nr=function(e){return function(t){var n=function(){t.setEnabled(e.selection.isEditable())};return e.on("NodeChange",n),n(),function(){e.off("NodeChange",n)}}},or=function(e){var t=Go(e);!function(e){var t=e.options.register;t("table_border_widths",{processor:"object[]",default:_t}),t("table_border_styles",{processor:"object[]",default:Ot}),t("table_cell_advtab",{processor:"boolean",default:!0}),t("table_row_advtab",{processor:"boolean",default:!0}),t("table_advtab",{processor:"boolean",default:!0}),t("table_appearance_options",{processor:"boolean",default:!0}),t("table_grid",{processor:"boolean",default:!Rt.deviceType.isTouch()}),t("table_cell_class_list",{processor:"object[]",default:[]}),t("table_row_class_list",{processor:"object[]",default:[]}),t("table_class_list",{processor:"object[]",default:[]}),t("table_toolbar",{processor:"string",default:"tableprops tabledelete | tableinsertrowbefore tableinsertrowafter tabledeleterow | tableinsertcolbefore tableinsertcolafter tabledeletecol"}),t("table_background_color_map",{processor:"object[]",default:[]}),t("table_border_color_map",{processor:"object[]",default:[]})}(e),Wo(e),function(e,t){var o=function(t){return function(){return e.execCommand(t)}},r=function(t,r){return!!e.queryCommandSupported(r.command)&&(e.ui.registry.addMenuItem(t,n(n({},r),{onAction:f(r.onAction)?r.onAction:o(r.command)})),!0)},l=function(t,r){e.queryCommandSupported(r.command)&&e.ui.registry.addToggleMenuItem(t,n(n({},r),{onAction:f(r.onAction)?r.onAction:o(r.command)}))},u=function(t){e.execCommand("mceInsertTable",!1,{rows:t.numRows,columns:t.numColumns})},a=[r("tableinsertrowbefore",{text:"Insert row before",icon:"table-insert-row-above",command:"mceTableInsertRowBefore",onSetup:t.onSetupCellOrRow}),r("tableinsertrowafter",{text:"Insert row after",icon:"table-insert-row-after",command:"mceTableInsertRowAfter",onSetup:t.onSetupCellOrRow}),r("tabledeleterow",{text:"Delete row",icon:"table-delete-row",command:"mceTableDeleteRow",onSetup:t.onSetupCellOrRow}),r("tablerowprops",{text:"Row properties",icon:"table-row-properties",command:"mceTableRowProps",onSetup:t.onSetupCellOrRow}),r("tablecutrow",{text:"Cut row",icon:"cut-row",command:"mceTableCutRow",onSetup:t.onSetupCellOrRow}),r("tablecopyrow",{text:"Copy row",icon:"duplicate-row",command:"mceTableCopyRow",onSetup:t.onSetupCellOrRow}),r("tablepasterowbefore",{text:"Paste row before",icon:"paste-row-before",command:"mceTablePasteRowBefore",onSetup:t.onSetupPasteable(Zo)}),r("tablepasterowafter",{text:"Paste row after",icon:"paste-row-after",command:"mceTablePasteRowAfter",onSetup:t.onSetupPasteable(Zo)})],i=[r("tableinsertcolumnbefore",{text:"Insert column before",icon:"table-insert-column-before",command:"mceTableInsertColBefore",onSetup:t.onSetupColumn("onFirst")}),r("tableinsertcolumnafter",{text:"Insert column after",icon:"table-insert-column-after",command:"mceTableInsertColAfter",onSetup:t.onSetupColumn("onLast")}),r("tabledeletecolumn",{text:"Delete column",icon:"table-delete-column",command:"mceTableDeleteCol",onSetup:t.onSetupColumn("onAny")}),r("tablecutcolumn",{text:"Cut column",icon:"cut-column",command:"mceTableCutCol",onSetup:t.onSetupColumn("onAny")}),r("tablecopycolumn",{text:"Copy column",icon:"duplicate-column",command:"mceTableCopyCol",onSetup:t.onSetupColumn("onAny")}),r("tablepastecolumnbefore",{text:"Paste column before",icon:"paste-column-before",command:"mceTablePasteColBefore",onSetup:t.onSetupPasteableColumn(er,"onFirst")}),r("tablepastecolumnafter",{text:"Paste column after",icon:"paste-column-after",command:"mceTablePasteColAfter",onSetup:t.onSetupPasteableColumn(er,"onLast")})],c=[r("tablecellprops",{text:"Cell properties",icon:"table-cell-properties",command:"mceTableCellProps",onSetup:t.onSetupCellOrRow}),r("tablemergecells",{text:"Merge cells",icon:"table-merge-cells",command:"mceTableMergeCells",onSetup:t.onSetupMergeable}),r("tablesplitcells",{text:"Split cell",icon:"table-split-cells",command:"mceTableSplitCells",onSetup:t.onSetupUnmergeable})];jt(e)?e.ui.registry.addNestedMenuItem("inserttable",{text:"Table",icon:"table",getSubmenuItems:function(){return[{type:"fancymenuitem",fancytype:"inserttable",onAction:u}]},onSetup:nr(e)}):e.ui.registry.addMenuItem("inserttable",{text:"Table",icon:"table",onAction:o("mceInsertTableDialog"),onSetup:nr(e)}),e.ui.registry.addMenuItem("inserttabledialog",{text:"Insert table",icon:"table",onAction:o("mceInsertTableDialog"),onSetup:nr(e)}),r("tableprops",{text:"Table properties",onSetup:t.onSetupTable,command:"mceTableProps"}),r("deletetable",{text:"Delete table",icon:"table-delete-table",onSetup:t.onSetupTable,command:"mceTableDelete"}),P(a,!0)&&e.ui.registry.addNestedMenuItem("row",{type:"nestedmenuitem",text:"Row",getSubmenuItems:p("tableinsertrowbefore tableinsertrowafter tabledeleterow tablerowprops | tablecutrow tablecopyrow tablepasterowbefore tablepasterowafter")}),P(i,!0)&&e.ui.registry.addNestedMenuItem("column",{type:"nestedmenuitem",text:"Column",getSubmenuItems:p("tableinsertcolumnbefore tableinsertcolumnafter tabledeletecolumn | tablecutcolumn tablecopycolumn tablepastecolumnbefore tablepastecolumnafter")}),P(c,!0)&&e.ui.registry.addNestedMenuItem("cell",{type:"nestedmenuitem",text:"Cell",getSubmenuItems:p("tablecellprops tablemergecells tablesplitcells")}),e.ui.registry.addContextMenu("table",{update:function(){return t.resetTargets(),t.targets().fold(p(""),(function(e){return"caption"===Y(e.element)?"tableprops deletetable":"cell row column | advtablesort | tableprops deletetable"}))}});var s=Yn(Wt(e));0!==s.length&&e.queryCommandSupported("mceTableToggleClass")&&e.ui.registry.addNestedMenuItem("tableclass",{icon:"table-classes",text:"Table styles",getSubmenuItems:function(){return Qn(e,s,"tableclass",(function(t){return e.execCommand("mceTableToggleClass",!1,t)}))},onSetup:t.onSetupTable});var m=Yn(Ht(e));0!==m.length&&e.queryCommandSupported("mceTableCellToggleClass")&&e.ui.registry.addNestedMenuItem("tablecellclass",{icon:"table-cell-classes",text:"Cell styles",getSubmenuItems:function(){return Qn(e,m,"tablecellclass",(function(t){return e.execCommand("mceTableCellToggleClass",!1,t)}))},onSetup:t.onSetupCellOrRow}),e.queryCommandSupported("mceTableApplyCellStyle")&&(e.ui.registry.addNestedMenuItem("tablecellvalign",{icon:"vertical-align",text:"Vertical align",getSubmenuItems:function(){return Qn(e,Pn,"tablecellverticalalign",Xn(e,"vertical-align"))},onSetup:t.onSetupCellOrRow}),e.ui.registry.addNestedMenuItem("tablecellborderwidth",{icon:"border-width",text:"Border width",getSubmenuItems:function(){return Qn(e,Pt(e),"tablecellborderwidth",Xn(e,"border-width"))},onSetup:t.onSetupCellOrRow}),e.ui.registry.addNestedMenuItem("tablecellborderstyle",{icon:"border-style",text:"Border style",getSubmenuItems:function(){return Qn(e,kt(e),"tablecellborderstyle",Xn(e,"border-style"))},onSetup:t.onSetupCellOrRow}),e.ui.registry.addNestedMenuItem("tablecellbackgroundcolor",{icon:"cell-background-color",text:"Background color",getSubmenuItems:function(){return eo(e,$t(e),"background-color")},onSetup:t.onSetupCellOrRow}),e.ui.registry.addNestedMenuItem("tablecellbordercolor",{icon:"cell-border-color",text:"Border color",getSubmenuItems:function(){return eo(e,Ut(e),"border-color")},onSetup:t.onSetupCellOrRow})),l("tablecaption",{icon:"table-caption",text:"Table caption",command:"mceTableToggleCaption",onSetup:t.onSetupTableWithCaption}),l("tablerowheader",{text:"Row header",icon:"table-top-header",command:"mceTableRowType",onAction:to(e),onSetup:t.onSetupTableRowHeaders}),l("tablecolheader",{text:"Column header",icon:"table-left-header",command:"mceTableColType",onAction:no(e),onSetup:t.onSetupTableRowHeaders})}(e,t),function(e,t){e.ui.registry.addMenuButton("table",{tooltip:"Table",icon:"table",onSetup:tr(e),fetch:function(e){return e("inserttable | cell row column | advtablesort | tableprops deletetable")}});var o=function(t){return function(){return e.execCommand(t)}},r=function(t,r){e.queryCommandSupported(r.command)&&e.ui.registry.addButton(t,n(n({},r),{onAction:f(r.onAction)?r.onAction:o(r.command)}))},l=function(t,r){e.queryCommandSupported(r.command)&&e.ui.registry.addToggleButton(t,n(n({},r),{onAction:f(r.onAction)?r.onAction:o(r.command)}))};r("tableprops",{tooltip:"Table properties",command:"mceTableProps",icon:"table",onSetup:t.onSetupTable}),r("tabledelete",{tooltip:"Delete table",command:"mceTableDelete",icon:"table-delete-table",onSetup:t.onSetupTable}),r("tablecellprops",{tooltip:"Cell properties",command:"mceTableCellProps",icon:"table-cell-properties",onSetup:t.onSetupCellOrRow}),r("tablemergecells",{tooltip:"Merge cells",command:"mceTableMergeCells",icon:"table-merge-cells",onSetup:t.onSetupMergeable}),r("tablesplitcells",{tooltip:"Split cell",command:"mceTableSplitCells",icon:"table-split-cells",onSetup:t.onSetupUnmergeable}),r("tableinsertrowbefore",{tooltip:"Insert row before",command:"mceTableInsertRowBefore",icon:"table-insert-row-above",onSetup:t.onSetupCellOrRow}),r("tableinsertrowafter",{tooltip:"Insert row after",command:"mceTableInsertRowAfter",icon:"table-insert-row-after",onSetup:t.onSetupCellOrRow}),r("tabledeleterow",{tooltip:"Delete row",command:"mceTableDeleteRow",icon:"table-delete-row",onSetup:t.onSetupCellOrRow}),r("tablerowprops",{tooltip:"Row properties",command:"mceTableRowProps",icon:"table-row-properties",onSetup:t.onSetupCellOrRow}),r("tableinsertcolbefore",{tooltip:"Insert column before",command:"mceTableInsertColBefore",icon:"table-insert-column-before",onSetup:t.onSetupColumn("onFirst")}),r("tableinsertcolafter",{tooltip:"Insert column after",command:"mceTableInsertColAfter",icon:"table-insert-column-after",onSetup:t.onSetupColumn("onLast")}),r("tabledeletecol",{tooltip:"Delete column",command:"mceTableDeleteCol",icon:"table-delete-column",onSetup:t.onSetupColumn("onAny")}),r("tablecutrow",{tooltip:"Cut row",command:"mceTableCutRow",icon:"cut-row",onSetup:t.onSetupCellOrRow}),r("tablecopyrow",{tooltip:"Copy row",command:"mceTableCopyRow",icon:"duplicate-row",onSetup:t.onSetupCellOrRow}),r("tablepasterowbefore",{tooltip:"Paste row before",command:"mceTablePasteRowBefore",icon:"paste-row-before",onSetup:t.onSetupPasteable(Zo)}),r("tablepasterowafter",{tooltip:"Paste row after",command:"mceTablePasteRowAfter",icon:"paste-row-after",onSetup:t.onSetupPasteable(Zo)}),r("tablecutcol",{tooltip:"Cut column",command:"mceTableCutCol",icon:"cut-column",onSetup:t.onSetupColumn("onAny")}),r("tablecopycol",{tooltip:"Copy column",command:"mceTableCopyCol",icon:"duplicate-column",onSetup:t.onSetupColumn("onAny")}),r("tablepastecolbefore",{tooltip:"Paste column before",command:"mceTablePasteColBefore",icon:"paste-column-before",onSetup:t.onSetupPasteableColumn(er,"onFirst")}),r("tablepastecolafter",{tooltip:"Paste column after",command:"mceTablePasteColAfter",icon:"paste-column-after",onSetup:t.onSetupPasteableColumn(er,"onLast")}),r("tableinsertdialog",{tooltip:"Insert table",command:"mceInsertTableDialog",icon:"table",onSetup:tr(e)});var u=Yn(Wt(e));0!==u.length&&e.queryCommandSupported("mceTableToggleClass")&&e.ui.registry.addMenuButton("tableclass",{icon:"table-classes",tooltip:"Table styles",fetch:Zn(e,u,"tableclass",(function(t){return e.execCommand("mceTableToggleClass",!1,t)})),onSetup:t.onSetupTable});var a=Yn(Ht(e));0!==a.length&&e.queryCommandSupported("mceTableCellToggleClass")&&e.ui.registry.addMenuButton("tablecellclass",{icon:"table-cell-classes",tooltip:"Cell styles",fetch:Zn(e,a,"tablecellclass",(function(t){return e.execCommand("mceTableCellToggleClass",!1,t)})),onSetup:t.onSetupCellOrRow}),e.queryCommandSupported("mceTableApplyCellStyle")&&(e.ui.registry.addMenuButton("tablecellvalign",{icon:"vertical-align",tooltip:"Vertical align",fetch:Zn(e,Pn,"tablecellverticalalign",Xn(e,"vertical-align")),onSetup:t.onSetupCellOrRow}),e.ui.registry.addMenuButton("tablecellborderwidth",{icon:"border-width",tooltip:"Border width",fetch:Zn(e,Pt(e),"tablecellborderwidth",Xn(e,"border-width")),onSetup:t.onSetupCellOrRow}),e.ui.registry.addMenuButton("tablecellborderstyle",{icon:"border-style",tooltip:"Border style",fetch:Zn(e,kt(e),"tablecellborderstyle",Xn(e,"border-style")),onSetup:t.onSetupCellOrRow}),e.ui.registry.addMenuButton("tablecellbackgroundcolor",{icon:"cell-background-color",tooltip:"Background color",fetch:function(t){return t(eo(e,$t(e),"background-color"))},onSetup:t.onSetupCellOrRow}),e.ui.registry.addMenuButton("tablecellbordercolor",{icon:"cell-border-color",tooltip:"Border color",fetch:function(t){return t(eo(e,Ut(e),"border-color"))},onSetup:t.onSetupCellOrRow})),l("tablecaption",{tooltip:"Table caption",icon:"table-caption",command:"mceTableToggleCaption",onSetup:t.onSetupTableWithCaption}),l("tablerowheader",{tooltip:"Row header",icon:"table-top-header",command:"mceTableRowType",onAction:to(e),onSetup:t.onSetupTableRowHeaders}),l("tablecolheader",{tooltip:"Column header",icon:"table-left-header",command:"mceTableColType",onAction:no(e),onSetup:t.onSetupTableColumnHeaders})}(e,t),function(e){var t=zt(e);t.length>0&&e.ui.registry.addContextToolbar("table",{predicate:function(t){return e.dom.is(t,"table")&&e.getBody().contains(t)&&e.dom.isEditable(t.parentNode)},items:t,scope:"node",position:"node"})}(e)};t.add("table",or)}(),e}export{n as __require};
|
2
|
+
//# sourceMappingURL=plugin.mjs.map
|