@lotte-innovate/ui-component-test 0.2.25 → 0.2.27

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1026) hide show
  1. package/README.md +172 -15
  2. package/dist/globals.css +4 -0
  3. package/dist/lib/Typography/Header/index.d.ts +15 -0
  4. package/dist/lib/Typography/Header/index.js +56 -0
  5. package/dist/lib/Typography/Text/index.d.ts +15 -0
  6. package/dist/lib/Typography/Text/index.js +45 -0
  7. package/dist/lib/Typography/index.d.ts +2 -0
  8. package/dist/lib/Typography/index.js +2 -0
  9. package/dist/lib/_virtual/_commonjsHelpers.mjs +2 -0
  10. package/dist/lib/_virtual/_commonjsHelpers.mjs.map +1 -0
  11. package/dist/lib/_virtual/index.mjs +2 -0
  12. package/dist/lib/_virtual/index2.mjs +2 -0
  13. package/dist/lib/_virtual/index2.mjs.map +1 -0
  14. package/dist/lib/_virtual/index3.mjs +2 -0
  15. package/dist/lib/_virtual/index3.mjs.map +1 -0
  16. package/dist/lib/_virtual/react-is.development.mjs +2 -0
  17. package/dist/lib/_virtual/react-is.development.mjs.map +1 -0
  18. package/dist/lib/_virtual/react-is.production.min.mjs +2 -0
  19. package/dist/lib/_virtual/react-is.production.min.mjs.map +1 -0
  20. package/dist/lib/color/alpha.d.ts +784 -0
  21. package/dist/lib/color/alpha.js +784 -0
  22. package/dist/lib/color/constants.d.ts +15 -0
  23. package/dist/lib/color/constants.js +265 -0
  24. package/dist/lib/color/dark.d.ts +392 -0
  25. package/dist/lib/color/dark.js +392 -0
  26. package/dist/lib/color/krdsColors.d.ts +309 -0
  27. package/dist/lib/color/krdsColors.js +309 -0
  28. package/dist/lib/color/light.d.ts +392 -0
  29. package/dist/lib/color/light.js +393 -0
  30. package/dist/lib/components/Accordion/index.d.ts +22 -0
  31. package/dist/lib/components/Accordion/index.js +81 -0
  32. package/dist/lib/components/AlertDialog/AlertDialogAction.d.ts +14 -0
  33. package/dist/lib/components/AlertDialog/AlertDialogAction.js +63 -0
  34. package/dist/lib/components/AlertDialog/AlertDialogCancel.d.ts +13 -0
  35. package/dist/lib/components/AlertDialog/AlertDialogCancel.js +61 -0
  36. package/dist/lib/components/AlertDialog/AlertDialogContent.d.ts +11 -0
  37. package/dist/lib/components/AlertDialog/AlertDialogContent.js +52 -0
  38. package/dist/lib/components/AlertDialog/AlertDialogDescription.d.ts +10 -0
  39. package/dist/lib/components/AlertDialog/AlertDialogDescription.js +48 -0
  40. package/dist/lib/components/AlertDialog/AlertDialogRoot.d.ts +16 -0
  41. package/dist/lib/components/AlertDialog/AlertDialogRoot.js +50 -0
  42. package/dist/lib/components/AlertDialog/AlertDialogTitle.d.ts +10 -0
  43. package/dist/lib/components/AlertDialog/AlertDialogTitle.js +48 -0
  44. package/dist/lib/components/AlertDialog/AlertDialogTrigger.d.ts +17 -0
  45. package/dist/lib/components/AlertDialog/AlertDialogTrigger.js +67 -0
  46. package/dist/lib/components/AlertDialog/index.d.ts +11 -0
  47. package/dist/lib/components/AlertDialog/index.js +17 -0
  48. package/dist/lib/components/AspectRatio/index.d.ts +10 -0
  49. package/dist/lib/components/AspectRatio/index.js +45 -0
  50. package/dist/lib/components/Avatar/index.d.ts +21 -0
  51. package/dist/lib/components/Avatar/index.js +67 -0
  52. package/dist/lib/components/Badge/index.d.ts +18 -0
  53. package/dist/lib/components/Badge/index.js +65 -0
  54. package/dist/lib/components/BarChart/index.d.ts +33 -0
  55. package/dist/lib/components/BarChart/index.js +63 -0
  56. package/dist/lib/components/Breadcrumb/BreadcrumbEllipsis.d.ts +9 -0
  57. package/dist/lib/components/Breadcrumb/BreadcrumbEllipsis.js +34 -0
  58. package/dist/lib/components/Breadcrumb/BreadcrumbItem.d.ts +6 -0
  59. package/dist/lib/components/Breadcrumb/BreadcrumbItem.js +32 -0
  60. package/dist/lib/components/Breadcrumb/BreadcrumbLink.d.ts +10 -0
  61. package/dist/lib/components/Breadcrumb/BreadcrumbLink.js +47 -0
  62. package/dist/lib/components/Breadcrumb/BreadcrumbList.d.ts +6 -0
  63. package/dist/lib/components/Breadcrumb/BreadcrumbList.js +34 -0
  64. package/dist/lib/components/Breadcrumb/BreadcrumbPage.d.ts +8 -0
  65. package/dist/lib/components/Breadcrumb/BreadcrumbPage.js +45 -0
  66. package/dist/lib/components/Breadcrumb/BreadcrumbRoot.d.ts +14 -0
  67. package/dist/lib/components/Breadcrumb/BreadcrumbRoot.js +59 -0
  68. package/dist/lib/components/Breadcrumb/BreadcrumbSeparator.d.ts +9 -0
  69. package/dist/lib/components/Breadcrumb/BreadcrumbSeparator.js +34 -0
  70. package/dist/lib/components/Breadcrumb/index.d.ts +21 -0
  71. package/dist/lib/components/Breadcrumb/index.js +17 -0
  72. package/dist/lib/components/BubbleChart/index.d.ts +28 -0
  73. package/dist/lib/components/BubbleChart/index.js +82 -0
  74. package/dist/lib/components/Button/index.d.ts +16 -0
  75. package/dist/lib/components/Button/index.js +67 -0
  76. package/dist/lib/components/Calendar/index.d.ts +8 -0
  77. package/dist/lib/components/Calendar/index.js +45 -0
  78. package/dist/lib/components/Callout/CalloutIcon.d.ts +13 -0
  79. package/dist/lib/components/Callout/CalloutIcon.js +58 -0
  80. package/dist/lib/components/Callout/CalloutRoot.d.ts +18 -0
  81. package/dist/lib/components/Callout/CalloutRoot.js +80 -0
  82. package/dist/lib/components/Callout/CalloutText.d.ts +10 -0
  83. package/dist/lib/components/Callout/CalloutText.js +53 -0
  84. package/dist/lib/components/Callout/index.d.ts +7 -0
  85. package/dist/lib/components/Callout/index.js +9 -0
  86. package/dist/lib/components/Card/index.d.ts +14 -0
  87. package/dist/lib/components/Card/index.js +72 -0
  88. package/dist/lib/components/Checkbox/index.d.ts +17 -0
  89. package/dist/lib/components/Checkbox/index.js +98 -0
  90. package/dist/lib/components/CheckboxCard/index.d.ts +20 -0
  91. package/dist/lib/components/CheckboxCard/index.js +66 -0
  92. package/dist/lib/components/CheckboxGroup/CheckboxGroupItem.d.ts +5 -0
  93. package/dist/lib/components/CheckboxGroup/CheckboxGroupItem.js +34 -0
  94. package/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.d.ts +21 -0
  95. package/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.js +59 -0
  96. package/dist/lib/components/CheckboxGroup/index.d.ts +6 -0
  97. package/dist/lib/components/CheckboxGroup/index.js +4 -0
  98. package/dist/lib/components/Collapsible/index.d.ts +21 -0
  99. package/dist/lib/components/Collapsible/index.js +75 -0
  100. package/dist/lib/components/ContextMenu/ContextMenuCheckboxItem.d.ts +4 -0
  101. package/dist/lib/components/ContextMenu/ContextMenuCheckboxItem.js +43 -0
  102. package/dist/lib/components/ContextMenu/ContextMenuContent.d.ts +11 -0
  103. package/dist/lib/components/ContextMenu/ContextMenuContent.js +57 -0
  104. package/dist/lib/components/ContextMenu/ContextMenuGroup.d.ts +4 -0
  105. package/dist/lib/components/ContextMenu/ContextMenuGroup.js +30 -0
  106. package/dist/lib/components/ContextMenu/ContextMenuItem.d.ts +13 -0
  107. package/dist/lib/components/ContextMenu/ContextMenuItem.js +61 -0
  108. package/dist/lib/components/ContextMenu/ContextMenuItemIndicator.d.ts +10 -0
  109. package/dist/lib/components/ContextMenu/ContextMenuItemIndicator.js +51 -0
  110. package/dist/lib/components/ContextMenu/ContextMenuLabel.d.ts +11 -0
  111. package/dist/lib/components/ContextMenu/ContextMenuLabel.js +49 -0
  112. package/dist/lib/components/ContextMenu/ContextMenuRadioGroup.d.ts +8 -0
  113. package/dist/lib/components/ContextMenu/ContextMenuRadioGroup.js +32 -0
  114. package/dist/lib/components/ContextMenu/ContextMenuRadioItem.d.ts +4 -0
  115. package/dist/lib/components/ContextMenu/ContextMenuRadioItem.js +45 -0
  116. package/dist/lib/components/ContextMenu/ContextMenuRoot.d.ts +13 -0
  117. package/dist/lib/components/ContextMenu/ContextMenuRoot.js +52 -0
  118. package/dist/lib/components/ContextMenu/ContextMenuSeparator.d.ts +3 -0
  119. package/dist/lib/components/ContextMenu/ContextMenuSeparator.js +31 -0
  120. package/dist/lib/components/ContextMenu/ContextMenuSubContent.d.ts +11 -0
  121. package/dist/lib/components/ContextMenu/ContextMenuSubContent.js +55 -0
  122. package/dist/lib/components/ContextMenu/ContextMenuSubTrigger.d.ts +4 -0
  123. package/dist/lib/components/ContextMenu/ContextMenuSubTrigger.js +42 -0
  124. package/dist/lib/components/ContextMenu/ContextMenuTrigger.d.ts +4 -0
  125. package/dist/lib/components/ContextMenu/ContextMenuTrigger.js +31 -0
  126. package/dist/lib/components/ContextMenu/index.d.ts +17 -0
  127. package/dist/lib/components/ContextMenu/index.js +29 -0
  128. package/dist/lib/components/DataList/DataListItem.d.ts +9 -0
  129. package/dist/lib/components/DataList/DataListItem.js +44 -0
  130. package/dist/lib/components/DataList/DataListLabel.d.ts +10 -0
  131. package/dist/lib/components/DataList/DataListLabel.js +50 -0
  132. package/dist/lib/components/DataList/DataListRoot.d.ts +14 -0
  133. package/dist/lib/components/DataList/DataListRoot.js +61 -0
  134. package/dist/lib/components/DataList/DataListValue.d.ts +11 -0
  135. package/dist/lib/components/DataList/DataListValue.js +52 -0
  136. package/dist/lib/components/DataList/index.d.ts +8 -0
  137. package/dist/lib/components/DataList/index.js +6 -0
  138. package/dist/lib/components/Datepicker/index.d.ts +14 -0
  139. package/dist/lib/components/Datepicker/index.js +35 -0
  140. package/dist/lib/components/Dialog/DialogAction.d.ts +11 -0
  141. package/dist/lib/components/Dialog/DialogAction.js +61 -0
  142. package/dist/lib/components/Dialog/DialogCancel.d.ts +10 -0
  143. package/dist/lib/components/Dialog/DialogCancel.js +56 -0
  144. package/dist/lib/components/Dialog/DialogContent.d.ts +11 -0
  145. package/dist/lib/components/Dialog/DialogContent.js +58 -0
  146. package/dist/lib/components/Dialog/DialogDescription.d.ts +9 -0
  147. package/dist/lib/components/Dialog/DialogDescription.js +48 -0
  148. package/dist/lib/components/Dialog/DialogRoot.d.ts +12 -0
  149. package/dist/lib/components/Dialog/DialogRoot.js +46 -0
  150. package/dist/lib/components/Dialog/DialogSlot.d.ts +8 -0
  151. package/dist/lib/components/Dialog/DialogSlot.js +47 -0
  152. package/dist/lib/components/Dialog/DialogTitle.d.ts +9 -0
  153. package/dist/lib/components/Dialog/DialogTitle.js +48 -0
  154. package/dist/lib/components/Dialog/DialogTrigger.d.ts +3 -0
  155. package/dist/lib/components/Dialog/DialogTrigger.js +30 -0
  156. package/dist/lib/components/Dialog/index.d.ts +15 -0
  157. package/dist/lib/components/Dialog/index.js +19 -0
  158. package/dist/lib/components/DoughnutChart/index.d.ts +22 -0
  159. package/dist/lib/components/DoughnutChart/index.js +65 -0
  160. package/dist/lib/components/DropdownMenu/DropdonMenuRadioGroup.d.ts +3 -0
  161. package/dist/lib/components/DropdownMenu/DropdonMenuRadioGroup.js +30 -0
  162. package/dist/lib/components/DropdownMenu/DropdonMenuSubContent.d.ts +11 -0
  163. package/dist/lib/components/DropdownMenu/DropdonMenuSubContent.js +61 -0
  164. package/dist/lib/components/DropdownMenu/DropdownMenuCheckboxItem.d.ts +7 -0
  165. package/dist/lib/components/DropdownMenu/DropdownMenuCheckboxItem.js +42 -0
  166. package/dist/lib/components/DropdownMenu/DropdownMenuContent.d.ts +11 -0
  167. package/dist/lib/components/DropdownMenu/DropdownMenuContent.js +57 -0
  168. package/dist/lib/components/DropdownMenu/DropdownMenuItem.d.ts +15 -0
  169. package/dist/lib/components/DropdownMenu/DropdownMenuItem.js +60 -0
  170. package/dist/lib/components/DropdownMenu/DropdownMenuItemIndicator.d.ts +10 -0
  171. package/dist/lib/components/DropdownMenu/DropdownMenuItemIndicator.js +49 -0
  172. package/dist/lib/components/DropdownMenu/DropdownMenuLable.d.ts +10 -0
  173. package/dist/lib/components/DropdownMenu/DropdownMenuLable.js +46 -0
  174. package/dist/lib/components/DropdownMenu/DropdownMenuRadioItem.d.ts +6 -0
  175. package/dist/lib/components/DropdownMenu/DropdownMenuRadioItem.js +42 -0
  176. package/dist/lib/components/DropdownMenu/DropdownMenuRoot.d.ts +14 -0
  177. package/dist/lib/components/DropdownMenu/DropdownMenuRoot.js +48 -0
  178. package/dist/lib/components/DropdownMenu/DropdownMenuSeparator.d.ts +3 -0
  179. package/dist/lib/components/DropdownMenu/DropdownMenuSeparator.js +31 -0
  180. package/dist/lib/components/DropdownMenu/DropdownMenuSub.d.ts +3 -0
  181. package/dist/lib/components/DropdownMenu/DropdownMenuSub.js +30 -0
  182. package/dist/lib/components/DropdownMenu/DropdownMenuSubTrigger.d.ts +4 -0
  183. package/dist/lib/components/DropdownMenu/DropdownMenuSubTrigger.js +42 -0
  184. package/dist/lib/components/DropdownMenu/DropdownMenuTrigger.d.ts +14 -0
  185. package/dist/lib/components/DropdownMenu/DropdownMenuTrigger.js +54 -0
  186. package/dist/lib/components/DropdownMenu/index.d.ts +20 -0
  187. package/dist/lib/components/DropdownMenu/index.js +29 -0
  188. package/dist/lib/components/Editor/index.d.ts +1 -1
  189. package/dist/lib/components/Editor/index.js +1 -2
  190. package/dist/lib/components/Footer/index.d.ts +11 -0
  191. package/dist/lib/components/Footer/index.js +57 -0
  192. package/dist/lib/components/Gnb/GnbInfo.d.ts +9 -0
  193. package/dist/lib/components/Gnb/GnbInfo.js +46 -0
  194. package/dist/lib/components/Gnb/GnbLogo.d.ts +10 -0
  195. package/dist/lib/components/Gnb/GnbLogo.js +46 -0
  196. package/dist/lib/components/Gnb/GnbMenu.d.ts +9 -0
  197. package/dist/lib/components/Gnb/GnbMenu.js +46 -0
  198. package/dist/lib/components/Gnb/GnbMenuItem.d.ts +11 -0
  199. package/dist/lib/components/Gnb/GnbMenuItem.js +46 -0
  200. package/dist/lib/components/Gnb/GnbRoot.d.ts +11 -0
  201. package/dist/lib/components/Gnb/GnbRoot.js +53 -0
  202. package/dist/lib/components/Gnb/index.d.ts +9 -0
  203. package/dist/lib/components/Gnb/index.js +13 -0
  204. package/dist/lib/components/Grid/Pagination.d.ts +2 -0
  205. package/dist/lib/components/Grid/Pagination.js +18 -0
  206. package/dist/lib/components/Grid/index.d.ts +7 -0
  207. package/dist/lib/components/Grid/index.js +59 -0
  208. package/dist/lib/components/Grid/useGrid.d.ts +3 -0
  209. package/dist/lib/components/Grid/useGrid.js +81 -0
  210. package/dist/lib/components/HoverCard/HoverCardContent.d.ts +13 -0
  211. package/dist/lib/components/HoverCard/HoverCardContent.js +62 -0
  212. package/dist/lib/components/HoverCard/HoverCardRoot.d.ts +11 -0
  213. package/dist/lib/components/HoverCard/HoverCardRoot.js +48 -0
  214. package/dist/lib/components/HoverCard/HoverCardTrigger.d.ts +3 -0
  215. package/dist/lib/components/HoverCard/HoverCardTrigger.js +30 -0
  216. package/dist/lib/components/HoverCard/index.d.ts +10 -0
  217. package/dist/lib/components/HoverCard/index.js +9 -0
  218. package/dist/lib/components/IconButton/index.d.ts +15 -0
  219. package/dist/lib/components/IconButton/index.js +73 -0
  220. package/dist/lib/components/Inset/index.d.ts +10 -0
  221. package/dist/lib/components/Inset/index.js +57 -0
  222. package/dist/lib/components/Label/index.d.ts +20 -0
  223. package/dist/lib/components/Label/index.js +64 -0
  224. package/dist/lib/components/LineChart/index.d.ts +43 -0
  225. package/dist/lib/components/LineChart/index.js +61 -0
  226. package/dist/lib/components/Menubar/MenubarCheckboxItem.d.ts +4 -0
  227. package/dist/lib/components/Menubar/MenubarCheckboxItem.js +40 -0
  228. package/dist/lib/components/Menubar/MenubarContent.d.ts +11 -0
  229. package/dist/lib/components/Menubar/MenubarContent.js +61 -0
  230. package/dist/lib/components/Menubar/MenubarItem.d.ts +13 -0
  231. package/dist/lib/components/Menubar/MenubarItem.js +56 -0
  232. package/dist/lib/components/Menubar/MenubarItemIndicator.d.ts +10 -0
  233. package/dist/lib/components/Menubar/MenubarItemIndicator.js +50 -0
  234. package/dist/lib/components/Menubar/MenubarMenu.d.ts +5 -0
  235. package/dist/lib/components/Menubar/MenubarMenu.js +30 -0
  236. package/dist/lib/components/Menubar/MenubarRadioGroup.d.ts +8 -0
  237. package/dist/lib/components/Menubar/MenubarRadioGroup.js +32 -0
  238. package/dist/lib/components/Menubar/MenubarRadioItem.d.ts +4 -0
  239. package/dist/lib/components/Menubar/MenubarRadioItem.js +42 -0
  240. package/dist/lib/components/Menubar/MenubarRoot.d.ts +19 -0
  241. package/dist/lib/components/Menubar/MenubarRoot.js +73 -0
  242. package/dist/lib/components/Menubar/MenubarSeparator.d.ts +3 -0
  243. package/dist/lib/components/Menubar/MenubarSeparator.js +31 -0
  244. package/dist/lib/components/Menubar/MenubarSub.d.ts +3 -0
  245. package/dist/lib/components/Menubar/MenubarSub.js +30 -0
  246. package/dist/lib/components/Menubar/MenubarSubContent.d.ts +10 -0
  247. package/dist/lib/components/Menubar/MenubarSubContent.js +52 -0
  248. package/dist/lib/components/Menubar/MenubarSubTrigger.d.ts +4 -0
  249. package/dist/lib/components/Menubar/MenubarSubTrigger.js +43 -0
  250. package/dist/lib/components/Menubar/MenubarTrigger.d.ts +12 -0
  251. package/dist/lib/components/Menubar/MenubarTrigger.js +58 -0
  252. package/dist/lib/components/Menubar/index.d.ts +19 -0
  253. package/dist/lib/components/Menubar/index.js +29 -0
  254. package/dist/lib/components/NavigationMenu/NavigationMenuContent.d.ts +11 -0
  255. package/dist/lib/components/NavigationMenu/NavigationMenuContent.js +49 -0
  256. package/dist/lib/components/NavigationMenu/NavigationMenuIndicator.d.ts +3 -0
  257. package/dist/lib/components/NavigationMenu/NavigationMenuIndicator.js +31 -0
  258. package/dist/lib/components/NavigationMenu/NavigationMenuItem.d.ts +3 -0
  259. package/dist/lib/components/NavigationMenu/NavigationMenuItem.js +30 -0
  260. package/dist/lib/components/NavigationMenu/NavigationMenuLink.d.ts +13 -0
  261. package/dist/lib/components/NavigationMenu/NavigationMenuLink.js +53 -0
  262. package/dist/lib/components/NavigationMenu/NavigationMenuList.d.ts +12 -0
  263. package/dist/lib/components/NavigationMenu/NavigationMenuList.js +49 -0
  264. package/dist/lib/components/NavigationMenu/NavigationMenuRoot.d.ts +14 -0
  265. package/dist/lib/components/NavigationMenu/NavigationMenuRoot.js +53 -0
  266. package/dist/lib/components/NavigationMenu/NavigationMenuTrigger.d.ts +13 -0
  267. package/dist/lib/components/NavigationMenu/NavigationMenuTrigger.js +60 -0
  268. package/dist/lib/components/NavigationMenu/NavigationMenuViewport.d.ts +12 -0
  269. package/dist/lib/components/NavigationMenu/NavigationMenuViewport.js +54 -0
  270. package/dist/lib/components/NavigationMenu/index.d.ts +12 -0
  271. package/dist/lib/components/NavigationMenu/index.js +10 -0
  272. package/dist/lib/components/PieChart/index.d.ts +22 -0
  273. package/dist/lib/components/PieChart/index.js +65 -0
  274. package/dist/lib/components/Popover/PopoverClose.d.ts +9 -0
  275. package/dist/lib/components/Popover/PopoverClose.js +49 -0
  276. package/dist/lib/components/Popover/PopoverContent.d.ts +13 -0
  277. package/dist/lib/components/Popover/PopoverContent.js +66 -0
  278. package/dist/lib/components/Popover/PopoverRoot.d.ts +11 -0
  279. package/dist/lib/components/Popover/PopoverRoot.js +43 -0
  280. package/dist/lib/components/Popover/PopoverTrigger.d.ts +3 -0
  281. package/dist/lib/components/Popover/PopoverTrigger.js +30 -0
  282. package/dist/lib/components/Popover/index.d.ts +11 -0
  283. package/dist/lib/components/Popover/index.js +11 -0
  284. package/dist/lib/components/Progress/index.d.ts +13 -0
  285. package/dist/lib/components/Progress/index.js +67 -0
  286. package/dist/lib/components/RadarChart/index.d.ts +32 -0
  287. package/dist/lib/components/RadarChart/index.js +85 -0
  288. package/dist/lib/components/Radio/index.d.ts +13 -0
  289. package/dist/lib/components/Radio/index.js +60 -0
  290. package/dist/lib/components/RadioCards/RadioCardsItem.d.ts +10 -0
  291. package/dist/lib/components/RadioCards/RadioCardsItem.js +55 -0
  292. package/dist/lib/components/RadioCards/RadioCardsRoot.d.ts +13 -0
  293. package/dist/lib/components/RadioCards/RadioCardsRoot.js +56 -0
  294. package/dist/lib/components/RadioCards/index.d.ts +6 -0
  295. package/dist/lib/components/RadioCards/index.js +7 -0
  296. package/dist/lib/components/RadioGroup/RadioGroupItem.d.ts +12 -0
  297. package/dist/lib/components/RadioGroup/RadioGroupItem.js +47 -0
  298. package/dist/lib/components/RadioGroup/RadioGroupRoot.d.ts +15 -0
  299. package/dist/lib/components/RadioGroup/RadioGroupRoot.js +62 -0
  300. package/dist/lib/components/RadioGroup/index.d.ts +6 -0
  301. package/dist/lib/components/RadioGroup/index.js +7 -0
  302. package/dist/lib/components/ScrollArea/index.d.ts +9 -0
  303. package/dist/lib/components/ScrollArea/index.js +39 -0
  304. package/dist/lib/components/SegmentedControl/SegmentedControlItem.d.ts +6 -0
  305. package/dist/lib/components/SegmentedControl/SegmentedControlItem.js +35 -0
  306. package/dist/lib/components/SegmentedControl/SegmentedControlRoot.d.ts +14 -0
  307. package/dist/lib/components/SegmentedControl/SegmentedControlRoot.js +55 -0
  308. package/dist/lib/components/SegmentedControl/index.d.ts +6 -0
  309. package/dist/lib/components/SegmentedControl/index.js +7 -0
  310. package/dist/lib/components/Select/index.d.ts +36 -0
  311. package/dist/lib/components/Select/index.js +112 -0
  312. package/dist/lib/components/Separator/index.d.ts +11 -0
  313. package/dist/lib/components/Separator/index.js +55 -0
  314. package/dist/lib/components/SideBar/index.d.ts +21 -0
  315. package/dist/lib/components/SideBar/index.js +71 -0
  316. package/dist/lib/components/Skeleton/index.d.ts +14 -0
  317. package/dist/lib/components/Skeleton/index.js +46 -0
  318. package/dist/lib/components/Slider/index.d.ts +15 -0
  319. package/dist/lib/components/Slider/index.js +56 -0
  320. package/dist/lib/components/Spinner/index.d.ts +15 -0
  321. package/dist/lib/components/Spinner/index.js +50 -0
  322. package/dist/lib/components/TabNav/index.d.ts +15 -0
  323. package/dist/lib/components/TabNav/index.js +53 -0
  324. package/dist/lib/components/Table/index.d.ts +30 -0
  325. package/dist/lib/components/Table/index.js +104 -0
  326. package/dist/lib/components/Tabs/DynamicTabs.d.ts +30 -0
  327. package/dist/lib/components/Tabs/DynamicTabs.js +72 -0
  328. package/dist/lib/components/Tabs/index.d.ts +23 -0
  329. package/dist/lib/components/Tabs/index.js +68 -0
  330. package/dist/lib/components/TextArea/index.d.ts +16 -0
  331. package/dist/lib/components/TextArea/index.js +66 -0
  332. package/dist/lib/components/TextField/index.d.ts +21 -0
  333. package/dist/lib/components/TextField/index.js +64 -0
  334. package/dist/lib/components/Timeline/TimelineConnector.d.ts +6 -0
  335. package/dist/lib/components/Timeline/TimelineConnector.js +34 -0
  336. package/dist/lib/components/Timeline/TimelineContent.d.ts +6 -0
  337. package/dist/lib/components/Timeline/TimelineContent.js +34 -0
  338. package/dist/lib/components/Timeline/TimelineDescription.d.ts +6 -0
  339. package/dist/lib/components/Timeline/TimelineDescription.js +34 -0
  340. package/dist/lib/components/Timeline/TimelineHeader.d.ts +6 -0
  341. package/dist/lib/components/Timeline/TimelineHeader.js +34 -0
  342. package/dist/lib/components/Timeline/TimelineIcon.d.ts +8 -0
  343. package/dist/lib/components/Timeline/TimelineIcon.js +43 -0
  344. package/dist/lib/components/Timeline/TimelineItem.d.ts +6 -0
  345. package/dist/lib/components/Timeline/TimelineItem.js +34 -0
  346. package/dist/lib/components/Timeline/TimelineRoot.d.ts +11 -0
  347. package/dist/lib/components/Timeline/TimelineRoot.js +53 -0
  348. package/dist/lib/components/Timeline/TimelineTime.d.ts +8 -0
  349. package/dist/lib/components/Timeline/TimelineTime.js +46 -0
  350. package/dist/lib/components/Timeline/TimelineTitle.d.ts +8 -0
  351. package/dist/lib/components/Timeline/TimelineTitle.js +46 -0
  352. package/dist/lib/components/Timeline/index.d.ts +13 -0
  353. package/dist/lib/components/Timeline/index.js +21 -0
  354. package/dist/lib/components/Toast/ToastActionButton.d.ts +14 -0
  355. package/dist/lib/components/Toast/ToastActionButton.js +72 -0
  356. package/dist/lib/components/Toast/ToastDescription.d.ts +13 -0
  357. package/dist/lib/components/Toast/ToastDescription.js +54 -0
  358. package/dist/lib/components/Toast/ToastRoot.d.ts +27 -0
  359. package/dist/lib/components/Toast/ToastRoot.js +98 -0
  360. package/dist/lib/components/Toast/ToastTitle.d.ts +13 -0
  361. package/dist/lib/components/Toast/ToastTitle.js +54 -0
  362. package/dist/lib/components/Toast/index.d.ts +8 -0
  363. package/dist/lib/components/Toast/index.js +11 -0
  364. package/dist/lib/components/Toggle/ToggleWithText.d.ts +21 -0
  365. package/dist/lib/components/Toggle/ToggleWithText.js +69 -0
  366. package/dist/lib/components/Toggle/index.d.ts +21 -0
  367. package/dist/lib/components/Toggle/index.js +69 -0
  368. package/dist/lib/components/ToggleGroup/ToggleGroupItem.d.ts +17 -0
  369. package/dist/lib/components/ToggleGroup/ToggleGroupItem.js +55 -0
  370. package/dist/lib/components/ToggleGroup/ToggleGroupRoot.d.ts +15 -0
  371. package/dist/lib/components/ToggleGroup/ToggleGroupRoot.js +58 -0
  372. package/dist/lib/components/ToggleGroup/index.d.ts +6 -0
  373. package/dist/lib/components/ToggleGroup/index.js +7 -0
  374. package/dist/lib/components/ToggleSwitch/index.d.ts +13 -0
  375. package/dist/lib/components/ToggleSwitch/index.js +82 -0
  376. package/dist/lib/components/Tooltip/index.d.ts +19 -0
  377. package/dist/lib/components/Tooltip/index.js +54 -0
  378. package/dist/lib/components/index.d.ts +61 -1
  379. package/dist/lib/components/index.js +64 -1
  380. package/dist/lib/constants.d.ts +647 -0
  381. package/dist/lib/constants.js +895 -0
  382. package/dist/lib/dist/lib/Typography/Header/index.mjs +3 -0
  383. package/dist/lib/dist/lib/Typography/Text/index.mjs +3 -0
  384. package/dist/lib/dist/lib/Typography/Text/index.mjs.map +1 -0
  385. package/dist/lib/dist/lib/color/alpha.mjs +2 -0
  386. package/dist/lib/dist/lib/color/alpha.mjs.map +1 -0
  387. package/dist/lib/dist/lib/color/constants.mjs +2 -0
  388. package/dist/lib/dist/lib/color/constants.mjs.map +1 -0
  389. package/dist/lib/dist/lib/color/light.mjs +2 -0
  390. package/dist/lib/dist/lib/color/light.mjs.map +1 -0
  391. package/dist/lib/dist/lib/components/Accordion/index.mjs +3 -0
  392. package/dist/lib/dist/lib/components/Accordion/index.mjs.map +1 -0
  393. package/dist/lib/dist/lib/components/AlertDialog/AlertDialogAction.mjs +3 -0
  394. package/dist/lib/dist/lib/components/AlertDialog/AlertDialogAction.mjs.map +1 -0
  395. package/dist/lib/dist/lib/components/AlertDialog/AlertDialogCancel.mjs +3 -0
  396. package/dist/lib/dist/lib/components/AlertDialog/AlertDialogCancel.mjs.map +1 -0
  397. package/dist/lib/dist/lib/components/AlertDialog/AlertDialogContent.mjs +3 -0
  398. package/dist/lib/dist/lib/components/AlertDialog/AlertDialogContent.mjs.map +1 -0
  399. package/dist/lib/dist/lib/components/AlertDialog/AlertDialogDescription.mjs +3 -0
  400. package/dist/lib/dist/lib/components/AlertDialog/AlertDialogDescription.mjs.map +1 -0
  401. package/dist/lib/dist/lib/components/AlertDialog/AlertDialogRoot.mjs +3 -0
  402. package/dist/lib/dist/lib/components/AlertDialog/AlertDialogRoot.mjs.map +1 -0
  403. package/dist/lib/dist/lib/components/AlertDialog/AlertDialogTitle.mjs +3 -0
  404. package/dist/lib/dist/lib/components/AlertDialog/AlertDialogTitle.mjs.map +1 -0
  405. package/dist/lib/dist/lib/components/AlertDialog/AlertDialogTrigger.mjs +3 -0
  406. package/dist/lib/dist/lib/components/AlertDialog/AlertDialogTrigger.mjs.map +1 -0
  407. package/dist/lib/dist/lib/components/AlertDialog/index.mjs +2 -0
  408. package/dist/lib/dist/lib/components/AlertDialog/index.mjs.map +1 -0
  409. package/dist/lib/dist/lib/components/AspectRatio/index.mjs +3 -0
  410. package/dist/lib/dist/lib/components/AspectRatio/index.mjs.map +1 -0
  411. package/dist/lib/dist/lib/components/Avatar/index.mjs +3 -0
  412. package/dist/lib/dist/lib/components/Avatar/index.mjs.map +1 -0
  413. package/dist/lib/dist/lib/components/Badge/index.mjs +3 -0
  414. package/dist/lib/dist/lib/components/Badge/index.mjs.map +1 -0
  415. package/dist/lib/dist/lib/components/BarChart/index.mjs +2 -0
  416. package/dist/lib/dist/lib/components/BarChart/index.mjs.map +1 -0
  417. package/dist/lib/dist/lib/components/Breadcrumb/BreadcrumbEllipsis.mjs +2 -0
  418. package/dist/lib/dist/lib/components/Breadcrumb/BreadcrumbEllipsis.mjs.map +1 -0
  419. package/dist/lib/dist/lib/components/Breadcrumb/BreadcrumbItem.mjs +2 -0
  420. package/dist/lib/dist/lib/components/Breadcrumb/BreadcrumbItem.mjs.map +1 -0
  421. package/dist/lib/dist/lib/components/Breadcrumb/BreadcrumbLink.mjs +2 -0
  422. package/dist/lib/dist/lib/components/Breadcrumb/BreadcrumbLink.mjs.map +1 -0
  423. package/dist/lib/dist/lib/components/Breadcrumb/BreadcrumbList.mjs +2 -0
  424. package/dist/lib/dist/lib/components/Breadcrumb/BreadcrumbList.mjs.map +1 -0
  425. package/dist/lib/dist/lib/components/Breadcrumb/BreadcrumbPage.mjs +2 -0
  426. package/dist/lib/dist/lib/components/Breadcrumb/BreadcrumbPage.mjs.map +1 -0
  427. package/dist/lib/dist/lib/components/Breadcrumb/BreadcrumbRoot.mjs +3 -0
  428. package/dist/lib/dist/lib/components/Breadcrumb/BreadcrumbRoot.mjs.map +1 -0
  429. package/dist/lib/dist/lib/components/Breadcrumb/BreadcrumbSeparator.mjs +2 -0
  430. package/dist/lib/dist/lib/components/Breadcrumb/BreadcrumbSeparator.mjs.map +1 -0
  431. package/dist/lib/dist/lib/components/Breadcrumb/index.mjs +2 -0
  432. package/dist/lib/dist/lib/components/Breadcrumb/index.mjs.map +1 -0
  433. package/dist/lib/dist/lib/components/BubbleChart/index.mjs +2 -0
  434. package/dist/lib/dist/lib/components/BubbleChart/index.mjs.map +1 -0
  435. package/dist/lib/dist/lib/components/Button/index.mjs +3 -0
  436. package/dist/lib/dist/lib/components/Button/index.mjs.map +1 -0
  437. package/dist/lib/dist/lib/components/Calendar/index.mjs +3 -0
  438. package/dist/lib/dist/lib/components/Calendar/index.mjs.map +1 -0
  439. package/dist/lib/dist/lib/components/Callout/CalloutIcon.mjs +3 -0
  440. package/dist/lib/dist/lib/components/Callout/CalloutIcon.mjs.map +1 -0
  441. package/dist/lib/dist/lib/components/Callout/CalloutRoot.mjs +3 -0
  442. package/dist/lib/dist/lib/components/Callout/CalloutRoot.mjs.map +1 -0
  443. package/dist/lib/dist/lib/components/Callout/CalloutText.mjs +3 -0
  444. package/dist/lib/dist/lib/components/Callout/CalloutText.mjs.map +1 -0
  445. package/dist/lib/dist/lib/components/Callout/index.mjs +2 -0
  446. package/dist/lib/dist/lib/components/Callout/index.mjs.map +1 -0
  447. package/dist/lib/dist/lib/components/Card/index.mjs +3 -0
  448. package/dist/lib/dist/lib/components/Card/index.mjs.map +1 -0
  449. package/dist/lib/dist/lib/components/Checkbox/index.mjs +3 -0
  450. package/dist/lib/dist/lib/components/Checkbox/index.mjs.map +1 -0
  451. package/dist/lib/dist/lib/components/CheckboxCard/index.mjs +3 -0
  452. package/dist/lib/dist/lib/components/CheckboxCard/index.mjs.map +1 -0
  453. package/dist/lib/dist/lib/components/CheckboxGroup/CheckboxGroupItem.mjs +3 -0
  454. package/dist/lib/dist/lib/components/CheckboxGroup/CheckboxGroupItem.mjs.map +1 -0
  455. package/dist/lib/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.mjs +3 -0
  456. package/dist/lib/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.mjs.map +1 -0
  457. package/dist/lib/dist/lib/components/CheckboxGroup/index.mjs +2 -0
  458. package/dist/lib/dist/lib/components/CheckboxGroup/index.mjs.map +1 -0
  459. package/dist/lib/dist/lib/components/Collapsible/index.mjs +3 -0
  460. package/dist/lib/dist/lib/components/Collapsible/index.mjs.map +1 -0
  461. package/dist/lib/dist/lib/components/ContextMenu/ContextMenuCheckboxItem.mjs +3 -0
  462. package/dist/lib/dist/lib/components/ContextMenu/ContextMenuCheckboxItem.mjs.map +1 -0
  463. package/dist/lib/dist/lib/components/ContextMenu/ContextMenuContent.mjs +3 -0
  464. package/dist/lib/dist/lib/components/ContextMenu/ContextMenuContent.mjs.map +1 -0
  465. package/dist/lib/dist/lib/components/ContextMenu/ContextMenuGroup.mjs +2 -0
  466. package/dist/lib/dist/lib/components/ContextMenu/ContextMenuGroup.mjs.map +1 -0
  467. package/dist/lib/dist/lib/components/ContextMenu/ContextMenuItem.mjs +3 -0
  468. package/dist/lib/dist/lib/components/ContextMenu/ContextMenuItem.mjs.map +1 -0
  469. package/dist/lib/dist/lib/components/ContextMenu/ContextMenuItemIndicator.mjs +3 -0
  470. package/dist/lib/dist/lib/components/ContextMenu/ContextMenuItemIndicator.mjs.map +1 -0
  471. package/dist/lib/dist/lib/components/ContextMenu/ContextMenuLabel.mjs +3 -0
  472. package/dist/lib/dist/lib/components/ContextMenu/ContextMenuLabel.mjs.map +1 -0
  473. package/dist/lib/dist/lib/components/ContextMenu/ContextMenuRadioGroup.mjs +3 -0
  474. package/dist/lib/dist/lib/components/ContextMenu/ContextMenuRadioGroup.mjs.map +1 -0
  475. package/dist/lib/dist/lib/components/ContextMenu/ContextMenuRadioItem.mjs +3 -0
  476. package/dist/lib/dist/lib/components/ContextMenu/ContextMenuRadioItem.mjs.map +1 -0
  477. package/dist/lib/dist/lib/components/ContextMenu/ContextMenuRoot.mjs +3 -0
  478. package/dist/lib/dist/lib/components/ContextMenu/ContextMenuRoot.mjs.map +1 -0
  479. package/dist/lib/dist/lib/components/ContextMenu/ContextMenuSeparator.mjs +2 -0
  480. package/dist/lib/dist/lib/components/ContextMenu/ContextMenuSeparator.mjs.map +1 -0
  481. package/dist/lib/dist/lib/components/ContextMenu/ContextMenuSubContent.mjs +3 -0
  482. package/dist/lib/dist/lib/components/ContextMenu/ContextMenuSubContent.mjs.map +1 -0
  483. package/dist/lib/dist/lib/components/ContextMenu/ContextMenuSubTrigger.mjs +3 -0
  484. package/dist/lib/dist/lib/components/ContextMenu/ContextMenuSubTrigger.mjs.map +1 -0
  485. package/dist/lib/dist/lib/components/ContextMenu/ContextMenuTrigger.mjs +2 -0
  486. package/dist/lib/dist/lib/components/ContextMenu/ContextMenuTrigger.mjs.map +1 -0
  487. package/dist/lib/dist/lib/components/ContextMenu/index.mjs +2 -0
  488. package/dist/lib/dist/lib/components/ContextMenu/index.mjs.map +1 -0
  489. package/dist/lib/dist/lib/components/DataList/DataListItem.mjs +3 -0
  490. package/dist/lib/dist/lib/components/DataList/DataListItem.mjs.map +1 -0
  491. package/dist/lib/dist/lib/components/DataList/DataListLabel.mjs +3 -0
  492. package/dist/lib/dist/lib/components/DataList/DataListLabel.mjs.map +1 -0
  493. package/dist/lib/dist/lib/components/DataList/DataListRoot.mjs +3 -0
  494. package/dist/lib/dist/lib/components/DataList/DataListRoot.mjs.map +1 -0
  495. package/dist/lib/dist/lib/components/DataList/DataListValue.mjs +3 -0
  496. package/dist/lib/dist/lib/components/DataList/DataListValue.mjs.map +1 -0
  497. package/dist/lib/dist/lib/components/DataList/index.mjs +2 -0
  498. package/dist/lib/dist/lib/components/DataList/index.mjs.map +1 -0
  499. package/dist/lib/dist/lib/components/Datepicker/index.mjs +3 -0
  500. package/dist/lib/dist/lib/components/Datepicker/index.mjs.map +1 -0
  501. package/dist/lib/dist/lib/components/Dialog/DialogAction.mjs +3 -0
  502. package/dist/lib/dist/lib/components/Dialog/DialogAction.mjs.map +1 -0
  503. package/dist/lib/dist/lib/components/Dialog/DialogCancel.mjs +3 -0
  504. package/dist/lib/dist/lib/components/Dialog/DialogCancel.mjs.map +1 -0
  505. package/dist/lib/dist/lib/components/Dialog/DialogContent.mjs +3 -0
  506. package/dist/lib/dist/lib/components/Dialog/DialogContent.mjs.map +1 -0
  507. package/dist/lib/dist/lib/components/Dialog/DialogDescription.mjs +3 -0
  508. package/dist/lib/dist/lib/components/Dialog/DialogDescription.mjs.map +1 -0
  509. package/dist/lib/dist/lib/components/Dialog/DialogRoot.mjs +3 -0
  510. package/dist/lib/dist/lib/components/Dialog/DialogRoot.mjs.map +1 -0
  511. package/dist/lib/dist/lib/components/Dialog/DialogSlot.mjs +3 -0
  512. package/dist/lib/dist/lib/components/Dialog/DialogSlot.mjs.map +1 -0
  513. package/dist/lib/dist/lib/components/Dialog/DialogTitle.mjs +3 -0
  514. package/dist/lib/dist/lib/components/Dialog/DialogTitle.mjs.map +1 -0
  515. package/dist/lib/dist/lib/components/Dialog/DialogTrigger.mjs +2 -0
  516. package/dist/lib/dist/lib/components/Dialog/DialogTrigger.mjs.map +1 -0
  517. package/dist/lib/dist/lib/components/Dialog/index.mjs +2 -0
  518. package/dist/lib/dist/lib/components/Dialog/index.mjs.map +1 -0
  519. package/dist/lib/dist/lib/components/DoughnutChart/index.mjs +2 -0
  520. package/dist/lib/dist/lib/components/DoughnutChart/index.mjs.map +1 -0
  521. package/dist/lib/dist/lib/components/DropdownMenu/DropdonMenuRadioGroup.mjs +2 -0
  522. package/dist/lib/dist/lib/components/DropdownMenu/DropdonMenuRadioGroup.mjs.map +1 -0
  523. package/dist/lib/dist/lib/components/DropdownMenu/DropdonMenuSubContent.mjs +3 -0
  524. package/dist/lib/dist/lib/components/DropdownMenu/DropdonMenuSubContent.mjs.map +1 -0
  525. package/dist/lib/dist/lib/components/DropdownMenu/DropdownMenuCheckboxItem.mjs +3 -0
  526. package/dist/lib/dist/lib/components/DropdownMenu/DropdownMenuCheckboxItem.mjs.map +1 -0
  527. package/dist/lib/dist/lib/components/DropdownMenu/DropdownMenuContent.mjs +3 -0
  528. package/dist/lib/dist/lib/components/DropdownMenu/DropdownMenuContent.mjs.map +1 -0
  529. package/dist/lib/dist/lib/components/DropdownMenu/DropdownMenuItem.mjs +3 -0
  530. package/dist/lib/dist/lib/components/DropdownMenu/DropdownMenuItem.mjs.map +1 -0
  531. package/dist/lib/dist/lib/components/DropdownMenu/DropdownMenuItemIndicator.mjs +3 -0
  532. package/dist/lib/dist/lib/components/DropdownMenu/DropdownMenuItemIndicator.mjs.map +1 -0
  533. package/dist/lib/dist/lib/components/DropdownMenu/DropdownMenuLable.mjs +3 -0
  534. package/dist/lib/dist/lib/components/DropdownMenu/DropdownMenuLable.mjs.map +1 -0
  535. package/dist/lib/dist/lib/components/DropdownMenu/DropdownMenuRadioItem.mjs +3 -0
  536. package/dist/lib/dist/lib/components/DropdownMenu/DropdownMenuRadioItem.mjs.map +1 -0
  537. package/dist/lib/dist/lib/components/DropdownMenu/DropdownMenuRoot.mjs +3 -0
  538. package/dist/lib/dist/lib/components/DropdownMenu/DropdownMenuRoot.mjs.map +1 -0
  539. package/dist/lib/dist/lib/components/DropdownMenu/DropdownMenuSeparator.mjs +2 -0
  540. package/dist/lib/dist/lib/components/DropdownMenu/DropdownMenuSeparator.mjs.map +1 -0
  541. package/dist/lib/dist/lib/components/DropdownMenu/DropdownMenuSub.mjs +2 -0
  542. package/dist/lib/dist/lib/components/DropdownMenu/DropdownMenuSub.mjs.map +1 -0
  543. package/dist/lib/dist/lib/components/DropdownMenu/DropdownMenuSubTrigger.mjs +3 -0
  544. package/dist/lib/dist/lib/components/DropdownMenu/DropdownMenuSubTrigger.mjs.map +1 -0
  545. package/dist/lib/dist/lib/components/DropdownMenu/DropdownMenuTrigger.mjs +3 -0
  546. package/dist/lib/dist/lib/components/DropdownMenu/DropdownMenuTrigger.mjs.map +1 -0
  547. package/dist/lib/dist/lib/components/DropdownMenu/index.mjs +2 -0
  548. package/dist/lib/dist/lib/components/DropdownMenu/index.mjs.map +1 -0
  549. package/dist/lib/dist/lib/components/Footer/index.mjs +3 -0
  550. package/dist/lib/dist/lib/components/Footer/index.mjs.map +1 -0
  551. package/dist/lib/dist/lib/components/Gnb/GnbInfo.mjs +3 -0
  552. package/dist/lib/dist/lib/components/Gnb/GnbInfo.mjs.map +1 -0
  553. package/dist/lib/dist/lib/components/Gnb/GnbLogo.mjs +2 -0
  554. package/dist/lib/dist/lib/components/Gnb/GnbLogo.mjs.map +1 -0
  555. package/dist/lib/dist/lib/components/Gnb/GnbMenu.mjs +3 -0
  556. package/dist/lib/dist/lib/components/Gnb/GnbMenu.mjs.map +1 -0
  557. package/dist/lib/dist/lib/components/Gnb/GnbMenuItem.mjs +3 -0
  558. package/dist/lib/dist/lib/components/Gnb/GnbMenuItem.mjs.map +1 -0
  559. package/dist/lib/dist/lib/components/Gnb/GnbRoot.mjs +3 -0
  560. package/dist/lib/dist/lib/components/Gnb/GnbRoot.mjs.map +1 -0
  561. package/dist/lib/dist/lib/components/Gnb/index.mjs +2 -0
  562. package/dist/lib/dist/lib/components/Gnb/index.mjs.map +1 -0
  563. package/dist/lib/dist/lib/components/Grid/Pagination.mjs +2 -0
  564. package/dist/lib/dist/lib/components/Grid/Pagination.mjs.map +1 -0
  565. package/dist/lib/dist/lib/components/Grid/index.mjs +3 -0
  566. package/dist/lib/dist/lib/components/Grid/index.mjs.map +1 -0
  567. package/dist/lib/dist/lib/components/Grid/useGrid.mjs +3 -0
  568. package/dist/lib/dist/lib/components/Grid/useGrid.mjs.map +1 -0
  569. package/dist/lib/dist/lib/components/HoverCard/HoverCardContent.mjs +3 -0
  570. package/dist/lib/dist/lib/components/HoverCard/HoverCardContent.mjs.map +1 -0
  571. package/dist/lib/dist/lib/components/HoverCard/HoverCardRoot.mjs +3 -0
  572. package/dist/lib/dist/lib/components/HoverCard/HoverCardRoot.mjs.map +1 -0
  573. package/dist/lib/dist/lib/components/HoverCard/HoverCardTrigger.mjs +2 -0
  574. package/dist/lib/dist/lib/components/HoverCard/HoverCardTrigger.mjs.map +1 -0
  575. package/dist/lib/dist/lib/components/HoverCard/index.mjs +2 -0
  576. package/dist/lib/dist/lib/components/HoverCard/index.mjs.map +1 -0
  577. package/dist/lib/dist/lib/components/IconButton/index.mjs +3 -0
  578. package/dist/lib/dist/lib/components/IconButton/index.mjs.map +1 -0
  579. package/dist/lib/dist/lib/components/Inset/index.mjs +3 -0
  580. package/dist/lib/dist/lib/components/Inset/index.mjs.map +1 -0
  581. package/dist/lib/dist/lib/components/Label/index.mjs +3 -0
  582. package/dist/lib/dist/lib/components/Label/index.mjs.map +1 -0
  583. package/dist/lib/dist/lib/components/LineChart/index.mjs +2 -0
  584. package/dist/lib/dist/lib/components/LineChart/index.mjs.map +1 -0
  585. package/dist/lib/dist/lib/components/Menubar/MenubarCheckboxItem.mjs +3 -0
  586. package/dist/lib/dist/lib/components/Menubar/MenubarCheckboxItem.mjs.map +1 -0
  587. package/dist/lib/dist/lib/components/Menubar/MenubarContent.mjs +3 -0
  588. package/dist/lib/dist/lib/components/Menubar/MenubarContent.mjs.map +1 -0
  589. package/dist/lib/dist/lib/components/Menubar/MenubarItem.mjs +3 -0
  590. package/dist/lib/dist/lib/components/Menubar/MenubarItem.mjs.map +1 -0
  591. package/dist/lib/dist/lib/components/Menubar/MenubarItemIndicator.mjs +3 -0
  592. package/dist/lib/dist/lib/components/Menubar/MenubarItemIndicator.mjs.map +1 -0
  593. package/dist/lib/dist/lib/components/Menubar/MenubarMenu.mjs +2 -0
  594. package/dist/lib/dist/lib/components/Menubar/MenubarMenu.mjs.map +1 -0
  595. package/dist/lib/dist/lib/components/Menubar/MenubarRadioGroup.mjs +3 -0
  596. package/dist/lib/dist/lib/components/Menubar/MenubarRadioGroup.mjs.map +1 -0
  597. package/dist/lib/dist/lib/components/Menubar/MenubarRadioItem.mjs +3 -0
  598. package/dist/lib/dist/lib/components/Menubar/MenubarRadioItem.mjs.map +1 -0
  599. package/dist/lib/dist/lib/components/Menubar/MenubarRoot.mjs +3 -0
  600. package/dist/lib/dist/lib/components/Menubar/MenubarRoot.mjs.map +1 -0
  601. package/dist/lib/dist/lib/components/Menubar/MenubarSeparator.mjs +2 -0
  602. package/dist/lib/dist/lib/components/Menubar/MenubarSeparator.mjs.map +1 -0
  603. package/dist/lib/dist/lib/components/Menubar/MenubarSub.mjs +2 -0
  604. package/dist/lib/dist/lib/components/Menubar/MenubarSub.mjs.map +1 -0
  605. package/dist/lib/dist/lib/components/Menubar/MenubarSubContent.mjs +3 -0
  606. package/dist/lib/dist/lib/components/Menubar/MenubarSubContent.mjs.map +1 -0
  607. package/dist/lib/dist/lib/components/Menubar/MenubarSubTrigger.mjs +3 -0
  608. package/dist/lib/dist/lib/components/Menubar/MenubarSubTrigger.mjs.map +1 -0
  609. package/dist/lib/dist/lib/components/Menubar/MenubarTrigger.mjs +3 -0
  610. package/dist/lib/dist/lib/components/Menubar/MenubarTrigger.mjs.map +1 -0
  611. package/dist/lib/dist/lib/components/Menubar/index.mjs +2 -0
  612. package/dist/lib/dist/lib/components/Menubar/index.mjs.map +1 -0
  613. package/dist/lib/dist/lib/components/NavigationMenu/NavigationMenuContent.mjs +3 -0
  614. package/dist/lib/dist/lib/components/NavigationMenu/NavigationMenuContent.mjs.map +1 -0
  615. package/dist/lib/dist/lib/components/NavigationMenu/NavigationMenuIndicator.mjs +2 -0
  616. package/dist/lib/dist/lib/components/NavigationMenu/NavigationMenuIndicator.mjs.map +1 -0
  617. package/dist/lib/dist/lib/components/NavigationMenu/NavigationMenuItem.mjs +2 -0
  618. package/dist/lib/dist/lib/components/NavigationMenu/NavigationMenuItem.mjs.map +1 -0
  619. package/dist/lib/dist/lib/components/NavigationMenu/NavigationMenuLink.mjs +3 -0
  620. package/dist/lib/dist/lib/components/NavigationMenu/NavigationMenuLink.mjs.map +1 -0
  621. package/dist/lib/dist/lib/components/NavigationMenu/NavigationMenuList.mjs +3 -0
  622. package/dist/lib/dist/lib/components/NavigationMenu/NavigationMenuList.mjs.map +1 -0
  623. package/dist/lib/dist/lib/components/NavigationMenu/NavigationMenuRoot.mjs +3 -0
  624. package/dist/lib/dist/lib/components/NavigationMenu/NavigationMenuRoot.mjs.map +1 -0
  625. package/dist/lib/dist/lib/components/NavigationMenu/NavigationMenuTrigger.mjs +3 -0
  626. package/dist/lib/dist/lib/components/NavigationMenu/NavigationMenuTrigger.mjs.map +1 -0
  627. package/dist/lib/dist/lib/components/NavigationMenu/NavigationMenuViewport.mjs +3 -0
  628. package/dist/lib/dist/lib/components/NavigationMenu/NavigationMenuViewport.mjs.map +1 -0
  629. package/dist/lib/dist/lib/components/NavigationMenu/index.mjs +2 -0
  630. package/dist/lib/dist/lib/components/NavigationMenu/index.mjs.map +1 -0
  631. package/dist/lib/dist/lib/components/PieChart/index.mjs +2 -0
  632. package/dist/lib/dist/lib/components/PieChart/index.mjs.map +1 -0
  633. package/dist/lib/dist/lib/components/Popover/PopoverClose.mjs +3 -0
  634. package/dist/lib/dist/lib/components/Popover/PopoverClose.mjs.map +1 -0
  635. package/dist/lib/dist/lib/components/Popover/PopoverContent.mjs +3 -0
  636. package/dist/lib/dist/lib/components/Popover/PopoverContent.mjs.map +1 -0
  637. package/dist/lib/dist/lib/components/Popover/PopoverRoot.mjs +3 -0
  638. package/dist/lib/dist/lib/components/Popover/PopoverRoot.mjs.map +1 -0
  639. package/dist/lib/dist/lib/components/Popover/PopoverTrigger.mjs +2 -0
  640. package/dist/lib/dist/lib/components/Popover/PopoverTrigger.mjs.map +1 -0
  641. package/dist/lib/dist/lib/components/Popover/index.mjs +2 -0
  642. package/dist/lib/dist/lib/components/Popover/index.mjs.map +1 -0
  643. package/dist/lib/dist/lib/components/Progress/index.mjs +3 -0
  644. package/dist/lib/dist/lib/components/Progress/index.mjs.map +1 -0
  645. package/dist/lib/dist/lib/components/RadarChart/index.mjs +2 -0
  646. package/dist/lib/dist/lib/components/RadarChart/index.mjs.map +1 -0
  647. package/dist/lib/dist/lib/components/Radio/index.mjs +3 -0
  648. package/dist/lib/dist/lib/components/Radio/index.mjs.map +1 -0
  649. package/dist/lib/dist/lib/components/RadioCards/RadioCardsItem.mjs +3 -0
  650. package/dist/lib/dist/lib/components/RadioCards/RadioCardsItem.mjs.map +1 -0
  651. package/dist/lib/dist/lib/components/RadioCards/RadioCardsRoot.mjs +3 -0
  652. package/dist/lib/dist/lib/components/RadioCards/RadioCardsRoot.mjs.map +1 -0
  653. package/dist/lib/dist/lib/components/RadioCards/index.mjs +2 -0
  654. package/dist/lib/dist/lib/components/RadioCards/index.mjs.map +1 -0
  655. package/dist/lib/dist/lib/components/RadioGroup/RadioGroupItem.mjs +3 -0
  656. package/dist/lib/dist/lib/components/RadioGroup/RadioGroupItem.mjs.map +1 -0
  657. package/dist/lib/dist/lib/components/RadioGroup/RadioGroupRoot.mjs +3 -0
  658. package/dist/lib/dist/lib/components/RadioGroup/RadioGroupRoot.mjs.map +1 -0
  659. package/dist/lib/dist/lib/components/RadioGroup/index.mjs +2 -0
  660. package/dist/lib/dist/lib/components/RadioGroup/index.mjs.map +1 -0
  661. package/dist/lib/dist/lib/components/ScrollArea/index.mjs +3 -0
  662. package/dist/lib/dist/lib/components/ScrollArea/index.mjs.map +1 -0
  663. package/dist/lib/dist/lib/components/SegmentedControl/SegmentedControlItem.mjs +2 -0
  664. package/dist/lib/dist/lib/components/SegmentedControl/SegmentedControlItem.mjs.map +1 -0
  665. package/dist/lib/dist/lib/components/SegmentedControl/SegmentedControlRoot.mjs +3 -0
  666. package/dist/lib/dist/lib/components/SegmentedControl/SegmentedControlRoot.mjs.map +1 -0
  667. package/dist/lib/dist/lib/components/SegmentedControl/index.mjs +2 -0
  668. package/dist/lib/dist/lib/components/SegmentedControl/index.mjs.map +1 -0
  669. package/dist/lib/dist/lib/components/Select/index.mjs +3 -0
  670. package/dist/lib/dist/lib/components/Select/index.mjs.map +1 -0
  671. package/dist/lib/dist/lib/components/Separator/index.mjs +3 -0
  672. package/dist/lib/dist/lib/components/Separator/index.mjs.map +1 -0
  673. package/dist/lib/dist/lib/components/SideBar/index.mjs +3 -0
  674. package/dist/lib/dist/lib/components/SideBar/index.mjs.map +1 -0
  675. package/dist/lib/dist/lib/components/Skeleton/index.mjs +3 -0
  676. package/dist/lib/dist/lib/components/Skeleton/index.mjs.map +1 -0
  677. package/dist/lib/dist/lib/components/Slider/index.mjs +3 -0
  678. package/dist/lib/dist/lib/components/Slider/index.mjs.map +1 -0
  679. package/dist/lib/dist/lib/components/Spinner/index.mjs +3 -0
  680. package/dist/lib/dist/lib/components/Spinner/index.mjs.map +1 -0
  681. package/dist/lib/dist/lib/components/TabNav/index.mjs +3 -0
  682. package/dist/lib/dist/lib/components/TabNav/index.mjs.map +1 -0
  683. package/dist/lib/dist/lib/components/Table/index.mjs +3 -0
  684. package/dist/lib/dist/lib/components/Table/index.mjs.map +1 -0
  685. package/dist/lib/dist/lib/components/Tabs/DynamicTabs.mjs +2 -0
  686. package/dist/lib/dist/lib/components/Tabs/DynamicTabs.mjs.map +1 -0
  687. package/dist/lib/dist/lib/components/Tabs/index.mjs +3 -0
  688. package/dist/lib/dist/lib/components/Tabs/index.mjs.map +1 -0
  689. package/dist/lib/dist/lib/components/TextArea/index.mjs +3 -0
  690. package/dist/lib/dist/lib/components/TextArea/index.mjs.map +1 -0
  691. package/dist/lib/dist/lib/components/TextField/index.mjs +3 -0
  692. package/dist/lib/dist/lib/components/TextField/index.mjs.map +1 -0
  693. package/dist/lib/dist/lib/components/Timeline/TimelineConnector.mjs +2 -0
  694. package/dist/lib/dist/lib/components/Timeline/TimelineConnector.mjs.map +1 -0
  695. package/dist/lib/dist/lib/components/Timeline/TimelineContent.mjs +2 -0
  696. package/dist/lib/dist/lib/components/Timeline/TimelineContent.mjs.map +1 -0
  697. package/dist/lib/dist/lib/components/Timeline/TimelineDescription.mjs +2 -0
  698. package/dist/lib/dist/lib/components/Timeline/TimelineDescription.mjs.map +1 -0
  699. package/dist/lib/dist/lib/components/Timeline/TimelineHeader.mjs +2 -0
  700. package/dist/lib/dist/lib/components/Timeline/TimelineHeader.mjs.map +1 -0
  701. package/dist/lib/dist/lib/components/Timeline/TimelineIcon.mjs +3 -0
  702. package/dist/lib/dist/lib/components/Timeline/TimelineIcon.mjs.map +1 -0
  703. package/dist/lib/dist/lib/components/Timeline/TimelineItem.mjs +2 -0
  704. package/dist/lib/dist/lib/components/Timeline/TimelineItem.mjs.map +1 -0
  705. package/dist/lib/dist/lib/components/Timeline/TimelineRoot.mjs +3 -0
  706. package/dist/lib/dist/lib/components/Timeline/TimelineRoot.mjs.map +1 -0
  707. package/dist/lib/dist/lib/components/Timeline/TimelineTime.mjs +3 -0
  708. package/dist/lib/dist/lib/components/Timeline/TimelineTime.mjs.map +1 -0
  709. package/dist/lib/dist/lib/components/Timeline/TimelineTitle.mjs +3 -0
  710. package/dist/lib/dist/lib/components/Timeline/TimelineTitle.mjs.map +1 -0
  711. package/dist/lib/dist/lib/components/Timeline/index.mjs +2 -0
  712. package/dist/lib/dist/lib/components/Timeline/index.mjs.map +1 -0
  713. package/dist/lib/dist/lib/components/Toast/ToastActionButton.mjs +3 -0
  714. package/dist/lib/dist/lib/components/Toast/ToastActionButton.mjs.map +1 -0
  715. package/dist/lib/dist/lib/components/Toast/ToastDescription.mjs +3 -0
  716. package/dist/lib/dist/lib/components/Toast/ToastDescription.mjs.map +1 -0
  717. package/dist/lib/dist/lib/components/Toast/ToastRoot.mjs +3 -0
  718. package/dist/lib/dist/lib/components/Toast/ToastRoot.mjs.map +1 -0
  719. package/dist/lib/dist/lib/components/Toast/ToastTitle.mjs +3 -0
  720. package/dist/lib/dist/lib/components/Toast/ToastTitle.mjs.map +1 -0
  721. package/dist/lib/dist/lib/components/Toast/index.mjs +2 -0
  722. package/dist/lib/dist/lib/components/Toast/index.mjs.map +1 -0
  723. package/dist/lib/dist/lib/components/Toggle/ToggleWithText.mjs +3 -0
  724. package/dist/lib/dist/lib/components/Toggle/ToggleWithText.mjs.map +1 -0
  725. package/dist/lib/dist/lib/components/Toggle/index.mjs +3 -0
  726. package/dist/lib/dist/lib/components/Toggle/index.mjs.map +1 -0
  727. package/dist/lib/dist/lib/components/ToggleGroup/ToggleGroupItem.mjs +3 -0
  728. package/dist/lib/dist/lib/components/ToggleGroup/ToggleGroupItem.mjs.map +1 -0
  729. package/dist/lib/dist/lib/components/ToggleGroup/ToggleGroupRoot.mjs +3 -0
  730. package/dist/lib/dist/lib/components/ToggleGroup/ToggleGroupRoot.mjs.map +1 -0
  731. package/dist/lib/dist/lib/components/ToggleGroup/index.mjs +2 -0
  732. package/dist/lib/dist/lib/components/ToggleGroup/index.mjs.map +1 -0
  733. package/dist/lib/dist/lib/components/ToggleSwitch/index.mjs +3 -0
  734. package/dist/lib/dist/lib/components/ToggleSwitch/index.mjs.map +1 -0
  735. package/dist/lib/dist/lib/components/Tooltip/index.mjs +3 -0
  736. package/dist/lib/dist/lib/components/Tooltip/index.mjs.map +1 -0
  737. package/dist/lib/dist/lib/constants.mjs +2 -0
  738. package/dist/lib/dist/lib/constants.mjs.map +1 -0
  739. package/dist/lib/dist/lib/index.mjs +2 -0
  740. package/dist/lib/dist/lib/index.mjs.map +1 -0
  741. package/dist/lib/dist/lib/theme/ThemeProvider.mjs +3 -0
  742. package/dist/lib/dist/lib/theme/ThemeProvider.mjs.map +1 -0
  743. package/dist/lib/dist/lib/utils/useDarkMode.mjs +3 -0
  744. package/dist/lib/dist/lib/utils/useDarkMode.mjs.map +1 -0
  745. package/dist/lib/dist/lib/utils/useWindowSize.mjs +2 -0
  746. package/dist/lib/dist/lib/utils/useWindowSize.mjs.map +1 -0
  747. package/dist/lib/dist/lib/utils/utils.mjs.map +1 -0
  748. package/dist/lib/index.d.ts +2 -0
  749. package/dist/lib/index.js +2 -0
  750. package/dist/lib/node_modules/@babel/runtime/helpers/esm/typeof.mjs +2 -0
  751. package/dist/lib/node_modules/@babel/runtime/helpers/esm/typeof.mjs.map +1 -0
  752. package/dist/lib/node_modules/date-fns/esm/_lib/addLeadingZeros/index.mjs +2 -0
  753. package/dist/lib/node_modules/date-fns/esm/_lib/addLeadingZeros/index.mjs.map +1 -0
  754. package/dist/lib/node_modules/date-fns/esm/_lib/defaultLocale/index.mjs +2 -0
  755. package/dist/lib/node_modules/date-fns/esm/_lib/defaultLocale/index.mjs.map +1 -0
  756. package/dist/lib/node_modules/date-fns/esm/_lib/defaultOptions/index.mjs +2 -0
  757. package/dist/lib/node_modules/date-fns/esm/_lib/defaultOptions/index.mjs.map +1 -0
  758. package/dist/lib/node_modules/date-fns/esm/_lib/format/formatters/index.mjs +2 -0
  759. package/dist/lib/node_modules/date-fns/esm/_lib/format/formatters/index.mjs.map +1 -0
  760. package/dist/lib/node_modules/date-fns/esm/_lib/format/lightFormatters/index.mjs +2 -0
  761. package/dist/lib/node_modules/date-fns/esm/_lib/format/lightFormatters/index.mjs.map +1 -0
  762. package/dist/lib/node_modules/date-fns/esm/_lib/format/longFormatters/index.mjs +2 -0
  763. package/dist/lib/node_modules/date-fns/esm/_lib/format/longFormatters/index.mjs.map +1 -0
  764. package/dist/lib/node_modules/date-fns/esm/_lib/getTimezoneOffsetInMilliseconds/index.mjs +2 -0
  765. package/dist/lib/node_modules/date-fns/esm/_lib/getTimezoneOffsetInMilliseconds/index.mjs.map +1 -0
  766. package/dist/lib/node_modules/date-fns/esm/_lib/getUTCDayOfYear/index.mjs +2 -0
  767. package/dist/lib/node_modules/date-fns/esm/_lib/getUTCDayOfYear/index.mjs.map +1 -0
  768. package/dist/lib/node_modules/date-fns/esm/_lib/getUTCISOWeek/index.mjs +2 -0
  769. package/dist/lib/node_modules/date-fns/esm/_lib/getUTCISOWeek/index.mjs.map +1 -0
  770. package/dist/lib/node_modules/date-fns/esm/_lib/getUTCISOWeekYear/index.mjs +2 -0
  771. package/dist/lib/node_modules/date-fns/esm/_lib/getUTCISOWeekYear/index.mjs.map +1 -0
  772. package/dist/lib/node_modules/date-fns/esm/_lib/getUTCWeek/index.mjs +2 -0
  773. package/dist/lib/node_modules/date-fns/esm/_lib/getUTCWeek/index.mjs.map +1 -0
  774. package/dist/lib/node_modules/date-fns/esm/_lib/getUTCWeekYear/index.mjs +2 -0
  775. package/dist/lib/node_modules/date-fns/esm/_lib/getUTCWeekYear/index.mjs.map +1 -0
  776. package/dist/lib/node_modules/date-fns/esm/_lib/protectedTokens/index.mjs +2 -0
  777. package/dist/lib/node_modules/date-fns/esm/_lib/protectedTokens/index.mjs.map +1 -0
  778. package/dist/lib/node_modules/date-fns/esm/_lib/requiredArgs/index.mjs +2 -0
  779. package/dist/lib/node_modules/date-fns/esm/_lib/requiredArgs/index.mjs.map +1 -0
  780. package/dist/lib/node_modules/date-fns/esm/_lib/startOfUTCISOWeek/index.mjs +2 -0
  781. package/dist/lib/node_modules/date-fns/esm/_lib/startOfUTCISOWeek/index.mjs.map +1 -0
  782. package/dist/lib/node_modules/date-fns/esm/_lib/startOfUTCISOWeekYear/index.mjs +2 -0
  783. package/dist/lib/node_modules/date-fns/esm/_lib/startOfUTCISOWeekYear/index.mjs.map +1 -0
  784. package/dist/lib/node_modules/date-fns/esm/_lib/startOfUTCWeek/index.mjs +2 -0
  785. package/dist/lib/node_modules/date-fns/esm/_lib/startOfUTCWeek/index.mjs.map +1 -0
  786. package/dist/lib/node_modules/date-fns/esm/_lib/startOfUTCWeekYear/index.mjs +2 -0
  787. package/dist/lib/node_modules/date-fns/esm/_lib/startOfUTCWeekYear/index.mjs.map +1 -0
  788. package/dist/lib/node_modules/date-fns/esm/_lib/toInteger/index.mjs +2 -0
  789. package/dist/lib/node_modules/date-fns/esm/_lib/toInteger/index.mjs.map +1 -0
  790. package/dist/lib/node_modules/date-fns/esm/addMilliseconds/index.mjs +2 -0
  791. package/dist/lib/node_modules/date-fns/esm/addMilliseconds/index.mjs.map +1 -0
  792. package/dist/lib/node_modules/date-fns/esm/format/index.mjs +2 -0
  793. package/dist/lib/node_modules/date-fns/esm/format/index.mjs.map +1 -0
  794. package/dist/lib/node_modules/date-fns/esm/isDate/index.mjs +2 -0
  795. package/dist/lib/node_modules/date-fns/esm/isDate/index.mjs.map +1 -0
  796. package/dist/lib/node_modules/date-fns/esm/isValid/index.mjs +2 -0
  797. package/dist/lib/node_modules/date-fns/esm/isValid/index.mjs.map +1 -0
  798. package/dist/lib/node_modules/date-fns/esm/locale/_lib/buildFormatLongFn/index.mjs +2 -0
  799. package/dist/lib/node_modules/date-fns/esm/locale/_lib/buildFormatLongFn/index.mjs.map +1 -0
  800. package/dist/lib/node_modules/date-fns/esm/locale/_lib/buildLocalizeFn/index.mjs +2 -0
  801. package/dist/lib/node_modules/date-fns/esm/locale/_lib/buildLocalizeFn/index.mjs.map +1 -0
  802. package/dist/lib/node_modules/date-fns/esm/locale/_lib/buildMatchFn/index.mjs +2 -0
  803. package/dist/lib/node_modules/date-fns/esm/locale/_lib/buildMatchFn/index.mjs.map +1 -0
  804. package/dist/lib/node_modules/date-fns/esm/locale/_lib/buildMatchPatternFn/index.mjs +2 -0
  805. package/dist/lib/node_modules/date-fns/esm/locale/_lib/buildMatchPatternFn/index.mjs.map +1 -0
  806. package/dist/lib/node_modules/date-fns/esm/locale/en-US/_lib/formatDistance/index.mjs +2 -0
  807. package/dist/lib/node_modules/date-fns/esm/locale/en-US/_lib/formatDistance/index.mjs.map +1 -0
  808. package/dist/lib/node_modules/date-fns/esm/locale/en-US/_lib/formatLong/index.mjs +2 -0
  809. package/dist/lib/node_modules/date-fns/esm/locale/en-US/_lib/formatLong/index.mjs.map +1 -0
  810. package/dist/lib/node_modules/date-fns/esm/locale/en-US/_lib/formatRelative/index.mjs +2 -0
  811. package/dist/lib/node_modules/date-fns/esm/locale/en-US/_lib/formatRelative/index.mjs.map +1 -0
  812. package/dist/lib/node_modules/date-fns/esm/locale/en-US/_lib/localize/index.mjs +2 -0
  813. package/dist/lib/node_modules/date-fns/esm/locale/en-US/_lib/localize/index.mjs.map +1 -0
  814. package/dist/lib/node_modules/date-fns/esm/locale/en-US/_lib/match/index.mjs +2 -0
  815. package/dist/lib/node_modules/date-fns/esm/locale/en-US/_lib/match/index.mjs.map +1 -0
  816. package/dist/lib/node_modules/date-fns/esm/locale/en-US/index.mjs +2 -0
  817. package/dist/lib/node_modules/date-fns/esm/locale/en-US/index.mjs.map +1 -0
  818. package/dist/lib/node_modules/date-fns/esm/locale/ko/_lib/formatDistance/index.mjs +2 -0
  819. package/dist/lib/node_modules/date-fns/esm/locale/ko/_lib/formatDistance/index.mjs.map +1 -0
  820. package/dist/lib/node_modules/date-fns/esm/locale/ko/_lib/formatLong/index.mjs +2 -0
  821. package/dist/lib/node_modules/date-fns/esm/locale/ko/_lib/formatLong/index.mjs.map +1 -0
  822. package/dist/lib/node_modules/date-fns/esm/locale/ko/_lib/formatRelative/index.mjs +2 -0
  823. package/dist/lib/node_modules/date-fns/esm/locale/ko/_lib/formatRelative/index.mjs.map +1 -0
  824. package/dist/lib/node_modules/date-fns/esm/locale/ko/_lib/localize/index.mjs +2 -0
  825. package/dist/lib/node_modules/date-fns/esm/locale/ko/_lib/localize/index.mjs.map +1 -0
  826. package/dist/lib/node_modules/date-fns/esm/locale/ko/_lib/match/index.mjs +2 -0
  827. package/dist/lib/node_modules/date-fns/esm/locale/ko/_lib/match/index.mjs.map +1 -0
  828. package/dist/lib/node_modules/date-fns/esm/locale/ko/index.mjs +2 -0
  829. package/dist/lib/node_modules/date-fns/esm/locale/ko/index.mjs.map +1 -0
  830. package/dist/lib/node_modules/date-fns/esm/subMilliseconds/index.mjs +2 -0
  831. package/dist/lib/node_modules/date-fns/esm/subMilliseconds/index.mjs.map +1 -0
  832. package/dist/lib/node_modules/date-fns/esm/toDate/index.mjs +2 -0
  833. package/dist/lib/node_modules/date-fns/esm/toDate/index.mjs.map +1 -0
  834. package/dist/lib/node_modules/object-assign/index.mjs +7 -0
  835. package/dist/lib/node_modules/object-assign/index.mjs.map +1 -0
  836. package/dist/lib/node_modules/prop-types/checkPropTypes.mjs +2 -0
  837. package/dist/lib/node_modules/prop-types/checkPropTypes.mjs.map +1 -0
  838. package/dist/lib/node_modules/prop-types/factoryWithThrowingShims.mjs +2 -0
  839. package/dist/lib/node_modules/prop-types/factoryWithThrowingShims.mjs.map +1 -0
  840. package/dist/lib/node_modules/prop-types/factoryWithTypeCheckers.mjs +2 -0
  841. package/dist/lib/node_modules/prop-types/factoryWithTypeCheckers.mjs.map +1 -0
  842. package/dist/lib/node_modules/prop-types/index.mjs +2 -0
  843. package/dist/lib/node_modules/prop-types/index.mjs.map +1 -0
  844. package/dist/lib/node_modules/prop-types/lib/ReactPropTypesSecret.mjs +2 -0
  845. package/dist/lib/node_modules/prop-types/lib/ReactPropTypesSecret.mjs.map +1 -0
  846. package/dist/lib/node_modules/prop-types/lib/has.mjs +2 -0
  847. package/dist/lib/node_modules/prop-types/lib/has.mjs.map +1 -0
  848. package/dist/lib/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.mjs +10 -0
  849. package/dist/lib/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.mjs.map +1 -0
  850. package/dist/lib/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.mjs +10 -0
  851. package/dist/lib/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.mjs.map +1 -0
  852. package/dist/lib/node_modules/prop-types/node_modules/react-is/index.mjs +2 -0
  853. package/dist/lib/node_modules/prop-types/node_modules/react-is/index.mjs.map +1 -0
  854. package/dist/lib/node_modules/react-pro-sidebar/dist/index.es.mjs +21 -0
  855. package/dist/lib/node_modules/react-pro-sidebar/dist/index.es.mjs.map +1 -0
  856. package/dist/lib/node_modules/react-tabs/esm/components/Tab.mjs +2 -0
  857. package/dist/lib/node_modules/react-tabs/esm/components/Tab.mjs.map +1 -0
  858. package/dist/lib/node_modules/react-tabs/esm/components/TabList.mjs +2 -0
  859. package/dist/lib/node_modules/react-tabs/esm/components/TabList.mjs.map +1 -0
  860. package/dist/lib/node_modules/react-tabs/esm/components/TabPanel.mjs +2 -0
  861. package/dist/lib/node_modules/react-tabs/esm/components/TabPanel.mjs.map +1 -0
  862. package/dist/lib/node_modules/react-tabs/esm/components/Tabs.mjs +2 -0
  863. package/dist/lib/node_modules/react-tabs/esm/components/Tabs.mjs.map +1 -0
  864. package/dist/lib/node_modules/react-tabs/esm/components/UncontrolledTabs.mjs +2 -0
  865. package/dist/lib/node_modules/react-tabs/esm/components/UncontrolledTabs.mjs.map +1 -0
  866. package/dist/lib/node_modules/react-tabs/esm/helpers/childrenDeepMap.mjs +2 -0
  867. package/dist/lib/node_modules/react-tabs/esm/helpers/childrenDeepMap.mjs.map +1 -0
  868. package/dist/lib/node_modules/react-tabs/esm/helpers/count.mjs +2 -0
  869. package/dist/lib/node_modules/react-tabs/esm/helpers/count.mjs.map +1 -0
  870. package/dist/lib/node_modules/react-tabs/esm/helpers/elementTypes.mjs +2 -0
  871. package/dist/lib/node_modules/react-tabs/esm/helpers/elementTypes.mjs.map +1 -0
  872. package/dist/lib/node_modules/react-tabs/esm/helpers/propTypes.mjs +2 -0
  873. package/dist/lib/node_modules/react-tabs/esm/helpers/propTypes.mjs.map +1 -0
  874. package/dist/lib/theme/ThemeProvider.d.ts +16 -0
  875. package/dist/lib/theme/ThemeProvider.js +29 -0
  876. package/dist/lib/theme/index.d.ts +2 -0
  877. package/dist/lib/theme/index.js +2 -0
  878. package/dist/lib/tsconfig.tsbuildinfo +1 -1
  879. package/dist/lib/types.d.ts +85 -0
  880. package/dist/lib/utils/classPrefixes.d.ts +3 -0
  881. package/dist/lib/utils/classPrefixes.js +29 -0
  882. package/dist/lib/utils/useDarkMode.d.ts +1 -0
  883. package/dist/lib/utils/useDarkMode.js +50 -0
  884. package/dist/lib/utils/useWindowSize.d.ts +1 -0
  885. package/dist/lib/utils/useWindowSize.js +17 -0
  886. package/dist/tailwind.config.js +98 -0
  887. package/dist/tsconfig.tsbuildinfo +1 -1
  888. package/package.json +57 -10
  889. package/dist/lib/components/Editor/index.mjs +0 -3
  890. package/dist/lib/constants.mjs +0 -2
  891. package/dist/lib/constants.mjs.map +0 -1
  892. package/dist/lib/index.mjs +0 -2
  893. package/dist/lib/utils/utils.mjs.map +0 -1
  894. package/dist/post-tinymce.js +0 -29
  895. package/public/tinymce/CHANGELOG.md +0 -3453
  896. package/public/tinymce/README.md +0 -73
  897. package/public/tinymce/bower.json +0 -27
  898. package/public/tinymce/composer.json +0 -52
  899. package/public/tinymce/icons/default/icons.js +0 -194
  900. package/public/tinymce/icons/default/icons.min.js +0 -1
  901. package/public/tinymce/icons/default/icons.mjs +0 -2
  902. package/public/tinymce/icons/default/icons.mjs.map +0 -1
  903. package/public/tinymce/icons/default/index.d.ts +0 -1
  904. package/public/tinymce/icons/default/index.js +0 -7
  905. package/public/tinymce/icons/default/index.mjs +0 -2
  906. package/public/tinymce/icons/default/index.mjs.map +0 -1
  907. package/public/tinymce/license.txt +0 -21
  908. package/public/tinymce/models/dom/index.d.ts +0 -1
  909. package/public/tinymce/models/dom/index.js +0 -7
  910. package/public/tinymce/models/dom/index.mjs +0 -2
  911. package/public/tinymce/models/dom/index.mjs.map +0 -1
  912. package/public/tinymce/models/dom/model.js +0 -8040
  913. package/public/tinymce/models/dom/model.min.js +0 -4
  914. package/public/tinymce/models/dom/model.mjs +0 -2
  915. package/public/tinymce/models/dom/model.mjs.map +0 -1
  916. package/public/tinymce/package.json +0 -32
  917. package/public/tinymce/plugins/advlist/index.d.ts +0 -1
  918. package/public/tinymce/plugins/advlist/index.js +0 -7
  919. package/public/tinymce/plugins/advlist/index.mjs +0 -2
  920. package/public/tinymce/plugins/advlist/index.mjs.map +0 -1
  921. package/public/tinymce/plugins/advlist/plugin.js +0 -259
  922. package/public/tinymce/plugins/advlist/plugin.min.js +0 -4
  923. package/public/tinymce/plugins/advlist/plugin.mjs +0 -2
  924. package/public/tinymce/plugins/advlist/plugin.mjs.map +0 -1
  925. package/public/tinymce/plugins/autolink/index.js +0 -7
  926. package/public/tinymce/plugins/autolink/plugin.js +0 -228
  927. package/public/tinymce/plugins/autolink/plugin.min.js +0 -4
  928. package/public/tinymce/plugins/code/index.d.ts +0 -1
  929. package/public/tinymce/plugins/code/index.js +0 -7
  930. package/public/tinymce/plugins/code/index.mjs +0 -2
  931. package/public/tinymce/plugins/code/index.mjs.map +0 -1
  932. package/public/tinymce/plugins/code/plugin.js +0 -85
  933. package/public/tinymce/plugins/code/plugin.min.js +0 -4
  934. package/public/tinymce/plugins/code/plugin.mjs +0 -2
  935. package/public/tinymce/plugins/code/plugin.mjs.map +0 -1
  936. package/public/tinymce/plugins/codesample/index.d.ts +0 -1
  937. package/public/tinymce/plugins/codesample/index.js +0 -7
  938. package/public/tinymce/plugins/codesample/index.mjs +0 -2
  939. package/public/tinymce/plugins/codesample/index.mjs.map +0 -1
  940. package/public/tinymce/plugins/codesample/plugin.d.ts +0 -45
  941. package/public/tinymce/plugins/codesample/plugin.js +0 -2463
  942. package/public/tinymce/plugins/codesample/plugin.min.js +0 -4
  943. package/public/tinymce/plugins/codesample/plugin.mjs +0 -2
  944. package/public/tinymce/plugins/codesample/plugin.mjs.map +0 -1
  945. package/public/tinymce/plugins/image/index.d.ts +0 -1
  946. package/public/tinymce/plugins/image/index.js +0 -7
  947. package/public/tinymce/plugins/image/index.mjs +0 -2
  948. package/public/tinymce/plugins/image/index.mjs.map +0 -1
  949. package/public/tinymce/plugins/image/plugin.js +0 -1505
  950. package/public/tinymce/plugins/image/plugin.min.js +0 -4
  951. package/public/tinymce/plugins/image/plugin.mjs +0 -2
  952. package/public/tinymce/plugins/image/plugin.mjs.map +0 -1
  953. package/public/tinymce/plugins/link/index.d.ts +0 -1
  954. package/public/tinymce/plugins/link/index.js +0 -7
  955. package/public/tinymce/plugins/link/index.mjs +0 -2
  956. package/public/tinymce/plugins/link/index.mjs.map +0 -1
  957. package/public/tinymce/plugins/link/plugin.js +0 -1242
  958. package/public/tinymce/plugins/link/plugin.min.js +0 -4
  959. package/public/tinymce/plugins/link/plugin.mjs +0 -2
  960. package/public/tinymce/plugins/link/plugin.mjs.map +0 -1
  961. package/public/tinymce/plugins/lists/index.d.ts +0 -1
  962. package/public/tinymce/plugins/lists/index.js +0 -7
  963. package/public/tinymce/plugins/lists/index.mjs +0 -2
  964. package/public/tinymce/plugins/lists/index.mjs.map +0 -1
  965. package/public/tinymce/plugins/lists/plugin.js +0 -2172
  966. package/public/tinymce/plugins/lists/plugin.min.js +0 -4
  967. package/public/tinymce/plugins/lists/plugin.mjs +0 -2
  968. package/public/tinymce/plugins/lists/plugin.mjs.map +0 -1
  969. package/public/tinymce/plugins/table/index.d.ts +0 -1
  970. package/public/tinymce/plugins/table/index.js +0 -7
  971. package/public/tinymce/plugins/table/index.mjs +0 -2
  972. package/public/tinymce/plugins/table/index.mjs.map +0 -1
  973. package/public/tinymce/plugins/table/plugin.js +0 -3462
  974. package/public/tinymce/plugins/table/plugin.min.js +0 -4
  975. package/public/tinymce/plugins/table/plugin.mjs +0 -2
  976. package/public/tinymce/plugins/table/plugin.mjs.map +0 -1
  977. package/public/tinymce/skins/content/default/content.css +0 -61
  978. package/public/tinymce/skins/content/default/content.js +0 -2
  979. package/public/tinymce/skins/content/default/content.min.css +0 -1
  980. package/public/tinymce/skins/content/default/content.mjs +0 -2
  981. package/public/tinymce/skins/content/default/content.mjs.map +0 -1
  982. package/public/tinymce/skins/ui/oxide/content.css +0 -785
  983. package/public/tinymce/skins/ui/oxide/content.inline.css +0 -779
  984. package/public/tinymce/skins/ui/oxide/content.inline.js +0 -2
  985. package/public/tinymce/skins/ui/oxide/content.inline.min.css +0 -1
  986. package/public/tinymce/skins/ui/oxide/content.js +0 -2
  987. package/public/tinymce/skins/ui/oxide/content.min.css +0 -1
  988. package/public/tinymce/skins/ui/oxide/content.mjs +0 -2
  989. package/public/tinymce/skins/ui/oxide/content.mjs.map +0 -1
  990. package/public/tinymce/skins/ui/oxide/skin.css +0 -3763
  991. package/public/tinymce/skins/ui/oxide/skin.js +0 -2
  992. package/public/tinymce/skins/ui/oxide/skin.min.css +0 -1
  993. package/public/tinymce/skins/ui/oxide/skin.mjs +0 -2
  994. package/public/tinymce/skins/ui/oxide/skin.mjs.map +0 -1
  995. package/public/tinymce/skins/ui/oxide/skin.shadowdom.css +0 -30
  996. package/public/tinymce/skins/ui/oxide/skin.shadowdom.js +0 -2
  997. package/public/tinymce/skins/ui/oxide/skin.shadowdom.min.css +0 -1
  998. package/public/tinymce/skins/ui/oxide-dark/content.css +0 -766
  999. package/public/tinymce/skins/ui/oxide-dark/content.inline.css +0 -779
  1000. package/public/tinymce/skins/ui/oxide-dark/content.inline.js +0 -2
  1001. package/public/tinymce/skins/ui/oxide-dark/content.inline.min.css +0 -1
  1002. package/public/tinymce/skins/ui/oxide-dark/content.js +0 -2
  1003. package/public/tinymce/skins/ui/oxide-dark/content.min.css +0 -1
  1004. package/public/tinymce/skins/ui/oxide-dark/skin.css +0 -3766
  1005. package/public/tinymce/skins/ui/oxide-dark/skin.js +0 -2
  1006. package/public/tinymce/skins/ui/oxide-dark/skin.min.css +0 -1
  1007. package/public/tinymce/skins/ui/oxide-dark/skin.shadowdom.css +0 -30
  1008. package/public/tinymce/skins/ui/oxide-dark/skin.shadowdom.js +0 -2
  1009. package/public/tinymce/skins/ui/oxide-dark/skin.shadowdom.min.css +0 -1
  1010. package/public/tinymce/themes/silver/index.d.ts +0 -1
  1011. package/public/tinymce/themes/silver/index.js +0 -7
  1012. package/public/tinymce/themes/silver/index.mjs +0 -2
  1013. package/public/tinymce/themes/silver/index.mjs.map +0 -1
  1014. package/public/tinymce/themes/silver/theme.js +0 -30775
  1015. package/public/tinymce/themes/silver/theme.min.js +0 -384
  1016. package/public/tinymce/themes/silver/theme.mjs +0 -2
  1017. package/public/tinymce/themes/silver/theme.mjs.map +0 -1
  1018. package/public/tinymce/tinymce.d.ts +0 -3238
  1019. package/public/tinymce/tinymce.js +0 -31779
  1020. package/public/tinymce/tinymce.min.js +0 -384
  1021. package/public/tinymce/tinymce.mjs +0 -2
  1022. package/public/tinymce/tinymce.mjs.map +0 -1
  1023. /package/dist/lib/{index.mjs.map → _virtual/index.mjs.map} +0 -0
  1024. /package/dist/lib/{components/Editor → dist/lib/Typography/Header}/index.mjs.map +0 -0
  1025. /package/dist/lib/{utils → dist/lib/utils}/utils.mjs +0 -0
  1026. /package/dist/{post-tinymce.d.ts → lib/types.js} +0 -0
@@ -1,2463 +0,0 @@
1
- /**
2
- * TinyMCE version 6.8.5 (TBD)
3
- */
4
-
5
- (function () {
6
- 'use strict';
7
-
8
- var global$2 = tinymce.util.Tools.resolve('tinymce.PluginManager');
9
-
10
- const isNullable = a => a === null || a === undefined;
11
- const isNonNullable = a => !isNullable(a);
12
-
13
- const noop = () => {
14
- };
15
- const constant = value => {
16
- return () => {
17
- return value;
18
- };
19
- };
20
-
21
- class Optional {
22
- constructor(tag, value) {
23
- this.tag = tag;
24
- this.value = value;
25
- }
26
- static some(value) {
27
- return new Optional(true, value);
28
- }
29
- static none() {
30
- return Optional.singletonNone;
31
- }
32
- fold(onNone, onSome) {
33
- if (this.tag) {
34
- return onSome(this.value);
35
- } else {
36
- return onNone();
37
- }
38
- }
39
- isSome() {
40
- return this.tag;
41
- }
42
- isNone() {
43
- return !this.tag;
44
- }
45
- map(mapper) {
46
- if (this.tag) {
47
- return Optional.some(mapper(this.value));
48
- } else {
49
- return Optional.none();
50
- }
51
- }
52
- bind(binder) {
53
- if (this.tag) {
54
- return binder(this.value);
55
- } else {
56
- return Optional.none();
57
- }
58
- }
59
- exists(predicate) {
60
- return this.tag && predicate(this.value);
61
- }
62
- forall(predicate) {
63
- return !this.tag || predicate(this.value);
64
- }
65
- filter(predicate) {
66
- if (!this.tag || predicate(this.value)) {
67
- return this;
68
- } else {
69
- return Optional.none();
70
- }
71
- }
72
- getOr(replacement) {
73
- return this.tag ? this.value : replacement;
74
- }
75
- or(replacement) {
76
- return this.tag ? this : replacement;
77
- }
78
- getOrThunk(thunk) {
79
- return this.tag ? this.value : thunk();
80
- }
81
- orThunk(thunk) {
82
- return this.tag ? this : thunk();
83
- }
84
- getOrDie(message) {
85
- if (!this.tag) {
86
- throw new Error(message !== null && message !== void 0 ? message : 'Called getOrDie on None');
87
- } else {
88
- return this.value;
89
- }
90
- }
91
- static from(value) {
92
- return isNonNullable(value) ? Optional.some(value) : Optional.none();
93
- }
94
- getOrNull() {
95
- return this.tag ? this.value : null;
96
- }
97
- getOrUndefined() {
98
- return this.value;
99
- }
100
- each(worker) {
101
- if (this.tag) {
102
- worker(this.value);
103
- }
104
- }
105
- toArray() {
106
- return this.tag ? [this.value] : [];
107
- }
108
- toString() {
109
- return this.tag ? `some(${ this.value })` : 'none()';
110
- }
111
- }
112
- Optional.singletonNone = new Optional(false);
113
-
114
- const get$1 = (xs, i) => i >= 0 && i < xs.length ? Optional.some(xs[i]) : Optional.none();
115
- const head = xs => get$1(xs, 0);
116
-
117
- var global$1 = tinymce.util.Tools.resolve('tinymce.dom.DOMUtils');
118
-
119
- const Global = typeof window !== 'undefined' ? window : Function('return this;')();
120
-
121
- const prismjs = function (global, module, exports) {
122
- const oldprism = window.Prism;
123
- window.Prism = { manual: true };
124
- var _self = typeof window !== 'undefined' ? window : typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope ? self : {};
125
- var Prism = function (_self) {
126
- var lang = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i;
127
- var uniqueId = 0;
128
- var plainTextGrammar = {};
129
- var _ = {
130
- manual: _self.Prism && _self.Prism.manual,
131
- disableWorkerMessageHandler: _self.Prism && _self.Prism.disableWorkerMessageHandler,
132
- util: {
133
- encode: function encode(tokens) {
134
- if (tokens instanceof Token) {
135
- return new Token(tokens.type, encode(tokens.content), tokens.alias);
136
- } else if (Array.isArray(tokens)) {
137
- return tokens.map(encode);
138
- } else {
139
- return tokens.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/\u00a0/g, ' ');
140
- }
141
- },
142
- type: function (o) {
143
- return Object.prototype.toString.call(o).slice(8, -1);
144
- },
145
- objId: function (obj) {
146
- if (!obj['__id']) {
147
- Object.defineProperty(obj, '__id', { value: ++uniqueId });
148
- }
149
- return obj['__id'];
150
- },
151
- clone: function deepClone(o, visited) {
152
- visited = visited || {};
153
- var clone;
154
- var id;
155
- switch (_.util.type(o)) {
156
- case 'Object':
157
- id = _.util.objId(o);
158
- if (visited[id]) {
159
- return visited[id];
160
- }
161
- clone = {};
162
- visited[id] = clone;
163
- for (var key in o) {
164
- if (o.hasOwnProperty(key)) {
165
- clone[key] = deepClone(o[key], visited);
166
- }
167
- }
168
- return clone;
169
- case 'Array':
170
- id = _.util.objId(o);
171
- if (visited[id]) {
172
- return visited[id];
173
- }
174
- clone = [];
175
- visited[id] = clone;
176
- o.forEach(function (v, i) {
177
- clone[i] = deepClone(v, visited);
178
- });
179
- return clone;
180
- default:
181
- return o;
182
- }
183
- },
184
- getLanguage: function (element) {
185
- while (element) {
186
- var m = lang.exec(element.className);
187
- if (m) {
188
- return m[1].toLowerCase();
189
- }
190
- element = element.parentElement;
191
- }
192
- return 'none';
193
- },
194
- setLanguage: function (element, language) {
195
- element.className = element.className.replace(RegExp(lang, 'gi'), '');
196
- element.classList.add('language-' + language);
197
- },
198
- currentScript: function () {
199
- if (typeof document === 'undefined') {
200
- return null;
201
- }
202
- if ('currentScript' in document && 1 < 2) {
203
- return document.currentScript;
204
- }
205
- try {
206
- throw new Error();
207
- } catch (err) {
208
- var src = (/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(err.stack) || [])[1];
209
- if (src) {
210
- var scripts = document.getElementsByTagName('script');
211
- for (var i in scripts) {
212
- if (scripts[i].src == src) {
213
- return scripts[i];
214
- }
215
- }
216
- }
217
- return null;
218
- }
219
- },
220
- isActive: function (element, className, defaultActivation) {
221
- var no = 'no-' + className;
222
- while (element) {
223
- var classList = element.classList;
224
- if (classList.contains(className)) {
225
- return true;
226
- }
227
- if (classList.contains(no)) {
228
- return false;
229
- }
230
- element = element.parentElement;
231
- }
232
- return !!defaultActivation;
233
- }
234
- },
235
- languages: {
236
- plain: plainTextGrammar,
237
- plaintext: plainTextGrammar,
238
- text: plainTextGrammar,
239
- txt: plainTextGrammar,
240
- extend: function (id, redef) {
241
- var lang = _.util.clone(_.languages[id]);
242
- for (var key in redef) {
243
- lang[key] = redef[key];
244
- }
245
- return lang;
246
- },
247
- insertBefore: function (inside, before, insert, root) {
248
- root = root || _.languages;
249
- var grammar = root[inside];
250
- var ret = {};
251
- for (var token in grammar) {
252
- if (grammar.hasOwnProperty(token)) {
253
- if (token == before) {
254
- for (var newToken in insert) {
255
- if (insert.hasOwnProperty(newToken)) {
256
- ret[newToken] = insert[newToken];
257
- }
258
- }
259
- }
260
- if (!insert.hasOwnProperty(token)) {
261
- ret[token] = grammar[token];
262
- }
263
- }
264
- }
265
- var old = root[inside];
266
- root[inside] = ret;
267
- _.languages.DFS(_.languages, function (key, value) {
268
- if (value === old && key != inside) {
269
- this[key] = ret;
270
- }
271
- });
272
- return ret;
273
- },
274
- DFS: function DFS(o, callback, type, visited) {
275
- visited = visited || {};
276
- var objId = _.util.objId;
277
- for (var i in o) {
278
- if (o.hasOwnProperty(i)) {
279
- callback.call(o, i, o[i], type || i);
280
- var property = o[i];
281
- var propertyType = _.util.type(property);
282
- if (propertyType === 'Object' && !visited[objId(property)]) {
283
- visited[objId(property)] = true;
284
- DFS(property, callback, null, visited);
285
- } else if (propertyType === 'Array' && !visited[objId(property)]) {
286
- visited[objId(property)] = true;
287
- DFS(property, callback, i, visited);
288
- }
289
- }
290
- }
291
- }
292
- },
293
- plugins: {},
294
- highlightAll: function (async, callback) {
295
- _.highlightAllUnder(document, async, callback);
296
- },
297
- highlightAllUnder: function (container, async, callback) {
298
- var env = {
299
- callback: callback,
300
- container: container,
301
- selector: 'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'
302
- };
303
- _.hooks.run('before-highlightall', env);
304
- env.elements = Array.prototype.slice.apply(env.container.querySelectorAll(env.selector));
305
- _.hooks.run('before-all-elements-highlight', env);
306
- for (var i = 0, element; element = env.elements[i++];) {
307
- _.highlightElement(element, async === true, env.callback);
308
- }
309
- },
310
- highlightElement: function (element, async, callback) {
311
- var language = _.util.getLanguage(element);
312
- var grammar = _.languages[language];
313
- _.util.setLanguage(element, language);
314
- var parent = element.parentElement;
315
- if (parent && parent.nodeName.toLowerCase() === 'pre') {
316
- _.util.setLanguage(parent, language);
317
- }
318
- var code = element.textContent;
319
- var env = {
320
- element: element,
321
- language: language,
322
- grammar: grammar,
323
- code: code
324
- };
325
- function insertHighlightedCode(highlightedCode) {
326
- env.highlightedCode = highlightedCode;
327
- _.hooks.run('before-insert', env);
328
- env.element.innerHTML = env.highlightedCode;
329
- _.hooks.run('after-highlight', env);
330
- _.hooks.run('complete', env);
331
- callback && callback.call(env.element);
332
- }
333
- _.hooks.run('before-sanity-check', env);
334
- parent = env.element.parentElement;
335
- if (parent && parent.nodeName.toLowerCase() === 'pre' && !parent.hasAttribute('tabindex')) {
336
- parent.setAttribute('tabindex', '0');
337
- }
338
- if (!env.code) {
339
- _.hooks.run('complete', env);
340
- callback && callback.call(env.element);
341
- return;
342
- }
343
- _.hooks.run('before-highlight', env);
344
- if (!env.grammar) {
345
- insertHighlightedCode(_.util.encode(env.code));
346
- return;
347
- }
348
- if (async && _self.Worker) {
349
- var worker = new Worker(_.filename);
350
- worker.onmessage = function (evt) {
351
- insertHighlightedCode(evt.data);
352
- };
353
- worker.postMessage(JSON.stringify({
354
- language: env.language,
355
- code: env.code,
356
- immediateClose: true
357
- }));
358
- } else {
359
- insertHighlightedCode(_.highlight(env.code, env.grammar, env.language));
360
- }
361
- },
362
- highlight: function (text, grammar, language) {
363
- var env = {
364
- code: text,
365
- grammar: grammar,
366
- language: language
367
- };
368
- _.hooks.run('before-tokenize', env);
369
- if (!env.grammar) {
370
- throw new Error('The language "' + env.language + '" has no grammar.');
371
- }
372
- env.tokens = _.tokenize(env.code, env.grammar);
373
- _.hooks.run('after-tokenize', env);
374
- return Token.stringify(_.util.encode(env.tokens), env.language);
375
- },
376
- tokenize: function (text, grammar) {
377
- var rest = grammar.rest;
378
- if (rest) {
379
- for (var token in rest) {
380
- grammar[token] = rest[token];
381
- }
382
- delete grammar.rest;
383
- }
384
- var tokenList = new LinkedList();
385
- addAfter(tokenList, tokenList.head, text);
386
- matchGrammar(text, tokenList, grammar, tokenList.head, 0);
387
- return toArray(tokenList);
388
- },
389
- hooks: {
390
- all: {},
391
- add: function (name, callback) {
392
- var hooks = _.hooks.all;
393
- hooks[name] = hooks[name] || [];
394
- hooks[name].push(callback);
395
- },
396
- run: function (name, env) {
397
- var callbacks = _.hooks.all[name];
398
- if (!callbacks || !callbacks.length) {
399
- return;
400
- }
401
- for (var i = 0, callback; callback = callbacks[i++];) {
402
- callback(env);
403
- }
404
- }
405
- },
406
- Token: Token
407
- };
408
- _self.Prism = _;
409
- function Token(type, content, alias, matchedStr) {
410
- this.type = type;
411
- this.content = content;
412
- this.alias = alias;
413
- this.length = (matchedStr || '').length | 0;
414
- }
415
- Token.stringify = function stringify(o, language) {
416
- if (typeof o == 'string') {
417
- return o;
418
- }
419
- if (Array.isArray(o)) {
420
- var s = '';
421
- o.forEach(function (e) {
422
- s += stringify(e, language);
423
- });
424
- return s;
425
- }
426
- var env = {
427
- type: o.type,
428
- content: stringify(o.content, language),
429
- tag: 'span',
430
- classes: [
431
- 'token',
432
- o.type
433
- ],
434
- attributes: {},
435
- language: language
436
- };
437
- var aliases = o.alias;
438
- if (aliases) {
439
- if (Array.isArray(aliases)) {
440
- Array.prototype.push.apply(env.classes, aliases);
441
- } else {
442
- env.classes.push(aliases);
443
- }
444
- }
445
- _.hooks.run('wrap', env);
446
- var attributes = '';
447
- for (var name in env.attributes) {
448
- attributes += ' ' + name + '="' + (env.attributes[name] || '').replace(/"/g, '&quot;') + '"';
449
- }
450
- return '<' + env.tag + ' class="' + env.classes.join(' ') + '"' + attributes + '>' + env.content + '</' + env.tag + '>';
451
- };
452
- function matchPattern(pattern, pos, text, lookbehind) {
453
- pattern.lastIndex = pos;
454
- var match = pattern.exec(text);
455
- if (match && lookbehind && match[1]) {
456
- var lookbehindLength = match[1].length;
457
- match.index += lookbehindLength;
458
- match[0] = match[0].slice(lookbehindLength);
459
- }
460
- return match;
461
- }
462
- function matchGrammar(text, tokenList, grammar, startNode, startPos, rematch) {
463
- for (var token in grammar) {
464
- if (!grammar.hasOwnProperty(token) || !grammar[token]) {
465
- continue;
466
- }
467
- var patterns = grammar[token];
468
- patterns = Array.isArray(patterns) ? patterns : [patterns];
469
- for (var j = 0; j < patterns.length; ++j) {
470
- if (rematch && rematch.cause == token + ',' + j) {
471
- return;
472
- }
473
- var patternObj = patterns[j];
474
- var inside = patternObj.inside;
475
- var lookbehind = !!patternObj.lookbehind;
476
- var greedy = !!patternObj.greedy;
477
- var alias = patternObj.alias;
478
- if (greedy && !patternObj.pattern.global) {
479
- var flags = patternObj.pattern.toString().match(/[imsuy]*$/)[0];
480
- patternObj.pattern = RegExp(patternObj.pattern.source, flags + 'g');
481
- }
482
- var pattern = patternObj.pattern || patternObj;
483
- for (var currentNode = startNode.next, pos = startPos; currentNode !== tokenList.tail; pos += currentNode.value.length, currentNode = currentNode.next) {
484
- if (rematch && pos >= rematch.reach) {
485
- break;
486
- }
487
- var str = currentNode.value;
488
- if (tokenList.length > text.length) {
489
- return;
490
- }
491
- if (str instanceof Token) {
492
- continue;
493
- }
494
- var removeCount = 1;
495
- var match;
496
- if (greedy) {
497
- match = matchPattern(pattern, pos, text, lookbehind);
498
- if (!match || match.index >= text.length) {
499
- break;
500
- }
501
- var from = match.index;
502
- var to = match.index + match[0].length;
503
- var p = pos;
504
- p += currentNode.value.length;
505
- while (from >= p) {
506
- currentNode = currentNode.next;
507
- p += currentNode.value.length;
508
- }
509
- p -= currentNode.value.length;
510
- pos = p;
511
- if (currentNode.value instanceof Token) {
512
- continue;
513
- }
514
- for (var k = currentNode; k !== tokenList.tail && (p < to || typeof k.value === 'string'); k = k.next) {
515
- removeCount++;
516
- p += k.value.length;
517
- }
518
- removeCount--;
519
- str = text.slice(pos, p);
520
- match.index -= pos;
521
- } else {
522
- match = matchPattern(pattern, 0, str, lookbehind);
523
- if (!match) {
524
- continue;
525
- }
526
- }
527
- var from = match.index;
528
- var matchStr = match[0];
529
- var before = str.slice(0, from);
530
- var after = str.slice(from + matchStr.length);
531
- var reach = pos + str.length;
532
- if (rematch && reach > rematch.reach) {
533
- rematch.reach = reach;
534
- }
535
- var removeFrom = currentNode.prev;
536
- if (before) {
537
- removeFrom = addAfter(tokenList, removeFrom, before);
538
- pos += before.length;
539
- }
540
- removeRange(tokenList, removeFrom, removeCount);
541
- var wrapped = new Token(token, inside ? _.tokenize(matchStr, inside) : matchStr, alias, matchStr);
542
- currentNode = addAfter(tokenList, removeFrom, wrapped);
543
- if (after) {
544
- addAfter(tokenList, currentNode, after);
545
- }
546
- if (removeCount > 1) {
547
- var nestedRematch = {
548
- cause: token + ',' + j,
549
- reach: reach
550
- };
551
- matchGrammar(text, tokenList, grammar, currentNode.prev, pos, nestedRematch);
552
- if (rematch && nestedRematch.reach > rematch.reach) {
553
- rematch.reach = nestedRematch.reach;
554
- }
555
- }
556
- }
557
- }
558
- }
559
- }
560
- function LinkedList() {
561
- var head = {
562
- value: null,
563
- prev: null,
564
- next: null
565
- };
566
- var tail = {
567
- value: null,
568
- prev: head,
569
- next: null
570
- };
571
- head.next = tail;
572
- this.head = head;
573
- this.tail = tail;
574
- this.length = 0;
575
- }
576
- function addAfter(list, node, value) {
577
- var next = node.next;
578
- var newNode = {
579
- value: value,
580
- prev: node,
581
- next: next
582
- };
583
- node.next = newNode;
584
- next.prev = newNode;
585
- list.length++;
586
- return newNode;
587
- }
588
- function removeRange(list, node, count) {
589
- var next = node.next;
590
- for (var i = 0; i < count && next !== list.tail; i++) {
591
- next = next.next;
592
- }
593
- node.next = next;
594
- next.prev = node;
595
- list.length -= i;
596
- }
597
- function toArray(list) {
598
- var array = [];
599
- var node = list.head.next;
600
- while (node !== list.tail) {
601
- array.push(node.value);
602
- node = node.next;
603
- }
604
- return array;
605
- }
606
- if (!_self.document) {
607
- if (!_self.addEventListener) {
608
- return _;
609
- }
610
- if (!_.disableWorkerMessageHandler) {
611
- _self.addEventListener('message', function (evt) {
612
- var message = JSON.parse(evt.data);
613
- var lang = message.language;
614
- var code = message.code;
615
- var immediateClose = message.immediateClose;
616
- _self.postMessage(_.highlight(code, _.languages[lang], lang));
617
- if (immediateClose) {
618
- _self.close();
619
- }
620
- }, false);
621
- }
622
- return _;
623
- }
624
- var script = _.util.currentScript();
625
- if (script) {
626
- _.filename = script.src;
627
- if (script.hasAttribute('data-manual')) {
628
- _.manual = true;
629
- }
630
- }
631
- function highlightAutomaticallyCallback() {
632
- if (!_.manual) {
633
- _.highlightAll();
634
- }
635
- }
636
- if (!_.manual) {
637
- var readyState = document.readyState;
638
- if (readyState === 'loading' || readyState === 'interactive' && script && script.defer) {
639
- document.addEventListener('DOMContentLoaded', highlightAutomaticallyCallback);
640
- } else {
641
- if (window.requestAnimationFrame) {
642
- window.requestAnimationFrame(highlightAutomaticallyCallback);
643
- } else {
644
- window.setTimeout(highlightAutomaticallyCallback, 16);
645
- }
646
- }
647
- }
648
- return _;
649
- }(_self);
650
- if (typeof module !== 'undefined' && module.exports) {
651
- module.exports = Prism;
652
- }
653
- if (typeof global !== 'undefined') {
654
- global.Prism = Prism;
655
- }
656
- Prism.languages.clike = {
657
- 'comment': [
658
- {
659
- pattern: /(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,
660
- lookbehind: true,
661
- greedy: true
662
- },
663
- {
664
- pattern: /(^|[^\\:])\/\/.*/,
665
- lookbehind: true,
666
- greedy: true
667
- }
668
- ],
669
- 'string': {
670
- pattern: /(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,
671
- greedy: true
672
- },
673
- 'class-name': {
674
- pattern: /(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,
675
- lookbehind: true,
676
- inside: { 'punctuation': /[.\\]/ }
677
- },
678
- 'keyword': /\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,
679
- 'boolean': /\b(?:false|true)\b/,
680
- 'function': /\b\w+(?=\()/,
681
- 'number': /\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,
682
- 'operator': /[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,
683
- 'punctuation': /[{}[\];(),.:]/
684
- };
685
- (function (Prism) {
686
- function getPlaceholder(language, index) {
687
- return '___' + language.toUpperCase() + index + '___';
688
- }
689
- Object.defineProperties(Prism.languages['markup-templating'] = {}, {
690
- buildPlaceholders: {
691
- value: function (env, language, placeholderPattern, replaceFilter) {
692
- if (env.language !== language) {
693
- return;
694
- }
695
- var tokenStack = env.tokenStack = [];
696
- env.code = env.code.replace(placeholderPattern, function (match) {
697
- if (typeof replaceFilter === 'function' && !replaceFilter(match)) {
698
- return match;
699
- }
700
- var i = tokenStack.length;
701
- var placeholder;
702
- while (env.code.indexOf(placeholder = getPlaceholder(language, i)) !== -1) {
703
- ++i;
704
- }
705
- tokenStack[i] = match;
706
- return placeholder;
707
- });
708
- env.grammar = Prism.languages.markup;
709
- }
710
- },
711
- tokenizePlaceholders: {
712
- value: function (env, language) {
713
- if (env.language !== language || !env.tokenStack) {
714
- return;
715
- }
716
- env.grammar = Prism.languages[language];
717
- var j = 0;
718
- var keys = Object.keys(env.tokenStack);
719
- function walkTokens(tokens) {
720
- for (var i = 0; i < tokens.length; i++) {
721
- if (j >= keys.length) {
722
- break;
723
- }
724
- var token = tokens[i];
725
- if (typeof token === 'string' || token.content && typeof token.content === 'string') {
726
- var k = keys[j];
727
- var t = env.tokenStack[k];
728
- var s = typeof token === 'string' ? token : token.content;
729
- var placeholder = getPlaceholder(language, k);
730
- var index = s.indexOf(placeholder);
731
- if (index > -1) {
732
- ++j;
733
- var before = s.substring(0, index);
734
- var middle = new Prism.Token(language, Prism.tokenize(t, env.grammar), 'language-' + language, t);
735
- var after = s.substring(index + placeholder.length);
736
- var replacement = [];
737
- if (before) {
738
- replacement.push.apply(replacement, walkTokens([before]));
739
- }
740
- replacement.push(middle);
741
- if (after) {
742
- replacement.push.apply(replacement, walkTokens([after]));
743
- }
744
- if (typeof token === 'string') {
745
- tokens.splice.apply(tokens, [
746
- i,
747
- 1
748
- ].concat(replacement));
749
- } else {
750
- token.content = replacement;
751
- }
752
- }
753
- } else if (token.content) {
754
- walkTokens(token.content);
755
- }
756
- }
757
- return tokens;
758
- }
759
- walkTokens(env.tokens);
760
- }
761
- }
762
- });
763
- }(Prism));
764
- Prism.languages.c = Prism.languages.extend('clike', {
765
- 'comment': {
766
- pattern: /\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,
767
- greedy: true
768
- },
769
- 'string': {
770
- pattern: /"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,
771
- greedy: true
772
- },
773
- 'class-name': {
774
- pattern: /(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,
775
- lookbehind: true
776
- },
777
- 'keyword': /\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,
778
- 'function': /\b[a-z_]\w*(?=\s*\()/i,
779
- 'number': /(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,
780
- 'operator': />>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/
781
- });
782
- Prism.languages.insertBefore('c', 'string', {
783
- 'char': {
784
- pattern: /'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,
785
- greedy: true
786
- }
787
- });
788
- Prism.languages.insertBefore('c', 'string', {
789
- 'macro': {
790
- pattern: /(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,
791
- lookbehind: true,
792
- greedy: true,
793
- alias: 'property',
794
- inside: {
795
- 'string': [
796
- {
797
- pattern: /^(#\s*include\s*)<[^>]+>/,
798
- lookbehind: true
799
- },
800
- Prism.languages.c['string']
801
- ],
802
- 'char': Prism.languages.c['char'],
803
- 'comment': Prism.languages.c['comment'],
804
- 'macro-name': [
805
- {
806
- pattern: /(^#\s*define\s+)\w+\b(?!\()/i,
807
- lookbehind: true
808
- },
809
- {
810
- pattern: /(^#\s*define\s+)\w+\b(?=\()/i,
811
- lookbehind: true,
812
- alias: 'function'
813
- }
814
- ],
815
- 'directive': {
816
- pattern: /^(#\s*)[a-z]+/,
817
- lookbehind: true,
818
- alias: 'keyword'
819
- },
820
- 'directive-hash': /^#/,
821
- 'punctuation': /##|\\(?=[\r\n])/,
822
- 'expression': {
823
- pattern: /\S[\s\S]*/,
824
- inside: Prism.languages.c
825
- }
826
- }
827
- }
828
- });
829
- Prism.languages.insertBefore('c', 'function', { 'constant': /\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/ });
830
- delete Prism.languages.c['boolean'];
831
- (function (Prism) {
832
- var keyword = /\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/;
833
- var modName = /\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g, function () {
834
- return keyword.source;
835
- });
836
- Prism.languages.cpp = Prism.languages.extend('c', {
837
- 'class-name': [
838
- {
839
- pattern: RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g, function () {
840
- return keyword.source;
841
- })),
842
- lookbehind: true
843
- },
844
- /\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,
845
- /\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,
846
- /\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/
847
- ],
848
- 'keyword': keyword,
849
- 'number': {
850
- pattern: /(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,
851
- greedy: true
852
- },
853
- 'operator': />>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,
854
- 'boolean': /\b(?:false|true)\b/
855
- });
856
- Prism.languages.insertBefore('cpp', 'string', {
857
- 'module': {
858
- pattern: RegExp(/(\b(?:import|module)\s+)/.source + '(?:' + /"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source + '|' + /<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g, function () {
859
- return modName;
860
- }) + ')'),
861
- lookbehind: true,
862
- greedy: true,
863
- inside: {
864
- 'string': /^[<"][\s\S]+/,
865
- 'operator': /:/,
866
- 'punctuation': /\./
867
- }
868
- },
869
- 'raw-string': {
870
- pattern: /R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,
871
- alias: 'string',
872
- greedy: true
873
- }
874
- });
875
- Prism.languages.insertBefore('cpp', 'keyword', {
876
- 'generic-function': {
877
- pattern: /\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,
878
- inside: {
879
- 'function': /^\w+/,
880
- 'generic': {
881
- pattern: /<[\s\S]+/,
882
- alias: 'class-name',
883
- inside: Prism.languages.cpp
884
- }
885
- }
886
- }
887
- });
888
- Prism.languages.insertBefore('cpp', 'operator', {
889
- 'double-colon': {
890
- pattern: /::/,
891
- alias: 'punctuation'
892
- }
893
- });
894
- Prism.languages.insertBefore('cpp', 'class-name', {
895
- 'base-clause': {
896
- pattern: /(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,
897
- lookbehind: true,
898
- greedy: true,
899
- inside: Prism.languages.extend('cpp', {})
900
- }
901
- });
902
- Prism.languages.insertBefore('inside', 'double-colon', { 'class-name': /\b[a-z_]\w*\b(?!\s*::)/i }, Prism.languages.cpp['base-clause']);
903
- }(Prism));
904
- (function (Prism) {
905
- function replace(pattern, replacements) {
906
- return pattern.replace(/<<(\d+)>>/g, function (m, index) {
907
- return '(?:' + replacements[+index] + ')';
908
- });
909
- }
910
- function re(pattern, replacements, flags) {
911
- return RegExp(replace(pattern, replacements), flags || '');
912
- }
913
- function nested(pattern, depthLog2) {
914
- for (var i = 0; i < depthLog2; i++) {
915
- pattern = pattern.replace(/<<self>>/g, function () {
916
- return '(?:' + pattern + ')';
917
- });
918
- }
919
- return pattern.replace(/<<self>>/g, '[^\\s\\S]');
920
- }
921
- var keywordKinds = {
922
- type: 'bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void',
923
- typeDeclaration: 'class enum interface record struct',
924
- contextual: 'add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)',
925
- other: 'abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield'
926
- };
927
- function keywordsToPattern(words) {
928
- return '\\b(?:' + words.trim().replace(/ /g, '|') + ')\\b';
929
- }
930
- var typeDeclarationKeywords = keywordsToPattern(keywordKinds.typeDeclaration);
931
- var keywords = RegExp(keywordsToPattern(keywordKinds.type + ' ' + keywordKinds.typeDeclaration + ' ' + keywordKinds.contextual + ' ' + keywordKinds.other));
932
- var nonTypeKeywords = keywordsToPattern(keywordKinds.typeDeclaration + ' ' + keywordKinds.contextual + ' ' + keywordKinds.other);
933
- var nonContextualKeywords = keywordsToPattern(keywordKinds.type + ' ' + keywordKinds.typeDeclaration + ' ' + keywordKinds.other);
934
- var generic = nested(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source, 2);
935
- var nestedRound = nested(/\((?:[^()]|<<self>>)*\)/.source, 2);
936
- var name = /@?\b[A-Za-z_]\w*\b/.source;
937
- var genericName = replace(/<<0>>(?:\s*<<1>>)?/.source, [
938
- name,
939
- generic
940
- ]);
941
- var identifier = replace(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source, [
942
- nonTypeKeywords,
943
- genericName
944
- ]);
945
- var array = /\[\s*(?:,\s*)*\]/.source;
946
- var typeExpressionWithoutTuple = replace(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source, [
947
- identifier,
948
- array
949
- ]);
950
- var tupleElement = replace(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source, [
951
- generic,
952
- nestedRound,
953
- array
954
- ]);
955
- var tuple = replace(/\(<<0>>+(?:,<<0>>+)+\)/.source, [tupleElement]);
956
- var typeExpression = replace(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source, [
957
- tuple,
958
- identifier,
959
- array
960
- ]);
961
- var typeInside = {
962
- 'keyword': keywords,
963
- 'punctuation': /[<>()?,.:[\]]/
964
- };
965
- var character = /'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source;
966
- var regularString = /"(?:\\.|[^\\"\r\n])*"/.source;
967
- var verbatimString = /@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;
968
- Prism.languages.csharp = Prism.languages.extend('clike', {
969
- 'string': [
970
- {
971
- pattern: re(/(^|[^$\\])<<0>>/.source, [verbatimString]),
972
- lookbehind: true,
973
- greedy: true
974
- },
975
- {
976
- pattern: re(/(^|[^@$\\])<<0>>/.source, [regularString]),
977
- lookbehind: true,
978
- greedy: true
979
- }
980
- ],
981
- 'class-name': [
982
- {
983
- pattern: re(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source, [identifier]),
984
- lookbehind: true,
985
- inside: typeInside
986
- },
987
- {
988
- pattern: re(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source, [
989
- name,
990
- typeExpression
991
- ]),
992
- lookbehind: true,
993
- inside: typeInside
994
- },
995
- {
996
- pattern: re(/(\busing\s+)<<0>>(?=\s*=)/.source, [name]),
997
- lookbehind: true
998
- },
999
- {
1000
- pattern: re(/(\b<<0>>\s+)<<1>>/.source, [
1001
- typeDeclarationKeywords,
1002
- genericName
1003
- ]),
1004
- lookbehind: true,
1005
- inside: typeInside
1006
- },
1007
- {
1008
- pattern: re(/(\bcatch\s*\(\s*)<<0>>/.source, [identifier]),
1009
- lookbehind: true,
1010
- inside: typeInside
1011
- },
1012
- {
1013
- pattern: re(/(\bwhere\s+)<<0>>/.source, [name]),
1014
- lookbehind: true
1015
- },
1016
- {
1017
- pattern: re(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source, [typeExpressionWithoutTuple]),
1018
- lookbehind: true,
1019
- inside: typeInside
1020
- },
1021
- {
1022
- pattern: re(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source, [
1023
- typeExpression,
1024
- nonContextualKeywords,
1025
- name
1026
- ]),
1027
- inside: typeInside
1028
- }
1029
- ],
1030
- 'keyword': keywords,
1031
- 'number': /(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,
1032
- 'operator': />>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,
1033
- 'punctuation': /\?\.?|::|[{}[\];(),.:]/
1034
- });
1035
- Prism.languages.insertBefore('csharp', 'number', {
1036
- 'range': {
1037
- pattern: /\.\./,
1038
- alias: 'operator'
1039
- }
1040
- });
1041
- Prism.languages.insertBefore('csharp', 'punctuation', {
1042
- 'named-parameter': {
1043
- pattern: re(/([(,]\s*)<<0>>(?=\s*:)/.source, [name]),
1044
- lookbehind: true,
1045
- alias: 'punctuation'
1046
- }
1047
- });
1048
- Prism.languages.insertBefore('csharp', 'class-name', {
1049
- 'namespace': {
1050
- pattern: re(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source, [name]),
1051
- lookbehind: true,
1052
- inside: { 'punctuation': /\./ }
1053
- },
1054
- 'type-expression': {
1055
- pattern: re(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source, [nestedRound]),
1056
- lookbehind: true,
1057
- alias: 'class-name',
1058
- inside: typeInside
1059
- },
1060
- 'return-type': {
1061
- pattern: re(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source, [
1062
- typeExpression,
1063
- identifier
1064
- ]),
1065
- inside: typeInside,
1066
- alias: 'class-name'
1067
- },
1068
- 'constructor-invocation': {
1069
- pattern: re(/(\bnew\s+)<<0>>(?=\s*[[({])/.source, [typeExpression]),
1070
- lookbehind: true,
1071
- inside: typeInside,
1072
- alias: 'class-name'
1073
- },
1074
- 'generic-method': {
1075
- pattern: re(/<<0>>\s*<<1>>(?=\s*\()/.source, [
1076
- name,
1077
- generic
1078
- ]),
1079
- inside: {
1080
- 'function': re(/^<<0>>/.source, [name]),
1081
- 'generic': {
1082
- pattern: RegExp(generic),
1083
- alias: 'class-name',
1084
- inside: typeInside
1085
- }
1086
- }
1087
- },
1088
- 'type-list': {
1089
- pattern: re(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source, [
1090
- typeDeclarationKeywords,
1091
- genericName,
1092
- name,
1093
- typeExpression,
1094
- keywords.source,
1095
- nestedRound,
1096
- /\bnew\s*\(\s*\)/.source
1097
- ]),
1098
- lookbehind: true,
1099
- inside: {
1100
- 'record-arguments': {
1101
- pattern: re(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source, [
1102
- genericName,
1103
- nestedRound
1104
- ]),
1105
- lookbehind: true,
1106
- greedy: true,
1107
- inside: Prism.languages.csharp
1108
- },
1109
- 'keyword': keywords,
1110
- 'class-name': {
1111
- pattern: RegExp(typeExpression),
1112
- greedy: true,
1113
- inside: typeInside
1114
- },
1115
- 'punctuation': /[,()]/
1116
- }
1117
- },
1118
- 'preprocessor': {
1119
- pattern: /(^[\t ]*)#.*/m,
1120
- lookbehind: true,
1121
- alias: 'property',
1122
- inside: {
1123
- 'directive': {
1124
- pattern: /(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,
1125
- lookbehind: true,
1126
- alias: 'keyword'
1127
- }
1128
- }
1129
- }
1130
- });
1131
- var regularStringOrCharacter = regularString + '|' + character;
1132
- var regularStringCharacterOrComment = replace(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source, [regularStringOrCharacter]);
1133
- var roundExpression = nested(replace(/[^"'/()]|<<0>>|\(<<self>>*\)/.source, [regularStringCharacterOrComment]), 2);
1134
- var attrTarget = /\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source;
1135
- var attr = replace(/<<0>>(?:\s*\(<<1>>*\))?/.source, [
1136
- identifier,
1137
- roundExpression
1138
- ]);
1139
- Prism.languages.insertBefore('csharp', 'class-name', {
1140
- 'attribute': {
1141
- pattern: re(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source, [
1142
- attrTarget,
1143
- attr
1144
- ]),
1145
- lookbehind: true,
1146
- greedy: true,
1147
- inside: {
1148
- 'target': {
1149
- pattern: re(/^<<0>>(?=\s*:)/.source, [attrTarget]),
1150
- alias: 'keyword'
1151
- },
1152
- 'attribute-arguments': {
1153
- pattern: re(/\(<<0>>*\)/.source, [roundExpression]),
1154
- inside: Prism.languages.csharp
1155
- },
1156
- 'class-name': {
1157
- pattern: RegExp(identifier),
1158
- inside: { 'punctuation': /\./ }
1159
- },
1160
- 'punctuation': /[:,]/
1161
- }
1162
- }
1163
- });
1164
- var formatString = /:[^}\r\n]+/.source;
1165
- var mInterpolationRound = nested(replace(/[^"'/()]|<<0>>|\(<<self>>*\)/.source, [regularStringCharacterOrComment]), 2);
1166
- var mInterpolation = replace(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source, [
1167
- mInterpolationRound,
1168
- formatString
1169
- ]);
1170
- var sInterpolationRound = nested(replace(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source, [regularStringOrCharacter]), 2);
1171
- var sInterpolation = replace(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source, [
1172
- sInterpolationRound,
1173
- formatString
1174
- ]);
1175
- function createInterpolationInside(interpolation, interpolationRound) {
1176
- return {
1177
- 'interpolation': {
1178
- pattern: re(/((?:^|[^{])(?:\{\{)*)<<0>>/.source, [interpolation]),
1179
- lookbehind: true,
1180
- inside: {
1181
- 'format-string': {
1182
- pattern: re(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source, [
1183
- interpolationRound,
1184
- formatString
1185
- ]),
1186
- lookbehind: true,
1187
- inside: { 'punctuation': /^:/ }
1188
- },
1189
- 'punctuation': /^\{|\}$/,
1190
- 'expression': {
1191
- pattern: /[\s\S]+/,
1192
- alias: 'language-csharp',
1193
- inside: Prism.languages.csharp
1194
- }
1195
- }
1196
- },
1197
- 'string': /[\s\S]+/
1198
- };
1199
- }
1200
- Prism.languages.insertBefore('csharp', 'string', {
1201
- 'interpolation-string': [
1202
- {
1203
- pattern: re(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source, [mInterpolation]),
1204
- lookbehind: true,
1205
- greedy: true,
1206
- inside: createInterpolationInside(mInterpolation, mInterpolationRound)
1207
- },
1208
- {
1209
- pattern: re(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source, [sInterpolation]),
1210
- lookbehind: true,
1211
- greedy: true,
1212
- inside: createInterpolationInside(sInterpolation, sInterpolationRound)
1213
- }
1214
- ],
1215
- 'char': {
1216
- pattern: RegExp(character),
1217
- greedy: true
1218
- }
1219
- });
1220
- Prism.languages.dotnet = Prism.languages.cs = Prism.languages.csharp;
1221
- }(Prism));
1222
- (function (Prism) {
1223
- var string = /(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;
1224
- Prism.languages.css = {
1225
- 'comment': /\/\*[\s\S]*?\*\//,
1226
- 'atrule': {
1227
- pattern: RegExp('@[\\w-](?:' + /[^;{\s"']|\s+(?!\s)/.source + '|' + string.source + ')*?' + /(?:;|(?=\s*\{))/.source),
1228
- inside: {
1229
- 'rule': /^@[\w-]+/,
1230
- 'selector-function-argument': {
1231
- pattern: /(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,
1232
- lookbehind: true,
1233
- alias: 'selector'
1234
- },
1235
- 'keyword': {
1236
- pattern: /(^|[^\w-])(?:and|not|only|or)(?![\w-])/,
1237
- lookbehind: true
1238
- }
1239
- }
1240
- },
1241
- 'url': {
1242
- pattern: RegExp('\\burl\\((?:' + string.source + '|' + /(?:[^\\\r\n()"']|\\[\s\S])*/.source + ')\\)', 'i'),
1243
- greedy: true,
1244
- inside: {
1245
- 'function': /^url/i,
1246
- 'punctuation': /^\(|\)$/,
1247
- 'string': {
1248
- pattern: RegExp('^' + string.source + '$'),
1249
- alias: 'url'
1250
- }
1251
- }
1252
- },
1253
- 'selector': {
1254
- pattern: RegExp('(^|[{}\\s])[^{}\\s](?:[^{};"\'\\s]|\\s+(?![\\s{])|' + string.source + ')*(?=\\s*\\{)'),
1255
- lookbehind: true
1256
- },
1257
- 'string': {
1258
- pattern: string,
1259
- greedy: true
1260
- },
1261
- 'property': {
1262
- pattern: /(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,
1263
- lookbehind: true
1264
- },
1265
- 'important': /!important\b/i,
1266
- 'function': {
1267
- pattern: /(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,
1268
- lookbehind: true
1269
- },
1270
- 'punctuation': /[(){};:,]/
1271
- };
1272
- Prism.languages.css['atrule'].inside.rest = Prism.languages.css;
1273
- var markup = Prism.languages.markup;
1274
- if (markup) {
1275
- markup.tag.addInlined('style', 'css');
1276
- markup.tag.addAttribute('style', 'css');
1277
- }
1278
- }(Prism));
1279
- (function (Prism) {
1280
- var keywords = /\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/;
1281
- var classNamePrefix = /(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source;
1282
- var className = {
1283
- pattern: RegExp(/(^|[^\w.])/.source + classNamePrefix + /[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),
1284
- lookbehind: true,
1285
- inside: {
1286
- 'namespace': {
1287
- pattern: /^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,
1288
- inside: { 'punctuation': /\./ }
1289
- },
1290
- 'punctuation': /\./
1291
- }
1292
- };
1293
- Prism.languages.java = Prism.languages.extend('clike', {
1294
- 'string': {
1295
- pattern: /(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,
1296
- lookbehind: true,
1297
- greedy: true
1298
- },
1299
- 'class-name': [
1300
- className,
1301
- {
1302
- pattern: RegExp(/(^|[^\w.])/.source + classNamePrefix + /[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),
1303
- lookbehind: true,
1304
- inside: className.inside
1305
- },
1306
- {
1307
- pattern: RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source + classNamePrefix + /[A-Z]\w*\b/.source),
1308
- lookbehind: true,
1309
- inside: className.inside
1310
- }
1311
- ],
1312
- 'keyword': keywords,
1313
- 'function': [
1314
- Prism.languages.clike.function,
1315
- {
1316
- pattern: /(::\s*)[a-z_]\w*/,
1317
- lookbehind: true
1318
- }
1319
- ],
1320
- 'number': /\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,
1321
- 'operator': {
1322
- pattern: /(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,
1323
- lookbehind: true
1324
- },
1325
- 'constant': /\b[A-Z][A-Z_\d]+\b/
1326
- });
1327
- Prism.languages.insertBefore('java', 'string', {
1328
- 'triple-quoted-string': {
1329
- pattern: /"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,
1330
- greedy: true,
1331
- alias: 'string'
1332
- },
1333
- 'char': {
1334
- pattern: /'(?:\\.|[^'\\\r\n]){1,6}'/,
1335
- greedy: true
1336
- }
1337
- });
1338
- Prism.languages.insertBefore('java', 'class-name', {
1339
- 'annotation': {
1340
- pattern: /(^|[^.])@\w+(?:\s*\.\s*\w+)*/,
1341
- lookbehind: true,
1342
- alias: 'punctuation'
1343
- },
1344
- 'generics': {
1345
- pattern: /<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,
1346
- inside: {
1347
- 'class-name': className,
1348
- 'keyword': keywords,
1349
- 'punctuation': /[<>(),.:]/,
1350
- 'operator': /[?&|]/
1351
- }
1352
- },
1353
- 'import': [
1354
- {
1355
- pattern: RegExp(/(\bimport\s+)/.source + classNamePrefix + /(?:[A-Z]\w*|\*)(?=\s*;)/.source),
1356
- lookbehind: true,
1357
- inside: {
1358
- 'namespace': className.inside.namespace,
1359
- 'punctuation': /\./,
1360
- 'operator': /\*/,
1361
- 'class-name': /\w+/
1362
- }
1363
- },
1364
- {
1365
- pattern: RegExp(/(\bimport\s+static\s+)/.source + classNamePrefix + /(?:\w+|\*)(?=\s*;)/.source),
1366
- lookbehind: true,
1367
- alias: 'static',
1368
- inside: {
1369
- 'namespace': className.inside.namespace,
1370
- 'static': /\b\w+$/,
1371
- 'punctuation': /\./,
1372
- 'operator': /\*/,
1373
- 'class-name': /\w+/
1374
- }
1375
- }
1376
- ],
1377
- 'namespace': {
1378
- pattern: RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g, function () {
1379
- return keywords.source;
1380
- })),
1381
- lookbehind: true,
1382
- inside: { 'punctuation': /\./ }
1383
- }
1384
- });
1385
- }(Prism));
1386
- Prism.languages.javascript = Prism.languages.extend('clike', {
1387
- 'class-name': [
1388
- Prism.languages.clike['class-name'],
1389
- {
1390
- pattern: /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,
1391
- lookbehind: true
1392
- }
1393
- ],
1394
- 'keyword': [
1395
- {
1396
- pattern: /((?:^|\})\s*)catch\b/,
1397
- lookbehind: true
1398
- },
1399
- {
1400
- pattern: /(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,
1401
- lookbehind: true
1402
- }
1403
- ],
1404
- 'function': /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,
1405
- 'number': {
1406
- pattern: RegExp(/(^|[^\w$])/.source + '(?:' + (/NaN|Infinity/.source + '|' + /0[bB][01]+(?:_[01]+)*n?/.source + '|' + /0[oO][0-7]+(?:_[0-7]+)*n?/.source + '|' + /0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source + '|' + /\d+(?:_\d+)*n/.source + '|' + /(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source) + ')' + /(?![\w$])/.source),
1407
- lookbehind: true
1408
- },
1409
- 'operator': /--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/
1410
- });
1411
- Prism.languages.javascript['class-name'][0].pattern = /(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/;
1412
- Prism.languages.insertBefore('javascript', 'keyword', {
1413
- 'regex': {
1414
- pattern: RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source + /\//.source + '(?:' + /(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source + '|' + /(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source + ')' + /(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),
1415
- lookbehind: true,
1416
- greedy: true,
1417
- inside: {
1418
- 'regex-source': {
1419
- pattern: /^(\/)[\s\S]+(?=\/[a-z]*$)/,
1420
- lookbehind: true,
1421
- alias: 'language-regex',
1422
- inside: Prism.languages.regex
1423
- },
1424
- 'regex-delimiter': /^\/|\/$/,
1425
- 'regex-flags': /^[a-z]+$/
1426
- }
1427
- },
1428
- 'function-variable': {
1429
- pattern: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,
1430
- alias: 'function'
1431
- },
1432
- 'parameter': [
1433
- {
1434
- pattern: /(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,
1435
- lookbehind: true,
1436
- inside: Prism.languages.javascript
1437
- },
1438
- {
1439
- pattern: /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,
1440
- lookbehind: true,
1441
- inside: Prism.languages.javascript
1442
- },
1443
- {
1444
- pattern: /(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,
1445
- lookbehind: true,
1446
- inside: Prism.languages.javascript
1447
- },
1448
- {
1449
- pattern: /((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,
1450
- lookbehind: true,
1451
- inside: Prism.languages.javascript
1452
- }
1453
- ],
1454
- 'constant': /\b[A-Z](?:[A-Z_]|\dx?)*\b/
1455
- });
1456
- Prism.languages.insertBefore('javascript', 'string', {
1457
- 'hashbang': {
1458
- pattern: /^#!.*/,
1459
- greedy: true,
1460
- alias: 'comment'
1461
- },
1462
- 'template-string': {
1463
- pattern: /`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,
1464
- greedy: true,
1465
- inside: {
1466
- 'template-punctuation': {
1467
- pattern: /^`|`$/,
1468
- alias: 'string'
1469
- },
1470
- 'interpolation': {
1471
- pattern: /((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,
1472
- lookbehind: true,
1473
- inside: {
1474
- 'interpolation-punctuation': {
1475
- pattern: /^\$\{|\}$/,
1476
- alias: 'punctuation'
1477
- },
1478
- rest: Prism.languages.javascript
1479
- }
1480
- },
1481
- 'string': /[\s\S]+/
1482
- }
1483
- },
1484
- 'string-property': {
1485
- pattern: /((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,
1486
- lookbehind: true,
1487
- greedy: true,
1488
- alias: 'property'
1489
- }
1490
- });
1491
- Prism.languages.insertBefore('javascript', 'operator', {
1492
- 'literal-property': {
1493
- pattern: /((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,
1494
- lookbehind: true,
1495
- alias: 'property'
1496
- }
1497
- });
1498
- if (Prism.languages.markup) {
1499
- Prism.languages.markup.tag.addInlined('script', 'javascript');
1500
- Prism.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source, 'javascript');
1501
- }
1502
- Prism.languages.js = Prism.languages.javascript;
1503
- Prism.languages.markup = {
1504
- 'comment': {
1505
- pattern: /<!--(?:(?!<!--)[\s\S])*?-->/,
1506
- greedy: true
1507
- },
1508
- 'prolog': {
1509
- pattern: /<\?[\s\S]+?\?>/,
1510
- greedy: true
1511
- },
1512
- 'doctype': {
1513
- pattern: /<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,
1514
- greedy: true,
1515
- inside: {
1516
- 'internal-subset': {
1517
- pattern: /(^[^\[]*\[)[\s\S]+(?=\]>$)/,
1518
- lookbehind: true,
1519
- greedy: true,
1520
- inside: null
1521
- },
1522
- 'string': {
1523
- pattern: /"[^"]*"|'[^']*'/,
1524
- greedy: true
1525
- },
1526
- 'punctuation': /^<!|>$|[[\]]/,
1527
- 'doctype-tag': /^DOCTYPE/i,
1528
- 'name': /[^\s<>'"]+/
1529
- }
1530
- },
1531
- 'cdata': {
1532
- pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i,
1533
- greedy: true
1534
- },
1535
- 'tag': {
1536
- pattern: /<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,
1537
- greedy: true,
1538
- inside: {
1539
- 'tag': {
1540
- pattern: /^<\/?[^\s>\/]+/,
1541
- inside: {
1542
- 'punctuation': /^<\/?/,
1543
- 'namespace': /^[^\s>\/:]+:/
1544
- }
1545
- },
1546
- 'special-attr': [],
1547
- 'attr-value': {
1548
- pattern: /=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,
1549
- inside: {
1550
- 'punctuation': [
1551
- {
1552
- pattern: /^=/,
1553
- alias: 'attr-equals'
1554
- },
1555
- {
1556
- pattern: /^(\s*)["']|["']$/,
1557
- lookbehind: true
1558
- }
1559
- ]
1560
- }
1561
- },
1562
- 'punctuation': /\/?>/,
1563
- 'attr-name': {
1564
- pattern: /[^\s>\/]+/,
1565
- inside: { 'namespace': /^[^\s>\/:]+:/ }
1566
- }
1567
- }
1568
- },
1569
- 'entity': [
1570
- {
1571
- pattern: /&[\da-z]{1,8};/i,
1572
- alias: 'named-entity'
1573
- },
1574
- /&#x?[\da-f]{1,8};/i
1575
- ]
1576
- };
1577
- Prism.languages.markup['tag'].inside['attr-value'].inside['entity'] = Prism.languages.markup['entity'];
1578
- Prism.languages.markup['doctype'].inside['internal-subset'].inside = Prism.languages.markup;
1579
- Prism.hooks.add('wrap', function (env) {
1580
- if (env.type === 'entity') {
1581
- env.attributes['title'] = env.content.replace(/&amp;/, '&');
1582
- }
1583
- });
1584
- Object.defineProperty(Prism.languages.markup.tag, 'addInlined', {
1585
- value: function addInlined(tagName, lang) {
1586
- var includedCdataInside = {};
1587
- includedCdataInside['language-' + lang] = {
1588
- pattern: /(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,
1589
- lookbehind: true,
1590
- inside: Prism.languages[lang]
1591
- };
1592
- includedCdataInside['cdata'] = /^<!\[CDATA\[|\]\]>$/i;
1593
- var inside = {
1594
- 'included-cdata': {
1595
- pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i,
1596
- inside: includedCdataInside
1597
- }
1598
- };
1599
- inside['language-' + lang] = {
1600
- pattern: /[\s\S]+/,
1601
- inside: Prism.languages[lang]
1602
- };
1603
- var def = {};
1604
- def[tagName] = {
1605
- pattern: RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g, function () {
1606
- return tagName;
1607
- }), 'i'),
1608
- lookbehind: true,
1609
- greedy: true,
1610
- inside: inside
1611
- };
1612
- Prism.languages.insertBefore('markup', 'cdata', def);
1613
- }
1614
- });
1615
- Object.defineProperty(Prism.languages.markup.tag, 'addAttribute', {
1616
- value: function (attrName, lang) {
1617
- Prism.languages.markup.tag.inside['special-attr'].push({
1618
- pattern: RegExp(/(^|["'\s])/.source + '(?:' + attrName + ')' + /\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source, 'i'),
1619
- lookbehind: true,
1620
- inside: {
1621
- 'attr-name': /^[^\s=]+/,
1622
- 'attr-value': {
1623
- pattern: /=[\s\S]+/,
1624
- inside: {
1625
- 'value': {
1626
- pattern: /(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,
1627
- lookbehind: true,
1628
- alias: [
1629
- lang,
1630
- 'language-' + lang
1631
- ],
1632
- inside: Prism.languages[lang]
1633
- },
1634
- 'punctuation': [
1635
- {
1636
- pattern: /^=/,
1637
- alias: 'attr-equals'
1638
- },
1639
- /"|'/
1640
- ]
1641
- }
1642
- }
1643
- }
1644
- });
1645
- }
1646
- });
1647
- Prism.languages.html = Prism.languages.markup;
1648
- Prism.languages.mathml = Prism.languages.markup;
1649
- Prism.languages.svg = Prism.languages.markup;
1650
- Prism.languages.xml = Prism.languages.extend('markup', {});
1651
- Prism.languages.ssml = Prism.languages.xml;
1652
- Prism.languages.atom = Prism.languages.xml;
1653
- Prism.languages.rss = Prism.languages.xml;
1654
- (function (Prism) {
1655
- var comment = /\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/;
1656
- var constant = [
1657
- {
1658
- pattern: /\b(?:false|true)\b/i,
1659
- alias: 'boolean'
1660
- },
1661
- {
1662
- pattern: /(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,
1663
- greedy: true,
1664
- lookbehind: true
1665
- },
1666
- {
1667
- pattern: /(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,
1668
- greedy: true,
1669
- lookbehind: true
1670
- },
1671
- /\b(?:null)\b/i,
1672
- /\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/
1673
- ];
1674
- var number = /\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i;
1675
- var operator = /<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/;
1676
- var punctuation = /[{}\[\](),:;]/;
1677
- Prism.languages.php = {
1678
- 'delimiter': {
1679
- pattern: /\?>$|^<\?(?:php(?=\s)|=)?/i,
1680
- alias: 'important'
1681
- },
1682
- 'comment': comment,
1683
- 'variable': /\$+(?:\w+\b|(?=\{))/,
1684
- 'package': {
1685
- pattern: /(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,
1686
- lookbehind: true,
1687
- inside: { 'punctuation': /\\/ }
1688
- },
1689
- 'class-name-definition': {
1690
- pattern: /(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,
1691
- lookbehind: true,
1692
- alias: 'class-name'
1693
- },
1694
- 'function-definition': {
1695
- pattern: /(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,
1696
- lookbehind: true,
1697
- alias: 'function'
1698
- },
1699
- 'keyword': [
1700
- {
1701
- pattern: /(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,
1702
- alias: 'type-casting',
1703
- greedy: true,
1704
- lookbehind: true
1705
- },
1706
- {
1707
- pattern: /([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,
1708
- alias: 'type-hint',
1709
- greedy: true,
1710
- lookbehind: true
1711
- },
1712
- {
1713
- pattern: /(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|never|object|self|static|string|void)\b/i,
1714
- alias: 'return-type',
1715
- greedy: true,
1716
- lookbehind: true
1717
- },
1718
- {
1719
- pattern: /\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,
1720
- alias: 'type-declaration',
1721
- greedy: true
1722
- },
1723
- {
1724
- pattern: /(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,
1725
- alias: 'type-declaration',
1726
- greedy: true,
1727
- lookbehind: true
1728
- },
1729
- {
1730
- pattern: /\b(?:parent|self|static)(?=\s*::)/i,
1731
- alias: 'static-context',
1732
- greedy: true
1733
- },
1734
- {
1735
- pattern: /(\byield\s+)from\b/i,
1736
- lookbehind: true
1737
- },
1738
- /\bclass\b/i,
1739
- {
1740
- pattern: /((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|never|new|or|parent|print|private|protected|public|readonly|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,
1741
- lookbehind: true
1742
- }
1743
- ],
1744
- 'argument-name': {
1745
- pattern: /([(,]\s*)\b[a-z_]\w*(?=\s*:(?!:))/i,
1746
- lookbehind: true
1747
- },
1748
- 'class-name': [
1749
- {
1750
- pattern: /(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,
1751
- greedy: true,
1752
- lookbehind: true
1753
- },
1754
- {
1755
- pattern: /(\|\s*)\b[a-z_]\w*(?!\\)\b/i,
1756
- greedy: true,
1757
- lookbehind: true
1758
- },
1759
- {
1760
- pattern: /\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,
1761
- greedy: true
1762
- },
1763
- {
1764
- pattern: /(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,
1765
- alias: 'class-name-fully-qualified',
1766
- greedy: true,
1767
- lookbehind: true,
1768
- inside: { 'punctuation': /\\/ }
1769
- },
1770
- {
1771
- pattern: /(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,
1772
- alias: 'class-name-fully-qualified',
1773
- greedy: true,
1774
- inside: { 'punctuation': /\\/ }
1775
- },
1776
- {
1777
- pattern: /(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,
1778
- alias: 'class-name-fully-qualified',
1779
- greedy: true,
1780
- lookbehind: true,
1781
- inside: { 'punctuation': /\\/ }
1782
- },
1783
- {
1784
- pattern: /\b[a-z_]\w*(?=\s*\$)/i,
1785
- alias: 'type-declaration',
1786
- greedy: true
1787
- },
1788
- {
1789
- pattern: /(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,
1790
- alias: [
1791
- 'class-name-fully-qualified',
1792
- 'type-declaration'
1793
- ],
1794
- greedy: true,
1795
- inside: { 'punctuation': /\\/ }
1796
- },
1797
- {
1798
- pattern: /\b[a-z_]\w*(?=\s*::)/i,
1799
- alias: 'static-context',
1800
- greedy: true
1801
- },
1802
- {
1803
- pattern: /(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,
1804
- alias: [
1805
- 'class-name-fully-qualified',
1806
- 'static-context'
1807
- ],
1808
- greedy: true,
1809
- inside: { 'punctuation': /\\/ }
1810
- },
1811
- {
1812
- pattern: /([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,
1813
- alias: 'type-hint',
1814
- greedy: true,
1815
- lookbehind: true
1816
- },
1817
- {
1818
- pattern: /([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,
1819
- alias: [
1820
- 'class-name-fully-qualified',
1821
- 'type-hint'
1822
- ],
1823
- greedy: true,
1824
- lookbehind: true,
1825
- inside: { 'punctuation': /\\/ }
1826
- },
1827
- {
1828
- pattern: /(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,
1829
- alias: 'return-type',
1830
- greedy: true,
1831
- lookbehind: true
1832
- },
1833
- {
1834
- pattern: /(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,
1835
- alias: [
1836
- 'class-name-fully-qualified',
1837
- 'return-type'
1838
- ],
1839
- greedy: true,
1840
- lookbehind: true,
1841
- inside: { 'punctuation': /\\/ }
1842
- }
1843
- ],
1844
- 'constant': constant,
1845
- 'function': {
1846
- pattern: /(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,
1847
- lookbehind: true,
1848
- inside: { 'punctuation': /\\/ }
1849
- },
1850
- 'property': {
1851
- pattern: /(->\s*)\w+/,
1852
- lookbehind: true
1853
- },
1854
- 'number': number,
1855
- 'operator': operator,
1856
- 'punctuation': punctuation
1857
- };
1858
- var string_interpolation = {
1859
- pattern: /\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,
1860
- lookbehind: true,
1861
- inside: Prism.languages.php
1862
- };
1863
- var string = [
1864
- {
1865
- pattern: /<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,
1866
- alias: 'nowdoc-string',
1867
- greedy: true,
1868
- inside: {
1869
- 'delimiter': {
1870
- pattern: /^<<<'[^']+'|[a-z_]\w*;$/i,
1871
- alias: 'symbol',
1872
- inside: { 'punctuation': /^<<<'?|[';]$/ }
1873
- }
1874
- }
1875
- },
1876
- {
1877
- pattern: /<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,
1878
- alias: 'heredoc-string',
1879
- greedy: true,
1880
- inside: {
1881
- 'delimiter': {
1882
- pattern: /^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,
1883
- alias: 'symbol',
1884
- inside: { 'punctuation': /^<<<"?|[";]$/ }
1885
- },
1886
- 'interpolation': string_interpolation
1887
- }
1888
- },
1889
- {
1890
- pattern: /`(?:\\[\s\S]|[^\\`])*`/,
1891
- alias: 'backtick-quoted-string',
1892
- greedy: true
1893
- },
1894
- {
1895
- pattern: /'(?:\\[\s\S]|[^\\'])*'/,
1896
- alias: 'single-quoted-string',
1897
- greedy: true
1898
- },
1899
- {
1900
- pattern: /"(?:\\[\s\S]|[^\\"])*"/,
1901
- alias: 'double-quoted-string',
1902
- greedy: true,
1903
- inside: { 'interpolation': string_interpolation }
1904
- }
1905
- ];
1906
- Prism.languages.insertBefore('php', 'variable', {
1907
- 'string': string,
1908
- 'attribute': {
1909
- pattern: /#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,
1910
- greedy: true,
1911
- inside: {
1912
- 'attribute-content': {
1913
- pattern: /^(#\[)[\s\S]+(?=\]$)/,
1914
- lookbehind: true,
1915
- inside: {
1916
- 'comment': comment,
1917
- 'string': string,
1918
- 'attribute-class-name': [
1919
- {
1920
- pattern: /([^:]|^)\b[a-z_]\w*(?!\\)\b/i,
1921
- alias: 'class-name',
1922
- greedy: true,
1923
- lookbehind: true
1924
- },
1925
- {
1926
- pattern: /([^:]|^)(?:\\?\b[a-z_]\w*)+/i,
1927
- alias: [
1928
- 'class-name',
1929
- 'class-name-fully-qualified'
1930
- ],
1931
- greedy: true,
1932
- lookbehind: true,
1933
- inside: { 'punctuation': /\\/ }
1934
- }
1935
- ],
1936
- 'constant': constant,
1937
- 'number': number,
1938
- 'operator': operator,
1939
- 'punctuation': punctuation
1940
- }
1941
- },
1942
- 'delimiter': {
1943
- pattern: /^#\[|\]$/,
1944
- alias: 'punctuation'
1945
- }
1946
- }
1947
- }
1948
- });
1949
- Prism.hooks.add('before-tokenize', function (env) {
1950
- if (!/<\?/.test(env.code)) {
1951
- return;
1952
- }
1953
- var phpPattern = /<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;
1954
- Prism.languages['markup-templating'].buildPlaceholders(env, 'php', phpPattern);
1955
- });
1956
- Prism.hooks.add('after-tokenize', function (env) {
1957
- Prism.languages['markup-templating'].tokenizePlaceholders(env, 'php');
1958
- });
1959
- }(Prism));
1960
- Prism.languages.python = {
1961
- 'comment': {
1962
- pattern: /(^|[^\\])#.*/,
1963
- lookbehind: true,
1964
- greedy: true
1965
- },
1966
- 'string-interpolation': {
1967
- pattern: /(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,
1968
- greedy: true,
1969
- inside: {
1970
- 'interpolation': {
1971
- pattern: /((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,
1972
- lookbehind: true,
1973
- inside: {
1974
- 'format-spec': {
1975
- pattern: /(:)[^:(){}]+(?=\}$)/,
1976
- lookbehind: true
1977
- },
1978
- 'conversion-option': {
1979
- pattern: /![sra](?=[:}]$)/,
1980
- alias: 'punctuation'
1981
- },
1982
- rest: null
1983
- }
1984
- },
1985
- 'string': /[\s\S]+/
1986
- }
1987
- },
1988
- 'triple-quoted-string': {
1989
- pattern: /(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,
1990
- greedy: true,
1991
- alias: 'string'
1992
- },
1993
- 'string': {
1994
- pattern: /(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,
1995
- greedy: true
1996
- },
1997
- 'function': {
1998
- pattern: /((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,
1999
- lookbehind: true
2000
- },
2001
- 'class-name': {
2002
- pattern: /(\bclass\s+)\w+/i,
2003
- lookbehind: true
2004
- },
2005
- 'decorator': {
2006
- pattern: /(^[\t ]*)@\w+(?:\.\w+)*/m,
2007
- lookbehind: true,
2008
- alias: [
2009
- 'annotation',
2010
- 'punctuation'
2011
- ],
2012
- inside: { 'punctuation': /\./ }
2013
- },
2014
- 'keyword': /\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,
2015
- 'builtin': /\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,
2016
- 'boolean': /\b(?:False|None|True)\b/,
2017
- 'number': /\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,
2018
- 'operator': /[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,
2019
- 'punctuation': /[{}[\];(),.:]/
2020
- };
2021
- Prism.languages.python['string-interpolation'].inside['interpolation'].inside.rest = Prism.languages.python;
2022
- Prism.languages.py = Prism.languages.python;
2023
- (function (Prism) {
2024
- Prism.languages.ruby = Prism.languages.extend('clike', {
2025
- 'comment': {
2026
- pattern: /#.*|^=begin\s[\s\S]*?^=end/m,
2027
- greedy: true
2028
- },
2029
- 'class-name': {
2030
- pattern: /(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,
2031
- lookbehind: true,
2032
- inside: { 'punctuation': /[.\\]/ }
2033
- },
2034
- 'keyword': /\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,
2035
- 'operator': /\.{2,3}|&\.|===|<?=>|[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,
2036
- 'punctuation': /[(){}[\].,;]/
2037
- });
2038
- Prism.languages.insertBefore('ruby', 'operator', {
2039
- 'double-colon': {
2040
- pattern: /::/,
2041
- alias: 'punctuation'
2042
- }
2043
- });
2044
- var interpolation = {
2045
- pattern: /((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,
2046
- lookbehind: true,
2047
- inside: {
2048
- 'content': {
2049
- pattern: /^(#\{)[\s\S]+(?=\}$)/,
2050
- lookbehind: true,
2051
- inside: Prism.languages.ruby
2052
- },
2053
- 'delimiter': {
2054
- pattern: /^#\{|\}$/,
2055
- alias: 'punctuation'
2056
- }
2057
- }
2058
- };
2059
- delete Prism.languages.ruby.function;
2060
- var percentExpression = '(?:' + [
2061
- /([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,
2062
- /\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,
2063
- /\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,
2064
- /\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,
2065
- /<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source
2066
- ].join('|') + ')';
2067
- var symbolName = /(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;
2068
- Prism.languages.insertBefore('ruby', 'keyword', {
2069
- 'regex-literal': [
2070
- {
2071
- pattern: RegExp(/%r/.source + percentExpression + /[egimnosux]{0,6}/.source),
2072
- greedy: true,
2073
- inside: {
2074
- 'interpolation': interpolation,
2075
- 'regex': /[\s\S]+/
2076
- }
2077
- },
2078
- {
2079
- pattern: /(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,
2080
- lookbehind: true,
2081
- greedy: true,
2082
- inside: {
2083
- 'interpolation': interpolation,
2084
- 'regex': /[\s\S]+/
2085
- }
2086
- }
2087
- ],
2088
- 'variable': /[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,
2089
- 'symbol': [
2090
- {
2091
- pattern: RegExp(/(^|[^:]):/.source + symbolName),
2092
- lookbehind: true,
2093
- greedy: true
2094
- },
2095
- {
2096
- pattern: RegExp(/([\r\n{(,][ \t]*)/.source + symbolName + /(?=:(?!:))/.source),
2097
- lookbehind: true,
2098
- greedy: true
2099
- }
2100
- ],
2101
- 'method-definition': {
2102
- pattern: /(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,
2103
- lookbehind: true,
2104
- inside: {
2105
- 'function': /\b\w+$/,
2106
- 'keyword': /^self\b/,
2107
- 'class-name': /^\w+/,
2108
- 'punctuation': /\./
2109
- }
2110
- }
2111
- });
2112
- Prism.languages.insertBefore('ruby', 'string', {
2113
- 'string-literal': [
2114
- {
2115
- pattern: RegExp(/%[qQiIwWs]?/.source + percentExpression),
2116
- greedy: true,
2117
- inside: {
2118
- 'interpolation': interpolation,
2119
- 'string': /[\s\S]+/
2120
- }
2121
- },
2122
- {
2123
- pattern: /("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,
2124
- greedy: true,
2125
- inside: {
2126
- 'interpolation': interpolation,
2127
- 'string': /[\s\S]+/
2128
- }
2129
- },
2130
- {
2131
- pattern: /<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,
2132
- alias: 'heredoc-string',
2133
- greedy: true,
2134
- inside: {
2135
- 'delimiter': {
2136
- pattern: /^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,
2137
- inside: {
2138
- 'symbol': /\b\w+/,
2139
- 'punctuation': /^<<[-~]?/
2140
- }
2141
- },
2142
- 'interpolation': interpolation,
2143
- 'string': /[\s\S]+/
2144
- }
2145
- },
2146
- {
2147
- pattern: /<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,
2148
- alias: 'heredoc-string',
2149
- greedy: true,
2150
- inside: {
2151
- 'delimiter': {
2152
- pattern: /^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,
2153
- inside: {
2154
- 'symbol': /\b\w+/,
2155
- 'punctuation': /^<<[-~]?'|'$/
2156
- }
2157
- },
2158
- 'string': /[\s\S]+/
2159
- }
2160
- }
2161
- ],
2162
- 'command-literal': [
2163
- {
2164
- pattern: RegExp(/%x/.source + percentExpression),
2165
- greedy: true,
2166
- inside: {
2167
- 'interpolation': interpolation,
2168
- 'command': {
2169
- pattern: /[\s\S]+/,
2170
- alias: 'string'
2171
- }
2172
- }
2173
- },
2174
- {
2175
- pattern: /`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,
2176
- greedy: true,
2177
- inside: {
2178
- 'interpolation': interpolation,
2179
- 'command': {
2180
- pattern: /[\s\S]+/,
2181
- alias: 'string'
2182
- }
2183
- }
2184
- }
2185
- ]
2186
- });
2187
- delete Prism.languages.ruby.string;
2188
- Prism.languages.insertBefore('ruby', 'number', {
2189
- 'builtin': /\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,
2190
- 'constant': /\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/
2191
- });
2192
- Prism.languages.rb = Prism.languages.ruby;
2193
- }(Prism));
2194
- window.Prism = oldprism;
2195
- return Prism;
2196
- }(undefined, undefined);
2197
-
2198
- const option = name => editor => editor.options.get(name);
2199
- const register$2 = editor => {
2200
- const registerOption = editor.options.register;
2201
- registerOption('codesample_languages', { processor: 'object[]' });
2202
- registerOption('codesample_global_prismjs', {
2203
- processor: 'boolean',
2204
- default: false
2205
- });
2206
- };
2207
- const getLanguages$1 = option('codesample_languages');
2208
- const useGlobalPrismJS = option('codesample_global_prismjs');
2209
-
2210
- const get = editor => Global.Prism && useGlobalPrismJS(editor) ? Global.Prism : prismjs;
2211
-
2212
- const isCodeSample = elm => {
2213
- return isNonNullable(elm) && elm.nodeName === 'PRE' && elm.className.indexOf('language-') !== -1;
2214
- };
2215
-
2216
- const getSelectedCodeSample = editor => {
2217
- const node = editor.selection ? editor.selection.getNode() : null;
2218
- return isCodeSample(node) ? Optional.some(node) : Optional.none();
2219
- };
2220
- const insertCodeSample = (editor, language, code) => {
2221
- const dom = editor.dom;
2222
- editor.undoManager.transact(() => {
2223
- const node = getSelectedCodeSample(editor);
2224
- code = global$1.DOM.encode(code);
2225
- return node.fold(() => {
2226
- editor.insertContent('<pre id="__new" class="language-' + language + '">' + code + '</pre>');
2227
- const newPre = dom.select('#__new')[0];
2228
- dom.setAttrib(newPre, 'id', null);
2229
- editor.selection.select(newPre);
2230
- }, n => {
2231
- dom.setAttrib(n, 'class', 'language-' + language);
2232
- n.innerHTML = code;
2233
- get(editor).highlightElement(n);
2234
- editor.selection.select(n);
2235
- });
2236
- });
2237
- };
2238
- const getCurrentCode = editor => {
2239
- const node = getSelectedCodeSample(editor);
2240
- return node.bind(n => Optional.from(n.textContent)).getOr('');
2241
- };
2242
-
2243
- const getLanguages = editor => {
2244
- const defaultLanguages = [
2245
- {
2246
- text: 'HTML/XML',
2247
- value: 'markup'
2248
- },
2249
- {
2250
- text: 'JavaScript',
2251
- value: 'javascript'
2252
- },
2253
- {
2254
- text: 'CSS',
2255
- value: 'css'
2256
- },
2257
- {
2258
- text: 'PHP',
2259
- value: 'php'
2260
- },
2261
- {
2262
- text: 'Ruby',
2263
- value: 'ruby'
2264
- },
2265
- {
2266
- text: 'Python',
2267
- value: 'python'
2268
- },
2269
- {
2270
- text: 'Java',
2271
- value: 'java'
2272
- },
2273
- {
2274
- text: 'C',
2275
- value: 'c'
2276
- },
2277
- {
2278
- text: 'C#',
2279
- value: 'csharp'
2280
- },
2281
- {
2282
- text: 'C++',
2283
- value: 'cpp'
2284
- }
2285
- ];
2286
- const customLanguages = getLanguages$1(editor);
2287
- return customLanguages ? customLanguages : defaultLanguages;
2288
- };
2289
- const getCurrentLanguage = (editor, fallback) => {
2290
- const node = getSelectedCodeSample(editor);
2291
- return node.fold(() => fallback, n => {
2292
- const matches = n.className.match(/language-(\w+)/);
2293
- return matches ? matches[1] : fallback;
2294
- });
2295
- };
2296
-
2297
- const open = editor => {
2298
- const languages = getLanguages(editor);
2299
- const defaultLanguage = head(languages).fold(constant(''), l => l.value);
2300
- const currentLanguage = getCurrentLanguage(editor, defaultLanguage);
2301
- const currentCode = getCurrentCode(editor);
2302
- editor.windowManager.open({
2303
- title: 'Insert/Edit Code Sample',
2304
- size: 'large',
2305
- body: {
2306
- type: 'panel',
2307
- items: [
2308
- {
2309
- type: 'listbox',
2310
- name: 'language',
2311
- label: 'Language',
2312
- items: languages
2313
- },
2314
- {
2315
- type: 'textarea',
2316
- name: 'code',
2317
- label: 'Code view'
2318
- }
2319
- ]
2320
- },
2321
- buttons: [
2322
- {
2323
- type: 'cancel',
2324
- name: 'cancel',
2325
- text: 'Cancel'
2326
- },
2327
- {
2328
- type: 'submit',
2329
- name: 'save',
2330
- text: 'Save',
2331
- primary: true
2332
- }
2333
- ],
2334
- initialData: {
2335
- language: currentLanguage,
2336
- code: currentCode
2337
- },
2338
- onSubmit: api => {
2339
- const data = api.getData();
2340
- insertCodeSample(editor, data.language, data.code);
2341
- api.close();
2342
- }
2343
- });
2344
- };
2345
-
2346
- const register$1 = editor => {
2347
- editor.addCommand('codesample', () => {
2348
- const node = editor.selection.getNode();
2349
- if (editor.selection.isCollapsed() || isCodeSample(node)) {
2350
- open(editor);
2351
- } else {
2352
- editor.formatter.toggle('code');
2353
- }
2354
- });
2355
- };
2356
-
2357
- const blank = r => s => s.replace(r, '');
2358
- const trim = blank(/^\s+|\s+$/g);
2359
-
2360
- var global = tinymce.util.Tools.resolve('tinymce.util.Tools');
2361
-
2362
- const setup = editor => {
2363
- editor.on('PreProcess', e => {
2364
- const dom = editor.dom;
2365
- const pres = dom.select('pre[contenteditable=false]', e.node);
2366
- global.each(global.grep(pres, isCodeSample), elm => {
2367
- const code = elm.textContent;
2368
- dom.setAttrib(elm, 'class', trim(dom.getAttrib(elm, 'class')));
2369
- dom.setAttrib(elm, 'contentEditable', null);
2370
- dom.setAttrib(elm, 'data-mce-highlighted', null);
2371
- let child;
2372
- while (child = elm.firstChild) {
2373
- elm.removeChild(child);
2374
- }
2375
- const codeElm = dom.add(elm, 'code');
2376
- codeElm.textContent = code;
2377
- });
2378
- });
2379
- editor.on('SetContent', () => {
2380
- const dom = editor.dom;
2381
- const unprocessedCodeSamples = global.grep(dom.select('pre'), elm => {
2382
- return isCodeSample(elm) && dom.getAttrib(elm, 'data-mce-highlighted') !== 'true';
2383
- });
2384
- if (unprocessedCodeSamples.length) {
2385
- editor.undoManager.transact(() => {
2386
- global.each(unprocessedCodeSamples, elm => {
2387
- var _a;
2388
- global.each(dom.select('br', elm), elm => {
2389
- dom.replace(editor.getDoc().createTextNode('\n'), elm);
2390
- });
2391
- elm.innerHTML = dom.encode((_a = elm.textContent) !== null && _a !== void 0 ? _a : '');
2392
- get(editor).highlightElement(elm);
2393
- dom.setAttrib(elm, 'data-mce-highlighted', true);
2394
- elm.className = trim(elm.className);
2395
- });
2396
- });
2397
- }
2398
- });
2399
- editor.on('PreInit', () => {
2400
- editor.parser.addNodeFilter('pre', nodes => {
2401
- var _a;
2402
- for (let i = 0, l = nodes.length; i < l; i++) {
2403
- const node = nodes[i];
2404
- const isCodeSample = ((_a = node.attr('class')) !== null && _a !== void 0 ? _a : '').indexOf('language-') !== -1;
2405
- if (isCodeSample) {
2406
- node.attr('contenteditable', 'false');
2407
- node.attr('data-mce-highlighted', 'false');
2408
- }
2409
- }
2410
- });
2411
- });
2412
- };
2413
-
2414
- const onSetupEditable = (editor, onChanged = noop) => api => {
2415
- const nodeChanged = () => {
2416
- api.setEnabled(editor.selection.isEditable());
2417
- onChanged(api);
2418
- };
2419
- editor.on('NodeChange', nodeChanged);
2420
- nodeChanged();
2421
- return () => {
2422
- editor.off('NodeChange', nodeChanged);
2423
- };
2424
- };
2425
- const isCodeSampleSelection = editor => {
2426
- const node = editor.selection.getStart();
2427
- return editor.dom.is(node, 'pre[class*="language-"]');
2428
- };
2429
- const register = editor => {
2430
- const onAction = () => editor.execCommand('codesample');
2431
- editor.ui.registry.addToggleButton('codesample', {
2432
- icon: 'code-sample',
2433
- tooltip: 'Insert/edit code sample',
2434
- onAction,
2435
- onSetup: onSetupEditable(editor, api => {
2436
- api.setActive(isCodeSampleSelection(editor));
2437
- })
2438
- });
2439
- editor.ui.registry.addMenuItem('codesample', {
2440
- text: 'Code sample...',
2441
- icon: 'code-sample',
2442
- onAction,
2443
- onSetup: onSetupEditable(editor)
2444
- });
2445
- };
2446
-
2447
- var Plugin = () => {
2448
- global$2.add('codesample', editor => {
2449
- register$2(editor);
2450
- setup(editor);
2451
- register(editor);
2452
- register$1(editor);
2453
- editor.on('dblclick', ev => {
2454
- if (isCodeSample(ev.target)) {
2455
- open(editor);
2456
- }
2457
- });
2458
- });
2459
- };
2460
-
2461
- Plugin();
2462
-
2463
- })();