@btst/stack 1.9.0 → 1.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1529) hide show
  1. package/dist/_virtual/_commonjsHelpers.cjs +7 -0
  2. package/dist/_virtual/_commonjsHelpers.mjs +5 -0
  3. package/dist/_virtual/a11y-dark.cjs +5 -0
  4. package/dist/_virtual/a11y-dark.mjs +3 -0
  5. package/dist/_virtual/atom-dark.cjs +5 -0
  6. package/dist/_virtual/atom-dark.mjs +3 -0
  7. package/dist/_virtual/base16-ateliersulphurpool.light.cjs +5 -0
  8. package/dist/_virtual/base16-ateliersulphurpool.light.mjs +3 -0
  9. package/dist/_virtual/cb.cjs +5 -0
  10. package/dist/_virtual/cb.mjs +3 -0
  11. package/dist/_virtual/coldark-cold.cjs +5 -0
  12. package/dist/_virtual/coldark-cold.mjs +3 -0
  13. package/dist/_virtual/coldark-dark.cjs +5 -0
  14. package/dist/_virtual/coldark-dark.mjs +3 -0
  15. package/dist/_virtual/coy-without-shadows.cjs +5 -0
  16. package/dist/_virtual/coy-without-shadows.mjs +3 -0
  17. package/dist/_virtual/coy.cjs +5 -0
  18. package/dist/_virtual/coy.mjs +3 -0
  19. package/dist/_virtual/darcula.cjs +5 -0
  20. package/dist/_virtual/darcula.mjs +3 -0
  21. package/dist/_virtual/dark.cjs +5 -0
  22. package/dist/_virtual/dark.mjs +3 -0
  23. package/dist/_virtual/dracula.cjs +5 -0
  24. package/dist/_virtual/dracula.mjs +3 -0
  25. package/dist/_virtual/duotone-dark.cjs +5 -0
  26. package/dist/_virtual/duotone-dark.mjs +3 -0
  27. package/dist/_virtual/duotone-earth.cjs +5 -0
  28. package/dist/_virtual/duotone-earth.mjs +3 -0
  29. package/dist/_virtual/duotone-forest.cjs +5 -0
  30. package/dist/_virtual/duotone-forest.mjs +3 -0
  31. package/dist/_virtual/duotone-light.cjs +5 -0
  32. package/dist/_virtual/duotone-light.mjs +3 -0
  33. package/dist/_virtual/duotone-sea.cjs +5 -0
  34. package/dist/_virtual/duotone-sea.mjs +3 -0
  35. package/dist/_virtual/duotone-space.cjs +5 -0
  36. package/dist/_virtual/duotone-space.mjs +3 -0
  37. package/dist/_virtual/funky.cjs +5 -0
  38. package/dist/_virtual/funky.mjs +3 -0
  39. package/dist/_virtual/ghcolors.cjs +5 -0
  40. package/dist/_virtual/ghcolors.mjs +3 -0
  41. package/dist/_virtual/gruvbox-dark.cjs +5 -0
  42. package/dist/_virtual/gruvbox-dark.mjs +3 -0
  43. package/dist/_virtual/gruvbox-light.cjs +5 -0
  44. package/dist/_virtual/gruvbox-light.mjs +3 -0
  45. package/dist/_virtual/holi-theme.cjs +5 -0
  46. package/dist/_virtual/holi-theme.mjs +3 -0
  47. package/dist/_virtual/hopscotch.cjs +5 -0
  48. package/dist/_virtual/hopscotch.mjs +3 -0
  49. package/dist/_virtual/index.cjs +9 -0
  50. package/dist/_virtual/index.mjs +7 -0
  51. package/dist/_virtual/index2.cjs +7 -0
  52. package/dist/_virtual/index2.mjs +5 -0
  53. package/dist/_virtual/index3.cjs +7 -0
  54. package/dist/_virtual/index3.mjs +5 -0
  55. package/dist/_virtual/index4.cjs +9 -0
  56. package/dist/_virtual/index4.mjs +7 -0
  57. package/dist/_virtual/index5.cjs +5 -0
  58. package/dist/_virtual/index5.mjs +3 -0
  59. package/dist/_virtual/index6.cjs +5 -0
  60. package/dist/_virtual/index6.mjs +3 -0
  61. package/dist/_virtual/index7.cjs +5 -0
  62. package/dist/_virtual/index7.mjs +3 -0
  63. package/dist/_virtual/index8.cjs +5 -0
  64. package/dist/_virtual/index8.mjs +3 -0
  65. package/dist/_virtual/interopRequireDefault.cjs +5 -0
  66. package/dist/_virtual/interopRequireDefault.mjs +3 -0
  67. package/dist/_virtual/lucario.cjs +5 -0
  68. package/dist/_virtual/lucario.mjs +3 -0
  69. package/dist/_virtual/material-dark.cjs +5 -0
  70. package/dist/_virtual/material-dark.mjs +3 -0
  71. package/dist/_virtual/material-light.cjs +5 -0
  72. package/dist/_virtual/material-light.mjs +3 -0
  73. package/dist/_virtual/material-oceanic.cjs +5 -0
  74. package/dist/_virtual/material-oceanic.mjs +3 -0
  75. package/dist/_virtual/night-owl.cjs +5 -0
  76. package/dist/_virtual/night-owl.mjs +3 -0
  77. package/dist/_virtual/nord.cjs +5 -0
  78. package/dist/_virtual/nord.mjs +3 -0
  79. package/dist/_virtual/okaidia.cjs +5 -0
  80. package/dist/_virtual/okaidia.mjs +3 -0
  81. package/dist/_virtual/one-dark.cjs +5 -0
  82. package/dist/_virtual/one-dark.mjs +3 -0
  83. package/dist/_virtual/one-light.cjs +5 -0
  84. package/dist/_virtual/one-light.mjs +3 -0
  85. package/dist/_virtual/pojoaque.cjs +5 -0
  86. package/dist/_virtual/pojoaque.mjs +3 -0
  87. package/dist/_virtual/prism.cjs +5 -0
  88. package/dist/_virtual/prism.mjs +3 -0
  89. package/dist/_virtual/shades-of-purple.cjs +5 -0
  90. package/dist/_virtual/shades-of-purple.mjs +3 -0
  91. package/dist/_virtual/solarized-dark-atom.cjs +5 -0
  92. package/dist/_virtual/solarized-dark-atom.mjs +3 -0
  93. package/dist/_virtual/solarizedlight.cjs +5 -0
  94. package/dist/_virtual/solarizedlight.mjs +3 -0
  95. package/dist/_virtual/synthwave84.cjs +5 -0
  96. package/dist/_virtual/synthwave84.mjs +3 -0
  97. package/dist/_virtual/tomorrow.cjs +5 -0
  98. package/dist/_virtual/tomorrow.mjs +3 -0
  99. package/dist/_virtual/twilight.cjs +5 -0
  100. package/dist/_virtual/twilight.mjs +3 -0
  101. package/dist/_virtual/use-sync-external-store-shim.development.cjs +5 -0
  102. package/dist/_virtual/use-sync-external-store-shim.development.mjs +3 -0
  103. package/dist/_virtual/use-sync-external-store-shim.development2.cjs +5 -0
  104. package/dist/_virtual/use-sync-external-store-shim.development2.mjs +3 -0
  105. package/dist/_virtual/use-sync-external-store-shim.production.cjs +5 -0
  106. package/dist/_virtual/use-sync-external-store-shim.production.min.cjs +5 -0
  107. package/dist/_virtual/use-sync-external-store-shim.production.min.mjs +3 -0
  108. package/dist/_virtual/use-sync-external-store-shim.production.mjs +3 -0
  109. package/dist/_virtual/vs.cjs +5 -0
  110. package/dist/_virtual/vs.mjs +3 -0
  111. package/dist/_virtual/vsc-dark-plus.cjs +5 -0
  112. package/dist/_virtual/vsc-dark-plus.mjs +3 -0
  113. package/dist/_virtual/with-selector.cjs +9 -0
  114. package/dist/_virtual/with-selector.development.cjs +5 -0
  115. package/dist/_virtual/with-selector.development.mjs +3 -0
  116. package/dist/_virtual/with-selector.development2.cjs +5 -0
  117. package/dist/_virtual/with-selector.development2.mjs +3 -0
  118. package/dist/_virtual/with-selector.mjs +7 -0
  119. package/dist/_virtual/with-selector.production.cjs +5 -0
  120. package/dist/_virtual/with-selector.production.min.cjs +5 -0
  121. package/dist/_virtual/with-selector.production.min.mjs +3 -0
  122. package/dist/_virtual/with-selector.production.mjs +3 -0
  123. package/dist/_virtual/with-selector2.cjs +7 -0
  124. package/dist/_virtual/with-selector2.mjs +5 -0
  125. package/dist/_virtual/with-selector3.cjs +5 -0
  126. package/dist/_virtual/with-selector3.mjs +3 -0
  127. package/dist/_virtual/with-selector4.cjs +5 -0
  128. package/dist/_virtual/with-selector4.mjs +3 -0
  129. package/dist/_virtual/xonokai.cjs +5 -0
  130. package/dist/_virtual/xonokai.mjs +3 -0
  131. package/dist/_virtual/z-touch.cjs +5 -0
  132. package/dist/_virtual/z-touch.mjs +3 -0
  133. package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.cjs +9 -0
  134. package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.mjs +7 -0
  135. package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.cjs +9 -0
  136. package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.mjs +7 -0
  137. package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/defineProperty.cjs +14 -0
  138. package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/defineProperty.mjs +12 -0
  139. package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/extends.cjs +13 -0
  140. package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/extends.mjs +11 -0
  141. package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/iterableToArray.cjs +7 -0
  142. package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/iterableToArray.mjs +5 -0
  143. package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.cjs +7 -0
  144. package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.mjs +5 -0
  145. package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.cjs +17 -0
  146. package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.mjs +15 -0
  147. package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.cjs +13 -0
  148. package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.mjs +11 -0
  149. package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/toConsumableArray.cjs +12 -0
  150. package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/toConsumableArray.mjs +10 -0
  151. package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/toPrimitive.cjs +16 -0
  152. package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/toPrimitive.mjs +14 -0
  153. package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/toPropertyKey.cjs +11 -0
  154. package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/toPropertyKey.mjs +9 -0
  155. package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/typeof.cjs +13 -0
  156. package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/typeof.mjs +11 -0
  157. package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.cjs +13 -0
  158. package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.mjs +11 -0
  159. package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/interopRequireDefault.cjs +21 -0
  160. package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/interopRequireDefault.mjs +19 -0
  161. package/dist/node_modules/.pnpm/@dnd-kit_core@6.3.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@dnd-kit/core/dist/core.esm.cjs +62 -0
  162. package/dist/node_modules/.pnpm/@dnd-kit_core@6.3.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@dnd-kit/core/dist/core.esm.mjs +64 -3
  163. package/dist/node_modules/.pnpm/@dnd-kit_utilities@3.2.2_react@19.2.0/node_modules/@dnd-kit/utilities/dist/utilities.esm.mjs +1 -1
  164. package/dist/node_modules/.pnpm/@floating-ui_core@1.7.3/node_modules/@floating-ui/core/dist/floating-ui.core.cjs +236 -0
  165. package/dist/node_modules/.pnpm/@floating-ui_core@1.7.3/node_modules/@floating-ui/core/dist/floating-ui.core.mjs +236 -2
  166. package/dist/node_modules/.pnpm/@floating-ui_dom@1.7.4/node_modules/@floating-ui/dom/dist/floating-ui.dom.cjs +17 -0
  167. package/dist/node_modules/.pnpm/@floating-ui_dom@1.7.4/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs +19 -4
  168. package/dist/node_modules/.pnpm/@floating-ui_react-dom@2.1.6_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs +1 -1
  169. package/dist/node_modules/.pnpm/@floating-ui_react@0.27.16_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@floating-ui/react/dist/floating-ui.react.cjs +269 -0
  170. package/dist/node_modules/.pnpm/@floating-ui_react@0.27.16_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@floating-ui/react/dist/floating-ui.react.mjs +243 -0
  171. package/dist/node_modules/.pnpm/@floating-ui_react@0.27.16_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@floating-ui/react/dist/floating-ui.react.utils.cjs +48 -0
  172. package/dist/node_modules/.pnpm/@floating-ui_react@0.27.16_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@floating-ui/react/dist/floating-ui.react.utils.mjs +32 -0
  173. package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.cjs +4 -0
  174. package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs +3 -1
  175. package/dist/node_modules/.pnpm/@radix-ui_react-accordion@1.2.12_@types_react-dom@19.2.3_@types_react@19.2.6__@types_re_947719a27ff11ec6f09710dd9e85efc5/node_modules/@radix-ui/react-accordion/dist/index.cjs +15 -15
  176. package/dist/node_modules/.pnpm/@radix-ui_react-accordion@1.2.12_@types_react-dom@19.2.3_@types_react@19.2.6__@types_re_947719a27ff11ec6f09710dd9e85efc5/node_modules/@radix-ui/react-accordion/dist/index.mjs +1 -1
  177. package/dist/node_modules/.pnpm/@radix-ui_react-collapsible@1.1.12_@types_react-dom@19.2.3_@types_react@19.2.6__@types__d025a77f62ee83ca6bd8b0ea1f9de738/node_modules/@radix-ui/react-collapsible/dist/index.cjs +12 -12
  178. package/dist/node_modules/.pnpm/@radix-ui_react-dropdown-menu@2.1.16_@types_react-dom@19.2.3_@types_react@19.2.6__@type_a50051c7210b6fbd5be09388bda08578/node_modules/@radix-ui/react-dropdown-menu/dist/index.cjs +2 -0
  179. package/dist/node_modules/.pnpm/@radix-ui_react-dropdown-menu@2.1.16_@types_react-dom@19.2.3_@types_react@19.2.6__@type_a50051c7210b6fbd5be09388bda08578/node_modules/@radix-ui/react-dropdown-menu/dist/index.mjs +3 -2
  180. package/dist/node_modules/.pnpm/@radix-ui_react-icons@1.3.2_react@19.2.0/node_modules/@radix-ui/react-icons/dist/react-icons.esm.cjs +569 -0
  181. package/dist/node_modules/.pnpm/@radix-ui_react-icons@1.3.2_react@19.2.0/node_modules/@radix-ui/react-icons/dist/react-icons.esm.mjs +544 -0
  182. package/dist/node_modules/.pnpm/@radix-ui_react-toggle-group@1.1.11_@types_react-dom@19.2.3_@types_react@19.2.6__@types_35b57316ac5b867853bccd72352fef32/node_modules/@radix-ui/react-toggle-group/dist/index.cjs +178 -0
  183. package/dist/node_modules/.pnpm/@radix-ui_react-toggle-group@1.1.11_@types_react-dom@19.2.3_@types_react@19.2.6__@types_35b57316ac5b867853bccd72352fef32/node_modules/@radix-ui/react-toggle-group/dist/index.mjs +169 -0
  184. package/dist/node_modules/.pnpm/@radix-ui_react-toggle@1.1.10_@types_react-dom@19.2.3_@types_react@19.2.6__@types_react_e02209ddc23a9de32bfddf93e8b4dc03/node_modules/@radix-ui/react-toggle/dist/index.cjs +54 -0
  185. package/dist/node_modules/.pnpm/@radix-ui_react-toggle@1.1.10_@types_react-dom@19.2.3_@types_react@19.2.6__@types_react_e02209ddc23a9de32bfddf93e8b4dc03/node_modules/@radix-ui/react-toggle/dist/index.mjs +37 -0
  186. package/dist/node_modules/.pnpm/@radix-ui_react-tooltip@1.2.8_@types_react-dom@19.2.3_@types_react@19.2.6__@types_react_13303e30111c8a8dd7effa9eaa043fd3/node_modules/@radix-ui/react-tooltip/dist/index.cjs +519 -0
  187. package/dist/node_modules/.pnpm/@radix-ui_react-tooltip@1.2.8_@types_react-dom@19.2.3_@types_react@19.2.6__@types_react_13303e30111c8a8dd7effa9eaa043fd3/node_modules/@radix-ui/react-tooltip/dist/index.mjs +492 -0
  188. package/dist/node_modules/.pnpm/@radix-ui_react-visually-hidden@1.2.3_@types_react-dom@19.2.3_@types_react@19.2.6__@typ_f453379bbd5a4932ec515167f81be42a/node_modules/@radix-ui/react-visually-hidden/dist/index.cjs +2 -0
  189. package/dist/node_modules/.pnpm/@radix-ui_react-visually-hidden@1.2.3_@types_react-dom@19.2.3_@types_react@19.2.6__@typ_f453379bbd5a4932ec515167f81be42a/node_modules/@radix-ui/react-visually-hidden/dist/index.mjs +2 -1
  190. package/dist/node_modules/.pnpm/@tiptap_core@3.15.3_@tiptap_pm@3.15.3/node_modules/@tiptap/core/dist/index.cjs +6410 -0
  191. package/dist/node_modules/.pnpm/@tiptap_core@3.15.3_@tiptap_pm@3.15.3/node_modules/@tiptap/core/dist/index.mjs +6305 -0
  192. package/dist/node_modules/.pnpm/@tiptap_core@3.15.3_@tiptap_pm@3.15.3/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.cjs +22 -0
  193. package/dist/node_modules/.pnpm/@tiptap_core@3.15.3_@tiptap_pm@3.15.3/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.mjs +16 -0
  194. package/dist/node_modules/.pnpm/@tiptap_extension-blockquote@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-blockquote/dist/index.cjs +77 -0
  195. package/dist/node_modules/.pnpm/@tiptap_extension-blockquote@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-blockquote/dist/index.mjs +74 -0
  196. package/dist/node_modules/.pnpm/@tiptap_extension-bold@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-bold/dist/index.cjs +96 -0
  197. package/dist/node_modules/.pnpm/@tiptap_extension-bold@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-bold/dist/index.mjs +90 -0
  198. package/dist/node_modules/.pnpm/@tiptap_extension-bubble-menu@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tiptap_pm@3.15.3/node_modules/@tiptap/extension-bubble-menu/dist/index.cjs +375 -0
  199. package/dist/node_modules/.pnpm/@tiptap_extension-bubble-menu@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tiptap_pm@3.15.3/node_modules/@tiptap/extension-bubble-menu/dist/index.mjs +372 -0
  200. package/dist/node_modules/.pnpm/@tiptap_extension-code-block-lowlight@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@ti_2245ac34d84b5693aa60775b0f7781e3/node_modules/@tiptap/extension-code-block-lowlight/dist/index.cjs +150 -0
  201. package/dist/node_modules/.pnpm/@tiptap_extension-code-block-lowlight@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@ti_2245ac34d84b5693aa60775b0f7781e3/node_modules/@tiptap/extension-code-block-lowlight/dist/index.mjs +144 -0
  202. package/dist/node_modules/.pnpm/@tiptap_extension-code-block@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tiptap_pm@3.15.3/node_modules/@tiptap/extension-code-block/dist/index.cjs +325 -0
  203. package/dist/node_modules/.pnpm/@tiptap_extension-code-block@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tiptap_pm@3.15.3/node_modules/@tiptap/extension-code-block/dist/index.mjs +318 -0
  204. package/dist/node_modules/.pnpm/@tiptap_extension-code@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-code/dist/index.cjs +72 -0
  205. package/dist/node_modules/.pnpm/@tiptap_extension-code@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-code/dist/index.mjs +68 -0
  206. package/dist/node_modules/.pnpm/@tiptap_extension-document@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-document/dist/index.cjs +18 -0
  207. package/dist/node_modules/.pnpm/@tiptap_extension-document@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-document/dist/index.mjs +16 -0
  208. package/dist/node_modules/.pnpm/@tiptap_extension-floating-menu@3.15.3_@floating-ui_dom@1.7.4_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tiptap_pm@3.15.3/node_modules/@tiptap/extension-floating-menu/dist/index.cjs +246 -0
  209. package/dist/node_modules/.pnpm/@tiptap_extension-floating-menu@3.15.3_@floating-ui_dom@1.7.4_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tiptap_pm@3.15.3/node_modules/@tiptap/extension-floating-menu/dist/index.mjs +243 -0
  210. package/dist/node_modules/.pnpm/@tiptap_extension-hard-break@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-hard-break/dist/index.cjs +68 -0
  211. package/dist/node_modules/.pnpm/@tiptap_extension-hard-break@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-hard-break/dist/index.mjs +66 -0
  212. package/dist/node_modules/.pnpm/@tiptap_extension-heading@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-heading/dist/index.cjs +88 -0
  213. package/dist/node_modules/.pnpm/@tiptap_extension-heading@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-heading/dist/index.mjs +86 -0
  214. package/dist/node_modules/.pnpm/@tiptap_extension-horizontal-rule@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tiptap_pm@3.15.3/node_modules/@tiptap/extension-horizontal-rule/dist/index.cjs +82 -0
  215. package/dist/node_modules/.pnpm/@tiptap_extension-horizontal-rule@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tiptap_pm@3.15.3/node_modules/@tiptap/extension-horizontal-rule/dist/index.mjs +80 -0
  216. package/dist/node_modules/.pnpm/@tiptap_extension-image@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-image/dist/index.cjs +156 -0
  217. package/dist/node_modules/.pnpm/@tiptap_extension-image@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-image/dist/index.mjs +153 -0
  218. package/dist/node_modules/.pnpm/@tiptap_extension-italic@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-italic/dist/index.cjs +94 -0
  219. package/dist/node_modules/.pnpm/@tiptap_extension-italic@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-italic/dist/index.mjs +88 -0
  220. package/dist/node_modules/.pnpm/@tiptap_extension-link@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tiptap_pm@3.15.3/node_modules/@tiptap/extension-link/dist/index.cjs +421 -0
  221. package/dist/node_modules/.pnpm/@tiptap_extension-link@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tiptap_pm@3.15.3/node_modules/@tiptap/extension-link/dist/index.mjs +418 -0
  222. package/dist/node_modules/.pnpm/@tiptap_extension-list@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tiptap_pm@3.15.3/node_modules/@tiptap/extension-list/dist/index.cjs +1060 -0
  223. package/dist/node_modules/.pnpm/@tiptap_extension-list@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tiptap_pm@3.15.3/node_modules/@tiptap/extension-list/dist/index.mjs +1049 -0
  224. package/dist/node_modules/.pnpm/@tiptap_extension-paragraph@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-paragraph/dist/index.cjs +54 -0
  225. package/dist/node_modules/.pnpm/@tiptap_extension-paragraph@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-paragraph/dist/index.mjs +52 -0
  226. package/dist/node_modules/.pnpm/@tiptap_extension-strike@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-strike/dist/index.cjs +81 -0
  227. package/dist/node_modules/.pnpm/@tiptap_extension-strike@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-strike/dist/index.mjs +77 -0
  228. package/dist/node_modules/.pnpm/@tiptap_extension-table@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tiptap_pm@3.15.3/node_modules/@tiptap/extension-table/dist/index.cjs +580 -0
  229. package/dist/node_modules/.pnpm/@tiptap_extension-table@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tiptap_pm@3.15.3/node_modules/@tiptap/extension-table/dist/index.mjs +568 -0
  230. package/dist/node_modules/.pnpm/@tiptap_extension-text-style@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-text-style/dist/index.cjs +346 -0
  231. package/dist/node_modules/.pnpm/@tiptap_extension-text-style@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-text-style/dist/index.mjs +339 -0
  232. package/dist/node_modules/.pnpm/@tiptap_extension-text@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-text/dist/index.cjs +18 -0
  233. package/dist/node_modules/.pnpm/@tiptap_extension-text@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-text/dist/index.mjs +16 -0
  234. package/dist/node_modules/.pnpm/@tiptap_extension-typography@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-typography/dist/index.cjs +216 -0
  235. package/dist/node_modules/.pnpm/@tiptap_extension-typography@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-typography/dist/index.mjs +192 -0
  236. package/dist/node_modules/.pnpm/@tiptap_extension-underline@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-underline/dist/index.cjs +76 -0
  237. package/dist/node_modules/.pnpm/@tiptap_extension-underline@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-underline/dist/index.mjs +74 -0
  238. package/dist/node_modules/.pnpm/@tiptap_extensions@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tiptap_pm@3.15.3/node_modules/@tiptap/extensions/dist/index.cjs +364 -0
  239. package/dist/node_modules/.pnpm/@tiptap_extensions@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tiptap_pm@3.15.3/node_modules/@tiptap/extensions/dist/index.mjs +357 -0
  240. package/dist/node_modules/.pnpm/@tiptap_markdown@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tiptap_pm@3.15.3/node_modules/@tiptap/markdown/dist/index.cjs +958 -0
  241. package/dist/node_modules/.pnpm/@tiptap_markdown@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tiptap_pm@3.15.3/node_modules/@tiptap/markdown/dist/index.mjs +947 -0
  242. package/dist/node_modules/.pnpm/@tiptap_react@3.15.3_@floating-ui_dom@1.7.4_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tip_d7a2a9a319317617a8908309649a6dda/node_modules/@tiptap/react/dist/index.cjs +1030 -0
  243. package/dist/node_modules/.pnpm/@tiptap_react@3.15.3_@floating-ui_dom@1.7.4_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tip_d7a2a9a319317617a8908309649a6dda/node_modules/@tiptap/react/dist/index.mjs +909 -0
  244. package/dist/node_modules/.pnpm/@tiptap_react@3.15.3_@floating-ui_dom@1.7.4_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tip_d7a2a9a319317617a8908309649a6dda/node_modules/@tiptap/react/dist/menus/index.cjs +122 -0
  245. package/dist/node_modules/.pnpm/@tiptap_react@3.15.3_@floating-ui_dom@1.7.4_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tip_d7a2a9a319317617a8908309649a6dda/node_modules/@tiptap/react/dist/menus/index.mjs +116 -0
  246. package/dist/node_modules/.pnpm/@tiptap_starter-kit@3.15.3/node_modules/@tiptap/starter-kit/dist/index.cjs +97 -0
  247. package/dist/node_modules/.pnpm/@tiptap_starter-kit@3.15.3/node_modules/@tiptap/starter-kit/dist/index.mjs +95 -0
  248. package/dist/node_modules/.pnpm/@use-gesture_core@10.3.1/node_modules/@use-gesture/core/dist/actions-fe213e88.esm.cjs +1034 -0
  249. package/dist/node_modules/.pnpm/@use-gesture_core@10.3.1/node_modules/@use-gesture/core/dist/actions-fe213e88.esm.mjs +1020 -0
  250. package/dist/node_modules/.pnpm/@use-gesture_core@10.3.1/node_modules/@use-gesture/core/dist/maths-0ab39ae9.esm.cjs +43 -0
  251. package/dist/node_modules/.pnpm/@use-gesture_core@10.3.1/node_modules/@use-gesture/core/dist/maths-0ab39ae9.esm.mjs +39 -0
  252. package/dist/node_modules/.pnpm/@use-gesture_core@10.3.1/node_modules/@use-gesture/core/dist/use-gesture-core.esm.cjs +281 -0
  253. package/dist/node_modules/.pnpm/@use-gesture_core@10.3.1/node_modules/@use-gesture/core/dist/use-gesture-core.esm.mjs +279 -0
  254. package/dist/node_modules/.pnpm/@use-gesture_react@10.3.1_react@19.2.0/node_modules/@use-gesture/react/dist/use-gesture-react.esm.cjs +36 -0
  255. package/dist/node_modules/.pnpm/@use-gesture_react@10.3.1_react@19.2.0/node_modules/@use-gesture/react/dist/use-gesture-react.esm.mjs +27 -0
  256. package/dist/node_modules/.pnpm/character-entities-legacy@3.0.0/node_modules/character-entities-legacy/index.cjs +117 -0
  257. package/dist/node_modules/.pnpm/character-entities-legacy@3.0.0/node_modules/character-entities-legacy/index.mjs +115 -0
  258. package/dist/node_modules/.pnpm/character-entities@2.0.2/node_modules/character-entities/index.cjs +2136 -0
  259. package/dist/node_modules/.pnpm/character-entities@2.0.2/node_modules/character-entities/index.mjs +2134 -0
  260. package/dist/node_modules/.pnpm/character-reference-invalid@2.0.1/node_modules/character-reference-invalid/index.cjs +39 -0
  261. package/dist/node_modules/.pnpm/character-reference-invalid@2.0.1/node_modules/character-reference-invalid/index.mjs +37 -0
  262. package/dist/node_modules/.pnpm/comma-separated-tokens@2.0.3/node_modules/comma-separated-tokens/index.cjs +53 -0
  263. package/dist/node_modules/.pnpm/comma-separated-tokens@2.0.3/node_modules/comma-separated-tokens/index.mjs +51 -0
  264. package/dist/node_modules/.pnpm/decode-named-character-reference@1.2.0/node_modules/decode-named-character-reference/index.cjs +23 -0
  265. package/dist/node_modules/.pnpm/decode-named-character-reference@1.2.0/node_modules/decode-named-character-reference/index.mjs +21 -0
  266. package/dist/node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.cjs +57 -0
  267. package/dist/node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.mjs +55 -0
  268. package/dist/node_modules/.pnpm/fast-equals@5.4.0/node_modules/fast-equals/dist/es/index.cjs +645 -0
  269. package/dist/node_modules/.pnpm/fast-equals@5.4.0/node_modules/fast-equals/dist/es/index.mjs +641 -0
  270. package/dist/node_modules/.pnpm/hast-util-parse-selector@4.0.0/node_modules/hast-util-parse-selector/lib/index.cjs +91 -0
  271. package/dist/node_modules/.pnpm/hast-util-parse-selector@4.0.0/node_modules/hast-util-parse-selector/lib/index.mjs +89 -0
  272. package/dist/node_modules/.pnpm/hastscript@9.0.1/node_modules/hastscript/lib/create-h.cjs +314 -0
  273. package/dist/node_modules/.pnpm/hastscript@9.0.1/node_modules/hastscript/lib/create-h.mjs +312 -0
  274. package/dist/node_modules/.pnpm/hastscript@9.0.1/node_modules/hastscript/lib/index.cjs +24 -0
  275. package/dist/node_modules/.pnpm/hastscript@9.0.1/node_modules/hastscript/lib/index.mjs +22 -0
  276. package/dist/node_modules/.pnpm/hastscript@9.0.1/node_modules/hastscript/lib/svg-case-sensitive-tag-names.cjs +50 -0
  277. package/dist/node_modules/.pnpm/hastscript@9.0.1/node_modules/hastscript/lib/svg-case-sensitive-tag-names.mjs +48 -0
  278. package/dist/node_modules/.pnpm/he-tree-react@1.2.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/he-tree-react/dist/index.cjs +541 -0
  279. package/dist/node_modules/.pnpm/he-tree-react@1.2.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/he-tree-react/dist/index.mjs +533 -0
  280. package/dist/node_modules/.pnpm/helper-js@3.1.6/node_modules/helper-js/dist/index.esm.cjs +153 -0
  281. package/dist/node_modules/.pnpm/helper-js@3.1.6/node_modules/helper-js/dist/index.esm.mjs +145 -0
  282. package/dist/node_modules/.pnpm/immer@11.1.3/node_modules/immer/dist/immer.cjs +868 -0
  283. package/dist/node_modules/.pnpm/immer@11.1.3/node_modules/immer/dist/immer.mjs +859 -0
  284. package/dist/node_modules/.pnpm/is-alphabetical@2.0.1/node_modules/is-alphabetical/index.cjs +20 -0
  285. package/dist/node_modules/.pnpm/is-alphabetical@2.0.1/node_modules/is-alphabetical/index.mjs +18 -0
  286. package/dist/node_modules/.pnpm/is-alphanumerical@2.0.1/node_modules/is-alphanumerical/index.cjs +17 -0
  287. package/dist/node_modules/.pnpm/is-alphanumerical@2.0.1/node_modules/is-alphanumerical/index.mjs +15 -0
  288. package/dist/node_modules/.pnpm/is-decimal@2.0.1/node_modules/is-decimal/index.cjs +17 -0
  289. package/dist/node_modules/.pnpm/is-decimal@2.0.1/node_modules/is-decimal/index.mjs +15 -0
  290. package/dist/node_modules/.pnpm/is-hexadecimal@2.0.1/node_modules/is-hexadecimal/index.cjs +21 -0
  291. package/dist/node_modules/.pnpm/is-hexadecimal@2.0.1/node_modules/is-hexadecimal/index.mjs +19 -0
  292. package/dist/node_modules/.pnpm/linkifyjs@4.3.2/node_modules/linkifyjs/dist/linkify.cjs +1753 -0
  293. package/dist/node_modules/.pnpm/linkifyjs@4.3.2/node_modules/linkifyjs/dist/linkify.mjs +1742 -0
  294. package/dist/node_modules/.pnpm/lowlight@3.3.0/node_modules/lowlight/lib/common.cjs +131 -0
  295. package/dist/node_modules/.pnpm/lowlight@3.3.0/node_modules/lowlight/lib/common.mjs +89 -0
  296. package/dist/node_modules/.pnpm/lowlight@3.3.0/node_modules/lowlight/lib/index.cjs +470 -0
  297. package/dist/node_modules/.pnpm/lowlight@3.3.0/node_modules/lowlight/lib/index.mjs +464 -0
  298. package/dist/node_modules/.pnpm/marked@15.0.12/node_modules/marked/lib/marked.esm.cjs +2177 -0
  299. package/dist/node_modules/.pnpm/marked@15.0.12/node_modules/marked/lib/marked.esm.mjs +2167 -0
  300. package/dist/node_modules/.pnpm/next-themes@0.4.6_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next-themes/dist/index.cjs +23 -0
  301. package/dist/node_modules/.pnpm/next-themes@0.4.6_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next-themes/dist/index.mjs +6 -0
  302. package/dist/node_modules/.pnpm/object-hash@3.0.0/node_modules/object-hash/index.cjs +472 -0
  303. package/dist/node_modules/.pnpm/object-hash@3.0.0/node_modules/object-hash/index.mjs +466 -0
  304. package/dist/node_modules/.pnpm/orderedmap@2.1.1/node_modules/orderedmap/dist/index.cjs +139 -0
  305. package/dist/node_modules/.pnpm/orderedmap@2.1.1/node_modules/orderedmap/dist/index.mjs +137 -0
  306. package/dist/node_modules/.pnpm/parse-entities@4.0.2/node_modules/parse-entities/lib/index.cjs +410 -0
  307. package/dist/node_modules/.pnpm/parse-entities@4.0.2/node_modules/parse-entities/lib/index.mjs +408 -0
  308. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/index.cjs +18 -0
  309. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/index.mjs +15 -0
  310. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/aria.cjs +65 -0
  311. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/aria.mjs +63 -0
  312. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/find.cjs +102 -0
  313. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/find.mjs +100 -0
  314. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/html.cjs +319 -0
  315. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/html.mjs +317 -0
  316. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/normalize.cjs +16 -0
  317. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/normalize.mjs +14 -0
  318. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/svg.cjs +565 -0
  319. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/svg.mjs +563 -0
  320. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/case-insensitive-transform.cjs +17 -0
  321. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/case-insensitive-transform.mjs +15 -0
  322. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/case-sensitive-transform.cjs +15 -0
  323. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/case-sensitive-transform.mjs +13 -0
  324. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/create.cjs +48 -0
  325. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/create.mjs +46 -0
  326. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/defined-info.cjs +65 -0
  327. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/defined-info.mjs +63 -0
  328. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/info.cjs +36 -0
  329. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/info.mjs +34 -0
  330. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/merge.cjs +32 -0
  331. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/merge.mjs +30 -0
  332. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/schema.cjs +33 -0
  333. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/schema.mjs +31 -0
  334. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/types.cjs +23 -0
  335. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/types.mjs +15 -0
  336. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/xlink.cjs +21 -0
  337. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/xlink.mjs +19 -0
  338. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/xml.cjs +13 -0
  339. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/xml.mjs +11 -0
  340. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/xmlns.cjs +13 -0
  341. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/xmlns.mjs +11 -0
  342. package/dist/node_modules/.pnpm/prosemirror-commands@1.7.1/node_modules/prosemirror-commands/dist/index.cjs +673 -0
  343. package/dist/node_modules/.pnpm/prosemirror-commands@1.7.1/node_modules/prosemirror-commands/dist/index.mjs +650 -0
  344. package/dist/node_modules/.pnpm/prosemirror-dropcursor@1.8.2/node_modules/prosemirror-dropcursor/dist/index.cjs +148 -0
  345. package/dist/node_modules/.pnpm/prosemirror-dropcursor@1.8.2/node_modules/prosemirror-dropcursor/dist/index.mjs +146 -0
  346. package/dist/node_modules/.pnpm/prosemirror-gapcursor@1.4.0/node_modules/prosemirror-gapcursor/dist/index.cjs +242 -0
  347. package/dist/node_modules/.pnpm/prosemirror-gapcursor@1.4.0/node_modules/prosemirror-gapcursor/dist/index.mjs +239 -0
  348. package/dist/node_modules/.pnpm/prosemirror-history@1.5.0/node_modules/prosemirror-history/dist/index.cjs +418 -0
  349. package/dist/node_modules/.pnpm/prosemirror-history@1.5.0/node_modules/prosemirror-history/dist/index.mjs +414 -0
  350. package/dist/node_modules/.pnpm/prosemirror-keymap@1.2.3/node_modules/prosemirror-keymap/dist/index.cjs +131 -0
  351. package/dist/node_modules/.pnpm/prosemirror-keymap@1.2.3/node_modules/prosemirror-keymap/dist/index.mjs +128 -0
  352. package/dist/node_modules/.pnpm/prosemirror-model@1.25.4/node_modules/prosemirror-model/dist/index.cjs +3478 -0
  353. package/dist/node_modules/.pnpm/prosemirror-model@1.25.4/node_modules/prosemirror-model/dist/index.mjs +3464 -0
  354. package/dist/node_modules/.pnpm/prosemirror-schema-list@1.5.1/node_modules/prosemirror-schema-list/dist/index.cjs +163 -0
  355. package/dist/node_modules/.pnpm/prosemirror-schema-list@1.5.1/node_modules/prosemirror-schema-list/dist/index.mjs +158 -0
  356. package/dist/node_modules/.pnpm/prosemirror-state@1.4.4/node_modules/prosemirror-state/dist/index.cjs +1012 -0
  357. package/dist/node_modules/.pnpm/prosemirror-state@1.4.4/node_modules/prosemirror-state/dist/index.mjs +1002 -0
  358. package/dist/node_modules/.pnpm/prosemirror-tables@1.8.1/node_modules/prosemirror-tables/dist/index.cjs +2211 -0
  359. package/dist/node_modules/.pnpm/prosemirror-tables@1.8.1/node_modules/prosemirror-tables/dist/index.mjs +2161 -0
  360. package/dist/node_modules/.pnpm/prosemirror-transform@1.10.5/node_modules/prosemirror-transform/dist/index.cjs +2183 -0
  361. package/dist/node_modules/.pnpm/prosemirror-transform@1.10.5/node_modules/prosemirror-transform/dist/index.mjs +2160 -0
  362. package/dist/node_modules/.pnpm/prosemirror-view@1.41.3/node_modules/prosemirror-view/dist/index.cjs +5817 -0
  363. package/dist/node_modules/.pnpm/prosemirror-view@1.41.3/node_modules/prosemirror-view/dist/index.mjs +5813 -0
  364. package/dist/node_modules/.pnpm/react-base-virtual-list@1.1.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-base-virtual-list/dist/index.cjs +101 -0
  365. package/dist/node_modules/.pnpm/react-base-virtual-list@1.1.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-base-virtual-list/dist/index.mjs +94 -0
  366. package/dist/node_modules/.pnpm/react-medium-image-zoom@5.4.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-medium-image-zoom/dist/index.cjs +807 -0
  367. package/dist/node_modules/.pnpm/react-medium-image-zoom@5.4.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-medium-image-zoom/dist/index.mjs +800 -0
  368. package/dist/node_modules/.pnpm/react-resizable-panels@2.1.9_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-resizable-panels/dist/react-resizable-panels.esm.cjs +2418 -0
  369. package/dist/node_modules/.pnpm/react-resizable-panels@2.1.9_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-resizable-panels/dist/react-resizable-panels.esm.mjs +2393 -0
  370. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/a11y-dark.cjs +166 -0
  371. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/a11y-dark.mjs +164 -0
  372. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/atom-dark.cjs +173 -0
  373. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/atom-dark.mjs +171 -0
  374. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/base16-ateliersulphurpool.light.cjs +217 -0
  375. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/base16-ateliersulphurpool.light.mjs +215 -0
  376. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/cb.cjs +181 -0
  377. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/cb.mjs +179 -0
  378. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/coldark-cold.cjs +406 -0
  379. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/coldark-cold.mjs +404 -0
  380. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/coldark-dark.cjs +406 -0
  381. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/coldark-dark.mjs +404 -0
  382. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/coy-without-shadows.cjs +202 -0
  383. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/coy-without-shadows.mjs +200 -0
  384. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/coy.cjs +269 -0
  385. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/coy.mjs +267 -0
  386. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/darcula.cjs +221 -0
  387. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/darcula.mjs +219 -0
  388. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/dark.cjs +174 -0
  389. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/dark.mjs +172 -0
  390. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/dracula.cjs +174 -0
  391. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/dracula.mjs +172 -0
  392. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/duotone-dark.cjs +238 -0
  393. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/duotone-dark.mjs +236 -0
  394. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/duotone-earth.cjs +238 -0
  395. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/duotone-earth.mjs +236 -0
  396. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/duotone-forest.cjs +238 -0
  397. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/duotone-forest.mjs +236 -0
  398. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/duotone-light.cjs +238 -0
  399. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/duotone-light.mjs +236 -0
  400. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/duotone-sea.cjs +238 -0
  401. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/duotone-sea.mjs +236 -0
  402. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/duotone-space.cjs +238 -0
  403. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/duotone-space.mjs +236 -0
  404. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/funky.cjs +181 -0
  405. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/funky.mjs +179 -0
  406. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/ghcolors.cjs +198 -0
  407. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/ghcolors.mjs +196 -0
  408. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/gruvbox-dark.cjs +197 -0
  409. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/gruvbox-dark.mjs +195 -0
  410. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/gruvbox-light.cjs +197 -0
  411. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/gruvbox-light.mjs +195 -0
  412. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/holi-theme.cjs +214 -0
  413. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/holi-theme.mjs +212 -0
  414. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/hopscotch.cjs +168 -0
  415. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/hopscotch.mjs +166 -0
  416. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/index.cjs +373 -0
  417. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/index.mjs +371 -0
  418. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/lucario.cjs +174 -0
  419. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/lucario.mjs +172 -0
  420. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/material-dark.cjs +215 -0
  421. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/material-dark.mjs +213 -0
  422. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/material-light.cjs +223 -0
  423. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/material-light.mjs +221 -0
  424. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/material-oceanic.cjs +219 -0
  425. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/material-oceanic.mjs +217 -0
  426. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/night-owl.cjs +212 -0
  427. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/night-owl.mjs +210 -0
  428. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/nord.cjs +172 -0
  429. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/nord.mjs +170 -0
  430. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/okaidia.cjs +176 -0
  431. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/okaidia.mjs +174 -0
  432. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/one-dark.cjs +521 -0
  433. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/one-dark.mjs +519 -0
  434. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/one-light.cjs +509 -0
  435. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/one-light.mjs +507 -0
  436. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/pojoaque.cjs +181 -0
  437. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/pojoaque.mjs +179 -0
  438. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/prism.cjs +212 -0
  439. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/prism.mjs +210 -0
  440. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/shades-of-purple.cjs +254 -0
  441. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/shades-of-purple.mjs +252 -0
  442. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/solarized-dark-atom.cjs +173 -0
  443. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/solarized-dark-atom.mjs +171 -0
  444. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/solarizedlight.cjs +188 -0
  445. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/solarizedlight.mjs +186 -0
  446. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/synthwave84.cjs +203 -0
  447. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/synthwave84.mjs +201 -0
  448. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/tomorrow.cjs +173 -0
  449. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/tomorrow.mjs +171 -0
  450. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/twilight.cjs +234 -0
  451. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/twilight.mjs +232 -0
  452. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/vs.cjs +226 -0
  453. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/vs.mjs +224 -0
  454. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/vsc-dark-plus.cjs +302 -0
  455. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/vsc-dark-plus.mjs +300 -0
  456. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/xonokai.cjs +200 -0
  457. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/xonokai.mjs +198 -0
  458. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/z-touch.cjs +216 -0
  459. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/z-touch.mjs +214 -0
  460. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/esm/checkForListedLanguage.cjs +8 -0
  461. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/esm/checkForListedLanguage.mjs +6 -0
  462. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/esm/create-element.cjs +121 -0
  463. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/esm/create-element.mjs +110 -0
  464. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/esm/highlight.cjs +394 -0
  465. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/esm/highlight.mjs +388 -0
  466. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/esm/languages/prism/supported-languages.cjs +9 -0
  467. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/esm/languages/prism/supported-languages.mjs +7 -0
  468. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/esm/prism.cjs +12 -0
  469. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/esm/prism.mjs +10 -0
  470. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/esm/styles/prism/prism.cjs +196 -0
  471. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/esm/styles/prism/prism.mjs +194 -0
  472. package/dist/node_modules/.pnpm/react-zoom-pan-pinch@3.7.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-zoom-pan-pinch/dist/index.esm.cjs +1867 -0
  473. package/dist/node_modules/.pnpm/react-zoom-pan-pinch@3.7.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-zoom-pan-pinch/dist/index.esm.mjs +1854 -0
  474. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/abap.cjs +66 -0
  475. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/abap.mjs +64 -0
  476. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/abnf.cjs +70 -0
  477. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/abnf.mjs +68 -0
  478. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/actionscript.cjs +37 -0
  479. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/actionscript.mjs +35 -0
  480. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ada.cjs +38 -0
  481. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ada.mjs +36 -0
  482. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/agda.cjs +38 -0
  483. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/agda.mjs +36 -0
  484. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/al.cjs +42 -0
  485. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/al.mjs +40 -0
  486. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/antlr4.cjs +81 -0
  487. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/antlr4.mjs +79 -0
  488. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/apacheconf.cjs +63 -0
  489. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/apacheconf.mjs +61 -0
  490. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/apex.cjs +93 -0
  491. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/apex.mjs +91 -0
  492. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/apl.cjs +48 -0
  493. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/apl.mjs +46 -0
  494. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/applescript.cjs +33 -0
  495. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/applescript.mjs +31 -0
  496. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/aql.cjs +64 -0
  497. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/aql.mjs +62 -0
  498. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/arduino.cjs +26 -0
  499. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/arduino.mjs +24 -0
  500. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/arff.cjs +24 -0
  501. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/arff.mjs +22 -0
  502. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/armasm.cjs +61 -0
  503. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/armasm.mjs +59 -0
  504. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/arturo.cjs +106 -0
  505. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/arturo.mjs +104 -0
  506. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/asciidoc.cjs +245 -0
  507. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/asciidoc.mjs +243 -0
  508. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/asm6502.cjs +44 -0
  509. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/asm6502.mjs +42 -0
  510. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/asmatmel.cjs +56 -0
  511. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/asmatmel.mjs +54 -0
  512. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/aspnet.cjs +78 -0
  513. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/aspnet.mjs +76 -0
  514. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/autohotkey.cjs +59 -0
  515. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/autohotkey.mjs +57 -0
  516. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/autoit.cjs +50 -0
  517. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/autoit.mjs +48 -0
  518. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/avisynth.cjs +203 -0
  519. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/avisynth.mjs +201 -0
  520. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/avro-idl.cjs +61 -0
  521. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/avro-idl.mjs +59 -0
  522. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/awk.cjs +43 -0
  523. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/awk.mjs +41 -0
  524. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bash.cjs +254 -0
  525. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bash.mjs +252 -0
  526. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/basic.cjs +33 -0
  527. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/basic.mjs +31 -0
  528. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/batch.cjs +114 -0
  529. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/batch.mjs +112 -0
  530. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bbcode.cjs +43 -0
  531. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bbcode.mjs +41 -0
  532. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bbj.cjs +34 -0
  533. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bbj.mjs +32 -0
  534. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bicep.cjs +89 -0
  535. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bicep.mjs +87 -0
  536. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/birb.cjs +39 -0
  537. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/birb.mjs +37 -0
  538. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bison.cjs +55 -0
  539. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bison.mjs +53 -0
  540. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bnf.cjs +34 -0
  541. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bnf.mjs +32 -0
  542. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bqn.cjs +78 -0
  543. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bqn.mjs +76 -0
  544. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/brainfuck.cjs +34 -0
  545. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/brainfuck.mjs +32 -0
  546. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/brightscript.cjs +61 -0
  547. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/brightscript.mjs +59 -0
  548. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bro.cjs +43 -0
  549. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bro.mjs +41 -0
  550. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bsl.cjs +92 -0
  551. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bsl.mjs +90 -0
  552. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/c.cjs +99 -0
  553. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/c.mjs +97 -0
  554. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cfscript.cjs +63 -0
  555. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cfscript.mjs +61 -0
  556. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/chaiscript.cjs +78 -0
  557. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/chaiscript.mjs +76 -0
  558. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cil.cjs +35 -0
  559. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cil.mjs +33 -0
  560. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cilkc.cjs +24 -0
  561. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cilkc.mjs +22 -0
  562. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cilkcpp.cjs +25 -0
  563. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cilkcpp.mjs +23 -0
  564. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/clike.cjs +47 -0
  565. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/clike.mjs +45 -0
  566. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/clojure.cjs +47 -0
  567. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/clojure.mjs +45 -0
  568. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cmake.cjs +48 -0
  569. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cmake.mjs +46 -0
  570. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cobol.cjs +66 -0
  571. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cobol.mjs +64 -0
  572. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/coffeescript.cjs +102 -0
  573. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/coffeescript.mjs +100 -0
  574. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/concurnas.cjs +78 -0
  575. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/concurnas.mjs +76 -0
  576. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cooklang.cjs +152 -0
  577. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cooklang.mjs +150 -0
  578. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/coq.cjs +71 -0
  579. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/coq.mjs +69 -0
  580. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cpp.cjs +133 -0
  581. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cpp.mjs +131 -0
  582. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/crystal.cjs +71 -0
  583. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/crystal.mjs +69 -0
  584. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/csharp.cjs +491 -0
  585. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/csharp.mjs +489 -0
  586. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cshtml.cjs +273 -0
  587. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cshtml.mjs +271 -0
  588. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/csp.cjs +80 -0
  589. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/csp.mjs +78 -0
  590. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/css-extras.cjs +134 -0
  591. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/css-extras.mjs +132 -0
  592. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/css.cjs +94 -0
  593. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/css.mjs +92 -0
  594. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/csv.cjs +20 -0
  595. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/csv.mjs +18 -0
  596. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cue.cjs +102 -0
  597. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cue.mjs +100 -0
  598. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cypher.cjs +48 -0
  599. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cypher.mjs +46 -0
  600. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/d.cjs +103 -0
  601. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/d.mjs +101 -0
  602. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/dart.cjs +99 -0
  603. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/dart.mjs +97 -0
  604. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/dataweave.cjs +56 -0
  605. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/dataweave.mjs +54 -0
  606. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/dax.cjs +44 -0
  607. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/dax.mjs +42 -0
  608. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/dhall.cjs +85 -0
  609. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/dhall.mjs +83 -0
  610. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/diff.cjs +77 -0
  611. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/diff.mjs +75 -0
  612. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/django.cjs +73 -0
  613. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/django.mjs +71 -0
  614. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/dns-zone-file.cjs +47 -0
  615. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/dns-zone-file.mjs +45 -0
  616. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/docker.cjs +133 -0
  617. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/docker.mjs +131 -0
  618. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/dot.cjs +95 -0
  619. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/dot.mjs +93 -0
  620. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ebnf.cjs +34 -0
  621. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ebnf.mjs +32 -0
  622. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/editorconfig.cjs +41 -0
  623. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/editorconfig.mjs +39 -0
  624. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/eiffel.cjs +49 -0
  625. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/eiffel.mjs +47 -0
  626. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ejs.cjs +44 -0
  627. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ejs.mjs +42 -0
  628. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/elixir.cjs +115 -0
  629. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/elixir.mjs +113 -0
  630. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/elm.cjs +63 -0
  631. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/elm.mjs +61 -0
  632. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/erb.cjs +45 -0
  633. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/erb.mjs +43 -0
  634. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/erlang.cjs +57 -0
  635. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/erlang.mjs +55 -0
  636. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/etlua.cjs +42 -0
  637. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/etlua.mjs +40 -0
  638. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/excel-formula.cjs +82 -0
  639. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/excel-formula.mjs +80 -0
  640. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/factor.cjs +941 -0
  641. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/factor.mjs +939 -0
  642. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/false.cjs +46 -0
  643. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/false.mjs +44 -0
  644. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/firestore-security-rules.cjs +55 -0
  645. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/firestore-security-rules.mjs +53 -0
  646. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/flow.cjs +52 -0
  647. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/flow.mjs +50 -0
  648. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/fortran.cjs +55 -0
  649. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/fortran.mjs +53 -0
  650. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/fsharp.cjs +96 -0
  651. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/fsharp.mjs +94 -0
  652. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ftl.cjs +139 -0
  653. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ftl.mjs +137 -0
  654. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gap.cjs +65 -0
  655. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gap.mjs +63 -0
  656. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gcode.cjs +30 -0
  657. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gcode.mjs +28 -0
  658. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gdscript.cjs +44 -0
  659. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gdscript.mjs +42 -0
  660. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gedcom.cjs +44 -0
  661. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gedcom.mjs +42 -0
  662. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gettext.cjs +56 -0
  663. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gettext.mjs +54 -0
  664. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gherkin.cjs +99 -0
  665. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gherkin.mjs +97 -0
  666. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/git.cjs +77 -0
  667. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/git.mjs +75 -0
  668. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/glsl.cjs +21 -0
  669. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/glsl.mjs +19 -0
  670. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gml.cjs +30 -0
  671. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gml.mjs +28 -0
  672. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gn.cjs +65 -0
  673. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gn.mjs +63 -0
  674. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/go-module.cjs +38 -0
  675. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/go-module.mjs +36 -0
  676. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/go.cjs +46 -0
  677. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/go.mjs +44 -0
  678. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gradle.cjs +76 -0
  679. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gradle.mjs +74 -0
  680. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/graphql.cjs +230 -0
  681. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/graphql.mjs +228 -0
  682. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/groovy.cjs +79 -0
  683. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/groovy.mjs +77 -0
  684. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/haml.cjs +178 -0
  685. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/haml.mjs +176 -0
  686. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/handlebars.cjs +59 -0
  687. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/handlebars.mjs +57 -0
  688. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/haskell.cjs +84 -0
  689. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/haskell.mjs +82 -0
  690. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/haxe.cjs +94 -0
  691. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/haxe.mjs +92 -0
  692. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/hcl.cjs +79 -0
  693. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/hcl.mjs +77 -0
  694. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/hlsl.cjs +37 -0
  695. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/hlsl.mjs +35 -0
  696. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/hoon.cjs +29 -0
  697. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/hoon.mjs +27 -0
  698. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/hpkp.cjs +29 -0
  699. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/hpkp.mjs +27 -0
  700. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/hsts.cjs +28 -0
  701. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/hsts.mjs +26 -0
  702. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/http.cjs +168 -0
  703. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/http.mjs +166 -0
  704. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ichigojam.cjs +31 -0
  705. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ichigojam.mjs +29 -0
  706. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/icon.cjs +37 -0
  707. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/icon.mjs +35 -0
  708. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/icu-message-format.cjs +165 -0
  709. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/icu-message-format.mjs +163 -0
  710. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/idris.cjs +35 -0
  711. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/idris.mjs +33 -0
  712. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/iecst.cjs +50 -0
  713. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/iecst.mjs +48 -0
  714. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ignore.cjs +35 -0
  715. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ignore.mjs +33 -0
  716. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/inform7.cjs +81 -0
  717. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/inform7.mjs +79 -0
  718. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ini.cjs +56 -0
  719. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ini.mjs +54 -0
  720. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/io.cjs +39 -0
  721. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/io.mjs +37 -0
  722. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/j.cjs +45 -0
  723. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/j.mjs +43 -0
  724. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/java.cjs +168 -0
  725. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/java.mjs +166 -0
  726. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/javadoc.cjs +113 -0
  727. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/javadoc.mjs +111 -0
  728. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/javadoclike.cjs +98 -0
  729. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/javadoclike.mjs +96 -0
  730. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/javascript.cjs +200 -0
  731. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/javascript.mjs +198 -0
  732. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/javastacktrace.cjs +153 -0
  733. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/javastacktrace.mjs +151 -0
  734. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/jexl.cjs +30 -0
  735. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/jexl.mjs +28 -0
  736. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/jolie.cjs +63 -0
  737. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/jolie.mjs +61 -0
  738. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/jq.cjs +84 -0
  739. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/jq.mjs +82 -0
  740. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/js-extras.cjs +165 -0
  741. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/js-extras.mjs +163 -0
  742. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/js-templates.cjs +371 -0
  743. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/js-templates.mjs +369 -0
  744. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/jsdoc.cjs +107 -0
  745. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/jsdoc.mjs +105 -0
  746. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/json.cjs +40 -0
  747. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/json.mjs +38 -0
  748. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/json5.cjs +39 -0
  749. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/json5.mjs +37 -0
  750. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/jsonp.cjs +23 -0
  751. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/jsonp.mjs +21 -0
  752. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/jsstacktrace.cjs +57 -0
  753. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/jsstacktrace.mjs +55 -0
  754. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/jsx.cjs +196 -0
  755. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/jsx.mjs +194 -0
  756. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/julia.cjs +54 -0
  757. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/julia.mjs +52 -0
  758. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/keepalived.cjs +67 -0
  759. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/keepalived.mjs +65 -0
  760. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/keyman.cjs +58 -0
  761. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/keyman.mjs +56 -0
  762. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/kotlin.cjs +101 -0
  763. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/kotlin.mjs +99 -0
  764. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/kumir.cjs +119 -0
  765. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/kumir.mjs +117 -0
  766. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/kusto.cjs +58 -0
  767. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/kusto.mjs +56 -0
  768. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/latex.cjs +81 -0
  769. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/latex.mjs +79 -0
  770. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/latte.cjs +90 -0
  771. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/latte.mjs +88 -0
  772. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/less.cjs +70 -0
  773. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/less.mjs +68 -0
  774. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/lilypond.cjs +95 -0
  775. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/lilypond.mjs +93 -0
  776. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/linker-script.cjs +39 -0
  777. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/linker-script.mjs +37 -0
  778. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/liquid.cjs +87 -0
  779. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/liquid.mjs +85 -0
  780. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/lisp.cjs +227 -0
  781. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/lisp.mjs +225 -0
  782. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/livescript.cjs +136 -0
  783. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/livescript.mjs +134 -0
  784. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/llvm.cjs +35 -0
  785. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/llvm.mjs +33 -0
  786. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/log.cjs +133 -0
  787. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/log.mjs +131 -0
  788. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/lolcode.cjs +64 -0
  789. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/lolcode.mjs +62 -0
  790. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/lua.cjs +37 -0
  791. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/lua.mjs +35 -0
  792. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/magma.cjs +47 -0
  793. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/magma.mjs +45 -0
  794. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/makefile.cjs +46 -0
  795. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/makefile.mjs +44 -0
  796. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/markdown.cjs +403 -0
  797. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/markdown.mjs +401 -0
  798. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/markup-templating.cjs +139 -0
  799. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/markup-templating.mjs +137 -0
  800. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/markup.cjs +206 -0
  801. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/markup.mjs +204 -0
  802. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/mata.cjs +61 -0
  803. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/mata.mjs +59 -0
  804. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/matlab.cjs +28 -0
  805. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/matlab.mjs +26 -0
  806. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/maxscript.cjs +102 -0
  807. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/maxscript.mjs +100 -0
  808. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/mel.cjs +60 -0
  809. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/mel.mjs +58 -0
  810. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/mermaid.cjs +126 -0
  811. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/mermaid.mjs +124 -0
  812. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/metafont.cjs +106 -0
  813. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/metafont.mjs +104 -0
  814. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/mizar.cjs +27 -0
  815. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/mizar.mjs +25 -0
  816. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/mongodb.cjs +312 -0
  817. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/mongodb.mjs +310 -0
  818. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/monkey.cjs +45 -0
  819. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/monkey.mjs +43 -0
  820. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/moonscript.cjs +74 -0
  821. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/moonscript.mjs +72 -0
  822. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/n1ql.cjs +40 -0
  823. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/n1ql.mjs +38 -0
  824. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/n4js.cjs +30 -0
  825. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/n4js.mjs +28 -0
  826. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/nand2tetris-hdl.cjs +23 -0
  827. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/nand2tetris-hdl.mjs +21 -0
  828. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/naniscript.cjs +180 -0
  829. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/naniscript.mjs +178 -0
  830. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/nasm.cjs +40 -0
  831. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/nasm.mjs +38 -0
  832. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/neon.cjs +58 -0
  833. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/neon.mjs +56 -0
  834. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/nevod.cjs +143 -0
  835. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/nevod.mjs +141 -0
  836. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/nginx.cjs +67 -0
  837. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/nginx.mjs +65 -0
  838. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/nim.cjs +61 -0
  839. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/nim.mjs +59 -0
  840. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/nix.cjs +52 -0
  841. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/nix.mjs +50 -0
  842. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/nsis.cjs +47 -0
  843. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/nsis.mjs +45 -0
  844. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/objectivec.cjs +28 -0
  845. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/objectivec.mjs +26 -0
  846. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ocaml.cjs +73 -0
  847. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ocaml.mjs +71 -0
  848. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/odin.cjs +102 -0
  849. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/odin.mjs +100 -0
  850. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/opencl.cjs +83 -0
  851. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/opencl.mjs +81 -0
  852. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/openqasm.cjs +37 -0
  853. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/openqasm.mjs +35 -0
  854. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/oz.cjs +45 -0
  855. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/oz.mjs +43 -0
  856. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/parigp.cjs +67 -0
  857. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/parigp.mjs +65 -0
  858. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/parser.cjs +93 -0
  859. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/parser.mjs +91 -0
  860. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/pascal.cjs +87 -0
  861. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/pascal.mjs +85 -0
  862. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/pascaligo.cjs +101 -0
  863. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/pascaligo.mjs +99 -0
  864. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/pcaxis.cjs +68 -0
  865. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/pcaxis.mjs +66 -0
  866. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/peoplecode.cjs +58 -0
  867. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/peoplecode.mjs +56 -0
  868. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/perl.cjs +164 -0
  869. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/perl.mjs +162 -0
  870. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/php-extras.cjs +32 -0
  871. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/php-extras.mjs +30 -0
  872. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/php.cjs +366 -0
  873. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/php.mjs +364 -0
  874. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/phpdoc.cjs +49 -0
  875. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/phpdoc.mjs +47 -0
  876. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/plant-uml.cjs +127 -0
  877. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/plant-uml.mjs +125 -0
  878. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/plsql.cjs +34 -0
  879. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/plsql.mjs +32 -0
  880. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/powerquery.cjs +71 -0
  881. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/powerquery.mjs +69 -0
  882. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/powershell.cjs +72 -0
  883. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/powershell.mjs +70 -0
  884. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/processing.cjs +32 -0
  885. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/processing.mjs +30 -0
  886. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/prolog.cjs +33 -0
  887. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/prolog.mjs +31 -0
  888. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/promql.cjs +113 -0
  889. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/promql.mjs +111 -0
  890. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/properties.cjs +28 -0
  891. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/properties.mjs +26 -0
  892. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/protobuf.cjs +60 -0
  893. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/protobuf.mjs +58 -0
  894. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/psl.cjs +53 -0
  895. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/psl.mjs +51 -0
  896. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/pug.cjs +225 -0
  897. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/pug.mjs +223 -0
  898. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/puppet.cjs +159 -0
  899. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/puppet.mjs +157 -0
  900. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/pure.cjs +110 -0
  901. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/pure.mjs +108 -0
  902. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/purebasic.cjs +87 -0
  903. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/purebasic.mjs +85 -0
  904. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/purescript.cjs +47 -0
  905. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/purescript.mjs +45 -0
  906. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/python.cjs +84 -0
  907. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/python.mjs +82 -0
  908. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/q.cjs +68 -0
  909. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/q.mjs +66 -0
  910. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/qml.cjs +98 -0
  911. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/qml.mjs +96 -0
  912. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/qore.cjs +40 -0
  913. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/qore.mjs +38 -0
  914. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/qsharp.cjs +156 -0
  915. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/qsharp.mjs +154 -0
  916. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/r.cjs +37 -0
  917. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/r.mjs +35 -0
  918. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/racket.cjs +33 -0
  919. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/racket.mjs +31 -0
  920. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/reason.cjs +44 -0
  921. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/reason.mjs +42 -0
  922. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/regex.cjs +116 -0
  923. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/regex.mjs +114 -0
  924. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/rego.cjs +43 -0
  925. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/rego.mjs +41 -0
  926. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/renpy.cjs +38 -0
  927. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/renpy.mjs +36 -0
  928. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/rescript.cjs +80 -0
  929. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/rescript.mjs +78 -0
  930. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/rest.cjs +225 -0
  931. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/rest.mjs +223 -0
  932. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/rip.cjs +45 -0
  933. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/rip.mjs +43 -0
  934. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/roboconf.cjs +42 -0
  935. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/roboconf.mjs +40 -0
  936. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/robotframework.cjs +115 -0
  937. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/robotframework.mjs +113 -0
  938. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ruby.cjs +211 -0
  939. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ruby.mjs +209 -0
  940. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/rust.cjs +138 -0
  941. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/rust.mjs +136 -0
  942. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/sas.cjs +372 -0
  943. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/sas.mjs +370 -0
  944. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/sass.cjs +90 -0
  945. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/sass.mjs +88 -0
  946. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/scala.cjs +69 -0
  947. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/scala.mjs +67 -0
  948. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/scheme.cjs +147 -0
  949. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/scheme.mjs +145 -0
  950. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/scss.cjs +95 -0
  951. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/scss.mjs +93 -0
  952. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/shell-session.cjs +87 -0
  953. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/shell-session.mjs +85 -0
  954. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/smali.cjs +99 -0
  955. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/smali.mjs +97 -0
  956. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/smalltalk.cjs +52 -0
  957. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/smalltalk.mjs +50 -0
  958. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/smarty.cjs +152 -0
  959. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/smarty.mjs +150 -0
  960. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/sml.cjs +81 -0
  961. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/sml.mjs +79 -0
  962. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/solidity.cjs +39 -0
  963. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/solidity.mjs +37 -0
  964. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/solution-file.cjs +62 -0
  965. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/solution-file.mjs +60 -0
  966. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/soy.cjs +115 -0
  967. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/soy.mjs +113 -0
  968. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/sparql.cjs +32 -0
  969. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/sparql.mjs +30 -0
  970. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/splunk-spl.cjs +39 -0
  971. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/splunk-spl.mjs +37 -0
  972. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/sqf.cjs +53 -0
  973. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/sqf.mjs +51 -0
  974. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/sql.cjs +50 -0
  975. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/sql.mjs +48 -0
  976. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/squirrel.cjs +61 -0
  977. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/squirrel.mjs +59 -0
  978. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/stan.cjs +77 -0
  979. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/stan.mjs +75 -0
  980. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/stata.cjs +94 -0
  981. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/stata.mjs +92 -0
  982. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/stylus.cjs +154 -0
  983. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/stylus.mjs +152 -0
  984. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/supercollider.cjs +48 -0
  985. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/supercollider.mjs +46 -0
  986. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/swift.cjs +161 -0
  987. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/swift.mjs +159 -0
  988. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/systemd.cjs +83 -0
  989. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/systemd.mjs +81 -0
  990. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/t4-cs.cjs +21 -0
  991. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/t4-cs.mjs +19 -0
  992. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/t4-templating.cjs +60 -0
  993. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/t4-templating.mjs +58 -0
  994. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/t4-vb.cjs +20 -0
  995. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/t4-vb.mjs +18 -0
  996. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/tap.cjs +39 -0
  997. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/tap.mjs +37 -0
  998. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/tcl.cjs +63 -0
  999. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/tcl.mjs +61 -0
  1000. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/textile.cjs +309 -0
  1001. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/textile.mjs +307 -0
  1002. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/toml.cjs +74 -0
  1003. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/toml.mjs +72 -0
  1004. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/tremor.cjs +90 -0
  1005. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/tremor.mjs +88 -0
  1006. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/tsx.cjs +37 -0
  1007. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/tsx.mjs +35 -0
  1008. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/tt2.cjs +70 -0
  1009. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/tt2.mjs +68 -0
  1010. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/turtle.cjs +68 -0
  1011. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/turtle.mjs +66 -0
  1012. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/twig.cjs +57 -0
  1013. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/twig.mjs +55 -0
  1014. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/typescript.cjs +76 -0
  1015. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/typescript.mjs +74 -0
  1016. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/typoscript.cjs +93 -0
  1017. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/typoscript.mjs +91 -0
  1018. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/unrealscript.cjs +57 -0
  1019. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/unrealscript.mjs +55 -0
  1020. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/uorazor.cjs +67 -0
  1021. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/uorazor.mjs +65 -0
  1022. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/uri.cjs +109 -0
  1023. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/uri.mjs +107 -0
  1024. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/v.cjs +100 -0
  1025. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/v.mjs +98 -0
  1026. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/vala.cjs +105 -0
  1027. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/vala.mjs +103 -0
  1028. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/vbnet.cjs +40 -0
  1029. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/vbnet.mjs +38 -0
  1030. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/velocity.cjs +88 -0
  1031. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/velocity.mjs +86 -0
  1032. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/verilog.cjs +42 -0
  1033. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/verilog.mjs +40 -0
  1034. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/vhdl.cjs +42 -0
  1035. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/vhdl.mjs +40 -0
  1036. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/vim.cjs +27 -0
  1037. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/vim.mjs +25 -0
  1038. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/visual-basic.cjs +46 -0
  1039. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/visual-basic.mjs +44 -0
  1040. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/warpscript.cjs +39 -0
  1041. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/warpscript.mjs +37 -0
  1042. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/wasm.cjs +47 -0
  1043. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/wasm.mjs +45 -0
  1044. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/web-idl.cjs +124 -0
  1045. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/web-idl.mjs +122 -0
  1046. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/wgsl.cjs +116 -0
  1047. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/wgsl.mjs +114 -0
  1048. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/wiki.cjs +95 -0
  1049. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/wiki.mjs +93 -0
  1050. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/wolfram.cjs +46 -0
  1051. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/wolfram.mjs +44 -0
  1052. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/wren.cjs +109 -0
  1053. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/wren.mjs +107 -0
  1054. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/xeora.cjs +136 -0
  1055. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/xeora.mjs +134 -0
  1056. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/xml-doc.cjs +52 -0
  1057. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/xml-doc.mjs +50 -0
  1058. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/xojo.cjs +34 -0
  1059. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/xojo.mjs +32 -0
  1060. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/xquery.cjs +208 -0
  1061. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/xquery.mjs +206 -0
  1062. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/yaml.cjs +133 -0
  1063. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/yaml.mjs +131 -0
  1064. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/yang.cjs +34 -0
  1065. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/yang.mjs +32 -0
  1066. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/zig.cjs +135 -0
  1067. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/zig.mjs +133 -0
  1068. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lib/all.cjs +605 -0
  1069. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lib/all.mjs +603 -0
  1070. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lib/core.cjs +273 -0
  1071. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lib/core.mjs +271 -0
  1072. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lib/prism-core.cjs +767 -0
  1073. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lib/prism-core.mjs +765 -0
  1074. package/dist/node_modules/.pnpm/rope-sequence@1.3.4/node_modules/rope-sequence/dist/index.cjs +209 -0
  1075. package/dist/node_modules/.pnpm/rope-sequence@1.3.4/node_modules/rope-sequence/dist/index.mjs +207 -0
  1076. package/dist/node_modules/.pnpm/space-separated-tokens@2.0.2/node_modules/space-separated-tokens/index.cjs +16 -0
  1077. package/dist/node_modules/.pnpm/space-separated-tokens@2.0.2/node_modules/space-separated-tokens/index.mjs +14 -0
  1078. package/dist/node_modules/.pnpm/use-sync-external-store@1.2.2_react@19.2.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.cjs +181 -0
  1079. package/dist/node_modules/.pnpm/use-sync-external-store@1.2.2_react@19.2.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.mjs +175 -0
  1080. package/dist/node_modules/.pnpm/use-sync-external-store@1.2.2_react@19.2.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.min.cjs +32 -0
  1081. package/dist/node_modules/.pnpm/use-sync-external-store@1.2.2_react@19.2.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.min.mjs +26 -0
  1082. package/dist/node_modules/.pnpm/use-sync-external-store@1.2.2_react@19.2.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.cjs +254 -0
  1083. package/dist/node_modules/.pnpm/use-sync-external-store@1.2.2_react@19.2.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.mjs +248 -0
  1084. package/dist/node_modules/.pnpm/use-sync-external-store@1.2.2_react@19.2.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.min.cjs +30 -0
  1085. package/dist/node_modules/.pnpm/use-sync-external-store@1.2.2_react@19.2.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.min.mjs +24 -0
  1086. package/dist/node_modules/.pnpm/use-sync-external-store@1.2.2_react@19.2.0/node_modules/use-sync-external-store/shim/index.cjs +21 -0
  1087. package/dist/node_modules/.pnpm/use-sync-external-store@1.2.2_react@19.2.0/node_modules/use-sync-external-store/shim/index.mjs +19 -0
  1088. package/dist/node_modules/.pnpm/use-sync-external-store@1.2.2_react@19.2.0/node_modules/use-sync-external-store/shim/with-selector.cjs +21 -0
  1089. package/dist/node_modules/.pnpm/use-sync-external-store@1.2.2_react@19.2.0/node_modules/use-sync-external-store/shim/with-selector.mjs +19 -0
  1090. package/dist/node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.cjs +115 -0
  1091. package/dist/node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.mjs +109 -0
  1092. package/dist/node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.cjs +103 -0
  1093. package/dist/node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.mjs +97 -0
  1094. package/dist/node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.cjs +112 -0
  1095. package/dist/node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.mjs +106 -0
  1096. package/dist/node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.cjs +83 -0
  1097. package/dist/node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.mjs +77 -0
  1098. package/dist/node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.0/node_modules/use-sync-external-store/shim/index.cjs +21 -0
  1099. package/dist/node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.0/node_modules/use-sync-external-store/shim/index.mjs +19 -0
  1100. package/dist/node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.0/node_modules/use-sync-external-store/shim/with-selector.cjs +21 -0
  1101. package/dist/node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.0/node_modules/use-sync-external-store/shim/with-selector.mjs +19 -0
  1102. package/dist/node_modules/.pnpm/w3c-keyname@2.2.8/node_modules/w3c-keyname/index.cjs +125 -0
  1103. package/dist/node_modules/.pnpm/w3c-keyname@2.2.8/node_modules/w3c-keyname/index.mjs +121 -0
  1104. package/dist/node_modules/.pnpm/zundo@2.3.0_zustand@4.5.5_@types_react@19.2.6_immer@11.1.3_react@19.2.0_/node_modules/zundo/dist/index.cjs +112 -0
  1105. package/dist/node_modules/.pnpm/zundo@2.3.0_zustand@4.5.5_@types_react@19.2.6_immer@11.1.3_react@19.2.0_/node_modules/zundo/dist/index.mjs +110 -0
  1106. package/dist/node_modules/.pnpm/zustand@4.5.5_@types_react@19.2.6_immer@11.1.3_react@19.2.0/node_modules/zustand/esm/index.cjs +47 -0
  1107. package/dist/node_modules/.pnpm/zustand@4.5.5_@types_react@19.2.6_immer@11.1.3_react@19.2.0/node_modules/zustand/esm/index.mjs +39 -0
  1108. package/dist/node_modules/.pnpm/zustand@4.5.5_@types_react@19.2.6_immer@11.1.3_react@19.2.0/node_modules/zustand/esm/middleware.cjs +339 -0
  1109. package/dist/node_modules/.pnpm/zustand@4.5.5_@types_react@19.2.6_immer@11.1.3_react@19.2.0/node_modules/zustand/esm/middleware.mjs +336 -0
  1110. package/dist/node_modules/.pnpm/zustand@4.5.5_@types_react@19.2.6_immer@11.1.3_react@19.2.0/node_modules/zustand/esm/vanilla.cjs +34 -0
  1111. package/dist/node_modules/.pnpm/zustand@4.5.5_@types_react@19.2.6_immer@11.1.3_react@19.2.0/node_modules/zustand/esm/vanilla.mjs +32 -0
  1112. package/dist/packages/better-stack/src/plugins/ai-chat/client/components/chat-input.cjs +5 -5
  1113. package/dist/packages/better-stack/src/plugins/ai-chat/client/components/chat-layout.cjs +3 -3
  1114. package/dist/packages/better-stack/src/plugins/ai-chat/client/components/chat-message.cjs +10 -10
  1115. package/dist/packages/better-stack/src/plugins/ai-chat/client/components/chat-sidebar.cjs +6 -6
  1116. package/dist/packages/better-stack/src/plugins/ai-chat/client/components/shared/error-placeholder.cjs +2 -2
  1117. package/dist/packages/better-stack/src/plugins/ai-chat/client/components/tool-call-display.cjs +6 -6
  1118. package/dist/packages/better-stack/src/plugins/blog/client/components/forms/image-field.cjs +4 -4
  1119. package/dist/packages/better-stack/src/plugins/blog/client/components/forms/post-forms.cjs +2 -2
  1120. package/dist/packages/better-stack/src/plugins/blog/client/components/shared/empty-list.cjs +2 -2
  1121. package/dist/packages/better-stack/src/plugins/blog/client/components/shared/error-placeholder.cjs +2 -2
  1122. package/dist/packages/better-stack/src/plugins/blog/client/components/shared/on-this-page.cjs +2 -2
  1123. package/dist/packages/better-stack/src/plugins/blog/client/components/shared/post-card.cjs +2 -2
  1124. package/dist/packages/better-stack/src/plugins/blog/client/components/shared/post-navigation.cjs +3 -3
  1125. package/dist/packages/better-stack/src/plugins/blog/client/components/shared/search-modal.cjs +2 -2
  1126. package/dist/packages/better-stack/src/plugins/cms/client/components/forms/content-form.cjs +4 -4
  1127. package/dist/packages/better-stack/src/plugins/cms/client/components/forms/content-form.mjs +1 -1
  1128. package/dist/packages/better-stack/src/plugins/cms/client/components/forms/file-upload.cjs +3 -3
  1129. package/dist/packages/better-stack/src/plugins/cms/client/components/forms/relation-field.cjs +3 -3
  1130. package/dist/packages/better-stack/src/plugins/cms/client/components/inverse-relations-panel.cjs +5 -5
  1131. package/dist/packages/better-stack/src/plugins/cms/client/components/pages/content-editor-page.internal.cjs +2 -2
  1132. package/dist/packages/better-stack/src/plugins/cms/client/components/pages/content-list-page.internal.cjs +7 -7
  1133. package/dist/packages/better-stack/src/plugins/cms/client/components/pages/dashboard-page.internal.cjs +2 -2
  1134. package/dist/packages/better-stack/src/plugins/cms/client/components/shared/default-error.cjs +2 -2
  1135. package/dist/packages/better-stack/src/plugins/cms/client/components/shared/empty-state.cjs +2 -2
  1136. package/dist/packages/better-stack/src/plugins/form-builder/client/components/forms/form-renderer.cjs +5 -5
  1137. package/dist/packages/better-stack/src/plugins/form-builder/client/components/forms/form-renderer.mjs +1 -1
  1138. package/dist/packages/better-stack/src/plugins/form-builder/client/components/pages/form-builder-page.internal.cjs +3 -3
  1139. package/dist/packages/better-stack/src/plugins/form-builder/client/components/pages/form-list-page.internal.cjs +7 -7
  1140. package/dist/packages/better-stack/src/plugins/form-builder/client/components/pages/submissions-page.internal.cjs +4 -4
  1141. package/dist/packages/better-stack/src/plugins/form-builder/client/components/shared/default-error.cjs +2 -2
  1142. package/dist/packages/better-stack/src/plugins/form-builder/client/components/shared/empty-state.cjs +2 -2
  1143. package/dist/packages/better-stack/src/plugins/form-builder/client/components/shared/pagination.cjs +2 -2
  1144. package/dist/packages/better-stack/src/plugins/route-docs/client/components/pages/docs-page.cjs +22 -22
  1145. package/dist/packages/better-stack/src/plugins/ui-builder/client/components/loading/page-builder-skeleton.cjs +36 -0
  1146. package/dist/packages/better-stack/src/plugins/ui-builder/client/components/loading/page-builder-skeleton.mjs +34 -0
  1147. package/dist/packages/better-stack/src/plugins/ui-builder/client/components/loading/page-list-skeleton.cjs +21 -0
  1148. package/dist/packages/better-stack/src/plugins/ui-builder/client/components/loading/page-list-skeleton.mjs +19 -0
  1149. package/dist/packages/better-stack/src/plugins/ui-builder/client/components/page-renderer.cjs +96 -0
  1150. package/dist/packages/better-stack/src/plugins/ui-builder/client/components/page-renderer.mjs +93 -0
  1151. package/dist/packages/better-stack/src/plugins/ui-builder/client/components/pages/page-builder-page.cjs +19 -0
  1152. package/dist/packages/better-stack/src/plugins/ui-builder/client/components/pages/page-builder-page.internal.cjs +223 -0
  1153. package/dist/packages/better-stack/src/plugins/ui-builder/client/components/pages/page-builder-page.internal.mjs +221 -0
  1154. package/dist/packages/better-stack/src/plugins/ui-builder/client/components/pages/page-builder-page.mjs +17 -0
  1155. package/dist/packages/better-stack/src/plugins/ui-builder/client/components/pages/page-list-page.cjs +19 -0
  1156. package/dist/packages/better-stack/src/plugins/ui-builder/client/components/pages/page-list-page.internal.cjs +151 -0
  1157. package/dist/packages/better-stack/src/plugins/ui-builder/client/components/pages/page-list-page.internal.mjs +149 -0
  1158. package/dist/packages/better-stack/src/plugins/ui-builder/client/components/pages/page-list-page.mjs +17 -0
  1159. package/dist/packages/better-stack/src/plugins/ui-builder/client/components/shared/default-error.cjs +17 -0
  1160. package/dist/packages/better-stack/src/plugins/ui-builder/client/components/shared/default-error.mjs +15 -0
  1161. package/dist/packages/better-stack/src/plugins/ui-builder/client/components/shared/empty-state.cjs +16 -0
  1162. package/dist/packages/better-stack/src/plugins/ui-builder/client/components/shared/empty-state.mjs +14 -0
  1163. package/dist/packages/better-stack/src/plugins/ui-builder/client/components/shared/page-wrapper.cjs +27 -0
  1164. package/dist/packages/better-stack/src/plugins/ui-builder/client/components/shared/page-wrapper.mjs +25 -0
  1165. package/dist/packages/better-stack/src/plugins/ui-builder/client/components/shared/pagination.cjs +39 -0
  1166. package/dist/packages/better-stack/src/plugins/ui-builder/client/components/shared/pagination.mjs +37 -0
  1167. package/dist/packages/better-stack/src/plugins/ui-builder/client/hooks/ui-builder-hooks.cjs +437 -0
  1168. package/dist/packages/better-stack/src/plugins/ui-builder/client/hooks/ui-builder-hooks.mjs +427 -0
  1169. package/dist/packages/better-stack/src/plugins/ui-builder/client/localization/index.cjs +60 -0
  1170. package/dist/packages/better-stack/src/plugins/ui-builder/client/localization/index.mjs +58 -0
  1171. package/dist/packages/better-stack/src/plugins/ui-builder/client/plugin.cjs +193 -0
  1172. package/dist/packages/better-stack/src/plugins/ui-builder/client/plugin.mjs +191 -0
  1173. package/dist/packages/better-stack/src/plugins/ui-builder/client/registry.cjs +479 -0
  1174. package/dist/packages/better-stack/src/plugins/ui-builder/client/registry.mjs +474 -0
  1175. package/dist/packages/better-stack/src/plugins/ui-builder/schemas.cjs +23 -0
  1176. package/dist/packages/better-stack/src/plugins/ui-builder/schemas.mjs +19 -0
  1177. package/dist/packages/ui/src/components/accordion.cjs +2 -2
  1178. package/dist/packages/ui/src/components/accordion.mjs +1 -1
  1179. package/dist/packages/ui/src/components/auto-form/fields/array.cjs +5 -5
  1180. package/dist/packages/ui/src/components/auto-form/fields/array.mjs +1 -1
  1181. package/dist/packages/ui/src/components/auto-form/fields/date.cjs +2 -2
  1182. package/dist/packages/ui/src/components/auto-form/fields/date.mjs +1 -1
  1183. package/dist/packages/ui/src/components/auto-form/fields/enum.cjs +2 -2
  1184. package/dist/packages/ui/src/components/auto-form/fields/enum.mjs +1 -1
  1185. package/dist/packages/ui/src/components/auto-form/fields/object.cjs +9 -9
  1186. package/dist/packages/ui/src/components/auto-form/fields/object.mjs +1 -1
  1187. package/dist/packages/ui/src/components/auto-form/fields/radio-group.cjs +2 -2
  1188. package/dist/packages/ui/src/components/auto-form/fields/radio-group.mjs +1 -1
  1189. package/dist/packages/ui/src/components/auto-form/index.cjs +5 -5
  1190. package/dist/packages/ui/src/components/auto-form/index.mjs +1 -1
  1191. package/dist/packages/ui/src/components/button.cjs +4 -2
  1192. package/dist/packages/ui/src/components/button.mjs +4 -2
  1193. package/dist/packages/ui/src/components/calendar.cjs +4 -4
  1194. package/dist/packages/ui/src/components/card.cjs +11 -0
  1195. package/dist/packages/ui/src/components/card.mjs +11 -1
  1196. package/dist/packages/ui/src/components/carousel.cjs +3 -3
  1197. package/dist/packages/ui/src/components/checkbox.cjs +2 -2
  1198. package/dist/packages/ui/src/components/command.cjs +33 -2
  1199. package/dist/packages/ui/src/components/command.mjs +31 -2
  1200. package/dist/packages/ui/src/components/date-picker.cjs +2 -2
  1201. package/dist/packages/ui/src/components/dialog.cjs +9 -3
  1202. package/dist/packages/ui/src/components/dialog.mjs +7 -2
  1203. package/dist/packages/ui/src/components/dropdown-menu.cjs +14 -0
  1204. package/dist/packages/ui/src/components/dropdown-menu.mjs +15 -2
  1205. package/dist/packages/ui/src/components/form-builder/components/index.cjs +15 -15
  1206. package/dist/packages/ui/src/components/form-builder/edit-field-dialog.cjs +2 -2
  1207. package/dist/packages/ui/src/components/form-builder/edit-field-dialog.mjs +1 -1
  1208. package/dist/packages/ui/src/components/form-builder/form-preview.cjs +5 -5
  1209. package/dist/packages/ui/src/components/form-builder/form-preview.mjs +1 -1
  1210. package/dist/packages/ui/src/components/form-builder/nested-field-editor-dialog.cjs +2 -2
  1211. package/dist/packages/ui/src/components/form-builder/sortable-field.cjs +6 -6
  1212. package/dist/packages/ui/src/components/form-builder/step-tabs.cjs +7 -7
  1213. package/dist/packages/ui/src/components/markdown-content.cjs +2 -2
  1214. package/dist/packages/ui/src/components/minimal-tiptap/components/bubble-menu/link-bubble-menu.cjs +112 -0
  1215. package/dist/packages/ui/src/components/minimal-tiptap/components/bubble-menu/link-bubble-menu.mjs +96 -0
  1216. package/dist/packages/ui/src/components/minimal-tiptap/components/image/image-edit-block.cjs +97 -0
  1217. package/dist/packages/ui/src/components/minimal-tiptap/components/image/image-edit-block.mjs +78 -0
  1218. package/dist/packages/ui/src/components/minimal-tiptap/components/image/image-edit-dialog.cjs +34 -0
  1219. package/dist/packages/ui/src/components/minimal-tiptap/components/image/image-edit-dialog.mjs +32 -0
  1220. package/dist/packages/ui/src/components/minimal-tiptap/components/link/link-edit-block.cjs +94 -0
  1221. package/dist/packages/ui/src/components/minimal-tiptap/components/link/link-edit-block.mjs +75 -0
  1222. package/dist/packages/ui/src/components/minimal-tiptap/components/link/link-edit-popover.cjs +64 -0
  1223. package/dist/packages/ui/src/components/minimal-tiptap/components/link/link-edit-popover.mjs +48 -0
  1224. package/dist/packages/ui/src/components/minimal-tiptap/components/link/link-popover-block.cjs +72 -0
  1225. package/dist/packages/ui/src/components/minimal-tiptap/components/link/link-popover-block.mjs +56 -0
  1226. package/dist/packages/ui/src/components/minimal-tiptap/components/measured-container.cjs +38 -0
  1227. package/dist/packages/ui/src/components/minimal-tiptap/components/measured-container.mjs +22 -0
  1228. package/dist/packages/ui/src/components/minimal-tiptap/components/section/five.cjs +71 -0
  1229. package/dist/packages/ui/src/components/minimal-tiptap/components/section/five.mjs +66 -0
  1230. package/dist/packages/ui/src/components/minimal-tiptap/components/section/four.cjs +66 -0
  1231. package/dist/packages/ui/src/components/minimal-tiptap/components/section/four.mjs +61 -0
  1232. package/dist/packages/ui/src/components/minimal-tiptap/components/section/one.cjs +141 -0
  1233. package/dist/packages/ui/src/components/minimal-tiptap/components/section/one.mjs +122 -0
  1234. package/dist/packages/ui/src/components/minimal-tiptap/components/section/three.cjs +197 -0
  1235. package/dist/packages/ui/src/components/minimal-tiptap/components/section/three.mjs +178 -0
  1236. package/dist/packages/ui/src/components/minimal-tiptap/components/section/two.cjs +90 -0
  1237. package/dist/packages/ui/src/components/minimal-tiptap/components/section/two.mjs +85 -0
  1238. package/dist/packages/ui/src/components/minimal-tiptap/components/shortcut-key.cjs +40 -0
  1239. package/dist/packages/ui/src/components/minimal-tiptap/components/shortcut-key.mjs +38 -0
  1240. package/dist/packages/ui/src/components/minimal-tiptap/components/spinner.cjs +60 -0
  1241. package/dist/packages/ui/src/components/minimal-tiptap/components/spinner.mjs +44 -0
  1242. package/dist/packages/ui/src/components/minimal-tiptap/components/toolbar-button.cjs +30 -0
  1243. package/dist/packages/ui/src/components/minimal-tiptap/components/toolbar-button.mjs +25 -0
  1244. package/dist/packages/ui/src/components/minimal-tiptap/components/toolbar-section.cjs +108 -0
  1245. package/dist/packages/ui/src/components/minimal-tiptap/components/toolbar-section.mjs +89 -0
  1246. package/dist/packages/ui/src/components/minimal-tiptap/extensions/code-block-lowlight/code-block-lowlight.cjs +28 -0
  1247. package/dist/packages/ui/src/components/minimal-tiptap/extensions/code-block-lowlight/code-block-lowlight.mjs +23 -0
  1248. package/dist/packages/ui/src/components/minimal-tiptap/extensions/color/color.cjs +24 -0
  1249. package/dist/packages/ui/src/components/minimal-tiptap/extensions/color/color.mjs +22 -0
  1250. package/dist/packages/ui/src/components/minimal-tiptap/extensions/file-handler/index.cjs +94 -0
  1251. package/dist/packages/ui/src/components/minimal-tiptap/extensions/file-handler/index.mjs +92 -0
  1252. package/dist/packages/ui/src/components/minimal-tiptap/extensions/horizontal-rule/horizontal-rule.cjs +18 -0
  1253. package/dist/packages/ui/src/components/minimal-tiptap/extensions/horizontal-rule/horizontal-rule.mjs +13 -0
  1254. package/dist/packages/ui/src/components/minimal-tiptap/extensions/image/components/image-actions.cjs +139 -0
  1255. package/dist/packages/ui/src/components/minimal-tiptap/extensions/image/components/image-actions.mjs +121 -0
  1256. package/dist/packages/ui/src/components/minimal-tiptap/extensions/image/components/image-overlay.cjs +36 -0
  1257. package/dist/packages/ui/src/components/minimal-tiptap/extensions/image/components/image-overlay.mjs +20 -0
  1258. package/dist/packages/ui/src/components/minimal-tiptap/extensions/image/components/image-view-block.cjs +312 -0
  1259. package/dist/packages/ui/src/components/minimal-tiptap/extensions/image/components/image-view-block.mjs +296 -0
  1260. package/dist/packages/ui/src/components/minimal-tiptap/extensions/image/components/resize-handle.cjs +32 -0
  1261. package/dist/packages/ui/src/components/minimal-tiptap/extensions/image/components/resize-handle.mjs +30 -0
  1262. package/dist/packages/ui/src/components/minimal-tiptap/extensions/image/hooks/use-drag-resize.cjs +139 -0
  1263. package/dist/packages/ui/src/components/minimal-tiptap/extensions/image/hooks/use-drag-resize.mjs +137 -0
  1264. package/dist/packages/ui/src/components/minimal-tiptap/extensions/image/hooks/use-image-actions.cjs +55 -0
  1265. package/dist/packages/ui/src/components/minimal-tiptap/extensions/image/hooks/use-image-actions.mjs +39 -0
  1266. package/dist/packages/ui/src/components/minimal-tiptap/extensions/image/image.cjs +233 -0
  1267. package/dist/packages/ui/src/components/minimal-tiptap/extensions/image/image.mjs +231 -0
  1268. package/dist/packages/ui/src/components/minimal-tiptap/extensions/markdown-paste/markdown-paste.cjs +57 -0
  1269. package/dist/packages/ui/src/components/minimal-tiptap/extensions/markdown-paste/markdown-paste.mjs +52 -0
  1270. package/dist/packages/ui/src/components/minimal-tiptap/extensions/reset-marks-on-enter/reset-marks-on-enter.cjs +20 -0
  1271. package/dist/packages/ui/src/components/minimal-tiptap/extensions/reset-marks-on-enter/reset-marks-on-enter.mjs +18 -0
  1272. package/dist/packages/ui/src/components/minimal-tiptap/extensions/unset-all-marks/unset-all-marks.cjs +13 -0
  1273. package/dist/packages/ui/src/components/minimal-tiptap/extensions/unset-all-marks/unset-all-marks.mjs +11 -0
  1274. package/dist/packages/ui/src/components/minimal-tiptap/hooks/use-container-size.cjs +45 -0
  1275. package/dist/packages/ui/src/components/minimal-tiptap/hooks/use-container-size.mjs +43 -0
  1276. package/dist/packages/ui/src/components/minimal-tiptap/hooks/use-minimal-tiptap.cjs +259 -0
  1277. package/dist/packages/ui/src/components/minimal-tiptap/hooks/use-minimal-tiptap.mjs +240 -0
  1278. package/dist/packages/ui/src/components/minimal-tiptap/hooks/use-theme.cjs +39 -0
  1279. package/dist/packages/ui/src/components/minimal-tiptap/hooks/use-theme.mjs +20 -0
  1280. package/dist/packages/ui/src/components/minimal-tiptap/hooks/use-throttle.cjs +33 -0
  1281. package/dist/packages/ui/src/components/minimal-tiptap/hooks/use-throttle.mjs +31 -0
  1282. package/dist/packages/ui/src/components/minimal-tiptap/hooks/use-tiptap-editor.cjs +33 -0
  1283. package/dist/packages/ui/src/components/minimal-tiptap/hooks/use-tiptap-editor.mjs +31 -0
  1284. package/dist/packages/ui/src/components/minimal-tiptap/minimal-tiptap.cjs +119 -0
  1285. package/dist/packages/ui/src/components/minimal-tiptap/minimal-tiptap.mjs +113 -0
  1286. package/dist/packages/ui/src/components/minimal-tiptap/utils.cjs +164 -0
  1287. package/dist/packages/ui/src/components/minimal-tiptap/utils.mjs +153 -0
  1288. package/dist/packages/ui/src/components/multi-select.cjs +3 -3
  1289. package/dist/packages/ui/src/components/radio-group.cjs +2 -2
  1290. package/dist/packages/ui/src/components/resizable.cjs +51 -0
  1291. package/dist/packages/ui/src/components/resizable.mjs +47 -0
  1292. package/dist/packages/ui/src/components/select.cjs +13 -6
  1293. package/dist/packages/ui/src/components/select.mjs +9 -2
  1294. package/dist/packages/ui/src/components/sheet.cjs +2 -2
  1295. package/dist/packages/ui/src/components/toggle-group.cjs +85 -0
  1296. package/dist/packages/ui/src/components/toggle-group.mjs +68 -0
  1297. package/dist/packages/ui/src/components/toggle.cjs +46 -0
  1298. package/dist/packages/ui/src/components/toggle.mjs +43 -0
  1299. package/dist/packages/ui/src/components/tooltip.cjs +58 -0
  1300. package/dist/packages/ui/src/components/tooltip.mjs +53 -0
  1301. package/dist/packages/ui/src/components/ui-builder/components/code-panel.cjs +65 -0
  1302. package/dist/packages/ui/src/components/ui-builder/components/code-panel.mjs +63 -0
  1303. package/dist/packages/ui/src/components/ui-builder/components/codeblock.cjs +68 -0
  1304. package/dist/packages/ui/src/components/ui-builder/components/codeblock.mjs +66 -0
  1305. package/dist/packages/ui/src/components/ui-builder/components/flexbox.cjs +84 -0
  1306. package/dist/packages/ui/src/components/ui-builder/components/flexbox.mjs +67 -0
  1307. package/dist/packages/ui/src/components/ui-builder/components/grid.cjs +110 -0
  1308. package/dist/packages/ui/src/components/ui-builder/components/grid.mjs +93 -0
  1309. package/dist/packages/ui/src/components/ui-builder/components/icon.cjs +80 -0
  1310. package/dist/packages/ui/src/components/ui-builder/components/icon.mjs +61 -0
  1311. package/dist/packages/ui/src/components/ui-builder/components/markdown.cjs +82 -0
  1312. package/dist/packages/ui/src/components/ui-builder/components/markdown.mjs +74 -0
  1313. package/dist/packages/ui/src/components/ui-builder/index.cjs +274 -0
  1314. package/dist/packages/ui/src/components/ui-builder/index.mjs +262 -0
  1315. package/dist/packages/ui/src/components/ui-builder/internal/canvas/auto-frame.cjs +295 -0
  1316. package/dist/packages/ui/src/components/ui-builder/internal/canvas/auto-frame.mjs +289 -0
  1317. package/dist/packages/ui/src/components/ui-builder/internal/canvas/resizable-wrapper.cjs +171 -0
  1318. package/dist/packages/ui/src/components/ui-builder/internal/canvas/resizable-wrapper.mjs +168 -0
  1319. package/dist/packages/ui/src/components/ui-builder/internal/components/add-component-popover.cjs +230 -0
  1320. package/dist/packages/ui/src/components/ui-builder/internal/components/add-component-popover.mjs +224 -0
  1321. package/dist/packages/ui/src/components/ui-builder/internal/components/dev-profiler.cjs +24 -0
  1322. package/dist/packages/ui/src/components/ui-builder/internal/components/dev-profiler.mjs +22 -0
  1323. package/dist/packages/ui/src/components/ui-builder/internal/components/divider-control.cjs +41 -0
  1324. package/dist/packages/ui/src/components/ui-builder/internal/components/divider-control.mjs +39 -0
  1325. package/dist/packages/ui/src/components/ui-builder/internal/components/element-selector.cjs +329 -0
  1326. package/dist/packages/ui/src/components/ui-builder/internal/components/element-selector.mjs +326 -0
  1327. package/dist/packages/ui/src/components/ui-builder/internal/components/error-fallback.cjs +19 -0
  1328. package/dist/packages/ui/src/components/ui-builder/internal/components/error-fallback.mjs +17 -0
  1329. package/dist/packages/ui/src/components/ui-builder/internal/components/layer-menu.cjs +95 -0
  1330. package/dist/packages/ui/src/components/ui-builder/internal/components/layer-menu.mjs +93 -0
  1331. package/dist/packages/ui/src/components/ui-builder/internal/components/multi-select.cjs +555 -0
  1332. package/dist/packages/ui/src/components/ui-builder/internal/components/multi-select.mjs +540 -0
  1333. package/dist/packages/ui/src/components/ui-builder/internal/components/name-edit.cjs +72 -0
  1334. package/dist/packages/ui/src/components/ui-builder/internal/components/name-edit.mjs +70 -0
  1335. package/dist/packages/ui/src/components/ui-builder/internal/components/nav.cjs +702 -0
  1336. package/dist/packages/ui/src/components/ui-builder/internal/components/nav.mjs +700 -0
  1337. package/dist/packages/ui/src/components/ui-builder/internal/components/tree-row-node.cjs +208 -0
  1338. package/dist/packages/ui/src/components/ui-builder/internal/components/tree-row-node.mjs +205 -0
  1339. package/dist/packages/ui/src/components/ui-builder/internal/config-panel.cjs +124 -0
  1340. package/dist/packages/ui/src/components/ui-builder/internal/config-panel.mjs +119 -0
  1341. package/dist/packages/ui/src/components/ui-builder/internal/dnd/drag-handle.cjs +68 -0
  1342. package/dist/packages/ui/src/components/ui-builder/internal/dnd/drag-handle.mjs +62 -0
  1343. package/dist/packages/ui/src/components/ui-builder/internal/dnd/drop-zone.cjs +156 -0
  1344. package/dist/packages/ui/src/components/ui-builder/internal/dnd/drop-zone.mjs +150 -0
  1345. package/dist/packages/ui/src/components/ui-builder/internal/editor-panel.cjs +372 -0
  1346. package/dist/packages/ui/src/components/ui-builder/internal/editor-panel.mjs +370 -0
  1347. package/dist/packages/ui/src/components/ui-builder/internal/form-fields/children-searchable-select.cjs +55 -0
  1348. package/dist/packages/ui/src/components/ui-builder/internal/form-fields/children-searchable-select.mjs +53 -0
  1349. package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/breakpoint-classname-control.cjs +169 -0
  1350. package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/breakpoint-classname-control.mjs +167 -0
  1351. package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/classname-group-control.cjs +60 -0
  1352. package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/classname-group-control.mjs +58 -0
  1353. package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/classname-item-control.cjs +207 -0
  1354. package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/classname-item-control.mjs +205 -0
  1355. package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/classname-multiselect.cjs +65 -0
  1356. package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/classname-multiselect.mjs +63 -0
  1357. package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/config.cjs +654 -0
  1358. package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/config.mjs +650 -0
  1359. package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/helpers.cjs +11 -0
  1360. package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/helpers.mjs +8 -0
  1361. package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/icons.cjs +186 -0
  1362. package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/icons.mjs +173 -0
  1363. package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/index.cjs +8 -0
  1364. package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/index.mjs +6 -0
  1365. package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/theme-aware-config.cjs +66 -0
  1366. package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/theme-aware-config.mjs +58 -0
  1367. package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/theme-aware-dropdown-option.cjs +68 -0
  1368. package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/theme-aware-dropdown-option.mjs +66 -0
  1369. package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/toggle-group.cjs +282 -0
  1370. package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/toggle-group.mjs +279 -0
  1371. package/dist/packages/ui/src/components/ui-builder/internal/form-fields/iconname-field.cjs +65 -0
  1372. package/dist/packages/ui/src/components/ui-builder/internal/form-fields/iconname-field.mjs +63 -0
  1373. package/dist/packages/ui/src/components/ui-builder/internal/layers-panel.cjs +287 -0
  1374. package/dist/packages/ui/src/components/ui-builder/internal/layers-panel.mjs +278 -0
  1375. package/dist/packages/ui/src/components/ui-builder/internal/props-panel.cjs +269 -0
  1376. package/dist/packages/ui/src/components/ui-builder/internal/props-panel.mjs +263 -0
  1377. package/dist/packages/ui/src/components/ui-builder/internal/tailwind-theme-panel.cjs +259 -0
  1378. package/dist/packages/ui/src/components/ui-builder/internal/tailwind-theme-panel.mjs +257 -0
  1379. package/dist/packages/ui/src/components/ui-builder/internal/utils/base-colors.cjs +780 -0
  1380. package/dist/packages/ui/src/components/ui-builder/internal/utils/base-colors.mjs +777 -0
  1381. package/dist/packages/ui/src/components/ui-builder/internal/utils/render-utils.cjs +173 -0
  1382. package/dist/packages/ui/src/components/ui-builder/internal/utils/render-utils.mjs +171 -0
  1383. package/dist/packages/ui/src/components/ui-builder/internal/utils/tailwind-classes.cjs +10324 -0
  1384. package/dist/packages/ui/src/components/ui-builder/internal/utils/tailwind-classes.mjs +10279 -0
  1385. package/dist/packages/ui/src/components/ui-builder/internal/utils/templates.cjs +180 -0
  1386. package/dist/packages/ui/src/components/ui-builder/internal/utils/templates.mjs +176 -0
  1387. package/dist/packages/ui/src/components/ui-builder/internal/variables-panel.cjs +349 -0
  1388. package/dist/packages/ui/src/components/ui-builder/internal/variables-panel.mjs +347 -0
  1389. package/dist/packages/ui/src/components/ui-builder/layer-renderer.cjs +32 -0
  1390. package/dist/packages/ui/src/components/ui-builder/layer-renderer.mjs +26 -0
  1391. package/dist/packages/ui/src/components/ui-builder/types.cjs +7 -0
  1392. package/dist/packages/ui/src/components/ui-builder/types.mjs +5 -0
  1393. package/dist/packages/ui/src/hooks/use-copy-to-clipboard.cjs +41 -0
  1394. package/dist/packages/ui/src/hooks/use-copy-to-clipboard.mjs +25 -0
  1395. package/dist/packages/ui/src/hooks/use-debounce.cjs +1 -3
  1396. package/dist/packages/ui/src/hooks/use-debounce.mjs +1 -3
  1397. package/dist/packages/ui/src/hooks/use-keyboard-shortcuts.cjs +24 -0
  1398. package/dist/packages/ui/src/hooks/use-keyboard-shortcuts.mjs +22 -0
  1399. package/dist/packages/ui/src/hooks/use-store.cjs +14 -0
  1400. package/dist/packages/ui/src/hooks/use-store.mjs +12 -0
  1401. package/dist/packages/ui/src/lib/ui-builder/context/auto-scroll-constants.cjs +16 -0
  1402. package/dist/packages/ui/src/lib/ui-builder/context/auto-scroll-constants.mjs +11 -0
  1403. package/dist/packages/ui/src/lib/ui-builder/context/collision-debug.cjs +40 -0
  1404. package/dist/packages/ui/src/lib/ui-builder/context/collision-debug.mjs +35 -0
  1405. package/dist/packages/ui/src/lib/ui-builder/context/dnd-context-colission-utils.cjs +159 -0
  1406. package/dist/packages/ui/src/lib/ui-builder/context/dnd-context-colission-utils.mjs +157 -0
  1407. package/dist/packages/ui/src/lib/ui-builder/context/dnd-context.cjs +91 -0
  1408. package/dist/packages/ui/src/lib/ui-builder/context/dnd-context.mjs +88 -0
  1409. package/dist/packages/ui/src/lib/ui-builder/context/dnd-contexts.cjs +21 -0
  1410. package/dist/packages/ui/src/lib/ui-builder/context/dnd-contexts.mjs +16 -0
  1411. package/dist/packages/ui/src/lib/ui-builder/context/dnd-utils.cjs +17 -0
  1412. package/dist/packages/ui/src/lib/ui-builder/context/dnd-utils.mjs +15 -0
  1413. package/dist/packages/ui/src/lib/ui-builder/context/drag-overlay.cjs +44 -0
  1414. package/dist/packages/ui/src/lib/ui-builder/context/drag-overlay.mjs +41 -0
  1415. package/dist/packages/ui/src/lib/ui-builder/hooks/use-auto-scroll.cjs +126 -0
  1416. package/dist/packages/ui/src/lib/ui-builder/hooks/use-auto-scroll.mjs +124 -0
  1417. package/dist/packages/ui/src/lib/ui-builder/hooks/use-dnd-event-handlers.cjs +55 -0
  1418. package/dist/packages/ui/src/lib/ui-builder/hooks/use-dnd-event-handlers.mjs +53 -0
  1419. package/dist/packages/ui/src/lib/ui-builder/hooks/use-dnd-sensors.cjs +21 -0
  1420. package/dist/packages/ui/src/lib/ui-builder/hooks/use-dnd-sensors.mjs +19 -0
  1421. package/dist/packages/ui/src/lib/ui-builder/hooks/use-drop-validation.cjs +27 -0
  1422. package/dist/packages/ui/src/lib/ui-builder/hooks/use-drop-validation.mjs +25 -0
  1423. package/dist/packages/ui/src/lib/ui-builder/hooks/use-keyboard-shortcuts-dnd.cjs +23 -0
  1424. package/dist/packages/ui/src/lib/ui-builder/hooks/use-keyboard-shortcuts-dnd.mjs +21 -0
  1425. package/dist/packages/ui/src/lib/ui-builder/registry/form-field-overrides.cjs +185 -0
  1426. package/dist/packages/ui/src/lib/ui-builder/registry/form-field-overrides.mjs +177 -0
  1427. package/dist/packages/ui/src/lib/ui-builder/store/editor-store.cjs +38 -0
  1428. package/dist/packages/ui/src/lib/ui-builder/store/editor-store.mjs +36 -0
  1429. package/dist/packages/ui/src/lib/ui-builder/store/editor-utils.cjs +41 -0
  1430. package/dist/packages/ui/src/lib/ui-builder/store/editor-utils.mjs +38 -0
  1431. package/dist/packages/ui/src/lib/ui-builder/store/layer-store.cjs +384 -0
  1432. package/dist/packages/ui/src/lib/ui-builder/store/layer-store.mjs +381 -0
  1433. package/dist/packages/ui/src/lib/ui-builder/store/layer-utils.cjs +326 -0
  1434. package/dist/packages/ui/src/lib/ui-builder/store/layer-utils.mjs +311 -0
  1435. package/dist/packages/ui/src/lib/ui-builder/store/schema-utils.cjs +94 -0
  1436. package/dist/packages/ui/src/lib/ui-builder/store/schema-utils.mjs +89 -0
  1437. package/dist/packages/ui/src/lib/ui-builder/utils/get-scroll-parent.cjs +19 -0
  1438. package/dist/packages/ui/src/lib/ui-builder/utils/get-scroll-parent.mjs +17 -0
  1439. package/dist/packages/ui/src/lib/ui-builder/utils/variable-resolver.cjs +30 -0
  1440. package/dist/packages/ui/src/lib/ui-builder/utils/variable-resolver.mjs +23 -0
  1441. package/dist/plugins/cms/api/index.d.cts +2 -2
  1442. package/dist/plugins/cms/api/index.d.mts +2 -2
  1443. package/dist/plugins/cms/api/index.d.ts +2 -2
  1444. package/dist/plugins/cms/client/hooks/index.d.cts +1 -1
  1445. package/dist/plugins/cms/client/hooks/index.d.mts +1 -1
  1446. package/dist/plugins/cms/client/hooks/index.d.ts +1 -1
  1447. package/dist/plugins/cms/client/index.d.cts +2 -2
  1448. package/dist/plugins/cms/client/index.d.mts +2 -2
  1449. package/dist/plugins/cms/client/index.d.ts +2 -2
  1450. package/dist/plugins/cms/query-keys.d.cts +1 -1
  1451. package/dist/plugins/cms/query-keys.d.mts +1 -1
  1452. package/dist/plugins/cms/query-keys.d.ts +1 -1
  1453. package/dist/plugins/form-builder/api/index.d.cts +1 -1
  1454. package/dist/plugins/form-builder/api/index.d.mts +1 -1
  1455. package/dist/plugins/form-builder/api/index.d.ts +1 -1
  1456. package/dist/plugins/form-builder/client/components/index.d.cts +1 -1
  1457. package/dist/plugins/form-builder/client/components/index.d.mts +1 -1
  1458. package/dist/plugins/form-builder/client/components/index.d.ts +1 -1
  1459. package/dist/plugins/form-builder/client/index.d.cts +2 -2
  1460. package/dist/plugins/form-builder/client/index.d.mts +2 -2
  1461. package/dist/plugins/form-builder/client/index.d.ts +2 -2
  1462. package/dist/plugins/ui-builder/client/components/index.cjs +12 -0
  1463. package/dist/plugins/ui-builder/client/components/index.d.cts +118 -0
  1464. package/dist/plugins/ui-builder/client/components/index.d.mts +118 -0
  1465. package/dist/plugins/ui-builder/client/components/index.d.ts +118 -0
  1466. package/dist/plugins/ui-builder/client/components/index.mjs +3 -0
  1467. package/dist/plugins/ui-builder/client/hooks/index.cjs +15 -0
  1468. package/dist/plugins/ui-builder/client/hooks/index.d.cts +154 -0
  1469. package/dist/plugins/ui-builder/client/hooks/index.d.mts +154 -0
  1470. package/dist/plugins/ui-builder/client/hooks/index.d.ts +154 -0
  1471. package/dist/plugins/ui-builder/client/hooks/index.mjs +1 -0
  1472. package/dist/plugins/ui-builder/client/index.cjs +38 -0
  1473. package/dist/plugins/ui-builder/client/index.d.cts +349 -0
  1474. package/dist/plugins/ui-builder/client/index.d.mts +349 -0
  1475. package/dist/plugins/ui-builder/client/index.d.ts +349 -0
  1476. package/dist/plugins/ui-builder/client/index.mjs +8 -0
  1477. package/dist/plugins/ui-builder/client.css +2 -0
  1478. package/dist/plugins/ui-builder/index.cjs +9 -0
  1479. package/dist/plugins/ui-builder/index.d.cts +47 -0
  1480. package/dist/plugins/ui-builder/index.d.mts +47 -0
  1481. package/dist/plugins/ui-builder/index.d.ts +47 -0
  1482. package/dist/plugins/ui-builder/index.mjs +1 -0
  1483. package/dist/plugins/ui-builder/style.css +26 -0
  1484. package/dist/shared/{stack.BIh2AXaW.d.cts → stack.8nldKomx.d.cts} +1 -10
  1485. package/dist/shared/{stack.BIh2AXaW.d.mts → stack.8nldKomx.d.mts} +1 -10
  1486. package/dist/shared/{stack.BIh2AXaW.d.ts → stack.8nldKomx.d.ts} +1 -10
  1487. package/dist/shared/stack.BD1m-4yB.d.ts +116 -0
  1488. package/dist/shared/stack.BSM2cgoq.d.cts +116 -0
  1489. package/dist/shared/{stack.oGOteE6g.d.mts → stack.BsXokfNh.d.cts} +1 -1
  1490. package/dist/shared/{stack.oGOteE6g.d.cts → stack.BsXokfNh.d.mts} +1 -1
  1491. package/dist/shared/{stack.oGOteE6g.d.ts → stack.BsXokfNh.d.ts} +1 -1
  1492. package/dist/shared/stack.CLtOoAqF.d.mts +116 -0
  1493. package/dist/shared/{stack.AX5nZ6A3.d.ts → stack.Co034Fpm.d.cts} +0 -21
  1494. package/dist/shared/{stack.AX5nZ6A3.d.cts → stack.Co034Fpm.d.mts} +0 -21
  1495. package/dist/shared/{stack.AX5nZ6A3.d.mts → stack.Co034Fpm.d.ts} +0 -21
  1496. package/dist/shared/stack.CqfZWfjJ.d.cts +42 -0
  1497. package/dist/shared/stack.MMntCVZZ.d.ts +42 -0
  1498. package/dist/shared/stack.e1FN86dE.d.mts +42 -0
  1499. package/package.json +54 -1
  1500. package/src/plugins/cms/client/components/forms/content-form.tsx +2 -2
  1501. package/src/plugins/form-builder/client/components/forms/form-renderer.tsx +1 -1
  1502. package/src/plugins/ui-builder/client/components/index.ts +10 -0
  1503. package/src/plugins/ui-builder/client/components/loading/index.ts +2 -0
  1504. package/src/plugins/ui-builder/client/components/loading/page-builder-skeleton.tsx +46 -0
  1505. package/src/plugins/ui-builder/client/components/loading/page-list-skeleton.tsx +25 -0
  1506. package/src/plugins/ui-builder/client/components/page-renderer.tsx +230 -0
  1507. package/src/plugins/ui-builder/client/components/pages/page-builder-page.internal.tsx +344 -0
  1508. package/src/plugins/ui-builder/client/components/pages/page-builder-page.tsx +26 -0
  1509. package/src/plugins/ui-builder/client/components/pages/page-list-page.internal.tsx +217 -0
  1510. package/src/plugins/ui-builder/client/components/pages/page-list-page.tsx +22 -0
  1511. package/src/plugins/ui-builder/client/components/shared/default-error.tsx +30 -0
  1512. package/src/plugins/ui-builder/client/components/shared/empty-state.tsx +26 -0
  1513. package/src/plugins/ui-builder/client/components/shared/page-wrapper.tsx +32 -0
  1514. package/src/plugins/ui-builder/client/components/shared/pagination.tsx +52 -0
  1515. package/src/plugins/ui-builder/client/hooks/index.tsx +20 -0
  1516. package/src/plugins/ui-builder/client/hooks/ui-builder-hooks.tsx +691 -0
  1517. package/src/plugins/ui-builder/client/index.ts +64 -0
  1518. package/src/plugins/ui-builder/client/localization/index.ts +64 -0
  1519. package/src/plugins/ui-builder/client/overrides.ts +99 -0
  1520. package/src/plugins/ui-builder/client/plugin.tsx +315 -0
  1521. package/src/plugins/ui-builder/client/registry.ts +611 -0
  1522. package/src/plugins/ui-builder/client.css +2 -0
  1523. package/src/plugins/ui-builder/index.ts +41 -0
  1524. package/src/plugins/ui-builder/schemas.ts +48 -0
  1525. package/src/plugins/ui-builder/style.css +26 -0
  1526. package/src/plugins/ui-builder/types.ts +137 -0
  1527. package/src/plugins/index.ts +0 -0
  1528. /package/dist/packages/ui/src/components/auto-form/{utils.cjs → helpers.cjs} +0 -0
  1529. /package/dist/packages/ui/src/components/auto-form/{utils.mjs → helpers.mjs} +0 -0
@@ -0,0 +1,3478 @@
1
+ 'use strict';
2
+
3
+ const index = require('../../../../orderedmap@2.1.1/node_modules/orderedmap/dist/index.cjs');
4
+
5
+ function findDiffStart(a, b, pos) {
6
+ for (let i = 0;; i++) {
7
+ if (i == a.childCount || i == b.childCount)
8
+ return a.childCount == b.childCount ? null : pos;
9
+ let childA = a.child(i), childB = b.child(i);
10
+ if (childA == childB) {
11
+ pos += childA.nodeSize;
12
+ continue;
13
+ }
14
+ if (!childA.sameMarkup(childB))
15
+ return pos;
16
+ if (childA.isText && childA.text != childB.text) {
17
+ for (let j = 0; childA.text[j] == childB.text[j]; j++)
18
+ pos++;
19
+ return pos;
20
+ }
21
+ if (childA.content.size || childB.content.size) {
22
+ let inner = findDiffStart(childA.content, childB.content, pos + 1);
23
+ if (inner != null)
24
+ return inner;
25
+ }
26
+ pos += childA.nodeSize;
27
+ }
28
+ }
29
+ function findDiffEnd(a, b, posA, posB) {
30
+ for (let iA = a.childCount, iB = b.childCount;;) {
31
+ if (iA == 0 || iB == 0)
32
+ return iA == iB ? null : { a: posA, b: posB };
33
+ let childA = a.child(--iA), childB = b.child(--iB), size = childA.nodeSize;
34
+ if (childA == childB) {
35
+ posA -= size;
36
+ posB -= size;
37
+ continue;
38
+ }
39
+ if (!childA.sameMarkup(childB))
40
+ return { a: posA, b: posB };
41
+ if (childA.isText && childA.text != childB.text) {
42
+ let same = 0, minSize = Math.min(childA.text.length, childB.text.length);
43
+ while (same < minSize && childA.text[childA.text.length - same - 1] == childB.text[childB.text.length - same - 1]) {
44
+ same++;
45
+ posA--;
46
+ posB--;
47
+ }
48
+ return { a: posA, b: posB };
49
+ }
50
+ if (childA.content.size || childB.content.size) {
51
+ let inner = findDiffEnd(childA.content, childB.content, posA - 1, posB - 1);
52
+ if (inner)
53
+ return inner;
54
+ }
55
+ posA -= size;
56
+ posB -= size;
57
+ }
58
+ }
59
+
60
+ /**
61
+ A fragment represents a node's collection of child nodes.
62
+
63
+ Like nodes, fragments are persistent data structures, and you
64
+ should not mutate them or their content. Rather, you create new
65
+ instances whenever needed. The API tries to make this easy.
66
+ */
67
+ class Fragment {
68
+ /**
69
+ @internal
70
+ */
71
+ constructor(
72
+ /**
73
+ The child nodes in this fragment.
74
+ */
75
+ content, size) {
76
+ this.content = content;
77
+ this.size = size || 0;
78
+ if (size == null)
79
+ for (let i = 0; i < content.length; i++)
80
+ this.size += content[i].nodeSize;
81
+ }
82
+ /**
83
+ Invoke a callback for all descendant nodes between the given two
84
+ positions (relative to start of this fragment). Doesn't descend
85
+ into a node when the callback returns `false`.
86
+ */
87
+ nodesBetween(from, to, f, nodeStart = 0, parent) {
88
+ for (let i = 0, pos = 0; pos < to; i++) {
89
+ let child = this.content[i], end = pos + child.nodeSize;
90
+ if (end > from && f(child, nodeStart + pos, parent || null, i) !== false && child.content.size) {
91
+ let start = pos + 1;
92
+ child.nodesBetween(Math.max(0, from - start), Math.min(child.content.size, to - start), f, nodeStart + start);
93
+ }
94
+ pos = end;
95
+ }
96
+ }
97
+ /**
98
+ Call the given callback for every descendant node. `pos` will be
99
+ relative to the start of the fragment. The callback may return
100
+ `false` to prevent traversal of a given node's children.
101
+ */
102
+ descendants(f) {
103
+ this.nodesBetween(0, this.size, f);
104
+ }
105
+ /**
106
+ Extract the text between `from` and `to`. See the same method on
107
+ [`Node`](https://prosemirror.net/docs/ref/#model.Node.textBetween).
108
+ */
109
+ textBetween(from, to, blockSeparator, leafText) {
110
+ let text = "", first = true;
111
+ this.nodesBetween(from, to, (node, pos) => {
112
+ let nodeText = node.isText ? node.text.slice(Math.max(from, pos) - pos, to - pos)
113
+ : !node.isLeaf ? ""
114
+ : leafText ? (typeof leafText === "function" ? leafText(node) : leafText)
115
+ : node.type.spec.leafText ? node.type.spec.leafText(node)
116
+ : "";
117
+ if (node.isBlock && (node.isLeaf && nodeText || node.isTextblock) && blockSeparator) {
118
+ if (first)
119
+ first = false;
120
+ else
121
+ text += blockSeparator;
122
+ }
123
+ text += nodeText;
124
+ }, 0);
125
+ return text;
126
+ }
127
+ /**
128
+ Create a new fragment containing the combined content of this
129
+ fragment and the other.
130
+ */
131
+ append(other) {
132
+ if (!other.size)
133
+ return this;
134
+ if (!this.size)
135
+ return other;
136
+ let last = this.lastChild, first = other.firstChild, content = this.content.slice(), i = 0;
137
+ if (last.isText && last.sameMarkup(first)) {
138
+ content[content.length - 1] = last.withText(last.text + first.text);
139
+ i = 1;
140
+ }
141
+ for (; i < other.content.length; i++)
142
+ content.push(other.content[i]);
143
+ return new Fragment(content, this.size + other.size);
144
+ }
145
+ /**
146
+ Cut out the sub-fragment between the two given positions.
147
+ */
148
+ cut(from, to = this.size) {
149
+ if (from == 0 && to == this.size)
150
+ return this;
151
+ let result = [], size = 0;
152
+ if (to > from)
153
+ for (let i = 0, pos = 0; pos < to; i++) {
154
+ let child = this.content[i], end = pos + child.nodeSize;
155
+ if (end > from) {
156
+ if (pos < from || end > to) {
157
+ if (child.isText)
158
+ child = child.cut(Math.max(0, from - pos), Math.min(child.text.length, to - pos));
159
+ else
160
+ child = child.cut(Math.max(0, from - pos - 1), Math.min(child.content.size, to - pos - 1));
161
+ }
162
+ result.push(child);
163
+ size += child.nodeSize;
164
+ }
165
+ pos = end;
166
+ }
167
+ return new Fragment(result, size);
168
+ }
169
+ /**
170
+ @internal
171
+ */
172
+ cutByIndex(from, to) {
173
+ if (from == to)
174
+ return Fragment.empty;
175
+ if (from == 0 && to == this.content.length)
176
+ return this;
177
+ return new Fragment(this.content.slice(from, to));
178
+ }
179
+ /**
180
+ Create a new fragment in which the node at the given index is
181
+ replaced by the given node.
182
+ */
183
+ replaceChild(index, node) {
184
+ let current = this.content[index];
185
+ if (current == node)
186
+ return this;
187
+ let copy = this.content.slice();
188
+ let size = this.size + node.nodeSize - current.nodeSize;
189
+ copy[index] = node;
190
+ return new Fragment(copy, size);
191
+ }
192
+ /**
193
+ Create a new fragment by prepending the given node to this
194
+ fragment.
195
+ */
196
+ addToStart(node) {
197
+ return new Fragment([node].concat(this.content), this.size + node.nodeSize);
198
+ }
199
+ /**
200
+ Create a new fragment by appending the given node to this
201
+ fragment.
202
+ */
203
+ addToEnd(node) {
204
+ return new Fragment(this.content.concat(node), this.size + node.nodeSize);
205
+ }
206
+ /**
207
+ Compare this fragment to another one.
208
+ */
209
+ eq(other) {
210
+ if (this.content.length != other.content.length)
211
+ return false;
212
+ for (let i = 0; i < this.content.length; i++)
213
+ if (!this.content[i].eq(other.content[i]))
214
+ return false;
215
+ return true;
216
+ }
217
+ /**
218
+ The first child of the fragment, or `null` if it is empty.
219
+ */
220
+ get firstChild() { return this.content.length ? this.content[0] : null; }
221
+ /**
222
+ The last child of the fragment, or `null` if it is empty.
223
+ */
224
+ get lastChild() { return this.content.length ? this.content[this.content.length - 1] : null; }
225
+ /**
226
+ The number of child nodes in this fragment.
227
+ */
228
+ get childCount() { return this.content.length; }
229
+ /**
230
+ Get the child node at the given index. Raise an error when the
231
+ index is out of range.
232
+ */
233
+ child(index) {
234
+ let found = this.content[index];
235
+ if (!found)
236
+ throw new RangeError("Index " + index + " out of range for " + this);
237
+ return found;
238
+ }
239
+ /**
240
+ Get the child node at the given index, if it exists.
241
+ */
242
+ maybeChild(index) {
243
+ return this.content[index] || null;
244
+ }
245
+ /**
246
+ Call `f` for every child node, passing the node, its offset
247
+ into this parent node, and its index.
248
+ */
249
+ forEach(f) {
250
+ for (let i = 0, p = 0; i < this.content.length; i++) {
251
+ let child = this.content[i];
252
+ f(child, p, i);
253
+ p += child.nodeSize;
254
+ }
255
+ }
256
+ /**
257
+ Find the first position at which this fragment and another
258
+ fragment differ, or `null` if they are the same.
259
+ */
260
+ findDiffStart(other, pos = 0) {
261
+ return findDiffStart(this, other, pos);
262
+ }
263
+ /**
264
+ Find the first position, searching from the end, at which this
265
+ fragment and the given fragment differ, or `null` if they are
266
+ the same. Since this position will not be the same in both
267
+ nodes, an object with two separate positions is returned.
268
+ */
269
+ findDiffEnd(other, pos = this.size, otherPos = other.size) {
270
+ return findDiffEnd(this, other, pos, otherPos);
271
+ }
272
+ /**
273
+ Find the index and inner offset corresponding to a given relative
274
+ position in this fragment. The result object will be reused
275
+ (overwritten) the next time the function is called. @internal
276
+ */
277
+ findIndex(pos) {
278
+ if (pos == 0)
279
+ return retIndex(0, pos);
280
+ if (pos == this.size)
281
+ return retIndex(this.content.length, pos);
282
+ if (pos > this.size || pos < 0)
283
+ throw new RangeError(`Position ${pos} outside of fragment (${this})`);
284
+ for (let i = 0, curPos = 0;; i++) {
285
+ let cur = this.child(i), end = curPos + cur.nodeSize;
286
+ if (end >= pos) {
287
+ if (end == pos)
288
+ return retIndex(i + 1, end);
289
+ return retIndex(i, curPos);
290
+ }
291
+ curPos = end;
292
+ }
293
+ }
294
+ /**
295
+ Return a debugging string that describes this fragment.
296
+ */
297
+ toString() { return "<" + this.toStringInner() + ">"; }
298
+ /**
299
+ @internal
300
+ */
301
+ toStringInner() { return this.content.join(", "); }
302
+ /**
303
+ Create a JSON-serializeable representation of this fragment.
304
+ */
305
+ toJSON() {
306
+ return this.content.length ? this.content.map(n => n.toJSON()) : null;
307
+ }
308
+ /**
309
+ Deserialize a fragment from its JSON representation.
310
+ */
311
+ static fromJSON(schema, value) {
312
+ if (!value)
313
+ return Fragment.empty;
314
+ if (!Array.isArray(value))
315
+ throw new RangeError("Invalid input for Fragment.fromJSON");
316
+ return new Fragment(value.map(schema.nodeFromJSON));
317
+ }
318
+ /**
319
+ Build a fragment from an array of nodes. Ensures that adjacent
320
+ text nodes with the same marks are joined together.
321
+ */
322
+ static fromArray(array) {
323
+ if (!array.length)
324
+ return Fragment.empty;
325
+ let joined, size = 0;
326
+ for (let i = 0; i < array.length; i++) {
327
+ let node = array[i];
328
+ size += node.nodeSize;
329
+ if (i && node.isText && array[i - 1].sameMarkup(node)) {
330
+ if (!joined)
331
+ joined = array.slice(0, i);
332
+ joined[joined.length - 1] = node
333
+ .withText(joined[joined.length - 1].text + node.text);
334
+ }
335
+ else if (joined) {
336
+ joined.push(node);
337
+ }
338
+ }
339
+ return new Fragment(joined || array, size);
340
+ }
341
+ /**
342
+ Create a fragment from something that can be interpreted as a
343
+ set of nodes. For `null`, it returns the empty fragment. For a
344
+ fragment, the fragment itself. For a node or array of nodes, a
345
+ fragment containing those nodes.
346
+ */
347
+ static from(nodes) {
348
+ if (!nodes)
349
+ return Fragment.empty;
350
+ if (nodes instanceof Fragment)
351
+ return nodes;
352
+ if (Array.isArray(nodes))
353
+ return this.fromArray(nodes);
354
+ if (nodes.attrs)
355
+ return new Fragment([nodes], nodes.nodeSize);
356
+ throw new RangeError("Can not convert " + nodes + " to a Fragment" +
357
+ (nodes.nodesBetween ? " (looks like multiple versions of prosemirror-model were loaded)" : ""));
358
+ }
359
+ }
360
+ /**
361
+ An empty fragment. Intended to be reused whenever a node doesn't
362
+ contain anything (rather than allocating a new empty fragment for
363
+ each leaf node).
364
+ */
365
+ Fragment.empty = new Fragment([], 0);
366
+ const found = { index: 0, offset: 0 };
367
+ function retIndex(index, offset) {
368
+ found.index = index;
369
+ found.offset = offset;
370
+ return found;
371
+ }
372
+
373
+ function compareDeep(a, b) {
374
+ if (a === b)
375
+ return true;
376
+ if (!(a && typeof a == "object") ||
377
+ !(b && typeof b == "object"))
378
+ return false;
379
+ let array = Array.isArray(a);
380
+ if (Array.isArray(b) != array)
381
+ return false;
382
+ if (array) {
383
+ if (a.length != b.length)
384
+ return false;
385
+ for (let i = 0; i < a.length; i++)
386
+ if (!compareDeep(a[i], b[i]))
387
+ return false;
388
+ }
389
+ else {
390
+ for (let p in a)
391
+ if (!(p in b) || !compareDeep(a[p], b[p]))
392
+ return false;
393
+ for (let p in b)
394
+ if (!(p in a))
395
+ return false;
396
+ }
397
+ return true;
398
+ }
399
+
400
+ /**
401
+ A mark is a piece of information that can be attached to a node,
402
+ such as it being emphasized, in code font, or a link. It has a
403
+ type and optionally a set of attributes that provide further
404
+ information (such as the target of the link). Marks are created
405
+ through a `Schema`, which controls which types exist and which
406
+ attributes they have.
407
+ */
408
+ class Mark {
409
+ /**
410
+ @internal
411
+ */
412
+ constructor(
413
+ /**
414
+ The type of this mark.
415
+ */
416
+ type,
417
+ /**
418
+ The attributes associated with this mark.
419
+ */
420
+ attrs) {
421
+ this.type = type;
422
+ this.attrs = attrs;
423
+ }
424
+ /**
425
+ Given a set of marks, create a new set which contains this one as
426
+ well, in the right position. If this mark is already in the set,
427
+ the set itself is returned. If any marks that are set to be
428
+ [exclusive](https://prosemirror.net/docs/ref/#model.MarkSpec.excludes) with this mark are present,
429
+ those are replaced by this one.
430
+ */
431
+ addToSet(set) {
432
+ let copy, placed = false;
433
+ for (let i = 0; i < set.length; i++) {
434
+ let other = set[i];
435
+ if (this.eq(other))
436
+ return set;
437
+ if (this.type.excludes(other.type)) {
438
+ if (!copy)
439
+ copy = set.slice(0, i);
440
+ }
441
+ else if (other.type.excludes(this.type)) {
442
+ return set;
443
+ }
444
+ else {
445
+ if (!placed && other.type.rank > this.type.rank) {
446
+ if (!copy)
447
+ copy = set.slice(0, i);
448
+ copy.push(this);
449
+ placed = true;
450
+ }
451
+ if (copy)
452
+ copy.push(other);
453
+ }
454
+ }
455
+ if (!copy)
456
+ copy = set.slice();
457
+ if (!placed)
458
+ copy.push(this);
459
+ return copy;
460
+ }
461
+ /**
462
+ Remove this mark from the given set, returning a new set. If this
463
+ mark is not in the set, the set itself is returned.
464
+ */
465
+ removeFromSet(set) {
466
+ for (let i = 0; i < set.length; i++)
467
+ if (this.eq(set[i]))
468
+ return set.slice(0, i).concat(set.slice(i + 1));
469
+ return set;
470
+ }
471
+ /**
472
+ Test whether this mark is in the given set of marks.
473
+ */
474
+ isInSet(set) {
475
+ for (let i = 0; i < set.length; i++)
476
+ if (this.eq(set[i]))
477
+ return true;
478
+ return false;
479
+ }
480
+ /**
481
+ Test whether this mark has the same type and attributes as
482
+ another mark.
483
+ */
484
+ eq(other) {
485
+ return this == other ||
486
+ (this.type == other.type && compareDeep(this.attrs, other.attrs));
487
+ }
488
+ /**
489
+ Convert this mark to a JSON-serializeable representation.
490
+ */
491
+ toJSON() {
492
+ let obj = { type: this.type.name };
493
+ for (let _ in this.attrs) {
494
+ obj.attrs = this.attrs;
495
+ break;
496
+ }
497
+ return obj;
498
+ }
499
+ /**
500
+ Deserialize a mark from JSON.
501
+ */
502
+ static fromJSON(schema, json) {
503
+ if (!json)
504
+ throw new RangeError("Invalid input for Mark.fromJSON");
505
+ let type = schema.marks[json.type];
506
+ if (!type)
507
+ throw new RangeError(`There is no mark type ${json.type} in this schema`);
508
+ let mark = type.create(json.attrs);
509
+ type.checkAttrs(mark.attrs);
510
+ return mark;
511
+ }
512
+ /**
513
+ Test whether two sets of marks are identical.
514
+ */
515
+ static sameSet(a, b) {
516
+ if (a == b)
517
+ return true;
518
+ if (a.length != b.length)
519
+ return false;
520
+ for (let i = 0; i < a.length; i++)
521
+ if (!a[i].eq(b[i]))
522
+ return false;
523
+ return true;
524
+ }
525
+ /**
526
+ Create a properly sorted mark set from null, a single mark, or an
527
+ unsorted array of marks.
528
+ */
529
+ static setFrom(marks) {
530
+ if (!marks || Array.isArray(marks) && marks.length == 0)
531
+ return Mark.none;
532
+ if (marks instanceof Mark)
533
+ return [marks];
534
+ let copy = marks.slice();
535
+ copy.sort((a, b) => a.type.rank - b.type.rank);
536
+ return copy;
537
+ }
538
+ }
539
+ /**
540
+ The empty set of marks.
541
+ */
542
+ Mark.none = [];
543
+
544
+ /**
545
+ Error type raised by [`Node.replace`](https://prosemirror.net/docs/ref/#model.Node.replace) when
546
+ given an invalid replacement.
547
+ */
548
+ class ReplaceError extends Error {
549
+ }
550
+ /*
551
+ ReplaceError = function(this: any, message: string) {
552
+ let err = Error.call(this, message)
553
+ ;(err as any).__proto__ = ReplaceError.prototype
554
+ return err
555
+ } as any
556
+
557
+ ReplaceError.prototype = Object.create(Error.prototype)
558
+ ReplaceError.prototype.constructor = ReplaceError
559
+ ReplaceError.prototype.name = "ReplaceError"
560
+ */
561
+ /**
562
+ A slice represents a piece cut out of a larger document. It
563
+ stores not only a fragment, but also the depth up to which nodes on
564
+ both side are ‘open’ (cut through).
565
+ */
566
+ class Slice {
567
+ /**
568
+ Create a slice. When specifying a non-zero open depth, you must
569
+ make sure that there are nodes of at least that depth at the
570
+ appropriate side of the fragment—i.e. if the fragment is an
571
+ empty paragraph node, `openStart` and `openEnd` can't be greater
572
+ than 1.
573
+
574
+ It is not necessary for the content of open nodes to conform to
575
+ the schema's content constraints, though it should be a valid
576
+ start/end/middle for such a node, depending on which sides are
577
+ open.
578
+ */
579
+ constructor(
580
+ /**
581
+ The slice's content.
582
+ */
583
+ content,
584
+ /**
585
+ The open depth at the start of the fragment.
586
+ */
587
+ openStart,
588
+ /**
589
+ The open depth at the end.
590
+ */
591
+ openEnd) {
592
+ this.content = content;
593
+ this.openStart = openStart;
594
+ this.openEnd = openEnd;
595
+ }
596
+ /**
597
+ The size this slice would add when inserted into a document.
598
+ */
599
+ get size() {
600
+ return this.content.size - this.openStart - this.openEnd;
601
+ }
602
+ /**
603
+ @internal
604
+ */
605
+ insertAt(pos, fragment) {
606
+ let content = insertInto(this.content, pos + this.openStart, fragment);
607
+ return content && new Slice(content, this.openStart, this.openEnd);
608
+ }
609
+ /**
610
+ @internal
611
+ */
612
+ removeBetween(from, to) {
613
+ return new Slice(removeRange(this.content, from + this.openStart, to + this.openStart), this.openStart, this.openEnd);
614
+ }
615
+ /**
616
+ Tests whether this slice is equal to another slice.
617
+ */
618
+ eq(other) {
619
+ return this.content.eq(other.content) && this.openStart == other.openStart && this.openEnd == other.openEnd;
620
+ }
621
+ /**
622
+ @internal
623
+ */
624
+ toString() {
625
+ return this.content + "(" + this.openStart + "," + this.openEnd + ")";
626
+ }
627
+ /**
628
+ Convert a slice to a JSON-serializable representation.
629
+ */
630
+ toJSON() {
631
+ if (!this.content.size)
632
+ return null;
633
+ let json = { content: this.content.toJSON() };
634
+ if (this.openStart > 0)
635
+ json.openStart = this.openStart;
636
+ if (this.openEnd > 0)
637
+ json.openEnd = this.openEnd;
638
+ return json;
639
+ }
640
+ /**
641
+ Deserialize a slice from its JSON representation.
642
+ */
643
+ static fromJSON(schema, json) {
644
+ if (!json)
645
+ return Slice.empty;
646
+ let openStart = json.openStart || 0, openEnd = json.openEnd || 0;
647
+ if (typeof openStart != "number" || typeof openEnd != "number")
648
+ throw new RangeError("Invalid input for Slice.fromJSON");
649
+ return new Slice(Fragment.fromJSON(schema, json.content), openStart, openEnd);
650
+ }
651
+ /**
652
+ Create a slice from a fragment by taking the maximum possible
653
+ open value on both side of the fragment.
654
+ */
655
+ static maxOpen(fragment, openIsolating = true) {
656
+ let openStart = 0, openEnd = 0;
657
+ for (let n = fragment.firstChild; n && !n.isLeaf && (openIsolating || !n.type.spec.isolating); n = n.firstChild)
658
+ openStart++;
659
+ for (let n = fragment.lastChild; n && !n.isLeaf && (openIsolating || !n.type.spec.isolating); n = n.lastChild)
660
+ openEnd++;
661
+ return new Slice(fragment, openStart, openEnd);
662
+ }
663
+ }
664
+ /**
665
+ The empty slice.
666
+ */
667
+ Slice.empty = new Slice(Fragment.empty, 0, 0);
668
+ function removeRange(content, from, to) {
669
+ let { index, offset } = content.findIndex(from), child = content.maybeChild(index);
670
+ let { index: indexTo, offset: offsetTo } = content.findIndex(to);
671
+ if (offset == from || child.isText) {
672
+ if (offsetTo != to && !content.child(indexTo).isText)
673
+ throw new RangeError("Removing non-flat range");
674
+ return content.cut(0, from).append(content.cut(to));
675
+ }
676
+ if (index != indexTo)
677
+ throw new RangeError("Removing non-flat range");
678
+ return content.replaceChild(index, child.copy(removeRange(child.content, from - offset - 1, to - offset - 1)));
679
+ }
680
+ function insertInto(content, dist, insert, parent) {
681
+ let { index, offset } = content.findIndex(dist), child = content.maybeChild(index);
682
+ if (offset == dist || child.isText) {
683
+ if (parent && !parent.canReplace(index, index, insert))
684
+ return null;
685
+ return content.cut(0, dist).append(insert).append(content.cut(dist));
686
+ }
687
+ let inner = insertInto(child.content, dist - offset - 1, insert, child);
688
+ return inner && content.replaceChild(index, child.copy(inner));
689
+ }
690
+ function replace($from, $to, slice) {
691
+ if (slice.openStart > $from.depth)
692
+ throw new ReplaceError("Inserted content deeper than insertion position");
693
+ if ($from.depth - slice.openStart != $to.depth - slice.openEnd)
694
+ throw new ReplaceError("Inconsistent open depths");
695
+ return replaceOuter($from, $to, slice, 0);
696
+ }
697
+ function replaceOuter($from, $to, slice, depth) {
698
+ let index = $from.index(depth), node = $from.node(depth);
699
+ if (index == $to.index(depth) && depth < $from.depth - slice.openStart) {
700
+ let inner = replaceOuter($from, $to, slice, depth + 1);
701
+ return node.copy(node.content.replaceChild(index, inner));
702
+ }
703
+ else if (!slice.content.size) {
704
+ return close(node, replaceTwoWay($from, $to, depth));
705
+ }
706
+ else if (!slice.openStart && !slice.openEnd && $from.depth == depth && $to.depth == depth) { // Simple, flat case
707
+ let parent = $from.parent, content = parent.content;
708
+ return close(parent, content.cut(0, $from.parentOffset).append(slice.content).append(content.cut($to.parentOffset)));
709
+ }
710
+ else {
711
+ let { start, end } = prepareSliceForReplace(slice, $from);
712
+ return close(node, replaceThreeWay($from, start, end, $to, depth));
713
+ }
714
+ }
715
+ function checkJoin(main, sub) {
716
+ if (!sub.type.compatibleContent(main.type))
717
+ throw new ReplaceError("Cannot join " + sub.type.name + " onto " + main.type.name);
718
+ }
719
+ function joinable($before, $after, depth) {
720
+ let node = $before.node(depth);
721
+ checkJoin(node, $after.node(depth));
722
+ return node;
723
+ }
724
+ function addNode(child, target) {
725
+ let last = target.length - 1;
726
+ if (last >= 0 && child.isText && child.sameMarkup(target[last]))
727
+ target[last] = child.withText(target[last].text + child.text);
728
+ else
729
+ target.push(child);
730
+ }
731
+ function addRange($start, $end, depth, target) {
732
+ let node = ($end || $start).node(depth);
733
+ let startIndex = 0, endIndex = $end ? $end.index(depth) : node.childCount;
734
+ if ($start) {
735
+ startIndex = $start.index(depth);
736
+ if ($start.depth > depth) {
737
+ startIndex++;
738
+ }
739
+ else if ($start.textOffset) {
740
+ addNode($start.nodeAfter, target);
741
+ startIndex++;
742
+ }
743
+ }
744
+ for (let i = startIndex; i < endIndex; i++)
745
+ addNode(node.child(i), target);
746
+ if ($end && $end.depth == depth && $end.textOffset)
747
+ addNode($end.nodeBefore, target);
748
+ }
749
+ function close(node, content) {
750
+ node.type.checkContent(content);
751
+ return node.copy(content);
752
+ }
753
+ function replaceThreeWay($from, $start, $end, $to, depth) {
754
+ let openStart = $from.depth > depth && joinable($from, $start, depth + 1);
755
+ let openEnd = $to.depth > depth && joinable($end, $to, depth + 1);
756
+ let content = [];
757
+ addRange(null, $from, depth, content);
758
+ if (openStart && openEnd && $start.index(depth) == $end.index(depth)) {
759
+ checkJoin(openStart, openEnd);
760
+ addNode(close(openStart, replaceThreeWay($from, $start, $end, $to, depth + 1)), content);
761
+ }
762
+ else {
763
+ if (openStart)
764
+ addNode(close(openStart, replaceTwoWay($from, $start, depth + 1)), content);
765
+ addRange($start, $end, depth, content);
766
+ if (openEnd)
767
+ addNode(close(openEnd, replaceTwoWay($end, $to, depth + 1)), content);
768
+ }
769
+ addRange($to, null, depth, content);
770
+ return new Fragment(content);
771
+ }
772
+ function replaceTwoWay($from, $to, depth) {
773
+ let content = [];
774
+ addRange(null, $from, depth, content);
775
+ if ($from.depth > depth) {
776
+ let type = joinable($from, $to, depth + 1);
777
+ addNode(close(type, replaceTwoWay($from, $to, depth + 1)), content);
778
+ }
779
+ addRange($to, null, depth, content);
780
+ return new Fragment(content);
781
+ }
782
+ function prepareSliceForReplace(slice, $along) {
783
+ let extra = $along.depth - slice.openStart, parent = $along.node(extra);
784
+ let node = parent.copy(slice.content);
785
+ for (let i = extra - 1; i >= 0; i--)
786
+ node = $along.node(i).copy(Fragment.from(node));
787
+ return { start: node.resolveNoCache(slice.openStart + extra),
788
+ end: node.resolveNoCache(node.content.size - slice.openEnd - extra) };
789
+ }
790
+
791
+ /**
792
+ You can [_resolve_](https://prosemirror.net/docs/ref/#model.Node.resolve) a position to get more
793
+ information about it. Objects of this class represent such a
794
+ resolved position, providing various pieces of context
795
+ information, and some helper methods.
796
+
797
+ Throughout this interface, methods that take an optional `depth`
798
+ parameter will interpret undefined as `this.depth` and negative
799
+ numbers as `this.depth + value`.
800
+ */
801
+ class ResolvedPos {
802
+ /**
803
+ @internal
804
+ */
805
+ constructor(
806
+ /**
807
+ The position that was resolved.
808
+ */
809
+ pos,
810
+ /**
811
+ @internal
812
+ */
813
+ path,
814
+ /**
815
+ The offset this position has into its parent node.
816
+ */
817
+ parentOffset) {
818
+ this.pos = pos;
819
+ this.path = path;
820
+ this.parentOffset = parentOffset;
821
+ this.depth = path.length / 3 - 1;
822
+ }
823
+ /**
824
+ @internal
825
+ */
826
+ resolveDepth(val) {
827
+ if (val == null)
828
+ return this.depth;
829
+ if (val < 0)
830
+ return this.depth + val;
831
+ return val;
832
+ }
833
+ /**
834
+ The parent node that the position points into. Note that even if
835
+ a position points into a text node, that node is not considered
836
+ the parent—text nodes are ‘flat’ in this model, and have no content.
837
+ */
838
+ get parent() { return this.node(this.depth); }
839
+ /**
840
+ The root node in which the position was resolved.
841
+ */
842
+ get doc() { return this.node(0); }
843
+ /**
844
+ The ancestor node at the given level. `p.node(p.depth)` is the
845
+ same as `p.parent`.
846
+ */
847
+ node(depth) { return this.path[this.resolveDepth(depth) * 3]; }
848
+ /**
849
+ The index into the ancestor at the given level. If this points
850
+ at the 3rd node in the 2nd paragraph on the top level, for
851
+ example, `p.index(0)` is 1 and `p.index(1)` is 2.
852
+ */
853
+ index(depth) { return this.path[this.resolveDepth(depth) * 3 + 1]; }
854
+ /**
855
+ The index pointing after this position into the ancestor at the
856
+ given level.
857
+ */
858
+ indexAfter(depth) {
859
+ depth = this.resolveDepth(depth);
860
+ return this.index(depth) + (depth == this.depth && !this.textOffset ? 0 : 1);
861
+ }
862
+ /**
863
+ The (absolute) position at the start of the node at the given
864
+ level.
865
+ */
866
+ start(depth) {
867
+ depth = this.resolveDepth(depth);
868
+ return depth == 0 ? 0 : this.path[depth * 3 - 1] + 1;
869
+ }
870
+ /**
871
+ The (absolute) position at the end of the node at the given
872
+ level.
873
+ */
874
+ end(depth) {
875
+ depth = this.resolveDepth(depth);
876
+ return this.start(depth) + this.node(depth).content.size;
877
+ }
878
+ /**
879
+ The (absolute) position directly before the wrapping node at the
880
+ given level, or, when `depth` is `this.depth + 1`, the original
881
+ position.
882
+ */
883
+ before(depth) {
884
+ depth = this.resolveDepth(depth);
885
+ if (!depth)
886
+ throw new RangeError("There is no position before the top-level node");
887
+ return depth == this.depth + 1 ? this.pos : this.path[depth * 3 - 1];
888
+ }
889
+ /**
890
+ The (absolute) position directly after the wrapping node at the
891
+ given level, or the original position when `depth` is `this.depth + 1`.
892
+ */
893
+ after(depth) {
894
+ depth = this.resolveDepth(depth);
895
+ if (!depth)
896
+ throw new RangeError("There is no position after the top-level node");
897
+ return depth == this.depth + 1 ? this.pos : this.path[depth * 3 - 1] + this.path[depth * 3].nodeSize;
898
+ }
899
+ /**
900
+ When this position points into a text node, this returns the
901
+ distance between the position and the start of the text node.
902
+ Will be zero for positions that point between nodes.
903
+ */
904
+ get textOffset() { return this.pos - this.path[this.path.length - 1]; }
905
+ /**
906
+ Get the node directly after the position, if any. If the position
907
+ points into a text node, only the part of that node after the
908
+ position is returned.
909
+ */
910
+ get nodeAfter() {
911
+ let parent = this.parent, index = this.index(this.depth);
912
+ if (index == parent.childCount)
913
+ return null;
914
+ let dOff = this.pos - this.path[this.path.length - 1], child = parent.child(index);
915
+ return dOff ? parent.child(index).cut(dOff) : child;
916
+ }
917
+ /**
918
+ Get the node directly before the position, if any. If the
919
+ position points into a text node, only the part of that node
920
+ before the position is returned.
921
+ */
922
+ get nodeBefore() {
923
+ let index = this.index(this.depth);
924
+ let dOff = this.pos - this.path[this.path.length - 1];
925
+ if (dOff)
926
+ return this.parent.child(index).cut(0, dOff);
927
+ return index == 0 ? null : this.parent.child(index - 1);
928
+ }
929
+ /**
930
+ Get the position at the given index in the parent node at the
931
+ given depth (which defaults to `this.depth`).
932
+ */
933
+ posAtIndex(index, depth) {
934
+ depth = this.resolveDepth(depth);
935
+ let node = this.path[depth * 3], pos = depth == 0 ? 0 : this.path[depth * 3 - 1] + 1;
936
+ for (let i = 0; i < index; i++)
937
+ pos += node.child(i).nodeSize;
938
+ return pos;
939
+ }
940
+ /**
941
+ Get the marks at this position, factoring in the surrounding
942
+ marks' [`inclusive`](https://prosemirror.net/docs/ref/#model.MarkSpec.inclusive) property. If the
943
+ position is at the start of a non-empty node, the marks of the
944
+ node after it (if any) are returned.
945
+ */
946
+ marks() {
947
+ let parent = this.parent, index = this.index();
948
+ // In an empty parent, return the empty array
949
+ if (parent.content.size == 0)
950
+ return Mark.none;
951
+ // When inside a text node, just return the text node's marks
952
+ if (this.textOffset)
953
+ return parent.child(index).marks;
954
+ let main = parent.maybeChild(index - 1), other = parent.maybeChild(index);
955
+ // If the `after` flag is true of there is no node before, make
956
+ // the node after this position the main reference.
957
+ if (!main) {
958
+ let tmp = main;
959
+ main = other;
960
+ other = tmp;
961
+ }
962
+ // Use all marks in the main node, except those that have
963
+ // `inclusive` set to false and are not present in the other node.
964
+ let marks = main.marks;
965
+ for (var i = 0; i < marks.length; i++)
966
+ if (marks[i].type.spec.inclusive === false && (!other || !marks[i].isInSet(other.marks)))
967
+ marks = marks[i--].removeFromSet(marks);
968
+ return marks;
969
+ }
970
+ /**
971
+ Get the marks after the current position, if any, except those
972
+ that are non-inclusive and not present at position `$end`. This
973
+ is mostly useful for getting the set of marks to preserve after a
974
+ deletion. Will return `null` if this position is at the end of
975
+ its parent node or its parent node isn't a textblock (in which
976
+ case no marks should be preserved).
977
+ */
978
+ marksAcross($end) {
979
+ let after = this.parent.maybeChild(this.index());
980
+ if (!after || !after.isInline)
981
+ return null;
982
+ let marks = after.marks, next = $end.parent.maybeChild($end.index());
983
+ for (var i = 0; i < marks.length; i++)
984
+ if (marks[i].type.spec.inclusive === false && (!next || !marks[i].isInSet(next.marks)))
985
+ marks = marks[i--].removeFromSet(marks);
986
+ return marks;
987
+ }
988
+ /**
989
+ The depth up to which this position and the given (non-resolved)
990
+ position share the same parent nodes.
991
+ */
992
+ sharedDepth(pos) {
993
+ for (let depth = this.depth; depth > 0; depth--)
994
+ if (this.start(depth) <= pos && this.end(depth) >= pos)
995
+ return depth;
996
+ return 0;
997
+ }
998
+ /**
999
+ Returns a range based on the place where this position and the
1000
+ given position diverge around block content. If both point into
1001
+ the same textblock, for example, a range around that textblock
1002
+ will be returned. If they point into different blocks, the range
1003
+ around those blocks in their shared ancestor is returned. You can
1004
+ pass in an optional predicate that will be called with a parent
1005
+ node to see if a range into that parent is acceptable.
1006
+ */
1007
+ blockRange(other = this, pred) {
1008
+ if (other.pos < this.pos)
1009
+ return other.blockRange(this);
1010
+ for (let d = this.depth - (this.parent.inlineContent || this.pos == other.pos ? 1 : 0); d >= 0; d--)
1011
+ if (other.pos <= this.end(d) && (!pred || pred(this.node(d))))
1012
+ return new NodeRange(this, other, d);
1013
+ return null;
1014
+ }
1015
+ /**
1016
+ Query whether the given position shares the same parent node.
1017
+ */
1018
+ sameParent(other) {
1019
+ return this.pos - this.parentOffset == other.pos - other.parentOffset;
1020
+ }
1021
+ /**
1022
+ Return the greater of this and the given position.
1023
+ */
1024
+ max(other) {
1025
+ return other.pos > this.pos ? other : this;
1026
+ }
1027
+ /**
1028
+ Return the smaller of this and the given position.
1029
+ */
1030
+ min(other) {
1031
+ return other.pos < this.pos ? other : this;
1032
+ }
1033
+ /**
1034
+ @internal
1035
+ */
1036
+ toString() {
1037
+ let str = "";
1038
+ for (let i = 1; i <= this.depth; i++)
1039
+ str += (str ? "/" : "") + this.node(i).type.name + "_" + this.index(i - 1);
1040
+ return str + ":" + this.parentOffset;
1041
+ }
1042
+ /**
1043
+ @internal
1044
+ */
1045
+ static resolve(doc, pos) {
1046
+ if (!(pos >= 0 && pos <= doc.content.size))
1047
+ throw new RangeError("Position " + pos + " out of range");
1048
+ let path = [];
1049
+ let start = 0, parentOffset = pos;
1050
+ for (let node = doc;;) {
1051
+ let { index, offset } = node.content.findIndex(parentOffset);
1052
+ let rem = parentOffset - offset;
1053
+ path.push(node, index, start + offset);
1054
+ if (!rem)
1055
+ break;
1056
+ node = node.child(index);
1057
+ if (node.isText)
1058
+ break;
1059
+ parentOffset = rem - 1;
1060
+ start += offset + 1;
1061
+ }
1062
+ return new ResolvedPos(pos, path, parentOffset);
1063
+ }
1064
+ /**
1065
+ @internal
1066
+ */
1067
+ static resolveCached(doc, pos) {
1068
+ let cache = resolveCache.get(doc);
1069
+ if (cache) {
1070
+ for (let i = 0; i < cache.elts.length; i++) {
1071
+ let elt = cache.elts[i];
1072
+ if (elt.pos == pos)
1073
+ return elt;
1074
+ }
1075
+ }
1076
+ else {
1077
+ resolveCache.set(doc, cache = new ResolveCache);
1078
+ }
1079
+ let result = cache.elts[cache.i] = ResolvedPos.resolve(doc, pos);
1080
+ cache.i = (cache.i + 1) % resolveCacheSize;
1081
+ return result;
1082
+ }
1083
+ }
1084
+ class ResolveCache {
1085
+ constructor() {
1086
+ this.elts = [];
1087
+ this.i = 0;
1088
+ }
1089
+ }
1090
+ const resolveCacheSize = 12, resolveCache = new WeakMap();
1091
+ /**
1092
+ Represents a flat range of content, i.e. one that starts and
1093
+ ends in the same node.
1094
+ */
1095
+ class NodeRange {
1096
+ /**
1097
+ Construct a node range. `$from` and `$to` should point into the
1098
+ same node until at least the given `depth`, since a node range
1099
+ denotes an adjacent set of nodes in a single parent node.
1100
+ */
1101
+ constructor(
1102
+ /**
1103
+ A resolved position along the start of the content. May have a
1104
+ `depth` greater than this object's `depth` property, since
1105
+ these are the positions that were used to compute the range,
1106
+ not re-resolved positions directly at its boundaries.
1107
+ */
1108
+ $from,
1109
+ /**
1110
+ A position along the end of the content. See
1111
+ caveat for [`$from`](https://prosemirror.net/docs/ref/#model.NodeRange.$from).
1112
+ */
1113
+ $to,
1114
+ /**
1115
+ The depth of the node that this range points into.
1116
+ */
1117
+ depth) {
1118
+ this.$from = $from;
1119
+ this.$to = $to;
1120
+ this.depth = depth;
1121
+ }
1122
+ /**
1123
+ The position at the start of the range.
1124
+ */
1125
+ get start() { return this.$from.before(this.depth + 1); }
1126
+ /**
1127
+ The position at the end of the range.
1128
+ */
1129
+ get end() { return this.$to.after(this.depth + 1); }
1130
+ /**
1131
+ The parent node that the range points into.
1132
+ */
1133
+ get parent() { return this.$from.node(this.depth); }
1134
+ /**
1135
+ The start index of the range in the parent node.
1136
+ */
1137
+ get startIndex() { return this.$from.index(this.depth); }
1138
+ /**
1139
+ The end index of the range in the parent node.
1140
+ */
1141
+ get endIndex() { return this.$to.indexAfter(this.depth); }
1142
+ }
1143
+
1144
+ const emptyAttrs = Object.create(null);
1145
+ /**
1146
+ This class represents a node in the tree that makes up a
1147
+ ProseMirror document. So a document is an instance of `Node`, with
1148
+ children that are also instances of `Node`.
1149
+
1150
+ Nodes are persistent data structures. Instead of changing them, you
1151
+ create new ones with the content you want. Old ones keep pointing
1152
+ at the old document shape. This is made cheaper by sharing
1153
+ structure between the old and new data as much as possible, which a
1154
+ tree shape like this (without back pointers) makes easy.
1155
+
1156
+ **Do not** directly mutate the properties of a `Node` object. See
1157
+ [the guide](https://prosemirror.net/docs/guide/#doc) for more information.
1158
+ */
1159
+ class Node {
1160
+ /**
1161
+ @internal
1162
+ */
1163
+ constructor(
1164
+ /**
1165
+ The type of node that this is.
1166
+ */
1167
+ type,
1168
+ /**
1169
+ An object mapping attribute names to values. The kind of
1170
+ attributes allowed and required are
1171
+ [determined](https://prosemirror.net/docs/ref/#model.NodeSpec.attrs) by the node type.
1172
+ */
1173
+ attrs,
1174
+ // A fragment holding the node's children.
1175
+ content,
1176
+ /**
1177
+ The marks (things like whether it is emphasized or part of a
1178
+ link) applied to this node.
1179
+ */
1180
+ marks = Mark.none) {
1181
+ this.type = type;
1182
+ this.attrs = attrs;
1183
+ this.marks = marks;
1184
+ this.content = content || Fragment.empty;
1185
+ }
1186
+ /**
1187
+ The array of this node's child nodes.
1188
+ */
1189
+ get children() { return this.content.content; }
1190
+ /**
1191
+ The size of this node, as defined by the integer-based [indexing
1192
+ scheme](https://prosemirror.net/docs/guide/#doc.indexing). For text nodes, this is the
1193
+ amount of characters. For other leaf nodes, it is one. For
1194
+ non-leaf nodes, it is the size of the content plus two (the
1195
+ start and end token).
1196
+ */
1197
+ get nodeSize() { return this.isLeaf ? 1 : 2 + this.content.size; }
1198
+ /**
1199
+ The number of children that the node has.
1200
+ */
1201
+ get childCount() { return this.content.childCount; }
1202
+ /**
1203
+ Get the child node at the given index. Raises an error when the
1204
+ index is out of range.
1205
+ */
1206
+ child(index) { return this.content.child(index); }
1207
+ /**
1208
+ Get the child node at the given index, if it exists.
1209
+ */
1210
+ maybeChild(index) { return this.content.maybeChild(index); }
1211
+ /**
1212
+ Call `f` for every child node, passing the node, its offset
1213
+ into this parent node, and its index.
1214
+ */
1215
+ forEach(f) { this.content.forEach(f); }
1216
+ /**
1217
+ Invoke a callback for all descendant nodes recursively between
1218
+ the given two positions that are relative to start of this
1219
+ node's content. The callback is invoked with the node, its
1220
+ position relative to the original node (method receiver),
1221
+ its parent node, and its child index. When the callback returns
1222
+ false for a given node, that node's children will not be
1223
+ recursed over. The last parameter can be used to specify a
1224
+ starting position to count from.
1225
+ */
1226
+ nodesBetween(from, to, f, startPos = 0) {
1227
+ this.content.nodesBetween(from, to, f, startPos, this);
1228
+ }
1229
+ /**
1230
+ Call the given callback for every descendant node. Doesn't
1231
+ descend into a node when the callback returns `false`.
1232
+ */
1233
+ descendants(f) {
1234
+ this.nodesBetween(0, this.content.size, f);
1235
+ }
1236
+ /**
1237
+ Concatenates all the text nodes found in this fragment and its
1238
+ children.
1239
+ */
1240
+ get textContent() {
1241
+ return (this.isLeaf && this.type.spec.leafText)
1242
+ ? this.type.spec.leafText(this)
1243
+ : this.textBetween(0, this.content.size, "");
1244
+ }
1245
+ /**
1246
+ Get all text between positions `from` and `to`. When
1247
+ `blockSeparator` is given, it will be inserted to separate text
1248
+ from different block nodes. If `leafText` is given, it'll be
1249
+ inserted for every non-text leaf node encountered, otherwise
1250
+ [`leafText`](https://prosemirror.net/docs/ref/#model.NodeSpec.leafText) will be used.
1251
+ */
1252
+ textBetween(from, to, blockSeparator, leafText) {
1253
+ return this.content.textBetween(from, to, blockSeparator, leafText);
1254
+ }
1255
+ /**
1256
+ Returns this node's first child, or `null` if there are no
1257
+ children.
1258
+ */
1259
+ get firstChild() { return this.content.firstChild; }
1260
+ /**
1261
+ Returns this node's last child, or `null` if there are no
1262
+ children.
1263
+ */
1264
+ get lastChild() { return this.content.lastChild; }
1265
+ /**
1266
+ Test whether two nodes represent the same piece of document.
1267
+ */
1268
+ eq(other) {
1269
+ return this == other || (this.sameMarkup(other) && this.content.eq(other.content));
1270
+ }
1271
+ /**
1272
+ Compare the markup (type, attributes, and marks) of this node to
1273
+ those of another. Returns `true` if both have the same markup.
1274
+ */
1275
+ sameMarkup(other) {
1276
+ return this.hasMarkup(other.type, other.attrs, other.marks);
1277
+ }
1278
+ /**
1279
+ Check whether this node's markup correspond to the given type,
1280
+ attributes, and marks.
1281
+ */
1282
+ hasMarkup(type, attrs, marks) {
1283
+ return this.type == type &&
1284
+ compareDeep(this.attrs, attrs || type.defaultAttrs || emptyAttrs) &&
1285
+ Mark.sameSet(this.marks, marks || Mark.none);
1286
+ }
1287
+ /**
1288
+ Create a new node with the same markup as this node, containing
1289
+ the given content (or empty, if no content is given).
1290
+ */
1291
+ copy(content = null) {
1292
+ if (content == this.content)
1293
+ return this;
1294
+ return new Node(this.type, this.attrs, content, this.marks);
1295
+ }
1296
+ /**
1297
+ Create a copy of this node, with the given set of marks instead
1298
+ of the node's own marks.
1299
+ */
1300
+ mark(marks) {
1301
+ return marks == this.marks ? this : new Node(this.type, this.attrs, this.content, marks);
1302
+ }
1303
+ /**
1304
+ Create a copy of this node with only the content between the
1305
+ given positions. If `to` is not given, it defaults to the end of
1306
+ the node.
1307
+ */
1308
+ cut(from, to = this.content.size) {
1309
+ if (from == 0 && to == this.content.size)
1310
+ return this;
1311
+ return this.copy(this.content.cut(from, to));
1312
+ }
1313
+ /**
1314
+ Cut out the part of the document between the given positions, and
1315
+ return it as a `Slice` object.
1316
+ */
1317
+ slice(from, to = this.content.size, includeParents = false) {
1318
+ if (from == to)
1319
+ return Slice.empty;
1320
+ let $from = this.resolve(from), $to = this.resolve(to);
1321
+ let depth = includeParents ? 0 : $from.sharedDepth(to);
1322
+ let start = $from.start(depth), node = $from.node(depth);
1323
+ let content = node.content.cut($from.pos - start, $to.pos - start);
1324
+ return new Slice(content, $from.depth - depth, $to.depth - depth);
1325
+ }
1326
+ /**
1327
+ Replace the part of the document between the given positions with
1328
+ the given slice. The slice must 'fit', meaning its open sides
1329
+ must be able to connect to the surrounding content, and its
1330
+ content nodes must be valid children for the node they are placed
1331
+ into. If any of this is violated, an error of type
1332
+ [`ReplaceError`](https://prosemirror.net/docs/ref/#model.ReplaceError) is thrown.
1333
+ */
1334
+ replace(from, to, slice) {
1335
+ return replace(this.resolve(from), this.resolve(to), slice);
1336
+ }
1337
+ /**
1338
+ Find the node directly after the given position.
1339
+ */
1340
+ nodeAt(pos) {
1341
+ for (let node = this;;) {
1342
+ let { index, offset } = node.content.findIndex(pos);
1343
+ node = node.maybeChild(index);
1344
+ if (!node)
1345
+ return null;
1346
+ if (offset == pos || node.isText)
1347
+ return node;
1348
+ pos -= offset + 1;
1349
+ }
1350
+ }
1351
+ /**
1352
+ Find the (direct) child node after the given offset, if any,
1353
+ and return it along with its index and offset relative to this
1354
+ node.
1355
+ */
1356
+ childAfter(pos) {
1357
+ let { index, offset } = this.content.findIndex(pos);
1358
+ return { node: this.content.maybeChild(index), index, offset };
1359
+ }
1360
+ /**
1361
+ Find the (direct) child node before the given offset, if any,
1362
+ and return it along with its index and offset relative to this
1363
+ node.
1364
+ */
1365
+ childBefore(pos) {
1366
+ if (pos == 0)
1367
+ return { node: null, index: 0, offset: 0 };
1368
+ let { index, offset } = this.content.findIndex(pos);
1369
+ if (offset < pos)
1370
+ return { node: this.content.child(index), index, offset };
1371
+ let node = this.content.child(index - 1);
1372
+ return { node, index: index - 1, offset: offset - node.nodeSize };
1373
+ }
1374
+ /**
1375
+ Resolve the given position in the document, returning an
1376
+ [object](https://prosemirror.net/docs/ref/#model.ResolvedPos) with information about its context.
1377
+ */
1378
+ resolve(pos) { return ResolvedPos.resolveCached(this, pos); }
1379
+ /**
1380
+ @internal
1381
+ */
1382
+ resolveNoCache(pos) { return ResolvedPos.resolve(this, pos); }
1383
+ /**
1384
+ Test whether a given mark or mark type occurs in this document
1385
+ between the two given positions.
1386
+ */
1387
+ rangeHasMark(from, to, type) {
1388
+ let found = false;
1389
+ if (to > from)
1390
+ this.nodesBetween(from, to, node => {
1391
+ if (type.isInSet(node.marks))
1392
+ found = true;
1393
+ return !found;
1394
+ });
1395
+ return found;
1396
+ }
1397
+ /**
1398
+ True when this is a block (non-inline node)
1399
+ */
1400
+ get isBlock() { return this.type.isBlock; }
1401
+ /**
1402
+ True when this is a textblock node, a block node with inline
1403
+ content.
1404
+ */
1405
+ get isTextblock() { return this.type.isTextblock; }
1406
+ /**
1407
+ True when this node allows inline content.
1408
+ */
1409
+ get inlineContent() { return this.type.inlineContent; }
1410
+ /**
1411
+ True when this is an inline node (a text node or a node that can
1412
+ appear among text).
1413
+ */
1414
+ get isInline() { return this.type.isInline; }
1415
+ /**
1416
+ True when this is a text node.
1417
+ */
1418
+ get isText() { return this.type.isText; }
1419
+ /**
1420
+ True when this is a leaf node.
1421
+ */
1422
+ get isLeaf() { return this.type.isLeaf; }
1423
+ /**
1424
+ True when this is an atom, i.e. when it does not have directly
1425
+ editable content. This is usually the same as `isLeaf`, but can
1426
+ be configured with the [`atom` property](https://prosemirror.net/docs/ref/#model.NodeSpec.atom)
1427
+ on a node's spec (typically used when the node is displayed as
1428
+ an uneditable [node view](https://prosemirror.net/docs/ref/#view.NodeView)).
1429
+ */
1430
+ get isAtom() { return this.type.isAtom; }
1431
+ /**
1432
+ Return a string representation of this node for debugging
1433
+ purposes.
1434
+ */
1435
+ toString() {
1436
+ if (this.type.spec.toDebugString)
1437
+ return this.type.spec.toDebugString(this);
1438
+ let name = this.type.name;
1439
+ if (this.content.size)
1440
+ name += "(" + this.content.toStringInner() + ")";
1441
+ return wrapMarks(this.marks, name);
1442
+ }
1443
+ /**
1444
+ Get the content match in this node at the given index.
1445
+ */
1446
+ contentMatchAt(index) {
1447
+ let match = this.type.contentMatch.matchFragment(this.content, 0, index);
1448
+ if (!match)
1449
+ throw new Error("Called contentMatchAt on a node with invalid content");
1450
+ return match;
1451
+ }
1452
+ /**
1453
+ Test whether replacing the range between `from` and `to` (by
1454
+ child index) with the given replacement fragment (which defaults
1455
+ to the empty fragment) would leave the node's content valid. You
1456
+ can optionally pass `start` and `end` indices into the
1457
+ replacement fragment.
1458
+ */
1459
+ canReplace(from, to, replacement = Fragment.empty, start = 0, end = replacement.childCount) {
1460
+ let one = this.contentMatchAt(from).matchFragment(replacement, start, end);
1461
+ let two = one && one.matchFragment(this.content, to);
1462
+ if (!two || !two.validEnd)
1463
+ return false;
1464
+ for (let i = start; i < end; i++)
1465
+ if (!this.type.allowsMarks(replacement.child(i).marks))
1466
+ return false;
1467
+ return true;
1468
+ }
1469
+ /**
1470
+ Test whether replacing the range `from` to `to` (by index) with
1471
+ a node of the given type would leave the node's content valid.
1472
+ */
1473
+ canReplaceWith(from, to, type, marks) {
1474
+ if (marks && !this.type.allowsMarks(marks))
1475
+ return false;
1476
+ let start = this.contentMatchAt(from).matchType(type);
1477
+ let end = start && start.matchFragment(this.content, to);
1478
+ return end ? end.validEnd : false;
1479
+ }
1480
+ /**
1481
+ Test whether the given node's content could be appended to this
1482
+ node. If that node is empty, this will only return true if there
1483
+ is at least one node type that can appear in both nodes (to avoid
1484
+ merging completely incompatible nodes).
1485
+ */
1486
+ canAppend(other) {
1487
+ if (other.content.size)
1488
+ return this.canReplace(this.childCount, this.childCount, other.content);
1489
+ else
1490
+ return this.type.compatibleContent(other.type);
1491
+ }
1492
+ /**
1493
+ Check whether this node and its descendants conform to the
1494
+ schema, and raise an exception when they do not.
1495
+ */
1496
+ check() {
1497
+ this.type.checkContent(this.content);
1498
+ this.type.checkAttrs(this.attrs);
1499
+ let copy = Mark.none;
1500
+ for (let i = 0; i < this.marks.length; i++) {
1501
+ let mark = this.marks[i];
1502
+ mark.type.checkAttrs(mark.attrs);
1503
+ copy = mark.addToSet(copy);
1504
+ }
1505
+ if (!Mark.sameSet(copy, this.marks))
1506
+ throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(m => m.type.name)}`);
1507
+ this.content.forEach(node => node.check());
1508
+ }
1509
+ /**
1510
+ Return a JSON-serializeable representation of this node.
1511
+ */
1512
+ toJSON() {
1513
+ let obj = { type: this.type.name };
1514
+ for (let _ in this.attrs) {
1515
+ obj.attrs = this.attrs;
1516
+ break;
1517
+ }
1518
+ if (this.content.size)
1519
+ obj.content = this.content.toJSON();
1520
+ if (this.marks.length)
1521
+ obj.marks = this.marks.map(n => n.toJSON());
1522
+ return obj;
1523
+ }
1524
+ /**
1525
+ Deserialize a node from its JSON representation.
1526
+ */
1527
+ static fromJSON(schema, json) {
1528
+ if (!json)
1529
+ throw new RangeError("Invalid input for Node.fromJSON");
1530
+ let marks = undefined;
1531
+ if (json.marks) {
1532
+ if (!Array.isArray(json.marks))
1533
+ throw new RangeError("Invalid mark data for Node.fromJSON");
1534
+ marks = json.marks.map(schema.markFromJSON);
1535
+ }
1536
+ if (json.type == "text") {
1537
+ if (typeof json.text != "string")
1538
+ throw new RangeError("Invalid text node in JSON");
1539
+ return schema.text(json.text, marks);
1540
+ }
1541
+ let content = Fragment.fromJSON(schema, json.content);
1542
+ let node = schema.nodeType(json.type).create(json.attrs, content, marks);
1543
+ node.type.checkAttrs(node.attrs);
1544
+ return node;
1545
+ }
1546
+ }
1547
+ Node.prototype.text = undefined;
1548
+ class TextNode extends Node {
1549
+ /**
1550
+ @internal
1551
+ */
1552
+ constructor(type, attrs, content, marks) {
1553
+ super(type, attrs, null, marks);
1554
+ if (!content)
1555
+ throw new RangeError("Empty text nodes are not allowed");
1556
+ this.text = content;
1557
+ }
1558
+ toString() {
1559
+ if (this.type.spec.toDebugString)
1560
+ return this.type.spec.toDebugString(this);
1561
+ return wrapMarks(this.marks, JSON.stringify(this.text));
1562
+ }
1563
+ get textContent() { return this.text; }
1564
+ textBetween(from, to) { return this.text.slice(from, to); }
1565
+ get nodeSize() { return this.text.length; }
1566
+ mark(marks) {
1567
+ return marks == this.marks ? this : new TextNode(this.type, this.attrs, this.text, marks);
1568
+ }
1569
+ withText(text) {
1570
+ if (text == this.text)
1571
+ return this;
1572
+ return new TextNode(this.type, this.attrs, text, this.marks);
1573
+ }
1574
+ cut(from = 0, to = this.text.length) {
1575
+ if (from == 0 && to == this.text.length)
1576
+ return this;
1577
+ return this.withText(this.text.slice(from, to));
1578
+ }
1579
+ eq(other) {
1580
+ return this.sameMarkup(other) && this.text == other.text;
1581
+ }
1582
+ toJSON() {
1583
+ let base = super.toJSON();
1584
+ base.text = this.text;
1585
+ return base;
1586
+ }
1587
+ }
1588
+ function wrapMarks(marks, str) {
1589
+ for (let i = marks.length - 1; i >= 0; i--)
1590
+ str = marks[i].type.name + "(" + str + ")";
1591
+ return str;
1592
+ }
1593
+
1594
+ /**
1595
+ Instances of this class represent a match state of a node type's
1596
+ [content expression](https://prosemirror.net/docs/ref/#model.NodeSpec.content), and can be used to
1597
+ find out whether further content matches here, and whether a given
1598
+ position is a valid end of the node.
1599
+ */
1600
+ class ContentMatch {
1601
+ /**
1602
+ @internal
1603
+ */
1604
+ constructor(
1605
+ /**
1606
+ True when this match state represents a valid end of the node.
1607
+ */
1608
+ validEnd) {
1609
+ this.validEnd = validEnd;
1610
+ /**
1611
+ @internal
1612
+ */
1613
+ this.next = [];
1614
+ /**
1615
+ @internal
1616
+ */
1617
+ this.wrapCache = [];
1618
+ }
1619
+ /**
1620
+ @internal
1621
+ */
1622
+ static parse(string, nodeTypes) {
1623
+ let stream = new TokenStream(string, nodeTypes);
1624
+ if (stream.next == null)
1625
+ return ContentMatch.empty;
1626
+ let expr = parseExpr(stream);
1627
+ if (stream.next)
1628
+ stream.err("Unexpected trailing text");
1629
+ let match = dfa(nfa(expr));
1630
+ checkForDeadEnds(match, stream);
1631
+ return match;
1632
+ }
1633
+ /**
1634
+ Match a node type, returning a match after that node if
1635
+ successful.
1636
+ */
1637
+ matchType(type) {
1638
+ for (let i = 0; i < this.next.length; i++)
1639
+ if (this.next[i].type == type)
1640
+ return this.next[i].next;
1641
+ return null;
1642
+ }
1643
+ /**
1644
+ Try to match a fragment. Returns the resulting match when
1645
+ successful.
1646
+ */
1647
+ matchFragment(frag, start = 0, end = frag.childCount) {
1648
+ let cur = this;
1649
+ for (let i = start; cur && i < end; i++)
1650
+ cur = cur.matchType(frag.child(i).type);
1651
+ return cur;
1652
+ }
1653
+ /**
1654
+ @internal
1655
+ */
1656
+ get inlineContent() {
1657
+ return this.next.length != 0 && this.next[0].type.isInline;
1658
+ }
1659
+ /**
1660
+ Get the first matching node type at this match position that can
1661
+ be generated.
1662
+ */
1663
+ get defaultType() {
1664
+ for (let i = 0; i < this.next.length; i++) {
1665
+ let { type } = this.next[i];
1666
+ if (!(type.isText || type.hasRequiredAttrs()))
1667
+ return type;
1668
+ }
1669
+ return null;
1670
+ }
1671
+ /**
1672
+ @internal
1673
+ */
1674
+ compatible(other) {
1675
+ for (let i = 0; i < this.next.length; i++)
1676
+ for (let j = 0; j < other.next.length; j++)
1677
+ if (this.next[i].type == other.next[j].type)
1678
+ return true;
1679
+ return false;
1680
+ }
1681
+ /**
1682
+ Try to match the given fragment, and if that fails, see if it can
1683
+ be made to match by inserting nodes in front of it. When
1684
+ successful, return a fragment of inserted nodes (which may be
1685
+ empty if nothing had to be inserted). When `toEnd` is true, only
1686
+ return a fragment if the resulting match goes to the end of the
1687
+ content expression.
1688
+ */
1689
+ fillBefore(after, toEnd = false, startIndex = 0) {
1690
+ let seen = [this];
1691
+ function search(match, types) {
1692
+ let finished = match.matchFragment(after, startIndex);
1693
+ if (finished && (!toEnd || finished.validEnd))
1694
+ return Fragment.from(types.map(tp => tp.createAndFill()));
1695
+ for (let i = 0; i < match.next.length; i++) {
1696
+ let { type, next } = match.next[i];
1697
+ if (!(type.isText || type.hasRequiredAttrs()) && seen.indexOf(next) == -1) {
1698
+ seen.push(next);
1699
+ let found = search(next, types.concat(type));
1700
+ if (found)
1701
+ return found;
1702
+ }
1703
+ }
1704
+ return null;
1705
+ }
1706
+ return search(this, []);
1707
+ }
1708
+ /**
1709
+ Find a set of wrapping node types that would allow a node of the
1710
+ given type to appear at this position. The result may be empty
1711
+ (when it fits directly) and will be null when no such wrapping
1712
+ exists.
1713
+ */
1714
+ findWrapping(target) {
1715
+ for (let i = 0; i < this.wrapCache.length; i += 2)
1716
+ if (this.wrapCache[i] == target)
1717
+ return this.wrapCache[i + 1];
1718
+ let computed = this.computeWrapping(target);
1719
+ this.wrapCache.push(target, computed);
1720
+ return computed;
1721
+ }
1722
+ /**
1723
+ @internal
1724
+ */
1725
+ computeWrapping(target) {
1726
+ let seen = Object.create(null), active = [{ match: this, type: null, via: null }];
1727
+ while (active.length) {
1728
+ let current = active.shift(), match = current.match;
1729
+ if (match.matchType(target)) {
1730
+ let result = [];
1731
+ for (let obj = current; obj.type; obj = obj.via)
1732
+ result.push(obj.type);
1733
+ return result.reverse();
1734
+ }
1735
+ for (let i = 0; i < match.next.length; i++) {
1736
+ let { type, next } = match.next[i];
1737
+ if (!type.isLeaf && !type.hasRequiredAttrs() && !(type.name in seen) && (!current.type || next.validEnd)) {
1738
+ active.push({ match: type.contentMatch, type, via: current });
1739
+ seen[type.name] = true;
1740
+ }
1741
+ }
1742
+ }
1743
+ return null;
1744
+ }
1745
+ /**
1746
+ The number of outgoing edges this node has in the finite
1747
+ automaton that describes the content expression.
1748
+ */
1749
+ get edgeCount() {
1750
+ return this.next.length;
1751
+ }
1752
+ /**
1753
+ Get the _n_​th outgoing edge from this node in the finite
1754
+ automaton that describes the content expression.
1755
+ */
1756
+ edge(n) {
1757
+ if (n >= this.next.length)
1758
+ throw new RangeError(`There's no ${n}th edge in this content match`);
1759
+ return this.next[n];
1760
+ }
1761
+ /**
1762
+ @internal
1763
+ */
1764
+ toString() {
1765
+ let seen = [];
1766
+ function scan(m) {
1767
+ seen.push(m);
1768
+ for (let i = 0; i < m.next.length; i++)
1769
+ if (seen.indexOf(m.next[i].next) == -1)
1770
+ scan(m.next[i].next);
1771
+ }
1772
+ scan(this);
1773
+ return seen.map((m, i) => {
1774
+ let out = i + (m.validEnd ? "*" : " ") + " ";
1775
+ for (let i = 0; i < m.next.length; i++)
1776
+ out += (i ? ", " : "") + m.next[i].type.name + "->" + seen.indexOf(m.next[i].next);
1777
+ return out;
1778
+ }).join("\n");
1779
+ }
1780
+ }
1781
+ /**
1782
+ @internal
1783
+ */
1784
+ ContentMatch.empty = new ContentMatch(true);
1785
+ class TokenStream {
1786
+ constructor(string, nodeTypes) {
1787
+ this.string = string;
1788
+ this.nodeTypes = nodeTypes;
1789
+ this.inline = null;
1790
+ this.pos = 0;
1791
+ this.tokens = string.split(/\s*(?=\b|\W|$)/);
1792
+ if (this.tokens[this.tokens.length - 1] == "")
1793
+ this.tokens.pop();
1794
+ if (this.tokens[0] == "")
1795
+ this.tokens.shift();
1796
+ }
1797
+ get next() { return this.tokens[this.pos]; }
1798
+ eat(tok) { return this.next == tok && (this.pos++ || true); }
1799
+ err(str) { throw new SyntaxError(str + " (in content expression '" + this.string + "')"); }
1800
+ }
1801
+ function parseExpr(stream) {
1802
+ let exprs = [];
1803
+ do {
1804
+ exprs.push(parseExprSeq(stream));
1805
+ } while (stream.eat("|"));
1806
+ return exprs.length == 1 ? exprs[0] : { type: "choice", exprs };
1807
+ }
1808
+ function parseExprSeq(stream) {
1809
+ let exprs = [];
1810
+ do {
1811
+ exprs.push(parseExprSubscript(stream));
1812
+ } while (stream.next && stream.next != ")" && stream.next != "|");
1813
+ return exprs.length == 1 ? exprs[0] : { type: "seq", exprs };
1814
+ }
1815
+ function parseExprSubscript(stream) {
1816
+ let expr = parseExprAtom(stream);
1817
+ for (;;) {
1818
+ if (stream.eat("+"))
1819
+ expr = { type: "plus", expr };
1820
+ else if (stream.eat("*"))
1821
+ expr = { type: "star", expr };
1822
+ else if (stream.eat("?"))
1823
+ expr = { type: "opt", expr };
1824
+ else if (stream.eat("{"))
1825
+ expr = parseExprRange(stream, expr);
1826
+ else
1827
+ break;
1828
+ }
1829
+ return expr;
1830
+ }
1831
+ function parseNum(stream) {
1832
+ if (/\D/.test(stream.next))
1833
+ stream.err("Expected number, got '" + stream.next + "'");
1834
+ let result = Number(stream.next);
1835
+ stream.pos++;
1836
+ return result;
1837
+ }
1838
+ function parseExprRange(stream, expr) {
1839
+ let min = parseNum(stream), max = min;
1840
+ if (stream.eat(",")) {
1841
+ if (stream.next != "}")
1842
+ max = parseNum(stream);
1843
+ else
1844
+ max = -1;
1845
+ }
1846
+ if (!stream.eat("}"))
1847
+ stream.err("Unclosed braced range");
1848
+ return { type: "range", min, max, expr };
1849
+ }
1850
+ function resolveName(stream, name) {
1851
+ let types = stream.nodeTypes, type = types[name];
1852
+ if (type)
1853
+ return [type];
1854
+ let result = [];
1855
+ for (let typeName in types) {
1856
+ let type = types[typeName];
1857
+ if (type.isInGroup(name))
1858
+ result.push(type);
1859
+ }
1860
+ if (result.length == 0)
1861
+ stream.err("No node type or group '" + name + "' found");
1862
+ return result;
1863
+ }
1864
+ function parseExprAtom(stream) {
1865
+ if (stream.eat("(")) {
1866
+ let expr = parseExpr(stream);
1867
+ if (!stream.eat(")"))
1868
+ stream.err("Missing closing paren");
1869
+ return expr;
1870
+ }
1871
+ else if (!/\W/.test(stream.next)) {
1872
+ let exprs = resolveName(stream, stream.next).map(type => {
1873
+ if (stream.inline == null)
1874
+ stream.inline = type.isInline;
1875
+ else if (stream.inline != type.isInline)
1876
+ stream.err("Mixing inline and block content");
1877
+ return { type: "name", value: type };
1878
+ });
1879
+ stream.pos++;
1880
+ return exprs.length == 1 ? exprs[0] : { type: "choice", exprs };
1881
+ }
1882
+ else {
1883
+ stream.err("Unexpected token '" + stream.next + "'");
1884
+ }
1885
+ }
1886
+ // Construct an NFA from an expression as returned by the parser. The
1887
+ // NFA is represented as an array of states, which are themselves
1888
+ // arrays of edges, which are `{term, to}` objects. The first state is
1889
+ // the entry state and the last node is the success state.
1890
+ //
1891
+ // Note that unlike typical NFAs, the edge ordering in this one is
1892
+ // significant, in that it is used to contruct filler content when
1893
+ // necessary.
1894
+ function nfa(expr) {
1895
+ let nfa = [[]];
1896
+ connect(compile(expr, 0), node());
1897
+ return nfa;
1898
+ function node() { return nfa.push([]) - 1; }
1899
+ function edge(from, to, term) {
1900
+ let edge = { term, to };
1901
+ nfa[from].push(edge);
1902
+ return edge;
1903
+ }
1904
+ function connect(edges, to) {
1905
+ edges.forEach(edge => edge.to = to);
1906
+ }
1907
+ function compile(expr, from) {
1908
+ if (expr.type == "choice") {
1909
+ return expr.exprs.reduce((out, expr) => out.concat(compile(expr, from)), []);
1910
+ }
1911
+ else if (expr.type == "seq") {
1912
+ for (let i = 0;; i++) {
1913
+ let next = compile(expr.exprs[i], from);
1914
+ if (i == expr.exprs.length - 1)
1915
+ return next;
1916
+ connect(next, from = node());
1917
+ }
1918
+ }
1919
+ else if (expr.type == "star") {
1920
+ let loop = node();
1921
+ edge(from, loop);
1922
+ connect(compile(expr.expr, loop), loop);
1923
+ return [edge(loop)];
1924
+ }
1925
+ else if (expr.type == "plus") {
1926
+ let loop = node();
1927
+ connect(compile(expr.expr, from), loop);
1928
+ connect(compile(expr.expr, loop), loop);
1929
+ return [edge(loop)];
1930
+ }
1931
+ else if (expr.type == "opt") {
1932
+ return [edge(from)].concat(compile(expr.expr, from));
1933
+ }
1934
+ else if (expr.type == "range") {
1935
+ let cur = from;
1936
+ for (let i = 0; i < expr.min; i++) {
1937
+ let next = node();
1938
+ connect(compile(expr.expr, cur), next);
1939
+ cur = next;
1940
+ }
1941
+ if (expr.max == -1) {
1942
+ connect(compile(expr.expr, cur), cur);
1943
+ }
1944
+ else {
1945
+ for (let i = expr.min; i < expr.max; i++) {
1946
+ let next = node();
1947
+ edge(cur, next);
1948
+ connect(compile(expr.expr, cur), next);
1949
+ cur = next;
1950
+ }
1951
+ }
1952
+ return [edge(cur)];
1953
+ }
1954
+ else if (expr.type == "name") {
1955
+ return [edge(from, undefined, expr.value)];
1956
+ }
1957
+ else {
1958
+ throw new Error("Unknown expr type");
1959
+ }
1960
+ }
1961
+ }
1962
+ function cmp(a, b) { return b - a; }
1963
+ // Get the set of nodes reachable by null edges from `node`. Omit
1964
+ // nodes with only a single null-out-edge, since they may lead to
1965
+ // needless duplicated nodes.
1966
+ function nullFrom(nfa, node) {
1967
+ let result = [];
1968
+ scan(node);
1969
+ return result.sort(cmp);
1970
+ function scan(node) {
1971
+ let edges = nfa[node];
1972
+ if (edges.length == 1 && !edges[0].term)
1973
+ return scan(edges[0].to);
1974
+ result.push(node);
1975
+ for (let i = 0; i < edges.length; i++) {
1976
+ let { term, to } = edges[i];
1977
+ if (!term && result.indexOf(to) == -1)
1978
+ scan(to);
1979
+ }
1980
+ }
1981
+ }
1982
+ // Compiles an NFA as produced by `nfa` into a DFA, modeled as a set
1983
+ // of state objects (`ContentMatch` instances) with transitions
1984
+ // between them.
1985
+ function dfa(nfa) {
1986
+ let labeled = Object.create(null);
1987
+ return explore(nullFrom(nfa, 0));
1988
+ function explore(states) {
1989
+ let out = [];
1990
+ states.forEach(node => {
1991
+ nfa[node].forEach(({ term, to }) => {
1992
+ if (!term)
1993
+ return;
1994
+ let set;
1995
+ for (let i = 0; i < out.length; i++)
1996
+ if (out[i][0] == term)
1997
+ set = out[i][1];
1998
+ nullFrom(nfa, to).forEach(node => {
1999
+ if (!set)
2000
+ out.push([term, set = []]);
2001
+ if (set.indexOf(node) == -1)
2002
+ set.push(node);
2003
+ });
2004
+ });
2005
+ });
2006
+ let state = labeled[states.join(",")] = new ContentMatch(states.indexOf(nfa.length - 1) > -1);
2007
+ for (let i = 0; i < out.length; i++) {
2008
+ let states = out[i][1].sort(cmp);
2009
+ state.next.push({ type: out[i][0], next: labeled[states.join(",")] || explore(states) });
2010
+ }
2011
+ return state;
2012
+ }
2013
+ }
2014
+ function checkForDeadEnds(match, stream) {
2015
+ for (let i = 0, work = [match]; i < work.length; i++) {
2016
+ let state = work[i], dead = !state.validEnd, nodes = [];
2017
+ for (let j = 0; j < state.next.length; j++) {
2018
+ let { type, next } = state.next[j];
2019
+ nodes.push(type.name);
2020
+ if (dead && !(type.isText || type.hasRequiredAttrs()))
2021
+ dead = false;
2022
+ if (work.indexOf(next) == -1)
2023
+ work.push(next);
2024
+ }
2025
+ if (dead)
2026
+ stream.err("Only non-generatable nodes (" + nodes.join(", ") + ") in a required position (see https://prosemirror.net/docs/guide/#generatable)");
2027
+ }
2028
+ }
2029
+
2030
+ // For node types where all attrs have a default value (or which don't
2031
+ // have any attributes), build up a single reusable default attribute
2032
+ // object, and use it for all nodes that don't specify specific
2033
+ // attributes.
2034
+ function defaultAttrs(attrs) {
2035
+ let defaults = Object.create(null);
2036
+ for (let attrName in attrs) {
2037
+ let attr = attrs[attrName];
2038
+ if (!attr.hasDefault)
2039
+ return null;
2040
+ defaults[attrName] = attr.default;
2041
+ }
2042
+ return defaults;
2043
+ }
2044
+ function computeAttrs(attrs, value) {
2045
+ let built = Object.create(null);
2046
+ for (let name in attrs) {
2047
+ let given = value && value[name];
2048
+ if (given === undefined) {
2049
+ let attr = attrs[name];
2050
+ if (attr.hasDefault)
2051
+ given = attr.default;
2052
+ else
2053
+ throw new RangeError("No value supplied for attribute " + name);
2054
+ }
2055
+ built[name] = given;
2056
+ }
2057
+ return built;
2058
+ }
2059
+ function checkAttrs(attrs, values, type, name) {
2060
+ for (let name in values)
2061
+ if (!(name in attrs))
2062
+ throw new RangeError(`Unsupported attribute ${name} for ${type} of type ${name}`);
2063
+ for (let name in attrs) {
2064
+ let attr = attrs[name];
2065
+ if (attr.validate)
2066
+ attr.validate(values[name]);
2067
+ }
2068
+ }
2069
+ function initAttrs(typeName, attrs) {
2070
+ let result = Object.create(null);
2071
+ if (attrs)
2072
+ for (let name in attrs)
2073
+ result[name] = new Attribute(typeName, name, attrs[name]);
2074
+ return result;
2075
+ }
2076
+ /**
2077
+ Node types are objects allocated once per `Schema` and used to
2078
+ [tag](https://prosemirror.net/docs/ref/#model.Node.type) `Node` instances. They contain information
2079
+ about the node type, such as its name and what kind of node it
2080
+ represents.
2081
+ */
2082
+ class NodeType {
2083
+ /**
2084
+ @internal
2085
+ */
2086
+ constructor(
2087
+ /**
2088
+ The name the node type has in this schema.
2089
+ */
2090
+ name,
2091
+ /**
2092
+ A link back to the `Schema` the node type belongs to.
2093
+ */
2094
+ schema,
2095
+ /**
2096
+ The spec that this type is based on
2097
+ */
2098
+ spec) {
2099
+ this.name = name;
2100
+ this.schema = schema;
2101
+ this.spec = spec;
2102
+ /**
2103
+ The set of marks allowed in this node. `null` means all marks
2104
+ are allowed.
2105
+ */
2106
+ this.markSet = null;
2107
+ this.groups = spec.group ? spec.group.split(" ") : [];
2108
+ this.attrs = initAttrs(name, spec.attrs);
2109
+ this.defaultAttrs = defaultAttrs(this.attrs);
2110
+ this.contentMatch = null;
2111
+ this.inlineContent = null;
2112
+ this.isBlock = !(spec.inline || name == "text");
2113
+ this.isText = name == "text";
2114
+ }
2115
+ /**
2116
+ True if this is an inline type.
2117
+ */
2118
+ get isInline() { return !this.isBlock; }
2119
+ /**
2120
+ True if this is a textblock type, a block that contains inline
2121
+ content.
2122
+ */
2123
+ get isTextblock() { return this.isBlock && this.inlineContent; }
2124
+ /**
2125
+ True for node types that allow no content.
2126
+ */
2127
+ get isLeaf() { return this.contentMatch == ContentMatch.empty; }
2128
+ /**
2129
+ True when this node is an atom, i.e. when it does not have
2130
+ directly editable content.
2131
+ */
2132
+ get isAtom() { return this.isLeaf || !!this.spec.atom; }
2133
+ /**
2134
+ Return true when this node type is part of the given
2135
+ [group](https://prosemirror.net/docs/ref/#model.NodeSpec.group).
2136
+ */
2137
+ isInGroup(group) {
2138
+ return this.groups.indexOf(group) > -1;
2139
+ }
2140
+ /**
2141
+ The node type's [whitespace](https://prosemirror.net/docs/ref/#model.NodeSpec.whitespace) option.
2142
+ */
2143
+ get whitespace() {
2144
+ return this.spec.whitespace || (this.spec.code ? "pre" : "normal");
2145
+ }
2146
+ /**
2147
+ Tells you whether this node type has any required attributes.
2148
+ */
2149
+ hasRequiredAttrs() {
2150
+ for (let n in this.attrs)
2151
+ if (this.attrs[n].isRequired)
2152
+ return true;
2153
+ return false;
2154
+ }
2155
+ /**
2156
+ Indicates whether this node allows some of the same content as
2157
+ the given node type.
2158
+ */
2159
+ compatibleContent(other) {
2160
+ return this == other || this.contentMatch.compatible(other.contentMatch);
2161
+ }
2162
+ /**
2163
+ @internal
2164
+ */
2165
+ computeAttrs(attrs) {
2166
+ if (!attrs && this.defaultAttrs)
2167
+ return this.defaultAttrs;
2168
+ else
2169
+ return computeAttrs(this.attrs, attrs);
2170
+ }
2171
+ /**
2172
+ Create a `Node` of this type. The given attributes are
2173
+ checked and defaulted (you can pass `null` to use the type's
2174
+ defaults entirely, if no required attributes exist). `content`
2175
+ may be a `Fragment`, a node, an array of nodes, or
2176
+ `null`. Similarly `marks` may be `null` to default to the empty
2177
+ set of marks.
2178
+ */
2179
+ create(attrs = null, content, marks) {
2180
+ if (this.isText)
2181
+ throw new Error("NodeType.create can't construct text nodes");
2182
+ return new Node(this, this.computeAttrs(attrs), Fragment.from(content), Mark.setFrom(marks));
2183
+ }
2184
+ /**
2185
+ Like [`create`](https://prosemirror.net/docs/ref/#model.NodeType.create), but check the given content
2186
+ against the node type's content restrictions, and throw an error
2187
+ if it doesn't match.
2188
+ */
2189
+ createChecked(attrs = null, content, marks) {
2190
+ content = Fragment.from(content);
2191
+ this.checkContent(content);
2192
+ return new Node(this, this.computeAttrs(attrs), content, Mark.setFrom(marks));
2193
+ }
2194
+ /**
2195
+ Like [`create`](https://prosemirror.net/docs/ref/#model.NodeType.create), but see if it is
2196
+ necessary to add nodes to the start or end of the given fragment
2197
+ to make it fit the node. If no fitting wrapping can be found,
2198
+ return null. Note that, due to the fact that required nodes can
2199
+ always be created, this will always succeed if you pass null or
2200
+ `Fragment.empty` as content.
2201
+ */
2202
+ createAndFill(attrs = null, content, marks) {
2203
+ attrs = this.computeAttrs(attrs);
2204
+ content = Fragment.from(content);
2205
+ if (content.size) {
2206
+ let before = this.contentMatch.fillBefore(content);
2207
+ if (!before)
2208
+ return null;
2209
+ content = before.append(content);
2210
+ }
2211
+ let matched = this.contentMatch.matchFragment(content);
2212
+ let after = matched && matched.fillBefore(Fragment.empty, true);
2213
+ if (!after)
2214
+ return null;
2215
+ return new Node(this, attrs, content.append(after), Mark.setFrom(marks));
2216
+ }
2217
+ /**
2218
+ Returns true if the given fragment is valid content for this node
2219
+ type.
2220
+ */
2221
+ validContent(content) {
2222
+ let result = this.contentMatch.matchFragment(content);
2223
+ if (!result || !result.validEnd)
2224
+ return false;
2225
+ for (let i = 0; i < content.childCount; i++)
2226
+ if (!this.allowsMarks(content.child(i).marks))
2227
+ return false;
2228
+ return true;
2229
+ }
2230
+ /**
2231
+ Throws a RangeError if the given fragment is not valid content for this
2232
+ node type.
2233
+ @internal
2234
+ */
2235
+ checkContent(content) {
2236
+ if (!this.validContent(content))
2237
+ throw new RangeError(`Invalid content for node ${this.name}: ${content.toString().slice(0, 50)}`);
2238
+ }
2239
+ /**
2240
+ @internal
2241
+ */
2242
+ checkAttrs(attrs) {
2243
+ checkAttrs(this.attrs, attrs, "node", this.name);
2244
+ }
2245
+ /**
2246
+ Check whether the given mark type is allowed in this node.
2247
+ */
2248
+ allowsMarkType(markType) {
2249
+ return this.markSet == null || this.markSet.indexOf(markType) > -1;
2250
+ }
2251
+ /**
2252
+ Test whether the given set of marks are allowed in this node.
2253
+ */
2254
+ allowsMarks(marks) {
2255
+ if (this.markSet == null)
2256
+ return true;
2257
+ for (let i = 0; i < marks.length; i++)
2258
+ if (!this.allowsMarkType(marks[i].type))
2259
+ return false;
2260
+ return true;
2261
+ }
2262
+ /**
2263
+ Removes the marks that are not allowed in this node from the given set.
2264
+ */
2265
+ allowedMarks(marks) {
2266
+ if (this.markSet == null)
2267
+ return marks;
2268
+ let copy;
2269
+ for (let i = 0; i < marks.length; i++) {
2270
+ if (!this.allowsMarkType(marks[i].type)) {
2271
+ if (!copy)
2272
+ copy = marks.slice(0, i);
2273
+ }
2274
+ else if (copy) {
2275
+ copy.push(marks[i]);
2276
+ }
2277
+ }
2278
+ return !copy ? marks : copy.length ? copy : Mark.none;
2279
+ }
2280
+ /**
2281
+ @internal
2282
+ */
2283
+ static compile(nodes, schema) {
2284
+ let result = Object.create(null);
2285
+ nodes.forEach((name, spec) => result[name] = new NodeType(name, schema, spec));
2286
+ let topType = schema.spec.topNode || "doc";
2287
+ if (!result[topType])
2288
+ throw new RangeError("Schema is missing its top node type ('" + topType + "')");
2289
+ if (!result.text)
2290
+ throw new RangeError("Every schema needs a 'text' type");
2291
+ for (let _ in result.text.attrs)
2292
+ throw new RangeError("The text node type should not have attributes");
2293
+ return result;
2294
+ }
2295
+ }
2296
+ function validateType(typeName, attrName, type) {
2297
+ let types = type.split("|");
2298
+ return (value) => {
2299
+ let name = value === null ? "null" : typeof value;
2300
+ if (types.indexOf(name) < 0)
2301
+ throw new RangeError(`Expected value of type ${types} for attribute ${attrName} on type ${typeName}, got ${name}`);
2302
+ };
2303
+ }
2304
+ // Attribute descriptors
2305
+ class Attribute {
2306
+ constructor(typeName, attrName, options) {
2307
+ this.hasDefault = Object.prototype.hasOwnProperty.call(options, "default");
2308
+ this.default = options.default;
2309
+ this.validate = typeof options.validate == "string" ? validateType(typeName, attrName, options.validate) : options.validate;
2310
+ }
2311
+ get isRequired() {
2312
+ return !this.hasDefault;
2313
+ }
2314
+ }
2315
+ // Marks
2316
+ /**
2317
+ Like nodes, marks (which are associated with nodes to signify
2318
+ things like emphasis or being part of a link) are
2319
+ [tagged](https://prosemirror.net/docs/ref/#model.Mark.type) with type objects, which are
2320
+ instantiated once per `Schema`.
2321
+ */
2322
+ class MarkType {
2323
+ /**
2324
+ @internal
2325
+ */
2326
+ constructor(
2327
+ /**
2328
+ The name of the mark type.
2329
+ */
2330
+ name,
2331
+ /**
2332
+ @internal
2333
+ */
2334
+ rank,
2335
+ /**
2336
+ The schema that this mark type instance is part of.
2337
+ */
2338
+ schema,
2339
+ /**
2340
+ The spec on which the type is based.
2341
+ */
2342
+ spec) {
2343
+ this.name = name;
2344
+ this.rank = rank;
2345
+ this.schema = schema;
2346
+ this.spec = spec;
2347
+ this.attrs = initAttrs(name, spec.attrs);
2348
+ this.excluded = null;
2349
+ let defaults = defaultAttrs(this.attrs);
2350
+ this.instance = defaults ? new Mark(this, defaults) : null;
2351
+ }
2352
+ /**
2353
+ Create a mark of this type. `attrs` may be `null` or an object
2354
+ containing only some of the mark's attributes. The others, if
2355
+ they have defaults, will be added.
2356
+ */
2357
+ create(attrs = null) {
2358
+ if (!attrs && this.instance)
2359
+ return this.instance;
2360
+ return new Mark(this, computeAttrs(this.attrs, attrs));
2361
+ }
2362
+ /**
2363
+ @internal
2364
+ */
2365
+ static compile(marks, schema) {
2366
+ let result = Object.create(null), rank = 0;
2367
+ marks.forEach((name, spec) => result[name] = new MarkType(name, rank++, schema, spec));
2368
+ return result;
2369
+ }
2370
+ /**
2371
+ When there is a mark of this type in the given set, a new set
2372
+ without it is returned. Otherwise, the input set is returned.
2373
+ */
2374
+ removeFromSet(set) {
2375
+ for (var i = 0; i < set.length; i++)
2376
+ if (set[i].type == this) {
2377
+ set = set.slice(0, i).concat(set.slice(i + 1));
2378
+ i--;
2379
+ }
2380
+ return set;
2381
+ }
2382
+ /**
2383
+ Tests whether there is a mark of this type in the given set.
2384
+ */
2385
+ isInSet(set) {
2386
+ for (let i = 0; i < set.length; i++)
2387
+ if (set[i].type == this)
2388
+ return set[i];
2389
+ }
2390
+ /**
2391
+ @internal
2392
+ */
2393
+ checkAttrs(attrs) {
2394
+ checkAttrs(this.attrs, attrs, "mark", this.name);
2395
+ }
2396
+ /**
2397
+ Queries whether a given mark type is
2398
+ [excluded](https://prosemirror.net/docs/ref/#model.MarkSpec.excludes) by this one.
2399
+ */
2400
+ excludes(other) {
2401
+ return this.excluded.indexOf(other) > -1;
2402
+ }
2403
+ }
2404
+ /**
2405
+ A document schema. Holds [node](https://prosemirror.net/docs/ref/#model.NodeType) and [mark
2406
+ type](https://prosemirror.net/docs/ref/#model.MarkType) objects for the nodes and marks that may
2407
+ occur in conforming documents, and provides functionality for
2408
+ creating and deserializing such documents.
2409
+
2410
+ When given, the type parameters provide the names of the nodes and
2411
+ marks in this schema.
2412
+ */
2413
+ class Schema {
2414
+ /**
2415
+ Construct a schema from a schema [specification](https://prosemirror.net/docs/ref/#model.SchemaSpec).
2416
+ */
2417
+ constructor(spec) {
2418
+ /**
2419
+ The [linebreak
2420
+ replacement](https://prosemirror.net/docs/ref/#model.NodeSpec.linebreakReplacement) node defined
2421
+ in this schema, if any.
2422
+ */
2423
+ this.linebreakReplacement = null;
2424
+ /**
2425
+ An object for storing whatever values modules may want to
2426
+ compute and cache per schema. (If you want to store something
2427
+ in it, try to use property names unlikely to clash.)
2428
+ */
2429
+ this.cached = Object.create(null);
2430
+ let instanceSpec = this.spec = {};
2431
+ for (let prop in spec)
2432
+ instanceSpec[prop] = spec[prop];
2433
+ instanceSpec.nodes = index.from(spec.nodes),
2434
+ instanceSpec.marks = index.from(spec.marks || {}),
2435
+ this.nodes = NodeType.compile(this.spec.nodes, this);
2436
+ this.marks = MarkType.compile(this.spec.marks, this);
2437
+ let contentExprCache = Object.create(null);
2438
+ for (let prop in this.nodes) {
2439
+ if (prop in this.marks)
2440
+ throw new RangeError(prop + " can not be both a node and a mark");
2441
+ let type = this.nodes[prop], contentExpr = type.spec.content || "", markExpr = type.spec.marks;
2442
+ type.contentMatch = contentExprCache[contentExpr] ||
2443
+ (contentExprCache[contentExpr] = ContentMatch.parse(contentExpr, this.nodes));
2444
+ type.inlineContent = type.contentMatch.inlineContent;
2445
+ if (type.spec.linebreakReplacement) {
2446
+ if (this.linebreakReplacement)
2447
+ throw new RangeError("Multiple linebreak nodes defined");
2448
+ if (!type.isInline || !type.isLeaf)
2449
+ throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");
2450
+ this.linebreakReplacement = type;
2451
+ }
2452
+ type.markSet = markExpr == "_" ? null :
2453
+ markExpr ? gatherMarks(this, markExpr.split(" ")) :
2454
+ markExpr == "" || !type.inlineContent ? [] : null;
2455
+ }
2456
+ for (let prop in this.marks) {
2457
+ let type = this.marks[prop], excl = type.spec.excludes;
2458
+ type.excluded = excl == null ? [type] : excl == "" ? [] : gatherMarks(this, excl.split(" "));
2459
+ }
2460
+ this.nodeFromJSON = json => Node.fromJSON(this, json);
2461
+ this.markFromJSON = json => Mark.fromJSON(this, json);
2462
+ this.topNodeType = this.nodes[this.spec.topNode || "doc"];
2463
+ this.cached.wrappings = Object.create(null);
2464
+ }
2465
+ /**
2466
+ Create a node in this schema. The `type` may be a string or a
2467
+ `NodeType` instance. Attributes will be extended with defaults,
2468
+ `content` may be a `Fragment`, `null`, a `Node`, or an array of
2469
+ nodes.
2470
+ */
2471
+ node(type, attrs = null, content, marks) {
2472
+ if (typeof type == "string")
2473
+ type = this.nodeType(type);
2474
+ else if (!(type instanceof NodeType))
2475
+ throw new RangeError("Invalid node type: " + type);
2476
+ else if (type.schema != this)
2477
+ throw new RangeError("Node type from different schema used (" + type.name + ")");
2478
+ return type.createChecked(attrs, content, marks);
2479
+ }
2480
+ /**
2481
+ Create a text node in the schema. Empty text nodes are not
2482
+ allowed.
2483
+ */
2484
+ text(text, marks) {
2485
+ let type = this.nodes.text;
2486
+ return new TextNode(type, type.defaultAttrs, text, Mark.setFrom(marks));
2487
+ }
2488
+ /**
2489
+ Create a mark with the given type and attributes.
2490
+ */
2491
+ mark(type, attrs) {
2492
+ if (typeof type == "string")
2493
+ type = this.marks[type];
2494
+ return type.create(attrs);
2495
+ }
2496
+ /**
2497
+ @internal
2498
+ */
2499
+ nodeType(name) {
2500
+ let found = this.nodes[name];
2501
+ if (!found)
2502
+ throw new RangeError("Unknown node type: " + name);
2503
+ return found;
2504
+ }
2505
+ }
2506
+ function gatherMarks(schema, marks) {
2507
+ let found = [];
2508
+ for (let i = 0; i < marks.length; i++) {
2509
+ let name = marks[i], mark = schema.marks[name], ok = mark;
2510
+ if (mark) {
2511
+ found.push(mark);
2512
+ }
2513
+ else {
2514
+ for (let prop in schema.marks) {
2515
+ let mark = schema.marks[prop];
2516
+ if (name == "_" || (mark.spec.group && mark.spec.group.split(" ").indexOf(name) > -1))
2517
+ found.push(ok = mark);
2518
+ }
2519
+ }
2520
+ if (!ok)
2521
+ throw new SyntaxError("Unknown mark type: '" + marks[i] + "'");
2522
+ }
2523
+ return found;
2524
+ }
2525
+
2526
+ function isTagRule(rule) { return rule.tag != null; }
2527
+ function isStyleRule(rule) { return rule.style != null; }
2528
+ /**
2529
+ A DOM parser represents a strategy for parsing DOM content into a
2530
+ ProseMirror document conforming to a given schema. Its behavior is
2531
+ defined by an array of [rules](https://prosemirror.net/docs/ref/#model.ParseRule).
2532
+ */
2533
+ class DOMParser {
2534
+ /**
2535
+ Create a parser that targets the given schema, using the given
2536
+ parsing rules.
2537
+ */
2538
+ constructor(
2539
+ /**
2540
+ The schema into which the parser parses.
2541
+ */
2542
+ schema,
2543
+ /**
2544
+ The set of [parse rules](https://prosemirror.net/docs/ref/#model.ParseRule) that the parser
2545
+ uses, in order of precedence.
2546
+ */
2547
+ rules) {
2548
+ this.schema = schema;
2549
+ this.rules = rules;
2550
+ /**
2551
+ @internal
2552
+ */
2553
+ this.tags = [];
2554
+ /**
2555
+ @internal
2556
+ */
2557
+ this.styles = [];
2558
+ let matchedStyles = this.matchedStyles = [];
2559
+ rules.forEach(rule => {
2560
+ if (isTagRule(rule)) {
2561
+ this.tags.push(rule);
2562
+ }
2563
+ else if (isStyleRule(rule)) {
2564
+ let prop = /[^=]*/.exec(rule.style)[0];
2565
+ if (matchedStyles.indexOf(prop) < 0)
2566
+ matchedStyles.push(prop);
2567
+ this.styles.push(rule);
2568
+ }
2569
+ });
2570
+ // Only normalize list elements when lists in the schema can't directly contain themselves
2571
+ this.normalizeLists = !this.tags.some(r => {
2572
+ if (!/^(ul|ol)\b/.test(r.tag) || !r.node)
2573
+ return false;
2574
+ let node = schema.nodes[r.node];
2575
+ return node.contentMatch.matchType(node);
2576
+ });
2577
+ }
2578
+ /**
2579
+ Parse a document from the content of a DOM node.
2580
+ */
2581
+ parse(dom, options = {}) {
2582
+ let context = new ParseContext(this, options, false);
2583
+ context.addAll(dom, Mark.none, options.from, options.to);
2584
+ return context.finish();
2585
+ }
2586
+ /**
2587
+ Parses the content of the given DOM node, like
2588
+ [`parse`](https://prosemirror.net/docs/ref/#model.DOMParser.parse), and takes the same set of
2589
+ options. But unlike that method, which produces a whole node,
2590
+ this one returns a slice that is open at the sides, meaning that
2591
+ the schema constraints aren't applied to the start of nodes to
2592
+ the left of the input and the end of nodes at the end.
2593
+ */
2594
+ parseSlice(dom, options = {}) {
2595
+ let context = new ParseContext(this, options, true);
2596
+ context.addAll(dom, Mark.none, options.from, options.to);
2597
+ return Slice.maxOpen(context.finish());
2598
+ }
2599
+ /**
2600
+ @internal
2601
+ */
2602
+ matchTag(dom, context, after) {
2603
+ for (let i = after ? this.tags.indexOf(after) + 1 : 0; i < this.tags.length; i++) {
2604
+ let rule = this.tags[i];
2605
+ if (matches(dom, rule.tag) &&
2606
+ (rule.namespace === undefined || dom.namespaceURI == rule.namespace) &&
2607
+ (!rule.context || context.matchesContext(rule.context))) {
2608
+ if (rule.getAttrs) {
2609
+ let result = rule.getAttrs(dom);
2610
+ if (result === false)
2611
+ continue;
2612
+ rule.attrs = result || undefined;
2613
+ }
2614
+ return rule;
2615
+ }
2616
+ }
2617
+ }
2618
+ /**
2619
+ @internal
2620
+ */
2621
+ matchStyle(prop, value, context, after) {
2622
+ for (let i = after ? this.styles.indexOf(after) + 1 : 0; i < this.styles.length; i++) {
2623
+ let rule = this.styles[i], style = rule.style;
2624
+ if (style.indexOf(prop) != 0 ||
2625
+ rule.context && !context.matchesContext(rule.context) ||
2626
+ // Test that the style string either precisely matches the prop,
2627
+ // or has an '=' sign after the prop, followed by the given
2628
+ // value.
2629
+ style.length > prop.length &&
2630
+ (style.charCodeAt(prop.length) != 61 || style.slice(prop.length + 1) != value))
2631
+ continue;
2632
+ if (rule.getAttrs) {
2633
+ let result = rule.getAttrs(value);
2634
+ if (result === false)
2635
+ continue;
2636
+ rule.attrs = result || undefined;
2637
+ }
2638
+ return rule;
2639
+ }
2640
+ }
2641
+ /**
2642
+ @internal
2643
+ */
2644
+ static schemaRules(schema) {
2645
+ let result = [];
2646
+ function insert(rule) {
2647
+ let priority = rule.priority == null ? 50 : rule.priority, i = 0;
2648
+ for (; i < result.length; i++) {
2649
+ let next = result[i], nextPriority = next.priority == null ? 50 : next.priority;
2650
+ if (nextPriority < priority)
2651
+ break;
2652
+ }
2653
+ result.splice(i, 0, rule);
2654
+ }
2655
+ for (let name in schema.marks) {
2656
+ let rules = schema.marks[name].spec.parseDOM;
2657
+ if (rules)
2658
+ rules.forEach(rule => {
2659
+ insert(rule = copy(rule));
2660
+ if (!(rule.mark || rule.ignore || rule.clearMark))
2661
+ rule.mark = name;
2662
+ });
2663
+ }
2664
+ for (let name in schema.nodes) {
2665
+ let rules = schema.nodes[name].spec.parseDOM;
2666
+ if (rules)
2667
+ rules.forEach(rule => {
2668
+ insert(rule = copy(rule));
2669
+ if (!(rule.node || rule.ignore || rule.mark))
2670
+ rule.node = name;
2671
+ });
2672
+ }
2673
+ return result;
2674
+ }
2675
+ /**
2676
+ Construct a DOM parser using the parsing rules listed in a
2677
+ schema's [node specs](https://prosemirror.net/docs/ref/#model.NodeSpec.parseDOM), reordered by
2678
+ [priority](https://prosemirror.net/docs/ref/#model.GenericParseRule.priority).
2679
+ */
2680
+ static fromSchema(schema) {
2681
+ return schema.cached.domParser ||
2682
+ (schema.cached.domParser = new DOMParser(schema, DOMParser.schemaRules(schema)));
2683
+ }
2684
+ }
2685
+ const blockTags = {
2686
+ address: true, article: true, aside: true, blockquote: true, canvas: true,
2687
+ dd: true, div: true, dl: true, fieldset: true, figcaption: true, figure: true,
2688
+ footer: true, form: true, h1: true, h2: true, h3: true, h4: true, h5: true,
2689
+ h6: true, header: true, hgroup: true, hr: true, li: true, noscript: true, ol: true,
2690
+ output: true, p: true, pre: true, section: true, table: true, tfoot: true, ul: true
2691
+ };
2692
+ const ignoreTags = {
2693
+ head: true, noscript: true, object: true, script: true, style: true, title: true
2694
+ };
2695
+ const listTags = { ol: true, ul: true };
2696
+ // Using a bitfield for node context options
2697
+ const OPT_PRESERVE_WS = 1, OPT_PRESERVE_WS_FULL = 2, OPT_OPEN_LEFT = 4;
2698
+ function wsOptionsFor(type, preserveWhitespace, base) {
2699
+ if (preserveWhitespace != null)
2700
+ return (preserveWhitespace ? OPT_PRESERVE_WS : 0) |
2701
+ (preserveWhitespace === "full" ? OPT_PRESERVE_WS_FULL : 0);
2702
+ return type && type.whitespace == "pre" ? OPT_PRESERVE_WS | OPT_PRESERVE_WS_FULL : base & ~OPT_OPEN_LEFT;
2703
+ }
2704
+ class NodeContext {
2705
+ constructor(type, attrs, marks, solid, match, options) {
2706
+ this.type = type;
2707
+ this.attrs = attrs;
2708
+ this.marks = marks;
2709
+ this.solid = solid;
2710
+ this.options = options;
2711
+ this.content = [];
2712
+ // Marks applied to the node's children
2713
+ this.activeMarks = Mark.none;
2714
+ this.match = match || (options & OPT_OPEN_LEFT ? null : type.contentMatch);
2715
+ }
2716
+ findWrapping(node) {
2717
+ if (!this.match) {
2718
+ if (!this.type)
2719
+ return [];
2720
+ let fill = this.type.contentMatch.fillBefore(Fragment.from(node));
2721
+ if (fill) {
2722
+ this.match = this.type.contentMatch.matchFragment(fill);
2723
+ }
2724
+ else {
2725
+ let start = this.type.contentMatch, wrap;
2726
+ if (wrap = start.findWrapping(node.type)) {
2727
+ this.match = start;
2728
+ return wrap;
2729
+ }
2730
+ else {
2731
+ return null;
2732
+ }
2733
+ }
2734
+ }
2735
+ return this.match.findWrapping(node.type);
2736
+ }
2737
+ finish(openEnd) {
2738
+ if (!(this.options & OPT_PRESERVE_WS)) { // Strip trailing whitespace
2739
+ let last = this.content[this.content.length - 1], m;
2740
+ if (last && last.isText && (m = /[ \t\r\n\u000c]+$/.exec(last.text))) {
2741
+ let text = last;
2742
+ if (last.text.length == m[0].length)
2743
+ this.content.pop();
2744
+ else
2745
+ this.content[this.content.length - 1] = text.withText(text.text.slice(0, text.text.length - m[0].length));
2746
+ }
2747
+ }
2748
+ let content = Fragment.from(this.content);
2749
+ if (!openEnd && this.match)
2750
+ content = content.append(this.match.fillBefore(Fragment.empty, true));
2751
+ return this.type ? this.type.create(this.attrs, content, this.marks) : content;
2752
+ }
2753
+ inlineContext(node) {
2754
+ if (this.type)
2755
+ return this.type.inlineContent;
2756
+ if (this.content.length)
2757
+ return this.content[0].isInline;
2758
+ return node.parentNode && !blockTags.hasOwnProperty(node.parentNode.nodeName.toLowerCase());
2759
+ }
2760
+ }
2761
+ class ParseContext {
2762
+ constructor(
2763
+ // The parser we are using.
2764
+ parser,
2765
+ // The options passed to this parse.
2766
+ options, isOpen) {
2767
+ this.parser = parser;
2768
+ this.options = options;
2769
+ this.isOpen = isOpen;
2770
+ this.open = 0;
2771
+ this.localPreserveWS = false;
2772
+ let topNode = options.topNode, topContext;
2773
+ let topOptions = wsOptionsFor(null, options.preserveWhitespace, 0) | (isOpen ? OPT_OPEN_LEFT : 0);
2774
+ if (topNode)
2775
+ topContext = new NodeContext(topNode.type, topNode.attrs, Mark.none, true, options.topMatch || topNode.type.contentMatch, topOptions);
2776
+ else if (isOpen)
2777
+ topContext = new NodeContext(null, null, Mark.none, true, null, topOptions);
2778
+ else
2779
+ topContext = new NodeContext(parser.schema.topNodeType, null, Mark.none, true, null, topOptions);
2780
+ this.nodes = [topContext];
2781
+ this.find = options.findPositions;
2782
+ this.needsBlock = false;
2783
+ }
2784
+ get top() {
2785
+ return this.nodes[this.open];
2786
+ }
2787
+ // Add a DOM node to the content. Text is inserted as text node,
2788
+ // otherwise, the node is passed to `addElement` or, if it has a
2789
+ // `style` attribute, `addElementWithStyles`.
2790
+ addDOM(dom, marks) {
2791
+ if (dom.nodeType == 3)
2792
+ this.addTextNode(dom, marks);
2793
+ else if (dom.nodeType == 1)
2794
+ this.addElement(dom, marks);
2795
+ }
2796
+ addTextNode(dom, marks) {
2797
+ let value = dom.nodeValue;
2798
+ let top = this.top, preserveWS = (top.options & OPT_PRESERVE_WS_FULL) ? "full"
2799
+ : this.localPreserveWS || (top.options & OPT_PRESERVE_WS) > 0;
2800
+ let { schema } = this.parser;
2801
+ if (preserveWS === "full" ||
2802
+ top.inlineContext(dom) ||
2803
+ /[^ \t\r\n\u000c]/.test(value)) {
2804
+ if (!preserveWS) {
2805
+ value = value.replace(/[ \t\r\n\u000c]+/g, " ");
2806
+ // If this starts with whitespace, and there is no node before it, or
2807
+ // a hard break, or a text node that ends with whitespace, strip the
2808
+ // leading space.
2809
+ if (/^[ \t\r\n\u000c]/.test(value) && this.open == this.nodes.length - 1) {
2810
+ let nodeBefore = top.content[top.content.length - 1];
2811
+ let domNodeBefore = dom.previousSibling;
2812
+ if (!nodeBefore ||
2813
+ (domNodeBefore && domNodeBefore.nodeName == 'BR') ||
2814
+ (nodeBefore.isText && /[ \t\r\n\u000c]$/.test(nodeBefore.text)))
2815
+ value = value.slice(1);
2816
+ }
2817
+ }
2818
+ else if (preserveWS === "full") {
2819
+ value = value.replace(/\r\n?/g, "\n");
2820
+ }
2821
+ else if (schema.linebreakReplacement && /[\r\n]/.test(value) && this.top.findWrapping(schema.linebreakReplacement.create())) {
2822
+ let lines = value.split(/\r?\n|\r/);
2823
+ for (let i = 0; i < lines.length; i++) {
2824
+ if (i)
2825
+ this.insertNode(schema.linebreakReplacement.create(), marks, true);
2826
+ if (lines[i])
2827
+ this.insertNode(schema.text(lines[i]), marks, !/\S/.test(lines[i]));
2828
+ }
2829
+ value = "";
2830
+ }
2831
+ else {
2832
+ value = value.replace(/\r?\n|\r/g, " ");
2833
+ }
2834
+ if (value)
2835
+ this.insertNode(schema.text(value), marks, !/\S/.test(value));
2836
+ this.findInText(dom);
2837
+ }
2838
+ else {
2839
+ this.findInside(dom);
2840
+ }
2841
+ }
2842
+ // Try to find a handler for the given tag and use that to parse. If
2843
+ // none is found, the element's content nodes are added directly.
2844
+ addElement(dom, marks, matchAfter) {
2845
+ let outerWS = this.localPreserveWS, top = this.top;
2846
+ if (dom.tagName == "PRE" || /pre/.test(dom.style && dom.style.whiteSpace))
2847
+ this.localPreserveWS = true;
2848
+ let name = dom.nodeName.toLowerCase(), ruleID;
2849
+ if (listTags.hasOwnProperty(name) && this.parser.normalizeLists)
2850
+ normalizeList(dom);
2851
+ let rule = (this.options.ruleFromNode && this.options.ruleFromNode(dom)) ||
2852
+ (ruleID = this.parser.matchTag(dom, this, matchAfter));
2853
+ out: if (rule ? rule.ignore : ignoreTags.hasOwnProperty(name)) {
2854
+ this.findInside(dom);
2855
+ this.ignoreFallback(dom, marks);
2856
+ }
2857
+ else if (!rule || rule.skip || rule.closeParent) {
2858
+ if (rule && rule.closeParent)
2859
+ this.open = Math.max(0, this.open - 1);
2860
+ else if (rule && rule.skip.nodeType)
2861
+ dom = rule.skip;
2862
+ let sync, oldNeedsBlock = this.needsBlock;
2863
+ if (blockTags.hasOwnProperty(name)) {
2864
+ if (top.content.length && top.content[0].isInline && this.open) {
2865
+ this.open--;
2866
+ top = this.top;
2867
+ }
2868
+ sync = true;
2869
+ if (!top.type)
2870
+ this.needsBlock = true;
2871
+ }
2872
+ else if (!dom.firstChild) {
2873
+ this.leafFallback(dom, marks);
2874
+ break out;
2875
+ }
2876
+ let innerMarks = rule && rule.skip ? marks : this.readStyles(dom, marks);
2877
+ if (innerMarks)
2878
+ this.addAll(dom, innerMarks);
2879
+ if (sync)
2880
+ this.sync(top);
2881
+ this.needsBlock = oldNeedsBlock;
2882
+ }
2883
+ else {
2884
+ let innerMarks = this.readStyles(dom, marks);
2885
+ if (innerMarks)
2886
+ this.addElementByRule(dom, rule, innerMarks, rule.consuming === false ? ruleID : undefined);
2887
+ }
2888
+ this.localPreserveWS = outerWS;
2889
+ }
2890
+ // Called for leaf DOM nodes that would otherwise be ignored
2891
+ leafFallback(dom, marks) {
2892
+ if (dom.nodeName == "BR" && this.top.type && this.top.type.inlineContent)
2893
+ this.addTextNode(dom.ownerDocument.createTextNode("\n"), marks);
2894
+ }
2895
+ // Called for ignored nodes
2896
+ ignoreFallback(dom, marks) {
2897
+ // Ignored BR nodes should at least create an inline context
2898
+ if (dom.nodeName == "BR" && (!this.top.type || !this.top.type.inlineContent))
2899
+ this.findPlace(this.parser.schema.text("-"), marks, true);
2900
+ }
2901
+ // Run any style parser associated with the node's styles. Either
2902
+ // return an updated array of marks, or null to indicate some of the
2903
+ // styles had a rule with `ignore` set.
2904
+ readStyles(dom, marks) {
2905
+ let styles = dom.style;
2906
+ // Because many properties will only show up in 'normalized' form
2907
+ // in `style.item` (i.e. text-decoration becomes
2908
+ // text-decoration-line, text-decoration-color, etc), we directly
2909
+ // query the styles mentioned in our rules instead of iterating
2910
+ // over the items.
2911
+ if (styles && styles.length)
2912
+ for (let i = 0; i < this.parser.matchedStyles.length; i++) {
2913
+ let name = this.parser.matchedStyles[i], value = styles.getPropertyValue(name);
2914
+ if (value)
2915
+ for (let after = undefined;;) {
2916
+ let rule = this.parser.matchStyle(name, value, this, after);
2917
+ if (!rule)
2918
+ break;
2919
+ if (rule.ignore)
2920
+ return null;
2921
+ if (rule.clearMark)
2922
+ marks = marks.filter(m => !rule.clearMark(m));
2923
+ else
2924
+ marks = marks.concat(this.parser.schema.marks[rule.mark].create(rule.attrs));
2925
+ if (rule.consuming === false)
2926
+ after = rule;
2927
+ else
2928
+ break;
2929
+ }
2930
+ }
2931
+ return marks;
2932
+ }
2933
+ // Look up a handler for the given node. If none are found, return
2934
+ // false. Otherwise, apply it, use its return value to drive the way
2935
+ // the node's content is wrapped, and return true.
2936
+ addElementByRule(dom, rule, marks, continueAfter) {
2937
+ let sync, nodeType;
2938
+ if (rule.node) {
2939
+ nodeType = this.parser.schema.nodes[rule.node];
2940
+ if (!nodeType.isLeaf) {
2941
+ let inner = this.enter(nodeType, rule.attrs || null, marks, rule.preserveWhitespace);
2942
+ if (inner) {
2943
+ sync = true;
2944
+ marks = inner;
2945
+ }
2946
+ }
2947
+ else if (!this.insertNode(nodeType.create(rule.attrs), marks, dom.nodeName == "BR")) {
2948
+ this.leafFallback(dom, marks);
2949
+ }
2950
+ }
2951
+ else {
2952
+ let markType = this.parser.schema.marks[rule.mark];
2953
+ marks = marks.concat(markType.create(rule.attrs));
2954
+ }
2955
+ let startIn = this.top;
2956
+ if (nodeType && nodeType.isLeaf) {
2957
+ this.findInside(dom);
2958
+ }
2959
+ else if (continueAfter) {
2960
+ this.addElement(dom, marks, continueAfter);
2961
+ }
2962
+ else if (rule.getContent) {
2963
+ this.findInside(dom);
2964
+ rule.getContent(dom, this.parser.schema).forEach(node => this.insertNode(node, marks, false));
2965
+ }
2966
+ else {
2967
+ let contentDOM = dom;
2968
+ if (typeof rule.contentElement == "string")
2969
+ contentDOM = dom.querySelector(rule.contentElement);
2970
+ else if (typeof rule.contentElement == "function")
2971
+ contentDOM = rule.contentElement(dom);
2972
+ else if (rule.contentElement)
2973
+ contentDOM = rule.contentElement;
2974
+ this.findAround(dom, contentDOM, true);
2975
+ this.addAll(contentDOM, marks);
2976
+ this.findAround(dom, contentDOM, false);
2977
+ }
2978
+ if (sync && this.sync(startIn))
2979
+ this.open--;
2980
+ }
2981
+ // Add all child nodes between `startIndex` and `endIndex` (or the
2982
+ // whole node, if not given). If `sync` is passed, use it to
2983
+ // synchronize after every block element.
2984
+ addAll(parent, marks, startIndex, endIndex) {
2985
+ let index = startIndex || 0;
2986
+ for (let dom = startIndex ? parent.childNodes[startIndex] : parent.firstChild, end = endIndex == null ? null : parent.childNodes[endIndex]; dom != end; dom = dom.nextSibling, ++index) {
2987
+ this.findAtPoint(parent, index);
2988
+ this.addDOM(dom, marks);
2989
+ }
2990
+ this.findAtPoint(parent, index);
2991
+ }
2992
+ // Try to find a way to fit the given node type into the current
2993
+ // context. May add intermediate wrappers and/or leave non-solid
2994
+ // nodes that we're in.
2995
+ findPlace(node, marks, cautious) {
2996
+ let route, sync;
2997
+ for (let depth = this.open, penalty = 0; depth >= 0; depth--) {
2998
+ let cx = this.nodes[depth];
2999
+ let found = cx.findWrapping(node);
3000
+ if (found && (!route || route.length > found.length + penalty)) {
3001
+ route = found;
3002
+ sync = cx;
3003
+ if (!found.length)
3004
+ break;
3005
+ }
3006
+ if (cx.solid) {
3007
+ if (cautious)
3008
+ break;
3009
+ penalty += 2;
3010
+ }
3011
+ }
3012
+ if (!route)
3013
+ return null;
3014
+ this.sync(sync);
3015
+ for (let i = 0; i < route.length; i++)
3016
+ marks = this.enterInner(route[i], null, marks, false);
3017
+ return marks;
3018
+ }
3019
+ // Try to insert the given node, adjusting the context when needed.
3020
+ insertNode(node, marks, cautious) {
3021
+ if (node.isInline && this.needsBlock && !this.top.type) {
3022
+ let block = this.textblockFromContext();
3023
+ if (block)
3024
+ marks = this.enterInner(block, null, marks);
3025
+ }
3026
+ let innerMarks = this.findPlace(node, marks, cautious);
3027
+ if (innerMarks) {
3028
+ this.closeExtra();
3029
+ let top = this.top;
3030
+ if (top.match)
3031
+ top.match = top.match.matchType(node.type);
3032
+ let nodeMarks = Mark.none;
3033
+ for (let m of innerMarks.concat(node.marks))
3034
+ if (top.type ? top.type.allowsMarkType(m.type) : markMayApply(m.type, node.type))
3035
+ nodeMarks = m.addToSet(nodeMarks);
3036
+ top.content.push(node.mark(nodeMarks));
3037
+ return true;
3038
+ }
3039
+ return false;
3040
+ }
3041
+ // Try to start a node of the given type, adjusting the context when
3042
+ // necessary.
3043
+ enter(type, attrs, marks, preserveWS) {
3044
+ let innerMarks = this.findPlace(type.create(attrs), marks, false);
3045
+ if (innerMarks)
3046
+ innerMarks = this.enterInner(type, attrs, marks, true, preserveWS);
3047
+ return innerMarks;
3048
+ }
3049
+ // Open a node of the given type
3050
+ enterInner(type, attrs, marks, solid = false, preserveWS) {
3051
+ this.closeExtra();
3052
+ let top = this.top;
3053
+ top.match = top.match && top.match.matchType(type);
3054
+ let options = wsOptionsFor(type, preserveWS, top.options);
3055
+ if ((top.options & OPT_OPEN_LEFT) && top.content.length == 0)
3056
+ options |= OPT_OPEN_LEFT;
3057
+ let applyMarks = Mark.none;
3058
+ marks = marks.filter(m => {
3059
+ if (top.type ? top.type.allowsMarkType(m.type) : markMayApply(m.type, type)) {
3060
+ applyMarks = m.addToSet(applyMarks);
3061
+ return false;
3062
+ }
3063
+ return true;
3064
+ });
3065
+ this.nodes.push(new NodeContext(type, attrs, applyMarks, solid, null, options));
3066
+ this.open++;
3067
+ return marks;
3068
+ }
3069
+ // Make sure all nodes above this.open are finished and added to
3070
+ // their parents
3071
+ closeExtra(openEnd = false) {
3072
+ let i = this.nodes.length - 1;
3073
+ if (i > this.open) {
3074
+ for (; i > this.open; i--)
3075
+ this.nodes[i - 1].content.push(this.nodes[i].finish(openEnd));
3076
+ this.nodes.length = this.open + 1;
3077
+ }
3078
+ }
3079
+ finish() {
3080
+ this.open = 0;
3081
+ this.closeExtra(this.isOpen);
3082
+ return this.nodes[0].finish(!!(this.isOpen || this.options.topOpen));
3083
+ }
3084
+ sync(to) {
3085
+ for (let i = this.open; i >= 0; i--) {
3086
+ if (this.nodes[i] == to) {
3087
+ this.open = i;
3088
+ return true;
3089
+ }
3090
+ else if (this.localPreserveWS) {
3091
+ this.nodes[i].options |= OPT_PRESERVE_WS;
3092
+ }
3093
+ }
3094
+ return false;
3095
+ }
3096
+ get currentPos() {
3097
+ this.closeExtra();
3098
+ let pos = 0;
3099
+ for (let i = this.open; i >= 0; i--) {
3100
+ let content = this.nodes[i].content;
3101
+ for (let j = content.length - 1; j >= 0; j--)
3102
+ pos += content[j].nodeSize;
3103
+ if (i)
3104
+ pos++;
3105
+ }
3106
+ return pos;
3107
+ }
3108
+ findAtPoint(parent, offset) {
3109
+ if (this.find)
3110
+ for (let i = 0; i < this.find.length; i++) {
3111
+ if (this.find[i].node == parent && this.find[i].offset == offset)
3112
+ this.find[i].pos = this.currentPos;
3113
+ }
3114
+ }
3115
+ findInside(parent) {
3116
+ if (this.find)
3117
+ for (let i = 0; i < this.find.length; i++) {
3118
+ if (this.find[i].pos == null && parent.nodeType == 1 && parent.contains(this.find[i].node))
3119
+ this.find[i].pos = this.currentPos;
3120
+ }
3121
+ }
3122
+ findAround(parent, content, before) {
3123
+ if (parent != content && this.find)
3124
+ for (let i = 0; i < this.find.length; i++) {
3125
+ if (this.find[i].pos == null && parent.nodeType == 1 && parent.contains(this.find[i].node)) {
3126
+ let pos = content.compareDocumentPosition(this.find[i].node);
3127
+ if (pos & (before ? 2 : 4))
3128
+ this.find[i].pos = this.currentPos;
3129
+ }
3130
+ }
3131
+ }
3132
+ findInText(textNode) {
3133
+ if (this.find)
3134
+ for (let i = 0; i < this.find.length; i++) {
3135
+ if (this.find[i].node == textNode)
3136
+ this.find[i].pos = this.currentPos - (textNode.nodeValue.length - this.find[i].offset);
3137
+ }
3138
+ }
3139
+ // Determines whether the given context string matches this context.
3140
+ matchesContext(context) {
3141
+ if (context.indexOf("|") > -1)
3142
+ return context.split(/\s*\|\s*/).some(this.matchesContext, this);
3143
+ let parts = context.split("/");
3144
+ let option = this.options.context;
3145
+ let useRoot = !this.isOpen && (!option || option.parent.type == this.nodes[0].type);
3146
+ let minDepth = -(option ? option.depth + 1 : 0) + (useRoot ? 0 : 1);
3147
+ let match = (i, depth) => {
3148
+ for (; i >= 0; i--) {
3149
+ let part = parts[i];
3150
+ if (part == "") {
3151
+ if (i == parts.length - 1 || i == 0)
3152
+ continue;
3153
+ for (; depth >= minDepth; depth--)
3154
+ if (match(i - 1, depth))
3155
+ return true;
3156
+ return false;
3157
+ }
3158
+ else {
3159
+ let next = depth > 0 || (depth == 0 && useRoot) ? this.nodes[depth].type
3160
+ : option && depth >= minDepth ? option.node(depth - minDepth).type
3161
+ : null;
3162
+ if (!next || (next.name != part && !next.isInGroup(part)))
3163
+ return false;
3164
+ depth--;
3165
+ }
3166
+ }
3167
+ return true;
3168
+ };
3169
+ return match(parts.length - 1, this.open);
3170
+ }
3171
+ textblockFromContext() {
3172
+ let $context = this.options.context;
3173
+ if ($context)
3174
+ for (let d = $context.depth; d >= 0; d--) {
3175
+ let deflt = $context.node(d).contentMatchAt($context.indexAfter(d)).defaultType;
3176
+ if (deflt && deflt.isTextblock && deflt.defaultAttrs)
3177
+ return deflt;
3178
+ }
3179
+ for (let name in this.parser.schema.nodes) {
3180
+ let type = this.parser.schema.nodes[name];
3181
+ if (type.isTextblock && type.defaultAttrs)
3182
+ return type;
3183
+ }
3184
+ }
3185
+ }
3186
+ // Kludge to work around directly nested list nodes produced by some
3187
+ // tools and allowed by browsers to mean that the nested list is
3188
+ // actually part of the list item above it.
3189
+ function normalizeList(dom) {
3190
+ for (let child = dom.firstChild, prevItem = null; child; child = child.nextSibling) {
3191
+ let name = child.nodeType == 1 ? child.nodeName.toLowerCase() : null;
3192
+ if (name && listTags.hasOwnProperty(name) && prevItem) {
3193
+ prevItem.appendChild(child);
3194
+ child = prevItem;
3195
+ }
3196
+ else if (name == "li") {
3197
+ prevItem = child;
3198
+ }
3199
+ else if (name) {
3200
+ prevItem = null;
3201
+ }
3202
+ }
3203
+ }
3204
+ // Apply a CSS selector.
3205
+ function matches(dom, selector) {
3206
+ return (dom.matches || dom.msMatchesSelector || dom.webkitMatchesSelector || dom.mozMatchesSelector).call(dom, selector);
3207
+ }
3208
+ function copy(obj) {
3209
+ let copy = {};
3210
+ for (let prop in obj)
3211
+ copy[prop] = obj[prop];
3212
+ return copy;
3213
+ }
3214
+ // Used when finding a mark at the top level of a fragment parse.
3215
+ // Checks whether it would be reasonable to apply a given mark type to
3216
+ // a given node, by looking at the way the mark occurs in the schema.
3217
+ function markMayApply(markType, nodeType) {
3218
+ let nodes = nodeType.schema.nodes;
3219
+ for (let name in nodes) {
3220
+ let parent = nodes[name];
3221
+ if (!parent.allowsMarkType(markType))
3222
+ continue;
3223
+ let seen = [], scan = (match) => {
3224
+ seen.push(match);
3225
+ for (let i = 0; i < match.edgeCount; i++) {
3226
+ let { type, next } = match.edge(i);
3227
+ if (type == nodeType)
3228
+ return true;
3229
+ if (seen.indexOf(next) < 0 && scan(next))
3230
+ return true;
3231
+ }
3232
+ };
3233
+ if (scan(parent.contentMatch))
3234
+ return true;
3235
+ }
3236
+ }
3237
+
3238
+ /**
3239
+ A DOM serializer knows how to convert ProseMirror nodes and
3240
+ marks of various types to DOM nodes.
3241
+ */
3242
+ class DOMSerializer {
3243
+ /**
3244
+ Create a serializer. `nodes` should map node names to functions
3245
+ that take a node and return a description of the corresponding
3246
+ DOM. `marks` does the same for mark names, but also gets an
3247
+ argument that tells it whether the mark's content is block or
3248
+ inline content (for typical use, it'll always be inline). A mark
3249
+ serializer may be `null` to indicate that marks of that type
3250
+ should not be serialized.
3251
+ */
3252
+ constructor(
3253
+ /**
3254
+ The node serialization functions.
3255
+ */
3256
+ nodes,
3257
+ /**
3258
+ The mark serialization functions.
3259
+ */
3260
+ marks) {
3261
+ this.nodes = nodes;
3262
+ this.marks = marks;
3263
+ }
3264
+ /**
3265
+ Serialize the content of this fragment to a DOM fragment. When
3266
+ not in the browser, the `document` option, containing a DOM
3267
+ document, should be passed so that the serializer can create
3268
+ nodes.
3269
+ */
3270
+ serializeFragment(fragment, options = {}, target) {
3271
+ if (!target)
3272
+ target = doc(options).createDocumentFragment();
3273
+ let top = target, active = [];
3274
+ fragment.forEach(node => {
3275
+ if (active.length || node.marks.length) {
3276
+ let keep = 0, rendered = 0;
3277
+ while (keep < active.length && rendered < node.marks.length) {
3278
+ let next = node.marks[rendered];
3279
+ if (!this.marks[next.type.name]) {
3280
+ rendered++;
3281
+ continue;
3282
+ }
3283
+ if (!next.eq(active[keep][0]) || next.type.spec.spanning === false)
3284
+ break;
3285
+ keep++;
3286
+ rendered++;
3287
+ }
3288
+ while (keep < active.length)
3289
+ top = active.pop()[1];
3290
+ while (rendered < node.marks.length) {
3291
+ let add = node.marks[rendered++];
3292
+ let markDOM = this.serializeMark(add, node.isInline, options);
3293
+ if (markDOM) {
3294
+ active.push([add, top]);
3295
+ top.appendChild(markDOM.dom);
3296
+ top = markDOM.contentDOM || markDOM.dom;
3297
+ }
3298
+ }
3299
+ }
3300
+ top.appendChild(this.serializeNodeInner(node, options));
3301
+ });
3302
+ return target;
3303
+ }
3304
+ /**
3305
+ @internal
3306
+ */
3307
+ serializeNodeInner(node, options) {
3308
+ let { dom, contentDOM } = renderSpec(doc(options), this.nodes[node.type.name](node), null, node.attrs);
3309
+ if (contentDOM) {
3310
+ if (node.isLeaf)
3311
+ throw new RangeError("Content hole not allowed in a leaf node spec");
3312
+ this.serializeFragment(node.content, options, contentDOM);
3313
+ }
3314
+ return dom;
3315
+ }
3316
+ /**
3317
+ Serialize this node to a DOM node. This can be useful when you
3318
+ need to serialize a part of a document, as opposed to the whole
3319
+ document. To serialize a whole document, use
3320
+ [`serializeFragment`](https://prosemirror.net/docs/ref/#model.DOMSerializer.serializeFragment) on
3321
+ its [content](https://prosemirror.net/docs/ref/#model.Node.content).
3322
+ */
3323
+ serializeNode(node, options = {}) {
3324
+ let dom = this.serializeNodeInner(node, options);
3325
+ for (let i = node.marks.length - 1; i >= 0; i--) {
3326
+ let wrap = this.serializeMark(node.marks[i], node.isInline, options);
3327
+ if (wrap) {
3328
+ (wrap.contentDOM || wrap.dom).appendChild(dom);
3329
+ dom = wrap.dom;
3330
+ }
3331
+ }
3332
+ return dom;
3333
+ }
3334
+ /**
3335
+ @internal
3336
+ */
3337
+ serializeMark(mark, inline, options = {}) {
3338
+ let toDOM = this.marks[mark.type.name];
3339
+ return toDOM && renderSpec(doc(options), toDOM(mark, inline), null, mark.attrs);
3340
+ }
3341
+ static renderSpec(doc, structure, xmlNS = null, blockArraysIn) {
3342
+ return renderSpec(doc, structure, xmlNS, blockArraysIn);
3343
+ }
3344
+ /**
3345
+ Build a serializer using the [`toDOM`](https://prosemirror.net/docs/ref/#model.NodeSpec.toDOM)
3346
+ properties in a schema's node and mark specs.
3347
+ */
3348
+ static fromSchema(schema) {
3349
+ return schema.cached.domSerializer ||
3350
+ (schema.cached.domSerializer = new DOMSerializer(this.nodesFromSchema(schema), this.marksFromSchema(schema)));
3351
+ }
3352
+ /**
3353
+ Gather the serializers in a schema's node specs into an object.
3354
+ This can be useful as a base to build a custom serializer from.
3355
+ */
3356
+ static nodesFromSchema(schema) {
3357
+ let result = gatherToDOM(schema.nodes);
3358
+ if (!result.text)
3359
+ result.text = node => node.text;
3360
+ return result;
3361
+ }
3362
+ /**
3363
+ Gather the serializers in a schema's mark specs into an object.
3364
+ */
3365
+ static marksFromSchema(schema) {
3366
+ return gatherToDOM(schema.marks);
3367
+ }
3368
+ }
3369
+ function gatherToDOM(obj) {
3370
+ let result = {};
3371
+ for (let name in obj) {
3372
+ let toDOM = obj[name].spec.toDOM;
3373
+ if (toDOM)
3374
+ result[name] = toDOM;
3375
+ }
3376
+ return result;
3377
+ }
3378
+ function doc(options) {
3379
+ return options.document || window.document;
3380
+ }
3381
+ const suspiciousAttributeCache = new WeakMap();
3382
+ function suspiciousAttributes(attrs) {
3383
+ let value = suspiciousAttributeCache.get(attrs);
3384
+ if (value === undefined)
3385
+ suspiciousAttributeCache.set(attrs, value = suspiciousAttributesInner(attrs));
3386
+ return value;
3387
+ }
3388
+ function suspiciousAttributesInner(attrs) {
3389
+ let result = null;
3390
+ function scan(value) {
3391
+ if (value && typeof value == "object") {
3392
+ if (Array.isArray(value)) {
3393
+ if (typeof value[0] == "string") {
3394
+ if (!result)
3395
+ result = [];
3396
+ result.push(value);
3397
+ }
3398
+ else {
3399
+ for (let i = 0; i < value.length; i++)
3400
+ scan(value[i]);
3401
+ }
3402
+ }
3403
+ else {
3404
+ for (let prop in value)
3405
+ scan(value[prop]);
3406
+ }
3407
+ }
3408
+ }
3409
+ scan(attrs);
3410
+ return result;
3411
+ }
3412
+ function renderSpec(doc, structure, xmlNS, blockArraysIn) {
3413
+ if (typeof structure == "string")
3414
+ return { dom: doc.createTextNode(structure) };
3415
+ if (structure.nodeType != null)
3416
+ return { dom: structure };
3417
+ if (structure.dom && structure.dom.nodeType != null)
3418
+ return structure;
3419
+ let tagName = structure[0], suspicious;
3420
+ if (typeof tagName != "string")
3421
+ throw new RangeError("Invalid array passed to renderSpec");
3422
+ if (blockArraysIn && (suspicious = suspiciousAttributes(blockArraysIn)) &&
3423
+ suspicious.indexOf(structure) > -1)
3424
+ throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");
3425
+ let space = tagName.indexOf(" ");
3426
+ if (space > 0) {
3427
+ xmlNS = tagName.slice(0, space);
3428
+ tagName = tagName.slice(space + 1);
3429
+ }
3430
+ let contentDOM;
3431
+ let dom = (xmlNS ? doc.createElementNS(xmlNS, tagName) : doc.createElement(tagName));
3432
+ let attrs = structure[1], start = 1;
3433
+ if (attrs && typeof attrs == "object" && attrs.nodeType == null && !Array.isArray(attrs)) {
3434
+ start = 2;
3435
+ for (let name in attrs)
3436
+ if (attrs[name] != null) {
3437
+ let space = name.indexOf(" ");
3438
+ if (space > 0)
3439
+ dom.setAttributeNS(name.slice(0, space), name.slice(space + 1), attrs[name]);
3440
+ else if (name == "style" && dom.style)
3441
+ dom.style.cssText = attrs[name];
3442
+ else
3443
+ dom.setAttribute(name, attrs[name]);
3444
+ }
3445
+ }
3446
+ for (let i = start; i < structure.length; i++) {
3447
+ let child = structure[i];
3448
+ if (child === 0) {
3449
+ if (i < structure.length - 1 || i > start)
3450
+ throw new RangeError("Content hole must be the only child of its parent node");
3451
+ return { dom, contentDOM: dom };
3452
+ }
3453
+ else {
3454
+ let { dom: inner, contentDOM: innerContent } = renderSpec(doc, child, xmlNS, blockArraysIn);
3455
+ dom.appendChild(inner);
3456
+ if (innerContent) {
3457
+ if (contentDOM)
3458
+ throw new RangeError("Multiple content holes");
3459
+ contentDOM = innerContent;
3460
+ }
3461
+ }
3462
+ }
3463
+ return { dom, contentDOM };
3464
+ }
3465
+
3466
+ exports.ContentMatch = ContentMatch;
3467
+ exports.DOMParser = DOMParser;
3468
+ exports.DOMSerializer = DOMSerializer;
3469
+ exports.Fragment = Fragment;
3470
+ exports.Mark = Mark;
3471
+ exports.MarkType = MarkType;
3472
+ exports.Node = Node;
3473
+ exports.NodeRange = NodeRange;
3474
+ exports.NodeType = NodeType;
3475
+ exports.ReplaceError = ReplaceError;
3476
+ exports.ResolvedPos = ResolvedPos;
3477
+ exports.Schema = Schema;
3478
+ exports.Slice = Slice;