@nasa-terra/components 0.0.181 → 0.0.183

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 (872) hide show
  1. package/cdn/chunks/{chunk.HMDDYPZM.js → chunk.2AS6WUZS.js} +1 -1
  2. package/cdn/chunks/{chunk.KKZLSSED.js → chunk.2CIE7IOG.js} +1 -1
  3. package/cdn/chunks/{chunk.4MLYEWPE.js → chunk.2CNZWFT5.js} +1 -1
  4. package/cdn/chunks/{chunk.V3V7RRLU.js → chunk.2TQJ5HVK.js} +1 -1
  5. package/cdn/chunks/{chunk.JKURDNA4.js → chunk.2XPI5ZCA.js} +1 -1
  6. package/cdn/chunks/{chunk.MK76WXRC.js → chunk.33SOLQSX.js} +1 -1
  7. package/cdn/chunks/{chunk.YGZ7GOSX.js → chunk.3EOK7KZK.js} +1 -1
  8. package/cdn/chunks/{chunk.AODMPEAA.js → chunk.3JNSLLZ5.js} +1 -1
  9. package/cdn/chunks/{chunk.SRLCDKSU.js → chunk.3JR4TRKV.js} +1 -1
  10. package/cdn/chunks/{chunk.O43CCSUG.js → chunk.3LOWQYPR.js} +1 -1
  11. package/cdn/chunks/{chunk.S3XNEX7Q.js → chunk.43FFXGVJ.js} +1 -1
  12. package/cdn/chunks/{chunk.LFHHJTEK.js → chunk.4CJXLCR7.js} +1 -1
  13. package/cdn/chunks/{chunk.YPYN4V4T.js → chunk.4CZYVNSX.js} +1 -1
  14. package/cdn/chunks/{chunk.DXWMVI4V.js → chunk.4EE6CRDG.js} +1 -1
  15. package/cdn/chunks/{chunk.KOA6BIWM.js → chunk.4HNLIBIC.js} +1 -1
  16. package/cdn/chunks/{chunk.FFRZZJF3.js → chunk.4SLTI4NH.js} +1 -1
  17. package/cdn/chunks/{chunk.TBLE2KGA.js → chunk.4SOCYFN2.js} +1 -1
  18. package/cdn/chunks/{chunk.35CHAEJK.js → chunk.4ULHN2N6.js} +1 -1
  19. package/cdn/chunks/{chunk.SJFGHGKH.js → chunk.566MISYA.js} +1 -1
  20. package/cdn/chunks/{chunk.ZVIECZDH.js → chunk.5ASOYLNL.js} +1 -1
  21. package/cdn/chunks/{chunk.OSBHMGAB.js → chunk.5DNWXD2R.js} +1 -1
  22. package/cdn/chunks/{chunk.63GR7COJ.js → chunk.5H4YUN2X.js} +2 -2
  23. package/cdn/chunks/{chunk.VXY726KB.js → chunk.5HANDN7A.js} +1 -1
  24. package/cdn/chunks/{chunk.2DWOHXBK.js → chunk.5POQGUPG.js} +1 -1
  25. package/cdn/chunks/{chunk.OKJYOJFO.js → chunk.5RPW2XYY.js} +1 -1
  26. package/cdn/chunks/{chunk.GCDBZ3W7.js → chunk.6BDQJCOC.js} +2 -2
  27. package/cdn/chunks/{chunk.E25SYMSA.js → chunk.6CRFKWPZ.js} +1 -1
  28. package/cdn/chunks/{chunk.5Q3ESWK2.js → chunk.6DFQCJVE.js} +1 -1
  29. package/cdn/chunks/{chunk.CIVGGIRX.js → chunk.6KDBUM42.js} +4 -4
  30. package/cdn/chunks/{chunk.AGUPZDXW.js → chunk.6NM2KLLT.js} +1 -1
  31. package/cdn/chunks/{chunk.M7VLA6HV.js → chunk.6R43ODOG.js} +1 -1
  32. package/cdn/chunks/{chunk.W2GF7BXP.js → chunk.74I3ME47.js} +1 -1
  33. package/cdn/chunks/{chunk.TKWMC5YI.js → chunk.74SL2FYL.js} +50 -11
  34. package/cdn/chunks/{chunk.XQO3ZO7J.js → chunk.766SOYIM.js} +1 -1
  35. package/cdn/chunks/{chunk.EUV33A5J.js → chunk.7ELAGMUE.js} +2 -2
  36. package/cdn/chunks/{chunk.RSUJRQLT.js → chunk.A5ZDZCE6.js} +1 -1
  37. package/cdn/chunks/{chunk.PLWNLNYY.js → chunk.A6H5DL6W.js} +1 -1
  38. package/cdn/chunks/{chunk.3OFBDOEM.js → chunk.AJDY7UPZ.js} +1 -1
  39. package/cdn/chunks/{chunk.VZEACDBX.js → chunk.AJN4U2TO.js} +1 -1
  40. package/cdn/chunks/{chunk.D7FSLFUL.js → chunk.APIGOBOW.js} +4 -4
  41. package/cdn/chunks/{chunk.DYMGURNK.js → chunk.ASAMKBD3.js} +1 -1
  42. package/cdn/chunks/{chunk.ZZFZ22B2.js → chunk.AVVWJ6SY.js} +4 -4
  43. package/cdn/chunks/{chunk.HAEGIPB7.js → chunk.AYVTEUY3.js} +1 -1
  44. package/cdn/chunks/{chunk.N55ZUY7F.js → chunk.B2V7PU6G.js} +1 -1
  45. package/cdn/chunks/{chunk.TUJY2RG5.js → chunk.B3GL5T3P.js} +1 -1
  46. package/cdn/chunks/{chunk.PK2YWTXR.js → chunk.B3GT45NN.js} +1 -1
  47. package/cdn/chunks/{chunk.MJUD6H2O.js → chunk.B75QW3II.js} +1 -1
  48. package/cdn/chunks/{chunk.OFMIOABD.js → chunk.BANAIRAU.js} +1 -1
  49. package/cdn/chunks/{chunk.PNBVXM3Y.js → chunk.BO5DEC35.js} +17 -17
  50. package/cdn/chunks/{chunk.JIY4UZ2J.js → chunk.BP4GM2ZJ.js} +4 -4
  51. package/cdn/chunks/{chunk.CWBT2ALZ.js → chunk.BZF5ICON.js} +1 -1
  52. package/cdn/chunks/{chunk.OJT6BD3G.js → chunk.C5ZCLRGB.js} +12 -12
  53. package/cdn/chunks/{chunk.JIUL3OL6.js → chunk.CDM27ZGA.js} +1 -1
  54. package/cdn/chunks/{chunk.4HIIVOOA.js → chunk.CQQYWQQB.js} +1 -1
  55. package/cdn/chunks/{chunk.WCOFECTA.js → chunk.CUOWEOKP.js} +1 -1
  56. package/cdn/chunks/{chunk.VTTODZFG.js → chunk.CYOBHXOZ.js} +1 -1
  57. package/cdn/chunks/{chunk.CD75NGST.js → chunk.CZNQL7BP.js} +1 -1
  58. package/cdn/chunks/{chunk.73ZJ52GL.js → chunk.D7PEGJUS.js} +6 -5
  59. package/cdn/chunks/{chunk.RCSM7Z5E.js → chunk.DBCVGZA3.js} +1 -1
  60. package/cdn/chunks/{chunk.VJZNIJEP.js → chunk.DFVF5OWU.js} +1 -1
  61. package/cdn/chunks/{chunk.ZTRMYR7K.js → chunk.DHBWCYOW.js} +1 -1
  62. package/cdn/chunks/{chunk.YIGURDHN.js → chunk.DO3FQ6WI.js} +1 -1
  63. package/cdn/chunks/{chunk.MB2OLLCZ.js → chunk.DOOT2A6T.js} +1 -1
  64. package/cdn/chunks/{chunk.USXZCB3X.js → chunk.DQJZWPCV.js} +1 -1
  65. package/cdn/chunks/{chunk.SCBSBLIF.js → chunk.DSHBKBGP.js} +1 -1
  66. package/cdn/chunks/{chunk.TOYEA3BN.js → chunk.DTN3RBJB.js} +1 -1
  67. package/cdn/chunks/{chunk.QDINN7DO.js → chunk.DVF5GR56.js} +1 -1
  68. package/cdn/chunks/{chunk.DEDLPLON.js → chunk.DXBX756W.js} +1 -1
  69. package/cdn/chunks/{chunk.4MF2CVEK.js → chunk.DXLEJERC.js} +1 -1
  70. package/cdn/chunks/{chunk.T5BE45M3.js → chunk.DXM34ISW.js} +1 -1
  71. package/cdn/chunks/{chunk.BOPH3VGD.js → chunk.E3AZMAYY.js} +1 -1
  72. package/cdn/chunks/{chunk.K2UWIYQ2.js → chunk.E67SZSGB.js} +1 -1
  73. package/cdn/chunks/{chunk.5IGCBQF2.js → chunk.E7SY6PUD.js} +1 -1
  74. package/cdn/chunks/{chunk.TU4BBVTN.js → chunk.EDXN664P.js} +1 -1
  75. package/cdn/chunks/{chunk.55F4UQSA.js → chunk.EHVSLO3I.js} +1 -1
  76. package/cdn/chunks/{chunk.LA5VODPG.js → chunk.EKO4CGYY.js} +1 -1
  77. package/cdn/chunks/{chunk.O5VR4XW3.js → chunk.EXR2QAGT.js} +1 -1
  78. package/cdn/chunks/{chunk.WTXVDBRE.js → chunk.EZPN23JK.js} +15 -8
  79. package/cdn/chunks/{chunk.S2BYBA42.js → chunk.F56CMAB4.js} +1 -1
  80. package/cdn/chunks/{chunk.VA5AUQXO.js → chunk.FEUWT4W2.js} +1 -1
  81. package/cdn/chunks/{chunk.UHX3667N.js → chunk.FS6WGAUU.js} +1 -1
  82. package/cdn/chunks/{chunk.LEUFWZLL.js → chunk.FZQAKZQI.js} +1 -1
  83. package/cdn/chunks/{chunk.QLPYQ5QM.js → chunk.G46E2O35.js} +1 -1
  84. package/cdn/chunks/{chunk.K2P3VBHL.js → chunk.G6YZ5W4A.js} +1 -1
  85. package/cdn/chunks/{chunk.B6THN23F.js → chunk.G7ELIWUE.js} +1 -1
  86. package/cdn/chunks/{chunk.2NYU2KVG.js → chunk.GAXGHXFH.js} +1 -1
  87. package/cdn/chunks/{chunk.FYEAHT4C.js → chunk.GEZGFDSS.js} +1 -1
  88. package/cdn/chunks/{chunk.S3S7RGFN.js → chunk.GIWOP3UW.js} +1 -1
  89. package/cdn/chunks/{chunk.LPIUMZT6.js → chunk.GL3LJMSL.js} +1 -1
  90. package/cdn/chunks/{chunk.OL7XRVJD.js → chunk.GLCNULFA.js} +1 -1
  91. package/cdn/chunks/{chunk.XUBCJIWF.js → chunk.GPDSVAGQ.js} +1 -1
  92. package/cdn/chunks/{chunk.ETE5JGX3.js → chunk.HIAOBSYV.js} +1 -1
  93. package/cdn/chunks/{chunk.2ND5H65H.js → chunk.I3GEHBHS.js} +1 -1
  94. package/cdn/chunks/{chunk.7MKFJACQ.js → chunk.I7BUNK2B.js} +1 -1
  95. package/cdn/chunks/{chunk.QPZ3OXHJ.js → chunk.IFERBNDR.js} +2 -2
  96. package/cdn/chunks/{chunk.LG5C4AHH.js → chunk.IGHS3XKC.js} +4 -4
  97. package/cdn/chunks/{chunk.5D66GYVU.js → chunk.IIZMGL3G.js} +1 -1
  98. package/cdn/chunks/{chunk.PQPZKAOJ.js → chunk.ILMARGQY.js} +2 -2
  99. package/cdn/chunks/{chunk.HK3NF22B.js → chunk.IMUWLWHM.js} +1 -1
  100. package/cdn/chunks/{chunk.Z45L4FIP.js → chunk.IOSEM4GK.js} +6 -6
  101. package/cdn/chunks/{chunk.PSGY75G2.js → chunk.IRQC53V4.js} +1 -1
  102. package/cdn/chunks/{chunk.I5G3F6D4.js → chunk.IVRUVORS.js} +1 -1
  103. package/cdn/chunks/{chunk.YDWBYNL7.js → chunk.J23K74CG.js} +1 -1
  104. package/cdn/chunks/{chunk.NQ7HNAO3.js → chunk.J5XICB7I.js} +1 -1
  105. package/cdn/chunks/{chunk.TY4WIMYJ.js → chunk.JHHGFB7X.js} +7 -7
  106. package/cdn/chunks/{chunk.IJ7RWFE2.js → chunk.JNV54ZNC.js} +1 -1
  107. package/cdn/chunks/{chunk.PHEAH3PP.js → chunk.JOS5IKOC.js} +1 -1
  108. package/cdn/chunks/{chunk.4SNGWC6U.js → chunk.JQHICCZK.js} +1 -1
  109. package/cdn/chunks/{chunk.5C3JGD4D.js → chunk.JV7VHRLT.js} +1 -1
  110. package/cdn/chunks/{chunk.SV2PUNIH.js → chunk.JX2Y6Z34.js} +1 -1
  111. package/cdn/chunks/{chunk.KAPIG3C4.js → chunk.KB35OBFX.js} +1 -1
  112. package/cdn/chunks/{chunk.OAR4VKWQ.js → chunk.KBRY6JIH.js} +1 -1
  113. package/cdn/chunks/{chunk.5BFFURMO.js → chunk.KCRHB67B.js} +1 -1
  114. package/cdn/chunks/{chunk.C2ZPLW2A.js → chunk.KGPXUKRP.js} +1 -1
  115. package/cdn/chunks/{chunk.VRUAG7OU.js → chunk.KJF2UI4Q.js} +1 -1
  116. package/cdn/chunks/{chunk.MX22XUB3.js → chunk.KPWCVIQF.js} +1 -1
  117. package/cdn/chunks/{chunk.WNOGT4FJ.js → chunk.KTAPQACH.js} +37 -8
  118. package/cdn/chunks/{chunk.BWWU3UOU.js → chunk.KYAMXBHI.js} +5 -5
  119. package/cdn/chunks/{chunk.ANTYCNBS.js → chunk.L6KUHW4Z.js} +1 -1
  120. package/cdn/chunks/{chunk.AYENYRMH.js → chunk.LAMOQP6T.js} +1 -1
  121. package/cdn/chunks/{chunk.6X5DB5KR.js → chunk.LFD6W22R.js} +2 -2
  122. package/cdn/chunks/{chunk.LG3OAUSC.js → chunk.LMKGGL3V.js} +1 -1
  123. package/cdn/chunks/{chunk.YJWB5W4S.js → chunk.LOB4X3EO.js} +1 -1
  124. package/cdn/chunks/{chunk.KSVL4NCO.js → chunk.M3VHKZCI.js} +1 -1
  125. package/cdn/chunks/{chunk.765GMYVH.js → chunk.MENUUFNT.js} +1 -1
  126. package/cdn/chunks/{chunk.DNHL2E5Q.js → chunk.MX4WCCA3.js} +1 -1
  127. package/cdn/chunks/{chunk.6ZCOQKCQ.js → chunk.MY76QRW7.js} +1 -1
  128. package/cdn/chunks/{chunk.HJDMWAVV.js → chunk.NMV3RTZV.js} +1 -1
  129. package/cdn/chunks/{chunk.4QUFZHF6.js → chunk.O3TDHDAD.js} +1 -1
  130. package/cdn/chunks/{chunk.GPLYMDPJ.js → chunk.OEJEWV5N.js} +1 -1
  131. package/cdn/chunks/{chunk.SGQIYGS7.js → chunk.OEYI4JXU.js} +2 -2
  132. package/cdn/chunks/{chunk.GMDJOE3D.js → chunk.OFVVAI2A.js} +2 -2
  133. package/cdn/chunks/{chunk.746HHL7J.js → chunk.OK7IYZFB.js} +1 -1
  134. package/cdn/chunks/{chunk.GQ57E6W4.js → chunk.OLVJ7CMW.js} +1 -1
  135. package/cdn/chunks/{chunk.WT7GDDLE.js → chunk.OS3U4CHQ.js} +1 -1
  136. package/cdn/chunks/{chunk.YJA73KAA.js → chunk.OSTI4KON.js} +1 -1
  137. package/cdn/chunks/{chunk.ERWXE4KH.js → chunk.OV64SDTX.js} +3 -3
  138. package/cdn/chunks/{chunk.3QZNL3QN.js → chunk.OZAWL2DR.js} +2 -2
  139. package/cdn/chunks/{chunk.VTCUUKPV.js → chunk.P2KCHE6P.js} +1 -1
  140. package/cdn/chunks/{chunk.LJGNFTUU.js → chunk.P2ZB2D2Q.js} +1 -1
  141. package/cdn/chunks/{chunk.47Q7XTJE.js → chunk.P3OBB2HK.js} +4 -4
  142. package/cdn/chunks/{chunk.BYWARBVO.js → chunk.P3RFJG6G.js} +1 -1
  143. package/cdn/chunks/{chunk.45VJVUYK.js → chunk.P4R6EFHW.js} +1 -1
  144. package/cdn/chunks/{chunk.ZC2YQQZ3.js → chunk.PDGNNEFS.js} +1 -1
  145. package/cdn/chunks/{chunk.EEN2PM7M.js → chunk.PN2VGRDE.js} +1 -1
  146. package/cdn/chunks/{chunk.4IWGQ3QM.js → chunk.POB5F7V2.js} +1 -1
  147. package/cdn/chunks/{chunk.PFIB3T6I.js → chunk.PQWIGOTL.js} +1 -1
  148. package/cdn/chunks/{chunk.ZFOTRE5C.js → chunk.Q2NKAJ3H.js} +1 -1
  149. package/cdn/chunks/{chunk.T6YZOAIS.js → chunk.Q3YXI3TS.js} +1 -1
  150. package/cdn/chunks/{chunk.YYVIS6D4.js → chunk.Q4GJ4KAR.js} +1 -1
  151. package/cdn/chunks/{chunk.QCHUEPMQ.js → chunk.Q5YUHLBA.js} +1 -1
  152. package/cdn/chunks/{chunk.G7ARINSA.js → chunk.QB76WME7.js} +1 -1
  153. package/cdn/chunks/{chunk.R2VK36KK.js → chunk.QRJXGNJO.js} +1 -1
  154. package/cdn/chunks/{chunk.DSYH36LJ.js → chunk.RG573SSK.js} +1 -1
  155. package/cdn/chunks/{chunk.BUHSAHXI.js → chunk.RHPDH4JE.js} +2 -2
  156. package/cdn/chunks/{chunk.WWLOI3XF.js → chunk.RQNNTE5L.js} +1 -1
  157. package/cdn/chunks/{chunk.QRJLBELU.js → chunk.SMF3DMEV.js} +1 -1
  158. package/cdn/chunks/{chunk.4NU6XC7B.js → chunk.SPL3ULRC.js} +3 -3
  159. package/cdn/chunks/{chunk.NCFSJVEZ.js → chunk.SQGI3VEP.js} +1 -1
  160. package/cdn/chunks/{chunk.DYDZ3LJN.js → chunk.SSFJOVLO.js} +2 -2
  161. package/cdn/chunks/{chunk.2Y5YYW4R.js → chunk.STCVB4X6.js} +4 -4
  162. package/cdn/chunks/{chunk.73E43E5H.js → chunk.SXFAVBZK.js} +1 -1
  163. package/cdn/chunks/{chunk.GRKM53EG.js → chunk.TCMULI7G.js} +1 -1
  164. package/cdn/chunks/{chunk.F6ZY7PEP.js → chunk.TJDCFLIT.js} +1 -1
  165. package/cdn/chunks/{chunk.ZKC2RGQN.js → chunk.TKIBY3W7.js} +1 -1
  166. package/cdn/chunks/{chunk.CUK563TP.js → chunk.TOST4JZX.js} +1 -1
  167. package/cdn/chunks/{chunk.I3XWIX6E.js → chunk.U4LSJVTA.js} +1 -1
  168. package/cdn/chunks/{chunk.KVXRPLPX.js → chunk.U5FOWXMQ.js} +1 -1
  169. package/cdn/chunks/{chunk.BCNBUAWM.js → chunk.U6OWM4MQ.js} +1 -1
  170. package/cdn/chunks/{chunk.YYDMU76Q.js → chunk.UEETRSEK.js} +3 -3
  171. package/cdn/chunks/{chunk.CY34MSDE.js → chunk.UK6CJDY5.js} +2 -2
  172. package/cdn/chunks/{chunk.FEXGBRTJ.js → chunk.UN23IPKT.js} +1 -1
  173. package/cdn/chunks/{chunk.EDYR7OMS.js → chunk.UN67OTZN.js} +1 -1
  174. package/cdn/chunks/{chunk.VVKYAGA2.js → chunk.UNCOYZNO.js} +2 -2
  175. package/cdn/chunks/{chunk.W5J7BIAV.js → chunk.UXTL4YHR.js} +1 -1
  176. package/cdn/chunks/{chunk.G6PPVFZP.js → chunk.VF3FBL2Q.js} +1 -1
  177. package/cdn/chunks/{chunk.GOKKW2WL.js → chunk.VGPCJC7D.js} +1 -1
  178. package/cdn/chunks/{chunk.7W7LCLU5.js → chunk.VHMFX3ID.js} +1 -1
  179. package/cdn/chunks/{chunk.XVECFU6I.js → chunk.VMJKUAMR.js} +2 -2
  180. package/cdn/chunks/{chunk.VO4X552X.js → chunk.VONWFPUD.js} +1 -1
  181. package/cdn/chunks/{chunk.FFGQUMMS.js → chunk.W4VXG6DB.js} +2 -2
  182. package/cdn/chunks/{chunk.6DLL4PEH.js → chunk.WDWU7JKE.js} +1 -1
  183. package/cdn/chunks/{chunk.XZ6LSQ2S.js → chunk.WMTIVWN2.js} +1 -1
  184. package/cdn/chunks/{chunk.ANY6ZBQZ.js → chunk.WSKEJ3YX.js} +15 -8
  185. package/cdn/chunks/{chunk.FH7JIHQ5.js → chunk.X76U34QG.js} +1 -1
  186. package/cdn/chunks/{chunk.4DZW7OYM.js → chunk.XC7OZOQS.js} +2 -2
  187. package/cdn/chunks/{chunk.SR53QDBY.js → chunk.XDZTKWSB.js} +1 -1
  188. package/cdn/chunks/{chunk.KSXGXCJD.js → chunk.XQEJCJUO.js} +1 -1
  189. package/cdn/chunks/{chunk.3RQ3EY2O.js → chunk.XZOFMTCK.js} +1 -1
  190. package/cdn/chunks/{chunk.N466UPRW.js → chunk.Y2SCAJDF.js} +2 -2
  191. package/cdn/chunks/{chunk.VFSDKRWK.js → chunk.Y5YXI6CB.js} +1 -1
  192. package/cdn/chunks/{chunk.DHRENFRE.js → chunk.Y6VOXEBD.js} +1 -1
  193. package/cdn/chunks/{chunk.7TSAQ7F7.js → chunk.YGSM66SH.js} +1 -1
  194. package/cdn/chunks/{chunk.UZKLGTZL.js → chunk.YP2MQECK.js} +1 -1
  195. package/cdn/chunks/{chunk.FSRWOJNJ.js → chunk.Z2XUVGS7.js} +1 -1
  196. package/cdn/chunks/{chunk.KVMARFYP.js → chunk.ZFNMKQMX.js} +1 -1
  197. package/cdn/components/accordion/accordion.component.js +3 -3
  198. package/cdn/components/accordion/accordion.js +4 -4
  199. package/cdn/components/alert/alert.component.js +2 -2
  200. package/cdn/components/alert/alert.js +3 -3
  201. package/cdn/components/avatar/avatar.component.js +3 -3
  202. package/cdn/components/avatar/avatar.js +4 -4
  203. package/cdn/components/badge/badge.component.js +2 -2
  204. package/cdn/components/badge/badge.js +3 -3
  205. package/cdn/components/breadcrumb/breadcrumb.component.js +2 -2
  206. package/cdn/components/breadcrumb/breadcrumb.js +3 -3
  207. package/cdn/components/breadcrumbs/breadcrumbs.component.js +2 -2
  208. package/cdn/components/breadcrumbs/breadcrumbs.js +3 -3
  209. package/cdn/components/browse-variables/browse-variables.component.js +10 -10
  210. package/cdn/components/browse-variables/browse-variables.js +11 -11
  211. package/cdn/components/button/button.component.js +3 -3
  212. package/cdn/components/button/button.js +4 -4
  213. package/cdn/components/button-group/button-group.component.js +2 -2
  214. package/cdn/components/button-group/button-group.js +3 -3
  215. package/cdn/components/caption/caption.component.js +2 -2
  216. package/cdn/components/caption/caption.js +3 -3
  217. package/cdn/components/card/card.component.js +2 -2
  218. package/cdn/components/card/card.js +3 -3
  219. package/cdn/components/checkbox/checkbox.component.js +3 -3
  220. package/cdn/components/checkbox/checkbox.js +4 -4
  221. package/cdn/components/chip/chip.component.js +2 -2
  222. package/cdn/components/chip/chip.js +3 -3
  223. package/cdn/components/combobox/combobox.component.js +2 -2
  224. package/cdn/components/combobox/combobox.js +3 -3
  225. package/cdn/components/data-access/data-access.component.js +16 -16
  226. package/cdn/components/data-access/data-access.js +17 -17
  227. package/cdn/components/data-grid/data-grid.component.js +3 -3
  228. package/cdn/components/data-grid/data-grid.js +4 -4
  229. package/cdn/components/data-rods/data-rods.component.js +21 -21
  230. package/cdn/components/data-rods/data-rods.js +22 -22
  231. package/cdn/components/data-subsetter/data-subsetter.component.js +24 -24
  232. package/cdn/components/data-subsetter/data-subsetter.js +25 -25
  233. package/cdn/components/data-subsetter/notebooks/subsetter-notebook.js +1 -1
  234. package/cdn/components/data-subsetter-history/data-subsetter-history.component.js +25 -25
  235. package/cdn/components/data-subsetter-history/data-subsetter-history.js +26 -26
  236. package/cdn/components/date-picker/date-picker.component.js +7 -7
  237. package/cdn/components/date-picker/date-picker.js +8 -8
  238. package/cdn/components/date-range-slider/date-range-slider.component.js +2 -2
  239. package/cdn/components/date-range-slider/date-range-slider.js +3 -3
  240. package/cdn/components/dialog/dialog.component.js +4 -4
  241. package/cdn/components/dialog/dialog.js +5 -5
  242. package/cdn/components/divider/divider.component.js +2 -2
  243. package/cdn/components/divider/divider.js +3 -3
  244. package/cdn/components/dropdown/dropdown.component.js +3 -3
  245. package/cdn/components/dropdown/dropdown.js +4 -4
  246. package/cdn/components/earthdata-login/earthdata-login.component.js +10 -10
  247. package/cdn/components/earthdata-login/earthdata-login.js +11 -11
  248. package/cdn/components/file-upload/file-upload.component.js +2 -2
  249. package/cdn/components/file-upload/file-upload.js +3 -3
  250. package/cdn/components/harmony-history/harmony-history.component.js +6 -6
  251. package/cdn/components/harmony-history/harmony-history.js +7 -7
  252. package/cdn/components/icon/icon.component.js +2 -2
  253. package/cdn/components/icon/icon.js +3 -3
  254. package/cdn/components/input/input.component.js +3 -3
  255. package/cdn/components/input/input.js +4 -4
  256. package/cdn/components/loader/loader.component.js +2 -2
  257. package/cdn/components/loader/loader.js +3 -3
  258. package/cdn/components/login/login.component.js +8 -8
  259. package/cdn/components/login/login.js +9 -9
  260. package/cdn/components/map/map.component.js +2 -2
  261. package/cdn/components/map/map.js +3 -3
  262. package/cdn/components/menu/menu.component.js +2 -2
  263. package/cdn/components/menu/menu.js +3 -3
  264. package/cdn/components/menu-item/menu-item.component.js +5 -5
  265. package/cdn/components/menu-item/menu-item.js +6 -6
  266. package/cdn/components/option/option.component.js +3 -3
  267. package/cdn/components/option/option.js +4 -4
  268. package/cdn/components/pagination/pagination.component.js +3 -3
  269. package/cdn/components/pagination/pagination.js +4 -4
  270. package/cdn/components/plot/plot.component.js +2 -2
  271. package/cdn/components/plot/plot.js +3 -3
  272. package/cdn/components/plot-toolbar/notebooks/time-averaged-map-notebook.js +1 -1
  273. package/cdn/components/plot-toolbar/notebooks/time-series-notebook.js +1 -1
  274. package/cdn/components/plot-toolbar/plot-toolbar.component.js +7 -7
  275. package/cdn/components/plot-toolbar/plot-toolbar.js +8 -8
  276. package/cdn/components/popup/popup.component.js +2 -2
  277. package/cdn/components/popup/popup.js +3 -3
  278. package/cdn/components/progress-bar/progress-bar.component.js +2 -2
  279. package/cdn/components/progress-bar/progress-bar.js +3 -3
  280. package/cdn/components/radio/radio.component.js +2 -2
  281. package/cdn/components/radio/radio.js +3 -3
  282. package/cdn/components/radio-group/radio-group.component.js +2 -2
  283. package/cdn/components/radio-group/radio-group.js +3 -3
  284. package/cdn/components/scroll-hint/scroll-hint.component.js +3 -3
  285. package/cdn/components/scroll-hint/scroll-hint.js +4 -4
  286. package/cdn/components/select/select.component.js +5 -5
  287. package/cdn/components/select/select.js +6 -6
  288. package/cdn/components/site-header/site-header.component.js +3 -3
  289. package/cdn/components/site-header/site-header.js +3 -3
  290. package/cdn/components/site-navigation/site-navigation.component.js +2 -2
  291. package/cdn/components/site-navigation/site-navigation.js +2 -2
  292. package/cdn/components/skeleton/skeleton.component.js +2 -2
  293. package/cdn/components/skeleton/skeleton.js +3 -3
  294. package/cdn/components/slider/slider.component.js +2 -2
  295. package/cdn/components/slider/slider.js +3 -3
  296. package/cdn/components/spatial-picker/spatial-picker.component.js +7 -7
  297. package/cdn/components/spatial-picker/spatial-picker.js +8 -8
  298. package/cdn/components/status-indicator/status-indicator.component.js +2 -2
  299. package/cdn/components/status-indicator/status-indicator.js +3 -3
  300. package/cdn/components/stepper/stepper.component.js +2 -2
  301. package/cdn/components/stepper/stepper.js +3 -3
  302. package/cdn/components/stepper-step/stepper-step.component.js +3 -3
  303. package/cdn/components/stepper-step/stepper-step.js +4 -4
  304. package/cdn/components/tab/tab.component.js +3 -3
  305. package/cdn/components/tab/tab.js +4 -4
  306. package/cdn/components/tab-panel/tab-panel.component.js +2 -2
  307. package/cdn/components/tab-panel/tab-panel.js +3 -3
  308. package/cdn/components/tabs/tabs.component.js +3 -3
  309. package/cdn/components/tabs/tabs.js +4 -4
  310. package/cdn/components/tag/tag.component.js +3 -3
  311. package/cdn/components/tag/tag.js +4 -4
  312. package/cdn/components/textarea/textarea.component.js +2 -2
  313. package/cdn/components/textarea/textarea.js +3 -3
  314. package/cdn/components/time-average-map/time-average-map.component.d.ts +9 -0
  315. package/cdn/components/time-average-map/time-average-map.component.js +12 -12
  316. package/cdn/components/time-average-map/time-average-map.controller.js +1 -1
  317. package/cdn/components/time-average-map/time-average-map.js +13 -13
  318. package/cdn/components/time-series/time-series.component.d.ts +9 -0
  319. package/cdn/components/time-series/time-series.component.js +12 -12
  320. package/cdn/components/time-series/time-series.controller.js +1 -1
  321. package/cdn/components/time-series/time-series.js +13 -13
  322. package/cdn/components/toast/toast.component.js +3 -3
  323. package/cdn/components/toast/toast.js +4 -4
  324. package/cdn/components/toggle/toggle.component.js +2 -2
  325. package/cdn/components/toggle/toggle.js +3 -3
  326. package/cdn/components/tooltip/tooltip.component.js +3 -3
  327. package/cdn/components/tooltip/tooltip.js +4 -4
  328. package/cdn/components/variable-combobox/variable-combobox.component.js +6 -6
  329. package/cdn/components/variable-combobox/variable-combobox.js +7 -7
  330. package/cdn/components/variable-keyword-search/variable-keyword-search.component.js +6 -6
  331. package/cdn/components/variable-keyword-search/variable-keyword-search.js +7 -7
  332. package/cdn/custom-elements.json +783 -711
  333. package/cdn/react/accordion/index.js +4 -4
  334. package/cdn/react/alert/index.js +3 -3
  335. package/cdn/react/avatar/index.js +4 -4
  336. package/cdn/react/badge/index.js +3 -3
  337. package/cdn/react/breadcrumb/index.js +3 -3
  338. package/cdn/react/breadcrumbs/index.js +3 -3
  339. package/cdn/react/browse-variables/index.js +11 -11
  340. package/cdn/react/button/index.js +4 -4
  341. package/cdn/react/button-group/index.js +3 -3
  342. package/cdn/react/caption/index.js +3 -3
  343. package/cdn/react/card/index.js +3 -3
  344. package/cdn/react/checkbox/index.js +4 -4
  345. package/cdn/react/chip/index.js +3 -3
  346. package/cdn/react/combobox/index.js +3 -3
  347. package/cdn/react/data-access/index.js +17 -17
  348. package/cdn/react/data-grid/index.js +4 -4
  349. package/cdn/react/data-rods/index.js +22 -22
  350. package/cdn/react/data-subsetter/index.js +25 -25
  351. package/cdn/react/data-subsetter-history/index.js +26 -26
  352. package/cdn/react/date-picker/index.js +8 -8
  353. package/cdn/react/date-range-slider/index.js +3 -3
  354. package/cdn/react/dialog/index.js +5 -5
  355. package/cdn/react/divider/index.js +3 -3
  356. package/cdn/react/dropdown/index.js +4 -4
  357. package/cdn/react/earthdata-login/index.js +11 -11
  358. package/cdn/react/file-upload/index.js +3 -3
  359. package/cdn/react/harmony-history/index.js +7 -7
  360. package/cdn/react/icon/index.js +3 -3
  361. package/cdn/react/index.d.ts +2 -2
  362. package/cdn/react/index.js +140 -140
  363. package/cdn/react/input/index.js +4 -4
  364. package/cdn/react/loader/index.js +3 -3
  365. package/cdn/react/login/index.js +9 -9
  366. package/cdn/react/map/index.js +3 -3
  367. package/cdn/react/menu/index.js +3 -3
  368. package/cdn/react/menu-item/index.js +6 -6
  369. package/cdn/react/option/index.js +4 -4
  370. package/cdn/react/pagination/index.js +4 -4
  371. package/cdn/react/plot/index.js +3 -3
  372. package/cdn/react/plot-toolbar/index.js +8 -8
  373. package/cdn/react/popup/index.js +3 -3
  374. package/cdn/react/progress-bar/index.js +3 -3
  375. package/cdn/react/radio/index.js +3 -3
  376. package/cdn/react/radio-group/index.js +3 -3
  377. package/cdn/react/scroll-hint/index.js +4 -4
  378. package/cdn/react/select/index.js +6 -6
  379. package/cdn/react/site-header/index.js +4 -4
  380. package/cdn/react/site-navigation/index.js +3 -3
  381. package/cdn/react/skeleton/index.js +3 -3
  382. package/cdn/react/slider/index.js +3 -3
  383. package/cdn/react/spatial-picker/index.js +8 -8
  384. package/cdn/react/status-indicator/index.js +3 -3
  385. package/cdn/react/stepper/index.js +3 -3
  386. package/cdn/react/stepper-step/index.js +4 -4
  387. package/cdn/react/tab/index.js +4 -4
  388. package/cdn/react/tab-panel/index.js +3 -3
  389. package/cdn/react/tabs/index.js +4 -4
  390. package/cdn/react/tag/index.js +4 -4
  391. package/cdn/react/textarea/index.js +3 -3
  392. package/cdn/react/time-average-map/index.js +13 -13
  393. package/cdn/react/time-series/index.js +13 -13
  394. package/cdn/react/toast/index.js +4 -4
  395. package/cdn/react/toggle/index.js +3 -3
  396. package/cdn/react/tooltip/index.js +4 -4
  397. package/cdn/react/variable-combobox/index.js +7 -7
  398. package/cdn/react/variable-keyword-search/index.js +7 -7
  399. package/cdn/terra-ui-components.js +130 -130
  400. package/cdn/types/vue/index.d.ts +127 -117
  401. package/cdn/vscode.html-custom-data.json +137 -117
  402. package/cdn/web-types.json +315 -275
  403. package/dist/chunks/{chunk.UIJRLYJ5.js → chunk.22W5VSIY.js} +1 -1
  404. package/dist/chunks/chunk.2DIJRXPF.js +1 -0
  405. package/dist/chunks/chunk.2EHTEQEK.js +1 -0
  406. package/dist/chunks/{chunk.U2GOK43S.js → chunk.2SOE5WNN.js} +1 -1
  407. package/dist/chunks/{chunk.AAY4R5IR.js → chunk.2W34XHFF.js} +1 -1
  408. package/dist/chunks/chunk.33VMPVG2.js +1 -0
  409. package/dist/chunks/{chunk.TOHRQWOJ.js → chunk.3GCT7G6D.js} +1 -1
  410. package/dist/chunks/{chunk.K3PIEJHK.js → chunk.3IW7XQBX.js} +1 -1
  411. package/dist/chunks/{chunk.ODZ5RFHN.js → chunk.3IZSVAXU.js} +1 -1
  412. package/dist/chunks/{chunk.PNFIHG3Z.js → chunk.3RFZA4SH.js} +1 -1
  413. package/dist/chunks/{chunk.ACHFH4Q5.js → chunk.3SR7XGKF.js} +1 -1
  414. package/dist/chunks/chunk.3TSEY3AF.js +1 -0
  415. package/dist/chunks/{chunk.QXFOLPTE.js → chunk.3U5SCBFB.js} +1 -1
  416. package/dist/chunks/{chunk.5YXQRHD5.js → chunk.3UVGUD3M.js} +1 -1
  417. package/dist/chunks/{chunk.U2FNXZ4T.js → chunk.3Z6OXGXC.js} +1 -1
  418. package/dist/chunks/{chunk.N3AEF5KW.js → chunk.43DBTB3I.js} +1 -1
  419. package/dist/chunks/{chunk.MJVP52R5.js → chunk.4HRYGPYC.js} +1 -1
  420. package/dist/chunks/{chunk.G6R7GCGB.js → chunk.4IDFGJ6O.js} +1 -1
  421. package/dist/chunks/chunk.4KJLSJQR.js +1 -0
  422. package/dist/chunks/{chunk.ZDHEJXMO.js → chunk.4LJPYOM5.js} +1 -1
  423. package/dist/chunks/chunk.5AYJI4B4.js +1 -0
  424. package/dist/chunks/{chunk.B5J6EQBL.js → chunk.5MDDGUNE.js} +1 -1
  425. package/dist/chunks/chunk.5OC7O3C3.js +1 -0
  426. package/dist/chunks/{chunk.YVP42OKY.js → chunk.5S4BLGYP.js} +1 -1
  427. package/dist/chunks/{chunk.7MBGEUE4.js → chunk.5WRLVWFJ.js} +1 -1
  428. package/dist/chunks/{chunk.PM4ZLX54.js → chunk.5WSL5UOZ.js} +1 -1
  429. package/dist/chunks/chunk.5WVQGGNV.js +1 -0
  430. package/dist/chunks/{chunk.WKLFO4CV.js → chunk.67N7RTFT.js} +1 -1
  431. package/dist/chunks/chunk.6FTATTNJ.js +1 -0
  432. package/dist/chunks/{chunk.WGADCB3O.js → chunk.6JHVQ4AO.js} +1 -1
  433. package/dist/chunks/chunk.6POVTTBY.js +1 -0
  434. package/dist/chunks/{chunk.SLEOS424.js → chunk.7FDFZHRO.js} +1 -1
  435. package/dist/chunks/{chunk.5SB77RHW.js → chunk.7H4CDMA5.js} +1 -1
  436. package/dist/chunks/{chunk.55RZU5QQ.js → chunk.7YD7ME6X.js} +1 -1
  437. package/dist/chunks/{chunk.6XF647QW.js → chunk.A2QUAWVK.js} +1 -1
  438. package/dist/chunks/{chunk.NJTQ2K6F.js → chunk.A2XLEPQ6.js} +1 -1
  439. package/dist/chunks/chunk.A7E4OVUN.js +1 -0
  440. package/dist/chunks/{chunk.LHGSX2EB.js → chunk.AACXV4BZ.js} +1 -1
  441. package/dist/chunks/chunk.ABABOXRW.js +1 -0
  442. package/dist/chunks/{chunk.MKVYWZTL.js → chunk.AKA3526D.js} +1 -1
  443. package/dist/chunks/chunk.AKEEJ2UZ.js +1 -0
  444. package/dist/chunks/{chunk.W7RCZIAS.js → chunk.AN72KCBX.js} +1 -1
  445. package/dist/chunks/chunk.AOVH5LYA.js +1 -0
  446. package/dist/chunks/{chunk.RTZZX2UG.js → chunk.BFCD73R4.js} +1 -1
  447. package/dist/chunks/{chunk.RM5PZL2E.js → chunk.BFQUKRQ7.js} +1 -1
  448. package/dist/chunks/{chunk.2BHAYNPS.js → chunk.BINRT4NX.js} +1 -1
  449. package/dist/chunks/{chunk.E47M7NVI.js → chunk.BLIBQFBM.js} +1 -1
  450. package/dist/chunks/chunk.BPSOOQHL.js +1 -0
  451. package/dist/chunks/{chunk.WPYM7UE2.js → chunk.BZR4BGIU.js} +1 -1
  452. package/dist/chunks/{chunk.WGYVWH4N.js → chunk.C3HTF6QP.js} +1 -1
  453. package/dist/chunks/{chunk.JZSTMBRE.js → chunk.CJJ6KRNY.js} +1 -1
  454. package/dist/chunks/{chunk.LXRYB5BK.js → chunk.CKBGZICB.js} +1 -1
  455. package/dist/chunks/{chunk.JIPQ7AV4.js → chunk.CR2WUMIZ.js} +1 -1
  456. package/dist/chunks/{chunk.3VXALYKM.js → chunk.D3EZJCGI.js} +1 -1
  457. package/dist/chunks/chunk.D5RQQJXT.js +1 -0
  458. package/dist/chunks/chunk.DBV4OJRE.js +1 -0
  459. package/dist/chunks/{chunk.E6LODOVJ.js → chunk.DGWO2RFN.js} +1 -1
  460. package/dist/chunks/{chunk.BCYULSBS.js → chunk.DWZGNFF4.js} +1 -1
  461. package/dist/chunks/{chunk.LBG47EHU.js → chunk.E2LDIZ5A.js} +1 -1
  462. package/dist/chunks/{chunk.ELUBODMC.js → chunk.E4677ORX.js} +1 -1
  463. package/dist/chunks/{chunk.SAYRRMRN.js → chunk.E4I3BOYJ.js} +1 -1
  464. package/dist/chunks/{chunk.ZTYZ7EWT.js → chunk.EC37HQTK.js} +1 -1
  465. package/dist/chunks/{chunk.KWCBIL2K.js → chunk.EDPXBQTK.js} +1 -1
  466. package/dist/chunks/chunk.EGCCXDVN.js +1 -0
  467. package/dist/chunks/chunk.EGLGMWHL.js +1 -0
  468. package/dist/chunks/chunk.ERANRWC4.js +1 -0
  469. package/dist/chunks/{chunk.XIJIRCHU.js → chunk.ETTQAMEC.js} +1 -1
  470. package/dist/chunks/chunk.F5USPXS3.js +1 -0
  471. package/dist/chunks/chunk.F6FNJHJZ.js +1 -0
  472. package/dist/chunks/chunk.FCWJPJFL.js +1 -0
  473. package/dist/chunks/chunk.FHINJ6Y2.js +1 -0
  474. package/dist/chunks/{chunk.QBZ3RHNB.js → chunk.FJREISFT.js} +2 -1
  475. package/dist/chunks/{chunk.ETE4SEGE.js → chunk.FLBHZW2V.js} +1 -1
  476. package/dist/chunks/{chunk.ZHOOI52R.js → chunk.FPIGO2RS.js} +1 -1
  477. package/dist/chunks/{chunk.W753QEWS.js → chunk.G46SEHQ7.js} +1 -1
  478. package/dist/chunks/{chunk.5QVSLO3V.js → chunk.G62AJUJB.js} +1 -1
  479. package/dist/chunks/{chunk.FSSL6ZLQ.js → chunk.GHGA4BC4.js} +1 -1
  480. package/dist/chunks/chunk.GJXJ3REL.js +1 -0
  481. package/dist/chunks/chunk.H2VQ3GAL.js +1 -0
  482. package/dist/chunks/{chunk.CQXIUSH7.js → chunk.HWFOOCNQ.js} +1 -1
  483. package/dist/chunks/{chunk.64Q7BMHI.js → chunk.HYYUEKDV.js} +1 -1
  484. package/dist/chunks/{chunk.ZS3U4XEF.js → chunk.I2ILFA6G.js} +1 -1
  485. package/dist/chunks/{chunk.EDADTX5Q.js → chunk.ICQTH4UH.js} +1 -1
  486. package/dist/chunks/{chunk.2MLS3BXA.js → chunk.IIMUOQLT.js} +1 -1
  487. package/dist/chunks/chunk.IKMKIY65.js +1 -0
  488. package/dist/chunks/{chunk.X6YUDBBQ.js → chunk.INEHUL67.js} +1 -1
  489. package/dist/chunks/{chunk.244CTE3T.js → chunk.IXBKG4DQ.js} +1 -1
  490. package/dist/chunks/chunk.J76YSYRY.js +1 -0
  491. package/dist/chunks/chunk.JM2TVYXO.js +1 -0
  492. package/dist/chunks/{chunk.A26JWAE2.js → chunk.JP6WABYN.js} +1 -1
  493. package/dist/chunks/chunk.JXBO5BLF.js +1 -0
  494. package/dist/chunks/chunk.JZEBR7NP.js +1 -0
  495. package/dist/chunks/{chunk.L5XSUU23.js → chunk.K4YRHDUB.js} +1 -1
  496. package/dist/chunks/{chunk.O7IVXZBJ.js → chunk.KIFHC3T7.js} +1 -1
  497. package/dist/chunks/chunk.KOJUXXJY.js +1 -0
  498. package/dist/chunks/chunk.KRBL5FV4.js +1 -0
  499. package/dist/chunks/{chunk.2C5SN5KH.js → chunk.LKMGRBDO.js} +1 -1
  500. package/dist/chunks/{chunk.SDEKZ7EH.js → chunk.LXRK5DKR.js} +1 -1
  501. package/dist/chunks/{chunk.S3WSRAXA.js → chunk.LZMYJKUH.js} +1 -1
  502. package/dist/chunks/chunk.M2R2MWW6.js +1 -0
  503. package/dist/chunks/{chunk.EJOLVPRS.js → chunk.M7QRFNKJ.js} +1 -1
  504. package/dist/chunks/chunk.MCAWMU6G.js +1 -0
  505. package/dist/chunks/{chunk.PAEUAUNV.js → chunk.MHQDU7QQ.js} +1 -1
  506. package/dist/chunks/{chunk.PDXLX5LB.js → chunk.MN5MWOZ3.js} +1 -1
  507. package/dist/chunks/chunk.MPRJWP7V.js +1 -0
  508. package/dist/chunks/chunk.MVAJBYGZ.js +126 -0
  509. package/dist/chunks/{chunk.NSHMVB5U.js → chunk.MVDZSUTF.js} +1 -1
  510. package/dist/chunks/chunk.MXWCEPLJ.js +1 -0
  511. package/dist/chunks/{chunk.YSJ2VJE5.js → chunk.N7Z3XJDH.js} +1 -1
  512. package/dist/chunks/{chunk.O3JBMOQJ.js → chunk.NIKDBWYT.js} +1 -1
  513. package/dist/chunks/{chunk.7I5677S3.js → chunk.NLPXUCOV.js} +1 -1
  514. package/dist/chunks/chunk.NM2E2NLC.js +1 -0
  515. package/dist/chunks/{chunk.USZXOQ5W.js → chunk.NQZ46ACA.js} +1 -1
  516. package/dist/chunks/chunk.NS7F6WHR.js +1 -0
  517. package/dist/chunks/{chunk.IWYCR2FE.js → chunk.NVDKJ23W.js} +1 -1
  518. package/dist/chunks/{chunk.3IDBLCMG.js → chunk.O73CQNUQ.js} +1 -1
  519. package/dist/chunks/{chunk.HOADB2CO.js → chunk.O7SZO3F2.js} +1 -1
  520. package/dist/chunks/{chunk.NORSDIMU.js → chunk.OJL2JDC7.js} +1 -1
  521. package/dist/chunks/{chunk.5JBQBY62.js → chunk.OK4KVEO2.js} +1 -1
  522. package/dist/chunks/chunk.OMA4FSS5.js +1 -0
  523. package/dist/chunks/{chunk.YS7ZNM77.js → chunk.ON5SHFJQ.js} +1 -1
  524. package/dist/chunks/chunk.OSTPKJEG.js +1 -0
  525. package/dist/chunks/chunk.OT7EWZTB.js +1 -0
  526. package/dist/chunks/{chunk.6UKNMXZJ.js → chunk.OX37ME76.js} +1 -1
  527. package/dist/chunks/{chunk.DMPAY35P.js → chunk.P6YUH5PJ.js} +1 -1
  528. package/dist/chunks/{chunk.CZZ63EKR.js → chunk.PFQRZNG4.js} +1 -1
  529. package/dist/chunks/{chunk.FM53AQRR.js → chunk.PLI2OJCQ.js} +1 -1
  530. package/dist/chunks/{chunk.T6M2XKVT.js → chunk.PRMGGZD4.js} +1 -1
  531. package/dist/chunks/chunk.PZUTCNO3.js +1 -0
  532. package/dist/chunks/{chunk.BPWHAHIU.js → chunk.Q3PYZL4K.js} +1 -1
  533. package/dist/chunks/chunk.Q7PSTAT7.js +1 -0
  534. package/dist/chunks/chunk.QFFE2X7G.js +2 -0
  535. package/dist/chunks/{chunk.2UQEJRIQ.js → chunk.QMKNO7LA.js} +1 -1
  536. package/dist/chunks/{chunk.NZW4RZY3.js → chunk.QNKIAUTE.js} +1 -1
  537. package/dist/chunks/{chunk.5CBU7CVX.js → chunk.QRVD7RXJ.js} +1 -1
  538. package/dist/chunks/{chunk.OILCN37O.js → chunk.R4H27HPH.js} +1 -1
  539. package/dist/chunks/{chunk.3B4QPUAN.js → chunk.R5Y5643D.js} +1 -1
  540. package/dist/chunks/chunk.R6N6DP26.js +1 -0
  541. package/dist/chunks/{chunk.PABCKGCM.js → chunk.RA5TZXXD.js} +3 -3
  542. package/dist/chunks/{chunk.UHWXDO2X.js → chunk.RHZLBLLF.js} +1 -1
  543. package/dist/chunks/{chunk.OGQJH54I.js → chunk.RLV3QOCE.js} +1 -1
  544. package/dist/chunks/{chunk.QC2EZC4J.js → chunk.RMU4NF2I.js} +1 -1
  545. package/dist/chunks/{chunk.2UZ2VECA.js → chunk.RXKQPVIN.js} +1 -1
  546. package/dist/chunks/{chunk.VZTQF4OE.js → chunk.SBMJYTJG.js} +1 -1
  547. package/dist/chunks/{chunk.LC4ZSYI5.js → chunk.SDA73BKN.js} +1 -1
  548. package/dist/chunks/{chunk.UZ4RSTT6.js → chunk.SFIHSJ6O.js} +1 -1
  549. package/dist/chunks/chunk.T4AXF34W.js +1 -0
  550. package/dist/chunks/{chunk.76DTOJU7.js → chunk.T7NCR3JO.js} +1 -1
  551. package/dist/chunks/{chunk.FNBTJL76.js → chunk.TDXYYC75.js} +1 -1
  552. package/dist/chunks/{chunk.YID2VH6X.js → chunk.TF5PF2Y7.js} +1 -1
  553. package/dist/chunks/{chunk.UEJTWT4H.js → chunk.TIPXDUPS.js} +1 -1
  554. package/dist/chunks/chunk.TSKVHV4C.js +1 -0
  555. package/dist/chunks/{chunk.BNV4KROE.js → chunk.TWSMAGBG.js} +1 -1
  556. package/dist/chunks/{chunk.VBIWDPIC.js → chunk.TXVIV3TJ.js} +1 -1
  557. package/dist/chunks/{chunk.OAYJFXJ7.js → chunk.U534PR4Z.js} +1 -1
  558. package/dist/chunks/{chunk.BWAKPSV4.js → chunk.U5T6HVUD.js} +1 -1
  559. package/dist/chunks/chunk.UCIPQRQ5.js +1 -0
  560. package/dist/chunks/{chunk.ZIOKLPTQ.js → chunk.UDWGU7PA.js} +1 -1
  561. package/dist/chunks/{chunk.BARYZDDP.js → chunk.UEYBVNWD.js} +1 -1
  562. package/dist/chunks/{chunk.JLS55DD4.js → chunk.UG37L2HK.js} +1 -1
  563. package/dist/chunks/chunk.UHVFXJIO.js +1 -0
  564. package/dist/chunks/chunk.UNHPETRL.js +1 -0
  565. package/dist/chunks/chunk.USHDAI2U.js +1 -0
  566. package/dist/chunks/{chunk.OWXXS6QM.js → chunk.USKLSCR4.js} +1 -1
  567. package/dist/chunks/chunk.UVFP7A7Y.js +1 -0
  568. package/dist/chunks/{chunk.V6OBKZEU.js → chunk.UWC4EZHJ.js} +1 -1
  569. package/dist/chunks/{chunk.5FHR3PRK.js → chunk.V2A2YBNP.js} +1 -1
  570. package/dist/chunks/chunk.V4V53TPL.js +1 -0
  571. package/dist/chunks/chunk.VBS322AL.js +1 -0
  572. package/dist/chunks/{chunk.5BVXDE6L.js → chunk.VHVPWCSD.js} +1 -1
  573. package/dist/chunks/{chunk.PBRI7B7A.js → chunk.VIHZ3AQQ.js} +1 -1
  574. package/dist/chunks/chunk.VOB6JQVM.js +1 -0
  575. package/dist/chunks/chunk.VXZBPMAO.js +1 -0
  576. package/dist/chunks/chunk.W4GBBDDF.js +1 -0
  577. package/dist/chunks/{chunk.AQ25ZIGD.js → chunk.WJBUDOJM.js} +1 -1
  578. package/dist/chunks/{chunk.MU3VKJWB.js → chunk.WJPWREQ5.js} +1 -1
  579. package/dist/chunks/chunk.WUHSGJBJ.js +1 -0
  580. package/dist/chunks/{chunk.5T6SIPN2.js → chunk.WVF3UO6S.js} +1 -1
  581. package/dist/chunks/{chunk.NFM5IDJR.js → chunk.WWNAUUUD.js} +1 -1
  582. package/dist/chunks/chunk.XKSSGRUN.js +1 -0
  583. package/dist/chunks/chunk.XOL53DBK.js +1 -0
  584. package/dist/chunks/{chunk.UQXFJXT2.js → chunk.XOQR6J72.js} +1 -1
  585. package/dist/chunks/chunk.XRURAMVY.js +1 -0
  586. package/dist/chunks/{chunk.J5THC22T.js → chunk.XSZFO6TT.js} +1 -1
  587. package/dist/chunks/{chunk.Z25SA46F.js → chunk.Y2DXMHBB.js} +1 -1
  588. package/dist/chunks/{chunk.AP6WOLOM.js → chunk.Y6BTP2LU.js} +1 -1
  589. package/dist/chunks/{chunk.BQ7I5O2H.js → chunk.YKRY5A5J.js} +1 -1
  590. package/dist/chunks/{chunk.37QTJ25S.js → chunk.YKSJHDSR.js} +1 -1
  591. package/dist/chunks/chunk.YMWTWQBA.js +1 -0
  592. package/dist/chunks/{chunk.CL3UPHCV.js → chunk.YONWP2M5.js} +1 -1
  593. package/dist/chunks/{chunk.27Y756GG.js → chunk.YPRGRNRX.js} +1 -1
  594. package/dist/chunks/chunk.YQCNEYQU.js +1 -0
  595. package/dist/chunks/{chunk.4CN24QEJ.js → chunk.YT5HGOQB.js} +1 -1
  596. package/dist/chunks/{chunk.ZFIDO76G.js → chunk.ZPCBH2AK.js} +1 -1
  597. package/dist/chunks/{chunk.GQIIFJUH.js → chunk.ZXFJBAC5.js} +1 -1
  598. package/dist/chunks/{chunk.UYGW5SAC.js → chunk.ZZSLD7WM.js} +1 -1
  599. package/dist/components/accordion/accordion.component.js +1 -1
  600. package/dist/components/accordion/accordion.js +1 -1
  601. package/dist/components/alert/alert.component.js +1 -1
  602. package/dist/components/alert/alert.js +1 -1
  603. package/dist/components/avatar/avatar.component.js +1 -1
  604. package/dist/components/avatar/avatar.js +1 -1
  605. package/dist/components/badge/badge.component.js +1 -1
  606. package/dist/components/badge/badge.js +1 -1
  607. package/dist/components/breadcrumb/breadcrumb.component.js +1 -1
  608. package/dist/components/breadcrumb/breadcrumb.js +1 -1
  609. package/dist/components/breadcrumbs/breadcrumbs.component.js +1 -1
  610. package/dist/components/breadcrumbs/breadcrumbs.js +1 -1
  611. package/dist/components/browse-variables/browse-variables.component.js +1 -1
  612. package/dist/components/browse-variables/browse-variables.js +1 -1
  613. package/dist/components/button/button.component.js +1 -1
  614. package/dist/components/button/button.js +1 -1
  615. package/dist/components/button-group/button-group.component.js +1 -1
  616. package/dist/components/button-group/button-group.js +1 -1
  617. package/dist/components/caption/caption.component.js +1 -1
  618. package/dist/components/caption/caption.js +1 -1
  619. package/dist/components/card/card.component.js +1 -1
  620. package/dist/components/card/card.js +1 -1
  621. package/dist/components/checkbox/checkbox.component.js +1 -1
  622. package/dist/components/checkbox/checkbox.js +1 -1
  623. package/dist/components/chip/chip.component.js +1 -1
  624. package/dist/components/chip/chip.js +1 -1
  625. package/dist/components/combobox/combobox.component.js +1 -1
  626. package/dist/components/combobox/combobox.js +1 -1
  627. package/dist/components/data-access/data-access.component.js +1 -1
  628. package/dist/components/data-access/data-access.js +1 -1
  629. package/dist/components/data-grid/data-grid.component.js +1 -1
  630. package/dist/components/data-grid/data-grid.js +1 -1
  631. package/dist/components/data-rods/data-rods.component.js +1 -1
  632. package/dist/components/data-rods/data-rods.js +1 -1
  633. package/dist/components/data-subsetter/data-subsetter.component.js +1 -1
  634. package/dist/components/data-subsetter/data-subsetter.js +1 -1
  635. package/dist/components/data-subsetter/notebooks/subsetter-notebook.js +1 -1
  636. package/dist/components/data-subsetter-history/data-subsetter-history.component.js +1 -1
  637. package/dist/components/data-subsetter-history/data-subsetter-history.js +1 -1
  638. package/dist/components/date-picker/date-picker.component.js +1 -1
  639. package/dist/components/date-picker/date-picker.js +1 -1
  640. package/dist/components/date-range-slider/date-range-slider.component.js +1 -1
  641. package/dist/components/date-range-slider/date-range-slider.js +1 -1
  642. package/dist/components/dialog/dialog.component.js +1 -1
  643. package/dist/components/dialog/dialog.js +1 -1
  644. package/dist/components/divider/divider.component.js +1 -1
  645. package/dist/components/divider/divider.js +1 -1
  646. package/dist/components/dropdown/dropdown.component.js +1 -1
  647. package/dist/components/dropdown/dropdown.js +1 -1
  648. package/dist/components/earthdata-login/earthdata-login.component.js +1 -1
  649. package/dist/components/earthdata-login/earthdata-login.js +1 -1
  650. package/dist/components/file-upload/file-upload.component.js +1 -1
  651. package/dist/components/file-upload/file-upload.js +1 -1
  652. package/dist/components/harmony-history/harmony-history.component.js +1 -1
  653. package/dist/components/harmony-history/harmony-history.js +1 -1
  654. package/dist/components/icon/icon.component.js +1 -1
  655. package/dist/components/icon/icon.js +1 -1
  656. package/dist/components/input/input.component.js +1 -1
  657. package/dist/components/input/input.js +1 -1
  658. package/dist/components/loader/loader.component.js +1 -1
  659. package/dist/components/loader/loader.js +1 -1
  660. package/dist/components/login/login.component.js +1 -1
  661. package/dist/components/login/login.js +1 -1
  662. package/dist/components/map/map.component.js +1 -1
  663. package/dist/components/map/map.js +1 -1
  664. package/dist/components/menu/menu.component.js +1 -1
  665. package/dist/components/menu/menu.js +1 -1
  666. package/dist/components/menu-item/menu-item.component.js +1 -1
  667. package/dist/components/menu-item/menu-item.js +1 -1
  668. package/dist/components/option/option.component.js +1 -1
  669. package/dist/components/option/option.js +1 -1
  670. package/dist/components/pagination/pagination.component.js +1 -1
  671. package/dist/components/pagination/pagination.js +1 -1
  672. package/dist/components/plot/plot.component.js +1 -1
  673. package/dist/components/plot/plot.js +1 -1
  674. package/dist/components/plot-toolbar/notebooks/time-averaged-map-notebook.js +1 -1
  675. package/dist/components/plot-toolbar/notebooks/time-series-notebook.js +1 -1
  676. package/dist/components/plot-toolbar/plot-toolbar.component.js +1 -1
  677. package/dist/components/plot-toolbar/plot-toolbar.js +1 -1
  678. package/dist/components/popup/popup.component.js +1 -1
  679. package/dist/components/popup/popup.js +1 -1
  680. package/dist/components/progress-bar/progress-bar.component.js +1 -1
  681. package/dist/components/progress-bar/progress-bar.js +1 -1
  682. package/dist/components/radio/radio.component.js +1 -1
  683. package/dist/components/radio/radio.js +1 -1
  684. package/dist/components/radio-group/radio-group.component.js +1 -1
  685. package/dist/components/radio-group/radio-group.js +1 -1
  686. package/dist/components/scroll-hint/scroll-hint.component.js +1 -1
  687. package/dist/components/scroll-hint/scroll-hint.js +1 -1
  688. package/dist/components/select/select.component.js +1 -1
  689. package/dist/components/select/select.js +1 -1
  690. package/dist/components/site-header/site-header.component.js +1 -1
  691. package/dist/components/site-header/site-header.js +1 -1
  692. package/dist/components/site-navigation/site-navigation.component.js +1 -1
  693. package/dist/components/site-navigation/site-navigation.js +1 -1
  694. package/dist/components/skeleton/skeleton.component.js +1 -1
  695. package/dist/components/skeleton/skeleton.js +1 -1
  696. package/dist/components/slider/slider.component.js +1 -1
  697. package/dist/components/slider/slider.js +1 -1
  698. package/dist/components/spatial-picker/spatial-picker.component.js +1 -1
  699. package/dist/components/spatial-picker/spatial-picker.js +1 -1
  700. package/dist/components/status-indicator/status-indicator.component.js +1 -1
  701. package/dist/components/status-indicator/status-indicator.js +1 -1
  702. package/dist/components/stepper/stepper.component.js +1 -1
  703. package/dist/components/stepper/stepper.js +1 -1
  704. package/dist/components/stepper-step/stepper-step.component.js +1 -1
  705. package/dist/components/stepper-step/stepper-step.js +1 -1
  706. package/dist/components/tab/tab.component.js +1 -1
  707. package/dist/components/tab/tab.js +1 -1
  708. package/dist/components/tab-panel/tab-panel.component.js +1 -1
  709. package/dist/components/tab-panel/tab-panel.js +1 -1
  710. package/dist/components/tabs/tabs.component.js +1 -1
  711. package/dist/components/tabs/tabs.js +1 -1
  712. package/dist/components/tag/tag.component.js +1 -1
  713. package/dist/components/tag/tag.js +1 -1
  714. package/dist/components/textarea/textarea.component.js +1 -1
  715. package/dist/components/textarea/textarea.js +1 -1
  716. package/dist/components/time-average-map/time-average-map.component.d.ts +9 -0
  717. package/dist/components/time-average-map/time-average-map.component.js +1 -1
  718. package/dist/components/time-average-map/time-average-map.controller.js +1 -1
  719. package/dist/components/time-average-map/time-average-map.js +1 -1
  720. package/dist/components/time-series/time-series.component.d.ts +9 -0
  721. package/dist/components/time-series/time-series.component.js +1 -1
  722. package/dist/components/time-series/time-series.controller.js +1 -1
  723. package/dist/components/time-series/time-series.js +1 -1
  724. package/dist/components/toast/toast.component.js +1 -1
  725. package/dist/components/toast/toast.js +1 -1
  726. package/dist/components/toggle/toggle.component.js +1 -1
  727. package/dist/components/toggle/toggle.js +1 -1
  728. package/dist/components/tooltip/tooltip.component.js +1 -1
  729. package/dist/components/tooltip/tooltip.js +1 -1
  730. package/dist/components/variable-combobox/variable-combobox.component.js +1 -1
  731. package/dist/components/variable-combobox/variable-combobox.js +1 -1
  732. package/dist/components/variable-keyword-search/variable-keyword-search.component.js +1 -1
  733. package/dist/components/variable-keyword-search/variable-keyword-search.js +1 -1
  734. package/dist/custom-elements.json +783 -711
  735. package/dist/react/accordion/index.js +1 -1
  736. package/dist/react/alert/index.js +1 -1
  737. package/dist/react/avatar/index.js +1 -1
  738. package/dist/react/badge/index.js +1 -1
  739. package/dist/react/breadcrumb/index.js +1 -1
  740. package/dist/react/breadcrumbs/index.js +1 -1
  741. package/dist/react/browse-variables/index.js +1 -1
  742. package/dist/react/button/index.js +1 -1
  743. package/dist/react/button-group/index.js +1 -1
  744. package/dist/react/caption/index.js +1 -1
  745. package/dist/react/card/index.js +1 -1
  746. package/dist/react/checkbox/index.js +1 -1
  747. package/dist/react/chip/index.js +1 -1
  748. package/dist/react/combobox/index.js +1 -1
  749. package/dist/react/data-access/index.js +1 -1
  750. package/dist/react/data-grid/index.js +1 -1
  751. package/dist/react/data-rods/index.js +1 -1
  752. package/dist/react/data-subsetter/index.js +1 -1
  753. package/dist/react/data-subsetter-history/index.js +1 -1
  754. package/dist/react/date-picker/index.js +1 -1
  755. package/dist/react/date-range-slider/index.js +1 -1
  756. package/dist/react/dialog/index.js +1 -1
  757. package/dist/react/divider/index.js +1 -1
  758. package/dist/react/dropdown/index.js +1 -1
  759. package/dist/react/earthdata-login/index.js +1 -1
  760. package/dist/react/file-upload/index.js +1 -1
  761. package/dist/react/harmony-history/index.js +1 -1
  762. package/dist/react/icon/index.js +1 -1
  763. package/dist/react/index.d.ts +2 -2
  764. package/dist/react/index.js +1 -1
  765. package/dist/react/input/index.js +1 -1
  766. package/dist/react/loader/index.js +1 -1
  767. package/dist/react/login/index.js +1 -1
  768. package/dist/react/map/index.js +1 -1
  769. package/dist/react/menu/index.js +1 -1
  770. package/dist/react/menu-item/index.js +1 -1
  771. package/dist/react/option/index.js +1 -1
  772. package/dist/react/pagination/index.js +1 -1
  773. package/dist/react/plot/index.js +1 -1
  774. package/dist/react/plot-toolbar/index.js +1 -1
  775. package/dist/react/popup/index.js +1 -1
  776. package/dist/react/progress-bar/index.js +1 -1
  777. package/dist/react/radio/index.js +1 -1
  778. package/dist/react/radio-group/index.js +1 -1
  779. package/dist/react/scroll-hint/index.js +1 -1
  780. package/dist/react/select/index.js +1 -1
  781. package/dist/react/site-header/index.js +1 -1
  782. package/dist/react/site-navigation/index.js +1 -1
  783. package/dist/react/skeleton/index.js +1 -1
  784. package/dist/react/slider/index.js +1 -1
  785. package/dist/react/spatial-picker/index.js +1 -1
  786. package/dist/react/status-indicator/index.js +1 -1
  787. package/dist/react/stepper/index.js +1 -1
  788. package/dist/react/stepper-step/index.js +1 -1
  789. package/dist/react/tab/index.js +1 -1
  790. package/dist/react/tab-panel/index.js +1 -1
  791. package/dist/react/tabs/index.js +1 -1
  792. package/dist/react/tag/index.js +1 -1
  793. package/dist/react/textarea/index.js +1 -1
  794. package/dist/react/time-average-map/index.js +1 -1
  795. package/dist/react/time-series/index.js +1 -1
  796. package/dist/react/toast/index.js +1 -1
  797. package/dist/react/toggle/index.js +1 -1
  798. package/dist/react/tooltip/index.js +1 -1
  799. package/dist/react/variable-combobox/index.js +1 -1
  800. package/dist/react/variable-keyword-search/index.js +1 -1
  801. package/dist/terra-ui-components.js +1 -1
  802. package/dist/{terra_ui_components-0.0.180-py3-none-any.whl → terra_ui_components-0.0.182-py3-none-any.whl} +0 -0
  803. package/dist/{terra_ui_components-0.0.180.tar.gz → terra_ui_components-0.0.182.tar.gz} +0 -0
  804. package/dist/types/vue/index.d.ts +127 -117
  805. package/dist/vscode.html-custom-data.json +137 -117
  806. package/dist/web-types.json +315 -275
  807. package/package.json +1 -1
  808. package/dist/chunks/chunk.2ENSAFQB.js +0 -1
  809. package/dist/chunks/chunk.2IEYXOYV.js +0 -1
  810. package/dist/chunks/chunk.2OO26QIR.js +0 -126
  811. package/dist/chunks/chunk.2P4DDFRQ.js +0 -1
  812. package/dist/chunks/chunk.36AZ2XCI.js +0 -1
  813. package/dist/chunks/chunk.3DFIUNAQ.js +0 -1
  814. package/dist/chunks/chunk.3MBQYZVW.js +0 -1
  815. package/dist/chunks/chunk.3MIQ6XNR.js +0 -1
  816. package/dist/chunks/chunk.423GIWLL.js +0 -1
  817. package/dist/chunks/chunk.4E4ZURVB.js +0 -1
  818. package/dist/chunks/chunk.4EMIESAS.js +0 -1
  819. package/dist/chunks/chunk.4SHUUZJ2.js +0 -1
  820. package/dist/chunks/chunk.4SOONPCJ.js +0 -1
  821. package/dist/chunks/chunk.53R5NBAZ.js +0 -1
  822. package/dist/chunks/chunk.5DPPXATR.js +0 -1
  823. package/dist/chunks/chunk.5MBY6WKW.js +0 -1
  824. package/dist/chunks/chunk.6GKKK7NJ.js +0 -1
  825. package/dist/chunks/chunk.76G4XANJ.js +0 -1
  826. package/dist/chunks/chunk.7RCZODIH.js +0 -1
  827. package/dist/chunks/chunk.ARVXHRR4.js +0 -1
  828. package/dist/chunks/chunk.BF6REXY3.js +0 -1
  829. package/dist/chunks/chunk.C7QR4SPF.js +0 -1
  830. package/dist/chunks/chunk.EDBJ4VFC.js +0 -1
  831. package/dist/chunks/chunk.EKDZB5S2.js +0 -1
  832. package/dist/chunks/chunk.FB2U5ODR.js +0 -1
  833. package/dist/chunks/chunk.GPI7PCGX.js +0 -1
  834. package/dist/chunks/chunk.HBIKGPFF.js +0 -1
  835. package/dist/chunks/chunk.HUZMK2VQ.js +0 -1
  836. package/dist/chunks/chunk.HZRKVYQY.js +0 -1
  837. package/dist/chunks/chunk.I5P6RFB4.js +0 -1
  838. package/dist/chunks/chunk.IWZF7C67.js +0 -1
  839. package/dist/chunks/chunk.JB4B7N5B.js +0 -1
  840. package/dist/chunks/chunk.JLC7KOHX.js +0 -1
  841. package/dist/chunks/chunk.JOGU5BJB.js +0 -1
  842. package/dist/chunks/chunk.JRVMPEDZ.js +0 -1
  843. package/dist/chunks/chunk.KAF7DE46.js +0 -1
  844. package/dist/chunks/chunk.KBH7XUJ2.js +0 -1
  845. package/dist/chunks/chunk.LHSPDFX4.js +0 -1
  846. package/dist/chunks/chunk.LVPW3I5Y.js +0 -1
  847. package/dist/chunks/chunk.M7AHS3AH.js +0 -1
  848. package/dist/chunks/chunk.MXOPVRH6.js +0 -1
  849. package/dist/chunks/chunk.NI5IMMU6.js +0 -1
  850. package/dist/chunks/chunk.NZRBH2FO.js +0 -1
  851. package/dist/chunks/chunk.O2HBLJZB.js +0 -1
  852. package/dist/chunks/chunk.OBKNMV5D.js +0 -1
  853. package/dist/chunks/chunk.QQO5GUXS.js +0 -1
  854. package/dist/chunks/chunk.QUPFWO2W.js +0 -1
  855. package/dist/chunks/chunk.QZB7YAW4.js +0 -1
  856. package/dist/chunks/chunk.RBE5AOEF.js +0 -2
  857. package/dist/chunks/chunk.RIHKWEWK.js +0 -1
  858. package/dist/chunks/chunk.RJSNPXT4.js +0 -1
  859. package/dist/chunks/chunk.SJW4CYVO.js +0 -1
  860. package/dist/chunks/chunk.TQUTGUIU.js +0 -1
  861. package/dist/chunks/chunk.TTVYXNEX.js +0 -1
  862. package/dist/chunks/chunk.TZPFDI45.js +0 -1
  863. package/dist/chunks/chunk.U2S27E26.js +0 -1
  864. package/dist/chunks/chunk.UIKMEY7L.js +0 -1
  865. package/dist/chunks/chunk.UOPZ7IQO.js +0 -1
  866. package/dist/chunks/chunk.V6ZDTBMM.js +0 -1
  867. package/dist/chunks/chunk.WT6GZVYY.js +0 -1
  868. package/dist/chunks/chunk.Y5KEEPVM.js +0 -1
  869. package/dist/chunks/chunk.YE2XHS7U.js +0 -1
  870. package/dist/chunks/chunk.YQG4O6JG.js +0 -1
  871. package/dist/chunks/chunk.ZEIMRQG5.js +0 -1
  872. package/dist/chunks/chunk.ZF3CXW3V.js +0 -1
@@ -1,4 +1,4 @@
1
- import{a as _}from"./chunk.IVAJTYHP.js";import{a as $}from"./chunk.7I5677S3.js";import{a as y}from"./chunk.5CBU7CVX.js";import{a as S}from"./chunk.NJTQ2K6F.js";import{a as M,b as w}from"./chunk.OILCN37O.js";import{e as l}from"./chunk.INFVQQSJ.js";import{property as u,state as f,query as k}from"lit/decorators.js";import{html as m}from"lit";import{createRef as C,ref as T}from"lit/directives/ref.js";import{isValid as E}from"date-fns";var o=class extends w{constructor(){super();this.range=!1;this.hideLabel=!1;this.label="Select Date";this.helpText="";this.startHelpText="";this.endHelpText="";this.showPresets=!1;this.presets=[];this.enableTime=!1;this.inline=!1;this.splitInputs=!1;this.placeholder="Select Date";this.startPlaceholder="Start Date";this.endPlaceholder="End Date";this.role="group";this.ariaLabel="Date picker";this.hideClearAll=!1;this.clearAllLabel="Clear Dates";this.useEndOfDay=!0;this.isOpen=!1;this.leftMonth=new Date;this.rightMonth=new Date;this.selectedStart=null;this.selectedEnd=null;this.hoverDate=null;this.isSelectingRange=!1;this.showLeftMonthDropdown=!1;this.showRightMonthDropdown=!1;this.startHour=0;this.startMinute=0;this.startSecond=0;this.endHour=23;this.endMinute=59;this.endSecond=59;this.selectedDates={startDate:new Date().toString(),endDate:new Date().toString()};this.dropdownRef=C();this.DAYS=["Su","Mo","Tu","We","Th","Fr","Sa"];this.MONTHS=["January","February","March","April","May","June","July","August","September","October","November","December"];this.initializePresets()}getDefaultEndHour(){return this.useEndOfDay?23:0}getDefaultEndMinute(){return this.useEndOfDay?59:0}getDefaultEndSecond(){return this.useEndOfDay?59:0}parseLocalDate(e){if(/^\d{4}-\d{2}-\d{2}$/.test(e)){let[s,i,n]=e.split("-").map(Number);return this.enableTime?new Date(Date.UTC(s,i-1,n,0,0,0)):new Date(s,i-1,n)}if(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}$/.test(e)){let[s,i]=e.split("T"),[n,r,h]=s.split("-").map(Number),[c,d,p]=i.split(":").map(Number);return new Date(Date.UTC(n,r-1,h,c,d,p))}return new Date(e)}isSameMonth(e,t){return this.enableTime?e.getUTCFullYear()===t.getUTCFullYear()&&e.getUTCMonth()===t.getUTCMonth():e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()}isDateInMonth(e,t){return this.enableTime?e.getUTCFullYear()===t.getUTCFullYear()&&e.getUTCMonth()===t.getUTCMonth():e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()}getBounds(){let e=this.minDate?this.parseLocalDate(this.minDate):void 0,t=this.maxDate?this.parseLocalDate(this.maxDate):void 0;return{min:e,max:t}}doesRangeOverlapBounds(e){let{startDate:t,endDate:a}=e,{min:s,max:i}=this.getBounds();if(!this.range)return!(!t||s&&t<s||i&&t>i);let n=t!=null?t:new Date(-864e13),r=a!=null?a:new Date(864e13);if(!s&&!i)return!0;let h=s!=null?s:new Date(-864e13),c=i!=null?i:new Date(864e13);return r>=h&&n<=c}isPresetWithinBounds(e){return this.doesRangeOverlapBounds(e)}get filteredPresets(){return(this.presets||[]).filter(e=>this.isPresetWithinBounds(e.getValue()))}open(){if(this.isOpen=!0,this.maxDate&&!this.selectedStart&&!this.selectedEnd){let e=this.parseLocalDate(this.maxDate);if(!isNaN(e.getTime()))if(this.range){this.rightMonth=new Date(e);let t=new Date(e);t.setMonth(t.getMonth()-1),this.leftMonth=t}else this.leftMonth=new Date(e)}!this.inline&&this.dropdownRef.value&&this.dropdownRef.value.show(),this.requestUpdate()}close(){this.isOpen=!1,!this.inline&&this.dropdownRef.value&&this.dropdownRef.value.hide(),this.requestUpdate()}clear(){this.selectedStart=null,this.selectedEnd=null,this.hoverDate=null,this.isSelectingRange=!1,this.startHour=0,this.startMinute=0,this.startSecond=0,this.endHour=this.getDefaultEndHour(),this.endMinute=this.getDefaultEndMinute(),this.endSecond=this.getDefaultEndSecond(),this.clearInputValidation(),this.requestUpdate(),this.emitChange()}setOpen(e){e?this.open():this.close()}willUpdate(e){if(super.willUpdate(e),e.has("useEndOfDay")&&(this.endHour=this.getDefaultEndHour(),this.endMinute=this.getDefaultEndMinute(),this.endSecond=this.getDefaultEndSecond()),e.has("inline")&&this.inline&&(this.isOpen=!0,this.dropdownRef.value&&this.dropdownRef.value.hide()),(e.has("minDate")||e.has("maxDate"))&&this.maxDate&&!this.selectedStart&&!this.selectedEnd){let t=this.parseLocalDate(this.maxDate);if(!isNaN(t.getTime()))if(this.range){this.rightMonth=new Date(t);let a=new Date(t);a.setMonth(a.getMonth()-1),this.leftMonth=a}else this.leftMonth=new Date(t)}if(e.has("startDate")||e.has("endDate")){if(this.startDate){let t=this.parseLocalDate(this.startDate);isNaN(t.getTime())||(this.selectedStart=t,this.enableTime&&this.initializeTimeFromDate(t,!0))}else this.selectedStart=null;if(this.range){if(this.endDate){let t=this.parseLocalDate(this.endDate);isNaN(t.getTime())||(this.selectedEnd=t,this.enableTime&&this.initializeTimeFromDate(t,!1))}else this.selectedEnd=null;this.selectedStart&&this.selectedEnd?this.isSameMonth(this.selectedStart,this.selectedEnd)?this.isDateInMonth(this.selectedStart,this.leftMonth)?(this.leftMonth=new Date(this.selectedStart),this.isDateInMonth(this.selectedStart,this.rightMonth)&&(this.rightMonth=new Date(this.selectedStart),this.rightMonth.setMonth(this.rightMonth.getMonth()+1))):this.isDateInMonth(this.selectedStart,this.rightMonth)?this.rightMonth=new Date(this.selectedStart):this.leftMonth=new Date(this.selectedStart):(this.leftMonth=new Date(this.selectedStart),this.rightMonth=new Date(this.selectedEnd)):this.selectedStart&&(this.leftMonth=new Date(this.selectedStart),this.rightMonth=new Date(this.leftMonth),this.rightMonth.setMonth(this.rightMonth.getMonth()+1))}else this.selectedStart&&(this.leftMonth=new Date(this.selectedStart)),this.selectedEnd=null}}initializePresets(){this.presets.length===0&&(this.presets=[{label:"Today",getValue:()=>{let e=new Date;return{startDate:e,endDate:this.range?e:null}}},{label:"Yesterday",getValue:()=>{let e=new Date;return e.setDate(e.getDate()-1),{startDate:e,endDate:this.range?e:null}}},{label:"Last 7 days",getValue:()=>{let e=new Date,t=new Date;return t.setDate(t.getDate()-6),{startDate:t,endDate:e}}},{label:"Last 30 days",getValue:()=>{let e=new Date,t=new Date;return t.setDate(t.getDate()-29),{startDate:t,endDate:e}}},{label:"Last 6 months",getValue:()=>{let e=new Date,t=new Date;return t.setMonth(t.getMonth()-6),{startDate:t,endDate:e}}},{label:"Last year",getValue:()=>{let e=new Date,t=new Date;return t.setFullYear(t.getFullYear()-1),{startDate:t,endDate:e}}},{label:"All time",getValue:()=>{let{min:e,max:t}=this.getBounds();return{startDate:e||null,endDate:t||null}}}])}firstUpdated(){let e=new URLSearchParams(window.location.search),t=e.get("time_start")||this.startDate,a=e.get("time_end")||this.endDate;t&&(this.selectedStart=this.parseLocalDate(t),this.leftMonth=new Date(this.selectedStart),this.enableTime&&this.initializeTimeFromDate(this.selectedStart,!0)),this.range&&a&&(this.selectedEnd=this.parseLocalDate(a),this.enableTime&&this.initializeTimeFromDate(this.selectedEnd,!1),this.selectedStart&&this.selectedEnd?this.isSameMonth(this.selectedStart,this.selectedEnd)?(this.rightMonth=new Date(this.selectedStart),this.rightMonth.setMonth(this.rightMonth.getMonth()+1)):this.rightMonth=new Date(this.selectedEnd):this.selectedEnd&&(this.rightMonth=new Date(this.selectedEnd))),this.range&&!a&&(this.rightMonth=new Date(this.leftMonth),this.rightMonth.setMonth(this.rightMonth.getMonth()+1)),this.inline&&(this.isOpen=!0)}disconnectedCallback(){super.disconnectedCallback()}handleDropdownShow(){this.isOpen=!0}handleDropdownHide(){this.isOpen=!1}formatDisplayDate(e,t=!0){if(!e)return"";let a=this.displayFormat||(this.enableTime?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD");if(this.enableTime){let r=e.getUTCFullYear(),h=String(e.getUTCMonth()+1).padStart(2,"0"),c=String(e.getUTCDate()).padStart(2,"0"),d=String(t?this.startHour:this.endHour).padStart(2,"0"),p=String(t?this.startMinute:this.endMinute).padStart(2,"0"),g=String(t?this.startSecond:this.endSecond).padStart(2,"0");return a.replace("YYYY",r.toString()).replace("MM",h).replace("DD",c).replace("HH",d).replace("mm",p).replace("ss",g)}let s=e.getFullYear(),i=String(e.getMonth()+1).padStart(2,"0"),n=String(e.getDate()).padStart(2,"0");return a.replace("YYYY",s.toString()).replace("MM",i).replace("DD",n)}getDisplayValue(){return this.range?this.selectedStart&&this.selectedEnd?`${this.formatDisplayDate(this.selectedStart,!0)} \u2013 ${this.formatDisplayDate(this.selectedEnd,!1)}`:this.selectedStart?this.formatDisplayDate(this.selectedStart,!0):"":this.selectedStart?this.formatDisplayDate(this.selectedStart,!0):""}getStartDateDisplayValue(){return this.selectedStart?this.formatDisplayDate(this.selectedStart,!0):""}getEndDateDisplayValue(){return this.selectedEnd?this.formatDisplayDate(this.selectedEnd,!1):""}parseAndFormatDate(e){let t=e.trim();if(!t)return null;let a=/^\d{4}-\d{2}-\d{2}$/,s=/^\d{4}-\d{2}-\d{2}[T\s]\d{1,2}:\d{2}(:\d{2})?$/,i;if(a.test(t))i=this.parseLocalDate(t);else if(this.enableTime&&s.test(t)){let[n,r]=t.split(/[T\s]+/),[h,c,d]=n.split("-").map(Number),p=r.split(":").map(Number),g=p[0]||0,D=p[1]||0,v=p[2]||0;i=new Date(Date.UTC(h,c-1,d,g,D,v))}else if(i=new Date(t),!E(i))return null;if(!E(i))return null;if(this.enableTime){if(a.test(t))return t;{let n=i.getUTCFullYear(),r=i.getUTCMonth()+1,h=i.getUTCDate(),c=i.getUTCHours(),d=i.getUTCMinutes(),p=i.getUTCSeconds();return`${n}-${String(r).padStart(2,"0")}-${String(h).padStart(2,"0")}T${String(c).padStart(2,"0")}:${String(d).padStart(2,"0")}:${String(p).padStart(2,"0")}`}}else{let n=i.getFullYear(),r=i.getMonth()+1,h=i.getDate();return`${n}-${String(r).padStart(2,"0")}-${String(h).padStart(2,"0")}`}}clearInputValidation(){this.renderRoot.querySelectorAll("terra-input").forEach(t=>{t.setCustomValidity("")})}formatDateForError(e){return this.enableTime?e:e.split("T")[0]}setInputValidationError(e,t){e.setCustomValidity(t),requestAnimationFrame(()=>{e.validationErrorMessage=t,e.requestUpdate()}),this.emit("terra-date-selection-invalid",{detail:{message:t}})}handleInputBlur(e){let t=e.target,a=t.value||"";if(!a.trim()){this.selectedStart=null,this.selectedEnd=null,t.setCustomValidity(""),this.emitChange();return}if(this.range){let i=a.replace(/(\d{2})-(\d{4})/,"$1 - $2").split(/\s*–\s*|\s+-\s+/);if(i.length!==2){this.setInputValidationError(t,"Date range must be in format: YYYY-MM-DD \u2013 YYYY-MM-DD");return}let n=this.parseAndFormatDate(i[0]),r=this.parseAndFormatDate(i[1]);if(!n){this.setInputValidationError(t,"Invalid start date format");return}if(!r){this.setInputValidationError(t,"Invalid end date format");return}let h,c;if(this.enableTime&&n.includes("T"))h=new Date(n),this.initializeTimeFromDate(h,!0);else if(this.enableTime){let[g,D,v]=n.split("-").map(Number);h=new Date(Date.UTC(g,D-1,v,this.startHour,this.startMinute,this.startSecond))}else h=this.parseLocalDate(n);if(this.enableTime&&r.includes("T"))c=new Date(r),this.initializeTimeFromDate(c,!1);else if(this.enableTime){let[g,D,v]=r.split("-").map(Number);c=new Date(Date.UTC(g,D-1,v,this.endHour,this.endMinute,this.endSecond))}else c=this.parseLocalDate(r);let d=h,p=c;if(h>c&&(d=c,p=h),this.minDate){let g=this.parseLocalDate(this.minDate);if(d<g){let D=`Start date must be on or after ${this.formatDateForError(this.minDate)}`;this.setInputValidationError(t,D);return}}if(this.maxDate){let g=this.parseLocalDate(this.maxDate);if(p>g){let D=`End date must be on or before ${this.formatDateForError(this.maxDate)}`;this.setInputValidationError(t,D);return}}this.selectedStart=d,this.selectedEnd=p,this.updateMonthViews(),t.value=`${n} - ${r}`,t.setCustomValidity(""),this.emitChange()}else{let s=this.parseAndFormatDate(a);if(!s){this.setInputValidationError(t,"Invalid date format");return}let i;if(this.enableTime&&s.includes("T"))i=new Date(s),this.initializeTimeFromDate(i,!0);else if(this.enableTime){let[n,r,h]=s.split("-").map(Number);i=new Date(Date.UTC(n,r-1,h,this.startHour,this.startMinute,this.startSecond))}else i=this.parseLocalDate(s);if(this.minDate){let n=this.parseLocalDate(this.minDate);if(i<n){let r=`Date must be on or after ${this.formatDateForError(this.minDate)}`;this.setInputValidationError(t,r);return}}if(this.maxDate){let n=this.parseLocalDate(this.maxDate);if(i>n){let r=`Date must be on or before ${this.formatDateForError(this.maxDate)}`;this.setInputValidationError(t,r);return}}this.selectedStart=i,this.selectedEnd=null,this.updateMonthViews(),t.value=s,t.setCustomValidity(""),this.emitChange()}}handleStartInputBlur(e){let t=e.target,a=t.value||"";if(!a.trim()){this.selectedStart=null,t.setCustomValidity(""),this.emitChange();return}let s=this.parseAndFormatDate(a);if(!s){this.setInputValidationError(t,"Invalid date format");return}let i;if(this.enableTime&&s.includes("T"))i=new Date(s),this.initializeTimeFromDate(i,!0);else if(this.enableTime){let[n,r,h]=s.split("-").map(Number);i=new Date(Date.UTC(n,r-1,h,this.startHour,this.startMinute,this.startSecond))}else i=this.parseLocalDate(s);if(this.minDate){let n=this.parseLocalDate(this.minDate);if(i<n){let r=`Date must be on or after ${this.formatDateForError(this.minDate)}`;this.setInputValidationError(t,r);return}}if(this.maxDate){let n=this.parseLocalDate(this.maxDate);if(i>n){let r=`Date must be on or before ${this.formatDateForError(this.maxDate)}`;this.setInputValidationError(t,r);return}}if(this.selectedEnd&&i>this.selectedEnd){this.setInputValidationError(t,"Start date must be before end date");return}this.selectedStart=i,this.leftMonth=new Date(i),t.value=s,t.setCustomValidity(""),this.emitChange()}handleEndInputBlur(e){let t=e.target,a=t.value||"";if(!a.trim()){this.selectedEnd=null,t.setCustomValidity(""),this.emitChange();return}let s=this.parseAndFormatDate(a);if(!s){this.setInputValidationError(t,"Invalid date format");return}let i;if(this.enableTime&&s.includes("T"))i=new Date(s),this.initializeTimeFromDate(i,!1);else if(this.enableTime){let[n,r,h]=s.split("-").map(Number);i=new Date(Date.UTC(n,r-1,h,this.endHour,this.endMinute,this.endSecond))}else i=this.parseLocalDate(s);if(this.minDate){let n=this.parseLocalDate(this.minDate);if(i<n){let r=`Date must be on or after ${this.formatDateForError(this.minDate)}`;this.setInputValidationError(t,r);return}}if(this.maxDate){let n=this.parseLocalDate(this.maxDate);if(i>n){let r=`Date must be on or before ${this.formatDateForError(this.maxDate)}`;this.setInputValidationError(t,r);return}}if(this.selectedStart){if(this.enableTime&&this.isSameDay(i,this.selectedStart)){let n=this.startHour*3600+this.startMinute*60+this.startSecond;if(this.endHour*3600+this.endMinute*60+this.endSecond<n){this.setInputValidationError(t,"End time must be after start time when dates are the same");return}}else if(i<this.selectedStart){this.setInputValidationError(t,"End date must be after start date");return}}this.selectedEnd=i,this.selectedStart&&this.isSameMonth(this.selectedStart,this.selectedEnd)?(this.rightMonth=new Date(this.selectedStart),this.rightMonth.setMonth(this.rightMonth.getMonth()+1)):this.rightMonth=new Date(i),t.setCustomValidity(""),this.emitChange()}updateMonthViews(){this.selectedStart&&(this.leftMonth=new Date(this.selectedStart),this.range&&this.selectedEnd&&(this.isSameMonth(this.selectedStart,this.selectedEnd)?(this.rightMonth=new Date(this.selectedStart),this.rightMonth.setMonth(this.rightMonth.getMonth()+1)):this.rightMonth=new Date(this.selectedEnd)))}handleKeydown(e){if(e.key===" "){e.stopPropagation();return}e.key==="Enter"&&(e.preventDefault(),this.handleInputBlur(e))}previousMonth(e){if(e){let t=new Date(this.leftMonth);t.setMonth(t.getMonth()-1),this.leftMonth=t}else{let t=new Date(this.rightMonth);t.setMonth(t.getMonth()-1),this.rightMonth=t}}nextMonth(e){if(e){let t=new Date(this.leftMonth);t.setMonth(t.getMonth()+1),this.leftMonth=t}else{let t=new Date(this.rightMonth);t.setMonth(t.getMonth()+1),this.rightMonth=t}}toggleMonthDropdown(e,t){t.stopPropagation(),e?(this.showLeftMonthDropdown=!this.showLeftMonthDropdown,this.showRightMonthDropdown=!1):(this.showRightMonthDropdown=!this.showRightMonthDropdown,this.showLeftMonthDropdown=!1)}selectMonth(e,t){if(t){let a=new Date(this.leftMonth);a.setDate(1),a.setMonth(e),this.leftMonth=a,this.showLeftMonthDropdown=!1}else{let a=new Date(this.rightMonth);a.setDate(1),a.setMonth(e),this.rightMonth=a,this.showRightMonthDropdown=!1}}changeYear(e,t){if(t){let a=new Date(this.leftMonth);a.setFullYear(a.getFullYear()+e),this.leftMonth=a}else{let a=new Date(this.rightMonth);a.setFullYear(a.getFullYear()+e),this.rightMonth=a}}handleYearInput(e,t){let a=e.target,s=parseInt(a.value,10);if(!isNaN(s)&&s>=1900&&s<=2100)if(t){let i=new Date(this.leftMonth);i.setFullYear(s),this.leftMonth=i}else{let i=new Date(this.rightMonth);i.setFullYear(s),this.rightMonth=i}}getDaysInMonth(e){let t=e.getFullYear(),a=e.getMonth(),s=(d,p,g)=>this.enableTime?new Date(Date.UTC(d,p,g,0,0,0)):new Date(d,p,g),i=s(t,a,1),n=new Date(t,a+1,0),r=[],h=this.enableTime?i.getUTCDay():i.getDay();for(let d=h-1;d>=0;d--){let p=s(t,a,-d);r.push(p)}for(let d=1;d<=n.getDate();d++)r.push(s(t,a,d));let c=7-r.length%7;if(c<7)for(let d=1;d<=c;d++)r.push(s(t,a+1,d));return r}isSameDay(e,t){return!e||!t?!1:this.enableTime?e.getUTCFullYear()===t.getUTCFullYear()&&e.getUTCMonth()===t.getUTCMonth()&&e.getUTCDate()===t.getUTCDate():e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()}isInRange(e){if(!this.selectedStart||!this.selectedEnd)return!1;let t=e.getTime();return t>=this.selectedStart.getTime()&&t<=this.selectedEnd.getTime()}isInHoverRange(e){if(!this.range||!this.selectedStart||!this.hoverDate||this.selectedEnd)return!1;let t=e.getTime(),a=Math.min(this.selectedStart.getTime(),this.hoverDate.getTime()),s=Math.max(this.selectedStart.getTime(),this.hoverDate.getTime());return t>=a&&t<=s}isDisabled(e){if(this.minDate){let t=this.parseLocalDate(this.minDate),a=new Date(Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()));if(new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()))<a)return!0}if(this.maxDate){let t=this.parseLocalDate(this.maxDate),a=new Date(Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()));if(new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()))>a)return!0}return!1}selectDate(e){if(this.isDisabled(e)){this.emit("terra-date-selection-invalid",{detail:{message:`You are not allowed to select dates outside ${this.minDate} to ${this.maxDate}.`}});return}if(this.clearInputValidation(),this.range)if(!this.selectedStart||this.selectedEnd)this.selectedStart=e,this.selectedEnd=null,this.isSelectingRange=!0;else{if(e<this.selectedStart?(this.selectedEnd=this.selectedStart,this.selectedStart=e):this.selectedEnd=e,this.isSelectingRange=!1,this.enableTime&&this.selectedStart&&this.selectedEnd&&this.isSameDay(this.selectedStart,this.selectedEnd)){let t=this.startHour*3600+this.startMinute*60+this.startSecond;this.endHour*3600+this.endMinute*60+this.endSecond<t&&this.emit("terra-date-selection-invalid",{detail:{message:"End time is before start time. Please adjust the time values."}})}this.emitChange(),this.inline||(this.isOpen=!1)}else this.selectedStart=e,this.selectedEnd=null,this.emitChange(),this.inline||(this.isOpen=!1)}handleDateHover(e){this.range&&this.selectedStart&&!this.selectedEnd&&(this.hoverDate=e)}selectPreset(e){let{startDate:t,endDate:a}=e.getValue();if(!this.isPresetWithinBounds({startDate:t,endDate:a})){this.emit("terra-date-selection-invalid",{detail:{message:`The preset "${e.label}" is not available within the allowed date range ${this.minDate} to ${this.maxDate}.`}});return}this.clearInputValidation();let{min:s,max:i}=this.getBounds();if(this.range){let n=t,r=a;if(n&&s&&n<s&&(n=new Date(s)),n&&i&&n>i&&(n=new Date(i)),r&&s&&r<s&&(r=new Date(s)),r&&i&&r>i&&(r=new Date(i)),n&&r&&r<n){let h=n;n=r,r=h}this.selectedStart=n,this.selectedEnd=r}else{let n=t;n&&s&&n<s&&(n=new Date(s)),n&&i&&n>i&&(n=new Date(i)),this.selectedStart=n,this.selectedEnd=null}this.selectedStart&&(this.leftMonth=new Date(this.selectedStart),this.range&&this.selectedEnd&&(this.rightMonth=new Date(this.selectedEnd))),this.emitChange(),!this.range&&!this.inline&&(this.isOpen=!1)}emitChange(){let e="",t="";if(this.selectedStart)if(this.enableTime){let a=new Date(this.selectedStart);a.setUTCHours(this.startHour,this.startMinute,this.startSecond,0),e=a.toISOString()}else{let a=this.selectedStart.getFullYear(),s=String(this.selectedStart.getMonth()+1).padStart(2,"0"),i=String(this.selectedStart.getDate()).padStart(2,"0");e=`${a}-${s}-${i}`}if(this.selectedEnd)if(this.enableTime){let a=new Date(this.selectedEnd);a.setUTCHours(this.endHour,this.endMinute,this.endSecond,0),t=a.toISOString()}else{let a=this.selectedEnd.getFullYear(),s=String(this.selectedEnd.getMonth()+1).padStart(2,"0"),i=String(this.selectedEnd.getDate()).padStart(2,"0");t=`${a}-${s}-${i}`}this.emit("terra-date-range-change",{detail:{startDate:e,endDate:t}})}initializeTimeFromDate(e,t){let a=e.getUTCHours(),s=e.getUTCMinutes(),i=e.getUTCSeconds();t?(this.startHour=a,this.startMinute=s,this.startSecond=i):(this.endHour=a,this.endMinute=s,this.endSecond=i)}changeTime(e,t,a){if(e==="hour")if(a){let s=this.startHour+t;s>23&&(s=0),s<0&&(s=23),this.startHour=s}else{let s=this.endHour+t;s>23&&(s=0),s<0&&(s=23),this.endHour=s}else if(e==="minute")if(a){let s=this.startMinute+t;s>=60&&(s=0),s<0&&(s=59),this.startMinute=s}else{let s=this.endMinute+t;s>=60&&(s=0),s<0&&(s=59),this.endMinute=s}else if(a){let s=this.startSecond+t;s>=60&&(s=0),s<0&&(s=59),this.startSecond=s}else{let s=this.endSecond+t;s>=60&&(s=0),s<0&&(s=59),this.endSecond=s}this.emitChange(),this.requestUpdate()}handleTimeInput(e,t,a){let s=e.target,i=parseInt(s.value,10);if(t==="hour"){if(isNaN(i)||i<0||i>23){s.value=a?this.startHour.toString().padStart(2,"0"):this.endHour.toString().padStart(2,"0");return}a?this.startHour=i:this.endHour=i}else if(t==="minute"){if(isNaN(i)||i<0||i>=60){s.value=a?this.startMinute.toString().padStart(2,"0"):this.endMinute.toString().padStart(2,"0");return}a?this.startMinute=i:this.endMinute=i}else{if(isNaN(i)||i<0||i>=60){s.value=a?this.startSecond.toString().padStart(2,"0"):this.endSecond.toString().padStart(2,"0");return}a?this.startSecond=i:this.endSecond=i}this.emitChange(),this.requestUpdate()}renderCalendar(e,t=!0){let a=this.getDaysInMonth(e),s=e.getMonth(),i=t?this.showLeftMonthDropdown:this.showRightMonthDropdown;return m`
1
+ import{a as _}from"./chunk.IVAJTYHP.js";import{a as $}from"./chunk.NLPXUCOV.js";import{a as y}from"./chunk.QRVD7RXJ.js";import{a as S}from"./chunk.A2XLEPQ6.js";import{a as M,b as w}from"./chunk.R4H27HPH.js";import{e as l}from"./chunk.INFVQQSJ.js";import{property as u,state as f,query as k}from"lit/decorators.js";import{html as m}from"lit";import{createRef as C,ref as T}from"lit/directives/ref.js";import{isValid as E}from"date-fns";var o=class extends w{constructor(){super();this.range=!1;this.hideLabel=!1;this.label="Select Date";this.helpText="";this.startHelpText="";this.endHelpText="";this.showPresets=!1;this.presets=[];this.enableTime=!1;this.inline=!1;this.splitInputs=!1;this.placeholder="Select Date";this.startPlaceholder="Start Date";this.endPlaceholder="End Date";this.role="group";this.ariaLabel="Date picker";this.hideClearAll=!1;this.clearAllLabel="Clear Dates";this.useEndOfDay=!0;this.isOpen=!1;this.leftMonth=new Date;this.rightMonth=new Date;this.selectedStart=null;this.selectedEnd=null;this.hoverDate=null;this.isSelectingRange=!1;this.showLeftMonthDropdown=!1;this.showRightMonthDropdown=!1;this.startHour=0;this.startMinute=0;this.startSecond=0;this.endHour=23;this.endMinute=59;this.endSecond=59;this.selectedDates={startDate:new Date().toString(),endDate:new Date().toString()};this.dropdownRef=C();this.DAYS=["Su","Mo","Tu","We","Th","Fr","Sa"];this.MONTHS=["January","February","March","April","May","June","July","August","September","October","November","December"];this.initializePresets()}getDefaultEndHour(){return this.useEndOfDay?23:0}getDefaultEndMinute(){return this.useEndOfDay?59:0}getDefaultEndSecond(){return this.useEndOfDay?59:0}parseLocalDate(e){if(/^\d{4}-\d{2}-\d{2}$/.test(e)){let[s,i,n]=e.split("-").map(Number);return this.enableTime?new Date(Date.UTC(s,i-1,n,0,0,0)):new Date(s,i-1,n)}if(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}$/.test(e)){let[s,i]=e.split("T"),[n,r,h]=s.split("-").map(Number),[c,d,p]=i.split(":").map(Number);return new Date(Date.UTC(n,r-1,h,c,d,p))}return new Date(e)}isSameMonth(e,t){return this.enableTime?e.getUTCFullYear()===t.getUTCFullYear()&&e.getUTCMonth()===t.getUTCMonth():e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()}isDateInMonth(e,t){return this.enableTime?e.getUTCFullYear()===t.getUTCFullYear()&&e.getUTCMonth()===t.getUTCMonth():e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()}getBounds(){let e=this.minDate?this.parseLocalDate(this.minDate):void 0,t=this.maxDate?this.parseLocalDate(this.maxDate):void 0;return{min:e,max:t}}doesRangeOverlapBounds(e){let{startDate:t,endDate:a}=e,{min:s,max:i}=this.getBounds();if(!this.range)return!(!t||s&&t<s||i&&t>i);let n=t!=null?t:new Date(-864e13),r=a!=null?a:new Date(864e13);if(!s&&!i)return!0;let h=s!=null?s:new Date(-864e13),c=i!=null?i:new Date(864e13);return r>=h&&n<=c}isPresetWithinBounds(e){return this.doesRangeOverlapBounds(e)}get filteredPresets(){return(this.presets||[]).filter(e=>this.isPresetWithinBounds(e.getValue()))}open(){if(this.isOpen=!0,this.maxDate&&!this.selectedStart&&!this.selectedEnd){let e=this.parseLocalDate(this.maxDate);if(!isNaN(e.getTime()))if(this.range){this.rightMonth=new Date(e);let t=new Date(e);t.setMonth(t.getMonth()-1),this.leftMonth=t}else this.leftMonth=new Date(e)}!this.inline&&this.dropdownRef.value&&this.dropdownRef.value.show(),this.requestUpdate()}close(){this.isOpen=!1,!this.inline&&this.dropdownRef.value&&this.dropdownRef.value.hide(),this.requestUpdate()}clear(){this.selectedStart=null,this.selectedEnd=null,this.hoverDate=null,this.isSelectingRange=!1,this.startHour=0,this.startMinute=0,this.startSecond=0,this.endHour=this.getDefaultEndHour(),this.endMinute=this.getDefaultEndMinute(),this.endSecond=this.getDefaultEndSecond(),this.clearInputValidation(),this.requestUpdate(),this.emitChange()}setOpen(e){e?this.open():this.close()}willUpdate(e){if(super.willUpdate(e),e.has("useEndOfDay")&&(this.endHour=this.getDefaultEndHour(),this.endMinute=this.getDefaultEndMinute(),this.endSecond=this.getDefaultEndSecond()),e.has("inline")&&this.inline&&(this.isOpen=!0,this.dropdownRef.value&&this.dropdownRef.value.hide()),(e.has("minDate")||e.has("maxDate"))&&this.maxDate&&!this.selectedStart&&!this.selectedEnd){let t=this.parseLocalDate(this.maxDate);if(!isNaN(t.getTime()))if(this.range){this.rightMonth=new Date(t);let a=new Date(t);a.setMonth(a.getMonth()-1),this.leftMonth=a}else this.leftMonth=new Date(t)}if(e.has("startDate")||e.has("endDate")){if(this.startDate){let t=this.parseLocalDate(this.startDate);isNaN(t.getTime())||(this.selectedStart=t,this.enableTime&&this.initializeTimeFromDate(t,!0))}else this.selectedStart=null;if(this.range){if(this.endDate){let t=this.parseLocalDate(this.endDate);isNaN(t.getTime())||(this.selectedEnd=t,this.enableTime&&this.initializeTimeFromDate(t,!1))}else this.selectedEnd=null;this.selectedStart&&this.selectedEnd?this.isSameMonth(this.selectedStart,this.selectedEnd)?this.isDateInMonth(this.selectedStart,this.leftMonth)?(this.leftMonth=new Date(this.selectedStart),this.isDateInMonth(this.selectedStart,this.rightMonth)&&(this.rightMonth=new Date(this.selectedStart),this.rightMonth.setMonth(this.rightMonth.getMonth()+1))):this.isDateInMonth(this.selectedStart,this.rightMonth)?this.rightMonth=new Date(this.selectedStart):this.leftMonth=new Date(this.selectedStart):(this.leftMonth=new Date(this.selectedStart),this.rightMonth=new Date(this.selectedEnd)):this.selectedStart&&(this.leftMonth=new Date(this.selectedStart),this.rightMonth=new Date(this.leftMonth),this.rightMonth.setMonth(this.rightMonth.getMonth()+1))}else this.selectedStart&&(this.leftMonth=new Date(this.selectedStart)),this.selectedEnd=null}}initializePresets(){this.presets.length===0&&(this.presets=[{label:"Today",getValue:()=>{let e=new Date;return{startDate:e,endDate:this.range?e:null}}},{label:"Yesterday",getValue:()=>{let e=new Date;return e.setDate(e.getDate()-1),{startDate:e,endDate:this.range?e:null}}},{label:"Last 7 days",getValue:()=>{let e=new Date,t=new Date;return t.setDate(t.getDate()-6),{startDate:t,endDate:e}}},{label:"Last 30 days",getValue:()=>{let e=new Date,t=new Date;return t.setDate(t.getDate()-29),{startDate:t,endDate:e}}},{label:"Last 6 months",getValue:()=>{let e=new Date,t=new Date;return t.setMonth(t.getMonth()-6),{startDate:t,endDate:e}}},{label:"Last year",getValue:()=>{let e=new Date,t=new Date;return t.setFullYear(t.getFullYear()-1),{startDate:t,endDate:e}}},{label:"All time",getValue:()=>{let{min:e,max:t}=this.getBounds();return{startDate:e||null,endDate:t||null}}}])}firstUpdated(){let e=new URLSearchParams(window.location.search),t=e.get("time_start")||this.startDate,a=e.get("time_end")||this.endDate;t&&(this.selectedStart=this.parseLocalDate(t),this.leftMonth=new Date(this.selectedStart),this.enableTime&&this.initializeTimeFromDate(this.selectedStart,!0)),this.range&&a&&(this.selectedEnd=this.parseLocalDate(a),this.enableTime&&this.initializeTimeFromDate(this.selectedEnd,!1),this.selectedStart&&this.selectedEnd?this.isSameMonth(this.selectedStart,this.selectedEnd)?(this.rightMonth=new Date(this.selectedStart),this.rightMonth.setMonth(this.rightMonth.getMonth()+1)):this.rightMonth=new Date(this.selectedEnd):this.selectedEnd&&(this.rightMonth=new Date(this.selectedEnd))),this.range&&!a&&(this.rightMonth=new Date(this.leftMonth),this.rightMonth.setMonth(this.rightMonth.getMonth()+1)),this.inline&&(this.isOpen=!0)}disconnectedCallback(){super.disconnectedCallback()}handleDropdownShow(){this.isOpen=!0}handleDropdownHide(){this.isOpen=!1}formatDisplayDate(e,t=!0){if(!e)return"";let a=this.displayFormat||(this.enableTime?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD");if(this.enableTime){let r=e.getUTCFullYear(),h=String(e.getUTCMonth()+1).padStart(2,"0"),c=String(e.getUTCDate()).padStart(2,"0"),d=String(t?this.startHour:this.endHour).padStart(2,"0"),p=String(t?this.startMinute:this.endMinute).padStart(2,"0"),g=String(t?this.startSecond:this.endSecond).padStart(2,"0");return a.replace("YYYY",r.toString()).replace("MM",h).replace("DD",c).replace("HH",d).replace("mm",p).replace("ss",g)}let s=e.getFullYear(),i=String(e.getMonth()+1).padStart(2,"0"),n=String(e.getDate()).padStart(2,"0");return a.replace("YYYY",s.toString()).replace("MM",i).replace("DD",n)}getDisplayValue(){return this.range?this.selectedStart&&this.selectedEnd?`${this.formatDisplayDate(this.selectedStart,!0)} \u2013 ${this.formatDisplayDate(this.selectedEnd,!1)}`:this.selectedStart?this.formatDisplayDate(this.selectedStart,!0):"":this.selectedStart?this.formatDisplayDate(this.selectedStart,!0):""}getStartDateDisplayValue(){return this.selectedStart?this.formatDisplayDate(this.selectedStart,!0):""}getEndDateDisplayValue(){return this.selectedEnd?this.formatDisplayDate(this.selectedEnd,!1):""}parseAndFormatDate(e){let t=e.trim();if(!t)return null;let a=/^\d{4}-\d{2}-\d{2}$/,s=/^\d{4}-\d{2}-\d{2}[T\s]\d{1,2}:\d{2}(:\d{2})?$/,i;if(a.test(t))i=this.parseLocalDate(t);else if(this.enableTime&&s.test(t)){let[n,r]=t.split(/[T\s]+/),[h,c,d]=n.split("-").map(Number),p=r.split(":").map(Number),g=p[0]||0,D=p[1]||0,v=p[2]||0;i=new Date(Date.UTC(h,c-1,d,g,D,v))}else if(i=new Date(t),!E(i))return null;if(!E(i))return null;if(this.enableTime){if(a.test(t))return t;{let n=i.getUTCFullYear(),r=i.getUTCMonth()+1,h=i.getUTCDate(),c=i.getUTCHours(),d=i.getUTCMinutes(),p=i.getUTCSeconds();return`${n}-${String(r).padStart(2,"0")}-${String(h).padStart(2,"0")}T${String(c).padStart(2,"0")}:${String(d).padStart(2,"0")}:${String(p).padStart(2,"0")}`}}else{let n=i.getFullYear(),r=i.getMonth()+1,h=i.getDate();return`${n}-${String(r).padStart(2,"0")}-${String(h).padStart(2,"0")}`}}clearInputValidation(){this.renderRoot.querySelectorAll("terra-input").forEach(t=>{t.setCustomValidity("")})}formatDateForError(e){return this.enableTime?e:e.split("T")[0]}setInputValidationError(e,t){e.setCustomValidity(t),requestAnimationFrame(()=>{e.validationErrorMessage=t,e.requestUpdate()}),this.emit("terra-date-selection-invalid",{detail:{message:t}})}handleInputBlur(e){let t=e.target,a=t.value||"";if(!a.trim()){this.selectedStart=null,this.selectedEnd=null,t.setCustomValidity(""),this.emitChange();return}if(this.range){let i=a.replace(/(\d{2})-(\d{4})/,"$1 - $2").split(/\s*–\s*|\s+-\s+/);if(i.length!==2){this.setInputValidationError(t,"Date range must be in format: YYYY-MM-DD \u2013 YYYY-MM-DD");return}let n=this.parseAndFormatDate(i[0]),r=this.parseAndFormatDate(i[1]);if(!n){this.setInputValidationError(t,"Invalid start date format");return}if(!r){this.setInputValidationError(t,"Invalid end date format");return}let h,c;if(this.enableTime&&n.includes("T"))h=new Date(n),this.initializeTimeFromDate(h,!0);else if(this.enableTime){let[g,D,v]=n.split("-").map(Number);h=new Date(Date.UTC(g,D-1,v,this.startHour,this.startMinute,this.startSecond))}else h=this.parseLocalDate(n);if(this.enableTime&&r.includes("T"))c=new Date(r),this.initializeTimeFromDate(c,!1);else if(this.enableTime){let[g,D,v]=r.split("-").map(Number);c=new Date(Date.UTC(g,D-1,v,this.endHour,this.endMinute,this.endSecond))}else c=this.parseLocalDate(r);let d=h,p=c;if(h>c&&(d=c,p=h),this.minDate){let g=this.parseLocalDate(this.minDate);if(d<g){let D=`Start date must be on or after ${this.formatDateForError(this.minDate)}`;this.setInputValidationError(t,D);return}}if(this.maxDate){let g=this.parseLocalDate(this.maxDate);if(p>g){let D=`End date must be on or before ${this.formatDateForError(this.maxDate)}`;this.setInputValidationError(t,D);return}}this.selectedStart=d,this.selectedEnd=p,this.updateMonthViews(),t.value=`${n} - ${r}`,t.setCustomValidity(""),this.emitChange()}else{let s=this.parseAndFormatDate(a);if(!s){this.setInputValidationError(t,"Invalid date format");return}let i;if(this.enableTime&&s.includes("T"))i=new Date(s),this.initializeTimeFromDate(i,!0);else if(this.enableTime){let[n,r,h]=s.split("-").map(Number);i=new Date(Date.UTC(n,r-1,h,this.startHour,this.startMinute,this.startSecond))}else i=this.parseLocalDate(s);if(this.minDate){let n=this.parseLocalDate(this.minDate);if(i<n){let r=`Date must be on or after ${this.formatDateForError(this.minDate)}`;this.setInputValidationError(t,r);return}}if(this.maxDate){let n=this.parseLocalDate(this.maxDate);if(i>n){let r=`Date must be on or before ${this.formatDateForError(this.maxDate)}`;this.setInputValidationError(t,r);return}}this.selectedStart=i,this.selectedEnd=null,this.updateMonthViews(),t.value=s,t.setCustomValidity(""),this.emitChange()}}handleStartInputBlur(e){let t=e.target,a=t.value||"";if(!a.trim()){this.selectedStart=null,t.setCustomValidity(""),this.emitChange();return}let s=this.parseAndFormatDate(a);if(!s){this.setInputValidationError(t,"Invalid date format");return}let i;if(this.enableTime&&s.includes("T"))i=new Date(s),this.initializeTimeFromDate(i,!0);else if(this.enableTime){let[n,r,h]=s.split("-").map(Number);i=new Date(Date.UTC(n,r-1,h,this.startHour,this.startMinute,this.startSecond))}else i=this.parseLocalDate(s);if(this.minDate){let n=this.parseLocalDate(this.minDate);if(i<n){let r=`Date must be on or after ${this.formatDateForError(this.minDate)}`;this.setInputValidationError(t,r);return}}if(this.maxDate){let n=this.parseLocalDate(this.maxDate);if(i>n){let r=`Date must be on or before ${this.formatDateForError(this.maxDate)}`;this.setInputValidationError(t,r);return}}if(this.selectedEnd&&i>this.selectedEnd){this.setInputValidationError(t,"Start date must be before end date");return}this.selectedStart=i,this.leftMonth=new Date(i),t.value=s,t.setCustomValidity(""),this.emitChange()}handleEndInputBlur(e){let t=e.target,a=t.value||"";if(!a.trim()){this.selectedEnd=null,t.setCustomValidity(""),this.emitChange();return}let s=this.parseAndFormatDate(a);if(!s){this.setInputValidationError(t,"Invalid date format");return}let i;if(this.enableTime&&s.includes("T"))i=new Date(s),this.initializeTimeFromDate(i,!1);else if(this.enableTime){let[n,r,h]=s.split("-").map(Number);i=new Date(Date.UTC(n,r-1,h,this.endHour,this.endMinute,this.endSecond))}else i=this.parseLocalDate(s);if(this.minDate){let n=this.parseLocalDate(this.minDate);if(i<n){let r=`Date must be on or after ${this.formatDateForError(this.minDate)}`;this.setInputValidationError(t,r);return}}if(this.maxDate){let n=this.parseLocalDate(this.maxDate);if(i>n){let r=`Date must be on or before ${this.formatDateForError(this.maxDate)}`;this.setInputValidationError(t,r);return}}if(this.selectedStart){if(this.enableTime&&this.isSameDay(i,this.selectedStart)){let n=this.startHour*3600+this.startMinute*60+this.startSecond;if(this.endHour*3600+this.endMinute*60+this.endSecond<n){this.setInputValidationError(t,"End time must be after start time when dates are the same");return}}else if(i<this.selectedStart){this.setInputValidationError(t,"End date must be after start date");return}}this.selectedEnd=i,this.selectedStart&&this.isSameMonth(this.selectedStart,this.selectedEnd)?(this.rightMonth=new Date(this.selectedStart),this.rightMonth.setMonth(this.rightMonth.getMonth()+1)):this.rightMonth=new Date(i),t.setCustomValidity(""),this.emitChange()}updateMonthViews(){this.selectedStart&&(this.leftMonth=new Date(this.selectedStart),this.range&&this.selectedEnd&&(this.isSameMonth(this.selectedStart,this.selectedEnd)?(this.rightMonth=new Date(this.selectedStart),this.rightMonth.setMonth(this.rightMonth.getMonth()+1)):this.rightMonth=new Date(this.selectedEnd)))}handleKeydown(e){if(e.key===" "){e.stopPropagation();return}e.key==="Enter"&&(e.preventDefault(),this.handleInputBlur(e))}previousMonth(e){if(e){let t=new Date(this.leftMonth);t.setMonth(t.getMonth()-1),this.leftMonth=t}else{let t=new Date(this.rightMonth);t.setMonth(t.getMonth()-1),this.rightMonth=t}}nextMonth(e){if(e){let t=new Date(this.leftMonth);t.setMonth(t.getMonth()+1),this.leftMonth=t}else{let t=new Date(this.rightMonth);t.setMonth(t.getMonth()+1),this.rightMonth=t}}toggleMonthDropdown(e,t){t.stopPropagation(),e?(this.showLeftMonthDropdown=!this.showLeftMonthDropdown,this.showRightMonthDropdown=!1):(this.showRightMonthDropdown=!this.showRightMonthDropdown,this.showLeftMonthDropdown=!1)}selectMonth(e,t){if(t){let a=new Date(this.leftMonth);a.setDate(1),a.setMonth(e),this.leftMonth=a,this.showLeftMonthDropdown=!1}else{let a=new Date(this.rightMonth);a.setDate(1),a.setMonth(e),this.rightMonth=a,this.showRightMonthDropdown=!1}}changeYear(e,t){if(t){let a=new Date(this.leftMonth);a.setFullYear(a.getFullYear()+e),this.leftMonth=a}else{let a=new Date(this.rightMonth);a.setFullYear(a.getFullYear()+e),this.rightMonth=a}}handleYearInput(e,t){let a=e.target,s=parseInt(a.value,10);if(!isNaN(s)&&s>=1900&&s<=2100)if(t){let i=new Date(this.leftMonth);i.setFullYear(s),this.leftMonth=i}else{let i=new Date(this.rightMonth);i.setFullYear(s),this.rightMonth=i}}getDaysInMonth(e){let t=e.getFullYear(),a=e.getMonth(),s=(d,p,g)=>this.enableTime?new Date(Date.UTC(d,p,g,0,0,0)):new Date(d,p,g),i=s(t,a,1),n=new Date(t,a+1,0),r=[],h=this.enableTime?i.getUTCDay():i.getDay();for(let d=h-1;d>=0;d--){let p=s(t,a,-d);r.push(p)}for(let d=1;d<=n.getDate();d++)r.push(s(t,a,d));let c=7-r.length%7;if(c<7)for(let d=1;d<=c;d++)r.push(s(t,a+1,d));return r}isSameDay(e,t){return!e||!t?!1:this.enableTime?e.getUTCFullYear()===t.getUTCFullYear()&&e.getUTCMonth()===t.getUTCMonth()&&e.getUTCDate()===t.getUTCDate():e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()}isInRange(e){if(!this.selectedStart||!this.selectedEnd)return!1;let t=e.getTime();return t>=this.selectedStart.getTime()&&t<=this.selectedEnd.getTime()}isInHoverRange(e){if(!this.range||!this.selectedStart||!this.hoverDate||this.selectedEnd)return!1;let t=e.getTime(),a=Math.min(this.selectedStart.getTime(),this.hoverDate.getTime()),s=Math.max(this.selectedStart.getTime(),this.hoverDate.getTime());return t>=a&&t<=s}isDisabled(e){if(this.minDate){let t=this.parseLocalDate(this.minDate),a=new Date(Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()));if(new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()))<a)return!0}if(this.maxDate){let t=this.parseLocalDate(this.maxDate),a=new Date(Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()));if(new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()))>a)return!0}return!1}selectDate(e){if(this.isDisabled(e)){this.emit("terra-date-selection-invalid",{detail:{message:`You are not allowed to select dates outside ${this.minDate} to ${this.maxDate}.`}});return}if(this.clearInputValidation(),this.range)if(!this.selectedStart||this.selectedEnd)this.selectedStart=e,this.selectedEnd=null,this.isSelectingRange=!0;else{if(e<this.selectedStart?(this.selectedEnd=this.selectedStart,this.selectedStart=e):this.selectedEnd=e,this.isSelectingRange=!1,this.enableTime&&this.selectedStart&&this.selectedEnd&&this.isSameDay(this.selectedStart,this.selectedEnd)){let t=this.startHour*3600+this.startMinute*60+this.startSecond;this.endHour*3600+this.endMinute*60+this.endSecond<t&&this.emit("terra-date-selection-invalid",{detail:{message:"End time is before start time. Please adjust the time values."}})}this.emitChange(),this.inline||(this.isOpen=!1)}else this.selectedStart=e,this.selectedEnd=null,this.emitChange(),this.inline||(this.isOpen=!1)}handleDateHover(e){this.range&&this.selectedStart&&!this.selectedEnd&&(this.hoverDate=e)}selectPreset(e){let{startDate:t,endDate:a}=e.getValue();if(!this.isPresetWithinBounds({startDate:t,endDate:a})){this.emit("terra-date-selection-invalid",{detail:{message:`The preset "${e.label}" is not available within the allowed date range ${this.minDate} to ${this.maxDate}.`}});return}this.clearInputValidation();let{min:s,max:i}=this.getBounds();if(this.range){let n=t,r=a;if(n&&s&&n<s&&(n=new Date(s)),n&&i&&n>i&&(n=new Date(i)),r&&s&&r<s&&(r=new Date(s)),r&&i&&r>i&&(r=new Date(i)),n&&r&&r<n){let h=n;n=r,r=h}this.selectedStart=n,this.selectedEnd=r}else{let n=t;n&&s&&n<s&&(n=new Date(s)),n&&i&&n>i&&(n=new Date(i)),this.selectedStart=n,this.selectedEnd=null}this.selectedStart&&(this.leftMonth=new Date(this.selectedStart),this.range&&this.selectedEnd&&(this.rightMonth=new Date(this.selectedEnd))),this.emitChange(),!this.range&&!this.inline&&(this.isOpen=!1)}emitChange(){let e="",t="";if(this.selectedStart)if(this.enableTime){let a=new Date(this.selectedStart);a.setUTCHours(this.startHour,this.startMinute,this.startSecond,0),e=a.toISOString()}else{let a=this.selectedStart.getFullYear(),s=String(this.selectedStart.getMonth()+1).padStart(2,"0"),i=String(this.selectedStart.getDate()).padStart(2,"0");e=`${a}-${s}-${i}`}if(this.selectedEnd)if(this.enableTime){let a=new Date(this.selectedEnd);a.setUTCHours(this.endHour,this.endMinute,this.endSecond,0),t=a.toISOString()}else{let a=this.selectedEnd.getFullYear(),s=String(this.selectedEnd.getMonth()+1).padStart(2,"0"),i=String(this.selectedEnd.getDate()).padStart(2,"0");t=`${a}-${s}-${i}`}this.emit("terra-date-range-change",{detail:{startDate:e,endDate:t}})}initializeTimeFromDate(e,t){let a=e.getUTCHours(),s=e.getUTCMinutes(),i=e.getUTCSeconds();t?(this.startHour=a,this.startMinute=s,this.startSecond=i):(this.endHour=a,this.endMinute=s,this.endSecond=i)}changeTime(e,t,a){if(e==="hour")if(a){let s=this.startHour+t;s>23&&(s=0),s<0&&(s=23),this.startHour=s}else{let s=this.endHour+t;s>23&&(s=0),s<0&&(s=23),this.endHour=s}else if(e==="minute")if(a){let s=this.startMinute+t;s>=60&&(s=0),s<0&&(s=59),this.startMinute=s}else{let s=this.endMinute+t;s>=60&&(s=0),s<0&&(s=59),this.endMinute=s}else if(a){let s=this.startSecond+t;s>=60&&(s=0),s<0&&(s=59),this.startSecond=s}else{let s=this.endSecond+t;s>=60&&(s=0),s<0&&(s=59),this.endSecond=s}this.emitChange(),this.requestUpdate()}handleTimeInput(e,t,a){let s=e.target,i=parseInt(s.value,10);if(t==="hour"){if(isNaN(i)||i<0||i>23){s.value=a?this.startHour.toString().padStart(2,"0"):this.endHour.toString().padStart(2,"0");return}a?this.startHour=i:this.endHour=i}else if(t==="minute"){if(isNaN(i)||i<0||i>=60){s.value=a?this.startMinute.toString().padStart(2,"0"):this.endMinute.toString().padStart(2,"0");return}a?this.startMinute=i:this.endMinute=i}else{if(isNaN(i)||i<0||i>=60){s.value=a?this.startSecond.toString().padStart(2,"0"):this.endSecond.toString().padStart(2,"0");return}a?this.startSecond=i:this.endSecond=i}this.emitChange(),this.requestUpdate()}renderCalendar(e,t=!0){let a=this.getDaysInMonth(e),s=e.getMonth(),i=t?this.showLeftMonthDropdown:this.showRightMonthDropdown;return m`
2
2
  <div class="calendar">
3
3
  <div class="calendar__header">
4
4
  <button
@@ -1,4 +1,4 @@
1
- import{a as w}from"./chunk.QZWCO7EF.js";import{a as C}from"./chunk.URTV3MIW.js";import{a as _}from"./chunk.X5OPH5X7.js";import{b as g}from"./chunk.UTJA3S5Z.js";import{a as x}from"./chunk.S3WSRAXA.js";import{a as b}from"./chunk.6PEAAW4E.js";import{a as p}from"./chunk.J5Q4TWEG.js";import{a as v,b as y}from"./chunk.OILCN37O.js";import{e as i}from"./chunk.INFVQQSJ.js";import{property as s,query as M,state as $}from"lit/decorators.js";import{classMap as V}from"lit/directives/class-map.js";import{html as o}from"lit";import{ifDefined as l}from"lit/directives/if-defined.js";import{live as k}from"lit/directives/live.js";var e=class extends y{constructor(){super(...arguments);this.formControlController=new g(this,{value:t=>t.value,defaultValue:t=>t.defaultValue,setValue:(t,a)=>t.value=a});this.hasSlotController=new b(this,"help-text","error","clear-icon","show-password-icon","hide-password-icon");this.hasFocus=!1;this.validationErrorMessage="";this.__numberInput=Object.assign(document.createElement("input"),{type:"number"});this.__dateInput=Object.assign(document.createElement("input"),{type:"date"});this.title="";this.type="text";this.name="";this.value="";this.placeholder="";this.size="medium";this.filled=!1;this.pill=!1;this.disabled=!1;this.readonly=!1;this.required=!1;this.inputMode="text";this.label="";this.hideLabel=!1;this.helpText="";this.errorText="";this.clearable=!1;this.passwordToggle=!1;this.passwordVisible=!1;this.noSpinButtons=!1;this.autofocus=!1;this.spellcheck=!0;this.defaultValue="";this.resettable=!1;this.form=""}get validity(){return this.input.validity}get validationMessage(){return this.input.validationMessage}get valueAsDate(){var t;return this.__dateInput.type=this.type,this.__dateInput.value=this.value,((t=this.input)==null?void 0:t.valueAsDate)||this.__dateInput.valueAsDate}set valueAsDate(t){this.__dateInput.type=this.type,this.__dateInput.valueAsDate=t,this.value=this.__dateInput.value}get valueAsNumber(){var t;return this.__numberInput.value=this.value,((t=this.input)==null?void 0:t.valueAsNumber)||this.__numberInput.valueAsNumber}set valueAsNumber(t){this.__numberInput.valueAsNumber=t,this.value=this.__numberInput.value}firstUpdated(){this.formControlController.updateValidity()}handleInput(){this.value=this.input.value,this.formControlController.updateValidity(),this.updateValidationErrorMessage(),this.emit("terra-input")}handleChange(){this.value=this.input.value,this.formControlController.updateValidity(),this.emit("terra-change")}handleInvalid(t){this.formControlController.setValidity(!1),this.updateValidationErrorMessage(),this.formControlController.emitInvalidEvent(t)}handleFocus(){this.hasFocus=!0,this.emit("terra-focus")}handleBlur(){this.hasFocus=!1,this.formControlController.updateValidity(),this.updateValidationErrorMessage(),this.emit("terra-blur")}handleKeyDown(t){let a=t.metaKey||t.ctrlKey||t.shiftKey||t.altKey;t.key==="Enter"&&!a&&setTimeout(()=>{!t.defaultPrevented&&!t.isComposing&&this.formControlController.submit()})}updateValidationErrorMessage(){this.input?this.input.validity.valid?this.validationErrorMessage="":this.validationErrorMessage=this.input.validationMessage:this.validationErrorMessage=""}handleReset(t){t.preventDefault(),t.stopPropagation(),!(this.disabled||this.readonly)&&(this.value=this.defaultValue||"",this.input.value=this.value,this.formControlController.updateValidity(),this.emit("terra-change"),this.input.focus())}handleClearClick(t){t.preventDefault(),this.value!==""&&(this.value="",this.emit("terra-clear"),this.emit("terra-input"),this.emit("terra-change")),this.input.focus()}handlePasswordToggle(){this.passwordVisible=!this.passwordVisible}handleDisabledChange(){this.formControlController.setValidity(this.disabled)}handleStepChange(){this.input&&(this.input.step=String(this.step),this.formControlController.updateValidity())}async handleValueChange(){await this.updateComplete,this.formControlController.updateValidity()}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.input.reportValidity()}setCustomValidity(t){this.input.setCustomValidity(t),this.formControlController.updateValidity()}focus(t){this.input.focus(t)}blur(){this.input.blur()}select(){this.input.select()}setSelectionRange(t,a,r="none"){this.input.setSelectionRange(t,a,r)}setRangeText(t,a,r,n="preserve"){let d=a!=null?a:this.input.selectionStart,h=r!=null?r:this.input.selectionEnd;this.input.setRangeText(t,d,h,n),this.value!==this.input.value&&(this.value=this.input.value)}showPicker(){"showPicker"in HTMLInputElement.prototype&&this.input.showPicker()}stepUp(){this.input.stepUp(),this.value!==this.input.value&&(this.value=this.input.value)}stepDown(){this.input.stepDown(),this.value!==this.input.value&&(this.value=this.input.value)}render(){let t=this.querySelector('[slot="prefix"]')!==null,a=this.querySelector('[slot="suffix"]')!==null,r=this.hasSlotController.test("help-text"),n=this.helpText?!0:!!r,d=this.hasSlotController.test("error"),h=this.hasAttribute("data-user-invalid"),u=h&&(this.errorText||d||this.validationErrorMessage),E=h&&(this.errorText||this.validationErrorMessage)||"",m=this.clearable&&!this.disabled&&!this.readonly,f=m&&(typeof this.value=="number"||this.value.length>0),c=this.resettable&&!this.clearable&&this.value!==""&&this.value!==this.defaultValue&&this.type!=="search",S=m||c||this.passwordToggle&&this.type==="password"||a;return o`
1
+ import{a as w}from"./chunk.QZWCO7EF.js";import{a as C}from"./chunk.URTV3MIW.js";import{a as _}from"./chunk.X5OPH5X7.js";import{b as g}from"./chunk.UTJA3S5Z.js";import{a as x}from"./chunk.LZMYJKUH.js";import{a as b}from"./chunk.6PEAAW4E.js";import{a as p}from"./chunk.J5Q4TWEG.js";import{a as v,b as y}from"./chunk.R4H27HPH.js";import{e as i}from"./chunk.INFVQQSJ.js";import{property as s,query as M,state as $}from"lit/decorators.js";import{classMap as V}from"lit/directives/class-map.js";import{html as o}from"lit";import{ifDefined as l}from"lit/directives/if-defined.js";import{live as k}from"lit/directives/live.js";var e=class extends y{constructor(){super(...arguments);this.formControlController=new g(this,{value:t=>t.value,defaultValue:t=>t.defaultValue,setValue:(t,a)=>t.value=a});this.hasSlotController=new b(this,"help-text","error","clear-icon","show-password-icon","hide-password-icon");this.hasFocus=!1;this.validationErrorMessage="";this.__numberInput=Object.assign(document.createElement("input"),{type:"number"});this.__dateInput=Object.assign(document.createElement("input"),{type:"date"});this.title="";this.type="text";this.name="";this.value="";this.placeholder="";this.size="medium";this.filled=!1;this.pill=!1;this.disabled=!1;this.readonly=!1;this.required=!1;this.inputMode="text";this.label="";this.hideLabel=!1;this.helpText="";this.errorText="";this.clearable=!1;this.passwordToggle=!1;this.passwordVisible=!1;this.noSpinButtons=!1;this.autofocus=!1;this.spellcheck=!0;this.defaultValue="";this.resettable=!1;this.form=""}get validity(){return this.input.validity}get validationMessage(){return this.input.validationMessage}get valueAsDate(){var t;return this.__dateInput.type=this.type,this.__dateInput.value=this.value,((t=this.input)==null?void 0:t.valueAsDate)||this.__dateInput.valueAsDate}set valueAsDate(t){this.__dateInput.type=this.type,this.__dateInput.valueAsDate=t,this.value=this.__dateInput.value}get valueAsNumber(){var t;return this.__numberInput.value=this.value,((t=this.input)==null?void 0:t.valueAsNumber)||this.__numberInput.valueAsNumber}set valueAsNumber(t){this.__numberInput.valueAsNumber=t,this.value=this.__numberInput.value}firstUpdated(){this.formControlController.updateValidity()}handleInput(){this.value=this.input.value,this.formControlController.updateValidity(),this.updateValidationErrorMessage(),this.emit("terra-input")}handleChange(){this.value=this.input.value,this.formControlController.updateValidity(),this.emit("terra-change")}handleInvalid(t){this.formControlController.setValidity(!1),this.updateValidationErrorMessage(),this.formControlController.emitInvalidEvent(t)}handleFocus(){this.hasFocus=!0,this.emit("terra-focus")}handleBlur(){this.hasFocus=!1,this.formControlController.updateValidity(),this.updateValidationErrorMessage(),this.emit("terra-blur")}handleKeyDown(t){let a=t.metaKey||t.ctrlKey||t.shiftKey||t.altKey;t.key==="Enter"&&!a&&setTimeout(()=>{!t.defaultPrevented&&!t.isComposing&&this.formControlController.submit()})}updateValidationErrorMessage(){this.input?this.input.validity.valid?this.validationErrorMessage="":this.validationErrorMessage=this.input.validationMessage:this.validationErrorMessage=""}handleReset(t){t.preventDefault(),t.stopPropagation(),!(this.disabled||this.readonly)&&(this.value=this.defaultValue||"",this.input.value=this.value,this.formControlController.updateValidity(),this.emit("terra-change"),this.input.focus())}handleClearClick(t){t.preventDefault(),this.value!==""&&(this.value="",this.emit("terra-clear"),this.emit("terra-input"),this.emit("terra-change")),this.input.focus()}handlePasswordToggle(){this.passwordVisible=!this.passwordVisible}handleDisabledChange(){this.formControlController.setValidity(this.disabled)}handleStepChange(){this.input&&(this.input.step=String(this.step),this.formControlController.updateValidity())}async handleValueChange(){await this.updateComplete,this.formControlController.updateValidity()}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.input.reportValidity()}setCustomValidity(t){this.input.setCustomValidity(t),this.formControlController.updateValidity()}focus(t){this.input.focus(t)}blur(){this.input.blur()}select(){this.input.select()}setSelectionRange(t,a,r="none"){this.input.setSelectionRange(t,a,r)}setRangeText(t,a,r,n="preserve"){let d=a!=null?a:this.input.selectionStart,h=r!=null?r:this.input.selectionEnd;this.input.setRangeText(t,d,h,n),this.value!==this.input.value&&(this.value=this.input.value)}showPicker(){"showPicker"in HTMLInputElement.prototype&&this.input.showPicker()}stepUp(){this.input.stepUp(),this.value!==this.input.value&&(this.value=this.input.value)}stepDown(){this.input.stepDown(),this.value!==this.input.value&&(this.value=this.input.value)}render(){let t=this.querySelector('[slot="prefix"]')!==null,a=this.querySelector('[slot="suffix"]')!==null,r=this.hasSlotController.test("help-text"),n=this.helpText?!0:!!r,d=this.hasSlotController.test("error"),h=this.hasAttribute("data-user-invalid"),u=h&&(this.errorText||d||this.validationErrorMessage),E=h&&(this.errorText||this.validationErrorMessage)||"",m=this.clearable&&!this.disabled&&!this.readonly,f=m&&(typeof this.value=="number"||this.value.length>0),c=this.resettable&&!this.clearable&&this.value!==""&&this.value!==this.defaultValue&&this.type!=="search",S=m||c||this.passwordToggle&&this.type==="password"||a;return o`
2
2
  <div
3
3
  part="form-control"
4
4
  class=${V({"form-control":!0,"form-control--small":this.size==="small","form-control--medium":this.size==="medium","form-control--large":this.size==="large","form-control--has-help-text":n&&!u,"form-control--has-error-text":u})}
@@ -0,0 +1 @@
1
+ import{a as e}from"./chunk.RA5TZXXD.js";var m=e;e.define("terra-time-series");export{m as a};
@@ -1 +1 @@
1
- import{a as e}from"./chunk.LC4ZSYI5.js";import*as t from"react";import{createComponent as r}from"@lit/react";var o="terra-skeleton";e.define("terra-skeleton");var a=r({tagName:o,elementClass:e,react:t,events:{},displayName:"TerraSkeleton"}),c=a;export{c as a};
1
+ import{a as e}from"./chunk.SDA73BKN.js";import*as t from"react";import{createComponent as r}from"@lit/react";var o="terra-skeleton";e.define("terra-skeleton");var a=r({tagName:o,elementClass:e,react:t,events:{},displayName:"TerraSkeleton"}),c=a;export{c as a};
@@ -0,0 +1 @@
1
+ import{a as e}from"./chunk.BLIBQFBM.js";var x=e;e.define("terra-textarea");export{x as a};
@@ -1 +1 @@
1
- import{a as e}from"./chunk.PABCKGCM.js";import*as t from"react";import{createComponent as a}from"@lit/react";import"@lit/react";var r="terra-time-series";e.define("terra-time-series");var n=a({tagName:r,elementClass:e,react:t,events:{onTerraDateRangeChange:"terra-date-range-change",onTerraTimeSeriesDataChange:"terra-time-series-data-change",onTerraHarmonyJobStatusUpdate:"terra-harmony-job-status-update"},displayName:"TerraTimeSeries"}),T=n;export{T as a};
1
+ import{a as e}from"./chunk.RA5TZXXD.js";import*as t from"react";import{createComponent as a}from"@lit/react";import"@lit/react";var r="terra-time-series";e.define("terra-time-series");var n=a({tagName:r,elementClass:e,react:t,events:{onTerraDateRangeChange:"terra-date-range-change",onTerraTimeSeriesDataChange:"terra-time-series-data-change",onTerraHarmonyJobStatusUpdate:"terra-harmony-job-status-update"},displayName:"TerraTimeSeries"}),T=n;export{T as a};
@@ -1 +1 @@
1
- import{a as e}from"./chunk.YVP42OKY.js";import*as t from"react";import{createComponent as r}from"@lit/react";var p="terra-stepper-step";e.define("terra-stepper-step");var a=r({tagName:p,elementClass:e,react:t,events:{},displayName:"TerraStepperStep"}),f=a;export{f as a};
1
+ import{a as e}from"./chunk.5S4BLGYP.js";import*as t from"react";import{createComponent as r}from"@lit/react";var p="terra-stepper-step";e.define("terra-stepper-step");var a=r({tagName:p,elementClass:e,react:t,events:{},displayName:"TerraStepperStep"}),f=a;export{f as a};
@@ -1,4 +1,4 @@
1
- import{a as k}from"./chunk.CIWVH54V.js";import{c as v}from"./chunk.77X2UDZ7.js";import{a as E}from"./chunk.S3WSRAXA.js";import{a as p}from"./chunk.J5Q4TWEG.js";import{a as y,b as S}from"./chunk.OILCN37O.js";import{a as g,e as r}from"./chunk.INFVQQSJ.js";var _=(h,d)=>{let t=0;return function(...i){window.clearTimeout(t),t=window.setTimeout(()=>{h.call(this,...i)},d)}},A=(h,d,t)=>{let i=h[d];h[d]=function(...e){i.call(this,...e),t.call(this,i,...e)}},M="onscrollend"in window;if(!M){let h=new Set,d=new WeakMap,t=e=>{for(let s of e.changedTouches)h.add(s.identifier)},i=e=>{for(let s of e.changedTouches)h.delete(s.identifier)};document.addEventListener("touchstart",t,!0),document.addEventListener("touchend",i,!0),document.addEventListener("touchcancel",i,!0),A(EventTarget.prototype,"addEventListener",function(e,s){if(s!=="scrollend")return;let a=_(()=>{h.size?a():this.dispatchEvent(new Event("scrollend"))},100);e.call(this,"scroll",a,{passive:!0}),d.set(this,a)}),A(EventTarget.prototype,"removeEventListener",function(e,s){if(s!=="scrollend")return;let a=d.get(this);a&&e.call(this,"scroll",a,{passive:!0})})}import{classMap as m}from"lit/directives/class-map.js";import{eventOptions as O,property as u,query as f,state as T}from"lit/decorators.js";import{html as w}from"lit";var n=class extends S{constructor(){super(...arguments);this.tabs=[];this.focusableTabs=[];this.panels=[];this.hasScrollControls=!1;this.shouldHideScrollStartButton=!1;this.shouldHideScrollEndButton=!1;this.placement="top";this.activation="auto";this.noScrollControls=!1;this.fixedScrollControls=!1;this.size="large";this.scrollOffset=1}connectedCallback(){let t=Promise.all([customElements.whenDefined("terra-tab"),customElements.whenDefined("terra-tab-panel")]);super.connectedCallback(),this.resizeObserver=new ResizeObserver(()=>{this.repositionIndicator(),this.updateScrollControls()}),this.mutationObserver=new MutationObserver(i=>{let e=i.filter(({target:s})=>{if(s===this)return!0;if(s.closest("terra-tabs")!==this)return!1;let a=s.tagName.toLowerCase();return a==="terra-tab"||a==="terra-tab-panel"});if(e.length!==0){if(e.some(s=>!["aria-labelledby","aria-controls"].includes(s.attributeName))&&setTimeout(()=>this.setAriaLabels()),e.some(s=>s.attributeName==="disabled"))this.syncTabsAndPanels();else if(e.some(s=>s.attributeName==="active")){let a=e.filter(c=>c.attributeName==="active"&&c.target.tagName.toLowerCase()==="terra-tab").map(c=>c.target).find(c=>c.active);a&&this.setActiveTab(a)}}}),this.updateComplete.then(()=>{this.syncTabsAndPanels(),this.mutationObserver.observe(this,{attributes:!0,attributeFilter:["active","disabled","name","panel"],childList:!0,subtree:!0}),this.nav&&this.resizeObserver.observe(this.nav),t.then(()=>{let i=new IntersectionObserver((e,s)=>{var a;e[0].intersectionRatio>0&&(this.setAriaLabels(),this.setActiveTab((a=this.getActiveTab())!=null?a:this.tabs[0],{emitEvents:!1}),s.unobserve(e[0].target))});this.tabsElement&&i.observe(this.tabsElement)})})}disconnectedCallback(){var t,i;super.disconnectedCallback(),(t=this.mutationObserver)==null||t.disconnect(),this.nav&&((i=this.resizeObserver)==null||i.unobserve(this.nav))}getAllTabs(){return this.shadowRoot.querySelector('slot[name="nav"]').assignedElements()}getAllPanels(){return[...this.body.assignedElements()].filter(t=>t.tagName.toLowerCase()==="terra-tab-panel")}getActiveTab(){return this.tabs.find(t=>t.active)}handleClick(t){let e=t.target.closest("terra-tab");(e==null?void 0:e.closest("terra-tabs"))===this&&e!==null&&this.setActiveTab(e,{scrollBehavior:"smooth"})}handleKeyDown(t){let e=t.target.closest("terra-tab");if((e==null?void 0:e.closest("terra-tabs"))===this&&(["Enter"," "].includes(t.key)&&e!==null&&(this.setActiveTab(e,{scrollBehavior:"smooth"}),t.preventDefault()),["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End"].includes(t.key))){let a=this.tabs.find(l=>l.matches(":focus")),c=getComputedStyle(this).direction==="rtl",o=null;if((a==null?void 0:a.tagName.toLowerCase())==="terra-tab"){if(t.key==="Home")o=this.focusableTabs[0];else if(t.key==="End")o=this.focusableTabs[this.focusableTabs.length-1];else if(["top","bottom"].includes(this.placement)&&t.key===(c?"ArrowRight":"ArrowLeft")||["start","end"].includes(this.placement)&&t.key==="ArrowUp"){let l=this.tabs.findIndex(b=>b===a);o=this.findNextFocusableTab(l,"backward")}else if(["top","bottom"].includes(this.placement)&&t.key===(c?"ArrowLeft":"ArrowRight")||["start","end"].includes(this.placement)&&t.key==="ArrowDown"){let l=this.tabs.findIndex(b=>b===a);o=this.findNextFocusableTab(l,"forward")}if(!o)return;o.tabIndex=0,o.focus({preventScroll:!0}),this.activation==="auto"?this.setActiveTab(o,{scrollBehavior:"smooth"}):this.tabs.forEach(l=>{l.tabIndex=l===o?0:-1}),["top","bottom"].includes(this.placement)&&v(o,this.nav,"horizontal"),t.preventDefault()}}}handleScrollToStart(){let t=getComputedStyle(this).direction==="rtl";this.nav.scroll({left:t?this.nav.scrollLeft+this.nav.clientWidth:this.nav.scrollLeft-this.nav.clientWidth,behavior:"smooth"})}handleScrollToEnd(){let t=getComputedStyle(this).direction==="rtl";this.nav.scroll({left:t?this.nav.scrollLeft-this.nav.clientWidth:this.nav.scrollLeft+this.nav.clientWidth,behavior:"smooth"})}setActiveTab(t,i){if(i=g({emitEvents:!0,scrollBehavior:"auto"},i),t!==this.activeTab&&!t.disabled){let e=this.activeTab;this.activeTab=t,this.tabs.forEach(s=>{s.active=s===this.activeTab,s.tabIndex=s===this.activeTab?0:-1}),this.panels.forEach(s=>{var a;return s.active=s.name===((a=this.activeTab)==null?void 0:a.panel)}),this.syncIndicator(),["top","bottom"].includes(this.placement)&&v(this.activeTab,this.nav,"horizontal",i.scrollBehavior),i.emitEvents&&(e&&this.emit("terra-tab-hide",{detail:{name:e.panel}}),this.emit("terra-tab-show",{detail:{name:this.activeTab.panel}}))}}setAriaLabels(){this.tabs.forEach(t=>{let i=this.panels.find(e=>e.name===t.panel);i&&(t.setAttribute("aria-controls",i.getAttribute("id")),i.setAttribute("aria-labelledby",t.getAttribute("id")))})}repositionIndicator(){let t=this.getActiveTab();if(!t)return;let i=t.clientWidth,e=t.clientHeight,s=getComputedStyle(this).direction==="rtl",a=this.getAllTabs(),o=a.slice(0,a.indexOf(t)).reduce((l,b)=>({left:l.left+b.clientWidth,top:l.top+b.clientHeight}),{left:0,top:0});switch(this.placement){case"top":case"bottom":this.indicator.style.width=`${i}px`,this.indicator.style.translate=s?`${-1*o.left}px`:`${o.left}px`;break;case"start":case"end":this.indicator.style.height=`${e}px`,this.indicator.style.translate=`0 ${o.top}px`;break}}syncTabsAndPanels(){this.tabs=this.getAllTabs(),this.focusableTabs=this.tabs.filter(t=>!t.disabled),this.tabs.forEach(t=>{t.hasAttribute("size")||(t.size=this.size)}),this.panels=this.getAllPanels(),this.syncIndicator(),this.updateComplete.then(()=>this.updateScrollControls())}findNextFocusableTab(t,i){let e=null,s=i==="forward"?1:-1,a=t+s;for(;t<this.tabs.length;){if(e=this.tabs[a]||null,e===null){i==="forward"?e=this.focusableTabs[0]:e=this.focusableTabs[this.focusableTabs.length-1];break}if(!e.disabled)break;a+=s}return e}updateScrollButtons(){this.hasScrollControls&&!this.fixedScrollControls&&(this.shouldHideScrollStartButton=this.scrollFromStart()<=this.scrollOffset,this.shouldHideScrollEndButton=this.isScrolledToEnd())}isScrolledToEnd(){return this.scrollFromStart()+this.nav.clientWidth>=this.nav.scrollWidth-this.scrollOffset}scrollFromStart(){return getComputedStyle(this).direction==="rtl"?-this.nav.scrollLeft:this.nav.scrollLeft}updateScrollControls(){this.noScrollControls?this.hasScrollControls=!1:this.hasScrollControls=["top","bottom"].includes(this.placement)&&this.nav.scrollWidth>this.nav.clientWidth+1,this.updateScrollButtons()}syncIndicator(){this.getActiveTab()?(this.indicator.style.display="block",this.repositionIndicator()):this.indicator.style.display="none"}syncSize(){this.tabs.forEach(t=>{t.hasAttribute("size")||(t.size=this.size)})}show(t){let i=this.tabs.find(e=>e.panel===t);i&&this.setActiveTab(i,{scrollBehavior:"smooth"})}render(){let t=getComputedStyle(this).direction==="rtl";return w`
1
+ import{a as k}from"./chunk.CIWVH54V.js";import{c as v}from"./chunk.77X2UDZ7.js";import{a as E}from"./chunk.LZMYJKUH.js";import{a as p}from"./chunk.J5Q4TWEG.js";import{a as y,b as S}from"./chunk.R4H27HPH.js";import{a as g,e as r}from"./chunk.INFVQQSJ.js";var _=(h,d)=>{let t=0;return function(...i){window.clearTimeout(t),t=window.setTimeout(()=>{h.call(this,...i)},d)}},A=(h,d,t)=>{let i=h[d];h[d]=function(...e){i.call(this,...e),t.call(this,i,...e)}},M="onscrollend"in window;if(!M){let h=new Set,d=new WeakMap,t=e=>{for(let s of e.changedTouches)h.add(s.identifier)},i=e=>{for(let s of e.changedTouches)h.delete(s.identifier)};document.addEventListener("touchstart",t,!0),document.addEventListener("touchend",i,!0),document.addEventListener("touchcancel",i,!0),A(EventTarget.prototype,"addEventListener",function(e,s){if(s!=="scrollend")return;let a=_(()=>{h.size?a():this.dispatchEvent(new Event("scrollend"))},100);e.call(this,"scroll",a,{passive:!0}),d.set(this,a)}),A(EventTarget.prototype,"removeEventListener",function(e,s){if(s!=="scrollend")return;let a=d.get(this);a&&e.call(this,"scroll",a,{passive:!0})})}import{classMap as m}from"lit/directives/class-map.js";import{eventOptions as O,property as u,query as f,state as T}from"lit/decorators.js";import{html as w}from"lit";var n=class extends S{constructor(){super(...arguments);this.tabs=[];this.focusableTabs=[];this.panels=[];this.hasScrollControls=!1;this.shouldHideScrollStartButton=!1;this.shouldHideScrollEndButton=!1;this.placement="top";this.activation="auto";this.noScrollControls=!1;this.fixedScrollControls=!1;this.size="large";this.scrollOffset=1}connectedCallback(){let t=Promise.all([customElements.whenDefined("terra-tab"),customElements.whenDefined("terra-tab-panel")]);super.connectedCallback(),this.resizeObserver=new ResizeObserver(()=>{this.repositionIndicator(),this.updateScrollControls()}),this.mutationObserver=new MutationObserver(i=>{let e=i.filter(({target:s})=>{if(s===this)return!0;if(s.closest("terra-tabs")!==this)return!1;let a=s.tagName.toLowerCase();return a==="terra-tab"||a==="terra-tab-panel"});if(e.length!==0){if(e.some(s=>!["aria-labelledby","aria-controls"].includes(s.attributeName))&&setTimeout(()=>this.setAriaLabels()),e.some(s=>s.attributeName==="disabled"))this.syncTabsAndPanels();else if(e.some(s=>s.attributeName==="active")){let a=e.filter(c=>c.attributeName==="active"&&c.target.tagName.toLowerCase()==="terra-tab").map(c=>c.target).find(c=>c.active);a&&this.setActiveTab(a)}}}),this.updateComplete.then(()=>{this.syncTabsAndPanels(),this.mutationObserver.observe(this,{attributes:!0,attributeFilter:["active","disabled","name","panel"],childList:!0,subtree:!0}),this.nav&&this.resizeObserver.observe(this.nav),t.then(()=>{let i=new IntersectionObserver((e,s)=>{var a;e[0].intersectionRatio>0&&(this.setAriaLabels(),this.setActiveTab((a=this.getActiveTab())!=null?a:this.tabs[0],{emitEvents:!1}),s.unobserve(e[0].target))});this.tabsElement&&i.observe(this.tabsElement)})})}disconnectedCallback(){var t,i;super.disconnectedCallback(),(t=this.mutationObserver)==null||t.disconnect(),this.nav&&((i=this.resizeObserver)==null||i.unobserve(this.nav))}getAllTabs(){return this.shadowRoot.querySelector('slot[name="nav"]').assignedElements()}getAllPanels(){return[...this.body.assignedElements()].filter(t=>t.tagName.toLowerCase()==="terra-tab-panel")}getActiveTab(){return this.tabs.find(t=>t.active)}handleClick(t){let e=t.target.closest("terra-tab");(e==null?void 0:e.closest("terra-tabs"))===this&&e!==null&&this.setActiveTab(e,{scrollBehavior:"smooth"})}handleKeyDown(t){let e=t.target.closest("terra-tab");if((e==null?void 0:e.closest("terra-tabs"))===this&&(["Enter"," "].includes(t.key)&&e!==null&&(this.setActiveTab(e,{scrollBehavior:"smooth"}),t.preventDefault()),["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End"].includes(t.key))){let a=this.tabs.find(l=>l.matches(":focus")),c=getComputedStyle(this).direction==="rtl",o=null;if((a==null?void 0:a.tagName.toLowerCase())==="terra-tab"){if(t.key==="Home")o=this.focusableTabs[0];else if(t.key==="End")o=this.focusableTabs[this.focusableTabs.length-1];else if(["top","bottom"].includes(this.placement)&&t.key===(c?"ArrowRight":"ArrowLeft")||["start","end"].includes(this.placement)&&t.key==="ArrowUp"){let l=this.tabs.findIndex(b=>b===a);o=this.findNextFocusableTab(l,"backward")}else if(["top","bottom"].includes(this.placement)&&t.key===(c?"ArrowLeft":"ArrowRight")||["start","end"].includes(this.placement)&&t.key==="ArrowDown"){let l=this.tabs.findIndex(b=>b===a);o=this.findNextFocusableTab(l,"forward")}if(!o)return;o.tabIndex=0,o.focus({preventScroll:!0}),this.activation==="auto"?this.setActiveTab(o,{scrollBehavior:"smooth"}):this.tabs.forEach(l=>{l.tabIndex=l===o?0:-1}),["top","bottom"].includes(this.placement)&&v(o,this.nav,"horizontal"),t.preventDefault()}}}handleScrollToStart(){let t=getComputedStyle(this).direction==="rtl";this.nav.scroll({left:t?this.nav.scrollLeft+this.nav.clientWidth:this.nav.scrollLeft-this.nav.clientWidth,behavior:"smooth"})}handleScrollToEnd(){let t=getComputedStyle(this).direction==="rtl";this.nav.scroll({left:t?this.nav.scrollLeft-this.nav.clientWidth:this.nav.scrollLeft+this.nav.clientWidth,behavior:"smooth"})}setActiveTab(t,i){if(i=g({emitEvents:!0,scrollBehavior:"auto"},i),t!==this.activeTab&&!t.disabled){let e=this.activeTab;this.activeTab=t,this.tabs.forEach(s=>{s.active=s===this.activeTab,s.tabIndex=s===this.activeTab?0:-1}),this.panels.forEach(s=>{var a;return s.active=s.name===((a=this.activeTab)==null?void 0:a.panel)}),this.syncIndicator(),["top","bottom"].includes(this.placement)&&v(this.activeTab,this.nav,"horizontal",i.scrollBehavior),i.emitEvents&&(e&&this.emit("terra-tab-hide",{detail:{name:e.panel}}),this.emit("terra-tab-show",{detail:{name:this.activeTab.panel}}))}}setAriaLabels(){this.tabs.forEach(t=>{let i=this.panels.find(e=>e.name===t.panel);i&&(t.setAttribute("aria-controls",i.getAttribute("id")),i.setAttribute("aria-labelledby",t.getAttribute("id")))})}repositionIndicator(){let t=this.getActiveTab();if(!t)return;let i=t.clientWidth,e=t.clientHeight,s=getComputedStyle(this).direction==="rtl",a=this.getAllTabs(),o=a.slice(0,a.indexOf(t)).reduce((l,b)=>({left:l.left+b.clientWidth,top:l.top+b.clientHeight}),{left:0,top:0});switch(this.placement){case"top":case"bottom":this.indicator.style.width=`${i}px`,this.indicator.style.translate=s?`${-1*o.left}px`:`${o.left}px`;break;case"start":case"end":this.indicator.style.height=`${e}px`,this.indicator.style.translate=`0 ${o.top}px`;break}}syncTabsAndPanels(){this.tabs=this.getAllTabs(),this.focusableTabs=this.tabs.filter(t=>!t.disabled),this.tabs.forEach(t=>{t.hasAttribute("size")||(t.size=this.size)}),this.panels=this.getAllPanels(),this.syncIndicator(),this.updateComplete.then(()=>this.updateScrollControls())}findNextFocusableTab(t,i){let e=null,s=i==="forward"?1:-1,a=t+s;for(;t<this.tabs.length;){if(e=this.tabs[a]||null,e===null){i==="forward"?e=this.focusableTabs[0]:e=this.focusableTabs[this.focusableTabs.length-1];break}if(!e.disabled)break;a+=s}return e}updateScrollButtons(){this.hasScrollControls&&!this.fixedScrollControls&&(this.shouldHideScrollStartButton=this.scrollFromStart()<=this.scrollOffset,this.shouldHideScrollEndButton=this.isScrolledToEnd())}isScrolledToEnd(){return this.scrollFromStart()+this.nav.clientWidth>=this.nav.scrollWidth-this.scrollOffset}scrollFromStart(){return getComputedStyle(this).direction==="rtl"?-this.nav.scrollLeft:this.nav.scrollLeft}updateScrollControls(){this.noScrollControls?this.hasScrollControls=!1:this.hasScrollControls=["top","bottom"].includes(this.placement)&&this.nav.scrollWidth>this.nav.clientWidth+1,this.updateScrollButtons()}syncIndicator(){this.getActiveTab()?(this.indicator.style.display="block",this.repositionIndicator()):this.indicator.style.display="none"}syncSize(){this.tabs.forEach(t=>{t.hasAttribute("size")||(t.size=this.size)})}show(t){let i=this.tabs.find(e=>e.panel===t);i&&this.setActiveTab(i,{scrollBehavior:"smooth"})}render(){let t=getComputedStyle(this).direction==="rtl";return w`
2
2
  <div
3
3
  part="base"
4
4
  class=${m({tabs:!0,"tabs--top":this.placement==="top","tabs--bottom":this.placement==="bottom","tabs--start":this.placement==="start","tabs--end":this.placement==="end","tabs--rtl":t,"tabs--has-scroll-controls":this.hasScrollControls,"tabs--large":this.size==="large","tabs--small":this.size==="small"})}
@@ -1,4 +1,4 @@
1
- import{a as i}from"./chunk.RRKWNEL7.js";import{a as n,b as p}from"./chunk.OILCN37O.js";import{e as o}from"./chunk.INFVQQSJ.js";import{classMap as u}from"lit/directives/class-map.js";import{html as m}from"lit";import{property as f,query as c}from"lit/decorators.js";var t=class extends p{constructor(){super(...arguments);this.variant="default"}handleSlotChange(){let e=[...this.defaultSlot.assignedElements({flatten:!0})];e.forEach((d,a)=>{let s=h(d);s&&(s.toggleAttribute("data-terra-stepper__step",!0),s.toggleAttribute("data-terra-stepper__step--first",a===0),s.toggleAttribute("data-terra-stepper__step--last",a===e.length-1))})}render(){return m`
1
+ import{a as i}from"./chunk.RRKWNEL7.js";import{a as n,b as p}from"./chunk.R4H27HPH.js";import{e as o}from"./chunk.INFVQQSJ.js";import{classMap as u}from"lit/directives/class-map.js";import{html as m}from"lit";import{property as f,query as c}from"lit/decorators.js";var t=class extends p{constructor(){super(...arguments);this.variant="default"}handleSlotChange(){let e=[...this.defaultSlot.assignedElements({flatten:!0})];e.forEach((d,a)=>{let s=h(d);s&&(s.toggleAttribute("data-terra-stepper__step",!0),s.toggleAttribute("data-terra-stepper__step--first",a===0),s.toggleAttribute("data-terra-stepper__step--last",a===e.length-1))})}render(){return m`
2
2
  <div
3
3
  part="base"
4
4
  class=${u({stepper:!0,"stepper--default":this.variant==="default","stepper--condensed":this.variant==="condensed"})}
@@ -1,4 +1,4 @@
1
- import{a as u}from"./chunk.PJ2G5T64.js";import{a as h}from"./chunk.S3WSRAXA.js";import{a as m,b as p}from"./chunk.OILCN37O.js";import{e as i}from"./chunk.INFVQQSJ.js";import{property as e}from"lit/decorators.js";import{html as s,nothing as n}from"lit";import{classMap as a}from"lit/directives/class-map.js";var t=class extends p{constructor(){super(...arguments);this.variant="content";this.size="medium";this.iconLibrary="default";this.stack=!1;this.dark=!1;this.handleClick=r=>{this.variant==="topic"&&this.emit("terra-click",{detail:{originalEvent:r}})}}render(){let r=this.variant==="topic"&&this.href,o=this.variant==="content",l={tag:!0,"tag--content":o,"tag--topic":this.variant==="topic","tag--urgent":this.variant==="urgent","tag--small":this.size==="small","tag--medium":this.size==="medium","tag--large":this.size==="large"},c=s`
1
+ import{a as u}from"./chunk.PJ2G5T64.js";import{a as h}from"./chunk.LZMYJKUH.js";import{a as m,b as p}from"./chunk.R4H27HPH.js";import{e as i}from"./chunk.INFVQQSJ.js";import{property as e}from"lit/decorators.js";import{html as s,nothing as n}from"lit";import{classMap as a}from"lit/directives/class-map.js";var t=class extends p{constructor(){super(...arguments);this.variant="content";this.size="medium";this.iconLibrary="default";this.stack=!1;this.dark=!1;this.handleClick=r=>{this.variant==="topic"&&this.emit("terra-click",{detail:{originalEvent:r}})}}render(){let r=this.variant==="topic"&&this.href,o=this.variant==="content",l={tag:!0,"tag--content":o,"tag--topic":this.variant==="topic","tag--urgent":this.variant==="urgent","tag--small":this.size==="small","tag--medium":this.size==="medium","tag--large":this.size==="large"},c=s`
2
2
  ${o?s`
3
3
  <span
4
4
  part="icon"
@@ -0,0 +1 @@
1
+ import{a as r}from"./chunk.3GCT7G6D.js";var d=r;r.define("terra-radio");export{d as a};
@@ -1 +1 @@
1
- import{a as e}from"./chunk.YID2VH6X.js";import*as t from"react";import{createComponent as r}from"@lit/react";import"@lit/react";var a="terra-toast";e.define("terra-toast");var o=r({tagName:a,elementClass:e,react:t,events:{onTerraShow:"terra-show",onTerraAfterShow:"terra-after-show",onTerraHide:"terra-hide",onTerraAfterHide:"terra-after-hide"},displayName:"TerraToast"}),i=o;export{i as a};
1
+ import{a as e}from"./chunk.TF5PF2Y7.js";import*as t from"react";import{createComponent as r}from"@lit/react";import"@lit/react";var a="terra-toast";e.define("terra-toast");var o=r({tagName:a,elementClass:e,react:t,events:{onTerraShow:"terra-show",onTerraAfterShow:"terra-after-show",onTerraHide:"terra-hide",onTerraAfterHide:"terra-after-hide"},displayName:"TerraToast"}),i=o;export{i as a};
@@ -0,0 +1 @@
1
+ import{a as e}from"./chunk.O7SZO3F2.js";var T=e;e.define("terra-tabs");export{T as a};
@@ -0,0 +1 @@
1
+ import{a as e}from"./chunk.LKMGRBDO.js";var t=e;e.define("terra-variable-keyword-search");export{t as a};
@@ -1 +1 @@
1
- import{a as e}from"./chunk.FSSL6ZLQ.js";import*as t from"react";import{createComponent as r}from"@lit/react";import"@lit/react";var o="terra-tooltip";e.define("terra-tooltip");var a=r({tagName:o,elementClass:e,react:t,events:{onTerraShow:"terra-show",onTerraAfterShow:"terra-after-show",onTerraHide:"terra-hide",onTerraAfterHide:"terra-after-hide"},displayName:"TerraTooltip"}),i=a;export{i as a};
1
+ import{a as e}from"./chunk.GHGA4BC4.js";import*as t from"react";import{createComponent as r}from"@lit/react";import"@lit/react";var o="terra-tooltip";e.define("terra-tooltip");var a=r({tagName:o,elementClass:e,react:t,events:{onTerraShow:"terra-show",onTerraAfterShow:"terra-after-show",onTerraHide:"terra-hide",onTerraAfterHide:"terra-after-hide"},displayName:"TerraTooltip"}),i=a;export{i as a};
@@ -1,4 +1,4 @@
1
- import{a as J}from"./chunk.22TWFDJS.js";import{a as R,b as S,c as q,e as E,f as N,g as z}from"./chunk.A6SIGE3C.js";import{a as X}from"./chunk.KGZZ7BN3.js";import{a as j}from"./chunk.36AZ2XCI.js";import{a as K}from"./chunk.EDBJ4VFC.js";import{a as P}from"./chunk.J5Q4TWEG.js";import{a as A,b as G}from"./chunk.OILCN37O.js";import{a as O,b as U,e as r,f as t,g as n,h as c,i as D}from"./chunk.INFVQQSJ.js";import Z from"fuse.js";import{LitElement as V,html as h,nothing as y}from"lit";import{property as p,state as L}from"lit/decorators.js";import{cache as _}from"lit/directives/cache.js";import{map as C}from"lit/directives/map.js";import{ref as F}from"lit/directives/ref.js";var o,u,g,d,f,m,x,b,k,T,M,w,v,$,H,Y,s=class s extends G{constructor(){super(...arguments);n(this,H);n(this,o,null);n(this,u,void 0);n(this,g,[]);n(this,d,null);n(this,f,null);n(this,m,null);n(this,x,null);this.label="Search for Variables";this.hideHelp=!1;this.hideLabel=!1;this.useTags=!1;this.isExpanded=!1;this.query=s.initialQuery;this.searchResults=[];this.tags=[];this.tagContainerWidth=0;n(this,b,a=>{this.emit("terra-combobox-change",{detail:JSON.parse(a)})});n(this,k,()=>{var a;this.isExpanded=!this.isExpanded,(a=t(this,o))==null||a.focus()});n(this,T,a=>{var i;let e=a.target;this.query=e.value,e.value&&(this.isExpanded=!0),this.searchResults=(i=t(this,f))==null?void 0:i.search(e.value).map(({item:l})=>l)});n(this,M,a=>{let e=a.composedPath(),[i]=e.filter(l=>l.role==="option");i&&t(this,$).call(this,i)});n(this,w,a=>{var e;switch(a.key){case"ArrowDown":{if(E(t(this,o),t(this,d)),this.isExpanded||(this.isExpanded=!0),a.altKey)break;N(t(this,m),t(this,o),"next");break}case"ArrowUp":{E(t(this,o),t(this,d)),this.isExpanded||(this.isExpanded=!0),N(t(this,m),t(this,o),"previous");break}case"Enter":{t(this,$).call(this,(e=t(this,m))==null?void 0:e.currentNode);break}case"Escape":{E(t(this,o),t(this,d)),this.isExpanded?(this.isExpanded=!1,this.dispatchEvent(new Event("cancel"))):this.query=s.initialQuery;break}default:break}});n(this,v,a=>{a.composedPath().some(l=>l.localName===s.tagName)||(this.isExpanded=!1)});n(this,$,a=>{let{longName:e,eventDetail:i}=a.dataset;this.query=`${e}`,t(this,b).call(this,i),this.isExpanded=!1,E(t(this,o),t(this,d)),this.useTags&&(this.tags=[`${e}`],t(this,o).value=s.initialQuery,this.query=s.initialQuery)})}async valueChanged(a,e){var W,B;if(a===e)return;await t(this,u).taskComplete;let i=z(this.value),l=(W=t(this,u).value)==null?void 0:W.find(I=>i===I.entryId);l&&(this.query=l.longName,this.searchResults=(B=t(this,f))==null?void 0:B.search(this.query).map(({item:I})=>I),t(this,b).call(this,l.eventDetail),this.useTags&&(this.tags=[`${l.longName}`],t(this,o).value=s.initialQuery,this.query=s.initialQuery))}connectedCallback(){super.connectedCallback(),c(this,u,new J(this,this.bearerToken)),globalThis.addEventListener("click",t(this,v))}disconnectedCallback(){super.disconnectedCallback(),globalThis.removeEventListener("click",t(this,v))}clear(){this.query=s.initialQuery}close(){this.isExpanded=!1}toggle(){this.isExpanded=!this.isExpanded}render(){var a;return h`<search part="base" title="Search through the list.">
1
+ import{a as J}from"./chunk.22TWFDJS.js";import{a as R,b as S,c as q,e as E,f as N,g as z}from"./chunk.A6SIGE3C.js";import{a as X}from"./chunk.KGZZ7BN3.js";import{a as j}from"./chunk.5OC7O3C3.js";import{a as K}from"./chunk.2DIJRXPF.js";import{a as P}from"./chunk.J5Q4TWEG.js";import{a as A,b as G}from"./chunk.R4H27HPH.js";import{a as O,b as U,e as r,f as t,g as n,h as c,i as D}from"./chunk.INFVQQSJ.js";import Z from"fuse.js";import{LitElement as V,html as h,nothing as y}from"lit";import{property as p,state as L}from"lit/decorators.js";import{cache as _}from"lit/directives/cache.js";import{map as C}from"lit/directives/map.js";import{ref as F}from"lit/directives/ref.js";var o,u,g,d,f,m,x,b,k,T,M,w,v,$,H,Y,s=class s extends G{constructor(){super(...arguments);n(this,H);n(this,o,null);n(this,u,void 0);n(this,g,[]);n(this,d,null);n(this,f,null);n(this,m,null);n(this,x,null);this.label="Search for Variables";this.hideHelp=!1;this.hideLabel=!1;this.useTags=!1;this.isExpanded=!1;this.query=s.initialQuery;this.searchResults=[];this.tags=[];this.tagContainerWidth=0;n(this,b,a=>{this.emit("terra-combobox-change",{detail:JSON.parse(a)})});n(this,k,()=>{var a;this.isExpanded=!this.isExpanded,(a=t(this,o))==null||a.focus()});n(this,T,a=>{var i;let e=a.target;this.query=e.value,e.value&&(this.isExpanded=!0),this.searchResults=(i=t(this,f))==null?void 0:i.search(e.value).map(({item:l})=>l)});n(this,M,a=>{let e=a.composedPath(),[i]=e.filter(l=>l.role==="option");i&&t(this,$).call(this,i)});n(this,w,a=>{var e;switch(a.key){case"ArrowDown":{if(E(t(this,o),t(this,d)),this.isExpanded||(this.isExpanded=!0),a.altKey)break;N(t(this,m),t(this,o),"next");break}case"ArrowUp":{E(t(this,o),t(this,d)),this.isExpanded||(this.isExpanded=!0),N(t(this,m),t(this,o),"previous");break}case"Enter":{t(this,$).call(this,(e=t(this,m))==null?void 0:e.currentNode);break}case"Escape":{E(t(this,o),t(this,d)),this.isExpanded?(this.isExpanded=!1,this.dispatchEvent(new Event("cancel"))):this.query=s.initialQuery;break}default:break}});n(this,v,a=>{a.composedPath().some(l=>l.localName===s.tagName)||(this.isExpanded=!1)});n(this,$,a=>{let{longName:e,eventDetail:i}=a.dataset;this.query=`${e}`,t(this,b).call(this,i),this.isExpanded=!1,E(t(this,o),t(this,d)),this.useTags&&(this.tags=[`${e}`],t(this,o).value=s.initialQuery,this.query=s.initialQuery)})}async valueChanged(a,e){var W,B;if(a===e)return;await t(this,u).taskComplete;let i=z(this.value),l=(W=t(this,u).value)==null?void 0:W.find(I=>i===I.entryId);l&&(this.query=l.longName,this.searchResults=(B=t(this,f))==null?void 0:B.search(this.query).map(({item:I})=>I),t(this,b).call(this,l.eventDetail),this.useTags&&(this.tags=[`${l.longName}`],t(this,o).value=s.initialQuery,this.query=s.initialQuery))}connectedCallback(){super.connectedCallback(),c(this,u,new J(this,this.bearerToken)),globalThis.addEventListener("click",t(this,v))}disconnectedCallback(){super.disconnectedCallback(),globalThis.removeEventListener("click",t(this,v))}clear(){this.query=s.initialQuery}close(){this.isExpanded=!1}toggle(){this.isExpanded=!this.isExpanded}render(){var a;return h`<search part="base" title="Search through the list.">
2
2
  <label for="combobox" class=${this.hideLabel?"sr-only":"input-label"}
3
3
  >${this.label}</label
4
4
  >
@@ -1 +1 @@
1
- import{a as e}from"./chunk.FNBTJL76.js";import*as r from"react";import{createComponent as t}from"@lit/react";import"@lit/react";var n="terra-radio-group";e.define("terra-radio-group");var a=t({tagName:n,elementClass:e,react:r,events:{onTerraChange:"terra-change",onTerraInput:"terra-input",onTerraInvalid:"terra-invalid"},displayName:"TerraRadioGroup"}),E=a;export{E as a};
1
+ import{a as e}from"./chunk.TDXYYC75.js";import*as r from"react";import{createComponent as t}from"@lit/react";import"@lit/react";var n="terra-radio-group";e.define("terra-radio-group");var a=t({tagName:n,elementClass:e,react:r,events:{onTerraChange:"terra-change",onTerraInput:"terra-input",onTerraInvalid:"terra-invalid"},displayName:"TerraRadioGroup"}),E=a;export{E as a};
@@ -1,4 +1,4 @@
1
- import{a as r}from"./chunk.H2ISCJTL.js";import{a as l,b as o}from"./chunk.OILCN37O.js";import{e}from"./chunk.INFVQQSJ.js";import{property as a}from"lit/decorators.js";import{html as i}from"lit";var t=class extends o{constructor(){super(...arguments);this.ariaLabel="Breadcrumb";this.theme="light"}render(){return i`
1
+ import{a as r}from"./chunk.H2ISCJTL.js";import{a as l,b as o}from"./chunk.R4H27HPH.js";import{e}from"./chunk.INFVQQSJ.js";import{property as a}from"lit/decorators.js";import{html as i}from"lit";var t=class extends o{constructor(){super(...arguments);this.ariaLabel="Breadcrumb";this.theme="light"}render(){return i`
2
2
  <nav part="base nav" class="breadcrumbs" aria-label=${this.ariaLabel}>
3
3
  <slot></slot>
4
4
  </nav>
@@ -1 +1 @@
1
- import{a as e}from"./chunk.5JBQBY62.js";import*as t from"react";import{createComponent as r}from"@lit/react";import"@lit/react";var a="terra-tag";e.define("terra-tag");var o=r({tagName:a,elementClass:e,react:t,events:{onTerraClick:"terra-click"},displayName:"TerraTag"}),v=o;export{v as a};
1
+ import{a as e}from"./chunk.OK4KVEO2.js";import*as t from"react";import{createComponent as r}from"@lit/react";import"@lit/react";var a="terra-tag";e.define("terra-tag");var o=r({tagName:a,elementClass:e,react:t,events:{onTerraClick:"terra-click"},displayName:"TerraTag"}),v=o;export{v as a};
@@ -0,0 +1 @@
1
+ import{a as o}from"./chunk.YONWP2M5.js";var m=o;o.define("terra-combobox");export{m as a};
@@ -1 +1 @@
1
- import{a as e}from"./chunk.4CN24QEJ.js";import*as t from"react";import{createComponent as r}from"@lit/react";import"@lit/react";var o="terra-popup";e.define("terra-popup");var p=r({tagName:o,elementClass:e,react:t,events:{onTerraReposition:"terra-reposition"},displayName:"TerraPopup"}),f=p;export{f as a};
1
+ import{a as e}from"./chunk.YT5HGOQB.js";import*as t from"react";import{createComponent as r}from"@lit/react";import"@lit/react";var o="terra-popup";e.define("terra-popup");var p=r({tagName:o,elementClass:e,react:t,events:{onTerraReposition:"terra-reposition"},displayName:"TerraPopup"}),f=p;export{f as a};
@@ -0,0 +1 @@
1
+ import{a as r}from"./chunk.QRVD7RXJ.js";var p=r;r.define("terra-dropdown");export{p as a};
@@ -0,0 +1,2 @@
1
+ import{b as Tt}from"./chunk.5SIVM4DR.js";import{c as vt}from"./chunk.NZ2EQTLJ.js";import{a as Et}from"./chunk.C2Z2P4HZ.js";import{b as Ct}from"./chunk.EZI7VJCI.js";import{b as It}from"./chunk.FEZWYWLM.js";import{d as Dt,e as St}from"./chunk.QMLZIOGK.js";import{a as dt}from"./chunk.3FHTK4MP.js";import{a as mt}from"./chunk.IZZFNAC5.js";import{b as j,c as ht,d as ct}from"./chunk.BWCJXCND.js";import{a as I,b as F,f as p,g as f,h as R,i as l}from"./chunk.INFVQQSJ.js";var B=2e5,W=1e3*60*60,Mt=W*24;function J(L,e,a){let r=a.getTime()-e.getTime();switch(L){case"half-hourly":return Math.floor(r/(W/2))+1;case"hourly":return Math.floor(r/W)+1;case"3-hourly":return Math.floor(r/(W*3))+1;case"daily":return Math.floor(r/Mt)+1;case"weekly":return Math.floor(r/(Mt*7))+1;default:throw new Error(`Unsupported time interval: ${L}`)}}function Lt(L,e,a){let r=J(L,e,a);if(r<=B)return[{start:e,end:a}];let c=[],o=a.getTime()-e.getTime(),n=Math.ceil(r/B),i=Math.floor(o/n),m=new Date(e),t=o;for(;t>0;){let s=new Date(m.getTime()+i);s>a&&(s=a);let h=J(L,m,s);if(h>B){let w=i*B/h;s=new Date(m.getTime()+w)}c.push({start:new Date(m),end:new Date(s)}),t=a.getTime()-s.getTime(),m=s}return c}import{format as K}from"date-fns";import{initialState as Yt,Task as Qt}from"@lit/task";import*as Ht from"plotly.js-dist-min";var Xt=5e4,_t="https://lpo4uv7f0h.execute-api.us-east-1.amazonaws.com/default/harmony-link-proxy",Gt="https://8weebb031a.execute-api.us-east-1.amazonaws.com/SIT/timeseries-no-user",xt=300,Zt=1e4,Nt={type:"scatter",mode:"lines"},_,y,Q,k,x,P,O,ut,X,Vt,G,Ft,Z,jt,$,ft,N,z,tt,Ut,M,U,et,Ot,rt,$t,at,qt,st,Bt,ot,Wt,it,Jt,A,Y,g,b,At=class{constructor(e){f(this,O);f(this,X);f(this,G);f(this,Z);f(this,$);f(this,N);f(this,tt);f(this,M);f(this,et);f(this,rt);f(this,at);f(this,st);f(this,ot);f(this,it);f(this,A);f(this,g);f(this,_,!1);f(this,y,new vt);f(this,Q,new St);f(this,k,void 0);f(this,x,void 0);f(this,P,void 0);this.emptyPlotData=[F(I({},Nt),{x:[],y:[]})];this.host=e,R(this,x,new It(this.host,{getCollectionEntryId:()=>l(this,at,qt).call(this),getBearerToken:()=>this.host.bearerToken})),R(this,P,new Et(this.host)),this.task=new Qt(e,{task:async(a,{signal:r})=>{var i,m;if(!l(this,O,ut).call(this).length||!this.host.startDate||!this.host.endDate||!this.host.location)return console.log("Requirements not met to fetch the time series data "),Yt;let c=l(this,O,ut).call(this),o=await Promise.all(c.map(async t=>{var w;let s=await l(this,X,Vt).call(this,r,t),h=l(this,M,U).call(this,s.data,(w=s.metadata)==null?void 0:w.undef);return{variable:t,timeSeries:s,filteredData:h}}));this.metadata=(i=o[0])==null?void 0:i.timeSeries.metadata,this.lastTaskValue=o.map(({variable:t,filteredData:s})=>{var h,w;return F(I({},Nt),{name:(w=(h=t.dataFieldLongName)!=null?h:t.dataFieldShortName)!=null?w:t.dataFieldId,hovertemplate:t.dataFieldUnits?`%{x}<br>%{y} ${t.dataFieldUnits}<extra>%{fullData.name}</extra>`:"%{x}<br>%{y}<extra>%{fullData.name}</extra>",x:s.map(E=>E.timestamp),y:s.map(E=>E.value)})});let n=o[0];return n?(this.host.emit("terra-time-series-data-change",{detail:{data:n.timeSeries,variable:n.variable,series:o.map(({variable:t,timeSeries:s})=>({variable:t,data:s})),startDate:ht(this.host.startDate),endDate:ht(this.host.endDate),location:this.host.location}}),p(this,k)&&l(this,it,Jt).call(this,p(this,k)).catch(console.error),this.lastTaskValue):(m=this.lastTaskValue)!=null?m:this.emptyPlotData},args:()=>[this.host.catalogVariable,this.host.catalogVariables,this.host.startDate,this.host.endDate,this.host.location]})}render(e){return this.task.render(e)}getCacheKey(){return!this.host.location||!this.host.catalogVariable?"":this.getCacheKeyForVariable(this.host.catalogVariable)}getCacheKeyForVariable(e){return p(this,y).getCacheKeyForVariable(e.dataFieldId,this.host.location,this.host.environment)}confirmDataPointWarning(){R(this,_,!0),this.host.showDataPointWarning=!1}};_=new WeakMap,y=new WeakMap,Q=new WeakMap,k=new WeakMap,x=new WeakMap,P=new WeakMap,O=new WeakSet,ut=function(){var e;return(e=this.host.catalogVariables)!=null&&e.length?this.host.catalogVariables:this.host.catalogVariable?[this.host.catalogVariable]:[]},X=new WeakSet,Vt=async function(e,a){var pt,wt,gt,yt,bt;let r=this.host.startDate,c=this.host.endDate;if(!r||!c)throw new Error("Start and end date are required to fetch time series data");let o=j(r),n=j(c,!0),i=this.getCacheKeyForVariable(a),m=a.dataFieldId;if(console.log("Loading time series for variable",a,this.host.startDate,this.host.endDate,this.host.location),this.host.jobId){let u=await l(this,$,ft).call(this,this.host.jobId,e);if(u.status==="failed"){let T=u.message||((wt=(pt=u.errors)==null?void 0:pt[0])==null?void 0:wt.message)||"The subset job failed",V=new Error(T);throw l(this,g,b).call(this,V,u.errors),V}if(u.status==="complete_with_errors"&&u.errors&&u.errors.length>0){let T=u.errors[0].message||"The subset job completed with errors",V=new Error(T);throw l(this,g,b).call(this,V,u.errors),V}let S=(gt=u.links.find(T=>T.rel==="data"))==null?void 0:gt.href;if(!S){let T=new Error("No data link found for Harmony job");throw l(this,g,b).call(this,T,u.errors),T}let nt=`${_t}?url=${encodeURIComponent(S)}`,lt=await fetch(nt,{signal:e,headers:I({},this.host.bearerToken?{Authorization:`Bearer ${this.host.bearerToken}`}:{})});if(!lt.ok){let T=new Error(`Failed to fetch subset job link contents: ${lt.statusText}`);throw l(this,g,b).call(this,T),T}return R(this,k,this.host.jobId),l(this,N,z).call(this,await lt.text())}let t=this.host.cache?await p(this,y).getValidCacheEntry(i):void 0,s=t!=null&&t.startDate?j(t.startDate):void 0,h=t!=null&&t.endDate?j(t.endDate,!0):void 0;if(console.log("Existing data?",t?"Yes":"No"),console.log("Is date range contained?",s&&h?ct(o,n,s,h):!1),console.log("Is cache valid?",p(this,y).isCacheValid(t)),t&&s&&h&&ct(o,n,s,h)&&p(this,y).isCacheValid(t)){console.log("Returning existing data from cache ",this.getCacheKey());let u=(yt=t.metadata)==null?void 0:yt.undef,S=l(this,M,U).call(this,t.data,u),nt=F(I({},t),{data:S});return p(this,y).getDataInRange(nt,o,n)}let w=p(this,y).calculateDataGaps(o,n,t);if(w.length===0&&t){let u=l(this,M,U).call(this,t.data,(bt=t.metadata)==null?void 0:bt.undef),S=F(I({},t),{data:u});return p(this,y).getDataInRange(S,o,n)}let C=(t!=null&&t.data?l(this,rt,$t).call(this,t.data):null)||a.dataProductTimeInterval||"daily",H=[];for(let u of w){let S=Lt(C,u.start,u.end);H.push(...S)}let q=await Promise.all(H.map(async u=>await l(this,G,Ft).call(this,m,u.start,u.end,e,a))),D=(t==null?void 0:t.data)||[],d=(t==null?void 0:t.metadata)||{};for(let u of q)D=[...D,...u.data],d=I(I({},d),u.metadata);D=p(this,y).deduplicateByTimestamp(D);let v={metadata:d,data:D};this.host.cache&&await p(this,y).storeConsolidatedData({cacheKey:i,variableEntryId:m,environment:this.host.environment,metadata:v.metadata,data:D});let Kt=l(this,M,U).call(this,D,d==null?void 0:d.undef);return p(this,y).getDataInRange({metadata:v.metadata,data:Kt},o,n)},G=new WeakSet,Ft=async function(e,a,r,c,o){var H,q,D;if(!p(this,_)&&!l(this,et,Ot).call(this,o,a,r))throw new Error("User cancelled data point warning");R(this,_,!1);let n=l(this,ot,Wt).call(this);if(n instanceof mt)return l(this,Z,jt).call(this,e,a,r,c,n);let i=n instanceof dt,m=await l(this,st,Bt).call(this,c),t=new Ct({collectionConceptId:m,location:n}).variable(e).dateRange(K(a,"yyyy-MM-dd'T'00:00:00'Z'"),K(r,"yyyy-MM-dd'T'23:59:59'Z'")).format("text/csv").label("terra-time-series");this.host.applicationId&&t.label(this.host.applicationId),t.addLabelsFromVariable(o),i&&t.average("area");let s;try{let d=await p(this,P).startJob({harmonyRequest:t,options:{signal:c,bearerToken:this.host.bearerToken,environment:this.host.environment}});s=d.jobID,R(this,k,s),this.host.emit("terra-harmony-job-status-update",{detail:d})}catch(d){throw l(this,g,b).call(this,d),d}let h=await l(this,$,ft).call(this,s,c);if(h.status==="failed"){let d=h.message||((q=(H=h.errors)==null?void 0:H[0])==null?void 0:q.message)||"The subset job failed",v=new Error(d);throw l(this,g,b).call(this,v,h.errors),v}if(h.status==="complete_with_errors"&&h.errors&&h.errors.length>0){let d=h.errors[0].message||"The subset job completed with errors",v=new Error(d);throw l(this,g,b).call(this,v,h.errors),v}let w=(D=h.links.find(d=>d.rel==="data"))==null?void 0:D.href;if(!w){let d=new Error("No data link found for Harmony job");throw l(this,g,b).call(this,d,h.errors),d}let E=`${_t}?url=${encodeURIComponent(w)}`,C=await fetch(E,{signal:c,headers:I({},this.host.bearerToken?{Authorization:`Bearer ${this.host.bearerToken}`}:{})});if(!C.ok){let d=new Error(`Failed to fetch subset job link contents: ${C.statusText}`);throw l(this,g,b).call(this,d),d}return l(this,N,z).call(this,await C.text())},Z=new WeakSet,jt=async function(e,a,r,c,o){let n=o.lat.toFixed(2),i=o.lng.toFixed(2),m=`${Gt}?${new URLSearchParams({data:e,lat:n,lon:i,time_start:`${K(a,"yyyy-MM-dd")}T00:00:00`,time_end:`${K(r,"yyyy-MM-dd")}T23:59:59`}).toString()}`,t=await fetch(m,{mode:"cors",signal:c,headers:{Accept:"application/json"}});if(!t.ok){let s={},h=t.headers.get("content-type");if(h!=null&&h.includes("application/json"))try{s=await t.json()}catch(w){s={message:t.statusText}}else s={message:t.statusText};throw this.host.dispatchEvent(new CustomEvent("terra-time-series-error",{detail:{status:t.status,code:s.code||String(t.status),message:s.message||t.statusText,context:s.context},bubbles:!0,composed:!0})),new Error(`Failed to fetch time series data: ${s.message||t.statusText}`)}return l(this,N,z).call(this,await t.text())},$=new WeakSet,ft=async function(e,a){for(p(this,P).startPollForJobStatus(e);;){if(a.aborted)throw new Error("Job polling was aborted");let r=p(this,P).data;if(r&&this.host.emit("terra-harmony-job-status-update",{detail:r}),(r==null?void 0:r.jobID)===e&&Dt.has(r.status))return r;await l(this,A,Y).call(this,xt,a)}},N=new WeakSet,z=function(e){let a=e.split(`
2
+ `).map(i=>i.trim()).filter(Boolean),r={},c=[],o=!1,n=[];for(let i of a)if(o){let m=i.split(",");if(m.length===n.length){let t=[];for(let h=0;h<n.length;h++)t.push(m[h].trim());let s=l(this,tt,Ut).call(this,t[0]);c.push({timestamp:s,value:t[1]})}}else{if(i.startsWith("Timestamp (UTC)")||i.startsWith("time,")){n=i.split(",").map(s=>s.trim()),o=!0;continue}let[m,t]=i.split(",");m&&t!==void 0&&(r[m.trim()]=t.trim())}return{metadata:r,data:c}},tt=new WeakSet,Ut=function(e){try{let a=new Date(e);return Number.isNaN(a.getTime())?(console.warn("Invalid timestamp:",e),e):a.toISOString()}catch(a){return console.warn("Failed to normalize timestamp:",e,a),e}},M=new WeakSet,U=function(e,a){return a?e.filter(r=>{let c=r.value.trim(),o=String(a).trim();if(c===o)return!1;let n=parseFloat(c),i=parseFloat(o);return!(!Number.isNaN(n)&&!Number.isNaN(i)&&n===i)}):e},et=new WeakSet,Ot=function(e,a,r){return this.host.estimatedDataPoints=J(e.dataProductTimeInterval,a,r),this.host.estimatedDataPoints<Xt,!0},rt=new WeakSet,$t=function(e){if(e.length<2)return null;let a=[...e].sort((t,s)=>new Date(t.timestamp).getTime()-new Date(s.timestamp).getTime()),r=[];for(let t=1;t<Math.min(a.length,100);t++){let s=new Date(a[t-1].timestamp).getTime(),w=new Date(a[t].timestamp).getTime()-s;w>0&&r.push(w)}if(r.length===0)return null;let c=new Map;r.forEach(t=>{let s=Math.round(t/6e4)*6e4;c.set(s,(c.get(s)||0)+1)});let o=0,n=0;c.forEach((t,s)=>{t>n&&(n=t,o=s)});let i=1e3*60*60,m=i*24;return o<=i/2+6e4?"half-hourly":o<=i+6e4?"hourly":o<=i*3+6e4?"3-hourly":o<=m+6e4?"daily":o<=m*7+6e4?"weekly":"daily"},at=new WeakSet,qt=function(){if(this.host.collection)return this.host.collection;let e=this.host.catalogVariable;if(e)return`${e.dataProductShortName}_${e.dataProductVersion}`},st=new WeakSet,Bt=async function(e){var c;let a=Date.now();for(;Date.now()-a<Zt;){if(e.aborted)throw new Error("Request aborted while waiting for collection metadata");let o=p(this,x).conceptId;if(o)return o;if((c=p(this,x).collection)!=null&&c.isError){let n=new Error("Unable to load collection metadata needed for Harmony requests");throw l(this,g,b).call(this,n),n}await l(this,A,Y).call(this,xt,e)}let r=new Error("Timed out waiting for collection metadata needed for Harmony requests");throw l(this,g,b).call(this,r),r},ot=new WeakSet,Wt=function(){var n;let e=decodeURIComponent((n=this.host.location)!=null?n:""),a=e.split(",").map(i=>i.trim()),r=a.map(i=>Number(i));if(a.some(i=>i.length===0)||r.some(i=>Number.isNaN(i))){let i=new Error('Invalid location format. Expected "lat,lon" or "west,south,east,north".');throw this.host.dispatchEvent(new CustomEvent("terra-time-series-error",{detail:{status:400,code:"INVALID_LOCATION",message:i.message,context:e},bubbles:!0,composed:!0})),i}if(r.length===2)return new mt(r[0],r[1]);if(r.length===4)return new dt(r);let o=new Error('Invalid location format. Expected "lat,lon" or "west,south,east,north".');throw this.host.dispatchEvent(new CustomEvent("terra-time-series-error",{detail:{status:400,code:"INVALID_LOCATION",message:o.message,context:e},bubbles:!0,composed:!0})),o},it=new WeakSet,Jt=async function(e,a=1e3,r=200,c=200){var n;await l(this,A,Y).call(this,a);let o=(n=this.host.plot)==null?void 0:n.base;if(o)try{let i=await Ht.toImage(o,{format:"jpeg",width:500,height:500}),m=new Image;m.src=i,await m.decode();let t=document.createElement("canvas");t.width=r,t.height=c;let s=t.getContext("2d");if(!s)return;s.drawImage(m,0,0,r,c);let h=await new Promise((w,E)=>t.toBlob(C=>C?w(C):E(new Error("toBlob failed")),"image/jpeg",.8));await p(this,Q).store(e,h)}catch(i){console.error("Failed to capture time series thumbnail",i)}},A=new WeakSet,Y=function(e,a){return new Promise((r,c)=>{let o=setTimeout(()=>{a&&a.removeEventListener("abort",n),r()},e),n=()=>{clearTimeout(o),c(new Error("Operation aborted"))};a&&a.addEventListener("abort",n,{once:!0})})},g=new WeakSet,b=function(e,a){let r=Tt(e,a);this.host.dispatchEvent(new CustomEvent("terra-time-series-error",{detail:r,bubbles:!0,composed:!0}))};export{Nt as a,At as b};
@@ -1 +1 @@
1
- import{a as e}from"./chunk.KWCBIL2K.js";import*as r from"react";import{createComponent as a}from"@lit/react";var t="terra-card";e.define("terra-card");var o=a({tagName:t,elementClass:e,react:r,events:{},displayName:"TerraCard"}),d=o;export{d as a};
1
+ import{a as e}from"./chunk.EDPXBQTK.js";import*as r from"react";import{createComponent as a}from"@lit/react";var t="terra-card";e.define("terra-card");var o=a({tagName:t,elementClass:e,react:r,events:{},displayName:"TerraCard"}),d=o;export{d as a};
@@ -1 +1 @@
1
- import{a as e}from"./chunk.UIJRLYJ5.js";import*as r from"react";import{createComponent as a}from"@lit/react";var t="terra-browse-variables";e.define("terra-browse-variables");var o=a({tagName:t,elementClass:e,react:r,events:{},displayName:"TerraBrowseVariables"}),l=o;export{l as a};
1
+ import{a as e}from"./chunk.22W5VSIY.js";import*as r from"react";import{createComponent as a}from"@lit/react";var t="terra-browse-variables";e.define("terra-browse-variables");var o=a({tagName:t,elementClass:e,react:r,events:{},displayName:"TerraBrowseVariables"}),l=o;export{l as a};
@@ -1,4 +1,4 @@
1
- import{a as T}from"./chunk.4CN24QEJ.js";import{b as y}from"./chunk.6MJMMDNP.js";import{a as p,c as m}from"./chunk.VOQBVUDI.js";import{a as c,c as f}from"./chunk.U6R2SR47.js";import{a as L}from"./chunk.NP2QG5W4.js";import{a as u}from"./chunk.CUJNKBC6.js";import{a as d}from"./chunk.J5Q4TWEG.js";import{a as v,b as E}from"./chunk.OILCN37O.js";import{e as n}from"./chunk.INFVQQSJ.js";import{classMap as w}from"lit/directives/class-map.js";import{html as M}from"lit";import{ifDefined as b}from"lit/directives/if-defined.js";import{property as a,query as g}from"lit/decorators.js";var i=class extends E{constructor(){super(...arguments);this.open=!1;this.placement="bottom-start";this.disabled=!1;this.stayOpenOnSelect=!1;this.distance=0;this.skidding=0;this.hoist=!1;this.hover=!1;this.hoverTimeout=null;this.hideTimeout=null;this.sync=void 0;this.handleKeyDown=e=>{this.open&&e.key==="Escape"&&(e.stopPropagation(),this.hide(),this.focusOnTrigger())};this.handleDocumentKeyDown=e=>{var t;if(e.key==="Escape"&&this.open&&!this.closeWatcher){e.stopPropagation(),this.focusOnTrigger(),this.hide();return}if(e.key==="Tab"){if(this.open&&((t=document.activeElement)==null?void 0:t.tagName.toLowerCase())==="terra-menu-item"){e.preventDefault(),this.hide(),this.focusOnTrigger();return}let s=(o,r)=>{if(!o)return null;let h=o.closest(r);if(h)return h;let l=o.getRootNode();return l instanceof ShadowRoot?s(l.host,r):null};setTimeout(()=>{var r;let o=((r=this.containingElement)==null?void 0:r.getRootNode())instanceof ShadowRoot?y():document.activeElement;(!this.containingElement||s(o,this.containingElement.tagName.toLowerCase())!==this.containingElement)&&this.hide()})}};this.handleDocumentMouseDown=e=>{let t=e.composedPath();this.containingElement&&!t.includes(this.containingElement)&&this.hide()};this.handlePanelSelect=e=>{let t=e.target;!this.stayOpenOnSelect&&t.tagName.toLowerCase()==="terra-menu"&&(this.hide(),this.focusOnTrigger())};this.handleTriggerMouseEnter=()=>{!this.hover||this.disabled||(this.hideTimeout!==null&&(clearTimeout(this.hideTimeout),this.hideTimeout=null),this.hoverTimeout=window.setTimeout(()=>{this.open||this.show(),this.hoverTimeout=null},150))};this.handleTriggerMouseLeave=()=>{this.hover&&(this.hoverTimeout!==null&&(clearTimeout(this.hoverTimeout),this.hoverTimeout=null),this.hideTimeout=window.setTimeout(()=>{this.open&&this.hide(),this.hideTimeout=null},200))};this.handlePanelMouseEnter=()=>{this.hover&&this.hideTimeout!==null&&(clearTimeout(this.hideTimeout),this.hideTimeout=null)};this.handlePanelMouseLeave=()=>{this.hover&&(this.hideTimeout=window.setTimeout(()=>{this.open&&this.hide(),this.hideTimeout=null},200))}}connectedCallback(){super.connectedCallback(),this.containingElement||(this.containingElement=this)}firstUpdated(){this.panel.hidden=!this.open,this.updateComplete.then(()=>{this.attachHoverListeners()}),this.open&&(this.addOpenListeners(),this.popup.active=!0,this.attachPanelHoverListeners())}disconnectedCallback(){super.disconnectedCallback(),this.removeOpenListeners(),this.removeHoverListeners(),this.hide(),this.hoverTimeout!==null&&(clearTimeout(this.hoverTimeout),this.hoverTimeout=null),this.hideTimeout!==null&&(clearTimeout(this.hideTimeout),this.hideTimeout=null)}removeHoverListeners(){var r,h;let t=(((r=this.trigger)==null?void 0:r.assignedElements({flatten:!0}))||[])[0];if(!t)return;let s=t;if(t.tagName.toLowerCase()==="terra-button"){let l=t.button;l&&(s=l)}s.removeEventListener("mouseenter",this.handleTriggerMouseEnter),s.removeEventListener("mouseleave",this.handleTriggerMouseLeave);let o=(h=this.popup)==null?void 0:h.popup;o&&(o.removeEventListener("mouseenter",this.handlePanelMouseEnter),o.removeEventListener("mouseleave",this.handlePanelMouseLeave))}focusOnTrigger(){let e=this.trigger.assignedElements({flatten:!0})[0];typeof(e==null?void 0:e.focus)=="function"&&e.focus()}getMenu(){return this.panel.assignedElements({flatten:!0}).find(e=>e.tagName.toLowerCase()==="terra-menu")}handleTriggerClick(){this.hover||(this.open?this.hide():(this.show(),this.focusOnTrigger()))}async handleTriggerKeyDown(e){if([" ","Enter"].includes(e.key)){e.preventDefault(),this.handleTriggerClick();return}let t=this.getMenu();if(t){let s=t.getAllItems(),o=s[0],r=s[s.length-1];["ArrowDown","ArrowUp","Home","End"].includes(e.key)&&(e.preventDefault(),this.open||(this.show(),await this.updateComplete),s.length>0&&this.updateComplete.then(()=>{(e.key==="ArrowDown"||e.key==="Home")&&(t.setCurrentItem(o),o.focus()),(e.key==="ArrowUp"||e.key==="End")&&(t.setCurrentItem(r),r.focus())}))}}handleTriggerKeyUp(e){e.key===" "&&e.preventDefault()}handleTriggerSlotChange(){this.updateAccessibleTrigger(),requestAnimationFrame(()=>{this.attachHoverListeners()})}attachHoverListeners(){if(!this.hover||!this.trigger)return;let t=this.trigger.assignedElements({flatten:!0})[0];if(!t)return;t.removeEventListener("mouseenter",this.handleTriggerMouseEnter),t.removeEventListener("mouseleave",this.handleTriggerMouseLeave);let s=t;if(t.tagName.toLowerCase()==="terra-button"){let o=t.button;o&&(s=o)}s.addEventListener("mouseenter",this.handleTriggerMouseEnter),s.addEventListener("mouseleave",this.handleTriggerMouseLeave)}attachPanelHoverListeners(){this.hover&&this.updateComplete.then(()=>{var t;let e=(t=this.popup)==null?void 0:t.popup;e&&(e.removeEventListener("mouseenter",this.handlePanelMouseEnter),e.removeEventListener("mouseleave",this.handlePanelMouseLeave),e.addEventListener("mouseenter",this.handlePanelMouseEnter),e.addEventListener("mouseleave",this.handlePanelMouseLeave))})}updateAccessibleTrigger(){}async show(){if(!this.open)return this.open=!0,u(this,"terra-after-show")}async hide(){if(this.open)return this.open=!1,u(this,"terra-after-hide")}reposition(){this.popup.reposition()}addOpenListeners(){var e;this.panel.addEventListener("terra-select",this.handlePanelSelect),"CloseWatcher"in window?((e=this.closeWatcher)==null||e.destroy(),this.closeWatcher=new CloseWatcher,this.closeWatcher.onclose=()=>{this.hide(),this.focusOnTrigger()}):this.panel.addEventListener("keydown",this.handleKeyDown),document.addEventListener("keydown",this.handleDocumentKeyDown),document.addEventListener("mousedown",this.handleDocumentMouseDown)}removeOpenListeners(){var e;this.panel&&(this.panel.removeEventListener("terra-select",this.handlePanelSelect),this.panel.removeEventListener("keydown",this.handleKeyDown)),document.removeEventListener("keydown",this.handleDocumentKeyDown),document.removeEventListener("mousedown",this.handleDocumentMouseDown),(e=this.closeWatcher)==null||e.destroy()}async handleOpenChange(){if(this.disabled){this.open=!1;return}if(this.updateAccessibleTrigger(),this.open){this.emit("terra-show"),this.addOpenListeners(),this.attachPanelHoverListeners(),await m(this),this.panel.hidden=!1,this.popup.active=!0;let{keyframes:e,options:t}=f(this,"dropdown.show",{dir:"ltr"});await p(this.popup.popup,e,t),this.emit("terra-after-show")}else{this.emit("terra-hide"),this.removeOpenListeners(),await m(this);let{keyframes:e,options:t}=f(this,"dropdown.hide",{dir:"ltr"});await p(this.popup.popup,e,t),this.panel.hidden=!0,this.popup.active=!1,this.emit("terra-after-hide")}}handleHoverChange(){this.attachHoverListeners()}render(){return M`
1
+ import{a as T}from"./chunk.YT5HGOQB.js";import{b as y}from"./chunk.6MJMMDNP.js";import{a as p,c as m}from"./chunk.VOQBVUDI.js";import{a as c,c as f}from"./chunk.U6R2SR47.js";import{a as L}from"./chunk.NP2QG5W4.js";import{a as u}from"./chunk.CUJNKBC6.js";import{a as d}from"./chunk.J5Q4TWEG.js";import{a as v,b as E}from"./chunk.R4H27HPH.js";import{e as n}from"./chunk.INFVQQSJ.js";import{classMap as w}from"lit/directives/class-map.js";import{html as M}from"lit";import{ifDefined as b}from"lit/directives/if-defined.js";import{property as a,query as g}from"lit/decorators.js";var i=class extends E{constructor(){super(...arguments);this.open=!1;this.placement="bottom-start";this.disabled=!1;this.stayOpenOnSelect=!1;this.distance=0;this.skidding=0;this.hoist=!1;this.hover=!1;this.hoverTimeout=null;this.hideTimeout=null;this.sync=void 0;this.handleKeyDown=e=>{this.open&&e.key==="Escape"&&(e.stopPropagation(),this.hide(),this.focusOnTrigger())};this.handleDocumentKeyDown=e=>{var t;if(e.key==="Escape"&&this.open&&!this.closeWatcher){e.stopPropagation(),this.focusOnTrigger(),this.hide();return}if(e.key==="Tab"){if(this.open&&((t=document.activeElement)==null?void 0:t.tagName.toLowerCase())==="terra-menu-item"){e.preventDefault(),this.hide(),this.focusOnTrigger();return}let s=(o,r)=>{if(!o)return null;let h=o.closest(r);if(h)return h;let l=o.getRootNode();return l instanceof ShadowRoot?s(l.host,r):null};setTimeout(()=>{var r;let o=((r=this.containingElement)==null?void 0:r.getRootNode())instanceof ShadowRoot?y():document.activeElement;(!this.containingElement||s(o,this.containingElement.tagName.toLowerCase())!==this.containingElement)&&this.hide()})}};this.handleDocumentMouseDown=e=>{let t=e.composedPath();this.containingElement&&!t.includes(this.containingElement)&&this.hide()};this.handlePanelSelect=e=>{let t=e.target;!this.stayOpenOnSelect&&t.tagName.toLowerCase()==="terra-menu"&&(this.hide(),this.focusOnTrigger())};this.handleTriggerMouseEnter=()=>{!this.hover||this.disabled||(this.hideTimeout!==null&&(clearTimeout(this.hideTimeout),this.hideTimeout=null),this.hoverTimeout=window.setTimeout(()=>{this.open||this.show(),this.hoverTimeout=null},150))};this.handleTriggerMouseLeave=()=>{this.hover&&(this.hoverTimeout!==null&&(clearTimeout(this.hoverTimeout),this.hoverTimeout=null),this.hideTimeout=window.setTimeout(()=>{this.open&&this.hide(),this.hideTimeout=null},200))};this.handlePanelMouseEnter=()=>{this.hover&&this.hideTimeout!==null&&(clearTimeout(this.hideTimeout),this.hideTimeout=null)};this.handlePanelMouseLeave=()=>{this.hover&&(this.hideTimeout=window.setTimeout(()=>{this.open&&this.hide(),this.hideTimeout=null},200))}}connectedCallback(){super.connectedCallback(),this.containingElement||(this.containingElement=this)}firstUpdated(){this.panel.hidden=!this.open,this.updateComplete.then(()=>{this.attachHoverListeners()}),this.open&&(this.addOpenListeners(),this.popup.active=!0,this.attachPanelHoverListeners())}disconnectedCallback(){super.disconnectedCallback(),this.removeOpenListeners(),this.removeHoverListeners(),this.hide(),this.hoverTimeout!==null&&(clearTimeout(this.hoverTimeout),this.hoverTimeout=null),this.hideTimeout!==null&&(clearTimeout(this.hideTimeout),this.hideTimeout=null)}removeHoverListeners(){var r,h;let t=(((r=this.trigger)==null?void 0:r.assignedElements({flatten:!0}))||[])[0];if(!t)return;let s=t;if(t.tagName.toLowerCase()==="terra-button"){let l=t.button;l&&(s=l)}s.removeEventListener("mouseenter",this.handleTriggerMouseEnter),s.removeEventListener("mouseleave",this.handleTriggerMouseLeave);let o=(h=this.popup)==null?void 0:h.popup;o&&(o.removeEventListener("mouseenter",this.handlePanelMouseEnter),o.removeEventListener("mouseleave",this.handlePanelMouseLeave))}focusOnTrigger(){let e=this.trigger.assignedElements({flatten:!0})[0];typeof(e==null?void 0:e.focus)=="function"&&e.focus()}getMenu(){return this.panel.assignedElements({flatten:!0}).find(e=>e.tagName.toLowerCase()==="terra-menu")}handleTriggerClick(){this.hover||(this.open?this.hide():(this.show(),this.focusOnTrigger()))}async handleTriggerKeyDown(e){if([" ","Enter"].includes(e.key)){e.preventDefault(),this.handleTriggerClick();return}let t=this.getMenu();if(t){let s=t.getAllItems(),o=s[0],r=s[s.length-1];["ArrowDown","ArrowUp","Home","End"].includes(e.key)&&(e.preventDefault(),this.open||(this.show(),await this.updateComplete),s.length>0&&this.updateComplete.then(()=>{(e.key==="ArrowDown"||e.key==="Home")&&(t.setCurrentItem(o),o.focus()),(e.key==="ArrowUp"||e.key==="End")&&(t.setCurrentItem(r),r.focus())}))}}handleTriggerKeyUp(e){e.key===" "&&e.preventDefault()}handleTriggerSlotChange(){this.updateAccessibleTrigger(),requestAnimationFrame(()=>{this.attachHoverListeners()})}attachHoverListeners(){if(!this.hover||!this.trigger)return;let t=this.trigger.assignedElements({flatten:!0})[0];if(!t)return;t.removeEventListener("mouseenter",this.handleTriggerMouseEnter),t.removeEventListener("mouseleave",this.handleTriggerMouseLeave);let s=t;if(t.tagName.toLowerCase()==="terra-button"){let o=t.button;o&&(s=o)}s.addEventListener("mouseenter",this.handleTriggerMouseEnter),s.addEventListener("mouseleave",this.handleTriggerMouseLeave)}attachPanelHoverListeners(){this.hover&&this.updateComplete.then(()=>{var t;let e=(t=this.popup)==null?void 0:t.popup;e&&(e.removeEventListener("mouseenter",this.handlePanelMouseEnter),e.removeEventListener("mouseleave",this.handlePanelMouseLeave),e.addEventListener("mouseenter",this.handlePanelMouseEnter),e.addEventListener("mouseleave",this.handlePanelMouseLeave))})}updateAccessibleTrigger(){}async show(){if(!this.open)return this.open=!0,u(this,"terra-after-show")}async hide(){if(this.open)return this.open=!1,u(this,"terra-after-hide")}reposition(){this.popup.reposition()}addOpenListeners(){var e;this.panel.addEventListener("terra-select",this.handlePanelSelect),"CloseWatcher"in window?((e=this.closeWatcher)==null||e.destroy(),this.closeWatcher=new CloseWatcher,this.closeWatcher.onclose=()=>{this.hide(),this.focusOnTrigger()}):this.panel.addEventListener("keydown",this.handleKeyDown),document.addEventListener("keydown",this.handleDocumentKeyDown),document.addEventListener("mousedown",this.handleDocumentMouseDown)}removeOpenListeners(){var e;this.panel&&(this.panel.removeEventListener("terra-select",this.handlePanelSelect),this.panel.removeEventListener("keydown",this.handleKeyDown)),document.removeEventListener("keydown",this.handleDocumentKeyDown),document.removeEventListener("mousedown",this.handleDocumentMouseDown),(e=this.closeWatcher)==null||e.destroy()}async handleOpenChange(){if(this.disabled){this.open=!1;return}if(this.updateAccessibleTrigger(),this.open){this.emit("terra-show"),this.addOpenListeners(),this.attachPanelHoverListeners(),await m(this),this.panel.hidden=!1,this.popup.active=!0;let{keyframes:e,options:t}=f(this,"dropdown.show",{dir:"ltr"});await p(this.popup.popup,e,t),this.emit("terra-after-show")}else{this.emit("terra-hide"),this.removeOpenListeners(),await m(this);let{keyframes:e,options:t}=f(this,"dropdown.hide",{dir:"ltr"});await p(this.popup.popup,e,t),this.panel.hidden=!0,this.popup.active=!1,this.emit("terra-after-hide")}}handleHoverChange(){this.attachHoverListeners()}render(){return M`
2
2
  <terra-popup
3
3
  part="base"
4
4
  exportparts="popup:base__popup"
@@ -296,4 +296,4 @@ import{a as g,e as o,f as l,g as d,h as m,i as y}from"./chunk.INFVQQSJ.js";impor
296
296
  white-space: nowrap;
297
297
  width: 1px;
298
298
  }
299
- `;import{LitElement as T}from"lit";import{property as v,state as z}from"lit/decorators.js";var r,h,u,p,b,n=class extends T{constructor(){super();d(this,h);d(this,p);this.environment="prod";this.isVisible=!1;d(this,r,void 0);Object.entries(this.constructor.dependencies).forEach(([e,t])=>{this.constructor.define(e,t)})}connectedCallback(){super.connectedCallback(),y(this,h,u).call(this)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=l(this,r))==null||e.disconnect(),m(this,r,void 0)}firstVisible(){}emit(e,t){let i=new CustomEvent(e,g({bubbles:!0,cancelable:!1,composed:!0,detail:{}},t));return this.dispatchEvent(i),i}static define(e,t=this,i={}){let s=customElements.get(e);if(!s){customElements.define(e,class extends t{},i);return}let a=" (unknown version)",f=a;"version"in t&&t.version&&(a=" v"+t.version),"version"in s&&s.version&&(f=" v"+s.version),!(a&&f&&a===f)&&console.warn(`Attempted to register <${e}>${a}, but <${e}>${f} has already been registered.`)}};r=new WeakMap,h=new WeakSet,u=function(){if(!l(this,r)){if(this.isVisible=y(this,p,b).call(this),this.isVisible){this.firstVisible();return}if(!("IntersectionObserver"in window)){this.isVisible=!0,this.firstVisible();return}m(this,r,new IntersectionObserver(e=>{var t;e.some(i=>i.isIntersecting)&&((t=l(this,r))==null||t.disconnect(),m(this,r,void 0),this.isVisible=!0,setTimeout(()=>this.firstVisible(),500))},{root:null,threshold:0})),l(this,r).observe(this)}},p=new WeakSet,b=function(){if(!this.isConnected)return!1;let e=this.getBoundingClientRect(),t=getComputedStyle(this);return e.width>0&&e.height>0&&t.display!=="none"&&t.visibility!=="hidden"},n.version="0.0.181",n.dependencies={},o([v()],n.prototype,"dir",2),o([v()],n.prototype,"lang",2),o([v()],n.prototype,"environment",2),o([v()],n.prototype,"bearerToken",2),o([z()],n.prototype,"isVisible",2);export{M as a,n as b};
299
+ `;import{LitElement as T}from"lit";import{property as v,state as z}from"lit/decorators.js";var r,h,u,p,b,n=class extends T{constructor(){super();d(this,h);d(this,p);this.environment="prod";this.isVisible=!1;d(this,r,void 0);Object.entries(this.constructor.dependencies).forEach(([e,t])=>{this.constructor.define(e,t)})}connectedCallback(){super.connectedCallback(),y(this,h,u).call(this)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=l(this,r))==null||e.disconnect(),m(this,r,void 0)}firstVisible(){}emit(e,t){let i=new CustomEvent(e,g({bubbles:!0,cancelable:!1,composed:!0,detail:{}},t));return this.dispatchEvent(i),i}static define(e,t=this,i={}){let s=customElements.get(e);if(!s){customElements.define(e,class extends t{},i);return}let a=" (unknown version)",f=a;"version"in t&&t.version&&(a=" v"+t.version),"version"in s&&s.version&&(f=" v"+s.version),!(a&&f&&a===f)&&console.warn(`Attempted to register <${e}>${a}, but <${e}>${f} has already been registered.`)}};r=new WeakMap,h=new WeakSet,u=function(){if(!l(this,r)){if(this.isVisible=y(this,p,b).call(this),this.isVisible){this.firstVisible();return}if(!("IntersectionObserver"in window)){this.isVisible=!0,this.firstVisible();return}m(this,r,new IntersectionObserver(e=>{var t;e.some(i=>i.isIntersecting)&&((t=l(this,r))==null||t.disconnect(),m(this,r,void 0),this.isVisible=!0,setTimeout(()=>this.firstVisible(),500))},{root:null,threshold:0})),l(this,r).observe(this)}},p=new WeakSet,b=function(){if(!this.isConnected)return!1;let e=this.getBoundingClientRect(),t=getComputedStyle(this);return e.width>0&&e.height>0&&t.display!=="none"&&t.visibility!=="hidden"},n.version="0.0.183",n.dependencies={},o([v()],n.prototype,"dir",2),o([v()],n.prototype,"lang",2),o([v()],n.prototype,"environment",2),o([v()],n.prototype,"bearerToken",2),o([z()],n.prototype,"isVisible",2);export{M as a,n as b};
@@ -1 +1 @@
1
- import{a as e}from"./chunk.QC2EZC4J.js";import*as a from"react";import{createComponent as r}from"@lit/react";var t="terra-spatial-picker";e.define("terra-spatial-picker");var p=r({tagName:t,elementClass:e,react:a,events:{},displayName:"TerraSpatialPicker"}),s=p;export{s as a};
1
+ import{a as e}from"./chunk.RMU4NF2I.js";import*as a from"react";import{createComponent as r}from"@lit/react";var t="terra-spatial-picker";e.define("terra-spatial-picker");var p=r({tagName:t,elementClass:e,react:a,events:{},displayName:"TerraSpatialPicker"}),s=p;export{s as a};
@@ -0,0 +1 @@
1
+ import{a as e}from"./chunk.OJL2JDC7.js";var o=e;e.define("terra-stepper");export{o as a};
@@ -1,4 +1,4 @@
1
- import{b as S}from"./chunk.PKC6WTWN.js";import{b as _}from"./chunk.RBE5AOEF.js";import{b as O,c as W}from"./chunk.5SIVM4DR.js";import{a as R}from"./chunk.M24MU27S.js";import{a as G}from"./chunk.UQXFJXT2.js";import{a as B}from"./chunk.6XF647QW.js";import{a as F}from"./chunk.VT3U2SB7.js";import{a as U}from"./chunk.QDFHF7LY.js";import{a as N}from"./chunk.E6LODOVJ.js";import{a as M}from"./chunk.NJTQ2K6F.js";import{c as C}from"./chunk.BWCJXCND.js";import{a as L}from"./chunk.S3WSRAXA.js";import{a as I}from"./chunk.OAYJFXJ7.js";import{a as q,b as A}from"./chunk.OILCN37O.js";import{e,f as i,g as c,i as h}from"./chunk.INFVQQSJ.js";import{html as d,nothing as tt}from"lit";import{property as l,query as j,state as g}from"lit/decorators.js";import{TaskStatus as p}from"@lit/task";import{cache as at}from"lit/directives/cache.js";var et={fromAttribute:u=>{if(!u)return[];try{let b=JSON.parse(u);if(Array.isArray(b))return b.map(a=>String(a).trim()).filter(Boolean)}catch(b){}return u.split(",").map(b=>b.trim()).filter(Boolean)},toAttribute:u=>u!=null&&u.length?JSON.stringify(u):null},s,m,y,H,v,Y,E,z,$,J,x,K,D,Q,k,X,V,Z,P,T,t=class extends U(A){constructor(){super(...arguments);c(this,y);c(this,v);c(this,E);c(this,$);c(this,x);c(this,D);c(this,k);c(this,V);c(this,P);c(this,s,new _(this));this.variableEntryIds=[];this.showCitation=!1;this.disableAutoFetch=!1;this.mobileView=!1;this.hideToolbar=!1;this.catalogVariables=[];this.quotaExceededOpen=!1;this.timeSeriesError=null;this.showDataPointWarning=!1;this.estimatedDataPoints=0;this._authController=new F(this);this._fetchVariableTask=S(this);c(this,m,a=>{let{status:r,code:o,message:n,context:f}=a.detail;this.timeSeriesError={code:o||String(r),message:n,context:f},r===429&&(this.quotaExceededOpen=!0)})}connectedCallback(){super.connectedCallback(),this.addEventListener("terra-time-series-error",i(this,m))}updated(a){super.updated(a);let r=i(this,s).task.status;if(r===p.PENDING&&this.timeSeriesError&&(this.timeSeriesError=null),r===p.ERROR&&!this.timeSeriesError){let o=i(this,s).task.error;if(o){let n=O(o);if(n.isCancellation)return;this.timeSeriesError={code:n.code,message:n.message,context:n.context}}}}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("terra-time-series-error",i(this,m))}render(){var a,r,o;return d`
1
+ import{b as j}from"./chunk.PKC6WTWN.js";import{b as _}from"./chunk.QFFE2X7G.js";import{b as O,c as W}from"./chunk.5SIVM4DR.js";import{a as R}from"./chunk.M24MU27S.js";import{a as G}from"./chunk.XOQR6J72.js";import{a as N}from"./chunk.A2QUAWVK.js";import{a as F}from"./chunk.VT3U2SB7.js";import{a as S}from"./chunk.QDFHF7LY.js";import{a as B}from"./chunk.DGWO2RFN.js";import{a as M}from"./chunk.A2XLEPQ6.js";import{c as C}from"./chunk.BWCJXCND.js";import{a as L}from"./chunk.LZMYJKUH.js";import{a as I}from"./chunk.U534PR4Z.js";import{a as q,b as A}from"./chunk.R4H27HPH.js";import{e as a,f as i,g as c,i as h}from"./chunk.INFVQQSJ.js";import{html as d,nothing as tt}from"lit";import{property as l,query as U,state as g}from"lit/decorators.js";import{TaskStatus as p}from"@lit/task";import{cache as at}from"lit/directives/cache.js";var et={fromAttribute:u=>{if(!u)return[];try{let b=JSON.parse(u);if(Array.isArray(b))return b.map(e=>String(e).trim()).filter(Boolean)}catch(b){}return u.split(",").map(b=>b.trim()).filter(Boolean)},toAttribute:u=>u!=null&&u.length?JSON.stringify(u):null},s,m,y,H,v,Y,E,z,$,J,x,K,D,Q,k,X,V,Z,P,T,t=class extends S(A){constructor(){super(...arguments);c(this,y);c(this,v);c(this,E);c(this,$);c(this,x);c(this,D);c(this,k);c(this,V);c(this,P);c(this,s,new _(this));this.variableEntryIds=[];this.showCitation=!1;this.disableAutoFetch=!1;this.mobileView=!1;this.hideToolbar=!1;this.cache=!1;this.catalogVariables=[];this.quotaExceededOpen=!1;this.timeSeriesError=null;this.showDataPointWarning=!1;this.estimatedDataPoints=0;this._authController=new F(this);this._fetchVariableTask=j(this);c(this,m,e=>{let{status:r,code:o,message:n,context:f}=e.detail;this.timeSeriesError={code:o||String(r),message:n,context:f},r===429&&(this.quotaExceededOpen=!0)})}connectedCallback(){super.connectedCallback(),this.addEventListener("terra-time-series-error",i(this,m))}updated(e){super.updated(e);let r=i(this,s).task.status;if(r===p.PENDING&&this.timeSeriesError&&(this.timeSeriesError=null),r===p.ERROR&&!this.timeSeriesError){let o=i(this,s).task.error;if(o){let n=O(o);if(n.isCancellation)return;this.timeSeriesError={code:n.code,message:n.message,context:n.context}}}}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("terra-time-series-error",i(this,m))}render(){var e,r,o;return d`
2
2
  <div class="plot-container" @mouseleave=${h(this,$,J)}>
3
3
  ${this.quotaExceededOpen?d`
4
4
  <terra-alert
@@ -24,7 +24,7 @@ import{b as S}from"./chunk.PKC6WTWN.js";import{b as _}from"./chunk.RBE5AOEF.js";
24
24
  ${this.hideToolbar?tt:at(this.catalogVariable?d`<terra-plot-toolbar
25
25
  .catalogVariable=${this.catalogVariable}
26
26
  .plot=${this.plot}
27
- .timeSeriesData=${(a=i(this,s).lastTaskValue)!=null?a:i(this,s).emptyPlotData}
27
+ .timeSeriesData=${(e=i(this,s).lastTaskValue)!=null?e:i(this,s).emptyPlotData}
28
28
  .location=${this.location}
29
29
  .startDate=${this.startDate}
30
30
  .endDate=${this.endDate}
@@ -137,4 +137,4 @@ import{b as S}from"./chunk.PKC6WTWN.js";import{b as _}from"./chunk.RBE5AOEF.js";
137
137
  </terra-button>
138
138
  </div>
139
139
  </dialog>
140
- `}};s=new WeakMap,m=new WeakMap,y=new WeakSet,H=function(){i(this,s).confirmDataPointWarning(),i(this,s).task.run()},v=new WeakSet,Y=function(){this.showDataPointWarning=!1},E=new WeakSet,z=function(){var a;console.log("Aborting data load"),(a=i(this,s).task)==null||a.abort("Cancelled time series request")},$=new WeakSet,J=function(a){var o;if(this.mobileView)return;let r=a.relatedTarget;this.contains(r)||(o=this.plotToolbar)==null||o.closeMenu()},x=new WeakSet,K=function(){var o;let a=(this.catalogVariables.length?this.catalogVariables.map(n=>n.dataFieldUnits):[(o=this.catalogVariable)==null?void 0:o.dataFieldUnits]).filter(Boolean),r=[...new Set(a)];if(r.length)return r.join(", ")},D=new WeakSet,Q=function(){var w;if(i(this,s).task.status!==p.COMPLETE)return!1;let r=(w=i(this,s).lastTaskValue)!=null?w:i(this,s).emptyPlotData;if(r.length===0)return!0;let o=r[0],n="x"in o?o.x:void 0,f="y"in o?o.y:void 0;return!!(!n||!f||Array.isArray(n)&&n.length===0||Array.isArray(f)&&f.length===0)},k=new WeakSet,X=function(){return this._fetchVariableTask.status!==p.COMPLETE?!1:!!(this.variableEntryId||this.variableEntryIds.length||this.collection&&this.variable)&&!this.catalogVariable},V=new WeakSet,Z=function(a){return W(a)},P=new WeakSet,T=function(a){if(this.disableAutoFetch)return;let r=!1;a.detail.xAxisMin&&(this.startDate=C(a.detail.xAxisMin),r=!0),a.detail.xAxisMax&&(this.endDate=C(a.detail.xAxisMax),r=!0),r&&this.dispatchEvent(new CustomEvent("terra-date-range-change",{detail:{startDate:this.startDate,endDate:this.endDate},bubbles:!0,composed:!0}))},t.styles=[q,R],t.dependencies={"terra-plot":B,"terra-loader":N,"terra-icon":L,"terra-button":M,"terra-alert":I,"terra-plot-toolbar":G},e([l({attribute:"variable-entry-id",reflect:!0})],t.prototype,"variableEntryId",2),e([l({attribute:"variable-entry-ids",converter:et})],t.prototype,"variableEntryIds",2),e([l({reflect:!0})],t.prototype,"collection",2),e([l({reflect:!0})],t.prototype,"variable",2),e([l({attribute:"start-date",reflect:!0})],t.prototype,"startDate",2),e([l({attribute:"end-date",reflect:!0})],t.prototype,"endDate",2),e([l({reflect:!0})],t.prototype,"location",2),e([l({type:Boolean,attribute:"show-citation"})],t.prototype,"showCitation",2),e([l({attribute:"application-citation"})],t.prototype,"applicationCitation",2),e([l({type:Boolean,attribute:"disable-auto-fetch"})],t.prototype,"disableAutoFetch",2),e([l({attribute:"bearer-token",reflect:!1})],t.prototype,"bearerToken",2),e([l({attribute:"mobile-view",type:Boolean,reflect:!0})],t.prototype,"mobileView",2),e([l({attribute:"hide-toolbar",type:Boolean,reflect:!0})],t.prototype,"hideToolbar",2),e([l({attribute:"product-label",reflect:!0})],t.prototype,"productLabel",2),e([l({attribute:"application-id"})],t.prototype,"applicationId",2),e([j("terra-plot")],t.prototype,"plot",2),e([j("terra-plot-toolbar")],t.prototype,"plotToolbar",2),e([g()],t.prototype,"catalogVariable",2),e([g()],t.prototype,"catalogVariables",2),e([g()],t.prototype,"quotaExceededOpen",2),e([g()],t.prototype,"timeSeriesError",2),e([g()],t.prototype,"showDataPointWarning",2),e([g()],t.prototype,"estimatedDataPoints",2);export{t as a};
140
+ `}};s=new WeakMap,m=new WeakMap,y=new WeakSet,H=function(){i(this,s).confirmDataPointWarning(),i(this,s).task.run()},v=new WeakSet,Y=function(){this.showDataPointWarning=!1},E=new WeakSet,z=function(){var e;console.log("Aborting data load"),(e=i(this,s).task)==null||e.abort("Cancelled time series request")},$=new WeakSet,J=function(e){var o;if(this.mobileView)return;let r=e.relatedTarget;this.contains(r)||(o=this.plotToolbar)==null||o.closeMenu()},x=new WeakSet,K=function(){var o;let e=(this.catalogVariables.length?this.catalogVariables.map(n=>n.dataFieldUnits):[(o=this.catalogVariable)==null?void 0:o.dataFieldUnits]).filter(Boolean),r=[...new Set(e)];if(r.length)return r.join(", ")},D=new WeakSet,Q=function(){var w;if(i(this,s).task.status!==p.COMPLETE)return!1;let r=(w=i(this,s).lastTaskValue)!=null?w:i(this,s).emptyPlotData;if(r.length===0)return!0;let o=r[0],n="x"in o?o.x:void 0,f="y"in o?o.y:void 0;return!!(!n||!f||Array.isArray(n)&&n.length===0||Array.isArray(f)&&f.length===0)},k=new WeakSet,X=function(){return this._fetchVariableTask.status!==p.COMPLETE?!1:!!(this.variableEntryId||this.variableEntryIds.length||this.collection&&this.variable)&&!this.catalogVariable},V=new WeakSet,Z=function(e){return W(e)},P=new WeakSet,T=function(e){if(this.disableAutoFetch)return;let r=!1;e.detail.xAxisMin&&(this.startDate=C(e.detail.xAxisMin),r=!0),e.detail.xAxisMax&&(this.endDate=C(e.detail.xAxisMax),r=!0),r&&this.dispatchEvent(new CustomEvent("terra-date-range-change",{detail:{startDate:this.startDate,endDate:this.endDate},bubbles:!0,composed:!0}))},t.styles=[q,R],t.dependencies={"terra-plot":N,"terra-loader":B,"terra-icon":L,"terra-button":M,"terra-alert":I,"terra-plot-toolbar":G},a([l({attribute:"variable-entry-id",reflect:!0})],t.prototype,"variableEntryId",2),a([l({attribute:"variable-entry-ids",converter:et})],t.prototype,"variableEntryIds",2),a([l({reflect:!0})],t.prototype,"collection",2),a([l({reflect:!0})],t.prototype,"variable",2),a([l({attribute:"start-date",reflect:!0})],t.prototype,"startDate",2),a([l({attribute:"end-date",reflect:!0})],t.prototype,"endDate",2),a([l({reflect:!0})],t.prototype,"location",2),a([l({type:Boolean,attribute:"show-citation"})],t.prototype,"showCitation",2),a([l({attribute:"application-citation"})],t.prototype,"applicationCitation",2),a([l({type:Boolean,attribute:"disable-auto-fetch"})],t.prototype,"disableAutoFetch",2),a([l({attribute:"bearer-token",reflect:!1})],t.prototype,"bearerToken",2),a([l({attribute:"mobile-view",type:Boolean,reflect:!0})],t.prototype,"mobileView",2),a([l({attribute:"hide-toolbar",type:Boolean,reflect:!0})],t.prototype,"hideToolbar",2),a([l({attribute:"product-label",reflect:!0})],t.prototype,"productLabel",2),a([l({attribute:"application-id"})],t.prototype,"applicationId",2),a([l({type:Boolean})],t.prototype,"cache",2),a([l({attribute:"job-id"})],t.prototype,"jobId",2),a([U("terra-plot")],t.prototype,"plot",2),a([U("terra-plot-toolbar")],t.prototype,"plotToolbar",2),a([g()],t.prototype,"catalogVariable",2),a([g()],t.prototype,"catalogVariables",2),a([g()],t.prototype,"quotaExceededOpen",2),a([g()],t.prototype,"timeSeriesError",2),a([g()],t.prototype,"showDataPointWarning",2),a([g()],t.prototype,"estimatedDataPoints",2);export{t as a};
@@ -1 +1 @@
1
- import{a as e}from"./chunk.NORSDIMU.js";import*as r from"react";import{createComponent as t}from"@lit/react";var a="terra-stepper";e.define("terra-stepper");var p=t({tagName:a,elementClass:e,react:r,events:{},displayName:"TerraStepper"}),f=p;export{f as a};
1
+ import{a as e}from"./chunk.OJL2JDC7.js";import*as r from"react";import{createComponent as t}from"@lit/react";var a="terra-stepper";e.define("terra-stepper");var p=t({tagName:a,elementClass:e,react:r,events:{},displayName:"TerraStepper"}),f=p;export{f as a};
@@ -1 +1 @@
1
- import{a as e}from"./chunk.JLS55DD4.js";import*as r from"react";import{createComponent as t}from"@lit/react";import"@lit/react";var a="terra-file-upload";e.define("terra-file-upload");var n=t({tagName:a,elementClass:e,react:r,events:{onTerraChange:"terra-change",onTerraFocus:"terra-focus",onTerraBlur:"terra-blur"},displayName:"TerraFileUpload"}),l=n;export{l as a};
1
+ import{a as e}from"./chunk.UG37L2HK.js";import*as r from"react";import{createComponent as t}from"@lit/react";import"@lit/react";var a="terra-file-upload";e.define("terra-file-upload");var n=t({tagName:a,elementClass:e,react:r,events:{onTerraChange:"terra-change",onTerraFocus:"terra-focus",onTerraBlur:"terra-blur"},displayName:"TerraFileUpload"}),l=n;export{l as a};
@@ -1,4 +1,4 @@
1
- import{a as r}from"./chunk.BQUJORYD.js";import{a as f}from"./chunk.K7UMCNCF.js";import{a as m}from"./chunk.BWAKPSV4.js";import{a as d}from"./chunk.IZZFNAC5.js";import{a as g}from"./chunk.7I5677S3.js";import{a as c}from"./chunk.5CBU7CVX.js";import{a as h,b as u}from"./chunk.OILCN37O.js";import{e as o}from"./chunk.INFVQQSJ.js";import{html as l,nothing as p}from"lit";import{property as s,query as v,state as w}from"lit/decorators.js";import{createRef as _,ref as y}from"lit/directives/ref.js";var a=class extends u{constructor(){super(...arguments);this.minZoom=0;this.maxZoom=23;this.zoom=1;this.hasNavigation=!0;this.hasCoordTracker=!0;this.hasShapeSelector=!1;this.showBoundingBoxSelection=!0;this.showPointSelection=!0;this.initialValue="";this.hideLabel=!1;this.label="Select Region";this.spatialConstraints="-180, -90, 180, 90";this.isExpanded=!1;this.worldWrap=!1;this.inline=!1;this.showMapOnFocus=!1;this.urlState=!1;this.helpText="";this.error="";this.dropdownRef=_()}set hideBoundingBoxSelection(t){console.warn('"hide-bounding-box-selection" is deprecated. Use "show-bounding-box-selection" instead.'),this.showBoundingBoxSelection=!t}get hideBoundingBoxSelection(){return!this.showBoundingBoxSelection}set hidePointSelection(t){console.warn('"hide-point-selection" is deprecated. Use "show-point-selection" instead.'),this.showPointSelection=!t}get hidePointSelection(){return!this.showPointSelection}get _allowedTypes(){return{allowPoint:this.showPointSelection,allowBbox:this.showBoundingBoxSelection}}firstUpdated(){let e=new URLSearchParams(window.location.search).get("spatial"),i=this.urlState&&e?e:this.initialValue;i&&(typeof i=="string"?this._applyValue(i,{emit:!1}):this._commit(r.serialize(i),i))}setValue(t){this._applyValue(t,{emit:!0})}clear(){this._clearValue()}open(){var t;this.inline||(t=this.dropdownRef.value)==null||t.show()}close(){var t;this.inline||(t=this.dropdownRef.value)==null||t.hide()}setOpen(t){t?this.open():this.close()}_input(){var t;this.error="",(t=this.terraInput)==null||t.setCustomValidity("")}_change(){var e,i;this._input();let t=(i=(e=this.terraInput)==null?void 0:e.value)!=null?i:"";if(!t.trim()){this._clearValue();return}this._validateAndCommit(t)}_keydown(t){var e,i,n;if(t.key===" "){t.stopPropagation();return}t.key==="Enter"&&(t.preventDefault(),this._validateAndCommit((i=(e=this.terraInput)==null?void 0:e.value)!=null?i:""),(n=this.terraInput)==null||n.blur())}_blur(){var t,e;this._validateAndCommit((e=(t=this.terraInput)==null?void 0:t.value)!=null?e:"")}_focus(){var t;this.showMapOnFocus&&!this.inline&&((t=this.dropdownRef.value)==null||t.show())}_click(t){t.stopPropagation(),this.inline||(this.isExpanded?this.close():this.open())}_handleMapChange(t){let e=t.detail;if(e.cause==="clear"){this._clearValue();return}if(e.cause!=="draw")return;let i;if(e.type==="bbox"&&e.bounds)i=e.bounds;else if(e.type==="point"&&e.latLng)i=e.latLng;else{this.emit("terra-map-change",{detail:e});return}let n=r.validateConstraints(i,this.spatialConstraints);if(n){this.error=n,this.mapValue=void 0;return}let b=r.serialize(i);this._commit(b,i)}handleDropdownShow(){this.isExpanded=!0}handleDropdownHide(){this.isExpanded=!1}_validateAndCommit(t){var i;if(!t.trim()){this._clearValue();return}let e=r.validate(t,this._allowedTypes,this.spatialConstraints);if(!e.ok){this.error=e.error,(i=this.terraInput)==null||i.setCustomValidity(e.error);return}this._commit(e.serialized,e.value)}_applyValue(t,{emit:e}){if(typeof t!="string"){let n=r.serialize(t);this.error="",this.mapValue=n,this.terraInput&&(this.terraInput.value=n),e&&this._emitChange(t),this._updateURLParam(n);return}let i=r.validate(t,this._allowedTypes,this.spatialConstraints);if(!i.ok){this.error=i.error;return}this.error="",this.mapValue=i.serialized,this.terraInput&&(this.terraInput.value=i.serialized),e&&this._emitChange(i.value),this._updateURLParam(i.serialized)}_commit(t,e){var i;this.error="",(i=this.terraInput)==null||i.setCustomValidity(""),this.mapValue=t,this.terraInput&&(this.terraInput.value=t),this.initialValue=t,this._updateURLParam(t),this._emitChange(e)}_clearValue(){var t;this.error="",this.mapValue=void 0,(t=this.terraInput)==null||t.setCustomValidity(""),this.terraInput&&(this.terraInput.value=""),this._updateURLParam(null)}_emitChange(t){t instanceof d?this.emit("terra-map-change",{detail:{cause:"draw",type:"point",latLng:t}}):this.emit("terra-map-change",{detail:{cause:"draw",type:"bbox",bounds:t}})}_updateURLParam(t){if(!this.urlState)return;let e=new URL(window.location.href);t?e.searchParams.set("spatial",t):e.searchParams.delete("spatial"),window.history.replaceState({},"",e.toString())}renderMap(){return l`<terra-map
1
+ import{a as r}from"./chunk.BQUJORYD.js";import{a as f}from"./chunk.K7UMCNCF.js";import{a as m}from"./chunk.U5T6HVUD.js";import{a as d}from"./chunk.IZZFNAC5.js";import{a as g}from"./chunk.NLPXUCOV.js";import{a as c}from"./chunk.QRVD7RXJ.js";import{a as h,b as u}from"./chunk.R4H27HPH.js";import{e as o}from"./chunk.INFVQQSJ.js";import{html as l,nothing as p}from"lit";import{property as s,query as v,state as w}from"lit/decorators.js";import{createRef as _,ref as y}from"lit/directives/ref.js";var a=class extends u{constructor(){super(...arguments);this.minZoom=0;this.maxZoom=23;this.zoom=1;this.hasNavigation=!0;this.hasCoordTracker=!0;this.hasShapeSelector=!1;this.showBoundingBoxSelection=!0;this.showPointSelection=!0;this.initialValue="";this.hideLabel=!1;this.label="Select Region";this.spatialConstraints="-180, -90, 180, 90";this.isExpanded=!1;this.worldWrap=!1;this.inline=!1;this.showMapOnFocus=!1;this.urlState=!1;this.helpText="";this.error="";this.dropdownRef=_()}set hideBoundingBoxSelection(t){console.warn('"hide-bounding-box-selection" is deprecated. Use "show-bounding-box-selection" instead.'),this.showBoundingBoxSelection=!t}get hideBoundingBoxSelection(){return!this.showBoundingBoxSelection}set hidePointSelection(t){console.warn('"hide-point-selection" is deprecated. Use "show-point-selection" instead.'),this.showPointSelection=!t}get hidePointSelection(){return!this.showPointSelection}get _allowedTypes(){return{allowPoint:this.showPointSelection,allowBbox:this.showBoundingBoxSelection}}firstUpdated(){let e=new URLSearchParams(window.location.search).get("spatial"),i=this.urlState&&e?e:this.initialValue;i&&(typeof i=="string"?this._applyValue(i,{emit:!1}):this._commit(r.serialize(i),i))}setValue(t){this._applyValue(t,{emit:!0})}clear(){this._clearValue()}open(){var t;this.inline||(t=this.dropdownRef.value)==null||t.show()}close(){var t;this.inline||(t=this.dropdownRef.value)==null||t.hide()}setOpen(t){t?this.open():this.close()}_input(){var t;this.error="",(t=this.terraInput)==null||t.setCustomValidity("")}_change(){var e,i;this._input();let t=(i=(e=this.terraInput)==null?void 0:e.value)!=null?i:"";if(!t.trim()){this._clearValue();return}this._validateAndCommit(t)}_keydown(t){var e,i,n;if(t.key===" "){t.stopPropagation();return}t.key==="Enter"&&(t.preventDefault(),this._validateAndCommit((i=(e=this.terraInput)==null?void 0:e.value)!=null?i:""),(n=this.terraInput)==null||n.blur())}_blur(){var t,e;this._validateAndCommit((e=(t=this.terraInput)==null?void 0:t.value)!=null?e:"")}_focus(){var t;this.showMapOnFocus&&!this.inline&&((t=this.dropdownRef.value)==null||t.show())}_click(t){t.stopPropagation(),this.inline||(this.isExpanded?this.close():this.open())}_handleMapChange(t){let e=t.detail;if(e.cause==="clear"){this._clearValue();return}if(e.cause!=="draw")return;let i;if(e.type==="bbox"&&e.bounds)i=e.bounds;else if(e.type==="point"&&e.latLng)i=e.latLng;else{this.emit("terra-map-change",{detail:e});return}let n=r.validateConstraints(i,this.spatialConstraints);if(n){this.error=n,this.mapValue=void 0;return}let b=r.serialize(i);this._commit(b,i)}handleDropdownShow(){this.isExpanded=!0}handleDropdownHide(){this.isExpanded=!1}_validateAndCommit(t){var i;if(!t.trim()){this._clearValue();return}let e=r.validate(t,this._allowedTypes,this.spatialConstraints);if(!e.ok){this.error=e.error,(i=this.terraInput)==null||i.setCustomValidity(e.error);return}this._commit(e.serialized,e.value)}_applyValue(t,{emit:e}){if(typeof t!="string"){let n=r.serialize(t);this.error="",this.mapValue=n,this.terraInput&&(this.terraInput.value=n),e&&this._emitChange(t),this._updateURLParam(n);return}let i=r.validate(t,this._allowedTypes,this.spatialConstraints);if(!i.ok){this.error=i.error;return}this.error="",this.mapValue=i.serialized,this.terraInput&&(this.terraInput.value=i.serialized),e&&this._emitChange(i.value),this._updateURLParam(i.serialized)}_commit(t,e){var i;this.error="",(i=this.terraInput)==null||i.setCustomValidity(""),this.mapValue=t,this.terraInput&&(this.terraInput.value=t),this.initialValue=t,this._updateURLParam(t),this._emitChange(e)}_clearValue(){var t;this.error="",this.mapValue=void 0,(t=this.terraInput)==null||t.setCustomValidity(""),this.terraInput&&(this.terraInput.value=""),this._updateURLParam(null)}_emitChange(t){t instanceof d?this.emit("terra-map-change",{detail:{cause:"draw",type:"point",latLng:t}}):this.emit("terra-map-change",{detail:{cause:"draw",type:"bbox",bounds:t}})}_updateURLParam(t){if(!this.urlState)return;let e=new URL(window.location.href);t?e.searchParams.set("spatial",t):e.searchParams.delete("spatial"),window.history.replaceState({},"",e.toString())}renderMap(){return l`<terra-map
2
2
  class="${this.inline?"inline":""}"
3
3
  exportparts="map"
4
4
  min-zoom=${this.minZoom}
@@ -1 +1 @@
1
- import{a as e}from"./chunk.6XF647QW.js";import*as t from"react";import{createComponent as r}from"@lit/react";var o="terra-plot";e.define("terra-plot");var a=r({tagName:o,elementClass:e,react:t,events:{},displayName:"TerraPlot"}),c=a;export{c as a};
1
+ import{a as e}from"./chunk.A2QUAWVK.js";import*as t from"react";import{createComponent as r}from"@lit/react";var o="terra-plot";e.define("terra-plot");var a=r({tagName:o,elementClass:e,react:t,events:{},displayName:"TerraPlot"}),c=a;export{c as a};
@@ -1 +1 @@
1
- import{a as e}from"./chunk.MJVP52R5.js";import*as t from"react";import{createComponent as r}from"@lit/react";var m="terra-menu-item";e.define("terra-menu-item");var a=r({tagName:m,elementClass:e,react:t,events:{},displayName:"TerraMenuItem"}),c=a;export{c as a};
1
+ import{a as e}from"./chunk.4HRYGPYC.js";import*as t from"react";import{createComponent as r}from"@lit/react";var m="terra-menu-item";e.define("terra-menu-item");var a=r({tagName:m,elementClass:e,react:t,events:{},displayName:"TerraMenuItem"}),c=a;export{c as a};
@@ -1,4 +1,4 @@
1
- import{a as l}from"./chunk.Z4MRB553.js";import{a as i}from"./chunk.ATR343ZS.js";import{a as r,b as o}from"./chunk.OILCN37O.js";import{e}from"./chunk.INFVQQSJ.js";import{html as p}from"lit";import{property as s}from"lit/decorators.js";var t=class extends o{constructor(){super(...arguments);this.rows=1;this.effect="pulse";this.variableWidths=!0}render(){return p`
1
+ import{a as l}from"./chunk.Z4MRB553.js";import{a as i}from"./chunk.ATR343ZS.js";import{a as r,b as o}from"./chunk.R4H27HPH.js";import{e}from"./chunk.INFVQQSJ.js";import{html as p}from"lit";import{property as s}from"lit/decorators.js";var t=class extends o{constructor(){super(...arguments);this.rows=1;this.effect="pulse";this.variableWidths=!0}render(){return p`
2
2
  ${new Array(parseInt(this.rows.toString())).fill(0).map(()=>p` <div
3
3
  part="base"
4
4
  class=${`skeleton ${this.effect==="pulse"?"skeleton--pulse":""} ${this.effect==="sheen"?"skeleton--sheen":""}`}