@vc-shell/framework 2.0.0-alpha.0 → 2.0.0-alpha.2

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 (312) hide show
  1. package/dist/core/plugins/ai-agent/components/_internal/VcAiAgentHeader.vue.d.ts +2 -2
  2. package/dist/test-helpers.d.ts +4 -12
  3. package/dist/test-helpers.d.ts.map +1 -1
  4. package/dist/tsconfig.tsbuildinfo +1 -1
  5. package/dist/ui/components/molecules/vc-accordion/vc-accordion.vue.d.ts +1 -1
  6. package/dist/ui/components/molecules/vc-accordion/vc-accordion.vue.d.ts.map +1 -1
  7. package/dist/ui/components/molecules/vc-menu/vc-menu.vue.d.ts +1 -1
  8. package/dist/ui/components/molecules/vc-menu/vc-menu.vue.d.ts.map +1 -1
  9. package/dist/ui/components/organisms/vc-blade/_internal/BladeHeader.vue.d.ts +2 -2
  10. package/dist/ui/components/organisms/vc-blade/vc-blade.vue.d.ts +2 -2
  11. package/dist/ui/components/organisms/vc-sidebar/vc-sidebar.vue.d.ts +1 -1
  12. package/dist/ui/components/organisms/vc-sidebar/vc-sidebar.vue.d.ts.map +1 -1
  13. package/dist/ui/components/organisms/vc-table/VcDataTable.vue.d.ts +5 -5
  14. package/dist/ui/components/organisms/vc-table/VcDataTable.vue.d.ts.map +1 -1
  15. package/dist/ui/components/organisms/vc-table/components/ColumnFilter.vue.d.ts +1 -1
  16. package/dist/ui/components/organisms/vc-table/components/ColumnFilter.vue.d.ts.map +1 -1
  17. package/dist/ui/components/organisms/vc-table/components/TableRowActions.vue.d.ts +1 -1
  18. package/dist/ui/components/organisms/vc-table/components/TableRowActions.vue.d.ts.map +1 -1
  19. package/dist/ui/components/organisms/vc-table/components/TableSearchHeader.vue.d.ts +1 -1
  20. package/dist/ui/components/organisms/vc-table/components/TableSearchHeader.vue.d.ts.map +1 -1
  21. package/dist/ui/components/organisms/vc-table/components/VcColumn.vue.d.ts +3 -3
  22. package/dist/ui/components/organisms/vc-table/components/mobile/PullToRefresh.vue.d.ts +1 -1
  23. package/dist/ui/components/organisms/vc-table/components/mobile/PullToRefresh.vue.d.ts.map +1 -1
  24. package/package.json +8 -5
  25. package/dist/assets/042c75b764bc78a7.svg +0 -1
  26. package/dist/assets/0ba156439a339f2a.svg +0 -1
  27. package/dist/assets/0be560bfb22d0e72.woff2 +0 -0
  28. package/dist/assets/0d67e9e056b4c500.woff +0 -0
  29. package/dist/assets/0f590f8a94577092.svg +0 -1
  30. package/dist/assets/0fc5820f8be53a1b.svg +0 -1
  31. package/dist/assets/105efd028edc1dfe.woff +0 -0
  32. package/dist/assets/10768e2cc79fc60b.svg +0 -1
  33. package/dist/assets/11b3d25a56fd9a21.woff2 +0 -0
  34. package/dist/assets/131b34336aedaf47.woff +0 -0
  35. package/dist/assets/154365acf3010d96.woff2 +0 -0
  36. package/dist/assets/157b8721e0600ea8.svg +0 -1
  37. package/dist/assets/15e91cdd649cde9a.svg +0 -1
  38. package/dist/assets/19275e398ae57130.woff2 +0 -0
  39. package/dist/assets/19bb1c668a5db39f.woff2 +0 -0
  40. package/dist/assets/1a3e84b2457f709a.woff +0 -0
  41. package/dist/assets/1de63eb118636cce.svg +0 -1
  42. package/dist/assets/1ea01de36eb5491b.svg +0 -1
  43. package/dist/assets/2010ada3e82156ed.woff +0 -0
  44. package/dist/assets/204eaf512fde2023.svg +0 -1
  45. package/dist/assets/2088983edf42e153.svg +0 -1
  46. package/dist/assets/208f810a9321a327.svg +0 -1
  47. package/dist/assets/21220a9d10e6c558.svg +0 -1
  48. package/dist/assets/220db345a102045d.woff2 +0 -0
  49. package/dist/assets/225da11d23968333.svg +0 -1
  50. package/dist/assets/226f862dd81bdc13.woff2 +0 -0
  51. package/dist/assets/23a2d53395ddb14f.woff +0 -0
  52. package/dist/assets/259e6ad461a52ad7.svg +0 -1
  53. package/dist/assets/261e6dec4d53b9ac.woff +0 -0
  54. package/dist/assets/262f46a0b6d94bb6.svg +0 -1
  55. package/dist/assets/2857c513073467da.svg +0 -1
  56. package/dist/assets/2b3be7889467d98f.woff +0 -0
  57. package/dist/assets/2d4e6190eec72737.svg +0 -1
  58. package/dist/assets/2eba973185078bc8.woff +0 -0
  59. package/dist/assets/334d3f6bc766c516.woff +0 -0
  60. package/dist/assets/34ff7dd0c2285956.svg +0 -1
  61. package/dist/assets/3d26b7c1ab78bbe2.woff +0 -0
  62. package/dist/assets/3d892965ab4f1cbb.woff2 +0 -0
  63. package/dist/assets/3f8c4cc8099e34b6.woff2 +0 -0
  64. package/dist/assets/3fc09a6113184f16.woff +0 -0
  65. package/dist/assets/40a0e53b79ce63c6.woff2 +0 -0
  66. package/dist/assets/41275bcb979cb650.svg +0 -1
  67. package/dist/assets/434f7982590e462f.woff +0 -0
  68. package/dist/assets/475937116ee3314a.woff2 +0 -0
  69. package/dist/assets/477e1881a0394cc5.woff +0 -0
  70. package/dist/assets/489710fb710e73f0.woff +0 -0
  71. package/dist/assets/49791943b3872376.woff2 +0 -0
  72. package/dist/assets/4ae5f23e0ca888e7.woff2 +0 -0
  73. package/dist/assets/4d7a77b0e5373992.svg +0 -1
  74. package/dist/assets/4e43c74354534fb3.svg +0 -1
  75. package/dist/assets/4fe75f5117100705.svg +0 -1
  76. package/dist/assets/52e261a005074e1b.woff +0 -0
  77. package/dist/assets/5304c3d05a5f9789.woff2 +0 -0
  78. package/dist/assets/54cda5482c6c9218.woff +0 -0
  79. package/dist/assets/550f52072e8ccafe.woff2 +0 -0
  80. package/dist/assets/572bb1bb4156a9c1.svg +0 -1
  81. package/dist/assets/6075995d7e74da46.woff2 +0 -0
  82. package/dist/assets/617c4736236e199e.woff +0 -0
  83. package/dist/assets/67230f05dc94a265.svg +0 -1
  84. package/dist/assets/6798e4dd4add9b48.svg +0 -1
  85. package/dist/assets/686d4077c1e26876.woff2 +0 -0
  86. package/dist/assets/698ec6c722d4cb05.woff2 +0 -0
  87. package/dist/assets/6a3e73faf406cf33.svg +0 -1
  88. package/dist/assets/72de3a63bc0b70dd.svg +0 -1
  89. package/dist/assets/74c6a6ab81bb6340.woff2 +0 -0
  90. package/dist/assets/74ed5f8a78e71106.svg +0 -1
  91. package/dist/assets/7a5aa5abd625137f.ttf +0 -0
  92. package/dist/assets/7ce0c166fd6a1204.woff +0 -0
  93. package/dist/assets/7d55399c2a7bc985.svg +0 -1
  94. package/dist/assets/7d970675c69fca1d.woff +0 -0
  95. package/dist/assets/7eda727273fd98d3.svg +0 -1
  96. package/dist/assets/7f6ebfd707b76ca2.woff +0 -0
  97. package/dist/assets/7fa898d213fcc7bc.woff2 +0 -0
  98. package/dist/assets/861e6b7192b3b6c7.woff +0 -0
  99. package/dist/assets/8bbcde81ba21ecb2.woff2 +0 -0
  100. package/dist/assets/8f6657e5e0b8d3e4.woff +0 -0
  101. package/dist/assets/910b0d99b9e26568.svg +0 -1
  102. package/dist/assets/91fe94e424323d61.woff +0 -0
  103. package/dist/assets/92508f8707159b51.svg +0 -1
  104. package/dist/assets/9392bf1d591e1abb.svg +0 -1
  105. package/dist/assets/97e8d4984ba0713a.woff2 +0 -0
  106. package/dist/assets/9cb83236f6bb7ab1.svg +0 -1
  107. package/dist/assets/9d37314695c0b68d.woff +0 -0
  108. package/dist/assets/a03cdcd8da5bb987.woff +0 -0
  109. package/dist/assets/a18404194e3f9047.svg +0 -1
  110. package/dist/assets/a2017fe7f0a26510.svg +0 -1
  111. package/dist/assets/ab6e7190bb1492d5.woff2 +0 -0
  112. package/dist/assets/abf88f301a0730f4.svg +0 -1
  113. package/dist/assets/ac1a99b3d05d8232.woff +0 -0
  114. package/dist/assets/aed17cb6fdad2ada.woff2 +0 -0
  115. package/dist/assets/b1a596e31ad1185a.svg +0 -1
  116. package/dist/assets/b27767411c8427be.woff +0 -0
  117. package/dist/assets/b325adcae33bbe7a.svg +0 -1
  118. package/dist/assets/b372390551ca2fa1.svg +0 -1
  119. package/dist/assets/b5bb1e8fc975decd.svg +0 -1
  120. package/dist/assets/b645a4a2181b9dc1.svg +0 -1
  121. package/dist/assets/b6499ddce0a4ef7d.svg +0 -1
  122. package/dist/assets/b7ffde2383bb16ba.woff2 +0 -0
  123. package/dist/assets/b94421fadd23b0f2.svg +0 -1
  124. package/dist/assets/bb28fb0f27f1c11b.svg +0 -1
  125. package/dist/assets/c5195215cb712e9c.woff2 +0 -0
  126. package/dist/assets/c9191b638a10f67b.woff2 +0 -0
  127. package/dist/assets/c97328b91ac5cc66.woff +0 -0
  128. package/dist/assets/ca791c5ca5848a03.svg +0 -1
  129. package/dist/assets/cb32840ce330103f.woff +0 -0
  130. package/dist/assets/ccc878931d74181b.woff2 +0 -0
  131. package/dist/assets/cdc69f8b549c866d.woff2 +0 -0
  132. package/dist/assets/d084bda16abe8a56.svg +0 -1
  133. package/dist/assets/d32b129cae2fffd6.svg +0 -1
  134. package/dist/assets/d35a4c7113315758.woff2 +0 -0
  135. package/dist/assets/d3f792f54ae4c307.svg +0 -1
  136. package/dist/assets/d5a5b8630120073d.svg +0 -1
  137. package/dist/assets/d5eb20bcdcf5616a.woff2 +0 -0
  138. package/dist/assets/d5f9664ebbfb104b.svg +0 -1
  139. package/dist/assets/d84247b59449dd88.woff2 +0 -0
  140. package/dist/assets/da4b7f5883fe7743.woff2 +0 -0
  141. package/dist/assets/dceaf3b39091e6a4.woff +0 -0
  142. package/dist/assets/dd05d43ff0df2fc7.svg +0 -1
  143. package/dist/assets/e2ad5b3428289141.woff +0 -0
  144. package/dist/assets/e38acaa1757232e0.svg +0 -1
  145. package/dist/assets/e4a8550f1c7ffe36.svg +0 -1
  146. package/dist/assets/e5adb5ae3a3698f6.svg +0 -1
  147. package/dist/assets/e61a1889bac955f4.woff2 +0 -0
  148. package/dist/assets/e72bb11356af94c7.svg +0 -1
  149. package/dist/assets/e98196a9f8dcb2f0.svg +0 -1
  150. package/dist/assets/ebec912a42ad49ff.woff +0 -0
  151. package/dist/assets/ee6983981ffcbb41.woff2 +0 -0
  152. package/dist/assets/f09d89268e4c0317.svg +0 -1
  153. package/dist/assets/f239394367fcf005.woff2 +0 -0
  154. package/dist/assets/f5722262b6e7214e.woff2 +0 -0
  155. package/dist/assets/f7fc8bf46089d8b2.svg +0 -1
  156. package/dist/assets/fc829e3f399b70e0.woff2 +0 -0
  157. package/dist/assets/fe141d99763f5d2b.woff +0 -0
  158. package/dist/assets/fed13b0d59903483.svg +0 -1
  159. package/dist/assets/fed757d2c2344ead.woff2 +0 -0
  160. package/dist/assets/ffc438f20e79ce73.woff +0 -0
  161. package/dist/framework.css +0 -9
  162. package/dist/framework.js +0 -36471
  163. package/dist/vendor-boolbase-D2i1C8XR.js +0 -18
  164. package/dist/vendor-cheerio-DrsWhxJH.js +0 -1053
  165. package/dist/vendor-cheerio-select-jw4C2SiT.js +0 -191
  166. package/dist/vendor-core-js-Do_NZFHx.js +0 -880
  167. package/dist/vendor-css-select-BwGMmTuc.js +0 -622
  168. package/dist/vendor-css-what-CZZaquJM.js +0 -267
  169. package/dist/vendor-cypress-signalr-mock-itnm2wpA.js +0 -781
  170. package/dist/vendor-d3-array-9cpTrqlO.js +0 -149
  171. package/dist/vendor-d3-axis-D1_DbKLz.js +0 -74
  172. package/dist/vendor-d3-brush-CcKeJp9e.js +0 -1
  173. package/dist/vendor-d3-color-BOYE6h_9.js +0 -306
  174. package/dist/vendor-d3-dispatch-fx-WMg0D.js +0 -64
  175. package/dist/vendor-d3-ease-Cr34gv04.js +0 -8
  176. package/dist/vendor-d3-format-DaIwZvFc.js +0 -182
  177. package/dist/vendor-d3-interpolate-BYG2gvO4.js +0 -177
  178. package/dist/vendor-d3-interpolate-path-CpGLvKgS.js +0 -299
  179. package/dist/vendor-d3-path-DJOTitNW.js +0 -64
  180. package/dist/vendor-d3-scale-CC5rtdt5.js +0 -561
  181. package/dist/vendor-d3-selection-CNMxsYiL.js +0 -603
  182. package/dist/vendor-d3-shape-DBhCDMiV.js +0 -925
  183. package/dist/vendor-d3-time-DAPP210_.js +0 -212
  184. package/dist/vendor-d3-time-format-hD7iE2WG.js +0 -491
  185. package/dist/vendor-d3-timer-C1cUWKPz.js +0 -67
  186. package/dist/vendor-d3-transition-BbNQT7qF.js +0 -524
  187. package/dist/vendor-d3-zoom-CcKeJp9e.js +0 -1
  188. package/dist/vendor-date-fns-BKO3x1R1.js +0 -3102
  189. package/dist/vendor-dom-serializer-BbVuF1MQ.js +0 -213
  190. package/dist/vendor-domelementtype-B3sFIGaC.js +0 -21
  191. package/dist/vendor-domhandler-Kufn9M_V.js +0 -311
  192. package/dist/vendor-dompurify-M2Bspgo5.js +0 -553
  193. package/dist/vendor-domutils-DDRq_ial.js +0 -386
  194. package/dist/vendor-emotion-cache-eEZT5l-Q.js +0 -274
  195. package/dist/vendor-emotion-hash-DImMRhyK.js +0 -22
  196. package/dist/vendor-emotion-memoize-BcEUCz8q.js +0 -9
  197. package/dist/vendor-emotion-serialize-BSDW8NwU.js +0 -123
  198. package/dist/vendor-emotion-sheet-CS8ZBl9s.js +0 -44
  199. package/dist/vendor-emotion-unitless-B7u1PU6w.js +0 -53
  200. package/dist/vendor-emotion-utils-D7refZTM.js +0 -28
  201. package/dist/vendor-entities-J86Og8IU.js +0 -364
  202. package/dist/vendor-floating-ui-core-BoHdh92a.js +0 -432
  203. package/dist/vendor-floating-ui-dom-BvVXFZ4B.js +0 -398
  204. package/dist/vendor-floating-ui-utils-CidJRIm2.js +0 -257
  205. package/dist/vendor-floating-ui-vue-sCrhit51.js +0 -121
  206. package/dist/vendor-gridstack-Dkfw452e.js +0 -3390
  207. package/dist/vendor-headlessui-vue-Cn-RMs4E.js +0 -961
  208. package/dist/vendor-htmlparser2-BxKKzWLL.js +0 -735
  209. package/dist/vendor-internmap-Q5729_cS.js +0 -35
  210. package/dist/vendor-intlify-core-base-YZqJSEvl.js +0 -1130
  211. package/dist/vendor-intlify-message-compiler-C5QaCXcF.js +0 -952
  212. package/dist/vendor-intlify-shared-BrKs3jCC.js +0 -144
  213. package/dist/vendor-iso-639-1-rPqx9HMT.js +0 -786
  214. package/dist/vendor-juggle-resize-observer-DiSiNbbT.js +0 -286
  215. package/dist/vendor-linkify-it-LzoUhj6C.js +0 -199
  216. package/dist/vendor-linkifyjs-dCH9UYes.js +0 -701
  217. package/dist/vendor-lodash-es-BtnfG6xF.js +0 -4829
  218. package/dist/vendor-lucide-vue-next-CPgeDcFj.js +0 -33093
  219. package/dist/vendor-markdown-it-Bs9KEWkF.js +0 -2266
  220. package/dist/vendor-markdown-it-task-lists-CHCnS7dl.js +0 -69
  221. package/dist/vendor-mdurl-DZFDNdqC.js +0 -192
  222. package/dist/vendor-microsoft-applicationinsights-analytics-js-DFu_cVaY.js +0 -1207
  223. package/dist/vendor-microsoft-applicationinsights-cfgsync-js-DRQLN2Ue.js +0 -261
  224. package/dist/vendor-microsoft-applicationinsights-channel-js-BIJDcP3D.js +0 -1822
  225. package/dist/vendor-microsoft-applicationinsights-common-CJjmnDMb.js +0 -1921
  226. package/dist/vendor-microsoft-applicationinsights-core-js-BOc_o46i.js +0 -4276
  227. package/dist/vendor-microsoft-applicationinsights-dependencies-js-DDz502id.js +0 -1407
  228. package/dist/vendor-microsoft-applicationinsights-properties-js-9aDWHwXJ.js +0 -572
  229. package/dist/vendor-microsoft-applicationinsights-shims-Dton8Vqy.js +0 -43
  230. package/dist/vendor-microsoft-applicationinsights-web-DTa5YN-h.js +0 -487
  231. package/dist/vendor-microsoft-dynamicproto-js-89GEKjvR.js +0 -147
  232. package/dist/vendor-microsoft-signalr-Bgpbb4fW.js +0 -1761
  233. package/dist/vendor-module-federation-enhanced-CV1CNdJy.js +0 -22
  234. package/dist/vendor-module-federation-error-codes-DdVwX11j.js +0 -55
  235. package/dist/vendor-module-federation-runtime-CVH_lWgu.js +0 -91
  236. package/dist/vendor-module-federation-runtime-core-D5G-s9nP.js +0 -2202
  237. package/dist/vendor-module-federation-runtime-tools-CQbtw-RJ.js +0 -18
  238. package/dist/vendor-module-federation-sdk-DM4AJRa7.js +0 -683
  239. package/dist/vendor-nevware21-ts-async-D4qa7g-U.js +0 -261
  240. package/dist/vendor-nevware21-ts-utils-DII8jruI.js +0 -853
  241. package/dist/vendor-nth-check-CGMdQf59.js +0 -45
  242. package/dist/vendor-orderedmap-B3SOk52B.js +0 -103
  243. package/dist/vendor-parse5-htmlparser2-tree-adapter-BUDJ887-.js +0 -143
  244. package/dist/vendor-parse5-zq5Hn0y9.js +0 -5749
  245. package/dist/vendor-prettier-CoRReRqw.js +0 -5215
  246. package/dist/vendor-prosemirror-commands-Bv4ChObl.js +0 -385
  247. package/dist/vendor-prosemirror-dropcursor-kF5UKNFM.js +0 -86
  248. package/dist/vendor-prosemirror-gapcursor-BAwEBHgE.js +0 -203
  249. package/dist/vendor-prosemirror-history-CQYKHz3u.js +0 -248
  250. package/dist/vendor-prosemirror-keymap-CAfQyvJ7.js +0 -62
  251. package/dist/vendor-prosemirror-markdown-rpUTSG_Q.js +0 -663
  252. package/dist/vendor-prosemirror-model-DAA3avbR.js +0 -2730
  253. package/dist/vendor-prosemirror-schema-list-BNJkECdS.js +0 -87
  254. package/dist/vendor-prosemirror-state-IeimrELV.js +0 -821
  255. package/dist/vendor-prosemirror-tables-zVUKdbdQ.js +0 -1414
  256. package/dist/vendor-prosemirror-transform-BUjWd5Tb.js +0 -1525
  257. package/dist/vendor-prosemirror-view-DFpBkGRq.js +0 -3794
  258. package/dist/vendor-punycode-js-CgGegfA_.js +0 -133
  259. package/dist/vendor-rope-sequence-BWC2FSrq.js +0 -100
  260. package/dist/vendor-semver-Dar8oU3V.js +0 -1023
  261. package/dist/vendor-striptags-BrHtQQiF.js +0 -120
  262. package/dist/vendor-stylis-ClfDrgKE.js +0 -334
  263. package/dist/vendor-swiper-1bp0oJwt.js +0 -3387
  264. package/dist/vendor-tanstack-vue-virtual-CD9yLWd7.js +0 -1
  265. package/dist/vendor-throttle-debounce-CX0imT7m.js +0 -28
  266. package/dist/vendor-tiptap-core-BfrE48R3.js +0 -3884
  267. package/dist/vendor-tiptap-extension-blockquote-DG5eEgV_.js +0 -55
  268. package/dist/vendor-tiptap-extension-bold-CqPrSfgB.js +0 -74
  269. package/dist/vendor-tiptap-extension-code-Dj9HfL9x.js +0 -52
  270. package/dist/vendor-tiptap-extension-code-block-YnlbQcbJ.js +0 -215
  271. package/dist/vendor-tiptap-extension-document-DyG2LNKD.js +0 -12
  272. package/dist/vendor-tiptap-extension-hard-break-mzhqFFEq.js +0 -59
  273. package/dist/vendor-tiptap-extension-heading-DGnriW33.js +0 -63
  274. package/dist/vendor-tiptap-extension-horizontal-rule-pR7MlJHI.js +0 -56
  275. package/dist/vendor-tiptap-extension-image-BsXHNscz.js +0 -128
  276. package/dist/vendor-tiptap-extension-italic-aoCbIXRj.js +0 -73
  277. package/dist/vendor-tiptap-extension-link-DiV7DqnY.js +0 -312
  278. package/dist/vendor-tiptap-extension-list-BGYRWOyu.js +0 -722
  279. package/dist/vendor-tiptap-extension-paragraph-BEBEvW1W.js +0 -44
  280. package/dist/vendor-tiptap-extension-placeholder-ZfoeEW0T.js +0 -1
  281. package/dist/vendor-tiptap-extension-strike-6vob8J1A.js +0 -64
  282. package/dist/vendor-tiptap-extension-table-CH-0UqG-.js +0 -374
  283. package/dist/vendor-tiptap-extension-table-cell-_uzaJkJG.js +0 -1
  284. package/dist/vendor-tiptap-extension-table-header-_uzaJkJG.js +0 -1
  285. package/dist/vendor-tiptap-extension-table-row-_uzaJkJG.js +0 -1
  286. package/dist/vendor-tiptap-extension-text-CnqQVbB2.js +0 -13
  287. package/dist/vendor-tiptap-extension-text-style-Bj4bCZI1.js +0 -235
  288. package/dist/vendor-tiptap-extension-underline-CVBZMhrs.js +0 -65
  289. package/dist/vendor-tiptap-extensions-2ZbpCG7T.js +0 -296
  290. package/dist/vendor-tiptap-markdown-B7Wvo0s5.js +0 -826
  291. package/dist/vendor-tiptap-pm-DSHuSumV.js +0 -1
  292. package/dist/vendor-tiptap-starter-kit-ipneJHYV.js +0 -28
  293. package/dist/vendor-tiptap-vue-3-IfJcIOl5.js +0 -157
  294. package/dist/vendor-truncate-html-r2r8GKvW.js +0 -145
  295. package/dist/vendor-uc-micro-4lbSaZOs.js +0 -17
  296. package/dist/vendor-unovis-ts-Bue71Kwt.js +0 -2382
  297. package/dist/vendor-unovis-vue-C_K1g5KH.js +0 -446
  298. package/dist/vendor-vee-validate-i18n-zT8NxX3R.js +0 -93
  299. package/dist/vendor-vee-validate-rules-4oWUZPpG.js +0 -316
  300. package/dist/vendor-vue-currency-input-CckB4kjx.js +0 -317
  301. package/dist/vendor-vue-demi-CD9yLWd7.js +0 -1
  302. package/dist/vendor-vue-devtools-api-aVYGocXp.js +0 -93
  303. package/dist/vendor-vue-i18n-BguHiJqH.js +0 -1381
  304. package/dist/vendor-vue-router-R3V0tq8_.js +0 -6
  305. package/dist/vendor-vue3-application-insights-BmJCYUcp.js +0 -69
  306. package/dist/vendor-vue3-touch-events-DqysuuWh.js +0 -169
  307. package/dist/vendor-vuepic-vue-datepicker-CaZ_qpJp.js +0 -4998
  308. package/dist/vendor-vueuse-components-Be490f6P.js +0 -542
  309. package/dist/vendor-vueuse-core-BW8bO6-j.js +0 -5135
  310. package/dist/vendor-vueuse-shared-bmkWEEYZ.js +0 -1169
  311. package/dist/vendor-w3c-keyname-CLxH8j-f.js +0 -92
  312. package/dist/vendor-web-vitals-vrpLO1bu.js +0 -207
@@ -1,1414 +0,0 @@
1
- import { a as Z, S as M, T as E, b as ye, P as fe, N as Se } from "./vendor-prosemirror-state-IeimrELV.js";
2
- import { F as R, S as z } from "./vendor-prosemirror-model-DAA3avbR.js";
3
- import { D as X, a as q } from "./vendor-prosemirror-view-DFpBkGRq.js";
4
- import { a as Ae } from "./vendor-prosemirror-keymap-CAfQyvJ7.js";
5
- import { T as Re } from "./vendor-prosemirror-transform-BUjWd5Tb.js";
6
- let U, J;
7
- if (typeof WeakMap < "u") {
8
- let t = /* @__PURE__ */ new WeakMap();
9
- U = (e) => t.get(e), J = (e, o) => (t.set(e, o), o);
10
- } else {
11
- const t = [];
12
- let o = 0;
13
- U = (n) => {
14
- for (let l = 0; l < t.length; l += 2) if (t[l] == n) return t[l + 1];
15
- }, J = (n, l) => (o == 10 && (o = 0), t[o++] = n, t[o++] = l);
16
- }
17
- var C = class {
18
- constructor(t, e, o, n) {
19
- this.width = t, this.height = e, this.map = o, this.problems = n;
20
- }
21
- findCell(t) {
22
- for (let e = 0; e < this.map.length; e++) {
23
- const o = this.map[e];
24
- if (o != t) continue;
25
- const n = e % this.width, l = e / this.width | 0;
26
- let s = n + 1, r = l + 1;
27
- for (let c = 1; s < this.width && this.map[e + c] == o; c++) s++;
28
- for (let c = 1; r < this.height && this.map[e + this.width * c] == o; c++) r++;
29
- return {
30
- left: n,
31
- top: l,
32
- right: s,
33
- bottom: r
34
- };
35
- }
36
- throw new RangeError(`No cell with offset ${t} found`);
37
- }
38
- colCount(t) {
39
- for (let e = 0; e < this.map.length; e++) if (this.map[e] == t) return e % this.width;
40
- throw new RangeError(`No cell with offset ${t} found`);
41
- }
42
- nextCell(t, e, o) {
43
- const { left: n, right: l, top: s, bottom: r } = this.findCell(t);
44
- return e == "horiz" ? (o < 0 ? n == 0 : l == this.width) ? null : this.map[s * this.width + (o < 0 ? n - 1 : l)] : (o < 0 ? s == 0 : r == this.height) ? null : this.map[n + this.width * (o < 0 ? s - 1 : r)];
45
- }
46
- rectBetween(t, e) {
47
- const { left: o, right: n, top: l, bottom: s } = this.findCell(t), { left: r, right: c, top: i, bottom: a } = this.findCell(e);
48
- return {
49
- left: Math.min(o, r),
50
- top: Math.min(l, i),
51
- right: Math.max(n, c),
52
- bottom: Math.max(s, a)
53
- };
54
- }
55
- cellsInRect(t) {
56
- const e = [], o = {};
57
- for (let n = t.top; n < t.bottom; n++) for (let l = t.left; l < t.right; l++) {
58
- const s = n * this.width + l, r = this.map[s];
59
- o[r] || (o[r] = !0, !(l == t.left && l && this.map[s - 1] == r || n == t.top && n && this.map[s - this.width] == r) && e.push(r));
60
- }
61
- return e;
62
- }
63
- positionAt(t, e, o) {
64
- for (let n = 0, l = 0; ; n++) {
65
- const s = l + o.child(n).nodeSize;
66
- if (n == t) {
67
- let r = e + t * this.width;
68
- const c = (t + 1) * this.width;
69
- for (; r < c && this.map[r] < l; ) r++;
70
- return r == c ? s - 1 : this.map[r];
71
- }
72
- l = s;
73
- }
74
- }
75
- static get(t) {
76
- return U(t) || J(t, xe(t));
77
- }
78
- };
79
- function xe(t) {
80
- if (t.type.spec.tableRole != "table") throw new RangeError("Not a table node: " + t.type.name);
81
- const e = ve(t), o = t.childCount, n = [];
82
- let l = 0, s = null;
83
- const r = [];
84
- for (let a = 0, d = e * o; a < d; a++) n[a] = 0;
85
- for (let a = 0, d = 0; a < o; a++) {
86
- const f = t.child(a);
87
- d++;
88
- for (let p = 0; ; p++) {
89
- for (; l < n.length && n[l] != 0; ) l++;
90
- if (p == f.childCount) break;
91
- const m = f.child(p), { colspan: g, rowspan: b, colwidth: B } = m.attrs;
92
- for (let H = 0; H < b; H++) {
93
- if (H + a >= o) {
94
- (s || (s = [])).push({
95
- type: "overlong_rowspan",
96
- pos: d,
97
- n: b - H
98
- });
99
- break;
100
- }
101
- const _ = l + H * e;
102
- for (let k = 0; k < g; k++) {
103
- n[_ + k] == 0 ? n[_ + k] = d : (s || (s = [])).push({
104
- type: "collision",
105
- row: a,
106
- pos: d,
107
- n: g - k
108
- });
109
- const $ = B && B[k];
110
- if ($) {
111
- const L = (_ + k) % e * 2, K = r[L];
112
- K == null || K != $ && r[L + 1] == 1 ? (r[L] = $, r[L + 1] = 1) : K == $ && r[L + 1]++;
113
- }
114
- }
115
- }
116
- l += g, d += m.nodeSize;
117
- }
118
- const u = (a + 1) * e;
119
- let h = 0;
120
- for (; l < u; ) n[l++] == 0 && h++;
121
- h && (s || (s = [])).push({
122
- type: "missing",
123
- row: a,
124
- n: h
125
- }), d++;
126
- }
127
- (e === 0 || o === 0) && (s || (s = [])).push({ type: "zero_sized" });
128
- const c = new C(e, o, n, s);
129
- let i = !1;
130
- for (let a = 0; !i && a < r.length; a += 2) r[a] != null && r[a + 1] < o && (i = !0);
131
- return i && Me(c, r, t), c;
132
- }
133
- function ve(t) {
134
- let e = -1, o = !1;
135
- for (let n = 0; n < t.childCount; n++) {
136
- const l = t.child(n);
137
- let s = 0;
138
- if (o) for (let r = 0; r < n; r++) {
139
- const c = t.child(r);
140
- for (let i = 0; i < c.childCount; i++) {
141
- const a = c.child(i);
142
- r + a.attrs.rowspan > n && (s += a.attrs.colspan);
143
- }
144
- }
145
- for (let r = 0; r < l.childCount; r++) {
146
- const c = l.child(r);
147
- s += c.attrs.colspan, c.attrs.rowspan > 1 && (o = !0);
148
- }
149
- e == -1 ? e = s : e != s && (e = Math.max(e, s));
150
- }
151
- return e;
152
- }
153
- function Me(t, e, o) {
154
- t.problems || (t.problems = []);
155
- const n = {};
156
- for (let l = 0; l < t.map.length; l++) {
157
- const s = t.map[l];
158
- if (n[s]) continue;
159
- n[s] = !0;
160
- const r = o.nodeAt(s);
161
- if (!r) throw new RangeError(`No cell with offset ${s} found`);
162
- let c = null;
163
- const i = r.attrs;
164
- for (let a = 0; a < i.colspan; a++) {
165
- const d = e[(l + a) % t.width * 2];
166
- d != null && (!i.colwidth || i.colwidth[a] != d) && ((c || (c = Ne(i)))[a] = d);
167
- }
168
- c && t.problems.unshift({
169
- type: "colwidth mismatch",
170
- pos: s,
171
- colwidth: c
172
- });
173
- }
174
- }
175
- function Ne(t) {
176
- if (t.colwidth) return t.colwidth.slice();
177
- const e = [];
178
- for (let o = 0; o < t.colspan; o++) e.push(0);
179
- return e;
180
- }
181
- function y(t) {
182
- let e = t.cached.tableNodeTypes;
183
- if (!e) {
184
- e = t.cached.tableNodeTypes = {};
185
- for (const o in t.nodes) {
186
- const n = t.nodes[o], l = n.spec.tableRole;
187
- l && (e[l] = n);
188
- }
189
- }
190
- return e;
191
- }
192
- const N = new Z("selectingCells");
193
- function T(t) {
194
- for (let e = t.depth - 1; e > 0; e--) if (t.node(e).type.spec.tableRole == "row") return t.node(0).resolve(t.before(e + 1));
195
- return null;
196
- }
197
- function ze(t) {
198
- for (let e = t.depth; e > 0; e--) {
199
- const o = t.node(e).type.spec.tableRole;
200
- if (o === "cell" || o === "header_cell") return t.node(e);
201
- }
202
- return null;
203
- }
204
- function A(t) {
205
- const e = t.selection.$head;
206
- for (let o = e.depth; o > 0; o--) if (e.node(o).type.spec.tableRole == "row") return !0;
207
- return !1;
208
- }
209
- function O(t) {
210
- const e = t.selection;
211
- if ("$anchorCell" in e && e.$anchorCell) return e.$anchorCell.pos > e.$headCell.pos ? e.$anchorCell : e.$headCell;
212
- if ("node" in e && e.node && e.node.type.spec.tableRole == "cell") return e.$anchor;
213
- const o = T(e.$head) || ke(e.$head);
214
- if (o) return o;
215
- throw new RangeError(`No cell found around position ${e.head}`);
216
- }
217
- function ke(t) {
218
- for (let e = t.nodeAfter, o = t.pos; e; e = e.firstChild, o++) {
219
- const n = e.type.spec.tableRole;
220
- if (n == "cell" || n == "header_cell") return t.doc.resolve(o);
221
- }
222
- for (let e = t.nodeBefore, o = t.pos; e; e = e.lastChild, o--) {
223
- const n = e.type.spec.tableRole;
224
- if (n == "cell" || n == "header_cell") return t.doc.resolve(o - e.nodeSize);
225
- }
226
- }
227
- function Y(t) {
228
- return t.parent.type.spec.tableRole == "row" && !!t.nodeAfter;
229
- }
230
- function Ee(t) {
231
- return t.node(0).resolve(t.pos + t.nodeAfter.nodeSize);
232
- }
233
- function ee(t, e) {
234
- return t.depth == e.depth && t.pos >= e.start(-1) && t.pos <= e.end(-1);
235
- }
236
- function ue(t, e, o) {
237
- const n = t.node(-1), l = C.get(n), s = t.start(-1), r = l.nextCell(t.pos - s, e, o);
238
- return r == null ? null : t.node(0).resolve(s + r);
239
- }
240
- function D(t, e, o = 1) {
241
- const n = {
242
- ...t,
243
- colspan: t.colspan - o
244
- };
245
- return n.colwidth && (n.colwidth = n.colwidth.slice(), n.colwidth.splice(e, o), n.colwidth.some((l) => l > 0) || (n.colwidth = null)), n;
246
- }
247
- function he(t, e, o = 1) {
248
- const n = {
249
- ...t,
250
- colspan: t.colspan + o
251
- };
252
- if (n.colwidth) {
253
- n.colwidth = n.colwidth.slice();
254
- for (let l = 0; l < o; l++) n.colwidth.splice(e, 0, 0);
255
- }
256
- return n;
257
- }
258
- function Te(t, e, o) {
259
- const n = y(e.type.schema).header_cell;
260
- for (let l = 0; l < t.height; l++) if (e.nodeAt(t.map[o + l * t.width]).type != n) return !1;
261
- return !0;
262
- }
263
- var w = class v extends M {
264
- constructor(e, o = e) {
265
- const n = e.node(-1), l = C.get(n), s = e.start(-1), r = l.rectBetween(e.pos - s, o.pos - s), c = e.node(0), i = l.cellsInRect(r).filter((d) => d != o.pos - s);
266
- i.unshift(o.pos - s);
267
- const a = i.map((d) => {
268
- const f = n.nodeAt(d);
269
- if (!f) throw new RangeError(`No cell with offset ${d} found`);
270
- const u = s + d + 1;
271
- return new ye(c.resolve(u), c.resolve(u + f.content.size));
272
- });
273
- super(a[0].$from, a[0].$to, a), this.$anchorCell = e, this.$headCell = o;
274
- }
275
- map(e, o) {
276
- const n = e.resolve(o.map(this.$anchorCell.pos)), l = e.resolve(o.map(this.$headCell.pos));
277
- if (Y(n) && Y(l) && ee(n, l)) {
278
- const s = this.$anchorCell.node(-1) != n.node(-1);
279
- return s && this.isRowSelection() ? v.rowSelection(n, l) : s && this.isColSelection() ? v.colSelection(n, l) : new v(n, l);
280
- }
281
- return E.between(n, l);
282
- }
283
- content() {
284
- const e = this.$anchorCell.node(-1), o = C.get(e), n = this.$anchorCell.start(-1), l = o.rectBetween(this.$anchorCell.pos - n, this.$headCell.pos - n), s = {}, r = [];
285
- for (let i = l.top; i < l.bottom; i++) {
286
- const a = [];
287
- for (let d = i * o.width + l.left, f = l.left; f < l.right; f++, d++) {
288
- const u = o.map[d];
289
- if (s[u]) continue;
290
- s[u] = !0;
291
- const h = o.findCell(u);
292
- let p = e.nodeAt(u);
293
- if (!p) throw new RangeError(`No cell with offset ${u} found`);
294
- const m = l.left - h.left, g = h.right - l.right;
295
- if (m > 0 || g > 0) {
296
- let b = p.attrs;
297
- if (m > 0 && (b = D(b, 0, m)), g > 0 && (b = D(b, b.colspan - g, g)), h.left < l.left) {
298
- if (p = p.type.createAndFill(b), !p) throw new RangeError(`Could not create cell with attrs ${JSON.stringify(b)}`);
299
- } else p = p.type.create(b, p.content);
300
- }
301
- if (h.top < l.top || h.bottom > l.bottom) {
302
- const b = {
303
- ...p.attrs,
304
- rowspan: Math.min(h.bottom, l.bottom) - Math.max(h.top, l.top)
305
- };
306
- h.top < l.top ? p = p.type.createAndFill(b) : p = p.type.create(b, p.content);
307
- }
308
- a.push(p);
309
- }
310
- r.push(e.child(i).copy(R.from(a)));
311
- }
312
- const c = this.isColSelection() && this.isRowSelection() ? e : r;
313
- return new z(R.from(c), 1, 1);
314
- }
315
- replace(e, o = z.empty) {
316
- const n = e.steps.length, l = this.ranges;
317
- for (let r = 0; r < l.length; r++) {
318
- const { $from: c, $to: i } = l[r], a = e.mapping.slice(n);
319
- e.replace(a.map(c.pos), a.map(i.pos), r ? z.empty : o);
320
- }
321
- const s = M.findFrom(e.doc.resolve(e.mapping.slice(n).map(this.to)), -1);
322
- s && e.setSelection(s);
323
- }
324
- replaceWith(e, o) {
325
- this.replace(e, new z(R.from(o), 0, 0));
326
- }
327
- forEachCell(e) {
328
- const o = this.$anchorCell.node(-1), n = C.get(o), l = this.$anchorCell.start(-1), s = n.cellsInRect(n.rectBetween(this.$anchorCell.pos - l, this.$headCell.pos - l));
329
- for (let r = 0; r < s.length; r++) e(o.nodeAt(s[r]), l + s[r]);
330
- }
331
- isColSelection() {
332
- const e = this.$anchorCell.index(-1), o = this.$headCell.index(-1);
333
- if (Math.min(e, o) > 0) return !1;
334
- const n = e + this.$anchorCell.nodeAfter.attrs.rowspan, l = o + this.$headCell.nodeAfter.attrs.rowspan;
335
- return Math.max(n, l) == this.$headCell.node(-1).childCount;
336
- }
337
- static colSelection(e, o = e) {
338
- const n = e.node(-1), l = C.get(n), s = e.start(-1), r = l.findCell(e.pos - s), c = l.findCell(o.pos - s), i = e.node(0);
339
- return r.top <= c.top ? (r.top > 0 && (e = i.resolve(s + l.map[r.left])), c.bottom < l.height && (o = i.resolve(s + l.map[l.width * (l.height - 1) + c.right - 1]))) : (c.top > 0 && (o = i.resolve(s + l.map[c.left])), r.bottom < l.height && (e = i.resolve(s + l.map[l.width * (l.height - 1) + r.right - 1]))), new v(e, o);
340
- }
341
- isRowSelection() {
342
- const e = this.$anchorCell.node(-1), o = C.get(e), n = this.$anchorCell.start(-1), l = o.colCount(this.$anchorCell.pos - n), s = o.colCount(this.$headCell.pos - n);
343
- if (Math.min(l, s) > 0) return !1;
344
- const r = l + this.$anchorCell.nodeAfter.attrs.colspan, c = s + this.$headCell.nodeAfter.attrs.colspan;
345
- return Math.max(r, c) == o.width;
346
- }
347
- eq(e) {
348
- return e instanceof v && e.$anchorCell.pos == this.$anchorCell.pos && e.$headCell.pos == this.$headCell.pos;
349
- }
350
- static rowSelection(e, o = e) {
351
- const n = e.node(-1), l = C.get(n), s = e.start(-1), r = l.findCell(e.pos - s), c = l.findCell(o.pos - s), i = e.node(0);
352
- return r.left <= c.left ? (r.left > 0 && (e = i.resolve(s + l.map[r.top * l.width])), c.right < l.width && (o = i.resolve(s + l.map[l.width * (c.top + 1) - 1]))) : (c.left > 0 && (o = i.resolve(s + l.map[c.top * l.width])), r.right < l.width && (e = i.resolve(s + l.map[l.width * (r.top + 1) - 1]))), new v(e, o);
353
- }
354
- toJSON() {
355
- return {
356
- type: "cell",
357
- anchor: this.$anchorCell.pos,
358
- head: this.$headCell.pos
359
- };
360
- }
361
- static fromJSON(e, o) {
362
- return new v(e.resolve(o.anchor), e.resolve(o.head));
363
- }
364
- static create(e, o, n = o) {
365
- return new v(e.resolve(o), e.resolve(n));
366
- }
367
- getBookmark() {
368
- return new De(this.$anchorCell.pos, this.$headCell.pos);
369
- }
370
- };
371
- w.prototype.visible = !1;
372
- M.jsonID("cell", w);
373
- var De = class pe {
374
- constructor(e, o) {
375
- this.anchor = e, this.head = o;
376
- }
377
- map(e) {
378
- return new pe(e.map(this.anchor), e.map(this.head));
379
- }
380
- resolve(e) {
381
- const o = e.resolve(this.anchor), n = e.resolve(this.head);
382
- return o.parent.type.spec.tableRole == "row" && n.parent.type.spec.tableRole == "row" && o.index() < o.parent.childCount && n.index() < n.parent.childCount && ee(o, n) ? new w(o, n) : M.near(n, 1);
383
- }
384
- };
385
- function Be(t) {
386
- if (!(t.selection instanceof w)) return null;
387
- const e = [];
388
- return t.selection.forEachCell((o, n) => {
389
- e.push(q.node(n, n + o.nodeSize, { class: "selectedCell" }));
390
- }), X.create(t.doc, e);
391
- }
392
- function He({ $from: t, $to: e }) {
393
- if (t.pos == e.pos || t.pos < e.pos - 6) return !1;
394
- let o = t.pos, n = e.pos, l = t.depth;
395
- for (; l >= 0 && !(t.after(l + 1) < t.end(l)); l--, o++) ;
396
- for (let s = e.depth; s >= 0 && !(e.before(s + 1) > e.start(s)); s--, n--) ;
397
- return o == n && /row|table/.test(t.node(l).type.spec.tableRole);
398
- }
399
- function Le({ $from: t, $to: e }) {
400
- let o, n;
401
- for (let l = t.depth; l > 0; l--) {
402
- const s = t.node(l);
403
- if (s.type.spec.tableRole === "cell" || s.type.spec.tableRole === "header_cell") {
404
- o = s;
405
- break;
406
- }
407
- }
408
- for (let l = e.depth; l > 0; l--) {
409
- const s = e.node(l);
410
- if (s.type.spec.tableRole === "cell" || s.type.spec.tableRole === "header_cell") {
411
- n = s;
412
- break;
413
- }
414
- }
415
- return o !== n && e.parentOffset === 0;
416
- }
417
- function $e(t, e, o) {
418
- const n = (e || t).selection, l = (e || t).doc;
419
- let s, r;
420
- if (n instanceof Se && (r = n.node.type.spec.tableRole)) {
421
- if (r == "cell" || r == "header_cell") s = w.create(l, n.from);
422
- else if (r == "row") {
423
- const c = l.resolve(n.from + 1);
424
- s = w.rowSelection(c, c);
425
- } else if (!o) {
426
- const c = C.get(n.node), i = n.from + 1, a = i + c.map[c.width * c.height - 1];
427
- s = w.create(l, i + 1, a);
428
- }
429
- } else n instanceof E && He(n) ? s = E.create(l, n.from) : n instanceof E && Le(n) && (s = E.create(l, n.$from.start(), n.$from.end()));
430
- return s && (e || (e = t.tr)).setSelection(s), e;
431
- }
432
- const Fe = new Z("fix-tables");
433
- function me(t, e, o, n) {
434
- const l = t.childCount, s = e.childCount;
435
- e: for (let r = 0, c = 0; r < s; r++) {
436
- const i = e.child(r);
437
- for (let a = c, d = Math.min(l, r + 3); a < d; a++) if (t.child(a) == i) {
438
- c = a + 1, o += i.nodeSize;
439
- continue e;
440
- }
441
- n(i, o), c < l && t.child(c).sameMarkup(i) ? me(t.child(c), i, o + 1, n) : i.nodesBetween(0, i.content.size, n, o + 1), o += i.nodeSize;
442
- }
443
- }
444
- function Pe(t, e) {
445
- let o;
446
- const n = (l, s) => {
447
- l.type.spec.tableRole == "table" && (o = We(t, l, s, o));
448
- };
449
- return e ? e.doc != t.doc && me(e.doc, t.doc, 0, n) : t.doc.descendants(n), o;
450
- }
451
- function We(t, e, o, n) {
452
- const l = C.get(e);
453
- if (!l.problems) return n;
454
- n || (n = t.tr);
455
- const s = [];
456
- for (let i = 0; i < l.height; i++) s.push(0);
457
- for (let i = 0; i < l.problems.length; i++) {
458
- const a = l.problems[i];
459
- if (a.type == "collision") {
460
- const d = e.nodeAt(a.pos);
461
- if (!d) continue;
462
- const f = d.attrs;
463
- for (let u = 0; u < f.rowspan; u++) s[a.row + u] += a.n;
464
- n.setNodeMarkup(n.mapping.map(o + 1 + a.pos), null, D(f, f.colspan - a.n, a.n));
465
- } else if (a.type == "missing") s[a.row] += a.n;
466
- else if (a.type == "overlong_rowspan") {
467
- const d = e.nodeAt(a.pos);
468
- if (!d) continue;
469
- n.setNodeMarkup(n.mapping.map(o + 1 + a.pos), null, {
470
- ...d.attrs,
471
- rowspan: d.attrs.rowspan - a.n
472
- });
473
- } else if (a.type == "colwidth mismatch") {
474
- const d = e.nodeAt(a.pos);
475
- if (!d) continue;
476
- n.setNodeMarkup(n.mapping.map(o + 1 + a.pos), null, {
477
- ...d.attrs,
478
- colwidth: a.colwidth
479
- });
480
- } else if (a.type == "zero_sized") {
481
- const d = n.mapping.map(o);
482
- n.delete(d, d + e.nodeSize);
483
- }
484
- }
485
- let r, c;
486
- for (let i = 0; i < s.length; i++) s[i] && (r == null && (r = i), c = i);
487
- for (let i = 0, a = o + 1; i < l.height; i++) {
488
- const d = e.child(i), f = a + d.nodeSize, u = s[i];
489
- if (u > 0) {
490
- let h = "cell";
491
- d.firstChild && (h = d.firstChild.type.spec.tableRole);
492
- const p = [];
493
- for (let g = 0; g < u; g++) {
494
- const b = y(t.schema)[h].createAndFill();
495
- b && p.push(b);
496
- }
497
- const m = (i == 0 || r == i - 1) && c == i ? a + 1 : f - 1;
498
- n.insert(n.mapping.map(m), p);
499
- }
500
- a = f;
501
- }
502
- return n.setMeta(Fe, { fixTables: !0 });
503
- }
504
- function x(t) {
505
- const e = t.selection, o = O(t), n = o.node(-1), l = o.start(-1), s = C.get(n);
506
- return {
507
- ...e instanceof w ? s.rectBetween(e.$anchorCell.pos - l, e.$headCell.pos - l) : s.findCell(o.pos - l),
508
- tableStart: l,
509
- map: s,
510
- table: n
511
- };
512
- }
513
- function ge(t, { map: e, tableStart: o, table: n }, l) {
514
- let s = l > 0 ? -1 : 0;
515
- Te(e, n, l + s) && (s = l == 0 || l == e.width ? null : 0);
516
- for (let r = 0; r < e.height; r++) {
517
- const c = r * e.width + l;
518
- if (l > 0 && l < e.width && e.map[c - 1] == e.map[c]) {
519
- const i = e.map[c], a = n.nodeAt(i);
520
- t.setNodeMarkup(t.mapping.map(o + i), null, he(a.attrs, l - e.colCount(i))), r += a.attrs.rowspan - 1;
521
- } else {
522
- const i = s == null ? y(n.type.schema).cell : n.nodeAt(e.map[c + s]).type, a = e.positionAt(r, l, n);
523
- t.insert(t.mapping.map(o + a), i.createAndFill());
524
- }
525
- }
526
- return t;
527
- }
528
- function gt(t, e) {
529
- if (!A(t)) return !1;
530
- if (e) {
531
- const o = x(t);
532
- e(ge(t.tr, o, o.left));
533
- }
534
- return !0;
535
- }
536
- function wt(t, e) {
537
- if (!A(t)) return !1;
538
- if (e) {
539
- const o = x(t);
540
- e(ge(t.tr, o, o.right));
541
- }
542
- return !0;
543
- }
544
- function Ie(t, { map: e, table: o, tableStart: n }, l) {
545
- const s = t.mapping.maps.length;
546
- for (let r = 0; r < e.height; ) {
547
- const c = r * e.width + l, i = e.map[c], a = o.nodeAt(i), d = a.attrs;
548
- if (l > 0 && e.map[c - 1] == i || l < e.width - 1 && e.map[c + 1] == i) t.setNodeMarkup(t.mapping.slice(s).map(n + i), null, D(d, l - e.colCount(i)));
549
- else {
550
- const f = t.mapping.slice(s).map(n + i);
551
- t.delete(f, f + a.nodeSize);
552
- }
553
- r += d.rowspan;
554
- }
555
- }
556
- function Ct(t, e) {
557
- if (!A(t)) return !1;
558
- if (e) {
559
- const o = x(t), n = t.tr;
560
- if (o.left == 0 && o.right == o.map.width) return !1;
561
- for (let l = o.right - 1; Ie(n, o, l), l != o.left; l--) {
562
- const s = o.tableStart ? n.doc.nodeAt(o.tableStart - 1) : n.doc;
563
- if (!s) throw new RangeError("No table found");
564
- o.table = s, o.map = C.get(s);
565
- }
566
- e(n);
567
- }
568
- return !0;
569
- }
570
- function je(t, e, o) {
571
- var n;
572
- const l = y(e.type.schema).header_cell;
573
- for (let s = 0; s < t.width; s++) if (((n = e.nodeAt(t.map[s + o * t.width])) === null || n === void 0 ? void 0 : n.type) != l) return !1;
574
- return !0;
575
- }
576
- function we(t, { map: e, tableStart: o, table: n }, l) {
577
- let s = o;
578
- for (let a = 0; a < l; a++) s += n.child(a).nodeSize;
579
- const r = [];
580
- let c = l > 0 ? -1 : 0;
581
- je(e, n, l + c) && (c = l == 0 || l == e.height ? null : 0);
582
- for (let a = 0, d = e.width * l; a < e.width; a++, d++) if (l > 0 && l < e.height && e.map[d] == e.map[d - e.width]) {
583
- const f = e.map[d], u = n.nodeAt(f).attrs;
584
- t.setNodeMarkup(o + f, null, {
585
- ...u,
586
- rowspan: u.rowspan + 1
587
- }), a += u.colspan - 1;
588
- } else {
589
- var i;
590
- const f = c == null ? y(n.type.schema).cell : (i = n.nodeAt(e.map[d + c * e.width])) === null || i === void 0 ? void 0 : i.type, u = f?.createAndFill();
591
- u && r.push(u);
592
- }
593
- return t.insert(s, y(n.type.schema).row.create(null, r)), t;
594
- }
595
- function bt(t, e) {
596
- if (!A(t)) return !1;
597
- if (e) {
598
- const o = x(t);
599
- e(we(t.tr, o, o.top));
600
- }
601
- return !0;
602
- }
603
- function yt(t, e) {
604
- if (!A(t)) return !1;
605
- if (e) {
606
- const o = x(t);
607
- e(we(t.tr, o, o.bottom));
608
- }
609
- return !0;
610
- }
611
- function Oe(t, { map: e, table: o, tableStart: n }, l) {
612
- let s = 0;
613
- for (let a = 0; a < l; a++) s += o.child(a).nodeSize;
614
- const r = s + o.child(l).nodeSize, c = t.mapping.maps.length;
615
- t.delete(s + n, r + n);
616
- const i = /* @__PURE__ */ new Set();
617
- for (let a = 0, d = l * e.width; a < e.width; a++, d++) {
618
- const f = e.map[d];
619
- if (!i.has(f)) {
620
- if (i.add(f), l > 0 && f == e.map[d - e.width]) {
621
- const u = o.nodeAt(f).attrs;
622
- t.setNodeMarkup(t.mapping.slice(c).map(f + n), null, {
623
- ...u,
624
- rowspan: u.rowspan - 1
625
- }), a += u.colspan - 1;
626
- } else if (l < e.height && f == e.map[d + e.width]) {
627
- const u = o.nodeAt(f), h = u.attrs, p = u.type.create({
628
- ...h,
629
- rowspan: u.attrs.rowspan - 1
630
- }, u.content), m = e.positionAt(l + 1, a, o);
631
- t.insert(t.mapping.slice(c).map(n + m), p), a += h.colspan - 1;
632
- }
633
- }
634
- }
635
- }
636
- function St(t, e) {
637
- if (!A(t)) return !1;
638
- if (e) {
639
- const o = x(t), n = t.tr;
640
- if (o.top == 0 && o.bottom == o.map.height) return !1;
641
- for (let l = o.bottom - 1; Oe(n, o, l), l != o.top; l--) {
642
- const s = o.tableStart ? n.doc.nodeAt(o.tableStart - 1) : n.doc;
643
- if (!s) throw new RangeError("No table found");
644
- o.table = s, o.map = C.get(o.table);
645
- }
646
- e(n);
647
- }
648
- return !0;
649
- }
650
- function oe(t) {
651
- const e = t.content;
652
- return e.childCount == 1 && e.child(0).isTextblock && e.child(0).childCount == 0;
653
- }
654
- function _e({ width: t, height: e, map: o }, n) {
655
- let l = n.top * t + n.left, s = l, r = (n.bottom - 1) * t + n.left, c = l + (n.right - n.left - 1);
656
- for (let i = n.top; i < n.bottom; i++) {
657
- if (n.left > 0 && o[s] == o[s - 1] || n.right < t && o[c] == o[c + 1]) return !0;
658
- s += t, c += t;
659
- }
660
- for (let i = n.left; i < n.right; i++) {
661
- if (n.top > 0 && o[l] == o[l - t] || n.bottom < e && o[r] == o[r + t]) return !0;
662
- l++, r++;
663
- }
664
- return !1;
665
- }
666
- function At(t, e) {
667
- const o = t.selection;
668
- if (!(o instanceof w) || o.$anchorCell.pos == o.$headCell.pos) return !1;
669
- const n = x(t), { map: l } = n;
670
- if (_e(l, n)) return !1;
671
- if (e) {
672
- const s = t.tr, r = {};
673
- let c = R.empty, i, a;
674
- for (let d = n.top; d < n.bottom; d++) for (let f = n.left; f < n.right; f++) {
675
- const u = l.map[d * l.width + f], h = n.table.nodeAt(u);
676
- if (!(r[u] || !h))
677
- if (r[u] = !0, i == null)
678
- i = u, a = h;
679
- else {
680
- oe(h) || (c = c.append(h.content));
681
- const p = s.mapping.map(u + n.tableStart);
682
- s.delete(p, p + h.nodeSize);
683
- }
684
- }
685
- if (i == null || a == null) return !0;
686
- if (s.setNodeMarkup(i + n.tableStart, null, {
687
- ...he(a.attrs, a.attrs.colspan, n.right - n.left - a.attrs.colspan),
688
- rowspan: n.bottom - n.top
689
- }), c.size > 0) {
690
- const d = i + 1 + a.content.size, f = oe(a) ? i + 1 : d;
691
- s.replaceWith(f + n.tableStart, d + n.tableStart, c);
692
- }
693
- s.setSelection(new w(s.doc.resolve(i + n.tableStart))), e(s);
694
- }
695
- return !0;
696
- }
697
- function Rt(t, e) {
698
- const o = y(t.schema);
699
- return Ke(({ node: n }) => o[n.type.spec.tableRole])(t, e);
700
- }
701
- function Ke(t) {
702
- return (e, o) => {
703
- const n = e.selection;
704
- let l, s;
705
- if (n instanceof w) {
706
- if (n.$anchorCell.pos != n.$headCell.pos) return !1;
707
- l = n.$anchorCell.nodeAfter, s = n.$anchorCell.pos;
708
- } else {
709
- var r;
710
- if (l = ze(n.$from), !l) return !1;
711
- s = (r = T(n.$from)) === null || r === void 0 ? void 0 : r.pos;
712
- }
713
- if (l == null || s == null || l.attrs.colspan == 1 && l.attrs.rowspan == 1) return !1;
714
- if (o) {
715
- let c = l.attrs;
716
- const i = [], a = c.colwidth;
717
- c.rowspan > 1 && (c = {
718
- ...c,
719
- rowspan: 1
720
- }), c.colspan > 1 && (c = {
721
- ...c,
722
- colspan: 1
723
- });
724
- const d = x(e), f = e.tr;
725
- for (let h = 0; h < d.right - d.left; h++) i.push(a ? {
726
- ...c,
727
- colwidth: a && a[h] ? [a[h]] : null
728
- } : c);
729
- let u;
730
- for (let h = d.top; h < d.bottom; h++) {
731
- let p = d.map.positionAt(h, d.left, d.table);
732
- h == d.top && (p += l.nodeSize);
733
- for (let m = d.left, g = 0; m < d.right; m++, g++)
734
- m == d.left && h == d.top || f.insert(u = f.mapping.map(p + d.tableStart, 1), t({
735
- node: l,
736
- row: h,
737
- col: m
738
- }).createAndFill(i[g]));
739
- }
740
- f.setNodeMarkup(s, t({
741
- node: l,
742
- row: d.top,
743
- col: d.left
744
- }), i[0]), n instanceof w && f.setSelection(new w(f.doc.resolve(n.$anchorCell.pos), u ? f.doc.resolve(u) : void 0)), o(f);
745
- }
746
- return !0;
747
- };
748
- }
749
- function xt(t, e) {
750
- return function(o, n) {
751
- if (!A(o)) return !1;
752
- const l = O(o);
753
- if (l.nodeAfter.attrs[t] === e) return !1;
754
- if (n) {
755
- const s = o.tr;
756
- o.selection instanceof w ? o.selection.forEachCell((r, c) => {
757
- r.attrs[t] !== e && s.setNodeMarkup(c, null, {
758
- ...r.attrs,
759
- [t]: e
760
- });
761
- }) : s.setNodeMarkup(l.pos, null, {
762
- ...l.nodeAfter.attrs,
763
- [t]: e
764
- }), n(s);
765
- }
766
- return !0;
767
- };
768
- }
769
- function Ve(t) {
770
- return function(e, o) {
771
- if (!A(e)) return !1;
772
- if (o) {
773
- const n = y(e.schema), l = x(e), s = e.tr, r = l.map.cellsInRect(t == "column" ? {
774
- left: l.left,
775
- top: 0,
776
- right: l.right,
777
- bottom: l.map.height
778
- } : t == "row" ? {
779
- left: 0,
780
- top: l.top,
781
- right: l.map.width,
782
- bottom: l.bottom
783
- } : l), c = r.map((i) => l.table.nodeAt(i));
784
- for (let i = 0; i < r.length; i++) c[i].type == n.header_cell && s.setNodeMarkup(l.tableStart + r[i], n.cell, c[i].attrs);
785
- if (s.steps.length === 0) for (let i = 0; i < r.length; i++) s.setNodeMarkup(l.tableStart + r[i], n.header_cell, c[i].attrs);
786
- o(s);
787
- }
788
- return !0;
789
- };
790
- }
791
- function ne(t, e, o) {
792
- const n = e.map.cellsInRect({
793
- left: 0,
794
- top: 0,
795
- right: t == "row" ? e.map.width : 1,
796
- bottom: t == "column" ? e.map.height : 1
797
- });
798
- for (let l = 0; l < n.length; l++) {
799
- const s = e.table.nodeAt(n[l]);
800
- if (s && s.type !== o.header_cell) return !1;
801
- }
802
- return !0;
803
- }
804
- function te(t, e) {
805
- return e = e || { useDeprecatedLogic: !1 }, e.useDeprecatedLogic ? Ve(t) : function(o, n) {
806
- if (!A(o)) return !1;
807
- if (n) {
808
- const l = y(o.schema), s = x(o), r = o.tr, c = ne("row", s, l), i = ne("column", s, l), a = (t === "column" ? c : t === "row" && i) ? 1 : 0, d = t == "column" ? {
809
- left: 0,
810
- top: a,
811
- right: 1,
812
- bottom: s.map.height
813
- } : t == "row" ? {
814
- left: a,
815
- top: 0,
816
- right: s.map.width,
817
- bottom: 1
818
- } : s, f = t == "column" ? i ? l.cell : l.header_cell : t == "row" ? c ? l.cell : l.header_cell : l.cell;
819
- s.map.cellsInRect(d).forEach((u) => {
820
- const h = u + s.tableStart, p = r.doc.nodeAt(h);
821
- p && r.setNodeMarkup(h, f, p.attrs);
822
- }), n(r);
823
- }
824
- return !0;
825
- };
826
- }
827
- te("row", { useDeprecatedLogic: !0 });
828
- te("column", { useDeprecatedLogic: !0 });
829
- const vt = te("cell", { useDeprecatedLogic: !0 });
830
- function Xe(t, e) {
831
- if (e < 0) {
832
- const o = t.nodeBefore;
833
- if (o) return t.pos - o.nodeSize;
834
- for (let n = t.index(-1) - 1, l = t.before(); n >= 0; n--) {
835
- const s = t.node(-1).child(n), r = s.lastChild;
836
- if (r) return l - 1 - r.nodeSize;
837
- l -= s.nodeSize;
838
- }
839
- } else {
840
- if (t.index() < t.parent.childCount - 1) return t.pos + t.nodeAfter.nodeSize;
841
- const o = t.node(-1);
842
- for (let n = t.indexAfter(-1), l = t.after(); n < o.childCount; n++) {
843
- const s = o.child(n);
844
- if (s.childCount) return l + 1;
845
- l += s.nodeSize;
846
- }
847
- }
848
- return null;
849
- }
850
- function Mt(t) {
851
- return function(e, o) {
852
- if (!A(e)) return !1;
853
- const n = Xe(O(e), t);
854
- if (n == null) return !1;
855
- if (o) {
856
- const l = e.doc.resolve(n);
857
- o(e.tr.setSelection(E.between(l, Ee(l))).scrollIntoView());
858
- }
859
- return !0;
860
- };
861
- }
862
- function Nt(t, e) {
863
- const o = t.selection.$anchor;
864
- for (let n = o.depth; n > 0; n--) if (o.node(n).type.spec.tableRole == "table")
865
- return e && e(t.tr.delete(o.before(n), o.after(n)).scrollIntoView()), !0;
866
- return !1;
867
- }
868
- function F(t, e) {
869
- const o = t.selection;
870
- if (!(o instanceof w)) return !1;
871
- if (e) {
872
- const n = t.tr, l = y(t.schema).cell.createAndFill().content;
873
- o.forEachCell((s, r) => {
874
- s.content.eq(l) || n.replace(n.mapping.map(r + 1), n.mapping.map(r + s.nodeSize - 1), new z(l, 0, 0));
875
- }), n.docChanged && e(n);
876
- }
877
- return !0;
878
- }
879
- function qe(t) {
880
- if (t.size === 0) return null;
881
- let { content: e, openStart: o, openEnd: n } = t;
882
- for (; e.childCount == 1 && (o > 0 && n > 0 || e.child(0).type.spec.tableRole == "table"); )
883
- o--, n--, e = e.child(0).content;
884
- const l = e.child(0), s = l.type.spec.tableRole, r = l.type.schema, c = [];
885
- if (s == "row") for (let i = 0; i < e.childCount; i++) {
886
- let a = e.child(i).content;
887
- const d = i ? 0 : Math.max(0, o - 1), f = i < e.childCount - 1 ? 0 : Math.max(0, n - 1);
888
- (d || f) && (a = G(y(r).row, new z(a, d, f)).content), c.push(a);
889
- }
890
- else if (s == "cell" || s == "header_cell") c.push(o || n ? G(y(r).row, new z(e, o, n)).content : e);
891
- else return null;
892
- return Ue(r, c);
893
- }
894
- function Ue(t, e) {
895
- const o = [];
896
- for (let l = 0; l < e.length; l++) {
897
- const s = e[l];
898
- for (let r = s.childCount - 1; r >= 0; r--) {
899
- const { rowspan: c, colspan: i } = s.child(r).attrs;
900
- for (let a = l; a < l + c; a++) o[a] = (o[a] || 0) + i;
901
- }
902
- }
903
- let n = 0;
904
- for (let l = 0; l < o.length; l++) n = Math.max(n, o[l]);
905
- for (let l = 0; l < o.length; l++)
906
- if (l >= e.length && e.push(R.empty), o[l] < n) {
907
- const s = y(t).cell.createAndFill(), r = [];
908
- for (let c = o[l]; c < n; c++) r.push(s);
909
- e[l] = e[l].append(R.from(r));
910
- }
911
- return {
912
- height: e.length,
913
- width: n,
914
- rows: e
915
- };
916
- }
917
- function G(t, e) {
918
- const o = t.createAndFill();
919
- return new Re(o).replace(0, o.content.size, e).doc;
920
- }
921
- function Je({ width: t, height: e, rows: o }, n, l) {
922
- if (t != n) {
923
- const s = [], r = [];
924
- for (let c = 0; c < o.length; c++) {
925
- const i = o[c], a = [];
926
- for (let d = s[c] || 0, f = 0; d < n; f++) {
927
- let u = i.child(f % i.childCount);
928
- d + u.attrs.colspan > n && (u = u.type.createChecked(D(u.attrs, u.attrs.colspan, d + u.attrs.colspan - n), u.content)), a.push(u), d += u.attrs.colspan;
929
- for (let h = 1; h < u.attrs.rowspan; h++) s[c + h] = (s[c + h] || 0) + u.attrs.colspan;
930
- }
931
- r.push(R.from(a));
932
- }
933
- o = r, t = n;
934
- }
935
- if (e != l) {
936
- const s = [];
937
- for (let r = 0, c = 0; r < l; r++, c++) {
938
- const i = [], a = o[c % e];
939
- for (let d = 0; d < a.childCount; d++) {
940
- let f = a.child(d);
941
- r + f.attrs.rowspan > l && (f = f.type.create({
942
- ...f.attrs,
943
- rowspan: Math.max(1, l - f.attrs.rowspan)
944
- }, f.content)), i.push(f);
945
- }
946
- s.push(R.from(i));
947
- }
948
- o = s, e = l;
949
- }
950
- return {
951
- width: t,
952
- height: e,
953
- rows: o
954
- };
955
- }
956
- function Ye(t, e, o, n, l, s, r) {
957
- const c = t.doc.type.schema, i = y(c);
958
- let a, d;
959
- if (l > e.width) for (let f = 0, u = 0; f < e.height; f++) {
960
- const h = o.child(f);
961
- u += h.nodeSize;
962
- const p = [];
963
- let m;
964
- h.lastChild == null || h.lastChild.type == i.cell ? m = a || (a = i.cell.createAndFill()) : m = d || (d = i.header_cell.createAndFill());
965
- for (let g = e.width; g < l; g++) p.push(m);
966
- t.insert(t.mapping.slice(r).map(u - 1 + n), p);
967
- }
968
- if (s > e.height) {
969
- const f = [];
970
- for (let p = 0, m = (e.height - 1) * e.width; p < Math.max(e.width, l); p++) {
971
- const g = p >= e.width ? !1 : o.nodeAt(e.map[m + p]).type == i.header_cell;
972
- f.push(g ? d || (d = i.header_cell.createAndFill()) : a || (a = i.cell.createAndFill()));
973
- }
974
- const u = i.row.create(null, R.from(f)), h = [];
975
- for (let p = e.height; p < s; p++) h.push(u);
976
- t.insert(t.mapping.slice(r).map(n + o.nodeSize - 2), h);
977
- }
978
- return !!(a || d);
979
- }
980
- function le(t, e, o, n, l, s, r, c) {
981
- if (r == 0 || r == e.height) return !1;
982
- let i = !1;
983
- for (let a = l; a < s; a++) {
984
- const d = r * e.width + a, f = e.map[d];
985
- if (e.map[d - e.width] == f) {
986
- i = !0;
987
- const u = o.nodeAt(f), { top: h, left: p } = e.findCell(f);
988
- t.setNodeMarkup(t.mapping.slice(c).map(f + n), null, {
989
- ...u.attrs,
990
- rowspan: r - h
991
- }), t.insert(t.mapping.slice(c).map(e.positionAt(r, p, o)), u.type.createAndFill({
992
- ...u.attrs,
993
- rowspan: h + u.attrs.rowspan - r
994
- })), a += u.attrs.colspan - 1;
995
- }
996
- }
997
- return i;
998
- }
999
- function se(t, e, o, n, l, s, r, c) {
1000
- if (r == 0 || r == e.width) return !1;
1001
- let i = !1;
1002
- for (let a = l; a < s; a++) {
1003
- const d = a * e.width + r, f = e.map[d];
1004
- if (e.map[d - 1] == f) {
1005
- i = !0;
1006
- const u = o.nodeAt(f), h = e.colCount(f), p = t.mapping.slice(c).map(f + n);
1007
- t.setNodeMarkup(p, null, D(u.attrs, r - h, u.attrs.colspan - (r - h))), t.insert(p + u.nodeSize, u.type.createAndFill(D(u.attrs, 0, r - h))), a += u.attrs.rowspan - 1;
1008
- }
1009
- }
1010
- return i;
1011
- }
1012
- function re(t, e, o, n, l) {
1013
- let s = o ? t.doc.nodeAt(o - 1) : t.doc;
1014
- if (!s) throw new Error("No table found");
1015
- let r = C.get(s);
1016
- const { top: c, left: i } = n, a = i + l.width, d = c + l.height, f = t.tr;
1017
- let u = 0;
1018
- function h() {
1019
- if (s = o ? f.doc.nodeAt(o - 1) : f.doc, !s) throw new Error("No table found");
1020
- r = C.get(s), u = f.mapping.maps.length;
1021
- }
1022
- Ye(f, r, s, o, a, d, u) && h(), le(f, r, s, o, i, a, c, u) && h(), le(f, r, s, o, i, a, d, u) && h(), se(f, r, s, o, c, d, i, u) && h(), se(f, r, s, o, c, d, a, u) && h();
1023
- for (let p = c; p < d; p++) {
1024
- const m = r.positionAt(p, i, s), g = r.positionAt(p, a, s);
1025
- f.replace(f.mapping.slice(u).map(m + o), f.mapping.slice(u).map(g + o), new z(l.rows[p - c], 0, 0));
1026
- }
1027
- h(), f.setSelection(new w(f.doc.resolve(o + r.positionAt(c, i, s)), f.doc.resolve(o + r.positionAt(d - 1, a - 1, s)))), e(f);
1028
- }
1029
- const Ge = Ae({
1030
- ArrowLeft: P("horiz", -1),
1031
- ArrowRight: P("horiz", 1),
1032
- ArrowUp: P("vert", -1),
1033
- ArrowDown: P("vert", 1),
1034
- "Shift-ArrowLeft": W("horiz", -1),
1035
- "Shift-ArrowRight": W("horiz", 1),
1036
- "Shift-ArrowUp": W("vert", -1),
1037
- "Shift-ArrowDown": W("vert", 1),
1038
- Backspace: F,
1039
- "Mod-Backspace": F,
1040
- Delete: F,
1041
- "Mod-Delete": F
1042
- });
1043
- function I(t, e, o) {
1044
- return o.eq(t.selection) ? !1 : (e && e(t.tr.setSelection(o).scrollIntoView()), !0);
1045
- }
1046
- function P(t, e) {
1047
- return (o, n, l) => {
1048
- if (!l) return !1;
1049
- const s = o.selection;
1050
- if (s instanceof w) return I(o, n, M.near(s.$headCell, e));
1051
- if (t != "horiz" && !s.empty) return !1;
1052
- const r = Ce(l, t, e);
1053
- if (r == null) return !1;
1054
- if (t == "horiz") return I(o, n, M.near(o.doc.resolve(s.head + e), e));
1055
- {
1056
- const c = o.doc.resolve(r), i = ue(c, t, e);
1057
- let a;
1058
- return i ? a = M.near(i, 1) : e < 0 ? a = M.near(o.doc.resolve(c.before(-1)), -1) : a = M.near(o.doc.resolve(c.after(-1)), 1), I(o, n, a);
1059
- }
1060
- };
1061
- }
1062
- function W(t, e) {
1063
- return (o, n, l) => {
1064
- if (!l) return !1;
1065
- const s = o.selection;
1066
- let r;
1067
- if (s instanceof w) r = s;
1068
- else {
1069
- const i = Ce(l, t, e);
1070
- if (i == null) return !1;
1071
- r = new w(o.doc.resolve(i));
1072
- }
1073
- const c = ue(r.$headCell, t, e);
1074
- return c ? I(o, n, new w(r.$anchorCell, c)) : !1;
1075
- };
1076
- }
1077
- function Qe(t, e) {
1078
- const o = t.state.doc, n = T(o.resolve(e));
1079
- return n ? (t.dispatch(t.state.tr.setSelection(new w(n))), !0) : !1;
1080
- }
1081
- function Ze(t, e, o) {
1082
- if (!A(t.state)) return !1;
1083
- let n = qe(o);
1084
- const l = t.state.selection;
1085
- if (l instanceof w) {
1086
- n || (n = {
1087
- width: 1,
1088
- height: 1,
1089
- rows: [R.from(G(y(t.state.schema).cell, o))]
1090
- });
1091
- const s = l.$anchorCell.node(-1), r = l.$anchorCell.start(-1), c = C.get(s).rectBetween(l.$anchorCell.pos - r, l.$headCell.pos - r);
1092
- return n = Je(n, c.right - c.left, c.bottom - c.top), re(t.state, t.dispatch, r, c, n), !0;
1093
- } else if (n) {
1094
- const s = O(t.state), r = s.start(-1);
1095
- return re(t.state, t.dispatch, r, C.get(s.node(-1)).findCell(s.pos - r), n), !0;
1096
- } else return !1;
1097
- }
1098
- function et(t, e) {
1099
- var o;
1100
- if (e.button != 0 || e.ctrlKey || e.metaKey) return;
1101
- const n = ie(t, e.target);
1102
- let l;
1103
- if (e.shiftKey && t.state.selection instanceof w)
1104
- s(t.state.selection.$anchorCell, e), e.preventDefault();
1105
- else if (e.shiftKey && n && (l = T(t.state.selection.$anchor)) != null && ((o = V(t, e)) === null || o === void 0 ? void 0 : o.pos) != l.pos)
1106
- s(l, e), e.preventDefault();
1107
- else if (!n) return;
1108
- function s(i, a) {
1109
- let d = V(t, a);
1110
- const f = N.getState(t.state) == null;
1111
- if (!d || !ee(i, d)) if (f) d = i;
1112
- else return;
1113
- const u = new w(i, d);
1114
- if (f || !t.state.selection.eq(u)) {
1115
- const h = t.state.tr.setSelection(u);
1116
- f && h.setMeta(N, i.pos), t.dispatch(h);
1117
- }
1118
- }
1119
- function r() {
1120
- t.root.removeEventListener("mouseup", r), t.root.removeEventListener("dragstart", r), t.root.removeEventListener("mousemove", c), N.getState(t.state) != null && t.dispatch(t.state.tr.setMeta(N, -1));
1121
- }
1122
- function c(i) {
1123
- const a = i, d = N.getState(t.state);
1124
- let f;
1125
- if (d != null) f = t.state.doc.resolve(d);
1126
- else if (ie(t, a.target) != n && (f = V(t, e), !f))
1127
- return r();
1128
- f && s(f, a);
1129
- }
1130
- t.root.addEventListener("mouseup", r), t.root.addEventListener("dragstart", r), t.root.addEventListener("mousemove", c);
1131
- }
1132
- function Ce(t, e, o) {
1133
- if (!(t.state.selection instanceof E)) return null;
1134
- const { $head: n } = t.state.selection;
1135
- for (let l = n.depth - 1; l >= 0; l--) {
1136
- const s = n.node(l);
1137
- if ((o < 0 ? n.index(l) : n.indexAfter(l)) != (o < 0 ? 0 : s.childCount)) return null;
1138
- if (s.type.spec.tableRole == "cell" || s.type.spec.tableRole == "header_cell") {
1139
- const r = n.before(l), c = e == "vert" ? o > 0 ? "down" : "up" : o > 0 ? "right" : "left";
1140
- return t.endOfTextblock(c) ? r : null;
1141
- }
1142
- }
1143
- return null;
1144
- }
1145
- function ie(t, e) {
1146
- for (; e && e != t.dom; e = e.parentNode) if (e.nodeName == "TD" || e.nodeName == "TH") return e;
1147
- return null;
1148
- }
1149
- function V(t, e) {
1150
- const o = t.posAtCoords({
1151
- left: e.clientX,
1152
- top: e.clientY
1153
- });
1154
- if (!o) return null;
1155
- let { inside: n, pos: l } = o;
1156
- return n >= 0 && T(t.state.doc.resolve(n)) || T(t.state.doc.resolve(l));
1157
- }
1158
- var tt = class {
1159
- constructor(t, e) {
1160
- this.node = t, this.defaultCellMinWidth = e, this.dom = document.createElement("div"), this.dom.className = "tableWrapper", this.table = this.dom.appendChild(document.createElement("table")), this.table.style.setProperty("--default-cell-min-width", `${e}px`), this.colgroup = this.table.appendChild(document.createElement("colgroup")), Q(t, this.colgroup, this.table, e), this.contentDOM = this.table.appendChild(document.createElement("tbody"));
1161
- }
1162
- update(t) {
1163
- return t.type != this.node.type ? !1 : (this.node = t, Q(t, this.colgroup, this.table, this.defaultCellMinWidth), !0);
1164
- }
1165
- ignoreMutation(t) {
1166
- return t.type == "attributes" && (t.target == this.table || this.colgroup.contains(t.target));
1167
- }
1168
- };
1169
- function Q(t, e, o, n, l, s) {
1170
- let r = 0, c = !0, i = e.firstChild;
1171
- const a = t.firstChild;
1172
- if (a) {
1173
- for (let f = 0, u = 0; f < a.childCount; f++) {
1174
- const { colspan: h, colwidth: p } = a.child(f).attrs;
1175
- for (let m = 0; m < h; m++, u++) {
1176
- const g = l == u ? s : p && p[m], b = g ? g + "px" : "";
1177
- if (r += g || n, g || (c = !1), i)
1178
- i.style.width != b && (i.style.width = b), i = i.nextSibling;
1179
- else {
1180
- const B = document.createElement("col");
1181
- B.style.width = b, e.appendChild(B);
1182
- }
1183
- }
1184
- }
1185
- for (; i; ) {
1186
- var d;
1187
- const f = i.nextSibling;
1188
- (d = i.parentNode) === null || d === void 0 || d.removeChild(i), i = f;
1189
- }
1190
- c ? (o.style.width = r + "px", o.style.minWidth = "") : (o.style.width = "", o.style.minWidth = r + "px");
1191
- }
1192
- }
1193
- const S = new Z("tableColumnResizing");
1194
- function zt({ handleWidth: t = 5, cellMinWidth: e = 25, defaultCellMinWidth: o = 100, View: n = tt, lastColumnResizable: l = !0 } = {}) {
1195
- const s = new fe({
1196
- key: S,
1197
- state: {
1198
- init(r, c) {
1199
- var i;
1200
- const a = (i = s.spec) === null || i === void 0 || (i = i.props) === null || i === void 0 ? void 0 : i.nodeViews, d = y(c.schema).table.name;
1201
- return n && a && (a[d] = (f, u) => new n(f, o, u)), new ot(-1, !1);
1202
- },
1203
- apply(r, c) {
1204
- return c.apply(r);
1205
- }
1206
- },
1207
- props: {
1208
- attributes: (r) => {
1209
- const c = S.getState(r);
1210
- return c && c.activeHandle > -1 ? { class: "resize-cursor" } : {};
1211
- },
1212
- handleDOMEvents: {
1213
- mousemove: (r, c) => {
1214
- nt(r, c, t, l);
1215
- },
1216
- mouseleave: (r) => {
1217
- lt(r);
1218
- },
1219
- mousedown: (r, c) => {
1220
- st(r, c, e, o);
1221
- }
1222
- },
1223
- decorations: (r) => {
1224
- const c = S.getState(r);
1225
- if (c && c.activeHandle > -1) return dt(r, c.activeHandle);
1226
- },
1227
- nodeViews: {}
1228
- }
1229
- });
1230
- return s;
1231
- }
1232
- var ot = class j {
1233
- constructor(e, o) {
1234
- this.activeHandle = e, this.dragging = o;
1235
- }
1236
- apply(e) {
1237
- const o = this, n = e.getMeta(S);
1238
- if (n && n.setHandle != null) return new j(n.setHandle, !1);
1239
- if (n && n.setDragging !== void 0) return new j(o.activeHandle, n.setDragging);
1240
- if (o.activeHandle > -1 && e.docChanged) {
1241
- let l = e.mapping.map(o.activeHandle, -1);
1242
- return Y(e.doc.resolve(l)) || (l = -1), new j(l, o.dragging);
1243
- }
1244
- return o;
1245
- }
1246
- };
1247
- function nt(t, e, o, n) {
1248
- if (!t.editable) return;
1249
- const l = S.getState(t.state);
1250
- if (l && !l.dragging) {
1251
- const s = it(e.target);
1252
- let r = -1;
1253
- if (s) {
1254
- const { left: c, right: i } = s.getBoundingClientRect();
1255
- e.clientX - c <= o ? r = ce(t, e, "left", o) : i - e.clientX <= o && (r = ce(t, e, "right", o));
1256
- }
1257
- if (r != l.activeHandle) {
1258
- if (!n && r !== -1) {
1259
- const c = t.state.doc.resolve(r), i = c.node(-1), a = C.get(i), d = c.start(-1);
1260
- if (a.colCount(c.pos - d) + c.nodeAfter.attrs.colspan - 1 == a.width - 1) return;
1261
- }
1262
- be(t, r);
1263
- }
1264
- }
1265
- }
1266
- function lt(t) {
1267
- if (!t.editable) return;
1268
- const e = S.getState(t.state);
1269
- e && e.activeHandle > -1 && !e.dragging && be(t, -1);
1270
- }
1271
- function st(t, e, o, n) {
1272
- var l;
1273
- if (!t.editable) return !1;
1274
- const s = (l = t.dom.ownerDocument.defaultView) !== null && l !== void 0 ? l : window, r = S.getState(t.state);
1275
- if (!r || r.activeHandle == -1 || r.dragging) return !1;
1276
- const c = t.state.doc.nodeAt(r.activeHandle), i = rt(t, r.activeHandle, c.attrs);
1277
- t.dispatch(t.state.tr.setMeta(S, { setDragging: {
1278
- startX: e.clientX,
1279
- startWidth: i
1280
- } }));
1281
- function a(f) {
1282
- s.removeEventListener("mouseup", a), s.removeEventListener("mousemove", d);
1283
- const u = S.getState(t.state);
1284
- u?.dragging && (ct(t, u.activeHandle, ae(u.dragging, f, o)), t.dispatch(t.state.tr.setMeta(S, { setDragging: null })));
1285
- }
1286
- function d(f) {
1287
- if (!f.which) return a(f);
1288
- const u = S.getState(t.state);
1289
- if (u && u.dragging) {
1290
- const h = ae(u.dragging, f, o);
1291
- de(t, u.activeHandle, h, n);
1292
- }
1293
- }
1294
- return de(t, r.activeHandle, i, n), s.addEventListener("mouseup", a), s.addEventListener("mousemove", d), e.preventDefault(), !0;
1295
- }
1296
- function rt(t, e, { colspan: o, colwidth: n }) {
1297
- const l = n && n[n.length - 1];
1298
- if (l) return l;
1299
- const s = t.domAtPos(e);
1300
- let r = s.node.childNodes[s.offset].offsetWidth, c = o;
1301
- if (n)
1302
- for (let i = 0; i < o; i++) n[i] && (r -= n[i], c--);
1303
- return r / c;
1304
- }
1305
- function it(t) {
1306
- for (; t && t.nodeName != "TD" && t.nodeName != "TH"; ) t = t.classList && t.classList.contains("ProseMirror") ? null : t.parentNode;
1307
- return t;
1308
- }
1309
- function ce(t, e, o, n) {
1310
- const l = o == "right" ? -n : n, s = t.posAtCoords({
1311
- left: e.clientX + l,
1312
- top: e.clientY
1313
- });
1314
- if (!s) return -1;
1315
- const { pos: r } = s, c = T(t.state.doc.resolve(r));
1316
- if (!c) return -1;
1317
- if (o == "right") return c.pos;
1318
- const i = C.get(c.node(-1)), a = c.start(-1), d = i.map.indexOf(c.pos - a);
1319
- return d % i.width == 0 ? -1 : a + i.map[d - 1];
1320
- }
1321
- function ae(t, e, o) {
1322
- const n = e.clientX - t.startX;
1323
- return Math.max(o, t.startWidth + n);
1324
- }
1325
- function be(t, e) {
1326
- t.dispatch(t.state.tr.setMeta(S, { setHandle: e }));
1327
- }
1328
- function ct(t, e, o) {
1329
- const n = t.state.doc.resolve(e), l = n.node(-1), s = C.get(l), r = n.start(-1), c = s.colCount(n.pos - r) + n.nodeAfter.attrs.colspan - 1, i = t.state.tr;
1330
- for (let a = 0; a < s.height; a++) {
1331
- const d = a * s.width + c;
1332
- if (a && s.map[d] == s.map[d - s.width]) continue;
1333
- const f = s.map[d], u = l.nodeAt(f).attrs, h = u.colspan == 1 ? 0 : c - s.colCount(f);
1334
- if (u.colwidth && u.colwidth[h] == o) continue;
1335
- const p = u.colwidth ? u.colwidth.slice() : at(u.colspan);
1336
- p[h] = o, i.setNodeMarkup(r + f, null, {
1337
- ...u,
1338
- colwidth: p
1339
- });
1340
- }
1341
- i.docChanged && t.dispatch(i);
1342
- }
1343
- function de(t, e, o, n) {
1344
- const l = t.state.doc.resolve(e), s = l.node(-1), r = l.start(-1), c = C.get(s).colCount(l.pos - r) + l.nodeAfter.attrs.colspan - 1;
1345
- let i = t.domAtPos(l.start(-1)).node;
1346
- for (; i && i.nodeName != "TABLE"; ) i = i.parentNode;
1347
- i && Q(s, i.firstChild, i, n, c, o);
1348
- }
1349
- function at(t) {
1350
- return Array(t).fill(0);
1351
- }
1352
- function dt(t, e) {
1353
- const o = [], n = t.doc.resolve(e), l = n.node(-1);
1354
- if (!l) return X.empty;
1355
- const s = C.get(l), r = n.start(-1), c = s.colCount(n.pos - r) + n.nodeAfter.attrs.colspan - 1;
1356
- for (let a = 0; a < s.height; a++) {
1357
- const d = c + a * s.width;
1358
- if ((c == s.width - 1 || s.map[d] != s.map[d + 1]) && (a == 0 || s.map[d] != s.map[d - s.width])) {
1359
- var i;
1360
- const f = s.map[d], u = r + f + l.nodeAt(f).nodeSize - 1, h = document.createElement("div");
1361
- h.className = "column-resize-handle", !((i = S.getState(t)) === null || i === void 0) && i.dragging && o.push(q.node(r + f, r + f + l.nodeAt(f).nodeSize, { class: "column-resize-dragging" })), o.push(q.widget(u, h));
1362
- }
1363
- }
1364
- return X.create(t.doc, o);
1365
- }
1366
- function kt({ allowTableNodeSelection: t = !1 } = {}) {
1367
- return new fe({
1368
- key: N,
1369
- state: {
1370
- init() {
1371
- return null;
1372
- },
1373
- apply(e, o) {
1374
- const n = e.getMeta(N);
1375
- if (n != null) return n == -1 ? null : n;
1376
- if (o == null || !e.docChanged) return o;
1377
- const { deleted: l, pos: s } = e.mapping.mapResult(o);
1378
- return l ? null : s;
1379
- }
1380
- },
1381
- props: {
1382
- decorations: Be,
1383
- handleDOMEvents: { mousedown: et },
1384
- createSelectionBetween(e) {
1385
- return N.getState(e.state) != null ? e.state.selection : null;
1386
- },
1387
- handleTripleClick: Qe,
1388
- handleKeyDown: Ge,
1389
- handlePaste: Ze
1390
- },
1391
- appendTransaction(e, o, n) {
1392
- return $e(n, Pe(n, o), t);
1393
- }
1394
- });
1395
- }
1396
- export {
1397
- w as C,
1398
- Rt as a,
1399
- vt as b,
1400
- zt as c,
1401
- te as d,
1402
- Nt as e,
1403
- Pe as f,
1404
- Mt as g,
1405
- St as h,
1406
- yt as i,
1407
- bt as j,
1408
- Ct as k,
1409
- wt as l,
1410
- At as m,
1411
- gt as n,
1412
- xt as s,
1413
- kt as t
1414
- };