graview 0.1.48 → 0.1.50

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 (202) hide show
  1. package/dist/index.d.ts +1 -1
  2. package/dist/index.js +6 -6
  3. package/dist/index.js.map +1 -1
  4. package/dist/preview/chunk.24MUPV4Y.js +1 -0
  5. package/dist/preview/chunk.25VJPUDH.js +1 -0
  6. package/dist/preview/{chunk.PTXLOFQW.js → chunk.2P66HH5Y.js} +1 -1
  7. package/dist/preview/chunk.2VZSC2MB.js +1 -0
  8. package/dist/preview/chunk.3L5USMQD.js +1 -0
  9. package/dist/preview/chunk.3O3H37WD.js +1 -0
  10. package/dist/preview/{chunk.Y4MQGEUS.js → chunk.3SY6WWWQ.js} +2 -2
  11. package/dist/preview/{chunk.HC5N3CT2.js → chunk.4BQNG3W3.js} +1 -1
  12. package/dist/preview/chunk.4SHSEIHT.js +1 -0
  13. package/dist/preview/{chunk.NTLHEHOM.js → chunk.4VJARLJ5.js} +1 -1
  14. package/dist/preview/{chunk.I5TOMBIF.js → chunk.4XOSDCCE.js} +1 -1
  15. package/dist/preview/{chunk.CH5ROV7N.js → chunk.53BGPCM6.js} +1 -1
  16. package/dist/preview/{chunk.NQZ73QV7.js → chunk.5DZR46YG.js} +1 -1
  17. package/dist/preview/{chunk.GNBN3BK7.js → chunk.5RNB6IC5.js} +1 -1
  18. package/dist/preview/{chunk.E5GM2SMO.js → chunk.64TFAR5Z.js} +1 -1
  19. package/dist/preview/chunk.6BMCZPT6.js +1 -0
  20. package/dist/preview/chunk.6SHF6IL5.js +1 -0
  21. package/dist/preview/{chunk.RLXKDXPB.js → chunk.6VA5XFRR.js} +1 -1
  22. package/dist/preview/{chunk.GUMJEVVP.js → chunk.73BJYIYS.js} +1 -1
  23. package/dist/preview/chunk.7PJVMADH.js +2 -0
  24. package/dist/preview/{chunk.YVOABA2U.js → chunk.7QW6JYGP.js} +1 -1
  25. package/dist/preview/{chunk.NR5ODXMO.js → chunk.7VX6TBNY.js} +1 -1
  26. package/dist/preview/{chunk.5IM645XQ.js → chunk.A53G42QO.js} +1 -1
  27. package/dist/preview/chunk.ATWNWPME.js +1 -0
  28. package/dist/preview/chunk.AVCW7C6V.js +1 -0
  29. package/dist/preview/{chunk.V4BCB7N2.js → chunk.AXCRFJDL.js} +1 -1
  30. package/dist/preview/chunk.AXMC6XVT.js +2 -0
  31. package/dist/preview/{chunk.DAUC2DFY.js → chunk.BBNF52IB.js} +1 -1
  32. package/dist/preview/chunk.BJAQRV2R.js +1 -0
  33. package/dist/preview/chunk.BLS2G3CD.js +5 -0
  34. package/dist/preview/chunk.BNQL37AC.js +88 -0
  35. package/dist/preview/{chunk.QGE6YKSU.js → chunk.BORCUDGS.js} +1 -1
  36. package/dist/preview/{chunk.MVRG75ZD.js → chunk.CBJHYNNT.js} +1 -1
  37. package/dist/preview/{chunk.I7QIHN66.js → chunk.CDZVUCEK.js} +1 -1
  38. package/dist/preview/chunk.CR5MQMOL.js +1 -0
  39. package/dist/preview/{chunk.2GLJH253.js → chunk.DUIKIJKC.js} +1 -1
  40. package/dist/preview/{chunk.GT3F6FQ6.js → chunk.DUJUJN35.js} +1 -1
  41. package/dist/preview/chunk.ECSWXLBI.js +9 -0
  42. package/dist/preview/{chunk.KW65F4WA.js → chunk.EF3UB7US.js} +1 -1
  43. package/dist/preview/chunk.EJUZGIQ5.js +1 -0
  44. package/dist/preview/{chunk.NLBIX7LH.js → chunk.ETWREHXF.js} +1 -1
  45. package/dist/preview/{chunk.3BAHAK6W.js → chunk.ETX4QMM2.js} +1 -1
  46. package/dist/preview/{chunk.VQAQQW4Q.js → chunk.F5FJHKWV.js} +1 -1
  47. package/dist/preview/{chunk.D5ETRTAF.js → chunk.F7AFJRPP.js} +1 -1
  48. package/dist/preview/{chunk.TKMQROXF.js → chunk.FDFVGHQE.js} +1 -1
  49. package/dist/preview/{chunk.UJRBOUGC.js → chunk.FFPG4PHX.js} +1 -1
  50. package/dist/preview/{chunk.CJ23XTSW.js → chunk.FKUVIG6D.js} +1 -1
  51. package/dist/preview/chunk.GDYI5QDS.js +1 -0
  52. package/dist/preview/{chunk.OFRGDJYX.js → chunk.GPJFNLEJ.js} +1 -1
  53. package/dist/preview/chunk.GQI53L5P.js +1 -0
  54. package/dist/preview/{chunk.X7JMJSLU.js → chunk.GQX57JIE.js} +1 -1
  55. package/dist/preview/{chunk.ZH4NWRWB.js → chunk.GTUBIJTP.js} +1 -1
  56. package/dist/preview/{chunk.X7N3JUO4.js → chunk.GZEZMU2T.js} +2 -2
  57. package/dist/preview/{chunk.6VAFNCR4.js → chunk.HG34MT7C.js} +1 -1
  58. package/dist/preview/{chunk.DUWYF7BO.js → chunk.HGP3Q7QX.js} +1 -1
  59. package/dist/preview/chunk.IATLUWAD.js +1 -0
  60. package/dist/preview/chunk.IDQHSAAQ.js +1 -0
  61. package/dist/preview/chunk.IMFAPZ6J.js +21 -0
  62. package/dist/preview/{chunk.PQVUQVRL.js → chunk.JC5NXMG3.js} +1 -1
  63. package/dist/preview/chunk.JJP5OL5E.js +1 -0
  64. package/dist/preview/{chunk.QQTRAY5W.js → chunk.JLPBXG4P.js} +1 -1
  65. package/dist/preview/chunk.JLR74UFP.js +1 -0
  66. package/dist/preview/{chunk.2VTMTW7K.js → chunk.JYJNRCK5.js} +1 -1
  67. package/dist/preview/chunk.K4ITS63T.js +1 -0
  68. package/dist/preview/{chunk.KTFUVR4V.js → chunk.KFHXTHIY.js} +1 -1
  69. package/dist/preview/{chunk.QQCDCRR2.js → chunk.KGGWFL54.js} +1 -1
  70. package/dist/preview/{chunk.5A4AOFOA.js → chunk.KHRS2SKB.js} +1 -1
  71. package/dist/preview/{chunk.NWT5FPEK.js → chunk.KOPRZLJH.js} +18 -18
  72. package/dist/preview/{chunk.Z4UM4CMT.js → chunk.KQSD5MLY.js} +1 -1
  73. package/dist/preview/{chunk.DFK2NA6L.js → chunk.KT2LXHSI.js} +1 -1
  74. package/dist/preview/{chunk.ETR6AV47.js → chunk.KVEDMKUN.js} +1 -1
  75. package/dist/preview/{chunk.7LL7OSBY.js → chunk.KZ3UPV2L.js} +2 -2
  76. package/dist/preview/{chunk.J2V76Z6G.js → chunk.L2AV6JRA.js} +1 -1
  77. package/dist/preview/chunk.L5MDUZLQ.js +1 -0
  78. package/dist/preview/chunk.LDE5HLTM.js +1 -0
  79. package/dist/preview/{chunk.IRHSTUZM.js → chunk.LGHMUUTG.js} +1 -1
  80. package/dist/preview/{chunk.PPRSGM64.js → chunk.LJXAZ5TF.js} +1 -1
  81. package/dist/preview/{chunk.OZGETOTK.js → chunk.M55U47A6.js} +1 -1
  82. package/dist/preview/chunk.M5RHVUZ6.js +1 -0
  83. package/dist/preview/chunk.MBZ6N5SO.js +1 -0
  84. package/dist/preview/chunk.MCFLCC42.js +12 -0
  85. package/dist/preview/{chunk.MVSV7T6E.js → chunk.MCPLU2U4.js} +1 -1
  86. package/dist/preview/chunk.MQISKON2.js +1 -0
  87. package/dist/preview/{chunk.DHAK6PPX.js → chunk.MRUDTYOL.js} +2 -2
  88. package/dist/preview/chunk.N7FIUTVY.js +1 -0
  89. package/dist/preview/chunk.NPU4WYRB.js +1 -0
  90. package/dist/preview/{chunk.DPHTUTOS.js → chunk.O6SKKF4V.js} +1 -1
  91. package/dist/preview/{chunk.SKJJBLXF.js → chunk.OB7XLVK6.js} +1 -1
  92. package/dist/preview/{chunk.P6FQAILU.js → chunk.ODHCSYXX.js} +1 -1
  93. package/dist/preview/chunk.OHAWUOUN.js +1 -0
  94. package/dist/preview/chunk.OKQ4JXTW.js +1 -0
  95. package/dist/preview/{chunk.YDL5BSTG.js → chunk.OUNLAMBA.js} +1 -1
  96. package/dist/preview/chunk.OYQ6ZA6T.js +1 -0
  97. package/dist/preview/chunk.Q7RI4SI4.js +1 -0
  98. package/dist/preview/chunk.Q7UQ5OXA.js +1 -0
  99. package/dist/preview/{chunk.PMJUGHW4.js → chunk.QAUZDLDA.js} +1 -1
  100. package/dist/preview/{chunk.5Y3Q7ONN.js → chunk.QFI4L2HK.js} +1 -1
  101. package/dist/preview/{chunk.UGJSMNVO.js → chunk.QSZLY62B.js} +1 -1
  102. package/dist/preview/{chunk.LXCJVZF3.js → chunk.QZMBEG4E.js} +1 -1
  103. package/dist/preview/{chunk.TBRJOKIK.js → chunk.RK6BK5FD.js} +1 -1
  104. package/dist/preview/{chunk.76W2FXEC.js → chunk.ROJZLOKZ.js} +1 -1
  105. package/dist/preview/chunk.RXJBYP7B.js +1 -0
  106. package/dist/preview/chunk.S64LCR23.js +1 -0
  107. package/dist/preview/{chunk.TMDI7KRS.js → chunk.S7OFTGBQ.js} +4 -4
  108. package/dist/preview/chunk.SGMVLKZO.js +25 -0
  109. package/dist/preview/chunk.SJRXBTGP.js +1 -0
  110. package/dist/preview/{chunk.GH2SWMCW.js → chunk.SRU2YDTJ.js} +1 -1
  111. package/dist/preview/chunk.SVH3OMU2.js +1 -0
  112. package/dist/preview/{chunk.SFAAM4KE.js → chunk.SWLDDQJS.js} +1 -1
  113. package/dist/preview/{chunk.ENPCLMP2.js → chunk.T4UYLB3Y.js} +1 -1
  114. package/dist/preview/chunk.THTHNY4N.js +1 -0
  115. package/dist/preview/{chunk.V2GSBYDK.js → chunk.TL7UGUY4.js} +2 -2
  116. package/dist/preview/{chunk.N4M54YK6.js → chunk.TT6QBWRA.js} +1 -1
  117. package/dist/preview/{chunk.7VT3TRHR.js → chunk.TY6VILZB.js} +1 -1
  118. package/dist/preview/{chunk.DOBQ4LO4.js → chunk.U2M4SGUU.js} +1 -1
  119. package/dist/preview/chunk.U6FGWVGB.js +1 -0
  120. package/dist/preview/{chunk.KVJFY7N5.js → chunk.UCS3CBT4.js} +1 -1
  121. package/dist/preview/{chunk.2QNGGF55.js → chunk.UDTBFAS5.js} +2 -2
  122. package/dist/preview/chunk.UEL7FLL7.js +1 -0
  123. package/dist/preview/{chunk.ODRL5OWR.js → chunk.UGJ32SEL.js} +1 -1
  124. package/dist/preview/{chunk.HKA5T7DL.js → chunk.UJTRKSCK.js} +1 -1
  125. package/dist/preview/{chunk.QII2C5OV.js → chunk.UN2OB6OD.js} +1 -1
  126. package/dist/preview/chunk.UOC3SIYT.js +1 -0
  127. package/dist/preview/{chunk.HDE2MGGU.js → chunk.V5IWJ3ZV.js} +1 -1
  128. package/dist/preview/{chunk.LPD74WBI.js → chunk.VM43YREJ.js} +1 -1
  129. package/dist/preview/chunk.VVRI7DNK.js +1 -0
  130. package/dist/preview/{chunk.MZLWLIKR.js → chunk.WGRF6EHC.js} +1 -1
  131. package/dist/preview/{chunk.KVEDIBXS.js → chunk.XWLGHTH6.js} +1 -1
  132. package/dist/preview/chunk.YAS6LXQ7.js +1 -0
  133. package/dist/preview/{chunk.EMQ5POGB.js → chunk.YCJ74LZS.js} +1 -1
  134. package/dist/preview/chunk.YEKHDZ45.js +20 -0
  135. package/dist/preview/chunk.YEMNR4WU.js +1 -0
  136. package/dist/preview/{chunk.44G5A53D.js → chunk.YG3BLY67.js} +1 -1
  137. package/dist/preview/{chunk.J6ANRF6E.js → chunk.YUV7HZYG.js} +1 -1
  138. package/dist/preview/{chunk.5IPH2SCE.js → chunk.YYS45ZGQ.js} +1 -1
  139. package/dist/preview/{chunk.GACKGEUY.js → chunk.YZ6UKKEL.js} +1 -1
  140. package/dist/preview/{chunk.GVNYPFIM.js → chunk.ZBBCUK2K.js} +1 -1
  141. package/dist/preview/chunk.ZI66HRES.js +1 -0
  142. package/dist/preview/{chunk.XTMOFRHL.js → chunk.ZITDUHX3.js} +1 -1
  143. package/dist/preview/{chunk.2UIUMG23.js → chunk.ZK446PSX.js} +3 -3
  144. package/dist/preview/{chunk.6TKILWRM.js → chunk.ZKDJQDKX.js} +1 -1
  145. package/dist/preview/{chunk.QPICKSSM.js → chunk.ZOQ3OKKI.js} +1 -1
  146. package/dist/preview/chunk.ZVETGRUM.js +1 -0
  147. package/dist/preview/{chunk.G7WDMUDV.js → chunk.ZVOP2HHI.js} +1 -1
  148. package/dist/preview/index.html +51 -51
  149. package/dist/preview/page.js +2 -2
  150. package/package.json +6 -6
  151. package/dist/preview/chunk.2AZTW66C.js +0 -1
  152. package/dist/preview/chunk.37CJSWLL.js +0 -1
  153. package/dist/preview/chunk.3RP3N2JP.js +0 -1
  154. package/dist/preview/chunk.3UD7GG5B.js +0 -1
  155. package/dist/preview/chunk.4GQA3AJU.js +0 -1
  156. package/dist/preview/chunk.4KX53HCV.js +0 -9
  157. package/dist/preview/chunk.4TJOS4C7.js +0 -5
  158. package/dist/preview/chunk.4VW6THJF.js +0 -1
  159. package/dist/preview/chunk.664PBQAQ.js +0 -1
  160. package/dist/preview/chunk.72OZLWJL.js +0 -1
  161. package/dist/preview/chunk.72W6S746.js +0 -1
  162. package/dist/preview/chunk.7FRPNQU4.js +0 -1
  163. package/dist/preview/chunk.7QZYFLBS.js +0 -1
  164. package/dist/preview/chunk.B2IIEVBF.js +0 -21
  165. package/dist/preview/chunk.BDHKWVNX.js +0 -1
  166. package/dist/preview/chunk.DQ7M3LFV.js +0 -1
  167. package/dist/preview/chunk.DWPU56S5.js +0 -1
  168. package/dist/preview/chunk.E2AJ7U5Z.js +0 -1
  169. package/dist/preview/chunk.EXEZBZGW.js +0 -1
  170. package/dist/preview/chunk.EZJNUFNQ.js +0 -1
  171. package/dist/preview/chunk.FOP5RBGF.js +0 -1
  172. package/dist/preview/chunk.FPYL6REZ.js +0 -1
  173. package/dist/preview/chunk.FQYOTK34.js +0 -1
  174. package/dist/preview/chunk.GTPC6JOW.js +0 -2
  175. package/dist/preview/chunk.HG4DDNPG.js +0 -1
  176. package/dist/preview/chunk.ILZYRJDS.js +0 -1
  177. package/dist/preview/chunk.KA44WNB4.js +0 -25
  178. package/dist/preview/chunk.LGSFGNWE.js +0 -1
  179. package/dist/preview/chunk.LNON6P7K.js +0 -1
  180. package/dist/preview/chunk.MAFFUPCR.js +0 -1
  181. package/dist/preview/chunk.MTXEURFE.js +0 -1
  182. package/dist/preview/chunk.NFDLCUCC.js +0 -1
  183. package/dist/preview/chunk.NX7IIZLO.js +0 -1
  184. package/dist/preview/chunk.O45VO36H.js +0 -1
  185. package/dist/preview/chunk.OAIWGWGU.js +0 -3
  186. package/dist/preview/chunk.OVO6L5IP.js +0 -88
  187. package/dist/preview/chunk.PCEYZQAW.js +0 -1
  188. package/dist/preview/chunk.PVEPU6EA.js +0 -1
  189. package/dist/preview/chunk.QO7MDWID.js +0 -1
  190. package/dist/preview/chunk.RQBEQYB2.js +0 -1
  191. package/dist/preview/chunk.SA34Y3X5.js +0 -2
  192. package/dist/preview/chunk.SAHNXAV3.js +0 -1
  193. package/dist/preview/chunk.SUPWMV2F.js +0 -1
  194. package/dist/preview/chunk.TPG6IY4M.js +0 -1
  195. package/dist/preview/chunk.UT6642FC.js +0 -1
  196. package/dist/preview/chunk.V3N34DSU.js +0 -1
  197. package/dist/preview/chunk.W72TTRLX.js +0 -20
  198. package/dist/preview/chunk.X5G7FOPY.js +0 -12
  199. package/dist/preview/chunk.YEVA72L2.js +0 -1
  200. package/dist/preview/chunk.YLWON7X3.js +0 -1
  201. package/dist/preview/chunk.YUH43J2K.js +0 -1
  202. package/dist/preview/chunk.ZXZNAG35.js +0 -1
@@ -1,4 +1,4 @@
1
- var __graviewPreload=(base,files)=>{if(typeof document>"u")return;const asked=globalThis.__graviewPreloaded??=new Set;for(const file of files){const href=new URL(file,base).href;if(asked.has(href))continue;asked.add(href);const link=document.createElement("link");link.rel="modulepreload";link.href=href;document.head.append(link)}};import{a as Se,b as $e,c as ze,d as $a,e as za,h as Ee,i as Ce,k as Ae,l as Te,m as Ea}from"./chunk.EXEZBZGW.js";import{c as ke}from"./chunk.NTLHEHOM.js";import{g as ya,h as ka}from"./chunk.V2GSBYDK.js";import"./chunk.NLBIX7LH.js";import{b as ma,c as fa,d as ye,e as ha}from"./chunk.GACKGEUY.js";import{a as ba}from"./chunk.HJCQ6I3S.js";import{b as xa}from"./chunk.KVEDIBXS.js";import"./chunk.7VT3TRHR.js";import{b as la}from"./chunk.VQAQQW4Q.js";import{b as fe,d as xe,e as be}from"./chunk.DWPU56S5.js";import"./chunk.7FRPNQU4.js";import{b as he}from"./chunk.BDHKWVNX.js";import"./chunk.ZH4NWRWB.js";import"./chunk.GUMJEVVP.js";import"./chunk.SAHNXAV3.js";import"./chunk.UGJSMNVO.js";import{p as va,q as wa,r as ua}from"./chunk.NR5ODXMO.js";import"./chunk.E5GM2SMO.js";import"./chunk.NQZ73QV7.js";import"./chunk.O45VO36H.js";import"./chunk.UT6642FC.js";import{e as Sa}from"./chunk.QO7MDWID.js";import"./chunk.FOP5RBGF.js";import"./chunk.TI4OSTQV.js";import"./chunk.MAFFUPCR.js";import"./chunk.GZHZLJBF.js";import{c as oa,d as da,e as Z,o as sa}from"./chunk.RQBEQYB2.js";import"./chunk.OJGHDWI6.js";import"./chunk.6VAFNCR4.js";import"./chunk.N4M54YK6.js";import"./chunk.KVJFY7N5.js";import"./chunk.DPHTUTOS.js";import{H as ca,b as Ye,e as ta,f as ia,j as Wa,m as na,o as pa,v as ga}from"./chunk.2UIUMG23.js";import{Da as pe,G as O,Ka as ea,La as K,Oa as aa,R as f,Sa as ra,X as Xe,Z as Je,_ as S,aa as le,ha as Ze,i as ue,j as ne,m as Q,n as oe,o as me,r as de,x as je,y as se,z as Qe}from"./chunk.KA44WNB4.js";import{a as j}from"./chunk.SDO3U72B.js";import{U as _e,ac as Ve,ga as Ue,ia as ie,vc as H,xc as P}from"./chunk.4TJOS4C7.js";import"./chunk.2AZTW66C.js";import{b as p}from"./chunk.AJZBJBMO.js";function qa(e){return`
1
+ var __graviewPreload=(base,files)=>{if(typeof document>"u")return;const asked=globalThis.__graviewPreloaded??=new Set;for(const file of files){const href=new URL(file,base).href;if(asked.has(href))continue;asked.add(href);const link=document.createElement("link");link.rel="modulepreload";link.href=href;document.head.append(link)}};import{a as $e,b as ze,c as Ee,d as Ea,e as Ca,h as Ce,i as Ae,k as Te,l as Me,m as Aa}from"./chunk.ATWNWPME.js";import{c as Se}from"./chunk.4VJARLJ5.js";import{g as Sa,h as $a}from"./chunk.TL7UGUY4.js";import"./chunk.ETWREHXF.js";import{b as ha,c as xa,d as ke,e as ba}from"./chunk.YZ6UKKEL.js";import{a as ka}from"./chunk.HJCQ6I3S.js";import{b as ya}from"./chunk.XWLGHTH6.js";import"./chunk.TY6VILZB.js";import{b as ga}from"./chunk.F5FJHKWV.js";import{b as he,d as be,e as ye}from"./chunk.3L5USMQD.js";import"./chunk.GQI53L5P.js";import{b as xe}from"./chunk.LDE5HLTM.js";import"./chunk.GTUBIJTP.js";import"./chunk.73BJYIYS.js";import"./chunk.M5RHVUZ6.js";import"./chunk.QSZLY62B.js";import{p as ua,q as ma,r as fa}from"./chunk.7VX6TBNY.js";import"./chunk.64TFAR5Z.js";import"./chunk.5DZR46YG.js";import"./chunk.L5MDUZLQ.js";import"./chunk.IDQHSAAQ.js";import{e as za}from"./chunk.UEL7FLL7.js";import"./chunk.S64LCR23.js";import"./chunk.TI4OSTQV.js";import"./chunk.JJP5OL5E.js";import"./chunk.GZHZLJBF.js";import{c as sa,d as la,e as ee,o as pa}from"./chunk.JLR74UFP.js";import"./chunk.OJGHDWI6.js";import"./chunk.HG34MT7C.js";import"./chunk.TT6QBWRA.js";import"./chunk.UCS3CBT4.js";import"./chunk.O6SKKF4V.js";import{H as wa,b as Ze,e as oa,f as da,j as Fa,m as fe,o as ca,v as va}from"./chunk.ZK446PSX.js";import{$ as S,Ea as pe,G as K,La as ta,Ma as q,Pa as ia,S as f,Ta as na,Y as ea,_ as aa,ba as le,i as ue,ia as ra,j as ne,m as Y,n as oe,o as me,r as de,x as Xe,y as se,z as Je}from"./chunk.SGMVLKZO.js";import{a as Q}from"./chunk.SDO3U72B.js";import{Gc as B,Ic as D,U as je,ga as Qe,ia as ie,lc as Ye}from"./chunk.BLS2G3CD.js";import"./chunk.EJUZGIQ5.js";import{b as g}from"./chunk.AJZBJBMO.js";function Ga(e){return`
2
2
 
3
3
 
4
4
  .graview-altitude-control {
@@ -45,7 +45,7 @@ var __graviewPreload=(base,files)=>{if(typeof document>"u")return;const asked=gl
45
45
  transform: translateY(-4px) scale(1.05);
46
46
  box-shadow: var(--graview-lift-high);
47
47
  position: relative;
48
- z-index: ${H.lines};
48
+ z-index: ${B.lines};
49
49
  }
50
50
 
51
51
 
@@ -59,7 +59,7 @@ var __graviewPreload=(base,files)=>{if(typeof document>"u")return;const asked=gl
59
59
  left: 50%;
60
60
  top: 42px;
61
61
  transform: translateX(-50%);
62
- z-index: ${H.lines};
62
+ z-index: ${B.lines};
63
63
  display: grid;
64
64
  justify-items: center;
65
65
  gap: 4px;
@@ -71,8 +71,8 @@ var __graviewPreload=(base,files)=>{if(typeof document>"u")return;const asked=gl
71
71
 
72
72
  .graview-drive-in-marquee {
73
73
  display: grid;
74
- gap: ${da}px;
75
- width: ${oa}px;
74
+ gap: ${la}px;
75
+ width: ${sa}px;
76
76
  justify-items: stretch;
77
77
  }
78
78
  .graview-drive-in-thumb {
@@ -80,7 +80,7 @@ var __graviewPreload=(base,files)=>{if(typeof document>"u")return;const asked=gl
80
80
  display: grid;
81
81
  align-content: center;
82
82
  box-sizing: border-box;
83
- min-height: max(${Z/16}rem, ${Z}px);
83
+ min-height: max(${ee/16}rem, ${ee}px);
84
84
  padding: 3px 6px 3px 10px;
85
85
  border-left: 2px solid var(--graview-edge-bright, var(--graview-edge));
86
86
  color: var(--graview-ink);
@@ -95,7 +95,7 @@ var __graviewPreload=(base,files)=>{if(typeof document>"u")return;const asked=gl
95
95
  .graview-drive-in-thumb-press {
96
96
  position: absolute;
97
97
  inset: 0;
98
- min-height: max(${Z/16}rem, ${Z}px);
98
+ min-height: max(${ee/16}rem, ${ee}px);
99
99
  margin: 0;
100
100
  padding: 0;
101
101
  border: none;
@@ -128,7 +128,7 @@ var __graviewPreload=(base,files)=>{if(typeof document>"u")return;const asked=gl
128
128
  position: absolute;
129
129
  inset: 0;
130
130
  pointer-events: none;
131
- z-index: ${H.occupants};
131
+ z-index: ${B.occupants};
132
132
  }
133
133
  .graview-figure {
134
134
  position: absolute;
@@ -279,7 +279,7 @@ var __graviewPreload=(base,files)=>{if(typeof document>"u")return;const asked=gl
279
279
  transition: opacity 160ms ease;
280
280
  }
281
281
  .graview-kind-card[data-graview-emphasis="lit"] {
282
- z-index: ${H.stage};
282
+ z-index: ${B.stage};
283
283
  }
284
284
  .graview-kind-card[data-graview-emphasis="lit"] .graview-kind-face {
285
285
  border-color: var(--graview-accent) !important;
@@ -366,7 +366,7 @@ var __graviewPreload=(base,files)=>{if(typeof document>"u")return;const asked=gl
366
366
  position: absolute;
367
367
  inset: 0;
368
368
  pointer-events: none;
369
- z-index: ${H.seatMarks};
369
+ z-index: ${B.seatMarks};
370
370
  }
371
371
  .graview-seat-mark {
372
372
  position: absolute;
@@ -466,7 +466,7 @@ var __graviewPreload=(base,files)=>{if(typeof document>"u")return;const asked=gl
466
466
  }
467
467
  .graview-ribbon-said,
468
468
  .graview-record-link-said {
469
- z-index: ${H.tieLabels};
469
+ z-index: ${B.tieLabels};
470
470
  box-sizing: border-box;
471
471
  white-space: nowrap;
472
472
  font-size: 0.8125rem;
@@ -620,7 +620,7 @@ var __graviewPreload=(base,files)=>{if(typeof document>"u")return;const asked=gl
620
620
  position: absolute;
621
621
  top: -9px;
622
622
  right: 14px;
623
- z-index: ${H.tag};
623
+ z-index: ${B.tag};
624
624
  display: var(--graview-kit-tags, inline-flex);
625
625
  align-items: center;
626
626
  gap: 5px;
@@ -756,7 +756,7 @@ var __graviewPreload=(base,files)=>{if(typeof document>"u")return;const asked=gl
756
756
  left: 0;
757
757
  bottom: calc(100% + 6px);
758
758
 
759
- z-index: ${P("popover")};
759
+ z-index: ${D("popover")};
760
760
  margin: 0;
761
761
  padding: 6px;
762
762
  list-style: none;
@@ -828,7 +828,7 @@ var __graviewPreload=(base,files)=>{if(typeof document>"u")return;const asked=gl
828
828
  border-radius: 5px !important;
829
829
  background: var(--graview-panel) !important;
830
830
  box-shadow: 0 1px 2px rgba(0, 0, 0, ${e==="light"?"0.08":"0.3"}) !important;
831
- z-index: ${H.tag};
831
+ z-index: ${B.tag};
832
832
  }
833
833
  [data-graview-altitude] [data-graview-plot] .graview-kind-face {
834
834
  top: calc(var(--graview-front-y) + 4px) !important;
@@ -929,7 +929,7 @@ var __graviewPreload=(base,files)=>{if(typeof document>"u")return;const asked=gl
929
929
  [data-graview-altitude] [data-graview-plot]:hover,
930
930
  [data-graview-altitude] [data-graview-plot]:focus-within,
931
931
  [data-graview-altitude] [data-graview-plot]:has(.graview-drive-in[data-graview-showing]) {
932
- z-index: ${H.opened} !important;
932
+ z-index: ${B.opened} !important;
933
933
  }
934
934
 
935
935
  [data-graview-altitude] [data-graview-landmark]:not([data-graview-plot] *) .graview-kind-face {
@@ -980,7 +980,7 @@ var __graviewPreload=(base,files)=>{if(typeof document>"u")return;const asked=gl
980
980
  right: calc(16px + var(--graview-dock, 0px));
981
981
  bottom: calc(16px + var(--graview-scene-foot, var(--graview-sheet, 0px)));
982
982
 
983
- z-index: ${H.zoom};
983
+ z-index: ${B.zoom};
984
984
  display: inline-flex;
985
985
  align-items: center;
986
986
  gap: 2px;
@@ -1123,5 +1123,5 @@ var __graviewPreload=(base,files)=>{if(typeof document>"u")return;const asked=gl
1123
1123
  }
1124
1124
  [data-graview-connector][data-graview-activity] {
1125
1125
  animation: graview-relation 1200ms cubic-bezier(0.22, 1, 0.36, 1);
1126
- }`}function Me(e="dark",n={}){let s=qa(e);return n.scope===void 0?s:Ye(s,n.scope)}var B=p(O(),1);var W=p(f(),1),Fa=pe(j(()=>(__graviewPreload(import.meta.url,["./chunk.2UIUMG23.js","./chunk.KA44WNB4.js","./chunk.SDO3U72B.js","./chunk.4TJOS4C7.js","./chunk.2AZTW66C.js","./chunk.AJZBJBMO.js"]),import("./chunk.HC5N3CT2.js")))).part(e=>(0,W.jsx)(e.MapKey,{}),{quiet:!0});function Ie(){let{store:e}=S(),{view:n}=K(),s=le(),o=(0,B.useMemo)(()=>e.graph.allEdges().length>0,[e,s]),[r,v]=(0,B.useState)(!1),g=(0,B.useId)(),c=(0,B.useRef)(null),M=(0,B.useRef)(null);return(0,B.useEffect)(()=>{if(!r)return;let z=x=>{let I=x.target;I&&(M.current?.contains(I)||c.current?.contains(I))||v(!1)};return document.addEventListener("pointerdown",z,!0),()=>document.removeEventListener("pointerdown",z,!0)},[r]),o?(0,W.jsxs)("div",{style:{display:"contents"},onKeyDown:z=>{z.key!=="Escape"||!r||(z.preventDefault(),z.stopPropagation(),v(!1),c.current?.focus({preventScroll:!0}))},children:[(0,W.jsx)("button",{ref:c,type:"button","data-testid":"lines-key","aria-expanded":r,"aria-controls":g,title:"What the lines mean",onClick:()=>v(z=>!z),style:{position:"absolute",top:60,right:"calc(14px + var(--graview-dock, 0px))",zIndex:P("overview"),height:30,padding:"0 11px",borderRadius:8,borderColor:"transparent",fontSize:"0.8125rem",color:r?"var(--graview-accent)":"var(--graview-ink-muted)",background:"var(--graview-float)",boxShadow:"var(--graview-lift-low)"},children:"Key"}),r?(0,W.jsxs)("div",{ref:M,id:g,"data-testid":"lines-key-pane","data-graview-offstage":"",style:{position:"absolute",top:98,right:"calc(14px + var(--graview-dock, 0px))",zIndex:P("rail"),width:za,maxHeight:"calc(100cqh - 120px)",overflowY:"auto",boxSizing:"border-box",padding:"8px 8px",borderRadius:10,border:"1px solid var(--graview-edge)",background:"var(--graview-float)",boxShadow:"var(--graview-lift-high)"},children:[n.overview?(0,W.jsx)(Fa,{}):null,(0,W.jsx)($a,{inside:!0,widthOf:ba})]}):null]}):null}var ce=p(O(),1),ge=p(f(),1);function Ca(e){return e.lens!==null?{what:"lens",kind:e.lens}:e.records.length===1&&e.districts.length===0?{what:"record",id:e.records[0]}:e.districts.length===1&&e.records.length===0?{what:"district",kind:e.districts[0]}:null}var Ga=pe(j(()=>(__graviewPreload(import.meta.url,["./chunk.V2GSBYDK.js","./chunk.XTMOFRHL.js","./chunk.GACKGEUY.js","./chunk.HJCQ6I3S.js","./chunk.KVEDIBXS.js","./chunk.7VT3TRHR.js","./chunk.GUMJEVVP.js","./chunk.4VW6THJF.js","./chunk.SAHNXAV3.js","./chunk.DHAK6PPX.js","./chunk.UGJSMNVO.js","./chunk.NR5ODXMO.js","./chunk.E5GM2SMO.js","./chunk.NQZ73QV7.js","./chunk.O45VO36H.js","./chunk.UT6642FC.js","./chunk.MAFFUPCR.js","./chunk.WVUJXDXZ.js","./chunk.TPG6IY4M.js","./chunk.NFDLCUCC.js","./chunk.X7JMJSLU.js","./chunk.PPRSGM64.js","./chunk.5Y3Q7ONN.js","./chunk.KTFUVR4V.js","./chunk.GZHZLJBF.js","./chunk.RQBEQYB2.js","./chunk.OJGHDWI6.js","./chunk.6VAFNCR4.js","./chunk.N4M54YK6.js","./chunk.KVJFY7N5.js","./chunk.DPHTUTOS.js","./chunk.2UIUMG23.js","./chunk.KA44WNB4.js","./chunk.SDO3U72B.js","./chunk.4TJOS4C7.js","./chunk.2AZTW66C.js","./chunk.AJZBJBMO.js"]),import("./chunk.CJ23XTSW.js")))),_a=Ga.part((e,n)=>(0,ge.jsx)(e.MapPanelFor,{showing:n.showing}),{what:"This panel",quiet:!0});function Re(){let{store:e,view:n,selection:s,hiddenKinds:o,seatTalk:r}=S();le();let v=(0,ce.useSyncExternalStore)(r.subscribe,()=>r.get().draft!==null,()=>!1);if(!n.overview||v)return null;let g=Ca(xa(s,{...n,beside:!0},c=>e.graph.getNode(c)?.kind));return!g||g.what!=="record"&&(o.has(g.kind)||!e.schema.kinds.includes(g.kind))?null:(0,ge.jsx)(ce.Suspense,{fallback:null,children:(0,ge.jsx)(_a,{showing:g})})}var Ua=p(O(),1);var D=p(f(),1);function Le(){let{view:e,go:n}=K(),{store:s,views:o,hiddenKinds:r}=S(),v=e.overview??!1,g=o.places().map($=>$.kind).filter($=>!r.has($)),c=ca(e,s.schema.kinds,g),M=()=>{n(ne(Q(e,!1),c))},z=(()=>{if(!c)return null;let $=je(c)[0],y=e.within?.view,C=(y?o.places().find(R=>R.as===y):void 0)??($?o.places().filter(R=>R.kind===$).at(-1):void 0);return C?C.title:$?ie(s.schema,$):s.graph.getNode(c)?.label??null})(),x=v?"Close the map":"Up",I=v&&z?`Close the map, down to ${z}`:x;return(0,D.jsxs)("button",{type:"button","data-testid":"overview",className:"graview-altitude-control","aria-pressed":v,"aria-label":I,title:v?I:"Up \u2014 the whole thing, from above",onClick:()=>v?M():n(Q(e,!0)),style:{position:"absolute",top:14,right:"calc(14px + var(--graview-dock, 0px))",zIndex:P("overview"),display:"inline-flex",alignItems:"center",justifyContent:"center",gap:7,height:38,padding:"0 13px 0 11px",borderRadius:8,borderColor:"transparent",fontSize:"0.875rem",whiteSpace:"nowrap",background:"var(--graview-float)",boxShadow:"var(--graview-lift-low)","--graview-altitude":v?1:0,...v?{color:"var(--graview-accent)"}:{}},children:[(0,D.jsxs)("svg",{className:"graview-altitude-mark",width:"16",height:"16",viewBox:"0 0 12 12","aria-hidden":"true",children:[(0,D.jsx)("ellipse",{className:"graview-altitude-mark-ring",cx:"6",cy:"6.6",rx:"5",ry:"2.6",fill:"none",stroke:"currentColor",strokeWidth:"0.9"}),(0,D.jsx)("circle",{className:"graview-altitude-mark-apex",cx:"6",cy:"4",r:"1.5",fill:"currentColor"}),(0,D.jsx)("circle",{className:"graview-altitude-mark-wing","data-side":"left",cx:"1.6",cy:"7.4",r:"1.2",fill:"currentColor"}),(0,D.jsx)("circle",{className:"graview-altitude-mark-wing","data-side":"right",cx:"10.4",cy:"7.4",r:"1.2",fill:"currentColor"})]}),(0,D.jsx)("span",{className:"graview-altitude-label",children:x})]})}var Ne=p(f(),1);function He(){let{administered:e}=S(),{view:n,go:s}=K(),o=e.filter(r=>r.canShow);return o.length===0?null:(0,Ne.jsx)("div",{role:"group","aria-label":"Administered","data-testid":"administered",style:{display:"flex",gap:6},children:o.map(r=>(0,Ne.jsx)("button",{type:"button","aria-pressed":r.shown,"data-testid":`show-${r.name}`,title:r.shown?`Hide the ${r.name}'s own districts again`:r.description??`Show the ${r.name}'s own districts beside the domain`,onClick:()=>s(ma(n,r.name,!r.shown)),style:{padding:"3px 11px",borderRadius:999,fontSize:"0.875rem",borderWidth:1,borderStyle:"solid",borderColor:r.shown?"var(--graview-accent)":"var(--graview-edge)",color:r.shown?"var(--graview-accent)":"var(--graview-ink-muted)",background:r.shown?"var(--graview-panel)":"transparent"},children:r.shown?`Hide the ${r.name}`:`Show the ${r.name}`},r.name))})}var h=p(O(),1);var l=p(f(),1);Xe({search:wa,touchWeights:va});var Va=e=>e.about==="rule"?"rule:":e.about==="act"?"act:":e.kind;function Ia({compact:e=!1}){let{store:n,view:s,setView:o,principal:r,setMenuAt:v,brand:g,aiDesk:c,selection:M}=S(),z=ia(c),x=Je(),I=ea(),$=sa().marks.flag,y=(0,h.useRef)(null),C=(0,h.useId)(),[R,m]=(0,h.useState)(!1),[F,ee]=(0,h.useState)(null),[J,ae]=(0,h.useState)(null),A=s.q??"";(0,h.useEffect)(()=>{let a=t=>{if(t.defaultPrevented)return;let i=t.key.toLowerCase()==="k"&&(t.metaKey||t.ctrlKey)&&!t.altKey&&!t.shiftKey,w=t.key==="/"&&!t.metaKey&&!t.ctrlKey&&!t.altKey;if(!i&&!w)return;let d=y.current;if(!d)return;let _=d.closest("[data-graview-embed]"),L=t.target,U=L===document.body||L===document.documentElement||L===window;if(_&&!(i&&U||L instanceof Node&&_.contains(L)))return;let V=document.activeElement,Ka=V instanceof HTMLInputElement||V instanceof HTMLTextAreaElement||V instanceof HTMLSelectElement||V instanceof HTMLElement&&V.isContentEditable;w&&Ka||(t.preventDefault(),d.getClientRects().length===0&&d.closest("[data-graview-app-bar]")?.querySelector('[data-testid="app-find-open"]')?.click(),d.focus({preventScroll:!0}),d.select(),m(!0))};return window.addEventListener("keydown",a),()=>window.removeEventListener("keydown",a)},[]);let We=(0,h.useMemo)(()=>J&&A.trim()?ua(n,J,x?.words??A,{principal:r,limit:4}):[],[n,A,x,J,r]),ve=(0,h.useMemo)(()=>{let a=new Map;for(let[t,i]of(x?.hits??[]).entries()){if(i.about==="act")continue;let w=Va(i),d=a.get(w)??[];if(d.push({id:`${C}-${t}`,hit:i}),a.set(w,d),i.about==="node"&&i.id===J)for(let[_,L]of We.entries())d.push({id:`${C}-${t}-act-${_}`,hit:L})}return[...a.entries()]},[x,We,J,C]),N=z&&A.trim()?{id:`${C}-ask`,ask:A.trim()}:null,k=(0,h.useMemo)(()=>[...ve.flatMap(([,a])=>a),...N?[N]:[]],[ve,N?.ask]),T=k.find(a=>a.id===F)??k[0],qe=(x?.hits??[]).filter(a=>a.about==="node").length;(0,h.useEffect)(()=>{ee(null),ae(null)},[A]);let re=(0,h.useRef)(null);(0,h.useEffect)(()=>{let a=re.current;if(!a)return;re.current=null;let t=0,i=()=>{let w=document.querySelector(`[data-graview-view="aggregate:${CSS.escape(a)}"]`),d=document.activeElement;if(!(!d||d===document.body||d===document.documentElement||d===y.current||d===w))return;let L=[...w?.querySelectorAll('[role="group"][aria-label="Arrange"] :is(button, input)')??[]].find(U=>U.checkVisibility?.()??!0);if(L)return L.focus({preventScroll:!0});w&&w.tabIndex>=0&&d!==w&&w.focus({preventScroll:!0}),++t<240&&requestAnimationFrame(i)};requestAnimationFrame(i)},[s]);let G=a=>{if(a){if(ee(a.id),"ask"in a){ae(null);return}a.hit.about==="node"?ae(a.hit.id):a.hit.about!=="act"&&ae(null)}},Fe=a=>{let t=document.getElementById(C),i=t?.querySelector('[role="option"]')?.getBoundingClientRect().height??0,w=t?.clientHeight??0;return Math.min(a,i>0&&w>0?Math.max(1,Math.floor(w/i)-1):Xa)};(0,h.useEffect)(()=>{F&&document.getElementById(F)?.scrollIntoView?.({block:"nearest"})},[F]);let we=a=>{if(!a)return;if("ask"in a){ta(c,{pointed:{...M[0]!==void 0?{on:M[0]}:{},about:M},asked:a.ask}),o(i=>ye(i)),m(!1);return}let t=a.hit;switch(t.about){case"node":o(i=>oe(ne(Q(i,!1),t.id),[t.id]));break;case"kind":o(i=>se(Q(i,!1),de(t.kind),{ownPicture:!0})),re.current=t.kind;break;case"place":o(i=>Qe(i,t.kind,t.as)),re.current=t.kind;break;case"rule":{let i=I.filter(w=>w.invariant===t.name).flatMap(w=>w.nodeIds);o(w=>oe(w,[...new Set(i)]));break}case"act":{o(w=>oe(w,[t.subject]));let i=y.current?.getBoundingClientRect();v({x:i?.left??0,y:(i?.bottom??0)+6,on:t.subject});break}}m(!1),y.current?.blur()},Da=x?Ya(x.byKind,x.hits,n.schema):"",te=R&&A.trim().length>0,Oa=(0,h.useCallback)(()=>{let a=y.current?.closest("[data-graview-app-bar]")?.getBoundingClientRect();if(a)return{x:a.right,y:a.bottom-Za};let t=y.current?.getBoundingClientRect();return t?{x:t.right,y:t.bottom}:null},[]),Ge=ra("find",{open:te,onOpenChange:a=>{a||m(!1)},...e?{at:Oa}:{}});return(0,l.jsxs)("div",{style:{position:"relative",minWidth:0,flex:"1 1 auto"},"data-testid":"find",children:[(0,l.jsx)("input",{ref:a=>{y.current=a,Ge.trigger.ref(a)},"data-graview-popover-trigger":"find",type:"search",role:"combobox","aria-label":"Find anything","aria-expanded":te,"aria-controls":C,"aria-autocomplete":"list",...te&&T?{"aria-activedescendant":T.id}:{},"data-testid":"find-box",placeholder:"Find\u2026","aria-keyshortcuts":"/ Meta+K Control+K",value:A,onChange:a=>{let t=a.target.value;m(!0),o(i=>fa(i,t.length>0?t:null))},onFocus:()=>m(!0),onBlur:()=>m(!1),onKeyDown:a=>{let t=F!==null&&T?k.indexOf(T):-1,i=d=>d!==void 0&&!("ask"in d)&&d.hit.about==="act",w=t>=0&&T!==void 0&&!("ask"in T)&&T.hit.about==="node";if(a.key==="ArrowDown"){a.preventDefault(),m(!0);let d=t+1;if(w)for(;d<k.length-1&&i(k[d]);)d+=1;G(k[Math.min(k.length-1,d)])}else if(a.key==="ArrowUp")a.preventDefault(),G(k[Math.max(0,t-1)]);else if((a.key==="PageDown"||a.key==="PageUp")&&k.length>0){a.preventDefault(),m(!0);let d=k.flatMap((U,V)=>i(U)?[]:[V]),_=Math.max(0,d.findIndex(U=>U>=Math.max(t,0))),L=a.key==="PageDown"?Fe(k.length):-Fe(k.length);G(k[d[Math.min(d.length-1,Math.max(0,(t<0?-1:_)+L))]])}else if(a.key==="ArrowRight"&&w&&i(k[t+1]))a.preventDefault(),G(k[t+1]);else if(a.key==="ArrowLeft"&&i(T)){a.preventDefault();let d=t-1;for(;d>0&&i(k[d]);)d-=1;G(k[d])}else a.key==="Enter"?(a.preventDefault(),we(T)):a.key==="Escape"&&(a.preventDefault(),A?o(d=>ye(d)):y.current?.blur())},style:{width:"100%",boxSizing:"border-box",minWidth:0,height:30,padding:"0 var(--graview-bar-find-end, 10px) 0 10px",font:"inherit",fontSize:"0.875rem",color:"var(--graview-ink)",background:"var(--graview-panel)",border:`1px solid ${A?"var(--graview-accent)":"var(--graview-edge)"}`,borderRadius:8}}),(0,l.jsx)("span",{role:"status","aria-live":"polite",style:na,"data-testid":"find-count",children:A.trim()?Da:""}),(0,l.jsxs)("div",{...Ge.pane,id:C,role:"listbox","aria-label":A?`What \u201C${A}\u201D finds`:"What the words find","data-testid":"find-strip",hidden:!te,onMouseDown:a=>a.preventDefault(),style:e?{...Ta,...er}:Ta,children:[k.every(a=>"ask"in a)?(0,l.jsxs)("p",{role:"presentation",style:{margin:0,padding:"10px 12px",color:"var(--graview-ink-muted)",fontSize:"0.875rem"},"data-testid":"find-nothing",children:["Nothing here is called \u201C",x?.words||A,"\u201D."]}):ve.map(([a,t])=>(0,l.jsxs)("div",{role:"group","aria-label":Aa(a,n.schema),children:[(0,l.jsxs)("div",{role:"presentation",style:ar,children:[a!=="rule:"?(0,l.jsx)(Qa,{kind:a,accents:g?.accents}):null,Aa(a,n.schema)]}),t.map(i=>(0,l.jsx)("div",{id:i.id,role:"option","aria-selected":i===T,"data-testid":"find-hit","data-about":i.hit.about,...i.hit.about==="node"&&i.hit.near?{"data-near":""}:{},onMouseEnter:()=>G(i),onClick:()=>we(i),style:{...Ma,...i.hit.about==="act"?{paddingLeft:30}:{},background:i===T?"var(--graview-panel-muted)":"transparent"},children:(0,l.jsx)(ja,{hit:i.hit,flag:$})},i.id))]},a)),N?(0,l.jsx)("div",{id:N.id,role:"option","aria-selected":N===T||T?.id===N.id,"data-testid":"find-ask",onMouseEnter:()=>G(N),onClick:()=>we(N),style:{...Ma,borderTop:"1px solid var(--graview-edge)",marginTop:4,background:T?.id===N.id?"var(--graview-panel-muted)":"transparent"},children:(0,l.jsxs)("span",{children:["Ask: ",(0,l.jsxs)("span",{style:{fontWeight:600},children:["\u2018",N.ask,"\u2019"]})]})}):null,qe>Ja?(0,l.jsxs)("p",{role:"presentation",style:{margin:0,padding:"6px 12px 2px",color:"var(--graview-ink-faint)",fontSize:"0.75rem"},"data-testid":"find-more-words",children:[_e(qe)," found: another word of the name narrows them."]}):null,x&&x.searched.past===!1&&x.searched.kinds.some(a=>n.schema.tryDefinition(a)?.lifecycle)?(0,l.jsx)("p",{role:"presentation",style:{margin:0,padding:"6px 12px 8px",color:"var(--graview-ink-faint)",fontSize:"0.75rem"},children:"Current ones; add is:any for the past."}):null]})]})}function ja({hit:e,flag:n}){switch(e.about){case"node":return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("span",{style:{fontWeight:600,overflowWrap:"anywhere"},children:[e.flagged?(0,l.jsxs)("span",{style:{color:"var(--graview-warn)"},children:[n," "]}):null,e.label,e.apart?(0,l.jsxs)("span",{style:Y,children:[" \xB7 ",e.apart]}):null,e.current?null:(0,l.jsx)("span",{style:Y,children:" \xB7 past"})]}),e.near?(0,l.jsxs)("span",{style:Y,"data-testid":"find-near",children:["Near \u201C",e.why.asked,"\u201D",e.why.field!=="label"?` \u2014 ${e.why.reading.toLowerCase()}: ${e.why.fragment}`:""]}):e.why.field!=="label"?(0,l.jsxs)("span",{style:Y,children:[e.why.reading.toLowerCase(),": ",e.why.fragment]}):null]});case"kind":return(0,l.jsxs)("span",{children:[e.label,(0,l.jsxs)("span",{style:Y,children:[" \xB7 ",e.count," match"]})]});case"place":return(0,l.jsxs)("span",{children:["Go to ",e.title]});case"rule":return(0,l.jsxs)("span",{children:["The rule \u201C",e.label,"\u201D"]});case"act":return(0,l.jsxs)("span",{style:e.destructive?{color:"var(--graview-warn)"}:void 0,children:[e.title,(0,l.jsxs)("span",{style:Y,children:[" \xB7 ",e.why.field==="title"?"act":`on ${e.why.fragment}`]})]})}}function Qa({kind:e,accents:n}){let s=Math.round(Ve(e,n));return(0,l.jsx)("span",{"aria-hidden":"true",style:{width:8,height:8,borderRadius:2,flex:"0 0 auto",background:`hsl(${s} 55% 52%)`}})}function Aa(e,n){return e==="rule:"?"Rules":e==="act:"?"Acts":n.tryDefinition(e)?.plural??`${e}s`}function Ya(e,n,s){let o=Object.entries(e).map(([g,c])=>Ue(s,g,c)),r=n.filter(g=>g.about==="kind"||g.about==="place"||g.about==="rule").length;r>0&&o.push(`${r} ${r===1?"place or rule":"places and rules"}`);let v=n.filter(g=>g.about==="node"&&g.near).length;return o.length===0?"Nothing found":`${o.join(", ")} found${v>0?`, ${v} of them near`:""}`}var Xa=10,Ja=12,Ta={...aa,width:"min(26rem, calc(100vw - 24px))",maxHeight:"min(60vh, 28rem)",overflowY:"auto",boxSizing:"border-box",background:"var(--graview-panel)",borderTop:"1px solid var(--graview-edge)",borderRight:"1px solid var(--graview-edge)",borderBottom:"1px solid var(--graview-edge)",borderLeft:"1px solid var(--graview-edge)",borderRadius:10,boxShadow:"0 10px 28px rgb(0 0 0 / 0.18)",padding:"4px 0"},Za=6,er={width:"var(--graview-bar-width, 100vw)",maxHeight:"55vh",borderRadius:0,borderLeft:"none",borderRight:"none"},ar={display:"flex",alignItems:"center",gap:6,padding:"8px 12px 2px",fontSize:"0.6875rem",letterSpacing:"0.06em",textTransform:"uppercase",color:"var(--graview-ink-muted)"},Ma={display:"grid",gap:1,minHeight:32,padding:"5px 12px",alignContent:"center",cursor:"pointer",fontSize:"0.875rem",lineHeight:1.35,color:"var(--graview-ink)"},Y={color:"var(--graview-ink-muted)",fontSize:"0.8125rem",fontWeight:400};var X=p(O(),1);var Be=p(Wa(),1);var La=p(f(),1);function Ra(){let{following:e,follow:n}=S();return e?(0,La.jsxs)("button",{type:"button","data-testid":"following-who",onClick:()=>n(null),title:"Press, or Escape, to stop following",style:{display:"inline-flex",alignItems:"center",gap:6,minHeight:24,padding:"2px 9px",borderRadius:999,border:"1px solid var(--graview-accent)",background:"transparent",color:"var(--graview-accent)",fontSize:"0.875rem",whiteSpace:"nowrap"},children:["following ",e.name]}):null}var Na=p(O(),1);var b=p(f(),1);function Ha({home:e,homeLabel:n,children:s,onPicture:o=!1}){let{view:r,focus:v,show:g,go:c}=K(),{store:M}=S(),{movedByHand:z}=S(),x=z&&(r.pan!==void 0||Object.keys(r.pins).length>0),I=r.focusId&&r.focusId!==e?M.graph.getNode(r.focusId):void 0,$=m=>ie(M.schema,m),y={display:"inline-flex",alignItems:"center",gap:6,minHeight:26,padding:"2px 6px",fontSize:"0.8125rem",borderRadius:6,border:"1px solid transparent",boxShadow:"none",background:"transparent",color:"var(--graview-ink-muted)",whiteSpace:"nowrap"},C=n!==void 0&&I!==void 0,R=[];if(I&&!o&&R.push({key:"focused",node:(0,b.jsxs)("button",{type:"button","data-testid":"focused",onClick:()=>c(me({...r,focusId:e},!1)),title:he(M,I.id),style:{...y,maxWidth:"min(14rem, 15vw)"},children:[(0,b.jsx)("span",{style:{minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},children:he(M,I.id)}),(0,b.jsx)("span",{"aria-hidden":"true",style:{opacity:.7},children:"\xD7"})]})}),r.past&&R.push({key:"past",node:(0,b.jsxs)("button",{type:"button","data-testid":"past",onClick:()=>c(ha(r,!1)),title:"Back to now \u2014 retired things leave the picture again",style:y,children:["the past",(0,b.jsx)("span",{"aria-hidden":"true",style:{opacity:.7},children:"\xD7"})]})}),r.zoom&&R.push({key:"zoomed",node:(0,b.jsxs)("button",{type:"button","data-testid":"zoomed",onClick:()=>c(me(r,!1)),title:"Zoom back out",style:y,children:["zoomed in",(0,b.jsx)("span",{"aria-hidden":"true",style:{opacity:.7},children:"\xD7"})]})}),x&&R.push({key:"moved",node:(0,b.jsx)("button",{type:"button","data-testid":"moved",onClick:()=>c(ue(r)),title:"Put the camera and everything you dragged back where the layout wanted them",style:y,children:"Reset view"})}),r.relation){let m=r.relation;R.push({key:"raised",node:(0,b.jsxs)("span",{style:{display:"inline-flex",alignItems:"center"},children:[(0,b.jsxs)("button",{type:"button","data-testid":"raised-into",onClick:()=>c(se(r,de(m),{ownPicture:!0})),title:`Go into the ${$(m).toLowerCase()}`,"aria-label":`Go into the ${$(m).toLowerCase()}`,style:{...y,color:"var(--graview-ink)"},children:[$(m),(0,b.jsx)("span",{"aria-hidden":"true",style:{opacity:.7},children:"\u2198"})]}),(0,b.jsx)("button",{type:"button","data-testid":"raised",onClick:()=>g(null),title:`Stop showing ${$(m).toLowerCase()}`,"aria-label":`Stop showing ${$(m).toLowerCase()}`,style:{...y,minWidth:26,justifyContent:"center"},children:(0,b.jsx)("span",{"aria-hidden":"true",style:{opacity:.7},children:"\xD7"})})]})})}return o&&!C&&R.length===0&&s===void 0?null:(0,b.jsxs)("nav",{"aria-label":"View","data-testid":"trail",style:{display:"flex",alignItems:"center",gap:8,fontSize:"0.875rem",minWidth:0,...o?{pointerEvents:"auto",padding:"4px 6px",borderRadius:8,background:"var(--graview-float)",boxShadow:"var(--graview-lift-low)",overflow:"hidden"}:{}},children:[C?(0,b.jsx)("button",{type:"button",onClick:()=>v(e),style:{border:"none",background:"none",padding:"3px 0",minHeight:24,whiteSpace:"nowrap",color:"var(--graview-ink-muted)"},children:n}):null,R.map(({key:m,node:F},ee)=>(0,b.jsxs)(Na.Fragment,{children:[C||ee>0?(0,b.jsx)("span",{style:{color:"var(--graview-ink-faint)"},children:"\u203A"}):null,F]},m)),s]})}var E=p(f(),1);function Pe(){let[e,n]=(0,X.useState)([]),s=(0,X.useCallback)(o=>{n(r=>{let v=o.phase!=="running"&&r[0]?.name===o.name&&r[0]?.at===o.at;return[o,...v?r.slice(1):r].slice(0,12)})},[]);return[e,s]}function De({find:e,calls:n,seat:s,remembers:o=!1}){return e?(0,E.jsxs)(E.Fragment,{children:[(0,Be.createPortal)((0,E.jsx)(Ia,{compact:e.compact}),e.slot),e.own?(0,Be.createPortal)((0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(X.Suspense,{fallback:null,children:(0,E.jsx)(Ea,{})}),(0,E.jsx)(la,{calls:n,remembers:o,...s!==void 0?{seat:s}:{}})]}),e.own):null]}):null}function Oe({home:e=null}){return(0,E.jsxs)("div",{"data-graview-scene-trail":"",style:{position:"absolute",top:14,left:14,maxWidth:"calc(100% - 150px - var(--graview-dock, 0px))",zIndex:P("overview"),display:"flex",alignItems:"center",gap:6,minWidth:0,pointerEvents:"none"},children:[(0,E.jsx)(Ha,{home:e,onPicture:!0}),(0,E.jsx)("span",{style:{pointerEvents:"auto"},children:(0,E.jsx)(Ra,{})})]})}var q=p(O(),1);var Ba=p(f(),1),rr=j(()=>(__graviewPreload(import.meta.url,["./chunk.UGFDSE37.js","./chunk.2UIUMG23.js","./chunk.KA44WNB4.js","./chunk.SDO3U72B.js","./chunk.4TJOS4C7.js","./chunk.2AZTW66C.js","./chunk.AJZBJBMO.js"]),import("./chunk.TKMQROXF.js")));function Ke(){let{store:e,principal:n}=S(),s=(0,q.useContext)(pa),o=(0,q.useRef)(null),r=(0,q.useRef)(!1);return(0,q.useEffect)(()=>()=>void(r.current=!0),[]),(0,q.useEffect)(()=>{let v=e.batches().length,g=rr().then(c=>c.sceneWay(e,n,s,v,o.current),()=>{});return()=>void g.then(c=>c?.(r.current))},[e,n,s]),(0,Ba.jsx)("span",{ref:o,hidden:!0})}var Pa=p(O(),1);var u=p(f(),1);function Ht({address:e=!1,auto:n,quickAsk:s=!0,scheme:o,scope:r}){let v=(0,Pa.useMemo)(()=>`${Te({scope:`.${r}`})}
1127
- ${Me(o,{scope:`.${r}`})}`,[o,r]),g=ga(),[c]=Pe();return(0,u.jsx)(Ze.Provider,{value:!0,children:(0,u.jsxs)("div",{"data-embed-content":"",style:{position:"relative",flex:n?`0 0 ${Sa}px`:"1 1 auto",minHeight:0,containerType:"size"},children:[(0,u.jsx)("style",{children:v}),e?(0,u.jsx)(ka,{}):null,(0,u.jsx)(ya,{}),(0,u.jsx)(Oe,{}),(0,u.jsx)(Le,{}),(0,u.jsx)(Ie,{}),(0,u.jsx)($e,{}),(0,u.jsx)(ze,{face:"scene",on:s}),(0,u.jsx)(Re,{}),(0,u.jsx)(xe,{children:(0,u.jsx)(ke,{children:(0,u.jsx)(Ee,{children:(0,u.jsx)(Ae,{children:(0,u.jsx)(Se,{placement:"menu"})})})})}),(0,u.jsx)(be,{}),(0,u.jsx)(Ce,{}),(0,u.jsx)(De,{find:g,calls:c}),(0,u.jsx)(Ke,{}),(0,u.jsx)(fe,{face:"scene"})]})})}function Bt(){return(0,u.jsx)(He,{})}export{Ht as SceneFace,Bt as SceneKeeping};
1126
+ }`}function Ie(e="dark",n={}){let l=Ga(e);return n.scope===void 0?l:Ze(l,n.scope)}var P=g(K(),1);var W=g(f(),1),_a=pe(Q(()=>(__graviewPreload(import.meta.url,["./chunk.ZK446PSX.js","./chunk.SGMVLKZO.js","./chunk.SDO3U72B.js","./chunk.BLS2G3CD.js","./chunk.EJUZGIQ5.js","./chunk.AJZBJBMO.js"]),import("./chunk.4BQNG3W3.js")))).part(e=>(0,W.jsx)(e.MapKey,{}),{quiet:!0});function Re(){let{store:e}=S(),{view:n}=q(),l=le(),o=(0,P.useMemo)(()=>e.graph.allEdges().length>0,[e,l]),[r,w]=(0,P.useState)(!1),c=(0,P.useId)(),v=(0,P.useRef)(null),T=(0,P.useRef)(null);return(0,P.useEffect)(()=>{if(!r)return;let z=h=>{let M=h.target;M&&(T.current?.contains(M)||v.current?.contains(M))||w(!1)};return document.addEventListener("pointerdown",z,!0),()=>document.removeEventListener("pointerdown",z,!0)},[r]),o?(0,W.jsxs)("div",{style:{display:"contents"},onKeyDown:z=>{z.key!=="Escape"||!r||(z.preventDefault(),z.stopPropagation(),w(!1),v.current?.focus({preventScroll:!0}))},children:[(0,W.jsx)("button",{ref:v,type:"button","data-testid":"lines-key","aria-expanded":r,"aria-controls":c,title:"What the lines mean",onClick:()=>w(z=>!z),style:{position:"absolute",top:60,right:"calc(14px + var(--graview-dock, 0px))",zIndex:D("overview"),height:30,padding:"0 11px",borderRadius:8,borderColor:"transparent",fontSize:"0.8125rem",color:r?"var(--graview-accent)":"var(--graview-ink-muted)",background:"var(--graview-float)",boxShadow:"var(--graview-lift-low)"},children:"Key"}),r?(0,W.jsxs)("div",{ref:T,id:c,"data-testid":"lines-key-pane","data-graview-offstage":"",style:{position:"absolute",top:98,right:"calc(14px + var(--graview-dock, 0px))",zIndex:D("rail"),width:Ca,maxHeight:"calc(100cqh - 120px)",overflowY:"auto",boxSizing:"border-box",padding:"8px 8px",borderRadius:10,border:"1px solid var(--graview-edge)",background:"var(--graview-float)",boxShadow:"var(--graview-lift-high)"},children:[n.overview?(0,W.jsx)(_a,{}):null,(0,W.jsx)(Ea,{inside:!0,widthOf:ka})]}):null]}):null}var ce=g(K(),1),ge=g(f(),1);function Ta(e){return e.lens!==null?{what:"lens",kind:e.lens}:e.records.length===1&&e.districts.length===0?{what:"record",id:e.records[0]}:e.districts.length===1&&e.records.length===0?{what:"district",kind:e.districts[0]}:null}var Ua=pe(Q(()=>(__graviewPreload(import.meta.url,["./chunk.TL7UGUY4.js","./chunk.ZITDUHX3.js","./chunk.YZ6UKKEL.js","./chunk.HJCQ6I3S.js","./chunk.XWLGHTH6.js","./chunk.TY6VILZB.js","./chunk.73BJYIYS.js","./chunk.OKQ4JXTW.js","./chunk.M5RHVUZ6.js","./chunk.MRUDTYOL.js","./chunk.QSZLY62B.js","./chunk.7VX6TBNY.js","./chunk.64TFAR5Z.js","./chunk.5DZR46YG.js","./chunk.L5MDUZLQ.js","./chunk.IDQHSAAQ.js","./chunk.JJP5OL5E.js","./chunk.WVUJXDXZ.js","./chunk.6SHF6IL5.js","./chunk.MQISKON2.js","./chunk.GQX57JIE.js","./chunk.LJXAZ5TF.js","./chunk.QFI4L2HK.js","./chunk.KFHXTHIY.js","./chunk.GZHZLJBF.js","./chunk.JLR74UFP.js","./chunk.OJGHDWI6.js","./chunk.HG34MT7C.js","./chunk.TT6QBWRA.js","./chunk.UCS3CBT4.js","./chunk.O6SKKF4V.js","./chunk.ZK446PSX.js","./chunk.SGMVLKZO.js","./chunk.SDO3U72B.js","./chunk.BLS2G3CD.js","./chunk.EJUZGIQ5.js","./chunk.AJZBJBMO.js"]),import("./chunk.FKUVIG6D.js")))),Va=Ua.part((e,n)=>(0,ge.jsx)(e.MapPanelFor,{showing:n.showing}),{what:"This panel",quiet:!0});function Le(){let{store:e,view:n,selection:l,hiddenKinds:o,seatTalk:r}=S();le();let w=(0,ce.useSyncExternalStore)(r.subscribe,()=>r.get().draft!==null,()=>!1);if(!n.overview||w)return null;let c=Ta(ya(l,{...n,beside:!0},v=>e.graph.getNode(v)?.kind));return!c||c.what!=="record"&&(o.has(c.kind)||!e.schema.kinds.includes(c.kind))?null:(0,ge.jsx)(ce.Suspense,{fallback:null,children:(0,ge.jsx)(Va,{showing:c})})}var ja=g(K(),1);var O=g(f(),1);function Ne(){let{view:e,go:n}=q(),{store:l,views:o,hiddenKinds:r}=S(),w=e.overview??!1,c=o.places().map($=>$.kind).filter($=>!r.has($)),v=wa(e,l.schema.kinds,c),T=()=>{n(ne(Y(e,!1),v))},z=(()=>{if(!v)return null;let $=Xe(v)[0],x=e.within?.view,R=(x?o.places().find(b=>b.as===x):void 0)??($?o.places().filter(b=>b.kind===$).at(-1):void 0);return R?R.title:$?ie(l.schema,$):l.graph.getNode(v)?.label??null})(),h=w?"Close the map":"Up",M=w&&z?`Close the map, down to ${z}`:h;return(0,O.jsxs)("button",{type:"button","data-testid":"overview",className:"graview-altitude-control","aria-pressed":w,"aria-label":M,title:w?M:"Up \u2014 the whole thing, from above",onClick:()=>w?T():n(Y(e,!0)),style:{position:"absolute",top:14,right:"calc(14px + var(--graview-dock, 0px))",zIndex:D("overview"),display:"inline-flex",alignItems:"center",justifyContent:"center",gap:7,height:38,padding:"0 13px 0 11px",borderRadius:8,borderColor:"transparent",fontSize:"0.875rem",whiteSpace:"nowrap",background:"var(--graview-float)",boxShadow:"var(--graview-lift-low)","--graview-altitude":w?1:0,...w?{color:"var(--graview-accent)"}:{}},children:[(0,O.jsxs)("svg",{className:"graview-altitude-mark",width:"16",height:"16",viewBox:"0 0 12 12","aria-hidden":"true",children:[(0,O.jsx)("ellipse",{className:"graview-altitude-mark-ring",cx:"6",cy:"6.6",rx:"5",ry:"2.6",fill:"none",stroke:"currentColor",strokeWidth:"0.9"}),(0,O.jsx)("circle",{className:"graview-altitude-mark-apex",cx:"6",cy:"4",r:"1.5",fill:"currentColor"}),(0,O.jsx)("circle",{className:"graview-altitude-mark-wing","data-side":"left",cx:"1.6",cy:"7.4",r:"1.2",fill:"currentColor"}),(0,O.jsx)("circle",{className:"graview-altitude-mark-wing","data-side":"right",cx:"10.4",cy:"7.4",r:"1.2",fill:"currentColor"})]}),(0,O.jsx)("span",{className:"graview-altitude-label",children:h})]})}var He=g(f(),1);function Be(){let{administered:e}=S(),{view:n,go:l}=q(),o=e.filter(r=>r.canShow);return o.length===0?null:(0,He.jsx)("div",{role:"group","aria-label":"Administered","data-testid":"administered",style:{display:"flex",gap:6},children:o.map(r=>(0,He.jsx)("button",{type:"button","aria-pressed":r.shown,"data-testid":`show-${r.name}`,title:r.shown?`Hide the ${r.name}'s own districts again`:r.description??`Show the ${r.name}'s own districts beside the domain`,onClick:()=>l(ha(n,r.name,!r.shown)),style:{padding:"3px 11px",borderRadius:999,fontSize:"0.875rem",borderWidth:1,borderStyle:"solid",borderColor:r.shown?"var(--graview-accent)":"var(--graview-edge)",color:r.shown?"var(--graview-accent)":"var(--graview-ink-muted)",background:r.shown?"var(--graview-panel)":"transparent"},children:r.shown?`Hide the ${r.name}`:`Show the ${r.name}`},r.name))})}var m=g(K(),1);var s=g(f(),1);ea({search:ma,touchWeights:ua});var Qa=e=>e.about==="rule"?"rule:":e.about==="act"?"act:":e.kind;function La({compact:e=!1}){let{store:n,view:l,setView:o,principal:r,setMenuAt:w,brand:c,aiDesk:v,selection:T}=S(),z=da(v),h=aa(),M=ta(),$=pa().marks.flag,x=(0,m.useRef)(null),R=(0,m.useRef)(null),b=(0,m.useId)(),[L,I]=(0,m.useState)(!1),[G,We]=(0,m.useState)(null),[Z,ae]=(0,m.useState)(null),C=l.q??"";(0,m.useEffect)(()=>{let a=t=>{if(t.defaultPrevented)return;let i=t.key.toLowerCase()==="k"&&(t.metaKey||t.ctrlKey)&&!t.altKey&&!t.shiftKey,p=t.key==="/"&&!t.metaKey&&!t.ctrlKey&&!t.altKey;if(!i&&!p)return;let d=x.current;if(!d)return;let U=d.closest("[data-graview-embed]"),N=t.target,V=N===document.body||N===document.documentElement||N===window;if(U&&!(i&&V||N instanceof Node&&U.contains(N)))return;let j=document.activeElement,Wa=j instanceof HTMLInputElement||j instanceof HTMLTextAreaElement||j instanceof HTMLSelectElement||j instanceof HTMLElement&&j.isContentEditable;p&&Wa||(t.preventDefault(),d.getClientRects().length===0&&d.closest("[data-graview-app-bar]")?.querySelector('[data-testid="app-find-open"]')?.click(),d.focus({preventScroll:!0}),d.select(),I(!0))};return window.addEventListener("keydown",a),()=>window.removeEventListener("keydown",a)},[]);let Fe=(0,m.useMemo)(()=>Z&&C.trim()?fa(n,Z,h?.words??C,{principal:r,limit:4}):[],[n,C,h,Z,r]),ve=(0,m.useMemo)(()=>{let a=new Map;for(let[t,i]of(h?.hits??[]).entries()){if(i.about==="act")continue;let p=Qa(i),d=a.get(p)??[];if(d.push({id:`${b}-${t}`,hit:i}),a.set(p,d),i.about==="node"&&i.id===Z)for(let[U,N]of Fe.entries())d.push({id:`${b}-${t}-act-${U}`,hit:N})}return[...a.entries()]},[h,Fe,Z,b]),H=z&&C.trim()?{id:`${b}-ask`,ask:C.trim()}:null,k=(0,m.useMemo)(()=>[...ve.flatMap(([,a])=>a),...H?[H]:[]],[ve,H?.ask]),A=k.find(a=>a.id===G)??k[0],Ge=(h?.hits??[]).filter(a=>a.about==="node").length;(0,m.useEffect)(()=>{We(null),ae(null)},[C]);let re=(0,m.useRef)(null);(0,m.useEffect)(()=>{let a=re.current;if(!a)return;re.current=null;let t=0,i=()=>{let p=document.querySelector(`[data-graview-view="aggregate:${CSS.escape(a)}"]`),d=document.activeElement;if(!(!d||d===document.body||d===document.documentElement||d===x.current||d===R.current||d===p))return;let N=[...p?.querySelectorAll('[role="group"][aria-label="Arrange"] :is(button, input)')??[]].find(V=>V.checkVisibility?.()??!0);if(N)return N.focus({preventScroll:!0});p&&p.tabIndex>=0&&d!==p&&p.focus({preventScroll:!0}),++t<240?requestAnimationFrame(i):document.activeElement===R.current&&R.current?.blur()};requestAnimationFrame(i)},[l]);let _e=(a,t)=>{let i=document.querySelector(`[data-graview-view="aggregate:${CSS.escape(a)}"]`);if(i&&i.tabIndex>=0)return i.focus({preventScroll:!0});let p=R.current;if(!p)return x.current?.blur();p.setAttribute("aria-label",t),p.focus({preventScroll:!0})},_=a=>{if(a){if(We(a.id),"ask"in a){ae(null);return}a.hit.about==="node"?ae(a.hit.id):a.hit.about!=="act"&&ae(null)}},Ue=a=>{let t=document.getElementById(b),i=t?.querySelector('[role="option"]')?.getBoundingClientRect().height??0,p=t?.clientHeight??0;return Math.min(a,i>0&&p>0?Math.max(1,Math.floor(p/i)-1):Za)};(0,m.useEffect)(()=>{G&&document.getElementById(G)?.scrollIntoView?.({block:"nearest"})},[G]);let we=a=>{if(!a)return;if("ask"in a){oa(v,{pointed:{...T[0]!==void 0?{on:T[0]}:{},about:T},asked:a.ask}),o(i=>ke(i)),I(!1);return}let t=a.hit;switch(t.about){case"node":o(i=>oe(ne(Y(i,!1),t.id),[t.id]));break;case"kind":return o(i=>se(Y(i,!1),de(t.kind),{ownPicture:!0})),re.current=t.kind,I(!1),_e(t.kind,`Opening ${t.label}\u2026`);case"place":return o(i=>Je(i,t.kind,t.as)),re.current=t.kind,I(!1),_e(t.kind,`Opening ${t.title}\u2026`);case"rule":{let i=M.filter(p=>p.invariant===t.name).flatMap(p=>p.nodeIds);o(p=>oe(p,[...new Set(i)]));break}case"act":{o(p=>oe(p,[t.subject]));let i=x.current?.getBoundingClientRect();w({x:i?.left??0,y:(i?.bottom??0)+6,on:t.subject});break}}I(!1),x.current?.blur()},Ka=h?Ja(h.byKind,h.hits,n.schema):"",te=L&&C.trim().length>0,qa=(0,m.useCallback)(()=>{let a=x.current?.closest("[data-graview-app-bar]")?.getBoundingClientRect();if(a)return{x:a.right,y:a.bottom-ar};let t=x.current?.getBoundingClientRect();return t?{x:t.right,y:t.bottom}:null},[]),Ve=na("find",{open:te,onOpenChange:a=>{a||I(!1)},...e?{at:qa}:{}});return(0,s.jsxs)("div",{style:{position:"relative",minWidth:0,flex:"1 1 auto"},"data-testid":"find",children:[(0,s.jsx)("input",{ref:a=>{x.current=a,Ve.trigger.ref(a)},"data-graview-popover-trigger":"find",type:"search",role:"combobox","aria-label":"Find anything","aria-expanded":te,"aria-controls":b,"aria-autocomplete":"list",...te&&A?{"aria-activedescendant":A.id}:{},"data-testid":"find-box",placeholder:"Find\u2026","aria-keyshortcuts":"/ Meta+K Control+K",value:C,onChange:a=>{let t=a.target.value;I(!0),o(i=>xa(i,t.length>0?t:null))},onFocus:()=>I(!0),onBlur:()=>I(!1),onKeyDown:a=>{let t=G!==null&&A?k.indexOf(A):-1,i=d=>d!==void 0&&!("ask"in d)&&d.hit.about==="act",p=t>=0&&A!==void 0&&!("ask"in A)&&A.hit.about==="node";if(a.key==="ArrowDown"){a.preventDefault(),I(!0);let d=t+1;if(p)for(;d<k.length-1&&i(k[d]);)d+=1;_(k[Math.min(k.length-1,d)])}else if(a.key==="ArrowUp")a.preventDefault(),_(k[Math.max(0,t-1)]);else if((a.key==="PageDown"||a.key==="PageUp")&&k.length>0){a.preventDefault(),I(!0);let d=k.flatMap((V,j)=>i(V)?[]:[j]),U=Math.max(0,d.findIndex(V=>V>=Math.max(t,0))),N=a.key==="PageDown"?Ue(k.length):-Ue(k.length);_(k[d[Math.min(d.length-1,Math.max(0,(t<0?-1:U)+N))]])}else if(a.key==="ArrowRight"&&p&&i(k[t+1]))a.preventDefault(),_(k[t+1]);else if(a.key==="ArrowLeft"&&i(A)){a.preventDefault();let d=t-1;for(;d>0&&i(k[d]);)d-=1;_(k[d])}else a.key==="Enter"?(a.preventDefault(),we(A)):a.key==="Escape"&&(a.preventDefault(),C?o(d=>ke(d)):x.current?.blur())},style:{width:"100%",boxSizing:"border-box",minWidth:0,height:30,padding:"0 var(--graview-bar-find-end, 10px) 0 10px",font:"inherit",fontSize:"0.875rem",color:"var(--graview-ink)",background:"var(--graview-panel)",border:`1px solid ${C?"var(--graview-accent)":"var(--graview-edge)"}`,borderRadius:8}}),(0,s.jsx)("span",{role:"status","aria-live":"polite",style:fe,"data-testid":"find-count",children:C.trim()?Ka:""}),(0,s.jsx)("span",{ref:R,tabIndex:-1,role:"status",style:fe,"data-testid":"find-landing"}),(0,s.jsxs)("div",{...Ve.pane,id:b,role:"listbox","aria-label":C?`What \u201C${C}\u201D finds`:"What the words find","data-testid":"find-strip",hidden:!te,onMouseDown:a=>a.preventDefault(),style:e?{...Ia,...rr}:Ia,children:[k.every(a=>"ask"in a)?(0,s.jsxs)("p",{role:"presentation",style:{margin:0,padding:"10px 12px",color:"var(--graview-ink-muted)",fontSize:"0.875rem"},"data-testid":"find-nothing",children:["Nothing here is called \u201C",h?.words||C,"\u201D."]}):ve.map(([a,t])=>(0,s.jsxs)("div",{role:"group","aria-label":Ma(a,n.schema),children:[(0,s.jsxs)("div",{role:"presentation",style:tr,children:[a!=="rule:"?(0,s.jsx)(Xa,{kind:a,accents:c?.accents}):null,Ma(a,n.schema)]}),t.map(i=>(0,s.jsx)("div",{id:i.id,role:"option","aria-selected":i===A,"data-testid":"find-hit","data-about":i.hit.about,...i.hit.about==="node"&&i.hit.near?{"data-near":""}:{},onMouseEnter:()=>_(i),onClick:()=>we(i),style:{...Ra,...i.hit.about==="act"?{paddingLeft:30}:{},background:i===A?"var(--graview-panel-muted)":"transparent"},children:(0,s.jsx)(Ya,{hit:i.hit,flag:$})},i.id))]},a)),H?(0,s.jsx)("div",{id:H.id,role:"option","aria-selected":H===A||A?.id===H.id,"data-testid":"find-ask",onMouseEnter:()=>_(H),onClick:()=>we(H),style:{...Ra,borderTop:"1px solid var(--graview-edge)",marginTop:4,background:A?.id===H.id?"var(--graview-panel-muted)":"transparent"},children:(0,s.jsxs)("span",{children:["Ask: ",(0,s.jsxs)("span",{style:{fontWeight:600},children:["\u2018",H.ask,"\u2019"]})]})}):null,Ge>er?(0,s.jsxs)("p",{role:"presentation",style:{margin:0,padding:"6px 12px 2px",color:"var(--graview-ink-faint)",fontSize:"0.75rem"},"data-testid":"find-more-words",children:[je(Ge)," found: another word of the name narrows them."]}):null,h&&h.searched.past===!1&&h.searched.kinds.some(a=>n.schema.tryDefinition(a)?.lifecycle)?(0,s.jsx)("p",{role:"presentation",style:{margin:0,padding:"6px 12px 8px",color:"var(--graview-ink-faint)",fontSize:"0.75rem"},children:"Current ones; add is:any for the past."}):null]})]})}function Ya({hit:e,flag:n}){switch(e.about){case"node":return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("span",{style:{fontWeight:600,overflowWrap:"anywhere"},children:[e.flagged?(0,s.jsxs)("span",{style:{color:"var(--graview-warn)"},children:[n," "]}):null,e.label,e.apart?(0,s.jsxs)("span",{style:X,children:[" \xB7 ",e.apart]}):null,e.current?null:(0,s.jsx)("span",{style:X,children:" \xB7 past"})]}),e.near?(0,s.jsxs)("span",{style:X,"data-testid":"find-near",children:["Near \u201C",e.why.asked,"\u201D",e.why.field!=="label"?` \u2014 ${e.why.reading.toLowerCase()}: ${e.why.fragment}`:""]}):e.why.field!=="label"?(0,s.jsxs)("span",{style:X,children:[e.why.reading.toLowerCase(),": ",e.why.fragment]}):null]});case"kind":return(0,s.jsxs)("span",{children:[e.label,(0,s.jsxs)("span",{style:X,children:[" \xB7 ",e.count," match"]})]});case"place":return(0,s.jsxs)("span",{children:["Go to ",e.title]});case"rule":return(0,s.jsxs)("span",{children:["The rule \u201C",e.label,"\u201D"]});case"act":return(0,s.jsxs)("span",{style:e.destructive?{color:"var(--graview-warn)"}:void 0,children:[e.title,(0,s.jsxs)("span",{style:X,children:[" \xB7 ",e.why.field==="title"?"act":`on ${e.why.fragment}`]})]})}}function Xa({kind:e,accents:n}){let l=Math.round(Ye(e,n));return(0,s.jsx)("span",{"aria-hidden":"true",style:{width:8,height:8,borderRadius:2,flex:"0 0 auto",background:`hsl(${l} 55% 52%)`}})}function Ma(e,n){return e==="rule:"?"Rules":e==="act:"?"Acts":n.tryDefinition(e)?.plural??`${e}s`}function Ja(e,n,l){let o=Object.entries(e).map(([c,v])=>Qe(l,c,v)),r=n.filter(c=>c.about==="kind"||c.about==="place"||c.about==="rule").length;r>0&&o.push(`${r} ${r===1?"place or rule":"places and rules"}`);let w=n.filter(c=>c.about==="node"&&c.near).length;return o.length===0?"Nothing found":`${o.join(", ")} found${w>0?`, ${w} of them near`:""}`}var Za=10,er=12,Ia={...ia,width:"min(26rem, calc(100vw - 24px))",maxHeight:"min(60vh, 28rem)",overflowY:"auto",boxSizing:"border-box",background:"var(--graview-panel)",borderTop:"1px solid var(--graview-edge)",borderRight:"1px solid var(--graview-edge)",borderBottom:"1px solid var(--graview-edge)",borderLeft:"1px solid var(--graview-edge)",borderRadius:10,boxShadow:"0 10px 28px rgb(0 0 0 / 0.18)",padding:"4px 0"},ar=6,rr={width:"var(--graview-bar-width, 100vw)",maxHeight:"55vh",borderRadius:0,borderLeft:"none",borderRight:"none"},tr={display:"flex",alignItems:"center",gap:6,padding:"8px 12px 2px",fontSize:"0.6875rem",letterSpacing:"0.06em",textTransform:"uppercase",color:"var(--graview-ink-muted)"},Ra={display:"grid",gap:1,minHeight:32,padding:"5px 12px",alignContent:"center",cursor:"pointer",fontSize:"0.875rem",lineHeight:1.35,color:"var(--graview-ink)"},X={color:"var(--graview-ink-muted)",fontSize:"0.8125rem",fontWeight:400};var J=g(K(),1);var Pe=g(Fa(),1);var Ha=g(f(),1);function Na(){let{following:e,follow:n}=S();return e?(0,Ha.jsxs)("button",{type:"button","data-testid":"following-who",onClick:()=>n(null),title:"Press, or Escape, to stop following",style:{display:"inline-flex",alignItems:"center",gap:6,minHeight:24,padding:"2px 9px",borderRadius:999,border:"1px solid var(--graview-accent)",background:"transparent",color:"var(--graview-accent)",fontSize:"0.875rem",whiteSpace:"nowrap"},children:["following ",e.name]}):null}var Ba=g(K(),1);var y=g(f(),1);function Pa({home:e,homeLabel:n,children:l,onPicture:o=!1}){let{view:r,focus:w,show:c,go:v}=q(),{store:T}=S(),{movedByHand:z}=S(),h=z&&(r.pan!==void 0||Object.keys(r.pins).length>0),M=r.focusId&&r.focusId!==e?T.graph.getNode(r.focusId):void 0,$=L=>ie(T.schema,L),x={display:"inline-flex",alignItems:"center",gap:6,minHeight:26,padding:"2px 6px",fontSize:"0.8125rem",borderRadius:6,border:"1px solid transparent",boxShadow:"none",background:"transparent",color:"var(--graview-ink-muted)",whiteSpace:"nowrap"},R=n!==void 0&&M!==void 0,b=[];if(M&&!o&&b.push({key:"focused",node:(0,y.jsxs)("button",{type:"button","data-testid":"focused",onClick:()=>v(me({...r,focusId:e},!1)),title:xe(T,M.id),style:{...x,maxWidth:"min(14rem, 15vw)"},children:[(0,y.jsx)("span",{style:{minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},children:xe(T,M.id)}),(0,y.jsx)("span",{"aria-hidden":"true",style:{opacity:.7},children:"\xD7"})]})}),r.past&&b.push({key:"past",node:(0,y.jsxs)("button",{type:"button","data-testid":"past",onClick:()=>v(ba(r,!1)),title:"Back to now \u2014 retired things leave the picture again",style:x,children:["the past",(0,y.jsx)("span",{"aria-hidden":"true",style:{opacity:.7},children:"\xD7"})]})}),r.zoom&&b.push({key:"zoomed",node:(0,y.jsxs)("button",{type:"button","data-testid":"zoomed",onClick:()=>v(me(r,!1)),title:"Zoom back out",style:x,children:["zoomed in",(0,y.jsx)("span",{"aria-hidden":"true",style:{opacity:.7},children:"\xD7"})]})}),h&&b.push({key:"moved",node:(0,y.jsx)("button",{type:"button","data-testid":"moved",onClick:()=>v(ue(r)),title:"Put the camera and everything you dragged back where the layout wanted them",style:x,children:"Reset view"})}),r.relation){let L=r.relation;b.push({key:"raised",node:(0,y.jsxs)("span",{style:{display:"inline-flex",alignItems:"center"},children:[(0,y.jsxs)("button",{type:"button","data-testid":"raised-into",onClick:()=>v(se(r,de(L),{ownPicture:!0})),title:`Go into the ${$(L).toLowerCase()}`,"aria-label":`Go into the ${$(L).toLowerCase()}`,style:{...x,color:"var(--graview-ink)"},children:[$(L),(0,y.jsx)("span",{"aria-hidden":"true",style:{opacity:.7},children:"\u2198"})]}),(0,y.jsx)("button",{type:"button","data-testid":"raised",onClick:()=>c(null),title:`Stop showing ${$(L).toLowerCase()}`,"aria-label":`Stop showing ${$(L).toLowerCase()}`,style:{...x,minWidth:26,justifyContent:"center"},children:(0,y.jsx)("span",{"aria-hidden":"true",style:{opacity:.7},children:"\xD7"})})]})})}return o&&!R&&b.length===0&&l===void 0?null:(0,y.jsxs)("nav",{"aria-label":"View","data-testid":"trail",style:{display:"flex",alignItems:"center",gap:8,fontSize:"0.875rem",minWidth:0,...o?{pointerEvents:"auto",padding:"4px 6px",borderRadius:8,background:"var(--graview-float)",boxShadow:"var(--graview-lift-low)",overflow:"hidden"}:{}},children:[R?(0,y.jsx)("button",{type:"button",onClick:()=>w(e),style:{border:"none",background:"none",padding:"3px 0",minHeight:24,whiteSpace:"nowrap",color:"var(--graview-ink-muted)"},children:n}):null,b.map(({key:L,node:I},G)=>(0,y.jsxs)(Ba.Fragment,{children:[R||G>0?(0,y.jsx)("span",{style:{color:"var(--graview-ink-faint)"},children:"\u203A"}):null,I]},L)),l]})}var E=g(f(),1);function De(){let[e,n]=(0,J.useState)([]),l=(0,J.useCallback)(o=>{n(r=>{let w=o.phase!=="running"&&r[0]?.name===o.name&&r[0]?.at===o.at;return[o,...w?r.slice(1):r].slice(0,12)})},[]);return[e,l]}function Oe({find:e,calls:n,seat:l,remembers:o=!1}){return e?(0,E.jsxs)(E.Fragment,{children:[(0,Pe.createPortal)((0,E.jsx)(La,{compact:e.compact}),e.slot),e.own?(0,Pe.createPortal)((0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(J.Suspense,{fallback:null,children:(0,E.jsx)(Aa,{})}),(0,E.jsx)(ga,{calls:n,remembers:o,...l!==void 0?{seat:l}:{}})]}),e.own):null]}):null}function Ke({home:e=null}){return(0,E.jsxs)("div",{"data-graview-scene-trail":"",style:{position:"absolute",top:14,left:14,maxWidth:"calc(100% - 150px - var(--graview-dock, 0px))",zIndex:D("overview"),display:"flex",alignItems:"center",gap:6,minWidth:0,pointerEvents:"none"},children:[(0,E.jsx)(Pa,{home:e,onPicture:!0}),(0,E.jsx)("span",{style:{pointerEvents:"auto"},children:(0,E.jsx)(Na,{})})]})}var F=g(K(),1);var Da=g(f(),1),ir=Q(()=>(__graviewPreload(import.meta.url,["./chunk.UGFDSE37.js","./chunk.ZK446PSX.js","./chunk.SGMVLKZO.js","./chunk.SDO3U72B.js","./chunk.BLS2G3CD.js","./chunk.EJUZGIQ5.js","./chunk.AJZBJBMO.js"]),import("./chunk.FDFVGHQE.js")));function qe(){let{store:e,principal:n}=S(),l=(0,F.useContext)(ca),o=(0,F.useRef)(null),r=(0,F.useRef)(!1);return(0,F.useEffect)(()=>()=>void(r.current=!0),[]),(0,F.useEffect)(()=>{let w=e.batches().length,c=ir().then(v=>v.sceneWay(e,n,l,w,o.current),()=>{});return()=>void c.then(v=>v?.(r.current))},[e,n,l]),(0,Da.jsx)("span",{ref:o,hidden:!0})}var Oa=g(K(),1);var u=g(f(),1);function Pt({address:e=!1,auto:n,quickAsk:l=!0,scheme:o,scope:r}){let w=(0,Oa.useMemo)(()=>`${Me({scope:`.${r}`})}
1127
+ ${Ie(o,{scope:`.${r}`})}`,[o,r]),c=va(),[v]=De();return(0,u.jsx)(ra.Provider,{value:!0,children:(0,u.jsxs)("div",{"data-embed-content":"",style:{position:"relative",flex:n?`0 0 ${za}px`:"1 1 auto",minHeight:0,containerType:"size"},children:[(0,u.jsx)("style",{children:w}),e?(0,u.jsx)($a,{}):null,(0,u.jsx)(Sa,{}),(0,u.jsx)(Ke,{}),(0,u.jsx)(Ne,{}),(0,u.jsx)(Re,{}),(0,u.jsx)(ze,{}),(0,u.jsx)(Ee,{face:"scene",on:l}),(0,u.jsx)(Le,{}),(0,u.jsx)(be,{children:(0,u.jsx)(Se,{children:(0,u.jsx)(Ce,{children:(0,u.jsx)(Te,{children:(0,u.jsx)($e,{placement:"menu"})})})})}),(0,u.jsx)(ye,{}),(0,u.jsx)(Ae,{}),(0,u.jsx)(Oe,{find:c,calls:v}),(0,u.jsx)(qe,{}),(0,u.jsx)(he,{face:"scene"})]})})}function Dt(){return(0,u.jsx)(Be,{})}export{Pt as SceneFace,Dt as SceneKeeping};