@formicoidea/labre-core 0.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2507) hide show
  1. package/package.json +297 -0
  2. package/src/_pkgs/affine-block-attachment/adapters/extension.ts +9 -0
  3. package/src/_pkgs/affine-block-attachment/adapters/index.ts +2 -0
  4. package/src/_pkgs/affine-block-attachment/adapters/markdown.ts +85 -0
  5. package/src/_pkgs/affine-block-attachment/adapters/notion-html.ts +115 -0
  6. package/src/_pkgs/affine-block-attachment/attachment-block.ts +533 -0
  7. package/src/_pkgs/affine-block-attachment/attachment-edgeless-block.ts +72 -0
  8. package/src/_pkgs/affine-block-attachment/attachment-service.ts +51 -0
  9. package/src/_pkgs/affine-block-attachment/components/rename-model.ts +95 -0
  10. package/src/_pkgs/affine-block-attachment/components/styles.ts +64 -0
  11. package/src/_pkgs/affine-block-attachment/configs/slash-menu.ts +58 -0
  12. package/src/_pkgs/affine-block-attachment/configs/toolbar.ts +411 -0
  13. package/src/_pkgs/affine-block-attachment/configs/tooltips.ts +77 -0
  14. package/src/_pkgs/affine-block-attachment/edgeless-clipboard-config.ts +34 -0
  15. package/src/_pkgs/affine-block-attachment/effects.ts +10 -0
  16. package/src/_pkgs/affine-block-attachment/embed.ts +305 -0
  17. package/src/_pkgs/affine-block-attachment/index.ts +11 -0
  18. package/src/_pkgs/affine-block-attachment/store.ts +17 -0
  19. package/src/_pkgs/affine-block-attachment/styles.ts +160 -0
  20. package/src/_pkgs/affine-block-attachment/utils.ts +216 -0
  21. package/src/_pkgs/affine-block-attachment/view.ts +51 -0
  22. package/src/_pkgs/affine-block-bookmark/adapters/extension.ts +13 -0
  23. package/src/_pkgs/affine-block-bookmark/adapters/html.ts +10 -0
  24. package/src/_pkgs/affine-block-bookmark/adapters/index.ts +4 -0
  25. package/src/_pkgs/affine-block-bookmark/adapters/markdown/index.ts +12 -0
  26. package/src/_pkgs/affine-block-bookmark/adapters/markdown/markdown.ts +93 -0
  27. package/src/_pkgs/affine-block-bookmark/adapters/markdown/preprocessor.ts +263 -0
  28. package/src/_pkgs/affine-block-bookmark/adapters/notion-html.ts +71 -0
  29. package/src/_pkgs/affine-block-bookmark/adapters/plain-text.ts +9 -0
  30. package/src/_pkgs/affine-block-bookmark/bookmark-block.ts +291 -0
  31. package/src/_pkgs/affine-block-bookmark/bookmark-edgeless-block.ts +88 -0
  32. package/src/_pkgs/affine-block-bookmark/commands/index.ts +2 -0
  33. package/src/_pkgs/affine-block-bookmark/commands/insert-bookmark.ts +23 -0
  34. package/src/_pkgs/affine-block-bookmark/commands/insert-link-by-quick-search.ts +79 -0
  35. package/src/_pkgs/affine-block-bookmark/components/bookmark-card.ts +131 -0
  36. package/src/_pkgs/affine-block-bookmark/components/index.ts +1 -0
  37. package/src/_pkgs/affine-block-bookmark/configs/slash-menu.ts +65 -0
  38. package/src/_pkgs/affine-block-bookmark/configs/toolbar.ts +625 -0
  39. package/src/_pkgs/affine-block-bookmark/configs/tooltips.ts +13 -0
  40. package/src/_pkgs/affine-block-bookmark/edgeless-clipboard-config.ts +29 -0
  41. package/src/_pkgs/affine-block-bookmark/effects.ts +12 -0
  42. package/src/_pkgs/affine-block-bookmark/index.ts +6 -0
  43. package/src/_pkgs/affine-block-bookmark/store.ts +17 -0
  44. package/src/_pkgs/affine-block-bookmark/styles.ts +282 -0
  45. package/src/_pkgs/affine-block-bookmark/utils.ts +47 -0
  46. package/src/_pkgs/affine-block-bookmark/view.ts +43 -0
  47. package/src/_pkgs/affine-block-callout/adapters/markdown.ts +207 -0
  48. package/src/_pkgs/affine-block-callout/callout-block.ts +132 -0
  49. package/src/_pkgs/affine-block-callout/callout-keymap.ts +34 -0
  50. package/src/_pkgs/affine-block-callout/configs/slash-menu.ts +67 -0
  51. package/src/_pkgs/affine-block-callout/configs/tooltips.ts +28 -0
  52. package/src/_pkgs/affine-block-callout/effects.ts +14 -0
  53. package/src/_pkgs/affine-block-callout/emoji-menu.ts +34 -0
  54. package/src/_pkgs/affine-block-callout/index.ts +2 -0
  55. package/src/_pkgs/affine-block-callout/store.ts +17 -0
  56. package/src/_pkgs/affine-block-callout/view.ts +30 -0
  57. package/src/_pkgs/affine-block-code/adapters/extension.ts +13 -0
  58. package/src/_pkgs/affine-block-code/adapters/html.ts +109 -0
  59. package/src/_pkgs/affine-block-code/adapters/index.ts +4 -0
  60. package/src/_pkgs/affine-block-code/adapters/markdown/index.ts +12 -0
  61. package/src/_pkgs/affine-block-code/adapters/markdown/markdown.ts +99 -0
  62. package/src/_pkgs/affine-block-code/adapters/markdown/preprocessor.ts +76 -0
  63. package/src/_pkgs/affine-block-code/adapters/notion-html.ts +59 -0
  64. package/src/_pkgs/affine-block-code/adapters/plain-text.ts +26 -0
  65. package/src/_pkgs/affine-block-code/clipboard/index.ts +173 -0
  66. package/src/_pkgs/affine-block-code/code-block-config.ts +19 -0
  67. package/src/_pkgs/affine-block-code/code-block-inline.ts +50 -0
  68. package/src/_pkgs/affine-block-code/code-block-service.ts +69 -0
  69. package/src/_pkgs/affine-block-code/code-block.ts +498 -0
  70. package/src/_pkgs/affine-block-code/code-keymap.ts +7 -0
  71. package/src/_pkgs/affine-block-code/code-preview-extension.ts +27 -0
  72. package/src/_pkgs/affine-block-code/code-toolbar/components/code-toolbar.ts +159 -0
  73. package/src/_pkgs/affine-block-code/code-toolbar/components/lang-button.ts +168 -0
  74. package/src/_pkgs/affine-block-code/code-toolbar/components/preview-button.ts +112 -0
  75. package/src/_pkgs/affine-block-code/code-toolbar/config.ts +284 -0
  76. package/src/_pkgs/affine-block-code/code-toolbar/context.ts +46 -0
  77. package/src/_pkgs/affine-block-code/code-toolbar/index.ts +173 -0
  78. package/src/_pkgs/affine-block-code/code-toolbar/utils.ts +16 -0
  79. package/src/_pkgs/affine-block-code/configs/slash-menu.ts +8 -0
  80. package/src/_pkgs/affine-block-code/effects.ts +27 -0
  81. package/src/_pkgs/affine-block-code/highlight/affine-code-unit.ts +122 -0
  82. package/src/_pkgs/affine-block-code/highlight/const.ts +6 -0
  83. package/src/_pkgs/affine-block-code/index.ts +10 -0
  84. package/src/_pkgs/affine-block-code/markdown.ts +61 -0
  85. package/src/_pkgs/affine-block-code/store.ts +19 -0
  86. package/src/_pkgs/affine-block-code/styles.ts +73 -0
  87. package/src/_pkgs/affine-block-code/turbo/code-layout-handler.ts +73 -0
  88. package/src/_pkgs/affine-block-code/turbo/code-painter.worker.ts +53 -0
  89. package/src/_pkgs/affine-block-code/view.ts +65 -0
  90. package/src/_pkgs/affine-block-data-view/block-meta/base.ts +37 -0
  91. package/src/_pkgs/affine-block-data-view/block-meta/index.ts +6 -0
  92. package/src/_pkgs/affine-block-data-view/block-meta/todo.ts +13 -0
  93. package/src/_pkgs/affine-block-data-view/columns/index.ts +22 -0
  94. package/src/_pkgs/affine-block-data-view/configs/slash-menu.ts +51 -0
  95. package/src/_pkgs/affine-block-data-view/configs/tooltips.ts +16 -0
  96. package/src/_pkgs/affine-block-data-view/data-source.ts +326 -0
  97. package/src/_pkgs/affine-block-data-view/data-view-block.ts +318 -0
  98. package/src/_pkgs/affine-block-data-view/data-view-model.ts +102 -0
  99. package/src/_pkgs/affine-block-data-view/data-view-spec.ts +8 -0
  100. package/src/_pkgs/affine-block-data-view/effects.ts +5 -0
  101. package/src/_pkgs/affine-block-data-view/index.ts +3 -0
  102. package/src/_pkgs/affine-block-data-view/store.ts +15 -0
  103. package/src/_pkgs/affine-block-data-view/view.ts +28 -0
  104. package/src/_pkgs/affine-block-data-view/views/index.ts +11 -0
  105. package/src/_pkgs/affine-block-database/adapters/extension.ts +13 -0
  106. package/src/_pkgs/affine-block-database/adapters/html.ts +105 -0
  107. package/src/_pkgs/affine-block-database/adapters/index.ts +4 -0
  108. package/src/_pkgs/affine-block-database/adapters/markdown.ts +67 -0
  109. package/src/_pkgs/affine-block-database/adapters/notion-html.ts +358 -0
  110. package/src/_pkgs/affine-block-database/adapters/plain-text.ts +48 -0
  111. package/src/_pkgs/affine-block-database/adapters/utils.ts +109 -0
  112. package/src/_pkgs/affine-block-database/block-icons.ts +45 -0
  113. package/src/_pkgs/affine-block-database/commands.ts +69 -0
  114. package/src/_pkgs/affine-block-database/components/layout.ts +69 -0
  115. package/src/_pkgs/affine-block-database/components/title/index.ts +199 -0
  116. package/src/_pkgs/affine-block-database/config.ts +6 -0
  117. package/src/_pkgs/affine-block-database/configs/slash-menu.ts +83 -0
  118. package/src/_pkgs/affine-block-database/configs/tooltips.ts +181 -0
  119. package/src/_pkgs/affine-block-database/context/host-context.ts +4 -0
  120. package/src/_pkgs/affine-block-database/context/index.ts +1 -0
  121. package/src/_pkgs/affine-block-database/data-source.ts +667 -0
  122. package/src/_pkgs/affine-block-database/database-block-styles.ts +73 -0
  123. package/src/_pkgs/affine-block-database/database-block.ts +468 -0
  124. package/src/_pkgs/affine-block-database/database-dnd-preview-block.ts +58 -0
  125. package/src/_pkgs/affine-block-database/detail-panel/block-renderer.ts +158 -0
  126. package/src/_pkgs/affine-block-database/detail-panel/note-renderer.ts +129 -0
  127. package/src/_pkgs/affine-block-database/effects.ts +29 -0
  128. package/src/_pkgs/affine-block-database/index.ts +14 -0
  129. package/src/_pkgs/affine-block-database/properties/converts.ts +176 -0
  130. package/src/_pkgs/affine-block-database/properties/created-time/cell-renderer.ts +54 -0
  131. package/src/_pkgs/affine-block-database/properties/created-time/define.ts +30 -0
  132. package/src/_pkgs/affine-block-database/properties/index.ts +29 -0
  133. package/src/_pkgs/affine-block-database/properties/link/cell-renderer-css.ts +99 -0
  134. package/src/_pkgs/affine-block-database/properties/link/cell-renderer.ts +186 -0
  135. package/src/_pkgs/affine-block-database/properties/link/define.ts +25 -0
  136. package/src/_pkgs/affine-block-database/properties/model.ts +20 -0
  137. package/src/_pkgs/affine-block-database/properties/rich-text/cell-renderer-css.ts +20 -0
  138. package/src/_pkgs/affine-block-database/properties/rich-text/cell-renderer.ts +430 -0
  139. package/src/_pkgs/affine-block-database/properties/rich-text/define.ts +77 -0
  140. package/src/_pkgs/affine-block-database/properties/title/cell-renderer-css.ts +31 -0
  141. package/src/_pkgs/affine-block-database/properties/title/cell-renderer.ts +23 -0
  142. package/src/_pkgs/affine-block-database/properties/title/define.ts +83 -0
  143. package/src/_pkgs/affine-block-database/properties/title/icon.ts +21 -0
  144. package/src/_pkgs/affine-block-database/properties/title/text.ts +319 -0
  145. package/src/_pkgs/affine-block-database/selection.ts +68 -0
  146. package/src/_pkgs/affine-block-database/service/index.ts +11 -0
  147. package/src/_pkgs/affine-block-database/store.ts +19 -0
  148. package/src/_pkgs/affine-block-database/utils/block-utils.ts +240 -0
  149. package/src/_pkgs/affine-block-database/utils/current-view.ts +52 -0
  150. package/src/_pkgs/affine-block-database/utils/title-doc.ts +30 -0
  151. package/src/_pkgs/affine-block-database/view.ts +51 -0
  152. package/src/_pkgs/affine-block-database/views/index.ts +12 -0
  153. package/src/_pkgs/affine-block-database/widgets/index.ts +1 -0
  154. package/src/_pkgs/affine-block-divider/adapters/extension.ts +13 -0
  155. package/src/_pkgs/affine-block-divider/adapters/html.ts +53 -0
  156. package/src/_pkgs/affine-block-divider/adapters/index.ts +4 -0
  157. package/src/_pkgs/affine-block-divider/adapters/markdown.ts +50 -0
  158. package/src/_pkgs/affine-block-divider/adapters/notion-html.ts +38 -0
  159. package/src/_pkgs/affine-block-divider/adapters/plain-text.ts +21 -0
  160. package/src/_pkgs/affine-block-divider/divider-block.ts +50 -0
  161. package/src/_pkgs/affine-block-divider/effects.ts +5 -0
  162. package/src/_pkgs/affine-block-divider/index.ts +2 -0
  163. package/src/_pkgs/affine-block-divider/markdown.ts +63 -0
  164. package/src/_pkgs/affine-block-divider/store.ts +17 -0
  165. package/src/_pkgs/affine-block-divider/styles.ts +19 -0
  166. package/src/_pkgs/affine-block-divider/view.ts +26 -0
  167. package/src/_pkgs/affine-block-edgeless-text/edgeless-clipboard-config.ts +33 -0
  168. package/src/_pkgs/affine-block-edgeless-text/edgeless-text-block.ts +512 -0
  169. package/src/_pkgs/affine-block-edgeless-text/edgeless-toolbar/config.ts +19 -0
  170. package/src/_pkgs/affine-block-edgeless-text/edgeless-toolbar/index.ts +1 -0
  171. package/src/_pkgs/affine-block-edgeless-text/effects.ts +5 -0
  172. package/src/_pkgs/affine-block-edgeless-text/index.ts +3 -0
  173. package/src/_pkgs/affine-block-edgeless-text/store.ts +14 -0
  174. package/src/_pkgs/affine-block-edgeless-text/view.ts +37 -0
  175. package/src/_pkgs/affine-block-embed/common/adapters/html.ts +66 -0
  176. package/src/_pkgs/affine-block-embed/common/adapters/markdown.ts +58 -0
  177. package/src/_pkgs/affine-block-embed/common/adapters/notion-html.ts +89 -0
  178. package/src/_pkgs/affine-block-embed/common/adapters/plain-text.ts +40 -0
  179. package/src/_pkgs/affine-block-embed/common/embed-block-element.ts +207 -0
  180. package/src/_pkgs/affine-block-embed/common/embed-note-content-styles.ts +85 -0
  181. package/src/_pkgs/affine-block-embed/common/insert-embed-card.ts +94 -0
  182. package/src/_pkgs/affine-block-embed/common/render-linked-doc.ts +205 -0
  183. package/src/_pkgs/affine-block-embed/common/to-edgeless-embed-block.ts +78 -0
  184. package/src/_pkgs/affine-block-embed/common/utils.ts +49 -0
  185. package/src/_pkgs/affine-block-embed/configs/toolbar.ts +686 -0
  186. package/src/_pkgs/affine-block-embed/effects.ts +96 -0
  187. package/src/_pkgs/affine-block-embed/embed-figma-block/adapters/extension.ts +13 -0
  188. package/src/_pkgs/affine-block-embed/embed-figma-block/adapters/html.ts +11 -0
  189. package/src/_pkgs/affine-block-embed/embed-figma-block/adapters/index.ts +4 -0
  190. package/src/_pkgs/affine-block-embed/embed-figma-block/adapters/markdown.ts +11 -0
  191. package/src/_pkgs/affine-block-embed/embed-figma-block/adapters/notion-html.ts +14 -0
  192. package/src/_pkgs/affine-block-embed/embed-figma-block/adapters/plain-text.ts +10 -0
  193. package/src/_pkgs/affine-block-embed/embed-figma-block/configs/slash-menu.ts +47 -0
  194. package/src/_pkgs/affine-block-embed/embed-figma-block/configs/tooltips.ts +23 -0
  195. package/src/_pkgs/affine-block-embed/embed-figma-block/edgeless-clipboard-config.ts +25 -0
  196. package/src/_pkgs/affine-block-embed/embed-figma-block/embed-edgeless-figma-block.ts +13 -0
  197. package/src/_pkgs/affine-block-embed/embed-figma-block/embed-figma-block.ts +126 -0
  198. package/src/_pkgs/affine-block-embed/embed-figma-block/embed-figma-model.ts +2 -0
  199. package/src/_pkgs/affine-block-embed/embed-figma-block/embed-figma-service.ts +14 -0
  200. package/src/_pkgs/affine-block-embed/embed-figma-block/embed-figma-spec.ts +26 -0
  201. package/src/_pkgs/affine-block-embed/embed-figma-block/index.ts +6 -0
  202. package/src/_pkgs/affine-block-embed/embed-figma-block/styles.ts +218 -0
  203. package/src/_pkgs/affine-block-embed/embed-github-block/adapters/extension.ts +13 -0
  204. package/src/_pkgs/affine-block-embed/embed-github-block/adapters/html.ts +11 -0
  205. package/src/_pkgs/affine-block-embed/embed-github-block/adapters/index.ts +4 -0
  206. package/src/_pkgs/affine-block-embed/embed-github-block/adapters/markdown.ts +10 -0
  207. package/src/_pkgs/affine-block-embed/embed-github-block/adapters/notion-html.ts +14 -0
  208. package/src/_pkgs/affine-block-embed/embed-github-block/adapters/plain-text.ts +10 -0
  209. package/src/_pkgs/affine-block-embed/embed-github-block/configs/slash-menu.ts +47 -0
  210. package/src/_pkgs/affine-block-embed/embed-github-block/configs/tooltips.ts +24 -0
  211. package/src/_pkgs/affine-block-embed/embed-github-block/edgeless-clipboard-config.ts +51 -0
  212. package/src/_pkgs/affine-block-embed/embed-github-block/embed-edgeless-github-block.ts +13 -0
  213. package/src/_pkgs/affine-block-embed/embed-github-block/embed-github-block.ts +271 -0
  214. package/src/_pkgs/affine-block-embed/embed-github-block/embed-github-model.ts +2 -0
  215. package/src/_pkgs/affine-block-embed/embed-github-block/embed-github-service.ts +36 -0
  216. package/src/_pkgs/affine-block-embed/embed-github-block/embed-github-spec.ts +30 -0
  217. package/src/_pkgs/affine-block-embed/embed-github-block/index.ts +6 -0
  218. package/src/_pkgs/affine-block-embed/embed-github-block/styles.ts +501 -0
  219. package/src/_pkgs/affine-block-embed/embed-github-block/utils.ts +182 -0
  220. package/src/_pkgs/affine-block-embed/embed-html-block/components/fullscreen-toolbar.ts +171 -0
  221. package/src/_pkgs/affine-block-embed/embed-html-block/configs/toolbar.ts +193 -0
  222. package/src/_pkgs/affine-block-embed/embed-html-block/configs/tooltips.ts +83 -0
  223. package/src/_pkgs/affine-block-embed/embed-html-block/edgeless-clipboard-config.ts +24 -0
  224. package/src/_pkgs/affine-block-embed/embed-html-block/embed-edgeless-html-block.ts +19 -0
  225. package/src/_pkgs/affine-block-embed/embed-html-block/embed-html-block.ts +114 -0
  226. package/src/_pkgs/affine-block-embed/embed-html-block/embed-html-spec.ts +19 -0
  227. package/src/_pkgs/affine-block-embed/embed-html-block/index.ts +8 -0
  228. package/src/_pkgs/affine-block-embed/embed-html-block/styles.ts +144 -0
  229. package/src/_pkgs/affine-block-embed/embed-iframe-block/adapters/html.ts +55 -0
  230. package/src/_pkgs/affine-block-embed/embed-iframe-block/adapters/index.ts +15 -0
  231. package/src/_pkgs/affine-block-embed/embed-iframe-block/adapters/markdown.ts +46 -0
  232. package/src/_pkgs/affine-block-embed/embed-iframe-block/adapters/plain-text.ts +31 -0
  233. package/src/_pkgs/affine-block-embed/embed-iframe-block/commands/index.ts +2 -0
  234. package/src/_pkgs/affine-block-embed/embed-iframe-block/commands/insert-embed-iframe-with-url.ts +107 -0
  235. package/src/_pkgs/affine-block-embed/embed-iframe-block/commands/insert-empty-embed-iframe.ts +55 -0
  236. package/src/_pkgs/affine-block-embed/embed-iframe-block/components/embed-iframe-error-card.ts +343 -0
  237. package/src/_pkgs/affine-block-embed/embed-iframe-block/components/embed-iframe-idle-card.ts +132 -0
  238. package/src/_pkgs/affine-block-embed/embed-iframe-block/components/embed-iframe-link-edit-popup.ts +122 -0
  239. package/src/_pkgs/affine-block-embed/embed-iframe-block/components/embed-iframe-link-input-base.ts +160 -0
  240. package/src/_pkgs/affine-block-embed/embed-iframe-block/components/embed-iframe-link-input-popup.ts +292 -0
  241. package/src/_pkgs/affine-block-embed/embed-iframe-block/components/embed-iframe-loading-card.ts +193 -0
  242. package/src/_pkgs/affine-block-embed/embed-iframe-block/configs/index.ts +2 -0
  243. package/src/_pkgs/affine-block-embed/embed-iframe-block/configs/providers/excalidraw.ts +42 -0
  244. package/src/_pkgs/affine-block-embed/embed-iframe-block/configs/providers/generic.ts +75 -0
  245. package/src/_pkgs/affine-block-embed/embed-iframe-block/configs/providers/google-docs.ts +81 -0
  246. package/src/_pkgs/affine-block-embed/embed-iframe-block/configs/providers/google-drive.ts +197 -0
  247. package/src/_pkgs/affine-block-embed/embed-iframe-block/configs/providers/index.ts +15 -0
  248. package/src/_pkgs/affine-block-embed/embed-iframe-block/configs/providers/miro.ts +46 -0
  249. package/src/_pkgs/affine-block-embed/embed-iframe-block/configs/providers/spotify.ts +47 -0
  250. package/src/_pkgs/affine-block-embed/embed-iframe-block/configs/slash-menu/slash-menu.ts +37 -0
  251. package/src/_pkgs/affine-block-embed/embed-iframe-block/configs/slash-menu/tooltip.ts +74 -0
  252. package/src/_pkgs/affine-block-embed/embed-iframe-block/configs/toolbar.ts +492 -0
  253. package/src/_pkgs/affine-block-embed/embed-iframe-block/consts.ts +12 -0
  254. package/src/_pkgs/affine-block-embed/embed-iframe-block/edgeless-clipboard-config.ts +37 -0
  255. package/src/_pkgs/affine-block-embed/embed-iframe-block/embed-edgeless-iframe-block.ts +119 -0
  256. package/src/_pkgs/affine-block-embed/embed-iframe-block/embed-iframe-block.ts +470 -0
  257. package/src/_pkgs/affine-block-embed/embed-iframe-block/embed-iframe-spec.ts +23 -0
  258. package/src/_pkgs/affine-block-embed/embed-iframe-block/index.ts +11 -0
  259. package/src/_pkgs/affine-block-embed/embed-iframe-block/style.ts +29 -0
  260. package/src/_pkgs/affine-block-embed/embed-iframe-block/types.ts +16 -0
  261. package/src/_pkgs/affine-block-embed/embed-iframe-block/utils.ts +75 -0
  262. package/src/_pkgs/affine-block-embed/embed-loom-block/adapters/extension.ts +13 -0
  263. package/src/_pkgs/affine-block-embed/embed-loom-block/adapters/html.ts +11 -0
  264. package/src/_pkgs/affine-block-embed/embed-loom-block/adapters/index.ts +4 -0
  265. package/src/_pkgs/affine-block-embed/embed-loom-block/adapters/markdown.ts +11 -0
  266. package/src/_pkgs/affine-block-embed/embed-loom-block/adapters/notion-html.ts +14 -0
  267. package/src/_pkgs/affine-block-embed/embed-loom-block/adapters/plain-text.ts +10 -0
  268. package/src/_pkgs/affine-block-embed/embed-loom-block/configs/slash-menu.ts +47 -0
  269. package/src/_pkgs/affine-block-embed/embed-loom-block/configs/tooltips.ts +30 -0
  270. package/src/_pkgs/affine-block-embed/embed-loom-block/edgeless-clipboard-config.ts +28 -0
  271. package/src/_pkgs/affine-block-embed/embed-loom-block/embed-edgeless-loom-bock.ts +13 -0
  272. package/src/_pkgs/affine-block-embed/embed-loom-block/embed-loom-block.ts +171 -0
  273. package/src/_pkgs/affine-block-embed/embed-loom-block/embed-loom-model.ts +2 -0
  274. package/src/_pkgs/affine-block-embed/embed-loom-block/embed-loom-service.ts +25 -0
  275. package/src/_pkgs/affine-block-embed/embed-loom-block/embed-loom-spec.ts +30 -0
  276. package/src/_pkgs/affine-block-embed/embed-loom-block/index.ts +7 -0
  277. package/src/_pkgs/affine-block-embed/embed-loom-block/styles.ts +210 -0
  278. package/src/_pkgs/affine-block-embed/embed-loom-block/utils.ts +75 -0
  279. package/src/_pkgs/affine-block-embed/embed-youtube-block/adapters/extension.ts +13 -0
  280. package/src/_pkgs/affine-block-embed/embed-youtube-block/adapters/html.ts +51 -0
  281. package/src/_pkgs/affine-block-embed/embed-youtube-block/adapters/index.ts +4 -0
  282. package/src/_pkgs/affine-block-embed/embed-youtube-block/adapters/markdown.ts +10 -0
  283. package/src/_pkgs/affine-block-embed/embed-youtube-block/adapters/notion-html.ts +14 -0
  284. package/src/_pkgs/affine-block-embed/embed-youtube-block/adapters/plain-text.ts +12 -0
  285. package/src/_pkgs/affine-block-embed/embed-youtube-block/configs/slash-menu.ts +47 -0
  286. package/src/_pkgs/affine-block-embed/embed-youtube-block/configs/tooltips.ts +24 -0
  287. package/src/_pkgs/affine-block-embed/embed-youtube-block/edgeless-clipboard-config.ts +42 -0
  288. package/src/_pkgs/affine-block-embed/embed-youtube-block/embed-edgeless-youtube-block.ts +13 -0
  289. package/src/_pkgs/affine-block-embed/embed-youtube-block/embed-youtube-block.ts +225 -0
  290. package/src/_pkgs/affine-block-embed/embed-youtube-block/embed-youtube-model.ts +2 -0
  291. package/src/_pkgs/affine-block-embed/embed-youtube-block/embed-youtube-service.ts +35 -0
  292. package/src/_pkgs/affine-block-embed/embed-youtube-block/embed-youtube-spec.ts +30 -0
  293. package/src/_pkgs/affine-block-embed/embed-youtube-block/index.ts +7 -0
  294. package/src/_pkgs/affine-block-embed/embed-youtube-block/styles.ts +241 -0
  295. package/src/_pkgs/affine-block-embed/embed-youtube-block/utils.ts +114 -0
  296. package/src/_pkgs/affine-block-embed/index.ts +19 -0
  297. package/src/_pkgs/affine-block-embed/store.ts +48 -0
  298. package/src/_pkgs/affine-block-embed/types.ts +23 -0
  299. package/src/_pkgs/affine-block-embed/view.ts +72 -0
  300. package/src/_pkgs/affine-block-embed-doc/common/render-linked-doc.ts +213 -0
  301. package/src/_pkgs/affine-block-embed-doc/effects.ts +37 -0
  302. package/src/_pkgs/affine-block-embed-doc/embed-linked-doc-block/adapters/extension.ts +11 -0
  303. package/src/_pkgs/affine-block-embed-doc/embed-linked-doc-block/adapters/html.ts +63 -0
  304. package/src/_pkgs/affine-block-embed-doc/embed-linked-doc-block/adapters/index.ts +3 -0
  305. package/src/_pkgs/affine-block-embed-doc/embed-linked-doc-block/adapters/markdown.ts +122 -0
  306. package/src/_pkgs/affine-block-embed-doc/embed-linked-doc-block/adapters/plain-text.ts +33 -0
  307. package/src/_pkgs/affine-block-embed-doc/embed-linked-doc-block/commands/index.ts +1 -0
  308. package/src/_pkgs/affine-block-embed-doc/embed-linked-doc-block/commands/insert-embed-linked-doc.ts +34 -0
  309. package/src/_pkgs/affine-block-embed-doc/embed-linked-doc-block/configs/slash-menu.ts +84 -0
  310. package/src/_pkgs/affine-block-embed-doc/embed-linked-doc-block/configs/toolbar.ts +513 -0
  311. package/src/_pkgs/affine-block-embed-doc/embed-linked-doc-block/configs/tooltips.ts +31 -0
  312. package/src/_pkgs/affine-block-embed-doc/embed-linked-doc-block/edgeless-clipboard-config.ts +31 -0
  313. package/src/_pkgs/affine-block-embed-doc/embed-linked-doc-block/embed-edgeless-linked-doc-block.ts +71 -0
  314. package/src/_pkgs/affine-block-embed-doc/embed-linked-doc-block/embed-linked-doc-block.ts +628 -0
  315. package/src/_pkgs/affine-block-embed-doc/embed-linked-doc-block/embed-linked-doc-spec.ts +21 -0
  316. package/src/_pkgs/affine-block-embed-doc/embed-linked-doc-block/index.ts +8 -0
  317. package/src/_pkgs/affine-block-embed-doc/embed-linked-doc-block/styles.ts +2232 -0
  318. package/src/_pkgs/affine-block-embed-doc/embed-linked-doc-block/utils.ts +102 -0
  319. package/src/_pkgs/affine-block-embed-doc/embed-synced-doc-block/adapters/extension.ts +11 -0
  320. package/src/_pkgs/affine-block-embed-doc/embed-synced-doc-block/adapters/html.ts +88 -0
  321. package/src/_pkgs/affine-block-embed-doc/embed-synced-doc-block/adapters/index.ts +3 -0
  322. package/src/_pkgs/affine-block-embed-doc/embed-synced-doc-block/adapters/markdown.ts +64 -0
  323. package/src/_pkgs/affine-block-embed-doc/embed-synced-doc-block/adapters/plain-text.ts +62 -0
  324. package/src/_pkgs/affine-block-embed-doc/embed-synced-doc-block/commands/index.ts +1 -0
  325. package/src/_pkgs/affine-block-embed-doc/embed-synced-doc-block/commands/insert-embed-synced-doc.ts +20 -0
  326. package/src/_pkgs/affine-block-embed-doc/embed-synced-doc-block/components/embed-synced-doc-card.ts +262 -0
  327. package/src/_pkgs/affine-block-embed-doc/embed-synced-doc-block/configs/edgeless-interaction.ts +87 -0
  328. package/src/_pkgs/affine-block-embed-doc/embed-synced-doc-block/configs/index.ts +18 -0
  329. package/src/_pkgs/affine-block-embed-doc/embed-synced-doc-block/configs/toolbar.ts +500 -0
  330. package/src/_pkgs/affine-block-embed-doc/embed-synced-doc-block/edgeless-clipboard-config.ts +27 -0
  331. package/src/_pkgs/affine-block-embed-doc/embed-synced-doc-block/embed-edgeless-synced-doc-block.ts +196 -0
  332. package/src/_pkgs/affine-block-embed-doc/embed-synced-doc-block/embed-synced-doc-block.ts +627 -0
  333. package/src/_pkgs/affine-block-embed-doc/embed-synced-doc-block/embed-synced-doc-spec.ts +20 -0
  334. package/src/_pkgs/affine-block-embed-doc/embed-synced-doc-block/index.ts +8 -0
  335. package/src/_pkgs/affine-block-embed-doc/embed-synced-doc-block/init-height-extension.ts +65 -0
  336. package/src/_pkgs/affine-block-embed-doc/embed-synced-doc-block/styles.ts +1122 -0
  337. package/src/_pkgs/affine-block-embed-doc/embed-synced-doc-block/utils.ts +74 -0
  338. package/src/_pkgs/affine-block-embed-doc/index.ts +2 -0
  339. package/src/_pkgs/affine-block-embed-doc/store.ts +25 -0
  340. package/src/_pkgs/affine-block-embed-doc/view.ts +40 -0
  341. package/src/_pkgs/affine-block-frame/edgeless-clipboard-config.ts +43 -0
  342. package/src/_pkgs/affine-block-frame/edgeless-toolbar/config.ts +9 -0
  343. package/src/_pkgs/affine-block-frame/edgeless-toolbar/frame-dense-menu.ts +34 -0
  344. package/src/_pkgs/affine-block-frame/edgeless-toolbar/frame-menu.ts +104 -0
  345. package/src/_pkgs/affine-block-frame/edgeless-toolbar/frame-tool-button.ts +49 -0
  346. package/src/_pkgs/affine-block-frame/edgeless-toolbar/index.ts +5 -0
  347. package/src/_pkgs/affine-block-frame/edgeless-toolbar/presentation-toolbar.ts +560 -0
  348. package/src/_pkgs/affine-block-frame/edgeless-toolbar/quick-tool.ts +16 -0
  349. package/src/_pkgs/affine-block-frame/effects.ts +47 -0
  350. package/src/_pkgs/affine-block-frame/frame-block.ts +208 -0
  351. package/src/_pkgs/affine-block-frame/frame-highlight-manager.ts +96 -0
  352. package/src/_pkgs/affine-block-frame/frame-manager.ts +503 -0
  353. package/src/_pkgs/affine-block-frame/frame-spec.ts +16 -0
  354. package/src/_pkgs/affine-block-frame/frame-tool.ts +108 -0
  355. package/src/_pkgs/affine-block-frame/frame-toolbar.ts +218 -0
  356. package/src/_pkgs/affine-block-frame/index.ts +9 -0
  357. package/src/_pkgs/affine-block-frame/present/frame-order-button.ts +82 -0
  358. package/src/_pkgs/affine-block-frame/present/frame-order-menu.ts +265 -0
  359. package/src/_pkgs/affine-block-frame/present/navigator-bg-widget.ts +126 -0
  360. package/src/_pkgs/affine-block-frame/present/navigator-setting-button.ts +195 -0
  361. package/src/_pkgs/affine-block-frame/present/present-button.ts +40 -0
  362. package/src/_pkgs/affine-block-frame/present-tool.ts +12 -0
  363. package/src/_pkgs/affine-block-frame/store.ts +14 -0
  364. package/src/_pkgs/affine-block-frame/view.ts +39 -0
  365. package/src/_pkgs/affine-block-image/adapters/extension.ts +11 -0
  366. package/src/_pkgs/affine-block-image/adapters/html.ts +90 -0
  367. package/src/_pkgs/affine-block-image/adapters/index.ts +3 -0
  368. package/src/_pkgs/affine-block-image/adapters/markdown.ts +66 -0
  369. package/src/_pkgs/affine-block-image/adapters/notion-html.ts +82 -0
  370. package/src/_pkgs/affine-block-image/adapters/utils.ts +89 -0
  371. package/src/_pkgs/affine-block-image/commands/index.ts +1 -0
  372. package/src/_pkgs/affine-block-image/commands/insert-images.ts +40 -0
  373. package/src/_pkgs/affine-block-image/components/image-block-fallback.ts +126 -0
  374. package/src/_pkgs/affine-block-image/components/image-selected-rect.ts +83 -0
  375. package/src/_pkgs/affine-block-image/components/page-image-block.ts +422 -0
  376. package/src/_pkgs/affine-block-image/configs/slash-menu.ts +32 -0
  377. package/src/_pkgs/affine-block-image/configs/toolbar.ts +174 -0
  378. package/src/_pkgs/affine-block-image/configs/tooltips.ts +20 -0
  379. package/src/_pkgs/affine-block-image/edgeless-clipboard-config.ts +30 -0
  380. package/src/_pkgs/affine-block-image/effects.ts +21 -0
  381. package/src/_pkgs/affine-block-image/image-block.ts +194 -0
  382. package/src/_pkgs/affine-block-image/image-edgeless-block.ts +205 -0
  383. package/src/_pkgs/affine-block-image/image-resize-manager.ts +105 -0
  384. package/src/_pkgs/affine-block-image/image-service.ts +46 -0
  385. package/src/_pkgs/affine-block-image/image-spec.ts +29 -0
  386. package/src/_pkgs/affine-block-image/index.ts +11 -0
  387. package/src/_pkgs/affine-block-image/preview-image/edgeless.ts +25 -0
  388. package/src/_pkgs/affine-block-image/preview-image/page.ts +58 -0
  389. package/src/_pkgs/affine-block-image/store.ts +18 -0
  390. package/src/_pkgs/affine-block-image/turbo/image-layout-handler.ts +71 -0
  391. package/src/_pkgs/affine-block-image/turbo/image-painter.worker.ts +56 -0
  392. package/src/_pkgs/affine-block-image/utils.ts +433 -0
  393. package/src/_pkgs/affine-block-image/view.ts +27 -0
  394. package/src/_pkgs/affine-block-latex/adapters/extension.ts +11 -0
  395. package/src/_pkgs/affine-block-latex/adapters/index.ts +3 -0
  396. package/src/_pkgs/affine-block-latex/adapters/markdown/index.ts +12 -0
  397. package/src/_pkgs/affine-block-latex/adapters/markdown/markdown.ts +55 -0
  398. package/src/_pkgs/affine-block-latex/adapters/markdown/preprocessor.ts +88 -0
  399. package/src/_pkgs/affine-block-latex/adapters/notion-html.ts +50 -0
  400. package/src/_pkgs/affine-block-latex/adapters/plain-text.ts +29 -0
  401. package/src/_pkgs/affine-block-latex/commands.ts +75 -0
  402. package/src/_pkgs/affine-block-latex/configs/slash-menu.ts +62 -0
  403. package/src/_pkgs/affine-block-latex/configs/tooltips.ts +41 -0
  404. package/src/_pkgs/affine-block-latex/effects.ts +5 -0
  405. package/src/_pkgs/affine-block-latex/index.ts +8 -0
  406. package/src/_pkgs/affine-block-latex/latex-block.ts +158 -0
  407. package/src/_pkgs/affine-block-latex/store.ts +19 -0
  408. package/src/_pkgs/affine-block-latex/styles.ts +40 -0
  409. package/src/_pkgs/affine-block-latex/view.ts +27 -0
  410. package/src/_pkgs/affine-block-list/adapters/extension.ts +13 -0
  411. package/src/_pkgs/affine-block-list/adapters/html.ts +203 -0
  412. package/src/_pkgs/affine-block-list/adapters/index.ts +4 -0
  413. package/src/_pkgs/affine-block-list/adapters/markdown.ts +156 -0
  414. package/src/_pkgs/affine-block-list/adapters/notion-html.ts +116 -0
  415. package/src/_pkgs/affine-block-list/adapters/plain-text.ts +27 -0
  416. package/src/_pkgs/affine-block-list/commands/convert-to-numbered-list.ts +28 -0
  417. package/src/_pkgs/affine-block-list/commands/dedent-list.ts +165 -0
  418. package/src/_pkgs/affine-block-list/commands/indent-list.ts +147 -0
  419. package/src/_pkgs/affine-block-list/commands/index.ts +5 -0
  420. package/src/_pkgs/affine-block-list/commands/list-to-paragraph.ts +44 -0
  421. package/src/_pkgs/affine-block-list/commands/split-list.ts +250 -0
  422. package/src/_pkgs/affine-block-list/commands/utils.ts +70 -0
  423. package/src/_pkgs/affine-block-list/effects.ts +11 -0
  424. package/src/_pkgs/affine-block-list/index.ts +6 -0
  425. package/src/_pkgs/affine-block-list/list-block.ts +216 -0
  426. package/src/_pkgs/affine-block-list/list-keymap.ts +136 -0
  427. package/src/_pkgs/affine-block-list/markdown.ts +91 -0
  428. package/src/_pkgs/affine-block-list/store.ts +17 -0
  429. package/src/_pkgs/affine-block-list/styles.ts +69 -0
  430. package/src/_pkgs/affine-block-list/turbo/list-layout-handler.ts +151 -0
  431. package/src/_pkgs/affine-block-list/turbo/list-painter.worker.ts +119 -0
  432. package/src/_pkgs/affine-block-list/utils/forward-delete.ts +75 -0
  433. package/src/_pkgs/affine-block-list/utils/get-list-icon.ts +78 -0
  434. package/src/_pkgs/affine-block-list/utils/get-number-prefix.ts +52 -0
  435. package/src/_pkgs/affine-block-list/view.ts +30 -0
  436. package/src/_pkgs/affine-block-note/adapters/html.ts +44 -0
  437. package/src/_pkgs/affine-block-note/adapters/index.ts +30 -0
  438. package/src/_pkgs/affine-block-note/adapters/markdown.ts +131 -0
  439. package/src/_pkgs/affine-block-note/adapters/plain-text.ts +41 -0
  440. package/src/_pkgs/affine-block-note/commands/block-type.ts +247 -0
  441. package/src/_pkgs/affine-block-note/commands/change-note-display-mode.ts +60 -0
  442. package/src/_pkgs/affine-block-note/commands/dedent-block-to-root.ts +38 -0
  443. package/src/_pkgs/affine-block-note/commands/dedent-block.ts +67 -0
  444. package/src/_pkgs/affine-block-note/commands/dedent-blocks-to-root.ts +43 -0
  445. package/src/_pkgs/affine-block-note/commands/dedent-blocks.ts +87 -0
  446. package/src/_pkgs/affine-block-note/commands/indent-block.ts +74 -0
  447. package/src/_pkgs/affine-block-note/commands/indent-blocks.ts +125 -0
  448. package/src/_pkgs/affine-block-note/commands/index.ts +10 -0
  449. package/src/_pkgs/affine-block-note/commands/select-block.ts +22 -0
  450. package/src/_pkgs/affine-block-note/commands/select-blocks-between.ts +53 -0
  451. package/src/_pkgs/affine-block-note/components/edgeless-note-background.css.ts +27 -0
  452. package/src/_pkgs/affine-block-note/components/edgeless-note-background.ts +182 -0
  453. package/src/_pkgs/affine-block-note/components/edgeless-note-border-dropdown-menu.ts +42 -0
  454. package/src/_pkgs/affine-block-note/components/edgeless-note-display-mode-dropdown-menu.ts +58 -0
  455. package/src/_pkgs/affine-block-note/components/edgeless-note-mask.ts +84 -0
  456. package/src/_pkgs/affine-block-note/components/edgeless-note-shadow-menu.ts +206 -0
  457. package/src/_pkgs/affine-block-note/components/edgeless-note-style-panel.ts +434 -0
  458. package/src/_pkgs/affine-block-note/components/edgeless-page-block-title.css.ts +11 -0
  459. package/src/_pkgs/affine-block-note/components/edgeless-page-block-title.ts +46 -0
  460. package/src/_pkgs/affine-block-note/components/icons.ts +74 -0
  461. package/src/_pkgs/affine-block-note/components/more-indicator.ts +17 -0
  462. package/src/_pkgs/affine-block-note/config.ts +20 -0
  463. package/src/_pkgs/affine-block-note/configs/slash-menu.ts +125 -0
  464. package/src/_pkgs/affine-block-note/configs/toolbar.ts +350 -0
  465. package/src/_pkgs/affine-block-note/configs/tooltips.ts +330 -0
  466. package/src/_pkgs/affine-block-note/edgeless-clipboard-config.ts +28 -0
  467. package/src/_pkgs/affine-block-note/effects.ts +29 -0
  468. package/src/_pkgs/affine-block-note/index.ts +9 -0
  469. package/src/_pkgs/affine-block-note/move-block.ts +129 -0
  470. package/src/_pkgs/affine-block-note/note-block.ts +34 -0
  471. package/src/_pkgs/affine-block-note/note-edgeless-block.css.ts +74 -0
  472. package/src/_pkgs/affine-block-note/note-edgeless-block.ts +499 -0
  473. package/src/_pkgs/affine-block-note/note-keymap.ts +611 -0
  474. package/src/_pkgs/affine-block-note/quick-action.ts +66 -0
  475. package/src/_pkgs/affine-block-note/store.ts +36 -0
  476. package/src/_pkgs/affine-block-note/turbo/note-layout-handler.ts +83 -0
  477. package/src/_pkgs/affine-block-note/turbo/note-painter.worker.ts +49 -0
  478. package/src/_pkgs/affine-block-note/view.ts +47 -0
  479. package/src/_pkgs/affine-block-paragraph/adapters/extension.ts +13 -0
  480. package/src/_pkgs/affine-block-paragraph/adapters/html.ts +359 -0
  481. package/src/_pkgs/affine-block-paragraph/adapters/index.ts +4 -0
  482. package/src/_pkgs/affine-block-paragraph/adapters/markdown.ts +200 -0
  483. package/src/_pkgs/affine-block-paragraph/adapters/notion-html.ts +239 -0
  484. package/src/_pkgs/affine-block-paragraph/adapters/plain-text.ts +28 -0
  485. package/src/_pkgs/affine-block-paragraph/commands/add-paragraph.ts +56 -0
  486. package/src/_pkgs/affine-block-paragraph/commands/append-paragraph.ts +30 -0
  487. package/src/_pkgs/affine-block-paragraph/commands/dedent-paragraph.ts +114 -0
  488. package/src/_pkgs/affine-block-paragraph/commands/indent-paragraph.ts +156 -0
  489. package/src/_pkgs/affine-block-paragraph/commands/index.ts +11 -0
  490. package/src/_pkgs/affine-block-paragraph/commands/split-paragraph.ts +81 -0
  491. package/src/_pkgs/affine-block-paragraph/effects.ts +13 -0
  492. package/src/_pkgs/affine-block-paragraph/heading-icon.ts +92 -0
  493. package/src/_pkgs/affine-block-paragraph/index.ts +6 -0
  494. package/src/_pkgs/affine-block-paragraph/markdown.ts +74 -0
  495. package/src/_pkgs/affine-block-paragraph/paragraph-block-config.ts +9 -0
  496. package/src/_pkgs/affine-block-paragraph/paragraph-block.ts +369 -0
  497. package/src/_pkgs/affine-block-paragraph/paragraph-keymap.ts +230 -0
  498. package/src/_pkgs/affine-block-paragraph/store.ts +17 -0
  499. package/src/_pkgs/affine-block-paragraph/styles.ts +158 -0
  500. package/src/_pkgs/affine-block-paragraph/turbo/paragraph-layout-handler.ts +106 -0
  501. package/src/_pkgs/affine-block-paragraph/turbo/paragraph-painter.worker.ts +115 -0
  502. package/src/_pkgs/affine-block-paragraph/utils/forward-delete.ts +94 -0
  503. package/src/_pkgs/affine-block-paragraph/utils/merge-with-prev.ts +184 -0
  504. package/src/_pkgs/affine-block-paragraph/view.ts +66 -0
  505. package/src/_pkgs/affine-block-root/adapters/extension.ts +11 -0
  506. package/src/_pkgs/affine-block-root/adapters/html.ts +135 -0
  507. package/src/_pkgs/affine-block-root/adapters/index.ts +3 -0
  508. package/src/_pkgs/affine-block-root/adapters/markdown.ts +36 -0
  509. package/src/_pkgs/affine-block-root/adapters/notion-html.ts +28 -0
  510. package/src/_pkgs/affine-block-root/clipboard/index.ts +2 -0
  511. package/src/_pkgs/affine-block-root/clipboard/page-clipboard.ts +176 -0
  512. package/src/_pkgs/affine-block-root/clipboard/readonly-clipboard.ts +71 -0
  513. package/src/_pkgs/affine-block-root/configs/toolbar.ts +398 -0
  514. package/src/_pkgs/affine-block-root/edgeless/clipboard/canvas.ts +117 -0
  515. package/src/_pkgs/affine-block-root/edgeless/clipboard/clipboard.ts +715 -0
  516. package/src/_pkgs/affine-block-root/edgeless/clipboard/command.ts +218 -0
  517. package/src/_pkgs/affine-block-root/edgeless/clipboard/utils.ts +140 -0
  518. package/src/_pkgs/affine-block-root/edgeless/configs/toolbar/alignment.ts +293 -0
  519. package/src/_pkgs/affine-block-root/edgeless/configs/toolbar/index.ts +19 -0
  520. package/src/_pkgs/affine-block-root/edgeless/configs/toolbar/misc.ts +369 -0
  521. package/src/_pkgs/affine-block-root/edgeless/configs/toolbar/more.ts +435 -0
  522. package/src/_pkgs/affine-block-root/edgeless/configs/toolbar/render-linked-doc.ts +96 -0
  523. package/src/_pkgs/affine-block-root/edgeless/configs/toolbar/utils.ts +17 -0
  524. package/src/_pkgs/affine-block-root/edgeless/edgeless-keyboard.ts +753 -0
  525. package/src/_pkgs/affine-block-root/edgeless/edgeless-root-block.ts +524 -0
  526. package/src/_pkgs/affine-block-root/edgeless/edgeless-root-service.ts +231 -0
  527. package/src/_pkgs/affine-block-root/edgeless/edgeless-root-spec.ts +11 -0
  528. package/src/_pkgs/affine-block-root/edgeless/index.ts +9 -0
  529. package/src/_pkgs/affine-block-root/edgeless/interact-extensions/clone-ext.ts +32 -0
  530. package/src/_pkgs/affine-block-root/edgeless/utils/clipboard-utils.ts +97 -0
  531. package/src/_pkgs/affine-block-root/edgeless/utils/clone-utils.ts +237 -0
  532. package/src/_pkgs/affine-block-root/edgeless/utils/connector.ts +34 -0
  533. package/src/_pkgs/affine-block-root/edgeless/utils/consts.ts +3 -0
  534. package/src/_pkgs/affine-block-root/edgeless/utils/crud.ts +37 -0
  535. package/src/_pkgs/affine-block-root/edgeless/utils/cursors.ts +2 -0
  536. package/src/_pkgs/affine-block-root/edgeless/utils/query.ts +104 -0
  537. package/src/_pkgs/affine-block-root/effects.ts +28 -0
  538. package/src/_pkgs/affine-block-root/index.ts +7 -0
  539. package/src/_pkgs/affine-block-root/keyboard/keyboard-manager.ts +163 -0
  540. package/src/_pkgs/affine-block-root/keyboard/keymap.ts +16 -0
  541. package/src/_pkgs/affine-block-root/page/page-root-block.ts +422 -0
  542. package/src/_pkgs/affine-block-root/preview/edgeless-root-preview-block.ts +262 -0
  543. package/src/_pkgs/affine-block-root/preview/preview-root-block.ts +41 -0
  544. package/src/_pkgs/affine-block-root/store.ts +17 -0
  545. package/src/_pkgs/affine-block-root/types.ts +6 -0
  546. package/src/_pkgs/affine-block-root/view.ts +93 -0
  547. package/src/_pkgs/affine-block-surface/adapters/extension.ts +21 -0
  548. package/src/_pkgs/affine-block-surface/adapters/html-adapter/html.ts +20 -0
  549. package/src/_pkgs/affine-block-surface/adapters/index.ts +1 -0
  550. package/src/_pkgs/affine-block-surface/adapters/markdown/element-adapter/index.ts +33 -0
  551. package/src/_pkgs/affine-block-surface/adapters/markdown/element-adapter/type.ts +29 -0
  552. package/src/_pkgs/affine-block-surface/adapters/markdown/markdown.ts +76 -0
  553. package/src/_pkgs/affine-block-surface/adapters/plain-text/element-adapter/index.ts +32 -0
  554. package/src/_pkgs/affine-block-surface/adapters/plain-text/element-adapter/type.ts +29 -0
  555. package/src/_pkgs/affine-block-surface/adapters/plain-text/plain-text.ts +77 -0
  556. package/src/_pkgs/affine-block-surface/adapters/type.ts +30 -0
  557. package/src/_pkgs/affine-block-surface/commands/auto-align.ts +157 -0
  558. package/src/_pkgs/affine-block-surface/commands/index.ts +5 -0
  559. package/src/_pkgs/affine-block-surface/commands/reassociate-connectors.ts +46 -0
  560. package/src/_pkgs/affine-block-surface/consts.ts +28 -0
  561. package/src/_pkgs/affine-block-surface/effects.ts +7 -0
  562. package/src/_pkgs/affine-block-surface/element-model/base.ts +4 -0
  563. package/src/_pkgs/affine-block-surface/element-model/index.ts +96 -0
  564. package/src/_pkgs/affine-block-surface/extensions/clipboard-config.ts +80 -0
  565. package/src/_pkgs/affine-block-surface/extensions/crud-extension.ts +181 -0
  566. package/src/_pkgs/affine-block-surface/extensions/dom-element-renderer.ts +30 -0
  567. package/src/_pkgs/affine-block-surface/extensions/edit-props-middleware-builder.ts +26 -0
  568. package/src/_pkgs/affine-block-surface/extensions/element-renderer.ts +31 -0
  569. package/src/_pkgs/affine-block-surface/extensions/export-manager/export-manager.ts +559 -0
  570. package/src/_pkgs/affine-block-surface/extensions/export-manager/file-exporter.ts +81 -0
  571. package/src/_pkgs/affine-block-surface/extensions/export-manager/index.ts +1 -0
  572. package/src/_pkgs/affine-block-surface/extensions/index.ts +9 -0
  573. package/src/_pkgs/affine-block-surface/extensions/legacy-slot-extension.ts +39 -0
  574. package/src/_pkgs/affine-block-surface/extensions/query.ts +15 -0
  575. package/src/_pkgs/affine-block-surface/extensions/surface-middleware.ts +23 -0
  576. package/src/_pkgs/affine-block-surface/index.ts +54 -0
  577. package/src/_pkgs/affine-block-surface/renderer/canvas-renderer.ts +472 -0
  578. package/src/_pkgs/affine-block-surface/renderer/dom-elements/index.ts +31 -0
  579. package/src/_pkgs/affine-block-surface/renderer/dom-renderer.ts +710 -0
  580. package/src/_pkgs/affine-block-surface/renderer/elements/index.ts +23 -0
  581. package/src/_pkgs/affine-block-surface/renderer/elements/type.ts +6 -0
  582. package/src/_pkgs/affine-block-surface/renderer/overlay.ts +57 -0
  583. package/src/_pkgs/affine-block-surface/renderer/tool-overlay.ts +44 -0
  584. package/src/_pkgs/affine-block-surface/store.ts +17 -0
  585. package/src/_pkgs/affine-block-surface/surface-block-void.ts +16 -0
  586. package/src/_pkgs/affine-block-surface/surface-block.ts +255 -0
  587. package/src/_pkgs/affine-block-surface/surface-model.ts +69 -0
  588. package/src/_pkgs/affine-block-surface/surface-transformer.ts +115 -0
  589. package/src/_pkgs/affine-block-surface/tool/default-tool.ts +374 -0
  590. package/src/_pkgs/affine-block-surface/tool/panning-utils.ts +46 -0
  591. package/src/_pkgs/affine-block-surface/utils/a-star.ts +299 -0
  592. package/src/_pkgs/affine-block-surface/utils/font.ts +47 -0
  593. package/src/_pkgs/affine-block-surface/utils/get-bg-grip-gap.ts +10 -0
  594. package/src/_pkgs/affine-block-surface/utils/get-last-props-key.ts +29 -0
  595. package/src/_pkgs/affine-block-surface/utils/get-surface-block.ts +16 -0
  596. package/src/_pkgs/affine-block-surface/utils/graph.ts +151 -0
  597. package/src/_pkgs/affine-block-surface/utils/index.ts +38 -0
  598. package/src/_pkgs/affine-block-surface/utils/path-data-parser/LICENSE +21 -0
  599. package/src/_pkgs/affine-block-surface/utils/path-data-parser/absolutize.ts +117 -0
  600. package/src/_pkgs/affine-block-surface/utils/path-data-parser/normalize.ts +280 -0
  601. package/src/_pkgs/affine-block-surface/utils/path-data-parser/parser.ts +153 -0
  602. package/src/_pkgs/affine-block-surface/utils/points-on-curve/LICENSE +21 -0
  603. package/src/_pkgs/affine-block-surface/utils/points-on-curve/curve-to-bezier.ts +51 -0
  604. package/src/_pkgs/affine-block-surface/utils/points-on-curve/index.ts +163 -0
  605. package/src/_pkgs/affine-block-surface/utils/points-on-path/LICENSE +21 -0
  606. package/src/_pkgs/affine-block-surface/utils/points-on-path/index.ts +77 -0
  607. package/src/_pkgs/affine-block-surface/utils/priority-queue.ts +85 -0
  608. package/src/_pkgs/affine-block-surface/utils/rough/LICENSE +21 -0
  609. package/src/_pkgs/affine-block-surface/utils/rough/canvas.ts +214 -0
  610. package/src/_pkgs/affine-block-surface/utils/rough/core.ts +93 -0
  611. package/src/_pkgs/affine-block-surface/utils/rough/fillers/dashed-filler.ts +62 -0
  612. package/src/_pkgs/affine-block-surface/utils/rough/fillers/dot-filler.ts +50 -0
  613. package/src/_pkgs/affine-block-surface/utils/rough/fillers/filler-interface.ts +25 -0
  614. package/src/_pkgs/affine-block-surface/utils/rough/fillers/filler.ts +54 -0
  615. package/src/_pkgs/affine-block-surface/utils/rough/fillers/hachure-filler.ts +38 -0
  616. package/src/_pkgs/affine-block-surface/utils/rough/fillers/hatch-filler.ts +13 -0
  617. package/src/_pkgs/affine-block-surface/utils/rough/fillers/scan-line-hachure.ts +152 -0
  618. package/src/_pkgs/affine-block-surface/utils/rough/fillers/zigzag-filler.ts +31 -0
  619. package/src/_pkgs/affine-block-surface/utils/rough/fillers/zigzag-line-filler.ts +64 -0
  620. package/src/_pkgs/affine-block-surface/utils/rough/generator.ts +340 -0
  621. package/src/_pkgs/affine-block-surface/utils/rough/geometry.ts +43 -0
  622. package/src/_pkgs/affine-block-surface/utils/rough/math.ts +21 -0
  623. package/src/_pkgs/affine-block-surface/utils/rough/renderer.ts +742 -0
  624. package/src/_pkgs/affine-block-surface/utils/rough/rough.ts +22 -0
  625. package/src/_pkgs/affine-block-surface/utils/rough/svg.ts +182 -0
  626. package/src/_pkgs/affine-block-surface/utils/sort.ts +93 -0
  627. package/src/_pkgs/affine-block-surface/utils/update-xywh.ts +82 -0
  628. package/src/_pkgs/affine-block-surface/view.ts +45 -0
  629. package/src/_pkgs/affine-block-surface-ref/commands.ts +60 -0
  630. package/src/_pkgs/affine-block-surface-ref/components/index.ts +2 -0
  631. package/src/_pkgs/affine-block-surface-ref/components/placeholder.ts +131 -0
  632. package/src/_pkgs/affine-block-surface-ref/components/surface-ref-toolbar-title.ts +76 -0
  633. package/src/_pkgs/affine-block-surface-ref/configs/slash-menu.ts +164 -0
  634. package/src/_pkgs/affine-block-surface-ref/configs/toolbar.ts +100 -0
  635. package/src/_pkgs/affine-block-surface-ref/configs/tooltips.ts +111 -0
  636. package/src/_pkgs/affine-block-surface-ref/effects.ts +20 -0
  637. package/src/_pkgs/affine-block-surface-ref/icons.ts +211 -0
  638. package/src/_pkgs/affine-block-surface-ref/index.ts +3 -0
  639. package/src/_pkgs/affine-block-surface-ref/portal/generic-block.ts +82 -0
  640. package/src/_pkgs/affine-block-surface-ref/portal/note.ts +169 -0
  641. package/src/_pkgs/affine-block-surface-ref/store.ts +14 -0
  642. package/src/_pkgs/affine-block-surface-ref/surface-ref-block-edgeless.ts +80 -0
  643. package/src/_pkgs/affine-block-surface-ref/surface-ref-block.ts +511 -0
  644. package/src/_pkgs/affine-block-surface-ref/utils.ts +152 -0
  645. package/src/_pkgs/affine-block-surface-ref/view.ts +49 -0
  646. package/src/_pkgs/affine-block-table/adapters/extension.ts +13 -0
  647. package/src/_pkgs/affine-block-table/adapters/html.ts +129 -0
  648. package/src/_pkgs/affine-block-table/adapters/index.ts +5 -0
  649. package/src/_pkgs/affine-block-table/adapters/markdown.ts +82 -0
  650. package/src/_pkgs/affine-block-table/adapters/notion-html.ts +21 -0
  651. package/src/_pkgs/affine-block-table/adapters/plain-text.ts +79 -0
  652. package/src/_pkgs/affine-block-table/adapters/utils.ts +212 -0
  653. package/src/_pkgs/affine-block-table/add-button-css.ts +99 -0
  654. package/src/_pkgs/affine-block-table/add-button.ts +330 -0
  655. package/src/_pkgs/affine-block-table/color.ts +45 -0
  656. package/src/_pkgs/affine-block-table/commands.ts +52 -0
  657. package/src/_pkgs/affine-block-table/configs/slash-menu.ts +44 -0
  658. package/src/_pkgs/affine-block-table/configs/tooltips.ts +68 -0
  659. package/src/_pkgs/affine-block-table/consts.ts +4 -0
  660. package/src/_pkgs/affine-block-table/effects.ts +11 -0
  661. package/src/_pkgs/affine-block-table/index.ts +4 -0
  662. package/src/_pkgs/affine-block-table/selection-controller.ts +527 -0
  663. package/src/_pkgs/affine-block-table/selection-layer.ts +112 -0
  664. package/src/_pkgs/affine-block-table/selection-schema.ts +112 -0
  665. package/src/_pkgs/affine-block-table/store.ts +19 -0
  666. package/src/_pkgs/affine-block-table/table-block-css.ts +40 -0
  667. package/src/_pkgs/affine-block-table/table-block.ts +209 -0
  668. package/src/_pkgs/affine-block-table/table-cell-css.ts +154 -0
  669. package/src/_pkgs/affine-block-table/table-cell.ts +866 -0
  670. package/src/_pkgs/affine-block-table/table-data-manager.ts +382 -0
  671. package/src/_pkgs/affine-block-table/utils.ts +6 -0
  672. package/src/_pkgs/affine-block-table/view.ts +29 -0
  673. package/src/_pkgs/affine-components/block-selection/index.ts +69 -0
  674. package/src/_pkgs/affine-components/block-zero-width/index.ts +59 -0
  675. package/src/_pkgs/affine-components/caption/block-caption.ts +188 -0
  676. package/src/_pkgs/affine-components/caption/captioned-block-component.ts +82 -0
  677. package/src/_pkgs/affine-components/caption/index.ts +10 -0
  678. package/src/_pkgs/affine-components/caption/styles.ts +18 -0
  679. package/src/_pkgs/affine-components/card-style-dropdown-menu/dropdown-menu.ts +118 -0
  680. package/src/_pkgs/affine-components/card-style-dropdown-menu/index.ts +10 -0
  681. package/src/_pkgs/affine-components/citation/citation.ts +167 -0
  682. package/src/_pkgs/affine-components/citation/index.ts +7 -0
  683. package/src/_pkgs/affine-components/color-picker/button.ts +207 -0
  684. package/src/_pkgs/affine-components/color-picker/color-panel.ts +260 -0
  685. package/src/_pkgs/affine-components/color-picker/color-picker.ts +677 -0
  686. package/src/_pkgs/affine-components/color-picker/consts.ts +25 -0
  687. package/src/_pkgs/affine-components/color-picker/custom-button.ts +69 -0
  688. package/src/_pkgs/affine-components/color-picker/icons.ts +71 -0
  689. package/src/_pkgs/affine-components/color-picker/index.ts +41 -0
  690. package/src/_pkgs/affine-components/color-picker/styles.ts +308 -0
  691. package/src/_pkgs/affine-components/color-picker/types.ts +53 -0
  692. package/src/_pkgs/affine-components/color-picker/utils.ts +368 -0
  693. package/src/_pkgs/affine-components/context-menu/button.ts +302 -0
  694. package/src/_pkgs/affine-components/context-menu/dynamic.ts +15 -0
  695. package/src/_pkgs/affine-components/context-menu/focusable.ts +18 -0
  696. package/src/_pkgs/affine-components/context-menu/group.ts +35 -0
  697. package/src/_pkgs/affine-components/context-menu/index.ts +30 -0
  698. package/src/_pkgs/affine-components/context-menu/input.ts +254 -0
  699. package/src/_pkgs/affine-components/context-menu/item.ts +12 -0
  700. package/src/_pkgs/affine-components/context-menu/menu-all.ts +14 -0
  701. package/src/_pkgs/affine-components/context-menu/menu-divider.ts +50 -0
  702. package/src/_pkgs/affine-components/context-menu/menu-renderer.ts +574 -0
  703. package/src/_pkgs/affine-components/context-menu/menu.ts +170 -0
  704. package/src/_pkgs/affine-components/context-menu/sub-menu.ts +194 -0
  705. package/src/_pkgs/affine-components/context-menu/types.ts +21 -0
  706. package/src/_pkgs/affine-components/date-picker/date-picker.ts +626 -0
  707. package/src/_pkgs/affine-components/date-picker/icons.ts +11 -0
  708. package/src/_pkgs/affine-components/date-picker/index.ts +7 -0
  709. package/src/_pkgs/affine-components/date-picker/style.ts +309 -0
  710. package/src/_pkgs/affine-components/date-picker/utils.ts +68 -0
  711. package/src/_pkgs/affine-components/drop-indicator/drop-indicator.ts +51 -0
  712. package/src/_pkgs/affine-components/drop-indicator/file-drop-manager.ts +300 -0
  713. package/src/_pkgs/affine-components/drop-indicator/index.ts +13 -0
  714. package/src/_pkgs/affine-components/edgeless-line-styles-panel/index.ts +7 -0
  715. package/src/_pkgs/affine-components/edgeless-line-styles-panel/line-styles-panel.ts +113 -0
  716. package/src/_pkgs/affine-components/edgeless-line-width-panel/index.ts +7 -0
  717. package/src/_pkgs/affine-components/edgeless-line-width-panel/line-width-panel.ts +50 -0
  718. package/src/_pkgs/affine-components/edgeless-shape-color-picker/color-picker.ts +318 -0
  719. package/src/_pkgs/affine-components/edgeless-shape-color-picker/index.ts +10 -0
  720. package/src/_pkgs/affine-components/embed-card-modal/embed-card-create-modal.ts +218 -0
  721. package/src/_pkgs/affine-components/embed-card-modal/embed-card-edit-modal.ts +468 -0
  722. package/src/_pkgs/affine-components/embed-card-modal/index.ts +10 -0
  723. package/src/_pkgs/affine-components/embed-card-modal/styles.ts +131 -0
  724. package/src/_pkgs/affine-components/filterable-list/index.ts +259 -0
  725. package/src/_pkgs/affine-components/filterable-list/styles.ts +109 -0
  726. package/src/_pkgs/affine-components/filterable-list/types.ts +16 -0
  727. package/src/_pkgs/affine-components/highlight-dropdown-menu/dropdown-menu.ts +123 -0
  728. package/src/_pkgs/affine-components/highlight-dropdown-menu/highlight-duotone-icon.ts +23 -0
  729. package/src/_pkgs/affine-components/highlight-dropdown-menu/index.ts +16 -0
  730. package/src/_pkgs/affine-components/highlight-dropdown-menu/text-duotone-icon.ts +26 -0
  731. package/src/_pkgs/affine-components/hover/controller.ts +201 -0
  732. package/src/_pkgs/affine-components/hover/index.ts +3 -0
  733. package/src/_pkgs/affine-components/hover/middlewares/basic.ts +79 -0
  734. package/src/_pkgs/affine-components/hover/middlewares/safe-area.ts +361 -0
  735. package/src/_pkgs/affine-components/hover/types.ts +65 -0
  736. package/src/_pkgs/affine-components/hover/when-hover.ts +144 -0
  737. package/src/_pkgs/affine-components/icon-button/index.ts +242 -0
  738. package/src/_pkgs/affine-components/icons/ai.ts +103 -0
  739. package/src/_pkgs/affine-components/icons/file-icons-rc.ts +173 -0
  740. package/src/_pkgs/affine-components/icons/file-icons.ts +105 -0
  741. package/src/_pkgs/affine-components/icons/import-export.ts +110 -0
  742. package/src/_pkgs/affine-components/icons/index.ts +10 -0
  743. package/src/_pkgs/affine-components/icons/list.ts +39 -0
  744. package/src/_pkgs/affine-components/icons/loading.ts +47 -0
  745. package/src/_pkgs/affine-components/icons/misc.ts +59 -0
  746. package/src/_pkgs/affine-components/icons/tags.ts +6 -0
  747. package/src/_pkgs/affine-components/icons/text.ts +856 -0
  748. package/src/_pkgs/affine-components/icons/utils.ts +12 -0
  749. package/src/_pkgs/affine-components/index.ts +1 -0
  750. package/src/_pkgs/affine-components/link-preview/index.ts +7 -0
  751. package/src/_pkgs/affine-components/link-preview/link.ts +65 -0
  752. package/src/_pkgs/affine-components/linked-doc-title/doc-title.ts +61 -0
  753. package/src/_pkgs/affine-components/linked-doc-title/index.ts +7 -0
  754. package/src/_pkgs/affine-components/notification/index.ts +1 -0
  755. package/src/_pkgs/affine-components/notification/linked-doc.ts +45 -0
  756. package/src/_pkgs/affine-components/open-doc-dropdown-menu/dropdown-menu.ts +131 -0
  757. package/src/_pkgs/affine-components/open-doc-dropdown-menu/index.ts +7 -0
  758. package/src/_pkgs/affine-components/peek/commands.ts +47 -0
  759. package/src/_pkgs/affine-components/peek/controller.ts +31 -0
  760. package/src/_pkgs/affine-components/peek/index.ts +8 -0
  761. package/src/_pkgs/affine-components/peek/peekable.ts +137 -0
  762. package/src/_pkgs/affine-components/peek/service.ts +16 -0
  763. package/src/_pkgs/affine-components/peek/type.ts +70 -0
  764. package/src/_pkgs/affine-components/portal/helper.ts +225 -0
  765. package/src/_pkgs/affine-components/portal/index.ts +9 -0
  766. package/src/_pkgs/affine-components/portal/portal.ts +60 -0
  767. package/src/_pkgs/affine-components/portal/types.ts +82 -0
  768. package/src/_pkgs/affine-components/resource/index.ts +8 -0
  769. package/src/_pkgs/affine-components/resource/resource.ts +230 -0
  770. package/src/_pkgs/affine-components/resource/status.ts +165 -0
  771. package/src/_pkgs/affine-components/size-dropdown-menu/dropdown-menu.ts +211 -0
  772. package/src/_pkgs/affine-components/size-dropdown-menu/index.ts +7 -0
  773. package/src/_pkgs/affine-components/slider/index.ts +6 -0
  774. package/src/_pkgs/affine-components/slider/slider.ts +159 -0
  775. package/src/_pkgs/affine-components/slider/styles.ts +79 -0
  776. package/src/_pkgs/affine-components/slider/types.ts +22 -0
  777. package/src/_pkgs/affine-components/slider/utils.ts +10 -0
  778. package/src/_pkgs/affine-components/smooth-corner/index.ts +184 -0
  779. package/src/_pkgs/affine-components/toast/create.ts +39 -0
  780. package/src/_pkgs/affine-components/toast/html-to-element.ts +19 -0
  781. package/src/_pkgs/affine-components/toast/index.ts +1 -0
  782. package/src/_pkgs/affine-components/toast/toast.ts +80 -0
  783. package/src/_pkgs/affine-components/toggle-button/index.ts +7 -0
  784. package/src/_pkgs/affine-components/toggle-button/toggle-button.ts +97 -0
  785. package/src/_pkgs/affine-components/toggle-switch/index.ts +88 -0
  786. package/src/_pkgs/affine-components/toolbar/chevron-down.ts +7 -0
  787. package/src/_pkgs/affine-components/toolbar/config.ts +7 -0
  788. package/src/_pkgs/affine-components/toolbar/icon-button.ts +220 -0
  789. package/src/_pkgs/affine-components/toolbar/index.ts +48 -0
  790. package/src/_pkgs/affine-components/toolbar/menu-button.ts +242 -0
  791. package/src/_pkgs/affine-components/toolbar/menu-context.ts +30 -0
  792. package/src/_pkgs/affine-components/toolbar/separator.ts +39 -0
  793. package/src/_pkgs/affine-components/toolbar/styles.ts +39 -0
  794. package/src/_pkgs/affine-components/toolbar/toolbar.ts +52 -0
  795. package/src/_pkgs/affine-components/toolbar/tooltip.ts +328 -0
  796. package/src/_pkgs/affine-components/toolbar/types.ts +39 -0
  797. package/src/_pkgs/affine-components/toolbar/utils.ts +120 -0
  798. package/src/_pkgs/affine-components/tooltip-content-with-shortcut/index.ts +86 -0
  799. package/src/_pkgs/affine-components/view-dropdown-menu/dropdown-menu.ts +86 -0
  800. package/src/_pkgs/affine-components/view-dropdown-menu/index.ts +7 -0
  801. package/src/_pkgs/affine-ext-loader/base-provider.ts +69 -0
  802. package/src/_pkgs/affine-ext-loader/index.ts +4 -0
  803. package/src/_pkgs/affine-ext-loader/manager.ts +146 -0
  804. package/src/_pkgs/affine-ext-loader/store-manager.ts +47 -0
  805. package/src/_pkgs/affine-ext-loader/store-provider.ts +41 -0
  806. package/src/_pkgs/affine-ext-loader/view-manager.ts +49 -0
  807. package/src/_pkgs/affine-ext-loader/view-provider.ts +129 -0
  808. package/src/_pkgs/affine-foundation/clipboard.ts +65 -0
  809. package/src/_pkgs/affine-foundation/effects.ts +70 -0
  810. package/src/_pkgs/affine-foundation/index.ts +1 -0
  811. package/src/_pkgs/affine-foundation/store.ts +54 -0
  812. package/src/_pkgs/affine-foundation/view.ts +108 -0
  813. package/src/_pkgs/affine-fragment-adapter-panel/adapter-panel.ts +177 -0
  814. package/src/_pkgs/affine-fragment-adapter-panel/body/adapter-panel-body.ts +216 -0
  815. package/src/_pkgs/affine-fragment-adapter-panel/config.ts +28 -0
  816. package/src/_pkgs/affine-fragment-adapter-panel/effects.ts +17 -0
  817. package/src/_pkgs/affine-fragment-adapter-panel/header/adapter-menu.ts +86 -0
  818. package/src/_pkgs/affine-fragment-adapter-panel/header/adapter-panel-header.ts +119 -0
  819. package/src/_pkgs/affine-fragment-adapter-panel/index.ts +4 -0
  820. package/src/_pkgs/affine-fragment-adapter-panel/view.ts +12 -0
  821. package/src/_pkgs/affine-fragment-doc-title/doc-title.ts +241 -0
  822. package/src/_pkgs/affine-fragment-doc-title/effects.ts +11 -0
  823. package/src/_pkgs/affine-fragment-doc-title/index.ts +2 -0
  824. package/src/_pkgs/affine-fragment-doc-title/utils.ts +11 -0
  825. package/src/_pkgs/affine-fragment-doc-title/view.ts +12 -0
  826. package/src/_pkgs/affine-fragment-frame-panel/body/frame-panel-body.ts +436 -0
  827. package/src/_pkgs/affine-fragment-frame-panel/card/frame-card-title-editor.ts +126 -0
  828. package/src/_pkgs/affine-fragment-frame-panel/card/frame-card-title.ts +151 -0
  829. package/src/_pkgs/affine-fragment-frame-panel/card/frame-card.ts +254 -0
  830. package/src/_pkgs/affine-fragment-frame-panel/card/frame-preview.ts +263 -0
  831. package/src/_pkgs/affine-fragment-frame-panel/effects.ts +34 -0
  832. package/src/_pkgs/affine-fragment-frame-panel/frame-panel.ts +92 -0
  833. package/src/_pkgs/affine-fragment-frame-panel/header/frame-panel-header.ts +248 -0
  834. package/src/_pkgs/affine-fragment-frame-panel/header/frames-setting-menu.ts +219 -0
  835. package/src/_pkgs/affine-fragment-frame-panel/index.ts +1 -0
  836. package/src/_pkgs/affine-fragment-frame-panel/utils/drag.ts +156 -0
  837. package/src/_pkgs/affine-fragment-frame-panel/view.ts +12 -0
  838. package/src/_pkgs/affine-fragment-outline/body/outline-notice.css.ts +86 -0
  839. package/src/_pkgs/affine-fragment-outline/body/outline-notice.ts +94 -0
  840. package/src/_pkgs/affine-fragment-outline/body/outline-panel-body.css.ts +62 -0
  841. package/src/_pkgs/affine-fragment-outline/body/outline-panel-body.ts +481 -0
  842. package/src/_pkgs/affine-fragment-outline/card/outline-card.css.ts +166 -0
  843. package/src/_pkgs/affine-fragment-outline/card/outline-card.ts +278 -0
  844. package/src/_pkgs/affine-fragment-outline/card/outline-preview.css.ts +119 -0
  845. package/src/_pkgs/affine-fragment-outline/card/outline-preview.ts +228 -0
  846. package/src/_pkgs/affine-fragment-outline/config.ts +97 -0
  847. package/src/_pkgs/affine-fragment-outline/effects.ts +39 -0
  848. package/src/_pkgs/affine-fragment-outline/header/outline-panel-header.css.ts +44 -0
  849. package/src/_pkgs/affine-fragment-outline/header/outline-panel-header.ts +90 -0
  850. package/src/_pkgs/affine-fragment-outline/header/outline-setting-menu.css.ts +47 -0
  851. package/src/_pkgs/affine-fragment-outline/header/outline-setting-menu.ts +47 -0
  852. package/src/_pkgs/affine-fragment-outline/index.ts +3 -0
  853. package/src/_pkgs/affine-fragment-outline/mobile-outline-panel.ts +197 -0
  854. package/src/_pkgs/affine-fragment-outline/outline-panel.css.ts +15 -0
  855. package/src/_pkgs/affine-fragment-outline/outline-panel.ts +118 -0
  856. package/src/_pkgs/affine-fragment-outline/outline-viewer.ts +325 -0
  857. package/src/_pkgs/affine-fragment-outline/utils/custom-events.ts +27 -0
  858. package/src/_pkgs/affine-fragment-outline/utils/drag.ts +8 -0
  859. package/src/_pkgs/affine-fragment-outline/utils/query.ts +72 -0
  860. package/src/_pkgs/affine-fragment-outline/utils/scroll.ts +201 -0
  861. package/src/_pkgs/affine-fragment-outline/view.ts +12 -0
  862. package/src/_pkgs/affine-gfx-brush/adapter/index.ts +2 -0
  863. package/src/_pkgs/affine-gfx-brush/adapter/markdown/index.ts +18 -0
  864. package/src/_pkgs/affine-gfx-brush/adapter/plain-text/index.ts +11 -0
  865. package/src/_pkgs/affine-gfx-brush/brush-tool.ts +200 -0
  866. package/src/_pkgs/affine-gfx-brush/effects.ts +20 -0
  867. package/src/_pkgs/affine-gfx-brush/element-renderer.ts +32 -0
  868. package/src/_pkgs/affine-gfx-brush/eraser-tool.ts +158 -0
  869. package/src/_pkgs/affine-gfx-brush/highlighter-tool.ts +179 -0
  870. package/src/_pkgs/affine-gfx-brush/index.ts +7 -0
  871. package/src/_pkgs/affine-gfx-brush/store.ts +19 -0
  872. package/src/_pkgs/affine-gfx-brush/toolbar/components/eraser/eraser-tool-button.ts +75 -0
  873. package/src/_pkgs/affine-gfx-brush/toolbar/components/eraser/icons.ts +422 -0
  874. package/src/_pkgs/affine-gfx-brush/toolbar/components/pen/consts.ts +29 -0
  875. package/src/_pkgs/affine-gfx-brush/toolbar/components/pen/icons.ts +608 -0
  876. package/src/_pkgs/affine-gfx-brush/toolbar/components/pen/pen-menu.ts +215 -0
  877. package/src/_pkgs/affine-gfx-brush/toolbar/components/pen/pen-tool-button.ts +195 -0
  878. package/src/_pkgs/affine-gfx-brush/toolbar/components/pen/types.ts +3 -0
  879. package/src/_pkgs/affine-gfx-brush/toolbar/configs/brush.ts +120 -0
  880. package/src/_pkgs/affine-gfx-brush/toolbar/configs/highlighter.ts +139 -0
  881. package/src/_pkgs/affine-gfx-brush/toolbar/configs/index.ts +2 -0
  882. package/src/_pkgs/affine-gfx-brush/toolbar/senior-tool.ts +15 -0
  883. package/src/_pkgs/affine-gfx-brush/view.ts +39 -0
  884. package/src/_pkgs/affine-gfx-connector/adapter/index.ts +2 -0
  885. package/src/_pkgs/affine-gfx-connector/adapter/markdown/index.ts +26 -0
  886. package/src/_pkgs/affine-gfx-connector/adapter/plain-text/index.ts +14 -0
  887. package/src/_pkgs/affine-gfx-connector/adapter/text.ts +23 -0
  888. package/src/_pkgs/affine-gfx-connector/components/connector-handle.ts +263 -0
  889. package/src/_pkgs/affine-gfx-connector/connector-manager.ts +1858 -0
  890. package/src/_pkgs/affine-gfx-connector/connector-tool.ts +279 -0
  891. package/src/_pkgs/affine-gfx-connector/connector-watcher.ts +190 -0
  892. package/src/_pkgs/affine-gfx-connector/effects.ts +26 -0
  893. package/src/_pkgs/affine-gfx-connector/element-renderer/connector-dom/index.ts +367 -0
  894. package/src/_pkgs/affine-gfx-connector/element-renderer/connector-dom.ts +11 -0
  895. package/src/_pkgs/affine-gfx-connector/element-renderer/index.ts +315 -0
  896. package/src/_pkgs/affine-gfx-connector/element-renderer/utils.ts +327 -0
  897. package/src/_pkgs/affine-gfx-connector/element-transform/connector-filter.ts +44 -0
  898. package/src/_pkgs/affine-gfx-connector/element-transform/index.ts +1 -0
  899. package/src/_pkgs/affine-gfx-connector/index.ts +10 -0
  900. package/src/_pkgs/affine-gfx-connector/store.ts +21 -0
  901. package/src/_pkgs/affine-gfx-connector/text/edgeless-connector-label-editor.ts +394 -0
  902. package/src/_pkgs/affine-gfx-connector/text/index.ts +1 -0
  903. package/src/_pkgs/affine-gfx-connector/text/text.ts +66 -0
  904. package/src/_pkgs/affine-gfx-connector/toolbar/config.ts +436 -0
  905. package/src/_pkgs/affine-gfx-connector/toolbar/connector-dense-menu.ts +58 -0
  906. package/src/_pkgs/affine-gfx-connector/toolbar/connector-menu.ts +153 -0
  907. package/src/_pkgs/affine-gfx-connector/toolbar/connector-tool-button.ts +79 -0
  908. package/src/_pkgs/affine-gfx-connector/toolbar/quick-tool.ts +15 -0
  909. package/src/_pkgs/affine-gfx-connector/view/index.ts +1 -0
  910. package/src/_pkgs/affine-gfx-connector/view/view.ts +256 -0
  911. package/src/_pkgs/affine-gfx-connector/view.ts +38 -0
  912. package/src/_pkgs/affine-gfx-group/adapter/index.ts +2 -0
  913. package/src/_pkgs/affine-gfx-group/adapter/markdown/index.ts +25 -0
  914. package/src/_pkgs/affine-gfx-group/adapter/plain-text/index.ts +14 -0
  915. package/src/_pkgs/affine-gfx-group/adapter/text.ts +21 -0
  916. package/src/_pkgs/affine-gfx-group/command/group-api.ts +134 -0
  917. package/src/_pkgs/affine-gfx-group/command/index.ts +1 -0
  918. package/src/_pkgs/affine-gfx-group/effects.ts +14 -0
  919. package/src/_pkgs/affine-gfx-group/element-renderer/consts.ts +6 -0
  920. package/src/_pkgs/affine-gfx-group/element-renderer/index.ts +67 -0
  921. package/src/_pkgs/affine-gfx-group/element-renderer/utils.ts +77 -0
  922. package/src/_pkgs/affine-gfx-group/element-view.ts +57 -0
  923. package/src/_pkgs/affine-gfx-group/group-watcher.ts +36 -0
  924. package/src/_pkgs/affine-gfx-group/index.ts +6 -0
  925. package/src/_pkgs/affine-gfx-group/interaction-ext.ts +45 -0
  926. package/src/_pkgs/affine-gfx-group/store.ts +21 -0
  927. package/src/_pkgs/affine-gfx-group/text/edgeless-group-title-editor.ts +189 -0
  928. package/src/_pkgs/affine-gfx-group/text/text.ts +33 -0
  929. package/src/_pkgs/affine-gfx-group/toolbar/config.ts +106 -0
  930. package/src/_pkgs/affine-gfx-group/view.ts +30 -0
  931. package/src/_pkgs/affine-gfx-link/effects.ts +5 -0
  932. package/src/_pkgs/affine-gfx-link/index.ts +1 -0
  933. package/src/_pkgs/affine-gfx-link/link-tool.ts +13 -0
  934. package/src/_pkgs/affine-gfx-link/toolbar/link-dense-menu.ts +32 -0
  935. package/src/_pkgs/affine-gfx-link/toolbar/link-tool-button.ts +96 -0
  936. package/src/_pkgs/affine-gfx-link/view.ts +23 -0
  937. package/src/_pkgs/affine-gfx-mindmap/adapter/index.ts +2 -0
  938. package/src/_pkgs/affine-gfx-mindmap/adapter/markdown/index.ts +69 -0
  939. package/src/_pkgs/affine-gfx-mindmap/adapter/plain-text/index.ts +13 -0
  940. package/src/_pkgs/affine-gfx-mindmap/adapter/utils.ts +65 -0
  941. package/src/_pkgs/affine-gfx-mindmap/effects.ts +20 -0
  942. package/src/_pkgs/affine-gfx-mindmap/element-renderer.ts +81 -0
  943. package/src/_pkgs/affine-gfx-mindmap/index.ts +8 -0
  944. package/src/_pkgs/affine-gfx-mindmap/indicator-overlay/index.ts +301 -0
  945. package/src/_pkgs/affine-gfx-mindmap/interactivity/drag-utils.ts +190 -0
  946. package/src/_pkgs/affine-gfx-mindmap/interactivity/index.ts +1 -0
  947. package/src/_pkgs/affine-gfx-mindmap/interactivity/mind-map-drag.ts +465 -0
  948. package/src/_pkgs/affine-gfx-mindmap/store.ts +19 -0
  949. package/src/_pkgs/affine-gfx-mindmap/toolbar/assets.ts +46 -0
  950. package/src/_pkgs/affine-gfx-mindmap/toolbar/basket-elements.ts +206 -0
  951. package/src/_pkgs/affine-gfx-mindmap/toolbar/config.ts +199 -0
  952. package/src/_pkgs/affine-gfx-mindmap/toolbar/icons.ts +619 -0
  953. package/src/_pkgs/affine-gfx-mindmap/toolbar/mindmap-importing-placeholder.ts +54 -0
  954. package/src/_pkgs/affine-gfx-mindmap/toolbar/mindmap-menu.ts +415 -0
  955. package/src/_pkgs/affine-gfx-mindmap/toolbar/mindmap-tool-button.ts +466 -0
  956. package/src/_pkgs/affine-gfx-mindmap/toolbar/senior-tool.ts +15 -0
  957. package/src/_pkgs/affine-gfx-mindmap/toolbar/utils/import-mindmap.ts +143 -0
  958. package/src/_pkgs/affine-gfx-mindmap/utils/index.ts +70 -0
  959. package/src/_pkgs/affine-gfx-mindmap/view/index.ts +4 -0
  960. package/src/_pkgs/affine-gfx-mindmap/view/layout.ts +201 -0
  961. package/src/_pkgs/affine-gfx-mindmap/view/style-svg.ts +680 -0
  962. package/src/_pkgs/affine-gfx-mindmap/view/utils.ts +692 -0
  963. package/src/_pkgs/affine-gfx-mindmap/view/view.ts +378 -0
  964. package/src/_pkgs/affine-gfx-mindmap/view.ts +36 -0
  965. package/src/_pkgs/affine-gfx-note/components/icons.ts +84 -0
  966. package/src/_pkgs/affine-gfx-note/components/note-display-mode-panel.ts +104 -0
  967. package/src/_pkgs/affine-gfx-note/components/note-shadow-panel.ts +144 -0
  968. package/src/_pkgs/affine-gfx-note/effects.ts +26 -0
  969. package/src/_pkgs/affine-gfx-note/index.ts +3 -0
  970. package/src/_pkgs/affine-gfx-note/note-tool.ts +330 -0
  971. package/src/_pkgs/affine-gfx-note/overlay/consts.ts +9 -0
  972. package/src/_pkgs/affine-gfx-note/overlay/index.ts +2 -0
  973. package/src/_pkgs/affine-gfx-note/overlay/overlay.ts +161 -0
  974. package/src/_pkgs/affine-gfx-note/toolbar/icon.ts +23 -0
  975. package/src/_pkgs/affine-gfx-note/toolbar/note-menu-config.ts +151 -0
  976. package/src/_pkgs/affine-gfx-note/toolbar/note-menu.ts +210 -0
  977. package/src/_pkgs/affine-gfx-note/toolbar/note-senior-button.ts +218 -0
  978. package/src/_pkgs/affine-gfx-note/toolbar/note-tool-button.ts +120 -0
  979. package/src/_pkgs/affine-gfx-note/toolbar/senior-tool.ts +11 -0
  980. package/src/_pkgs/affine-gfx-note/view.ts +23 -0
  981. package/src/_pkgs/affine-gfx-pointer/effects.ts +8 -0
  982. package/src/_pkgs/affine-gfx-pointer/index.ts +1 -0
  983. package/src/_pkgs/affine-gfx-pointer/quick-tool/default-tool-button.ts +105 -0
  984. package/src/_pkgs/affine-gfx-pointer/quick-tool/quick-tool.ts +12 -0
  985. package/src/_pkgs/affine-gfx-pointer/snap/snap-manager.ts +139 -0
  986. package/src/_pkgs/affine-gfx-pointer/snap/snap-overlay.ts +816 -0
  987. package/src/_pkgs/affine-gfx-pointer/tools/empty-tool.ts +8 -0
  988. package/src/_pkgs/affine-gfx-pointer/tools/index.ts +2 -0
  989. package/src/_pkgs/affine-gfx-pointer/tools/pan-tool.ts +110 -0
  990. package/src/_pkgs/affine-gfx-pointer/view.ts +30 -0
  991. package/src/_pkgs/affine-gfx-shape/adapter/index.ts +3 -0
  992. package/src/_pkgs/affine-gfx-shape/adapter/markdown/index.ts +46 -0
  993. package/src/_pkgs/affine-gfx-shape/adapter/plain-text/index.ts +35 -0
  994. package/src/_pkgs/affine-gfx-shape/adapter/utils.ts +36 -0
  995. package/src/_pkgs/affine-gfx-shape/components/shape-panel.ts +65 -0
  996. package/src/_pkgs/affine-gfx-shape/components/shape-style-panel.ts +59 -0
  997. package/src/_pkgs/affine-gfx-shape/consts.ts +19 -0
  998. package/src/_pkgs/affine-gfx-shape/draggable/index.ts +4 -0
  999. package/src/_pkgs/affine-gfx-shape/draggable/shape-draggable.ts +367 -0
  1000. package/src/_pkgs/affine-gfx-shape/draggable/shape-menu.ts +212 -0
  1001. package/src/_pkgs/affine-gfx-shape/draggable/shape-tool-button.ts +99 -0
  1002. package/src/_pkgs/affine-gfx-shape/draggable/shape-tool-element.ts +326 -0
  1003. package/src/_pkgs/affine-gfx-shape/draggable/utils.ts +150 -0
  1004. package/src/_pkgs/affine-gfx-shape/effects.ts +37 -0
  1005. package/src/_pkgs/affine-gfx-shape/element-renderer/highlighter.ts +41 -0
  1006. package/src/_pkgs/affine-gfx-shape/element-renderer/index.ts +2 -0
  1007. package/src/_pkgs/affine-gfx-shape/element-renderer/shape/diamond.ts +66 -0
  1008. package/src/_pkgs/affine-gfx-shape/element-renderer/shape/ellipse.ts +59 -0
  1009. package/src/_pkgs/affine-gfx-shape/element-renderer/shape/index.ts +185 -0
  1010. package/src/_pkgs/affine-gfx-shape/element-renderer/shape/polygon.ts +134 -0
  1011. package/src/_pkgs/affine-gfx-shape/element-renderer/shape/rect.ts +98 -0
  1012. package/src/_pkgs/affine-gfx-shape/element-renderer/shape/triangle.ts +65 -0
  1013. package/src/_pkgs/affine-gfx-shape/element-renderer/shape/utils.ts +362 -0
  1014. package/src/_pkgs/affine-gfx-shape/element-renderer/shape-dom/index.ts +228 -0
  1015. package/src/_pkgs/affine-gfx-shape/element-renderer/shape-dom/utils.ts +59 -0
  1016. package/src/_pkgs/affine-gfx-shape/element-renderer/shape-dom.ts +11 -0
  1017. package/src/_pkgs/affine-gfx-shape/element-view.ts +612 -0
  1018. package/src/_pkgs/affine-gfx-shape/index.ts +10 -0
  1019. package/src/_pkgs/affine-gfx-shape/overlay/diamond.ts +23 -0
  1020. package/src/_pkgs/affine-gfx-shape/overlay/ellipse.ts +15 -0
  1021. package/src/_pkgs/affine-gfx-shape/overlay/factory.ts +37 -0
  1022. package/src/_pkgs/affine-gfx-shape/overlay/index.ts +5 -0
  1023. package/src/_pkgs/affine-gfx-shape/overlay/polygon-drawing-overlay.ts +195 -0
  1024. package/src/_pkgs/affine-gfx-shape/overlay/polygon-vertex-editing-overlay.ts +1213 -0
  1025. package/src/_pkgs/affine-gfx-shape/overlay/polygon.ts +28 -0
  1026. package/src/_pkgs/affine-gfx-shape/overlay/rect.ts +15 -0
  1027. package/src/_pkgs/affine-gfx-shape/overlay/rounded-rect.ts +32 -0
  1028. package/src/_pkgs/affine-gfx-shape/overlay/shape-overlay.ts +110 -0
  1029. package/src/_pkgs/affine-gfx-shape/overlay/shape.ts +27 -0
  1030. package/src/_pkgs/affine-gfx-shape/overlay/triangle.ts +22 -0
  1031. package/src/_pkgs/affine-gfx-shape/overlay/utils.ts +59 -0
  1032. package/src/_pkgs/affine-gfx-shape/polygon-tool.ts +430 -0
  1033. package/src/_pkgs/affine-gfx-shape/shape-tool.ts +368 -0
  1034. package/src/_pkgs/affine-gfx-shape/store.ts +19 -0
  1035. package/src/_pkgs/affine-gfx-shape/text/edgeless-shape-text-editor.ts +411 -0
  1036. package/src/_pkgs/affine-gfx-shape/text/index.ts +1 -0
  1037. package/src/_pkgs/affine-gfx-shape/toolbar/config.ts +361 -0
  1038. package/src/_pkgs/affine-gfx-shape/toolbar/icons.ts +299 -0
  1039. package/src/_pkgs/affine-gfx-shape/toolbar/index.ts +4 -0
  1040. package/src/_pkgs/affine-gfx-shape/toolbar/senior-tool.ts +15 -0
  1041. package/src/_pkgs/affine-gfx-shape/toolbar/shape-menu-config.ts +81 -0
  1042. package/src/_pkgs/affine-gfx-shape/view.ts +39 -0
  1043. package/src/_pkgs/affine-gfx-template/builtin/other.ts +260 -0
  1044. package/src/_pkgs/affine-gfx-template/contribute.ts +41 -0
  1045. package/src/_pkgs/affine-gfx-template/effects.ts +20 -0
  1046. package/src/_pkgs/affine-gfx-template/index.ts +7 -0
  1047. package/src/_pkgs/affine-gfx-template/make-snapshot.ts +58 -0
  1048. package/src/_pkgs/affine-gfx-template/services/template-middlewares.ts +344 -0
  1049. package/src/_pkgs/affine-gfx-template/services/template.ts +432 -0
  1050. package/src/_pkgs/affine-gfx-template/template-tool.ts +5 -0
  1051. package/src/_pkgs/affine-gfx-template/toolbar/builtin-templates.ts +109 -0
  1052. package/src/_pkgs/affine-gfx-template/toolbar/cards.ts +1411 -0
  1053. package/src/_pkgs/affine-gfx-template/toolbar/overlay-scrollbar.ts +174 -0
  1054. package/src/_pkgs/affine-gfx-template/toolbar/senior-tool.ts +15 -0
  1055. package/src/_pkgs/affine-gfx-template/toolbar/template-loading.ts +50 -0
  1056. package/src/_pkgs/affine-gfx-template/toolbar/template-panel.ts +517 -0
  1057. package/src/_pkgs/affine-gfx-template/toolbar/template-tool-button.ts +225 -0
  1058. package/src/_pkgs/affine-gfx-template/toolbar/template-type.ts +42 -0
  1059. package/src/_pkgs/affine-gfx-template/toolbar/utils.ts +33 -0
  1060. package/src/_pkgs/affine-gfx-template/view.ts +25 -0
  1061. package/src/_pkgs/affine-gfx-text/adapter/index.ts +2 -0
  1062. package/src/_pkgs/affine-gfx-text/adapter/markdown/index.ts +24 -0
  1063. package/src/_pkgs/affine-gfx-text/adapter/plain-text/index.ts +14 -0
  1064. package/src/_pkgs/affine-gfx-text/adapter/text.ts +22 -0
  1065. package/src/_pkgs/affine-gfx-text/commands/index.ts +1 -0
  1066. package/src/_pkgs/affine-gfx-text/commands/insert-edgeless-text.ts +114 -0
  1067. package/src/_pkgs/affine-gfx-text/dblclick-add-edgeless-text.ts +52 -0
  1068. package/src/_pkgs/affine-gfx-text/edgeless-text-editor.ts +487 -0
  1069. package/src/_pkgs/affine-gfx-text/effects.ts +14 -0
  1070. package/src/_pkgs/affine-gfx-text/element-renderer/index.ts +94 -0
  1071. package/src/_pkgs/affine-gfx-text/element-renderer/utils.ts +559 -0
  1072. package/src/_pkgs/affine-gfx-text/element-view.ts +95 -0
  1073. package/src/_pkgs/affine-gfx-text/index.ts +7 -0
  1074. package/src/_pkgs/affine-gfx-text/store.ts +19 -0
  1075. package/src/_pkgs/affine-gfx-text/tool.ts +66 -0
  1076. package/src/_pkgs/affine-gfx-text/toolbar/actions.ts +396 -0
  1077. package/src/_pkgs/affine-gfx-text/toolbar/config.ts +56 -0
  1078. package/src/_pkgs/affine-gfx-text/toolbar/index.ts +2 -0
  1079. package/src/_pkgs/affine-gfx-text/toolbar/text-menu.ts +49 -0
  1080. package/src/_pkgs/affine-gfx-text/view.ts +32 -0
  1081. package/src/_pkgs/affine-gfx-turbo-renderer/index.ts +5 -0
  1082. package/src/_pkgs/affine-gfx-turbo-renderer/layout/block-layout-provider.ts +29 -0
  1083. package/src/_pkgs/affine-gfx-turbo-renderer/painter/painter.worker.ts +129 -0
  1084. package/src/_pkgs/affine-gfx-turbo-renderer/renderer-utils.ts +222 -0
  1085. package/src/_pkgs/affine-gfx-turbo-renderer/text-utils.ts +145 -0
  1086. package/src/_pkgs/affine-gfx-turbo-renderer/turbo-renderer.ts +431 -0
  1087. package/src/_pkgs/affine-gfx-turbo-renderer/types.ts +105 -0
  1088. package/src/_pkgs/affine-inline-comment/effects.ts +11 -0
  1089. package/src/_pkgs/affine-inline-comment/index.ts +2 -0
  1090. package/src/_pkgs/affine-inline-comment/inline-comment-manager.ts +218 -0
  1091. package/src/_pkgs/affine-inline-comment/inline-comment.ts +97 -0
  1092. package/src/_pkgs/affine-inline-comment/inline-spec.ts +38 -0
  1093. package/src/_pkgs/affine-inline-comment/utils.ts +64 -0
  1094. package/src/_pkgs/affine-inline-comment/view.ts +22 -0
  1095. package/src/_pkgs/affine-inline-footnote/adapters/index.ts +3 -0
  1096. package/src/_pkgs/affine-inline-footnote/adapters/markdown/inline-delta.ts +50 -0
  1097. package/src/_pkgs/affine-inline-footnote/adapters/markdown/markdown-inline.ts +57 -0
  1098. package/src/_pkgs/affine-inline-footnote/adapters/markdown/preprocessor.ts +54 -0
  1099. package/src/_pkgs/affine-inline-footnote/effects.ts +17 -0
  1100. package/src/_pkgs/affine-inline-footnote/footnote-node/footnote-config.ts +120 -0
  1101. package/src/_pkgs/affine-inline-footnote/footnote-node/footnote-node.ts +279 -0
  1102. package/src/_pkgs/affine-inline-footnote/footnote-node/footnote-popup-chip.ts +74 -0
  1103. package/src/_pkgs/affine-inline-footnote/footnote-node/footnote-popup.ts +223 -0
  1104. package/src/_pkgs/affine-inline-footnote/index.ts +4 -0
  1105. package/src/_pkgs/affine-inline-footnote/inline-spec.ts +32 -0
  1106. package/src/_pkgs/affine-inline-footnote/store.ts +21 -0
  1107. package/src/_pkgs/affine-inline-footnote/view.ts +21 -0
  1108. package/src/_pkgs/affine-inline-latex/adapters/index.ts +3 -0
  1109. package/src/_pkgs/affine-inline-latex/adapters/markdown/inline-delta.ts +21 -0
  1110. package/src/_pkgs/affine-inline-latex/adapters/markdown/markdown-inline.ts +12 -0
  1111. package/src/_pkgs/affine-inline-latex/adapters/plain-text/inline-delta.ts +21 -0
  1112. package/src/_pkgs/affine-inline-latex/command.ts +74 -0
  1113. package/src/_pkgs/affine-inline-latex/effects.ts +17 -0
  1114. package/src/_pkgs/affine-inline-latex/index.ts +9 -0
  1115. package/src/_pkgs/affine-inline-latex/inline-spec.ts +40 -0
  1116. package/src/_pkgs/affine-inline-latex/latex-node/latex-editor-menu.ts +210 -0
  1117. package/src/_pkgs/affine-inline-latex/latex-node/latex-editor-unit.ts +55 -0
  1118. package/src/_pkgs/affine-inline-latex/latex-node/latex-node.ts +265 -0
  1119. package/src/_pkgs/affine-inline-latex/markdown.ts +180 -0
  1120. package/src/_pkgs/affine-inline-latex/store.ts +21 -0
  1121. package/src/_pkgs/affine-inline-latex/view.ts +29 -0
  1122. package/src/_pkgs/affine-inline-link/adapters/html/html-inline.ts +70 -0
  1123. package/src/_pkgs/affine-inline-link/adapters/html/inline-delta.ts +25 -0
  1124. package/src/_pkgs/affine-inline-link/adapters/index.ts +6 -0
  1125. package/src/_pkgs/affine-inline-link/adapters/markdown/index.ts +2 -0
  1126. package/src/_pkgs/affine-inline-link/adapters/markdown/inline-delta.ts +36 -0
  1127. package/src/_pkgs/affine-inline-link/adapters/markdown/markdown-inline.ts +52 -0
  1128. package/src/_pkgs/affine-inline-link/adapters/notion-html/html-inline.ts +52 -0
  1129. package/src/_pkgs/affine-inline-link/adapters/plain-text/inline-delta.ts +25 -0
  1130. package/src/_pkgs/affine-inline-link/command.ts +42 -0
  1131. package/src/_pkgs/affine-inline-link/effects.ts +7 -0
  1132. package/src/_pkgs/affine-inline-link/index.ts +6 -0
  1133. package/src/_pkgs/affine-inline-link/inline-spec.ts +22 -0
  1134. package/src/_pkgs/affine-inline-link/link-node/affine-link.ts +188 -0
  1135. package/src/_pkgs/affine-inline-link/link-node/configs/toolbar.ts +365 -0
  1136. package/src/_pkgs/affine-inline-link/link-node/index.ts +2 -0
  1137. package/src/_pkgs/affine-inline-link/link-node/link-popup/link-popup.ts +335 -0
  1138. package/src/_pkgs/affine-inline-link/link-node/link-popup/styles.ts +162 -0
  1139. package/src/_pkgs/affine-inline-link/link-node/link-popup/toggle-link-popup.ts +27 -0
  1140. package/src/_pkgs/affine-inline-link/markdown.ts +53 -0
  1141. package/src/_pkgs/affine-inline-link/store.ts +27 -0
  1142. package/src/_pkgs/affine-inline-link/toolbar.ts +9 -0
  1143. package/src/_pkgs/affine-inline-link/view.ts +23 -0
  1144. package/src/_pkgs/affine-inline-mention/affine-mention.ts +150 -0
  1145. package/src/_pkgs/affine-inline-mention/effects.ts +11 -0
  1146. package/src/_pkgs/affine-inline-mention/index.ts +3 -0
  1147. package/src/_pkgs/affine-inline-mention/inline-spec.ts +34 -0
  1148. package/src/_pkgs/affine-inline-mention/view.ts +21 -0
  1149. package/src/_pkgs/affine-inline-preset/adapters/extensions.ts +21 -0
  1150. package/src/_pkgs/affine-inline-preset/adapters/html/html-inline.ts +311 -0
  1151. package/src/_pkgs/affine-inline-preset/adapters/html/inline-delta.ts +154 -0
  1152. package/src/_pkgs/affine-inline-preset/adapters/markdown/inline-delta.ts +57 -0
  1153. package/src/_pkgs/affine-inline-preset/adapters/markdown/markdown-inline.ts +98 -0
  1154. package/src/_pkgs/affine-inline-preset/adapters/notion-html/html-inline.ts +256 -0
  1155. package/src/_pkgs/affine-inline-preset/command/config.ts +138 -0
  1156. package/src/_pkgs/affine-inline-preset/command/consts.ts +19 -0
  1157. package/src/_pkgs/affine-inline-preset/command/delete-text.ts +81 -0
  1158. package/src/_pkgs/affine-inline-preset/command/format-block.ts +75 -0
  1159. package/src/_pkgs/affine-inline-preset/command/format-native.ts +53 -0
  1160. package/src/_pkgs/affine-inline-preset/command/format-text.ts +94 -0
  1161. package/src/_pkgs/affine-inline-preset/command/index.ts +22 -0
  1162. package/src/_pkgs/affine-inline-preset/command/text-style.ts +110 -0
  1163. package/src/_pkgs/affine-inline-preset/command/utils.ts +226 -0
  1164. package/src/_pkgs/affine-inline-preset/default-inline-manager.ts +38 -0
  1165. package/src/_pkgs/affine-inline-preset/effects.ts +11 -0
  1166. package/src/_pkgs/affine-inline-preset/index.ts +10 -0
  1167. package/src/_pkgs/affine-inline-preset/inline-spec.ts +118 -0
  1168. package/src/_pkgs/affine-inline-preset/keymap/basic.ts +78 -0
  1169. package/src/_pkgs/affine-inline-preset/keymap/bracket.ts +162 -0
  1170. package/src/_pkgs/affine-inline-preset/keymap/format.ts +36 -0
  1171. package/src/_pkgs/affine-inline-preset/keymap/index.ts +15 -0
  1172. package/src/_pkgs/affine-inline-preset/markdown.ts +284 -0
  1173. package/src/_pkgs/affine-inline-preset/nodes/affine-text.ts +35 -0
  1174. package/src/_pkgs/affine-inline-preset/store.ts +15 -0
  1175. package/src/_pkgs/affine-inline-preset/view.ts +25 -0
  1176. package/src/_pkgs/affine-inline-reference/adapters/html/inline-delta.ts +42 -0
  1177. package/src/_pkgs/affine-inline-reference/adapters/index.ts +3 -0
  1178. package/src/_pkgs/affine-inline-reference/adapters/markdown/inline-delta.ts +42 -0
  1179. package/src/_pkgs/affine-inline-reference/adapters/plain-text/inline-delta.ts +33 -0
  1180. package/src/_pkgs/affine-inline-reference/effects.ts +13 -0
  1181. package/src/_pkgs/affine-inline-reference/index.ts +5 -0
  1182. package/src/_pkgs/affine-inline-reference/inline-spec.ts +57 -0
  1183. package/src/_pkgs/affine-inline-reference/reference-node/configs/toolbar.ts +247 -0
  1184. package/src/_pkgs/affine-inline-reference/reference-node/index.ts +6 -0
  1185. package/src/_pkgs/affine-inline-reference/reference-node/reference-config.ts +53 -0
  1186. package/src/_pkgs/affine-inline-reference/reference-node/reference-node-slots.ts +30 -0
  1187. package/src/_pkgs/affine-inline-reference/reference-node/reference-node.ts +318 -0
  1188. package/src/_pkgs/affine-inline-reference/reference-node/reference-popup/reference-popup.ts +282 -0
  1189. package/src/_pkgs/affine-inline-reference/reference-node/reference-popup/toggle-reference-popup.ts +27 -0
  1190. package/src/_pkgs/affine-inline-reference/reference-node/types.ts +15 -0
  1191. package/src/_pkgs/affine-inline-reference/store.ts +21 -0
  1192. package/src/_pkgs/affine-inline-reference/toolbar.ts +9 -0
  1193. package/src/_pkgs/affine-inline-reference/utils.ts +21 -0
  1194. package/src/_pkgs/affine-inline-reference/view.ts +25 -0
  1195. package/src/_pkgs/affine-model/blocks/attachment/attachment-model.ts +112 -0
  1196. package/src/_pkgs/affine-model/blocks/attachment/attachment-transformer.ts +34 -0
  1197. package/src/_pkgs/affine-model/blocks/attachment/index.ts +2 -0
  1198. package/src/_pkgs/affine-model/blocks/bookmark/bookmark-model.ts +81 -0
  1199. package/src/_pkgs/affine-model/blocks/bookmark/index.ts +1 -0
  1200. package/src/_pkgs/affine-model/blocks/callout/callout-model.ts +44 -0
  1201. package/src/_pkgs/affine-model/blocks/callout/index.ts +1 -0
  1202. package/src/_pkgs/affine-model/blocks/code/code-model.ts +52 -0
  1203. package/src/_pkgs/affine-model/blocks/code/index.ts +1 -0
  1204. package/src/_pkgs/affine-model/blocks/database/database-model.ts +43 -0
  1205. package/src/_pkgs/affine-model/blocks/database/index.ts +2 -0
  1206. package/src/_pkgs/affine-model/blocks/database/types.ts +23 -0
  1207. package/src/_pkgs/affine-model/blocks/divider/divider-model.ts +24 -0
  1208. package/src/_pkgs/affine-model/blocks/divider/index.ts +1 -0
  1209. package/src/_pkgs/affine-model/blocks/edgeless-text/edgeless-text-model.ts +94 -0
  1210. package/src/_pkgs/affine-model/blocks/edgeless-text/index.ts +1 -0
  1211. package/src/_pkgs/affine-model/blocks/embed/figma/figma-model.ts +21 -0
  1212. package/src/_pkgs/affine-model/blocks/embed/figma/figma-schema.ts +28 -0
  1213. package/src/_pkgs/affine-model/blocks/embed/figma/index.ts +2 -0
  1214. package/src/_pkgs/affine-model/blocks/embed/github/github-model.ts +35 -0
  1215. package/src/_pkgs/affine-model/blocks/embed/github/github-schema.ts +37 -0
  1216. package/src/_pkgs/affine-model/blocks/embed/github/index.ts +2 -0
  1217. package/src/_pkgs/affine-model/blocks/embed/html/html-model.ts +17 -0
  1218. package/src/_pkgs/affine-model/blocks/embed/html/html-schema.ts +25 -0
  1219. package/src/_pkgs/affine-model/blocks/embed/html/index.ts +2 -0
  1220. package/src/_pkgs/affine-model/blocks/embed/iframe/iframe-model.ts +38 -0
  1221. package/src/_pkgs/affine-model/blocks/embed/iframe/iframe-schema.ts +17 -0
  1222. package/src/_pkgs/affine-model/blocks/embed/iframe/index.ts +2 -0
  1223. package/src/_pkgs/affine-model/blocks/embed/index.ts +9 -0
  1224. package/src/_pkgs/affine-model/blocks/embed/linked-doc/index.ts +2 -0
  1225. package/src/_pkgs/affine-model/blocks/embed/linked-doc/linked-doc-model.ts +24 -0
  1226. package/src/_pkgs/affine-model/blocks/embed/linked-doc/linked-doc-schema.ts +30 -0
  1227. package/src/_pkgs/affine-model/blocks/embed/loom/index.ts +2 -0
  1228. package/src/_pkgs/affine-model/blocks/embed/loom/loom-model.ts +23 -0
  1229. package/src/_pkgs/affine-model/blocks/embed/loom/loom-schema.ts +29 -0
  1230. package/src/_pkgs/affine-model/blocks/embed/synced-doc/index.ts +2 -0
  1231. package/src/_pkgs/affine-model/blocks/embed/synced-doc/synced-doc-model.ts +30 -0
  1232. package/src/_pkgs/affine-model/blocks/embed/synced-doc/synced-doc-schema.ts +39 -0
  1233. package/src/_pkgs/affine-model/blocks/embed/types.ts +58 -0
  1234. package/src/_pkgs/affine-model/blocks/embed/youtube/index.ts +2 -0
  1235. package/src/_pkgs/affine-model/blocks/embed/youtube/youtube-model.ts +26 -0
  1236. package/src/_pkgs/affine-model/blocks/embed/youtube/youtube-schema.ts +33 -0
  1237. package/src/_pkgs/affine-model/blocks/frame/frame-model.ts +163 -0
  1238. package/src/_pkgs/affine-model/blocks/frame/index.ts +1 -0
  1239. package/src/_pkgs/affine-model/blocks/image/image-model.ts +59 -0
  1240. package/src/_pkgs/affine-model/blocks/image/image-transformer.ts +34 -0
  1241. package/src/_pkgs/affine-model/blocks/image/index.ts +2 -0
  1242. package/src/_pkgs/affine-model/blocks/index.ts +17 -0
  1243. package/src/_pkgs/affine-model/blocks/latex/index.ts +1 -0
  1244. package/src/_pkgs/affine-model/blocks/latex/latex-model.ts +47 -0
  1245. package/src/_pkgs/affine-model/blocks/list/index.ts +1 -0
  1246. package/src/_pkgs/affine-model/blocks/list/list-model.ts +56 -0
  1247. package/src/_pkgs/affine-model/blocks/note/index.ts +1 -0
  1248. package/src/_pkgs/affine-model/blocks/note/note-model.ts +167 -0
  1249. package/src/_pkgs/affine-model/blocks/paragraph/index.ts +1 -0
  1250. package/src/_pkgs/affine-model/blocks/paragraph/paragraph-model.ts +62 -0
  1251. package/src/_pkgs/affine-model/blocks/root/index.ts +1 -0
  1252. package/src/_pkgs/affine-model/blocks/root/root-block-model.ts +65 -0
  1253. package/src/_pkgs/affine-model/blocks/surface-ref/index.ts +1 -0
  1254. package/src/_pkgs/affine-model/blocks/surface-ref/surface-ref-model.ts +34 -0
  1255. package/src/_pkgs/affine-model/blocks/table/index.ts +1 -0
  1256. package/src/_pkgs/affine-model/blocks/table/table-model.ts +71 -0
  1257. package/src/_pkgs/affine-model/consts/connector.ts +36 -0
  1258. package/src/_pkgs/affine-model/consts/doc.ts +94 -0
  1259. package/src/_pkgs/affine-model/consts/edgeless-text.ts +2 -0
  1260. package/src/_pkgs/affine-model/consts/image.ts +1 -0
  1261. package/src/_pkgs/affine-model/consts/index.ts +9 -0
  1262. package/src/_pkgs/affine-model/consts/line.ts +69 -0
  1263. package/src/_pkgs/affine-model/consts/mindmap.ts +12 -0
  1264. package/src/_pkgs/affine-model/consts/note.ts +80 -0
  1265. package/src/_pkgs/affine-model/consts/shape.ts +47 -0
  1266. package/src/_pkgs/affine-model/consts/text.ts +68 -0
  1267. package/src/_pkgs/affine-model/elements/bpmn/index.ts +2 -0
  1268. package/src/_pkgs/affine-model/elements/bpmn/node.ts +42 -0
  1269. package/src/_pkgs/affine-model/elements/bpmn/pool.ts +66 -0
  1270. package/src/_pkgs/affine-model/elements/brush/brush.ts +219 -0
  1271. package/src/_pkgs/affine-model/elements/brush/index.ts +1 -0
  1272. package/src/_pkgs/affine-model/elements/connector/connector.ts +539 -0
  1273. package/src/_pkgs/affine-model/elements/connector/index.ts +2 -0
  1274. package/src/_pkgs/affine-model/elements/connector/local-connector.ts +58 -0
  1275. package/src/_pkgs/affine-model/elements/cynefin/cynefin.ts +78 -0
  1276. package/src/_pkgs/affine-model/elements/cynefin/index.ts +1 -0
  1277. package/src/_pkgs/affine-model/elements/edgy/facets.ts +87 -0
  1278. package/src/_pkgs/affine-model/elements/edgy/index.ts +2 -0
  1279. package/src/_pkgs/affine-model/elements/edgy/node.ts +37 -0
  1280. package/src/_pkgs/affine-model/elements/estuarine/estuarine.ts +79 -0
  1281. package/src/_pkgs/affine-model/elements/estuarine/index.ts +1 -0
  1282. package/src/_pkgs/affine-model/elements/group/group.ts +121 -0
  1283. package/src/_pkgs/affine-model/elements/group/index.ts +1 -0
  1284. package/src/_pkgs/affine-model/elements/highlighter/highlighter.ts +220 -0
  1285. package/src/_pkgs/affine-model/elements/highlighter/index.ts +1 -0
  1286. package/src/_pkgs/affine-model/elements/index.ts +62 -0
  1287. package/src/_pkgs/affine-model/elements/mindmap/index.ts +3 -0
  1288. package/src/_pkgs/affine-model/elements/mindmap/mindmap.ts +974 -0
  1289. package/src/_pkgs/affine-model/elements/mindmap/snapshot/index.ts +2 -0
  1290. package/src/_pkgs/affine-model/elements/mindmap/snapshot/types.ts +25 -0
  1291. package/src/_pkgs/affine-model/elements/mindmap/snapshot/utils.ts +70 -0
  1292. package/src/_pkgs/affine-model/elements/mindmap/style.ts +508 -0
  1293. package/src/_pkgs/affine-model/elements/mindmap/utils.ts +46 -0
  1294. package/src/_pkgs/affine-model/elements/shape/api/diamond.ts +120 -0
  1295. package/src/_pkgs/affine-model/elements/shape/api/ellipse.ts +202 -0
  1296. package/src/_pkgs/affine-model/elements/shape/api/index.ts +16 -0
  1297. package/src/_pkgs/affine-model/elements/shape/api/polygon.ts +424 -0
  1298. package/src/_pkgs/affine-model/elements/shape/api/rect.ts +119 -0
  1299. package/src/_pkgs/affine-model/elements/shape/api/triangle.ts +116 -0
  1300. package/src/_pkgs/affine-model/elements/shape/index.ts +2 -0
  1301. package/src/_pkgs/affine-model/elements/shape/shape.ts +367 -0
  1302. package/src/_pkgs/affine-model/elements/text/index.ts +1 -0
  1303. package/src/_pkgs/affine-model/elements/text/text.ts +92 -0
  1304. package/src/_pkgs/affine-model/elements/wardley/index.ts +2 -0
  1305. package/src/_pkgs/affine-model/elements/wardley/node.ts +52 -0
  1306. package/src/_pkgs/affine-model/elements/wardley/wardley.ts +160 -0
  1307. package/src/_pkgs/affine-model/index.ts +5 -0
  1308. package/src/_pkgs/affine-model/themes/color.ts +54 -0
  1309. package/src/_pkgs/affine-model/themes/default.ts +136 -0
  1310. package/src/_pkgs/affine-model/themes/index.ts +10 -0
  1311. package/src/_pkgs/affine-model/themes/types.ts +41 -0
  1312. package/src/_pkgs/affine-model/themes/utils.ts +29 -0
  1313. package/src/_pkgs/affine-model/utils/enum.ts +11 -0
  1314. package/src/_pkgs/affine-model/utils/helper.ts +74 -0
  1315. package/src/_pkgs/affine-model/utils/index.ts +3 -0
  1316. package/src/_pkgs/affine-model/utils/types.ts +43 -0
  1317. package/src/_pkgs/affine-rich-text/conversion.ts +136 -0
  1318. package/src/_pkgs/affine-rich-text/dom.ts +172 -0
  1319. package/src/_pkgs/affine-rich-text/effects.ts +11 -0
  1320. package/src/_pkgs/affine-rich-text/hooks.ts +116 -0
  1321. package/src/_pkgs/affine-rich-text/index.ts +14 -0
  1322. package/src/_pkgs/affine-rich-text/rich-text.ts +480 -0
  1323. package/src/_pkgs/affine-rich-text/utils.ts +68 -0
  1324. package/src/_pkgs/affine-shared/adapters/attachment.ts +147 -0
  1325. package/src/_pkgs/affine-shared/adapters/clipboard/clipboard.ts +107 -0
  1326. package/src/_pkgs/affine-shared/adapters/clipboard/index.ts +2 -0
  1327. package/src/_pkgs/affine-shared/adapters/clipboard/utils.ts +117 -0
  1328. package/src/_pkgs/affine-shared/adapters/html/block-adapter.ts +31 -0
  1329. package/src/_pkgs/affine-shared/adapters/html/delta-converter.ts +135 -0
  1330. package/src/_pkgs/affine-shared/adapters/html/html.ts +400 -0
  1331. package/src/_pkgs/affine-shared/adapters/html/index.ts +3 -0
  1332. package/src/_pkgs/affine-shared/adapters/html/rehype-plugins/index.ts +2 -0
  1333. package/src/_pkgs/affine-shared/adapters/html/rehype-plugins/inline-to-block.ts +37 -0
  1334. package/src/_pkgs/affine-shared/adapters/html/rehype-plugins/wrap-inline-element.ts +79 -0
  1335. package/src/_pkgs/affine-shared/adapters/image.ts +137 -0
  1336. package/src/_pkgs/affine-shared/adapters/index.ts +88 -0
  1337. package/src/_pkgs/affine-shared/adapters/markdown/block-adapter.ts +31 -0
  1338. package/src/_pkgs/affine-shared/adapters/markdown/delta-converter.ts +124 -0
  1339. package/src/_pkgs/affine-shared/adapters/markdown/gfm.ts +76 -0
  1340. package/src/_pkgs/affine-shared/adapters/markdown/index.ts +5 -0
  1341. package/src/_pkgs/affine-shared/adapters/markdown/markdown.ts +414 -0
  1342. package/src/_pkgs/affine-shared/adapters/markdown/preprocessor.ts +40 -0
  1343. package/src/_pkgs/affine-shared/adapters/markdown/remark-plugins/index.ts +1 -0
  1344. package/src/_pkgs/affine-shared/adapters/markdown/remark-plugins/remark-callout.ts +70 -0
  1345. package/src/_pkgs/affine-shared/adapters/markdown/type.ts +45 -0
  1346. package/src/_pkgs/affine-shared/adapters/middlewares/callout-export-options.ts +45 -0
  1347. package/src/_pkgs/affine-shared/adapters/middlewares/code.ts +11 -0
  1348. package/src/_pkgs/affine-shared/adapters/middlewares/copy.ts +66 -0
  1349. package/src/_pkgs/affine-shared/adapters/middlewares/doc-link.ts +44 -0
  1350. package/src/_pkgs/affine-shared/adapters/middlewares/file-name.ts +27 -0
  1351. package/src/_pkgs/affine-shared/adapters/middlewares/file-path.ts +14 -0
  1352. package/src/_pkgs/affine-shared/adapters/middlewares/index.ts +12 -0
  1353. package/src/_pkgs/affine-shared/adapters/middlewares/paste.ts +596 -0
  1354. package/src/_pkgs/affine-shared/adapters/middlewares/proxy.ts +53 -0
  1355. package/src/_pkgs/affine-shared/adapters/middlewares/replace-id.ts +256 -0
  1356. package/src/_pkgs/affine-shared/adapters/middlewares/surface-ref-to-embed.ts +46 -0
  1357. package/src/_pkgs/affine-shared/adapters/middlewares/title.ts +15 -0
  1358. package/src/_pkgs/affine-shared/adapters/middlewares/upload.ts +118 -0
  1359. package/src/_pkgs/affine-shared/adapters/mix-text.ts +360 -0
  1360. package/src/_pkgs/affine-shared/adapters/notion-html/block-adapter.ts +33 -0
  1361. package/src/_pkgs/affine-shared/adapters/notion-html/delta-converter.ts +105 -0
  1362. package/src/_pkgs/affine-shared/adapters/notion-html/index.ts +3 -0
  1363. package/src/_pkgs/affine-shared/adapters/notion-html/notion-html.ts +300 -0
  1364. package/src/_pkgs/affine-shared/adapters/notion-text.ts +191 -0
  1365. package/src/_pkgs/affine-shared/adapters/plain-text/block-adapter.ts +28 -0
  1366. package/src/_pkgs/affine-shared/adapters/plain-text/delta-converter.ts +81 -0
  1367. package/src/_pkgs/affine-shared/adapters/plain-text/index.ts +3 -0
  1368. package/src/_pkgs/affine-shared/adapters/plain-text/plain-text.ts +324 -0
  1369. package/src/_pkgs/affine-shared/adapters/types/adapter.ts +124 -0
  1370. package/src/_pkgs/affine-shared/adapters/types/delta-converter.ts +61 -0
  1371. package/src/_pkgs/affine-shared/adapters/types/hast.ts +12 -0
  1372. package/src/_pkgs/affine-shared/adapters/types/index.ts +4 -0
  1373. package/src/_pkgs/affine-shared/adapters/types/preprocessor.ts +88 -0
  1374. package/src/_pkgs/affine-shared/adapters/utils/fetch.ts +37 -0
  1375. package/src/_pkgs/affine-shared/adapters/utils/file-path.ts +56 -0
  1376. package/src/_pkgs/affine-shared/adapters/utils/hast.ts +295 -0
  1377. package/src/_pkgs/affine-shared/adapters/utils/index.ts +4 -0
  1378. package/src/_pkgs/affine-shared/adapters/utils/text.ts +96 -0
  1379. package/src/_pkgs/affine-shared/commands/block-crud/get-block-index.ts +33 -0
  1380. package/src/_pkgs/affine-shared/commands/block-crud/get-first-content-block.ts +65 -0
  1381. package/src/_pkgs/affine-shared/commands/block-crud/get-last-content-block.ts +67 -0
  1382. package/src/_pkgs/affine-shared/commands/block-crud/get-next-block.ts +36 -0
  1383. package/src/_pkgs/affine-shared/commands/block-crud/get-prev-block.ts +37 -0
  1384. package/src/_pkgs/affine-shared/commands/block-crud/get-selected-blocks.ts +164 -0
  1385. package/src/_pkgs/affine-shared/commands/block-crud/index.ts +6 -0
  1386. package/src/_pkgs/affine-shared/commands/index.d.ts +5 -0
  1387. package/src/_pkgs/affine-shared/commands/index.ts +29 -0
  1388. package/src/_pkgs/affine-shared/commands/model-crud/clear-and-select-first-model.ts +33 -0
  1389. package/src/_pkgs/affine-shared/commands/model-crud/copy-selected-models.ts +25 -0
  1390. package/src/_pkgs/affine-shared/commands/model-crud/delete-selected-models.ts +21 -0
  1391. package/src/_pkgs/affine-shared/commands/model-crud/draft-selected-models.ts +50 -0
  1392. package/src/_pkgs/affine-shared/commands/model-crud/duplicate-selected-model.ts +55 -0
  1393. package/src/_pkgs/affine-shared/commands/model-crud/get-selected-models.ts +67 -0
  1394. package/src/_pkgs/affine-shared/commands/model-crud/index.ts +8 -0
  1395. package/src/_pkgs/affine-shared/commands/model-crud/replace-selected-text-with-blocks.ts +399 -0
  1396. package/src/_pkgs/affine-shared/commands/model-crud/retain-first-model.ts +19 -0
  1397. package/src/_pkgs/affine-shared/commands/selection/focus-block-end.ts +37 -0
  1398. package/src/_pkgs/affine-shared/commands/selection/focus-block-start.ts +23 -0
  1399. package/src/_pkgs/affine-shared/commands/selection/get-block-selections.ts +10 -0
  1400. package/src/_pkgs/affine-shared/commands/selection/get-image-selections.ts +9 -0
  1401. package/src/_pkgs/affine-shared/commands/selection/get-selection-rects.ts +184 -0
  1402. package/src/_pkgs/affine-shared/commands/selection/get-surface-selection.ts +10 -0
  1403. package/src/_pkgs/affine-shared/commands/selection/get-text-selection.ts +10 -0
  1404. package/src/_pkgs/affine-shared/commands/selection/index.ts +12 -0
  1405. package/src/_pkgs/affine-shared/commands/selection/is-nothing-selected.ts +24 -0
  1406. package/src/_pkgs/affine-shared/commands/selection/types.ts +18 -0
  1407. package/src/_pkgs/affine-shared/consts/bracket-pairs.ts +68 -0
  1408. package/src/_pkgs/affine-shared/consts/index.ts +90 -0
  1409. package/src/_pkgs/affine-shared/consts/note.ts +2 -0
  1410. package/src/_pkgs/affine-shared/consts/text.ts +2 -0
  1411. package/src/_pkgs/affine-shared/index.ts +1 -0
  1412. package/src/_pkgs/affine-shared/selection/hightlight.ts +66 -0
  1413. package/src/_pkgs/affine-shared/selection/image.ts +33 -0
  1414. package/src/_pkgs/affine-shared/selection/index.ts +5 -0
  1415. package/src/_pkgs/affine-shared/services/auto-clear-selection-service.ts +12 -0
  1416. package/src/_pkgs/affine-shared/services/block-meta-service.ts +104 -0
  1417. package/src/_pkgs/affine-shared/services/citation-service/citation-service.ts +84 -0
  1418. package/src/_pkgs/affine-shared/services/citation-service/index.ts +1 -0
  1419. package/src/_pkgs/affine-shared/services/comment-service/block-comment-manager.ts +118 -0
  1420. package/src/_pkgs/affine-shared/services/comment-service/comment-provider.ts +44 -0
  1421. package/src/_pkgs/affine-shared/services/comment-service/index.ts +3 -0
  1422. package/src/_pkgs/affine-shared/services/comment-service/utils.ts +50 -0
  1423. package/src/_pkgs/affine-shared/services/doc-display-meta-service.ts +197 -0
  1424. package/src/_pkgs/affine-shared/services/doc-mode-service.ts +109 -0
  1425. package/src/_pkgs/affine-shared/services/drag-handle-config.ts +65 -0
  1426. package/src/_pkgs/affine-shared/services/edit-props-store.ts +217 -0
  1427. package/src/_pkgs/affine-shared/services/editor-setting-service.ts +41 -0
  1428. package/src/_pkgs/affine-shared/services/embed-iframe/embed-iframe-config.ts +93 -0
  1429. package/src/_pkgs/affine-shared/services/embed-iframe/embed-iframe-service.ts +152 -0
  1430. package/src/_pkgs/affine-shared/services/embed-iframe/index.ts +2 -0
  1431. package/src/_pkgs/affine-shared/services/embed-option-service.ts +65 -0
  1432. package/src/_pkgs/affine-shared/services/feature-flag-service.ts +65 -0
  1433. package/src/_pkgs/affine-shared/services/file-size-limit-service.ts +23 -0
  1434. package/src/_pkgs/affine-shared/services/font-loader/config.ts +379 -0
  1435. package/src/_pkgs/affine-shared/services/font-loader/font-loader-service.ts +62 -0
  1436. package/src/_pkgs/affine-shared/services/font-loader/index.ts +2 -0
  1437. package/src/_pkgs/affine-shared/services/generate-url-service.ts +21 -0
  1438. package/src/_pkgs/affine-shared/services/index.ts +29 -0
  1439. package/src/_pkgs/affine-shared/services/link-preview-service/index.ts +3 -0
  1440. package/src/_pkgs/affine-shared/services/link-preview-service/link-preview-cache.ts +240 -0
  1441. package/src/_pkgs/affine-shared/services/link-preview-service/link-preview-service.ts +210 -0
  1442. package/src/_pkgs/affine-shared/services/link-preview-service/link-preview-storage.ts +81 -0
  1443. package/src/_pkgs/affine-shared/services/native-clipboard-service.ts +23 -0
  1444. package/src/_pkgs/affine-shared/services/notification-service.ts +123 -0
  1445. package/src/_pkgs/affine-shared/services/open-doc-config.ts +59 -0
  1446. package/src/_pkgs/affine-shared/services/page-viewport-service.ts +15 -0
  1447. package/src/_pkgs/affine-shared/services/parse-url-service.ts +22 -0
  1448. package/src/_pkgs/affine-shared/services/quick-search-service.ts +31 -0
  1449. package/src/_pkgs/affine-shared/services/sidebar-service.ts +18 -0
  1450. package/src/_pkgs/affine-shared/services/telemetry-service/block-lifecycle-watcher.ts +148 -0
  1451. package/src/_pkgs/affine-shared/services/telemetry-service/citation.ts +8 -0
  1452. package/src/_pkgs/affine-shared/services/telemetry-service/code-block.ts +8 -0
  1453. package/src/_pkgs/affine-shared/services/telemetry-service/database.ts +85 -0
  1454. package/src/_pkgs/affine-shared/services/telemetry-service/index.ts +8 -0
  1455. package/src/_pkgs/affine-shared/services/telemetry-service/lifecycle.ts +50 -0
  1456. package/src/_pkgs/affine-shared/services/telemetry-service/link.ts +19 -0
  1457. package/src/_pkgs/affine-shared/services/telemetry-service/noop.ts +20 -0
  1458. package/src/_pkgs/affine-shared/services/telemetry-service/note.ts +11 -0
  1459. package/src/_pkgs/affine-shared/services/telemetry-service/slash-menu.ts +5 -0
  1460. package/src/_pkgs/affine-shared/services/telemetry-service/telemetry-service.ts +78 -0
  1461. package/src/_pkgs/affine-shared/services/telemetry-service/types.ts +127 -0
  1462. package/src/_pkgs/affine-shared/services/theme-service.ts +195 -0
  1463. package/src/_pkgs/affine-shared/services/toolbar-service/action.ts +58 -0
  1464. package/src/_pkgs/affine-shared/services/toolbar-service/config.ts +16 -0
  1465. package/src/_pkgs/affine-shared/services/toolbar-service/context.ts +297 -0
  1466. package/src/_pkgs/affine-shared/services/toolbar-service/flags.ts +88 -0
  1467. package/src/_pkgs/affine-shared/services/toolbar-service/index.ts +6 -0
  1468. package/src/_pkgs/affine-shared/services/toolbar-service/module.ts +9 -0
  1469. package/src/_pkgs/affine-shared/services/toolbar-service/registry.ts +64 -0
  1470. package/src/_pkgs/affine-shared/services/user-service/index.ts +4 -0
  1471. package/src/_pkgs/affine-shared/services/user-service/types.ts +25 -0
  1472. package/src/_pkgs/affine-shared/services/user-service/user-list-service.ts +28 -0
  1473. package/src/_pkgs/affine-shared/services/user-service/user-service.ts +24 -0
  1474. package/src/_pkgs/affine-shared/services/user-service/writer-info-service.ts +22 -0
  1475. package/src/_pkgs/affine-shared/services/viewport-element-service.ts +62 -0
  1476. package/src/_pkgs/affine-shared/services/virtual-keyboard-service.ts +23 -0
  1477. package/src/_pkgs/affine-shared/styles/font.ts +30 -0
  1478. package/src/_pkgs/affine-shared/styles/index.ts +4 -0
  1479. package/src/_pkgs/affine-shared/styles/panel.ts +26 -0
  1480. package/src/_pkgs/affine-shared/styles/scrollbar-style.ts +37 -0
  1481. package/src/_pkgs/affine-shared/styles/text.ts +40 -0
  1482. package/src/_pkgs/affine-shared/test-utils/affine-template.ts +316 -0
  1483. package/src/_pkgs/affine-shared/test-utils/affine-test-utils.ts +113 -0
  1484. package/src/_pkgs/affine-shared/test-utils/create-test-host.ts +248 -0
  1485. package/src/_pkgs/affine-shared/test-utils/index.ts +3 -0
  1486. package/src/_pkgs/affine-shared/theme/css-variables.ts +132 -0
  1487. package/src/_pkgs/affine-shared/theme/index.ts +1 -0
  1488. package/src/_pkgs/affine-shared/types/index.ts +74 -0
  1489. package/src/_pkgs/affine-shared/types/uni-component.ts +15 -0
  1490. package/src/_pkgs/affine-shared/utils/auto-scroll.ts +30 -0
  1491. package/src/_pkgs/affine-shared/utils/button-popper.ts +161 -0
  1492. package/src/_pkgs/affine-shared/utils/collapsed/index.ts +1 -0
  1493. package/src/_pkgs/affine-shared/utils/collapsed/paragraph.ts +57 -0
  1494. package/src/_pkgs/affine-shared/utils/computing.ts +23 -0
  1495. package/src/_pkgs/affine-shared/utils/dnd/calc-drop-target.ts +208 -0
  1496. package/src/_pkgs/affine-shared/utils/dnd/get-drop-rect-by-point.ts +160 -0
  1497. package/src/_pkgs/affine-shared/utils/dnd/index.ts +3 -0
  1498. package/src/_pkgs/affine-shared/utils/dnd/types.ts +29 -0
  1499. package/src/_pkgs/affine-shared/utils/dom/checker.ts +18 -0
  1500. package/src/_pkgs/affine-shared/utils/dom/has-classname-in-list.ts +6 -0
  1501. package/src/_pkgs/affine-shared/utils/dom/index.ts +7 -0
  1502. package/src/_pkgs/affine-shared/utils/dom/point-to-block.ts +334 -0
  1503. package/src/_pkgs/affine-shared/utils/dom/point-to-range.ts +98 -0
  1504. package/src/_pkgs/affine-shared/utils/dom/query.ts +39 -0
  1505. package/src/_pkgs/affine-shared/utils/dom/scroll-container.ts +12 -0
  1506. package/src/_pkgs/affine-shared/utils/dom/viewport.ts +19 -0
  1507. package/src/_pkgs/affine-shared/utils/drag-helper/cell-select.ts +83 -0
  1508. package/src/_pkgs/affine-shared/utils/drag-helper/index.ts +3 -0
  1509. package/src/_pkgs/affine-shared/utils/drag-helper/linear-move.ts +38 -0
  1510. package/src/_pkgs/affine-shared/utils/drag-helper/types.ts +1 -0
  1511. package/src/_pkgs/affine-shared/utils/edgeless.ts +79 -0
  1512. package/src/_pkgs/affine-shared/utils/event.ts +362 -0
  1513. package/src/_pkgs/affine-shared/utils/figma-squircle/distribute.ts +154 -0
  1514. package/src/_pkgs/affine-shared/utils/figma-squircle/draw.ts +232 -0
  1515. package/src/_pkgs/affine-shared/utils/figma-squircle/index.ts +105 -0
  1516. package/src/_pkgs/affine-shared/utils/file/filesys.ts +293 -0
  1517. package/src/_pkgs/affine-shared/utils/file/header-value-parser.ts +32 -0
  1518. package/src/_pkgs/affine-shared/utils/file/index.ts +2 -0
  1519. package/src/_pkgs/affine-shared/utils/fractional-indexing.ts +74 -0
  1520. package/src/_pkgs/affine-shared/utils/image.ts +59 -0
  1521. package/src/_pkgs/affine-shared/utils/index.ts +28 -0
  1522. package/src/_pkgs/affine-shared/utils/insert.ts +51 -0
  1523. package/src/_pkgs/affine-shared/utils/is-abort-error.ts +3 -0
  1524. package/src/_pkgs/affine-shared/utils/math.ts +9 -0
  1525. package/src/_pkgs/affine-shared/utils/model/block-props.ts +6 -0
  1526. package/src/_pkgs/affine-shared/utils/model/checker.ts +34 -0
  1527. package/src/_pkgs/affine-shared/utils/model/doc.ts +38 -0
  1528. package/src/_pkgs/affine-shared/utils/model/get-content-block.ts +140 -0
  1529. package/src/_pkgs/affine-shared/utils/model/getter.ts +75 -0
  1530. package/src/_pkgs/affine-shared/utils/model/index.ts +8 -0
  1531. package/src/_pkgs/affine-shared/utils/model/list.ts +103 -0
  1532. package/src/_pkgs/affine-shared/utils/model/merge-to-code-model.ts +33 -0
  1533. package/src/_pkgs/affine-shared/utils/model/transform-model.ts +31 -0
  1534. package/src/_pkgs/affine-shared/utils/popper-position.ts +139 -0
  1535. package/src/_pkgs/affine-shared/utils/print-to-pdf.ts +145 -0
  1536. package/src/_pkgs/affine-shared/utils/reference.ts +44 -0
  1537. package/src/_pkgs/affine-shared/utils/reordering.ts +6 -0
  1538. package/src/_pkgs/affine-shared/utils/signal.ts +25 -0
  1539. package/src/_pkgs/affine-shared/utils/string.ts +75 -0
  1540. package/src/_pkgs/affine-shared/utils/title.ts +32 -0
  1541. package/src/_pkgs/affine-shared/utils/url.ts +156 -0
  1542. package/src/_pkgs/affine-shared/utils/virtual-padding.ts +35 -0
  1543. package/src/_pkgs/affine-shared/utils/zod-schema.ts +219 -0
  1544. package/src/_pkgs/affine-widget-drag-handle/components/edgeless-preview/preview.ts +133 -0
  1545. package/src/_pkgs/affine-widget-drag-handle/config.ts +19 -0
  1546. package/src/_pkgs/affine-widget-drag-handle/consts.ts +1 -0
  1547. package/src/_pkgs/affine-widget-drag-handle/drag-handle.ts +252 -0
  1548. package/src/_pkgs/affine-widget-drag-handle/effects.ts +14 -0
  1549. package/src/_pkgs/affine-widget-drag-handle/helpers/preview-helper.ts +207 -0
  1550. package/src/_pkgs/affine-widget-drag-handle/helpers/rect-helper.ts +95 -0
  1551. package/src/_pkgs/affine-widget-drag-handle/helpers/selection-helper.ts +67 -0
  1552. package/src/_pkgs/affine-widget-drag-handle/index.ts +15 -0
  1553. package/src/_pkgs/affine-widget-drag-handle/middleware/blocks-filter.ts +119 -0
  1554. package/src/_pkgs/affine-widget-drag-handle/middleware/card-style-updater.ts +56 -0
  1555. package/src/_pkgs/affine-widget-drag-handle/middleware/new-id-cross-doc.ts +53 -0
  1556. package/src/_pkgs/affine-widget-drag-handle/middleware/reorder-list.ts +31 -0
  1557. package/src/_pkgs/affine-widget-drag-handle/styles.ts +86 -0
  1558. package/src/_pkgs/affine-widget-drag-handle/utils.ts +346 -0
  1559. package/src/_pkgs/affine-widget-drag-handle/view.ts +21 -0
  1560. package/src/_pkgs/affine-widget-drag-handle/watchers/drag-event-watcher.ts +1742 -0
  1561. package/src/_pkgs/affine-widget-drag-handle/watchers/edgeless-watcher.ts +235 -0
  1562. package/src/_pkgs/affine-widget-drag-handle/watchers/handle-event-watcher.ts +93 -0
  1563. package/src/_pkgs/affine-widget-drag-handle/watchers/keyboard-event-watcher.ts +24 -0
  1564. package/src/_pkgs/affine-widget-drag-handle/watchers/page-watcher.ts +21 -0
  1565. package/src/_pkgs/affine-widget-drag-handle/watchers/pointer-event-watcher.ts +366 -0
  1566. package/src/_pkgs/affine-widget-edgeless-auto-connect/effects.ts +11 -0
  1567. package/src/_pkgs/affine-widget-edgeless-auto-connect/index.ts +634 -0
  1568. package/src/_pkgs/affine-widget-edgeless-auto-connect/view.ts +23 -0
  1569. package/src/_pkgs/affine-widget-edgeless-dragging-area/edgeless-dragging-area-rect.ts +68 -0
  1570. package/src/_pkgs/affine-widget-edgeless-dragging-area/effects.ts +11 -0
  1571. package/src/_pkgs/affine-widget-edgeless-dragging-area/index.ts +1 -0
  1572. package/src/_pkgs/affine-widget-edgeless-dragging-area/view.ts +23 -0
  1573. package/src/_pkgs/affine-widget-edgeless-selected-rect/auto-complete-panel.ts +680 -0
  1574. package/src/_pkgs/affine-widget-edgeless-selected-rect/edgeless-auto-complete.ts +787 -0
  1575. package/src/_pkgs/affine-widget-edgeless-selected-rect/edgeless-selected-rect.ts +844 -0
  1576. package/src/_pkgs/affine-widget-edgeless-selected-rect/effects.ts +18 -0
  1577. package/src/_pkgs/affine-widget-edgeless-selected-rect/index.ts +1 -0
  1578. package/src/_pkgs/affine-widget-edgeless-selected-rect/resize-handles.ts +94 -0
  1579. package/src/_pkgs/affine-widget-edgeless-selected-rect/spec.ts +10 -0
  1580. package/src/_pkgs/affine-widget-edgeless-selected-rect/utils.ts +416 -0
  1581. package/src/_pkgs/affine-widget-edgeless-selected-rect/view.ts +23 -0
  1582. package/src/_pkgs/affine-widget-edgeless-toolbar/button/tool-icon-button.ts +192 -0
  1583. package/src/_pkgs/affine-widget-edgeless-toolbar/button/toolbar-button.ts +39 -0
  1584. package/src/_pkgs/affine-widget-edgeless-toolbar/config/consts.ts +16 -0
  1585. package/src/_pkgs/affine-widget-edgeless-toolbar/config/index.ts +3 -0
  1586. package/src/_pkgs/affine-widget-edgeless-toolbar/config/types.ts +28 -0
  1587. package/src/_pkgs/affine-widget-edgeless-toolbar/config/utils.ts +72 -0
  1588. package/src/_pkgs/affine-widget-edgeless-toolbar/context.ts +21 -0
  1589. package/src/_pkgs/affine-widget-edgeless-toolbar/create-popper.ts +103 -0
  1590. package/src/_pkgs/affine-widget-edgeless-toolbar/draggable/draggable-element.controller.ts +477 -0
  1591. package/src/_pkgs/affine-widget-edgeless-toolbar/draggable/event-resolver.ts +25 -0
  1592. package/src/_pkgs/affine-widget-edgeless-toolbar/draggable/index.ts +1 -0
  1593. package/src/_pkgs/affine-widget-edgeless-toolbar/draggable/overlay-factory.ts +96 -0
  1594. package/src/_pkgs/affine-widget-edgeless-toolbar/draggable/types.ts +97 -0
  1595. package/src/_pkgs/affine-widget-edgeless-toolbar/edgeless-toolbar.ts +732 -0
  1596. package/src/_pkgs/affine-widget-edgeless-toolbar/effects.ts +35 -0
  1597. package/src/_pkgs/affine-widget-edgeless-toolbar/extension/index.ts +66 -0
  1598. package/src/_pkgs/affine-widget-edgeless-toolbar/index.ts +7 -0
  1599. package/src/_pkgs/affine-widget-edgeless-toolbar/menu/slide-menu.ts +184 -0
  1600. package/src/_pkgs/affine-widget-edgeless-toolbar/menu/toolbar-arrow-up-icon.ts +17 -0
  1601. package/src/_pkgs/affine-widget-edgeless-toolbar/mixins/index.ts +3 -0
  1602. package/src/_pkgs/affine-widget-edgeless-toolbar/mixins/quick-tool.mixin.ts +21 -0
  1603. package/src/_pkgs/affine-widget-edgeless-toolbar/mixins/tool.mixin.ts +171 -0
  1604. package/src/_pkgs/affine-widget-edgeless-toolbar/mixins/toolbar-button-with-menu.mixin.ts +20 -0
  1605. package/src/_pkgs/affine-widget-edgeless-toolbar/panel/font-family-panel.ts +57 -0
  1606. package/src/_pkgs/affine-widget-edgeless-toolbar/panel/font-weight-and-style-panel.ts +163 -0
  1607. package/src/_pkgs/affine-widget-edgeless-toolbar/view.ts +23 -0
  1608. package/src/_pkgs/affine-widget-edgeless-zoom-toolbar/effects.ts +15 -0
  1609. package/src/_pkgs/affine-widget-edgeless-zoom-toolbar/index.ts +94 -0
  1610. package/src/_pkgs/affine-widget-edgeless-zoom-toolbar/view.ts +23 -0
  1611. package/src/_pkgs/affine-widget-edgeless-zoom-toolbar/zoom-bar-toggle-button.ts +113 -0
  1612. package/src/_pkgs/affine-widget-edgeless-zoom-toolbar/zoom-toolbar.ts +213 -0
  1613. package/src/_pkgs/affine-widget-frame-title/affine-frame-title-widget.ts +21 -0
  1614. package/src/_pkgs/affine-widget-frame-title/edgeless-frame-title-editor.ts +185 -0
  1615. package/src/_pkgs/affine-widget-frame-title/effects.ts +15 -0
  1616. package/src/_pkgs/affine-widget-frame-title/frame-title.ts +293 -0
  1617. package/src/_pkgs/affine-widget-frame-title/index.ts +4 -0
  1618. package/src/_pkgs/affine-widget-frame-title/mount-frame-title-editor.ts +34 -0
  1619. package/src/_pkgs/affine-widget-frame-title/styles.ts +35 -0
  1620. package/src/_pkgs/affine-widget-frame-title/view.ts +23 -0
  1621. package/src/_pkgs/affine-widget-keyboard-toolbar/config.ts +1160 -0
  1622. package/src/_pkgs/affine-widget-keyboard-toolbar/effects.ts +28 -0
  1623. package/src/_pkgs/affine-widget-keyboard-toolbar/icons.ts +138 -0
  1624. package/src/_pkgs/affine-widget-keyboard-toolbar/index.ts +2 -0
  1625. package/src/_pkgs/affine-widget-keyboard-toolbar/keyboard-tool-panel.ts +100 -0
  1626. package/src/_pkgs/affine-widget-keyboard-toolbar/keyboard-toolbar.ts +350 -0
  1627. package/src/_pkgs/affine-widget-keyboard-toolbar/position-controller.ts +42 -0
  1628. package/src/_pkgs/affine-widget-keyboard-toolbar/styles.ts +145 -0
  1629. package/src/_pkgs/affine-widget-keyboard-toolbar/utils.ts +43 -0
  1630. package/src/_pkgs/affine-widget-keyboard-toolbar/view.ts +28 -0
  1631. package/src/_pkgs/affine-widget-keyboard-toolbar/widget.ts +148 -0
  1632. package/src/_pkgs/affine-widget-linked-doc/config.ts +230 -0
  1633. package/src/_pkgs/affine-widget-linked-doc/effects.ts +17 -0
  1634. package/src/_pkgs/affine-widget-linked-doc/import-doc/import-doc.ts +297 -0
  1635. package/src/_pkgs/affine-widget-linked-doc/import-doc/index.ts +38 -0
  1636. package/src/_pkgs/affine-widget-linked-doc/import-doc/loader.ts +103 -0
  1637. package/src/_pkgs/affine-widget-linked-doc/import-doc/styles.ts +88 -0
  1638. package/src/_pkgs/affine-widget-linked-doc/index.ts +4 -0
  1639. package/src/_pkgs/affine-widget-linked-doc/linked-doc-popover.ts +428 -0
  1640. package/src/_pkgs/affine-widget-linked-doc/mobile-linked-doc-menu.ts +216 -0
  1641. package/src/_pkgs/affine-widget-linked-doc/styles.ts +163 -0
  1642. package/src/_pkgs/affine-widget-linked-doc/transformers/html.ts +218 -0
  1643. package/src/_pkgs/affine-widget-linked-doc/transformers/index.ts +5 -0
  1644. package/src/_pkgs/affine-widget-linked-doc/transformers/markdown.ts +283 -0
  1645. package/src/_pkgs/affine-widget-linked-doc/transformers/notion-html.ts +174 -0
  1646. package/src/_pkgs/affine-widget-linked-doc/transformers/type.ts +25 -0
  1647. package/src/_pkgs/affine-widget-linked-doc/transformers/utils.ts +115 -0
  1648. package/src/_pkgs/affine-widget-linked-doc/transformers/zip.ts +172 -0
  1649. package/src/_pkgs/affine-widget-linked-doc/utils.ts +5 -0
  1650. package/src/_pkgs/affine-widget-linked-doc/view.ts +83 -0
  1651. package/src/_pkgs/affine-widget-linked-doc/widget.ts +344 -0
  1652. package/src/_pkgs/affine-widget-note-slicer/effects.ts +5 -0
  1653. package/src/_pkgs/affine-widget-note-slicer/index.ts +1 -0
  1654. package/src/_pkgs/affine-widget-note-slicer/note-slicer.ts +451 -0
  1655. package/src/_pkgs/affine-widget-note-slicer/view.ts +23 -0
  1656. package/src/_pkgs/affine-widget-page-dragging-area/effects.ts +11 -0
  1657. package/src/_pkgs/affine-widget-page-dragging-area/index.ts +331 -0
  1658. package/src/_pkgs/affine-widget-page-dragging-area/utils.ts +146 -0
  1659. package/src/_pkgs/affine-widget-page-dragging-area/view.ts +24 -0
  1660. package/src/_pkgs/affine-widget-remote-selection/doc/config.ts +5 -0
  1661. package/src/_pkgs/affine-widget-remote-selection/doc/doc-remote-selection.ts +398 -0
  1662. package/src/_pkgs/affine-widget-remote-selection/doc/index.ts +1 -0
  1663. package/src/_pkgs/affine-widget-remote-selection/doc/utils.ts +36 -0
  1664. package/src/_pkgs/affine-widget-remote-selection/edgeless/index.ts +304 -0
  1665. package/src/_pkgs/affine-widget-remote-selection/effects.ts +17 -0
  1666. package/src/_pkgs/affine-widget-remote-selection/index.ts +20 -0
  1667. package/src/_pkgs/affine-widget-remote-selection/manager/color-picker.ts +36 -0
  1668. package/src/_pkgs/affine-widget-remote-selection/manager/remote-color-manager.ts +42 -0
  1669. package/src/_pkgs/affine-widget-remote-selection/view.ts +27 -0
  1670. package/src/_pkgs/affine-widget-scroll-anchoring/effects.ts +17 -0
  1671. package/src/_pkgs/affine-widget-scroll-anchoring/index.ts +12 -0
  1672. package/src/_pkgs/affine-widget-scroll-anchoring/scroll-anchoring.ts +267 -0
  1673. package/src/_pkgs/affine-widget-scroll-anchoring/view.ts +21 -0
  1674. package/src/_pkgs/affine-widget-slash-menu/config.ts +189 -0
  1675. package/src/_pkgs/affine-widget-slash-menu/consts.ts +4 -0
  1676. package/src/_pkgs/affine-widget-slash-menu/effects.ts +15 -0
  1677. package/src/_pkgs/affine-widget-slash-menu/extensions.ts +51 -0
  1678. package/src/_pkgs/affine-widget-slash-menu/index.ts +3 -0
  1679. package/src/_pkgs/affine-widget-slash-menu/slash-menu-popover.ts +668 -0
  1680. package/src/_pkgs/affine-widget-slash-menu/styles.ts +109 -0
  1681. package/src/_pkgs/affine-widget-slash-menu/tooltips/copy.ts +13 -0
  1682. package/src/_pkgs/affine-widget-slash-menu/tooltips/delete.ts +14 -0
  1683. package/src/_pkgs/affine-widget-slash-menu/tooltips/empty.ts +11 -0
  1684. package/src/_pkgs/affine-widget-slash-menu/tooltips/index.ts +51 -0
  1685. package/src/_pkgs/affine-widget-slash-menu/tooltips/move-down.ts +21 -0
  1686. package/src/_pkgs/affine-widget-slash-menu/tooltips/move-up.ts +21 -0
  1687. package/src/_pkgs/affine-widget-slash-menu/tooltips/now.ts +14 -0
  1688. package/src/_pkgs/affine-widget-slash-menu/tooltips/today.ts +14 -0
  1689. package/src/_pkgs/affine-widget-slash-menu/tooltips/tomorrow.ts +14 -0
  1690. package/src/_pkgs/affine-widget-slash-menu/tooltips/yesterday.ts +14 -0
  1691. package/src/_pkgs/affine-widget-slash-menu/types.ts +59 -0
  1692. package/src/_pkgs/affine-widget-slash-menu/utils.ts +102 -0
  1693. package/src/_pkgs/affine-widget-slash-menu/view.ts +22 -0
  1694. package/src/_pkgs/affine-widget-slash-menu/widget.ts +184 -0
  1695. package/src/_pkgs/affine-widget-toolbar/effects.ts +11 -0
  1696. package/src/_pkgs/affine-widget-toolbar/index.ts +12 -0
  1697. package/src/_pkgs/affine-widget-toolbar/toolbar.ts +705 -0
  1698. package/src/_pkgs/affine-widget-toolbar/utils.ts +432 -0
  1699. package/src/_pkgs/affine-widget-toolbar/view.ts +22 -0
  1700. package/src/_pkgs/affine-widget-viewport-overlay/effects.ts +11 -0
  1701. package/src/_pkgs/affine-widget-viewport-overlay/index.ts +90 -0
  1702. package/src/_pkgs/affine-widget-viewport-overlay/view.ts +21 -0
  1703. package/src/_pkgs/data-view/core/common/css-variable.ts +66 -0
  1704. package/src/_pkgs/data-view/core/common/dv-css.ts +88 -0
  1705. package/src/_pkgs/data-view/core/common/index.ts +8 -0
  1706. package/src/_pkgs/data-view/core/common/properties.ts +283 -0
  1707. package/src/_pkgs/data-view/core/common/property-menu.ts +76 -0
  1708. package/src/_pkgs/data-view/core/common/types.ts +13 -0
  1709. package/src/_pkgs/data-view/core/component/button/button.ts +89 -0
  1710. package/src/_pkgs/data-view/core/component/index.ts +3 -0
  1711. package/src/_pkgs/data-view/core/component/overflow/overflow.ts +109 -0
  1712. package/src/_pkgs/data-view/core/component/tags/colors.ts +88 -0
  1713. package/src/_pkgs/data-view/core/component/tags/index.ts +3 -0
  1714. package/src/_pkgs/data-view/core/component/tags/multi-tag-select.ts +606 -0
  1715. package/src/_pkgs/data-view/core/component/tags/multi-tag-view.ts +88 -0
  1716. package/src/_pkgs/data-view/core/component/tags/styles-css.ts +143 -0
  1717. package/src/_pkgs/data-view/core/data-source/base.ts +305 -0
  1718. package/src/_pkgs/data-view/core/data-source/index.ts +1 -0
  1719. package/src/_pkgs/data-view/core/data-view.ts +211 -0
  1720. package/src/_pkgs/data-view/core/detail/detail.ts +305 -0
  1721. package/src/_pkgs/data-view/core/detail/field.ts +286 -0
  1722. package/src/_pkgs/data-view/core/detail/selection.ts +154 -0
  1723. package/src/_pkgs/data-view/core/effect.ts +39 -0
  1724. package/src/_pkgs/data-view/core/expression/index.ts +3 -0
  1725. package/src/_pkgs/data-view/core/expression/ref/index.ts +2 -0
  1726. package/src/_pkgs/data-view/core/expression/ref/ref-view.ts +94 -0
  1727. package/src/_pkgs/data-view/core/expression/ref/ref.ts +5 -0
  1728. package/src/_pkgs/data-view/core/expression/types.ts +22 -0
  1729. package/src/_pkgs/data-view/core/filter/add-filter.ts +67 -0
  1730. package/src/_pkgs/data-view/core/filter/eval.ts +53 -0
  1731. package/src/_pkgs/data-view/core/filter/filter-fn/boolean.ts +27 -0
  1732. package/src/_pkgs/data-view/core/filter/filter-fn/create.ts +64 -0
  1733. package/src/_pkgs/data-view/core/filter/filter-fn/date.ts +37 -0
  1734. package/src/_pkgs/data-view/core/filter/filter-fn/matcher.ts +61 -0
  1735. package/src/_pkgs/data-view/core/filter/filter-fn/multi-tag.ts +89 -0
  1736. package/src/_pkgs/data-view/core/filter/filter-fn/number.ts +88 -0
  1737. package/src/_pkgs/data-view/core/filter/filter-fn/string.ts +69 -0
  1738. package/src/_pkgs/data-view/core/filter/filter-fn/tag.ts +46 -0
  1739. package/src/_pkgs/data-view/core/filter/filter-fn/unknown.ts +37 -0
  1740. package/src/_pkgs/data-view/core/filter/filter-fn/utils.ts +20 -0
  1741. package/src/_pkgs/data-view/core/filter/generate-default-values.ts +44 -0
  1742. package/src/_pkgs/data-view/core/filter/index.ts +5 -0
  1743. package/src/_pkgs/data-view/core/filter/literal/create.ts +5 -0
  1744. package/src/_pkgs/data-view/core/filter/literal/define.ts +154 -0
  1745. package/src/_pkgs/data-view/core/filter/literal/index.ts +3 -0
  1746. package/src/_pkgs/data-view/core/filter/literal/matcher.ts +20 -0
  1747. package/src/_pkgs/data-view/core/filter/literal/types.ts +19 -0
  1748. package/src/_pkgs/data-view/core/filter/trait.ts +25 -0
  1749. package/src/_pkgs/data-view/core/filter/types.ts +14 -0
  1750. package/src/_pkgs/data-view/core/filter/utils.ts +66 -0
  1751. package/src/_pkgs/data-view/core/group-by/default.ts +23 -0
  1752. package/src/_pkgs/data-view/core/group-by/define.ts +185 -0
  1753. package/src/_pkgs/data-view/core/group-by/group-title.ts +231 -0
  1754. package/src/_pkgs/data-view/core/group-by/index.ts +3 -0
  1755. package/src/_pkgs/data-view/core/group-by/matcher.ts +41 -0
  1756. package/src/_pkgs/data-view/core/group-by/renderer/base.ts +40 -0
  1757. package/src/_pkgs/data-view/core/group-by/renderer/boolean-group.ts +25 -0
  1758. package/src/_pkgs/data-view/core/group-by/renderer/number-group.ts +65 -0
  1759. package/src/_pkgs/data-view/core/group-by/renderer/select-group.ts +119 -0
  1760. package/src/_pkgs/data-view/core/group-by/renderer/string-group.ts +53 -0
  1761. package/src/_pkgs/data-view/core/group-by/setting.ts +322 -0
  1762. package/src/_pkgs/data-view/core/group-by/trait.ts +362 -0
  1763. package/src/_pkgs/data-view/core/group-by/types.ts +41 -0
  1764. package/src/_pkgs/data-view/core/index.ts +14 -0
  1765. package/src/_pkgs/data-view/core/logical/composite-type.ts +138 -0
  1766. package/src/_pkgs/data-view/core/logical/data-type.ts +79 -0
  1767. package/src/_pkgs/data-view/core/logical/index.ts +3 -0
  1768. package/src/_pkgs/data-view/core/logical/matcher.ts +113 -0
  1769. package/src/_pkgs/data-view/core/logical/type-presets.ts +67 -0
  1770. package/src/_pkgs/data-view/core/logical/type-system.ts +195 -0
  1771. package/src/_pkgs/data-view/core/logical/type-variable.ts +76 -0
  1772. package/src/_pkgs/data-view/core/logical/type.ts +38 -0
  1773. package/src/_pkgs/data-view/core/property/base-cell.ts +134 -0
  1774. package/src/_pkgs/data-view/core/property/convert.ts +30 -0
  1775. package/src/_pkgs/data-view/core/property/index.ts +6 -0
  1776. package/src/_pkgs/data-view/core/property/manager.ts +44 -0
  1777. package/src/_pkgs/data-view/core/property/property-config.ts +81 -0
  1778. package/src/_pkgs/data-view/core/property/renderer.ts +25 -0
  1779. package/src/_pkgs/data-view/core/property/types.ts +99 -0
  1780. package/src/_pkgs/data-view/core/property/utils.ts +30 -0
  1781. package/src/_pkgs/data-view/core/sort/add-sort.ts +53 -0
  1782. package/src/_pkgs/data-view/core/sort/eval.ts +188 -0
  1783. package/src/_pkgs/data-view/core/sort/manager.ts +43 -0
  1784. package/src/_pkgs/data-view/core/sort/types.ts +10 -0
  1785. package/src/_pkgs/data-view/core/sort/utils.ts +108 -0
  1786. package/src/_pkgs/data-view/core/statistics/any.ts +104 -0
  1787. package/src/_pkgs/data-view/core/statistics/checkbox.ts +62 -0
  1788. package/src/_pkgs/data-view/core/statistics/create.ts +8 -0
  1789. package/src/_pkgs/data-view/core/statistics/index.ts +10 -0
  1790. package/src/_pkgs/data-view/core/statistics/number.ts +130 -0
  1791. package/src/_pkgs/data-view/core/statistics/types.ts +18 -0
  1792. package/src/_pkgs/data-view/core/traits/key.ts +10 -0
  1793. package/src/_pkgs/data-view/core/types.ts +17 -0
  1794. package/src/_pkgs/data-view/core/utils/auto-scroll.ts +78 -0
  1795. package/src/_pkgs/data-view/core/utils/cache.ts +32 -0
  1796. package/src/_pkgs/data-view/core/utils/drag.ts +69 -0
  1797. package/src/_pkgs/data-view/core/utils/event.ts +3 -0
  1798. package/src/_pkgs/data-view/core/utils/index.ts +3 -0
  1799. package/src/_pkgs/data-view/core/utils/lazy.ts +11 -0
  1800. package/src/_pkgs/data-view/core/utils/lock.ts +15 -0
  1801. package/src/_pkgs/data-view/core/utils/menu-title.ts +23 -0
  1802. package/src/_pkgs/data-view/core/utils/uni-component/index.ts +2 -0
  1803. package/src/_pkgs/data-view/core/utils/uni-component/operation.ts +16 -0
  1804. package/src/_pkgs/data-view/core/utils/uni-component/render-template.ts +24 -0
  1805. package/src/_pkgs/data-view/core/utils/uni-component/uni-component.ts +156 -0
  1806. package/src/_pkgs/data-view/core/utils/uni-icon.ts +36 -0
  1807. package/src/_pkgs/data-view/core/utils/utils.ts +39 -0
  1808. package/src/_pkgs/data-view/core/utils/wc-dnd/dnd-context.ts +549 -0
  1809. package/src/_pkgs/data-view/core/utils/wc-dnd/sensors/index.ts +5 -0
  1810. package/src/_pkgs/data-view/core/utils/wc-dnd/sensors/mouse.ts +235 -0
  1811. package/src/_pkgs/data-view/core/utils/wc-dnd/sort/sort-context.ts +93 -0
  1812. package/src/_pkgs/data-view/core/utils/wc-dnd/sort/strategies/horizontal-list-sorting.ts +95 -0
  1813. package/src/_pkgs/data-view/core/utils/wc-dnd/sort/strategies/index.ts +2 -0
  1814. package/src/_pkgs/data-view/core/utils/wc-dnd/sort/strategies/vertical-list-sorting.ts +89 -0
  1815. package/src/_pkgs/data-view/core/utils/wc-dnd/types.ts +123 -0
  1816. package/src/_pkgs/data-view/core/utils/wc-dnd/utils/adjustment.ts +28 -0
  1817. package/src/_pkgs/data-view/core/utils/wc-dnd/utils/apply-modifiers.ts +15 -0
  1818. package/src/_pkgs/data-view/core/utils/wc-dnd/utils/array-move.ts +13 -0
  1819. package/src/_pkgs/data-view/core/utils/wc-dnd/utils/closest-center.ts +44 -0
  1820. package/src/_pkgs/data-view/core/utils/wc-dnd/utils/data-directive.ts +27 -0
  1821. package/src/_pkgs/data-view/core/utils/wc-dnd/utils/distance-between-points.ts +8 -0
  1822. package/src/_pkgs/data-view/core/utils/wc-dnd/utils/element.ts +3 -0
  1823. package/src/_pkgs/data-view/core/utils/wc-dnd/utils/events.ts +7 -0
  1824. package/src/_pkgs/data-view/core/utils/wc-dnd/utils/get-scrollable-ancestors.ts +63 -0
  1825. package/src/_pkgs/data-view/core/utils/wc-dnd/utils/has-exceeded-distance.ts +27 -0
  1826. package/src/_pkgs/data-view/core/utils/wc-dnd/utils/linear-move.ts +60 -0
  1827. package/src/_pkgs/data-view/core/utils/wc-dnd/utils/listeners.ts +20 -0
  1828. package/src/_pkgs/data-view/core/utils/wc-dnd/utils/raf.ts +24 -0
  1829. package/src/_pkgs/data-view/core/utils/wc-dnd/utils/rect-adjustment.ts +14 -0
  1830. package/src/_pkgs/data-view/core/utils/wc-dnd/utils/rect.ts +16 -0
  1831. package/src/_pkgs/data-view/core/utils/wc-dnd/utils/signal.ts +18 -0
  1832. package/src/_pkgs/data-view/core/view/convert.ts +27 -0
  1833. package/src/_pkgs/data-view/core/view/data-view-base.ts +106 -0
  1834. package/src/_pkgs/data-view/core/view/data-view.ts +80 -0
  1835. package/src/_pkgs/data-view/core/view/index.ts +4 -0
  1836. package/src/_pkgs/data-view/core/view/types.ts +43 -0
  1837. package/src/_pkgs/data-view/core/view-manager/cell.ts +125 -0
  1838. package/src/_pkgs/data-view/core/view-manager/index.ts +5 -0
  1839. package/src/_pkgs/data-view/core/view-manager/property.ts +270 -0
  1840. package/src/_pkgs/data-view/core/view-manager/row.ts +65 -0
  1841. package/src/_pkgs/data-view/core/view-manager/single-view.ts +286 -0
  1842. package/src/_pkgs/data-view/core/view-manager/view-manager.ts +130 -0
  1843. package/src/_pkgs/data-view/core/widget/index.ts +1 -0
  1844. package/src/_pkgs/data-view/core/widget/types.ts +10 -0
  1845. package/src/_pkgs/data-view/core/widget/widget-base.ts +28 -0
  1846. package/src/_pkgs/data-view/effects.ts +11 -0
  1847. package/src/_pkgs/data-view/index.ts +1 -0
  1848. package/src/_pkgs/data-view/property-presets/checkbox/cell-renderer.ts +121 -0
  1849. package/src/_pkgs/data-view/property-presets/checkbox/define.ts +44 -0
  1850. package/src/_pkgs/data-view/property-presets/converts.ts +45 -0
  1851. package/src/_pkgs/data-view/property-presets/date/cell-renderer-css.ts +33 -0
  1852. package/src/_pkgs/data-view/property-presets/date/cell-renderer.ts +167 -0
  1853. package/src/_pkgs/data-view/property-presets/date/define.ts +30 -0
  1854. package/src/_pkgs/data-view/property-presets/effect.ts +19 -0
  1855. package/src/_pkgs/data-view/property-presets/image/cell-renderer.ts +32 -0
  1856. package/src/_pkgs/data-view/property-presets/image/define.ts +32 -0
  1857. package/src/_pkgs/data-view/property-presets/index.ts +22 -0
  1858. package/src/_pkgs/data-view/property-presets/multi-select/cell-renderer-css.ts +17 -0
  1859. package/src/_pkgs/data-view/property-presets/multi-select/cell-renderer.ts +89 -0
  1860. package/src/_pkgs/data-view/property-presets/multi-select/define.ts +76 -0
  1861. package/src/_pkgs/data-view/property-presets/number/cell-renderer-css.ts +37 -0
  1862. package/src/_pkgs/data-view/property-presets/number/cell-renderer.ts +133 -0
  1863. package/src/_pkgs/data-view/property-presets/number/define.ts +30 -0
  1864. package/src/_pkgs/data-view/property-presets/number/index.ts +1 -0
  1865. package/src/_pkgs/data-view/property-presets/number/types.ts +9 -0
  1866. package/src/_pkgs/data-view/property-presets/number/utils/formats.ts +19 -0
  1867. package/src/_pkgs/data-view/property-presets/number/utils/formatter.ts +104 -0
  1868. package/src/_pkgs/data-view/property-presets/progress/cell-renderer-css.ts +57 -0
  1869. package/src/_pkgs/data-view/property-presets/progress/cell-renderer.ts +166 -0
  1870. package/src/_pkgs/data-view/property-presets/progress/define.ts +29 -0
  1871. package/src/_pkgs/data-view/property-presets/pure-index.ts +19 -0
  1872. package/src/_pkgs/data-view/property-presets/select/cell-renderer-css.ts +18 -0
  1873. package/src/_pkgs/data-view/property-presets/select/cell-renderer.ts +88 -0
  1874. package/src/_pkgs/data-view/property-presets/select/define.ts +73 -0
  1875. package/src/_pkgs/data-view/property-presets/text/cell-renderer-css.ts +42 -0
  1876. package/src/_pkgs/data-view/property-presets/text/cell-renderer.ts +65 -0
  1877. package/src/_pkgs/data-view/property-presets/text/define.ts +29 -0
  1878. package/src/_pkgs/data-view/view-presets/convert.ts +21 -0
  1879. package/src/_pkgs/data-view/view-presets/effect.ts +7 -0
  1880. package/src/_pkgs/data-view/view-presets/index.ts +11 -0
  1881. package/src/_pkgs/data-view/view-presets/kanban/define.ts +91 -0
  1882. package/src/_pkgs/data-view/view-presets/kanban/effect.ts +7 -0
  1883. package/src/_pkgs/data-view/view-presets/kanban/index.ts +4 -0
  1884. package/src/_pkgs/data-view/view-presets/kanban/kanban-view-manager.ts +328 -0
  1885. package/src/_pkgs/data-view/view-presets/kanban/mobile/card.ts +225 -0
  1886. package/src/_pkgs/data-view/view-presets/kanban/mobile/cell.ts +178 -0
  1887. package/src/_pkgs/data-view/view-presets/kanban/mobile/effect.ts +11 -0
  1888. package/src/_pkgs/data-view/view-presets/kanban/mobile/group.ts +153 -0
  1889. package/src/_pkgs/data-view/view-presets/kanban/mobile/kanban-view-ui-logic.ts +170 -0
  1890. package/src/_pkgs/data-view/view-presets/kanban/mobile/menu.ts +122 -0
  1891. package/src/_pkgs/data-view/view-presets/kanban/pc/card.ts +337 -0
  1892. package/src/_pkgs/data-view/view-presets/kanban/pc/cell.ts +185 -0
  1893. package/src/_pkgs/data-view/view-presets/kanban/pc/controller/clipboard.ts +53 -0
  1894. package/src/_pkgs/data-view/view-presets/kanban/pc/controller/drag.ts +255 -0
  1895. package/src/_pkgs/data-view/view-presets/kanban/pc/controller/hotkeys.ts +67 -0
  1896. package/src/_pkgs/data-view/view-presets/kanban/pc/controller/selection.ts +801 -0
  1897. package/src/_pkgs/data-view/view-presets/kanban/pc/effect.ts +11 -0
  1898. package/src/_pkgs/data-view/view-presets/kanban/pc/group.ts +211 -0
  1899. package/src/_pkgs/data-view/view-presets/kanban/pc/header.ts +76 -0
  1900. package/src/_pkgs/data-view/view-presets/kanban/pc/kanban-view-ui-logic.ts +331 -0
  1901. package/src/_pkgs/data-view/view-presets/kanban/pc/menu.ts +114 -0
  1902. package/src/_pkgs/data-view/view-presets/kanban/renderer.ts +12 -0
  1903. package/src/_pkgs/data-view/view-presets/kanban/selection.ts +50 -0
  1904. package/src/_pkgs/data-view/view-presets/table/consts.ts +10 -0
  1905. package/src/_pkgs/data-view/view-presets/table/define.ts +51 -0
  1906. package/src/_pkgs/data-view/view-presets/table/effect.ts +11 -0
  1907. package/src/_pkgs/data-view/view-presets/table/index.ts +6 -0
  1908. package/src/_pkgs/data-view/view-presets/table/mobile/cell.ts +170 -0
  1909. package/src/_pkgs/data-view/view-presets/table/mobile/column-header.ts +272 -0
  1910. package/src/_pkgs/data-view/view-presets/table/mobile/effect.ts +15 -0
  1911. package/src/_pkgs/data-view/view-presets/table/mobile/group.ts +166 -0
  1912. package/src/_pkgs/data-view/view-presets/table/mobile/header.ts +90 -0
  1913. package/src/_pkgs/data-view/view-presets/table/mobile/menu.ts +47 -0
  1914. package/src/_pkgs/data-view/view-presets/table/mobile/row.ts +150 -0
  1915. package/src/_pkgs/data-view/view-presets/table/mobile/table-view-style.ts +27 -0
  1916. package/src/_pkgs/data-view/view-presets/table/mobile/table-view-ui-logic.ts +160 -0
  1917. package/src/_pkgs/data-view/view-presets/table/pc/cell.ts +161 -0
  1918. package/src/_pkgs/data-view/view-presets/table/pc/controller/clipboard.ts +323 -0
  1919. package/src/_pkgs/data-view/view-presets/table/pc/controller/drag-to-fill.ts +112 -0
  1920. package/src/_pkgs/data-view/view-presets/table/pc/controller/drag.ts +209 -0
  1921. package/src/_pkgs/data-view/view-presets/table/pc/controller/hotkeys.ts +416 -0
  1922. package/src/_pkgs/data-view/view-presets/table/pc/controller/selection.ts +1180 -0
  1923. package/src/_pkgs/data-view/view-presets/table/pc/effect.ts +36 -0
  1924. package/src/_pkgs/data-view/view-presets/table/pc/group.ts +311 -0
  1925. package/src/_pkgs/data-view/view-presets/table/pc/header/column-header.ts +143 -0
  1926. package/src/_pkgs/data-view/view-presets/table/pc/header/column-renderer.ts +98 -0
  1927. package/src/_pkgs/data-view/view-presets/table/pc/header/database-header-column.ts +500 -0
  1928. package/src/_pkgs/data-view/view-presets/table/pc/header/number-format-bar.ts +145 -0
  1929. package/src/_pkgs/data-view/view-presets/table/pc/header/styles.ts +349 -0
  1930. package/src/_pkgs/data-view/view-presets/table/pc/header/vertical-indicator.ts +163 -0
  1931. package/src/_pkgs/data-view/view-presets/table/pc/menu.ts +132 -0
  1932. package/src/_pkgs/data-view/view-presets/table/pc/row/row-select-checkbox.ts +80 -0
  1933. package/src/_pkgs/data-view/view-presets/table/pc/row/row.ts +306 -0
  1934. package/src/_pkgs/data-view/view-presets/table/pc/table-view-style.ts +112 -0
  1935. package/src/_pkgs/data-view/view-presets/table/pc/table-view-ui-logic.ts +220 -0
  1936. package/src/_pkgs/data-view/view-presets/table/pc-virtual/controller/clipboard.ts +324 -0
  1937. package/src/_pkgs/data-view/view-presets/table/pc-virtual/controller/drag-to-fill.ts +117 -0
  1938. package/src/_pkgs/data-view/view-presets/table/pc-virtual/controller/drag.ts +212 -0
  1939. package/src/_pkgs/data-view/view-presets/table/pc-virtual/controller/hotkeys.ts +418 -0
  1940. package/src/_pkgs/data-view/view-presets/table/pc-virtual/controller/selection.ts +1110 -0
  1941. package/src/_pkgs/data-view/view-presets/table/pc-virtual/effect.ts +55 -0
  1942. package/src/_pkgs/data-view/view-presets/table/pc-virtual/group/bottom/group-footer-css.ts +33 -0
  1943. package/src/_pkgs/data-view/view-presets/table/pc-virtual/group/bottom/group-footer.ts +105 -0
  1944. package/src/_pkgs/data-view/view-presets/table/pc-virtual/group/bottom/stats/column-stats-bar.ts +51 -0
  1945. package/src/_pkgs/data-view/view-presets/table/pc-virtual/group/bottom/stats/column-stats-column.ts +246 -0
  1946. package/src/_pkgs/data-view/view-presets/table/pc-virtual/group/top/group-header-css.ts +5 -0
  1947. package/src/_pkgs/data-view/view-presets/table/pc-virtual/group/top/group-header.ts +138 -0
  1948. package/src/_pkgs/data-view/view-presets/table/pc-virtual/group/top/group-title-css.ts +63 -0
  1949. package/src/_pkgs/data-view/view-presets/table/pc-virtual/group/top/group-title.ts +78 -0
  1950. package/src/_pkgs/data-view/view-presets/table/pc-virtual/group/top/header/column-header-css.ts +42 -0
  1951. package/src/_pkgs/data-view/view-presets/table/pc-virtual/group/top/header/column-header.ts +135 -0
  1952. package/src/_pkgs/data-view/view-presets/table/pc-virtual/group/top/header/column-move-preview.ts +98 -0
  1953. package/src/_pkgs/data-view/view-presets/table/pc-virtual/group/top/header/number-format-bar.ts +147 -0
  1954. package/src/_pkgs/data-view/view-presets/table/pc-virtual/group/top/header/single-column-header.ts +497 -0
  1955. package/src/_pkgs/data-view/view-presets/table/pc-virtual/group/top/header/vertical-indicator.ts +169 -0
  1956. package/src/_pkgs/data-view/view-presets/table/pc-virtual/row/cell.ts +225 -0
  1957. package/src/_pkgs/data-view/view-presets/table/pc-virtual/row/menu.ts +132 -0
  1958. package/src/_pkgs/data-view/view-presets/table/pc-virtual/row/row-header-css.ts +52 -0
  1959. package/src/_pkgs/data-view/view-presets/table/pc-virtual/row/row-header.ts +128 -0
  1960. package/src/_pkgs/data-view/view-presets/table/pc-virtual/row/row-last.ts +65 -0
  1961. package/src/_pkgs/data-view/view-presets/table/pc-virtual/table-view-css.ts +60 -0
  1962. package/src/_pkgs/data-view/view-presets/table/pc-virtual/table-view-ui-logic.ts +321 -0
  1963. package/src/_pkgs/data-view/view-presets/table/pc-virtual/types.ts +41 -0
  1964. package/src/_pkgs/data-view/view-presets/table/pc-virtual/virtual/batch-task-manager.ts +119 -0
  1965. package/src/_pkgs/data-view/view-presets/table/pc-virtual/virtual/linked-list.ts +169 -0
  1966. package/src/_pkgs/data-view/view-presets/table/pc-virtual/virtual/virtual-cell-css.ts +6 -0
  1967. package/src/_pkgs/data-view/view-presets/table/pc-virtual/virtual/virtual-cell.ts +60 -0
  1968. package/src/_pkgs/data-view/view-presets/table/pc-virtual/virtual/virtual-scroll.ts +959 -0
  1969. package/src/_pkgs/data-view/view-presets/table/renderer.ts +19 -0
  1970. package/src/_pkgs/data-view/view-presets/table/selection.ts +123 -0
  1971. package/src/_pkgs/data-view/view-presets/table/stats/column-stats-bar.ts +55 -0
  1972. package/src/_pkgs/data-view/view-presets/table/stats/column-stats-column.ts +246 -0
  1973. package/src/_pkgs/data-view/view-presets/table/stats/effect.ts +10 -0
  1974. package/src/_pkgs/data-view/view-presets/table/styles.ts +8 -0
  1975. package/src/_pkgs/data-view/view-presets/table/table-view-manager.ts +395 -0
  1976. package/src/_pkgs/data-view/view-presets/table/types.ts +12 -0
  1977. package/src/_pkgs/data-view/view-presets/table/utils.ts +58 -0
  1978. package/src/_pkgs/data-view/widget-presets/effect.ts +41 -0
  1979. package/src/_pkgs/data-view/widget-presets/index.ts +10 -0
  1980. package/src/_pkgs/data-view/widget-presets/quick-setting-bar/context.ts +10 -0
  1981. package/src/_pkgs/data-view/widget-presets/quick-setting-bar/filter/condition-view.ts +311 -0
  1982. package/src/_pkgs/data-view/widget-presets/quick-setting-bar/filter/group-panel-view.ts +480 -0
  1983. package/src/_pkgs/data-view/widget-presets/quick-setting-bar/filter/index.ts +21 -0
  1984. package/src/_pkgs/data-view/widget-presets/quick-setting-bar/filter/list-view.ts +220 -0
  1985. package/src/_pkgs/data-view/widget-presets/quick-setting-bar/filter/root-panel-view.ts +437 -0
  1986. package/src/_pkgs/data-view/widget-presets/quick-setting-bar/index.ts +52 -0
  1987. package/src/_pkgs/data-view/widget-presets/quick-setting-bar/sort/index.ts +32 -0
  1988. package/src/_pkgs/data-view/widget-presets/quick-setting-bar/sort/root-panel.ts +240 -0
  1989. package/src/_pkgs/data-view/widget-presets/tools/index.ts +33 -0
  1990. package/src/_pkgs/data-view/widget-presets/tools/presets/filter/filter.ts +122 -0
  1991. package/src/_pkgs/data-view/widget-presets/tools/presets/search/search.ts +189 -0
  1992. package/src/_pkgs/data-view/widget-presets/tools/presets/sort/sort.ts +127 -0
  1993. package/src/_pkgs/data-view/widget-presets/tools/presets/table-add-row/add-row.ts +51 -0
  1994. package/src/_pkgs/data-view/widget-presets/tools/presets/table-add-row/new-record-preview.ts +44 -0
  1995. package/src/_pkgs/data-view/widget-presets/tools/presets/view-options/view-options.ts +384 -0
  1996. package/src/_pkgs/data-view/widget-presets/tools/tools-view.ts +83 -0
  1997. package/src/_pkgs/data-view/widget-presets/views-bar/index.ts +11 -0
  1998. package/src/_pkgs/data-view/widget-presets/views-bar/views-view.ts +319 -0
  1999. package/src/_pkgs/global/di/consts.ts +4 -0
  2000. package/src/_pkgs/global/di/container.ts +459 -0
  2001. package/src/_pkgs/global/di/error.ts +59 -0
  2002. package/src/_pkgs/global/di/identifier.ts +114 -0
  2003. package/src/_pkgs/global/di/index.ts +7 -0
  2004. package/src/_pkgs/global/di/provider.ts +219 -0
  2005. package/src/_pkgs/global/di/scope.ts +13 -0
  2006. package/src/_pkgs/global/di/stable-hash.ts +59 -0
  2007. package/src/_pkgs/global/di/types.ts +37 -0
  2008. package/src/_pkgs/global/disposable/index.ts +106 -0
  2009. package/src/_pkgs/global/env/index.ts +31 -0
  2010. package/src/_pkgs/global/exceptions/code.ts +30 -0
  2011. package/src/_pkgs/global/exceptions/index.ts +36 -0
  2012. package/src/_pkgs/global/gfx/bound.ts +175 -0
  2013. package/src/_pkgs/global/gfx/curve.ts +402 -0
  2014. package/src/_pkgs/global/gfx/index.ts +8 -0
  2015. package/src/_pkgs/global/gfx/math.ts +660 -0
  2016. package/src/_pkgs/global/gfx/model/bound.ts +373 -0
  2017. package/src/_pkgs/global/gfx/model/index.ts +4 -0
  2018. package/src/_pkgs/global/gfx/model/point-location.ts +94 -0
  2019. package/src/_pkgs/global/gfx/model/point.ts +268 -0
  2020. package/src/_pkgs/global/gfx/model/vec.ts +601 -0
  2021. package/src/_pkgs/global/gfx/perfect-freehand/LICENSE +21 -0
  2022. package/src/_pkgs/global/gfx/perfect-freehand/get-solid-stroke-points.ts +16 -0
  2023. package/src/_pkgs/global/gfx/perfect-freehand/get-stroke-outline-points.ts +398 -0
  2024. package/src/_pkgs/global/gfx/perfect-freehand/get-stroke-points.ts +132 -0
  2025. package/src/_pkgs/global/gfx/perfect-freehand/get-stroke-radius.ts +16 -0
  2026. package/src/_pkgs/global/gfx/perfect-freehand/get-stroke.ts +26 -0
  2027. package/src/_pkgs/global/gfx/perfect-freehand/index.ts +5 -0
  2028. package/src/_pkgs/global/gfx/perfect-freehand/types.ts +46 -0
  2029. package/src/_pkgs/global/gfx/perfect-freehand/vec.ts +178 -0
  2030. package/src/_pkgs/global/gfx/polyline.ts +136 -0
  2031. package/src/_pkgs/global/gfx/svg-path.ts +160 -0
  2032. package/src/_pkgs/global/gfx/xywh.ts +29 -0
  2033. package/src/_pkgs/global/index.ts +1 -0
  2034. package/src/_pkgs/global/lit/index.ts +3 -0
  2035. package/src/_pkgs/global/lit/signal-watcher.ts +73 -0
  2036. package/src/_pkgs/global/lit/watch.ts +68 -0
  2037. package/src/_pkgs/global/lit/with-disposable.ts +53 -0
  2038. package/src/_pkgs/global/types/index.ts +1 -0
  2039. package/src/_pkgs/global/types/virtual-keyboard.ts +43 -0
  2040. package/src/_pkgs/global/utils/crypto.ts +12 -0
  2041. package/src/_pkgs/global/utils/function.ts +36 -0
  2042. package/src/_pkgs/global/utils/index.ts +4 -0
  2043. package/src/_pkgs/global/utils/logger.ts +34 -0
  2044. package/src/_pkgs/global/utils/types.ts +14 -0
  2045. package/src/_pkgs/std/clipboard/clipboard-adapter.ts +33 -0
  2046. package/src/_pkgs/std/clipboard/clipboard.ts +323 -0
  2047. package/src/_pkgs/std/clipboard/index.ts +2 -0
  2048. package/src/_pkgs/std/clipboard/utils.ts +33 -0
  2049. package/src/_pkgs/std/command/consts.ts +1 -0
  2050. package/src/_pkgs/std/command/index.ts +3 -0
  2051. package/src/_pkgs/std/command/manager.ts +237 -0
  2052. package/src/_pkgs/std/command/types.ts +42 -0
  2053. package/src/_pkgs/std/effects.ts +14 -0
  2054. package/src/_pkgs/std/event/base.ts +62 -0
  2055. package/src/_pkgs/std/event/control/clipboard.ts +56 -0
  2056. package/src/_pkgs/std/event/control/keyboard.ts +149 -0
  2057. package/src/_pkgs/std/event/control/pointer.ts +626 -0
  2058. package/src/_pkgs/std/event/control/range.ts +156 -0
  2059. package/src/_pkgs/std/event/dispatcher.ts +435 -0
  2060. package/src/_pkgs/std/event/index.ts +4 -0
  2061. package/src/_pkgs/std/event/keymap.ts +127 -0
  2062. package/src/_pkgs/std/event/state/clipboard.ts +23 -0
  2063. package/src/_pkgs/std/event/state/dnd.ts +23 -0
  2064. package/src/_pkgs/std/event/state/index.ts +5 -0
  2065. package/src/_pkgs/std/event/state/keyboard.ts +27 -0
  2066. package/src/_pkgs/std/event/state/pointer.ts +83 -0
  2067. package/src/_pkgs/std/event/state/source.ts +31 -0
  2068. package/src/_pkgs/std/event/utils.ts +17 -0
  2069. package/src/_pkgs/std/extension/block-view.ts +33 -0
  2070. package/src/_pkgs/std/extension/config.ts +44 -0
  2071. package/src/_pkgs/std/extension/dnd/index.ts +373 -0
  2072. package/src/_pkgs/std/extension/dnd/types.ts +118 -0
  2073. package/src/_pkgs/std/extension/editor-life-cycle.ts +49 -0
  2074. package/src/_pkgs/std/extension/flavour.ts +26 -0
  2075. package/src/_pkgs/std/extension/index.ts +10 -0
  2076. package/src/_pkgs/std/extension/keymap.ts +49 -0
  2077. package/src/_pkgs/std/extension/lifecycle-watcher.ts +70 -0
  2078. package/src/_pkgs/std/extension/service-manager.ts +22 -0
  2079. package/src/_pkgs/std/extension/service.ts +113 -0
  2080. package/src/_pkgs/std/extension/widget-view-map.ts +40 -0
  2081. package/src/_pkgs/std/gfx/controller.ts +284 -0
  2082. package/src/_pkgs/std/gfx/cursor.ts +54 -0
  2083. package/src/_pkgs/std/gfx/extension.ts +53 -0
  2084. package/src/_pkgs/std/gfx/grid.ts +513 -0
  2085. package/src/_pkgs/std/gfx/identifiers.ts +10 -0
  2086. package/src/_pkgs/std/gfx/index.ts +117 -0
  2087. package/src/_pkgs/std/gfx/interactivity/event.ts +48 -0
  2088. package/src/_pkgs/std/gfx/interactivity/extension/base.ts +211 -0
  2089. package/src/_pkgs/std/gfx/interactivity/extension/view.ts +134 -0
  2090. package/src/_pkgs/std/gfx/interactivity/gfx-view-event-handler.ts +108 -0
  2091. package/src/_pkgs/std/gfx/interactivity/index.ts +33 -0
  2092. package/src/_pkgs/std/gfx/interactivity/manager.ts +1111 -0
  2093. package/src/_pkgs/std/gfx/interactivity/resize/manager.ts +657 -0
  2094. package/src/_pkgs/std/gfx/interactivity/types/clone.ts +7 -0
  2095. package/src/_pkgs/std/gfx/interactivity/types/drag.ts +73 -0
  2096. package/src/_pkgs/std/gfx/interactivity/types/resize.ts +41 -0
  2097. package/src/_pkgs/std/gfx/interactivity/types/select.ts +33 -0
  2098. package/src/_pkgs/std/gfx/interactivity/types/view.ts +173 -0
  2099. package/src/_pkgs/std/gfx/keyboard.ts +51 -0
  2100. package/src/_pkgs/std/gfx/layer.ts +909 -0
  2101. package/src/_pkgs/std/gfx/model/base.ts +173 -0
  2102. package/src/_pkgs/std/gfx/model/gfx-block-model.ts +315 -0
  2103. package/src/_pkgs/std/gfx/model/model.ts +18 -0
  2104. package/src/_pkgs/std/gfx/model/surface/decorators/common.ts +53 -0
  2105. package/src/_pkgs/std/gfx/model/surface/decorators/convert.ts +49 -0
  2106. package/src/_pkgs/std/gfx/model/surface/decorators/derive.ts +103 -0
  2107. package/src/_pkgs/std/gfx/model/surface/decorators/field.ts +88 -0
  2108. package/src/_pkgs/std/gfx/model/surface/decorators/index.ts +6 -0
  2109. package/src/_pkgs/std/gfx/model/surface/decorators/local.ts +58 -0
  2110. package/src/_pkgs/std/gfx/model/surface/decorators/observer.ts +122 -0
  2111. package/src/_pkgs/std/gfx/model/surface/decorators/watch.ts +59 -0
  2112. package/src/_pkgs/std/gfx/model/surface/element-model.ts +598 -0
  2113. package/src/_pkgs/std/gfx/model/surface/local-element-model.ts +254 -0
  2114. package/src/_pkgs/std/gfx/model/surface/surface-model.ts +697 -0
  2115. package/src/_pkgs/std/gfx/selection.ts +408 -0
  2116. package/src/_pkgs/std/gfx/surface-middleware.ts +61 -0
  2117. package/src/_pkgs/std/gfx/tool/tool-controller.ts +635 -0
  2118. package/src/_pkgs/std/gfx/tool/tool.ts +125 -0
  2119. package/src/_pkgs/std/gfx/view/view-manager.ts +139 -0
  2120. package/src/_pkgs/std/gfx/view/view.ts +225 -0
  2121. package/src/_pkgs/std/gfx/viewport-element.ts +230 -0
  2122. package/src/_pkgs/std/gfx/viewport.ts +659 -0
  2123. package/src/_pkgs/std/identifier.ts +34 -0
  2124. package/src/_pkgs/std/index.ts +9 -0
  2125. package/src/_pkgs/std/inline/components/embed-gap.ts +12 -0
  2126. package/src/_pkgs/std/inline/components/index.ts +3 -0
  2127. package/src/_pkgs/std/inline/components/v-element.ts +113 -0
  2128. package/src/_pkgs/std/inline/components/v-line.ts +156 -0
  2129. package/src/_pkgs/std/inline/components/v-text.ts +34 -0
  2130. package/src/_pkgs/std/inline/consts.ts +6 -0
  2131. package/src/_pkgs/std/inline/extensions/index.ts +4 -0
  2132. package/src/_pkgs/std/inline/extensions/inline-manager.ts +124 -0
  2133. package/src/_pkgs/std/inline/extensions/inline-spec.ts +49 -0
  2134. package/src/_pkgs/std/inline/extensions/markdown-matcher.ts +30 -0
  2135. package/src/_pkgs/std/inline/extensions/type.ts +44 -0
  2136. package/src/_pkgs/std/inline/index.ts +8 -0
  2137. package/src/_pkgs/std/inline/inline-editor.ts +296 -0
  2138. package/src/_pkgs/std/inline/range/active.ts +19 -0
  2139. package/src/_pkgs/std/inline/range/consts.ts +9 -0
  2140. package/src/_pkgs/std/inline/range/index.ts +4 -0
  2141. package/src/_pkgs/std/inline/range/inline-range-provider.ts +118 -0
  2142. package/src/_pkgs/std/inline/range/range-binding.ts +392 -0
  2143. package/src/_pkgs/std/inline/range/range-manager.ts +261 -0
  2144. package/src/_pkgs/std/inline/services/attribute.ts +106 -0
  2145. package/src/_pkgs/std/inline/services/delta.ts +153 -0
  2146. package/src/_pkgs/std/inline/services/event.ts +382 -0
  2147. package/src/_pkgs/std/inline/services/hook.ts +35 -0
  2148. package/src/_pkgs/std/inline/services/index.ts +6 -0
  2149. package/src/_pkgs/std/inline/services/range.ts +394 -0
  2150. package/src/_pkgs/std/inline/services/render.ts +185 -0
  2151. package/src/_pkgs/std/inline/services/text.ts +140 -0
  2152. package/src/_pkgs/std/inline/types.ts +37 -0
  2153. package/src/_pkgs/std/inline/utils/attribute-renderer.ts +49 -0
  2154. package/src/_pkgs/std/inline/utils/delta-convert.ts +63 -0
  2155. package/src/_pkgs/std/inline/utils/dynamic-schema.ts +26 -0
  2156. package/src/_pkgs/std/inline/utils/embed.ts +47 -0
  2157. package/src/_pkgs/std/inline/utils/guard.ts +29 -0
  2158. package/src/_pkgs/std/inline/utils/index.ts +11 -0
  2159. package/src/_pkgs/std/inline/utils/inline-range.ts +74 -0
  2160. package/src/_pkgs/std/inline/utils/point-conversion.ts +191 -0
  2161. package/src/_pkgs/std/inline/utils/query.ts +20 -0
  2162. package/src/_pkgs/std/inline/utils/range-conversion.ts +368 -0
  2163. package/src/_pkgs/std/inline/utils/renderer.ts +18 -0
  2164. package/src/_pkgs/std/inline/utils/text.ts +25 -0
  2165. package/src/_pkgs/std/inline/utils/transform-input.ts +78 -0
  2166. package/src/_pkgs/std/scope/index.ts +1 -0
  2167. package/src/_pkgs/std/scope/std-scope.ts +169 -0
  2168. package/src/_pkgs/std/selection/block.ts +33 -0
  2169. package/src/_pkgs/std/selection/cursor.ts +45 -0
  2170. package/src/_pkgs/std/selection/index.ts +4 -0
  2171. package/src/_pkgs/std/selection/surface.ts +72 -0
  2172. package/src/_pkgs/std/selection/text.ts +117 -0
  2173. package/src/_pkgs/std/spec/index.ts +1 -0
  2174. package/src/_pkgs/std/spec/type.ts +5 -0
  2175. package/src/_pkgs/std/utils/fractional-indexing.ts +66 -0
  2176. package/src/_pkgs/std/utils/gfx.ts +32 -0
  2177. package/src/_pkgs/std/utils/layer.ts +175 -0
  2178. package/src/_pkgs/std/utils/tree.ts +137 -0
  2179. package/src/_pkgs/std/view/decorators/index.ts +1 -0
  2180. package/src/_pkgs/std/view/decorators/required.ts +58 -0
  2181. package/src/_pkgs/std/view/element/block-component.ts +315 -0
  2182. package/src/_pkgs/std/view/element/consts.ts +10 -0
  2183. package/src/_pkgs/std/view/element/gfx-block-component.ts +303 -0
  2184. package/src/_pkgs/std/view/element/index.ts +6 -0
  2185. package/src/_pkgs/std/view/element/lit-host.ts +197 -0
  2186. package/src/_pkgs/std/view/element/shadowless-element.ts +97 -0
  2187. package/src/_pkgs/std/view/element/widget-component.ts +98 -0
  2188. package/src/_pkgs/std/view/index.ts +3 -0
  2189. package/src/_pkgs/std/view/view-store.ts +145 -0
  2190. package/src/_pkgs/store/adapter/assets.ts +159 -0
  2191. package/src/_pkgs/store/adapter/base.ts +324 -0
  2192. package/src/_pkgs/store/adapter/context.ts +119 -0
  2193. package/src/_pkgs/store/adapter/index.ts +3 -0
  2194. package/src/_pkgs/store/consts.ts +7 -0
  2195. package/src/_pkgs/store/extension/extension.ts +134 -0
  2196. package/src/_pkgs/store/extension/history/history-extension.ts +79 -0
  2197. package/src/_pkgs/store/extension/history/index.ts +1 -0
  2198. package/src/_pkgs/store/extension/index.ts +6 -0
  2199. package/src/_pkgs/store/extension/schema.ts +20 -0
  2200. package/src/_pkgs/store/extension/selection/base.ts +46 -0
  2201. package/src/_pkgs/store/extension/selection/identifier.ts +17 -0
  2202. package/src/_pkgs/store/extension/selection/index.ts +4 -0
  2203. package/src/_pkgs/store/extension/selection/selection-extension.ts +189 -0
  2204. package/src/_pkgs/store/extension/selection/types.ts +9 -0
  2205. package/src/_pkgs/store/extension/store-extension.ts +61 -0
  2206. package/src/_pkgs/store/extension/workspace/doc.ts +38 -0
  2207. package/src/_pkgs/store/extension/workspace/index.ts +3 -0
  2208. package/src/_pkgs/store/extension/workspace/workspace-meta.ts +39 -0
  2209. package/src/_pkgs/store/extension/workspace/workspace.ts +30 -0
  2210. package/src/_pkgs/store/index.ts +27 -0
  2211. package/src/_pkgs/store/model/block/block-model.ts +158 -0
  2212. package/src/_pkgs/store/model/block/block.ts +65 -0
  2213. package/src/_pkgs/store/model/block/draft.ts +42 -0
  2214. package/src/_pkgs/store/model/block/flat-sync-controller.ts +173 -0
  2215. package/src/_pkgs/store/model/block/index.ts +5 -0
  2216. package/src/_pkgs/store/model/block/sync-controller.ts +391 -0
  2217. package/src/_pkgs/store/model/block/types.ts +23 -0
  2218. package/src/_pkgs/store/model/block/zod.ts +117 -0
  2219. package/src/_pkgs/store/model/index.ts +3 -0
  2220. package/src/_pkgs/store/model/store/crud.ts +397 -0
  2221. package/src/_pkgs/store/model/store/identifier.ts +5 -0
  2222. package/src/_pkgs/store/model/store/index.ts +3 -0
  2223. package/src/_pkgs/store/model/store/query.ts +82 -0
  2224. package/src/_pkgs/store/model/store/store.ts +1298 -0
  2225. package/src/_pkgs/store/model/store/utils.ts +36 -0
  2226. package/src/_pkgs/store/model/store-container.ts +86 -0
  2227. package/src/_pkgs/store/reactive/base-reactive-data.ts +76 -0
  2228. package/src/_pkgs/store/reactive/boxed.ts +137 -0
  2229. package/src/_pkgs/store/reactive/flat-native-y/index.ts +147 -0
  2230. package/src/_pkgs/store/reactive/flat-native-y/initialize.ts +59 -0
  2231. package/src/_pkgs/store/reactive/flat-native-y/proxy.ts +203 -0
  2232. package/src/_pkgs/store/reactive/flat-native-y/signal-updater.ts +58 -0
  2233. package/src/_pkgs/store/reactive/flat-native-y/types.ts +26 -0
  2234. package/src/_pkgs/store/reactive/flat-native-y/utils.ts +50 -0
  2235. package/src/_pkgs/store/reactive/flat-native-y/y-event-handler.ts +117 -0
  2236. package/src/_pkgs/store/reactive/flat-native-y/y-map-updater.ts +61 -0
  2237. package/src/_pkgs/store/reactive/index.ts +8 -0
  2238. package/src/_pkgs/store/reactive/is-pure-object.ts +8 -0
  2239. package/src/_pkgs/store/reactive/memory.ts +4 -0
  2240. package/src/_pkgs/store/reactive/native-y.ts +74 -0
  2241. package/src/_pkgs/store/reactive/proxy.ts +390 -0
  2242. package/src/_pkgs/store/reactive/stash-pop.ts +17 -0
  2243. package/src/_pkgs/store/reactive/text/attributes.ts +12 -0
  2244. package/src/_pkgs/store/reactive/text/index.ts +3 -0
  2245. package/src/_pkgs/store/reactive/text/text.ts +472 -0
  2246. package/src/_pkgs/store/reactive/text/types.ts +22 -0
  2247. package/src/_pkgs/store/reactive/types.ts +19 -0
  2248. package/src/_pkgs/store/schema/error.ts +10 -0
  2249. package/src/_pkgs/store/schema/index.ts +1 -0
  2250. package/src/_pkgs/store/schema/schema.ts +325 -0
  2251. package/src/_pkgs/store/test/index.ts +10 -0
  2252. package/src/_pkgs/store/test/test-doc.ts +182 -0
  2253. package/src/_pkgs/store/test/test-meta.ts +179 -0
  2254. package/src/_pkgs/store/test/test-workspace.ts +231 -0
  2255. package/src/_pkgs/store/transformer/assets.ts +105 -0
  2256. package/src/_pkgs/store/transformer/base.ts +89 -0
  2257. package/src/_pkgs/store/transformer/index.ts +7 -0
  2258. package/src/_pkgs/store/transformer/json.ts +51 -0
  2259. package/src/_pkgs/store/transformer/middleware.ts +120 -0
  2260. package/src/_pkgs/store/transformer/slice.ts +42 -0
  2261. package/src/_pkgs/store/transformer/transformer.ts +660 -0
  2262. package/src/_pkgs/store/transformer/type.ts +74 -0
  2263. package/src/_pkgs/store/utils/id-generator.ts +12 -0
  2264. package/src/_pkgs/store/yjs/awareness.ts +69 -0
  2265. package/src/_pkgs/store/yjs/index.ts +2 -0
  2266. package/src/_pkgs/store/yjs/utils.ts +11 -0
  2267. package/src/_pkgs/sync/awareness/engine.ts +18 -0
  2268. package/src/_pkgs/sync/awareness/impl/broadcast.ts +73 -0
  2269. package/src/_pkgs/sync/awareness/impl/index.ts +1 -0
  2270. package/src/_pkgs/sync/awareness/index.ts +3 -0
  2271. package/src/_pkgs/sync/awareness/source.ts +6 -0
  2272. package/src/_pkgs/sync/blob/engine.ts +205 -0
  2273. package/src/_pkgs/sync/blob/impl/index.ts +2 -0
  2274. package/src/_pkgs/sync/blob/impl/indexeddb.ts +39 -0
  2275. package/src/_pkgs/sync/blob/impl/memory.ts +27 -0
  2276. package/src/_pkgs/sync/blob/index.ts +3 -0
  2277. package/src/_pkgs/sync/blob/source.ts +23 -0
  2278. package/src/_pkgs/sync/doc/consts.ts +15 -0
  2279. package/src/_pkgs/sync/doc/engine.ts +291 -0
  2280. package/src/_pkgs/sync/doc/impl/broadcast.ts +96 -0
  2281. package/src/_pkgs/sync/doc/impl/index.ts +3 -0
  2282. package/src/_pkgs/sync/doc/impl/indexeddb.ts +116 -0
  2283. package/src/_pkgs/sync/doc/impl/noop.ts +18 -0
  2284. package/src/_pkgs/sync/doc/index.ts +21 -0
  2285. package/src/_pkgs/sync/doc/peer.ts +451 -0
  2286. package/src/_pkgs/sync/doc/source.ts +28 -0
  2287. package/src/_pkgs/sync/index.ts +3 -0
  2288. package/src/_pkgs/sync/utils/async-queue.ts +102 -0
  2289. package/src/_pkgs/sync/utils/throw-if-aborted.ts +9 -0
  2290. package/src/blocks/attachment/index.ts +1 -0
  2291. package/src/blocks/attachment/store.ts +1 -0
  2292. package/src/blocks/attachment/view.ts +1 -0
  2293. package/src/blocks/bookmark/index.ts +1 -0
  2294. package/src/blocks/bookmark/store.ts +1 -0
  2295. package/src/blocks/bookmark/view.ts +1 -0
  2296. package/src/blocks/callout/index.ts +1 -0
  2297. package/src/blocks/callout/store.ts +1 -0
  2298. package/src/blocks/callout/view.ts +1 -0
  2299. package/src/blocks/code/index.ts +1 -0
  2300. package/src/blocks/code/store.ts +1 -0
  2301. package/src/blocks/code/view.ts +1 -0
  2302. package/src/blocks/data-view/index.ts +1 -0
  2303. package/src/blocks/data-view/store.ts +1 -0
  2304. package/src/blocks/data-view/view.ts +1 -0
  2305. package/src/blocks/database/index.ts +1 -0
  2306. package/src/blocks/database/store.ts +1 -0
  2307. package/src/blocks/database/view.ts +1 -0
  2308. package/src/blocks/divider/index.ts +1 -0
  2309. package/src/blocks/divider/store.ts +1 -0
  2310. package/src/blocks/divider/view.ts +1 -0
  2311. package/src/blocks/edgeless-text/index.ts +1 -0
  2312. package/src/blocks/edgeless-text/store.ts +1 -0
  2313. package/src/blocks/edgeless-text/view.ts +1 -0
  2314. package/src/blocks/embed/index.ts +1 -0
  2315. package/src/blocks/embed/store.ts +1 -0
  2316. package/src/blocks/embed/view.ts +1 -0
  2317. package/src/blocks/embed-doc/index.ts +1 -0
  2318. package/src/blocks/embed-doc/store.ts +1 -0
  2319. package/src/blocks/embed-doc/view.ts +1 -0
  2320. package/src/blocks/frame/index.ts +1 -0
  2321. package/src/blocks/frame/store.ts +1 -0
  2322. package/src/blocks/frame/view.ts +1 -0
  2323. package/src/blocks/image/index.ts +1 -0
  2324. package/src/blocks/image/store.ts +1 -0
  2325. package/src/blocks/image/view.ts +1 -0
  2326. package/src/blocks/latex/index.ts +1 -0
  2327. package/src/blocks/latex/store.ts +1 -0
  2328. package/src/blocks/latex/view.ts +1 -0
  2329. package/src/blocks/list/index.ts +1 -0
  2330. package/src/blocks/list/store.ts +1 -0
  2331. package/src/blocks/list/view.ts +1 -0
  2332. package/src/blocks/note/index.ts +1 -0
  2333. package/src/blocks/note/store.ts +1 -0
  2334. package/src/blocks/note/view.ts +1 -0
  2335. package/src/blocks/paragraph/index.ts +1 -0
  2336. package/src/blocks/paragraph/store.ts +1 -0
  2337. package/src/blocks/paragraph/view.ts +1 -0
  2338. package/src/blocks/root/index.ts +1 -0
  2339. package/src/blocks/root/store.ts +1 -0
  2340. package/src/blocks/root/view.ts +1 -0
  2341. package/src/blocks/surface/index.ts +1 -0
  2342. package/src/blocks/surface/store.ts +1 -0
  2343. package/src/blocks/surface/view.ts +1 -0
  2344. package/src/blocks/surface-ref/index.ts +1 -0
  2345. package/src/blocks/surface-ref/store.ts +1 -0
  2346. package/src/blocks/surface-ref/view.ts +1 -0
  2347. package/src/blocks/table/index.ts +1 -0
  2348. package/src/blocks/table/store.ts +1 -0
  2349. package/src/blocks/table/view.ts +1 -0
  2350. package/src/components/block-selection.ts +1 -0
  2351. package/src/components/block-zero-width.ts +1 -0
  2352. package/src/components/caption.ts +1 -0
  2353. package/src/components/card-style-dropdown-menu.ts +1 -0
  2354. package/src/components/citation.ts +1 -0
  2355. package/src/components/color-picker.ts +1 -0
  2356. package/src/components/context-menu.ts +1 -0
  2357. package/src/components/date-picker.ts +1 -0
  2358. package/src/components/drop-indicator.ts +1 -0
  2359. package/src/components/edgeless-line-styles-panel.ts +1 -0
  2360. package/src/components/edgeless-line-width-panel.ts +1 -0
  2361. package/src/components/edgeless-shape-color-picker.ts +1 -0
  2362. package/src/components/embed-card-modal.ts +1 -0
  2363. package/src/components/filterable-list.ts +1 -0
  2364. package/src/components/highlight-dropdown-menu.ts +1 -0
  2365. package/src/components/hover.ts +1 -0
  2366. package/src/components/icon-button.ts +1 -0
  2367. package/src/components/icons.ts +1 -0
  2368. package/src/components/link-preview.ts +1 -0
  2369. package/src/components/linked-doc-title.ts +1 -0
  2370. package/src/components/notification.ts +1 -0
  2371. package/src/components/open-doc-dropdown-menu.ts +1 -0
  2372. package/src/components/peek.ts +1 -0
  2373. package/src/components/portal.ts +1 -0
  2374. package/src/components/resource.ts +1 -0
  2375. package/src/components/size-dropdown-menu.ts +1 -0
  2376. package/src/components/smooth-corner.ts +1 -0
  2377. package/src/components/toast.ts +1 -0
  2378. package/src/components/toggle-button.ts +1 -0
  2379. package/src/components/toggle-switch.ts +1 -0
  2380. package/src/components/toolbar.ts +1 -0
  2381. package/src/components/tooltip-content-with-shortcut.ts +1 -0
  2382. package/src/components/view-dropdown-menu.ts +1 -0
  2383. package/src/data-view/effects.ts +1 -0
  2384. package/src/data-view/index.ts +1 -0
  2385. package/src/effects.ts +34 -0
  2386. package/src/ext-loader/index.ts +1 -0
  2387. package/src/extensions/store.ts +83 -0
  2388. package/src/extensions/view.ts +143 -0
  2389. package/src/flags.ts +60 -0
  2390. package/src/foundation/clipboard.ts +1 -0
  2391. package/src/foundation/store.ts +1 -0
  2392. package/src/foundation/view.ts +1 -0
  2393. package/src/fragments/adapter-panel/index.ts +1 -0
  2394. package/src/fragments/adapter-panel/view.ts +1 -0
  2395. package/src/fragments/doc-title/index.ts +1 -0
  2396. package/src/fragments/doc-title/view.ts +1 -0
  2397. package/src/fragments/frame-panel/index.ts +1 -0
  2398. package/src/fragments/frame-panel/view.ts +1 -0
  2399. package/src/fragments/outline/index.ts +1 -0
  2400. package/src/fragments/outline/view.ts +1 -0
  2401. package/src/gfx/brush/index.ts +1 -0
  2402. package/src/gfx/brush/store.ts +1 -0
  2403. package/src/gfx/brush/view.ts +1 -0
  2404. package/src/gfx/connector/index.ts +1 -0
  2405. package/src/gfx/connector/store.ts +1 -0
  2406. package/src/gfx/connector/view.ts +1 -0
  2407. package/src/gfx/group/index.ts +1 -0
  2408. package/src/gfx/group/store.ts +1 -0
  2409. package/src/gfx/group/view.ts +1 -0
  2410. package/src/gfx/link/index.ts +1 -0
  2411. package/src/gfx/link/view.ts +1 -0
  2412. package/src/gfx/mindmap/index.ts +1 -0
  2413. package/src/gfx/mindmap/store.ts +1 -0
  2414. package/src/gfx/mindmap/view.ts +1 -0
  2415. package/src/gfx/note/index.ts +1 -0
  2416. package/src/gfx/note/view.ts +1 -0
  2417. package/src/gfx/pointer/index.ts +1 -0
  2418. package/src/gfx/pointer/view.ts +1 -0
  2419. package/src/gfx/shape/index.ts +1 -0
  2420. package/src/gfx/shape/store.ts +1 -0
  2421. package/src/gfx/shape/view.ts +1 -0
  2422. package/src/gfx/template/index.ts +1 -0
  2423. package/src/gfx/template/view.ts +1 -0
  2424. package/src/gfx/text/index.ts +1 -0
  2425. package/src/gfx/text/store.ts +1 -0
  2426. package/src/gfx/text/view.ts +1 -0
  2427. package/src/gfx/turbo-renderer.ts +1 -0
  2428. package/src/global/di.ts +1 -0
  2429. package/src/global/disposable.ts +1 -0
  2430. package/src/global/env.ts +1 -0
  2431. package/src/global/exceptions.ts +1 -0
  2432. package/src/global/gfx.ts +1 -0
  2433. package/src/global/index.ts +1 -0
  2434. package/src/global/lit.ts +1 -0
  2435. package/src/global/types.ts +1 -0
  2436. package/src/global/utils.ts +1 -0
  2437. package/src/index.ts +1 -0
  2438. package/src/inlines/comment/index.ts +1 -0
  2439. package/src/inlines/footnote/index.ts +1 -0
  2440. package/src/inlines/footnote/store.ts +1 -0
  2441. package/src/inlines/footnote/view.ts +1 -0
  2442. package/src/inlines/latex/index.ts +1 -0
  2443. package/src/inlines/latex/store.ts +1 -0
  2444. package/src/inlines/latex/view.ts +1 -0
  2445. package/src/inlines/link/index.ts +1 -0
  2446. package/src/inlines/link/store.ts +1 -0
  2447. package/src/inlines/link/view.ts +1 -0
  2448. package/src/inlines/mention/index.ts +1 -0
  2449. package/src/inlines/mention/view.ts +1 -0
  2450. package/src/inlines/preset/index.ts +1 -0
  2451. package/src/inlines/preset/store.ts +1 -0
  2452. package/src/inlines/preset/view.ts +1 -0
  2453. package/src/inlines/reference/index.ts +1 -0
  2454. package/src/inlines/reference/store.ts +1 -0
  2455. package/src/inlines/reference/view.ts +1 -0
  2456. package/src/model/index.ts +1 -0
  2457. package/src/rich-text/effects.ts +1 -0
  2458. package/src/rich-text/index.ts +1 -0
  2459. package/src/schemas.ts +78 -0
  2460. package/src/shared/adapters.ts +1 -0
  2461. package/src/shared/commands.ts +1 -0
  2462. package/src/shared/consts.ts +1 -0
  2463. package/src/shared/selection.ts +1 -0
  2464. package/src/shared/services.ts +1 -0
  2465. package/src/shared/styles.ts +1 -0
  2466. package/src/shared/theme.ts +1 -0
  2467. package/src/shared/types.ts +1 -0
  2468. package/src/shared/utils.ts +1 -0
  2469. package/src/std/effects.ts +1 -0
  2470. package/src/std/gfx.ts +1 -0
  2471. package/src/std/index.ts +1 -0
  2472. package/src/std/inline.ts +1 -0
  2473. package/src/store/index.ts +3 -0
  2474. package/src/store/test.ts +1 -0
  2475. package/src/sync/index.ts +1 -0
  2476. package/src/widgets/drag-handle/index.ts +1 -0
  2477. package/src/widgets/drag-handle/view.ts +1 -0
  2478. package/src/widgets/edgeless-auto-connect/index.ts +1 -0
  2479. package/src/widgets/edgeless-auto-connect/view.ts +1 -0
  2480. package/src/widgets/edgeless-dragging-area/index.ts +1 -0
  2481. package/src/widgets/edgeless-dragging-area/view.ts +1 -0
  2482. package/src/widgets/edgeless-selected-rect/index.ts +1 -0
  2483. package/src/widgets/edgeless-selected-rect/view.ts +1 -0
  2484. package/src/widgets/edgeless-toolbar/index.ts +1 -0
  2485. package/src/widgets/edgeless-toolbar/view.ts +1 -0
  2486. package/src/widgets/edgeless-zoom-toolbar/index.ts +1 -0
  2487. package/src/widgets/edgeless-zoom-toolbar/view.ts +1 -0
  2488. package/src/widgets/frame-title/index.ts +1 -0
  2489. package/src/widgets/frame-title/view.ts +1 -0
  2490. package/src/widgets/keyboard-toolbar/index.ts +1 -0
  2491. package/src/widgets/keyboard-toolbar/view.ts +1 -0
  2492. package/src/widgets/linked-doc/index.ts +1 -0
  2493. package/src/widgets/linked-doc/view.ts +1 -0
  2494. package/src/widgets/note-slicer/index.ts +1 -0
  2495. package/src/widgets/note-slicer/view.ts +1 -0
  2496. package/src/widgets/page-dragging-area/index.ts +1 -0
  2497. package/src/widgets/page-dragging-area/view.ts +1 -0
  2498. package/src/widgets/remote-selection/index.ts +1 -0
  2499. package/src/widgets/remote-selection/view.ts +1 -0
  2500. package/src/widgets/scroll-anchoring/index.ts +1 -0
  2501. package/src/widgets/scroll-anchoring/view.ts +1 -0
  2502. package/src/widgets/slash-menu/index.ts +1 -0
  2503. package/src/widgets/slash-menu/view.ts +1 -0
  2504. package/src/widgets/toolbar/index.ts +1 -0
  2505. package/src/widgets/toolbar/view.ts +1 -0
  2506. package/src/widgets/viewport-overlay/index.ts +1 -0
  2507. package/src/widgets/viewport-overlay/view.ts +1 -0
@@ -0,0 +1,1411 @@
1
+ import { html, svg } from 'lit';
2
+
3
+ export const Triangle = html`
4
+ <svg
5
+ width="24"
6
+ height="18"
7
+ viewBox="0 0 24 18"
8
+ fill="none"
9
+ xmlns="http://www.w3.org/2000/svg"
10
+ >
11
+ <path
12
+ id="Polygon 19"
13
+ d="M12.6809 16.8585C12.2821 17.4176 11.4514 17.4176 11.0526 16.8585L0.754394 2.41961C0.282281 1.75767 0.755483 0.838941 1.56853 0.838941L22.165 0.838943C22.978 0.838943 23.4512 1.75767 22.9791 2.41961L12.6809 16.8585Z"
14
+ fill="currentColor"
15
+ />
16
+ </svg>
17
+ `;
18
+
19
+ export const TemplateCard1 = {
20
+ light: svg`<svg width="62" height="40" viewBox="0 0 62 40" fill="none" xmlns="http://www.w3.org/2000/svg">
21
+ <g filter="url(#filter0_d_744_3554)">
22
+ <g clip-path="url(#clip0_744_3554)">
23
+ <rect x="4.76465" y="4.82324" width="52.7059" height="30.8021" rx="3" fill="white"/>
24
+ <rect x="7.35547" y="7.66992" width="21.7372" height="11.3655" rx="1" fill="#DFF4E8"/>
25
+ <rect x="32.832" y="7.6084" width="21.7372" height="11.3655" rx="1" fill="#DFF4F3"/>
26
+ <rect x="7.42578" y="21.8467" width="21.7372" height="11.3655" rx="1" fill="#FFEACA"/>
27
+ <rect x="32.8408" y="21.7988" width="21.7372" height="11.3655" rx="1" fill="#FFE1E1"/>
28
+ <g filter="url(#filter1_d_744_3554)">
29
+ <rect x="8.49219" y="9.00781" width="4.13581" height="3.08021" fill="#9DD194"/>
30
+ <rect x="8.54219" y="9.05781" width="4.03581" height="2.98021" stroke="black" stroke-opacity="0.1" stroke-width="0.1"/>
31
+ </g>
32
+ <g filter="url(#filter2_d_744_3554)">
33
+ <rect x="8.49219" y="14.0635" width="4.13581" height="3.08021" fill="#9DD194"/>
34
+ <rect x="8.54219" y="14.1135" width="4.03581" height="2.98021" stroke="black" stroke-opacity="0.1" stroke-width="0.1"/>
35
+ </g>
36
+ <g filter="url(#filter3_d_744_3554)">
37
+ <rect x="13.4521" y="9.00781" width="3.72042" height="3.08021" fill="#9DD194"/>
38
+ <rect x="13.5021" y="9.05781" width="3.62042" height="2.98021" stroke="black" stroke-opacity="0.1" stroke-width="0.1"/>
39
+ </g>
40
+ <g filter="url(#filter4_d_744_3554)">
41
+ <rect x="37.6836" y="11.4336" width="3.72042" height="3.08021" fill="#84CFFF"/>
42
+ <rect x="37.7336" y="11.4836" width="3.62042" height="2.98021" stroke="black" stroke-opacity="0.1" stroke-width="0.1"/>
43
+ </g>
44
+ <g filter="url(#filter5_d_744_3554)">
45
+ <rect x="43.2646" y="11.4336" width="3.72042" height="3.08021" fill="#84CFFF"/>
46
+ <rect x="43.3146" y="11.4836" width="3.62042" height="2.98021" stroke="black" stroke-opacity="0.1" stroke-width="0.1"/>
47
+ </g>
48
+ <g filter="url(#filter6_d_744_3554)">
49
+ <rect x="48.8447" y="11.4336" width="3.72042" height="3.08021" fill="#84CFFF"/>
50
+ <rect x="48.8947" y="11.4836" width="3.62042" height="2.98021" stroke="black" stroke-opacity="0.1" stroke-width="0.1"/>
51
+ </g>
52
+ <g filter="url(#filter7_d_744_3554)">
53
+ <rect x="34.2461" y="22.8467" width="3.72042" height="3.08021" fill="#F16F6F"/>
54
+ <rect x="34.2961" y="22.8967" width="3.62042" height="2.98021" stroke="black" stroke-opacity="0.1" stroke-width="0.1"/>
55
+ </g>
56
+ <g filter="url(#filter8_d_744_3554)">
57
+ <rect x="39.2061" y="22.8467" width="3.72042" height="3.08021" fill="#F16F6F"/>
58
+ <rect x="39.2561" y="22.8967" width="3.62042" height="2.98021" stroke="black" stroke-opacity="0.1" stroke-width="0.1"/>
59
+ </g>
60
+ <g filter="url(#filter9_d_744_3554)">
61
+ <rect x="44.167" y="22.8467" width="3.72042" height="3.08021" fill="#F16F6F"/>
62
+ <rect x="44.217" y="22.8967" width="3.62042" height="2.98021" stroke="black" stroke-opacity="0.1" stroke-width="0.1"/>
63
+ </g>
64
+ <g filter="url(#filter10_d_744_3554)">
65
+ <rect x="49.127" y="22.8467" width="3.72042" height="3.08021" fill="#F16F6F"/>
66
+ <rect x="49.177" y="22.8967" width="3.62042" height="2.98021" stroke="black" stroke-opacity="0.1" stroke-width="0.1"/>
67
+ </g>
68
+ <g filter="url(#filter11_d_744_3554)">
69
+ <rect x="49.127" y="26.543" width="3.72042" height="3.08021" fill="#F16F6F"/>
70
+ <rect x="49.177" y="26.593" width="3.62042" height="2.98021" stroke="black" stroke-opacity="0.1" stroke-width="0.1"/>
71
+ </g>
72
+ <g filter="url(#filter12_d_744_3554)">
73
+ <rect x="44.167" y="26.543" width="3.72042" height="3.08021" fill="#F16F6F"/>
74
+ <rect x="44.217" y="26.593" width="3.62042" height="2.98021" stroke="black" stroke-opacity="0.1" stroke-width="0.1"/>
75
+ </g>
76
+ <g filter="url(#filter13_d_744_3554)">
77
+ <rect x="39.2061" y="26.543" width="3.72042" height="3.08021" fill="#F16F6F"/>
78
+ <rect x="39.2561" y="26.593" width="3.62042" height="2.98021" stroke="black" stroke-opacity="0.1" stroke-width="0.1"/>
79
+ </g>
80
+ <g filter="url(#filter14_d_744_3554)">
81
+ <rect x="34.2461" y="26.543" width="3.72042" height="3.08021" fill="#F16F6F"/>
82
+ <rect x="34.2961" y="26.593" width="3.62042" height="2.98021" stroke="black" stroke-opacity="0.1" stroke-width="0.1"/>
83
+ </g>
84
+ <g filter="url(#filter15_d_744_3554)">
85
+ <rect x="18.4131" y="9.00781" width="3.72042" height="3.08021" fill="#9DD194"/>
86
+ <rect x="18.4631" y="9.05781" width="3.62042" height="2.98021" stroke="black" stroke-opacity="0.1" stroke-width="0.1"/>
87
+ </g>
88
+ <line x1="7.8916" y1="20.7553" x2="54.2721" y2="20.7553" stroke="#A7A7A7" stroke-width="0.3"/>
89
+ <line x1="30.9918" y1="8.72949" x2="30.9918" y2="32.2467" stroke="#A7A7A7" stroke-width="0.3"/>
90
+ <g filter="url(#filter16_d_744_3554)">
91
+ <rect x="8.62012" y="23.1807" width="3.72042" height="3.08021" fill="#FFC46B"/>
92
+ <rect x="8.67012" y="23.2307" width="3.62042" height="2.98021" stroke="black" stroke-opacity="0.1" stroke-width="0.1"/>
93
+ </g>
94
+ <g filter="url(#filter17_d_744_3554)">
95
+ <rect x="13.7139" y="25.6592" width="3.72042" height="3.08021" fill="#FFC46B"/>
96
+ <rect x="13.7639" y="25.7092" width="3.62042" height="2.98021" stroke="black" stroke-opacity="0.1" stroke-width="0.1"/>
97
+ </g>
98
+ <g filter="url(#filter18_d_744_3554)">
99
+ <rect x="18.7031" y="23.9033" width="3.72042" height="3.08021" fill="#FFC46B"/>
100
+ <rect x="18.7531" y="23.9533" width="3.62042" height="2.98021" stroke="black" stroke-opacity="0.1" stroke-width="0.1"/>
101
+ </g>
102
+ <g filter="url(#filter19_d_744_3554)">
103
+ <rect x="20.5752" y="28.8613" width="3.72042" height="3.08021" fill="#FFC46B"/>
104
+ <rect x="20.6252" y="28.9113" width="3.62042" height="2.98021" stroke="black" stroke-opacity="0.1" stroke-width="0.1"/>
105
+ </g>
106
+ </g>
107
+ <rect x="5.06465" y="5.12324" width="52.1059" height="30.2021" rx="2.7" stroke="#E3E2E4" stroke-width="0.6"/>
108
+ </g>
109
+ <defs>
110
+ <filter id="filter0_d_744_3554" x="0.764648" y="0.823242" width="60.7061" height="38.8018" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
111
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
112
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
113
+ <feOffset/>
114
+ <feGaussianBlur stdDeviation="2"/>
115
+ <feComposite in2="hardAlpha" operator="out"/>
116
+ <feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.12 0"/>
117
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_744_3554"/>
118
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_744_3554" result="shape"/>
119
+ </filter>
120
+ <filter id="filter1_d_744_3554" x="-10.6457" y="-10.1301" width="42.4116" height="41.3559" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
121
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
122
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
123
+ <feOffset/>
124
+ <feGaussianBlur stdDeviation="9.56896"/>
125
+ <feComposite in2="hardAlpha" operator="out"/>
126
+ <feColorMatrix type="matrix" values="0 0 0 0 0.258824 0 0 0 0 0.254902 0 0 0 0 0.286275 0 0 0 0.18 0"/>
127
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_744_3554"/>
128
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_744_3554" result="shape"/>
129
+ </filter>
130
+ <filter id="filter2_d_744_3554" x="-10.6457" y="-5.07445" width="42.4116" height="41.3559" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
131
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
132
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
133
+ <feOffset/>
134
+ <feGaussianBlur stdDeviation="9.56896"/>
135
+ <feComposite in2="hardAlpha" operator="out"/>
136
+ <feColorMatrix type="matrix" values="0 0 0 0 0.258824 0 0 0 0 0.254902 0 0 0 0 0.286275 0 0 0 0.18 0"/>
137
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_744_3554"/>
138
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_744_3554" result="shape"/>
139
+ </filter>
140
+ <filter id="filter3_d_744_3554" x="-5.68578" y="-10.1301" width="41.9966" height="41.3559" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
141
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
142
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
143
+ <feOffset/>
144
+ <feGaussianBlur stdDeviation="9.56896"/>
145
+ <feComposite in2="hardAlpha" operator="out"/>
146
+ <feColorMatrix type="matrix" values="0 0 0 0 0.258824 0 0 0 0 0.254902 0 0 0 0 0.286275 0 0 0 0.18 0"/>
147
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_744_3554"/>
148
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_744_3554" result="shape"/>
149
+ </filter>
150
+ <filter id="filter4_d_744_3554" x="18.5457" y="-7.70434" width="41.9966" height="41.3559" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
151
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
152
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
153
+ <feOffset/>
154
+ <feGaussianBlur stdDeviation="9.56896"/>
155
+ <feComposite in2="hardAlpha" operator="out"/>
156
+ <feColorMatrix type="matrix" values="0 0 0 0 0.258824 0 0 0 0 0.254902 0 0 0 0 0.286275 0 0 0 0.18 0"/>
157
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_744_3554"/>
158
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_744_3554" result="shape"/>
159
+ </filter>
160
+ <filter id="filter5_d_744_3554" x="24.1267" y="-7.70434" width="41.9966" height="41.3559" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
161
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
162
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
163
+ <feOffset/>
164
+ <feGaussianBlur stdDeviation="9.56896"/>
165
+ <feComposite in2="hardAlpha" operator="out"/>
166
+ <feColorMatrix type="matrix" values="0 0 0 0 0.258824 0 0 0 0 0.254902 0 0 0 0 0.286275 0 0 0 0.18 0"/>
167
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_744_3554"/>
168
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_744_3554" result="shape"/>
169
+ </filter>
170
+ <filter id="filter6_d_744_3554" x="29.7068" y="-7.70434" width="41.9966" height="41.3559" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
171
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
172
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
173
+ <feOffset/>
174
+ <feGaussianBlur stdDeviation="9.56896"/>
175
+ <feComposite in2="hardAlpha" operator="out"/>
176
+ <feColorMatrix type="matrix" values="0 0 0 0 0.258824 0 0 0 0 0.254902 0 0 0 0 0.286275 0 0 0 0.18 0"/>
177
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_744_3554"/>
178
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_744_3554" result="shape"/>
179
+ </filter>
180
+ <filter id="filter7_d_744_3554" x="15.1082" y="3.70875" width="41.9966" height="41.3559" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
181
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
182
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
183
+ <feOffset/>
184
+ <feGaussianBlur stdDeviation="9.56896"/>
185
+ <feComposite in2="hardAlpha" operator="out"/>
186
+ <feColorMatrix type="matrix" values="0 0 0 0 0.258824 0 0 0 0 0.254902 0 0 0 0 0.286275 0 0 0 0.18 0"/>
187
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_744_3554"/>
188
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_744_3554" result="shape"/>
189
+ </filter>
190
+ <filter id="filter8_d_744_3554" x="20.0681" y="3.70875" width="41.9966" height="41.3559" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
191
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
192
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
193
+ <feOffset/>
194
+ <feGaussianBlur stdDeviation="9.56896"/>
195
+ <feComposite in2="hardAlpha" operator="out"/>
196
+ <feColorMatrix type="matrix" values="0 0 0 0 0.258824 0 0 0 0 0.254902 0 0 0 0 0.286275 0 0 0 0.18 0"/>
197
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_744_3554"/>
198
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_744_3554" result="shape"/>
199
+ </filter>
200
+ <filter id="filter9_d_744_3554" x="25.0291" y="3.70875" width="41.9966" height="41.3559" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
201
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
202
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
203
+ <feOffset/>
204
+ <feGaussianBlur stdDeviation="9.56896"/>
205
+ <feComposite in2="hardAlpha" operator="out"/>
206
+ <feColorMatrix type="matrix" values="0 0 0 0 0.258824 0 0 0 0 0.254902 0 0 0 0 0.286275 0 0 0 0.18 0"/>
207
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_744_3554"/>
208
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_744_3554" result="shape"/>
209
+ </filter>
210
+ <filter id="filter10_d_744_3554" x="29.989" y="3.70875" width="41.9966" height="41.3559" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
211
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
212
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
213
+ <feOffset/>
214
+ <feGaussianBlur stdDeviation="9.56896"/>
215
+ <feComposite in2="hardAlpha" operator="out"/>
216
+ <feColorMatrix type="matrix" values="0 0 0 0 0.258824 0 0 0 0 0.254902 0 0 0 0 0.286275 0 0 0 0.18 0"/>
217
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_744_3554"/>
218
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_744_3554" result="shape"/>
219
+ </filter>
220
+ <filter id="filter11_d_744_3554" x="29.989" y="7.40504" width="41.9966" height="41.3559" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
221
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
222
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
223
+ <feOffset/>
224
+ <feGaussianBlur stdDeviation="9.56896"/>
225
+ <feComposite in2="hardAlpha" operator="out"/>
226
+ <feColorMatrix type="matrix" values="0 0 0 0 0.258824 0 0 0 0 0.254902 0 0 0 0 0.286275 0 0 0 0.18 0"/>
227
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_744_3554"/>
228
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_744_3554" result="shape"/>
229
+ </filter>
230
+ <filter id="filter12_d_744_3554" x="25.0291" y="7.40504" width="41.9966" height="41.3559" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
231
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
232
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
233
+ <feOffset/>
234
+ <feGaussianBlur stdDeviation="9.56896"/>
235
+ <feComposite in2="hardAlpha" operator="out"/>
236
+ <feColorMatrix type="matrix" values="0 0 0 0 0.258824 0 0 0 0 0.254902 0 0 0 0 0.286275 0 0 0 0.18 0"/>
237
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_744_3554"/>
238
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_744_3554" result="shape"/>
239
+ </filter>
240
+ <filter id="filter13_d_744_3554" x="20.0681" y="7.40504" width="41.9966" height="41.3559" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
241
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
242
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
243
+ <feOffset/>
244
+ <feGaussianBlur stdDeviation="9.56896"/>
245
+ <feComposite in2="hardAlpha" operator="out"/>
246
+ <feColorMatrix type="matrix" values="0 0 0 0 0.258824 0 0 0 0 0.254902 0 0 0 0 0.286275 0 0 0 0.18 0"/>
247
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_744_3554"/>
248
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_744_3554" result="shape"/>
249
+ </filter>
250
+ <filter id="filter14_d_744_3554" x="15.1082" y="7.40504" width="41.9966" height="41.3559" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
251
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
252
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
253
+ <feOffset/>
254
+ <feGaussianBlur stdDeviation="9.56896"/>
255
+ <feComposite in2="hardAlpha" operator="out"/>
256
+ <feColorMatrix type="matrix" values="0 0 0 0 0.258824 0 0 0 0 0.254902 0 0 0 0 0.286275 0 0 0 0.18 0"/>
257
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_744_3554"/>
258
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_744_3554" result="shape"/>
259
+ </filter>
260
+ <filter id="filter15_d_744_3554" x="-0.724844" y="-10.1301" width="41.9966" height="41.3559" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
261
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
262
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
263
+ <feOffset/>
264
+ <feGaussianBlur stdDeviation="9.56896"/>
265
+ <feComposite in2="hardAlpha" operator="out"/>
266
+ <feColorMatrix type="matrix" values="0 0 0 0 0.258824 0 0 0 0 0.254902 0 0 0 0 0.286275 0 0 0 0.18 0"/>
267
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_744_3554"/>
268
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_744_3554" result="shape"/>
269
+ </filter>
270
+ <filter id="filter16_d_744_3554" x="-10.5178" y="4.04273" width="41.9966" height="41.3559" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
271
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
272
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
273
+ <feOffset/>
274
+ <feGaussianBlur stdDeviation="9.56896"/>
275
+ <feComposite in2="hardAlpha" operator="out"/>
276
+ <feColorMatrix type="matrix" values="0 0 0 0 0.258824 0 0 0 0 0.254902 0 0 0 0 0.286275 0 0 0 0.18 0"/>
277
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_744_3554"/>
278
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_744_3554" result="shape"/>
279
+ </filter>
280
+ <filter id="filter17_d_744_3554" x="-5.42406" y="6.52125" width="41.9966" height="41.3559" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
281
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
282
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
283
+ <feOffset/>
284
+ <feGaussianBlur stdDeviation="9.56896"/>
285
+ <feComposite in2="hardAlpha" operator="out"/>
286
+ <feColorMatrix type="matrix" values="0 0 0 0 0.258824 0 0 0 0 0.254902 0 0 0 0 0.286275 0 0 0 0.18 0"/>
287
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_744_3554"/>
288
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_744_3554" result="shape"/>
289
+ </filter>
290
+ <filter id="filter18_d_744_3554" x="-0.434805" y="4.76539" width="41.9966" height="41.3559" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
291
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
292
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
293
+ <feOffset/>
294
+ <feGaussianBlur stdDeviation="9.56896"/>
295
+ <feComposite in2="hardAlpha" operator="out"/>
296
+ <feColorMatrix type="matrix" values="0 0 0 0 0.258824 0 0 0 0 0.254902 0 0 0 0 0.286275 0 0 0 0.18 0"/>
297
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_744_3554"/>
298
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_744_3554" result="shape"/>
299
+ </filter>
300
+ <filter id="filter19_d_744_3554" x="1.43727" y="9.7234" width="41.9966" height="41.3559" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
301
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
302
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
303
+ <feOffset/>
304
+ <feGaussianBlur stdDeviation="9.56896"/>
305
+ <feComposite in2="hardAlpha" operator="out"/>
306
+ <feColorMatrix type="matrix" values="0 0 0 0 0.258824 0 0 0 0 0.254902 0 0 0 0 0.286275 0 0 0 0.18 0"/>
307
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_744_3554"/>
308
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_744_3554" result="shape"/>
309
+ </filter>
310
+ <clipPath id="clip0_744_3554">
311
+ <rect x="4.76465" y="4.82324" width="52.7059" height="30.8021" rx="3" fill="white"/>
312
+ </clipPath>
313
+ </defs>
314
+ </svg>
315
+ `,
316
+ dark: svg`<svg width="62" height="40" viewBox="0 0 62 40" fill="none" xmlns="http://www.w3.org/2000/svg">
317
+ <g filter="url(#filter0_d_744_3621)">
318
+ <g clip-path="url(#clip0_744_3621)">
319
+ <rect x="4.76465" y="4.82324" width="52.7059" height="30.8021" rx="3" fill="black"/>
320
+ <rect x="7.35547" y="7.66992" width="21.7372" height="11.3655" rx="1" fill="#2C6C3F"/>
321
+ <rect x="32.832" y="7.6084" width="21.7372" height="11.3655" rx="1" fill="#1A736E"/>
322
+ <rect x="7.42578" y="21.8467" width="21.7372" height="11.3655" rx="1" fill="#B9812E"/>
323
+ <rect x="32.8408" y="21.7988" width="21.7372" height="11.3655" rx="1" fill="#6F3232"/>
324
+ <g filter="url(#filter1_d_744_3621)">
325
+ <rect x="8.49219" y="9.00781" width="4.13581" height="3.08021" fill="#9DD194"/>
326
+ <rect x="8.54219" y="9.05781" width="4.03581" height="2.98021" stroke="white" stroke-opacity="0.1" stroke-width="0.1"/>
327
+ </g>
328
+ <g filter="url(#filter2_d_744_3621)">
329
+ <rect x="8.49219" y="14.0635" width="4.13581" height="3.08021" fill="#9DD194"/>
330
+ <rect x="8.54219" y="14.1135" width="4.03581" height="2.98021" stroke="white" stroke-opacity="0.1" stroke-width="0.1"/>
331
+ </g>
332
+ <g filter="url(#filter3_d_744_3621)">
333
+ <rect x="13.4521" y="9.00781" width="3.72042" height="3.08021" fill="#9DD194"/>
334
+ <rect x="13.5021" y="9.05781" width="3.62042" height="2.98021" stroke="white" stroke-opacity="0.1" stroke-width="0.1"/>
335
+ </g>
336
+ <g filter="url(#filter4_d_744_3621)">
337
+ <rect x="37.6836" y="11.4336" width="3.72042" height="3.08021" fill="#84CFFF"/>
338
+ <rect x="37.7336" y="11.4836" width="3.62042" height="2.98021" stroke="white" stroke-opacity="0.1" stroke-width="0.1"/>
339
+ </g>
340
+ <g filter="url(#filter5_d_744_3621)">
341
+ <rect x="43.2646" y="11.4336" width="3.72042" height="3.08021" fill="#84CFFF"/>
342
+ <rect x="43.3146" y="11.4836" width="3.62042" height="2.98021" stroke="white" stroke-opacity="0.1" stroke-width="0.1"/>
343
+ </g>
344
+ <g filter="url(#filter6_d_744_3621)">
345
+ <rect x="48.8447" y="11.4336" width="3.72042" height="3.08021" fill="#84CFFF"/>
346
+ <rect x="48.8947" y="11.4836" width="3.62042" height="2.98021" stroke="white" stroke-opacity="0.1" stroke-width="0.1"/>
347
+ </g>
348
+ <g filter="url(#filter7_d_744_3621)">
349
+ <rect x="34.2461" y="22.8467" width="3.72042" height="3.08021" fill="#F16F6F"/>
350
+ <rect x="34.2961" y="22.8967" width="3.62042" height="2.98021" stroke="white" stroke-opacity="0.1" stroke-width="0.1"/>
351
+ </g>
352
+ <g filter="url(#filter8_d_744_3621)">
353
+ <rect x="39.2061" y="22.8467" width="3.72042" height="3.08021" fill="#F16F6F"/>
354
+ <rect x="39.2561" y="22.8967" width="3.62042" height="2.98021" stroke="white" stroke-opacity="0.1" stroke-width="0.1"/>
355
+ </g>
356
+ <g filter="url(#filter9_d_744_3621)">
357
+ <rect x="44.167" y="22.8467" width="3.72042" height="3.08021" fill="#F16F6F"/>
358
+ <rect x="44.217" y="22.8967" width="3.62042" height="2.98021" stroke="white" stroke-opacity="0.1" stroke-width="0.1"/>
359
+ </g>
360
+ <g filter="url(#filter10_d_744_3621)">
361
+ <rect x="49.127" y="22.8467" width="3.72042" height="3.08021" fill="#F16F6F"/>
362
+ <rect x="49.177" y="22.8967" width="3.62042" height="2.98021" stroke="white" stroke-opacity="0.1" stroke-width="0.1"/>
363
+ </g>
364
+ <g filter="url(#filter11_d_744_3621)">
365
+ <rect x="49.127" y="26.543" width="3.72042" height="3.08021" fill="#F16F6F"/>
366
+ <rect x="49.177" y="26.593" width="3.62042" height="2.98021" stroke="white" stroke-opacity="0.1" stroke-width="0.1"/>
367
+ </g>
368
+ <g filter="url(#filter12_d_744_3621)">
369
+ <rect x="44.167" y="26.543" width="3.72042" height="3.08021" fill="#F16F6F"/>
370
+ <rect x="44.217" y="26.593" width="3.62042" height="2.98021" stroke="white" stroke-opacity="0.1" stroke-width="0.1"/>
371
+ </g>
372
+ <g filter="url(#filter13_d_744_3621)">
373
+ <rect x="39.2061" y="26.543" width="3.72042" height="3.08021" fill="#F16F6F"/>
374
+ <rect x="39.2561" y="26.593" width="3.62042" height="2.98021" stroke="white" stroke-opacity="0.1" stroke-width="0.1"/>
375
+ </g>
376
+ <g filter="url(#filter14_d_744_3621)">
377
+ <rect x="34.2461" y="26.543" width="3.72042" height="3.08021" fill="#F16F6F"/>
378
+ <rect x="34.2961" y="26.593" width="3.62042" height="2.98021" stroke="white" stroke-opacity="0.1" stroke-width="0.1"/>
379
+ </g>
380
+ <g filter="url(#filter15_d_744_3621)">
381
+ <rect x="18.4131" y="9.00781" width="3.72042" height="3.08021" fill="#9DD194"/>
382
+ <rect x="18.4631" y="9.05781" width="3.62042" height="2.98021" stroke="white" stroke-opacity="0.1" stroke-width="0.1"/>
383
+ </g>
384
+ <line x1="7.8916" y1="20.7553" x2="54.2721" y2="20.7553" stroke="#A7A7A7" stroke-width="0.3"/>
385
+ <line x1="30.9918" y1="8.72949" x2="30.9918" y2="32.2467" stroke="#A7A7A7" stroke-width="0.3"/>
386
+ <g filter="url(#filter16_d_744_3621)">
387
+ <rect x="8.62012" y="23.1807" width="3.72042" height="3.08021" fill="#FFC46B"/>
388
+ <rect x="8.67012" y="23.2307" width="3.62042" height="2.98021" stroke="white" stroke-opacity="0.1" stroke-width="0.1"/>
389
+ </g>
390
+ <g filter="url(#filter17_d_744_3621)">
391
+ <rect x="13.7139" y="25.6592" width="3.72042" height="3.08021" fill="#FFC46B"/>
392
+ <rect x="13.7639" y="25.7092" width="3.62042" height="2.98021" stroke="white" stroke-opacity="0.1" stroke-width="0.1"/>
393
+ </g>
394
+ <g filter="url(#filter18_d_744_3621)">
395
+ <rect x="18.7031" y="23.9033" width="3.72042" height="3.08021" fill="#FFC46B"/>
396
+ <rect x="18.7531" y="23.9533" width="3.62042" height="2.98021" stroke="white" stroke-opacity="0.1" stroke-width="0.1"/>
397
+ </g>
398
+ <g filter="url(#filter19_d_744_3621)">
399
+ <rect x="20.5752" y="28.8613" width="3.72042" height="3.08021" fill="#FFC46B"/>
400
+ <rect x="20.6252" y="28.9113" width="3.62042" height="2.98021" stroke="white" stroke-opacity="0.1" stroke-width="0.1"/>
401
+ </g>
402
+ </g>
403
+ <rect x="5.26465" y="5.32324" width="51.7059" height="29.8021" rx="2.5" stroke="#727272"/>
404
+ </g>
405
+ <defs>
406
+ <filter id="filter0_d_744_3621" x="0.764648" y="0.823242" width="60.7061" height="38.8018" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
407
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
408
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
409
+ <feOffset/>
410
+ <feGaussianBlur stdDeviation="2"/>
411
+ <feComposite in2="hardAlpha" operator="out"/>
412
+ <feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.6 0"/>
413
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_744_3621"/>
414
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_744_3621" result="shape"/>
415
+ </filter>
416
+ <filter id="filter1_d_744_3621" x="-10.6457" y="-10.1301" width="42.4116" height="41.3559" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
417
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
418
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
419
+ <feOffset/>
420
+ <feGaussianBlur stdDeviation="9.56896"/>
421
+ <feComposite in2="hardAlpha" operator="out"/>
422
+ <feColorMatrix type="matrix" values="0 0 0 0 0.258824 0 0 0 0 0.254902 0 0 0 0 0.286275 0 0 0 0.18 0"/>
423
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_744_3621"/>
424
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_744_3621" result="shape"/>
425
+ </filter>
426
+ <filter id="filter2_d_744_3621" x="-10.6457" y="-5.07445" width="42.4116" height="41.3559" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
427
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
428
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
429
+ <feOffset/>
430
+ <feGaussianBlur stdDeviation="9.56896"/>
431
+ <feComposite in2="hardAlpha" operator="out"/>
432
+ <feColorMatrix type="matrix" values="0 0 0 0 0.258824 0 0 0 0 0.254902 0 0 0 0 0.286275 0 0 0 0.18 0"/>
433
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_744_3621"/>
434
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_744_3621" result="shape"/>
435
+ </filter>
436
+ <filter id="filter3_d_744_3621" x="-5.68578" y="-10.1301" width="41.9966" height="41.3559" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
437
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
438
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
439
+ <feOffset/>
440
+ <feGaussianBlur stdDeviation="9.56896"/>
441
+ <feComposite in2="hardAlpha" operator="out"/>
442
+ <feColorMatrix type="matrix" values="0 0 0 0 0.258824 0 0 0 0 0.254902 0 0 0 0 0.286275 0 0 0 0.18 0"/>
443
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_744_3621"/>
444
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_744_3621" result="shape"/>
445
+ </filter>
446
+ <filter id="filter4_d_744_3621" x="18.5457" y="-7.70434" width="41.9966" height="41.3559" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
447
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
448
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
449
+ <feOffset/>
450
+ <feGaussianBlur stdDeviation="9.56896"/>
451
+ <feComposite in2="hardAlpha" operator="out"/>
452
+ <feColorMatrix type="matrix" values="0 0 0 0 0.258824 0 0 0 0 0.254902 0 0 0 0 0.286275 0 0 0 0.18 0"/>
453
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_744_3621"/>
454
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_744_3621" result="shape"/>
455
+ </filter>
456
+ <filter id="filter5_d_744_3621" x="24.1267" y="-7.70434" width="41.9966" height="41.3559" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
457
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
458
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
459
+ <feOffset/>
460
+ <feGaussianBlur stdDeviation="9.56896"/>
461
+ <feComposite in2="hardAlpha" operator="out"/>
462
+ <feColorMatrix type="matrix" values="0 0 0 0 0.258824 0 0 0 0 0.254902 0 0 0 0 0.286275 0 0 0 0.18 0"/>
463
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_744_3621"/>
464
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_744_3621" result="shape"/>
465
+ </filter>
466
+ <filter id="filter6_d_744_3621" x="29.7068" y="-7.70434" width="41.9966" height="41.3559" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
467
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
468
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
469
+ <feOffset/>
470
+ <feGaussianBlur stdDeviation="9.56896"/>
471
+ <feComposite in2="hardAlpha" operator="out"/>
472
+ <feColorMatrix type="matrix" values="0 0 0 0 0.258824 0 0 0 0 0.254902 0 0 0 0 0.286275 0 0 0 0.18 0"/>
473
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_744_3621"/>
474
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_744_3621" result="shape"/>
475
+ </filter>
476
+ <filter id="filter7_d_744_3621" x="15.1082" y="3.70875" width="41.9966" height="41.3559" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
477
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
478
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
479
+ <feOffset/>
480
+ <feGaussianBlur stdDeviation="9.56896"/>
481
+ <feComposite in2="hardAlpha" operator="out"/>
482
+ <feColorMatrix type="matrix" values="0 0 0 0 0.258824 0 0 0 0 0.254902 0 0 0 0 0.286275 0 0 0 0.18 0"/>
483
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_744_3621"/>
484
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_744_3621" result="shape"/>
485
+ </filter>
486
+ <filter id="filter8_d_744_3621" x="20.0681" y="3.70875" width="41.9966" height="41.3559" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
487
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
488
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
489
+ <feOffset/>
490
+ <feGaussianBlur stdDeviation="9.56896"/>
491
+ <feComposite in2="hardAlpha" operator="out"/>
492
+ <feColorMatrix type="matrix" values="0 0 0 0 0.258824 0 0 0 0 0.254902 0 0 0 0 0.286275 0 0 0 0.18 0"/>
493
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_744_3621"/>
494
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_744_3621" result="shape"/>
495
+ </filter>
496
+ <filter id="filter9_d_744_3621" x="25.0291" y="3.70875" width="41.9966" height="41.3559" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
497
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
498
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
499
+ <feOffset/>
500
+ <feGaussianBlur stdDeviation="9.56896"/>
501
+ <feComposite in2="hardAlpha" operator="out"/>
502
+ <feColorMatrix type="matrix" values="0 0 0 0 0.258824 0 0 0 0 0.254902 0 0 0 0 0.286275 0 0 0 0.18 0"/>
503
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_744_3621"/>
504
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_744_3621" result="shape"/>
505
+ </filter>
506
+ <filter id="filter10_d_744_3621" x="29.989" y="3.70875" width="41.9966" height="41.3559" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
507
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
508
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
509
+ <feOffset/>
510
+ <feGaussianBlur stdDeviation="9.56896"/>
511
+ <feComposite in2="hardAlpha" operator="out"/>
512
+ <feColorMatrix type="matrix" values="0 0 0 0 0.258824 0 0 0 0 0.254902 0 0 0 0 0.286275 0 0 0 0.18 0"/>
513
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_744_3621"/>
514
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_744_3621" result="shape"/>
515
+ </filter>
516
+ <filter id="filter11_d_744_3621" x="29.989" y="7.40504" width="41.9966" height="41.3559" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
517
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
518
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
519
+ <feOffset/>
520
+ <feGaussianBlur stdDeviation="9.56896"/>
521
+ <feComposite in2="hardAlpha" operator="out"/>
522
+ <feColorMatrix type="matrix" values="0 0 0 0 0.258824 0 0 0 0 0.254902 0 0 0 0 0.286275 0 0 0 0.18 0"/>
523
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_744_3621"/>
524
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_744_3621" result="shape"/>
525
+ </filter>
526
+ <filter id="filter12_d_744_3621" x="25.0291" y="7.40504" width="41.9966" height="41.3559" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
527
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
528
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
529
+ <feOffset/>
530
+ <feGaussianBlur stdDeviation="9.56896"/>
531
+ <feComposite in2="hardAlpha" operator="out"/>
532
+ <feColorMatrix type="matrix" values="0 0 0 0 0.258824 0 0 0 0 0.254902 0 0 0 0 0.286275 0 0 0 0.18 0"/>
533
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_744_3621"/>
534
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_744_3621" result="shape"/>
535
+ </filter>
536
+ <filter id="filter13_d_744_3621" x="20.0681" y="7.40504" width="41.9966" height="41.3559" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
537
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
538
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
539
+ <feOffset/>
540
+ <feGaussianBlur stdDeviation="9.56896"/>
541
+ <feComposite in2="hardAlpha" operator="out"/>
542
+ <feColorMatrix type="matrix" values="0 0 0 0 0.258824 0 0 0 0 0.254902 0 0 0 0 0.286275 0 0 0 0.18 0"/>
543
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_744_3621"/>
544
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_744_3621" result="shape"/>
545
+ </filter>
546
+ <filter id="filter14_d_744_3621" x="15.1082" y="7.40504" width="41.9966" height="41.3559" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
547
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
548
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
549
+ <feOffset/>
550
+ <feGaussianBlur stdDeviation="9.56896"/>
551
+ <feComposite in2="hardAlpha" operator="out"/>
552
+ <feColorMatrix type="matrix" values="0 0 0 0 0.258824 0 0 0 0 0.254902 0 0 0 0 0.286275 0 0 0 0.18 0"/>
553
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_744_3621"/>
554
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_744_3621" result="shape"/>
555
+ </filter>
556
+ <filter id="filter15_d_744_3621" x="-0.724844" y="-10.1301" width="41.9966" height="41.3559" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
557
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
558
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
559
+ <feOffset/>
560
+ <feGaussianBlur stdDeviation="9.56896"/>
561
+ <feComposite in2="hardAlpha" operator="out"/>
562
+ <feColorMatrix type="matrix" values="0 0 0 0 0.258824 0 0 0 0 0.254902 0 0 0 0 0.286275 0 0 0 0.18 0"/>
563
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_744_3621"/>
564
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_744_3621" result="shape"/>
565
+ </filter>
566
+ <filter id="filter16_d_744_3621" x="-10.5178" y="4.04273" width="41.9966" height="41.3559" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
567
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
568
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
569
+ <feOffset/>
570
+ <feGaussianBlur stdDeviation="9.56896"/>
571
+ <feComposite in2="hardAlpha" operator="out"/>
572
+ <feColorMatrix type="matrix" values="0 0 0 0 0.258824 0 0 0 0 0.254902 0 0 0 0 0.286275 0 0 0 0.18 0"/>
573
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_744_3621"/>
574
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_744_3621" result="shape"/>
575
+ </filter>
576
+ <filter id="filter17_d_744_3621" x="-5.42406" y="6.52125" width="41.9966" height="41.3559" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
577
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
578
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
579
+ <feOffset/>
580
+ <feGaussianBlur stdDeviation="9.56896"/>
581
+ <feComposite in2="hardAlpha" operator="out"/>
582
+ <feColorMatrix type="matrix" values="0 0 0 0 0.258824 0 0 0 0 0.254902 0 0 0 0 0.286275 0 0 0 0.18 0"/>
583
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_744_3621"/>
584
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_744_3621" result="shape"/>
585
+ </filter>
586
+ <filter id="filter18_d_744_3621" x="-0.434805" y="4.76539" width="41.9966" height="41.3559" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
587
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
588
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
589
+ <feOffset/>
590
+ <feGaussianBlur stdDeviation="9.56896"/>
591
+ <feComposite in2="hardAlpha" operator="out"/>
592
+ <feColorMatrix type="matrix" values="0 0 0 0 0.258824 0 0 0 0 0.254902 0 0 0 0 0.286275 0 0 0 0.18 0"/>
593
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_744_3621"/>
594
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_744_3621" result="shape"/>
595
+ </filter>
596
+ <filter id="filter19_d_744_3621" x="1.43727" y="9.7234" width="41.9966" height="41.3559" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
597
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
598
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
599
+ <feOffset/>
600
+ <feGaussianBlur stdDeviation="9.56896"/>
601
+ <feComposite in2="hardAlpha" operator="out"/>
602
+ <feColorMatrix type="matrix" values="0 0 0 0 0.258824 0 0 0 0 0.254902 0 0 0 0 0.286275 0 0 0 0.18 0"/>
603
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_744_3621"/>
604
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_744_3621" result="shape"/>
605
+ </filter>
606
+ <clipPath id="clip0_744_3621">
607
+ <rect x="4.76465" y="4.82324" width="52.7059" height="30.8021" rx="3" fill="white"/>
608
+ </clipPath>
609
+ </defs>
610
+ </svg>
611
+ `,
612
+ };
613
+ export const TemplateCard2 = {
614
+ light: svg`<svg width="55" height="36" viewBox="0 0 55 36" fill="none" xmlns="http://www.w3.org/2000/svg">
615
+ <g filter="url(#filter0_d_744_3580)">
616
+ <rect width="46.1176" height="27.128" rx="3" transform="matrix(1 0 0 -1 4.5293 31.2461)" fill="white"/>
617
+ <rect x="0.3" y="-0.3" width="45.5176" height="26.528" rx="2.7" transform="matrix(1 0 0 -1 4.5293 30.6461)" stroke="#E3E2E4" stroke-width="0.6"/>
618
+ <line y1="-0.109324" x2="3.25536" y2="-0.109324" transform="matrix(1 0 0 -1 13.21 13.8838)" stroke="#6B6B6B" stroke-width="0.218649"/>
619
+ <line y1="-0.109324" x2="3.25536" y2="-0.109324" transform="matrix(1 0 0 -1 13.21 13.8838)" stroke="#6B6B6B" stroke-width="0.218649"/>
620
+ <path d="M22.4336 14.4268H24.1332V18.8259V20.9374L26.2315 20.9375" stroke="#6B6B6B" stroke-width="0.218649"/>
621
+ <path d="M32.7422 20.9373H39.3551V24.1926V25.8203L41.4232 25.8203" stroke="#6B6B6B" stroke-width="0.218649"/>
622
+ <path d="M20.2637 14.427H23.9576L23.9579 11.2328V9.54401L26.2318 9.54395" stroke="#6B6B6B" stroke-width="0.218649"/>
623
+ <path d="M38.168 20.9377H39.6247V17.6824V16.0547L41.4233 16.0547" stroke="#6B6B6B" stroke-width="0.218649"/>
624
+ <rect width="6.51073" height="3.79792" rx="0.728829" transform="matrix(1 0 0 -1 26.2314 11.7139)" fill="#9DD194"/>
625
+ <rect x="0.0364415" y="-0.0364415" width="6.43784" height="3.72504" rx="0.692388" transform="matrix(1 0 0 -1 26.2314 11.641)" stroke="black" stroke-opacity="0.1" stroke-width="0.0728829"/>
626
+ <rect width="7.05329" height="3.25536" rx="0.728829" transform="matrix(1 0 0 -1 6.15723 16.0547)" fill="#FFDE6B"/>
627
+ <rect x="0.0364415" y="-0.0364415" width="6.9804" height="3.18248" rx="0.692388" transform="matrix(1 0 0 -1 6.15723 15.9818)" stroke="black" stroke-opacity="0.1" stroke-width="0.0728829"/>
628
+ <rect width="3.37861" height="3.37861" transform="matrix(0.707107 0.707107 0.707107 -0.707107 34.2441 20.8691)" fill="#937EE7"/>
629
+ <rect x="0.051536" width="3.30572" height="3.30572" transform="matrix(0.707107 0.707107 0.707107 -0.707107 34.2592 20.8327)" stroke="black" stroke-opacity="0.1" stroke-width="0.0728829"/>
630
+ <rect width="3.37861" height="3.37861" transform="matrix(0.707107 0.707107 0.707107 -0.707107 16.1426 14.4902)" fill="#937EE7"/>
631
+ <rect x="0.051536" width="3.30572" height="3.30572" transform="matrix(0.707107 0.707107 0.707107 -0.707107 16.1577 14.4538)" stroke="black" stroke-opacity="0.1" stroke-width="0.0728829"/>
632
+ <rect width="6.51073" height="3.79792" rx="0.728829" transform="matrix(1 0 0 -1 26.2314 22.5654)" fill="#FFDE6B"/>
633
+ <rect x="0.0364415" y="-0.0364415" width="6.43784" height="3.72504" rx="0.692388" transform="matrix(1 0 0 -1 26.2314 22.4925)" stroke="black" stroke-opacity="0.1" stroke-width="0.0728829"/>
634
+ <rect width="7.05329" height="3.25536" rx="0.728829" transform="matrix(1 0 0 -1 41.4238 26.9053)" fill="#937EE7"/>
635
+ <rect x="0.0364415" y="-0.0364415" width="6.9804" height="3.18248" rx="0.692388" transform="matrix(1 0 0 -1 41.4238 26.8324)" stroke="black" stroke-opacity="0.1" stroke-width="0.0728829"/>
636
+ <rect width="7.05329" height="3.79792" rx="0.728829" transform="matrix(1 0 0 -1 41.4238 18.2246)" fill="#937EE7"/>
637
+ <rect x="0.0364415" y="-0.0364415" width="6.9804" height="3.72504" rx="0.692388" transform="matrix(1 0 0 -1 41.4238 18.1517)" stroke="black" stroke-opacity="0.1" stroke-width="0.0728829"/>
638
+ </g>
639
+ <defs>
640
+ <filter id="filter0_d_744_3580" x="0.529297" y="0.118164" width="54.1172" height="35.1279" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
641
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
642
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
643
+ <feOffset/>
644
+ <feGaussianBlur stdDeviation="2"/>
645
+ <feComposite in2="hardAlpha" operator="out"/>
646
+ <feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.12 0"/>
647
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_744_3580"/>
648
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_744_3580" result="shape"/>
649
+ </filter>
650
+ </defs>
651
+ </svg>
652
+ `,
653
+ dark: svg`<svg width="55" height="36" viewBox="0 0 55 36" fill="none" xmlns="http://www.w3.org/2000/svg">
654
+ <g filter="url(#filter0_d_744_3647)">
655
+ <rect width="46.1176" height="27.128" rx="3" transform="matrix(1 0 0 -1 4.5293 31.2461)" fill="#1B1B1B"/>
656
+ <rect x="0.5" y="-0.5" width="45.1176" height="26.128" rx="2.5" transform="matrix(1 0 0 -1 4.5293 30.2461)" stroke="#727272"/>
657
+ <line y1="-0.109324" x2="3.25536" y2="-0.109324" transform="matrix(1 0 0 -1 13.21 13.8838)" stroke="#6B6B6B" stroke-width="0.218649"/>
658
+ <line y1="-0.109324" x2="3.25536" y2="-0.109324" transform="matrix(1 0 0 -1 13.21 13.8838)" stroke="#6B6B6B" stroke-width="0.218649"/>
659
+ <path d="M22.4336 14.4268H24.1332V18.8259V20.9374L26.2315 20.9375" stroke="#6B6B6B" stroke-width="0.218649"/>
660
+ <path d="M32.7422 20.9373H39.3551V24.1926V25.8203L41.4232 25.8203" stroke="#6B6B6B" stroke-width="0.218649"/>
661
+ <path d="M20.2637 14.427H23.9576L23.9579 11.2328V9.54401L26.2318 9.54395" stroke="#6B6B6B" stroke-width="0.218649"/>
662
+ <path d="M38.168 20.9377H39.6247V17.6824V16.0547L41.4233 16.0547" stroke="#6B6B6B" stroke-width="0.218649"/>
663
+ <rect width="6.51073" height="3.79792" rx="0.728829" transform="matrix(1 0 0 -1 26.2314 11.7139)" fill="#9DD194"/>
664
+ <rect x="0.0364415" y="-0.0364415" width="6.43784" height="3.72504" rx="0.692388" transform="matrix(1 0 0 -1 26.2314 11.641)" stroke="white" stroke-opacity="0.1" stroke-width="0.0728829"/>
665
+ <rect width="7.05329" height="3.25536" rx="0.728829" transform="matrix(1 0 0 -1 6.15723 16.0547)" fill="#FFD338"/>
666
+ <rect x="0.0364415" y="-0.0364415" width="6.9804" height="3.18248" rx="0.692388" transform="matrix(1 0 0 -1 6.15723 15.9818)" stroke="white" stroke-opacity="0.1" stroke-width="0.0728829"/>
667
+ <rect width="3.37861" height="3.37861" transform="matrix(0.707107 0.707107 0.707107 -0.707107 34.2441 20.8691)" fill="#937EE7"/>
668
+ <rect x="0.051536" width="3.30572" height="3.30572" transform="matrix(0.707107 0.707107 0.707107 -0.707107 34.2592 20.8327)" stroke="white" stroke-opacity="0.1" stroke-width="0.0728829"/>
669
+ <rect width="3.37861" height="3.37861" transform="matrix(0.707107 0.707107 0.707107 -0.707107 16.1426 14.4902)" fill="#937EE7"/>
670
+ <rect x="0.051536" width="3.30572" height="3.30572" transform="matrix(0.707107 0.707107 0.707107 -0.707107 16.1577 14.4538)" stroke="white" stroke-opacity="0.1" stroke-width="0.0728829"/>
671
+ <rect width="6.51073" height="3.79792" rx="0.728829" transform="matrix(1 0 0 -1 26.2314 22.5654)" fill="#FFD338"/>
672
+ <rect x="0.0364415" y="-0.0364415" width="6.43784" height="3.72504" rx="0.692388" transform="matrix(1 0 0 -1 26.2314 22.4925)" stroke="white" stroke-opacity="0.1" stroke-width="0.0728829"/>
673
+ <rect width="7.05329" height="3.25536" rx="0.728829" transform="matrix(1 0 0 -1 41.4238 26.9053)" fill="#937EE7"/>
674
+ <rect x="0.0364415" y="-0.0364415" width="6.9804" height="3.18248" rx="0.692388" transform="matrix(1 0 0 -1 41.4238 26.8324)" stroke="white" stroke-opacity="0.1" stroke-width="0.0728829"/>
675
+ <rect width="7.05329" height="3.79792" rx="0.728829" transform="matrix(1 0 0 -1 41.4238 18.2246)" fill="#937EE7"/>
676
+ <rect x="0.0364415" y="-0.0364415" width="6.9804" height="3.72504" rx="0.692388" transform="matrix(1 0 0 -1 41.4238 18.1517)" stroke="white" stroke-opacity="0.1" stroke-width="0.0728829"/>
677
+ </g>
678
+ <defs>
679
+ <filter id="filter0_d_744_3647" x="0.529297" y="0.118164" width="54.1172" height="35.1279" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
680
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
681
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
682
+ <feOffset/>
683
+ <feGaussianBlur stdDeviation="2"/>
684
+ <feComposite in2="hardAlpha" operator="out"/>
685
+ <feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.6 0"/>
686
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_744_3647"/>
687
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_744_3647" result="shape"/>
688
+ </filter>
689
+ </defs>
690
+ </svg>
691
+ `,
692
+ };
693
+ export const TemplateCard3 = {
694
+ light: svg`<svg width="80" height="51" viewBox="0 0 80 51" fill="none" xmlns="http://www.w3.org/2000/svg">
695
+ <g filter="url(#filter0_d_744_3594)">
696
+ <g clip-path="url(#clip0_744_3594)">
697
+ <rect x="4.29395" y="4" width="71.5294" height="42.0761" rx="4" fill="white"/>
698
+ <rect x="7.66016" y="9.89062" width="5.89066" height="1.68304" rx="0.841522" fill="#FFEACA"/>
699
+ <rect x="7.66016" y="13.2568" width="20.1965" height="33.6609" rx="1" fill="#FFEACA"/>
700
+ <g filter="url(#filter1_d_744_3594)">
701
+ <rect x="8.50195" y="15.7812" width="5.04914" height="4.20761" fill="#FFDE6B"/>
702
+ <rect x="8.55195" y="15.8313" width="4.94914" height="4.10761" stroke="black" stroke-opacity="0.1" stroke-width="0.1"/>
703
+ </g>
704
+ <g filter="url(#filter2_d_744_3594)">
705
+ <rect x="8.50195" y="22.5137" width="5.04914" height="4.20761" fill="#FFDE6B"/>
706
+ <rect x="8.55195" y="22.5637" width="4.94914" height="4.10761" stroke="black" stroke-opacity="0.1" stroke-width="0.1"/>
707
+ </g>
708
+ <g filter="url(#filter3_d_744_3594)">
709
+ <rect x="8.50195" y="28.4043" width="5.04914" height="4.20761" fill="#FFDE6B"/>
710
+ <rect x="8.55195" y="28.4543" width="4.94914" height="4.10761" stroke="black" stroke-opacity="0.1" stroke-width="0.1"/>
711
+ </g>
712
+ <g filter="url(#filter4_d_744_3594)">
713
+ <rect x="15.2334" y="15.7812" width="5.04914" height="4.20761" fill="#FFDE6B"/>
714
+ <rect x="15.2834" y="15.8313" width="4.94914" height="4.10761" stroke="black" stroke-opacity="0.1" stroke-width="0.1"/>
715
+ </g>
716
+ <g filter="url(#filter5_d_744_3594)">
717
+ <rect x="15.2334" y="22.5137" width="5.04914" height="4.20761" fill="#FFDE6B"/>
718
+ <rect x="15.2834" y="22.5637" width="4.94914" height="4.10761" stroke="black" stroke-opacity="0.1" stroke-width="0.1"/>
719
+ </g>
720
+ <g filter="url(#filter6_d_744_3594)">
721
+ <rect x="15.2334" y="28.4043" width="5.04914" height="4.20761" fill="#9DD194"/>
722
+ <rect x="15.2834" y="28.4543" width="4.94914" height="4.10761" stroke="black" stroke-opacity="0.1" stroke-width="0.1"/>
723
+ </g>
724
+ <g filter="url(#filter7_d_744_3594)">
725
+ <rect x="21.9658" y="15.7812" width="5.04914" height="4.20761" fill="#FFDE6B"/>
726
+ <rect x="22.0158" y="15.8313" width="4.94914" height="4.10761" stroke="black" stroke-opacity="0.1" stroke-width="0.1"/>
727
+ </g>
728
+ <g filter="url(#filter8_d_744_3594)">
729
+ <rect x="21.9658" y="22.5137" width="5.04914" height="4.20761" fill="#FFDE6B"/>
730
+ <rect x="22.0158" y="22.5637" width="4.94914" height="4.10761" stroke="black" stroke-opacity="0.1" stroke-width="0.1"/>
731
+ </g>
732
+ <g filter="url(#filter9_d_744_3594)">
733
+ <rect x="21.9658" y="28.4043" width="5.04914" height="4.20761" fill="#F16F6F"/>
734
+ <rect x="22.0158" y="28.4543" width="4.94914" height="4.10761" stroke="black" stroke-opacity="0.1" stroke-width="0.1"/>
735
+ </g>
736
+ <rect x="30.3809" y="9.89062" width="5.89066" height="1.68304" rx="0.841522" fill="#E1EFFF"/>
737
+ <rect x="30.3809" y="13.2568" width="20.1965" height="33.6609" rx="1" fill="#E1EFFF"/>
738
+ <g filter="url(#filter10_d_744_3594)">
739
+ <rect x="31.2227" y="15.7812" width="5.04914" height="4.20761" fill="#B8E3FF"/>
740
+ <rect x="31.2727" y="15.8313" width="4.94914" height="4.10761" stroke="black" stroke-opacity="0.1" stroke-width="0.1"/>
741
+ </g>
742
+ <g filter="url(#filter11_d_744_3594)">
743
+ <rect x="31.2227" y="21.6719" width="5.04914" height="4.20761" fill="#B8E3FF"/>
744
+ <rect x="31.2727" y="21.7219" width="4.94914" height="4.10761" stroke="black" stroke-opacity="0.1" stroke-width="0.1"/>
745
+ </g>
746
+ <g filter="url(#filter12_d_744_3594)">
747
+ <rect x="37.9551" y="15.7812" width="5.04914" height="4.20761" fill="#B8E3FF"/>
748
+ <rect x="38.0051" y="15.8313" width="4.94914" height="4.10761" stroke="black" stroke-opacity="0.1" stroke-width="0.1"/>
749
+ </g>
750
+ <g filter="url(#filter13_d_744_3594)">
751
+ <rect x="37.9551" y="21.6719" width="5.04914" height="4.20761" fill="#FFC46B"/>
752
+ <rect x="38.0051" y="21.7219" width="4.94914" height="4.10761" stroke="black" stroke-opacity="0.1" stroke-width="0.1"/>
753
+ </g>
754
+ <g filter="url(#filter14_d_744_3594)">
755
+ <rect x="44.6875" y="15.7812" width="5.04914" height="4.20761" fill="#B8E3FF"/>
756
+ <rect x="44.7375" y="15.8313" width="4.94914" height="4.10761" stroke="black" stroke-opacity="0.1" stroke-width="0.1"/>
757
+ </g>
758
+ <rect x="53.1025" y="9.89062" width="5.89066" height="1.68304" rx="0.841522" fill="#DFF4E8"/>
759
+ <rect x="53.1025" y="13.2568" width="20.1965" height="33.6609" rx="1" fill="#DFF4E8"/>
760
+ <g filter="url(#filter15_d_744_3594)">
761
+ <rect x="53.9434" y="15.7812" width="5.04914" height="4.20761" fill="#9DD194"/>
762
+ <rect x="53.9934" y="15.8313" width="4.94914" height="4.10761" stroke="black" stroke-opacity="0.1" stroke-width="0.1"/>
763
+ </g>
764
+ <g filter="url(#filter16_d_744_3594)">
765
+ <rect x="53.9434" y="21.6719" width="5.04914" height="4.20761" fill="#9DD194"/>
766
+ <rect x="53.9934" y="21.7219" width="4.94914" height="4.10761" stroke="black" stroke-opacity="0.1" stroke-width="0.1"/>
767
+ </g>
768
+ <g filter="url(#filter17_d_744_3594)">
769
+ <rect x="60.6758" y="15.7812" width="5.04914" height="4.20761" fill="#9DD194"/>
770
+ <rect x="60.7258" y="15.8313" width="4.94914" height="4.10761" stroke="black" stroke-opacity="0.1" stroke-width="0.1"/>
771
+ </g>
772
+ <g filter="url(#filter18_d_744_3594)">
773
+ <rect x="60.6758" y="21.6719" width="5.04914" height="4.20761" fill="#FFC46B"/>
774
+ <rect x="60.7258" y="21.7219" width="4.94914" height="4.10761" stroke="black" stroke-opacity="0.1" stroke-width="0.1"/>
775
+ </g>
776
+ <g filter="url(#filter19_d_744_3594)">
777
+ <rect x="67.4082" y="15.7812" width="5.04914" height="4.20761" fill="#9DD194"/>
778
+ <rect x="67.4582" y="15.8313" width="4.94914" height="4.10761" stroke="black" stroke-opacity="0.1" stroke-width="0.1"/>
779
+ </g>
780
+ </g>
781
+ <rect x="4.59395" y="4.3" width="70.9294" height="41.4761" rx="3.7" stroke="#E3E2E4" stroke-width="0.6"/>
782
+ </g>
783
+ <defs>
784
+ <filter id="filter0_d_744_3594" x="0.293945" y="0" width="79.5293" height="50.0762" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
785
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
786
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
787
+ <feOffset/>
788
+ <feGaussianBlur stdDeviation="2"/>
789
+ <feComposite in2="hardAlpha" operator="out"/>
790
+ <feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"/>
791
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_744_3594"/>
792
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_744_3594" result="shape"/>
793
+ </filter>
794
+ <filter id="filter1_d_744_3594" x="-10.636" y="-3.35668" width="43.3247" height="42.4839" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
795
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
796
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
797
+ <feOffset/>
798
+ <feGaussianBlur stdDeviation="9.56896"/>
799
+ <feComposite in2="hardAlpha" operator="out"/>
800
+ <feColorMatrix type="matrix" values="0 0 0 0 0.258824 0 0 0 0 0.254902 0 0 0 0 0.286275 0 0 0 0.18 0"/>
801
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_744_3594"/>
802
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_744_3594" result="shape"/>
803
+ </filter>
804
+ <filter id="filter2_d_744_3594" x="-10.636" y="3.37574" width="43.3247" height="42.4839" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
805
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
806
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
807
+ <feOffset/>
808
+ <feGaussianBlur stdDeviation="9.56896"/>
809
+ <feComposite in2="hardAlpha" operator="out"/>
810
+ <feColorMatrix type="matrix" values="0 0 0 0 0.258824 0 0 0 0 0.254902 0 0 0 0 0.286275 0 0 0 0.18 0"/>
811
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_744_3594"/>
812
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_744_3594" result="shape"/>
813
+ </filter>
814
+ <filter id="filter3_d_744_3594" x="-10.636" y="9.26637" width="43.3247" height="42.4839" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
815
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
816
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
817
+ <feOffset/>
818
+ <feGaussianBlur stdDeviation="9.56896"/>
819
+ <feComposite in2="hardAlpha" operator="out"/>
820
+ <feColorMatrix type="matrix" values="0 0 0 0 0.258824 0 0 0 0 0.254902 0 0 0 0 0.286275 0 0 0 0.18 0"/>
821
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_744_3594"/>
822
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_744_3594" result="shape"/>
823
+ </filter>
824
+ <filter id="filter4_d_744_3594" x="-3.90453" y="-3.35668" width="43.3247" height="42.4839" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
825
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
826
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
827
+ <feOffset/>
828
+ <feGaussianBlur stdDeviation="9.56896"/>
829
+ <feComposite in2="hardAlpha" operator="out"/>
830
+ <feColorMatrix type="matrix" values="0 0 0 0 0.258824 0 0 0 0 0.254902 0 0 0 0 0.286275 0 0 0 0.18 0"/>
831
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_744_3594"/>
832
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_744_3594" result="shape"/>
833
+ </filter>
834
+ <filter id="filter5_d_744_3594" x="-3.90453" y="3.37574" width="43.3247" height="42.4839" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
835
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
836
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
837
+ <feOffset/>
838
+ <feGaussianBlur stdDeviation="9.56896"/>
839
+ <feComposite in2="hardAlpha" operator="out"/>
840
+ <feColorMatrix type="matrix" values="0 0 0 0 0.258824 0 0 0 0 0.254902 0 0 0 0 0.286275 0 0 0 0.18 0"/>
841
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_744_3594"/>
842
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_744_3594" result="shape"/>
843
+ </filter>
844
+ <filter id="filter6_d_744_3594" x="-3.90453" y="9.26637" width="43.3247" height="42.4839" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
845
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
846
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
847
+ <feOffset/>
848
+ <feGaussianBlur stdDeviation="9.56896"/>
849
+ <feComposite in2="hardAlpha" operator="out"/>
850
+ <feColorMatrix type="matrix" values="0 0 0 0 0.258824 0 0 0 0 0.254902 0 0 0 0 0.286275 0 0 0 0.18 0"/>
851
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_744_3594"/>
852
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_744_3594" result="shape"/>
853
+ </filter>
854
+ <filter id="filter7_d_744_3594" x="2.82789" y="-3.35668" width="43.3247" height="42.4839" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
855
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
856
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
857
+ <feOffset/>
858
+ <feGaussianBlur stdDeviation="9.56896"/>
859
+ <feComposite in2="hardAlpha" operator="out"/>
860
+ <feColorMatrix type="matrix" values="0 0 0 0 0.258824 0 0 0 0 0.254902 0 0 0 0 0.286275 0 0 0 0.18 0"/>
861
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_744_3594"/>
862
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_744_3594" result="shape"/>
863
+ </filter>
864
+ <filter id="filter8_d_744_3594" x="2.82789" y="3.37574" width="43.3247" height="42.4839" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
865
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
866
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
867
+ <feOffset/>
868
+ <feGaussianBlur stdDeviation="9.56896"/>
869
+ <feComposite in2="hardAlpha" operator="out"/>
870
+ <feColorMatrix type="matrix" values="0 0 0 0 0.258824 0 0 0 0 0.254902 0 0 0 0 0.286275 0 0 0 0.18 0"/>
871
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_744_3594"/>
872
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_744_3594" result="shape"/>
873
+ </filter>
874
+ <filter id="filter9_d_744_3594" x="2.82789" y="9.26637" width="43.3247" height="42.4839" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
875
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
876
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
877
+ <feOffset/>
878
+ <feGaussianBlur stdDeviation="9.56896"/>
879
+ <feComposite in2="hardAlpha" operator="out"/>
880
+ <feColorMatrix type="matrix" values="0 0 0 0 0.258824 0 0 0 0 0.254902 0 0 0 0 0.286275 0 0 0 0.18 0"/>
881
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_744_3594"/>
882
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_744_3594" result="shape"/>
883
+ </filter>
884
+ <filter id="filter10_d_744_3594" x="12.0847" y="-3.35668" width="43.3247" height="42.4839" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
885
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
886
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
887
+ <feOffset/>
888
+ <feGaussianBlur stdDeviation="9.56896"/>
889
+ <feComposite in2="hardAlpha" operator="out"/>
890
+ <feColorMatrix type="matrix" values="0 0 0 0 0.258824 0 0 0 0 0.254902 0 0 0 0 0.286275 0 0 0 0.18 0"/>
891
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_744_3594"/>
892
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_744_3594" result="shape"/>
893
+ </filter>
894
+ <filter id="filter11_d_744_3594" x="12.0847" y="2.53395" width="43.3247" height="42.4839" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
895
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
896
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
897
+ <feOffset/>
898
+ <feGaussianBlur stdDeviation="9.56896"/>
899
+ <feComposite in2="hardAlpha" operator="out"/>
900
+ <feColorMatrix type="matrix" values="0 0 0 0 0.258824 0 0 0 0 0.254902 0 0 0 0 0.286275 0 0 0 0.18 0"/>
901
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_744_3594"/>
902
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_744_3594" result="shape"/>
903
+ </filter>
904
+ <filter id="filter12_d_744_3594" x="18.8171" y="-3.35668" width="43.3247" height="42.4839" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
905
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
906
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
907
+ <feOffset/>
908
+ <feGaussianBlur stdDeviation="9.56896"/>
909
+ <feComposite in2="hardAlpha" operator="out"/>
910
+ <feColorMatrix type="matrix" values="0 0 0 0 0.258824 0 0 0 0 0.254902 0 0 0 0 0.286275 0 0 0 0.18 0"/>
911
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_744_3594"/>
912
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_744_3594" result="shape"/>
913
+ </filter>
914
+ <filter id="filter13_d_744_3594" x="18.8171" y="2.53395" width="43.3247" height="42.4839" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
915
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
916
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
917
+ <feOffset/>
918
+ <feGaussianBlur stdDeviation="9.56896"/>
919
+ <feComposite in2="hardAlpha" operator="out"/>
920
+ <feColorMatrix type="matrix" values="0 0 0 0 0.258824 0 0 0 0 0.254902 0 0 0 0 0.286275 0 0 0 0.18 0"/>
921
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_744_3594"/>
922
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_744_3594" result="shape"/>
923
+ </filter>
924
+ <filter id="filter14_d_744_3594" x="25.5496" y="-3.35668" width="43.3247" height="42.4839" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
925
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
926
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
927
+ <feOffset/>
928
+ <feGaussianBlur stdDeviation="9.56896"/>
929
+ <feComposite in2="hardAlpha" operator="out"/>
930
+ <feColorMatrix type="matrix" values="0 0 0 0 0.258824 0 0 0 0 0.254902 0 0 0 0 0.286275 0 0 0 0.18 0"/>
931
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_744_3594"/>
932
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_744_3594" result="shape"/>
933
+ </filter>
934
+ <filter id="filter15_d_744_3594" x="34.8054" y="-3.35668" width="43.3247" height="42.4839" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
935
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
936
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
937
+ <feOffset/>
938
+ <feGaussianBlur stdDeviation="9.56896"/>
939
+ <feComposite in2="hardAlpha" operator="out"/>
940
+ <feColorMatrix type="matrix" values="0 0 0 0 0.258824 0 0 0 0 0.254902 0 0 0 0 0.286275 0 0 0 0.18 0"/>
941
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_744_3594"/>
942
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_744_3594" result="shape"/>
943
+ </filter>
944
+ <filter id="filter16_d_744_3594" x="34.8054" y="2.53395" width="43.3247" height="42.4839" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
945
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
946
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
947
+ <feOffset/>
948
+ <feGaussianBlur stdDeviation="9.56896"/>
949
+ <feComposite in2="hardAlpha" operator="out"/>
950
+ <feColorMatrix type="matrix" values="0 0 0 0 0.258824 0 0 0 0 0.254902 0 0 0 0 0.286275 0 0 0 0.18 0"/>
951
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_744_3594"/>
952
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_744_3594" result="shape"/>
953
+ </filter>
954
+ <filter id="filter17_d_744_3594" x="41.5379" y="-3.35668" width="43.3247" height="42.4839" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
955
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
956
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
957
+ <feOffset/>
958
+ <feGaussianBlur stdDeviation="9.56896"/>
959
+ <feComposite in2="hardAlpha" operator="out"/>
960
+ <feColorMatrix type="matrix" values="0 0 0 0 0.258824 0 0 0 0 0.254902 0 0 0 0 0.286275 0 0 0 0.18 0"/>
961
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_744_3594"/>
962
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_744_3594" result="shape"/>
963
+ </filter>
964
+ <filter id="filter18_d_744_3594" x="41.5379" y="2.53395" width="43.3247" height="42.4839" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
965
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
966
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
967
+ <feOffset/>
968
+ <feGaussianBlur stdDeviation="9.56896"/>
969
+ <feComposite in2="hardAlpha" operator="out"/>
970
+ <feColorMatrix type="matrix" values="0 0 0 0 0.258824 0 0 0 0 0.254902 0 0 0 0 0.286275 0 0 0 0.18 0"/>
971
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_744_3594"/>
972
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_744_3594" result="shape"/>
973
+ </filter>
974
+ <filter id="filter19_d_744_3594" x="48.2703" y="-3.35668" width="43.3247" height="42.4839" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
975
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
976
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
977
+ <feOffset/>
978
+ <feGaussianBlur stdDeviation="9.56896"/>
979
+ <feComposite in2="hardAlpha" operator="out"/>
980
+ <feColorMatrix type="matrix" values="0 0 0 0 0.258824 0 0 0 0 0.254902 0 0 0 0 0.286275 0 0 0 0.18 0"/>
981
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_744_3594"/>
982
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_744_3594" result="shape"/>
983
+ </filter>
984
+ <clipPath id="clip0_744_3594">
985
+ <rect x="4.29395" y="4" width="71.5294" height="42.0761" rx="4" fill="white"/>
986
+ </clipPath>
987
+ </defs>
988
+ </svg>
989
+ `,
990
+ dark: svg`<svg width="80" height="51" viewBox="0 0 80 51" fill="none" xmlns="http://www.w3.org/2000/svg">
991
+ <g filter="url(#filter0_d_744_3661)">
992
+ <g clip-path="url(#clip0_744_3661)">
993
+ <rect x="4.29395" y="4" width="71.5294" height="42.0761" rx="4" fill="#1A1A1A"/>
994
+ <rect x="7.66016" y="9.89062" width="5.89066" height="1.68304" rx="0.841522" fill="#B9812E"/>
995
+ <rect x="7.66016" y="13.2568" width="20.1965" height="30" rx="1" fill="#B9812E"/>
996
+ <g filter="url(#filter1_d_744_3661)">
997
+ <rect x="8.50195" y="15.7812" width="5.04914" height="4.20761" fill="#FFDE6B"/>
998
+ <rect x="8.55195" y="15.8313" width="4.94914" height="4.10761" stroke="white" stroke-opacity="0.1" stroke-width="0.1"/>
999
+ </g>
1000
+ <g filter="url(#filter2_d_744_3661)">
1001
+ <rect x="8.50195" y="22.5137" width="5.04914" height="4.20761" fill="#FFDE6B"/>
1002
+ <rect x="8.55195" y="22.5637" width="4.94914" height="4.10761" stroke="white" stroke-opacity="0.1" stroke-width="0.1"/>
1003
+ </g>
1004
+ <g filter="url(#filter3_d_744_3661)">
1005
+ <rect x="8.50195" y="28.4043" width="5.04914" height="4.20761" fill="#FFDE6B"/>
1006
+ <rect x="8.55195" y="28.4543" width="4.94914" height="4.10761" stroke="white" stroke-opacity="0.1" stroke-width="0.1"/>
1007
+ </g>
1008
+ <g filter="url(#filter4_d_744_3661)">
1009
+ <rect x="15.2334" y="15.7812" width="5.04914" height="4.20761" fill="#FFDE6B"/>
1010
+ <rect x="15.2834" y="15.8313" width="4.94914" height="4.10761" stroke="white" stroke-opacity="0.1" stroke-width="0.1"/>
1011
+ </g>
1012
+ <g filter="url(#filter5_d_744_3661)">
1013
+ <rect x="15.2334" y="22.5137" width="5.04914" height="4.20761" fill="#FFDE6B"/>
1014
+ <rect x="15.2834" y="22.5637" width="4.94914" height="4.10761" stroke="white" stroke-opacity="0.1" stroke-width="0.1"/>
1015
+ </g>
1016
+ <g filter="url(#filter6_d_744_3661)">
1017
+ <rect x="15.2334" y="28.4043" width="5.04914" height="4.20761" fill="#9DD194"/>
1018
+ <rect x="15.2834" y="28.4543" width="4.94914" height="4.10761" stroke="white" stroke-opacity="0.1" stroke-width="0.1"/>
1019
+ </g>
1020
+ <g filter="url(#filter7_d_744_3661)">
1021
+ <rect x="21.9658" y="15.7812" width="5.04914" height="4.20761" fill="#FFDE6B"/>
1022
+ <rect x="22.0158" y="15.8313" width="4.94914" height="4.10761" stroke="white" stroke-opacity="0.1" stroke-width="0.1"/>
1023
+ </g>
1024
+ <g filter="url(#filter8_d_744_3661)">
1025
+ <rect x="21.9658" y="22.5137" width="5.04914" height="4.20761" fill="#FFDE6B"/>
1026
+ <rect x="22.0158" y="22.5637" width="4.94914" height="4.10761" stroke="white" stroke-opacity="0.1" stroke-width="0.1"/>
1027
+ </g>
1028
+ <g filter="url(#filter9_d_744_3661)">
1029
+ <rect x="21.9658" y="28.4043" width="5.04914" height="4.20761" fill="#F16F6F"/>
1030
+ <rect x="22.0158" y="28.4543" width="4.94914" height="4.10761" stroke="white" stroke-opacity="0.1" stroke-width="0.1"/>
1031
+ </g>
1032
+ <rect x="30.3809" y="9.89062" width="5.89066" height="1.68304" rx="0.841522" fill="#084388"/>
1033
+ <rect x="30.3809" y="13.2568" width="20.1965" height="30" rx="1" fill="#084388"/>
1034
+ <g filter="url(#filter10_d_744_3661)">
1035
+ <rect x="31.2227" y="15.7812" width="5.04914" height="4.20761" fill="#B8E3FF"/>
1036
+ <rect x="31.2727" y="15.8313" width="4.94914" height="4.10761" stroke="white" stroke-opacity="0.1" stroke-width="0.1"/>
1037
+ </g>
1038
+ <g filter="url(#filter11_d_744_3661)">
1039
+ <rect x="31.2227" y="21.6719" width="5.04914" height="4.20761" fill="#B8E3FF"/>
1040
+ <rect x="31.2727" y="21.7219" width="4.94914" height="4.10761" stroke="white" stroke-opacity="0.1" stroke-width="0.1"/>
1041
+ </g>
1042
+ <g filter="url(#filter12_d_744_3661)">
1043
+ <rect x="37.9551" y="15.7812" width="5.04914" height="4.20761" fill="#B8E3FF"/>
1044
+ <rect x="38.0051" y="15.8313" width="4.94914" height="4.10761" stroke="white" stroke-opacity="0.1" stroke-width="0.1"/>
1045
+ </g>
1046
+ <g filter="url(#filter13_d_744_3661)">
1047
+ <rect x="37.9551" y="21.6719" width="5.04914" height="4.20761" fill="#FFC46B"/>
1048
+ <rect x="38.0051" y="21.7219" width="4.94914" height="4.10761" stroke="white" stroke-opacity="0.1" stroke-width="0.1"/>
1049
+ </g>
1050
+ <g filter="url(#filter14_d_744_3661)">
1051
+ <rect x="44.6875" y="15.7812" width="5.04914" height="4.20761" fill="#B8E3FF"/>
1052
+ <rect x="44.7375" y="15.8313" width="4.94914" height="4.10761" stroke="white" stroke-opacity="0.1" stroke-width="0.1"/>
1053
+ </g>
1054
+ <rect x="53.1025" y="9.89062" width="5.89066" height="1.68304" rx="0.841522" fill="#2C6C3F"/>
1055
+ <rect x="53.1025" y="13.2568" width="18" height="30" rx="1" fill="#2C6C3F"/>
1056
+ <g filter="url(#filter15_d_744_3661)">
1057
+ <rect x="53.9434" y="15.7812" width="5.04914" height="4.20761" fill="#9DD194"/>
1058
+ <rect x="53.9934" y="15.8313" width="4.94914" height="4.10761" stroke="white" stroke-opacity="0.1" stroke-width="0.1"/>
1059
+ </g>
1060
+ <g filter="url(#filter16_d_744_3661)">
1061
+ <rect x="53.9434" y="21.6719" width="5.04914" height="4.20761" fill="#9DD194"/>
1062
+ <rect x="53.9934" y="21.7219" width="4.94914" height="4.10761" stroke="white" stroke-opacity="0.1" stroke-width="0.1"/>
1063
+ </g>
1064
+ <g filter="url(#filter17_d_744_3661)">
1065
+ <rect x="60.6758" y="15.7812" width="5.04914" height="4.20761" fill="#9DD194"/>
1066
+ <rect x="60.7258" y="15.8313" width="4.94914" height="4.10761" stroke="white" stroke-opacity="0.1" stroke-width="0.1"/>
1067
+ </g>
1068
+ <g filter="url(#filter18_d_744_3661)">
1069
+ <rect x="60.6758" y="21.6719" width="5.04914" height="4.20761" fill="#FFC46B"/>
1070
+ <rect x="60.7258" y="21.7219" width="4.94914" height="4.10761" stroke="white" stroke-opacity="0.1" stroke-width="0.1"/>
1071
+ </g>
1072
+ </g>
1073
+ <rect x="4.79395" y="4.5" width="70.5294" height="41.0761" rx="3.5" stroke="#727272"/>
1074
+ </g>
1075
+ <defs>
1076
+ <filter id="filter0_d_744_3661" x="0.293945" y="0" width="79.5293" height="50.0762" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
1077
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
1078
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
1079
+ <feOffset/>
1080
+ <feGaussianBlur stdDeviation="2"/>
1081
+ <feComposite in2="hardAlpha" operator="out"/>
1082
+ <feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.44 0"/>
1083
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_744_3661"/>
1084
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_744_3661" result="shape"/>
1085
+ </filter>
1086
+ <filter id="filter1_d_744_3661" x="-10.636" y="-3.35668" width="43.3247" height="42.4839" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
1087
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
1088
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
1089
+ <feOffset/>
1090
+ <feGaussianBlur stdDeviation="9.56896"/>
1091
+ <feComposite in2="hardAlpha" operator="out"/>
1092
+ <feColorMatrix type="matrix" values="0 0 0 0 0.258824 0 0 0 0 0.254902 0 0 0 0 0.286275 0 0 0 0.18 0"/>
1093
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_744_3661"/>
1094
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_744_3661" result="shape"/>
1095
+ </filter>
1096
+ <filter id="filter2_d_744_3661" x="-10.636" y="3.37574" width="43.3247" height="42.4839" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
1097
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
1098
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
1099
+ <feOffset/>
1100
+ <feGaussianBlur stdDeviation="9.56896"/>
1101
+ <feComposite in2="hardAlpha" operator="out"/>
1102
+ <feColorMatrix type="matrix" values="0 0 0 0 0.258824 0 0 0 0 0.254902 0 0 0 0 0.286275 0 0 0 0.18 0"/>
1103
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_744_3661"/>
1104
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_744_3661" result="shape"/>
1105
+ </filter>
1106
+ <filter id="filter3_d_744_3661" x="-10.636" y="9.26637" width="43.3247" height="42.4839" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
1107
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
1108
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
1109
+ <feOffset/>
1110
+ <feGaussianBlur stdDeviation="9.56896"/>
1111
+ <feComposite in2="hardAlpha" operator="out"/>
1112
+ <feColorMatrix type="matrix" values="0 0 0 0 0.258824 0 0 0 0 0.254902 0 0 0 0 0.286275 0 0 0 0.18 0"/>
1113
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_744_3661"/>
1114
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_744_3661" result="shape"/>
1115
+ </filter>
1116
+ <filter id="filter4_d_744_3661" x="-3.90453" y="-3.35668" width="43.3247" height="42.4839" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
1117
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
1118
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
1119
+ <feOffset/>
1120
+ <feGaussianBlur stdDeviation="9.56896"/>
1121
+ <feComposite in2="hardAlpha" operator="out"/>
1122
+ <feColorMatrix type="matrix" values="0 0 0 0 0.258824 0 0 0 0 0.254902 0 0 0 0 0.286275 0 0 0 0.18 0"/>
1123
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_744_3661"/>
1124
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_744_3661" result="shape"/>
1125
+ </filter>
1126
+ <filter id="filter5_d_744_3661" x="-3.90453" y="3.37574" width="43.3247" height="42.4839" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
1127
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
1128
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
1129
+ <feOffset/>
1130
+ <feGaussianBlur stdDeviation="9.56896"/>
1131
+ <feComposite in2="hardAlpha" operator="out"/>
1132
+ <feColorMatrix type="matrix" values="0 0 0 0 0.258824 0 0 0 0 0.254902 0 0 0 0 0.286275 0 0 0 0.18 0"/>
1133
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_744_3661"/>
1134
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_744_3661" result="shape"/>
1135
+ </filter>
1136
+ <filter id="filter6_d_744_3661" x="-3.90453" y="9.26637" width="43.3247" height="42.4839" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
1137
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
1138
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
1139
+ <feOffset/>
1140
+ <feGaussianBlur stdDeviation="9.56896"/>
1141
+ <feComposite in2="hardAlpha" operator="out"/>
1142
+ <feColorMatrix type="matrix" values="0 0 0 0 0.258824 0 0 0 0 0.254902 0 0 0 0 0.286275 0 0 0 0.18 0"/>
1143
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_744_3661"/>
1144
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_744_3661" result="shape"/>
1145
+ </filter>
1146
+ <filter id="filter7_d_744_3661" x="2.82789" y="-3.35668" width="43.3247" height="42.4839" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
1147
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
1148
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
1149
+ <feOffset/>
1150
+ <feGaussianBlur stdDeviation="9.56896"/>
1151
+ <feComposite in2="hardAlpha" operator="out"/>
1152
+ <feColorMatrix type="matrix" values="0 0 0 0 0.258824 0 0 0 0 0.254902 0 0 0 0 0.286275 0 0 0 0.18 0"/>
1153
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_744_3661"/>
1154
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_744_3661" result="shape"/>
1155
+ </filter>
1156
+ <filter id="filter8_d_744_3661" x="2.82789" y="3.37574" width="43.3247" height="42.4839" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
1157
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
1158
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
1159
+ <feOffset/>
1160
+ <feGaussianBlur stdDeviation="9.56896"/>
1161
+ <feComposite in2="hardAlpha" operator="out"/>
1162
+ <feColorMatrix type="matrix" values="0 0 0 0 0.258824 0 0 0 0 0.254902 0 0 0 0 0.286275 0 0 0 0.18 0"/>
1163
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_744_3661"/>
1164
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_744_3661" result="shape"/>
1165
+ </filter>
1166
+ <filter id="filter9_d_744_3661" x="2.82789" y="9.26637" width="43.3247" height="42.4839" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
1167
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
1168
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
1169
+ <feOffset/>
1170
+ <feGaussianBlur stdDeviation="9.56896"/>
1171
+ <feComposite in2="hardAlpha" operator="out"/>
1172
+ <feColorMatrix type="matrix" values="0 0 0 0 0.258824 0 0 0 0 0.254902 0 0 0 0 0.286275 0 0 0 0.18 0"/>
1173
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_744_3661"/>
1174
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_744_3661" result="shape"/>
1175
+ </filter>
1176
+ <filter id="filter10_d_744_3661" x="12.0847" y="-3.35668" width="43.3247" height="42.4839" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
1177
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
1178
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
1179
+ <feOffset/>
1180
+ <feGaussianBlur stdDeviation="9.56896"/>
1181
+ <feComposite in2="hardAlpha" operator="out"/>
1182
+ <feColorMatrix type="matrix" values="0 0 0 0 0.258824 0 0 0 0 0.254902 0 0 0 0 0.286275 0 0 0 0.18 0"/>
1183
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_744_3661"/>
1184
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_744_3661" result="shape"/>
1185
+ </filter>
1186
+ <filter id="filter11_d_744_3661" x="12.0847" y="2.53395" width="43.3247" height="42.4839" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
1187
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
1188
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
1189
+ <feOffset/>
1190
+ <feGaussianBlur stdDeviation="9.56896"/>
1191
+ <feComposite in2="hardAlpha" operator="out"/>
1192
+ <feColorMatrix type="matrix" values="0 0 0 0 0.258824 0 0 0 0 0.254902 0 0 0 0 0.286275 0 0 0 0.18 0"/>
1193
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_744_3661"/>
1194
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_744_3661" result="shape"/>
1195
+ </filter>
1196
+ <filter id="filter12_d_744_3661" x="18.8171" y="-3.35668" width="43.3247" height="42.4839" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
1197
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
1198
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
1199
+ <feOffset/>
1200
+ <feGaussianBlur stdDeviation="9.56896"/>
1201
+ <feComposite in2="hardAlpha" operator="out"/>
1202
+ <feColorMatrix type="matrix" values="0 0 0 0 0.258824 0 0 0 0 0.254902 0 0 0 0 0.286275 0 0 0 0.18 0"/>
1203
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_744_3661"/>
1204
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_744_3661" result="shape"/>
1205
+ </filter>
1206
+ <filter id="filter13_d_744_3661" x="18.8171" y="2.53395" width="43.3247" height="42.4839" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
1207
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
1208
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
1209
+ <feOffset/>
1210
+ <feGaussianBlur stdDeviation="9.56896"/>
1211
+ <feComposite in2="hardAlpha" operator="out"/>
1212
+ <feColorMatrix type="matrix" values="0 0 0 0 0.258824 0 0 0 0 0.254902 0 0 0 0 0.286275 0 0 0 0.18 0"/>
1213
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_744_3661"/>
1214
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_744_3661" result="shape"/>
1215
+ </filter>
1216
+ <filter id="filter14_d_744_3661" x="25.5496" y="-3.35668" width="43.3247" height="42.4839" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
1217
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
1218
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
1219
+ <feOffset/>
1220
+ <feGaussianBlur stdDeviation="9.56896"/>
1221
+ <feComposite in2="hardAlpha" operator="out"/>
1222
+ <feColorMatrix type="matrix" values="0 0 0 0 0.258824 0 0 0 0 0.254902 0 0 0 0 0.286275 0 0 0 0.18 0"/>
1223
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_744_3661"/>
1224
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_744_3661" result="shape"/>
1225
+ </filter>
1226
+ <filter id="filter15_d_744_3661" x="34.8054" y="-3.35668" width="43.3247" height="42.4839" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
1227
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
1228
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
1229
+ <feOffset/>
1230
+ <feGaussianBlur stdDeviation="9.56896"/>
1231
+ <feComposite in2="hardAlpha" operator="out"/>
1232
+ <feColorMatrix type="matrix" values="0 0 0 0 0.258824 0 0 0 0 0.254902 0 0 0 0 0.286275 0 0 0 0.18 0"/>
1233
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_744_3661"/>
1234
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_744_3661" result="shape"/>
1235
+ </filter>
1236
+ <filter id="filter16_d_744_3661" x="34.8054" y="2.53395" width="43.3247" height="42.4839" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
1237
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
1238
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
1239
+ <feOffset/>
1240
+ <feGaussianBlur stdDeviation="9.56896"/>
1241
+ <feComposite in2="hardAlpha" operator="out"/>
1242
+ <feColorMatrix type="matrix" values="0 0 0 0 0.258824 0 0 0 0 0.254902 0 0 0 0 0.286275 0 0 0 0.18 0"/>
1243
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_744_3661"/>
1244
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_744_3661" result="shape"/>
1245
+ </filter>
1246
+ <filter id="filter17_d_744_3661" x="41.5379" y="-3.35668" width="43.3247" height="42.4839" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
1247
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
1248
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
1249
+ <feOffset/>
1250
+ <feGaussianBlur stdDeviation="9.56896"/>
1251
+ <feComposite in2="hardAlpha" operator="out"/>
1252
+ <feColorMatrix type="matrix" values="0 0 0 0 0.258824 0 0 0 0 0.254902 0 0 0 0 0.286275 0 0 0 0.18 0"/>
1253
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_744_3661"/>
1254
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_744_3661" result="shape"/>
1255
+ </filter>
1256
+ <filter id="filter18_d_744_3661" x="41.5379" y="2.53395" width="43.3247" height="42.4839" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
1257
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
1258
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
1259
+ <feOffset/>
1260
+ <feGaussianBlur stdDeviation="9.56896"/>
1261
+ <feComposite in2="hardAlpha" operator="out"/>
1262
+ <feColorMatrix type="matrix" values="0 0 0 0 0.258824 0 0 0 0 0.254902 0 0 0 0 0.286275 0 0 0 0.18 0"/>
1263
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_744_3661"/>
1264
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_744_3661" result="shape"/>
1265
+ </filter>
1266
+ <clipPath id="clip0_744_3661">
1267
+ <rect x="4.29395" y="4" width="71.5294" height="42.0761" rx="4" fill="white"/>
1268
+ </clipPath>
1269
+ </defs>
1270
+ </svg>
1271
+ `,
1272
+ };
1273
+
1274
+ export const defaultPreview = html`
1275
+ <svg
1276
+ width="85"
1277
+ height="50"
1278
+ viewBox="0 0 85 50"
1279
+ fill="none"
1280
+ xmlns="http://www.w3.org/2000/svg"
1281
+ >
1282
+ <rect width="85" height="50" fill="white" />
1283
+ <line
1284
+ x1="16"
1285
+ y1="31.8907"
1286
+ x2="22"
1287
+ y2="31.8907"
1288
+ stroke="#6B6B6B"
1289
+ stroke-width="0.218649"
1290
+ />
1291
+ <line
1292
+ x1="16"
1293
+ y1="31.8907"
1294
+ x2="22"
1295
+ y2="31.8907"
1296
+ stroke="#6B6B6B"
1297
+ stroke-width="0.218649"
1298
+ />
1299
+ <path
1300
+ d="M33 31H36.1325V22.8918V19.0001L40 19"
1301
+ stroke="#6B6B6B"
1302
+ stroke-width="0.218649"
1303
+ />
1304
+ <path
1305
+ d="M52 19H64.1883V13V10L68 10.0001"
1306
+ stroke="#6B6B6B"
1307
+ stroke-width="0.218649"
1308
+ />
1309
+ <path
1310
+ d="M29 31H35.8083L35.8089 36.8873V39.9999L40 40"
1311
+ stroke="#6B6B6B"
1312
+ stroke-width="0.218649"
1313
+ />
1314
+ <path
1315
+ d="M62 19H64.685V24.9999V27.9999L68 28"
1316
+ stroke="#6B6B6B"
1317
+ stroke-width="0.218649"
1318
+ />
1319
+ <rect x="40" y="36" width="12" height="7" rx="0.728829" fill="#9DD194" />
1320
+ <rect
1321
+ x="40.0364"
1322
+ y="36.0364"
1323
+ width="11.9271"
1324
+ height="6.92712"
1325
+ rx="0.692388"
1326
+ stroke="black"
1327
+ stroke-opacity="0.1"
1328
+ stroke-width="0.0728829"
1329
+ />
1330
+ <rect x="3" y="28" width="13" height="6" rx="0.728829" fill="#FFDE6B" />
1331
+ <rect
1332
+ x="3.03644"
1333
+ y="28.0364"
1334
+ width="12.9271"
1335
+ height="5.92712"
1336
+ rx="0.692388"
1337
+ stroke="black"
1338
+ stroke-opacity="0.1"
1339
+ stroke-width="0.0728829"
1340
+ />
1341
+ <rect
1342
+ x="54.7686"
1343
+ y="19.1265"
1344
+ width="6.22715"
1345
+ height="6.22715"
1346
+ transform="rotate(-45 54.7686 19.1265)"
1347
+ fill="#937EE7"
1348
+ />
1349
+ <rect
1350
+ x="54.8201"
1351
+ y="19.1265"
1352
+ width="6.15427"
1353
+ height="6.15427"
1354
+ transform="rotate(-45 54.8201 19.1265)"
1355
+ stroke="black"
1356
+ stroke-opacity="0.1"
1357
+ stroke-width="0.0728829"
1358
+ />
1359
+ <rect
1360
+ x="21.4038"
1361
+ y="30.8835"
1362
+ width="6.22715"
1363
+ height="6.22715"
1364
+ transform="rotate(-45 21.4038 30.8835)"
1365
+ fill="#937EE7"
1366
+ />
1367
+ <rect
1368
+ x="21.4553"
1369
+ y="30.8835"
1370
+ width="6.15427"
1371
+ height="6.15427"
1372
+ transform="rotate(-45 21.4553 30.8835)"
1373
+ stroke="black"
1374
+ stroke-opacity="0.1"
1375
+ stroke-width="0.0728829"
1376
+ />
1377
+ <rect x="40" y="16" width="12" height="7" rx="0.728829" fill="#FFDE6B" />
1378
+ <rect
1379
+ x="40.0364"
1380
+ y="16.0364"
1381
+ width="11.9271"
1382
+ height="6.92712"
1383
+ rx="0.692388"
1384
+ stroke="black"
1385
+ stroke-opacity="0.1"
1386
+ stroke-width="0.0728829"
1387
+ />
1388
+ <rect x="68" y="8" width="13" height="6" rx="0.728829" fill="#937EE7" />
1389
+ <rect
1390
+ x="68.0364"
1391
+ y="8.03644"
1392
+ width="12.9271"
1393
+ height="5.92712"
1394
+ rx="0.692388"
1395
+ stroke="black"
1396
+ stroke-opacity="0.1"
1397
+ stroke-width="0.0728829"
1398
+ />
1399
+ <rect x="68" y="24" width="13" height="7" rx="0.728829" fill="#937EE7" />
1400
+ <rect
1401
+ x="68.0364"
1402
+ y="24.0364"
1403
+ width="12.9271"
1404
+ height="6.92712"
1405
+ rx="0.692388"
1406
+ stroke="black"
1407
+ stroke-opacity="0.1"
1408
+ stroke-width="0.0728829"
1409
+ />
1410
+ </svg>
1411
+ `;