uomtiles 0.1.2 → 0.1.4

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 (305) hide show
  1. package/.output/nitro.json +1 -1
  2. package/.output/public/_nuxt/7KYNy7kZ.js +1 -0
  3. package/.output/public/_nuxt/7Rgc2iDI2.js +1 -0
  4. package/.output/public/_nuxt/BA52uD81.js +1 -0
  5. package/.output/public/_nuxt/{CU486JdV2.js → BHSn2vP72.js} +2 -2
  6. package/.output/public/_nuxt/BRsHq3Fz2.js +1 -0
  7. package/.output/public/_nuxt/Bh2Uv1S7.js +1 -0
  8. package/.output/public/_nuxt/BiRI-vq-.js +1 -0
  9. package/.output/public/_nuxt/{DaQqwE3R.js → BndUkSHF.js} +44 -44
  10. package/.output/public/_nuxt/Bpc1HTfh.js +1 -0
  11. package/.output/public/_nuxt/C-b4mqsD.js +1 -0
  12. package/.output/public/_nuxt/C5Y76DD6.js +1 -0
  13. package/.output/public/_nuxt/CD84FXNW.js +1 -0
  14. package/.output/public/_nuxt/CGkIG2vL2.js +1 -0
  15. package/.output/public/_nuxt/CM9IbYJz.js +1 -0
  16. package/.output/public/_nuxt/CUJ4QmLF.js +1 -0
  17. package/.output/public/_nuxt/CUQ3MZqI.js +1 -0
  18. package/.output/public/_nuxt/CVwoxklV.js +1 -0
  19. package/.output/public/_nuxt/CeHZqNQ0.js +1 -0
  20. package/.output/public/_nuxt/CkfS_Wbu.js +3 -0
  21. package/.output/public/_nuxt/CoPjdBwX.js +1 -0
  22. package/.output/public/_nuxt/CxkDmpVY.js +1 -0
  23. package/.output/public/_nuxt/CzRdWh7s2.js +1 -0
  24. package/.output/public/_nuxt/D-IOtyQX.js +1 -0
  25. package/.output/public/_nuxt/D3Us7gX72.js +1 -0
  26. package/.output/public/_nuxt/DLIy3f3M.js +1 -0
  27. package/.output/public/_nuxt/{CovBj6WN.js → DQ8r1OSk.js} +1 -1
  28. package/.output/public/_nuxt/D_9SjQFe.js +1 -0
  29. package/.output/public/_nuxt/D_Ggu6R_2.js +1 -0
  30. package/.output/public/_nuxt/{Q79ec-Ro.js → DnVJUY7B.js} +1 -1
  31. package/.output/public/_nuxt/{Bd1EvHmY.js → DuGgjt-h2.js} +1 -1
  32. package/.output/public/_nuxt/GEOST6As.js +1 -0
  33. package/.output/public/_nuxt/{DpIPeY5m.js → GqgcWtrL.js} +1 -1
  34. package/.output/public/_nuxt/{0hm88Oke.js → Hbp_Okvs.js} +1 -1
  35. package/.output/public/_nuxt/JdUwgqKv.js +1 -0
  36. package/.output/public/_nuxt/KttxEAyP2.js +1 -0
  37. package/.output/public/_nuxt/L0GXeO1Y2.js +1 -0
  38. package/.output/public/_nuxt/builds/latest.json +1 -1
  39. package/.output/public/_nuxt/builds/meta/78b9349b-da32-49d9-b6c7-85727e6d8129.json +1 -0
  40. package/.output/public/_nuxt/entry.U-KS0GEu.css +1 -0
  41. package/.output/public/_nuxt/maplibre-gl-worker-BtpYDTzw.js +11 -0
  42. package/.output/public/_nuxt/sMWyPZfC2.js +1 -0
  43. package/.output/public/_nuxt/zUWhKXtw2.js +1 -0
  44. package/.output/server/chunks/_/antigravity-nfz.mjs +629 -0
  45. package/.output/server/chunks/_/antigravity-nfz.mjs.map +1 -0
  46. package/.output/server/chunks/_/config.mjs +1 -1
  47. package/.output/server/chunks/_/file-workspace.mjs +1 -1
  48. package/.output/server/chunks/_/map-layer-update-manager.mjs +770 -0
  49. package/.output/server/chunks/_/map-layer-update-manager.mjs.map +1 -0
  50. package/.output/server/chunks/_/map-service.mjs +1 -1
  51. package/.output/server/chunks/_/uom-auth.mjs +1 -1
  52. package/.output/server/chunks/build/{CompletedTaskSelect-CKTpyHS3.mjs → CompletedTaskSelect-Ba03kTs9.mjs} +6 -7
  53. package/.output/server/chunks/build/{CompletedTaskSelect-CKTpyHS3.mjs.map → CompletedTaskSelect-Ba03kTs9.mjs.map} +1 -1
  54. package/.output/server/chunks/build/{Empty-BGIn09cL.mjs → Empty-CKvANuoV.mjs} +4 -103
  55. package/.output/server/chunks/build/Empty-CKvANuoV.mjs.map +1 -0
  56. package/.output/server/chunks/build/{FormField-DnJWfrKE.mjs → FormField-BJHVyy1m.mjs} +4 -35
  57. package/.output/server/chunks/build/FormField-BJHVyy1m.mjs.map +1 -0
  58. package/.output/server/chunks/build/{Input-AdlINKtJ.mjs → Input-DnAric-z.mjs} +1 -1
  59. package/.output/server/chunks/build/{Input-AdlINKtJ.mjs.map → Input-DnAric-z.mjs.map} +1 -1
  60. package/.output/server/chunks/build/MapLayerControl-DpNmYvcU.mjs +5720 -0
  61. package/.output/server/chunks/build/MapLayerControl-DpNmYvcU.mjs.map +1 -0
  62. package/.output/server/chunks/build/{Modal-CozaqIp1.mjs → Modal-BLhN9Eg2.mjs} +4 -18
  63. package/.output/server/chunks/build/{Modal-CozaqIp1.mjs.map → Modal-BLhN9Eg2.mjs.map} +1 -1
  64. package/.output/server/chunks/build/{OnlineMap-cFSicmkV.mjs → OnlineMap-B-sCfHkC.mjs} +6 -3
  65. package/.output/server/chunks/build/OnlineMap-B-sCfHkC.mjs.map +1 -0
  66. package/.output/server/chunks/build/{Pagination-GvNCxmOW.mjs → Pagination-CUzoLc_-.mjs} +1 -1
  67. package/.output/server/chunks/build/{Pagination-GvNCxmOW.mjs.map → Pagination-CUzoLc_-.mjs.map} +1 -1
  68. package/.output/server/chunks/build/Skeleton-CHp-GjOx.mjs +59 -0
  69. package/.output/server/chunks/build/Skeleton-CHp-GjOx.mjs.map +1 -0
  70. package/.output/server/chunks/build/{Slider-zQx1c7hB.mjs → Slider-CrIUK3pl.mjs} +5 -5
  71. package/.output/server/chunks/build/{Slider-zQx1c7hB.mjs.map → Slider-CrIUK3pl.mjs.map} +1 -1
  72. package/.output/server/chunks/build/{MapBaseLayerTabs-CRl5Zwlr.mjs → Tabs-cdLsZZoL.mjs} +429 -931
  73. package/.output/server/chunks/build/Tabs-cdLsZZoL.mjs.map +1 -0
  74. package/.output/server/chunks/build/{Tooltip-DNUdH4oF.mjs → Tooltip-DExIlyhu.mjs} +4 -195
  75. package/.output/server/chunks/build/Tooltip-DExIlyhu.mjs.map +1 -0
  76. package/.output/server/chunks/build/{advanced-5ZGMUBqC.mjs → advanced-DaSpS8Px.mjs} +31 -34
  77. package/.output/server/chunks/build/advanced-DaSpS8Px.mjs.map +1 -0
  78. package/.output/server/chunks/build/{compare-CtgF4Anj.mjs → compare-DaE10Dhp.mjs} +56 -37
  79. package/.output/server/chunks/build/compare-DaE10Dhp.mjs.map +1 -0
  80. package/.output/server/chunks/build/cookie-CziAmOf1.mjs +175 -0
  81. package/.output/server/chunks/build/cookie-CziAmOf1.mjs.map +1 -0
  82. package/.output/server/chunks/build/{dashboard-GneN-WPG.mjs → dashboard-Dq8mphss.mjs} +12 -6
  83. package/.output/server/chunks/build/{dashboard-GneN-WPG.mjs.map → dashboard-Dq8mphss.mjs.map} +1 -1
  84. package/.output/server/chunks/build/{details-CgufnL1d.mjs → details-DCNvSBgn.mjs} +5 -4
  85. package/.output/server/chunks/build/{details-CgufnL1d.mjs.map → details-DCNvSBgn.mjs.map} +1 -1
  86. package/.output/server/chunks/build/error-404-D9aQjJRn.mjs +1 -1
  87. package/.output/server/chunks/build/error-500-BNyA3wrb.mjs +1 -1
  88. package/.output/server/chunks/build/file-workspace-DMzPuPyG.mjs +104 -0
  89. package/.output/server/chunks/build/file-workspace-DMzPuPyG.mjs.map +1 -0
  90. package/.output/server/chunks/build/{interval-9B2MrM2e.mjs → interval-i5OZnTaK.mjs} +2 -2
  91. package/.output/server/chunks/build/{interval-9B2MrM2e.mjs.map → interval-i5OZnTaK.mjs.map} +1 -1
  92. package/.output/server/chunks/build/layers-50nqoWES.mjs +553 -0
  93. package/.output/server/chunks/build/layers-50nqoWES.mjs.map +1 -0
  94. package/.output/server/chunks/build/{login-Cf5EiCE4.mjs → login-BHSHtO-R.mjs} +6 -5
  95. package/.output/server/chunks/build/{login-Cf5EiCE4.mjs.map → login-BHSHtO-R.mjs.map} +1 -1
  96. package/.output/server/chunks/build/map-layers-C3HJoCLw.mjs +86 -0
  97. package/.output/server/chunks/build/map-layers-C3HJoCLw.mjs.map +1 -0
  98. package/.output/server/chunks/build/{DashboardSidebarToggle-CUI9NSow.mjs → overlay-BS4_B29H.mjs} +411 -4
  99. package/.output/server/chunks/build/overlay-BS4_B29H.mjs.map +1 -0
  100. package/.output/server/chunks/build/pages-5yYRS5nX.mjs +37 -0
  101. package/.output/server/chunks/build/pages-5yYRS5nX.mjs.map +1 -0
  102. package/.output/server/chunks/build/{pages-0c5sp_lv.mjs → pages-DfOPr0fC.mjs} +21 -21
  103. package/.output/server/chunks/build/pages-DfOPr0fC.mjs.map +1 -0
  104. package/.output/server/chunks/build/{services-BB49kSpd.mjs → services-DWlDpsbi.mjs} +45 -41
  105. package/.output/server/chunks/build/{services-BB49kSpd.mjs.map → services-DWlDpsbi.mjs.map} +1 -1
  106. package/.output/server/chunks/build/{tasks-BRcMLuRW.mjs → tasks-4b6D39Uy.mjs} +44 -100
  107. package/.output/server/chunks/build/{tasks-BRcMLuRW.mjs.map → tasks-4b6D39Uy.mjs.map} +1 -1
  108. package/.output/server/chunks/build/{tasks-Aa8PwjVL.mjs → tasks-BPPx2UMG.mjs} +10 -6
  109. package/.output/server/chunks/build/tasks-BPPx2UMG.mjs.map +1 -0
  110. package/.output/server/chunks/nitro/nitro.mjs +309 -250
  111. package/.output/server/chunks/routes/api/map/layers/_overlayLayer/update.get.mjs +29 -0
  112. package/.output/server/chunks/routes/api/map/layers/_overlayLayer/update.get.mjs.map +1 -0
  113. package/.output/server/chunks/routes/api/map/layers/_overlayLayer/update.post.mjs +31 -0
  114. package/.output/server/chunks/routes/api/map/layers/_overlayLayer/update.post.mjs.map +1 -0
  115. package/.output/server/chunks/routes/api/map/layers/_overlayLayer_.get.mjs +39 -0
  116. package/.output/server/chunks/routes/api/map/layers/_overlayLayer_.get.mjs.map +1 -0
  117. package/.output/server/chunks/routes/api/map/layers/status.get.mjs +60 -0
  118. package/.output/server/chunks/routes/api/map/layers/status.get.mjs.map +1 -0
  119. package/.output/server/chunks/routes/api/map/live/status.get.mjs +1 -1
  120. package/.output/server/chunks/routes/api/map/online/_layerGroup/_zoom/_tileX/_tileY_.get.mjs +1 -1
  121. package/.output/server/chunks/routes/api/map/online-root/_layerGroup/_rootX/_rootY_.get.mjs +1 -1
  122. package/.output/server/chunks/routes/api/workspace/_filename/analysis.get.mjs +1 -1
  123. package/.output/server/chunks/routes/api/workspace/_filename/download.get.mjs +1 -1
  124. package/.output/server/chunks/routes/api/workspace/_filename/export/_format_.get.mjs +1 -1
  125. package/.output/server/chunks/routes/api/workspace/_filename/export-estimate.get.mjs +1 -1
  126. package/.output/server/chunks/routes/api/workspace/_filename/tile.get.mjs +1 -1
  127. package/.output/server/chunks/routes/api/workspace/_filename/tiles.get.mjs +1 -1
  128. package/.output/server/chunks/routes/api/workspace/_filename_.delete.mjs +1 -1
  129. package/.output/server/chunks/routes/api/workspace/compare/batch.get.mjs +1 -1
  130. package/.output/server/chunks/routes/api/workspace/files.post.mjs +1 -1
  131. package/.output/server/chunks/routes/api/workspace/stop.post.mjs +1 -1
  132. package/.output/server/chunks/routes/api/workspace/tasks.post.mjs +2 -2
  133. package/.output/server/chunks/routes/renderer.mjs +3 -3
  134. package/.output/server/chunks/routes/services/wms.get.mjs +1 -1
  135. package/.output/server/chunks/routes/services/wmts.get.mjs +1 -1
  136. package/.output/server/chunks/virtual/entry.mjs +320 -443
  137. package/.output/server/chunks/virtual/entry.mjs.map +1 -1
  138. package/.output/server/chunks/virtual/precomputed.mjs +1 -1
  139. package/.output/server/chunks/virtual/styles.mjs +1 -1
  140. package/.output/server/node_modules/undici/index.js +234 -0
  141. package/.output/server/node_modules/undici/lib/api/abort-signal.js +59 -0
  142. package/.output/server/node_modules/undici/lib/api/api-connect.js +110 -0
  143. package/.output/server/node_modules/undici/lib/api/api-pipeline.js +252 -0
  144. package/.output/server/node_modules/undici/lib/api/api-request.js +214 -0
  145. package/.output/server/node_modules/undici/lib/api/api-stream.js +209 -0
  146. package/.output/server/node_modules/undici/lib/api/api-upgrade.js +111 -0
  147. package/.output/server/node_modules/undici/lib/api/index.js +7 -0
  148. package/.output/server/node_modules/undici/lib/api/readable.js +580 -0
  149. package/.output/server/node_modules/undici/lib/cache/memory-cache-store.js +279 -0
  150. package/.output/server/node_modules/undici/lib/cache/sqlite-cache-store.js +467 -0
  151. package/.output/server/node_modules/undici/lib/core/connect.js +153 -0
  152. package/.output/server/node_modules/undici/lib/core/constants.js +143 -0
  153. package/.output/server/node_modules/undici/lib/core/diagnostics.js +227 -0
  154. package/.output/server/node_modules/undici/lib/core/errors.js +477 -0
  155. package/.output/server/node_modules/undici/lib/core/request.js +464 -0
  156. package/.output/server/node_modules/undici/lib/core/socks5-client.js +422 -0
  157. package/.output/server/node_modules/undici/lib/core/socks5-utils.js +212 -0
  158. package/.output/server/node_modules/undici/lib/core/symbols.js +75 -0
  159. package/.output/server/node_modules/undici/lib/core/tree.js +160 -0
  160. package/.output/server/node_modules/undici/lib/core/util.js +992 -0
  161. package/.output/server/node_modules/undici/lib/dispatcher/agent.js +158 -0
  162. package/.output/server/node_modules/undici/lib/dispatcher/balanced-pool.js +219 -0
  163. package/.output/server/node_modules/undici/lib/dispatcher/client-h1.js +1731 -0
  164. package/.output/server/node_modules/undici/lib/dispatcher/client-h2.js +995 -0
  165. package/.output/server/node_modules/undici/lib/dispatcher/client.js +664 -0
  166. package/.output/server/node_modules/undici/lib/dispatcher/dispatcher-base.js +184 -0
  167. package/.output/server/node_modules/undici/lib/dispatcher/dispatcher.js +48 -0
  168. package/.output/server/node_modules/undici/lib/dispatcher/env-http-proxy-agent.js +146 -0
  169. package/.output/server/node_modules/undici/lib/dispatcher/fixed-queue.js +135 -0
  170. package/.output/server/node_modules/undici/lib/dispatcher/h2c-client.js +51 -0
  171. package/.output/server/node_modules/undici/lib/dispatcher/pool-base.js +214 -0
  172. package/.output/server/node_modules/undici/lib/dispatcher/pool.js +118 -0
  173. package/.output/server/node_modules/undici/lib/dispatcher/proxy-agent.js +319 -0
  174. package/.output/server/node_modules/undici/lib/dispatcher/retry-agent.js +35 -0
  175. package/.output/server/node_modules/undici/lib/dispatcher/round-robin-pool.js +137 -0
  176. package/.output/server/node_modules/undici/lib/dispatcher/socks5-proxy-agent.js +260 -0
  177. package/.output/server/node_modules/undici/lib/encoding/index.js +33 -0
  178. package/.output/server/node_modules/undici/lib/global.js +59 -0
  179. package/.output/server/node_modules/undici/lib/handler/cache-handler.js +760 -0
  180. package/.output/server/node_modules/undici/lib/handler/cache-revalidation-handler.js +124 -0
  181. package/.output/server/node_modules/undici/lib/handler/decorator-handler.js +67 -0
  182. package/.output/server/node_modules/undici/lib/handler/deduplication-handler.js +460 -0
  183. package/.output/server/node_modules/undici/lib/handler/redirect-handler.js +238 -0
  184. package/.output/server/node_modules/undici/lib/handler/retry-handler.js +418 -0
  185. package/.output/server/node_modules/undici/lib/handler/unwrap-handler.js +106 -0
  186. package/.output/server/node_modules/undici/lib/handler/wrap-handler.js +105 -0
  187. package/.output/server/node_modules/undici/lib/interceptor/cache.js +602 -0
  188. package/.output/server/node_modules/undici/lib/interceptor/decompress.js +259 -0
  189. package/.output/server/node_modules/undici/lib/interceptor/deduplicate.js +117 -0
  190. package/.output/server/node_modules/undici/lib/interceptor/dns.js +571 -0
  191. package/.output/server/node_modules/undici/lib/interceptor/dump.js +112 -0
  192. package/.output/server/node_modules/undici/lib/interceptor/redirect.js +21 -0
  193. package/.output/server/node_modules/undici/lib/interceptor/response-error.js +95 -0
  194. package/.output/server/node_modules/undici/lib/interceptor/retry.js +19 -0
  195. package/.output/server/node_modules/undici/lib/llhttp/constants.js +531 -0
  196. package/.output/server/node_modules/undici/lib/llhttp/llhttp-wasm.js +15 -0
  197. package/.output/server/node_modules/undici/lib/llhttp/llhttp_simd-wasm.js +15 -0
  198. package/.output/server/node_modules/undici/lib/llhttp/utils.js +12 -0
  199. package/.output/server/node_modules/undici/lib/mock/mock-agent.js +232 -0
  200. package/.output/server/node_modules/undici/lib/mock/mock-call-history.js +248 -0
  201. package/.output/server/node_modules/undici/lib/mock/mock-client.js +68 -0
  202. package/.output/server/node_modules/undici/lib/mock/mock-errors.js +29 -0
  203. package/.output/server/node_modules/undici/lib/mock/mock-interceptor.js +209 -0
  204. package/.output/server/node_modules/undici/lib/mock/mock-pool.js +68 -0
  205. package/.output/server/node_modules/undici/lib/mock/mock-symbols.js +32 -0
  206. package/.output/server/node_modules/undici/lib/mock/mock-utils.js +486 -0
  207. package/.output/server/node_modules/undici/lib/mock/pending-interceptors-formatter.js +43 -0
  208. package/.output/server/node_modules/undici/lib/mock/snapshot-agent.js +353 -0
  209. package/.output/server/node_modules/undici/lib/mock/snapshot-recorder.js +588 -0
  210. package/.output/server/node_modules/undici/lib/mock/snapshot-utils.js +158 -0
  211. package/.output/server/node_modules/undici/lib/util/cache.js +676 -0
  212. package/.output/server/node_modules/undici/lib/util/date.js +670 -0
  213. package/.output/server/node_modules/undici/lib/util/promise.js +28 -0
  214. package/.output/server/node_modules/undici/lib/util/runtime-features.js +124 -0
  215. package/.output/server/node_modules/undici/lib/util/stats.js +32 -0
  216. package/.output/server/node_modules/undici/lib/util/timers.js +425 -0
  217. package/.output/server/node_modules/undici/lib/web/cache/cache.js +864 -0
  218. package/.output/server/node_modules/undici/lib/web/cache/cachestorage.js +152 -0
  219. package/.output/server/node_modules/undici/lib/web/cache/util.js +45 -0
  220. package/.output/server/node_modules/undici/lib/web/cookies/constants.js +12 -0
  221. package/.output/server/node_modules/undici/lib/web/cookies/index.js +199 -0
  222. package/.output/server/node_modules/undici/lib/web/cookies/parse.js +314 -0
  223. package/.output/server/node_modules/undici/lib/web/cookies/util.js +352 -0
  224. package/.output/server/node_modules/undici/lib/web/eventsource/eventsource-stream.js +399 -0
  225. package/.output/server/node_modules/undici/lib/web/eventsource/eventsource.js +501 -0
  226. package/.output/server/node_modules/undici/lib/web/eventsource/util.js +29 -0
  227. package/.output/server/node_modules/undici/lib/web/fetch/body.js +509 -0
  228. package/.output/server/node_modules/undici/lib/web/fetch/constants.js +131 -0
  229. package/.output/server/node_modules/undici/lib/web/fetch/data-url.js +596 -0
  230. package/.output/server/node_modules/undici/lib/web/fetch/formdata-parser.js +586 -0
  231. package/.output/server/node_modules/undici/lib/web/fetch/formdata.js +259 -0
  232. package/.output/server/node_modules/undici/lib/web/fetch/global.js +40 -0
  233. package/.output/server/node_modules/undici/lib/web/fetch/headers.js +719 -0
  234. package/.output/server/node_modules/undici/lib/web/fetch/index.js +2413 -0
  235. package/.output/server/node_modules/undici/lib/web/fetch/request.js +1115 -0
  236. package/.output/server/node_modules/undici/lib/web/fetch/response.js +641 -0
  237. package/.output/server/node_modules/undici/lib/web/fetch/util.js +1522 -0
  238. package/.output/server/node_modules/undici/lib/web/infra/index.js +229 -0
  239. package/.output/server/node_modules/undici/lib/web/subresource-integrity/subresource-integrity.js +307 -0
  240. package/.output/server/node_modules/undici/lib/web/webidl/index.js +1006 -0
  241. package/.output/server/node_modules/undici/lib/web/websocket/connection.js +329 -0
  242. package/.output/server/node_modules/undici/lib/web/websocket/constants.js +126 -0
  243. package/.output/server/node_modules/undici/lib/web/websocket/events.js +331 -0
  244. package/.output/server/node_modules/undici/lib/web/websocket/frame.js +133 -0
  245. package/.output/server/node_modules/undici/lib/web/websocket/permessage-deflate.js +100 -0
  246. package/.output/server/node_modules/undici/lib/web/websocket/receiver.js +507 -0
  247. package/.output/server/node_modules/undici/lib/web/websocket/sender.js +109 -0
  248. package/.output/server/node_modules/undici/lib/web/websocket/stream/websocketerror.js +104 -0
  249. package/.output/server/node_modules/undici/lib/web/websocket/stream/websocketstream.js +498 -0
  250. package/.output/server/node_modules/undici/lib/web/websocket/util.js +347 -0
  251. package/.output/server/node_modules/undici/lib/web/websocket/websocket.js +758 -0
  252. package/.output/server/node_modules/undici/package.json +152 -0
  253. package/.output/server/package.json +2 -1
  254. package/LICENSE +201 -2
  255. package/README.md +23 -34
  256. package/dist/package.json +3 -2
  257. package/dist/shared/antigravity-schema.js +45 -0
  258. package/dist/shared/dji-grid.js +62 -0
  259. package/dist/shared/types/map-layers.js +2 -0
  260. package/dist/src/cli.js +63 -5
  261. package/dist/src/core/dji-snapshot.js +135 -0
  262. package/dist/src/core/map-layer-paths.js +11 -0
  263. package/dist/src/map-layer-update.js +646 -0
  264. package/package.json +3 -2
  265. package/.output/public/_nuxt/BNfSclJ4.js +0 -1
  266. package/.output/public/_nuxt/BYzlinOr2.js +0 -1
  267. package/.output/public/_nuxt/Be4dNlar.js +0 -1
  268. package/.output/public/_nuxt/C7fHMLd7.js +0 -1
  269. package/.output/public/_nuxt/CNs_Ozdc.js +0 -1
  270. package/.output/public/_nuxt/CQ8inUdm.js +0 -1
  271. package/.output/public/_nuxt/Cc_JfSB1.js +0 -1
  272. package/.output/public/_nuxt/CyZDc0eO2.js +0 -1
  273. package/.output/public/_nuxt/CzFefJH0.js +0 -1
  274. package/.output/public/_nuxt/D-t0hXHB.js +0 -1
  275. package/.output/public/_nuxt/D3Pl7yw22.js +0 -1
  276. package/.output/public/_nuxt/D4gbGuiW.js +0 -1
  277. package/.output/public/_nuxt/DDp9lK3g.js +0 -1
  278. package/.output/public/_nuxt/DIIXHC50.js +0 -1
  279. package/.output/public/_nuxt/DWFUvzz0.js +0 -1
  280. package/.output/public/_nuxt/D_VoD6-f.js +0 -1
  281. package/.output/public/_nuxt/DfXX-x_z.js +0 -1
  282. package/.output/public/_nuxt/Dgyf2aNY.js +0 -1
  283. package/.output/public/_nuxt/GM5myUL22.js +0 -1
  284. package/.output/public/_nuxt/IC4wc76W.js +0 -1
  285. package/.output/public/_nuxt/IfL46N3Z.js +0 -1
  286. package/.output/public/_nuxt/KEU2l6zJ.js +0 -3
  287. package/.output/public/_nuxt/SEETjfdJ.js +0 -1
  288. package/.output/public/_nuxt/builds/meta/2c4adba2-91b5-44e4-91d3-50a61695207b.json +0 -1
  289. package/.output/public/_nuxt/entry.CZ_dkjcs.css +0 -1
  290. package/.output/public/_nuxt/maplibre-gl-worker.nfnkSQvL.mjs +0 -6
  291. package/.output/public/_nuxt/nGp0t_eD.js +0 -1
  292. package/.output/server/chunks/build/Alert-DHVVSgdD.mjs +0 -1074
  293. package/.output/server/chunks/build/Alert-DHVVSgdD.mjs.map +0 -1
  294. package/.output/server/chunks/build/DashboardSidebarToggle-CUI9NSow.mjs.map +0 -1
  295. package/.output/server/chunks/build/Empty-BGIn09cL.mjs.map +0 -1
  296. package/.output/server/chunks/build/FocusScope-DNZVMnza.mjs +0 -207
  297. package/.output/server/chunks/build/FocusScope-DNZVMnza.mjs.map +0 -1
  298. package/.output/server/chunks/build/FormField-DnJWfrKE.mjs.map +0 -1
  299. package/.output/server/chunks/build/MapBaseLayerTabs-CRl5Zwlr.mjs.map +0 -1
  300. package/.output/server/chunks/build/OnlineMap-cFSicmkV.mjs.map +0 -1
  301. package/.output/server/chunks/build/Tooltip-DNUdH4oF.mjs.map +0 -1
  302. package/.output/server/chunks/build/advanced-5ZGMUBqC.mjs.map +0 -1
  303. package/.output/server/chunks/build/compare-CtgF4Anj.mjs.map +0 -1
  304. package/.output/server/chunks/build/pages-0c5sp_lv.mjs.map +0 -1
  305. package/.output/server/chunks/build/tasks-Aa8PwjVL.mjs.map +0 -1
@@ -0,0 +1 @@
1
+ import{At as e,Lt as t,M as n,P as r,Wn as i,ln as a,pr as o}from"./C97TfNgP.js";import{D as s,b as c,v as l}from"./CM9IbYJz.js";import{o as u}from"./Hbp_Okvs.js";var d={base:`animate-pulse rounded-md bg-elevated`},f={__name:`USkeleton`,props:{as:{type:null,required:!1},class:{type:null,required:!1},ui:{type:Object,required:!1}},setup(f){let p=c(`skeleton`,f),m=u(),h=n(()=>l({extend:d,...m.ui?.skeleton||{}}));return(n,c)=>(e(),r(i(s),{as:i(p).as,"aria-busy":`true`,"aria-label":`loading`,"aria-live":`polite`,role:`alert`,class:o(h.value({class:[i(p).ui?.base,i(p).class]}))},{default:a(()=>[t(n.$slots,`default`)]),_:3},8,[`as`,`class`]))}};export{f as t};
@@ -0,0 +1 @@
1
+ import{At as e,En as t,F as n,G as r,Hn as i,I as a,M as o,N as s,P as c,Pn as l,U as u,Wn as d,Zt as f,_r as p,_t as m,cn as ee,gr as h,ht as g,ln as _,pr as v,wt as te}from"./C97TfNgP.js";import{D as ne,R as y,at as re,b,ct as ie,ot as x,t as ae,v as oe}from"./CM9IbYJz.js";import{r as se}from"./3B2XYGg4.js";import{t as ce}from"./D-IOtyQX.js";import{o as S}from"./Hbp_Okvs.js";import"./GEOST6As.js";import{t as le}from"./DLIy3f3M.js";import{a as ue,n as de,r as fe,t as pe}from"./CeHZqNQ0.js";import{c as me,o as he}from"./C-b4mqsD.js";import{n as ge,r as _e,t as ve}from"./7KYNy7kZ.js";import{t as ye}from"./GqgcWtrL.js";import{t as be}from"./D_9SjQFe.js";import{t as xe}from"./BA52uD81.js";import{r as Se,t as Ce}from"#entry";import{r as we}from"./CVwoxklV.js";import{t as Te}from"./DnVJUY7B.js";import{n as Ee}from"./JdUwgqKv.js";import{t as De}from"./CUQ3MZqI.js";import{t as Oe}from"./CoPjdBwX.js";import{t as ke}from"./KttxEAyP2.js";var C=255,w=100,T=125,E=150,D,O,k,Ae;(function(e){e.HEX=`HEX`,e.RGB=`RGB`,e.HWB=`HWB`,e.HSL=`HSL`,e.CIELab=`CIELab`,e.LCH=`LCH`,e.CMYK=`CMYK`})(D||={}),function(e){e.ANALOGOUS=`ANALOGOUS`,e.COMPLEMENTARY=`COMPLEMENTARY`,e.SPLIT_COMPLEMENTARY=`SPLIT_COMPLEMENTARY`,e.TRIADIC=`TRIADIC`,e.TETRADIC=`TETRADIC`,e.SQUARE=`SQUARE`}(O||={}),function(e){e.ADDITIVE=`ADDITIVE`,e.SUBTRACTIVE=`SUBTRACTIVE`}(k||={}),function(e){e.black=`#000000`,e.silver=`#C0C0C0`,e.gray=`#808080`,e.white=`#FFFFFF`,e.maroon=`#800000`,e.red=`#FF0000`,e.purple=`#800080`,e.fuchsia=`#FF00FF`,e.green=`#008000`,e.lime=`#00FF00`,e.olive=`#808000`,e.yellow=`#FFFF00`,e.navy=`#000080`,e.blue=`#0000FF`,e.teal=`#008080`,e.aqua=`#00FFFF`,e.orange=`#FFA500`,e.aliceblue=`#F0F8FF`,e.antiquewhite=`#FAEBD7`,e.aquamarine=`#7FFFD4`,e.azure=`#F0FFFF`,e.beige=`#F5F5DC`,e.bisque=`#FFE4C4`,e.blanchedalmond=`#FFEBCD`,e.blueviolet=`#8A2BE2`,e.brown=`#A52A2A`,e.burlywood=`#DEB887`,e.cadetblue=`#5F9EA0`,e.chartreuse=`#7FFF00`,e.chocolate=`#D2691E`,e.coral=`#FF7F50`,e.cornflowerblue=`#6495ED`,e.cornsilk=`#FFF8DC`,e.crimson=`#DC143C`,e.cyan=`#00FFFF`,e.darkblue=`#00008B`,e.darkcyan=`#008B8B`,e.darkgoldenrod=`#B8860B`,e.darkgray=`#A9A9A9`,e.darkgreen=`#006400`,e.darkgrey=`#A9A9A9`,e.darkkhaki=`#BDB76B`,e.darkmagenta=`#8B008B`,e.darkolivegreen=`#556B2F`,e.darkorange=`#FF8C00`,e.darkorchid=`#9932CC`,e.darkred=`#8B0000`,e.darksalmon=`#E9967A`,e.darkseagreen=`#8FBC8F`,e.darkslateblue=`#483D8B`,e.darkslategray=`#2F4F4F`,e.darkslategrey=`#2F4F4F`,e.darkturquoise=`#00CED1`,e.darkviolet=`#9400D3`,e.deeppink=`#FF1493`,e.deepskyblue=`#00BFFF`,e.dimgray=`#696969`,e.dimgrey=`#696969`,e.dodgerblue=`#1E90FF`,e.firebrick=`#B22222`,e.floralwhite=`#FFFAF0`,e.forestgreen=`#228B22`,e.gainsboro=`#DCDCDC`,e.ghostwhite=`#F8F8FF`,e.gold=`#FFD700`,e.goldenrod=`#DAA520`,e.greenyellow=`#ADFF2F`,e.grey=`#808080`,e.honeydew=`#F0FFF0`,e.hotpink=`#FF69B4`,e.indianred=`#CD5C5C`,e.indigo=`#4B0082`,e.ivory=`#FFFFF0`,e.khaki=`#F0E68C`,e.lavender=`#E6E6FA`,e.lavenderblush=`#FFF0F5`,e.lawngreen=`#7CFC00`,e.lemonchiffon=`#FFFACD`,e.lightblue=`#ADD8E6`,e.lightcoral=`#F08080`,e.lightcyan=`#E0FFFF`,e.lightgoldenrodyellow=`#FAFAD2`,e.lightgray=`#D3D3D3`,e.lightgreen=`#90EE90`,e.lightgrey=`#D3D3D3`,e.lightpink=`#FFB6C1`,e.lightsalmon=`#FFA07A`,e.lightseagreen=`#20B2AA`,e.lightskyblue=`#87CEFA`,e.lightslategray=`#778899`,e.lightslategrey=`#778899`,e.lightsteelblue=`#B0C4DE`,e.lightyellow=`#FFFFE0`,e.limegreen=`#32CD32`,e.linen=`#FAF0E6`,e.magenta=`#FF00FF`,e.mediumaquamarine=`#66CDAA`,e.mediumblue=`#0000CD`,e.mediumorchid=`#BA55D3`,e.mediumpurple=`#9370DB`,e.mediumseagreen=`#3CB371`,e.mediumslateblue=`#7B68EE`,e.mediumspringgreen=`#00FA9A`,e.mediumturquoise=`#48D1CC`,e.mediumvioletred=`#C71585`,e.midnightblue=`#191970`,e.mintcream=`#F5FFFA`,e.mistyrose=`#FFE4E1`,e.moccasin=`#FFE4B5`,e.navajowhite=`#FFDEAD`,e.oldlace=`#FDF5E6`,e.olivedrab=`#6B8E23`,e.orangered=`#FF4500`,e.orchid=`#DA70D6`,e.palegoldenrod=`#EEE8AA`,e.palegreen=`#98FB98`,e.paleturquoise=`#AFEEEE`,e.palevioletred=`#DB7093`,e.papayawhip=`#FFEFD5`,e.peachpuff=`#FFDAB9`,e.peru=`#CD853F`,e.pink=`#FFC0CB`,e.plum=`#DDA0DD`,e.powderblue=`#B0E0E6`,e.rosybrown=`#BC8F8F`,e.royalblue=`#4169E1`,e.saddlebrown=`#8B4513`,e.salmon=`#FA8072`,e.sandybrown=`#F4A460`,e.seagreen=`#2E8B57`,e.seashell=`#FFF5EE`,e.sienna=`#A0522D`,e.skyblue=`#87CEEB`,e.slateblue=`#6A5ACD`,e.slategray=`#708090`,e.slategrey=`#708090`,e.snow=`#FFFAFA`,e.springgreen=`#00FF7F`,e.steelblue=`#4682B4`,e.tan=`#D2B48C`,e.thistle=`#D8BFD8`,e.tomato=`#FF6347`,e.turquoise=`#40E0D0`,e.violet=`#EE82EE`,e.wheat=`#F5DEB3`,e.whitesmoke=`#F5F5F5`,e.yellowgreen=`#9ACD32`,e.rebeccapurple=`#663399`}(Ae||={});var je=Object.keys(Ae),Me={HEX:[`R`,`G`,`B`,`A`],RGB:[`R`,`G`,`B`,`A`],HSL:[`H`,`S`,`L`,`A`],HWB:[`H`,`W`,`B`,`A`],CIELab:[`L`,`a`,`b`,`A`],LCH:[`L`,`C`,`H`,`A`],CMYK:[`C`,`M`,`Y`,`K`,`A`]},Ne={ABGR:D.RGB,ABHW:D.HWB,ACHL:D.LCH,ACKMY:D.CMYK,AHLS:D.HSL,ALAB:D.CIELab,BGR:D.RGB,BHW:D.HWB,CHL:D.LCH,CKMY:D.CMYK,HLS:D.HSL,LAB:D.CIELab},Pe;(function(e){e.NUMBER=`number`,e.BOOLEAN=`boolean`})(Pe||={});var A={[D.HEX]:/^#(?:(?<r>[a-f\d])(?<g>[a-f\d])(?<b>[a-f\d])(?<a>[a-f\d])?|(?<rr>[a-f\d]{2})(?<gg>[a-f\d]{2})(?<bb>[a-f\d]{2})(?<aa>[a-f\d]{2})?)$/i,[D.RGB]:/^rgba?\s*\(\s*(?:(?<r_legacy>(?:\d*\.)?\d+%?)\s*,\s*(?<g_legacy>(?:\d*\.)?\d+%?)\s*,\s*(?<b_legacy>(?:\d*\.)?\d+%?)(?:\s*,\s*(?<a_legacy>(?:\d*\.)?\d+))?|(?<r>(?:\d*\.)?\d+%?)\s+(?<g>(?:\d*\.)?\d+%?)\s+(?<b>(?:\d*\.)?\d+%?)(?:\s*\/\s*(?<a>(?:\d*\.)?\d+%?))?|from\s+(?<from>(?:\w+|\w+\(\s*[^())]+\s*\)|\w+\(from\s+\w+\(.*\)\s*\)|#[a-fA-F\d]+))\s+(?<relative_r>(?:[rgb]|(?:\d*\.)?\d+|calc\([rgb()/*\-+\d.\s]+\)))\s+(?<relative_g>(?:[rgb]|(?:\d*\.)?\d+|calc\([rgb()/*\-+\d.\s]+\)))\s+(?<relative_b>(?:[rgb]|(?:\d*\.)?\d+|calc\([rgb()/*\-+\d.\s]+\)))(?:\s*\/\s*(?<relative_a>(?:(?:\d*\.)?\d+%?|calc\([()/*\-+\d.\s\w]*(?:alpha)?[()/*\-+\d.\s\w]*\)|alpha)))?)\s*\)$/,[D.HWB]:/^hwb\s*\(\s*(?:(?<h>(?:\d*\.)?\d+(?:deg|grad|rad|turn)?)\s+(?<w>(?:\d*\.)?\d+)%\s+(?<b>(?:\d*\.)?\d+)%(?:\s*\/\s*(?<a>(?:\d*\.)?\d+%?))?|from\s+(?<from>(?:\w+|\w+\(\s*[^())]+\s*\)|\w+\(from\s+\w+\(.*\)\s*\)|#[a-fA-F\d]+))\s+(?<relative_h>(?:[hwb]|(?:\d*\.)?\d+|calc\([hwb()/*\-+\d.\s]+\)))\s+(?<relative_w>(?:[hwb]|(?:\d*\.)?\d+|calc\([hwb()/*\-+\d.\s]+\)))%?\s+(?<relative_b>(?:[hwb]|(?:\d*\.)?\d+|calc\([hwb()/*\-+\d.\s]+\)))%?(?:\s*\/\s*(?<relative_a>(?:(?:\d*\.)?\d+%?|calc\([()/*\-+\d.\s\w]*(?:alpha)?[()/*\-+\d.\s\w]*\)|alpha)))?)\s*\)$/,[D.HSL]:/^hsla?\s*\(\s*(?:(?<h_legacy>-?(?:\d*\.)?\d+(?:deg|grad|rad|turn)?)\s*,\s*(?<s_legacy>(?:\d*\.)?\d+)%\s*,\s*(?<l_legacy>(?:\d*\.)?\d+)%(?:\s*,\s*(?<a_legacy>(?:\d*\.)?\d+))?|(?<h>-?(?:\d*\.)?\d+(?:deg|grad|rad|turn)?)\s+(?<s>(?:\d*\.)?\d+)%?\s+(?<l>(?:\d*\.)?\d+)%?(?:\s*\/\s*(?<a>(?:\d*\.)?\d+%?))?|from\s+(?<from>(?:\w+|\w+\(\s*[^())]+\s*\)|\w+\(from\s+\w+\(.*\)\s*\)|#[a-fA-F\d]+))\s+(?<relative_h>(?:[hsl]|(?:\d*\.)?\d+|calc\([hsl()/*\-+\d.\s]+\)))\s+(?<relative_s>(?:[hsl]|(?:\d*\.)?\d+|calc\([hsl()/*\-+\d.\s]+\)))%?\s+(?<relative_l>(?:[hsl]|(?:\d*\.)?\d+|calc\([hsl()/*\-+\d.\s]+\)))%?(?:\s*\/\s*(?<relative_a>(?:(?:\d*\.)?\d+%?|calc\([()/*\-+\d.\s\w]*(?:alpha)?[()/*\-+\d.\s\w]*\)|alpha)))?)\s*\)$/,[D.CIELab]:/^lab\s*\(\s*(?:(?<L>(?:\d*\.)?\d+%?)\s+(?<a>-?(?:\d*\.)?\d+%?)\s+(?<b>-?(?:\d*\.)?\d+%?)(?:\s*\/\s*(?<A>(?:\d*\.)?\d+%?))?|from\s+(?<from>(?:\w+|\w+\(\s*[^())]+\s*\)|\w+\(from\s+\w+\(.*\)\s*\)|#[a-fA-F\d]+))\s+(?<relative_L>(?:[lab]|(?:\d*\.)?\d+|calc\([lab()/*\-+\d.\s]+\)))\s+(?<relative_a>(?:[lab]|(?:\d*\.)?\d+|calc\([lab()/*\-+\d.\s]+\)))\s+(?<relative_b>(?:[lab]|(?:\d*\.)?\d+|calc\([lab()/*\-+\d.\s]+\)))(?:\s*\/\s*(?<relative_A>(?:(?:\d*\.)?\d+%?|calc\([()/*\-+\d.\s\w]*(?:alpha)?[()/*\-+\d.\s\w]*\)|alpha)))?)\s*\)$/,[D.LCH]:/^lch\s*\(\s*(?:(?<l>(?:\d*\.)?\d+%?)\s+(?<c>-?(?:\d*\.)?\d+%?)\s+(?<h>-?(?:\d*\.)?\d+(?:deg|grad|rad|turn)?)(?:\s*\/\s*(?<a>(?:\d*\.)?\d+%?))?|from\s+(?<from>(?:\w+|\w+\(\s*[^())]+\s*\)|\w+\(from\s+\w+\(.*\)\s*\)|#[a-fA-F\d]+))\s+(?<relative_l>(?:[lch]|(?:\d*\.)?\d+|calc\([lch()/*\-+\d.\s]+\)))\s+(?<relative_c>(?:[lch]|(?:\d*\.)?\d+|calc\([lch()/*\-+\d.\s]+\)))\s+(?<relative_h>(?:[lch]|(?:\d*\.)?\d+|calc\([lch()/*\-+\d.\s]+\)))(?:\s*\/\s*(?<relative_a>(?:(?:\d*\.)?\d+%?|calc\([()/*\-+\d.\s\w]*(?:alpha)?[()/*\-+\d.\s\w]*\)|alpha)))?)\s*\)$/,[D.CMYK]:/^(?:device-cmyk|cmyk)\s*\(\s*(?:(?<c_legacy>(?:\d*\.)?\d+%?)\s*,\s*(?<m_legacy>(?:\d*\.)?\d+%?)\s*,\s*(?<y_legacy>(?:\d*\.)?\d+%?)\s*,\s*(?<k_legacy>(?:\d*\.)?\d+%?)(?:\s*,\s*(?<a_legacy>(?:\d*\.)?\d+))?|(?<c>(?:\d*\.)?\d+%?)\s+(?<m>(?:\d*\.)?\d+%?)\s+(?<y>(?:\d*\.)?\d+%?)\s+(?<k>(?:\d*\.)?\d+%?)(?:\s*\/\s*(?<a>(?:\d*\.)?\d+%?))?)\s*\)$/},j={REGEXP:/^calc\(\s*(?<operation>[\d./*+-\w\s]+)\s*\)$/,SCOPED:/\(\s*([^()]+)\s*\)/g,DIVISION:/\s*(?<left>(?:(?:\d*\.)?\d+|\w+))\s*\/\s*(?<right>(?:(?:\d*\.)?\d+|\w+))\s*/,MULTIPLICATION:/\s*(?<left>(?:(?:\d*\.)?\d+|\w+))\s*\*\s*(?<right>(?:(?:\d*\.)?\d+|\w+))\s*/,SUM:/\s*(?<left>(?:(?:\d*\.)?\d+|\w+))\s*\+\s*(?<right>(?:(?:\d*\.)?\d+|\w+))\s*/,REST:/\s*(?<left>(?:(?:\d*\.)?\d+|\w+))\s*-\s*(?<right>(?:(?:\d*\.)?\d+|\w+))\s*/},Fe=/^(?<number>-?(?:\d*\.)?\d+)(?<units>(?:deg|grad|rad|turn)?)$/,M=/^(-?\d+(?:\.\d+)?|-?\.\d+)%$/,Ie=/^0x([a-f\d]{1,2})$/i,Le=/\{(\d+)\}/g,Re=/,( +|\d+)/g,ze=/ +/,Be=`The provided string color doesn't have a correct format`,Ve=`The provided color object doesn't have the proper keys or format`,He=`is not a valid operation for a relative color`,N,P,Ue;(function(e){e.NONE=`none`,e.DEGREES=`deg`,e.GRADIANS=`grad`,e.RADIANS=`rad`,e.TURNS=`turn`})(N||={}),function(e){e.NONE=`none`,e.PERCENT=`percent`}(P||={}),function(e){e.DEVICE_CMYK=`device-cmyk`,e.CMYK=`cmyk`}(Ue||={});var F={decimals:6,legacyCSS:!1,spacesAfterCommas:!1,anglesUnit:N.NONE,rgbUnit:P.NONE,labUnit:P.NONE,lchUnit:P.NONE,cmykUnit:P.PERCENT,alphaUnit:P.NONE,cmykFunction:Ue.DEVICE_CMYK},I=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),We=e=>+`${e}`.replace(M,`$1`),L=e=>M.test(`${e}`)?We(e):Math.min(+e,100),Ge=e=>(e.length===1&&(e+=e),parseInt(e,16)),Ke=e=>{let t=z(e,0).toString(16).toUpperCase();return t.length===1?`0x0${t}`:`0x${t}`},qe=(e,t=!1)=>!t&&M.test(e)?Math.min(C*We(e)/100,C):Ie.test(e)?(e.length===3&&(e+=e.slice(-1)),t?z(e)/C:z(e)):Math.min(+e,t?1:C),Je=e=>M.test(e)?B(T*We(e)/100,-125,T):B(+e,-125,T),Ye=e=>M.test(e)?B(E*We(e)/100,-150,E):B(+e,-150,E),R=e=>Math.min(M.test(e)?We(e)/100:+e,1),Xe=e=>[...e].sort().join(``).toUpperCase(),z=(e,t=6)=>{let n=10**t;return Math.round(+e*n)/n},B=(e,t,n)=>Math.max(t,Math.min(e,n)),Ze=e=>180*e/Math.PI,Qe=e=>e*Math.PI/180,$e=360,V=e=>{if(typeof e==`string`){let t=e.match(Fe).groups,n=+t.number;switch(t.units){case N.RADIANS:e=z(Ze(n));break;case N.TURNS:e=z(n*$e);break;case N.GRADIANS:e=z(.9*n);break;case N.DEGREES:default:e=n}}return(e>360||e<0)&&(e-=Math.floor(e/$e)*$e),e},H=e=>(typeof e==`string`&&(e=M.test(e)?We(e)/100:+e),isNaN(+e)||e>1?1:z(e)),et=(e,t)=>{let n;switch(t){case N.RADIANS:n=z(Qe(e));break;case N.TURNS:n=z(e/$e);break;case N.GRADIANS:n=z(10/9*e);break;case N.DEGREES:case N.NONE:default:n=e}return n},tt=e=>`${e}`in k,nt=[[.4360747,.3850649,.1430804],[.2225045,.7168786,.0606169],[.0139322,.0971045,.7141733]],rt=[[3.1338561,-1.6168667,-.4906146],[-.9787684,1.9161415,.033454],[.0719453,-.2289914,1.4052427]],it=nt.map((e=>e.reduce(((e,t)=>e+t),0))),at=(e,t,n)=>(n<0&&(n+=6),n>=6&&(n-=6),z(n<1?((t-e)*n+e)*C:n<3?t*C:n<4?((t-e)*(4-n)+e)*C:e*C)),ot=e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4,st=e=>e<=.0031308?12.92*e:1.055*e**(1/2.4)-.055,ct=(e,t,n,r)=>{let i=[0,0,0],a=[e,t,n];return r.forEach(((e,t)=>{e.forEach(((e,n)=>{i[t]+=e*a[n]}))})),i},U=(e,t,n)=>{t/=100;let r=(n/=100)<=.5?n*(t+1):n+t-n*t,i=2*n-r;return{R:at(i,r,(e/=60)+2),G:at(i,r,e),B:at(i,r,e-2)}},lt=(e,t,n,r=1)=>{e/=C,t/=C,n/=C,r=Math.min(r,1);let i=Math.max(e,t,n),a=Math.min(e,t,n),o=i-a,s=0,c=0,l=(i+a)/2;if(o!==0){switch(i){case e:s=(t-n)/o%6;break;case t:s=(n-e)/o+2;break;case n:s=(e-t)/o+4}s=z(60*s),s<0&&(s+=360),c=o/(1-Math.abs(2*l-1))}return{H:s,S:z(100*c),L:z(100*l),A:r}},ut=(e,t,n)=>{let r=[e/C,t/C,n/C].map(ot),i=ct(r[0],r[1],r[2],nt),a=((e,t,n)=>{let r=e=>e>(6/29)**3?Math.cbrt(e):e/(3*(6/29)**2)+4/29,i=r(e/it[0]),a=r(t/it[1]);return[116*a-16,500*(i-a),200*(a-r(n/it[2]))]})(i[0],i[1],i[2]);return{L:a[0],a:a[1],b:a[2]}},dt=(e,t,n)=>{let r=((e,t,n)=>{let r=e=>e>6/29?e**3:3*(6/29)**2*(e-4/29),i=(e+16)/116,a=t/500,o=n/200;return[it[0]*r(i+a),it[1]*r(i),it[2]*r(i-o)]})(e,t,n),i=ct(r[0],r[1],r[2],rt).map(st);return{R:B(i[0]*C,0,C),G:B(i[1]*C,0,C),B:B(i[2]*C,0,C)}},ft=(e,t,n)=>({L:e,C:Math.sqrt(t**2+n**2),H:V(Ze(Math.atan2(n,t)))}),pt=(e,t,n)=>{let r=Qe(n);return{L:e,a:t*Math.cos(r),b:t*Math.sin(r)}},mt=(e,t,n)=>{let r=ut(e,t,n);return ft(r.L,r.a,r.b)},ht=(e,t,n)=>{let r=pt(e,t,n);return dt(r.L,r.a,r.b)},gt=(e,t,n,r=1)=>({H:lt(e,t,n,r).H,W:z(Math.min(e,t,n)/C*100),B:z(100*(1-Math.max(e,t,n)/C)),A:r}),_t=(e,t,n)=>{let r=1-(n/=100)-(t/=100),i=r*(1-Math.abs(e/60%2-1)),a=0,o=0,s=0;return e<60?(a=r,o=i,s=0):e>=60&&e<120?(a=i,o=r,s=0):e>=120&&e<180?(a=0,o=r,s=i):e>=180&&e<240?(a=0,o=i,s=r):e>=240&&e<300?(a=i,o=0,s=r):e>=300&&(a=r,o=0,s=i),a+=t,o+=t,s+=t,{R:B(a*C,0,C),G:B(o*C,0,C),B:B(s*C,0,C)}},vt=(e,t,n,r)=>({R:z(C*(1-e)*(r=1-r)),G:z(C*(1-t)*r),B:z(C*(1-n)*r)}),yt=(e,t,n)=>{e/=C,t/=C,n/=C;let r=1-Math.max(e,t,n),i=1-r,a=i&&(i-t)/i,o=i&&(i-n)/i;return{C:z(100*(i&&(i-e)/i)),M:z(100*a),Y:z(100*o),K:z(100*r)}},bt=(e,t)=>{if(e<0&&(e+=360),e>360&&(e-=360),e===360||e===0)return e;let n=[[0,120],[120,180],[180,240],[240,360]],r=[[0,60],[60,120],[120,240],[240,360]],i=t?r:n,a=0,o=0,s=0,c=0;return(t?n:r).find(((t,n)=>e>=t[0]&&e<t[1]&&(a=t[0],o=t[1],s=i[n][0],c=i[n][1],!0))),s+(c-s)/(o-a)*(e-a)},xt=class{get rgb(){return this._rgb}},St=class extends xt{constructor(e){super();let t=e.match(A.HEX).groups;this._r=t.r??t.rr,this._g=t.g??t.gg,this._b=t.b??t.bb,this._a=t.a??t.aa;let n={R:Ge(this._r),G:Ge(this._g),B:Ge(this._b)};this._a!==void 0&&(n.A=Ge(this._a)/C),this._rgb=n}},W=class{constructor(e,t,n){this._operations=new Map([[j.DIVISION,this._division],[j.MULTIPLICATION,this._multiplication],[j.SUM,this._sum],[j.REST,this._rest]]),this._colorIndex=e;let r=t,i=0;if(Number.isNaN(+t)){if(t in n)this._result=n[t];else if(j.REGEXP.test(r))j.REGEXP.lastIndex=0,this._result=this._getCalcValue(r,n);else{for(;j.SCOPED.test(r)&&i<100;){if(j.SCOPED.lastIndex=0,r=r.replace(j.SCOPED,((e,t)=>this._calculate(t,n).toString())),j.REGEXP.test(r)){j.REGEXP.lastIndex=0;break}i++}this._result=this._getCalcValue(r,n)}}else this._result=+t}_division(e,t){return e/t}_multiplication(e,t){return e*t}_sum(e,t){return e+t}_rest(e,t){return e-t}_getCalcValue(e,t){let n=e.match(j.REGEXP).groups.operation,r=this._calculate(n,t);if(Number.isNaN(r))throw Error(`Invalid value for ${this._colorIndex}. ${n} ${He}`);return r}_calculate(e,t){return this._operations.forEach(((n,r)=>{let i=0;for(;r.test(e)&&i<100;)e=e.replace(r,((e,r,i)=>n(t[r]??+r,t[i]??+i).toString())),i++})),+e}get result(){return this._result}},Ct=class extends xt{get hasPercentageAlpha(){return M.test(this._a)}},wt=class extends Ct{constructor(e,t){super();let{r_legacy:n,g_legacy:r,b_legacy:i,a_legacy:a,r:o,g:s,b:c,a:l,from:u,relative_r:d,relative_g:f,relative_b:p,relative_a:m}=e.match(A.RGB).groups;if(u){let e=t(u),n={r:e.R,g:e.G,b:e.B,alpha:e.A??1},r=new W(`r`,d,n).result,i=new W(`g`,f,n).result,a=new W(`b`,p,n).result,o={R:Math.min(r,C),G:Math.min(i,C),B:Math.min(a,C)};if(m){let e=new W(`alpha`,m,n).result;o.A=Math.min(e,1)}this._rgb=o}else{this._r=n??o,this._g=r??s,this._b=i??c,this._a=a??l;let e={R:Math.min(qe(this._r),C),G:Math.min(qe(this._g),C),B:Math.min(qe(this._b),C)};this._a!==void 0&&(e.A=H(this._a)),this._rgb=e}}get hasPercentageValues(){return M.test(this._r)&&M.test(this._g)&&M.test(this._b)}static test(e){return A.RGB.test(e)}},Tt=class extends Ct{get angleUnit(){if(this._h){let e=this._h.match(Fe).groups.units;return e===``?N.NONE:e}return N.NONE}},Et=class extends Tt{constructor(e,t){super();let{h_legacy:n,s_legacy:r,l_legacy:i,a_legacy:a,h:o,s,l:c,a:l,from:u,relative_h:d,relative_s:f,relative_l:p,relative_a:m}=e.match(A.HSL).groups;if(u){let e=t(u),n=lt(e.R,e.G,e.B,e.A),r={h:n.H,s:n.S,l:n.L,alpha:n.A},i=new W(`h`,d,r).result,a=new W(`s`,f,r).result,o=new W(`l`,p,r).result,s=U(B(i,0,360),B(a,0,w),B(o,0,w));if(m){let e=new W(`alpha`,m,r).result;s.A=B(e,0,1)}this._rgb=s}else{this._h=n??o,this._s=r??s,this._l=i??c,this._a=a??l;let e=U(V(this._h),L(this._s),L(this._l));this._a!==void 0&&(e.A=H(this._a)),this._rgb=e}}static test(e){return A.HSL.test(e)}},Dt=class extends Tt{constructor(e,t){super();let{h:n,w:r,b:i,a,from:o,relative_h:s,relative_w:c,relative_b:l,relative_a:u}=e.match(A.HWB).groups;if(o){let e=t(o),n=gt(e.R,e.G,e.B,e.A),r={h:n.H,w:n.W,b:n.B,alpha:n.A},i=new W(`h`,s,r).result,a=new W(`w`,c,r).result,d=new W(`b`,l,r).result,f=_t(B(i,0,360),B(a,0,w),B(d,0,w));if(u){let e=new W(`alpha`,u,r).result;f.A=B(e,0,1)}this._rgb=f}else{this._h=n,this._w=r,this._b=i,this._a=a;let e=_t(V(this._h),L(this._w),L(this._b));this._a!==void 0&&(e.A=H(this._a)),this._rgb=e}}static test(e){return A.HWB.test(e)}},Ot=class extends Ct{constructor(e,t){super();let{L:n,a:r,b:i,A:a,from:o,relative_L:s,relative_a:c,relative_b:l,relative_A:u}=e.match(A.CIELab).groups;if(o){let e=t(o),n=ut(e.R,e.G,e.B),r={l:n.L,a:n.a,b:n.b,alpha:e.A??1},i=new W(`l`,s,r).result,a=new W(`a`,c,r).result,d=new W(`b`,l,r).result,f=dt(B(i,0,w),B(a,-125,T),B(d,-125,T));if(u){let e=new W(`alpha`,u,r).result;f.A=B(e,0,1)}this._rgb=f}else{this._L=n,this._A=r,this._B=i,this._a=a;let e=dt(L(this._L),Je(this._A),Je(this._B));this._a!==void 0&&(e.A=H(this._a)),this._rgb=e}}get hasPercentageValues(){return M.test(this._L)&&M.test(this._A)&&M.test(this._B)}static test(e){return A.CIELab.test(e)}},kt=class extends Tt{constructor(e,t){super();let{l:n,c:r,h:i,a,from:o,relative_l:s,relative_c:c,relative_h:l,relative_a:u}=e.match(A.LCH).groups;if(o){let e=t(o),n=mt(e.R,e.G,e.B),r={l:n.L,c:n.C,h:n.H,alpha:e.A??1},i=new W(`l`,s,r).result,a=new W(`c`,c,r).result,d=new W(`h`,l,r).result,f=ht(B(i,0,w),B(a,-150,E),V(d));if(u){let e=new W(`alpha`,u,r).result;f.A=B(e,0,1)}this._rgb=f}else{this._l=n,this._c=r,this._h=i,this._a=a;let e=ht(L(this._l),Ye(this._c),V(this._h));this._a!==void 0&&(e.A=H(this._a)),this._rgb=e}}get hasPercentageValues(){return M.test(this._l)&&M.test(this._c)}static test(e){return A.LCH.test(e)}},At=class extends Ct{constructor(e){super();let t=e.match(A.CMYK).groups;this._c=t.c_legacy??t.c,this._m=t.m_legacy??t.m,this._y=t.y_legacy??t.y,this._k=t.k_legacy??t.k,this._a=t.a_legacy??t.a;let n=vt(R(this._c),R(this._m),R(this._y),R(this._k));this._a!==void 0&&(n.A=H(this._a)),this._rgb=n}get hasPercentageValues(){return M.test(this._c)&&M.test(this._m)&&M.test(this._y)&&M.test(this._k)}static test(e){return A.CMYK.test(e)}},G=e=>typeof e==`string`?(e=>{let t;if(Object.keys(D).some((n=>{if(A[n].test(e))return t=n,!0})),!t&&~je.indexOf(e)&&(t=D.HEX),!t)throw Error(Be);return t})(e):(e=>{let t,n=!1,r=Xe(Object.keys(e));if(Ne[r]&&(t=Ne[r]),t&&t===D.RGB){let r=Object.entries(e).some((e=>!Ie.test(`${e[1]}`))),i=Object.entries(e).some((e=>!(M.test(`${e[1]}`)||!Ie.test(`${e[1]}`)&&!isNaN(+e[1])&&+e[1]<=C)));r&&i&&(n=!0),r||(t=D.HEX)}if(!t||n)throw Error(Ve);return t})(e),jt={[D.HEX](e){return new St(~je.indexOf(e)?Ae[e]:e).rgb},[D.RGB]:e=>new wt(e,K).rgb,[D.HSL]:e=>new Et(e,K).rgb,[D.HWB]:e=>new Dt(e,K).rgb,[D.CIELab]:e=>new Ot(e,K).rgb,[D.LCH]:e=>new kt(e,K).rgb,[D.CMYK]:e=>new At(e).rgb},Mt={[D.HEX](e){let t={R:qe(`${e.R}`),G:qe(`${e.G}`),B:qe(`${e.B}`)};return I(e,`A`)&&(t.A=Math.min(qe(`${e.A}`,!0),1)),t},[D.RGB](e){return this.HEX(e)},[D.HSL](e){let t=L(`${e.S}`),n=L(`${e.L}`),r=U(V(e.H),t,n);return I(e,`A`)&&(r.A=H(e.A)),r},[D.HWB](e){let t=L(`${e.W}`),n=L(`${e.B}`),r=_t(V(e.H),t,n);return I(e,`A`)&&(r.A=H(e.A)),r},[D.CIELab](e){let t=dt(L(`${e.L}`),Je(`${e.a}`),Je(`${e.b}`));return I(e,`A`)&&(t.A=H(e.A)),t},[D.LCH](e){let t=ht(L(`${e.L}`),Ye(`${e.C}`),V(`${e.H}`));return I(e,`A`)&&(t.A=H(e.A)),t},[D.CMYK](e){let t=vt(R(`${e.C}`),R(`${e.M}`),R(`${e.Y}`),R(`${e.K}`));return I(e,`A`)&&(t.A=H(e.A)),t}},K=(e,t=G(e))=>typeof e==`string`?jt[t](e):Mt[t](e),q=(e,...t)=>{let n=[],r=[],i=[],a=[],o=[],s=[],c=[],l=Object.values(N),u=Object.values(P),d=Object.values(Ue),f={legacyCSS:0,spacesAfterCommas:0,cmykFunction:0};for(let e of t)if(typeof e==`string`){if(n.push(e),e.includes(`,`)){f.legacyCSS++;let t=e.match(Re);new Set(t).size===1&&ze.test(t[0].slice(1))&&f.spacesAfterCommas++}if(Et.test(e)){let t=new Et(e,K);r.push(t.angleUnit),c.push(t.hasPercentageAlpha);continue}if(Dt.test(e)){let t=new Dt(e,K);r.push(t.angleUnit),c.push(t.hasPercentageAlpha);continue}if(wt.test(e)){let t=new wt(e,K);i.push(t.hasPercentageValues),c.push(t.hasPercentageAlpha);continue}if(Ot.test(e)){let t=new Ot(e,K);a.push(t.hasPercentageValues),c.push(t.hasPercentageAlpha);continue}if(kt.test(e)){let t=new kt(e,K);r.push(t.angleUnit),o.push(t.hasPercentageValues),c.push(t.hasPercentageAlpha);continue}if(At.test(e)){let t=new At(e);s.push(t.hasPercentageValues),e.startsWith(`cmyk`)&&f.cmykFunction++,c.push(t.hasPercentageAlpha)}}return{decimals:typeof e.decimals===Pe.NUMBER?e.decimals:F.decimals,legacyCSS:typeof e.legacyCSS===Pe.BOOLEAN?e.legacyCSS:!!(n.length&&f.legacyCSS===n.length)||F.legacyCSS,spacesAfterCommas:typeof e.spacesAfterCommas===Pe.BOOLEAN?e.spacesAfterCommas:!!(n.length&&f.spacesAfterCommas===n.length)||F.spacesAfterCommas,anglesUnit:e.anglesUnit&&l.includes(e.anglesUnit)?e.anglesUnit:new Set(r).size===1?r[0]:F.anglesUnit,rgbUnit:e.rgbUnit&&u.includes(e.rgbUnit)?e.rgbUnit:new Set(i).size===1&&i[0]?P.PERCENT:F.rgbUnit,labUnit:e.labUnit&&u.includes(e.labUnit)?e.labUnit:new Set(a).size===1&&a[0]?P.PERCENT:F.labUnit,lchUnit:e.lchUnit&&u.includes(e.lchUnit)?e.lchUnit:new Set(o).size===1&&o[0]?P.PERCENT:F.lchUnit,cmykUnit:e.cmykUnit&&u.includes(e.cmykUnit)?e.cmykUnit:new Set(s).size!==1||s[0]?F.cmykUnit:P.NONE,alphaUnit:e.alphaUnit&&u.includes(e.alphaUnit)?e.alphaUnit:new Set(c).size===1&&c[0]?P.PERCENT:F.alphaUnit,cmykFunction:e.cmykFunction&&d.includes(e.cmykFunction)?e.cmykFunction:s.length&&s.length===f.cmykFunction?Ue.CMYK:F.cmykFunction}},Nt=(e,t)=>({H:z(e.H,t),S:z(e.S,t),L:z(e.L,t)}),Pt=e=>e?`, `:`,`,Ft=(e,t)=>Me[Ne[Xe(Object.keys(e))]].reduce(((n,r,i)=>{let a=e[r];return a!==void 0&&n.push(t(a,i)),n}),[]),It=(e,t)=>e.replace(Le,((e,n)=>`${t[n-1]}`)),Lt=(e,t,n=!1)=>{let{alphaUnit:r,legacyCSS:i,decimals:a}=t;return r!==P.PERCENT||i&&!n?z(e,a):`${z(100*e,a)}%`},Rt=e=>{let{anglesUnit:t,decimals:n}=e;return(r,i)=>i===0&&t!==N.NONE?`${z(et(r,t),n)}${t}`:i===3?Lt(r,e):z(r,n)},J={[D.HEX]:e=>{let t=Ft(e,(e=>(e=>{let t=z(e,0).toString(16).toUpperCase();return t.length===1&&(t=`0${t}`),t})(z(e))));return It(t.length===4?`#{1}{2}{3}{4}`:`#{1}{2}{3}`,t)},[D.RGB]:(e,t)=>{let{decimals:n,legacyCSS:r,spacesAfterCommas:i,rgbUnit:a}=t,o=Pt(i),s=Ft(e,((e,r)=>a===P.PERCENT&&r<3?`${((e,t)=>z(e/C*100,t))(e,n)}%`:r===3?Lt(e,t):z(e,n)));return It(r?s.length===4?`rgba({1}${o}{2}${o}{3}${o}{4})`:`rgb({1}${o}{2}${o}{3})`:s.length===4?`rgb({1} {2} {3} / {4})`:`rgb({1} {2} {3})`,s)},[D.HSL]:(e,t)=>{let{legacyCSS:n,spacesAfterCommas:r}=t,i=Pt(r),a=Ft(e,Rt(t));return It(n?a.length===4?`hsla({1}${i}{2}%${i}{3}%${i}{4})`:`hsl({1}${i}{2}%${i}{3}%)`:a.length===4?`hsl({1} {2}% {3}% / {4})`:`hsl({1} {2}% {3}%)`,a)},[D.HWB]:(e,t)=>{let n=Ft(e,Rt(t));return It(n.length===4?`hwb({1} {2}% {3}% / {4})`:`hwb({1} {2}% {3}%)`,n)},[D.CIELab]:(e,t)=>{let{decimals:n,labUnit:r}=t,i=Ft(e,((e,i)=>{if(i===0){let t=z(L(e),n);return r===P.PERCENT?`${t}%`:`${t}`}return i<3?r===P.PERCENT?`${((e,t)=>z(e/T*100,t))(e,n)}%`:z(e,n):Lt(e,t,!0)}));return It(i.length===4?`lab({1} {2} {3} / {4})`:`lab({1} {2} {3})`,i)},[D.LCH]:(e,t)=>{let{decimals:n,lchUnit:r,anglesUnit:i}=t,a=Ft(e,((e,a)=>{if(a===0){let t=z(L(e),n);return r===P.PERCENT?`${t}%`:`${t}`}return a===1?r===P.PERCENT?`${((e,t)=>z(e/E*100,t))(e,n)}%`:z(e,n):a===2?i===N.NONE?z(e,n):`${z(et(e,i),n)}${i}`:Lt(e,t,!0)}));return It(a.length===4?`lch({1} {2} {3} / {4})`:`lch({1} {2} {3})`,a)},[D.CMYK]:(e,t)=>{let{decimals:n,legacyCSS:r,spacesAfterCommas:i,cmykUnit:a,cmykFunction:o}=t,s=Pt(i),c=Ft(e,((e,r)=>a===P.PERCENT&&r<4?`${z(e,n)}%`:r===4?Lt(e,t):z(e/100,n)));return It(r?c.length===5?`${o}({1}${s}{2}${s}{3}${s}{4}${s}{5})`:`${o}({1}${s}{2}${s}{3}${s}{4})`:c.length===5?`${o}({1} {2} {3} {4} / {5})`:`${o}({1} {2} {3} {4})`,c)}},zt=(e,t,n)=>t.reduce(((t,r)=>[...t,{...e,H:n===k.ADDITIVE?V(e.H+r):V(bt(bt(e.H,!1)+r,!0))}]),[{...e}]),Bt=(e,t)=>zt(e,[30,-30],t),Vt=(e,t)=>zt(e,[180],t),Ht=(e,t)=>zt(e,[150,-150],t),Ut=(e,t)=>zt(e,[120,-120],t),Wt=(e,t)=>zt(e,[60,-120,180],t),Gt=(e,t)=>zt(e,[90,-90,180],t),Y={[D.HEX]:e=>({R:Ke(e.R),G:Ke(e.G),B:Ke(e.B)}),HEXA(e){let t=Y.HEX(e);return t.A=I(e,`A`)?Ke(e.A*C):`0xFF`,t},[D.RGB](e,t){let n=Yt(e,t);return I(n,`A`)&&delete n.A,n},RGBA(e,t){let n=Y.RGB(e,t);return n.A=I(e,`A`)?z(e.A):1,n},[D.HSL](e,t){let n=lt(e.R,e.G,e.B);return delete n.A,Nt(n,t)},HSLA(e,t){let n=Y.HSL(e,t);return n.A=I(e,`A`)?z(e.A,t):1,n},[D.HWB](e,t){let n=gt(e.R,e.G,e.B);return delete n.A,((e,t)=>({H:z(e.H,t),W:z(e.W,t),B:z(e.B,t)}))(n,t)},HWBA(e,t){let n=Y.HWB(e,t);return n.A=I(e,`A`)?z(e.A,t):1,n},[D.CIELab]:(e,t)=>((e,t)=>({L:z(e.L,t),a:z(e.a,t),b:z(e.b,t)}))(ut(e.R,e.G,e.B),t),CIELabA(e,t){let n=Y.CIELab(e,t);return n.A=I(e,`A`)?z(e.A,t):1,n},[D.LCH]:(e,t)=>((e,t)=>({L:z(e.L,t),C:z(e.C,t),H:z(e.H,t)}))(mt(e.R,e.G,e.B),t),LCHA(e,t){let n=Y.LCH(e,t);return n.A=I(e,`A`)?z(e.A,t):1,n},[D.CMYK]:(e,t)=>((e,t)=>({C:z(e.C,t),M:z(e.M,t),Y:z(e.Y,t),K:z(e.K,t)}))(yt(e.R,e.G,e.B),t),CMYKA(e,t){let n=Y.CMYK(e,t);return n.A=I(e,`A`)?z(e.A,t):1,n}},Kt=(e,t,n,r)=>{let i=G(e),a=typeof e==`string`,o=K(e,i),s=typeof e==`string`&&I(o,`A`)||typeof e!=`string`&&I(e,`A`),c=lt(o.R,o.G,o.B,o.A);s||delete c.A;let l=n?c.L/(t+1):(100-c.L)/(t+1),u=Array(t).fill(null).map(((e,t)=>({...c,L:c.L+l*(t+1)*(1-2*n)})));switch(i){case D.HEX:default:return u.map((e=>{let t=U(e.H,e.S,e.L);return s&&(t.A=e.A),a?s?J.HEX({...t,A:z(t.A*C)}):J.HEX(t):s?Y.HEXA(t):Y.HEX(t)}));case D.RGB:return u.map((e=>{let t=U(e.H,e.S,e.L);return s&&(t.A=e.A),a?J.RGB(t,r):s?Y.RGBA(t,r.decimals):Y.RGB(t,r.decimals)}));case D.HSL:return u.map((e=>a?J.HSL(e,r):s?Y.HSLA({...U(e.H,e.S,e.L),A:e.A},r.decimals):Y.HSL(U(e.H,e.S,e.L),r.decimals)));case D.HWB:return u.map((e=>{let t=U(e.H,e.S,e.L);s&&(t.A=e.A);let n=s?Y.HWBA(t,r.decimals):Y.HWB(t,r.decimals);return a?J.HWB(n,r):n}));case D.CIELab:return u.map((e=>{let t=U(e.H,e.S,e.L);s&&(t.A=e.A);let n=s?Y.CIELabA(t,r.decimals):Y.CIELab(t,r.decimals);return a?J.CIELab(n,r):n}));case D.LCH:return u.map((e=>{let t=U(e.H,e.S,e.L),n=mt(t.R,t.G,t.B);return s&&(n.A=e.A),a?J.LCH(n,r):s?Y.LCHA({...t,A:e.A},r.decimals):Y.LCH(t,r.decimals)}))}},qt={buildHarmony(e,t,n,r){let i=G(e),a=K(e,i),o=lt(a.R,a.G,a.B,a.A),s=typeof e==`string`&&I(a,`A`)||typeof e!=`string`&&I(e,`A`),c=typeof e==`string`;switch(i){case D.HEX:default:return s?this.HEXA(Nt(o,0),t,n,c):this.HEX(Nt(o,0),t,n,c);case D.HSL:return s?this.HSLA(o,t,n,c,r):this.HSL(o,t,n,c,r);case D.HWB:return s?this.HWBA(o,t,n,c,r):this.HWB(o,t,n,c,r);case D.RGB:return s?this.RGBA(o,t,n,c,r):this.RGB(o,t,n,c,r);case D.CIELab:return s?this.CIELabA(o,t,n,c,r):this.CIELab(o,t,n,c,r);case D.LCH:return s?this.LCHA(o,t,n,c,r):this.LCH(o,t,n,c,r)}},[D.HEX]:(e,t,n,r)=>t(e,n).map((e=>r?J.HEX(U(e.H,e.S,e.L)):Y.HEX(U(e.H,e.S,e.L)))),HEXA:(e,t,n,r)=>t(e,n).map((e=>r?J.HEX({...U(e.H,e.S,e.L),A:H(e.A)*C}):Y.HEXA({...U(e.H,e.S,e.L),A:H(e.A)}))),[D.RGB]:(e,t,n,r,i)=>t(e,n).map((e=>r?J.RGB(U(e.H,e.S,e.L),i):Y.RGB(U(e.H,e.S,e.L),i.decimals))),RGBA:(e,t,n,r,i)=>t(e,n).map((e=>r?J.RGB({...U(e.H,e.S,e.L),A:H(e.A)},i):Y.RGBA({...U(e.H,e.S,e.L),A:H(e.A)},i.decimals))),[D.HSL]:(e,t,n,r,i)=>t(e,n).map((e=>r?J.HSL({H:e.H,S:e.S,L:e.L},i):Y.HSL(U(e.H,e.S,e.L),i.decimals))),HSLA:(e,t,n,r,i)=>t(e,n).map((e=>r?J.HSL({...e,A:H(e.A)},i):Y.HSLA({...U(e.H,e.S,e.L),A:H(e.A)},i.decimals))),[D.HWB]:(e,t,n,r,i)=>t(e,n).map((e=>{let t=U(e.H,e.S,e.L),n=gt(t.R,t.G,t.B);return r?J.HWB({H:n.H,W:n.W,B:n.B},i):Y.HWB(t,i.decimals)})),HWBA:(e,t,n,r,i)=>t(e,n).map((e=>{let t=U(e.H,e.S,e.L),n=gt(t.R,t.G,t.B);return r?J.HWB({...n,A:H(e.A)},i):Y.HWBA({...t,A:H(e.A)},i.decimals)})),[D.CIELab]:(e,t,n,r,i)=>t(e,n).map((e=>{let t=U(e.H,e.S,e.L);return r?J.CIELab(ut(t.R,t.G,t.B),i):Y.CIELab(t,i.decimals)})),CIELabA:(e,t,n,r,i)=>t(e,n).map((e=>{let t=U(e.H,e.S,e.L);return r?J.CIELab({...ut(t.R,t.G,t.B),A:H(e.A)},i):Y.CIELabA({...t,A:H(e.A)},i.decimals)})),[D.LCH]:(e,t,n,r,i)=>t(e,n).map((e=>{let t=U(e.H,e.S,e.L);return r?J.LCH(mt(t.R,t.G,t.B),i):Y.LCH(t,i.decimals)})),LCHA:(e,t,n,r,i)=>t(e,n).map((e=>{let t=U(e.H,e.S,e.L);return r?J.LCH({...mt(t.R,t.G,t.B),A:H(e.A)},i):Y.LCHA({...t,A:H(e.A)},i.decimals)}))},Jt={mix(e,t){let n=e.map((e=>K(e,G(e)))),r=t===k.SUBTRACTIVE?n.map((e=>{let t=((e,t,n)=>{let r=Math.min(e,t,n),i=Math.min(C-e,C-t,C-n),a=e-r,o=t-r,s=n-r,c=Math.min(a,o),l=a-c,u=(o+c)/2,d=(s+o-c)/2,f=Math.max(l,u,d)/Math.max(a,o,s),p=isNaN(f)||f===1/0||f<=0?1:f;return{R:l/p+i,Y:u/p+i,B:d/p+i}})(e.R,e.G,e.B);return I(e,`A`)&&(t.A=e.A),t})):null;function i(e){let n=t===k.ADDITIVE?{R:0,G:0,B:0,A:0}:{R:0,Y:0,B:0,A:0};return e.reduce(((e,n)=>{let r=I(n,`A`)?n.A:1,i={R:Math.min(e.R+n.R*r,C),B:Math.min(e.B+n.B*r,C),A:1-(1-r)*(1-e.A)},a=`G`in e?e.G:e.Y,o=`G`in n?n.G:n.Y;return{...i,...t===k.ADDITIVE?{G:Math.min(a+o*r,C)}:{Y:Math.min(a+o*r,C)}}}),n)}let a;if(t===k.ADDITIVE)a=i(n);else{let e=i(r);a=((e,t,n)=>{let r=Math.min(e,t,n),i=Math.min(C-e,C-t,C-n),a=e-r,o=t-r,s=n-r,c=Math.min(o,s),l=a+o-c,u=o+c,d=2*(s-c),f=Math.max(l,u,d)/Math.max(a,o,s),p=isNaN(f)||f===1/0||f<=0?1:f;return{R:l/p+i,G:u/p+i,B:d/p+i}})(e.R,e.Y,e.B),a.A=e.A}return{R:z(a.R),G:z(a.G),B:z(a.B),A:B(a.A,0,1)}},[D.HEX](e,t,n){let r=this.mix(e,t);return delete r.A,n?J.HEX(r):Y.HEX(r)},HEXA(e,t,n){let r=this.mix(e,t);return r.A=n?H(r.A)*C:H(r.A),n?J.HEX(r):Y.HEXA(r)},[D.RGB](e,t,n,r){let i=this.mix(e,t);return delete i.A,n?J.RGB(i,r):Y.RGB(i,r.decimals)},RGBA(e,t,n,r){let i=this.mix(e,t);return n?J.RGB(i,r):Y.RGBA(i,r.decimals)},[D.HSL](e,t,n,r){let i=this.mix(e,t),a=lt(i.R,i.G,i.B);return delete i.A,delete a.A,n?J.HSL(a,r):Y.HSL(i,r.decimals)},HSLA(e,t,n,r){let i=this.mix(e,t),a=lt(i.R,i.G,i.B,i.A);return n?J.HSL(a,r):Y.HSLA(i,r.decimals)},[D.HWB](e,t,n,r){let i=this.mix(e,t),a=gt(i.R,i.G,i.B);return delete i.A,delete a.A,n?J.HWB(a,r):Y.HWB(i,r.decimals)},HWBA(e,t,n,r){let i=this.mix(e,t),a=gt(i.R,i.G,i.B,i.A);return n?J.HWB(a,r):Y.HWBA(i,r.decimals)},[D.CIELab](e,t,n,r){let i=this.mix(e,t),a=ut(i.R,i.G,i.B);return delete i.A,n?J.CIELab(a,r):Y.CIELab(i,r.decimals)},CIELabA(e,t,n,r){let i=this.mix(e,t),a=ut(i.R,i.G,i.B);return I(i,`A`)&&(a.A=i.A),n?J.CIELab(a,r):Y.CIELabA(i,r.decimals)},[D.LCH](e,t,n,r){let i=this.mix(e,t),a=mt(i.R,i.G,i.B);return delete i.A,n?J.LCH(a,r):Y.LCH(i,r.decimals)},LCHA(e,t,n,r){let i=this.mix(e,t),a=mt(i.R,i.G,i.B);return I(i,`A`)&&(a.A=i.A),n?J.LCH(a,r):Y.LCHA(i,r.decimals)}},Yt=(e,t)=>({R:z(e.R,t),G:z(e.G,t),B:z(e.B,t),...I(e,`A`)?{A:z(e.A,t)}:{}}),X=(e,t,n,r)=>r(K(e,t),n),Xt=(e,t,n,r,i)=>(n<1&&(n=5),((e,t,n)=>{let r=n-1,i=(t.R-e.R)/r,a=(t.G-e.G)/r,o=(t.B-e.B)/r,s=H(e.A),c=(H(t.A)-s)/r;return Array(n).fill(null).map(((n,l)=>l===0?e:l===r?t:{R:z(e.R+i*l),G:z(e.G+a*l),B:z(e.B+o*l),A:z(s+c*l)}))})(K(e),K(t),n).map((e=>i(e,r))));function Z(e){let{from:t,to:n,thirdParameter:r,fourthParameter:i,translateFunction:a,cssFunction:o}=e,s=typeof r==`number`?Xt(t,n,r,i?.decimals,a):Xt(t,n,5,r?.decimals,a);return o?s.map((e=>o(e,q((typeof r==`number`?i:r)??{},t,n)))):s}function Q(e){let{colors:t,secondParameter:n,thirdParameter:r,colorMixerFunction:i,css:a}=e,o=q((typeof n==`string`?r:n)??{},...t);return i(t,typeof n==`string`?n:k.ADDITIVE,a,o)}var Zt=(e,t,n,r)=>({[O.ANALOGOUS]:qt.buildHarmony(t,Bt,n,r),[O.COMPLEMENTARY]:qt.buildHarmony(t,Vt,n,r),[O.SPLIT_COMPLEMENTARY]:qt.buildHarmony(t,Ht,n,r),[O.TRIADIC]:qt.buildHarmony(t,Ut,n,r),[O.TETRADIC]:qt.buildHarmony(t,Wt,n,r),[O.SQUARE]:qt.buildHarmony(t,Gt,n,r)})[e],$=Object.fromEntries(Object.entries(Jt).map((e=>{let[t,n]=e;return[t,n.bind(Jt)]}))),Qt=class e{constructor(e,t={}){this._options=q(t,e),this.rgb=K(e),this.update(`rgb`)}update(...e){e.includes(`rgb`)||this.updateRGB(),e.includes(`hsl`)||this.updateHSL(),e.includes(`hwb`)||this.updateHWB(),e.includes(`lab`)||this.updateLAB(),e.includes(`lch`)||this.updateLCH(),e.includes(`cmyk`)||this.updateCMYK()}updateRGB(){this.rgb={...U(this.hsl.H,this.hsl.S,this.hsl.L),A:this.hsl.A}}updateHSL(){this.hsl=lt(this.rgb.R,this.rgb.G,this.rgb.B,this.rgb.A)}updateHWB(){this.hwb=gt(this.rgb.R,this.rgb.G,this.rgb.B,this.rgb.A)}updateLAB(){this.lab={...ut(this.rgb.R,this.rgb.G,this.rgb.B),A:this.rgb.A}}updateLCH(){this.lch={...mt(this.rgb.R,this.rgb.G,this.rgb.B),A:this.rgb.A}}updateCMYK(){this.cmyk=yt(this.rgb.R,this.rgb.G,this.rgb.B)}updateRGBFromHWB(){this.rgb={..._t(this.hwb.H,this.hwb.W,this.hwb.B),A:this.rgb.A}}updateRGBFromLCH(){this.rgb={...ht(this.lch.L,this.lch.C,this.lch.H),A:this.rgb.A}}updateRGBFromCMYK(){this.rgb={...vt(this.cmyk.C,this.cmyk.M,this.cmyk.Y,this.cmyk.K),A:this.rgb.A}}updateRGBFromLAB(){this.rgb={...dt(this.lab.L,this.lab.a,this.lab.b),A:this.rgb.A}}updateLCHFromLAB(){this.lch={...ft(this.lab.L,this.lab.a,this.lab.b),A:this.lab.A}}updateLABromLCH(){this.lab={...pt(this.lch.L,this.lch.C,this.lch.H),A:this.lch.A}}setOptions(e={}){return this._options={...this._options,...e},this}setR(e){this.rgb.R=B(e,0,C),this.update(`rgb`)}setG(e){return this.rgb.G=B(e,0,C),this.update(`rgb`),this}setB(e){return this.rgb.B=B(e,0,C),this.update(`rgb`),this}setH(e){return this.hsl.H=V(e),this.update(`hsl`),this}setS(e){return this.hsl.S=B(e,0,w),this.update(`hsl`),this}setL(e){return this.hsl.L=B(e,0,w),this.update(`hsl`),this}setWhiteness(e){return this.hwb.W=B(e,0,w),this.updateRGBFromHWB(),this.update(`rgb`,`hwb`),this}setBlackness(e){return this.hwb.B=B(e,0,w),this.updateRGBFromHWB(),this.update(`rgb`,`hwb`),this}setCIEL(e){return this.lab.L=B(e,0,w),this.updateRGBFromLAB(),this.updateLCHFromLAB(),this.update(`rgb`,`lab`,`lch`),this}setCIEa(e){return this.lab.a=B(e,-125,T),this.updateRGBFromLAB(),this.updateLCHFromLAB(),this.update(`rgb`,`lab`,`lch`),this}setCIEb(e){return this.lab.b=B(e,-125,T),this.updateRGBFromLAB(),this.updateLCHFromLAB(),this.update(`rgb`,`lab`,`lch`),this}setLCHL(e){return this.lch.L=B(e,0,w),this.updateRGBFromLCH(),this.updateLABromLCH(),this.update(`rgb`,`lab`,`lch`),this}setLCHC(e){return this.lch.C=B(e,0,E),this.updateRGBFromLCH(),this.updateLABromLCH(),this.update(`rgb`,`lab`,`lch`),this}setLCHH(e){return this.lch.H=V(e),this.updateRGBFromLCH(),this.updateLABromLCH(),this.update(`rgb`,`lab`,`lch`),this}setA(e){let t=B(e,0,1);return this.rgb.A=t,this.hsl.A=t,this.hwb.A=t,this.lab.A=t,this.lch.A=t,this.cmyk.A=t,this}setC(e){return this.cmyk.C=B(e,0,100),this.updateRGBFromCMYK(),this.update(`cmyk`),this}setM(e){return this.cmyk.M=B(e,0,100),this.updateRGBFromCMYK(),this.update(`cmyk`),this}setY(e){return this.cmyk.Y=B(e,0,100),this.updateRGBFromCMYK(),this.update(`cmyk`),this}setK(e){return this.cmyk.K=B(e,0,100),this.updateRGBFromCMYK(),this.update(`cmyk`),this}get options(){return this._options}get R(){return z(this.rgb.R,this.options.decimals)}get G(){return z(this.rgb.G,this.options.decimals)}get B(){return z(this.rgb.B,this.options.decimals)}get H(){return z(this.hsl.H,this.options.decimals)}get S(){return z(this.hsl.S,this.options.decimals)}get L(){return z(this.hsl.L,this.options.decimals)}get Whiteness(){return z(this.hwb.W,this.options.decimals)}get Blackness(){return z(this.hwb.B,this.options.decimals)}get CIEL(){return z(this.lab.L,this.options.decimals)}get CIEa(){return z(this.lab.a,this.options.decimals)}get CIEb(){return z(this.lab.b,this.options.decimals)}get LCHL(){return z(this.lch.L,this.options.decimals)}get LCHC(){return z(this.lch.C,this.options.decimals)}get LCHH(){return z(this.lch.H,this.options.decimals)}get A(){return z(this.hsl.A,this.options.decimals)}get C(){return z(this.cmyk.C,this.options.decimals)}get M(){return z(this.cmyk.M,this.options.decimals)}get Y(){return z(this.cmyk.Y,this.options.decimals)}get K(){return z(this.cmyk.K,this.options.decimals)}get HEXObject(){return Y.HEX(this.rgb)}get HEXAObject(){return Y.HEXA(this.rgb)}get RGBObject(){return{R:this.R,G:this.G,B:this.B}}get RGBAObject(){return{...this.RGBObject,A:this.A}}get HSLObject(){return{H:this.H,S:this.S,L:this.L}}get HSLAObject(){return{...this.HSLObject,A:this.A}}get HWBObject(){return{H:this.H,W:this.Whiteness,B:this.Blackness}}get HWBAObject(){return{...this.HWBObject,A:this.A}}get CIELabObject(){return{L:this.CIEL,a:this.CIEa,b:this.CIEb}}get CIELabAObject(){return{...this.CIELabObject,A:this.A}}get LCHObject(){return{L:this.LCHL,C:this.LCHC,H:this.LCHH}}get LCHAObject(){return{...this.LCHObject,A:this.A}}get CMYKObject(){return{C:this.C,M:this.M,Y:this.Y,K:this.K}}get CMYKAObject(){return{...this.CMYKObject,A:this.A}}get HEX(){return J.HEX({R:this.R,G:this.G,B:this.B})}get HEXA(){return J.HEX({R:this.R,G:this.G,B:this.B,A:this.A*C})}get RGB(){return J.RGB({R:this.R,G:this.G,B:this.B},this.options)}get RGBA(){return J.RGB({R:this.R,G:this.G,B:this.B,A:this.A},this.options)}get HSL(){return J.HSL({H:this.H,S:this.S,L:this.L},this.options)}get HSLA(){return J.HSL({H:this.H,S:this.S,L:this.L,A:this.A},this.options)}get HWB(){return J.HWB({H:this.H,W:this.Whiteness,B:this.Blackness},this.options)}get HWBA(){return J.HWB({H:this.H,W:this.Whiteness,B:this.Blackness,A:this.A},this.options)}get CIELab(){return J.CIELab({L:this.CIEL,a:this.CIEa,b:this.CIEb},this.options)}get CIELabA(){return J.CIELab({L:this.CIEL,a:this.CIEa,b:this.CIEb,A:this.A},this.options)}get LCH(){return J.LCH({L:this.LCHL,C:this.LCHC,H:this.LCHH},this.options)}get LCHA(){return J.LCH({L:this.LCHL,C:this.LCHC,H:this.LCHH,A:this.A},this.options)}get CMYK(){return J.CMYK({C:this.C,M:this.M,Y:this.Y,K:this.K},this.options)}get CMYKA(){return J.CMYK({C:this.C,M:this.M,Y:this.Y,K:this.K,A:this.A},this.options)}static toHEXObject(e){return X(e,G(e),0,Y.HEX)}static toHEX(t){return J.HEX(e.toHEXObject(t))}static toHEXAObject(e){return X(e,G(e),0,Y.HEXA)}static toHEXA(t){return J.HEX(e.toHEXAObject(t))}static toRGBObject(e,t={}){return X(e,G(e),t.decimals,Y.RGB)}static toRGB(t,n={}){let r=e.toRGBObject(t,n),i=q(n,t);return J.RGB(r,i)}static toRGBAObject(e,t={}){return X(e,G(e),t.decimals,Y.RGBA)}static toRGBA(t,n={}){let r=e.toRGBAObject(t,n),i=q(n,t);return J.RGB(r,i)}static toHSLObject(e,t={}){return X(e,G(e),t.decimals,Y.HSL)}static toHSL(t,n={}){let r=e.toHSLObject(t,n),i=q(n,t);return J.HSL(r,i)}static toHSLAObject(e,t={}){return X(e,G(e),t.decimals,Y.HSLA)}static toHSLA(t,n={}){let r=e.toHSLAObject(t,n),i=q(n,t);return J.HSL(r,i)}static toHWBObject(e,t={}){return X(e,G(e),t.decimals,Y.HWB)}static toHWB(t,n={}){let r=e.toHWBObject(t,n),i=q(n,t);return J.HWB(r,i)}static toHWBAObject(e,t={}){return X(e,G(e),t.decimals,Y.HWBA)}static toHWBA(t,n={}){let r=e.toHWBAObject(t,n),i=q(n,t);return J.HWB(r,i)}static toCIELabObject(e,t={}){return X(e,G(e),t.decimals,Y.CIELab)}static toCIELab(t,n={}){let r=e.toCIELabObject(t,n),i=q(n,t);return J.CIELab(r,i)}static toCIELabAObject(e,t={}){return X(e,G(e),t.decimals,Y.CIELabA)}static toCIELabA(t,n={}){let r=e.toCIELabAObject(t,n),i=q(n,t);return J.CIELab(r,i)}static toLCHObject(e,t={}){return X(e,G(e),t.decimals,Y.LCH)}static toLCH(t,n={}){let r=e.toLCHObject(t,n),i=q(n,t);return J.LCH(r,i)}static toLCHAObject(e,t={}){return X(e,G(e),t.decimals,Y.LCHA)}static toLCHA(t,n={}){let r=e.toLCHAObject(t,n),i=q(n,t);return J.LCH(r,i)}static toCMYKObject(e,t={}){return X(e,G(e),t.decimals,Y.CMYK)}static toCMYK(t,n={}){let r=e.toCMYKObject(t,n),i=q(n,t);return J.CMYK(r,i)}static toCMYKAObject(e,t={}){return X(e,G(e),t.decimals,Y.CMYKA)}static toCMYKA(t,n={}){let r=e.toCMYKAObject(t,n),i=q(n,t);return J.CMYK(r,i)}static getBlendHEXObject(e,t,n=5){return Xt(e,t,n,0,Y.HEX)}static getBlendHEX(t,n,r=5){return e.getBlendHEXObject(t,n,r).map((e=>J.HEX(e)))}static getBlendHEXAObject(e,t,n=5){return Xt(e,t,n,0,Y.HEXA)}static getBlendHEXA(t,n,r=5){return e.getBlendHEXAObject(t,n,r).map((e=>J.HEX(e)))}static getBlendRGBObject(e,t,n,r){return Z({from:e,to:t,thirdParameter:n,fourthParameter:r,translateFunction:Y.RGB})}static getBlendRGB(e,t,n,r){return Z({from:e,to:t,thirdParameter:n,fourthParameter:r,translateFunction:Y.RGB,cssFunction:J.RGB})}static getBlendRGBAObject(e,t,n,r){return Z({from:e,to:t,thirdParameter:n,fourthParameter:r,translateFunction:Y.RGBA})}static getBlendRGBA(e,t,n,r){return Z({from:e,to:t,thirdParameter:n,fourthParameter:r,translateFunction:Y.RGBA,cssFunction:J.RGB})}static getBlendHSLObject(e,t,n,r){return Z({from:e,to:t,thirdParameter:n,fourthParameter:r,translateFunction:Y.HSL})}static getBlendHSL(e,t,n,r){return Z({from:e,to:t,thirdParameter:n,fourthParameter:r,translateFunction:Y.HSL,cssFunction:J.HSL})}static getBlendHSLAObject(e,t,n,r){return Z({from:e,to:t,thirdParameter:n,fourthParameter:r,translateFunction:Y.HSLA})}static getBlendHSLA(e,t,n,r){return Z({from:e,to:t,thirdParameter:n,fourthParameter:r,translateFunction:Y.HSLA,cssFunction:J.HSL})}static getBlendHWBObject(e,t,n,r){return Z({from:e,to:t,thirdParameter:n,fourthParameter:r,translateFunction:Y.HWB})}static getBlendHWB(e,t,n,r){return Z({from:e,to:t,thirdParameter:n,fourthParameter:r,translateFunction:Y.HWB,cssFunction:J.HWB})}static getBlendHWBAObject(e,t,n,r){return Z({from:e,to:t,thirdParameter:n,fourthParameter:r,translateFunction:Y.HWBA})}static getBlendHWBA(e,t,n,r){return Z({from:e,to:t,thirdParameter:n,fourthParameter:r,translateFunction:Y.HWBA,cssFunction:J.HWB})}static getBlendCIELabObject(e,t,n,r){return Z({from:e,to:t,thirdParameter:n,fourthParameter:r,translateFunction:Y.CIELab})}static getBlendCIELab(e,t,n,r){return Z({from:e,to:t,thirdParameter:n,fourthParameter:r,translateFunction:Y.CIELab,cssFunction:J.CIELab})}static getBlendCIELabAObject(e,t,n,r){return Z({from:e,to:t,thirdParameter:n,fourthParameter:r,translateFunction:Y.CIELabA})}static getBlendCIELabA(e,t,n,r){return Z({from:e,to:t,thirdParameter:n,fourthParameter:r,translateFunction:Y.CIELabA,cssFunction:J.CIELab})}static getBlendLCHObject(e,t,n,r){return Z({from:e,to:t,thirdParameter:n,fourthParameter:r,translateFunction:Y.LCH})}static getBlendLCH(e,t,n,r){return Z({from:e,to:t,thirdParameter:n,fourthParameter:r,translateFunction:Y.LCH,cssFunction:J.LCH})}static getBlendLCHAObject(e,t,n,r){return Z({from:e,to:t,thirdParameter:n,fourthParameter:r,translateFunction:Y.LCHA})}static getBlendLCHA(e,t,n,r){return Z({from:e,to:t,thirdParameter:n,fourthParameter:r,translateFunction:Y.LCHA,cssFunction:J.LCH})}static getMixHEXObject(e,t=k.ADDITIVE){return Jt.HEX(e,t,!1)}static getMixHEX(e,t=k.ADDITIVE){return Jt.HEX(e,t,!0)}static getMixHEXAObject(e,t=k.ADDITIVE){return Jt.HEXA(e,t,!1)}static getMixHEXA(e,t=k.ADDITIVE){return Jt.HEXA(e,t,!0)}static getMixRGBObject(e,t,n){return Q({colors:e,secondParameter:t,thirdParameter:n,colorMixerFunction:$.RGB,css:!1})}static getMixRGB(e,t,n){return Q({colors:e,secondParameter:t,thirdParameter:n,colorMixerFunction:$.RGB,css:!0})}static getMixRGBAObject(e,t,n){return Q({colors:e,secondParameter:t,thirdParameter:n,colorMixerFunction:$.RGBA,css:!1})}static getMixRGBA(e,t,n){return Q({colors:e,secondParameter:t,thirdParameter:n,colorMixerFunction:$.RGBA,css:!0})}static getMixHSLObject(e,t,n){return Q({colors:e,secondParameter:t,thirdParameter:n,colorMixerFunction:$.HSL,css:!1})}static getMixHSL(e,t,n){return Q({colors:e,secondParameter:t,thirdParameter:n,colorMixerFunction:$.HSL,css:!0})}static getMixHSLAObject(e,t,n){return Q({colors:e,secondParameter:t,thirdParameter:n,colorMixerFunction:$.HSLA,css:!1})}static getMixHSLA(e,t,n){return Q({colors:e,secondParameter:t,thirdParameter:n,colorMixerFunction:$.HSLA,css:!0})}static getMixHWBObject(e,t,n){return Q({colors:e,secondParameter:t,thirdParameter:n,colorMixerFunction:$.HWB,css:!1})}static getMixHWB(e,t,n){return Q({colors:e,secondParameter:t,thirdParameter:n,colorMixerFunction:$.HWB,css:!0})}static getMixHWBAObject(e,t,n){return Q({colors:e,secondParameter:t,thirdParameter:n,colorMixerFunction:$.HWBA,css:!1})}static getMixHWBA(e,t,n){return Q({colors:e,secondParameter:t,thirdParameter:n,colorMixerFunction:$.HWBA,css:!0})}static getMixCIELabObject(e,t,n){return Q({colors:e,secondParameter:t,thirdParameter:n,colorMixerFunction:$.CIELab,css:!1})}static getMixCIELab(e,t,n){return Q({colors:e,secondParameter:t,thirdParameter:n,colorMixerFunction:$.CIELab,css:!0})}static getMixCIELabAObject(e,t,n){return Q({colors:e,secondParameter:t,thirdParameter:n,colorMixerFunction:$.CIELabA,css:!1})}static getMixCIELabA(e,t,n){return Q({colors:e,secondParameter:t,thirdParameter:n,colorMixerFunction:$.CIELabA,css:!0})}static getMixLCHObject(e,t,n){return Q({colors:e,secondParameter:t,thirdParameter:n,colorMixerFunction:$.LCH,css:!1})}static getMixLCH(e,t,n){return Q({colors:e,secondParameter:t,thirdParameter:n,colorMixerFunction:$.LCH,css:!0})}static getMixLCHAObject(e,t,n){return Q({colors:e,secondParameter:t,thirdParameter:n,colorMixerFunction:$.LCHA,css:!1})}static getMixLCHA(e,t,n){return Q({colors:e,secondParameter:t,thirdParameter:n,colorMixerFunction:$.LCHA,css:!0})}static getShades(e,t,n){return typeof t==`number`?Kt(e,t,!0,q(n||{},e)):Kt(e,5,!0,q(t||{},e))}static getTints(e,t,n){return typeof t==`number`?Kt(e,t,!1,q(n||{},e)):Kt(e,5,!1,q(t||{},e))}static getHarmony(e,t,n,r){return`${t}`in O?Zt(t,e,tt(n)?n:k.ADDITIVE,q(tt(n)?r||{}:n||{},e)):tt(t)?Zt(O.COMPLEMENTARY,e,t,q(n||{},e)):Zt(O.COMPLEMENTARY,e,k.ADDITIVE,q(t||{},e))}},$t={slots:{root:`data-[disabled]:opacity-75`,picker:`flex gap-4`,selector:`rounded-md touch-none`,selectorBackground:`w-full h-full relative rounded-md`,selectorThumb:`-translate-y-1/2 -translate-x-1/2 absolute size-4 ring-2 ring-white rounded-full cursor-pointer data-[disabled]:cursor-not-allowed`,track:`w-[8px] relative rounded-md touch-none`,trackThumb:`absolute transform -translate-y-1/2 -translate-x-[4px] rtl:translate-x-[4px] size-4 rounded-full ring-2 ring-white cursor-pointer data-[disabled]:cursor-not-allowed`},variants:{size:{xs:{selector:`w-38 h-38`,track:`h-38`},sm:{selector:`w-40 h-40`,track:`h-40`},md:{selector:`w-42 h-42`,track:`h-42`},lg:{selector:`w-44 h-44`,track:`h-44`},xl:{selector:`w-46 h-46`,track:`h-46`}}},compoundVariants:[],defaultVariants:{size:`md`}},en=[`data-disabled`],tn=[`data-disabled`];function nn(e){let t=e.S*(e.L<50?e.L:100-e.L),n=e.L+t/100;return{h:e.H,s:e.L===0?e.S:2*t/n,v:n}}function rn(e){let t=(200-e.s)*e.v/100;return{H:e.h,S:t===0||t===200?0:Math.round(e.s*e.v/(t<=100?t:200-t)),L:t/2}}var an=Ce({__name:`UColorPicker`,props:g({as:{type:null,required:!1},throttle:{type:Number,required:!1,default:50},disabled:{type:Boolean,required:!1},defaultValue:{type:String,required:!1,default:`#FFFFFF`},format:{type:String,required:!1,default:`hex`},size:{type:null,required:!1},class:{type:null,required:!1},ui:{type:Object,required:!1}},{modelValue:{type:String},modelModifiers:{}}),emits:[`update:modelValue`],setup(t){let n=b(`colorPicker`,t),r=f(t,`modelValue`,{type:String}),a=S(),u=o(()=>oe({extend:$t,...a.ui?.colorPicker||{}})({size:n.size})),p=o({get(){try{return nn(new Qt(r.value||n.defaultValue).HSLObject)}catch{return{h:0,s:0,v:100}}},set(e){let t=new Qt(rn(e),{labUnit:`percent`,cmykUnit:`percent`,cmykFunction:`cmyk`});switch(n.format){case`rgb`:r.value=t.RGB;break;case`hsl`:r.value=t.HSL;break;case`cmyk`:r.value=t.CMYK;break;case`lab`:r.value=t.CIELab;break;default:r.value=t.HEX}}});function ee(e,t,n=`both`,r={x:0,y:0},a){let o=l(r),s=l(),c=he(e),u=he(t);function d(e){if(i(a))return e.preventDefault();let n=i(t);s.value={x:e.clientX-(n?e.clientX-u.left.value+n.scrollLeft:c.left.value),y:e.clientY-(n?e.clientY-u.top.value+n.scrollTop:c.top.value)},f(e)}function f(e){if(!s.value)return;let r=i(t),{x:a,y:c}=o.value;r&&(n===`x`||n===`both`)&&(a=Math.min(Math.max(0,(e.clientX-s.value.x)/r.scrollWidth*100),100)),r&&(n===`y`||n===`both`)&&(c=Math.min(Math.max(0,(e.clientY-s.value.y)/r.scrollHeight*100),100)),o.value={x:a,y:c}}function p(){s.value&&=void 0}return y&&(me(t,`pointerdown`,d),me(window,`pointermove`,f),me(window,`pointerup`,p)),{position:o}}function g(e,t=`left`){return t===`right`?e*100/360:e/100*360}function te(e){return 100-e}let ie=l(null),ae=l(null),se=l(null),ce=l(null),le=o(()=>n.disabled),{position:ue}=ee(ae,ie,`both`,{x:p.value.s,y:te(p.value.v)},le),{position:de}=ee(ce,se,`y`,{x:0,y:g(p.value.h,`right`)},le),{pause:fe,resume:pe}=re(p,e=>{ue.value={x:e.s,y:te(e.v)},de.value={x:0,y:g(e.h,`right`)}});x([ue,de],()=>{fe(),p.value={h:g(de.value.y),s:ue.value.x,v:te(ue.value.y)},m(pe)},{throttle:()=>n.throttle});let ge=o(()=>new Qt(rn({h:g(de.value.y),s:100,v:100})).HEX),_e=o(()=>({backgroundColor:ge.value})),ve=o(()=>({backgroundColor:new Qt(r.value||n.defaultValue).HEX,left:`${ue.value.x}%`,top:`${ue.value.y}%`})),ye=o(()=>({backgroundColor:ge.value,top:`${de.value.y}%`}));return(t,r)=>(e(),c(d(ne),{as:d(n).as,"data-slot":`root`,class:v(u.value.root({class:[d(n).ui?.root,d(n).class]})),"data-disabled":le.value?!0:void 0},{default:_(()=>[s(`div`,{"data-slot":`picker`,class:v(u.value.picker({class:d(n).ui?.picker}))},[s(`div`,{ref_key:`selectorRef`,ref:ie,"data-slot":`selector`,class:v(u.value.selector({class:d(n).ui?.selector})),style:h(_e.value)},[s(`div`,{"data-slot":`selectorBackground`,class:v(u.value.selectorBackground({class:d(n).ui?.selectorBackground})),"data-color-picker-background":``},[s(`div`,{ref_key:`selectorThumbRef`,ref:ae,"data-slot":`selectorThumb`,class:v(u.value.selectorThumb({class:d(n).ui?.selectorThumb})),style:h(ve.value),"data-disabled":le.value?!0:void 0},null,14,en)],2)],6),s(`div`,{ref_key:`trackRef`,ref:se,"data-slot":`track`,class:v(u.value.track({class:d(n).ui?.track})),"data-color-picker-track":``},[s(`div`,{ref_key:`trackThumbRef`,ref:ce,"data-slot":`trackThumb`,class:v(u.value.trackThumb({class:d(n).ui?.trackThumb})),style:h(ye.value),"data-disabled":le.value?!0:void 0},null,14,tn)],2)],2)]),_:1},8,[`as`,`class`,`data-disabled`]))}},[[`__scopeId`,`data-v-33dd0d17`]]);function on(e){return new URL(globalThis.location.href)}var sn={class:`grid min-h-0 flex-1 xl:grid-cols-[23rem_minmax(0,1fr)]`},cn={class:`flex min-h-0 flex-col border-r border-default`},ln={class:`border-b border-default px-5 py-3`},un={key:0,class:`space-y-7 p-5`},dn={class:`mt-4 grid grid-cols-[7rem_minmax(0,1fr)] items-start gap-4`},fn={key:1,class:`space-y-5 p-5`},pn={class:`mt-2 flex items-start gap-2`},mn={class:`min-w-0 flex-1 break-all bg-elevated px-3 py-2 text-[11px] text-muted`},hn={class:`mt-2 flex items-start gap-2`},gn={class:`min-w-0 flex-1 break-all bg-elevated px-3 py-2 text-[11px] text-muted`},_n={class:`relative min-h-[560px]`},vn={key:1,class:`grid h-full min-h-[560px] place-items-center px-6 text-center`},yn=r({__name:`services`,async setup(r){let i,f;be({layout:`dashboard`}),se({title:`地图服务管理`});let m=Ee(),h=Se(),g=on(),{baseLayer:v,overlayLayers:ne}=we(),{data:y,refresh:re}=([i,f]=ee(()=>ce(`/api/map-service/status`,`$q9uYHAZagQ`)),i=await i,f(),i),b=l(),x=l(y.value?.color||`#2980b9`),oe=l(y.value?.opacity??88),S=l(!1),me=l(!1),he=l(Date.now()),Ce=l(`settings`),C=[{label:`参数设置`,value:`settings`,icon:`i-lucide-sliders-horizontal`},{label:`服务信息`,value:`info`,icon:`i-lucide-radio-tower`}];te(async()=>{await m.refresh(),w()});function w(){let e=y.value?.file?.filename;b.value=e&&m.files.value.some(t=>t.filename===e&&t.summary?.state===`completed`)?e:void 0}let T=o(()=>`${g.origin}/services/wms?SERVICE=WMS&REQUEST=GetCapabilities`),E=o(()=>`${g.origin}/services/wmts?SERVICE=WMTS&REQUEST=GetCapabilities`),D=o(()=>`/services/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=uomtiles&STYLE=default&TILEMATRIXSET=WebMercatorQuad&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&FORMAT=image/png`);async function O(e){if(!/\.(uomtiles|mbtiles|pmtiles)$/i.test(e.name)){h.add({title:`不支持的地图文件`,description:`请选择 .uomtiles、.mbtiles 或 .pmtiles。`,color:`error`});return}S.value=!0;try{await ie(`/api/map-service/file`,{method:`POST`,headers:{"x-map-service-filename":encodeURIComponent(e.name),"content-type":`application/octet-stream`},body:e}),await re(),b.value=void 0,he.value=Date.now()}catch(e){h.add({title:`无法打开地图文件`,description:e?.data?.message||e?.message,color:`error`})}finally{S.value=!1}}async function k(e){if(!(e&&!y.value?.file)){me.value=!0;try{let t=y.value?.enabled;await ie(`/api/map-service/config`,{method:`POST`,body:{enabled:e,color:x.value,opacity:oe.value}}),await re(),he.value=Date.now(),h.add({title:e?t?`地图服务设置已应用`:`地图服务已启用`:`地图服务已停用`,color:e?`success`:`neutral`,icon:e?`i-lucide-radio-tower`:`i-lucide-circle-stop`})}catch(e){h.add({title:`地图服务配置失败`,description:e?.data?.message||e?.message,color:`error`})}finally{me.value=!1}}}async function Ae(){if(b.value){S.value=!0;try{await ie(`/api/map-service/source`,{method:`POST`,body:{filename:b.value}}),await re(),w(),he.value=Date.now(),h.add({title:`服务文件已替换`,color:`success`,icon:`i-lucide-file-check-2`})}catch(e){h.add({title:`无法选择服务文件`,description:e?.data?.message||e?.message,color:`error`})}finally{S.value=!1}}}async function je(e,t){await navigator.clipboard.writeText(e),h.add({title:`${t} 地址已复制`,color:`success`,icon:`i-lucide-copy-check`})}return(r,i)=>{let o=fe,l=ae,f=de,ee=ge,h=_e,g=le,te=an,re=Te,ie=Oe,se=ye,ce=ue,be=xe,Se=ve,we=De,Ee=ke,w=pe;return e(),c(w,{id:`map-services`,class:`min-w-0`,ui:{body:`gap-0 overflow-hidden p-0 sm:gap-0 sm:p-0`}},{header:_(()=>[u(f,{title:`地图服务管理`},{right:_(()=>[u(o),u(l,{icon:d(y)?.enabled?`i-lucide-circle-stop`:`i-lucide-radio-tower`,label:d(y)?.enabled?`停用服务`:`启用服务`,color:d(y)?.enabled?`error`:`primary`,variant:d(y)?.enabled?`soft`:`solid`,disabled:!d(y)?.enabled&&!d(y)?.file,loading:d(me),onClick:i[0]||=e=>k(!d(y)?.enabled)},null,8,[`icon`,`label`,`color`,`variant`,`disabled`,`loading`])]),_:1})]),body:_(()=>[s(`div`,sn,[s(`aside`,cn,[s(`div`,ln,[u(ee,{modelValue:d(Ce),"onUpdate:modelValue":i[1]||=e=>t(Ce)?Ce.value=e:null,items:C,content:!1,size:`sm`,class:`w-full`},null,8,[`modelValue`])]),u(Se,{class:`min-h-0 flex-1`},{default:_(()=>[d(Ce)===`settings`?(e(),a(`div`,un,[s(`section`,null,[i[9]||=s(`h2`,{class:`text-sm font-semibold text-highlighted`},`服务文件`,-1),u(h,{class:`mt-3`,accept:`.uomtiles,.mbtiles,.pmtiles`,title:`上传并替换服务文件`,"file-name":d(y)?.file?d(m).displayWorkspaceName(d(y).file.filename):void 0,pending:d(S),onSelect:O},null,8,[`file-name`,`pending`]),u(g,{modelValue:d(b),"onUpdate:modelValue":i[2]||=e=>t(b)?b.value=e:null,class:`mt-3 w-full`},null,8,[`modelValue`]),u(l,{class:`mt-2`,icon:`i-lucide-copy`,label:`使用此任务文件`,color:`neutral`,variant:`outline`,block:``,disabled:!d(b)||d(S),loading:d(S),onClick:Ae},null,8,[`disabled`,`loading`])]),s(`section`,null,[i[10]||=s(`h2`,{class:`text-sm font-semibold text-highlighted`},`输出样式`,-1),s(`div`,dn,[u(te,{modelValue:d(x),"onUpdate:modelValue":i[3]||=e=>t(x)?x.value=e:null,size:`sm`},null,8,[`modelValue`]),u(ie,{label:`区域颜色`},{default:_(()=>[u(re,{modelValue:d(x),"onUpdate:modelValue":i[4]||=e=>t(x)?x.value=e:null,class:`w-full`},null,8,[`modelValue`])]),_:1})]),u(ie,{class:`mt-5`,label:`透明度 ${d(oe)}%`},{default:_(()=>[u(se,{modelValue:d(oe),"onUpdate:modelValue":i[5]||=e=>t(oe)?oe.value=e:null,min:0,max:100,step:1},null,8,[`modelValue`])]),_:1},8,[`label`]),d(y)?.enabled?(e(),c(l,{key:0,class:`mt-5`,icon:`i-lucide-check`,label:`应用设置`,block:``,loading:d(me),onClick:i[6]||=e=>k(!0)},null,8,[`loading`])):n(``,!0)])])):(e(),a(`div`,fn,[d(y)?.enabled?n(``,!0):(e(),c(ce,{key:0,color:`neutral`,icon:`i-lucide-info`,title:`服务尚未启用`})),s(`section`,null,[i[11]||=s(`h2`,{class:`text-sm font-semibold text-highlighted`},`WMS 1.3.0`,-1),s(`div`,pn,[s(`code`,mn,p(d(T)),1),u(be,{text:`复制 WMS 地址`},{default:_(()=>[u(l,{icon:`i-lucide-copy`,color:`neutral`,variant:`ghost`,size:`sm`,"aria-label":`复制 WMS 地址`,onClick:i[7]||=e=>je(d(T),`WMS`)})]),_:1})])]),s(`section`,null,[i[12]||=s(`h2`,{class:`text-sm font-semibold text-highlighted`},`WMTS 1.0.0`,-1),s(`div`,hn,[s(`code`,gn,p(d(E)),1),u(be,{text:`复制 WMTS 地址`},{default:_(()=>[u(l,{icon:`i-lucide-copy`,color:`neutral`,variant:`ghost`,size:`sm`,"aria-label":`复制 WMTS 地址`,onClick:i[8]||=e=>je(d(E),`WMTS`)})]),_:1})])])]))]),_:1})]),s(`div`,_n,[d(y)?.enabled?(e(),c(we,{key:d(he),"tile-url":d(D),"base-map":d(v),"overlay-layers":d(ne),"min-zoom":0,"max-zoom":18,"map-min-zoom":3,"map-max-zoom":18,"initial-zoom":9,center:[116.4,39.9],"raster-opacity":1,"refresh-version":d(he)},null,8,[`tile-url`,`base-map`,`overlay-layers`,`refresh-version`])):(e(),a(`div`,vn,[u(Ee,{icon:`i-lucide-radio-tower`,title:`地图服务尚未启用`})]))])])]),_:1})}}});export{yn as default};