@lotte-innovate/ui-component-test 0.1.74 → 0.1.76

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1297) hide show
  1. package/README.md +225 -133
  2. package/dist/globals.css +4 -4
  3. package/dist/lib/Typography/Header/index.d.ts +7 -5
  4. package/dist/lib/Typography/Header/index.js +5 -2
  5. package/dist/lib/Typography/Text/index.d.ts +1 -1
  6. package/dist/lib/Typography/Text/index.js +4 -1
  7. package/dist/lib/_virtual/_commonjsHelpers.mjs +2 -0
  8. package/dist/lib/_virtual/_commonjsHelpers.mjs.map +1 -0
  9. package/dist/lib/_virtual/_interop_require_default.mjs +2 -0
  10. package/dist/lib/_virtual/_interop_require_default.mjs.map +1 -0
  11. package/dist/lib/_virtual/_interop_require_wildcard.mjs +2 -0
  12. package/dist/lib/_virtual/_interop_require_wildcard.mjs.map +1 -0
  13. package/dist/lib/_virtual/action-async-storage.external.mjs +2 -0
  14. package/dist/lib/_virtual/action-async-storage.external.mjs.map +1 -0
  15. package/dist/lib/_virtual/add-base-path.mjs +2 -0
  16. package/dist/lib/_virtual/add-base-path.mjs.map +1 -0
  17. package/dist/lib/_virtual/add-locale.mjs +2 -0
  18. package/dist/lib/_virtual/add-locale.mjs.map +1 -0
  19. package/dist/lib/_virtual/add-locale2.mjs +2 -0
  20. package/dist/lib/_virtual/add-locale2.mjs.map +1 -0
  21. package/dist/lib/_virtual/add-path-prefix.mjs +2 -0
  22. package/dist/lib/_virtual/add-path-prefix.mjs.map +1 -0
  23. package/dist/lib/_virtual/amp-context.shared-runtime.mjs +2 -0
  24. package/dist/lib/_virtual/amp-context.shared-runtime.mjs.map +1 -0
  25. package/dist/lib/_virtual/amp-mode.mjs +2 -0
  26. package/dist/lib/_virtual/amp-mode.mjs.map +1 -0
  27. package/dist/lib/_virtual/app-paths.mjs +2 -0
  28. package/dist/lib/_virtual/app-paths.mjs.map +1 -0
  29. package/dist/lib/_virtual/app-router-context.shared-runtime.mjs +2 -0
  30. package/dist/lib/_virtual/app-router-context.shared-runtime.mjs.map +1 -0
  31. package/dist/lib/_virtual/async-local-storage.mjs +2 -0
  32. package/dist/lib/_virtual/async-local-storage.mjs.map +1 -0
  33. package/dist/lib/_virtual/bailout-to-client-rendering.mjs +2 -0
  34. package/dist/lib/_virtual/bailout-to-client-rendering.mjs.map +1 -0
  35. package/dist/lib/_virtual/bailout-to-csr.mjs +2 -0
  36. package/dist/lib/_virtual/bailout-to-csr.mjs.map +1 -0
  37. package/dist/lib/_virtual/client-hook-in-server-component-error.mjs +2 -0
  38. package/dist/lib/_virtual/client-hook-in-server-component-error.mjs.map +1 -0
  39. package/dist/lib/_virtual/detect-domain-locale.mjs +2 -0
  40. package/dist/lib/_virtual/detect-domain-locale.mjs.map +1 -0
  41. package/dist/lib/_virtual/detect-domain-locale2.mjs +2 -0
  42. package/dist/lib/_virtual/detect-domain-locale2.mjs.map +1 -0
  43. package/dist/lib/_virtual/ensure-leading-slash.mjs +2 -0
  44. package/dist/lib/_virtual/ensure-leading-slash.mjs.map +1 -0
  45. package/dist/lib/_virtual/escape-regexp.mjs +2 -0
  46. package/dist/lib/_virtual/escape-regexp.mjs.map +1 -0
  47. package/dist/lib/_virtual/format-url.mjs +2 -0
  48. package/dist/lib/_virtual/format-url.mjs.map +1 -0
  49. package/dist/lib/_virtual/get-domain-locale.mjs +2 -0
  50. package/dist/lib/_virtual/get-domain-locale.mjs.map +1 -0
  51. package/dist/lib/_virtual/get-img-props.mjs +2 -0
  52. package/dist/lib/_virtual/get-img-props.mjs.map +1 -0
  53. package/dist/lib/_virtual/get-segment-value.mjs +2 -0
  54. package/dist/lib/_virtual/get-segment-value.mjs.map +1 -0
  55. package/dist/lib/_virtual/has-base-path.mjs +2 -0
  56. package/dist/lib/_virtual/has-base-path.mjs.map +1 -0
  57. package/dist/lib/_virtual/head-manager-context.shared-runtime.mjs +2 -0
  58. package/dist/lib/_virtual/head-manager-context.shared-runtime.mjs.map +1 -0
  59. package/dist/lib/_virtual/head.mjs +2 -0
  60. package/dist/lib/_virtual/head.mjs.map +1 -0
  61. package/dist/lib/_virtual/hooks-client-context.shared-runtime.mjs +2 -0
  62. package/dist/lib/_virtual/hooks-client-context.shared-runtime.mjs.map +1 -0
  63. package/dist/lib/_virtual/image-blur-svg.mjs +2 -0
  64. package/dist/lib/_virtual/image-blur-svg.mjs.map +1 -0
  65. package/dist/lib/_virtual/image-component.mjs +2 -0
  66. package/dist/lib/_virtual/image-component.mjs.map +1 -0
  67. package/dist/lib/_virtual/image-config-context.shared-runtime.mjs +2 -0
  68. package/dist/lib/_virtual/image-config-context.shared-runtime.mjs.map +1 -0
  69. package/dist/lib/_virtual/image-config.mjs +2 -0
  70. package/dist/lib/_virtual/image-config.mjs.map +1 -0
  71. package/dist/lib/_virtual/image-external.mjs +2 -0
  72. package/dist/lib/_virtual/image-external.mjs.map +1 -0
  73. package/dist/lib/_virtual/image-loader.mjs +2 -0
  74. package/dist/lib/_virtual/image-loader.mjs.map +1 -0
  75. package/dist/lib/_virtual/image.mjs +2 -0
  76. package/dist/lib/_virtual/image.mjs.map +1 -0
  77. package/dist/lib/_virtual/index.mjs +2 -0
  78. package/dist/lib/_virtual/index.mjs.map +1 -0
  79. package/dist/lib/_virtual/index2.mjs +2 -0
  80. package/dist/lib/_virtual/index2.mjs.map +1 -0
  81. package/dist/lib/_virtual/index3.mjs +2 -0
  82. package/dist/lib/_virtual/index3.mjs.map +1 -0
  83. package/dist/lib/_virtual/index4.mjs +2 -0
  84. package/dist/lib/_virtual/index4.mjs.map +1 -0
  85. package/dist/lib/_virtual/index5.mjs +2 -0
  86. package/dist/lib/_virtual/index5.mjs.map +1 -0
  87. package/dist/lib/_virtual/index6.mjs +2 -0
  88. package/dist/lib/_virtual/index6.mjs.map +1 -0
  89. package/dist/lib/_virtual/index7.mjs +2 -0
  90. package/dist/lib/_virtual/index7.mjs.map +1 -0
  91. package/dist/lib/_virtual/index8.mjs +2 -0
  92. package/dist/lib/_virtual/index8.mjs.map +1 -0
  93. package/dist/lib/_virtual/index9.mjs +2 -0
  94. package/dist/lib/_virtual/index9.mjs.map +1 -0
  95. package/dist/lib/_virtual/interception-routes.mjs +2 -0
  96. package/dist/lib/_virtual/interception-routes.mjs.map +1 -0
  97. package/dist/lib/_virtual/interpolate-as.mjs +2 -0
  98. package/dist/lib/_virtual/interpolate-as.mjs.map +1 -0
  99. package/dist/lib/_virtual/is-dynamic.mjs +2 -0
  100. package/dist/lib/_virtual/is-dynamic.mjs.map +1 -0
  101. package/dist/lib/_virtual/is-local-url.mjs +2 -0
  102. package/dist/lib/_virtual/is-local-url.mjs.map +1 -0
  103. package/dist/lib/_virtual/link.mjs +2 -0
  104. package/dist/lib/_virtual/link.mjs.map +1 -0
  105. package/dist/lib/_virtual/link2.mjs +2 -0
  106. package/dist/lib/_virtual/link2.mjs.map +1 -0
  107. package/dist/lib/_virtual/match-remote-pattern.mjs +2 -0
  108. package/dist/lib/_virtual/match-remote-pattern.mjs.map +1 -0
  109. package/dist/lib/_virtual/navigation.mjs +2 -0
  110. package/dist/lib/_virtual/navigation.mjs.map +1 -0
  111. package/dist/lib/_virtual/navigation2.mjs +2 -0
  112. package/dist/lib/_virtual/navigation2.mjs.map +1 -0
  113. package/dist/lib/_virtual/normalize-locale-path.mjs +2 -0
  114. package/dist/lib/_virtual/normalize-locale-path.mjs.map +1 -0
  115. package/dist/lib/_virtual/normalize-locale-path2.mjs +2 -0
  116. package/dist/lib/_virtual/normalize-locale-path2.mjs.map +1 -0
  117. package/dist/lib/_virtual/normalize-trailing-slash.mjs +2 -0
  118. package/dist/lib/_virtual/normalize-trailing-slash.mjs.map +1 -0
  119. package/dist/lib/_virtual/not-found.mjs +2 -0
  120. package/dist/lib/_virtual/not-found.mjs.map +1 -0
  121. package/dist/lib/_virtual/omit.mjs +2 -0
  122. package/dist/lib/_virtual/omit.mjs.map +1 -0
  123. package/dist/lib/_virtual/parse-path.mjs +2 -0
  124. package/dist/lib/_virtual/parse-path.mjs.map +1 -0
  125. package/dist/lib/_virtual/path-has-prefix.mjs +2 -0
  126. package/dist/lib/_virtual/path-has-prefix.mjs.map +1 -0
  127. package/dist/lib/_virtual/querystring.mjs +2 -0
  128. package/dist/lib/_virtual/querystring.mjs.map +1 -0
  129. package/dist/lib/_virtual/redirect-status-code.mjs +2 -0
  130. package/dist/lib/_virtual/redirect-status-code.mjs.map +1 -0
  131. package/dist/lib/_virtual/redirect.mjs +2 -0
  132. package/dist/lib/_virtual/redirect.mjs.map +1 -0
  133. package/dist/lib/_virtual/remove-trailing-slash.mjs +2 -0
  134. package/dist/lib/_virtual/remove-trailing-slash.mjs.map +1 -0
  135. package/dist/lib/_virtual/request-async-storage.external.mjs +2 -0
  136. package/dist/lib/_virtual/request-async-storage.external.mjs.map +1 -0
  137. package/dist/lib/_virtual/request-idle-callback.mjs +2 -0
  138. package/dist/lib/_virtual/request-idle-callback.mjs.map +1 -0
  139. package/dist/lib/_virtual/resolve-href.mjs +2 -0
  140. package/dist/lib/_virtual/resolve-href.mjs.map +1 -0
  141. package/dist/lib/_virtual/route-matcher.mjs +2 -0
  142. package/dist/lib/_virtual/route-matcher.mjs.map +1 -0
  143. package/dist/lib/_virtual/route-regex.mjs +2 -0
  144. package/dist/lib/_virtual/route-regex.mjs.map +1 -0
  145. package/dist/lib/_virtual/router-context.shared-runtime.mjs +2 -0
  146. package/dist/lib/_virtual/router-context.shared-runtime.mjs.map +1 -0
  147. package/dist/lib/_virtual/router-reducer-types.mjs +2 -0
  148. package/dist/lib/_virtual/router-reducer-types.mjs.map +1 -0
  149. package/dist/lib/_virtual/segment.mjs +2 -0
  150. package/dist/lib/_virtual/segment.mjs.map +1 -0
  151. package/dist/lib/_virtual/server-inserted-html.shared-runtime.mjs +2 -0
  152. package/dist/lib/_virtual/server-inserted-html.shared-runtime.mjs.map +1 -0
  153. package/dist/lib/_virtual/side-effect.mjs +2 -0
  154. package/dist/lib/_virtual/side-effect.mjs.map +1 -0
  155. package/dist/lib/_virtual/sorted-routes.mjs +2 -0
  156. package/dist/lib/_virtual/sorted-routes.mjs.map +1 -0
  157. package/dist/lib/_virtual/static-generation-async-storage.external.mjs +2 -0
  158. package/dist/lib/_virtual/static-generation-async-storage.external.mjs.map +1 -0
  159. package/dist/lib/_virtual/toastui-editor-plugin-color-syntax.mjs +2 -0
  160. package/dist/lib/_virtual/toastui-editor-plugin-color-syntax.mjs.map +1 -0
  161. package/dist/lib/_virtual/toastui-editor-plugin-color-syntax2.mjs +2 -0
  162. package/dist/lib/_virtual/toastui-editor-plugin-color-syntax2.mjs.map +1 -0
  163. package/dist/lib/_virtual/toastui-editor-viewer.mjs +2 -0
  164. package/dist/lib/_virtual/toastui-editor-viewer.mjs.map +1 -0
  165. package/dist/lib/_virtual/toastui-editor-viewer2.mjs +2 -0
  166. package/dist/lib/_virtual/toastui-editor-viewer2.mjs.map +1 -0
  167. package/dist/lib/_virtual/tui-color-picker.mjs +2 -0
  168. package/dist/lib/_virtual/tui-color-picker.mjs.map +1 -0
  169. package/dist/lib/_virtual/use-intersection.mjs +2 -0
  170. package/dist/lib/_virtual/use-intersection.mjs.map +1 -0
  171. package/dist/lib/_virtual/utils.mjs +2 -0
  172. package/dist/lib/_virtual/utils.mjs.map +1 -0
  173. package/dist/lib/_virtual/warn-once.mjs +2 -0
  174. package/dist/lib/_virtual/warn-once.mjs.map +1 -0
  175. package/dist/lib/color/constants.d.ts +1 -15
  176. package/dist/lib/color/constants.js +1 -32
  177. package/dist/lib/components/Accordion/index.d.ts +1 -1
  178. package/dist/lib/components/Accordion/index.js +21 -4
  179. package/dist/lib/components/AlertDialog/AlertDialogAction.d.ts +2 -2
  180. package/dist/lib/components/AlertDialog/AlertDialogAction.js +4 -2
  181. package/dist/lib/components/AlertDialog/AlertDialogCancel.d.ts +2 -2
  182. package/dist/lib/components/AlertDialog/AlertDialogCancel.js +1 -0
  183. package/dist/lib/components/AlertDialog/AlertDialogContent.d.ts +1 -1
  184. package/dist/lib/components/AlertDialog/AlertDialogContent.js +2 -1
  185. package/dist/lib/components/AlertDialog/AlertDialogDescription.js +1 -0
  186. package/dist/lib/components/AlertDialog/AlertDialogRoot.js +11 -7
  187. package/dist/lib/components/AlertDialog/AlertDialogTitle.js +1 -0
  188. package/dist/lib/components/AlertDialog/AlertDialogTrigger.d.ts +2 -2
  189. package/dist/lib/components/AlertDialog/AlertDialogTrigger.js +15 -3
  190. package/dist/lib/components/AlertDialog/index.d.ts +1 -0
  191. package/dist/lib/components/AlertDialog/index.js +1 -1
  192. package/dist/lib/components/AspectRatio/index.js +4 -1
  193. package/dist/lib/components/Avatar/index.d.ts +1 -1
  194. package/dist/lib/components/Avatar/index.js +12 -3
  195. package/dist/lib/components/Badge/index.d.ts +2 -2
  196. package/dist/lib/components/Badge/index.js +14 -3
  197. package/dist/lib/components/BarChart/index.d.ts +1 -5
  198. package/dist/lib/components/Breadcrumb/BreadcrumbEllipsis.d.ts +9 -0
  199. package/dist/lib/components/Breadcrumb/BreadcrumbEllipsis.js +34 -0
  200. package/dist/lib/components/Breadcrumb/BreadcrumbItem.d.ts +6 -0
  201. package/dist/lib/components/Breadcrumb/BreadcrumbItem.js +32 -0
  202. package/dist/lib/components/Breadcrumb/BreadcrumbLink.d.ts +10 -0
  203. package/dist/lib/components/Breadcrumb/BreadcrumbLink.js +47 -0
  204. package/dist/lib/components/Breadcrumb/BreadcrumbList.d.ts +6 -0
  205. package/dist/lib/components/Breadcrumb/BreadcrumbList.js +34 -0
  206. package/dist/lib/components/Breadcrumb/BreadcrumbPage.d.ts +8 -0
  207. package/dist/lib/components/Breadcrumb/BreadcrumbPage.js +45 -0
  208. package/dist/lib/components/Breadcrumb/BreadcrumbRoot.d.ts +14 -0
  209. package/dist/lib/components/Breadcrumb/BreadcrumbRoot.js +59 -0
  210. package/dist/lib/components/Breadcrumb/BreadcrumbSeparator.d.ts +9 -0
  211. package/dist/lib/components/Breadcrumb/BreadcrumbSeparator.js +34 -0
  212. package/dist/lib/components/Breadcrumb/index.d.ts +21 -0
  213. package/dist/lib/components/Breadcrumb/index.js +17 -0
  214. package/dist/lib/components/BubbleChart/index.js +12 -3
  215. package/dist/lib/components/Button/index.d.ts +2 -2
  216. package/dist/lib/components/Button/index.js +14 -3
  217. package/dist/lib/components/Callout/CalloutIcon.js +1 -0
  218. package/dist/lib/components/Callout/CalloutRoot.d.ts +1 -1
  219. package/dist/lib/components/Callout/CalloutRoot.js +11 -3
  220. package/dist/lib/components/Callout/CalloutText.js +1 -0
  221. package/dist/lib/components/Callout/index.d.ts +1 -0
  222. package/dist/lib/components/Card/index.d.ts +2 -2
  223. package/dist/lib/components/Card/index.js +9 -1
  224. package/dist/lib/components/Checkbox/index.d.ts +1 -1
  225. package/dist/lib/components/Checkbox/index.js +12 -3
  226. package/dist/lib/components/CheckboxCard/index.d.ts +1 -1
  227. package/dist/lib/components/CheckboxCard/index.js +9 -1
  228. package/dist/lib/components/CheckboxGroup/CheckboxGroupItem.js +1 -0
  229. package/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.js +13 -3
  230. package/dist/lib/components/CheckboxGroup/index.d.ts +2 -1
  231. package/dist/lib/components/ContextMenu/ContextMenuCheckboxItem.js +2 -1
  232. package/dist/lib/components/ContextMenu/ContextMenuContent.d.ts +1 -1
  233. package/dist/lib/components/ContextMenu/ContextMenuContent.js +1 -0
  234. package/dist/lib/components/ContextMenu/ContextMenuItem.d.ts +1 -1
  235. package/dist/lib/components/ContextMenu/ContextMenuItem.js +3 -1
  236. package/dist/lib/components/ContextMenu/ContextMenuItemIndicator.d.ts +1 -1
  237. package/dist/lib/components/ContextMenu/ContextMenuItemIndicator.js +1 -0
  238. package/dist/lib/components/ContextMenu/ContextMenuLabel.js +1 -0
  239. package/dist/lib/components/ContextMenu/ContextMenuRadioGroup.js +1 -0
  240. package/dist/lib/components/ContextMenu/ContextMenuRadioItem.js +2 -1
  241. package/dist/lib/components/ContextMenu/ContextMenuRoot.js +13 -3
  242. package/dist/lib/components/ContextMenu/ContextMenuSubContent.d.ts +1 -1
  243. package/dist/lib/components/ContextMenu/ContextMenuSubContent.js +1 -0
  244. package/dist/lib/components/ContextMenu/ContextMenuSubTrigger.js +4 -2
  245. package/dist/lib/components/ContextMenu/index.d.ts +1 -0
  246. package/dist/lib/components/DataList/DataListItem.js +1 -0
  247. package/dist/lib/components/DataList/DataListLabel.d.ts +1 -1
  248. package/dist/lib/components/DataList/DataListLabel.js +1 -0
  249. package/dist/lib/components/DataList/DataListRoot.js +9 -2
  250. package/dist/lib/components/DataList/DataListValue.d.ts +1 -1
  251. package/dist/lib/components/DataList/DataListValue.js +1 -0
  252. package/dist/lib/components/DataList/index.d.ts +1 -0
  253. package/dist/lib/components/Dialog/DialogAction.d.ts +1 -3
  254. package/dist/lib/components/Dialog/DialogAction.js +3 -1
  255. package/dist/lib/components/Dialog/DialogCancel.d.ts +1 -2
  256. package/dist/lib/components/Dialog/DialogCancel.js +1 -0
  257. package/dist/lib/components/Dialog/DialogContent.d.ts +1 -1
  258. package/dist/lib/components/Dialog/DialogContent.js +1 -0
  259. package/dist/lib/components/Dialog/DialogDescription.js +2 -1
  260. package/dist/lib/components/Dialog/DialogRoot.d.ts +1 -4
  261. package/dist/lib/components/Dialog/DialogRoot.js +11 -2
  262. package/dist/lib/components/Dialog/DialogSlot.d.ts +0 -1
  263. package/dist/lib/components/Dialog/DialogSlot.js +1 -0
  264. package/dist/lib/components/Dialog/DialogTitle.d.ts +0 -2
  265. package/dist/lib/components/Dialog/DialogTitle.js +1 -0
  266. package/dist/lib/components/Dialog/index.d.ts +2 -1
  267. package/dist/lib/components/DropdownMenu/DropdonMenuSubContent.d.ts +1 -1
  268. package/dist/lib/components/DropdownMenu/DropdonMenuSubContent.js +1 -0
  269. package/dist/lib/components/DropdownMenu/DropdownMenuCheckboxItem.js +2 -1
  270. package/dist/lib/components/DropdownMenu/DropdownMenuContent.d.ts +1 -1
  271. package/dist/lib/components/DropdownMenu/DropdownMenuContent.js +1 -0
  272. package/dist/lib/components/DropdownMenu/DropdownMenuItem.d.ts +1 -1
  273. package/dist/lib/components/DropdownMenu/DropdownMenuItem.js +3 -1
  274. package/dist/lib/components/DropdownMenu/DropdownMenuItemIndicator.d.ts +1 -1
  275. package/dist/lib/components/DropdownMenu/DropdownMenuItemIndicator.js +1 -0
  276. package/dist/lib/components/DropdownMenu/DropdownMenuLable.js +1 -0
  277. package/dist/lib/components/DropdownMenu/DropdownMenuRadioItem.js +2 -1
  278. package/dist/lib/components/DropdownMenu/DropdownMenuRoot.d.ts +1 -2
  279. package/dist/lib/components/DropdownMenu/DropdownMenuRoot.js +12 -2
  280. package/dist/lib/components/DropdownMenu/DropdownMenuSubTrigger.js +3 -1
  281. package/dist/lib/components/DropdownMenu/DropdownMenuTrigger.d.ts +1 -1
  282. package/dist/lib/components/DropdownMenu/DropdownMenuTrigger.js +1 -0
  283. package/dist/lib/components/DropdownMenu/index.d.ts +2 -1
  284. package/dist/lib/components/Editor/index.d.ts +6 -0
  285. package/dist/lib/components/Editor/index.js +32 -0
  286. package/dist/lib/components/Footer/index.d.ts +11 -0
  287. package/dist/lib/components/Footer/index.js +50 -0
  288. package/dist/lib/components/Gnb/GnbInfo.d.ts +9 -0
  289. package/dist/lib/components/Gnb/GnbInfo.js +45 -0
  290. package/dist/lib/components/Gnb/GnbLogo.d.ts +9 -0
  291. package/dist/lib/components/Gnb/GnbLogo.js +47 -0
  292. package/dist/lib/components/Gnb/GnbMenu.d.ts +11 -0
  293. package/dist/lib/components/Gnb/GnbMenu.js +48 -0
  294. package/dist/lib/components/Gnb/GnbRoot.d.ts +11 -0
  295. package/dist/lib/components/Gnb/GnbRoot.js +51 -0
  296. package/dist/lib/components/Gnb/index.d.ts +8 -0
  297. package/dist/lib/components/Gnb/index.js +11 -0
  298. package/dist/lib/components/Grid/index.d.ts +5 -0
  299. package/dist/lib/components/Grid/index.js +52 -0
  300. package/dist/lib/components/Grid/useGrid.d.ts +3 -0
  301. package/dist/lib/components/Grid/useGrid.js +67 -0
  302. package/dist/lib/components/HoverCard/HoverCardContent.d.ts +3 -4
  303. package/dist/lib/components/HoverCard/HoverCardContent.js +1 -0
  304. package/dist/lib/components/HoverCard/HoverCardRoot.js +12 -2
  305. package/dist/lib/components/HoverCard/index.d.ts +3 -2
  306. package/dist/lib/components/IconButton/index.d.ts +3 -3
  307. package/dist/lib/components/IconButton/index.js +13 -3
  308. package/dist/lib/components/Inset/index.d.ts +1 -1
  309. package/dist/lib/components/Inset/index.js +8 -1
  310. package/dist/lib/components/Label/index.d.ts +5 -4
  311. package/dist/lib/components/Label/index.js +15 -4
  312. package/dist/lib/components/Menubar/MenubarCheckboxItem.js +3 -1
  313. package/dist/lib/components/Menubar/MenubarContent.d.ts +1 -1
  314. package/dist/lib/components/Menubar/MenubarContent.js +1 -0
  315. package/dist/lib/components/Menubar/MenubarItem.d.ts +1 -1
  316. package/dist/lib/components/Menubar/MenubarItem.js +3 -1
  317. package/dist/lib/components/Menubar/MenubarItemIndicator.d.ts +1 -1
  318. package/dist/lib/components/Menubar/MenubarItemIndicator.js +1 -0
  319. package/dist/lib/components/Menubar/MenubarRadioGroup.js +1 -0
  320. package/dist/lib/components/Menubar/MenubarRadioItem.js +3 -1
  321. package/dist/lib/components/Menubar/MenubarRoot.d.ts +1 -1
  322. package/dist/lib/components/Menubar/MenubarRoot.js +17 -5
  323. package/dist/lib/components/Menubar/MenubarSubContent.d.ts +1 -1
  324. package/dist/lib/components/Menubar/MenubarSubContent.js +1 -0
  325. package/dist/lib/components/Menubar/MenubarSubTrigger.js +3 -1
  326. package/dist/lib/components/Menubar/MenubarTrigger.d.ts +1 -1
  327. package/dist/lib/components/Menubar/MenubarTrigger.js +2 -1
  328. package/dist/lib/components/Menubar/index.d.ts +1 -0
  329. package/dist/lib/components/NavigationMenu/NavigationMenuContent.d.ts +1 -1
  330. package/dist/lib/components/NavigationMenu/NavigationMenuContent.js +2 -1
  331. package/dist/lib/components/NavigationMenu/NavigationMenuIndicator.js +1 -1
  332. package/dist/lib/components/NavigationMenu/NavigationMenuLink.d.ts +1 -1
  333. package/dist/lib/components/NavigationMenu/NavigationMenuLink.js +3 -1
  334. package/dist/lib/components/NavigationMenu/NavigationMenuList.d.ts +1 -1
  335. package/dist/lib/components/NavigationMenu/NavigationMenuList.js +3 -1
  336. package/dist/lib/components/NavigationMenu/NavigationMenuRoot.js +13 -3
  337. package/dist/lib/components/NavigationMenu/NavigationMenuTrigger.d.ts +1 -1
  338. package/dist/lib/components/NavigationMenu/NavigationMenuTrigger.js +3 -1
  339. package/dist/lib/components/NavigationMenu/NavigationMenuViewport.d.ts +2 -2
  340. package/dist/lib/components/NavigationMenu/NavigationMenuViewport.js +3 -2
  341. package/dist/lib/components/NavigationMenu/index.d.ts +1 -0
  342. package/dist/lib/components/Popover/PopoverClose.d.ts +1 -1
  343. package/dist/lib/components/Popover/PopoverClose.js +1 -0
  344. package/dist/lib/components/Popover/PopoverContent.d.ts +3 -1
  345. package/dist/lib/components/Popover/PopoverContent.js +1 -0
  346. package/dist/lib/components/Popover/PopoverRoot.d.ts +1 -2
  347. package/dist/lib/components/Popover/PopoverRoot.js +8 -1
  348. package/dist/lib/components/Popover/index.d.ts +2 -1
  349. package/dist/lib/components/Progress/index.d.ts +3 -3
  350. package/dist/lib/components/Progress/index.js +14 -3
  351. package/dist/lib/components/RadarChart/index.js +12 -3
  352. package/dist/lib/components/Radio/index.d.ts +2 -2
  353. package/dist/lib/components/Radio/index.js +13 -6
  354. package/dist/lib/components/RadioCards/RadioCardsItem.d.ts +1 -1
  355. package/dist/lib/components/RadioCards/RadioCardsItem.js +1 -0
  356. package/dist/lib/components/RadioCards/RadioCardsRoot.d.ts +1 -1
  357. package/dist/lib/components/RadioCards/RadioCardsRoot.js +13 -3
  358. package/dist/lib/components/RadioCards/index.d.ts +2 -1
  359. package/dist/lib/components/RadioGroup/RadioGroupItem.d.ts +0 -1
  360. package/dist/lib/components/RadioGroup/RadioGroupItem.js +1 -0
  361. package/dist/lib/components/RadioGroup/RadioGroupRoot.d.ts +1 -1
  362. package/dist/lib/components/RadioGroup/RadioGroupRoot.js +12 -3
  363. package/dist/lib/components/RadioGroup/index.d.ts +2 -1
  364. package/dist/lib/components/ScrollArea/index.d.ts +1 -1
  365. package/dist/lib/components/ScrollArea/index.js +4 -1
  366. package/dist/lib/components/SegmentedControl/SegmentedControlRoot.d.ts +2 -2
  367. package/dist/lib/components/SegmentedControl/SegmentedControlRoot.js +11 -3
  368. package/dist/lib/components/SegmentedControl/index.d.ts +2 -1
  369. package/dist/lib/components/SegmentedControl/index.js +1 -1
  370. package/dist/lib/components/Select/index.d.ts +4 -2
  371. package/dist/lib/components/Select/index.js +33 -13
  372. package/dist/lib/components/Separator/index.d.ts +1 -1
  373. package/dist/lib/components/Separator/index.js +10 -2
  374. package/dist/lib/components/Skeleton/index.d.ts +1 -1
  375. package/dist/lib/components/Skeleton/index.js +5 -1
  376. package/dist/lib/components/Slider/index.d.ts +2 -2
  377. package/dist/lib/components/Slider/index.js +12 -5
  378. package/dist/lib/components/Spinner/index.js +4 -1
  379. package/dist/lib/components/TabNav/index.d.ts +2 -2
  380. package/dist/lib/components/TabNav/index.js +6 -3
  381. package/dist/lib/components/Table/index.d.ts +1 -1
  382. package/dist/lib/components/Table/index.js +9 -3
  383. package/dist/lib/components/Tabs/index.d.ts +5 -4
  384. package/dist/lib/components/Tabs/index.js +6 -3
  385. package/dist/lib/components/TextArea/index.d.ts +2 -2
  386. package/dist/lib/components/TextArea/index.js +11 -3
  387. package/dist/lib/components/TextField/index.d.ts +3 -3
  388. package/dist/lib/components/TextField/index.js +12 -4
  389. package/dist/lib/components/Timeline/TimelineConnector.d.ts +6 -0
  390. package/dist/lib/components/Timeline/TimelineConnector.js +36 -0
  391. package/dist/lib/components/Timeline/TimelineContent.d.ts +6 -0
  392. package/dist/lib/components/Timeline/TimelineContent.js +34 -0
  393. package/dist/lib/components/Timeline/TimelineDescription.d.ts +6 -0
  394. package/dist/lib/components/Timeline/TimelineDescription.js +34 -0
  395. package/dist/lib/components/Timeline/TimelineHeader.d.ts +6 -0
  396. package/dist/lib/components/Timeline/TimelineHeader.js +34 -0
  397. package/dist/lib/components/Timeline/TimelineIcon.d.ts +8 -0
  398. package/dist/lib/components/Timeline/TimelineIcon.js +42 -0
  399. package/dist/lib/components/Timeline/TimelineItem.d.ts +6 -0
  400. package/dist/lib/components/Timeline/TimelineItem.js +34 -0
  401. package/dist/lib/components/Timeline/TimelineRoot.d.ts +11 -0
  402. package/dist/lib/components/Timeline/TimelineRoot.js +53 -0
  403. package/dist/lib/components/Timeline/TimelineTime.d.ts +6 -0
  404. package/dist/lib/components/Timeline/TimelineTime.js +34 -0
  405. package/dist/lib/components/Timeline/TimelineTitle.d.ts +6 -0
  406. package/dist/lib/components/Timeline/TimelineTitle.js +34 -0
  407. package/dist/lib/components/Timeline/index.d.ts +13 -0
  408. package/dist/lib/components/Timeline/index.js +21 -0
  409. package/dist/lib/components/Toast/ToastActionButton.d.ts +1 -1
  410. package/dist/lib/components/Toast/ToastActionButton.js +3 -2
  411. package/dist/lib/components/Toast/ToastDescription.js +1 -0
  412. package/dist/lib/components/Toast/ToastRoot.d.ts +1 -1
  413. package/dist/lib/components/Toast/ToastRoot.js +11 -3
  414. package/dist/lib/components/Toast/ToastTitle.js +1 -0
  415. package/dist/lib/components/Toast/index.d.ts +1 -0
  416. package/dist/lib/components/Toggle/ToggleWithText.d.ts +1 -1
  417. package/dist/lib/components/Toggle/ToggleWithText.js +14 -3
  418. package/dist/lib/components/Toggle/index.d.ts +2 -2
  419. package/dist/lib/components/Toggle/index.js +14 -3
  420. package/dist/lib/components/ToggleGroup/ToggleGroupItem.js +2 -1
  421. package/dist/lib/components/ToggleGroup/ToggleGroupRoot.js +13 -3
  422. package/dist/lib/components/ToggleGroup/index.d.ts +1 -0
  423. package/dist/lib/components/ToggleSwitch/index.d.ts +2 -2
  424. package/dist/lib/components/ToggleSwitch/index.js +13 -2
  425. package/dist/lib/components/Tooltip/index.d.ts +2 -2
  426. package/dist/lib/components/Tooltip/index.js +14 -9
  427. package/dist/lib/components/index.d.ts +5 -0
  428. package/dist/lib/components/index.js +5 -0
  429. package/dist/lib/constants.d.ts +6 -7
  430. package/dist/lib/constants.js +19 -31
  431. package/dist/lib/dist/lib/Typography/Header/index.mjs +3 -0
  432. package/dist/lib/dist/lib/Typography/Header/index.mjs.map +1 -0
  433. package/dist/lib/dist/lib/Typography/Text/index.mjs +3 -0
  434. package/dist/lib/dist/lib/Typography/Text/index.mjs.map +1 -0
  435. package/dist/lib/dist/lib/color/alpha.mjs +2 -0
  436. package/dist/lib/dist/lib/color/alpha.mjs.map +1 -0
  437. package/dist/lib/dist/lib/color/constants.mjs +2 -0
  438. package/dist/lib/dist/lib/color/constants.mjs.map +1 -0
  439. package/dist/lib/dist/lib/color/light.mjs +2 -0
  440. package/dist/lib/dist/lib/color/light.mjs.map +1 -0
  441. package/dist/lib/dist/lib/components/Accordion/index.mjs +3 -0
  442. package/dist/lib/dist/lib/components/Accordion/index.mjs.map +1 -0
  443. package/dist/lib/dist/lib/components/AlertDialog/AlertDialogAction.mjs +3 -0
  444. package/dist/lib/dist/lib/components/AlertDialog/AlertDialogAction.mjs.map +1 -0
  445. package/dist/lib/dist/lib/components/AlertDialog/AlertDialogCancel.mjs +3 -0
  446. package/dist/lib/dist/lib/components/AlertDialog/AlertDialogCancel.mjs.map +1 -0
  447. package/dist/lib/dist/lib/components/AlertDialog/AlertDialogContent.mjs +3 -0
  448. package/dist/lib/dist/lib/components/AlertDialog/AlertDialogContent.mjs.map +1 -0
  449. package/dist/lib/dist/lib/components/AlertDialog/AlertDialogDescription.mjs +3 -0
  450. package/dist/lib/dist/lib/components/AlertDialog/AlertDialogDescription.mjs.map +1 -0
  451. package/dist/lib/dist/lib/components/AlertDialog/AlertDialogRoot.mjs +3 -0
  452. package/dist/lib/dist/lib/components/AlertDialog/AlertDialogRoot.mjs.map +1 -0
  453. package/dist/lib/dist/lib/components/AlertDialog/AlertDialogTitle.mjs +3 -0
  454. package/dist/lib/dist/lib/components/AlertDialog/AlertDialogTitle.mjs.map +1 -0
  455. package/dist/lib/dist/lib/components/AlertDialog/AlertDialogTrigger.mjs +3 -0
  456. package/dist/lib/dist/lib/components/AlertDialog/AlertDialogTrigger.mjs.map +1 -0
  457. package/dist/lib/dist/lib/components/AlertDialog/index.mjs +2 -0
  458. package/dist/lib/dist/lib/components/AlertDialog/index.mjs.map +1 -0
  459. package/dist/lib/dist/lib/components/AspectRatio/index.mjs +3 -0
  460. package/dist/lib/dist/lib/components/AspectRatio/index.mjs.map +1 -0
  461. package/dist/lib/dist/lib/components/Avatar/index.mjs +3 -0
  462. package/dist/lib/dist/lib/components/Avatar/index.mjs.map +1 -0
  463. package/dist/lib/dist/lib/components/Badge/index.mjs +3 -0
  464. package/dist/lib/dist/lib/components/Badge/index.mjs.map +1 -0
  465. package/dist/lib/dist/lib/components/BarChart/index.mjs +2 -0
  466. package/dist/lib/dist/lib/components/BarChart/index.mjs.map +1 -0
  467. package/dist/lib/dist/lib/components/Breadcrumb/BreadcrumbEllipsis.mjs +2 -0
  468. package/dist/lib/dist/lib/components/Breadcrumb/BreadcrumbEllipsis.mjs.map +1 -0
  469. package/dist/lib/dist/lib/components/Breadcrumb/BreadcrumbItem.mjs +2 -0
  470. package/dist/lib/dist/lib/components/Breadcrumb/BreadcrumbItem.mjs.map +1 -0
  471. package/dist/lib/dist/lib/components/Breadcrumb/BreadcrumbLink.mjs +2 -0
  472. package/dist/lib/dist/lib/components/Breadcrumb/BreadcrumbLink.mjs.map +1 -0
  473. package/dist/lib/dist/lib/components/Breadcrumb/BreadcrumbList.mjs +2 -0
  474. package/dist/lib/dist/lib/components/Breadcrumb/BreadcrumbList.mjs.map +1 -0
  475. package/dist/lib/dist/lib/components/Breadcrumb/BreadcrumbPage.mjs +2 -0
  476. package/dist/lib/dist/lib/components/Breadcrumb/BreadcrumbPage.mjs.map +1 -0
  477. package/dist/lib/dist/lib/components/Breadcrumb/BreadcrumbRoot.mjs +3 -0
  478. package/dist/lib/dist/lib/components/Breadcrumb/BreadcrumbRoot.mjs.map +1 -0
  479. package/dist/lib/dist/lib/components/Breadcrumb/BreadcrumbSeparator.mjs +2 -0
  480. package/dist/lib/dist/lib/components/Breadcrumb/BreadcrumbSeparator.mjs.map +1 -0
  481. package/dist/lib/dist/lib/components/Breadcrumb/index.mjs +2 -0
  482. package/dist/lib/dist/lib/components/Breadcrumb/index.mjs.map +1 -0
  483. package/dist/lib/dist/lib/components/BubbleChart/index.mjs +2 -0
  484. package/dist/lib/dist/lib/components/BubbleChart/index.mjs.map +1 -0
  485. package/dist/lib/dist/lib/components/Button/index.mjs +3 -0
  486. package/dist/lib/dist/lib/components/Button/index.mjs.map +1 -0
  487. package/dist/lib/dist/lib/components/Callout/CalloutIcon.mjs +3 -0
  488. package/dist/lib/dist/lib/components/Callout/CalloutIcon.mjs.map +1 -0
  489. package/dist/lib/dist/lib/components/Callout/CalloutRoot.mjs +3 -0
  490. package/dist/lib/dist/lib/components/Callout/CalloutRoot.mjs.map +1 -0
  491. package/dist/lib/dist/lib/components/Callout/CalloutText.mjs +3 -0
  492. package/dist/lib/dist/lib/components/Callout/CalloutText.mjs.map +1 -0
  493. package/dist/lib/dist/lib/components/Callout/index.mjs +2 -0
  494. package/dist/lib/dist/lib/components/Callout/index.mjs.map +1 -0
  495. package/dist/lib/dist/lib/components/Card/index.mjs +3 -0
  496. package/dist/lib/dist/lib/components/Card/index.mjs.map +1 -0
  497. package/dist/lib/dist/lib/components/Checkbox/index.mjs +3 -0
  498. package/dist/lib/dist/lib/components/Checkbox/index.mjs.map +1 -0
  499. package/dist/lib/dist/lib/components/CheckboxCard/index.mjs +3 -0
  500. package/dist/lib/dist/lib/components/CheckboxCard/index.mjs.map +1 -0
  501. package/dist/lib/dist/lib/components/CheckboxGroup/CheckboxGroupItem.mjs +3 -0
  502. package/dist/lib/dist/lib/components/CheckboxGroup/CheckboxGroupItem.mjs.map +1 -0
  503. package/dist/lib/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.mjs +3 -0
  504. package/dist/lib/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.mjs.map +1 -0
  505. package/dist/lib/dist/lib/components/CheckboxGroup/index.mjs +2 -0
  506. package/dist/lib/dist/lib/components/CheckboxGroup/index.mjs.map +1 -0
  507. package/dist/lib/dist/lib/components/ContextMenu/ContextMenuCheckboxItem.mjs +3 -0
  508. package/dist/lib/dist/lib/components/ContextMenu/ContextMenuCheckboxItem.mjs.map +1 -0
  509. package/dist/lib/dist/lib/components/ContextMenu/ContextMenuContent.mjs +3 -0
  510. package/dist/lib/dist/lib/components/ContextMenu/ContextMenuContent.mjs.map +1 -0
  511. package/dist/lib/dist/lib/components/ContextMenu/ContextMenuGroup.mjs +2 -0
  512. package/dist/lib/dist/lib/components/ContextMenu/ContextMenuGroup.mjs.map +1 -0
  513. package/dist/lib/dist/lib/components/ContextMenu/ContextMenuItem.mjs +3 -0
  514. package/dist/lib/dist/lib/components/ContextMenu/ContextMenuItem.mjs.map +1 -0
  515. package/dist/lib/dist/lib/components/ContextMenu/ContextMenuItemIndicator.mjs +3 -0
  516. package/dist/lib/dist/lib/components/ContextMenu/ContextMenuItemIndicator.mjs.map +1 -0
  517. package/dist/lib/dist/lib/components/ContextMenu/ContextMenuLabel.mjs +3 -0
  518. package/dist/lib/dist/lib/components/ContextMenu/ContextMenuLabel.mjs.map +1 -0
  519. package/dist/lib/dist/lib/components/ContextMenu/ContextMenuRadioGroup.mjs +3 -0
  520. package/dist/lib/dist/lib/components/ContextMenu/ContextMenuRadioGroup.mjs.map +1 -0
  521. package/dist/lib/dist/lib/components/ContextMenu/ContextMenuRadioItem.mjs +3 -0
  522. package/dist/lib/dist/lib/components/ContextMenu/ContextMenuRadioItem.mjs.map +1 -0
  523. package/dist/lib/dist/lib/components/ContextMenu/ContextMenuRoot.mjs +3 -0
  524. package/dist/lib/dist/lib/components/ContextMenu/ContextMenuRoot.mjs.map +1 -0
  525. package/dist/lib/dist/lib/components/ContextMenu/ContextMenuSeparator.mjs +2 -0
  526. package/dist/lib/dist/lib/components/ContextMenu/ContextMenuSeparator.mjs.map +1 -0
  527. package/dist/lib/dist/lib/components/ContextMenu/ContextMenuSubContent.mjs +3 -0
  528. package/dist/lib/dist/lib/components/ContextMenu/ContextMenuSubContent.mjs.map +1 -0
  529. package/dist/lib/dist/lib/components/ContextMenu/ContextMenuSubTrigger.mjs +3 -0
  530. package/dist/lib/dist/lib/components/ContextMenu/ContextMenuSubTrigger.mjs.map +1 -0
  531. package/dist/lib/dist/lib/components/ContextMenu/ContextMenuTrigger.mjs +2 -0
  532. package/dist/lib/dist/lib/components/ContextMenu/ContextMenuTrigger.mjs.map +1 -0
  533. package/dist/lib/dist/lib/components/ContextMenu/index.mjs +2 -0
  534. package/dist/lib/dist/lib/components/ContextMenu/index.mjs.map +1 -0
  535. package/dist/lib/dist/lib/components/DataList/DataListItem.mjs +3 -0
  536. package/dist/lib/dist/lib/components/DataList/DataListItem.mjs.map +1 -0
  537. package/dist/lib/dist/lib/components/DataList/DataListLabel.mjs +3 -0
  538. package/dist/lib/dist/lib/components/DataList/DataListLabel.mjs.map +1 -0
  539. package/dist/lib/dist/lib/components/DataList/DataListRoot.mjs +3 -0
  540. package/dist/lib/dist/lib/components/DataList/DataListRoot.mjs.map +1 -0
  541. package/dist/lib/dist/lib/components/DataList/DataListValue.mjs +3 -0
  542. package/dist/lib/dist/lib/components/DataList/DataListValue.mjs.map +1 -0
  543. package/dist/lib/dist/lib/components/DataList/index.mjs +2 -0
  544. package/dist/lib/dist/lib/components/DataList/index.mjs.map +1 -0
  545. package/dist/lib/dist/lib/components/Dialog/DialogAction.mjs +3 -0
  546. package/dist/lib/dist/lib/components/Dialog/DialogAction.mjs.map +1 -0
  547. package/dist/lib/dist/lib/components/Dialog/DialogCancel.mjs +3 -0
  548. package/dist/lib/dist/lib/components/Dialog/DialogCancel.mjs.map +1 -0
  549. package/dist/lib/dist/lib/components/Dialog/DialogContent.mjs +3 -0
  550. package/dist/lib/dist/lib/components/Dialog/DialogContent.mjs.map +1 -0
  551. package/dist/lib/dist/lib/components/Dialog/DialogDescription.mjs +3 -0
  552. package/dist/lib/dist/lib/components/Dialog/DialogDescription.mjs.map +1 -0
  553. package/dist/lib/dist/lib/components/Dialog/DialogRoot.mjs +3 -0
  554. package/dist/lib/dist/lib/components/Dialog/DialogRoot.mjs.map +1 -0
  555. package/dist/lib/dist/lib/components/Dialog/DialogSlot.mjs +3 -0
  556. package/dist/lib/dist/lib/components/Dialog/DialogSlot.mjs.map +1 -0
  557. package/dist/lib/dist/lib/components/Dialog/DialogTitle.mjs +3 -0
  558. package/dist/lib/dist/lib/components/Dialog/DialogTitle.mjs.map +1 -0
  559. package/dist/lib/dist/lib/components/Dialog/DialogTrigger.mjs +2 -0
  560. package/dist/lib/dist/lib/components/Dialog/DialogTrigger.mjs.map +1 -0
  561. package/dist/lib/dist/lib/components/Dialog/index.mjs +2 -0
  562. package/dist/lib/dist/lib/components/Dialog/index.mjs.map +1 -0
  563. package/dist/lib/dist/lib/components/DoughnutChart/index.mjs +2 -0
  564. package/dist/lib/dist/lib/components/DoughnutChart/index.mjs.map +1 -0
  565. package/dist/lib/dist/lib/components/DropdownMenu/DropdonMenuRadioGroup.mjs +2 -0
  566. package/dist/lib/dist/lib/components/DropdownMenu/DropdonMenuRadioGroup.mjs.map +1 -0
  567. package/dist/lib/dist/lib/components/DropdownMenu/DropdonMenuSubContent.mjs +3 -0
  568. package/dist/lib/dist/lib/components/DropdownMenu/DropdonMenuSubContent.mjs.map +1 -0
  569. package/dist/lib/dist/lib/components/DropdownMenu/DropdownMenuCheckboxItem.mjs +3 -0
  570. package/dist/lib/dist/lib/components/DropdownMenu/DropdownMenuCheckboxItem.mjs.map +1 -0
  571. package/dist/lib/dist/lib/components/DropdownMenu/DropdownMenuContent.mjs +3 -0
  572. package/dist/lib/dist/lib/components/DropdownMenu/DropdownMenuContent.mjs.map +1 -0
  573. package/dist/lib/dist/lib/components/DropdownMenu/DropdownMenuItem.mjs +3 -0
  574. package/dist/lib/dist/lib/components/DropdownMenu/DropdownMenuItem.mjs.map +1 -0
  575. package/dist/lib/dist/lib/components/DropdownMenu/DropdownMenuItemIndicator.mjs +3 -0
  576. package/dist/lib/dist/lib/components/DropdownMenu/DropdownMenuItemIndicator.mjs.map +1 -0
  577. package/dist/lib/dist/lib/components/DropdownMenu/DropdownMenuLable.mjs +3 -0
  578. package/dist/lib/dist/lib/components/DropdownMenu/DropdownMenuLable.mjs.map +1 -0
  579. package/dist/lib/dist/lib/components/DropdownMenu/DropdownMenuRadioItem.mjs +3 -0
  580. package/dist/lib/dist/lib/components/DropdownMenu/DropdownMenuRadioItem.mjs.map +1 -0
  581. package/dist/lib/dist/lib/components/DropdownMenu/DropdownMenuRoot.mjs +3 -0
  582. package/dist/lib/dist/lib/components/DropdownMenu/DropdownMenuRoot.mjs.map +1 -0
  583. package/dist/lib/dist/lib/components/DropdownMenu/DropdownMenuSeparator.mjs +2 -0
  584. package/dist/lib/dist/lib/components/DropdownMenu/DropdownMenuSeparator.mjs.map +1 -0
  585. package/dist/lib/dist/lib/components/DropdownMenu/DropdownMenuSub.mjs +2 -0
  586. package/dist/lib/dist/lib/components/DropdownMenu/DropdownMenuSub.mjs.map +1 -0
  587. package/dist/lib/dist/lib/components/DropdownMenu/DropdownMenuSubTrigger.mjs +3 -0
  588. package/dist/lib/dist/lib/components/DropdownMenu/DropdownMenuSubTrigger.mjs.map +1 -0
  589. package/dist/lib/dist/lib/components/DropdownMenu/DropdownMenuTrigger.mjs +3 -0
  590. package/dist/lib/dist/lib/components/DropdownMenu/DropdownMenuTrigger.mjs.map +1 -0
  591. package/dist/lib/dist/lib/components/DropdownMenu/index.mjs +2 -0
  592. package/dist/lib/dist/lib/components/DropdownMenu/index.mjs.map +1 -0
  593. package/dist/lib/dist/lib/components/Editor/index.mjs +3 -0
  594. package/dist/lib/dist/lib/components/Editor/index.mjs.map +1 -0
  595. package/dist/lib/dist/lib/components/Footer/index.mjs +3 -0
  596. package/dist/lib/dist/lib/components/Footer/index.mjs.map +1 -0
  597. package/dist/lib/dist/lib/components/Gnb/GnbInfo.mjs +2 -0
  598. package/dist/lib/dist/lib/components/Gnb/GnbInfo.mjs.map +1 -0
  599. package/dist/lib/dist/lib/components/Gnb/GnbLogo.mjs +2 -0
  600. package/dist/lib/dist/lib/components/Gnb/GnbLogo.mjs.map +1 -0
  601. package/dist/lib/dist/lib/components/Gnb/GnbMenu.mjs +2 -0
  602. package/dist/lib/dist/lib/components/Gnb/GnbMenu.mjs.map +1 -0
  603. package/dist/lib/dist/lib/components/Gnb/GnbRoot.mjs +3 -0
  604. package/dist/lib/dist/lib/components/Gnb/GnbRoot.mjs.map +1 -0
  605. package/dist/lib/dist/lib/components/Gnb/index.mjs +2 -0
  606. package/dist/lib/dist/lib/components/Gnb/index.mjs.map +1 -0
  607. package/dist/lib/dist/lib/components/HoverCard/HoverCardContent.mjs +3 -0
  608. package/dist/lib/dist/lib/components/HoverCard/HoverCardContent.mjs.map +1 -0
  609. package/dist/lib/dist/lib/components/HoverCard/HoverCardRoot.mjs +3 -0
  610. package/dist/lib/dist/lib/components/HoverCard/HoverCardRoot.mjs.map +1 -0
  611. package/dist/lib/dist/lib/components/HoverCard/HoverCardTrigger.mjs +2 -0
  612. package/dist/lib/dist/lib/components/HoverCard/HoverCardTrigger.mjs.map +1 -0
  613. package/dist/lib/dist/lib/components/HoverCard/index.mjs +2 -0
  614. package/dist/lib/dist/lib/components/HoverCard/index.mjs.map +1 -0
  615. package/dist/lib/dist/lib/components/IconButton/index.mjs +3 -0
  616. package/dist/lib/dist/lib/components/IconButton/index.mjs.map +1 -0
  617. package/dist/lib/dist/lib/components/Inset/index.mjs +3 -0
  618. package/dist/lib/dist/lib/components/Inset/index.mjs.map +1 -0
  619. package/dist/lib/dist/lib/components/Label/index.mjs +3 -0
  620. package/dist/lib/dist/lib/components/Label/index.mjs.map +1 -0
  621. package/dist/lib/dist/lib/components/LineChart/index.mjs +2 -0
  622. package/dist/lib/dist/lib/components/LineChart/index.mjs.map +1 -0
  623. package/dist/lib/dist/lib/components/Menubar/MenubarCheckboxItem.mjs +3 -0
  624. package/dist/lib/dist/lib/components/Menubar/MenubarCheckboxItem.mjs.map +1 -0
  625. package/dist/lib/dist/lib/components/Menubar/MenubarContent.mjs +3 -0
  626. package/dist/lib/dist/lib/components/Menubar/MenubarContent.mjs.map +1 -0
  627. package/dist/lib/dist/lib/components/Menubar/MenubarItem.mjs +3 -0
  628. package/dist/lib/dist/lib/components/Menubar/MenubarItem.mjs.map +1 -0
  629. package/dist/lib/dist/lib/components/Menubar/MenubarItemIndicator.mjs +3 -0
  630. package/dist/lib/dist/lib/components/Menubar/MenubarItemIndicator.mjs.map +1 -0
  631. package/dist/lib/dist/lib/components/Menubar/MenubarMenu.mjs +2 -0
  632. package/dist/lib/dist/lib/components/Menubar/MenubarMenu.mjs.map +1 -0
  633. package/dist/lib/dist/lib/components/Menubar/MenubarRadioGroup.mjs +3 -0
  634. package/dist/lib/dist/lib/components/Menubar/MenubarRadioGroup.mjs.map +1 -0
  635. package/dist/lib/dist/lib/components/Menubar/MenubarRadioItem.mjs +3 -0
  636. package/dist/lib/dist/lib/components/Menubar/MenubarRadioItem.mjs.map +1 -0
  637. package/dist/lib/dist/lib/components/Menubar/MenubarRoot.mjs +3 -0
  638. package/dist/lib/dist/lib/components/Menubar/MenubarRoot.mjs.map +1 -0
  639. package/dist/lib/dist/lib/components/Menubar/MenubarSeparator.mjs +2 -0
  640. package/dist/lib/dist/lib/components/Menubar/MenubarSeparator.mjs.map +1 -0
  641. package/dist/lib/dist/lib/components/Menubar/MenubarSub.mjs +2 -0
  642. package/dist/lib/dist/lib/components/Menubar/MenubarSub.mjs.map +1 -0
  643. package/dist/lib/dist/lib/components/Menubar/MenubarSubContent.mjs +3 -0
  644. package/dist/lib/dist/lib/components/Menubar/MenubarSubContent.mjs.map +1 -0
  645. package/dist/lib/dist/lib/components/Menubar/MenubarSubTrigger.mjs +3 -0
  646. package/dist/lib/dist/lib/components/Menubar/MenubarSubTrigger.mjs.map +1 -0
  647. package/dist/lib/dist/lib/components/Menubar/MenubarTrigger.mjs +3 -0
  648. package/dist/lib/dist/lib/components/Menubar/MenubarTrigger.mjs.map +1 -0
  649. package/dist/lib/dist/lib/components/Menubar/index.mjs +2 -0
  650. package/dist/lib/dist/lib/components/Menubar/index.mjs.map +1 -0
  651. package/dist/lib/dist/lib/components/NavigationMenu/NavigationMenuContent.mjs +3 -0
  652. package/dist/lib/dist/lib/components/NavigationMenu/NavigationMenuContent.mjs.map +1 -0
  653. package/dist/lib/dist/lib/components/NavigationMenu/NavigationMenuIndicator.mjs +2 -0
  654. package/dist/lib/dist/lib/components/NavigationMenu/NavigationMenuIndicator.mjs.map +1 -0
  655. package/dist/lib/dist/lib/components/NavigationMenu/NavigationMenuItem.mjs +2 -0
  656. package/dist/lib/dist/lib/components/NavigationMenu/NavigationMenuItem.mjs.map +1 -0
  657. package/dist/lib/dist/lib/components/NavigationMenu/NavigationMenuLink.mjs +3 -0
  658. package/dist/lib/dist/lib/components/NavigationMenu/NavigationMenuLink.mjs.map +1 -0
  659. package/dist/lib/dist/lib/components/NavigationMenu/NavigationMenuList.mjs +3 -0
  660. package/dist/lib/dist/lib/components/NavigationMenu/NavigationMenuList.mjs.map +1 -0
  661. package/dist/lib/dist/lib/components/NavigationMenu/NavigationMenuRoot.mjs +3 -0
  662. package/dist/lib/dist/lib/components/NavigationMenu/NavigationMenuRoot.mjs.map +1 -0
  663. package/dist/lib/dist/lib/components/NavigationMenu/NavigationMenuTrigger.mjs +3 -0
  664. package/dist/lib/dist/lib/components/NavigationMenu/NavigationMenuTrigger.mjs.map +1 -0
  665. package/dist/lib/dist/lib/components/NavigationMenu/NavigationMenuViewport.mjs +3 -0
  666. package/dist/lib/dist/lib/components/NavigationMenu/NavigationMenuViewport.mjs.map +1 -0
  667. package/dist/lib/dist/lib/components/NavigationMenu/index.mjs +2 -0
  668. package/dist/lib/dist/lib/components/NavigationMenu/index.mjs.map +1 -0
  669. package/dist/lib/dist/lib/components/PieChart/index.mjs +2 -0
  670. package/dist/lib/dist/lib/components/PieChart/index.mjs.map +1 -0
  671. package/dist/lib/dist/lib/components/Popover/PopoverClose.mjs +3 -0
  672. package/dist/lib/dist/lib/components/Popover/PopoverClose.mjs.map +1 -0
  673. package/dist/lib/dist/lib/components/Popover/PopoverContent.mjs +3 -0
  674. package/dist/lib/dist/lib/components/Popover/PopoverContent.mjs.map +1 -0
  675. package/dist/lib/dist/lib/components/Popover/PopoverRoot.mjs +3 -0
  676. package/dist/lib/dist/lib/components/Popover/PopoverRoot.mjs.map +1 -0
  677. package/dist/lib/dist/lib/components/Popover/PopoverTrigger.mjs +2 -0
  678. package/dist/lib/dist/lib/components/Popover/PopoverTrigger.mjs.map +1 -0
  679. package/dist/lib/dist/lib/components/Popover/index.mjs +2 -0
  680. package/dist/lib/dist/lib/components/Popover/index.mjs.map +1 -0
  681. package/dist/lib/dist/lib/components/Progress/index.mjs +3 -0
  682. package/dist/lib/dist/lib/components/Progress/index.mjs.map +1 -0
  683. package/dist/lib/dist/lib/components/RadarChart/index.mjs +2 -0
  684. package/dist/lib/dist/lib/components/RadarChart/index.mjs.map +1 -0
  685. package/dist/lib/dist/lib/components/Radio/index.mjs +3 -0
  686. package/dist/lib/dist/lib/components/Radio/index.mjs.map +1 -0
  687. package/dist/lib/dist/lib/components/RadioCards/RadioCardsItem.mjs +3 -0
  688. package/dist/lib/dist/lib/components/RadioCards/RadioCardsItem.mjs.map +1 -0
  689. package/dist/lib/dist/lib/components/RadioCards/RadioCardsRoot.mjs +3 -0
  690. package/dist/lib/dist/lib/components/RadioCards/RadioCardsRoot.mjs.map +1 -0
  691. package/dist/lib/dist/lib/components/RadioCards/index.mjs +2 -0
  692. package/dist/lib/dist/lib/components/RadioCards/index.mjs.map +1 -0
  693. package/dist/lib/dist/lib/components/RadioGroup/RadioGroupItem.mjs +3 -0
  694. package/dist/lib/dist/lib/components/RadioGroup/RadioGroupItem.mjs.map +1 -0
  695. package/dist/lib/dist/lib/components/RadioGroup/RadioGroupRoot.mjs +3 -0
  696. package/dist/lib/dist/lib/components/RadioGroup/RadioGroupRoot.mjs.map +1 -0
  697. package/dist/lib/dist/lib/components/RadioGroup/index.mjs +2 -0
  698. package/dist/lib/dist/lib/components/RadioGroup/index.mjs.map +1 -0
  699. package/dist/lib/dist/lib/components/ScrollArea/index.mjs +3 -0
  700. package/dist/lib/dist/lib/components/ScrollArea/index.mjs.map +1 -0
  701. package/dist/lib/dist/lib/components/SegmentedControl/SegmentedControlItem.mjs +2 -0
  702. package/dist/lib/dist/lib/components/SegmentedControl/SegmentedControlItem.mjs.map +1 -0
  703. package/dist/lib/dist/lib/components/SegmentedControl/SegmentedControlRoot.mjs +3 -0
  704. package/dist/lib/dist/lib/components/SegmentedControl/SegmentedControlRoot.mjs.map +1 -0
  705. package/dist/lib/dist/lib/components/SegmentedControl/index.mjs +2 -0
  706. package/dist/lib/dist/lib/components/SegmentedControl/index.mjs.map +1 -0
  707. package/dist/lib/dist/lib/components/Select/index.mjs +3 -0
  708. package/dist/lib/dist/lib/components/Select/index.mjs.map +1 -0
  709. package/dist/lib/dist/lib/components/Separator/index.mjs +3 -0
  710. package/dist/lib/dist/lib/components/Separator/index.mjs.map +1 -0
  711. package/dist/lib/dist/lib/components/Skeleton/index.mjs +3 -0
  712. package/dist/lib/dist/lib/components/Skeleton/index.mjs.map +1 -0
  713. package/dist/lib/dist/lib/components/Slider/index.mjs +3 -0
  714. package/dist/lib/dist/lib/components/Slider/index.mjs.map +1 -0
  715. package/dist/lib/dist/lib/components/Spinner/index.mjs +3 -0
  716. package/dist/lib/dist/lib/components/Spinner/index.mjs.map +1 -0
  717. package/dist/lib/dist/lib/components/TabNav/index.mjs +3 -0
  718. package/dist/lib/dist/lib/components/TabNav/index.mjs.map +1 -0
  719. package/dist/lib/dist/lib/components/Table/index.mjs +3 -0
  720. package/dist/lib/dist/lib/components/Table/index.mjs.map +1 -0
  721. package/dist/lib/dist/lib/components/Tabs/index.mjs +3 -0
  722. package/dist/lib/dist/lib/components/Tabs/index.mjs.map +1 -0
  723. package/dist/lib/dist/lib/components/TextArea/index.mjs +3 -0
  724. package/dist/lib/dist/lib/components/TextArea/index.mjs.map +1 -0
  725. package/dist/lib/dist/lib/components/TextField/index.mjs +3 -0
  726. package/dist/lib/dist/lib/components/TextField/index.mjs.map +1 -0
  727. package/dist/lib/dist/lib/components/Timeline/TimelineConnector.mjs +2 -0
  728. package/dist/lib/dist/lib/components/Timeline/TimelineConnector.mjs.map +1 -0
  729. package/dist/lib/dist/lib/components/Timeline/TimelineContent.mjs +2 -0
  730. package/dist/lib/dist/lib/components/Timeline/TimelineContent.mjs.map +1 -0
  731. package/dist/lib/dist/lib/components/Timeline/TimelineDescription.mjs +2 -0
  732. package/dist/lib/dist/lib/components/Timeline/TimelineDescription.mjs.map +1 -0
  733. package/dist/lib/dist/lib/components/Timeline/TimelineHeader.mjs +2 -0
  734. package/dist/lib/dist/lib/components/Timeline/TimelineHeader.mjs.map +1 -0
  735. package/dist/lib/dist/lib/components/Timeline/TimelineIcon.mjs +2 -0
  736. package/dist/lib/dist/lib/components/Timeline/TimelineIcon.mjs.map +1 -0
  737. package/dist/lib/dist/lib/components/Timeline/TimelineItem.mjs +2 -0
  738. package/dist/lib/dist/lib/components/Timeline/TimelineItem.mjs.map +1 -0
  739. package/dist/lib/dist/lib/components/Timeline/TimelineRoot.mjs +3 -0
  740. package/dist/lib/dist/lib/components/Timeline/TimelineRoot.mjs.map +1 -0
  741. package/dist/lib/dist/lib/components/Timeline/TimelineTime.mjs +2 -0
  742. package/dist/lib/dist/lib/components/Timeline/TimelineTime.mjs.map +1 -0
  743. package/dist/lib/dist/lib/components/Timeline/TimelineTitle.mjs +2 -0
  744. package/dist/lib/dist/lib/components/Timeline/TimelineTitle.mjs.map +1 -0
  745. package/dist/lib/dist/lib/components/Timeline/index.mjs +2 -0
  746. package/dist/lib/dist/lib/components/Timeline/index.mjs.map +1 -0
  747. package/dist/lib/dist/lib/components/Toast/ToastActionButton.mjs +3 -0
  748. package/dist/lib/dist/lib/components/Toast/ToastActionButton.mjs.map +1 -0
  749. package/dist/lib/dist/lib/components/Toast/ToastDescription.mjs +3 -0
  750. package/dist/lib/dist/lib/components/Toast/ToastDescription.mjs.map +1 -0
  751. package/dist/lib/dist/lib/components/Toast/ToastRoot.mjs +3 -0
  752. package/dist/lib/dist/lib/components/Toast/ToastRoot.mjs.map +1 -0
  753. package/dist/lib/dist/lib/components/Toast/ToastTitle.mjs +3 -0
  754. package/dist/lib/dist/lib/components/Toast/ToastTitle.mjs.map +1 -0
  755. package/dist/lib/dist/lib/components/Toast/index.mjs +2 -0
  756. package/dist/lib/dist/lib/components/Toast/index.mjs.map +1 -0
  757. package/dist/lib/dist/lib/components/Toggle/ToggleWithText.mjs +3 -0
  758. package/dist/lib/dist/lib/components/Toggle/ToggleWithText.mjs.map +1 -0
  759. package/dist/lib/dist/lib/components/Toggle/index.mjs +3 -0
  760. package/dist/lib/dist/lib/components/Toggle/index.mjs.map +1 -0
  761. package/dist/lib/dist/lib/components/ToggleGroup/ToggleGroupItem.mjs +3 -0
  762. package/dist/lib/dist/lib/components/ToggleGroup/ToggleGroupItem.mjs.map +1 -0
  763. package/dist/lib/dist/lib/components/ToggleGroup/ToggleGroupRoot.mjs +3 -0
  764. package/dist/lib/dist/lib/components/ToggleGroup/ToggleGroupRoot.mjs.map +1 -0
  765. package/dist/lib/dist/lib/components/ToggleGroup/index.mjs +2 -0
  766. package/dist/lib/dist/lib/components/ToggleGroup/index.mjs.map +1 -0
  767. package/dist/lib/dist/lib/components/ToggleSwitch/index.mjs +3 -0
  768. package/dist/lib/dist/lib/components/ToggleSwitch/index.mjs.map +1 -0
  769. package/dist/lib/dist/lib/components/Tooltip/index.mjs +3 -0
  770. package/dist/lib/dist/lib/components/Tooltip/index.mjs.map +1 -0
  771. package/dist/lib/dist/lib/constants.mjs +2 -0
  772. package/dist/lib/dist/lib/constants.mjs.map +1 -0
  773. package/dist/lib/dist/lib/index.mjs +2 -0
  774. package/dist/lib/dist/lib/index.mjs.map +1 -0
  775. package/dist/lib/dist/lib/theme/ThemeProvider.mjs +3 -0
  776. package/dist/lib/dist/lib/theme/ThemeProvider.mjs.map +1 -0
  777. package/dist/lib/dist/lib/utils/useDarkMode.mjs +3 -0
  778. package/dist/lib/dist/lib/utils/useDarkMode.mjs.map +1 -0
  779. package/dist/lib/dist/lib/utils/utils.mjs +2 -0
  780. package/dist/lib/dist/lib/utils/utils.mjs.map +1 -0
  781. package/dist/lib/index.d.ts +1 -0
  782. package/dist/lib/index.js +1 -0
  783. package/dist/lib/node_modules/@swc/helpers/cjs/_interop_require_default.mjs +2 -0
  784. package/dist/lib/node_modules/@swc/helpers/cjs/_interop_require_default.mjs.map +1 -0
  785. package/dist/lib/node_modules/@swc/helpers/cjs/_interop_require_wildcard.mjs +2 -0
  786. package/dist/lib/node_modules/@swc/helpers/cjs/_interop_require_wildcard.mjs.map +1 -0
  787. package/dist/lib/node_modules/@toast-ui/editor/dist/esm/index.mjs +37 -0
  788. package/dist/lib/node_modules/@toast-ui/editor/dist/esm/index.mjs.map +1 -0
  789. package/dist/lib/node_modules/@toast-ui/editor/dist/toastui-editor-viewer.mjs +24 -0
  790. package/dist/lib/node_modules/@toast-ui/editor/dist/toastui-editor-viewer.mjs.map +1 -0
  791. package/dist/lib/node_modules/@toast-ui/editor-plugin-color-syntax/dist/toastui-editor-plugin-color-syntax.mjs +8 -0
  792. package/dist/lib/node_modules/@toast-ui/editor-plugin-color-syntax/dist/toastui-editor-plugin-color-syntax.mjs.map +1 -0
  793. package/dist/lib/node_modules/@toast-ui/react-editor/dist/esm/index.mjs +22 -0
  794. package/dist/lib/node_modules/@toast-ui/react-editor/dist/esm/index.mjs.map +1 -0
  795. package/dist/lib/node_modules/next/dist/client/add-base-path.mjs +2 -0
  796. package/dist/lib/node_modules/next/dist/client/add-base-path.mjs.map +1 -0
  797. package/dist/lib/node_modules/next/dist/client/add-locale.mjs +2 -0
  798. package/dist/lib/node_modules/next/dist/client/add-locale.mjs.map +1 -0
  799. package/dist/lib/node_modules/next/dist/client/components/action-async-storage.external.mjs +2 -0
  800. package/dist/lib/node_modules/next/dist/client/components/action-async-storage.external.mjs.map +1 -0
  801. package/dist/lib/node_modules/next/dist/client/components/async-local-storage.mjs +2 -0
  802. package/dist/lib/node_modules/next/dist/client/components/async-local-storage.mjs.map +1 -0
  803. package/dist/lib/node_modules/next/dist/client/components/bailout-to-client-rendering.mjs +2 -0
  804. package/dist/lib/node_modules/next/dist/client/components/bailout-to-client-rendering.mjs.map +1 -0
  805. package/dist/lib/node_modules/next/dist/client/components/client-hook-in-server-component-error.mjs +2 -0
  806. package/dist/lib/node_modules/next/dist/client/components/client-hook-in-server-component-error.mjs.map +1 -0
  807. package/dist/lib/node_modules/next/dist/client/components/navigation.mjs +2 -0
  808. package/dist/lib/node_modules/next/dist/client/components/navigation.mjs.map +1 -0
  809. package/dist/lib/node_modules/next/dist/client/components/not-found.mjs +2 -0
  810. package/dist/lib/node_modules/next/dist/client/components/not-found.mjs.map +1 -0
  811. package/dist/lib/node_modules/next/dist/client/components/redirect-status-code.mjs +2 -0
  812. package/dist/lib/node_modules/next/dist/client/components/redirect-status-code.mjs.map +1 -0
  813. package/dist/lib/node_modules/next/dist/client/components/redirect.mjs +2 -0
  814. package/dist/lib/node_modules/next/dist/client/components/redirect.mjs.map +1 -0
  815. package/dist/lib/node_modules/next/dist/client/components/request-async-storage.external.mjs +2 -0
  816. package/dist/lib/node_modules/next/dist/client/components/request-async-storage.external.mjs.map +1 -0
  817. package/dist/lib/node_modules/next/dist/client/components/router-reducer/reducers/get-segment-value.mjs +2 -0
  818. package/dist/lib/node_modules/next/dist/client/components/router-reducer/reducers/get-segment-value.mjs.map +1 -0
  819. package/dist/lib/node_modules/next/dist/client/components/router-reducer/router-reducer-types.mjs +2 -0
  820. package/dist/lib/node_modules/next/dist/client/components/router-reducer/router-reducer-types.mjs.map +1 -0
  821. package/dist/lib/node_modules/next/dist/client/components/static-generation-async-storage.external.mjs +2 -0
  822. package/dist/lib/node_modules/next/dist/client/components/static-generation-async-storage.external.mjs.map +1 -0
  823. package/dist/lib/node_modules/next/dist/client/detect-domain-locale.mjs +2 -0
  824. package/dist/lib/node_modules/next/dist/client/detect-domain-locale.mjs.map +1 -0
  825. package/dist/lib/node_modules/next/dist/client/get-domain-locale.mjs +2 -0
  826. package/dist/lib/node_modules/next/dist/client/get-domain-locale.mjs.map +1 -0
  827. package/dist/lib/node_modules/next/dist/client/has-base-path.mjs +2 -0
  828. package/dist/lib/node_modules/next/dist/client/has-base-path.mjs.map +1 -0
  829. package/dist/lib/node_modules/next/dist/client/image-component.mjs +2 -0
  830. package/dist/lib/node_modules/next/dist/client/image-component.mjs.map +1 -0
  831. package/dist/lib/node_modules/next/dist/client/link.mjs +2 -0
  832. package/dist/lib/node_modules/next/dist/client/link.mjs.map +1 -0
  833. package/dist/lib/node_modules/next/dist/client/normalize-locale-path.mjs +2 -0
  834. package/dist/lib/node_modules/next/dist/client/normalize-locale-path.mjs.map +1 -0
  835. package/dist/lib/node_modules/next/dist/client/normalize-trailing-slash.mjs +2 -0
  836. package/dist/lib/node_modules/next/dist/client/normalize-trailing-slash.mjs.map +1 -0
  837. package/dist/lib/node_modules/next/dist/client/request-idle-callback.mjs +2 -0
  838. package/dist/lib/node_modules/next/dist/client/request-idle-callback.mjs.map +1 -0
  839. package/dist/lib/node_modules/next/dist/client/resolve-href.mjs +2 -0
  840. package/dist/lib/node_modules/next/dist/client/resolve-href.mjs.map +1 -0
  841. package/dist/lib/node_modules/next/dist/client/use-intersection.mjs +2 -0
  842. package/dist/lib/node_modules/next/dist/client/use-intersection.mjs.map +1 -0
  843. package/dist/lib/node_modules/next/dist/compiled/micromatch/index.mjs +23 -0
  844. package/dist/lib/node_modules/next/dist/compiled/micromatch/index.mjs.map +1 -0
  845. package/dist/lib/node_modules/next/dist/server/future/helpers/interception-routes.mjs +2 -0
  846. package/dist/lib/node_modules/next/dist/server/future/helpers/interception-routes.mjs.map +1 -0
  847. package/dist/lib/node_modules/next/dist/shared/lib/amp-context.shared-runtime.mjs +2 -0
  848. package/dist/lib/node_modules/next/dist/shared/lib/amp-context.shared-runtime.mjs.map +1 -0
  849. package/dist/lib/node_modules/next/dist/shared/lib/amp-mode.mjs +2 -0
  850. package/dist/lib/node_modules/next/dist/shared/lib/amp-mode.mjs.map +1 -0
  851. package/dist/lib/node_modules/next/dist/shared/lib/app-router-context.shared-runtime.mjs +2 -0
  852. package/dist/lib/node_modules/next/dist/shared/lib/app-router-context.shared-runtime.mjs.map +1 -0
  853. package/dist/lib/node_modules/next/dist/shared/lib/escape-regexp.mjs +2 -0
  854. package/dist/lib/node_modules/next/dist/shared/lib/escape-regexp.mjs.map +1 -0
  855. package/dist/lib/node_modules/next/dist/shared/lib/get-img-props.mjs +2 -0
  856. package/dist/lib/node_modules/next/dist/shared/lib/get-img-props.mjs.map +1 -0
  857. package/dist/lib/node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.mjs +2 -0
  858. package/dist/lib/node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.mjs.map +1 -0
  859. package/dist/lib/node_modules/next/dist/shared/lib/head.mjs +2 -0
  860. package/dist/lib/node_modules/next/dist/shared/lib/head.mjs.map +1 -0
  861. package/dist/lib/node_modules/next/dist/shared/lib/hooks-client-context.shared-runtime.mjs +2 -0
  862. package/dist/lib/node_modules/next/dist/shared/lib/hooks-client-context.shared-runtime.mjs.map +1 -0
  863. package/dist/lib/node_modules/next/dist/shared/lib/i18n/detect-domain-locale.mjs +2 -0
  864. package/dist/lib/node_modules/next/dist/shared/lib/i18n/detect-domain-locale.mjs.map +1 -0
  865. package/dist/lib/node_modules/next/dist/shared/lib/i18n/normalize-locale-path.mjs +2 -0
  866. package/dist/lib/node_modules/next/dist/shared/lib/i18n/normalize-locale-path.mjs.map +1 -0
  867. package/dist/lib/node_modules/next/dist/shared/lib/image-blur-svg.mjs +2 -0
  868. package/dist/lib/node_modules/next/dist/shared/lib/image-blur-svg.mjs.map +1 -0
  869. package/dist/lib/node_modules/next/dist/shared/lib/image-config-context.shared-runtime.mjs +2 -0
  870. package/dist/lib/node_modules/next/dist/shared/lib/image-config-context.shared-runtime.mjs.map +1 -0
  871. package/dist/lib/node_modules/next/dist/shared/lib/image-config.mjs +2 -0
  872. package/dist/lib/node_modules/next/dist/shared/lib/image-config.mjs.map +1 -0
  873. package/dist/lib/node_modules/next/dist/shared/lib/image-external.mjs +2 -0
  874. package/dist/lib/node_modules/next/dist/shared/lib/image-external.mjs.map +1 -0
  875. package/dist/lib/node_modules/next/dist/shared/lib/image-loader.mjs +2 -0
  876. package/dist/lib/node_modules/next/dist/shared/lib/image-loader.mjs.map +1 -0
  877. package/dist/lib/node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.mjs +2 -0
  878. package/dist/lib/node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.mjs.map +1 -0
  879. package/dist/lib/node_modules/next/dist/shared/lib/match-remote-pattern.mjs +2 -0
  880. package/dist/lib/node_modules/next/dist/shared/lib/match-remote-pattern.mjs.map +1 -0
  881. package/dist/lib/node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.mjs +2 -0
  882. package/dist/lib/node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.mjs.map +1 -0
  883. package/dist/lib/node_modules/next/dist/shared/lib/router/utils/add-locale.mjs +2 -0
  884. package/dist/lib/node_modules/next/dist/shared/lib/router/utils/add-locale.mjs.map +1 -0
  885. package/dist/lib/node_modules/next/dist/shared/lib/router/utils/add-path-prefix.mjs +2 -0
  886. package/dist/lib/node_modules/next/dist/shared/lib/router/utils/add-path-prefix.mjs.map +1 -0
  887. package/dist/lib/node_modules/next/dist/shared/lib/router/utils/app-paths.mjs +2 -0
  888. package/dist/lib/node_modules/next/dist/shared/lib/router/utils/app-paths.mjs.map +1 -0
  889. package/dist/lib/node_modules/next/dist/shared/lib/router/utils/format-url.mjs +2 -0
  890. package/dist/lib/node_modules/next/dist/shared/lib/router/utils/format-url.mjs.map +1 -0
  891. package/dist/lib/node_modules/next/dist/shared/lib/router/utils/index.mjs +2 -0
  892. package/dist/lib/node_modules/next/dist/shared/lib/router/utils/index.mjs.map +1 -0
  893. package/dist/lib/node_modules/next/dist/shared/lib/router/utils/interpolate-as.mjs +2 -0
  894. package/dist/lib/node_modules/next/dist/shared/lib/router/utils/interpolate-as.mjs.map +1 -0
  895. package/dist/lib/node_modules/next/dist/shared/lib/router/utils/is-dynamic.mjs +2 -0
  896. package/dist/lib/node_modules/next/dist/shared/lib/router/utils/is-dynamic.mjs.map +1 -0
  897. package/dist/lib/node_modules/next/dist/shared/lib/router/utils/is-local-url.mjs +2 -0
  898. package/dist/lib/node_modules/next/dist/shared/lib/router/utils/is-local-url.mjs.map +1 -0
  899. package/dist/lib/node_modules/next/dist/shared/lib/router/utils/omit.mjs +2 -0
  900. package/dist/lib/node_modules/next/dist/shared/lib/router/utils/omit.mjs.map +1 -0
  901. package/dist/lib/node_modules/next/dist/shared/lib/router/utils/parse-path.mjs +2 -0
  902. package/dist/lib/node_modules/next/dist/shared/lib/router/utils/parse-path.mjs.map +1 -0
  903. package/dist/lib/node_modules/next/dist/shared/lib/router/utils/path-has-prefix.mjs +2 -0
  904. package/dist/lib/node_modules/next/dist/shared/lib/router/utils/path-has-prefix.mjs.map +1 -0
  905. package/dist/lib/node_modules/next/dist/shared/lib/router/utils/querystring.mjs +2 -0
  906. package/dist/lib/node_modules/next/dist/shared/lib/router/utils/querystring.mjs.map +1 -0
  907. package/dist/lib/node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.mjs +2 -0
  908. package/dist/lib/node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.mjs.map +1 -0
  909. package/dist/lib/node_modules/next/dist/shared/lib/router/utils/route-matcher.mjs +2 -0
  910. package/dist/lib/node_modules/next/dist/shared/lib/router/utils/route-matcher.mjs.map +1 -0
  911. package/dist/lib/node_modules/next/dist/shared/lib/router/utils/route-regex.mjs +2 -0
  912. package/dist/lib/node_modules/next/dist/shared/lib/router/utils/route-regex.mjs.map +1 -0
  913. package/dist/lib/node_modules/next/dist/shared/lib/router/utils/sorted-routes.mjs +2 -0
  914. package/dist/lib/node_modules/next/dist/shared/lib/router/utils/sorted-routes.mjs.map +1 -0
  915. package/dist/lib/node_modules/next/dist/shared/lib/router-context.shared-runtime.mjs +2 -0
  916. package/dist/lib/node_modules/next/dist/shared/lib/router-context.shared-runtime.mjs.map +1 -0
  917. package/dist/lib/node_modules/next/dist/shared/lib/segment.mjs +2 -0
  918. package/dist/lib/node_modules/next/dist/shared/lib/segment.mjs.map +1 -0
  919. package/dist/lib/node_modules/next/dist/shared/lib/server-inserted-html.shared-runtime.mjs +2 -0
  920. package/dist/lib/node_modules/next/dist/shared/lib/server-inserted-html.shared-runtime.mjs.map +1 -0
  921. package/dist/lib/node_modules/next/dist/shared/lib/side-effect.mjs +2 -0
  922. package/dist/lib/node_modules/next/dist/shared/lib/side-effect.mjs.map +1 -0
  923. package/dist/lib/node_modules/next/dist/shared/lib/utils/warn-once.mjs +2 -0
  924. package/dist/lib/node_modules/next/dist/shared/lib/utils/warn-once.mjs.map +1 -0
  925. package/dist/lib/node_modules/next/dist/shared/lib/utils.mjs +2 -0
  926. package/dist/lib/node_modules/next/dist/shared/lib/utils.mjs.map +1 -0
  927. package/dist/lib/node_modules/next/image.mjs +2 -0
  928. package/dist/lib/node_modules/next/image.mjs.map +1 -0
  929. package/dist/lib/node_modules/next/link.mjs +2 -0
  930. package/dist/lib/node_modules/next/link.mjs.map +1 -0
  931. package/dist/lib/node_modules/next/navigation.mjs +2 -0
  932. package/dist/lib/node_modules/next/navigation.mjs.map +1 -0
  933. package/dist/lib/node_modules/orderedmap/dist/index.mjs +2 -0
  934. package/dist/lib/node_modules/orderedmap/dist/index.mjs.map +1 -0
  935. package/dist/lib/node_modules/orderedmap/dist/index2.mjs +2 -0
  936. package/dist/lib/node_modules/orderedmap/dist/index2.mjs.map +1 -0
  937. package/dist/lib/node_modules/prosemirror-commands/dist/index.mjs +2 -0
  938. package/dist/lib/node_modules/prosemirror-commands/dist/index.mjs.map +1 -0
  939. package/dist/lib/node_modules/prosemirror-history/dist/index.mjs +2 -0
  940. package/dist/lib/node_modules/prosemirror-history/dist/index.mjs.map +1 -0
  941. package/dist/lib/node_modules/prosemirror-inputrules/dist/index.mjs +2 -0
  942. package/dist/lib/node_modules/prosemirror-inputrules/dist/index.mjs.map +1 -0
  943. package/dist/lib/node_modules/prosemirror-inputrules/dist/index2.mjs +2 -0
  944. package/dist/lib/node_modules/prosemirror-inputrules/dist/index2.mjs.map +1 -0
  945. package/dist/lib/node_modules/prosemirror-keymap/dist/index.mjs +2 -0
  946. package/dist/lib/node_modules/prosemirror-keymap/dist/index.mjs.map +1 -0
  947. package/dist/lib/node_modules/prosemirror-keymap/dist/index2.mjs +2 -0
  948. package/dist/lib/node_modules/prosemirror-keymap/dist/index2.mjs.map +1 -0
  949. package/dist/lib/node_modules/prosemirror-model/dist/index.mjs +2 -0
  950. package/dist/lib/node_modules/prosemirror-model/dist/index.mjs.map +1 -0
  951. package/dist/lib/node_modules/prosemirror-model/dist/index2.mjs +2 -0
  952. package/dist/lib/node_modules/prosemirror-model/dist/index2.mjs.map +1 -0
  953. package/dist/lib/node_modules/prosemirror-state/dist/index.mjs +2 -0
  954. package/dist/lib/node_modules/prosemirror-state/dist/index.mjs.map +1 -0
  955. package/dist/lib/node_modules/prosemirror-state/dist/index2.mjs +2 -0
  956. package/dist/lib/node_modules/prosemirror-state/dist/index2.mjs.map +1 -0
  957. package/dist/lib/node_modules/prosemirror-transform/dist/index.mjs +2 -0
  958. package/dist/lib/node_modules/prosemirror-transform/dist/index.mjs.map +1 -0
  959. package/dist/lib/node_modules/prosemirror-transform/dist/index2.mjs +2 -0
  960. package/dist/lib/node_modules/prosemirror-transform/dist/index2.mjs.map +1 -0
  961. package/dist/lib/node_modules/prosemirror-view/dist/index.mjs +2 -0
  962. package/dist/lib/node_modules/prosemirror-view/dist/index.mjs.map +1 -0
  963. package/dist/lib/node_modules/prosemirror-view/dist/index2.mjs +2 -0
  964. package/dist/lib/node_modules/prosemirror-view/dist/index2.mjs.map +1 -0
  965. package/dist/lib/node_modules/rope-sequence/dist/index.mjs +2 -0
  966. package/dist/lib/node_modules/rope-sequence/dist/index.mjs.map +1 -0
  967. package/dist/lib/node_modules/tui-color-picker/dist/tui-color-picker.mjs +10 -0
  968. package/dist/lib/node_modules/tui-color-picker/dist/tui-color-picker.mjs.map +1 -0
  969. package/dist/lib/node_modules/w3c-keyname/index.mjs +2 -0
  970. package/dist/lib/node_modules/w3c-keyname/index.mjs.map +1 -0
  971. package/dist/lib/node_modules/w3c-keyname/index2.mjs +2 -0
  972. package/dist/lib/node_modules/w3c-keyname/index2.mjs.map +1 -0
  973. package/dist/lib/tailwind.config.d.ts +3 -0
  974. package/dist/lib/theme/ThemeProvider.d.ts +16 -0
  975. package/dist/lib/theme/ThemeProvider.js +29 -0
  976. package/dist/lib/theme/index.d.ts +2 -0
  977. package/dist/lib/theme/index.js +2 -0
  978. package/dist/lib/tsconfig.tsbuildinfo +1 -0
  979. package/dist/lib/types.d.ts +8 -0
  980. package/dist/lib/utils/classPrefixes.d.ts +3 -0
  981. package/dist/lib/utils/classPrefixes.js +26 -0
  982. package/dist/lib/utils/useDarkMode.js +1 -0
  983. package/dist/tailwind.config.js +14 -37
  984. package/dist/tsconfig.tsbuildinfo +1 -1
  985. package/package.json +145 -133
  986. package/dist/_virtual/_commonjsHelpers.js +0 -2
  987. package/dist/_virtual/_commonjsHelpers.js.map +0 -1
  988. package/dist/_virtual/index.js +0 -2
  989. package/dist/_virtual/index.js.map +0 -1
  990. package/dist/_virtual/index2.js +0 -2
  991. package/dist/_virtual/index2.js.map +0 -1
  992. package/dist/_virtual/jsx-runtime.js +0 -2
  993. package/dist/_virtual/jsx-runtime.js.map +0 -1
  994. package/dist/_virtual/jsx-runtime2.js +0 -2
  995. package/dist/_virtual/jsx-runtime2.js.map +0 -1
  996. package/dist/_virtual/react-jsx-runtime.development.js +0 -2
  997. package/dist/_virtual/react-jsx-runtime.development.js.map +0 -1
  998. package/dist/_virtual/react-jsx-runtime.production.min.js +0 -2
  999. package/dist/_virtual/react-jsx-runtime.production.min.js.map +0 -1
  1000. package/dist/dist/lib/Typography/Header/index.js +0 -2
  1001. package/dist/dist/lib/Typography/Header/index.js.map +0 -1
  1002. package/dist/dist/lib/Typography/Text/index.js +0 -2
  1003. package/dist/dist/lib/Typography/Text/index.js.map +0 -1
  1004. package/dist/dist/lib/color/alpha.js +0 -2
  1005. package/dist/dist/lib/color/alpha.js.map +0 -1
  1006. package/dist/dist/lib/color/constants.js +0 -2
  1007. package/dist/dist/lib/color/constants.js.map +0 -1
  1008. package/dist/dist/lib/color/light.js +0 -2
  1009. package/dist/dist/lib/color/light.js.map +0 -1
  1010. package/dist/dist/lib/components/Accordion/index.js +0 -2
  1011. package/dist/dist/lib/components/Accordion/index.js.map +0 -1
  1012. package/dist/dist/lib/components/AlertDialog/AlertDialogAction.js +0 -2
  1013. package/dist/dist/lib/components/AlertDialog/AlertDialogAction.js.map +0 -1
  1014. package/dist/dist/lib/components/AlertDialog/AlertDialogCancel.js +0 -2
  1015. package/dist/dist/lib/components/AlertDialog/AlertDialogCancel.js.map +0 -1
  1016. package/dist/dist/lib/components/AlertDialog/AlertDialogContent.js +0 -2
  1017. package/dist/dist/lib/components/AlertDialog/AlertDialogContent.js.map +0 -1
  1018. package/dist/dist/lib/components/AlertDialog/AlertDialogDescription.js +0 -2
  1019. package/dist/dist/lib/components/AlertDialog/AlertDialogDescription.js.map +0 -1
  1020. package/dist/dist/lib/components/AlertDialog/AlertDialogRoot.js +0 -2
  1021. package/dist/dist/lib/components/AlertDialog/AlertDialogRoot.js.map +0 -1
  1022. package/dist/dist/lib/components/AlertDialog/AlertDialogTitle.js +0 -2
  1023. package/dist/dist/lib/components/AlertDialog/AlertDialogTitle.js.map +0 -1
  1024. package/dist/dist/lib/components/AlertDialog/AlertDialogTrigger.js +0 -2
  1025. package/dist/dist/lib/components/AlertDialog/AlertDialogTrigger.js.map +0 -1
  1026. package/dist/dist/lib/components/AlertDialog/index.js +0 -2
  1027. package/dist/dist/lib/components/AlertDialog/index.js.map +0 -1
  1028. package/dist/dist/lib/components/AspectRatio/index.js +0 -2
  1029. package/dist/dist/lib/components/AspectRatio/index.js.map +0 -1
  1030. package/dist/dist/lib/components/Avatar/index.js +0 -2
  1031. package/dist/dist/lib/components/Avatar/index.js.map +0 -1
  1032. package/dist/dist/lib/components/Badge/index.js +0 -2
  1033. package/dist/dist/lib/components/Badge/index.js.map +0 -1
  1034. package/dist/dist/lib/components/BarChart/index.js +0 -2
  1035. package/dist/dist/lib/components/BarChart/index.js.map +0 -1
  1036. package/dist/dist/lib/components/BubbleChart/index.js +0 -2
  1037. package/dist/dist/lib/components/BubbleChart/index.js.map +0 -1
  1038. package/dist/dist/lib/components/Button/index.js +0 -2
  1039. package/dist/dist/lib/components/Button/index.js.map +0 -1
  1040. package/dist/dist/lib/components/Callout/CalloutIcon.js +0 -2
  1041. package/dist/dist/lib/components/Callout/CalloutIcon.js.map +0 -1
  1042. package/dist/dist/lib/components/Callout/CalloutRoot.js +0 -2
  1043. package/dist/dist/lib/components/Callout/CalloutRoot.js.map +0 -1
  1044. package/dist/dist/lib/components/Callout/CalloutText.js +0 -2
  1045. package/dist/dist/lib/components/Callout/CalloutText.js.map +0 -1
  1046. package/dist/dist/lib/components/Callout/index.js +0 -2
  1047. package/dist/dist/lib/components/Callout/index.js.map +0 -1
  1048. package/dist/dist/lib/components/Card/index.js +0 -2
  1049. package/dist/dist/lib/components/Card/index.js.map +0 -1
  1050. package/dist/dist/lib/components/Checkbox/index.js +0 -2
  1051. package/dist/dist/lib/components/Checkbox/index.js.map +0 -1
  1052. package/dist/dist/lib/components/CheckboxCard/index.js +0 -2
  1053. package/dist/dist/lib/components/CheckboxCard/index.js.map +0 -1
  1054. package/dist/dist/lib/components/CheckboxGroup/CheckboxGroupItem.js +0 -2
  1055. package/dist/dist/lib/components/CheckboxGroup/CheckboxGroupItem.js.map +0 -1
  1056. package/dist/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.js +0 -2
  1057. package/dist/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.js.map +0 -1
  1058. package/dist/dist/lib/components/CheckboxGroup/index.js +0 -2
  1059. package/dist/dist/lib/components/CheckboxGroup/index.js.map +0 -1
  1060. package/dist/dist/lib/components/ContextMenu/ContextMenuCheckboxItem.js +0 -2
  1061. package/dist/dist/lib/components/ContextMenu/ContextMenuCheckboxItem.js.map +0 -1
  1062. package/dist/dist/lib/components/ContextMenu/ContextMenuContent.js +0 -2
  1063. package/dist/dist/lib/components/ContextMenu/ContextMenuContent.js.map +0 -1
  1064. package/dist/dist/lib/components/ContextMenu/ContextMenuGroup.js +0 -2
  1065. package/dist/dist/lib/components/ContextMenu/ContextMenuGroup.js.map +0 -1
  1066. package/dist/dist/lib/components/ContextMenu/ContextMenuItem.js +0 -2
  1067. package/dist/dist/lib/components/ContextMenu/ContextMenuItem.js.map +0 -1
  1068. package/dist/dist/lib/components/ContextMenu/ContextMenuItemIndicator.js +0 -2
  1069. package/dist/dist/lib/components/ContextMenu/ContextMenuItemIndicator.js.map +0 -1
  1070. package/dist/dist/lib/components/ContextMenu/ContextMenuLabel.js +0 -2
  1071. package/dist/dist/lib/components/ContextMenu/ContextMenuLabel.js.map +0 -1
  1072. package/dist/dist/lib/components/ContextMenu/ContextMenuRadioGroup.js +0 -2
  1073. package/dist/dist/lib/components/ContextMenu/ContextMenuRadioGroup.js.map +0 -1
  1074. package/dist/dist/lib/components/ContextMenu/ContextMenuRadioItem.js +0 -2
  1075. package/dist/dist/lib/components/ContextMenu/ContextMenuRadioItem.js.map +0 -1
  1076. package/dist/dist/lib/components/ContextMenu/ContextMenuRoot.js +0 -2
  1077. package/dist/dist/lib/components/ContextMenu/ContextMenuRoot.js.map +0 -1
  1078. package/dist/dist/lib/components/ContextMenu/ContextMenuSeparator.js +0 -2
  1079. package/dist/dist/lib/components/ContextMenu/ContextMenuSeparator.js.map +0 -1
  1080. package/dist/dist/lib/components/ContextMenu/ContextMenuSubContent.js +0 -2
  1081. package/dist/dist/lib/components/ContextMenu/ContextMenuSubContent.js.map +0 -1
  1082. package/dist/dist/lib/components/ContextMenu/ContextMenuSubTrigger.js +0 -2
  1083. package/dist/dist/lib/components/ContextMenu/ContextMenuSubTrigger.js.map +0 -1
  1084. package/dist/dist/lib/components/ContextMenu/ContextMenuTrigger.js +0 -2
  1085. package/dist/dist/lib/components/ContextMenu/ContextMenuTrigger.js.map +0 -1
  1086. package/dist/dist/lib/components/ContextMenu/index.js +0 -2
  1087. package/dist/dist/lib/components/ContextMenu/index.js.map +0 -1
  1088. package/dist/dist/lib/components/DataList/DataListItem.js +0 -2
  1089. package/dist/dist/lib/components/DataList/DataListItem.js.map +0 -1
  1090. package/dist/dist/lib/components/DataList/DataListLabel.js +0 -2
  1091. package/dist/dist/lib/components/DataList/DataListLabel.js.map +0 -1
  1092. package/dist/dist/lib/components/DataList/DataListRoot.js +0 -2
  1093. package/dist/dist/lib/components/DataList/DataListRoot.js.map +0 -1
  1094. package/dist/dist/lib/components/DataList/DataListValue.js +0 -2
  1095. package/dist/dist/lib/components/DataList/DataListValue.js.map +0 -1
  1096. package/dist/dist/lib/components/DataList/index.js +0 -2
  1097. package/dist/dist/lib/components/DataList/index.js.map +0 -1
  1098. package/dist/dist/lib/components/Dialog/DialogAction.js +0 -2
  1099. package/dist/dist/lib/components/Dialog/DialogAction.js.map +0 -1
  1100. package/dist/dist/lib/components/Dialog/DialogCancel.js +0 -2
  1101. package/dist/dist/lib/components/Dialog/DialogCancel.js.map +0 -1
  1102. package/dist/dist/lib/components/Dialog/DialogContent.js +0 -2
  1103. package/dist/dist/lib/components/Dialog/DialogContent.js.map +0 -1
  1104. package/dist/dist/lib/components/Dialog/DialogDescription.js +0 -2
  1105. package/dist/dist/lib/components/Dialog/DialogDescription.js.map +0 -1
  1106. package/dist/dist/lib/components/Dialog/DialogRoot.js +0 -2
  1107. package/dist/dist/lib/components/Dialog/DialogRoot.js.map +0 -1
  1108. package/dist/dist/lib/components/Dialog/DialogSlot.js +0 -2
  1109. package/dist/dist/lib/components/Dialog/DialogSlot.js.map +0 -1
  1110. package/dist/dist/lib/components/Dialog/DialogTitle.js +0 -2
  1111. package/dist/dist/lib/components/Dialog/DialogTitle.js.map +0 -1
  1112. package/dist/dist/lib/components/Dialog/DialogTrigger.js +0 -2
  1113. package/dist/dist/lib/components/Dialog/DialogTrigger.js.map +0 -1
  1114. package/dist/dist/lib/components/Dialog/index.js +0 -2
  1115. package/dist/dist/lib/components/Dialog/index.js.map +0 -1
  1116. package/dist/dist/lib/components/DoughnutChart/index.js +0 -2
  1117. package/dist/dist/lib/components/DoughnutChart/index.js.map +0 -1
  1118. package/dist/dist/lib/components/DropdownMenu/DropdonMenuRadioGroup.js +0 -2
  1119. package/dist/dist/lib/components/DropdownMenu/DropdonMenuRadioGroup.js.map +0 -1
  1120. package/dist/dist/lib/components/DropdownMenu/DropdonMenuSubContent.js +0 -2
  1121. package/dist/dist/lib/components/DropdownMenu/DropdonMenuSubContent.js.map +0 -1
  1122. package/dist/dist/lib/components/DropdownMenu/DropdownMenuCheckboxItem.js +0 -2
  1123. package/dist/dist/lib/components/DropdownMenu/DropdownMenuCheckboxItem.js.map +0 -1
  1124. package/dist/dist/lib/components/DropdownMenu/DropdownMenuContent.js +0 -2
  1125. package/dist/dist/lib/components/DropdownMenu/DropdownMenuContent.js.map +0 -1
  1126. package/dist/dist/lib/components/DropdownMenu/DropdownMenuItem.js +0 -2
  1127. package/dist/dist/lib/components/DropdownMenu/DropdownMenuItem.js.map +0 -1
  1128. package/dist/dist/lib/components/DropdownMenu/DropdownMenuItemIndicator.js +0 -2
  1129. package/dist/dist/lib/components/DropdownMenu/DropdownMenuItemIndicator.js.map +0 -1
  1130. package/dist/dist/lib/components/DropdownMenu/DropdownMenuLable.js +0 -2
  1131. package/dist/dist/lib/components/DropdownMenu/DropdownMenuLable.js.map +0 -1
  1132. package/dist/dist/lib/components/DropdownMenu/DropdownMenuRadioItem.js +0 -2
  1133. package/dist/dist/lib/components/DropdownMenu/DropdownMenuRadioItem.js.map +0 -1
  1134. package/dist/dist/lib/components/DropdownMenu/DropdownMenuRoot.js +0 -2
  1135. package/dist/dist/lib/components/DropdownMenu/DropdownMenuRoot.js.map +0 -1
  1136. package/dist/dist/lib/components/DropdownMenu/DropdownMenuSeparator.js +0 -2
  1137. package/dist/dist/lib/components/DropdownMenu/DropdownMenuSeparator.js.map +0 -1
  1138. package/dist/dist/lib/components/DropdownMenu/DropdownMenuSub.js +0 -2
  1139. package/dist/dist/lib/components/DropdownMenu/DropdownMenuSub.js.map +0 -1
  1140. package/dist/dist/lib/components/DropdownMenu/DropdownMenuSubTrigger.js +0 -2
  1141. package/dist/dist/lib/components/DropdownMenu/DropdownMenuSubTrigger.js.map +0 -1
  1142. package/dist/dist/lib/components/DropdownMenu/DropdownMenuTrigger.js +0 -2
  1143. package/dist/dist/lib/components/DropdownMenu/DropdownMenuTrigger.js.map +0 -1
  1144. package/dist/dist/lib/components/DropdownMenu/index.js +0 -2
  1145. package/dist/dist/lib/components/DropdownMenu/index.js.map +0 -1
  1146. package/dist/dist/lib/components/HoverCard/HoverCardContent.js +0 -2
  1147. package/dist/dist/lib/components/HoverCard/HoverCardContent.js.map +0 -1
  1148. package/dist/dist/lib/components/HoverCard/HoverCardRoot.js +0 -2
  1149. package/dist/dist/lib/components/HoverCard/HoverCardRoot.js.map +0 -1
  1150. package/dist/dist/lib/components/HoverCard/HoverCardTrigger.js +0 -2
  1151. package/dist/dist/lib/components/HoverCard/HoverCardTrigger.js.map +0 -1
  1152. package/dist/dist/lib/components/HoverCard/index.js +0 -2
  1153. package/dist/dist/lib/components/HoverCard/index.js.map +0 -1
  1154. package/dist/dist/lib/components/IconButton/index.js +0 -2
  1155. package/dist/dist/lib/components/IconButton/index.js.map +0 -1
  1156. package/dist/dist/lib/components/Inset/index.js +0 -2
  1157. package/dist/dist/lib/components/Inset/index.js.map +0 -1
  1158. package/dist/dist/lib/components/Label/index.js +0 -2
  1159. package/dist/dist/lib/components/Label/index.js.map +0 -1
  1160. package/dist/dist/lib/components/LineChart/index.js +0 -2
  1161. package/dist/dist/lib/components/LineChart/index.js.map +0 -1
  1162. package/dist/dist/lib/components/Menubar/MenubarCheckboxItem.js +0 -2
  1163. package/dist/dist/lib/components/Menubar/MenubarCheckboxItem.js.map +0 -1
  1164. package/dist/dist/lib/components/Menubar/MenubarContent.js +0 -2
  1165. package/dist/dist/lib/components/Menubar/MenubarContent.js.map +0 -1
  1166. package/dist/dist/lib/components/Menubar/MenubarItem.js +0 -2
  1167. package/dist/dist/lib/components/Menubar/MenubarItem.js.map +0 -1
  1168. package/dist/dist/lib/components/Menubar/MenubarItemIndicator.js +0 -2
  1169. package/dist/dist/lib/components/Menubar/MenubarItemIndicator.js.map +0 -1
  1170. package/dist/dist/lib/components/Menubar/MenubarMenu.js +0 -2
  1171. package/dist/dist/lib/components/Menubar/MenubarMenu.js.map +0 -1
  1172. package/dist/dist/lib/components/Menubar/MenubarRadioGroup.js +0 -2
  1173. package/dist/dist/lib/components/Menubar/MenubarRadioGroup.js.map +0 -1
  1174. package/dist/dist/lib/components/Menubar/MenubarRadioItem.js +0 -2
  1175. package/dist/dist/lib/components/Menubar/MenubarRadioItem.js.map +0 -1
  1176. package/dist/dist/lib/components/Menubar/MenubarRoot.js +0 -2
  1177. package/dist/dist/lib/components/Menubar/MenubarRoot.js.map +0 -1
  1178. package/dist/dist/lib/components/Menubar/MenubarSeparator.js +0 -2
  1179. package/dist/dist/lib/components/Menubar/MenubarSeparator.js.map +0 -1
  1180. package/dist/dist/lib/components/Menubar/MenubarSub.js +0 -2
  1181. package/dist/dist/lib/components/Menubar/MenubarSub.js.map +0 -1
  1182. package/dist/dist/lib/components/Menubar/MenubarSubContent.js +0 -2
  1183. package/dist/dist/lib/components/Menubar/MenubarSubContent.js.map +0 -1
  1184. package/dist/dist/lib/components/Menubar/MenubarSubTrigger.js +0 -2
  1185. package/dist/dist/lib/components/Menubar/MenubarSubTrigger.js.map +0 -1
  1186. package/dist/dist/lib/components/Menubar/MenubarTrigger.js +0 -2
  1187. package/dist/dist/lib/components/Menubar/MenubarTrigger.js.map +0 -1
  1188. package/dist/dist/lib/components/Menubar/index.js +0 -2
  1189. package/dist/dist/lib/components/Menubar/index.js.map +0 -1
  1190. package/dist/dist/lib/components/NavigationMenu/NavigationMenuContent.js +0 -2
  1191. package/dist/dist/lib/components/NavigationMenu/NavigationMenuContent.js.map +0 -1
  1192. package/dist/dist/lib/components/NavigationMenu/NavigationMenuIndicator.js +0 -2
  1193. package/dist/dist/lib/components/NavigationMenu/NavigationMenuIndicator.js.map +0 -1
  1194. package/dist/dist/lib/components/NavigationMenu/NavigationMenuItem.js +0 -2
  1195. package/dist/dist/lib/components/NavigationMenu/NavigationMenuItem.js.map +0 -1
  1196. package/dist/dist/lib/components/NavigationMenu/NavigationMenuLink.js +0 -2
  1197. package/dist/dist/lib/components/NavigationMenu/NavigationMenuLink.js.map +0 -1
  1198. package/dist/dist/lib/components/NavigationMenu/NavigationMenuList.js +0 -2
  1199. package/dist/dist/lib/components/NavigationMenu/NavigationMenuList.js.map +0 -1
  1200. package/dist/dist/lib/components/NavigationMenu/NavigationMenuRoot.js +0 -2
  1201. package/dist/dist/lib/components/NavigationMenu/NavigationMenuRoot.js.map +0 -1
  1202. package/dist/dist/lib/components/NavigationMenu/NavigationMenuTrigger.js +0 -2
  1203. package/dist/dist/lib/components/NavigationMenu/NavigationMenuTrigger.js.map +0 -1
  1204. package/dist/dist/lib/components/NavigationMenu/NavigationMenuViewport.js +0 -2
  1205. package/dist/dist/lib/components/NavigationMenu/NavigationMenuViewport.js.map +0 -1
  1206. package/dist/dist/lib/components/NavigationMenu/index.js +0 -2
  1207. package/dist/dist/lib/components/NavigationMenu/index.js.map +0 -1
  1208. package/dist/dist/lib/components/PieChart/index.js +0 -2
  1209. package/dist/dist/lib/components/PieChart/index.js.map +0 -1
  1210. package/dist/dist/lib/components/Popover/PopoverClose.js +0 -2
  1211. package/dist/dist/lib/components/Popover/PopoverClose.js.map +0 -1
  1212. package/dist/dist/lib/components/Popover/PopoverContent.js +0 -2
  1213. package/dist/dist/lib/components/Popover/PopoverContent.js.map +0 -1
  1214. package/dist/dist/lib/components/Popover/PopoverRoot.js +0 -2
  1215. package/dist/dist/lib/components/Popover/PopoverRoot.js.map +0 -1
  1216. package/dist/dist/lib/components/Popover/PopoverTrigger.js +0 -2
  1217. package/dist/dist/lib/components/Popover/PopoverTrigger.js.map +0 -1
  1218. package/dist/dist/lib/components/Popover/index.js +0 -2
  1219. package/dist/dist/lib/components/Popover/index.js.map +0 -1
  1220. package/dist/dist/lib/components/Progress/index.js +0 -2
  1221. package/dist/dist/lib/components/Progress/index.js.map +0 -1
  1222. package/dist/dist/lib/components/RadarChart/index.js +0 -2
  1223. package/dist/dist/lib/components/RadarChart/index.js.map +0 -1
  1224. package/dist/dist/lib/components/Radio/index.js +0 -2
  1225. package/dist/dist/lib/components/Radio/index.js.map +0 -1
  1226. package/dist/dist/lib/components/RadioCards/RadioCardsItem.js +0 -2
  1227. package/dist/dist/lib/components/RadioCards/RadioCardsItem.js.map +0 -1
  1228. package/dist/dist/lib/components/RadioCards/RadioCardsRoot.js +0 -2
  1229. package/dist/dist/lib/components/RadioCards/RadioCardsRoot.js.map +0 -1
  1230. package/dist/dist/lib/components/RadioCards/index.js +0 -2
  1231. package/dist/dist/lib/components/RadioCards/index.js.map +0 -1
  1232. package/dist/dist/lib/components/RadioGroup/RadioGroupItem.js +0 -2
  1233. package/dist/dist/lib/components/RadioGroup/RadioGroupItem.js.map +0 -1
  1234. package/dist/dist/lib/components/RadioGroup/RadioGroupRoot.js +0 -2
  1235. package/dist/dist/lib/components/RadioGroup/RadioGroupRoot.js.map +0 -1
  1236. package/dist/dist/lib/components/RadioGroup/index.js +0 -2
  1237. package/dist/dist/lib/components/RadioGroup/index.js.map +0 -1
  1238. package/dist/dist/lib/components/ScrollArea/index.js +0 -2
  1239. package/dist/dist/lib/components/ScrollArea/index.js.map +0 -1
  1240. package/dist/dist/lib/components/SegmentedControl/SegmentedControlItem.js +0 -2
  1241. package/dist/dist/lib/components/SegmentedControl/SegmentedControlItem.js.map +0 -1
  1242. package/dist/dist/lib/components/SegmentedControl/SegmentedControlRoot.js +0 -2
  1243. package/dist/dist/lib/components/SegmentedControl/SegmentedControlRoot.js.map +0 -1
  1244. package/dist/dist/lib/components/SegmentedControl/index.js +0 -2
  1245. package/dist/dist/lib/components/SegmentedControl/index.js.map +0 -1
  1246. package/dist/dist/lib/components/Select/index.js +0 -2
  1247. package/dist/dist/lib/components/Select/index.js.map +0 -1
  1248. package/dist/dist/lib/components/Separator/index.js +0 -2
  1249. package/dist/dist/lib/components/Separator/index.js.map +0 -1
  1250. package/dist/dist/lib/components/Skeleton/index.js +0 -2
  1251. package/dist/dist/lib/components/Skeleton/index.js.map +0 -1
  1252. package/dist/dist/lib/components/Slider/index.js +0 -2
  1253. package/dist/dist/lib/components/Slider/index.js.map +0 -1
  1254. package/dist/dist/lib/components/Spinner/index.js +0 -2
  1255. package/dist/dist/lib/components/Spinner/index.js.map +0 -1
  1256. package/dist/dist/lib/components/TabNav/index.js +0 -2
  1257. package/dist/dist/lib/components/TabNav/index.js.map +0 -1
  1258. package/dist/dist/lib/components/Table/index.js +0 -2
  1259. package/dist/dist/lib/components/Table/index.js.map +0 -1
  1260. package/dist/dist/lib/components/Tabs/index.js +0 -2
  1261. package/dist/dist/lib/components/Tabs/index.js.map +0 -1
  1262. package/dist/dist/lib/components/TextArea/index.js +0 -2
  1263. package/dist/dist/lib/components/TextArea/index.js.map +0 -1
  1264. package/dist/dist/lib/components/TextField/index.js +0 -2
  1265. package/dist/dist/lib/components/TextField/index.js.map +0 -1
  1266. package/dist/dist/lib/components/Toast/ToastActionButton.js +0 -2
  1267. package/dist/dist/lib/components/Toast/ToastActionButton.js.map +0 -1
  1268. package/dist/dist/lib/components/Toast/ToastDescription.js +0 -2
  1269. package/dist/dist/lib/components/Toast/ToastDescription.js.map +0 -1
  1270. package/dist/dist/lib/components/Toast/ToastRoot.js +0 -2
  1271. package/dist/dist/lib/components/Toast/ToastRoot.js.map +0 -1
  1272. package/dist/dist/lib/components/Toast/ToastTitle.js +0 -2
  1273. package/dist/dist/lib/components/Toast/ToastTitle.js.map +0 -1
  1274. package/dist/dist/lib/components/Toast/index.js +0 -2
  1275. package/dist/dist/lib/components/Toast/index.js.map +0 -1
  1276. package/dist/dist/lib/components/Toggle/ToggleWithText.js +0 -2
  1277. package/dist/dist/lib/components/Toggle/ToggleWithText.js.map +0 -1
  1278. package/dist/dist/lib/components/Toggle/index.js +0 -2
  1279. package/dist/dist/lib/components/Toggle/index.js.map +0 -1
  1280. package/dist/dist/lib/components/ToggleGroup/ToggleGroupItem.js +0 -2
  1281. package/dist/dist/lib/components/ToggleGroup/ToggleGroupItem.js.map +0 -1
  1282. package/dist/dist/lib/components/ToggleGroup/ToggleGroupRoot.js +0 -2
  1283. package/dist/dist/lib/components/ToggleGroup/ToggleGroupRoot.js.map +0 -1
  1284. package/dist/dist/lib/components/ToggleGroup/index.js +0 -2
  1285. package/dist/dist/lib/components/ToggleGroup/index.js.map +0 -1
  1286. package/dist/dist/lib/components/ToggleSwitch/index.js +0 -2
  1287. package/dist/dist/lib/components/ToggleSwitch/index.js.map +0 -1
  1288. package/dist/dist/lib/components/Tooltip/index.js +0 -2
  1289. package/dist/dist/lib/components/Tooltip/index.js.map +0 -1
  1290. package/dist/dist/lib/constants.js +0 -2
  1291. package/dist/dist/lib/constants.js.map +0 -1
  1292. package/dist/dist/lib/index.js +0 -2
  1293. package/dist/dist/lib/index.js.map +0 -1
  1294. package/dist/dist/lib/utils/useDarkMode.js +0 -2
  1295. package/dist/dist/lib/utils/useDarkMode.js.map +0 -1
  1296. package/dist/dist/lib/utils/utils.js +0 -2
  1297. package/dist/dist/lib/utils/utils.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index2.mjs","sources":["../../../../../node_modules/prosemirror-model/dist/index.js"],"sourcesContent":["import OrderedMap from 'orderedmap';\n\nfunction findDiffStart(a, b, pos) {\n for (let i = 0;; i++) {\n if (i == a.childCount || i == b.childCount)\n return a.childCount == b.childCount ? null : pos;\n let childA = a.child(i), childB = b.child(i);\n if (childA == childB) {\n pos += childA.nodeSize;\n continue;\n }\n if (!childA.sameMarkup(childB))\n return pos;\n if (childA.isText && childA.text != childB.text) {\n for (let j = 0; childA.text[j] == childB.text[j]; j++)\n pos++;\n return pos;\n }\n if (childA.content.size || childB.content.size) {\n let inner = findDiffStart(childA.content, childB.content, pos + 1);\n if (inner != null)\n return inner;\n }\n pos += childA.nodeSize;\n }\n}\nfunction findDiffEnd(a, b, posA, posB) {\n for (let iA = a.childCount, iB = b.childCount;;) {\n if (iA == 0 || iB == 0)\n return iA == iB ? null : { a: posA, b: posB };\n let childA = a.child(--iA), childB = b.child(--iB), size = childA.nodeSize;\n if (childA == childB) {\n posA -= size;\n posB -= size;\n continue;\n }\n if (!childA.sameMarkup(childB))\n return { a: posA, b: posB };\n if (childA.isText && childA.text != childB.text) {\n let same = 0, minSize = Math.min(childA.text.length, childB.text.length);\n while (same < minSize && childA.text[childA.text.length - same - 1] == childB.text[childB.text.length - same - 1]) {\n same++;\n posA--;\n posB--;\n }\n return { a: posA, b: posB };\n }\n if (childA.content.size || childB.content.size) {\n let inner = findDiffEnd(childA.content, childB.content, posA - 1, posB - 1);\n if (inner)\n return inner;\n }\n posA -= size;\n posB -= size;\n }\n}\n\n/**\nA fragment represents a node's collection of child nodes.\n\nLike nodes, fragments are persistent data structures, and you\nshould not mutate them or their content. Rather, you create new\ninstances whenever needed. The API tries to make this easy.\n*/\nclass Fragment {\n /**\n @internal\n */\n constructor(\n /**\n @internal\n */\n content, size) {\n this.content = content;\n this.size = size || 0;\n if (size == null)\n for (let i = 0; i < content.length; i++)\n this.size += content[i].nodeSize;\n }\n /**\n Invoke a callback for all descendant nodes between the given two\n positions (relative to start of this fragment). Doesn't descend\n into a node when the callback returns `false`.\n */\n nodesBetween(from, to, f, nodeStart = 0, parent) {\n for (let i = 0, pos = 0; pos < to; i++) {\n let child = this.content[i], end = pos + child.nodeSize;\n if (end > from && f(child, nodeStart + pos, parent || null, i) !== false && child.content.size) {\n let start = pos + 1;\n child.nodesBetween(Math.max(0, from - start), Math.min(child.content.size, to - start), f, nodeStart + start);\n }\n pos = end;\n }\n }\n /**\n Call the given callback for every descendant node. `pos` will be\n relative to the start of the fragment. The callback may return\n `false` to prevent traversal of a given node's children.\n */\n descendants(f) {\n this.nodesBetween(0, this.size, f);\n }\n /**\n Extract the text between `from` and `to`. See the same method on\n [`Node`](https://prosemirror.net/docs/ref/#model.Node.textBetween).\n */\n textBetween(from, to, blockSeparator, leafText) {\n let text = \"\", first = true;\n this.nodesBetween(from, to, (node, pos) => {\n let nodeText = node.isText ? node.text.slice(Math.max(from, pos) - pos, to - pos)\n : !node.isLeaf ? \"\"\n : leafText ? (typeof leafText === \"function\" ? leafText(node) : leafText)\n : node.type.spec.leafText ? node.type.spec.leafText(node)\n : \"\";\n if (node.isBlock && (node.isLeaf && nodeText || node.isTextblock) && blockSeparator) {\n if (first)\n first = false;\n else\n text += blockSeparator;\n }\n text += nodeText;\n }, 0);\n return text;\n }\n /**\n Create a new fragment containing the combined content of this\n fragment and the other.\n */\n append(other) {\n if (!other.size)\n return this;\n if (!this.size)\n return other;\n let last = this.lastChild, first = other.firstChild, content = this.content.slice(), i = 0;\n if (last.isText && last.sameMarkup(first)) {\n content[content.length - 1] = last.withText(last.text + first.text);\n i = 1;\n }\n for (; i < other.content.length; i++)\n content.push(other.content[i]);\n return new Fragment(content, this.size + other.size);\n }\n /**\n Cut out the sub-fragment between the two given positions.\n */\n cut(from, to = this.size) {\n if (from == 0 && to == this.size)\n return this;\n let result = [], size = 0;\n if (to > from)\n for (let i = 0, pos = 0; pos < to; i++) {\n let child = this.content[i], end = pos + child.nodeSize;\n if (end > from) {\n if (pos < from || end > to) {\n if (child.isText)\n child = child.cut(Math.max(0, from - pos), Math.min(child.text.length, to - pos));\n else\n child = child.cut(Math.max(0, from - pos - 1), Math.min(child.content.size, to - pos - 1));\n }\n result.push(child);\n size += child.nodeSize;\n }\n pos = end;\n }\n return new Fragment(result, size);\n }\n /**\n @internal\n */\n cutByIndex(from, to) {\n if (from == to)\n return Fragment.empty;\n if (from == 0 && to == this.content.length)\n return this;\n return new Fragment(this.content.slice(from, to));\n }\n /**\n Create a new fragment in which the node at the given index is\n replaced by the given node.\n */\n replaceChild(index, node) {\n let current = this.content[index];\n if (current == node)\n return this;\n let copy = this.content.slice();\n let size = this.size + node.nodeSize - current.nodeSize;\n copy[index] = node;\n return new Fragment(copy, size);\n }\n /**\n Create a new fragment by prepending the given node to this\n fragment.\n */\n addToStart(node) {\n return new Fragment([node].concat(this.content), this.size + node.nodeSize);\n }\n /**\n Create a new fragment by appending the given node to this\n fragment.\n */\n addToEnd(node) {\n return new Fragment(this.content.concat(node), this.size + node.nodeSize);\n }\n /**\n Compare this fragment to another one.\n */\n eq(other) {\n if (this.content.length != other.content.length)\n return false;\n for (let i = 0; i < this.content.length; i++)\n if (!this.content[i].eq(other.content[i]))\n return false;\n return true;\n }\n /**\n The first child of the fragment, or `null` if it is empty.\n */\n get firstChild() { return this.content.length ? this.content[0] : null; }\n /**\n The last child of the fragment, or `null` if it is empty.\n */\n get lastChild() { return this.content.length ? this.content[this.content.length - 1] : null; }\n /**\n The number of child nodes in this fragment.\n */\n get childCount() { return this.content.length; }\n /**\n Get the child node at the given index. Raise an error when the\n index is out of range.\n */\n child(index) {\n let found = this.content[index];\n if (!found)\n throw new RangeError(\"Index \" + index + \" out of range for \" + this);\n return found;\n }\n /**\n Get the child node at the given index, if it exists.\n */\n maybeChild(index) {\n return this.content[index] || null;\n }\n /**\n Call `f` for every child node, passing the node, its offset\n into this parent node, and its index.\n */\n forEach(f) {\n for (let i = 0, p = 0; i < this.content.length; i++) {\n let child = this.content[i];\n f(child, p, i);\n p += child.nodeSize;\n }\n }\n /**\n Find the first position at which this fragment and another\n fragment differ, or `null` if they are the same.\n */\n findDiffStart(other, pos = 0) {\n return findDiffStart(this, other, pos);\n }\n /**\n Find the first position, searching from the end, at which this\n fragment and the given fragment differ, or `null` if they are\n the same. Since this position will not be the same in both\n nodes, an object with two separate positions is returned.\n */\n findDiffEnd(other, pos = this.size, otherPos = other.size) {\n return findDiffEnd(this, other, pos, otherPos);\n }\n /**\n Find the index and inner offset corresponding to a given relative\n position in this fragment. The result object will be reused\n (overwritten) the next time the function is called. @internal\n */\n findIndex(pos, round = -1) {\n if (pos == 0)\n return retIndex(0, pos);\n if (pos == this.size)\n return retIndex(this.content.length, pos);\n if (pos > this.size || pos < 0)\n throw new RangeError(`Position ${pos} outside of fragment (${this})`);\n for (let i = 0, curPos = 0;; i++) {\n let cur = this.child(i), end = curPos + cur.nodeSize;\n if (end >= pos) {\n if (end == pos || round > 0)\n return retIndex(i + 1, end);\n return retIndex(i, curPos);\n }\n curPos = end;\n }\n }\n /**\n Return a debugging string that describes this fragment.\n */\n toString() { return \"<\" + this.toStringInner() + \">\"; }\n /**\n @internal\n */\n toStringInner() { return this.content.join(\", \"); }\n /**\n Create a JSON-serializeable representation of this fragment.\n */\n toJSON() {\n return this.content.length ? this.content.map(n => n.toJSON()) : null;\n }\n /**\n Deserialize a fragment from its JSON representation.\n */\n static fromJSON(schema, value) {\n if (!value)\n return Fragment.empty;\n if (!Array.isArray(value))\n throw new RangeError(\"Invalid input for Fragment.fromJSON\");\n return new Fragment(value.map(schema.nodeFromJSON));\n }\n /**\n Build a fragment from an array of nodes. Ensures that adjacent\n text nodes with the same marks are joined together.\n */\n static fromArray(array) {\n if (!array.length)\n return Fragment.empty;\n let joined, size = 0;\n for (let i = 0; i < array.length; i++) {\n let node = array[i];\n size += node.nodeSize;\n if (i && node.isText && array[i - 1].sameMarkup(node)) {\n if (!joined)\n joined = array.slice(0, i);\n joined[joined.length - 1] = node\n .withText(joined[joined.length - 1].text + node.text);\n }\n else if (joined) {\n joined.push(node);\n }\n }\n return new Fragment(joined || array, size);\n }\n /**\n Create a fragment from something that can be interpreted as a\n set of nodes. For `null`, it returns the empty fragment. For a\n fragment, the fragment itself. For a node or array of nodes, a\n fragment containing those nodes.\n */\n static from(nodes) {\n if (!nodes)\n return Fragment.empty;\n if (nodes instanceof Fragment)\n return nodes;\n if (Array.isArray(nodes))\n return this.fromArray(nodes);\n if (nodes.attrs)\n return new Fragment([nodes], nodes.nodeSize);\n throw new RangeError(\"Can not convert \" + nodes + \" to a Fragment\" +\n (nodes.nodesBetween ? \" (looks like multiple versions of prosemirror-model were loaded)\" : \"\"));\n }\n}\n/**\nAn empty fragment. Intended to be reused whenever a node doesn't\ncontain anything (rather than allocating a new empty fragment for\neach leaf node).\n*/\nFragment.empty = new Fragment([], 0);\nconst found = { index: 0, offset: 0 };\nfunction retIndex(index, offset) {\n found.index = index;\n found.offset = offset;\n return found;\n}\n\nfunction compareDeep(a, b) {\n if (a === b)\n return true;\n if (!(a && typeof a == \"object\") ||\n !(b && typeof b == \"object\"))\n return false;\n let array = Array.isArray(a);\n if (Array.isArray(b) != array)\n return false;\n if (array) {\n if (a.length != b.length)\n return false;\n for (let i = 0; i < a.length; i++)\n if (!compareDeep(a[i], b[i]))\n return false;\n }\n else {\n for (let p in a)\n if (!(p in b) || !compareDeep(a[p], b[p]))\n return false;\n for (let p in b)\n if (!(p in a))\n return false;\n }\n return true;\n}\n\n/**\nA mark is a piece of information that can be attached to a node,\nsuch as it being emphasized, in code font, or a link. It has a\ntype and optionally a set of attributes that provide further\ninformation (such as the target of the link). Marks are created\nthrough a `Schema`, which controls which types exist and which\nattributes they have.\n*/\nclass Mark {\n /**\n @internal\n */\n constructor(\n /**\n The type of this mark.\n */\n type, \n /**\n The attributes associated with this mark.\n */\n attrs) {\n this.type = type;\n this.attrs = attrs;\n }\n /**\n Given a set of marks, create a new set which contains this one as\n well, in the right position. If this mark is already in the set,\n the set itself is returned. If any marks that are set to be\n [exclusive](https://prosemirror.net/docs/ref/#model.MarkSpec.excludes) with this mark are present,\n those are replaced by this one.\n */\n addToSet(set) {\n let copy, placed = false;\n for (let i = 0; i < set.length; i++) {\n let other = set[i];\n if (this.eq(other))\n return set;\n if (this.type.excludes(other.type)) {\n if (!copy)\n copy = set.slice(0, i);\n }\n else if (other.type.excludes(this.type)) {\n return set;\n }\n else {\n if (!placed && other.type.rank > this.type.rank) {\n if (!copy)\n copy = set.slice(0, i);\n copy.push(this);\n placed = true;\n }\n if (copy)\n copy.push(other);\n }\n }\n if (!copy)\n copy = set.slice();\n if (!placed)\n copy.push(this);\n return copy;\n }\n /**\n Remove this mark from the given set, returning a new set. If this\n mark is not in the set, the set itself is returned.\n */\n removeFromSet(set) {\n for (let i = 0; i < set.length; i++)\n if (this.eq(set[i]))\n return set.slice(0, i).concat(set.slice(i + 1));\n return set;\n }\n /**\n Test whether this mark is in the given set of marks.\n */\n isInSet(set) {\n for (let i = 0; i < set.length; i++)\n if (this.eq(set[i]))\n return true;\n return false;\n }\n /**\n Test whether this mark has the same type and attributes as\n another mark.\n */\n eq(other) {\n return this == other ||\n (this.type == other.type && compareDeep(this.attrs, other.attrs));\n }\n /**\n Convert this mark to a JSON-serializeable representation.\n */\n toJSON() {\n let obj = { type: this.type.name };\n for (let _ in this.attrs) {\n obj.attrs = this.attrs;\n break;\n }\n return obj;\n }\n /**\n Deserialize a mark from JSON.\n */\n static fromJSON(schema, json) {\n if (!json)\n throw new RangeError(\"Invalid input for Mark.fromJSON\");\n let type = schema.marks[json.type];\n if (!type)\n throw new RangeError(`There is no mark type ${json.type} in this schema`);\n let mark = type.create(json.attrs);\n type.checkAttrs(mark.attrs);\n return mark;\n }\n /**\n Test whether two sets of marks are identical.\n */\n static sameSet(a, b) {\n if (a == b)\n return true;\n if (a.length != b.length)\n return false;\n for (let i = 0; i < a.length; i++)\n if (!a[i].eq(b[i]))\n return false;\n return true;\n }\n /**\n Create a properly sorted mark set from null, a single mark, or an\n unsorted array of marks.\n */\n static setFrom(marks) {\n if (!marks || Array.isArray(marks) && marks.length == 0)\n return Mark.none;\n if (marks instanceof Mark)\n return [marks];\n let copy = marks.slice();\n copy.sort((a, b) => a.type.rank - b.type.rank);\n return copy;\n }\n}\n/**\nThe empty set of marks.\n*/\nMark.none = [];\n\n/**\nError type raised by [`Node.replace`](https://prosemirror.net/docs/ref/#model.Node.replace) when\ngiven an invalid replacement.\n*/\nclass ReplaceError extends Error {\n}\n/*\nReplaceError = function(this: any, message: string) {\n let err = Error.call(this, message)\n ;(err as any).__proto__ = ReplaceError.prototype\n return err\n} as any\n\nReplaceError.prototype = Object.create(Error.prototype)\nReplaceError.prototype.constructor = ReplaceError\nReplaceError.prototype.name = \"ReplaceError\"\n*/\n/**\nA slice represents a piece cut out of a larger document. It\nstores not only a fragment, but also the depth up to which nodes on\nboth side are ‘open’ (cut through).\n*/\nclass Slice {\n /**\n Create a slice. When specifying a non-zero open depth, you must\n make sure that there are nodes of at least that depth at the\n appropriate side of the fragment—i.e. if the fragment is an\n empty paragraph node, `openStart` and `openEnd` can't be greater\n than 1.\n \n It is not necessary for the content of open nodes to conform to\n the schema's content constraints, though it should be a valid\n start/end/middle for such a node, depending on which sides are\n open.\n */\n constructor(\n /**\n The slice's content.\n */\n content, \n /**\n The open depth at the start of the fragment.\n */\n openStart, \n /**\n The open depth at the end.\n */\n openEnd) {\n this.content = content;\n this.openStart = openStart;\n this.openEnd = openEnd;\n }\n /**\n The size this slice would add when inserted into a document.\n */\n get size() {\n return this.content.size - this.openStart - this.openEnd;\n }\n /**\n @internal\n */\n insertAt(pos, fragment) {\n let content = insertInto(this.content, pos + this.openStart, fragment);\n return content && new Slice(content, this.openStart, this.openEnd);\n }\n /**\n @internal\n */\n removeBetween(from, to) {\n return new Slice(removeRange(this.content, from + this.openStart, to + this.openStart), this.openStart, this.openEnd);\n }\n /**\n Tests whether this slice is equal to another slice.\n */\n eq(other) {\n return this.content.eq(other.content) && this.openStart == other.openStart && this.openEnd == other.openEnd;\n }\n /**\n @internal\n */\n toString() {\n return this.content + \"(\" + this.openStart + \",\" + this.openEnd + \")\";\n }\n /**\n Convert a slice to a JSON-serializable representation.\n */\n toJSON() {\n if (!this.content.size)\n return null;\n let json = { content: this.content.toJSON() };\n if (this.openStart > 0)\n json.openStart = this.openStart;\n if (this.openEnd > 0)\n json.openEnd = this.openEnd;\n return json;\n }\n /**\n Deserialize a slice from its JSON representation.\n */\n static fromJSON(schema, json) {\n if (!json)\n return Slice.empty;\n let openStart = json.openStart || 0, openEnd = json.openEnd || 0;\n if (typeof openStart != \"number\" || typeof openEnd != \"number\")\n throw new RangeError(\"Invalid input for Slice.fromJSON\");\n return new Slice(Fragment.fromJSON(schema, json.content), openStart, openEnd);\n }\n /**\n Create a slice from a fragment by taking the maximum possible\n open value on both side of the fragment.\n */\n static maxOpen(fragment, openIsolating = true) {\n let openStart = 0, openEnd = 0;\n for (let n = fragment.firstChild; n && !n.isLeaf && (openIsolating || !n.type.spec.isolating); n = n.firstChild)\n openStart++;\n for (let n = fragment.lastChild; n && !n.isLeaf && (openIsolating || !n.type.spec.isolating); n = n.lastChild)\n openEnd++;\n return new Slice(fragment, openStart, openEnd);\n }\n}\n/**\nThe empty slice.\n*/\nSlice.empty = new Slice(Fragment.empty, 0, 0);\nfunction removeRange(content, from, to) {\n let { index, offset } = content.findIndex(from), child = content.maybeChild(index);\n let { index: indexTo, offset: offsetTo } = content.findIndex(to);\n if (offset == from || child.isText) {\n if (offsetTo != to && !content.child(indexTo).isText)\n throw new RangeError(\"Removing non-flat range\");\n return content.cut(0, from).append(content.cut(to));\n }\n if (index != indexTo)\n throw new RangeError(\"Removing non-flat range\");\n return content.replaceChild(index, child.copy(removeRange(child.content, from - offset - 1, to - offset - 1)));\n}\nfunction insertInto(content, dist, insert, parent) {\n let { index, offset } = content.findIndex(dist), child = content.maybeChild(index);\n if (offset == dist || child.isText) {\n if (parent && !parent.canReplace(index, index, insert))\n return null;\n return content.cut(0, dist).append(insert).append(content.cut(dist));\n }\n let inner = insertInto(child.content, dist - offset - 1, insert);\n return inner && content.replaceChild(index, child.copy(inner));\n}\nfunction replace($from, $to, slice) {\n if (slice.openStart > $from.depth)\n throw new ReplaceError(\"Inserted content deeper than insertion position\");\n if ($from.depth - slice.openStart != $to.depth - slice.openEnd)\n throw new ReplaceError(\"Inconsistent open depths\");\n return replaceOuter($from, $to, slice, 0);\n}\nfunction replaceOuter($from, $to, slice, depth) {\n let index = $from.index(depth), node = $from.node(depth);\n if (index == $to.index(depth) && depth < $from.depth - slice.openStart) {\n let inner = replaceOuter($from, $to, slice, depth + 1);\n return node.copy(node.content.replaceChild(index, inner));\n }\n else if (!slice.content.size) {\n return close(node, replaceTwoWay($from, $to, depth));\n }\n else if (!slice.openStart && !slice.openEnd && $from.depth == depth && $to.depth == depth) { // Simple, flat case\n let parent = $from.parent, content = parent.content;\n return close(parent, content.cut(0, $from.parentOffset).append(slice.content).append(content.cut($to.parentOffset)));\n }\n else {\n let { start, end } = prepareSliceForReplace(slice, $from);\n return close(node, replaceThreeWay($from, start, end, $to, depth));\n }\n}\nfunction checkJoin(main, sub) {\n if (!sub.type.compatibleContent(main.type))\n throw new ReplaceError(\"Cannot join \" + sub.type.name + \" onto \" + main.type.name);\n}\nfunction joinable($before, $after, depth) {\n let node = $before.node(depth);\n checkJoin(node, $after.node(depth));\n return node;\n}\nfunction addNode(child, target) {\n let last = target.length - 1;\n if (last >= 0 && child.isText && child.sameMarkup(target[last]))\n target[last] = child.withText(target[last].text + child.text);\n else\n target.push(child);\n}\nfunction addRange($start, $end, depth, target) {\n let node = ($end || $start).node(depth);\n let startIndex = 0, endIndex = $end ? $end.index(depth) : node.childCount;\n if ($start) {\n startIndex = $start.index(depth);\n if ($start.depth > depth) {\n startIndex++;\n }\n else if ($start.textOffset) {\n addNode($start.nodeAfter, target);\n startIndex++;\n }\n }\n for (let i = startIndex; i < endIndex; i++)\n addNode(node.child(i), target);\n if ($end && $end.depth == depth && $end.textOffset)\n addNode($end.nodeBefore, target);\n}\nfunction close(node, content) {\n node.type.checkContent(content);\n return node.copy(content);\n}\nfunction replaceThreeWay($from, $start, $end, $to, depth) {\n let openStart = $from.depth > depth && joinable($from, $start, depth + 1);\n let openEnd = $to.depth > depth && joinable($end, $to, depth + 1);\n let content = [];\n addRange(null, $from, depth, content);\n if (openStart && openEnd && $start.index(depth) == $end.index(depth)) {\n checkJoin(openStart, openEnd);\n addNode(close(openStart, replaceThreeWay($from, $start, $end, $to, depth + 1)), content);\n }\n else {\n if (openStart)\n addNode(close(openStart, replaceTwoWay($from, $start, depth + 1)), content);\n addRange($start, $end, depth, content);\n if (openEnd)\n addNode(close(openEnd, replaceTwoWay($end, $to, depth + 1)), content);\n }\n addRange($to, null, depth, content);\n return new Fragment(content);\n}\nfunction replaceTwoWay($from, $to, depth) {\n let content = [];\n addRange(null, $from, depth, content);\n if ($from.depth > depth) {\n let type = joinable($from, $to, depth + 1);\n addNode(close(type, replaceTwoWay($from, $to, depth + 1)), content);\n }\n addRange($to, null, depth, content);\n return new Fragment(content);\n}\nfunction prepareSliceForReplace(slice, $along) {\n let extra = $along.depth - slice.openStart, parent = $along.node(extra);\n let node = parent.copy(slice.content);\n for (let i = extra - 1; i >= 0; i--)\n node = $along.node(i).copy(Fragment.from(node));\n return { start: node.resolveNoCache(slice.openStart + extra),\n end: node.resolveNoCache(node.content.size - slice.openEnd - extra) };\n}\n\n/**\nYou can [_resolve_](https://prosemirror.net/docs/ref/#model.Node.resolve) a position to get more\ninformation about it. Objects of this class represent such a\nresolved position, providing various pieces of context\ninformation, and some helper methods.\n\nThroughout this interface, methods that take an optional `depth`\nparameter will interpret undefined as `this.depth` and negative\nnumbers as `this.depth + value`.\n*/\nclass ResolvedPos {\n /**\n @internal\n */\n constructor(\n /**\n The position that was resolved.\n */\n pos, \n /**\n @internal\n */\n path, \n /**\n The offset this position has into its parent node.\n */\n parentOffset) {\n this.pos = pos;\n this.path = path;\n this.parentOffset = parentOffset;\n this.depth = path.length / 3 - 1;\n }\n /**\n @internal\n */\n resolveDepth(val) {\n if (val == null)\n return this.depth;\n if (val < 0)\n return this.depth + val;\n return val;\n }\n /**\n The parent node that the position points into. Note that even if\n a position points into a text node, that node is not considered\n the parent—text nodes are ‘flat’ in this model, and have no content.\n */\n get parent() { return this.node(this.depth); }\n /**\n The root node in which the position was resolved.\n */\n get doc() { return this.node(0); }\n /**\n The ancestor node at the given level. `p.node(p.depth)` is the\n same as `p.parent`.\n */\n node(depth) { return this.path[this.resolveDepth(depth) * 3]; }\n /**\n The index into the ancestor at the given level. If this points\n at the 3rd node in the 2nd paragraph on the top level, for\n example, `p.index(0)` is 1 and `p.index(1)` is 2.\n */\n index(depth) { return this.path[this.resolveDepth(depth) * 3 + 1]; }\n /**\n The index pointing after this position into the ancestor at the\n given level.\n */\n indexAfter(depth) {\n depth = this.resolveDepth(depth);\n return this.index(depth) + (depth == this.depth && !this.textOffset ? 0 : 1);\n }\n /**\n The (absolute) position at the start of the node at the given\n level.\n */\n start(depth) {\n depth = this.resolveDepth(depth);\n return depth == 0 ? 0 : this.path[depth * 3 - 1] + 1;\n }\n /**\n The (absolute) position at the end of the node at the given\n level.\n */\n end(depth) {\n depth = this.resolveDepth(depth);\n return this.start(depth) + this.node(depth).content.size;\n }\n /**\n The (absolute) position directly before the wrapping node at the\n given level, or, when `depth` is `this.depth + 1`, the original\n position.\n */\n before(depth) {\n depth = this.resolveDepth(depth);\n if (!depth)\n throw new RangeError(\"There is no position before the top-level node\");\n return depth == this.depth + 1 ? this.pos : this.path[depth * 3 - 1];\n }\n /**\n The (absolute) position directly after the wrapping node at the\n given level, or the original position when `depth` is `this.depth + 1`.\n */\n after(depth) {\n depth = this.resolveDepth(depth);\n if (!depth)\n throw new RangeError(\"There is no position after the top-level node\");\n return depth == this.depth + 1 ? this.pos : this.path[depth * 3 - 1] + this.path[depth * 3].nodeSize;\n }\n /**\n When this position points into a text node, this returns the\n distance between the position and the start of the text node.\n Will be zero for positions that point between nodes.\n */\n get textOffset() { return this.pos - this.path[this.path.length - 1]; }\n /**\n Get the node directly after the position, if any. If the position\n points into a text node, only the part of that node after the\n position is returned.\n */\n get nodeAfter() {\n let parent = this.parent, index = this.index(this.depth);\n if (index == parent.childCount)\n return null;\n let dOff = this.pos - this.path[this.path.length - 1], child = parent.child(index);\n return dOff ? parent.child(index).cut(dOff) : child;\n }\n /**\n Get the node directly before the position, if any. If the\n position points into a text node, only the part of that node\n before the position is returned.\n */\n get nodeBefore() {\n let index = this.index(this.depth);\n let dOff = this.pos - this.path[this.path.length - 1];\n if (dOff)\n return this.parent.child(index).cut(0, dOff);\n return index == 0 ? null : this.parent.child(index - 1);\n }\n /**\n Get the position at the given index in the parent node at the\n given depth (which defaults to `this.depth`).\n */\n posAtIndex(index, depth) {\n depth = this.resolveDepth(depth);\n let node = this.path[depth * 3], pos = depth == 0 ? 0 : this.path[depth * 3 - 1] + 1;\n for (let i = 0; i < index; i++)\n pos += node.child(i).nodeSize;\n return pos;\n }\n /**\n Get the marks at this position, factoring in the surrounding\n marks' [`inclusive`](https://prosemirror.net/docs/ref/#model.MarkSpec.inclusive) property. If the\n position is at the start of a non-empty node, the marks of the\n node after it (if any) are returned.\n */\n marks() {\n let parent = this.parent, index = this.index();\n // In an empty parent, return the empty array\n if (parent.content.size == 0)\n return Mark.none;\n // When inside a text node, just return the text node's marks\n if (this.textOffset)\n return parent.child(index).marks;\n let main = parent.maybeChild(index - 1), other = parent.maybeChild(index);\n // If the `after` flag is true of there is no node before, make\n // the node after this position the main reference.\n if (!main) {\n let tmp = main;\n main = other;\n other = tmp;\n }\n // Use all marks in the main node, except those that have\n // `inclusive` set to false and are not present in the other node.\n let marks = main.marks;\n for (var i = 0; i < marks.length; i++)\n if (marks[i].type.spec.inclusive === false && (!other || !marks[i].isInSet(other.marks)))\n marks = marks[i--].removeFromSet(marks);\n return marks;\n }\n /**\n Get the marks after the current position, if any, except those\n that are non-inclusive and not present at position `$end`. This\n is mostly useful for getting the set of marks to preserve after a\n deletion. Will return `null` if this position is at the end of\n its parent node or its parent node isn't a textblock (in which\n case no marks should be preserved).\n */\n marksAcross($end) {\n let after = this.parent.maybeChild(this.index());\n if (!after || !after.isInline)\n return null;\n let marks = after.marks, next = $end.parent.maybeChild($end.index());\n for (var i = 0; i < marks.length; i++)\n if (marks[i].type.spec.inclusive === false && (!next || !marks[i].isInSet(next.marks)))\n marks = marks[i--].removeFromSet(marks);\n return marks;\n }\n /**\n The depth up to which this position and the given (non-resolved)\n position share the same parent nodes.\n */\n sharedDepth(pos) {\n for (let depth = this.depth; depth > 0; depth--)\n if (this.start(depth) <= pos && this.end(depth) >= pos)\n return depth;\n return 0;\n }\n /**\n Returns a range based on the place where this position and the\n given position diverge around block content. If both point into\n the same textblock, for example, a range around that textblock\n will be returned. If they point into different blocks, the range\n around those blocks in their shared ancestor is returned. You can\n pass in an optional predicate that will be called with a parent\n node to see if a range into that parent is acceptable.\n */\n blockRange(other = this, pred) {\n if (other.pos < this.pos)\n return other.blockRange(this);\n for (let d = this.depth - (this.parent.inlineContent || this.pos == other.pos ? 1 : 0); d >= 0; d--)\n if (other.pos <= this.end(d) && (!pred || pred(this.node(d))))\n return new NodeRange(this, other, d);\n return null;\n }\n /**\n Query whether the given position shares the same parent node.\n */\n sameParent(other) {\n return this.pos - this.parentOffset == other.pos - other.parentOffset;\n }\n /**\n Return the greater of this and the given position.\n */\n max(other) {\n return other.pos > this.pos ? other : this;\n }\n /**\n Return the smaller of this and the given position.\n */\n min(other) {\n return other.pos < this.pos ? other : this;\n }\n /**\n @internal\n */\n toString() {\n let str = \"\";\n for (let i = 1; i <= this.depth; i++)\n str += (str ? \"/\" : \"\") + this.node(i).type.name + \"_\" + this.index(i - 1);\n return str + \":\" + this.parentOffset;\n }\n /**\n @internal\n */\n static resolve(doc, pos) {\n if (!(pos >= 0 && pos <= doc.content.size))\n throw new RangeError(\"Position \" + pos + \" out of range\");\n let path = [];\n let start = 0, parentOffset = pos;\n for (let node = doc;;) {\n let { index, offset } = node.content.findIndex(parentOffset);\n let rem = parentOffset - offset;\n path.push(node, index, start + offset);\n if (!rem)\n break;\n node = node.child(index);\n if (node.isText)\n break;\n parentOffset = rem - 1;\n start += offset + 1;\n }\n return new ResolvedPos(pos, path, parentOffset);\n }\n /**\n @internal\n */\n static resolveCached(doc, pos) {\n let cache = resolveCache.get(doc);\n if (cache) {\n for (let i = 0; i < cache.elts.length; i++) {\n let elt = cache.elts[i];\n if (elt.pos == pos)\n return elt;\n }\n }\n else {\n resolveCache.set(doc, cache = new ResolveCache);\n }\n let result = cache.elts[cache.i] = ResolvedPos.resolve(doc, pos);\n cache.i = (cache.i + 1) % resolveCacheSize;\n return result;\n }\n}\nclass ResolveCache {\n constructor() {\n this.elts = [];\n this.i = 0;\n }\n}\nconst resolveCacheSize = 12, resolveCache = new WeakMap();\n/**\nRepresents a flat range of content, i.e. one that starts and\nends in the same node.\n*/\nclass NodeRange {\n /**\n Construct a node range. `$from` and `$to` should point into the\n same node until at least the given `depth`, since a node range\n denotes an adjacent set of nodes in a single parent node.\n */\n constructor(\n /**\n A resolved position along the start of the content. May have a\n `depth` greater than this object's `depth` property, since\n these are the positions that were used to compute the range,\n not re-resolved positions directly at its boundaries.\n */\n $from, \n /**\n A position along the end of the content. See\n caveat for [`$from`](https://prosemirror.net/docs/ref/#model.NodeRange.$from).\n */\n $to, \n /**\n The depth of the node that this range points into.\n */\n depth) {\n this.$from = $from;\n this.$to = $to;\n this.depth = depth;\n }\n /**\n The position at the start of the range.\n */\n get start() { return this.$from.before(this.depth + 1); }\n /**\n The position at the end of the range.\n */\n get end() { return this.$to.after(this.depth + 1); }\n /**\n The parent node that the range points into.\n */\n get parent() { return this.$from.node(this.depth); }\n /**\n The start index of the range in the parent node.\n */\n get startIndex() { return this.$from.index(this.depth); }\n /**\n The end index of the range in the parent node.\n */\n get endIndex() { return this.$to.indexAfter(this.depth); }\n}\n\nconst emptyAttrs = Object.create(null);\n/**\nThis class represents a node in the tree that makes up a\nProseMirror document. So a document is an instance of `Node`, with\nchildren that are also instances of `Node`.\n\nNodes are persistent data structures. Instead of changing them, you\ncreate new ones with the content you want. Old ones keep pointing\nat the old document shape. This is made cheaper by sharing\nstructure between the old and new data as much as possible, which a\ntree shape like this (without back pointers) makes easy.\n\n**Do not** directly mutate the properties of a `Node` object. See\n[the guide](/docs/guide/#doc) for more information.\n*/\nclass Node {\n /**\n @internal\n */\n constructor(\n /**\n The type of node that this is.\n */\n type, \n /**\n An object mapping attribute names to values. The kind of\n attributes allowed and required are\n [determined](https://prosemirror.net/docs/ref/#model.NodeSpec.attrs) by the node type.\n */\n attrs, \n // A fragment holding the node's children.\n content, \n /**\n The marks (things like whether it is emphasized or part of a\n link) applied to this node.\n */\n marks = Mark.none) {\n this.type = type;\n this.attrs = attrs;\n this.marks = marks;\n this.content = content || Fragment.empty;\n }\n /**\n The size of this node, as defined by the integer-based [indexing\n scheme](/docs/guide/#doc.indexing). For text nodes, this is the\n amount of characters. For other leaf nodes, it is one. For\n non-leaf nodes, it is the size of the content plus two (the\n start and end token).\n */\n get nodeSize() { return this.isLeaf ? 1 : 2 + this.content.size; }\n /**\n The number of children that the node has.\n */\n get childCount() { return this.content.childCount; }\n /**\n Get the child node at the given index. Raises an error when the\n index is out of range.\n */\n child(index) { return this.content.child(index); }\n /**\n Get the child node at the given index, if it exists.\n */\n maybeChild(index) { return this.content.maybeChild(index); }\n /**\n Call `f` for every child node, passing the node, its offset\n into this parent node, and its index.\n */\n forEach(f) { this.content.forEach(f); }\n /**\n Invoke a callback for all descendant nodes recursively between\n the given two positions that are relative to start of this\n node's content. The callback is invoked with the node, its\n position relative to the original node (method receiver),\n its parent node, and its child index. When the callback returns\n false for a given node, that node's children will not be\n recursed over. The last parameter can be used to specify a\n starting position to count from.\n */\n nodesBetween(from, to, f, startPos = 0) {\n this.content.nodesBetween(from, to, f, startPos, this);\n }\n /**\n Call the given callback for every descendant node. Doesn't\n descend into a node when the callback returns `false`.\n */\n descendants(f) {\n this.nodesBetween(0, this.content.size, f);\n }\n /**\n Concatenates all the text nodes found in this fragment and its\n children.\n */\n get textContent() {\n return (this.isLeaf && this.type.spec.leafText)\n ? this.type.spec.leafText(this)\n : this.textBetween(0, this.content.size, \"\");\n }\n /**\n Get all text between positions `from` and `to`. When\n `blockSeparator` is given, it will be inserted to separate text\n from different block nodes. If `leafText` is given, it'll be\n inserted for every non-text leaf node encountered, otherwise\n [`leafText`](https://prosemirror.net/docs/ref/#model.NodeSpec^leafText) will be used.\n */\n textBetween(from, to, blockSeparator, leafText) {\n return this.content.textBetween(from, to, blockSeparator, leafText);\n }\n /**\n Returns this node's first child, or `null` if there are no\n children.\n */\n get firstChild() { return this.content.firstChild; }\n /**\n Returns this node's last child, or `null` if there are no\n children.\n */\n get lastChild() { return this.content.lastChild; }\n /**\n Test whether two nodes represent the same piece of document.\n */\n eq(other) {\n return this == other || (this.sameMarkup(other) && this.content.eq(other.content));\n }\n /**\n Compare the markup (type, attributes, and marks) of this node to\n those of another. Returns `true` if both have the same markup.\n */\n sameMarkup(other) {\n return this.hasMarkup(other.type, other.attrs, other.marks);\n }\n /**\n Check whether this node's markup correspond to the given type,\n attributes, and marks.\n */\n hasMarkup(type, attrs, marks) {\n return this.type == type &&\n compareDeep(this.attrs, attrs || type.defaultAttrs || emptyAttrs) &&\n Mark.sameSet(this.marks, marks || Mark.none);\n }\n /**\n Create a new node with the same markup as this node, containing\n the given content (or empty, if no content is given).\n */\n copy(content = null) {\n if (content == this.content)\n return this;\n return new Node(this.type, this.attrs, content, this.marks);\n }\n /**\n Create a copy of this node, with the given set of marks instead\n of the node's own marks.\n */\n mark(marks) {\n return marks == this.marks ? this : new Node(this.type, this.attrs, this.content, marks);\n }\n /**\n Create a copy of this node with only the content between the\n given positions. If `to` is not given, it defaults to the end of\n the node.\n */\n cut(from, to = this.content.size) {\n if (from == 0 && to == this.content.size)\n return this;\n return this.copy(this.content.cut(from, to));\n }\n /**\n Cut out the part of the document between the given positions, and\n return it as a `Slice` object.\n */\n slice(from, to = this.content.size, includeParents = false) {\n if (from == to)\n return Slice.empty;\n let $from = this.resolve(from), $to = this.resolve(to);\n let depth = includeParents ? 0 : $from.sharedDepth(to);\n let start = $from.start(depth), node = $from.node(depth);\n let content = node.content.cut($from.pos - start, $to.pos - start);\n return new Slice(content, $from.depth - depth, $to.depth - depth);\n }\n /**\n Replace the part of the document between the given positions with\n the given slice. The slice must 'fit', meaning its open sides\n must be able to connect to the surrounding content, and its\n content nodes must be valid children for the node they are placed\n into. If any of this is violated, an error of type\n [`ReplaceError`](https://prosemirror.net/docs/ref/#model.ReplaceError) is thrown.\n */\n replace(from, to, slice) {\n return replace(this.resolve(from), this.resolve(to), slice);\n }\n /**\n Find the node directly after the given position.\n */\n nodeAt(pos) {\n for (let node = this;;) {\n let { index, offset } = node.content.findIndex(pos);\n node = node.maybeChild(index);\n if (!node)\n return null;\n if (offset == pos || node.isText)\n return node;\n pos -= offset + 1;\n }\n }\n /**\n Find the (direct) child node after the given offset, if any,\n and return it along with its index and offset relative to this\n node.\n */\n childAfter(pos) {\n let { index, offset } = this.content.findIndex(pos);\n return { node: this.content.maybeChild(index), index, offset };\n }\n /**\n Find the (direct) child node before the given offset, if any,\n and return it along with its index and offset relative to this\n node.\n */\n childBefore(pos) {\n if (pos == 0)\n return { node: null, index: 0, offset: 0 };\n let { index, offset } = this.content.findIndex(pos);\n if (offset < pos)\n return { node: this.content.child(index), index, offset };\n let node = this.content.child(index - 1);\n return { node, index: index - 1, offset: offset - node.nodeSize };\n }\n /**\n Resolve the given position in the document, returning an\n [object](https://prosemirror.net/docs/ref/#model.ResolvedPos) with information about its context.\n */\n resolve(pos) { return ResolvedPos.resolveCached(this, pos); }\n /**\n @internal\n */\n resolveNoCache(pos) { return ResolvedPos.resolve(this, pos); }\n /**\n Test whether a given mark or mark type occurs in this document\n between the two given positions.\n */\n rangeHasMark(from, to, type) {\n let found = false;\n if (to > from)\n this.nodesBetween(from, to, node => {\n if (type.isInSet(node.marks))\n found = true;\n return !found;\n });\n return found;\n }\n /**\n True when this is a block (non-inline node)\n */\n get isBlock() { return this.type.isBlock; }\n /**\n True when this is a textblock node, a block node with inline\n content.\n */\n get isTextblock() { return this.type.isTextblock; }\n /**\n True when this node allows inline content.\n */\n get inlineContent() { return this.type.inlineContent; }\n /**\n True when this is an inline node (a text node or a node that can\n appear among text).\n */\n get isInline() { return this.type.isInline; }\n /**\n True when this is a text node.\n */\n get isText() { return this.type.isText; }\n /**\n True when this is a leaf node.\n */\n get isLeaf() { return this.type.isLeaf; }\n /**\n True when this is an atom, i.e. when it does not have directly\n editable content. This is usually the same as `isLeaf`, but can\n be configured with the [`atom` property](https://prosemirror.net/docs/ref/#model.NodeSpec.atom)\n on a node's spec (typically used when the node is displayed as\n an uneditable [node view](https://prosemirror.net/docs/ref/#view.NodeView)).\n */\n get isAtom() { return this.type.isAtom; }\n /**\n Return a string representation of this node for debugging\n purposes.\n */\n toString() {\n if (this.type.spec.toDebugString)\n return this.type.spec.toDebugString(this);\n let name = this.type.name;\n if (this.content.size)\n name += \"(\" + this.content.toStringInner() + \")\";\n return wrapMarks(this.marks, name);\n }\n /**\n Get the content match in this node at the given index.\n */\n contentMatchAt(index) {\n let match = this.type.contentMatch.matchFragment(this.content, 0, index);\n if (!match)\n throw new Error(\"Called contentMatchAt on a node with invalid content\");\n return match;\n }\n /**\n Test whether replacing the range between `from` and `to` (by\n child index) with the given replacement fragment (which defaults\n to the empty fragment) would leave the node's content valid. You\n can optionally pass `start` and `end` indices into the\n replacement fragment.\n */\n canReplace(from, to, replacement = Fragment.empty, start = 0, end = replacement.childCount) {\n let one = this.contentMatchAt(from).matchFragment(replacement, start, end);\n let two = one && one.matchFragment(this.content, to);\n if (!two || !two.validEnd)\n return false;\n for (let i = start; i < end; i++)\n if (!this.type.allowsMarks(replacement.child(i).marks))\n return false;\n return true;\n }\n /**\n Test whether replacing the range `from` to `to` (by index) with\n a node of the given type would leave the node's content valid.\n */\n canReplaceWith(from, to, type, marks) {\n if (marks && !this.type.allowsMarks(marks))\n return false;\n let start = this.contentMatchAt(from).matchType(type);\n let end = start && start.matchFragment(this.content, to);\n return end ? end.validEnd : false;\n }\n /**\n Test whether the given node's content could be appended to this\n node. If that node is empty, this will only return true if there\n is at least one node type that can appear in both nodes (to avoid\n merging completely incompatible nodes).\n */\n canAppend(other) {\n if (other.content.size)\n return this.canReplace(this.childCount, this.childCount, other.content);\n else\n return this.type.compatibleContent(other.type);\n }\n /**\n Check whether this node and its descendants conform to the\n schema, and raise an exception when they do not.\n */\n check() {\n this.type.checkContent(this.content);\n this.type.checkAttrs(this.attrs);\n let copy = Mark.none;\n for (let i = 0; i < this.marks.length; i++) {\n let mark = this.marks[i];\n mark.type.checkAttrs(mark.attrs);\n copy = mark.addToSet(copy);\n }\n if (!Mark.sameSet(copy, this.marks))\n throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(m => m.type.name)}`);\n this.content.forEach(node => node.check());\n }\n /**\n Return a JSON-serializeable representation of this node.\n */\n toJSON() {\n let obj = { type: this.type.name };\n for (let _ in this.attrs) {\n obj.attrs = this.attrs;\n break;\n }\n if (this.content.size)\n obj.content = this.content.toJSON();\n if (this.marks.length)\n obj.marks = this.marks.map(n => n.toJSON());\n return obj;\n }\n /**\n Deserialize a node from its JSON representation.\n */\n static fromJSON(schema, json) {\n if (!json)\n throw new RangeError(\"Invalid input for Node.fromJSON\");\n let marks = undefined;\n if (json.marks) {\n if (!Array.isArray(json.marks))\n throw new RangeError(\"Invalid mark data for Node.fromJSON\");\n marks = json.marks.map(schema.markFromJSON);\n }\n if (json.type == \"text\") {\n if (typeof json.text != \"string\")\n throw new RangeError(\"Invalid text node in JSON\");\n return schema.text(json.text, marks);\n }\n let content = Fragment.fromJSON(schema, json.content);\n let node = schema.nodeType(json.type).create(json.attrs, content, marks);\n node.type.checkAttrs(node.attrs);\n return node;\n }\n}\nNode.prototype.text = undefined;\nclass TextNode extends Node {\n /**\n @internal\n */\n constructor(type, attrs, content, marks) {\n super(type, attrs, null, marks);\n if (!content)\n throw new RangeError(\"Empty text nodes are not allowed\");\n this.text = content;\n }\n toString() {\n if (this.type.spec.toDebugString)\n return this.type.spec.toDebugString(this);\n return wrapMarks(this.marks, JSON.stringify(this.text));\n }\n get textContent() { return this.text; }\n textBetween(from, to) { return this.text.slice(from, to); }\n get nodeSize() { return this.text.length; }\n mark(marks) {\n return marks == this.marks ? this : new TextNode(this.type, this.attrs, this.text, marks);\n }\n withText(text) {\n if (text == this.text)\n return this;\n return new TextNode(this.type, this.attrs, text, this.marks);\n }\n cut(from = 0, to = this.text.length) {\n if (from == 0 && to == this.text.length)\n return this;\n return this.withText(this.text.slice(from, to));\n }\n eq(other) {\n return this.sameMarkup(other) && this.text == other.text;\n }\n toJSON() {\n let base = super.toJSON();\n base.text = this.text;\n return base;\n }\n}\nfunction wrapMarks(marks, str) {\n for (let i = marks.length - 1; i >= 0; i--)\n str = marks[i].type.name + \"(\" + str + \")\";\n return str;\n}\n\n/**\nInstances of this class represent a match state of a node type's\n[content expression](https://prosemirror.net/docs/ref/#model.NodeSpec.content), and can be used to\nfind out whether further content matches here, and whether a given\nposition is a valid end of the node.\n*/\nclass ContentMatch {\n /**\n @internal\n */\n constructor(\n /**\n True when this match state represents a valid end of the node.\n */\n validEnd) {\n this.validEnd = validEnd;\n /**\n @internal\n */\n this.next = [];\n /**\n @internal\n */\n this.wrapCache = [];\n }\n /**\n @internal\n */\n static parse(string, nodeTypes) {\n let stream = new TokenStream(string, nodeTypes);\n if (stream.next == null)\n return ContentMatch.empty;\n let expr = parseExpr(stream);\n if (stream.next)\n stream.err(\"Unexpected trailing text\");\n let match = dfa(nfa(expr));\n checkForDeadEnds(match, stream);\n return match;\n }\n /**\n Match a node type, returning a match after that node if\n successful.\n */\n matchType(type) {\n for (let i = 0; i < this.next.length; i++)\n if (this.next[i].type == type)\n return this.next[i].next;\n return null;\n }\n /**\n Try to match a fragment. Returns the resulting match when\n successful.\n */\n matchFragment(frag, start = 0, end = frag.childCount) {\n let cur = this;\n for (let i = start; cur && i < end; i++)\n cur = cur.matchType(frag.child(i).type);\n return cur;\n }\n /**\n @internal\n */\n get inlineContent() {\n return this.next.length != 0 && this.next[0].type.isInline;\n }\n /**\n Get the first matching node type at this match position that can\n be generated.\n */\n get defaultType() {\n for (let i = 0; i < this.next.length; i++) {\n let { type } = this.next[i];\n if (!(type.isText || type.hasRequiredAttrs()))\n return type;\n }\n return null;\n }\n /**\n @internal\n */\n compatible(other) {\n for (let i = 0; i < this.next.length; i++)\n for (let j = 0; j < other.next.length; j++)\n if (this.next[i].type == other.next[j].type)\n return true;\n return false;\n }\n /**\n Try to match the given fragment, and if that fails, see if it can\n be made to match by inserting nodes in front of it. When\n successful, return a fragment of inserted nodes (which may be\n empty if nothing had to be inserted). When `toEnd` is true, only\n return a fragment if the resulting match goes to the end of the\n content expression.\n */\n fillBefore(after, toEnd = false, startIndex = 0) {\n let seen = [this];\n function search(match, types) {\n let finished = match.matchFragment(after, startIndex);\n if (finished && (!toEnd || finished.validEnd))\n return Fragment.from(types.map(tp => tp.createAndFill()));\n for (let i = 0; i < match.next.length; i++) {\n let { type, next } = match.next[i];\n if (!(type.isText || type.hasRequiredAttrs()) && seen.indexOf(next) == -1) {\n seen.push(next);\n let found = search(next, types.concat(type));\n if (found)\n return found;\n }\n }\n return null;\n }\n return search(this, []);\n }\n /**\n Find a set of wrapping node types that would allow a node of the\n given type to appear at this position. The result may be empty\n (when it fits directly) and will be null when no such wrapping\n exists.\n */\n findWrapping(target) {\n for (let i = 0; i < this.wrapCache.length; i += 2)\n if (this.wrapCache[i] == target)\n return this.wrapCache[i + 1];\n let computed = this.computeWrapping(target);\n this.wrapCache.push(target, computed);\n return computed;\n }\n /**\n @internal\n */\n computeWrapping(target) {\n let seen = Object.create(null), active = [{ match: this, type: null, via: null }];\n while (active.length) {\n let current = active.shift(), match = current.match;\n if (match.matchType(target)) {\n let result = [];\n for (let obj = current; obj.type; obj = obj.via)\n result.push(obj.type);\n return result.reverse();\n }\n for (let i = 0; i < match.next.length; i++) {\n let { type, next } = match.next[i];\n if (!type.isLeaf && !type.hasRequiredAttrs() && !(type.name in seen) && (!current.type || next.validEnd)) {\n active.push({ match: type.contentMatch, type, via: current });\n seen[type.name] = true;\n }\n }\n }\n return null;\n }\n /**\n The number of outgoing edges this node has in the finite\n automaton that describes the content expression.\n */\n get edgeCount() {\n return this.next.length;\n }\n /**\n Get the _n_​th outgoing edge from this node in the finite\n automaton that describes the content expression.\n */\n edge(n) {\n if (n >= this.next.length)\n throw new RangeError(`There's no ${n}th edge in this content match`);\n return this.next[n];\n }\n /**\n @internal\n */\n toString() {\n let seen = [];\n function scan(m) {\n seen.push(m);\n for (let i = 0; i < m.next.length; i++)\n if (seen.indexOf(m.next[i].next) == -1)\n scan(m.next[i].next);\n }\n scan(this);\n return seen.map((m, i) => {\n let out = i + (m.validEnd ? \"*\" : \" \") + \" \";\n for (let i = 0; i < m.next.length; i++)\n out += (i ? \", \" : \"\") + m.next[i].type.name + \"->\" + seen.indexOf(m.next[i].next);\n return out;\n }).join(\"\\n\");\n }\n}\n/**\n@internal\n*/\nContentMatch.empty = new ContentMatch(true);\nclass TokenStream {\n constructor(string, nodeTypes) {\n this.string = string;\n this.nodeTypes = nodeTypes;\n this.inline = null;\n this.pos = 0;\n this.tokens = string.split(/\\s*(?=\\b|\\W|$)/);\n if (this.tokens[this.tokens.length - 1] == \"\")\n this.tokens.pop();\n if (this.tokens[0] == \"\")\n this.tokens.shift();\n }\n get next() { return this.tokens[this.pos]; }\n eat(tok) { return this.next == tok && (this.pos++ || true); }\n err(str) { throw new SyntaxError(str + \" (in content expression '\" + this.string + \"')\"); }\n}\nfunction parseExpr(stream) {\n let exprs = [];\n do {\n exprs.push(parseExprSeq(stream));\n } while (stream.eat(\"|\"));\n return exprs.length == 1 ? exprs[0] : { type: \"choice\", exprs };\n}\nfunction parseExprSeq(stream) {\n let exprs = [];\n do {\n exprs.push(parseExprSubscript(stream));\n } while (stream.next && stream.next != \")\" && stream.next != \"|\");\n return exprs.length == 1 ? exprs[0] : { type: \"seq\", exprs };\n}\nfunction parseExprSubscript(stream) {\n let expr = parseExprAtom(stream);\n for (;;) {\n if (stream.eat(\"+\"))\n expr = { type: \"plus\", expr };\n else if (stream.eat(\"*\"))\n expr = { type: \"star\", expr };\n else if (stream.eat(\"?\"))\n expr = { type: \"opt\", expr };\n else if (stream.eat(\"{\"))\n expr = parseExprRange(stream, expr);\n else\n break;\n }\n return expr;\n}\nfunction parseNum(stream) {\n if (/\\D/.test(stream.next))\n stream.err(\"Expected number, got '\" + stream.next + \"'\");\n let result = Number(stream.next);\n stream.pos++;\n return result;\n}\nfunction parseExprRange(stream, expr) {\n let min = parseNum(stream), max = min;\n if (stream.eat(\",\")) {\n if (stream.next != \"}\")\n max = parseNum(stream);\n else\n max = -1;\n }\n if (!stream.eat(\"}\"))\n stream.err(\"Unclosed braced range\");\n return { type: \"range\", min, max, expr };\n}\nfunction resolveName(stream, name) {\n let types = stream.nodeTypes, type = types[name];\n if (type)\n return [type];\n let result = [];\n for (let typeName in types) {\n let type = types[typeName];\n if (type.isInGroup(name))\n result.push(type);\n }\n if (result.length == 0)\n stream.err(\"No node type or group '\" + name + \"' found\");\n return result;\n}\nfunction parseExprAtom(stream) {\n if (stream.eat(\"(\")) {\n let expr = parseExpr(stream);\n if (!stream.eat(\")\"))\n stream.err(\"Missing closing paren\");\n return expr;\n }\n else if (!/\\W/.test(stream.next)) {\n let exprs = resolveName(stream, stream.next).map(type => {\n if (stream.inline == null)\n stream.inline = type.isInline;\n else if (stream.inline != type.isInline)\n stream.err(\"Mixing inline and block content\");\n return { type: \"name\", value: type };\n });\n stream.pos++;\n return exprs.length == 1 ? exprs[0] : { type: \"choice\", exprs };\n }\n else {\n stream.err(\"Unexpected token '\" + stream.next + \"'\");\n }\n}\n/**\nConstruct an NFA from an expression as returned by the parser. The\nNFA is represented as an array of states, which are themselves\narrays of edges, which are `{term, to}` objects. The first state is\nthe entry state and the last node is the success state.\n\nNote that unlike typical NFAs, the edge ordering in this one is\nsignificant, in that it is used to contruct filler content when\nnecessary.\n*/\nfunction nfa(expr) {\n let nfa = [[]];\n connect(compile(expr, 0), node());\n return nfa;\n function node() { return nfa.push([]) - 1; }\n function edge(from, to, term) {\n let edge = { term, to };\n nfa[from].push(edge);\n return edge;\n }\n function connect(edges, to) {\n edges.forEach(edge => edge.to = to);\n }\n function compile(expr, from) {\n if (expr.type == \"choice\") {\n return expr.exprs.reduce((out, expr) => out.concat(compile(expr, from)), []);\n }\n else if (expr.type == \"seq\") {\n for (let i = 0;; i++) {\n let next = compile(expr.exprs[i], from);\n if (i == expr.exprs.length - 1)\n return next;\n connect(next, from = node());\n }\n }\n else if (expr.type == \"star\") {\n let loop = node();\n edge(from, loop);\n connect(compile(expr.expr, loop), loop);\n return [edge(loop)];\n }\n else if (expr.type == \"plus\") {\n let loop = node();\n connect(compile(expr.expr, from), loop);\n connect(compile(expr.expr, loop), loop);\n return [edge(loop)];\n }\n else if (expr.type == \"opt\") {\n return [edge(from)].concat(compile(expr.expr, from));\n }\n else if (expr.type == \"range\") {\n let cur = from;\n for (let i = 0; i < expr.min; i++) {\n let next = node();\n connect(compile(expr.expr, cur), next);\n cur = next;\n }\n if (expr.max == -1) {\n connect(compile(expr.expr, cur), cur);\n }\n else {\n for (let i = expr.min; i < expr.max; i++) {\n let next = node();\n edge(cur, next);\n connect(compile(expr.expr, cur), next);\n cur = next;\n }\n }\n return [edge(cur)];\n }\n else if (expr.type == \"name\") {\n return [edge(from, undefined, expr.value)];\n }\n else {\n throw new Error(\"Unknown expr type\");\n }\n }\n}\nfunction cmp(a, b) { return b - a; }\n// Get the set of nodes reachable by null edges from `node`. Omit\n// nodes with only a single null-out-edge, since they may lead to\n// needless duplicated nodes.\nfunction nullFrom(nfa, node) {\n let result = [];\n scan(node);\n return result.sort(cmp);\n function scan(node) {\n let edges = nfa[node];\n if (edges.length == 1 && !edges[0].term)\n return scan(edges[0].to);\n result.push(node);\n for (let i = 0; i < edges.length; i++) {\n let { term, to } = edges[i];\n if (!term && result.indexOf(to) == -1)\n scan(to);\n }\n }\n}\n// Compiles an NFA as produced by `nfa` into a DFA, modeled as a set\n// of state objects (`ContentMatch` instances) with transitions\n// between them.\nfunction dfa(nfa) {\n let labeled = Object.create(null);\n return explore(nullFrom(nfa, 0));\n function explore(states) {\n let out = [];\n states.forEach(node => {\n nfa[node].forEach(({ term, to }) => {\n if (!term)\n return;\n let set;\n for (let i = 0; i < out.length; i++)\n if (out[i][0] == term)\n set = out[i][1];\n nullFrom(nfa, to).forEach(node => {\n if (!set)\n out.push([term, set = []]);\n if (set.indexOf(node) == -1)\n set.push(node);\n });\n });\n });\n let state = labeled[states.join(\",\")] = new ContentMatch(states.indexOf(nfa.length - 1) > -1);\n for (let i = 0; i < out.length; i++) {\n let states = out[i][1].sort(cmp);\n state.next.push({ type: out[i][0], next: labeled[states.join(\",\")] || explore(states) });\n }\n return state;\n }\n}\nfunction checkForDeadEnds(match, stream) {\n for (let i = 0, work = [match]; i < work.length; i++) {\n let state = work[i], dead = !state.validEnd, nodes = [];\n for (let j = 0; j < state.next.length; j++) {\n let { type, next } = state.next[j];\n nodes.push(type.name);\n if (dead && !(type.isText || type.hasRequiredAttrs()))\n dead = false;\n if (work.indexOf(next) == -1)\n work.push(next);\n }\n if (dead)\n stream.err(\"Only non-generatable nodes (\" + nodes.join(\", \") + \") in a required position (see https://prosemirror.net/docs/guide/#generatable)\");\n }\n}\n\n// For node types where all attrs have a default value (or which don't\n// have any attributes), build up a single reusable default attribute\n// object, and use it for all nodes that don't specify specific\n// attributes.\nfunction defaultAttrs(attrs) {\n let defaults = Object.create(null);\n for (let attrName in attrs) {\n let attr = attrs[attrName];\n if (!attr.hasDefault)\n return null;\n defaults[attrName] = attr.default;\n }\n return defaults;\n}\nfunction computeAttrs(attrs, value) {\n let built = Object.create(null);\n for (let name in attrs) {\n let given = value && value[name];\n if (given === undefined) {\n let attr = attrs[name];\n if (attr.hasDefault)\n given = attr.default;\n else\n throw new RangeError(\"No value supplied for attribute \" + name);\n }\n built[name] = given;\n }\n return built;\n}\nfunction checkAttrs(attrs, values, type, name) {\n for (let name in values)\n if (!(name in attrs))\n throw new RangeError(`Unsupported attribute ${name} for ${type} of type ${name}`);\n for (let name in attrs) {\n let attr = attrs[name];\n if (attr.validate)\n attr.validate(values[name]);\n }\n}\nfunction initAttrs(typeName, attrs) {\n let result = Object.create(null);\n if (attrs)\n for (let name in attrs)\n result[name] = new Attribute(typeName, name, attrs[name]);\n return result;\n}\n/**\nNode types are objects allocated once per `Schema` and used to\n[tag](https://prosemirror.net/docs/ref/#model.Node.type) `Node` instances. They contain information\nabout the node type, such as its name and what kind of node it\nrepresents.\n*/\nclass NodeType {\n /**\n @internal\n */\n constructor(\n /**\n The name the node type has in this schema.\n */\n name, \n /**\n A link back to the `Schema` the node type belongs to.\n */\n schema, \n /**\n The spec that this type is based on\n */\n spec) {\n this.name = name;\n this.schema = schema;\n this.spec = spec;\n /**\n The set of marks allowed in this node. `null` means all marks\n are allowed.\n */\n this.markSet = null;\n this.groups = spec.group ? spec.group.split(\" \") : [];\n this.attrs = initAttrs(name, spec.attrs);\n this.defaultAttrs = defaultAttrs(this.attrs);\n this.contentMatch = null;\n this.inlineContent = null;\n this.isBlock = !(spec.inline || name == \"text\");\n this.isText = name == \"text\";\n }\n /**\n True if this is an inline type.\n */\n get isInline() { return !this.isBlock; }\n /**\n True if this is a textblock type, a block that contains inline\n content.\n */\n get isTextblock() { return this.isBlock && this.inlineContent; }\n /**\n True for node types that allow no content.\n */\n get isLeaf() { return this.contentMatch == ContentMatch.empty; }\n /**\n True when this node is an atom, i.e. when it does not have\n directly editable content.\n */\n get isAtom() { return this.isLeaf || !!this.spec.atom; }\n /**\n Return true when this node type is part of the given\n [group](https://prosemirror.net/docs/ref/#model.NodeSpec.group).\n */\n isInGroup(group) {\n return this.groups.indexOf(group) > -1;\n }\n /**\n The node type's [whitespace](https://prosemirror.net/docs/ref/#model.NodeSpec.whitespace) option.\n */\n get whitespace() {\n return this.spec.whitespace || (this.spec.code ? \"pre\" : \"normal\");\n }\n /**\n Tells you whether this node type has any required attributes.\n */\n hasRequiredAttrs() {\n for (let n in this.attrs)\n if (this.attrs[n].isRequired)\n return true;\n return false;\n }\n /**\n Indicates whether this node allows some of the same content as\n the given node type.\n */\n compatibleContent(other) {\n return this == other || this.contentMatch.compatible(other.contentMatch);\n }\n /**\n @internal\n */\n computeAttrs(attrs) {\n if (!attrs && this.defaultAttrs)\n return this.defaultAttrs;\n else\n return computeAttrs(this.attrs, attrs);\n }\n /**\n Create a `Node` of this type. The given attributes are\n checked and defaulted (you can pass `null` to use the type's\n defaults entirely, if no required attributes exist). `content`\n may be a `Fragment`, a node, an array of nodes, or\n `null`. Similarly `marks` may be `null` to default to the empty\n set of marks.\n */\n create(attrs = null, content, marks) {\n if (this.isText)\n throw new Error(\"NodeType.create can't construct text nodes\");\n return new Node(this, this.computeAttrs(attrs), Fragment.from(content), Mark.setFrom(marks));\n }\n /**\n Like [`create`](https://prosemirror.net/docs/ref/#model.NodeType.create), but check the given content\n against the node type's content restrictions, and throw an error\n if it doesn't match.\n */\n createChecked(attrs = null, content, marks) {\n content = Fragment.from(content);\n this.checkContent(content);\n return new Node(this, this.computeAttrs(attrs), content, Mark.setFrom(marks));\n }\n /**\n Like [`create`](https://prosemirror.net/docs/ref/#model.NodeType.create), but see if it is\n necessary to add nodes to the start or end of the given fragment\n to make it fit the node. If no fitting wrapping can be found,\n return null. Note that, due to the fact that required nodes can\n always be created, this will always succeed if you pass null or\n `Fragment.empty` as content.\n */\n createAndFill(attrs = null, content, marks) {\n attrs = this.computeAttrs(attrs);\n content = Fragment.from(content);\n if (content.size) {\n let before = this.contentMatch.fillBefore(content);\n if (!before)\n return null;\n content = before.append(content);\n }\n let matched = this.contentMatch.matchFragment(content);\n let after = matched && matched.fillBefore(Fragment.empty, true);\n if (!after)\n return null;\n return new Node(this, attrs, content.append(after), Mark.setFrom(marks));\n }\n /**\n Returns true if the given fragment is valid content for this node\n type.\n */\n validContent(content) {\n let result = this.contentMatch.matchFragment(content);\n if (!result || !result.validEnd)\n return false;\n for (let i = 0; i < content.childCount; i++)\n if (!this.allowsMarks(content.child(i).marks))\n return false;\n return true;\n }\n /**\n Throws a RangeError if the given fragment is not valid content for this\n node type.\n @internal\n */\n checkContent(content) {\n if (!this.validContent(content))\n throw new RangeError(`Invalid content for node ${this.name}: ${content.toString().slice(0, 50)}`);\n }\n /**\n @internal\n */\n checkAttrs(attrs) {\n checkAttrs(this.attrs, attrs, \"node\", this.name);\n }\n /**\n Check whether the given mark type is allowed in this node.\n */\n allowsMarkType(markType) {\n return this.markSet == null || this.markSet.indexOf(markType) > -1;\n }\n /**\n Test whether the given set of marks are allowed in this node.\n */\n allowsMarks(marks) {\n if (this.markSet == null)\n return true;\n for (let i = 0; i < marks.length; i++)\n if (!this.allowsMarkType(marks[i].type))\n return false;\n return true;\n }\n /**\n Removes the marks that are not allowed in this node from the given set.\n */\n allowedMarks(marks) {\n if (this.markSet == null)\n return marks;\n let copy;\n for (let i = 0; i < marks.length; i++) {\n if (!this.allowsMarkType(marks[i].type)) {\n if (!copy)\n copy = marks.slice(0, i);\n }\n else if (copy) {\n copy.push(marks[i]);\n }\n }\n return !copy ? marks : copy.length ? copy : Mark.none;\n }\n /**\n @internal\n */\n static compile(nodes, schema) {\n let result = Object.create(null);\n nodes.forEach((name, spec) => result[name] = new NodeType(name, schema, spec));\n let topType = schema.spec.topNode || \"doc\";\n if (!result[topType])\n throw new RangeError(\"Schema is missing its top node type ('\" + topType + \"')\");\n if (!result.text)\n throw new RangeError(\"Every schema needs a 'text' type\");\n for (let _ in result.text.attrs)\n throw new RangeError(\"The text node type should not have attributes\");\n return result;\n }\n}\nfunction validateType(typeName, attrName, type) {\n let types = type.split(\"|\");\n return (value) => {\n let name = value === null ? \"null\" : typeof value;\n if (types.indexOf(name) < 0)\n throw new RangeError(`Expected value of type ${types} for attribute ${attrName} on type ${typeName}, got ${name}`);\n };\n}\n// Attribute descriptors\nclass Attribute {\n constructor(typeName, attrName, options) {\n this.hasDefault = Object.prototype.hasOwnProperty.call(options, \"default\");\n this.default = options.default;\n this.validate = typeof options.validate == \"string\" ? validateType(typeName, attrName, options.validate) : options.validate;\n }\n get isRequired() {\n return !this.hasDefault;\n }\n}\n// Marks\n/**\nLike nodes, marks (which are associated with nodes to signify\nthings like emphasis or being part of a link) are\n[tagged](https://prosemirror.net/docs/ref/#model.Mark.type) with type objects, which are\ninstantiated once per `Schema`.\n*/\nclass MarkType {\n /**\n @internal\n */\n constructor(\n /**\n The name of the mark type.\n */\n name, \n /**\n @internal\n */\n rank, \n /**\n The schema that this mark type instance is part of.\n */\n schema, \n /**\n The spec on which the type is based.\n */\n spec) {\n this.name = name;\n this.rank = rank;\n this.schema = schema;\n this.spec = spec;\n this.attrs = initAttrs(name, spec.attrs);\n this.excluded = null;\n let defaults = defaultAttrs(this.attrs);\n this.instance = defaults ? new Mark(this, defaults) : null;\n }\n /**\n Create a mark of this type. `attrs` may be `null` or an object\n containing only some of the mark's attributes. The others, if\n they have defaults, will be added.\n */\n create(attrs = null) {\n if (!attrs && this.instance)\n return this.instance;\n return new Mark(this, computeAttrs(this.attrs, attrs));\n }\n /**\n @internal\n */\n static compile(marks, schema) {\n let result = Object.create(null), rank = 0;\n marks.forEach((name, spec) => result[name] = new MarkType(name, rank++, schema, spec));\n return result;\n }\n /**\n When there is a mark of this type in the given set, a new set\n without it is returned. Otherwise, the input set is returned.\n */\n removeFromSet(set) {\n for (var i = 0; i < set.length; i++)\n if (set[i].type == this) {\n set = set.slice(0, i).concat(set.slice(i + 1));\n i--;\n }\n return set;\n }\n /**\n Tests whether there is a mark of this type in the given set.\n */\n isInSet(set) {\n for (let i = 0; i < set.length; i++)\n if (set[i].type == this)\n return set[i];\n }\n /**\n @internal\n */\n checkAttrs(attrs) {\n checkAttrs(this.attrs, attrs, \"mark\", this.name);\n }\n /**\n Queries whether a given mark type is\n [excluded](https://prosemirror.net/docs/ref/#model.MarkSpec.excludes) by this one.\n */\n excludes(other) {\n return this.excluded.indexOf(other) > -1;\n }\n}\n/**\nA document schema. Holds [node](https://prosemirror.net/docs/ref/#model.NodeType) and [mark\ntype](https://prosemirror.net/docs/ref/#model.MarkType) objects for the nodes and marks that may\noccur in conforming documents, and provides functionality for\ncreating and deserializing such documents.\n\nWhen given, the type parameters provide the names of the nodes and\nmarks in this schema.\n*/\nclass Schema {\n /**\n Construct a schema from a schema [specification](https://prosemirror.net/docs/ref/#model.SchemaSpec).\n */\n constructor(spec) {\n /**\n The [linebreak\n replacement](https://prosemirror.net/docs/ref/#model.NodeSpec.linebreakReplacement) node defined\n in this schema, if any.\n */\n this.linebreakReplacement = null;\n /**\n An object for storing whatever values modules may want to\n compute and cache per schema. (If you want to store something\n in it, try to use property names unlikely to clash.)\n */\n this.cached = Object.create(null);\n let instanceSpec = this.spec = {};\n for (let prop in spec)\n instanceSpec[prop] = spec[prop];\n instanceSpec.nodes = OrderedMap.from(spec.nodes),\n instanceSpec.marks = OrderedMap.from(spec.marks || {}),\n this.nodes = NodeType.compile(this.spec.nodes, this);\n this.marks = MarkType.compile(this.spec.marks, this);\n let contentExprCache = Object.create(null);\n for (let prop in this.nodes) {\n if (prop in this.marks)\n throw new RangeError(prop + \" can not be both a node and a mark\");\n let type = this.nodes[prop], contentExpr = type.spec.content || \"\", markExpr = type.spec.marks;\n type.contentMatch = contentExprCache[contentExpr] ||\n (contentExprCache[contentExpr] = ContentMatch.parse(contentExpr, this.nodes));\n type.inlineContent = type.contentMatch.inlineContent;\n if (type.spec.linebreakReplacement) {\n if (this.linebreakReplacement)\n throw new RangeError(\"Multiple linebreak nodes defined\");\n if (!type.isInline || !type.isLeaf)\n throw new RangeError(\"Linebreak replacement nodes must be inline leaf nodes\");\n this.linebreakReplacement = type;\n }\n type.markSet = markExpr == \"_\" ? null :\n markExpr ? gatherMarks(this, markExpr.split(\" \")) :\n markExpr == \"\" || !type.inlineContent ? [] : null;\n }\n for (let prop in this.marks) {\n let type = this.marks[prop], excl = type.spec.excludes;\n type.excluded = excl == null ? [type] : excl == \"\" ? [] : gatherMarks(this, excl.split(\" \"));\n }\n this.nodeFromJSON = this.nodeFromJSON.bind(this);\n this.markFromJSON = this.markFromJSON.bind(this);\n this.topNodeType = this.nodes[this.spec.topNode || \"doc\"];\n this.cached.wrappings = Object.create(null);\n }\n /**\n Create a node in this schema. The `type` may be a string or a\n `NodeType` instance. Attributes will be extended with defaults,\n `content` may be a `Fragment`, `null`, a `Node`, or an array of\n nodes.\n */\n node(type, attrs = null, content, marks) {\n if (typeof type == \"string\")\n type = this.nodeType(type);\n else if (!(type instanceof NodeType))\n throw new RangeError(\"Invalid node type: \" + type);\n else if (type.schema != this)\n throw new RangeError(\"Node type from different schema used (\" + type.name + \")\");\n return type.createChecked(attrs, content, marks);\n }\n /**\n Create a text node in the schema. Empty text nodes are not\n allowed.\n */\n text(text, marks) {\n let type = this.nodes.text;\n return new TextNode(type, type.defaultAttrs, text, Mark.setFrom(marks));\n }\n /**\n Create a mark with the given type and attributes.\n */\n mark(type, attrs) {\n if (typeof type == \"string\")\n type = this.marks[type];\n return type.create(attrs);\n }\n /**\n Deserialize a node from its JSON representation. This method is\n bound.\n */\n nodeFromJSON(json) {\n return Node.fromJSON(this, json);\n }\n /**\n Deserialize a mark from its JSON representation. This method is\n bound.\n */\n markFromJSON(json) {\n return Mark.fromJSON(this, json);\n }\n /**\n @internal\n */\n nodeType(name) {\n let found = this.nodes[name];\n if (!found)\n throw new RangeError(\"Unknown node type: \" + name);\n return found;\n }\n}\nfunction gatherMarks(schema, marks) {\n let found = [];\n for (let i = 0; i < marks.length; i++) {\n let name = marks[i], mark = schema.marks[name], ok = mark;\n if (mark) {\n found.push(mark);\n }\n else {\n for (let prop in schema.marks) {\n let mark = schema.marks[prop];\n if (name == \"_\" || (mark.spec.group && mark.spec.group.split(\" \").indexOf(name) > -1))\n found.push(ok = mark);\n }\n }\n if (!ok)\n throw new SyntaxError(\"Unknown mark type: '\" + marks[i] + \"'\");\n }\n return found;\n}\n\nfunction isTagRule(rule) { return rule.tag != null; }\nfunction isStyleRule(rule) { return rule.style != null; }\n/**\nA DOM parser represents a strategy for parsing DOM content into a\nProseMirror document conforming to a given schema. Its behavior is\ndefined by an array of [rules](https://prosemirror.net/docs/ref/#model.ParseRule).\n*/\nclass DOMParser {\n /**\n Create a parser that targets the given schema, using the given\n parsing rules.\n */\n constructor(\n /**\n The schema into which the parser parses.\n */\n schema, \n /**\n The set of [parse rules](https://prosemirror.net/docs/ref/#model.ParseRule) that the parser\n uses, in order of precedence.\n */\n rules) {\n this.schema = schema;\n this.rules = rules;\n /**\n @internal\n */\n this.tags = [];\n /**\n @internal\n */\n this.styles = [];\n let matchedStyles = this.matchedStyles = [];\n rules.forEach(rule => {\n if (isTagRule(rule)) {\n this.tags.push(rule);\n }\n else if (isStyleRule(rule)) {\n let prop = /[^=]*/.exec(rule.style)[0];\n if (matchedStyles.indexOf(prop) < 0)\n matchedStyles.push(prop);\n this.styles.push(rule);\n }\n });\n // Only normalize list elements when lists in the schema can't directly contain themselves\n this.normalizeLists = !this.tags.some(r => {\n if (!/^(ul|ol)\\b/.test(r.tag) || !r.node)\n return false;\n let node = schema.nodes[r.node];\n return node.contentMatch.matchType(node);\n });\n }\n /**\n Parse a document from the content of a DOM node.\n */\n parse(dom, options = {}) {\n let context = new ParseContext(this, options, false);\n context.addAll(dom, Mark.none, options.from, options.to);\n return context.finish();\n }\n /**\n Parses the content of the given DOM node, like\n [`parse`](https://prosemirror.net/docs/ref/#model.DOMParser.parse), and takes the same set of\n options. But unlike that method, which produces a whole node,\n this one returns a slice that is open at the sides, meaning that\n the schema constraints aren't applied to the start of nodes to\n the left of the input and the end of nodes at the end.\n */\n parseSlice(dom, options = {}) {\n let context = new ParseContext(this, options, true);\n context.addAll(dom, Mark.none, options.from, options.to);\n return Slice.maxOpen(context.finish());\n }\n /**\n @internal\n */\n matchTag(dom, context, after) {\n for (let i = after ? this.tags.indexOf(after) + 1 : 0; i < this.tags.length; i++) {\n let rule = this.tags[i];\n if (matches(dom, rule.tag) &&\n (rule.namespace === undefined || dom.namespaceURI == rule.namespace) &&\n (!rule.context || context.matchesContext(rule.context))) {\n if (rule.getAttrs) {\n let result = rule.getAttrs(dom);\n if (result === false)\n continue;\n rule.attrs = result || undefined;\n }\n return rule;\n }\n }\n }\n /**\n @internal\n */\n matchStyle(prop, value, context, after) {\n for (let i = after ? this.styles.indexOf(after) + 1 : 0; i < this.styles.length; i++) {\n let rule = this.styles[i], style = rule.style;\n if (style.indexOf(prop) != 0 ||\n rule.context && !context.matchesContext(rule.context) ||\n // Test that the style string either precisely matches the prop,\n // or has an '=' sign after the prop, followed by the given\n // value.\n style.length > prop.length &&\n (style.charCodeAt(prop.length) != 61 || style.slice(prop.length + 1) != value))\n continue;\n if (rule.getAttrs) {\n let result = rule.getAttrs(value);\n if (result === false)\n continue;\n rule.attrs = result || undefined;\n }\n return rule;\n }\n }\n /**\n @internal\n */\n static schemaRules(schema) {\n let result = [];\n function insert(rule) {\n let priority = rule.priority == null ? 50 : rule.priority, i = 0;\n for (; i < result.length; i++) {\n let next = result[i], nextPriority = next.priority == null ? 50 : next.priority;\n if (nextPriority < priority)\n break;\n }\n result.splice(i, 0, rule);\n }\n for (let name in schema.marks) {\n let rules = schema.marks[name].spec.parseDOM;\n if (rules)\n rules.forEach(rule => {\n insert(rule = copy(rule));\n if (!(rule.mark || rule.ignore || rule.clearMark))\n rule.mark = name;\n });\n }\n for (let name in schema.nodes) {\n let rules = schema.nodes[name].spec.parseDOM;\n if (rules)\n rules.forEach(rule => {\n insert(rule = copy(rule));\n if (!(rule.node || rule.ignore || rule.mark))\n rule.node = name;\n });\n }\n return result;\n }\n /**\n Construct a DOM parser using the parsing rules listed in a\n schema's [node specs](https://prosemirror.net/docs/ref/#model.NodeSpec.parseDOM), reordered by\n [priority](https://prosemirror.net/docs/ref/#model.ParseRule.priority).\n */\n static fromSchema(schema) {\n return schema.cached.domParser ||\n (schema.cached.domParser = new DOMParser(schema, DOMParser.schemaRules(schema)));\n }\n}\nconst blockTags = {\n address: true, article: true, aside: true, blockquote: true, canvas: true,\n dd: true, div: true, dl: true, fieldset: true, figcaption: true, figure: true,\n footer: true, form: true, h1: true, h2: true, h3: true, h4: true, h5: true,\n h6: true, header: true, hgroup: true, hr: true, li: true, noscript: true, ol: true,\n output: true, p: true, pre: true, section: true, table: true, tfoot: true, ul: true\n};\nconst ignoreTags = {\n head: true, noscript: true, object: true, script: true, style: true, title: true\n};\nconst listTags = { ol: true, ul: true };\n// Using a bitfield for node context options\nconst OPT_PRESERVE_WS = 1, OPT_PRESERVE_WS_FULL = 2, OPT_OPEN_LEFT = 4;\nfunction wsOptionsFor(type, preserveWhitespace, base) {\n if (preserveWhitespace != null)\n return (preserveWhitespace ? OPT_PRESERVE_WS : 0) |\n (preserveWhitespace === \"full\" ? OPT_PRESERVE_WS_FULL : 0);\n return type && type.whitespace == \"pre\" ? OPT_PRESERVE_WS | OPT_PRESERVE_WS_FULL : base & ~OPT_OPEN_LEFT;\n}\nclass NodeContext {\n constructor(type, attrs, marks, solid, match, options) {\n this.type = type;\n this.attrs = attrs;\n this.marks = marks;\n this.solid = solid;\n this.options = options;\n this.content = [];\n // Marks applied to the node's children\n this.activeMarks = Mark.none;\n this.match = match || (options & OPT_OPEN_LEFT ? null : type.contentMatch);\n }\n findWrapping(node) {\n if (!this.match) {\n if (!this.type)\n return [];\n let fill = this.type.contentMatch.fillBefore(Fragment.from(node));\n if (fill) {\n this.match = this.type.contentMatch.matchFragment(fill);\n }\n else {\n let start = this.type.contentMatch, wrap;\n if (wrap = start.findWrapping(node.type)) {\n this.match = start;\n return wrap;\n }\n else {\n return null;\n }\n }\n }\n return this.match.findWrapping(node.type);\n }\n finish(openEnd) {\n if (!(this.options & OPT_PRESERVE_WS)) { // Strip trailing whitespace\n let last = this.content[this.content.length - 1], m;\n if (last && last.isText && (m = /[ \\t\\r\\n\\u000c]+$/.exec(last.text))) {\n let text = last;\n if (last.text.length == m[0].length)\n this.content.pop();\n else\n this.content[this.content.length - 1] = text.withText(text.text.slice(0, text.text.length - m[0].length));\n }\n }\n let content = Fragment.from(this.content);\n if (!openEnd && this.match)\n content = content.append(this.match.fillBefore(Fragment.empty, true));\n return this.type ? this.type.create(this.attrs, content, this.marks) : content;\n }\n inlineContext(node) {\n if (this.type)\n return this.type.inlineContent;\n if (this.content.length)\n return this.content[0].isInline;\n return node.parentNode && !blockTags.hasOwnProperty(node.parentNode.nodeName.toLowerCase());\n }\n}\nclass ParseContext {\n constructor(\n // The parser we are using.\n parser, \n // The options passed to this parse.\n options, isOpen) {\n this.parser = parser;\n this.options = options;\n this.isOpen = isOpen;\n this.open = 0;\n let topNode = options.topNode, topContext;\n let topOptions = wsOptionsFor(null, options.preserveWhitespace, 0) | (isOpen ? OPT_OPEN_LEFT : 0);\n if (topNode)\n topContext = new NodeContext(topNode.type, topNode.attrs, Mark.none, true, options.topMatch || topNode.type.contentMatch, topOptions);\n else if (isOpen)\n topContext = new NodeContext(null, null, Mark.none, true, null, topOptions);\n else\n topContext = new NodeContext(parser.schema.topNodeType, null, Mark.none, true, null, topOptions);\n this.nodes = [topContext];\n this.find = options.findPositions;\n this.needsBlock = false;\n }\n get top() {\n return this.nodes[this.open];\n }\n // Add a DOM node to the content. Text is inserted as text node,\n // otherwise, the node is passed to `addElement` or, if it has a\n // `style` attribute, `addElementWithStyles`.\n addDOM(dom, marks) {\n if (dom.nodeType == 3)\n this.addTextNode(dom, marks);\n else if (dom.nodeType == 1)\n this.addElement(dom, marks);\n }\n addTextNode(dom, marks) {\n let value = dom.nodeValue;\n let top = this.top;\n if (top.options & OPT_PRESERVE_WS_FULL ||\n top.inlineContext(dom) ||\n /[^ \\t\\r\\n\\u000c]/.test(value)) {\n if (!(top.options & OPT_PRESERVE_WS)) {\n value = value.replace(/[ \\t\\r\\n\\u000c]+/g, \" \");\n // If this starts with whitespace, and there is no node before it, or\n // a hard break, or a text node that ends with whitespace, strip the\n // leading space.\n if (/^[ \\t\\r\\n\\u000c]/.test(value) && this.open == this.nodes.length - 1) {\n let nodeBefore = top.content[top.content.length - 1];\n let domNodeBefore = dom.previousSibling;\n if (!nodeBefore ||\n (domNodeBefore && domNodeBefore.nodeName == 'BR') ||\n (nodeBefore.isText && /[ \\t\\r\\n\\u000c]$/.test(nodeBefore.text)))\n value = value.slice(1);\n }\n }\n else if (!(top.options & OPT_PRESERVE_WS_FULL)) {\n value = value.replace(/\\r?\\n|\\r/g, \" \");\n }\n else {\n value = value.replace(/\\r\\n?/g, \"\\n\");\n }\n if (value)\n this.insertNode(this.parser.schema.text(value), marks);\n this.findInText(dom);\n }\n else {\n this.findInside(dom);\n }\n }\n // Try to find a handler for the given tag and use that to parse. If\n // none is found, the element's content nodes are added directly.\n addElement(dom, marks, matchAfter) {\n let name = dom.nodeName.toLowerCase(), ruleID;\n if (listTags.hasOwnProperty(name) && this.parser.normalizeLists)\n normalizeList(dom);\n let rule = (this.options.ruleFromNode && this.options.ruleFromNode(dom)) ||\n (ruleID = this.parser.matchTag(dom, this, matchAfter));\n if (rule ? rule.ignore : ignoreTags.hasOwnProperty(name)) {\n this.findInside(dom);\n this.ignoreFallback(dom, marks);\n }\n else if (!rule || rule.skip || rule.closeParent) {\n if (rule && rule.closeParent)\n this.open = Math.max(0, this.open - 1);\n else if (rule && rule.skip.nodeType)\n dom = rule.skip;\n let sync, top = this.top, oldNeedsBlock = this.needsBlock;\n if (blockTags.hasOwnProperty(name)) {\n if (top.content.length && top.content[0].isInline && this.open) {\n this.open--;\n top = this.top;\n }\n sync = true;\n if (!top.type)\n this.needsBlock = true;\n }\n else if (!dom.firstChild) {\n this.leafFallback(dom, marks);\n return;\n }\n let innerMarks = rule && rule.skip ? marks : this.readStyles(dom, marks);\n if (innerMarks)\n this.addAll(dom, innerMarks);\n if (sync)\n this.sync(top);\n this.needsBlock = oldNeedsBlock;\n }\n else {\n let innerMarks = this.readStyles(dom, marks);\n if (innerMarks)\n this.addElementByRule(dom, rule, innerMarks, rule.consuming === false ? ruleID : undefined);\n }\n }\n // Called for leaf DOM nodes that would otherwise be ignored\n leafFallback(dom, marks) {\n if (dom.nodeName == \"BR\" && this.top.type && this.top.type.inlineContent)\n this.addTextNode(dom.ownerDocument.createTextNode(\"\\n\"), marks);\n }\n // Called for ignored nodes\n ignoreFallback(dom, marks) {\n // Ignored BR nodes should at least create an inline context\n if (dom.nodeName == \"BR\" && (!this.top.type || !this.top.type.inlineContent))\n this.findPlace(this.parser.schema.text(\"-\"), marks);\n }\n // Run any style parser associated with the node's styles. Either\n // return an updated array of marks, or null to indicate some of the\n // styles had a rule with `ignore` set.\n readStyles(dom, marks) {\n let styles = dom.style;\n // Because many properties will only show up in 'normalized' form\n // in `style.item` (i.e. text-decoration becomes\n // text-decoration-line, text-decoration-color, etc), we directly\n // query the styles mentioned in our rules instead of iterating\n // over the items.\n if (styles && styles.length)\n for (let i = 0; i < this.parser.matchedStyles.length; i++) {\n let name = this.parser.matchedStyles[i], value = styles.getPropertyValue(name);\n if (value)\n for (let after = undefined;;) {\n let rule = this.parser.matchStyle(name, value, this, after);\n if (!rule)\n break;\n if (rule.ignore)\n return null;\n if (rule.clearMark)\n marks = marks.filter(m => !rule.clearMark(m));\n else\n marks = marks.concat(this.parser.schema.marks[rule.mark].create(rule.attrs));\n if (rule.consuming === false)\n after = rule;\n else\n break;\n }\n }\n return marks;\n }\n // Look up a handler for the given node. If none are found, return\n // false. Otherwise, apply it, use its return value to drive the way\n // the node's content is wrapped, and return true.\n addElementByRule(dom, rule, marks, continueAfter) {\n let sync, nodeType;\n if (rule.node) {\n nodeType = this.parser.schema.nodes[rule.node];\n if (!nodeType.isLeaf) {\n let inner = this.enter(nodeType, rule.attrs || null, marks, rule.preserveWhitespace);\n if (inner) {\n sync = true;\n marks = inner;\n }\n }\n else if (!this.insertNode(nodeType.create(rule.attrs), marks)) {\n this.leafFallback(dom, marks);\n }\n }\n else {\n let markType = this.parser.schema.marks[rule.mark];\n marks = marks.concat(markType.create(rule.attrs));\n }\n let startIn = this.top;\n if (nodeType && nodeType.isLeaf) {\n this.findInside(dom);\n }\n else if (continueAfter) {\n this.addElement(dom, marks, continueAfter);\n }\n else if (rule.getContent) {\n this.findInside(dom);\n rule.getContent(dom, this.parser.schema).forEach(node => this.insertNode(node, marks));\n }\n else {\n let contentDOM = dom;\n if (typeof rule.contentElement == \"string\")\n contentDOM = dom.querySelector(rule.contentElement);\n else if (typeof rule.contentElement == \"function\")\n contentDOM = rule.contentElement(dom);\n else if (rule.contentElement)\n contentDOM = rule.contentElement;\n this.findAround(dom, contentDOM, true);\n this.addAll(contentDOM, marks);\n this.findAround(dom, contentDOM, false);\n }\n if (sync && this.sync(startIn))\n this.open--;\n }\n // Add all child nodes between `startIndex` and `endIndex` (or the\n // whole node, if not given). If `sync` is passed, use it to\n // synchronize after every block element.\n addAll(parent, marks, startIndex, endIndex) {\n let index = startIndex || 0;\n for (let dom = startIndex ? parent.childNodes[startIndex] : parent.firstChild, end = endIndex == null ? null : parent.childNodes[endIndex]; dom != end; dom = dom.nextSibling, ++index) {\n this.findAtPoint(parent, index);\n this.addDOM(dom, marks);\n }\n this.findAtPoint(parent, index);\n }\n // Try to find a way to fit the given node type into the current\n // context. May add intermediate wrappers and/or leave non-solid\n // nodes that we're in.\n findPlace(node, marks) {\n let route, sync;\n for (let depth = this.open; depth >= 0; depth--) {\n let cx = this.nodes[depth];\n let found = cx.findWrapping(node);\n if (found && (!route || route.length > found.length)) {\n route = found;\n sync = cx;\n if (!found.length)\n break;\n }\n if (cx.solid)\n break;\n }\n if (!route)\n return null;\n this.sync(sync);\n for (let i = 0; i < route.length; i++)\n marks = this.enterInner(route[i], null, marks, false);\n return marks;\n }\n // Try to insert the given node, adjusting the context when needed.\n insertNode(node, marks) {\n if (node.isInline && this.needsBlock && !this.top.type) {\n let block = this.textblockFromContext();\n if (block)\n marks = this.enterInner(block, null, marks);\n }\n let innerMarks = this.findPlace(node, marks);\n if (innerMarks) {\n this.closeExtra();\n let top = this.top;\n if (top.match)\n top.match = top.match.matchType(node.type);\n let nodeMarks = Mark.none;\n for (let m of innerMarks.concat(node.marks))\n if (top.type ? top.type.allowsMarkType(m.type) : markMayApply(m.type, node.type))\n nodeMarks = m.addToSet(nodeMarks);\n top.content.push(node.mark(nodeMarks));\n return true;\n }\n return false;\n }\n // Try to start a node of the given type, adjusting the context when\n // necessary.\n enter(type, attrs, marks, preserveWS) {\n let innerMarks = this.findPlace(type.create(attrs), marks);\n if (innerMarks)\n innerMarks = this.enterInner(type, attrs, marks, true, preserveWS);\n return innerMarks;\n }\n // Open a node of the given type\n enterInner(type, attrs, marks, solid = false, preserveWS) {\n this.closeExtra();\n let top = this.top;\n top.match = top.match && top.match.matchType(type);\n let options = wsOptionsFor(type, preserveWS, top.options);\n if ((top.options & OPT_OPEN_LEFT) && top.content.length == 0)\n options |= OPT_OPEN_LEFT;\n let applyMarks = Mark.none;\n marks = marks.filter(m => {\n if (top.type ? top.type.allowsMarkType(m.type) : markMayApply(m.type, type)) {\n applyMarks = m.addToSet(applyMarks);\n return false;\n }\n return true;\n });\n this.nodes.push(new NodeContext(type, attrs, applyMarks, solid, null, options));\n this.open++;\n return marks;\n }\n // Make sure all nodes above this.open are finished and added to\n // their parents\n closeExtra(openEnd = false) {\n let i = this.nodes.length - 1;\n if (i > this.open) {\n for (; i > this.open; i--)\n this.nodes[i - 1].content.push(this.nodes[i].finish(openEnd));\n this.nodes.length = this.open + 1;\n }\n }\n finish() {\n this.open = 0;\n this.closeExtra(this.isOpen);\n return this.nodes[0].finish(this.isOpen || this.options.topOpen);\n }\n sync(to) {\n for (let i = this.open; i >= 0; i--)\n if (this.nodes[i] == to) {\n this.open = i;\n return true;\n }\n return false;\n }\n get currentPos() {\n this.closeExtra();\n let pos = 0;\n for (let i = this.open; i >= 0; i--) {\n let content = this.nodes[i].content;\n for (let j = content.length - 1; j >= 0; j--)\n pos += content[j].nodeSize;\n if (i)\n pos++;\n }\n return pos;\n }\n findAtPoint(parent, offset) {\n if (this.find)\n for (let i = 0; i < this.find.length; i++) {\n if (this.find[i].node == parent && this.find[i].offset == offset)\n this.find[i].pos = this.currentPos;\n }\n }\n findInside(parent) {\n if (this.find)\n for (let i = 0; i < this.find.length; i++) {\n if (this.find[i].pos == null && parent.nodeType == 1 && parent.contains(this.find[i].node))\n this.find[i].pos = this.currentPos;\n }\n }\n findAround(parent, content, before) {\n if (parent != content && this.find)\n for (let i = 0; i < this.find.length; i++) {\n if (this.find[i].pos == null && parent.nodeType == 1 && parent.contains(this.find[i].node)) {\n let pos = content.compareDocumentPosition(this.find[i].node);\n if (pos & (before ? 2 : 4))\n this.find[i].pos = this.currentPos;\n }\n }\n }\n findInText(textNode) {\n if (this.find)\n for (let i = 0; i < this.find.length; i++) {\n if (this.find[i].node == textNode)\n this.find[i].pos = this.currentPos - (textNode.nodeValue.length - this.find[i].offset);\n }\n }\n // Determines whether the given context string matches this context.\n matchesContext(context) {\n if (context.indexOf(\"|\") > -1)\n return context.split(/\\s*\\|\\s*/).some(this.matchesContext, this);\n let parts = context.split(\"/\");\n let option = this.options.context;\n let useRoot = !this.isOpen && (!option || option.parent.type == this.nodes[0].type);\n let minDepth = -(option ? option.depth + 1 : 0) + (useRoot ? 0 : 1);\n let match = (i, depth) => {\n for (; i >= 0; i--) {\n let part = parts[i];\n if (part == \"\") {\n if (i == parts.length - 1 || i == 0)\n continue;\n for (; depth >= minDepth; depth--)\n if (match(i - 1, depth))\n return true;\n return false;\n }\n else {\n let next = depth > 0 || (depth == 0 && useRoot) ? this.nodes[depth].type\n : option && depth >= minDepth ? option.node(depth - minDepth).type\n : null;\n if (!next || (next.name != part && !next.isInGroup(part)))\n return false;\n depth--;\n }\n }\n return true;\n };\n return match(parts.length - 1, this.open);\n }\n textblockFromContext() {\n let $context = this.options.context;\n if ($context)\n for (let d = $context.depth; d >= 0; d--) {\n let deflt = $context.node(d).contentMatchAt($context.indexAfter(d)).defaultType;\n if (deflt && deflt.isTextblock && deflt.defaultAttrs)\n return deflt;\n }\n for (let name in this.parser.schema.nodes) {\n let type = this.parser.schema.nodes[name];\n if (type.isTextblock && type.defaultAttrs)\n return type;\n }\n }\n}\n// Kludge to work around directly nested list nodes produced by some\n// tools and allowed by browsers to mean that the nested list is\n// actually part of the list item above it.\nfunction normalizeList(dom) {\n for (let child = dom.firstChild, prevItem = null; child; child = child.nextSibling) {\n let name = child.nodeType == 1 ? child.nodeName.toLowerCase() : null;\n if (name && listTags.hasOwnProperty(name) && prevItem) {\n prevItem.appendChild(child);\n child = prevItem;\n }\n else if (name == \"li\") {\n prevItem = child;\n }\n else if (name) {\n prevItem = null;\n }\n }\n}\n// Apply a CSS selector.\nfunction matches(dom, selector) {\n return (dom.matches || dom.msMatchesSelector || dom.webkitMatchesSelector || dom.mozMatchesSelector).call(dom, selector);\n}\nfunction copy(obj) {\n let copy = {};\n for (let prop in obj)\n copy[prop] = obj[prop];\n return copy;\n}\n// Used when finding a mark at the top level of a fragment parse.\n// Checks whether it would be reasonable to apply a given mark type to\n// a given node, by looking at the way the mark occurs in the schema.\nfunction markMayApply(markType, nodeType) {\n let nodes = nodeType.schema.nodes;\n for (let name in nodes) {\n let parent = nodes[name];\n if (!parent.allowsMarkType(markType))\n continue;\n let seen = [], scan = (match) => {\n seen.push(match);\n for (let i = 0; i < match.edgeCount; i++) {\n let { type, next } = match.edge(i);\n if (type == nodeType)\n return true;\n if (seen.indexOf(next) < 0 && scan(next))\n return true;\n }\n };\n if (scan(parent.contentMatch))\n return true;\n }\n}\n\n/**\nA DOM serializer knows how to convert ProseMirror nodes and\nmarks of various types to DOM nodes.\n*/\nclass DOMSerializer {\n /**\n Create a serializer. `nodes` should map node names to functions\n that take a node and return a description of the corresponding\n DOM. `marks` does the same for mark names, but also gets an\n argument that tells it whether the mark's content is block or\n inline content (for typical use, it'll always be inline). A mark\n serializer may be `null` to indicate that marks of that type\n should not be serialized.\n */\n constructor(\n /**\n The node serialization functions.\n */\n nodes, \n /**\n The mark serialization functions.\n */\n marks) {\n this.nodes = nodes;\n this.marks = marks;\n }\n /**\n Serialize the content of this fragment to a DOM fragment. When\n not in the browser, the `document` option, containing a DOM\n document, should be passed so that the serializer can create\n nodes.\n */\n serializeFragment(fragment, options = {}, target) {\n if (!target)\n target = doc(options).createDocumentFragment();\n let top = target, active = [];\n fragment.forEach(node => {\n if (active.length || node.marks.length) {\n let keep = 0, rendered = 0;\n while (keep < active.length && rendered < node.marks.length) {\n let next = node.marks[rendered];\n if (!this.marks[next.type.name]) {\n rendered++;\n continue;\n }\n if (!next.eq(active[keep][0]) || next.type.spec.spanning === false)\n break;\n keep++;\n rendered++;\n }\n while (keep < active.length)\n top = active.pop()[1];\n while (rendered < node.marks.length) {\n let add = node.marks[rendered++];\n let markDOM = this.serializeMark(add, node.isInline, options);\n if (markDOM) {\n active.push([add, top]);\n top.appendChild(markDOM.dom);\n top = markDOM.contentDOM || markDOM.dom;\n }\n }\n }\n top.appendChild(this.serializeNodeInner(node, options));\n });\n return target;\n }\n /**\n @internal\n */\n serializeNodeInner(node, options) {\n let { dom, contentDOM } = renderSpec(doc(options), this.nodes[node.type.name](node), null, node.attrs);\n if (contentDOM) {\n if (node.isLeaf)\n throw new RangeError(\"Content hole not allowed in a leaf node spec\");\n this.serializeFragment(node.content, options, contentDOM);\n }\n return dom;\n }\n /**\n Serialize this node to a DOM node. This can be useful when you\n need to serialize a part of a document, as opposed to the whole\n document. To serialize a whole document, use\n [`serializeFragment`](https://prosemirror.net/docs/ref/#model.DOMSerializer.serializeFragment) on\n its [content](https://prosemirror.net/docs/ref/#model.Node.content).\n */\n serializeNode(node, options = {}) {\n let dom = this.serializeNodeInner(node, options);\n for (let i = node.marks.length - 1; i >= 0; i--) {\n let wrap = this.serializeMark(node.marks[i], node.isInline, options);\n if (wrap) {\n (wrap.contentDOM || wrap.dom).appendChild(dom);\n dom = wrap.dom;\n }\n }\n return dom;\n }\n /**\n @internal\n */\n serializeMark(mark, inline, options = {}) {\n let toDOM = this.marks[mark.type.name];\n return toDOM && renderSpec(doc(options), toDOM(mark, inline), null, mark.attrs);\n }\n static renderSpec(doc, structure, xmlNS = null, blockArraysIn) {\n return renderSpec(doc, structure, xmlNS, blockArraysIn);\n }\n /**\n Build a serializer using the [`toDOM`](https://prosemirror.net/docs/ref/#model.NodeSpec.toDOM)\n properties in a schema's node and mark specs.\n */\n static fromSchema(schema) {\n return schema.cached.domSerializer ||\n (schema.cached.domSerializer = new DOMSerializer(this.nodesFromSchema(schema), this.marksFromSchema(schema)));\n }\n /**\n Gather the serializers in a schema's node specs into an object.\n This can be useful as a base to build a custom serializer from.\n */\n static nodesFromSchema(schema) {\n let result = gatherToDOM(schema.nodes);\n if (!result.text)\n result.text = node => node.text;\n return result;\n }\n /**\n Gather the serializers in a schema's mark specs into an object.\n */\n static marksFromSchema(schema) {\n return gatherToDOM(schema.marks);\n }\n}\nfunction gatherToDOM(obj) {\n let result = {};\n for (let name in obj) {\n let toDOM = obj[name].spec.toDOM;\n if (toDOM)\n result[name] = toDOM;\n }\n return result;\n}\nfunction doc(options) {\n return options.document || window.document;\n}\nconst suspiciousAttributeCache = new WeakMap();\nfunction suspiciousAttributes(attrs) {\n let value = suspiciousAttributeCache.get(attrs);\n if (value === undefined)\n suspiciousAttributeCache.set(attrs, value = suspiciousAttributesInner(attrs));\n return value;\n}\nfunction suspiciousAttributesInner(attrs) {\n let result = null;\n function scan(value) {\n if (value && typeof value == \"object\") {\n if (Array.isArray(value)) {\n if (typeof value[0] == \"string\") {\n if (!result)\n result = [];\n result.push(value);\n }\n else {\n for (let i = 0; i < value.length; i++)\n scan(value[i]);\n }\n }\n else {\n for (let prop in value)\n scan(value[prop]);\n }\n }\n }\n scan(attrs);\n return result;\n}\nfunction renderSpec(doc, structure, xmlNS, blockArraysIn) {\n if (typeof structure == \"string\")\n return { dom: doc.createTextNode(structure) };\n if (structure.nodeType != null)\n return { dom: structure };\n if (structure.dom && structure.dom.nodeType != null)\n return structure;\n let tagName = structure[0], suspicious;\n if (typeof tagName != \"string\")\n throw new RangeError(\"Invalid array passed to renderSpec\");\n if (blockArraysIn && (suspicious = suspiciousAttributes(blockArraysIn)) &&\n suspicious.indexOf(structure) > -1)\n throw new RangeError(\"Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.\");\n let space = tagName.indexOf(\" \");\n if (space > 0) {\n xmlNS = tagName.slice(0, space);\n tagName = tagName.slice(space + 1);\n }\n let contentDOM;\n let dom = (xmlNS ? doc.createElementNS(xmlNS, tagName) : doc.createElement(tagName));\n let attrs = structure[1], start = 1;\n if (attrs && typeof attrs == \"object\" && attrs.nodeType == null && !Array.isArray(attrs)) {\n start = 2;\n for (let name in attrs)\n if (attrs[name] != null) {\n let space = name.indexOf(\" \");\n if (space > 0)\n dom.setAttributeNS(name.slice(0, space), name.slice(space + 1), attrs[name]);\n else\n dom.setAttribute(name, attrs[name]);\n }\n }\n for (let i = start; i < structure.length; i++) {\n let child = structure[i];\n if (child === 0) {\n if (i < structure.length - 1 || i > start)\n throw new RangeError(\"Content hole must be the only child of its parent node\");\n return { dom, contentDOM: dom };\n }\n else {\n let { dom: inner, contentDOM: innerContent } = renderSpec(doc, child, xmlNS, blockArraysIn);\n dom.appendChild(inner);\n if (innerContent) {\n if (contentDOM)\n throw new RangeError(\"Multiple content holes\");\n contentDOM = innerContent;\n }\n }\n }\n return { dom, contentDOM };\n}\n\nexport { ContentMatch, DOMParser, DOMSerializer, Fragment, Mark, MarkType, Node, NodeRange, NodeType, ReplaceError, ResolvedPos, Schema, Slice };\n"],"names":["findDiffStart","a","b","pos","i","childCount","childA","child","childB","sameMarkup","isText","text","j","content","size","inner","nodeSize","findDiffEnd","posA","posB","iA","iB","same","minSize","Math","min","length","Fragment","constructor","this","nodesBetween","from","to","f","nodeStart","parent","end","start","max","descendants","textBetween","blockSeparator","leafText","first","node","nodeText","slice","isLeaf","type","spec","isBlock","isTextblock","append","other","last","lastChild","firstChild","withText","push","cut","result","cutByIndex","empty","replaceChild","index","current","copy","addToStart","concat","addToEnd","eq","found","RangeError","maybeChild","forEach","p","otherPos","findIndex","round","retIndex","curPos","toString","toStringInner","join","toJSON","map","n","fromJSON","schema","value","Array","isArray","nodeFromJSON","fromArray","array","joined","nodes","attrs","offset","compareDeep","Mark","addToSet","set","placed","excludes","rank","removeFromSet","isInSet","obj","name","_","json","marks","mark","create","checkAttrs","sameSet","setFrom","none","sort","ReplaceError","Error","Slice","openStart","openEnd","insertAt","fragment","insertInto","removeBetween","removeRange","maxOpen","openIsolating","isolating","indexTo","offsetTo","dist","insert","replace","$from","$to","depth","replaceOuter","$along","extra","resolveNoCache","prepareSliceForReplace","close","replaceThreeWay","parentOffset","replaceTwoWay","checkJoin","main","sub","compatibleContent","joinable","$before","$after","addNode","target","addRange","$start","$end","startIndex","endIndex","textOffset","nodeAfter","nodeBefore","checkContent","ResolvedPos","path","resolveDepth","val","doc","indexAfter","before","after","dOff","posAtIndex","tmp","inclusive","marksAcross","isInline","next","sharedDepth","blockRange","pred","d","inlineContent","NodeRange","sameParent","str","resolve","rem","resolveCached","cache","resolveCache","get","elts","elt","ResolveCache","resolveCacheSize","WeakMap","emptyAttrs","Object","Node","startPos","textContent","hasMarkup","defaultAttrs","includeParents","nodeAt","childAfter","childBefore","rangeHasMark","isAtom","toDebugString","wrapMarks","contentMatchAt","match","contentMatch","matchFragment","canReplace","replacement","one","two","validEnd","allowsMarks","canReplaceWith","matchType","canAppend","check","m","markFromJSON","nodeType","prototype","undefined","TextNode","super","JSON","stringify","base","ContentMatch","wrapCache","parse","string","nodeTypes","stream","TokenStream","expr","parseExpr","err","nfa","labeled","explore","nullFrom","states","out","term","indexOf","state","cmp","dfa","connect","compile","edge","edges","exprs","reduce","loop","cur","work","dead","hasRequiredAttrs","checkForDeadEnds","frag","defaultType","compatible","fillBefore","toEnd","seen","search","types","finished","tp","createAndFill","findWrapping","computed","computeWrapping","active","via","shift","reverse","edgeCount","scan","inline","tokens","split","pop","eat","tok","SyntaxError","parseExprSeq","parseExprSubscript","test","typeName","isInGroup","resolveName","parseExprAtom","parseExprRange","parseNum","Number","defaults","attrName","attr","hasDefault","default","computeAttrs","built","given","values","validate","initAttrs","Attribute","NodeType","markSet","groups","group","atom","whitespace","code","isRequired","createChecked","matched","validContent","allowsMarkType","markType","allowedMarks","topType","topNode","options","hasOwnProperty","call","validateType","MarkType","excluded","instance","Schema","linebreakReplacement","cached","instanceSpec","prop","OrderedMap","contentExprCache","contentExpr","markExpr","gatherMarks","excl","bind","topNodeType","wrappings","ok","DOMParser","rules","tags","styles","matchedStyles","rule","tag","isTagRule","style","isStyleRule","exec","normalizeLists","some","r","dom","context","ParseContext","addAll","finish","parseSlice","matchTag","matches","namespace","namespaceURI","matchesContext","getAttrs","matchStyle","charCodeAt","schemaRules","priority","splice","parseDOM","ignore","clearMark","fromSchema","domParser","blockTags","address","article","aside","blockquote","canvas","dd","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","li","noscript","ol","output","pre","section","table","tfoot","ul","ignoreTags","head","object","script","title","listTags","wsOptionsFor","preserveWhitespace","OPT_PRESERVE_WS","NodeContext","solid","activeMarks","fill","wrap","inlineContext","parentNode","nodeName","toLowerCase","parser","isOpen","open","topContext","topOptions","topMatch","find","findPositions","needsBlock","top","addDOM","addTextNode","addElement","nodeValue","domNodeBefore","previousSibling","insertNode","findInText","findInside","matchAfter","ruleID","prevItem","nextSibling","appendChild","normalizeList","ruleFromNode","ignoreFallback","skip","closeParent","sync","oldNeedsBlock","leafFallback","innerMarks","readStyles","addElementByRule","consuming","ownerDocument","createTextNode","findPlace","getPropertyValue","filter","continueAfter","enter","startIn","getContent","contentDOM","contentElement","querySelector","findAround","childNodes","findAtPoint","route","cx","enterInner","block","textblockFromContext","closeExtra","nodeMarks","markMayApply","preserveWS","applyMarks","topOpen","currentPos","contains","compareDocumentPosition","textNode","parts","option","useRoot","minDepth","part","$context","deflt","selector","msMatchesSelector","webkitMatchesSelector","mozMatchesSelector","DOMSerializer","serializeFragment","createDocumentFragment","keep","rendered","spanning","add","markDOM","serializeMark","serializeNodeInner","renderSpec","serializeNode","toDOM","structure","xmlNS","blockArraysIn","domSerializer","nodesFromSchema","marksFromSchema","gatherToDOM","document","window","suspiciousAttributeCache","suspiciousAttributes","suspiciousAttributesInner","suspicious","tagName","space","createElementNS","createElement","setAttributeNS","setAttribute","innerContent"],"mappings":"gDAEA,SAASA,EAAcC,EAAGC,EAAGC,GACzB,IAAK,IAAIC,EAAI,GAAIA,IAAK,CAClB,GAAIA,GAAKH,EAAEI,YAAcD,GAAKF,EAAEG,WAC5B,OAAOJ,EAAEI,YAAcH,EAAEG,WAAa,KAAOF,EACjD,IAAIG,EAASL,EAAEM,MAAMH,GAAII,EAASN,EAAEK,MAAMH,GAC1C,GAAIE,GAAUE,EAAd,CAIA,IAAKF,EAAOG,WAAWD,GACnB,OAAOL,EACX,GAAIG,EAAOI,QAAUJ,EAAOK,MAAQH,EAAOG,KAAM,CAC7C,IAAK,IAAIC,EAAI,EAAGN,EAAOK,KAAKC,IAAMJ,EAAOG,KAAKC,GAAIA,IAC9CT,IACJ,OAAOA,CACnB,CACQ,GAAIG,EAAOO,QAAQC,MAAQN,EAAOK,QAAQC,KAAM,CAC5C,IAAIC,EAAQf,EAAcM,EAAOO,QAASL,EAAOK,QAASV,EAAM,GAChE,GAAa,MAATY,EACA,OAAOA,CACvB,CACQZ,GAAOG,EAAOU,QAbtB,MAFYb,GAAOG,EAAOU,QAgB1B,CACA,CACA,SAASC,EAAYhB,EAAGC,EAAGgB,EAAMC,GAC7B,IAAK,IAAIC,EAAKnB,EAAEI,WAAYgB,EAAKnB,EAAEG,aAAc,CAC7C,GAAU,GAANe,GAAiB,GAANC,EACX,OAAOD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AEtE0Q,EAAIoL,aAAa9b,EAAMZ,EAAMY,GACjD,CACA,CACI,IAAK,IAAIzG,EAAIiC,EAAOjC,EAAIqhB,EAAU/f,OAAQtB,IAAK,CAC3C,IAAIG,EAAQkhB,EAAUrhB,GACtB,GAAc,IAAVG,EAAa,CACb,GAAIH,EAAIqhB,EAAU/f,OAAS,GAAKtB,EAAIiC,EAChC,MAAM,IAAImC,WAAW,0DACzB,MAAO,CAAE+S,MAAKqH,WAAYrH,EACtC,CACa,CACD,IAAMA,IAAKxW,EAAO6d,WAAYgE,GAAiBtB,GAAW1W,EAAKrK,EAAOmhB,EAAOC,GAE7E,GADApK,EAAI+F,YAAYvc,GACZ6hB,EAAc,CACd,GAAIhE,EACA,MAAM,IAAIpa,WAAW,0BACzBoa,EAAagE,CAC7B,CACA,CACA,CACI,MAAO,CAAErL,MAAKqH,aAClB","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ import{__exports as e}from"../../../_virtual/index.mjs";import{__require as t}from"../../prosemirror-model/dist/index.mjs";import{__require as n}from"../../prosemirror-transform/dist/index2.mjs";var r;function i(){if(r)return e;function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function o(){return o="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=u(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},o.apply(this,arguments)}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}function a(e,t){return a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},a(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t,n){return t&&f(e.prototype,t),n&&f(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}r=1,Object.defineProperty(e,"__esModule",{value:!0});var p=t(),d=n(),y=Object.create(null),v=function(){function e(t,n,r){l(this,e),this.$anchor=t,this.$head=n,this.ranges=r||[new m(t.min(n),t.max(n))]}return h(e,[{key:"anchor",get:function(){return this.$anchor.pos}},{key:"head",get:function(){return this.$head.pos}},{key:"from",get:function(){return this.$from.pos}},{key:"to",get:function(){return this.$to.pos}},{key:"$from",get:function(){return this.ranges[0].$from}},{key:"$to",get:function(){return this.ranges[0].$to}},{key:"empty",get:function(){for(var e=this.ranges,t=0;t<e.length;t++)if(e[t].$from.pos!=e[t].$to.pos)return!1;return!0}},{key:"content",value:function(){return this.$from.doc.slice(this.from,this.to,!0)}},{key:"replace",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.Slice.empty,n=t.content.lastChild,r=null,i=0;i<t.openEnd;i++)r=n,n=n.lastChild;for(var o=e.steps.length,s=this.ranges,a=0;a<s.length;a++){var c=s[a],u=c.$from,l=c.$to,f=e.mapping.slice(o);e.replaceRange(f.map(u.pos),f.map(l.pos),a?p.Slice.empty:t),0==a&&R(e,o,(n?n.isInline:r&&r.isTextblock)?-1:1)}}},{key:"replaceWith",value:function(e,t){for(var n=e.steps.length,r=this.ranges,i=0;i<r.length;i++){var o=r[i],s=o.$from,a=o.$to,c=e.mapping.slice(n),u=c.map(s.pos),l=c.map(a.pos);i?e.deleteRange(u,l):(e.replaceRangeWith(u,l,t),R(e,n,t.isInline?-1:1))}}},{key:"getBookmark",value:function(){return S.between(this.$anchor,this.$head).getBookmark()}}],[{key:"findFrom",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=e.parent.inlineContent?new S(e):N(e.node(0),e.parent,e.pos,e.index(),t,n);if(r)return r;for(var i=e.depth-1;i>=0;i--){var o=t<0?N(e.node(0),e.node(i),e.before(i+1),e.index(i),t,n):N(e.node(0),e.node(i),e.after(i+1),e.index(i)+1,t,n);if(o)return o}return null}},{key:"near",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return this.findFrom(e,t)||this.findFrom(e,-t)||new $(e.node(0))}},{key:"atStart",value:function(e){return N(e,e,0,0,1)||new $(e)}},{key:"atEnd",value:function(e){return N(e,e,e.content.size,e.childCount,-1)||new $(e)}},{key:"fromJSON",value:function(e,t){if(!t||!t.type)throw new RangeError("Invalid input for Selection.fromJSON");var n=y[t.type];if(!n)throw new RangeError("No selection type ".concat(t.type," defined"));return n.fromJSON(e,t)}},{key:"jsonID",value:function(e,t){if(e in y)throw new RangeError("Duplicate use of selection JSON ID "+e);return y[e]=t,t.prototype.jsonID=e,t}}]),e}();v.prototype.visible=!0;var m=h((function e(t,n){l(this,e),this.$from=t,this.$to=n})),k=!1;function g(e){k||e.parent.inlineContent||(k=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+e.parent.type.name+")"))}var S=function(e){s(n,e);var t=c(n);function n(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return l(this,n),g(e),g(r),t.call(this,e,r)}return h(n,[{key:"$cursor",get:function(){return this.$anchor.pos==this.$head.pos?this.$head:null}},{key:"map",value:function(e,t){var r=e.resolve(t.map(this.head));if(!r.parent.inlineContent)return v.near(r);var i=e.resolve(t.map(this.anchor));return new n(i.parent.inlineContent?i:r,r)}},{key:"replace",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.Slice.empty;if(o(u(n.prototype),"replace",this).call(this,e,t),t==p.Slice.empty){var r=this.$from.marksAcross(this.$to);r&&e.ensureMarks(r)}}},{key:"eq",value:function(e){return e instanceof n&&e.anchor==this.anchor&&e.head==this.head}},{key:"getBookmark",value:function(){return new w(this.anchor,this.head)}},{key:"toJSON",value:function(){return{type:"text",anchor:this.anchor,head:this.head}}}],[{key:"fromJSON",value:function(e,t){if("number"!=typeof t.anchor||"number"!=typeof t.head)throw new RangeError("Invalid input for TextSelection.fromJSON");return new n(e.resolve(t.anchor),e.resolve(t.head))}},{key:"create",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,r=e.resolve(t);return new this(r,n==t?r:e.resolve(n))}},{key:"between",value:function(e,t,r){var i=e.pos-t.pos;if(r&&!i||(r=i>=0?1:-1),!t.parent.inlineContent){var o=v.findFrom(t,r,!0)||v.findFrom(t,-r,!0);if(!o)return v.near(t,r);t=o.$head}return e.parent.inlineContent||(0==i||(e=(v.findFrom(e,-r,!0)||v.findFrom(e,r,!0)).$anchor).pos<t.pos!=i<0)&&(e=t),new n(e,t)}}]),n}(v);v.jsonID("text",S);var w=function(){function e(t,n){l(this,e),this.anchor=t,this.head=n}return h(e,[{key:"map",value:function(t){return new e(t.map(this.anchor),t.map(this.head))}},{key:"resolve",value:function(e){return S.between(e.resolve(this.anchor),e.resolve(this.head))}}]),e}(),b=function(e){s(n,e);var t=c(n);function n(e){var r;l(this,n);var i=e.nodeAfter,o=e.node(0).resolve(e.pos+i.nodeSize);return(r=t.call(this,e,o)).node=i,r}return h(n,[{key:"map",value:function(e,t){var r=t.mapResult(this.anchor),i=r.deleted,o=r.pos,s=e.resolve(o);return i?v.near(s):new n(s)}},{key:"content",value:function(){return new p.Slice(p.Fragment.from(this.node),0,0)}},{key:"eq",value:function(e){return e instanceof n&&e.anchor==this.anchor}},{key:"toJSON",value:function(){return{type:"node",anchor:this.anchor}}},{key:"getBookmark",value:function(){return new O(this.anchor)}}],[{key:"fromJSON",value:function(e,t){if("number"!=typeof t.anchor)throw new RangeError("Invalid input for NodeSelection.fromJSON");return new n(e.resolve(t.anchor))}},{key:"create",value:function(e,t){return new n(e.resolve(t))}},{key:"isSelectable",value:function(e){return!e.isText&&!1!==e.type.spec.selectable}}]),n}(v);b.prototype.visible=!1,v.jsonID("node",b);var O=function(){function e(t){l(this,e),this.anchor=t}return h(e,[{key:"map",value:function(t){var n=t.mapResult(this.anchor),r=n.deleted,i=n.pos;return r?new w(i,i):new e(i)}},{key:"resolve",value:function(e){var t=e.resolve(this.anchor),n=t.nodeAfter;return n&&b.isSelectable(n)?new b(t):v.near(t)}}]),e}(),$=function(e){s(n,e);var t=c(n);function n(e){return l(this,n),t.call(this,e.resolve(0),e.resolve(e.content.size))}return h(n,[{key:"replace",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.Slice.empty;if(t==p.Slice.empty){e.delete(0,e.doc.content.size);var r=v.atStart(e.doc);r.eq(e.selection)||e.setSelection(r)}else o(u(n.prototype),"replace",this).call(this,e,t)}},{key:"toJSON",value:function(){return{type:"all"}}},{key:"map",value:function(e){return new n(e)}},{key:"eq",value:function(e){return e instanceof n}},{key:"getBookmark",value:function(){return M}}],[{key:"fromJSON",value:function(e){return new n(e)}}]),n}(v);v.jsonID("all",$);var M={map:function(){return this},resolve:function(e){return new $(e)}};function N(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(t.inlineContent)return S.create(e,n);for(var s=r-(i>0?0:1);i>0?s<t.childCount:s>=0;s+=i){var a=t.child(s);if(a.isAtom){if(!o&&b.isSelectable(a))return b.create(e,n-(i<0?a.nodeSize:0))}else{var c=N(e,a,n+i,i<0?a.childCount:0,i,o);if(c)return c}n+=a.nodeSize*i}return null}function R(e,t,n){var r=e.steps.length-1;if(!(r<t)){var i,o=e.steps[r];if(o instanceof d.ReplaceStep||o instanceof d.ReplaceAroundStep)e.mapping.maps[r].forEach((function(e,t,n,r){null==i&&(i=r)})),e.setSelection(v.near(e.doc.resolve(i),n))}}var j=function(e){s(n,e);var t=c(n);function n(e){var r;return l(this,n),(r=t.call(this,e.doc)).curSelectionFor=0,r.updated=0,r.meta=Object.create(null),r.time=Date.now(),r.curSelection=e.selection,r.storedMarks=e.storedMarks,r}return h(n,[{key:"selection",get:function(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection}},{key:"setSelection",value:function(e){if(e.$from.doc!=this.doc)throw new RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=e,this.curSelectionFor=this.steps.length,this.updated=-3&this.updated|1,this.storedMarks=null,this}},{key:"selectionSet",get:function(){return(1&this.updated)>0}},{key:"setStoredMarks",value:function(e){return this.storedMarks=e,this.updated|=2,this}},{key:"ensureMarks",value:function(e){return p.Mark.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this}},{key:"addStoredMark",value:function(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))}},{key:"removeStoredMark",value:function(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))}},{key:"storedMarksSet",get:function(){return(2&this.updated)>0}},{key:"addStep",value:function(e,t){o(u(n.prototype),"addStep",this).call(this,e,t),this.updated=-3&this.updated,this.storedMarks=null}},{key:"setTime",value:function(e){return this.time=e,this}},{key:"replaceSelection",value:function(e){return this.selection.replace(this,e),this}},{key:"replaceSelectionWith",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.selection;return t&&(e=e.mark(this.storedMarks||(n.empty?n.$from.marks():n.$from.marksAcross(n.$to)||p.Mark.none))),n.replaceWith(this,e),this}},{key:"deleteSelection",value:function(){return this.selection.replace(this),this}},{key:"insertText",value:function(e,t,n){var r=this.doc.type.schema;if(null==t)return e?this.replaceSelectionWith(r.text(e),!0):this.deleteSelection();if(null==n&&(n=t),n=null==n?t:n,!e)return this.deleteRange(t,n);var i=this.storedMarks;if(!i){var o=this.doc.resolve(t);i=n==t?o.marks():o.marksAcross(this.doc.resolve(n))}return this.replaceRangeWith(t,n,r.text(e,i)),this.selection.empty||this.setSelection(v.near(this.selection.$to)),this}},{key:"setMeta",value:function(e,t){return this.meta["string"==typeof e?e:e.key]=t,this}},{key:"getMeta",value:function(e){return this.meta["string"==typeof e?e:e.key]}},{key:"isGeneric",get:function(){for(var e in this.meta)return!1;return!0}},{key:"scrollIntoView",value:function(){return this.updated|=4,this}},{key:"scrolledIntoView",get:function(){return(4&this.updated)>0}}]),n}(d.Transform);function J(e,t){return t&&e?e.bind(t):e}var T=h((function e(t,n,r){l(this,e),this.name=t,this.init=J(n.init,r),this.apply=J(n.apply,r)})),E=[new T("doc",{init:function(e){return e.doc||e.schema.topNodeType.createAndFill()},apply:function(e){return e.doc}}),new T("selection",{init:function(e,t){return e.selection||v.atStart(t.doc)},apply:function(e){return e.selection}}),new T("storedMarks",{init:function(e){return e.storedMarks||null},apply:function(e,t,n,r){return r.selection.$cursor?e.storedMarks:null}}),new T("scrollToSelection",{init:function(){return 0},apply:function(e,t){return e.scrolledIntoView?t+1:t}})],x=h((function e(t,n){var r=this;l(this,e),this.schema=t,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=E.slice(),n&&n.forEach((function(e){if(r.pluginsByKey[e.key])throw new RangeError("Adding different instances of a keyed plugin ("+e.key+")");r.plugins.push(e),r.pluginsByKey[e.key]=e,e.spec.state&&r.fields.push(new T(e.key,e.spec.state,e))}))})),_=function(){function e(t){l(this,e),this.config=t}return h(e,[{key:"schema",get:function(){return this.config.schema}},{key:"plugins",get:function(){return this.config.plugins}},{key:"apply",value:function(e){return this.applyTransaction(e).state}},{key:"filterTransaction",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,n=0;n<this.config.plugins.length;n++)if(n!=t){var r=this.config.plugins[n];if(r.spec.filterTransaction&&!r.spec.filterTransaction.call(r,e,this))return!1}return!0}},{key:"applyTransaction",value:function(e){if(!this.filterTransaction(e))return{state:this,transactions:[]};for(var t=[e],n=this.applyInner(e),r=null;;){for(var i=!1,o=0;o<this.config.plugins.length;o++){var s=this.config.plugins[o];if(s.spec.appendTransaction){var a=r?r[o].n:0,c=r?r[o].state:this,u=a<t.length&&s.spec.appendTransaction.call(s,a?t.slice(a):t,c,n);if(u&&n.filterTransaction(u,o)){if(u.setMeta("appendedTransaction",e),!r){r=[];for(var l=0;l<this.config.plugins.length;l++)r.push(l<o?{state:n,n:t.length}:{state:this,n:0})}t.push(u),n=n.applyInner(u),i=!0}r&&(r[o]={state:n,n:t.length})}}if(!i)return{state:n,transactions:t}}}},{key:"applyInner",value:function(t){if(!t.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");for(var n=new e(this.config),r=this.config.fields,i=0;i<r.length;i++){var o=r[i];n[o.name]=o.apply(t,this[o.name],this,n)}return n}},{key:"tr",get:function(){return new j(this)}},{key:"reconfigure",value:function(t){for(var n=new x(this.schema,t.plugins),r=n.fields,i=new e(n),o=0;o<r.length;o++){var s=r[o].name;i[s]=this.hasOwnProperty(s)?this[s]:r[o].init(t,i)}return i}},{key:"toJSON",value:function(e){var t={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(t.storedMarks=this.storedMarks.map((function(e){return e.toJSON()}))),e&&"object"==i(e))for(var n in e){if("doc"==n||"selection"==n)throw new RangeError("The JSON fields `doc` and `selection` are reserved");var r=e[n],o=r.spec.state;o&&o.toJSON&&(t[n]=o.toJSON.call(r,this[r.key]))}return t}}],[{key:"create",value:function(t){for(var n=new x(t.doc?t.doc.type.schema:t.schema,t.plugins),r=new e(n),i=0;i<n.fields.length;i++)r[n.fields[i].name]=n.fields[i].init(t,r);return r}},{key:"fromJSON",value:function(t,n,r){if(!n)throw new RangeError("Invalid input for EditorState.fromJSON");if(!t.schema)throw new RangeError("Required config field 'schema' missing");var i=new x(t.schema,t.plugins),o=new e(i);return i.fields.forEach((function(e){if("doc"==e.name)o.doc=p.Node.fromJSON(t.schema,n.doc);else if("selection"==e.name)o.selection=v.fromJSON(o.doc,n.selection);else if("storedMarks"==e.name)n.storedMarks&&(o.storedMarks=n.storedMarks.map(t.schema.markFromJSON));else{if(r)for(var i in r){var s=r[i],a=s.spec.state;if(s.key==e.name&&a&&a.fromJSON&&Object.prototype.hasOwnProperty.call(n,i))return void(o[e.name]=a.fromJSON.call(s,t,n[i],o))}o[e.name]=e.init(t,o)}})),o}}]),e}();function I(e,t,n){for(var r in e){var i=e[r];i instanceof Function?i=i.bind(t):"handleDOMEvents"==r&&(i=I(i,t,{})),n[r]=i}return n}var F=function(){function e(t){l(this,e),this.spec=t,this.props={},t.props&&I(t.props,this,this.props),this.key=t.key?t.key.key:C("plugin")}return h(e,[{key:"getState",value:function(e){return e[this.key]}}]),e}(),P=Object.create(null);function C(e){return e in P?e+"$"+ ++P[e]:(P[e]=0,e+"$")}var A=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"key";l(this,e),this.key=C(t)}return h(e,[{key:"get",value:function(e){return e.config.pluginsByKey[this.key]}},{key:"getState",value:function(e){return e[this.key]}}]),e}();return e.AllSelection=$,e.EditorState=_,e.NodeSelection=b,e.Plugin=F,e.PluginKey=A,e.Selection=v,e.SelectionRange=m,e.TextSelection=S,e.Transaction=j,e}export{i as __require};
2
+ //# sourceMappingURL=index.mjs.map