cognova 0.2.8 → 0.2.10

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 (199) hide show
  1. package/.output/nitro.json +1 -1
  2. package/.output/public/_nuxt/{CH_jROT9.js → 0NJ3PaRM.js} +1 -1
  3. package/.output/public/_nuxt/{C075hYlX.js → 0yk-pS3R.js} +2 -2
  4. package/.output/public/_nuxt/{CVYcsqmL.js → 10_wwHSz.js} +1 -1
  5. package/.output/public/_nuxt/{BUC36BHp.js → 1zUTf4AP.js} +1 -1
  6. package/.output/public/_nuxt/{njnzCNrH.js → 2dNDtTiv.js} +3 -3
  7. package/.output/public/_nuxt/{B8TQvzYX.js → 2nOqGUPr.js} +1 -1
  8. package/.output/public/_nuxt/{ijmD2cEW.js → 3jQMk_5H.js} +1 -1
  9. package/.output/public/_nuxt/{D4X6ONPF.js → 4K03TkGA.js} +1 -1
  10. package/.output/public/_nuxt/{C3tximD1.js → 6boMs_nF.js} +1 -1
  11. package/.output/public/_nuxt/{Drxf7nJz.js → 7oCGSglN.js} +1 -1
  12. package/.output/public/_nuxt/{Dt5mOzXj.js → 8q5NepGW.js} +1 -1
  13. package/.output/public/_nuxt/{GYf-vnR6.js → B93pdGAW.js} +1 -1
  14. package/.output/public/_nuxt/{BZBNJD7U.js → BA_pRWwX.js} +1 -1
  15. package/.output/public/_nuxt/{eE8TtXgC.js → BDyn4ApB.js} +3 -3
  16. package/.output/public/_nuxt/{0dqQoCHY.js → BGgwYWjH.js} +1 -1
  17. package/.output/public/_nuxt/{BrOKokPO.js → BH0QDWEm.js} +1 -1
  18. package/.output/public/_nuxt/{B5SnZL2l.js → BHtY0l0l.js} +1 -1
  19. package/.output/public/_nuxt/{ImPsUDiH.js → BIXrSYwR.js} +1 -1
  20. package/.output/public/_nuxt/BK8S2ony.js +1 -0
  21. package/.output/public/_nuxt/{Bkc1Hpcf.js → BKXg-alD.js} +1 -1
  22. package/.output/public/_nuxt/{BahXyh-A.js → BLnYhy_t.js} +1 -1
  23. package/.output/public/_nuxt/{Bhhg7oSf.js → BR8bKz8h.js} +1 -1
  24. package/.output/public/_nuxt/{D2kQkOaG.js → BS2ZNXI1.js} +1 -1
  25. package/.output/public/_nuxt/{BLm0UviR.js → BUghTae1.js} +1 -1
  26. package/.output/public/_nuxt/{D4_89MZm.js → BXuWCWsJ.js} +1 -1
  27. package/.output/public/_nuxt/{LQNRVThr.js → BYHCP8x7.js} +1 -1
  28. package/.output/public/_nuxt/{BYtVdUIW.js → BZrSPX0S.js} +1 -1
  29. package/.output/public/_nuxt/{U3f6dy8i.js → B_wilgcd.js} +1 -1
  30. package/.output/public/_nuxt/BaZwjF8o.js +1 -0
  31. package/.output/public/_nuxt/{BefOhWHD.js → Bciqk4dX.js} +1 -1
  32. package/.output/public/_nuxt/{CewcVxDS.js → Beom-INj.js} +1 -1
  33. package/.output/public/_nuxt/{BlsIfvSf.js → BfcLZ_fC.js} +1 -1
  34. package/.output/public/_nuxt/{dB7G4iIC.js → Bk6JUtIo.js} +1 -1
  35. package/.output/public/_nuxt/BkfI94R8.js +1 -0
  36. package/.output/public/_nuxt/{DqzomZoo.js → BmOtR1wX.js} +1 -1
  37. package/.output/public/_nuxt/{4XnyUc7C.js → BmVLxnDU.js} +1 -1
  38. package/.output/public/_nuxt/{DtJnWtpL.js → BtHQ1T0f.js} +1 -1
  39. package/.output/public/_nuxt/{DcbbfwCe.js → ByYh0uRg.js} +1 -1
  40. package/.output/public/_nuxt/{CbvNJVrk.js → C27WoGNZ.js} +1 -1
  41. package/.output/public/_nuxt/{CY7f553E.js → C2FxZbO_.js} +1 -1
  42. package/.output/public/_nuxt/{zO9MgHj2.js → C2vq6Te8.js} +1 -1
  43. package/.output/public/_nuxt/{BXtZVbmx.js → C39dQ88F.js} +1 -1
  44. package/.output/public/_nuxt/{DmDPSvxi.js → C3NST0BU.js} +1 -1
  45. package/.output/public/_nuxt/{nHSiDk8N.js → C4mwL7SE.js} +1 -1
  46. package/.output/public/_nuxt/{BBDxhFYY.js → C5R5QaCA.js} +1 -1
  47. package/.output/public/_nuxt/{D79lbuWG.js → C6qKcgOY.js} +1 -1
  48. package/.output/public/_nuxt/{C-HCArYP.js → C71_a1IX.js} +1 -1
  49. package/.output/public/_nuxt/{CSjOaBKu.js → C9WIgRRL.js} +1 -1
  50. package/.output/public/_nuxt/{DmOS3vFH.js → CBTkrk2M.js} +1 -1
  51. package/.output/public/_nuxt/CEnSeCqn.js +1 -0
  52. package/.output/public/_nuxt/{CAfyXyeo.js → CKxSHyww.js} +1 -1
  53. package/.output/public/_nuxt/{D4Cizi4y.js → CLfF6dSn.js} +1 -1
  54. package/.output/public/_nuxt/{C7qhmmZh.js → CPutXj8l.js} +1 -1
  55. package/.output/public/_nuxt/{BCCYopTB.js → CQqCBrXj.js} +1 -1
  56. package/.output/public/_nuxt/{D-Ge96eV.js → CSKJ-Ahh.js} +1 -1
  57. package/.output/public/_nuxt/{B2Xfh7am.js → CTCcEJU3.js} +1 -1
  58. package/.output/public/_nuxt/{BnJ-6YDw.js → CVFwOzbl.js} +1 -1
  59. package/.output/public/_nuxt/{C21BjagS.js → CVdCqaby.js} +1 -1
  60. package/.output/public/_nuxt/{2QHXgMyi.js → CVqlefTY.js} +1 -1
  61. package/.output/public/_nuxt/CWyMCJQH.js +1 -0
  62. package/.output/public/_nuxt/{B6-U3KqJ.js → CY-QVcA5.js} +2 -2
  63. package/.output/public/_nuxt/{Cr0NfhPB.js → CY-cjAwJ.js} +1 -1
  64. package/.output/public/_nuxt/{Bwn-CRYH.js → CYPO5o_C.js} +1 -1
  65. package/.output/public/_nuxt/{B-AlyT2D.js → CZRnNmU8.js} +1 -1
  66. package/.output/public/_nuxt/{DwIYtFfA.js → CZVzFlpI.js} +1 -1
  67. package/.output/public/_nuxt/{BkO884Ds.js → CZoEPC_Q.js} +3 -3
  68. package/.output/public/_nuxt/{BJUff9Ku.js → Cc-2ziaZ.js} +1 -1
  69. package/.output/public/_nuxt/{BLwctszt.js → ChcO9s3o.js} +1 -1
  70. package/.output/public/_nuxt/{DX_9SfFb.js → Cl-LOSDV.js} +1 -1
  71. package/.output/public/_nuxt/{CSHcfejh.js → CobqYwkp.js} +1 -1
  72. package/.output/public/_nuxt/{B0xuHXvN.js → CqNwHCpo.js} +1 -1
  73. package/.output/public/_nuxt/{DMb_1D81.js → CuxrHsu-.js} +1 -1
  74. package/.output/public/_nuxt/{GGcn5KPW.js → CwPdIZ9J.js} +1 -1
  75. package/.output/public/_nuxt/{D7pKT3IW.js → D0ifH682.js} +1 -1
  76. package/.output/public/_nuxt/{KEeoKtq_.js → D3AZaldL.js} +1 -1
  77. package/.output/public/_nuxt/{BdxP21ep.js → D4UJwDQJ.js} +1 -1
  78. package/.output/public/_nuxt/{C-Ygk9x5.js → D5jZq8b3.js} +1 -1
  79. package/.output/public/_nuxt/{B6G3NLfW.js → D5q8SnqE.js} +1 -1
  80. package/.output/public/_nuxt/{CDkyQ1eQ.js → D8M722pn.js} +1 -1
  81. package/.output/public/_nuxt/{BjnQ1pI1.js → D8lwrAYS.js} +1 -1
  82. package/.output/public/_nuxt/{C13FKhqK.js → D9nmzBAw.js} +1 -1
  83. package/.output/public/_nuxt/{ClGn48iq.js → DC4idAGt.js} +1 -1
  84. package/.output/public/_nuxt/{vES4kgx7.js → DEd2xVbS.js} +1 -1
  85. package/.output/public/_nuxt/{CClsKJ9A.js → DH4YkDAi.js} +1 -1
  86. package/.output/public/_nuxt/{D-5A6cMB.js → DJTCT0bl.js} +1 -1
  87. package/.output/public/_nuxt/{D_O7SlHm.js → DNP5E1bC.js} +1 -1
  88. package/.output/public/_nuxt/{BF3tVKtX.js → DO9SFIh1.js} +1 -1
  89. package/.output/public/_nuxt/DPklr_tJ.js +2 -0
  90. package/.output/public/_nuxt/{mfAEx0Kz.js → DQM4eBdt.js} +1 -1
  91. package/.output/public/_nuxt/{cPPThz84.js → DQh6I9z9.js} +1 -1
  92. package/.output/public/_nuxt/{CXTrUfQ5.js → DS2wStH1.js} +1 -1
  93. package/.output/public/_nuxt/{CYQP4zpi.js → DTAStixR.js} +1 -1
  94. package/.output/public/_nuxt/{CEz288t8.js → DTGenhcA.js} +1 -1
  95. package/.output/public/_nuxt/{B9zgEO8N.js → DUAAXJ6Q.js} +1 -1
  96. package/.output/public/_nuxt/{CzAZpALW.js → DUVzIl3o.js} +1 -1
  97. package/.output/public/_nuxt/{DJt7Rogf.js → DXdwpJ-I.js} +1 -1
  98. package/.output/public/_nuxt/{MWUW1sIF.js → DY3uK7wM.js} +1 -1
  99. package/.output/public/_nuxt/{CfY_bsV0.js → DYbZBZet.js} +1 -1
  100. package/.output/public/_nuxt/{DZEuR9ms.js → D_4LPm1U.js} +1 -1
  101. package/.output/public/_nuxt/{CrmE-JGu.js → Db4KMnt8.js} +1 -1
  102. package/.output/public/_nuxt/{BwC62XRN.js → DcJbYLTp.js} +1 -1
  103. package/.output/public/_nuxt/{C6sX7TYf.js → DfF81NlA.js} +1 -1
  104. package/.output/public/_nuxt/{BHn8tRjg.js → DhI5cA_n.js} +1 -1
  105. package/.output/public/_nuxt/{CQ3tAemj.js → DhuOKJda.js} +1 -1
  106. package/.output/public/_nuxt/{D887s9k9.js → Di-Nc75e.js} +1 -1
  107. package/.output/public/_nuxt/{D_obX2Hj.js → Djs0Tlpa.js} +1 -1
  108. package/.output/public/_nuxt/DmmdPt_5.js +1 -0
  109. package/.output/public/_nuxt/{DKKY8zWm.js → Dn5a-guE.js} +1 -1
  110. package/.output/public/_nuxt/{BvstjGHC.js → DtjjnHnt.js} +1 -1
  111. package/.output/public/_nuxt/{Dbfwn2zk.js → DuvzM-P1.js} +1 -1
  112. package/.output/public/_nuxt/{BxShcW0K.js → DwY7rCd_.js} +1 -1
  113. package/.output/public/_nuxt/{BmaHzvZM.js → Dya5oK8u.js} +1 -1
  114. package/.output/public/_nuxt/{CO3hceDE.js → DzA58_Lm.js} +1 -1
  115. package/.output/public/_nuxt/{CF33v_m5.js → DzGy77Vr.js} +1 -1
  116. package/.output/public/_nuxt/{DmlZSBjF.js → E3rXPwU8.js} +1 -1
  117. package/.output/public/_nuxt/{CEDw8osP.js → EgKnQnf-.js} +1 -1
  118. package/.output/public/_nuxt/{it8syoZI.js → GtEM7xVU.js} +1 -1
  119. package/.output/public/_nuxt/{DLUvsixu.js → H6JbrRBU.js} +1 -1
  120. package/.output/public/_nuxt/{BE1CVWts.js → ILEvizzp.js} +1 -1
  121. package/.output/public/_nuxt/{BSA-U0so.js → JX1oqJI9.js} +1 -1
  122. package/.output/public/_nuxt/{yJ9vRvHj.js → JbHa4oXq.js} +1 -1
  123. package/.output/public/_nuxt/{zXvvpsZj.js → Kw0zy3FG.js} +1 -1
  124. package/.output/public/_nuxt/{C6FFW_cO.js → N5XtbYVD.js} +1 -1
  125. package/.output/public/_nuxt/{D04CyXmf.js → PP_4ebzl.js} +1 -1
  126. package/.output/public/_nuxt/{6QDVg5TO.js → SrncdpaW.js} +1 -1
  127. package/.output/public/_nuxt/{36ZHqDPo.js → U1MWjQMi.js} +1 -1
  128. package/.output/public/_nuxt/{mT7Mt2d7.js → Um1vPiAz.js} +1 -1
  129. package/.output/public/_nuxt/{CqFcWBkW.js → XCjS70z4.js} +1 -1
  130. package/.output/public/_nuxt/{C24so3m7.js → YX8avsvq.js} +2 -2
  131. package/.output/public/_nuxt/{DaBSQDif.js → _cy8R3nk.js} +1 -1
  132. package/.output/public/_nuxt/{D9aYkNhQ.js → apYB9dr5.js} +1 -1
  133. package/.output/public/_nuxt/builds/latest.json +1 -1
  134. package/.output/public/_nuxt/builds/meta/def74b99-d70c-4f30-aa29-70248cbeac7d.json +1 -0
  135. package/.output/public/_nuxt/entry.NKPfH2kE.css +1 -0
  136. package/.output/public/_nuxt/{BqTdsCnW.js → fbyIeNkc.js} +1 -1
  137. package/.output/public/_nuxt/{-2AbaFNH.js → g5MjDvm5.js} +1 -1
  138. package/.output/public/_nuxt/{C1tCdK-M.js → gTrVszwd.js} +1 -1
  139. package/.output/public/_nuxt/{BVEFmI4I.js → ixlNW2So.js} +1 -1
  140. package/.output/public/_nuxt/{DtyyytRx.js → nnQqD5pb.js} +1 -1
  141. package/.output/public/_nuxt/{pHCJ6lhw.js → rfGRTJJW.js} +1 -1
  142. package/.output/public/_nuxt/{Buf1PAiO.js → t8aDAkZ5.js} +1 -1
  143. package/.output/public/_nuxt/{BmdlymIW.js → vIOxcXKR.js} +1 -1
  144. package/.output/public/_nuxt/{Cve4psva.js → vScW1Zgm.js} +1 -1
  145. package/.output/public/_nuxt/{SfaNtyKS.js → wO6z2ugJ.js} +1 -1
  146. package/.output/public/_nuxt/{BhYoxmLV.js → x6FRJ5ac.js} +1 -1
  147. package/.output/public/_nuxt/{Pn7VD6uQ.js → zq-a1TeT.js} +1 -1
  148. package/.output/server/chunks/build/{chat-CZMiB68R.mjs → chat-CR3JIVEq.mjs} +65 -11
  149. package/.output/server/chunks/build/chat-CR3JIVEq.mjs.map +1 -0
  150. package/.output/server/chunks/build/client.precomputed.mjs +1 -1
  151. package/.output/server/chunks/build/server.mjs +3 -3
  152. package/.output/server/chunks/build/{settings-ByUXa46k.mjs → settings-B2KXoGcz.mjs} +213 -26
  153. package/.output/server/chunks/build/settings-B2KXoGcz.mjs.map +1 -0
  154. package/.output/server/chunks/build/styles.mjs +2 -2
  155. package/.output/server/chunks/build/{usage-CSrBh4Or.mjs → usage-BHdQZbfI.mjs} +9 -5
  156. package/.output/server/chunks/build/{usage-CSrBh4Or.mjs.map → usage-BHdQZbfI.mjs.map} +1 -1
  157. package/.output/server/chunks/nitro/nitro.mjs +1161 -891
  158. package/.output/server/chunks/nitro/nitro.mjs.map +1 -1
  159. package/.output/server/chunks/routes/_ws/chat.mjs +2 -1
  160. package/.output/server/chunks/routes/_ws/chat.mjs.map +1 -1
  161. package/.output/server/chunks/routes/api/conversations/_id_.delete.mjs +4 -1
  162. package/.output/server/chunks/routes/api/conversations/_id_.delete.mjs.map +1 -1
  163. package/.output/server/chunks/routes/api/index.get3.mjs +1 -1
  164. package/.output/server/chunks/routes/api/index.get3.mjs.map +1 -1
  165. package/.output/server/chunks/routes/api/usage/stats.get.mjs +2 -0
  166. package/.output/server/chunks/routes/api/usage/stats.get.mjs.map +1 -1
  167. package/.output/server/package.json +1 -1
  168. package/app/components/chat/ConversationList.vue +7 -1
  169. package/app/components/chat/MessageBubble.vue +45 -1
  170. package/app/components/usage/UsageRecordsTable.vue +4 -2
  171. package/app/components/usage/UsageSourceDonut.client.vue +4 -2
  172. package/app/components/usage/UsageTopConsumers.vue +4 -2
  173. package/app/composables/useChat.ts +3 -0
  174. package/app/pages/settings.vue +148 -9
  175. package/package.json +1 -1
  176. package/server/api/conversations/[id].delete.ts +9 -0
  177. package/server/api/conversations/index.get.ts +2 -1
  178. package/server/api/usage/stats.get.ts +2 -0
  179. package/server/bridge/adapters/telegram.ts +83 -8
  180. package/server/bridge/responder.ts +248 -0
  181. package/server/bridge/router.ts +6 -4
  182. package/server/db/schema.ts +3 -1
  183. package/server/drizzle/migrations/0015_great_mephistopheles.sql +2 -0
  184. package/server/drizzle/migrations/meta/0015_snapshot.json +1972 -0
  185. package/server/drizzle/migrations/meta/_journal.json +7 -0
  186. package/server/routes/_ws/chat.ts +2 -1
  187. package/server/utils/log-token-usage.ts +1 -1
  188. package/shared/types/index.ts +6 -0
  189. package/.output/public/_nuxt/BIo-9u_O.js +0 -1
  190. package/.output/public/_nuxt/BMs0mHEp.js +0 -1
  191. package/.output/public/_nuxt/BwyXWqBY.js +0 -1
  192. package/.output/public/_nuxt/CE9_ECxx.js +0 -1
  193. package/.output/public/_nuxt/DmcMCO8x.js +0 -1
  194. package/.output/public/_nuxt/JReYPlwF.js +0 -2
  195. package/.output/public/_nuxt/builds/meta/410e449d-9fe8-43a0-ae07-80797693b9b8.json +0 -1
  196. package/.output/public/_nuxt/entry._7ZkP07A.css +0 -1
  197. package/.output/public/_nuxt/iBaivqi8.js +0 -1
  198. package/.output/server/chunks/build/chat-CZMiB68R.mjs.map +0 -1
  199. package/.output/server/chunks/build/settings-ByUXa46k.mjs.map +0 -1
@@ -1 +1 @@
1
- import{a as rt,ag as lt,an as ct,e as b,f as ut,q as dt,G as m,T as o,S as u,al as mt,C as s,R as a,ab as l,Q as A,a9 as C,_ as pt,W as _t,ai as E,aj as z,ae as f,aa as y,ak as $}from"./njnzCNrH.js";import{_ as ft}from"./BmdlymIW.js";import{_ as gt,a as vt}from"./B0xuHXvN.js";import{u as ht,_ as yt,a as kt,b as xt}from"./nHSiDk8N.js";import{c as At}from"./B5SnZL2l.js";import{_ as wt}from"./yJ9vRvHj.js";import{_ as bt}from"./BUC36BHp.js";import{_ as Ct}from"./zO9MgHj2.js";import{_ as $t}from"./CO3hceDE.js";import{u as St}from"./it8syoZI.js";import{u as Ut}from"./2QHXgMyi.js";import"./C8ut0f5H.js";import"./CqkleIqs.js";import"./C-Ygk9x5.js";import"./BHn8tRjg.js";import"./vES4kgx7.js";import"./DqzomZoo.js";import"./D4X6ONPF.js";import"./DlAUqK2U.js";import"./SfaNtyKS.js";import"./D-5A6cMB.js";import"./DmDPSvxi.js";import"./ImPsUDiH.js";import"./iBaivqi8.js";import"./D9aYkNhQ.js";import"./DLUvsixu.js";import"./CrmE-JGu.js";import"./BCCYopTB.js";import"./B9zgEO8N.js";import"./BIo-9u_O.js";import"./D79lbuWG.js";import"./Pn7VD6uQ.js";import"./DMb_1D81.js";import"./CXTrUfQ5.js";import"./C6Y-ieo6.js";import"./Bwn-CRYH.js";import"./BjnQ1pI1.js";import"./Cve4psva.js";import"./Vcq4gwWv.js";import"./dB7G4iIC.js";import"./BZBNJD7U.js";import"./BYtVdUIW.js";import"./DmcMCO8x.js";const Rt=At(xt),Nt={class:"contents"},Ft={class:"p-4 space-y-6"},Bt={key:1,class:"flex items-center justify-center h-64"},Tt={key:2,class:"flex flex-col items-center justify-center h-64 text-neutral-500"},Et={key:3,class:"space-y-4"},zt={class:"flex items-start justify-between gap-4"},Dt={class:"flex-1 min-w-0"},Mt={class:"flex items-center gap-2"},Pt={class:"font-medium truncate"},Vt={key:0,class:"text-sm text-muted truncate mt-1"},jt={class:"flex items-center gap-4 mt-2 text-sm text-muted"},Ot={class:"flex items-center gap-1"},Gt={key:0,class:"flex items-center gap-1"},Wt={key:1,class:"flex items-center gap-1"},qt={class:"flex items-center gap-2"},ze=rt({__name:"index",setup(Lt){const g=lt(),D=ct(),{agents:R,loading:M,fetchAgents:P,createAgent:V,updateAgent:j,toggleEnabled:O,runAgent:G,cancelAgent:W,fetchGlobalStats:q}=ht(),{isAgentRunning:L}=St(),{agentStatsPeriod:N}=Ut(),w=b(N.value),k=b(null),S=b(!1);function F(n){return L(n)?!0:k.value?.runningAgentIds?.includes(n)??!1}const v=b(!1),h=b(null),I=[{label:"24h",value:"24h"},{label:"7d",value:"7d"},{label:"30d",value:"30d"}];function J(n){const t=n.split(" ");if(t.length!==5)return n;const i=t[0],r=t[1],c=t[2],d=t[3],p=t[4];return i==="0"&&r==="*"&&c==="*"&&d==="*"&&p==="*"?"Every hour":i==="*/5"&&r==="*"&&c==="*"&&d==="*"&&p==="*"?"Every 5 minutes":c==="*"&&d==="*"&&p==="*"&&r!=="*"?`Daily at ${r}:${i.padStart(2,"0")}`:p==="0"&&c==="*"&&d==="*"?`Weekly on Sunday at ${r}:${i.padStart(2,"0")}`:n}function Q(n){if(!n)return"Never";const t=new Date(n),r=new Date().getTime()-t.getTime(),c=Math.floor(r/6e4),d=Math.floor(r/36e5),p=Math.floor(r/864e5);return c<1?"Just now":c<60?`${c}m ago`:d<24?`${d}h ago`:`${p}d ago`}function B(){h.value=null,v.value=!0}function H(n,t){t.stopPropagation(),h.value=n,v.value=!0}function K(n){D.push(`/agents/${n.id}`)}async function X(n){try{h.value?(await j(h.value.id,n),g.add({title:"Agent updated",color:"success",icon:"i-lucide-check"})):(await V(n),g.add({title:"Agent created",color:"success",icon:"i-lucide-check"}),U()),v.value=!1,h.value=null}catch(t){g.add({title:"Failed to save agent",description:t instanceof Error?t.message:"An unexpected error occurred",color:"error",icon:"i-lucide-alert-circle"})}}async function Y(n){try{await O(n)}catch{g.add({title:"Failed to toggle agent",color:"error",icon:"i-lucide-alert-circle"})}}async function Z(n,t){t.stopPropagation();try{await G(n)}catch{g.add({title:"Failed to run agent",color:"error",icon:"i-lucide-alert-circle"})}}async function tt(n,t){t.stopPropagation();try{await W(n),g.add({title:"Agent cancelled",color:"warning",icon:"i-lucide-x-circle"})}catch{g.add({title:"Failed to cancel agent",color:"error",icon:"i-lucide-alert-circle"})}}function et(n){switch(n){case"success":return"success";case"error":return"error";case"budget_exceeded":return"warning";case"running":return"info";case"cancelled":return"neutral";default:return"neutral"}}async function U(){S.value=!0;try{k.value=await q(w.value)}catch{}finally{S.value=!1}}return ut(w,n=>{N.value=n,U()}),dt(async()=>{await P(),U()}),(n,t)=>{const i=_t,r=ft,c=vt,d=yt,p=Rt,x=pt,T=wt,nt=bt,ot=Ct,at=gt,st=kt,it=$t;return a(),m("div",Nt,[o(at,{id:"agents",grow:""},{header:u(()=>[o(c,{title:"Scheduled Agents"},{right:u(()=>[o(r,null,{default:u(()=>[(a(),m(E,null,z(I,e=>o(i,{key:e.value,color:s(w)===e.value?"primary":"neutral",variant:s(w)===e.value?"solid":"ghost",size:"sm",onClick:_=>w.value=e.value},{default:u(()=>[y(f(e.label),1)]),_:2},1032,["color","variant","onClick"])),64))]),_:1}),o(i,{icon:"i-lucide-plus",label:"New Agent",onClick:B})]),_:1})]),body:u(()=>[l("div",Ft,[o(d,{stats:s(k),loading:s(S),variant:"global"},null,8,["stats","loading"]),s(k)&&s(k).dailyRuns.length>0?(a(),A(p,{key:0,data:s(k).dailyRuns,title:"Run Activity"},null,8,["data"])):C("",!0),s(M)?(a(),m("div",Bt,[o(x,{name:"i-lucide-loader-2",class:"w-8 h-8 animate-spin text-neutral-400"})])):s(R).length===0?(a(),m("div",Tt,[o(x,{name:"i-lucide-bot",class:"w-12 h-12 mb-4"}),t[3]||(t[3]=l("p",{class:"text-lg font-medium"}," No agents yet ",-1)),t[4]||(t[4]=l("p",{class:"text-sm"}," Create your first scheduled agent to automate tasks ",-1)),o(i,{class:"mt-4",icon:"i-lucide-plus",label:"Create Agent",onClick:B})])):(a(),m("div",Et,[t[6]||(t[6]=l("h2",{class:"text-lg font-semibold"}," Agents ",-1)),(a(!0),m(E,null,z(s(R),e=>(a(),A(ot,{key:e.id,class:"cursor-pointer transition-all hover:ring-2 hover:ring-primary/50",onClick:_=>K(e)},{default:u(()=>[l("div",zt,[l("div",Dt,[l("div",Mt,[l("h3",Pt,f(e.name),1),F(e.id)?(a(),A(T,{key:0,color:"info",variant:"subtle",size:"sm"},{default:u(()=>[o(x,{name:"i-lucide-loader-2",class:"w-3 h-3 animate-spin mr-1"}),t[5]||(t[5]=y(" Running ",-1))]),_:1})):e.lastStatus?(a(),A(T,{key:1,color:et(e.lastStatus),size:"sm"},{default:u(()=>[y(f(e.lastStatus),1)]),_:2},1032,["color"])):C("",!0)]),e.description?(a(),m("p",Vt,f(e.description),1)):C("",!0),l("div",jt,[l("span",Ot,[o(x,{name:"i-lucide-clock"}),y(" "+f(J(e.schedule)),1)]),e.lastRunAt?(a(),m("span",Gt,[o(x,{name:"i-lucide-activity"}),y(" "+f(Q(e.lastRunAt)),1)])):C("",!0),e.maxBudgetUsd?(a(),m("span",Wt,[o(x,{name:"i-lucide-dollar-sign"}),y(" $"+f(e.maxBudgetUsd)+" limit ",1)])):C("",!0)])]),l("div",qt,[o(nt,{"model-value":e.enabled,onClick:t[0]||(t[0]=$(()=>{},["stop"])),"onUpdate:modelValue":_=>Y(e.id)},null,8,["model-value","onUpdate:modelValue"]),F(e.id)?(a(),A(i,{key:0,icon:"i-lucide-square",variant:"ghost",size:"sm",color:"error",onClick:$(_=>tt(e.id,_),["stop"])},null,8,["onClick"])):(a(),A(i,{key:1,icon:"i-lucide-play",variant:"ghost",size:"sm",disabled:!e.enabled,onClick:$(_=>Z(e.id,_),["stop"])},null,8,["disabled","onClick"])),o(i,{icon:"i-lucide-pencil",variant:"ghost",size:"sm",onClick:$(_=>H(e,_),["stop"])},null,8,["onClick"])])])]),_:2},1032,["onClick"]))),128))]))])]),_:1}),o(it,{open:s(v),"onUpdate:open":t[2]||(t[2]=e=>mt(v)?v.value=e:null)},{title:u(()=>[y(f(s(h)?"Edit Agent":"New Agent"),1)]),body:u(()=>[o(st,{agent:s(h),onSubmit:X,onCancel:t[1]||(t[1]=e=>v.value=!1)},null,8,["agent"])]),_:1},8,["open"])])}}});export{ze as default};
1
+ import{a as rt,ag as lt,an as ct,e as b,f as ut,q as dt,G as m,T as o,S as u,ai as mt,C as s,R as a,ab as l,Q as A,a9 as C,_ as pt,W as _t,aj as E,ak as z,ae as f,aa as y,al as $}from"./2dNDtTiv.js";import{_ as ft}from"./vIOxcXKR.js";import{_ as gt,a as vt}from"./CqNwHCpo.js";import{u as ht,_ as yt,a as kt,b as xt}from"./C4mwL7SE.js";import{c as At}from"./BHtY0l0l.js";import{_ as wt}from"./JbHa4oXq.js";import{_ as bt}from"./1zUTf4AP.js";import{_ as Ct}from"./C2vq6Te8.js";import{_ as $t}from"./DzA58_Lm.js";import{u as St}from"./GtEM7xVU.js";import{u as Ut}from"./CVqlefTY.js";import"./C8ut0f5H.js";import"./CqkleIqs.js";import"./D5jZq8b3.js";import"./DhI5cA_n.js";import"./DEd2xVbS.js";import"./BmOtR1wX.js";import"./4K03TkGA.js";import"./DlAUqK2U.js";import"./wO6z2ugJ.js";import"./DJTCT0bl.js";import"./C3NST0BU.js";import"./BIXrSYwR.js";import"./DmmdPt_5.js";import"./apYB9dr5.js";import"./H6JbrRBU.js";import"./Db4KMnt8.js";import"./CQqCBrXj.js";import"./DUAAXJ6Q.js";import"./CWyMCJQH.js";import"./C6qKcgOY.js";import"./zq-a1TeT.js";import"./CuxrHsu-.js";import"./DS2wStH1.js";import"./C6Y-ieo6.js";import"./CYPO5o_C.js";import"./D8lwrAYS.js";import"./vScW1Zgm.js";import"./Vcq4gwWv.js";import"./Bk6JUtIo.js";import"./BA_pRWwX.js";import"./BZrSPX0S.js";import"./BaZwjF8o.js";const Rt=At(xt),Nt={class:"contents"},Ft={class:"p-4 space-y-6"},Bt={key:1,class:"flex items-center justify-center h-64"},Tt={key:2,class:"flex flex-col items-center justify-center h-64 text-neutral-500"},Et={key:3,class:"space-y-4"},zt={class:"flex items-start justify-between gap-4"},Dt={class:"flex-1 min-w-0"},Mt={class:"flex items-center gap-2"},Pt={class:"font-medium truncate"},Vt={key:0,class:"text-sm text-muted truncate mt-1"},jt={class:"flex items-center gap-4 mt-2 text-sm text-muted"},Ot={class:"flex items-center gap-1"},Gt={key:0,class:"flex items-center gap-1"},Wt={key:1,class:"flex items-center gap-1"},qt={class:"flex items-center gap-2"},ze=rt({__name:"index",setup(Lt){const g=lt(),D=ct(),{agents:R,loading:M,fetchAgents:P,createAgent:V,updateAgent:j,toggleEnabled:O,runAgent:G,cancelAgent:W,fetchGlobalStats:q}=ht(),{isAgentRunning:L}=St(),{agentStatsPeriod:N}=Ut(),w=b(N.value),k=b(null),S=b(!1);function F(n){return L(n)?!0:k.value?.runningAgentIds?.includes(n)??!1}const v=b(!1),h=b(null),I=[{label:"24h",value:"24h"},{label:"7d",value:"7d"},{label:"30d",value:"30d"}];function J(n){const t=n.split(" ");if(t.length!==5)return n;const i=t[0],r=t[1],c=t[2],d=t[3],p=t[4];return i==="0"&&r==="*"&&c==="*"&&d==="*"&&p==="*"?"Every hour":i==="*/5"&&r==="*"&&c==="*"&&d==="*"&&p==="*"?"Every 5 minutes":c==="*"&&d==="*"&&p==="*"&&r!=="*"?`Daily at ${r}:${i.padStart(2,"0")}`:p==="0"&&c==="*"&&d==="*"?`Weekly on Sunday at ${r}:${i.padStart(2,"0")}`:n}function Q(n){if(!n)return"Never";const t=new Date(n),r=new Date().getTime()-t.getTime(),c=Math.floor(r/6e4),d=Math.floor(r/36e5),p=Math.floor(r/864e5);return c<1?"Just now":c<60?`${c}m ago`:d<24?`${d}h ago`:`${p}d ago`}function B(){h.value=null,v.value=!0}function H(n,t){t.stopPropagation(),h.value=n,v.value=!0}function K(n){D.push(`/agents/${n.id}`)}async function X(n){try{h.value?(await j(h.value.id,n),g.add({title:"Agent updated",color:"success",icon:"i-lucide-check"})):(await V(n),g.add({title:"Agent created",color:"success",icon:"i-lucide-check"}),U()),v.value=!1,h.value=null}catch(t){g.add({title:"Failed to save agent",description:t instanceof Error?t.message:"An unexpected error occurred",color:"error",icon:"i-lucide-alert-circle"})}}async function Y(n){try{await O(n)}catch{g.add({title:"Failed to toggle agent",color:"error",icon:"i-lucide-alert-circle"})}}async function Z(n,t){t.stopPropagation();try{await G(n)}catch{g.add({title:"Failed to run agent",color:"error",icon:"i-lucide-alert-circle"})}}async function tt(n,t){t.stopPropagation();try{await W(n),g.add({title:"Agent cancelled",color:"warning",icon:"i-lucide-x-circle"})}catch{g.add({title:"Failed to cancel agent",color:"error",icon:"i-lucide-alert-circle"})}}function et(n){switch(n){case"success":return"success";case"error":return"error";case"budget_exceeded":return"warning";case"running":return"info";case"cancelled":return"neutral";default:return"neutral"}}async function U(){S.value=!0;try{k.value=await q(w.value)}catch{}finally{S.value=!1}}return ut(w,n=>{N.value=n,U()}),dt(async()=>{await P(),U()}),(n,t)=>{const i=_t,r=ft,c=vt,d=yt,p=Rt,x=pt,T=wt,nt=bt,ot=Ct,at=gt,st=kt,it=$t;return a(),m("div",Nt,[o(at,{id:"agents",grow:""},{header:u(()=>[o(c,{title:"Scheduled Agents"},{right:u(()=>[o(r,null,{default:u(()=>[(a(),m(E,null,z(I,e=>o(i,{key:e.value,color:s(w)===e.value?"primary":"neutral",variant:s(w)===e.value?"solid":"ghost",size:"sm",onClick:_=>w.value=e.value},{default:u(()=>[y(f(e.label),1)]),_:2},1032,["color","variant","onClick"])),64))]),_:1}),o(i,{icon:"i-lucide-plus",label:"New Agent",onClick:B})]),_:1})]),body:u(()=>[l("div",Ft,[o(d,{stats:s(k),loading:s(S),variant:"global"},null,8,["stats","loading"]),s(k)&&s(k).dailyRuns.length>0?(a(),A(p,{key:0,data:s(k).dailyRuns,title:"Run Activity"},null,8,["data"])):C("",!0),s(M)?(a(),m("div",Bt,[o(x,{name:"i-lucide-loader-2",class:"w-8 h-8 animate-spin text-neutral-400"})])):s(R).length===0?(a(),m("div",Tt,[o(x,{name:"i-lucide-bot",class:"w-12 h-12 mb-4"}),t[3]||(t[3]=l("p",{class:"text-lg font-medium"}," No agents yet ",-1)),t[4]||(t[4]=l("p",{class:"text-sm"}," Create your first scheduled agent to automate tasks ",-1)),o(i,{class:"mt-4",icon:"i-lucide-plus",label:"Create Agent",onClick:B})])):(a(),m("div",Et,[t[6]||(t[6]=l("h2",{class:"text-lg font-semibold"}," Agents ",-1)),(a(!0),m(E,null,z(s(R),e=>(a(),A(ot,{key:e.id,class:"cursor-pointer transition-all hover:ring-2 hover:ring-primary/50",onClick:_=>K(e)},{default:u(()=>[l("div",zt,[l("div",Dt,[l("div",Mt,[l("h3",Pt,f(e.name),1),F(e.id)?(a(),A(T,{key:0,color:"info",variant:"subtle",size:"sm"},{default:u(()=>[o(x,{name:"i-lucide-loader-2",class:"w-3 h-3 animate-spin mr-1"}),t[5]||(t[5]=y(" Running ",-1))]),_:1})):e.lastStatus?(a(),A(T,{key:1,color:et(e.lastStatus),size:"sm"},{default:u(()=>[y(f(e.lastStatus),1)]),_:2},1032,["color"])):C("",!0)]),e.description?(a(),m("p",Vt,f(e.description),1)):C("",!0),l("div",jt,[l("span",Ot,[o(x,{name:"i-lucide-clock"}),y(" "+f(J(e.schedule)),1)]),e.lastRunAt?(a(),m("span",Gt,[o(x,{name:"i-lucide-activity"}),y(" "+f(Q(e.lastRunAt)),1)])):C("",!0),e.maxBudgetUsd?(a(),m("span",Wt,[o(x,{name:"i-lucide-dollar-sign"}),y(" $"+f(e.maxBudgetUsd)+" limit ",1)])):C("",!0)])]),l("div",qt,[o(nt,{"model-value":e.enabled,onClick:t[0]||(t[0]=$(()=>{},["stop"])),"onUpdate:modelValue":_=>Y(e.id)},null,8,["model-value","onUpdate:modelValue"]),F(e.id)?(a(),A(i,{key:0,icon:"i-lucide-square",variant:"ghost",size:"sm",color:"error",onClick:$(_=>tt(e.id,_),["stop"])},null,8,["onClick"])):(a(),A(i,{key:1,icon:"i-lucide-play",variant:"ghost",size:"sm",disabled:!e.enabled,onClick:$(_=>Z(e.id,_),["stop"])},null,8,["disabled","onClick"])),o(i,{icon:"i-lucide-pencil",variant:"ghost",size:"sm",onClick:$(_=>H(e,_),["stop"])},null,8,["onClick"])])])]),_:2},1032,["onClick"]))),128))]))])]),_:1}),o(it,{open:s(v),"onUpdate:open":t[2]||(t[2]=e=>mt(v)?v.value=e:null)},{title:u(()=>[y(f(s(h)?"Edit Agent":"New Agent"),1)]),body:u(()=>[o(st,{agent:s(h),onSubmit:X,onCancel:t[1]||(t[1]=e=>v.value=!1)},null,8,["agent"])]),_:1},8,["open"])])}}});export{ze as default};
@@ -1,4 +1,4 @@
1
- import{k as Lm,b as Dm,s as Im}from"./Vcq4gwWv.js";import{a as Bm,e as Nm,M as Fm,q as Hm,f as or,a2 as Km,G as Jm,R as eg}from"./njnzCNrH.js";let eo=[],td=[];(()=>{let O="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(e=>e?parseInt(e,36):1);for(let e=0,t=0;e<O.length;e++)(e%2?td:eo).push(t=t+O[e])})();function tg(O){if(O<768)return!1;for(let e=0,t=eo.length;;){let i=e+t>>1;if(O<eo[i])t=i;else if(O>=td[i])e=i+1;else return!0;if(e==t)return!1}}function zl(O){return O>=127462&&O<=127487}const Ul=8205;function Og(O,e,t=!0,i=!0){return(t?Od:ig)(O,e,i)}function Od(O,e,t){if(e==O.length)return e;e&&id(O.charCodeAt(e))&&rd(O.charCodeAt(e-1))&&e--;let i=Jn(O,e);for(e+=Vl(i);e<O.length;){let r=Jn(O,e);if(i==Ul||r==Ul||t&&tg(r))e+=Vl(r),i=r;else if(zl(r)){let n=0,s=e-2;for(;s>=0&&zl(Jn(O,s));)n++,s-=2;if(n%2==0)break;e+=2}else break}return e}function ig(O,e,t){for(;e>0;){let i=Od(O,e-2,t);if(i<e)return i;e--}return 0}function Jn(O,e){let t=O.charCodeAt(e);if(!rd(t)||e+1==O.length)return t;let i=O.charCodeAt(e+1);return id(i)?(t-55296<<10)+(i-56320)+65536:t}function id(O){return O>=56320&&O<57344}function rd(O){return O>=55296&&O<56320}function Vl(O){return O<65536?1:2}class E{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,i){[e,t]=WO(this,e,t);let r=[];return this.decompose(0,e,r,2),i.length&&i.decompose(0,i.length,r,3),this.decompose(t,this.length,r,1),ft.from(r,this.length-(t-e)+i.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){[e,t]=WO(this,e,t);let i=[];return this.decompose(e,t,i,0),ft.from(i,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),i=this.length-this.scanIdentical(e,-1),r=new ui(this),n=new ui(e);for(let s=t,o=t;;){if(r.next(s),n.next(s),s=0,r.lineBreak!=n.lineBreak||r.done!=n.done||r.value!=n.value)return!1;if(o+=r.value.length,r.done||o>=i)return!0}}iter(e=1){return new ui(this,e)}iterRange(e,t=this.length){return new nd(this,e,t)}iterLines(e,t){let i;if(e==null)i=this.iter();else{t==null&&(t=this.lines+1);let r=this.line(e).from;i=this.iterRange(r,Math.max(r,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new sd(i)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?E.empty:e.length<=32?new ie(e):ft.from(ie.split(e,[]))}}class ie extends E{constructor(e,t=rg(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,i,r){for(let n=0;;n++){let s=this.text[n],o=r+s.length;if((t?i:o)>=e)return new ng(r,o,i,s);r=o+1,i++}}decompose(e,t,i,r){let n=e<=0&&t>=this.length?this:new ie(Wl(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(r&1){let s=i.pop(),o=Ur(n.text,s.text.slice(),0,n.length);if(o.length<=32)i.push(new ie(o,s.length+n.length));else{let a=o.length>>1;i.push(new ie(o.slice(0,a)),new ie(o.slice(a)))}}else i.push(n)}replace(e,t,i){if(!(i instanceof ie))return super.replace(e,t,i);[e,t]=WO(this,e,t);let r=Ur(this.text,Ur(i.text,Wl(this.text,0,e)),t),n=this.length+i.length-(t-e);return r.length<=32?new ie(r,n):ft.from(ie.split(r,[]),n)}sliceString(e,t=this.length,i=`
1
+ import{k as Lm,b as Dm,s as Im}from"./Vcq4gwWv.js";import{a as Bm,e as Nm,M as Fm,q as Hm,f as or,a2 as Km,G as Jm,R as eg}from"./2dNDtTiv.js";let eo=[],td=[];(()=>{let O="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(e=>e?parseInt(e,36):1);for(let e=0,t=0;e<O.length;e++)(e%2?td:eo).push(t=t+O[e])})();function tg(O){if(O<768)return!1;for(let e=0,t=eo.length;;){let i=e+t>>1;if(O<eo[i])t=i;else if(O>=td[i])e=i+1;else return!0;if(e==t)return!1}}function zl(O){return O>=127462&&O<=127487}const Ul=8205;function Og(O,e,t=!0,i=!0){return(t?Od:ig)(O,e,i)}function Od(O,e,t){if(e==O.length)return e;e&&id(O.charCodeAt(e))&&rd(O.charCodeAt(e-1))&&e--;let i=Jn(O,e);for(e+=Vl(i);e<O.length;){let r=Jn(O,e);if(i==Ul||r==Ul||t&&tg(r))e+=Vl(r),i=r;else if(zl(r)){let n=0,s=e-2;for(;s>=0&&zl(Jn(O,s));)n++,s-=2;if(n%2==0)break;e+=2}else break}return e}function ig(O,e,t){for(;e>0;){let i=Od(O,e-2,t);if(i<e)return i;e--}return 0}function Jn(O,e){let t=O.charCodeAt(e);if(!rd(t)||e+1==O.length)return t;let i=O.charCodeAt(e+1);return id(i)?(t-55296<<10)+(i-56320)+65536:t}function id(O){return O>=56320&&O<57344}function rd(O){return O>=55296&&O<56320}function Vl(O){return O<65536?1:2}class E{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,i){[e,t]=WO(this,e,t);let r=[];return this.decompose(0,e,r,2),i.length&&i.decompose(0,i.length,r,3),this.decompose(t,this.length,r,1),ft.from(r,this.length-(t-e)+i.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){[e,t]=WO(this,e,t);let i=[];return this.decompose(e,t,i,0),ft.from(i,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),i=this.length-this.scanIdentical(e,-1),r=new ui(this),n=new ui(e);for(let s=t,o=t;;){if(r.next(s),n.next(s),s=0,r.lineBreak!=n.lineBreak||r.done!=n.done||r.value!=n.value)return!1;if(o+=r.value.length,r.done||o>=i)return!0}}iter(e=1){return new ui(this,e)}iterRange(e,t=this.length){return new nd(this,e,t)}iterLines(e,t){let i;if(e==null)i=this.iter();else{t==null&&(t=this.lines+1);let r=this.line(e).from;i=this.iterRange(r,Math.max(r,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new sd(i)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?E.empty:e.length<=32?new ie(e):ft.from(ie.split(e,[]))}}class ie extends E{constructor(e,t=rg(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,i,r){for(let n=0;;n++){let s=this.text[n],o=r+s.length;if((t?i:o)>=e)return new ng(r,o,i,s);r=o+1,i++}}decompose(e,t,i,r){let n=e<=0&&t>=this.length?this:new ie(Wl(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(r&1){let s=i.pop(),o=Ur(n.text,s.text.slice(),0,n.length);if(o.length<=32)i.push(new ie(o,s.length+n.length));else{let a=o.length>>1;i.push(new ie(o.slice(0,a)),new ie(o.slice(a)))}}else i.push(n)}replace(e,t,i){if(!(i instanceof ie))return super.replace(e,t,i);[e,t]=WO(this,e,t);let r=Ur(this.text,Ur(i.text,Wl(this.text,0,e)),t),n=this.length+i.length-(t-e);return r.length<=32?new ie(r,n):ft.from(ie.split(r,[]),n)}sliceString(e,t=this.length,i=`
2
2
  `){[e,t]=WO(this,e,t);let r="";for(let n=0,s=0;n<=t&&s<this.text.length;s++){let o=this.text[s],a=n+o.length;n>e&&s&&(r+=i),e<a&&t>n&&(r+=o.slice(Math.max(0,e-n),t-n)),n=a+1}return r}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let i=[],r=-1;for(let n of e)i.push(n),r+=n.length+1,i.length==32&&(t.push(new ie(i,r)),i=[],r=-1);return r>-1&&t.push(new ie(i,r)),t}}class ft extends E{constructor(e,t){super(),this.children=e,this.length=t,this.lines=0;for(let i of e)this.lines+=i.lines}lineInner(e,t,i,r){for(let n=0;;n++){let s=this.children[n],o=r+s.length,a=i+s.lines-1;if((t?a:o)>=e)return s.lineInner(e,t,i,r);r=o+1,i=a+1}}decompose(e,t,i,r){for(let n=0,s=0;s<=t&&n<this.children.length;n++){let o=this.children[n],a=s+o.length;if(e<=a&&t>=s){let l=r&((s<=e?1:0)|(a>=t?2:0));s>=e&&a<=t&&!l?i.push(o):o.decompose(e-s,t-s,i,l)}s=a+1}}replace(e,t,i){if([e,t]=WO(this,e,t),i.lines<this.lines)for(let r=0,n=0;r<this.children.length;r++){let s=this.children[r],o=n+s.length;if(e>=n&&t<=o){let a=s.replace(e-n,t-n,i),l=this.lines-s.lines+a.lines;if(a.lines<l>>4&&a.lines>l>>6){let h=this.children.slice();return h[r]=a,new ft(h,this.length-(t-e)+i.length)}return super.replace(n,o,a)}n=o+1}return super.replace(e,t,i)}sliceString(e,t=this.length,i=`
3
3
  `){[e,t]=WO(this,e,t);let r="";for(let n=0,s=0;n<this.children.length&&s<=t;n++){let o=this.children[n],a=s+o.length;s>e&&n&&(r+=i),e<a&&t>s&&(r+=o.sliceString(e-s,t-s,i)),s=a+1}return r}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof ft))return 0;let i=0,[r,n,s,o]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;r+=t,n+=t){if(r==s||n==o)return i;let a=this.children[r],l=e.children[n];if(a!=l)return i+a.scanIdentical(l,t);i+=a.length+1}}static from(e,t=e.reduce((i,r)=>i+r.length+1,-1)){let i=0;for(let u of e)i+=u.lines;if(i<32){let u=[];for(let Q of e)Q.flatten(u);return new ie(u,t)}let r=Math.max(32,i>>5),n=r<<1,s=r>>1,o=[],a=0,l=-1,h=[];function c(u){let Q;if(u.lines>n&&u instanceof ft)for(let p of u.children)c(p);else u.lines>s&&(a>s||!a)?(f(),o.push(u)):u instanceof ie&&a&&(Q=h[h.length-1])instanceof ie&&u.lines+Q.lines<=32?(a+=u.lines,l+=u.length+1,h[h.length-1]=new ie(Q.text.concat(u.text),Q.length+1+u.length)):(a+u.lines>r&&f(),a+=u.lines,l+=u.length+1,h.push(u))}function f(){a!=0&&(o.push(h.length==1?h[0]:ft.from(h,l)),l=-1,a=h.length=0)}for(let u of e)c(u);return f(),o.length==1?o[0]:new ft(o,t)}}E.empty=new ie([""],0);function rg(O){let e=-1;for(let t of O)e+=t.length+1;return e}function Ur(O,e,t=0,i=1e9){for(let r=0,n=0,s=!0;n<O.length&&r<=i;n++){let o=O[n],a=r+o.length;a>=t&&(a>i&&(o=o.slice(0,i-r)),r<t&&(o=o.slice(t-r)),s?(e[e.length-1]+=o,s=!1):e.push(o)),r=a+1}return e}function Wl(O,e,t){return Ur(O,[""],e,t)}class ui{constructor(e,t=1){this.dir=t,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[e],this.offsets=[t>0?1:(e instanceof ie?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let i=this.nodes.length-1,r=this.nodes[i],n=this.offsets[i],s=n>>1,o=r instanceof ie?r.text.length:r.children.length;if(s==(t>0?o:0)){if(i==0)return this.done=!0,this.value="",this;t>0&&this.offsets[i-1]++,this.nodes.pop(),this.offsets.pop()}else if((n&1)==(t>0?0:1)){if(this.offsets[i]+=t,e==0)return this.lineBreak=!0,this.value=`
4
4
  `,this;e--}else if(r instanceof ie){let a=r.text[s+(t<0?-1:0)];if(this.offsets[i]+=t,a.length>Math.max(0,e))return this.value=e==0?a:t>0?a.slice(e):a.slice(0,a.length-e),this;e-=a.length}else{let a=r.children[s+(t<0?-1:0)];e>a.length?(e-=a.length,this.offsets[i]+=t):(t<0&&this.offsets[i]--,this.nodes.push(a),this.offsets.push(t>0?1:(a instanceof ie?a.text.length:a.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class nd{constructor(e,t,i){this.value="",this.done=!1,this.cursor=new ui(e,t>i?-1:1),this.pos=t>i?e.length:0,this.from=Math.min(t,i),this.to=Math.max(t,i)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let i=t<0?this.pos-this.from:this.to-this.pos;e>i&&(e=i),i-=e;let{value:r}=this.cursor.next(e);return this.pos+=(r.length+e)*t,this.value=r.length<=i?r:t<0?r.slice(r.length-i):r.slice(0,i),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class sd{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:i,value:r}=this.inner.next(e);return t&&this.afterBreak?(this.value="",this.afterBreak=!1):t?(this.done=!0,this.value=""):i?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=r,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(E.prototype[Symbol.iterator]=function(){return this.iter()},ui.prototype[Symbol.iterator]=nd.prototype[Symbol.iterator]=sd.prototype[Symbol.iterator]=function(){return this});let ng=class{constructor(e,t,i,r){this.from=e,this.to=t,this.number=i,this.text=r}get length(){return this.to-this.from}};function WO(O,e,t){return e=Math.max(0,Math.min(O.length,e)),[e,Math.max(e,Math.min(O.length,t))]}function le(O,e,t=!0,i=!0){return Og(O,e,t,i)}function sg(O){return O>=56320&&O<57344}function og(O){return O>=55296&&O<56320}function we(O,e){let t=O.charCodeAt(e);if(!og(t)||e+1==O.length)return t;let i=O.charCodeAt(e+1);return sg(i)?(t-55296<<10)+(i-56320)+65536:t}function Sa(O){return O<=65535?String.fromCharCode(O):(O-=65536,String.fromCharCode((O>>10)+55296,(O&1023)+56320))}function dt(O){return O<65536?1:2}const to=/\r\n?|\n/;var ue=(function(O){return O[O.Simple=0]="Simple",O[O.TrackDel=1]="TrackDel",O[O.TrackBefore=2]="TrackBefore",O[O.TrackAfter=3]="TrackAfter",O})(ue||(ue={}));class gt{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;t<this.sections.length;t+=2)e+=this.sections[t];return e}get newLength(){let e=0;for(let t=0;t<this.sections.length;t+=2){let i=this.sections[t+1];e+=i<0?this.sections[t]:i}return e}get empty(){return this.sections.length==0||this.sections.length==2&&this.sections[1]<0}iterGaps(e){for(let t=0,i=0,r=0;t<this.sections.length;){let n=this.sections[t++],s=this.sections[t++];s<0?(e(i,r,n),r+=n):r+=s,i+=n}}iterChangedRanges(e,t=!1){Oo(this,e,t)}get invertedDesc(){let e=[];for(let t=0;t<this.sections.length;){let i=this.sections[t++],r=this.sections[t++];r<0?e.push(i,r):e.push(r,i)}return new gt(e)}composeDesc(e){return this.empty?e:e.empty?this:od(this,e)}mapDesc(e,t=!1){return e.empty?this:io(this,e,t)}mapPos(e,t=-1,i=ue.Simple){let r=0,n=0;for(let s=0;s<this.sections.length;){let o=this.sections[s++],a=this.sections[s++],l=r+o;if(a<0){if(l>e)return n+(e-r);n+=o}else{if(i!=ue.Simple&&l>=e&&(i==ue.TrackDel&&r<e&&l>e||i==ue.TrackBefore&&r<e||i==ue.TrackAfter&&l>e))return null;if(l>e||l==e&&t<0&&!o)return e==r||t<0?n:n+a;n+=a}r=l}if(e>r)throw new RangeError(`Position ${e} is out of range for changeset of length ${r}`);return n}touchesRange(e,t=e){for(let i=0,r=0;i<this.sections.length&&r<=t;){let n=this.sections[i++],s=this.sections[i++],o=r+n;if(s>=0&&r<=t&&o>=e)return r<e&&o>t?"cover":!0;r=o}return!1}toString(){let e="";for(let t=0;t<this.sections.length;){let i=this.sections[t++],r=this.sections[t++];e+=(e?" ":"")+i+(r>=0?":"+r:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(t=>typeof t!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new gt(e)}static create(e){return new gt(e)}}class ae extends gt{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return Oo(this,(t,i,r,n,s)=>e=e.replace(r,r+(i-t),s),!1),e}mapDesc(e,t=!1){return io(this,e,t,!0)}invert(e){let t=this.sections.slice(),i=[];for(let r=0,n=0;r<t.length;r+=2){let s=t[r],o=t[r+1];if(o>=0){t[r]=o,t[r+1]=s;let a=r>>1;for(;i.length<a;)i.push(E.empty);i.push(s?e.slice(n,n+s):E.empty)}n+=s}return new ae(t,i)}compose(e){return this.empty?e:e.empty?this:od(this,e,!0)}map(e,t=!1){return e.empty?this:io(this,e,t,!0)}iterChanges(e,t=!1){Oo(this,e,t)}get desc(){return gt.create(this.sections)}filter(e){let t=[],i=[],r=[],n=new xi(this);e:for(let s=0,o=0;;){let a=s==e.length?1e9:e[s++];for(;o<a||o==a&&n.len==0;){if(n.done)break e;let h=Math.min(n.len,a-o);pe(r,h,-1);let c=n.ins==-1?-1:n.off==0?n.ins:0;pe(t,h,c),c>0&&At(i,t,n.text),n.forward(h),o+=h}let l=e[s++];for(;o<l;){if(n.done)break e;let h=Math.min(n.len,l-o);pe(t,h,-1),pe(r,h,n.ins==-1?-1:n.off==0?n.ins:0),n.forward(h),o+=h}}return{changes:new ae(t,i),filtered:gt.create(r)}}toJSON(){let e=[];for(let t=0;t<this.sections.length;t+=2){let i=this.sections[t],r=this.sections[t+1];r<0?e.push(i):r==0?e.push([i]):e.push([i].concat(this.inserted[t>>1].toJSON()))}return e}static of(e,t,i){let r=[],n=[],s=0,o=null;function a(h=!1){if(!h&&!r.length)return;s<t&&pe(r,t-s,-1);let c=new ae(r,n);o=o?o.compose(c.map(o)):c,r=[],n=[],s=0}function l(h){if(Array.isArray(h))for(let c of h)l(c);else if(h instanceof ae){if(h.length!=t)throw new RangeError(`Mismatched change set length (got ${h.length}, expected ${t})`);a(),o=o?o.compose(h.map(o)):h}else{let{from:c,to:f=c,insert:u}=h;if(c>f||c<0||f>t)throw new RangeError(`Invalid change range ${c} to ${f} (in doc of length ${t})`);let Q=u?typeof u=="string"?E.of(u.split(i||to)):u:E.empty,p=Q.length;if(c==f&&p==0)return;c<s&&a(),c>s&&pe(r,c-s,-1),pe(r,f-c,p),At(n,r,Q),s=f}}return l(e),a(!o),o}static empty(e){return new ae(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let t=[],i=[];for(let r=0;r<e.length;r++){let n=e[r];if(typeof n=="number")t.push(n,-1);else{if(!Array.isArray(n)||typeof n[0]!="number"||n.some((s,o)=>o&&typeof s!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(n.length==1)t.push(n[0],0);else{for(;i.length<r;)i.push(E.empty);i[r]=E.of(n.slice(1)),t.push(n[0],i[r].length)}}}return new ae(t,i)}static createSet(e,t){return new ae(e,t)}}function pe(O,e,t,i=!1){if(e==0&&t<=0)return;let r=O.length-2;r>=0&&t<=0&&t==O[r+1]?O[r]+=e:r>=0&&e==0&&O[r]==0?O[r+1]+=t:i?(O[r]+=e,O[r+1]+=t):O.push(e,t)}function At(O,e,t){if(t.length==0)return;let i=e.length-2>>1;if(i<O.length)O[O.length-1]=O[O.length-1].append(t);else{for(;O.length<i;)O.push(E.empty);O.push(t)}}function Oo(O,e,t){let i=O.inserted;for(let r=0,n=0,s=0;s<O.sections.length;){let o=O.sections[s++],a=O.sections[s++];if(a<0)r+=o,n+=o;else{let l=r,h=n,c=E.empty;for(;l+=o,h+=a,a&&i&&(c=c.append(i[s-2>>1])),!(t||s==O.sections.length||O.sections[s+1]<0);)o=O.sections[s++],a=O.sections[s++];e(r,l,n,h,c),r=l,n=h}}}function io(O,e,t,i=!1){let r=[],n=i?[]:null,s=new xi(O),o=new xi(e);for(let a=-1;;){if(s.done&&o.len||o.done&&s.len)throw new Error("Mismatched change set lengths");if(s.ins==-1&&o.ins==-1){let l=Math.min(s.len,o.len);pe(r,l,-1),s.forward(l),o.forward(l)}else if(o.ins>=0&&(s.ins<0||a==s.i||s.off==0&&(o.len<s.len||o.len==s.len&&!t))){let l=o.len;for(pe(r,o.ins,-1);l;){let h=Math.min(s.len,l);s.ins>=0&&a<s.i&&s.len<=h&&(pe(r,0,s.ins),n&&At(n,r,s.text),a=s.i),s.forward(h),l-=h}o.next()}else if(s.ins>=0){let l=0,h=s.len;for(;h;)if(o.ins==-1){let c=Math.min(h,o.len);l+=c,h-=c,o.forward(c)}else if(o.ins==0&&o.len<h)h-=o.len,o.next();else break;pe(r,l,a<s.i?s.ins:0),n&&a<s.i&&At(n,r,s.text),a=s.i,s.forward(s.len-h)}else{if(s.done&&o.done)return n?ae.createSet(r,n):gt.create(r);throw new Error("Mismatched change set lengths")}}}function od(O,e,t=!1){let i=[],r=t?[]:null,n=new xi(O),s=new xi(e);for(let o=!1;;){if(n.done&&s.done)return r?ae.createSet(i,r):gt.create(i);if(n.ins==0)pe(i,n.len,0,o),n.next();else if(s.len==0&&!s.done)pe(i,0,s.ins,o),r&&At(r,i,s.text),s.next();else{if(n.done||s.done)throw new Error("Mismatched change set lengths");{let a=Math.min(n.len2,s.len),l=i.length;if(n.ins==-1){let h=s.ins==-1?-1:s.off?0:s.ins;pe(i,a,h,o),r&&h&&At(r,i,s.text)}else s.ins==-1?(pe(i,n.off?0:n.len,a,o),r&&At(r,i,n.textBit(a))):(pe(i,n.off?0:n.len,s.off?0:s.ins,o),r&&!s.off&&At(r,i,s.text));o=(n.ins>a||s.ins>=0&&s.len>a)&&(o||i.length>l),n.forward2(a),s.forward(a)}}}}class xi{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i<e.length?(this.len=e[this.i++],this.ins=e[this.i++]):(this.len=0,this.ins=-2),this.off=0}get done(){return this.ins==-2}get len2(){return this.ins<0?this.len:this.ins}get text(){let{inserted:e}=this.set,t=this.i-2>>1;return t>=e.length?E.empty:e[t]}textBit(e){let{inserted:t}=this.set,i=this.i-2>>1;return i>=t.length&&!e?E.empty:t[i].slice(this.off,e==null?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){this.ins==-1?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class hO{constructor(e,t,i){this.from=e,this.to=t,this.flags=i}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get bidiLevel(){let e=this.flags&7;return e==7?null:e}get goalColumn(){let e=this.flags>>6;return e==16777215?void 0:e}map(e,t=-1){let i,r;return this.empty?i=r=e.mapPos(this.from,t):(i=e.mapPos(this.from,1),r=e.mapPos(this.to,-1)),i==this.from&&r==this.to?this:new hO(i,r,this.flags)}extend(e,t=e){if(e<=this.anchor&&t>=this.anchor)return P.range(e,t);let i=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return P.range(this.anchor,i)}eq(e,t=!1){return this.anchor==e.anchor&&this.head==e.head&&this.goalColumn==e.goalColumn&&(!t||!this.empty||this.assoc==e.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||typeof e.anchor!="number"||typeof e.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return P.range(e.anchor,e.head)}static create(e,t,i){return new hO(e,t,i)}}class P{constructor(e,t){this.ranges=e,this.mainIndex=t}map(e,t=-1){return e.empty?this:P.create(this.ranges.map(i=>i.map(e,t)),this.mainIndex)}eq(e,t=!1){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let i=0;i<this.ranges.length;i++)if(!this.ranges[i].eq(e.ranges[i],t))return!1;return!0}get main(){return this.ranges[this.mainIndex]}asSingle(){return this.ranges.length==1?this:new P([this.main],0)}addRange(e,t=!0){return P.create([e].concat(this.ranges),t?0:this.mainIndex+1)}replaceRange(e,t=this.mainIndex){let i=this.ranges.slice();return i[t]=e,P.create(i,this.mainIndex)}toJSON(){return{ranges:this.ranges.map(e=>e.toJSON()),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||typeof e.main!="number"||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new P(e.ranges.map(t=>hO.fromJSON(t)),e.main)}static single(e,t=e){return new P([P.range(e,t)],0)}static create(e,t=0){if(e.length==0)throw new RangeError("A selection needs at least one range");for(let i=0,r=0;r<e.length;r++){let n=e[r];if(n.empty?n.from<=i:n.from<i)return P.normalized(e.slice(),t);i=n.to}return new P(e,t)}static cursor(e,t=0,i,r){return hO.create(e,e,(t==0?0:t<0?8:16)|(i==null?7:Math.min(6,i))|(r??16777215)<<6)}static range(e,t,i,r){let n=(i??16777215)<<6|(r==null?7:Math.min(6,r));return t<e?hO.create(t,e,48|n):hO.create(e,t,(t>e?8:0)|n)}static normalized(e,t=0){let i=e[t];e.sort((r,n)=>r.from-n.from),t=e.indexOf(i);for(let r=1;r<e.length;r++){let n=e[r],s=e[r-1];if(n.empty?n.from<=s.to:n.from<s.to){let o=s.from,a=Math.max(n.to,s.to);r<=t&&t--,e.splice(--r,2,n.anchor>n.head?P.range(a,o):P.range(o,a))}}return new P(e,t)}}function ad(O,e){for(let t of O.ranges)if(t.to>e)throw new RangeError("Selection points outside of document")}let Xa=0;class v{constructor(e,t,i,r,n){this.combine=e,this.compareInput=t,this.compare=i,this.isStatic=r,this.id=Xa++,this.default=e([]),this.extensions=typeof n=="function"?n(this):n}get reader(){return this}static define(e={}){return new v(e.combine||(t=>t),e.compareInput||((t,i)=>t===i),e.compare||(e.combine?(t,i)=>t===i:ba),!!e.static,e.enables)}of(e){return new Vr([],this,0,e)}compute(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new Vr(e,this,1,t)}computeN(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new Vr(e,this,2,t)}from(e,t){return t||(t=i=>i),this.compute([e],i=>t(i.field(e)))}}function ba(O,e){return O==e||O.length==e.length&&O.every((t,i)=>t===e[i])}class Vr{constructor(e,t,i,r){this.dependencies=e,this.facet=t,this.type=i,this.value=r,this.id=Xa++}dynamicSlot(e){var t;let i=this.value,r=this.facet.compareInput,n=this.id,s=e[n]>>1,o=this.type==2,a=!1,l=!1,h=[];for(let c of this.dependencies)c=="doc"?a=!0:c=="selection"?l=!0:(((t=e[c.id])!==null&&t!==void 0?t:1)&1)==0&&h.push(e[c.id]);return{create(c){return c.values[s]=i(c),1},update(c,f){if(a&&f.docChanged||l&&(f.docChanged||f.selection)||ro(c,h)){let u=i(c);if(o?!Cl(u,c.values[s],r):!r(u,c.values[s]))return c.values[s]=u,1}return 0},reconfigure:(c,f)=>{let u,Q=f.config.address[n];if(Q!=null){let p=Kr(f,Q);if(this.dependencies.every(m=>m instanceof v?f.facet(m)===c.facet(m):m instanceof ce?f.field(m,!1)==c.field(m,!1):!0)||(o?Cl(u=i(c),p,r):r(u=i(c),p)))return c.values[s]=p,0}else u=i(c);return c.values[s]=u,1}}}}function Cl(O,e,t){if(O.length!=e.length)return!1;for(let i=0;i<O.length;i++)if(!t(O[i],e[i]))return!1;return!0}function ro(O,e){let t=!1;for(let i of e)Qi(O,i)&1&&(t=!0);return t}function ag(O,e,t){let i=t.map(a=>O[a.id]),r=t.map(a=>a.type),n=i.filter(a=>!(a&1)),s=O[e.id]>>1;function o(a){let l=[];for(let h=0;h<i.length;h++){let c=Kr(a,i[h]);if(r[h]==2)for(let f of c)l.push(f);else l.push(c)}return e.combine(l)}return{create(a){for(let l of i)Qi(a,l);return a.values[s]=o(a),1},update(a,l){if(!ro(a,n))return 0;let h=o(a);return e.compare(h,a.values[s])?0:(a.values[s]=h,1)},reconfigure(a,l){let h=ro(a,i),c=l.config.facets[e.id],f=l.facet(e);if(c&&!h&&ba(t,c))return a.values[s]=f,0;let u=o(a);return e.compare(u,f)?(a.values[s]=f,0):(a.values[s]=u,1)}}}const ar=v.define({static:!0});class ce{constructor(e,t,i,r,n){this.id=e,this.createF=t,this.updateF=i,this.compareF=r,this.spec=n,this.provides=void 0}static define(e){let t=new ce(Xa++,e.create,e.update,e.compare||((i,r)=>i===r),e);return e.provide&&(t.provides=e.provide(t)),t}create(e){let t=e.facet(ar).find(i=>i.field==this);return(t?.create||this.createF)(e)}slot(e){let t=e[this.id]>>1;return{create:i=>(i.values[t]=this.create(i),1),update:(i,r)=>{let n=i.values[t],s=this.updateF(n,r);return this.compareF(n,s)?0:(i.values[t]=s,1)},reconfigure:(i,r)=>{let n=i.facet(ar),s=r.facet(ar),o;return(o=n.find(a=>a.field==this))&&o!=s.find(a=>a.field==this)?(i.values[t]=o.create(i),1):r.config.address[this.id]!=null?(i.values[t]=r.field(this),0):(i.values[t]=this.create(i),1)}}}init(e){return[this,ar.of({field:this,create:e})]}get extension(){return this}}const sO={lowest:4,low:3,default:2,high:1,highest:0};function ti(O){return e=>new ld(e,O)}const Ut={highest:ti(sO.highest),high:ti(sO.high),default:ti(sO.default),low:ti(sO.low),lowest:ti(sO.lowest)};class ld{constructor(e,t){this.inner=e,this.prec=t}}class Et{of(e){return new no(this,e)}reconfigure(e){return Et.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class no{constructor(e,t){this.compartment=e,this.inner=t}}class Hr{constructor(e,t,i,r,n,s){for(this.base=e,this.compartments=t,this.dynamicSlots=i,this.address=r,this.staticValues=n,this.facets=s,this.statusTemplate=[];this.statusTemplate.length<i.length;)this.statusTemplate.push(0)}staticFacet(e){let t=this.address[e.id];return t==null?e.default:this.staticValues[t>>1]}static resolve(e,t,i){let r=[],n=Object.create(null),s=new Map;for(let f of lg(e,t,s))f instanceof ce?r.push(f):(n[f.facet.id]||(n[f.facet.id]=[])).push(f);let o=Object.create(null),a=[],l=[];for(let f of r)o[f.id]=l.length<<1,l.push(u=>f.slot(u));let h=i?.config.facets;for(let f in n){let u=n[f],Q=u[0].facet,p=h&&h[f]||[];if(u.every(m=>m.type==0))if(o[Q.id]=a.length<<1|1,ba(p,u))a.push(i.facet(Q));else{let m=Q.combine(u.map(g=>g.value));a.push(i&&Q.compare(m,i.facet(Q))?i.facet(Q):m)}else{for(let m of u)m.type==0?(o[m.id]=a.length<<1|1,a.push(m.value)):(o[m.id]=l.length<<1,l.push(g=>m.dynamicSlot(g)));o[Q.id]=l.length<<1,l.push(m=>ag(m,Q,u))}}let c=l.map(f=>f(o));return new Hr(e,s,c,o,a,n)}}function lg(O,e,t){let i=[[],[],[],[],[]],r=new Map;function n(s,o){let a=r.get(s);if(a!=null){if(a<=o)return;let l=i[a].indexOf(s);l>-1&&i[a].splice(l,1),s instanceof no&&t.delete(s.compartment)}if(r.set(s,o),Array.isArray(s))for(let l of s)n(l,o);else if(s instanceof no){if(t.has(s.compartment))throw new RangeError("Duplicate use of compartment in extensions");let l=e.get(s.compartment)||s.inner;t.set(s.compartment,l),n(l,o)}else if(s instanceof ld)n(s.inner,s.prec);else if(s instanceof ce)i[o].push(s),s.provides&&n(s.provides,o);else if(s instanceof Vr)i[o].push(s),s.facet.extensions&&n(s.facet.extensions,sO.default);else{let l=s.extension;if(!l)throw new Error(`Unrecognized extension value in extension set (${s}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);n(l,o)}}return n(O,sO.default),i.reduce((s,o)=>s.concat(o))}function Qi(O,e){if(e&1)return 2;let t=e>>1,i=O.status[t];if(i==4)throw new Error("Cyclic dependency between fields and/or facets");if(i&2)return i;O.status[t]=4;let r=O.computeSlot(O,O.config.dynamicSlots[t]);return O.status[t]=2|r}function Kr(O,e){return e&1?O.config.staticValues[e>>1]:O.values[e>>1]}const hd=v.define(),so=v.define({combine:O=>O.some(e=>e),static:!0}),cd=v.define({combine:O=>O.length?O[0]:void 0,static:!0}),fd=v.define(),dd=v.define(),ud=v.define(),Qd=v.define({combine:O=>O.length?O[0]:!1});class Vt{constructor(e,t){this.type=e,this.value=t}static define(){return new hg}}class hg{of(e){return new Vt(this,e)}}class cg{constructor(e){this.map=e}of(e){return new z(this,e)}}class z{constructor(e,t){this.type=e,this.value=t}map(e){let t=this.type.map(this.value,e);return t===void 0?void 0:t==this.value?this:new z(this.type,t)}is(e){return this.type==e}static define(e={}){return new cg(e.map||(t=>t))}static mapEffects(e,t){if(!e.length)return e;let i=[];for(let r of e){let n=r.map(t);n&&i.push(n)}return i}}z.reconfigure=z.define();z.appendConfig=z.define();class re{constructor(e,t,i,r,n,s){this.startState=e,this.changes=t,this.selection=i,this.effects=r,this.annotations=n,this.scrollIntoView=s,this._doc=null,this._state=null,i&&ad(i,t.newLength),n.some(o=>o.type==re.time)||(this.annotations=n.concat(re.time.of(Date.now())))}static create(e,t,i,r,n,s){return new re(e,t,i,r,n,s)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let t of this.annotations)if(t.type==e)return t.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let t=this.annotation(re.userEvent);return!!(t&&(t==e||t.length>e.length&&t.slice(0,e.length)==e&&t[e.length]=="."))}}re.time=Vt.define();re.userEvent=Vt.define();re.addToHistory=Vt.define();re.remote=Vt.define();function fg(O,e){let t=[];for(let i=0,r=0;;){let n,s;if(i<O.length&&(r==e.length||e[r]>=O[i]))n=O[i++],s=O[i++];else if(r<e.length)n=e[r++],s=e[r++];else return t;!t.length||t[t.length-1]<n?t.push(n,s):t[t.length-1]<s&&(t[t.length-1]=s)}}function pd(O,e,t){var i;let r,n,s;return t?(r=e.changes,n=ae.empty(e.changes.length),s=O.changes.compose(e.changes)):(r=e.changes.map(O.changes),n=O.changes.mapDesc(e.changes,!0),s=O.changes.compose(r)),{changes:s,selection:e.selection?e.selection.map(n):(i=O.selection)===null||i===void 0?void 0:i.map(r),effects:z.mapEffects(O.effects,r).concat(z.mapEffects(e.effects,n)),annotations:O.annotations.length?O.annotations.concat(e.annotations):e.annotations,scrollIntoView:O.scrollIntoView||e.scrollIntoView}}function oo(O,e,t){let i=e.selection,r=YO(e.annotations);return e.userEvent&&(r=r.concat(re.userEvent.of(e.userEvent))),{changes:e.changes instanceof ae?e.changes:ae.of(e.changes||[],t,O.facet(cd)),selection:i&&(i instanceof P?i:P.single(i.anchor,i.head)),effects:YO(e.effects),annotations:r,scrollIntoView:!!e.scrollIntoView}}function md(O,e,t){let i=oo(O,e.length?e[0]:{},O.doc.length);e.length&&e[0].filter===!1&&(t=!1);for(let n=1;n<e.length;n++){e[n].filter===!1&&(t=!1);let s=!!e[n].sequential;i=pd(i,oo(O,e[n],s?i.changes.newLength:O.doc.length),s)}let r=re.create(O,i.changes,i.selection,i.effects,i.annotations,i.scrollIntoView);return ug(t?dg(r):r)}function dg(O){let e=O.startState,t=!0;for(let r of e.facet(fd)){let n=r(O);if(n===!1){t=!1;break}Array.isArray(n)&&(t=t===!0?n:fg(t,n))}if(t!==!0){let r,n;if(t===!1)n=O.changes.invertedDesc,r=ae.empty(e.doc.length);else{let s=O.changes.filter(t);r=s.changes,n=s.filtered.mapDesc(s.changes).invertedDesc}O=re.create(e,r,O.selection&&O.selection.map(n),z.mapEffects(O.effects,n),O.annotations,O.scrollIntoView)}let i=e.facet(dd);for(let r=i.length-1;r>=0;r--){let n=i[r](O);n instanceof re?O=n:Array.isArray(n)&&n.length==1&&n[0]instanceof re?O=n[0]:O=md(e,YO(n),!1)}return O}function ug(O){let e=O.startState,t=e.facet(ud),i=O;for(let r=t.length-1;r>=0;r--){let n=t[r](O);n&&Object.keys(n).length&&(i=pd(i,oo(e,n,O.changes.newLength),!0))}return i==O?O:re.create(e,O.changes,O.selection,i.effects,i.annotations,i.scrollIntoView)}const Qg=[];function YO(O){return O==null?Qg:Array.isArray(O)?O:[O]}var te=(function(O){return O[O.Word=0]="Word",O[O.Space=1]="Space",O[O.Other=2]="Other",O})(te||(te={}));const pg=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let ao;try{ao=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function mg(O){if(ao)return ao.test(O);for(let e=0;e<O.length;e++){let t=O[e];if(/\w/.test(t)||t>"€"&&(t.toUpperCase()!=t.toLowerCase()||pg.test(t)))return!0}return!1}function gg(O){return e=>{if(!/\S/.test(e))return te.Space;if(mg(e))return te.Word;for(let t=0;t<O.length;t++)if(e.indexOf(O[t])>-1)return te.Word;return te.Other}}class j{constructor(e,t,i,r,n,s){this.config=e,this.doc=t,this.selection=i,this.values=r,this.status=e.statusTemplate.slice(),this.computeSlot=n,s&&(s._state=this);for(let o=0;o<this.config.dynamicSlots.length;o++)Qi(this,o<<1);this.computeSlot=null}field(e,t=!0){let i=this.config.address[e.id];if(i==null){if(t)throw new RangeError("Field is not present in this state");return}return Qi(this,i),Kr(this,i)}update(...e){return md(this,e,!0)}applyTransaction(e){let t=this.config,{base:i,compartments:r}=t;for(let o of e.effects)o.is(Et.reconfigure)?(t&&(r=new Map,t.compartments.forEach((a,l)=>r.set(l,a)),t=null),r.set(o.value.compartment,o.value.extension)):o.is(z.reconfigure)?(t=null,i=o.value):o.is(z.appendConfig)&&(t=null,i=YO(i).concat(o.value));let n;t?n=e.startState.values.slice():(t=Hr.resolve(i,r,this),n=new j(t,this.doc,this.selection,t.dynamicSlots.map(()=>null),(a,l)=>l.reconfigure(a,this),null).values);let s=e.startState.facet(so)?e.newSelection:e.newSelection.asSingle();new j(t,e.newDoc,s,n,(o,a)=>a.update(o,e),e)}replaceSelection(e){return typeof e=="string"&&(e=this.toText(e)),this.changeByRange(t=>({changes:{from:t.from,to:t.to,insert:e},range:P.cursor(t.from+e.length)}))}changeByRange(e){let t=this.selection,i=e(t.ranges[0]),r=this.changes(i.changes),n=[i.range],s=YO(i.effects);for(let o=1;o<t.ranges.length;o++){let a=e(t.ranges[o]),l=this.changes(a.changes),h=l.map(r);for(let f=0;f<o;f++)n[f]=n[f].map(h);let c=r.mapDesc(l,!0);n.push(a.range.map(c)),r=r.compose(h),s=z.mapEffects(s,h).concat(z.mapEffects(YO(a.effects),c))}return{changes:r,selection:P.create(n,t.mainIndex),effects:s}}changes(e=[]){return e instanceof ae?e:ae.of(e,this.doc.length,this.facet(j.lineSeparator))}toText(e){return E.of(e.split(this.facet(j.lineSeparator)||to))}sliceDoc(e=0,t=this.doc.length){return this.doc.sliceString(e,t,this.lineBreak)}facet(e){let t=this.config.address[e.id];return t==null?e.default:(Qi(this,t),Kr(this,t))}toJSON(e){let t={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(e)for(let i in e){let r=e[i];r instanceof ce&&this.config.address[r.id]!=null&&(t[i]=r.spec.toJSON(this.field(e[i]),this))}return t}static fromJSON(e,t={},i){if(!e||typeof e.doc!="string")throw new RangeError("Invalid JSON representation for EditorState");let r=[];if(i){for(let n in i)if(Object.prototype.hasOwnProperty.call(e,n)){let s=i[n],o=e[n];r.push(s.init(a=>s.spec.fromJSON(o,a)))}}return j.create({doc:e.doc,selection:P.fromJSON(e.selection),extensions:t.extensions?r.concat([t.extensions]):r})}static create(e={}){let t=Hr.resolve(e.extensions||[],new Map),i=e.doc instanceof E?e.doc:E.of((e.doc||"").split(t.staticFacet(j.lineSeparator)||to)),r=e.selection?e.selection instanceof P?e.selection:P.single(e.selection.anchor,e.selection.head):P.single(0);return ad(r,i.length),t.staticFacet(so)||(r=r.asSingle()),new j(t,i,r,t.dynamicSlots.map(()=>null),(n,s)=>s.create(n),null)}get tabSize(){return this.facet(j.tabSize)}get lineBreak(){return this.facet(j.lineSeparator)||`
@@ -1 +1 @@
1
- import{c as w,b as L,I as V,ay as z,h as H,az as I,a2 as U,aA as W,f as S,aB as j,l as q,e as A,s as M,aC as G,k as J,aD as Q,C as B,aE as X}from"./njnzCNrH.js";import{a as Y}from"./B5SnZL2l.js";const Z={trailing:!0};function $(a,e=25,i={}){if(i={...Z,...i},!Number.isFinite(e))throw new TypeError("Expected `wait` to be a finite number");let o,n,D=[],r,t;const y=(f,v)=>(r=x(a,f,v),r.finally(()=>{if(r=null,i.trailing&&t&&!n){const m=y(f,t);return t=null,m}}),r),b=function(...f){return i.trailing&&(t=f),r||new Promise(v=>{const m=!n&&i.leading;clearTimeout(n),n=setTimeout(()=>{n=null;const c=i.leading?o:y(this,f);t=null;for(const d of D)d(c);D=[]},e),m?(o=y(this,f),v(o)):D.push(v)})},s=f=>{f&&(clearTimeout(f),n=null)};return b.isPending=()=>!!n,b.cancel=()=>{s(n),D=[],t=null},b.flush=()=>{if(s(n),!t||r)return;const f=t;return t=null,y(this,f)},b}async function x(a,e,i){return await a.apply(e,i)}function ra(...a){const e=typeof a[a.length-1]=="string"?a.pop():void 0;K(a[0],a[1])&&a.unshift(e);let[i,o,n={}]=a,D=!1;const r=w(()=>L(i));if(typeof r.value!="string")throw new TypeError("[nuxt] [useAsyncData] key must be a string.");if(typeof o!="function")throw new TypeError("[nuxt] [useAsyncData] handler must be a function.");const t=V();n.server??=!0,n.default??=aa,n.getCachedData??=F,n.lazy??=!1,n.immediate??=!0,n.deep??=z.deep,n.dedupe??="cancel",n._functionName,t._asyncData[r.value];function y(){const c={cause:"initial",dedupe:n.dedupe};return t._asyncData[r.value]?._init||(c.cachedData=n.getCachedData(r.value,t,{cause:"initial"}),t._asyncData[r.value]=T(t,r.value,o,n,c.cachedData)),()=>t._asyncData[r.value].execute(c)}const b=y(),s=t._asyncData[r.value];s._deps++;const f=n.server!==!1&&t.payload.serverRendered;{let c=function(u){const l=t._asyncData[u];l?._deps&&(l._deps--,l._deps===0&&l?._off())};const d=H();if(d&&f&&n.immediate&&!d.sp&&(d.sp=[]),d&&!d._nuxtOnBeforeMountCbs){d._nuxtOnBeforeMountCbs=[];const u=d._nuxtOnBeforeMountCbs;I(()=>{u.forEach(l=>{l()}),u.splice(0,u.length)}),U(()=>u.splice(0,u.length))}const C=d&&(d._nuxtClientOnly||W(Y,!1));f&&t.isHydrating&&(s.error.value||s.data.value!==void 0)?s.status.value=s.error.value?"error":"success":d&&(!C&&t.payload.serverRendered&&t.isHydrating||n.lazy)&&n.immediate?d._nuxtOnBeforeMountCbs.push(b):n.immediate&&s.status.value!=="success"&&b();const _=q(),h=S(r,(u,l)=>{if((u||l)&&u!==l){D=!0;const p=t._asyncData[l]?.data.value!==void 0,N=t._asyncDataPromises[l]!==void 0,O={cause:"initial",dedupe:n.dedupe};if(!t._asyncData[u]?._init){let E;l&&p?E=t._asyncData[l].data.value:(E=n.getCachedData(u,t,{cause:"initial"}),O.cachedData=E),t._asyncData[u]=T(t,u,o,n,E)}t._asyncData[u]._deps++,l&&c(l),(n.immediate||p||N)&&t._asyncData[u].execute(O),X(()=>{D=!1})}},{flush:"sync"}),g=n.watch?S(n.watch,()=>{D||t._asyncData[r.value]?._execute({cause:"watch",dedupe:n.dedupe})}):()=>{};_&&j(()=>{h(),g(),c(r.value)})}const v={data:P(()=>t._asyncData[r.value]?.data),pending:P(()=>t._asyncData[r.value]?.pending),status:P(()=>t._asyncData[r.value]?.status),error:P(()=>t._asyncData[r.value]?.error),refresh:(...c)=>t._asyncData[r.value]?._init?t._asyncData[r.value].execute(...c):y()(),execute:(...c)=>v.refresh(...c),clear:()=>{const c=t._asyncData[r.value];if(c?._abortController)try{c._abortController.abort(new DOMException("AsyncData aborted by user.","AbortError"))}finally{c._abortController=void 0}R(t,r.value)}},m=Promise.resolve(t._asyncDataPromises[r.value]).then(()=>v);return Object.assign(m,v),m}function P(a){return w({get(){return a()?.value},set(e){const i=a();i&&(i.value=e)}})}function K(a,e){return!(typeof a=="string"||typeof a=="object"&&a!==null||typeof a=="function"&&typeof e=="function")}function R(a,e){e in a.payload.data&&(a.payload.data[e]=void 0),e in a.payload._errors&&(a.payload._errors[e]=void 0),a._asyncData[e]&&(a._asyncData[e].data.value=B(a._asyncData[e]._default()),a._asyncData[e].error.value=void 0,a._asyncData[e].status.value="idle"),e in a._asyncDataPromises&&(a._asyncDataPromises[e]=void 0)}function k(a,e){const i={};for(const o of e)i[o]=a[o];return i}function T(a,e,i,o,n){a.payload._errors[e]??=void 0;const D=o.getCachedData!==F,r=i,t=o.deep?A:M,y=n!==void 0,b=a.hook("app:data:refresh",async f=>{(!f||f.includes(e))&&await s.execute({cause:"refresh:hook"})}),s={data:t(y?n:o.default()),pending:w(()=>s.status.value==="pending"),error:G(a.payload._errors,e),status:M("idle"),execute:(...f)=>{const[v,m=void 0]=f,c=v&&m===void 0&&typeof v=="object"?v:{};if(a._asyncDataPromises[e]&&(c.dedupe??o.dedupe)==="defer")return a._asyncDataPromises[e];{const _="cachedData"in c?c.cachedData:o.getCachedData(e,a,{cause:c.cause??"refresh:manual"});if(_!==void 0)return a.payload.data[e]=s.data.value=_,s.error.value=void 0,s.status.value="success",Promise.resolve(_)}s._abortController&&s._abortController.abort(new DOMException("AsyncData request cancelled by deduplication","AbortError")),s._abortController=new AbortController,s.status.value="pending";const d=new AbortController,C=new Promise((_,h)=>{try{const g=c.timeout??o.timeout,u=ea([s._abortController?.signal,c?.signal],d.signal,g);if(u.aborted){const l=u.reason;h(l instanceof Error?l:new DOMException(String(l??"Aborted"),"AbortError"));return}return u.addEventListener("abort",()=>{const l=u.reason;h(l instanceof Error?l:new DOMException(String(l??"Aborted"),"AbortError"))},{once:!0,signal:d.signal}),Promise.resolve(r(a,{signal:u})).then(_,h)}catch(g){h(g)}}).then(async _=>{let h=_;o.transform&&(h=await o.transform(_)),o.pick&&(h=k(h,o.pick)),a.payload.data[e]=h,s.data.value=h,s.error.value=void 0,s.status.value="success"}).catch(_=>{if(a._asyncDataPromises[e]&&a._asyncDataPromises[e]!==C||s._abortController?.signal.aborted)return a._asyncDataPromises[e];if(typeof DOMException<"u"&&_ instanceof DOMException&&_.name==="AbortError")return s.status.value="idle",a._asyncDataPromises[e];s.error.value=Q(_),s.data.value=B(o.default()),s.status.value="error"}).finally(()=>{d.abort(),delete a._asyncDataPromises[e]});return a._asyncDataPromises[e]=C,a._asyncDataPromises[e]},_execute:$((...f)=>s.execute(...f),0,{leading:!0}),_default:o.default,_deps:0,_init:!0,_hash:void 0,_off:()=>{b(),a._asyncData[e]?._init&&(a._asyncData[e]._init=!1),D||J(()=>{a._asyncData[e]?._init||(R(a,e),s.execute=()=>Promise.resolve())})}};return s}const aa=()=>{},F=(a,e,i)=>{if(e.isHydrating)return e.payload.data[a];if(i.cause!=="refresh:manual"&&i.cause!=="refresh:hook")return e.static.data[a]};function ea(a,e,i){const o=a.filter(r=>!!r);if(typeof i=="number"&&i>=0){const r=AbortSignal.timeout?.(i);r&&o.push(r)}if(AbortSignal.any)return AbortSignal.any(o);const n=new AbortController;for(const r of o)if(r.aborted){const t=r.reason??new DOMException("Aborted","AbortError");try{n.abort(t)}catch{n.abort()}return n.signal}const D=()=>{const t=o.find(y=>y.aborted)?.reason??new DOMException("Aborted","AbortError");try{n.abort(t)}catch{n.abort()}};for(const r of o)r.addEventListener?.("abort",D,{once:!0,signal:e});return n.signal}export{ra as u};
1
+ import{c as w,b as L,I as V,ay as z,h as H,az as I,a2 as U,aA as W,f as S,aB as j,l as q,e as A,s as M,aC as G,k as J,aD as Q,C as B,aE as X}from"./2dNDtTiv.js";import{a as Y}from"./BHtY0l0l.js";const Z={trailing:!0};function $(a,e=25,i={}){if(i={...Z,...i},!Number.isFinite(e))throw new TypeError("Expected `wait` to be a finite number");let o,n,D=[],r,t;const y=(f,v)=>(r=x(a,f,v),r.finally(()=>{if(r=null,i.trailing&&t&&!n){const m=y(f,t);return t=null,m}}),r),b=function(...f){return i.trailing&&(t=f),r||new Promise(v=>{const m=!n&&i.leading;clearTimeout(n),n=setTimeout(()=>{n=null;const c=i.leading?o:y(this,f);t=null;for(const d of D)d(c);D=[]},e),m?(o=y(this,f),v(o)):D.push(v)})},s=f=>{f&&(clearTimeout(f),n=null)};return b.isPending=()=>!!n,b.cancel=()=>{s(n),D=[],t=null},b.flush=()=>{if(s(n),!t||r)return;const f=t;return t=null,y(this,f)},b}async function x(a,e,i){return await a.apply(e,i)}function ra(...a){const e=typeof a[a.length-1]=="string"?a.pop():void 0;K(a[0],a[1])&&a.unshift(e);let[i,o,n={}]=a,D=!1;const r=w(()=>L(i));if(typeof r.value!="string")throw new TypeError("[nuxt] [useAsyncData] key must be a string.");if(typeof o!="function")throw new TypeError("[nuxt] [useAsyncData] handler must be a function.");const t=V();n.server??=!0,n.default??=aa,n.getCachedData??=F,n.lazy??=!1,n.immediate??=!0,n.deep??=z.deep,n.dedupe??="cancel",n._functionName,t._asyncData[r.value];function y(){const c={cause:"initial",dedupe:n.dedupe};return t._asyncData[r.value]?._init||(c.cachedData=n.getCachedData(r.value,t,{cause:"initial"}),t._asyncData[r.value]=T(t,r.value,o,n,c.cachedData)),()=>t._asyncData[r.value].execute(c)}const b=y(),s=t._asyncData[r.value];s._deps++;const f=n.server!==!1&&t.payload.serverRendered;{let c=function(u){const l=t._asyncData[u];l?._deps&&(l._deps--,l._deps===0&&l?._off())};const d=H();if(d&&f&&n.immediate&&!d.sp&&(d.sp=[]),d&&!d._nuxtOnBeforeMountCbs){d._nuxtOnBeforeMountCbs=[];const u=d._nuxtOnBeforeMountCbs;I(()=>{u.forEach(l=>{l()}),u.splice(0,u.length)}),U(()=>u.splice(0,u.length))}const C=d&&(d._nuxtClientOnly||W(Y,!1));f&&t.isHydrating&&(s.error.value||s.data.value!==void 0)?s.status.value=s.error.value?"error":"success":d&&(!C&&t.payload.serverRendered&&t.isHydrating||n.lazy)&&n.immediate?d._nuxtOnBeforeMountCbs.push(b):n.immediate&&s.status.value!=="success"&&b();const _=q(),h=S(r,(u,l)=>{if((u||l)&&u!==l){D=!0;const p=t._asyncData[l]?.data.value!==void 0,N=t._asyncDataPromises[l]!==void 0,O={cause:"initial",dedupe:n.dedupe};if(!t._asyncData[u]?._init){let E;l&&p?E=t._asyncData[l].data.value:(E=n.getCachedData(u,t,{cause:"initial"}),O.cachedData=E),t._asyncData[u]=T(t,u,o,n,E)}t._asyncData[u]._deps++,l&&c(l),(n.immediate||p||N)&&t._asyncData[u].execute(O),X(()=>{D=!1})}},{flush:"sync"}),g=n.watch?S(n.watch,()=>{D||t._asyncData[r.value]?._execute({cause:"watch",dedupe:n.dedupe})}):()=>{};_&&j(()=>{h(),g(),c(r.value)})}const v={data:P(()=>t._asyncData[r.value]?.data),pending:P(()=>t._asyncData[r.value]?.pending),status:P(()=>t._asyncData[r.value]?.status),error:P(()=>t._asyncData[r.value]?.error),refresh:(...c)=>t._asyncData[r.value]?._init?t._asyncData[r.value].execute(...c):y()(),execute:(...c)=>v.refresh(...c),clear:()=>{const c=t._asyncData[r.value];if(c?._abortController)try{c._abortController.abort(new DOMException("AsyncData aborted by user.","AbortError"))}finally{c._abortController=void 0}R(t,r.value)}},m=Promise.resolve(t._asyncDataPromises[r.value]).then(()=>v);return Object.assign(m,v),m}function P(a){return w({get(){return a()?.value},set(e){const i=a();i&&(i.value=e)}})}function K(a,e){return!(typeof a=="string"||typeof a=="object"&&a!==null||typeof a=="function"&&typeof e=="function")}function R(a,e){e in a.payload.data&&(a.payload.data[e]=void 0),e in a.payload._errors&&(a.payload._errors[e]=void 0),a._asyncData[e]&&(a._asyncData[e].data.value=B(a._asyncData[e]._default()),a._asyncData[e].error.value=void 0,a._asyncData[e].status.value="idle"),e in a._asyncDataPromises&&(a._asyncDataPromises[e]=void 0)}function k(a,e){const i={};for(const o of e)i[o]=a[o];return i}function T(a,e,i,o,n){a.payload._errors[e]??=void 0;const D=o.getCachedData!==F,r=i,t=o.deep?A:M,y=n!==void 0,b=a.hook("app:data:refresh",async f=>{(!f||f.includes(e))&&await s.execute({cause:"refresh:hook"})}),s={data:t(y?n:o.default()),pending:w(()=>s.status.value==="pending"),error:G(a.payload._errors,e),status:M("idle"),execute:(...f)=>{const[v,m=void 0]=f,c=v&&m===void 0&&typeof v=="object"?v:{};if(a._asyncDataPromises[e]&&(c.dedupe??o.dedupe)==="defer")return a._asyncDataPromises[e];{const _="cachedData"in c?c.cachedData:o.getCachedData(e,a,{cause:c.cause??"refresh:manual"});if(_!==void 0)return a.payload.data[e]=s.data.value=_,s.error.value=void 0,s.status.value="success",Promise.resolve(_)}s._abortController&&s._abortController.abort(new DOMException("AsyncData request cancelled by deduplication","AbortError")),s._abortController=new AbortController,s.status.value="pending";const d=new AbortController,C=new Promise((_,h)=>{try{const g=c.timeout??o.timeout,u=ea([s._abortController?.signal,c?.signal],d.signal,g);if(u.aborted){const l=u.reason;h(l instanceof Error?l:new DOMException(String(l??"Aborted"),"AbortError"));return}return u.addEventListener("abort",()=>{const l=u.reason;h(l instanceof Error?l:new DOMException(String(l??"Aborted"),"AbortError"))},{once:!0,signal:d.signal}),Promise.resolve(r(a,{signal:u})).then(_,h)}catch(g){h(g)}}).then(async _=>{let h=_;o.transform&&(h=await o.transform(_)),o.pick&&(h=k(h,o.pick)),a.payload.data[e]=h,s.data.value=h,s.error.value=void 0,s.status.value="success"}).catch(_=>{if(a._asyncDataPromises[e]&&a._asyncDataPromises[e]!==C||s._abortController?.signal.aborted)return a._asyncDataPromises[e];if(typeof DOMException<"u"&&_ instanceof DOMException&&_.name==="AbortError")return s.status.value="idle",a._asyncDataPromises[e];s.error.value=Q(_),s.data.value=B(o.default()),s.status.value="error"}).finally(()=>{d.abort(),delete a._asyncDataPromises[e]});return a._asyncDataPromises[e]=C,a._asyncDataPromises[e]},_execute:$((...f)=>s.execute(...f),0,{leading:!0}),_default:o.default,_deps:0,_init:!0,_hash:void 0,_off:()=>{b(),a._asyncData[e]?._init&&(a._asyncData[e]._init=!1),D||J(()=>{a._asyncData[e]?._init||(R(a,e),s.execute=()=>Promise.resolve())})}};return s}const aa=()=>{},F=(a,e,i)=>{if(e.isHydrating)return e.payload.data[a];if(i.cause!=="refresh:manual"&&i.cause!=="refresh:hook")return e.static.data[a]};function ea(a,e,i){const o=a.filter(r=>!!r);if(typeof i=="number"&&i>=0){const r=AbortSignal.timeout?.(i);r&&o.push(r)}if(AbortSignal.any)return AbortSignal.any(o);const n=new AbortController;for(const r of o)if(r.aborted){const t=r.reason??new DOMException("Aborted","AbortError");try{n.abort(t)}catch{n.abort()}return n.signal}const D=()=>{const t=o.find(y=>y.aborted)?.reason??new DOMException("Aborted","AbortError");try{n.abort(t)}catch{n.abort()}};for(const r of o)r.addEventListener?.("abort",D,{once:!0,signal:e});return n.signal}export{ra as u};
@@ -1,4 +1,4 @@
1
- import{N as rc,c as Oe,am as Ei,K as te,cg as ic,Q as oc,R as He,S as ac,a4 as oa,U as sc,C as cc,a3 as uc,h as lc,ch as Di,a as Un,aP as fc,e as $e,ah as hc,G as Vn,f as oe,y as dc,q as Xn,D as ur,a2 as qn,aA as Vr,k as Xr}from"./njnzCNrH.js";import{a as Gn,t as pt,c as ae,n as gc,g as Oi,d as mc,f as aa,e as pc}from"./C8ut0f5H.js";import{g as vc}from"./CqkleIqs.js";const yc={base:"relative",variants:{size:{xs:"",sm:"",md:"",lg:"",xl:""},orientation:{horizontal:"inline-flex -space-x-px",vertical:"flex flex-col -space-y-px"}}},Bm={__name:"UFieldGroup",props:{as:{type:null,required:!1},size:{type:null,required:!1},orientation:{type:null,required:!1,default:"horizontal"},class:{type:null,required:!1},ui:{type:null,required:!1}},setup(t){const e=t,n=rc(),r=Oe(()=>Ei({extend:Ei(yc),...n.ui?.fieldGroup||{}}));return te(ic,Oe(()=>({orientation:e.orientation,size:e.size}))),(i,o)=>(He(),oc(cc(uc),{as:t.as,"data-orientation":t.orientation,class:sc(r.value({orientation:t.orientation,class:e.class}))},{default:ac(()=>[oa(i.$slots,"default")]),_:3},8,["as","data-orientation","class"]))}};function Ne(t,e){const n=Gn(),r=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=pt(t,e?.in),o=i.getDay(),a=(o<r?7:0)+o-r;return i.setDate(i.getDate()-a),i.setHours(0,0,0,0),i}function _n(t,e){return Ne(t,{...e,weekStartsOn:1})}function sa(t,e){const n=pt(t,e?.in),r=n.getFullYear(),i=ae(n,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);const o=_n(i),a=ae(n,0);a.setFullYear(r,0,4),a.setHours(0,0,0,0);const s=_n(a);return n.getTime()>=o.getTime()?r+1:n.getTime()>=s.getTime()?r:r-1}function $i(t,e){const n=pt(t,e?.in);return n.setHours(0,0,0,0),n}function xc(t,e,n){const[r,i]=gc(n?.in,t,e),o=$i(r),a=$i(i),s=+o-Oi(o),c=+a-Oi(a);return Math.round((s-c)/mc)}function wc(t,e){const n=sa(t,e),r=ae(t,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),_n(r)}function _c(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function bc(t){return!(!_c(t)&&typeof t!="number"||isNaN(+pt(t)))}function kc(t,e){const n=pt(t,e?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function Tc(t,e){const n=pt(t,e?.in);return xc(n,kc(n))+1}function Sc(t,e){const n=pt(t,e?.in),r=+_n(n)-+wc(n);return Math.round(r/aa)+1}function ca(t,e){const n=pt(t,e?.in),r=n.getFullYear(),i=Gn(),o=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,a=ae(e?.in||t,0);a.setFullYear(r+1,0,o),a.setHours(0,0,0,0);const s=Ne(a,e),c=ae(e?.in||t,0);c.setFullYear(r,0,o),c.setHours(0,0,0,0);const u=Ne(c,e);return+n>=+s?r+1:+n>=+u?r:r-1}function Cc(t,e){const n=Gn(),r=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,i=ca(t,e),o=ae(e?.in||t,0);return o.setFullYear(i,0,r),o.setHours(0,0,0,0),Ne(o,e)}function Mc(t,e){const n=pt(t,e?.in),r=+Ne(n,e)-+Cc(n,e);return Math.round(r/aa)+1}function P(t,e){const n=t<0?"-":"",r=Math.abs(t).toString().padStart(e,"0");return n+r}const At={y(t,e){const n=t.getFullYear(),r=n>0?n:1-n;return P(e==="yy"?r%100:r,e.length)},M(t,e){const n=t.getMonth();return e==="M"?String(n+1):P(n+1,2)},d(t,e){return P(t.getDate(),e.length)},a(t,e){const n=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return n==="am"?"a.m.":"p.m."}},h(t,e){return P(t.getHours()%12||12,e.length)},H(t,e){return P(t.getHours(),e.length)},m(t,e){return P(t.getMinutes(),e.length)},s(t,e){return P(t.getSeconds(),e.length)},S(t,e){const n=e.length,r=t.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return P(i,e.length)}},jt={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Ni={G:function(t,e,n){const r=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(t,e,n){if(e==="yo"){const r=t.getFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return At.y(t,e)},Y:function(t,e,n,r){const i=ca(t,r),o=i>0?i:1-i;if(e==="YY"){const a=o%100;return P(a,2)}return e==="Yo"?n.ordinalNumber(o,{unit:"year"}):P(o,e.length)},R:function(t,e){const n=sa(t);return P(n,e.length)},u:function(t,e){const n=t.getFullYear();return P(n,e.length)},Q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return P(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return P(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,e,n){const r=t.getMonth();switch(e){case"M":case"MM":return At.M(t,e);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(t,e,n){const r=t.getMonth();switch(e){case"L":return String(r+1);case"LL":return P(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(t,e,n,r){const i=Mc(t,r);return e==="wo"?n.ordinalNumber(i,{unit:"week"}):P(i,e.length)},I:function(t,e,n){const r=Sc(t);return e==="Io"?n.ordinalNumber(r,{unit:"week"}):P(r,e.length)},d:function(t,e,n){return e==="do"?n.ordinalNumber(t.getDate(),{unit:"date"}):At.d(t,e)},D:function(t,e,n){const r=Tc(t);return e==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):P(r,e.length)},E:function(t,e,n){const r=t.getDay();switch(e){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(t,e,n,r){const i=t.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(o);case"ee":return P(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(t,e,n,r){const i=t.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(o);case"cc":return P(o,e.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(t,e,n){const r=t.getDay(),i=r===0?7:r;switch(e){case"i":return String(i);case"ii":return P(i,e.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(t,e,n){const i=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(t,e,n){const r=t.getHours();let i;switch(r===12?i=jt.noon:r===0?i=jt.midnight:i=r/12>=1?"pm":"am",e){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(t,e,n){const r=t.getHours();let i;switch(r>=17?i=jt.evening:r>=12?i=jt.afternoon:r>=4?i=jt.morning:i=jt.night,e){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(t,e,n){if(e==="ho"){let r=t.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return At.h(t,e)},H:function(t,e,n){return e==="Ho"?n.ordinalNumber(t.getHours(),{unit:"hour"}):At.H(t,e)},K:function(t,e,n){const r=t.getHours()%12;return e==="Ko"?n.ordinalNumber(r,{unit:"hour"}):P(r,e.length)},k:function(t,e,n){let r=t.getHours();return r===0&&(r=24),e==="ko"?n.ordinalNumber(r,{unit:"hour"}):P(r,e.length)},m:function(t,e,n){return e==="mo"?n.ordinalNumber(t.getMinutes(),{unit:"minute"}):At.m(t,e)},s:function(t,e,n){return e==="so"?n.ordinalNumber(t.getSeconds(),{unit:"second"}):At.s(t,e)},S:function(t,e){return At.S(t,e)},X:function(t,e,n){const r=t.getTimezoneOffset();if(r===0)return"Z";switch(e){case"X":return Fi(r);case"XXXX":case"XX":return Ft(r);default:return Ft(r,":")}},x:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"x":return Fi(r);case"xxxx":case"xx":return Ft(r);default:return Ft(r,":")}},O:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+Ri(r,":");default:return"GMT"+Ft(r,":")}},z:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+Ri(r,":");default:return"GMT"+Ft(r,":")}},t:function(t,e,n){const r=Math.trunc(+t/1e3);return P(r,e.length)},T:function(t,e,n){return P(+t,e.length)}};function Ri(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),i=Math.trunc(r/60),o=r%60;return o===0?n+String(i):n+String(i)+e+P(o,2)}function Fi(t,e){return t%60===0?(t>0?"-":"+")+P(Math.abs(t)/60,2):Ft(t,e)}function Ft(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),i=P(Math.trunc(r/60),2),o=P(r%60,2);return n+i+e+o}const Pi=(t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});default:return e.date({width:"full"})}},ua=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}},Ac=(t,e)=>{const n=t.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return Pi(t,e);let o;switch(r){case"P":o=e.dateTime({width:"short"});break;case"PP":o=e.dateTime({width:"medium"});break;case"PPP":o=e.dateTime({width:"long"});break;default:o=e.dateTime({width:"full"});break}return o.replace("{{date}}",Pi(r,e)).replace("{{time}}",ua(i,e))},Ec={p:ua,P:Ac},Dc=/^D+$/,Oc=/^Y+$/,$c=["D","DD","YY","YYYY"];function Nc(t){return Dc.test(t)}function Rc(t){return Oc.test(t)}function Fc(t,e,n){const r=Pc(t,e,n);if(console.warn(r),$c.includes(t))throw new RangeError(r)}function Pc(t,e,n){const r=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const Ic=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Lc=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Bc=/^'([^]*?)'?$/,zc=/''/g,Wc=/[a-zA-Z]/;function zm(t,e,n){const r=Gn(),i=r.locale??pc,o=r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,a=r.weekStartsOn??r.locale?.options?.weekStartsOn??0,s=pt(t,n?.in);if(!bc(s))throw new RangeError("Invalid time value");let c=e.match(Lc).map(l=>{const f=l[0];if(f==="p"||f==="P"){const h=Ec[f];return h(l,i.formatLong)}return l}).join("").match(Ic).map(l=>{if(l==="''")return{isToken:!1,value:"'"};const f=l[0];if(f==="'")return{isToken:!1,value:Hc(l)};if(Ni[f])return{isToken:!0,value:l};if(f.match(Wc))throw new RangeError("Format string contains an unescaped latin alphabet character `"+f+"`");return{isToken:!1,value:l}});i.localize.preprocessor&&(c=i.localize.preprocessor(s,c));const u={firstWeekContainsDate:o,weekStartsOn:a,locale:i};return c.map(l=>{if(!l.isToken)return l.value;const f=l.value;(Rc(f)||Nc(f))&&Fc(f,e,String(t));const h=Ni[f[0]];return h(s,f,i.localize,u)}).join("")}function Hc(t){const e=t.match(Bc);return e?e[1].replace(zc,"'"):t}var Tr="http://www.w3.org/1999/xhtml";const Ii={svg:"http://www.w3.org/2000/svg",xhtml:Tr,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Zn(t){var e=t+="",n=e.indexOf(":");return n>=0&&(e=t.slice(0,n))!=="xmlns"&&(t=t.slice(n+1)),Ii.hasOwnProperty(e)?{space:Ii[e],local:t}:t}function Yc(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===Tr&&e.documentElement.namespaceURI===Tr?e.createElement(t):e.createElementNS(n,t)}}function Uc(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function la(t){var e=Zn(t);return(e.local?Uc:Yc)(e)}function Vc(){}function qr(t){return t==null?Vc:function(){return this.querySelector(t)}}function Xc(t){typeof t!="function"&&(t=qr(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o=e[i],a=o.length,s=r[i]=new Array(a),c,u,l=0;l<a;++l)(c=o[l])&&(u=t.call(c,c.__data__,l,o))&&("__data__"in c&&(u.__data__=c.__data__),s[l]=u);return new rt(r,this._parents)}function qc(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function Gc(){return[]}function fa(t){return t==null?Gc:function(){return this.querySelectorAll(t)}}function Zc(t){return function(){return qc(t.apply(this,arguments))}}function Qc(t){typeof t=="function"?t=Zc(t):t=fa(t);for(var e=this._groups,n=e.length,r=[],i=[],o=0;o<n;++o)for(var a=e[o],s=a.length,c,u=0;u<s;++u)(c=a[u])&&(r.push(t.call(c,c.__data__,u,a)),i.push(c));return new rt(r,i)}function ha(t){return function(){return this.matches(t)}}function da(t){return function(e){return e.matches(t)}}var Kc=Array.prototype.find;function jc(t){return function(){return Kc.call(this.children,t)}}function Jc(){return this.firstElementChild}function tu(t){return this.select(t==null?Jc:jc(typeof t=="function"?t:da(t)))}var eu=Array.prototype.filter;function nu(){return Array.from(this.children)}function ru(t){return function(){return eu.call(this.children,t)}}function iu(t){return this.selectAll(t==null?nu:ru(typeof t=="function"?t:da(t)))}function ou(t){typeof t!="function"&&(t=ha(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o=e[i],a=o.length,s=r[i]=[],c,u=0;u<a;++u)(c=o[u])&&t.call(c,c.__data__,u,o)&&s.push(c);return new rt(r,this._parents)}function ga(t){return new Array(t.length)}function au(){return new rt(this._enter||this._groups.map(ga),this._parents)}function bn(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}bn.prototype={constructor:bn,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function su(t){return function(){return t}}function cu(t,e,n,r,i,o){for(var a=0,s,c=e.length,u=o.length;a<u;++a)(s=e[a])?(s.__data__=o[a],r[a]=s):n[a]=new bn(t,o[a]);for(;a<c;++a)(s=e[a])&&(i[a]=s)}function uu(t,e,n,r,i,o,a){var s,c,u=new Map,l=e.length,f=o.length,h=new Array(l),d;for(s=0;s<l;++s)(c=e[s])&&(h[s]=d=a.call(c,c.__data__,s,e)+"",u.has(d)?i[s]=c:u.set(d,c));for(s=0;s<f;++s)d=a.call(t,o[s],s,o)+"",(c=u.get(d))?(r[s]=c,c.__data__=o[s],u.delete(d)):n[s]=new bn(t,o[s]);for(s=0;s<l;++s)(c=e[s])&&u.get(h[s])===c&&(i[s]=c)}function lu(t){return t.__data__}function fu(t,e){if(!arguments.length)return Array.from(this,lu);var n=e?uu:cu,r=this._parents,i=this._groups;typeof t!="function"&&(t=su(t));for(var o=i.length,a=new Array(o),s=new Array(o),c=new Array(o),u=0;u<o;++u){var l=r[u],f=i[u],h=f.length,d=hu(t.call(l,l&&l.__data__,u,r)),m=d.length,g=s[u]=new Array(m),v=a[u]=new Array(m),y=c[u]=new Array(h);n(l,f,g,v,y,d,e);for(var w=0,_=0,T,k;w<m;++w)if(T=g[w]){for(w>=_&&(_=w+1);!(k=v[_])&&++_<m;);T._next=k||null}}return a=new rt(a,r),a._enter=s,a._exit=c,a}function hu(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function du(){return new rt(this._exit||this._groups.map(ga),this._parents)}function gu(t,e,n){var r=this.enter(),i=this,o=this.exit();return typeof t=="function"?(r=t(r),r&&(r=r.selection())):r=r.append(t+""),e!=null&&(i=e(i),i&&(i=i.selection())),n==null?o.remove():n(o),r&&i?r.merge(i).order():i}function mu(t){for(var e=t.selection?t.selection():t,n=this._groups,r=e._groups,i=n.length,o=r.length,a=Math.min(i,o),s=new Array(i),c=0;c<a;++c)for(var u=n[c],l=r[c],f=u.length,h=s[c]=new Array(f),d,m=0;m<f;++m)(d=u[m]||l[m])&&(h[m]=d);for(;c<i;++c)s[c]=n[c];return new rt(s,this._parents)}function pu(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r=t[e],i=r.length-1,o=r[i],a;--i>=0;)(a=r[i])&&(o&&a.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(a,o),o=a);return this}function vu(t){t||(t=yu);function e(f,h){return f&&h?t(f.__data__,h.__data__):!f-!h}for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var a=n[o],s=a.length,c=i[o]=new Array(s),u,l=0;l<s;++l)(u=a[l])&&(c[l]=u);c.sort(e)}return new rt(i,this._parents).order()}function yu(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function xu(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function wu(){return Array.from(this)}function _u(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,o=r.length;i<o;++i){var a=r[i];if(a)return a}return null}function bu(){let t=0;for(const e of this)++t;return t}function ku(){return!this.node()}function Tu(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i=e[n],o=0,a=i.length,s;o<a;++o)(s=i[o])&&t.call(s,s.__data__,o,i);return this}function Su(t){return function(){this.removeAttribute(t)}}function Cu(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Mu(t,e){return function(){this.setAttribute(t,e)}}function Au(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Eu(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttribute(t):this.setAttribute(t,n)}}function Du(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function Ou(t,e){var n=Zn(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((e==null?n.local?Cu:Su:typeof e=="function"?n.local?Du:Eu:n.local?Au:Mu)(n,e))}function ma(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function $u(t){return function(){this.style.removeProperty(t)}}function Nu(t,e,n){return function(){this.style.setProperty(t,e,n)}}function Ru(t,e,n){return function(){var r=e.apply(this,arguments);r==null?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function Fu(t,e,n){return arguments.length>1?this.each((e==null?$u:typeof e=="function"?Ru:Nu)(t,e,n??"")):se(this.node(),t)}function se(t,e){return t.style.getPropertyValue(e)||ma(t).getComputedStyle(t,null).getPropertyValue(e)}function Pu(t){return function(){delete this[t]}}function Iu(t,e){return function(){this[t]=e}}function Lu(t,e){return function(){var n=e.apply(this,arguments);n==null?delete this[t]:this[t]=n}}function Bu(t,e){return arguments.length>1?this.each((e==null?Pu:typeof e=="function"?Lu:Iu)(t,e)):this.node()[t]}function pa(t){return t.trim().split(/^|\s+/)}function Gr(t){return t.classList||new va(t)}function va(t){this._node=t,this._names=pa(t.getAttribute("class")||"")}va.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function ya(t,e){for(var n=Gr(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function xa(t,e){for(var n=Gr(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function zu(t){return function(){ya(this,t)}}function Wu(t){return function(){xa(this,t)}}function Hu(t,e){return function(){(e.apply(this,arguments)?ya:xa)(this,t)}}function Yu(t,e){var n=pa(t+"");if(arguments.length<2){for(var r=Gr(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof e=="function"?Hu:e?zu:Wu)(n,e))}function Uu(){this.textContent=""}function Vu(t){return function(){this.textContent=t}}function Xu(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function qu(t){return arguments.length?this.each(t==null?Uu:(typeof t=="function"?Xu:Vu)(t)):this.node().textContent}function Gu(){this.innerHTML=""}function Zu(t){return function(){this.innerHTML=t}}function Qu(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function Ku(t){return arguments.length?this.each(t==null?Gu:(typeof t=="function"?Qu:Zu)(t)):this.node().innerHTML}function ju(){this.nextSibling&&this.parentNode.appendChild(this)}function Ju(){return this.each(ju)}function tl(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function el(){return this.each(tl)}function nl(t){var e=typeof t=="function"?t:la(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function rl(){return null}function il(t,e){var n=typeof t=="function"?t:la(t),r=e==null?rl:typeof e=="function"?e:qr(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function ol(){var t=this.parentNode;t&&t.removeChild(this)}function al(){return this.each(ol)}function sl(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function cl(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function ul(t){return this.select(t?cl:sl)}function ll(t){return arguments.length?this.property("__data__",t):this.node().__data__}function fl(t){return function(e){t.call(this,e,this.__data__)}}function hl(t){return t.trim().split(/^|\s+/).map(function(e){var n="",r=e.indexOf(".");return r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),{type:e,name:n}})}function dl(t){return function(){var e=this.__on;if(e){for(var n=0,r=-1,i=e.length,o;n<i;++n)o=e[n],(!t.type||o.type===t.type)&&o.name===t.name?this.removeEventListener(o.type,o.listener,o.options):e[++r]=o;++r?e.length=r:delete this.__on}}}function gl(t,e,n){return function(){var r=this.__on,i,o=fl(e);if(r){for(var a=0,s=r.length;a<s;++a)if((i=r[a]).type===t.type&&i.name===t.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=o,i.options=n),i.value=e;return}}this.addEventListener(t.type,o,n),i={type:t.type,name:t.name,value:e,listener:o,options:n},r?r.push(i):this.__on=[i]}}function ml(t,e,n){var r=hl(t+""),i,o=r.length,a;if(arguments.length<2){var s=this.node().__on;if(s){for(var c=0,u=s.length,l;c<u;++c)for(i=0,l=s[c];i<o;++i)if((a=r[i]).type===l.type&&a.name===l.name)return l.value}return}for(s=e?gl:dl,i=0;i<o;++i)this.each(s(r[i],e,n));return this}function wa(t,e,n){var r=ma(t),i=r.CustomEvent;typeof i=="function"?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function pl(t,e){return function(){return wa(this,t,e)}}function vl(t,e){return function(){return wa(this,t,e.apply(this,arguments))}}function yl(t,e){return this.each((typeof e=="function"?vl:pl)(t,e))}function*xl(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,o=r.length,a;i<o;++i)(a=r[i])&&(yield a)}var _a=[null];function rt(t,e){this._groups=t,this._parents=e}function Ye(){return new rt([[document.documentElement]],_a)}function wl(){return this}rt.prototype=Ye.prototype={constructor:rt,select:Xc,selectAll:Qc,selectChild:tu,selectChildren:iu,filter:ou,data:fu,enter:au,exit:du,join:gu,merge:mu,selection:wl,order:pu,sort:vu,call:xu,nodes:wu,node:_u,size:bu,empty:ku,each:Tu,attr:Ou,style:Fu,property:Bu,classed:Yu,text:qu,html:Ku,raise:Ju,lower:el,append:nl,insert:il,remove:al,clone:ul,datum:ll,on:ml,dispatch:yl,[Symbol.iterator]:xl};function kt(t){return typeof t=="string"?new rt([[document.querySelector(t)]],[document.documentElement]):new rt([[t]],_a)}function _l(t){let e;for(;e=t.sourceEvent;)t=e;return t}function kn(t,e){if(t=_l(t),e===void 0&&(e=t.currentTarget),e){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,r=r.matrixTransform(e.getScreenCTM().inverse()),[r.x,r.y]}if(e.getBoundingClientRect){var i=e.getBoundingClientRect();return[t.clientX-i.left-e.clientLeft,t.clientY-i.top-e.clientTop]}}return[t.pageX,t.pageY]}var Me;(function(t){t[t.SVG=0]="SVG",t[t.HTML=1]="HTML"})(Me||(Me={}));var ce;(function(t){t.Fit="fit",t.Extend="extend",t.FitWidth="fit_width"})(ce||(ce={}));function Ae(t,e){return t==null||e==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function bl(t,e){return t==null||e==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Zr(t){let e,n,r;t.length!==2?(e=Ae,n=(s,c)=>Ae(t(s),c),r=(s,c)=>t(s)-c):(e=t===Ae||t===bl?t:kl,n=t,r=t);function i(s,c,u=0,l=s.length){if(u<l){if(e(c,c)!==0)return l;do{const f=u+l>>>1;n(s[f],c)<0?u=f+1:l=f}while(u<l)}return u}function o(s,c,u=0,l=s.length){if(u<l){if(e(c,c)!==0)return l;do{const f=u+l>>>1;n(s[f],c)<=0?u=f+1:l=f}while(u<l)}return u}function a(s,c,u=0,l=s.length){const f=i(s,c,u,l-1);return f>u&&r(s[f-1],c)>-r(s[f],c)?f-1:f}return{left:i,center:a,right:o}}function kl(){return 0}function ba(t){return t===null?NaN:+t}const ka=Zr(Ae),Ue=ka.right,Tl=ka.left;Zr(ba).center;function Sl(t,e){let n,r;for(const i of t)i!=null&&(n===void 0?i>=i&&(n=r=i):(n>i&&(n=i),r<i&&(r=i)));return[n,r]}class Li extends Map{constructor(e,n=Al){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),e!=null)for(const[r,i]of e)this.set(r,i)}get(e){return super.get(Bi(this,e))}has(e){return super.has(Bi(this,e))}set(e,n){return super.set(Cl(this,e),n)}delete(e){return super.delete(Ml(this,e))}}function Bi({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):n}function Cl({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):(t.set(r,n),n)}function Ml({_intern:t,_key:e},n){const r=e(n);return t.has(r)&&(n=t.get(r),t.delete(r)),n}function Al(t){return t!==null&&typeof t=="object"?t.valueOf():t}const El=Math.sqrt(50),Dl=Math.sqrt(10),Ol=Math.sqrt(2);function Tn(t,e,n){const r=(e-t)/Math.max(0,n),i=Math.floor(Math.log10(r)),o=r/Math.pow(10,i),a=o>=El?10:o>=Dl?5:o>=Ol?2:1;let s,c,u;return i<0?(u=Math.pow(10,-i)/a,s=Math.round(t*u),c=Math.round(e*u),s/u<t&&++s,c/u>e&&--c,u=-u):(u=Math.pow(10,i)*a,s=Math.round(t/u),c=Math.round(e/u),s*u<t&&++s,c*u>e&&--c),c<s&&.5<=n&&n<2?Tn(t,e,n*2):[s,c,u]}function Sr(t,e,n){if(e=+e,t=+t,n=+n,!(n>0))return[];if(t===e)return[t];const r=e<t,[i,o,a]=r?Tn(e,t,n):Tn(t,e,n);if(!(o>=i))return[];const s=o-i+1,c=new Array(s);if(r)if(a<0)for(let u=0;u<s;++u)c[u]=(o-u)/-a;else for(let u=0;u<s;++u)c[u]=(o-u)*a;else if(a<0)for(let u=0;u<s;++u)c[u]=(i+u)/-a;else for(let u=0;u<s;++u)c[u]=(i+u)*a;return c}function Cr(t,e,n){return e=+e,t=+t,n=+n,Tn(t,e,n)[2]}function Mr(t,e,n){e=+e,t=+t,n=+n;const r=e<t,i=r?Cr(e,t,n):Cr(t,e,n);return(r?-1:1)*(i<0?1/-i:i)}function zi(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}function Wi(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function $l(t,e,n=ba){if(!(!(r=t.length)||isNaN(e=+e))){if(e<=0||r<2)return+n(t[0],0,t);if(e>=1)return+n(t[r-1],r-1,t);var r,i=(r-1)*e,o=Math.floor(i),a=+n(t[o],o,t),s=+n(t[o+1],o+1,t);return a+(s-a)*(i-o)}}function Nl(t,e){let n=0,r=0;if(e===void 0)for(let i of t)i!=null&&(i=+i)>=i&&(++n,r+=i);else{let i=-1;for(let o of t)(o=e(o,++i,t))!=null&&(o=+o)>=o&&(++n,r+=o)}if(n)return r/n}function*Rl(t){for(const e of t)yield*e}function Fl(t){return Array.from(Rl(t))}function Pl(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((e-t)/n))|0,o=new Array(i);++r<i;)o[r]=t+r*n;return o}function Il(t,e){let n=0;if(e===void 0)for(let r of t)(r=+r)&&(n+=r);else{let r=-1;for(let i of t)(i=+e(i,++r,t))&&(n+=i)}return n}function Ll(t,e,n){var r={},i=r.noTrailing,o=i===void 0?!1:i,a=r.noLeading,s=a===void 0?!1:a,c=r.debounceMode,u=c===void 0?void 0:c,l,f=!1,h=0;function d(){l&&clearTimeout(l)}function m(v){var y=v||{},w=y.upcomingOnly,_=w===void 0?!1:w;d(),f=!_}function g(){for(var v=arguments.length,y=new Array(v),w=0;w<v;w++)y[w]=arguments[w];var _=this,T=Date.now()-h;if(f)return;function k(){h=Date.now(),e.apply(_,y)}function p(){l=void 0}!s&&u&&!l&&k(),d(),u===void 0&&T>t?s?(h=Date.now(),o||(l=setTimeout(u?p:k,t))):k():o!==!0&&(l=setTimeout(u?p:k,u===void 0?t-T:t))}return g.cancel=m,g}var wt;(function(t){t.Left="left",t.Right="right",t.Auto="auto"})(wt||(wt={}));const ee=t=>typeof t=="number",Qr=t=>typeof t=="function",Ve=t=>Array.isArray(t),Bl=t=>t instanceof Object,Sn=t=>t.constructor.name!=="Function"&&t.constructor.name!=="Object",Hi=t=>Bl(t)&&!Ve(t)&&!Qr(t)&&!Sn(t),Wm=t=>[Object,Array].includes((t||{}).constructor)&&!Object.entries(t||{}).length,Yt=(t,e,n=[],r=new Set)=>{if(Array.isArray(t)){if(!Array.isArray(e)||t.length!==e.length)return!1;if(r.has(t))return!0;r.add(t);for(let i=0;i<t.length;i++)if(!Yt(t[i],e[i],n,r))return!1;return!0}if(t instanceof Date&&e instanceof Date)return t.getTime()===e.getTime();if(typeof t=="object"&&t!==null&&e!==null){if(typeof e!="object")return!1;if(t===e)return!0;const i=Object.keys(t).filter(a=>!n.includes(a)),o=Object.keys(e).filter(a=>!n.includes(a));if(i.length!==o.length)return!1;if(r.has(t))return!0;r.add(t);for(const a of i)if(!Yt(t[a],e[a],n,r))return!1;return!0}return t===e},Ar=t=>t.flat(),Cn=(t,e=new Map)=>{if(typeof t!="object"||t===null)return t;if(t instanceof Date)return new Date(t.getTime());if(t instanceof Array){const n=[];e.set(t,n);for(const r of t)n.push(e.has(r)?e.get(r):Cn(r,e));return n}if(Sn(t))return t;if(t instanceof Object){const n={};e.set(t,n);const r=t;return Object.keys(t).reduce((i,o)=>(i[o]=e.has(r[o])?e.get(r[o]):Cn(r[o],e),i),n),n}return t},ue=(t,e,n=new Map)=>{if(!t||!e||t===e)return t;const r=Sn(t)?t:Cn(t);return n.has(e)?n.get(e):(n.set(e,r),Object.keys(e).forEach(i=>{i==="__proto__"||i==="constructor"||(Hi(t[i])&&Hi(e[i])?r[i]=ue(t[i],e[i],n):Sn(e)?r[i]=e:r[i]=Cn(e[i]))}),r)},Mn=(t,e,n)=>Ll(e,t);function Ta(t,e,n){return Qr(e)?e(t,n):e}function zl(t,e,n){return Ta(t,e,n)}function X(t,e,n){return Ta(t,e,n)}function ve(t){return t.filter(e=>e&&!ee(e))}function Ot(t,e,n){return Math.min(Math.max(t,e),n)}function Hm(t,...e){if(!t)return[void 0,void 0];if(Ve(e)){let n=0,r=0;return t.forEach((i,o)=>{let a=0,s=0;for(const c of e){const u=X(i,c,o)||0;u>=0?a+=u:s+=u}a>r&&(r=a),s<n&&(n=s)}),[n,r]}}function Wl(t,e,...n){const r=[];let i=0,o=0;for(const a of n){const s=X(t,a,e)||0;s>=0?r.push(i+=s):r.push(o+=s)}return r}function Ym(t,e,n,r){const i=t.map((s,c)=>X(s,e,c)||0),o=n.map((s,c)=>{const u=Nl(t,(l,f)=>X(l,s,f)||0);return u===0&&Array.isArray(r)?r[c]:u<0}),a=n.map(()=>[]);return t.forEach((s,c)=>{let u=i[c],l=i[c];n.forEach((f,h)=>{const d=X(s,f,c)||0;d>=0?a[h].push([u,u+=d]):a[h].push([l,l+=d])})}),a.forEach((s,c)=>{s.isMostlyNegative=o[c]}),a}function Hl(t,...e){return t?Wi(t,(r,i)=>Wi(e,o=>X(r,o,i))):void 0}function Yl(t,...e){return t?zi(t,(r,i)=>zi(e,o=>X(r,o,i))):void 0}function lr(t,...e){return[Hl(t,...e),Yl(t,...e)]}function An(t,e,n,r=wt.Auto){if(t.length<=1)return t[0];const o=t.map((c,u)=>[c,u]).sort(([c,u],[l,f])=>X(c,n,u)-X(l,n,f)),a=o.map(([c,u])=>X(c,n,u)),s=r===wt.Right?Tl(a,e,0,t.length-1):Ue(a,e,1,t.length);return r===wt.Right?o[s][0]:r===wt.Left?o[s-1][0]:e-a[s-1]>a[s]-e?o[s][0]:o[s-1][0]}function Ul(t,e,n,r=!1){if(!n)return[];const i=t.filter((o,a)=>{const s=X(o,n,a);return s>=e[0]&&s<=e[1]});if(r){if(i.length===0){const f=An(t,e[0],n,wt.Left),h=An(t,e[1],n,wt.Right);return[f,h].filter(Boolean)}const o=i[0],a=i[i.length-1],s=t.findIndex(f=>f===o),c=t.findIndex(f=>f===a),u=Math.max(0,s-1),l=Math.min(t.length-1,c+1);return t.slice(u,l+1)}return i}var Bt=[],Vl=function(){return Bt.some(function(t){return t.activeTargets.length>0})},Xl=function(){return Bt.some(function(t){return t.skippedTargets.length>0})},Yi="ResizeObserver loop completed with undelivered notifications.",ql=function(){var t;typeof ErrorEvent=="function"?t=new ErrorEvent("error",{message:Yi}):(t=document.createEvent("Event"),t.initEvent("error",!1,!1),t.message=Yi),window.dispatchEvent(t)},Re;(function(t){t.BORDER_BOX="border-box",t.CONTENT_BOX="content-box",t.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Re||(Re={}));var zt=function(t){return Object.freeze(t)},Gl=(function(){function t(e,n){this.inlineSize=e,this.blockSize=n,zt(this)}return t})(),Sa=(function(){function t(e,n,r,i){return this.x=e,this.y=n,this.width=r,this.height=i,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,zt(this)}return t.prototype.toJSON=function(){var e=this,n=e.x,r=e.y,i=e.top,o=e.right,a=e.bottom,s=e.left,c=e.width,u=e.height;return{x:n,y:r,top:i,right:o,bottom:a,left:s,width:c,height:u}},t.fromRect=function(e){return new t(e.x,e.y,e.width,e.height)},t})(),Kr=function(t){return t instanceof SVGElement&&"getBBox"in t},Ca=function(t){if(Kr(t)){var e=t.getBBox(),n=e.width,r=e.height;return!n&&!r}var i=t,o=i.offsetWidth,a=i.offsetHeight;return!(o||a||t.getClientRects().length)},Ui=function(t){var e;if(t instanceof Element)return!0;var n=(e=t?.ownerDocument)===null||e===void 0?void 0:e.defaultView;return!!(n&&t instanceof n.Element)},Zl=function(t){switch(t.tagName){case"INPUT":if(t.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},Ee=typeof window<"u"?window:{},Ke=new WeakMap,Vi=/auto|scroll/,Ql=/^tb|vertical/,Kl=/msie|trident/i.test(Ee.navigator&&Ee.navigator.userAgent),ht=function(t){return parseFloat(t||"0")},ne=function(t,e,n){return t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=!1),new Gl((n?e:t)||0,(n?t:e)||0)},Xi=zt({devicePixelContentBoxSize:ne(),borderBoxSize:ne(),contentBoxSize:ne(),contentRect:new Sa(0,0,0,0)}),Ma=function(t,e){if(e===void 0&&(e=!1),Ke.has(t)&&!e)return Ke.get(t);if(Ca(t))return Ke.set(t,Xi),Xi;var n=getComputedStyle(t),r=Kr(t)&&t.ownerSVGElement&&t.getBBox(),i=!Kl&&n.boxSizing==="border-box",o=Ql.test(n.writingMode||""),a=!r&&Vi.test(n.overflowY||""),s=!r&&Vi.test(n.overflowX||""),c=r?0:ht(n.paddingTop),u=r?0:ht(n.paddingRight),l=r?0:ht(n.paddingBottom),f=r?0:ht(n.paddingLeft),h=r?0:ht(n.borderTopWidth),d=r?0:ht(n.borderRightWidth),m=r?0:ht(n.borderBottomWidth),g=r?0:ht(n.borderLeftWidth),v=f+u,y=c+l,w=g+d,_=h+m,T=s?t.offsetHeight-_-t.clientHeight:0,k=a?t.offsetWidth-w-t.clientWidth:0,p=i?v+w:0,b=i?y+_:0,I=r?r.width:ht(n.width)-p-k,F=r?r.height:ht(n.height)-b-T,E=I+v+k+w,Y=F+y+T+_,M=zt({devicePixelContentBoxSize:ne(Math.round(I*devicePixelRatio),Math.round(F*devicePixelRatio),o),borderBoxSize:ne(E,Y,o),contentBoxSize:ne(I,F,o),contentRect:new Sa(f,c,I,F)});return Ke.set(t,M),M},Aa=function(t,e,n){var r=Ma(t,n),i=r.borderBoxSize,o=r.contentBoxSize,a=r.devicePixelContentBoxSize;switch(e){case Re.DEVICE_PIXEL_CONTENT_BOX:return a;case Re.BORDER_BOX:return i;default:return o}},jl=(function(){function t(e){var n=Ma(e);this.target=e,this.contentRect=n.contentRect,this.borderBoxSize=zt([n.borderBoxSize]),this.contentBoxSize=zt([n.contentBoxSize]),this.devicePixelContentBoxSize=zt([n.devicePixelContentBoxSize])}return t})(),Ea=function(t){if(Ca(t))return 1/0;for(var e=0,n=t.parentNode;n;)e+=1,n=n.parentNode;return e},Jl=function(){var t=1/0,e=[];Bt.forEach(function(a){if(a.activeTargets.length!==0){var s=[];a.activeTargets.forEach(function(u){var l=new jl(u.target),f=Ea(u.target);s.push(l),u.lastReportedSize=Aa(u.target,u.observedBox),f<t&&(t=f)}),e.push(function(){a.callback.call(a.observer,s,a.observer)}),a.activeTargets.splice(0,a.activeTargets.length)}});for(var n=0,r=e;n<r.length;n++){var i=r[n];i()}return t},qi=function(t){Bt.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(i){i.isActive()&&(Ea(i.target)>t?n.activeTargets.push(i):n.skippedTargets.push(i))})})},tf=function(){var t=0;for(qi(t);Vl();)t=Jl(),qi(t);return Xl()&&ql(),t>0},fr,Da=[],ef=function(){return Da.splice(0).forEach(function(t){return t()})},nf=function(t){if(!fr){var e=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return ef()}).observe(n,r),fr=function(){n.textContent="".concat(e?e--:e++)}}Da.push(t),fr()},rf=function(t){nf(function(){requestAnimationFrame(t)})},sn=0,of=function(){return!!sn},af=250,sf={attributes:!0,characterData:!0,childList:!0,subtree:!0},Gi=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Zi=function(t){return t===void 0&&(t=0),Date.now()+t},hr=!1,cf=(function(){function t(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return t.prototype.run=function(e){var n=this;if(e===void 0&&(e=af),!hr){hr=!0;var r=Zi(e);rf(function(){var i=!1;try{i=tf()}finally{if(hr=!1,e=r-Zi(),!of())return;i?n.run(1e3):e>0?n.run(e):n.start()}})}},t.prototype.schedule=function(){this.stop(),this.run()},t.prototype.observe=function(){var e=this,n=function(){return e.observer&&e.observer.observe(document.body,sf)};document.body?n():Ee.addEventListener("DOMContentLoaded",n)},t.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Gi.forEach(function(n){return Ee.addEventListener(n,e.listener,!0)}))},t.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),Gi.forEach(function(n){return Ee.removeEventListener(n,e.listener,!0)}),this.stopped=!0)},t})(),Er=new cf,Qi=function(t){!sn&&t>0&&Er.start(),sn+=t,!sn&&Er.stop()},uf=function(t){return!Kr(t)&&!Zl(t)&&getComputedStyle(t).display==="inline"},lf=(function(){function t(e,n){this.target=e,this.observedBox=n||Re.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return t.prototype.isActive=function(){var e=Aa(this.target,this.observedBox,!0);return uf(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},t})(),ff=(function(){function t(e,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=n}return t})(),je=new WeakMap,Ki=function(t,e){for(var n=0;n<t.length;n+=1)if(t[n].target===e)return n;return-1},Je=(function(){function t(){}return t.connect=function(e,n){var r=new ff(e,n);je.set(e,r)},t.observe=function(e,n,r){var i=je.get(e),o=i.observationTargets.length===0;Ki(i.observationTargets,n)<0&&(o&&Bt.push(i),i.observationTargets.push(new lf(n,r&&r.box)),Qi(1),Er.schedule())},t.unobserve=function(e,n){var r=je.get(e),i=Ki(r.observationTargets,n),o=r.observationTargets.length===1;i>=0&&(o&&Bt.splice(Bt.indexOf(r),1),r.observationTargets.splice(i,1),Qi(-1))},t.disconnect=function(e){var n=this,r=je.get(e);r.observationTargets.slice().forEach(function(i){return n.unobserve(e,i.target)}),r.activeTargets.splice(0,r.activeTargets.length)},t})(),hf=(function(){function t(e){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof e!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");Je.connect(this,e)}return t.prototype.observe=function(e,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Ui(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Je.observe(this,e,n)},t.prototype.unobserve=function(e){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Ui(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Je.unobserve(this,e)},t.prototype.disconnect=function(){Je.disconnect(this)},t.toString=function(){return"function ResizeObserver () { [polyfill code] }"},t})();const df=globalThis.ResizeObserver||hf,Oa={duration:void 0,margin:{top:0,bottom:0,left:0,right:0},padding:{top:0,bottom:0,left:0,right:0},sizing:ce.Fit,width:void 0,height:void 0,svgDefs:void 0,ariaLabel:void 0};class Fe{constructor(e){this._defaultConfig=Oa,this._isFirstRender=!0,this._renderAnimationFrameId=null,this._container=e;const n=kt(this._container);n.attr("role","figure"),this.svg=n.append("svg").style("display","block").attr("xmlns","http://www.w3.org/2000/svg").attr("height",Fe.DEFAULT_CONTAINER_HEIGHT).attr("aria-hidden",!0),this._svgDefs=this.svg.append("defs"),this._svgDefsExternal=this.svg.append("defs"),this.element=this.svg.node()}updateContainer(e){var n;this.prevConfig=this.config,this.config=ue(this._defaultConfig,e),e?.svgDefs!==((n=this.prevConfig)===null||n===void 0?void 0:n.svgDefs)&&(this._svgDefsExternal.selectAll("*").remove(),this._svgDefsExternal.html(e.svgDefs))}_preRender(){}_render(e){const{config:n}=this;kt(this._container).attr("aria-label",n.ariaLabel),this._isFirstRender=!1}render(e=this.config.duration){const n=this.config.width||this.containerWidth,r=this.config.height||this.containerHeight;this.svg.attr("width",n).attr("height",r),this._resizeObserver||this._setUpResizeObserver(),cancelAnimationFrame(this._renderAnimationFrameId),this._renderAnimationFrameId=requestAnimationFrame(()=>{this._preRender(),this._render(e)})}get containerWidth(){return this.config.width?this.element.clientWidth:this._container.clientWidth||this._container.getBoundingClientRect().width}get containerHeight(){return this.config.height?this.element.clientHeight:this._container.clientHeight||this._container.getBoundingClientRect().height||Fe.DEFAULT_CONTAINER_HEIGHT}get width(){return Ot(this.containerWidth-this.config.margin.left-this.config.margin.right,0,Number.POSITIVE_INFINITY)}get height(){return Ot(this.containerHeight-this.config.margin.top-this.config.margin.bottom,0,Number.POSITIVE_INFINITY)}_removeAllChildren(){for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild)}_onResize(){const{config:e}=this;(e.sizing===ce.Fit||e.sizing===ce.FitWidth)&&this.render(0)}_setUpResizeObserver(){if(this._resizeObserver)return;const e=this._container.getBoundingClientRect();this._containerSize={width:e.width,height:e.height},this._resizeObserver=new df((n,r)=>{cancelAnimationFrame(this._resizeObserverAnimationFrameId),this._resizeObserverAnimationFrameId=requestAnimationFrame(()=>{const i=this._container.getBoundingClientRect(),o={width:i.width,height:i.height};!Yt(this._containerSize,o)&&o.width&&o.height&&(this._containerSize=o,this._onResize())})}),this._resizeObserver.observe(this._container)}destroy(){var e;cancelAnimationFrame(this._renderAnimationFrameId),cancelAnimationFrame(this._resizeObserverAnimationFrameId),(e=this._resizeObserver)===null||e===void 0||e.disconnect(),this.svg.remove()}}Fe.DEFAULT_CONTAINER_HEIGHT=300;function gf(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}function mf(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),t.nonce!==void 0&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}var pf=(function(){function t(n){var r=this;this._insertTag=function(i){var o;r.tags.length===0?r.insertionPoint?o=r.insertionPoint.nextSibling:r.prepend?o=r.container.firstChild:o=r.before:o=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(i,o),r.tags.push(i)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var e=t.prototype;return e.hydrate=function(r){r.forEach(this._insertTag)},e.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(mf(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var o=gf(i);try{o.insertRule(r,o.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(r));this.ctr++},e.flush=function(){this.tags.forEach(function(r){var i;return(i=r.parentNode)==null?void 0:i.removeChild(r)}),this.tags=[],this.ctr=0},t})(),Z="-ms-",En="-moz-",N="-webkit-",$a="comm",jr="rule",Jr="decl",vf="@import",Na="@keyframes",yf="@layer",xf=Math.abs,Qn=String.fromCharCode,wf=Object.assign;function _f(t,e){return V(t,0)^45?(((e<<2^V(t,0))<<2^V(t,1))<<2^V(t,2))<<2^V(t,3):0}function Ra(t){return t.trim()}function bf(t,e){return(t=e.exec(t))?t[0]:t}function R(t,e,n){return t.replace(e,n)}function Dr(t,e){return t.indexOf(e)}function V(t,e){return t.charCodeAt(e)|0}function Pe(t,e,n){return t.slice(e,n)}function dt(t){return t.length}function ti(t){return t.length}function tn(t,e){return e.push(t),t}function kf(t,e){return t.map(e).join("")}var Kn=1,le=1,Fa=0,J=0,z=0,me="";function jn(t,e,n,r,i,o,a){return{value:t,root:e,parent:n,type:r,props:i,children:o,line:Kn,column:le,length:a,return:""}}function ye(t,e){return wf(jn("",null,null,"",null,null,0),t,{length:-t.length},e)}function Tf(){return z}function Sf(){return z=J>0?V(me,--J):0,le--,z===10&&(le=1,Kn--),z}function nt(){return z=J<Fa?V(me,J++):0,le++,z===10&&(le=1,Kn++),z}function gt(){return V(me,J)}function cn(){return J}function Xe(t,e){return Pe(me,t,e)}function Ie(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Pa(t){return Kn=le=1,Fa=dt(me=t),J=0,[]}function Ia(t){return me="",t}function un(t){return Ra(Xe(J-1,Or(t===91?t+2:t===40?t+1:t)))}function Cf(t){for(;(z=gt())&&z<33;)nt();return Ie(t)>2||Ie(z)>3?"":" "}function Mf(t,e){for(;--e&&nt()&&!(z<48||z>102||z>57&&z<65||z>70&&z<97););return Xe(t,cn()+(e<6&&gt()==32&&nt()==32))}function Or(t){for(;nt();)switch(z){case t:return J;case 34:case 39:t!==34&&t!==39&&Or(z);break;case 40:t===41&&Or(t);break;case 92:nt();break}return J}function Af(t,e){for(;nt()&&t+z!==57;)if(t+z===84&&gt()===47)break;return"/*"+Xe(e,J-1)+"*"+Qn(t===47?t:nt())}function Ef(t){for(;!Ie(gt());)nt();return Xe(t,J)}function Df(t){return Ia(ln("",null,null,null,[""],t=Pa(t),0,[0],t))}function ln(t,e,n,r,i,o,a,s,c){for(var u=0,l=0,f=a,h=0,d=0,m=0,g=1,v=1,y=1,w=0,_="",T=i,k=o,p=r,b=_;v;)switch(m=w,w=nt()){case 40:if(m!=108&&V(b,f-1)==58){Dr(b+=R(un(w),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:b+=un(w);break;case 9:case 10:case 13:case 32:b+=Cf(m);break;case 92:b+=Mf(cn()-1,7);continue;case 47:switch(gt()){case 42:case 47:tn(Of(Af(nt(),cn()),e,n),c);break;default:b+="/"}break;case 123*g:s[u++]=dt(b)*y;case 125*g:case 59:case 0:switch(w){case 0:case 125:v=0;case 59+l:y==-1&&(b=R(b,/\f/g,"")),d>0&&dt(b)-f&&tn(d>32?Ji(b+";",r,n,f-1):Ji(R(b," ","")+";",r,n,f-2),c);break;case 59:b+=";";default:if(tn(p=ji(b,e,n,u,l,i,s,_,T=[],k=[],f),o),w===123)if(l===0)ln(b,e,p,p,T,o,f,s,k);else switch(h===99&&V(b,3)===110?100:h){case 100:case 108:case 109:case 115:ln(t,p,p,r&&tn(ji(t,p,p,0,0,i,s,_,i,T=[],f),k),i,k,f,s,r?T:k);break;default:ln(b,p,p,p,[""],k,0,s,k)}}u=l=d=0,g=y=1,_=b="",f=a;break;case 58:f=1+dt(b),d=m;default:if(g<1){if(w==123)--g;else if(w==125&&g++==0&&Sf()==125)continue}switch(b+=Qn(w),w*g){case 38:y=l>0?1:(b+="\f",-1);break;case 44:s[u++]=(dt(b)-1)*y,y=1;break;case 64:gt()===45&&(b+=un(nt())),h=gt(),l=f=dt(_=b+=Ef(cn())),w++;break;case 45:m===45&&dt(b)==2&&(g=0)}}return o}function ji(t,e,n,r,i,o,a,s,c,u,l){for(var f=i-1,h=i===0?o:[""],d=ti(h),m=0,g=0,v=0;m<r;++m)for(var y=0,w=Pe(t,f+1,f=xf(g=a[m])),_=t;y<d;++y)(_=Ra(g>0?h[y]+" "+w:R(w,/&\f/g,h[y])))&&(c[v++]=_);return jn(t,e,n,i===0?jr:s,c,u,l)}function Of(t,e,n){return jn(t,e,n,$a,Qn(Tf()),Pe(t,2,-2),0)}function Ji(t,e,n,r){return jn(t,e,n,Jr,Pe(t,0,r),Pe(t,r+1,-1),r)}function re(t,e){for(var n="",r=ti(t),i=0;i<r;i++)n+=e(t[i],i,t,e)||"";return n}function $f(t,e,n,r){switch(t.type){case yf:if(t.children.length)break;case vf:case Jr:return t.return=t.return||t.value;case $a:return"";case Na:return t.return=t.value+"{"+re(t.children,r)+"}";case jr:t.value=t.props.join(",")}return dt(n=re(t.children,r))?t.return=t.value+"{"+n+"}":""}function Nf(t){var e=ti(t);return function(n,r,i,o){for(var a="",s=0;s<e;s++)a+=t[s](n,r,i,o)||"";return a}}function Rf(t){return function(e){e.root||(e=e.return)&&t(e)}}function Ff(t){var e=Object.create(null);return function(n){return e[n]===void 0&&(e[n]=t(n)),e[n]}}var Pf=function(e,n,r){for(var i=0,o=0;i=o,o=gt(),i===38&&o===12&&(n[r]=1),!Ie(o);)nt();return Xe(e,J)},If=function(e,n){var r=-1,i=44;do switch(Ie(i)){case 0:i===38&&gt()===12&&(n[r]=1),e[r]+=Pf(J-1,n,r);break;case 2:e[r]+=un(i);break;case 4:if(i===44){e[++r]=gt()===58?"&\f":"",n[r]=e[r].length;break}default:e[r]+=Qn(i)}while(i=nt());return e},Lf=function(e,n){return Ia(If(Pa(e),n))},to=new WeakMap,Bf=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var n=e.value,r=e.parent,i=e.column===r.column&&e.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(e.props.length===1&&n.charCodeAt(0)!==58&&!to.get(r))&&!i){to.set(e,!0);for(var o=[],a=Lf(n,o),s=r.props,c=0,u=0;c<a.length;c++)for(var l=0;l<s.length;l++,u++)e.props[u]=o[c]?a[c].replace(/&\f/g,s[l]):s[l]+" "+a[c]}}},zf=function(e){if(e.type==="decl"){var n=e.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(e.return="",e.value="")}};function La(t,e){switch(_f(t,e)){case 5103:return N+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return N+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return N+t+En+t+Z+t+t;case 6828:case 4268:return N+t+Z+t+t;case 6165:return N+t+Z+"flex-"+t+t;case 5187:return N+t+R(t,/(\w+).+(:[^]+)/,N+"box-$1$2"+Z+"flex-$1$2")+t;case 5443:return N+t+Z+"flex-item-"+R(t,/flex-|-self/,"")+t;case 4675:return N+t+Z+"flex-line-pack"+R(t,/align-content|flex-|-self/,"")+t;case 5548:return N+t+Z+R(t,"shrink","negative")+t;case 5292:return N+t+Z+R(t,"basis","preferred-size")+t;case 6060:return N+"box-"+R(t,"-grow","")+N+t+Z+R(t,"grow","positive")+t;case 4554:return N+R(t,/([^-])(transform)/g,"$1"+N+"$2")+t;case 6187:return R(R(R(t,/(zoom-|grab)/,N+"$1"),/(image-set)/,N+"$1"),t,"")+t;case 5495:case 3959:return R(t,/(image-set\([^]*)/,N+"$1$`$1");case 4968:return R(R(t,/(.+:)(flex-)?(.*)/,N+"box-pack:$3"+Z+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+N+t+t;case 4095:case 3583:case 4068:case 2532:return R(t,/(.+)-inline(.+)/,N+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(dt(t)-1-e>6)switch(V(t,e+1)){case 109:if(V(t,e+4)!==45)break;case 102:return R(t,/(.+:)(.+)-([^]+)/,"$1"+N+"$2-$3$1"+En+(V(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~Dr(t,"stretch")?La(R(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(V(t,e+1)!==115)break;case 6444:switch(V(t,dt(t)-3-(~Dr(t,"!important")&&10))){case 107:return R(t,":",":"+N)+t;case 101:return R(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+N+(V(t,14)===45?"inline-":"")+"box$3$1"+N+"$2$3$1"+Z+"$2box$3")+t}break;case 5936:switch(V(t,e+11)){case 114:return N+t+Z+R(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return N+t+Z+R(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return N+t+Z+R(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return N+t+Z+t+t}return t}var Wf=function(e,n,r,i){if(e.length>-1&&!e.return)switch(e.type){case Jr:e.return=La(e.value,e.length);break;case Na:return re([ye(e,{value:R(e.value,"@","@"+N)})],i);case jr:if(e.length)return kf(e.props,function(o){switch(bf(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return re([ye(e,{props:[R(o,/:(read-\w+)/,":"+En+"$1")]})],i);case"::placeholder":return re([ye(e,{props:[R(o,/:(plac\w+)/,":"+N+"input-$1")]}),ye(e,{props:[R(o,/:(plac\w+)/,":"+En+"$1")]}),ye(e,{props:[R(o,/:(plac\w+)/,Z+"input-$1")]})],i)}return""})}},Hf=[Wf],Yf=function(e){var n=e.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(g){var v=g.getAttribute("data-emotion");v.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var i=e.stylisPlugins||Hf,o={},a,s=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var v=g.getAttribute("data-emotion").split(" "),y=1;y<v.length;y++)o[v[y]]=!0;s.push(g)});var c,u=[Bf,zf];{var l,f=[$f,Rf(function(g){l.insert(g)})],h=Nf(u.concat(i,f)),d=function(v){return re(Df(v),h)};c=function(v,y,w,_){l=w,d(v?v+"{"+y.styles+"}":y.styles),_&&(m.inserted[y.name]=!0)}}var m={key:n,sheet:new pf({key:n,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:o,registered:{},insert:c};return m.sheet.hydrate(s),m};function Uf(t){for(var e=0,n,r=0,i=t.length;i>=4;++r,i-=4)n=t.charCodeAt(r)&255|(t.charCodeAt(++r)&255)<<8|(t.charCodeAt(++r)&255)<<16|(t.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,e=(n&65535)*1540483477+((n>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(i){case 3:e^=(t.charCodeAt(r+2)&255)<<16;case 2:e^=(t.charCodeAt(r+1)&255)<<8;case 1:e^=t.charCodeAt(r)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var Vf={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Xf=/[A-Z]|^ms/g,qf=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ba=function(e){return e.charCodeAt(1)===45},eo=function(e){return e!=null&&typeof e!="boolean"},dr=Ff(function(t){return Ba(t)?t:t.replace(Xf,"-$&").toLowerCase()}),no=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(qf,function(r,i,o){return $t={name:i,styles:o,next:$t},i})}return Vf[e]!==1&&!Ba(e)&&typeof n=="number"&&n!==0?n+"px":n};function Dn(t,e,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return $t={name:i.name,styles:i.styles,next:$t},i.name;var o=n;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)$t={name:a.name,styles:a.styles,next:$t},a=a.next;var s=o.styles+";";return s}return Gf(t,e,n)}}var c=n;if(e==null)return c;var u=e[c];return u!==void 0?u:c}function Gf(t,e,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=Dn(t,e,n[i])+";";else for(var o in n){var a=n[o];if(typeof a!="object"){var s=a;e!=null&&e[s]!==void 0?r+=o+"{"+e[s]+"}":eo(s)&&(r+=dr(o)+":"+no(o,s)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(e==null||e[a[0]]===void 0))for(var c=0;c<a.length;c++)eo(a[c])&&(r+=dr(o)+":"+no(o,a[c])+";");else{var u=Dn(t,e,a);switch(o){case"animation":case"animationName":{r+=dr(o)+":"+u+";";break}default:r+=o+"{"+u+"}"}}}return r}var ro=/label:\s*([^\s;{]+)\s*(;|$)/g,$t;function gr(t,e,n){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var r=!0,i="";$t=void 0;var o=t[0];if(o==null||o.raw===void 0)r=!1,i+=Dn(n,e,o);else{var a=o;i+=a[0]}for(var s=1;s<t.length;s++)if(i+=Dn(n,e,t[s]),r){var c=o;i+=c[s]}ro.lastIndex=0;for(var u="",l;(l=ro.exec(i))!==null;)u+="-"+l[1];var f=Uf(i)+u;return{name:f,styles:i,next:$t}}function za(t,e,n){var r="";return n.split(" ").forEach(function(i){t[i]!==void 0?e.push(t[i]+";"):i&&(r+=i+" ")}),r}var Zf=function(e,n,r){var i=e.key+"-"+n.name;e.registered[i]===void 0&&(e.registered[i]=n.styles)},Qf=function(e,n,r){Zf(e,n);var i=e.key+"-"+n.name;if(e.inserted[n.name]===void 0){var o=n;do e.insert(n===o?"."+i:"",o,e.sheet,!0),o=o.next;while(o!==void 0)}};function io(t,e){if(t.inserted[e.name]===void 0)return t.insert("",e,t.sheet,!0)}function oo(t,e,n){var r=[],i=za(t,r,n);return r.length<2?n:i+e(r)}var Kf=function(e){var n=Yf(e);n.sheet.speedy=function(s){this.isSpeedy=s},n.compat=!0;var r=function(){for(var c=arguments.length,u=new Array(c),l=0;l<c;l++)u[l]=arguments[l];var f=gr(u,n.registered,void 0);return Qf(n,f),n.key+"-"+f.name},i=function(){for(var c=arguments.length,u=new Array(c),l=0;l<c;l++)u[l]=arguments[l];var f=gr(u,n.registered),h="animation-"+f.name;return io(n,{name:f.name,styles:"@keyframes "+h+"{"+f.styles+"}"}),h},o=function(){for(var c=arguments.length,u=new Array(c),l=0;l<c;l++)u[l]=arguments[l];var f=gr(u,n.registered);io(n,f)},a=function(){for(var c=arguments.length,u=new Array(c),l=0;l<c;l++)u[l]=arguments[l];return oo(n.registered,r,jf(u))};return{css:r,cx:a,injectGlobal:o,keyframes:i,hydrate:function(c){c.forEach(function(u){n.inserted[u]=!0})},flush:function(){n.registered={},n.inserted={},n.sheet.flush()},sheet:n.sheet,cache:n,getRegisteredStyles:za.bind(null,n.registered),merge:oo.bind(null,n.registered,r)}},jf=function t(e){for(var n="",r=0;r<e.length;r++){var i=e[r];if(i!=null){var o=void 0;switch(typeof i){case"boolean":break;case"object":{if(Array.isArray(i))o=t(i);else{o="";for(var a in i)i[a]&&a&&(o&&(o+=" "),o+=a)}break}default:o=i}o&&(n&&(n+=" "),n+=o)}}return n},Wa=Kf({key:"css"}),Jn=Wa.injectGlobal,W=Wa.css,mr,ao;function Jf(){return ao||(ao=1,mr=function(e,n){n||(n=[0,""]),e=String(e);var r=parseFloat(e,10);return n[0]=r,n[1]=e.match(/[\d.\-\+]*\s*(.*)/)[1]||"",n}),mr}var pr,so;function th(){if(so)return pr;so=1;var t=Jf();pr=i;var e=r("in",document.body);function n(o,a){var s=t(getComputedStyle(o).getPropertyValue(a));return s[0]*i(s[1],o)}function r(o,a){var s=document.createElement("div");s.style.height="128"+o,a.appendChild(s);var c=n(s,"height")/128;return a.removeChild(s),c}function i(o,a){if(!o)return null;switch(a=a||document.body,o=(o+""||"px").trim().toLowerCase(),(a===window||a===document)&&(a=document.body),o){case"%":return a.clientHeight/100;case"ch":case"ex":return r(o,a);case"em":return n(a,"font-size");case"rem":return n(document.body,"font-size");case"vw":return window.innerWidth/100;case"vh":return window.innerHeight/100;case"vmin":return Math.min(window.innerWidth,window.innerHeight)/100;case"vmax":return Math.max(window.innerWidth,window.innerHeight)/100;case"in":return e;case"cm":return e/2.54;case"mm":return e/25.4;case"pt":return e/72;case"pc":return e/6;case"px":return 1}var s=t(o);if(!isNaN(s[0])&&s[1]){var c=i(s[1],a);return typeof c=="number"?s[0]*c:null}return null}return pr}th();function Ha(){const t=()=>Math.floor((1+crypto.getRandomValues(new Uint32Array(1))[0])*65536).toString(16).substring(1);return`${t()+t()}-${t()}-${t()}-${t()}-${t()}${t()}${t()}`}function eh(t,e){const n=t.substr(4,t.length-5);return getComputedStyle(e).getPropertyValue(n)}function nh(t,e,n=0){const[r,i,o,a]=[t.x+n,t.y+t.height-2*n,t.x+t.width-2*n,t.y+n],[s,c,u,l]=[e.x+n,e.y+e.height-2*n,e.x+e.width-2*n,e.y+n];return!(i<l||c<a||o<s||u<r)}function ei(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function Ya(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function qe(){}var Le=.7,On=1/Le,ie="\\s*([+-]?\\d+)\\s*",Be="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",mt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",rh=/^#([0-9a-f]{3,8})$/,ih=new RegExp(`^rgb\\(${ie},${ie},${ie}\\)$`),oh=new RegExp(`^rgb\\(${mt},${mt},${mt}\\)$`),ah=new RegExp(`^rgba\\(${ie},${ie},${ie},${Be}\\)$`),sh=new RegExp(`^rgba\\(${mt},${mt},${mt},${Be}\\)$`),ch=new RegExp(`^hsl\\(${Be},${mt},${mt}\\)$`),uh=new RegExp(`^hsla\\(${Be},${mt},${mt},${Be}\\)$`),co={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};ei(qe,Ut,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:uo,formatHex:uo,formatHex8:lh,formatHsl:fh,formatRgb:lo,toString:lo});function uo(){return this.rgb().formatHex()}function lh(){return this.rgb().formatHex8()}function fh(){return Ua(this).formatHsl()}function lo(){return this.rgb().formatRgb()}function Ut(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=rh.exec(t))?(n=e[1].length,e=parseInt(e[1],16),n===6?fo(e):n===3?new K(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?en(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?en(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=ih.exec(t))?new K(e[1],e[2],e[3],1):(e=oh.exec(t))?new K(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=ah.exec(t))?en(e[1],e[2],e[3],e[4]):(e=sh.exec(t))?en(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=ch.exec(t))?mo(e[1],e[2]/100,e[3]/100,1):(e=uh.exec(t))?mo(e[1],e[2]/100,e[3]/100,e[4]):co.hasOwnProperty(t)?fo(co[t]):t==="transparent"?new K(NaN,NaN,NaN,0):null}function fo(t){return new K(t>>16&255,t>>8&255,t&255,1)}function en(t,e,n,r){return r<=0&&(t=e=n=NaN),new K(t,e,n,r)}function hh(t){return t instanceof qe||(t=Ut(t)),t?(t=t.rgb(),new K(t.r,t.g,t.b,t.opacity)):new K}function $r(t,e,n,r){return arguments.length===1?hh(t):new K(t,e,n,r??1)}function K(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}ei(K,$r,Ya(qe,{brighter(t){return t=t==null?On:Math.pow(On,t),new K(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?Le:Math.pow(Le,t),new K(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new K(Wt(this.r),Wt(this.g),Wt(this.b),$n(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:ho,formatHex:ho,formatHex8:dh,formatRgb:go,toString:go}));function ho(){return`#${Pt(this.r)}${Pt(this.g)}${Pt(this.b)}`}function dh(){return`#${Pt(this.r)}${Pt(this.g)}${Pt(this.b)}${Pt((isNaN(this.opacity)?1:this.opacity)*255)}`}function go(){const t=$n(this.opacity);return`${t===1?"rgb(":"rgba("}${Wt(this.r)}, ${Wt(this.g)}, ${Wt(this.b)}${t===1?")":`, ${t})`}`}function $n(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Wt(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Pt(t){return t=Wt(t),(t<16?"0":"")+t.toString(16)}function mo(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new st(t,e,n,r)}function Ua(t){if(t instanceof st)return new st(t.h,t.s,t.l,t.opacity);if(t instanceof qe||(t=Ut(t)),!t)return new st;if(t instanceof st)return t;t=t.rgb();var e=t.r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),a=NaN,s=o-i,c=(o+i)/2;return s?(e===o?a=(n-r)/s+(n<r)*6:n===o?a=(r-e)/s+2:a=(e-n)/s+4,s/=c<.5?o+i:2-o-i,a*=60):s=c>0&&c<1?0:a,new st(a,s,c,t.opacity)}function ni(t,e,n,r){return arguments.length===1?Ua(t):new st(t,e,n,r??1)}function st(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}ei(st,ni,Ya(qe,{brighter(t){return t=t==null?On:Math.pow(On,t),new st(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?Le:Math.pow(Le,t),new st(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new K(vr(t>=240?t-240:t+120,i,r),vr(t,i,r),vr(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new st(po(this.h),nn(this.s),nn(this.l),$n(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=$n(this.opacity);return`${t===1?"hsl(":"hsla("}${po(this.h)}, ${nn(this.s)*100}%, ${nn(this.l)*100}%${t===1?")":`, ${t})`}`}}));function po(t){return t=(t||0)%360,t<0?t+360:t}function nn(t){return Math.max(0,Math.min(1,t||0))}function vr(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}const ke=globalThis?.UNOVIS_COLORS||["#4D8CFD","#FF6B7E","#F4B83E","#A6CC74","#00C19A","#6859BE"],gh=globalThis?.UNOVIS_COLORS_DARK||["#4D8CFD","#FF6B7E","#FFC16D","#A6CC74","#00C19A","#7887E0"],Et=t=>`--vis-${ee(t)?`color${t%ke.length}`:t}`;function mh(t,e=.4){const n=ni(t);return n.l=n.l*(1+e),n.formatHex()}function ph(t,e=.4,n=.6){const r=ni(t);return r.s=r.s*(1-n),r.l=r.l*(1-e),r.formatHex()}const Nn=10,Nr=[{id:"stripes-diagonal",svg:'<path d="M-1,1 l2,-2 M0,10 l10,-10 M9,11 l2,-2" stroke="#000"/>'},{id:"dots",svg:'<path d="m0-1.5a1 1 0 010 3m10-3a1 1 0 000 3M5 3.5a1 1 0 010 3 1 1 0 010-3M0 8.5 a1 1 0 010 3m10-3a1 1 0 000 3" fill"#000"/>'},{id:"stripes-vertical",svg:'<path d="M 5,-1 L5,11" stroke="#000"/>'},{id:"crosshatch",svg:'<path d="M0 0L10 10ZM10 0L0 10Z" stroke="#000"/>'},{id:"waves",svg:'<path d="M0 4Q2.5 1 5 4 7.5 7 10 4v2Q7.5 9 5 6 2.5 3 0 6Z" fill="#000"/>'},{id:"circles",svg:'<circle cx="5" cy="5" r="3" stroke="#000" fill="#fff"/>'}],Rr=[{id:"circle",marker:'<circle cx="5" cy="5" r="5"/>',dashArray:[]},{id:"triangle",marker:'<path d="M5,0 L10,9 L0,9Z">',dashArray:[9,1]},{id:"diamond",marker:'<path d="M 0 5 L5 0 L 10 5 L 5 10 L 0 5Z">',dashArray:[2]},{id:"arrow",marker:'<path d="M4 0 0 0 6 5 0 10 4 10 10 5Z">',dashArray:[2,3,8,3]},{id:"square",marker:'<rect x="1" y="1" width="8" height="8"/>',dashArray:[6]},{id:"star",marker:'<path d="m2 9 3-9 3 9L0 3h10Z"/>',dashArray:[1,6]}];function Dt(t){return`vis-${`pattern-${t.svg?"fill":"marker"}`}-${t.id}`}const vh=t=>`<mask id="${Dt(t)}">
1
+ import{N as rc,c as Oe,am as Ei,K as te,cg as ic,Q as oc,R as He,S as ac,a4 as oa,U as sc,C as cc,a3 as uc,h as lc,ch as Di,a as Un,aP as fc,e as $e,ah as hc,G as Vn,f as oe,y as dc,q as Xn,D as ur,a2 as qn,aA as Vr,k as Xr}from"./2dNDtTiv.js";import{a as Gn,t as pt,c as ae,n as gc,g as Oi,d as mc,f as aa,e as pc}from"./C8ut0f5H.js";import{g as vc}from"./CqkleIqs.js";const yc={base:"relative",variants:{size:{xs:"",sm:"",md:"",lg:"",xl:""},orientation:{horizontal:"inline-flex -space-x-px",vertical:"flex flex-col -space-y-px"}}},Bm={__name:"UFieldGroup",props:{as:{type:null,required:!1},size:{type:null,required:!1},orientation:{type:null,required:!1,default:"horizontal"},class:{type:null,required:!1},ui:{type:null,required:!1}},setup(t){const e=t,n=rc(),r=Oe(()=>Ei({extend:Ei(yc),...n.ui?.fieldGroup||{}}));return te(ic,Oe(()=>({orientation:e.orientation,size:e.size}))),(i,o)=>(He(),oc(cc(uc),{as:t.as,"data-orientation":t.orientation,class:sc(r.value({orientation:t.orientation,class:e.class}))},{default:ac(()=>[oa(i.$slots,"default")]),_:3},8,["as","data-orientation","class"]))}};function Ne(t,e){const n=Gn(),r=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=pt(t,e?.in),o=i.getDay(),a=(o<r?7:0)+o-r;return i.setDate(i.getDate()-a),i.setHours(0,0,0,0),i}function _n(t,e){return Ne(t,{...e,weekStartsOn:1})}function sa(t,e){const n=pt(t,e?.in),r=n.getFullYear(),i=ae(n,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);const o=_n(i),a=ae(n,0);a.setFullYear(r,0,4),a.setHours(0,0,0,0);const s=_n(a);return n.getTime()>=o.getTime()?r+1:n.getTime()>=s.getTime()?r:r-1}function $i(t,e){const n=pt(t,e?.in);return n.setHours(0,0,0,0),n}function xc(t,e,n){const[r,i]=gc(n?.in,t,e),o=$i(r),a=$i(i),s=+o-Oi(o),c=+a-Oi(a);return Math.round((s-c)/mc)}function wc(t,e){const n=sa(t,e),r=ae(t,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),_n(r)}function _c(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function bc(t){return!(!_c(t)&&typeof t!="number"||isNaN(+pt(t)))}function kc(t,e){const n=pt(t,e?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function Tc(t,e){const n=pt(t,e?.in);return xc(n,kc(n))+1}function Sc(t,e){const n=pt(t,e?.in),r=+_n(n)-+wc(n);return Math.round(r/aa)+1}function ca(t,e){const n=pt(t,e?.in),r=n.getFullYear(),i=Gn(),o=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,a=ae(e?.in||t,0);a.setFullYear(r+1,0,o),a.setHours(0,0,0,0);const s=Ne(a,e),c=ae(e?.in||t,0);c.setFullYear(r,0,o),c.setHours(0,0,0,0);const u=Ne(c,e);return+n>=+s?r+1:+n>=+u?r:r-1}function Cc(t,e){const n=Gn(),r=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,i=ca(t,e),o=ae(e?.in||t,0);return o.setFullYear(i,0,r),o.setHours(0,0,0,0),Ne(o,e)}function Mc(t,e){const n=pt(t,e?.in),r=+Ne(n,e)-+Cc(n,e);return Math.round(r/aa)+1}function P(t,e){const n=t<0?"-":"",r=Math.abs(t).toString().padStart(e,"0");return n+r}const At={y(t,e){const n=t.getFullYear(),r=n>0?n:1-n;return P(e==="yy"?r%100:r,e.length)},M(t,e){const n=t.getMonth();return e==="M"?String(n+1):P(n+1,2)},d(t,e){return P(t.getDate(),e.length)},a(t,e){const n=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return n==="am"?"a.m.":"p.m."}},h(t,e){return P(t.getHours()%12||12,e.length)},H(t,e){return P(t.getHours(),e.length)},m(t,e){return P(t.getMinutes(),e.length)},s(t,e){return P(t.getSeconds(),e.length)},S(t,e){const n=e.length,r=t.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return P(i,e.length)}},jt={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Ni={G:function(t,e,n){const r=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(t,e,n){if(e==="yo"){const r=t.getFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return At.y(t,e)},Y:function(t,e,n,r){const i=ca(t,r),o=i>0?i:1-i;if(e==="YY"){const a=o%100;return P(a,2)}return e==="Yo"?n.ordinalNumber(o,{unit:"year"}):P(o,e.length)},R:function(t,e){const n=sa(t);return P(n,e.length)},u:function(t,e){const n=t.getFullYear();return P(n,e.length)},Q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return P(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return P(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,e,n){const r=t.getMonth();switch(e){case"M":case"MM":return At.M(t,e);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(t,e,n){const r=t.getMonth();switch(e){case"L":return String(r+1);case"LL":return P(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(t,e,n,r){const i=Mc(t,r);return e==="wo"?n.ordinalNumber(i,{unit:"week"}):P(i,e.length)},I:function(t,e,n){const r=Sc(t);return e==="Io"?n.ordinalNumber(r,{unit:"week"}):P(r,e.length)},d:function(t,e,n){return e==="do"?n.ordinalNumber(t.getDate(),{unit:"date"}):At.d(t,e)},D:function(t,e,n){const r=Tc(t);return e==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):P(r,e.length)},E:function(t,e,n){const r=t.getDay();switch(e){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(t,e,n,r){const i=t.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(o);case"ee":return P(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(t,e,n,r){const i=t.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(o);case"cc":return P(o,e.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(t,e,n){const r=t.getDay(),i=r===0?7:r;switch(e){case"i":return String(i);case"ii":return P(i,e.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(t,e,n){const i=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(t,e,n){const r=t.getHours();let i;switch(r===12?i=jt.noon:r===0?i=jt.midnight:i=r/12>=1?"pm":"am",e){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(t,e,n){const r=t.getHours();let i;switch(r>=17?i=jt.evening:r>=12?i=jt.afternoon:r>=4?i=jt.morning:i=jt.night,e){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(t,e,n){if(e==="ho"){let r=t.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return At.h(t,e)},H:function(t,e,n){return e==="Ho"?n.ordinalNumber(t.getHours(),{unit:"hour"}):At.H(t,e)},K:function(t,e,n){const r=t.getHours()%12;return e==="Ko"?n.ordinalNumber(r,{unit:"hour"}):P(r,e.length)},k:function(t,e,n){let r=t.getHours();return r===0&&(r=24),e==="ko"?n.ordinalNumber(r,{unit:"hour"}):P(r,e.length)},m:function(t,e,n){return e==="mo"?n.ordinalNumber(t.getMinutes(),{unit:"minute"}):At.m(t,e)},s:function(t,e,n){return e==="so"?n.ordinalNumber(t.getSeconds(),{unit:"second"}):At.s(t,e)},S:function(t,e){return At.S(t,e)},X:function(t,e,n){const r=t.getTimezoneOffset();if(r===0)return"Z";switch(e){case"X":return Fi(r);case"XXXX":case"XX":return Ft(r);default:return Ft(r,":")}},x:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"x":return Fi(r);case"xxxx":case"xx":return Ft(r);default:return Ft(r,":")}},O:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+Ri(r,":");default:return"GMT"+Ft(r,":")}},z:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+Ri(r,":");default:return"GMT"+Ft(r,":")}},t:function(t,e,n){const r=Math.trunc(+t/1e3);return P(r,e.length)},T:function(t,e,n){return P(+t,e.length)}};function Ri(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),i=Math.trunc(r/60),o=r%60;return o===0?n+String(i):n+String(i)+e+P(o,2)}function Fi(t,e){return t%60===0?(t>0?"-":"+")+P(Math.abs(t)/60,2):Ft(t,e)}function Ft(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),i=P(Math.trunc(r/60),2),o=P(r%60,2);return n+i+e+o}const Pi=(t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});default:return e.date({width:"full"})}},ua=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}},Ac=(t,e)=>{const n=t.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return Pi(t,e);let o;switch(r){case"P":o=e.dateTime({width:"short"});break;case"PP":o=e.dateTime({width:"medium"});break;case"PPP":o=e.dateTime({width:"long"});break;default:o=e.dateTime({width:"full"});break}return o.replace("{{date}}",Pi(r,e)).replace("{{time}}",ua(i,e))},Ec={p:ua,P:Ac},Dc=/^D+$/,Oc=/^Y+$/,$c=["D","DD","YY","YYYY"];function Nc(t){return Dc.test(t)}function Rc(t){return Oc.test(t)}function Fc(t,e,n){const r=Pc(t,e,n);if(console.warn(r),$c.includes(t))throw new RangeError(r)}function Pc(t,e,n){const r=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const Ic=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Lc=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Bc=/^'([^]*?)'?$/,zc=/''/g,Wc=/[a-zA-Z]/;function zm(t,e,n){const r=Gn(),i=r.locale??pc,o=r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,a=r.weekStartsOn??r.locale?.options?.weekStartsOn??0,s=pt(t,n?.in);if(!bc(s))throw new RangeError("Invalid time value");let c=e.match(Lc).map(l=>{const f=l[0];if(f==="p"||f==="P"){const h=Ec[f];return h(l,i.formatLong)}return l}).join("").match(Ic).map(l=>{if(l==="''")return{isToken:!1,value:"'"};const f=l[0];if(f==="'")return{isToken:!1,value:Hc(l)};if(Ni[f])return{isToken:!0,value:l};if(f.match(Wc))throw new RangeError("Format string contains an unescaped latin alphabet character `"+f+"`");return{isToken:!1,value:l}});i.localize.preprocessor&&(c=i.localize.preprocessor(s,c));const u={firstWeekContainsDate:o,weekStartsOn:a,locale:i};return c.map(l=>{if(!l.isToken)return l.value;const f=l.value;(Rc(f)||Nc(f))&&Fc(f,e,String(t));const h=Ni[f[0]];return h(s,f,i.localize,u)}).join("")}function Hc(t){const e=t.match(Bc);return e?e[1].replace(zc,"'"):t}var Tr="http://www.w3.org/1999/xhtml";const Ii={svg:"http://www.w3.org/2000/svg",xhtml:Tr,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Zn(t){var e=t+="",n=e.indexOf(":");return n>=0&&(e=t.slice(0,n))!=="xmlns"&&(t=t.slice(n+1)),Ii.hasOwnProperty(e)?{space:Ii[e],local:t}:t}function Yc(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===Tr&&e.documentElement.namespaceURI===Tr?e.createElement(t):e.createElementNS(n,t)}}function Uc(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function la(t){var e=Zn(t);return(e.local?Uc:Yc)(e)}function Vc(){}function qr(t){return t==null?Vc:function(){return this.querySelector(t)}}function Xc(t){typeof t!="function"&&(t=qr(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o=e[i],a=o.length,s=r[i]=new Array(a),c,u,l=0;l<a;++l)(c=o[l])&&(u=t.call(c,c.__data__,l,o))&&("__data__"in c&&(u.__data__=c.__data__),s[l]=u);return new rt(r,this._parents)}function qc(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function Gc(){return[]}function fa(t){return t==null?Gc:function(){return this.querySelectorAll(t)}}function Zc(t){return function(){return qc(t.apply(this,arguments))}}function Qc(t){typeof t=="function"?t=Zc(t):t=fa(t);for(var e=this._groups,n=e.length,r=[],i=[],o=0;o<n;++o)for(var a=e[o],s=a.length,c,u=0;u<s;++u)(c=a[u])&&(r.push(t.call(c,c.__data__,u,a)),i.push(c));return new rt(r,i)}function ha(t){return function(){return this.matches(t)}}function da(t){return function(e){return e.matches(t)}}var Kc=Array.prototype.find;function jc(t){return function(){return Kc.call(this.children,t)}}function Jc(){return this.firstElementChild}function tu(t){return this.select(t==null?Jc:jc(typeof t=="function"?t:da(t)))}var eu=Array.prototype.filter;function nu(){return Array.from(this.children)}function ru(t){return function(){return eu.call(this.children,t)}}function iu(t){return this.selectAll(t==null?nu:ru(typeof t=="function"?t:da(t)))}function ou(t){typeof t!="function"&&(t=ha(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o=e[i],a=o.length,s=r[i]=[],c,u=0;u<a;++u)(c=o[u])&&t.call(c,c.__data__,u,o)&&s.push(c);return new rt(r,this._parents)}function ga(t){return new Array(t.length)}function au(){return new rt(this._enter||this._groups.map(ga),this._parents)}function bn(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}bn.prototype={constructor:bn,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function su(t){return function(){return t}}function cu(t,e,n,r,i,o){for(var a=0,s,c=e.length,u=o.length;a<u;++a)(s=e[a])?(s.__data__=o[a],r[a]=s):n[a]=new bn(t,o[a]);for(;a<c;++a)(s=e[a])&&(i[a]=s)}function uu(t,e,n,r,i,o,a){var s,c,u=new Map,l=e.length,f=o.length,h=new Array(l),d;for(s=0;s<l;++s)(c=e[s])&&(h[s]=d=a.call(c,c.__data__,s,e)+"",u.has(d)?i[s]=c:u.set(d,c));for(s=0;s<f;++s)d=a.call(t,o[s],s,o)+"",(c=u.get(d))?(r[s]=c,c.__data__=o[s],u.delete(d)):n[s]=new bn(t,o[s]);for(s=0;s<l;++s)(c=e[s])&&u.get(h[s])===c&&(i[s]=c)}function lu(t){return t.__data__}function fu(t,e){if(!arguments.length)return Array.from(this,lu);var n=e?uu:cu,r=this._parents,i=this._groups;typeof t!="function"&&(t=su(t));for(var o=i.length,a=new Array(o),s=new Array(o),c=new Array(o),u=0;u<o;++u){var l=r[u],f=i[u],h=f.length,d=hu(t.call(l,l&&l.__data__,u,r)),m=d.length,g=s[u]=new Array(m),v=a[u]=new Array(m),y=c[u]=new Array(h);n(l,f,g,v,y,d,e);for(var w=0,_=0,T,k;w<m;++w)if(T=g[w]){for(w>=_&&(_=w+1);!(k=v[_])&&++_<m;);T._next=k||null}}return a=new rt(a,r),a._enter=s,a._exit=c,a}function hu(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function du(){return new rt(this._exit||this._groups.map(ga),this._parents)}function gu(t,e,n){var r=this.enter(),i=this,o=this.exit();return typeof t=="function"?(r=t(r),r&&(r=r.selection())):r=r.append(t+""),e!=null&&(i=e(i),i&&(i=i.selection())),n==null?o.remove():n(o),r&&i?r.merge(i).order():i}function mu(t){for(var e=t.selection?t.selection():t,n=this._groups,r=e._groups,i=n.length,o=r.length,a=Math.min(i,o),s=new Array(i),c=0;c<a;++c)for(var u=n[c],l=r[c],f=u.length,h=s[c]=new Array(f),d,m=0;m<f;++m)(d=u[m]||l[m])&&(h[m]=d);for(;c<i;++c)s[c]=n[c];return new rt(s,this._parents)}function pu(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r=t[e],i=r.length-1,o=r[i],a;--i>=0;)(a=r[i])&&(o&&a.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(a,o),o=a);return this}function vu(t){t||(t=yu);function e(f,h){return f&&h?t(f.__data__,h.__data__):!f-!h}for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var a=n[o],s=a.length,c=i[o]=new Array(s),u,l=0;l<s;++l)(u=a[l])&&(c[l]=u);c.sort(e)}return new rt(i,this._parents).order()}function yu(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function xu(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function wu(){return Array.from(this)}function _u(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,o=r.length;i<o;++i){var a=r[i];if(a)return a}return null}function bu(){let t=0;for(const e of this)++t;return t}function ku(){return!this.node()}function Tu(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i=e[n],o=0,a=i.length,s;o<a;++o)(s=i[o])&&t.call(s,s.__data__,o,i);return this}function Su(t){return function(){this.removeAttribute(t)}}function Cu(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Mu(t,e){return function(){this.setAttribute(t,e)}}function Au(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Eu(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttribute(t):this.setAttribute(t,n)}}function Du(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function Ou(t,e){var n=Zn(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((e==null?n.local?Cu:Su:typeof e=="function"?n.local?Du:Eu:n.local?Au:Mu)(n,e))}function ma(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function $u(t){return function(){this.style.removeProperty(t)}}function Nu(t,e,n){return function(){this.style.setProperty(t,e,n)}}function Ru(t,e,n){return function(){var r=e.apply(this,arguments);r==null?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function Fu(t,e,n){return arguments.length>1?this.each((e==null?$u:typeof e=="function"?Ru:Nu)(t,e,n??"")):se(this.node(),t)}function se(t,e){return t.style.getPropertyValue(e)||ma(t).getComputedStyle(t,null).getPropertyValue(e)}function Pu(t){return function(){delete this[t]}}function Iu(t,e){return function(){this[t]=e}}function Lu(t,e){return function(){var n=e.apply(this,arguments);n==null?delete this[t]:this[t]=n}}function Bu(t,e){return arguments.length>1?this.each((e==null?Pu:typeof e=="function"?Lu:Iu)(t,e)):this.node()[t]}function pa(t){return t.trim().split(/^|\s+/)}function Gr(t){return t.classList||new va(t)}function va(t){this._node=t,this._names=pa(t.getAttribute("class")||"")}va.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function ya(t,e){for(var n=Gr(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function xa(t,e){for(var n=Gr(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function zu(t){return function(){ya(this,t)}}function Wu(t){return function(){xa(this,t)}}function Hu(t,e){return function(){(e.apply(this,arguments)?ya:xa)(this,t)}}function Yu(t,e){var n=pa(t+"");if(arguments.length<2){for(var r=Gr(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof e=="function"?Hu:e?zu:Wu)(n,e))}function Uu(){this.textContent=""}function Vu(t){return function(){this.textContent=t}}function Xu(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function qu(t){return arguments.length?this.each(t==null?Uu:(typeof t=="function"?Xu:Vu)(t)):this.node().textContent}function Gu(){this.innerHTML=""}function Zu(t){return function(){this.innerHTML=t}}function Qu(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function Ku(t){return arguments.length?this.each(t==null?Gu:(typeof t=="function"?Qu:Zu)(t)):this.node().innerHTML}function ju(){this.nextSibling&&this.parentNode.appendChild(this)}function Ju(){return this.each(ju)}function tl(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function el(){return this.each(tl)}function nl(t){var e=typeof t=="function"?t:la(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function rl(){return null}function il(t,e){var n=typeof t=="function"?t:la(t),r=e==null?rl:typeof e=="function"?e:qr(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function ol(){var t=this.parentNode;t&&t.removeChild(this)}function al(){return this.each(ol)}function sl(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function cl(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function ul(t){return this.select(t?cl:sl)}function ll(t){return arguments.length?this.property("__data__",t):this.node().__data__}function fl(t){return function(e){t.call(this,e,this.__data__)}}function hl(t){return t.trim().split(/^|\s+/).map(function(e){var n="",r=e.indexOf(".");return r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),{type:e,name:n}})}function dl(t){return function(){var e=this.__on;if(e){for(var n=0,r=-1,i=e.length,o;n<i;++n)o=e[n],(!t.type||o.type===t.type)&&o.name===t.name?this.removeEventListener(o.type,o.listener,o.options):e[++r]=o;++r?e.length=r:delete this.__on}}}function gl(t,e,n){return function(){var r=this.__on,i,o=fl(e);if(r){for(var a=0,s=r.length;a<s;++a)if((i=r[a]).type===t.type&&i.name===t.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=o,i.options=n),i.value=e;return}}this.addEventListener(t.type,o,n),i={type:t.type,name:t.name,value:e,listener:o,options:n},r?r.push(i):this.__on=[i]}}function ml(t,e,n){var r=hl(t+""),i,o=r.length,a;if(arguments.length<2){var s=this.node().__on;if(s){for(var c=0,u=s.length,l;c<u;++c)for(i=0,l=s[c];i<o;++i)if((a=r[i]).type===l.type&&a.name===l.name)return l.value}return}for(s=e?gl:dl,i=0;i<o;++i)this.each(s(r[i],e,n));return this}function wa(t,e,n){var r=ma(t),i=r.CustomEvent;typeof i=="function"?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function pl(t,e){return function(){return wa(this,t,e)}}function vl(t,e){return function(){return wa(this,t,e.apply(this,arguments))}}function yl(t,e){return this.each((typeof e=="function"?vl:pl)(t,e))}function*xl(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,o=r.length,a;i<o;++i)(a=r[i])&&(yield a)}var _a=[null];function rt(t,e){this._groups=t,this._parents=e}function Ye(){return new rt([[document.documentElement]],_a)}function wl(){return this}rt.prototype=Ye.prototype={constructor:rt,select:Xc,selectAll:Qc,selectChild:tu,selectChildren:iu,filter:ou,data:fu,enter:au,exit:du,join:gu,merge:mu,selection:wl,order:pu,sort:vu,call:xu,nodes:wu,node:_u,size:bu,empty:ku,each:Tu,attr:Ou,style:Fu,property:Bu,classed:Yu,text:qu,html:Ku,raise:Ju,lower:el,append:nl,insert:il,remove:al,clone:ul,datum:ll,on:ml,dispatch:yl,[Symbol.iterator]:xl};function kt(t){return typeof t=="string"?new rt([[document.querySelector(t)]],[document.documentElement]):new rt([[t]],_a)}function _l(t){let e;for(;e=t.sourceEvent;)t=e;return t}function kn(t,e){if(t=_l(t),e===void 0&&(e=t.currentTarget),e){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,r=r.matrixTransform(e.getScreenCTM().inverse()),[r.x,r.y]}if(e.getBoundingClientRect){var i=e.getBoundingClientRect();return[t.clientX-i.left-e.clientLeft,t.clientY-i.top-e.clientTop]}}return[t.pageX,t.pageY]}var Me;(function(t){t[t.SVG=0]="SVG",t[t.HTML=1]="HTML"})(Me||(Me={}));var ce;(function(t){t.Fit="fit",t.Extend="extend",t.FitWidth="fit_width"})(ce||(ce={}));function Ae(t,e){return t==null||e==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function bl(t,e){return t==null||e==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Zr(t){let e,n,r;t.length!==2?(e=Ae,n=(s,c)=>Ae(t(s),c),r=(s,c)=>t(s)-c):(e=t===Ae||t===bl?t:kl,n=t,r=t);function i(s,c,u=0,l=s.length){if(u<l){if(e(c,c)!==0)return l;do{const f=u+l>>>1;n(s[f],c)<0?u=f+1:l=f}while(u<l)}return u}function o(s,c,u=0,l=s.length){if(u<l){if(e(c,c)!==0)return l;do{const f=u+l>>>1;n(s[f],c)<=0?u=f+1:l=f}while(u<l)}return u}function a(s,c,u=0,l=s.length){const f=i(s,c,u,l-1);return f>u&&r(s[f-1],c)>-r(s[f],c)?f-1:f}return{left:i,center:a,right:o}}function kl(){return 0}function ba(t){return t===null?NaN:+t}const ka=Zr(Ae),Ue=ka.right,Tl=ka.left;Zr(ba).center;function Sl(t,e){let n,r;for(const i of t)i!=null&&(n===void 0?i>=i&&(n=r=i):(n>i&&(n=i),r<i&&(r=i)));return[n,r]}class Li extends Map{constructor(e,n=Al){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),e!=null)for(const[r,i]of e)this.set(r,i)}get(e){return super.get(Bi(this,e))}has(e){return super.has(Bi(this,e))}set(e,n){return super.set(Cl(this,e),n)}delete(e){return super.delete(Ml(this,e))}}function Bi({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):n}function Cl({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):(t.set(r,n),n)}function Ml({_intern:t,_key:e},n){const r=e(n);return t.has(r)&&(n=t.get(r),t.delete(r)),n}function Al(t){return t!==null&&typeof t=="object"?t.valueOf():t}const El=Math.sqrt(50),Dl=Math.sqrt(10),Ol=Math.sqrt(2);function Tn(t,e,n){const r=(e-t)/Math.max(0,n),i=Math.floor(Math.log10(r)),o=r/Math.pow(10,i),a=o>=El?10:o>=Dl?5:o>=Ol?2:1;let s,c,u;return i<0?(u=Math.pow(10,-i)/a,s=Math.round(t*u),c=Math.round(e*u),s/u<t&&++s,c/u>e&&--c,u=-u):(u=Math.pow(10,i)*a,s=Math.round(t/u),c=Math.round(e/u),s*u<t&&++s,c*u>e&&--c),c<s&&.5<=n&&n<2?Tn(t,e,n*2):[s,c,u]}function Sr(t,e,n){if(e=+e,t=+t,n=+n,!(n>0))return[];if(t===e)return[t];const r=e<t,[i,o,a]=r?Tn(e,t,n):Tn(t,e,n);if(!(o>=i))return[];const s=o-i+1,c=new Array(s);if(r)if(a<0)for(let u=0;u<s;++u)c[u]=(o-u)/-a;else for(let u=0;u<s;++u)c[u]=(o-u)*a;else if(a<0)for(let u=0;u<s;++u)c[u]=(i+u)/-a;else for(let u=0;u<s;++u)c[u]=(i+u)*a;return c}function Cr(t,e,n){return e=+e,t=+t,n=+n,Tn(t,e,n)[2]}function Mr(t,e,n){e=+e,t=+t,n=+n;const r=e<t,i=r?Cr(e,t,n):Cr(t,e,n);return(r?-1:1)*(i<0?1/-i:i)}function zi(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}function Wi(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function $l(t,e,n=ba){if(!(!(r=t.length)||isNaN(e=+e))){if(e<=0||r<2)return+n(t[0],0,t);if(e>=1)return+n(t[r-1],r-1,t);var r,i=(r-1)*e,o=Math.floor(i),a=+n(t[o],o,t),s=+n(t[o+1],o+1,t);return a+(s-a)*(i-o)}}function Nl(t,e){let n=0,r=0;if(e===void 0)for(let i of t)i!=null&&(i=+i)>=i&&(++n,r+=i);else{let i=-1;for(let o of t)(o=e(o,++i,t))!=null&&(o=+o)>=o&&(++n,r+=o)}if(n)return r/n}function*Rl(t){for(const e of t)yield*e}function Fl(t){return Array.from(Rl(t))}function Pl(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((e-t)/n))|0,o=new Array(i);++r<i;)o[r]=t+r*n;return o}function Il(t,e){let n=0;if(e===void 0)for(let r of t)(r=+r)&&(n+=r);else{let r=-1;for(let i of t)(i=+e(i,++r,t))&&(n+=i)}return n}function Ll(t,e,n){var r={},i=r.noTrailing,o=i===void 0?!1:i,a=r.noLeading,s=a===void 0?!1:a,c=r.debounceMode,u=c===void 0?void 0:c,l,f=!1,h=0;function d(){l&&clearTimeout(l)}function m(v){var y=v||{},w=y.upcomingOnly,_=w===void 0?!1:w;d(),f=!_}function g(){for(var v=arguments.length,y=new Array(v),w=0;w<v;w++)y[w]=arguments[w];var _=this,T=Date.now()-h;if(f)return;function k(){h=Date.now(),e.apply(_,y)}function p(){l=void 0}!s&&u&&!l&&k(),d(),u===void 0&&T>t?s?(h=Date.now(),o||(l=setTimeout(u?p:k,t))):k():o!==!0&&(l=setTimeout(u?p:k,u===void 0?t-T:t))}return g.cancel=m,g}var wt;(function(t){t.Left="left",t.Right="right",t.Auto="auto"})(wt||(wt={}));const ee=t=>typeof t=="number",Qr=t=>typeof t=="function",Ve=t=>Array.isArray(t),Bl=t=>t instanceof Object,Sn=t=>t.constructor.name!=="Function"&&t.constructor.name!=="Object",Hi=t=>Bl(t)&&!Ve(t)&&!Qr(t)&&!Sn(t),Wm=t=>[Object,Array].includes((t||{}).constructor)&&!Object.entries(t||{}).length,Yt=(t,e,n=[],r=new Set)=>{if(Array.isArray(t)){if(!Array.isArray(e)||t.length!==e.length)return!1;if(r.has(t))return!0;r.add(t);for(let i=0;i<t.length;i++)if(!Yt(t[i],e[i],n,r))return!1;return!0}if(t instanceof Date&&e instanceof Date)return t.getTime()===e.getTime();if(typeof t=="object"&&t!==null&&e!==null){if(typeof e!="object")return!1;if(t===e)return!0;const i=Object.keys(t).filter(a=>!n.includes(a)),o=Object.keys(e).filter(a=>!n.includes(a));if(i.length!==o.length)return!1;if(r.has(t))return!0;r.add(t);for(const a of i)if(!Yt(t[a],e[a],n,r))return!1;return!0}return t===e},Ar=t=>t.flat(),Cn=(t,e=new Map)=>{if(typeof t!="object"||t===null)return t;if(t instanceof Date)return new Date(t.getTime());if(t instanceof Array){const n=[];e.set(t,n);for(const r of t)n.push(e.has(r)?e.get(r):Cn(r,e));return n}if(Sn(t))return t;if(t instanceof Object){const n={};e.set(t,n);const r=t;return Object.keys(t).reduce((i,o)=>(i[o]=e.has(r[o])?e.get(r[o]):Cn(r[o],e),i),n),n}return t},ue=(t,e,n=new Map)=>{if(!t||!e||t===e)return t;const r=Sn(t)?t:Cn(t);return n.has(e)?n.get(e):(n.set(e,r),Object.keys(e).forEach(i=>{i==="__proto__"||i==="constructor"||(Hi(t[i])&&Hi(e[i])?r[i]=ue(t[i],e[i],n):Sn(e)?r[i]=e:r[i]=Cn(e[i]))}),r)},Mn=(t,e,n)=>Ll(e,t);function Ta(t,e,n){return Qr(e)?e(t,n):e}function zl(t,e,n){return Ta(t,e,n)}function X(t,e,n){return Ta(t,e,n)}function ve(t){return t.filter(e=>e&&!ee(e))}function Ot(t,e,n){return Math.min(Math.max(t,e),n)}function Hm(t,...e){if(!t)return[void 0,void 0];if(Ve(e)){let n=0,r=0;return t.forEach((i,o)=>{let a=0,s=0;for(const c of e){const u=X(i,c,o)||0;u>=0?a+=u:s+=u}a>r&&(r=a),s<n&&(n=s)}),[n,r]}}function Wl(t,e,...n){const r=[];let i=0,o=0;for(const a of n){const s=X(t,a,e)||0;s>=0?r.push(i+=s):r.push(o+=s)}return r}function Ym(t,e,n,r){const i=t.map((s,c)=>X(s,e,c)||0),o=n.map((s,c)=>{const u=Nl(t,(l,f)=>X(l,s,f)||0);return u===0&&Array.isArray(r)?r[c]:u<0}),a=n.map(()=>[]);return t.forEach((s,c)=>{let u=i[c],l=i[c];n.forEach((f,h)=>{const d=X(s,f,c)||0;d>=0?a[h].push([u,u+=d]):a[h].push([l,l+=d])})}),a.forEach((s,c)=>{s.isMostlyNegative=o[c]}),a}function Hl(t,...e){return t?Wi(t,(r,i)=>Wi(e,o=>X(r,o,i))):void 0}function Yl(t,...e){return t?zi(t,(r,i)=>zi(e,o=>X(r,o,i))):void 0}function lr(t,...e){return[Hl(t,...e),Yl(t,...e)]}function An(t,e,n,r=wt.Auto){if(t.length<=1)return t[0];const o=t.map((c,u)=>[c,u]).sort(([c,u],[l,f])=>X(c,n,u)-X(l,n,f)),a=o.map(([c,u])=>X(c,n,u)),s=r===wt.Right?Tl(a,e,0,t.length-1):Ue(a,e,1,t.length);return r===wt.Right?o[s][0]:r===wt.Left?o[s-1][0]:e-a[s-1]>a[s]-e?o[s][0]:o[s-1][0]}function Ul(t,e,n,r=!1){if(!n)return[];const i=t.filter((o,a)=>{const s=X(o,n,a);return s>=e[0]&&s<=e[1]});if(r){if(i.length===0){const f=An(t,e[0],n,wt.Left),h=An(t,e[1],n,wt.Right);return[f,h].filter(Boolean)}const o=i[0],a=i[i.length-1],s=t.findIndex(f=>f===o),c=t.findIndex(f=>f===a),u=Math.max(0,s-1),l=Math.min(t.length-1,c+1);return t.slice(u,l+1)}return i}var Bt=[],Vl=function(){return Bt.some(function(t){return t.activeTargets.length>0})},Xl=function(){return Bt.some(function(t){return t.skippedTargets.length>0})},Yi="ResizeObserver loop completed with undelivered notifications.",ql=function(){var t;typeof ErrorEvent=="function"?t=new ErrorEvent("error",{message:Yi}):(t=document.createEvent("Event"),t.initEvent("error",!1,!1),t.message=Yi),window.dispatchEvent(t)},Re;(function(t){t.BORDER_BOX="border-box",t.CONTENT_BOX="content-box",t.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Re||(Re={}));var zt=function(t){return Object.freeze(t)},Gl=(function(){function t(e,n){this.inlineSize=e,this.blockSize=n,zt(this)}return t})(),Sa=(function(){function t(e,n,r,i){return this.x=e,this.y=n,this.width=r,this.height=i,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,zt(this)}return t.prototype.toJSON=function(){var e=this,n=e.x,r=e.y,i=e.top,o=e.right,a=e.bottom,s=e.left,c=e.width,u=e.height;return{x:n,y:r,top:i,right:o,bottom:a,left:s,width:c,height:u}},t.fromRect=function(e){return new t(e.x,e.y,e.width,e.height)},t})(),Kr=function(t){return t instanceof SVGElement&&"getBBox"in t},Ca=function(t){if(Kr(t)){var e=t.getBBox(),n=e.width,r=e.height;return!n&&!r}var i=t,o=i.offsetWidth,a=i.offsetHeight;return!(o||a||t.getClientRects().length)},Ui=function(t){var e;if(t instanceof Element)return!0;var n=(e=t?.ownerDocument)===null||e===void 0?void 0:e.defaultView;return!!(n&&t instanceof n.Element)},Zl=function(t){switch(t.tagName){case"INPUT":if(t.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},Ee=typeof window<"u"?window:{},Ke=new WeakMap,Vi=/auto|scroll/,Ql=/^tb|vertical/,Kl=/msie|trident/i.test(Ee.navigator&&Ee.navigator.userAgent),ht=function(t){return parseFloat(t||"0")},ne=function(t,e,n){return t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=!1),new Gl((n?e:t)||0,(n?t:e)||0)},Xi=zt({devicePixelContentBoxSize:ne(),borderBoxSize:ne(),contentBoxSize:ne(),contentRect:new Sa(0,0,0,0)}),Ma=function(t,e){if(e===void 0&&(e=!1),Ke.has(t)&&!e)return Ke.get(t);if(Ca(t))return Ke.set(t,Xi),Xi;var n=getComputedStyle(t),r=Kr(t)&&t.ownerSVGElement&&t.getBBox(),i=!Kl&&n.boxSizing==="border-box",o=Ql.test(n.writingMode||""),a=!r&&Vi.test(n.overflowY||""),s=!r&&Vi.test(n.overflowX||""),c=r?0:ht(n.paddingTop),u=r?0:ht(n.paddingRight),l=r?0:ht(n.paddingBottom),f=r?0:ht(n.paddingLeft),h=r?0:ht(n.borderTopWidth),d=r?0:ht(n.borderRightWidth),m=r?0:ht(n.borderBottomWidth),g=r?0:ht(n.borderLeftWidth),v=f+u,y=c+l,w=g+d,_=h+m,T=s?t.offsetHeight-_-t.clientHeight:0,k=a?t.offsetWidth-w-t.clientWidth:0,p=i?v+w:0,b=i?y+_:0,I=r?r.width:ht(n.width)-p-k,F=r?r.height:ht(n.height)-b-T,E=I+v+k+w,Y=F+y+T+_,M=zt({devicePixelContentBoxSize:ne(Math.round(I*devicePixelRatio),Math.round(F*devicePixelRatio),o),borderBoxSize:ne(E,Y,o),contentBoxSize:ne(I,F,o),contentRect:new Sa(f,c,I,F)});return Ke.set(t,M),M},Aa=function(t,e,n){var r=Ma(t,n),i=r.borderBoxSize,o=r.contentBoxSize,a=r.devicePixelContentBoxSize;switch(e){case Re.DEVICE_PIXEL_CONTENT_BOX:return a;case Re.BORDER_BOX:return i;default:return o}},jl=(function(){function t(e){var n=Ma(e);this.target=e,this.contentRect=n.contentRect,this.borderBoxSize=zt([n.borderBoxSize]),this.contentBoxSize=zt([n.contentBoxSize]),this.devicePixelContentBoxSize=zt([n.devicePixelContentBoxSize])}return t})(),Ea=function(t){if(Ca(t))return 1/0;for(var e=0,n=t.parentNode;n;)e+=1,n=n.parentNode;return e},Jl=function(){var t=1/0,e=[];Bt.forEach(function(a){if(a.activeTargets.length!==0){var s=[];a.activeTargets.forEach(function(u){var l=new jl(u.target),f=Ea(u.target);s.push(l),u.lastReportedSize=Aa(u.target,u.observedBox),f<t&&(t=f)}),e.push(function(){a.callback.call(a.observer,s,a.observer)}),a.activeTargets.splice(0,a.activeTargets.length)}});for(var n=0,r=e;n<r.length;n++){var i=r[n];i()}return t},qi=function(t){Bt.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(i){i.isActive()&&(Ea(i.target)>t?n.activeTargets.push(i):n.skippedTargets.push(i))})})},tf=function(){var t=0;for(qi(t);Vl();)t=Jl(),qi(t);return Xl()&&ql(),t>0},fr,Da=[],ef=function(){return Da.splice(0).forEach(function(t){return t()})},nf=function(t){if(!fr){var e=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return ef()}).observe(n,r),fr=function(){n.textContent="".concat(e?e--:e++)}}Da.push(t),fr()},rf=function(t){nf(function(){requestAnimationFrame(t)})},sn=0,of=function(){return!!sn},af=250,sf={attributes:!0,characterData:!0,childList:!0,subtree:!0},Gi=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Zi=function(t){return t===void 0&&(t=0),Date.now()+t},hr=!1,cf=(function(){function t(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return t.prototype.run=function(e){var n=this;if(e===void 0&&(e=af),!hr){hr=!0;var r=Zi(e);rf(function(){var i=!1;try{i=tf()}finally{if(hr=!1,e=r-Zi(),!of())return;i?n.run(1e3):e>0?n.run(e):n.start()}})}},t.prototype.schedule=function(){this.stop(),this.run()},t.prototype.observe=function(){var e=this,n=function(){return e.observer&&e.observer.observe(document.body,sf)};document.body?n():Ee.addEventListener("DOMContentLoaded",n)},t.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Gi.forEach(function(n){return Ee.addEventListener(n,e.listener,!0)}))},t.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),Gi.forEach(function(n){return Ee.removeEventListener(n,e.listener,!0)}),this.stopped=!0)},t})(),Er=new cf,Qi=function(t){!sn&&t>0&&Er.start(),sn+=t,!sn&&Er.stop()},uf=function(t){return!Kr(t)&&!Zl(t)&&getComputedStyle(t).display==="inline"},lf=(function(){function t(e,n){this.target=e,this.observedBox=n||Re.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return t.prototype.isActive=function(){var e=Aa(this.target,this.observedBox,!0);return uf(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},t})(),ff=(function(){function t(e,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=n}return t})(),je=new WeakMap,Ki=function(t,e){for(var n=0;n<t.length;n+=1)if(t[n].target===e)return n;return-1},Je=(function(){function t(){}return t.connect=function(e,n){var r=new ff(e,n);je.set(e,r)},t.observe=function(e,n,r){var i=je.get(e),o=i.observationTargets.length===0;Ki(i.observationTargets,n)<0&&(o&&Bt.push(i),i.observationTargets.push(new lf(n,r&&r.box)),Qi(1),Er.schedule())},t.unobserve=function(e,n){var r=je.get(e),i=Ki(r.observationTargets,n),o=r.observationTargets.length===1;i>=0&&(o&&Bt.splice(Bt.indexOf(r),1),r.observationTargets.splice(i,1),Qi(-1))},t.disconnect=function(e){var n=this,r=je.get(e);r.observationTargets.slice().forEach(function(i){return n.unobserve(e,i.target)}),r.activeTargets.splice(0,r.activeTargets.length)},t})(),hf=(function(){function t(e){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof e!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");Je.connect(this,e)}return t.prototype.observe=function(e,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Ui(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Je.observe(this,e,n)},t.prototype.unobserve=function(e){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Ui(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Je.unobserve(this,e)},t.prototype.disconnect=function(){Je.disconnect(this)},t.toString=function(){return"function ResizeObserver () { [polyfill code] }"},t})();const df=globalThis.ResizeObserver||hf,Oa={duration:void 0,margin:{top:0,bottom:0,left:0,right:0},padding:{top:0,bottom:0,left:0,right:0},sizing:ce.Fit,width:void 0,height:void 0,svgDefs:void 0,ariaLabel:void 0};class Fe{constructor(e){this._defaultConfig=Oa,this._isFirstRender=!0,this._renderAnimationFrameId=null,this._container=e;const n=kt(this._container);n.attr("role","figure"),this.svg=n.append("svg").style("display","block").attr("xmlns","http://www.w3.org/2000/svg").attr("height",Fe.DEFAULT_CONTAINER_HEIGHT).attr("aria-hidden",!0),this._svgDefs=this.svg.append("defs"),this._svgDefsExternal=this.svg.append("defs"),this.element=this.svg.node()}updateContainer(e){var n;this.prevConfig=this.config,this.config=ue(this._defaultConfig,e),e?.svgDefs!==((n=this.prevConfig)===null||n===void 0?void 0:n.svgDefs)&&(this._svgDefsExternal.selectAll("*").remove(),this._svgDefsExternal.html(e.svgDefs))}_preRender(){}_render(e){const{config:n}=this;kt(this._container).attr("aria-label",n.ariaLabel),this._isFirstRender=!1}render(e=this.config.duration){const n=this.config.width||this.containerWidth,r=this.config.height||this.containerHeight;this.svg.attr("width",n).attr("height",r),this._resizeObserver||this._setUpResizeObserver(),cancelAnimationFrame(this._renderAnimationFrameId),this._renderAnimationFrameId=requestAnimationFrame(()=>{this._preRender(),this._render(e)})}get containerWidth(){return this.config.width?this.element.clientWidth:this._container.clientWidth||this._container.getBoundingClientRect().width}get containerHeight(){return this.config.height?this.element.clientHeight:this._container.clientHeight||this._container.getBoundingClientRect().height||Fe.DEFAULT_CONTAINER_HEIGHT}get width(){return Ot(this.containerWidth-this.config.margin.left-this.config.margin.right,0,Number.POSITIVE_INFINITY)}get height(){return Ot(this.containerHeight-this.config.margin.top-this.config.margin.bottom,0,Number.POSITIVE_INFINITY)}_removeAllChildren(){for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild)}_onResize(){const{config:e}=this;(e.sizing===ce.Fit||e.sizing===ce.FitWidth)&&this.render(0)}_setUpResizeObserver(){if(this._resizeObserver)return;const e=this._container.getBoundingClientRect();this._containerSize={width:e.width,height:e.height},this._resizeObserver=new df((n,r)=>{cancelAnimationFrame(this._resizeObserverAnimationFrameId),this._resizeObserverAnimationFrameId=requestAnimationFrame(()=>{const i=this._container.getBoundingClientRect(),o={width:i.width,height:i.height};!Yt(this._containerSize,o)&&o.width&&o.height&&(this._containerSize=o,this._onResize())})}),this._resizeObserver.observe(this._container)}destroy(){var e;cancelAnimationFrame(this._renderAnimationFrameId),cancelAnimationFrame(this._resizeObserverAnimationFrameId),(e=this._resizeObserver)===null||e===void 0||e.disconnect(),this.svg.remove()}}Fe.DEFAULT_CONTAINER_HEIGHT=300;function gf(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}function mf(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),t.nonce!==void 0&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}var pf=(function(){function t(n){var r=this;this._insertTag=function(i){var o;r.tags.length===0?r.insertionPoint?o=r.insertionPoint.nextSibling:r.prepend?o=r.container.firstChild:o=r.before:o=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(i,o),r.tags.push(i)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var e=t.prototype;return e.hydrate=function(r){r.forEach(this._insertTag)},e.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(mf(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var o=gf(i);try{o.insertRule(r,o.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(r));this.ctr++},e.flush=function(){this.tags.forEach(function(r){var i;return(i=r.parentNode)==null?void 0:i.removeChild(r)}),this.tags=[],this.ctr=0},t})(),Z="-ms-",En="-moz-",N="-webkit-",$a="comm",jr="rule",Jr="decl",vf="@import",Na="@keyframes",yf="@layer",xf=Math.abs,Qn=String.fromCharCode,wf=Object.assign;function _f(t,e){return V(t,0)^45?(((e<<2^V(t,0))<<2^V(t,1))<<2^V(t,2))<<2^V(t,3):0}function Ra(t){return t.trim()}function bf(t,e){return(t=e.exec(t))?t[0]:t}function R(t,e,n){return t.replace(e,n)}function Dr(t,e){return t.indexOf(e)}function V(t,e){return t.charCodeAt(e)|0}function Pe(t,e,n){return t.slice(e,n)}function dt(t){return t.length}function ti(t){return t.length}function tn(t,e){return e.push(t),t}function kf(t,e){return t.map(e).join("")}var Kn=1,le=1,Fa=0,J=0,z=0,me="";function jn(t,e,n,r,i,o,a){return{value:t,root:e,parent:n,type:r,props:i,children:o,line:Kn,column:le,length:a,return:""}}function ye(t,e){return wf(jn("",null,null,"",null,null,0),t,{length:-t.length},e)}function Tf(){return z}function Sf(){return z=J>0?V(me,--J):0,le--,z===10&&(le=1,Kn--),z}function nt(){return z=J<Fa?V(me,J++):0,le++,z===10&&(le=1,Kn++),z}function gt(){return V(me,J)}function cn(){return J}function Xe(t,e){return Pe(me,t,e)}function Ie(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Pa(t){return Kn=le=1,Fa=dt(me=t),J=0,[]}function Ia(t){return me="",t}function un(t){return Ra(Xe(J-1,Or(t===91?t+2:t===40?t+1:t)))}function Cf(t){for(;(z=gt())&&z<33;)nt();return Ie(t)>2||Ie(z)>3?"":" "}function Mf(t,e){for(;--e&&nt()&&!(z<48||z>102||z>57&&z<65||z>70&&z<97););return Xe(t,cn()+(e<6&&gt()==32&&nt()==32))}function Or(t){for(;nt();)switch(z){case t:return J;case 34:case 39:t!==34&&t!==39&&Or(z);break;case 40:t===41&&Or(t);break;case 92:nt();break}return J}function Af(t,e){for(;nt()&&t+z!==57;)if(t+z===84&&gt()===47)break;return"/*"+Xe(e,J-1)+"*"+Qn(t===47?t:nt())}function Ef(t){for(;!Ie(gt());)nt();return Xe(t,J)}function Df(t){return Ia(ln("",null,null,null,[""],t=Pa(t),0,[0],t))}function ln(t,e,n,r,i,o,a,s,c){for(var u=0,l=0,f=a,h=0,d=0,m=0,g=1,v=1,y=1,w=0,_="",T=i,k=o,p=r,b=_;v;)switch(m=w,w=nt()){case 40:if(m!=108&&V(b,f-1)==58){Dr(b+=R(un(w),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:b+=un(w);break;case 9:case 10:case 13:case 32:b+=Cf(m);break;case 92:b+=Mf(cn()-1,7);continue;case 47:switch(gt()){case 42:case 47:tn(Of(Af(nt(),cn()),e,n),c);break;default:b+="/"}break;case 123*g:s[u++]=dt(b)*y;case 125*g:case 59:case 0:switch(w){case 0:case 125:v=0;case 59+l:y==-1&&(b=R(b,/\f/g,"")),d>0&&dt(b)-f&&tn(d>32?Ji(b+";",r,n,f-1):Ji(R(b," ","")+";",r,n,f-2),c);break;case 59:b+=";";default:if(tn(p=ji(b,e,n,u,l,i,s,_,T=[],k=[],f),o),w===123)if(l===0)ln(b,e,p,p,T,o,f,s,k);else switch(h===99&&V(b,3)===110?100:h){case 100:case 108:case 109:case 115:ln(t,p,p,r&&tn(ji(t,p,p,0,0,i,s,_,i,T=[],f),k),i,k,f,s,r?T:k);break;default:ln(b,p,p,p,[""],k,0,s,k)}}u=l=d=0,g=y=1,_=b="",f=a;break;case 58:f=1+dt(b),d=m;default:if(g<1){if(w==123)--g;else if(w==125&&g++==0&&Sf()==125)continue}switch(b+=Qn(w),w*g){case 38:y=l>0?1:(b+="\f",-1);break;case 44:s[u++]=(dt(b)-1)*y,y=1;break;case 64:gt()===45&&(b+=un(nt())),h=gt(),l=f=dt(_=b+=Ef(cn())),w++;break;case 45:m===45&&dt(b)==2&&(g=0)}}return o}function ji(t,e,n,r,i,o,a,s,c,u,l){for(var f=i-1,h=i===0?o:[""],d=ti(h),m=0,g=0,v=0;m<r;++m)for(var y=0,w=Pe(t,f+1,f=xf(g=a[m])),_=t;y<d;++y)(_=Ra(g>0?h[y]+" "+w:R(w,/&\f/g,h[y])))&&(c[v++]=_);return jn(t,e,n,i===0?jr:s,c,u,l)}function Of(t,e,n){return jn(t,e,n,$a,Qn(Tf()),Pe(t,2,-2),0)}function Ji(t,e,n,r){return jn(t,e,n,Jr,Pe(t,0,r),Pe(t,r+1,-1),r)}function re(t,e){for(var n="",r=ti(t),i=0;i<r;i++)n+=e(t[i],i,t,e)||"";return n}function $f(t,e,n,r){switch(t.type){case yf:if(t.children.length)break;case vf:case Jr:return t.return=t.return||t.value;case $a:return"";case Na:return t.return=t.value+"{"+re(t.children,r)+"}";case jr:t.value=t.props.join(",")}return dt(n=re(t.children,r))?t.return=t.value+"{"+n+"}":""}function Nf(t){var e=ti(t);return function(n,r,i,o){for(var a="",s=0;s<e;s++)a+=t[s](n,r,i,o)||"";return a}}function Rf(t){return function(e){e.root||(e=e.return)&&t(e)}}function Ff(t){var e=Object.create(null);return function(n){return e[n]===void 0&&(e[n]=t(n)),e[n]}}var Pf=function(e,n,r){for(var i=0,o=0;i=o,o=gt(),i===38&&o===12&&(n[r]=1),!Ie(o);)nt();return Xe(e,J)},If=function(e,n){var r=-1,i=44;do switch(Ie(i)){case 0:i===38&&gt()===12&&(n[r]=1),e[r]+=Pf(J-1,n,r);break;case 2:e[r]+=un(i);break;case 4:if(i===44){e[++r]=gt()===58?"&\f":"",n[r]=e[r].length;break}default:e[r]+=Qn(i)}while(i=nt());return e},Lf=function(e,n){return Ia(If(Pa(e),n))},to=new WeakMap,Bf=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var n=e.value,r=e.parent,i=e.column===r.column&&e.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(e.props.length===1&&n.charCodeAt(0)!==58&&!to.get(r))&&!i){to.set(e,!0);for(var o=[],a=Lf(n,o),s=r.props,c=0,u=0;c<a.length;c++)for(var l=0;l<s.length;l++,u++)e.props[u]=o[c]?a[c].replace(/&\f/g,s[l]):s[l]+" "+a[c]}}},zf=function(e){if(e.type==="decl"){var n=e.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(e.return="",e.value="")}};function La(t,e){switch(_f(t,e)){case 5103:return N+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return N+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return N+t+En+t+Z+t+t;case 6828:case 4268:return N+t+Z+t+t;case 6165:return N+t+Z+"flex-"+t+t;case 5187:return N+t+R(t,/(\w+).+(:[^]+)/,N+"box-$1$2"+Z+"flex-$1$2")+t;case 5443:return N+t+Z+"flex-item-"+R(t,/flex-|-self/,"")+t;case 4675:return N+t+Z+"flex-line-pack"+R(t,/align-content|flex-|-self/,"")+t;case 5548:return N+t+Z+R(t,"shrink","negative")+t;case 5292:return N+t+Z+R(t,"basis","preferred-size")+t;case 6060:return N+"box-"+R(t,"-grow","")+N+t+Z+R(t,"grow","positive")+t;case 4554:return N+R(t,/([^-])(transform)/g,"$1"+N+"$2")+t;case 6187:return R(R(R(t,/(zoom-|grab)/,N+"$1"),/(image-set)/,N+"$1"),t,"")+t;case 5495:case 3959:return R(t,/(image-set\([^]*)/,N+"$1$`$1");case 4968:return R(R(t,/(.+:)(flex-)?(.*)/,N+"box-pack:$3"+Z+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+N+t+t;case 4095:case 3583:case 4068:case 2532:return R(t,/(.+)-inline(.+)/,N+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(dt(t)-1-e>6)switch(V(t,e+1)){case 109:if(V(t,e+4)!==45)break;case 102:return R(t,/(.+:)(.+)-([^]+)/,"$1"+N+"$2-$3$1"+En+(V(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~Dr(t,"stretch")?La(R(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(V(t,e+1)!==115)break;case 6444:switch(V(t,dt(t)-3-(~Dr(t,"!important")&&10))){case 107:return R(t,":",":"+N)+t;case 101:return R(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+N+(V(t,14)===45?"inline-":"")+"box$3$1"+N+"$2$3$1"+Z+"$2box$3")+t}break;case 5936:switch(V(t,e+11)){case 114:return N+t+Z+R(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return N+t+Z+R(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return N+t+Z+R(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return N+t+Z+t+t}return t}var Wf=function(e,n,r,i){if(e.length>-1&&!e.return)switch(e.type){case Jr:e.return=La(e.value,e.length);break;case Na:return re([ye(e,{value:R(e.value,"@","@"+N)})],i);case jr:if(e.length)return kf(e.props,function(o){switch(bf(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return re([ye(e,{props:[R(o,/:(read-\w+)/,":"+En+"$1")]})],i);case"::placeholder":return re([ye(e,{props:[R(o,/:(plac\w+)/,":"+N+"input-$1")]}),ye(e,{props:[R(o,/:(plac\w+)/,":"+En+"$1")]}),ye(e,{props:[R(o,/:(plac\w+)/,Z+"input-$1")]})],i)}return""})}},Hf=[Wf],Yf=function(e){var n=e.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(g){var v=g.getAttribute("data-emotion");v.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var i=e.stylisPlugins||Hf,o={},a,s=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var v=g.getAttribute("data-emotion").split(" "),y=1;y<v.length;y++)o[v[y]]=!0;s.push(g)});var c,u=[Bf,zf];{var l,f=[$f,Rf(function(g){l.insert(g)})],h=Nf(u.concat(i,f)),d=function(v){return re(Df(v),h)};c=function(v,y,w,_){l=w,d(v?v+"{"+y.styles+"}":y.styles),_&&(m.inserted[y.name]=!0)}}var m={key:n,sheet:new pf({key:n,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:o,registered:{},insert:c};return m.sheet.hydrate(s),m};function Uf(t){for(var e=0,n,r=0,i=t.length;i>=4;++r,i-=4)n=t.charCodeAt(r)&255|(t.charCodeAt(++r)&255)<<8|(t.charCodeAt(++r)&255)<<16|(t.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,e=(n&65535)*1540483477+((n>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(i){case 3:e^=(t.charCodeAt(r+2)&255)<<16;case 2:e^=(t.charCodeAt(r+1)&255)<<8;case 1:e^=t.charCodeAt(r)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var Vf={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Xf=/[A-Z]|^ms/g,qf=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ba=function(e){return e.charCodeAt(1)===45},eo=function(e){return e!=null&&typeof e!="boolean"},dr=Ff(function(t){return Ba(t)?t:t.replace(Xf,"-$&").toLowerCase()}),no=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(qf,function(r,i,o){return $t={name:i,styles:o,next:$t},i})}return Vf[e]!==1&&!Ba(e)&&typeof n=="number"&&n!==0?n+"px":n};function Dn(t,e,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return $t={name:i.name,styles:i.styles,next:$t},i.name;var o=n;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)$t={name:a.name,styles:a.styles,next:$t},a=a.next;var s=o.styles+";";return s}return Gf(t,e,n)}}var c=n;if(e==null)return c;var u=e[c];return u!==void 0?u:c}function Gf(t,e,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=Dn(t,e,n[i])+";";else for(var o in n){var a=n[o];if(typeof a!="object"){var s=a;e!=null&&e[s]!==void 0?r+=o+"{"+e[s]+"}":eo(s)&&(r+=dr(o)+":"+no(o,s)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(e==null||e[a[0]]===void 0))for(var c=0;c<a.length;c++)eo(a[c])&&(r+=dr(o)+":"+no(o,a[c])+";");else{var u=Dn(t,e,a);switch(o){case"animation":case"animationName":{r+=dr(o)+":"+u+";";break}default:r+=o+"{"+u+"}"}}}return r}var ro=/label:\s*([^\s;{]+)\s*(;|$)/g,$t;function gr(t,e,n){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var r=!0,i="";$t=void 0;var o=t[0];if(o==null||o.raw===void 0)r=!1,i+=Dn(n,e,o);else{var a=o;i+=a[0]}for(var s=1;s<t.length;s++)if(i+=Dn(n,e,t[s]),r){var c=o;i+=c[s]}ro.lastIndex=0;for(var u="",l;(l=ro.exec(i))!==null;)u+="-"+l[1];var f=Uf(i)+u;return{name:f,styles:i,next:$t}}function za(t,e,n){var r="";return n.split(" ").forEach(function(i){t[i]!==void 0?e.push(t[i]+";"):i&&(r+=i+" ")}),r}var Zf=function(e,n,r){var i=e.key+"-"+n.name;e.registered[i]===void 0&&(e.registered[i]=n.styles)},Qf=function(e,n,r){Zf(e,n);var i=e.key+"-"+n.name;if(e.inserted[n.name]===void 0){var o=n;do e.insert(n===o?"."+i:"",o,e.sheet,!0),o=o.next;while(o!==void 0)}};function io(t,e){if(t.inserted[e.name]===void 0)return t.insert("",e,t.sheet,!0)}function oo(t,e,n){var r=[],i=za(t,r,n);return r.length<2?n:i+e(r)}var Kf=function(e){var n=Yf(e);n.sheet.speedy=function(s){this.isSpeedy=s},n.compat=!0;var r=function(){for(var c=arguments.length,u=new Array(c),l=0;l<c;l++)u[l]=arguments[l];var f=gr(u,n.registered,void 0);return Qf(n,f),n.key+"-"+f.name},i=function(){for(var c=arguments.length,u=new Array(c),l=0;l<c;l++)u[l]=arguments[l];var f=gr(u,n.registered),h="animation-"+f.name;return io(n,{name:f.name,styles:"@keyframes "+h+"{"+f.styles+"}"}),h},o=function(){for(var c=arguments.length,u=new Array(c),l=0;l<c;l++)u[l]=arguments[l];var f=gr(u,n.registered);io(n,f)},a=function(){for(var c=arguments.length,u=new Array(c),l=0;l<c;l++)u[l]=arguments[l];return oo(n.registered,r,jf(u))};return{css:r,cx:a,injectGlobal:o,keyframes:i,hydrate:function(c){c.forEach(function(u){n.inserted[u]=!0})},flush:function(){n.registered={},n.inserted={},n.sheet.flush()},sheet:n.sheet,cache:n,getRegisteredStyles:za.bind(null,n.registered),merge:oo.bind(null,n.registered,r)}},jf=function t(e){for(var n="",r=0;r<e.length;r++){var i=e[r];if(i!=null){var o=void 0;switch(typeof i){case"boolean":break;case"object":{if(Array.isArray(i))o=t(i);else{o="";for(var a in i)i[a]&&a&&(o&&(o+=" "),o+=a)}break}default:o=i}o&&(n&&(n+=" "),n+=o)}}return n},Wa=Kf({key:"css"}),Jn=Wa.injectGlobal,W=Wa.css,mr,ao;function Jf(){return ao||(ao=1,mr=function(e,n){n||(n=[0,""]),e=String(e);var r=parseFloat(e,10);return n[0]=r,n[1]=e.match(/[\d.\-\+]*\s*(.*)/)[1]||"",n}),mr}var pr,so;function th(){if(so)return pr;so=1;var t=Jf();pr=i;var e=r("in",document.body);function n(o,a){var s=t(getComputedStyle(o).getPropertyValue(a));return s[0]*i(s[1],o)}function r(o,a){var s=document.createElement("div");s.style.height="128"+o,a.appendChild(s);var c=n(s,"height")/128;return a.removeChild(s),c}function i(o,a){if(!o)return null;switch(a=a||document.body,o=(o+""||"px").trim().toLowerCase(),(a===window||a===document)&&(a=document.body),o){case"%":return a.clientHeight/100;case"ch":case"ex":return r(o,a);case"em":return n(a,"font-size");case"rem":return n(document.body,"font-size");case"vw":return window.innerWidth/100;case"vh":return window.innerHeight/100;case"vmin":return Math.min(window.innerWidth,window.innerHeight)/100;case"vmax":return Math.max(window.innerWidth,window.innerHeight)/100;case"in":return e;case"cm":return e/2.54;case"mm":return e/25.4;case"pt":return e/72;case"pc":return e/6;case"px":return 1}var s=t(o);if(!isNaN(s[0])&&s[1]){var c=i(s[1],a);return typeof c=="number"?s[0]*c:null}return null}return pr}th();function Ha(){const t=()=>Math.floor((1+crypto.getRandomValues(new Uint32Array(1))[0])*65536).toString(16).substring(1);return`${t()+t()}-${t()}-${t()}-${t()}-${t()}${t()}${t()}`}function eh(t,e){const n=t.substr(4,t.length-5);return getComputedStyle(e).getPropertyValue(n)}function nh(t,e,n=0){const[r,i,o,a]=[t.x+n,t.y+t.height-2*n,t.x+t.width-2*n,t.y+n],[s,c,u,l]=[e.x+n,e.y+e.height-2*n,e.x+e.width-2*n,e.y+n];return!(i<l||c<a||o<s||u<r)}function ei(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function Ya(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function qe(){}var Le=.7,On=1/Le,ie="\\s*([+-]?\\d+)\\s*",Be="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",mt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",rh=/^#([0-9a-f]{3,8})$/,ih=new RegExp(`^rgb\\(${ie},${ie},${ie}\\)$`),oh=new RegExp(`^rgb\\(${mt},${mt},${mt}\\)$`),ah=new RegExp(`^rgba\\(${ie},${ie},${ie},${Be}\\)$`),sh=new RegExp(`^rgba\\(${mt},${mt},${mt},${Be}\\)$`),ch=new RegExp(`^hsl\\(${Be},${mt},${mt}\\)$`),uh=new RegExp(`^hsla\\(${Be},${mt},${mt},${Be}\\)$`),co={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};ei(qe,Ut,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:uo,formatHex:uo,formatHex8:lh,formatHsl:fh,formatRgb:lo,toString:lo});function uo(){return this.rgb().formatHex()}function lh(){return this.rgb().formatHex8()}function fh(){return Ua(this).formatHsl()}function lo(){return this.rgb().formatRgb()}function Ut(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=rh.exec(t))?(n=e[1].length,e=parseInt(e[1],16),n===6?fo(e):n===3?new K(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?en(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?en(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=ih.exec(t))?new K(e[1],e[2],e[3],1):(e=oh.exec(t))?new K(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=ah.exec(t))?en(e[1],e[2],e[3],e[4]):(e=sh.exec(t))?en(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=ch.exec(t))?mo(e[1],e[2]/100,e[3]/100,1):(e=uh.exec(t))?mo(e[1],e[2]/100,e[3]/100,e[4]):co.hasOwnProperty(t)?fo(co[t]):t==="transparent"?new K(NaN,NaN,NaN,0):null}function fo(t){return new K(t>>16&255,t>>8&255,t&255,1)}function en(t,e,n,r){return r<=0&&(t=e=n=NaN),new K(t,e,n,r)}function hh(t){return t instanceof qe||(t=Ut(t)),t?(t=t.rgb(),new K(t.r,t.g,t.b,t.opacity)):new K}function $r(t,e,n,r){return arguments.length===1?hh(t):new K(t,e,n,r??1)}function K(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}ei(K,$r,Ya(qe,{brighter(t){return t=t==null?On:Math.pow(On,t),new K(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?Le:Math.pow(Le,t),new K(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new K(Wt(this.r),Wt(this.g),Wt(this.b),$n(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:ho,formatHex:ho,formatHex8:dh,formatRgb:go,toString:go}));function ho(){return`#${Pt(this.r)}${Pt(this.g)}${Pt(this.b)}`}function dh(){return`#${Pt(this.r)}${Pt(this.g)}${Pt(this.b)}${Pt((isNaN(this.opacity)?1:this.opacity)*255)}`}function go(){const t=$n(this.opacity);return`${t===1?"rgb(":"rgba("}${Wt(this.r)}, ${Wt(this.g)}, ${Wt(this.b)}${t===1?")":`, ${t})`}`}function $n(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Wt(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Pt(t){return t=Wt(t),(t<16?"0":"")+t.toString(16)}function mo(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new st(t,e,n,r)}function Ua(t){if(t instanceof st)return new st(t.h,t.s,t.l,t.opacity);if(t instanceof qe||(t=Ut(t)),!t)return new st;if(t instanceof st)return t;t=t.rgb();var e=t.r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),a=NaN,s=o-i,c=(o+i)/2;return s?(e===o?a=(n-r)/s+(n<r)*6:n===o?a=(r-e)/s+2:a=(e-n)/s+4,s/=c<.5?o+i:2-o-i,a*=60):s=c>0&&c<1?0:a,new st(a,s,c,t.opacity)}function ni(t,e,n,r){return arguments.length===1?Ua(t):new st(t,e,n,r??1)}function st(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}ei(st,ni,Ya(qe,{brighter(t){return t=t==null?On:Math.pow(On,t),new st(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?Le:Math.pow(Le,t),new st(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new K(vr(t>=240?t-240:t+120,i,r),vr(t,i,r),vr(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new st(po(this.h),nn(this.s),nn(this.l),$n(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=$n(this.opacity);return`${t===1?"hsl(":"hsla("}${po(this.h)}, ${nn(this.s)*100}%, ${nn(this.l)*100}%${t===1?")":`, ${t})`}`}}));function po(t){return t=(t||0)%360,t<0?t+360:t}function nn(t){return Math.max(0,Math.min(1,t||0))}function vr(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}const ke=globalThis?.UNOVIS_COLORS||["#4D8CFD","#FF6B7E","#F4B83E","#A6CC74","#00C19A","#6859BE"],gh=globalThis?.UNOVIS_COLORS_DARK||["#4D8CFD","#FF6B7E","#FFC16D","#A6CC74","#00C19A","#7887E0"],Et=t=>`--vis-${ee(t)?`color${t%ke.length}`:t}`;function mh(t,e=.4){const n=ni(t);return n.l=n.l*(1+e),n.formatHex()}function ph(t,e=.4,n=.6){const r=ni(t);return r.s=r.s*(1-n),r.l=r.l*(1-e),r.formatHex()}const Nn=10,Nr=[{id:"stripes-diagonal",svg:'<path d="M-1,1 l2,-2 M0,10 l10,-10 M9,11 l2,-2" stroke="#000"/>'},{id:"dots",svg:'<path d="m0-1.5a1 1 0 010 3m10-3a1 1 0 000 3M5 3.5a1 1 0 010 3 1 1 0 010-3M0 8.5 a1 1 0 010 3m10-3a1 1 0 000 3" fill"#000"/>'},{id:"stripes-vertical",svg:'<path d="M 5,-1 L5,11" stroke="#000"/>'},{id:"crosshatch",svg:'<path d="M0 0L10 10ZM10 0L0 10Z" stroke="#000"/>'},{id:"waves",svg:'<path d="M0 4Q2.5 1 5 4 7.5 7 10 4v2Q7.5 9 5 6 2.5 3 0 6Z" fill="#000"/>'},{id:"circles",svg:'<circle cx="5" cy="5" r="3" stroke="#000" fill="#fff"/>'}],Rr=[{id:"circle",marker:'<circle cx="5" cy="5" r="5"/>',dashArray:[]},{id:"triangle",marker:'<path d="M5,0 L10,9 L0,9Z">',dashArray:[9,1]},{id:"diamond",marker:'<path d="M 0 5 L5 0 L 10 5 L 5 10 L 0 5Z">',dashArray:[2]},{id:"arrow",marker:'<path d="M4 0 0 0 6 5 0 10 4 10 10 5Z">',dashArray:[2,3,8,3]},{id:"square",marker:'<rect x="1" y="1" width="8" height="8"/>',dashArray:[6]},{id:"star",marker:'<path d="m2 9 3-9 3 9L0 3h10Z"/>',dashArray:[1,6]}];function Dt(t){return`vis-${`pattern-${t.svg?"fill":"marker"}`}-${t.id}`}const vh=t=>`<mask id="${Dt(t)}">
2
2
  <pattern id="${t.id}" viewBox="0 0 10 10" width="${Nn}" height="${Nn}" patternUnits="userSpaceOnUse">
3
3
  <rect width="100%" height="100%" fill="#fff"/>
4
4
  ${t.svg}