unspaghettit 0.16.0 → 0.17.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 (516) hide show
  1. package/build/client/_app/immutable/chunks/7vru07lQ.js +1 -0
  2. package/build/client/_app/immutable/chunks/7vru07lQ.js.br +2 -0
  3. package/build/client/_app/immutable/chunks/7vru07lQ.js.gz +0 -0
  4. package/build/client/_app/immutable/chunks/9mhsWAaw.js +33 -0
  5. package/build/client/_app/immutable/chunks/9mhsWAaw.js.br +0 -0
  6. package/build/client/_app/immutable/chunks/9mhsWAaw.js.gz +0 -0
  7. package/build/client/_app/immutable/chunks/{HvvVs8hk.js → B0XAYwT1.js} +1 -1
  8. package/build/client/_app/immutable/chunks/{HvvVs8hk.js.br → B0XAYwT1.js.br} +0 -0
  9. package/build/client/_app/immutable/chunks/B0XAYwT1.js.gz +0 -0
  10. package/build/client/_app/immutable/chunks/{JlFvxdUg.js → B4eIrwsk.js} +1 -1
  11. package/build/client/_app/immutable/chunks/B4eIrwsk.js.br +0 -0
  12. package/build/client/_app/immutable/chunks/B4eIrwsk.js.gz +0 -0
  13. package/build/client/_app/immutable/chunks/{1qwcT7H12.js → B7wls9mO2.js} +1 -1
  14. package/build/client/_app/immutable/chunks/B7wls9mO2.js.br +0 -0
  15. package/build/client/_app/immutable/chunks/B7wls9mO2.js.gz +0 -0
  16. package/build/client/_app/immutable/chunks/{AIVrTpgC.js → BFf3ohOx.js} +1 -1
  17. package/build/client/_app/immutable/chunks/BFf3ohOx.js.br +0 -0
  18. package/build/client/_app/immutable/chunks/BFf3ohOx.js.gz +0 -0
  19. package/build/client/_app/immutable/chunks/{DFmNW1Fq2.js → BGTMFQ5B2.js} +1 -1
  20. package/build/client/_app/immutable/chunks/BGTMFQ5B2.js.br +0 -0
  21. package/build/client/_app/immutable/chunks/BGTMFQ5B2.js.gz +0 -0
  22. package/build/client/_app/immutable/chunks/{ClSw9AyG.js → BKh-eWBk.js} +1 -1
  23. package/build/client/_app/immutable/chunks/BKh-eWBk.js.br +1 -0
  24. package/build/client/_app/immutable/chunks/BKh-eWBk.js.gz +0 -0
  25. package/build/client/_app/immutable/chunks/{EZgceN_E.js → BOTUsQ41.js} +1 -1
  26. package/build/client/_app/immutable/chunks/BOTUsQ41.js.br +0 -0
  27. package/build/client/_app/immutable/chunks/BOTUsQ41.js.gz +0 -0
  28. package/build/client/_app/immutable/chunks/{Txy2b5lN2.js → BchXXsWh2.js} +1 -1
  29. package/build/client/_app/immutable/chunks/BchXXsWh2.js.br +0 -0
  30. package/build/client/_app/immutable/chunks/BchXXsWh2.js.gz +0 -0
  31. package/build/client/_app/immutable/chunks/{Dp-pCjOt.js → BeaZAz8Q.js} +1 -1
  32. package/build/client/_app/immutable/chunks/BeaZAz8Q.js.br +0 -0
  33. package/build/client/_app/immutable/chunks/BeaZAz8Q.js.gz +0 -0
  34. package/build/client/_app/immutable/chunks/BhIkY8P6.js +24 -0
  35. package/build/client/_app/immutable/chunks/BhIkY8P6.js.br +0 -0
  36. package/build/client/_app/immutable/chunks/{D5ZRH7ga.js.gz → BhIkY8P6.js.gz} +0 -0
  37. package/build/client/_app/immutable/chunks/{4lA7HVVf.js → Bn-kbHu7.js} +1 -1
  38. package/build/client/_app/immutable/chunks/Bn-kbHu7.js.br +0 -0
  39. package/build/client/_app/immutable/chunks/Bn-kbHu7.js.gz +0 -0
  40. package/build/client/_app/immutable/chunks/{Dq-VwV1Z.js → Byqao8Gq.js} +1 -1
  41. package/build/client/_app/immutable/chunks/Byqao8Gq.js.br +0 -0
  42. package/build/client/_app/immutable/chunks/Byqao8Gq.js.gz +0 -0
  43. package/build/client/_app/immutable/chunks/{CNJFf1c0.js → C-ZizxdZ2.js} +3 -3
  44. package/build/client/_app/immutable/chunks/C-ZizxdZ2.js.br +0 -0
  45. package/build/client/_app/immutable/chunks/C-ZizxdZ2.js.gz +0 -0
  46. package/build/client/_app/immutable/chunks/{DcNjxu7W.js → C34XQjB7.js} +1 -1
  47. package/build/client/_app/immutable/chunks/C34XQjB7.js.br +0 -0
  48. package/build/client/_app/immutable/chunks/C34XQjB7.js.gz +0 -0
  49. package/build/client/_app/immutable/chunks/C3k9a6sk.js +41 -0
  50. package/build/client/_app/immutable/chunks/C3k9a6sk.js.br +0 -0
  51. package/build/client/_app/immutable/chunks/{BL7k2cWP.js.gz → C3k9a6sk.js.gz} +0 -0
  52. package/build/client/_app/immutable/chunks/{DxATgtBc.js → C6KPTg9W.js} +1 -1
  53. package/build/client/_app/immutable/chunks/C6KPTg9W.js.br +0 -0
  54. package/build/client/_app/immutable/chunks/C6KPTg9W.js.gz +0 -0
  55. package/build/client/_app/immutable/chunks/{CT4vNU442.js → CKDf7Bk32.js} +1 -1
  56. package/build/client/_app/immutable/chunks/CKDf7Bk32.js.br +0 -0
  57. package/build/client/_app/immutable/chunks/CKDf7Bk32.js.gz +0 -0
  58. package/build/client/_app/immutable/chunks/{0JL6Z9St.js → CRIAh1MM.js} +1 -1
  59. package/build/client/_app/immutable/chunks/CRIAh1MM.js.br +0 -0
  60. package/build/client/_app/immutable/chunks/{0JL6Z9St.js.gz → CRIAh1MM.js.gz} +0 -0
  61. package/build/client/_app/immutable/chunks/{D9sGVI572.js → CRi1_Hin2.js} +1 -1
  62. package/build/client/_app/immutable/chunks/CRi1_Hin2.js.br +0 -0
  63. package/build/client/_app/immutable/chunks/CRi1_Hin2.js.gz +0 -0
  64. package/build/client/_app/immutable/chunks/C_CYyuHd.js +1 -0
  65. package/build/client/_app/immutable/chunks/C_CYyuHd.js.br +0 -0
  66. package/build/client/_app/immutable/chunks/C_CYyuHd.js.gz +0 -0
  67. package/build/client/_app/immutable/chunks/{3_GXBVV42.js → C_qZ0hwI2.js} +1 -1
  68. package/build/client/_app/immutable/chunks/C_qZ0hwI2.js.br +0 -0
  69. package/build/client/_app/immutable/chunks/C_qZ0hwI2.js.gz +0 -0
  70. package/build/client/_app/immutable/chunks/{BPm18m-Y.js → Cb5x-T-X.js} +1 -1
  71. package/build/client/_app/immutable/chunks/Cb5x-T-X.js.br +0 -0
  72. package/build/client/_app/immutable/chunks/Cb5x-T-X.js.gz +0 -0
  73. package/build/client/_app/immutable/chunks/Cex4rVPS.js +24 -0
  74. package/build/client/_app/immutable/chunks/Cex4rVPS.js.br +0 -0
  75. package/build/client/_app/immutable/chunks/{CNcLON_d.js.gz → Cex4rVPS.js.gz} +0 -0
  76. package/build/client/_app/immutable/chunks/{CZmXGMyB2.js → CitFzmH62.js} +1 -1
  77. package/build/client/_app/immutable/chunks/CitFzmH62.js.br +2 -0
  78. package/build/client/_app/immutable/chunks/CitFzmH62.js.gz +0 -0
  79. package/build/client/_app/immutable/chunks/{CGWhvtMz.js → CjKbBfx-.js} +1 -1
  80. package/build/client/_app/immutable/chunks/CjKbBfx-.js.br +0 -0
  81. package/build/client/_app/immutable/chunks/CjKbBfx-.js.gz +0 -0
  82. package/build/client/_app/immutable/chunks/Cpd_Tz0E.js +62 -0
  83. package/build/client/_app/immutable/chunks/Cpd_Tz0E.js.br +0 -0
  84. package/build/client/_app/immutable/chunks/Cpd_Tz0E.js.gz +0 -0
  85. package/build/client/_app/immutable/chunks/{DByLifec.js → CrOCLWIn.js} +1 -1
  86. package/build/client/_app/immutable/chunks/CrOCLWIn.js.br +0 -0
  87. package/build/client/_app/immutable/chunks/CrOCLWIn.js.gz +0 -0
  88. package/build/client/_app/immutable/chunks/D2WCXCGb.js +1 -0
  89. package/build/client/_app/immutable/chunks/D2WCXCGb.js.br +0 -0
  90. package/build/client/_app/immutable/chunks/D2WCXCGb.js.gz +0 -0
  91. package/build/client/_app/immutable/chunks/D4hSsMPw.js +1 -0
  92. package/build/client/_app/immutable/chunks/D4hSsMPw.js.br +0 -0
  93. package/build/client/_app/immutable/chunks/D4hSsMPw.js.gz +0 -0
  94. package/build/client/_app/immutable/chunks/{zN8Uu1W22.js → DBzMWWpW2.js} +1 -1
  95. package/build/client/_app/immutable/chunks/DBzMWWpW2.js.br +0 -0
  96. package/build/client/_app/immutable/chunks/DBzMWWpW2.js.gz +0 -0
  97. package/build/client/_app/immutable/chunks/{BVZc8LN_.js → DC0K_80h.js} +1 -1
  98. package/build/client/_app/immutable/chunks/DC0K_80h.js.br +0 -0
  99. package/build/client/_app/immutable/chunks/DC0K_80h.js.gz +0 -0
  100. package/build/client/_app/immutable/chunks/{CbMDUSLp.js → DJkg1bQV.js} +1 -1
  101. package/build/client/_app/immutable/chunks/DJkg1bQV.js.br +0 -0
  102. package/build/client/_app/immutable/chunks/DJkg1bQV.js.gz +0 -0
  103. package/build/client/_app/immutable/chunks/{D7vA3BNE.js → DV5mh8_L.js} +1 -1
  104. package/build/client/_app/immutable/chunks/DV5mh8_L.js.br +0 -0
  105. package/build/client/_app/immutable/chunks/DV5mh8_L.js.gz +0 -0
  106. package/build/client/_app/immutable/chunks/DYGKIbMw.js +1 -0
  107. package/build/client/_app/immutable/chunks/DYGKIbMw.js.br +0 -0
  108. package/build/client/_app/immutable/chunks/DYGKIbMw.js.gz +0 -0
  109. package/build/client/_app/immutable/chunks/DZg9sIQE2.js +3 -0
  110. package/build/client/_app/immutable/chunks/DZg9sIQE2.js.br +0 -0
  111. package/build/client/_app/immutable/chunks/DZg9sIQE2.js.gz +0 -0
  112. package/build/client/_app/immutable/chunks/DawxgtoC2.js +36 -0
  113. package/build/client/_app/immutable/chunks/DawxgtoC2.js.br +0 -0
  114. package/build/client/_app/immutable/chunks/{BFiEvbNV2.js.gz → DawxgtoC2.js.gz} +0 -0
  115. package/build/client/_app/immutable/chunks/Dax-dZn3.js +1 -0
  116. package/build/client/_app/immutable/chunks/Dax-dZn3.js.br +0 -0
  117. package/build/client/_app/immutable/chunks/Dax-dZn3.js.gz +0 -0
  118. package/build/client/_app/immutable/chunks/{BnqPzDNe2.js → DcXdIUlx2.js} +1 -1
  119. package/build/client/_app/immutable/chunks/DcXdIUlx2.js.br +0 -0
  120. package/build/client/_app/immutable/chunks/DcXdIUlx2.js.gz +0 -0
  121. package/build/client/_app/immutable/chunks/{BnhnQqp1.js → Dh94_9eE.js} +1 -1
  122. package/build/client/_app/immutable/chunks/Dh94_9eE.js.br +0 -0
  123. package/build/client/_app/immutable/chunks/{BnhnQqp1.js.gz → Dh94_9eE.js.gz} +0 -0
  124. package/build/client/_app/immutable/chunks/DigGZflF2.js +2 -0
  125. package/build/client/_app/immutable/chunks/DigGZflF2.js.br +0 -0
  126. package/build/client/_app/immutable/chunks/DigGZflF2.js.gz +0 -0
  127. package/build/client/_app/immutable/chunks/{_HmeKOII.js → DnE7Czf5.js} +1 -1
  128. package/build/client/_app/immutable/chunks/DnE7Czf5.js.br +0 -0
  129. package/build/client/_app/immutable/chunks/DnE7Czf5.js.gz +0 -0
  130. package/build/client/_app/immutable/chunks/Dv22dLr1.js +11 -0
  131. package/build/client/_app/immutable/chunks/Dv22dLr1.js.br +0 -0
  132. package/build/client/_app/immutable/chunks/Dv22dLr1.js.gz +0 -0
  133. package/build/client/_app/immutable/chunks/Dvmt5dRm.js +1 -0
  134. package/build/client/_app/immutable/chunks/Dvmt5dRm.js.br +0 -0
  135. package/build/client/_app/immutable/chunks/Dvmt5dRm.js.gz +0 -0
  136. package/build/client/_app/immutable/chunks/Msgfkikm.js +4 -0
  137. package/build/client/_app/immutable/chunks/Msgfkikm.js.br +0 -0
  138. package/build/client/_app/immutable/chunks/Msgfkikm.js.gz +0 -0
  139. package/build/client/_app/immutable/chunks/Pkakgw_a2.js +1 -0
  140. package/build/client/_app/immutable/chunks/Pkakgw_a2.js.br +0 -0
  141. package/build/client/_app/immutable/chunks/Pkakgw_a2.js.gz +0 -0
  142. package/build/client/_app/immutable/chunks/{e272qEPH2.js → Q5k36Cde2.js} +1 -1
  143. package/build/client/_app/immutable/chunks/Q5k36Cde2.js.br +2 -0
  144. package/build/client/_app/immutable/chunks/Q5k36Cde2.js.gz +0 -0
  145. package/build/client/_app/immutable/chunks/U0yH7xPa.js +1 -0
  146. package/build/client/_app/immutable/chunks/U0yH7xPa.js.br +0 -0
  147. package/build/client/_app/immutable/chunks/U0yH7xPa.js.gz +0 -0
  148. package/build/client/_app/immutable/chunks/{sl-vu-JF2.js → aFv9pzVk2.js} +1 -1
  149. package/build/client/_app/immutable/chunks/aFv9pzVk2.js.br +0 -0
  150. package/build/client/_app/immutable/chunks/aFv9pzVk2.js.gz +0 -0
  151. package/build/client/_app/immutable/chunks/{DsJUUSRq.js → cORgPzTq.js} +1 -1
  152. package/build/client/_app/immutable/chunks/cORgPzTq.js.br +0 -0
  153. package/build/client/_app/immutable/chunks/cORgPzTq.js.gz +0 -0
  154. package/build/client/_app/immutable/chunks/hm3PnUVx.js +2 -0
  155. package/build/client/_app/immutable/chunks/hm3PnUVx.js.br +0 -0
  156. package/build/client/_app/immutable/chunks/hm3PnUVx.js.gz +0 -0
  157. package/build/client/_app/immutable/chunks/{Byog_Hkx2.js → jaZrJBxi2.js} +1 -1
  158. package/build/client/_app/immutable/chunks/jaZrJBxi2.js.br +0 -0
  159. package/build/client/_app/immutable/chunks/jaZrJBxi2.js.gz +0 -0
  160. package/build/client/_app/immutable/chunks/{BLqvzp0B.js → rSJZ_0QK.js} +1 -1
  161. package/build/client/_app/immutable/chunks/rSJZ_0QK.js.br +0 -0
  162. package/build/client/_app/immutable/chunks/rSJZ_0QK.js.gz +0 -0
  163. package/build/client/_app/immutable/chunks/thKX1sNh2.js +2 -0
  164. package/build/client/_app/immutable/chunks/thKX1sNh2.js.br +0 -0
  165. package/build/client/_app/immutable/chunks/thKX1sNh2.js.gz +0 -0
  166. package/build/client/_app/immutable/chunks/{Df6G9iyw.js → yh1o1YXc.js} +1 -1
  167. package/build/client/_app/immutable/chunks/yh1o1YXc.js.br +0 -0
  168. package/build/client/_app/immutable/chunks/yh1o1YXc.js.gz +0 -0
  169. package/build/client/_app/immutable/chunks/{BQDLMPJR.js → yxPavcO9.js} +1 -1
  170. package/build/client/_app/immutable/chunks/yxPavcO9.js.br +0 -0
  171. package/build/client/_app/immutable/chunks/yxPavcO9.js.gz +0 -0
  172. package/build/client/_app/immutable/entry/app.DRgxkvp0.js +2 -0
  173. package/build/client/_app/immutable/entry/app.DRgxkvp0.js.br +0 -0
  174. package/build/client/_app/immutable/entry/app.DRgxkvp0.js.gz +0 -0
  175. package/build/client/_app/immutable/entry/start.DqYDR_PR.js +1 -0
  176. package/build/client/_app/immutable/entry/start.DqYDR_PR.js.br +1 -0
  177. package/build/client/_app/immutable/entry/start.DqYDR_PR.js.gz +0 -0
  178. package/build/client/_app/immutable/nodes/0.D7BOnosp.js +8 -0
  179. package/build/client/_app/immutable/nodes/0.D7BOnosp.js.br +0 -0
  180. package/build/client/_app/immutable/nodes/0.D7BOnosp.js.gz +0 -0
  181. package/build/client/_app/immutable/nodes/{1.DhZ7EShx.js → 1.DRSSdFXD.js} +1 -1
  182. package/build/client/_app/immutable/nodes/1.DRSSdFXD.js.br +1 -0
  183. package/build/client/_app/immutable/nodes/1.DRSSdFXD.js.gz +0 -0
  184. package/build/client/_app/immutable/nodes/10.DnhWsuPB.js +1 -0
  185. package/build/client/_app/immutable/nodes/10.DnhWsuPB.js.br +1 -0
  186. package/build/client/_app/immutable/nodes/10.DnhWsuPB.js.gz +0 -0
  187. package/build/client/_app/immutable/nodes/11.DP3tUow-.js +1 -0
  188. package/build/client/_app/immutable/nodes/11.DP3tUow-.js.br +2 -0
  189. package/build/client/_app/immutable/nodes/11.DP3tUow-.js.gz +0 -0
  190. package/build/client/_app/immutable/nodes/12.B5nKYGKO.js +20 -0
  191. package/build/client/_app/immutable/nodes/12.B5nKYGKO.js.br +0 -0
  192. package/build/client/_app/immutable/nodes/12.B5nKYGKO.js.gz +0 -0
  193. package/build/client/_app/immutable/nodes/13.B5bpbnp6.js +1 -0
  194. package/build/client/_app/immutable/nodes/13.B5bpbnp6.js.br +0 -0
  195. package/build/client/_app/immutable/nodes/13.B5bpbnp6.js.gz +0 -0
  196. package/build/client/_app/immutable/nodes/14.DrWvy9PK.js +1 -0
  197. package/build/client/_app/immutable/nodes/14.DrWvy9PK.js.br +0 -0
  198. package/build/client/_app/immutable/nodes/14.DrWvy9PK.js.gz +0 -0
  199. package/build/client/_app/immutable/nodes/15.DOn5TeqA.js +4 -0
  200. package/build/client/_app/immutable/nodes/15.DOn5TeqA.js.br +0 -0
  201. package/build/client/_app/immutable/nodes/15.DOn5TeqA.js.gz +0 -0
  202. package/build/client/_app/immutable/nodes/{16.xbZ24Wub.js → 16.CShKRfNK.js} +37 -37
  203. package/build/client/_app/immutable/nodes/16.CShKRfNK.js.br +0 -0
  204. package/build/client/_app/immutable/nodes/16.CShKRfNK.js.gz +0 -0
  205. package/build/client/_app/immutable/nodes/2.DnHflljB.js +1 -0
  206. package/build/client/_app/immutable/nodes/2.DnHflljB.js.br +2 -0
  207. package/build/client/_app/immutable/nodes/2.DnHflljB.js.gz +0 -0
  208. package/build/client/_app/immutable/nodes/3.BcuAo9Ak.js +1 -0
  209. package/build/client/_app/immutable/nodes/3.BcuAo9Ak.js.br +0 -0
  210. package/build/client/_app/immutable/nodes/3.BcuAo9Ak.js.gz +0 -0
  211. package/build/client/_app/immutable/nodes/4.D4MQL4O1.js +4 -0
  212. package/build/client/_app/immutable/nodes/4.D4MQL4O1.js.br +0 -0
  213. package/build/client/_app/immutable/nodes/4.D4MQL4O1.js.gz +0 -0
  214. package/build/client/_app/immutable/nodes/5.AvivhLYJ.js +57 -0
  215. package/build/client/_app/immutable/nodes/5.AvivhLYJ.js.br +0 -0
  216. package/build/client/_app/immutable/nodes/5.AvivhLYJ.js.gz +0 -0
  217. package/build/client/_app/immutable/nodes/6.BzDUJfG8.js +1 -0
  218. package/build/client/_app/immutable/nodes/6.BzDUJfG8.js.br +0 -0
  219. package/build/client/_app/immutable/nodes/6.BzDUJfG8.js.gz +0 -0
  220. package/build/client/_app/immutable/nodes/7.BqMRbzeR.js +1 -0
  221. package/build/client/_app/immutable/nodes/7.BqMRbzeR.js.br +0 -0
  222. package/build/client/_app/immutable/nodes/7.BqMRbzeR.js.gz +0 -0
  223. package/build/client/_app/immutable/nodes/8.ClTb7hMc.js +6 -0
  224. package/build/client/_app/immutable/nodes/8.ClTb7hMc.js.br +0 -0
  225. package/build/client/_app/immutable/nodes/8.ClTb7hMc.js.gz +0 -0
  226. package/build/client/_app/immutable/nodes/9.CeWeVclQ.js +3 -0
  227. package/build/client/_app/immutable/nodes/9.CeWeVclQ.js.br +0 -0
  228. package/build/client/_app/immutable/nodes/9.CeWeVclQ.js.gz +0 -0
  229. package/build/client/_app/version.json +1 -1
  230. package/build/client/_app/version.json.br +0 -0
  231. package/build/client/_app/version.json.gz +0 -0
  232. package/build/handler.js +4 -4
  233. package/build/index.js +4 -4
  234. package/build/server/chunks/chunks/appBase.js-DXXKOj5R.js +17 -0
  235. package/build/server/chunks/chunks/basePath.js-D1Y9kVjl.js +38 -0
  236. package/build/server/chunks/chunks/{internal.js-GvCPm1x0.js → internal.js-DuHonTim.js} +3 -3
  237. package/build/server/chunks/entries/endpoints/api/update-status/{_server.ts.js-VHpVsH7e.js → _server.ts.js-C7QdMGue.js} +2 -2
  238. package/build/server/chunks/entries/{hooks.server.js-D63Gxnvb.js → hooks.server.js-BrhLZrXk.js} +4 -2
  239. package/build/server/chunks/{handler-sLR6EIdK.js → handler-Gbr8sNam.js} +3 -3
  240. package/build/server/chunks/{index.js-B-nFhSuu.js → index.js-B95IPGKQ.js} +2 -2
  241. package/build/server/chunks/{manifest.js-CnuEqnnO.js → manifest.js-BxvaUPgU.js} +20 -20
  242. package/build/server/chunks/nodes/0.js-D8ID8tAo.js +13 -0
  243. package/build/server/chunks/nodes/1.js-Dp33c2eR.js +7 -0
  244. package/build/server/chunks/nodes/10.js-CqpvZ46I.js +14 -0
  245. package/build/server/chunks/nodes/11.js-DlyZ082J.js +7 -0
  246. package/build/server/chunks/nodes/12.js-DDVwSaxY.js +7 -0
  247. package/build/server/chunks/nodes/13.js-C2ysap_N.js +7 -0
  248. package/build/server/chunks/nodes/14.js-CWvlOOY5.js +7 -0
  249. package/build/server/chunks/nodes/15.js-Bkk7A6FV.js +7 -0
  250. package/build/server/chunks/nodes/16.js-BwkvayAY.js +7 -0
  251. package/build/server/chunks/nodes/2.js-CEMsAbkS.js +7 -0
  252. package/build/server/chunks/nodes/3.js-DxEDJkpq.js +14 -0
  253. package/build/server/chunks/nodes/4.js-CnH0tgpw.js +14 -0
  254. package/build/server/chunks/nodes/5.js-Cip-Pl8g.js +7 -0
  255. package/build/server/chunks/nodes/6.js-CGFHpkpi.js +7 -0
  256. package/build/server/chunks/nodes/7.js-DZTUGEab.js +7 -0
  257. package/build/server/chunks/nodes/8.js-CtqICKmO.js +7 -0
  258. package/build/server/chunks/nodes/9.js-BFkB8mmX.js +7 -0
  259. package/cli/README.md +1 -0
  260. package/cli/commands/dashboard.ts +4 -0
  261. package/cli/dashboard-server.ts +32 -0
  262. package/cli/unspa.ts +2 -1
  263. package/package.json +1 -1
  264. package/src/features/app-shell/presentation/components/HeaderBrand.svelte +5 -4
  265. package/src/features/app-shell/presentation/components/HelpLink.svelte +3 -1
  266. package/src/features/app-shell/presentation/components/PrimaryNav.svelte +3 -2
  267. package/src/features/app-shell/presentation/components/ViewSwitcher.svelte +3 -2
  268. package/src/features/app-shell/presentation/routeContext.ts +3 -2
  269. package/src/features/behavior-digest/presentation/components/DigestView.svelte +2 -1
  270. package/src/features/behavior-model/presentation/components/BehaviorGraph.svelte +4 -3
  271. package/src/features/behavior-model/presentation/components/FeatureCard.svelte +2 -1
  272. package/src/features/behavior-model/presentation/components/FeatureEditor.svelte +2 -1
  273. package/src/features/behavior-model/presentation/components/FeatureHeader.svelte +5 -4
  274. package/src/features/behavior-model/presentation/loadSamplesFlow.ts +2 -1
  275. package/src/features/global-search/presentation/components/GlobalSearch.svelte +2 -1
  276. package/src/features/implementation-queue/presentation/components/FloatingQueueWidget.svelte +4 -3
  277. package/src/features/projects/presentation/components/ProjectActionsPanel.svelte +3 -2
  278. package/src/features/projects/presentation/components/ProjectCard.svelte +2 -1
  279. package/src/features/projects/presentation/components/ProjectEditor.svelte +6 -5
  280. package/src/features/projects/presentation/components/ProjectEntitiesPanel.svelte +2 -1
  281. package/src/features/projects/presentation/components/ProjectEventsPanel.svelte +2 -1
  282. package/src/features/projects/presentation/components/ProjectResourcesPanel.svelte +2 -1
  283. package/src/features/projects/presentation/components/ProjectTransitionsPanel.svelte +2 -1
  284. package/src/features/projects/presentation/components/ProjectsIndex.svelte +3 -2
  285. package/src/features/tutorial/presentation/components/GettingStartedBanner.svelte +4 -2
  286. package/src/features/tutorial/presentation/components/TourOverlay.svelte +3 -2
  287. package/src/features/update-check/presentation/components/UpdateBanner.svelte +2 -1
  288. package/src/features/verification/presentation/components/VerifyPanel.svelte +2 -1
  289. package/src/hooks.server.ts +6 -1
  290. package/src/lib/client/sync/YDocClient.ts +4 -1
  291. package/src/lib/client/sync/syncEvents.ts +4 -3
  292. package/src/lib/server/sync/wsServer.ts +9 -0
  293. package/src/routes/builder-mode/+page.ts +2 -1
  294. package/src/routes/features/+page.svelte +5 -4
  295. package/src/routes/features/+page.ts +2 -1
  296. package/src/routes/features/[id]/+page.svelte +2 -1
  297. package/src/routes/features/[id]/digest/+page.svelte +2 -1
  298. package/src/routes/features/[id]/graph/+page.svelte +2 -1
  299. package/src/routes/features/[id]/provenance/+page.svelte +3 -2
  300. package/src/routes/features/[id]/verify/+page.svelte +2 -1
  301. package/src/routes/mcp/+page.ts +2 -1
  302. package/src/routes/projects/[id]/+page.svelte +14 -1
  303. package/src/routes/projects/[id]/digest/+page.svelte +3 -2
  304. package/src/routes/projects/[id]/graph/+page.svelte +2 -1
  305. package/src/routes/projects/[id]/mcp/+page.svelte +4 -3
  306. package/src/routes/tutorial/+page.svelte +4 -3
  307. package/src/shared/presentation/toast/SyncToast.svelte +2 -1
  308. package/src/shared/routing/appBase.ts +17 -0
  309. package/src/shared/routing/basePath.ts +60 -0
  310. package/src/shared/security/apiFetch.ts +6 -1
  311. package/build/client/_app/immutable/chunks/0JL6Z9St.js.br +0 -0
  312. package/build/client/_app/immutable/chunks/1qwcT7H12.js.br +0 -0
  313. package/build/client/_app/immutable/chunks/1qwcT7H12.js.gz +0 -0
  314. package/build/client/_app/immutable/chunks/3_GXBVV42.js.br +0 -0
  315. package/build/client/_app/immutable/chunks/3_GXBVV42.js.gz +0 -0
  316. package/build/client/_app/immutable/chunks/4lA7HVVf.js.br +0 -0
  317. package/build/client/_app/immutable/chunks/4lA7HVVf.js.gz +0 -0
  318. package/build/client/_app/immutable/chunks/AIVrTpgC.js.br +0 -0
  319. package/build/client/_app/immutable/chunks/AIVrTpgC.js.gz +0 -0
  320. package/build/client/_app/immutable/chunks/BFiEvbNV2.js +0 -36
  321. package/build/client/_app/immutable/chunks/BFiEvbNV2.js.br +0 -0
  322. package/build/client/_app/immutable/chunks/BGoS2INr.js +0 -4
  323. package/build/client/_app/immutable/chunks/BGoS2INr.js.br +0 -0
  324. package/build/client/_app/immutable/chunks/BGoS2INr.js.gz +0 -0
  325. package/build/client/_app/immutable/chunks/BL7k2cWP.js +0 -41
  326. package/build/client/_app/immutable/chunks/BL7k2cWP.js.br +0 -0
  327. package/build/client/_app/immutable/chunks/BLVBP6IJ.js +0 -1
  328. package/build/client/_app/immutable/chunks/BLVBP6IJ.js.br +0 -0
  329. package/build/client/_app/immutable/chunks/BLVBP6IJ.js.gz +0 -0
  330. package/build/client/_app/immutable/chunks/BLqvzp0B.js.br +0 -0
  331. package/build/client/_app/immutable/chunks/BLqvzp0B.js.gz +0 -0
  332. package/build/client/_app/immutable/chunks/BPm18m-Y.js.br +0 -0
  333. package/build/client/_app/immutable/chunks/BPm18m-Y.js.gz +0 -0
  334. package/build/client/_app/immutable/chunks/BQDLMPJR.js.br +0 -0
  335. package/build/client/_app/immutable/chunks/BQDLMPJR.js.gz +0 -0
  336. package/build/client/_app/immutable/chunks/BVZc8LN_.js.br +0 -0
  337. package/build/client/_app/immutable/chunks/BVZc8LN_.js.gz +0 -0
  338. package/build/client/_app/immutable/chunks/BcjkusYG.js +0 -1
  339. package/build/client/_app/immutable/chunks/BcjkusYG.js.br +0 -0
  340. package/build/client/_app/immutable/chunks/BcjkusYG.js.gz +0 -0
  341. package/build/client/_app/immutable/chunks/BiDFtKe6.js +0 -1
  342. package/build/client/_app/immutable/chunks/BiDFtKe6.js.br +0 -2
  343. package/build/client/_app/immutable/chunks/BiDFtKe6.js.gz +0 -0
  344. package/build/client/_app/immutable/chunks/BnhnQqp1.js.br +0 -0
  345. package/build/client/_app/immutable/chunks/BnqPzDNe2.js.br +0 -0
  346. package/build/client/_app/immutable/chunks/BnqPzDNe2.js.gz +0 -0
  347. package/build/client/_app/immutable/chunks/BsWjvGRT.js +0 -11
  348. package/build/client/_app/immutable/chunks/BsWjvGRT.js.br +0 -0
  349. package/build/client/_app/immutable/chunks/BsWjvGRT.js.gz +0 -0
  350. package/build/client/_app/immutable/chunks/BsfpcgqQ.js +0 -1
  351. package/build/client/_app/immutable/chunks/BsfpcgqQ.js.br +0 -0
  352. package/build/client/_app/immutable/chunks/BsfpcgqQ.js.gz +0 -0
  353. package/build/client/_app/immutable/chunks/Byog_Hkx2.js.br +0 -0
  354. package/build/client/_app/immutable/chunks/Byog_Hkx2.js.gz +0 -0
  355. package/build/client/_app/immutable/chunks/CGWhvtMz.js.br +0 -0
  356. package/build/client/_app/immutable/chunks/CGWhvtMz.js.gz +0 -0
  357. package/build/client/_app/immutable/chunks/CNJFf1c0.js.br +0 -0
  358. package/build/client/_app/immutable/chunks/CNJFf1c0.js.gz +0 -0
  359. package/build/client/_app/immutable/chunks/CNcLON_d.js +0 -24
  360. package/build/client/_app/immutable/chunks/CNcLON_d.js.br +0 -0
  361. package/build/client/_app/immutable/chunks/CT4vNU442.js.br +0 -0
  362. package/build/client/_app/immutable/chunks/CT4vNU442.js.gz +0 -0
  363. package/build/client/_app/immutable/chunks/CZmXGMyB2.js.br +0 -0
  364. package/build/client/_app/immutable/chunks/CZmXGMyB2.js.gz +0 -0
  365. package/build/client/_app/immutable/chunks/CbMDUSLp.js.br +0 -0
  366. package/build/client/_app/immutable/chunks/CbMDUSLp.js.gz +0 -0
  367. package/build/client/_app/immutable/chunks/ClSw9AyG.js.br +0 -0
  368. package/build/client/_app/immutable/chunks/ClSw9AyG.js.gz +0 -0
  369. package/build/client/_app/immutable/chunks/CwFCbQnJ2.js +0 -2
  370. package/build/client/_app/immutable/chunks/CwFCbQnJ2.js.br +0 -0
  371. package/build/client/_app/immutable/chunks/CwFCbQnJ2.js.gz +0 -0
  372. package/build/client/_app/immutable/chunks/CzDWVOFj2.js +0 -2
  373. package/build/client/_app/immutable/chunks/CzDWVOFj2.js.br +0 -0
  374. package/build/client/_app/immutable/chunks/CzDWVOFj2.js.gz +0 -0
  375. package/build/client/_app/immutable/chunks/CzLHFS1n2.js +0 -2
  376. package/build/client/_app/immutable/chunks/CzLHFS1n2.js.br +0 -0
  377. package/build/client/_app/immutable/chunks/CzLHFS1n2.js.gz +0 -0
  378. package/build/client/_app/immutable/chunks/D5ZRH7ga.js +0 -24
  379. package/build/client/_app/immutable/chunks/D5ZRH7ga.js.br +0 -0
  380. package/build/client/_app/immutable/chunks/D7vA3BNE.js.br +0 -0
  381. package/build/client/_app/immutable/chunks/D7vA3BNE.js.gz +0 -0
  382. package/build/client/_app/immutable/chunks/D9sGVI572.js.br +0 -0
  383. package/build/client/_app/immutable/chunks/D9sGVI572.js.gz +0 -0
  384. package/build/client/_app/immutable/chunks/DByLifec.js.br +0 -0
  385. package/build/client/_app/immutable/chunks/DByLifec.js.gz +0 -0
  386. package/build/client/_app/immutable/chunks/DFYZnNsS.js +0 -1
  387. package/build/client/_app/immutable/chunks/DFYZnNsS.js.br +0 -0
  388. package/build/client/_app/immutable/chunks/DFYZnNsS.js.gz +0 -0
  389. package/build/client/_app/immutable/chunks/DFmNW1Fq2.js.br +0 -0
  390. package/build/client/_app/immutable/chunks/DFmNW1Fq2.js.gz +0 -0
  391. package/build/client/_app/immutable/chunks/DNgDuvXX.js +0 -33
  392. package/build/client/_app/immutable/chunks/DNgDuvXX.js.br +0 -0
  393. package/build/client/_app/immutable/chunks/DNgDuvXX.js.gz +0 -0
  394. package/build/client/_app/immutable/chunks/DR7B-fl42.js +0 -1
  395. package/build/client/_app/immutable/chunks/DR7B-fl42.js.br +0 -0
  396. package/build/client/_app/immutable/chunks/DR7B-fl42.js.gz +0 -0
  397. package/build/client/_app/immutable/chunks/DcNjxu7W.js.br +0 -0
  398. package/build/client/_app/immutable/chunks/DcNjxu7W.js.gz +0 -0
  399. package/build/client/_app/immutable/chunks/Df6G9iyw.js.br +0 -0
  400. package/build/client/_app/immutable/chunks/Df6G9iyw.js.gz +0 -0
  401. package/build/client/_app/immutable/chunks/Dp-pCjOt.js.br +0 -0
  402. package/build/client/_app/immutable/chunks/Dp-pCjOt.js.gz +0 -0
  403. package/build/client/_app/immutable/chunks/Dq-VwV1Z.js.br +0 -0
  404. package/build/client/_app/immutable/chunks/Dq-VwV1Z.js.gz +0 -0
  405. package/build/client/_app/immutable/chunks/DsJUUSRq.js.br +0 -0
  406. package/build/client/_app/immutable/chunks/DsJUUSRq.js.gz +0 -0
  407. package/build/client/_app/immutable/chunks/DurmhLxR.js +0 -62
  408. package/build/client/_app/immutable/chunks/DurmhLxR.js.br +0 -0
  409. package/build/client/_app/immutable/chunks/DurmhLxR.js.gz +0 -0
  410. package/build/client/_app/immutable/chunks/DxATgtBc.js.br +0 -0
  411. package/build/client/_app/immutable/chunks/DxATgtBc.js.gz +0 -0
  412. package/build/client/_app/immutable/chunks/EZgceN_E.js.br +0 -0
  413. package/build/client/_app/immutable/chunks/EZgceN_E.js.gz +0 -0
  414. package/build/client/_app/immutable/chunks/HvvVs8hk.js.gz +0 -0
  415. package/build/client/_app/immutable/chunks/JlFvxdUg.js.br +0 -0
  416. package/build/client/_app/immutable/chunks/JlFvxdUg.js.gz +0 -0
  417. package/build/client/_app/immutable/chunks/PGh5ehlS.js +0 -1
  418. package/build/client/_app/immutable/chunks/PGh5ehlS.js.br +0 -0
  419. package/build/client/_app/immutable/chunks/PGh5ehlS.js.gz +0 -0
  420. package/build/client/_app/immutable/chunks/Txy2b5lN2.js.br +0 -0
  421. package/build/client/_app/immutable/chunks/Txy2b5lN2.js.gz +0 -0
  422. package/build/client/_app/immutable/chunks/_HmeKOII.js.br +0 -0
  423. package/build/client/_app/immutable/chunks/_HmeKOII.js.gz +0 -0
  424. package/build/client/_app/immutable/chunks/e272qEPH2.js.br +0 -0
  425. package/build/client/_app/immutable/chunks/e272qEPH2.js.gz +0 -0
  426. package/build/client/_app/immutable/chunks/iDa-doaO.js +0 -1
  427. package/build/client/_app/immutable/chunks/iDa-doaO.js.br +0 -0
  428. package/build/client/_app/immutable/chunks/iDa-doaO.js.gz +0 -0
  429. package/build/client/_app/immutable/chunks/sl-vu-JF2.js.br +0 -0
  430. package/build/client/_app/immutable/chunks/sl-vu-JF2.js.gz +0 -0
  431. package/build/client/_app/immutable/chunks/wLz3964S2.js +0 -3
  432. package/build/client/_app/immutable/chunks/wLz3964S2.js.br +0 -0
  433. package/build/client/_app/immutable/chunks/wLz3964S2.js.gz +0 -0
  434. package/build/client/_app/immutable/chunks/zN8Uu1W22.js.br +0 -0
  435. package/build/client/_app/immutable/chunks/zN8Uu1W22.js.gz +0 -0
  436. package/build/client/_app/immutable/entry/app.Db53CzCE.js +0 -2
  437. package/build/client/_app/immutable/entry/app.Db53CzCE.js.br +0 -0
  438. package/build/client/_app/immutable/entry/app.Db53CzCE.js.gz +0 -0
  439. package/build/client/_app/immutable/entry/start.BmrW1pNm.js +0 -1
  440. package/build/client/_app/immutable/entry/start.BmrW1pNm.js.br +0 -0
  441. package/build/client/_app/immutable/entry/start.BmrW1pNm.js.gz +0 -0
  442. package/build/client/_app/immutable/nodes/0.D-_MLMOF.js +0 -8
  443. package/build/client/_app/immutable/nodes/0.D-_MLMOF.js.br +0 -0
  444. package/build/client/_app/immutable/nodes/0.D-_MLMOF.js.gz +0 -0
  445. package/build/client/_app/immutable/nodes/1.DhZ7EShx.js.br +0 -1
  446. package/build/client/_app/immutable/nodes/1.DhZ7EShx.js.gz +0 -0
  447. package/build/client/_app/immutable/nodes/10.Bgj5-w6g.js +0 -1
  448. package/build/client/_app/immutable/nodes/10.Bgj5-w6g.js.br +0 -0
  449. package/build/client/_app/immutable/nodes/10.Bgj5-w6g.js.gz +0 -0
  450. package/build/client/_app/immutable/nodes/11.cfn9LqaA.js +0 -1
  451. package/build/client/_app/immutable/nodes/11.cfn9LqaA.js.br +0 -1
  452. package/build/client/_app/immutable/nodes/11.cfn9LqaA.js.gz +0 -0
  453. package/build/client/_app/immutable/nodes/12.CphZytWm.js +0 -20
  454. package/build/client/_app/immutable/nodes/12.CphZytWm.js.br +0 -0
  455. package/build/client/_app/immutable/nodes/12.CphZytWm.js.gz +0 -0
  456. package/build/client/_app/immutable/nodes/13.9ZGjlvBD.js +0 -1
  457. package/build/client/_app/immutable/nodes/13.9ZGjlvBD.js.br +0 -0
  458. package/build/client/_app/immutable/nodes/13.9ZGjlvBD.js.gz +0 -0
  459. package/build/client/_app/immutable/nodes/14.C4gZLBpf.js +0 -1
  460. package/build/client/_app/immutable/nodes/14.C4gZLBpf.js.br +0 -0
  461. package/build/client/_app/immutable/nodes/14.C4gZLBpf.js.gz +0 -0
  462. package/build/client/_app/immutable/nodes/15.DY0lYZJv.js +0 -4
  463. package/build/client/_app/immutable/nodes/15.DY0lYZJv.js.br +0 -0
  464. package/build/client/_app/immutable/nodes/15.DY0lYZJv.js.gz +0 -0
  465. package/build/client/_app/immutable/nodes/16.xbZ24Wub.js.br +0 -0
  466. package/build/client/_app/immutable/nodes/16.xbZ24Wub.js.gz +0 -0
  467. package/build/client/_app/immutable/nodes/2.DL36BNkY.js +0 -1
  468. package/build/client/_app/immutable/nodes/2.DL36BNkY.js.br +0 -0
  469. package/build/client/_app/immutable/nodes/2.DL36BNkY.js.gz +0 -0
  470. package/build/client/_app/immutable/nodes/3.CB1xVSCX.js +0 -1
  471. package/build/client/_app/immutable/nodes/3.CB1xVSCX.js.br +0 -0
  472. package/build/client/_app/immutable/nodes/3.CB1xVSCX.js.gz +0 -0
  473. package/build/client/_app/immutable/nodes/4.B7Ucym6O.js +0 -4
  474. package/build/client/_app/immutable/nodes/4.B7Ucym6O.js.br +0 -0
  475. package/build/client/_app/immutable/nodes/4.B7Ucym6O.js.gz +0 -0
  476. package/build/client/_app/immutable/nodes/5.BPd6M8hN.js +0 -57
  477. package/build/client/_app/immutable/nodes/5.BPd6M8hN.js.br +0 -0
  478. package/build/client/_app/immutable/nodes/5.BPd6M8hN.js.gz +0 -0
  479. package/build/client/_app/immutable/nodes/6.CFU9YhB5.js +0 -1
  480. package/build/client/_app/immutable/nodes/6.CFU9YhB5.js.br +0 -0
  481. package/build/client/_app/immutable/nodes/6.CFU9YhB5.js.gz +0 -0
  482. package/build/client/_app/immutable/nodes/7.D7glifWT.js +0 -1
  483. package/build/client/_app/immutable/nodes/7.D7glifWT.js.br +0 -0
  484. package/build/client/_app/immutable/nodes/7.D7glifWT.js.gz +0 -0
  485. package/build/client/_app/immutable/nodes/8.WoYHvkli.js +0 -6
  486. package/build/client/_app/immutable/nodes/8.WoYHvkli.js.br +0 -0
  487. package/build/client/_app/immutable/nodes/8.WoYHvkli.js.gz +0 -0
  488. package/build/client/_app/immutable/nodes/9.B1--QwJ9.js +0 -3
  489. package/build/client/_app/immutable/nodes/9.B1--QwJ9.js.br +0 -0
  490. package/build/client/_app/immutable/nodes/9.B1--QwJ9.js.gz +0 -0
  491. package/build/server/chunks/nodes/0.js-DSJpsejC.js +0 -13
  492. package/build/server/chunks/nodes/1.js-Be5xYmbq.js +0 -7
  493. package/build/server/chunks/nodes/10.js-CH2vA-r4.js +0 -14
  494. package/build/server/chunks/nodes/11.js-59qSeDy-.js +0 -7
  495. package/build/server/chunks/nodes/12.js-D_2yx6-U.js +0 -7
  496. package/build/server/chunks/nodes/13.js-CsQOvHq9.js +0 -7
  497. package/build/server/chunks/nodes/14.js-B-KwyBCP.js +0 -7
  498. package/build/server/chunks/nodes/15.js-_R1E07z7.js +0 -7
  499. package/build/server/chunks/nodes/16.js-DTzZ5yXh.js +0 -7
  500. package/build/server/chunks/nodes/2.js-CCWrojqo.js +0 -7
  501. package/build/server/chunks/nodes/3.js-D82Yk_Yj.js +0 -14
  502. package/build/server/chunks/nodes/4.js-NFD9Xokg.js +0 -14
  503. package/build/server/chunks/nodes/5.js-BFJmCgmj.js +0 -7
  504. package/build/server/chunks/nodes/6.js-CGiymVZi.js +0 -7
  505. package/build/server/chunks/nodes/7.js-ZH6BSKiJ.js +0 -7
  506. package/build/server/chunks/nodes/8.js-DMwXVvC5.js +0 -7
  507. package/build/server/chunks/nodes/9.js-DKj11aXV.js +0 -7
  508. /package/build/client/_app/immutable/chunks/{Bzug6I3P2.js → Bzug6I3P.js} +0 -0
  509. /package/build/client/_app/immutable/chunks/{Bzug6I3P2.js.br → Bzug6I3P.js.br} +0 -0
  510. /package/build/client/_app/immutable/chunks/{Bzug6I3P2.js.gz → Bzug6I3P.js.gz} +0 -0
  511. /package/build/client/_app/immutable/chunks/{KythIMN8.js → KythIMN82.js} +0 -0
  512. /package/build/client/_app/immutable/chunks/{KythIMN8.js.br → KythIMN82.js.br} +0 -0
  513. /package/build/client/_app/immutable/chunks/{KythIMN8.js.gz → KythIMN82.js.gz} +0 -0
  514. /package/build/client/_app/immutable/chunks/{Qgm526At.js → Qgm526At2.js} +0 -0
  515. /package/build/client/_app/immutable/chunks/{Qgm526At.js.br → Qgm526At2.js.br} +0 -0
  516. /package/build/client/_app/immutable/chunks/{Qgm526At.js.gz → Qgm526At2.js.gz} +0 -0
@@ -0,0 +1 @@
1
+ import"./BFf3ohOx.js";
@@ -0,0 +1,2 @@
1
+ �
2
+ �import"./BFf3ohOx.js";
@@ -0,0 +1,33 @@
1
+ import{r as e}from"./BFf3ohOx.js";import"./7vru07lQ.js";import{Ft as t,Lt as n,Tt as r}from"./Dax-dZn3.js";import{n as i}from"./Dvmt5dRm.js";import{t as a}from"./niJ1Cp3-.js";import{t as o}from"./BeaZAz8Q.js";import{t as s}from"./CjKbBfx-.js";import{t as c}from"./BQ9GodWX.js";var l=e=>t=>typeof t?.name==`string`&&a(t.name,e),u=()=>{let e=o.feature;if(!e)return null;for(let t=e.surfaces.length-1;t>=0;t--){let n=e.surfaces[t];if(n&&n.actions.length!==0)return n.actions[n.actions.length-1]??null}return null},d=()=>{let e=u();return e?e.parameters.some(e=>a(e.name,`politely`)&&e.type===`boolean`):!1},f=()=>{let e=u();return e?e.rules.filter(e=>!e.condition||`kind`in e.condition?!1:r(e.condition.left)&&e.effect.type===`show_message`).length:0},p={id:`first-feature`,name:`Build your first feature, end to end`,summary:`Walks you from an empty app to a Feature with one Action you run in the simulator. About 3 minutes. Uses fixed names so the experience is the same for everyone.`,steps:[{id:`welcome`,title:`Welcome`,body:`We'll build a tiny Feature together and run it in the simulator. We'll use fixed names so the rest of the tutorial reads the same way for you as for anyone else. Click Next when you're ready.`,advance:{kind:`manual`}},{id:`new-project`,title:`Create a project`,body:`Click 'New project'. A Project groups Features that belong to the same product or codebase.`,target:`[data-tour="new-project-button"]`,route:{pathname:`/projects`,label:`Go to Projects`},advance:{kind:`click`,selector:`[data-tour="new-project-button"]`}},{id:`fill-project`,title:`Name the project`,body:`Type exactly 'Hello World' in the Name field, then click 'New project'. The description is pre-filled - keep it as-is or tweak if you want.`,target:`[data-tour="new-project-form"]`,focusSelector:`[data-tour="new-project-form"] input[type="text"]`,prefill:[{selector:`[data-tour="new-project-description"]`,value:`A first project to learn Unspaghettit.`}],requireExact:{formId:`new-project`,value:`Hello World`},advance:{kind:`event`,event:`project.created`,match:l(`Hello World`)}},{id:`new-feature`,title:`Create a feature`,body:`Inside your project, click 'New feature'. A Feature is one coherent slice of behavior. Keep it small.`,target:`[data-tour="new-feature-button"]`,advance:{kind:`click`,selector:`[data-tour="new-feature-button"]`}},{id:`fill-feature`,title:`Name the feature`,body:`Type 'Greeting' in the Name field, then click 'Create feature'. The description is pre-filled.`,target:`[data-tour="new-feature-form"]`,focusSelector:`[data-tour="new-feature-form"] input[type="text"]`,prefill:[{selector:`[data-tour="new-feature-description"]`,value:`User opens the app and is welcomed.`}],requireExact:{formId:`new-feature`,value:`Greeting`},advance:{kind:`event`,event:`feature.created`,match:l(`Greeting`)}},{id:`add-surface`,title:`Add a surface`,body:`Click 'Add surface'. A Surface is one context where actions happen (a screen, a terminal, a workflow).`,target:`[data-tour="add-surface-button"]`,advance:{kind:`click`,selector:`[data-tour="add-surface-button"]`}},{id:`chooser-create-new`,title:`Pick "Create new"`,body:`We're starting from scratch, so click the 'Create new' card.`,target:`[data-tour="chooser-create-new"]`,advance:{kind:`click`,selector:`[data-tour="chooser-create-new"]`}},{id:`fill-surface`,title:`Name the surface`,body:`Surface name: type exactly 'Welcome Screen'. Keep the type on Screen. Click 'Create surface' to submit.`,target:`[data-tour="blank-surface-form"]`,focusSelector:`[data-tour="blank-surface-form"] input[type="text"]`,requireExact:{formId:`blank-surface`,value:`Welcome Screen`},advance:{kind:`event`,event:`editor.surface.added`,match:l(`Welcome Screen`)}},{id:`add-action`,title:`Add an action`,body:`Type exactly 'Say Hello' in the action form, then click 'Add action' (or press Enter). An Action is something the user or system can do on this surface.`,target:`[data-tour="add-action-form"]`,focusSelector:`[data-tour="add-action-form"] input[type="text"]`,requireExact:{formId:`add-action`,value:`Say Hello`},advance:{kind:`event`,event:`editor.action.added`,match:l(`Say Hello`)}},{id:`add-parameter`,title:`Give the action a parameter`,body:`The Say Hello editor just opened. In the Parameters section, click '+ Parameter'. The name field will focus automatically. Then:
2
+ 1. type 'politely' for the Name
3
+ 2. change Type to 'boolean'
4
+ Next unlocks once a 'politely' boolean parameter exists on Say Hello.`,target:`[data-tour="action-parameters-section"]`,advance:{kind:`manual`},canAdvance:d},{id:`add-rule-not-polite`,title:`Rule 1: the casual hello`,body:`We want the action to say 'Hi.' only when politely is NO. Add the first rule:
5
+
6
+ 1. Click '+ Rule' at the top right of the Rules section.
7
+ 2. On the IF row, click 'Param' (next to 'State'), then pick 'politely' in the dropdown.
8
+ 3. Change the operator dropdown from 'equals' to 'is false'. The right-side value field disappears - that's expected.
9
+ 4. On the THEN row, change 'Block action' to 'Show message'.
10
+ 5. In the text field that appears, type: Hi.
11
+
12
+ Next unlocks once one parameter-based Show message rule exists.`,target:`[data-tour="action-rules-section"]`,advance:{kind:`manual`},canAdvance:()=>f()>=1},{id:`add-rule-polite`,title:`Rule 2: the friendly hello`,body:`Now the inverse - when politely is YES, the action greets warmly instead. Click '+ Rule' again, then:
13
+
14
+ 1. IF row: click 'Param', pick 'politely'
15
+ 2. operator: 'is true' (right-side value field disappears)
16
+ 3. THEN row: 'Show message'
17
+ 4. Message: Hello, friend, lovely to see you.
18
+
19
+ Next unlocks once you have TWO parameter-based Show message rules.`,target:`[data-tour="action-rules-section"]`,advance:{kind:`manual`},canAdvance:()=>f()>=2},{id:`open-simulator`,title:`Open the simulator`,body:`Click the Simulator tile in the health strip. It lets you run any action against the feature's current state.`,target:`[data-tour="simulator-toggle"]`,advance:{kind:`click`,selector:`[data-tour="simulator-toggle"]`}},{id:`inspect-parameter`,title:`The simulator picked up your parameter`,body:`The 'politely' parameter you added is now an input here. You'll flip it between 'No' and 'Yes' in the next steps to see the rule fire.`,target:`[data-tour-sim-param="politely"]`,panelPosition:`avoid-target`,advance:{kind:`manual`}},{id:`run-polite-false`,title:`Try it first with politely = No`,body:`Leave 'politely' on 'No' and click 'Run Say Hello'.
20
+
21
+ The tour will move on automatically once the run completes.`,target:`[data-tour="simulator-run"]`,panelPosition:`avoid-target`,advance:{kind:`event`,event:`action.simulated`}},{id:`inspect-result`,title:`Read the result, then try the other side`,body:`Look at the Result panel below the Run button.
22
+
23
+ Right now (politely = No):
24
+ - 'Hi.' fired - rule 1 matched
25
+ - rule 2 was checked but its condition didn't hold
26
+
27
+ Now flip politely to 'Yes' and click Run again. The output flips:
28
+ - 'Hello, friend, lovely to see you.' fires - rule 2 matches
29
+ - rule 1 stays silent
30
+
31
+ Same action, same rules on disk, ONE OR THE OTHER message at runtime - just because one input flipped. That's the whole point of rules: fork behaviour by parameters or state, not by writing two actions. Toggle politely and re-run as many times as you like; click Next when done.`,target:`[data-tour="simulator-panel"]`,panelPosition:`avoid-target`,advance:{kind:`manual`}},{id:`maturity-tour`,title:`Maturity score`,body:`The MAT tile shows how complete your spec is. Every action without scenarios, every rule without a description, every state without a default - all chip points off. Click it later to see exactly what's missing and a 'Fix' button that jumps you to the right place. Your AI agent reads the same checklist via MCP and can write the missing bits for you.`,target:`[data-tour="maturity-toggle"]`,panelPosition:`below-target`,advance:{kind:`manual`}},{id:`implementation-tour`,title:`Implementation score`,body:"The IMPL tile is a dash today - we haven't tagged any code yet. Once your AI agent writes the implementation and updates `.unspa.json` with `{ action: 'a1b2c3d4' -> file, line }`, this turns green in real time. You'll see, action by action, what's coded and what's still spec-only - and the agent can resolve the gaps without losing context.",target:`[data-tour="implementation-toggle"]`,panelPosition:`below-target`,advance:{kind:`manual`}},{id:`mcp-tour`,title:`Hook up your AI agent`,body:`Every project page has an MCP button (next to Graph) that registers this dashboard as an MCP server for your AI coding agent, scoped to that project's features. Once connected, the agent can list features, add actions, run scenarios, score maturity, and report implementation - all through typed tool calls instead of pasting prose. That's the loop: you sketch behaviour, the agent fills it in, the spec stays the source of truth.`,advance:{kind:`manual`}},{id:`done`,title:`That's the model in miniature`,body:`A Project holds Features. A Feature holds Surfaces. A Surface holds Actions. An Action takes parameters, fires effects, and rules fork the outcome. The shape doesn't change as you go deeper. Now hand it to your AI agent and let them build the rest with you.`,lockScroll:!0,advance:{kind:`manual`}}]};async function m(){let r=await s.loadSamples(),a=r.addedProjects.length+r.addedFeatures.length>0,o=r.skippedProjects.length+r.skippedFeatures.length>0;if(!a&&!o){await t({title:`Nothing to load`,message:`No samples are bundled in this build.`,tone:`warning`});return}if(!a){await t({title:`Already available`,message:c(r,`skipped`)+`
32
+
33
+ Delete them and load again to restore from the sample.`,tone:`info`});return}if(r.addedProjects.length>0){let t=r.addedProjects.length,a=r.addedFeatures.length,o=t===1?`project`:`projects`,s=a>0?`Added ${t} ${o} and ${a} ${a===1?`feature`:`features`}.`:`Added ${t} ${o}.`,c=r.addedFeatures.map(e=>e.name).join(` · `),l=await n({title:`Samples loaded`,message:s,options:r.addedProjects.map(e=>({id:e.id,label:`Open ${e.name}`,description:c||void 0})),cancelLabel:`Close`,tone:`success`});l&&await e(i(`/projects/${l}`));return}await t({title:`Samples loaded`,message:c(r,`added`)+(o?`\n\nAlready present:\n${c(r,`skipped`)}`:``),tone:`success`})}export{p as n,m as t};
@@ -1 +1 @@
1
- import"./D3R1Zijl.js";import"./CU1VY_X6.js";import"./DMee4NNa.js";import"./Cog4lB7j2.js";import"./C8hxcZ_T2.js";import"./CWiCMZki2.js";import"./CQEhpTR82.js";import"./DRsML_HI2.js";import"./fpD_0ZY_2.js";import"./CH0YauWR2.js";import"./BMAHwzjW2.js";import"./ZE_M8k_X2.js";import"./BXpANlNW2.js";import"./CzLHFS1n2.js";import"./D8TtvFq5.js";import{n as e}from"./D7vA3BNE.js";export{e as diagram};
1
+ import"./D3R1Zijl.js";import"./CU1VY_X6.js";import"./DMee4NNa.js";import"./Cog4lB7j2.js";import"./C8hxcZ_T2.js";import"./CWiCMZki2.js";import"./CQEhpTR82.js";import"./DRsML_HI2.js";import"./fpD_0ZY_2.js";import"./CH0YauWR2.js";import"./BMAHwzjW2.js";import"./ZE_M8k_X2.js";import"./BXpANlNW2.js";import"./thKX1sNh2.js";import"./D8TtvFq5.js";import{n as e}from"./DV5mh8_L.js";export{e as diagram};
@@ -1,4 +1,4 @@
1
- import{n as e,t}from"./DsF7k-Jl.js";import{m as n}from"./D3R1Zijl.js";import{H as r,K as i,U as a,a as o,b as s,v as c,w as l,x as u,y as d}from"./CU1VY_X6.js";import{g as f}from"./DMee4NNa.js";import"./Cog4lB7j2.js";import"./C8hxcZ_T2.js";import"./CWiCMZki2.js";import"./CQEhpTR82.js";import{t as p}from"./fpD_0ZY_2.js";import{t as m}from"./CH0YauWR2.js";import"./BMAHwzjW2.js";import"./ZE_M8k_X2.js";import"./BXpANlNW2.js";import{r as h,t as g}from"./CzLHFS1n2.js";var _=(function(){var t=e(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,3],r=[1,4],i=[1,5],a=[1,6],o=[5,6,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],s=[1,22],c=[2,7],l=[1,26],u=[1,27],d=[1,28],f=[1,29],p=[1,33],m=[1,34],h=[1,35],g=[1,36],_=[1,37],v=[1,38],y=[1,24],b=[1,31],x=[1,32],S=[1,30],C=[1,39],w=[1,40],T=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],E=[1,61],D=[89,90],O=[5,8,9,11,13,21,22,23,24,27,29,41,42,43,44,45,46,54,61,63,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],k=[27,29],ee=[1,70],A=[1,71],te=[1,72],ne=[1,73],re=[1,74],ie=[1,75],ae=[1,76],j=[1,83],M=[1,80],N=[1,84],P=[1,85],F=[1,86],I=[1,87],L=[1,88],R=[1,89],z=[1,90],B=[1,91],V=[1,92],oe=[5,8,9,11,13,21,22,23,24,27,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],H=[63,64],se=[1,101],ce=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,76,77,89,90],U=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],W=[1,110],G=[1,106],K=[1,107],q=[1,108],J=[1,109],Y=[1,111],X=[1,116],Z=[1,117],Q=[1,114],$=[1,115],le={trace:e(function(){},`trace`),yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,direction:17,styleStatement:18,classDefStatement:19,classStatement:20,direction_tb:21,direction_bt:22,direction_rl:23,direction_lr:24,requirementType:25,requirementName:26,STRUCT_START:27,requirementBody:28,STYLE_SEPARATOR:29,idList:30,ID:31,COLONSEP:32,id:33,TEXT:34,text:35,RISK:36,riskLevel:37,VERIFYMTHD:38,verifyType:39,STRUCT_STOP:40,REQUIREMENT:41,FUNCTIONAL_REQUIREMENT:42,INTERFACE_REQUIREMENT:43,PERFORMANCE_REQUIREMENT:44,PHYSICAL_REQUIREMENT:45,DESIGN_CONSTRAINT:46,LOW_RISK:47,MED_RISK:48,HIGH_RISK:49,VERIFY_ANALYSIS:50,VERIFY_DEMONSTRATION:51,VERIFY_INSPECTION:52,VERIFY_TEST:53,ELEMENT:54,elementName:55,elementBody:56,TYPE:57,type:58,DOCREF:59,ref:60,END_ARROW_L:61,relationship:62,LINE:63,END_ARROW_R:64,CONTAINS:65,COPIES:66,DERIVES:67,SATISFIES:68,VERIFIES:69,REFINES:70,TRACES:71,CLASSDEF:72,stylesOpt:73,CLASS:74,ALPHA:75,COMMA:76,STYLE:77,style:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,MINUS:86,LABEL:87,SEMICOLON:88,unqString:89,qString:90,$accept:0,$end:1},terminals_:{2:`error`,5:`NEWLINE`,6:`RD`,8:`EOF`,9:`acc_title`,10:`acc_title_value`,11:`acc_descr`,12:`acc_descr_value`,13:`acc_descr_multiline_value`,21:`direction_tb`,22:`direction_bt`,23:`direction_rl`,24:`direction_lr`,27:`STRUCT_START`,29:`STYLE_SEPARATOR`,31:`ID`,32:`COLONSEP`,34:`TEXT`,36:`RISK`,38:`VERIFYMTHD`,40:`STRUCT_STOP`,41:`REQUIREMENT`,42:`FUNCTIONAL_REQUIREMENT`,43:`INTERFACE_REQUIREMENT`,44:`PERFORMANCE_REQUIREMENT`,45:`PHYSICAL_REQUIREMENT`,46:`DESIGN_CONSTRAINT`,47:`LOW_RISK`,48:`MED_RISK`,49:`HIGH_RISK`,50:`VERIFY_ANALYSIS`,51:`VERIFY_DEMONSTRATION`,52:`VERIFY_INSPECTION`,53:`VERIFY_TEST`,54:`ELEMENT`,57:`TYPE`,59:`DOCREF`,61:`END_ARROW_L`,63:`LINE`,64:`END_ARROW_R`,65:`CONTAINS`,66:`COPIES`,67:`DERIVES`,68:`SATISFIES`,69:`VERIFIES`,70:`REFINES`,71:`TRACES`,72:`CLASSDEF`,74:`CLASS`,75:`ALPHA`,76:`COMMA`,77:`STYLE`,80:`NUM`,81:`COLON`,82:`UNIT`,83:`SPACE`,84:`BRKT`,85:`PCT`,86:`MINUS`,87:`LABEL`,88:`SEMICOLON`,89:`unqString`,90:`qString`},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[17,1],[17,1],[17,1],[17,1],[14,5],[14,7],[28,5],[28,5],[28,5],[28,5],[28,2],[28,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[37,1],[37,1],[37,1],[39,1],[39,1],[39,1],[39,1],[15,5],[15,7],[56,5],[56,5],[56,2],[56,1],[16,5],[16,5],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[19,3],[20,3],[20,3],[30,1],[30,3],[30,1],[30,3],[18,3],[73,1],[73,3],[78,1],[78,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[26,1],[26,1],[33,1],[33,1],[35,1],[35,1],[55,1],[55,1],[58,1],[58,1],[60,1],[60,1]],performAction:e(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 4:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 5:case 6:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 7:this.$=[];break;case 17:r.setDirection(`TB`);break;case 18:r.setDirection(`BT`);break;case 19:r.setDirection(`RL`);break;case 20:r.setDirection(`LR`);break;case 21:r.addRequirement(a[s-3],a[s-4]);break;case 22:r.addRequirement(a[s-5],a[s-6]),r.setClass([a[s-5]],a[s-3]);break;case 23:r.setNewReqId(a[s-2]);break;case 24:r.setNewReqText(a[s-2]);break;case 25:r.setNewReqRisk(a[s-2]);break;case 26:r.setNewReqVerifyMethod(a[s-2]);break;case 29:this.$=r.RequirementType.REQUIREMENT;break;case 30:this.$=r.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 31:this.$=r.RequirementType.INTERFACE_REQUIREMENT;break;case 32:this.$=r.RequirementType.PERFORMANCE_REQUIREMENT;break;case 33:this.$=r.RequirementType.PHYSICAL_REQUIREMENT;break;case 34:this.$=r.RequirementType.DESIGN_CONSTRAINT;break;case 35:this.$=r.RiskLevel.LOW_RISK;break;case 36:this.$=r.RiskLevel.MED_RISK;break;case 37:this.$=r.RiskLevel.HIGH_RISK;break;case 38:this.$=r.VerifyType.VERIFY_ANALYSIS;break;case 39:this.$=r.VerifyType.VERIFY_DEMONSTRATION;break;case 40:this.$=r.VerifyType.VERIFY_INSPECTION;break;case 41:this.$=r.VerifyType.VERIFY_TEST;break;case 42:r.addElement(a[s-3]);break;case 43:r.addElement(a[s-5]),r.setClass([a[s-5]],a[s-3]);break;case 44:r.setNewElementType(a[s-2]);break;case 45:r.setNewElementDocRef(a[s-2]);break;case 48:r.addRelationship(a[s-2],a[s],a[s-4]);break;case 49:r.addRelationship(a[s-2],a[s-4],a[s]);break;case 50:this.$=r.Relationships.CONTAINS;break;case 51:this.$=r.Relationships.COPIES;break;case 52:this.$=r.Relationships.DERIVES;break;case 53:this.$=r.Relationships.SATISFIES;break;case 54:this.$=r.Relationships.VERIFIES;break;case 55:this.$=r.Relationships.REFINES;break;case 56:this.$=r.Relationships.TRACES;break;case 57:this.$=a[s-2],r.defineClass(a[s-1],a[s]);break;case 58:r.setClass(a[s-1],a[s]);break;case 59:r.setClass([a[s-2]],a[s]);break;case 60:case 62:this.$=[a[s]];break;case 61:case 63:this.$=a[s-2].concat([a[s]]);break;case 64:this.$=a[s-2],r.setCssStyle(a[s-1],a[s]);break;case 65:this.$=[a[s]];break;case 66:a[s-2].push(a[s]),this.$=a[s-2];break;case 68:this.$=a[s-1]+a[s];break}},`anonymous`),table:[{3:1,4:2,6:n,9:r,11:i,13:a},{1:[3]},{3:8,4:2,5:[1,7],6:n,9:r,11:i,13:a},{5:[1,9]},{10:[1,10]},{12:[1,11]},t(o,[2,6]),{3:12,4:2,6:n,9:r,11:i,13:a},{1:[2,2]},{4:17,5:s,7:13,8:c,9:r,11:i,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},t(o,[2,4]),t(o,[2,5]),{1:[2,1]},{8:[1,41]},{4:17,5:s,7:42,8:c,9:r,11:i,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{4:17,5:s,7:43,8:c,9:r,11:i,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{4:17,5:s,7:44,8:c,9:r,11:i,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{4:17,5:s,7:45,8:c,9:r,11:i,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{4:17,5:s,7:46,8:c,9:r,11:i,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{4:17,5:s,7:47,8:c,9:r,11:i,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{4:17,5:s,7:48,8:c,9:r,11:i,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{4:17,5:s,7:49,8:c,9:r,11:i,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{4:17,5:s,7:50,8:c,9:r,11:i,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{26:51,89:[1,52],90:[1,53]},{55:54,89:[1,55],90:[1,56]},{29:[1,59],61:[1,57],63:[1,58]},t(T,[2,17]),t(T,[2,18]),t(T,[2,19]),t(T,[2,20]),{30:60,33:62,75:E,89:C,90:w},{30:63,33:62,75:E,89:C,90:w},{30:64,33:62,75:E,89:C,90:w},t(D,[2,29]),t(D,[2,30]),t(D,[2,31]),t(D,[2,32]),t(D,[2,33]),t(D,[2,34]),t(O,[2,81]),t(O,[2,82]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{8:[2,13]},{8:[2,14]},{8:[2,15]},{8:[2,16]},{27:[1,65],29:[1,66]},t(k,[2,79]),t(k,[2,80]),{27:[1,67],29:[1,68]},t(k,[2,85]),t(k,[2,86]),{62:69,65:ee,66:A,67:te,68:ne,69:re,70:ie,71:ae},{62:77,65:ee,66:A,67:te,68:ne,69:re,70:ie,71:ae},{30:78,33:62,75:E,89:C,90:w},{73:79,75:j,76:M,78:81,79:82,80:N,81:P,82:F,83:I,84:L,85:R,86:z,87:B,88:V},t(oe,[2,60]),t(oe,[2,62]),{73:93,75:j,76:M,78:81,79:82,80:N,81:P,82:F,83:I,84:L,85:R,86:z,87:B,88:V},{30:94,33:62,75:E,76:M,89:C,90:w},{5:[1,95]},{30:96,33:62,75:E,89:C,90:w},{5:[1,97]},{30:98,33:62,75:E,89:C,90:w},{63:[1,99]},t(H,[2,50]),t(H,[2,51]),t(H,[2,52]),t(H,[2,53]),t(H,[2,54]),t(H,[2,55]),t(H,[2,56]),{64:[1,100]},t(T,[2,59],{76:M}),t(T,[2,64],{76:se}),{33:103,75:[1,102],89:C,90:w},t(ce,[2,65],{79:104,75:j,80:N,81:P,82:F,83:I,84:L,85:R,86:z,87:B,88:V}),t(U,[2,67]),t(U,[2,69]),t(U,[2,70]),t(U,[2,71]),t(U,[2,72]),t(U,[2,73]),t(U,[2,74]),t(U,[2,75]),t(U,[2,76]),t(U,[2,77]),t(U,[2,78]),t(T,[2,57],{76:se}),t(T,[2,58],{76:M}),{5:W,28:105,31:G,34:K,36:q,38:J,40:Y},{27:[1,112],76:M},{5:X,40:Z,56:113,57:Q,59:$},{27:[1,118],76:M},{33:119,89:C,90:w},{33:120,89:C,90:w},{75:j,78:121,79:82,80:N,81:P,82:F,83:I,84:L,85:R,86:z,87:B,88:V},t(oe,[2,61]),t(oe,[2,63]),t(U,[2,68]),t(T,[2,21]),{32:[1,122]},{32:[1,123]},{32:[1,124]},{32:[1,125]},{5:W,28:126,31:G,34:K,36:q,38:J,40:Y},t(T,[2,28]),{5:[1,127]},t(T,[2,42]),{32:[1,128]},{32:[1,129]},{5:X,40:Z,56:130,57:Q,59:$},t(T,[2,47]),{5:[1,131]},t(T,[2,48]),t(T,[2,49]),t(ce,[2,66],{79:104,75:j,80:N,81:P,82:F,83:I,84:L,85:R,86:z,87:B,88:V}),{33:132,89:C,90:w},{35:133,89:[1,134],90:[1,135]},{37:136,47:[1,137],48:[1,138],49:[1,139]},{39:140,50:[1,141],51:[1,142],52:[1,143],53:[1,144]},t(T,[2,27]),{5:W,28:145,31:G,34:K,36:q,38:J,40:Y},{58:146,89:[1,147],90:[1,148]},{60:149,89:[1,150],90:[1,151]},t(T,[2,46]),{5:X,40:Z,56:152,57:Q,59:$},{5:[1,153]},{5:[1,154]},{5:[2,83]},{5:[2,84]},{5:[1,155]},{5:[2,35]},{5:[2,36]},{5:[2,37]},{5:[1,156]},{5:[2,38]},{5:[2,39]},{5:[2,40]},{5:[2,41]},t(T,[2,22]),{5:[1,157]},{5:[2,87]},{5:[2,88]},{5:[1,158]},{5:[2,89]},{5:[2,90]},t(T,[2,43]),{5:W,28:159,31:G,34:K,36:q,38:J,40:Y},{5:W,28:160,31:G,34:K,36:q,38:J,40:Y},{5:W,28:161,31:G,34:K,36:q,38:J,40:Y},{5:W,28:162,31:G,34:K,36:q,38:J,40:Y},{5:X,40:Z,56:163,57:Q,59:$},{5:X,40:Z,56:164,57:Q,59:$},t(T,[2,23]),t(T,[2,24]),t(T,[2,25]),t(T,[2,26]),t(T,[2,44]),t(T,[2,45])],defaultActions:{8:[2,2],12:[2,1],41:[2,3],42:[2,8],43:[2,9],44:[2,10],45:[2,11],46:[2,12],47:[2,13],48:[2,14],49:[2,15],50:[2,16],134:[2,83],135:[2,84],137:[2,35],138:[2,36],139:[2,37],141:[2,38],142:[2,39],143:[2,40],144:[2,41],147:[2,87],148:[2,88],150:[2,89],151:[2,90]},parseError:e(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:e(function(t){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(t,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;typeof g.yy.parseError==`function`?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}e(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}e(x,`lex`);for(var S,C,w,T,E,D={},O,k,ee,A;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var te=``;for(O in A=[],s[w])this.terminals_[O]&&O>f&&A.push(`'`+this.terminals_[O]+`'`);te=h.showPosition?`Parse error on line `+(l+1)+`:
1
+ import{n as e,t}from"./DsF7k-Jl.js";import{m as n}from"./D3R1Zijl.js";import{H as r,K as i,U as a,a as o,b as s,v as c,w as l,x as u,y as d}from"./CU1VY_X6.js";import{g as f}from"./DMee4NNa.js";import"./Cog4lB7j2.js";import"./C8hxcZ_T2.js";import"./CWiCMZki2.js";import"./CQEhpTR82.js";import{t as p}from"./fpD_0ZY_2.js";import{t as m}from"./CH0YauWR2.js";import"./BMAHwzjW2.js";import"./ZE_M8k_X2.js";import"./BXpANlNW2.js";import{r as h,t as g}from"./thKX1sNh2.js";var _=(function(){var t=e(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,3],r=[1,4],i=[1,5],a=[1,6],o=[5,6,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],s=[1,22],c=[2,7],l=[1,26],u=[1,27],d=[1,28],f=[1,29],p=[1,33],m=[1,34],h=[1,35],g=[1,36],_=[1,37],v=[1,38],y=[1,24],b=[1,31],x=[1,32],S=[1,30],C=[1,39],w=[1,40],T=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],E=[1,61],D=[89,90],O=[5,8,9,11,13,21,22,23,24,27,29,41,42,43,44,45,46,54,61,63,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],k=[27,29],ee=[1,70],A=[1,71],te=[1,72],ne=[1,73],re=[1,74],ie=[1,75],ae=[1,76],j=[1,83],M=[1,80],N=[1,84],P=[1,85],F=[1,86],I=[1,87],L=[1,88],R=[1,89],z=[1,90],B=[1,91],V=[1,92],oe=[5,8,9,11,13,21,22,23,24,27,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],H=[63,64],se=[1,101],ce=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,76,77,89,90],U=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],W=[1,110],G=[1,106],K=[1,107],q=[1,108],J=[1,109],Y=[1,111],X=[1,116],Z=[1,117],Q=[1,114],$=[1,115],le={trace:e(function(){},`trace`),yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,direction:17,styleStatement:18,classDefStatement:19,classStatement:20,direction_tb:21,direction_bt:22,direction_rl:23,direction_lr:24,requirementType:25,requirementName:26,STRUCT_START:27,requirementBody:28,STYLE_SEPARATOR:29,idList:30,ID:31,COLONSEP:32,id:33,TEXT:34,text:35,RISK:36,riskLevel:37,VERIFYMTHD:38,verifyType:39,STRUCT_STOP:40,REQUIREMENT:41,FUNCTIONAL_REQUIREMENT:42,INTERFACE_REQUIREMENT:43,PERFORMANCE_REQUIREMENT:44,PHYSICAL_REQUIREMENT:45,DESIGN_CONSTRAINT:46,LOW_RISK:47,MED_RISK:48,HIGH_RISK:49,VERIFY_ANALYSIS:50,VERIFY_DEMONSTRATION:51,VERIFY_INSPECTION:52,VERIFY_TEST:53,ELEMENT:54,elementName:55,elementBody:56,TYPE:57,type:58,DOCREF:59,ref:60,END_ARROW_L:61,relationship:62,LINE:63,END_ARROW_R:64,CONTAINS:65,COPIES:66,DERIVES:67,SATISFIES:68,VERIFIES:69,REFINES:70,TRACES:71,CLASSDEF:72,stylesOpt:73,CLASS:74,ALPHA:75,COMMA:76,STYLE:77,style:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,MINUS:86,LABEL:87,SEMICOLON:88,unqString:89,qString:90,$accept:0,$end:1},terminals_:{2:`error`,5:`NEWLINE`,6:`RD`,8:`EOF`,9:`acc_title`,10:`acc_title_value`,11:`acc_descr`,12:`acc_descr_value`,13:`acc_descr_multiline_value`,21:`direction_tb`,22:`direction_bt`,23:`direction_rl`,24:`direction_lr`,27:`STRUCT_START`,29:`STYLE_SEPARATOR`,31:`ID`,32:`COLONSEP`,34:`TEXT`,36:`RISK`,38:`VERIFYMTHD`,40:`STRUCT_STOP`,41:`REQUIREMENT`,42:`FUNCTIONAL_REQUIREMENT`,43:`INTERFACE_REQUIREMENT`,44:`PERFORMANCE_REQUIREMENT`,45:`PHYSICAL_REQUIREMENT`,46:`DESIGN_CONSTRAINT`,47:`LOW_RISK`,48:`MED_RISK`,49:`HIGH_RISK`,50:`VERIFY_ANALYSIS`,51:`VERIFY_DEMONSTRATION`,52:`VERIFY_INSPECTION`,53:`VERIFY_TEST`,54:`ELEMENT`,57:`TYPE`,59:`DOCREF`,61:`END_ARROW_L`,63:`LINE`,64:`END_ARROW_R`,65:`CONTAINS`,66:`COPIES`,67:`DERIVES`,68:`SATISFIES`,69:`VERIFIES`,70:`REFINES`,71:`TRACES`,72:`CLASSDEF`,74:`CLASS`,75:`ALPHA`,76:`COMMA`,77:`STYLE`,80:`NUM`,81:`COLON`,82:`UNIT`,83:`SPACE`,84:`BRKT`,85:`PCT`,86:`MINUS`,87:`LABEL`,88:`SEMICOLON`,89:`unqString`,90:`qString`},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[17,1],[17,1],[17,1],[17,1],[14,5],[14,7],[28,5],[28,5],[28,5],[28,5],[28,2],[28,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[37,1],[37,1],[37,1],[39,1],[39,1],[39,1],[39,1],[15,5],[15,7],[56,5],[56,5],[56,2],[56,1],[16,5],[16,5],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[19,3],[20,3],[20,3],[30,1],[30,3],[30,1],[30,3],[18,3],[73,1],[73,3],[78,1],[78,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[26,1],[26,1],[33,1],[33,1],[35,1],[35,1],[55,1],[55,1],[58,1],[58,1],[60,1],[60,1]],performAction:e(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 4:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 5:case 6:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 7:this.$=[];break;case 17:r.setDirection(`TB`);break;case 18:r.setDirection(`BT`);break;case 19:r.setDirection(`RL`);break;case 20:r.setDirection(`LR`);break;case 21:r.addRequirement(a[s-3],a[s-4]);break;case 22:r.addRequirement(a[s-5],a[s-6]),r.setClass([a[s-5]],a[s-3]);break;case 23:r.setNewReqId(a[s-2]);break;case 24:r.setNewReqText(a[s-2]);break;case 25:r.setNewReqRisk(a[s-2]);break;case 26:r.setNewReqVerifyMethod(a[s-2]);break;case 29:this.$=r.RequirementType.REQUIREMENT;break;case 30:this.$=r.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 31:this.$=r.RequirementType.INTERFACE_REQUIREMENT;break;case 32:this.$=r.RequirementType.PERFORMANCE_REQUIREMENT;break;case 33:this.$=r.RequirementType.PHYSICAL_REQUIREMENT;break;case 34:this.$=r.RequirementType.DESIGN_CONSTRAINT;break;case 35:this.$=r.RiskLevel.LOW_RISK;break;case 36:this.$=r.RiskLevel.MED_RISK;break;case 37:this.$=r.RiskLevel.HIGH_RISK;break;case 38:this.$=r.VerifyType.VERIFY_ANALYSIS;break;case 39:this.$=r.VerifyType.VERIFY_DEMONSTRATION;break;case 40:this.$=r.VerifyType.VERIFY_INSPECTION;break;case 41:this.$=r.VerifyType.VERIFY_TEST;break;case 42:r.addElement(a[s-3]);break;case 43:r.addElement(a[s-5]),r.setClass([a[s-5]],a[s-3]);break;case 44:r.setNewElementType(a[s-2]);break;case 45:r.setNewElementDocRef(a[s-2]);break;case 48:r.addRelationship(a[s-2],a[s],a[s-4]);break;case 49:r.addRelationship(a[s-2],a[s-4],a[s]);break;case 50:this.$=r.Relationships.CONTAINS;break;case 51:this.$=r.Relationships.COPIES;break;case 52:this.$=r.Relationships.DERIVES;break;case 53:this.$=r.Relationships.SATISFIES;break;case 54:this.$=r.Relationships.VERIFIES;break;case 55:this.$=r.Relationships.REFINES;break;case 56:this.$=r.Relationships.TRACES;break;case 57:this.$=a[s-2],r.defineClass(a[s-1],a[s]);break;case 58:r.setClass(a[s-1],a[s]);break;case 59:r.setClass([a[s-2]],a[s]);break;case 60:case 62:this.$=[a[s]];break;case 61:case 63:this.$=a[s-2].concat([a[s]]);break;case 64:this.$=a[s-2],r.setCssStyle(a[s-1],a[s]);break;case 65:this.$=[a[s]];break;case 66:a[s-2].push(a[s]),this.$=a[s-2];break;case 68:this.$=a[s-1]+a[s];break}},`anonymous`),table:[{3:1,4:2,6:n,9:r,11:i,13:a},{1:[3]},{3:8,4:2,5:[1,7],6:n,9:r,11:i,13:a},{5:[1,9]},{10:[1,10]},{12:[1,11]},t(o,[2,6]),{3:12,4:2,6:n,9:r,11:i,13:a},{1:[2,2]},{4:17,5:s,7:13,8:c,9:r,11:i,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},t(o,[2,4]),t(o,[2,5]),{1:[2,1]},{8:[1,41]},{4:17,5:s,7:42,8:c,9:r,11:i,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{4:17,5:s,7:43,8:c,9:r,11:i,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{4:17,5:s,7:44,8:c,9:r,11:i,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{4:17,5:s,7:45,8:c,9:r,11:i,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{4:17,5:s,7:46,8:c,9:r,11:i,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{4:17,5:s,7:47,8:c,9:r,11:i,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{4:17,5:s,7:48,8:c,9:r,11:i,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{4:17,5:s,7:49,8:c,9:r,11:i,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{4:17,5:s,7:50,8:c,9:r,11:i,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{26:51,89:[1,52],90:[1,53]},{55:54,89:[1,55],90:[1,56]},{29:[1,59],61:[1,57],63:[1,58]},t(T,[2,17]),t(T,[2,18]),t(T,[2,19]),t(T,[2,20]),{30:60,33:62,75:E,89:C,90:w},{30:63,33:62,75:E,89:C,90:w},{30:64,33:62,75:E,89:C,90:w},t(D,[2,29]),t(D,[2,30]),t(D,[2,31]),t(D,[2,32]),t(D,[2,33]),t(D,[2,34]),t(O,[2,81]),t(O,[2,82]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{8:[2,13]},{8:[2,14]},{8:[2,15]},{8:[2,16]},{27:[1,65],29:[1,66]},t(k,[2,79]),t(k,[2,80]),{27:[1,67],29:[1,68]},t(k,[2,85]),t(k,[2,86]),{62:69,65:ee,66:A,67:te,68:ne,69:re,70:ie,71:ae},{62:77,65:ee,66:A,67:te,68:ne,69:re,70:ie,71:ae},{30:78,33:62,75:E,89:C,90:w},{73:79,75:j,76:M,78:81,79:82,80:N,81:P,82:F,83:I,84:L,85:R,86:z,87:B,88:V},t(oe,[2,60]),t(oe,[2,62]),{73:93,75:j,76:M,78:81,79:82,80:N,81:P,82:F,83:I,84:L,85:R,86:z,87:B,88:V},{30:94,33:62,75:E,76:M,89:C,90:w},{5:[1,95]},{30:96,33:62,75:E,89:C,90:w},{5:[1,97]},{30:98,33:62,75:E,89:C,90:w},{63:[1,99]},t(H,[2,50]),t(H,[2,51]),t(H,[2,52]),t(H,[2,53]),t(H,[2,54]),t(H,[2,55]),t(H,[2,56]),{64:[1,100]},t(T,[2,59],{76:M}),t(T,[2,64],{76:se}),{33:103,75:[1,102],89:C,90:w},t(ce,[2,65],{79:104,75:j,80:N,81:P,82:F,83:I,84:L,85:R,86:z,87:B,88:V}),t(U,[2,67]),t(U,[2,69]),t(U,[2,70]),t(U,[2,71]),t(U,[2,72]),t(U,[2,73]),t(U,[2,74]),t(U,[2,75]),t(U,[2,76]),t(U,[2,77]),t(U,[2,78]),t(T,[2,57],{76:se}),t(T,[2,58],{76:M}),{5:W,28:105,31:G,34:K,36:q,38:J,40:Y},{27:[1,112],76:M},{5:X,40:Z,56:113,57:Q,59:$},{27:[1,118],76:M},{33:119,89:C,90:w},{33:120,89:C,90:w},{75:j,78:121,79:82,80:N,81:P,82:F,83:I,84:L,85:R,86:z,87:B,88:V},t(oe,[2,61]),t(oe,[2,63]),t(U,[2,68]),t(T,[2,21]),{32:[1,122]},{32:[1,123]},{32:[1,124]},{32:[1,125]},{5:W,28:126,31:G,34:K,36:q,38:J,40:Y},t(T,[2,28]),{5:[1,127]},t(T,[2,42]),{32:[1,128]},{32:[1,129]},{5:X,40:Z,56:130,57:Q,59:$},t(T,[2,47]),{5:[1,131]},t(T,[2,48]),t(T,[2,49]),t(ce,[2,66],{79:104,75:j,80:N,81:P,82:F,83:I,84:L,85:R,86:z,87:B,88:V}),{33:132,89:C,90:w},{35:133,89:[1,134],90:[1,135]},{37:136,47:[1,137],48:[1,138],49:[1,139]},{39:140,50:[1,141],51:[1,142],52:[1,143],53:[1,144]},t(T,[2,27]),{5:W,28:145,31:G,34:K,36:q,38:J,40:Y},{58:146,89:[1,147],90:[1,148]},{60:149,89:[1,150],90:[1,151]},t(T,[2,46]),{5:X,40:Z,56:152,57:Q,59:$},{5:[1,153]},{5:[1,154]},{5:[2,83]},{5:[2,84]},{5:[1,155]},{5:[2,35]},{5:[2,36]},{5:[2,37]},{5:[1,156]},{5:[2,38]},{5:[2,39]},{5:[2,40]},{5:[2,41]},t(T,[2,22]),{5:[1,157]},{5:[2,87]},{5:[2,88]},{5:[1,158]},{5:[2,89]},{5:[2,90]},t(T,[2,43]),{5:W,28:159,31:G,34:K,36:q,38:J,40:Y},{5:W,28:160,31:G,34:K,36:q,38:J,40:Y},{5:W,28:161,31:G,34:K,36:q,38:J,40:Y},{5:W,28:162,31:G,34:K,36:q,38:J,40:Y},{5:X,40:Z,56:163,57:Q,59:$},{5:X,40:Z,56:164,57:Q,59:$},t(T,[2,23]),t(T,[2,24]),t(T,[2,25]),t(T,[2,26]),t(T,[2,44]),t(T,[2,45])],defaultActions:{8:[2,2],12:[2,1],41:[2,3],42:[2,8],43:[2,9],44:[2,10],45:[2,11],46:[2,12],47:[2,13],48:[2,14],49:[2,15],50:[2,16],134:[2,83],135:[2,84],137:[2,35],138:[2,36],139:[2,37],141:[2,38],142:[2,39],143:[2,40],144:[2,41],147:[2,87],148:[2,88],150:[2,89],151:[2,90]},parseError:e(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:e(function(t){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(t,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;typeof g.yy.parseError==`function`?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}e(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}e(x,`lex`);for(var S,C,w,T,E,D={},O,k,ee,A;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var te=``;for(O in A=[],s[w])this.terminals_[O]&&O>f&&A.push(`'`+this.terminals_[O]+`'`);te=h.showPosition?`Parse error on line `+(l+1)+`:
2
2
  `+h.showPosition()+`
3
3
  Expecting `+A.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(te,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:A})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),ee=s[r[r.length-2]][r[r.length-1]],r.push(ee);break;case 3:return!0}}return!0},`parse`)};le.lexer=(function(){return{EOF:1,parseError:e(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:e(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:e(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:e(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:e(function(){return this._more=!0,this},`more`),reject:e(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:e(function(e){this.unput(this.match.slice(e))},`less`),pastInput:e(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:e(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:e(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
@@ -1 +1 @@
1
- import{$ as e,E as t,F as n,K as r,N as i,R as a,V as o,Z as s,a as c,d as l,dt as u,gt as d,it as f,j as p,nt as m,q as h,s as g,tt as _,ut as v,y,z as b}from"./CYsLq4VE.js";import"./xihTtKlq.js";import{U as x}from"./PGh5ehlS.js";var S=n(`<div role="menu"><!></div>`),C=n(`<div class="relative inline-flex"><button type="button" aria-haspopup="menu"><svg viewBox="0 0 24 24" fill="currentColor" class="h-4 w-4" aria-hidden="true"><circle cx="12" cy="5" r="1.7"></circle><circle cx="12" cy="12" r="1.7"></circle><circle cx="12" cy="19" r="1.7"></circle></svg></button> <!></div>`);function w(n,a){u(a,!0);let x=c(a,`label`,3,`More actions`),w=c(a,`align`,3,`right`),T=c(a,`placement`,3,`down`),E=c(a,`triggerClass`,3,``),D=m(!1),O=m(null),k=()=>{_(D,!1)};h(()=>{if(!o(D))return;let e=e=>{o(O)&&!o(O).contains(e.target)&&_(D,!1)},t=e=>{e.key===`Escape`&&_(D,!1)};return window.addEventListener(`mousedown`,e),window.addEventListener(`keydown`,t),()=>{window.removeEventListener(`mousedown`,e),window.removeEventListener(`keydown`,t)}});let A=f(()=>`${T()===`up`?`bottom-full mb-1`:`top-full mt-1`} ${w()===`right`?`right-0`:`left-0`}`);var j=C(),M=s(j),N=e(M,2),P=e=>{var n=S();t(s(n),()=>a.children,()=>k),d(n),r(()=>y(n,1,`absolute z-50 min-w-40 overflow-hidden rounded-lg border border-slate-200 bg-white py-1 shadow-xl shadow-slate-950/10 ${o(A)??``}`)),i(e,n)};p(N,e=>{o(D)&&e(P)}),d(j),g(j,e=>_(O,e),()=>o(O)),r(()=>{l(M,`aria-expanded`,o(D)),l(M,`aria-label`,x()),l(M,`title`,x()),y(M,1,`grid h-8 w-8 place-items-center rounded-md text-slate-500 transition hover:bg-slate-100 hover:text-slate-800 ${E()??``}`)}),b(`click`,M,()=>_(D,!o(D))),i(n,j),v()}a([`click`]);var T=n(`<button type="button" role="menuitem"><!></button>`);function E(e,n){let a=c(n,`danger`,3,!1),o=c(n,`disabled`,3,!1);var l=T();t(s(l),()=>n.children),d(l),r(()=>{l.disabled=o(),y(l,1,`flex w-full items-center gap-2 px-3 py-1.5 text-left text-sm transition disabled:cursor-not-allowed disabled:opacity-50 ${a()?`text-red-600 hover:bg-red-50`:`text-slate-700 hover:bg-slate-50`}`)}),b(`click`,l,function(...e){n.onclick?.apply(this,e)}),i(e,l)}a([`click`]);var D=6e5,O=16,k=12,A=()=>{if(typeof crypto>`u`||!crypto.subtle)throw Error(`WebCrypto not available. Use a modern browser served over https or localhost.`);return crypto.subtle},j=e=>{let t=``;for(let n of e)t+=String.fromCharCode(n);return btoa(t)},M=e=>{let t=atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;e+=1)n[e]=t.charCodeAt(e);return n},N=async(e,t)=>{let n=new TextEncoder,r=await A().importKey(`raw`,n.encode(e),{name:`PBKDF2`},!1,[`deriveKey`]);return A().deriveKey({name:`PBKDF2`,hash:`SHA-256`,salt:t,iterations:D},r,{name:`AES-GCM`,length:256},!1,[`encrypt`,`decrypt`])},P=class extends Error{constructor(){super(`Passphrase must be at least 8 characters.`),this.name=`WeakPassphraseError`}},F=class extends Error{constructor(){super(`Wrong passphrase, or the .unspa file is corrupted.`),this.name=`WrongPassphraseError`}},I=class extends Error{constructor(e){super(`Not a valid Unspaghettit bundle: ${e}`),this.name=`MalformedEnvelopeError`}},L=async(e,t)=>{if(t.length<8)throw new P;let n=crypto.getRandomValues(new Uint8Array(O)),r=crypto.getRandomValues(new Uint8Array(k)),i=await N(t,n),a=await A().encrypt({name:`AES-GCM`,iv:r},i,new TextEncoder().encode(e));return{format:`unspaghettit-encrypted-bundle`,version:1,algorithm:`AES-GCM`,kdf:`PBKDF2-SHA256`,iterations:D,salt:j(n),iv:j(r),ciphertext:j(new Uint8Array(a))}},R=e=>{if(!e||typeof e!=`object`)throw new I(`not an object`);let t=e;if(t.format!==`unspaghettit-encrypted-bundle`)throw new I(`wrong format tag`);if(t.version!==1)throw new I(`unsupported version ${t.version}`);if(t.algorithm!==`AES-GCM`)throw new I(`unsupported algorithm ${t.algorithm}`);if(t.kdf!==`PBKDF2-SHA256`)throw new I(`unsupported kdf ${t.kdf}`);if(typeof t.iterations!=`number`||t.iterations<1e5)throw new I(`iterations missing or too low`);if(typeof t.salt!=`string`||typeof t.iv!=`string`||typeof t.ciphertext!=`string`)throw new I(`salt / iv / ciphertext must be base64 strings`);return t},z=async(e,t)=>{let n=R(e),r=M(n.salt),i=M(n.iv),a=M(n.ciphertext),o=await N(t,r);try{let e=await A().decrypt({name:`AES-GCM`,iv:i},o,a);return new TextDecoder().decode(e)}catch{throw new F}},B=e=>{let t=e.toLowerCase().replace(/[^a-z0-9]+/g,`-`).replace(/^-+|-+$/g,``).slice(0,64);return t.length>0?t:`project`},V=async(e,t)=>{let n=await x(`/api/projects/${encodeURIComponent(String(e))}/bundle`);if(!n.ok)throw Error(`Bundle fetch failed (${n.status}): ${await n.text().catch(()=>``)}`);let r=await n.json();return{envelope:await L(JSON.stringify(r),t),projectName:r.project.name}},H=(e,t)=>{let n=new Date().toISOString().slice(0,10).replace(/-/g,``),r=`${B(t)}-${n}.unspa`,i=new Blob([JSON.stringify(e,null,2)],{type:`application/octet-stream`}),a=URL.createObjectURL(i),o=document.createElement(`a`);o.href=a,o.download=r,document.body.appendChild(o),o.click(),document.body.removeChild(o),setTimeout(()=>URL.revokeObjectURL(a),1e3)},U=async e=>{let t;try{t=await e.text()}catch{throw new I(`could not read ${e.name}`)}let n;try{n=JSON.parse(t)}catch{throw new I(`file is not valid JSON`)}if(!n||typeof n!=`object`)throw new I(`file is not a JSON object`);return n},W=async(e,t)=>{let n=await z(e,t),r;try{r=JSON.parse(n)}catch{throw new I(`decrypted payload is not valid JSON`)}let i=await x(`/api/projects/import`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(r)});if(!i.ok)throw Error(`Import failed (${i.status}): ${await i.text().catch(()=>``)}`);return await i.json()};export{I as a,E as c,U as i,w as l,V as n,P as o,W as r,F as s,H as t};
1
+ import{$ as e,E as t,F as n,K as r,N as i,R as a,V as o,Z as s,a as c,d as l,dt as u,gt as d,it as f,j as p,nt as m,q as h,s as g,tt as _,ut as v,y,z as b}from"./CYsLq4VE.js";import"./xihTtKlq.js";import{U as x}from"./Dax-dZn3.js";var S=n(`<div role="menu"><!></div>`),C=n(`<div class="relative inline-flex"><button type="button" aria-haspopup="menu"><svg viewBox="0 0 24 24" fill="currentColor" class="h-4 w-4" aria-hidden="true"><circle cx="12" cy="5" r="1.7"></circle><circle cx="12" cy="12" r="1.7"></circle><circle cx="12" cy="19" r="1.7"></circle></svg></button> <!></div>`);function w(n,a){u(a,!0);let x=c(a,`label`,3,`More actions`),w=c(a,`align`,3,`right`),T=c(a,`placement`,3,`down`),E=c(a,`triggerClass`,3,``),D=m(!1),O=m(null),k=()=>{_(D,!1)};h(()=>{if(!o(D))return;let e=e=>{o(O)&&!o(O).contains(e.target)&&_(D,!1)},t=e=>{e.key===`Escape`&&_(D,!1)};return window.addEventListener(`mousedown`,e),window.addEventListener(`keydown`,t),()=>{window.removeEventListener(`mousedown`,e),window.removeEventListener(`keydown`,t)}});let A=f(()=>`${T()===`up`?`bottom-full mb-1`:`top-full mt-1`} ${w()===`right`?`right-0`:`left-0`}`);var j=C(),M=s(j),N=e(M,2),P=e=>{var n=S();t(s(n),()=>a.children,()=>k),d(n),r(()=>y(n,1,`absolute z-50 min-w-40 overflow-hidden rounded-lg border border-slate-200 bg-white py-1 shadow-xl shadow-slate-950/10 ${o(A)??``}`)),i(e,n)};p(N,e=>{o(D)&&e(P)}),d(j),g(j,e=>_(O,e),()=>o(O)),r(()=>{l(M,`aria-expanded`,o(D)),l(M,`aria-label`,x()),l(M,`title`,x()),y(M,1,`grid h-8 w-8 place-items-center rounded-md text-slate-500 transition hover:bg-slate-100 hover:text-slate-800 ${E()??``}`)}),b(`click`,M,()=>_(D,!o(D))),i(n,j),v()}a([`click`]);var T=n(`<button type="button" role="menuitem"><!></button>`);function E(e,n){let a=c(n,`danger`,3,!1),o=c(n,`disabled`,3,!1);var l=T();t(s(l),()=>n.children),d(l),r(()=>{l.disabled=o(),y(l,1,`flex w-full items-center gap-2 px-3 py-1.5 text-left text-sm transition disabled:cursor-not-allowed disabled:opacity-50 ${a()?`text-red-600 hover:bg-red-50`:`text-slate-700 hover:bg-slate-50`}`)}),b(`click`,l,function(...e){n.onclick?.apply(this,e)}),i(e,l)}a([`click`]);var D=6e5,O=16,k=12,A=()=>{if(typeof crypto>`u`||!crypto.subtle)throw Error(`WebCrypto not available. Use a modern browser served over https or localhost.`);return crypto.subtle},j=e=>{let t=``;for(let n of e)t+=String.fromCharCode(n);return btoa(t)},M=e=>{let t=atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;e+=1)n[e]=t.charCodeAt(e);return n},N=async(e,t)=>{let n=new TextEncoder,r=await A().importKey(`raw`,n.encode(e),{name:`PBKDF2`},!1,[`deriveKey`]);return A().deriveKey({name:`PBKDF2`,hash:`SHA-256`,salt:t,iterations:D},r,{name:`AES-GCM`,length:256},!1,[`encrypt`,`decrypt`])},P=class extends Error{constructor(){super(`Passphrase must be at least 8 characters.`),this.name=`WeakPassphraseError`}},F=class extends Error{constructor(){super(`Wrong passphrase, or the .unspa file is corrupted.`),this.name=`WrongPassphraseError`}},I=class extends Error{constructor(e){super(`Not a valid Unspaghettit bundle: ${e}`),this.name=`MalformedEnvelopeError`}},L=async(e,t)=>{if(t.length<8)throw new P;let n=crypto.getRandomValues(new Uint8Array(O)),r=crypto.getRandomValues(new Uint8Array(k)),i=await N(t,n),a=await A().encrypt({name:`AES-GCM`,iv:r},i,new TextEncoder().encode(e));return{format:`unspaghettit-encrypted-bundle`,version:1,algorithm:`AES-GCM`,kdf:`PBKDF2-SHA256`,iterations:D,salt:j(n),iv:j(r),ciphertext:j(new Uint8Array(a))}},R=e=>{if(!e||typeof e!=`object`)throw new I(`not an object`);let t=e;if(t.format!==`unspaghettit-encrypted-bundle`)throw new I(`wrong format tag`);if(t.version!==1)throw new I(`unsupported version ${t.version}`);if(t.algorithm!==`AES-GCM`)throw new I(`unsupported algorithm ${t.algorithm}`);if(t.kdf!==`PBKDF2-SHA256`)throw new I(`unsupported kdf ${t.kdf}`);if(typeof t.iterations!=`number`||t.iterations<1e5)throw new I(`iterations missing or too low`);if(typeof t.salt!=`string`||typeof t.iv!=`string`||typeof t.ciphertext!=`string`)throw new I(`salt / iv / ciphertext must be base64 strings`);return t},z=async(e,t)=>{let n=R(e),r=M(n.salt),i=M(n.iv),a=M(n.ciphertext),o=await N(t,r);try{let e=await A().decrypt({name:`AES-GCM`,iv:i},o,a);return new TextDecoder().decode(e)}catch{throw new F}},B=e=>{let t=e.toLowerCase().replace(/[^a-z0-9]+/g,`-`).replace(/^-+|-+$/g,``).slice(0,64);return t.length>0?t:`project`},V=async(e,t)=>{let n=await x(`/api/projects/${encodeURIComponent(String(e))}/bundle`);if(!n.ok)throw Error(`Bundle fetch failed (${n.status}): ${await n.text().catch(()=>``)}`);let r=await n.json();return{envelope:await L(JSON.stringify(r),t),projectName:r.project.name}},H=(e,t)=>{let n=new Date().toISOString().slice(0,10).replace(/-/g,``),r=`${B(t)}-${n}.unspa`,i=new Blob([JSON.stringify(e,null,2)],{type:`application/octet-stream`}),a=URL.createObjectURL(i),o=document.createElement(`a`);o.href=a,o.download=r,document.body.appendChild(o),o.click(),document.body.removeChild(o),setTimeout(()=>URL.revokeObjectURL(a),1e3)},U=async e=>{let t;try{t=await e.text()}catch{throw new I(`could not read ${e.name}`)}let n;try{n=JSON.parse(t)}catch{throw new I(`file is not valid JSON`)}if(!n||typeof n!=`object`)throw new I(`file is not a JSON object`);return n},W=async(e,t)=>{let n=await z(e,t),r;try{r=JSON.parse(n)}catch{throw new I(`decrypted payload is not valid JSON`)}let i=await x(`/api/projects/import`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(r)});if(!i.ok)throw Error(`Import failed (${i.status}): ${await i.text().catch(()=>``)}`);return await i.json()};export{I as a,E as c,U as i,w as l,V as n,P as o,W as r,F as s,H as t};
@@ -1 +1 @@
1
- import{H as e,U as t,V as n,W as r,ct as i,nt as a,r as o,t as s,tt as c}from"./CYsLq4VE.js";import{i as l,n as u,r as d,t as f}from"./BuFlayix.js";new URL(`sveltekit-internal://`);function p(e,t){return e===`/`||t===`ignore`?e:t===`never`?e.endsWith(`/`)?e.slice(0,-1):e:t===`always`&&!e.endsWith(`/`)?e+`/`:e}function ee(e){return e.split(`%25`).map(decodeURI).join(`%25`)}function te(e){for(let t in e)e[t]=decodeURIComponent(e[t]);return e}function m({href:e}){return e.split(`#`)[0]}function h(e,t,n,r=!1){let i=new URL(e);Object.defineProperty(i,"searchParams",{value:new Proxy(i.searchParams,{get(e,r){if(r===`get`||r===`getAll`||r===`has`)return(t,...i)=>(n(t),e[r](t,...i));t();let i=Reflect.get(e,r);return typeof i==`function`?i.bind(e):i}}),enumerable:!0,configurable:!0});let a=[`href`,`pathname`,`search`,`toString`,`toJSON`];r&&a.push(`hash`);for(let n of a)Object.defineProperty(i,n,{get(){return t(),e[n]},enumerable:!0,configurable:!0});return i}function g(){}function ne(...e){let t=5381;for(let n of e)if(typeof n==`string`){let e=n.length;for(;e;)t=t*33^n.charCodeAt(--e)}else if(ArrayBuffer.isView(n)){let e=new Uint8Array(n.buffer,n.byteOffset,n.byteLength),r=e.length;for(;r;)t=t*33^e[--r]}else throw TypeError(`value must be a string or TypedArray`);return(t>>>0).toString(36)}var re=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||`GET`)!==`GET`&&_.delete(oe(e)),re(e,t));var _=new Map;function ie(e,t){let n=oe(e,t),r=document.querySelector(n);if(r?.textContent){r.remove();let{body:e,...t}=JSON.parse(r.textContent);r.getAttribute(`data-b64`)!==null&&(e=f(e));let i=r.getAttribute(`data-ttl`);return i&&_.set(n,{body:e,init:t,ttl:1e3*Number(i)}),Promise.resolve(new Response(e,t))}return window.fetch(e,t)}function ae(e,t,n){if(_.size>0){let t=oe(e,n),r=_.get(t);if(r){if(performance.now()<r.ttl&&[`default`,`force-cache`,`only-if-cached`,void 0].includes(n?.cache))return new Response(r.body,r.init);_.delete(t)}}return window.fetch(t,n)}function oe(e,t){let n=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(t?.headers||t?.body){let e=[];t.headers&&e.push([...new Headers(t.headers)].join(`,`)),t.body&&(typeof t.body==`string`||ArrayBuffer.isView(t.body))&&e.push(t.body),n+=`[data-hash="${ne(...e)}"]`}return n}var v=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/,se=/^\/\((?:[^)]+)\)$/;function ce(e){let t=[];return{pattern:e===`/`||se.test(e)?/^\/$/:RegExp(`^${ue(e).map(e=>{let n=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(e);if(n)return t.push({name:n[1],matcher:n[2],optional:!1,rest:!0,chained:!0}),`(?:/([^]*))?`;let r=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(e);if(r)return t.push({name:r[1],matcher:r[2],optional:!0,rest:!1,chained:!0}),`(?:/([^/]+))?`;if(!e)return;let i=e.split(/\[(.+?)\](?!\])/);return`/`+i.map((e,n)=>{if(n%2){if(e.startsWith(`x+`))return fe(String.fromCharCode(parseInt(e.slice(2),16)));if(e.startsWith(`u+`))return fe(String.fromCharCode(...e.slice(2).split(`-`).map(e=>parseInt(e,16))));let[,r,a,o,s]=v.exec(e);return t.push({name:o,matcher:s,optional:!!r,rest:!!a,chained:a?n===1&&i[0]===``:!1}),a?`([^]*?)`:r?`([^/]*)?`:`([^/]+?)`}return fe(e)}).join(``)}).join(``)}/?$`),params:t}}function le(e){return e!==``&&!/^\([^)]+\)$/.test(e)}function ue(e){return e.slice(1).split(`/`).filter(le)}function de(e,t,n){let r={},i=e.slice(1),a=i.filter(e=>e!==void 0),o=0;for(let e=0;e<t.length;e+=1){let s=t[e],c=i[e-o];if(s.chained&&s.rest&&o&&(c=i.slice(e-o,e+1).filter(e=>e).join(`/`),o=0),c===void 0)if(s.rest)c=``;else continue;if(!s.matcher||n[s.matcher](c)){r[s.name]=c;let n=t[e+1],l=i[e+1];n&&!n.rest&&n.optional&&l&&s.chained&&(o=0),!n&&!l&&Object.keys(r).length===a.length&&(o=0);continue}if(s.optional&&s.chained){o++;continue}return}if(!o)return r}function fe(e){return e.normalize().replace(/[[\]]/g,`\\$&`).replace(/%/g,`%25`).replace(/\//g,`%2[Ff]`).replace(/\?/g,`%3[Ff]`).replace(/#/g,`%23`).replace(/[.*+?^${}()|\\]/g,`\\$&`)}function pe({nodes:e,server_loads:t,dictionary:n,matchers:r}){let i=new Set(t);return Object.entries(n).map(([t,[n,i,s]])=>{let{pattern:c,params:l}=ce(t),u={id:t,exec:e=>{let t=c.exec(e);if(t)return de(t,l,r)},errors:[1,...s||[]].map(t=>e[t]),layouts:[0,...i||[]].map(o),leaf:a(n)};return u.errors.length=u.layouts.length=Math.max(u.errors.length,u.layouts.length),u});function a(t){let n=t<0;return n&&(t=~t),[n,e[t]]}function o(t){return t===void 0?t:[i.has(t),e[t]]}}function me(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function he(e,t,n=JSON.stringify){let r=n(t);try{sessionStorage[e]=r}catch{}}var y=globalThis.__sveltekit_12xui7v?.base??``,ge=globalThis.__sveltekit_12xui7v?.assets??y??``,_e=`1785535235570`,ve=`sveltekit:snapshot`,ye=`sveltekit:scroll`,be=`sveltekit:states`,xe=`sveltekit:pageurl`,b=`sveltekit:history`,x=`sveltekit:navigation`,S={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},C=location.origin;function w(e){if(e instanceof URL)return e;let t=document.baseURI;if(!t){let e=document.getElementsByTagName(`base`);t=e.length?e[0].href:document.URL}return new URL(e,t)}function T(){return{x:pageXOffset,y:pageYOffset}}function E(e,t){return e.getAttribute(`data-sveltekit-${t}`)}var Se={...S,"":S.hover};function Ce(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function we(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()===`A`&&e.hasAttribute(`href`))return e;e=Ce(e)}}function Te(e,t,n){let r;try{if(r=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI),n&&r.hash.match(/^#[^/]/)){let e=location.hash.split(`#`)[1]||`/`;r.hash=`#${e}${r.hash}`}}catch{}let i=e instanceof SVGAElement?e.target.baseVal:e.target,a=!r||!!i||Ae(r,t,n)||(e.getAttribute(`rel`)||``).split(/\s+/).includes(`external`),o=r?.origin===C&&e.hasAttribute(`download`);return{url:r,external:a,target:i,download:o}}function Ee(e){let t=null,n=null,r=null,i=null,a=null,o=null,s=e;for(;s&&s!==document.documentElement;)r===null&&(r=E(s,`preload-code`)),i===null&&(i=E(s,`preload-data`)),t===null&&(t=E(s,`keepfocus`)),n===null&&(n=E(s,`noscroll`)),a===null&&(a=E(s,`reload`)),o===null&&(o=E(s,`replacestate`)),s=Ce(s);function c(e){switch(e){case``:case`true`:return!0;case`off`:case`false`:return!1;default:return}}return{preload_code:Se[r??`off`],preload_data:Se[i??`off`],keepfocus:c(t),noscroll:c(n),reload:c(a),replace_state:c(o)}}function De(e){let t=i(e),n=!0;function r(){n=!0,t.update(e=>e)}function a(e){n=!1,t.set(e)}function o(e){let r;return t.subscribe(t=>{(r===void 0||n&&t!==r)&&e(r=t)})}return{notify:r,set:a,subscribe:o}}var Oe={v:g};function ke(){let{set:e,subscribe:t}=i(!1);async function n(){clearTimeout(void 0);try{let t=await fetch(`${ge}/_app/version.json`,{headers:{pragma:`no-cache`,"cache-control":`no-cache`}});if(!t.ok)return!1;let n=(await t.json()).version!==_e;return n&&(e(!0),Oe.v(),clearTimeout(void 0)),n}catch{return!1}}return{subscribe:t,check:n}}function Ae(e,t,n){return e.origin!==C||!e.pathname.startsWith(t)?!0:n?e.pathname!==location.pathname:!1}function je(e){}Uint8Array.fromBase64,typeof process==`object`&&process.versions?.node;var Me=new Set([`load`,`prerender`,`csr`,`ssr`,`trailingSlash`,`config`]);new Set([...Me,`entries`]);var Ne=new Set([...Me]);new Set([...Ne,`actions`,`entries`]),new Set([`GET`,`POST`,`PATCH`,`PUT`,`DELETE`,`OPTIONS`,`HEAD`,`fallback`,`prerender`,`trailingSlash`,`config`,`entries`]);function Pe(e){return e.filter(e=>e!=null)}function D(e,t){return e+`/`+t}function Fe(e){return e instanceof u||e instanceof l?e.status:500}function Ie(e){return e instanceof l?e.text:`Internal Error`}var O,k,A,Le=o.toString().includes(`$$`)||/function \w+\(\) \{\}/.test(o.toString()),Re=`a:`;Le?(O={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL(Re)},k={current:null},A={current:!1}):(O=new class{#e=a({});get data(){return n(this.#e)}set data(e){c(this.#e,e)}#t=a(null);get form(){return n(this.#t)}set form(e){c(this.#t,e)}#n=a(null);get error(){return n(this.#n)}set error(e){c(this.#n,e)}#r=a({});get params(){return n(this.#r)}set params(e){c(this.#r,e)}#i=a({id:null});get route(){return n(this.#i)}set route(e){c(this.#i,e)}#a=a({});get state(){return n(this.#a)}set state(e){c(this.#a,e)}#o=a(-1);get status(){return n(this.#o)}set status(e){c(this.#o,e)}#s=a(new URL(Re));get url(){return n(this.#s)}set url(e){c(this.#s,e)}},k=new class{#e=a(null);get current(){return n(this.#e)}set current(e){c(this.#e,e)}},A=new class{#e=a(!1);get current(){return n(this.#e)}set current(e){c(this.#e,e)}},Oe.v=()=>A.current=!0);function ze(e){Object.assign(O,e)}var Be={spanContext(){return Ve},setAttribute(){return this},setAttributes(){return this},addEvent(){return this},setStatus(){return this},updateName(){return this},end(){return this},isRecording(){return!1},recordException(){return this},addLink(){return this},addLinks(){return this}},Ve={traceId:``,spanId:``,traceFlags:0},{onMount:He,tick:Ue}=s,We=r??(e=>e()),Ge=new Set([`icon`,`shortcut icon`,`apple-touch-icon`]),j=null,M=me(`sveltekit:scroll`)??{},N=me(`sveltekit:snapshot`)??{},P={url:De({}),page:De({}),navigating:i(null),updated:ke()};function Ke(e){M[e]=T()}function qe(e,t){let n=e+1;for(;M[n];)delete M[n],n+=1;for(n=t+1;N[n];)delete N[n],n+=1}function F(e,t=!1){return t?location.replace(e.href):location.href=e.href,new Promise(g)}async function Je(){if(`serviceWorker`in navigator){let e=await navigator.serviceWorker.getRegistration(y||`/`);e&&await e.update()}}var Ye,Xe,I,L,Ze,R,Qe={},$e={},z=[],B=[],V=null;function H(){V?.fork?.then(e=>e?.discard()),V=null,Q={element:void 0,href:void 0}}var U=new Map,et=new Set,tt=new Set,W=new Set,G={branch:[],error:null,url:null,nav:null},nt=!1,rt=!1,it=!0,K=!1,q=!1,at=!1,ot=!1,st,J,Y,X,ct=new Set,lt=new Map,ut=new Map;async function dt(e,t,n){if(globalThis.__sveltekit_12xui7v.data){let{q:e={},p:t={},l:n={},f:r={}}=globalThis.__sveltekit_12xui7v.data;for(let t in e)Qe[t]=e[t];for(let e in n)Qe[e]=n[e];for(let e in r)Qe[e]=r[e];for(let e in t)$e[e]=t[e]}document.URL!==location.href&&(location.href=location.href),R=e,await e.hooks.init?.(),Ye=pe(e),L=document.documentElement,Ze=t,Xe=e.nodes[0],I=e.nodes[1],Xe(),I(),J=history.state?.[b],Y=history.state?.[x],J||(J=Y=Date.now(),history.replaceState({...history.state,[b]:J,[x]:Y},``));let r=M[J];function i(){r&&(history.scrollRestoration=`manual`,scrollTo(r.x,r.y))}n?(i(),await Wt(Ze,n)):(await Z({type:`enter`,url:w(R.hash?Xt(new URL(location.href)):location.href),replace_state:!0}),i()),Ut()}function ft(){z.length=0,ot=!1}function pt(e){B.some(e=>e?.snapshot)&&(N[e]=B.map(e=>e?.snapshot?.capture()))}function mt(e){N[e]?.forEach((e,t)=>{B[t]?.snapshot?.restore(e)})}function ht(){Ke(J),he(ye,M),pt(Y),he(ve,N)}async function gt(e,n,r,i){let a,o;n.invalidateAll&&H(),await Z({type:`goto`,url:w(e),keepfocus:n.keepFocus,noscroll:n.noScroll,replace_state:n.replaceState,state:n.state,redirect_count:r,nav_token:i,accept:()=>{if(n.invalidateAll){ot=!0,a=new Set;for(let[e,t]of lt)for(let[n,r]of t)r.resource?.reset(),a.add(D(e,n));o=new Set;for(let[e,t]of ut)for(let n of t.keys())o.add(D(e,n))}n.invalidate&&n.invalidate.forEach(Vt)}}),n.invalidateAll&&t().then(t).then(()=>{for(let[e,t]of lt)for(let[n,{resource:r}]of t)a?.has(D(e,n))&&r.start();for(let[e,t]of ut)for(let[n,{resource:r}]of t)o?.has(D(e,n))&&r.reconnect()})}async function _t(e){if(e.id!==V?.id){H();let t={};ct.add(t),V={id:e.id,token:t,promise:Dt({...e,preload:t}).then(e=>(ct.delete(t),e.type===`loaded`&&e.state.error&&H(),e)),fork:null}}return V.promise}async function vt(e){let t=(await jt(e,!1))?.route;t&&await Promise.all([...t.layouts,t.leaf].filter(Boolean).map(e=>e[1]()))}async function yt(e,t,n){let r={params:G.params,route:{id:G.route?.id??null},url:new URL(location.href)};if(G={...e.state,nav:r},ze(e.props.page),st=new R.root({target:t,props:{...e.props,stores:P,components:B},hydrate:n,sync:!1,transformError:void 0}),await Promise.resolve(),n){let e={from:null,to:{...r,scroll:M[J]??T()},willUnload:!1,type:`enter`,complete:Promise.resolve()};W.forEach(t=>t(e))}mt(Y),rt=!0}async function bt({url:e,params:t,branch:n,errors:r,status:i,error:a,route:o,form:s}){let c=`never`;if(y&&(e.pathname===y||e.pathname===y+`/`))c=`always`;else for(let e of n)e?.slash!==void 0&&(c=e.slash);e.pathname=p(e.pathname,c),e.search=e.search;let l={type:`loaded`,state:{url:e,params:t,branch:n,error:a,route:o},props:{constructors:Pe(n).map(e=>e.node.component),page:Yt(O)}};s!==void 0&&(l.props.form=s);let u={},d=!O,f=0;for(let e=0;e<Math.max(n.length,G.branch.length);e+=1){let t=n[e],r=G.branch[e];t?.data!==r?.data&&(d=!0),t&&(u={...u,...t.data},d&&(l.props[`data_${f}`]=u),f+=1)}return(!G.url||e.href!==G.url.href||G.error!==a||s!==void 0&&s!==O.form||d)&&(l.props.page={error:a,params:t,route:{id:o?.id??null},state:{},status:i,url:new URL(e),form:s??null,data:d?u:O.data}),l}async function xt({loader:e,parent:t,url:n,params:r,route:i,server_data_node:a}){let o=null,s=!0,c={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},l=await e();if(l.universal?.load){function e(...e){for(let t of e){let{href:e}=new URL(t,n);c.dependencies.add(e)}}let u={tracing:{enabled:!1,root:Be,current:Be},route:new Proxy(i,{get:(e,t)=>(s&&(c.route=!0),e[t])}),params:new Proxy(r,{get:(e,t)=>(s&&c.params.add(t),e[t])}),data:a?.data??null,url:h(n,()=>{s&&(c.url=!0)},e=>{s&&c.search_params.add(e)},R.hash),async fetch(t,r){t instanceof Request&&(r={body:t.method===`GET`||t.method===`HEAD`?void 0:await t.blob(),cache:t.cache,credentials:t.credentials,headers:[...t.headers].length>0?t?.headers:void 0,integrity:t.integrity,keepalive:t.keepalive,method:t.method,mode:t.mode,redirect:t.redirect,referrer:t.referrer,referrerPolicy:t.referrerPolicy,signal:t.signal,...r});let{resolved:i,promise:a}=St(t,r,n);return s&&e(i.href),a},setHeaders:g,depends:e,parent(){return s&&(c.parent=!0),t()},untrack(e){s=!1;try{return e()}finally{s=!0}}};o=await l.universal.load.call(null,u)??null}return{node:l,loader:e,server:a,universal:l.universal?.load?{type:`data`,data:o,uses:c}:null,data:o??a?.data??null,slash:l.universal?.trailingSlash??a?.slash}}function St(e,t,n){let r=e instanceof Request?e.url:e,i=new URL(r,n);return i.origin===n.origin&&(r=i.href.slice(n.origin.length)),{resolved:i,promise:rt?ae(r,i.href,t):ie(r,t)}}function Ct(e,t,n,r,i,a){if(ot)return!0;if(!i)return!1;if(i.parent&&e||i.route&&t||i.url&&n)return!0;for(let e of i.search_params)if(r.has(e))return!0;for(let e of i.params)if(a[e]!==G.params[e])return!0;for(let e of i.dependencies)if(z.some(t=>t(new URL(e))))return!0;return!1}function wt(e,t){return e?.type===`data`?e:e?.type===`skip`?t??null:null}function Tt(e,t){if(!e)return new Set(t.searchParams.keys());let n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(let r of n){let i=e.searchParams.getAll(r),a=t.searchParams.getAll(r);i.every(e=>a.includes(e))&&a.every(e=>i.includes(e))&&n.delete(r)}return n}function Et({error:e,url:t,route:n,params:r}){return{type:`loaded`,state:{error:e,url:t,route:n,params:r,branch:[]},props:{page:Yt(O),constructors:[]}}}async function Dt({id:e,invalidating:t,url:n,params:r,route:i,preload:a}){if(V?.id===e)return ct.delete(V.token),V.promise;let{errors:o,layouts:s,leaf:c}=i,l=[...s,c];o.forEach(e=>e?.().catch(g)),l.forEach(e=>e?.[1]().catch(g));let f=G.url?e!==Nt(G.url):!1,p=G.route?i.id!==G.route.id:!1,ee=Tt(G.url,n),te=!1,m=l.map(async(e,t)=>{if(!e)return;let a=G.branch[t];return e[1]===a?.loader&&!Ct(te,p,f,ee,a.universal?.uses,r)?a:(te=!0,xt({loader:e[1],url:n,params:r,route:i,parent:async()=>{let e={};for(let n=0;n<t;n+=1)Object.assign(e,(await m[n])?.data);return e},server_data_node:wt(e[0]?{type:`skip`}:null,e[0]?a?.server:void 0)}))});for(let e of m)e.catch(g);let h=[];for(let e=0;e<l.length;e+=1)if(l[e])try{h.push(await m[e])}catch(t){if(t instanceof d)return{type:`redirect`,location:t.location};if(a&&ct.has(a))return Et({error:await $(t,{params:r,url:n,route:{id:i.id}}),url:n,params:r,route:i});let s=Fe(t),c;if(t instanceof u)c=t.body;else{if(await P.updated.check())return await Je(),await F(n);c=await $(t,{params:r,url:n,route:{id:i.id}})}let l=await Ot(e,h,o);return l?bt({url:n,params:r,branch:h.slice(0,l.idx).concat(l.node),errors:o,status:s,error:c,route:i}):await Ft(n,{id:i.id},c,s)}else h.push(void 0);return bt({url:n,params:r,branch:h,errors:o,status:200,error:null,route:i,form:t?void 0:null})}async function Ot(e,t,n){for(;e--;)if(n[e]){let r=e;for(;!t[r];)--r;try{return{idx:r+1,node:{node:await n[e](),loader:n[e],data:{},server:null,universal:null}}}catch{continue}}}async function kt({status:e,error:t,url:n,route:r}){let i={};try{return bt({url:n,params:i,branch:[await xt({loader:Xe,url:n,params:i,route:r,parent:()=>Promise.resolve({}),server_data_node:wt(null)}),{node:await I(),loader:I,universal:null,server:null,data:null}],status:e,error:t,errors:[],route:null})}catch(t){if(t instanceof d){await gt(new URL(t.location,location.href),{},0);return}let a=await R.get_error_template(),o=await $(t,{url:n,params:i,route:r}),s=a({status:e,message:String(o?.message??``).replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`)}),c=new DOMParser().parseFromString(s,`text/html`);throw document.documentElement.replaceChild(document.adoptNode(c.head),document.head),document.documentElement.replaceChild(document.adoptNode(c.body),document.body),t}}async function At(e){let t=e.href;if(U.has(t))return U.get(t);let n;try{let r=(async()=>{let t=await R.hooks.reroute({url:new URL(e),fetch:async(t,n)=>St(t,n,e).promise})??e;if(typeof t==`string`){let n=new URL(e);R.hash?n.hash=t:n.pathname=t,t=n}return t})();U.set(t,r),n=await r}catch{U.delete(t);return}return n}async function jt(e,t){if(e&&!Ae(e,y,R.hash)){let n=await At(e);if(!n)return;let r=Mt(n);for(let n of Ye){let i=n.exec(r);if(i)return{id:Nt(e),invalidating:t,route:n,params:te(i),url:e}}}}function Mt(e){return ee(R.hash?e.hash.replace(/^#/,``).replace(/[?#].+/,``):e.pathname.slice(y.length))||`/`}function Nt(e){return(R.hash?e.hash.replace(/^#/,``):e.pathname)+e.search}function Pt({url:e,type:t,intent:n,delta:r,event:i,scroll:a}){let o=!1,s=Jt(G,n,e,t,a??null);r!==void 0&&(s.navigation.delta=r),i!==void 0&&(s.navigation.event=i);let c={...s.navigation,cancel:()=>{o=!0,s.reject(Error(`navigation cancelled`))}};return K||et.forEach(e=>e(c)),o?null:s}async function Z({type:n,url:r,popped:i,keepfocus:a,noscroll:o,replace_state:s,state:c={},redirect_count:u=0,nav_token:d={},accept:f=g,block:p=g,event:ee}){let te=X;X=d;let m=await jt(r,!1),h=n===`enter`?Jt(G,m,r,n):Pt({url:r,type:n,delta:i?.delta,intent:m,scroll:i?.scroll,event:ee});if(!h){p(),X===d&&(X=te);return}let ne=J,re=Y;f(),K=!0,rt&&h.navigation.type!==`enter`&&P.navigating.set(k.current=h.navigation);let _=m&&await Dt(m);if(!_){if(Ae(r,y,R.hash))return await F(r,s);_=await Ft(r,{id:null},await $(new l(404,`Not Found`,`Not found: ${r.pathname}`),{url:r,params:{},route:{id:null}}),404,s)}if(r=m?.url||r,X!==d){h.reject(Error(`navigation aborted`));return}if(!_)return;if(_.type===`redirect`){if(u<20){await Z({type:n,url:new URL(_.location,r),popped:i,keepfocus:a,noscroll:o,replace_state:s,state:c,redirect_count:u+1,nav_token:d}),h.fulfil(void 0);return}if(_=await kt({status:500,error:await $(Error(`Redirect loop`),{url:r,params:{},route:{id:null}}),url:r,route:{id:null}}),!_)return}else if(_.props.page.status>=400&&await P.updated.check())return await Je(),await F(r,s);if(ft(),Ke(ne),pt(re),_.props.page.url.pathname!==r.pathname&&(r.pathname=_.props.page.url.pathname),c=i?i.state:c,!i){let e=+!s,t={[b]:J+=e,[x]:Y+=e,[be]:c};(s?history.replaceState:history.pushState).call(history,t,``,r),s||qe(J,Y)}let ie=m&&V?.id===m.id?V.fork:null;V?.fork&&!ie?H():(V=null,Q={element:void 0,href:void 0}),_.props.page.state=c;let ae;if(rt){let t=(await Promise.all(Array.from(tt,e=>e(h.navigation)))).filter(e=>typeof e==`function`);if(t.length>0){function e(){t.forEach(e=>{W.delete(e)})}t.push(e),t.forEach(e=>{W.add(e)})}let n=h.navigation.to;G={..._.state,nav:{params:n.params,route:n.route,url:n.url}},_.props.page&&(_.props.page.url=r),!a&&document.activeElement instanceof HTMLElement&&document.activeElement!==document.body&&document.activeElement.blur();let i=ie&&await ie;i?ae=i.commit():(j=null,st.$set(_.props),j&&Object.assign(_.props.page,j),ze(_.props.page),ae=e?.()),at=!0}else await yt(_,Ze,!1);let{activeElement:oe}=document;if(await ae,await t(),await t(),X!==d){h.reject(Error(`navigation aborted`));return}_.props.page&&j&&Object.assign(_.props.page,j);let v=null;if(it){let e=i?i.scroll:o?T():null;e?scrollTo(e.x,e.y):(v=r.hash&&document.getElementById(Zt(r)))?v.scrollIntoView():scrollTo(0,0)}let se=document.activeElement!==oe&&document.activeElement!==document.body;!a&&!se&&qt(r,!v),it=!0,K=!1,h.fulfil(void 0),h.navigation.to&&(h.navigation.to.scroll=T()),W.forEach(e=>e(h.navigation)),n===`popstate`&&mt(Y),P.navigating.set(k.current=null)}async function Ft(e,t,n,r,i){return e.origin===C&&e.pathname===location.pathname&&!nt?await kt({status:r,error:n,url:e,route:t}):await F(e,i)}var Q={element:void 0,href:void 0};function It(){let e,t;L.addEventListener(`mousemove`,t=>{let n=t.target;clearTimeout(e),e=setTimeout(()=>{i(n,S.hover)},20)});function n(e){e.defaultPrevented||i(e.composedPath()[0],S.tap)}L.addEventListener(`mousedown`,n),L.addEventListener(`touchstart`,n,{passive:!0});let r=new IntersectionObserver(e=>{for(let t of e)t.isIntersecting&&(vt(new URL(t.target.href)),r.unobserve(t.target))},{threshold:0});async function i(e,n){let r=we(e,L),i=r===Q.element&&r?.href===Q.href&&n>=t;if(!r||i)return;let{url:a,external:o,download:s}=Te(r,y,R.hash);if(o||s)return;let c=Ee(r),l=a&&Nt(G.url)===Nt(a);if(!(c.reload||l))if(n<=c.preload_data){Q={element:r,href:r.href},t=S.tap;let e=await jt(a,!1);if(!e)return;_t(e)}else n<=c.preload_code&&(Q={element:r,href:r.href},t=n,vt(a))}function a(){r.disconnect();for(let e of L.querySelectorAll(`a`)){let{url:t,external:n,download:i}=Te(e,y,R.hash);if(n||i)continue;let a=Ee(e);a.reload||(a.preload_code===S.viewport&&r.observe(e),a.preload_code===S.eager&&vt(t))}}W.add(a),a()}function $(e,t){if(e instanceof u)return e.body;let n=Fe(e),r=Ie(e);return R.hooks.handleError({error:e,event:t,status:n,message:r})??{message:r}}function Lt(e,t){He(()=>(e.add(t),()=>{e.delete(t)}))}function Rt(e){Lt(W,e)}function zt(e){Lt(et,e)}function Bt(e,t={}){return e=new URL(w(e)),e.origin===C?gt(e,t,0):Promise.reject(Error(`goto: invalid URL`))}function Vt(e){if(typeof e==`function`)z.push(e);else{let{href:t}=new URL(e,location.href);z.push(e=>e.href===t)}}function Ht(e,t){let n={[b]:J,[x]:Y,[xe]:O.url.href,[be]:t};history.replaceState(n,``,w(e)),O.state=t,st.$set({page:We(()=>Yt(O))})}function Ut(){history.scrollRestoration=`manual`,addEventListener(`beforeunload`,e=>{let t=!1;if(ht(),!K){let e=Jt(G,void 0,null,`leave`),n={...e.navigation,cancel:()=>{t=!0,e.reject(Error(`navigation cancelled`))}};et.forEach(e=>e(n))}t?(e.preventDefault(),e.returnValue=``):history.scrollRestoration=`auto`}),addEventListener(`visibilitychange`,()=>{document.visibilityState===`hidden`&&ht()}),navigator.connection?.saveData||It(),L.addEventListener(`click`,async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;let n=we(t.composedPath()[0],L);if(!n)return;let{url:r,external:i,target:a,download:o}=Te(n,y,R.hash);if(!r)return;if(a===`_parent`||a===`_top`){if(window.parent!==window)return}else if(a&&a!==`_self`)return;let s=Ee(n);if(!(n instanceof SVGAElement)&&r.protocol!==location.protocol&&!(r.protocol===`https:`||r.protocol===`http:`)||o)return;let[c,l]=(R.hash?r.hash.replace(/^#/,``):r.href).split(`#`),u=c===m(location);if(i||s.reload&&(!u||!l)){Pt({url:r,type:`link`,event:t})?K=!0:t.preventDefault();return}if(l!==void 0&&u){let[,i]=G.url.href.split(`#`);if(i===l){if(t.preventDefault(),l===``||l===`top`&&n.ownerDocument.getElementById(`top`)===null)scrollTo({top:0});else{let e=n.ownerDocument.getElementById(decodeURIComponent(l));e&&(e.scrollIntoView(),e.focus())}return}if(q=!0,Ke(J),e(r),!s.replace_state)return;q=!1}t.preventDefault(),await new Promise(e=>{requestAnimationFrame(()=>{setTimeout(e,0)}),setTimeout(e,100)}),await Z({type:`link`,url:r,keepfocus:s.keepfocus,noscroll:s.noscroll,replace_state:s.replace_state??r.href===location.href,event:t})}),L.addEventListener(`submit`,e=>{if(e.defaultPrevented)return;let t=HTMLFormElement.prototype.cloneNode.call(e.target),n=e.submitter;if((n?.formTarget||t.target)===`_blank`||(n?.formMethod||t.method)!==`get`)return;let r=new URL(n?.hasAttribute(`formaction`)&&n?.formAction||t.action);if(Ae(r,y,!1))return;let i=e.target,a=Ee(i);if(a.reload)return;e.preventDefault(),e.stopPropagation();let o=new FormData(i,n);r.search=new URLSearchParams(o).toString(),Z({type:`form`,url:r,keepfocus:a.keepfocus,noscroll:a.noscroll,replace_state:a.replace_state??r.href===location.href,event:e})}),addEventListener(`popstate`,async t=>{if(!Kt)if(t.state?.[`sveltekit:history`]){let n=t.state[b];if(X={},n===J)return;let r=M[n],i=t.state[`sveltekit:states`]??{},a=new URL(t.state[`sveltekit:pageurl`]??location.href),o=t.state[x],s=G.url?m(location)===m(G.url):!1;if(o===Y&&(at||s)){i!==O.state&&(O.state=i),e(a),M[J]=T(),r&&scrollTo(r.x,r.y),J=n;return}let c=n-J;await Z({type:`popstate`,url:a,popped:{state:i,scroll:r,delta:c},accept:()=>{J=n,Y=o},block:()=>{history.go(-c)},nav_token:X,event:t})}else q||(e(new URL(location.href)),R.hash&&location.reload())}),addEventListener(`hashchange`,()=>{q&&(q=!1,history.replaceState({...history.state,[b]:++J,[x]:Y},``,location.href))});for(let e of document.querySelectorAll(`link`))Ge.has(e.rel)&&(e.href=e.href);addEventListener(`pageshow`,e=>{e.persisted&&P.navigating.set(k.current=null)});function e(e){G.url=O.url=e,P.page.set(Yt(O)),P.page.notify()}}async function Wt(e,{status:t=200,error:n,node_ids:r,params:i,route:a,server_route:o,data:s,form:c}){nt=!0;let l=new URL(location.href),u;({params:i={},route:a={id:null}}=await jt(l,!1)||{}),u=Ye.find(({id:e})=>e===a.id);let f,p=!0;try{let e=r.map(async(t,n)=>{let r=s[n];return r?.uses&&(r.uses=Gt(r.uses)),xt({loader:R.nodes[t],url:l,params:i,route:a,parent:async()=>{let t={};for(let r=0;r<n;r+=1)Object.assign(t,(await e[r]).data);return t},server_data_node:wt(r)})}),o=await Promise.all(e);if(u){let e=u.layouts;for(let t=0;t<e.length;t++)e[t]||o.splice(t,0,void 0)}f=await bt({url:l,params:i,branch:o,status:t,error:n,errors:u?.errors,form:c,route:u??null})}catch(t){if(t instanceof d)return await F(new URL(t.location,location.href));f=await kt({status:Fe(t),error:await $(t,{url:l,params:i,route:a}),url:l,route:a}),e.textContent=``,p=!1}f&&(f.props.page&&(f.props.page.state={}),await yt(f,e,p))}function Gt(e){return{dependencies:new Set(e?.dependencies??[]),params:new Set(e?.params??[]),parent:!!e?.parent,route:!!e?.route,url:!!e?.url,search_params:new Set(e?.search_params??[])}}var Kt=!1;function qt(e,t=!0){let n=document.querySelector(`[autofocus]`);if(n)n.focus();else{let n=Zt(e);if(n&&document.getElementById(n)){let{x:r,y:i}=T();setTimeout(()=>{let a=history.state;Kt=!0,location.replace(new URL(`#${n}`,location.href)),history.replaceState(a,``,e),t&&scrollTo(r,i),Kt=!1})}else{let e=document.body,t=e.getAttribute(`tabindex`);e.tabIndex=-1,e.focus({preventScroll:!0,focusVisible:!1}),t===null?e.removeAttribute(`tabindex`):e.setAttribute(`tabindex`,t)}let r=getSelection();if(r&&r.type!==`None`){let e=[];for(let t=0;t<r.rangeCount;t+=1)e.push(r.getRangeAt(t));setTimeout(()=>{if(r.rangeCount===e.length){for(let t=0;t<r.rangeCount;t+=1){let n=e[t],i=r.getRangeAt(t);if(n.commonAncestorContainer!==i.commonAncestorContainer||n.startContainer!==i.startContainer||n.endContainer!==i.endContainer||n.startOffset!==i.startOffset||n.endOffset!==i.endOffset)return}r.removeAllRanges()}})}}}function Jt(e,t,n,r,i=null){let a,o,s=new Promise((e,t)=>{a=e,o=t});return s.catch(g),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url,scroll:T()},to:n&&{params:t?.params??null,route:{id:t?.route?.id??null},url:n,scroll:i},willUnload:!t,type:r,complete:s},fulfil:a,reject:o}}function Yt(e){return{data:e.data,error:e.error,form:e.form,params:e.params,route:e.route,state:e.state,status:e.status,url:e.url}}function Xt(e){let t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}function Zt(e){let t;if(R.hash){let[,,n]=e.hash.split(`#`,3);t=n??``}else t=e.hash.slice(1);return decodeURIComponent(t)}export{dt as a,O as c,Ht as i,A as l,zt as n,P as o,Bt as r,k as s,Rt as t,je as u};
1
+ import{H as e,U as t,V as n,W as r,ct as i,nt as a,r as o,t as s,tt as c}from"./CYsLq4VE.js";import{i as l,n as u,r as d,t as f}from"./BuFlayix.js";new URL(`sveltekit-internal://`);function p(e,t){return e===`/`||t===`ignore`?e:t===`never`?e.endsWith(`/`)?e.slice(0,-1):e:t===`always`&&!e.endsWith(`/`)?e+`/`:e}function ee(e){return e.split(`%25`).map(decodeURI).join(`%25`)}function te(e){for(let t in e)e[t]=decodeURIComponent(e[t]);return e}function m({href:e}){return e.split(`#`)[0]}function h(e,t,n,r=!1){let i=new URL(e);Object.defineProperty(i,"searchParams",{value:new Proxy(i.searchParams,{get(e,r){if(r===`get`||r===`getAll`||r===`has`)return(t,...i)=>(n(t),e[r](t,...i));t();let i=Reflect.get(e,r);return typeof i==`function`?i.bind(e):i}}),enumerable:!0,configurable:!0});let a=[`href`,`pathname`,`search`,`toString`,`toJSON`];r&&a.push(`hash`);for(let n of a)Object.defineProperty(i,n,{get(){return t(),e[n]},enumerable:!0,configurable:!0});return i}function g(){}function ne(...e){let t=5381;for(let n of e)if(typeof n==`string`){let e=n.length;for(;e;)t=t*33^n.charCodeAt(--e)}else if(ArrayBuffer.isView(n)){let e=new Uint8Array(n.buffer,n.byteOffset,n.byteLength),r=e.length;for(;r;)t=t*33^e[--r]}else throw TypeError(`value must be a string or TypedArray`);return(t>>>0).toString(36)}var re=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||`GET`)!==`GET`&&_.delete(oe(e)),re(e,t));var _=new Map;function ie(e,t){let n=oe(e,t),r=document.querySelector(n);if(r?.textContent){r.remove();let{body:e,...t}=JSON.parse(r.textContent);r.getAttribute(`data-b64`)!==null&&(e=f(e));let i=r.getAttribute(`data-ttl`);return i&&_.set(n,{body:e,init:t,ttl:1e3*Number(i)}),Promise.resolve(new Response(e,t))}return window.fetch(e,t)}function ae(e,t,n){if(_.size>0){let t=oe(e,n),r=_.get(t);if(r){if(performance.now()<r.ttl&&[`default`,`force-cache`,`only-if-cached`,void 0].includes(n?.cache))return new Response(r.body,r.init);_.delete(t)}}return window.fetch(t,n)}function oe(e,t){let n=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(t?.headers||t?.body){let e=[];t.headers&&e.push([...new Headers(t.headers)].join(`,`)),t.body&&(typeof t.body==`string`||ArrayBuffer.isView(t.body))&&e.push(t.body),n+=`[data-hash="${ne(...e)}"]`}return n}var v=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/,se=/^\/\((?:[^)]+)\)$/;function ce(e){let t=[];return{pattern:e===`/`||se.test(e)?/^\/$/:RegExp(`^${ue(e).map(e=>{let n=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(e);if(n)return t.push({name:n[1],matcher:n[2],optional:!1,rest:!0,chained:!0}),`(?:/([^]*))?`;let r=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(e);if(r)return t.push({name:r[1],matcher:r[2],optional:!0,rest:!1,chained:!0}),`(?:/([^/]+))?`;if(!e)return;let i=e.split(/\[(.+?)\](?!\])/);return`/`+i.map((e,n)=>{if(n%2){if(e.startsWith(`x+`))return fe(String.fromCharCode(parseInt(e.slice(2),16)));if(e.startsWith(`u+`))return fe(String.fromCharCode(...e.slice(2).split(`-`).map(e=>parseInt(e,16))));let[,r,a,o,s]=v.exec(e);return t.push({name:o,matcher:s,optional:!!r,rest:!!a,chained:a?n===1&&i[0]===``:!1}),a?`([^]*?)`:r?`([^/]*)?`:`([^/]+?)`}return fe(e)}).join(``)}).join(``)}/?$`),params:t}}function le(e){return e!==``&&!/^\([^)]+\)$/.test(e)}function ue(e){return e.slice(1).split(`/`).filter(le)}function de(e,t,n){let r={},i=e.slice(1),a=i.filter(e=>e!==void 0),o=0;for(let e=0;e<t.length;e+=1){let s=t[e],c=i[e-o];if(s.chained&&s.rest&&o&&(c=i.slice(e-o,e+1).filter(e=>e).join(`/`),o=0),c===void 0)if(s.rest)c=``;else continue;if(!s.matcher||n[s.matcher](c)){r[s.name]=c;let n=t[e+1],l=i[e+1];n&&!n.rest&&n.optional&&l&&s.chained&&(o=0),!n&&!l&&Object.keys(r).length===a.length&&(o=0);continue}if(s.optional&&s.chained){o++;continue}return}if(!o)return r}function fe(e){return e.normalize().replace(/[[\]]/g,`\\$&`).replace(/%/g,`%25`).replace(/\//g,`%2[Ff]`).replace(/\?/g,`%3[Ff]`).replace(/#/g,`%23`).replace(/[.*+?^${}()|\\]/g,`\\$&`)}function pe({nodes:e,server_loads:t,dictionary:n,matchers:r}){let i=new Set(t);return Object.entries(n).map(([t,[n,i,s]])=>{let{pattern:c,params:l}=ce(t),u={id:t,exec:e=>{let t=c.exec(e);if(t)return de(t,l,r)},errors:[1,...s||[]].map(t=>e[t]),layouts:[0,...i||[]].map(o),leaf:a(n)};return u.errors.length=u.layouts.length=Math.max(u.errors.length,u.layouts.length),u});function a(t){let n=t<0;return n&&(t=~t),[n,e[t]]}function o(t){return t===void 0?t:[i.has(t),e[t]]}}function me(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function he(e,t,n=JSON.stringify){let r=n(t);try{sessionStorage[e]=r}catch{}}var y=globalThis.__sveltekit_1jdxndh?.base??``,ge=globalThis.__sveltekit_1jdxndh?.assets??y??``,_e=`1786533359640`,ve=`sveltekit:snapshot`,ye=`sveltekit:scroll`,be=`sveltekit:states`,xe=`sveltekit:pageurl`,b=`sveltekit:history`,x=`sveltekit:navigation`,S={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},C=location.origin;function w(e){if(e instanceof URL)return e;let t=document.baseURI;if(!t){let e=document.getElementsByTagName(`base`);t=e.length?e[0].href:document.URL}return new URL(e,t)}function T(){return{x:pageXOffset,y:pageYOffset}}function E(e,t){return e.getAttribute(`data-sveltekit-${t}`)}var Se={...S,"":S.hover};function Ce(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function we(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()===`A`&&e.hasAttribute(`href`))return e;e=Ce(e)}}function Te(e,t,n){let r;try{if(r=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI),n&&r.hash.match(/^#[^/]/)){let e=location.hash.split(`#`)[1]||`/`;r.hash=`#${e}${r.hash}`}}catch{}let i=e instanceof SVGAElement?e.target.baseVal:e.target,a=!r||!!i||Ae(r,t,n)||(e.getAttribute(`rel`)||``).split(/\s+/).includes(`external`),o=r?.origin===C&&e.hasAttribute(`download`);return{url:r,external:a,target:i,download:o}}function Ee(e){let t=null,n=null,r=null,i=null,a=null,o=null,s=e;for(;s&&s!==document.documentElement;)r===null&&(r=E(s,`preload-code`)),i===null&&(i=E(s,`preload-data`)),t===null&&(t=E(s,`keepfocus`)),n===null&&(n=E(s,`noscroll`)),a===null&&(a=E(s,`reload`)),o===null&&(o=E(s,`replacestate`)),s=Ce(s);function c(e){switch(e){case``:case`true`:return!0;case`off`:case`false`:return!1;default:return}}return{preload_code:Se[r??`off`],preload_data:Se[i??`off`],keepfocus:c(t),noscroll:c(n),reload:c(a),replace_state:c(o)}}function De(e){let t=i(e),n=!0;function r(){n=!0,t.update(e=>e)}function a(e){n=!1,t.set(e)}function o(e){let r;return t.subscribe(t=>{(r===void 0||n&&t!==r)&&e(r=t)})}return{notify:r,set:a,subscribe:o}}var Oe={v:g};function ke(){let{set:e,subscribe:t}=i(!1);async function n(){clearTimeout(void 0);try{let t=await fetch(`${ge}/_app/version.json`,{headers:{pragma:`no-cache`,"cache-control":`no-cache`}});if(!t.ok)return!1;let n=(await t.json()).version!==_e;return n&&(e(!0),Oe.v(),clearTimeout(void 0)),n}catch{return!1}}return{subscribe:t,check:n}}function Ae(e,t,n){return e.origin!==C||!e.pathname.startsWith(t)?!0:n?e.pathname!==location.pathname:!1}function je(e){}Uint8Array.fromBase64,typeof process==`object`&&process.versions?.node;var Me=new Set([`load`,`prerender`,`csr`,`ssr`,`trailingSlash`,`config`]);new Set([...Me,`entries`]);var Ne=new Set([...Me]);new Set([...Ne,`actions`,`entries`]),new Set([`GET`,`POST`,`PATCH`,`PUT`,`DELETE`,`OPTIONS`,`HEAD`,`fallback`,`prerender`,`trailingSlash`,`config`,`entries`]);function Pe(e){return e.filter(e=>e!=null)}function D(e,t){return e+`/`+t}function Fe(e){return e instanceof u||e instanceof l?e.status:500}function Ie(e){return e instanceof l?e.text:`Internal Error`}var O,k,A,Le=o.toString().includes(`$$`)||/function \w+\(\) \{\}/.test(o.toString()),Re=`a:`;Le?(O={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL(Re)},k={current:null},A={current:!1}):(O=new class{#e=a({});get data(){return n(this.#e)}set data(e){c(this.#e,e)}#t=a(null);get form(){return n(this.#t)}set form(e){c(this.#t,e)}#n=a(null);get error(){return n(this.#n)}set error(e){c(this.#n,e)}#r=a({});get params(){return n(this.#r)}set params(e){c(this.#r,e)}#i=a({id:null});get route(){return n(this.#i)}set route(e){c(this.#i,e)}#a=a({});get state(){return n(this.#a)}set state(e){c(this.#a,e)}#o=a(-1);get status(){return n(this.#o)}set status(e){c(this.#o,e)}#s=a(new URL(Re));get url(){return n(this.#s)}set url(e){c(this.#s,e)}},k=new class{#e=a(null);get current(){return n(this.#e)}set current(e){c(this.#e,e)}},A=new class{#e=a(!1);get current(){return n(this.#e)}set current(e){c(this.#e,e)}},Oe.v=()=>A.current=!0);function ze(e){Object.assign(O,e)}var Be={spanContext(){return Ve},setAttribute(){return this},setAttributes(){return this},addEvent(){return this},setStatus(){return this},updateName(){return this},end(){return this},isRecording(){return!1},recordException(){return this},addLink(){return this},addLinks(){return this}},Ve={traceId:``,spanId:``,traceFlags:0},{onMount:He,tick:Ue}=s,We=r??(e=>e()),Ge=new Set([`icon`,`shortcut icon`,`apple-touch-icon`]),j=null,M=me(`sveltekit:scroll`)??{},N=me(`sveltekit:snapshot`)??{},P={url:De({}),page:De({}),navigating:i(null),updated:ke()};function Ke(e){M[e]=T()}function qe(e,t){let n=e+1;for(;M[n];)delete M[n],n+=1;for(n=t+1;N[n];)delete N[n],n+=1}function F(e,t=!1){return t?location.replace(e.href):location.href=e.href,new Promise(g)}async function Je(){if(`serviceWorker`in navigator){let e=await navigator.serviceWorker.getRegistration(y||`/`);e&&await e.update()}}var Ye,Xe,I,L,Ze,R,Qe={},$e={},z=[],B=[],V=null;function H(){V?.fork?.then(e=>e?.discard()),V=null,Q={element:void 0,href:void 0}}var U=new Map,et=new Set,tt=new Set,W=new Set,G={branch:[],error:null,url:null,nav:null},nt=!1,rt=!1,it=!0,K=!1,q=!1,at=!1,ot=!1,st,J,Y,X,ct=new Set,lt=new Map,ut=new Map;async function dt(e,t,n){if(globalThis.__sveltekit_1jdxndh.data){let{q:e={},p:t={},l:n={},f:r={}}=globalThis.__sveltekit_1jdxndh.data;for(let t in e)Qe[t]=e[t];for(let e in n)Qe[e]=n[e];for(let e in r)Qe[e]=r[e];for(let e in t)$e[e]=t[e]}document.URL!==location.href&&(location.href=location.href),R=e,await e.hooks.init?.(),Ye=pe(e),L=document.documentElement,Ze=t,Xe=e.nodes[0],I=e.nodes[1],Xe(),I(),J=history.state?.[b],Y=history.state?.[x],J||(J=Y=Date.now(),history.replaceState({...history.state,[b]:J,[x]:Y},``));let r=M[J];function i(){r&&(history.scrollRestoration=`manual`,scrollTo(r.x,r.y))}n?(i(),await Wt(Ze,n)):(await Z({type:`enter`,url:w(R.hash?Xt(new URL(location.href)):location.href),replace_state:!0}),i()),Ut()}function ft(){z.length=0,ot=!1}function pt(e){B.some(e=>e?.snapshot)&&(N[e]=B.map(e=>e?.snapshot?.capture()))}function mt(e){N[e]?.forEach((e,t)=>{B[t]?.snapshot?.restore(e)})}function ht(){Ke(J),he(ye,M),pt(Y),he(ve,N)}async function gt(e,n,r,i){let a,o;n.invalidateAll&&H(),await Z({type:`goto`,url:w(e),keepfocus:n.keepFocus,noscroll:n.noScroll,replace_state:n.replaceState,state:n.state,redirect_count:r,nav_token:i,accept:()=>{if(n.invalidateAll){ot=!0,a=new Set;for(let[e,t]of lt)for(let[n,r]of t)r.resource?.reset(),a.add(D(e,n));o=new Set;for(let[e,t]of ut)for(let n of t.keys())o.add(D(e,n))}n.invalidate&&n.invalidate.forEach(Vt)}}),n.invalidateAll&&t().then(t).then(()=>{for(let[e,t]of lt)for(let[n,{resource:r}]of t)a?.has(D(e,n))&&r.start();for(let[e,t]of ut)for(let[n,{resource:r}]of t)o?.has(D(e,n))&&r.reconnect()})}async function _t(e){if(e.id!==V?.id){H();let t={};ct.add(t),V={id:e.id,token:t,promise:Dt({...e,preload:t}).then(e=>(ct.delete(t),e.type===`loaded`&&e.state.error&&H(),e)),fork:null}}return V.promise}async function vt(e){let t=(await jt(e,!1))?.route;t&&await Promise.all([...t.layouts,t.leaf].filter(Boolean).map(e=>e[1]()))}async function yt(e,t,n){let r={params:G.params,route:{id:G.route?.id??null},url:new URL(location.href)};if(G={...e.state,nav:r},ze(e.props.page),st=new R.root({target:t,props:{...e.props,stores:P,components:B},hydrate:n,sync:!1,transformError:void 0}),await Promise.resolve(),n){let e={from:null,to:{...r,scroll:M[J]??T()},willUnload:!1,type:`enter`,complete:Promise.resolve()};W.forEach(t=>t(e))}mt(Y),rt=!0}async function bt({url:e,params:t,branch:n,errors:r,status:i,error:a,route:o,form:s}){let c=`never`;if(y&&(e.pathname===y||e.pathname===y+`/`))c=`always`;else for(let e of n)e?.slash!==void 0&&(c=e.slash);e.pathname=p(e.pathname,c),e.search=e.search;let l={type:`loaded`,state:{url:e,params:t,branch:n,error:a,route:o},props:{constructors:Pe(n).map(e=>e.node.component),page:Yt(O)}};s!==void 0&&(l.props.form=s);let u={},d=!O,f=0;for(let e=0;e<Math.max(n.length,G.branch.length);e+=1){let t=n[e],r=G.branch[e];t?.data!==r?.data&&(d=!0),t&&(u={...u,...t.data},d&&(l.props[`data_${f}`]=u),f+=1)}return(!G.url||e.href!==G.url.href||G.error!==a||s!==void 0&&s!==O.form||d)&&(l.props.page={error:a,params:t,route:{id:o?.id??null},state:{},status:i,url:new URL(e),form:s??null,data:d?u:O.data}),l}async function xt({loader:e,parent:t,url:n,params:r,route:i,server_data_node:a}){let o=null,s=!0,c={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},l=await e();if(l.universal?.load){function e(...e){for(let t of e){let{href:e}=new URL(t,n);c.dependencies.add(e)}}let u={tracing:{enabled:!1,root:Be,current:Be},route:new Proxy(i,{get:(e,t)=>(s&&(c.route=!0),e[t])}),params:new Proxy(r,{get:(e,t)=>(s&&c.params.add(t),e[t])}),data:a?.data??null,url:h(n,()=>{s&&(c.url=!0)},e=>{s&&c.search_params.add(e)},R.hash),async fetch(t,r){t instanceof Request&&(r={body:t.method===`GET`||t.method===`HEAD`?void 0:await t.blob(),cache:t.cache,credentials:t.credentials,headers:[...t.headers].length>0?t?.headers:void 0,integrity:t.integrity,keepalive:t.keepalive,method:t.method,mode:t.mode,redirect:t.redirect,referrer:t.referrer,referrerPolicy:t.referrerPolicy,signal:t.signal,...r});let{resolved:i,promise:a}=St(t,r,n);return s&&e(i.href),a},setHeaders:g,depends:e,parent(){return s&&(c.parent=!0),t()},untrack(e){s=!1;try{return e()}finally{s=!0}}};o=await l.universal.load.call(null,u)??null}return{node:l,loader:e,server:a,universal:l.universal?.load?{type:`data`,data:o,uses:c}:null,data:o??a?.data??null,slash:l.universal?.trailingSlash??a?.slash}}function St(e,t,n){let r=e instanceof Request?e.url:e,i=new URL(r,n);return i.origin===n.origin&&(r=i.href.slice(n.origin.length)),{resolved:i,promise:rt?ae(r,i.href,t):ie(r,t)}}function Ct(e,t,n,r,i,a){if(ot)return!0;if(!i)return!1;if(i.parent&&e||i.route&&t||i.url&&n)return!0;for(let e of i.search_params)if(r.has(e))return!0;for(let e of i.params)if(a[e]!==G.params[e])return!0;for(let e of i.dependencies)if(z.some(t=>t(new URL(e))))return!0;return!1}function wt(e,t){return e?.type===`data`?e:e?.type===`skip`?t??null:null}function Tt(e,t){if(!e)return new Set(t.searchParams.keys());let n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(let r of n){let i=e.searchParams.getAll(r),a=t.searchParams.getAll(r);i.every(e=>a.includes(e))&&a.every(e=>i.includes(e))&&n.delete(r)}return n}function Et({error:e,url:t,route:n,params:r}){return{type:`loaded`,state:{error:e,url:t,route:n,params:r,branch:[]},props:{page:Yt(O),constructors:[]}}}async function Dt({id:e,invalidating:t,url:n,params:r,route:i,preload:a}){if(V?.id===e)return ct.delete(V.token),V.promise;let{errors:o,layouts:s,leaf:c}=i,l=[...s,c];o.forEach(e=>e?.().catch(g)),l.forEach(e=>e?.[1]().catch(g));let f=G.url?e!==Nt(G.url):!1,p=G.route?i.id!==G.route.id:!1,ee=Tt(G.url,n),te=!1,m=l.map(async(e,t)=>{if(!e)return;let a=G.branch[t];return e[1]===a?.loader&&!Ct(te,p,f,ee,a.universal?.uses,r)?a:(te=!0,xt({loader:e[1],url:n,params:r,route:i,parent:async()=>{let e={};for(let n=0;n<t;n+=1)Object.assign(e,(await m[n])?.data);return e},server_data_node:wt(e[0]?{type:`skip`}:null,e[0]?a?.server:void 0)}))});for(let e of m)e.catch(g);let h=[];for(let e=0;e<l.length;e+=1)if(l[e])try{h.push(await m[e])}catch(t){if(t instanceof d)return{type:`redirect`,location:t.location};if(a&&ct.has(a))return Et({error:await $(t,{params:r,url:n,route:{id:i.id}}),url:n,params:r,route:i});let s=Fe(t),c;if(t instanceof u)c=t.body;else{if(await P.updated.check())return await Je(),await F(n);c=await $(t,{params:r,url:n,route:{id:i.id}})}let l=await Ot(e,h,o);return l?bt({url:n,params:r,branch:h.slice(0,l.idx).concat(l.node),errors:o,status:s,error:c,route:i}):await Ft(n,{id:i.id},c,s)}else h.push(void 0);return bt({url:n,params:r,branch:h,errors:o,status:200,error:null,route:i,form:t?void 0:null})}async function Ot(e,t,n){for(;e--;)if(n[e]){let r=e;for(;!t[r];)--r;try{return{idx:r+1,node:{node:await n[e](),loader:n[e],data:{},server:null,universal:null}}}catch{continue}}}async function kt({status:e,error:t,url:n,route:r}){let i={};try{return bt({url:n,params:i,branch:[await xt({loader:Xe,url:n,params:i,route:r,parent:()=>Promise.resolve({}),server_data_node:wt(null)}),{node:await I(),loader:I,universal:null,server:null,data:null}],status:e,error:t,errors:[],route:null})}catch(t){if(t instanceof d){await gt(new URL(t.location,location.href),{},0);return}let a=await R.get_error_template(),o=await $(t,{url:n,params:i,route:r}),s=a({status:e,message:String(o?.message??``).replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`)}),c=new DOMParser().parseFromString(s,`text/html`);throw document.documentElement.replaceChild(document.adoptNode(c.head),document.head),document.documentElement.replaceChild(document.adoptNode(c.body),document.body),t}}async function At(e){let t=e.href;if(U.has(t))return U.get(t);let n;try{let r=(async()=>{let t=await R.hooks.reroute({url:new URL(e),fetch:async(t,n)=>St(t,n,e).promise})??e;if(typeof t==`string`){let n=new URL(e);R.hash?n.hash=t:n.pathname=t,t=n}return t})();U.set(t,r),n=await r}catch{U.delete(t);return}return n}async function jt(e,t){if(e&&!Ae(e,y,R.hash)){let n=await At(e);if(!n)return;let r=Mt(n);for(let n of Ye){let i=n.exec(r);if(i)return{id:Nt(e),invalidating:t,route:n,params:te(i),url:e}}}}function Mt(e){return ee(R.hash?e.hash.replace(/^#/,``).replace(/[?#].+/,``):e.pathname.slice(y.length))||`/`}function Nt(e){return(R.hash?e.hash.replace(/^#/,``):e.pathname)+e.search}function Pt({url:e,type:t,intent:n,delta:r,event:i,scroll:a}){let o=!1,s=Jt(G,n,e,t,a??null);r!==void 0&&(s.navigation.delta=r),i!==void 0&&(s.navigation.event=i);let c={...s.navigation,cancel:()=>{o=!0,s.reject(Error(`navigation cancelled`))}};return K||et.forEach(e=>e(c)),o?null:s}async function Z({type:n,url:r,popped:i,keepfocus:a,noscroll:o,replace_state:s,state:c={},redirect_count:u=0,nav_token:d={},accept:f=g,block:p=g,event:ee}){let te=X;X=d;let m=await jt(r,!1),h=n===`enter`?Jt(G,m,r,n):Pt({url:r,type:n,delta:i?.delta,intent:m,scroll:i?.scroll,event:ee});if(!h){p(),X===d&&(X=te);return}let ne=J,re=Y;f(),K=!0,rt&&h.navigation.type!==`enter`&&P.navigating.set(k.current=h.navigation);let _=m&&await Dt(m);if(!_){if(Ae(r,y,R.hash))return await F(r,s);_=await Ft(r,{id:null},await $(new l(404,`Not Found`,`Not found: ${r.pathname}`),{url:r,params:{},route:{id:null}}),404,s)}if(r=m?.url||r,X!==d){h.reject(Error(`navigation aborted`));return}if(!_)return;if(_.type===`redirect`){if(u<20){await Z({type:n,url:new URL(_.location,r),popped:i,keepfocus:a,noscroll:o,replace_state:s,state:c,redirect_count:u+1,nav_token:d}),h.fulfil(void 0);return}if(_=await kt({status:500,error:await $(Error(`Redirect loop`),{url:r,params:{},route:{id:null}}),url:r,route:{id:null}}),!_)return}else if(_.props.page.status>=400&&await P.updated.check())return await Je(),await F(r,s);if(ft(),Ke(ne),pt(re),_.props.page.url.pathname!==r.pathname&&(r.pathname=_.props.page.url.pathname),c=i?i.state:c,!i){let e=+!s,t={[b]:J+=e,[x]:Y+=e,[be]:c};(s?history.replaceState:history.pushState).call(history,t,``,r),s||qe(J,Y)}let ie=m&&V?.id===m.id?V.fork:null;V?.fork&&!ie?H():(V=null,Q={element:void 0,href:void 0}),_.props.page.state=c;let ae;if(rt){let t=(await Promise.all(Array.from(tt,e=>e(h.navigation)))).filter(e=>typeof e==`function`);if(t.length>0){function e(){t.forEach(e=>{W.delete(e)})}t.push(e),t.forEach(e=>{W.add(e)})}let n=h.navigation.to;G={..._.state,nav:{params:n.params,route:n.route,url:n.url}},_.props.page&&(_.props.page.url=r),!a&&document.activeElement instanceof HTMLElement&&document.activeElement!==document.body&&document.activeElement.blur();let i=ie&&await ie;i?ae=i.commit():(j=null,st.$set(_.props),j&&Object.assign(_.props.page,j),ze(_.props.page),ae=e?.()),at=!0}else await yt(_,Ze,!1);let{activeElement:oe}=document;if(await ae,await t(),await t(),X!==d){h.reject(Error(`navigation aborted`));return}_.props.page&&j&&Object.assign(_.props.page,j);let v=null;if(it){let e=i?i.scroll:o?T():null;e?scrollTo(e.x,e.y):(v=r.hash&&document.getElementById(Zt(r)))?v.scrollIntoView():scrollTo(0,0)}let se=document.activeElement!==oe&&document.activeElement!==document.body;!a&&!se&&qt(r,!v),it=!0,K=!1,h.fulfil(void 0),h.navigation.to&&(h.navigation.to.scroll=T()),W.forEach(e=>e(h.navigation)),n===`popstate`&&mt(Y),P.navigating.set(k.current=null)}async function Ft(e,t,n,r,i){return e.origin===C&&e.pathname===location.pathname&&!nt?await kt({status:r,error:n,url:e,route:t}):await F(e,i)}var Q={element:void 0,href:void 0};function It(){let e,t;L.addEventListener(`mousemove`,t=>{let n=t.target;clearTimeout(e),e=setTimeout(()=>{i(n,S.hover)},20)});function n(e){e.defaultPrevented||i(e.composedPath()[0],S.tap)}L.addEventListener(`mousedown`,n),L.addEventListener(`touchstart`,n,{passive:!0});let r=new IntersectionObserver(e=>{for(let t of e)t.isIntersecting&&(vt(new URL(t.target.href)),r.unobserve(t.target))},{threshold:0});async function i(e,n){let r=we(e,L),i=r===Q.element&&r?.href===Q.href&&n>=t;if(!r||i)return;let{url:a,external:o,download:s}=Te(r,y,R.hash);if(o||s)return;let c=Ee(r),l=a&&Nt(G.url)===Nt(a);if(!(c.reload||l))if(n<=c.preload_data){Q={element:r,href:r.href},t=S.tap;let e=await jt(a,!1);if(!e)return;_t(e)}else n<=c.preload_code&&(Q={element:r,href:r.href},t=n,vt(a))}function a(){r.disconnect();for(let e of L.querySelectorAll(`a`)){let{url:t,external:n,download:i}=Te(e,y,R.hash);if(n||i)continue;let a=Ee(e);a.reload||(a.preload_code===S.viewport&&r.observe(e),a.preload_code===S.eager&&vt(t))}}W.add(a),a()}function $(e,t){if(e instanceof u)return e.body;let n=Fe(e),r=Ie(e);return R.hooks.handleError({error:e,event:t,status:n,message:r})??{message:r}}function Lt(e,t){He(()=>(e.add(t),()=>{e.delete(t)}))}function Rt(e){Lt(W,e)}function zt(e){Lt(et,e)}function Bt(e,t={}){return e=new URL(w(e)),e.origin===C?gt(e,t,0):Promise.reject(Error(`goto: invalid URL`))}function Vt(e){if(typeof e==`function`)z.push(e);else{let{href:t}=new URL(e,location.href);z.push(e=>e.href===t)}}function Ht(e,t){let n={[b]:J,[x]:Y,[xe]:O.url.href,[be]:t};history.replaceState(n,``,w(e)),O.state=t,st.$set({page:We(()=>Yt(O))})}function Ut(){history.scrollRestoration=`manual`,addEventListener(`beforeunload`,e=>{let t=!1;if(ht(),!K){let e=Jt(G,void 0,null,`leave`),n={...e.navigation,cancel:()=>{t=!0,e.reject(Error(`navigation cancelled`))}};et.forEach(e=>e(n))}t?(e.preventDefault(),e.returnValue=``):history.scrollRestoration=`auto`}),addEventListener(`visibilitychange`,()=>{document.visibilityState===`hidden`&&ht()}),navigator.connection?.saveData||It(),L.addEventListener(`click`,async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;let n=we(t.composedPath()[0],L);if(!n)return;let{url:r,external:i,target:a,download:o}=Te(n,y,R.hash);if(!r)return;if(a===`_parent`||a===`_top`){if(window.parent!==window)return}else if(a&&a!==`_self`)return;let s=Ee(n);if(!(n instanceof SVGAElement)&&r.protocol!==location.protocol&&!(r.protocol===`https:`||r.protocol===`http:`)||o)return;let[c,l]=(R.hash?r.hash.replace(/^#/,``):r.href).split(`#`),u=c===m(location);if(i||s.reload&&(!u||!l)){Pt({url:r,type:`link`,event:t})?K=!0:t.preventDefault();return}if(l!==void 0&&u){let[,i]=G.url.href.split(`#`);if(i===l){if(t.preventDefault(),l===``||l===`top`&&n.ownerDocument.getElementById(`top`)===null)scrollTo({top:0});else{let e=n.ownerDocument.getElementById(decodeURIComponent(l));e&&(e.scrollIntoView(),e.focus())}return}if(q=!0,Ke(J),e(r),!s.replace_state)return;q=!1}t.preventDefault(),await new Promise(e=>{requestAnimationFrame(()=>{setTimeout(e,0)}),setTimeout(e,100)}),await Z({type:`link`,url:r,keepfocus:s.keepfocus,noscroll:s.noscroll,replace_state:s.replace_state??r.href===location.href,event:t})}),L.addEventListener(`submit`,e=>{if(e.defaultPrevented)return;let t=HTMLFormElement.prototype.cloneNode.call(e.target),n=e.submitter;if((n?.formTarget||t.target)===`_blank`||(n?.formMethod||t.method)!==`get`)return;let r=new URL(n?.hasAttribute(`formaction`)&&n?.formAction||t.action);if(Ae(r,y,!1))return;let i=e.target,a=Ee(i);if(a.reload)return;e.preventDefault(),e.stopPropagation();let o=new FormData(i,n);r.search=new URLSearchParams(o).toString(),Z({type:`form`,url:r,keepfocus:a.keepfocus,noscroll:a.noscroll,replace_state:a.replace_state??r.href===location.href,event:e})}),addEventListener(`popstate`,async t=>{if(!Kt)if(t.state?.[`sveltekit:history`]){let n=t.state[b];if(X={},n===J)return;let r=M[n],i=t.state[`sveltekit:states`]??{},a=new URL(t.state[`sveltekit:pageurl`]??location.href),o=t.state[x],s=G.url?m(location)===m(G.url):!1;if(o===Y&&(at||s)){i!==O.state&&(O.state=i),e(a),M[J]=T(),r&&scrollTo(r.x,r.y),J=n;return}let c=n-J;await Z({type:`popstate`,url:a,popped:{state:i,scroll:r,delta:c},accept:()=>{J=n,Y=o},block:()=>{history.go(-c)},nav_token:X,event:t})}else q||(e(new URL(location.href)),R.hash&&location.reload())}),addEventListener(`hashchange`,()=>{q&&(q=!1,history.replaceState({...history.state,[b]:++J,[x]:Y},``,location.href))});for(let e of document.querySelectorAll(`link`))Ge.has(e.rel)&&(e.href=e.href);addEventListener(`pageshow`,e=>{e.persisted&&P.navigating.set(k.current=null)});function e(e){G.url=O.url=e,P.page.set(Yt(O)),P.page.notify()}}async function Wt(e,{status:t=200,error:n,node_ids:r,params:i,route:a,server_route:o,data:s,form:c}){nt=!0;let l=new URL(location.href),u;({params:i={},route:a={id:null}}=await jt(l,!1)||{}),u=Ye.find(({id:e})=>e===a.id);let f,p=!0;try{let e=r.map(async(t,n)=>{let r=s[n];return r?.uses&&(r.uses=Gt(r.uses)),xt({loader:R.nodes[t],url:l,params:i,route:a,parent:async()=>{let t={};for(let r=0;r<n;r+=1)Object.assign(t,(await e[r]).data);return t},server_data_node:wt(r)})}),o=await Promise.all(e);if(u){let e=u.layouts;for(let t=0;t<e.length;t++)e[t]||o.splice(t,0,void 0)}f=await bt({url:l,params:i,branch:o,status:t,error:n,errors:u?.errors,form:c,route:u??null})}catch(t){if(t instanceof d)return await F(new URL(t.location,location.href));f=await kt({status:Fe(t),error:await $(t,{url:l,params:i,route:a}),url:l,route:a}),e.textContent=``,p=!1}f&&(f.props.page&&(f.props.page.state={}),await yt(f,e,p))}function Gt(e){return{dependencies:new Set(e?.dependencies??[]),params:new Set(e?.params??[]),parent:!!e?.parent,route:!!e?.route,url:!!e?.url,search_params:new Set(e?.search_params??[])}}var Kt=!1;function qt(e,t=!0){let n=document.querySelector(`[autofocus]`);if(n)n.focus();else{let n=Zt(e);if(n&&document.getElementById(n)){let{x:r,y:i}=T();setTimeout(()=>{let a=history.state;Kt=!0,location.replace(new URL(`#${n}`,location.href)),history.replaceState(a,``,e),t&&scrollTo(r,i),Kt=!1})}else{let e=document.body,t=e.getAttribute(`tabindex`);e.tabIndex=-1,e.focus({preventScroll:!0,focusVisible:!1}),t===null?e.removeAttribute(`tabindex`):e.setAttribute(`tabindex`,t)}let r=getSelection();if(r&&r.type!==`None`){let e=[];for(let t=0;t<r.rangeCount;t+=1)e.push(r.getRangeAt(t));setTimeout(()=>{if(r.rangeCount===e.length){for(let t=0;t<r.rangeCount;t+=1){let n=e[t],i=r.getRangeAt(t);if(n.commonAncestorContainer!==i.commonAncestorContainer||n.startContainer!==i.startContainer||n.endContainer!==i.endContainer||n.startOffset!==i.startOffset||n.endOffset!==i.endOffset)return}r.removeAllRanges()}})}}}function Jt(e,t,n,r,i=null){let a,o,s=new Promise((e,t)=>{a=e,o=t});return s.catch(g),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url,scroll:T()},to:n&&{params:t?.params??null,route:{id:t?.route?.id??null},url:n,scroll:i},willUnload:!t,type:r,complete:s},fulfil:a,reject:o}}function Yt(e){return{data:e.data,error:e.error,form:e.form,params:e.params,route:e.route,state:e.state,status:e.status,url:e.url}}function Xt(e){let t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}function Zt(e){let t;if(R.hash){let[,,n]=e.hash.split(`#`,3);t=n??``}else t=e.hash.slice(1);return decodeURIComponent(t)}export{dt as a,O as c,Ht as i,A as l,zt as n,P as o,Bt as r,k as s,Rt as t,je as u};
@@ -1,4 +1,4 @@
1
- import{$ as e,F as t,K as n,M as r,N as i,O as a,P as o,Q as s,R as c,V as l,Z as u,a as d,d as f,dt as p,gt as m,it as h,j as g,ut as _,vt as v,y,z as b}from"./CYsLq4VE.js";import"./xihTtKlq.js";import{t as x}from"./ClSw9AyG.js";import{$ as S,C,J as w}from"./PGh5ehlS.js";import{o as T,r as E}from"./Cuj9IeTJ.js";var D=e=>e.length===0?e:e.charAt(0).toUpperCase()+e.slice(1),O=e=>{let t=e.split(`.`);return t.length<=1?e:t[t.length-1]},k=e=>{let t=new Map;for(let n of e.surfaces)for(let e of n.stateDefinitions){let r=e.path.split(`.`)[0]??e.path,i=t.get(r);i||(i={fields:new Map,surfaces:new Set},t.set(r,i)),i.fields.has(e.path)||i.fields.set(e.path,{name:O(e.path),path:e.path,type:e.type,source:`deduced`}),i.surfaces.add(n.name)}let n=new Map;for(let t of e.entities)n.set(t.namespace,t);let r=new Set([...t.keys(),...n.keys()]),i=[];for(let e of r){let r=n.get(e),a=t.get(e),o=new Map;if(a)for(let[e,t]of a.fields)o.set(e,t);if(r)for(let e of r.fields)e.path&&o.set(String(e.path),{id:e.id,name:e.name,path:e.path,type:e.type,source:`declared`,fields:e.fields,items:e.items});let s=Array.from(o.values()).sort((e,t)=>e.path.localeCompare(t.path));i.push({id:r?.id,name:D(C(e)),namespace:e,description:r?.description,resourceId:r?.resourceId,fields:s,isMaterialized:r!==void 0,usedBySurfaces:a?Array.from(a.surfaces).sort():[]})}return i.sort((e,t)=>e.namespace.localeCompare(t.namespace)),i},A=(e,t)=>e.fields.map(e=>({id:e.id??t(),name:e.name,path:e.path,type:e.type,fields:e.fields,items:e.items})),j=t(`<button type="button"><span class="truncate"> </span> <span> </span></button>`),M=t(`<p> </p>`),N=t(`<!> <!>`,1),P=t(`<aside><div class="border-b border-slate-200 px-4 py-4"><p class="text-[10px] font-semibold uppercase tracking-[0.16em] text-violet-600"> </p> <p class="mt-1 truncate text-sm font-semibold text-slate-900"> </p></div> <div class="px-2 pt-2"><a class="flex min-h-9 items-center gap-2 rounded-xl px-3 text-sm font-medium text-slate-500 transition hover:bg-slate-100 hover:text-slate-900"><svg viewBox="0 0 24 24" class="size-4 shrink-0" aria-hidden="true"><path d="M15 18l-6-6 6-6" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg> <span class="truncate"> </span></a></div> <nav class="min-h-0 flex-1 space-y-0.5 overflow-y-auto px-2 py-2"></nav></aside>`);function F(t,o){p(o,!0);let c=(t,a=v)=>{let s=h(()=>o.activeId===a().id);var c=j(),d=u(c),p=u(d,!0);m(d);var g=e(d,2),_=u(g,!0);m(g),m(c),n(e=>{f(c,`aria-current`,l(s)?`page`:void 0),y(c,1,`flex min-h-9 w-full items-center justify-between gap-3 rounded-xl px-3 text-left text-[13px] font-medium transition-colors ${l(s)?`bg-violet-100 font-semibold text-violet-700`:`text-slate-600 hover:bg-slate-100 hover:text-slate-900`}`),r(p,a().label),y(g,1,`min-w-6 rounded-full px-1.5 py-0.5 text-center text-[10px] font-semibold tabular-nums ${l(s)?`bg-violet-200 text-violet-700`:`bg-slate-100 text-slate-500`}`),r(_,e)},[()=>o.count(a().id)??`–`]),b(`click`,c,()=>o.onSelect(a().id)),i(t,c)},d=h(()=>x.url.searchParams.get(`embed`)===`1`),S=h(()=>o.groups??[{label:``,items:o.items??[]}]);var C=P(),w=u(C),T=u(w),E=u(T,!0);m(T);var D=e(T,2),O=u(D,!0);m(D),m(w);var k=e(w,2),A=u(k),F=e(u(A),2),I=u(F,!0);m(F),m(A),m(k);var L=e(k,2);a(L,23,()=>l(S),(e,t)=>e.label+`-`+t,(t,o,d)=>{var f=N(),p=s(f),h=e=>{var t=M(),a=u(t,!0);m(t),n(()=>{y(t,1,`px-3 pb-1 text-[10px] font-semibold uppercase tracking-[0.14em] text-slate-400 ${l(d)===0?`pt-1`:`pt-3`}`),r(a,l(o).label)}),i(e,t)};g(p,e=>{l(o).label&&e(h)}),a(e(p,2),17,()=>l(o).items,e=>e.id,(e,t)=>{c(e,()=>l(t))}),i(t,f)}),m(L),m(C),n(()=>{y(C,1,`sticky z-20 m-4 flex w-60 shrink-0 flex-col self-start overflow-hidden rounded-2xl border border-slate-200 bg-white text-slate-700 shadow-[0_12px_28px_-10px_rgba(15,23,42,0.18)] ${l(d)?`top-4 max-h-[calc(100vh-2rem)]`:`top-20 max-h-[calc(100vh-7rem)]`}`),r(E,o.contextLabel),f(D,`title`,o.contextName),r(O,o.contextName),f(A,`href`,o.backHref),f(A,`title`,o.backLabel),r(I,o.backLabel),f(L,`aria-label`,`${o.contextLabel} sections`)}),i(t,C),_()}c([`click`]);var I=t(`<p class="rounded-lg border border-dashed border-hairline bg-white p-6 text-center text-sm text-slate-500"> </p>`),L=t(`<span class="rounded bg-slate-100 px-1.5 py-0.5 text-[10px] text-slate-600"> </span>`),R=t(`<p class="mt-0.5 max-w-2xl text-xs text-slate-500"> </p>`),z=t(`<p class="mt-0.5 text-xs text-amber-600">Type differs between surfaces. Consider aligning them.</p>`),B=t(`<tr class="border-t border-slate-100 align-top"><td class="px-3 py-2 text-xs text-slate-600"><a class="text-brand-700 hover:underline"> </a> <div> </div></td><td class="px-3 py-2 text-xs text-slate-600"><div> </div> <div class="mt-0.5 font-mono text-slate-500"> </div></td><td class="px-3 py-2 text-xs text-slate-600"> </td></tr>`),V=t(`<div class="overflow-hidden rounded-lg border border-hairline bg-white"><div class="border-b border-slate-100 bg-slate-50 px-3 py-2"><div class="flex flex-wrap items-center gap-2"><span class="font-mono font-medium text-slate-800"> </span> <!> <span class="rounded-full bg-brand-50 px-2 py-0.5 text-xs font-medium text-brand-700" title="Surfaces that define this state"> </span></div> <!> <!></div> <div class="overflow-x-auto"><table class="w-full text-sm"><thead class="text-left text-xs uppercase tracking-wide text-slate-400"><tr><th class="px-3 py-1.5 font-medium">Feature / surface</th><th class="px-3 py-1.5 font-medium">Type / default</th><th class="px-3 py-1.5 font-medium">Sharing</th></tr></thead><tbody></tbody></table></div></div>`),H=t(`<p class="mb-2 text-xs text-slate-500"> </p> <div class="space-y-3"></div>`,1);function U(t,c){p(c,!0);let v=d(c,`search`,3,``),y=h(()=>c.features.flatMap(e=>e.surfaces.flatMap(t=>t.stateDefinitions.map(n=>({feature:e,surface:t,definition:n}))))),b=h(()=>{let e=v().trim().toLowerCase();return e?l(y).filter(({feature:t,surface:n,definition:r})=>[t.name,n.name,String(r.path),r.type,r.description??``].some(t=>t.toLowerCase().includes(e))):l(y)}),x=h(()=>{let e=new Map;for(let t of l(b)){let n=String(t.definition.path),r=e.get(n);r||(r={key:n,path:n,type:t.definition.type,typesVary:!1,description:``,rows:[]},e.set(n,r)),t.definition.type!==r.type&&(r.typesVary=!0);let i=t.definition.description?.trim()??``;i&&!r.description&&(r.description=i),r.rows.push(t)}return[...e.values()].sort((e,t)=>e.path.localeCompare(t.path,void 0,{sensitivity:`base`}))});var S=o(),C=s(S),w=e=>{var t=I(),a=u(t,!0);m(t),n(()=>r(a,l(y).length===0?`No states defined.`:`No states match your search.`)),i(e,t)},D=t=>{var o=H(),c=s(o),d=u(c);m(c);var p=e(c,2);a(p,21,()=>l(x),e=>e.key,(t,o)=>{var s=V(),c=u(s),d=u(c),p=u(d),h=u(p,!0);m(p);var _=e(p,2),v=e=>{var t=L(),a=u(t,!0);m(t),n(()=>r(a,l(o).type)),i(e,t)};g(_,e=>{l(o).typesVary||e(v)});var y=e(_,2),b=u(y);m(y),m(d);var x=e(d,2),S=e=>{var t=R(),a=u(t,!0);m(t),n(()=>r(a,l(o).description)),i(e,t)};g(x,e=>{l(o).description&&e(S)});var C=e(x,2),w=e=>{i(e,z())};g(C,e=>{l(o).typesVary&&e(w)}),m(c);var D=e(c,2),O=u(D),k=e(u(O));a(k,21,()=>l(o).rows,e=>`${e.feature.id}:${e.surface.id}:${e.definition.id}`,(t,a)=>{var o=B(),s=u(o),c=u(s),d=u(c,!0);m(c);var p=e(c,2),h=u(p,!0);m(p),m(s);var g=e(s),_=u(g),v=u(_);m(_);var y=e(_,2),b=u(y,!0);m(y),m(g);var x=e(g),S=u(x);m(x),m(o),n((e,t)=>{f(c,`href`,e),r(d,l(a).feature.name),r(h,l(a).surface.name),r(v,`${l(a).definition.type??``}${l(a).definition.derived?` · derived`:``}`),r(b,t),r(S,`${l(a).definition.sharedWith?.length??0??``} other surface(s)`)},[()=>E(String(l(a).feature.id),{surface:String(l(a).surface.id),panel:`state`,focus:T(String(l(a).surface.id),`state`)}),()=>JSON.stringify(l(a).definition.defaultValue)]),i(t,o)}),m(k),m(O),m(D),m(s),n(()=>{r(h,l(o).path),r(b,`${l(o).rows.length??``}
1
+ import{$ as e,F as t,K as n,M as r,N as i,O as a,P as o,Q as s,R as c,V as l,Z as u,a as d,d as f,dt as p,gt as m,it as h,j as g,ut as _,vt as v,y,z as b}from"./CYsLq4VE.js";import"./xihTtKlq.js";import{t as x}from"./BKh-eWBk.js";import{$ as S,C,J as w}from"./Dax-dZn3.js";import{o as T,r as E}from"./Cuj9IeTJ.js";var D=e=>e.length===0?e:e.charAt(0).toUpperCase()+e.slice(1),O=e=>{let t=e.split(`.`);return t.length<=1?e:t[t.length-1]},k=e=>{let t=new Map;for(let n of e.surfaces)for(let e of n.stateDefinitions){let r=e.path.split(`.`)[0]??e.path,i=t.get(r);i||(i={fields:new Map,surfaces:new Set},t.set(r,i)),i.fields.has(e.path)||i.fields.set(e.path,{name:O(e.path),path:e.path,type:e.type,source:`deduced`}),i.surfaces.add(n.name)}let n=new Map;for(let t of e.entities)n.set(t.namespace,t);let r=new Set([...t.keys(),...n.keys()]),i=[];for(let e of r){let r=n.get(e),a=t.get(e),o=new Map;if(a)for(let[e,t]of a.fields)o.set(e,t);if(r)for(let e of r.fields)e.path&&o.set(String(e.path),{id:e.id,name:e.name,path:e.path,type:e.type,source:`declared`,fields:e.fields,items:e.items});let s=Array.from(o.values()).sort((e,t)=>e.path.localeCompare(t.path));i.push({id:r?.id,name:D(C(e)),namespace:e,description:r?.description,resourceId:r?.resourceId,fields:s,isMaterialized:r!==void 0,usedBySurfaces:a?Array.from(a.surfaces).sort():[]})}return i.sort((e,t)=>e.namespace.localeCompare(t.namespace)),i},A=(e,t)=>e.fields.map(e=>({id:e.id??t(),name:e.name,path:e.path,type:e.type,fields:e.fields,items:e.items})),j=t(`<button type="button"><span class="truncate"> </span> <span> </span></button>`),M=t(`<p> </p>`),N=t(`<!> <!>`,1),P=t(`<aside><div class="border-b border-slate-200 px-4 py-4"><p class="text-[10px] font-semibold uppercase tracking-[0.16em] text-violet-600"> </p> <p class="mt-1 truncate text-sm font-semibold text-slate-900"> </p></div> <div class="px-2 pt-2"><a class="flex min-h-9 items-center gap-2 rounded-xl px-3 text-sm font-medium text-slate-500 transition hover:bg-slate-100 hover:text-slate-900"><svg viewBox="0 0 24 24" class="size-4 shrink-0" aria-hidden="true"><path d="M15 18l-6-6 6-6" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg> <span class="truncate"> </span></a></div> <nav class="min-h-0 flex-1 space-y-0.5 overflow-y-auto px-2 py-2"></nav></aside>`);function F(t,o){p(o,!0);let c=(t,a=v)=>{let s=h(()=>o.activeId===a().id);var c=j(),d=u(c),p=u(d,!0);m(d);var g=e(d,2),_=u(g,!0);m(g),m(c),n(e=>{f(c,`aria-current`,l(s)?`page`:void 0),y(c,1,`flex min-h-9 w-full items-center justify-between gap-3 rounded-xl px-3 text-left text-[13px] font-medium transition-colors ${l(s)?`bg-violet-100 font-semibold text-violet-700`:`text-slate-600 hover:bg-slate-100 hover:text-slate-900`}`),r(p,a().label),y(g,1,`min-w-6 rounded-full px-1.5 py-0.5 text-center text-[10px] font-semibold tabular-nums ${l(s)?`bg-violet-200 text-violet-700`:`bg-slate-100 text-slate-500`}`),r(_,e)},[()=>o.count(a().id)??`–`]),b(`click`,c,()=>o.onSelect(a().id)),i(t,c)},d=h(()=>x.url.searchParams.get(`embed`)===`1`),S=h(()=>o.groups??[{label:``,items:o.items??[]}]);var C=P(),w=u(C),T=u(w),E=u(T,!0);m(T);var D=e(T,2),O=u(D,!0);m(D),m(w);var k=e(w,2),A=u(k),F=e(u(A),2),I=u(F,!0);m(F),m(A),m(k);var L=e(k,2);a(L,23,()=>l(S),(e,t)=>e.label+`-`+t,(t,o,d)=>{var f=N(),p=s(f),h=e=>{var t=M(),a=u(t,!0);m(t),n(()=>{y(t,1,`px-3 pb-1 text-[10px] font-semibold uppercase tracking-[0.14em] text-slate-400 ${l(d)===0?`pt-1`:`pt-3`}`),r(a,l(o).label)}),i(e,t)};g(p,e=>{l(o).label&&e(h)}),a(e(p,2),17,()=>l(o).items,e=>e.id,(e,t)=>{c(e,()=>l(t))}),i(t,f)}),m(L),m(C),n(()=>{y(C,1,`sticky z-20 m-4 flex w-60 shrink-0 flex-col self-start overflow-hidden rounded-2xl border border-slate-200 bg-white text-slate-700 shadow-[0_12px_28px_-10px_rgba(15,23,42,0.18)] ${l(d)?`top-4 max-h-[calc(100vh-2rem)]`:`top-20 max-h-[calc(100vh-7rem)]`}`),r(E,o.contextLabel),f(D,`title`,o.contextName),r(O,o.contextName),f(A,`href`,o.backHref),f(A,`title`,o.backLabel),r(I,o.backLabel),f(L,`aria-label`,`${o.contextLabel} sections`)}),i(t,C),_()}c([`click`]);var I=t(`<p class="rounded-lg border border-dashed border-hairline bg-white p-6 text-center text-sm text-slate-500"> </p>`),L=t(`<span class="rounded bg-slate-100 px-1.5 py-0.5 text-[10px] text-slate-600"> </span>`),R=t(`<p class="mt-0.5 max-w-2xl text-xs text-slate-500"> </p>`),z=t(`<p class="mt-0.5 text-xs text-amber-600">Type differs between surfaces. Consider aligning them.</p>`),B=t(`<tr class="border-t border-slate-100 align-top"><td class="px-3 py-2 text-xs text-slate-600"><a class="text-brand-700 hover:underline"> </a> <div> </div></td><td class="px-3 py-2 text-xs text-slate-600"><div> </div> <div class="mt-0.5 font-mono text-slate-500"> </div></td><td class="px-3 py-2 text-xs text-slate-600"> </td></tr>`),V=t(`<div class="overflow-hidden rounded-lg border border-hairline bg-white"><div class="border-b border-slate-100 bg-slate-50 px-3 py-2"><div class="flex flex-wrap items-center gap-2"><span class="font-mono font-medium text-slate-800"> </span> <!> <span class="rounded-full bg-brand-50 px-2 py-0.5 text-xs font-medium text-brand-700" title="Surfaces that define this state"> </span></div> <!> <!></div> <div class="overflow-x-auto"><table class="w-full text-sm"><thead class="text-left text-xs uppercase tracking-wide text-slate-400"><tr><th class="px-3 py-1.5 font-medium">Feature / surface</th><th class="px-3 py-1.5 font-medium">Type / default</th><th class="px-3 py-1.5 font-medium">Sharing</th></tr></thead><tbody></tbody></table></div></div>`),H=t(`<p class="mb-2 text-xs text-slate-500"> </p> <div class="space-y-3"></div>`,1);function U(t,c){p(c,!0);let v=d(c,`search`,3,``),y=h(()=>c.features.flatMap(e=>e.surfaces.flatMap(t=>t.stateDefinitions.map(n=>({feature:e,surface:t,definition:n}))))),b=h(()=>{let e=v().trim().toLowerCase();return e?l(y).filter(({feature:t,surface:n,definition:r})=>[t.name,n.name,String(r.path),r.type,r.description??``].some(t=>t.toLowerCase().includes(e))):l(y)}),x=h(()=>{let e=new Map;for(let t of l(b)){let n=String(t.definition.path),r=e.get(n);r||(r={key:n,path:n,type:t.definition.type,typesVary:!1,description:``,rows:[]},e.set(n,r)),t.definition.type!==r.type&&(r.typesVary=!0);let i=t.definition.description?.trim()??``;i&&!r.description&&(r.description=i),r.rows.push(t)}return[...e.values()].sort((e,t)=>e.path.localeCompare(t.path,void 0,{sensitivity:`base`}))});var S=o(),C=s(S),w=e=>{var t=I(),a=u(t,!0);m(t),n(()=>r(a,l(y).length===0?`No states defined.`:`No states match your search.`)),i(e,t)},D=t=>{var o=H(),c=s(o),d=u(c);m(c);var p=e(c,2);a(p,21,()=>l(x),e=>e.key,(t,o)=>{var s=V(),c=u(s),d=u(c),p=u(d),h=u(p,!0);m(p);var _=e(p,2),v=e=>{var t=L(),a=u(t,!0);m(t),n(()=>r(a,l(o).type)),i(e,t)};g(_,e=>{l(o).typesVary||e(v)});var y=e(_,2),b=u(y);m(y),m(d);var x=e(d,2),S=e=>{var t=R(),a=u(t,!0);m(t),n(()=>r(a,l(o).description)),i(e,t)};g(x,e=>{l(o).description&&e(S)});var C=e(x,2),w=e=>{i(e,z())};g(C,e=>{l(o).typesVary&&e(w)}),m(c);var D=e(c,2),O=u(D),k=e(u(O));a(k,21,()=>l(o).rows,e=>`${e.feature.id}:${e.surface.id}:${e.definition.id}`,(t,a)=>{var o=B(),s=u(o),c=u(s),d=u(c,!0);m(c);var p=e(c,2),h=u(p,!0);m(p),m(s);var g=e(s),_=u(g),v=u(_);m(_);var y=e(_,2),b=u(y,!0);m(y),m(g);var x=e(g),S=u(x);m(x),m(o),n((e,t)=>{f(c,`href`,e),r(d,l(a).feature.name),r(h,l(a).surface.name),r(v,`${l(a).definition.type??``}${l(a).definition.derived?` · derived`:``}`),r(b,t),r(S,`${l(a).definition.sharedWith?.length??0??``} other surface(s)`)},[()=>E(String(l(a).feature.id),{surface:String(l(a).surface.id),panel:`state`,focus:T(String(l(a).surface.id),`state`)}),()=>JSON.stringify(l(a).definition.defaultValue)]),i(t,o)}),m(k),m(O),m(D),m(s),n(()=>{r(h,l(o).path),r(b,`${l(o).rows.length??``}
2
2
  ${l(o).rows.length===1?`definition`:`definitions`}`)}),i(t,s)}),m(p),n(()=>r(d,`${l(x).length??``}
3
3
  ${l(x).length===1?`state`:`states`} across ${l(b).length??``}
4
4
  ${l(b).length===1?`definition`:`definitions`}`)),i(t,o)};g(C,e=>{l(x).length===0?e(w):e(D,-1)}),i(t,S),_()}var W=t(`<p class="rounded-lg border border-dashed border-hairline bg-white p-6 text-center text-sm text-slate-500"> </p>`),G=t(`<span class="rounded bg-slate-100 px-1.5 py-0.5 text-[10px] text-slate-600"> </span>`),K=t(`<p class="mt-0.5 text-xs text-amber-600">Category differs between surfaces.</p>`),q=t(`<tr class="border-t border-slate-100 align-top"><td class="px-3 py-2 text-xs text-slate-600"><a class="text-brand-700 hover:underline"> </a> <div> </div></td><td class="px-3 py-2 text-xs text-slate-600"> </td><td class="px-3 py-2 text-xs text-slate-600"> </td><td class="px-3 py-2 text-xs text-slate-600"> </td></tr>`),J=t(`<div class="overflow-hidden rounded-lg border border-hairline bg-white"><div class="border-b border-slate-100 bg-slate-50 px-3 py-2"><div class="flex flex-wrap items-center gap-2"><span class="font-medium text-slate-800"> </span> <!> <span class="rounded-full bg-brand-50 px-2 py-0.5 text-xs font-medium text-brand-700" title="Surfaces that define this rule"> </span></div> <!></div> <div class="overflow-x-auto"><table class="w-full text-sm"><thead class="text-left text-xs uppercase tracking-wide text-slate-400"><tr><th class="px-3 py-1.5 font-medium">Feature / surface</th><th class="px-3 py-1.5 font-medium">Category</th><th class="px-3 py-1.5 font-medium">Effect</th><th class="px-3 py-1.5 font-medium">When</th></tr></thead><tbody></tbody></table></div></div>`),Y=t(`<p class="mb-2 text-xs text-slate-500"> </p> <div class="space-y-3"></div>`,1);function X(t,c){p(c,!0);let v=d(c,`search`,3,``),y=e=>e.description?.trim()||`${w(e.category)} rule`,b=h(()=>c.features.flatMap(e=>e.surfaces.flatMap(t=>t.rules.map(n=>({feature:e,surface:t,rule:n}))))),x=h(()=>{let e=v().trim().toLowerCase();return e?l(b).filter(({feature:t,surface:n,rule:r})=>[t.name,n.name,r.description??``,w(r.category),S(r.effect.type)].some(t=>t.toLowerCase().includes(e))):l(b)}),C=h(()=>{let e=new Map;for(let t of l(x)){let n=y(t.rule),r=e.get(n);r||(r={key:n,name:n,category:t.rule.category,categoriesVary:!1,rows:[]},e.set(n,r)),t.rule.category!==r.category&&(r.categoriesVary=!0),r.rows.push(t)}for(let t of e.values())t.rows.sort((e,t)=>e.feature.name.localeCompare(t.feature.name,void 0,{sensitivity:`base`})||e.surface.name.localeCompare(t.surface.name,void 0,{sensitivity:`base`}));return[...e.values()].sort((e,t)=>e.name.localeCompare(t.name,void 0,{sensitivity:`base`}))});var D=o(),O=s(D),k=e=>{var t=W(),a=u(t,!0);m(t),n(()=>r(a,l(b).length===0?`No surface rules defined.`:`No surface rules match your search.`)),i(e,t)},A=t=>{var o=Y(),c=s(o),d=u(c);m(c);var p=e(c,2);a(p,21,()=>l(C),e=>e.key,(t,o)=>{var s=J(),c=u(s),d=u(c),p=u(d),h=u(p,!0);m(p);var _=e(p,2),v=e=>{var t=G(),a=u(t,!0);m(t),n(e=>r(a,e),[()=>w(l(o).category)]),i(e,t)};g(_,e=>{l(o).categoriesVary||e(v)});var y=e(_,2),b=u(y);m(y),m(d);var x=e(d,2),C=e=>{i(e,K())};g(x,e=>{l(o).categoriesVary&&e(C)}),m(c);var D=e(c,2),O=u(D),k=e(u(O));a(k,21,()=>l(o).rows,e=>`${e.feature.id}:${e.surface.id}:${e.rule.id}`,(t,a)=>{var o=q(),s=u(o),c=u(s),d=u(c,!0);m(c);var p=e(c,2),h=u(p,!0);m(p),m(s);var g=e(s),_=u(g,!0);m(g);var v=e(g),y=u(v,!0);m(v);var b=e(v),x=u(b,!0);m(b),m(o),n((e,t,n)=>{f(c,`href`,e),r(d,l(a).feature.name),r(h,l(a).surface.name),r(_,t),r(y,n),r(x,l(a).rule.condition?`Conditional`:`Always runs`)},[()=>E(String(l(a).feature.id),{surface:String(l(a).surface.id),panel:`rules`,focus:T(String(l(a).surface.id),`rules`)}),()=>w(l(a).rule.category),()=>S(l(a).rule.effect.type)]),i(t,o)}),m(k),m(O),m(D),m(s),n(()=>{r(h,l(o).name),r(b,`${l(o).rows.length??``}
@@ -1 +1 @@
1
- import"./CYsLq4VE.js";import{c as e,o as t}from"./AIVrTpgC.js";var n={get data(){return e.data},get error(){return e.error},get form(){return e.form},get params(){return e.params},get route(){return e.route},get state(){return e.state},get status(){return e.status},get url(){return e.url}};t.updated.check;var r=n;export{r as t};
1
+ import"./CYsLq4VE.js";import{c as e,o as t}from"./BFf3ohOx.js";var n={get data(){return e.data},get error(){return e.error},get form(){return e.form},get params(){return e.params},get route(){return e.route},get state(){return e.state},get status(){return e.status},get url(){return e.url}};t.updated.check;var r=n;export{r as t};
@@ -0,0 +1 @@
1
+ I@dsMe{��"Gx�[�"*��;�-�&av�Y虻j�4��h�M�Hᗑ����fV��c��w �I����_ۚ��l\���\�g�LH\v�
@@ -1 +1 @@
1
- import{V as e,et as t,it as n,nt as r,tt as i}from"./CYsLq4VE.js";import{F as a,M as o,N as s,j as c,t as l}from"./PGh5ehlS.js";var u=[{name:`Rose`,color:`#f43f5e`},{name:`Orange`,color:`#f97316`},{name:`Amber`,color:`#f59e0b`},{name:`Lime`,color:`#84cc16`},{name:`Emerald`,color:`#10b981`},{name:`Teal`,color:`#14b8a6`},{name:`Sky`,color:`#0ea5e9`},{name:`Violet`,color:`#8b5cf6`},{name:`Fuchsia`,color:`#d946ef`},{name:`Slate`,color:`#64748b`}],d=(e,t)=>{let n=new Map;if(u.length===0)return n;let r=[...new Set(e.map(e=>e.trim().toLowerCase()).filter(e=>e.length>0))].sort(),i=new Set;for(let e of Object.values(t.assignments))typeof e==`string`&&i.add(e);let a=u.filter(e=>!i.has(e.color)),o=a.length>0?a:u,s=0;for(let e of r){let r=t.assignments[e];typeof r!=`string`&&r!==null&&(n.set(e,o[s%o.length].color),s++)}return n},f=new class{#e=r(t(c));get palette(){return e(this.#e)}set palette(e){i(this.#e,e,!0)}#t=r(!1);get loaded(){return e(this.#t)}set loaded(e){i(this.#t,e,!0)}#n=r(null);get error(){return e(this.#n)}set error(e){i(this.#n,e,!0)}#r=r(t([]));get knownTypes(){return e(this.#r)}set knownTypes(e){i(this.#r,e,!0)}#i=n(()=>d(this.knownTypes,this.palette));get autoColors(){return e(this.#i)}set autoColors(e){i(this.#i,e)}async refresh(){try{let e=await l();this.palette=await e.useCases.getTagPalette(),this.loaded=!0,this.error=null}catch(e){this.error=e.message}}registerTypes(e){if(e.length===0)return;let t=new Set(this.knownTypes),n=!1;for(let r of e){let e=r.trim().toLowerCase();e&&(t.has(e)||(t.add(e),n=!0))}n&&(this.knownTypes=[...t])}colorFor(e){return s(this.palette,e)?null:o(this.palette,e)||(this.autoColors.get(e.trim().toLowerCase())??null)}colorForTag(e){return this.colorFor(e.type)}explicitAssignmentFor(e){return s(this.palette,e)?null:o(this.palette,e)??void 0}isExplicitlyCleared(e){return s(this.palette,e)}async setTypeColor(e,t){let n=this.palette;t!==null&&(this.palette=a(n,e,t));try{let n=await(await l()).useCases.setTagTypeColor({type:e,color:t});this.palette=n}catch(e){throw this.palette=n,this.error=e.message,e}}async renameTag(e,t){let n=await(await l()).useCases.renameTag({from:e,to:t});return await this.refresh(),{projectsUpdated:n.projectsUpdated,featuresUpdated:n.featuresUpdated}}};export{u as n,f as t};
1
+ import{V as e,et as t,it as n,nt as r,tt as i}from"./CYsLq4VE.js";import{F as a,M as o,N as s,j as c,t as l}from"./Dax-dZn3.js";var u=[{name:`Rose`,color:`#f43f5e`},{name:`Orange`,color:`#f97316`},{name:`Amber`,color:`#f59e0b`},{name:`Lime`,color:`#84cc16`},{name:`Emerald`,color:`#10b981`},{name:`Teal`,color:`#14b8a6`},{name:`Sky`,color:`#0ea5e9`},{name:`Violet`,color:`#8b5cf6`},{name:`Fuchsia`,color:`#d946ef`},{name:`Slate`,color:`#64748b`}],d=(e,t)=>{let n=new Map;if(u.length===0)return n;let r=[...new Set(e.map(e=>e.trim().toLowerCase()).filter(e=>e.length>0))].sort(),i=new Set;for(let e of Object.values(t.assignments))typeof e==`string`&&i.add(e);let a=u.filter(e=>!i.has(e.color)),o=a.length>0?a:u,s=0;for(let e of r){let r=t.assignments[e];typeof r!=`string`&&r!==null&&(n.set(e,o[s%o.length].color),s++)}return n},f=new class{#e=r(t(c));get palette(){return e(this.#e)}set palette(e){i(this.#e,e,!0)}#t=r(!1);get loaded(){return e(this.#t)}set loaded(e){i(this.#t,e,!0)}#n=r(null);get error(){return e(this.#n)}set error(e){i(this.#n,e,!0)}#r=r(t([]));get knownTypes(){return e(this.#r)}set knownTypes(e){i(this.#r,e,!0)}#i=n(()=>d(this.knownTypes,this.palette));get autoColors(){return e(this.#i)}set autoColors(e){i(this.#i,e)}async refresh(){try{let e=await l();this.palette=await e.useCases.getTagPalette(),this.loaded=!0,this.error=null}catch(e){this.error=e.message}}registerTypes(e){if(e.length===0)return;let t=new Set(this.knownTypes),n=!1;for(let r of e){let e=r.trim().toLowerCase();e&&(t.has(e)||(t.add(e),n=!0))}n&&(this.knownTypes=[...t])}colorFor(e){return s(this.palette,e)?null:o(this.palette,e)||(this.autoColors.get(e.trim().toLowerCase())??null)}colorForTag(e){return this.colorFor(e.type)}explicitAssignmentFor(e){return s(this.palette,e)?null:o(this.palette,e)??void 0}isExplicitlyCleared(e){return s(this.palette,e)}async setTypeColor(e,t){let n=this.palette;t!==null&&(this.palette=a(n,e,t));try{let n=await(await l()).useCases.setTagTypeColor({type:e,color:t});this.palette=n}catch(e){throw this.palette=n,this.error=e.message,e}}async renameTag(e,t){let n=await(await l()).useCases.renameTag({from:e,to:t});return await this.refresh(),{projectsUpdated:n.projectsUpdated,featuresUpdated:n.featuresUpdated}}};export{u as n,f as t};
@@ -1 +1 @@
1
- import{$ as e,F as t,K as n,M as r,N as i,O as a,R as o,V as s,Z as c,_ as l,d as u,dt as d,g as f,gt as p,it as m,j as h,ut as g,v as _,z as v}from"./CYsLq4VE.js";import"./xihTtKlq.js";import{L as y,V as b}from"./PGh5ehlS.js";import{t as x}from"./EZgceN_E.js";import{n as S}from"./CT4vNU442.js";var C=t(`<option> </option>`),w=t(`<optgroup></optgroup>`),T=t(`<button type="button" class="ml-0 max-w-0 overflow-hidden whitespace-nowrap rounded px-0 py-1 text-xs font-medium text-slate-500 opacity-0 transition-all duration-200 delay-0 ease-out group-hover/tagfilter:ml-1 group-hover/tagfilter:max-w-24 group-hover/tagfilter:px-2 group-hover/tagfilter:opacity-100 group-hover/tagfilter:delay-300 group-focus-within/tagfilter:ml-1 group-focus-within/tagfilter:max-w-24 group-focus-within/tagfilter:px-2 group-focus-within/tagfilter:opacity-100 group-focus-within/tagfilter:delay-300 hover:bg-slate-100 hover:text-slate-900" title="Rename tags or set colors">Manage</button>`),E=t(`<label class="group/tagfilter flex h-10 items-center gap-2 rounded-lg border border-hairline bg-white px-3 text-sm text-slate-600"><span class="text-xs font-medium">Tag</span> <!> <select class="bg-transparent text-sm font-medium text-slate-800 outline-none" aria-label="Filter by tag"><option> </option><option> </option><!></select> <!></label>`);function D(t,o){d(o,!0);let D=m(()=>{let e=new Map;for(let t of o.tags){let n=t.type.trim().toLowerCase();if(!n)continue;let r=e.get(n);r?r.tags.some(e=>b(e)===b(t))||r.tags.push(t):e.set(n,{typeKey:n,display:y(n),tags:[t]})}return[...e.values()].sort((e,t)=>e.display.localeCompare(t.display)).map(e=>({...e,tags:[...e.tags].sort((e,t)=>e.value.localeCompare(t.value))}))}),O=m(()=>s(D).flatMap(e=>e.tags)),k=`__all__`,A=`__untagged__`,j=m(()=>o.value===`all`?k:o.value===`untagged`?A:b(o.value));function M(e){let t=e.target.value;if(t===k){o.onChange(`all`);return}if(t===A){o.onChange(`untagged`);return}let n=s(O).find(e=>b(e)===t);n&&o.onChange({type:n.type,value:n.value})}let N=m(()=>o.value!==`all`&&o.value!==`untagged`?x.colorFor(o.value.type):null),P=m(()=>o.value!==`all`&&o.value!==`untagged`),F=m(()=>o.countLabel?.(`all`)),I=m(()=>o.countLabel?.(`untagged`));var L=E(),R=e(c(L),2),z=e=>{S(e,{get color(){return s(N)},size:2})};h(R,e=>{s(P)&&e(z)});var B=e(R,2),V=c(B),H=c(V);p(V),V.value=V.__value=k;var U=e(V),W=c(U);p(U),U.value=U.__value=A,a(e(U),17,()=>s(D),e=>e.typeKey,(e,t)=>{let l=m(()=>x.colorFor(s(t).typeKey));var d=w();a(d,21,()=>s(t).tags,e=>b(e),(e,t)=>{let a=m(()=>o.countLabel?.({type:s(t).type,value:s(t).value}));var u=C(),d=c(u);p(u);var f={};n((e,t)=>{_(u,s(l)?`background-color: color-mix(in srgb, ${s(l)} 12%, white);`:void 0),r(d,`${e??``}${s(a)===void 0?``:` (${s(a)})`}`),f!==(f=t)&&(u.value=(u.__value=t)??``)},[()=>y(s(t).value),()=>b(s(t))]),i(e,u)}),p(d),n(()=>{u(d,`label`,s(t).display),_(d,s(l)?`background-color: color-mix(in srgb, ${s(l)} 28%, white);`:void 0)}),i(e,d)}),p(B);var G;f(B);var K=e(B,2),q=e=>{var t=T();v(`click`,t,function(...e){o.onManage?.apply(this,e)}),i(e,t)};h(K,e=>{o.onManage&&e(q)}),p(L),n(()=>{r(H,`All${s(F)===void 0?``:` (${s(F)})`}`),r(W,`Untagged${s(I)===void 0?``:` (${s(I)})`}`),G!==(G=s(j))&&(B.value=(B.__value=s(j))??``,l(B,s(j)))}),v(`change`,B,M),i(t,L),g()}o([`change`,`click`]);export{D as t};
1
+ import{$ as e,F as t,K as n,M as r,N as i,O as a,R as o,V as s,Z as c,_ as l,d as u,dt as d,g as f,gt as p,it as m,j as h,ut as g,v as _,z as v}from"./CYsLq4VE.js";import"./xihTtKlq.js";import{L as y,V as b}from"./Dax-dZn3.js";import{t as x}from"./BOTUsQ41.js";import{n as S}from"./CKDf7Bk32.js";var C=t(`<option> </option>`),w=t(`<optgroup></optgroup>`),T=t(`<button type="button" class="ml-0 max-w-0 overflow-hidden whitespace-nowrap rounded px-0 py-1 text-xs font-medium text-slate-500 opacity-0 transition-all duration-200 delay-0 ease-out group-hover/tagfilter:ml-1 group-hover/tagfilter:max-w-24 group-hover/tagfilter:px-2 group-hover/tagfilter:opacity-100 group-hover/tagfilter:delay-300 group-focus-within/tagfilter:ml-1 group-focus-within/tagfilter:max-w-24 group-focus-within/tagfilter:px-2 group-focus-within/tagfilter:opacity-100 group-focus-within/tagfilter:delay-300 hover:bg-slate-100 hover:text-slate-900" title="Rename tags or set colors">Manage</button>`),E=t(`<label class="group/tagfilter flex h-10 items-center gap-2 rounded-lg border border-hairline bg-white px-3 text-sm text-slate-600"><span class="text-xs font-medium">Tag</span> <!> <select class="bg-transparent text-sm font-medium text-slate-800 outline-none" aria-label="Filter by tag"><option> </option><option> </option><!></select> <!></label>`);function D(t,o){d(o,!0);let D=m(()=>{let e=new Map;for(let t of o.tags){let n=t.type.trim().toLowerCase();if(!n)continue;let r=e.get(n);r?r.tags.some(e=>b(e)===b(t))||r.tags.push(t):e.set(n,{typeKey:n,display:y(n),tags:[t]})}return[...e.values()].sort((e,t)=>e.display.localeCompare(t.display)).map(e=>({...e,tags:[...e.tags].sort((e,t)=>e.value.localeCompare(t.value))}))}),O=m(()=>s(D).flatMap(e=>e.tags)),k=`__all__`,A=`__untagged__`,j=m(()=>o.value===`all`?k:o.value===`untagged`?A:b(o.value));function M(e){let t=e.target.value;if(t===k){o.onChange(`all`);return}if(t===A){o.onChange(`untagged`);return}let n=s(O).find(e=>b(e)===t);n&&o.onChange({type:n.type,value:n.value})}let N=m(()=>o.value!==`all`&&o.value!==`untagged`?x.colorFor(o.value.type):null),P=m(()=>o.value!==`all`&&o.value!==`untagged`),F=m(()=>o.countLabel?.(`all`)),I=m(()=>o.countLabel?.(`untagged`));var L=E(),R=e(c(L),2),z=e=>{S(e,{get color(){return s(N)},size:2})};h(R,e=>{s(P)&&e(z)});var B=e(R,2),V=c(B),H=c(V);p(V),V.value=V.__value=k;var U=e(V),W=c(U);p(U),U.value=U.__value=A,a(e(U),17,()=>s(D),e=>e.typeKey,(e,t)=>{let l=m(()=>x.colorFor(s(t).typeKey));var d=w();a(d,21,()=>s(t).tags,e=>b(e),(e,t)=>{let a=m(()=>o.countLabel?.({type:s(t).type,value:s(t).value}));var u=C(),d=c(u);p(u);var f={};n((e,t)=>{_(u,s(l)?`background-color: color-mix(in srgb, ${s(l)} 12%, white);`:void 0),r(d,`${e??``}${s(a)===void 0?``:` (${s(a)})`}`),f!==(f=t)&&(u.value=(u.__value=t)??``)},[()=>y(s(t).value),()=>b(s(t))]),i(e,u)}),p(d),n(()=>{u(d,`label`,s(t).display),_(d,s(l)?`background-color: color-mix(in srgb, ${s(l)} 28%, white);`:void 0)}),i(e,d)}),p(B);var G;f(B);var K=e(B,2),q=e=>{var t=T();v(`click`,t,function(...e){o.onManage?.apply(this,e)}),i(e,t)};h(K,e=>{o.onManage&&e(q)}),p(L),n(()=>{r(H,`All${s(F)===void 0?``:` (${s(F)})`}`),r(W,`Untagged${s(I)===void 0?``:` (${s(I)})`}`),G!==(G=s(j))&&(B.value=(B.__value=s(j))??``,l(B,s(j)))}),v(`change`,B,M),i(t,L),g()}o([`change`,`click`]);export{D as t};
@@ -1,2 +1,2 @@
1
- import{V as e,et as t,it as n,nt as r,pt as i,tt as a}from"./CYsLq4VE.js";import{W as o,t as s}from"./PGh5ehlS.js";import{t as c}from"./Cl7Z3e6-.js";import{n as l,r as u,t as d}from"./BGoS2INr.js";var f=new class{#e=r(!0);get loading(){return e(this.#e)}set loading(e){a(this.#e,e,!0)}#t=r(null);get feature(){return e(this.#t)}set feature(e){a(this.#t,e,!0)}#n=r(null);get error(){return e(this.#n)}set error(e){a(this.#n,e,!0)}#r=r(null);get saveError(){return e(this.#r)}set saveError(e){a(this.#r,e,!0)}#i=r(!1);get saving(){return e(this.#i)}set saving(e){a(this.#i,e,!0)}#a=r(t([]));get historyEntries(){return e(this.#a)}set historyEntries(e){a(this.#a,e,!0)}#o=r(-1);get historyCursor(){return e(this.#o)}set historyCursor(e){a(this.#o,e,!0)}#s=n(()=>this.historyCursor>0);get canUndo(){return e(this.#s)}set canUndo(e){a(this.#s,e)}#c=n(()=>this.historyCursor>=0&&this.historyCursor<this.historyEntries.length-1);get canRedo(){return e(this.#c)}set canRedo(e){a(this.#c,e)}currentId=null;client=null;clientUnsubscribe=null;historyUnsubscribe=null;async load(e){try{this.loading=!0,this.error=null,this.currentId=e;let t=await(await s()).useCases.getFeature(e);this.feature=t,this.subscribeRoom(e)}catch(e){this.error=e.message}finally{this.loading=!1}}async mutate(e){if(!this.feature||!this.currentId)return;let t=i(this.feature),n=e(t),r=n===t?t:d(n);if(this.applyNext(r),this.client){this.saving=!0,this.saveError=null;try{this.client.setSnapshot(r),c(`feature.saved`,{id:String(r.id),name:r.name})}catch(e){e instanceof o&&e.errors.length>0?this.saveError=`${e.message}\n• ${e.errors.join(`
1
+ import{V as e,et as t,it as n,nt as r,pt as i,tt as a}from"./CYsLq4VE.js";import{W as o,t as s}from"./Dax-dZn3.js";import{t as c}from"./Cl7Z3e6-.js";import{n as l,r as u,t as d}from"./Msgfkikm.js";var f=new class{#e=r(!0);get loading(){return e(this.#e)}set loading(e){a(this.#e,e,!0)}#t=r(null);get feature(){return e(this.#t)}set feature(e){a(this.#t,e,!0)}#n=r(null);get error(){return e(this.#n)}set error(e){a(this.#n,e,!0)}#r=r(null);get saveError(){return e(this.#r)}set saveError(e){a(this.#r,e,!0)}#i=r(!1);get saving(){return e(this.#i)}set saving(e){a(this.#i,e,!0)}#a=r(t([]));get historyEntries(){return e(this.#a)}set historyEntries(e){a(this.#a,e,!0)}#o=r(-1);get historyCursor(){return e(this.#o)}set historyCursor(e){a(this.#o,e,!0)}#s=n(()=>this.historyCursor>0);get canUndo(){return e(this.#s)}set canUndo(e){a(this.#s,e)}#c=n(()=>this.historyCursor>=0&&this.historyCursor<this.historyEntries.length-1);get canRedo(){return e(this.#c)}set canRedo(e){a(this.#c,e)}currentId=null;client=null;clientUnsubscribe=null;historyUnsubscribe=null;async load(e){try{this.loading=!0,this.error=null,this.currentId=e;let t=await(await s()).useCases.getFeature(e);this.feature=t,this.subscribeRoom(e)}catch(e){this.error=e.message}finally{this.loading=!1}}async mutate(e){if(!this.feature||!this.currentId)return;let t=i(this.feature),n=e(t),r=n===t?t:d(n);if(this.applyNext(r),this.client){this.saving=!0,this.saveError=null;try{this.client.setSnapshot(r),c(`feature.saved`,{id:String(r.id),name:r.name})}catch(e){e instanceof o&&e.errors.length>0?this.saveError=`${e.message}\n• ${e.errors.join(`
2
2
  • `)}`:this.saveError=e.message}finally{this.saving=!1}}}dismissSaveError(){this.saveError=null}reset(){this.clientUnsubscribe&&=(this.clientUnsubscribe(),null),this.historyUnsubscribe&&=(this.historyUnsubscribe(),null),this.client=null,this.currentId=null,this.feature=null,this.error=null,this.saveError=null,this.loading=!0,this.saving=!1,this.historyEntries=[],this.historyCursor=-1}undo(){this.client?.undo()}redo(){this.client?.redo()}jumpToHistory(e){this.client?.jumpTo(e)}clearHistory(){this.client?.clearHistory()}subscribeRoom(e){this.clientUnsubscribe&&=(this.clientUnsubscribe(),null),this.historyUnsubscribe&&=(this.historyUnsubscribe(),null);let t=u(`feature`,e);this.client=t,this.clientUnsubscribe=t.observe((t,n)=>{n!==`local`&&t&&this.currentId===e&&this.applyNext(t)}),this.historyEntries=t.history.entries,this.historyCursor=t.history.cursor,this.historyUnsubscribe=t.observeHistory(t=>{this.currentId===e&&(this.historyEntries=t.entries,this.historyCursor=t.cursor)})}applyNext(e){if(!this.feature){this.feature=e;return}l(this.feature,e)}};export{f as t};
@@ -0,0 +1,24 @@
1
+ import{n as e}from"./DG0ifXoY.js";import{n as t}from"./DsF7k-Jl.js";import{m as n,p as r}from"./D3R1Zijl.js";import{D as i,H as a,K as o,U as s,a as c,b as l,c as u,f as d,v as f,w as p,y as m}from"./CU1VY_X6.js";import{t as h}from"./CGhzzHe4.js";import{t as g}from"./C8Fc0cco.js";import{i as _}from"./DMee4NNa.js";import{t as v}from"./Cxo3sx0V.js";import{t as y}from"./KythIMN82.js";import{t as b}from"./CH0YauWR2.js";import{i as x,n as S}from"./BMAHwzjW2.js";function C(e){var t=0,n=e.children,r=n&&n.length;if(!r)t=1;else for(;--r>=0;)t+=n[r].value;e.value=t}function w(){return this.eachAfter(C)}function T(e,t){let n=-1;for(let r of this)e.call(t,r,++n,this);return this}function E(e,t){for(var n=this,r=[n],i,a,o=-1;n=r.pop();)if(e.call(t,n,++o,this),i=n.children)for(a=i.length-1;a>=0;--a)r.push(i[a]);return this}function D(e,t){for(var n=this,r=[n],i=[],a,o,s,c=-1;n=r.pop();)if(i.push(n),a=n.children)for(o=0,s=a.length;o<s;++o)r.push(a[o]);for(;n=i.pop();)e.call(t,n,++c,this);return this}function O(e,t){let n=-1;for(let r of this)if(e.call(t,r,++n,this))return r}function k(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n})}function A(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function j(e){for(var t=this,n=M(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r}function M(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;for(e=n.pop(),t=r.pop();e===t;)i=e,e=n.pop(),t=r.pop();return i}function N(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function P(){return Array.from(this)}function F(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function I(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t}function*L(){var e=this,t,n=[e],r,i,a;do for(t=n.reverse(),n=[];e=t.pop();)if(yield e,r=e.children)for(i=0,a=r.length;i<a;++i)n.push(r[i]);while(n.length)}function R(e,t){e instanceof Map?(e=[void 0,e],t===void 0&&(t=V)):t===void 0&&(t=B);for(var n=new W(e),r,i=[n],a,o,s,c;r=i.pop();)if((o=t(r.data))&&(c=(o=Array.from(o)).length))for(r.children=o,s=c-1;s>=0;--s)i.push(a=o[s]=new W(o[s])),a.parent=r,a.depth=r.depth+1;return n.eachBefore(U)}function z(){return R(this).eachBefore(H)}function B(e){return e.children}function V(e){return Array.isArray(e)?e[1]:null}function H(e){e.data.value!==void 0&&(e.value=e.data.value),e.data=e.data.data}function U(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function W(e){this.data=e,this.depth=this.height=0,this.parent=null}W.prototype=R.prototype={constructor:W,count:w,each:T,eachAfter:D,eachBefore:E,find:O,sum:k,sort:A,path:j,ancestors:N,descendants:P,leaves:F,links:I,copy:z,[Symbol.iterator]:L};function G(e){if(typeof e!=`function`)throw Error();return e}function K(){return 0}function q(e){return function(){return e}}function J(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)}function ee(e,t,n,r,i){for(var a=e.children,o,s=-1,c=a.length,l=e.value&&(r-t)/e.value;++s<c;)o=a[s],o.y0=n,o.y1=i,o.x0=t,o.x1=t+=o.value*l}function te(e,t,n,r,i){for(var a=e.children,o,s=-1,c=a.length,l=e.value&&(i-n)/e.value;++s<c;)o=a[s],o.x0=t,o.x1=r,o.y0=n,o.y1=n+=o.value*l}var ne=(1+Math.sqrt(5))/2;function re(e,t,n,r,i,a){for(var o=[],s=t.children,c,l,u=0,d=0,f=s.length,p,m,h=t.value,g,_,v,y,b,x,S;u<f;){p=i-n,m=a-r;do g=s[d++].value;while(!g&&d<f);for(_=v=g,x=Math.max(m/p,p/m)/(h*e),S=g*g*x,b=Math.max(v/S,S/_);d<f;++d){if(g+=l=s[d].value,l<_&&(_=l),l>v&&(v=l),S=g*g*x,y=Math.max(v/S,S/_),y>b){g-=l;break}b=y}o.push(c={value:g,dice:p<m,children:s.slice(u,d)}),c.dice?ee(c,n,r,i,h?r+=m*g/h:a):te(c,n,r,h?n+=p*g/h:i,a),h-=g,u=d}return o}var ie=(function e(t){function n(e,n,r,i,a){re(t,e,n,r,i,a)}return n.ratio=function(t){return e((t=+t)>1?t:1)},n})(ne);function ae(){var e=ie,t=!1,n=1,r=1,i=[0],a=K,o=K,s=K,c=K,l=K;function u(e){return e.x0=e.y0=0,e.x1=n,e.y1=r,e.eachBefore(d),i=[0],t&&e.eachBefore(J),e}function d(t){var n=i[t.depth],r=t.x0+n,u=t.y0+n,d=t.x1-n,f=t.y1-n;d<r&&(r=d=(r+d)/2),f<u&&(u=f=(u+f)/2),t.x0=r,t.y0=u,t.x1=d,t.y1=f,t.children&&(n=i[t.depth+1]=a(t)/2,r+=l(t)-n,u+=o(t)-n,d-=s(t)-n,f-=c(t)-n,d<r&&(r=d=(r+d)/2),f<u&&(u=f=(u+f)/2),e(t,r,u,d,f))}return u.round=function(e){return arguments.length?(t=!!e,u):t},u.size=function(e){return arguments.length?(n=+e[0],r=+e[1],u):[n,r]},u.tile=function(t){return arguments.length?(e=G(t),u):e},u.padding=function(e){return arguments.length?u.paddingInner(e).paddingOuter(e):u.paddingInner()},u.paddingInner=function(e){return arguments.length?(a=typeof e==`function`?e:q(+e),u):a},u.paddingOuter=function(e){return arguments.length?u.paddingTop(e).paddingRight(e).paddingBottom(e).paddingLeft(e):u.paddingTop()},u.paddingTop=function(e){return arguments.length?(o=typeof e==`function`?e:q(+e),u):o},u.paddingRight=function(e){return arguments.length?(s=typeof e==`function`?e:q(+e),u):s},u.paddingBottom=function(e){return arguments.length?(c=typeof e==`function`?e:q(+e),u):c},u.paddingLeft=function(e){return arguments.length?(l=typeof e==`function`?e:q(+e),u):l},u}var Y=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=s,this.getAccTitle=m,this.setDiagramTitle=o,this.getDiagramTitle=p,this.getAccDescription=f,this.setAccDescription=a}static{t(this,`TreeMapDB`)}getNodes(){return this.nodes}getConfig(){let e=d,t=l();return _({...e.treemap,...t.treemap??{}})}addNode(e,t){this.nodes.push(e),this.levels.set(e,t),t===0&&(this.outerNodes.push(e),this.root??=e)}getRoot(){return{name:``,children:this.outerNodes}}addClass(e,t){let n=this.classes.get(e)??{id:e,styles:[],textStyles:[]},r=t.replace(/\\,/g,`§§§`).replace(/,/g,`;`).replace(/§§§/g,`,`).split(`;`);r&&r.forEach(e=>{S(e)&&(n?.textStyles?n.textStyles.push(e):n.textStyles=[e]),n?.styles?n.styles.push(e):n.styles=[e]}),this.classes.set(e,n)}getClasses(){return this.classes}getStylesForClass(e){return this.classes.get(e)?.styles??[]}clear(){c(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}};function X(e){if(!e.length)return[];let t=[],n=[];return e.forEach(e=>{let r={name:e.name,children:e.type===`Leaf`?void 0:[]};for(r.classSelector=e?.classSelector,e?.cssCompiledStyles&&(r.cssCompiledStyles=e.cssCompiledStyles),e.type===`Leaf`&&e.value!==void 0&&(r.value=e.value);n.length>0&&n[n.length-1].level>=e.level;)n.pop();if(n.length===0)t.push(r);else{let e=n[n.length-1].node;e.children?e.children.push(r):e.children=[r]}e.type!==`Leaf`&&n.push({node:r,level:e.level})}),t}t(X,`buildHierarchy`);var oe=t((e,n)=>{y(e,n);let r=[];for(let t of e.TreemapRows??[])t.$type===`ClassDefStatement`&&n.addClass(t.className??``,t.styleText??``);for(let t of e.TreemapRows??[]){let e=t.item;if(!e)continue;let i=t.indent?parseInt(t.indent):0,a=se(e),o=e.classSelector?n.getStylesForClass(e.classSelector):[],s=o.length>0?o:void 0,c={level:i,name:a,type:e.$type,value:e.value,classSelector:e.classSelector,cssCompiledStyles:s};r.push(c)}let i=X(r),a=t((e,t)=>{for(let r of e)n.addNode(r,t),r.children&&r.children.length>0&&a(r.children,t+1)},`addNodesRecursively`);a(i,0)},`populate`),se=t(e=>e.name?String(e.name):``,`getItemName`),Z={parser:{yy:void 0},parse:t(async t=>{try{let r=await e(`treemap`,t);n.debug(`Treemap AST:`,r);let i=Z.parser?.yy;if(!(i instanceof Y))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.`);oe(r,i)}catch(e){throw n.error(`Error parsing treemap:`,e),e}},`parse`)},ce=10,Q=10,$=25,le={draw:t((e,i,a,o)=>{let s=o.db,c=s.getConfig(),d=c.padding??ce,f=s.getDiagramTitle(),p=s.getRoot(),{themeVariables:m}=l();if(!p)return;let _=f?30:0,y=v(i),S=c.nodeWidth?c.nodeWidth*Q:960,C=c.nodeHeight?c.nodeHeight*Q:500,w=S,T=C+_;y.attr(`viewBox`,`0 0 ${w} ${T}`),u(y,T,w,c.useMaxWidth);let E;try{let e=c.valueFormat||`,`;if(e===`$0,0`)E=t(e=>`$`+g(`,`)(e),`valueFormat`);else if(e.startsWith(`$`)&&e.includes(`,`)){let n=/\.\d+/.exec(e),r=n?n[0]:``;E=t(e=>`$`+g(`,`+r)(e),`valueFormat`)}else if(e.startsWith(`$`)){let n=e.substring(1);E=t(e=>`$`+g(n||``)(e),`valueFormat`)}else E=g(e)}catch(e){n.error(`Error creating format function:`,e),E=g(`,`)}let D=h().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]),O=h().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]),k=h().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]);f&&y.append(`text`).attr(`x`,w/2).attr(`y`,_/2).attr(`class`,`treemapTitle`).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`middle`).text(f);let A=y.append(`g`).attr(`transform`,`translate(0, ${_})`).attr(`class`,`treemapContainer`),j=R(p).sum(e=>e.value??0).sort((e,t)=>(t.value??0)-(e.value??0)),M=ae().size([S,C]).paddingTop(e=>e.children&&e.children.length>0?$+Q:0).paddingInner(d).paddingLeft(e=>e.children&&e.children.length>0?Q:0).paddingRight(e=>e.children&&e.children.length>0?Q:0).paddingBottom(e=>e.children&&e.children.length>0?Q:0).round(!0)(j),N=M.descendants().filter(e=>e.children&&e.children.length>0),P=A.selectAll(`.treemapSection`).data(N).enter().append(`g`).attr(`class`,`treemapSection`).attr(`transform`,e=>`translate(${e.x0},${e.y0})`);P.append(`rect`).attr(`width`,e=>e.x1-e.x0).attr(`height`,$).attr(`class`,`treemapSectionHeader`).attr(`fill`,`none`).attr(`fill-opacity`,.6).attr(`stroke-width`,.6).attr(`style`,e=>e.depth===0?`display: none;`:``),P.append(`clipPath`).attr(`id`,(e,t)=>`clip-section-${i}-${t}`).append(`rect`).attr(`width`,e=>Math.max(0,e.x1-e.x0-12)).attr(`height`,$),P.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=>D(e.data.name)).attr(`fill-opacity`,.6).attr(`stroke`,e=>O(e.data.name)).attr(`stroke-width`,2).attr(`stroke-opacity`,.4).attr(`style`,e=>{if(e.depth===0)return`display: none;`;let t=x({cssCompiledStyles:e.data.cssCompiledStyles});return t.nodeStyles+`;`+t.borderStyles.join(`;`)}),P.append(`text`).attr(`class`,`treemapSectionLabel`).attr(`x`,6).attr(`y`,$/2).attr(`dominant-baseline`,`middle`).text(e=>e.depth===0?``:e.data.name).attr(`font-weight`,`bold`).attr(`clip-path`,(e,t)=>`url(#clip-section-${i}-${t})`).attr(`style`,e=>e.depth===0?`display: none;`:`dominant-baseline: middle; font-size: 12px; fill:`+k(e.data.name)+`; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;`+x({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace(`color:`,`fill:`)).each(function(e){if(e.depth===0)return;let t=r(this),n=e.data.name;t.text(n);let i=e.x1-e.x0,a;a=c.showValues!==!1&&e.value?i-10-30-10-6:i-6-6;let o=Math.max(15,a),s=t.node();if(s.getComputedTextLength()>o){let e=n;for(;e.length>0;){if(e=n.substring(0,e.length-1),e.length===0){t.text(`...`),s.getComputedTextLength()>o&&t.text(``);break}if(t.text(e+`...`),s.getComputedTextLength()<=o)break}}}),c.showValues!==!1&&P.append(`text`).attr(`class`,`treemapSectionValue`).attr(`x`,e=>e.x1-e.x0-10).attr(`y`,$/2).attr(`text-anchor`,`end`).attr(`dominant-baseline`,`middle`).text(e=>e.value?E(e.value):``).attr(`font-style`,`italic`).attr(`style`,e=>e.depth===0?`display: none;`:`text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:`+k(e.data.name)+`; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;`+x({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace(`color:`,`fill:`));let F=M.leaves(),I=F.length>20,L=I?16:38,z=I?14:28,B=I?4:8,V=I?4:6,H=I?2:4,U=I?8:10,W=I?1:2,G=A.selectAll(`.treemapLeafGroup`).data(F).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})`);G.append(`rect`).attr(`width`,e=>e.x1-e.x0).attr(`height`,e=>e.y1-e.y0).attr(`class`,`treemapLeaf`).attr(`fill`,e=>e.parent?D(e.parent.data.name):D(e.data.name)).attr(`style`,e=>x({cssCompiledStyles:e.data.cssCompiledStyles}).nodeStyles).attr(`fill-opacity`,.3).attr(`stroke`,e=>e.parent?D(e.parent.data.name):D(e.data.name)).attr(`stroke-width`,3),G.append(`clipPath`).attr(`id`,(e,t)=>`clip-${i}-${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)),G.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: ${L}px;fill:`+k(e.data.name)+`;`+x({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace(`color:`,`fill:`)).attr(`clip-path`,(e,t)=>`url(#clip-${i}-${t})`).text(e=>e.data.name).each(function(e){let t=r(this),n=e.x1-e.x0,i=e.y1-e.y0,a=t.node(),o=n-2*H,s=i-2*H;if(o<U||s<U){t.style(`display`,`none`);return}let c=parseInt(t.style(`font-size`),10),l=.6;for(;a.getComputedTextLength()>o&&c>B;)c--,t.style(`font-size`,`${c}px`);let u=Math.max(V,Math.min(z,Math.round(c*l))),d=c+W+u;for(;d>s&&c>B&&(c--,u=Math.max(V,Math.min(z,Math.round(c*l))),!(u<V&&c===B));)t.style(`font-size`,`${c}px`),d=c+W+u;t.style(`font-size`,`${c}px`),I?(c<B||s<B)&&t.style(`display`,`none`):(a.getComputedTextLength()>o||c<B||s<c)&&t.style(`display`,`none`)}),c.showValues!==!1&&G.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: ${z}px;fill:`+k(e.data.name)+`;`+x({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace(`color:`,`fill:`)).attr(`clip-path`,(e,t)=>`url(#clip-${i}-${t})`).text(e=>e.value?E(e.value):``).each(function(e){let t=r(this),n=this.parentNode;if(!n){t.style(`display`,`none`);return}let i=r(n).select(`.treemapLabel`);if(i.empty()||i.style(`display`)===`none`){t.style(`display`,`none`);return}let a=parseFloat(i.style(`font-size`)),o=Math.max(V,Math.min(z,Math.round(a*.6)));t.style(`font-size`,`${o}px`);let s=(e.y1-e.y0)/2+a/2+W;t.attr(`y`,s);let c=e.x1-e.x0,l=e.y1-e.y0-4,u=c-2*H;t.node().getComputedTextLength()>u||s+o>l||o<V?t.style(`display`,`none`):t.style(`display`,null)}),b(y,c.diagramPadding??8,`flowchart`,c?.useMaxWidth||!1)},`draw`),getClasses:t(function(e,t){return t.db.getClasses()},`getClasses`)},ue={sectionStrokeColor:`black`,sectionStrokeWidth:`1`,sectionFillColor:`#efefef`,leafStrokeColor:`black`,leafStrokeWidth:`1`,leafFillColor:`#efefef`,labelFontSize:`12px`,valueFontSize:`10px`,titleFontSize:`14px`},de={parser:Z,get db(){return new Y},renderer:le,styles:t(({treemap:e}={})=>{let t=_(i(),l().themeVariables),n=_(ue,e),r=n.titleColor??t.titleColor,a=n.labelColor??t.textColor,o=n.valueColor??t.textColor;return`
2
+ .treemapNode.section {
3
+ stroke: ${n.sectionStrokeColor};
4
+ stroke-width: ${n.sectionStrokeWidth};
5
+ fill: ${n.sectionFillColor};
6
+ }
7
+ .treemapNode.leaf {
8
+ stroke: ${n.leafStrokeColor};
9
+ stroke-width: ${n.leafStrokeWidth};
10
+ fill: ${n.leafFillColor};
11
+ }
12
+ .treemapLabel {
13
+ fill: ${a};
14
+ font-size: ${n.labelFontSize};
15
+ }
16
+ .treemapValue {
17
+ fill: ${o};
18
+ font-size: ${n.valueFontSize};
19
+ }
20
+ .treemapTitle {
21
+ fill: ${r};
22
+ font-size: ${n.titleFontSize};
23
+ }
24
+ `},`getStyles`)};export{de as diagram};