@esri/calcite-components 3.3.0-next.39 → 3.3.0-next.40

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 (348) hide show
  1. package/THIRD-PARTY-LICENSES.md +68 -68
  2. package/dist/calcite/{TSJ5YZG6.js → 247VBIVQ.js} +2 -2
  3. package/dist/calcite/{LVY4EPIS.js → 2AJFYYZC.js} +1 -1
  4. package/dist/calcite/{TOSBACNO.js → 2BRQLIVB.js} +2 -2
  5. package/dist/calcite/{EIZL3K5W.js → 2E7OLLDH.js} +2 -2
  6. package/dist/calcite/{B6KKPY6O.js → 2JRDJRT2.js} +2 -2
  7. package/dist/calcite/{3SZZH7CV.js → 2PIXSVS2.js} +2 -2
  8. package/dist/calcite/{P7TULRPU.js → 336LSAGD.js} +2 -2
  9. package/dist/calcite/{CN4LQWTH.js → 36NQCFQD.js} +2 -2
  10. package/dist/calcite/{WYWQJ6AG.js → 3SURKTHT.js} +1 -1
  11. package/dist/calcite/{BAXFYNJB.js → 4DFDIWCH.js} +2 -2
  12. package/dist/calcite/{U4GORT74.js → 4DVYZN7I.js} +2 -2
  13. package/dist/calcite/{PSVDHTMG.js → 4EVWJDFQ.js} +2 -2
  14. package/dist/calcite/{RB4ZARU4.js → 4KIQTMEL.js} +2 -2
  15. package/dist/calcite/{Q7YGM466.js → 4LIP3AUK.js} +2 -2
  16. package/dist/calcite/{6K4KUJX6.js → 577KZXPP.js} +2 -2
  17. package/dist/calcite/5G4L6BNQ.js +4 -0
  18. package/dist/calcite/{ER2KO5LJ.js → 5J4OGZZX.js} +2 -2
  19. package/dist/calcite/{IP2E5TVE.js → 5J6SVOLA.js} +2 -2
  20. package/dist/calcite/{VMPQBN57.js → 5QCW74CD.js} +2 -2
  21. package/dist/calcite/{X2KQOWVD.js → 5QYXLGWS.js} +2 -2
  22. package/dist/calcite/{FTA5D6BR.js → 5T3FODEQ.js} +2 -2
  23. package/dist/calcite/{7XTSL7SB.js → 5VAQPX3M.js} +2 -2
  24. package/dist/calcite/{XZWMFMSK.js → 5VCTDFNC.js} +1 -1
  25. package/dist/calcite/5YHF7FGD.js +4 -0
  26. package/dist/calcite/{AT6YGS2G.js → 65LFND6P.js} +2 -2
  27. package/dist/calcite/{6W5R7F66.js → 67F2E3EL.js} +1 -1
  28. package/dist/calcite/{4WP2HVKK.js → 6BPF45LT.js} +2 -2
  29. package/dist/calcite/{OOCD73VK.js → 75EDWSE6.js} +2 -2
  30. package/dist/calcite/{3H2JPWWN.js → 7FIZSNBC.js} +2 -2
  31. package/dist/calcite/{TPMBXDVA.js → 7KAGDILN.js} +2 -2
  32. package/dist/calcite/{OPDI7JQL.js → 7KRF6Q23.js} +2 -2
  33. package/dist/calcite/{C7R4UJAX.js → 7NKWCQPE.js} +2 -2
  34. package/dist/calcite/{6WEXWS3A.js → 7OYNJUON.js} +2 -2
  35. package/dist/calcite/{ZXJCMVH2.js → 7RTVA5Z6.js} +1 -1
  36. package/dist/calcite/{ZZRNURIO.js → 7ULRI6DB.js} +2 -2
  37. package/dist/calcite/AD2USMX2.js +4 -0
  38. package/dist/calcite/{PUJNSQBH.js → AI3STNWH.js} +2 -2
  39. package/dist/calcite/{P7ZXKH5O.js → APDHEI43.js} +2 -2
  40. package/dist/calcite/{TPPJ44N7.js → APIS3ACU.js} +2 -2
  41. package/dist/calcite/{Z6X2LFRI.js → ASYXAHHL.js} +2 -2
  42. package/dist/calcite/{7AMASGLP.js → B32DWVN6.js} +2 -2
  43. package/dist/calcite/{K5P33RSF.js → BDSOTU7H.js} +2 -2
  44. package/dist/calcite/{QIEHGXRO.js → BL7IGTJA.js} +2 -2
  45. package/dist/calcite/{YSHYC6IK.js → BPM5YZLB.js} +2 -2
  46. package/dist/calcite/{QTTP5DDG.js → BV2LEDWP.js} +2 -2
  47. package/dist/calcite/{7HB55Z45.js → BYRH672F.js} +2 -2
  48. package/dist/calcite/{NNDHYFH7.js → C2L55AH3.js} +2 -2
  49. package/dist/calcite/{AFDCFCE6.js → CGDE6H7S.js} +2 -2
  50. package/dist/calcite/{LZCZLIWH.js → CIUU375M.js} +2 -2
  51. package/dist/calcite/{JQLK4MTY.js → CQLGPE2R.js} +2 -2
  52. package/dist/calcite/{KNXB6KGU.js → CQTZCSEN.js} +2 -2
  53. package/dist/calcite/{D27AMML7.js → CV3FPVW7.js} +2 -2
  54. package/dist/calcite/{GHOSV45T.js → DBDA4OYQ.js} +2 -2
  55. package/dist/calcite/{BKM5FU5R.js → DLVAG5LB.js} +1 -1
  56. package/dist/calcite/{G2RJL5UQ.js → DLXQLQOK.js} +2 -2
  57. package/dist/calcite/{37QYV6W3.js → DOEGENBU.js} +2 -2
  58. package/dist/calcite/{5XMFSGA2.js → DT6LKXJS.js} +1 -1
  59. package/dist/calcite/{J5RHOCUT.js → E2T7MFFY.js} +2 -2
  60. package/dist/calcite/{UIY4MI4U.js → E7HIEY6A.js} +2 -2
  61. package/dist/calcite/EAWRBSSO.js +4 -0
  62. package/dist/calcite/{6D46F2NN.js → EBYLWV3G.js} +2 -2
  63. package/dist/calcite/{XWJMSTHV.js → F4SOBJDM.js} +2 -2
  64. package/dist/calcite/{2ESJPDLW.js → FE4HCJQB.js} +2 -2
  65. package/dist/calcite/{ECKWQ6EN.js → FFEKXZMX.js} +2 -2
  66. package/dist/calcite/{S54LJVE6.js → FLW5LDYN.js} +1 -1
  67. package/dist/calcite/{5MV5AKEG.js → FSPU7WUT.js} +2 -2
  68. package/dist/calcite/{5EAFVMM5.js → FV6ZCDSW.js} +2 -2
  69. package/dist/calcite/{JNDP37AJ.js → FVB22WFO.js} +1 -1
  70. package/dist/calcite/{JCVPPGDF.js → GAQJMVHS.js} +2 -2
  71. package/dist/calcite/{BUPP3FOT.js → GIUR64U3.js} +2 -2
  72. package/dist/calcite/{7HNHYVJ3.js → GJEYRJWH.js} +2 -2
  73. package/dist/calcite/{KID4N5NQ.js → GKZ4C5SQ.js} +2 -2
  74. package/dist/calcite/{LJTPFFIG.js → H4CPBBU5.js} +1 -1
  75. package/dist/calcite/{NPHQOMNM.js → HAJGLNWB.js} +2 -2
  76. package/dist/calcite/{QQOYWE4C.js → HBYBPUKX.js} +2 -2
  77. package/dist/calcite/{UPPZUPP7.js → HDXYC2QQ.js} +2 -2
  78. package/dist/calcite/{ZKME4BDG.js → HFAQGFT6.js} +2 -2
  79. package/dist/calcite/{HPDFKN3G.js → HOI3EGBO.js} +2 -2
  80. package/dist/calcite/{Q73ABVEV.js → I6JCKF7Y.js} +2 -2
  81. package/dist/calcite/{NGBZJLQ5.js → IDNERRG2.js} +2 -2
  82. package/dist/calcite/{POGOPODN.js → IJHLFWIU.js} +2 -2
  83. package/dist/calcite/{T4IQSDBS.js → IM7CBEIE.js} +2 -2
  84. package/dist/calcite/{BZIM3BRJ.js → IMSNEGJR.js} +2 -2
  85. package/dist/calcite/{T72ZEY3N.js → IWSN7UMF.js} +2 -2
  86. package/dist/calcite/{FTISOYCJ.js → IYDDX6QW.js} +2 -2
  87. package/dist/calcite/{X3BQYVBX.js → J5K4WDJS.js} +2 -2
  88. package/dist/calcite/{WT7TPV7L.js → JE6EQJIN.js} +2 -2
  89. package/dist/calcite/{NONWAHGW.js → JGHHZI46.js} +1 -1
  90. package/dist/calcite/{MUM5IWL4.js → JLT57HRD.js} +2 -2
  91. package/dist/calcite/{KTTL5P55.js → JRNW2PXY.js} +2 -2
  92. package/dist/calcite/{7FOJHRX2.js → K6WDL4EI.js} +2 -2
  93. package/dist/calcite/{KL22AZPQ.js → K7WTA7GB.js} +2 -2
  94. package/dist/calcite/{7DVH6HJA.js → KKPFCGWM.js} +2 -2
  95. package/dist/calcite/{YUER5DEN.js → KXJLRDUN.js} +1 -1
  96. package/dist/calcite/{LF7QGE5R.js → LDQJSA6G.js} +1 -1
  97. package/dist/calcite/{MLOU4KFG.js → LFBUCRTS.js} +2 -2
  98. package/dist/calcite/{DJQIZK3V.js → LFPQKVUG.js} +2 -2
  99. package/dist/calcite/{7OVMI4GL.js → LQIC22PJ.js} +2 -2
  100. package/dist/calcite/{RTMF75NN.js → LURDPGVU.js} +2 -2
  101. package/dist/calcite/{Q45ECUPR.js → M2FBADM5.js} +2 -2
  102. package/dist/calcite/{XI6UMUJM.js → M5E2G6IE.js} +1 -1
  103. package/dist/calcite/{SRQUDWB5.js → MALCPYT6.js} +2 -2
  104. package/dist/calcite/{NDA7SEDH.js → MEIZM3GE.js} +2 -2
  105. package/dist/calcite/{NRUZNC7I.js → N6DGWUS2.js} +2 -2
  106. package/dist/calcite/{DK6ZBVVW.js → NABTW7FN.js} +2 -2
  107. package/dist/calcite/{HPE4RQE6.js → NMH2WJCY.js} +2 -2
  108. package/dist/calcite/{X66H5QMS.js → NPAS455J.js} +1 -1
  109. package/dist/calcite/{4JLBTAWX.js → NT2VCBZE.js} +2 -2
  110. package/dist/calcite/{Y6JKDYAF.js → NZOAVOJN.js} +2 -2
  111. package/dist/calcite/{HOLPGWI4.js → O7DCXGGQ.js} +2 -2
  112. package/dist/calcite/{CBRQ5I23.js → OCP37IDS.js} +2 -2
  113. package/dist/calcite/{LX2CSZTO.js → OXSU64CT.js} +2 -2
  114. package/dist/calcite/{IXHWQFLW.js → OYN6FQDH.js} +2 -2
  115. package/dist/calcite/{TMBRZKBZ.js → P6J3DC2P.js} +2 -2
  116. package/dist/calcite/{LBWVHREV.js → PIBJVOZ2.js} +2 -2
  117. package/dist/calcite/{NJTREGBD.js → POHQPTHW.js} +2 -2
  118. package/dist/calcite/{2CDKJDO3.js → PQDYUPWP.js} +2 -2
  119. package/dist/calcite/{6DH3MS4F.js → PTJN4IZH.js} +2 -2
  120. package/dist/calcite/{7QIXQSUH.js → Q2IDBJGL.js} +2 -2
  121. package/dist/calcite/{WOTV462K.js → Q3EW2FMV.js} +2 -2
  122. package/dist/calcite/{KSDILR4T.js → QB55TDUW.js} +2 -2
  123. package/dist/calcite/{HPJU5DXQ.js → QD7JYHKQ.js} +2 -2
  124. package/dist/calcite/{JHS3EGW3.js → QIFZG3GY.js} +1 -1
  125. package/dist/calcite/{Y73KPO4A.js → QIVFG2UN.js} +2 -2
  126. package/dist/calcite/{DN66YXNF.js → QMDTFKC3.js} +2 -2
  127. package/dist/calcite/{A5OWWLW3.js → QQUMULND.js} +2 -2
  128. package/dist/calcite/{N775SPNL.js → QVIYJG53.js} +2 -2
  129. package/dist/calcite/{WSKMYSCV.js → RCBDN4XC.js} +2 -2
  130. package/dist/calcite/{72IBY3EV.js → RDRI7R4K.js} +2 -2
  131. package/dist/calcite/{UJZCD47N.js → RJGBLXXW.js} +2 -2
  132. package/dist/calcite/{L2Z3WP2T.js → RMZALKPO.js} +2 -2
  133. package/dist/calcite/{7FLAES3Z.js → RWXSHEVS.js} +1 -1
  134. package/dist/calcite/{7SV36NYG.js → RXFZMRZF.js} +2 -2
  135. package/dist/calcite/{KUJUAY5Z.js → RZRWKVIV.js} +2 -2
  136. package/dist/calcite/{SVJWFNM7.js → S2F2FCVX.js} +2 -2
  137. package/dist/calcite/{775XIYJM.js → S7GT4XGA.js} +1 -1
  138. package/dist/calcite/{3Q7AZR7D.js → SP4EL6LR.js} +1 -1
  139. package/dist/calcite/{RGL3K2UI.js → SRVLA4LJ.js} +2 -2
  140. package/dist/calcite/{X55Q6JGC.js → ST545GJ5.js} +2 -2
  141. package/dist/calcite/{XWWGLONU.js → SZ4C6IVU.js} +2 -2
  142. package/dist/calcite/{NSM4W4GH.js → TB3LQW5M.js} +2 -2
  143. package/dist/calcite/{RZOTFWFP.js → TCNLRXWN.js} +2 -2
  144. package/dist/calcite/{OUTZAE6Q.js → TJRN3LOU.js} +2 -2
  145. package/dist/calcite/{KNLTM76P.js → TO23EHT7.js} +2 -2
  146. package/dist/calcite/{KQ2OHM5K.js → TPMOJ7XD.js} +2 -2
  147. package/dist/calcite/{27LQWVTA.js → TTV5GQC3.js} +2 -2
  148. package/dist/calcite/{SCAZGZLQ.js → TXQXPW4M.js} +2 -2
  149. package/dist/calcite/{T26BLM5F.js → U2I3ICWJ.js} +2 -2
  150. package/dist/calcite/{VFGBXM4E.js → U6RZD4OF.js} +2 -2
  151. package/dist/calcite/{YOQKLNDE.js → UB2RNTJ5.js} +2 -2
  152. package/dist/calcite/{BE5DDYXT.js → UOC7DMPC.js} +1 -1
  153. package/dist/calcite/{NJLFMWLH.js → VBAJFOG2.js} +2 -2
  154. package/dist/calcite/{WVBNXUIZ.js → VMDXW5CU.js} +2 -2
  155. package/dist/calcite/{RYOA6SCR.js → VMMW24P6.js} +2 -2
  156. package/dist/calcite/{SQYSW4LO.js → VP7KFCYJ.js} +2 -2
  157. package/dist/calcite/{C7MYHUGP.js → VQ5NS4YJ.js} +2 -2
  158. package/dist/calcite/{YL53P5BZ.js → WIJRCBXI.js} +2 -2
  159. package/dist/calcite/{NDBWXYQC.js → WQOJ2O2F.js} +2 -2
  160. package/dist/calcite/{K4NHJWFX.js → WRRLQUKF.js} +1 -1
  161. package/dist/calcite/{4CI72WKG.js → XIH7NI3D.js} +2 -2
  162. package/dist/calcite/{6IZ3NEAK.js → XIWEGESK.js} +2 -2
  163. package/dist/calcite/{XLGA6FDX.js → XIYRCY7H.js} +2 -2
  164. package/dist/calcite/{JWM2W2DI.js → XTQ3I2UV.js} +2 -2
  165. package/dist/calcite/{KBOKLL3O.js → XYFH6V6H.js} +2 -2
  166. package/dist/calcite/{MLJALX54.js → YB5CNL65.js} +2 -2
  167. package/dist/calcite/{6IWRE5TD.js → YMCZI2BQ.js} +2 -2
  168. package/dist/calcite/{VYOBXAGY.js → YMLF7YPK.js} +2 -2
  169. package/dist/calcite/{IFNB72NL.js → YQL4QOYM.js} +1 -1
  170. package/dist/calcite/{3WFOVRPG.js → YQZYJO3M.js} +2 -2
  171. package/dist/calcite/{H6GDUJ2W.js → ZFAWTGYE.js} +2 -2
  172. package/dist/calcite/{5QHD3MPU.js → ZHHY5YCS.js} +2 -2
  173. package/dist/calcite/{VF3VXRFN.js → ZLQYT3RV.js} +2 -2
  174. package/dist/calcite/ZTZG2W3M.js +4 -0
  175. package/dist/calcite/calcite.esm.js +2 -2
  176. package/dist/chunks/ExpandToggle.js +1 -1
  177. package/dist/chunks/FloatingArrow.js +1 -1
  178. package/dist/chunks/Heading.js +1 -1
  179. package/dist/chunks/Validation.js +1 -1
  180. package/dist/chunks/XButton.js +1 -1
  181. package/dist/chunks/_sortable.js +1 -1
  182. package/dist/chunks/array.js +1 -1
  183. package/dist/chunks/component.js +1 -1
  184. package/dist/chunks/core.js +1 -1
  185. package/dist/chunks/date.js +1 -1
  186. package/dist/chunks/dom.js +1 -1
  187. package/dist/chunks/dynamicClasses.js +1 -1
  188. package/dist/chunks/filter.js +1 -1
  189. package/dist/chunks/floating-ui.js +5 -4
  190. package/dist/chunks/form.js +1 -1
  191. package/dist/chunks/global.js +1 -1
  192. package/dist/chunks/guid.js +1 -1
  193. package/dist/chunks/input.js +1 -1
  194. package/dist/chunks/interact.min.js +1 -1
  195. package/dist/chunks/interactive.js +1 -1
  196. package/dist/chunks/key.js +1 -1
  197. package/dist/chunks/label.js +1 -1
  198. package/dist/chunks/locale.js +1 -1
  199. package/dist/chunks/logger.js +1 -1
  200. package/dist/chunks/math.js +1 -1
  201. package/dist/chunks/observers.js +1 -1
  202. package/dist/chunks/openCloseComponent.js +1 -1
  203. package/dist/chunks/resources.js +1 -1
  204. package/dist/chunks/resources2.js +1 -1
  205. package/dist/chunks/resources3.js +1 -1
  206. package/dist/chunks/resources4.js +1 -1
  207. package/dist/chunks/resources5.js +1 -1
  208. package/dist/chunks/resources6.js +1 -1
  209. package/dist/chunks/resources7.js +1 -1
  210. package/dist/chunks/responsive.js +1 -1
  211. package/dist/chunks/runtime.js +5 -5
  212. package/dist/chunks/sortableComponent.js +1 -1
  213. package/dist/chunks/text.js +1 -1
  214. package/dist/chunks/useCancelable.js +1 -1
  215. package/dist/chunks/useFocusTrap.js +1 -1
  216. package/dist/chunks/usePreventDocumentScroll.js +1 -1
  217. package/dist/chunks/useT9n.js +1 -1
  218. package/dist/chunks/useTime.js +1 -1
  219. package/dist/chunks/utils.js +1 -1
  220. package/dist/chunks/utils2.js +1 -1
  221. package/dist/chunks/utils3.js +1 -1
  222. package/dist/chunks/utils4.js +1 -1
  223. package/dist/components/calcite-accordion/customElement.js +1 -1
  224. package/dist/components/calcite-accordion-item/customElement.js +1 -1
  225. package/dist/components/calcite-action/customElement.js +1 -1
  226. package/dist/components/calcite-action-bar/customElement.js +1 -1
  227. package/dist/components/calcite-action-group/customElement.js +1 -1
  228. package/dist/components/calcite-action-menu/customElement.js +1 -1
  229. package/dist/components/calcite-action-pad/customElement.js +1 -1
  230. package/dist/components/calcite-alert/customElement.js +1 -1
  231. package/dist/components/calcite-autocomplete/customElement.js +1 -1
  232. package/dist/components/calcite-autocomplete-item/customElement.js +1 -1
  233. package/dist/components/calcite-autocomplete-item-group/customElement.js +1 -1
  234. package/dist/components/calcite-avatar/customElement.js +1 -1
  235. package/dist/components/calcite-block/customElement.js +3 -1
  236. package/dist/components/calcite-block-group/customElement.d.ts +5 -1
  237. package/dist/components/calcite-block-group/customElement.js +55 -36
  238. package/dist/components/calcite-block-section/customElement.js +1 -1
  239. package/dist/components/calcite-button/customElement.js +1 -1
  240. package/dist/components/calcite-card/customElement.js +1 -1
  241. package/dist/components/calcite-card-group/customElement.js +1 -1
  242. package/dist/components/calcite-carousel/customElement.js +1 -1
  243. package/dist/components/calcite-carousel-item/customElement.js +1 -1
  244. package/dist/components/calcite-checkbox/customElement.js +1 -1
  245. package/dist/components/calcite-chip/customElement.js +1 -1
  246. package/dist/components/calcite-chip-group/customElement.js +1 -1
  247. package/dist/components/calcite-color-picker/customElement.js +1 -1
  248. package/dist/components/calcite-color-picker-hex-input/customElement.js +1 -1
  249. package/dist/components/calcite-color-picker-swatch/customElement.js +1 -1
  250. package/dist/components/calcite-combobox/customElement.js +1 -1
  251. package/dist/components/calcite-combobox-item/customElement.js +1 -1
  252. package/dist/components/calcite-combobox-item-group/customElement.js +1 -1
  253. package/dist/components/calcite-date-picker/customElement.js +1 -1
  254. package/dist/components/calcite-date-picker-day/customElement.js +1 -1
  255. package/dist/components/calcite-date-picker-month/customElement.js +1 -1
  256. package/dist/components/calcite-date-picker-month-header/customElement.js +1 -1
  257. package/dist/components/calcite-dialog/customElement.js +1 -1
  258. package/dist/components/calcite-dropdown/customElement.js +1 -1
  259. package/dist/components/calcite-dropdown-group/customElement.js +1 -1
  260. package/dist/components/calcite-dropdown-item/customElement.js +1 -1
  261. package/dist/components/calcite-fab/customElement.js +1 -1
  262. package/dist/components/calcite-filter/customElement.js +1 -1
  263. package/dist/components/calcite-flow/customElement.js +1 -1
  264. package/dist/components/calcite-flow-item/customElement.js +1 -1
  265. package/dist/components/calcite-graph/customElement.js +1 -1
  266. package/dist/components/calcite-handle/customElement.js +1 -1
  267. package/dist/components/calcite-icon/customElement.js +1 -1
  268. package/dist/components/calcite-inline-editable/customElement.js +1 -1
  269. package/dist/components/calcite-input/customElement.js +1 -1
  270. package/dist/components/calcite-input-date-picker/customElement.js +1 -1
  271. package/dist/components/calcite-input-message/customElement.js +1 -1
  272. package/dist/components/calcite-input-number/customElement.js +1 -1
  273. package/dist/components/calcite-input-text/customElement.js +1 -1
  274. package/dist/components/calcite-input-time-picker/customElement.js +1 -1
  275. package/dist/components/calcite-input-time-zone/customElement.js +1 -1
  276. package/dist/components/calcite-label/customElement.js +1 -1
  277. package/dist/components/calcite-link/customElement.js +1 -1
  278. package/dist/components/calcite-list/customElement.d.ts +5 -1
  279. package/dist/components/calcite-list/customElement.js +82 -63
  280. package/dist/components/calcite-list-item/customElement.js +3 -1
  281. package/dist/components/calcite-list-item-group/customElement.js +1 -1
  282. package/dist/components/calcite-loader/customElement.js +1 -1
  283. package/dist/components/calcite-menu/customElement.js +1 -1
  284. package/dist/components/calcite-menu-item/customElement.js +1 -1
  285. package/dist/components/calcite-meter/customElement.js +1 -1
  286. package/dist/components/calcite-modal/customElement.js +1 -1
  287. package/dist/components/calcite-navigation/customElement.js +1 -1
  288. package/dist/components/calcite-navigation-logo/customElement.js +1 -1
  289. package/dist/components/calcite-navigation-user/customElement.js +1 -1
  290. package/dist/components/calcite-notice/customElement.js +1 -1
  291. package/dist/components/calcite-option/customElement.js +1 -1
  292. package/dist/components/calcite-option-group/customElement.js +1 -1
  293. package/dist/components/calcite-pagination/customElement.js +1 -1
  294. package/dist/components/calcite-panel/customElement.js +1 -1
  295. package/dist/components/calcite-popover/customElement.js +1 -1
  296. package/dist/components/calcite-progress/customElement.js +1 -1
  297. package/dist/components/calcite-radio-button/customElement.js +1 -1
  298. package/dist/components/calcite-radio-button-group/customElement.js +1 -1
  299. package/dist/components/calcite-rating/customElement.js +1 -1
  300. package/dist/components/calcite-scrim/customElement.js +1 -1
  301. package/dist/components/calcite-segmented-control/customElement.js +1 -1
  302. package/dist/components/calcite-segmented-control-item/customElement.js +1 -1
  303. package/dist/components/calcite-select/customElement.js +1 -1
  304. package/dist/components/calcite-sheet/customElement.js +1 -1
  305. package/dist/components/calcite-shell/customElement.js +1 -1
  306. package/dist/components/calcite-shell-center-row/customElement.js +1 -1
  307. package/dist/components/calcite-shell-panel/customElement.js +1 -1
  308. package/dist/components/calcite-slider/customElement.js +1 -1
  309. package/dist/components/calcite-sort-handle/customElement.js +7 -3
  310. package/dist/components/calcite-sort-handle/resources.d.ts +4 -0
  311. package/dist/components/calcite-sortable-list/customElement.js +1 -1
  312. package/dist/components/calcite-split-button/customElement.js +1 -1
  313. package/dist/components/calcite-stack/customElement.js +1 -1
  314. package/dist/components/calcite-stepper/customElement.js +1 -1
  315. package/dist/components/calcite-stepper-item/customElement.js +1 -1
  316. package/dist/components/calcite-switch/customElement.js +1 -1
  317. package/dist/components/calcite-tab/customElement.js +1 -1
  318. package/dist/components/calcite-tab-nav/customElement.js +1 -1
  319. package/dist/components/calcite-tab-title/customElement.js +1 -1
  320. package/dist/components/calcite-table/customElement.js +1 -1
  321. package/dist/components/calcite-table-cell/customElement.js +1 -1
  322. package/dist/components/calcite-table-header/customElement.js +1 -1
  323. package/dist/components/calcite-table-row/customElement.js +1 -1
  324. package/dist/components/calcite-tabs/customElement.js +1 -1
  325. package/dist/components/calcite-text-area/customElement.js +1 -1
  326. package/dist/components/calcite-tile/customElement.js +1 -1
  327. package/dist/components/calcite-tile-group/customElement.js +1 -1
  328. package/dist/components/calcite-tile-select/customElement.js +1 -1
  329. package/dist/components/calcite-tile-select-group/customElement.js +1 -1
  330. package/dist/components/calcite-time-picker/customElement.js +1 -1
  331. package/dist/components/calcite-tip/customElement.js +1 -1
  332. package/dist/components/calcite-tip-group/customElement.js +1 -1
  333. package/dist/components/calcite-tip-manager/customElement.js +1 -1
  334. package/dist/components/calcite-tooltip/customElement.js +1 -1
  335. package/dist/components/calcite-tree/customElement.js +1 -1
  336. package/dist/components/calcite-tree-item/customElement.js +1 -1
  337. package/dist/docs/api.json +3 -1
  338. package/dist/docs/docs.json +5 -3
  339. package/dist/docs/web-types.json +1 -1
  340. package/dist/index.js +1 -1
  341. package/dist/loader.js +3 -3
  342. package/dist/utils/floating-ui.d.ts +1 -1
  343. package/package.json +7 -7
  344. package/dist/calcite/36EW425P.js +0 -4
  345. package/dist/calcite/G3Z4HNJX.js +0 -4
  346. package/dist/calcite/NDLAZ3HN.js +0 -4
  347. package/dist/calcite/YAQEU3W2.js +0 -4
  348. package/dist/calcite/ZHTEPB64.js +0 -4
@@ -32,26 +32,26 @@ interactjs
32
32
 
33
33
  Copyright (c) 2012-present Taye Adeyemi <dev@taye.me>
34
34
 
35
- Permission is hereby granted, free of charge, to any person
36
- obtaining a copy of this software and associated
37
- documentation files (the "Software"), to deal in the Software
38
- without restriction, including without limitation the rights
39
- to use, copy, modify, merge, publish, distribute, sublicense,
40
- and/or sell copies of the Software, and to permit persons to
41
- whom the Software is furnished to do so, subject to the
35
+ Permission is hereby granted, free of charge, to any person
36
+ obtaining a copy of this software and associated
37
+ documentation files (the "Software"), to deal in the Software
38
+ without restriction, including without limitation the rights
39
+ to use, copy, modify, merge, publish, distribute, sublicense,
40
+ and/or sell copies of the Software, and to permit persons to
41
+ whom the Software is furnished to do so, subject to the
42
42
  following conditions:
43
43
 
44
- The above copyright notice and this permission notice shall
45
- be included in all copies or substantial portions of the
44
+ The above copyright notice and this permission notice shall
45
+ be included in all copies or substantial portions of the
46
46
  Software.
47
47
 
48
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
49
- KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
50
- WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
51
- PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
52
- COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
53
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
54
- OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
48
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
49
+ KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
50
+ WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
51
+ PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
52
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
53
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
54
+ OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
55
55
  SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
56
56
 
57
57
  ---
@@ -66,15 +66,15 @@ Redistribution and use in source and binary forms, with or without
66
66
  modification, are permitted provided that the following conditions are met:
67
67
 
68
68
  1. Redistributions of source code must retain the above copyright notice, this
69
- list of conditions and the following disclaimer.
69
+ list of conditions and the following disclaimer.
70
70
 
71
71
  2. Redistributions in binary form must reproduce the above copyright notice,
72
- this list of conditions and the following disclaimer in the documentation
73
- and/or other materials provided with the distribution.
72
+ this list of conditions and the following disclaimer in the documentation
73
+ and/or other materials provided with the distribution.
74
74
 
75
75
  3. Neither the name of the copyright holder nor the names of its
76
- contributors may be used to endorse or promote products derived from
77
- this software without specific prior written permission.
76
+ contributors may be used to endorse or promote products derived from
77
+ this software without specific prior written permission.
78
78
 
79
79
  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
80
80
  AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
@@ -93,7 +93,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
93
93
  @types/sortablejs
94
94
  @types/trusted-types
95
95
 
96
- MIT License
96
+ MIT License
97
97
 
98
98
  Copyright (c) Microsoft Corporation.
99
99
 
@@ -130,15 +130,15 @@ Redistribution and use in source and binary forms, with or without
130
130
  modification, are permitted provided that the following conditions are met:
131
131
 
132
132
  1. Redistributions of source code must retain the above copyright notice, this
133
- list of conditions and the following disclaimer.
133
+ list of conditions and the following disclaimer.
134
134
 
135
135
  2. Redistributions in binary form must reproduce the above copyright notice,
136
- this list of conditions and the following disclaimer in the documentation
137
- and/or other materials provided with the distribution.
136
+ this list of conditions and the following disclaimer in the documentation
137
+ and/or other materials provided with the distribution.
138
138
 
139
139
  3. Neither the name of the copyright holder nor the names of its
140
- contributors may be used to endorse or promote products derived from
141
- this software without specific prior written permission.
140
+ contributors may be used to endorse or promote products derived from
141
+ this software without specific prior written permission.
142
142
 
143
143
  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
144
144
  AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
@@ -169,15 +169,15 @@ Redistribution and use in source and binary forms, with or without
169
169
  modification, are permitted provided that the following conditions are met:
170
170
 
171
171
  1. Redistributions of source code must retain the above copyright notice, this
172
- list of conditions and the following disclaimer.
172
+ list of conditions and the following disclaimer.
173
173
 
174
174
  2. Redistributions in binary form must reproduce the above copyright notice,
175
- this list of conditions and the following disclaimer in the documentation
176
- and/or other materials provided with the distribution.
175
+ this list of conditions and the following disclaimer in the documentation
176
+ and/or other materials provided with the distribution.
177
177
 
178
178
  3. Neither the name of the copyright holder nor the names of its
179
- contributors may be used to endorse or promote products derived from
180
- this software without specific prior written permission.
179
+ contributors may be used to endorse or promote products derived from
180
+ this software without specific prior written permission.
181
181
 
182
182
  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
183
183
  AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
@@ -513,15 +513,15 @@ Redistribution and use in source and binary forms, with or without
513
513
  modification, are permitted provided that the following conditions are met:
514
514
 
515
515
  1. Redistributions of source code must retain the above copyright notice, this
516
- list of conditions and the following disclaimer.
516
+ list of conditions and the following disclaimer.
517
517
 
518
518
  2. Redistributions in binary form must reproduce the above copyright notice,
519
- this list of conditions and the following disclaimer in the documentation
520
- and/or other materials provided with the distribution.
519
+ this list of conditions and the following disclaimer in the documentation
520
+ and/or other materials provided with the distribution.
521
521
 
522
522
  3. Neither the name of the copyright holder nor the names of its
523
- contributors may be used to endorse or promote products derived from
524
- this software without specific prior written permission.
523
+ contributors may be used to endorse or promote products derived from
524
+ this software without specific prior written permission.
525
525
 
526
526
  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
527
527
  AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
@@ -666,26 +666,26 @@ THE SOFTWARE.
666
666
 
667
667
  sortablejs
668
668
 
669
- MIT License
670
-
671
- Copyright (c) 2019 All contributors to Sortable
672
-
673
- Permission is hereby granted, free of charge, to any person obtaining a copy
674
- of this software and associated documentation files (the "Software"), to deal
675
- in the Software without restriction, including without limitation the rights
676
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
677
- copies of the Software, and to permit persons to whom the Software is
678
- furnished to do so, subject to the following conditions:
679
-
680
- The above copyright notice and this permission notice shall be included in all
681
- copies or substantial portions of the Software.
682
-
683
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
684
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
685
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
686
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
687
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
688
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
669
+ MIT License
670
+
671
+ Copyright (c) 2019 All contributors to Sortable
672
+
673
+ Permission is hereby granted, free of charge, to any person obtaining a copy
674
+ of this software and associated documentation files (the "Software"), to deal
675
+ in the Software without restriction, including without limitation the rights
676
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
677
+ copies of the Software, and to permit persons to whom the Software is
678
+ furnished to do so, subject to the following conditions:
679
+
680
+ The above copyright notice and this permission notice shall be included in all
681
+ copies or substantial portions of the Software.
682
+
683
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
684
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
685
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
686
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
687
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
688
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
689
689
  SOFTWARE.
690
690
 
691
691
  ---
@@ -772,17 +772,17 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
772
772
 
773
773
  tslib
774
774
 
775
- Copyright (c) Microsoft Corporation.
776
-
777
- Permission to use, copy, modify, and/or distribute this software for any
778
- purpose with or without fee is hereby granted.
779
-
780
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
781
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
782
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
783
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
784
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
785
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
775
+ Copyright (c) Microsoft Corporation.
776
+
777
+ Permission to use, copy, modify, and/or distribute this software for any
778
+ purpose with or without fee is hereby granted.
779
+
780
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
781
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
782
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
783
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
784
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
785
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
786
786
  PERFORMANCE OF THIS SOFTWARE.
787
787
 
788
788
  ---
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
2
2
  See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
3
- v3.3.0-next.39 */
4
- import{b as o}from"./SRQUDWB5.js";import{F as n,d as a,h as t}from"./3SZZH7CV.js";var m={validationContainer:"validation-container"},d=()=>{},$=({scale:e,status:s,id:r,icon:l,message:c,ref:i})=>a`<div class=${n(m.validationContainer)} ${o(i||d)}><calcite-input-message aria-live=polite .icon=${l} id=${r??t} .scale=${e} .status=${s}>${c}</calcite-input-message></div>`;export{$ as a};
3
+ v3.3.0-next.40 */
4
+ import{b as o}from"./MALCPYT6.js";import{F as n,d as a,h as t}from"./2PIXSVS2.js";var m={validationContainer:"validation-container"},d=()=>{},$=({scale:e,status:s,id:r,icon:l,message:c,ref:i})=>a`<div class=${n(m.validationContainer)} ${o(i||d)}><calcite-input-message aria-live=polite .icon=${l} id=${r??t} .scale=${e} .status=${s}>${c}</calcite-input-message></div>`;export{$ as a};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
2
2
  See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
3
- v3.3.0-next.39 */
3
+ v3.3.0-next.40 */
4
4
  function r(n,$,o){return $?`${n}-${$}`:o?`${n}-${o}`:`${n}-m`}export{r as a};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
2
2
  See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
3
- v3.3.0-next.39 */
4
- import{a as r}from"./BE5DDYXT.js";import{a as k}from"./KQ2OHM5K.js";import{a as b}from"./ZZRNURIO.js";import"./LZCZLIWH.js";import{a as f,b as a}from"./SRQUDWB5.js";import{p as s,u}from"./P7TULRPU.js";import{a as l,d as v}from"./KID4N5NQ.js";import"./D27AMML7.js";import"./775XIYJM.js";import{E as m,F as e,J as g,R as p,c as h,d as n,q as o}from"./3SZZH7CV.js";var c={title:"title",message:"message",link:"link",actionsEnd:"actions-end"},i={actionsEnd:"actions-end",close:"notice-close",container:"container",content:"notice-content",icon:"notice-icon"},x=h`:host{--calcite-internal-color-focus: var( --calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)) )}:host([scale=s]){--calcite-notice-spacing-token-small: .5rem;--calcite-notice-spacing-token-large: .75rem}:host([scale=s]) .container slot[name=title]::slotted(*),:host([scale=s]) .container *::slotted([slot=title]){margin-block:.125rem;font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=s]) .container slot[name=message]::slotted(*),:host([scale=s]) .container *::slotted([slot=message]){margin-block:.125rem;font-size:var(--calcite-font-size--2);line-height:1.375}:host([scale=s]) ::slotted(calcite-link){margin-block:.125rem;font-size:var(--calcite-font-size--2);line-height:1.375}:host([scale=s]) .notice-close{padding:.5rem}:host([scale=m]){--calcite-notice-spacing-token-small: .75rem;--calcite-notice-spacing-token-large: 1rem}:host([scale=m]) .container slot[name=title]::slotted(*),:host([scale=m]) .container *::slotted([slot=title]){margin-block:.125rem;font-size:var(--calcite-font-size-0);line-height:1.375}:host([scale=m]) .container slot[name=message]::slotted(*),:host([scale=m]) .container *::slotted([slot=message]){margin-block:.125rem;font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=m]) ::slotted(calcite-link){margin-block:.125rem;font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=l]){--calcite-notice-spacing-token-small: 1rem;--calcite-notice-spacing-token-large: 1.25rem}:host([scale=l]) .container slot[name=title]::slotted(*),:host([scale=l]) .container *::slotted([slot=title]){margin-block:.125rem;font-size:var(--calcite-font-size-1);line-height:1.375}:host([scale=l]) .container slot[name=message]::slotted(*),:host([scale=l]) .container *::slotted([slot=message]){margin-block:.125rem;font-size:var(--calcite-font-size-0);line-height:1.375}:host([scale=l]) ::slotted(calcite-link){margin-block:.125rem;font-size:var(--calcite-font-size-0);line-height:1.375}:host([width=auto]){--calcite-notice-width: auto}:host([width=half]){--calcite-notice-width: 50%}:host([width=full]){--calcite-notice-width: 100%}:host{margin-inline:auto;display:none;max-inline-size:100%;align-items:center;inline-size:var(--calcite-notice-width)}.container{pointer-events:none;margin-block:0px;box-sizing:border-box;display:flex;inline-size:100%;opacity:0;overflow:hidden;max-block-size:0;transition-property:opacity,max-block-size;transition-duration:var(--calcite-animation-timing);text-align:start;border-inline-start:var(--calcite-border-width-md) solid;box-shadow:0 0 0 0 transparent;background-color:var(--calcite-notice-background-color, var(--calcite-color-foreground-1))}.notice-close{outline-color:transparent}.notice-close:focus{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline:var(--calcite-border-width-md) solid var(--calcite-internal-color-focus);outline-offset:calc(calc(-1 * var(--calcite-spacing-base)) * calc(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}:host{display:flex}:host([open]) .container{pointer-events:auto;max-block-size:100%;align-items:center;opacity:1;--tw-shadow: 0 4px 8px -1px rgba(0, 0, 0, .08), 0 2px 4px -1px rgba(0, 0, 0, .04);--tw-shadow-colored: 0 4px 8px -1px var(--tw-shadow-color), 0 2px 4px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);overflow:visible}.container slot[name=title]::slotted(*),.container *::slotted([slot=title]){margin:0;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-notice-title-text-color, var(--calcite-color-text-1))}.container slot[name=message]::slotted(*),.container *::slotted([slot=message]){margin:0;display:inline;font-weight:var(--calcite-font-weight-normal);margin-inline-end:var(--calcite-notice-spacing-token-small);color:var(--calcite-notice-content-text-color, var(--calcite-color-text-2))}.notice-content{box-sizing:border-box;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;padding-inline:var(--calcite-notice-spacing-token-large);flex:0 0 auto;display:flex;min-inline-size:0px;flex-direction:column;overflow-wrap:break-word;flex:1 1 0;padding-block:var(--calcite-notice-spacing-token-small);padding-inline:0 var(--calcite-notice-spacing-token-small)}.notice-content:first-of-type:not(:only-child){padding-inline-start:var(--calcite-notice-spacing-token-large)}.notice-content:only-of-type{padding-block:var(--calcite-notice-spacing-token-small);padding-inline:var(--calcite-notice-spacing-token-large)}.notice-icon{display:flex;align-items:center;box-sizing:border-box;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;padding-block:var(--calcite-notice-spacing-token-small);padding-inline:var(--calcite-notice-spacing-token-large);flex:0 0 auto}.notice-close{display:flex;cursor:pointer;align-items:center;align-self:stretch;border-style:none;background-color:transparent;outline:2px solid transparent;outline-offset:2px;box-sizing:border-box;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;padding-block:var(--calcite-notice-spacing-token-small);padding-inline:var(--calcite-notice-spacing-token-large);flex:0 0 auto;-webkit-appearance:none;color:var(--calcite-notice-close-icon-color, var(--calcite-color-text-3))}.notice-close:hover,.notice-close:focus{background-color:var(--calcite-notice-close-background-color-focus, var(--calcite-color-foreground-2));color:var(--calcite-notice-close-icon-color-hover, var(--calcite-color-text-1))}.notice-close:active{background-color:var(--calcite-notice-close-background-color-press, var(--calcite-color-foreground-3))}.actions-end{display:flex;align-self:stretch}:host([kind=brand]) .container{border-color:var(--calcite-color-brand)}:host([kind=brand]) .container .notice-icon{color:var(--calcite-color-brand)}:host([kind=info]) .container{border-color:var(--calcite-color-status-info)}:host([kind=info]) .container .notice-icon{color:var(--calcite-color-status-info)}:host([kind=danger]) .container{border-color:var(--calcite-color-status-danger)}:host([kind=danger]) .container .notice-icon{color:var(--calcite-color-status-danger)}:host([kind=success]) .container{border-color:var(--calcite-color-status-success)}:host([kind=success]) .container .notice-icon{color:var(--calcite-color-status-success)}:host([kind=warning]) .container{border-color:var(--calcite-color-status-warning)}:host([kind=warning]) .container .notice-icon{color:var(--calcite-color-status-warning)}:host([hidden]){display:none}[hidden]{display:none}`,d=class extends m{constructor(){super(...arguments),this.closeButton=f(),this.transitionProp="opacity",this.messages=b(),this.hasActionEnd=!1,this.closable=!1,this.iconFlipRtl=!1,this.kind="brand",this.open=!1,this.scale="m",this.width="auto",this.calciteNoticeBeforeClose=o({cancelable:!1}),this.calciteNoticeBeforeOpen=o({cancelable:!1}),this.calciteNoticeClose=o({cancelable:!1}),this.calciteNoticeOpen=o({cancelable:!1})}static{this.properties={hasActionEnd:[16,{},{state:!0}],closable:[7,{},{reflect:!0,type:Boolean}],icon:[3,{converter:g},{reflect:!0}],iconFlipRtl:[7,{},{reflect:!0,type:Boolean}],kind:[3,{},{reflect:!0}],messageOverrides:[0,{},{attribute:!1}],open:[7,{},{reflect:!0,type:Boolean}],scale:[3,{},{reflect:!0}],width:[3,{},{reflect:!0}]}}static{this.styles=x}async setFocus(){await v(this);let t=this.el.querySelector("calcite-link");if(!(!this.closeButton.value&&!t)){if(t)return t.setFocus();this.closeButton.value&&this.closeButton.value.focus()}}async load(){this.requestedIcon=s(r,this.icon,this.kind)}willUpdate(t){t.has("open")&&(this.hasUpdated||this.open!==!1)&&k(this),(t.has("icon")||t.has("kind")&&(this.hasUpdated||this.kind!=="brand"))&&(this.requestedIcon=s(r,this.icon,this.kind))}onBeforeClose(){this.calciteNoticeBeforeClose.emit()}onBeforeOpen(){this.calciteNoticeBeforeOpen.emit()}onClose(){this.calciteNoticeClose.emit()}onOpen(){this.calciteNoticeOpen.emit()}setTransitionEl(t){t&&(this.transitionEl=t)}close(){this.open=!1}handleActionsEndSlotChange(t){this.hasActionEnd=u(t)}render(){let t=n`<button .ariaLabel=${this.messages.close} class=${e(i.close)} @click=${this.close} ${a(this.closeButton)}><calcite-icon icon=x .scale=${l(this.scale)}></calcite-icon></button>`;return n`<div class=${e(i.container)} ${a(this.setTransitionEl)}>${this.requestedIcon?n`<div class=${e(i.icon)}><calcite-icon .flipRtl=${this.iconFlipRtl} .icon=${this.requestedIcon} .scale=${l(this.scale)}></calcite-icon></div>`:null}<div class=${e(i.content)}><slot name=${c.title}></slot><slot name=${c.message}></slot><slot name=${c.link}></slot></div><div class=${e(i.actionsEnd)} .hidden=${!this.hasActionEnd}><slot name=${c.actionsEnd} @slotchange=${this.handleActionsEndSlotChange}></slot></div>${this.closable?t:null}</div>`}};p("calcite-notice",d);export{d as Notice};
3
+ v3.3.0-next.40 */
4
+ import{a as r}from"./UOC7DMPC.js";import{a as k}from"./TPMOJ7XD.js";import{a as b}from"./7ULRI6DB.js";import"./CIUU375M.js";import{a as f,b as a}from"./MALCPYT6.js";import{p as s,u}from"./336LSAGD.js";import{a as l,d as v}from"./GKZ4C5SQ.js";import"./CV3FPVW7.js";import"./S7GT4XGA.js";import{E as m,F as e,J as g,R as p,c as h,d as n,q as o}from"./2PIXSVS2.js";var c={title:"title",message:"message",link:"link",actionsEnd:"actions-end"},i={actionsEnd:"actions-end",close:"notice-close",container:"container",content:"notice-content",icon:"notice-icon"},x=h`:host{--calcite-internal-color-focus: var( --calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)) )}:host([scale=s]){--calcite-notice-spacing-token-small: .5rem;--calcite-notice-spacing-token-large: .75rem}:host([scale=s]) .container slot[name=title]::slotted(*),:host([scale=s]) .container *::slotted([slot=title]){margin-block:.125rem;font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=s]) .container slot[name=message]::slotted(*),:host([scale=s]) .container *::slotted([slot=message]){margin-block:.125rem;font-size:var(--calcite-font-size--2);line-height:1.375}:host([scale=s]) ::slotted(calcite-link){margin-block:.125rem;font-size:var(--calcite-font-size--2);line-height:1.375}:host([scale=s]) .notice-close{padding:.5rem}:host([scale=m]){--calcite-notice-spacing-token-small: .75rem;--calcite-notice-spacing-token-large: 1rem}:host([scale=m]) .container slot[name=title]::slotted(*),:host([scale=m]) .container *::slotted([slot=title]){margin-block:.125rem;font-size:var(--calcite-font-size-0);line-height:1.375}:host([scale=m]) .container slot[name=message]::slotted(*),:host([scale=m]) .container *::slotted([slot=message]){margin-block:.125rem;font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=m]) ::slotted(calcite-link){margin-block:.125rem;font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=l]){--calcite-notice-spacing-token-small: 1rem;--calcite-notice-spacing-token-large: 1.25rem}:host([scale=l]) .container slot[name=title]::slotted(*),:host([scale=l]) .container *::slotted([slot=title]){margin-block:.125rem;font-size:var(--calcite-font-size-1);line-height:1.375}:host([scale=l]) .container slot[name=message]::slotted(*),:host([scale=l]) .container *::slotted([slot=message]){margin-block:.125rem;font-size:var(--calcite-font-size-0);line-height:1.375}:host([scale=l]) ::slotted(calcite-link){margin-block:.125rem;font-size:var(--calcite-font-size-0);line-height:1.375}:host([width=auto]){--calcite-notice-width: auto}:host([width=half]){--calcite-notice-width: 50%}:host([width=full]){--calcite-notice-width: 100%}:host{margin-inline:auto;display:none;max-inline-size:100%;align-items:center;inline-size:var(--calcite-notice-width)}.container{pointer-events:none;margin-block:0px;box-sizing:border-box;display:flex;inline-size:100%;opacity:0;overflow:hidden;max-block-size:0;transition-property:opacity,max-block-size;transition-duration:var(--calcite-animation-timing);text-align:start;border-inline-start:var(--calcite-border-width-md) solid;box-shadow:0 0 0 0 transparent;background-color:var(--calcite-notice-background-color, var(--calcite-color-foreground-1))}.notice-close{outline-color:transparent}.notice-close:focus{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline:var(--calcite-border-width-md) solid var(--calcite-internal-color-focus);outline-offset:calc(calc(-1 * var(--calcite-spacing-base)) * calc(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}:host{display:flex}:host([open]) .container{pointer-events:auto;max-block-size:100%;align-items:center;opacity:1;--tw-shadow: 0 4px 8px -1px rgba(0, 0, 0, .08), 0 2px 4px -1px rgba(0, 0, 0, .04);--tw-shadow-colored: 0 4px 8px -1px var(--tw-shadow-color), 0 2px 4px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);overflow:visible}.container slot[name=title]::slotted(*),.container *::slotted([slot=title]){margin:0;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-notice-title-text-color, var(--calcite-color-text-1))}.container slot[name=message]::slotted(*),.container *::slotted([slot=message]){margin:0;display:inline;font-weight:var(--calcite-font-weight-normal);margin-inline-end:var(--calcite-notice-spacing-token-small);color:var(--calcite-notice-content-text-color, var(--calcite-color-text-2))}.notice-content{box-sizing:border-box;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;padding-inline:var(--calcite-notice-spacing-token-large);flex:0 0 auto;display:flex;min-inline-size:0px;flex-direction:column;overflow-wrap:break-word;flex:1 1 0;padding-block:var(--calcite-notice-spacing-token-small);padding-inline:0 var(--calcite-notice-spacing-token-small)}.notice-content:first-of-type:not(:only-child){padding-inline-start:var(--calcite-notice-spacing-token-large)}.notice-content:only-of-type{padding-block:var(--calcite-notice-spacing-token-small);padding-inline:var(--calcite-notice-spacing-token-large)}.notice-icon{display:flex;align-items:center;box-sizing:border-box;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;padding-block:var(--calcite-notice-spacing-token-small);padding-inline:var(--calcite-notice-spacing-token-large);flex:0 0 auto}.notice-close{display:flex;cursor:pointer;align-items:center;align-self:stretch;border-style:none;background-color:transparent;outline:2px solid transparent;outline-offset:2px;box-sizing:border-box;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;padding-block:var(--calcite-notice-spacing-token-small);padding-inline:var(--calcite-notice-spacing-token-large);flex:0 0 auto;-webkit-appearance:none;color:var(--calcite-notice-close-icon-color, var(--calcite-color-text-3))}.notice-close:hover,.notice-close:focus{background-color:var(--calcite-notice-close-background-color-focus, var(--calcite-color-foreground-2));color:var(--calcite-notice-close-icon-color-hover, var(--calcite-color-text-1))}.notice-close:active{background-color:var(--calcite-notice-close-background-color-press, var(--calcite-color-foreground-3))}.actions-end{display:flex;align-self:stretch}:host([kind=brand]) .container{border-color:var(--calcite-color-brand)}:host([kind=brand]) .container .notice-icon{color:var(--calcite-color-brand)}:host([kind=info]) .container{border-color:var(--calcite-color-status-info)}:host([kind=info]) .container .notice-icon{color:var(--calcite-color-status-info)}:host([kind=danger]) .container{border-color:var(--calcite-color-status-danger)}:host([kind=danger]) .container .notice-icon{color:var(--calcite-color-status-danger)}:host([kind=success]) .container{border-color:var(--calcite-color-status-success)}:host([kind=success]) .container .notice-icon{color:var(--calcite-color-status-success)}:host([kind=warning]) .container{border-color:var(--calcite-color-status-warning)}:host([kind=warning]) .container .notice-icon{color:var(--calcite-color-status-warning)}:host([hidden]){display:none}[hidden]{display:none}`,d=class extends m{constructor(){super(...arguments),this.closeButton=f(),this.transitionProp="opacity",this.messages=b(),this.hasActionEnd=!1,this.closable=!1,this.iconFlipRtl=!1,this.kind="brand",this.open=!1,this.scale="m",this.width="auto",this.calciteNoticeBeforeClose=o({cancelable:!1}),this.calciteNoticeBeforeOpen=o({cancelable:!1}),this.calciteNoticeClose=o({cancelable:!1}),this.calciteNoticeOpen=o({cancelable:!1})}static{this.properties={hasActionEnd:[16,{},{state:!0}],closable:[7,{},{reflect:!0,type:Boolean}],icon:[3,{converter:g},{reflect:!0}],iconFlipRtl:[7,{},{reflect:!0,type:Boolean}],kind:[3,{},{reflect:!0}],messageOverrides:[0,{},{attribute:!1}],open:[7,{},{reflect:!0,type:Boolean}],scale:[3,{},{reflect:!0}],width:[3,{},{reflect:!0}]}}static{this.styles=x}async setFocus(){await v(this);let t=this.el.querySelector("calcite-link");if(!(!this.closeButton.value&&!t)){if(t)return t.setFocus();this.closeButton.value&&this.closeButton.value.focus()}}async load(){this.requestedIcon=s(r,this.icon,this.kind)}willUpdate(t){t.has("open")&&(this.hasUpdated||this.open!==!1)&&k(this),(t.has("icon")||t.has("kind")&&(this.hasUpdated||this.kind!=="brand"))&&(this.requestedIcon=s(r,this.icon,this.kind))}onBeforeClose(){this.calciteNoticeBeforeClose.emit()}onBeforeOpen(){this.calciteNoticeBeforeOpen.emit()}onClose(){this.calciteNoticeClose.emit()}onOpen(){this.calciteNoticeOpen.emit()}setTransitionEl(t){t&&(this.transitionEl=t)}close(){this.open=!1}handleActionsEndSlotChange(t){this.hasActionEnd=u(t)}render(){let t=n`<button .ariaLabel=${this.messages.close} class=${e(i.close)} @click=${this.close} ${a(this.closeButton)}><calcite-icon icon=x .scale=${l(this.scale)}></calcite-icon></button>`;return n`<div class=${e(i.container)} ${a(this.setTransitionEl)}>${this.requestedIcon?n`<div class=${e(i.icon)}><calcite-icon .flipRtl=${this.iconFlipRtl} .icon=${this.requestedIcon} .scale=${l(this.scale)}></calcite-icon></div>`:null}<div class=${e(i.content)}><slot name=${c.title}></slot><slot name=${c.message}></slot><slot name=${c.link}></slot></div><div class=${e(i.actionsEnd)} .hidden=${!this.hasActionEnd}><slot name=${c.actionsEnd} @slotchange=${this.handleActionsEndSlotChange}></slot></div>${this.closable?t:null}</div>`}};p("calcite-notice",d);export{d as Notice};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
2
2
  See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
3
- v3.3.0-next.39 */
4
- import{e as E,f as R,g as $}from"./S54LJVE6.js";var y={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};var B=Object.create(null);for(let t in y)Object.hasOwn(y,t)&&(B[y[t]]=t);var g={to:{},get:{}};g.get=function(t){let n=t.slice(0,3).toLowerCase(),e,r;switch(n){case"hsl":{e=g.get.hsl(t),r="hsl";break}case"hwb":{e=g.get.hwb(t),r="hwb";break}default:{e=g.get.rgb(t),r="rgb";break}}return e?{model:r,value:e}:null};g.get.rgb=function(t){if(!t)return null;let n=/^#([a-f\d]{3,4})$/i,e=/^#([a-f\d]{6})([a-f\d]{2})?$/i,r=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|/]\s*([+-]?[\d.]+)(%?)\s*)?\)$/,o=/^rgba?\(\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*(?:[,|/]\s*([+-]?[\d.]+)(%?)\s*)?\)$/,s=/^(\w+)$/,c=[0,0,0,1],a,l,h;if(a=t.match(e)){for(h=a[2],a=a[1],l=0;l<3;l++){let _=l*2;c[l]=Number.parseInt(a.slice(_,_+2),16)}h&&(c[3]=Number.parseInt(h,16)/255)}else if(a=t.match(n)){for(a=a[1],h=a[3],l=0;l<3;l++)c[l]=Number.parseInt(a[l]+a[l],16);h&&(c[3]=Number.parseInt(h+h,16)/255)}else if(a=t.match(r)){for(l=0;l<3;l++)c[l]=Number.parseInt(a[l+1],10);a[4]&&(c[3]=a[5]?Number.parseFloat(a[4])*.01:Number.parseFloat(a[4]))}else if(a=t.match(o)){for(l=0;l<3;l++)c[l]=Math.round(Number.parseFloat(a[l+1])*2.55);a[4]&&(c[3]=a[5]?Number.parseFloat(a[4])*.01:Number.parseFloat(a[4]))}else return(a=t.match(s))?a[1]==="transparent"?[0,0,0,0]:Object.hasOwn(y,a[1])?(c=y[a[1]],c[3]=1,c):null:null;for(l=0;l<3;l++)c[l]=k(c[l],0,255);return c[3]=k(c[3],0,1),c};g.get.hsl=function(t){if(!t)return null;let n=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*(?:[,|/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,e=t.match(n);if(e){let r=Number.parseFloat(e[4]),o=(Number.parseFloat(e[1])%360+360)%360,s=k(Number.parseFloat(e[2]),0,100),c=k(Number.parseFloat(e[3]),0,100),a=k(Number.isNaN(r)?1:r,0,1);return[o,s,c,a]}return null};g.get.hwb=function(t){if(!t)return null;let n=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d.]+)%\s*,\s*([+-]?[\d.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,e=t.match(n);if(e){let r=Number.parseFloat(e[4]),o=(Number.parseFloat(e[1])%360+360)%360,s=k(Number.parseFloat(e[2]),0,100),c=k(Number.parseFloat(e[3]),0,100),a=k(Number.isNaN(r)?1:r,0,1);return[o,s,c,a]}return null};g.to.hex=function(...t){return"#"+H(t[0])+H(t[1])+H(t[2])+(t[3]<1?H(Math.round(t[3]*255)):"")};g.to.rgb=function(...t){return t.length<4||t[3]===1?"rgb("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+")":"rgba("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+", "+t[3]+")"};g.to.rgb.percent=function(...t){let n=Math.round(t[0]/255*100),e=Math.round(t[1]/255*100),r=Math.round(t[2]/255*100);return t.length<4||t[3]===1?"rgb("+n+"%, "+e+"%, "+r+"%)":"rgba("+n+"%, "+e+"%, "+r+"%, "+t[3]+")"};g.to.hsl=function(...t){return t.length<4||t[3]===1?"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)":"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+t[3]+")"};g.to.hwb=function(...t){let n="";return t.length>=4&&t[3]!==1&&(n=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+n+")"};g.to.keyword=function(...t){return B[t.slice(0,3)]};function k(t,n,e){return Math.min(Math.max(n,t),e)}function H(t){let n=Math.round(t).toString(16).toUpperCase();return n.length<2?"0"+n:n}var M=g;var T={};for(let t of Object.keys(y))T[y[t]]=t;var i={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},oklab:{channels:3,labels:["okl","oka","okb"]},lch:{channels:3,labels:"lch"},oklch:{channels:3,labels:["okl","okc","okh"]},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}},S=i,w=(6/29)**3;function x(t){let n=t>.0031308?1.055*t**.4166666666666667-.055:t*12.92;return Math.min(Math.max(0,n),1)}function A(t){return t>.04045?((t+.055)/1.055)**2.4:t/12.92}for(let t of Object.keys(i)){if(!("channels"in i[t]))throw new Error("missing channels property: "+t);if(!("labels"in i[t]))throw new Error("missing channel labels property: "+t);if(i[t].labels.length!==i[t].channels)throw new Error("channel and label counts mismatch: "+t);let{channels:n,labels:e}=i[t];delete i[t].channels,delete i[t].labels,Object.defineProperty(i[t],"channels",{value:n}),Object.defineProperty(i[t],"labels",{value:e})}i.rgb.hsl=function(t){let n=t[0]/255,e=t[1]/255,r=t[2]/255,o=Math.min(n,e,r),s=Math.max(n,e,r),c=s-o,a,l;switch(s){case o:{a=0;break}case n:{a=(e-r)/c;break}case e:{a=2+(r-n)/c;break}case r:{a=4+(n-e)/c;break}}a=Math.min(a*60,360),a<0&&(a+=360);let h=(o+s)/2;return s===o?l=0:h<=.5?l=c/(s+o):l=c/(2-s-o),[a,l*100,h*100]};i.rgb.hsv=function(t){let n,e,r,o,s,c=t[0]/255,a=t[1]/255,l=t[2]/255,h=Math.max(c,a,l),_=h-Math.min(c,a,l),v=function(Y){return(h-Y)/6/_+1/2};if(_===0)o=0,s=0;else{switch(s=_/h,n=v(c),e=v(a),r=v(l),h){case c:{o=r-e;break}case a:{o=1/3+n-r;break}case l:{o=2/3+e-n;break}}o<0?o+=1:o>1&&(o-=1)}return[o*360,s*100,h*100]};i.rgb.hwb=function(t){let n=t[0],e=t[1],r=t[2],o=i.rgb.hsl(t)[0],s=1/255*Math.min(n,Math.min(e,r));return r=1-1/255*Math.max(n,Math.max(e,r)),[o,s*100,r*100]};i.rgb.oklab=function(t){let n=A(t[0]/255),e=A(t[1]/255),r=A(t[2]/255),o=Math.cbrt(.4122214708*n+.5363325363*e+.0514459929*r),s=Math.cbrt(.2119034982*n+.6806995451*e+.1073969566*r),c=Math.cbrt(.0883024619*n+.2817188376*e+.6299787005*r),a=.2104542553*o+.793617785*s-.0040720468*c,l=1.9779984951*o-2.428592205*s+.4505937099*c,h=.0259040371*o+.7827717662*s-.808675766*c;return[a*100,l*100,h*100]};i.rgb.cmyk=function(t){let n=t[0]/255,e=t[1]/255,r=t[2]/255,o=Math.min(1-n,1-e,1-r),s=(1-n-o)/(1-o)||0,c=(1-e-o)/(1-o)||0,a=(1-r-o)/(1-o)||0;return[s*100,c*100,a*100,o*100]};function J(t,n){return(t[0]-n[0])**2+(t[1]-n[1])**2+(t[2]-n[2])**2}i.rgb.keyword=function(t){let n=T[t];if(n)return n;let e=Number.POSITIVE_INFINITY,r;for(let o of Object.keys(y)){let s=y[o],c=J(t,s);c<e&&(e=c,r=o)}return r};i.keyword.rgb=function(t){return y[t]};i.rgb.xyz=function(t){let n=A(t[0]/255),e=A(t[1]/255),r=A(t[2]/255),o=n*.4124564+e*.3575761+r*.1804375,s=n*.2126729+e*.7151522+r*.072175,c=n*.0193339+e*.119192+r*.9503041;return[o*100,s*100,c*100]};i.rgb.lab=function(t){let n=i.rgb.xyz(t),e=n[0],r=n[1],o=n[2];e/=95.047,r/=100,o/=108.883,e=e>w?e**(1/3):7.787*e+16/116,r=r>w?r**(1/3):7.787*r+16/116,o=o>w?o**(1/3):7.787*o+16/116;let s=116*r-16,c=500*(e-r),a=200*(r-o);return[s,c,a]};i.hsl.rgb=function(t){let n=t[0]/360,e=t[1]/100,r=t[2]/100,o,s;if(e===0)return s=r*255,[s,s,s];let c=r<.5?r*(1+e):r+e-r*e,a=2*r-c,l=[0,0,0];for(let h=0;h<3;h++)o=n+1/3*-(h-1),o<0&&o++,o>1&&o--,6*o<1?s=a+(c-a)*6*o:2*o<1?s=c:3*o<2?s=a+(c-a)*(2/3-o)*6:s=a,l[h]=s*255;return l};i.hsl.hsv=function(t){let n=t[0],e=t[1]/100,r=t[2]/100,o=e,s=Math.max(r,.01);r*=2,e*=r<=1?r:2-r,o*=s<=1?s:2-s;let c=(r+e)/2,a=r===0?2*o/(s+o):2*e/(r+e);return[n,a*100,c*100]};i.hsv.rgb=function(t){let n=t[0]/60,e=t[1]/100,r=t[2]/100,o=Math.floor(n)%6,s=n-Math.floor(n),c=255*r*(1-e),a=255*r*(1-e*s),l=255*r*(1-e*(1-s));switch(r*=255,o){case 0:return[r,l,c];case 1:return[a,r,c];case 2:return[c,r,l];case 3:return[c,a,r];case 4:return[l,c,r];case 5:return[r,c,a]}};i.hsv.hsl=function(t){let n=t[0],e=t[1]/100,r=t[2]/100,o=Math.max(r,.01),s,c;c=(2-e)*r;let a=(2-e)*o;return s=e*o,s/=a<=1?a:2-a,s=s||0,c/=2,[n,s*100,c*100]};i.hwb.rgb=function(t){let n=t[0]/360,e=t[1]/100,r=t[2]/100,o=e+r,s;o>1&&(e/=o,r/=o);let c=Math.floor(6*n),a=1-r;s=6*n-c,(c&1)!==0&&(s=1-s);let l=e+s*(a-e),h,_,v;switch(c){default:case 6:case 0:{h=a,_=l,v=e;break}case 1:{h=l,_=a,v=e;break}case 2:{h=e,_=a,v=l;break}case 3:{h=e,_=l,v=a;break}case 4:{h=l,_=e,v=a;break}case 5:{h=a,_=e,v=l;break}}return[h*255,_*255,v*255]};i.cmyk.rgb=function(t){let n=t[0]/100,e=t[1]/100,r=t[2]/100,o=t[3]/100,s=1-Math.min(1,n*(1-o)+o),c=1-Math.min(1,e*(1-o)+o),a=1-Math.min(1,r*(1-o)+o);return[s*255,c*255,a*255]};i.xyz.rgb=function(t){let n=t[0]/100,e=t[1]/100,r=t[2]/100,o,s,c;return o=n*3.2404542+e*-1.5371385+r*-.4985314,s=n*-.969266+e*1.8760108+r*.041556,c=n*.0556434+e*-.2040259+r*1.0572252,o=x(o),s=x(s),c=x(c),[o*255,s*255,c*255]};i.xyz.lab=function(t){let n=t[0],e=t[1],r=t[2];n/=95.047,e/=100,r/=108.883,n=n>w?n**(1/3):7.787*n+16/116,e=e>w?e**(1/3):7.787*e+16/116,r=r>w?r**(1/3):7.787*r+16/116;let o=116*e-16,s=500*(n-e),c=200*(e-r);return[o,s,c]};i.xyz.oklab=function(t){let n=t[0]/100,e=t[1]/100,r=t[2]/100,o=Math.cbrt(.8189330101*n+.3618667424*e-.1288597137*r),s=Math.cbrt(.0329845436*n+.9293118715*e+.0361456387*r),c=Math.cbrt(.0482003018*n+.2643662691*e+.633851707*r),a=.2104542553*o+.793617785*s-.0040720468*c,l=1.9779984951*o-2.428592205*s+.4505937099*c,h=.0259040371*o+.7827717662*s-.808675766*c;return[a*100,l*100,h*100]};i.oklab.oklch=function(t){return i.lab.lch(t)};i.oklab.xyz=function(t){let n=t[0]/100,e=t[1]/100,r=t[2]/100,o=(.999999998*n+.396337792*e+.215803758*r)**3,s=(1.000000008*n-.105561342*e-.063854175*r)**3,c=(1.000000055*n-.089484182*e-1.291485538*r)**3,a=1.227013851*o-.55779998*s+.281256149*c,l=-.040580178*o+1.11225687*s-.071676679*c,h=-.076381285*o-.421481978*s+1.58616322*c;return[a*100,l*100,h*100]};i.oklab.rgb=function(t){let n=t[0]/100,e=t[1]/100,r=t[2]/100,o=(n+.3963377774*e+.2158037573*r)**3,s=(n-.1055613458*e-.0638541728*r)**3,c=(n-.0894841775*e-1.291485548*r)**3,a=x(4.0767416621*o-3.3077115913*s+.2309699292*c),l=x(-1.2684380046*o+2.6097574011*s-.3413193965*c),h=x(-.0041960863*o-.7034186147*s+1.707614701*c);return[a*255,l*255,h*255]};i.oklch.oklab=function(t){return i.lch.lab(t)};i.lab.xyz=function(t){let n=t[0],e=t[1],r=t[2],o,s,c;s=(n+16)/116,o=e/500+s,c=s-r/200;let a=s**3,l=o**3,h=c**3;return s=a>w?a:(s-16/116)/7.787,o=l>w?l:(o-16/116)/7.787,c=h>w?h:(c-16/116)/7.787,o*=95.047,s*=100,c*=108.883,[o,s,c]};i.lab.lch=function(t){let n=t[0],e=t[1],r=t[2],o;o=Math.atan2(r,e)*360/2/Math.PI,o<0&&(o+=360);let c=Math.sqrt(e*e+r*r);return[n,c,o]};i.lch.lab=function(t){let n=t[0],e=t[1],o=t[2]/360*2*Math.PI,s=e*Math.cos(o),c=e*Math.sin(o);return[n,s,c]};i.rgb.ansi16=function(t,n=null){let[e,r,o]=t,s=n===null?i.rgb.hsv(t)[2]:n;if(s=Math.round(s/50),s===0)return 30;let c=30+(Math.round(o/255)<<2|Math.round(r/255)<<1|Math.round(e/255));return s===2&&(c+=60),c};i.hsv.ansi16=function(t){return i.rgb.ansi16(i.hsv.rgb(t),t[2])};i.rgb.ansi256=function(t){let n=t[0],e=t[1],r=t[2];return n>>4===e>>4&&e>>4===r>>4?n<8?16:n>248?231:Math.round((n-8)/247*24)+232:16+36*Math.round(n/255*5)+6*Math.round(e/255*5)+Math.round(r/255*5)};i.ansi16.rgb=function(t){t=t[0];let n=t%10;if(n===0||n===7)return t>50&&(n+=3.5),n=n/10.5*255,[n,n,n];let e=(Math.trunc(t>50)+1)*.5,r=(n&1)*e*255,o=(n>>1&1)*e*255,s=(n>>2&1)*e*255;return[r,o,s]};i.ansi256.rgb=function(t){if(t=t[0],t>=232){let s=(t-232)*10+8;return[s,s,s]}t-=16;let n,e=Math.floor(t/36)/5*255,r=Math.floor((n=t%36)/6)/5*255,o=n%6/5*255;return[e,r,o]};i.rgb.hex=function(t){let e=(((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255)).toString(16).toUpperCase();return"000000".slice(e.length)+e};i.hex.rgb=function(t){let n=t.toString(16).match(/[a-f\d]{6}|[a-f\d]{3}/i);if(!n)return[0,0,0];let e=n[0];n[0].length===3&&(e=[...e].map(a=>a+a).join(""));let r=Number.parseInt(e,16),o=r>>16&255,s=r>>8&255,c=r&255;return[o,s,c]};i.rgb.hcg=function(t){let n=t[0]/255,e=t[1]/255,r=t[2]/255,o=Math.max(Math.max(n,e),r),s=Math.min(Math.min(n,e),r),c=o-s,a,l=c<1?s/(1-c):0;return c<=0?a=0:o===n?a=(e-r)/c%6:o===e?a=2+(r-n)/c:a=4+(n-e)/c,a/=6,a%=1,[a*360,c*100,l*100]};i.hsl.hcg=function(t){let n=t[1]/100,e=t[2]/100,r=e<.5?2*n*e:2*n*(1-e),o=0;return r<1&&(o=(e-.5*r)/(1-r)),[t[0],r*100,o*100]};i.hsv.hcg=function(t){let n=t[1]/100,e=t[2]/100,r=n*e,o=0;return r<1&&(o=(e-r)/(1-r)),[t[0],r*100,o*100]};i.hcg.rgb=function(t){let n=t[0]/360,e=t[1]/100,r=t[2]/100;if(e===0)return[r*255,r*255,r*255];let o=[0,0,0],s=n%1*6,c=s%1,a=1-c,l=0;switch(Math.floor(s)){case 0:{o[0]=1,o[1]=c,o[2]=0;break}case 1:{o[0]=a,o[1]=1,o[2]=0;break}case 2:{o[0]=0,o[1]=1,o[2]=c;break}case 3:{o[0]=0,o[1]=a,o[2]=1;break}case 4:{o[0]=c,o[1]=0,o[2]=1;break}default:o[0]=1,o[1]=0,o[2]=a}return l=(1-e)*r,[(e*o[0]+l)*255,(e*o[1]+l)*255,(e*o[2]+l)*255]};i.hcg.hsv=function(t){let n=t[1]/100,e=t[2]/100,r=n+e*(1-n),o=0;return r>0&&(o=n/r),[t[0],o*100,r*100]};i.hcg.hsl=function(t){let n=t[1]/100,r=t[2]/100*(1-n)+.5*n,o=0;return r>0&&r<.5?o=n/(2*r):r>=.5&&r<1&&(o=n/(2*(1-r))),[t[0],o*100,r*100]};i.hcg.hwb=function(t){let n=t[1]/100,e=t[2]/100,r=n+e*(1-n);return[t[0],(r-n)*100,(1-r)*100]};i.hwb.hcg=function(t){let n=t[1]/100,r=1-t[2]/100,o=r-n,s=0;return o<1&&(s=(r-o)/(1-o)),[t[0],o*100,s*100]};i.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};i.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};i.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};i.gray.hsl=function(t){return[0,0,t[0]]};i.gray.hsv=i.gray.hsl;i.gray.hwb=function(t){return[0,100,t[0]]};i.gray.cmyk=function(t){return[0,0,0,t[0]]};i.gray.lab=function(t){return[t[0],0,0]};i.gray.hex=function(t){let n=Math.round(t[0]/100*255)&255,r=((n<<16)+(n<<8)+n).toString(16).toUpperCase();return"000000".slice(r.length)+r};i.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]};function Z(){let t={},n=Object.keys(S);for(let{length:e}=n,r=0;r<e;r++)t[n[r]]={distance:-1,parent:null};return t}function Q(t){let n=Z(),e=[t];for(n[t].distance=0;e.length>0;){let r=e.pop(),o=Object.keys(S[r]);for(let{length:s}=o,c=0;c<s;c++){let a=o[c],l=n[a];l.distance===-1&&(l.distance=n[r].distance+1,l.parent=r,e.unshift(a))}}return n}function V(t,n){return function(e){return n(t(e))}}function tt(t,n){let e=[n[t].parent,t],r=S[n[t].parent][t],o=n[t].parent;for(;n[o].parent;)e.unshift(n[o].parent),r=V(S[n[o].parent][o],r),o=n[o].parent;return r.conversion=e,r}function nt(t){let n=Q(t),e={},r=Object.keys(n);for(let{length:o}=r,s=0;s<o;s++){let c=r[s];n[c].parent!==null&&(e[c]=tt(c,n))}return e}var G=nt;var F={},et=Object.keys(S);function rt(t){let n=function(...e){let r=e[0];return r==null?r:(r.length>1&&(e=r),t(e))};return"conversion"in t&&(n.conversion=t.conversion),n}function ot(t){let n=function(...e){let r=e[0];if(r==null)return r;r.length>1&&(e=r);let o=t(e);if(typeof o=="object")for(let{length:s}=o,c=0;c<s;c++)o[c]=Math.round(o[c]);return o};return"conversion"in t&&(n.conversion=t.conversion),n}for(let t of et){F[t]={},Object.defineProperty(F[t],"channels",{value:S[t].channels}),Object.defineProperty(F[t],"labels",{value:S[t].labels});let n=G(t),e=Object.keys(n);for(let r of e){let o=n[r];F[t][r]=ot(o),F[t][r].raw=rt(o)}}var m=F;var q=["keyword","gray","hex"],I={};for(let t of Object.keys(m))I[[...m[t].labels].sort().join("")]=t;var O={};function p(t,n){if(!(this instanceof p))return new p(t,n);if(n&&n in q&&(n=null),n&&!(n in m))throw new Error("Unknown model: "+n);let e,r;if(t==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(t instanceof p)this.model=t.model,this.color=[...t.color],this.valpha=t.valpha;else if(typeof t=="string"){let o=M.get(t);if(o===null)throw new Error("Unable to parse color from string: "+t);this.model=o.model,r=m[this.model].channels,this.color=o.value.slice(0,r),this.valpha=typeof o.value[r]=="number"?o.value[r]:1}else if(t.length>0){this.model=n||"rgb",r=m[this.model].channels;let o=Array.prototype.slice.call(t,0,r);this.color=L(o,r),this.valpha=typeof t[r]=="number"?t[r]:1}else if(typeof t=="number")this.model="rgb",this.color=[t>>16&255,t>>8&255,t&255],this.valpha=1;else{this.valpha=1;let o=Object.keys(t);"alpha"in t&&(o.splice(o.indexOf("alpha"),1),this.valpha=typeof t.alpha=="number"?t.alpha:0);let s=o.sort().join("");if(!(s in I))throw new Error("Unable to parse color from object: "+JSON.stringify(t));this.model=I[s];let{labels:c}=m[this.model],a=[];for(e=0;e<c.length;e++)a.push(t[c[e]]);this.color=L(a)}if(O[this.model])for(r=m[this.model].channels,e=0;e<r;e++){let o=O[this.model][e];o&&(this.color[e]=o(this.color[e]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}p.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(t){let n=this.model in M.to?this:this.rgb();n=n.round(typeof t=="number"?t:1);let e=n.valpha===1?n.color:[...n.color,this.valpha];return M.to[n.model](...e)},percentString(t){let n=this.rgb().round(typeof t=="number"?t:1),e=n.valpha===1?n.color:[...n.color,this.valpha];return M.to.rgb.percent(...e)},array(){return this.valpha===1?[...this.color]:[...this.color,this.valpha]},object(){let t={},{channels:n}=m[this.model],{labels:e}=m[this.model];for(let r=0;r<n;r++)t[e[r]]=this.color[r];return this.valpha!==1&&(t.alpha=this.valpha),t},unitArray(){let t=this.rgb().color;return t[0]/=255,t[1]/=255,t[2]/=255,this.valpha!==1&&t.push(this.valpha),t},unitObject(){let t=this.rgb().object();return t.r/=255,t.g/=255,t.b/=255,this.valpha!==1&&(t.alpha=this.valpha),t},round(t){return t=Math.max(t||0,0),new p([...this.color.map(ct(t)),this.valpha],this.model)},alpha(t){return t!==void 0?new p([...this.color,Math.max(0,Math.min(1,t))],this.model):this.valpha},red:u("rgb",0,b(255)),green:u("rgb",1,b(255)),blue:u("rgb",2,b(255)),hue:u(["hsl","hsv","hsl","hwb","hcg"],0,t=>(t%360+360)%360),saturationl:u("hsl",1,b(100)),lightness:u("hsl",2,b(100)),saturationv:u("hsv",1,b(100)),value:u("hsv",2,b(100)),chroma:u("hcg",1,b(100)),gray:u("hcg",2,b(100)),white:u("hwb",1,b(100)),wblack:u("hwb",2,b(100)),cyan:u("cmyk",0,b(100)),magenta:u("cmyk",1,b(100)),yellow:u("cmyk",2,b(100)),black:u("cmyk",3,b(100)),x:u("xyz",0,b(95.047)),y:u("xyz",1,b(100)),z:u("xyz",2,b(108.833)),l:u("lab",0,b(100)),a:u("lab",1),b:u("lab",2),keyword(t){return t!==void 0?new p(t):m[this.model].keyword(this.color)},hex(t){return t!==void 0?new p(t):M.to.hex(...this.rgb().round().color)},hexa(t){if(t!==void 0)return new p(t);let n=this.rgb().round().color,e=Math.round(this.valpha*255).toString(16).toUpperCase();return e.length===1&&(e="0"+e),M.to.hex(...n)+e},rgbNumber(){let t=this.rgb().color;return(t[0]&255)<<16|(t[1]&255)<<8|t[2]&255},luminosity(){let t=this.rgb().color,n=[];for(let[e,r]of t.entries()){let o=r/255;n[e]=o<=.04045?o/12.92:((o+.055)/1.055)**2.4}return .2126*n[0]+.7152*n[1]+.0722*n[2]},contrast(t){let n=this.luminosity(),e=t.luminosity();return n>e?(n+.05)/(e+.05):(e+.05)/(n+.05)},level(t){let n=this.contrast(t);return n>=7?"AAA":n>=4.5?"AA":""},isDark(){let t=this.rgb().color;return(t[0]*2126+t[1]*7152+t[2]*722)/1e4<128},isLight(){return!this.isDark()},negate(){let t=this.rgb();for(let n=0;n<3;n++)t.color[n]=255-t.color[n];return t},lighten(t){let n=this.hsl();return n.color[2]+=n.color[2]*t,n},darken(t){let n=this.hsl();return n.color[2]-=n.color[2]*t,n},saturate(t){let n=this.hsl();return n.color[1]+=n.color[1]*t,n},desaturate(t){let n=this.hsl();return n.color[1]-=n.color[1]*t,n},whiten(t){let n=this.hwb();return n.color[1]+=n.color[1]*t,n},blacken(t){let n=this.hwb();return n.color[2]+=n.color[2]*t,n},grayscale(){let t=this.rgb().color,n=t[0]*.3+t[1]*.59+t[2]*.11;return p.rgb(n,n,n)},fade(t){return this.alpha(this.valpha-this.valpha*t)},opaquer(t){return this.alpha(this.valpha+this.valpha*t)},rotate(t){let n=this.hsl(),e=n.color[0];return e=(e+t)%360,e=e<0?360+e:e,n.color[0]=e,n},mix(t,n){if(!t||!t.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof t);let e=t.rgb(),r=this.rgb(),o=n===void 0?.5:n,s=2*o-1,c=e.alpha()-r.alpha(),a=((s*c===-1?s:(s+c)/(1+s*c))+1)/2,l=1-a;return p.rgb(a*e.red()+l*r.red(),a*e.green()+l*r.green(),a*e.blue()+l*r.blue(),e.alpha()*o+r.alpha()*(1-o))}};for(let t of Object.keys(m)){if(q.includes(t))continue;let{channels:n}=m[t];p.prototype[t]=function(...e){return this.model===t?new p(this):e.length>0?new p(e,t):new p([...at(m[this.model][t].raw(this.color)),this.valpha],t)},p[t]=function(...e){let r=e[0];return typeof r=="number"&&(r=L(e,n)),new p(r,t)}}function st(t,n){return Number(t.toFixed(n))}function ct(t){return function(n){return st(n,t)}}function u(t,n,e){t=Array.isArray(t)?t:[t];for(let r of t)(O[r]||=[])[n]=e;return t=t[0],function(r){let o;return r!==void 0?(e&&(r=e(r)),o=this[t](),o.color[n]=r,o):(o=this[t]().color[n],e&&(o=e(o)),o)}}function b(t){return function(n){return Math.max(0,Math.min(t,n))}}function at(t){return Array.isArray(t)?t:[t]}function L(t,n){for(let e=0;e<n;e++)typeof t[e]!="number"&&(t[e]=0);return t}var W=p;var It={channel:"channel",channels:"channels",colorField:"color-field",colorFieldScope:"scope--color-field",colorMode:"color-mode",colorModeContainer:"color-mode-container",container:"container",control:"control",controlAndScope:"control-and-scope",controlSection:"control-section",deleteColor:"delete-color",header:"header",hexAndChannelsGroup:"hex-and-channels-group",hexOptions:"color-hex-options",hueScope:"scope--hue",hueSlider:"hue-slider",opacityScope:"scope--opacity",opacitySlider:"opacity-slider",preview:"preview",previewAndSliders:"preview-and-sliders",saveColor:"save-color",savedColor:"saved-color",savedColors:"saved-colors",savedColorsButtons:"saved-colors-buttons",savedColorsSection:"saved-colors-section",scope:"scope",section:"section",slider:"slider",sliders:"sliders",splitSection:"section--split"},Ot=W("#007AC2"),Lt="calcite-color-",zt={r:255,g:255,b:255},lt={h:360,s:100,v:100},Et=lt.h-1,Rt={min:0,max:100},it={s:{gap:parseInt(E),slider:{height:12},thumb:{radius:7},preview:{size:20},minWidth:200},m:{gap:parseInt(R),slider:{height:12},thumb:{radius:7},preview:{size:24},minWidth:240},l:{gap:parseInt($),slider:{height:12},thumb:{radius:7},preview:{size:32},minWidth:304}},$t=1,Bt={minus:"minus",plus:"plus"},Tt=/^[0-9A-F]$/i,ht=/^#[0-9A-F]{3}$/i,ut=/^#[0-9A-F]{6}$/i,ft=/^#[0-9A-F]{4}$/i,dt=/^#[0-9A-F]{8}$/i,Gt=t=>Number((t*100).toFixed()),qt=t=>Number((t/100).toFixed(2));function j(t,n=!1){return z(t,n)||bt(t,n)}function D(t,n,e){return t?t.length===n&&e.test(t):!1}function z(t,n=!1){return D(t,n?5:4,n?ft:ht)}function bt(t,n=!1){return D(t,n?9:7,n?dt:ut)}function Wt(t,n=!1,e=!1){if(t=t.toLowerCase(),t.startsWith("#")||(t=`#${t}`),z(t,n))return P(X(t,n));if(n&&e&&j(t,!1)){let r=z(t,!1);return P(X(`${t}${r?"f":"ff"}`,!0))}return t}function Pt(t,n=!1){return n?t.hexa():t.hex()}function P(t){let{r:n,g:e,b:r}=t,o=N(n),s=N(e),c=N(r),a="a"in t?N(t.a*255):"";return`#${o}${s}${c}${a}`.toLowerCase()}function N(t){return t.toString(16).padStart(2,"0")}function Xt(t){let n={...t,a:t.alpha??1};return delete n.alpha,n}function jt(t){let n={...t,alpha:t.a??1};return delete n.a,n}function X(t,n=!1){if(!j(t,n))return null;t=t.replace("#","");let e,r,o,s;if(t.length===3||t.length===4){let[a,l,h,_]=t.split("");e=parseInt(`${a}${a}`,16),r=parseInt(`${l}${l}`,16),o=parseInt(`${h}${h}`,16),s=parseInt(`${_}${_}`,16)/255}else e=parseInt(t.slice(0,2),16),r=parseInt(t.slice(2,4),16),o=parseInt(t.slice(4,6),16),s=parseInt(t.slice(6,8),16)/255;return isNaN(s)?{r:e,g:r,b:o}:{r:e,g:r,b:o,a:s}}var U=t=>t,f=U({HEX:"hex",HEXA:"hexa",RGB_CSS:"rgb-css",RGBA_CSS:"rgba-css",HSL_CSS:"hsl-css",HSLA_CSS:"hsla-css"}),d=U({RGB:"rgb",RGBA:"rgba",HSL:"hsl",HSLA:"hsla",HSV:"hsv",HSVA:"hsva"});function Dt(t){if(typeof t=="string"){if(t.startsWith("#")){let{length:n}=t;if(n===4||n===7)return f.HEX;if(n===5||n===9)return f.HEXA}if(t.startsWith("rgba("))return f.RGBA_CSS;if(t.startsWith("rgb("))return f.RGB_CSS;if(t.startsWith("hsl("))return f.HSL_CSS;if(t.startsWith("hsla("))return f.HSLA_CSS}if(typeof t=="object"){if(C(t,"r","g","b"))return C(t,"a")?d.RGBA:d.RGB;if(C(t,"h","s","l"))return C(t,"a")?d.HSLA:d.HSL;if(C(t,"h","s","v"))return C(t,"a")?d.HSVA:d.HSV}return null}function C(t,...n){return n.every(e=>e&&t&&`${e}`in t)}function Ut(t,n){return t?.rgb().array().toString()===n?.rgb().array().toString()}function Kt(t){return t===f.HEXA||t===f.RGBA_CSS||t===f.HSLA_CSS||t===d.RGBA||t===d.HSLA||t===d.HSVA}function Yt(t){return t===f.HEX?f.HEXA:t===f.RGB_CSS?f.RGBA_CSS:t===f.HSL_CSS?f.HSLA_CSS:t===d.RGB?d.RGBA:t===d.HSL?d.HSLA:t===d.HSV?d.HSVA:t}function Jt(t){return t===f.HEXA?f.HEX:t===f.RGBA_CSS?f.RGB_CSS:t===f.HSLA_CSS?f.HSL_CSS:t===d.RGBA?d.RGB:t===d.HSLA?d.HSL:t===d.HSVA?d.HSV:t}var pt=1,K=pt*2;function Zt(t,n,e){let r=e?it.l.preview.size:n.preview.size,o=t-K,s=n.gap*3;return Math.max(o-s-r,0)}function Qt(t){let e=t-K;return{width:Math.max(e,0),height:Math.max(Math.floor(e/1.8),0)}}export{W as a,It as b,Ot as c,Lt as d,zt as e,lt as f,Et as g,Rt as h,it as i,$t as j,Bt as k,Tt as l,Gt as m,qt as n,j as o,z as p,bt as q,Wt as r,Pt as s,P as t,Xt as u,jt as v,X as w,f as x,Dt as y,Ut as z,Kt as A,Yt as B,Jt as C,Zt as D,Qt as E};
3
+ v3.3.0-next.40 */
4
+ import{e as E,f as R,g as $}from"./FLW5LDYN.js";var y={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};var B=Object.create(null);for(let t in y)Object.hasOwn(y,t)&&(B[y[t]]=t);var g={to:{},get:{}};g.get=function(t){let n=t.slice(0,3).toLowerCase(),e,r;switch(n){case"hsl":{e=g.get.hsl(t),r="hsl";break}case"hwb":{e=g.get.hwb(t),r="hwb";break}default:{e=g.get.rgb(t),r="rgb";break}}return e?{model:r,value:e}:null};g.get.rgb=function(t){if(!t)return null;let n=/^#([a-f\d]{3,4})$/i,e=/^#([a-f\d]{6})([a-f\d]{2})?$/i,r=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|/]\s*([+-]?[\d.]+)(%?)\s*)?\)$/,o=/^rgba?\(\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*(?:[,|/]\s*([+-]?[\d.]+)(%?)\s*)?\)$/,s=/^(\w+)$/,c=[0,0,0,1],a,l,h;if(a=t.match(e)){for(h=a[2],a=a[1],l=0;l<3;l++){let _=l*2;c[l]=Number.parseInt(a.slice(_,_+2),16)}h&&(c[3]=Number.parseInt(h,16)/255)}else if(a=t.match(n)){for(a=a[1],h=a[3],l=0;l<3;l++)c[l]=Number.parseInt(a[l]+a[l],16);h&&(c[3]=Number.parseInt(h+h,16)/255)}else if(a=t.match(r)){for(l=0;l<3;l++)c[l]=Number.parseInt(a[l+1],10);a[4]&&(c[3]=a[5]?Number.parseFloat(a[4])*.01:Number.parseFloat(a[4]))}else if(a=t.match(o)){for(l=0;l<3;l++)c[l]=Math.round(Number.parseFloat(a[l+1])*2.55);a[4]&&(c[3]=a[5]?Number.parseFloat(a[4])*.01:Number.parseFloat(a[4]))}else return(a=t.match(s))?a[1]==="transparent"?[0,0,0,0]:Object.hasOwn(y,a[1])?(c=y[a[1]],c[3]=1,c):null:null;for(l=0;l<3;l++)c[l]=k(c[l],0,255);return c[3]=k(c[3],0,1),c};g.get.hsl=function(t){if(!t)return null;let n=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*(?:[,|/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,e=t.match(n);if(e){let r=Number.parseFloat(e[4]),o=(Number.parseFloat(e[1])%360+360)%360,s=k(Number.parseFloat(e[2]),0,100),c=k(Number.parseFloat(e[3]),0,100),a=k(Number.isNaN(r)?1:r,0,1);return[o,s,c,a]}return null};g.get.hwb=function(t){if(!t)return null;let n=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d.]+)%\s*,\s*([+-]?[\d.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,e=t.match(n);if(e){let r=Number.parseFloat(e[4]),o=(Number.parseFloat(e[1])%360+360)%360,s=k(Number.parseFloat(e[2]),0,100),c=k(Number.parseFloat(e[3]),0,100),a=k(Number.isNaN(r)?1:r,0,1);return[o,s,c,a]}return null};g.to.hex=function(...t){return"#"+H(t[0])+H(t[1])+H(t[2])+(t[3]<1?H(Math.round(t[3]*255)):"")};g.to.rgb=function(...t){return t.length<4||t[3]===1?"rgb("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+")":"rgba("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+", "+t[3]+")"};g.to.rgb.percent=function(...t){let n=Math.round(t[0]/255*100),e=Math.round(t[1]/255*100),r=Math.round(t[2]/255*100);return t.length<4||t[3]===1?"rgb("+n+"%, "+e+"%, "+r+"%)":"rgba("+n+"%, "+e+"%, "+r+"%, "+t[3]+")"};g.to.hsl=function(...t){return t.length<4||t[3]===1?"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)":"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+t[3]+")"};g.to.hwb=function(...t){let n="";return t.length>=4&&t[3]!==1&&(n=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+n+")"};g.to.keyword=function(...t){return B[t.slice(0,3)]};function k(t,n,e){return Math.min(Math.max(n,t),e)}function H(t){let n=Math.round(t).toString(16).toUpperCase();return n.length<2?"0"+n:n}var M=g;var T={};for(let t of Object.keys(y))T[y[t]]=t;var i={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},oklab:{channels:3,labels:["okl","oka","okb"]},lch:{channels:3,labels:"lch"},oklch:{channels:3,labels:["okl","okc","okh"]},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}},S=i,w=(6/29)**3;function x(t){let n=t>.0031308?1.055*t**.4166666666666667-.055:t*12.92;return Math.min(Math.max(0,n),1)}function A(t){return t>.04045?((t+.055)/1.055)**2.4:t/12.92}for(let t of Object.keys(i)){if(!("channels"in i[t]))throw new Error("missing channels property: "+t);if(!("labels"in i[t]))throw new Error("missing channel labels property: "+t);if(i[t].labels.length!==i[t].channels)throw new Error("channel and label counts mismatch: "+t);let{channels:n,labels:e}=i[t];delete i[t].channels,delete i[t].labels,Object.defineProperty(i[t],"channels",{value:n}),Object.defineProperty(i[t],"labels",{value:e})}i.rgb.hsl=function(t){let n=t[0]/255,e=t[1]/255,r=t[2]/255,o=Math.min(n,e,r),s=Math.max(n,e,r),c=s-o,a,l;switch(s){case o:{a=0;break}case n:{a=(e-r)/c;break}case e:{a=2+(r-n)/c;break}case r:{a=4+(n-e)/c;break}}a=Math.min(a*60,360),a<0&&(a+=360);let h=(o+s)/2;return s===o?l=0:h<=.5?l=c/(s+o):l=c/(2-s-o),[a,l*100,h*100]};i.rgb.hsv=function(t){let n,e,r,o,s,c=t[0]/255,a=t[1]/255,l=t[2]/255,h=Math.max(c,a,l),_=h-Math.min(c,a,l),v=function(Y){return(h-Y)/6/_+1/2};if(_===0)o=0,s=0;else{switch(s=_/h,n=v(c),e=v(a),r=v(l),h){case c:{o=r-e;break}case a:{o=1/3+n-r;break}case l:{o=2/3+e-n;break}}o<0?o+=1:o>1&&(o-=1)}return[o*360,s*100,h*100]};i.rgb.hwb=function(t){let n=t[0],e=t[1],r=t[2],o=i.rgb.hsl(t)[0],s=1/255*Math.min(n,Math.min(e,r));return r=1-1/255*Math.max(n,Math.max(e,r)),[o,s*100,r*100]};i.rgb.oklab=function(t){let n=A(t[0]/255),e=A(t[1]/255),r=A(t[2]/255),o=Math.cbrt(.4122214708*n+.5363325363*e+.0514459929*r),s=Math.cbrt(.2119034982*n+.6806995451*e+.1073969566*r),c=Math.cbrt(.0883024619*n+.2817188376*e+.6299787005*r),a=.2104542553*o+.793617785*s-.0040720468*c,l=1.9779984951*o-2.428592205*s+.4505937099*c,h=.0259040371*o+.7827717662*s-.808675766*c;return[a*100,l*100,h*100]};i.rgb.cmyk=function(t){let n=t[0]/255,e=t[1]/255,r=t[2]/255,o=Math.min(1-n,1-e,1-r),s=(1-n-o)/(1-o)||0,c=(1-e-o)/(1-o)||0,a=(1-r-o)/(1-o)||0;return[s*100,c*100,a*100,o*100]};function J(t,n){return(t[0]-n[0])**2+(t[1]-n[1])**2+(t[2]-n[2])**2}i.rgb.keyword=function(t){let n=T[t];if(n)return n;let e=Number.POSITIVE_INFINITY,r;for(let o of Object.keys(y)){let s=y[o],c=J(t,s);c<e&&(e=c,r=o)}return r};i.keyword.rgb=function(t){return y[t]};i.rgb.xyz=function(t){let n=A(t[0]/255),e=A(t[1]/255),r=A(t[2]/255),o=n*.4124564+e*.3575761+r*.1804375,s=n*.2126729+e*.7151522+r*.072175,c=n*.0193339+e*.119192+r*.9503041;return[o*100,s*100,c*100]};i.rgb.lab=function(t){let n=i.rgb.xyz(t),e=n[0],r=n[1],o=n[2];e/=95.047,r/=100,o/=108.883,e=e>w?e**(1/3):7.787*e+16/116,r=r>w?r**(1/3):7.787*r+16/116,o=o>w?o**(1/3):7.787*o+16/116;let s=116*r-16,c=500*(e-r),a=200*(r-o);return[s,c,a]};i.hsl.rgb=function(t){let n=t[0]/360,e=t[1]/100,r=t[2]/100,o,s;if(e===0)return s=r*255,[s,s,s];let c=r<.5?r*(1+e):r+e-r*e,a=2*r-c,l=[0,0,0];for(let h=0;h<3;h++)o=n+1/3*-(h-1),o<0&&o++,o>1&&o--,6*o<1?s=a+(c-a)*6*o:2*o<1?s=c:3*o<2?s=a+(c-a)*(2/3-o)*6:s=a,l[h]=s*255;return l};i.hsl.hsv=function(t){let n=t[0],e=t[1]/100,r=t[2]/100,o=e,s=Math.max(r,.01);r*=2,e*=r<=1?r:2-r,o*=s<=1?s:2-s;let c=(r+e)/2,a=r===0?2*o/(s+o):2*e/(r+e);return[n,a*100,c*100]};i.hsv.rgb=function(t){let n=t[0]/60,e=t[1]/100,r=t[2]/100,o=Math.floor(n)%6,s=n-Math.floor(n),c=255*r*(1-e),a=255*r*(1-e*s),l=255*r*(1-e*(1-s));switch(r*=255,o){case 0:return[r,l,c];case 1:return[a,r,c];case 2:return[c,r,l];case 3:return[c,a,r];case 4:return[l,c,r];case 5:return[r,c,a]}};i.hsv.hsl=function(t){let n=t[0],e=t[1]/100,r=t[2]/100,o=Math.max(r,.01),s,c;c=(2-e)*r;let a=(2-e)*o;return s=e*o,s/=a<=1?a:2-a,s=s||0,c/=2,[n,s*100,c*100]};i.hwb.rgb=function(t){let n=t[0]/360,e=t[1]/100,r=t[2]/100,o=e+r,s;o>1&&(e/=o,r/=o);let c=Math.floor(6*n),a=1-r;s=6*n-c,(c&1)!==0&&(s=1-s);let l=e+s*(a-e),h,_,v;switch(c){default:case 6:case 0:{h=a,_=l,v=e;break}case 1:{h=l,_=a,v=e;break}case 2:{h=e,_=a,v=l;break}case 3:{h=e,_=l,v=a;break}case 4:{h=l,_=e,v=a;break}case 5:{h=a,_=e,v=l;break}}return[h*255,_*255,v*255]};i.cmyk.rgb=function(t){let n=t[0]/100,e=t[1]/100,r=t[2]/100,o=t[3]/100,s=1-Math.min(1,n*(1-o)+o),c=1-Math.min(1,e*(1-o)+o),a=1-Math.min(1,r*(1-o)+o);return[s*255,c*255,a*255]};i.xyz.rgb=function(t){let n=t[0]/100,e=t[1]/100,r=t[2]/100,o,s,c;return o=n*3.2404542+e*-1.5371385+r*-.4985314,s=n*-.969266+e*1.8760108+r*.041556,c=n*.0556434+e*-.2040259+r*1.0572252,o=x(o),s=x(s),c=x(c),[o*255,s*255,c*255]};i.xyz.lab=function(t){let n=t[0],e=t[1],r=t[2];n/=95.047,e/=100,r/=108.883,n=n>w?n**(1/3):7.787*n+16/116,e=e>w?e**(1/3):7.787*e+16/116,r=r>w?r**(1/3):7.787*r+16/116;let o=116*e-16,s=500*(n-e),c=200*(e-r);return[o,s,c]};i.xyz.oklab=function(t){let n=t[0]/100,e=t[1]/100,r=t[2]/100,o=Math.cbrt(.8189330101*n+.3618667424*e-.1288597137*r),s=Math.cbrt(.0329845436*n+.9293118715*e+.0361456387*r),c=Math.cbrt(.0482003018*n+.2643662691*e+.633851707*r),a=.2104542553*o+.793617785*s-.0040720468*c,l=1.9779984951*o-2.428592205*s+.4505937099*c,h=.0259040371*o+.7827717662*s-.808675766*c;return[a*100,l*100,h*100]};i.oklab.oklch=function(t){return i.lab.lch(t)};i.oklab.xyz=function(t){let n=t[0]/100,e=t[1]/100,r=t[2]/100,o=(.999999998*n+.396337792*e+.215803758*r)**3,s=(1.000000008*n-.105561342*e-.063854175*r)**3,c=(1.000000055*n-.089484182*e-1.291485538*r)**3,a=1.227013851*o-.55779998*s+.281256149*c,l=-.040580178*o+1.11225687*s-.071676679*c,h=-.076381285*o-.421481978*s+1.58616322*c;return[a*100,l*100,h*100]};i.oklab.rgb=function(t){let n=t[0]/100,e=t[1]/100,r=t[2]/100,o=(n+.3963377774*e+.2158037573*r)**3,s=(n-.1055613458*e-.0638541728*r)**3,c=(n-.0894841775*e-1.291485548*r)**3,a=x(4.0767416621*o-3.3077115913*s+.2309699292*c),l=x(-1.2684380046*o+2.6097574011*s-.3413193965*c),h=x(-.0041960863*o-.7034186147*s+1.707614701*c);return[a*255,l*255,h*255]};i.oklch.oklab=function(t){return i.lch.lab(t)};i.lab.xyz=function(t){let n=t[0],e=t[1],r=t[2],o,s,c;s=(n+16)/116,o=e/500+s,c=s-r/200;let a=s**3,l=o**3,h=c**3;return s=a>w?a:(s-16/116)/7.787,o=l>w?l:(o-16/116)/7.787,c=h>w?h:(c-16/116)/7.787,o*=95.047,s*=100,c*=108.883,[o,s,c]};i.lab.lch=function(t){let n=t[0],e=t[1],r=t[2],o;o=Math.atan2(r,e)*360/2/Math.PI,o<0&&(o+=360);let c=Math.sqrt(e*e+r*r);return[n,c,o]};i.lch.lab=function(t){let n=t[0],e=t[1],o=t[2]/360*2*Math.PI,s=e*Math.cos(o),c=e*Math.sin(o);return[n,s,c]};i.rgb.ansi16=function(t,n=null){let[e,r,o]=t,s=n===null?i.rgb.hsv(t)[2]:n;if(s=Math.round(s/50),s===0)return 30;let c=30+(Math.round(o/255)<<2|Math.round(r/255)<<1|Math.round(e/255));return s===2&&(c+=60),c};i.hsv.ansi16=function(t){return i.rgb.ansi16(i.hsv.rgb(t),t[2])};i.rgb.ansi256=function(t){let n=t[0],e=t[1],r=t[2];return n>>4===e>>4&&e>>4===r>>4?n<8?16:n>248?231:Math.round((n-8)/247*24)+232:16+36*Math.round(n/255*5)+6*Math.round(e/255*5)+Math.round(r/255*5)};i.ansi16.rgb=function(t){t=t[0];let n=t%10;if(n===0||n===7)return t>50&&(n+=3.5),n=n/10.5*255,[n,n,n];let e=(Math.trunc(t>50)+1)*.5,r=(n&1)*e*255,o=(n>>1&1)*e*255,s=(n>>2&1)*e*255;return[r,o,s]};i.ansi256.rgb=function(t){if(t=t[0],t>=232){let s=(t-232)*10+8;return[s,s,s]}t-=16;let n,e=Math.floor(t/36)/5*255,r=Math.floor((n=t%36)/6)/5*255,o=n%6/5*255;return[e,r,o]};i.rgb.hex=function(t){let e=(((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255)).toString(16).toUpperCase();return"000000".slice(e.length)+e};i.hex.rgb=function(t){let n=t.toString(16).match(/[a-f\d]{6}|[a-f\d]{3}/i);if(!n)return[0,0,0];let e=n[0];n[0].length===3&&(e=[...e].map(a=>a+a).join(""));let r=Number.parseInt(e,16),o=r>>16&255,s=r>>8&255,c=r&255;return[o,s,c]};i.rgb.hcg=function(t){let n=t[0]/255,e=t[1]/255,r=t[2]/255,o=Math.max(Math.max(n,e),r),s=Math.min(Math.min(n,e),r),c=o-s,a,l=c<1?s/(1-c):0;return c<=0?a=0:o===n?a=(e-r)/c%6:o===e?a=2+(r-n)/c:a=4+(n-e)/c,a/=6,a%=1,[a*360,c*100,l*100]};i.hsl.hcg=function(t){let n=t[1]/100,e=t[2]/100,r=e<.5?2*n*e:2*n*(1-e),o=0;return r<1&&(o=(e-.5*r)/(1-r)),[t[0],r*100,o*100]};i.hsv.hcg=function(t){let n=t[1]/100,e=t[2]/100,r=n*e,o=0;return r<1&&(o=(e-r)/(1-r)),[t[0],r*100,o*100]};i.hcg.rgb=function(t){let n=t[0]/360,e=t[1]/100,r=t[2]/100;if(e===0)return[r*255,r*255,r*255];let o=[0,0,0],s=n%1*6,c=s%1,a=1-c,l=0;switch(Math.floor(s)){case 0:{o[0]=1,o[1]=c,o[2]=0;break}case 1:{o[0]=a,o[1]=1,o[2]=0;break}case 2:{o[0]=0,o[1]=1,o[2]=c;break}case 3:{o[0]=0,o[1]=a,o[2]=1;break}case 4:{o[0]=c,o[1]=0,o[2]=1;break}default:o[0]=1,o[1]=0,o[2]=a}return l=(1-e)*r,[(e*o[0]+l)*255,(e*o[1]+l)*255,(e*o[2]+l)*255]};i.hcg.hsv=function(t){let n=t[1]/100,e=t[2]/100,r=n+e*(1-n),o=0;return r>0&&(o=n/r),[t[0],o*100,r*100]};i.hcg.hsl=function(t){let n=t[1]/100,r=t[2]/100*(1-n)+.5*n,o=0;return r>0&&r<.5?o=n/(2*r):r>=.5&&r<1&&(o=n/(2*(1-r))),[t[0],o*100,r*100]};i.hcg.hwb=function(t){let n=t[1]/100,e=t[2]/100,r=n+e*(1-n);return[t[0],(r-n)*100,(1-r)*100]};i.hwb.hcg=function(t){let n=t[1]/100,r=1-t[2]/100,o=r-n,s=0;return o<1&&(s=(r-o)/(1-o)),[t[0],o*100,s*100]};i.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};i.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};i.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};i.gray.hsl=function(t){return[0,0,t[0]]};i.gray.hsv=i.gray.hsl;i.gray.hwb=function(t){return[0,100,t[0]]};i.gray.cmyk=function(t){return[0,0,0,t[0]]};i.gray.lab=function(t){return[t[0],0,0]};i.gray.hex=function(t){let n=Math.round(t[0]/100*255)&255,r=((n<<16)+(n<<8)+n).toString(16).toUpperCase();return"000000".slice(r.length)+r};i.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]};function Z(){let t={},n=Object.keys(S);for(let{length:e}=n,r=0;r<e;r++)t[n[r]]={distance:-1,parent:null};return t}function Q(t){let n=Z(),e=[t];for(n[t].distance=0;e.length>0;){let r=e.pop(),o=Object.keys(S[r]);for(let{length:s}=o,c=0;c<s;c++){let a=o[c],l=n[a];l.distance===-1&&(l.distance=n[r].distance+1,l.parent=r,e.unshift(a))}}return n}function V(t,n){return function(e){return n(t(e))}}function tt(t,n){let e=[n[t].parent,t],r=S[n[t].parent][t],o=n[t].parent;for(;n[o].parent;)e.unshift(n[o].parent),r=V(S[n[o].parent][o],r),o=n[o].parent;return r.conversion=e,r}function nt(t){let n=Q(t),e={},r=Object.keys(n);for(let{length:o}=r,s=0;s<o;s++){let c=r[s];n[c].parent!==null&&(e[c]=tt(c,n))}return e}var G=nt;var F={},et=Object.keys(S);function rt(t){let n=function(...e){let r=e[0];return r==null?r:(r.length>1&&(e=r),t(e))};return"conversion"in t&&(n.conversion=t.conversion),n}function ot(t){let n=function(...e){let r=e[0];if(r==null)return r;r.length>1&&(e=r);let o=t(e);if(typeof o=="object")for(let{length:s}=o,c=0;c<s;c++)o[c]=Math.round(o[c]);return o};return"conversion"in t&&(n.conversion=t.conversion),n}for(let t of et){F[t]={},Object.defineProperty(F[t],"channels",{value:S[t].channels}),Object.defineProperty(F[t],"labels",{value:S[t].labels});let n=G(t),e=Object.keys(n);for(let r of e){let o=n[r];F[t][r]=ot(o),F[t][r].raw=rt(o)}}var m=F;var q=["keyword","gray","hex"],I={};for(let t of Object.keys(m))I[[...m[t].labels].sort().join("")]=t;var O={};function p(t,n){if(!(this instanceof p))return new p(t,n);if(n&&n in q&&(n=null),n&&!(n in m))throw new Error("Unknown model: "+n);let e,r;if(t==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(t instanceof p)this.model=t.model,this.color=[...t.color],this.valpha=t.valpha;else if(typeof t=="string"){let o=M.get(t);if(o===null)throw new Error("Unable to parse color from string: "+t);this.model=o.model,r=m[this.model].channels,this.color=o.value.slice(0,r),this.valpha=typeof o.value[r]=="number"?o.value[r]:1}else if(t.length>0){this.model=n||"rgb",r=m[this.model].channels;let o=Array.prototype.slice.call(t,0,r);this.color=L(o,r),this.valpha=typeof t[r]=="number"?t[r]:1}else if(typeof t=="number")this.model="rgb",this.color=[t>>16&255,t>>8&255,t&255],this.valpha=1;else{this.valpha=1;let o=Object.keys(t);"alpha"in t&&(o.splice(o.indexOf("alpha"),1),this.valpha=typeof t.alpha=="number"?t.alpha:0);let s=o.sort().join("");if(!(s in I))throw new Error("Unable to parse color from object: "+JSON.stringify(t));this.model=I[s];let{labels:c}=m[this.model],a=[];for(e=0;e<c.length;e++)a.push(t[c[e]]);this.color=L(a)}if(O[this.model])for(r=m[this.model].channels,e=0;e<r;e++){let o=O[this.model][e];o&&(this.color[e]=o(this.color[e]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}p.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(t){let n=this.model in M.to?this:this.rgb();n=n.round(typeof t=="number"?t:1);let e=n.valpha===1?n.color:[...n.color,this.valpha];return M.to[n.model](...e)},percentString(t){let n=this.rgb().round(typeof t=="number"?t:1),e=n.valpha===1?n.color:[...n.color,this.valpha];return M.to.rgb.percent(...e)},array(){return this.valpha===1?[...this.color]:[...this.color,this.valpha]},object(){let t={},{channels:n}=m[this.model],{labels:e}=m[this.model];for(let r=0;r<n;r++)t[e[r]]=this.color[r];return this.valpha!==1&&(t.alpha=this.valpha),t},unitArray(){let t=this.rgb().color;return t[0]/=255,t[1]/=255,t[2]/=255,this.valpha!==1&&t.push(this.valpha),t},unitObject(){let t=this.rgb().object();return t.r/=255,t.g/=255,t.b/=255,this.valpha!==1&&(t.alpha=this.valpha),t},round(t){return t=Math.max(t||0,0),new p([...this.color.map(ct(t)),this.valpha],this.model)},alpha(t){return t!==void 0?new p([...this.color,Math.max(0,Math.min(1,t))],this.model):this.valpha},red:u("rgb",0,b(255)),green:u("rgb",1,b(255)),blue:u("rgb",2,b(255)),hue:u(["hsl","hsv","hsl","hwb","hcg"],0,t=>(t%360+360)%360),saturationl:u("hsl",1,b(100)),lightness:u("hsl",2,b(100)),saturationv:u("hsv",1,b(100)),value:u("hsv",2,b(100)),chroma:u("hcg",1,b(100)),gray:u("hcg",2,b(100)),white:u("hwb",1,b(100)),wblack:u("hwb",2,b(100)),cyan:u("cmyk",0,b(100)),magenta:u("cmyk",1,b(100)),yellow:u("cmyk",2,b(100)),black:u("cmyk",3,b(100)),x:u("xyz",0,b(95.047)),y:u("xyz",1,b(100)),z:u("xyz",2,b(108.833)),l:u("lab",0,b(100)),a:u("lab",1),b:u("lab",2),keyword(t){return t!==void 0?new p(t):m[this.model].keyword(this.color)},hex(t){return t!==void 0?new p(t):M.to.hex(...this.rgb().round().color)},hexa(t){if(t!==void 0)return new p(t);let n=this.rgb().round().color,e=Math.round(this.valpha*255).toString(16).toUpperCase();return e.length===1&&(e="0"+e),M.to.hex(...n)+e},rgbNumber(){let t=this.rgb().color;return(t[0]&255)<<16|(t[1]&255)<<8|t[2]&255},luminosity(){let t=this.rgb().color,n=[];for(let[e,r]of t.entries()){let o=r/255;n[e]=o<=.04045?o/12.92:((o+.055)/1.055)**2.4}return .2126*n[0]+.7152*n[1]+.0722*n[2]},contrast(t){let n=this.luminosity(),e=t.luminosity();return n>e?(n+.05)/(e+.05):(e+.05)/(n+.05)},level(t){let n=this.contrast(t);return n>=7?"AAA":n>=4.5?"AA":""},isDark(){let t=this.rgb().color;return(t[0]*2126+t[1]*7152+t[2]*722)/1e4<128},isLight(){return!this.isDark()},negate(){let t=this.rgb();for(let n=0;n<3;n++)t.color[n]=255-t.color[n];return t},lighten(t){let n=this.hsl();return n.color[2]+=n.color[2]*t,n},darken(t){let n=this.hsl();return n.color[2]-=n.color[2]*t,n},saturate(t){let n=this.hsl();return n.color[1]+=n.color[1]*t,n},desaturate(t){let n=this.hsl();return n.color[1]-=n.color[1]*t,n},whiten(t){let n=this.hwb();return n.color[1]+=n.color[1]*t,n},blacken(t){let n=this.hwb();return n.color[2]+=n.color[2]*t,n},grayscale(){let t=this.rgb().color,n=t[0]*.3+t[1]*.59+t[2]*.11;return p.rgb(n,n,n)},fade(t){return this.alpha(this.valpha-this.valpha*t)},opaquer(t){return this.alpha(this.valpha+this.valpha*t)},rotate(t){let n=this.hsl(),e=n.color[0];return e=(e+t)%360,e=e<0?360+e:e,n.color[0]=e,n},mix(t,n){if(!t||!t.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof t);let e=t.rgb(),r=this.rgb(),o=n===void 0?.5:n,s=2*o-1,c=e.alpha()-r.alpha(),a=((s*c===-1?s:(s+c)/(1+s*c))+1)/2,l=1-a;return p.rgb(a*e.red()+l*r.red(),a*e.green()+l*r.green(),a*e.blue()+l*r.blue(),e.alpha()*o+r.alpha()*(1-o))}};for(let t of Object.keys(m)){if(q.includes(t))continue;let{channels:n}=m[t];p.prototype[t]=function(...e){return this.model===t?new p(this):e.length>0?new p(e,t):new p([...at(m[this.model][t].raw(this.color)),this.valpha],t)},p[t]=function(...e){let r=e[0];return typeof r=="number"&&(r=L(e,n)),new p(r,t)}}function st(t,n){return Number(t.toFixed(n))}function ct(t){return function(n){return st(n,t)}}function u(t,n,e){t=Array.isArray(t)?t:[t];for(let r of t)(O[r]||=[])[n]=e;return t=t[0],function(r){let o;return r!==void 0?(e&&(r=e(r)),o=this[t](),o.color[n]=r,o):(o=this[t]().color[n],e&&(o=e(o)),o)}}function b(t){return function(n){return Math.max(0,Math.min(t,n))}}function at(t){return Array.isArray(t)?t:[t]}function L(t,n){for(let e=0;e<n;e++)typeof t[e]!="number"&&(t[e]=0);return t}var W=p;var It={channel:"channel",channels:"channels",colorField:"color-field",colorFieldScope:"scope--color-field",colorMode:"color-mode",colorModeContainer:"color-mode-container",container:"container",control:"control",controlAndScope:"control-and-scope",controlSection:"control-section",deleteColor:"delete-color",header:"header",hexAndChannelsGroup:"hex-and-channels-group",hexOptions:"color-hex-options",hueScope:"scope--hue",hueSlider:"hue-slider",opacityScope:"scope--opacity",opacitySlider:"opacity-slider",preview:"preview",previewAndSliders:"preview-and-sliders",saveColor:"save-color",savedColor:"saved-color",savedColors:"saved-colors",savedColorsButtons:"saved-colors-buttons",savedColorsSection:"saved-colors-section",scope:"scope",section:"section",slider:"slider",sliders:"sliders",splitSection:"section--split"},Ot=W("#007AC2"),Lt="calcite-color-",zt={r:255,g:255,b:255},lt={h:360,s:100,v:100},Et=lt.h-1,Rt={min:0,max:100},it={s:{gap:parseInt(E),slider:{height:12},thumb:{radius:7},preview:{size:20},minWidth:200},m:{gap:parseInt(R),slider:{height:12},thumb:{radius:7},preview:{size:24},minWidth:240},l:{gap:parseInt($),slider:{height:12},thumb:{radius:7},preview:{size:32},minWidth:304}},$t=1,Bt={minus:"minus",plus:"plus"},Tt=/^[0-9A-F]$/i,ht=/^#[0-9A-F]{3}$/i,ut=/^#[0-9A-F]{6}$/i,ft=/^#[0-9A-F]{4}$/i,dt=/^#[0-9A-F]{8}$/i,Gt=t=>Number((t*100).toFixed()),qt=t=>Number((t/100).toFixed(2));function j(t,n=!1){return z(t,n)||bt(t,n)}function D(t,n,e){return t?t.length===n&&e.test(t):!1}function z(t,n=!1){return D(t,n?5:4,n?ft:ht)}function bt(t,n=!1){return D(t,n?9:7,n?dt:ut)}function Wt(t,n=!1,e=!1){if(t=t.toLowerCase(),t.startsWith("#")||(t=`#${t}`),z(t,n))return P(X(t,n));if(n&&e&&j(t,!1)){let r=z(t,!1);return P(X(`${t}${r?"f":"ff"}`,!0))}return t}function Pt(t,n=!1){return n?t.hexa():t.hex()}function P(t){let{r:n,g:e,b:r}=t,o=N(n),s=N(e),c=N(r),a="a"in t?N(t.a*255):"";return`#${o}${s}${c}${a}`.toLowerCase()}function N(t){return t.toString(16).padStart(2,"0")}function Xt(t){let n={...t,a:t.alpha??1};return delete n.alpha,n}function jt(t){let n={...t,alpha:t.a??1};return delete n.a,n}function X(t,n=!1){if(!j(t,n))return null;t=t.replace("#","");let e,r,o,s;if(t.length===3||t.length===4){let[a,l,h,_]=t.split("");e=parseInt(`${a}${a}`,16),r=parseInt(`${l}${l}`,16),o=parseInt(`${h}${h}`,16),s=parseInt(`${_}${_}`,16)/255}else e=parseInt(t.slice(0,2),16),r=parseInt(t.slice(2,4),16),o=parseInt(t.slice(4,6),16),s=parseInt(t.slice(6,8),16)/255;return isNaN(s)?{r:e,g:r,b:o}:{r:e,g:r,b:o,a:s}}var U=t=>t,f=U({HEX:"hex",HEXA:"hexa",RGB_CSS:"rgb-css",RGBA_CSS:"rgba-css",HSL_CSS:"hsl-css",HSLA_CSS:"hsla-css"}),d=U({RGB:"rgb",RGBA:"rgba",HSL:"hsl",HSLA:"hsla",HSV:"hsv",HSVA:"hsva"});function Dt(t){if(typeof t=="string"){if(t.startsWith("#")){let{length:n}=t;if(n===4||n===7)return f.HEX;if(n===5||n===9)return f.HEXA}if(t.startsWith("rgba("))return f.RGBA_CSS;if(t.startsWith("rgb("))return f.RGB_CSS;if(t.startsWith("hsl("))return f.HSL_CSS;if(t.startsWith("hsla("))return f.HSLA_CSS}if(typeof t=="object"){if(C(t,"r","g","b"))return C(t,"a")?d.RGBA:d.RGB;if(C(t,"h","s","l"))return C(t,"a")?d.HSLA:d.HSL;if(C(t,"h","s","v"))return C(t,"a")?d.HSVA:d.HSV}return null}function C(t,...n){return n.every(e=>e&&t&&`${e}`in t)}function Ut(t,n){return t?.rgb().array().toString()===n?.rgb().array().toString()}function Kt(t){return t===f.HEXA||t===f.RGBA_CSS||t===f.HSLA_CSS||t===d.RGBA||t===d.HSLA||t===d.HSVA}function Yt(t){return t===f.HEX?f.HEXA:t===f.RGB_CSS?f.RGBA_CSS:t===f.HSL_CSS?f.HSLA_CSS:t===d.RGB?d.RGBA:t===d.HSL?d.HSLA:t===d.HSV?d.HSVA:t}function Jt(t){return t===f.HEXA?f.HEX:t===f.RGBA_CSS?f.RGB_CSS:t===f.HSLA_CSS?f.HSL_CSS:t===d.RGBA?d.RGB:t===d.HSLA?d.HSL:t===d.HSVA?d.HSV:t}var pt=1,K=pt*2;function Zt(t,n,e){let r=e?it.l.preview.size:n.preview.size,o=t-K,s=n.gap*3;return Math.max(o-s-r,0)}function Qt(t){let e=t-K;return{width:Math.max(e,0),height:Math.max(Math.floor(e/1.8),0)}}export{W as a,It as b,Ot as c,Lt as d,zt as e,lt as f,Et as g,Rt as h,it as i,$t as j,Bt as k,Tt as l,Gt as m,qt as n,j as o,z as p,bt as q,Wt as r,Pt as s,P as t,Xt as u,jt as v,X as w,f as x,Dt as y,Ut as z,Kt as A,Yt as B,Jt as C,Zt as D,Qt as E};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
2
2
  See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
3
- v3.3.0-next.39 */
4
- import{a as g,b as v}from"./KNXB6KGU.js";import{a as k}from"./XZWMFMSK.js";import{a as x}from"./ZZRNURIO.js";import"./LZCZLIWH.js";import{a as b,b as m}from"./SRQUDWB5.js";import{u as o}from"./P7TULRPU.js";import{d as f}from"./KID4N5NQ.js";import"./D27AMML7.js";import"./775XIYJM.js";import{E as p,F as t,R as u,c as h,d as c,q as s}from"./3SZZH7CV.js";var a={container:"container",contentWrapper:"content-wrapper",header:"header",footer:"footer",checkboxWrapper:"checkbox-wrapper",checkboxWrapperDeprecated:"checkbox-wrapper-deprecated",thumbnailWrapper:"thumbnail-wrapper",headerTextContainer:"header-text-container",cardContent:"card-content",hasSlottedContent:"has-slotted-content"},i={thumbnail:"thumbnail",heading:"heading",description:"description",footerStart:"footer-start",footerEnd:"footer-end",title:"title",subtitle:"subtitle"},l={selected:"check-square-f",unselected:"square",selectedSingle:"circle-f",unselectedSingle:"circle"},w=h`:host{--calcite-internal-color-focus: var( --calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)) )}:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:block;max-inline-size:100%}.content-wrapper{position:relative;display:flex;block-size:100%;flex-direction:column;justify-content:space-between;overflow:hidden;border:var(--calcite-border-width-sm) solid var(--calcite-card-border-color, var(--calcite-color-border-3));border-radius:var(--calcite-card-corner-radius, var(--calcite-corner-radius-sharp));background-color:var(--calcite-card-background-color, var(--calcite-color-foreground-1));box-shadow:var(--calcite-card-shadow, var(--calcite-shadow-none));pointer-events:none}::slotted(*){pointer-events:auto}:host(:not([selectable])) .content-wrapper:not(.non-interactive){outline-color:transparent}:host(:not([selectable])) .content-wrapper:not(.non-interactive):focus{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline:var(--calcite-border-width-md) solid var(--calcite-internal-color-focus);outline-offset:calc(var(--calcite-spacing-base) * calc(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}.container{position:relative;display:flex;flex:1 1 auto;flex-direction:column}:host([loading]) .content-wrapper *:not(calcite-loader):not(.calcite-card-loader-container){pointer-events:none;opacity:0}:host([loading]) .calcite-card-loader-container{position:absolute;inset:0;display:flex;align-items:center}.header{display:flex;flex-direction:row;align-items:flex-start}.footer{margin-block-start:auto;display:flex;flex-direction:row;align-content:space-between;justify-content:space-between;padding-inline:var(--calcite-spacing-md);padding-block-start:var(--calcite-spacing-xxs);padding-block-end:var(--calcite-spacing-md)}.header-text-container{display:flex;inline-size:100%;flex-direction:column;justify-content:center;padding-inline:.75rem;padding-block:.5rem}.header-text-container:not(:only-child){padding-inline-end:.125rem}.footer{margin-block-start:auto;flex-direction:row;align-content:space-between;justify-content:space-between;padding-inline:.75rem;padding-block:.25rem .75rem}.card-content{block-size:auto;font-size:var(--calcite-font-size--2);line-height:1.375}.has-slotted-content{padding:.75rem}:host([selected]) .content-wrapper{box-shadow:inset 0 -4px 0 0 var(--calcite-card-accent-color-selected, var(--calcite-color-brand))}:host([selectable]) .header{padding-inline-end:var(--calcite-spacing-xxxl)}slot[name=title]::slotted(*),*::slotted([slot=title]){margin:0;font-size:var(--calcite-font-size--1);line-height:1.375;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-1)}slot[name=subtitle]::slotted(*),*::slotted([slot=subtitle]){margin:0;margin-block-start:.125rem;font-size:var(--calcite-font-size--2);line-height:1.375;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-color-text-2)}slot[name=heading]::slotted(*),*::slotted([slot=heading]){margin:0;font-size:var(--calcite-font-size--1);line-height:1.375;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-1)}slot[name=description]::slotted(*),*::slotted([slot=description]){margin:0;margin-block-start:.125rem;font-size:var(--calcite-font-size--2);line-height:1.375;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-color-text-2)}slot[name=thumbnail]::slotted(img),img::slotted([slot=thumbnail]){min-inline-size:100%;max-inline-size:100%}slot[name=footer-start]::slotted(*),*::slotted([slot=footer-start]){align-self:center;font-size:var(--calcite-font-size--2);line-height:1.375;margin-inline-end:auto}slot[name=footer-end]::slotted(*),*::slotted([slot=footer-end]){align-self:center;font-size:var(--calcite-font-size--2);line-height:1.375}.checkbox-wrapper-deprecated{pointer-events:auto;position:absolute;inset-block-start:var(--calcite-spacing-sm);inset-inline-end:var(--calcite-spacing-sm);margin:0;padding:0;color:var(--calcite-card-selection-color, var(--calcite-color-text-3))}.checkbox-wrapper-deprecated:hover{background-color:var(--calcite-card-selection-background-color-hover, var(--calcite-color-foreground-2));color:var(--calcite-card-selection-color-hover, var(--calcite-card-selection-icon-color-hover, var(--calcite-color-text-2)))}.checkbox-wrapper-deprecated:active{background-color:var(--calcite-card-selection-background-color-press, var(--calcite-color-transparent-press))}.checkbox-wrapper{pointer-events:auto;margin:.5rem;cursor:pointer;padding:.5rem;outline-color:transparent;display:flex;align-items:center;justify-items:center;color:var(--calcite-card-selection-color, var(--calcite-color-text-3))}.checkbox-wrapper:hover{background-color:var(--calcite-card-selection-background-color-hover, var(--calcite-color-foreground-2));color:var(--calcite-card-selection-color-hover, var(--calcite-card-selection-icon-color-hover, var(--calcite-color-text-2)))}.checkbox-wrapper:active{background-color:var(--calcite-card-selection-background-color-press, var(--calcite-color-transparent-press))}.checkbox-wrapper calcite-icon{pointer-events:none}:host([selected]) .checkbox-wrapper-deprecated,:host([selected]) .checkbox-wrapper{color:var(--calcite-card-accent-color-selected, var(--calcite-card-selection-icon-color-selected, var(--calcite-color-brand)))}:host(:not([selectable])) .content-wrapper:not(.non-interactive):focus .checkbox-wrapper-deprecated,:host(:not([selectable])) .content-wrapper:not(.non-interactive):focus .checkbox-wrapper{background-color:var(--calcite-card-selection-background-color-hover, var(--calcite-color-foreground-2));color:var(--calcite-card-selection-color-hover, var(--calcite-card-selection-icon-color-hover, var(--calcite-color-text-2)))}:host([selected]:not([selectable])) .content-wrapper:not(.non-interactive):focus .checkbox-wrapper-deprecated,:host([selected]:not([selectable])) .content-wrapper:not(.non-interactive):focus .checkbox-wrapper{background-color:var(--calcite-card-selection-background-color-press, var(--calcite-color-transparent-press));color:var(--calcite-card-accent-color-selected, var(--calcite-card-selection-icon-color-selected, var(--calcite-color-brand)))}.thumbnail-wrapper{display:flex}.content-wrapper.inline{flex-direction:row}.content-wrapper.inline>.container{inline-size:60%}.content-wrapper.inline>.thumbnail-wrapper{inline-size:40%;align-items:flex-start}.content-wrapper.inline slot[name=thumbnail]::slotted(img),.content-wrapper.inline img::slotted([slot=thumbnail]){inline-size:100%}slot[name=footer-start]::slotted(*),slot[name=footer-end]::slotted(*){display:flex;gap:.25rem}:host([hidden]){display:none}[hidden]{display:none}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}`,d=class extends p{constructor(){super(...arguments),this.containerEl=b(),this.messages=x(),this.hasContent=!1,this.hasDescription=!1,this.hasFooterEnd=!1,this.hasFooterStart=!1,this.hasHeading=!1,this.hasSubtitle=!1,this.hasThumbnail=!1,this.hasTitle=!1,this.disabled=!1,this.loading=!1,this.selectable=!1,this.selected=!1,this.selectionMode="none",this.thumbnailPosition="block-start",this.calciteCardSelect=s({cancelable:!1}),this.calciteInternalCardKeyEvent=s({cancelable:!1})}static{this.properties={hasContent:[16,{},{state:!0}],hasDescription:[16,{},{state:!0}],hasFooterEnd:[16,{},{state:!0}],hasFooterStart:[16,{},{state:!0}],hasHeading:[16,{},{state:!0}],hasSubtitle:[16,{},{state:!0}],hasThumbnail:[16,{},{state:!0}],hasTitle:[16,{},{state:!0}],disabled:[7,{},{reflect:!0,type:Boolean}],label:1,loading:[7,{},{reflect:!0,type:Boolean}],messageOverrides:[0,{},{attribute:!1}],selectable:[7,{},{reflect:!0,type:Boolean}],selected:[7,{},{reflect:!0,type:Boolean}],selectionMode:1,thumbnailPosition:[3,{},{reflect:!0}]}}static{this.styles=w}async setFocus(){await f(this),this.disabled||this.containerEl.value?.focus()}updated(){g(this)}handleThumbnailSlotChange(e){this.hasThumbnail=o(e)}handleHeadingSlotChange(e){this.hasHeading=o(e)}handleDescriptionSlotChange(e){this.hasDescription=o(e)}handleTitleSlotChange(e){this.hasTitle=o(e)}handleSubtitleSlotChange(e){this.hasSubtitle=o(e)}handleFooterStartSlotChange(e){this.hasFooterStart=o(e)}handleFooterEndSlotChange(e){this.hasFooterEnd=o(e)}handleDefaultSlotChange(e){this.hasContent=o(e)}keyDownHandler(e){if(e.target===this.containerEl.value&&!this.selectable&&!this.disabled)if(k(e.key)&&this.selectionMode!=="none")this.calciteCardSelect.emit(),e.preventDefault();else switch(e.key){case"ArrowRight":case"ArrowLeft":case"Home":case"End":this.calciteInternalCardKeyEvent.emit(e),e.preventDefault();break}}cardBodyClickHandler(e){e.target===this.containerEl.value&&!this.selectable&&!this.disabled&&this.selectionMode!=="none"&&this.calciteCardSelect.emit()}selectCardDeprecated(e){this.selected=e.currentTarget.checked,this.calciteCardSelect.emit()}cardSelectClick(e){this.disabled||(e.preventDefault(),this.calciteCardSelect.emit(),this.setFocus())}renderCheckboxDeprecated(){return c`<calcite-label class=${t(a.checkboxWrapperDeprecated)}><calcite-checkbox .checked=${this.selected} .label=${this.messages.select} @calciteCheckboxChange=${this.selectCardDeprecated}></calcite-checkbox></calcite-label>`}renderThumbnail(){return c`<section class=${t(a.thumbnailWrapper)} .hidden=${!this.hasThumbnail}><slot name=${i.thumbnail} @slotchange=${this.handleThumbnailSlotChange}></slot></section>`}renderSelectionIcon(){let e=this.selectionMode==="multiple"&&this.selected?l.selected:this.selectionMode==="multiple"?l.unselected:this.selected?l.selectedSingle:l.unselectedSingle;return c`<div class=${t(a.checkboxWrapper)} @pointerdown=${this.cardSelectClick} tabindex=-1><calcite-icon .icon=${e} scale=s></calcite-icon></div>`}renderHeader(){let e=this.hasHeading||this.hasDescription,r=this.hasSubtitle||this.hasTitle,n=e||r;return c`<header class=${t(a.header)} .hidden=${!n}>${this.selectable?this.renderCheckboxDeprecated():null}<div class=${t(a.headerTextContainer)}><slot name=${i.heading} @slotchange=${this.handleHeadingSlotChange}></slot><slot name=${i.description} @slotchange=${this.handleDescriptionSlotChange}></slot><slot name=${i.title} @slotchange=${this.handleTitleSlotChange}></slot><slot name=${i.subtitle} @slotchange=${this.handleSubtitleSlotChange}></slot></div>${this.selectionMode!=="none"&&this.renderSelectionIcon()||""}</header>`}renderFooter(){let e=this.hasFooterStart||this.hasFooterEnd;return c`<footer class=${t(a.footer)} .hidden=${!e}><slot name=${i.footerStart} @slotchange=${this.handleFooterStartSlotChange}></slot><slot name=${i.footerEnd} @slotchange=${this.handleFooterEndSlotChange}></slot></footer>`}render(){let e=this.thumbnailPosition.startsWith("inline"),r=this.thumbnailPosition.endsWith("start"),n=this.selectionMode==="multiple"?"checkbox":this.selectionMode!=="none"?"radio":void 0;return v({disabled:this.disabled,children:c`<div .ariaChecked=${this.selectionMode!=="none"?this.selected:void 0} .ariaLabel=${this.label} class=${t({[a.contentWrapper]:!0,inline:e})} @click=${this.cardBodyClickHandler} @keydown=${this.keyDownHandler} .role=${n} .tabIndex=${!this.selectable||this.disabled?0:-1} ${m(this.containerEl)}>${this.loading?c`<div aria-live=polite class="calcite-card-loader-container"><calcite-loader .label=${this.messages.loading}></calcite-loader></div>`:null}${r&&this.renderThumbnail()||""}<section .ariaBusy=${this.loading} class=${t({[a.container]:!0})}>${this.renderHeader()}<div class=${t({[a.cardContent]:!0,[a.hasSlottedContent]:this.hasContent})}><slot @slotchange=${this.handleDefaultSlotChange}></slot></div>${this.renderFooter()}</section>${!r&&this.renderThumbnail()||""}</div>`})}};u("calcite-card",d);export{d as Card};
3
+ v3.3.0-next.40 */
4
+ import{a as g,b as v}from"./CQTZCSEN.js";import{a as k}from"./5VCTDFNC.js";import{a as x}from"./7ULRI6DB.js";import"./CIUU375M.js";import{a as b,b as m}from"./MALCPYT6.js";import{u as o}from"./336LSAGD.js";import{d as f}from"./GKZ4C5SQ.js";import"./CV3FPVW7.js";import"./S7GT4XGA.js";import{E as p,F as t,R as u,c as h,d as c,q as s}from"./2PIXSVS2.js";var a={container:"container",contentWrapper:"content-wrapper",header:"header",footer:"footer",checkboxWrapper:"checkbox-wrapper",checkboxWrapperDeprecated:"checkbox-wrapper-deprecated",thumbnailWrapper:"thumbnail-wrapper",headerTextContainer:"header-text-container",cardContent:"card-content",hasSlottedContent:"has-slotted-content"},i={thumbnail:"thumbnail",heading:"heading",description:"description",footerStart:"footer-start",footerEnd:"footer-end",title:"title",subtitle:"subtitle"},l={selected:"check-square-f",unselected:"square",selectedSingle:"circle-f",unselectedSingle:"circle"},w=h`:host{--calcite-internal-color-focus: var( --calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)) )}:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:block;max-inline-size:100%}.content-wrapper{position:relative;display:flex;block-size:100%;flex-direction:column;justify-content:space-between;overflow:hidden;border:var(--calcite-border-width-sm) solid var(--calcite-card-border-color, var(--calcite-color-border-3));border-radius:var(--calcite-card-corner-radius, var(--calcite-corner-radius-sharp));background-color:var(--calcite-card-background-color, var(--calcite-color-foreground-1));box-shadow:var(--calcite-card-shadow, var(--calcite-shadow-none));pointer-events:none}::slotted(*){pointer-events:auto}:host(:not([selectable])) .content-wrapper:not(.non-interactive){outline-color:transparent}:host(:not([selectable])) .content-wrapper:not(.non-interactive):focus{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline:var(--calcite-border-width-md) solid var(--calcite-internal-color-focus);outline-offset:calc(var(--calcite-spacing-base) * calc(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}.container{position:relative;display:flex;flex:1 1 auto;flex-direction:column}:host([loading]) .content-wrapper *:not(calcite-loader):not(.calcite-card-loader-container){pointer-events:none;opacity:0}:host([loading]) .calcite-card-loader-container{position:absolute;inset:0;display:flex;align-items:center}.header{display:flex;flex-direction:row;align-items:flex-start}.footer{margin-block-start:auto;display:flex;flex-direction:row;align-content:space-between;justify-content:space-between;padding-inline:var(--calcite-spacing-md);padding-block-start:var(--calcite-spacing-xxs);padding-block-end:var(--calcite-spacing-md)}.header-text-container{display:flex;inline-size:100%;flex-direction:column;justify-content:center;padding-inline:.75rem;padding-block:.5rem}.header-text-container:not(:only-child){padding-inline-end:.125rem}.footer{margin-block-start:auto;flex-direction:row;align-content:space-between;justify-content:space-between;padding-inline:.75rem;padding-block:.25rem .75rem}.card-content{block-size:auto;font-size:var(--calcite-font-size--2);line-height:1.375}.has-slotted-content{padding:.75rem}:host([selected]) .content-wrapper{box-shadow:inset 0 -4px 0 0 var(--calcite-card-accent-color-selected, var(--calcite-color-brand))}:host([selectable]) .header{padding-inline-end:var(--calcite-spacing-xxxl)}slot[name=title]::slotted(*),*::slotted([slot=title]){margin:0;font-size:var(--calcite-font-size--1);line-height:1.375;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-1)}slot[name=subtitle]::slotted(*),*::slotted([slot=subtitle]){margin:0;margin-block-start:.125rem;font-size:var(--calcite-font-size--2);line-height:1.375;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-color-text-2)}slot[name=heading]::slotted(*),*::slotted([slot=heading]){margin:0;font-size:var(--calcite-font-size--1);line-height:1.375;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-1)}slot[name=description]::slotted(*),*::slotted([slot=description]){margin:0;margin-block-start:.125rem;font-size:var(--calcite-font-size--2);line-height:1.375;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-color-text-2)}slot[name=thumbnail]::slotted(img),img::slotted([slot=thumbnail]){min-inline-size:100%;max-inline-size:100%}slot[name=footer-start]::slotted(*),*::slotted([slot=footer-start]){align-self:center;font-size:var(--calcite-font-size--2);line-height:1.375;margin-inline-end:auto}slot[name=footer-end]::slotted(*),*::slotted([slot=footer-end]){align-self:center;font-size:var(--calcite-font-size--2);line-height:1.375}.checkbox-wrapper-deprecated{pointer-events:auto;position:absolute;inset-block-start:var(--calcite-spacing-sm);inset-inline-end:var(--calcite-spacing-sm);margin:0;padding:0;color:var(--calcite-card-selection-color, var(--calcite-color-text-3))}.checkbox-wrapper-deprecated:hover{background-color:var(--calcite-card-selection-background-color-hover, var(--calcite-color-foreground-2));color:var(--calcite-card-selection-color-hover, var(--calcite-card-selection-icon-color-hover, var(--calcite-color-text-2)))}.checkbox-wrapper-deprecated:active{background-color:var(--calcite-card-selection-background-color-press, var(--calcite-color-transparent-press))}.checkbox-wrapper{pointer-events:auto;margin:.5rem;cursor:pointer;padding:.5rem;outline-color:transparent;display:flex;align-items:center;justify-items:center;color:var(--calcite-card-selection-color, var(--calcite-color-text-3))}.checkbox-wrapper:hover{background-color:var(--calcite-card-selection-background-color-hover, var(--calcite-color-foreground-2));color:var(--calcite-card-selection-color-hover, var(--calcite-card-selection-icon-color-hover, var(--calcite-color-text-2)))}.checkbox-wrapper:active{background-color:var(--calcite-card-selection-background-color-press, var(--calcite-color-transparent-press))}.checkbox-wrapper calcite-icon{pointer-events:none}:host([selected]) .checkbox-wrapper-deprecated,:host([selected]) .checkbox-wrapper{color:var(--calcite-card-accent-color-selected, var(--calcite-card-selection-icon-color-selected, var(--calcite-color-brand)))}:host(:not([selectable])) .content-wrapper:not(.non-interactive):focus .checkbox-wrapper-deprecated,:host(:not([selectable])) .content-wrapper:not(.non-interactive):focus .checkbox-wrapper{background-color:var(--calcite-card-selection-background-color-hover, var(--calcite-color-foreground-2));color:var(--calcite-card-selection-color-hover, var(--calcite-card-selection-icon-color-hover, var(--calcite-color-text-2)))}:host([selected]:not([selectable])) .content-wrapper:not(.non-interactive):focus .checkbox-wrapper-deprecated,:host([selected]:not([selectable])) .content-wrapper:not(.non-interactive):focus .checkbox-wrapper{background-color:var(--calcite-card-selection-background-color-press, var(--calcite-color-transparent-press));color:var(--calcite-card-accent-color-selected, var(--calcite-card-selection-icon-color-selected, var(--calcite-color-brand)))}.thumbnail-wrapper{display:flex}.content-wrapper.inline{flex-direction:row}.content-wrapper.inline>.container{inline-size:60%}.content-wrapper.inline>.thumbnail-wrapper{inline-size:40%;align-items:flex-start}.content-wrapper.inline slot[name=thumbnail]::slotted(img),.content-wrapper.inline img::slotted([slot=thumbnail]){inline-size:100%}slot[name=footer-start]::slotted(*),slot[name=footer-end]::slotted(*){display:flex;gap:.25rem}:host([hidden]){display:none}[hidden]{display:none}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}`,d=class extends p{constructor(){super(...arguments),this.containerEl=b(),this.messages=x(),this.hasContent=!1,this.hasDescription=!1,this.hasFooterEnd=!1,this.hasFooterStart=!1,this.hasHeading=!1,this.hasSubtitle=!1,this.hasThumbnail=!1,this.hasTitle=!1,this.disabled=!1,this.loading=!1,this.selectable=!1,this.selected=!1,this.selectionMode="none",this.thumbnailPosition="block-start",this.calciteCardSelect=s({cancelable:!1}),this.calciteInternalCardKeyEvent=s({cancelable:!1})}static{this.properties={hasContent:[16,{},{state:!0}],hasDescription:[16,{},{state:!0}],hasFooterEnd:[16,{},{state:!0}],hasFooterStart:[16,{},{state:!0}],hasHeading:[16,{},{state:!0}],hasSubtitle:[16,{},{state:!0}],hasThumbnail:[16,{},{state:!0}],hasTitle:[16,{},{state:!0}],disabled:[7,{},{reflect:!0,type:Boolean}],label:1,loading:[7,{},{reflect:!0,type:Boolean}],messageOverrides:[0,{},{attribute:!1}],selectable:[7,{},{reflect:!0,type:Boolean}],selected:[7,{},{reflect:!0,type:Boolean}],selectionMode:1,thumbnailPosition:[3,{},{reflect:!0}]}}static{this.styles=w}async setFocus(){await f(this),this.disabled||this.containerEl.value?.focus()}updated(){g(this)}handleThumbnailSlotChange(e){this.hasThumbnail=o(e)}handleHeadingSlotChange(e){this.hasHeading=o(e)}handleDescriptionSlotChange(e){this.hasDescription=o(e)}handleTitleSlotChange(e){this.hasTitle=o(e)}handleSubtitleSlotChange(e){this.hasSubtitle=o(e)}handleFooterStartSlotChange(e){this.hasFooterStart=o(e)}handleFooterEndSlotChange(e){this.hasFooterEnd=o(e)}handleDefaultSlotChange(e){this.hasContent=o(e)}keyDownHandler(e){if(e.target===this.containerEl.value&&!this.selectable&&!this.disabled)if(k(e.key)&&this.selectionMode!=="none")this.calciteCardSelect.emit(),e.preventDefault();else switch(e.key){case"ArrowRight":case"ArrowLeft":case"Home":case"End":this.calciteInternalCardKeyEvent.emit(e),e.preventDefault();break}}cardBodyClickHandler(e){e.target===this.containerEl.value&&!this.selectable&&!this.disabled&&this.selectionMode!=="none"&&this.calciteCardSelect.emit()}selectCardDeprecated(e){this.selected=e.currentTarget.checked,this.calciteCardSelect.emit()}cardSelectClick(e){this.disabled||(e.preventDefault(),this.calciteCardSelect.emit(),this.setFocus())}renderCheckboxDeprecated(){return c`<calcite-label class=${t(a.checkboxWrapperDeprecated)}><calcite-checkbox .checked=${this.selected} .label=${this.messages.select} @calciteCheckboxChange=${this.selectCardDeprecated}></calcite-checkbox></calcite-label>`}renderThumbnail(){return c`<section class=${t(a.thumbnailWrapper)} .hidden=${!this.hasThumbnail}><slot name=${i.thumbnail} @slotchange=${this.handleThumbnailSlotChange}></slot></section>`}renderSelectionIcon(){let e=this.selectionMode==="multiple"&&this.selected?l.selected:this.selectionMode==="multiple"?l.unselected:this.selected?l.selectedSingle:l.unselectedSingle;return c`<div class=${t(a.checkboxWrapper)} @pointerdown=${this.cardSelectClick} tabindex=-1><calcite-icon .icon=${e} scale=s></calcite-icon></div>`}renderHeader(){let e=this.hasHeading||this.hasDescription,r=this.hasSubtitle||this.hasTitle,n=e||r;return c`<header class=${t(a.header)} .hidden=${!n}>${this.selectable?this.renderCheckboxDeprecated():null}<div class=${t(a.headerTextContainer)}><slot name=${i.heading} @slotchange=${this.handleHeadingSlotChange}></slot><slot name=${i.description} @slotchange=${this.handleDescriptionSlotChange}></slot><slot name=${i.title} @slotchange=${this.handleTitleSlotChange}></slot><slot name=${i.subtitle} @slotchange=${this.handleSubtitleSlotChange}></slot></div>${this.selectionMode!=="none"&&this.renderSelectionIcon()||""}</header>`}renderFooter(){let e=this.hasFooterStart||this.hasFooterEnd;return c`<footer class=${t(a.footer)} .hidden=${!e}><slot name=${i.footerStart} @slotchange=${this.handleFooterStartSlotChange}></slot><slot name=${i.footerEnd} @slotchange=${this.handleFooterEndSlotChange}></slot></footer>`}render(){let e=this.thumbnailPosition.startsWith("inline"),r=this.thumbnailPosition.endsWith("start"),n=this.selectionMode==="multiple"?"checkbox":this.selectionMode!=="none"?"radio":void 0;return v({disabled:this.disabled,children:c`<div .ariaChecked=${this.selectionMode!=="none"?this.selected:void 0} .ariaLabel=${this.label} class=${t({[a.contentWrapper]:!0,inline:e})} @click=${this.cardBodyClickHandler} @keydown=${this.keyDownHandler} .role=${n} .tabIndex=${!this.selectable||this.disabled?0:-1} ${m(this.containerEl)}>${this.loading?c`<div aria-live=polite class="calcite-card-loader-container"><calcite-loader .label=${this.messages.loading}></calcite-loader></div>`:null}${r&&this.renderThumbnail()||""}<section .ariaBusy=${this.loading} class=${t({[a.container]:!0})}>${this.renderHeader()}<div class=${t({[a.cardContent]:!0,[a.hasSlottedContent]:this.hasContent})}><slot @slotchange=${this.handleDefaultSlotChange}></slot></div>${this.renderFooter()}</section>${!r&&this.renderThumbnail()||""}</div>`})}};u("calcite-card",d);export{d as Card};