vibedoc 1.1.0 → 1.2.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 (247) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/build-manifest.json +6 -6
  3. package/.next/prerender-manifest.json +3 -3
  4. package/.next/server/app/(app)/activity/page/build-manifest.json +4 -4
  5. package/.next/server/app/(app)/activity/page.js.nft.json +1 -1
  6. package/.next/server/app/(app)/activity/page_client-reference-manifest.js +1 -1
  7. package/.next/server/app/(app)/board/page/build-manifest.json +4 -4
  8. package/.next/server/app/(app)/board/page.js.nft.json +1 -1
  9. package/.next/server/app/(app)/board/page_client-reference-manifest.js +1 -1
  10. package/.next/server/app/(app)/docs/page/build-manifest.json +4 -4
  11. package/.next/server/app/(app)/docs/page.js.nft.json +1 -1
  12. package/.next/server/app/(app)/docs/page_client-reference-manifest.js +1 -1
  13. package/.next/server/app/(app)/explorer/page/build-manifest.json +4 -4
  14. package/.next/server/app/(app)/explorer/page/react-loadable-manifest.json +9 -1
  15. package/.next/server/app/(app)/explorer/page.js.nft.json +1 -1
  16. package/.next/server/app/(app)/explorer/page_client-reference-manifest.js +1 -1
  17. package/.next/server/app/(app)/memory/page/build-manifest.json +4 -4
  18. package/.next/server/app/(app)/memory/page.js.nft.json +1 -1
  19. package/.next/server/app/(app)/memory/page_client-reference-manifest.js +1 -1
  20. package/.next/server/app/(app)/settings/page/build-manifest.json +4 -4
  21. package/.next/server/app/(app)/settings/page.js.nft.json +1 -1
  22. package/.next/server/app/(app)/settings/page_client-reference-manifest.js +1 -1
  23. package/.next/server/app/(app)/setup/page/build-manifest.json +4 -4
  24. package/.next/server/app/(app)/setup/page.js.nft.json +1 -1
  25. package/.next/server/app/(app)/setup/page_client-reference-manifest.js +1 -1
  26. package/.next/server/app/_global-error/page/build-manifest.json +4 -4
  27. package/.next/server/app/_global-error.html +2 -2
  28. package/.next/server/app/_global-error.rsc +1 -1
  29. package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  30. package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  31. package/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  32. package/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  33. package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  34. package/.next/server/app/_not-found/page/build-manifest.json +4 -4
  35. package/.next/server/app/_not-found.html +1 -1
  36. package/.next/server/app/_not-found.rsc +1 -1
  37. package/.next/server/app/_not-found.segments/_full.segment.rsc +1 -1
  38. package/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  39. package/.next/server/app/_not-found.segments/_index.segment.rsc +1 -1
  40. package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  41. package/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  42. package/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  43. package/.next/server/app/activity.html +1 -1
  44. package/.next/server/app/activity.rsc +2 -2
  45. package/.next/server/app/activity.segments/!KGFwcCk/activity/__PAGE__.segment.rsc +2 -2
  46. package/.next/server/app/activity.segments/!KGFwcCk/activity.segment.rsc +1 -1
  47. package/.next/server/app/activity.segments/!KGFwcCk.segment.rsc +1 -1
  48. package/.next/server/app/activity.segments/_full.segment.rsc +2 -2
  49. package/.next/server/app/activity.segments/_head.segment.rsc +1 -1
  50. package/.next/server/app/activity.segments/_index.segment.rsc +1 -1
  51. package/.next/server/app/activity.segments/_tree.segment.rsc +1 -1
  52. package/.next/server/app/api/activity/route.js.nft.json +1 -1
  53. package/.next/server/app/api/backlinks/route.js.nft.json +1 -1
  54. package/.next/server/app/api/context/route.js.nft.json +1 -1
  55. package/.next/server/app/api/decisions/route.js.nft.json +1 -1
  56. package/.next/server/app/api/docs/route.js.nft.json +1 -1
  57. package/.next/server/app/api/explorer/route.js.nft.json +1 -1
  58. package/.next/server/app/api/mcp/route.js.nft.json +1 -1
  59. package/.next/server/app/api/memory/route.js.nft.json +1 -1
  60. package/.next/server/app/api/projects/route.js.nft.json +1 -1
  61. package/.next/server/app/api/settings/route.js.nft.json +1 -1
  62. package/.next/server/app/api/setup/generate/route.js.nft.json +1 -1
  63. package/.next/server/app/api/setup/write/route.js.nft.json +1 -1
  64. package/.next/server/app/api/summary/route.js.nft.json +1 -1
  65. package/.next/server/app/api/tasks/route.js.nft.json +1 -1
  66. package/.next/server/app/board.html +1 -1
  67. package/.next/server/app/board.rsc +2 -2
  68. package/.next/server/app/board.segments/!KGFwcCk/board/__PAGE__.segment.rsc +2 -2
  69. package/.next/server/app/board.segments/!KGFwcCk/board.segment.rsc +1 -1
  70. package/.next/server/app/board.segments/!KGFwcCk.segment.rsc +1 -1
  71. package/.next/server/app/board.segments/_full.segment.rsc +2 -2
  72. package/.next/server/app/board.segments/_head.segment.rsc +1 -1
  73. package/.next/server/app/board.segments/_index.segment.rsc +1 -1
  74. package/.next/server/app/board.segments/_tree.segment.rsc +1 -1
  75. package/.next/server/app/docs.html +1 -1
  76. package/.next/server/app/docs.rsc +2 -2
  77. package/.next/server/app/docs.segments/!KGFwcCk/docs/__PAGE__.segment.rsc +2 -2
  78. package/.next/server/app/docs.segments/!KGFwcCk/docs.segment.rsc +1 -1
  79. package/.next/server/app/docs.segments/!KGFwcCk.segment.rsc +1 -1
  80. package/.next/server/app/docs.segments/_full.segment.rsc +2 -2
  81. package/.next/server/app/docs.segments/_head.segment.rsc +1 -1
  82. package/.next/server/app/docs.segments/_index.segment.rsc +1 -1
  83. package/.next/server/app/docs.segments/_tree.segment.rsc +1 -1
  84. package/.next/server/app/explorer.html +1 -1
  85. package/.next/server/app/explorer.rsc +2 -2
  86. package/.next/server/app/explorer.segments/!KGFwcCk/explorer/__PAGE__.segment.rsc +2 -2
  87. package/.next/server/app/explorer.segments/!KGFwcCk/explorer.segment.rsc +1 -1
  88. package/.next/server/app/explorer.segments/!KGFwcCk.segment.rsc +1 -1
  89. package/.next/server/app/explorer.segments/_full.segment.rsc +2 -2
  90. package/.next/server/app/explorer.segments/_head.segment.rsc +1 -1
  91. package/.next/server/app/explorer.segments/_index.segment.rsc +1 -1
  92. package/.next/server/app/explorer.segments/_tree.segment.rsc +1 -1
  93. package/.next/server/app/index.html +1 -1
  94. package/.next/server/app/index.rsc +1 -1
  95. package/.next/server/app/index.segments/__PAGE__.segment.rsc +1 -1
  96. package/.next/server/app/index.segments/_full.segment.rsc +1 -1
  97. package/.next/server/app/index.segments/_head.segment.rsc +1 -1
  98. package/.next/server/app/index.segments/_index.segment.rsc +1 -1
  99. package/.next/server/app/index.segments/_tree.segment.rsc +1 -1
  100. package/.next/server/app/memory.html +1 -1
  101. package/.next/server/app/memory.rsc +2 -2
  102. package/.next/server/app/memory.segments/!KGFwcCk/memory/__PAGE__.segment.rsc +2 -2
  103. package/.next/server/app/memory.segments/!KGFwcCk/memory.segment.rsc +1 -1
  104. package/.next/server/app/memory.segments/!KGFwcCk.segment.rsc +1 -1
  105. package/.next/server/app/memory.segments/_full.segment.rsc +2 -2
  106. package/.next/server/app/memory.segments/_head.segment.rsc +1 -1
  107. package/.next/server/app/memory.segments/_index.segment.rsc +1 -1
  108. package/.next/server/app/memory.segments/_tree.segment.rsc +1 -1
  109. package/.next/server/app/page/build-manifest.json +4 -4
  110. package/.next/server/app/settings.html +1 -1
  111. package/.next/server/app/settings.rsc +1 -1
  112. package/.next/server/app/settings.segments/!KGFwcCk/settings/__PAGE__.segment.rsc +1 -1
  113. package/.next/server/app/settings.segments/!KGFwcCk/settings.segment.rsc +1 -1
  114. package/.next/server/app/settings.segments/!KGFwcCk.segment.rsc +1 -1
  115. package/.next/server/app/settings.segments/_full.segment.rsc +1 -1
  116. package/.next/server/app/settings.segments/_head.segment.rsc +1 -1
  117. package/.next/server/app/settings.segments/_index.segment.rsc +1 -1
  118. package/.next/server/app/settings.segments/_tree.segment.rsc +1 -1
  119. package/.next/server/app/setup.html +1 -1
  120. package/.next/server/app/setup.rsc +2 -2
  121. package/.next/server/app/setup.segments/!KGFwcCk/setup/__PAGE__.segment.rsc +2 -2
  122. package/.next/server/app/setup.segments/!KGFwcCk/setup.segment.rsc +1 -1
  123. package/.next/server/app/setup.segments/!KGFwcCk.segment.rsc +1 -1
  124. package/.next/server/app/setup.segments/_full.segment.rsc +2 -2
  125. package/.next/server/app/setup.segments/_head.segment.rsc +1 -1
  126. package/.next/server/app/setup.segments/_index.segment.rsc +1 -1
  127. package/.next/server/app/setup.segments/_tree.segment.rsc +1 -1
  128. package/.next/server/chunks/[root-of-the-server]__0e51ee32._.js +2 -2
  129. package/.next/server/chunks/[root-of-the-server]__1453b4c1._.js +1 -1
  130. package/.next/server/chunks/[root-of-the-server]__2bbe3bdc._.js +1 -1
  131. package/.next/server/chunks/[root-of-the-server]__2d66d57b._.js +1 -1
  132. package/.next/server/chunks/[root-of-the-server]__54666fd5._.js +1 -1
  133. package/.next/server/chunks/[root-of-the-server]__7a7e1eb1._.js +1 -1
  134. package/.next/server/chunks/[root-of-the-server]__8e790c7b._.js +1 -1
  135. package/.next/server/chunks/[root-of-the-server]__9d1f6722._.js +1 -1
  136. package/.next/server/chunks/[root-of-the-server]__a0a8fb65._.js +1 -1
  137. package/.next/server/chunks/[root-of-the-server]__a7d932af._.js +1 -1
  138. package/.next/server/chunks/[root-of-the-server]__a9dbcc03._.js +1 -1
  139. package/.next/server/chunks/[root-of-the-server]__aa7a40ec._.js +1 -1
  140. package/.next/server/chunks/[root-of-the-server]__bacbf09e._.js +1 -1
  141. package/.next/server/chunks/[root-of-the-server]__bd44b8e4._.js +1 -1
  142. package/.next/server/chunks/[root-of-the-server]__e27393ea._.js +1 -1
  143. package/.next/server/chunks/_75927d0c._.js +1 -1
  144. package/.next/server/chunks/ssr/1ce3b_dagre-d3-es_src_dagre_index_f9cad90b.js +1 -1
  145. package/.next/server/chunks/ssr/4bd2e_mermaid_dist_chunks_mermaid_core_chunk-S3R3BYOJ_mjs_dfc77fcf._.js +1 -1
  146. package/.next/server/chunks/ssr/78921_y-codemirror_next_src_index_7664c743.js +1 -1
  147. package/.next/server/chunks/ssr/{[root-of-the-server]__2d92fa59._.js → [root-of-the-server]__93c50d95._.js} +2 -2
  148. package/.next/server/chunks/ssr/[root-of-the-server]__93c50d95._.js.map +1 -0
  149. package/.next/server/chunks/ssr/[root-of-the-server]__93f88b5d._.js +1 -1
  150. package/.next/server/chunks/ssr/[root-of-the-server]__c441b191._.js +1 -1
  151. package/.next/server/chunks/ssr/[root-of-the-server]__cb200ebe._.js +1 -1
  152. package/.next/server/chunks/ssr/_0324be5b._.js +1 -1
  153. package/.next/server/chunks/ssr/_04bd0614._.js +1 -1
  154. package/.next/server/chunks/ssr/_07ff42fd._.js +1 -1
  155. package/.next/server/chunks/ssr/_0ee1f47f._.js +3 -0
  156. package/.next/server/chunks/ssr/_0ee1f47f._.js.map +1 -0
  157. package/.next/server/chunks/ssr/_39d9968d._.js +1 -1
  158. package/.next/server/chunks/ssr/_692c5bbf._.js +3 -0
  159. package/.next/server/chunks/ssr/_692c5bbf._.js.map +1 -0
  160. package/.next/server/chunks/ssr/_7b129868._.js +1 -1
  161. package/.next/server/chunks/ssr/_83c6a2ff._.js +1 -1
  162. package/.next/server/chunks/ssr/_85e5ab03._.js +1 -1
  163. package/.next/server/chunks/ssr/_c4b742c5._.js +1 -1
  164. package/.next/server/chunks/ssr/a41dc_lucide-react_dist_esm_icons_folder_de463b3c.js +3 -0
  165. package/.next/server/chunks/ssr/a41dc_lucide-react_dist_esm_icons_folder_de463b3c.js.map +1 -0
  166. package/.next/server/chunks/ssr/a5dda_next_dist_bc8c0e5f._.js +1 -1
  167. package/.next/server/chunks/ssr/a5dda_next_dist_c6de1535._.js +1 -1
  168. package/.next/server/chunks/ssr/a5dda_next_dist_esm_build_templates_app-page_d9140d2d.js +1 -1
  169. package/.next/server/chunks/ssr/fe4dd_lodash-es_092245b0._.js +1 -1
  170. package/.next/server/chunks/ssr/fe4dd_lodash-es_1a0ea541._.js +1 -1
  171. package/.next/server/chunks/ssr/fe4dd_lodash-es_2f02253e._.js +1 -1
  172. package/.next/server/chunks/ssr/fe4dd_lodash-es_59ba66ec._.js +1 -1
  173. package/.next/server/chunks/ssr/fe4dd_lodash-es_6dfac36d._.js +1 -1
  174. package/.next/server/chunks/ssr/fe4dd_lodash-es_dba464ad._.js +1 -1
  175. package/.next/server/chunks/ssr/fe4dd_lodash-es_fe91028b._.js +1 -1
  176. package/.next/server/chunks/ssr/node_modules__pnpm_00962046._.js +1 -1
  177. package/.next/server/chunks/ssr/node_modules__pnpm_337eaf96._.js +1 -1
  178. package/.next/server/chunks/ssr/node_modules__pnpm_3601c997._.js +1 -1
  179. package/.next/server/chunks/ssr/node_modules__pnpm_55b7a1cf._.js +1 -1
  180. package/.next/server/chunks/ssr/node_modules__pnpm_7de47ba7._.js +1 -1
  181. package/.next/server/chunks/ssr/node_modules__pnpm_87d282d9._.js +1 -1
  182. package/.next/server/chunks/ssr/node_modules__pnpm_8b3ed63a._.js +1 -1
  183. package/.next/server/chunks/ssr/node_modules__pnpm_8f8943af._.js +1 -1
  184. package/.next/server/chunks/ssr/node_modules__pnpm_928932b1._.js +1 -1
  185. package/.next/server/chunks/ssr/node_modules__pnpm_df7dcb26._.js +1 -1
  186. package/.next/server/chunks/ssr/node_modules__pnpm_e70a06f1._.js +1 -1
  187. package/.next/server/chunks/ssr/node_modules__pnpm_fa1f464c._.js +1 -1
  188. package/.next/server/middleware-build-manifest.js +4 -4
  189. package/.next/server/pages/404.html +1 -1
  190. package/.next/server/pages/500.html +2 -2
  191. package/.next/server/server-reference-manifest.js +1 -1
  192. package/.next/server/server-reference-manifest.json +1 -1
  193. package/.next/static/chunks/0b640fa39aac2219.js +1 -0
  194. package/.next/static/chunks/0ef3e14dc942367c.js +1 -0
  195. package/.next/static/chunks/13bdd4e22dd90816.js +1 -0
  196. package/.next/static/chunks/{1ed5d145167d8eb4.js → 1ef8bf79adc2568f.js} +5 -5
  197. package/.next/static/chunks/{12a5f59c97d227db.js → 25d2e746e06b38ba.js} +1 -1
  198. package/.next/static/chunks/{811bb9b4cd1b0f6c.js → 316cd4755f253783.js} +1 -1
  199. package/.next/static/chunks/351fac2d373f6f38.js +1 -0
  200. package/.next/static/chunks/{ec0c4ff8847ec34b.js → 452e1bb12e7f0b85.js} +1 -1
  201. package/.next/static/chunks/4a40b1a0e0d1d36e.js +29 -0
  202. package/.next/static/chunks/{70d2c49686d63e40.js → 519aa8080f20453e.js} +1 -1
  203. package/.next/static/chunks/{02e429858f990849.js → 55ab99ffa8724197.js} +1 -1
  204. package/.next/static/chunks/55fe2639abb9cd1a.js +2 -0
  205. package/.next/static/chunks/63e6313e09a72507.js +43 -0
  206. package/.next/static/chunks/6fc607e12ff4f9cc.js +215 -0
  207. package/.next/static/chunks/752c6435ac86719d.js +2 -0
  208. package/.next/static/chunks/8034834601bf13d7.js +1 -0
  209. package/.next/static/chunks/8b98ae3ee4dbcfd1.js +2 -0
  210. package/.next/static/chunks/aad224af68aad5fb.js +4 -0
  211. package/.next/static/chunks/b32c8cafb0f99121.js +24 -0
  212. package/.next/static/chunks/c224fce458bb43f9.js +1 -0
  213. package/.next/static/chunks/c6c6b3aa4797a144.js +1 -0
  214. package/.next/static/chunks/c7596c95b8f7f059.js +1 -0
  215. package/.next/static/chunks/cf9345359d04d2e9.js +63 -0
  216. package/.next/static/chunks/e6164bb2a2fa9b00.js +1 -0
  217. package/.next/static/chunks/e7aa622fd3384345.js +2 -0
  218. package/.next/static/chunks/ed565e62e468fa30.js +24 -0
  219. package/.next/static/chunks/{0bbe3dc32a2a7822.js → fcc2b1530d73e61e.js} +1 -1
  220. package/.next/static/chunks/{turbopack-525ea573490deca2.js → turbopack-2835ad6e71df73d8.js} +1 -1
  221. package/package.json +3 -1
  222. package/.next/server/chunks/ssr/[root-of-the-server]__2d92fa59._.js.map +0 -1
  223. package/.next/server/chunks/ssr/_b9f186b2._.js +0 -3
  224. package/.next/server/chunks/ssr/_b9f186b2._.js.map +0 -1
  225. package/.next/server/chunks/ssr/_e18b7893._.js +0 -3
  226. package/.next/server/chunks/ssr/_e18b7893._.js.map +0 -1
  227. package/.next/static/chunks/0bf088d94c6c3d7f.js +0 -1
  228. package/.next/static/chunks/12cf98019a766d56.js +0 -2
  229. package/.next/static/chunks/5051111686a30794.js +0 -24
  230. package/.next/static/chunks/575ff595808bef08.js +0 -29
  231. package/.next/static/chunks/57eb6d643a88d201.js +0 -1
  232. package/.next/static/chunks/70a4b574c7f36373.js +0 -1
  233. package/.next/static/chunks/73ecac2771f5a28f.js +0 -2
  234. package/.next/static/chunks/7cdf6785100b30b4.js +0 -1
  235. package/.next/static/chunks/962586ff4bc6af4f.js +0 -1
  236. package/.next/static/chunks/aaa492e282370bc6.js +0 -43
  237. package/.next/static/chunks/b07c7aa5dcbca335.js +0 -2
  238. package/.next/static/chunks/b43b33637f3f9958.js +0 -215
  239. package/.next/static/chunks/b90625f065b2fb81.js +0 -1
  240. package/.next/static/chunks/c1ea939eac9e0ef7.js +0 -2
  241. package/.next/static/chunks/c855ae74bfce8619.js +0 -63
  242. package/.next/static/chunks/d4eb6ab4605bef88.js +0 -4
  243. package/.next/static/chunks/d6bceca87929c840.js +0 -24
  244. package/.next/static/chunks/eeb1ca1094488ae7.js +0 -1
  245. /package/.next/static/{eg962yV_Znyf_qyl9Yv8S → T1s0QXbWFmXxNEuUL4myK}/_buildManifest.js +0 -0
  246. /package/.next/static/{eg962yV_Znyf_qyl9Yv8S → T1s0QXbWFmXxNEuUL4myK}/_clientMiddlewareManifest.json +0 -0
  247. /package/.next/static/{eg962yV_Znyf_qyl9Yv8S → T1s0QXbWFmXxNEuUL4myK}/_ssgManifest.js +0 -0
@@ -1 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,85092,e=>{"use strict";var t=e.i(74894),o=e.i(49381);class n{constructor(e,t){this.yanchor=e,this.yhead=t}toJSON(){return{yanchor:t.relativePositionToJSON(this.yanchor),yhead:t.relativePositionToJSON(this.yhead)}}static fromJSON(e){return new n(t.createRelativePositionFromJSON(e.yanchor),t.createRelativePositionFromJSON(e.yhead))}}var i=e.i(84510);class r{constructor(e,o){this.ytext=e,this.awareness=o,this.undoManager=new t.UndoManager(e)}toYPos(e,o=0){return t.createRelativePositionFromTypeIndex(this.ytext,e,o)}fromYPos(e){let o=t.createAbsolutePositionFromRelativePosition(t.createRelativePositionFromJSON(e),this.ytext.doc);if(null==o||o.type!==this.ytext)throw Error("[y-codemirror] The position you want to retrieve was created by a different document");return{pos:o.index,assoc:o.assoc}}toYRange(e){let t=e.assoc;return new n(this.toYPos(e.anchor,t),this.toYPos(e.head,t))}fromYRange(e){let t=this.fromYPos(e.yanchor),o=this.fromYPos(e.yhead);return t.pos===o.pos?i.EditorSelection.cursor(o.pos,o.assoc):i.EditorSelection.range(t.pos,o.pos)}}let s=i.Facet.define({combine:e=>e[e.length-1]}),a=i.Annotation.define(),c=o.ViewPlugin.fromClass(class{constructor(e){this.view=e,this.conf=e.state.facet(s),this._observer=(t,o)=>{if(o.origin!==this.conf){let o=t.delta,n=[],i=0;for(let e=0;e<o.length;e++){let t=o[e];null!=t.insert?n.push({from:i,to:i,insert:t.insert}):null!=t.delete?(n.push({from:i,to:i+t.delete,insert:""}),i+=t.delete):i+=t.retain}e.dispatch({changes:n,annotations:[a.of(this.conf)]})}},this._ytext=this.conf.ytext,this._ytext.observe(this._observer)}update(e){if(!e.docChanged||e.transactions.length>0&&e.transactions[0].annotation(a)===this.conf)return;let t=this.conf.ytext;t.doc.transact(()=>{let o=0;e.changes.iterChanges((e,n,i,r,s)=>{let a=s.sliceString(0,s.length,"\n");e!==n&&t.delete(e+o,n-e),a.length>0&&t.insert(e+o,a),o+=a.length-(n-e)})},this.conf)}destroy(){this._ytext.unobserve(this._observer)}});var l=o,d=e.i(31051),h=e.i(54975),u=e.i(58627);let m=l.EditorView.baseTheme({".cm-ySelection":{},".cm-yLineSelection":{padding:0,margin:"0px 2px 0px 4px"},".cm-ySelectionCaret":{position:"relative",borderLeft:"1px solid black",borderRight:"1px solid black",marginLeft:"-1px",marginRight:"-1px",boxSizing:"border-box",display:"inline"},".cm-ySelectionCaretDot":{borderRadius:"50%",position:"absolute",width:".4em",height:".4em",top:"-.2em",left:"-.2em",backgroundColor:"inherit",transition:"transform .3s ease-in-out",boxSizing:"border-box"},".cm-ySelectionCaret:hover > .cm-ySelectionCaretDot":{transformOrigin:"bottom center",transform:"scale(0)"},".cm-ySelectionInfo":{position:"absolute",top:"-1.05em",left:"-1px",fontSize:".75em",fontFamily:"serif",fontStyle:"normal",fontWeight:"normal",lineHeight:"normal",userSelect:"none",color:"white",paddingLeft:"2px",paddingRight:"2px",zIndex:101,transition:"opacity .3s ease-in-out",backgroundColor:"inherit",opacity:0,transitionDelay:"0s",whiteSpace:"nowrap"},".cm-ySelectionCaret:hover > .cm-ySelectionInfo":{opacity:1,transitionDelay:"0s"}}),f=i.Annotation.define();class y extends l.WidgetType{constructor(e,t){super(),this.color=e,this.name=t}toDOM(){return d.element("span",[h.create("class","cm-ySelectionCaret"),h.create("style",`background-color: ${this.color}; border-color: ${this.color}`)],[d.text("⁠"),d.element("div",[h.create("class","cm-ySelectionCaretDot")]),d.text("⁠"),d.element("div",[h.create("class","cm-ySelectionInfo")],[d.text(this.name)]),d.text("⁠")])}eq(e){return e.color===this.color}compare(e){return e.color===this.color}updateDOM(){return!1}get estimatedHeight(){return -1}ignoreEvent(){return!0}}let g=l.ViewPlugin.fromClass(class{constructor(e){this.conf=e.state.facet(s),this._listener=({added:t,updated:o,removed:n},i,r)=>{t.concat(o).concat(n).findIndex(e=>e!==this.conf.awareness.doc.clientID)>=0&&e.dispatch({annotations:[f.of([])]})},this._awareness=this.conf.awareness,this._awareness.on("change",this._listener),this.decorations=i.RangeSet.of([])}destroy(){this._awareness.off("change",this._listener)}update(e){let o=this.conf.ytext,n=o.doc,i=this.conf.awareness,r=[],s=this.conf.awareness.getLocalState();if(null!=s){let n=e.view.hasFocus&&e.view.dom.ownerDocument.hasFocus(),r=n?e.state.selection.main:null,a=null==s.cursor?null:t.createRelativePositionFromJSON(s.cursor.anchor),c=null==s.cursor?null:t.createRelativePositionFromJSON(s.cursor.head);if(null!=r){let e=t.createRelativePositionFromTypeIndex(o,r.anchor),n=t.createRelativePositionFromTypeIndex(o,r.head);null!=s.cursor&&t.compareRelativePositions(a,e)&&t.compareRelativePositions(c,n)||i.setLocalStateField("cursor",{anchor:e,head:n})}else null!=s.cursor&&n&&i.setLocalStateField("cursor",null)}i.getStates().forEach((s,a)=>{if(a===i.doc.clientID)return;let c=s.cursor;if(null==c||null==c.anchor||null==c.head)return;let d=t.createAbsolutePositionFromRelativePosition(c.anchor,n),h=t.createAbsolutePositionFromRelativePosition(c.head,n);if(null==d||null==h||d.type!==o||h.type!==o)return;let{color:m="#30bced",name:f="Anonymous"}=s.user||{},g=s.user&&s.user.colorLight||m+"33",p=u.min(d.index,h.index),S=u.max(d.index,h.index),b=e.view.state.doc.lineAt(p),v=e.view.state.doc.lineAt(S);if(b.number===v.number)r.push({from:p,to:S,value:l.Decoration.mark({attributes:{style:`background-color: ${g}`},class:"cm-ySelection"})});else{r.push({from:p,to:b.from+b.length,value:l.Decoration.mark({attributes:{style:`background-color: ${g}`},class:"cm-ySelection"})}),r.push({from:v.from,to:S,value:l.Decoration.mark({attributes:{style:`background-color: ${g}`},class:"cm-ySelection"})});for(let t=b.number+1;t<v.number;t++){let o=e.view.state.doc.line(t).from;r.push({from:o,to:o,value:l.Decoration.line({attributes:{style:`background-color: ${g}`,class:"cm-yLineSelection"}})})}}r.push({from:h.index,to:h.index,value:l.Decoration.widget({side:h.index-d.index>0?-1:1,block:!1,widget:new y(m,f)})})}),this.decorations=l.Decoration.set(r,!0)}},{decorations:e=>e.decorations});class p{constructor(e){this.undoManager=e}addTrackedOrigin(e){this.undoManager.addTrackedOrigin(e)}removeTrackedOrigin(e){this.undoManager.removeTrackedOrigin(e)}undo(){return null!=this.undoManager.undo()}redo(){return null!=this.undoManager.redo()}}let S=i.Facet.define({combine:e=>e[e.length-1]});i.Annotation.define();let b=o.ViewPlugin.fromClass(class{constructor(e){this.view=e,this.conf=e.state.facet(S),this._undoManager=this.conf.undoManager,this.syncConf=e.state.facet(s),this._beforeChangeSelection=null,this._mux=(()=>{let e=!0;return(t,o)=>{if(e){e=!1;try{t()}finally{e=!0}}else void 0!==o&&o()}})(),this._onStackItemAdded=({stackItem:e,changedParentTypes:t})=>{t.has(this.syncConf.ytext)&&this._beforeChangeSelection&&!e.meta.has(this)&&e.meta.set(this,this._beforeChangeSelection)},this._onStackItemPopped=({stackItem:t})=>{let n=t.meta.get(this);if(n){let t=this.syncConf.fromYRange(n);e.dispatch(e.state.update({selection:t,effects:[o.EditorView.scrollIntoView(t)]})),this._storeSelection()}},this._storeSelection=()=>{this._beforeChangeSelection=this.syncConf.toYRange(this.view.state.selection.main)},this._undoManager.on("stack-item-added",this._onStackItemAdded),this._undoManager.on("stack-item-popped",this._onStackItemPopped),this._undoManager.addTrackedOrigin(this.syncConf)}update(e){e.selectionSet&&(0===e.transactions.length||e.transactions[0].annotation(a)!==this.syncConf)&&this._storeSelection()}destroy(){this._undoManager.off("stack-item-added",this._onStackItemAdded),this._undoManager.off("stack-item-popped",this._onStackItemPopped),this._undoManager.removeTrackedOrigin(this.syncConf)}}),v=({state:e,dispatch:t})=>e.facet(S).undo()||!0,x=({state:e,dispatch:t})=>e.facet(S).redo()||!0,w=(e,n,{undoManager:i=new t.UndoManager(e)}={})=>{let a=new r(e,n),l=[s.of(a),c];return n&&l.push(m,g),!1!==i&&l.push(S.of(new p(i)),b,o.EditorView.domEventHandlers({beforeinput:(e,t)=>"historyUndo"===e.inputType?v(t):"historyRedo"===e.inputType&&x(t)})),l};e.s(["yCollab",0,w],95584),e.i(95584),e.s(["YRange",()=>n,"YSyncConfig",()=>r,"yCollab",0,w,"yRemoteSelections",0,g,"yRemoteSelectionsTheme",0,m,"ySync",0,c,"ySyncFacet",0,s,"yUndoManagerKeymap",0,[{key:"Mod-z",run:v,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:x,preventDefault:!0},{key:"Mod-Shift-z",run:x,preventDefault:!0}]],85092)}]);
@@ -1,2 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,96790,57735,86055,t=>{"use strict";let e=()=>new Map;t.s(["any",0,(t,e)=>{for(let[r,n]of t)if(e(n,r))return!0;return!1},"copy",0,t=>{let r=e();return t.forEach((t,e)=>{r.set(e,t)}),r},"create",0,e,"map",0,(t,e)=>{let r=[];for(let[n,i]of t)r.push(e(i,n));return r},"setIfUndefined",0,(t,e,r)=>{let n=t.get(e);return void 0===n&&t.set(e,n=r()),n}],96790),t.s(["create",0,()=>new Set,"from",0,t=>new Set(t)],57735);let r=Array.from,n=(t,e)=>{for(let r=0;r<t.length;r++)if(!e(t[r],r,t))return!1;return!0},i=Array.isArray;t.s(["appendTo",0,(t,e)=>{for(let r=0;r<e.length;r++)t.push(e[r])},"equalFlat",0,(t,e)=>t.length===e.length&&n(t,(t,r)=>t===e[r]),"every",0,n,"from",0,r,"isArray",0,i,"last",0,t=>t[t.length-1],"map",0,(t,e)=>{let r=Array(t.length);for(let n=0;n<t.length;n++)r[n]=e(t[n],n,t);return r},"some",0,(t,e)=>{for(let r=0;r<t.length;r++)if(e(t[r],r,t))return!0;return!1},"unfold",0,(t,e)=>{let r=Array(t);for(let n=0;n<t;n++)r[n]=e(n,r);return r}],86055)},93677,t=>{"use strict";var e=t.i(96790),r=t.i(57735),n=t.i(86055);class i{constructor(){this._observers=e.create()}on(t,n){return e.setIfUndefined(this._observers,t,r.create).add(n),n}once(t,e){let r=(...n)=>{this.off(t,r),e(...n)};this.on(t,r)}off(t,e){let r=this._observers.get(t);void 0!==r&&(r.delete(e),0===r.size&&this._observers.delete(t))}emit(t,r){return n.from((this._observers.get(t)||e.create()).values()).forEach(t=>t(...r))}destroy(){this._observers=e.create()}}class s{constructor(){this._observers=e.create()}on(t,n){e.setIfUndefined(this._observers,t,r.create).add(n)}once(t,e){let r=(...n)=>{this.off(t,r),e(...n)};this.on(t,r)}off(t,e){let r=this._observers.get(t);void 0!==r&&(r.delete(e),0===r.size&&this._observers.delete(t))}emit(t,r){return n.from((this._observers.get(t)||e.create()).values()).forEach(t=>t(...r))}destroy(){this._observers=e.create()}}t.s(["Observable",()=>s,"ObservableV2",()=>i])},58627,33237,4685,t=>{"use strict";let e=Math.floor,r=Math.ceil,n=Math.abs,i=Math.round,s=Math.log10,l=Math.pow;t.s(["abs",0,n,"ceil",0,r,"exp10",0,t=>Math.pow(10,t),"floor",0,e,"isNegativeZero",0,t=>0!==t?t<0:1/t<0,"log10",0,s,"max",0,(t,e)=>t>e?t:e,"min",0,(t,e)=>t<e?t:e,"pow",0,l,"round",0,i],58627),t.s(["BIT1",0,1,"BIT2",0,2,"BIT3",0,4,"BIT4",0,8,"BIT6",0,32,"BIT7",0,64,"BIT8",0,128,"BITS21",0,2097151,"BITS31",0,0x7fffffff,"BITS32",0,0xffffffff,"BITS5",0,31,"BITS6",0,63,"BITS7",0,127,"BITS8",0,255],33237);let o=Number.MAX_SAFE_INTEGER,c=Number.MIN_SAFE_INTEGER,a=Number.isInteger||(t=>"number"==typeof t&&isFinite(t)&&e(t)===t);t.s(["MAX_SAFE_INTEGER",0,o,"MIN_SAFE_INTEGER",0,c,"isInteger",0,a],4685)},45660,t=>{"use strict";var e=t.i(86055);let r=String.fromCharCode,n=String.fromCodePoint;r(65535);let i=/^\s*/g,s=/([A-Z])/g,l="u">typeof TextEncoder?new TextEncoder:null,o=l?t=>l.encode(t):t=>{let e=unescape(encodeURIComponent(t)),r=e.length,n=new Uint8Array(r);for(let t=0;t<r;t++)n[t]=e.codePointAt(t);return n},c="u"<typeof TextDecoder?null:new TextDecoder("utf-8",{fatal:!0,ignoreBOM:!0});c&&1===c.decode(new Uint8Array).length&&(c=null);let a=c?t=>c.decode(t):t=>{let e=t.length,r="",n=0;for(;e>0;){let i=e<1e4?e:1e4,s=t.subarray(n,n+i);n+=i,r+=String.fromCodePoint.apply(null,s),e-=i}return decodeURIComponent(escape(r))};t.s(["decodeUtf8",0,a,"encodeUtf8",0,o,"fromCamelCase",0,(t,e)=>t.replace(s,t=>`${e}${t.toLowerCase()}`).replace(i,""),"fromCharCode",0,r,"fromCodePoint",0,n,"repeat",0,(t,r)=>e.unfold(r,()=>t).join(""),"utf8TextDecoder",()=>c,"utf8TextEncoder",0,l])},50070,68185,39982,t=>{"use strict";var e=t.i(58627),r=t.i(4685),n=t.i(33237),i=t.i(45660),s=t.i(86055);class l{constructor(){this.cpos=0,this.cbuf=new Uint8Array(100),this.bufs=[]}}let o=()=>new l,c=t=>{let e=t.cpos;for(let r=0;r<t.bufs.length;r++)e+=t.bufs[r].length;return e},a=t=>{let e=new Uint8Array(c(t)),r=0;for(let n=0;n<t.bufs.length;n++){let i=t.bufs[n];e.set(i,r),r+=i.length}return e.set(new Uint8Array(t.cbuf.buffer,0,t.cpos),r),e},h=(t,e)=>{let r=t.cbuf.length;t.cpos===r&&(t.bufs.push(t.cbuf),t.cbuf=new Uint8Array(2*r),t.cpos=0),t.cbuf[t.cpos++]=e},u=(t,r)=>{for(;r>n.BITS7;)h(t,n.BIT8|n.BITS7&r),r=e.floor(r/128);h(t,n.BITS7&r)},d=(t,r)=>{let i=e.isNegativeZero(r);for(i&&(r=-r),h(t,(r>n.BITS6?n.BIT8:0)|(i?n.BIT7:0)|n.BITS6&r),r=e.floor(r/64);r>0;)h(t,(r>n.BITS7?n.BIT8:0)|n.BITS7&r),r=e.floor(r/128)},f=new Uint8Array(3e4),g=f.length/3,p=i.utf8TextEncoder&&i.utf8TextEncoder.encodeInto?(t,e)=>{if(e.length<g){let r=i.utf8TextEncoder.encodeInto(e,f).written||0;u(t,r);for(let e=0;e<r;e++)h(t,f[e])}else w(t,i.encodeUtf8(e))}:(t,e)=>{let r=unescape(encodeURIComponent(e)),n=r.length;u(t,n);for(let e=0;e<n;e++)h(t,r.codePointAt(e))},y=(t,r)=>{let n=t.cbuf.length,i=t.cpos,s=e.min(n-i,r.length),l=r.length-s;t.cbuf.set(r.subarray(0,s),i),t.cpos+=s,l>0&&(t.bufs.push(t.cbuf),t.cbuf=new Uint8Array(e.max(2*n,l)),t.cbuf.set(r.subarray(s)),t.cpos=l)},w=(t,e)=>{u(t,e.byteLength),y(t,e)},m=(t,r)=>{let n;(n=t.cbuf.length)-t.cpos<r&&(t.bufs.push(new Uint8Array(t.cbuf.buffer,0,t.cpos)),t.cbuf=new Uint8Array(2*e.max(n,r)),t.cpos=0);let i=new DataView(t.cbuf.buffer,t.cpos,r);return t.cpos+=r,i},b=new DataView(new ArrayBuffer(4)),k=(t,i)=>{switch(typeof i){case"string":h(t,119),p(t,i);break;case"number":if(r.isInteger(i)&&e.abs(i)<=n.BITS31)h(t,125),d(t,i);else if(b.setFloat32(0,i),b.getFloat32(0)===i)h(t,124),m(t,4).setFloat32(0,i,!1);else h(t,123),m(t,8).setFloat64(0,i,!1);break;case"bigint":h(t,122),m(t,8).setBigInt64(0,i,!1);break;case"object":if(null===i)h(t,126);else if(s.isArray(i)){h(t,117),u(t,i.length);for(let e=0;e<i.length;e++)k(t,i[e])}else if(i instanceof Uint8Array)h(t,116),w(t,i);else{h(t,118);let e=Object.keys(i);u(t,e.length);for(let r=0;r<e.length;r++){let n=e[r];p(t,n),k(t,i[n])}}break;case"boolean":h(t,i?120:121);break;default:h(t,127)}};class _ extends l{constructor(t){super(),this.w=t,this.s=null,this.count=0}write(t){this.s===t?this.count++:(this.count>0&&u(this,this.count-1),this.count=1,this.w(this,t),this.s=t)}}let E=t=>{t.count>0&&(d(t.encoder,1===t.count?t.s:-t.s),t.count>1&&u(t.encoder,t.count-2))};class v{constructor(){this.encoder=new l,this.s=0,this.count=0}write(t){this.s===t?this.count++:(E(this),this.count=1,this.s=t)}toUint8Array(){return E(this),a(this.encoder)}}let S=t=>{if(t.count>0){let e=2*t.diff+ +(1!==t.count);d(t.encoder,e),t.count>1&&u(t.encoder,t.count-2)}};class U{constructor(){this.encoder=new l,this.s=0,this.count=0,this.diff=0}write(t){this.diff===t-this.s?(this.s=t,this.count++):(S(this),this.count=1,this.diff=t-this.s,this.s=t)}toUint8Array(){return S(this),a(this.encoder)}}class A{constructor(){this.sarr=[],this.s="",this.lensE=new v}write(t){this.s+=t,this.s.length>19&&(this.sarr.push(this.s),this.s=""),this.lensE.write(t.length)}toUint8Array(){let t=new l;return this.sarr.push(this.s),this.s="",p(t,this.sarr.join("")),y(t,this.lensE.toUint8Array()),a(t)}}t.s(["IntDiffOptRleEncoder",()=>U,"RleEncoder",()=>_,"StringEncoder",()=>A,"UintOptRleEncoder",()=>v,"createEncoder",0,o,"encode",0,t=>{let e=o();return t(e),a(e)},"length",0,c,"toUint8Array",0,a,"write",0,h,"writeAny",0,k,"writeBinaryEncoder",0,(t,e)=>y(t,a(e)),"writeUint8",0,h,"writeUint8Array",0,y,"writeVarInt",0,d,"writeVarString",0,p,"writeVarUint",0,u,"writeVarUint8Array",0,w],50070);let C=t=>Error(t);t.s(["create",0,C,"methodUnimplemented",0,()=>{throw C("Method unimplemented")},"unexpectedCase",0,()=>{throw C("Unexpected case")}],68185);let I=C("Unexpected end of array"),D=C("Integer out of Range");class x{constructor(t){this.arr=t,this.pos=0}}let T=t=>t.pos!==t.arr.length,B=t=>{var e;let r;return e=O(t),r=new Uint8Array(t.arr.buffer,t.pos+t.arr.byteOffset,e),t.pos+=e,r},V=t=>t.arr[t.pos++],O=t=>{let e=0,i=1,s=t.arr.length;for(;t.pos<s;){let s=t.arr[t.pos++];if(e+=(s&n.BITS7)*i,i*=128,s<n.BIT8)return e;if(e>r.MAX_SAFE_INTEGER)throw D}throw I},M=t=>{let e=t.arr[t.pos++],i=e&n.BITS6,s=64,l=(e&n.BIT7)>0?-1:1;if((e&n.BIT8)==0)return l*i;let o=t.arr.length;for(;t.pos<o;){if(i+=((e=t.arr[t.pos++])&n.BITS7)*s,s*=128,e<n.BIT8)return l*i;if(i>r.MAX_SAFE_INTEGER)throw D}throw I},R=i.utf8TextDecoder?t=>i.utf8TextDecoder.decode(B(t)):t=>{let e=O(t);if(0===e)return"";{let r=String.fromCodePoint(V(t));if(--e<100)for(;e--;)r+=String.fromCodePoint(V(t));else for(;e>0;){let n=e<1e4?e:1e4,i=t.arr.subarray(t.pos,t.pos+n);t.pos+=n,r+=String.fromCodePoint.apply(null,i),e-=n}return decodeURIComponent(escape(r))}},L=(t,e)=>{let r=new DataView(t.arr.buffer,t.arr.byteOffset+t.pos,e);return t.pos+=e,r},N=[t=>void 0,t=>null,M,t=>L(t,4).getFloat32(0,!1),t=>L(t,8).getFloat64(0,!1),t=>L(t,8).getBigInt64(0,!1),t=>!1,t=>!0,R,t=>{let e=O(t),r={};for(let n=0;n<e;n++)r[R(t)]=P(t);return r},t=>{let e=O(t),r=[];for(let n=0;n<e;n++)r.push(P(t));return r},B],P=t=>N[127-V(t)](t);class F extends x{constructor(t,e){super(t),this.reader=e,this.s=null,this.count=0}read(){return 0===this.count&&(this.s=this.reader(this),T(this)?this.count=O(this)+1:this.count=-1),this.count--,this.s}}class j extends x{constructor(t){super(t),this.s=0,this.count=0}read(){if(0===this.count){this.s=M(this);let t=e.isNegativeZero(this.s);this.count=1,t&&(this.s=-this.s,this.count=O(this)+2)}return this.count--,this.s}}class z extends x{constructor(t){super(t),this.s=0,this.count=0,this.diff=0}read(){if(0===this.count){let t=M(this);this.diff=e.floor(t/2),this.count=1,1&t&&(this.count=O(this)+2)}return this.s+=this.diff,this.count--,this.s}}class ${constructor(t){this.decoder=new j(t),this.str=R(this.decoder),this.spos=0}read(){let t=this.spos+this.decoder.read(),e=this.str.slice(this.spos,t);return this.spos=t,e}}t.s(["IntDiffOptRleDecoder",()=>z,"RleDecoder",()=>F,"StringDecoder",()=>$,"UintOptRleDecoder",()=>j,"createDecoder",0,t=>new x(t),"hasContent",0,T,"readAny",0,P,"readUint8",0,V,"readVarInt",0,M,"readVarString",0,R,"readVarUint",0,O,"readVarUint8Array",0,B],39982)},40051,t=>{"use strict";t.i(58627),t.i(33237),crypto.subtle;let e=crypto.getRandomValues.bind(crypto),r=()=>e(new Uint32Array(1))[0];t.s(["uint32",0,r,"uuidv4",0,()=>"10000000-1000-4000-8000-100000000000".replace(/[018]/g,t=>(t^r()&15>>t/4).toString(16))],40051)},43292,t=>{"use strict";t.i(58627);let e=Date.now;t.s(["getUnixTime",0,e],43292)},18531,t=>{"use strict";t.i(43292),Promise.all.bind(Promise),t.s(["create",0,t=>new Promise(t)])},52491,(t,e,r)=>{var n={675:function(t,e){"use strict";e.byteLength=function(t){var e=c(t),r=e[0],n=e[1];return(r+n)*3/4-n},e.toByteArray=function(t){var e,r,s=c(t),l=s[0],o=s[1],a=new i((l+o)*3/4-o),h=0,u=o>0?l-4:l;for(r=0;r<u;r+=4)e=n[t.charCodeAt(r)]<<18|n[t.charCodeAt(r+1)]<<12|n[t.charCodeAt(r+2)]<<6|n[t.charCodeAt(r+3)],a[h++]=e>>16&255,a[h++]=e>>8&255,a[h++]=255&e;return 2===o&&(e=n[t.charCodeAt(r)]<<2|n[t.charCodeAt(r+1)]>>4,a[h++]=255&e),1===o&&(e=n[t.charCodeAt(r)]<<10|n[t.charCodeAt(r+1)]<<4|n[t.charCodeAt(r+2)]>>2,a[h++]=e>>8&255,a[h++]=255&e),a},e.fromByteArray=function(t){for(var e,n=t.length,i=n%3,s=[],l=0,o=n-i;l<o;l+=16383)s.push(function(t,e,n){for(var i,s=[],l=e;l<n;l+=3)i=(t[l]<<16&0xff0000)+(t[l+1]<<8&65280)+(255&t[l+2]),s.push(r[i>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return s.join("")}(t,l,l+16383>o?o:l+16383));return 1===i?s.push(r[(e=t[n-1])>>2]+r[e<<4&63]+"=="):2===i&&s.push(r[(e=(t[n-2]<<8)+t[n-1])>>10]+r[e>>4&63]+r[e<<2&63]+"="),s.join("")};for(var r=[],n=[],i="u">typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=0,o=s.length;l<o;++l)r[l]=s[l],n[s.charCodeAt(l)]=l;function c(t){var e=t.length;if(e%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");-1===r&&(r=e);var n=r===e?0:4-r%4;return[r,n]}n[45]=62,n[95]=63},72:function(t,e,r){"use strict";var n=r(675),i=r(783),s="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function l(t){if(t>0x7fffffff)throw RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,o.prototype),e}function o(t,e,r){if("number"==typeof t){if("string"==typeof e)throw TypeError('The "string" argument must be of type string. Received type number');return h(t)}return c(t,e,r)}function c(t,e,r){if("string"==typeof t){var n=t,i=e;if(("string"!=typeof i||""===i)&&(i="utf8"),!o.isEncoding(i))throw TypeError("Unknown encoding: "+i);var s=0|f(n,i),c=l(s),a=c.write(n,i);return a!==s&&(c=c.slice(0,a)),c}if(ArrayBuffer.isView(t))return u(t);if(null==t)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(D(t,ArrayBuffer)||t&&D(t.buffer,ArrayBuffer)||"u">typeof SharedArrayBuffer&&(D(t,SharedArrayBuffer)||t&&D(t.buffer,SharedArrayBuffer)))return function(t,e,r){var n;if(e<0||t.byteLength<e)throw RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(n=void 0===e&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,e):new Uint8Array(t,e,r),o.prototype),n}(t,e,r);if("number"==typeof t)throw TypeError('The "value" argument must not be of type number. Received type number');var h=t.valueOf&&t.valueOf();if(null!=h&&h!==t)return o.from(h,e,r);var g=function(t){if(o.isBuffer(t)){var e=0|d(t.length),r=l(e);return 0===r.length||t.copy(r,0,0,e),r}return void 0!==t.length?"number"!=typeof t.length||function(t){return t!=t}(t.length)?l(0):u(t):"Buffer"===t.type&&Array.isArray(t.data)?u(t.data):void 0}(t);if(g)return g;if("u">typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return o.from(t[Symbol.toPrimitive]("string"),e,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function a(t){if("number"!=typeof t)throw TypeError('"size" argument must be of type number');if(t<0)throw RangeError('The value "'+t+'" is invalid for option "size"')}function h(t){return a(t),l(t<0?0:0|d(t))}function u(t){for(var e=t.length<0?0:0|d(t.length),r=l(e),n=0;n<e;n+=1)r[n]=255&t[n];return r}e.Buffer=o,e.SlowBuffer=function(t){return+t!=t&&(t=0),o.alloc(+t)},e.INSPECT_MAX_BYTES=50,e.kMaxLength=0x7fffffff,o.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}(),!o.TYPED_ARRAY_SUPPORT&&"u">typeof console&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}}),o.poolSize=8192,o.from=function(t,e,r){return c(t,e,r)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array),o.alloc=function(t,e,r){return(a(t),t<=0)?l(t):void 0!==e?"string"==typeof r?l(t).fill(e,r):l(t).fill(e):l(t)},o.allocUnsafe=function(t){return h(t)},o.allocUnsafeSlow=function(t){return h(t)};function d(t){if(t>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|t}function f(t,e){if(o.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||D(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return U(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return C(t).length;default:if(i)return n?-1:U(t).length;e=(""+e).toLowerCase(),i=!0}}function g(t,e,r){var i,s,l,o=!1;if((void 0===e||e<0)&&(e=0),e>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(e>>>=0)))return"";for(t||(t="utf8");;)switch(t){case"hex":return function(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",s=e;s<r;++s)i+=x[t[s]];return i}(this,e,r);case"utf8":case"utf-8":return m(this,e,r);case"ascii":return function(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(127&t[i]);return n}(this,e,r);case"latin1":case"binary":return function(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}(this,e,r);case"base64":return i=this,s=e,l=r,0===s&&l===i.length?n.fromByteArray(i):n.fromByteArray(i.slice(s,l));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(t,e,r){for(var n=t.slice(e,r),i="",s=0;s<n.length;s+=2)i+=String.fromCharCode(n[s]+256*n[s+1]);return i}(this,e,r);default:if(o)throw TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),o=!0}}function p(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function y(t,e,r,n,i){var s;if(0===t.length)return -1;if("string"==typeof r?(n=r,r=0):r>0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),(s=r*=1)!=s&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length)if(i)return -1;else r=t.length-1;else if(r<0)if(!i)return -1;else r=0;if("string"==typeof e&&(e=o.from(e,n)),o.isBuffer(e))return 0===e.length?-1:w(t,e,r,n,i);if("number"==typeof e){if(e&=255,"function"==typeof Uint8Array.prototype.indexOf)if(i)return Uint8Array.prototype.indexOf.call(t,e,r);else return Uint8Array.prototype.lastIndexOf.call(t,e,r);return w(t,[e],r,n,i)}throw TypeError("val must be string, number or Buffer")}function w(t,e,r,n,i){var s,l=1,o=t.length,c=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return -1;l=2,o/=2,c/=2,r/=2}function a(t,e){return 1===l?t[e]:t.readUInt16BE(e*l)}if(i){var h=-1;for(s=r;s<o;s++)if(a(t,s)===a(e,-1===h?0:s-h)){if(-1===h&&(h=s),s-h+1===c)return h*l}else -1!==h&&(s-=s-h),h=-1}else for(r+c>o&&(r=o-c),s=r;s>=0;s--){for(var u=!0,d=0;d<c;d++)if(a(t,s+d)!==a(e,d)){u=!1;break}if(u)return s}return -1}o.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==o.prototype},o.compare=function(t,e){if(D(t,Uint8Array)&&(t=o.from(t,t.offset,t.byteLength)),D(e,Uint8Array)&&(e=o.from(e,e.offset,e.byteLength)),!o.isBuffer(t)||!o.isBuffer(e))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;for(var r=t.length,n=e.length,i=0,s=Math.min(r,n);i<s;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:+(n<r)},o.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.concat=function(t,e){if(!Array.isArray(t))throw TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return o.alloc(0);if(void 0===e)for(r=0,e=0;r<t.length;++r)e+=t[r].length;var r,n=o.allocUnsafe(e),i=0;for(r=0;r<t.length;++r){var s=t[r];if(D(s,Uint8Array)&&(s=o.from(s)),!o.isBuffer(s))throw TypeError('"list" argument must be an Array of Buffers');s.copy(n,i),i+=s.length}return n},o.byteLength=f,o.prototype._isBuffer=!0,o.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)p(this,e,e+1);return this},o.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)p(this,e,e+3),p(this,e+1,e+2);return this},o.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)p(this,e,e+7),p(this,e+1,e+6),p(this,e+2,e+5),p(this,e+3,e+4);return this},o.prototype.toString=function(){var t=this.length;return 0===t?"":0==arguments.length?m(this,0,t):g.apply(this,arguments)},o.prototype.toLocaleString=o.prototype.toString,o.prototype.equals=function(t){if(!o.isBuffer(t))throw TypeError("Argument must be a Buffer");return this===t||0===o.compare(this,t)},o.prototype.inspect=function(){var t="",r=e.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"},s&&(o.prototype[s]=o.prototype.inspect),o.prototype.compare=function(t,e,r,n,i){if(D(t,Uint8Array)&&(t=o.from(t,t.offset,t.byteLength)),!o.isBuffer(t))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return -1;if(e>=r)return 1;if(e>>>=0,r>>>=0,n>>>=0,i>>>=0,this===t)return 0;for(var s=i-n,l=r-e,c=Math.min(s,l),a=this.slice(n,i),h=t.slice(e,r),u=0;u<c;++u)if(a[u]!==h[u]){s=a[u],l=h[u];break}return s<l?-1:+(l<s)},o.prototype.includes=function(t,e,r){return -1!==this.indexOf(t,e,r)},o.prototype.indexOf=function(t,e,r){return y(this,t,e,r,!0)},o.prototype.lastIndexOf=function(t,e,r){return y(this,t,e,r,!1)};function m(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var s,l,o,c,a=t[i],h=null,u=a>239?4:a>223?3:a>191?2:1;if(i+u<=r)switch(u){case 1:a<128&&(h=a);break;case 2:(192&(s=t[i+1]))==128&&(c=(31&a)<<6|63&s)>127&&(h=c);break;case 3:s=t[i+1],l=t[i+2],(192&s)==128&&(192&l)==128&&(c=(15&a)<<12|(63&s)<<6|63&l)>2047&&(c<55296||c>57343)&&(h=c);break;case 4:s=t[i+1],l=t[i+2],o=t[i+3],(192&s)==128&&(192&l)==128&&(192&o)==128&&(c=(15&a)<<18|(63&s)<<12|(63&l)<<6|63&o)>65535&&c<1114112&&(h=c)}null===h?(h=65533,u=1):h>65535&&(h-=65536,n.push(h>>>10&1023|55296),h=56320|1023&h),n.push(h),i+=u}var d=n,f=d.length;if(f<=4096)return String.fromCharCode.apply(String,d);for(var g="",p=0;p<f;)g+=String.fromCharCode.apply(String,d.slice(p,p+=4096));return g}function b(t,e,r){if(t%1!=0||t<0)throw RangeError("offset is not uint");if(t+e>r)throw RangeError("Trying to access beyond buffer length")}function k(t,e,r,n,i,s){if(!o.isBuffer(t))throw TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<s)throw RangeError('"value" argument is out of bounds');if(r+n>t.length)throw RangeError("Index out of range")}function _(t,e,r,n,i,s){if(r+n>t.length||r<0)throw RangeError("Index out of range")}function E(t,e,r,n,s){return e*=1,r>>>=0,s||_(t,e,r,4,34028234663852886e22,-34028234663852886e22),i.write(t,e,r,n,23,4),r+4}function v(t,e,r,n,s){return e*=1,r>>>=0,s||_(t,e,r,8,17976931348623157e292,-17976931348623157e292),i.write(t,e,r,n,52,8),r+8}o.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else if(isFinite(e))e>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,s,l,o,c,a,h,u,d=this.length-e;if((void 0===r||r>d)&&(r=d),t.length>0&&(r<0||e<0)||e>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var f=!1;;)switch(n){case"hex":return function(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n))>i&&(n=i):n=i;var s=e.length;n>s/2&&(n=s/2);for(var l=0;l<n;++l){var o,c=parseInt(e.substr(2*l,2),16);if((o=c)!=o)break;t[r+l]=c}return l}(this,t,e,r);case"utf8":case"utf-8":return i=e,s=r,I(U(t,this.length-i),this,i,s);case"ascii":return l=e,o=r,I(A(t),this,l,o);case"latin1":case"binary":return function(t,e,r,n){return I(A(e),t,r,n)}(this,t,e,r);case"base64":return c=e,a=r,I(C(t),this,c,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return h=e,u=r,I(function(t,e){for(var r,n,i=[],s=0;s<t.length&&!((e-=2)<0);++s)n=(r=t.charCodeAt(s))>>8,i.push(r%256),i.push(n);return i}(t,this.length-h),this,h,u);default:if(f)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),f=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},o.prototype.slice=function(t,e){var r=this.length;t=~~t,e=void 0===e?r:~~e,t<0?(t+=r)<0&&(t=0):t>r&&(t=r),e<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t);var n=this.subarray(t,e);return Object.setPrototypeOf(n,o.prototype),n},o.prototype.readUIntLE=function(t,e,r){t>>>=0,e>>>=0,r||b(t,e,this.length);for(var n=this[t],i=1,s=0;++s<e&&(i*=256);)n+=this[t+s]*i;return n},o.prototype.readUIntBE=function(t,e,r){t>>>=0,e>>>=0,r||b(t,e,this.length);for(var n=this[t+--e],i=1;e>0&&(i*=256);)n+=this[t+--e]*i;return n},o.prototype.readUInt8=function(t,e){return t>>>=0,e||b(t,1,this.length),this[t]},o.prototype.readUInt16LE=function(t,e){return t>>>=0,e||b(t,2,this.length),this[t]|this[t+1]<<8},o.prototype.readUInt16BE=function(t,e){return t>>>=0,e||b(t,2,this.length),this[t]<<8|this[t+1]},o.prototype.readUInt32LE=function(t,e){return t>>>=0,e||b(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+0x1000000*this[t+3]},o.prototype.readUInt32BE=function(t,e){return t>>>=0,e||b(t,4,this.length),0x1000000*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},o.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||b(t,e,this.length);for(var n=this[t],i=1,s=0;++s<e&&(i*=256);)n+=this[t+s]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*e)),n},o.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||b(t,e,this.length);for(var n=e,i=1,s=this[t+--n];n>0&&(i*=256);)s+=this[t+--n]*i;return s>=(i*=128)&&(s-=Math.pow(2,8*e)),s},o.prototype.readInt8=function(t,e){return(t>>>=0,e||b(t,1,this.length),128&this[t])?-((255-this[t]+1)*1):this[t]},o.prototype.readInt16LE=function(t,e){t>>>=0,e||b(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?0xffff0000|r:r},o.prototype.readInt16BE=function(t,e){t>>>=0,e||b(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?0xffff0000|r:r},o.prototype.readInt32LE=function(t,e){return t>>>=0,e||b(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},o.prototype.readInt32BE=function(t,e){return t>>>=0,e||b(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},o.prototype.readFloatLE=function(t,e){return t>>>=0,e||b(t,4,this.length),i.read(this,t,!0,23,4)},o.prototype.readFloatBE=function(t,e){return t>>>=0,e||b(t,4,this.length),i.read(this,t,!1,23,4)},o.prototype.readDoubleLE=function(t,e){return t>>>=0,e||b(t,8,this.length),i.read(this,t,!0,52,8)},o.prototype.readDoubleBE=function(t,e){return t>>>=0,e||b(t,8,this.length),i.read(this,t,!1,52,8)},o.prototype.writeUIntLE=function(t,e,r,n){if(t*=1,e>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;k(this,t,e,r,i,0)}var s=1,l=0;for(this[e]=255&t;++l<r&&(s*=256);)this[e+l]=t/s&255;return e+r},o.prototype.writeUIntBE=function(t,e,r,n){if(t*=1,e>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;k(this,t,e,r,i,0)}var s=r-1,l=1;for(this[e+s]=255&t;--s>=0&&(l*=256);)this[e+s]=t/l&255;return e+r},o.prototype.writeUInt8=function(t,e,r){return t*=1,e>>>=0,r||k(this,t,e,1,255,0),this[e]=255&t,e+1},o.prototype.writeUInt16LE=function(t,e,r){return t*=1,e>>>=0,r||k(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},o.prototype.writeUInt16BE=function(t,e,r){return t*=1,e>>>=0,r||k(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},o.prototype.writeUInt32LE=function(t,e,r){return t*=1,e>>>=0,r||k(this,t,e,4,0xffffffff,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},o.prototype.writeUInt32BE=function(t,e,r){return t*=1,e>>>=0,r||k(this,t,e,4,0xffffffff,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},o.prototype.writeIntLE=function(t,e,r,n){if(t*=1,e>>>=0,!n){var i=Math.pow(2,8*r-1);k(this,t,e,r,i-1,-i)}var s=0,l=1,o=0;for(this[e]=255&t;++s<r&&(l*=256);)t<0&&0===o&&0!==this[e+s-1]&&(o=1),this[e+s]=(t/l|0)-o&255;return e+r},o.prototype.writeIntBE=function(t,e,r,n){if(t*=1,e>>>=0,!n){var i=Math.pow(2,8*r-1);k(this,t,e,r,i-1,-i)}var s=r-1,l=1,o=0;for(this[e+s]=255&t;--s>=0&&(l*=256);)t<0&&0===o&&0!==this[e+s+1]&&(o=1),this[e+s]=(t/l|0)-o&255;return e+r},o.prototype.writeInt8=function(t,e,r){return t*=1,e>>>=0,r||k(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},o.prototype.writeInt16LE=function(t,e,r){return t*=1,e>>>=0,r||k(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},o.prototype.writeInt16BE=function(t,e,r){return t*=1,e>>>=0,r||k(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},o.prototype.writeInt32LE=function(t,e,r){return t*=1,e>>>=0,r||k(this,t,e,4,0x7fffffff,-0x80000000),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},o.prototype.writeInt32BE=function(t,e,r){return t*=1,e>>>=0,r||k(this,t,e,4,0x7fffffff,-0x80000000),t<0&&(t=0xffffffff+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},o.prototype.writeFloatLE=function(t,e,r){return E(this,t,e,!0,r)},o.prototype.writeFloatBE=function(t,e,r){return E(this,t,e,!1,r)},o.prototype.writeDoubleLE=function(t,e,r){return v(this,t,e,!0,r)},o.prototype.writeDoubleBE=function(t,e,r){return v(this,t,e,!1,r)},o.prototype.copy=function(t,e,r,n){if(!o.isBuffer(t))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r||0===t.length||0===this.length)return 0;if(e<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var i=n-r;if(this===t&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(e,r,n);else if(this===t&&r<e&&e<n)for(var s=i-1;s>=0;--s)t[s+e]=this[s+r];else Uint8Array.prototype.set.call(t,this.subarray(r,n),e);return i},o.prototype.fill=function(t,e,r,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!o.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===t.length){var i,s=t.charCodeAt(0);("utf8"===n&&s<128||"latin1"===n)&&(t=s)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(e<0||this.length<e||this.length<r)throw RangeError("Out of range index");if(r<=e)return this;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(i=e;i<r;++i)this[i]=t;else{var l=o.isBuffer(t)?t:o.from(t,n),c=l.length;if(0===c)throw TypeError('The value "'+t+'" is invalid for argument "value"');for(i=0;i<r-e;++i)this[i+e]=l[i%c]}return this};var S=/[^+/0-9A-Za-z-_]/g;function U(t,e){e=e||1/0;for(var r,n=t.length,i=null,s=[],l=0;l<n;++l){if((r=t.charCodeAt(l))>55295&&r<57344){if(!i){if(r>56319||l+1===n){(e-=3)>-1&&s.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&s.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(e-=3)>-1&&s.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;s.push(r)}else if(r<2048){if((e-=2)<0)break;s.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;s.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((e-=4)<0)break;s.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return s}function A(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}function C(t){return n.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(S,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function I(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length)&&!(i>=t.length);++i)e[i+r]=t[i];return i}function D(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}var x=function(){for(var t="0123456789abcdef",e=Array(256),r=0;r<16;++r)for(var n=16*r,i=0;i<16;++i)e[n+i]=t[r]+t[i];return e}()},783:function(t,e){e.read=function(t,e,r,n,i){var s,l,o=8*i-n-1,c=(1<<o)-1,a=c>>1,h=-7,u=r?i-1:0,d=r?-1:1,f=t[e+u];for(u+=d,s=f&(1<<-h)-1,f>>=-h,h+=o;h>0;s=256*s+t[e+u],u+=d,h-=8);for(l=s&(1<<-h)-1,s>>=-h,h+=n;h>0;l=256*l+t[e+u],u+=d,h-=8);if(0===s)s=1-a;else{if(s===c)return l?NaN:1/0*(f?-1:1);l+=Math.pow(2,n),s-=a}return(f?-1:1)*l*Math.pow(2,s-n)},e.write=function(t,e,r,n,i,s){var l,o,c,a=8*s-i-1,h=(1<<a)-1,u=h>>1,d=5960464477539062e-23*(23===i),f=n?0:s-1,g=n?1:-1,p=+(e<0||0===e&&1/e<0);for(isNaN(e=Math.abs(e))||e===1/0?(o=+!!isNaN(e),l=h):(l=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-l))<1&&(l--,c*=2),l+u>=1?e+=d/c:e+=d*Math.pow(2,1-u),e*c>=2&&(l++,c/=2),l+u>=h?(o=0,l=h):l+u>=1?(o=(e*c-1)*Math.pow(2,i),l+=u):(o=e*Math.pow(2,u-1)*Math.pow(2,i),l=0));i>=8;t[r+f]=255&o,f+=g,o/=256,i-=8);for(l=l<<i|o,a+=i;a>0;t[r+f]=255&l,f+=g,l/=256,a-=8);t[r+f-g]|=128*p}}},i={};function s(t){var e=i[t];if(void 0!==e)return e.exports;var r=i[t]={exports:{}},l=!0;try{n[t](r,r.exports,s),l=!1}finally{l&&delete i[t]}return r.exports}s.ab="/ROOT/node_modules/.pnpm/next@16.1.6_@babel+core@7.29.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/compiled/buffer/",e.exports=s(72)},80541,26184,75486,42977,14531,t=>{"use strict";let e;var r=t.i(73891),n=t.i(96790),i=t.i(45660);let s=t=>void 0===t?null:t,l=new class{constructor(){this.map=new Map}setItem(t,e){this.map.set(t,e)}getItem(t){return this.map.get(t)}},o=!0;try{"u">typeof localStorage&&localStorage&&(l=localStorage,o=!1)}catch(t){}let c=l;t.s(["offChange",0,t=>o||removeEventListener("storage",t),"onChange",0,t=>o||addEventListener("storage",t),"varStorage",0,c],26184);var a=t.i(86055);let h=Symbol("Equality"),u=(t,e)=>t===e||!!t?.[h]?.(e);t.s(["EqualityTraitSymbol",0,h,"equals",0,u],75486);let d=Object.assign,f=Object.keys,g=t=>f(t).length,p=(t,e)=>{for(let r in t)if(!e(t[r],r))return!1;return!0},y=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),w=Object.freeze,m=t=>{for(let e in t){let r=t[e];("object"==typeof r||"function"==typeof r)&&m(t[e])}return w(t)};t.s(["assign",0,d,"deepFreeze",0,m,"equalFlat",0,(t,e)=>t===e||g(t)===g(e)&&p(t,(t,r)=>(void 0!==t||y(e,r))&&u(e[r],t)),"every",0,p,"forEach",0,(t,e)=>{for(let r in t)e(t[r],r)},"hasProperty",0,y,"isEmpty",0,t=>{for(let e in t)return!1;return!0},"isObject",0,t=>"object"==typeof t,"map",0,(t,e)=>{let r=[];for(let n in t)r.push(e(t[n],n));return r},"size",0,g],42977);let b=(t,e,r=0)=>{try{for(;r<t.length;r++)t[r](...e)}finally{r<t.length&&b(t,e,r+1)}},k=(t,e)=>{if(t===e)return!0;if(null==t||null==e||t.constructor!==e.constructor&&(t.constructor||Object)!==(e.constructor||Object))return!1;if(null!=t[h])return t[h](e);switch(t.constructor){case ArrayBuffer:t=new Uint8Array(t),e=new Uint8Array(e);case Uint8Array:if(t.byteLength!==e.byteLength)return!1;for(let r=0;r<t.length;r++)if(t[r]!==e[r])return!1;break;case Set:if(t.size!==e.size)return!1;for(let r of t)if(!e.has(r))return!1;break;case Map:if(t.size!==e.size)return!1;for(let r of t.keys())if(!e.has(r)||!k(t.get(r),e.get(r)))return!1;break;case void 0:case Object:if(g(t)!==g(e))return!1;for(let r in t)if(!y(t,r)||!k(t[r],e[r]))return!1;break;case Array:if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(!k(t[r],e[r]))return!1;break;default:return!1}return!0},_=(t,e)=>e.includes(t);a.isArray,t.s(["callAll",0,b,"equalityDeep",0,k,"id",0,t=>t,"isOneOf",0,_,"nop",0,()=>{}],14531);let E=void 0!==r.default&&r.default.release&&/node|io\.js/.test(r.default.release.name)&&"[object process]"===Object.prototype.toString.call(void 0!==r.default?r.default:0),v="u">typeof window&&"u">typeof document&&!E;"u">typeof navigator&&/Mac/.test(navigator.platform);let S=[],U=t=>(()=>{if(void 0===e)if(E){e=n.create();let t=r.default.argv,i=null;for(let r=0;r<t.length;r++){let n=t[r];"-"===n[0]?(null!==i&&e.set(i,""),i=n):null!==i?(e.set(i,n),i=null):S.push(n)}null!==i&&e.set(i,"")}else"object"==typeof location?(e=n.create(),(location.search||"?").slice(1).split("&").forEach(t=>{if(0!==t.length){let[r,n]=t.split("=");e.set(`--${i.fromCamelCase(r,"-")}`,n),e.set(`-${i.fromCamelCase(r,"-")}`,n)}})):e=n.create();return e})().has(t),A=t=>E?s(r.default.env[t.toUpperCase().replaceAll("-","_")]):s(c.getItem(t)),C=t=>U("--"+t)||null!==A(t),I=C("production"),D=E&&_(r.default.env.FORCE_COLOR,["true","1","2"])||!U("--no-colors")&&!C("no-color")&&(!E||r.default.stdout.isTTY)&&(!E||U("--color")||null!==A("COLORTERM")||(A("TERM")||"").includes("color"));t.s(["getVariable",0,A,"isBrowser",0,v,"isNode",0,E,"production",0,I,"supportsColor",0,D],80541)},81589,t=>{"use strict";var e=t.i(52491),r=t.i(45660),n=t.i(80541);t.i(86055),t.i(58627),t.i(50070),t.i(39982);let i=t=>new Uint8Array(t),s=n.isBrowser?t=>{let e="";for(let n=0;n<t.byteLength;n++)e+=r.fromCharCode(t[n]);return btoa(e)}:t=>e.Buffer.from(t.buffer,t.byteOffset,t.byteLength).toString("base64"),l=n.isBrowser?t=>{let e=atob(t),r=i(e.length);for(let t=0;t<e.length;t++)r[t]=e.charCodeAt(t);return r}:t=>{let r,n=e.Buffer.from(t,"base64");return r=n.buffer,new Uint8Array(r,n.byteOffset,n.byteLength)};t.s(["copyUint8Array",0,t=>{let e=i(t.byteLength);return e.set(t),e},"createUint8ArrayFromArrayBuffer",0,t=>new Uint8Array(t),"createUint8ArrayFromLen",0,i,"fromBase64",0,l,"toBase64",0,s])},74894,54975,31051,t=>{"use strict";let e,r,n;var i=t.i(93677),s=t.i(86055),l=t.i(58627),o=t.i(96790),c=t.i(50070),a=t.i(39982),h=t.i(40051),u=t.i(18531),d=t.i(81589),f=t.i(68185),g=t.i(33237),p=t.i(14531),y=t.i(57735),w=t.i(80541);class m{constructor(t,e){this.left=t,this.right=e}}let b=(t,e)=>new m(t,e),k=(t,e)=>t.forEach(t=>e(t.left,t.right));t.s(["create",0,b,"forEach",0,k],54975);var _=t.i(42977),E=t.i(75486),v=t.i(45660);let S=t=>t.next()>=.5,U=(t,e,r)=>l.floor(t.next()*(r+1-e)+e),A=(t,e,r)=>l.floor(t.next()*(r+1-e)+e),C=t=>(0,v.fromCharCode)(A(t,97,122)),I=(t,e)=>e[A(t,0,e.length-1)];var D=t.i(4685);let x=Symbol("0schema");class T{constructor(){this._rerrs=[]}extend(t,e,r,n=null){this._rerrs.push({path:t,expected:e,has:r,message:n})}toString(){let t=[];for(let e=this._rerrs.length-1;e>0;e--){let r=this._rerrs[e];t.push(v.repeat(" ",(this._rerrs.length-e)*2)+`${null!=r.path?`[${r.path}] `:""}${r.has} doesn't match ${r.expected}. ${r.message}`)}return t.join("\n")}}let B=(t,e)=>t===e||null!=t&&null!=e&&t.constructor===e.constructor&&(t[E.EqualityTraitSymbol]?E.equals(t,e):s.isArray(t)?s.every(t,t=>s.some(e,e=>B(t,e))):!!_.isObject(t)&&_.every(t,(t,r)=>B(t,e[r])));class V{static _dilutes=!1;extends(t){let[e,r]=[this.shape,t.shape];return this.constructor._dilutes&&([r,e]=[e,r]),B(e,r)}equals(t){return this.constructor===t.constructor&&p.equalityDeep(this.shape,t.shape)}[x](){return!0}[E.EqualityTraitSymbol](t){return this.equals(t)}validate(t){return this.check(t)}check(t,e){f.methodUnimplemented()}get nullable(){return ta(this,tS)}get optional(){return new J(this)}cast(t){return tI(t,this),t}expect(t){return tI(t,this),t}}class O extends V{constructor(t,e){super(),this.shape=t,this._c=e}check(t,e){let r=t?.constructor===this.shape&&(null==this._c||this._c(t));return r||e?.extend(null,this.shape.name,t?.constructor.name,t?.constructor!==this.shape?"Constructor match failed":"Check failed"),r}}let M=(t,e=null)=>new O(t,e);M(O);class R extends V{constructor(t){super(),this.shape=t}check(t,e){let r=this.shape(t);return r||e?.extend(null,"custom prop",t?.constructor.name,"failed to check custom prop"),r}}let L=t=>new R(t);M(R);class N extends V{constructor(t){super(),this.shape=t}check(t,e){let r=this.shape.some(e=>e===t);return r||e?.extend(null,this.shape.join(" | "),t.toString()),r}}let P=(...t)=>new N(t),F=M(N),j=RegExp.escape||(t=>t.replace(/[().|&,$^[\]]/g,t=>"\\"+t)),z=t=>tb.check(t)?[j(t)]:F.check(t)?t.shape.map(t=>t+""):tm.check(t)?["[+-]?\\d+.?\\d*"]:tk.check(t)?[".*"]:th.check(t)?t.shape.map(z).flat(1):void f.unexpectedCase();M(class extends V{constructor(t){super(),this.shape=t,this._r=RegExp("^"+t.map(z).map(t=>`(${t.join("|")})`).join("")+"$")}check(t,e){let r=null!=this._r.exec(t);return r||e?.extend(null,this._r.toString(),t.toString(),"String doesn't match string template."),r}});let $=Symbol("optional");class J extends V{constructor(t){super(),this.shape=t}check(t,e){let r=void 0===t||this.shape.check(t);return r||e?.extend(null,"undefined (optional)","()"),r}get[$](){return!0}}let q=M(J);class Y extends V{check(t,e){return e?.extend(null,"never",typeof t),!1}}new Y,M(Y);class W extends V{constructor(t,e=!1){super(),this.shape=t,this._isPartial=e}static _dilutes=!0;get partial(){return new W(this.shape,!0)}check(t,e){return null==t?(e?.extend(null,"object","null"),!1):_.every(this.shape,(r,n)=>{let i=this._isPartial&&!_.hasProperty(t,n)||r.check(t[n],e);return i||e?.extend(n.toString(),r.toString(),typeof t[n],"Object property does not match"),i})}}let G=M(W),X=L(t=>null!=t&&(t.constructor===Object||null==t.constructor));class K extends V{constructor(t,e){super(),this.shape={keys:t,values:e}}check(t,e){return null!=t&&_.every(t,(r,n)=>{let i=this.shape.keys.check(n,e);return i||e?.extend(n+"","Record",typeof t,i?"Key doesn't match schema":"Value doesn't match value"),i&&this.shape.values.check(r,e)})}}let H=(t,e)=>new K(t,e),Z=M(K);class Q extends V{constructor(t){super(),this.shape=t}check(t,e){return null!=t&&_.every(this.shape,(r,n)=>{let i=r.check(t[n],e);return i||e?.extend(n.toString(),"Tuple",typeof r),i})}}M(Q);class tt extends V{constructor(t){super(),this.shape=1===t.length?t[0]:new tc(t)}check(t,e){let r=s.isArray(t)&&s.every(t,t=>this.shape.check(t));return r||e?.extend(null,"Array",""),r}}let te=(...t)=>new tt(t),tr=M(tt),tn=L(t=>s.isArray(t));class ti extends V{constructor(t,e){super(),this.shape=t,this._c=e}check(t,e){let r=t instanceof this.shape&&(null==this._c||this._c(t));return r||e?.extend(null,this.shape.name,t?.constructor.name),r}}M(ti);let ts=((t,e=null)=>new ti(t,e))(V),tl=M(class extends V{constructor(t){super(),this.len=t.length-1,this.args=((...t)=>new Q(t))(...t.slice(-1)),this.res=t[this.len]}check(t,e){let r=t.constructor===Function&&t.length<=this.len;return r||e?.extend(null,"function",typeof t),r}}),to=L(t=>"function"==typeof t);M(class extends V{constructor(t){super(),this.shape=t}check(t,e){let r=s.every(this.shape,r=>r.check(t,e));return r||e?.extend(null,"Intersectinon",typeof t),r}},t=>t.shape.length>0);class tc extends V{static _dilutes=!0;constructor(t){super(),this.shape=t}check(t,e){let r=s.some(this.shape,r=>r.check(t,e));return e?.extend(null,"Union",typeof t),r}}let ta=(...t)=>t.findIndex(t=>th.check(t))>=0?ta(...t.map(t=>tC(t)).map(t=>th.check(t)?t.shape:[t]).flat(1)):1===t.length?t[0]:new tc(t),th=M(tc),tu=()=>!0,td=L(tu),tf=M(R,t=>t.shape===tu),tg=L(t=>"bigint"==typeof t),tp=L(t=>t===tg),ty=L(t=>"symbol"==typeof t);L(t=>t===ty);let tw=L(t=>"number"==typeof t),tm=L(t=>t===tw),tb=L(t=>"string"==typeof t),tk=L(t=>t===tb),t_=L(t=>"boolean"==typeof t),tE=L(t=>t===t_),tv=P(void 0);M(N,t=>1===t.shape.length&&void 0===t.shape[0]),P(void 0);let tS=P(null),tU=M(N,t=>1===t.shape.length&&null===t.shape[0]);M(Uint8Array),M(O,t=>t.shape===Uint8Array);let tA=ta(tw,tb,tS,tv,tg,t_,ty);e=te(td),r=H(tb,td),n=ta(tw,tb,tS,t_,e,r),e.shape=n,r.shape.values=n;let tC=t=>{if(ts.check(t))return t;if(X.check(t)){let e={};for(let r in t)e[r]=tC(t[r]);return new W(e)}if(tn.check(t))return ta(...t.map(tC));if(tA.check(t))return P(t);if(to.check(t))return M(t);f.unexpectedCase()},tI=w.production?()=>{}:(t,e)=>{let r=new T;if(!e.check(t,r))throw f.create(`Expected value to be of type ${e.constructor.name}.
2
- ${r.toString()}`)},tD=new class t{constructor(t){this.patterns=[],this.$state=t}if(t,e){return this.patterns.push({if:tC(t),h:e}),this}else(t){return this.if(td,t)}done(){return(t,e)=>{for(let r=0;r<this.patterns.length;r++){let n=this.patterns[r];if(n.if.check(t))return n.h(t,e)}throw f.create("Unhandled pattern")}}}(td).if(tm,(t,e)=>U(e,D.MIN_SAFE_INTEGER,D.MAX_SAFE_INTEGER)).if(tk,(t,e)=>((t,e=0,r=20)=>{let n=A(t,e,r),i="";for(let e=0;e<n;e++)i+=C(t);return i})(e)).if(tE,(t,e)=>S(e)).if(tp,(t,e)=>BigInt(U(e,D.MIN_SAFE_INTEGER,D.MAX_SAFE_INTEGER))).if(th,(t,e)=>tx(e,I(e,t.shape))).if(G,(t,e)=>{let r={};for(let n in t.shape){let i=t.shape[n];if(q.check(i)){if(S(e))continue;i=i.shape}r[n]=tD(i,e)}return r}).if(tr,(t,e)=>{let r=[],n=A(e,0,42);for(let i=0;i<n;i++)r.push(tx(e,t.shape));return r}).if(F,(t,e)=>I(e,t.shape)).if(tU,(t,e)=>null).if(tl,(t,e)=>{let r=tx(e,t.res);return()=>r}).if(tf,(t,e)=>tx(e,I(e,[tw,tb,tS,tv,tg,t_,te(tw),H(ta("a","b","c"),tw)]))).if(Z,(t,e)=>{let r={},n=U(e,0,3);for(let i=0;i<n;i++){let n=tx(e,t.shape.keys),i=tx(e,t.shape.values);r[n]=i}return r}).done(),tx=(t,e)=>tD(tC(e),t),tT="u">typeof document?document:{};L(t=>t.nodeType===tN),"u">typeof DOMParser&&new DOMParser;let tB=(t,e)=>(tO(t,(t=>{let e=tT.createDocumentFragment();for(let r=0;r<t.length;r++)tO(e,t[r]);return e})(e)),t);L(t=>t.nodeType===tM),L(t=>t.nodeType===tR);let tV=t=>o.map(t,(t,e)=>`${e}:${t};`).join(""),tO=(t,e)=>t.appendChild(e),tM=tT.ELEMENT_NODE,tR=tT.TEXT_NODE;tT.CDATA_SECTION_NODE,tT.COMMENT_NODE;let tL=tT.DOCUMENT_NODE;tT.DOCUMENT_TYPE_NODE;let tN=tT.DOCUMENT_FRAGMENT_NODE;L(t=>t.nodeType===tL),t.s(["addEventListener",0,(t,e,r)=>t.addEventListener(e,r),"append",0,tB,"element",0,(t,e=[],r=[])=>{var n;return tB((n=tT.createElement(t),k(e,(t,e)=>{!1===e?n.removeAttribute(t):!0===e?n.setAttribute(t,""):n.setAttribute(t,e)}),n),r)},"mapToStyleString",0,tV,"text",0,t=>tT.createTextNode(t)],31051);var tP=t.i(43292);let tF=t=>class{constructor(t){this._=t}destroy(){t(this._)}};tF(clearTimeout),tF(clearInterval),tF(t=>"u">typeof requestAnimationFrame&&cancelAnimationFrame(t)),tF(t=>"u">typeof cancelIdleCallback&&cancelIdleCallback(t));let tj=Symbol,tz=tj(),t$=tj(),tJ=tj(),tq=tj(),tY=tj(),tW=tj(),tG=tj(),tX=tj(),tK=tj();tP.getUnixTime();let tH={[tz]:b("font-weight","bold"),[t$]:b("font-weight","normal"),[tJ]:b("color","blue"),[tY]:b("color","green"),[tq]:b("color","grey"),[tW]:b("color","red"),[tG]:b("color","purple"),[tX]:b("color","orange"),[tK]:b("color","black")},tZ=w.supportsColor?t=>{1===t.length&&t[0]?.constructor===Function&&(t=t[0]());let e=[],r=[],n=o.create(),i=[],s=0;for(;s<t.length;s++){let i=t[s],l=tH[i];if(void 0!==l)n.set(l.left,l.right);else{if(void 0===i)break;if(i.constructor===String||i.constructor===Number){let t=tV(n);s>0||t.length>0?(e.push("%c"+i),r.push(t)):e.push(i)}else break}}for(s>0&&(i=r).unshift(e.join(""));s<t.length;s++){let e=t[s];e instanceof Symbol||i.push(e)}return i}:t=>{1===t.length&&t[0]?.constructor===Function&&(t=t[0]());let e=[],r=[],n=0;for(;n<t.length;n++){let r=t[n];if(void 0===r)break;if(r.constructor===String||r.constructor===Number)e.push(r);else if(r.constructor===Object)break}for(n>0&&r.push(e.join(""));n<t.length;n++){let e=t[n];e instanceof Symbol||r.push(e)}return r},tQ=(...t)=>{console.log(...tZ(t)),t1.forEach(e=>e.print(t))},t0=(...t)=>{console.warn(...tZ(t)),t.unshift(tX),t1.forEach(e=>e.print(t))},t1=y.create(),t2=t=>({[Symbol.iterator](){return this},next:t}),t8=(t,e)=>t2(()=>{let{done:r,value:n}=t.next();return{done:r,value:r?void 0:e(n)}});class t5 extends i.ObservableV2{constructor(t,e){super(),this.doc=t,this.awareness=e}}class t6{constructor(t,e){this.clock=t,this.len=e}}class t3{constructor(){this.clients=new Map}}let t4=(t,e,r)=>e.clients.forEach((e,n)=>{let i=t.doc.store.clients.get(n);if(null!=i){let n=i[i.length-1],s=n.id.clock+n.length;for(let n=0,l=e[n];n<e.length&&l.clock<s;l=e[++n])rh(t,i,l.clock,l.len,r)}}),t7=(t,e)=>{let r=t.clients.get(e.client);return void 0!==r&&null!==((t,e)=>{let r=0,n=t.length-1;for(;r<=n;){let i=l.floor((r+n)/2),s=t[i],o=s.clock;if(o<=e){if(e<o+s.len)return i;r=i+1}else n=i-1}return null})(r,e.clock)},t9=t=>{t.clients.forEach(t=>{let e,r;for(t.sort((t,e)=>t.clock-e.clock),e=1,r=1;e<t.length;e++){let n=t[r-1],i=t[e];n.clock+n.len>=i.clock?n.len=l.max(n.len,i.clock+i.len-n.clock):(r<e&&(t[r]=i),r++)}t.length=r})},et=t=>{let e=new t3;for(let r=0;r<t.length;r++)t[r].clients.forEach((n,i)=>{if(!e.clients.has(i)){let l=n.slice();for(let e=r+1;e<t.length;e++)s.appendTo(l,t[e].clients.get(i)||[]);e.clients.set(i,l)}});return t9(e),e},ee=(t,e,r,n)=>{o.setIfUndefined(t.clients,e,()=>[]).push(new t6(r,n))},er=()=>new t3,en=t=>{let e=er();return t.clients.forEach((t,r)=>{let n=[];for(let e=0;e<t.length;e++){let r=t[e];if(r.deleted){let i=r.id.clock,s=r.length;if(e+1<t.length)for(let r=t[e+1];e+1<t.length&&r.deleted;r=t[++e+1])s+=r.length;n.push(new t6(i,s))}}n.length>0&&e.clients.set(r,n)}),e},ei=(t,e)=>{c.writeVarUint(t.restEncoder,e.clients.size),s.from(e.clients.entries()).sort((t,e)=>e[0]-t[0]).forEach(([e,r])=>{t.resetDsCurVal(),c.writeVarUint(t.restEncoder,e);let n=r.length;c.writeVarUint(t.restEncoder,n);for(let e=0;e<n;e++){let n=r[e];t.writeDsClock(n.clock),t.writeDsLen(n.len)}})},es=t=>{let e=new t3,r=a.readVarUint(t.restDecoder);for(let n=0;n<r;n++){t.resetDsCurVal();let r=a.readVarUint(t.restDecoder),n=a.readVarUint(t.restDecoder);if(n>0){let i=o.setIfUndefined(e.clients,r,()=>[]);for(let e=0;e<n;e++)i.push(new t6(t.readDsClock(),t.readDsLen()))}}return e},el=(t,e,r)=>{let n=new t3,i=a.readVarUint(t.restDecoder);for(let s=0;s<i;s++){t.resetDsCurVal();let i=a.readVarUint(t.restDecoder),s=a.readVarUint(t.restDecoder),l=r.clients.get(i)||[],o=rn(r,i);for(let r=0;r<s;r++){let r=t.readDsClock(),s=r+t.readDsLen();if(r<o){o<s&&ee(n,i,o,s-o);let t=rs(l,r),c=l[t];for(!c.deleted&&c.id.clock<r&&(l.splice(t+1,0,n7(e,c,r-c.id.clock)),t++);t<l.length;)if((c=l[t++]).id.clock<s)c.deleted||(s<c.id.clock+c.length&&l.splice(t,0,n7(e,c,s-c.id.clock)),c.delete(e));else break}else ee(n,i,r,s-r)}}if(n.clients.size>0){let t=new ew;return c.writeVarUint(t.restEncoder,0),ei(t,n),t.toUint8Array()}return null},eo=(t,e)=>{if(t.clients.size!==e.clients.size)return!1;for(let[r,n]of t.clients.entries()){let t=e.clients.get(r);if(void 0===t||n.length!==t.length)return!1;for(let e=0;e<n.length;e++){let r=n[e],i=t[e];if(r.clock!==i.clock||r.len!==i.len)return!1}}return!0},ec=h.uint32;class ea extends i.ObservableV2{constructor({guid:t=h.uuidv4(),collectionid:e=null,gc:r=!0,gcFilter:n=()=>!0,meta:i=null,autoLoad:s=!1,shouldLoad:l=!0}={}){super(),this.gc=r,this.gcFilter=n,this.clientID=ec(),this.guid=t,this.collectionid=e,this.share=new Map,this.store=new re,this._transaction=null,this._transactionCleanups=[],this.subdocs=new Set,this._item=null,this.shouldLoad=l,this.autoLoad=s,this.meta=i,this.isLoaded=!1,this.isSynced=!1,this.isDestroyed=!1,this.whenLoaded=u.create(t=>{this.on("load",()=>{this.isLoaded=!0,t(this)})});const o=()=>u.create(t=>{let e=r=>{(void 0===r||!0===r)&&(this.off("sync",e),t())};this.on("sync",e)});this.on("sync",t=>{!1===t&&this.isSynced&&(this.whenSynced=o()),this.isSynced=void 0===t||!0===t,this.isSynced&&!this.isLoaded&&this.emit("load",[this])}),this.whenSynced=o()}load(){let t=this._item;null===t||this.shouldLoad||rb(t.parent.doc,t=>{t.subdocsLoaded.add(this)},null,!0),this.shouldLoad=!0}getSubdocs(){return this.subdocs}getSubdocGuids(){return new Set(s.from(this.subdocs).map(t=>t.guid))}transact(t,e=null){return rb(this,t,e)}get(t,e=r6){let r=o.setIfUndefined(this.share,t,()=>{let t=new e;return t._integrate(this,null),t}),n=r.constructor;if(e!==r6&&n!==e)if(n===r6){let n=new e;n._map=r._map,r._map.forEach(t=>{for(;null!==t;t=t.left)t.parent=n}),n._start=r._start;for(let t=n._start;null!==t;t=t.right)t.parent=n;return n._length=r._length,this.share.set(t,n),n._integrate(this,null),n}else throw Error(`Type with the name ${t} has already been defined with a different constructor`);return r}getArray(t=""){return this.get(t,ng)}getText(t=""){return this.get(t,nB)}getMap(t=""){return this.get(t,ny)}getXmlElement(t=""){return this.get(t,nM)}getXmlFragment(t=""){return this.get(t,nO)}toJSON(){let t={};return this.share.forEach((e,r)=>{t[r]=e.toJSON()}),t}destroy(){this.isDestroyed=!0,s.from(this.subdocs).forEach(t=>t.destroy());let t=this._item;if(null!==t){this._item=null;let e=t.content;e.doc=new ea({guid:this.guid,...e.opts,shouldLoad:!1}),e.doc._item=t,rb(t.parent.doc,r=>{let n=e.doc;t.deleted||r.subdocsAdded.add(n),r.subdocsRemoved.add(this)},null,!0)}this.emit("destroyed",[!0]),this.emit("destroy",[this]),super.destroy()}}class eh{constructor(t){this.restDecoder=t}resetDsCurVal(){}readDsClock(){return a.readVarUint(this.restDecoder)}readDsLen(){return a.readVarUint(this.restDecoder)}}class eu extends eh{readLeftID(){return eM(a.readVarUint(this.restDecoder),a.readVarUint(this.restDecoder))}readRightID(){return eM(a.readVarUint(this.restDecoder),a.readVarUint(this.restDecoder))}readClient(){return a.readVarUint(this.restDecoder)}readInfo(){return a.readUint8(this.restDecoder)}readString(){return a.readVarString(this.restDecoder)}readParentInfo(){return 1===a.readVarUint(this.restDecoder)}readTypeRef(){return a.readVarUint(this.restDecoder)}readLen(){return a.readVarUint(this.restDecoder)}readAny(){return a.readAny(this.restDecoder)}readBuf(){return d.copyUint8Array(a.readVarUint8Array(this.restDecoder))}readJSON(){return JSON.parse(a.readVarString(this.restDecoder))}readKey(){return a.readVarString(this.restDecoder)}}class ed{constructor(t){this.dsCurrVal=0,this.restDecoder=t}resetDsCurVal(){this.dsCurrVal=0}readDsClock(){return this.dsCurrVal+=a.readVarUint(this.restDecoder),this.dsCurrVal}readDsLen(){let t=a.readVarUint(this.restDecoder)+1;return this.dsCurrVal+=t,t}}class ef extends ed{constructor(t){super(t),this.keys=[],a.readVarUint(t),this.keyClockDecoder=new a.IntDiffOptRleDecoder(a.readVarUint8Array(t)),this.clientDecoder=new a.UintOptRleDecoder(a.readVarUint8Array(t)),this.leftClockDecoder=new a.IntDiffOptRleDecoder(a.readVarUint8Array(t)),this.rightClockDecoder=new a.IntDiffOptRleDecoder(a.readVarUint8Array(t)),this.infoDecoder=new a.RleDecoder(a.readVarUint8Array(t),a.readUint8),this.stringDecoder=new a.StringDecoder(a.readVarUint8Array(t)),this.parentInfoDecoder=new a.RleDecoder(a.readVarUint8Array(t),a.readUint8),this.typeRefDecoder=new a.UintOptRleDecoder(a.readVarUint8Array(t)),this.lenDecoder=new a.UintOptRleDecoder(a.readVarUint8Array(t))}readLeftID(){return new eV(this.clientDecoder.read(),this.leftClockDecoder.read())}readRightID(){return new eV(this.clientDecoder.read(),this.rightClockDecoder.read())}readClient(){return this.clientDecoder.read()}readInfo(){return this.infoDecoder.read()}readString(){return this.stringDecoder.read()}readParentInfo(){return 1===this.parentInfoDecoder.read()}readTypeRef(){return this.typeRefDecoder.read()}readLen(){return this.lenDecoder.read()}readAny(){return a.readAny(this.restDecoder)}readBuf(){return a.readVarUint8Array(this.restDecoder)}readJSON(){return a.readAny(this.restDecoder)}readKey(){let t=this.keyClockDecoder.read();if(t<this.keys.length)return this.keys[t];{let t=this.stringDecoder.read();return this.keys.push(t),t}}}class eg{constructor(){this.restEncoder=c.createEncoder()}toUint8Array(){return c.toUint8Array(this.restEncoder)}resetDsCurVal(){}writeDsClock(t){c.writeVarUint(this.restEncoder,t)}writeDsLen(t){c.writeVarUint(this.restEncoder,t)}}class ep extends eg{writeLeftID(t){c.writeVarUint(this.restEncoder,t.client),c.writeVarUint(this.restEncoder,t.clock)}writeRightID(t){c.writeVarUint(this.restEncoder,t.client),c.writeVarUint(this.restEncoder,t.clock)}writeClient(t){c.writeVarUint(this.restEncoder,t)}writeInfo(t){c.writeUint8(this.restEncoder,t)}writeString(t){c.writeVarString(this.restEncoder,t)}writeParentInfo(t){c.writeVarUint(this.restEncoder,+!!t)}writeTypeRef(t){c.writeVarUint(this.restEncoder,t)}writeLen(t){c.writeVarUint(this.restEncoder,t)}writeAny(t){c.writeAny(this.restEncoder,t)}writeBuf(t){c.writeVarUint8Array(this.restEncoder,t)}writeJSON(t){c.writeVarString(this.restEncoder,JSON.stringify(t))}writeKey(t){c.writeVarString(this.restEncoder,t)}}class ey{constructor(){this.restEncoder=c.createEncoder(),this.dsCurrVal=0}toUint8Array(){return c.toUint8Array(this.restEncoder)}resetDsCurVal(){this.dsCurrVal=0}writeDsClock(t){let e=t-this.dsCurrVal;this.dsCurrVal=t,c.writeVarUint(this.restEncoder,e)}writeDsLen(t){0===t&&f.unexpectedCase(),c.writeVarUint(this.restEncoder,t-1),this.dsCurrVal+=t}}class ew extends ey{constructor(){super(),this.keyMap=new Map,this.keyClock=0,this.keyClockEncoder=new c.IntDiffOptRleEncoder,this.clientEncoder=new c.UintOptRleEncoder,this.leftClockEncoder=new c.IntDiffOptRleEncoder,this.rightClockEncoder=new c.IntDiffOptRleEncoder,this.infoEncoder=new c.RleEncoder(c.writeUint8),this.stringEncoder=new c.StringEncoder,this.parentInfoEncoder=new c.RleEncoder(c.writeUint8),this.typeRefEncoder=new c.UintOptRleEncoder,this.lenEncoder=new c.UintOptRleEncoder}toUint8Array(){let t=c.createEncoder();return c.writeVarUint(t,0),c.writeVarUint8Array(t,this.keyClockEncoder.toUint8Array()),c.writeVarUint8Array(t,this.clientEncoder.toUint8Array()),c.writeVarUint8Array(t,this.leftClockEncoder.toUint8Array()),c.writeVarUint8Array(t,this.rightClockEncoder.toUint8Array()),c.writeVarUint8Array(t,c.toUint8Array(this.infoEncoder)),c.writeVarUint8Array(t,this.stringEncoder.toUint8Array()),c.writeVarUint8Array(t,c.toUint8Array(this.parentInfoEncoder)),c.writeVarUint8Array(t,this.typeRefEncoder.toUint8Array()),c.writeVarUint8Array(t,this.lenEncoder.toUint8Array()),c.writeUint8Array(t,c.toUint8Array(this.restEncoder)),c.toUint8Array(t)}writeLeftID(t){this.clientEncoder.write(t.client),this.leftClockEncoder.write(t.clock)}writeRightID(t){this.clientEncoder.write(t.client),this.rightClockEncoder.write(t.clock)}writeClient(t){this.clientEncoder.write(t)}writeInfo(t){this.infoEncoder.write(t)}writeString(t){this.stringEncoder.write(t)}writeParentInfo(t){this.parentInfoEncoder.write(+!!t)}writeTypeRef(t){this.typeRefEncoder.write(t)}writeLen(t){this.lenEncoder.write(t)}writeAny(t){c.writeAny(this.restEncoder,t)}writeBuf(t){c.writeVarUint8Array(this.restEncoder,t)}writeJSON(t){c.writeAny(this.restEncoder,t)}writeKey(t){let e=this.keyMap.get(t);void 0===e?(this.keyClockEncoder.write(this.keyClock++),this.stringEncoder.write(t)):this.keyClockEncoder.write(e)}}let em=(t,e,r)=>{let n=new Map;r.forEach((t,r)=>{rn(e,r)>t&&n.set(r,t)}),rr(e).forEach((t,e)=>{r.has(e)||n.set(e,0)}),c.writeVarUint(t.restEncoder,n.size),s.from(n.entries()).sort((t,e)=>e[0]-t[0]).forEach(([r,n])=>{((t,e,r,n)=>{n=l.max(n,e[0].id.clock);let i=rs(e,n);c.writeVarUint(t.restEncoder,e.length-i),t.writeClient(r),c.writeVarUint(t.restEncoder,n);let s=e[i];s.write(t,n-s.id.clock);for(let r=i+1;r<e.length;r++)e[r].write(t,0)})(t,e.clients.get(r),r,n)})},eb=(t,e,r,n=new ef(t))=>rb(e,t=>{t.local=!1;let e=!1,r=t.doc,i=r.store,l=((t,e,r)=>{let n=[],i=s.from(r.keys()).sort((t,e)=>t-e);if(0===i.length)return null;let l=()=>{if(0===i.length)return null;let t=r.get(i[i.length-1]);for(;t.refs.length===t.i;){if(i.pop(),!(i.length>0))return null;t=r.get(i[i.length-1])}return t},a=l();if(null===a)return null;let h=new re,u=new Map,d=(t,e)=>{let r=u.get(t);(null==r||r>e)&&u.set(t,e)},f=a.refs[a.i++],g=new Map,p=()=>{for(let t of n){let e=t.id.client,n=r.get(e);n?(n.i--,h.clients.set(e,n.refs.slice(n.i)),r.delete(e),n.i=0,n.refs=[]):h.clients.set(e,[t]),i=i.filter(t=>t!==e)}n.length=0};for(;;){if(f.constructor!==is){let i=o.setIfUndefined(g,f.id.client,()=>rn(e,f.id.client))-f.id.clock;if(i<0)n.push(f),d(f.id.client,f.id.clock-1),p();else{let s=f.getMissing(t,e);if(null!==s){n.push(f);let t=r.get(s)||{refs:[],i:0};if(t.refs.length===t.i)d(s,rn(e,s)),p();else{f=t.refs[t.i++];continue}}else(0===i||i<f.length)&&(f.integrate(t,i),g.set(f.id.client,f.id.clock+f.length))}}if(n.length>0)f=n.pop();else if(null!==a&&a.i<a.refs.length)f=a.refs[a.i++];else{if(null===(a=l()))break;f=a.refs[a.i++]}}if(h.clients.size>0){let t=new ew;return em(t,h,new Map),c.writeVarUint(t.restEncoder,0),{missing:u,update:t.toUint8Array()}}return null})(t,i,((t,e)=>{let r=o.create(),n=a.readVarUint(t.restDecoder);for(let i=0;i<n;i++){let n=a.readVarUint(t.restDecoder),i=Array(n),s=t.readClient(),l=a.readVarUint(t.restDecoder);r.set(s,{i:0,refs:i});for(let r=0;r<n;r++){let n=t.readInfo();switch(g.BITS5&n){case 0:{let e=t.readLen();i[r]=new nF(eM(s,l),e),l+=e;break}case 10:{let e=a.readVarUint(t.restDecoder);i[r]=new is(eM(s,l),e),l+=e;break}default:{let o=(n&(g.BIT7|g.BIT8))==0,c=new ie(eM(s,l),null,(n&g.BIT8)===g.BIT8?t.readLeftID():null,null,(n&g.BIT7)===g.BIT7?t.readRightID():null,o?t.readParentInfo()?e.get(t.readString()):t.readLeftID():null,o&&(n&g.BIT6)===g.BIT6?t.readString():null,ir(t,n));i[r]=c,l+=c.length}}}}return r})(n,r)),h=i.pendingStructs;if(h){for(let[t,r]of h.missing)if(r<rn(i,t)){e=!0;break}if(l){for(let[t,e]of l.missing){let r=h.missing.get(t);(null==r||r>e)&&h.missing.set(t,e)}h.update=rR([h.update,l.update])}}else i.pendingStructs=l;let u=el(n,t,i);if(i.pendingDs){let e=new ef(a.createDecoder(i.pendingDs));a.readVarUint(e.restDecoder);let r=el(e,t,i);u&&r?i.pendingDs=rR([u,r]):i.pendingDs=u||r}else i.pendingDs=u;if(e){let e=i.pendingStructs.update;i.pendingStructs=null,e_(t.doc,e)}},r,!1),ek=(t,e,r)=>eb(t,e,r,new eu(t)),e_=(t,e,r,n=ef)=>{let i=a.createDecoder(e);eb(i,t,r,new n(i))},eE=(t,e,r)=>e_(t,e,r,eu),ev=(t,e=new Uint8Array([0]),r=new ew)=>{((t,e,r=new Map)=>{em(t,e.store,r),ei(t,en(e.store))})(r,t,eA(e));let n=[r.toUint8Array()];if(t.store.pendingDs&&n.push(t.store.pendingDs),t.store.pendingStructs&&n.push(rL(t.store.pendingStructs.update,e)),n.length>1){if(r.constructor===ep)return rx(n.map((t,e)=>0===e?t:rW(t)));else if(r.constructor===ew)return rR(n)}return n[0]},eS=(t,e)=>ev(t,e,new ep),eU=t=>{let e=new Map,r=a.readVarUint(t.restDecoder);for(let n=0;n<r;n++){let r=a.readVarUint(t.restDecoder),n=a.readVarUint(t.restDecoder);e.set(r,n)}return e},eA=t=>eU(new eh(a.createDecoder(t))),eC=(t,e)=>(c.writeVarUint(t.restEncoder,e.size),s.from(e.entries()).sort((t,e)=>e[0]-t[0]).forEach(([e,r])=>{c.writeVarUint(t.restEncoder,e),c.writeVarUint(t.restEncoder,r)}),t),eI=t=>((t,e=new ey)=>(t instanceof Map?eC(e,t):eC(e,rr(t.store)),e.toUint8Array()))(t,new eg);class eD{constructor(){this.l=[]}}let ex=()=>new eD,eT=(t,e)=>{let r=t.l,n=r.length;t.l=r.filter(t=>e!==t),n===t.l.length&&console.error("[yjs] Tried to remove event handler that doesn't exist.")},eB=(t,e,r)=>p.callAll(t.l,[e,r]);class eV{constructor(t,e){this.client=t,this.clock=e}}let eO=(t,e)=>t===e||null!==t&&null!==e&&t.client===e.client&&t.clock===e.clock,eM=(t,e)=>new eV(t,e),eR=(t,e)=>{c.writeVarUint(t,e.client),c.writeVarUint(t,e.clock)},eL=t=>eM(a.readVarUint(t),a.readVarUint(t)),eN=t=>{for(let[e,r]of t.doc.share.entries())if(r===t)return e;throw f.unexpectedCase()},eP=(t,e)=>{for(;null!==e;){if(e.parent===t)return!0;e=e.parent._item}return!1},eF=t=>{let e=[],r=t._start;for(;r;)e.push(r),r=r.right;console.log("Children: ",e),console.log("Children content: ",e.filter(t=>!t.deleted).map(t=>t.content))};class ej{constructor(t,e=t.getMap("users")){const r=new Map;this.yusers=e,this.doc=t,this.clients=new Map,this.dss=r;const n=(t,e)=>{let r=t.get("ds"),n=t.get("ids"),i=t=>this.clients.set(t,e);r.observe(t=>{t.changes.added.forEach(t=>{t.content.getContent().forEach(t=>{t instanceof Uint8Array&&this.dss.set(e,et([this.dss.get(e)||er(),es(new eh(a.createDecoder(t)))]))})})}),this.dss.set(e,et(r.map(t=>es(new eh(a.createDecoder(t)))))),n.observe(t=>t.changes.added.forEach(t=>t.content.getContent().forEach(i))),n.forEach(i)};e.observe(t=>{t.keysChanged.forEach(t=>n(e.get(t),t))}),e.forEach(n)}setUserMapping(t,e,r,{filter:n=()=>!0}={}){let i=this.yusers,s=i.get(r);s||((s=new ny).set("ids",new ng),s.set("ds",new ng),i.set(r,s)),s.get("ids").push([e]),i.observe(t=>{setTimeout(()=>{let t=i.get(r);if(t!==s){s=t,this.clients.forEach((t,e)=>{r===t&&s.get("ids").push([e])});let e=new eg,n=this.dss.get(r);n&&(ei(e,n),s.get("ds").push([e.toUint8Array()]))}},0)}),t.on("afterTransaction",t=>{setTimeout(()=>{let e=s.get("ds"),r=t.deleteSet;if(t.local&&r.clients.size>0&&n(t,r)){let t=new eg;ei(t,r),e.push([t.toUint8Array()])}})})}getUserByClientId(t){return this.clients.get(t)||null}getUserByDeletedId(t){for(let[e,r]of this.dss.entries())if(t7(r,t))return e;return null}}class ez{constructor(t,e,r,n=0){this.type=t,this.tname=e,this.item=r,this.assoc=n}}let e$=t=>{let e={};return t.type&&(e.type=t.type),t.tname&&(e.tname=t.tname),t.item&&(e.item=t.item),null!=t.assoc&&(e.assoc=t.assoc),e},eJ=t=>new ez(null==t.type?null:eM(t.type.client,t.type.clock),t.tname??null,null==t.item?null:eM(t.item.client,t.item.clock),null==t.assoc?0:t.assoc);class eq{constructor(t,e,r=0){this.type=t,this.index=e,this.assoc=r}}let eY=(t,e,r)=>{let n=null,i=null;return null===t._item?i=eN(t):n=eM(t._item.id.client,t._item.id.clock),new ez(n,i,e,r)},eW=(t,e,r=0)=>{let n=t._start;if(r<0){if(0===e)return eY(t,null,r);e--}for(;null!==n;){if(!n.deleted&&n.countable){if(n.length>e)return eY(t,eM(n.id.client,n.id.clock+e),r);e-=n.length}if(null===n.right&&r<0)return eY(t,n.lastId,r);n=n.right}return eY(t,null,r)},eG=t=>{let e=c.createEncoder();return((t,e)=>{let{type:r,tname:n,item:i,assoc:s}=e;if(null!==i)c.writeVarUint(t,0),eR(t,i);else if(null!==n)c.writeUint8(t,1),c.writeVarString(t,n);else if(null!==r)c.writeUint8(t,2),eR(t,r);else throw f.unexpectedCase();return c.writeVarInt(t,s)})(e,t),c.toUint8Array(e)},eX=t=>(t=>{let e=null,r=null,n=null;switch(a.readVarUint(t)){case 0:n=eL(t);break;case 1:r=a.readVarString(t);break;case 2:e=eL(t)}return new ez(e,r,n,a.hasContent(t)?a.readVarInt(t):0)})(a.createDecoder(t)),eK=(t,e,r=!0)=>{let n=e.store,i=t.item,s=t.type,l=t.tname,o=t.assoc,c=null,a=0;if(null!==i){let t,e;if(rn(n,i.client)<=i.clock)return null;let s=r?n3(n,i):(t=rl(n,i),e=i.clock-t.id.clock,{item:t,diff:e}),l=s.item;if(!(l instanceof ie))return null;if(null===(c=l.parent)._item||!c._item.deleted){a=l.deleted||!l.countable?0:s.diff+(o>=0?0:1);let t=l.left;for(;null!==t;)!t.deleted&&t.countable&&(a+=t.length),t=t.left}}else{if(null!==l)c=e.get(l);else if(null!==s){if(rn(n,s.client)<=s.clock)return null;let{item:t}=r?n3(n,s):{item:rl(n,s)};if(!(t instanceof ie)||!(t.content instanceof n6))return null;c=t.content.type}else throw f.unexpectedCase();a=o>=0?c._length:0}return((t,e,r=0)=>new eq(t,e,r))(c,a,t.assoc)},eH=(t,e)=>t===e||null!==t&&null!==e&&t.tname===e.tname&&eO(t.item,e.item)&&eO(t.type,e.type)&&t.assoc===e.assoc;class eZ{constructor(t,e){this.ds=t,this.sv=e}}let eQ=(t,e)=>{let r=t.ds.clients,n=e.ds.clients,i=t.sv,s=e.sv;if(i.size!==s.size||r.size!==n.size)return!1;for(let[t,e]of i.entries())if(s.get(t)!==e)return!1;for(let[t,e]of r.entries()){let r=n.get(t)||[];if(e.length!==r.length)return!1;for(let t=0;t<e.length;t++){let n=e[t],i=r[t];if(n.clock!==i.clock||n.len!==i.len)return!1}}return!0},e0=(t,e=new ey)=>(ei(e,t.ds),eC(e,t.sv),e.toUint8Array()),e1=t=>e0(t,new eg),e2=(t,e=new ed(a.createDecoder(t)))=>new eZ(es(e),eU(e)),e8=t=>e2(t,new eh(a.createDecoder(t))),e5=(t,e)=>new eZ(t,e),e6=e5(er(),new Map),e3=t=>e5(en(t.store),rr(t.store)),e4=(t,e)=>void 0===e?!t.deleted:e.sv.has(t.id.client)&&(e.sv.get(t.id.client)||0)>t.id.clock&&!t7(e.ds,t.id),e7=(t,e)=>{let r=o.setIfUndefined(t.meta,e7,y.create),n=t.doc.store;r.has(e)||(e.sv.forEach((e,r)=>{e<rn(n,r)&&rc(t,eM(r,e))}),t4(t,e.ds,t=>{}),r.add(e))},e9=(t,e,r=new ea)=>{if(t.gc)throw Error("Garbage-collection must be disabled in `originDoc`!");let{sv:n,ds:i}=e,s=new ew;return t.transact(e=>{let r=0;for(let[i,l]of(n.forEach(t=>{t>0&&r++}),c.writeVarUint(s.restEncoder,r),n)){if(0===l)continue;l<rn(t.store,i)&&rc(e,eM(i,l));let r=t.store.clients.get(i)||[],n=rs(r,l-1);c.writeVarUint(s.restEncoder,n+1),s.writeClient(i),c.writeVarUint(s.restEncoder,0);for(let t=0;t<=n;t++)r[t].write(s,0)}ei(s,i)}),e_(r,s.toUint8Array(),"snapshot"),r},rt=(t,e)=>((t,e,r=ef)=>{let n=new r(a.createDecoder(e)),i=new rS(n,!1);for(let e=i.curr;null!==e;e=i.next())if((t.sv.get(e.id.client)||0)<e.id.clock+e.length)return!1;let s=et([t.ds,es(n)]);return eo(t.ds,s)})(t,e,eu);class re{constructor(){this.clients=new Map,this.pendingStructs=null,this.pendingDs=null}}let rr=t=>{let e=new Map;return t.clients.forEach((t,r)=>{let n=t[t.length-1];e.set(r,n.id.clock+n.length)}),e},rn=(t,e)=>{let r=t.clients.get(e);if(void 0===r)return 0;let n=r[r.length-1];return n.id.clock+n.length},ri=(t,e)=>{let r=t.clients.get(e.id.client);if(void 0===r)r=[],t.clients.set(e.id.client,r);else{let t=r[r.length-1];if(t.id.clock+t.length!==e.id.clock)throw f.unexpectedCase()}r.push(e)},rs=(t,e)=>{let r=0,n=t.length-1,i=t[n],s=i.id.clock;if(s===e)return n;let o=l.floor(e/(s+i.length-1)*n);for(;r<=n;){if((s=(i=t[o]).id.clock)<=e){if(e<s+i.length)return o;r=o+1}else n=o-1;o=l.floor((r+n)/2)}throw f.unexpectedCase()},rl=(t,e)=>{let r=t.clients.get(e.client);return r[rs(r,e.clock)]},ro=(t,e,r)=>{let n=rs(e,r),i=e[n];return i.id.clock<r&&i instanceof ie?(e.splice(n+1,0,n7(t,i,r-i.id.clock)),n+1):n},rc=(t,e)=>{let r=t.doc.store.clients.get(e.client);return r[ro(t,r,e.clock)]},ra=(t,e,r)=>{let n=e.clients.get(r.client),i=rs(n,r.clock),s=n[i];return r.clock!==s.id.clock+s.length-1&&s.constructor!==nF&&n.splice(i+1,0,n7(t,s,r.clock-s.id.clock+1)),s},rh=(t,e,r,n,i)=>{let s;if(0===n)return;let l=r+n,o=ro(t,e,r);do l<(s=e[o++]).id.clock+s.length&&ro(t,e,l),i(s);while(o<e.length&&e[o].id.clock<l)};class ru{constructor(t,e,r){this.doc=t,this.deleteSet=new t3,this.beforeState=rr(t.store),this.afterState=new Map,this.changed=new Map,this.changedParentTypes=new Map,this._mergeStructs=[],this.origin=e,this.meta=new Map,this.local=r,this.subdocsAdded=new Set,this.subdocsRemoved=new Set,this.subdocsLoaded=new Set,this._needFormattingCleanup=!1}}let rd=(t,e)=>(0!==e.deleteSet.clients.size||!!o.any(e.afterState,(t,r)=>e.beforeState.get(r)!==t))&&(t9(e.deleteSet),em(t,e.doc.store,e.beforeState),ei(t,e.deleteSet),!0),rf=(t,e,r)=>{let n=e._item;(null===n||n.id.clock<(t.beforeState.get(n.id.client)||0)&&!n.deleted)&&o.setIfUndefined(t.changed,e,y.create).add(r)},rg=(t,e)=>{let r=t[e],n=t[e-1],i=e;for(;i>0;r=n,n=t[--i-1]){if(n.deleted===r.deleted&&n.constructor===r.constructor&&n.mergeWith(r)){r instanceof ie&&null!==r.parentSub&&r.parent._map.get(r.parentSub)===r&&r.parent._map.set(r.parentSub,n);continue}break}let s=e-i;return s&&t.splice(e+1-s,s),s},rp=(t,e,r)=>{for(let[n,i]of t.clients.entries()){let t=e.clients.get(n);for(let n=i.length-1;n>=0;n--){let s=i[n],l=s.clock+s.len;for(let n=rs(t,s.clock),i=t[n];n<t.length&&i.id.clock<l;i=t[++n]){let i=t[n];if(s.clock+s.len<=i.id.clock)break;i instanceof ie&&i.deleted&&!i.keep&&r(i)&&i.gc(e,!1)}}}},ry=(t,e)=>{t.clients.forEach((t,r)=>{let n=e.clients.get(r);for(let e=t.length-1;e>=0;e--){let r=t[e],i=l.min(n.length-1,1+rs(n,r.clock+r.len-1));for(let t=i,e=n[t];t>0&&e.id.clock>=r.clock;e=n[t])t-=1+rg(n,t)}})},rw=(t,e,r)=>{rp(t,e,r),ry(t,e)},rm=(t,e)=>{if(e<t.length){let r=t[e],n=r.doc,i=n.store,s=r.deleteSet,o=r._mergeStructs;try{t9(s),r.afterState=rr(r.doc.store),n.emit("beforeObserverCalls",[r,n]);let t=[];r.changed.forEach((e,n)=>t.push(()=>{null!==n._item&&n._item.deleted||n._callObserver(r,e)})),t.push(()=>{r.changedParentTypes.forEach((e,n)=>{n._dEH.l.length>0&&(null===n._item||!n._item.deleted)&&((e=e.filter(t=>null===t.target._item||!t.target._item.deleted)).forEach(t=>{t.currentTarget=n,t._path=null}),e.sort((t,e)=>t.path.length-e.path.length),t.push(()=>{eB(n._dEH,e,r)}))}),t.push(()=>n.emit("afterTransaction",[r,n])),t.push(()=>{r._needFormattingCleanup&&nD(r)})}),(0,p.callAll)(t,[])}finally{n.gc&&rp(s,i,n.gcFilter),ry(s,i),r.afterState.forEach((t,e)=>{let n=r.beforeState.get(e)||0;if(n!==t){let t=i.clients.get(e),r=l.max(rs(t,n),1);for(let e=t.length-1;e>=r;)e-=1+rg(t,e)}});for(let t=o.length-1;t>=0;t--){let{client:e,clock:r}=o[t].id,n=i.clients.get(e),s=rs(n,r);!(s+1<n.length&&rg(n,s+1)>1)&&s>0&&rg(n,s)}if(r.local||r.afterState.get(n.clientID)===r.beforeState.get(n.clientID)||(tQ(tX,tz,"[yjs] ",t$,tW,"Changed the client-id because another client seems to be using it."),n.clientID=ec()),n.emit("afterTransactionCleanup",[r,n]),n._observers.has("update")){let t=new ep;rd(t,r)&&n.emit("update",[t.toUint8Array(),r.origin,n,r])}if(n._observers.has("updateV2")){let t=new ew;rd(t,r)&&n.emit("updateV2",[t.toUint8Array(),r.origin,n,r])}let{subdocsAdded:c,subdocsLoaded:a,subdocsRemoved:h}=r;(c.size>0||h.size>0||a.size>0)&&(c.forEach(t=>{t.clientID=n.clientID,null==t.collectionid&&(t.collectionid=n.collectionid),n.subdocs.add(t)}),h.forEach(t=>n.subdocs.delete(t)),n.emit("subdocs",[{loaded:a,added:c,removed:h},n,r]),h.forEach(t=>t.destroy())),t.length<=e+1?(n._transactionCleanups=[],n.emit("afterAllTransactions",[n,t])):rm(t,e+1)}}},rb=(t,e,r=null,n=!0)=>{let i=t._transactionCleanups,s=!1,l=null;null===t._transaction&&(s=!0,t._transaction=new ru(t,r,n),i.push(t._transaction),1===i.length&&t.emit("beforeAllTransactions",[t]),t.emit("beforeTransaction",[t._transaction,t]));try{l=e(t._transaction)}finally{if(s){let e=t._transaction===i[0];t._transaction=null,e&&rm(i,0)}}return l};class rk{constructor(t,e){this.insertions=e,this.deletions=t,this.meta=new Map}}let r_=(t,e,r)=>{t4(t,r.deletions,r=>{r instanceof ie&&e.scope.some(e=>e===t.doc||eP(e,r))&&n4(r,!1)})},rE=(t,e,r)=>{let n=null,i=t.doc,s=t.scope;rb(i,r=>{for(;e.length>0&&null===t.currStackItem;){let n=i.store,l=e.pop(),o=new Set,c=[],a=!1;t4(r,l.insertions,t=>{if(t instanceof ie){if(null!==t.redone){let{item:e,diff:i}=n3(n,t.id);i>0&&(e=rc(r,eM(e.id.client,e.id.clock+i))),t=e}!t.deleted&&s.some(e=>e===r.doc||eP(e,t))&&c.push(t)}}),t4(r,l.deletions,t=>{t instanceof ie&&s.some(e=>e===r.doc||eP(e,t))&&!t7(l.insertions,t.id)&&o.add(t)}),o.forEach(e=>{a=null!==it(r,e,o,l.insertions,t.ignoreRemoteMapChanges,t)||a});for(let e=c.length-1;e>=0;e--){let n=c[e];t.deleteFilter(n)&&(n.delete(r),a=!0)}t.currStackItem=a?l:null}r.changed.forEach((t,e)=>{t.has(null)&&e._searchMarker&&(e._searchMarker.length=0)}),n=r},t);let l=t.currStackItem;if(null!=l){let e=n.changedParentTypes;t.emit("stack-item-popped",[{stackItem:l,type:r,changedParentTypes:e,origin:t},t]),t.currStackItem=null}return l};class rv extends i.ObservableV2{constructor(t,{captureTimeout:e=500,captureTransaction:r=t=>!0,deleteFilter:n=()=>!0,trackedOrigins:i=new Set([null]),ignoreRemoteMapChanges:l=!1,doc:o=s.isArray(t)?t[0].doc:t instanceof ea?t:t.doc}={}){super(),this.scope=[],this.doc=o,this.addToScope(t),this.deleteFilter=n,i.add(this),this.trackedOrigins=i,this.captureTransaction=r,this.undoStack=[],this.redoStack=[],this.undoing=!1,this.redoing=!1,this.currStackItem=null,this.lastChange=0,this.ignoreRemoteMapChanges=l,this.captureTimeout=e,this.afterTransactionHandler=t=>{if(!this.captureTransaction(t)||!this.scope.some(e=>t.changedParentTypes.has(e)||e===this.doc)||!this.trackedOrigins.has(t.origin)&&(!t.origin||!this.trackedOrigins.has(t.origin.constructor)))return;let e=this.undoing,r=this.redoing,n=e?this.redoStack:this.undoStack;e?this.stopCapturing():r||this.clear(!1,!0);let i=new t3;t.afterState.forEach((e,r)=>{let n=t.beforeState.get(r)||0,s=e-n;s>0&&ee(i,r,n,s)});let s=tP.getUnixTime(),l=!1;if(this.lastChange>0&&s-this.lastChange<this.captureTimeout&&n.length>0&&!e&&!r){let e=n[n.length-1];e.deletions=et([e.deletions,t.deleteSet]),e.insertions=et([e.insertions,i])}else n.push(new rk(t.deleteSet,i)),l=!0;e||r||(this.lastChange=s),t4(t,t.deleteSet,e=>{e instanceof ie&&this.scope.some(r=>r===t.doc||eP(r,e))&&n4(e,!0)});let o=[{stackItem:n[n.length-1],origin:t.origin,type:e?"redo":"undo",changedParentTypes:t.changedParentTypes},this];l?this.emit("stack-item-added",o):this.emit("stack-item-updated",o)},this.doc.on("afterTransaction",this.afterTransactionHandler),this.doc.on("destroy",()=>{this.destroy()})}addToScope(t){let e=new Set(this.scope);(t=s.isArray(t)?t:[t]).forEach(t=>{e.has(t)||(e.add(t),(t instanceof r6?t.doc!==this.doc:t!==this.doc)&&t0("[yjs#509] Not same Y.Doc"),this.scope.push(t))})}addTrackedOrigin(t){this.trackedOrigins.add(t)}removeTrackedOrigin(t){this.trackedOrigins.delete(t)}clear(t=!0,e=!0){(t&&this.canUndo()||e&&this.canRedo())&&this.doc.transact(r=>{t&&(this.undoStack.forEach(t=>r_(r,this,t)),this.undoStack=[]),e&&(this.redoStack.forEach(t=>r_(r,this,t)),this.redoStack=[]),this.emit("stack-cleared",[{undoStackCleared:t,redoStackCleared:e}])})}stopCapturing(){this.lastChange=0}undo(){let t;this.undoing=!0;try{t=rE(this,this.undoStack,"undo")}finally{this.undoing=!1}return t}redo(){let t;this.redoing=!0;try{t=rE(this,this.redoStack,"redo")}finally{this.redoing=!1}return t}canUndo(){return this.undoStack.length>0}canRedo(){return this.redoStack.length>0}destroy(){this.trackedOrigins.delete(this),this.doc.off("afterTransaction",this.afterTransactionHandler),super.destroy()}}class rS{constructor(t,e){this.gen=function*(t){let e=a.readVarUint(t.restDecoder);for(let r=0;r<e;r++){let e=a.readVarUint(t.restDecoder),r=t.readClient(),n=a.readVarUint(t.restDecoder);for(let i=0;i<e;i++){let e=t.readInfo();if(10===e){let e=a.readVarUint(t.restDecoder);yield new is(eM(r,n),e),n+=e}else if((g.BITS5&e)!=0){let i=(e&(g.BIT7|g.BIT8))==0,s=new ie(eM(r,n),null,(e&g.BIT8)===g.BIT8?t.readLeftID():null,null,(e&g.BIT7)===g.BIT7?t.readRightID():null,i?t.readParentInfo()?t.readString():t.readLeftID():null,i&&(e&g.BIT6)===g.BIT6?t.readString():null,ir(t,e));yield s,n+=s.length}else{let e=t.readLen();yield new nF(eM(r,n),e),n+=e}}}}(t),this.curr=null,this.done=!1,this.filterSkips=e,this.next()}next(){do this.curr=this.gen.next().value||null;while(this.filterSkips&&null!==this.curr&&this.curr.constructor===is)return this.curr}}let rU=t=>rA(t,eu),rA=(t,e=ef)=>{let r=[],n=new e(a.createDecoder(t)),i=new rS(n,!1);for(let t=i.curr;null!==t;t=i.next())r.push(t);tQ("Structs: ",r),tQ("DeleteSet: ",es(n))},rC=t=>rI(t,eu),rI=(t,e=ef)=>{let r=[],n=new e(a.createDecoder(t)),i=new rS(n,!1);for(let t=i.curr;null!==t;t=i.next())r.push(t);return{structs:r,ds:es(n)}};class rD{constructor(t){this.currClient=0,this.startClock=0,this.written=0,this.encoder=t,this.clientStructs=[]}}let rx=t=>rR(t,eu,ep),rT=(t,e=ey,r=ef)=>{let n=new e,i=new rS(new r(a.createDecoder(t)),!1),s=i.curr;if(null===s)return c.writeVarUint(n.restEncoder,0),n.toUint8Array();{let t=0,e=s.id.client,r=0!==s.id.clock,l=r?0:s.id.clock+s.length;for(;null!==s;s=i.next())e!==s.id.client&&(0!==l&&(t++,c.writeVarUint(n.restEncoder,e),c.writeVarUint(n.restEncoder,l)),e=s.id.client,l=0,r=0!==s.id.clock),s.constructor===is&&(r=!0),r||(l=s.id.clock+s.length);0!==l&&(t++,c.writeVarUint(n.restEncoder,e),c.writeVarUint(n.restEncoder,l));let o=c.createEncoder();return c.writeVarUint(o,t),c.writeBinaryEncoder(o,n.restEncoder),n.restEncoder=o,n.toUint8Array()}},rB=t=>rT(t,eg,eu),rV=(t,e=ef)=>{let r=new Map,n=new Map,i=new rS(new e(a.createDecoder(t)),!1),s=i.curr;if(null!==s){let t=s.id.client,e=s.id.clock;for(r.set(t,e);null!==s;s=i.next())t!==s.id.client&&(n.set(t,e),r.set(s.id.client,s.id.clock),t=s.id.client),e=s.id.clock+s.length;n.set(t,e)}return{from:r,to:n}},rO=t=>rV(t,eu),rM=(t,e)=>{if(t.constructor===nF){let{client:r,clock:n}=t.id;return new nF(eM(r,n+e),t.length-e)}if(t.constructor===is){let{client:r,clock:n}=t.id;return new is(eM(r,n+e),t.length-e)}{let{client:r,clock:n}=t.id;return new ie(eM(r,n+e),null,eM(r,n+e-1),null,t.rightOrigin,t.parent,t.parentSub,t.content.splice(e))}},rR=(t,e=ef,r=ew)=>{if(1===t.length)return t[0];let n=t.map(t=>new e(a.createDecoder(t))),i=n.map(t=>new rS(t,!0)),s=null,l=new r,o=new rD(l);for(;(i=i.filter(t=>null!==t.curr)).sort((t,e)=>{if(t.curr.id.client!==e.curr.id.client)return e.curr.id.client-t.curr.id.client;{let r=t.curr.id.clock-e.curr.id.clock;return 0===r?t.curr.constructor===e.curr.constructor?0:t.curr.constructor===is?1:-1:r}}),0!==i.length;){let t=i[0],e=t.curr.id.client;if(null!==s){let r=t.curr,n=!1;for(;null!==r&&r.id.clock+r.length<=s.struct.id.clock+s.struct.length&&r.id.client>=s.struct.id.client;)r=t.next(),n=!0;if(null===r||r.id.client!==e||n&&r.id.clock>s.struct.id.clock+s.struct.length)continue;if(e!==s.struct.id.client)rF(o,s.struct,s.offset),s={struct:r,offset:0},t.next();else if(s.struct.id.clock+s.struct.length<r.id.clock)if(s.struct.constructor===is)s.struct.length=r.id.clock+r.length-s.struct.id.clock;else{rF(o,s.struct,s.offset);let t=r.id.clock-s.struct.id.clock-s.struct.length;s={struct:new is(eM(e,s.struct.id.clock+s.struct.length),t),offset:0}}else{let e=s.struct.id.clock+s.struct.length-r.id.clock;e>0&&(s.struct.constructor===is?s.struct.length-=e:r=rM(r,e)),s.struct.mergeWith(r)||(rF(o,s.struct,s.offset),s={struct:r,offset:0},t.next())}}else s={struct:t.curr,offset:0},t.next();for(let r=t.curr;null!==r&&r.id.client===e&&r.id.clock===s.struct.id.clock+s.struct.length&&r.constructor!==is;r=t.next())rF(o,s.struct,s.offset),s={struct:r,offset:0}}return null!==s&&(rF(o,s.struct,s.offset),s=null),rj(o),ei(l,et(n.map(t=>es(t)))),l.toUint8Array()},rL=(t,e,r=ef,n=ew)=>{let i=eA(e),s=new n,o=new rD(s),c=new r(a.createDecoder(t)),h=new rS(c,!1);for(;h.curr;){let t=h.curr,e=t.id.client,r=i.get(e)||0;if(h.curr.constructor===is){h.next();continue}if(t.id.clock+t.length>r)for(rF(o,t,l.max(r-t.id.clock,0)),h.next();h.curr&&h.curr.id.client===e;)rF(o,h.curr,0),h.next();else for(;h.curr&&h.curr.id.client===e&&h.curr.id.clock+h.curr.length<=r;)h.next()}return rj(o),ei(s,es(c)),s.toUint8Array()},rN=(t,e)=>rL(t,e,eu,ep),rP=t=>{t.written>0&&(t.clientStructs.push({written:t.written,restEncoder:c.toUint8Array(t.encoder.restEncoder)}),t.encoder.restEncoder=c.createEncoder(),t.written=0)},rF=(t,e,r)=>{t.written>0&&t.currClient!==e.id.client&&rP(t),0===t.written&&(t.currClient=e.id.client,t.encoder.writeClient(e.id.client),c.writeVarUint(t.encoder.restEncoder,e.id.clock+r)),e.write(t.encoder,r),t.written++},rj=t=>{rP(t);let e=t.encoder.restEncoder;c.writeVarUint(e,t.clientStructs.length);for(let r=0;r<t.clientStructs.length;r++){let n=t.clientStructs[r];c.writeVarUint(e,n.written),c.writeUint8Array(e,n.restEncoder)}},rz=(t,e,r,n)=>{let i=new r(a.createDecoder(t)),s=new rS(i,!1),l=new n,o=new rD(l);for(let t=s.curr;null!==t;t=s.next())rF(o,e(t),0);return rj(o),ei(l,es(i)),l.toUint8Array()},r$=({formatting:t=!0,subdocs:e=!0,yxml:r=!0}={})=>{let n=0,i=o.create(),s=o.create(),l=o.create(),c=o.create();return c.set(null,null),a=>{switch(a.constructor){case nF:case is:return a;case ie:{let h=a.content;switch(h.constructor){case nz:break;case n6:if(r){let t=h.type;t instanceof nM&&(t.nodeName=o.setIfUndefined(s,t.nodeName,()=>"node-"+n)),t instanceof nL&&(t.hookName=o.setIfUndefined(s,t.hookName,()=>"hook-"+n))}break;case nX:h.arr=h.arr.map(()=>n);break;case nj:h.content=new Uint8Array([n]);break;case nJ:e&&(h.opts={},h.doc.guid=n+"");break;case nq:h.embed={};break;case nY:t&&(h.key=o.setIfUndefined(l,h.key,()=>n+""),h.value=o.setIfUndefined(c,h.value,()=>({i:n})));break;case nW:h.arr=h.arr.map(()=>n);break;case nK:h.str=v.repeat(n%10+"",h.str.length);break;default:f.unexpectedCase()}return a.parentSub&&(a.parentSub=o.setIfUndefined(i,a.parentSub,()=>n+"")),n++,a}default:f.unexpectedCase()}}},rJ=(t,e)=>rz(t,r$(e),eu,ep),rq=(t,e)=>rz(t,r$(e),ef,ew),rY=t=>rz(t,p.id,eu,ew),rW=t=>rz(t,p.id,ef,ep),rG="You must not compute changes after the event-handler fired.";class rX{constructor(t,e){this.target=t,this.currentTarget=t,this.transaction=e,this._changes=null,this._keys=null,this._delta=null,this._path=null}get path(){return this._path||(this._path=rK(this.currentTarget,this.target))}deletes(t){return t7(this.transaction.deleteSet,t.id)}get keys(){if(null===this._keys){if(0===this.transaction.doc._transactionCleanups.length)throw f.create(rG);let t=new Map,e=this.target;this.transaction.changed.get(e).forEach(r=>{if(null!==r){let n,i,l=e._map.get(r);if(this.adds(l)){let t=l.left;for(;null!==t&&this.adds(t);)t=t.left;if(this.deletes(l))if(!(null!==t&&this.deletes(t)))return;else n="delete",i=s.last(t.content.getContent());else null!==t&&this.deletes(t)?(n="update",i=s.last(t.content.getContent())):(n="add",i=void 0)}else{if(!this.deletes(l))return;n="delete",i=s.last(l.content.getContent())}t.set(r,{action:n,oldValue:i})}}),this._keys=t}return this._keys}get delta(){return this.changes.delta}adds(t){return t.id.clock>=(this.transaction.beforeState.get(t.id.client)||0)}get changes(){let t=this._changes;if(null===t){if(0===this.transaction.doc._transactionCleanups.length)throw f.create(rG);let e=this.target,r=y.create(),n=y.create(),i=[];if(t={added:r,deleted:n,delta:i,keys:this.keys},this.transaction.changed.get(e).has(null)){let t=null,s=()=>{t&&i.push(t)};for(let i=e._start;null!==i;i=i.right)i.deleted?this.deletes(i)&&!this.adds(i)&&((null===t||void 0===t.delete)&&(s(),t={delete:0}),t.delete+=i.length,n.add(i)):this.adds(i)?((null===t||void 0===t.insert)&&(s(),t={insert:[]}),t.insert=t.insert.concat(i.content.getContent()),r.add(i)):((null===t||void 0===t.retain)&&(s(),t={retain:0}),t.retain+=i.length);null!==t&&void 0===t.retain&&s()}this._changes=t}return t}}let rK=(t,e)=>{let r=[];for(;null!==e._item&&e!==t;){if(null!==e._item.parentSub)r.unshift(e._item.parentSub);else{let t=0,n=e._item.parent._start;for(;n!==e._item&&null!==n;)!n.deleted&&n.countable&&(t+=n.length),n=n.right;r.unshift(t)}e=e._item.parent}return r},rH=()=>{t0("Invalid access: Add Yjs type to a document before reading data.")},rZ=0;class rQ{constructor(t,e){t.marker=!0,this.p=t,this.index=e,this.timestamp=rZ++}}let r0=(t,e,r)=>{t.p.marker=!1,t.p=e,e.marker=!0,t.index=r,t.timestamp=rZ++},r1=(t,e)=>{if(null===t._start||0===e||null===t._searchMarker)return null;let r=0===t._searchMarker.length?null:t._searchMarker.reduce((t,r)=>l.abs(e-t.index)<l.abs(e-r.index)?t:r),n=t._start,i=0;for(null!==r&&(n=r.p,i=r.index,r.timestamp=rZ++);null!==n.right&&i<e;){if(!n.deleted&&n.countable){if(e<i+n.length)break;i+=n.length}n=n.right}for(;null!==n.left&&i>e;)!(n=n.left).deleted&&n.countable&&(i-=n.length);for(;null!==n.left&&n.left.id.client===n.id.client&&n.left.id.clock+n.left.length===n.id.clock;)!(n=n.left).deleted&&n.countable&&(i-=n.length);if(null!==r&&l.abs(r.index-i)<n.parent.length/80)return r0(r,n,i),r;var s=t._searchMarker,o=n,c=i;if(s.length>=80){let t=s.reduce((t,e)=>t.timestamp<e.timestamp?t:e);return r0(t,o,c),t}{let t=new rQ(o,c);return s.push(t),t}},r2=(t,e,r)=>{for(let n=t.length-1;n>=0;n--){let i=t[n];if(r>0){let e=i.p;for(e.marker=!1;e&&(e.deleted||!e.countable);)(e=e.left)&&!e.deleted&&e.countable&&(i.index-=e.length);if(null===e||!0===e.marker){t.splice(n,1);continue}i.p=e,e.marker=!0}(e<i.index||r>0&&e===i.index)&&(i.index=l.max(e,i.index+r))}},r8=t=>{t.doc??rH();let e=t._start,r=[];for(;e;)r.push(e),e=e.right;return r},r5=(t,e,r)=>{let n=t,i=e.changedParentTypes;for(;o.setIfUndefined(i,t,()=>[]).push(r),null!==t._item;)t=t._item.parent;eB(n._eH,r,e)};class r6{constructor(){this._item=null,this._map=new Map,this._start=null,this.doc=null,this._length=0,this._eH=ex(),this._dEH=ex(),this._searchMarker=null}get parent(){return this._item?this._item.parent:null}_integrate(t,e){this.doc=t,this._item=e}_copy(){throw f.methodUnimplemented()}clone(){throw f.methodUnimplemented()}_write(t){}get _first(){let t=this._start;for(;null!==t&&t.deleted;)t=t.right;return t}_callObserver(t,e){!t.local&&this._searchMarker&&(this._searchMarker.length=0)}observe(t){let e;e=this._eH,e.l.push(t)}observeDeep(t){let e;e=this._dEH,e.l.push(t)}unobserve(t){eT(this._eH,t)}unobserveDeep(t){eT(this._dEH,t)}toJSON(){}}let r3=(t,e,r)=>{t.doc??rH(),e<0&&(e=t._length+e),r<0&&(r=t._length+r);let n=r-e,i=[],s=t._start;for(;null!==s&&n>0;){if(s.countable&&!s.deleted){let t=s.content.getContent();if(t.length<=e)e-=t.length;else{for(let r=e;r<t.length&&n>0;r++)i.push(t[r]),n--;e=0}}s=s.right}return i},r4=t=>{t.doc??rH();let e=[],r=t._start;for(;null!==r;){if(r.countable&&!r.deleted){let t=r.content.getContent();for(let r=0;r<t.length;r++)e.push(t[r])}r=r.right}return e},r7=(t,e)=>{let r=[],n=t._start;for(;null!==n;){if(n.countable&&e4(n,e)){let t=n.content.getContent();for(let e=0;e<t.length;e++)r.push(t[e])}n=n.right}return r},r9=(t,e)=>{let r=0,n=t._start;for(t.doc??rH();null!==n;){if(n.countable&&!n.deleted){let i=n.content.getContent();for(let n=0;n<i.length;n++)e(i[n],r++,t)}n=n.right}},nt=(t,e)=>{let r=[];return r9(t,(n,i)=>{r.push(e(n,i,t))}),r},ne=(t,e)=>{t.doc??rH();let r=r1(t,e),n=t._start;for(null!==r&&(n=r.p,e-=r.index);null!==n;n=n.right)if(!n.deleted&&n.countable){if(e<n.length)return n.content.getContent()[e];e-=n.length}},nr=(t,e,r,n)=>{let i=r,s=t.doc,l=s.clientID,o=s.store,c=null===r?e._start:r.right,a=[],h=()=>{a.length>0&&((i=new ie(eM(l,rn(o,l)),i,i&&i.lastId,c,c&&c.id,e,null,new nX(a))).integrate(t,0),a=[])};n.forEach(r=>{if(null===r)a.push(r);else switch(r.constructor){case Number:case Object:case Boolean:case Array:case String:a.push(r);break;default:switch(h(),r.constructor){case Uint8Array:case ArrayBuffer:(i=new ie(eM(l,rn(o,l)),i,i&&i.lastId,c,c&&c.id,e,null,new nj(new Uint8Array(r)))).integrate(t,0);break;case ea:(i=new ie(eM(l,rn(o,l)),i,i&&i.lastId,c,c&&c.id,e,null,new nJ(r))).integrate(t,0);break;default:if(r instanceof r6)(i=new ie(eM(l,rn(o,l)),i,i&&i.lastId,c,c&&c.id,e,null,new n6(r))).integrate(t,0);else throw Error("Unexpected content type in insert operation")}}}),h()},nn=(t,e,r,n)=>{if(r>e._length)throw f.create("Length exceeded!");if(0===r)return e._searchMarker&&r2(e._searchMarker,r,n.length),nr(t,e,null,n);let i=r,s=r1(e,r),l=e._start;for(null!==s&&(l=s.p,0==(r-=s.index)&&(r+=(l=l.prev)&&l.countable&&!l.deleted?l.length:0));null!==l;l=l.right)if(!l.deleted&&l.countable){if(r<=l.length){r<l.length&&rc(t,eM(l.id.client,l.id.clock+r));break}r-=l.length}return e._searchMarker&&r2(e._searchMarker,i,n.length),nr(t,e,l,n)},ni=(t,e,r,n)=>{if(0===n)return;let i=r,s=n,l=r1(e,r),o=e._start;for(null!==l&&(o=l.p,r-=l.index);null!==o&&r>0;o=o.right)!o.deleted&&o.countable&&(r<o.length&&rc(t,eM(o.id.client,o.id.clock+r)),r-=o.length);for(;n>0&&null!==o;)o.deleted||(n<o.length&&rc(t,eM(o.id.client,o.id.clock+n)),o.delete(t),n-=o.length),o=o.right;if(n>0)throw f.create("Length exceeded!");e._searchMarker&&r2(e._searchMarker,i,-s+n)},ns=(t,e,r)=>{let n=e._map.get(r);void 0!==n&&n.delete(t)},nl=(t,e,r,n)=>{let i,s=e._map.get(r)||null,l=t.doc,o=l.clientID;if(null==n)i=new nX([n]);else switch(n.constructor){case Number:case Object:case Boolean:case Array:case String:case Date:case BigInt:i=new nX([n]);break;case Uint8Array:i=new nj(n);break;case ea:i=new nJ(n);break;default:if(n instanceof r6)i=new n6(n);else throw Error("Unexpected content type")}new ie(eM(o,rn(l.store,o)),s,s&&s.lastId,null,null,e,r,i).integrate(t,0)},no=(t,e)=>{t.doc??rH();let r=t._map.get(e);return void 0===r||r.deleted?void 0:r.content.getContent()[r.length-1]},nc=t=>{let e={};return t.doc??rH(),t._map.forEach((t,r)=>{t.deleted||(e[r]=t.content.getContent()[t.length-1])}),e},na=(t,e)=>{t.doc??rH();let r=t._map.get(e);return void 0!==r&&!r.deleted},nh=(t,e,r)=>{let n=t._map.get(e)||null;for(;null!==n&&(!r.sv.has(n.id.client)||n.id.clock>=(r.sv.get(n.id.client)||0));)n=n.left;return null!==n&&e4(n,r)?n.content.getContent()[n.length-1]:void 0},nu=(t,e)=>{let r={};return t._map.forEach((t,n)=>{let i=t;for(;null!==i&&(!e.sv.has(i.id.client)||i.id.clock>=(e.sv.get(i.id.client)||0));)i=i.left;null!==i&&e4(i,e)&&(r[n]=i.content.getContent()[i.length-1])}),r},nd=t=>{let e,r;return t.doc??rH(),e=t._map.entries(),r=t=>!t[1].deleted,t2(()=>{let t;do t=e.next();while(!t.done&&!r(t.value))return t})};class nf extends rX{}class ng extends r6{constructor(){super(),this._prelimContent=[],this._searchMarker=[]}static from(t){let e=new ng;return e.push(t),e}_integrate(t,e){super._integrate(t,e),this.insert(0,this._prelimContent),this._prelimContent=null}_copy(){return new ng}clone(){let t=new ng;return t.insert(0,this.toArray().map(t=>t instanceof r6?t.clone():t)),t}get length(){return this.doc??rH(),this._length}_callObserver(t,e){super._callObserver(t,e),r5(this,t,new nf(this,t))}insert(t,e){null!==this.doc?rb(this.doc,r=>{nn(r,this,t,e)}):this._prelimContent.splice(t,0,...e)}push(t){null!==this.doc?rb(this.doc,e=>{((t,e,r)=>{let n=(e._searchMarker||[]).reduce((t,e)=>e.index>t.index?e:t,{index:0,p:e._start}).p;if(n)for(;n.right;)n=n.right;return nr(t,e,n,r)})(e,this,t)}):this._prelimContent.push(...t)}unshift(t){this.insert(0,t)}delete(t,e=1){null!==this.doc?rb(this.doc,r=>{ni(r,this,t,e)}):this._prelimContent.splice(t,e)}get(t){return ne(this,t)}toArray(){return r4(this)}slice(t=0,e=this.length){return r3(this,t,e)}toJSON(){return this.map(t=>t instanceof r6?t.toJSON():t)}map(t){return nt(this,t)}forEach(t){r9(this,t)}[Symbol.iterator](){let t,e,r;return t=this._start,e=null,r=0,{[Symbol.iterator](){return this},next:()=>{if(null===e){for(;null!==t&&t.deleted;)t=t.right;if(null===t)return{done:!0,value:void 0};e=t.content.getContent(),r=0,t=t.right}let n=e[r++];return e.length<=r&&(e=null),{done:!1,value:n}}}}_write(t){t.writeTypeRef(nZ)}}class np extends rX{constructor(t,e,r){super(t,e),this.keysChanged=r}}class ny extends r6{constructor(t){super(),this._prelimContent=null,void 0===t?this._prelimContent=new Map:this._prelimContent=new Map(t)}_integrate(t,e){super._integrate(t,e),this._prelimContent.forEach((t,e)=>{this.set(e,t)}),this._prelimContent=null}_copy(){return new ny}clone(){let t=new ny;return this.forEach((e,r)=>{t.set(r,e instanceof r6?e.clone():e)}),t}_callObserver(t,e){r5(this,t,new np(this,t,e))}toJSON(){this.doc??rH();let t={};return this._map.forEach((e,r)=>{if(!e.deleted){let n=e.content.getContent()[e.length-1];t[r]=n instanceof r6?n.toJSON():n}}),t}get size(){return[...nd(this)].length}keys(){return t8(nd(this),t=>t[0])}values(){return t8(nd(this),t=>t[1].content.getContent()[t[1].length-1])}entries(){return t8(nd(this),t=>[t[0],t[1].content.getContent()[t[1].length-1]])}forEach(t){this.doc??rH(),this._map.forEach((e,r)=>{e.deleted||t(e.content.getContent()[e.length-1],r,this)})}[Symbol.iterator](){return this.entries()}delete(t){null!==this.doc?rb(this.doc,e=>{ns(e,this,t)}):this._prelimContent.delete(t)}set(t,e){return null!==this.doc?rb(this.doc,r=>{nl(r,this,t,e)}):this._prelimContent.set(t,e),e}get(t){return no(this,t)}has(t){return na(this,t)}clear(){null!==this.doc?rb(this.doc,t=>{this.forEach(function(e,r,n){ns(t,n,r)})}):this._prelimContent.clear()}_write(t){t.writeTypeRef(nQ)}}let nw=(t,e)=>t===e||"object"==typeof t&&"object"==typeof e&&t&&e&&_.equalFlat(t,e);class nm{constructor(t,e,r,n){this.left=t,this.right=e,this.index=r,this.currentAttributes=n}forward(){null===this.right&&f.unexpectedCase(),this.right.content.constructor===nY?this.right.deleted||nE(this.currentAttributes,this.right.content):this.right.deleted||(this.index+=this.right.length),this.left=this.right,this.right=this.right.right}}let nb=(t,e,r)=>{for(;null!==e.right&&r>0;)e.right.content.constructor===nY?e.right.deleted||nE(e.currentAttributes,e.right.content):e.right.deleted||(r<e.right.length&&rc(t,eM(e.right.id.client,e.right.id.clock+r)),e.index+=e.right.length,r-=e.right.length),e.left=e.right,e.right=e.right.right;return e},nk=(t,e,r,n)=>{let i=new Map,s=n?r1(e,r):null;return s?nb(t,new nm(s.p.left,s.p,s.index,i),r-s.index):nb(t,new nm(null,e._start,0,i),r)},n_=(t,e,r,n)=>{for(;null!==r.right&&(!0===r.right.deleted||r.right.content.constructor===nY&&nw(n.get(r.right.content.key),r.right.content.value));)r.right.deleted||n.delete(r.right.content.key),r.forward();let i=t.doc,s=i.clientID;n.forEach((n,l)=>{let o=r.left,c=r.right,a=new ie(eM(s,rn(i.store,s)),o,o&&o.lastId,c,c&&c.id,e,null,new nY(l,n));a.integrate(t,0),r.right=a,r.forward()})},nE=(t,e)=>{let{key:r,value:n}=e;null===n?t.delete(r):t.set(r,n)},nv=(t,e)=>{for(;null!==t.right&&(t.right.deleted||t.right.content.constructor===nY&&nw(e[t.right.content.key]??null,t.right.content.value));){;t.forward()}},nS=(t,e,r,n)=>{let i=t.doc,s=i.clientID,l=new Map;for(let o in n){let c=n[o],a=r.currentAttributes.get(o)??null;if(!nw(a,c)){l.set(o,a);let{left:n,right:h}=r;r.right=new ie(eM(s,rn(i.store,s)),n,n&&n.lastId,h,h&&h.id,e,null,new nY(o,c)),r.right.integrate(t,0),r.forward()}}return l},nU=(t,e,r,n,i)=>{r.currentAttributes.forEach((t,e)=>{void 0===i[e]&&(i[e]=null)});let s=t.doc,l=s.clientID;nv(r,i);let o=nS(t,e,r,i),c=n.constructor===String?new nK(n):n instanceof r6?new n6(n):new nq(n),{left:a,right:h,index:u}=r;e._searchMarker&&r2(e._searchMarker,r.index,c.getLength()),(h=new ie(eM(l,rn(s.store,l)),a,a&&a.lastId,h,h&&h.id,e,null,c)).integrate(t,0),r.right=h,r.index=u,r.forward(),n_(t,e,r,o)},nA=(t,e,r,n,i)=>{let s=t.doc,l=s.clientID;nv(r,i);let o=nS(t,e,r,i);for(;null!==r.right&&(n>0||o.size>0&&(r.right.deleted||r.right.content.constructor===nY));){if(!r.right.deleted)if(r.right.content.constructor===nY){let{key:e,value:s}=r.right.content,l=i[e];if(void 0!==l){if(nw(l,s))o.delete(e);else{if(0===n)break;o.set(e,s)}r.right.delete(t)}else r.currentAttributes.set(e,s)}else n<r.right.length&&rc(t,eM(r.right.id.client,r.right.id.clock+n)),n-=r.right.length;r.forward()}if(n>0){let i="";for(;n>0;n--)i+="\n";r.right=new ie(eM(l,rn(s.store,l)),r.left,r.left&&r.left.lastId,r.right,r.right&&r.right.id,e,null,new nK(i)),r.right.integrate(t,0),r.forward()}n_(t,e,r,o)},nC=(t,e,r,n,i)=>{let s=e,l=o.create();for(;s&&(!s.countable||s.deleted);){if(!s.deleted&&s.content.constructor===nY){let t=s.content;l.set(t.key,t)}s=s.right}let c=0,a=!1;for(;e!==s;){if(r===e&&(a=!0),!e.deleted){let r=e.content;if(r.constructor===nY){let{key:s,value:o}=r,h=n.get(s)??null;(l.get(s)!==r||h===o)&&(e.delete(t),c++,a||(i.get(s)??null)!==o||h===o||(null===h?i.delete(s):i.set(s,h))),a||e.deleted||nE(i,r)}}e=e.right}return c},nI=t=>{let e=0;return rb(t.doc,r=>{let n=t._start,i=t._start,s=o.create(),l=o.copy(s);for(;i;)!1===i.deleted&&(i.content.constructor===nY?nE(l,i.content):(e+=nC(r,n,i,s,l),s=o.copy(l),n=i)),i=i.right}),e},nD=t=>{let e=new Set,r=t.doc;for(let[n,i]of t.afterState.entries()){let s=t.beforeState.get(n)||0;i!==s&&rh(t,r.store.clients.get(n),s,i,t=>{t.deleted||t.content.constructor!==nY||t.constructor===nF||e.add(t.parent)})}rb(r,r=>{for(let n of(t4(t,t.deleteSet,t=>{if(t instanceof nF||!t.parent._hasFormatting||e.has(t.parent))return;let n=t.parent;if(t.content.constructor===nY)e.add(n);else{for(var i=t;i&&i.right&&(i.right.deleted||!i.right.countable);)i=i.right;let e=new Set;for(;i&&(i.deleted||!i.countable);){if(!i.deleted&&i.content.constructor===nY){let t=i.content.key;e.has(t)?i.delete(r):e.add(t)}i=i.left}}}),e))nI(n)})},nx=(t,e,r)=>{let n=r,i=o.copy(e.currentAttributes),s=e.right;for(;r>0&&null!==e.right;){if(!1===e.right.deleted)switch(e.right.content.constructor){case n6:case nq:case nK:r<e.right.length&&rc(t,eM(e.right.id.client,e.right.id.clock+r)),r-=e.right.length,e.right.delete(t)}e.forward()}s&&nC(t,s,e.right,i,e.currentAttributes);let l=(e.left||e.right).parent;return l._searchMarker&&r2(l._searchMarker,e.index,-n+r),e};class nT extends rX{constructor(t,e,r){super(t,e),this.childListChanged=!1,this.keysChanged=new Set,r.forEach(t=>{null===t?this.childListChanged=!0:this.keysChanged.add(t)})}get changes(){if(null===this._changes){let t={keys:this.keys,delta:this.delta,added:new Set,deleted:new Set};this._changes=t}return this._changes}get delta(){if(null===this._delta){let t=this.target.doc,e=[];rb(t,t=>{let r=new Map,n=new Map,i=this.target._start,s=null,l={},o="",c=0,a=0,h=()=>{if(null!==s){let t=null;switch(s){case"delete":a>0&&(t={delete:a}),a=0;break;case"insert":("object"==typeof o||o.length>0)&&(t={insert:o},r.size>0&&(t.attributes={},r.forEach((e,r)=>{null!==e&&(t.attributes[r]=e)}))),o="";break;case"retain":c>0&&(t={retain:c},_.isEmpty(l)||(t.attributes=_.assign({},l))),c=0}t&&e.push(t),s=null}};for(;null!==i;){switch(i.content.constructor){case n6:case nq:this.adds(i)?this.deletes(i)||(h(),s="insert",o=i.content.getContent()[0],h()):this.deletes(i)?("delete"!==s&&(h(),s="delete"),a+=1):i.deleted||("retain"!==s&&(h(),s="retain"),c+=1);break;case nK:this.adds(i)?this.deletes(i)||("insert"!==s&&(h(),s="insert"),o+=i.content.str):this.deletes(i)?("delete"!==s&&(h(),s="delete"),a+=i.length):i.deleted||("retain"!==s&&(h(),s="retain"),c+=i.length);break;case nY:{let{key:e,value:o}=i.content;if(this.adds(i))this.deletes(i)||(nw(r.get(e)??null,o)?null!==o&&i.delete(t):("retain"===s&&h(),nw(o,n.get(e)??null)?delete l[e]:l[e]=o));else if(this.deletes(i)){n.set(e,o);let t=r.get(e)??null;nw(t,o)||("retain"===s&&h(),l[e]=t)}else if(!i.deleted){n.set(e,o);let r=l[e];void 0!==r&&(nw(r,o)?null!==r&&i.delete(t):("retain"===s&&h(),null===o?delete l[e]:l[e]=o))}i.deleted||("insert"===s&&h(),nE(r,i.content))}}i=i.right}for(h();e.length>0;){let t=e[e.length-1];if(void 0!==t.retain&&void 0===t.attributes)e.pop();else break}}),this._delta=e}return this._delta}}class nB extends r6{constructor(t){super(),this._pending=void 0!==t?[()=>this.insert(0,t)]:[],this._searchMarker=[],this._hasFormatting=!1}get length(){return this.doc??rH(),this._length}_integrate(t,e){super._integrate(t,e);try{this._pending.forEach(t=>t())}catch(t){console.error(t)}this._pending=null}_copy(){return new nB}clone(){let t=new nB;return t.applyDelta(this.toDelta()),t}_callObserver(t,e){super._callObserver(t,e);let r=new nT(this,t,e);r5(this,t,r),!t.local&&this._hasFormatting&&(t._needFormattingCleanup=!0)}toString(){this.doc??rH();let t="",e=this._start;for(;null!==e;)!e.deleted&&e.countable&&e.content.constructor===nK&&(t+=e.content.str),e=e.right;return t}toJSON(){return this.toString()}applyDelta(t,{sanitize:e=!0}={}){null!==this.doc?rb(this.doc,r=>{let n=new nm(null,this._start,0,new Map);for(let i=0;i<t.length;i++){let s=t[i];if(void 0!==s.insert){let l=e||"string"!=typeof s.insert||i!==t.length-1||null!==n.right||"\n"!==s.insert.slice(-1)?s.insert:s.insert.slice(0,-1);("string"!=typeof l||l.length>0)&&nU(r,this,n,l,s.attributes||{})}else void 0!==s.retain?nA(r,this,n,s.retain,s.attributes||{}):void 0!==s.delete&&nx(r,n,s.delete)}}):this._pending.push(()=>this.applyDelta(t))}toDelta(t,e,r){this.doc??rH();let n=[],i=new Map,s=this.doc,l="",o=this._start;function c(){if(l.length>0){let t={},e=!1;i.forEach((r,n)=>{e=!0,t[n]=r});let r={insert:l};e&&(r.attributes=t),n.push(r),l=""}}let a=()=>{for(;null!==o;){if(e4(o,t)||void 0!==e&&e4(o,e))switch(o.content.constructor){case nK:{let n=i.get("ychange");void 0===t||e4(o,t)?void 0===e||e4(o,e)?void 0!==n&&(c(),i.delete("ychange")):(void 0===n||n.user!==o.id.client||"added"!==n.type)&&(c(),i.set("ychange",r?r("added",o.id):{type:"added"})):(void 0===n||n.user!==o.id.client||"removed"!==n.type)&&(c(),i.set("ychange",r?r("removed",o.id):{type:"removed"})),l+=o.content.str;break}case n6:case nq:{c();let t={insert:o.content.getContent()[0]};if(i.size>0){let e={};t.attributes=e,i.forEach((t,r)=>{e[r]=t})}n.push(t);break}case nY:e4(o,t)&&(c(),nE(i,o.content))}o=o.right}c()};return t||e?rb(s,r=>{t&&e7(r,t),e&&e7(r,e),a()},"cleanup"):a(),n}insert(t,e,r){if(e.length<=0)return;let n=this.doc;null!==n?rb(n,n=>{let i=nk(n,this,t,!r);r||(r={},i.currentAttributes.forEach((t,e)=>{r[e]=t})),nU(n,this,i,e,r)}):this._pending.push(()=>this.insert(t,e,r))}insertEmbed(t,e,r){let n=this.doc;null!==n?rb(n,n=>{let i=nk(n,this,t,!r);nU(n,this,i,e,r||{})}):this._pending.push(()=>this.insertEmbed(t,e,r||{}))}delete(t,e){if(0===e)return;let r=this.doc;null!==r?rb(r,r=>{nx(r,nk(r,this,t,!0),e)}):this._pending.push(()=>this.delete(t,e))}format(t,e,r){if(0===e)return;let n=this.doc;null!==n?rb(n,n=>{let i=nk(n,this,t,!1);null!==i.right&&nA(n,this,i,e,r)}):this._pending.push(()=>this.format(t,e,r))}removeAttribute(t){null!==this.doc?rb(this.doc,e=>{ns(e,this,t)}):this._pending.push(()=>this.removeAttribute(t))}setAttribute(t,e){null!==this.doc?rb(this.doc,r=>{nl(r,this,t,e)}):this._pending.push(()=>this.setAttribute(t,e))}getAttribute(t){return no(this,t)}getAttributes(){return nc(this)}_write(t){t.writeTypeRef(n0)}}class nV{constructor(t,e=()=>!0){this._filter=e,this._root=t,this._currentNode=t._start,this._firstCall=!0,t.doc??rH()}[Symbol.iterator](){return this}next(){let t=this._currentNode,e=t&&t.content&&t.content.type;if(null!==t&&(!this._firstCall||t.deleted||!this._filter(e)))do if(e=t.content.type,t.deleted||e.constructor!==nM&&e.constructor!==nO||null===e._start)for(;null!==t;){let e=t.next;if(null!==e){t=e;break}t=t.parent===this._root?null:t.parent._item}else t=e._start;while(null!==t&&(t.deleted||!this._filter(t.content.type)))return(this._firstCall=!1,null===t)?{value:void 0,done:!0}:(this._currentNode=t,{value:t.content.type,done:!1})}}class nO extends r6{constructor(){super(),this._prelimContent=[]}get firstChild(){let t=this._first;return t?t.content.getContent()[0]:null}_integrate(t,e){super._integrate(t,e),this.insert(0,this._prelimContent),this._prelimContent=null}_copy(){return new nO}clone(){let t=new nO;return t.insert(0,this.toArray().map(t=>t instanceof r6?t.clone():t)),t}get length(){return this.doc??rH(),null===this._prelimContent?this._length:this._prelimContent.length}createTreeWalker(t){return new nV(this,t)}querySelector(t){t=t.toUpperCase();let e=new nV(this,e=>e.nodeName&&e.nodeName.toUpperCase()===t).next();return e.done?null:e.value}querySelectorAll(t){return t=t.toUpperCase(),s.from(new nV(this,e=>e.nodeName&&e.nodeName.toUpperCase()===t))}_callObserver(t,e){r5(this,t,new nR(this,e,t))}toString(){return nt(this,t=>t.toString()).join("")}toJSON(){return this.toString()}toDOM(t=document,e={},r){let n=t.createDocumentFragment();return void 0!==r&&r._createAssociation(n,this),r9(this,i=>{n.insertBefore(i.toDOM(t,e,r),null)}),n}insert(t,e){null!==this.doc?rb(this.doc,r=>{nn(r,this,t,e)}):this._prelimContent.splice(t,0,...e)}insertAfter(t,e){if(null!==this.doc)rb(this.doc,r=>{nr(r,this,t&&t instanceof r6?t._item:t,e)});else{let r=this._prelimContent,n=null===t?0:r.findIndex(e=>e===t)+1;if(0===n&&null!==t)throw f.create("Reference item not found");r.splice(n,0,...e)}}delete(t,e=1){null!==this.doc?rb(this.doc,r=>{ni(r,this,t,e)}):this._prelimContent.splice(t,e)}toArray(){return r4(this)}push(t){this.insert(this.length,t)}unshift(t){this.insert(0,t)}get(t){return ne(this,t)}slice(t=0,e=this.length){return r3(this,t,e)}forEach(t){r9(this,t)}_write(t){t.writeTypeRef(n2)}}class nM extends nO{constructor(t="UNDEFINED"){super(),this.nodeName=t,this._prelimAttrs=new Map}get nextSibling(){let t=this._item?this._item.next:null;return t?t.content.type:null}get prevSibling(){let t=this._item?this._item.prev:null;return t?t.content.type:null}_integrate(t,e){super._integrate(t,e),this._prelimAttrs.forEach((t,e)=>{this.setAttribute(e,t)}),this._prelimAttrs=null}_copy(){return new nM(this.nodeName)}clone(){let t=new nM(this.nodeName),e=this.getAttributes();return _.forEach(e,(e,r)=>{t.setAttribute(r,e)}),t.insert(0,this.toArray().map(t=>t instanceof r6?t.clone():t)),t}toString(){let t=this.getAttributes(),e=[],r=[];for(let e in t)r.push(e);r.sort();let n=r.length;for(let i=0;i<n;i++){let n=r[i];e.push(n+'="'+t[n]+'"')}let i=this.nodeName.toLocaleLowerCase(),s=e.length>0?" "+e.join(" "):"";return`<${i}${s}>${super.toString()}</${i}>`}removeAttribute(t){null!==this.doc?rb(this.doc,e=>{ns(e,this,t)}):this._prelimAttrs.delete(t)}setAttribute(t,e){null!==this.doc?rb(this.doc,r=>{nl(r,this,t,e)}):this._prelimAttrs.set(t,e)}getAttribute(t){return no(this,t)}hasAttribute(t){return na(this,t)}getAttributes(t){return t?nu(this,t):nc(this)}toDOM(t=document,e={},r){let n=t.createElement(this.nodeName),i=this.getAttributes();for(let t in i){let e=i[t];"string"==typeof e&&n.setAttribute(t,e)}return r9(this,i=>{n.appendChild(i.toDOM(t,e,r))}),void 0!==r&&r._createAssociation(n,this),n}_write(t){t.writeTypeRef(n1),t.writeKey(this.nodeName)}}class nR extends rX{constructor(t,e,r){super(t,r),this.childListChanged=!1,this.attributesChanged=new Set,e.forEach(t=>{null===t?this.childListChanged=!0:this.attributesChanged.add(t)})}}class nL extends ny{constructor(t){super(),this.hookName=t}_copy(){return new nL(this.hookName)}clone(){let t=new nL(this.hookName);return this.forEach((e,r)=>{t.set(r,e)}),t}toDOM(t=document,e={},r){let n,i=e[this.hookName];return(n=void 0!==i?i.createDom(this):document.createElement(this.hookName)).setAttribute("data-yjs-hook",this.hookName),void 0!==r&&r._createAssociation(n,this),n}_write(t){t.writeTypeRef(n8),t.writeKey(this.hookName)}}class nN extends nB{get nextSibling(){let t=this._item?this._item.next:null;return t?t.content.type:null}get prevSibling(){let t=this._item?this._item.prev:null;return t?t.content.type:null}_copy(){return new nN}clone(){let t=new nN;return t.applyDelta(this.toDelta()),t}toDOM(t=document,e,r){let n=t.createTextNode(this.toString());return void 0!==r&&r._createAssociation(n,this),n}toString(){return this.toDelta().map(t=>{let e=[];for(let r in t.attributes){let n=[];for(let e in t.attributes[r])n.push({key:e,value:t.attributes[r][e]});n.sort((t,e)=>t.key<e.key?-1:1),e.push({nodeName:r,attrs:n})}e.sort((t,e)=>t.nodeName<e.nodeName?-1:1);let r="";for(let t=0;t<e.length;t++){let n=e[t];r+=`<${n.nodeName}`;for(let t=0;t<n.attrs.length;t++){let e=n.attrs[t];r+=` ${e.key}="${e.value}"`}r+=">"}r+=t.insert;for(let t=e.length-1;t>=0;t--)r+=`</${e[t].nodeName}>`;return r}).join("")}toJSON(){return this.toString()}_write(t){t.writeTypeRef(n5)}}class nP{constructor(t,e){this.id=t,this.length=e}get deleted(){throw f.methodUnimplemented()}mergeWith(t){return!1}write(t,e,r){throw f.methodUnimplemented()}integrate(t,e){throw f.methodUnimplemented()}}class nF extends nP{get deleted(){return!0}delete(){}mergeWith(t){return this.constructor===t.constructor&&(this.length+=t.length,!0)}integrate(t,e){e>0&&(this.id.clock+=e,this.length-=e),ri(t.doc.store,this)}write(t,e){t.writeInfo(0),t.writeLen(this.length-e)}getMissing(t,e){return null}}class nj{constructor(t){this.content=t}getLength(){return 1}getContent(){return[this.content]}isCountable(){return!0}copy(){return new nj(this.content)}splice(t){throw f.methodUnimplemented()}mergeWith(t){return!1}integrate(t,e){}delete(t){}gc(t){}write(t,e){t.writeBuf(this.content)}getRef(){return 3}}class nz{constructor(t){this.len=t}getLength(){return this.len}getContent(){return[]}isCountable(){return!1}copy(){return new nz(this.len)}splice(t){let e=new nz(this.len-t);return this.len=t,e}mergeWith(t){return this.len+=t.len,!0}integrate(t,e){ee(t.deleteSet,e.id.client,e.id.clock,this.len),e.markDeleted()}delete(t){}gc(t){}write(t,e){t.writeLen(this.len-e)}getRef(){return 1}}let n$=(t,e)=>new ea({guid:t,...e,shouldLoad:e.shouldLoad||e.autoLoad||!1});class nJ{constructor(t){t._item&&console.error("This document was already integrated as a sub-document. You should create a second instance instead with the same guid."),this.doc=t;const e={};this.opts=e,t.gc||(e.gc=!1),t.autoLoad&&(e.autoLoad=!0),null!==t.meta&&(e.meta=t.meta)}getLength(){return 1}getContent(){return[this.doc]}isCountable(){return!0}copy(){return new nJ(n$(this.doc.guid,this.opts))}splice(t){throw f.methodUnimplemented()}mergeWith(t){return!1}integrate(t,e){this.doc._item=e,t.subdocsAdded.add(this.doc),this.doc.shouldLoad&&t.subdocsLoaded.add(this.doc)}delete(t){t.subdocsAdded.has(this.doc)?t.subdocsAdded.delete(this.doc):t.subdocsRemoved.add(this.doc)}gc(t){}write(t,e){t.writeString(this.doc.guid),t.writeAny(this.opts)}getRef(){return 9}}class nq{constructor(t){this.embed=t}getLength(){return 1}getContent(){return[this.embed]}isCountable(){return!0}copy(){return new nq(this.embed)}splice(t){throw f.methodUnimplemented()}mergeWith(t){return!1}integrate(t,e){}delete(t){}gc(t){}write(t,e){t.writeJSON(this.embed)}getRef(){return 5}}class nY{constructor(t,e){this.key=t,this.value=e}getLength(){return 1}getContent(){return[]}isCountable(){return!1}copy(){return new nY(this.key,this.value)}splice(t){throw f.methodUnimplemented()}mergeWith(t){return!1}integrate(t,e){let r=e.parent;r._searchMarker=null,r._hasFormatting=!0}delete(t){}gc(t){}write(t,e){t.writeKey(this.key),t.writeJSON(this.value)}getRef(){return 6}}class nW{constructor(t){this.arr=t}getLength(){return this.arr.length}getContent(){return this.arr}isCountable(){return!0}copy(){return new nW(this.arr)}splice(t){let e=new nW(this.arr.slice(t));return this.arr=this.arr.slice(0,t),e}mergeWith(t){return this.arr=this.arr.concat(t.arr),!0}integrate(t,e){}delete(t){}gc(t){}write(t,e){let r=this.arr.length;t.writeLen(r-e);for(let n=e;n<r;n++){let e=this.arr[n];t.writeString(void 0===e?"undefined":JSON.stringify(e))}}getRef(){return 2}}let nG="development"===w.getVariable("node_env");class nX{constructor(t){this.arr=t,nG&&_.deepFreeze(t)}getLength(){return this.arr.length}getContent(){return this.arr}isCountable(){return!0}copy(){return new nX(this.arr)}splice(t){let e=new nX(this.arr.slice(t));return this.arr=this.arr.slice(0,t),e}mergeWith(t){return this.arr=this.arr.concat(t.arr),!0}integrate(t,e){}delete(t){}gc(t){}write(t,e){let r=this.arr.length;t.writeLen(r-e);for(let n=e;n<r;n++){let e=this.arr[n];t.writeAny(e)}}getRef(){return 8}}class nK{constructor(t){this.str=t}getLength(){return this.str.length}getContent(){return this.str.split("")}isCountable(){return!0}copy(){return new nK(this.str)}splice(t){let e=new nK(this.str.slice(t));this.str=this.str.slice(0,t);let r=this.str.charCodeAt(t-1);return r>=55296&&r<=56319&&(this.str=this.str.slice(0,t-1)+"�",e.str="�"+e.str.slice(1)),e}mergeWith(t){return this.str+=t.str,!0}integrate(t,e){}delete(t){}gc(t){}write(t,e){t.writeString(0===e?this.str:this.str.slice(e))}getRef(){return 4}}let nH=[t=>new ng,t=>new ny,t=>new nB,t=>new nM(t.readKey()),t=>new nO,t=>new nL(t.readKey()),t=>new nN],nZ=0,nQ=1,n0=2,n1=3,n2=4,n8=5,n5=6;class n6{constructor(t){this.type=t}getLength(){return 1}getContent(){return[this.type]}isCountable(){return!0}copy(){return new n6(this.type._copy())}splice(t){throw f.methodUnimplemented()}mergeWith(t){return!1}integrate(t,e){this.type._integrate(t.doc,e)}delete(t){let e=this.type._start;for(;null!==e;)e.deleted?e.id.clock<(t.beforeState.get(e.id.client)||0)&&t._mergeStructs.push(e):e.delete(t),e=e.right;this.type._map.forEach(e=>{e.deleted?e.id.clock<(t.beforeState.get(e.id.client)||0)&&t._mergeStructs.push(e):e.delete(t)}),t.changed.delete(this.type)}gc(t){let e=this.type._start;for(;null!==e;)e.gc(t,!0),e=e.right;this.type._start=null,this.type._map.forEach(e=>{for(;null!==e;)e.gc(t,!0),e=e.left}),this.type._map=new Map}write(t,e){this.type._write(t)}getRef(){return 7}}let n3=(t,e)=>{let r,n=e,i=0;do i>0&&(n=eM(n.client,n.clock+i)),r=rl(t,n),i=n.clock-r.id.clock,n=r.redone;while(null!==n&&r instanceof ie)return{item:r,diff:i}},n4=(t,e)=>{for(;null!==t&&t.keep!==e;)t.keep=e,t=t.parent._item},n7=(t,e,r)=>{let{client:n,clock:i}=e.id,s=new ie(eM(n,i+r),e,eM(n,i+r-1),e.right,e.rightOrigin,e.parent,e.parentSub,e.content.splice(r));return e.deleted&&s.markDeleted(),e.keep&&(s.keep=!0),null!==e.redone&&(s.redone=eM(e.redone.client,e.redone.clock+r)),e.right=s,null!==s.right&&(s.right.left=s),t._mergeStructs.push(s),null!==s.parentSub&&null===s.right&&s.parent._map.set(s.parentSub,s),e.length=r,s},n9=(t,e)=>s.some(t,t=>t7(t.deletions,e)),it=(t,e,r,n,i,s)=>{let l,o=t.doc,c=o.store,a=o.clientID,h=e.redone;if(null!==h)return rc(t,h);let u=e.parent._item,d=null;if(null!==u&&!0===u.deleted){if(null===u.redone&&(!r.has(u)||null===it(t,u,r,n,i,s)))return null;for(;null!==u.redone;)u=rc(t,u.redone)}let f=null===u?e.parent:u.content.type;if(null===e.parentSub){for(d=e.left,l=e;null!==d;){let e=d;for(;null!==e&&e.parent._item!==u;)e=null===e.redone?null:rc(t,e.redone);if(null!==e&&e.parent._item===u){d=e;break}d=d.left}for(;null!==l;){let e=l;for(;null!==e&&e.parent._item!==u;)e=null===e.redone?null:rc(t,e.redone);if(null!==e&&e.parent._item===u){l=e;break}l=l.right}}else if(l=null,e.right&&!i){for(d=e;null!==d&&null!==d.right&&(d.right.redone||t7(n,d.right.id)||n9(s.undoStack,d.right.id)||n9(s.redoStack,d.right.id));)for(d=d.right;d.redone;)d=rc(t,d.redone);if(d&&null!==d.right)return null}else d=f._map.get(e.parentSub)||null;let g=rn(c,a),p=eM(a,g),y=new ie(p,d,d&&d.lastId,l,l&&l.id,f,e.parentSub,e.content.copy());return e.redone=p,n4(y,!0),y.integrate(t,0),y};class ie extends nP{constructor(t,e,r,n,i,s,l,o){super(t,o.getLength()),this.origin=r,this.left=e,this.right=n,this.rightOrigin=i,this.parent=s,this.parentSub=l,this.redone=null,this.content=o,this.info=this.content.isCountable()?g.BIT2:0}set marker(t){(this.info&g.BIT4)>0!==t&&(this.info^=g.BIT4)}get marker(){return(this.info&g.BIT4)>0}get keep(){return(this.info&g.BIT1)>0}set keep(t){this.keep!==t&&(this.info^=g.BIT1)}get countable(){return(this.info&g.BIT2)>0}get deleted(){return(this.info&g.BIT3)>0}set deleted(t){this.deleted!==t&&(this.info^=g.BIT3)}markDeleted(){this.info|=g.BIT3}getMissing(t,e){if(this.origin&&this.origin.client!==this.id.client&&this.origin.clock>=rn(e,this.origin.client))return this.origin.client;if(this.rightOrigin&&this.rightOrigin.client!==this.id.client&&this.rightOrigin.clock>=rn(e,this.rightOrigin.client))return this.rightOrigin.client;if(this.parent&&this.parent.constructor===eV&&this.id.client!==this.parent.client&&this.parent.clock>=rn(e,this.parent.client))return this.parent.client;if(this.origin&&(this.left=ra(t,e,this.origin),this.origin=this.left.lastId),this.rightOrigin&&(this.right=rc(t,this.rightOrigin),this.rightOrigin=this.right.id),this.left&&this.left.constructor===nF||this.right&&this.right.constructor===nF)this.parent=null;else if(this.parent){if(this.parent.constructor===eV){let t=rl(e,this.parent);t.constructor===nF?this.parent=null:this.parent=t.content.type}}else this.left&&this.left.constructor===ie?(this.parent=this.left.parent,this.parentSub=this.left.parentSub):this.right&&this.right.constructor===ie&&(this.parent=this.right.parent,this.parentSub=this.right.parentSub);return null}integrate(t,e){if(e>0&&(this.id.clock+=e,this.left=ra(t,t.doc.store,eM(this.id.client,this.id.clock-1)),this.origin=this.left.lastId,this.content=this.content.splice(e),this.length-=e),this.parent){if(!this.left&&(!this.right||null!==this.right.left)||this.left&&this.left.right!==this.right){let e,r=this.left;if(null!==r)e=r.right;else if(null!==this.parentSub)for(e=this.parent._map.get(this.parentSub)||null;null!==e&&null!==e.left;)e=e.left;else e=this.parent._start;let n=new Set,i=new Set;for(;null!==e&&e!==this.right;){if(i.add(e),n.add(e),eO(this.origin,e.origin)){if(e.id.client<this.id.client)r=e,n.clear();else if(eO(this.rightOrigin,e.rightOrigin))break}else if(null!==e.origin&&i.has(rl(t.doc.store,e.origin)))n.has(rl(t.doc.store,e.origin))||(r=e,n.clear());else break;e=e.right}this.left=r}if(null!==this.left){let t=this.left.right;this.right=t,this.left.right=this}else{let t;if(null!==this.parentSub)for(t=this.parent._map.get(this.parentSub)||null;null!==t&&null!==t.left;)t=t.left;else t=this.parent._start,this.parent._start=this;this.right=t}null!==this.right?this.right.left=this:null!==this.parentSub&&(this.parent._map.set(this.parentSub,this),null!==this.left&&this.left.delete(t)),null===this.parentSub&&this.countable&&!this.deleted&&(this.parent._length+=this.length),ri(t.doc.store,this),this.content.integrate(t,this),rf(t,this.parent,this.parentSub),(null!==this.parent._item&&this.parent._item.deleted||null!==this.parentSub&&null!==this.right)&&this.delete(t)}else new nF(this.id,this.length).integrate(t,0)}get next(){let t=this.right;for(;null!==t&&t.deleted;)t=t.right;return t}get prev(){let t=this.left;for(;null!==t&&t.deleted;)t=t.left;return t}get lastId(){return 1===this.length?this.id:eM(this.id.client,this.id.clock+this.length-1)}mergeWith(t){if(this.constructor===t.constructor&&eO(t.origin,this.lastId)&&this.right===t&&eO(this.rightOrigin,t.rightOrigin)&&this.id.client===t.id.client&&this.id.clock+this.length===t.id.clock&&this.deleted===t.deleted&&null===this.redone&&null===t.redone&&this.content.constructor===t.content.constructor&&this.content.mergeWith(t.content)){let e=this.parent._searchMarker;return e&&e.forEach(e=>{e.p===t&&(e.p=this,!this.deleted&&this.countable&&(e.index-=this.length))}),t.keep&&(this.keep=!0),this.right=t.right,null!==this.right&&(this.right.left=this),this.length+=t.length,!0}return!1}delete(t){if(!this.deleted){let e=this.parent;this.countable&&null===this.parentSub&&(e._length-=this.length),this.markDeleted(),ee(t.deleteSet,this.id.client,this.id.clock,this.length),rf(t,e,this.parentSub),this.content.delete(t)}}gc(t,e){if(!this.deleted)throw f.unexpectedCase();if(this.content.gc(t),e){var r;let e;r=new nF(this.id,this.length),(e=t.clients.get(this.id.client))[rs(e,this.id.clock)]=r}else this.content=new nz(this.length)}write(t,e){let r=e>0?eM(this.id.client,this.id.clock+e-1):this.origin,n=this.rightOrigin,i=this.parentSub,s=this.content.getRef()&g.BITS5|(null===r?0:g.BIT8)|(null===n?0:g.BIT7)|(null===i?0:g.BIT6);if(t.writeInfo(s),null!==r&&t.writeLeftID(r),null!==n&&t.writeRightID(n),null===r&&null===n){let e=this.parent;if(void 0!==e._item){let r=e._item;if(null===r){let r=eN(e);t.writeParentInfo(!0),t.writeString(r)}else t.writeParentInfo(!1),t.writeLeftID(r.id)}else e.constructor===String?(t.writeParentInfo(!0),t.writeString(e)):e.constructor===eV?(t.writeParentInfo(!1),t.writeLeftID(e)):f.unexpectedCase();null!==i&&t.writeString(i)}this.content.write(t,e)}}let ir=(t,e)=>ii[e&g.BITS5](t),ii=[()=>{f.unexpectedCase()},t=>new nz(t.readLen()),t=>{let e=t.readLen(),r=[];for(let n=0;n<e;n++){let e=t.readString();"undefined"===e?r.push(void 0):r.push(JSON.parse(e))}return new nW(r)},t=>new nj(t.readBuf()),t=>new nK(t.readString()),t=>new nq(t.readJSON()),t=>new nY(t.readKey(),t.readJSON()),t=>new n6(nH[t.readTypeRef()](t)),t=>{let e=t.readLen(),r=[];for(let n=0;n<e;n++)r.push(t.readAny());return new nX(r)},t=>new nJ(n$(t.readString(),t.readAny())),()=>{f.unexpectedCase()}];class is extends nP{get deleted(){return!0}delete(){}mergeWith(t){return this.constructor===t.constructor&&(this.length+=t.length,!0)}integrate(t,e){f.unexpectedCase()}write(t,e){t.writeInfo(10),c.writeVarUint(t.restEncoder,this.length-e)}getMissing(t,e){return null}}let il="u">typeof globalThis?globalThis:"u">typeof window?window:t.g,io="__ $YJS$ __";!0===il[io]&&console.error("Yjs was already imported. This breaks constructor checks and will lead to issues! - https://github.com/yjs/yjs/issues/438"),il[io]=!0,t.s(["AbsolutePosition",()=>eq,"AbstractConnector",()=>t5,"AbstractStruct",()=>nP,"AbstractType",()=>r6,"Array",()=>ng,"ContentAny",()=>nX,"ContentBinary",()=>nj,"ContentDeleted",()=>nz,"ContentDoc",()=>nJ,"ContentEmbed",()=>nq,"ContentFormat",()=>nY,"ContentJSON",()=>nW,"ContentString",()=>nK,"ContentType",()=>n6,"Doc",()=>ea,"GC",()=>nF,"ID",()=>eV,"Item",()=>ie,"Map",()=>ny,"PermanentUserData",()=>ej,"RelativePosition",()=>ez,"Skip",()=>is,"Snapshot",()=>eZ,"Text",()=>nB,"Transaction",()=>ru,"UndoManager",()=>rv,"UpdateDecoderV1",()=>eu,"UpdateDecoderV2",()=>ef,"UpdateEncoderV1",()=>ep,"UpdateEncoderV2",()=>ew,"XmlElement",()=>nM,"XmlFragment",()=>nO,"XmlHook",()=>nL,"XmlText",()=>nN,"YArrayEvent",()=>nf,"YEvent",()=>rX,"YMapEvent",()=>np,"YTextEvent",()=>nT,"YXmlEvent",()=>nR,"applyUpdate",()=>eE,"applyUpdateV2",()=>e_,"cleanupYTextFormatting",()=>nI,"compareIDs",()=>eO,"compareRelativePositions",()=>eH,"convertUpdateFormatV1ToV2",()=>rY,"convertUpdateFormatV2ToV1",()=>rW,"createAbsolutePositionFromRelativePosition",()=>eK,"createDeleteSet",()=>er,"createDeleteSetFromStructStore",()=>en,"createDocFromSnapshot",()=>e9,"createID",()=>eM,"createRelativePositionFromJSON",()=>eJ,"createRelativePositionFromTypeIndex",()=>eW,"createSnapshot",()=>e5,"decodeRelativePosition",()=>eX,"decodeSnapshot",()=>e8,"decodeSnapshotV2",()=>e2,"decodeStateVector",()=>eA,"decodeUpdate",()=>rC,"decodeUpdateV2",()=>rI,"diffUpdate",()=>rN,"diffUpdateV2",()=>rL,"emptySnapshot",()=>e6,"encodeRelativePosition",()=>eG,"encodeSnapshot",()=>e1,"encodeSnapshotV2",()=>e0,"encodeStateAsUpdate",()=>eS,"encodeStateAsUpdateV2",()=>ev,"encodeStateVector",()=>eI,"encodeStateVectorFromUpdate",()=>rB,"encodeStateVectorFromUpdateV2",()=>rT,"equalDeleteSets",()=>eo,"equalSnapshots",()=>eQ,"findIndexSS",()=>rs,"findRootTypeKey",()=>eN,"getItem",()=>rl,"getItemCleanEnd",()=>ra,"getItemCleanStart",()=>rc,"getState",()=>rn,"getTypeChildren",()=>r8,"isDeleted",()=>t7,"isParentOf",()=>eP,"iterateDeletedStructs",()=>t4,"logType",()=>eF,"logUpdate",()=>rU,"logUpdateV2",()=>rA,"mergeDeleteSets",()=>et,"mergeUpdates",()=>rx,"mergeUpdatesV2",()=>rR,"obfuscateUpdate",()=>rJ,"obfuscateUpdateV2",()=>rq,"parseUpdateMeta",()=>rO,"parseUpdateMetaV2",()=>rV,"readUpdate",()=>ek,"readUpdateV2",()=>eb,"relativePositionToJSON",()=>e$,"snapshot",()=>e3,"snapshotContainsUpdate",()=>rt,"transact",()=>rb,"tryGc",()=>rw,"typeListToArraySnapshot",()=>r7,"typeMapGetAllSnapshot",()=>nu,"typeMapGetSnapshot",()=>nh],74894)}]);
@@ -1,24 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,55057,e=>{"use strict";var t=e.i(39467),r=e.i(31195),a=(0,r.__name)((e,a,l,s)=>{e.attr("class",l);let{width:o,height:c,x:u,y:d}=n(e,a);(0,t.configureSvgSize)(e,c,o,s);let f=i(u,d,o,c,a);e.attr("viewBox",f),r.log.debug(`viewBox configured: ${f} with padding: ${a}`)},"setupViewPortForSVG"),n=(0,r.__name)((e,t)=>{let r=e.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:r.width+2*t,height:r.height+2*t,x:r.x,y:r.y}},"calculateDimensionsWithPadding"),i=(0,r.__name)((e,t,r,a,n)=>`${e-n} ${t-n} ${r} ${a}`,"createViewBox");e.s(["setupViewPortForSVG",()=>a])},39828,e=>{"use strict";var t=e.i(99950),r=e.i(25876),a=e.i(55794),n=e.i(89489),i=class extends t.AbstractMermaidTokenBuilder{static{(0,t.__name)(this,"PieTokenBuilder")}constructor(){super(["pie","showData"])}},l=class extends t.AbstractMermaidValueConverter{static{(0,t.__name)(this,"PieValueConverter")}runCustomConverter(e,t,r){if("PIE_SECTION_LABEL"===e.name)return t.replace(/"/g,"").trim()}},s={parser:{TokenBuilder:(0,t.__name)(()=>new i,"TokenBuilder"),ValueConverter:(0,t.__name)(()=>new l,"ValueConverter")}};function o(e=r.EmptyFileSystem){let i=(0,n.inject)((0,a.createDefaultSharedCoreModule)(e),t.MermaidGeneratedSharedModule),l=(0,n.inject)((0,a.createDefaultCoreModule)({shared:i}),t.PieGrammarGeneratedModule,s);return i.ServiceRegistry.register(l),{shared:i,Pie:l}}(0,t.__name)(o,"createPieServices"),e.s(["PieModule",()=>s,"createPieServices",()=>o])},71677,e=>{"use strict";var t=e.i(99950),r=e.i(25876),a=e.i(55794),n=e.i(89489),i=class extends t.AbstractMermaidTokenBuilder{static{(0,t.__name)(this,"TreemapTokenBuilder")}constructor(){super(["treemap"])}},l=/classDef\s+([A-Z_a-z]\w+)(?:\s+([^\n\r;]*))?;?/,s=class extends t.AbstractMermaidValueConverter{static{(0,t.__name)(this,"TreemapValueConverter")}runCustomConverter(e,t,r){if("NUMBER2"===e.name)return parseFloat(t.replace(/,/g,""));if("SEPARATOR"===e.name)return t.substring(1,t.length-1);if("STRING2"===e.name)return t.substring(1,t.length-1);if("INDENTATION"===e.name)return t.length;if("ClassDef"===e.name){if("string"!=typeof t)return t;let e=l.exec(t);if(e)return{$type:"ClassDefStatement",className:e[1],styleText:e[2]||void 0}}}};function o(e){let t=e.validation.TreemapValidator,r=e.validation.ValidationRegistry;if(r){let e={Treemap:t.checkSingleRoot.bind(t)};r.register(e,t)}}(0,t.__name)(o,"registerValidationChecks");var c=class{static{(0,t.__name)(this,"TreemapValidator")}checkSingleRoot(e,t){let r;for(let a of e.TreemapRows)a.item&&(void 0===r&&void 0===a.indent?r=0:void 0===a.indent?t("error","Multiple root nodes are not allowed in a treemap.",{node:a,property:"item"}):void 0!==r&&r>=parseInt(a.indent,10)&&t("error","Multiple root nodes are not allowed in a treemap.",{node:a,property:"item"}))}},u={parser:{TokenBuilder:(0,t.__name)(()=>new i,"TokenBuilder"),ValueConverter:(0,t.__name)(()=>new s,"ValueConverter")},validation:{TreemapValidator:(0,t.__name)(()=>new c,"TreemapValidator")}};function d(e=r.EmptyFileSystem){let i=(0,n.inject)((0,a.createDefaultSharedCoreModule)(e),t.MermaidGeneratedSharedModule),l=(0,n.inject)((0,a.createDefaultCoreModule)({shared:i}),t.TreemapGrammarGeneratedModule,u);return i.ServiceRegistry.register(l),o(l),{shared:i,Treemap:l}}(0,t.__name)(d,"createTreemapServices"),e.s(["TreemapModule",()=>u,"createTreemapServices",()=>d])},68282,e=>{"use strict";var t=e.i(99950),r=e.i(25876),a=e.i(55794),n=e.i(89489),i=class extends t.AbstractMermaidTokenBuilder{static{(0,t.__name)(this,"InfoTokenBuilder")}constructor(){super(["info","showInfo"])}},l={parser:{TokenBuilder:(0,t.__name)(()=>new i,"TokenBuilder"),ValueConverter:(0,t.__name)(()=>new t.CommonValueConverter,"ValueConverter")}};function s(e=r.EmptyFileSystem){let i=(0,n.inject)((0,a.createDefaultSharedCoreModule)(e),t.MermaidGeneratedSharedModule),o=(0,n.inject)((0,a.createDefaultCoreModule)({shared:i}),t.InfoGrammarGeneratedModule,l);return i.ServiceRegistry.register(o),{shared:i,Info:o}}(0,t.__name)(s,"createInfoServices"),e.s(["InfoModule",()=>l,"createInfoServices",()=>s])},66195,e=>{"use strict";var t=e.i(99950),r=e.i(25876),a=e.i(55794),n=e.i(89489),i=class extends t.AbstractMermaidTokenBuilder{static{(0,t.__name)(this,"RadarTokenBuilder")}constructor(){super(["radar-beta"])}},l={parser:{TokenBuilder:(0,t.__name)(()=>new i,"TokenBuilder"),ValueConverter:(0,t.__name)(()=>new t.CommonValueConverter,"ValueConverter")}};function s(e=r.EmptyFileSystem){let i=(0,n.inject)((0,a.createDefaultSharedCoreModule)(e),t.MermaidGeneratedSharedModule),o=(0,n.inject)((0,a.createDefaultCoreModule)({shared:i}),t.RadarGrammarGeneratedModule,l);return i.ServiceRegistry.register(o),{shared:i,Radar:o}}(0,t.__name)(s,"createRadarServices"),e.s(["RadarModule",()=>l,"createRadarServices",()=>s])},67095,e=>{"use strict";var t=e.i(99950),r=e.i(25876),a=e.i(55794),n=e.i(89489),i=class extends t.AbstractMermaidTokenBuilder{static{(0,t.__name)(this,"PacketTokenBuilder")}constructor(){super(["packet"])}},l={parser:{TokenBuilder:(0,t.__name)(()=>new i,"TokenBuilder"),ValueConverter:(0,t.__name)(()=>new t.CommonValueConverter,"ValueConverter")}};function s(e=r.EmptyFileSystem){let i=(0,n.inject)((0,a.createDefaultSharedCoreModule)(e),t.MermaidGeneratedSharedModule),o=(0,n.inject)((0,a.createDefaultCoreModule)({shared:i}),t.PacketGrammarGeneratedModule,l);return i.ServiceRegistry.register(o),{shared:i,Packet:o}}(0,t.__name)(s,"createPacketServices"),e.s(["PacketModule",()=>l,"createPacketServices",()=>s])},50654,e=>{"use strict";var t=e.i(99950),r=e.i(25876),a=e.i(55794),n=e.i(89489),i=class extends t.AbstractMermaidTokenBuilder{static{(0,t.__name)(this,"ArchitectureTokenBuilder")}constructor(){super(["architecture"])}},l=class extends t.AbstractMermaidValueConverter{static{(0,t.__name)(this,"ArchitectureValueConverter")}runCustomConverter(e,t,r){return"ARCH_ICON"===e.name?t.replace(/[()]/g,"").trim():"ARCH_TEXT_ICON"===e.name?t.replace(/["()]/g,""):"ARCH_TITLE"===e.name?t.replace(/[[\]]/g,"").trim():void 0}},s={parser:{TokenBuilder:(0,t.__name)(()=>new i,"TokenBuilder"),ValueConverter:(0,t.__name)(()=>new l,"ValueConverter")}};function o(e=r.EmptyFileSystem){let i=(0,n.inject)((0,a.createDefaultSharedCoreModule)(e),t.MermaidGeneratedSharedModule),l=(0,n.inject)((0,a.createDefaultCoreModule)({shared:i}),t.ArchitectureGrammarGeneratedModule,s);return i.ServiceRegistry.register(l),{shared:i,Architecture:l}}(0,t.__name)(o,"createArchitectureServices"),e.s(["ArchitectureModule",()=>s,"createArchitectureServices",()=>o])},94261,e=>{"use strict";var t=e.i(8977);e.s(["clone",()=>t.default])},8977,e=>{"use strict";var t=e.i(49218);e.s(["default",0,function(e){return(0,t.default)(e,4)}])},77123,e=>{"use strict";var t=e.i(13759);e.s(["forEach",()=>t.default])},15987,e=>{"use strict";var t=Object.prototype.hasOwnProperty;let r=function(e,r){return null!=e&&t.call(e,r)};var a=e.i(40160);e.s(["has",0,function(e,t){return null!=e&&(0,a.default)(e,t,r)}],15987)},80792,86587,34197,93776,e=>{"use strict";var t=e.i(1912),r=e.i(75811),a=e.i(32505),n=e.i(42125);let i=function(e,t){var r=-1,i=(0,n.default)(e)?Array(e.length):[];return(0,a.default)(e,function(e,a,n){i[++r]=t(e,a,n)}),i};e.s(["default",0,i],86587);var l=e.i(94878);let s=function(e,a){return((0,l.default)(e)?t.default:i)(e,(0,r.default)(a,3))};e.s(["default",0,s],34197),e.s(["map",0,s],80792);var o=/\s/;let c=function(e){for(var t=e.length;t--&&o.test(e.charAt(t)););return t};var u=/^\s+/,d=e.i(91947),f=e.i(85647),h=0/0,p=/^[-+]0x[0-9a-f]+$/i,m=/^0b[01]+$/i,g=/^0o[0-7]+$/i,v=parseInt;let y=function(e){if("number"==typeof e)return e;if((0,f.default)(e))return h;if((0,d.default)(e)){var t,r="function"==typeof e.valueOf?e.valueOf():e;e=(0,d.default)(r)?r+"":r}if("string"!=typeof e)return 0===e?e:+e;e=(t=e)?t.slice(0,c(t)+1).replace(u,""):t;var a=m.test(e);return a||g.test(e)?v(e.slice(2),a?2:8):p.test(e)?h:+e};var S=1/0;e.s(["default",0,function(e){return e?(e=y(e))===S||e===-S?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}],93776)},40439,e=>{"use strict";var t=e.i(93776);e.s(["default",0,function(e){var r=(0,t.default)(e),a=r%1;return r==r?a?r-a:r:0}])},28709,e=>{"use strict";var t=e.i(24277),r=e.i(94878),a=e.i(24904);e.s(["default",0,function(e){return"string"==typeof e||!(0,r.default)(e)&&(0,a.default)(e)&&"[object String]"==(0,t.default)(e)}])},95790,e=>{"use strict";var t=e.i(88098),r=e.i(22523),a=e.i(43768),n=e.i(98546),i=e.i(91947),l=e.i(23925);let s=function(e,t,s,o){if(!(0,i.default)(e))return e;t=(0,a.default)(t,e);for(var c=-1,u=t.length,d=u-1,f=e;null!=f&&++c<u;){var h=(0,l.default)(t[c]),p=s;if("__proto__"===h||"constructor"===h||"prototype"===h)break;if(c!=d){var m=f[h];void 0===(p=o?o(m,h,f):void 0)&&(p=(0,i.default)(m)?m:(0,n.default)(t[c+1])?[]:{})}(0,r.default)(f,h,p),f=f[h]}return e};e.s(["default",0,function(e,r,n){for(var i=-1,l=r.length,o={};++i<l;){var c=r[i],u=(0,t.default)(e,c);n(u,c)&&s(o,(0,a.default)(c,e),u)}return o}],95790)},85898,9235,e=>{"use strict";var t=e.i(17242);let r=function(e){return(null==e?0:e.length)?(0,t.default)(e,1):[]};e.s(["default",0,r],9235),e.s(["flatten",0,r],85898)},83511,e=>{"use strict";var t=e.i(68464),r=e.i(7693),a=e.i(52056),n=e.i(65218),i=Object.prototype,l=i.hasOwnProperty,s=(0,t.default)(function(e,t){e=Object(e);var s=-1,o=t.length,c=o>2?t[2]:void 0;for(c&&(0,a.default)(t[0],t[1],c)&&(o=1);++s<o;)for(var u=t[s],d=(0,n.default)(u),f=-1,h=d.length;++f<h;){var p=d[f],m=e[p];(void 0===m||(0,r.default)(m,i[p])&&!l.call(e,p))&&(e[p]=u[p])}return e});e.s(["defaults",0,s],83511)},83375,e=>{"use strict";var t=e.i(75811),r=e.i(42125),a=e.i(26054);e.s(["default",0,function(e){return function(n,i,l){var s=Object(n);if(!(0,r.default)(n)){var o=(0,t.default)(i,3);n=(0,a.default)(n),i=function(e){return o(s[e],e,s)}}var c=e(n,i,l);return c>-1?s[o?n[c]:c]:void 0}}])},18573,e=>{"use strict";var t=e.i(83375),r=e.i(78562),a=e.i(75811),n=e.i(40439),i=Math.max,l=(0,t.default)(function(e,t,l){var s=null==e?0:e.length;if(!s)return -1;var o=null==l?0:(0,n.default)(l);return o<0&&(o=i(s+o,0)),(0,r.default)(e,(0,a.default)(t,3),o)});e.s(["find",0,l],18573)},41929,e=>{"use strict";var t=e.i(94878);e.s(["isArray",()=>t.default])},31490,e=>{"use strict";e.s(["last",0,function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}],31490)},22279,e=>{"use strict";var t=e.i(85647);e.s(["default",0,function(e,r,a){for(var n=-1,i=e.length;++n<i;){var l=e[n],s=r(l);if(null!=s&&(void 0===o?s==s&&!(0,t.default)(s):a(s,o)))var o=s,c=l}return c}])},99517,85639,e=>{"use strict";var t=e.i(22279);let r=function(e,t){return e<t};e.s(["default",0,r],85639);var a=e.i(16481);e.s(["default",0,function(e){return e&&e.length?(0,t.default)(e,a.default,r):void 0}],99517)},30447,e=>{"use strict";var t=e.i(99950),r=e.i(89489),a=e.i(55794),n=e.i(25876),i=class extends t.AbstractMermaidTokenBuilder{static{(0,t.__name)(this,"GitGraphTokenBuilder")}constructor(){super(["gitGraph"])}},l={parser:{TokenBuilder:(0,t.__name)(()=>new i,"TokenBuilder"),ValueConverter:(0,t.__name)(()=>new t.CommonValueConverter,"ValueConverter")}};function s(e=n.EmptyFileSystem){let i=(0,r.inject)((0,a.createDefaultSharedCoreModule)(e),t.MermaidGeneratedSharedModule),o=(0,r.inject)((0,a.createDefaultCoreModule)({shared:i}),t.GitGraphGrammarGeneratedModule,l);return i.ServiceRegistry.register(o),{shared:i,GitGraph:o}}(0,t.__name)(s,"createGitGraphServices"),e.s(["GitGraphModule",()=>l,"createGitGraphServices",()=>s])},86755,e=>{"use strict";e.i(30447),e.i(68282),e.i(67095),e.i(39828),e.i(50654),e.i(66195),e.i(71677);var t=e.i(99950),r={},a={info:(0,t.__name)(async()=>{let{createInfoServices:t}=await e.A(6357);r.info=t().Info.parser.LangiumParser},"info"),packet:(0,t.__name)(async()=>{let{createPacketServices:t}=await e.A(61041);r.packet=t().Packet.parser.LangiumParser},"packet"),pie:(0,t.__name)(async()=>{let{createPieServices:t}=await e.A(79294);r.pie=t().Pie.parser.LangiumParser},"pie"),architecture:(0,t.__name)(async()=>{let{createArchitectureServices:t}=await e.A(21131);r.architecture=t().Architecture.parser.LangiumParser},"architecture"),gitGraph:(0,t.__name)(async()=>{let{createGitGraphServices:t}=await e.A(37762);r.gitGraph=t().GitGraph.parser.LangiumParser},"gitGraph"),radar:(0,t.__name)(async()=>{let{createRadarServices:t}=await e.A(34567);r.radar=t().Radar.parser.LangiumParser},"radar"),treemap:(0,t.__name)(async()=>{let{createTreemapServices:t}=await e.A(6411);r.treemap=t().Treemap.parser.LangiumParser},"treemap")};async function n(e,t){let n=a[e];if(!n)throw Error(`Unknown diagram type: ${e}`);r[e]||await n();let l=r[e].parse(t);if(l.lexerErrors.length>0||l.parserErrors.length>0)throw new i(l);return l.value}(0,t.__name)(n,"parse");var i=class extends Error{constructor(e){const t=e.lexerErrors.map(e=>e.message).join("\n"),r=e.parserErrors.map(e=>e.message).join("\n");super(`Parsing failed: ${t} ${r}`),this.result=e}static{(0,t.__name)(this,"MermaidParseError")}};e.s(["parse",()=>n])},48434,e=>{"use strict";function t(e,t){e.accDescr&&t.setAccDescription?.(e.accDescr),e.accTitle&&t.setAccTitle?.(e.accTitle),e.title&&t.setDiagramTitle?.(e.title)}(0,e.i(31195).__name)(t,"populateCommonDb"),e.s(["populateCommonDb",()=>t])},60978,53640,46122,e=>{"use strict";function t(e,t){if(!isFinite(e)||0===e)return null;var r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),a=e.slice(0,r);return[a.length>1?a[0]+a.slice(2):a,+e.slice(r+1)]}function r(e){return(e=t(Math.abs(e)))?e[1]:NaN}e.s(["default",0,r],53640);var a,n,i,l,s=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function o(e){var t;if(!(t=s.exec(e)))throw Error("invalid format: "+e);return new c({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function c(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function u(e,r){var a=t(e,r);if(!a)return e+"";var n=a[0],i=a[1];return i<0?"0."+Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+Array(i-n.length+2).join("0")}o.prototype=c.prototype,c.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type},e.s(["default",()=>o],46122);let d={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>u(100*e,t),r:u,s:function(e,r){var n=t(e,r);if(!n)return a=void 0,e.toPrecision(r);var i=n[0],l=n[1],s=l-(a=3*Math.max(-8,Math.min(8,Math.floor(l/3))))+1,o=i.length;return s===o?i:s>o?i+Array(s-o+1).join("0"):s>0?i.slice(0,s)+"."+i.slice(s):"0."+Array(1-s).join("0")+t(e,Math.max(0,r+s-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function f(e){return e}var h=Array.prototype.map,p=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];i=(n=function(e){var t,n,i,l=void 0===e.grouping||void 0===e.thousands?f:(t=h.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var a=e.length,i=[],l=0,s=t[0],o=0;a>0&&s>0&&(o+s+1>r&&(s=Math.max(1,r-o)),i.push(e.substring(a-=s,a+s)),!((o+=s+1)>r));)s=t[l=(l+1)%t.length];return i.reverse().join(n)}),s=void 0===e.currency?"":e.currency[0]+"",c=void 0===e.currency?"":e.currency[1]+"",u=void 0===e.decimal?".":e.decimal+"",m=void 0===e.numerals?f:(i=h.call(e.numerals,String),function(e){return e.replace(/[0-9]/g,function(e){return i[+e]})}),g=void 0===e.percent?"%":e.percent+"",v=void 0===e.minus?"−":e.minus+"",y=void 0===e.nan?"NaN":e.nan+"";function S(e,t){var r=(e=o(e)).fill,n=e.align,i=e.sign,f=e.symbol,h=e.zero,S=e.width,x=e.comma,_=e.precision,b=e.trim,M=e.type;"n"===M?(x=!0,M="g"):d[M]||(void 0===_&&(_=12),b=!0,M="g"),(h||"0"===r&&"="===n)&&(h=!0,r="0",n="=");var C=(t&&void 0!==t.prefix?t.prefix:"")+("$"===f?s:"#"===f&&/[boxX]/.test(M)?"0"+M.toLowerCase():""),w=("$"===f?c:/[%p]/.test(M)?g:"")+(t&&void 0!==t.suffix?t.suffix:""),k=d[M],T=/[defgprs%]/.test(M);function A(e){var t,s,o,c=C,d=w;if("c"===M)d=k(e)+d,e="";else{var f=(e*=1)<0||1/e<0;if(e=isNaN(e)?y:k(Math.abs(e),_),b&&(e=function(e){e:for(var t,r=e.length,a=1,n=-1;a<r;++a)switch(e[a]){case".":n=t=a;break;case"0":0===n&&(n=a),t=a;break;default:if(!+e[a])break e;n>0&&(n=0)}return n>0?e.slice(0,n)+e.slice(t+1):e}(e)),f&&0==+e&&"+"!==i&&(f=!1),c=(f?"("===i?i:v:"-"===i||"("===i?"":i)+c,d=("s"!==M||isNaN(e)||void 0===a?"":p[8+a/3])+d+(f&&"("===i?")":""),T){for(t=-1,s=e.length;++t<s;)if(48>(o=e.charCodeAt(t))||o>57){d=(46===o?u+e.slice(t+1):e.slice(t))+d,e=e.slice(0,t);break}}}x&&!h&&(e=l(e,1/0));var g=c.length+e.length+d.length,A=g<S?Array(S-g+1).join(r):"";switch(x&&h&&(e=l(A+e,A.length?S-d.length:1/0),A=""),n){case"<":e=c+e+d+A;break;case"=":e=c+A+e+d;break;case"^":e=A.slice(0,g=A.length>>1)+c+e+d+A.slice(g);break;default:e=A+c+e+d}return m(e)}return _=void 0===_?6:/[gprs]/.test(M)?Math.max(1,Math.min(21,_)):Math.max(0,Math.min(20,_)),A.toString=function(){return e+""},A}return{format:S,formatPrefix:function(e,t){var a=3*Math.max(-8,Math.min(8,Math.floor(r(t)/3))),n=Math.pow(10,-a),i=S(((e=o(e)).type="f",e),{suffix:p[8+a/3]});return function(e){return i(n*e)}}}}({thousands:",",grouping:[3],currency:["$",""]})).format,l=n.formatPrefix,e.s(["format",()=>i,"formatPrefix",()=>l],60978)},96340,e=>{"use strict";function t(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}e.s(["initRange",()=>t])},27994,e=>{"use strict";class t extends Map{constructor(e,t=a){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,r]of e)this.set(t,r)}get(e){return super.get(r(this,e))}has(e){return super.has(r(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},r){let a=t(r);return e.has(a)?e.get(a):(e.set(a,r),r)}(this,e),t)}delete(e){return super.delete(function({_intern:e,_key:t},r){let a=t(r);return e.has(a)&&(r=e.get(a),e.delete(a)),r}(this,e))}}function r({_intern:e,_key:t},r){let a=t(r);return e.has(a)?e.get(a):r}function a(e){return null!==e&&"object"==typeof e?e.valueOf():e}var n=e.i(96340);let i=Symbol("implicit");e.s(["default",()=>function e(){var r=new t,a=[],l=[],s=i;function o(e){let t=r.get(e);if(void 0===t){if(s!==i)return s;r.set(e,t=a.push(e)-1)}return l[t%l.length]}return o.domain=function(e){if(!arguments.length)return a.slice();for(let n of(a=[],r=new t,e))r.has(n)||r.set(n,a.push(n)-1);return o},o.range=function(e){return arguments.length?(l=Array.from(e),o):l.slice()},o.unknown=function(e){return arguments.length?(s=e,o):s},o.copy=function(){return e(a,l).unknown(s)},n.initRange.apply(o,arguments),o}],27994)},49851,e=>{"use strict";var t=e.i(27994);e.s(["scaleOrdinal",()=>t.default])},34375,e=>{"use strict";var t=e.i(57518),r=e.i(55057),a=e.i(59654),n=e.i(48434),i=e.i(285),l=e.i(39467),s=e.i(31195),o=e.i(86755);e.i(91577);var c=e.i(49851);function u(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}let d=function e(t){function r(e,r,a,n,i){!function(e,t,r,a,n,i){for(var l,s,o,c,u,d,f,h,p,m,g,v=[],y=t.children,S=0,x=0,_=y.length,b=t.value;S<_;){o=n-r,c=i-a;do u=y[x++].value;while(!u&&x<_)for(d=f=u,p=Math.max(f/(g=u*u*(m=Math.max(c/o,o/c)/(b*e))),g/d);x<_;++x){if(u+=s=y[x].value,s<d&&(d=s),s>f&&(f=s),(h=Math.max(f/(g=u*u*m),g/d))>p){u-=s;break}p=h}v.push(l={value:u,dice:o<c,children:y.slice(S,x)}),l.dice?function(e,t,r,a,n){for(var i,l=e.children,s=-1,o=l.length,c=e.value&&(a-t)/e.value;++s<o;)(i=l[s]).y0=r,i.y1=n,i.x0=t,i.x1=t+=i.value*c}(l,r,a,n,b?a+=c*u/b:i):function(e,t,r,a,n){for(var i,l=e.children,s=-1,o=l.length,c=e.value&&(n-r)/e.value;++s<o;)(i=l[s]).x0=t,i.x1=a,i.y0=r,i.y1=r+=i.value*c}(l,r,a,b?r+=o*u/b:n,i),b-=u,S=x}}(t,e,r,a,n,i)}return r.ratio=function(t){return e((t*=1)>1?t:1)},r}((1+Math.sqrt(5))/2);function f(){return 0}function h(e){return function(){return e}}function p(e){var t=0,r=e.children,a=r&&r.length;if(a)for(;--a>=0;)t+=r[a].value;else t=1;e.value=t}function m(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=v)):void 0===t&&(t=g);for(var r,a,n,i,l,s=new x(e),o=[s];r=o.pop();)if((n=t(r.data))&&(l=(n=Array.from(n)).length))for(r.children=n,i=l-1;i>=0;--i)o.push(a=n[i]=new x(n[i])),a.parent=r,a.depth=r.depth+1;return s.eachBefore(S)}function g(e){return e.children}function v(e){return Array.isArray(e)?e[1]:null}function y(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function S(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function x(e){this.data=e,this.depth=this.height=0,this.parent=null}x.prototype=m.prototype={constructor:x,count:function(){return this.eachAfter(p)},each:function(e,t){let r=-1;for(let a of this)e.call(t,a,++r,this);return this},eachAfter:function(e,t){for(var r,a,n,i=this,l=[i],s=[],o=-1;i=l.pop();)if(s.push(i),r=i.children)for(a=0,n=r.length;a<n;++a)l.push(r[a]);for(;i=s.pop();)e.call(t,i,++o,this);return this},eachBefore:function(e,t){for(var r,a,n=this,i=[n],l=-1;n=i.pop();)if(e.call(t,n,++l,this),r=n.children)for(a=r.length-1;a>=0;--a)i.push(r[a]);return this},find:function(e,t){let r=-1;for(let a of this)if(e.call(t,a,++r,this))return a},sum:function(e){return this.eachAfter(function(t){for(var r=+e(t.data)||0,a=t.children,n=a&&a.length;--n>=0;)r+=a[n].value;t.value=r})},sort:function(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})},path:function(e){for(var t=this,r=function(e,t){if(e===t)return e;var r=e.ancestors(),a=t.ancestors(),n=null;for(e=r.pop(),t=a.pop();e===t;)n=e,e=r.pop(),t=a.pop();return n}(t,e),a=[t];t!==r;)a.push(t=t.parent);for(var n=a.length;e!==r;)a.splice(n,0,e),e=e.parent;return a},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e},links:function(){var e=this,t=[];return e.each(function(r){r!==e&&t.push({source:r.parent,target:r})}),t},copy:function(){return m(this).eachBefore(y)},[Symbol.iterator]:function*(){var e,t,r,a,n=this,i=[n];do for(e=i.reverse(),i=[];n=e.pop();)if(yield n,t=n.children)for(r=0,a=t.length;r<a;++r)i.push(t[r]);while(i.length)}};var _=e.i(60978),b=e.i(92423),M=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=l.setAccTitle,this.getAccTitle=l.getAccTitle,this.setDiagramTitle=l.setDiagramTitle,this.getDiagramTitle=l.getDiagramTitle,this.getAccDescription=l.getAccDescription,this.setAccDescription=l.setAccDescription}static{(0,s.__name)(this,"TreeMapDB")}getNodes(){return this.nodes}getConfig(){let e=l.defaultConfig_default,t=(0,l.getConfig)();return(0,i.cleanAndMerge)({...e.treemap,...t.treemap??{}})}addNode(e,t){this.nodes.push(e),this.levels.set(e,t),0===t&&(this.outerNodes.push(e),this.root??=e)}getRoot(){return{name:"",children:this.outerNodes}}addClass(e,t){let r=this.classes.get(e)??{id:e,styles:[],textStyles:[]},n=t.replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");n&&n.forEach(e=>{(0,a.isLabelStyle)(e)&&(r?.textStyles?r.textStyles.push(e):r.textStyles=[e]),r?.styles?r.styles.push(e):r.styles=[e]}),this.classes.set(e,r)}getClasses(){return this.classes}getStylesForClass(e){return this.classes.get(e)?.styles??[]}clear(){(0,l.clear)(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}};function C(e){if(!e.length)return[];let t=[],r=[];return e.forEach(e=>{let a={name:e.name,children:"Leaf"===e.type?void 0:[]};for(a.classSelector=e?.classSelector,e?.cssCompiledStyles&&(a.cssCompiledStyles=[e.cssCompiledStyles]),"Leaf"===e.type&&void 0!==e.value&&(a.value=e.value);r.length>0&&r[r.length-1].level>=e.level;)r.pop();if(0===r.length)t.push(a);else{let e=r[r.length-1].node;e.children?e.children.push(a):e.children=[a]}"Leaf"!==e.type&&r.push({node:a,level:e.level})}),t}(0,s.__name)(C,"buildHierarchy");var w=(0,s.__name)((e,t)=>{(0,n.populateCommonDb)(e,t);let r=[];for(let r of e.TreemapRows??[])"ClassDefStatement"===r.$type&&t.addClass(r.className??"",r.styleText??"");for(let a of e.TreemapRows??[]){let e=a.item;if(!e)continue;let n=a.indent?parseInt(a.indent):0,i=k(e),l=e.classSelector?t.getStylesForClass(e.classSelector):[],s=l.length>0?l.join(";"):void 0,o={level:n,name:i,type:e.$type,value:e.value,classSelector:e.classSelector,cssCompiledStyles:s};r.push(o)}let a=C(r),i=(0,s.__name)((e,r)=>{for(let a of e)t.addNode(a,r),a.children&&a.children.length>0&&i(a.children,r+1)},"addNodesRecursively");i(a,0)},"populate"),k=(0,s.__name)(e=>e.name?String(e.name):"","getItemName"),T={parser:{yy:void 0},parse:(0,s.__name)(async e=>{try{let t=o.parse,r=await t("treemap",e);s.log.debug("Treemap AST:",r);let a=T.parser?.yy;if(!(a instanceof M))throw Error("parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");w(r,a)}catch(e){throw s.log.error("Error parsing treemap:",e),e}},"parse")},A=(0,s.__name)((e,n,i,o)=>{let p,g=o.db,v=g.getConfig(),y=v.padding??10,S=g.getDiagramTitle(),x=g.getRoot(),{themeVariables:M}=(0,l.getConfig)();if(!x)return;let C=30*!!S,w=(0,t.selectSvgElement)(n),k=v.nodeWidth?10*v.nodeWidth:960,T=v.nodeHeight?10*v.nodeHeight:500,A=T+C;w.attr("viewBox",`0 0 ${k} ${A}`),(0,l.configureSvgSize)(w,A,k,v.useMaxWidth);try{let e=v.valueFormat||",";if("$0,0"===e)p=(0,s.__name)(e=>"$"+(0,_.format)(",")(e),"valueFormat");else if(e.startsWith("$")&&e.includes(",")){let t=/\.\d+/.exec(e),r=t?t[0]:"";p=(0,s.__name)(e=>"$"+(0,_.format)(","+r)(e),"valueFormat")}else if(e.startsWith("$")){let t=e.substring(1);p=(0,s.__name)(e=>"$"+(0,_.format)(t||"")(e),"valueFormat")}else p=(0,_.format)(e)}catch(e){s.log.error("Error creating format function:",e),p=(0,_.format)(",")}let P=(0,c.scaleOrdinal)().range(["transparent",M.cScale0,M.cScale1,M.cScale2,M.cScale3,M.cScale4,M.cScale5,M.cScale6,M.cScale7,M.cScale8,M.cScale9,M.cScale10,M.cScale11]),$=(0,c.scaleOrdinal)().range(["transparent",M.cScalePeer0,M.cScalePeer1,M.cScalePeer2,M.cScalePeer3,M.cScalePeer4,M.cScalePeer5,M.cScalePeer6,M.cScalePeer7,M.cScalePeer8,M.cScalePeer9,M.cScalePeer10,M.cScalePeer11]),B=(0,c.scaleOrdinal)().range([M.cScaleLabel0,M.cScaleLabel1,M.cScaleLabel2,M.cScaleLabel3,M.cScaleLabel4,M.cScaleLabel5,M.cScaleLabel6,M.cScaleLabel7,M.cScaleLabel8,M.cScaleLabel9,M.cScaleLabel10,M.cScaleLabel11]);S&&w.append("text").attr("x",k/2).attr("y",C/2).attr("class","treemapTitle").attr("text-anchor","middle").attr("dominant-baseline","middle").text(S);let G=w.append("g").attr("transform",`translate(0, ${C})`).attr("class","treemapContainer"),L=m(x).sum(e=>e.value??0).sort((e,t)=>(t.value??0)-(e.value??0)),V=(function(){var e=d,t=!1,r=1,a=1,n=[0],i=f,l=f,s=f,o=f,c=f;function p(e){return e.x0=e.y0=0,e.x1=r,e.y1=a,e.eachBefore(m),n=[0],t&&e.eachBefore(u),e}function m(t){var r=n[t.depth],a=t.x0+r,u=t.y0+r,d=t.x1-r,f=t.y1-r;d<a&&(a=d=(a+d)/2),f<u&&(u=f=(u+f)/2),t.x0=a,t.y0=u,t.x1=d,t.y1=f,t.children&&(r=n[t.depth+1]=i(t)/2,a+=c(t)-r,u+=l(t)-r,d-=s(t)-r,f-=o(t)-r,d<a&&(a=d=(a+d)/2),f<u&&(u=f=(u+f)/2),e(t,a,u,d,f))}return p.round=function(e){return arguments.length?(t=!!e,p):t},p.size=function(e){return arguments.length?(r=+e[0],a=+e[1],p):[r,a]},p.tile=function(t){return arguments.length?(e=function(e){if("function"!=typeof e)throw Error();return e}(t),p):e},p.padding=function(e){return arguments.length?p.paddingInner(e).paddingOuter(e):p.paddingInner()},p.paddingInner=function(e){return arguments.length?(i="function"==typeof e?e:h(+e),p):i},p.paddingOuter=function(e){return arguments.length?p.paddingTop(e).paddingRight(e).paddingBottom(e).paddingLeft(e):p.paddingTop()},p.paddingTop=function(e){return arguments.length?(l="function"==typeof e?e:h(+e),p):l},p.paddingRight=function(e){return arguments.length?(s="function"==typeof e?e:h(+e),p):s},p.paddingBottom=function(e){return arguments.length?(o="function"==typeof e?e:h(+e),p):o},p.paddingLeft=function(e){return arguments.length?(c="function"==typeof e?e:h(+e),p):c},p})().size([k,T]).paddingTop(e=>e.children&&e.children.length>0?35:0).paddingInner(y).paddingLeft(e=>e.children&&e.children.length>0?10:0).paddingRight(e=>e.children&&e.children.length>0?10:0).paddingBottom(e=>e.children&&e.children.length>0?10:0).round(!0)(L),j=V.descendants().filter(e=>e.children&&e.children.length>0),D=G.selectAll(".treemapSection").data(j).enter().append("g").attr("class","treemapSection").attr("transform",e=>`translate(${e.x0},${e.y0})`);D.append("rect").attr("width",e=>e.x1-e.x0).attr("height",25).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",.6).attr("stroke-width",.6).attr("style",e=>0===e.depth?"display: none;":""),D.append("clipPath").attr("id",(e,t)=>`clip-section-${n}-${t}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-12)).attr("height",25),D.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class",(e,t)=>`treemapSection section${t}`).attr("fill",e=>P(e.data.name)).attr("fill-opacity",.6).attr("stroke",e=>$(e.data.name)).attr("stroke-width",2).attr("stroke-opacity",.4).attr("style",e=>{if(0===e.depth)return"display: none;";let t=(0,a.styles2String)({cssCompiledStyles:e.data.cssCompiledStyles});return t.nodeStyles+";"+t.borderStyles.join(";")}),D.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",12.5).attr("dominant-baseline","middle").text(e=>0===e.depth?"":e.data.name).attr("font-weight","bold").attr("style",e=>0===e.depth?"display: none;":"dominant-baseline: middle; font-size: 12px; fill:"+B(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;"+(0,a.styles2String)({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace("color:","fill:")).each(function(e){if(0===e.depth)return;let t=(0,b.select)(this),r=e.data.name;t.text(r);let a=e.x1-e.x0,n=Math.max(15,!1!==v.showValues&&e.value?a-10-30-10-6:a-6-6),i=t.node();if(i.getComputedTextLength()>n){let e=r;for(;e.length>0;){if(0===(e=r.substring(0,e.length-1)).length){t.text("..."),i.getComputedTextLength()>n&&t.text("");break}if(t.text(e+"..."),i.getComputedTextLength()<=n)break}}}),!1!==v.showValues&&D.append("text").attr("class","treemapSectionValue").attr("x",e=>e.x1-e.x0-10).attr("y",12.5).attr("text-anchor","end").attr("dominant-baseline","middle").text(e=>e.value?p(e.value):"").attr("font-style","italic").attr("style",e=>0===e.depth?"display: none;":"text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:"+B(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;"+(0,a.styles2String)({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace("color:","fill:"));let R=V.leaves(),E=G.selectAll(".treemapLeafGroup").data(R).enter().append("g").attr("class",(e,t)=>`treemapNode treemapLeafGroup leaf${t}${e.data.classSelector?` ${e.data.classSelector}`:""}x`).attr("transform",e=>`translate(${e.x0},${e.y0})`);E.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class","treemapLeaf").attr("fill",e=>e.parent?P(e.parent.data.name):P(e.data.name)).attr("style",e=>(0,a.styles2String)({cssCompiledStyles:e.data.cssCompiledStyles}).nodeStyles).attr("fill-opacity",.3).attr("stroke",e=>e.parent?P(e.parent.data.name):P(e.data.name)).attr("stroke-width",3),E.append("clipPath").attr("id",(e,t)=>`clip-${n}-${t}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-4)).attr("height",e=>Math.max(0,e.y1-e.y0-4)),E.append("text").attr("class","treemapLabel").attr("x",e=>(e.x1-e.x0)/2).attr("y",e=>(e.y1-e.y0)/2).attr("style",e=>"text-anchor: middle; dominant-baseline: middle; font-size: 38px;fill:"+B(e.data.name)+";"+(0,a.styles2String)({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace("color:","fill:")).attr("clip-path",(e,t)=>`url(#clip-${n}-${t})`).text(e=>e.data.name).each(function(e){let t=(0,b.select)(this),r=e.x1-e.x0,a=e.y1-e.y0,n=t.node(),i=r-8,l=a-8;if(i<10||l<10)return void t.style("display","none");let s=parseInt(t.style("font-size"),10);for(;n.getComputedTextLength()>i&&s>8;)s--,t.style("font-size",`${s}px`);let o=Math.max(6,Math.min(28,Math.round(.6*s))),c=s+2+o;for(;c>l&&s>8&&(!((o=Math.max(6,Math.min(28,Math.round(.6*--s))))<6)||8!==s);)t.style("font-size",`${s}px`),c=s+2+o;t.style("font-size",`${s}px`),(n.getComputedTextLength()>i||s<8||l<s)&&t.style("display","none")}),!1!==v.showValues&&E.append("text").attr("class","treemapValue").attr("x",e=>(e.x1-e.x0)/2).attr("y",function(e){return(e.y1-e.y0)/2}).attr("style",e=>"text-anchor: middle; dominant-baseline: hanging; font-size: 28px;fill:"+B(e.data.name)+";"+(0,a.styles2String)({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace("color:","fill:")).attr("clip-path",(e,t)=>`url(#clip-${n}-${t})`).text(e=>e.value?p(e.value):"").each(function(e){let t=(0,b.select)(this),r=this.parentNode;if(!r)return void t.style("display","none");let a=(0,b.select)(r).select(".treemapLabel");if(a.empty()||"none"===a.style("display"))return void t.style("display","none");let n=parseFloat(a.style("font-size")),i=Math.max(6,Math.min(28,Math.round(.6*n)));t.style("font-size",`${i}px`);let l=(e.y1-e.y0)/2+n/2+2;t.attr("y",l);let s=e.x1-e.x0,o=e.y1-e.y0;t.node().getComputedTextLength()>s-8||l+i>o-4||i<6?t.style("display","none"):t.style("display",null)});let N=v.diagramPadding??8;(0,r.setupViewPortForSVG)(w,N,"flowchart",v?.useMaxWidth||!1)},"draw"),P=(0,s.__name)(function(e,t){return t.db.getClasses()},"getClasses"),$={sectionStrokeColor:"black",sectionStrokeWidth:"1",sectionFillColor:"#efefef",leafStrokeColor:"black",leafStrokeWidth:"1",leafFillColor:"#efefef",labelColor:"black",labelFontSize:"12px",valueFontSize:"10px",valueColor:"black",titleColor:"black",titleFontSize:"14px"},B={parser:T,get db(){return new M},renderer:{draw:A,getClasses:P},styles:(0,s.__name)(({treemap:e}={})=>{let t=(0,i.cleanAndMerge)($,e);return`
2
- .treemapNode.section {
3
- stroke: ${t.sectionStrokeColor};
4
- stroke-width: ${t.sectionStrokeWidth};
5
- fill: ${t.sectionFillColor};
6
- }
7
- .treemapNode.leaf {
8
- stroke: ${t.leafStrokeColor};
9
- stroke-width: ${t.leafStrokeWidth};
10
- fill: ${t.leafFillColor};
11
- }
12
- .treemapLabel {
13
- fill: ${t.labelColor};
14
- font-size: ${t.labelFontSize};
15
- }
16
- .treemapValue {
17
- fill: ${t.valueColor};
18
- font-size: ${t.valueFontSize};
19
- }
20
- .treemapTitle {
21
- fill: ${t.titleColor};
22
- font-size: ${t.titleFontSize};
23
- }
24
- `},"getStyles")};e.s(["diagram",()=>B],34375)},6357,e=>{e.v(t=>Promise.all(["static/chunks/bf43d5271822fbab.js"].map(t=>e.l(t))).then(()=>t(92816)))},61041,e=>{e.v(t=>Promise.all(["static/chunks/0f285960aa7beb63.js"].map(t=>e.l(t))).then(()=>t(33064)))},79294,e=>{e.v(t=>Promise.all(["static/chunks/65ebd3fb41a7a637.js"].map(t=>e.l(t))).then(()=>t(84968)))},21131,e=>{e.v(t=>Promise.all(["static/chunks/b4d473f020b3c5ee.js"].map(t=>e.l(t))).then(()=>t(18940)))},37762,e=>{e.v(t=>Promise.all(["static/chunks/7f2fa1dfedcfdd93.js"].map(t=>e.l(t))).then(()=>t(89189)))},34567,e=>{e.v(t=>Promise.all(["static/chunks/87e909206a468fdb.js"].map(t=>e.l(t))).then(()=>t(31297)))},6411,e=>{e.v(t=>Promise.all(["static/chunks/ca5aff308348ecd2.js"].map(t=>e.l(t))).then(()=>t(22976)))}]);
@@ -1,29 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,50654,e=>{"use strict";var t=e.i(99950),r=e.i(25876),a=e.i(55794),n=e.i(89489),i=class extends t.AbstractMermaidTokenBuilder{static{(0,t.__name)(this,"ArchitectureTokenBuilder")}constructor(){super(["architecture"])}},l=class extends t.AbstractMermaidValueConverter{static{(0,t.__name)(this,"ArchitectureValueConverter")}runCustomConverter(e,t,r){return"ARCH_ICON"===e.name?t.replace(/[()]/g,"").trim():"ARCH_TEXT_ICON"===e.name?t.replace(/["()]/g,""):"ARCH_TITLE"===e.name?t.replace(/[[\]]/g,"").trim():void 0}},s={parser:{TokenBuilder:(0,t.__name)(()=>new i,"TokenBuilder"),ValueConverter:(0,t.__name)(()=>new l,"ValueConverter")}};function u(e=r.EmptyFileSystem){let i=(0,n.inject)((0,a.createDefaultSharedCoreModule)(e),t.MermaidGeneratedSharedModule),l=(0,n.inject)((0,a.createDefaultCoreModule)({shared:i}),t.ArchitectureGrammarGeneratedModule,s);return i.ServiceRegistry.register(l),{shared:i,Architecture:l}}(0,t.__name)(u,"createArchitectureServices"),e.s(["ArchitectureModule",()=>s,"createArchitectureServices",()=>u])},71677,e=>{"use strict";var t=e.i(99950),r=e.i(25876),a=e.i(55794),n=e.i(89489),i=class extends t.AbstractMermaidTokenBuilder{static{(0,t.__name)(this,"TreemapTokenBuilder")}constructor(){super(["treemap"])}},l=/classDef\s+([A-Z_a-z]\w+)(?:\s+([^\n\r;]*))?;?/,s=class extends t.AbstractMermaidValueConverter{static{(0,t.__name)(this,"TreemapValueConverter")}runCustomConverter(e,t,r){if("NUMBER2"===e.name)return parseFloat(t.replace(/,/g,""));if("SEPARATOR"===e.name)return t.substring(1,t.length-1);if("STRING2"===e.name)return t.substring(1,t.length-1);if("INDENTATION"===e.name)return t.length;if("ClassDef"===e.name){if("string"!=typeof t)return t;let e=l.exec(t);if(e)return{$type:"ClassDefStatement",className:e[1],styleText:e[2]||void 0}}}};function u(e){let t=e.validation.TreemapValidator,r=e.validation.ValidationRegistry;if(r){let e={Treemap:t.checkSingleRoot.bind(t)};r.register(e,t)}}(0,t.__name)(u,"registerValidationChecks");var o=class{static{(0,t.__name)(this,"TreemapValidator")}checkSingleRoot(e,t){let r;for(let a of e.TreemapRows)a.item&&(void 0===r&&void 0===a.indent?r=0:void 0===a.indent?t("error","Multiple root nodes are not allowed in a treemap.",{node:a,property:"item"}):void 0!==r&&r>=parseInt(a.indent,10)&&t("error","Multiple root nodes are not allowed in a treemap.",{node:a,property:"item"}))}},c={parser:{TokenBuilder:(0,t.__name)(()=>new i,"TokenBuilder"),ValueConverter:(0,t.__name)(()=>new s,"ValueConverter")},validation:{TreemapValidator:(0,t.__name)(()=>new o,"TreemapValidator")}};function d(e=r.EmptyFileSystem){let i=(0,n.inject)((0,a.createDefaultSharedCoreModule)(e),t.MermaidGeneratedSharedModule),l=(0,n.inject)((0,a.createDefaultCoreModule)({shared:i}),t.TreemapGrammarGeneratedModule,c);return i.ServiceRegistry.register(l),u(l),{shared:i,Treemap:l}}(0,t.__name)(d,"createTreemapServices"),e.s(["TreemapModule",()=>c,"createTreemapServices",()=>d])},66195,e=>{"use strict";var t=e.i(99950),r=e.i(25876),a=e.i(55794),n=e.i(89489),i=class extends t.AbstractMermaidTokenBuilder{static{(0,t.__name)(this,"RadarTokenBuilder")}constructor(){super(["radar-beta"])}},l={parser:{TokenBuilder:(0,t.__name)(()=>new i,"TokenBuilder"),ValueConverter:(0,t.__name)(()=>new t.CommonValueConverter,"ValueConverter")}};function s(e=r.EmptyFileSystem){let i=(0,n.inject)((0,a.createDefaultSharedCoreModule)(e),t.MermaidGeneratedSharedModule),u=(0,n.inject)((0,a.createDefaultCoreModule)({shared:i}),t.RadarGrammarGeneratedModule,l);return i.ServiceRegistry.register(u),{shared:i,Radar:u}}(0,t.__name)(s,"createRadarServices"),e.s(["RadarModule",()=>l,"createRadarServices",()=>s])},67095,e=>{"use strict";var t=e.i(99950),r=e.i(25876),a=e.i(55794),n=e.i(89489),i=class extends t.AbstractMermaidTokenBuilder{static{(0,t.__name)(this,"PacketTokenBuilder")}constructor(){super(["packet"])}},l={parser:{TokenBuilder:(0,t.__name)(()=>new i,"TokenBuilder"),ValueConverter:(0,t.__name)(()=>new t.CommonValueConverter,"ValueConverter")}};function s(e=r.EmptyFileSystem){let i=(0,n.inject)((0,a.createDefaultSharedCoreModule)(e),t.MermaidGeneratedSharedModule),u=(0,n.inject)((0,a.createDefaultCoreModule)({shared:i}),t.PacketGrammarGeneratedModule,l);return i.ServiceRegistry.register(u),{shared:i,Packet:u}}(0,t.__name)(s,"createPacketServices"),e.s(["PacketModule",()=>l,"createPacketServices",()=>s])},68282,e=>{"use strict";var t=e.i(99950),r=e.i(25876),a=e.i(55794),n=e.i(89489),i=class extends t.AbstractMermaidTokenBuilder{static{(0,t.__name)(this,"InfoTokenBuilder")}constructor(){super(["info","showInfo"])}},l={parser:{TokenBuilder:(0,t.__name)(()=>new i,"TokenBuilder"),ValueConverter:(0,t.__name)(()=>new t.CommonValueConverter,"ValueConverter")}};function s(e=r.EmptyFileSystem){let i=(0,n.inject)((0,a.createDefaultSharedCoreModule)(e),t.MermaidGeneratedSharedModule),u=(0,n.inject)((0,a.createDefaultCoreModule)({shared:i}),t.InfoGrammarGeneratedModule,l);return i.ServiceRegistry.register(u),{shared:i,Info:u}}(0,t.__name)(s,"createInfoServices"),e.s(["InfoModule",()=>l,"createInfoServices",()=>s])},39828,e=>{"use strict";var t=e.i(99950),r=e.i(25876),a=e.i(55794),n=e.i(89489),i=class extends t.AbstractMermaidTokenBuilder{static{(0,t.__name)(this,"PieTokenBuilder")}constructor(){super(["pie","showData"])}},l=class extends t.AbstractMermaidValueConverter{static{(0,t.__name)(this,"PieValueConverter")}runCustomConverter(e,t,r){if("PIE_SECTION_LABEL"===e.name)return t.replace(/"/g,"").trim()}},s={parser:{TokenBuilder:(0,t.__name)(()=>new i,"TokenBuilder"),ValueConverter:(0,t.__name)(()=>new l,"ValueConverter")}};function u(e=r.EmptyFileSystem){let i=(0,n.inject)((0,a.createDefaultSharedCoreModule)(e),t.MermaidGeneratedSharedModule),l=(0,n.inject)((0,a.createDefaultCoreModule)({shared:i}),t.PieGrammarGeneratedModule,s);return i.ServiceRegistry.register(l),{shared:i,Pie:l}}(0,t.__name)(u,"createPieServices"),e.s(["PieModule",()=>s,"createPieServices",()=>u])},94261,e=>{"use strict";var t=e.i(8977);e.s(["clone",()=>t.default])},8977,e=>{"use strict";var t=e.i(49218);e.s(["default",0,function(e){return(0,t.default)(e,4)}])},77123,e=>{"use strict";var t=e.i(13759);e.s(["forEach",()=>t.default])},15987,e=>{"use strict";var t=Object.prototype.hasOwnProperty;let r=function(e,r){return null!=e&&t.call(e,r)};var a=e.i(40160);e.s(["has",0,function(e,t){return null!=e&&(0,a.default)(e,t,r)}],15987)},80792,86587,34197,93776,e=>{"use strict";var t=e.i(1912),r=e.i(75811),a=e.i(32505),n=e.i(42125);let i=function(e,t){var r=-1,i=(0,n.default)(e)?Array(e.length):[];return(0,a.default)(e,function(e,a,n){i[++r]=t(e,a,n)}),i};e.s(["default",0,i],86587);var l=e.i(94878);let s=function(e,a){return((0,l.default)(e)?t.default:i)(e,(0,r.default)(a,3))};e.s(["default",0,s],34197),e.s(["map",0,s],80792);var u=/\s/;let o=function(e){for(var t=e.length;t--&&u.test(e.charAt(t)););return t};var c=/^\s+/,d=e.i(91947),f=e.i(85647),p=0/0,m=/^[-+]0x[0-9a-f]+$/i,h=/^0b[01]+$/i,v=/^0o[0-7]+$/i,g=parseInt;let y=function(e){if("number"==typeof e)return e;if((0,f.default)(e))return p;if((0,d.default)(e)){var t,r="function"==typeof e.valueOf?e.valueOf():e;e=(0,d.default)(r)?r+"":r}if("string"!=typeof e)return 0===e?e:+e;e=(t=e)?t.slice(0,o(t)+1).replace(c,""):t;var a=h.test(e);return a||v.test(e)?g(e.slice(2),a?2:8):m.test(e)?p:+e};var _=1/0;e.s(["default",0,function(e){return e?(e=y(e))===_||e===-_?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}],93776)},40439,e=>{"use strict";var t=e.i(93776);e.s(["default",0,function(e){var r=(0,t.default)(e),a=r%1;return r==r?a?r-a:r:0}])},28709,e=>{"use strict";var t=e.i(24277),r=e.i(94878),a=e.i(24904);e.s(["default",0,function(e){return"string"==typeof e||!(0,r.default)(e)&&(0,a.default)(e)&&"[object String]"==(0,t.default)(e)}])},95790,e=>{"use strict";var t=e.i(88098),r=e.i(22523),a=e.i(43768),n=e.i(98546),i=e.i(91947),l=e.i(23925);let s=function(e,t,s,u){if(!(0,i.default)(e))return e;t=(0,a.default)(t,e);for(var o=-1,c=t.length,d=c-1,f=e;null!=f&&++o<c;){var p=(0,l.default)(t[o]),m=s;if("__proto__"===p||"constructor"===p||"prototype"===p)break;if(o!=d){var h=f[p];void 0===(m=u?u(h,p,f):void 0)&&(m=(0,i.default)(h)?h:(0,n.default)(t[o+1])?[]:{})}(0,r.default)(f,p,m),f=f[p]}return e};e.s(["default",0,function(e,r,n){for(var i=-1,l=r.length,u={};++i<l;){var o=r[i],c=(0,t.default)(e,o);n(c,o)&&s(u,(0,a.default)(o,e),c)}return u}],95790)},85898,9235,e=>{"use strict";var t=e.i(17242);let r=function(e){return(null==e?0:e.length)?(0,t.default)(e,1):[]};e.s(["default",0,r],9235),e.s(["flatten",0,r],85898)},83511,e=>{"use strict";var t=e.i(68464),r=e.i(7693),a=e.i(52056),n=e.i(65218),i=Object.prototype,l=i.hasOwnProperty,s=(0,t.default)(function(e,t){e=Object(e);var s=-1,u=t.length,o=u>2?t[2]:void 0;for(o&&(0,a.default)(t[0],t[1],o)&&(u=1);++s<u;)for(var c=t[s],d=(0,n.default)(c),f=-1,p=d.length;++f<p;){var m=d[f],h=e[m];(void 0===h||(0,r.default)(h,i[m])&&!l.call(e,m))&&(e[m]=c[m])}return e});e.s(["defaults",0,s],83511)},83375,e=>{"use strict";var t=e.i(75811),r=e.i(42125),a=e.i(26054);e.s(["default",0,function(e){return function(n,i,l){var s=Object(n);if(!(0,r.default)(n)){var u=(0,t.default)(i,3);n=(0,a.default)(n),i=function(e){return u(s[e],e,s)}}var o=e(n,i,l);return o>-1?s[u?n[o]:o]:void 0}}])},18573,e=>{"use strict";var t=e.i(83375),r=e.i(78562),a=e.i(75811),n=e.i(40439),i=Math.max,l=(0,t.default)(function(e,t,l){var s=null==e?0:e.length;if(!s)return -1;var u=null==l?0:(0,n.default)(l);return u<0&&(u=i(s+u,0)),(0,r.default)(e,(0,a.default)(t,3),u)});e.s(["find",0,l],18573)},41929,e=>{"use strict";var t=e.i(94878);e.s(["isArray",()=>t.default])},31490,e=>{"use strict";e.s(["last",0,function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}],31490)},22279,e=>{"use strict";var t=e.i(85647);e.s(["default",0,function(e,r,a){for(var n=-1,i=e.length;++n<i;){var l=e[n],s=r(l);if(null!=s&&(void 0===u?s==s&&!(0,t.default)(s):a(s,u)))var u=s,o=l}return o}])},99517,85639,e=>{"use strict";var t=e.i(22279);let r=function(e,t){return e<t};e.s(["default",0,r],85639);var a=e.i(16481);e.s(["default",0,function(e){return e&&e.length?(0,t.default)(e,a.default,r):void 0}],99517)},30447,e=>{"use strict";var t=e.i(99950),r=e.i(89489),a=e.i(55794),n=e.i(25876),i=class extends t.AbstractMermaidTokenBuilder{static{(0,t.__name)(this,"GitGraphTokenBuilder")}constructor(){super(["gitGraph"])}},l={parser:{TokenBuilder:(0,t.__name)(()=>new i,"TokenBuilder"),ValueConverter:(0,t.__name)(()=>new t.CommonValueConverter,"ValueConverter")}};function s(e=n.EmptyFileSystem){let i=(0,r.inject)((0,a.createDefaultSharedCoreModule)(e),t.MermaidGeneratedSharedModule),u=(0,r.inject)((0,a.createDefaultCoreModule)({shared:i}),t.GitGraphGrammarGeneratedModule,l);return i.ServiceRegistry.register(u),{shared:i,GitGraph:u}}(0,t.__name)(s,"createGitGraphServices"),e.s(["GitGraphModule",()=>l,"createGitGraphServices",()=>s])},86755,e=>{"use strict";e.i(30447),e.i(68282),e.i(67095),e.i(39828),e.i(50654),e.i(66195),e.i(71677);var t=e.i(99950),r={},a={info:(0,t.__name)(async()=>{let{createInfoServices:t}=await e.A(6357);r.info=t().Info.parser.LangiumParser},"info"),packet:(0,t.__name)(async()=>{let{createPacketServices:t}=await e.A(61041);r.packet=t().Packet.parser.LangiumParser},"packet"),pie:(0,t.__name)(async()=>{let{createPieServices:t}=await e.A(79294);r.pie=t().Pie.parser.LangiumParser},"pie"),architecture:(0,t.__name)(async()=>{let{createArchitectureServices:t}=await e.A(21131);r.architecture=t().Architecture.parser.LangiumParser},"architecture"),gitGraph:(0,t.__name)(async()=>{let{createGitGraphServices:t}=await e.A(37762);r.gitGraph=t().GitGraph.parser.LangiumParser},"gitGraph"),radar:(0,t.__name)(async()=>{let{createRadarServices:t}=await e.A(34567);r.radar=t().Radar.parser.LangiumParser},"radar"),treemap:(0,t.__name)(async()=>{let{createTreemapServices:t}=await e.A(6411);r.treemap=t().Treemap.parser.LangiumParser},"treemap")};async function n(e,t){let n=a[e];if(!n)throw Error(`Unknown diagram type: ${e}`);r[e]||await n();let l=r[e].parse(t);if(l.lexerErrors.length>0||l.parserErrors.length>0)throw new i(l);return l.value}(0,t.__name)(n,"parse");var i=class extends Error{constructor(e){const t=e.lexerErrors.map(e=>e.message).join("\n"),r=e.parserErrors.map(e=>e.message).join("\n");super(`Parsing failed: ${t} ${r}`),this.result=e}static{(0,t.__name)(this,"MermaidParseError")}};e.s(["parse",()=>n])},48434,e=>{"use strict";function t(e,t){e.accDescr&&t.setAccDescription?.(e.accDescr),e.accTitle&&t.setAccTitle?.(e.accTitle),e.title&&t.setDiagramTitle?.(e.title)}(0,e.i(31195).__name)(t,"populateCommonDb"),e.s(["populateCommonDb",()=>t])},96340,e=>{"use strict";function t(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}e.s(["initRange",()=>t])},27994,e=>{"use strict";class t extends Map{constructor(e,t=a){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,r]of e)this.set(t,r)}get(e){return super.get(r(this,e))}has(e){return super.has(r(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},r){let a=t(r);return e.has(a)?e.get(a):(e.set(a,r),r)}(this,e),t)}delete(e){return super.delete(function({_intern:e,_key:t},r){let a=t(r);return e.has(a)&&(r=e.get(a),e.delete(a)),r}(this,e))}}function r({_intern:e,_key:t},r){let a=t(r);return e.has(a)?e.get(a):r}function a(e){return null!==e&&"object"==typeof e?e.valueOf():e}var n=e.i(96340);let i=Symbol("implicit");e.s(["default",()=>function e(){var r=new t,a=[],l=[],s=i;function u(e){let t=r.get(e);if(void 0===t){if(s!==i)return s;r.set(e,t=a.push(e)-1)}return l[t%l.length]}return u.domain=function(e){if(!arguments.length)return a.slice();for(let n of(a=[],r=new t,e))r.has(n)||r.set(n,a.push(n)-1);return u},u.range=function(e){return arguments.length?(l=Array.from(e),u):l.slice()},u.unknown=function(e){return arguments.length?(s=e,u):s},u.copy=function(){return e(a,l).unknown(s)},n.initRange.apply(u,arguments),u}],27994)},49851,e=>{"use strict";var t=e.i(27994);e.s(["scaleOrdinal",()=>t.default])},6511,e=>{"use strict";var t=e.i(59683),r=e.i(24885),a=e.i(99518);function n(e){return e.innerRadius}function i(e){return e.outerRadius}function l(e){return e.startAngle}function s(e){return e.endAngle}function u(e){return e&&e.padAngle}function o(e,t,a,n,i,l,s){var u=e-a,o=t-n,c=(s?l:-l)/(0,r.sqrt)(u*u+o*o),d=c*o,f=-c*u,p=e+d,m=t+f,h=a+d,v=n+f,g=(p+h)/2,y=(m+v)/2,_=h-p,T=v-m,S=_*_+T*T,x=i-l,C=p*v-h*m,A=(T<0?-1:1)*(0,r.sqrt)((0,r.max)(0,x*x*S-C*C)),M=(C*T-_*A)/S,k=(-C*_-T*A)/S,w=(C*T+_*A)/S,b=(-C*_+T*A)/S,D=M-g,P=k-y,G=w-g,R=b-y;return D*D+P*P>G*G+R*R&&(M=w,k=b),{cx:M,cy:k,x01:-d,y01:-f,x11:M*(i/x-1),y11:k*(i/x-1)}}e.s(["arc",0,function(){var e=n,c=i,d=(0,t.default)(0),f=null,p=l,m=s,h=u,v=null,g=(0,a.withPath)(y);function y(){var t,a,n=+e.apply(this,arguments),i=+c.apply(this,arguments),l=p.apply(this,arguments)-r.halfPi,s=m.apply(this,arguments)-r.halfPi,u=(0,r.abs)(s-l),y=s>l;if(v||(v=t=g()),i<n&&(a=i,i=n,n=a),i>r.epsilon)if(u>r.tau-r.epsilon)v.moveTo(i*(0,r.cos)(l),i*(0,r.sin)(l)),v.arc(0,0,i,l,s,!y),n>r.epsilon&&(v.moveTo(n*(0,r.cos)(s),n*(0,r.sin)(s)),v.arc(0,0,n,s,l,y));else{var _,T,S=l,x=s,C=l,A=s,M=u,k=u,w=h.apply(this,arguments)/2,b=w>r.epsilon&&(f?+f.apply(this,arguments):(0,r.sqrt)(n*n+i*i)),D=(0,r.min)((0,r.abs)(i-n)/2,+d.apply(this,arguments)),P=D,G=D;if(b>r.epsilon){var R=(0,r.asin)(b/n*(0,r.sin)(w)),B=(0,r.asin)(b/i*(0,r.sin)(w));(M-=2*R)>r.epsilon?(R*=y?1:-1,C+=R,A-=R):(M=0,C=A=(l+s)/2),(k-=2*B)>r.epsilon?(B*=y?1:-1,S+=B,x-=B):(k=0,S=x=(l+s)/2)}var j=i*(0,r.cos)(S),V=i*(0,r.sin)(S),$=n*(0,r.cos)(A),E=n*(0,r.sin)(A);if(D>r.epsilon){var O,I=i*(0,r.cos)(x),F=i*(0,r.sin)(x),L=n*(0,r.cos)(C),N=n*(0,r.sin)(C);if(u<r.pi)if(O=function(e,t,a,n,i,l,s,u){var o=a-e,c=n-t,d=s-i,f=u-l,p=f*o-d*c;if(!(p*p<r.epsilon))return p=(d*(t-l)-f*(e-i))/p,[e+p*o,t+p*c]}(j,V,L,N,I,F,$,E)){var z=j-O[0],q=V-O[1],U=I-O[0],W=F-O[1],H=1/(0,r.sin)((0,r.acos)((z*U+q*W)/((0,r.sqrt)(z*z+q*q)*(0,r.sqrt)(U*U+W*W)))/2),K=(0,r.sqrt)(O[0]*O[0]+O[1]*O[1]);P=(0,r.min)(D,(n-K)/(H-1)),G=(0,r.min)(D,(i-K)/(H+1))}else P=G=0}k>r.epsilon?G>r.epsilon?(_=o(L,N,j,V,i,G,y),T=o(I,F,$,E,i,G,y),v.moveTo(_.cx+_.x01,_.cy+_.y01),G<D?v.arc(_.cx,_.cy,G,(0,r.atan2)(_.y01,_.x01),(0,r.atan2)(T.y01,T.x01),!y):(v.arc(_.cx,_.cy,G,(0,r.atan2)(_.y01,_.x01),(0,r.atan2)(_.y11,_.x11),!y),v.arc(0,0,i,(0,r.atan2)(_.cy+_.y11,_.cx+_.x11),(0,r.atan2)(T.cy+T.y11,T.cx+T.x11),!y),v.arc(T.cx,T.cy,G,(0,r.atan2)(T.y11,T.x11),(0,r.atan2)(T.y01,T.x01),!y))):(v.moveTo(j,V),v.arc(0,0,i,S,x,!y)):v.moveTo(j,V),n>r.epsilon&&M>r.epsilon?P>r.epsilon?(_=o($,E,I,F,n,-P,y),T=o(j,V,L,N,n,-P,y),v.lineTo(_.cx+_.x01,_.cy+_.y01),P<D?v.arc(_.cx,_.cy,P,(0,r.atan2)(_.y01,_.x01),(0,r.atan2)(T.y01,T.x01),!y):(v.arc(_.cx,_.cy,P,(0,r.atan2)(_.y01,_.x01),(0,r.atan2)(_.y11,_.x11),!y),v.arc(0,0,n,(0,r.atan2)(_.cy+_.y11,_.cx+_.x11),(0,r.atan2)(T.cy+T.y11,T.cx+T.x11),y),v.arc(T.cx,T.cy,P,(0,r.atan2)(T.y11,T.x11),(0,r.atan2)(T.y01,T.x01),!y))):v.arc(0,0,n,A,C,y):v.lineTo($,E)}else v.moveTo(0,0);if(v.closePath(),t)return v=null,t+""||null}return y.centroid=function(){var t=(+e.apply(this,arguments)+ +c.apply(this,arguments))/2,a=(+p.apply(this,arguments)+ +m.apply(this,arguments))/2-r.pi/2;return[(0,r.cos)(a)*t,(0,r.sin)(a)*t]},y.innerRadius=function(r){return arguments.length?(e="function"==typeof r?r:(0,t.default)(+r),y):e},y.outerRadius=function(e){return arguments.length?(c="function"==typeof e?e:(0,t.default)(+e),y):c},y.cornerRadius=function(e){return arguments.length?(d="function"==typeof e?e:(0,t.default)(+e),y):d},y.padRadius=function(e){return arguments.length?(f=null==e?null:"function"==typeof e?e:(0,t.default)(+e),y):f},y.startAngle=function(e){return arguments.length?(p="function"==typeof e?e:(0,t.default)(+e),y):p},y.endAngle=function(e){return arguments.length?(m="function"==typeof e?e:(0,t.default)(+e),y):m},y.padAngle=function(e){return arguments.length?(h="function"==typeof e?e:(0,t.default)(+e),y):h},y.context=function(e){return arguments.length?(v=null==e?null:e,y):v},y}],6511)},15,e=>{"use strict";var t=e.i(57518),r=e.i(48434),a=e.i(285),n=e.i(39467),i=e.i(31195),l=e.i(86755);e.i(91577);var s=e.i(6511),u=e.i(51934),o=e.i(59683);function c(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function d(e){return e}var f=e.i(24885),p=e.i(49851),m=n.defaultConfig_default.pie,h={sections:new Map,showData:!1,config:m},v=h.sections,g=h.showData,y=structuredClone(m),_=(0,i.__name)(()=>structuredClone(y),"getConfig"),T=(0,i.__name)(()=>{v=new Map,g=h.showData,(0,n.clear)()},"clear"),S=(0,i.__name)(({label:e,value:t})=>{if(t<0)throw Error(`"${e}" has invalid value: ${t}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);v.has(e)||(v.set(e,t),i.log.debug(`added new section: ${e}, with value: ${t}`))},"addSection"),x=(0,i.__name)(()=>v,"getSections"),C=(0,i.__name)(e=>{g=e},"setShowData"),A=(0,i.__name)(()=>g,"getShowData"),M={getConfig:_,clear:T,setDiagramTitle:n.setDiagramTitle,getDiagramTitle:n.getDiagramTitle,setAccTitle:n.setAccTitle,getAccTitle:n.getAccTitle,setAccDescription:n.setAccDescription,getAccDescription:n.getAccDescription,addSection:S,getSections:x,setShowData:C,getShowData:A},k=(0,i.__name)((e,t)=>{(0,r.populateCommonDb)(e,t),t.setShowData(e.showData),e.sections.map(t.addSection)},"populateDb"),w={parse:(0,i.__name)(async e=>{let t=await (0,l.parse)("pie",e);i.log.debug(t),k(t,M)},"parse")},b=(0,i.__name)(e=>`
2
- .pieCircle{
3
- stroke: ${e.pieStrokeColor};
4
- stroke-width : ${e.pieStrokeWidth};
5
- opacity : ${e.pieOpacity};
6
- }
7
- .pieOuterCircle{
8
- stroke: ${e.pieOuterStrokeColor};
9
- stroke-width: ${e.pieOuterStrokeWidth};
10
- fill: none;
11
- }
12
- .pieTitleText {
13
- text-anchor: middle;
14
- font-size: ${e.pieTitleTextSize};
15
- fill: ${e.pieTitleTextColor};
16
- font-family: ${e.fontFamily};
17
- }
18
- .slice {
19
- font-family: ${e.fontFamily};
20
- fill: ${e.pieSectionTextColor};
21
- font-size:${e.pieSectionTextSize};
22
- // fill: white;
23
- }
24
- .legend text {
25
- fill: ${e.pieLegendTextColor};
26
- font-family: ${e.fontFamily};
27
- font-size: ${e.pieLegendTextSize};
28
- }
29
- `,"getStyles"),D=(0,i.__name)(e=>{let t=[...e.values()].reduce((e,t)=>e+t,0),r=[...e.entries()].map(([e,t])=>({label:e,value:t})).filter(e=>e.value/t*100>=1).sort((e,t)=>t.value-e.value);return(function(){var e=d,t=c,r=null,a=(0,o.default)(0),n=(0,o.default)(f.tau),i=(0,o.default)(0);function l(l){var s,o,c,d,p,m=(l=(0,u.default)(l)).length,h=0,v=Array(m),g=Array(m),y=+a.apply(this,arguments),_=Math.min(f.tau,Math.max(-f.tau,n.apply(this,arguments)-y)),T=Math.min(Math.abs(_)/m,i.apply(this,arguments)),S=T*(_<0?-1:1);for(s=0;s<m;++s)(p=g[v[s]=s]=+e(l[s],s,l))>0&&(h+=p);for(null!=t?v.sort(function(e,r){return t(g[e],g[r])}):null!=r&&v.sort(function(e,t){return r(l[e],l[t])}),s=0,c=h?(_-m*S)/h:0;s<m;++s,y=d)d=y+((p=g[o=v[s]])>0?p*c:0)+S,g[o]={data:l[o],index:s,value:p,startAngle:y,endAngle:d,padAngle:T};return g}return l.value=function(t){return arguments.length?(e="function"==typeof t?t:(0,o.default)(+t),l):e},l.sortValues=function(e){return arguments.length?(t=e,r=null,l):t},l.sort=function(e){return arguments.length?(r=e,t=null,l):r},l.startAngle=function(e){return arguments.length?(a="function"==typeof e?e:(0,o.default)(+e),l):a},l.endAngle=function(e){return arguments.length?(n="function"==typeof e?e:(0,o.default)(+e),l):n},l.padAngle=function(e){return arguments.length?(i="function"==typeof e?e:(0,o.default)(+e),l):i},l})().value(e=>e.value)(r)},"createPieArcs"),P={parser:w,db:M,renderer:{draw:(0,i.__name)((e,r,l,u)=>{i.log.debug("rendering pie chart\n"+e);let o=u.db,c=(0,n.getConfig2)(),d=(0,a.cleanAndMerge)(o.getConfig(),c.pie),f=(0,t.selectSvgElement)(r),m=f.append("g");m.attr("transform","translate(225,225)");let{themeVariables:h}=c,[v]=(0,a.parseFontSize)(h.pieOuterStrokeWidth);v??=2;let g=d.textPosition,y=(0,s.arc)().innerRadius(0).outerRadius(185),_=(0,s.arc)().innerRadius(185*g).outerRadius(185*g);m.append("circle").attr("cx",0).attr("cy",0).attr("r",185+v/2).attr("class","pieOuterCircle");let T=o.getSections(),S=D(T),x=[h.pie1,h.pie2,h.pie3,h.pie4,h.pie5,h.pie6,h.pie7,h.pie8,h.pie9,h.pie10,h.pie11,h.pie12],C=0;T.forEach(e=>{C+=e});let A=S.filter(e=>"0"!==(e.data.value/C*100).toFixed(0)),M=(0,p.scaleOrdinal)(x);m.selectAll("mySlices").data(A).enter().append("path").attr("d",y).attr("fill",e=>M(e.data.label)).attr("class","pieCircle"),m.selectAll("mySlices").data(A).enter().append("text").text(e=>(e.data.value/C*100).toFixed(0)+"%").attr("transform",e=>"translate("+_.centroid(e)+")").style("text-anchor","middle").attr("class","slice"),m.append("text").text(o.getDiagramTitle()).attr("x",0).attr("y",-200).attr("class","pieTitleText");let k=[...T.entries()].map(([e,t])=>({label:e,value:t})),w=m.selectAll(".legend").data(k).enter().append("g").attr("class","legend").attr("transform",(e,t)=>"translate(216,"+(22*t-22*k.length/2)+")");w.append("rect").attr("width",18).attr("height",18).style("fill",e=>M(e.label)).style("stroke",e=>M(e.label)),w.append("text").attr("x",22).attr("y",14).text(e=>o.getShowData()?`${e.label} [${e.value}]`:e.label);let b=512+Math.max(...w.selectAll("text").nodes().map(e=>e?.getBoundingClientRect().width??0));f.attr("viewBox",`0 0 ${b} 450`),(0,n.configureSvgSize)(f,450,b,d.useMaxWidth)},"draw")},styles:b};e.s(["diagram",()=>P],15)},6357,e=>{e.v(t=>Promise.all(["static/chunks/bf43d5271822fbab.js"].map(t=>e.l(t))).then(()=>t(92816)))},61041,e=>{e.v(t=>Promise.all(["static/chunks/0f285960aa7beb63.js"].map(t=>e.l(t))).then(()=>t(33064)))},79294,e=>{e.v(t=>Promise.all(["static/chunks/65ebd3fb41a7a637.js"].map(t=>e.l(t))).then(()=>t(84968)))},21131,e=>{e.v(t=>Promise.all(["static/chunks/b4d473f020b3c5ee.js"].map(t=>e.l(t))).then(()=>t(18940)))},37762,e=>{e.v(t=>Promise.all(["static/chunks/7f2fa1dfedcfdd93.js"].map(t=>e.l(t))).then(()=>t(89189)))},34567,e=>{e.v(t=>Promise.all(["static/chunks/87e909206a468fdb.js"].map(t=>e.l(t))).then(()=>t(31297)))},6411,e=>{e.v(t=>Promise.all(["static/chunks/ca5aff308348ecd2.js"].map(t=>e.l(t))).then(()=>t(22976)))}]);
@@ -1 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,50654,e=>{"use strict";var r=e.i(99950),t=e.i(25876),a=e.i(55794),i=e.i(89489),n=class extends r.AbstractMermaidTokenBuilder{static{(0,r.__name)(this,"ArchitectureTokenBuilder")}constructor(){super(["architecture"])}},s=class extends r.AbstractMermaidValueConverter{static{(0,r.__name)(this,"ArchitectureValueConverter")}runCustomConverter(e,r,t){return"ARCH_ICON"===e.name?r.replace(/[()]/g,"").trim():"ARCH_TEXT_ICON"===e.name?r.replace(/["()]/g,""):"ARCH_TITLE"===e.name?r.replace(/[[\]]/g,"").trim():void 0}},u={parser:{TokenBuilder:(0,r.__name)(()=>new n,"TokenBuilder"),ValueConverter:(0,r.__name)(()=>new s,"ValueConverter")}};function l(e=t.EmptyFileSystem){let n=(0,i.inject)((0,a.createDefaultSharedCoreModule)(e),r.MermaidGeneratedSharedModule),s=(0,i.inject)((0,a.createDefaultCoreModule)({shared:n}),r.ArchitectureGrammarGeneratedModule,u);return n.ServiceRegistry.register(s),{shared:n,Architecture:s}}(0,r.__name)(l,"createArchitectureServices"),e.s(["ArchitectureModule",()=>u,"createArchitectureServices",()=>l])},71677,e=>{"use strict";var r=e.i(99950),t=e.i(25876),a=e.i(55794),i=e.i(89489),n=class extends r.AbstractMermaidTokenBuilder{static{(0,r.__name)(this,"TreemapTokenBuilder")}constructor(){super(["treemap"])}},s=/classDef\s+([A-Z_a-z]\w+)(?:\s+([^\n\r;]*))?;?/,u=class extends r.AbstractMermaidValueConverter{static{(0,r.__name)(this,"TreemapValueConverter")}runCustomConverter(e,r,t){if("NUMBER2"===e.name)return parseFloat(r.replace(/,/g,""));if("SEPARATOR"===e.name)return r.substring(1,r.length-1);if("STRING2"===e.name)return r.substring(1,r.length-1);if("INDENTATION"===e.name)return r.length;if("ClassDef"===e.name){if("string"!=typeof r)return r;let e=s.exec(r);if(e)return{$type:"ClassDefStatement",className:e[1],styleText:e[2]||void 0}}}};function l(e){let r=e.validation.TreemapValidator,t=e.validation.ValidationRegistry;if(t){let e={Treemap:r.checkSingleRoot.bind(r)};t.register(e,r)}}(0,r.__name)(l,"registerValidationChecks");var o=class{static{(0,r.__name)(this,"TreemapValidator")}checkSingleRoot(e,r){let t;for(let a of e.TreemapRows)a.item&&(void 0===t&&void 0===a.indent?t=0:void 0===a.indent?r("error","Multiple root nodes are not allowed in a treemap.",{node:a,property:"item"}):void 0!==t&&t>=parseInt(a.indent,10)&&r("error","Multiple root nodes are not allowed in a treemap.",{node:a,property:"item"}))}},c={parser:{TokenBuilder:(0,r.__name)(()=>new n,"TokenBuilder"),ValueConverter:(0,r.__name)(()=>new u,"ValueConverter")},validation:{TreemapValidator:(0,r.__name)(()=>new o,"TreemapValidator")}};function d(e=t.EmptyFileSystem){let n=(0,i.inject)((0,a.createDefaultSharedCoreModule)(e),r.MermaidGeneratedSharedModule),s=(0,i.inject)((0,a.createDefaultCoreModule)({shared:n}),r.TreemapGrammarGeneratedModule,c);return n.ServiceRegistry.register(s),l(s),{shared:n,Treemap:s}}(0,r.__name)(d,"createTreemapServices"),e.s(["TreemapModule",()=>c,"createTreemapServices",()=>d])},86755,e=>{"use strict";e.i(30447),e.i(68282),e.i(67095),e.i(39828),e.i(50654),e.i(66195),e.i(71677);var r=e.i(99950),t={},a={info:(0,r.__name)(async()=>{let{createInfoServices:r}=await e.A(6357);t.info=r().Info.parser.LangiumParser},"info"),packet:(0,r.__name)(async()=>{let{createPacketServices:r}=await e.A(61041);t.packet=r().Packet.parser.LangiumParser},"packet"),pie:(0,r.__name)(async()=>{let{createPieServices:r}=await e.A(79294);t.pie=r().Pie.parser.LangiumParser},"pie"),architecture:(0,r.__name)(async()=>{let{createArchitectureServices:r}=await e.A(21131);t.architecture=r().Architecture.parser.LangiumParser},"architecture"),gitGraph:(0,r.__name)(async()=>{let{createGitGraphServices:r}=await e.A(37762);t.gitGraph=r().GitGraph.parser.LangiumParser},"gitGraph"),radar:(0,r.__name)(async()=>{let{createRadarServices:r}=await e.A(34567);t.radar=r().Radar.parser.LangiumParser},"radar"),treemap:(0,r.__name)(async()=>{let{createTreemapServices:r}=await e.A(6411);t.treemap=r().Treemap.parser.LangiumParser},"treemap")};async function i(e,r){let i=a[e];if(!i)throw Error(`Unknown diagram type: ${e}`);t[e]||await i();let s=t[e].parse(r);if(s.lexerErrors.length>0||s.parserErrors.length>0)throw new n(s);return s.value}(0,r.__name)(i,"parse");var n=class extends Error{constructor(e){const r=e.lexerErrors.map(e=>e.message).join("\n"),t=e.parserErrors.map(e=>e.message).join("\n");super(`Parsing failed: ${r} ${t}`),this.result=e}static{(0,r.__name)(this,"MermaidParseError")}};e.s(["parse",()=>i])},68282,e=>{"use strict";var r=e.i(99950),t=e.i(25876),a=e.i(55794),i=e.i(89489),n=class extends r.AbstractMermaidTokenBuilder{static{(0,r.__name)(this,"InfoTokenBuilder")}constructor(){super(["info","showInfo"])}},s={parser:{TokenBuilder:(0,r.__name)(()=>new n,"TokenBuilder"),ValueConverter:(0,r.__name)(()=>new r.CommonValueConverter,"ValueConverter")}};function u(e=t.EmptyFileSystem){let n=(0,i.inject)((0,a.createDefaultSharedCoreModule)(e),r.MermaidGeneratedSharedModule),l=(0,i.inject)((0,a.createDefaultCoreModule)({shared:n}),r.InfoGrammarGeneratedModule,s);return n.ServiceRegistry.register(l),{shared:n,Info:l}}(0,r.__name)(u,"createInfoServices"),e.s(["InfoModule",()=>s,"createInfoServices",()=>u])},39828,e=>{"use strict";var r=e.i(99950),t=e.i(25876),a=e.i(55794),i=e.i(89489),n=class extends r.AbstractMermaidTokenBuilder{static{(0,r.__name)(this,"PieTokenBuilder")}constructor(){super(["pie","showData"])}},s=class extends r.AbstractMermaidValueConverter{static{(0,r.__name)(this,"PieValueConverter")}runCustomConverter(e,r,t){if("PIE_SECTION_LABEL"===e.name)return r.replace(/"/g,"").trim()}},u={parser:{TokenBuilder:(0,r.__name)(()=>new n,"TokenBuilder"),ValueConverter:(0,r.__name)(()=>new s,"ValueConverter")}};function l(e=t.EmptyFileSystem){let n=(0,i.inject)((0,a.createDefaultSharedCoreModule)(e),r.MermaidGeneratedSharedModule),s=(0,i.inject)((0,a.createDefaultCoreModule)({shared:n}),r.PieGrammarGeneratedModule,u);return n.ServiceRegistry.register(s),{shared:n,Pie:s}}(0,r.__name)(l,"createPieServices"),e.s(["PieModule",()=>u,"createPieServices",()=>l])},94261,e=>{"use strict";var r=e.i(8977);e.s(["clone",()=>r.default])},8977,e=>{"use strict";var r=e.i(49218);e.s(["default",0,function(e){return(0,r.default)(e,4)}])},77123,e=>{"use strict";var r=e.i(13759);e.s(["forEach",()=>r.default])},15987,e=>{"use strict";var r=Object.prototype.hasOwnProperty;let t=function(e,t){return null!=e&&r.call(e,t)};var a=e.i(40160);e.s(["has",0,function(e,r){return null!=e&&(0,a.default)(e,r,t)}],15987)},80792,86587,34197,93776,e=>{"use strict";var r=e.i(1912),t=e.i(75811),a=e.i(32505),i=e.i(42125);let n=function(e,r){var t=-1,n=(0,i.default)(e)?Array(e.length):[];return(0,a.default)(e,function(e,a,i){n[++t]=r(e,a,i)}),n};e.s(["default",0,n],86587);var s=e.i(94878);let u=function(e,a){return((0,s.default)(e)?r.default:n)(e,(0,t.default)(a,3))};e.s(["default",0,u],34197),e.s(["map",0,u],80792);var l=/\s/;let o=function(e){for(var r=e.length;r--&&l.test(e.charAt(r)););return r};var c=/^\s+/,d=e.i(91947),m=e.i(85647),f=0/0,v=/^[-+]0x[0-9a-f]+$/i,p=/^0b[01]+$/i,_=/^0o[0-7]+$/i,h=parseInt;let g=function(e){if("number"==typeof e)return e;if((0,m.default)(e))return f;if((0,d.default)(e)){var r,t="function"==typeof e.valueOf?e.valueOf():e;e=(0,d.default)(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=(r=e)?r.slice(0,o(r)+1).replace(c,""):r;var a=p.test(e);return a||_.test(e)?h(e.slice(2),a?2:8):v.test(e)?f:+e};var S=1/0;e.s(["default",0,function(e){return e?(e=g(e))===S||e===-S?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}],93776)},40439,e=>{"use strict";var r=e.i(93776);e.s(["default",0,function(e){var t=(0,r.default)(e),a=t%1;return t==t?a?t-a:t:0}])},28709,e=>{"use strict";var r=e.i(24277),t=e.i(94878),a=e.i(24904);e.s(["default",0,function(e){return"string"==typeof e||!(0,t.default)(e)&&(0,a.default)(e)&&"[object String]"==(0,r.default)(e)}])},95790,e=>{"use strict";var r=e.i(88098),t=e.i(22523),a=e.i(43768),i=e.i(98546),n=e.i(91947),s=e.i(23925);let u=function(e,r,u,l){if(!(0,n.default)(e))return e;r=(0,a.default)(r,e);for(var o=-1,c=r.length,d=c-1,m=e;null!=m&&++o<c;){var f=(0,s.default)(r[o]),v=u;if("__proto__"===f||"constructor"===f||"prototype"===f)break;if(o!=d){var p=m[f];void 0===(v=l?l(p,f,m):void 0)&&(v=(0,n.default)(p)?p:(0,i.default)(r[o+1])?[]:{})}(0,t.default)(m,f,v),m=m[f]}return e};e.s(["default",0,function(e,t,i){for(var n=-1,s=t.length,l={};++n<s;){var o=t[n],c=(0,r.default)(e,o);i(c,o)&&u(l,(0,a.default)(o,e),c)}return l}],95790)},85898,9235,e=>{"use strict";var r=e.i(17242);let t=function(e){return(null==e?0:e.length)?(0,r.default)(e,1):[]};e.s(["default",0,t],9235),e.s(["flatten",0,t],85898)},83511,e=>{"use strict";var r=e.i(68464),t=e.i(7693),a=e.i(52056),i=e.i(65218),n=Object.prototype,s=n.hasOwnProperty,u=(0,r.default)(function(e,r){e=Object(e);var u=-1,l=r.length,o=l>2?r[2]:void 0;for(o&&(0,a.default)(r[0],r[1],o)&&(l=1);++u<l;)for(var c=r[u],d=(0,i.default)(c),m=-1,f=d.length;++m<f;){var v=d[m],p=e[v];(void 0===p||(0,t.default)(p,n[v])&&!s.call(e,v))&&(e[v]=c[v])}return e});e.s(["defaults",0,u],83511)},83375,e=>{"use strict";var r=e.i(75811),t=e.i(42125),a=e.i(26054);e.s(["default",0,function(e){return function(i,n,s){var u=Object(i);if(!(0,t.default)(i)){var l=(0,r.default)(n,3);i=(0,a.default)(i),n=function(e){return l(u[e],e,u)}}var o=e(i,n,s);return o>-1?u[l?i[o]:o]:void 0}}])},18573,e=>{"use strict";var r=e.i(83375),t=e.i(78562),a=e.i(75811),i=e.i(40439),n=Math.max,s=(0,r.default)(function(e,r,s){var u=null==e?0:e.length;if(!u)return -1;var l=null==s?0:(0,i.default)(s);return l<0&&(l=n(u+l,0)),(0,t.default)(e,(0,a.default)(r,3),l)});e.s(["find",0,s],18573)},41929,e=>{"use strict";var r=e.i(94878);e.s(["isArray",()=>r.default])},31490,e=>{"use strict";e.s(["last",0,function(e){var r=null==e?0:e.length;return r?e[r-1]:void 0}],31490)},22279,e=>{"use strict";var r=e.i(85647);e.s(["default",0,function(e,t,a){for(var i=-1,n=e.length;++i<n;){var s=e[i],u=t(s);if(null!=u&&(void 0===l?u==u&&!(0,r.default)(u):a(u,l)))var l=u,o=s}return o}])},99517,85639,e=>{"use strict";var r=e.i(22279);let t=function(e,r){return e<r};e.s(["default",0,t],85639);var a=e.i(16481);e.s(["default",0,function(e){return e&&e.length?(0,r.default)(e,a.default,t):void 0}],99517)},66195,e=>{"use strict";var r=e.i(99950),t=e.i(25876),a=e.i(55794),i=e.i(89489),n=class extends r.AbstractMermaidTokenBuilder{static{(0,r.__name)(this,"RadarTokenBuilder")}constructor(){super(["radar-beta"])}},s={parser:{TokenBuilder:(0,r.__name)(()=>new n,"TokenBuilder"),ValueConverter:(0,r.__name)(()=>new r.CommonValueConverter,"ValueConverter")}};function u(e=t.EmptyFileSystem){let n=(0,i.inject)((0,a.createDefaultSharedCoreModule)(e),r.MermaidGeneratedSharedModule),l=(0,i.inject)((0,a.createDefaultCoreModule)({shared:n}),r.RadarGrammarGeneratedModule,s);return n.ServiceRegistry.register(l),{shared:n,Radar:l}}(0,r.__name)(u,"createRadarServices"),e.s(["RadarModule",()=>s,"createRadarServices",()=>u])},30447,e=>{"use strict";var r=e.i(99950),t=e.i(89489),a=e.i(55794),i=e.i(25876),n=class extends r.AbstractMermaidTokenBuilder{static{(0,r.__name)(this,"GitGraphTokenBuilder")}constructor(){super(["gitGraph"])}},s={parser:{TokenBuilder:(0,r.__name)(()=>new n,"TokenBuilder"),ValueConverter:(0,r.__name)(()=>new r.CommonValueConverter,"ValueConverter")}};function u(e=i.EmptyFileSystem){let n=(0,t.inject)((0,a.createDefaultSharedCoreModule)(e),r.MermaidGeneratedSharedModule),l=(0,t.inject)((0,a.createDefaultCoreModule)({shared:n}),r.GitGraphGrammarGeneratedModule,s);return n.ServiceRegistry.register(l),{shared:n,GitGraph:l}}(0,r.__name)(u,"createGitGraphServices"),e.s(["GitGraphModule",()=>s,"createGitGraphServices",()=>u])},67095,e=>{"use strict";var r=e.i(99950),t=e.i(25876),a=e.i(55794),i=e.i(89489),n=class extends r.AbstractMermaidTokenBuilder{static{(0,r.__name)(this,"PacketTokenBuilder")}constructor(){super(["packet"])}},s={parser:{TokenBuilder:(0,r.__name)(()=>new n,"TokenBuilder"),ValueConverter:(0,r.__name)(()=>new r.CommonValueConverter,"ValueConverter")}};function u(e=t.EmptyFileSystem){let n=(0,i.inject)((0,a.createDefaultSharedCoreModule)(e),r.MermaidGeneratedSharedModule),l=(0,i.inject)((0,a.createDefaultCoreModule)({shared:n}),r.PacketGrammarGeneratedModule,s);return n.ServiceRegistry.register(l),{shared:n,Packet:l}}(0,r.__name)(u,"createPacketServices"),e.s(["PacketModule",()=>s,"createPacketServices",()=>u])},61178,e=>{"use strict";var r=e.i(93377),t=e.i(57518),a=e.i(39467),i=e.i(31195),n=e.i(86755),s={parse:(0,i.__name)(async e=>{let r=await (0,n.parse)("info",e);i.log.debug(r)},"parse")},u={version:r.package_default.version+""},l=(0,i.__name)(()=>u.version,"getVersion"),o={parser:s,db:{getVersion:l},renderer:{draw:(0,i.__name)((e,r,n)=>{i.log.debug("rendering info diagram\n"+e);let s=(0,t.selectSvgElement)(r);(0,a.configureSvgSize)(s,100,400,!0),s.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${n}`)},"draw")}};e.s(["diagram",()=>o])},6357,e=>{e.v(r=>Promise.all(["static/chunks/bf43d5271822fbab.js"].map(r=>e.l(r))).then(()=>r(92816)))},61041,e=>{e.v(r=>Promise.all(["static/chunks/0f285960aa7beb63.js"].map(r=>e.l(r))).then(()=>r(33064)))},79294,e=>{e.v(r=>Promise.all(["static/chunks/65ebd3fb41a7a637.js"].map(r=>e.l(r))).then(()=>r(84968)))},21131,e=>{e.v(r=>Promise.all(["static/chunks/b4d473f020b3c5ee.js"].map(r=>e.l(r))).then(()=>r(18940)))},37762,e=>{e.v(r=>Promise.all(["static/chunks/7f2fa1dfedcfdd93.js"].map(r=>e.l(r))).then(()=>r(89189)))},34567,e=>{e.v(r=>Promise.all(["static/chunks/87e909206a468fdb.js"].map(r=>e.l(r))).then(()=>r(31297)))},6411,e=>{e.v(r=>Promise.all(["static/chunks/ca5aff308348ecd2.js"].map(r=>e.l(r))).then(()=>r(22976)))}]);