@esri/calcite-components 3.0.0-next.99 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (604) hide show
  1. package/dist/calcite/22RQB3WE.js +4 -0
  2. package/dist/calcite/{2JRSKQML.js → 24SER2VV.js} +4 -6
  3. package/dist/calcite/2BGMAPSV.js +4 -0
  4. package/dist/calcite/2JKKAEPM.js +4 -0
  5. package/dist/calcite/{JLIVSPKC.js → 2M4WCGKG.js} +4 -6
  6. package/dist/calcite/2YAXZHP2.js +4 -0
  7. package/dist/calcite/{AUEN6VFD.js → 345Q4UHX.js} +4 -6
  8. package/dist/calcite/{O7B4THLC.js → 36DMRAV2.js} +4 -6
  9. package/dist/calcite/{EBQYJBDQ.js → 3DGJ6ZQI.js} +4 -6
  10. package/dist/calcite/3GICXOBQ.js +4 -0
  11. package/dist/calcite/3IV6JSC2.js +4 -0
  12. package/dist/calcite/{Y5IWWVKB.js → 3TOVZEQB.js} +4 -6
  13. package/dist/calcite/45GA6INB.js +4 -0
  14. package/dist/calcite/46U4MKUU.js +4 -0
  15. package/dist/calcite/4BSCJ722.js +4 -0
  16. package/dist/calcite/4SEPDFCP.js +5 -0
  17. package/dist/calcite/{B77QRUX7.js → 4TQLSUKH.js} +4 -6
  18. package/dist/calcite/4YZ27QWL.js +4 -0
  19. package/dist/calcite/4Z7JRTON.js +4 -0
  20. package/dist/calcite/5AVZLE2Q.js +4 -0
  21. package/dist/calcite/{OMBBOPRI.js → 5EPP4MG3.js} +4 -6
  22. package/dist/calcite/{KWWKG3YN.js → 66B2H27W.js} +4 -6
  23. package/dist/calcite/6LW27BEV.js +4 -0
  24. package/dist/calcite/6OZRZ36X.js +4 -0
  25. package/dist/calcite/6X2SD2PW.js +4 -0
  26. package/dist/calcite/{ZWGCNMZF.js → 6XTYGXNG.js} +4 -6
  27. package/dist/calcite/6ZTWHW63.js +4 -0
  28. package/dist/calcite/{BZOCG27F.js → 7D3VEEUX.js} +4 -6
  29. package/dist/calcite/7E342YOK.js +4 -0
  30. package/dist/calcite/{4OYBMKUB.js → 7KSGVDSR.js} +4 -6
  31. package/dist/calcite/{DF7SVAJW.js → 7PWETOIU.js} +4 -6
  32. package/dist/calcite/7QHUEK5R.js +4 -0
  33. package/dist/calcite/{BGQR3WLU.js → 7SX3RD7P.js} +4 -6
  34. package/dist/calcite/7U7FF3Y4.js +4 -0
  35. package/dist/calcite/7WG5I3MP.js +4 -0
  36. package/dist/calcite/{KHDHQPVO.js → A5GGYTUQ.js} +4 -6
  37. package/dist/calcite/{3SE2Z2VK.js → AI3R3SU6.js} +5 -7
  38. package/dist/calcite/ARHYATTG.js +4 -0
  39. package/dist/calcite/{ELXZUEDC.js → ATHBUWBY.js} +4 -6
  40. package/dist/calcite/AXXJNFKZ.js +4 -0
  41. package/dist/calcite/{AASA6526.js → AYZ73RWQ.js} +4 -6
  42. package/dist/calcite/{S6AE7RHT.js → BAHIPAHM.js} +4 -6
  43. package/dist/calcite/BRTDMTZ3.js +4 -0
  44. package/dist/calcite/BRTESQOJ.js +4 -0
  45. package/dist/calcite/{3LYDW23E.js → BSRMWMHQ.js} +4 -6
  46. package/dist/calcite/{2UYJUU43.js → BZKF5ZXQ.js} +4 -6
  47. package/dist/calcite/C46JYVUP.js +4 -0
  48. package/dist/calcite/C54C5E23.js +4 -0
  49. package/dist/calcite/CBSMKHOY.js +4 -0
  50. package/dist/calcite/CFRBQXK4.js +4 -0
  51. package/dist/calcite/CIV3PH3Z.js +4 -0
  52. package/dist/calcite/CJYTY62F.js +4 -0
  53. package/dist/calcite/CK6HQQX6.js +4 -0
  54. package/dist/calcite/CMO3X257.js +4 -0
  55. package/dist/calcite/{3Z3RDAUW.js → CNO6NFH5.js} +4 -6
  56. package/dist/calcite/CWPRBG3T.js +4 -0
  57. package/dist/calcite/CY6C2FDZ.js +4 -0
  58. package/dist/calcite/D2HDFE7S.js +22 -0
  59. package/dist/calcite/D36VWSDW.js +4 -0
  60. package/dist/calcite/{3QV5TGZD.js → DBVNMM6Q.js} +4 -6
  61. package/dist/calcite/{4JU7BKXB.js → DDJ75RTI.js} +4 -6
  62. package/dist/calcite/DH4ISGHV.js +4 -0
  63. package/dist/calcite/{3PJ42556.js → DNYBIAUI.js} +4 -6
  64. package/dist/calcite/DT67ZFPX.js +4 -0
  65. package/dist/calcite/{EWQKTTIO.js → DTL2LM6T.js} +4 -6
  66. package/dist/calcite/E3R5SMVW.js +4 -0
  67. package/dist/calcite/{AGLAEQKV.js → E4NMFIKN.js} +4 -6
  68. package/dist/calcite/{FMI6FJW4.js → EAML4EDI.js} +4 -6
  69. package/dist/calcite/{XEW3B3B5.js → ECEZ4R6E.js} +4 -6
  70. package/dist/calcite/EFI2G5WL.js +4 -0
  71. package/dist/calcite/EHZCT5YZ.js +4 -0
  72. package/dist/calcite/{SYOTV4D4.js → EOHVH6PN.js} +4 -6
  73. package/dist/calcite/ESBOJTBS.js +4 -0
  74. package/dist/calcite/F6EGRKXW.js +4 -0
  75. package/dist/calcite/FCN5RMLA.js +4 -0
  76. package/dist/calcite/FDIM6DYL.js +4 -0
  77. package/dist/calcite/FE3A3YUN.js +4 -0
  78. package/dist/calcite/FHBFGCTR.js +4 -0
  79. package/dist/calcite/FNFWOOMR.js +4 -0
  80. package/dist/calcite/{UPY24BFQ.js → FNM4DZZH.js} +3 -5
  81. package/dist/calcite/G2KHDAZD.js +4 -0
  82. package/dist/calcite/{P64WY2HI.js → G3LH75CQ.js} +4 -6
  83. package/dist/calcite/{UZAQE6XP.js → G3ZJ2KQT.js} +4 -6
  84. package/dist/calcite/{GIRDDKPZ.js → G7WFYVUC.js} +4 -6
  85. package/dist/calcite/{3RLXG3NR.js → GAAXSGWK.js} +4 -6
  86. package/dist/calcite/{QNGBOTGF.js → GE63ETFI.js} +4 -6
  87. package/dist/calcite/{DO5AYUNU.js → GFC7NS6P.js} +4 -6
  88. package/dist/calcite/GGO5TMB4.js +4 -0
  89. package/dist/calcite/GKKCWEZX.js +4 -0
  90. package/dist/calcite/GN5CPLSJ.js +4 -0
  91. package/dist/calcite/GNUSLZWJ.js +4 -0
  92. package/dist/calcite/{L4IJ6KQT.js → GOOHYN3D.js} +4 -6
  93. package/dist/calcite/GPUFLCIT.js +4 -0
  94. package/dist/calcite/GSXEMGSW.js +4 -0
  95. package/dist/calcite/GYQTRH4V.js +4 -0
  96. package/dist/calcite/HFIRIAQA.js +4 -0
  97. package/dist/calcite/{6EFD6XES.js → HGTV36FX.js} +4 -6
  98. package/dist/calcite/HKHPJJ34.js +4 -0
  99. package/dist/calcite/{CM4U5UKC.js → HMVKZP47.js} +4 -6
  100. package/dist/calcite/I2OIH73C.js +4 -0
  101. package/dist/calcite/{W4D5O4P2.js → I32TMNTO.js} +3 -5
  102. package/dist/calcite/{KBVTFWRR.js → I62DUDHI.js} +4 -6
  103. package/dist/calcite/IH4RXHJJ.js +4 -0
  104. package/dist/calcite/{EUXG27WD.js → IJCTXZQB.js} +4 -6
  105. package/dist/calcite/{5LAQP62T.js → IXRMDUEL.js} +4 -6
  106. package/dist/calcite/IYDN67SF.js +4 -0
  107. package/dist/calcite/JCWM5Z43.js +4 -0
  108. package/dist/calcite/{26ES3CRO.js → JEX42CPR.js} +4 -6
  109. package/dist/calcite/JFYDLHH7.js +4 -0
  110. package/dist/calcite/JLZYAYOL.js +4 -0
  111. package/dist/calcite/{3KND2KKH.js → JUNCR7R2.js} +4 -6
  112. package/dist/calcite/{K3F2CI4A.js → JVNEJ36Z.js} +4 -6
  113. package/dist/calcite/K3ZBW4GY.js +4 -0
  114. package/dist/calcite/{G4Q2QH6B.js → KBDXI6DJ.js} +4 -6
  115. package/dist/calcite/{XFHDAVBK.js → KBNS3CCT.js} +4 -6
  116. package/dist/calcite/KI2NOBMU.js +4 -0
  117. package/dist/calcite/KSNEQFZX.js +4 -0
  118. package/dist/calcite/KSVYAIHK.js +4 -0
  119. package/dist/calcite/KULDQOV2.js +4 -0
  120. package/dist/calcite/KVSCG5E3.js +6 -0
  121. package/dist/calcite/{JFBHBHJE.js → KW57BHXD.js} +4 -6
  122. package/dist/calcite/{VP4IW6MN.js → KWOOGTG2.js} +4 -6
  123. package/dist/calcite/L5FDXQMT.js +4 -0
  124. package/dist/calcite/{UFV4E5V5.js → LB5ATL5Q.js} +4 -6
  125. package/dist/calcite/LH7KSBQC.js +4 -0
  126. package/dist/calcite/{6YQ42X6L.js → LHSAAMYQ.js} +4 -6
  127. package/dist/calcite/LILDCWFX.js +4 -0
  128. package/dist/calcite/LLSB73WA.js +4 -0
  129. package/dist/calcite/{MRVEUN2O.js → LOZEGKG2.js} +4 -6
  130. package/dist/calcite/{LR6EXHT2.js → MBQZPRQ5.js} +4 -6
  131. package/dist/calcite/MCSX2S5T.js +4 -0
  132. package/dist/calcite/{5MEU7SU4.js → MIKGJ3NM.js} +4 -6
  133. package/dist/calcite/MPAVJ7UH.js +4 -0
  134. package/dist/calcite/{RWW7CETF.js → MPX2M2VX.js} +4 -6
  135. package/dist/calcite/{N7NWH5SX.js → MQYH4ONZ.js} +3 -5
  136. package/dist/calcite/MUWK32IE.js +4 -0
  137. package/dist/calcite/{6FI3WN2Y.js → MZRO54UT.js} +4 -6
  138. package/dist/calcite/N2BVYYYP.js +4 -0
  139. package/dist/calcite/{WIGL5RKK.js → N4MN6VQ7.js} +4 -6
  140. package/dist/calcite/{ESS6BUTG.js → N55N67N5.js} +4 -6
  141. package/dist/calcite/NODC2JA6.js +4 -0
  142. package/dist/calcite/{FSQJ72IH.js → NVBNX55L.js} +4 -6
  143. package/dist/calcite/{Z2ZTWA3F.js → NWVCPRVB.js} +3 -5
  144. package/dist/calcite/{W3WKINVO.js → O4O3TSE5.js} +4 -6
  145. package/dist/calcite/OE2AH2NC.js +4 -0
  146. package/dist/calcite/OGED6PPP.js +4 -0
  147. package/dist/calcite/{QBG5T6W3.js → OHOS32IT.js} +4 -6
  148. package/dist/calcite/{KA53KK35.js → OLMX7G3J.js} +3 -5
  149. package/dist/calcite/OOSULFCY.js +4 -0
  150. package/dist/calcite/OPBQNK7J.js +4 -0
  151. package/dist/calcite/OTHVFLNW.js +4 -0
  152. package/dist/calcite/{G75XVKLZ.js → OTUG3NVT.js} +4 -6
  153. package/dist/calcite/PNHR5K2L.js +4 -0
  154. package/dist/calcite/{2YSVELPG.js → PT2XMADA.js} +3 -5
  155. package/dist/calcite/PZLVQQMT.js +4 -0
  156. package/dist/calcite/{I2N2BRJR.js → QAYSDI3M.js} +3 -5
  157. package/dist/calcite/QCGLMLKW.js +4 -0
  158. package/dist/calcite/QHASLHZN.js +4 -0
  159. package/dist/calcite/QK2H5T7J.js +4 -0
  160. package/dist/calcite/QLKHJI4P.js +4 -0
  161. package/dist/calcite/QQ67AVDV.js +4 -0
  162. package/dist/calcite/{CTQ5YHOP.js → QU33PBBI.js} +4 -6
  163. package/dist/calcite/QYGED6CL.js +4 -0
  164. package/dist/calcite/R3HMG2D6.js +4 -0
  165. package/dist/calcite/{OU4N4K2U.js → R4RMVIKH.js} +4 -6
  166. package/dist/calcite/R6GNPMSV.js +4 -0
  167. package/dist/calcite/{ARFAFPKS.js → RAFCSOOQ.js} +4 -6
  168. package/dist/calcite/{GU2SFYM4.js → RAQWKUOJ.js} +4 -6
  169. package/dist/calcite/RESHLE2Y.js +4 -0
  170. package/dist/calcite/RJLKHCRB.js +4 -0
  171. package/dist/calcite/RLSQLIV6.js +4 -0
  172. package/dist/calcite/{57L4ZYLO.js → RMGYRZXR.js} +4 -6
  173. package/dist/calcite/RSAEDAEX.js +4 -0
  174. package/dist/calcite/{SFWNFANJ.js → RUTUU2EH.js} +4 -6
  175. package/dist/calcite/{XFKIMAJU.js → RVMVJW6K.js} +4 -6
  176. package/dist/calcite/RVQMJBNS.js +4 -0
  177. package/dist/calcite/{QLJX2F4K.js → S76CXQTI.js} +4 -6
  178. package/dist/calcite/SBZ6VJ75.js +4 -0
  179. package/dist/calcite/SJKTCGW6.js +4 -0
  180. package/dist/calcite/{G27BUJJG.js → SKDMJE3X.js} +3 -5
  181. package/dist/calcite/SMUXJLDL.js +4 -0
  182. package/dist/calcite/SYEQSDHG.js +4 -0
  183. package/dist/calcite/T3NRBBZP.js +4 -0
  184. package/dist/calcite/T5UPGHU3.js +4 -0
  185. package/dist/calcite/{XOA2TSHC.js → T6HODD4B.js} +4 -6
  186. package/dist/calcite/TNR5VZG2.js +4 -0
  187. package/dist/calcite/TQIVV2F7.js +4 -0
  188. package/dist/calcite/{UCGUHOUO.js → TQTAM3XB.js} +4 -6
  189. package/dist/calcite/{XR2WLB7D.js → TSJJLMPA.js} +3 -5
  190. package/dist/calcite/{VM4VUQ54.js → TVDZM7WT.js} +4 -6
  191. package/dist/calcite/U3WK4DZT.js +4 -0
  192. package/dist/calcite/U725E4ID.js +4 -0
  193. package/dist/calcite/UELGJSYH.js +4 -0
  194. package/dist/calcite/UJL3BWDH.js +4 -0
  195. package/dist/calcite/{AFH6KP7M.js → URM3R65T.js} +4 -6
  196. package/dist/calcite/US3PQV6O.js +4 -0
  197. package/dist/calcite/{BNYX7IBO.js → V4JZRN7T.js} +4 -6
  198. package/dist/calcite/{3JQJ24PZ.js → VCSXFNPO.js} +4 -6
  199. package/dist/calcite/VG7BJBFG.js +4 -0
  200. package/dist/calcite/{6LWRLBVD.js → VJD4CRQ3.js} +4 -6
  201. package/dist/calcite/VMRLYKNI.js +4 -0
  202. package/dist/calcite/{LQ5ITYNE.js → VNQNKQ2J.js} +4 -6
  203. package/dist/calcite/VST65PDC.js +4 -0
  204. package/dist/calcite/WKTGTKRJ.js +4 -0
  205. package/dist/calcite/WPAMFFBY.js +4 -0
  206. package/dist/calcite/{3ATQZBKY.js → WSGL37LB.js} +4 -6
  207. package/dist/calcite/{4TWMM7Z6.js → WWUBU6N5.js} +4 -6
  208. package/dist/calcite/{QFH3VN2R.js → X2UHFJHG.js} +4 -6
  209. package/dist/calcite/XBZLGRRI.js +4 -0
  210. package/dist/calcite/XOVG6UH3.js +4 -0
  211. package/dist/calcite/{7NVGCG7Q.js → XT32TCZG.js} +3 -5
  212. package/dist/calcite/XXZIOSXQ.js +4 -0
  213. package/dist/calcite/{MNBTRJLH.js → Y6VF7HSM.js} +4 -6
  214. package/dist/calcite/YA5A7PJR.js +4 -0
  215. package/dist/calcite/{MYJH43DB.js → YMRTHS5X.js} +4 -6
  216. package/dist/calcite/{ZQSF4K7D.js → YTRT5XZT.js} +4 -6
  217. package/dist/calcite/{O2KBYT33.js → YXLQFMOA.js} +4 -6
  218. package/dist/calcite/{J7RY7DXT.js → YYJSHQR3.js} +3 -5
  219. package/dist/calcite/{SZP7YBVQ.js → Z6GA347Y.js} +4 -6
  220. package/dist/calcite/{VFBPWVKE.js → Z7VNUC77.js} +4 -6
  221. package/dist/calcite/ZA76CHET.js +4 -0
  222. package/dist/calcite/ZGXTLCGJ.js +4 -0
  223. package/dist/calcite/{KMLCSDZJ.js → ZQO6E4FO.js} +4 -6
  224. package/dist/calcite/ZV442E6X.js +4 -0
  225. package/dist/calcite/assets/icon/crosshair16.json +1 -0
  226. package/dist/calcite/assets/icon/crosshair24.json +1 -0
  227. package/dist/calcite/assets/icon/crosshair32.json +1 -0
  228. package/dist/calcite/assets/icon/dualImageArea16.json +1 -0
  229. package/dist/calcite/assets/icon/dualImageArea24.json +1 -0
  230. package/dist/calcite/assets/icon/dualImageArea32.json +1 -0
  231. package/dist/calcite/assets/icon/dualImageDistance16.json +1 -0
  232. package/dist/calcite/assets/icon/dualImageDistance24.json +1 -0
  233. package/dist/calcite/assets/icon/dualImageDistance32.json +1 -0
  234. package/dist/calcite/assets/icon/dualImageLocation16.json +1 -0
  235. package/dist/calcite/assets/icon/dualImageLocation24.json +1 -0
  236. package/dist/calcite/assets/icon/dualImageLocation32.json +1 -0
  237. package/dist/calcite/assets/icon/hammerCoin16.json +1 -0
  238. package/dist/calcite/assets/icon/hammerCoin24.json +1 -0
  239. package/dist/calcite/assets/icon/hammerCoin32.json +1 -0
  240. package/dist/calcite/assets/icon/hammerLock16.json +1 -0
  241. package/dist/calcite/assets/icon/hammerLock24.json +1 -0
  242. package/dist/calcite/assets/icon/hammerLock32.json +1 -0
  243. package/dist/calcite/assets/icon/utilityNetworkLayer16.json +1 -0
  244. package/dist/calcite/assets/icon/utilityNetworkLayer24.json +1 -0
  245. package/dist/calcite/assets/icon/utilityNetworkLayer32.json +1 -0
  246. package/dist/calcite/calcite.css +1 -1
  247. package/dist/calcite/calcite.esm.js +4 -6
  248. package/dist/chunks/ExpandToggle.js +3 -5
  249. package/dist/chunks/FloatingArrow.js +6 -8
  250. package/dist/chunks/Heading.js +3 -5
  251. package/dist/chunks/Validation.js +3 -5
  252. package/dist/chunks/_commonjsHelpers.js +3 -5
  253. package/dist/chunks/array.js +3 -5
  254. package/dist/chunks/component.js +13 -11
  255. package/dist/chunks/core.js +3 -5
  256. package/dist/chunks/date.js +3 -5
  257. package/dist/chunks/dom.js +218 -234
  258. package/dist/chunks/dynamicClasses.js +3 -5
  259. package/dist/chunks/filter.js +3 -5
  260. package/dist/chunks/floating-ui.js +61 -65
  261. package/dist/chunks/focusTrapComponent.js +25 -30
  262. package/dist/chunks/form.js +19 -21
  263. package/dist/chunks/global.js +14 -14
  264. package/dist/chunks/guid.js +3 -5
  265. package/dist/chunks/input.js +3 -5
  266. package/dist/chunks/interact.min.js +3 -5
  267. package/dist/chunks/interactive.js +3 -5
  268. package/dist/chunks/key.js +3 -5
  269. package/dist/chunks/label.js +7 -9
  270. package/dist/chunks/loadable.js +11 -22
  271. package/dist/chunks/locale.js +3 -5
  272. package/dist/chunks/logger.js +3 -5
  273. package/dist/chunks/math.js +3 -5
  274. package/dist/chunks/observers.js +3 -5
  275. package/dist/chunks/openCloseComponent.js +5 -7
  276. package/dist/chunks/resources.js +3 -5
  277. package/dist/chunks/resources2.js +3 -5
  278. package/dist/chunks/resources3.js +8 -14
  279. package/dist/chunks/resources4.js +3 -5
  280. package/dist/chunks/resources5.js +3 -5
  281. package/dist/chunks/resources6.js +3 -5
  282. package/dist/chunks/resources7.js +3 -5
  283. package/dist/chunks/responsive.js +9 -12
  284. package/dist/chunks/runtime.js +39 -43
  285. package/dist/chunks/sortableComponent.js +49 -39
  286. package/dist/chunks/text.js +3 -5
  287. package/dist/chunks/time.js +12 -14
  288. package/dist/chunks/useFocusTrap.js +49 -0
  289. package/dist/chunks/useT9n.js +3 -5
  290. package/dist/chunks/utils.js +19 -17
  291. package/dist/chunks/utils2.js +3 -5
  292. package/dist/chunks/utils3.js +15 -16
  293. package/dist/chunks/utils4.js +264 -271
  294. package/dist/components/calcite-accordion/customElement.js +3 -5
  295. package/dist/components/calcite-accordion-item/customElement.js +10 -14
  296. package/dist/components/calcite-action/customElement.js +17 -21
  297. package/dist/components/calcite-action-bar/customElement.js +24 -27
  298. package/dist/components/calcite-action-group/customElement.js +20 -24
  299. package/dist/components/calcite-action-menu/customElement.js +14 -18
  300. package/dist/components/calcite-action-pad/customElement.js +21 -25
  301. package/dist/components/calcite-alert/customElement.js +50 -63
  302. package/dist/components/calcite-autocomplete/customElement.d.ts +10 -4
  303. package/dist/components/calcite-autocomplete/customElement.js +50 -52
  304. package/dist/components/calcite-autocomplete-item/customElement.js +17 -21
  305. package/dist/components/calcite-autocomplete-item-group/customElement.js +3 -5
  306. package/dist/components/calcite-avatar/customElement.js +8 -10
  307. package/dist/components/calcite-block/customElement.d.ts +18 -1
  308. package/dist/components/calcite-block/customElement.js +54 -40
  309. package/dist/components/calcite-block/index.d.ts +1 -1
  310. package/dist/components/calcite-block/index.js +1 -1
  311. package/dist/components/calcite-block/utils.d.ts +2 -0
  312. package/dist/components/calcite-block-group/customElement.d.ts +50 -0
  313. package/dist/components/calcite-block-group/customElement.js +177 -0
  314. package/dist/components/calcite-block-group/index.d.ts +2 -0
  315. package/dist/components/calcite-block-group/index.js +2 -0
  316. package/dist/components/calcite-block-group/interfaces.d.ts +14 -0
  317. package/dist/components/calcite-block-group/resources.d.ts +8 -0
  318. package/dist/components/calcite-block-group/utils.d.ts +1 -0
  319. package/dist/components/calcite-block-section/customElement.js +19 -23
  320. package/dist/components/calcite-button/customElement.js +28 -30
  321. package/dist/components/calcite-card/customElement.js +17 -23
  322. package/dist/components/calcite-card-group/customElement.js +15 -18
  323. package/dist/components/calcite-carousel/customElement.js +29 -32
  324. package/dist/components/calcite-carousel-item/customElement.js +3 -5
  325. package/dist/components/calcite-checkbox/customElement.d.ts +4 -1
  326. package/dist/components/calcite-checkbox/customElement.js +18 -22
  327. package/dist/components/calcite-chip/customElement.js +42 -44
  328. package/dist/components/calcite-chip-group/customElement.js +10 -14
  329. package/dist/components/calcite-color-picker/customElement.d.ts +1 -1
  330. package/dist/components/calcite-color-picker/customElement.js +200 -178
  331. package/dist/components/calcite-color-picker/resources.d.ts +7 -16
  332. package/dist/components/calcite-color-picker/utils.d.ts +4 -3
  333. package/dist/components/calcite-color-picker-hex-input/customElement.js +27 -31
  334. package/dist/components/calcite-color-picker-swatch/customElement.js +3 -5
  335. package/dist/components/calcite-combobox/customElement.d.ts +5 -3
  336. package/dist/components/calcite-combobox/customElement.js +166 -160
  337. package/dist/components/calcite-combobox/resources.d.ts +1 -0
  338. package/dist/components/calcite-combobox-item/customElement.d.ts +2 -1
  339. package/dist/components/calcite-combobox-item/customElement.js +47 -38
  340. package/dist/components/calcite-combobox-item-group/customElement.js +13 -15
  341. package/dist/components/calcite-date-picker/customElement.d.ts +8 -2
  342. package/dist/components/calcite-date-picker/customElement.js +28 -31
  343. package/dist/components/calcite-date-picker-day/customElement.js +16 -19
  344. package/dist/components/calcite-date-picker-month/customElement.js +39 -41
  345. package/dist/components/calcite-date-picker-month-header/customElement.js +40 -44
  346. package/dist/components/calcite-dialog/customElement.d.ts +20 -4
  347. package/dist/components/calcite-dialog/customElement.js +78 -72
  348. package/dist/components/calcite-dialog/resources.d.ts +1 -0
  349. package/dist/components/calcite-dropdown/customElement.d.ts +1 -1
  350. package/dist/components/calcite-dropdown/customElement.js +63 -70
  351. package/dist/components/calcite-dropdown/resources.d.ts +1 -0
  352. package/dist/components/calcite-dropdown-group/customElement.js +4 -6
  353. package/dist/components/calcite-dropdown-item/customElement.js +20 -23
  354. package/dist/components/calcite-fab/customElement.js +19 -23
  355. package/dist/components/calcite-filter/customElement.js +20 -25
  356. package/dist/components/calcite-flow/customElement.js +19 -22
  357. package/dist/components/calcite-flow-item/customElement.js +26 -30
  358. package/dist/components/calcite-graph/customElement.js +52 -50
  359. package/dist/components/calcite-graph/interfaces.d.ts +1 -5
  360. package/dist/components/calcite-graph/resources.d.ts +5 -0
  361. package/dist/components/calcite-handle/customElement.d.ts +3 -0
  362. package/dist/components/calcite-handle/customElement.js +20 -18
  363. package/dist/components/calcite-icon/customElement.js +23 -25
  364. package/dist/components/calcite-inline-editable/customElement.js +25 -29
  365. package/dist/components/calcite-input/customElement.d.ts +14 -6
  366. package/dist/components/calcite-input/customElement.js +26 -29
  367. package/dist/components/calcite-input-date-picker/customElement.d.ts +12 -3
  368. package/dist/components/calcite-input-date-picker/customElement.js +84 -88
  369. package/dist/components/calcite-input-message/customElement.js +3 -5
  370. package/dist/components/calcite-input-number/customElement.d.ts +12 -5
  371. package/dist/components/calcite-input-number/customElement.js +30 -36
  372. package/dist/components/calcite-input-text/customElement.d.ts +10 -4
  373. package/dist/components/calcite-input-text/customElement.js +61 -65
  374. package/dist/components/calcite-input-time-picker/customElement.d.ts +8 -3
  375. package/dist/components/calcite-input-time-picker/customElement.js +45 -47
  376. package/dist/components/calcite-input-time-zone/customElement.js +53 -55
  377. package/dist/components/calcite-label/customElement.js +3 -5
  378. package/dist/components/calcite-link/customElement.js +10 -14
  379. package/dist/components/calcite-list/customElement.js +67 -70
  380. package/dist/components/calcite-list-item/customElement.js +54 -73
  381. package/dist/components/calcite-list-item/utils.d.ts +1 -0
  382. package/dist/components/calcite-list-item-group/customElement.js +3 -5
  383. package/dist/components/calcite-loader/customElement.js +3 -7
  384. package/dist/components/calcite-menu/customElement.js +12 -16
  385. package/dist/components/calcite-menu-item/customElement.js +12 -16
  386. package/dist/components/calcite-meter/customElement.js +26 -28
  387. package/dist/components/calcite-modal/customElement.d.ts +16 -3
  388. package/dist/components/calcite-modal/customElement.js +61 -61
  389. package/dist/components/calcite-navigation/customElement.js +17 -21
  390. package/dist/components/calcite-navigation-logo/customElement.js +12 -16
  391. package/dist/components/calcite-navigation-user/customElement.js +10 -14
  392. package/dist/components/calcite-notice/customElement.js +25 -28
  393. package/dist/components/calcite-option/customElement.js +3 -5
  394. package/dist/components/calcite-option-group/customElement.js +3 -5
  395. package/dist/components/calcite-pagination/customElement.js +15 -17
  396. package/dist/components/calcite-panel/customElement.js +45 -48
  397. package/dist/components/calcite-popover/customElement.d.ts +10 -7
  398. package/dist/components/calcite-popover/customElement.js +70 -79
  399. package/dist/components/calcite-progress/customElement.js +3 -5
  400. package/dist/components/calcite-radio-button/customElement.d.ts +4 -1
  401. package/dist/components/calcite-radio-button/customElement.js +17 -20
  402. package/dist/components/calcite-radio-button-group/customElement.d.ts +4 -1
  403. package/dist/components/calcite-radio-button-group/customElement.js +14 -17
  404. package/dist/components/calcite-rating/customElement.js +21 -23
  405. package/dist/components/calcite-scrim/customElement.js +3 -5
  406. package/dist/components/calcite-segmented-control/customElement.d.ts +4 -1
  407. package/dist/components/calcite-segmented-control/customElement.js +14 -17
  408. package/dist/components/calcite-segmented-control-item/customElement.js +28 -30
  409. package/dist/components/calcite-select/customElement.d.ts +4 -1
  410. package/dist/components/calcite-select/customElement.js +19 -22
  411. package/dist/components/calcite-sheet/customElement.d.ts +17 -3
  412. package/dist/components/calcite-sheet/customElement.js +59 -62
  413. package/dist/components/calcite-shell/customElement.js +3 -6
  414. package/dist/components/calcite-shell-center-row/customElement.js +3 -5
  415. package/dist/components/calcite-shell-panel/customElement.js +16 -20
  416. package/dist/components/calcite-slider/customElement.d.ts +4 -1
  417. package/dist/components/calcite-slider/customElement.js +18 -21
  418. package/dist/components/calcite-sort-handle/customElement.js +45 -35
  419. package/dist/components/calcite-sort-handle/index.d.ts +1 -1
  420. package/dist/components/calcite-sort-handle/index.js +1 -1
  421. package/dist/components/calcite-sortable-list/customElement.d.ts +4 -1
  422. package/dist/components/calcite-sortable-list/customElement.js +21 -16
  423. package/dist/components/calcite-split-button/customElement.js +13 -20
  424. package/dist/components/calcite-stack/customElement.js +4 -6
  425. package/dist/components/calcite-stepper/customElement.js +36 -39
  426. package/dist/components/calcite-stepper-item/customElement.js +23 -22
  427. package/dist/components/calcite-switch/customElement.js +10 -14
  428. package/dist/components/calcite-tab/customElement.js +3 -5
  429. package/dist/components/calcite-tab-nav/customElement.js +3 -5
  430. package/dist/components/calcite-tab-title/customElement.js +3 -5
  431. package/dist/components/calcite-table/customElement.js +44 -47
  432. package/dist/components/calcite-table-cell/customElement.js +22 -25
  433. package/dist/components/calcite-table-header/customElement.js +18 -21
  434. package/dist/components/calcite-table-row/customElement.js +6 -8
  435. package/dist/components/calcite-tabs/customElement.js +3 -5
  436. package/dist/components/calcite-text-area/customElement.d.ts +10 -3
  437. package/dist/components/calcite-text-area/customElement.js +30 -37
  438. package/dist/components/calcite-tile/customElement.js +16 -20
  439. package/dist/components/calcite-tile-group/customElement.js +3 -5
  440. package/dist/components/calcite-tile-select/customElement.js +17 -22
  441. package/dist/components/calcite-tile-select-group/customElement.js +3 -5
  442. package/dist/components/calcite-time-picker/customElement.d.ts +1 -0
  443. package/dist/components/calcite-time-picker/customElement.js +19 -23
  444. package/dist/components/calcite-tip/customElement.js +3 -5
  445. package/dist/components/calcite-tip-group/customElement.js +3 -5
  446. package/dist/components/calcite-tip-manager/customElement.js +3 -5
  447. package/dist/components/calcite-tooltip/customElement.js +41 -40
  448. package/dist/components/calcite-tree/customElement.js +3 -5
  449. package/dist/components/calcite-tree-item/customElement.js +16 -14
  450. package/dist/components/interfaces.d.ts +4 -0
  451. package/dist/controllers/useFocusTrap.d.ts +67 -0
  452. package/dist/custom-theme/block.d.ts +4 -5
  453. package/dist/custom-theme/calcite-shell-panel.d.ts +13 -0
  454. package/dist/custom-theme/date-picker.d.ts +28 -0
  455. package/dist/custom-theme/flow.d.ts +21 -0
  456. package/dist/custom-theme/graph.d.ts +4 -0
  457. package/dist/custom-theme/inline-editable.d.ts +10 -0
  458. package/dist/custom-theme/segmented-control.d.ts +7 -0
  459. package/dist/docs/api.json +1141 -159
  460. package/dist/docs/docs.json +1093 -126
  461. package/dist/docs/supported-browsers.json +1 -1
  462. package/dist/docs/vscode.css-custom-data.json +315 -7
  463. package/dist/docs/vscode.html-custom-data.json +107 -60
  464. package/dist/docs/web-types.json +659 -119
  465. package/dist/extras/vscode-data.json +107 -60
  466. package/dist/index.d.ts +25 -0
  467. package/dist/index.js +3 -5
  468. package/dist/loader.js +16 -17
  469. package/dist/types/lumina.d.ts +18 -6
  470. package/dist/types/preact.d.ts +19 -6
  471. package/dist/types/react.d.ts +180 -165
  472. package/dist/types/stencil.d.ts +18 -6
  473. package/dist/utils/component.d.ts +4 -0
  474. package/dist/utils/focusTrapComponent.d.ts +9 -0
  475. package/dist/utils/loadable.d.ts +26 -43
  476. package/dist/utils/openCloseComponent.d.ts +17 -18
  477. package/hydrate/index.d.ts +1 -0
  478. package/hydrate/index.js +1 -0
  479. package/hydrate/index.mjs +1 -0
  480. package/package.json +11 -12
  481. package/readme.md +5 -69
  482. package/dist/calcite/2AZY343I.js +0 -6
  483. package/dist/calcite/2CPZ6K5L.js +0 -6
  484. package/dist/calcite/2M35C4DF.js +0 -6
  485. package/dist/calcite/2VVNNU7Q.js +0 -6
  486. package/dist/calcite/2XACBT2N.js +0 -6
  487. package/dist/calcite/32P7BAVF.js +0 -6
  488. package/dist/calcite/3HC2LTHR.js +0 -6
  489. package/dist/calcite/455MOJA6.js +0 -6
  490. package/dist/calcite/4DVWRXRA.js +0 -6
  491. package/dist/calcite/4TF5UO7R.js +0 -6
  492. package/dist/calcite/572RARTY.js +0 -6
  493. package/dist/calcite/5I36CFLM.js +0 -6
  494. package/dist/calcite/5OJMVZTI.js +0 -6
  495. package/dist/calcite/5YZTHYBK.js +0 -6
  496. package/dist/calcite/6L5EBECQ.js +0 -6
  497. package/dist/calcite/73JK3C3F.js +0 -6
  498. package/dist/calcite/7557S5FH.js +0 -6
  499. package/dist/calcite/7FJOFJBG.js +0 -6
  500. package/dist/calcite/7KUN772K.js +0 -6
  501. package/dist/calcite/7LABYE24.js +0 -6
  502. package/dist/calcite/7NPWRWEK.js +0 -6
  503. package/dist/calcite/7PQTHMQD.js +0 -6
  504. package/dist/calcite/AEIISXUM.js +0 -6
  505. package/dist/calcite/AT2QAEKC.js +0 -6
  506. package/dist/calcite/BHLCJMB4.js +0 -6
  507. package/dist/calcite/BOMPAJVU.js +0 -6
  508. package/dist/calcite/BYURAML5.js +0 -6
  509. package/dist/calcite/CRBGPV2Y.js +0 -6
  510. package/dist/calcite/CY2QE4I2.js +0 -6
  511. package/dist/calcite/D26RI2OE.js +0 -6
  512. package/dist/calcite/DCAWR655.js +0 -6
  513. package/dist/calcite/DSYDJ57C.js +0 -6
  514. package/dist/calcite/E2PVAX5K.js +0 -6
  515. package/dist/calcite/EH7S4XKL.js +0 -6
  516. package/dist/calcite/FGCHRTFU.js +0 -6
  517. package/dist/calcite/FIJQNNLL.js +0 -6
  518. package/dist/calcite/FIVGOTUL.js +0 -6
  519. package/dist/calcite/FPZSDG22.js +0 -6
  520. package/dist/calcite/FQJWCM6B.js +0 -6
  521. package/dist/calcite/FRK56FXW.js +0 -6
  522. package/dist/calcite/FSORFWYW.js +0 -6
  523. package/dist/calcite/FWSMKN2T.js +0 -6
  524. package/dist/calcite/GGQW5H6B.js +0 -6
  525. package/dist/calcite/GHY53YEU.js +0 -6
  526. package/dist/calcite/GWGCBSIN.js +0 -6
  527. package/dist/calcite/HH5FL6GD.js +0 -6
  528. package/dist/calcite/HNNE5R46.js +0 -6
  529. package/dist/calcite/HRVN7KZA.js +0 -6
  530. package/dist/calcite/I3TEC7IS.js +0 -6
  531. package/dist/calcite/I5SQS3SN.js +0 -6
  532. package/dist/calcite/I74ZLJFG.js +0 -6
  533. package/dist/calcite/I7SBXLRM.js +0 -6
  534. package/dist/calcite/IEJMBPJU.js +0 -6
  535. package/dist/calcite/IK3QCAZN.js +0 -6
  536. package/dist/calcite/IKOOMPAX.js +0 -6
  537. package/dist/calcite/IPDH2LDG.js +0 -6
  538. package/dist/calcite/IUBUCDD6.js +0 -6
  539. package/dist/calcite/JCMCWR7J.js +0 -6
  540. package/dist/calcite/JHGP2C56.js +0 -6
  541. package/dist/calcite/JMNIVK3R.js +0 -6
  542. package/dist/calcite/KDCUMRGX.js +0 -6
  543. package/dist/calcite/KEFBUO23.js +0 -6
  544. package/dist/calcite/KHNXDA3R.js +0 -6
  545. package/dist/calcite/KLEV3IGL.js +0 -6
  546. package/dist/calcite/LIT6HBCV.js +0 -6
  547. package/dist/calcite/LKXA7MRG.js +0 -6
  548. package/dist/calcite/LMTPIXJD.js +0 -6
  549. package/dist/calcite/M3MFRN64.js +0 -6
  550. package/dist/calcite/M5MPF4VA.js +0 -6
  551. package/dist/calcite/MWGGE65N.js +0 -6
  552. package/dist/calcite/MXNAKF47.js +0 -6
  553. package/dist/calcite/NNKZWGGT.js +0 -6
  554. package/dist/calcite/NVQN43XK.js +0 -6
  555. package/dist/calcite/OHLVZUJX.js +0 -6
  556. package/dist/calcite/OHR7IMVY.js +0 -6
  557. package/dist/calcite/OJ5D52RG.js +0 -6
  558. package/dist/calcite/OJ5H4H4N.js +0 -6
  559. package/dist/calcite/OTT2SAVW.js +0 -6
  560. package/dist/calcite/OTYNRKUI.js +0 -6
  561. package/dist/calcite/PB4E6L52.js +0 -6
  562. package/dist/calcite/PO4EKM6H.js +0 -6
  563. package/dist/calcite/PPU55N5C.js +0 -6
  564. package/dist/calcite/PRGXXMHF.js +0 -6
  565. package/dist/calcite/PZ34QZ44.js +0 -6
  566. package/dist/calcite/PZ65523C.js +0 -6
  567. package/dist/calcite/PZGFP3J5.js +0 -6
  568. package/dist/calcite/Q2OAKI4L.js +0 -7
  569. package/dist/calcite/QIOSM7C2.js +0 -6
  570. package/dist/calcite/QS2B427U.js +0 -6
  571. package/dist/calcite/QVG465DZ.js +0 -6
  572. package/dist/calcite/RJU34JMH.js +0 -6
  573. package/dist/calcite/RL6ENWBS.js +0 -6
  574. package/dist/calcite/RWRTOY74.js +0 -6
  575. package/dist/calcite/S66ATD4V.js +0 -6
  576. package/dist/calcite/SHIZHTEP.js +0 -6
  577. package/dist/calcite/SY776R43.js +0 -6
  578. package/dist/calcite/T2M3KJPZ.js +0 -6
  579. package/dist/calcite/T7AHSVKE.js +0 -6
  580. package/dist/calcite/TBZM4XEW.js +0 -6
  581. package/dist/calcite/THTH4FYX.js +0 -6
  582. package/dist/calcite/TI4ZYY5Y.js +0 -6
  583. package/dist/calcite/TKE6VYZT.js +0 -6
  584. package/dist/calcite/TR3TLSTJ.js +0 -6
  585. package/dist/calcite/TSUCKRY4.js +0 -6
  586. package/dist/calcite/TWZNPBFB.js +0 -6
  587. package/dist/calcite/U5AZRHO7.js +0 -6
  588. package/dist/calcite/UE43U5QZ.js +0 -6
  589. package/dist/calcite/UHCCT74Q.js +0 -6
  590. package/dist/calcite/USP47AIY.js +0 -6
  591. package/dist/calcite/V3ZZW4SK.js +0 -6
  592. package/dist/calcite/WBOLRFTK.js +0 -6
  593. package/dist/calcite/WH3NETOG.js +0 -6
  594. package/dist/calcite/WHD4MFC3.js +0 -6
  595. package/dist/calcite/WJ6LOMWZ.js +0 -6
  596. package/dist/calcite/WKI76QXV.js +0 -6
  597. package/dist/calcite/WRQMW4QF.js +0 -24
  598. package/dist/calcite/X4RLJXN2.js +0 -6
  599. package/dist/calcite/XDGCDDNX.js +0 -8
  600. package/dist/calcite/XL6QBGWC.js +0 -6
  601. package/dist/calcite/XVBU5M6P.js +0 -6
  602. package/dist/calcite/Z4XCJ5VE.js +0 -6
  603. package/dist/calcite/ZQERQE2F.js +0 -6
  604. package/dist/calcite/ZYUUIPOD.js +0 -6
@@ -1,10 +1,9 @@
1
- import { g as Z } from "./_commonjsHelpers.js";
2
- /*!
3
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
4
- * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
5
- * v3.0.0-next.99
6
- */
7
- var N = { exports: {} }, q = {
1
+ import { g as Q } from "./_commonjsHelpers.js";
2
+ import { h as V, i as tt, j as nt } from "./global.js";
3
+ /*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
4
+ See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
5
+ v3.0.0 */
6
+ var N = { exports: {} }, T = {
8
7
  aliceblue: [240, 248, 255],
9
8
  antiquewhite: [250, 235, 215],
10
9
  aqua: [0, 255, 255],
@@ -153,12 +152,12 @@ var N = { exports: {} }, q = {
153
152
  whitesmoke: [245, 245, 245],
154
153
  yellow: [255, 255, 0],
155
154
  yellowgreen: [154, 205, 50]
156
- }, P = { exports: {} }, Q = function(n) {
155
+ }, P = { exports: {} }, et = function(n) {
157
156
  return !n || typeof n == "string" ? !1 : n instanceof Array || Array.isArray(n) || n.length >= 0 && (n.splice instanceof Function || Object.getOwnPropertyDescriptor(n, n.length - 1) && n.constructor.name !== "String");
158
- }, V = Q, tt = Array.prototype.concat, nt = Array.prototype.slice, _ = P.exports = function(n) {
157
+ }, rt = et, st = Array.prototype.concat, ot = Array.prototype.slice, _ = P.exports = function(n) {
159
158
  for (var e = [], r = 0, s = n.length; r < s; r++) {
160
- var a = n[r];
161
- V(a) ? e = tt.call(e, nt.call(a)) : e.push(a);
159
+ var o = n[r];
160
+ rt(o) ? e = st.call(e, ot.call(o)) : e.push(o);
162
161
  }
163
162
  return e;
164
163
  };
@@ -167,97 +166,97 @@ _.wrap = function(t) {
167
166
  return t(_(arguments));
168
167
  };
169
168
  };
170
- var et = P.exports, M = q, F = et, T = Object.hasOwnProperty, D = /* @__PURE__ */ Object.create(null);
171
- for (var O in M)
172
- T.call(M, O) && (D[M[O]] = O);
173
- var y = N.exports = {
169
+ var at = P.exports, M = T, F = at, q = Object.hasOwnProperty, W = /* @__PURE__ */ Object.create(null);
170
+ for (var I in M)
171
+ q.call(M, I) && (W[M[I]] = I);
172
+ var m = N.exports = {
174
173
  to: {},
175
174
  get: {}
176
175
  };
177
- y.get = function(t) {
176
+ m.get = function(t) {
178
177
  var n = t.substring(0, 3).toLowerCase(), e, r;
179
178
  switch (n) {
180
179
  case "hsl":
181
- e = y.get.hsl(t), r = "hsl";
180
+ e = m.get.hsl(t), r = "hsl";
182
181
  break;
183
182
  case "hwb":
184
- e = y.get.hwb(t), r = "hwb";
183
+ e = m.get.hwb(t), r = "hwb";
185
184
  break;
186
185
  default:
187
- e = y.get.rgb(t), r = "rgb";
186
+ e = m.get.rgb(t), r = "rgb";
188
187
  break;
189
188
  }
190
189
  return e ? { model: r, value: e } : null;
191
190
  };
192
- y.get.rgb = function(t) {
191
+ m.get.rgb = function(t) {
193
192
  if (!t)
194
193
  return null;
195
- var n = /^#([a-f0-9]{3,4})$/i, e = /^#([a-f0-9]{6})([a-f0-9]{2})?$/i, r = /^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/, s = /^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/, a = /^(\w+)$/, o = [0, 0, 0, 1], i, l, h;
194
+ var n = /^#([a-f0-9]{3,4})$/i, e = /^#([a-f0-9]{6})([a-f0-9]{2})?$/i, r = /^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/, s = /^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/, o = /^(\w+)$/, a = [0, 0, 0, 1], i, l, h;
196
195
  if (i = t.match(e)) {
197
196
  for (h = i[2], i = i[1], l = 0; l < 3; l++) {
198
197
  var b = l * 2;
199
- o[l] = parseInt(i.slice(b, b + 2), 16);
198
+ a[l] = parseInt(i.slice(b, b + 2), 16);
200
199
  }
201
- h && (o[3] = parseInt(h, 16) / 255);
200
+ h && (a[3] = parseInt(h, 16) / 255);
202
201
  } else if (i = t.match(n)) {
203
202
  for (i = i[1], h = i[3], l = 0; l < 3; l++)
204
- o[l] = parseInt(i[l] + i[l], 16);
205
- h && (o[3] = parseInt(h + h, 16) / 255);
203
+ a[l] = parseInt(i[l] + i[l], 16);
204
+ h && (a[3] = parseInt(h + h, 16) / 255);
206
205
  } else if (i = t.match(r)) {
207
206
  for (l = 0; l < 3; l++)
208
- o[l] = parseInt(i[l + 1], 0);
209
- i[4] && (i[5] ? o[3] = parseFloat(i[4]) * 0.01 : o[3] = parseFloat(i[4]));
207
+ a[l] = parseInt(i[l + 1], 0);
208
+ i[4] && (i[5] ? a[3] = parseFloat(i[4]) * 0.01 : a[3] = parseFloat(i[4]));
210
209
  } else if (i = t.match(s)) {
211
210
  for (l = 0; l < 3; l++)
212
- o[l] = Math.round(parseFloat(i[l + 1]) * 2.55);
213
- i[4] && (i[5] ? o[3] = parseFloat(i[4]) * 0.01 : o[3] = parseFloat(i[4]));
214
- } else return (i = t.match(a)) ? i[1] === "transparent" ? [0, 0, 0, 0] : T.call(M, i[1]) ? (o = M[i[1]], o[3] = 1, o) : null : null;
211
+ a[l] = Math.round(parseFloat(i[l + 1]) * 2.55);
212
+ i[4] && (i[5] ? a[3] = parseFloat(i[4]) * 0.01 : a[3] = parseFloat(i[4]));
213
+ } else return (i = t.match(o)) ? i[1] === "transparent" ? [0, 0, 0, 0] : q.call(M, i[1]) ? (a = M[i[1]], a[3] = 1, a) : null : null;
215
214
  for (l = 0; l < 3; l++)
216
- o[l] = w(o[l], 0, 255);
217
- return o[3] = w(o[3], 0, 1), o;
215
+ a[l] = w(a[l], 0, 255);
216
+ return a[3] = w(a[3], 0, 1), a;
218
217
  };
219
- y.get.hsl = function(t) {
218
+ m.get.hsl = function(t) {
220
219
  if (!t)
221
220
  return null;
222
221
  var 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);
223
222
  if (e) {
224
- var r = parseFloat(e[4]), s = (parseFloat(e[1]) % 360 + 360) % 360, a = w(parseFloat(e[2]), 0, 100), o = w(parseFloat(e[3]), 0, 100), i = w(isNaN(r) ? 1 : r, 0, 1);
225
- return [s, a, o, i];
223
+ var r = parseFloat(e[4]), s = (parseFloat(e[1]) % 360 + 360) % 360, o = w(parseFloat(e[2]), 0, 100), a = w(parseFloat(e[3]), 0, 100), i = w(isNaN(r) ? 1 : r, 0, 1);
224
+ return [s, o, a, i];
226
225
  }
227
226
  return null;
228
227
  };
229
- y.get.hwb = function(t) {
228
+ m.get.hwb = function(t) {
230
229
  if (!t)
231
230
  return null;
232
231
  var 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);
233
232
  if (e) {
234
- var r = parseFloat(e[4]), s = (parseFloat(e[1]) % 360 + 360) % 360, a = w(parseFloat(e[2]), 0, 100), o = w(parseFloat(e[3]), 0, 100), i = w(isNaN(r) ? 1 : r, 0, 1);
235
- return [s, a, o, i];
233
+ var r = parseFloat(e[4]), s = (parseFloat(e[1]) % 360 + 360) % 360, o = w(parseFloat(e[2]), 0, 100), a = w(parseFloat(e[3]), 0, 100), i = w(isNaN(r) ? 1 : r, 0, 1);
234
+ return [s, o, a, i];
236
235
  }
237
236
  return null;
238
237
  };
239
- y.to.hex = function() {
238
+ m.to.hex = function() {
240
239
  var t = F(arguments);
241
240
  return "#" + C(t[0]) + C(t[1]) + C(t[2]) + (t[3] < 1 ? C(Math.round(t[3] * 255)) : "");
242
241
  };
243
- y.to.rgb = function() {
242
+ m.to.rgb = function() {
244
243
  var t = F(arguments);
245
244
  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] + ")";
246
245
  };
247
- y.to.rgb.percent = function() {
246
+ m.to.rgb.percent = function() {
248
247
  var t = F(arguments), n = Math.round(t[0] / 255 * 100), e = Math.round(t[1] / 255 * 100), r = Math.round(t[2] / 255 * 100);
249
248
  return t.length < 4 || t[3] === 1 ? "rgb(" + n + "%, " + e + "%, " + r + "%)" : "rgba(" + n + "%, " + e + "%, " + r + "%, " + t[3] + ")";
250
249
  };
251
- y.to.hsl = function() {
250
+ m.to.hsl = function() {
252
251
  var t = F(arguments);
253
252
  return t.length < 4 || t[3] === 1 ? "hsl(" + t[0] + ", " + t[1] + "%, " + t[2] + "%)" : "hsla(" + t[0] + ", " + t[1] + "%, " + t[2] + "%, " + t[3] + ")";
254
253
  };
255
- y.to.hwb = function() {
254
+ m.to.hwb = function() {
256
255
  var t = F(arguments), n = "";
257
256
  return t.length >= 4 && t[3] !== 1 && (n = ", " + t[3]), "hwb(" + t[0] + ", " + t[1] + "%, " + t[2] + "%" + n + ")";
258
257
  };
259
- y.to.keyword = function(t) {
260
- return D[t.slice(0, 3)];
258
+ m.to.keyword = function(t) {
259
+ return W[t.slice(0, 3)];
261
260
  };
262
261
  function w(t, n, e) {
263
262
  return Math.min(Math.max(n, t), e);
@@ -266,10 +265,10 @@ function C(t) {
266
265
  var n = Math.round(t).toString(16).toUpperCase();
267
266
  return n.length < 2 ? "0" + n : n;
268
267
  }
269
- var rt = N.exports;
270
- const A = q, U = {};
268
+ var it = N.exports;
269
+ const A = T, D = {};
271
270
  for (const t of Object.keys(A))
272
- U[A[t]] = t;
271
+ D[A[t]] = t;
273
272
  const c = {
274
273
  rgb: { channels: 3, labels: "rgb" },
275
274
  hsl: { channels: 3, labels: "hsl" },
@@ -287,7 +286,7 @@ const c = {
287
286
  apple: { channels: 3, labels: ["r16", "g16", "b16"] },
288
287
  gray: { channels: 1, labels: ["gray"] }
289
288
  };
290
- var W = c;
289
+ var X = c;
291
290
  for (const t of Object.keys(c)) {
292
291
  if (!("channels" in c[t]))
293
292
  throw new Error("missing channels property: " + t);
@@ -299,44 +298,44 @@ for (const t of Object.keys(c)) {
299
298
  delete c[t].channels, delete c[t].labels, Object.defineProperty(c[t], "channels", { value: n }), Object.defineProperty(c[t], "labels", { value: e });
300
299
  }
301
300
  c.rgb.hsl = function(t) {
302
- const n = t[0] / 255, e = t[1] / 255, r = t[2] / 255, s = Math.min(n, e, r), a = Math.max(n, e, r), o = a - s;
301
+ const n = t[0] / 255, e = t[1] / 255, r = t[2] / 255, s = Math.min(n, e, r), o = Math.max(n, e, r), a = o - s;
303
302
  let i, l;
304
- a === s ? i = 0 : n === a ? i = (e - r) / o : e === a ? i = 2 + (r - n) / o : r === a && (i = 4 + (n - e) / o), i = Math.min(i * 60, 360), i < 0 && (i += 360);
305
- const h = (s + a) / 2;
306
- return a === s ? l = 0 : h <= 0.5 ? l = o / (a + s) : l = o / (2 - a - s), [i, l * 100, h * 100];
303
+ o === s ? i = 0 : n === o ? i = (e - r) / a : e === o ? i = 2 + (r - n) / a : r === o && (i = 4 + (n - e) / a), i = Math.min(i * 60, 360), i < 0 && (i += 360);
304
+ const h = (s + o) / 2;
305
+ return o === s ? l = 0 : h <= 0.5 ? l = a / (o + s) : l = a / (2 - o - s), [i, l * 100, h * 100];
307
306
  };
308
307
  c.rgb.hsv = function(t) {
309
- let n, e, r, s, a;
310
- const o = t[0] / 255, i = t[1] / 255, l = t[2] / 255, h = Math.max(o, i, l), b = h - Math.min(o, i, l), m = function(Y) {
311
- return (h - Y) / 6 / b + 1 / 2;
308
+ let n, e, r, s, o;
309
+ const a = t[0] / 255, i = t[1] / 255, l = t[2] / 255, h = Math.max(a, i, l), b = h - Math.min(a, i, l), y = function(Z) {
310
+ return (h - Z) / 6 / b + 1 / 2;
312
311
  };
313
- return b === 0 ? (s = 0, a = 0) : (a = b / h, n = m(o), e = m(i), r = m(l), o === h ? s = r - e : i === h ? s = 1 / 3 + n - r : l === h && (s = 2 / 3 + e - n), s < 0 ? s += 1 : s > 1 && (s -= 1)), [
312
+ return b === 0 ? (s = 0, o = 0) : (o = b / h, n = y(a), e = y(i), r = y(l), a === h ? s = r - e : i === h ? s = 1 / 3 + n - r : l === h && (s = 2 / 3 + e - n), s < 0 ? s += 1 : s > 1 && (s -= 1)), [
314
313
  s * 360,
315
- a * 100,
314
+ o * 100,
316
315
  h * 100
317
316
  ];
318
317
  };
319
318
  c.rgb.hwb = function(t) {
320
319
  const n = t[0], e = t[1];
321
320
  let r = t[2];
322
- const s = c.rgb.hsl(t)[0], a = 1 / 255 * Math.min(n, Math.min(e, r));
323
- return r = 1 - 1 / 255 * Math.max(n, Math.max(e, r)), [s, a * 100, r * 100];
321
+ const s = c.rgb.hsl(t)[0], o = 1 / 255 * Math.min(n, Math.min(e, r));
322
+ return r = 1 - 1 / 255 * Math.max(n, Math.max(e, r)), [s, o * 100, r * 100];
324
323
  };
325
324
  c.rgb.cmyk = function(t) {
326
- const n = t[0] / 255, e = t[1] / 255, r = t[2] / 255, s = Math.min(1 - n, 1 - e, 1 - r), a = (1 - n - s) / (1 - s) || 0, o = (1 - e - s) / (1 - s) || 0, i = (1 - r - s) / (1 - s) || 0;
327
- return [a * 100, o * 100, i * 100, s * 100];
325
+ const n = t[0] / 255, e = t[1] / 255, r = t[2] / 255, s = Math.min(1 - n, 1 - e, 1 - r), o = (1 - n - s) / (1 - s) || 0, a = (1 - e - s) / (1 - s) || 0, i = (1 - r - s) / (1 - s) || 0;
326
+ return [o * 100, a * 100, i * 100, s * 100];
328
327
  };
329
- function st(t, n) {
328
+ function lt(t, n) {
330
329
  return (t[0] - n[0]) ** 2 + (t[1] - n[1]) ** 2 + (t[2] - n[2]) ** 2;
331
330
  }
332
331
  c.rgb.keyword = function(t) {
333
- const n = U[t];
332
+ const n = D[t];
334
333
  if (n)
335
334
  return n;
336
335
  let e = 1 / 0, r;
337
336
  for (const s of Object.keys(A)) {
338
- const a = A[s], o = st(t, a);
339
- o < e && (e = o, r = s);
337
+ const o = A[s], a = lt(t, o);
338
+ a < e && (e = a, r = s);
340
339
  }
341
340
  return r;
342
341
  };
@@ -346,135 +345,135 @@ c.keyword.rgb = function(t) {
346
345
  c.rgb.xyz = function(t) {
347
346
  let n = t[0] / 255, e = t[1] / 255, r = t[2] / 255;
348
347
  n = n > 0.04045 ? ((n + 0.055) / 1.055) ** 2.4 : n / 12.92, e = e > 0.04045 ? ((e + 0.055) / 1.055) ** 2.4 : e / 12.92, r = r > 0.04045 ? ((r + 0.055) / 1.055) ** 2.4 : r / 12.92;
349
- const s = n * 0.4124 + e * 0.3576 + r * 0.1805, a = n * 0.2126 + e * 0.7152 + r * 0.0722, o = n * 0.0193 + e * 0.1192 + r * 0.9505;
350
- return [s * 100, a * 100, o * 100];
348
+ const s = n * 0.4124 + e * 0.3576 + r * 0.1805, o = n * 0.2126 + e * 0.7152 + r * 0.0722, a = n * 0.0193 + e * 0.1192 + r * 0.9505;
349
+ return [s * 100, o * 100, a * 100];
351
350
  };
352
351
  c.rgb.lab = function(t) {
353
352
  const n = c.rgb.xyz(t);
354
353
  let e = n[0], r = n[1], s = n[2];
355
354
  e /= 95.047, r /= 100, s /= 108.883, e = e > 8856e-6 ? e ** (1 / 3) : 7.787 * e + 16 / 116, r = r > 8856e-6 ? r ** (1 / 3) : 7.787 * r + 16 / 116, s = s > 8856e-6 ? s ** (1 / 3) : 7.787 * s + 16 / 116;
356
- const a = 116 * r - 16, o = 500 * (e - r), i = 200 * (r - s);
357
- return [a, o, i];
355
+ const o = 116 * r - 16, a = 500 * (e - r), i = 200 * (r - s);
356
+ return [o, a, i];
358
357
  };
359
358
  c.hsl.rgb = function(t) {
360
359
  const n = t[0] / 360, e = t[1] / 100, r = t[2] / 100;
361
- let s, a, o;
360
+ let s, o, a;
362
361
  if (e === 0)
363
- return o = r * 255, [o, o, o];
362
+ return a = r * 255, [a, a, a];
364
363
  r < 0.5 ? s = r * (1 + e) : s = r + e - r * e;
365
364
  const i = 2 * r - s, l = [0, 0, 0];
366
365
  for (let h = 0; h < 3; h++)
367
- a = n + 1 / 3 * -(h - 1), a < 0 && a++, a > 1 && a--, 6 * a < 1 ? o = i + (s - i) * 6 * a : 2 * a < 1 ? o = s : 3 * a < 2 ? o = i + (s - i) * (2 / 3 - a) * 6 : o = i, l[h] = o * 255;
366
+ o = n + 1 / 3 * -(h - 1), o < 0 && o++, o > 1 && o--, 6 * o < 1 ? a = i + (s - i) * 6 * o : 2 * o < 1 ? a = s : 3 * o < 2 ? a = i + (s - i) * (2 / 3 - o) * 6 : a = i, l[h] = a * 255;
368
367
  return l;
369
368
  };
370
369
  c.hsl.hsv = function(t) {
371
370
  const n = t[0];
372
371
  let e = t[1] / 100, r = t[2] / 100, s = e;
373
- const a = Math.max(r, 0.01);
374
- r *= 2, e *= r <= 1 ? r : 2 - r, s *= a <= 1 ? a : 2 - a;
375
- const o = (r + e) / 2, i = r === 0 ? 2 * s / (a + s) : 2 * e / (r + e);
376
- return [n, i * 100, o * 100];
372
+ const o = Math.max(r, 0.01);
373
+ r *= 2, e *= r <= 1 ? r : 2 - r, s *= o <= 1 ? o : 2 - o;
374
+ const a = (r + e) / 2, i = r === 0 ? 2 * s / (o + s) : 2 * e / (r + e);
375
+ return [n, i * 100, a * 100];
377
376
  };
378
377
  c.hsv.rgb = function(t) {
379
378
  const n = t[0] / 60, e = t[1] / 100;
380
379
  let r = t[2] / 100;
381
- const s = Math.floor(n) % 6, a = n - Math.floor(n), o = 255 * r * (1 - e), i = 255 * r * (1 - e * a), l = 255 * r * (1 - e * (1 - a));
380
+ const s = Math.floor(n) % 6, o = n - Math.floor(n), a = 255 * r * (1 - e), i = 255 * r * (1 - e * o), l = 255 * r * (1 - e * (1 - o));
382
381
  switch (r *= 255, s) {
383
382
  case 0:
384
- return [r, l, o];
383
+ return [r, l, a];
385
384
  case 1:
386
- return [i, r, o];
385
+ return [i, r, a];
387
386
  case 2:
388
- return [o, r, l];
387
+ return [a, r, l];
389
388
  case 3:
390
- return [o, i, r];
389
+ return [a, i, r];
391
390
  case 4:
392
- return [l, o, r];
391
+ return [l, a, r];
393
392
  case 5:
394
- return [r, o, i];
393
+ return [r, a, i];
395
394
  }
396
395
  };
397
396
  c.hsv.hsl = function(t) {
398
397
  const n = t[0], e = t[1] / 100, r = t[2] / 100, s = Math.max(r, 0.01);
399
- let a, o;
400
- o = (2 - e) * r;
398
+ let o, a;
399
+ a = (2 - e) * r;
401
400
  const i = (2 - e) * s;
402
- return a = e * s, a /= i <= 1 ? i : 2 - i, a = a || 0, o /= 2, [n, a * 100, o * 100];
401
+ return o = e * s, o /= i <= 1 ? i : 2 - i, o = o || 0, a /= 2, [n, o * 100, a * 100];
403
402
  };
404
403
  c.hwb.rgb = function(t) {
405
404
  const n = t[0] / 360;
406
405
  let e = t[1] / 100, r = t[2] / 100;
407
406
  const s = e + r;
408
- let a;
407
+ let o;
409
408
  s > 1 && (e /= s, r /= s);
410
- const o = Math.floor(6 * n), i = 1 - r;
411
- a = 6 * n - o, o & 1 && (a = 1 - a);
412
- const l = e + a * (i - e);
413
- let h, b, m;
414
- switch (o) {
409
+ const a = Math.floor(6 * n), i = 1 - r;
410
+ o = 6 * n - a, a & 1 && (o = 1 - o);
411
+ const l = e + o * (i - e);
412
+ let h, b, y;
413
+ switch (a) {
415
414
  default:
416
415
  case 6:
417
416
  case 0:
418
- h = i, b = l, m = e;
417
+ h = i, b = l, y = e;
419
418
  break;
420
419
  case 1:
421
- h = l, b = i, m = e;
420
+ h = l, b = i, y = e;
422
421
  break;
423
422
  case 2:
424
- h = e, b = i, m = l;
423
+ h = e, b = i, y = l;
425
424
  break;
426
425
  case 3:
427
- h = e, b = l, m = i;
426
+ h = e, b = l, y = i;
428
427
  break;
429
428
  case 4:
430
- h = l, b = e, m = i;
429
+ h = l, b = e, y = i;
431
430
  break;
432
431
  case 5:
433
- h = i, b = e, m = l;
432
+ h = i, b = e, y = l;
434
433
  break;
435
434
  }
436
- return [h * 255, b * 255, m * 255];
435
+ return [h * 255, b * 255, y * 255];
437
436
  };
438
437
  c.cmyk.rgb = function(t) {
439
- const n = t[0] / 100, e = t[1] / 100, r = t[2] / 100, s = t[3] / 100, a = 1 - Math.min(1, n * (1 - s) + s), o = 1 - Math.min(1, e * (1 - s) + s), i = 1 - Math.min(1, r * (1 - s) + s);
440
- return [a * 255, o * 255, i * 255];
438
+ const n = t[0] / 100, e = t[1] / 100, r = t[2] / 100, s = t[3] / 100, o = 1 - Math.min(1, n * (1 - s) + s), a = 1 - Math.min(1, e * (1 - s) + s), i = 1 - Math.min(1, r * (1 - s) + s);
439
+ return [o * 255, a * 255, i * 255];
441
440
  };
442
441
  c.xyz.rgb = function(t) {
443
442
  const n = t[0] / 100, e = t[1] / 100, r = t[2] / 100;
444
- let s, a, o;
445
- return s = n * 3.2406 + e * -1.5372 + r * -0.4986, a = n * -0.9689 + e * 1.8758 + r * 0.0415, o = n * 0.0557 + e * -0.204 + r * 1.057, s = s > 31308e-7 ? 1.055 * s ** (1 / 2.4) - 0.055 : s * 12.92, a = a > 31308e-7 ? 1.055 * a ** (1 / 2.4) - 0.055 : a * 12.92, o = o > 31308e-7 ? 1.055 * o ** (1 / 2.4) - 0.055 : o * 12.92, s = Math.min(Math.max(0, s), 1), a = Math.min(Math.max(0, a), 1), o = Math.min(Math.max(0, o), 1), [s * 255, a * 255, o * 255];
443
+ let s, o, a;
444
+ return s = n * 3.2406 + e * -1.5372 + r * -0.4986, o = n * -0.9689 + e * 1.8758 + r * 0.0415, a = n * 0.0557 + e * -0.204 + r * 1.057, s = s > 31308e-7 ? 1.055 * s ** (1 / 2.4) - 0.055 : s * 12.92, o = o > 31308e-7 ? 1.055 * o ** (1 / 2.4) - 0.055 : o * 12.92, a = a > 31308e-7 ? 1.055 * a ** (1 / 2.4) - 0.055 : a * 12.92, s = Math.min(Math.max(0, s), 1), o = Math.min(Math.max(0, o), 1), a = Math.min(Math.max(0, a), 1), [s * 255, o * 255, a * 255];
446
445
  };
447
446
  c.xyz.lab = function(t) {
448
447
  let n = t[0], e = t[1], r = t[2];
449
448
  n /= 95.047, e /= 100, r /= 108.883, n = n > 8856e-6 ? n ** (1 / 3) : 7.787 * n + 16 / 116, e = e > 8856e-6 ? e ** (1 / 3) : 7.787 * e + 16 / 116, r = r > 8856e-6 ? r ** (1 / 3) : 7.787 * r + 16 / 116;
450
- const s = 116 * e - 16, a = 500 * (n - e), o = 200 * (e - r);
451
- return [s, a, o];
449
+ const s = 116 * e - 16, o = 500 * (n - e), a = 200 * (e - r);
450
+ return [s, o, a];
452
451
  };
453
452
  c.lab.xyz = function(t) {
454
453
  const n = t[0], e = t[1], r = t[2];
455
- let s, a, o;
456
- a = (n + 16) / 116, s = e / 500 + a, o = a - r / 200;
457
- const i = a ** 3, l = s ** 3, h = o ** 3;
458
- return a = i > 8856e-6 ? i : (a - 16 / 116) / 7.787, s = l > 8856e-6 ? l : (s - 16 / 116) / 7.787, o = h > 8856e-6 ? h : (o - 16 / 116) / 7.787, s *= 95.047, a *= 100, o *= 108.883, [s, a, o];
454
+ let s, o, a;
455
+ o = (n + 16) / 116, s = e / 500 + o, a = o - r / 200;
456
+ const i = o ** 3, l = s ** 3, h = a ** 3;
457
+ return o = i > 8856e-6 ? i : (o - 16 / 116) / 7.787, s = l > 8856e-6 ? l : (s - 16 / 116) / 7.787, a = h > 8856e-6 ? h : (a - 16 / 116) / 7.787, s *= 95.047, o *= 100, a *= 108.883, [s, o, a];
459
458
  };
460
459
  c.lab.lch = function(t) {
461
460
  const n = t[0], e = t[1], r = t[2];
462
461
  let s;
463
462
  s = Math.atan2(r, e) * 360 / 2 / Math.PI, s < 0 && (s += 360);
464
- const o = Math.sqrt(e * e + r * r);
465
- return [n, o, s];
463
+ const a = Math.sqrt(e * e + r * r);
464
+ return [n, a, s];
466
465
  };
467
466
  c.lch.lab = function(t) {
468
- const n = t[0], e = t[1], s = t[2] / 360 * 2 * Math.PI, a = e * Math.cos(s), o = e * Math.sin(s);
469
- return [n, a, o];
467
+ const n = t[0], e = t[1], s = t[2] / 360 * 2 * Math.PI, o = e * Math.cos(s), a = e * Math.sin(s);
468
+ return [n, o, a];
470
469
  };
471
470
  c.rgb.ansi16 = function(t, n = null) {
472
471
  const [e, r, s] = t;
473
- let a = n === null ? c.rgb.hsv(t)[2] : n;
474
- if (a = Math.round(a / 50), a === 0)
472
+ let o = n === null ? c.rgb.hsv(t)[2] : n;
473
+ if (o = Math.round(o / 50), o === 0)
475
474
  return 30;
476
- let o = 30 + (Math.round(s / 255) << 2 | Math.round(r / 255) << 1 | Math.round(e / 255));
477
- return a === 2 && (o += 60), o;
475
+ let a = 30 + (Math.round(s / 255) << 2 | Math.round(r / 255) << 1 | Math.round(e / 255));
476
+ return o === 2 && (a += 60), a;
478
477
  };
479
478
  c.hsv.ansi16 = function(t) {
480
479
  return c.rgb.ansi16(c.hsv.rgb(t), t[2]);
@@ -487,13 +486,13 @@ c.ansi16.rgb = function(t) {
487
486
  let n = t % 10;
488
487
  if (n === 0 || n === 7)
489
488
  return t > 50 && (n += 3.5), n = n / 10.5 * 255, [n, n, n];
490
- const e = (~~(t > 50) + 1) * 0.5, r = (n & 1) * e * 255, s = (n >> 1 & 1) * e * 255, a = (n >> 2 & 1) * e * 255;
491
- return [r, s, a];
489
+ const e = (~~(t > 50) + 1) * 0.5, r = (n & 1) * e * 255, s = (n >> 1 & 1) * e * 255, o = (n >> 2 & 1) * e * 255;
490
+ return [r, s, o];
492
491
  };
493
492
  c.ansi256.rgb = function(t) {
494
493
  if (t >= 232) {
495
- const a = (t - 232) * 10 + 8;
496
- return [a, a, a];
494
+ const o = (t - 232) * 10 + 8;
495
+ return [o, o, o];
497
496
  }
498
497
  t -= 16;
499
498
  let n;
@@ -510,13 +509,13 @@ c.hex.rgb = function(t) {
510
509
  return [0, 0, 0];
511
510
  let e = n[0];
512
511
  n[0].length === 3 && (e = e.split("").map((i) => i + i).join(""));
513
- const r = parseInt(e, 16), s = r >> 16 & 255, a = r >> 8 & 255, o = r & 255;
514
- return [s, a, o];
512
+ const r = parseInt(e, 16), s = r >> 16 & 255, o = r >> 8 & 255, a = r & 255;
513
+ return [s, o, a];
515
514
  };
516
515
  c.rgb.hcg = function(t) {
517
- const n = t[0] / 255, e = t[1] / 255, r = t[2] / 255, s = Math.max(Math.max(n, e), r), a = Math.min(Math.min(n, e), r), o = s - a;
516
+ const n = t[0] / 255, e = t[1] / 255, r = t[2] / 255, s = Math.max(Math.max(n, e), r), o = Math.min(Math.min(n, e), r), a = s - o;
518
517
  let i, l;
519
- return o < 1 ? i = a / (1 - o) : i = 0, o <= 0 ? l = 0 : s === n ? l = (e - r) / o % 6 : s === e ? l = 2 + (r - n) / o : l = 4 + (n - e) / o, l /= 6, l %= 1, [l * 360, o * 100, i * 100];
518
+ return a < 1 ? i = o / (1 - a) : i = 0, a <= 0 ? l = 0 : s === n ? l = (e - r) / a % 6 : s === e ? l = 2 + (r - n) / a : l = 4 + (n - e) / a, l /= 6, l %= 1, [l * 360, a * 100, i * 100];
520
519
  };
521
520
  c.hsl.hcg = function(t) {
522
521
  const n = t[1] / 100, e = t[2] / 100, r = e < 0.5 ? 2 * n * e : 2 * n * (1 - e);
@@ -532,23 +531,23 @@ c.hcg.rgb = function(t) {
532
531
  const n = t[0] / 360, e = t[1] / 100, r = t[2] / 100;
533
532
  if (e === 0)
534
533
  return [r * 255, r * 255, r * 255];
535
- const s = [0, 0, 0], a = n % 1 * 6, o = a % 1, i = 1 - o;
534
+ const s = [0, 0, 0], o = n % 1 * 6, a = o % 1, i = 1 - a;
536
535
  let l = 0;
537
- switch (Math.floor(a)) {
536
+ switch (Math.floor(o)) {
538
537
  case 0:
539
- s[0] = 1, s[1] = o, s[2] = 0;
538
+ s[0] = 1, s[1] = a, s[2] = 0;
540
539
  break;
541
540
  case 1:
542
541
  s[0] = i, s[1] = 1, s[2] = 0;
543
542
  break;
544
543
  case 2:
545
- s[0] = 0, s[1] = 1, s[2] = o;
544
+ s[0] = 0, s[1] = 1, s[2] = a;
546
545
  break;
547
546
  case 3:
548
547
  s[0] = 0, s[1] = i, s[2] = 1;
549
548
  break;
550
549
  case 4:
551
- s[0] = o, s[1] = 0, s[2] = 1;
550
+ s[0] = a, s[1] = 0, s[2] = 1;
552
551
  break;
553
552
  default:
554
553
  s[0] = 1, s[1] = 0, s[2] = i;
@@ -575,8 +574,8 @@ c.hcg.hwb = function(t) {
575
574
  };
576
575
  c.hwb.hcg = function(t) {
577
576
  const n = t[1] / 100, r = 1 - t[2] / 100, s = r - n;
578
- let a = 0;
579
- return s < 1 && (a = (r - s) / (1 - s)), [t[0], s * 100, a * 100];
577
+ let o = 0;
578
+ return s < 1 && (o = (r - s) / (1 - s)), [t[0], s * 100, o * 100];
580
579
  };
581
580
  c.apple.rgb = function(t) {
582
581
  return [t[0] / 65535 * 255, t[1] / 65535 * 255, t[2] / 65535 * 255];
@@ -607,8 +606,8 @@ c.gray.hex = function(t) {
607
606
  c.rgb.gray = function(t) {
608
607
  return [(t[0] + t[1] + t[2]) / 3 / 255 * 100];
609
608
  };
610
- const z = W;
611
- function ot() {
609
+ const z = X;
610
+ function ct() {
612
611
  const t = {}, n = Object.keys(z);
613
612
  for (let e = n.length, r = 0; r < e; r++)
614
613
  t[n[r]] = {
@@ -619,46 +618,46 @@ function ot() {
619
618
  };
620
619
  return t;
621
620
  }
622
- function at(t) {
623
- const n = ot(), e = [t];
621
+ function ht(t) {
622
+ const n = ct(), e = [t];
624
623
  for (n[t].distance = 0; e.length; ) {
625
624
  const r = e.pop(), s = Object.keys(z[r]);
626
- for (let a = s.length, o = 0; o < a; o++) {
627
- const i = s[o], l = n[i];
625
+ for (let o = s.length, a = 0; a < o; a++) {
626
+ const i = s[a], l = n[i];
628
627
  l.distance === -1 && (l.distance = n[r].distance + 1, l.parent = r, e.unshift(i));
629
628
  }
630
629
  }
631
630
  return n;
632
631
  }
633
- function it(t, n) {
632
+ function ut(t, n) {
634
633
  return function(e) {
635
634
  return n(t(e));
636
635
  };
637
636
  }
638
- function lt(t, n) {
637
+ function ft(t, n) {
639
638
  const e = [n[t].parent, t];
640
639
  let r = z[n[t].parent][t], s = n[t].parent;
641
640
  for (; n[s].parent; )
642
- e.unshift(n[s].parent), r = it(z[n[s].parent][s], r), s = n[s].parent;
641
+ e.unshift(n[s].parent), r = ut(z[n[s].parent][s], r), s = n[s].parent;
643
642
  return r.conversion = e, r;
644
643
  }
645
- var ct = function(t) {
646
- const n = at(t), e = {}, r = Object.keys(n);
647
- for (let s = r.length, a = 0; a < s; a++) {
648
- const o = r[a];
649
- n[o].parent !== null && (e[o] = lt(o, n));
644
+ var dt = function(t) {
645
+ const n = ht(t), e = {}, r = Object.keys(n);
646
+ for (let s = r.length, o = 0; o < s; o++) {
647
+ const a = r[o];
648
+ n[a].parent !== null && (e[a] = ft(a, n));
650
649
  }
651
650
  return e;
652
651
  };
653
- const E = W, ht = ct, k = {}, ut = Object.keys(E);
654
- function ft(t) {
652
+ const E = X, gt = dt, x = {}, pt = Object.keys(E);
653
+ function bt(t) {
655
654
  const n = function(...e) {
656
655
  const r = e[0];
657
656
  return r == null ? r : (r.length > 1 && (e = r), t(e));
658
657
  };
659
658
  return "conversion" in t && (n.conversion = t.conversion), n;
660
659
  }
661
- function dt(t) {
660
+ function vt(t) {
662
661
  const n = function(...e) {
663
662
  const r = e[0];
664
663
  if (r == null)
@@ -666,36 +665,36 @@ function dt(t) {
666
665
  r.length > 1 && (e = r);
667
666
  const s = t(e);
668
667
  if (typeof s == "object")
669
- for (let a = s.length, o = 0; o < a; o++)
670
- s[o] = Math.round(s[o]);
668
+ for (let o = s.length, a = 0; a < o; a++)
669
+ s[a] = Math.round(s[a]);
671
670
  return s;
672
671
  };
673
672
  return "conversion" in t && (n.conversion = t.conversion), n;
674
673
  }
675
- ut.forEach((t) => {
676
- k[t] = {}, Object.defineProperty(k[t], "channels", { value: E[t].channels }), Object.defineProperty(k[t], "labels", { value: E[t].labels });
677
- const n = ht(t);
674
+ pt.forEach((t) => {
675
+ x[t] = {}, Object.defineProperty(x[t], "channels", { value: E[t].channels }), Object.defineProperty(x[t], "labels", { value: E[t].labels });
676
+ const n = gt(t);
678
677
  Object.keys(n).forEach((r) => {
679
678
  const s = n[r];
680
- k[t][r] = dt(s), k[t][r].raw = ft(s);
679
+ x[t][r] = vt(s), x[t][r].raw = bt(s);
681
680
  });
682
681
  });
683
- var gt = k;
684
- const x = rt, v = gt, X = [
682
+ var mt = x;
683
+ const k = it, v = mt, U = [
685
684
  // To be honest, I don't really feel like keyword belongs in color convert, but eh.
686
685
  "keyword",
687
686
  // Gray conflicts with some method names, and has its own method defined.
688
687
  "gray",
689
688
  // Shouldn't really be in color-convert either...
690
689
  "hex"
691
- ], L = {};
690
+ ], O = {};
692
691
  for (const t of Object.keys(v))
693
- L[[...v[t].labels].sort().join("")] = t;
692
+ O[[...v[t].labels].sort().join("")] = t;
694
693
  const $ = {};
695
694
  function p(t, n) {
696
695
  if (!(this instanceof p))
697
696
  return new p(t, n);
698
- if (n && n in X && (n = null), n && !(n in v))
697
+ if (n && n in U && (n = null), n && !(n in v))
699
698
  throw new Error("Unknown model: " + n);
700
699
  let e, r;
701
700
  if (t == null)
@@ -703,14 +702,14 @@ function p(t, n) {
703
702
  else if (t instanceof p)
704
703
  this.model = t.model, this.color = [...t.color], this.valpha = t.valpha;
705
704
  else if (typeof t == "string") {
706
- const s = x.get(t);
705
+ const s = k.get(t);
707
706
  if (s === null)
708
707
  throw new Error("Unable to parse color from string: " + t);
709
708
  this.model = s.model, r = v[this.model].channels, this.color = s.value.slice(0, r), this.valpha = typeof s.value[r] == "number" ? s.value[r] : 1;
710
709
  } else if (t.length > 0) {
711
710
  this.model = n || "rgb", r = v[this.model].channels;
712
711
  const s = Array.prototype.slice.call(t, 0, r);
713
- this.color = I(s, r), this.valpha = typeof t[r] == "number" ? t[r] : 1;
712
+ this.color = L(s, r), this.valpha = typeof t[r] == "number" ? t[r] : 1;
714
713
  } else if (typeof t == "number")
715
714
  this.model = "rgb", this.color = [
716
715
  t >> 16 & 255,
@@ -721,14 +720,14 @@ function p(t, n) {
721
720
  this.valpha = 1;
722
721
  const s = Object.keys(t);
723
722
  "alpha" in t && (s.splice(s.indexOf("alpha"), 1), this.valpha = typeof t.alpha == "number" ? t.alpha : 0);
724
- const a = s.sort().join("");
725
- if (!(a in L))
723
+ const o = s.sort().join("");
724
+ if (!(o in O))
726
725
  throw new Error("Unable to parse color from object: " + JSON.stringify(t));
727
- this.model = L[a];
728
- const { labels: o } = v[this.model], i = [];
729
- for (e = 0; e < o.length; e++)
730
- i.push(t[o[e]]);
731
- this.color = I(i);
726
+ this.model = O[o];
727
+ const { labels: a } = v[this.model], i = [];
728
+ for (e = 0; e < a.length; e++)
729
+ i.push(t[a[e]]);
730
+ this.color = L(i);
732
731
  }
733
732
  if ($[this.model])
734
733
  for (r = v[this.model].channels, e = 0; e < r; e++) {
@@ -745,14 +744,14 @@ p.prototype = {
745
744
  return this[this.model]();
746
745
  },
747
746
  string(t) {
748
- let n = this.model in x.to ? this : this.rgb();
747
+ let n = this.model in k.to ? this : this.rgb();
749
748
  n = n.round(typeof t == "number" ? t : 1);
750
749
  const e = n.valpha === 1 ? n.color : [...n.color, this.valpha];
751
- return x.to[n.model](e);
750
+ return k.to[n.model](e);
752
751
  },
753
752
  percentString(t) {
754
753
  const n = this.rgb().round(typeof t == "number" ? t : 1), e = n.valpha === 1 ? n.color : [...n.color, this.valpha];
755
- return x.to.rgb.percent(e);
754
+ return k.to.rgb.percent(e);
756
755
  },
757
756
  array() {
758
757
  return this.valpha === 1 ? [...this.color] : [...this.color, this.valpha];
@@ -772,7 +771,7 @@ p.prototype = {
772
771
  return t.r /= 255, t.g /= 255, t.b /= 255, this.valpha !== 1 && (t.alpha = this.valpha), t;
773
772
  },
774
773
  round(t) {
775
- return t = Math.max(t || 0, 0), new p([...this.color.map(bt(t)), this.valpha], this.model);
774
+ return t = Math.max(t || 0, 0), new p([...this.color.map(wt(t)), this.valpha], this.model);
776
775
  },
777
776
  alpha(t) {
778
777
  return t !== void 0 ? new p([...this.color, Math.max(0, Math.min(1, t))], this.model) : this.valpha;
@@ -804,14 +803,14 @@ p.prototype = {
804
803
  return t !== void 0 ? new p(t) : v[this.model].keyword(this.color);
805
804
  },
806
805
  hex(t) {
807
- return t !== void 0 ? new p(t) : x.to.hex(this.rgb().round().color);
806
+ return t !== void 0 ? new p(t) : k.to.hex(this.rgb().round().color);
808
807
  },
809
808
  hexa(t) {
810
809
  if (t !== void 0)
811
810
  return new p(t);
812
811
  const n = this.rgb().round().color;
813
812
  let e = Math.round(this.valpha * 255).toString(16).toUpperCase();
814
- return e.length === 1 && (e = "0" + e), x.to.hex(n) + e;
813
+ return e.length === 1 && (e = "0" + e), k.to.hex(n) + e;
815
814
  },
816
815
  rgbNumber() {
817
816
  const t = this.rgb().color;
@@ -888,7 +887,7 @@ p.prototype = {
888
887
  mix(t, n) {
889
888
  if (!t || !t.rgb)
890
889
  throw new Error('Argument to "mix" was not a Color instance, but rather an instance of ' + typeof t);
891
- const e = t.rgb(), r = this.rgb(), s = n === void 0 ? 0.5 : n, a = 2 * s - 1, o = e.alpha() - r.alpha(), i = ((a * o === -1 ? a : (a + o) / (1 + a * o)) + 1) / 2, l = 1 - i;
890
+ const e = t.rgb(), r = this.rgb(), s = n === void 0 ? 0.5 : n, o = 2 * s - 1, a = e.alpha() - r.alpha(), i = ((o * a === -1 ? o : (o + a) / (1 + o * a)) + 1) / 2, l = 1 - i;
892
891
  return p.rgb(
893
892
  i * e.red() + l * r.red(),
894
893
  i * e.green() + l * r.green(),
@@ -898,22 +897,22 @@ p.prototype = {
898
897
  }
899
898
  };
900
899
  for (const t of Object.keys(v)) {
901
- if (X.includes(t))
900
+ if (U.includes(t))
902
901
  continue;
903
902
  const { channels: n } = v[t];
904
903
  p.prototype[t] = function(...e) {
905
- return this.model === t ? new p(this) : e.length > 0 ? new p(e, t) : new p([...vt(v[this.model][t].raw(this.color)), this.valpha], t);
904
+ return this.model === t ? new p(this) : e.length > 0 ? new p(e, t) : new p([...St(v[this.model][t].raw(this.color)), this.valpha], t);
906
905
  }, p[t] = function(...e) {
907
906
  let r = e[0];
908
- return typeof r == "number" && (r = I(e, n)), new p(r, t);
907
+ return typeof r == "number" && (r = L(e, n)), new p(r, t);
909
908
  };
910
909
  }
911
- function pt(t, n) {
910
+ function yt(t, n) {
912
911
  return Number(t.toFixed(n));
913
912
  }
914
- function bt(t) {
913
+ function wt(t) {
915
914
  return function(n) {
916
- return pt(n, t);
915
+ return yt(n, t);
917
916
  };
918
917
  }
919
918
  function u(t, n, e) {
@@ -930,16 +929,16 @@ function g(t) {
930
929
  return Math.max(0, Math.min(t, n));
931
930
  };
932
931
  }
933
- function vt(t) {
932
+ function St(t) {
934
933
  return Array.isArray(t) ? t : [t];
935
934
  }
936
- function I(t, n) {
935
+ function L(t, n) {
937
936
  for (let e = 0; e < n; e++)
938
937
  typeof t[e] != "number" && (t[e] = 0);
939
938
  return t;
940
939
  }
941
- var yt = p;
942
- const mt = /* @__PURE__ */ Z(yt), Ht = {
940
+ var xt = p;
941
+ const kt = /* @__PURE__ */ Q(xt), Lt = {
943
942
  channel: "channel",
944
943
  channels: "channels",
945
944
  colorField: "color-field",
@@ -970,103 +969,94 @@ const mt = /* @__PURE__ */ Z(yt), Ht = {
970
969
  slider: "slider",
971
970
  sliders: "sliders",
972
971
  splitSection: "section--split"
973
- }, zt = mt("#007AC2"), $t = "calcite-color-", Ot = {
972
+ }, Rt = kt("#007AC2"), _t = "calcite-color-", Bt = {
974
973
  r: 255,
975
974
  g: 255,
976
975
  b: 255
977
- }, wt = {
976
+ }, Mt = {
978
977
  h: 360,
979
978
  s: 100,
980
979
  v: 100
981
- }, Et = wt.h - 1, Lt = {
980
+ }, Gt = Mt.h - 1, Nt = {
982
981
  min: 0,
983
982
  max: 100
984
- }, St = {
983
+ }, At = {
985
984
  s: {
985
+ gap: parseInt(nt),
986
986
  slider: {
987
- height: 12,
988
- width: 142
989
- },
990
- colorField: {
991
- height: 110,
992
- width: 198
987
+ height: 12
993
988
  },
994
989
  thumb: {
995
990
  radius: 7
996
991
  },
997
992
  preview: {
998
993
  size: 20
999
- }
994
+ },
995
+ minWidth: 200
1000
996
  },
1001
997
  m: {
998
+ gap: parseInt(tt),
1002
999
  slider: {
1003
- height: 12,
1004
- width: 170
1005
- },
1006
- colorField: {
1007
- height: 132,
1008
- width: 238
1000
+ height: 12
1009
1001
  },
1010
1002
  thumb: {
1011
1003
  radius: 7
1012
1004
  },
1013
1005
  preview: {
1014
1006
  size: 24
1015
- }
1007
+ },
1008
+ minWidth: 240
1016
1009
  },
1017
1010
  l: {
1011
+ gap: parseInt(V),
1018
1012
  slider: {
1019
- height: 12,
1020
- width: 222
1021
- },
1022
- colorField: {
1023
- height: 168,
1024
- width: 302
1013
+ height: 12
1025
1014
  },
1026
1015
  thumb: {
1027
1016
  radius: 7
1028
1017
  },
1029
1018
  preview: {
1030
1019
  size: 32
1031
- }
1020
+ },
1021
+ minWidth: 304
1032
1022
  }
1033
- }, It = 1, Rt = /^[0-9A-F]$/i, kt = /^#[0-9A-F]{3}$/i, xt = /^#[0-9A-F]{6}$/i, Mt = /^#[0-9A-F]{4}$/i, At = /^#[0-9A-F]{8}$/i, _t = (t) => Number((t * 100).toFixed()), Gt = (t) => Number((t / 100).toFixed(2));
1023
+ }, Tt = 1, Pt = /^[0-9A-F]$/i, Ft = /^#[0-9A-F]{3}$/i, Ct = /^#[0-9A-F]{6}$/i, Ht = /^#[0-9A-F]{4}$/i, zt = /^#[0-9A-F]{8}$/i, qt = (t) => Number((t * 100).toFixed()), Wt = (t) => Number((t / 100).toFixed(2));
1034
1024
  function K(t, n = !1) {
1035
- return R(t, n) || Ft(t, n);
1025
+ return R(t, n) || $t(t, n);
1036
1026
  }
1037
1027
  function j(t, n, e) {
1038
1028
  return t ? t.length === n && e.test(t) : !1;
1039
1029
  }
1040
1030
  function R(t, n = !1) {
1041
- return j(t, n ? 5 : 4, n ? Mt : kt);
1031
+ return j(t, n ? 5 : 4, n ? Ht : Ft);
1042
1032
  }
1043
- function Ft(t, n = !1) {
1044
- return j(t, n ? 9 : 7, n ? At : xt);
1033
+ function $t(t, n = !1) {
1034
+ return j(t, n ? 9 : 7, n ? zt : Ct);
1045
1035
  }
1046
- function Bt(t, n = !1, e = !1) {
1036
+ function Dt(t, n = !1, e = !1) {
1047
1037
  if (t = t.toLowerCase(), t.startsWith("#") || (t = `#${t}`), R(t, n))
1048
- return G(B(t, n));
1038
+ return B(G(t, n));
1049
1039
  if (n && e && K(
1050
1040
  t,
1051
1041
  !1
1052
1042
  /* we only care about RGB hex for conversion */
1053
1043
  )) {
1054
1044
  const r = R(t, !1);
1055
- return G(B(`${t}${r ? "f" : "ff"}`, !0));
1045
+ return B(G(`${t}${r ? "f" : "ff"}`, !0));
1056
1046
  }
1057
1047
  return t;
1058
1048
  }
1059
- function Nt(t, n = !1) {
1049
+ function Xt(t, n = !1) {
1060
1050
  return n ? t.hexa() : t.hex();
1061
1051
  }
1062
- function G(t) {
1063
- const { r: n, g: e, b: r } = t, s = H(n), a = H(e), o = H(r), i = "a" in t ? H(t.a * 255) : "";
1064
- return `#${s}${a}${o}${i}`.toLowerCase();
1052
+ function B(t) {
1053
+ const { r: n, g: e, b: r } = t, s = H(n), o = H(e), a = H(r), i = "a" in t ? H(t.a * 255) : "";
1054
+ return `#${s}${o}${a}${i}`.toLowerCase();
1065
1055
  }
1066
1056
  function H(t) {
1067
1057
  return t.toString(16).padStart(2, "0");
1068
1058
  }
1069
- function qt(t) {
1059
+ function Ut(t) {
1070
1060
  const n = {
1071
1061
  ...t,
1072
1062
  a: t.alpha ?? 1
@@ -1074,21 +1064,21 @@ function qt(t) {
1074
1064
  };
1075
1065
  return delete n.alpha, n;
1076
1066
  }
1077
- function Pt(t) {
1067
+ function Kt(t) {
1078
1068
  const n = { ...t, alpha: t.a ?? 1 };
1079
1069
  return delete n.a, n;
1080
1070
  }
1081
- function B(t, n = !1) {
1071
+ function G(t, n = !1) {
1082
1072
  if (!K(t, n))
1083
1073
  return null;
1084
1074
  t = t.replace("#", "");
1085
- let e, r, s, a;
1075
+ let e, r, s, o;
1086
1076
  if (t.length === 3 || t.length === 4) {
1087
1077
  const [i, l, h, b] = t.split("");
1088
- e = parseInt(`${i}${i}`, 16), r = parseInt(`${l}${l}`, 16), s = parseInt(`${h}${h}`, 16), a = parseInt(`${b}${b}`, 16) / 255;
1078
+ e = parseInt(`${i}${i}`, 16), r = parseInt(`${l}${l}`, 16), s = parseInt(`${h}${h}`, 16), o = parseInt(`${b}${b}`, 16) / 255;
1089
1079
  } else
1090
- e = parseInt(t.slice(0, 2), 16), r = parseInt(t.slice(2, 4), 16), s = parseInt(t.slice(4, 6), 16), a = parseInt(t.slice(6, 8), 16) / 255;
1091
- return isNaN(a) ? { r: e, g: r, b: s } : { r: e, g: r, b: s, a };
1080
+ e = parseInt(t.slice(0, 2), 16), r = parseInt(t.slice(2, 4), 16), s = parseInt(t.slice(4, 6), 16), o = parseInt(t.slice(6, 8), 16) / 255;
1081
+ return isNaN(o) ? { r: e, g: r, b: s } : { r: e, g: r, b: s, a: o };
1092
1082
  }
1093
1083
  const J = (t) => t, f = J({
1094
1084
  HEX: "hex",
@@ -1105,7 +1095,7 @@ const J = (t) => t, f = J({
1105
1095
  HSV: "hsv",
1106
1096
  HSVA: "hsva"
1107
1097
  });
1108
- function Tt(t) {
1098
+ function jt(t) {
1109
1099
  if (typeof t == "string") {
1110
1100
  if (t.startsWith("#")) {
1111
1101
  const { length: n } = t;
@@ -1136,56 +1126,59 @@ function Tt(t) {
1136
1126
  function S(t, ...n) {
1137
1127
  return n.every((e) => e && t && `${e}` in t);
1138
1128
  }
1139
- function Dt(t, n) {
1129
+ function Jt(t, n) {
1140
1130
  return t?.rgb().array().toString() === n?.rgb().array().toString();
1141
1131
  }
1142
- function Ut(t) {
1132
+ function Yt(t) {
1143
1133
  return t === f.HEXA || t === f.RGBA_CSS || t === f.HSLA_CSS || t === d.RGBA || t === d.HSLA || t === d.HSVA;
1144
1134
  }
1145
- function Wt(t) {
1135
+ function Zt(t) {
1146
1136
  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;
1147
1137
  }
1148
- function Xt(t) {
1138
+ function Qt(t) {
1149
1139
  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;
1150
1140
  }
1151
- function Kt(t, n) {
1152
- const {
1153
- slider: { width: e },
1154
- preview: r
1155
- } = t;
1156
- if (n)
1157
- return e;
1158
- const s = St.l.preview.size - r.size;
1159
- return e + s;
1141
+ const It = 1, Y = It * 2;
1142
+ function Vt(t, n, e) {
1143
+ const r = e ? At.l.preview.size : n.preview.size, s = t - Y, o = n.gap * 3;
1144
+ return Math.max(s - o - r, 0);
1145
+ }
1146
+ function tn(t) {
1147
+ const e = t - Y;
1148
+ return {
1149
+ width: Math.max(e, 0),
1150
+ height: Math.max(Math.floor(e / 1.8), 0)
1151
+ };
1160
1152
  }
1161
1153
  export {
1162
- mt as C,
1163
- zt as D,
1164
- wt as H,
1165
- Lt as O,
1166
- Ot as R,
1167
- It as S,
1168
- Ft as a,
1154
+ kt as C,
1155
+ Rt as D,
1156
+ Mt as H,
1157
+ Nt as O,
1158
+ Bt as R,
1159
+ At as S,
1160
+ $t as a,
1169
1161
  R as b,
1170
- _t as c,
1171
- Rt as d,
1162
+ qt as c,
1163
+ Pt as d,
1172
1164
  f as e,
1173
- St as f,
1174
- $t as g,
1175
- Nt as h,
1165
+ tn as f,
1166
+ Vt as g,
1167
+ Xt as h,
1176
1168
  K as i,
1177
- Ut as j,
1178
- Kt as k,
1179
- Pt as l,
1180
- Dt as m,
1181
- Bt as n,
1182
- Gt as o,
1183
- Tt as p,
1184
- Ht as q,
1185
- G as r,
1186
- Xt as s,
1187
- Wt as t,
1188
- Et as u,
1189
- qt as v,
1190
- B as w
1169
+ _t as j,
1170
+ Yt as k,
1171
+ Kt as l,
1172
+ Jt as m,
1173
+ Dt as n,
1174
+ Wt as o,
1175
+ jt as p,
1176
+ Lt as q,
1177
+ B as r,
1178
+ Qt as s,
1179
+ Zt as t,
1180
+ Gt as u,
1181
+ Ut as v,
1182
+ Tt as w,
1183
+ G as x
1191
1184
  };