graview 0.1.55 → 0.1.57

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 (192) hide show
  1. package/dist/preview/{chunk.XSMXSNDR.js → chunk.2PWVDUOU.js} +1 -1
  2. package/dist/preview/{chunk.AFK5HHLL.js → chunk.33PZEW5A.js} +1 -1
  3. package/dist/preview/{chunk.SUGOENC4.js → chunk.3DPTDMJ7.js} +1 -1
  4. package/dist/preview/chunk.47T3KUAA.js +1 -0
  5. package/dist/preview/{chunk.XUHY4XO2.js → chunk.4BRM5SGO.js} +1 -1
  6. package/dist/preview/{chunk.4TLWZVVG.js → chunk.4HFCOMR3.js} +1 -1
  7. package/dist/preview/{chunk.5MCXTY2P.js → chunk.4HPP35XQ.js} +1 -1
  8. package/dist/preview/chunk.4JDHBNEA.js +104 -0
  9. package/dist/preview/{chunk.QWICAV2C.js → chunk.4K6VAC2S.js} +2 -2
  10. package/dist/preview/{chunk.ZXOD5GM3.js → chunk.4L4F47QP.js} +1 -1
  11. package/dist/preview/{chunk.SIABGHF2.js → chunk.4NPXMYA5.js} +1 -1
  12. package/dist/preview/{chunk.354A4QCG.js → chunk.4OP4IEEY.js} +1 -1
  13. package/dist/preview/chunk.4SBYXHCQ.js +1 -0
  14. package/dist/preview/{chunk.LYVRXRIH.js → chunk.4UQBMFJZ.js} +1 -1
  15. package/dist/preview/{chunk.7WEQHJ3N.js → chunk.4W5GCPAP.js} +1 -1
  16. package/dist/preview/{chunk.TT6GKRBE.js → chunk.4XKRCAJZ.js} +1 -1
  17. package/dist/preview/{chunk.HXHFWZ2U.js → chunk.534TBZJ3.js} +2 -2
  18. package/dist/preview/{chunk.JRRVLGEK.js → chunk.53U6E5LD.js} +1 -1
  19. package/dist/preview/{chunk.HXR7EEXR.js → chunk.547FQPYG.js} +1 -1
  20. package/dist/preview/{chunk.O752PM42.js → chunk.57BKS5KD.js} +1 -1
  21. package/dist/preview/chunk.57KRCHQT.js +1 -0
  22. package/dist/preview/{chunk.KVQZ5FR6.js → chunk.5BPRGXIW.js} +1 -1
  23. package/dist/preview/{chunk.TAQB64FZ.js → chunk.5GTOF5D5.js} +1 -1
  24. package/dist/preview/{chunk.KY7QD22S.js → chunk.5IEFTFKQ.js} +1 -1
  25. package/dist/preview/chunk.5NZDFT6R.js +1 -0
  26. package/dist/preview/{chunk.AFEEXRN3.js → chunk.66LWZIY5.js} +1 -1
  27. package/dist/preview/{chunk.USJ4J3GL.js → chunk.6AH26OL7.js} +2 -2
  28. package/dist/preview/{chunk.PIQ52FCI.js → chunk.6SD7YZ4U.js} +2 -2
  29. package/dist/preview/{chunk.AVVNQKA7.js → chunk.72IHABM5.js} +1 -1
  30. package/dist/preview/chunk.7INWDFNG.js +1 -0
  31. package/dist/preview/{chunk.FUZWXKTN.js → chunk.7IXTNST2.js} +1 -1
  32. package/dist/preview/{chunk.6UAUME5U.js → chunk.7ML2BWSP.js} +1 -1
  33. package/dist/preview/chunk.7UBABS2T.js +1 -0
  34. package/dist/preview/{chunk.CM2ETM2A.js → chunk.7VIFAN3O.js} +1 -1
  35. package/dist/preview/chunk.7VZA34T4.js +1 -0
  36. package/dist/preview/{chunk.EJXUOL2C.js → chunk.AD3EC5DU.js} +1 -1
  37. package/dist/preview/{chunk.BRCKXL7B.js → chunk.BCE6LIDR.js} +1 -1
  38. package/dist/preview/chunk.BPEUHOKH.js +1 -0
  39. package/dist/preview/{chunk.KHJ2MCMS.js → chunk.BUSFJM6P.js} +1 -1
  40. package/dist/preview/{chunk.2HANQ737.js → chunk.BZEJM2PY.js} +1 -1
  41. package/dist/preview/{chunk.YGZGMRDC.js → chunk.C5EFUODO.js} +1 -1
  42. package/dist/preview/{chunk.ATXSLBE3.js → chunk.C7EJPV2N.js} +1 -1
  43. package/dist/preview/chunk.CMLNBJZG.js +3 -0
  44. package/dist/preview/{chunk.NXM73RZA.js → chunk.CUKRUQQ2.js} +1 -1
  45. package/dist/preview/chunk.CXB4BSI4.js +1 -0
  46. package/dist/preview/{chunk.5EOSEVZB.js → chunk.D3LQJXVP.js} +1 -1
  47. package/dist/preview/{chunk.YOBRVKJT.js → chunk.D4EP7FEC.js} +1 -1
  48. package/dist/preview/{chunk.WSMYFEGU.js → chunk.DBMZ3AQB.js} +1 -1
  49. package/dist/preview/chunk.DIFR37EZ.js +5 -0
  50. package/dist/preview/chunk.DJ4A76SX.js +1 -0
  51. package/dist/preview/{chunk.O7RMVGAB.js → chunk.DM5X3JBH.js} +1 -1
  52. package/dist/preview/chunk.DQUISKTC.js +1 -0
  53. package/dist/preview/chunk.DSLGMCB6.js +1 -0
  54. package/dist/preview/chunk.DSWMXM57.js +1 -0
  55. package/dist/preview/{chunk.DB3HOKZD.js → chunk.DWLKJGVT.js} +1 -1
  56. package/dist/preview/{chunk.2KH2LWZL.js → chunk.EQAAKYLA.js} +1 -1
  57. package/dist/preview/{chunk.4OMSQFIY.js → chunk.EXZLG3HK.js} +1 -1
  58. package/dist/preview/{chunk.QJ42D5GM.js → chunk.EZ4NUZWX.js} +1 -1
  59. package/dist/preview/{chunk.WUFCRE7O.js → chunk.EZ4TZUMM.js} +1 -1
  60. package/dist/preview/chunk.FJTWAU7N.js +1 -0
  61. package/dist/preview/{chunk.WVKXELAF.js → chunk.FLMNWVSY.js} +2 -2
  62. package/dist/preview/{chunk.K5WPS4RR.js → chunk.FLVE6IBM.js} +1 -1
  63. package/dist/preview/chunk.FPGU43SC.js +1 -0
  64. package/dist/preview/{chunk.5DPFAVCZ.js → chunk.FRERJWZJ.js} +1 -1
  65. package/dist/preview/{chunk.OT6EWYK2.js → chunk.G3BDQ6EA.js} +1 -1
  66. package/dist/preview/chunk.GBAUQXXD.js +1 -0
  67. package/dist/preview/{chunk.5SANELJT.js → chunk.H5CRRBNU.js} +1 -1
  68. package/dist/preview/{chunk.7Y6NK5CT.js → chunk.HFSG3F5Z.js} +1 -1
  69. package/dist/preview/chunk.I2NI7CT7.js +1 -0
  70. package/dist/preview/{chunk.ZAHVKXYQ.js → chunk.I5PSHASU.js} +1 -1
  71. package/dist/preview/{chunk.TDV7JGIQ.js → chunk.I636CZE4.js} +1 -1
  72. package/dist/preview/chunk.I6H3HRWT.js +1 -0
  73. package/dist/preview/{chunk.62LPYPP3.js → chunk.IRQOJATD.js} +1 -1
  74. package/dist/preview/chunk.IV7AUO53.js +1 -0
  75. package/dist/preview/{chunk.RZQKCLTW.js → chunk.IX63LTRQ.js} +1 -1
  76. package/dist/preview/{chunk.IXHLP2CL.js → chunk.JBSW7ZNH.js} +1 -1
  77. package/dist/preview/chunk.JD5HSAMC.js +18 -0
  78. package/dist/preview/{chunk.ZOW7AC7U.js → chunk.JETT6ELP.js} +1 -1
  79. package/dist/preview/{chunk.LQCH2NFE.js → chunk.JNNBHD4Z.js} +1 -1
  80. package/dist/preview/{chunk.LMXNHBGH.js → chunk.JQFIZRAZ.js} +2 -2
  81. package/dist/preview/chunk.KNYLY7MH.js +1 -0
  82. package/dist/preview/chunk.KO7IOFNY.js +1 -0
  83. package/dist/preview/{chunk.EGSE6NNE.js → chunk.KPIDJYIU.js} +1 -1
  84. package/dist/preview/{chunk.YRFN4VDD.js → chunk.KTV24HY7.js} +1 -1
  85. package/dist/preview/{chunk.6JYNNPAI.js → chunk.KYOI7BG3.js} +1 -1
  86. package/dist/preview/{chunk.PHLMQO7V.js → chunk.LE2KAR25.js} +1 -1
  87. package/dist/preview/{chunk.UE5GAP67.js → chunk.LHIT3EZD.js} +2 -2
  88. package/dist/preview/{chunk.DBCVZGCC.js → chunk.LKJ6FD6Y.js} +1 -1
  89. package/dist/preview/chunk.LUIRQ5UF.js +2 -0
  90. package/dist/preview/chunk.LWRXCO2Z.js +1 -0
  91. package/dist/preview/{chunk.YYWANGIC.js → chunk.M72JKVHP.js} +4 -4
  92. package/dist/preview/{chunk.6NQQUIBX.js → chunk.MAZFQIL5.js} +1 -1
  93. package/dist/preview/{chunk.CPNE6HPQ.js → chunk.MBLFZF5R.js} +1 -1
  94. package/dist/preview/{chunk.PSLCI3GO.js → chunk.MRHPOUA4.js} +1 -1
  95. package/dist/preview/{chunk.PIHCXN5U.js → chunk.MWWOI5PW.js} +1 -1
  96. package/dist/preview/{chunk.35O5H5L7.js → chunk.N2DM42SG.js} +2 -2
  97. package/dist/preview/chunk.N33WUCAN.js +3 -0
  98. package/dist/preview/{chunk.PCKX2FHR.js → chunk.N5MQARN6.js} +1 -1
  99. package/dist/preview/{chunk.G5XTASMO.js → chunk.NF72Z2HG.js} +1 -1
  100. package/dist/preview/{chunk.RNYLNBIB.js → chunk.NGK6IRV3.js} +1 -1
  101. package/dist/preview/chunk.NL3AJZ3N.js +1 -0
  102. package/dist/preview/chunk.NUS5K56R.js +21 -0
  103. package/dist/preview/{chunk.XTP5DGPJ.js → chunk.NX7CR4AE.js} +1 -1
  104. package/dist/preview/chunk.NZDWXX6H.js +1 -0
  105. package/dist/preview/{chunk.5L4J2XAI.js → chunk.O47MN7E5.js} +1 -1
  106. package/dist/preview/chunk.OYUDK3LK.js +1 -0
  107. package/dist/preview/chunk.PF5P5YVD.js +1 -0
  108. package/dist/preview/{chunk.V6X3U3JF.js → chunk.PHC2MI4C.js} +1 -1
  109. package/dist/preview/{chunk.U5AX4DD5.js → chunk.PQMMISCQ.js} +1 -1
  110. package/dist/preview/{chunk.TUBAFVV4.js → chunk.Q6OZLBNL.js} +1 -1
  111. package/dist/preview/{chunk.ZPXAKRKG.js → chunk.QMYHXMRV.js} +1 -1
  112. package/dist/preview/chunk.QPL3OXW3.js +1 -0
  113. package/dist/preview/{chunk.V5PAFSWP.js → chunk.QS6YW7UY.js} +1 -1
  114. package/dist/preview/chunk.QUJS63OJ.js +13 -0
  115. package/dist/preview/{chunk.EKP3HQAX.js → chunk.RALAID6N.js} +1 -1
  116. package/dist/preview/chunk.RQX4CQJN.js +1 -0
  117. package/dist/preview/{chunk.PM64C5PX.js → chunk.RVR6FWAF.js} +1 -1
  118. package/dist/preview/{chunk.MFCBAQS3.js → chunk.S5ECRIG5.js} +1 -1
  119. package/dist/preview/{chunk.DNJM6WQO.js → chunk.SAJLIA5M.js} +1 -1
  120. package/dist/preview/{chunk.RPVJ5IXD.js → chunk.TBRXNU6T.js} +1 -1
  121. package/dist/preview/{chunk.Y3BEKXYB.js → chunk.TVURUMU4.js} +1 -1
  122. package/dist/preview/chunk.UBNZDSS7.js +1 -0
  123. package/dist/preview/chunk.UDCDK7XJ.js +4 -0
  124. package/dist/preview/{chunk.6ZJE5M2A.js → chunk.UGOKORIF.js} +1 -1
  125. package/dist/preview/{chunk.NDLQXQV2.js → chunk.UV3U4FRT.js} +1 -1
  126. package/dist/preview/{chunk.QBMIET7P.js → chunk.UWQ3I5OW.js} +1 -1
  127. package/dist/preview/chunk.V6FUYRZI.js +1 -0
  128. package/dist/preview/{chunk.2SWQI4HF.js → chunk.VDS3IOTK.js} +1 -1
  129. package/dist/preview/chunk.VHPGGC2P.js +1 -0
  130. package/dist/preview/chunk.VSGTNYM2.js +1 -0
  131. package/dist/preview/{chunk.FUS2FJS3.js → chunk.VW4JAQCH.js} +1 -1
  132. package/dist/preview/{chunk.OS5EALHY.js → chunk.WASWMHND.js} +1 -1
  133. package/dist/preview/chunk.WYPL2QUA.js +1 -0
  134. package/dist/preview/{chunk.MFOSEOF4.js → chunk.XTBS64IT.js} +1 -1
  135. package/dist/preview/chunk.XVN3CQKH.js +2 -0
  136. package/dist/preview/{chunk.27ZSRO3O.js → chunk.Y3EOGXRS.js} +1 -1
  137. package/dist/preview/chunk.Y4KNR76Z.js +1 -0
  138. package/dist/preview/chunk.YDTXCVBU.js +1 -0
  139. package/dist/preview/{chunk.DH4AC7TC.js → chunk.YPP7FSEZ.js} +1 -1
  140. package/dist/preview/{chunk.FTW3K3G6.js → chunk.YQXA4WAM.js} +2 -2
  141. package/dist/preview/{chunk.4BFJWNVM.js → chunk.YR75TWDV.js} +1 -1
  142. package/dist/preview/{chunk.QIAH7HHO.js → chunk.YS5U3DUX.js} +1 -1
  143. package/dist/preview/chunk.Z5UVYOGC.js +1 -0
  144. package/dist/preview/{chunk.P4ZZSFOQ.js → chunk.ZNXRHOUI.js} +1 -1
  145. package/dist/preview/index.html +50 -50
  146. package/dist/preview/page.js +2 -2
  147. package/package.json +6 -6
  148. package/dist/preview/chunk.2ORJGMRT.js +0 -104
  149. package/dist/preview/chunk.3IZOXNJH.js +0 -1
  150. package/dist/preview/chunk.5D6SIBOK.js +0 -1
  151. package/dist/preview/chunk.5EZDXWOE.js +0 -1
  152. package/dist/preview/chunk.5MSNKSTE.js +0 -1
  153. package/dist/preview/chunk.5XUVCM7X.js +0 -1
  154. package/dist/preview/chunk.6NGSR2ZQ.js +0 -1
  155. package/dist/preview/chunk.7KERB5CH.js +0 -1
  156. package/dist/preview/chunk.AVNOLMCV.js +0 -1
  157. package/dist/preview/chunk.AZ6Q3WT2.js +0 -1
  158. package/dist/preview/chunk.DKJK2MMV.js +0 -2
  159. package/dist/preview/chunk.DU75P3Y7.js +0 -1
  160. package/dist/preview/chunk.DVG47BK3.js +0 -1
  161. package/dist/preview/chunk.DXJFAAOI.js +0 -1
  162. package/dist/preview/chunk.F5RN6YXG.js +0 -4
  163. package/dist/preview/chunk.FVOFTM5J.js +0 -1
  164. package/dist/preview/chunk.G2XDQPE4.js +0 -1
  165. package/dist/preview/chunk.H536YUAZ.js +0 -3
  166. package/dist/preview/chunk.HNJFBI7J.js +0 -1
  167. package/dist/preview/chunk.HUABTCQE.js +0 -1
  168. package/dist/preview/chunk.INBHY3SA.js +0 -1
  169. package/dist/preview/chunk.KIMIPHAI.js +0 -1
  170. package/dist/preview/chunk.KXNWZ33P.js +0 -1
  171. package/dist/preview/chunk.LEPKPNPA.js +0 -1
  172. package/dist/preview/chunk.LLXEWLIP.js +0 -1
  173. package/dist/preview/chunk.LWLI5PI4.js +0 -1
  174. package/dist/preview/chunk.MIQMPOWF.js +0 -2
  175. package/dist/preview/chunk.MNSKBGRM.js +0 -1
  176. package/dist/preview/chunk.MSM6E6JK.js +0 -1
  177. package/dist/preview/chunk.NS6KWKF5.js +0 -1
  178. package/dist/preview/chunk.OIMYSR2J.js +0 -1
  179. package/dist/preview/chunk.OL2N5NUV.js +0 -1
  180. package/dist/preview/chunk.QQ3YWKWU.js +0 -1
  181. package/dist/preview/chunk.R3ZS4QO6.js +0 -18
  182. package/dist/preview/chunk.SG67ID6C.js +0 -1
  183. package/dist/preview/chunk.SYX7AEHU.js +0 -1
  184. package/dist/preview/chunk.T66UK7PQ.js +0 -3
  185. package/dist/preview/chunk.TEE23CVQ.js +0 -1
  186. package/dist/preview/chunk.TZTRGNAA.js +0 -1
  187. package/dist/preview/chunk.UADL2LHO.js +0 -1
  188. package/dist/preview/chunk.URDCHVH3.js +0 -21
  189. package/dist/preview/chunk.WR63RQGU.js +0 -5
  190. package/dist/preview/chunk.XE72DFBV.js +0 -13
  191. package/dist/preview/chunk.XEHLSKHP.js +0 -1
  192. package/dist/preview/chunk.YG2WZO53.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 $e,b as ze,c as Ee,d as Ca,e as Aa,h as Ce,i as Ae,k as Te,l as Me,m as Ta}from"./chunk.QBMIET7P.js";import{c as Se}from"./chunk.ZOW7AC7U.js";import{g as ka,h as $a,i as za}from"./chunk.PIQ52FCI.js";import"./chunk.RZQKCLTW.js";import{b as ha,c as xa,d as ke,e as ba}from"./chunk.Y3BEKXYB.js";import"./chunk.XEHLSKHP.js";import{p as ua,q as ma,r as fa}from"./chunk.MSM6E6JK.js";import{a as Sa}from"./chunk.HJCQ6I3S.js";import{b as ya}from"./chunk.FUZWXKTN.js";import"./chunk.YOBRVKJT.js";import{b as ga}from"./chunk.LWLI5PI4.js";import{b as he,d as be,e as ye}from"./chunk.6ZJE5M2A.js";import"./chunk.XUHY4XO2.js";import{b as xe}from"./chunk.DU75P3Y7.js";import"./chunk.2SWQI4HF.js";import"./chunk.DNJM6WQO.js";import"./chunk.5D6SIBOK.js";import"./chunk.ATXSLBE3.js";import"./chunk.6UAUME5U.js";import"./chunk.BRCKXL7B.js";import"./chunk.CPNE6HPQ.js";import{e as Ea}from"./chunk.YRFN4VDD.js";import"./chunk.EGSE6NNE.js";import"./chunk.MFOSEOF4.js";import"./chunk.GZHZLJBF.js";import{c as sa,d as la,e as ee,o as pa}from"./chunk.OL2N5NUV.js";import"./chunk.OJGHDWI6.js";import"./chunk.5DPFAVCZ.js";import"./chunk.5EZDXWOE.js";import"./chunk.MIQMPOWF.js";import"./chunk.T66UK7PQ.js";import{E as wa,c as oa,d as da,j as fe,l as ca,s as va}from"./chunk.LMXNHBGH.js";import{b as Ze,c as Ga}from"./chunk.DBCVZGCC.js";import{G as F,Ga as pe,Na as ta,Oa as K,Ra as ia,T as f,Va as na,_ as ea,aa,ba as S,da as le,i as ue,j as ne,ka as ra,m as Y,n as oe,o as me,r as de,x as Xe,y as se,z as Je}from"./chunk.WSMYFEGU.js";import{a as Q}from"./chunk.SDO3U72B.js";import{Pc as P,Rc as D,U as je,ga as Qe,ia as ie,rc as Ye}from"./chunk.WR63RQGU.js";import"./chunk.FQLNBIQ5.js";import{b as g}from"./chunk.AJZBJBMO.js";function _a(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 Ca,e as Aa,h as Ce,i as Ae,k as Te,l as Me,m as Ta}from"./chunk.UWQ3I5OW.js";import{c as Se}from"./chunk.JETT6ELP.js";import{g as ka,h as $a,i as za}from"./chunk.6SD7YZ4U.js";import"./chunk.IX63LTRQ.js";import{b as ha,c as xa,d as ke,e as ba}from"./chunk.TVURUMU4.js";import"./chunk.47T3KUAA.js";import{p as ua,q as ma,r as fa}from"./chunk.NZDWXX6H.js";import{a as Sa}from"./chunk.HJCQ6I3S.js";import{b as ya}from"./chunk.7IXTNST2.js";import"./chunk.D4EP7FEC.js";import{b as ga}from"./chunk.BPEUHOKH.js";import{b as he,d as be,e as ye}from"./chunk.UGOKORIF.js";import"./chunk.4BRM5SGO.js";import{b as xe}from"./chunk.DJ4A76SX.js";import"./chunk.VDS3IOTK.js";import"./chunk.SAJLIA5M.js";import"./chunk.I2NI7CT7.js";import"./chunk.C7EJPV2N.js";import"./chunk.7ML2BWSP.js";import"./chunk.BCE6LIDR.js";import"./chunk.MBLFZF5R.js";import{e as Ea}from"./chunk.KTV24HY7.js";import"./chunk.KPIDJYIU.js";import"./chunk.XTBS64IT.js";import"./chunk.GZHZLJBF.js";import{c as sa,d as la,e as ee,o as pa}from"./chunk.QPL3OXW3.js";import"./chunk.OJGHDWI6.js";import"./chunk.FRERJWZJ.js";import"./chunk.RQX4CQJN.js";import"./chunk.LUIRQ5UF.js";import"./chunk.N33WUCAN.js";import{E as wa,c as oa,d as da,j as fe,l as ca,s as va}from"./chunk.JQFIZRAZ.js";import{b as Ze,c as Ga}from"./chunk.LKJ6FD6Y.js";import{G as F,Ga as pe,Na as ta,Oa as K,Ra as ia,T as f,Va as na,_ as ea,aa,ba as S,da as le,i as ue,j as ne,ka as ra,m as Y,n as oe,o as me,r as de,x as Xe,y as se,z as Je}from"./chunk.DBMZ3AQB.js";import{a as Q}from"./chunk.SDO3U72B.js";import{Tc as P,Vc as D,W as je,ia as Qe,ka as ie,uc as Ye}from"./chunk.DIFR37EZ.js";import"./chunk.FQLNBIQ5.js";import{b as g}from"./chunk.AJZBJBMO.js";function _a(e){return`
2
2
 
3
3
 
4
4
  .graview-altitude-control {
@@ -1128,5 +1128,5 @@ var __graviewPreload=(base,files)=>{if(typeof document>"u")return;const asked=gl
1128
1128
  }
1129
1129
  [data-graview-connector][data-graview-activity] {
1130
1130
  animation: graview-relation 1200ms cubic-bezier(0.22, 1, 0.36, 1);
1131
- }`}function Ie(e="dark",n={}){let l=_a(e);return n.scope===void 0?l:Ze(l,n.scope)}var B=g(F(),1);var q=g(f(),1),Ua=pe(Q(()=>(__graviewPreload(import.meta.url,["./chunk.LMXNHBGH.js","./chunk.DBCVZGCC.js","./chunk.WSMYFEGU.js","./chunk.SDO3U72B.js","./chunk.WR63RQGU.js","./chunk.FQLNBIQ5.js","./chunk.AJZBJBMO.js"]),import("./chunk.CM2ETM2A.js")))).part(e=>(0,q.jsx)(e.MapKey,{}),{quiet:!0});function Re(){let{store:e}=S(),{view:n}=K(),l=le(),o=(0,B.useMemo)(()=>e.graph.allEdges().length>0,[e,l]),[r,w]=(0,B.useState)(!1),c=(0,B.useId)(),v=(0,B.useRef)(null),T=(0,B.useRef)(null);return(0,B.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,q.jsxs)("div",{style:{display:"contents"},onKeyDown:z=>{z.key!=="Escape"||!r||(z.preventDefault(),z.stopPropagation(),w(!1),v.current?.focus({preventScroll:!0}))},children:[(0,q.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,q.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:Aa,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,q.jsx)(Ua,{}):null,(0,q.jsx)(Ca,{inside:!0,widthOf:Sa})]}):null]}):null}var ce=g(F(),1),ge=g(f(),1);function Ma(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 Va=pe(Q(()=>(__graviewPreload(import.meta.url,["./chunk.PIQ52FCI.js","./chunk.TDV7JGIQ.js","./chunk.Y3BEKXYB.js","./chunk.XEHLSKHP.js","./chunk.MSM6E6JK.js","./chunk.HJCQ6I3S.js","./chunk.FUZWXKTN.js","./chunk.YOBRVKJT.js","./chunk.DNJM6WQO.js","./chunk.LEPKPNPA.js","./chunk.5D6SIBOK.js","./chunk.UE5GAP67.js","./chunk.ATXSLBE3.js","./chunk.6UAUME5U.js","./chunk.BRCKXL7B.js","./chunk.CPNE6HPQ.js","./chunk.MFOSEOF4.js","./chunk.WVUJXDXZ.js","./chunk.HUABTCQE.js","./chunk.DXJFAAOI.js","./chunk.5MSNKSTE.js","./chunk.KVQZ5FR6.js","./chunk.2HANQ737.js","./chunk.H536YUAZ.js","./chunk.GZHZLJBF.js","./chunk.OL2N5NUV.js","./chunk.OJGHDWI6.js","./chunk.5DPFAVCZ.js","./chunk.5EZDXWOE.js","./chunk.MIQMPOWF.js","./chunk.T66UK7PQ.js","./chunk.LMXNHBGH.js","./chunk.DBCVZGCC.js","./chunk.WSMYFEGU.js","./chunk.SDO3U72B.js","./chunk.WR63RQGU.js","./chunk.FQLNBIQ5.js","./chunk.AJZBJBMO.js"]),import("./chunk.PHLMQO7V.js")))),ja=Va.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=Ma(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)(ja,{showing:c})})}var Qa=g(F(),1);var O=g(f(),1);function Ne(){let{view:e,go:n}=K(),{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 Pe(){let{administered:e}=S(),{view:n,go:l}=K(),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(F(),1);var s=g(f(),1);ea({search:ma,touchWeights:ua});var Ya=e=>e.about==="rule"?"rule:":e.about==="act"?"act:":e.kind;function Na({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,qe]=(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 We=(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=Ya(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 We.entries())d.push({id:`${b}-${t}-act-${U}`,hit:N})}return[...a.entries()]},[h,We,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)(()=>{qe(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(qe(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):er)};(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?Za(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-rr};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?{...Ra,...tr}:Ra,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":Ia(a,n.schema),children:[(0,s.jsxs)("div",{role:"presentation",style:ir,children:[a!=="rule:"?(0,s.jsx)(Ja,{kind:a,accents:c?.accents}):null,Ia(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:{...La,...i.hit.about==="act"?{paddingLeft:30}:{},background:i===A?"var(--graview-panel-muted)":"transparent"},children:(0,s.jsx)(Xa,{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:{...La,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>ar?(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 Xa({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 Ja({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 Ia(e,n){return e==="rule:"?"Rules":e==="act:"?"Acts":n.tryDefinition(e)?.plural??`${e}s`}function Za(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 er=10,ar=12,Ra={...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"},rr=6,tr={width:"var(--graview-bar-width, 100vw)",maxHeight:"55vh",borderRadius:0,borderLeft:"none",borderRight:"none"},ir={display:"flex",alignItems:"center",gap:6,padding:"8px 12px 2px",fontSize:"0.6875rem",letterSpacing:"0.06em",textTransform:"uppercase",color:"var(--graview-ink-muted)"},La={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(F(),1);var Be=g(Ga(),1);var Pa=g(f(),1);function Ha(){let{following:e,follow:n}=S();return e?(0,Pa.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(F(),1);var y=g(f(),1);function Da({home:e,homeLabel:n,children:l,onPicture:o=!1}){let{view:r,focus:w,show:c,go:v}=K(),{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,Be.createPortal)((0,E.jsx)(Na,{compact:e.compact}),e.slot),e.own?(0,Be.createPortal)((0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(J.Suspense,{fallback:null,children:(0,E.jsx)(Ta,{})}),(0,E.jsx)(ga,{calls:n,remembers:o,...l!==void 0?{seat:l}:{}})]}),e.own):null]}):null}function Fe({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)(Da,{home:e,onPicture:!0}),(0,E.jsx)("span",{style:{pointerEvents:"auto"},children:(0,E.jsx)(Ha,{})})]})}var W=g(F(),1);var Oa=g(f(),1),nr=Q(()=>(__graviewPreload(import.meta.url,["./chunk.UGFDSE37.js","./chunk.LMXNHBGH.js","./chunk.DBCVZGCC.js","./chunk.WSMYFEGU.js","./chunk.SDO3U72B.js","./chunk.WR63RQGU.js","./chunk.FQLNBIQ5.js","./chunk.AJZBJBMO.js"]),import("./chunk.ZXOD5GM3.js")));function Ke(){let{store:e,principal:n}=S(),l=(0,W.useContext)(ca),o=(0,W.useRef)(null),r=(0,W.useRef)(!1);return(0,W.useEffect)(()=>()=>void(r.current=!0),[]),(0,W.useEffect)(()=>{let w=e.batches().length,c=nr().then(v=>v.sceneWay(e,n,l,w,o.current),()=>{});return()=>void c.then(v=>v?.(r.current))},[e,n,l]),(0,Oa.jsx)("span",{ref:o,hidden:!0})}var Fa=g(F(),1);var u=g(f(),1);function Dt({address:e=!1,auto:n,quickAsk:l=!0,scheme:o,scope:r}){let w=(0,Fa.useMemo)(()=>`${Me({scope:`.${r}`})}
1131
+ }`}function Ie(e="dark",n={}){let l=_a(e);return n.scope===void 0?l:Ze(l,n.scope)}var B=g(F(),1);var q=g(f(),1),Ua=pe(Q(()=>(__graviewPreload(import.meta.url,["./chunk.JQFIZRAZ.js","./chunk.LKJ6FD6Y.js","./chunk.DBMZ3AQB.js","./chunk.SDO3U72B.js","./chunk.DIFR37EZ.js","./chunk.FQLNBIQ5.js","./chunk.AJZBJBMO.js"]),import("./chunk.7VIFAN3O.js")))).part(e=>(0,q.jsx)(e.MapKey,{}),{quiet:!0});function Re(){let{store:e}=S(),{view:n}=K(),l=le(),o=(0,B.useMemo)(()=>e.graph.allEdges().length>0,[e,l]),[r,w]=(0,B.useState)(!1),c=(0,B.useId)(),v=(0,B.useRef)(null),T=(0,B.useRef)(null);return(0,B.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,q.jsxs)("div",{style:{display:"contents"},onKeyDown:z=>{z.key!=="Escape"||!r||(z.preventDefault(),z.stopPropagation(),w(!1),v.current?.focus({preventScroll:!0}))},children:[(0,q.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,q.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:Aa,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,q.jsx)(Ua,{}):null,(0,q.jsx)(Ca,{inside:!0,widthOf:Sa})]}):null]}):null}var ce=g(F(),1),ge=g(f(),1);function Ma(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 Va=pe(Q(()=>(__graviewPreload(import.meta.url,["./chunk.6SD7YZ4U.js","./chunk.I636CZE4.js","./chunk.TVURUMU4.js","./chunk.47T3KUAA.js","./chunk.NZDWXX6H.js","./chunk.HJCQ6I3S.js","./chunk.7IXTNST2.js","./chunk.D4EP7FEC.js","./chunk.SAJLIA5M.js","./chunk.LWRXCO2Z.js","./chunk.I2NI7CT7.js","./chunk.LHIT3EZD.js","./chunk.C7EJPV2N.js","./chunk.7ML2BWSP.js","./chunk.BCE6LIDR.js","./chunk.MBLFZF5R.js","./chunk.XTBS64IT.js","./chunk.WVUJXDXZ.js","./chunk.7INWDFNG.js","./chunk.FPGU43SC.js","./chunk.V6FUYRZI.js","./chunk.5BPRGXIW.js","./chunk.BZEJM2PY.js","./chunk.CMLNBJZG.js","./chunk.GZHZLJBF.js","./chunk.QPL3OXW3.js","./chunk.OJGHDWI6.js","./chunk.FRERJWZJ.js","./chunk.RQX4CQJN.js","./chunk.LUIRQ5UF.js","./chunk.N33WUCAN.js","./chunk.JQFIZRAZ.js","./chunk.LKJ6FD6Y.js","./chunk.DBMZ3AQB.js","./chunk.SDO3U72B.js","./chunk.DIFR37EZ.js","./chunk.FQLNBIQ5.js","./chunk.AJZBJBMO.js"]),import("./chunk.LE2KAR25.js")))),ja=Va.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=Ma(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)(ja,{showing:c})})}var Qa=g(F(),1);var O=g(f(),1);function Ne(){let{view:e,go:n}=K(),{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 Pe(){let{administered:e}=S(),{view:n,go:l}=K(),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(F(),1);var s=g(f(),1);ea({search:ma,touchWeights:ua});var Ya=e=>e.about==="rule"?"rule:":e.about==="act"?"act:":e.kind;function Na({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,qe]=(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 We=(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=Ya(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 We.entries())d.push({id:`${b}-${t}-act-${U}`,hit:N})}return[...a.entries()]},[h,We,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)(()=>{qe(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(qe(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):er)};(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?Za(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-rr};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?{...Ra,...tr}:Ra,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":Ia(a,n.schema),children:[(0,s.jsxs)("div",{role:"presentation",style:ir,children:[a!=="rule:"?(0,s.jsx)(Ja,{kind:a,accents:c?.accents}):null,Ia(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:{...La,...i.hit.about==="act"?{paddingLeft:30}:{},background:i===A?"var(--graview-panel-muted)":"transparent"},children:(0,s.jsx)(Xa,{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:{...La,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>ar?(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 Xa({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 Ja({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 Ia(e,n){return e==="rule:"?"Rules":e==="act:"?"Acts":n.tryDefinition(e)?.plural??`${e}s`}function Za(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 er=10,ar=12,Ra={...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"},rr=6,tr={width:"var(--graview-bar-width, 100vw)",maxHeight:"55vh",borderRadius:0,borderLeft:"none",borderRight:"none"},ir={display:"flex",alignItems:"center",gap:6,padding:"8px 12px 2px",fontSize:"0.6875rem",letterSpacing:"0.06em",textTransform:"uppercase",color:"var(--graview-ink-muted)"},La={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(F(),1);var Be=g(Ga(),1);var Pa=g(f(),1);function Ha(){let{following:e,follow:n}=S();return e?(0,Pa.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(F(),1);var y=g(f(),1);function Da({home:e,homeLabel:n,children:l,onPicture:o=!1}){let{view:r,focus:w,show:c,go:v}=K(),{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,Be.createPortal)((0,E.jsx)(Na,{compact:e.compact}),e.slot),e.own?(0,Be.createPortal)((0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(J.Suspense,{fallback:null,children:(0,E.jsx)(Ta,{})}),(0,E.jsx)(ga,{calls:n,remembers:o,...l!==void 0?{seat:l}:{}})]}),e.own):null]}):null}function Fe({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)(Da,{home:e,onPicture:!0}),(0,E.jsx)("span",{style:{pointerEvents:"auto"},children:(0,E.jsx)(Ha,{})})]})}var W=g(F(),1);var Oa=g(f(),1),nr=Q(()=>(__graviewPreload(import.meta.url,["./chunk.UGFDSE37.js","./chunk.JQFIZRAZ.js","./chunk.LKJ6FD6Y.js","./chunk.DBMZ3AQB.js","./chunk.SDO3U72B.js","./chunk.DIFR37EZ.js","./chunk.FQLNBIQ5.js","./chunk.AJZBJBMO.js"]),import("./chunk.4L4F47QP.js")));function Ke(){let{store:e,principal:n}=S(),l=(0,W.useContext)(ca),o=(0,W.useRef)(null),r=(0,W.useRef)(!1);return(0,W.useEffect)(()=>()=>void(r.current=!0),[]),(0,W.useEffect)(()=>{let w=e.batches().length,c=nr().then(v=>v.sceneWay(e,n,l,w,o.current),()=>{});return()=>void c.then(v=>v?.(r.current))},[e,n,l]),(0,Oa.jsx)("span",{ref:o,hidden:!0})}var Fa=g(F(),1);var u=g(f(),1);function Dt({address:e=!1,auto:n,quickAsk:l=!0,scheme:o,scope:r}){let w=(0,Fa.useMemo)(()=>`${Me({scope:`.${r}`})}
1132
1132
  ${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 ${Ea}px`:"1 1 auto",minHeight:0,containerType:"size"},children:[(0,u.jsx)("style",{children:w}),e?(0,u.jsx)(za,{}):null,(0,u.jsx)($a,{}),(0,u.jsx)(Fe,{}),(0,u.jsx)(Ne,{}),(0,u.jsx)(Re,{}),(0,u.jsxs)(ka,{children:[(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)(Ke,{}),(0,u.jsx)(he,{face:"scene"})]})]})})}function Ot(){return(0,u.jsx)(Pe,{})}export{Dt as SceneFace,Ot as SceneKeeping};