@gsc-basic/shared-service 1.0.6 → 1.0.8

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 (949) hide show
  1. package/dist/index.css +14 -0
  2. package/dist/shared-service.js +14 -0
  3. package/package.json +17 -14
  4. package/dist/es/_virtual/_plugin-vue_export-helper.js +0 -22
  5. package/dist/es/_virtual/index.js +0 -15
  6. package/dist/es/_virtual/index2.js +0 -17
  7. package/dist/es/email-center/AccountConf/index.js +0 -19
  8. package/dist/es/email-center/AccountConf/src/config/columns.js +0 -82
  9. package/dist/es/email-center/AccountConf/src/config/filters.js +0 -61
  10. package/dist/es/email-center/AccountConf/src/config/schema.js +0 -139
  11. package/dist/es/email-center/AccountConf/src/constant/index.js +0 -72
  12. package/dist/es/email-center/AccountConf/src/index.css +0 -14
  13. package/dist/es/email-center/AccountConf/src/index.vue.js +0 -98
  14. package/dist/es/email-center/AccountConf/src/index2.css +0 -14
  15. package/dist/es/email-center/CmGroup/index.js +0 -19
  16. package/dist/es/email-center/CmGroup/src/config/columns.js +0 -77
  17. package/dist/es/email-center/CmGroup/src/config/filters.js +0 -64
  18. package/dist/es/email-center/CmGroup/src/config/schema.js +0 -79
  19. package/dist/es/email-center/CmGroup/src/constant/index.js +0 -26
  20. package/dist/es/email-center/CmGroup/src/index.css +0 -14
  21. package/dist/es/email-center/CmGroup/src/index.vue.js +0 -91
  22. package/dist/es/email-center/CmGroup/src/index2.css +0 -14
  23. package/dist/es/email-center/InboxNotifyConf/index.js +0 -19
  24. package/dist/es/email-center/InboxNotifyConf/src/config/columns.js +0 -124
  25. package/dist/es/email-center/InboxNotifyConf/src/config/filters.js +0 -61
  26. package/dist/es/email-center/InboxNotifyConf/src/config/schema.js +0 -152
  27. package/dist/es/email-center/InboxNotifyConf/src/constant/index.js +0 -104
  28. package/dist/es/email-center/InboxNotifyConf/src/index.css +0 -14
  29. package/dist/es/email-center/InboxNotifyConf/src/index.vue.js +0 -122
  30. package/dist/es/email-center/InboxNotifyConf/src/index2.css +0 -14
  31. package/dist/es/email-center/Log/index.js +0 -19
  32. package/dist/es/email-center/Log/src/config/columns.js +0 -115
  33. package/dist/es/email-center/Log/src/config/filters.js +0 -81
  34. package/dist/es/email-center/Log/src/index.css +0 -14
  35. package/dist/es/email-center/Log/src/index.vue.js +0 -161
  36. package/dist/es/email-center/Log/src/index2.css +0 -14
  37. package/dist/es/email-center/Template/index.js +0 -19
  38. package/dist/es/email-center/Template/src/components/MailTemplateSend.css +0 -14
  39. package/dist/es/email-center/Template/src/components/MailTemplateSend.vue.js +0 -256
  40. package/dist/es/email-center/Template/src/components/MailTemplateSend2.css +0 -14
  41. package/dist/es/email-center/Template/src/config/columns.js +0 -107
  42. package/dist/es/email-center/Template/src/config/filters.js +0 -82
  43. package/dist/es/email-center/Template/src/config/schema.js +0 -179
  44. package/dist/es/email-center/Template/src/constant/index.js +0 -274
  45. package/dist/es/email-center/Template/src/index.css +0 -14
  46. package/dist/es/email-center/Template/src/index.vue.js +0 -255
  47. package/dist/es/email-center/Template/src/index2.css +0 -14
  48. package/dist/es/email-center/api/accountConf.js +0 -21
  49. package/dist/es/email-center/api/cmGroup.js +0 -21
  50. package/dist/es/email-center/api/common.js +0 -42
  51. package/dist/es/email-center/api/inboxNotifyConf.js +0 -21
  52. package/dist/es/email-center/api/log.js +0 -23
  53. package/dist/es/email-center/api/template.js +0 -27
  54. package/dist/es/email-center/components/form.css +0 -14
  55. package/dist/es/email-center/components/form.vue.js +0 -116
  56. package/dist/es/email-center/components/form2.css +0 -14
  57. package/dist/es/email-center/components/grid.css +0 -14
  58. package/dist/es/email-center/components/grid.vue.js +0 -308
  59. package/dist/es/email-center/components/grid2.css +0 -14
  60. package/dist/es/file-flow/DownloadCenter/index.js +0 -19
  61. package/dist/es/file-flow/DownloadCenter/src/components/progress.css +0 -14
  62. package/dist/es/file-flow/DownloadCenter/src/components/progress.vue.js +0 -135
  63. package/dist/es/file-flow/DownloadCenter/src/components/progress2.css +0 -14
  64. package/dist/es/file-flow/DownloadCenter/src/config/columns.js +0 -80
  65. package/dist/es/file-flow/DownloadCenter/src/config/filters.js +0 -79
  66. package/dist/es/file-flow/DownloadCenter/src/config/logColumns.js +0 -48
  67. package/dist/es/file-flow/DownloadCenter/src/config/schema.js +0 -50
  68. package/dist/es/file-flow/DownloadCenter/src/index.css +0 -14
  69. package/dist/es/file-flow/DownloadCenter/src/index.vue.js +0 -219
  70. package/dist/es/file-flow/DownloadCenter/src/index2.css +0 -14
  71. package/dist/es/file-flow/UploadButton/index.js +0 -19
  72. package/dist/es/file-flow/UploadButton/src/component/upload.css +0 -14
  73. package/dist/es/file-flow/UploadButton/src/component/upload.vue.js +0 -139
  74. package/dist/es/file-flow/UploadButton/src/composables/useUploadFile.js +0 -57
  75. package/dist/es/file-flow/UploadButton/src/index.css +0 -14
  76. package/dist/es/file-flow/UploadButton/src/index.vue.js +0 -63
  77. package/dist/es/file-flow/UploadCenter/index.js +0 -19
  78. package/dist/es/file-flow/UploadCenter/src/config/columns.js +0 -75
  79. package/dist/es/file-flow/UploadCenter/src/config/filters.js +0 -103
  80. package/dist/es/file-flow/UploadCenter/src/config/logColumns.js +0 -47
  81. package/dist/es/file-flow/UploadCenter/src/config/schema.js +0 -50
  82. package/dist/es/file-flow/UploadCenter/src/config/statusColumns.js +0 -45
  83. package/dist/es/file-flow/UploadCenter/src/index.css +0 -14
  84. package/dist/es/file-flow/UploadCenter/src/index.vue.js +0 -244
  85. package/dist/es/file-flow/UploadCenter/src/index2.css +0 -14
  86. package/dist/es/file-flow/UploadCenter/src/index3.css +0 -14
  87. package/dist/es/file-flow/api/downloadCenter.js +0 -64
  88. package/dist/es/file-flow/api/uploadButton.js +0 -24
  89. package/dist/es/file-flow/api/uploadCenter.js +0 -62
  90. package/dist/es/file-flow/components/InterruptModal.css +0 -14
  91. package/dist/es/file-flow/components/InterruptModal.vue.js +0 -83
  92. package/dist/es/hooks/useLocale.js +0 -40
  93. package/dist/es/index.js +0 -51
  94. package/dist/es/locale/index.js +0 -44
  95. package/dist/es/locale/lang/en-US.js +0 -205
  96. package/dist/es/locale/lang/ja-JP.js +0 -206
  97. package/dist/es/locale/lang/zh-CN.js +0 -203
  98. package/dist/es/node_modules/@vueuse/core/dist/index.js +0 -230
  99. package/dist/es/node_modules/@vueuse/shared/dist/index.js +0 -165
  100. package/dist/es/node_modules/lodash-es/_Hash.js +0 -33
  101. package/dist/es/node_modules/lodash-es/_ListCache.js +0 -33
  102. package/dist/es/node_modules/lodash-es/_Map.js +0 -19
  103. package/dist/es/node_modules/lodash-es/_MapCache.js +0 -33
  104. package/dist/es/node_modules/lodash-es/_Symbol.js +0 -18
  105. package/dist/es/node_modules/lodash-es/_apply.js +0 -29
  106. package/dist/es/node_modules/lodash-es/_arrayMap.js +0 -21
  107. package/dist/es/node_modules/lodash-es/_arrayPush.js +0 -21
  108. package/dist/es/node_modules/lodash-es/_assignValue.js +0 -23
  109. package/dist/es/node_modules/lodash-es/_assocIndexOf.js +0 -23
  110. package/dist/es/node_modules/lodash-es/_baseAssignValue.js +0 -25
  111. package/dist/es/node_modules/lodash-es/_baseFlatten.js +0 -26
  112. package/dist/es/node_modules/lodash-es/_baseGet.js +0 -24
  113. package/dist/es/node_modules/lodash-es/_baseGetTag.js +0 -23
  114. package/dist/es/node_modules/lodash-es/_baseHasIn.js +0 -19
  115. package/dist/es/node_modules/lodash-es/_baseIsArguments.js +0 -22
  116. package/dist/es/node_modules/lodash-es/_baseIsNative.js +0 -29
  117. package/dist/es/node_modules/lodash-es/_basePick.js +0 -23
  118. package/dist/es/node_modules/lodash-es/_basePickBy.js +0 -26
  119. package/dist/es/node_modules/lodash-es/_baseSet.js +0 -37
  120. package/dist/es/node_modules/lodash-es/_baseSetToString.js +0 -27
  121. package/dist/es/node_modules/lodash-es/_baseToString.js +0 -31
  122. package/dist/es/node_modules/lodash-es/_castPath.js +0 -23
  123. package/dist/es/node_modules/lodash-es/_coreJsData.js +0 -18
  124. package/dist/es/node_modules/lodash-es/_defineProperty.js +0 -24
  125. package/dist/es/node_modules/lodash-es/_flatRest.js +0 -22
  126. package/dist/es/node_modules/lodash-es/_freeGlobal.js +0 -17
  127. package/dist/es/node_modules/lodash-es/_getMapData.js +0 -21
  128. package/dist/es/node_modules/lodash-es/_getNative.js +0 -22
  129. package/dist/es/node_modules/lodash-es/_getRawTag.js +0 -28
  130. package/dist/es/node_modules/lodash-es/_getValue.js +0 -19
  131. package/dist/es/node_modules/lodash-es/_hasPath.js +0 -32
  132. package/dist/es/node_modules/lodash-es/_hashClear.js +0 -20
  133. package/dist/es/node_modules/lodash-es/_hashDelete.js +0 -20
  134. package/dist/es/node_modules/lodash-es/_hashGet.js +0 -26
  135. package/dist/es/node_modules/lodash-es/_hashHas.js +0 -22
  136. package/dist/es/node_modules/lodash-es/_hashSet.js +0 -22
  137. package/dist/es/node_modules/lodash-es/_isFlattenable.js +0 -23
  138. package/dist/es/node_modules/lodash-es/_isIndex.js +0 -21
  139. package/dist/es/node_modules/lodash-es/_isKey.js +0 -25
  140. package/dist/es/node_modules/lodash-es/_isKeyable.js +0 -20
  141. package/dist/es/node_modules/lodash-es/_isMasked.js +0 -24
  142. package/dist/es/node_modules/lodash-es/_listCacheClear.js +0 -19
  143. package/dist/es/node_modules/lodash-es/_listCacheDelete.js +0 -25
  144. package/dist/es/node_modules/lodash-es/_listCacheGet.js +0 -21
  145. package/dist/es/node_modules/lodash-es/_listCacheHas.js +0 -20
  146. package/dist/es/node_modules/lodash-es/_listCacheSet.js +0 -21
  147. package/dist/es/node_modules/lodash-es/_mapCacheClear.js +0 -26
  148. package/dist/es/node_modules/lodash-es/_mapCacheDelete.js +0 -21
  149. package/dist/es/node_modules/lodash-es/_mapCacheGet.js +0 -20
  150. package/dist/es/node_modules/lodash-es/_mapCacheHas.js +0 -20
  151. package/dist/es/node_modules/lodash-es/_mapCacheSet.js +0 -21
  152. package/dist/es/node_modules/lodash-es/_memoizeCapped.js +0 -24
  153. package/dist/es/node_modules/lodash-es/_nativeCreate.js +0 -18
  154. package/dist/es/node_modules/lodash-es/_objectToString.js +0 -20
  155. package/dist/es/node_modules/lodash-es/_overRest.js +0 -28
  156. package/dist/es/node_modules/lodash-es/_root.js +0 -18
  157. package/dist/es/node_modules/lodash-es/_setToString.js +0 -19
  158. package/dist/es/node_modules/lodash-es/_shortOut.js +0 -29
  159. package/dist/es/node_modules/lodash-es/_stringToPath.js +0 -23
  160. package/dist/es/node_modules/lodash-es/_toKey.js +0 -23
  161. package/dist/es/node_modules/lodash-es/_toSource.js +0 -30
  162. package/dist/es/node_modules/lodash-es/constant.js +0 -21
  163. package/dist/es/node_modules/lodash-es/eq.js +0 -19
  164. package/dist/es/node_modules/lodash-es/flatten.js +0 -21
  165. package/dist/es/node_modules/lodash-es/get.js +0 -21
  166. package/dist/es/node_modules/lodash-es/hasIn.js +0 -21
  167. package/dist/es/node_modules/lodash-es/identity.js +0 -19
  168. package/dist/es/node_modules/lodash-es/isArguments.js +0 -23
  169. package/dist/es/node_modules/lodash-es/isArray.js +0 -17
  170. package/dist/es/node_modules/lodash-es/isFunction.js +0 -25
  171. package/dist/es/node_modules/lodash-es/isLength.js +0 -20
  172. package/dist/es/node_modules/lodash-es/isObject.js +0 -20
  173. package/dist/es/node_modules/lodash-es/isObjectLike.js +0 -19
  174. package/dist/es/node_modules/lodash-es/isSymbol.js +0 -22
  175. package/dist/es/node_modules/lodash-es/memoize.js +0 -31
  176. package/dist/es/node_modules/lodash-es/pick.js +0 -21
  177. package/dist/es/node_modules/lodash-es/toString.js +0 -20
  178. package/dist/es/node_modules/path-to-regexp/dist/index.js +0 -275
  179. package/dist/es/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js +0 -300
  180. package/dist/es/node_modules/sortablejs/modular/sortable.esm.js +0 -1283
  181. package/dist/es/node_modules/title-case/dist/index.js +0 -20
  182. package/dist/es/packages/components/dist/es/Button/index.js +0 -19
  183. package/dist/es/packages/components/dist/es/Button/src/Button.css +0 -14
  184. package/dist/es/packages/components/dist/es/Button/src/Button.vue.js +0 -54
  185. package/dist/es/packages/components/dist/es/Button/src/Button2.css +0 -14
  186. package/dist/es/packages/components/dist/es/ConfigProvider/index.js +0 -19
  187. package/dist/es/packages/components/dist/es/ConfigProvider/src/configProvider.js +0 -27
  188. package/dist/es/packages/components/dist/es/ConfigProvider/src/configProviderProps.js +0 -35
  189. package/dist/es/packages/components/dist/es/ConfigProvider/src/constants.js +0 -22
  190. package/dist/es/packages/components/dist/es/ConfigProvider/src/useGlobalConfig.js +0 -47
  191. package/dist/es/packages/components/dist/es/Form/index.js +0 -19
  192. package/dist/es/packages/components/dist/es/Form/src/Form.css +0 -14
  193. package/dist/es/packages/components/dist/es/Form/src/Form.vue.js +0 -386
  194. package/dist/es/packages/components/dist/es/Form/src/Form2.css +0 -14
  195. package/dist/es/packages/components/dist/es/Form/src/styles/form.css +0 -14
  196. package/dist/es/packages/components/dist/es/Overlay/src/Modal.css +0 -14
  197. package/dist/es/packages/components/dist/es/Overlay/src/Modal.vue.js +0 -80
  198. package/dist/es/packages/components/dist/es/Overlay/src/Modal2.css +0 -14
  199. package/dist/es/packages/components/dist/es/RichTextEditor/index.js +0 -19
  200. package/dist/es/packages/components/dist/es/RichTextEditor/src/ToolbarPanel.css +0 -14
  201. package/dist/es/packages/components/dist/es/RichTextEditor/src/ToolbarPanel.vue.js +0 -182
  202. package/dist/es/packages/components/dist/es/RichTextEditor/src/ToolbarPanel2.css +0 -14
  203. package/dist/es/packages/components/dist/es/RichTextEditor/src/components/BlockquoteButton.css +0 -14
  204. package/dist/es/packages/components/dist/es/RichTextEditor/src/components/BlockquoteButton.vue.js +0 -50
  205. package/dist/es/packages/components/dist/es/RichTextEditor/src/components/CodeBlockButton.css +0 -14
  206. package/dist/es/packages/components/dist/es/RichTextEditor/src/components/CodeBlockButton.vue.js +0 -50
  207. package/dist/es/packages/components/dist/es/RichTextEditor/src/components/ColorHighlightPopover.css +0 -14
  208. package/dist/es/packages/components/dist/es/RichTextEditor/src/components/ColorHighlightPopover.vue.js +0 -53
  209. package/dist/es/packages/components/dist/es/RichTextEditor/src/components/FontSizeDropdownMenu.css +0 -14
  210. package/dist/es/packages/components/dist/es/RichTextEditor/src/components/FontSizeDropdownMenu.vue.js +0 -68
  211. package/dist/es/packages/components/dist/es/RichTextEditor/src/components/HeadingDropdownMenu.css +0 -14
  212. package/dist/es/packages/components/dist/es/RichTextEditor/src/components/HeadingDropdownMenu.vue.js +0 -79
  213. package/dist/es/packages/components/dist/es/RichTextEditor/src/components/ImageUploadButton.css +0 -14
  214. package/dist/es/packages/components/dist/es/RichTextEditor/src/components/ImageUploadButton.vue.js +0 -90
  215. package/dist/es/packages/components/dist/es/RichTextEditor/src/components/LinkPopover.css +0 -14
  216. package/dist/es/packages/components/dist/es/RichTextEditor/src/components/LinkPopover.vue.js +0 -102
  217. package/dist/es/packages/components/dist/es/RichTextEditor/src/components/LinkPopover2.css +0 -14
  218. package/dist/es/packages/components/dist/es/RichTextEditor/src/components/ListDropdownMenu.css +0 -14
  219. package/dist/es/packages/components/dist/es/RichTextEditor/src/components/ListDropdownMenu.vue.js +0 -86
  220. package/dist/es/packages/components/dist/es/RichTextEditor/src/components/MarkButton.css +0 -14
  221. package/dist/es/packages/components/dist/es/RichTextEditor/src/components/MarkButton.vue.js +0 -99
  222. package/dist/es/packages/components/dist/es/RichTextEditor/src/components/TableButton.css +0 -14
  223. package/dist/es/packages/components/dist/es/RichTextEditor/src/components/TableButton.vue.js +0 -175
  224. package/dist/es/packages/components/dist/es/RichTextEditor/src/components/TextAlignDropdownMenu.css +0 -14
  225. package/dist/es/packages/components/dist/es/RichTextEditor/src/components/TextAlignDropdownMenu.vue.js +0 -95
  226. package/dist/es/packages/components/dist/es/RichTextEditor/src/components/TextColorPopover.css +0 -14
  227. package/dist/es/packages/components/dist/es/RichTextEditor/src/components/TextColorPopover.vue.js +0 -53
  228. package/dist/es/packages/components/dist/es/RichTextEditor/src/components/ToolbarGroup.css +0 -14
  229. package/dist/es/packages/components/dist/es/RichTextEditor/src/components/ToolbarGroup.vue.js +0 -29
  230. package/dist/es/packages/components/dist/es/RichTextEditor/src/components/ToolbarSeparator.css +0 -14
  231. package/dist/es/packages/components/dist/es/RichTextEditor/src/components/ToolbarSeparator.vue.js +0 -27
  232. package/dist/es/packages/components/dist/es/RichTextEditor/src/components/UndoRedoButton.css +0 -14
  233. package/dist/es/packages/components/dist/es/RichTextEditor/src/components/UndoRedoButton.vue.js +0 -64
  234. package/dist/es/packages/components/dist/es/RichTextEditor/src/components/VideoUploadButton.css +0 -14
  235. package/dist/es/packages/components/dist/es/RichTextEditor/src/components/VideoUploadButton.vue.js +0 -90
  236. package/dist/es/packages/components/dist/es/RichTextEditor/src/components/basic/ColorPicker.css +0 -14
  237. package/dist/es/packages/components/dist/es/RichTextEditor/src/components/basic/ColorPicker.vue.js +0 -111
  238. package/dist/es/packages/components/dist/es/RichTextEditor/src/components/basic/MediaUploadModal.css +0 -14
  239. package/dist/es/packages/components/dist/es/RichTextEditor/src/components/basic/MediaUploadModal.vue.js +0 -390
  240. package/dist/es/packages/components/dist/es/RichTextEditor/src/components/basic/MediaUploadModal2.css +0 -14
  241. package/dist/es/packages/components/dist/es/RichTextEditor/src/components/basic/SelectMenu.css +0 -14
  242. package/dist/es/packages/components/dist/es/RichTextEditor/src/components/basic/SelectMenu.vue.js +0 -147
  243. package/dist/es/packages/components/dist/es/RichTextEditor/src/components/basic/SelectMenu2.css +0 -14
  244. package/dist/es/packages/components/dist/es/RichTextEditor/src/constant/index.js +0 -63
  245. package/dist/es/packages/components/dist/es/RichTextEditor/src/extensions/styledTable.js +0 -112
  246. package/dist/es/packages/components/dist/es/RichTextEditor/src/extensions/video.js +0 -78
  247. package/dist/es/packages/components/dist/es/RichTextEditor/src/index.css +0 -14
  248. package/dist/es/packages/components/dist/es/RichTextEditor/src/index.vue.js +0 -176
  249. package/dist/es/packages/components/dist/es/RichTextEditor/src/index2.css +0 -14
  250. package/dist/es/packages/components/dist/es/RichTextEditor/src/props.js +0 -50
  251. package/dist/es/packages/components/dist/es/_virtual/_plugin-vue_export-helper.js +0 -22
  252. package/dist/es/packages/components/dist/es/hooks/useLocale.js +0 -38
  253. package/dist/es/packages/components/dist/es/hooks/useNamespace.js +0 -21
  254. package/dist/es/packages/components/dist/es/locale/lang/en-US.js +0 -134
  255. package/dist/es/packages/components/dist/es/locale/lang/ja-JP.js +0 -134
  256. package/dist/es/packages/components/dist/es/locale/lang/zh-CN.js +0 -134
  257. package/dist/es/packages/components/dist/es/node_modules/@tanstack/devtools-event-client/dist/esm/plugin.js +0 -191
  258. package/dist/es/packages/components/dist/es/node_modules/@tanstack/form-core/dist/esm/EventClient.js +0 -26
  259. package/dist/es/packages/components/dist/es/node_modules/@tanstack/form-core/dist/esm/FieldApi.js +0 -419
  260. package/dist/es/packages/components/dist/es/node_modules/@tanstack/form-core/dist/esm/FormApi.js +0 -799
  261. package/dist/es/packages/components/dist/es/node_modules/@tanstack/form-core/dist/esm/ValidationLogic.js +0 -68
  262. package/dist/es/packages/components/dist/es/node_modules/@tanstack/form-core/dist/esm/metaHelper.js +0 -122
  263. package/dist/es/packages/components/dist/es/node_modules/@tanstack/form-core/dist/esm/standardSchemaValidator.js +0 -58
  264. package/dist/es/packages/components/dist/es/node_modules/@tanstack/form-core/dist/esm/utils.js +0 -226
  265. package/dist/es/packages/components/dist/es/node_modules/@tanstack/pacer-lite/dist/lite-throttler.js +0 -42
  266. package/dist/es/packages/components/dist/es/node_modules/@tanstack/store/dist/esm/alien.js +0 -221
  267. package/dist/es/packages/components/dist/es/node_modules/@tanstack/store/dist/esm/atom.js +0 -136
  268. package/dist/es/packages/components/dist/es/node_modules/@tanstack/store/dist/esm/batch.js +0 -25
  269. package/dist/es/packages/components/dist/es/node_modules/@tanstack/store/dist/esm/store.js +0 -57
  270. package/dist/es/packages/components/dist/es/node_modules/@tanstack/vue-form/dist/esm/useField.js +0 -51
  271. package/dist/es/packages/components/dist/es/node_modules/@tanstack/vue-form/dist/esm/useForm.js +0 -46
  272. package/dist/es/packages/components/dist/es/node_modules/@tanstack/vue-store/dist/esm/index.js +0 -61
  273. package/dist/es/packages/components/dist/es/node_modules/@tiptap/core/dist/index.js +0 -3995
  274. package/dist/es/packages/components/dist/es/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.js +0 -30
  275. package/dist/es/packages/components/dist/es/node_modules/@tiptap/extension-blockquote/dist/index.js +0 -75
  276. package/dist/es/packages/components/dist/es/node_modules/@tiptap/extension-bold/dist/index.js +0 -98
  277. package/dist/es/packages/components/dist/es/node_modules/@tiptap/extension-character-count/dist/index.js +0 -19
  278. package/dist/es/packages/components/dist/es/node_modules/@tiptap/extension-code/dist/index.js +0 -67
  279. package/dist/es/packages/components/dist/es/node_modules/@tiptap/extension-code-block/dist/index.js +0 -227
  280. package/dist/es/packages/components/dist/es/node_modules/@tiptap/extension-document/dist/index.js +0 -25
  281. package/dist/es/packages/components/dist/es/node_modules/@tiptap/extension-hard-break/dist/index.js +0 -72
  282. package/dist/es/packages/components/dist/es/node_modules/@tiptap/extension-heading/dist/index.js +0 -76
  283. package/dist/es/packages/components/dist/es/node_modules/@tiptap/extension-horizontal-rule/dist/index.js +0 -69
  284. package/dist/es/packages/components/dist/es/node_modules/@tiptap/extension-image/dist/index.js +0 -143
  285. package/dist/es/packages/components/dist/es/node_modules/@tiptap/extension-italic/dist/index.js +0 -96
  286. package/dist/es/packages/components/dist/es/node_modules/@tiptap/extension-link/dist/index.js +0 -326
  287. package/dist/es/packages/components/dist/es/node_modules/@tiptap/extension-list/dist/index.js +0 -743
  288. package/dist/es/packages/components/dist/es/node_modules/@tiptap/extension-paragraph/dist/index.js +0 -62
  289. package/dist/es/packages/components/dist/es/node_modules/@tiptap/extension-strike/dist/index.js +0 -79
  290. package/dist/es/packages/components/dist/es/node_modules/@tiptap/extension-subscript/dist/index.js +0 -54
  291. package/dist/es/packages/components/dist/es/node_modules/@tiptap/extension-superscript/dist/index.js +0 -54
  292. package/dist/es/packages/components/dist/es/node_modules/@tiptap/extension-table/dist/index.js +0 -392
  293. package/dist/es/packages/components/dist/es/node_modules/@tiptap/extension-task-item/dist/index.js +0 -19
  294. package/dist/es/packages/components/dist/es/node_modules/@tiptap/extension-task-list/dist/index.js +0 -19
  295. package/dist/es/packages/components/dist/es/node_modules/@tiptap/extension-text/dist/index.js +0 -26
  296. package/dist/es/packages/components/dist/es/node_modules/@tiptap/extension-text-align/dist/index.js +0 -60
  297. package/dist/es/packages/components/dist/es/node_modules/@tiptap/extension-text-style/dist/index.js +0 -253
  298. package/dist/es/packages/components/dist/es/node_modules/@tiptap/extension-underline/dist/index.js +0 -78
  299. package/dist/es/packages/components/dist/es/node_modules/@tiptap/extensions/dist/index.js +0 -311
  300. package/dist/es/packages/components/dist/es/node_modules/@tiptap/html/dist/index.js +0 -28
  301. package/dist/es/packages/components/dist/es/node_modules/@tiptap/starter-kit/dist/index.js +0 -42
  302. package/dist/es/packages/components/dist/es/node_modules/@tiptap/vue-3/dist/index.js +0 -270
  303. package/dist/es/packages/components/dist/es/node_modules/linkifyjs/dist/linkify.js +0 -720
  304. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_DataView.js +0 -19
  305. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_Hash.js +0 -33
  306. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_ListCache.js +0 -33
  307. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_Map.js +0 -19
  308. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_MapCache.js +0 -33
  309. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_Promise.js +0 -19
  310. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_Set.js +0 -19
  311. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_SetCache.js +0 -26
  312. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_Stack.js +0 -31
  313. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_Symbol.js +0 -18
  314. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_Uint8Array.js +0 -18
  315. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_WeakMap.js +0 -19
  316. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_apply.js +0 -29
  317. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_arrayFilter.js +0 -23
  318. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_arrayIncludes.js +0 -21
  319. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_arrayIncludesWith.js +0 -22
  320. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_arrayLikeKeys.js +0 -33
  321. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_arrayMap.js +0 -21
  322. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_arrayPush.js +0 -21
  323. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_arraySome.js +0 -22
  324. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_assignMergeValue.js +0 -21
  325. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_assignValue.js +0 -23
  326. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_assocIndexOf.js +0 -23
  327. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_baseAssignValue.js +0 -25
  328. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_baseCreate.js +0 -30
  329. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_baseFindIndex.js +0 -22
  330. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_baseFlatten.js +0 -26
  331. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_baseFor.js +0 -18
  332. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_baseGet.js +0 -24
  333. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_baseGetAllKeys.js +0 -22
  334. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_baseGetTag.js +0 -23
  335. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_baseIndexOf.js +0 -22
  336. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_baseIntersection.js +0 -42
  337. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_baseIsArguments.js +0 -22
  338. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_baseIsEqual.js +0 -21
  339. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_baseIsEqualDeep.js +0 -45
  340. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_baseIsNaN.js +0 -19
  341. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_baseIsNative.js +0 -29
  342. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_baseIsTypedArray.js +0 -25
  343. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_baseKeys.js +0 -27
  344. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_baseKeysIn.js +0 -28
  345. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_baseMerge.js +0 -33
  346. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_baseMergeDeep.js +0 -44
  347. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_baseRest.js +0 -22
  348. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_baseSetToString.js +0 -27
  349. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_baseTimes.js +0 -21
  350. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_baseToString.js +0 -31
  351. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_baseUnary.js +0 -21
  352. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_baseUniq.js +0 -46
  353. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_cacheHas.js +0 -19
  354. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_castArrayLikeObject.js +0 -20
  355. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_castPath.js +0 -23
  356. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_cloneArrayBuffer.js +0 -21
  357. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_cloneBuffer.js +0 -22
  358. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_cloneTypedArray.js +0 -21
  359. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_copyArray.js +0 -22
  360. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_copyObject.js +0 -27
  361. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_coreJsData.js +0 -18
  362. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_createAssigner.js +0 -28
  363. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_createBaseFor.js +0 -26
  364. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_createSet.js +0 -22
  365. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_defineProperty.js +0 -24
  366. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_equalArrays.js +0 -53
  367. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_equalByTag.js +0 -58
  368. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_equalObjects.js +0 -49
  369. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_freeGlobal.js +0 -17
  370. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_getAllKeys.js +0 -22
  371. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_getMapData.js +0 -21
  372. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_getNative.js +0 -22
  373. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_getPrototype.js +0 -18
  374. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_getRawTag.js +0 -28
  375. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_getSymbols.js +0 -23
  376. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_getTag.js +0 -41
  377. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_getValue.js +0 -19
  378. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_hashClear.js +0 -20
  379. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_hashDelete.js +0 -20
  380. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_hashGet.js +0 -26
  381. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_hashHas.js +0 -22
  382. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_hashSet.js +0 -22
  383. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_initCloneObject.js +0 -22
  384. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_isFlattenable.js +0 -23
  385. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_isIndex.js +0 -21
  386. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_isIterateeCall.js +0 -26
  387. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_isKey.js +0 -25
  388. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_isKeyable.js +0 -20
  389. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_isMasked.js +0 -24
  390. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_isPrototype.js +0 -21
  391. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_listCacheClear.js +0 -19
  392. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_listCacheDelete.js +0 -25
  393. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_listCacheGet.js +0 -21
  394. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_listCacheHas.js +0 -20
  395. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_listCacheSet.js +0 -21
  396. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_mapCacheClear.js +0 -26
  397. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_mapCacheDelete.js +0 -21
  398. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_mapCacheGet.js +0 -20
  399. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_mapCacheHas.js +0 -20
  400. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_mapCacheSet.js +0 -21
  401. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_mapToArray.js +0 -22
  402. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_memoizeCapped.js +0 -24
  403. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_nativeCreate.js +0 -18
  404. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_nativeKeys.js +0 -18
  405. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_nativeKeysIn.js +0 -23
  406. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_nodeUtil.js +0 -24
  407. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_objectToString.js +0 -20
  408. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_overArg.js +0 -21
  409. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_overRest.js +0 -28
  410. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_root.js +0 -18
  411. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_safeGet.js +0 -20
  412. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_setCacheAdd.js +0 -20
  413. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_setCacheHas.js +0 -19
  414. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_setToArray.js +0 -22
  415. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_setToString.js +0 -19
  416. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_shortOut.js +0 -29
  417. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_stackClear.js +0 -20
  418. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_stackDelete.js +0 -20
  419. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_stackGet.js +0 -19
  420. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_stackHas.js +0 -19
  421. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_stackSet.js +0 -30
  422. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_strictIndexOf.js +0 -22
  423. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_stringToPath.js +0 -23
  424. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_toKey.js +0 -23
  425. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_toSource.js +0 -30
  426. package/dist/es/packages/components/dist/es/node_modules/lodash-es/constant.js +0 -21
  427. package/dist/es/packages/components/dist/es/node_modules/lodash-es/eq.js +0 -19
  428. package/dist/es/packages/components/dist/es/node_modules/lodash-es/get.js +0 -21
  429. package/dist/es/packages/components/dist/es/node_modules/lodash-es/identity.js +0 -19
  430. package/dist/es/packages/components/dist/es/node_modules/lodash-es/intersectionWith.js +0 -25
  431. package/dist/es/packages/components/dist/es/node_modules/lodash-es/isArguments.js +0 -23
  432. package/dist/es/packages/components/dist/es/node_modules/lodash-es/isArray.js +0 -17
  433. package/dist/es/packages/components/dist/es/node_modules/lodash-es/isArrayLike.js +0 -21
  434. package/dist/es/packages/components/dist/es/node_modules/lodash-es/isArrayLikeObject.js +0 -21
  435. package/dist/es/packages/components/dist/es/node_modules/lodash-es/isBuffer.js +0 -19
  436. package/dist/es/packages/components/dist/es/node_modules/lodash-es/isEqual.js +0 -20
  437. package/dist/es/packages/components/dist/es/node_modules/lodash-es/isFunction.js +0 -25
  438. package/dist/es/packages/components/dist/es/node_modules/lodash-es/isLength.js +0 -20
  439. package/dist/es/packages/components/dist/es/node_modules/lodash-es/isObject.js +0 -20
  440. package/dist/es/packages/components/dist/es/node_modules/lodash-es/isObjectLike.js +0 -19
  441. package/dist/es/packages/components/dist/es/node_modules/lodash-es/isPlainObject.js +0 -29
  442. package/dist/es/packages/components/dist/es/node_modules/lodash-es/isSymbol.js +0 -22
  443. package/dist/es/packages/components/dist/es/node_modules/lodash-es/isTypedArray.js +0 -20
  444. package/dist/es/packages/components/dist/es/node_modules/lodash-es/keys.js +0 -22
  445. package/dist/es/packages/components/dist/es/node_modules/lodash-es/keysIn.js +0 -22
  446. package/dist/es/packages/components/dist/es/node_modules/lodash-es/last.js +0 -20
  447. package/dist/es/packages/components/dist/es/node_modules/lodash-es/memoize.js +0 -31
  448. package/dist/es/packages/components/dist/es/node_modules/lodash-es/mergeWith.js +0 -21
  449. package/dist/es/packages/components/dist/es/node_modules/lodash-es/noop.js +0 -18
  450. package/dist/es/packages/components/dist/es/node_modules/lodash-es/stubArray.js +0 -19
  451. package/dist/es/packages/components/dist/es/node_modules/lodash-es/stubFalse.js +0 -19
  452. package/dist/es/packages/components/dist/es/node_modules/lodash-es/toPlainObject.js +0 -21
  453. package/dist/es/packages/components/dist/es/node_modules/lodash-es/toString.js +0 -20
  454. package/dist/es/packages/components/dist/es/node_modules/lodash-es/unionWith.js +0 -25
  455. package/dist/es/packages/components/dist/es/node_modules/orderedmap/dist/index.js +0 -116
  456. package/dist/es/packages/components/dist/es/node_modules/prosemirror-commands/dist/index.js +0 -401
  457. package/dist/es/packages/components/dist/es/node_modules/prosemirror-dropcursor/dist/index.js +0 -99
  458. package/dist/es/packages/components/dist/es/node_modules/prosemirror-gapcursor/dist/index.js +0 -217
  459. package/dist/es/packages/components/dist/es/node_modules/prosemirror-history/dist/index.js +0 -261
  460. package/dist/es/packages/components/dist/es/node_modules/prosemirror-keymap/dist/index.js +0 -75
  461. package/dist/es/packages/components/dist/es/node_modules/prosemirror-model/dist/index.js +0 -2746
  462. package/dist/es/packages/components/dist/es/node_modules/prosemirror-schema-list/dist/index.js +0 -101
  463. package/dist/es/packages/components/dist/es/node_modules/prosemirror-state/dist/index.js +0 -835
  464. package/dist/es/packages/components/dist/es/node_modules/prosemirror-tables/dist/index.js +0 -1459
  465. package/dist/es/packages/components/dist/es/node_modules/prosemirror-transform/dist/index.js +0 -1549
  466. package/dist/es/packages/components/dist/es/node_modules/prosemirror-view/dist/index.js +0 -3811
  467. package/dist/es/packages/components/dist/es/node_modules/rope-sequence/dist/index.js +0 -113
  468. package/dist/es/packages/components/dist/es/node_modules/w3c-keyname/index.js +0 -106
  469. package/dist/es/packages/components/dist/es/packages/utils/dist/index.js +0 -556
  470. package/dist/es/packages/components/dist/es/styles/tokens.css +0 -14
  471. package/dist/es/packages/hooks/dist/index.js +0 -114
  472. package/dist/es/packages/service-auth/dist/index.js +0 -295
  473. package/dist/es/packages/shared-service/index.js +0 -61
  474. package/dist/es/packages/utils/dist/index.js +0 -532
  475. package/dist/es/utils/request.js +0 -100
  476. package/dist/es/utils/util.js +0 -53
  477. package/dist/lib/_virtual/_plugin-vue_export-helper.js +0 -14
  478. package/dist/lib/_virtual/index.js +0 -14
  479. package/dist/lib/_virtual/index2.js +0 -14
  480. package/dist/lib/email-center/AccountConf/index.js +0 -14
  481. package/dist/lib/email-center/AccountConf/src/config/columns.js +0 -14
  482. package/dist/lib/email-center/AccountConf/src/config/filters.js +0 -14
  483. package/dist/lib/email-center/AccountConf/src/config/schema.js +0 -14
  484. package/dist/lib/email-center/AccountConf/src/constant/index.js +0 -14
  485. package/dist/lib/email-center/AccountConf/src/index.css +0 -14
  486. package/dist/lib/email-center/AccountConf/src/index.vue.js +0 -14
  487. package/dist/lib/email-center/AccountConf/src/index2.css +0 -14
  488. package/dist/lib/email-center/CmGroup/index.js +0 -14
  489. package/dist/lib/email-center/CmGroup/src/config/columns.js +0 -14
  490. package/dist/lib/email-center/CmGroup/src/config/filters.js +0 -14
  491. package/dist/lib/email-center/CmGroup/src/config/schema.js +0 -14
  492. package/dist/lib/email-center/CmGroup/src/constant/index.js +0 -14
  493. package/dist/lib/email-center/CmGroup/src/index.css +0 -14
  494. package/dist/lib/email-center/CmGroup/src/index.vue.js +0 -14
  495. package/dist/lib/email-center/CmGroup/src/index2.css +0 -14
  496. package/dist/lib/email-center/InboxNotifyConf/index.js +0 -14
  497. package/dist/lib/email-center/InboxNotifyConf/src/config/columns.js +0 -14
  498. package/dist/lib/email-center/InboxNotifyConf/src/config/filters.js +0 -14
  499. package/dist/lib/email-center/InboxNotifyConf/src/config/schema.js +0 -14
  500. package/dist/lib/email-center/InboxNotifyConf/src/constant/index.js +0 -14
  501. package/dist/lib/email-center/InboxNotifyConf/src/index.css +0 -14
  502. package/dist/lib/email-center/InboxNotifyConf/src/index.vue.js +0 -14
  503. package/dist/lib/email-center/InboxNotifyConf/src/index2.css +0 -14
  504. package/dist/lib/email-center/Log/index.js +0 -14
  505. package/dist/lib/email-center/Log/src/config/columns.js +0 -14
  506. package/dist/lib/email-center/Log/src/config/filters.js +0 -14
  507. package/dist/lib/email-center/Log/src/index.css +0 -14
  508. package/dist/lib/email-center/Log/src/index.vue.js +0 -14
  509. package/dist/lib/email-center/Log/src/index2.css +0 -14
  510. package/dist/lib/email-center/Template/index.js +0 -14
  511. package/dist/lib/email-center/Template/src/components/MailTemplateSend.css +0 -14
  512. package/dist/lib/email-center/Template/src/components/MailTemplateSend.vue.js +0 -14
  513. package/dist/lib/email-center/Template/src/components/MailTemplateSend2.css +0 -14
  514. package/dist/lib/email-center/Template/src/config/columns.js +0 -14
  515. package/dist/lib/email-center/Template/src/config/filters.js +0 -14
  516. package/dist/lib/email-center/Template/src/config/schema.js +0 -14
  517. package/dist/lib/email-center/Template/src/constant/index.js +0 -14
  518. package/dist/lib/email-center/Template/src/index.css +0 -14
  519. package/dist/lib/email-center/Template/src/index.vue.js +0 -14
  520. package/dist/lib/email-center/Template/src/index2.css +0 -14
  521. package/dist/lib/email-center/api/accountConf.js +0 -14
  522. package/dist/lib/email-center/api/cmGroup.js +0 -14
  523. package/dist/lib/email-center/api/common.js +0 -14
  524. package/dist/lib/email-center/api/inboxNotifyConf.js +0 -14
  525. package/dist/lib/email-center/api/log.js +0 -14
  526. package/dist/lib/email-center/api/template.js +0 -14
  527. package/dist/lib/email-center/components/form.css +0 -14
  528. package/dist/lib/email-center/components/form.vue.js +0 -14
  529. package/dist/lib/email-center/components/form2.css +0 -14
  530. package/dist/lib/email-center/components/grid.css +0 -14
  531. package/dist/lib/email-center/components/grid.vue.js +0 -14
  532. package/dist/lib/email-center/components/grid2.css +0 -14
  533. package/dist/lib/file-flow/DownloadCenter/index.js +0 -14
  534. package/dist/lib/file-flow/DownloadCenter/src/components/progress.css +0 -14
  535. package/dist/lib/file-flow/DownloadCenter/src/components/progress.vue.js +0 -14
  536. package/dist/lib/file-flow/DownloadCenter/src/components/progress2.css +0 -14
  537. package/dist/lib/file-flow/DownloadCenter/src/config/columns.js +0 -14
  538. package/dist/lib/file-flow/DownloadCenter/src/config/filters.js +0 -14
  539. package/dist/lib/file-flow/DownloadCenter/src/config/logColumns.js +0 -14
  540. package/dist/lib/file-flow/DownloadCenter/src/config/schema.js +0 -14
  541. package/dist/lib/file-flow/DownloadCenter/src/index.css +0 -14
  542. package/dist/lib/file-flow/DownloadCenter/src/index.vue.js +0 -14
  543. package/dist/lib/file-flow/DownloadCenter/src/index2.css +0 -14
  544. package/dist/lib/file-flow/UploadButton/index.js +0 -14
  545. package/dist/lib/file-flow/UploadButton/src/component/upload.css +0 -14
  546. package/dist/lib/file-flow/UploadButton/src/component/upload.vue.js +0 -14
  547. package/dist/lib/file-flow/UploadButton/src/composables/useUploadFile.js +0 -14
  548. package/dist/lib/file-flow/UploadButton/src/index.css +0 -14
  549. package/dist/lib/file-flow/UploadButton/src/index.vue.js +0 -14
  550. package/dist/lib/file-flow/UploadCenter/index.js +0 -14
  551. package/dist/lib/file-flow/UploadCenter/src/config/columns.js +0 -14
  552. package/dist/lib/file-flow/UploadCenter/src/config/filters.js +0 -14
  553. package/dist/lib/file-flow/UploadCenter/src/config/logColumns.js +0 -14
  554. package/dist/lib/file-flow/UploadCenter/src/config/schema.js +0 -14
  555. package/dist/lib/file-flow/UploadCenter/src/config/statusColumns.js +0 -14
  556. package/dist/lib/file-flow/UploadCenter/src/index.css +0 -14
  557. package/dist/lib/file-flow/UploadCenter/src/index.vue.js +0 -14
  558. package/dist/lib/file-flow/UploadCenter/src/index2.css +0 -14
  559. package/dist/lib/file-flow/UploadCenter/src/index3.css +0 -14
  560. package/dist/lib/file-flow/api/downloadCenter.js +0 -14
  561. package/dist/lib/file-flow/api/uploadButton.js +0 -14
  562. package/dist/lib/file-flow/api/uploadCenter.js +0 -14
  563. package/dist/lib/file-flow/components/InterruptModal.css +0 -14
  564. package/dist/lib/file-flow/components/InterruptModal.vue.js +0 -14
  565. package/dist/lib/hooks/useLocale.js +0 -14
  566. package/dist/lib/index.js +0 -14
  567. package/dist/lib/locale/index.js +0 -14
  568. package/dist/lib/locale/lang/en-US.js +0 -14
  569. package/dist/lib/locale/lang/ja-JP.js +0 -14
  570. package/dist/lib/locale/lang/zh-CN.js +0 -14
  571. package/dist/lib/node_modules/@vueuse/core/dist/index.js +0 -14
  572. package/dist/lib/node_modules/@vueuse/shared/dist/index.js +0 -14
  573. package/dist/lib/node_modules/lodash-es/_Hash.js +0 -14
  574. package/dist/lib/node_modules/lodash-es/_ListCache.js +0 -14
  575. package/dist/lib/node_modules/lodash-es/_Map.js +0 -14
  576. package/dist/lib/node_modules/lodash-es/_MapCache.js +0 -14
  577. package/dist/lib/node_modules/lodash-es/_Symbol.js +0 -14
  578. package/dist/lib/node_modules/lodash-es/_apply.js +0 -14
  579. package/dist/lib/node_modules/lodash-es/_arrayMap.js +0 -14
  580. package/dist/lib/node_modules/lodash-es/_arrayPush.js +0 -14
  581. package/dist/lib/node_modules/lodash-es/_assignValue.js +0 -14
  582. package/dist/lib/node_modules/lodash-es/_assocIndexOf.js +0 -14
  583. package/dist/lib/node_modules/lodash-es/_baseAssignValue.js +0 -14
  584. package/dist/lib/node_modules/lodash-es/_baseFlatten.js +0 -14
  585. package/dist/lib/node_modules/lodash-es/_baseGet.js +0 -14
  586. package/dist/lib/node_modules/lodash-es/_baseGetTag.js +0 -14
  587. package/dist/lib/node_modules/lodash-es/_baseHasIn.js +0 -14
  588. package/dist/lib/node_modules/lodash-es/_baseIsArguments.js +0 -14
  589. package/dist/lib/node_modules/lodash-es/_baseIsNative.js +0 -14
  590. package/dist/lib/node_modules/lodash-es/_basePick.js +0 -14
  591. package/dist/lib/node_modules/lodash-es/_basePickBy.js +0 -14
  592. package/dist/lib/node_modules/lodash-es/_baseSet.js +0 -14
  593. package/dist/lib/node_modules/lodash-es/_baseSetToString.js +0 -14
  594. package/dist/lib/node_modules/lodash-es/_baseToString.js +0 -14
  595. package/dist/lib/node_modules/lodash-es/_castPath.js +0 -14
  596. package/dist/lib/node_modules/lodash-es/_coreJsData.js +0 -14
  597. package/dist/lib/node_modules/lodash-es/_defineProperty.js +0 -14
  598. package/dist/lib/node_modules/lodash-es/_flatRest.js +0 -14
  599. package/dist/lib/node_modules/lodash-es/_freeGlobal.js +0 -14
  600. package/dist/lib/node_modules/lodash-es/_getMapData.js +0 -14
  601. package/dist/lib/node_modules/lodash-es/_getNative.js +0 -14
  602. package/dist/lib/node_modules/lodash-es/_getRawTag.js +0 -14
  603. package/dist/lib/node_modules/lodash-es/_getValue.js +0 -14
  604. package/dist/lib/node_modules/lodash-es/_hasPath.js +0 -14
  605. package/dist/lib/node_modules/lodash-es/_hashClear.js +0 -14
  606. package/dist/lib/node_modules/lodash-es/_hashDelete.js +0 -14
  607. package/dist/lib/node_modules/lodash-es/_hashGet.js +0 -14
  608. package/dist/lib/node_modules/lodash-es/_hashHas.js +0 -14
  609. package/dist/lib/node_modules/lodash-es/_hashSet.js +0 -14
  610. package/dist/lib/node_modules/lodash-es/_isFlattenable.js +0 -14
  611. package/dist/lib/node_modules/lodash-es/_isIndex.js +0 -14
  612. package/dist/lib/node_modules/lodash-es/_isKey.js +0 -14
  613. package/dist/lib/node_modules/lodash-es/_isKeyable.js +0 -14
  614. package/dist/lib/node_modules/lodash-es/_isMasked.js +0 -14
  615. package/dist/lib/node_modules/lodash-es/_listCacheClear.js +0 -14
  616. package/dist/lib/node_modules/lodash-es/_listCacheDelete.js +0 -14
  617. package/dist/lib/node_modules/lodash-es/_listCacheGet.js +0 -14
  618. package/dist/lib/node_modules/lodash-es/_listCacheHas.js +0 -14
  619. package/dist/lib/node_modules/lodash-es/_listCacheSet.js +0 -14
  620. package/dist/lib/node_modules/lodash-es/_mapCacheClear.js +0 -14
  621. package/dist/lib/node_modules/lodash-es/_mapCacheDelete.js +0 -14
  622. package/dist/lib/node_modules/lodash-es/_mapCacheGet.js +0 -14
  623. package/dist/lib/node_modules/lodash-es/_mapCacheHas.js +0 -14
  624. package/dist/lib/node_modules/lodash-es/_mapCacheSet.js +0 -14
  625. package/dist/lib/node_modules/lodash-es/_memoizeCapped.js +0 -14
  626. package/dist/lib/node_modules/lodash-es/_nativeCreate.js +0 -14
  627. package/dist/lib/node_modules/lodash-es/_objectToString.js +0 -14
  628. package/dist/lib/node_modules/lodash-es/_overRest.js +0 -14
  629. package/dist/lib/node_modules/lodash-es/_root.js +0 -14
  630. package/dist/lib/node_modules/lodash-es/_setToString.js +0 -14
  631. package/dist/lib/node_modules/lodash-es/_shortOut.js +0 -14
  632. package/dist/lib/node_modules/lodash-es/_stringToPath.js +0 -14
  633. package/dist/lib/node_modules/lodash-es/_toKey.js +0 -14
  634. package/dist/lib/node_modules/lodash-es/_toSource.js +0 -14
  635. package/dist/lib/node_modules/lodash-es/constant.js +0 -14
  636. package/dist/lib/node_modules/lodash-es/eq.js +0 -14
  637. package/dist/lib/node_modules/lodash-es/flatten.js +0 -14
  638. package/dist/lib/node_modules/lodash-es/get.js +0 -14
  639. package/dist/lib/node_modules/lodash-es/hasIn.js +0 -14
  640. package/dist/lib/node_modules/lodash-es/identity.js +0 -14
  641. package/dist/lib/node_modules/lodash-es/isArguments.js +0 -14
  642. package/dist/lib/node_modules/lodash-es/isArray.js +0 -14
  643. package/dist/lib/node_modules/lodash-es/isFunction.js +0 -14
  644. package/dist/lib/node_modules/lodash-es/isLength.js +0 -14
  645. package/dist/lib/node_modules/lodash-es/isObject.js +0 -14
  646. package/dist/lib/node_modules/lodash-es/isObjectLike.js +0 -14
  647. package/dist/lib/node_modules/lodash-es/isSymbol.js +0 -14
  648. package/dist/lib/node_modules/lodash-es/memoize.js +0 -14
  649. package/dist/lib/node_modules/lodash-es/pick.js +0 -14
  650. package/dist/lib/node_modules/lodash-es/toString.js +0 -14
  651. package/dist/lib/node_modules/path-to-regexp/dist/index.js +0 -14
  652. package/dist/lib/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js +0 -14
  653. package/dist/lib/node_modules/sortablejs/modular/sortable.esm.js +0 -14
  654. package/dist/lib/node_modules/title-case/dist/index.js +0 -14
  655. package/dist/lib/packages/components/dist/es/Button/index.js +0 -14
  656. package/dist/lib/packages/components/dist/es/Button/src/Button.css +0 -14
  657. package/dist/lib/packages/components/dist/es/Button/src/Button.vue.js +0 -14
  658. package/dist/lib/packages/components/dist/es/Button/src/Button2.css +0 -14
  659. package/dist/lib/packages/components/dist/es/ConfigProvider/index.js +0 -14
  660. package/dist/lib/packages/components/dist/es/ConfigProvider/src/configProvider.js +0 -14
  661. package/dist/lib/packages/components/dist/es/ConfigProvider/src/configProviderProps.js +0 -14
  662. package/dist/lib/packages/components/dist/es/ConfigProvider/src/constants.js +0 -14
  663. package/dist/lib/packages/components/dist/es/ConfigProvider/src/useGlobalConfig.js +0 -14
  664. package/dist/lib/packages/components/dist/es/Form/index.js +0 -14
  665. package/dist/lib/packages/components/dist/es/Form/src/Form.css +0 -14
  666. package/dist/lib/packages/components/dist/es/Form/src/Form.vue.js +0 -14
  667. package/dist/lib/packages/components/dist/es/Form/src/Form2.css +0 -14
  668. package/dist/lib/packages/components/dist/es/Form/src/styles/form.css +0 -14
  669. package/dist/lib/packages/components/dist/es/Overlay/src/Modal.css +0 -14
  670. package/dist/lib/packages/components/dist/es/Overlay/src/Modal.vue.js +0 -14
  671. package/dist/lib/packages/components/dist/es/Overlay/src/Modal2.css +0 -14
  672. package/dist/lib/packages/components/dist/es/RichTextEditor/index.js +0 -14
  673. package/dist/lib/packages/components/dist/es/RichTextEditor/src/ToolbarPanel.css +0 -14
  674. package/dist/lib/packages/components/dist/es/RichTextEditor/src/ToolbarPanel.vue.js +0 -14
  675. package/dist/lib/packages/components/dist/es/RichTextEditor/src/ToolbarPanel2.css +0 -14
  676. package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/BlockquoteButton.css +0 -14
  677. package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/BlockquoteButton.vue.js +0 -14
  678. package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/CodeBlockButton.css +0 -14
  679. package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/CodeBlockButton.vue.js +0 -14
  680. package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/ColorHighlightPopover.css +0 -14
  681. package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/ColorHighlightPopover.vue.js +0 -14
  682. package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/FontSizeDropdownMenu.css +0 -14
  683. package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/FontSizeDropdownMenu.vue.js +0 -14
  684. package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/HeadingDropdownMenu.css +0 -14
  685. package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/HeadingDropdownMenu.vue.js +0 -14
  686. package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/ImageUploadButton.css +0 -14
  687. package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/ImageUploadButton.vue.js +0 -14
  688. package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/LinkPopover.css +0 -14
  689. package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/LinkPopover.vue.js +0 -14
  690. package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/LinkPopover2.css +0 -14
  691. package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/ListDropdownMenu.css +0 -14
  692. package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/ListDropdownMenu.vue.js +0 -14
  693. package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/MarkButton.css +0 -14
  694. package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/MarkButton.vue.js +0 -14
  695. package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/TableButton.css +0 -14
  696. package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/TableButton.vue.js +0 -14
  697. package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/TextAlignDropdownMenu.css +0 -14
  698. package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/TextAlignDropdownMenu.vue.js +0 -14
  699. package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/TextColorPopover.css +0 -14
  700. package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/TextColorPopover.vue.js +0 -14
  701. package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/ToolbarGroup.css +0 -14
  702. package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/ToolbarGroup.vue.js +0 -14
  703. package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/ToolbarSeparator.css +0 -14
  704. package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/ToolbarSeparator.vue.js +0 -14
  705. package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/UndoRedoButton.css +0 -14
  706. package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/UndoRedoButton.vue.js +0 -14
  707. package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/VideoUploadButton.css +0 -14
  708. package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/VideoUploadButton.vue.js +0 -14
  709. package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/basic/ColorPicker.css +0 -14
  710. package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/basic/ColorPicker.vue.js +0 -14
  711. package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/basic/MediaUploadModal.css +0 -14
  712. package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/basic/MediaUploadModal.vue.js +0 -14
  713. package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/basic/MediaUploadModal2.css +0 -14
  714. package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/basic/SelectMenu.css +0 -14
  715. package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/basic/SelectMenu.vue.js +0 -14
  716. package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/basic/SelectMenu2.css +0 -14
  717. package/dist/lib/packages/components/dist/es/RichTextEditor/src/constant/index.js +0 -14
  718. package/dist/lib/packages/components/dist/es/RichTextEditor/src/extensions/styledTable.js +0 -14
  719. package/dist/lib/packages/components/dist/es/RichTextEditor/src/extensions/video.js +0 -14
  720. package/dist/lib/packages/components/dist/es/RichTextEditor/src/index.css +0 -14
  721. package/dist/lib/packages/components/dist/es/RichTextEditor/src/index.vue.js +0 -14
  722. package/dist/lib/packages/components/dist/es/RichTextEditor/src/index2.css +0 -14
  723. package/dist/lib/packages/components/dist/es/RichTextEditor/src/props.js +0 -14
  724. package/dist/lib/packages/components/dist/es/_virtual/_plugin-vue_export-helper.js +0 -14
  725. package/dist/lib/packages/components/dist/es/hooks/useLocale.js +0 -14
  726. package/dist/lib/packages/components/dist/es/hooks/useNamespace.js +0 -14
  727. package/dist/lib/packages/components/dist/es/locale/lang/en-US.js +0 -14
  728. package/dist/lib/packages/components/dist/es/locale/lang/ja-JP.js +0 -14
  729. package/dist/lib/packages/components/dist/es/locale/lang/zh-CN.js +0 -14
  730. package/dist/lib/packages/components/dist/es/node_modules/@tanstack/devtools-event-client/dist/esm/plugin.js +0 -14
  731. package/dist/lib/packages/components/dist/es/node_modules/@tanstack/form-core/dist/esm/EventClient.js +0 -14
  732. package/dist/lib/packages/components/dist/es/node_modules/@tanstack/form-core/dist/esm/FieldApi.js +0 -14
  733. package/dist/lib/packages/components/dist/es/node_modules/@tanstack/form-core/dist/esm/FormApi.js +0 -14
  734. package/dist/lib/packages/components/dist/es/node_modules/@tanstack/form-core/dist/esm/ValidationLogic.js +0 -14
  735. package/dist/lib/packages/components/dist/es/node_modules/@tanstack/form-core/dist/esm/metaHelper.js +0 -14
  736. package/dist/lib/packages/components/dist/es/node_modules/@tanstack/form-core/dist/esm/standardSchemaValidator.js +0 -14
  737. package/dist/lib/packages/components/dist/es/node_modules/@tanstack/form-core/dist/esm/utils.js +0 -14
  738. package/dist/lib/packages/components/dist/es/node_modules/@tanstack/pacer-lite/dist/lite-throttler.js +0 -14
  739. package/dist/lib/packages/components/dist/es/node_modules/@tanstack/store/dist/esm/alien.js +0 -14
  740. package/dist/lib/packages/components/dist/es/node_modules/@tanstack/store/dist/esm/atom.js +0 -14
  741. package/dist/lib/packages/components/dist/es/node_modules/@tanstack/store/dist/esm/batch.js +0 -14
  742. package/dist/lib/packages/components/dist/es/node_modules/@tanstack/store/dist/esm/store.js +0 -14
  743. package/dist/lib/packages/components/dist/es/node_modules/@tanstack/vue-form/dist/esm/useField.js +0 -14
  744. package/dist/lib/packages/components/dist/es/node_modules/@tanstack/vue-form/dist/esm/useForm.js +0 -14
  745. package/dist/lib/packages/components/dist/es/node_modules/@tanstack/vue-store/dist/esm/index.js +0 -14
  746. package/dist/lib/packages/components/dist/es/node_modules/@tiptap/core/dist/index.js +0 -106
  747. package/dist/lib/packages/components/dist/es/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.js +0 -14
  748. package/dist/lib/packages/components/dist/es/node_modules/@tiptap/extension-blockquote/dist/index.js +0 -18
  749. package/dist/lib/packages/components/dist/es/node_modules/@tiptap/extension-bold/dist/index.js +0 -14
  750. package/dist/lib/packages/components/dist/es/node_modules/@tiptap/extension-character-count/dist/index.js +0 -14
  751. package/dist/lib/packages/components/dist/es/node_modules/@tiptap/extension-code/dist/index.js +0 -14
  752. package/dist/lib/packages/components/dist/es/node_modules/@tiptap/extension-code-block/dist/index.js +0 -31
  753. package/dist/lib/packages/components/dist/es/node_modules/@tiptap/extension-document/dist/index.js +0 -16
  754. package/dist/lib/packages/components/dist/es/node_modules/@tiptap/extension-hard-break/dist/index.js +0 -16
  755. package/dist/lib/packages/components/dist/es/node_modules/@tiptap/extension-heading/dist/index.js +0 -14
  756. package/dist/lib/packages/components/dist/es/node_modules/@tiptap/extension-horizontal-rule/dist/index.js +0 -14
  757. package/dist/lib/packages/components/dist/es/node_modules/@tiptap/extension-image/dist/index.js +0 -14
  758. package/dist/lib/packages/components/dist/es/node_modules/@tiptap/extension-italic/dist/index.js +0 -14
  759. package/dist/lib/packages/components/dist/es/node_modules/@tiptap/extension-link/dist/index.js +0 -14
  760. package/dist/lib/packages/components/dist/es/node_modules/@tiptap/extension-list/dist/index.js +0 -25
  761. package/dist/lib/packages/components/dist/es/node_modules/@tiptap/extension-paragraph/dist/index.js +0 -14
  762. package/dist/lib/packages/components/dist/es/node_modules/@tiptap/extension-strike/dist/index.js +0 -14
  763. package/dist/lib/packages/components/dist/es/node_modules/@tiptap/extension-subscript/dist/index.js +0 -14
  764. package/dist/lib/packages/components/dist/es/node_modules/@tiptap/extension-superscript/dist/index.js +0 -14
  765. package/dist/lib/packages/components/dist/es/node_modules/@tiptap/extension-table/dist/index.js +0 -18
  766. package/dist/lib/packages/components/dist/es/node_modules/@tiptap/extension-task-item/dist/index.js +0 -14
  767. package/dist/lib/packages/components/dist/es/node_modules/@tiptap/extension-task-list/dist/index.js +0 -14
  768. package/dist/lib/packages/components/dist/es/node_modules/@tiptap/extension-text/dist/index.js +0 -14
  769. package/dist/lib/packages/components/dist/es/node_modules/@tiptap/extension-text-align/dist/index.js +0 -14
  770. package/dist/lib/packages/components/dist/es/node_modules/@tiptap/extension-text-style/dist/index.js +0 -14
  771. package/dist/lib/packages/components/dist/es/node_modules/@tiptap/extension-underline/dist/index.js +0 -14
  772. package/dist/lib/packages/components/dist/es/node_modules/@tiptap/extensions/dist/index.js +0 -14
  773. package/dist/lib/packages/components/dist/es/node_modules/@tiptap/html/dist/index.js +0 -14
  774. package/dist/lib/packages/components/dist/es/node_modules/@tiptap/starter-kit/dist/index.js +0 -14
  775. package/dist/lib/packages/components/dist/es/node_modules/@tiptap/vue-3/dist/index.js +0 -14
  776. package/dist/lib/packages/components/dist/es/node_modules/linkifyjs/dist/linkify.js +0 -18
  777. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_DataView.js +0 -14
  778. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_Hash.js +0 -14
  779. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_ListCache.js +0 -14
  780. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_Map.js +0 -14
  781. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_MapCache.js +0 -14
  782. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_Promise.js +0 -14
  783. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_Set.js +0 -14
  784. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_SetCache.js +0 -14
  785. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_Stack.js +0 -14
  786. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_Symbol.js +0 -14
  787. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_Uint8Array.js +0 -14
  788. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_WeakMap.js +0 -14
  789. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_apply.js +0 -14
  790. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_arrayFilter.js +0 -14
  791. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_arrayIncludes.js +0 -14
  792. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_arrayIncludesWith.js +0 -14
  793. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_arrayLikeKeys.js +0 -14
  794. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_arrayMap.js +0 -14
  795. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_arrayPush.js +0 -14
  796. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_arraySome.js +0 -14
  797. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_assignMergeValue.js +0 -14
  798. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_assignValue.js +0 -14
  799. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_assocIndexOf.js +0 -14
  800. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_baseAssignValue.js +0 -14
  801. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_baseCreate.js +0 -14
  802. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_baseFindIndex.js +0 -14
  803. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_baseFlatten.js +0 -14
  804. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_baseFor.js +0 -14
  805. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_baseGet.js +0 -14
  806. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_baseGetAllKeys.js +0 -14
  807. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_baseGetTag.js +0 -14
  808. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_baseIndexOf.js +0 -14
  809. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_baseIntersection.js +0 -14
  810. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_baseIsArguments.js +0 -14
  811. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_baseIsEqual.js +0 -14
  812. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_baseIsEqualDeep.js +0 -14
  813. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_baseIsNaN.js +0 -14
  814. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_baseIsNative.js +0 -14
  815. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_baseIsTypedArray.js +0 -14
  816. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_baseKeys.js +0 -14
  817. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_baseKeysIn.js +0 -14
  818. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_baseMerge.js +0 -14
  819. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_baseMergeDeep.js +0 -14
  820. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_baseRest.js +0 -14
  821. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_baseSetToString.js +0 -14
  822. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_baseTimes.js +0 -14
  823. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_baseToString.js +0 -14
  824. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_baseUnary.js +0 -14
  825. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_baseUniq.js +0 -14
  826. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_cacheHas.js +0 -14
  827. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_castArrayLikeObject.js +0 -14
  828. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_castPath.js +0 -14
  829. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_cloneArrayBuffer.js +0 -14
  830. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_cloneBuffer.js +0 -14
  831. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_cloneTypedArray.js +0 -14
  832. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_copyArray.js +0 -14
  833. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_copyObject.js +0 -14
  834. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_coreJsData.js +0 -14
  835. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_createAssigner.js +0 -14
  836. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_createBaseFor.js +0 -14
  837. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_createSet.js +0 -14
  838. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_defineProperty.js +0 -14
  839. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_equalArrays.js +0 -14
  840. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_equalByTag.js +0 -14
  841. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_equalObjects.js +0 -14
  842. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_freeGlobal.js +0 -14
  843. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_getAllKeys.js +0 -14
  844. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_getMapData.js +0 -14
  845. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_getNative.js +0 -14
  846. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_getPrototype.js +0 -14
  847. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_getRawTag.js +0 -14
  848. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_getSymbols.js +0 -14
  849. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_getTag.js +0 -14
  850. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_getValue.js +0 -14
  851. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_hashClear.js +0 -14
  852. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_hashDelete.js +0 -14
  853. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_hashGet.js +0 -14
  854. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_hashHas.js +0 -14
  855. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_hashSet.js +0 -14
  856. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_initCloneObject.js +0 -14
  857. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_isFlattenable.js +0 -14
  858. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_isIndex.js +0 -14
  859. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_isIterateeCall.js +0 -14
  860. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_isKey.js +0 -14
  861. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_isKeyable.js +0 -14
  862. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_isMasked.js +0 -14
  863. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_isPrototype.js +0 -14
  864. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_listCacheClear.js +0 -14
  865. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_listCacheDelete.js +0 -14
  866. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_listCacheGet.js +0 -14
  867. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_listCacheHas.js +0 -14
  868. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_listCacheSet.js +0 -14
  869. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_mapCacheClear.js +0 -14
  870. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_mapCacheDelete.js +0 -14
  871. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_mapCacheGet.js +0 -14
  872. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_mapCacheHas.js +0 -14
  873. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_mapCacheSet.js +0 -14
  874. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_mapToArray.js +0 -14
  875. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_memoizeCapped.js +0 -14
  876. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_nativeCreate.js +0 -14
  877. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_nativeKeys.js +0 -14
  878. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_nativeKeysIn.js +0 -14
  879. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_nodeUtil.js +0 -14
  880. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_objectToString.js +0 -14
  881. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_overArg.js +0 -14
  882. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_overRest.js +0 -14
  883. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_root.js +0 -14
  884. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_safeGet.js +0 -14
  885. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_setCacheAdd.js +0 -14
  886. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_setCacheHas.js +0 -14
  887. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_setToArray.js +0 -14
  888. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_setToString.js +0 -14
  889. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_shortOut.js +0 -14
  890. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_stackClear.js +0 -14
  891. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_stackDelete.js +0 -14
  892. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_stackGet.js +0 -14
  893. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_stackHas.js +0 -14
  894. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_stackSet.js +0 -14
  895. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_strictIndexOf.js +0 -14
  896. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_stringToPath.js +0 -14
  897. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_toKey.js +0 -14
  898. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_toSource.js +0 -14
  899. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/constant.js +0 -14
  900. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/eq.js +0 -14
  901. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/get.js +0 -14
  902. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/identity.js +0 -14
  903. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/intersectionWith.js +0 -14
  904. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/isArguments.js +0 -14
  905. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/isArray.js +0 -14
  906. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/isArrayLike.js +0 -14
  907. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/isArrayLikeObject.js +0 -14
  908. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/isBuffer.js +0 -14
  909. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/isEqual.js +0 -14
  910. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/isFunction.js +0 -14
  911. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/isLength.js +0 -14
  912. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/isObject.js +0 -14
  913. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/isObjectLike.js +0 -14
  914. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/isPlainObject.js +0 -14
  915. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/isSymbol.js +0 -14
  916. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/isTypedArray.js +0 -14
  917. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/keys.js +0 -14
  918. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/keysIn.js +0 -14
  919. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/last.js +0 -14
  920. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/memoize.js +0 -14
  921. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/mergeWith.js +0 -14
  922. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/noop.js +0 -14
  923. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/stubArray.js +0 -14
  924. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/stubFalse.js +0 -14
  925. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/toPlainObject.js +0 -14
  926. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/toString.js +0 -14
  927. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/unionWith.js +0 -14
  928. package/dist/lib/packages/components/dist/es/node_modules/orderedmap/dist/index.js +0 -14
  929. package/dist/lib/packages/components/dist/es/node_modules/prosemirror-commands/dist/index.js +0 -15
  930. package/dist/lib/packages/components/dist/es/node_modules/prosemirror-dropcursor/dist/index.js +0 -14
  931. package/dist/lib/packages/components/dist/es/node_modules/prosemirror-gapcursor/dist/index.js +0 -14
  932. package/dist/lib/packages/components/dist/es/node_modules/prosemirror-history/dist/index.js +0 -14
  933. package/dist/lib/packages/components/dist/es/node_modules/prosemirror-keymap/dist/index.js +0 -14
  934. package/dist/lib/packages/components/dist/es/node_modules/prosemirror-model/dist/index.js +0 -17
  935. package/dist/lib/packages/components/dist/es/node_modules/prosemirror-schema-list/dist/index.js +0 -14
  936. package/dist/lib/packages/components/dist/es/node_modules/prosemirror-state/dist/index.js +0 -14
  937. package/dist/lib/packages/components/dist/es/node_modules/prosemirror-tables/dist/index.js +0 -14
  938. package/dist/lib/packages/components/dist/es/node_modules/prosemirror-transform/dist/index.js +0 -15
  939. package/dist/lib/packages/components/dist/es/node_modules/prosemirror-view/dist/index.js +0 -18
  940. package/dist/lib/packages/components/dist/es/node_modules/rope-sequence/dist/index.js +0 -14
  941. package/dist/lib/packages/components/dist/es/node_modules/w3c-keyname/index.js +0 -14
  942. package/dist/lib/packages/components/dist/es/packages/utils/dist/index.js +0 -14
  943. package/dist/lib/packages/components/dist/es/styles/tokens.css +0 -14
  944. package/dist/lib/packages/hooks/dist/index.js +0 -14
  945. package/dist/lib/packages/service-auth/dist/index.js +0 -14
  946. package/dist/lib/packages/shared-service/index.js +0 -14
  947. package/dist/lib/packages/utils/dist/index.js +0 -14
  948. package/dist/lib/utils/request.js +0 -14
  949. package/dist/lib/utils/util.js +0 -14
@@ -1,106 +0,0 @@
1
- /*!
2
- Copyright (c) 2026 Lenovo SSG BASD. All rights reserved.
3
- @license Proprietary
4
-
5
- This software is the confidential and proprietary property of Lenovo SSG BASD.
6
- You shall not disclose such Confidential Information and shall use it only in
7
- accordance with the terms of the license agreement.
8
-
9
- --- Build Info ---
10
- Version: 1.0.5
11
- Build Time: 2026/3/25 14:40:21
12
- Build Commit: 08d26b24db19edd5721d30cc5b166484c7968864
13
- */
14
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const O=require("../../../prosemirror-transform/dist/index.js"),T=require("../../../prosemirror-commands/dist/index.js"),k=require("../../../prosemirror-state/dist/index.js"),$=require("../../../prosemirror-model/dist/index.js"),St=require("../../../prosemirror-schema-list/dist/index.js"),Fe=require("../../../prosemirror-view/dist/index.js"),We=require("../../../prosemirror-keymap/dist/index.js");var Ue=Object.defineProperty,Et=(t,e)=>{for(var n in e)Ue(t,n,{get:e[n],enumerable:!0})};function X(t){const{state:e,transaction:n}=t;let{selection:s}=n,{doc:r}=n,{storedMarks:o}=n;return{...e,apply:e.apply.bind(e),applyTransaction:e.applyTransaction.bind(e),plugins:e.plugins,schema:e.schema,reconfigure:e.reconfigure.bind(e),toJSON:e.toJSON.bind(e),get storedMarks(){return o},get selection(){return s},get doc(){return r},get tr(){return s=n.selection,r=n.doc,o=n.storedMarks,n}}}var Z=class{constructor(t){this.editor=t.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=t.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){const{rawCommands:t,editor:e,state:n}=this,{view:s}=e,{tr:r}=n,o=this.buildProps(r);return Object.fromEntries(Object.entries(t).map(([c,i])=>[c,(...a)=>{const l=i(...a)(o);return!r.getMeta("preventDispatch")&&!this.hasCustomState&&s.dispatch(r),l}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(t,e=!0){const{rawCommands:n,editor:s,state:r}=this,{view:o}=s,c=[],i=!!t,a=t||r.tr,l=()=>(!i&&e&&!a.getMeta("preventDispatch")&&!this.hasCustomState&&o.dispatch(a),c.every(p=>p===!0)),d={...Object.fromEntries(Object.entries(n).map(([p,u])=>[p,(...h)=>{const m=this.buildProps(a,e),f=u(...h)(m);return c.push(f),d}])),run:l};return d}createCan(t){const{rawCommands:e,state:n}=this,s=!1,r=t||n.tr,o=this.buildProps(r,s);return{...Object.fromEntries(Object.entries(e).map(([c,i])=>[c,(...a)=>i(...a)({...o,dispatch:void 0})])),chain:()=>this.createChain(r,s)}}buildProps(t,e=!0){const{rawCommands:n,editor:s,state:r}=this,{view:o}=s,c={tr:t,editor:s,view:o,state:X({state:r,transaction:t}),dispatch:e?()=>{}:void 0,chain:()=>this.createChain(t,e),can:()=>this.createCan(t),get commands(){return Object.fromEntries(Object.entries(n).map(([i,a])=>[i,(...l)=>a(...l)(c)]))}};return c}},Tt={};Et(Tt,{blur:()=>Ke,clearContent:()=>qe,clearNodes:()=>_e,command:()=>Je,createParagraphNear:()=>Ye,cut:()=>Xe,deleteCurrentNode:()=>Ze,deleteNode:()=>Qe,deleteRange:()=>Ge,deleteSelection:()=>tn,enter:()=>en,exitCode:()=>nn,extendMarkRange:()=>sn,first:()=>rn,focus:()=>on,forEach:()=>an,insertContent:()=>cn,insertContentAt:()=>dn,joinBackward:()=>hn,joinDown:()=>pn,joinForward:()=>mn,joinItemBackward:()=>fn,joinItemForward:()=>gn,joinTextblockBackward:()=>yn,joinTextblockForward:()=>vn,joinUp:()=>un,keyboardShortcut:()=>kn,lift:()=>wn,liftEmptyBlock:()=>xn,liftListItem:()=>Mn,newlineInCode:()=>Sn,resetAttributes:()=>En,scrollIntoView:()=>Tn,selectAll:()=>Cn,selectNodeBackward:()=>Pn,selectNodeForward:()=>$n,selectParentNode:()=>On,selectTextblockEnd:()=>An,selectTextblockStart:()=>Rn,setContent:()=>Nn,setMark:()=>Wn,setMeta:()=>Un,setNode:()=>Kn,setNodeSelection:()=>qn,setTextDirection:()=>_n,setTextSelection:()=>Jn,sinkListItem:()=>Yn,splitBlock:()=>Xn,splitListItem:()=>Zn,toggleList:()=>Qn,toggleMark:()=>Gn,toggleNode:()=>ts,toggleWrap:()=>es,undoInputRule:()=>ns,unsetAllMarks:()=>ss,unsetMark:()=>rs,unsetTextDirection:()=>os,updateAttributes:()=>is,wrapIn:()=>as,wrapInList:()=>cs});var Ke=()=>({editor:t,view:e})=>(requestAnimationFrame(()=>{var n;t.isDestroyed||(e.dom.blur(),(n=window?.getSelection())==null||n.removeAllRanges())}),!0),qe=(t=!0)=>({commands:e})=>e.setContent("",{emitUpdate:t}),_e=()=>({state:t,tr:e,dispatch:n})=>{const{selection:s}=e,{ranges:r}=s;return n&&r.forEach(({$from:o,$to:c})=>{t.doc.nodesBetween(o.pos,c.pos,(i,a)=>{if(i.type.isText)return;const{doc:l,mapping:d}=e,p=l.resolve(d.map(a)),u=l.resolve(d.map(a+i.nodeSize)),h=p.blockRange(u);if(!h)return;const m=O.liftTarget(h);if(i.type.isTextblock){const{defaultType:f}=p.parent.contentMatchAt(p.index());e.setNodeMarkup(h.start,f)}(m||m===0)&&e.lift(h,m)})}),!0},Je=t=>e=>t(e),Ye=()=>({state:t,dispatch:e})=>T.createParagraphNear(t,e),Xe=(t,e)=>({editor:n,tr:s})=>{const{state:r}=n,o=r.doc.slice(t.from,t.to);s.deleteRange(t.from,t.to);const c=s.mapping.map(e);return s.insert(c,o.content),s.setSelection(new k.TextSelection(s.doc.resolve(Math.max(c-1,0)))),!0},Ze=()=>({tr:t,dispatch:e})=>{const{selection:n}=t,s=n.$anchor.node();if(s.content.size>0)return!1;const r=t.selection.$anchor;for(let o=r.depth;o>0;o-=1)if(r.node(o).type===s.type){if(e){const c=r.before(o),i=r.after(o);t.delete(c,i).scrollIntoView()}return!0}return!1};function C(t,e){if(typeof t=="string"){if(!e.nodes[t])throw Error(`There is no node type named '${t}'. Maybe you forgot to add the extension?`);return e.nodes[t]}return t}var Qe=t=>({tr:e,state:n,dispatch:s})=>{const r=C(t,n.schema),o=e.selection.$anchor;for(let c=o.depth;c>0;c-=1)if(o.node(c).type===r){if(s){const i=o.before(c),a=o.after(c);e.delete(i,a).scrollIntoView()}return!0}return!1},Ge=t=>({tr:e,dispatch:n})=>{const{from:s,to:r}=t;return n&&e.delete(s,r),!0},tn=()=>({state:t,dispatch:e})=>T.deleteSelection(t,e),en=()=>({commands:t})=>t.keyboardShortcut("Enter"),nn=()=>({state:t,dispatch:e})=>T.exitCode(t,e);function it(t){return Object.prototype.toString.call(t)==="[object RegExp]"}function _(t,e,n={strict:!0}){const s=Object.keys(e);return s.length?s.every(r=>n.strict?e[r]===t[r]:it(e[r])?e[r].test(t[r]):e[r]===t[r]):!0}function Kt(t,e,n={}){return t.find(s=>s.type===e&&_(Object.fromEntries(Object.keys(n).map(r=>[r,s.attrs[r]])),n))}function Lt(t,e,n={}){return!!Kt(t,e,n)}function at(t,e,n){var s;if(!t||!e)return;let r=t.parent.childAfter(t.parentOffset);if((!r.node||!r.node.marks.some(l=>l.type===e))&&(r=t.parent.childBefore(t.parentOffset)),!r.node||!r.node.marks.some(l=>l.type===e)||(n=n||((s=r.node.marks[0])==null?void 0:s.attrs),!Kt([...r.node.marks],e,n)))return;let o=r.index,c=t.start()+r.offset,i=o+1,a=c+r.node.nodeSize;for(;o>0&&Lt([...t.parent.child(o-1).marks],e,n);)o-=1,c-=t.parent.child(o).nodeSize;for(;i<t.parent.childCount&&Lt([...t.parent.child(i).marks],e,n);)a+=t.parent.child(i).nodeSize,i+=1;return{from:c,to:a}}function N(t,e){if(typeof t=="string"){if(!e.marks[t])throw Error(`There is no mark type named '${t}'. Maybe you forgot to add the extension?`);return e.marks[t]}return t}var sn=(t,e={})=>({tr:n,state:s,dispatch:r})=>{const o=N(t,s.schema),{doc:c,selection:i}=n,{$from:a,from:l,to:d}=i;if(r){const p=at(a,o,e);if(p&&p.from<=l&&p.to>=d){const u=k.TextSelection.create(c,p.from,p.to);n.setSelection(u)}}return!0},rn=t=>e=>{const n=typeof t=="function"?t(e):t;for(let s=0;s<n.length;s+=1)if(n[s](e))return!0;return!1};function Ct(t){return t instanceof k.TextSelection}function D(t=0,e=0,n=0){return Math.min(Math.max(t,e),n)}function Pt(t,e=null){if(!e)return null;const n=k.Selection.atStart(t),s=k.Selection.atEnd(t);if(e==="start"||e===!0)return n;if(e==="end")return s;const r=n.from,o=s.to;return e==="all"?k.TextSelection.create(t,D(0,r,o),D(t.content.size,r,o)):k.TextSelection.create(t,D(e,r,o),D(e,r,o))}function bt(){return navigator.platform==="Android"||/android/i.test(navigator.userAgent)}function J(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}function qt(){return typeof navigator<"u"?/^((?!chrome|android).)*safari/i.test(navigator.userAgent):!1}var on=(t=null,e={})=>({editor:n,view:s,tr:r,dispatch:o})=>{e={scrollIntoView:!0,...e};const c=()=>{(J()||bt())&&s.dom.focus(),qt()&&!J()&&!bt()&&s.dom.focus({preventScroll:!0}),requestAnimationFrame(()=>{n.isDestroyed||(s.focus(),e?.scrollIntoView&&n.commands.scrollIntoView())})};try{if(s.hasFocus()&&t===null||t===!1)return!0}catch{return!1}if(o&&t===null&&!Ct(n.state.selection))return c(),!0;const i=Pt(r.doc,t)||n.state.selection,a=n.state.selection.eq(i);return o&&(a||r.setSelection(i),a&&r.storedMarks&&r.setStoredMarks(r.storedMarks),c()),!0},an=(t,e)=>n=>t.every((s,r)=>e(s,{...n,index:r})),cn=(t,e)=>({tr:n,commands:s})=>s.insertContentAt({from:n.selection.from,to:n.selection.to},t,e),_t=t=>{const e=t.childNodes;for(let n=e.length-1;n>=0;n-=1){const s=e[n];s.nodeType===3&&s.nodeValue&&/^(\n\s\s|\n)$/.test(s.nodeValue)?t.removeChild(s):s.nodeType===1&&_t(s)}return t};function W(t){if(typeof window>"u")throw new Error("[tiptap error]: there is no window object available, so this function cannot be used");const e=`<body>${t}</body>`,n=new window.DOMParser().parseFromString(e,"text/html").body;return _t(n)}function V(t,e,n){if(t instanceof $.Node||t instanceof $.Fragment)return t;n={slice:!0,parseOptions:{},...n};const s=typeof t=="object"&&t!==null,r=typeof t=="string";if(s)try{if(Array.isArray(t)&&t.length>0)return $.Fragment.fromArray(t.map(c=>e.nodeFromJSON(c)));const o=e.nodeFromJSON(t);return n.errorOnInvalidContent&&o.check(),o}catch(o){if(n.errorOnInvalidContent)throw new Error("[tiptap error]: Invalid JSON content",{cause:o});return console.warn("[tiptap warn]: Invalid content.","Passed value:",t,"Error:",o),V("",e,n)}if(r){if(n.errorOnInvalidContent){let c=!1,i="";const a=new $.Schema({topNode:e.spec.topNode,marks:e.spec.marks,nodes:e.spec.nodes.append({__tiptap__private__unknown__catch__all__node:{content:"inline*",group:"block",parseDOM:[{tag:"*",getAttrs:l=>(c=!0,i=typeof l=="string"?l:l.outerHTML,null)}]}})});if(n.slice?$.DOMParser.fromSchema(a).parseSlice(W(t),n.parseOptions):$.DOMParser.fromSchema(a).parse(W(t),n.parseOptions),n.errorOnInvalidContent&&c)throw new Error("[tiptap error]: Invalid HTML content",{cause:new Error(`Invalid element found: ${i}`)})}const o=$.DOMParser.fromSchema(e);return n.slice?o.parseSlice(W(t),n.parseOptions).content:o.parse(W(t),n.parseOptions)}return V("",e,n)}function Jt(t,e,n){const s=t.steps.length-1;if(s<e)return;const r=t.steps[s];if(!(r instanceof O.ReplaceStep||r instanceof O.ReplaceAroundStep))return;const o=t.mapping.maps[s];let c=0;o.forEach((i,a,l,d)=>{c===0&&(c=d)}),t.setSelection(k.Selection.near(t.doc.resolve(c),n))}var ln=t=>!("type"in t),dn=(t,e,n)=>({tr:s,dispatch:r,editor:o})=>{var c;if(r){n={parseOptions:o.options.parseOptions,updateSelection:!0,applyInputRules:!1,applyPasteRules:!1,...n};let i;const a=f=>{o.emit("contentError",{editor:o,error:f,disableCollaboration:()=>{"collaboration"in o.storage&&typeof o.storage.collaboration=="object"&&o.storage.collaboration&&(o.storage.collaboration.isDisabled=!0)}})},l={preserveWhitespace:"full",...n.parseOptions};if(!n.errorOnInvalidContent&&!o.options.enableContentCheck&&o.options.emitContentError)try{V(e,o.schema,{parseOptions:l,errorOnInvalidContent:!0})}catch(f){a(f)}try{i=V(e,o.schema,{parseOptions:l,errorOnInvalidContent:(c=n.errorOnInvalidContent)!=null?c:o.options.enableContentCheck})}catch(f){return a(f),!1}let{from:d,to:p}=typeof t=="number"?{from:t,to:t}:{from:t.from,to:t.to},u=!0,h=!0;if((ln(i)?i:[i]).forEach(f=>{f.check(),u=u?f.isText&&f.marks.length===0:!1,h=h?f.isBlock:!1}),d===p&&h){const{parent:f}=s.doc.resolve(d);f.isTextblock&&!f.type.spec.code&&!f.childCount&&(d-=1,p+=1)}let m;if(u){if(Array.isArray(e))m=e.map(f=>f.text||"").join("");else if(e instanceof $.Fragment){let f="";e.forEach(g=>{g.text&&(f+=g.text)}),m=f}else typeof e=="object"&&e&&e.text?m=e.text:m=e;s.insertText(m,d,p)}else{m=i;const f=s.doc.resolve(d),g=f.node(),y=f.parentOffset===0,b=g.isText||g.isTextblock,x=g.content.size>0;y&&b&&x&&(d=Math.max(0,d-1)),s.replaceWith(d,p,m)}n.updateSelection&&Jt(s,s.steps.length-1,-1),n.applyInputRules&&s.setMeta("applyInputRules",{from:d,text:m}),n.applyPasteRules&&s.setMeta("applyPasteRules",{from:d,text:m})}return!0},un=()=>({state:t,dispatch:e})=>T.joinUp(t,e),pn=()=>({state:t,dispatch:e})=>T.joinDown(t,e),hn=()=>({state:t,dispatch:e})=>T.joinBackward(t,e),mn=()=>({state:t,dispatch:e})=>T.joinForward(t,e),fn=()=>({state:t,dispatch:e,tr:n})=>{try{const s=O.joinPoint(t.doc,t.selection.$from.pos,-1);return s==null?!1:(n.join(s,2),e&&e(n),!0)}catch{return!1}},gn=()=>({state:t,dispatch:e,tr:n})=>{try{const s=O.joinPoint(t.doc,t.selection.$from.pos,1);return s==null?!1:(n.join(s,2),e&&e(n),!0)}catch{return!1}},yn=()=>({state:t,dispatch:e})=>T.joinTextblockBackward(t,e),vn=()=>({state:t,dispatch:e})=>T.joinTextblockForward(t,e);function $t(){return typeof navigator<"u"?/Mac/.test(navigator.platform):!1}function bn(t){const e=t.split(/-(?!$)/);let n=e[e.length-1];n==="Space"&&(n=" ");let s,r,o,c;for(let i=0;i<e.length-1;i+=1){const a=e[i];if(/^(cmd|meta|m)$/i.test(a))c=!0;else if(/^a(lt)?$/i.test(a))s=!0;else if(/^(c|ctrl|control)$/i.test(a))r=!0;else if(/^s(hift)?$/i.test(a))o=!0;else if(/^mod$/i.test(a))J()||$t()?c=!0:r=!0;else throw new Error(`Unrecognized modifier name: ${a}`)}return s&&(n=`Alt-${n}`),r&&(n=`Ctrl-${n}`),c&&(n=`Meta-${n}`),o&&(n=`Shift-${n}`),n}var kn=t=>({editor:e,view:n,tr:s,dispatch:r})=>{const o=bn(t).split(/-(?!$)/),c=o.find(l=>!["Alt","Ctrl","Meta","Shift"].includes(l)),i=new KeyboardEvent("keydown",{key:c==="Space"?" ":c,altKey:o.includes("Alt"),ctrlKey:o.includes("Ctrl"),metaKey:o.includes("Meta"),shiftKey:o.includes("Shift"),bubbles:!0,cancelable:!0});return e.captureTransaction(()=>{n.someProp("handleKeyDown",l=>l(n,i))})?.steps.forEach(l=>{const d=l.map(s.mapping);d&&r&&s.maybeStep(d)}),!0};function F(t,e,n={}){const{from:s,to:r,empty:o}=t.selection,c=e?C(e,t.schema):null,i=[];t.doc.nodesBetween(s,r,(d,p)=>{if(d.isText)return;const u=Math.max(s,p),h=Math.min(r,p+d.nodeSize);i.push({node:d,from:u,to:h})});const a=r-s,l=i.filter(d=>c?c.name===d.node.type.name:!0).filter(d=>_(d.node.attrs,n,{strict:!1}));return o?!!l.length:l.reduce((d,p)=>d+p.to-p.from,0)>=a}var wn=(t,e={})=>({state:n,dispatch:s})=>{const r=C(t,n.schema);return F(n,r,e)?T.lift(n,s):!1},xn=()=>({state:t,dispatch:e})=>T.liftEmptyBlock(t,e),Mn=t=>({state:e,dispatch:n})=>{const s=C(t,e.schema);return St.liftListItem(s)(e,n)},Sn=()=>({state:t,dispatch:e})=>T.newlineInCode(t,e);function Q(t,e){return e.nodes[t]?"node":e.marks[t]?"mark":null}function kt(t,e){const n=typeof e=="string"?[e]:e;return Object.keys(t).reduce((s,r)=>(n.includes(r)||(s[r]=t[r]),s),{})}var En=(t,e)=>({tr:n,state:s,dispatch:r})=>{let o=null,c=null;const i=Q(typeof t=="string"?t:t.name,s.schema);if(!i)return!1;i==="node"&&(o=C(t,s.schema)),i==="mark"&&(c=N(t,s.schema));let a=!1;return n.selection.ranges.forEach(l=>{s.doc.nodesBetween(l.$from.pos,l.$to.pos,(d,p)=>{o&&o===d.type&&(a=!0,r&&n.setNodeMarkup(p,void 0,kt(d.attrs,e))),c&&d.marks.length&&d.marks.forEach(u=>{c===u.type&&(a=!0,r&&n.addMark(p,p+d.nodeSize,c.create(kt(u.attrs,e))))})})}),a},Tn=()=>({tr:t,dispatch:e})=>(e&&t.scrollIntoView(),!0),Cn=()=>({tr:t,dispatch:e})=>{if(e){const n=new k.AllSelection(t.doc);t.setSelection(n)}return!0},Pn=()=>({state:t,dispatch:e})=>T.selectNodeBackward(t,e),$n=()=>({state:t,dispatch:e})=>T.selectNodeForward(t,e),On=()=>({state:t,dispatch:e})=>T.selectParentNode(t,e),An=()=>({state:t,dispatch:e})=>T.selectTextblockEnd(t,e),Rn=()=>({state:t,dispatch:e})=>T.selectTextblockStart(t,e);function rt(t,e,n={},s={}){return V(t,e,{slice:!1,parseOptions:n,errorOnInvalidContent:s.errorOnInvalidContent})}var Nn=(t,{errorOnInvalidContent:e,emitUpdate:n=!0,parseOptions:s={}}={})=>({editor:r,tr:o,dispatch:c,commands:i})=>{const{doc:a}=o;if(s.preserveWhitespace!=="full"){const l=rt(t,r.schema,s,{errorOnInvalidContent:e??r.options.enableContentCheck});return c&&o.replaceWith(0,a.content.size,l).setMeta("preventUpdate",!n),!0}return c&&o.setMeta("preventUpdate",!n),i.insertContentAt({from:0,to:a.content.size},t,{parseOptions:s,errorOnInvalidContent:e??r.options.enableContentCheck})};function Ot(t,e){const n=N(e,t.schema),{from:s,to:r,empty:o}=t.selection,c=[];o?(t.storedMarks&&c.push(...t.storedMarks),c.push(...t.selection.$head.marks())):t.doc.nodesBetween(s,r,a=>{c.push(...a.marks)});const i=c.find(a=>a.type.name===n.name);return i?{...i.attrs}:{}}function Yt(t,e){const n=new O.Transform(t);return e.forEach(s=>{s.steps.forEach(r=>{n.step(r)})}),n}function Xt(t){for(let e=0;e<t.edgeCount;e+=1){const{type:n}=t.edge(e);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}function zn(t,e,n){const s=[];return t.nodesBetween(e.from,e.to,(r,o)=>{n(r)&&s.push({node:r,pos:o})}),s}function Zt(t,e){for(let n=t.depth;n>0;n-=1){const s=t.node(n);if(e(s))return{pos:n>0?t.before(n):0,start:t.start(n),depth:n,node:s}}}function G(t){return e=>Zt(e.$from,t)}function v(t,e,n){return t.config[e]===void 0&&t.parent?v(t.parent,e,n):typeof t.config[e]=="function"?t.config[e].bind({...n,parent:t.parent?v(t.parent,e,n):null}):t.config[e]}function ct(t){return t.map(e=>{const n={name:e.name,options:e.options,storage:e.storage},s=v(e,"addExtensions",n);return s?[e,...ct(s())]:e}).flat(10)}function lt(t,e){const n=$.DOMSerializer.fromSchema(e).serializeFragment(t),s=document.implementation.createHTMLDocument().createElement("div");return s.appendChild(n),s.innerHTML}function At(t){return typeof t=="function"}function S(t,e=void 0,...n){return At(t)?e?t.bind(e)(...n):t(...n):t}function Qt(t={}){return Object.keys(t).length===0&&t.constructor===Object}function B(t){const e=t.filter(r=>r.type==="extension"),n=t.filter(r=>r.type==="node"),s=t.filter(r=>r.type==="mark");return{baseExtensions:e,nodeExtensions:n,markExtensions:s}}function Rt(t){const e=[],{nodeExtensions:n,markExtensions:s}=B(t),r=[...n,...s],o={default:null,validate:void 0,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1},c=n.filter(l=>l.name!=="text").map(l=>l.name),i=s.map(l=>l.name),a=[...c,...i];return t.forEach(l=>{const d={name:l.name,options:l.options,storage:l.storage,extensions:r},p=v(l,"addGlobalAttributes",d);p&&p().forEach(u=>{let h;Array.isArray(u.types)?h=u.types:u.types==="*"?h=a:u.types==="nodes"?h=c:u.types==="marks"?h=i:h=[],h.forEach(m=>{Object.entries(u.attributes).forEach(([f,g])=>{e.push({type:m,name:f,attribute:{...o,...g}})})})})}),r.forEach(l=>{const d={name:l.name,options:l.options,storage:l.storage},p=v(l,"addAttributes",d);if(!p)return;const u=p();Object.entries(u).forEach(([h,m])=>{const f={...o,...m};typeof f?.default=="function"&&(f.default=f.default()),f?.isRequired&&f?.default===void 0&&delete f.default,e.push({type:l.name,name:h,attribute:f})})}),e}function jn(t){const e=[];let n="",s=!1,r=!1,o=0;const c=t.length;for(let i=0;i<c;i+=1){const a=t[i];if(a==="'"&&!r){s=!s,n+=a;continue}if(a==='"'&&!s){r=!r,n+=a;continue}if(!s&&!r){if(a==="("){o+=1,n+=a;continue}if(a===")"&&o>0){o-=1,n+=a;continue}if(a===";"&&o===0){e.push(n),n="";continue}}n+=a}return n&&e.push(n),e}function Vt(t){const e=[],n=jn(t||""),s=n.length;for(let r=0;r<s;r+=1){const o=n[r],c=o.indexOf(":");if(c===-1)continue;const i=o.slice(0,c).trim(),a=o.slice(c+1).trim();i&&a&&e.push([i,a])}return e}function Gt(...t){return t.filter(e=>!!e).reduce((e,n)=>{const s={...e};return Object.entries(n).forEach(([r,o])=>{if(!s[r]){s[r]=o;return}if(r==="class"){const c=o?String(o).split(" "):[],i=s[r]?s[r].split(" "):[],a=c.filter(l=>!i.includes(l));s[r]=[...i,...a].join(" ")}else if(r==="style"){const c=new Map([...Vt(s[r]),...Vt(o)]);s[r]=Array.from(c.entries()).map(([i,a])=>`${i}: ${a}`).join("; ")}else s[r]=o}),s},{})}function Y(t,e){return e.filter(n=>n.type===t.type.name).filter(n=>n.attribute.rendered).map(n=>n.attribute.renderHTML?n.attribute.renderHTML(t.attrs)||{}:{[n.name]:t.attrs[n.name]}).reduce((n,s)=>Gt(n,s),{})}function te(t){return typeof t!="string"?t:t.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(t):t==="true"?!0:t==="false"?!1:t}function wt(t,e){return"style"in t?t:{...t,getAttrs:n=>{const s=t.getAttrs?t.getAttrs(n):t.attrs;if(s===!1)return!1;const r=e.reduce((o,c)=>{const i=c.attribute.parseHTML?c.attribute.parseHTML(n):te(n.getAttribute(c.name));return i==null?o:{...o,[c.name]:i}},{});return{...s,...r}}}}function Ft(t){return Object.fromEntries(Object.entries(t).filter(([e,n])=>e==="attrs"&&Qt(n)?!1:n!=null))}function Wt(t){var e,n;const s={};return!((e=t?.attribute)!=null&&e.isRequired)&&"default"in(t?.attribute||{})&&(s.default=t.attribute.default),((n=t?.attribute)==null?void 0:n.validate)!==void 0&&(s.validate=t.attribute.validate),[t.name,s]}function Nt(t,e){var n;const s=Rt(t),{nodeExtensions:r,markExtensions:o}=B(t),c=(n=r.find(l=>v(l,"topNode")))==null?void 0:n.name,i=Object.fromEntries(r.map(l=>{const d=s.filter(y=>y.type===l.name),p={name:l.name,options:l.options,storage:l.storage,editor:e},u=t.reduce((y,b)=>{const x=v(b,"extendNodeSchema",p);return{...y,...x?x(l):{}}},{}),h=Ft({...u,content:S(v(l,"content",p)),marks:S(v(l,"marks",p)),group:S(v(l,"group",p)),inline:S(v(l,"inline",p)),atom:S(v(l,"atom",p)),selectable:S(v(l,"selectable",p)),draggable:S(v(l,"draggable",p)),code:S(v(l,"code",p)),whitespace:S(v(l,"whitespace",p)),linebreakReplacement:S(v(l,"linebreakReplacement",p)),defining:S(v(l,"defining",p)),isolating:S(v(l,"isolating",p)),attrs:Object.fromEntries(d.map(Wt))}),m=S(v(l,"parseHTML",p));m&&(h.parseDOM=m.map(y=>wt(y,d)));const f=v(l,"renderHTML",p);f&&(h.toDOM=y=>f({node:y,HTMLAttributes:Y(y,d)}));const g=v(l,"renderText",p);return g&&(h.toText=g),[l.name,h]})),a=Object.fromEntries(o.map(l=>{const d=s.filter(g=>g.type===l.name),p={name:l.name,options:l.options,storage:l.storage,editor:e},u=t.reduce((g,y)=>{const b=v(y,"extendMarkSchema",p);return{...g,...b?b(l):{}}},{}),h=Ft({...u,inclusive:S(v(l,"inclusive",p)),excludes:S(v(l,"excludes",p)),group:S(v(l,"group",p)),spanning:S(v(l,"spanning",p)),code:S(v(l,"code",p)),attrs:Object.fromEntries(d.map(Wt))}),m=S(v(l,"parseHTML",p));m&&(h.parseDOM=m.map(g=>wt(g,d)));const f=v(l,"renderHTML",p);return f&&(h.toDOM=g=>f({mark:g,HTMLAttributes:Y(g,d)})),[l.name,h]}));return new $.Schema({topNode:c,nodes:i,marks:a})}function ee(t){const e=t.filter((n,s)=>t.indexOf(n)!==s);return Array.from(new Set(e))}function L(t){return t.sort((e,n)=>{const s=v(e,"priority")||100,r=v(n,"priority")||100;return s>r?-1:s<r?1:0})}function dt(t){const e=L(ct(t)),n=ee(e.map(s=>s.name));return n.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${n.map(s=>`'${s}'`).join(", ")}]. This can lead to issues.`),e}function In(t,e){const n=dt(t);return Nt(n,e)}function zt(t,e,n){const{from:s,to:r}=e,{blockSeparator:o=`
15
-
16
- `,textSerializers:c={}}=n||{};let i="";return t.nodesBetween(s,r,(a,l,d,p)=>{var u;a.isBlock&&l>s&&(i+=o);const h=c?.[a.type.name];if(h)return d&&(i+=h({node:a,pos:l,parent:d,index:p,range:e})),!1;a.isText&&(i+=(u=a?.text)==null?void 0:u.slice(Math.max(s,l)-l,r-l))}),i}function ne(t,e){const n={from:0,to:t.content.size};return zt(t,n,e)}function jt(t){return Object.fromEntries(Object.entries(t.nodes).filter(([,e])=>e.spec.toText).map(([e,n])=>[e,n.spec.toText]))}function se(t,e){const n=C(e,t.schema),{from:s,to:r}=t.selection,o=[];t.doc.nodesBetween(s,r,i=>{o.push(i)});const c=o.reverse().find(i=>i.type.name===n.name);return c?{...c.attrs}:{}}function re(t,e){const n=Q(typeof e=="string"?e:e.name,t.schema);return n==="node"?se(t,e):n==="mark"?Ot(t,e):{}}function oe(t,e=JSON.stringify){const n={};return t.filter(s=>{const r=e(s);return Object.prototype.hasOwnProperty.call(n,r)?!1:n[r]=!0})}function Dn(t){const e=oe(t);return e.length===1?e:e.filter((n,s)=>!e.filter((r,o)=>o!==s).some(r=>n.oldRange.from>=r.oldRange.from&&n.oldRange.to<=r.oldRange.to&&n.newRange.from>=r.newRange.from&&n.newRange.to<=r.newRange.to))}function ie(t){const{mapping:e,steps:n}=t,s=[];return e.maps.forEach((r,o)=>{const c=[];if(r.ranges.length)r.forEach((i,a)=>{c.push({from:i,to:a})});else{const{from:i,to:a}=n[o];if(i===void 0||a===void 0)return;c.push({from:i,to:a})}c.forEach(({from:i,to:a})=>{const l=e.slice(o).map(i,-1),d=e.slice(o).map(a),p=e.invert().map(l,-1),u=e.invert().map(d);s.push({oldRange:{from:p,to:u},newRange:{from:l,to:d}})})}),Dn(s)}function It(t,e,n){const s=[];return t===e?n.resolve(t).marks().forEach(r=>{const o=n.resolve(t),c=at(o,r.type);c&&s.push({mark:r,...c})}):n.nodesBetween(t,e,(r,o)=>{!r||r?.nodeSize===void 0||s.push(...r.marks.map(c=>({from:o,to:o+r.nodeSize,mark:c})))}),s}var Bn=(t,e,n,s=20)=>{const r=t.doc.resolve(n);let o=s,c=null;for(;o>0&&c===null;){const i=r.node(o);i?.type.name===e?c=i:o-=1}return[c,o]};function H(t,e){return e.nodes[t]||e.marks[t]||null}function q(t,e,n){return Object.fromEntries(Object.entries(n).filter(([s])=>{const r=t.find(o=>o.type===e&&o.name===s);return r?r.attribute.keepOnSplit:!1}))}var ae=(t,e=500)=>{let n="";const s=t.parentOffset;return t.parent.nodesBetween(Math.max(0,s-e),s,(r,o,c,i)=>{var a,l;const d=((l=(a=r.type.spec).toText)==null?void 0:l.call(a,{node:r,pos:o,parent:c,index:i}))||r.textContent||"%leaf%";n+=r.isAtom&&!r.isText?d:d.slice(0,Math.max(0,s-o))}),n};function ot(t,e,n={}){const{empty:s,ranges:r}=t.selection,o=e?N(e,t.schema):null;if(s)return!!(t.storedMarks||t.selection.$from.marks()).filter(d=>o?o.name===d.type.name:!0).find(d=>_(d.attrs,n,{strict:!1}));let c=0;const i=[];if(r.forEach(({$from:d,$to:p})=>{const u=d.pos,h=p.pos;t.doc.nodesBetween(u,h,(m,f)=>{if(o&&m.inlineContent&&!m.type.allowsMarkType(o))return!1;if(!m.isText&&!m.marks.length)return;const g=Math.max(u,f),y=Math.min(h,f+m.nodeSize),b=y-g;c+=b,i.push(...m.marks.map(x=>({mark:x,from:g,to:y})))})}),c===0)return!1;const a=i.filter(d=>o?o.name===d.mark.type.name:!0).filter(d=>_(d.mark.attrs,n,{strict:!1})).reduce((d,p)=>d+p.to-p.from,0),l=i.filter(d=>o?d.mark.type!==o&&d.mark.type.excludes(o):!0).reduce((d,p)=>d+p.to-p.from,0);return(a>0?a+l:a)>=c}function ce(t,e,n={}){if(!e)return F(t,null,n)||ot(t,null,n);const s=Q(e,t.schema);return s==="node"?F(t,e,n):s==="mark"?ot(t,e,n):!1}var Hn=(t,e)=>{const{$from:n,$to:s,$anchor:r}=t.selection;if(e){const o=G(i=>i.type.name===e)(t.selection);if(!o)return!1;const c=t.doc.resolve(o.pos+1);return r.pos+1===c.end()}return!(s.parentOffset<s.parent.nodeSize-2||n.pos!==s.pos)},Ln=t=>{const{$from:e,$to:n}=t.selection;return!(e.parentOffset>0||e.pos!==n.pos)};function xt(t,e){return Array.isArray(e)?e.some(n=>(typeof n=="string"?n:n.name)===t.name):e}function Mt(t,e){const{nodeExtensions:n}=B(e),s=n.find(c=>c.name===t);if(!s)return!1;const r={name:s.name,options:s.options,storage:s.storage},o=S(v(s,"group",r));return typeof o!="string"?!1:o.split(" ").includes("list")}function ut(t,{checkChildren:e=!0,ignoreWhitespace:n=!1}={}){var s;if(n){if(t.type.name==="hardBreak")return!0;if(t.isText)return!/\S/.test((s=t.text)!=null?s:"")}if(t.isText)return!t.text;if(t.isAtom||t.isLeaf)return!1;if(t.content.childCount===0)return!0;if(e){let r=!0;return t.content.forEach(o=>{r!==!1&&(ut(o,{ignoreWhitespace:n,checkChildren:e})||(r=!1))}),r}return!1}function Vn(t){return t instanceof k.NodeSelection}var Dt=class le{constructor(e){this.position=e}static fromJSON(e){return new le(e.position)}toJSON(){return{position:this.position}}};function de(t,e){const n=e.mapping.mapResult(t.position);return{position:new Dt(n.pos),mapResult:n}}function ue(t){return new Dt(t)}function Fn(t,e,n){var s;const{selection:r}=e;let o=null;if(Ct(r)&&(o=r.$cursor),o){const i=(s=t.storedMarks)!=null?s:o.marks();return o.parent.type.allowsMarkType(n)&&(!!n.isInSet(i)||!i.some(a=>a.type.excludes(n)))}const{ranges:c}=r;return c.some(({$from:i,$to:a})=>{let l=i.depth===0?t.doc.inlineContent&&t.doc.type.allowsMarkType(n):!1;return t.doc.nodesBetween(i.pos,a.pos,(d,p,u)=>{if(l)return!1;if(d.isInline){const h=!u||u.type.allowsMarkType(n),m=!!n.isInSet(d.marks)||!d.marks.some(f=>f.type.excludes(n));l=h&&m}return!l}),l})}var Wn=(t,e={})=>({tr:n,state:s,dispatch:r})=>{const{selection:o}=n,{empty:c,ranges:i}=o,a=N(t,s.schema);if(r)if(c){const l=Ot(s,a);n.addStoredMark(a.create({...l,...e}))}else i.forEach(l=>{const d=l.$from.pos,p=l.$to.pos;s.doc.nodesBetween(d,p,(u,h)=>{const m=Math.max(h,d),f=Math.min(h+u.nodeSize,p);u.marks.find(g=>g.type===a)?u.marks.forEach(g=>{a===g.type&&n.addMark(m,f,a.create({...g.attrs,...e}))}):n.addMark(m,f,a.create(e))})});return Fn(s,n,a)},Un=(t,e)=>({tr:n})=>(n.setMeta(t,e),!0),Kn=(t,e={})=>({state:n,dispatch:s,chain:r})=>{const o=C(t,n.schema);let c;return n.selection.$anchor.sameParent(n.selection.$head)&&(c=n.selection.$anchor.parent.attrs),o.isTextblock?r().command(({commands:i})=>T.setBlockType(o,{...c,...e})(n)?!0:i.clearNodes()).command(({state:i})=>T.setBlockType(o,{...c,...e})(i,s)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},qn=t=>({tr:e,dispatch:n})=>{if(n){const{doc:s}=e,r=D(t,0,s.content.size),o=k.NodeSelection.create(s,r);e.setSelection(o)}return!0},_n=(t,e)=>({tr:n,state:s,dispatch:r})=>{const{selection:o}=s;let c,i;return typeof e=="number"?(c=e,i=e):e&&"from"in e&&"to"in e?(c=e.from,i=e.to):(c=o.from,i=o.to),r&&n.doc.nodesBetween(c,i,(a,l)=>{a.isText||n.setNodeMarkup(l,void 0,{...a.attrs,dir:t})}),!0},Jn=t=>({tr:e,dispatch:n})=>{if(n){const{doc:s}=e,{from:r,to:o}=typeof t=="number"?{from:t,to:t}:t,c=k.TextSelection.atStart(s).from,i=k.TextSelection.atEnd(s).to,a=D(r,c,i),l=D(o,c,i),d=k.TextSelection.create(s,a,l);e.setSelection(d)}return!0},Yn=t=>({state:e,dispatch:n})=>{const s=C(t,e.schema);return St.sinkListItem(s)(e,n)};function Ut(t,e){const n=t.storedMarks||t.selection.$to.parentOffset&&t.selection.$from.marks();if(n){const s=n.filter(r=>e?.includes(r.type.name));t.tr.ensureMarks(s)}}var Xn=({keepMarks:t=!0}={})=>({tr:e,state:n,dispatch:s,editor:r})=>{const{selection:o,doc:c}=e,{$from:i,$to:a}=o,l=r.extensionManager.attributes,d=q(l,i.node().type.name,i.node().attrs);if(o instanceof k.NodeSelection&&o.node.isBlock)return!i.parentOffset||!O.canSplit(c,i.pos)?!1:(s&&(t&&Ut(n,r.extensionManager.splittableMarks),e.split(i.pos).scrollIntoView()),!0);if(!i.parent.isBlock)return!1;const p=a.parentOffset===a.parent.content.size,u=i.depth===0?void 0:Xt(i.node(-1).contentMatchAt(i.indexAfter(-1)));let h=p&&u?[{type:u,attrs:d}]:void 0,m=O.canSplit(e.doc,e.mapping.map(i.pos),1,h);if(!h&&!m&&O.canSplit(e.doc,e.mapping.map(i.pos),1,u?[{type:u}]:void 0)&&(m=!0,h=u?[{type:u,attrs:d}]:void 0),s){if(m&&(o instanceof k.TextSelection&&e.deleteSelection(),e.split(e.mapping.map(i.pos),1,h),u&&!p&&!i.parentOffset&&i.parent.type!==u)){const f=e.mapping.map(i.before()),g=e.doc.resolve(f);i.node(-1).canReplaceWith(g.index(),g.index()+1,u)&&e.setNodeMarkup(e.mapping.map(i.before()),u)}t&&Ut(n,r.extensionManager.splittableMarks),e.scrollIntoView()}return m},Zn=(t,e={})=>({tr:n,state:s,dispatch:r,editor:o})=>{var c;const i=C(t,s.schema),{$from:a,$to:l}=s.selection,d=s.selection.node;if(d&&d.isBlock||a.depth<2||!a.sameParent(l))return!1;const p=a.node(-1);if(p.type!==i)return!1;const u=o.extensionManager.attributes;if(a.parent.content.size===0&&a.node(-1).childCount===a.indexAfter(-1)){if(a.depth===2||a.node(-3).type!==i||a.index(-2)!==a.node(-2).childCount-1)return!1;if(r){let y=$.Fragment.empty;const b=a.index(-1)?1:a.index(-2)?2:3;for(let A=a.depth-b;A>=a.depth-3;A-=1)y=$.Fragment.from(a.node(A).copy(y));const x=a.indexAfter(-1)<a.node(-2).childCount?1:a.indexAfter(-2)<a.node(-3).childCount?2:3,M={...q(u,a.node().type.name,a.node().attrs),...e},w=((c=i.contentMatch.defaultType)==null?void 0:c.createAndFill(M))||void 0;y=y.append($.Fragment.from(i.createAndFill(null,w)||void 0));const E=a.before(a.depth-(b-1));n.replace(E,a.after(-x),new $.Slice(y,4-b,0));let P=-1;n.doc.nodesBetween(E,n.doc.content.size,(A,z)=>{if(P>-1)return!1;A.isTextblock&&A.content.size===0&&(P=z+1)}),P>-1&&n.setSelection(k.TextSelection.near(n.doc.resolve(P))),n.scrollIntoView()}return!0}const h=l.pos===a.end()?p.contentMatchAt(0).defaultType:null,m={...q(u,p.type.name,p.attrs),...e},f={...q(u,a.node().type.name,a.node().attrs),...e};n.delete(a.pos,l.pos);const g=h?[{type:i,attrs:m},{type:h,attrs:f}]:[{type:i,attrs:m}];if(!O.canSplit(n.doc,a.pos,2))return!1;if(r){const{selection:y,storedMarks:b}=s,{splittableMarks:x}=o.extensionManager,M=b||y.$to.parentOffset&&y.$from.marks();if(n.split(a.pos,2,g).scrollIntoView(),!M||!r)return!0;const w=M.filter(E=>x.includes(E.type.name));n.ensureMarks(w)}return!0},yt=(t,e)=>{const n=G(o=>o.type===e)(t.selection);if(!n)return!0;const s=t.doc.resolve(Math.max(0,n.pos-1)).before(n.depth);if(s===void 0)return!0;const r=t.doc.nodeAt(s);return n.node.type===r?.type&&O.canJoin(t.doc,n.pos)&&t.join(n.pos),!0},vt=(t,e)=>{const n=G(o=>o.type===e)(t.selection);if(!n)return!0;const s=t.doc.resolve(n.start).after(n.depth);if(s===void 0)return!0;const r=t.doc.nodeAt(s);return n.node.type===r?.type&&O.canJoin(t.doc,s)&&t.join(s),!0},Qn=(t,e,n,s={})=>({editor:r,tr:o,state:c,dispatch:i,chain:a,commands:l,can:d})=>{const{extensions:p,splittableMarks:u}=r.extensionManager,h=C(t,c.schema),m=C(e,c.schema),{selection:f,storedMarks:g}=c,{$from:y,$to:b}=f,x=y.blockRange(b),M=g||f.$to.parentOffset&&f.$from.marks();if(!x)return!1;const w=G(E=>Mt(E.type.name,p))(f);if(x.depth>=1&&w&&x.depth-w.depth<=1){if(w.node.type===h)return l.liftListItem(m);if(Mt(w.node.type.name,p)&&h.validContent(w.node.content)&&i)return a().command(()=>(o.setNodeMarkup(w.pos,h),!0)).command(()=>yt(o,h)).command(()=>vt(o,h)).run()}return!n||!M||!i?a().command(()=>d().wrapInList(h,s)?!0:l.clearNodes()).wrapInList(h,s).command(()=>yt(o,h)).command(()=>vt(o,h)).run():a().command(()=>{const E=d().wrapInList(h,s),P=M.filter(A=>u.includes(A.type.name));return o.ensureMarks(P),E?!0:l.clearNodes()}).wrapInList(h,s).command(()=>yt(o,h)).command(()=>vt(o,h)).run()},Gn=(t,e={},n={})=>({state:s,commands:r})=>{const{extendEmptyMarkRange:o=!1}=n,c=N(t,s.schema);return ot(s,c,e)?r.unsetMark(c,{extendEmptyMarkRange:o}):r.setMark(c,e)},ts=(t,e,n={})=>({state:s,commands:r})=>{const o=C(t,s.schema),c=C(e,s.schema),i=F(s,o,n);let a;return s.selection.$anchor.sameParent(s.selection.$head)&&(a=s.selection.$anchor.parent.attrs),i?r.setNode(c,a):r.setNode(o,{...a,...n})},es=(t,e={})=>({state:n,commands:s})=>{const r=C(t,n.schema);return F(n,r,e)?s.lift(r):s.wrapIn(r,e)},ns=()=>({state:t,dispatch:e})=>{const n=t.plugins;for(let s=0;s<n.length;s+=1){const r=n[s];let o;if(r.spec.isInputRules&&(o=r.getState(t))){if(e){const c=t.tr,i=o.transform;for(let a=i.steps.length-1;a>=0;a-=1)c.step(i.steps[a].invert(i.docs[a]));if(o.text){const a=c.doc.resolve(o.from).marks();c.replaceWith(o.from,o.to,t.schema.text(o.text,a))}else c.delete(o.from,o.to)}return!0}}return!1},ss=()=>({tr:t,dispatch:e})=>{const{selection:n}=t,{empty:s,ranges:r}=n;return s||e&&r.forEach(o=>{t.removeMark(o.$from.pos,o.$to.pos)}),!0},rs=(t,e={})=>({tr:n,state:s,dispatch:r})=>{var o;const{extendEmptyMarkRange:c=!1}=e,{selection:i}=n,a=N(t,s.schema),{$from:l,empty:d,ranges:p}=i;if(!r)return!0;if(d&&c){let{from:u,to:h}=i;const m=(o=l.marks().find(g=>g.type===a))==null?void 0:o.attrs,f=at(l,a,m);f&&(u=f.from,h=f.to),n.removeMark(u,h,a)}else p.forEach(u=>{n.removeMark(u.$from.pos,u.$to.pos,a)});return n.removeStoredMark(a),!0},os=t=>({tr:e,state:n,dispatch:s})=>{const{selection:r}=n;let o,c;return typeof t=="number"?(o=t,c=t):t&&"from"in t&&"to"in t?(o=t.from,c=t.to):(o=r.from,c=r.to),s&&e.doc.nodesBetween(o,c,(i,a)=>{if(i.isText)return;const l={...i.attrs};delete l.dir,e.setNodeMarkup(a,void 0,l)}),!0},is=(t,e={})=>({tr:n,state:s,dispatch:r})=>{let o=null,c=null;const i=Q(typeof t=="string"?t:t.name,s.schema);if(!i)return!1;i==="node"&&(o=C(t,s.schema)),i==="mark"&&(c=N(t,s.schema));let a=!1;return n.selection.ranges.forEach(l=>{const d=l.$from.pos,p=l.$to.pos;let u,h,m,f;n.selection.empty?s.doc.nodesBetween(d,p,(g,y)=>{o&&o===g.type&&(a=!0,m=Math.max(y,d),f=Math.min(y+g.nodeSize,p),u=y,h=g)}):s.doc.nodesBetween(d,p,(g,y)=>{y<d&&o&&o===g.type&&(a=!0,m=Math.max(y,d),f=Math.min(y+g.nodeSize,p),u=y,h=g),y>=d&&y<=p&&(o&&o===g.type&&(a=!0,r&&n.setNodeMarkup(y,void 0,{...g.attrs,...e})),c&&g.marks.length&&g.marks.forEach(b=>{if(c===b.type&&(a=!0,r)){const x=Math.max(y,d),M=Math.min(y+g.nodeSize,p);n.addMark(x,M,c.create({...b.attrs,...e}))}}))}),h&&(u!==void 0&&r&&n.setNodeMarkup(u,void 0,{...h.attrs,...e}),c&&h.marks.length&&h.marks.forEach(g=>{c===g.type&&r&&n.addMark(m,f,c.create({...g.attrs,...e}))}))}),a},as=(t,e={})=>({state:n,dispatch:s})=>{const r=C(t,n.schema);return T.wrapIn(r,e)(n,s)},cs=(t,e={})=>({state:n,dispatch:s})=>{const r=C(t,n.schema);return St.wrapInList(r,e)(n,s)},ls=class{constructor(){this.callbacks={}}on(t,e){return this.callbacks[t]||(this.callbacks[t]=[]),this.callbacks[t].push(e),this}emit(t,...e){const n=this.callbacks[t];return n&&n.forEach(s=>s.apply(this,e)),this}off(t,e){const n=this.callbacks[t];return n&&(e?this.callbacks[t]=n.filter(s=>s!==e):delete this.callbacks[t]),this}once(t,e){const n=(...s)=>{this.off(t,n),e.apply(this,s)};return this.on(t,n)}removeAllListeners(){this.callbacks={}}},tt=class{constructor(t){var e;this.find=t.find,this.handler=t.handler,this.undoable=(e=t.undoable)!=null?e:!0}},ds=(t,e)=>{if(it(e))return e.exec(t);const n=e(t);if(!n)return null;const s=[n.text];return s.index=n.index,s.input=t,s.data=n.data,n.replaceWith&&(n.text.includes(n.replaceWith)||console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'),s.push(n.replaceWith)),s};function nt(t){var e;const{editor:n,from:s,to:r,text:o,rules:c,plugin:i}=t,{view:a}=n;if(a.composing)return!1;const l=a.state.doc.resolve(s);if(l.parent.type.spec.code||(e=l.nodeBefore||l.nodeAfter)!=null&&e.marks.find(u=>u.type.spec.code))return!1;let d=!1;const p=ae(l)+o;return c.forEach(u=>{if(d)return;const h=ds(p,u.find);if(!h)return;const m=a.state.tr,f=X({state:a.state,transaction:m}),g={from:s-(h[0].length-o.length),to:r},{commands:y,chain:b,can:x}=new Z({editor:n,state:f});u.handler({state:f,range:g,match:h,commands:y,chain:b,can:x})===null||!m.steps.length||(u.undoable&&m.setMeta(i,{transform:m,from:s,to:r,text:o}),a.dispatch(m),d=!0)}),d}function pe(t){const{editor:e,rules:n}=t,s=new k.Plugin({state:{init(){return null},apply(r,o,c){const i=r.getMeta(s);if(i)return i;const a=r.getMeta("applyInputRules");return a&&setTimeout(()=>{let{text:l}=a;typeof l=="string"?l=l:l=lt($.Fragment.from(l),c.schema);const{from:d}=a,p=d+l.length;nt({editor:e,from:d,to:p,text:l,rules:n,plugin:s})}),r.selectionSet||r.docChanged?null:o}},props:{handleTextInput(r,o,c,i){return nt({editor:e,from:o,to:c,text:i,rules:n,plugin:s})},handleDOMEvents:{compositionend:r=>(setTimeout(()=>{const{$cursor:o}=r.state.selection;o&&nt({editor:e,from:o.pos,to:o.pos,text:"",rules:n,plugin:s})}),!1)},handleKeyDown(r,o){if(o.key!=="Enter")return!1;const{$cursor:c}=r.state.selection;return c?nt({editor:e,from:c.pos,to:c.pos,text:`
17
- `,rules:n,plugin:s}):!1}},isInputRules:!0});return s}function us(t){return Object.prototype.toString.call(t).slice(8,-1)}function U(t){return us(t)!=="Object"?!1:t.constructor===Object&&Object.getPrototypeOf(t)===Object.prototype}function Bt(t,e){const n={...t};return U(t)&&U(e)&&Object.keys(e).forEach(s=>{U(e[s])&&U(t[s])?n[s]=Bt(t[s],e[s]):n[s]=e[s]}),n}var pt=class{constructor(t={}){this.type="extendable",this.parent=null,this.child=null,this.name="",this.config={name:this.name},this.config={...this.config,...t},this.name=this.config.name}get options(){return{...S(v(this,"addOptions",{name:this.name}))||{}}}get storage(){return{...S(v(this,"addStorage",{name:this.name,options:this.options}))||{}}}configure(t={}){const e=this.extend({...this.config,addOptions:()=>Bt(this.options,t)});return e.name=this.name,e.parent=this.parent,e}extend(t={}){const e=new this.constructor({...this.config,...t});return e.parent=this,this.child=e,e.name="name"in t?t.name:e.parent.name,e}},he=class me extends pt{constructor(){super(...arguments),this.type="mark"}static create(e={}){const n=typeof e=="function"?e():e;return new me(n)}static handleExit({editor:e,mark:n}){const{tr:s}=e.state,r=e.state.selection.$from;if(r.pos===r.end()){const o=r.marks();if(!o.find(i=>i?.type.name===n.name))return!1;const c=o.find(i=>i?.type.name===n.name);return c&&s.removeStoredMark(c),s.insertText(" ",r.pos),e.view.dispatch(s),!0}return!1}configure(e){return super.configure(e)}extend(e){const n=typeof e=="function"?e():e;return super.extend(n)}};function fe(t){return typeof t=="number"}var ge=class{constructor(t){this.find=t.find,this.handler=t.handler}},ps=(t,e,n)=>{if(it(e))return[...t.matchAll(e)];const s=e(t,n);return s?s.map(r=>{const o=[r.text];return o.index=r.index,o.input=t,o.data=r.data,r.replaceWith&&(r.text.includes(r.replaceWith)||console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'),o.push(r.replaceWith)),o}):[]};function hs(t){const{editor:e,state:n,from:s,to:r,rule:o,pasteEvent:c,dropEvent:i}=t,{commands:a,chain:l,can:d}=new Z({editor:e,state:n}),p=[];return n.doc.nodesBetween(s,r,(u,h)=>{var m,f,g,y,b;if((f=(m=u.type)==null?void 0:m.spec)!=null&&f.code||!(u.isText||u.isTextblock||u.isInline))return;const x=(b=(y=(g=u.content)==null?void 0:g.size)!=null?y:u.nodeSize)!=null?b:0,M=Math.max(s,h),w=Math.min(r,h+x);if(M>=w)return;const E=u.isText?u.text||"":u.textBetween(M-h,w-h,void 0,"");ps(E,o.find,c).forEach(P=>{if(P.index===void 0)return;const A=M+P.index+1,z=A+P[0].length,et={from:n.tr.mapping.map(A),to:n.tr.mapping.map(z)},gt=o.handler({state:n,range:et,match:P,commands:a,chain:l,can:d,pasteEvent:c,dropEvent:i});p.push(gt)})}),p.every(u=>u!==null)}var st=null,ms=t=>{var e;const n=new ClipboardEvent("paste",{clipboardData:new DataTransfer});return(e=n.clipboardData)==null||e.setData("text/html",t),n};function ye(t){const{editor:e,rules:n}=t;let s=null,r=!1,o=!1,c=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,i;try{i=typeof DragEvent<"u"?new DragEvent("drop"):null}catch{i=null}const a=({state:l,from:d,to:p,rule:u,pasteEvt:h})=>{const m=l.tr,f=X({state:l,transaction:m});if(!(!hs({editor:e,state:f,from:Math.max(d-1,0),to:p.b-1,rule:u,pasteEvent:h,dropEvent:i})||!m.steps.length)){try{i=typeof DragEvent<"u"?new DragEvent("drop"):null}catch{i=null}return c=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,m}};return n.map(l=>new k.Plugin({view(d){const p=h=>{var m;s=(m=d.dom.parentElement)!=null&&m.contains(h.target)?d.dom.parentElement:null,s&&(st=e)},u=()=>{st&&(st=null)};return window.addEventListener("dragstart",p),window.addEventListener("dragend",u),{destroy(){window.removeEventListener("dragstart",p),window.removeEventListener("dragend",u)}}},props:{handleDOMEvents:{drop:(d,p)=>{if(o=s===d.dom.parentElement,i=p,!o){const u=st;u?.isEditable&&setTimeout(()=>{const h=u.state.selection;h&&u.commands.deleteRange({from:h.from,to:h.to})},10)}return!1},paste:(d,p)=>{var u;const h=(u=p.clipboardData)==null?void 0:u.getData("text/html");return c=p,r=!!h?.includes("data-pm-slice"),!1}}},appendTransaction:(d,p,u)=>{const h=d[0],m=h.getMeta("uiEvent")==="paste"&&!r,f=h.getMeta("uiEvent")==="drop"&&!o,g=h.getMeta("applyPasteRules"),y=!!g;if(!m&&!f&&!y)return;if(y){let{text:M}=g;typeof M=="string"?M=M:M=lt($.Fragment.from(M),u.schema);const{from:w}=g,E=w+M.length,P=ms(M);return a({rule:l,state:u,from:w,to:{b:E},pasteEvt:P})}const b=p.doc.content.findDiffStart(u.doc.content),x=p.doc.content.findDiffEnd(u.doc.content);if(!(!fe(b)||!x||b===x.b))return a({rule:l,state:u,from:b,to:x,pasteEvt:c})}}))}var ht=class{constructor(t,e){this.splittableMarks=[],this.editor=e,this.baseExtensions=t,this.extensions=dt(t),this.schema=Nt(this.extensions,e),this.setupExtensions()}get commands(){return this.extensions.reduce((t,e)=>{const n={name:e.name,options:e.options,storage:this.editor.extensionStorage[e.name],editor:this.editor,type:H(e.name,this.schema)},s=v(e,"addCommands",n);return s?{...t,...s()}:t},{})}get plugins(){const{editor:t}=this;return L([...this.extensions].reverse()).flatMap(e=>{const n={name:e.name,options:e.options,storage:this.editor.extensionStorage[e.name],editor:t,type:H(e.name,this.schema)},s=[],r=v(e,"addKeyboardShortcuts",n);let o={};if(e.type==="mark"&&v(e,"exitable",n)&&(o.ArrowRight=()=>he.handleExit({editor:t,mark:e})),r){const d=Object.fromEntries(Object.entries(r()).map(([p,u])=>[p,()=>u({editor:t})]));o={...o,...d}}const c=We.keymap(o);s.push(c);const i=v(e,"addInputRules",n);if(xt(e,t.options.enableInputRules)&&i){const d=i();if(d&&d.length){const p=pe({editor:t,rules:d}),u=Array.isArray(p)?p:[p];s.push(...u)}}const a=v(e,"addPasteRules",n);if(xt(e,t.options.enablePasteRules)&&a){const d=a();if(d&&d.length){const p=ye({editor:t,rules:d});s.push(...p)}}const l=v(e,"addProseMirrorPlugins",n);if(l){const d=l();s.push(...d)}return s})}get attributes(){return Rt(this.extensions)}get nodeViews(){const{editor:t}=this,{nodeExtensions:e}=B(this.extensions);return Object.fromEntries(e.filter(n=>!!v(n,"addNodeView")).map(n=>{const s=this.attributes.filter(a=>a.type===n.name),r={name:n.name,options:n.options,storage:this.editor.extensionStorage[n.name],editor:t,type:C(n.name,this.schema)},o=v(n,"addNodeView",r);if(!o)return[];const c=o();if(!c)return[];const i=(a,l,d,p,u)=>{const h=Y(a,s);return c({node:a,view:l,getPos:d,decorations:p,innerDecorations:u,editor:t,extension:n,HTMLAttributes:h})};return[n.name,i]}))}dispatchTransaction(t){const{editor:e}=this;return L([...this.extensions].reverse()).reduceRight((n,s)=>{const r={name:s.name,options:s.options,storage:this.editor.extensionStorage[s.name],editor:e,type:H(s.name,this.schema)},o=v(s,"dispatchTransaction",r);return o?c=>{o.call(r,{transaction:c,next:n})}:n},t)}transformPastedHTML(t){const{editor:e}=this;return L([...this.extensions]).reduce((n,s)=>{const r={name:s.name,options:s.options,storage:this.editor.extensionStorage[s.name],editor:e,type:H(s.name,this.schema)},o=v(s,"transformPastedHTML",r);return o?(c,i)=>{const a=n(c,i);return o.call(r,a)}:n},t||(n=>n))}get markViews(){const{editor:t}=this,{markExtensions:e}=B(this.extensions);return Object.fromEntries(e.filter(n=>!!v(n,"addMarkView")).map(n=>{const s=this.attributes.filter(i=>i.type===n.name),r={name:n.name,options:n.options,storage:this.editor.extensionStorage[n.name],editor:t,type:N(n.name,this.schema)},o=v(n,"addMarkView",r);if(!o)return[];const c=(i,a,l)=>{const d=Y(i,s);return o()({mark:i,view:a,inline:l,editor:t,extension:n,HTMLAttributes:d,updateAttributes:p=>{He(i,t,p)}})};return[n.name,c]}))}setupExtensions(){const t=this.extensions;this.editor.extensionStorage=Object.fromEntries(t.map(e=>[e.name,e.storage])),t.forEach(e=>{var n;const s={name:e.name,options:e.options,storage:this.editor.extensionStorage[e.name],editor:this.editor,type:H(e.name,this.schema)};e.type==="mark"&&((n=S(v(e,"keepOnSplit",s)))==null||n)&&this.splittableMarks.push(e.name);const r=v(e,"onBeforeCreate",s),o=v(e,"onCreate",s),c=v(e,"onUpdate",s),i=v(e,"onSelectionUpdate",s),a=v(e,"onTransaction",s),l=v(e,"onFocus",s),d=v(e,"onBlur",s),p=v(e,"onDestroy",s);r&&this.editor.on("beforeCreate",r),o&&this.editor.on("create",o),c&&this.editor.on("update",c),i&&this.editor.on("selectionUpdate",i),a&&this.editor.on("transaction",a),l&&this.editor.on("focus",l),d&&this.editor.on("blur",d),p&&this.editor.on("destroy",p)})}};ht.resolve=dt;ht.sort=L;ht.flatten=ct;var ve={};Et(ve,{ClipboardTextSerializer:()=>ke,Commands:()=>we,Delete:()=>xe,Drop:()=>Me,Editable:()=>Se,FocusEvents:()=>Te,Keymap:()=>Ce,Paste:()=>Pe,Tabindex:()=>$e,TextDirection:()=>Oe,focusEventsPluginKey:()=>Ee});var R=class be extends pt{constructor(){super(...arguments),this.type="extension"}static create(e={}){const n=typeof e=="function"?e():e;return new be(n)}configure(e){return super.configure(e)}extend(e){const n=typeof e=="function"?e():e;return super.extend(n)}},ke=R.create({name:"clipboardTextSerializer",addOptions(){return{blockSeparator:void 0}},addProseMirrorPlugins(){return[new k.Plugin({key:new k.PluginKey("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:t}=this,{state:e,schema:n}=t,{doc:s,selection:r}=e,{ranges:o}=r,c=Math.min(...o.map(l=>l.$from.pos)),i=Math.max(...o.map(l=>l.$to.pos)),a=jt(n);return zt(s,{from:c,to:i},{...this.options.blockSeparator!==void 0?{blockSeparator:this.options.blockSeparator}:{},textSerializers:a})}}})]}}),we=R.create({name:"commands",addCommands(){return{...Tt}}}),xe=R.create({name:"delete",onUpdate({transaction:t,appendedTransactions:e}){var n,s,r;const o=()=>{var c,i,a,l;if((l=(a=(i=(c=this.editor.options.coreExtensionOptions)==null?void 0:c.delete)==null?void 0:i.filterTransaction)==null?void 0:a.call(i,t))!=null?l:t.getMeta("y-sync$"))return;const d=Yt(t.before,[t,...e]);ie(d).forEach(u=>{d.mapping.mapResult(u.oldRange.from).deletedAfter&&d.mapping.mapResult(u.oldRange.to).deletedBefore&&d.before.nodesBetween(u.oldRange.from,u.oldRange.to,(h,m)=>{const f=m+h.nodeSize-2,g=u.oldRange.from<=m&&f<=u.oldRange.to;this.editor.emit("delete",{type:"node",node:h,from:m,to:f,newFrom:d.mapping.map(m),newTo:d.mapping.map(f),deletedRange:u.oldRange,newRange:u.newRange,partial:!g,editor:this.editor,transaction:t,combinedTransform:d})})});const p=d.mapping;d.steps.forEach((u,h)=>{var m,f;if(u instanceof O.RemoveMarkStep){const g=p.slice(h).map(u.from,-1),y=p.slice(h).map(u.to),b=p.invert().map(g,-1),x=p.invert().map(y),M=(m=d.doc.nodeAt(g-1))==null?void 0:m.marks.some(E=>E.eq(u.mark)),w=(f=d.doc.nodeAt(y))==null?void 0:f.marks.some(E=>E.eq(u.mark));this.editor.emit("delete",{type:"mark",mark:u.mark,from:u.from,to:u.to,deletedRange:{from:b,to:x},newRange:{from:g,to:y},partial:!!(w||M),editor:this.editor,transaction:t,combinedTransform:d})}})};(r=(s=(n=this.editor.options.coreExtensionOptions)==null?void 0:n.delete)==null?void 0:s.async)==null||r?setTimeout(o,0):o()}}),Me=R.create({name:"drop",addProseMirrorPlugins(){return[new k.Plugin({key:new k.PluginKey("tiptapDrop"),props:{handleDrop:(t,e,n,s)=>{this.editor.emit("drop",{editor:this.editor,event:e,slice:n,moved:s})}}})]}}),Se=R.create({name:"editable",addProseMirrorPlugins(){return[new k.Plugin({key:new k.PluginKey("editable"),props:{editable:()=>this.editor.options.editable}})]}}),Ee=new k.PluginKey("focusEvents"),Te=R.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:t}=this;return[new k.Plugin({key:Ee,props:{handleDOMEvents:{focus:(e,n)=>{t.isFocused=!0;const s=t.state.tr.setMeta("focus",{event:n}).setMeta("addToHistory",!1);return e.dispatch(s),!1},blur:(e,n)=>{t.isFocused=!1;const s=t.state.tr.setMeta("blur",{event:n}).setMeta("addToHistory",!1);return e.dispatch(s),!1}}}})]}}),Ce=R.create({name:"keymap",addKeyboardShortcuts(){const t=()=>this.editor.commands.first(({commands:o})=>[()=>o.undoInputRule(),()=>o.command(({tr:c})=>{const{selection:i,doc:a}=c,{empty:l,$anchor:d}=i,{pos:p,parent:u}=d,h=d.parent.isTextblock&&p>0?c.doc.resolve(p-1):d,m=h.parent.type.spec.isolating,f=d.pos-d.parentOffset,g=m&&h.parent.childCount===1?f===d.pos:k.Selection.atStart(a).from===p;return!l||!u.type.isTextblock||u.textContent.length||!g||g&&d.parent.type.name==="paragraph"?!1:o.clearNodes()}),()=>o.deleteSelection(),()=>o.joinBackward(),()=>o.selectNodeBackward()]),e=()=>this.editor.commands.first(({commands:o})=>[()=>o.deleteSelection(),()=>o.deleteCurrentNode(),()=>o.joinForward(),()=>o.selectNodeForward()]),n={Enter:()=>this.editor.commands.first(({commands:o})=>[()=>o.newlineInCode(),()=>o.createParagraphNear(),()=>o.liftEmptyBlock(),()=>o.splitBlock()]),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:t,"Mod-Backspace":t,"Shift-Backspace":t,Delete:e,"Mod-Delete":e,"Mod-a":()=>this.editor.commands.selectAll()},s={...n},r={...n,"Ctrl-h":t,"Alt-Backspace":t,"Ctrl-d":e,"Ctrl-Alt-Backspace":e,"Alt-Delete":e,"Alt-d":e,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return J()||$t()?r:s},addProseMirrorPlugins(){return[new k.Plugin({key:new k.PluginKey("clearDocument"),appendTransaction:(t,e,n)=>{if(t.some(h=>h.getMeta("composition")))return;const s=t.some(h=>h.docChanged)&&!e.doc.eq(n.doc),r=t.some(h=>h.getMeta("preventClearDocument"));if(!s||r)return;const{empty:o,from:c,to:i}=e.selection,a=k.Selection.atStart(e.doc).from,l=k.Selection.atEnd(e.doc).to;if(o||!(c===a&&i===l)||!ut(n.doc))return;const d=n.tr,p=X({state:n,transaction:d}),{commands:u}=new Z({editor:this.editor,state:p});if(u.clearNodes(),!!d.steps.length)return d}})]}}),Pe=R.create({name:"paste",addProseMirrorPlugins(){return[new k.Plugin({key:new k.PluginKey("tiptapPaste"),props:{handlePaste:(t,e,n)=>{this.editor.emit("paste",{editor:this.editor,event:e,slice:n})}}})]}}),$e=R.create({name:"tabindex",addProseMirrorPlugins(){return[new k.Plugin({key:new k.PluginKey("tabindex"),props:{attributes:()=>this.editor.isEditable?{tabindex:"0"}:{}}})]}}),Oe=R.create({name:"textDirection",addOptions(){return{direction:void 0}},addGlobalAttributes(){if(!this.options.direction)return[];const{nodeExtensions:t}=B(this.extensions);return[{types:t.filter(e=>e.name!=="text").map(e=>e.name),attributes:{dir:{default:this.options.direction,parseHTML:e=>{const n=e.getAttribute("dir");return n&&(n==="ltr"||n==="rtl"||n==="auto")?n:this.options.direction},renderHTML:e=>e.dir?{dir:e.dir}:{}}}}]},addProseMirrorPlugins(){return[new k.Plugin({key:new k.PluginKey("textDirection"),props:{attributes:()=>{const t=this.options.direction;return t?{dir:t}:{}}}})]}}),Ae=class K{constructor(e,n,s=!1,r=null){this.currentNode=null,this.actualDepth=null,this.isBlock=s,this.resolvedPos=e,this.editor=n,this.currentNode=r}get name(){return this.node.type.name}get node(){return this.currentNode||this.resolvedPos.node()}get element(){return this.editor.view.domAtPos(this.pos).node}get depth(){var e;return(e=this.actualDepth)!=null?e:this.resolvedPos.depth}get pos(){return this.resolvedPos.pos}get content(){return this.node.content}set content(e){let n=this.from,s=this.to;if(this.isBlock){if(this.content.size===0){console.error(`You can’t set content on a block node. Tried to set content on ${this.name} at ${this.pos}`);return}n=this.from+1,s=this.to-1}this.editor.commands.insertContentAt({from:n,to:s},e)}get attributes(){return this.node.attrs}get textContent(){return this.node.textContent}get size(){return this.node.nodeSize}get from(){return this.isBlock?this.pos:this.resolvedPos.start(this.resolvedPos.depth)}get range(){return{from:this.from,to:this.to}}get to(){return this.isBlock?this.pos+this.size:this.resolvedPos.end(this.resolvedPos.depth)+(this.node.isText?0:1)}get parent(){if(this.depth===0)return null;const e=this.resolvedPos.start(this.resolvedPos.depth-1),n=this.resolvedPos.doc.resolve(e);return new K(n,this.editor)}get before(){let e=this.resolvedPos.doc.resolve(this.from-(this.isBlock?1:2));return e.depth!==this.depth&&(e=this.resolvedPos.doc.resolve(this.from-3)),new K(e,this.editor)}get after(){let e=this.resolvedPos.doc.resolve(this.to+(this.isBlock?2:1));return e.depth!==this.depth&&(e=this.resolvedPos.doc.resolve(this.to+3)),new K(e,this.editor)}get children(){const e=[];return this.node.content.forEach((n,s)=>{const r=n.isBlock&&!n.isTextblock,o=n.isAtom&&!n.isText,c=n.isInline,i=this.pos+s+(o?0:1);if(i<0||i>this.resolvedPos.doc.nodeSize-2)return;const a=this.resolvedPos.doc.resolve(i);if(!r&&!c&&a.depth<=this.depth)return;const l=new K(a,this.editor,r,r||c?n:null);r&&(l.actualDepth=this.depth+1),e.push(l)}),e}get firstChild(){return this.children[0]||null}get lastChild(){const e=this.children;return e[e.length-1]||null}closest(e,n={}){let s=null,r=this.parent;for(;r&&!s;){if(r.node.type.name===e)if(Object.keys(n).length>0){const o=r.node.attrs,c=Object.keys(n);for(let i=0;i<c.length;i+=1){const a=c[i];if(o[a]!==n[a])break}}else s=r;r=r.parent}return s}querySelector(e,n={}){return this.querySelectorAll(e,n,!0)[0]||null}querySelectorAll(e,n={},s=!1){let r=[];if(!this.children||this.children.length===0)return r;const o=Object.keys(n);return this.children.forEach(c=>{s&&r.length>0||(c.node.type.name===e&&o.every(i=>n[i]===c.node.attrs[i])&&r.push(c),!(s&&r.length>0)&&(r=r.concat(c.querySelectorAll(e,n,s))))}),r}setAttribute(e){const{tr:n}=this.editor.state;n.setNodeMarkup(this.from,void 0,{...this.node.attrs,...e}),this.editor.view.dispatch(n)}},fs=`.ProseMirror {
18
- position: relative;
19
- }
20
-
21
- .ProseMirror {
22
- word-wrap: break-word;
23
- white-space: pre-wrap;
24
- white-space: break-spaces;
25
- -webkit-font-variant-ligatures: none;
26
- font-variant-ligatures: none;
27
- font-feature-settings: "liga" 0; /* the above doesn't seem to work in Edge */
28
- }
29
-
30
- .ProseMirror [contenteditable="false"] {
31
- white-space: normal;
32
- }
33
-
34
- .ProseMirror [contenteditable="false"] [contenteditable="true"] {
35
- white-space: pre-wrap;
36
- }
37
-
38
- .ProseMirror pre {
39
- white-space: pre-wrap;
40
- }
41
-
42
- img.ProseMirror-separator {
43
- display: inline !important;
44
- border: none !important;
45
- margin: 0 !important;
46
- width: 0 !important;
47
- height: 0 !important;
48
- }
49
-
50
- .ProseMirror-gapcursor {
51
- display: none;
52
- pointer-events: none;
53
- position: absolute;
54
- margin: 0;
55
- }
56
-
57
- .ProseMirror-gapcursor:after {
58
- content: "";
59
- display: block;
60
- position: absolute;
61
- top: -2px;
62
- width: 20px;
63
- border-top: 1px solid black;
64
- animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;
65
- }
66
-
67
- @keyframes ProseMirror-cursor-blink {
68
- to {
69
- visibility: hidden;
70
- }
71
- }
72
-
73
- .ProseMirror-hideselection *::selection {
74
- background: transparent;
75
- }
76
-
77
- .ProseMirror-hideselection *::-moz-selection {
78
- background: transparent;
79
- }
80
-
81
- .ProseMirror-hideselection * {
82
- caret-color: transparent;
83
- }
84
-
85
- .ProseMirror-focused .ProseMirror-gapcursor {
86
- display: block;
87
- }`;function Re(t,e,n){const s=document.querySelector("style[data-tiptap-style]");if(s!==null)return s;const r=document.createElement("style");return e&&r.setAttribute("nonce",e),r.setAttribute("data-tiptap-style",""),r.innerHTML=t,document.getElementsByTagName("head")[0].appendChild(r),r}var gs=class extends ls{constructor(t={}){super(),this.css=null,this.className="tiptap",this.editorView=null,this.isFocused=!1,this.isInitialized=!1,this.extensionStorage={},this.instanceId=Math.random().toString(36).slice(2,9),this.options={element:typeof document<"u"?document.createElement("div"):null,content:"",injectCSS:!0,injectNonce:void 0,extensions:[],autofocus:!1,editable:!0,textDirection:void 0,editorProps:{},parseOptions:{},coreExtensionOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,enableContentCheck:!1,emitContentError:!1,onBeforeCreate:()=>null,onCreate:()=>null,onMount:()=>null,onUnmount:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>null,onContentError:({error:s})=>{throw s},onPaste:()=>null,onDrop:()=>null,onDelete:()=>null,enableExtensionDispatchTransaction:!0},this.isCapturingTransaction=!1,this.capturedTransaction=null,this.utils={getUpdatedPosition:de,createMappablePosition:ue},this.setOptions(t),this.createExtensionManager(),this.createCommandManager(),this.createSchema(),this.on("beforeCreate",this.options.onBeforeCreate),this.emit("beforeCreate",{editor:this}),this.on("mount",this.options.onMount),this.on("unmount",this.options.onUnmount),this.on("contentError",this.options.onContentError),this.on("create",this.options.onCreate),this.on("update",this.options.onUpdate),this.on("selectionUpdate",this.options.onSelectionUpdate),this.on("transaction",this.options.onTransaction),this.on("focus",this.options.onFocus),this.on("blur",this.options.onBlur),this.on("destroy",this.options.onDestroy),this.on("drop",({event:s,slice:r,moved:o})=>this.options.onDrop(s,r,o)),this.on("paste",({event:s,slice:r})=>this.options.onPaste(s,r)),this.on("delete",this.options.onDelete);const e=this.createDoc(),n=Pt(e,this.options.autofocus);this.editorState=k.EditorState.create({doc:e,schema:this.schema,selection:n||void 0}),this.options.element&&this.mount(this.options.element)}mount(t){if(typeof document>"u")throw new Error("[tiptap error]: The editor cannot be mounted because there is no 'document' defined in this environment.");this.createView(t),this.emit("mount",{editor:this}),this.css&&!document.head.contains(this.css)&&document.head.appendChild(this.css),window.setTimeout(()=>{this.isDestroyed||(this.options.autofocus!==!1&&this.options.autofocus!==null&&this.commands.focus(this.options.autofocus),this.emit("create",{editor:this}),this.isInitialized=!0)},0)}unmount(){if(this.editorView){const t=this.editorView.dom;t?.editor&&delete t.editor,this.editorView.destroy()}if(this.editorView=null,this.isInitialized=!1,this.css&&!document.querySelectorAll(`.${this.className}`).length)try{typeof this.css.remove=="function"?this.css.remove():this.css.parentNode&&this.css.parentNode.removeChild(this.css)}catch(t){console.warn("Failed to remove CSS element:",t)}this.css=null,this.emit("unmount",{editor:this})}get storage(){return this.extensionStorage}get commands(){return this.commandManager.commands}chain(){return this.commandManager.chain()}can(){return this.commandManager.can()}injectCSS(){this.options.injectCSS&&typeof document<"u"&&(this.css=Re(fs,this.options.injectNonce))}setOptions(t={}){this.options={...this.options,...t},!(!this.editorView||!this.state||this.isDestroyed)&&(this.options.editorProps&&this.view.setProps(this.options.editorProps),this.view.updateState(this.state))}setEditable(t,e=!0){this.setOptions({editable:t}),e&&this.emit("update",{editor:this,transaction:this.state.tr,appendedTransactions:[]})}get isEditable(){return this.options.editable&&this.view&&this.view.editable}get view(){return this.editorView?this.editorView:new Proxy({state:this.editorState,updateState:t=>{this.editorState=t},dispatch:t=>{this.dispatchTransaction(t)},composing:!1,dragging:null,editable:!0,isDestroyed:!1},{get:(t,e)=>{if(this.editorView)return this.editorView[e];if(e==="state")return this.editorState;if(e in t)return Reflect.get(t,e);throw new Error(`[tiptap error]: The editor view is not available. Cannot access view['${e}']. The editor may not be mounted yet.`)}})}get state(){return this.editorView&&(this.editorState=this.view.state),this.editorState}registerPlugin(t,e){const n=At(e)?e(t,[...this.state.plugins]):[...this.state.plugins,t],s=this.state.reconfigure({plugins:n});return this.view.updateState(s),s}unregisterPlugin(t){if(this.isDestroyed)return;const e=this.state.plugins;let n=e;if([].concat(t).forEach(r=>{const o=typeof r=="string"?`${r}$`:r.key;n=n.filter(c=>!c.key.startsWith(o))}),e.length===n.length)return;const s=this.state.reconfigure({plugins:n});return this.view.updateState(s),s}createExtensionManager(){var t,e;const n=[...this.options.enableCoreExtensions?[Se,ke.configure({blockSeparator:(e=(t=this.options.coreExtensionOptions)==null?void 0:t.clipboardTextSerializer)==null?void 0:e.blockSeparator}),we,Te,Ce,$e,Me,Pe,xe,Oe.configure({direction:this.options.textDirection})].filter(s=>typeof this.options.enableCoreExtensions=="object"?this.options.enableCoreExtensions[s.name]!==!1:!0):[],...this.options.extensions].filter(s=>["extension","node","mark"].includes(s?.type));this.extensionManager=new ht(n,this)}createCommandManager(){this.commandManager=new Z({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createDoc(){let t;try{t=rt(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:this.options.enableContentCheck})}catch(e){if(!(e instanceof Error)||!["[tiptap error]: Invalid JSON content","[tiptap error]: Invalid HTML content"].includes(e.message))throw e;this.emit("contentError",{editor:this,error:e,disableCollaboration:()=>{"collaboration"in this.storage&&typeof this.storage.collaboration=="object"&&this.storage.collaboration&&(this.storage.collaboration.isDisabled=!0),this.options.extensions=this.options.extensions.filter(n=>n.name!=="collaboration"),this.createExtensionManager()}}),t=rt(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:!1})}return t}createView(t){const{editorProps:e,enableExtensionDispatchTransaction:n}=this.options,s=e.dispatchTransaction||this.dispatchTransaction.bind(this),r=n?this.extensionManager.dispatchTransaction(s):s,o=e.transformPastedHTML,c=this.extensionManager.transformPastedHTML(o);this.editorView=new Fe.EditorView(t,{...e,attributes:{role:"textbox",...e?.attributes},dispatchTransaction:r,transformPastedHTML:c,state:this.editorState,markViews:this.extensionManager.markViews,nodeViews:this.extensionManager.nodeViews});const i=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(i),this.prependClass(),this.injectCSS();const a=this.view.dom;a.editor=this}createNodeViews(){this.view.isDestroyed||this.view.setProps({markViews:this.extensionManager.markViews,nodeViews:this.extensionManager.nodeViews})}prependClass(){this.view.dom.className=`${this.className} ${this.view.dom.className}`}captureTransaction(t){this.isCapturingTransaction=!0,t(),this.isCapturingTransaction=!1;const e=this.capturedTransaction;return this.capturedTransaction=null,e}dispatchTransaction(t){if(this.view.isDestroyed)return;if(this.isCapturingTransaction){if(!this.capturedTransaction){this.capturedTransaction=t;return}t.steps.forEach(l=>{var d;return(d=this.capturedTransaction)==null?void 0:d.step(l)});return}const{state:e,transactions:n}=this.state.applyTransaction(t),s=!this.state.selection.eq(e.selection),r=n.includes(t),o=this.state;if(this.emit("beforeTransaction",{editor:this,transaction:t,nextState:e}),!r)return;this.view.updateState(e),this.emit("transaction",{editor:this,transaction:t,appendedTransactions:n.slice(1)}),s&&this.emit("selectionUpdate",{editor:this,transaction:t});const c=n.findLast(l=>l.getMeta("focus")||l.getMeta("blur")),i=c?.getMeta("focus"),a=c?.getMeta("blur");i&&this.emit("focus",{editor:this,event:i.event,transaction:c}),a&&this.emit("blur",{editor:this,event:a.event,transaction:c}),!(t.getMeta("preventUpdate")||!n.some(l=>l.docChanged)||o.doc.eq(e.doc))&&this.emit("update",{editor:this,transaction:t,appendedTransactions:n.slice(1)})}getAttributes(t){return re(this.state,t)}isActive(t,e){const n=typeof t=="string"?t:null,s=typeof t=="string"?e:t;return ce(this.state,n,s)}getJSON(){return this.state.doc.toJSON()}getHTML(){return lt(this.state.doc.content,this.schema)}getText(t){const{blockSeparator:e=`
88
-
89
- `,textSerializers:n={}}=t||{};return ne(this.state.doc,{blockSeparator:e,textSerializers:{...jt(this.schema),...n}})}get isEmpty(){return ut(this.state.doc)}destroy(){this.emit("destroy"),this.unmount(),this.removeAllListeners()}get isDestroyed(){var t,e;return(e=(t=this.editorView)==null?void 0:t.isDestroyed)!=null?e:!0}$node(t,e){var n;return((n=this.$doc)==null?void 0:n.querySelector(t,e))||null}$nodes(t,e){var n;return((n=this.$doc)==null?void 0:n.querySelectorAll(t,e))||null}$pos(t){const e=this.state.doc.resolve(t);return new Ae(e,this)}get $doc(){return this.$pos(0)}};function ys(t){return new tt({find:t.find,handler:({state:e,range:n,match:s})=>{const r=S(t.getAttributes,void 0,s);if(r===!1||r===null)return null;const{tr:o}=e,c=s[s.length-1],i=s[0];if(c){const a=i.search(/\S/),l=n.from+i.indexOf(c),d=l+c.length;if(It(n.from,n.to,e.doc).filter(u=>u.mark.type.excluded.find(h=>h===t.type&&h!==u.mark.type)).filter(u=>u.to>l).length)return null;d<n.to&&o.delete(d,n.to),l>n.from&&o.delete(n.from+a,l);const p=n.from+a+c.length;o.addMark(n.from+a,p,t.type.create(r||{})),o.removeStoredMark(t.type)}},undoable:t.undoable})}function vs(t){return new tt({find:t.find,handler:({state:e,range:n,match:s})=>{const r=S(t.getAttributes,void 0,s)||{},{tr:o}=e,c=n.from;let i=n.to;const a=t.type.create(r);if(s[1]){const l=s[0].lastIndexOf(s[1]);let d=c+l;d>i?d=i:i=d+s[1].length;const p=s[0][s[0].length-1];o.insertText(p,c+s[0].length-1),o.replaceWith(d,i,a)}else if(s[0]){const l=t.type.isInline?c:c-1;o.insert(l,t.type.create(r)).delete(o.mapping.map(c),o.mapping.map(i))}o.scrollIntoView()},undoable:t.undoable})}function bs(t){return new tt({find:t.find,handler:({state:e,range:n,match:s})=>{const r=e.doc.resolve(n.from),o=S(t.getAttributes,void 0,s)||{};if(!r.node(-1).canReplaceWith(r.index(-1),r.indexAfter(-1),t.type))return null;e.tr.delete(n.from,n.to).setBlockType(n.from,n.from,t.type,o)},undoable:t.undoable})}function ks(t){return new tt({find:t.find,handler:({state:e,range:n,match:s,chain:r})=>{const o=S(t.getAttributes,void 0,s)||{},c=e.tr.delete(n.from,n.to),i=c.doc.resolve(n.from).blockRange(),a=i&&O.findWrapping(i,t.type,o);if(!a)return null;if(c.wrap(i,a),t.keepMarks&&t.editor){const{selection:d,storedMarks:p}=e,{splittableMarks:u}=t.editor.extensionManager,h=p||d.$to.parentOffset&&d.$from.marks();if(h){const m=h.filter(f=>u.includes(f.type.name));c.ensureMarks(m)}}if(t.keepAttributes){const d=t.type.name==="bulletList"||t.type.name==="orderedList"?"listItem":"taskList";r().updateAttributes(d,o).run()}const l=c.doc.resolve(n.from-1).nodeBefore;l&&l.type===t.type&&O.canJoin(c.doc,n.from-1)&&(!t.joinPredicate||t.joinPredicate(s,l))&&c.join(n.from-1)},undoable:t.undoable})}var ws=t=>"touches"in t,xs=class{constructor(t){this.directions=["bottom-left","bottom-right","top-left","top-right"],this.minSize={height:8,width:8},this.preserveAspectRatio=!1,this.classNames={container:"",wrapper:"",handle:"",resizing:""},this.initialWidth=0,this.initialHeight=0,this.aspectRatio=1,this.isResizing=!1,this.activeHandle=null,this.startX=0,this.startY=0,this.startWidth=0,this.startHeight=0,this.isShiftKeyPressed=!1,this.lastEditableState=void 0,this.handleMap=new Map,this.handleMouseMove=i=>{if(!this.isResizing||!this.activeHandle)return;const a=i.clientX-this.startX,l=i.clientY-this.startY;this.handleResize(a,l)},this.handleTouchMove=i=>{if(!this.isResizing||!this.activeHandle)return;const a=i.touches[0];if(!a)return;const l=a.clientX-this.startX,d=a.clientY-this.startY;this.handleResize(l,d)},this.handleMouseUp=()=>{if(!this.isResizing)return;const i=this.element.offsetWidth,a=this.element.offsetHeight;this.onCommit(i,a),this.isResizing=!1,this.activeHandle=null,this.container.dataset.resizeState="false",this.classNames.resizing&&this.container.classList.remove(this.classNames.resizing),document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp),document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("keyup",this.handleKeyUp)},this.handleKeyDown=i=>{i.key==="Shift"&&(this.isShiftKeyPressed=!0)},this.handleKeyUp=i=>{i.key==="Shift"&&(this.isShiftKeyPressed=!1)};var e,n,s,r,o,c;this.node=t.node,this.editor=t.editor,this.element=t.element,this.contentElement=t.contentElement,this.getPos=t.getPos,this.onResize=t.onResize,this.onCommit=t.onCommit,this.onUpdate=t.onUpdate,(e=t.options)!=null&&e.min&&(this.minSize={...this.minSize,...t.options.min}),(n=t.options)!=null&&n.max&&(this.maxSize=t.options.max),(s=t?.options)!=null&&s.directions&&(this.directions=t.options.directions),(r=t.options)!=null&&r.preserveAspectRatio&&(this.preserveAspectRatio=t.options.preserveAspectRatio),(o=t.options)!=null&&o.className&&(this.classNames={container:t.options.className.container||"",wrapper:t.options.className.wrapper||"",handle:t.options.className.handle||"",resizing:t.options.className.resizing||""}),(c=t.options)!=null&&c.createCustomHandle&&(this.createCustomHandle=t.options.createCustomHandle),this.wrapper=this.createWrapper(),this.container=this.createContainer(),this.applyInitialSize(),this.attachHandles(),this.editor.on("update",this.handleEditorUpdate.bind(this))}get dom(){return this.container}get contentDOM(){var t;return(t=this.contentElement)!=null?t:null}handleEditorUpdate(){const t=this.editor.isEditable;t!==this.lastEditableState&&(this.lastEditableState=t,t?t&&this.handleMap.size===0&&this.attachHandles():this.removeHandles())}update(t,e,n){return t.type!==this.node.type?!1:(this.node=t,this.onUpdate?this.onUpdate(t,e,n):!0)}destroy(){this.isResizing&&(this.container.dataset.resizeState="false",this.classNames.resizing&&this.container.classList.remove(this.classNames.resizing),document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp),document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("keyup",this.handleKeyUp),this.isResizing=!1,this.activeHandle=null),this.editor.off("update",this.handleEditorUpdate.bind(this)),this.container.remove()}createContainer(){const t=document.createElement("div");return t.dataset.resizeContainer="",t.dataset.node=this.node.type.name,t.style.display="flex",this.classNames.container&&(t.className=this.classNames.container),t.appendChild(this.wrapper),t}createWrapper(){const t=document.createElement("div");return t.style.position="relative",t.style.display="block",t.dataset.resizeWrapper="",this.classNames.wrapper&&(t.className=this.classNames.wrapper),t.appendChild(this.element),t}createHandle(t){const e=document.createElement("div");return e.dataset.resizeHandle=t,e.style.position="absolute",this.classNames.handle&&(e.className=this.classNames.handle),e}positionHandle(t,e){const n=e.includes("top"),s=e.includes("bottom"),r=e.includes("left"),o=e.includes("right");n&&(t.style.top="0"),s&&(t.style.bottom="0"),r&&(t.style.left="0"),o&&(t.style.right="0"),(e==="top"||e==="bottom")&&(t.style.left="0",t.style.right="0"),(e==="left"||e==="right")&&(t.style.top="0",t.style.bottom="0")}attachHandles(){this.directions.forEach(t=>{let e;this.createCustomHandle?e=this.createCustomHandle(t):e=this.createHandle(t),e instanceof HTMLElement||(console.warn(`[ResizableNodeView] createCustomHandle("${t}") did not return an HTMLElement. Falling back to default handle.`),e=this.createHandle(t)),this.createCustomHandle||this.positionHandle(e,t),e.addEventListener("mousedown",n=>this.handleResizeStart(n,t)),e.addEventListener("touchstart",n=>this.handleResizeStart(n,t)),this.handleMap.set(t,e),this.wrapper.appendChild(e)})}removeHandles(){this.handleMap.forEach(t=>t.remove()),this.handleMap.clear()}applyInitialSize(){const t=this.node.attrs.width,e=this.node.attrs.height;t?(this.element.style.width=`${t}px`,this.initialWidth=t):this.initialWidth=this.element.offsetWidth,e?(this.element.style.height=`${e}px`,this.initialHeight=e):this.initialHeight=this.element.offsetHeight,this.initialWidth>0&&this.initialHeight>0&&(this.aspectRatio=this.initialWidth/this.initialHeight)}handleResizeStart(t,e){t.preventDefault(),t.stopPropagation(),this.isResizing=!0,this.activeHandle=e,ws(t)?(this.startX=t.touches[0].clientX,this.startY=t.touches[0].clientY):(this.startX=t.clientX,this.startY=t.clientY),this.startWidth=this.element.offsetWidth,this.startHeight=this.element.offsetHeight,this.startWidth>0&&this.startHeight>0&&(this.aspectRatio=this.startWidth/this.startHeight),this.getPos(),this.container.dataset.resizeState="true",this.classNames.resizing&&this.container.classList.add(this.classNames.resizing),document.addEventListener("mousemove",this.handleMouseMove),document.addEventListener("touchmove",this.handleTouchMove),document.addEventListener("mouseup",this.handleMouseUp),document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("keyup",this.handleKeyUp)}handleResize(t,e){if(!this.activeHandle)return;const n=this.preserveAspectRatio||this.isShiftKeyPressed,{width:s,height:r}=this.calculateNewDimensions(this.activeHandle,t,e),o=this.applyConstraints(s,r,n);this.element.style.width=`${o.width}px`,this.element.style.height=`${o.height}px`,this.onResize&&this.onResize(o.width,o.height)}calculateNewDimensions(t,e,n){let s=this.startWidth,r=this.startHeight;const o=t.includes("right"),c=t.includes("left"),i=t.includes("bottom"),a=t.includes("top");return o?s=this.startWidth+e:c&&(s=this.startWidth-e),i?r=this.startHeight+n:a&&(r=this.startHeight-n),(t==="right"||t==="left")&&(s=this.startWidth+(o?e:-e)),(t==="top"||t==="bottom")&&(r=this.startHeight+(i?n:-n)),this.preserveAspectRatio||this.isShiftKeyPressed?this.applyAspectRatio(s,r,t):{width:s,height:r}}applyConstraints(t,e,n){var s,r,o,c;if(!n){let l=Math.max(this.minSize.width,t),d=Math.max(this.minSize.height,e);return(s=this.maxSize)!=null&&s.width&&(l=Math.min(this.maxSize.width,l)),(r=this.maxSize)!=null&&r.height&&(d=Math.min(this.maxSize.height,d)),{width:l,height:d}}let i=t,a=e;return i<this.minSize.width&&(i=this.minSize.width,a=i/this.aspectRatio),a<this.minSize.height&&(a=this.minSize.height,i=a*this.aspectRatio),(o=this.maxSize)!=null&&o.width&&i>this.maxSize.width&&(i=this.maxSize.width,a=i/this.aspectRatio),(c=this.maxSize)!=null&&c.height&&a>this.maxSize.height&&(a=this.maxSize.height,i=a*this.aspectRatio),{width:i,height:a}}applyAspectRatio(t,e,n){return n==="left"||n==="right"?{width:t,height:t/this.aspectRatio}:n==="top"||n==="bottom"?{width:e*this.aspectRatio,height:e}:{width:t,height:t/this.aspectRatio}}};function Ms(t,e){const{selection:n}=t,{$from:s}=n;if(n instanceof k.NodeSelection){const o=s.index();return s.parent.canReplaceWith(o,o+1,e)}let r=s.depth;for(;r>=0;){const o=s.index(r);if(s.node(r).contentMatchAt(o).matchType(e))return!0;r-=1}return!1}var Ne={};Et(Ne,{createAtomBlockMarkdownSpec:()=>ze,createBlockMarkdownSpec:()=>je,createInlineMarkdownSpec:()=>Ie,parseAttributes:()=>mt,parseIndentedBlocks:()=>De,renderNestedMarkdownContent:()=>Be,serializeAttributes:()=>ft});function mt(t){if(!t?.trim())return{};const e={},n=[],s=t.replace(/["']([^"']*)["']/g,a=>(n.push(a),`__QUOTED_${n.length-1}__`)),r=s.match(/(?:^|\s)\.([a-zA-Z][\w-]*)/g);if(r){const a=r.map(l=>l.trim().slice(1));e.class=a.join(" ")}const o=s.match(/(?:^|\s)#([a-zA-Z][\w-]*)/);o&&(e.id=o[1]);const c=/([a-zA-Z][\w-]*)\s*=\s*(__QUOTED_\d+__)/g;Array.from(s.matchAll(c)).forEach(([,a,l])=>{var d;const p=parseInt(((d=l.match(/__QUOTED_(\d+)__/))==null?void 0:d[1])||"0",10),u=n[p];u&&(e[a]=u.slice(1,-1))});const i=s.replace(/(?:^|\s)\.([a-zA-Z][\w-]*)/g,"").replace(/(?:^|\s)#([a-zA-Z][\w-]*)/g,"").replace(/([a-zA-Z][\w-]*)\s*=\s*__QUOTED_\d+__/g,"").trim();return i&&i.split(/\s+/).filter(Boolean).forEach(a=>{a.match(/^[a-zA-Z][\w-]*$/)&&(e[a]=!0)}),e}function ft(t){if(!t||Object.keys(t).length===0)return"";const e=[];return t.class&&String(t.class).split(/\s+/).filter(Boolean).forEach(n=>e.push(`.${n}`)),t.id&&e.push(`#${t.id}`),Object.entries(t).forEach(([n,s])=>{n==="class"||n==="id"||(s===!0?e.push(n):s!==!1&&s!=null&&e.push(`${n}="${String(s)}"`))}),e.join(" ")}function ze(t){const{nodeName:e,name:n,parseAttributes:s=mt,serializeAttributes:r=ft,defaultAttributes:o={},requiredAttributes:c=[],allowedAttributes:i}=t,a=n||e,l=d=>{if(!i)return d;const p={};return i.forEach(u=>{u in d&&(p[u]=d[u])}),p};return{parseMarkdown:(d,p)=>{const u={...o,...d.attributes};return p.createNode(e,u,[])},markdownTokenizer:{name:e,level:"block",start(d){var p;const u=new RegExp(`^:::${a}(?:\\s|$)`,"m"),h=(p=d.match(u))==null?void 0:p.index;return h!==void 0?h:-1},tokenize(d,p,u){const h=new RegExp(`^:::${a}(?:\\s+\\{([^}]*)\\})?\\s*:::(?:\\n|$)`),m=d.match(h);if(!m)return;const f=m[1]||"",g=s(f);if(!c.find(y=>!(y in g)))return{type:e,raw:m[0],attributes:g}}},renderMarkdown:d=>{const p=l(d.attrs||{}),u=r(p),h=u?` {${u}}`:"";return`:::${a}${h} :::`}}}function je(t){const{nodeName:e,name:n,getContent:s,parseAttributes:r=mt,serializeAttributes:o=ft,defaultAttributes:c={},content:i="block",allowedAttributes:a}=t,l=n||e,d=p=>{if(!a)return p;const u={};return a.forEach(h=>{h in p&&(u[h]=p[h])}),u};return{parseMarkdown:(p,u)=>{let h;if(s){const f=s(p);h=typeof f=="string"?[{type:"text",text:f}]:f}else i==="block"?h=u.parseChildren(p.tokens||[]):h=u.parseInline(p.tokens||[]);const m={...c,...p.attributes};return u.createNode(e,m,h)},markdownTokenizer:{name:e,level:"block",start(p){var u;const h=new RegExp(`^:::${l}`,"m"),m=(u=p.match(h))==null?void 0:u.index;return m!==void 0?m:-1},tokenize(p,u,h){var m;const f=new RegExp(`^:::${l}(?:\\s+\\{([^}]*)\\})?\\s*\\n`),g=p.match(f);if(!g)return;const[y,b=""]=g,x=r(b);let M=1;const w=y.length;let E="";const P=/^:::([\w-]*)(\s.*)?/gm,A=p.slice(w);for(P.lastIndex=0;;){const z=P.exec(A);if(z===null)break;const et=z.index,gt=z[1];if(!((m=z[2])!=null&&m.endsWith(":::"))){if(gt)M+=1;else if(M-=1,M===0){const Ht=A.slice(0,et);E=Ht.trim();const Ve=p.slice(0,w+et+z[0].length);let I=[];if(E)if(i==="block")for(I=h.blockTokens(Ht),I.forEach(j=>{j.text&&(!j.tokens||j.tokens.length===0)&&(j.tokens=h.inlineTokens(j.text))});I.length>0;){const j=I[I.length-1];if(j.type==="paragraph"&&(!j.text||j.text.trim()===""))I.pop();else break}else I=h.inlineTokens(E);return{type:e,raw:Ve,attributes:x,content:E,tokens:I}}}}}},renderMarkdown:(p,u)=>{const h=d(p.attrs||{}),m=o(h),f=m?` {${m}}`:"",g=u.renderChildren(p.content||[],`
90
-
91
- `);return`:::${l}${f}
92
-
93
- ${g}
94
-
95
- :::`}}}function Ss(t){if(!t.trim())return{};const e={},n=/(\w+)=(?:"([^"]*)"|'([^']*)')/g;let s=n.exec(t);for(;s!==null;){const[,r,o,c]=s;e[r]=o||c,s=n.exec(t)}return e}function Es(t){return Object.entries(t).filter(([,e])=>e!=null).map(([e,n])=>`${e}="${n}"`).join(" ")}function Ie(t){const{nodeName:e,name:n,getContent:s,parseAttributes:r=Ss,serializeAttributes:o=Es,defaultAttributes:c={},selfClosing:i=!1,allowedAttributes:a}=t,l=n||e,d=u=>{if(!a)return u;const h={};return a.forEach(m=>{const f=typeof m=="string"?m:m.name,g=typeof m=="string"?void 0:m.skipIfDefault;if(f in u){const y=u[f];if(g!==void 0&&y===g)return;h[f]=y}}),h},p=l.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return{parseMarkdown:(u,h)=>{const m={...c,...u.attributes};if(i)return h.createNode(e,m);const f=s?s(u):u.content||"";return f?h.createNode(e,m,[h.createTextNode(f)]):h.createNode(e,m,[])},markdownTokenizer:{name:e,level:"inline",start(u){const h=i?new RegExp(`\\[${p}\\s*[^\\]]*\\]`):new RegExp(`\\[${p}\\s*[^\\]]*\\][\\s\\S]*?\\[\\/${p}\\]`),m=u.match(h),f=m?.index;return f!==void 0?f:-1},tokenize(u,h,m){const f=i?new RegExp(`^\\[${p}\\s*([^\\]]*)\\]`):new RegExp(`^\\[${p}\\s*([^\\]]*)\\]([\\s\\S]*?)\\[\\/${p}\\]`),g=u.match(f);if(!g)return;let y="",b="";if(i){const[,M]=g;b=M}else{const[,M,w]=g;b=M,y=w||""}const x=r(b.trim());return{type:e,raw:g[0],content:y.trim(),attributes:x}}},renderMarkdown:u=>{let h="";s?h=s(u):u.content&&u.content.length>0&&(h=u.content.filter(y=>y.type==="text").map(y=>y.text).join(""));const m=d(u.attrs||{}),f=o(m),g=f?` ${f}`:"";return i?`[${l}${g}]`:`[${l}${g}]${h}[/${l}]`}}}function De(t,e,n){var s,r,o,c;const i=t.split(`
96
- `),a=[];let l="",d=0;const p=e.baseIndentSize||2;for(;d<i.length;){const u=i[d],h=u.match(e.itemPattern);if(!h){if(a.length>0)break;if(u.trim()===""){d+=1,l=`${l}${u}
97
- `;continue}else return}const m=e.extractItemData(h),{indentLevel:f,mainContent:g}=m;l=`${l}${u}
98
- `;const y=[g];for(d+=1;d<i.length;){const w=i[d];if(w.trim()===""){const E=i.slice(d+1).findIndex(P=>P.trim()!=="");if(E===-1)break;if((((r=(s=i[d+1+E].match(/^(\s*)/))==null?void 0:s[1])==null?void 0:r.length)||0)>f){y.push(w),l=`${l}${w}
99
- `,d+=1;continue}else break}if((((c=(o=w.match(/^(\s*)/))==null?void 0:o[1])==null?void 0:c.length)||0)>f)y.push(w),l=`${l}${w}
100
- `,d+=1;else break}let b;const x=y.slice(1);if(x.length>0){const w=x.map(E=>E.slice(f+p)).join(`
101
- `);w.trim()&&(e.customNestedParser?b=e.customNestedParser(w):b=n.blockTokens(w))}const M=e.createToken(m,b);a.push(M)}if(a.length!==0)return{items:a,raw:l}}function Be(t,e,n,s){if(!t||!Array.isArray(t.content))return"";const r=typeof n=="function"?n(s):n,[o,...c]=t.content,i=e.renderChildren([o]);let a=`${r}${i}`;return c&&c.length>0&&c.forEach((l,d)=>{var p,u;const h=(u=(p=e.renderChild)==null?void 0:p.call(e,l,d+1))!=null?u:e.renderChildren([l]);if(h!=null){const m=h.split(`
102
- `).map(f=>f?e.indent(f):e.indent("")).join(`
103
- `);a+=l.type==="paragraph"?`
104
-
105
- ${m}`:`
106
- ${m}`}}),a}function He(t,e,n={}){const{state:s}=e,{doc:r,tr:o}=s,c=t;r.descendants((i,a)=>{const l=o.mapping.map(a),d=o.mapping.map(a)+i.nodeSize;let p=null;if(i.marks.forEach(h=>{if(h!==c)return!1;p=h}),!p)return;let u=!1;if(Object.keys(n).forEach(h=>{n[h]!==p.attrs[h]&&(u=!0)}),u){const h=t.type.create({...t.attrs,...n});o.removeMark(l,d,t.type),o.addMark(l,d,h)}}),o.docChanged&&e.view.dispatch(o)}var Ts=class Le extends pt{constructor(){super(...arguments),this.type="node"}static create(e={}){const n=typeof e=="function"?e():e;return new Le(n)}configure(e){return super.configure(e)}extend(e){const n=typeof e=="function"?e():e;return super.extend(n)}};function Cs(t){return new ge({find:t.find,handler:({state:e,range:n,match:s,pasteEvent:r})=>{const o=S(t.getAttributes,void 0,s,r);if(o===!1||o===null)return null;const{tr:c}=e,i=s[s.length-1],a=s[0];let l=n.to;if(i){const d=a.search(/\S/),p=n.from+a.indexOf(i),u=p+i.length;if(It(n.from,n.to,e.doc).filter(h=>h.mark.type.excluded.find(m=>m===t.type&&m!==h.mark.type)).filter(h=>h.to>p).length)return null;u<n.to&&c.delete(u,n.to),p>n.from&&c.delete(n.from+d,p),l=n.from+d+i.length,c.addMark(n.from+d,l,t.type.create(o||{})),c.removeStoredMark(t.type)}}})}exports.CommandManager=Z;exports.Editor=gs;exports.Extendable=pt;exports.Extension=R;exports.InputRule=tt;exports.MappablePosition=Dt;exports.Mark=he;exports.Node=Ts;exports.NodePos=Ae;exports.PasteRule=ge;exports.ResizableNodeView=xs;exports.callOrReturn=S;exports.canInsertNode=Ms;exports.combineTransactionSteps=Yt;exports.commands=Tt;exports.createAtomBlockMarkdownSpec=ze;exports.createBlockMarkdownSpec=je;exports.createChainableState=X;exports.createDocument=rt;exports.createInlineMarkdownSpec=Ie;exports.createMappablePosition=ue;exports.createNodeFromContent=V;exports.createStyleTag=Re;exports.defaultBlockAt=Xt;exports.deleteProps=kt;exports.elementFromString=W;exports.extensions=ve;exports.findChildrenInRange=zn;exports.findDuplicates=ee;exports.findParentNode=G;exports.findParentNodeClosestToPos=Zt;exports.flattenExtensions=ct;exports.fromString=te;exports.getAttributes=re;exports.getAttributesFromExtensions=Rt;exports.getChangedRanges=ie;exports.getExtensionField=v;exports.getHTMLFromFragment=lt;exports.getMarkAttributes=Ot;exports.getMarkRange=at;exports.getMarkType=N;exports.getMarksBetween=It;exports.getNodeAtPosition=Bn;exports.getNodeAttributes=se;exports.getNodeType=C;exports.getRenderedAttributes=Y;exports.getSchema=In;exports.getSchemaByResolvedExtensions=Nt;exports.getSchemaTypeByName=H;exports.getSchemaTypeNameByName=Q;exports.getSplittedAttributes=q;exports.getText=ne;exports.getTextBetween=zt;exports.getTextContentFromNodes=ae;exports.getTextSerializersFromSchema=jt;exports.getUpdatedPosition=de;exports.injectExtensionAttributesToParseRule=wt;exports.inputRulesPlugin=pe;exports.isActive=ce;exports.isAndroid=bt;exports.isAtEndOfNode=Hn;exports.isAtStartOfNode=Ln;exports.isEmptyObject=Qt;exports.isExtensionRulesEnabled=xt;exports.isFunction=At;exports.isList=Mt;exports.isMacOS=$t;exports.isMarkActive=ot;exports.isNodeActive=F;exports.isNodeEmpty=ut;exports.isNodeSelection=Vn;exports.isNumber=fe;exports.isPlainObject=U;exports.isRegExp=it;exports.isSafari=qt;exports.isTextSelection=Ct;exports.isiOS=J;exports.markInputRule=ys;exports.markPasteRule=Cs;exports.markdown=Ne;exports.mergeAttributes=Gt;exports.mergeDeep=Bt;exports.minMax=D;exports.nodeInputRule=vs;exports.objectIncludes=_;exports.parseAttributes=mt;exports.parseIndentedBlocks=De;exports.pasteRulesPlugin=ye;exports.removeDuplicates=oe;exports.renderNestedMarkdownContent=Be;exports.resolveExtensions=dt;exports.resolveFocusPosition=Pt;exports.selectionToInsertionEnd=Jt;exports.serializeAttributes=ft;exports.sortExtensions=L;exports.splitExtensions=B;exports.textblockTypeInputRule=bs;exports.updateMarkViewAttributes=He;exports.wrappingInputRule=ks;
@@ -1,14 +0,0 @@
1
- /*!
2
- Copyright (c) 2026 Lenovo SSG BASD. All rights reserved.
3
- @license Proprietary
4
-
5
- This software is the confidential and proprietary property of Lenovo SSG BASD.
6
- You shall not disclose such Confidential Information and shall use it only in
7
- accordance with the terms of the license agreement.
8
-
9
- --- Build Info ---
10
- Version: 1.0.5
11
- Build Time: 2026/3/25 14:40:21
12
- Build Commit: 08d26b24db19edd5721d30cc5b166484c7968864
13
- */
14
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e=(t,r)=>{if(t==="slot")return 0;if(t instanceof Function)return t(r);const{children:n,...s}=r??{};if(t==="svg")throw new Error("SVG elements are not supported in the JSX syntax, use the array syntax instead");return[t,s,n]};exports.createElement=e;exports.h=e;exports.jsx=e;exports.jsxDEV=e;exports.jsxs=e;
@@ -1,18 +0,0 @@
1
- /*!
2
- Copyright (c) 2026 Lenovo SSG BASD. All rights reserved.
3
- @license Proprietary
4
-
5
- This software is the confidential and proprietary property of Lenovo SSG BASD.
6
- You shall not disclose such Confidential Information and shall use it only in
7
- accordance with the terms of the license agreement.
8
-
9
- --- Build Info ---
10
- Version: 1.0.5
11
- Build Time: 2026/3/25 14:40:21
12
- Build Commit: 08d26b24db19edd5721d30cc5b166484c7968864
13
- */
14
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../../core/dist/index.js"),l=require("../../core/dist/jsx-runtime/jsx-runtime.js");var a=/^\s*>\s$/,p=o.Node.create({name:"blockquote",addOptions(){return{HTMLAttributes:{}}},content:"block+",group:"block",defining:!0,parseHTML(){return[{tag:"blockquote"}]},renderHTML({HTMLAttributes:e}){return l.createElement("blockquote",{...o.mergeAttributes(this.options.HTMLAttributes,e),children:l.createElement("slot",{})})},parseMarkdown:(e,t)=>{var r;const n=(r=t.parseBlockChildren)!=null?r:t.parseChildren;return t.createNode("blockquote",void 0,n(e.tokens||[]))},renderMarkdown:(e,t)=>{if(!e.content)return"";const r=">",n=[];return e.content.forEach((u,c)=>{var i,s;const m=((s=(i=t.renderChild)==null?void 0:i.call(t,u,c))!=null?s:t.renderChildren([u])).split(`
15
- `).map(d=>d.trim()===""?r:`${r} ${d}`);n.push(m.join(`
16
- `))}),n.join(`
17
- ${r}
18
- `)},addCommands(){return{setBlockquote:()=>({commands:e})=>e.wrapIn(this.name),toggleBlockquote:()=>({commands:e})=>e.toggleWrap(this.name),unsetBlockquote:()=>({commands:e})=>e.lift(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote()}},addInputRules(){return[o.wrappingInputRule({find:a,type:this.type})]}});exports.Blockquote=p;exports.inputRegex=a;
@@ -1,14 +0,0 @@
1
- /*!
2
- Copyright (c) 2026 Lenovo SSG BASD. All rights reserved.
3
- @license Proprietary
4
-
5
- This software is the confidential and proprietary property of Lenovo SSG BASD.
6
- You shall not disclose such Confidential Information and shall use it only in
7
- accordance with the terms of the license agreement.
8
-
9
- --- Build Info ---
10
- Version: 1.0.5
11
- Build Time: 2026/3/25 14:40:21
12
- Build Commit: 08d26b24db19edd5721d30cc5b166484c7968864
13
- */
14
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../core/dist/index.js"),s=require("../../core/dist/jsx-runtime/jsx-runtime.js");var n=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/,o=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g,a=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/,d=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g,l=t.Mark.create({name:"bold",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"strong"},{tag:"b",getAttrs:e=>e.style.fontWeight!=="normal"&&null},{style:"font-weight=400",clearMark:e=>e.type.name===this.name},{style:"font-weight",getAttrs:e=>/^(bold(er)?|[5-9]\d{2,})$/.test(e)&&null}]},renderHTML({HTMLAttributes:e}){return s.createElement("strong",{...t.mergeAttributes(this.options.HTMLAttributes,e),children:s.createElement("slot",{})})},markdownTokenName:"strong",parseMarkdown:(e,r)=>r.applyMark("bold",r.parseInline(e.tokens||[])),markdownOptions:{htmlReopen:{open:"<strong>",close:"</strong>"}},renderMarkdown:(e,r)=>`**${r.renderChildren(e)}**`,addCommands(){return{setBold:()=>({commands:e})=>e.setMark(this.name),toggleBold:()=>({commands:e})=>e.toggleMark(this.name),unsetBold:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[t.markInputRule({find:n,type:this.type}),t.markInputRule({find:a,type:this.type})]},addPasteRules(){return[t.markPasteRule({find:o,type:this.type}),t.markPasteRule({find:d,type:this.type})]}});exports.Bold=l;exports.starInputRegex=n;exports.starPasteRegex=o;exports.underscoreInputRegex=a;exports.underscorePasteRegex=d;
@@ -1,14 +0,0 @@
1
- /*!
2
- Copyright (c) 2026 Lenovo SSG BASD. All rights reserved.
3
- @license Proprietary
4
-
5
- This software is the confidential and proprietary property of Lenovo SSG BASD.
6
- You shall not disclose such Confidential Information and shall use it only in
7
- accordance with the terms of the license agreement.
8
-
9
- --- Build Info ---
10
- Version: 1.0.5
11
- Build Time: 2026/3/25 14:40:21
12
- Build Commit: 08d26b24db19edd5721d30cc5b166484c7968864
13
- */
14
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../extensions/dist/index.js");var t=e.CharacterCount;exports.CharacterCount=e.CharacterCount;exports.default=t;
@@ -1,14 +0,0 @@
1
- /*!
2
- Copyright (c) 2026 Lenovo SSG BASD. All rights reserved.
3
- @license Proprietary
4
-
5
- This software is the confidential and proprietary property of Lenovo SSG BASD.
6
- You shall not disclose such Confidential Information and shall use it only in
7
- accordance with the terms of the license agreement.
8
-
9
- --- Build Info ---
10
- Version: 1.0.5
11
- Build Time: 2026/3/25 14:40:21
12
- Build Commit: 08d26b24db19edd5721d30cc5b166484c7968864
13
- */
14
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../core/dist/index.js");var d=/(^|[^`])`([^`]+)`(?!`)$/,n=/(^|[^`])`([^`]+)`(?!`)/g,a=t.Mark.create({name:"code",addOptions(){return{HTMLAttributes:{}}},excludes:"_",code:!0,exitable:!0,parseHTML(){return[{tag:"code"}]},renderHTML({HTMLAttributes:e}){return["code",t.mergeAttributes(this.options.HTMLAttributes,e),0]},markdownTokenName:"codespan",parseMarkdown:(e,r)=>r.applyMark("code",[{type:"text",text:e.text||""}]),renderMarkdown:(e,r)=>e.content?`\`${r.renderChildren(e.content)}\``:"",addCommands(){return{setCode:()=>({commands:e})=>e.setMark(this.name),toggleCode:()=>({commands:e})=>e.toggleMark(this.name),unsetCode:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}},addInputRules(){return[t.markInputRule({find:d,type:this.type})]},addPasteRules(){return[t.markPasteRule({find:n,type:this.type})]}});exports.Code=a;exports.inputRegex=d;exports.pasteRegex=n;
@@ -1,31 +0,0 @@
1
- /*!
2
- Copyright (c) 2026 Lenovo SSG BASD. All rights reserved.
3
- @license Proprietary
4
-
5
- This software is the confidential and proprietary property of Lenovo SSG BASD.
6
- You shall not disclose such Confidential Information and shall use it only in
7
- accordance with the terms of the license agreement.
8
-
9
- --- Build Info ---
10
- Version: 1.0.5
11
- Build Time: 2026/3/25 14:40:21
12
- Build Commit: 08d26b24db19edd5721d30cc5b166484c7968864
13
- */
14
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("../../core/dist/index.js"),h=require("../../../prosemirror-state/dist/index.js");var v=4,k=/^```([a-z]+)?[\s\n]$/,T=/^~~~([a-z]+)?[\s\n]$/,C=b.Node.create({name:"codeBlock",addOptions(){return{languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,defaultLanguage:null,enableTabIndentation:!1,tabSize:v,HTMLAttributes:{}}},content:"text*",marks:"",group:"block",code:!0,defining:!0,addAttributes(){return{language:{default:this.options.defaultLanguage,parseHTML:e=>{var t;const{languageClassPrefix:r}=this.options;return r&&[...((t=e.firstElementChild)==null?void 0:t.classList)||[]].filter(a=>a.startsWith(r)).map(a=>a.replace(r,""))[0]||null},rendered:!1}}},parseHTML(){return[{tag:"pre",preserveWhitespace:"full"}]},renderHTML({node:e,HTMLAttributes:t}){return["pre",b.mergeAttributes(this.options.HTMLAttributes,t),["code",{class:e.attrs.language?this.options.languageClassPrefix+e.attrs.language:null},0]]},markdownTokenName:"code",parseMarkdown:(e,t)=>{var r,n;return((r=e.raw)==null?void 0:r.startsWith("```"))===!1&&((n=e.raw)==null?void 0:n.startsWith("~~~"))===!1&&e.codeBlockStyle!=="indented"?[]:t.createNode("codeBlock",{language:e.lang||null},e.text?[t.createTextNode(e.text)]:[])},renderMarkdown:(e,t)=>{var r;let n="";const a=((r=e.attrs)==null?void 0:r.language)||"";return e.content?n=[`\`\`\`${a}`,t.renderChildren(e.content),"```"].join(`
15
- `):n=`\`\`\`${a}
16
-
17
- \`\`\``,n},addCommands(){return{setCodeBlock:e=>({commands:t})=>t.setNode(this.name,e),toggleCodeBlock:e=>({commands:t})=>t.toggleNode(this.name,"paragraph",e)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{const{empty:e,$anchor:t}=this.editor.state.selection,r=t.pos===1;return!e||t.parent.type.name!==this.name?!1:r||!t.parent.textContent.length?this.editor.commands.clearNodes():!1},Tab:({editor:e})=>{var t;if(!this.options.enableTabIndentation)return!1;const r=(t=this.options.tabSize)!=null?t:v,{state:n}=e,{selection:a}=n,{$from:i,empty:o}=a;if(i.parent.type!==this.type)return!1;const s=" ".repeat(r);return o?e.commands.insertContent(s):e.commands.command(({tr:d})=>{const{from:u,to:p}=a,m=n.doc.textBetween(u,p,`
18
- `,`
19
- `).split(`
20
- `).map(l=>s+l).join(`
21
- `);return d.replaceWith(u,p,n.schema.text(m)),!0})},"Shift-Tab":({editor:e})=>{var t;if(!this.options.enableTabIndentation)return!1;const r=(t=this.options.tabSize)!=null?t:v,{state:n}=e,{selection:a}=n,{$from:i,empty:o}=a;return i.parent.type!==this.type?!1:o?e.commands.command(({tr:s})=>{var d;const{pos:u}=i,p=i.start(),m=i.end(),l=n.doc.textBetween(p,m,`
22
- `,`
23
- `).split(`
24
- `);let f=0,x=0;const S=u-p;for(let c=0;c<l.length;c+=1){if(x+l[c].length>=S){f=c;break}x+=l[c].length+1}const w=((d=l[f].match(/^ */))==null?void 0:d[0])||"",y=Math.min(w.length,r);if(y===0)return!0;let g=p;for(let c=0;c<f;c+=1)g+=l[c].length+1;return s.delete(g,g+y),u-g<=y&&s.setSelection(h.TextSelection.create(s.doc,g)),!0}):e.commands.command(({tr:s})=>{const{from:d,to:u}=a,p=n.doc.textBetween(d,u,`
25
- `,`
26
- `).split(`
27
- `).map(m=>{var l;const f=((l=m.match(/^ */))==null?void 0:l[0])||"",x=Math.min(f.length,r);return m.slice(x)}).join(`
28
- `);return s.replaceWith(d,u,n.schema.text(p)),!0})},Enter:({editor:e})=>{if(!this.options.exitOnTripleEnter)return!1;const{state:t}=e,{selection:r}=t,{$from:n,empty:a}=r;if(!a||n.parent.type!==this.type)return!1;const i=n.parentOffset===n.parent.nodeSize-2,o=n.parent.textContent.endsWith(`
29
-
30
- `);return!i||!o?!1:e.chain().command(({tr:s})=>(s.delete(n.pos-2,n.pos),!0)).exitCode().run()},ArrowDown:({editor:e})=>{if(!this.options.exitOnArrowDown)return!1;const{state:t}=e,{selection:r,doc:n}=t,{$from:a,empty:i}=r;if(!i||a.parent.type!==this.type||a.parentOffset!==a.parent.nodeSize-2)return!1;const o=a.after();return o===void 0?!1:n.nodeAt(o)?e.commands.command(({tr:s})=>(s.setSelection(h.Selection.near(n.resolve(o))),!0)):e.commands.exitCode()}}},addInputRules(){return[b.textblockTypeInputRule({find:k,type:this.type,getAttributes:e=>({language:e[1]})}),b.textblockTypeInputRule({find:T,type:this.type,getAttributes:e=>({language:e[1]})})]},addProseMirrorPlugins(){return[new h.Plugin({key:new h.PluginKey("codeBlockVSCodeHandler"),props:{handlePaste:(e,t)=>{if(!t.clipboardData||this.editor.isActive(this.type.name))return!1;const r=t.clipboardData.getData("text/plain"),n=t.clipboardData.getData("vscode-editor-data"),a=n?JSON.parse(n):void 0,i=a?.mode;if(!r||!i)return!1;const{tr:o,schema:s}=e.state,d=s.text(r.replace(/\r\n?/g,`
31
- `));return o.replaceSelectionWith(this.type.create({language:i},d)),o.selection.$from.parent.type!==this.type&&o.setSelection(h.TextSelection.near(o.doc.resolve(Math.max(0,o.selection.from-2)))),o.setMeta("paste",!0),e.dispatch(o),!0}}})]}});exports.CodeBlock=C;exports.backtickInputRegex=k;exports.tildeInputRegex=T;
@@ -1,16 +0,0 @@
1
- /*!
2
- Copyright (c) 2026 Lenovo SSG BASD. All rights reserved.
3
- @license Proprietary
4
-
5
- This software is the confidential and proprietary property of Lenovo SSG BASD.
6
- You shall not disclose such Confidential Information and shall use it only in
7
- accordance with the terms of the license agreement.
8
-
9
- --- Build Info ---
10
- Version: 1.0.5
11
- Build Time: 2026/3/25 14:40:21
12
- Build Commit: 08d26b24db19edd5721d30cc5b166484c7968864
13
- */
14
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("../../core/dist/index.js");var o=n.Node.create({name:"doc",topNode:!0,content:"block+",renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,`
15
-
16
- `):""});exports.Document=o;
@@ -1,16 +0,0 @@
1
- /*!
2
- Copyright (c) 2026 Lenovo SSG BASD. All rights reserved.
3
- @license Proprietary
4
-
5
- This software is the confidential and proprietary property of Lenovo SSG BASD.
6
- You shall not disclose such Confidential Information and shall use it only in
7
- accordance with the terms of the license agreement.
8
-
9
- --- Build Info ---
10
- Version: 1.0.5
11
- Build Time: 2026/3/25 14:40:21
12
- Build Commit: 08d26b24db19edd5721d30cc5b166484c7968864
13
- */
14
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("../../core/dist/index.js");var l=n.Node.create({name:"hardBreak",markdownTokenName:"br",addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:"inline",selectable:!1,linebreakReplacement:!0,parseHTML(){return[{tag:"br"}]},renderHTML({HTMLAttributes:e}){return["br",n.mergeAttributes(this.options.HTMLAttributes,e)]},renderText(){return`
15
- `},renderMarkdown:()=>`
16
- `,parseMarkdown:()=>({type:"hardBreak"}),addCommands(){return{setHardBreak:()=>({commands:e,chain:a,state:s,editor:i})=>e.first([()=>e.exitCode(),()=>e.command(()=>{const{selection:r,storedMarks:o}=s;if(r.$from.parent.type.spec.isolating)return!1;const{keepMarks:d}=this.options,{splittableMarks:u}=i.extensionManager,t=o||r.$to.parentOffset&&r.$from.marks();return a().insertContent({type:this.name}).command(({tr:m,dispatch:c})=>{if(c&&t&&d){const k=t.filter(p=>u.includes(p.type.name));m.ensureMarks(k)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}});exports.HardBreak=l;
@@ -1,14 +0,0 @@
1
- /*!
2
- Copyright (c) 2026 Lenovo SSG BASD. All rights reserved.
3
- @license Proprietary
4
-
5
- This software is the confidential and proprietary property of Lenovo SSG BASD.
6
- You shall not disclose such Confidential Information and shall use it only in
7
- accordance with the terms of the license agreement.
8
-
9
- --- Build Info ---
10
- Version: 1.0.5
11
- Build Time: 2026/3/25 14:40:21
12
- Build Commit: 08d26b24db19edd5721d30cc5b166484c7968864
13
- */
14
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("../../core/dist/index.js");var i=n.Node.create({name:"heading",addOptions(){return{levels:[1,2,3,4,5,6],HTMLAttributes:{}}},content:"inline*",group:"block",defining:!0,addAttributes(){return{level:{default:1,rendered:!1}}},parseHTML(){return this.options.levels.map(e=>({tag:`h${e}`,attrs:{level:e}}))},renderHTML({node:e,HTMLAttributes:t}){return[`h${this.options.levels.includes(e.attrs.level)?e.attrs.level:this.options.levels[0]}`,n.mergeAttributes(this.options.HTMLAttributes,t),0]},parseMarkdown:(e,t)=>t.createNode("heading",{level:e.depth||1},t.parseInline(e.tokens||[])),renderMarkdown:(e,t)=>{var s;const l=(s=e.attrs)!=null&&s.level?parseInt(e.attrs.level,10):1,r="#".repeat(l);return e.content?`${r} ${t.renderChildren(e.content)}`:""},addCommands(){return{setHeading:e=>({commands:t})=>this.options.levels.includes(e.level)?t.setNode(this.name,e):!1,toggleHeading:e=>({commands:t})=>this.options.levels.includes(e.level)?t.toggleNode(this.name,"paragraph",e):!1}},addKeyboardShortcuts(){return this.options.levels.reduce((e,t)=>({...e,[`Mod-Alt-${t}`]:()=>this.editor.commands.toggleHeading({level:t})}),{})},addInputRules(){return this.options.levels.map(e=>n.textblockTypeInputRule({find:new RegExp(`^(#{${Math.min(...this.options.levels)},${e}})\\s$`),type:this.type,getAttributes:{level:e}}))}});exports.Heading=i;
@@ -1,14 +0,0 @@
1
- /*!
2
- Copyright (c) 2026 Lenovo SSG BASD. All rights reserved.
3
- @license Proprietary
4
-
5
- This software is the confidential and proprietary property of Lenovo SSG BASD.
6
- You shall not disclose such Confidential Information and shall use it only in
7
- accordance with the terms of the license agreement.
8
-
9
- --- Build Info ---
10
- Version: 1.0.5
11
- Build Time: 2026/3/25 14:40:21
12
- Build Commit: 08d26b24db19edd5721d30cc5b166484c7968864
13
- */
14
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../../core/dist/index.js"),s=require("../../../prosemirror-state/dist/index.js");var m=o.Node.create({name:"horizontalRule",addOptions(){return{HTMLAttributes:{},nextNodeType:"paragraph"}},group:"block",parseHTML(){return[{tag:"hr"}]},renderHTML({HTMLAttributes:r}){return["hr",o.mergeAttributes(this.options.HTMLAttributes,r)]},markdownTokenName:"hr",parseMarkdown:(r,n)=>n.createNode("horizontalRule"),renderMarkdown:()=>"---",addCommands(){return{setHorizontalRule:()=>({chain:r,state:n})=>{if(!o.canInsertNode(n,n.schema.nodes[this.name]))return!1;const{selection:a}=n,{$to:l}=a,i=r();return o.isNodeSelection(a)?i.insertContentAt(l.pos,{type:this.name}):i.insertContent({type:this.name}),i.command(({state:u,tr:e,dispatch:p})=>{if(p){const{$to:t}=e.selection,c=t.end();if(t.nodeAfter)t.nodeAfter.isTextblock?e.setSelection(s.TextSelection.create(e.doc,t.pos+1)):t.nodeAfter.isBlock?e.setSelection(s.NodeSelection.create(e.doc,t.pos)):e.setSelection(s.TextSelection.create(e.doc,t.pos));else{const h=u.schema.nodes[this.options.nextNodeType]||t.parent.type.contentMatch.defaultType,d=h?.create();d&&(e.insert(c,d),e.setSelection(s.TextSelection.create(e.doc,c+1)))}e.scrollIntoView()}return!0}).run()}}},addInputRules(){return[o.nodeInputRule({find:/^(?:---|—-|___\s|\*\*\*\s)$/,type:this.type})]}});exports.HorizontalRule=m;
@@ -1,14 +0,0 @@
1
- /*!
2
- Copyright (c) 2026 Lenovo SSG BASD. All rights reserved.
3
- @license Proprietary
4
-
5
- This software is the confidential and proprietary property of Lenovo SSG BASD.
6
- You shall not disclose such Confidential Information and shall use it only in
7
- accordance with the terms of the license agreement.
8
-
9
- --- Build Info ---
10
- Version: 1.0.5
11
- Build Time: 2026/3/25 14:40:21
12
- Build Commit: 08d26b24db19edd5721d30cc5b166484c7968864
13
- */
14
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const p=require("../../core/dist/index.js");var g=/(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/,b=p.Node.create({name:"image",addOptions(){return{inline:!1,allowBase64:!1,HTMLAttributes:{},resize:!1}},inline(){return this.options.inline},group(){return this.options.inline?"inline":"block"},draggable:!0,addAttributes(){return{src:{default:null},alt:{default:null},title:{default:null},width:{default:null},height:{default:null}}},parseHTML(){return[{tag:this.options.allowBase64?"img[src]":'img[src]:not([src^="data:"])'}]},renderHTML({HTMLAttributes:e}){return["img",p.mergeAttributes(this.options.HTMLAttributes,e)]},parseMarkdown:(e,t)=>t.createNode("image",{src:e.href,title:e.title,alt:e.text}),renderMarkdown:e=>{var t,r,l,o,a,d;const c=(r=(t=e.attrs)==null?void 0:t.src)!=null?r:"",i=(o=(l=e.attrs)==null?void 0:l.alt)!=null?o:"",u=(d=(a=e.attrs)==null?void 0:a.title)!=null?d:"";return u?`![${i}](${c} "${u}")`:`![${i}](${c})`},addNodeView(){if(!this.options.resize||!this.options.resize.enabled||typeof document>"u")return null;const{directions:e,minWidth:t,minHeight:r,alwaysPreserveAspectRatio:l}=this.options.resize;return({node:o,getPos:a,HTMLAttributes:d,editor:c})=>{const i=document.createElement("img");Object.entries(d).forEach(([n,s])=>{if(s!=null)switch(n){case"width":case"height":break;default:i.setAttribute(n,s);break}}),i.src=d.src;const u=new p.ResizableNodeView({element:i,editor:c,node:o,getPos:a,onResize:(n,s)=>{i.style.width=`${n}px`,i.style.height=`${s}px`},onCommit:(n,s)=>{const m=a();m!==void 0&&this.editor.chain().setNodeSelection(m).updateAttributes(this.name,{width:n,height:s}).run()},onUpdate:(n,s,m)=>n.type===o.type,options:{directions:e,min:{width:t,height:r},preserveAspectRatio:l===!0}}),h=u.dom;return h.style.visibility="hidden",h.style.pointerEvents="none",i.onload=()=>{h.style.visibility="",h.style.pointerEvents=""},u}},addCommands(){return{setImage:e=>({commands:t})=>t.insertContent({type:this.name,attrs:e})}},addInputRules(){return[p.nodeInputRule({find:g,type:this.type,getAttributes:e=>{const[,,t,r,l]=e;return{src:r,alt:t,title:l}}})]}}),f=b;exports.Image=b;exports.default=f;exports.inputRegex=g;
@@ -1,14 +0,0 @@
1
- /*!
2
- Copyright (c) 2026 Lenovo SSG BASD. All rights reserved.
3
- @license Proprietary
4
-
5
- This software is the confidential and proprietary property of Lenovo SSG BASD.
6
- You shall not disclose such Confidential Information and shall use it only in
7
- accordance with the terms of the license agreement.
8
-
9
- --- Build Info ---
10
- Version: 1.0.5
11
- Build Time: 2026/3/25 14:40:21
12
- Build Commit: 08d26b24db19edd5721d30cc5b166484c7968864
13
- */
14
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../core/dist/index.js");var r=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/,a=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g,n=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/,i=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g,o=t.Mark.create({name:"italic",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"em"},{tag:"i",getAttrs:e=>e.style.fontStyle!=="normal"&&null},{style:"font-style=normal",clearMark:e=>e.type.name===this.name},{style:"font-style=italic"}]},renderHTML({HTMLAttributes:e}){return["em",t.mergeAttributes(this.options.HTMLAttributes,e),0]},addCommands(){return{setItalic:()=>({commands:e})=>e.setMark(this.name),toggleItalic:()=>({commands:e})=>e.toggleMark(this.name),unsetItalic:()=>({commands:e})=>e.unsetMark(this.name)}},markdownTokenName:"em",parseMarkdown:(e,s)=>s.applyMark("italic",s.parseInline(e.tokens||[])),markdownOptions:{htmlReopen:{open:"<em>",close:"</em>"}},renderMarkdown:(e,s)=>`*${s.renderChildren(e)}*`,addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[t.markInputRule({find:r,type:this.type}),t.markInputRule({find:n,type:this.type})]},addPasteRules(){return[t.markPasteRule({find:a,type:this.type}),t.markPasteRule({find:i,type:this.type})]}});exports.Italic=o;exports.starInputRegex=r;exports.starPasteRegex=a;exports.underscoreInputRegex=n;exports.underscorePasteRegex=i;
@@ -1,14 +0,0 @@
1
- /*!
2
- Copyright (c) 2026 Lenovo SSG BASD. All rights reserved.
3
- @license Proprietary
4
-
5
- This software is the confidential and proprietary property of Lenovo SSG BASD.
6
- You shall not disclose such Confidential Information and shall use it only in
7
- accordance with the terms of the license agreement.
8
-
9
- --- Build Info ---
10
- Version: 1.0.5
11
- Build Time: 2026/3/25 14:40:21
12
- Build Commit: 08d26b24db19edd5721d30cc5b166484c7968864
13
- */
14
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("../../core/dist/index.js"),k=require("../../../linkifyjs/dist/linkify.js"),g=require("../../../prosemirror-state/dist/index.js");var P="[\0-   ᠎ -\u2029  ]",y=new RegExp(P),M=new RegExp(`${P}$`),b=new RegExp(P,"g");function C(t){return t.length===1?t[0].isLink:t.length===3&&t[1].isLink?["()","[]"].includes(t[0].value+t[2].value):!1}function x(t){return new g.Plugin({key:new g.PluginKey("autolink"),appendTransaction:(e,n,o)=>{const l=e.some(i=>i.docChanged)&&!n.doc.eq(o.doc),a=e.some(i=>i.getMeta("preventAutolink"));if(!l||a)return;const{tr:s}=o,c=p.combineTransactionSteps(n.doc,[...e]);if(p.getChangedRanges(c).forEach(({newRange:i})=>{const d=p.findChildrenInRange(o.doc,i,f=>f.isTextblock);let u,m;if(d.length>1)u=d[0],m=o.doc.textBetween(u.pos,u.pos+u.node.nodeSize,void 0," ");else if(d.length){const f=o.doc.textBetween(i.from,i.to," "," ");if(!M.test(f))return;u=d[0],m=o.doc.textBetween(u.pos,i.to,void 0," ")}if(u&&m){const f=m.split(y).filter(Boolean);if(f.length<=0)return!1;const A=f[f.length-1],L=u.pos+m.lastIndexOf(A);if(!A)return!1;const v=k.tokenize(A).map(r=>r.toObject(t.defaultProtocol));if(!C(v))return!1;v.filter(r=>r.isLink).map(r=>({...r,from:L+r.start+1,to:L+r.end+1})).filter(r=>o.schema.marks.code?!o.doc.rangeHasMark(r.from,r.to,o.schema.marks.code):!0).filter(r=>t.validate(r.value)).filter(r=>t.shouldAutoLink(r.value)).forEach(r=>{p.getMarksBetween(r.from,r.to,o.doc).some(w=>w.mark.type===t.type)||s.addMark(r.from,r.to,t.type.create({href:r.href}))})}}),!!s.steps.length)return s}})}function T(t){return new g.Plugin({key:new g.PluginKey("handleClickLink"),props:{handleClick:(e,n,o)=>{var l,a;if(o.button!==0||!e.editable)return!1;let s=null;if(o.target instanceof HTMLAnchorElement)s=o.target;else{const i=o.target;if(!i)return!1;const d=t.editor.view.dom;s=i.closest("a"),s&&!d.contains(s)&&(s=null)}if(!s)return!1;let c=!1;if(t.enableClickSelection&&(c=t.editor.commands.extendMarkRange(t.type.name)),t.openOnClick){const i=p.getAttributes(e.state,t.type.name),d=(l=s.href)!=null?l:i.href,u=(a=s.target)!=null?a:i.target;d&&(window.open(d,u),c=!0)}return c}}})}function E(t){return new g.Plugin({key:new g.PluginKey("handlePasteLink"),props:{handlePaste:(e,n,o)=>{const{shouldAutoLink:l}=t,{state:a}=e,{selection:s}=a,{empty:c}=s;if(c)return!1;let i="";o.content.forEach(u=>{i+=u.textContent});const d=k.find(i,{defaultProtocol:t.defaultProtocol}).find(u=>u.isLink&&u.value===i);return!i||!d||l!==void 0&&!l(d.value)?!1:t.editor.commands.setMark(t.type,{href:d.href})}}})}function h(t,e){const n=["http","https","ftp","ftps","mailto","tel","callto","sms","cid","xmpp"];return e&&e.forEach(o=>{const l=typeof o=="string"?o:o.scheme;l&&n.push(l)}),!t||t.replace(b,"").match(new RegExp(`^(?:(?:${n.join("|")}):|[^a-z]|[a-z0-9+.-]+(?:[^a-z+.-:]|$))`,"i"))}var R=p.Mark.create({name:"link",priority:1e3,keepOnSplit:!1,exitable:!0,onCreate(){this.options.validate&&!this.options.shouldAutoLink&&(this.options.shouldAutoLink=this.options.validate,console.warn("The `validate` option is deprecated. Rename to the `shouldAutoLink` option instead.")),this.options.protocols.forEach(t=>{if(typeof t=="string"){k.registerCustomProtocol(t);return}k.registerCustomProtocol(t.scheme,t.optionalSlashes)})},onDestroy(){k.reset()},inclusive(){return this.options.autolink},addOptions(){return{openOnClick:!0,enableClickSelection:!1,linkOnPaste:!0,autolink:!0,protocols:[],defaultProtocol:"http",HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},isAllowedUri:(t,e)=>!!h(t,e.protocols),validate:t=>!!t,shouldAutoLink:t=>{const e=/^[a-z][a-z0-9+.-]*:\/\//i.test(t),n=/^[a-z][a-z0-9+.-]*:/i.test(t);if(e||n&&!t.includes("@"))return!0;const o=(t.includes("@")?t.split("@").pop():t).split(/[/?#:]/)[0];return!(/^\d{1,3}(\.\d{1,3}){3}$/.test(o)||!/\./.test(o))}}},addAttributes(){return{href:{default:null,parseHTML(t){return t.getAttribute("href")}},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class},title:{default:null}}},parseHTML(){return[{tag:"a[href]",getAttrs:t=>{const e=t.getAttribute("href");return!e||!this.options.isAllowedUri(e,{defaultValidate:n=>!!h(n,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?!1:null}}]},renderHTML({HTMLAttributes:t}){return this.options.isAllowedUri(t.href,{defaultValidate:e=>!!h(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?["a",p.mergeAttributes(this.options.HTMLAttributes,t),0]:["a",p.mergeAttributes(this.options.HTMLAttributes,{...t,href:""}),0]},markdownTokenName:"link",parseMarkdown:(t,e)=>e.applyMark("link",e.parseInline(t.tokens||[]),{href:t.href,title:t.title||null}),renderMarkdown:(t,e)=>{var n,o,l,a;const s=(o=(n=t.attrs)==null?void 0:n.href)!=null?o:"",c=(a=(l=t.attrs)==null?void 0:l.title)!=null?a:"",i=e.renderChildren(t);return c?`[${i}](${s} "${c}")`:`[${i}](${s})`},addCommands(){return{setLink:t=>({chain:e})=>{const{href:n}=t;return this.options.isAllowedUri(n,{defaultValidate:o=>!!h(o,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?e().setMark(this.name,t).setMeta("preventAutolink",!0).run():!1},toggleLink:t=>({chain:e})=>{const{href:n}=t||{};return n&&!this.options.isAllowedUri(n,{defaultValidate:o=>!!h(o,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?!1:e().toggleMark(this.name,t,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()},unsetLink:()=>({chain:t})=>t().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[p.markPasteRule({find:t=>{const e=[];if(t){const{protocols:n,defaultProtocol:o}=this.options,l=k.find(t).filter(a=>a.isLink&&this.options.isAllowedUri(a.value,{defaultValidate:s=>!!h(s,n),protocols:n,defaultProtocol:o}));l.length&&l.forEach(a=>{this.options.shouldAutoLink(a.value)&&e.push({text:a.value,data:{href:a.href},index:a.start})})}return e},type:this.type,getAttributes:t=>{var e;return{href:(e=t.data)==null?void 0:e.href}}})]},addProseMirrorPlugins(){const t=[],{protocols:e,defaultProtocol:n}=this.options;return this.options.autolink&&t.push(x({type:this.type,defaultProtocol:this.options.defaultProtocol,validate:o=>this.options.isAllowedUri(o,{defaultValidate:l=>!!h(l,e),protocols:e,defaultProtocol:n}),shouldAutoLink:this.options.shouldAutoLink})),t.push(T({type:this.type,editor:this.editor,openOnClick:this.options.openOnClick==="whenNotEditable"?!0:this.options.openOnClick,enableClickSelection:this.options.enableClickSelection})),this.options.linkOnPaste&&t.push(E({editor:this.editor,defaultProtocol:this.options.defaultProtocol,type:this.type,shouldAutoLink:this.options.shouldAutoLink})),t}});exports.Link=R;exports.isAllowedUri=h;